@geolens/sdk 1.24.0 → 1.25.0

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.
@@ -71,17 +71,10 @@ export const listApiKeysAdminApiKeysGet = (options) => (options?.client ?? clien
71
71
  * Create an API key for a user (admin only).
72
72
  *
73
73
  * The raw key is returned only in this response and cannot be retrieved again.
74
+ * Requires a signed-in session: a request that presents an API key gets 403.
74
75
  */
75
76
  export const createApiKeyAdminApiKeysPost = (options) => (options.client ?? client).post({
76
- security: [
77
- { scheme: 'bearer', type: 'http' },
78
- { name: 'X-Api-Key', type: 'apiKey' },
79
- {
80
- in: 'query',
81
- name: 'api_key',
82
- type: 'apiKey'
83
- }
84
- ],
77
+ security: [{ scheme: 'bearer', type: 'http' }],
85
78
  url: '/admin/api-keys/',
86
79
  ...options,
87
80
  headers: {
@@ -806,9 +799,10 @@ export const generateMetadataSummaryAiMetadataSummaryPost = (options) => (option
806
799
  * Surfaces the column-DDL events to dataset owners so they can detect
807
800
  * editor-initiated schema changes.
808
801
  *
809
- * Owners and administrators can read the feed. Other authenticated users
810
- * receive 404, including readers of a public dataset, because the entries
811
- * identify editors. Anonymous callers receive 401.
802
+ * Owners and administrators can read the feed, because the entries identify
803
+ * editors. Other authenticated users receive 403 for a dataset they can see,
804
+ * such as a public one, and 404 for one they can't. Anonymous callers
805
+ * receive 401.
812
806
  *
813
807
  * The dataset 404-before-auth-query ordering ensures non-existent datasets
814
808
  * return 404 without leaking audit log details.
@@ -850,17 +844,10 @@ export const listMyApiKeysAuthApiKeysGet = (options) => (options?.client ?? clie
850
844
  * Create an API key for the current user.
851
845
  *
852
846
  * The raw key is returned only in this response and cannot be retrieved again.
847
+ * Requires a signed-in session: a request that presents an API key gets 403.
853
848
  */
854
849
  export const createMyApiKeyAuthApiKeysPost = (options) => (options.client ?? client).post({
855
- security: [
856
- { scheme: 'bearer', type: 'http' },
857
- { name: 'X-Api-Key', type: 'apiKey' },
858
- {
859
- in: 'query',
860
- name: 'api_key',
861
- type: 'apiKey'
862
- }
863
- ],
850
+ security: [{ scheme: 'bearer', type: 'http' }],
864
851
  url: '/auth/api-keys/',
865
852
  ...options,
866
853
  headers: {
@@ -3176,6 +3163,7 @@ export const commitImportIngestCommitJobIdPost = (options) => (options.client ??
3176
3163
  * system tables. Includes geometry type, SRID, and estimated row count.
3177
3164
  * Bounded by ``limit`` (default 1000, max 5000) so instances with
3178
3165
  * thousands of orphan tables don't blow up the response payload.
3166
+ * Administrators only.
3179
3167
  */
3180
3168
  export const discoverTablesIngestDiscoverGet = (options) => (options?.client ?? client).get({
3181
3169
  security: [
@@ -3245,7 +3233,7 @@ export const previewFileIngestPreviewJobIdPost = (options) => (options.client ??
3245
3233
  * Register an existing PostGIS table as a dataset.
3246
3234
  *
3247
3235
  * Verifies the table exists, extracts metadata, and creates a
3248
- * catalog entry.
3236
+ * catalog entry. Administrators only.
3249
3237
  */
3250
3238
  export const registerTableIngestRegisterPost = (options) => (options.client ?? client).post({
3251
3239
  security: [
@@ -3269,10 +3257,10 @@ export const registerTableIngestRegisterPost = (options) => (options.client ?? c
3269
3257
  *
3270
3258
  * Bulk-register multiple existing PostGIS tables as datasets.
3271
3259
  *
3272
- * Each table is registered independently -- one failure does not block
3273
- * others. Tables are processed in parallel via ``asyncio.gather`` with
3274
- * a fresh session per task, which keeps transaction isolation while
3275
- * removing the sequential per-table latency.
3260
+ * Administrators only. Each table is registered independently -- one
3261
+ * failure does not block others. Each table gets its own session, and at most
3262
+ * ``_BULK_REGISTER_CONCURRENCY`` run at once so one batch cannot drain the
3263
+ * shared connection pool.
3276
3264
  */
3277
3265
  export const bulkRegisterTablesIngestRegisterBulkPost = (options) => (options.client ?? client).post({
3278
3266
  security: [
@@ -4256,9 +4244,8 @@ export const removeLayerEndpointMapsMapIdLayersLayerIdDelete = (options) => (opt
4256
4244
  *
4257
4245
  * Serve the OG social-card image from storage (visibility-checked).
4258
4246
  *
4259
- * Uses ``public, max-age=86400`` for public maps — OG images change
4260
- * less often than thumbnails (which use 3600s). Mirrors get_thumbnail
4261
- * but reads ``og_image_uri`` and uses the ``maps/og-images/`` key space.
4247
+ * Mirrors get_thumbnail but reads ``og_image_uri`` and uses the
4248
+ * ``maps/og-images/`` key space.
4262
4249
  */
4263
4250
  export const getOgImageMapsMapIdOgImageGet = (options) => (options.client ?? client).get({
4264
4251
  security: [
@@ -5204,7 +5191,7 @@ export const getAllSettingsSettingsAllGet = (options) => (options?.client ?? cli
5204
5191
  /**
5205
5192
  * Get Api Key Status
5206
5193
  *
5207
- * Return which LLM API keys are configured (without exposing values).
5194
+ * Return which LLM providers are configured (without exposing values).
5208
5195
  */
5209
5196
  export const getApiKeyStatusSettingsApiKeyStatusGet = (options) => (options?.client ?? client).get({
5210
5197
  security: [
@@ -5618,11 +5605,12 @@ export const searchPostStacSearchPost = (options) => (options.client ?? client).
5618
5605
  * dataset needs valid signature parameters (``sig``, ``exp``, ``scope``), an
5619
5606
  * embed token scoped to it, or an API key (``X-Api-Key`` header or
5620
5607
  * ``api_key`` query parameter) or bearer token for a caller with access to
5621
- * it. It answers 403 to a request carrying none of these and 404 to a caller
5622
- * without access. A public dataset that is not yet published is readable by
5623
- * its owner, by an admin, with an embed token, or with valid signature
5624
- * parameters, and answers 404 to other callers, so a refusal keeps its
5625
- * existence undisclosed. An unknown table is 404 too.
5608
+ * it. A public dataset that is not yet published is readable by its owner,
5609
+ * by an admin, with an embed token, or with valid signature parameters. A
5610
+ * caller who cannot see the dataset gets the answer an unknown table gets,
5611
+ * so a refusal never discloses that the table exists: 403 when an embed
5612
+ * token, or an anonymous request's signature parameters, did not authorize
5613
+ * it, and 404 otherwise.
5626
5614
  *
5627
5615
  * A request that no capability authorized and that carried a credential which
5628
5616
  * did not resolve is refused with 401 rather than served as an anonymous
@@ -5642,9 +5630,10 @@ export const searchPostStacSearchPost = (options) => (options.client ?? client).
5642
5630
  * ``If-None-Match`` matches answers 304. Where a deployment runs cold storage,
5643
5631
  * a dataset still being restored answers 202 with a job id to poll. Requests
5644
5632
  * answer 429 with ``Retry-After`` when the per-process capacity for uncached
5645
- * renders is full, tile-pool acquisition times out, a tile query exceeds the
5646
- * pool's per-command timeout, or the configured per-tenant concurrency limit
5647
- * is exceeded. Any other failure serving the tile answers 503.
5633
+ * renders stays full for a short wait, tile-pool acquisition times out, a
5634
+ * tile query exceeds the pool's per-command timeout, or the configured
5635
+ * per-tenant concurrency limit is exceeded. Any other failure serving the
5636
+ * tile answers 503.
5648
5637
  */
5649
5638
  export const clusterTileEndpointTilesClustersTablePathZXYPbfGet = (options) => (options.client ?? client).get({
5650
5639
  security: [
@@ -5675,9 +5664,10 @@ export const clusterTileEndpointTilesClustersTablePathZXYPbfGet = (options) => (
5675
5664
  * ``stretch`` chooses how pixel values map to the output range. ``minmax``
5676
5665
  * keeps the range the dataset already implies: the recorded per-band minimum
5677
5666
  * and maximum for a raster imported from a remote source that published
5678
- * statistics, the data range read from band statistics for floating-point
5679
- * data, a range derived from the data type for other integer data, and no
5680
- * rescale parameter for 8-bit data, which needs none. ``percentile`` and
5667
+ * statistics, the data range read from band statistics for floating-point and
5668
+ * single-band signed integer data, a range derived from the data type for
5669
+ * other integer data, and no rescale parameter for 8-bit data, which needs
5670
+ * none. ``percentile`` and
5681
5671
  * ``stddev`` instead derive a range from band statistics read at request
5682
5672
  * time, for up to three bands. A digital elevation model ignores the
5683
5673
  * parameter, and so does a request whose band statistics cannot be read,
@@ -5795,15 +5785,15 @@ export const getTileTokensBatchTilesTokensPost = (options) => (options.client ??
5795
5785
  * dataset needs valid signature parameters (``sig``, ``exp``, ``scope``), an
5796
5786
  * embed token scoped to it, or an API key (``X-Api-Key`` header or
5797
5787
  * ``api_key`` query parameter) or bearer token for a caller with access to
5798
- * it. It answers 403 to a request carrying none of these and 404 to a caller
5799
- * without access. A tile served on the caller's credentials is marked
5800
- * private, so no shared cache stores it, and a tile requested with
5801
- * ``api_key`` in the query is never marked public. A public dataset that is
5802
- * not yet published is readable by its owner, by an admin, with an embed
5803
- * token, or with valid signature parameters, and answers 404 to other
5804
- * callers, so a refusal keeps its existence undisclosed. An unknown table is
5805
- * 404 too, and so is a dataset without vector tiles, such as a raster, once
5806
- * the caller is authorized to see it.
5788
+ * it. A tile served on the caller's credentials is marked private, so no
5789
+ * shared cache stores it, and a tile requested with ``api_key`` in the query
5790
+ * is never marked public. A public dataset that is not yet published is
5791
+ * readable by its owner, by an admin, with an embed token, or with valid
5792
+ * signature parameters. A caller who cannot see the dataset gets the answer
5793
+ * an unknown table gets, so a refusal never discloses that the table exists:
5794
+ * 403 when an embed token, or an anonymous request's signature parameters,
5795
+ * did not authorize it, and 404 otherwise. A dataset without vector tiles,
5796
+ * such as a raster, is 404 once the caller is authorized to see it.
5807
5797
  *
5808
5798
  * A request that no capability authorized and that carried a credential which
5809
5799
  * did not resolve is refused with 401 rather than served as an anonymous
@@ -5823,9 +5813,10 @@ export const getTileTokensBatchTilesTokensPost = (options) => (options.client ??
5823
5813
  * ``If-None-Match`` matches answers 304. Where a deployment runs cold storage,
5824
5814
  * a dataset still being restored answers 202 with a job id to poll. Requests
5825
5815
  * answer 429 with ``Retry-After`` when the per-process capacity for uncached
5826
- * renders is full, tile-pool acquisition times out, a tile query exceeds the
5827
- * pool's per-command timeout, or the configured per-tenant concurrency limit
5828
- * is exceeded. Any other failure serving the tile answers 503.
5816
+ * renders stays full for a short wait, tile-pool acquisition times out, a
5817
+ * tile query exceeds the pool's per-command timeout, or the configured
5818
+ * per-tenant concurrency limit is exceeded. Any other failure serving the
5819
+ * tile answers 503.
5829
5820
  */
5830
5821
  export const tileEndpointTilesTablePathZXYPbfGet = (options) => (options.client ?? client).get({
5831
5822
  security: [