@geolens/sdk 1.25.1 → 1.26.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.
@@ -198,9 +198,15 @@ export type AdminApiKeyListItem = {
198
198
  /**
199
199
  * Scope
200
200
  *
201
- * Privilege scope: 'full' or 'read_only'.
201
+ * Privilege scope: 'full', 'read_only', 'dataset_write' (reads and writes the features of the dataset in dataset_id, and nothing else), or 'dataset_append' (only creates features in that dataset).
202
202
  */
203
203
  scope: string;
204
+ /**
205
+ * Dataset Id
206
+ *
207
+ * The dataset a 'dataset_write' or 'dataset_append' key is bound to; null for other scopes.
208
+ */
209
+ dataset_id?: string | null;
204
210
  /**
205
211
  * Created At
206
212
  *
@@ -800,9 +806,15 @@ export type ApiKeyCreateResponse = {
800
806
  /**
801
807
  * Scope
802
808
  *
803
- * Privilege scope: 'full' or 'read_only'
809
+ * Privilege scope: 'full', 'read_only', 'dataset_write' (reads and writes the features of the dataset in dataset_id, and nothing else), or 'dataset_append' (only creates features in that dataset)
804
810
  */
805
811
  scope: string;
812
+ /**
813
+ * Dataset Id
814
+ *
815
+ * The dataset a 'dataset_write' or 'dataset_append' key is bound to; null for other scopes
816
+ */
817
+ dataset_id?: string | null;
806
818
  /**
807
819
  * Created At
808
820
  */
@@ -839,9 +851,15 @@ export type ApiKeyListItem = {
839
851
  /**
840
852
  * Scope
841
853
  *
842
- * Privilege scope: 'full' or 'read_only'
854
+ * Privilege scope: 'full', 'read_only', 'dataset_write' (reads and writes the features of the dataset in dataset_id, and nothing else), or 'dataset_append' (only creates features in that dataset)
843
855
  */
844
856
  scope: string;
857
+ /**
858
+ * Dataset Id
859
+ *
860
+ * The dataset a 'dataset_write' or 'dataset_append' key is bound to; null for other scopes
861
+ */
862
+ dataset_id?: string | null;
845
863
  /**
846
864
  * Created At
847
865
  */
@@ -2231,7 +2249,7 @@ export type ColumnDefinition = {
2231
2249
  /**
2232
2250
  * Type
2233
2251
  */
2234
- type: 'text' | 'integer' | 'float' | 'date' | 'boolean';
2252
+ type: 'text' | 'integer' | 'float' | 'date' | 'boolean' | 'timestamp';
2235
2253
  };
2236
2254
  /**
2237
2255
  * ColumnInfo
@@ -2974,6 +2992,103 @@ export type CreateLayerResponse = {
2974
2992
  */
2975
2993
  created_at: string;
2976
2994
  };
2995
+ /**
2996
+ * DatasetApiKeyCreateRequest
2997
+ */
2998
+ export type DatasetApiKeyCreateRequest = {
2999
+ /**
3000
+ * Name
3001
+ *
3002
+ * Human-readable label for the API key
3003
+ */
3004
+ name: string;
3005
+ /**
3006
+ * Expires At
3007
+ *
3008
+ * Expiry timestamp (RFC 3339, timezone-aware), in the future and at most 365 days away. Expired keys stop authenticating.
3009
+ */
3010
+ expires_at: string;
3011
+ /**
3012
+ * Scope
3013
+ *
3014
+ * 'dataset_write' reads and writes the dataset's features. 'dataset_append' only creates features, one or a FeatureCollection per request, and can't read, change or delete them.
3015
+ */
3016
+ scope?: 'dataset_write' | 'dataset_append';
3017
+ };
3018
+ /**
3019
+ * DatasetApiKeyListItem
3020
+ */
3021
+ export type DatasetApiKeyListItem = {
3022
+ /**
3023
+ * Id
3024
+ */
3025
+ id: string;
3026
+ /**
3027
+ * Name
3028
+ */
3029
+ name: string;
3030
+ /**
3031
+ * Fingerprint
3032
+ *
3033
+ * Non-secret key identifier; null for keys created before fingerprint support
3034
+ */
3035
+ fingerprint: string | null;
3036
+ /**
3037
+ * Is Active
3038
+ */
3039
+ is_active: boolean;
3040
+ /**
3041
+ * Expires At
3042
+ *
3043
+ * Expiry timestamp; null means the key does not expire
3044
+ */
3045
+ expires_at?: string | null;
3046
+ /**
3047
+ * Scope
3048
+ *
3049
+ * Privilege scope: 'full', 'read_only', 'dataset_write' (reads and writes the features of the dataset in dataset_id, and nothing else), or 'dataset_append' (only creates features in that dataset)
3050
+ */
3051
+ scope: string;
3052
+ /**
3053
+ * Dataset Id
3054
+ *
3055
+ * The dataset a 'dataset_write' or 'dataset_append' key is bound to; null for other scopes
3056
+ */
3057
+ dataset_id?: string | null;
3058
+ /**
3059
+ * Created At
3060
+ */
3061
+ created_at: string;
3062
+ /**
3063
+ * Last Used At
3064
+ */
3065
+ last_used_at: string | null;
3066
+ /**
3067
+ * User Id
3068
+ *
3069
+ * The user who minted the key; it acts as them
3070
+ */
3071
+ user_id: string;
3072
+ /**
3073
+ * Username
3074
+ *
3075
+ * That user's username
3076
+ */
3077
+ username: string;
3078
+ };
3079
+ /**
3080
+ * DatasetApiKeyListResponse
3081
+ */
3082
+ export type DatasetApiKeyListResponse = {
3083
+ /**
3084
+ * Items
3085
+ */
3086
+ items: Array<DatasetApiKeyListItem>;
3087
+ /**
3088
+ * Total
3089
+ */
3090
+ total: number;
3091
+ };
2977
3092
  /**
2978
3093
  * DatasetChatRequest
2979
3094
  *
@@ -3579,6 +3694,10 @@ export type DatasetResponse = {
3579
3694
  * Ordered vector-tile property allowlist; null uses zoom defaults, [] emits geometry-only tiles, list emits those properties at any zoom.
3580
3695
  */
3581
3696
  tile_columns?: Array<string> | null;
3697
+ /**
3698
+ * How long rows are kept; null keeps every row.
3699
+ */
3700
+ retention?: DatasetRetention | null;
3582
3701
  /**
3583
3702
  * Original Srid
3584
3703
  *
@@ -3794,6 +3913,49 @@ export type DatasetResponse = {
3794
3913
  */
3795
3914
  previous_version?: PreviousVersionResponse | null;
3796
3915
  };
