@geolens/sdk 1.21.1 → 1.22.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.
@@ -370,6 +370,18 @@ export type AdminJobResponse = {
370
370
  * Why the job cannot be retried, when retry is unavailable.
371
371
  */
372
372
  retry_reason: string | null;
373
+ /**
374
+ * Source Url
375
+ *
376
+ * Service URL a service import was started from, with userinfo and credential query values redacted. Null for every other job.
377
+ */
378
+ source_url?: string | null;
379
+ /**
380
+ * Restart Source
381
+ *
382
+ * Import tab a failed job whose retry is refused can be started again from: 'url' for a file URL import, 'service' for a service import. Null otherwise.
383
+ */
384
+ restart_source?: 'url' | 'service' | null;
373
385
  /**
374
386
  * User Metadata
375
387
  *
@@ -3069,7 +3081,7 @@ export type DatasetRefreshRequest = {
3069
3081
  /**
3070
3082
  * Accept Blocked Run Id
3071
3083
  *
3072
- * A blocked run whose reviewed source and staged content may be accepted. The refresh that uses the acceptance holds it until it ends, and a cancelled or failed refresh gives it back. A different result blocks again.
3084
+ * A blocked run whose reviewed source and staged content may be accepted. The refresh that uses the acceptance holds it until it ends, and a cancelled or failed refresh gives it back. A different result blocks again. A blocked file replacement is accepted from the upload its run kept.
3073
3085
  */
3074
3086
  accept_blocked_run_id?: string | null;
3075
3087
  /**
@@ -3168,7 +3180,7 @@ export type DatasetRefreshRunResponse = {
3168
3180
  /**
3169
3181
  * Origin Kind
3170
3182
  *
3171
- * The run's execution door, not the dataset's origin: upload, postgis, service, stac, or raster. The two can visibly diverge; for example a STAC-imported raster's pending or failed replace run is recorded 'upload' while the dataset's origin stays 'stac' until the replace succeeds. 'raster' itself is reserved for a future, distinct raster-replace door label, with today's raster-replace runs recorded 'upload'.
3183
+ * The run's execution door, not the dataset's origin: upload, postgis, service, stac, raster, or restore (the previous version published again). The two can visibly diverge; for example a STAC-imported raster's pending or failed replace run is recorded 'upload' while the dataset's origin stays 'stac' until the replace succeeds. 'raster' itself is reserved for a future, distinct raster-replace door label, with today's raster-replace runs recorded 'upload'.
3172
3184
  */
3173
3185
  origin_kind: string;
3174
3186
  /**
@@ -3674,6 +3686,10 @@ export type DatasetResponse = {
3674
3686
  * Advisory warnings produced by a metadata update — e.g. a visibility or status change exposing keywords inherited from an analysis source the new audience cannot open. Only ever set on the PATCH response; the change has already applied.
3675
3687
  */
3676
3688
  metadata_warnings?: Array<string> | null;
3689
+ /**
3690
+ * The data the last replacement or restore replaced, which POST /previous-version/restore publishes again. Set on the detail endpoint only; null elsewhere and when there is none.
3691
+ */
3692
+ previous_version?: PreviousVersionResponse | null;
3677
3693
  };
3678
3694
  /**
3679
3695
  * DatasetRowsResponse
@@ -3769,6 +3785,12 @@ export type DatasetVersionResponse = {
3769
3785
  * Uploaded At
3770
3786
  */
3771
3787
  uploaded_at: string;
3788
+ /**
3789
+ * Restored From Version
3790
+ *
3791
+ * The version a restore published again as this one
3792
+ */
3793
+ restored_from_version?: number | null;
3772
3794
  };
3773
3795
  /**
3774
3796
  * DbfTruncationCollisionWarning
@@ -4082,7 +4104,7 @@ export type DryRunResponse = {
4082
4104
  /**
4083
4105
  * Preview Token
4084
4106
  *
4085
- * Short-lived signed confirmation token required to apply an overwrite. Bound to the normalized payload, overwrite mode, and current configuration state.
4107
+ * Short-lived signed confirmation token required to apply an overwrite, or a merge that would delete the stored embeddings. Bound to the normalized payload, mode, and current configuration state.
4086
4108
  */
4087
4109
  preview_token?: string | null;
4088
4110
  };
