@carto/api-client 0.5.30-alpha.3cf7d80.116 → 0.5.30-alpha.bdcd62f.119

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -184,8 +184,22 @@ type AggregationType = 'count' | 'avg' | 'min' | 'max' | 'sum' | 'custom';
184
184
  /******************************************************************************
185
185
  * FILTERS
186
186
  */
187
+ /** A spatial filter expressed as a GeoJSON polygon, applied client- or server-side. */
188
+ type GeometrySpatialFilter = Polygon | MultiPolygon;
189
+ /**
190
+ * Filter restricting a widget query to a selection of spatial-index cells,
191
+ * e.g. from point-and-click on an H3 or Quadbin layer.
192
+ */
193
+ interface SpatialIndexFilter {
194
+ /** Selected cell ids. */
195
+ indexes: string[];
196
+ /** Spatial index type of the filtered column. */
197
+ type: 'h3' | 'h3int' | 'quadbin';
198
+ }
187
199
  /** @privateRemarks Source: @carto/react-api */
188
- type SpatialFilter = Polygon | MultiPolygon;
200
+ type SpatialFilter = GeometrySpatialFilter | SpatialIndexFilter;
201
+ /** True when a {@link SpatialFilter} selects spatial-index cells rather than a polygon. */
202
+ declare function isSpatialIndexFilter(spatialFilter: SpatialFilter): spatialFilter is SpatialIndexFilter;
189
203
  /** @privateRemarks Source: @deck.gl/carto */