3916
+ /**
3917
+ * DatasetRetention
3918
+ *
3919
+ * Keep only the rows from the last `days` days, judged by `column`.
3920
+ */
3921
+ export type DatasetRetention = {
3922
+ /**
3923
+ * Column
3924
+ *
3925
+ * A date or timestamp column of the dataset's table. Rows where it is null are kept.
3926
+ */
3927
+ column: string;
3928
+ /**
3929
+ * Days
3930
+ */
3931
+ days: number;
3932
+ };
3933
+ /**
3934
+ * DatasetRetentionResponse
3935
+ */
3936
+ export type DatasetRetentionResponse = {
3937
+ retention: DatasetRetention | null;
3938
+ /**
3939
+ * Rows Past Cutoff
3940
+ *
3941
+ * On a dry run, rows currently older than the cutoff, 0 when off. Hourly runs delete them in batches, so a large backlog can take several runs. Null on a save, which does not count them.
3942
+ */
3943
+ rows_past_cutoff: number | null;
3944
+ /**
3945
+ * Cutoff
3946
+ *
3947
+ * Rows older than this UTC instant are past retention; for a date column it is UTC midnight of the cutoff date. Null when off.
3948
+ */
3949
+ cutoff?: string | null;
3950
+ };
3951
+ /**
3952
+ * DatasetRetentionUpdate
3953
+ *
3954
+ * The retention setting to store; null turns retention off.
3955
+ */
3956
+ export type DatasetRetentionUpdate = {
3957
+ retention: DatasetRetention | null;
3958
+ };
3797
3959
  /**
3798
3960
  * DatasetRowsResponse
3799
3961
  */
@@ -3820,6 +3982,18 @@ export type DatasetRowsResponse = {
3820
3982
  * Cursor value for the next page, null if last
3821
3983
  */
3822
3984
  next_cursor?: number | null;
3985
+ /**
3986
+ * Sortable Columns
3987
+ *
3988
+ * Columns the rows endpoint accepts as `sort`.
3989
+ */
3990
+ sortable_columns?: Array<string>;
3991
+ /**
3992
+ * Table Id
3993
+ *
3994
+ * Opaque id of the data table these rows were read from. Send it as the `table_id` query parameter of a feature write or batch delete to have it refused if a reupload or overwrite replaced the table since.
3995
+ */
3996
+ table_id?: string | null;
3823
3997
  };
3824
3998
  /**
3825
3999
  * DatasetVersionListResponse
@@ -4712,6 +4886,55 @@ export type FanOutLayerResult = {
4712
4886
  */
4713
4887
  error?: string | null;
4714
4888
  };
4889
+ /**
4890
+ * FeatureBatchDelete
4891
+ *
4892
+ * The features a batch delete removes.
4893
+ */
4894
+ export type FeatureBatchDelete = {
4895
+ /**
4896
+ * Gids
4897
+ *
4898
+ * Ids of the features to delete, at most 1000. If any does not exist, none is deleted.
4899
+ */
4900
+ gids: Array<number>;
4901
+ };
4902
+ /**
4903
+ * FeatureBatchDeleted
4904
+ *
4905
+ * The result of a batch delete.
4906
+ */
4907
+ export type FeatureBatchDeleted = {
4908
+ /**
4909
+ * Deleted
4910
+ *
4911
+ * Number of features deleted.
4912
+ */
4913
+ deleted: number;
4914
+ /**
4915
+ * Tile Cache Version
4916
+ *
4917
+ * The dataset's tile_cache_version after this write committed. Send it as the tile routes' `_v` query parameter when reloading tiles, so a request that reaches a different API worker is forced to re-read the dataset instead of serving that worker's own cached snapshot.
4918
+ */
4919
+ tile_cache_version?: number | null;
4920
+ };
4921
+ /**
4922
+ * FeatureCollectionCreate
4923
+ *
4924
+ * A GeoJSON FeatureCollection whose features are inserted together.
4925
+ */
4926
+ export type FeatureCollectionCreate = {
4927
+ /**
4928
+ * Type
4929
+ */
4930
+ type: 'FeatureCollection';
4931
+ /**
4932
+ * Features
4933
+ *
4934
+ * Features to insert in one transaction, at most 1000. If any is refused, none is inserted.
4935
+ */
4936
+ features: Array<FeatureCreate>;
4937
+ };
4715
4938
  /**
4716
4939
  * FeatureCreate
4717
4940
  *
@@ -17414,7 +17637,7 @@ export type AnalysisPreviewEndpointDatasetsDatasetIdAnalysisPreviewPostResponses
17414
17637
  200: AnalysisPreviewResponse;
17415
17638
  };
17416
17639
  export type AnalysisPreviewEndpointDatasetsDatasetIdAnalysisPreviewPostResponse = AnalysisPreviewEndpointDatasetsDatasetIdAnalysisPreviewPostResponses[keyof AnalysisPreviewEndpointDatasetsDatasetIdAnalysisPreviewPostResponses];
17417
- export type ListAttributesEndpointDatasetsDatasetIdAttributesGetData = {
17640
+ export type ListDatasetApiKeysDatasetsDatasetIdApiKeysGetData = {
17418
17641
  body?: never;
17419
17642
  path: {
17420
17643
  /**
@@ -17424,13 +17647,17 @@ export type ListAttributesEndpointDatasetsDatasetIdAttributesGetData = {
17424
17647
  };
17425
17648
  query?: {
17426
17649
  /**
17427
- * Include Removed
17650
+ * Skip
17428
17651
  */
17429
- include_removed?: boolean;
17652
+ skip?: number;
17653
+ /**
17654
+ * Limit
17655
+ */
17656
+ limit?: number;
17430
17657
  };
17431
- url: '/datasets/{dataset_id}/attributes/';
17658
+ url: '/datasets/{dataset_id}/api-keys';
17432
17659
  };