@@ -7053,6 +7075,12 @@ export type OgcFeatureCollectionResponse = {
7053
7075
  * Total records matching the query
7054
7076
  */
7055
7077
  numberMatched: number;
7078
+ /**
7079
+ * Numbermatchedalltypes
7080
+ *
7081
+ * Total records matching the query with record_type removed and every other filter kept; present only when record_type is set
7082
+ */
7083
+ numberMatchedAllTypes?: number | null;
7056
7084
  /**
7057
7085
  * Numberreturned
7058
7086
  *
@@ -7749,6 +7777,35 @@ export type PreviewResponse = {
7749
7777
  [key: string]: unknown;
7750
7778
  } | null;
7751
7779
  };
7780
+ /**
7781
+ * PreviousVersionResponse
7782
+ *
7783
+ * The data a replacement or restore replaced, kept until the next one.
7784
+ */
7785
+ export type PreviousVersionResponse = {
7786
+ /**
7787
+ * Version Number
7788
+ *
7789
+ * The version whose data is kept
7790
+ */
7791
+ version_number: number;
7792
+ /**
7793
+ * Retained At
7794
+ */
7795
+ retained_at?: string | null;
7796
+ /**
7797
+ * Size Bytes
7798
+ *
7799
+ * Its table's size; not counted toward quota
7800
+ */
7801
+ size_bytes?: number | null;
7802
+ /**
7803
+ * Feature Count
7804
+ *
7805
+ * As recorded on that version
7806
+ */
7807
+ feature_count?: number | null;
7808
+ };
7752
7809
  /**
7753
7810
  * ProbeRequest
7754
7811
  */
@@ -8267,14 +8324,28 @@ export type RefreshVerification = {
8267
8324
  * Staged Coordinate Dimension
8268
8325
  */
8269
8326
  staged_coordinate_dimension?: number | null;
8327
+ /**
8328
+ * Geometry Contract
8329
+ */
8330
+ geometry_contract?: {
8331
+ [key: string]: unknown;
8332
+ } | null;
8270
8333
  /**
8271
8334
  * Review Reasons
8272
8335
  */
8273
- review_reasons: Array<'source_count_unavailable' | 'empty_result' | 'destructive_schema_change' | 'arcgis_id_coverage_unavailable' | 'arcgis_source_membership_changed'>;
8336
+ review_reasons: Array<'source_count_unavailable' | 'empty_result' | 'destructive_schema_change' | 'geometry_type_changed' | 'srid_changed' | 'coordinate_dimension_reduced' | 'arcgis_id_coverage_unavailable' | 'arcgis_source_membership_changed'>;
8274
8337
  /**
8275
8338
  * Review Fingerprint
8339
+ *
8340
+ * Identifies what a blocked run asks a person to accept. A service refresh fingerprints all of its evidence, so its acceptance must fetch the same data again. A file replacement fingerprints only its review reasons, removed columns, type changes and, for a geometry reason, the geometry facts, which is what its preview shows.
8276
8341
  */
8277
8342
  review_fingerprint: string | null;
8343
+ /**
8344
+ * Review Acknowledged By
8345
+ *
8346
+ * Why a file replacement with review reasons published: its commit carried the preview's fingerprint, or a person accepted a blocked run with the same changes.
8347
+ */
8348
+ review_acknowledged_by?: 'preview' | 'accepted_run' | null;
8278
8349
  /**
8279
8350
  * Accepted Blocked Run Id
8280
8351
  */
@@ -8424,6 +8495,30 @@ export type ReservedRenameWarning = {
8424
8495
  */
8425
8496
  details: Array<ReservedRenameDetail>;
8426
8497
  };
8498
+ /**
8499
+ * RestorePreviousVersionRequest
8500
+ */
8501
+ export type RestorePreviousVersionRequest = {
8502
+ /**
8503
+ * Expected Version Number
8504
+ *
8505
+ * The previous version the caller confirmed restoring
8506
+ */
8507
+ expected_version_number: number;
8508
+ };
8509
+ /**
8510
+ * RestorePreviousVersionResponse
8511
+ */
8512
+ export type RestorePreviousVersionResponse = {
8513
+ /**
8514
+ * Job Id
8515
+ */
8516
+ job_id: string;
8517
+ /**
8518
+ * Run Id
8519
+ */
8520
+ run_id: string;
8521
+ };
8427
8522
  /**
8428
8523
  * ReuploadCommitRequest
8429
8524
  */
@@ -8452,6 +8547,12 @@ export type ReuploadCommitRequest = {
8452
8547
  * Structured credential for a protected service. Mutually exclusive with the token field.
8453
8548
  */
8454
8549
  auth?: ServiceAuthRequest | null;
8550
+ /**
8551
+ * Review Fingerprint
8552
+ *
8553
+ * The preview's `review_fingerprint`, sent once a person has seen the changes it describes. A file replacement with review reasons publishes only when the worker's own fingerprint matches; otherwise its run ends `blocked`. Service re-uploads ignore it.
8554
+ */
8555
+ review_fingerprint?: string | null;
8455
8556
  };
8456
8557
  /**
8457
8558
  * ReuploadCommitResponse
@@ -8478,6 +8579,12 @@ export type ReuploadPreviewRequest = {
8478
8579
  * Layer Name
8479
8580
  */
8480
8581
  layer_name?: string | null;
8582
+ /**
8583
+ * Srid Override
8584
+ *
8585
+ * The SRID override the commit will send, so the preview judges the coordinate system the replacement will be stored in.
8586
+ */
8587
+ srid_override?: number | null;
8481
8588
  };
8482
8589
  /**
8483
8590
  * ReuploadPreviewResponse
@@ -8528,6 +8635,18 @@ export type ReuploadPreviewResponse = {
8528
8635
  * Previous Source Layer
8529
8636
  */
8530
8637
  previous_source_layer?: string | null;
8638
+ /**
8639
+ * Review Reasons
8640
+ *
8641
+ * Changes in this file replacement that hold it for review. Empty for a service re-upload, which is not judged at preview.
8642
+ */
8643
+ review_reasons?: Array<'source_count_unavailable' | 'empty_result' | 'destructive_schema_change' | 'geometry_type_changed' | 'srid_changed' | 'coordinate_dimension_reduced' | 'arcgis_id_coverage_unavailable' | 'arcgis_source_membership_changed'>;
8644
+ /**
8645
+ * Review Fingerprint
8646
+ *
8647
+ * Fingerprint of the reviewed changes. Send it as the commit's `review_fingerprint` once a person has seen them; null when nothing needs review.
8648
+ */
8649
+ review_fingerprint?: string | null;
8531
8650
  };
