@@ -2838,12 +2838,32 @@ async def open_point_in_time(
28382838 index : t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]],
28392839 keep_alive : t .Union ["t.Literal[-1]" , "t.Literal[0]" , str ],
28402840 error_trace : t .Optional [bool ] = None ,
2841+ expand_wildcards : t .Optional [
2842+ t .Union [
2843+ t .Union ["t.Literal['all', 'closed', 'hidden', 'none', 'open']" , str ],
2844+ t .Union [
2845+ t .List [
2846+ t .Union [
2847+ "t.Literal['all', 'closed', 'hidden', 'none', 'open']" , str
2848+ ]
2849+ ],
2850+ t .Tuple [
2851+ t .Union [
2852+ "t.Literal['all', 'closed', 'hidden', 'none', 'open']" , str
2853+ ],
2854+ ...,
2855+ ],
2856+ ],
2857+ ]
2858+ ] = None ,
28412859 filter_path : t .Optional [
28422860 t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]
28432861 ] = None ,
28442862 human : t .Optional [bool ] = None ,
28452863 ignore_unavailable : t .Optional [bool ] = None ,
2864+ preference : t .Optional [str ] = None ,
28462865 pretty : t .Optional [bool ] = None ,
2866+ routing : t .Optional [str ] = None ,
28472867 ) -> ObjectApiResponse [t .Any ]:
28482868 """
28492869 Open a point in time that can be used in subsequent searches
@@ -2853,8 +2873,13 @@ async def open_point_in_time(
28532873 :param index: A comma-separated list of index names to open point in time; use
28542874 `_all` or empty string to perform the operation on all indices
28552875 :param keep_alive: Specific the time to live for the point in time
2876+ :param expand_wildcards: Whether to expand wildcard expression to concrete indices
2877+ that are open, closed or both.
28562878 :param ignore_unavailable: Whether specified concrete indices should be ignored
28572879 when unavailable (missing or closed)
2880+ :param preference: Specify the node or shard the operation should be performed
2881+ on (default: random)
2882+ :param routing: Specific routing value
28582883 """
28592884 if index in SKIP_IN_PATH :
28602885 raise ValueError ("Empty value passed for parameter 'index'" )
@@ -2866,14 +2891,20 @@ async def open_point_in_time(
28662891 __query ["keep_alive" ] = keep_alive
28672892 if error_trace is not None :
28682893 __query ["error_trace" ] = error_trace
2894+ if expand_wildcards is not None :
2895+ __query ["expand_wildcards" ] = expand_wildcards
28692896 if filter_path is not None :
28702897 __query ["filter_path" ] = filter_path
28712898 if human is not None :
28722899 __query ["human" ] = human
28732900 if ignore_unavailable is not None :
28742901 __query ["ignore_unavailable" ] = ignore_unavailable
2902+ if preference is not None :
2903+ __query ["preference" ] = preference
28752904 if pretty is not None :
28762905 __query ["pretty" ] = pretty
2906+ if routing is not None :
2907+ __query ["routing" ] = routing
28772908 __headers = {"accept" : "application/json" }
28782909 return await self .perform_request ( # type: ignore[return-value]
28792910 "POST" , __path , params = __query , headers = __headers
@@ -3410,7 +3441,14 @@ async def search(
34103441 indices_boost : t .Optional [
34113442 t .Union [t .List [t .Mapping [str , float ]], t .Tuple [t .Mapping [str , float ], ...]]
34123443 ] = None ,
3413- knn : t .Optional [t .Mapping [str , t .Any ]] = None ,
3444+ knn : t .Optional [
3445+ t .Union [
3446+ t .Mapping [str , t .Any ],
3447+ t .Union [
3448+ t .List [t .Mapping [str , t .Any ]], t .Tuple [t .Mapping [str , t .Any ], ...]
3449+ ],
3450+ ]
3451+ ] = None ,
34143452 lenient : t .Optional [bool ] = None ,
34153453 max_concurrent_shard_requests : t .Optional [int ] = None ,
34163454 min_compatible_shard_node : t .Optional [str ] = None ,
@@ -3782,6 +3820,7 @@ async def search_mvt(
37823820 x : int ,
37833821 y : int ,
37843822 aggs : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
3823+ buffer : t .Optional [int ] = None ,
37853824 error_trace : t .Optional [bool ] = None ,
37863825 exact_bounds : t .Optional [bool ] = None ,
37873826 extent : t .Optional [int ] = None ,
@@ -3791,6 +3830,7 @@ async def search_mvt(
37913830 filter_path : t .Optional [
37923831 t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]
37933832 ] = None ,
3833+ grid_agg : t .Optional [t .Union ["t.Literal['geohex', 'geotile']" , str ]] = None ,
37943834 grid_precision : t .Optional [int ] = None ,
37953835 grid_type : t .Optional [
37963836 t .Union ["t.Literal['centroid', 'grid', 'point']" , str ]
@@ -3810,6 +3850,7 @@ async def search_mvt(
38103850 ]
38113851 ] = None ,
38123852 track_total_hits : t .Optional [t .Union [bool , int ]] = None ,
3853+ with_labels : t .Optional [bool ] = None ,
38133854 ) -> BinaryApiResponse :
38143855 """
38153856 Searches a vector tile for geospatial values. Returns results as a binary Mapbox
@@ -3824,6 +3865,9 @@ async def search_mvt(
38243865 :param y: Y coordinate for the vector tile to search
38253866 :param aggs: Sub-aggregations for the geotile_grid. Supports the following aggregation
38263867 types: - avg - cardinality - max - min - sum
3868+ :param buffer: Size, in pixels, of a clipping buffer outside the tile. This allows
3869+ renderers to avoid outline artifacts from geometries that extend past the
3870+ extent of the tile.
38273871 :param exact_bounds: If false, the meta layer’s feature is the bounding box of
38283872 the tile. If true, the meta layer’s feature is a bounding box resulting from
38293873 a geo_bounds aggregation. The aggregation runs on <field> values that intersect
@@ -3834,6 +3878,7 @@ async def search_mvt(
38343878 :param fields: Fields to return in the `hits` layer. Supports wildcards (`*`).
38353879 This parameter does not support fields with array values. Fields with array
38363880 values may return inconsistent results.
3881+ :param grid_agg: Aggregation used to create a grid for the `field`.
38373882 :param grid_precision: Additional zoom levels available through the aggs layer.
38383883 For example, if <zoom> is 7 and grid_precision is 8, you can zoom in up to
38393884 level 15. Accepts 0-8. If 0, results don’t include the aggs layer.
@@ -3853,6 +3898,8 @@ async def search_mvt(
38533898 If `true`, the exact number of hits is returned at the cost of some performance.
38543899 If `false`, the response does not include the total number of hits matching
38553900 the query.
3901+ :param with_labels: If `true`, the hits and aggs layers will contain additional
3902+ point features representing suggested label positions for the original features.
38563903 """
38573904 if index in SKIP_IN_PATH :
38583905 raise ValueError ("Empty value passed for parameter 'index'" )
@@ -3880,6 +3927,8 @@ async def search_mvt(
38803927 sort = None
38813928 if aggs is not None :
38823929 __body ["aggs" ] = aggs
3930+ if buffer is not None :
3931+ __body ["buffer" ] = buffer
38833932 if error_trace is not None :
38843933 __query ["error_trace" ] = error_trace
38853934 if exact_bounds is not None :
@@ -3890,6 +3939,8 @@ async def search_mvt(
38903939 __body ["fields" ] = fields
38913940 if filter_path is not None :
38923941 __query ["filter_path" ] = filter_path
3942+ if grid_agg is not None :
3943+ __body ["grid_agg" ] = grid_agg
38933944 if grid_precision is not None :
38943945 __body ["grid_precision" ] = grid_precision
38953946 if grid_type is not None :
@@ -3908,6 +3959,8 @@ async def search_mvt(
39083959 __body ["sort" ] = sort
39093960 if track_total_hits is not None :
39103961 __body ["track_total_hits" ] = track_total_hits
3962+ if with_labels is not None :
3963+ __body ["with_labels" ] = with_labels
39113964 if not __body :
39123965 __body = None # type: ignore[assignment]
39133966 __headers = {"accept" : "application/vnd.mapbox-vector-tile" }
0 commit comments