17433
- export type ListAttributesEndpointDatasetsDatasetIdAttributesGetErrors = {
17660
+ export type ListDatasetApiKeysDatasetsDatasetIdApiKeysGetErrors = {
17434
17661
  /**
17435
17662
  * Bad request — invalid payload
17436
17663
  */
@@ -17440,7 +17667,7 @@ export type ListAttributesEndpointDatasetsDatasetIdAttributesGetErrors = {
17440
17667
  */
17441
17668
  401: ProblemDetail;
17442
17669
  /**
17443
- * Forbidden — caller lacks access to this resource
17670
+ * Forbidden — caller lacks write access
17444
17671
  */
17445
17672
  403: ProblemDetail;
17446
17673
  /**
@@ -17468,30 +17695,26 @@ export type ListAttributesEndpointDatasetsDatasetIdAttributesGetErrors = {
17468
17695
  */
17469
17696
  503: ProblemDetail;
17470
17697
  };
17471
- export type ListAttributesEndpointDatasetsDatasetIdAttributesGetError = ListAttributesEndpointDatasetsDatasetIdAttributesGetErrors[keyof ListAttributesEndpointDatasetsDatasetIdAttributesGetErrors];
17472
- export type ListAttributesEndpointDatasetsDatasetIdAttributesGetResponses = {
17698
+ export type ListDatasetApiKeysDatasetsDatasetIdApiKeysGetError = ListDatasetApiKeysDatasetsDatasetIdApiKeysGetErrors[keyof ListDatasetApiKeysDatasetsDatasetIdApiKeysGetErrors];
17699
+ export type ListDatasetApiKeysDatasetsDatasetIdApiKeysGetResponses = {
17473
17700
  /**
17474
17701
  * Successful Response
17475
17702
  */
17476
- 200: AttributeMetadataListResponse;
17703
+ 200: DatasetApiKeyListResponse;
17477
17704
  };
17478
- export type ListAttributesEndpointDatasetsDatasetIdAttributesGetResponse = ListAttributesEndpointDatasetsDatasetIdAttributesGetResponses[keyof ListAttributesEndpointDatasetsDatasetIdAttributesGetResponses];
17479
- export type GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetData = {
17480
- body?: never;
17705
+ export type ListDatasetApiKeysDatasetsDatasetIdApiKeysGetResponse = ListDatasetApiKeysDatasetsDatasetIdApiKeysGetResponses[keyof ListDatasetApiKeysDatasetsDatasetIdApiKeysGetResponses];
17706
+ export type CreateDatasetApiKeyDatasetsDatasetIdApiKeysPostData = {
17707
+ body: DatasetApiKeyCreateRequest;
17481
17708
  path: {
17482
17709
  /**
17483
17710
  * Dataset Id
17484
17711
  */
17485
17712
  dataset_id: string;
17486
- /**
17487
- * Attribute Id
17488
- */
17489
- attribute_id: string;
17490
17713
  };
17491
17714
  query?: never;
17492
- url: '/datasets/{dataset_id}/attributes/{attribute_id}/';
17715
+ url: '/datasets/{dataset_id}/api-keys';
17493
17716
  };
17494
- export type GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetErrors = {
17717
+ export type CreateDatasetApiKeyDatasetsDatasetIdApiKeysPostErrors = {
17495
17718
  /**
17496
17719
  * Bad request — invalid payload
17497
17720
  */
@@ -17501,7 +17724,7 @@ export type GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetErrors
17501
17724
  */
17502
17725
  401: ProblemDetail;
17503
17726
  /**
17504
- * Forbidden — caller lacks access to this resource
17727
+ * Forbidden — caller lacks write access
17505
17728
  */
17506
17729
  403: ProblemDetail;
17507
17730
  /**
@@ -17529,30 +17752,30 @@ export type GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetErrors
17529
17752
  */
17530
17753
  503: ProblemDetail;
17531
17754
  };
17532
- export type GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetError = GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetErrors[keyof GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetErrors];
17533
- export type GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetResponses = {
17755
+ export type CreateDatasetApiKeyDatasetsDatasetIdApiKeysPostError = CreateDatasetApiKeyDatasetsDatasetIdApiKeysPostErrors[keyof CreateDatasetApiKeyDatasetsDatasetIdApiKeysPostErrors];
17756
+ export type CreateDatasetApiKeyDatasetsDatasetIdApiKeysPostResponses = {
17534
17757
  /**
17535
17758
  * Successful Response
17536
17759
  */
17537
- 200: AttributeMetadataResponse;
17760
+ 201: ApiKeyCreateResponse;
17538
17761
  };
17539
- export type GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetResponse = GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetResponses[keyof GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetResponses];
17540
- export type UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchData = {
17541
- body: AttributeMetadataUpdate;
17762
+ export type CreateDatasetApiKeyDatasetsDatasetIdApiKeysPostResponse = CreateDatasetApiKeyDatasetsDatasetIdApiKeysPostResponses[keyof CreateDatasetApiKeyDatasetsDatasetIdApiKeysPostResponses];
17763
+ export type RevokeDatasetApiKeyDatasetsDatasetIdApiKeysKeyIdDeleteData = {
17764
+ body?: never;
17542
17765
  path: {
17543
17766
  /**
17544
17767
  * Dataset Id
17545
17768
  */
17546
17769
  dataset_id: string;
17547
17770
  /**
17548
- * Attribute Id
17771
+ * Key Id
17549
17772
  */
17550
- attribute_id: string;
17773
+ key_id: string;
17551
17774
  };
17552
17775
  query?: never;
17553
- url: '/datasets/{dataset_id}/attributes/{attribute_id}/';
17776
+ url: '/datasets/{dataset_id}/api-keys/{key_id}';
17554
17777
  };
17555
- export type UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchErrors = {
17778
+ export type RevokeDatasetApiKeyDatasetsDatasetIdApiKeysKeyIdDeleteErrors = {
17556
17779
  /**
17557
17780
  * Bad request — invalid payload
17558
17781
  */
@@ -17590,30 +17813,31 @@ export type UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchEr
17590
17813
  */
17591
17814
  503: ProblemDetail;
17592
17815
  };
17593
- export type UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchError = UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchErrors[keyof UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchErrors];
17594
- export type UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchResponses = {
17816
+ export type RevokeDatasetApiKeyDatasetsDatasetIdApiKeysKeyIdDeleteError = RevokeDatasetApiKeyDatasetsDatasetIdApiKeysKeyIdDeleteErrors[keyof RevokeDatasetApiKeyDatasetsDatasetIdApiKeysKeyIdDeleteErrors];
17817
+ export type RevokeDatasetApiKeyDatasetsDatasetIdApiKeysKeyIdDeleteResponses = {
17595
17818
  /**
17596
17819
  * Successful Response
17597
17820
  */
17598
- 200: AttributeMetadataResponse;
17821
+ 204: void;
17599
17822
  };
17600
- export type UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchResponse = UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchResponses[keyof UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchResponses];
17601
- export type ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPostData = {
17823
+ export type RevokeDatasetApiKeyDatasetsDatasetIdApiKeysKeyIdDeleteResponse = RevokeDatasetApiKeyDatasetsDatasetIdApiKeysKeyIdDeleteResponses[keyof RevokeDatasetApiKeyDatasetsDatasetIdApiKeysKeyIdDeleteResponses];
17824
+ export type ListAttributesEndpointDatasetsDatasetIdAttributesGetData = {
17602
17825
  body?: never;
17603
17826
  path: {
17604
17827
  /**
17605
17828
  * Dataset Id
17606
17829
  */
17607
17830
  dataset_id: string;
17831
+ };
17832
+ query?: {
17608
17833
  /**
17609
- * Attribute Id
17834
+ * Include Removed
17610
17835
  */
17611
- attribute_id: string;
17836
+ include_removed?: boolean;
17612
17837
  };
17613
- query?: never;
17614
- url: '/datasets/{dataset_id}/attributes/{attribute_id}/reset/';
17838
+ url: '/datasets/{dataset_id}/attributes/';
17615
17839
  };
17616
- export type ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPostErrors = {
17840
+ export type ListAttributesEndpointDatasetsDatasetIdAttributesGetErrors = {
17617
17841
  /**
17618
17842
  * Bad request — invalid payload
17619
17843
  */
@@ -17623,7 +17847,7 @@ export type ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPos
17623
17847
  */
17624
17848
  401: ProblemDetail;
17625
17849
  /**
17626
- * Forbidden — caller lacks write access
17850
+ * Forbidden — caller lacks access to this resource
17627
17851
  */
17628
17852
  403: ProblemDetail;
17629
17853
  /**
@@ -17651,15 +17875,15 @@ export type ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPos
17651
17875
  */
17652
17876
  503: ProblemDetail;
17653
17877
  };
17654
- export type ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPostError = ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPostErrors[keyof ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPostErrors];
17655
- export type ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPostResponses = {
17878
+ export type ListAttributesEndpointDatasetsDatasetIdAttributesGetError = ListAttributesEndpointDatasetsDatasetIdAttributesGetErrors[keyof ListAttributesEndpointDatasetsDatasetIdAttributesGetErrors];
17879
+ export type ListAttributesEndpointDatasetsDatasetIdAttributesGetResponses = {
17656
17880
  /**
17657
17881
  * Successful Response
17658
17882
  */
17659
- 200: AttributeMetadataResponse;
17883
+ 200: AttributeMetadataListResponse;
17660
17884
  };
17661
- export type ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPostResponse = ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPostResponses[keyof ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPostResponses];
17662
- export type GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetData = {
17885
+ export type ListAttributesEndpointDatasetsDatasetIdAttributesGetResponse = ListAttributesEndpointDatasetsDatasetIdAttributesGetResponses[keyof ListAttributesEndpointDatasetsDatasetIdAttributesGetResponses];
17886
+ export type GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetData = {
17663
17887
  body?: never;
17664
17888
  path: {
17665
17889
  /**
@@ -17667,14 +17891,14 @@ export type GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetData
17667
17891
  */
17668
17892
  dataset_id: string;
17669
17893
  /**
17670
- * Column Name
17894
+ * Attribute Id
17671
17895
  */
17672
- column_name: string;
17896
+ attribute_id: string;
17673
17897
  };
17674
17898
  query?: never;
17675
- url: '/datasets/{dataset_id}/columns/{column_name}/stats/';
17899
+ url: '/datasets/{dataset_id}/attributes/{attribute_id}/';
17676
17900
  };
17677
- export type GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetErrors = {
17901
+ export type GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetErrors = {
17678
17902
  /**
17679
17903
  * Bad request — invalid payload
17680
17904
  */
@@ -17712,29 +17936,212 @@ export type GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetErro
17712
17936
  */
17713
17937
  503: ProblemDetail;
17714
17938
  };
17715
- export type GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetError = GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetErrors[keyof GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetErrors];
17716
- export type GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetResponses = {
17939
+ export type GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetError = GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetErrors[keyof GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetErrors];
17940
+ export type GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetResponses = {
17717
17941
  /**
17718
17942
  * Successful Response
17719
17943
  */
17720
- 200: ColumnStatsResponse;
17944
+ 200: AttributeMetadataResponse;
17721
17945
  };
17722
- export type GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetResponse = GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetResponses[keyof GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetResponses];
17723
- export type GetColumnValuesDatasetsDatasetIdColumnsColumnNameValuesGetData = {
17724
- body?: never;
17946
+ export type GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetResponse = GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetResponses[keyof GetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdGetResponses];
17947
+ export type UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchData = {
17948
+ body: AttributeMetadataUpdate;
17725
17949
  path: {
17726
17950
  /**
17727
17951
  * Dataset Id
17728
17952
  */
17729
17953
  dataset_id: string;
17730
17954
  /**
17731
- * Column Name
17955
+ * Attribute Id
17732
17956
  */
17733
- column_name: string;
17957
+ attribute_id: string;
17734
17958
  };
17735
- query?: {
17736
- /**
17737
- * Limit
17959
+ query?: never;
17960
+ url: '/datasets/{dataset_id}/attributes/{attribute_id}/';
17961
+ };
17962
+ export type UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchErrors = {
17963
+ /**
17964
+ * Bad request — invalid payload
17965
+ */
17966
+ 400: ProblemDetail;
17967
+ /**
17968
+ * Unauthorized — missing or invalid credentials
17969
+ */
17970
+ 401: ProblemDetail;
17971
+ /**
17972
+ * Forbidden — caller lacks write access
17973
+ */
17974
+ 403: ProblemDetail;
17975
+ /**
17976
+ * Not found
17977
+ */
17978
+ 404: ProblemDetail;
17979
+ /**
17980
+ * Conflict — resource state prevents the operation
17981
+ */
17982
+ 409: ProblemDetail;
17983
+ /**
17984
+ * Validation error
17985
+ */
17986
+ 422: ProblemDetail;
17987
+ /**
17988
+ * Too many requests — retry after the advertised interval
17989
+ */
17990
+ 429: ProblemDetail;
17991
+ /**
17992
+ * Internal server error
17993
+ */
17994
+ 500: ProblemDetail;
17995
+ /**
17996
+ * Service unavailable — the database could not serve the request
17997
+ */
17998
+ 503: ProblemDetail;
17999
+ };
18000
+ export type UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchError = UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchErrors[keyof UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchErrors];
18001
+ export type UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchResponses = {
18002
+ /**
18003
+ * Successful Response
18004
+ */
18005
+ 200: AttributeMetadataResponse;
18006
+ };
18007
+ export type UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchResponse = UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchResponses[keyof UpdateAttributeEndpointDatasetsDatasetIdAttributesAttributeIdPatchResponses];
18008
+ export type ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPostData = {
18009
+ body?: never;
18010
+ path: {
18011
+ /**
18012
+ * Dataset Id
18013
+ */
18014
+ dataset_id: string;
18015
+ /**
18016
+ * Attribute Id
18017
+ */
18018
+ attribute_id: string;
18019
+ };
18020
+ query?: never;
18021
+ url: '/datasets/{dataset_id}/attributes/{attribute_id}/reset/';
18022
+ };
18023
+ export type ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPostErrors = {
18024
+ /**
18025
+ * Bad request — invalid payload
18026
+ */
18027
+ 400: ProblemDetail;
18028
+ /**
18029
+ * Unauthorized — missing or invalid credentials
18030
+ */
18031
+ 401: ProblemDetail;
18032
+ /**
18033
+ * Forbidden — caller lacks write access
18034
+ */
18035
+ 403: ProblemDetail;
18036
+ /**
18037
+ * Not found
18038
+ */
18039
+ 404: ProblemDetail;
18040
+ /**
18041
+ * Conflict — resource state prevents the operation
18042
+ */
18043
+ 409: ProblemDetail;
18044
+ /**
18045
+ * Validation error
18046
+ */
18047
+ 422: ProblemDetail;
18048
+ /**
18049
+ * Too many requests — retry after the advertised interval
18050
+ */
18051
+ 429: ProblemDetail;
18052
+ /**
18053
+ * Internal server error
18054
+ */
18055
+ 500: ProblemDetail;
18056
+ /**
18057
+ * Service unavailable — the database could not serve the request
18058
+ */
18059
+ 503: ProblemDetail;
18060
+ };
18061
+ export type ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPostError = ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPostErrors[keyof ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPostErrors];
18062
+ export type ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPostResponses = {
18063
+ /**
18064
+ * Successful Response
18065
+ */
18066
+ 200: AttributeMetadataResponse;
18067
+ };
18068
+ export type ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPostResponse = ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPostResponses[keyof ResetAttributeEndpointDatasetsDatasetIdAttributesAttributeIdResetPostResponses];
18069
+ export type GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetData = {
18070
+ body?: never;
18071
+ path: {
18072
+ /**
18073
+ * Dataset Id
18074
+ */
18075
+ dataset_id: string;
18076
+ /**
18077
+ * Column Name
18078
+ */
18079
+ column_name: string;
18080
+ };
18081
+ query?: never;
18082
+ url: '/datasets/{dataset_id}/columns/{column_name}/stats/';
18083
+ };
18084
+ export type GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetErrors = {
18085
+ /**
18086
+ * Bad request — invalid payload
18087
+ */
18088
+ 400: ProblemDetail;
18089
+ /**
18090
+ * Unauthorized — missing or invalid credentials
18091
+ */
18092
+ 401: ProblemDetail;
18093
+ /**
18094
+ * Forbidden — caller lacks access to this resource
18095
+ */
18096
+ 403: ProblemDetail;
18097
+ /**
18098
+ * Not found
18099
+ */
18100
+ 404: ProblemDetail;
18101
+ /**
18102
+ * Conflict — resource state prevents the operation
18103
+ */
18104
+ 409: ProblemDetail;
18105
+ /**
18106
+ * Validation error
18107
+ */
18108
+ 422: ProblemDetail;
18109
+ /**
18110
+ * Too many requests — retry after the advertised interval
18111
+ */
18112
+ 429: ProblemDetail;
18113
+ /**
18114
+ * Internal server error
18115
+ */
18116
+ 500: ProblemDetail;
18117
+ /**
18118
+ * Service unavailable — the database could not serve the request
18119
+ */
18120
+ 503: ProblemDetail;
18121
+ };
18122
+ export type GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetError = GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetErrors[keyof GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetErrors];
18123
+ export type GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetResponses = {
18124
+ /**
18125
+ * Successful Response
18126
+ */
18127
+ 200: ColumnStatsResponse;
18128
+ };
18129
+ export type GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetResponse = GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetResponses[keyof GetColumnStatsEndpointDatasetsDatasetIdColumnsColumnNameStatsGetResponses];
18130
+ export type GetColumnValuesDatasetsDatasetIdColumnsColumnNameValuesGetData = {
18131
+ body?: never;
18132
+ path: {
18133
+ /**
18134
+ * Dataset Id
18135
+ */
18136
+ dataset_id: string;
18137
+ /**
18138
+ * Column Name
18139
+ */
18140
+ column_name: string;
18141
+ };
18142
+ query?: {
18143
+ /**
18144
+ * Limit
17738
18145
  */
17739
18146
  limit?: number;
17740
18147
  };
@@ -18332,17 +18739,221 @@ export type ListFeaturesDatasetsDatasetIdFeaturesGetResponses = {
18332
18739
  */
18333
18740
  200: {
18334
18741
  /**
18335
- * Type
18742
+ * Type
18743
+ */
18744
+ type?: 'FeatureCollection';
18745
+ /**
18746
+ * Numbermatched
18747
+ */
18748
+ numberMatched: number;
18749
+ /**
18750
+ * Numberreturned
18751
+ */
18752
+ numberReturned: number;
18753
+ /**
18754
+ * Features
18755
+ */
18756
+ features: Array<{
18757
+ /**
18758
+ * Type
18759
+ */
18760
+ type?: 'Feature';
18761
+ /**
18762
+ * Id
18763
+ */
18764
+ id: number;
18765
+ /**
18766
+ * Geometry
18767
+ */
18768
+ geometry?: {
18769
+ /**
18770
+ * Type
18771
+ */
18772
+ type: 'GeometryCollection';
18773
+ /**
18774
+ * Geometries
18775
+ */
18776
+ geometries: Array<{
18777
+ /**
18778
+ * Type
18779
+ */
18780
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon';
18781
+ /**
18782
+ * Coordinates
18783
+ */
18784
+ coordinates: Array<unknown>;
18785
+ }>;
18786
+ } | {
18787
+ /**
18788
+ * Type
18789
+ */
18790
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon';
18791
+ /**
18792
+ * Coordinates
18793
+ */
18794
+ coordinates: Array<unknown>;
18795
+ } | null;
18796
+ /**
18797
+ * Properties
18798
+ */
18799
+ properties: {
18800
+ [key: string]: unknown;
18801
+ };
18802
+ }>;
18803
+ /**
18804
+ * Links
18805
+ */
18806
+ links: Array<{
18807
+ /**
18808
+ * Rel
18809
+ */
18810
+ rel: string;
18811
+ /**
18812
+ * Href
18813
+ */
18814
+ href: string;
18815
+ /**
18816
+ * Type
18817
+ */
18818
+ type: string;
18819
+ }>;
18820
+ };
18821
+ };
18822
+ export type ListFeaturesDatasetsDatasetIdFeaturesGetResponse = ListFeaturesDatasetsDatasetIdFeaturesGetResponses[keyof ListFeaturesDatasetsDatasetIdFeaturesGetResponses];
18823
+ export type CreateFeatureDatasetsDatasetIdFeaturesPostData = {
18824
+ /**
18825
+ * Body
18826
+ */
18827
+ body: FeatureCreate | FeatureCollectionCreate;
18828
+ headers?: {
18829
+ /**
18830
+ * Idempotency-Key
18831
+ *
18832
+ * Optional key that makes a retried create safe. Any visible ASCII character (`!` to `~`, no spaces), 1 to 128 characters. The key is compared exactly as sent, so a quoted key and the same key unquoted are different keys. For example `device-42:2026-10-17T16:09:33.123000+00:00`.
18833
+ */
18834
+ 'Idempotency-Key'?: string;
18835
+ /**
18836
+ * Idempotency-Attempt
18837
+ *
18838
+ * Attempt number sent with `Idempotency-Key`, counting up by one each time the body is sent again. Counts as 1 when omitted.
18839
+ */
18840
+ 'Idempotency-Attempt'?: number;
18841
+ };
18842
+ path: {
18843
+ /**
18844
+ * Dataset Id
18845
+ */
18846
+ dataset_id: string;
18847
+ };
18848
+ query?: never;
18849
+ url: '/datasets/{dataset_id}/features/';
18850
+ };
18851
+ export type CreateFeatureDatasetsDatasetIdFeaturesPostErrors = {
18852
+ /**
18853
+ * Bad request — invalid payload
18854
+ */
18855
+ 400: ProblemDetail;
18856
+ /**
18857
+ * Unauthorized — missing or invalid credentials
18858
+ */
18859
+ 401: ProblemDetail;
18860
+ /**
18861
+ * Forbidden — caller lacks write access
18862
+ */
18863
+ 403: ProblemDetail;
18864
+ /**
18865
+ * Not found
18866
+ */
18867
+ 404: ProblemDetail;
18868
+ /**
18869
+ * Conflict — resource state prevents the operation
18870
+ */
18871
+ 409: ProblemDetail;
18872
+ /**
18873
+ * Validation error
18874
+ */
18875
+ 422: ProblemDetail;
18876
+ /**
18877
+ * Too many requests — retry after the advertised interval
18878
+ */
18879
+ 429: ProblemDetail;
18880
+ /**
18881
+ * Internal server error
18882
+ */
18883
+ 500: ProblemDetail;
18884
+ /**
18885
+ * Service unavailable — the database could not serve the request
18886
+ */
18887
+ 503: ProblemDetail;
18888
+ };
18889
+ export type CreateFeatureDatasetsDatasetIdFeaturesPostError = CreateFeatureDatasetsDatasetIdFeaturesPostErrors[keyof CreateFeatureDatasetsDatasetIdFeaturesPostErrors];
18890
+ export type CreateFeatureDatasetsDatasetIdFeaturesPostResponses = {
18891
+ /**
18892
+ * Successful Response
18893
+ */
18894
+ 201: {
18895
+ /**
18896
+ * Type
18897
+ */
18898
+ type?: 'Feature';
18899
+ /**
18900
+ * Id
18901
+ */
18902
+ id: number;
18903
+ /**
18904
+ * Geometry
18905
+ */
18906
+ geometry?: {
18907
+ /**
18908
+ * Type
18909
+ */
18910
+ type: 'GeometryCollection';
18911
+ /**
18912
+ * Geometries
18913
+ */
18914
+ geometries: Array<{
18915
+ /**
18916
+ * Type
18917
+ */
18918
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon';
18919
+ /**
18920
+ * Coordinates
18921
+ */
18922
+ coordinates: Array<unknown>;
18923
+ }>;
18924
+ } | {
18925
+ /**
18926
+ * Type
18927
+ */
18928
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon';
18929
+ /**
18930
+ * Coordinates
18931
+ */
18932
+ coordinates: Array<unknown>;
18933
+ } | null;
18934
+ /**
18935
+ * Properties
18336
18936
  */
18337
- type?: 'FeatureCollection';
18937
+ properties: {
18938
+ [key: string]: unknown;
18939
+ };
18338
18940
  /**
18339
- * Numbermatched
18941
+ * Table Id
18942
+ *
18943
+ * Opaque id of the data table this feature was read from or written to. A reupload or an overwrite of the dataset's data replaces the table, and the replacement can reuse feature ids. Send it back as the `table_id` query parameter of a PUT, PATCH or DELETE of this feature, or of a batch delete, to have the write refused if the table was replaced since.
18340
18944
  */
18341
- numberMatched: number;
18945
+ table_id?: string | null;
18342
18946
  /**
18343
- * Numberreturned
18947
+ * Tile Cache Version
18948
+ *
18949
+ * The dataset's tile_cache_version after this write committed. Send it as the tile routes' `_v` query parameter when reloading tiles, so a request that reaches a different API worker is forced to re-read the dataset instead of serving that worker's own cached snapshot.
18344
18950
  */
18345
- numberReturned: number;
18951
+ tile_cache_version?: number | null;
18952
+ } | {
18953
+ /**
18954
+ * Type
18955
+ */
18956
+ type?: 'FeatureCollection';
18346
18957
  /**
18347
18958
  * Features
18348
18959
  */
@@ -18392,43 +19003,103 @@ export type ListFeaturesDatasetsDatasetIdFeaturesGetResponses = {
18392
19003
  properties: {
18393
19004
  [key: string]: unknown;
18394
19005
  };
18395
- }>;
18396
- /**
18397
- * Links
18398
- */
18399
- links: Array<{
18400
- /**
18401
- * Rel
18402
- */
18403
- rel: string;
18404
19006
  /**
18405
- * Href
19007
+ * Table Id
19008
+ *
19009
+ * Opaque id of the data table this feature was read from or written to. A reupload or an overwrite of the dataset's data replaces the table, and the replacement can reuse feature ids. Send it back as the `table_id` query parameter of a PUT, PATCH or DELETE of this feature, or of a batch delete, to have the write refused if the table was replaced since.
18406
19010
  */
18407
- href: string;
19011
+ table_id?: string | null;
18408
19012
  /**
18409
- * Type
19013
+ * Tile Cache Version
19014
+ *
19015
+ * The dataset's tile_cache_version after this write committed. Send it as the tile routes' `_v` query parameter when reloading tiles, so a request that reaches a different API worker is forced to re-read the dataset instead of serving that worker's own cached snapshot.
18410
19016
  */
18411
- type: string;
19017
+ tile_cache_version?: number | null;
18412
19018
  }>;
19019
+ /**
19020
+ * Table Id
19021
+ *
19022
+ * Opaque id of the data table this feature was read from or written to. A reupload or an overwrite of the dataset's data replaces the table, and the replacement can reuse feature ids. Send it back as the `table_id` query parameter of a PUT, PATCH or DELETE of this feature, or of a batch delete, to have the write refused if the table was replaced since.
19023
+ */
19024
+ table_id?: string | null;
19025
+ /**
19026
+ * Tile Cache Version
19027
+ *
19028
+ * The dataset's tile_cache_version after this write committed. Send it as the tile routes' `_v` query parameter when reloading tiles, so a request that reaches a different API worker is forced to re-read the dataset instead of serving that worker's own cached snapshot.
19029
+ */
19030
+ tile_cache_version?: number | null;
18413
19031
  };
18414
19032
  };
18415
- export type ListFeaturesDatasetsDatasetIdFeaturesGetResponse = ListFeaturesDatasetsDatasetIdFeaturesGetResponses[keyof ListFeaturesDatasetsDatasetIdFeaturesGetResponses];
18416
- export type CreateFeatureDatasetsDatasetIdFeaturesPostData = {
18417
- body: FeatureCreate;
18418
- headers?: {
19033
+ export type CreateFeatureDatasetsDatasetIdFeaturesPostResponse = CreateFeatureDatasetsDatasetIdFeaturesPostResponses[keyof CreateFeatureDatasetsDatasetIdFeaturesPostResponses];
19034
+ export type DeleteFeaturesBatchDatasetsDatasetIdFeaturesDeletePostData = {
19035
+ body: FeatureBatchDelete;
19036
+ path: {
18419
19037
  /**
18420
- * Idempotency-Key
18421
- *
18422
- * Optional key that makes a retried create safe. Letters, digits and `._:-`, up to 128 characters.
19038
+ * Dataset Id
18423
19039
  */
18424
- 'Idempotency-Key'?: string;
19040
+ dataset_id: string;
19041
+ };
19042
+ query?: {
18425
19043
  /**
18426
- * Idempotency-Attempt
19044
+ * Table Id
18427
19045
  *
18428
- * Attempt number sent with `Idempotency-Key`, counting up by one each time the body is sent again. Counts as 1 when omitted.
19046
+ * The `table_id` the feature was read with. If the dataset's data has been replaced since, the request is refused with 409 and code `dataset_replaced`, and nothing is written.
18429
19047
  */
18430
- 'Idempotency-Attempt'?: number;
19048
+ table_id?: string;
18431
19049
  };
19050
+ url: '/datasets/{dataset_id}/features/delete/';
19051
+ };
19052
+ export type DeleteFeaturesBatchDatasetsDatasetIdFeaturesDeletePostErrors = {
19053
+ /**
19054
+ * Bad request — invalid payload
19055
+ */
19056
+ 400: ProblemDetail;
19057
+ /**
19058
+ * Unauthorized — missing or invalid credentials
19059
+ */
19060
+ 401: ProblemDetail;
19061
+ /**
19062
+ * Forbidden — caller lacks write access
19063
+ */
19064
+ 403: ProblemDetail;
19065
+ /**
19066
+ * Not found
19067
+ */
19068
+ 404: ProblemDetail;
19069
+ /**
19070
+ * Conflict — resource state prevents the operation
19071
+ */
19072
+ 409: ProblemDetail;
19073
+ /**
19074
+ * Validation error
19075
+ */
19076
+ 422: ProblemDetail;
19077
+ /**
19078
+ * Too many requests — retry after the advertised interval
19079
+ */
19080
+ 429: ProblemDetail;
19081
+ /**
19082
+ * Internal server error
19083
+ */
19084
+ 500: ProblemDetail;
19085
+ /**
19086
+ * Service unavailable — the database could not serve the request
19087
+ */
19088
+ 503: ProblemDetail;
19089
+ };
19090
+ export type DeleteFeaturesBatchDatasetsDatasetIdFeaturesDeletePostError = DeleteFeaturesBatchDatasetsDatasetIdFeaturesDeletePostErrors[keyof DeleteFeaturesBatchDatasetsDatasetIdFeaturesDeletePostErrors];
19091
+ export type DeleteFeaturesBatchDatasetsDatasetIdFeaturesDeletePostResponses = {
19092
+ /**
19093
+ * Successful Response
19094
+ */
19095
+ 200: FeatureBatchDeleted;
19096
+ };
19097
+ export type DeleteFeaturesBatchDatasetsDatasetIdFeaturesDeletePostResponse = DeleteFeaturesBatchDatasetsDatasetIdFeaturesDeletePostResponses[keyof DeleteFeaturesBatchDatasetsDatasetIdFeaturesDeletePostResponses];
19098
+ export type DryRunCreateFeatureDatasetsDatasetIdFeaturesDryRunPostData = {
19099
+ /**
19100
+ * Body
19101
+ */
19102
+ body: FeatureCreate | FeatureCollectionCreate;
18432
19103
  path: {
18433
19104
  /**
18434
19105
  * Dataset Id
@@ -18436,9 +19107,9 @@ export type CreateFeatureDatasetsDatasetIdFeaturesPostData = {
18436
19107
  dataset_id: string;
18437
19108
  };
18438
19109
  query?: never;
18439
- url: '/datasets/{dataset_id}/features/';
19110
+ url: '/datasets/{dataset_id}/features/dry-run/';
18440
19111
  };
18441
- export type CreateFeatureDatasetsDatasetIdFeaturesPostErrors = {
19112
+ export type DryRunCreateFeatureDatasetsDatasetIdFeaturesDryRunPostErrors = {
18442
19113
  /**
18443
19114
  * Bad request — invalid payload
18444
19115
  */
@@ -18459,6 +19130,10 @@ export type CreateFeatureDatasetsDatasetIdFeaturesPostErrors = {
18459
19130
  * Conflict — resource state prevents the operation
18460
19131
  */
18461
19132
  409: ProblemDetail;
19133
+ /**
19134
+ * Payload too large
19135
+ */
19136
+ 413: ProblemDetail;
18462
19137
  /**
18463
19138
  * Validation error
18464
19139
  */
@@ -18476,22 +19151,16 @@ export type CreateFeatureDatasetsDatasetIdFeaturesPostErrors = {
18476
19151
  */
18477
19152
  503: ProblemDetail;
18478
19153
  };
18479
- export type CreateFeatureDatasetsDatasetIdFeaturesPostError = CreateFeatureDatasetsDatasetIdFeaturesPostErrors[keyof CreateFeatureDatasetsDatasetIdFeaturesPostErrors];
18480
- export type CreateFeatureDatasetsDatasetIdFeaturesPostResponses = {
19154
+ export type DryRunCreateFeatureDatasetsDatasetIdFeaturesDryRunPostError = DryRunCreateFeatureDatasetsDatasetIdFeaturesDryRunPostErrors[keyof DryRunCreateFeatureDatasetsDatasetIdFeaturesDryRunPostErrors];
19155
+ export type DryRunCreateFeatureDatasetsDatasetIdFeaturesDryRunPostResponses = {
18481
19156
  /**
18482
- * GeoJSONFeature
18483
- *
18484
- * A written GeoJSON Feature, plus the dataset's committed tile version.
19157
+ * The feature or features as they would be stored. Nothing was written.
18485
19158
  */
18486
- 201: {
19159
+ 200: {
18487
19160
  /**
18488
19161
  * Type
18489
19162
  */
18490
19163
  type?: 'Feature';
18491
- /**
18492
- * Id
18493
- */
18494
- id: number;
18495
19164
  /**
18496
19165
  * Geometry
18497
19166
  */
@@ -18529,21 +19198,60 @@ export type CreateFeatureDatasetsDatasetIdFeaturesPostResponses = {
18529
19198
  properties: {
18530
19199
  [key: string]: unknown;
18531
19200
  };
19201
+ } | {
18532
19202
  /**
18533
- * Table Id
18534
- *
18535
- * Opaque id of the data table this feature was read from or written to. A reupload or an overwrite of the dataset's data replaces the table, and the replacement can reuse feature ids. Send it back as the `table_id` query parameter of a PUT, PATCH or DELETE of this feature to have the write refused if the table was replaced since.
19203
+ * Type
18536
19204
  */
18537
- table_id?: string | null;
19205
+ type?: 'FeatureCollection';
18538
19206
  /**
18539
- * Tile Cache Version
18540
- *
18541
- * The dataset's tile_cache_version after this write committed. Send it as the tile routes' `_v` query parameter when reloading tiles, so a request that reaches a different API worker is forced to re-read the dataset instead of serving that worker's own cached snapshot.
19207
+ * Features
18542
19208
  */
18543
- tile_cache_version?: number | null;
19209
+ features: Array<{
19210
+ /**
19211
+ * Type
19212
+ */
19213
+ type?: 'Feature';
19214
+ /**
19215
+ * Geometry
19216
+ */
19217
+ geometry?: {
19218
+ /**
19219
+ * Type
19220
+ */
19221
+ type: 'GeometryCollection';
19222
+ /**
19223
+ * Geometries
19224
+ */
19225
+ geometries: Array<{
19226
+ /**
19227
+ * Type
19228
+ */
19229
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon';
19230
+ /**
19231
+ * Coordinates
19232
+ */
19233
+ coordinates: Array<unknown>;
19234
+ }>;
19235
+ } | {
19236
+ /**
19237
+ * Type
19238
+ */
19239
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon';
19240
+ /**
19241
+ * Coordinates
19242
+ */
19243
+ coordinates: Array<unknown>;
19244
+ } | null;
19245
+ /**
19246
+ * Properties
19247
+ */
19248
+ properties: {
19249
+ [key: string]: unknown;
19250
+ };
19251
+ }>;
18544
19252
  };
18545
19253
  };
18546
- export type CreateFeatureDatasetsDatasetIdFeaturesPostResponse = CreateFeatureDatasetsDatasetIdFeaturesPostResponses[keyof CreateFeatureDatasetsDatasetIdFeaturesPostResponses];
19254
+ export type DryRunCreateFeatureDatasetsDatasetIdFeaturesDryRunPostResponse = DryRunCreateFeatureDatasetsDatasetIdFeaturesDryRunPostResponses[keyof DryRunCreateFeatureDatasetsDatasetIdFeaturesDryRunPostResponses];
18547
19255
  export type DeleteSingleFeatureDatasetsDatasetIdFeaturesGidDeleteData = {
18548
19256
  body?: never;
18549
19257
  path: {
@@ -18717,7 +19425,7 @@ export type GetSingleFeatureDatasetsDatasetIdFeaturesGidGetResponses = {
18717
19425
  /**
18718
19426
  * Table Id
18719
19427
  *
18720
- * Opaque id of the data table this feature was read from or written to. A reupload or an overwrite of the dataset's data replaces the table, and the replacement can reuse feature ids. Send it back as the `table_id` query parameter of a PUT, PATCH or DELETE of this feature to have the write refused if the table was replaced since.
19428
+ * Opaque id of the data table this feature was read from or written to. A reupload or an overwrite of the dataset's data replaces the table, and the replacement can reuse feature ids. Send it back as the `table_id` query parameter of a PUT, PATCH or DELETE of this feature, or of a batch delete, to have the write refused if the table was replaced since.
18721
19429
  */
18722
19430
  table_id?: string | null;
18723
19431
  };
@@ -18839,7 +19547,7 @@ export type PatchSingleFeatureDatasetsDatasetIdFeaturesGidPatchResponses = {
18839
19547
  /**
18840
19548
  * Table Id
18841
19549
  *
18842
- * Opaque id of the data table this feature was read from or written to. A reupload or an overwrite of the dataset's data replaces the table, and the replacement can reuse feature ids. Send it back as the `table_id` query parameter of a PUT, PATCH or DELETE of this feature to have the write refused if the table was replaced since.
19550
+ * Opaque id of the data table this feature was read from or written to. A reupload or an overwrite of the dataset's data replaces the table, and the replacement can reuse feature ids. Send it back as the `table_id` query parameter of a PUT, PATCH or DELETE of this feature, or of a batch delete, to have the write refused if the table was replaced since.
18843
19551
  */
18844
19552
  table_id?: string | null;
18845
19553
  /**
@@ -18967,7 +19675,7 @@ export type ReplaceSingleFeatureDatasetsDatasetIdFeaturesGidPutResponses = {
18967
19675
  /**
18968
19676
  * Table Id
18969
19677
  *
18970
- * Opaque id of the data table this feature was read from or written to. A reupload or an overwrite of the dataset's data replaces the table, and the replacement can reuse feature ids. Send it back as the `table_id` query parameter of a PUT, PATCH or DELETE of this feature to have the write refused if the table was replaced since.
19678
+ * Opaque id of the data table this feature was read from or written to. A reupload or an overwrite of the dataset's data replaces the table, and the replacement can reuse feature ids. Send it back as the `table_id` query parameter of a PUT, PATCH or DELETE of this feature, or of a batch delete, to have the write refused if the table was replaced since.
18971
19679
  */
18972
19680
  table_id?: string | null;
18973
19681
  /**
@@ -19774,6 +20482,70 @@ export type CreateDatasetRelationshipDatasetsDatasetIdRelationshipsPostResponses
19774
20482
  201: DatasetRelationshipResponse;
19775
20483
  };
19776
20484
  export type CreateDatasetRelationshipDatasetsDatasetIdRelationshipsPostResponse = CreateDatasetRelationshipDatasetsDatasetIdRelationshipsPostResponses[keyof CreateDatasetRelationshipDatasetsDatasetIdRelationshipsPostResponses];
20485
+ export type SetDatasetRetentionDatasetsDatasetIdRetentionPutData = {
20486
+ body: DatasetRetentionUpdate;
20487
+ path: {
20488
+ /**
20489
+ * Dataset Id
20490
+ */
20491
+ dataset_id: string;
20492
+ };
20493
+ query?: {
20494
+ /**
20495
+ * Dry Run
20496
+ *
20497
+ * Check the setting and count its rows without saving it.
20498
+ */
20499
+ dry_run?: boolean;
20500
+ };
20501
+ url: '/datasets/{dataset_id}/retention/';
20502
+ };
20503
+ export type SetDatasetRetentionDatasetsDatasetIdRetentionPutErrors = {
20504
+ /**
20505
+ * Bad request — invalid payload
20506
+ */
20507
+ 400: ProblemDetail;
20508
+ /**
20509
+ * Unauthorized — missing or invalid credentials
20510
+ */
20511
+ 401: ProblemDetail;
20512
+ /**
20513
+ * Forbidden — caller lacks write access
20514
+ */
20515
+ 403: ProblemDetail;
20516
+ /**
20517
+ * Not found
20518
+ */
20519
+ 404: ProblemDetail;
20520
+ /**
20521
+ * Conflict — resource state prevents the operation
20522
+ */
20523
+ 409: ProblemDetail;
20524
+ /**
20525
+ * Validation error
20526
+ */
20527
+ 422: ProblemDetail;
20528
+ /**
20529
+ * Too many requests — retry after the advertised interval
20530
+ */
20531
+ 429: ProblemDetail;
20532
+ /**
20533
+ * Internal server error
20534
+ */
20535
+ 500: ProblemDetail;
20536
+ /**
20537
+ * Service unavailable — the database could not serve the request
20538
+ */
20539
+ 503: ProblemDetail;
20540
+ };
20541
+ export type SetDatasetRetentionDatasetsDatasetIdRetentionPutError = SetDatasetRetentionDatasetsDatasetIdRetentionPutErrors[keyof SetDatasetRetentionDatasetsDatasetIdRetentionPutErrors];
20542
+ export type SetDatasetRetentionDatasetsDatasetIdRetentionPutResponses = {
20543
+ /**
20544
+ * Successful Response
20545
+ */
20546
+ 200: DatasetRetentionResponse;
20547
+ };
20548
+ export type SetDatasetRetentionDatasetsDatasetIdRetentionPutResponse = SetDatasetRetentionDatasetsDatasetIdRetentionPutResponses[keyof SetDatasetRetentionDatasetsDatasetIdRetentionPutResponses];
19777
20549
  export type ReuploadDatasetDatasetsDatasetIdReuploadPostData = {
19778
20550
  body: BodyReuploadDatasetDatasetsDatasetIdReuploadPost;
19779
20551
  path: {
@@ -20172,6 +20944,18 @@ export type GetDatasetRowsEndpointDatasetsDatasetIdRowsGetData = {
20172
20944
  * After
20173
20945
  */
20174
20946
  after?: number;
20947
+ /**
20948
+ * Sort
20949
+ *
20950
+ * Column to order rows by, then by gid. NULLs sort last in both directions. An unknown or unsortable column returns 400.
20951
+ */
20952
+ sort?: string | null;
20953
+ /**
20954
+ * Order
20955
+ *
20956
+ * Sort direction; applies only with `sort`.
20957
+ */
20958
+ order?: 'asc' | 'desc';
20175
20959
  };
20176
20960
  url: '/datasets/{dataset_id}/rows/';
20177
20961
  };
@@ -27700,6 +28484,10 @@ export type RasterTileProxyTilesRasterProxyDatasetIdZxyFmtGetErrors = {
27700
28484
  * Unauthenticated — a credential was supplied and could not be resolved (expired, revoked, or malformed). Sending no credential at all is not an error on these operations; they answer anonymously with the public subset. Neither is sending an unresolvable credential alongside a capability that authorizes the request on its own — a valid X-Embed-Token or a valid signed tile template (sig, exp, scope). Those are served and the unrelated credential is ignored.
27701
28485
  */
27702
28486
  401: ProblemDetail;
28487
+ /**
28488
+ * Forbidden: the embed token or the signature parameters did not authorize the request, or a multi-tenant request has no tenant context
28489
+ */
28490
+ 403: ProblemDetail;
27703
28491
  /**
27704
28492
  * Not found
27705
28493
  */