8532
8651
  /**
8533
8652
  * ReuploadResponse
@@ -9097,6 +9216,12 @@ export type SettingItem = {
9097
9216
  * Human-readable label for display in the admin UI.
9098
9217
  */
9099
9218
  label: string;
9219
+ /**
9220
+ * Default Value
9221
+ *
9222
+ * Runtime default the setting resets to. Reported only for embedding_dims, so the UI can tell whether a reset changes the live width.
9223
+ */
9224
+ default_value?: unknown;
9100
9225
  };
9101
9226
  /**
9102
9227
  * SettingsAllResponse
@@ -9703,6 +9828,12 @@ export type StacConnectResponse = {
9703
9828
  * STAC specification version.
9704
9829
  */
9705
9830
  stac_version: string;
9831
+ /**
9832
+ * Conforms To
9833
+ *
9834
+ * Conformance classes from the landing page conformsTo, which tell a client which search extensions the catalog supports.
9835
+ */
9836
+ conforms_to?: Array<string>;
9706
9837
  };
9707
9838
  /**
9708
9839
  * StacContext
@@ -10208,6 +10339,19 @@ export type StacLink = {
10208
10339
  */
10209
10340
  method?: string | null;
10210
10341
  };
10342
+ /**
10343
+ * StacNextPage
10344
+ *
10345
+ * Opaque handle for the next page of a search.
10346
+ */
10347
+ export type StacNextPage = {
10348
+ /**
10349
+ * Cursor
10350
+ *
10351
+ * Server-issued token for the next page. Echo the next_page of the previous response unchanged, with the same url and collections; a missing or altered cursor is refused.
10352
+ */
10353
+ cursor?: string | null;
10354
+ };
10211
10355
  /**
10212
10356
  * StacSearchBody
10213
10357
  *
@@ -10298,6 +10442,22 @@ export type StacSearchRequest = {
10298
10442
  * Structured credential for a protected service. Mutually exclusive with the token field.
10299
10443
  */
10300
10444
  auth?: ServiceAuthRequest | null;
10445
+ /**
10446
+ * Max Cloud Cover
10447
+ *
10448
+ * Only items at or below this eo:cloud_cover percentage.
10449
+ */
10450
+ max_cloud_cover?: number | null;
10451
+ /**
10452
+ * Cloud Cover Mode
10453
+ *
10454
+ * How to send max_cloud_cover: 'query' for the STAC Query extension, 'filter' for CQL2 JSON. Pick the one the catalog lists in its landing page conformsTo.
10455
+ */
10456
+ cloud_cover_mode?: 'query' | 'filter' | null;
10457
+ /**
10458
+ * The next_page of the previous response, to fetch the page after it. Send the same filters as the first request.
10459
+ */
10460
+ next_page?: StacNextPage | null;
10301
10461
  };