190
204
  interface Filters {
191
205
  [column: string]: Filter;
@@ -289,6 +303,54 @@ type _DataFilterExtensionProps = {
289
303
  */
290
304
  declare function getDataFilterExtensionProps(filters: Filters, filtersLogicalOperator?: FilterLogicalOperator): _DataFilterExtensionProps;
291
305
 
306
+ /**
307
+ * How requests to the CARTO APIs are authenticated.
308
+ *
309
+ * - `'token'` (default): every request carries `Authorization: Bearer <accessToken>`.
310
+ * - `'session'`: requests carry NO Authorization header and are sent with
311
+ * `credentials: 'same-origin'`. Authentication is delegated to the server
312
+ * behind `apiBaseUrl` — typically a same-origin proxy that attaches the
313
+ * credential server-side from a session cookie. Used by CARTO hosted apps
314
+ * (`apiBaseUrl: '/app/_proxy/<slug>'`) and other single-origin deployments
315
+ * where the access token must never be exposed to JavaScript.
316
+ */
317
+ type AuthMode = 'token' | 'session';
318
+ /**
319
+ * Authentication options shared by sources, queries, widget sources and
320
+ * fetchMap:
321
+ *
322
+ * - token mode (default): `accessToken` is required.
323
+ * - session mode: `authMode: 'session'` and no `accessToken`.
324
+ *
325
+ * Validated at request time by {@link buildAuthHeaders}.
326
+ */
327
+ type AuthOptions = {
328
+ /** Carto platform access token. Required unless `authMode` is `'session'`. */
329
+ accessToken?: string;
330
+ /** @default 'token' */
331
+ authMode?: AuthMode;
332
+ };
333
+ /**
334
+ * Builds the Authorization headers for a request: a Bearer header in token
335
+ * mode, no auth headers at all in session mode (the server-side session
336
+ * middleware must see the header absent to engage). Also validates the
337
+ * options, so every request path fails fast on a misconfiguration.
338
+ */
339
+ declare function buildAuthHeaders(options: AuthOptions): Record<string, string>;
340
+ /**
341
+ * `fetch()` credentials for the given auth mode. Session mode must send the
342
+ * cookie explicitly; token mode preserves today's behavior (unset).
343
+ */
344
+ declare function getAuthCredentials(authMode?: AuthMode): RequestCredentials | undefined;
345
+ /**
346
+ * Rewrites an absolute CARTO API URL (e.g. a tilejson `tiles[]` template or
347
+ * the map-instantiation `dataUrl`, which always point at the tenant API host)
348
+ * onto the configured `apiBaseUrl`. In session mode the browser cannot reach
349
+ * the API host directly — every request must go through the same-origin
350
+ * proxy that `apiBaseUrl` points at. Relative URLs are returned unchanged.
351
+ */
352
+ declare function rewriteUrlForSessionMode(url: string, apiBaseUrl: string): string;
353
+
292
354
  type APIRequestType = 'Map data' | 'Map instantiation' | 'Public map' | 'Tile stats' | 'SQL' | 'Basemap style';
293
355
  type APIErrorContext = {
294
356
  requestType: APIRequestType;
@@ -338,9 +400,7 @@ declare enum RasterBandColorinterp {
338
400
  Palette = "palette"
339
401
  }
340
402
 
341
- type SourceRequiredOptions = {
342
- /** Carto platform access token. */
343
- accessToken: string;
403
+ type SourceRequiredOptions = AuthOptions & {
344
404
  /** Data warehouse connection name in Carto platform. */
345
405
  connectionName: string;
346
406
  };
@@ -712,7 +772,13 @@ type RasterMetadata = {
712
772
  pixel_resolution: number;
713
773
  };
714
774
  type TilejsonResult = Tilejson & {
715
- accessToken: string;
775
+ /**
776
+ * Access token used to fetch the tiles. Absent when the source was created
777
+ * with `authMode: 'session'` — tile URLs are then rewritten onto the
778
+ * configured `apiBaseUrl` and authenticated by the server (session cookie),
779
+ * so consumers must not attach an Authorization header.
780
+ */
781
+ accessToken?: string;
716
782
  schema: SchemaField[];
717
783
  };
718
784
  type QueryResult = {
@@ -740,7 +806,7 @@ type QueryOptions = SourceOptions & QuerySourceOptions & {
740
806
  };
741
807
  declare const query: (options: QueryOptions) => Promise<QueryResult>;
742
808
 
743
- declare function requestWithParameters<T = any>({ baseUrl, parameters, headers: customHeaders, errorContext, maxLengthURL, localCache, signal, }: {
809
+ declare function requestWithParameters<T = any>({ baseUrl, parameters, headers: customHeaders, errorContext, maxLengthURL, localCache, signal, credentials, }: {
744
810
  baseUrl: string;
745
811
  parameters?: Record<string, unknown>;
746
812
  headers?: Record<string, string>;
@@ -748,6 +814,8 @@ declare function requestWithParameters<T = any>({ baseUrl, parameters, headers:
748
814
  maxLengthURL?: number;
749
815
  localCache?: LocalCacheOptions;
750
816
  signal?: AbortSignal;
817
+ /** Forwarded to `fetch()`. Session auth mode passes 'same-origin'. */
818
+ credentials?: RequestCredentials;
751
819
  }): Promise<T>;
752
820
  /**
753
821
  * Clears the HTTP response cache for all requests using the default cache.
@@ -1684,7 +1752,8 @@ interface ModelSource {
1684
1752
  type: MapType;
1685
1753
  apiVersion: ApiVersion;
1686
1754
  apiBaseUrl: string;
1687
- accessToken: string;
1755
+ accessToken?: string;
1756
+ authMode?: AuthMode;
1688
1757
  clientId: string;
1689
1758
  connectionName: string;
1690
1759
  data: string;
@@ -1783,7 +1852,7 @@ declare const filterFunctions: Record<FilterType, FilterFunction>;
1783
1852
 
1784
1853
  declare function geojsonFeatures({ geojson, spatialFilter, uniqueIdProperty, }: {
1785
1854
  geojson: FeatureCollection;
1786
- spatialFilter: SpatialFilter;
1855
+ spatialFilter: GeometrySpatialFilter;
1787
1856
  uniqueIdProperty?: string;
1788
1857
  }): FeatureData[];
1789
1858
 
@@ -1793,7 +1862,7 @@ type TileFeatures = {
1793
1862
  tileFormat: TileFormat;
1794
1863
  spatialDataType: SpatialDataType;
1795
1864
  spatialDataColumn?: string;
1796
- spatialFilter?: SpatialFilter;
1865
+ spatialFilter?: GeometrySpatialFilter;
1797
1866
  uniqueIdProperty?: string;
1798
1867
  rasterMetadata?: RasterMetadata;
1799
1868
  storeGeometry?: boolean;
@@ -1815,14 +1884,14 @@ type GeometryExtractOptions = {
1815
1884
  declare function tileFeaturesGeometries({ tiles, tileFormat, spatialFilter, uniqueIdProperty, options, }: {
1816
1885
  tiles: Tile[];
1817
1886
  tileFormat?: TileFormat;
1818
- spatialFilter?: SpatialFilter;
1887
+ spatialFilter?: GeometrySpatialFilter;
1819
1888
  uniqueIdProperty?: string;
1820
1889
  options?: GeometryExtractOptions;
1821
1890
  }): FeatureData[];
1822
1891
 
1823
1892
  type TileFeaturesSpatialIndexOptions = {
1824
1893
  tiles: SpatialIndexTile[];
1825
- spatialFilter?: SpatialFilter;
1894
+ spatialFilter?: GeometrySpatialFilter;
1826
1895
  spatialDataColumn: string;
1827
1896
  spatialDataType: SpatialDataType;
1828
1897
  };
@@ -1869,7 +1938,7 @@ declare class WidgetTilesetSourceImpl extends WidgetSource<WidgetTilesetSourcePr
1869
1938
  */
1870
1939
  loadGeoJSON({ geojson, spatialFilter, }: {
1871
1940
  geojson: FeatureCollection;
1872
- spatialFilter: SpatialFilter;
1941
+ spatialFilter: GeometrySpatialFilter;
1873
1942
  }): void;
1874
1943
  getFeatures(): Promise<FeaturesResponse>;
1875
1944
  getFormula({ column, operation, joinOperation, filters, filterOwner, spatialFilter, }: FormulaRequestOptions): Promise<FormulaResponse>;
@@ -1950,7 +2019,7 @@ declare class WidgetTilesetSource<Props extends WidgetTilesetSourceProps = Widge
1950
2019
  */
1951
2020
  loadGeoJSON({ geojson, spatialFilter, }: {
1952
2021
  geojson: FeatureCollection;
1953
- spatialFilter: SpatialFilter;
2022
+ spatialFilter: GeometrySpatialFilter;
1954
2023
  }): void;
1955
2024
  getFeatures(): Promise<FeaturesResponse>;
1956
2025
  getFormula({ signal, ...options }: FormulaRequestOptions): Promise<FormulaResponse>;
@@ -2137,6 +2206,22 @@ declare function _getHexagonResolution(viewport: {
2137
2206
  zoom: number;
2138
2207
  latitude: number;
2139
2208
  }, tileSize: number): number;
2209
+ /**
2210
+ * Quadbin level at which the maps-api dynamic tiler implicitly aggregates a
2211
+ * point source for a given tile zoom and resolution. Lets a client reproduce
2212
+ * that level — and so the aggregation cell a point falls into — without an
2213
+ * extra round-trip to the server.
2214
+ *
2215
+ * Ported verbatim from the maps-api dynamic tiler (`getPointsAggregationLevel`).
2216
+ * The base offset mirrors the server default of
2217
+ * `MAPS_API_V3_DYNAMIC_TILES_POINTS_AGGREGATION_LEVEL`; a deployment that
2218
+ * overrides that env var drifts from this computation.
2219
+ * @internal
2220
+ */
2221
+ declare function getPointsAggregationLevel({ tileResolution, zoomLevel, }: {
2222
+ tileResolution: TileResolution;
2223
+ zoomLevel: number;
2224
+ }): number;
2140
2225
 
2141
2226
  /** @privateRemarks Source: @carto/react-core */
2142
2227
  type AggregationFunction = (values: unknown[] | FeatureData[], keys?: string[] | string, joinOperation?: AggregationType) => number;
@@ -2277,4 +2362,4 @@ declare function getColumnNameFromGeoColumn(geoColumn: string | null | undefined
2277
2362
  */
2278
2363
  declare function getSpatialIndexFromGeoColumn(geoColumn: string): SpatialIndex | null;
2279
2364
 
2280
- export { type APIErrorContext, type APIRequestType, AUDIT_TAGS, type AddFilterOptions, type AggregationFunction, type AggregationType, AggregationTypes, type AggregationsRequestOptions, type AggregationsResponse, ApiVersion, type Attribute, _default as BASEMAP, type BaseRequestOptions, type Basemap, type BoundaryQuerySourceOptions, type BoundaryQuerySourceResponse, type BoundaryTableSourceOptions, type BoundaryTableSourceResponse, CARTO_SOURCES, CartoAPIError, type CategoryOrderBy, type CategoryRequestOptions, type CategoryResponse, type CategoryResponseEntry, type CategoryResponseRaw, CellSet, type ColumnsOption, type D3Scale, DEFAULT_API_BASE_URL, type ExtentRequestOptions, type ExtentResponse, FEATURE_GEOM_PROPERTY, type FeaturesRequestOptions, type FeaturesResponse, type FetchMapOptions, type FetchMapResult, type Filter, type FilterFunction, type FilterInterval, type FilterIntervalComplete, type FilterIntervalExtremum, type FilterLogicalOperator, type FilterOptions, FilterType, type Filters, type Format, type FormulaRequestOptions, type FormulaResponse, type GetFilterOptions, type GoogleBasemap, type GroupByFeature, type GroupDateType, type H3QuerySourceOptions, type H3QuerySourceResponse, type H3TableSourceOptions, type H3TableSourceResponse, type H3TilesetSourceOptions, type H3TilesetSourceResponse, type HasFilterOptions, type HistogramRequestOptions, type HistogramResponse, type KeplerMapConfig, type Layer, type LayerDescriptor, type LayerType, type MapLibreBasemap, type MapType, type NamedQueryParameter, OPACITY_MAP, OTHERS_CATEGORY_NAME, type ParseMapResult, type PositionalQueryParameter, Provider, type ProviderType, type QuadbinQuerySourceOptions, type QuadbinQuerySourceResponse, type QuadbinTableSourceOptions, type QuadbinTableSourceResponse, type QuadbinTilesetSourceOptions, type QuadbinTilesetSourceResponse, type QueryOptions, type QueryParameterValue, type QueryParameters, type QueryResult, type QuerySourceOptions, type RangeRequestOptions, type RangeResponse, type Raster, RasterBandColorinterp, type RasterBandType, type RasterMetadata, type RasterMetadataBand, type RasterMetadataBandStats, type RasterSourceOptions, type RasterTile, type RemoveFilterOptions, SOURCE_DEFAULTS, type Scale, type ScaleKey, type ScaleType, type Scales, type ScatterPlotFeature, type ScatterRequestOptions, type ScatterResponse, type SchemaField, SchemaFieldType, type SortColumnType, type SortDirection, type SourceOptionalOptions, type SourceOptions, type SourceRequiredOptions, type SpatialDataType, type SpatialFilter, type SpatialFilterPolyfillMode, SpatialIndex, SpatialIndexColumn, type SpatialIndexTile, type StringSearchOptions, TEXT_LABEL_INDEX, TEXT_NUMBER_FORMATTER, TEXT_OUTLINE_OPACITY, type TableRequestOptions, type TableResponse, type TableSourceOptions, type Tile, type TileFeatureExtractOptions, type TileFeatures, type TileFeaturesSpatialIndexOptions, TileFormat, type TileResolution, type Tilejson, type TilejsonResult, type TilesetSourceOptions, type Tilestats, type TimeSeriesRequestOptions, type TimeSeriesResponse, type TrajectoryQuerySourceOptions, type TrajectoryQuerySourceResponse, type TrajectoryTableSourceOptions, type TrajectoryTableSourceResponse, type VectorLayer, type VectorQuerySourceOptions, type VectorQuerySourceResponse, type VectorTableSourceOptions, type VectorTableSourceResponse, type VectorTilesetSourceOptions, type VectorTilesetSourceResponse, type ViewState, type Viewport, type WidgetFeatureGeometryType, WidgetQuerySource, type WidgetQuerySourceResult, WidgetRasterSource, type WidgetRasterSourceProps, type WidgetRasterSourceResult, WidgetRemoteSource, type WidgetRemoteSourceProps, WidgetSource, type WidgetSourceProps, WidgetTableSource, type WidgetTableSourceResult, WidgetTilesetSource, type WidgetTilesetSourceProps, type WidgetTilesetSourceResult, type _DataFilterExtensionProps, ErrorCode as _ErrorCode, type VecExprResult as _VecExprResult, applyLayerGroupFilters as _applyLayerGroupFilters, _buildFeatureFilter, createVecExprEvaluator as _createVecExprEvaluator, domainFromValues as _domainFromValues, evaluateVecExpr as _evaluateVecExpr, fillInMapDatasets as _fillInMapDatasets, fillInTileStats as _fillInTileStats, _getHexagonResolution, getLog10ScaleSteps as _getLog10ScaleSteps, getRasterTileLayerStyleProps as _getRasterTileLayerStyleProps, validateVecExprSyntax as _validateVecExprSyntax, addFilter, aggregate, aggregationFunctions, applyFilters, applySorting, boundaryQuerySource, boundaryTableSource, buildBinaryFeatureFilter, buildPublicMapUrl, buildStatsUrl, calculateClusterRadius, calculateClusterTextFontSize, calculateLayerScale, clearDefaultRequestCache, clearFilters, compileCustomAggregation, configureSource, createColorScale, createPolygonSpatialFilter, createViewportSpatialFilter, fetchBasemapProps, fetchMap, filterFunctions, geojsonFeatures, getApplicableFilters, getClient, getColorAccessor, getColumnNameFromGeoColumn, getDataFilterExtensionProps, getDefaultAggregationExpColumnAliasForLayerType, getFilter, getIconUrlAccessor, getLayerDescriptor, getLayerProps, getMaxMarkerSize, getSizeAccessor, getSorter, getSpatialIndexFromGeoColumn, getTextAccessor, groupValuesByColumn, groupValuesByDateColumn, h3QuerySource, h3TableSource, h3TilesetSource, hasFilter, histogram, makeIntervalComplete, negateAccessor, opacityToAlpha, parseMap, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, query, rasterSource, removeFilter, requestWithParameters, scaleAggregationResLevel, scatterPlot, setClient, tileFeatures, tileFeaturesGeometries, tileFeaturesSpatialIndex, trajectoryQuerySource, trajectoryTableSource, transformToTileCoords, vectorQuerySource, vectorTableSource, vectorTilesetSource };
2365
+ export { type APIErrorContext, type APIRequestType, AUDIT_TAGS, type AddFilterOptions, type AggregationFunction, type AggregationType, AggregationTypes, type AggregationsRequestOptions, type AggregationsResponse, ApiVersion, type Attribute, type AuthMode, type AuthOptions, _default as BASEMAP, type BaseRequestOptions, type Basemap, type BoundaryQuerySourceOptions, type BoundaryQuerySourceResponse, type BoundaryTableSourceOptions, type BoundaryTableSourceResponse, CARTO_SOURCES, CartoAPIError, type CategoryOrderBy, type CategoryRequestOptions, type CategoryResponse, type CategoryResponseEntry, type CategoryResponseRaw, CellSet, type ColumnsOption, type D3Scale, DEFAULT_API_BASE_URL, type ExtentRequestOptions, type ExtentResponse, FEATURE_GEOM_PROPERTY, type FeaturesRequestOptions, type FeaturesResponse, type FetchMapOptions, type FetchMapResult, type Filter, type FilterFunction, type FilterInterval, type FilterIntervalComplete, type FilterIntervalExtremum, type FilterLogicalOperator, type FilterOptions, FilterType, type Filters, type Format, type FormulaRequestOptions, type FormulaResponse, type GeometrySpatialFilter, type GetFilterOptions, type GoogleBasemap, type GroupByFeature, type GroupDateType, type H3QuerySourceOptions, type H3QuerySourceResponse, type H3TableSourceOptions, type H3TableSourceResponse, type H3TilesetSourceOptions, type H3TilesetSourceResponse, type HasFilterOptions, type HistogramRequestOptions, type HistogramResponse, type KeplerMapConfig, type Layer, type LayerDescriptor, type LayerType, type MapLibreBasemap, type MapType, type NamedQueryParameter, OPACITY_MAP, OTHERS_CATEGORY_NAME, type ParseMapResult, type PositionalQueryParameter, Provider, type ProviderType, type QuadbinQuerySourceOptions, type QuadbinQuerySourceResponse, type QuadbinTableSourceOptions, type QuadbinTableSourceResponse, type QuadbinTilesetSourceOptions, type QuadbinTilesetSourceResponse, type QueryOptions, type QueryParameterValue, type QueryParameters, type QueryResult, type QuerySourceOptions, type RangeRequestOptions, type RangeResponse, type Raster, RasterBandColorinterp, type RasterBandType, type RasterMetadata, type RasterMetadataBand, type RasterMetadataBandStats, type RasterSourceOptions, type RasterTile, type RemoveFilterOptions, SOURCE_DEFAULTS, type Scale, type ScaleKey, type ScaleType, type Scales, type ScatterPlotFeature, type ScatterRequestOptions, type ScatterResponse, type SchemaField, SchemaFieldType, type SortColumnType, type SortDirection, type SourceOptionalOptions, type SourceOptions, type SourceRequiredOptions, type SpatialDataType, type SpatialFilter, type SpatialFilterPolyfillMode, SpatialIndex, SpatialIndexColumn, type SpatialIndexFilter, type SpatialIndexTile, type StringSearchOptions, TEXT_LABEL_INDEX, TEXT_NUMBER_FORMATTER, TEXT_OUTLINE_OPACITY, type TableRequestOptions, type TableResponse, type TableSourceOptions, type Tile, type TileFeatureExtractOptions, type TileFeatures, type TileFeaturesSpatialIndexOptions, TileFormat, type TileResolution, type Tilejson, type TilejsonResult, type TilesetSourceOptions, type Tilestats, type TimeSeriesRequestOptions, type TimeSeriesResponse, type TrajectoryQuerySourceOptions, type TrajectoryQuerySourceResponse, type TrajectoryTableSourceOptions, type TrajectoryTableSourceResponse, type VectorLayer, type VectorQuerySourceOptions, type VectorQuerySourceResponse, type VectorTableSourceOptions, type VectorTableSourceResponse, type VectorTilesetSourceOptions, type VectorTilesetSourceResponse, type ViewState, type Viewport, type WidgetFeatureGeometryType, WidgetQuerySource, type WidgetQuerySourceResult, WidgetRasterSource, type WidgetRasterSourceProps, type WidgetRasterSourceResult, WidgetRemoteSource, type WidgetRemoteSourceProps, WidgetSource, type WidgetSourceProps, WidgetTableSource, type WidgetTableSourceResult, WidgetTilesetSource, type WidgetTilesetSourceProps, type WidgetTilesetSourceResult, type _DataFilterExtensionProps, ErrorCode as _ErrorCode, type VecExprResult as _VecExprResult, applyLayerGroupFilters as _applyLayerGroupFilters, _buildFeatureFilter, createVecExprEvaluator as _createVecExprEvaluator, domainFromValues as _domainFromValues, evaluateVecExpr as _evaluateVecExpr, fillInMapDatasets as _fillInMapDatasets, fillInTileStats as _fillInTileStats, _getHexagonResolution, getLog10ScaleSteps as _getLog10ScaleSteps, getPointsAggregationLevel as _getPointsAggregationLevel, getRasterTileLayerStyleProps as _getRasterTileLayerStyleProps, validateVecExprSyntax as _validateVecExprSyntax, addFilter, aggregate, aggregationFunctions, applyFilters, applySorting, boundaryQuerySource, boundaryTableSource, buildAuthHeaders, buildBinaryFeatureFilter, buildPublicMapUrl, buildStatsUrl, calculateClusterRadius, calculateClusterTextFontSize, calculateLayerScale, clearDefaultRequestCache, clearFilters, compileCustomAggregation, configureSource, createColorScale, createPolygonSpatialFilter, createViewportSpatialFilter, fetchBasemapProps, fetchMap, filterFunctions, geojsonFeatures, getApplicableFilters, getAuthCredentials, getClient, getColorAccessor, getColumnNameFromGeoColumn, getDataFilterExtensionProps, getDefaultAggregationExpColumnAliasForLayerType, getFilter, getIconUrlAccessor, getLayerDescriptor, getLayerProps, getMaxMarkerSize, getSizeAccessor, getSorter, getSpatialIndexFromGeoColumn, getTextAccessor, groupValuesByColumn, groupValuesByDateColumn, h3QuerySource, h3TableSource, h3TilesetSource, hasFilter, histogram, isSpatialIndexFilter, makeIntervalComplete, negateAccessor, opacityToAlpha, parseMap, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, query, rasterSource, removeFilter, requestWithParameters, rewriteUrlForSessionMode, scaleAggregationResLevel, scatterPlot, setClient, tileFeatures, tileFeaturesGeometries, tileFeaturesSpatialIndex, trajectoryQuerySource, trajectoryTableSource, transformToTileCoords, vectorQuerySource, vectorTableSource, vectorTilesetSource };
@@ -184,8 +184,22 @@ type AggregationType = 'count' | 'avg' | 'min' | 'max' | 'sum' | 'custom';
184
184
  /******************************************************************************
185
185
  * FILTERS
186
186
  */
187
+ /** A spatial filter expressed as a GeoJSON polygon, applied client- or server-side. */
188
+ type GeometrySpatialFilter = Polygon | MultiPolygon;
189
+ /**
190
+ * Filter restricting a widget query to a selection of spatial-index cells,
191
+ * e.g. from point-and-click on an H3 or Quadbin layer.
192
+ */
193
+ interface SpatialIndexFilter {
194
+ /** Selected cell ids. */
195
+ indexes: string[];
196
+ /** Spatial index type of the filtered column. */
197
+ type: 'h3' | 'h3int' | 'quadbin';
198
+ }
187
199
  /** @privateRemarks Source: @carto/react-api */
188
- type SpatialFilter = Polygon | MultiPolygon;
200
+ type SpatialFilter = GeometrySpatialFilter | SpatialIndexFilter;
201
+ /** True when a {@link SpatialFilter} selects spatial-index cells rather than a polygon. */
202
+ declare function isSpatialIndexFilter(spatialFilter: SpatialFilter): spatialFilter is SpatialIndexFilter;
189
203
  /** @privateRemarks Source: @deck.gl/carto */
190
204
  interface Filters {
191
205
  [column: string]: Filter;
@@ -289,6 +303,54 @@ type _DataFilterExtensionProps = {
289
303
  */
290
304
  declare function getDataFilterExtensionProps(filters: Filters, filtersLogicalOperator?: FilterLogicalOperator): _DataFilterExtensionProps;
291
305
 
306
+ /**
307
+ * How requests to the CARTO APIs are authenticated.
308
+ *
309
+ * - `'token'` (default): every request carries `Authorization: Bearer <accessToken>`.
310
+ * - `'session'`: requests carry NO Authorization header and are sent with
311
+ * `credentials: 'same-origin'`. Authentication is delegated to the server
312
+ * behind `apiBaseUrl` — typically a same-origin proxy that attaches the
313
+ * credential server-side from a session cookie. Used by CARTO hosted apps
314
+ * (`apiBaseUrl: '/app/_proxy/<slug>'`) and other single-origin deployments
315
+ * where the access token must never be exposed to JavaScript.
316
+ */
317
+ type AuthMode = 'token' | 'session';
318
+ /**
319
+ * Authentication options shared by sources, queries, widget sources and
320
+ * fetchMap:
321
+ *
322
+ * - token mode (default): `accessToken` is required.
323
+ * - session mode: `authMode: 'session'` and no `accessToken`.
324
+ *
325
+ * Validated at request time by {@link buildAuthHeaders}.
326
+ */
327
+ type AuthOptions = {
328
+ /** Carto platform access token. Required unless `authMode` is `'session'`. */
329
+ accessToken?: string;
330
+ /** @default 'token' */
331
+ authMode?: AuthMode;
332
+ };
333
+ /**
334
+ * Builds the Authorization headers for a request: a Bearer header in token
335
+ * mode, no auth headers at all in session mode (the server-side session
336
+ * middleware must see the header absent to engage). Also validates the
337
+ * options, so every request path fails fast on a misconfiguration.
338
+ */
339
+ declare function buildAuthHeaders(options: AuthOptions): Record<string, string>;
340
+ /**
341
+ * `fetch()` credentials for the given auth mode. Session mode must send the
342
+ * cookie explicitly; token mode preserves today's behavior (unset).
343
+ */
344
+ declare function getAuthCredentials(authMode?: AuthMode): RequestCredentials | undefined;
345
+ /**
346
+ * Rewrites an absolute CARTO API URL (e.g. a tilejson `tiles[]` template or
347
+ * the map-instantiation `dataUrl`, which always point at the tenant API host)
348
+ * onto the configured `apiBaseUrl`. In session mode the browser cannot reach
349
+ * the API host directly — every request must go through the same-origin
350
+ * proxy that `apiBaseUrl` points at. Relative URLs are returned unchanged.
351
+ */
352
+ declare function rewriteUrlForSessionMode(url: string, apiBaseUrl: string): string;
353
+
292
354
  type APIRequestType = 'Map data' | 'Map instantiation' | 'Public map' | 'Tile stats' | 'SQL' | 'Basemap style';
293
355
  type APIErrorContext = {
294
356
  requestType: APIRequestType;
@@ -338,9 +400,7 @@ declare enum RasterBandColorinterp {
338
400
  Palette = "palette"
339
401
  }
340
402
 
341
- type SourceRequiredOptions = {
342
- /** Carto platform access token. */
343
- accessToken: string;
403
+ type SourceRequiredOptions = AuthOptions & {
344
404
  /** Data warehouse connection name in Carto platform. */
345
405
  connectionName: string;
346
406
  };
@@ -712,7 +772,13 @@ type RasterMetadata = {
712
772
  pixel_resolution: number;
713
773
  };
714
774
  type TilejsonResult = Tilejson & {
715
- accessToken: string;
775
+ /**
776
+ * Access token used to fetch the tiles. Absent when the source was created
777
+ * with `authMode: 'session'` — tile URLs are then rewritten onto the
778
+ * configured `apiBaseUrl` and authenticated by the server (session cookie),
779
+ * so consumers must not attach an Authorization header.
780
+ */
781
+ accessToken?: string;
716
782
  schema: SchemaField[];
717
783
  };
718
784
  type QueryResult = {
@@ -740,7 +806,7 @@ type QueryOptions = SourceOptions & QuerySourceOptions & {
740
806
  };
741
807
  declare const query: (options: QueryOptions) => Promise<QueryResult>;
742
808
 
743
- declare function requestWithParameters<T = any>({ baseUrl, parameters, headers: customHeaders, errorContext, maxLengthURL, localCache, signal, }: {
809
+ declare function requestWithParameters<T = any>({ baseUrl, parameters, headers: customHeaders, errorContext, maxLengthURL, localCache, signal, credentials, }: {
744
810
  baseUrl: string;
745
811
  parameters?: Record<string, unknown>;
746
812
  headers?: Record<string, string>;
@@ -748,6 +814,8 @@ declare function requestWithParameters<T = any>({ baseUrl, parameters, headers:
748
814
  maxLengthURL?: number;
749
815
  localCache?: LocalCacheOptions;
750
816
  signal?: AbortSignal;
817
+ /** Forwarded to `fetch()`. Session auth mode passes 'same-origin'. */
818
+ credentials?: RequestCredentials;
751
819
  }): Promise<T>;
752
820
  /**
753
821
  * Clears the HTTP response cache for all requests using the default cache.
@@ -1684,7 +1752,8 @@ interface ModelSource {
1684
1752
  type: MapType;
1685
1753
  apiVersion: ApiVersion;
1686
1754
  apiBaseUrl: string;
1687
- accessToken: string;
1755
+ accessToken?: string;
1756
+ authMode?: AuthMode;
1688
1757
  clientId: string;
1689
1758
  connectionName: string;
1690
1759
  data: string;
@@ -1783,7 +1852,7 @@ declare const filterFunctions: Record<FilterType, FilterFunction>;
1783
1852
 
1784
1853
  declare function geojsonFeatures({ geojson, spatialFilter, uniqueIdProperty, }: {
1785
1854
  geojson: FeatureCollection;
1786
- spatialFilter: SpatialFilter;
1855
+ spatialFilter: GeometrySpatialFilter;
1787
1856
  uniqueIdProperty?: string;
1788
1857
  }): FeatureData[];
1789
1858
 
@@ -1793,7 +1862,7 @@ type TileFeatures = {
1793
1862
  tileFormat: TileFormat;
1794
1863
  spatialDataType: SpatialDataType;
1795
1864
  spatialDataColumn?: string;
1796
- spatialFilter?: SpatialFilter;
1865
+ spatialFilter?: GeometrySpatialFilter;
1797
1866
  uniqueIdProperty?: string;
1798
1867
  rasterMetadata?: RasterMetadata;
1799
1868
  storeGeometry?: boolean;
@@ -1815,14 +1884,14 @@ type GeometryExtractOptions = {
1815
1884
  declare function tileFeaturesGeometries({ tiles, tileFormat, spatialFilter, uniqueIdProperty, options, }: {
1816
1885
  tiles: Tile[];
1817
1886
  tileFormat?: TileFormat;
1818
- spatialFilter?: SpatialFilter;
1887
+ spatialFilter?: GeometrySpatialFilter;
1819
1888
  uniqueIdProperty?: string;
1820
1889
  options?: GeometryExtractOptions;
1821
1890
  }): FeatureData[];
1822
1891
 
1823
1892
  type TileFeaturesSpatialIndexOptions = {
1824
1893
  tiles: SpatialIndexTile[];
1825
- spatialFilter?: SpatialFilter;
1894
+ spatialFilter?: GeometrySpatialFilter;
1826
1895
  spatialDataColumn: string;
1827
1896
  spatialDataType: SpatialDataType;
1828
1897
  };
@@ -1869,7 +1938,7 @@ declare class WidgetTilesetSourceImpl extends WidgetSource<WidgetTilesetSourcePr
1869
1938
  */
1870
1939
  loadGeoJSON({ geojson, spatialFilter, }: {
1871
1940
  geojson: FeatureCollection;
1872
- spatialFilter: SpatialFilter;
1941
+ spatialFilter: GeometrySpatialFilter;
1873
1942
  }): void;
1874
1943
  getFeatures(): Promise<FeaturesResponse>;
1875
1944
  getFormula({ column, operation, joinOperation, filters, filterOwner, spatialFilter, }: FormulaRequestOptions): Promise<FormulaResponse>;
@@ -1950,7 +2019,7 @@ declare class WidgetTilesetSource<Props extends WidgetTilesetSourceProps = Widge
1950
2019
  */
1951
2020
  loadGeoJSON({ geojson, spatialFilter, }: {
1952
2021
  geojson: FeatureCollection;
1953
- spatialFilter: SpatialFilter;
2022
+ spatialFilter: GeometrySpatialFilter;
1954
2023
  }): void;
1955
2024
  getFeatures(): Promise<FeaturesResponse>;
1956
2025
  getFormula({ signal, ...options }: FormulaRequestOptions): Promise<FormulaResponse>;
@@ -2137,6 +2206,22 @@ declare function _getHexagonResolution(viewport: {
2137
2206
  zoom: number;
2138
2207
  latitude: number;
2139
2208
  }, tileSize: number): number;
2209
+ /**
2210
+ * Quadbin level at which the maps-api dynamic tiler implicitly aggregates a
2211
+ * point source for a given tile zoom and resolution. Lets a client reproduce
2212
+ * that level — and so the aggregation cell a point falls into — without an
2213
+ * extra round-trip to the server.
2214
+ *
2215
+ * Ported verbatim from the maps-api dynamic tiler (`getPointsAggregationLevel`).
2216
+ * The base offset mirrors the server default of
2217
+ * `MAPS_API_V3_DYNAMIC_TILES_POINTS_AGGREGATION_LEVEL`; a deployment that
2218
+ * overrides that env var drifts from this computation.
2219
+ * @internal
2220
+ */
2221
+ declare function getPointsAggregationLevel({ tileResolution, zoomLevel, }: {
2222
+ tileResolution: TileResolution;
2223
+ zoomLevel: number;
2224
+ }): number;
2140
2225
 
2141
2226
  /** @privateRemarks Source: @carto/react-core */
2142
2227
  type AggregationFunction = (values: unknown[] | FeatureData[], keys?: string[] | string, joinOperation?: AggregationType) => number;
@@ -2277,4 +2362,4 @@ declare function getColumnNameFromGeoColumn(geoColumn: string | null | undefined
2277
2362
  */
2278
2363
  declare function getSpatialIndexFromGeoColumn(geoColumn: string): SpatialIndex | null;
2279
2364
 
2280
- export { type APIErrorContext, type APIRequestType, AUDIT_TAGS, type AddFilterOptions, type AggregationFunction, type AggregationType, AggregationTypes, type AggregationsRequestOptions, type AggregationsResponse, ApiVersion, type Attribute, _default as BASEMAP, type BaseRequestOptions, type Basemap, type BoundaryQuerySourceOptions, type BoundaryQuerySourceResponse, type BoundaryTableSourceOptions, type BoundaryTableSourceResponse, CARTO_SOURCES, CartoAPIError, type CategoryOrderBy, type CategoryRequestOptions, type CategoryResponse, type CategoryResponseEntry, type CategoryResponseRaw, CellSet, type ColumnsOption, type D3Scale, DEFAULT_API_BASE_URL, type ExtentRequestOptions, type ExtentResponse, FEATURE_GEOM_PROPERTY, type FeaturesRequestOptions, type FeaturesResponse, type FetchMapOptions, type FetchMapResult, type Filter, type FilterFunction, type FilterInterval, type FilterIntervalComplete, type FilterIntervalExtremum, type FilterLogicalOperator, type FilterOptions, FilterType, type Filters, type Format, type FormulaRequestOptions, type FormulaResponse, type GetFilterOptions, type GoogleBasemap, type GroupByFeature, type GroupDateType, type H3QuerySourceOptions, type H3QuerySourceResponse, type H3TableSourceOptions, type H3TableSourceResponse, type H3TilesetSourceOptions, type H3TilesetSourceResponse, type HasFilterOptions, type HistogramRequestOptions, type HistogramResponse, type KeplerMapConfig, type Layer, type LayerDescriptor, type LayerType, type MapLibreBasemap, type MapType, type NamedQueryParameter, OPACITY_MAP, OTHERS_CATEGORY_NAME, type ParseMapResult, type PositionalQueryParameter, Provider, type ProviderType, type QuadbinQuerySourceOptions, type QuadbinQuerySourceResponse, type QuadbinTableSourceOptions, type QuadbinTableSourceResponse, type QuadbinTilesetSourceOptions, type QuadbinTilesetSourceResponse, type QueryOptions, type QueryParameterValue, type QueryParameters, type QueryResult, type QuerySourceOptions, type RangeRequestOptions, type RangeResponse, type Raster, RasterBandColorinterp, type RasterBandType, type RasterMetadata, type RasterMetadataBand, type RasterMetadataBandStats, type RasterSourceOptions, type RasterTile, type RemoveFilterOptions, SOURCE_DEFAULTS, type Scale, type ScaleKey, type ScaleType, type Scales, type ScatterPlotFeature, type ScatterRequestOptions, type ScatterResponse, type SchemaField, SchemaFieldType, type SortColumnType, type SortDirection, type SourceOptionalOptions, type SourceOptions, type SourceRequiredOptions, type SpatialDataType, type SpatialFilter, type SpatialFilterPolyfillMode, SpatialIndex, SpatialIndexColumn, type SpatialIndexTile, type StringSearchOptions, TEXT_LABEL_INDEX, TEXT_NUMBER_FORMATTER, TEXT_OUTLINE_OPACITY, type TableRequestOptions, type TableResponse, type TableSourceOptions, type Tile, type TileFeatureExtractOptions, type TileFeatures, type TileFeaturesSpatialIndexOptions, TileFormat, type TileResolution, type Tilejson, type TilejsonResult, type TilesetSourceOptions, type Tilestats, type TimeSeriesRequestOptions, type TimeSeriesResponse, type TrajectoryQuerySourceOptions, type TrajectoryQuerySourceResponse, type TrajectoryTableSourceOptions, type TrajectoryTableSourceResponse, type VectorLayer, type VectorQuerySourceOptions, type VectorQuerySourceResponse, type VectorTableSourceOptions, type VectorTableSourceResponse, type VectorTilesetSourceOptions, type VectorTilesetSourceResponse, type ViewState, type Viewport, type WidgetFeatureGeometryType, WidgetQuerySource, type WidgetQuerySourceResult, WidgetRasterSource, type WidgetRasterSourceProps, type WidgetRasterSourceResult, WidgetRemoteSource, type WidgetRemoteSourceProps, WidgetSource, type WidgetSourceProps, WidgetTableSource, type WidgetTableSourceResult, WidgetTilesetSource, type WidgetTilesetSourceProps, type WidgetTilesetSourceResult, type _DataFilterExtensionProps, ErrorCode as _ErrorCode, type VecExprResult as _VecExprResult, applyLayerGroupFilters as _applyLayerGroupFilters, _buildFeatureFilter, createVecExprEvaluator as _createVecExprEvaluator, domainFromValues as _domainFromValues, evaluateVecExpr as _evaluateVecExpr, fillInMapDatasets as _fillInMapDatasets, fillInTileStats as _fillInTileStats, _getHexagonResolution, getLog10ScaleSteps as _getLog10ScaleSteps, getRasterTileLayerStyleProps as _getRasterTileLayerStyleProps, validateVecExprSyntax as _validateVecExprSyntax, addFilter, aggregate, aggregationFunctions, applyFilters, applySorting, boundaryQuerySource, boundaryTableSource, buildBinaryFeatureFilter, buildPublicMapUrl, buildStatsUrl, calculateClusterRadius, calculateClusterTextFontSize, calculateLayerScale, clearDefaultRequestCache, clearFilters, compileCustomAggregation, configureSource, createColorScale, createPolygonSpatialFilter, createViewportSpatialFilter, fetchBasemapProps, fetchMap, filterFunctions, geojsonFeatures, getApplicableFilters, getClient, getColorAccessor, getColumnNameFromGeoColumn, getDataFilterExtensionProps, getDefaultAggregationExpColumnAliasForLayerType, getFilter, getIconUrlAccessor, getLayerDescriptor, getLayerProps, getMaxMarkerSize, getSizeAccessor, getSorter, getSpatialIndexFromGeoColumn, getTextAccessor, groupValuesByColumn, groupValuesByDateColumn, h3QuerySource, h3TableSource, h3TilesetSource, hasFilter, histogram, makeIntervalComplete, negateAccessor, opacityToAlpha, parseMap, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, query, rasterSource, removeFilter, requestWithParameters, scaleAggregationResLevel, scatterPlot, setClient, tileFeatures, tileFeaturesGeometries, tileFeaturesSpatialIndex, trajectoryQuerySource, trajectoryTableSource, transformToTileCoords, vectorQuerySource, vectorTableSource, vectorTilesetSource };
2365
+ export { type APIErrorContext, type APIRequestType, AUDIT_TAGS, type AddFilterOptions, type AggregationFunction, type AggregationType, AggregationTypes, type AggregationsRequestOptions, type AggregationsResponse, ApiVersion, type Attribute, type AuthMode, type AuthOptions, _default as BASEMAP, type BaseRequestOptions, type Basemap, type BoundaryQuerySourceOptions, type BoundaryQuerySourceResponse, type BoundaryTableSourceOptions, type BoundaryTableSourceResponse, CARTO_SOURCES, CartoAPIError, type CategoryOrderBy, type CategoryRequestOptions, type CategoryResponse, type CategoryResponseEntry, type CategoryResponseRaw, CellSet, type ColumnsOption, type D3Scale, DEFAULT_API_BASE_URL, type ExtentRequestOptions, type ExtentResponse, FEATURE_GEOM_PROPERTY, type FeaturesRequestOptions, type FeaturesResponse, type FetchMapOptions, type FetchMapResult, type Filter, type FilterFunction, type FilterInterval, type FilterIntervalComplete, type FilterIntervalExtremum, type FilterLogicalOperator, type FilterOptions, FilterType, type Filters, type Format, type FormulaRequestOptions, type FormulaResponse, type GeometrySpatialFilter, type GetFilterOptions, type GoogleBasemap, type GroupByFeature, type GroupDateType, type H3QuerySourceOptions, type H3QuerySourceResponse, type H3TableSourceOptions, type H3TableSourceResponse, type H3TilesetSourceOptions, type H3TilesetSourceResponse, type HasFilterOptions, type HistogramRequestOptions, type HistogramResponse, type KeplerMapConfig, type Layer, type LayerDescriptor, type LayerType, type MapLibreBasemap, type MapType, type NamedQueryParameter, OPACITY_MAP, OTHERS_CATEGORY_NAME, type ParseMapResult, type PositionalQueryParameter, Provider, type ProviderType, type QuadbinQuerySourceOptions, type QuadbinQuerySourceResponse, type QuadbinTableSourceOptions, type QuadbinTableSourceResponse, type QuadbinTilesetSourceOptions, type QuadbinTilesetSourceResponse, type QueryOptions, type QueryParameterValue, type QueryParameters, type QueryResult, type QuerySourceOptions, type RangeRequestOptions, type RangeResponse, type Raster, RasterBandColorinterp, type RasterBandType, type RasterMetadata, type RasterMetadataBand, type RasterMetadataBandStats, type RasterSourceOptions, type RasterTile, type RemoveFilterOptions, SOURCE_DEFAULTS, type Scale, type ScaleKey, type ScaleType, type Scales, type ScatterPlotFeature, type ScatterRequestOptions, type ScatterResponse, type SchemaField, SchemaFieldType, type SortColumnType, type SortDirection, type SourceOptionalOptions, type SourceOptions, type SourceRequiredOptions, type SpatialDataType, type SpatialFilter, type SpatialFilterPolyfillMode, SpatialIndex, SpatialIndexColumn, type SpatialIndexFilter, type SpatialIndexTile, type StringSearchOptions, TEXT_LABEL_INDEX, TEXT_NUMBER_FORMATTER, TEXT_OUTLINE_OPACITY, type TableRequestOptions, type TableResponse, type TableSourceOptions, type Tile, type TileFeatureExtractOptions, type TileFeatures, type TileFeaturesSpatialIndexOptions, TileFormat, type TileResolution, type Tilejson, type TilejsonResult, type TilesetSourceOptions, type Tilestats, type TimeSeriesRequestOptions, type TimeSeriesResponse, type TrajectoryQuerySourceOptions, type TrajectoryQuerySourceResponse, type TrajectoryTableSourceOptions, type TrajectoryTableSourceResponse, type VectorLayer, type VectorQuerySourceOptions, type VectorQuerySourceResponse, type VectorTableSourceOptions, type VectorTableSourceResponse, type VectorTilesetSourceOptions, type VectorTilesetSourceResponse, type ViewState, type Viewport, type WidgetFeatureGeometryType, WidgetQuerySource, type WidgetQuerySourceResult, WidgetRasterSource, type WidgetRasterSourceProps, type WidgetRasterSourceResult, WidgetRemoteSource, type WidgetRemoteSourceProps, WidgetSource, type WidgetSourceProps, WidgetTableSource, type WidgetTableSourceResult, WidgetTilesetSource, type WidgetTilesetSourceProps, type WidgetTilesetSourceResult, type _DataFilterExtensionProps, ErrorCode as _ErrorCode, type VecExprResult as _VecExprResult, applyLayerGroupFilters as _applyLayerGroupFilters, _buildFeatureFilter, createVecExprEvaluator as _createVecExprEvaluator, domainFromValues as _domainFromValues, evaluateVecExpr as _evaluateVecExpr, fillInMapDatasets as _fillInMapDatasets, fillInTileStats as _fillInTileStats, _getHexagonResolution, getLog10ScaleSteps as _getLog10ScaleSteps, getPointsAggregationLevel as _getPointsAggregationLevel, getRasterTileLayerStyleProps as _getRasterTileLayerStyleProps, validateVecExprSyntax as _validateVecExprSyntax, addFilter, aggregate, aggregationFunctions, applyFilters, applySorting, boundaryQuerySource, boundaryTableSource, buildAuthHeaders, buildBinaryFeatureFilter, buildPublicMapUrl, buildStatsUrl, calculateClusterRadius, calculateClusterTextFontSize, calculateLayerScale, clearDefaultRequestCache, clearFilters, compileCustomAggregation, configureSource, createColorScale, createPolygonSpatialFilter, createViewportSpatialFilter, fetchBasemapProps, fetchMap, filterFunctions, geojsonFeatures, getApplicableFilters, getAuthCredentials, getClient, getColorAccessor, getColumnNameFromGeoColumn, getDataFilterExtensionProps, getDefaultAggregationExpColumnAliasForLayerType, getFilter, getIconUrlAccessor, getLayerDescriptor, getLayerProps, getMaxMarkerSize, getSizeAccessor, getSorter, getSpatialIndexFromGeoColumn, getTextAccessor, groupValuesByColumn, groupValuesByDateColumn, h3QuerySource, h3TableSource, h3TilesetSource, hasFilter, histogram, isSpatialIndexFilter, makeIntervalComplete, negateAccessor, opacityToAlpha, parseMap, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, query, rasterSource, removeFilter, requestWithParameters, rewriteUrlForSessionMode, scaleAggregationResLevel, scatterPlot, setClient, tileFeatures, tileFeaturesGeometries, tileFeaturesSpatialIndex, trajectoryQuerySource, trajectoryTableSource, transformToTileCoords, vectorQuerySource, vectorTableSource, vectorTilesetSource };