10302
10462
  /**
10303
10463
  * StacSearchResponse
@@ -10321,6 +10481,10 @@ export type StacSearchResponse = {
10321
10481
  * Number of items in this response.
10322
10482
  */
10323
10483
  returned: number;
10484
+ /**
10485
+ * Link to the next page of results, or null on the last page. Send it back as next_page with the same filters.
10486
+ */
10487
+ next_page?: StacNextPage | null;
10324
10488
  };
10325
10489
  /**
10326
10490
  * StaleCleanupResponse
@@ -15998,7 +16162,7 @@ export type ImportConfigurationConfigOpsImportPostData = {
15998
16162
  /**
15999
16163
  * X-Config-Preview-Token
16000
16164
  *
16001
- * Signed token returned by the matching dry-run. Required for overwrite mode.
16165
+ * Signed token returned by the matching dry-run. Required for overwrite mode and for a merge that would delete the stored embeddings.
16002
16166
  */
16003
16167
  'X-Config-Preview-Token'?: string | null;
16004
16168
  };
@@ -16045,7 +16209,7 @@ export type ImportConfigurationConfigOpsImportPostErrors = {
16045
16209
  */
16046
16210
  500: ProblemDetail;
16047
16211
  /**
16048
- * Service unavailable — the database could not serve the request
16212
+ * Service unavailable — the configuration could not be applied
16049
16213
  */
16050
16214
  503: ProblemDetail;
16051
16215
  };
@@ -18766,6 +18930,127 @@ export type DatasetMapsDatasetsDatasetIdMapsGetResponses = {
18766
18930
  200: MapListResponse;
18767
18931
  };
18768
18932
  export type DatasetMapsDatasetsDatasetIdMapsGetResponse = DatasetMapsDatasetsDatasetIdMapsGetResponses[keyof DatasetMapsDatasetsDatasetIdMapsGetResponses];
18933
+ export type DeletePreviousVersionDatasetsDatasetIdPreviousVersionDeleteData = {
18934
+ body?: never;
18935
+ path: {
18936
+ /**
18937
+ * Dataset Id
18938
+ */
18939
+ dataset_id: string;
18940
+ };
18941
+ query: {
18942
+ /**
18943
+ * Expected Version Number
18944
+ *
18945
+ * The previous version the caller confirmed deleting
18946
+ */
18947
+ expected_version_number: number;
18948
+ };
18949
+ url: '/datasets/{dataset_id}/previous-version';
18950
+ };
18951
+ export type DeletePreviousVersionDatasetsDatasetIdPreviousVersionDeleteErrors = {
18952
+ /**
18953
+ * Bad request — invalid payload
18954
+ */
18955
+ 400: ProblemDetail;
18956
+ /**
18957
+ * Unauthorized — missing or invalid credentials
18958
+ */
18959
+ 401: ProblemDetail;
18960
+ /**
18961
+ * Forbidden — caller lacks write access
18962
+ */
18963
+ 403: ProblemDetail;
18964
+ /**
18965
+ * Not found
18966
+ */
18967
+ 404: ProblemDetail;
18968
+ /**
18969
+ * Conflict — resource state prevents the operation
18970
+ */
18971
+ 409: ProblemDetail;
18972
+ /**
18973
+ * Validation error
18974
+ */
18975
+ 422: ProblemDetail;
18976
+ /**
18977
+ * Too many requests — retry after the advertised interval
18978
+ */
18979
+ 429: ProblemDetail;
18980
+ /**
18981
+ * Internal server error
18982
+ */
18983
+ 500: ProblemDetail;
18984
+ /**
18985
+ * Service unavailable — the database could not serve the request
18986
+ */
18987
+ 503: ProblemDetail;
18988
+ };
18989
+ export type DeletePreviousVersionDatasetsDatasetIdPreviousVersionDeleteError = DeletePreviousVersionDatasetsDatasetIdPreviousVersionDeleteErrors[keyof DeletePreviousVersionDatasetsDatasetIdPreviousVersionDeleteErrors];
18990
+ export type DeletePreviousVersionDatasetsDatasetIdPreviousVersionDeleteResponses = {
18991
+ /**
18992
+ * Successful Response
18993
+ */
18994
+ 204: void;
18995
+ };
18996
+ export type DeletePreviousVersionDatasetsDatasetIdPreviousVersionDeleteResponse = DeletePreviousVersionDatasetsDatasetIdPreviousVersionDeleteResponses[keyof DeletePreviousVersionDatasetsDatasetIdPreviousVersionDeleteResponses];
18997
+ export type RestorePreviousVersionDatasetsDatasetIdPreviousVersionRestorePostData = {
18998
+ body: RestorePreviousVersionRequest;
18999
+ path: {
19000
+ /**
19001
+ * Dataset Id
19002
+ */
19003
+ dataset_id: string;
19004
+ };
19005
+ query?: never;
19006
+ url: '/datasets/{dataset_id}/previous-version/restore';
19007
+ };
19008
+ export type RestorePreviousVersionDatasetsDatasetIdPreviousVersionRestorePostErrors = {
19009
+ /**
19010
+ * Bad request — invalid payload
19011
+ */
19012
+ 400: ProblemDetail;
19013
+ /**
19014
+ * Unauthorized — missing or invalid credentials
19015
+ */
19016
+ 401: ProblemDetail;
19017
+ /**
19018
+ * Forbidden — caller lacks write access
19019
+ */
19020
+ 403: ProblemDetail;
19021
+ /**
19022
+ * Not found
19023
+ */
19024
+ 404: ProblemDetail;
19025
+ /**
19026
+ * Conflict — resource state prevents the operation
19027
+ */
19028
+ 409: ProblemDetail;
19029
+ /**
19030
+ * Validation error
19031
+ */
19032
+ 422: ProblemDetail;
19033
+ /**
19034
+ * Too many requests — retry after the advertised interval
19035
+ */
19036
+ 429: ProblemDetail;
19037
+ /**
19038
+ * Internal server error
19039
+ */
19040
+ 500: ProblemDetail;
19041
+ /**
19042
+ * Service unavailable — the database could not serve the request
19043
+ */
19044
+ 503: ProblemDetail;
19045
+ };
19046
+ export type RestorePreviousVersionDatasetsDatasetIdPreviousVersionRestorePostError = RestorePreviousVersionDatasetsDatasetIdPreviousVersionRestorePostErrors[keyof RestorePreviousVersionDatasetsDatasetIdPreviousVersionRestorePostErrors];
19047
+ export type RestorePreviousVersionDatasetsDatasetIdPreviousVersionRestorePostResponses = {
19048
+ /**
19049
+ * Successful Response
19050
+ */
19051
+ 202: RestorePreviousVersionResponse;
19052
+ };
19053
+ export type RestorePreviousVersionDatasetsDatasetIdPreviousVersionRestorePostResponse = RestorePreviousVersionDatasetsDatasetIdPreviousVersionRestorePostResponses[keyof RestorePreviousVersionDatasetsDatasetIdPreviousVersionRestorePostResponses];
18769
19054
  export type GetQuicklookDatasetsDatasetIdQuicklookGetData = {
18770
19055
  body?: never;
18771
19056
  path: {
@@ -25534,6 +25819,10 @@ export type UpdateSettingsSettingsPutErrors = {
25534
25819
  * Not found
25535
25820
  */
25536
25821
  404: ProblemDetail;
25822
+ /**
25823
+ * Conflict — another embedding change holds the lock
25824
+ */
25825
+ 409: ProblemDetail;
25537
25826
  /**
25538
25827
  * Validation error
25539
25828
  */
@@ -25547,7 +25836,7 @@ export type UpdateSettingsSettingsPutErrors = {
25547
25836
  */
25548
25837
  500: ProblemDetail;
25549
25838
  /**
25550
- * Service unavailable — the database could not serve the request
25839
+ * Service unavailable — the embedding vector column could not be rebuilt
25551
25840
  */
25552
25841
  503: ProblemDetail;
25553
25842
  };
@@ -26290,6 +26579,10 @@ export type ResetSettingsSettingsResetPostErrors = {
26290
26579
  * Not found
26291
26580
  */
26292
26581
  404: ProblemDetail;
26582
+ /**
26583
+ * Conflict — another embedding change holds the lock
26584
+ */
26585
+ 409: ProblemDetail;
26293
26586
  /**
26294
26587
  * Validation error
26295
26588
  */
@@ -26303,7 +26596,7 @@ export type ResetSettingsSettingsResetPostErrors = {
26303
26596
  */
26304
26597
  500: ProblemDetail;
26305
26598
  /**
26306
- * Service unavailable — the database could not serve the request
26599
+ * Service unavailable — the embedding vector column could not be rebuilt
26307
26600
  */
26308
26601
  503: ProblemDetail;
26309
26602
  };