@geolens/sdk 1.4.11 → 1.5.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.
@@ -17,6 +17,46 @@ export type AiAvailabilityResponse = {
17
17
  */
18
18
  available: boolean;
19
19
  };
20
+ /**
21
+ * AIProbeCheck
22
+ *
23
+ * Result of one live provider check (chat or embeddings).
24
+ */
25
+ export type AiProbeCheck = {
26
+ /**
27
+ * Configured
28
+ *
29
+ * Whether this purpose has a provider key configured. False means no probe call was made.
30
+ */
31
+ configured: boolean;
32
+ /**
33
+ * Error
34
+ *
35
+ * Short sanitized failure reason. Never contains the key or raw provider error bodies.
36
+ */
37
+ error?: string | null;
38
+ /**
39
+ * Ok
40
+ *
41
+ * Whether the live provider call succeeded. None when not configured (no call was made).
42
+ */
43
+ ok?: boolean | null;
44
+ /**
45
+ * Status
46
+ *
47
+ * HTTP status returned by the provider on failure, when available.
48
+ */
49
+ status?: number | null;
50
+ };
51
+ /**
52
+ * AIProbeReport
53
+ *
54
+ * Per-purpose live provider probe results (admin ai-status ?probe=true).
55
+ */
56
+ export type AiProbeReport = {
57
+ chat: AiProbeCheck;
58
+ embeddings: AiProbeCheck;
59
+ };
20
60
  /**
21
61
  * AIStatusResponse
22
62
  */
@@ -45,6 +85,10 @@ export type AiStatusResponse = {
45
85
  * Active model name (e.g. 'claude-sonnet-4-20250514').
46
86
  */
47
87
  model: string | null;
88
+ /**
89
+ * Live provider probe results. Only present when the request opted in via ?probe=true.
90
+ */
91
+ probe?: AiProbeReport | null;
48
92
  /**
49
93
  * Provider
50
94
  *
@@ -431,6 +475,127 @@ export type AlterColumnTypeRequest = {
431
475
  */
432
476
  new_type: string;
433
477
  };
478
+ /**
479
+ * AnalysisMaterializeRequest
480
+ *
481
+ * Parameters for materializing an analysis result as a new dataset.
482
+ */
483
+ export type AnalysisMaterializeRequest = {
484
+ /**
485
+ * By Field
486
+ *
487
+ * Optional group-by column for dissolve
488
+ */
489
+ by_field?: string | null;
490
+ /**
491
+ * Distance Meters
492
+ *
493
+ * Buffer distance in meters (buffer only)
494
+ */
495
+ distance_meters?: number | null;
496
+ /**
497
+ * Mask
498
+ *
499
+ * GeoJSON Polygon or MultiPolygon geometry in EPSG:4326 (clip only)
500
+ */
501
+ mask?: {
502
+ [key: string]: unknown;
503
+ } | null;
504
+ /**
505
+ * Mask Dataset Id
506
+ *
507
+ * Polygon dataset whose unioned features form the clip mask (clip only; alternative to mask)
508
+ */
509
+ mask_dataset_id?: string | null;
510
+ /**
511
+ * Operation
512
+ */
513
+ operation: 'buffer' | 'centroid' | 'clip' | 'dissolve';
514
+ /**
515
+ * Title
516
+ */
517
+ title: string;
518
+ };
519
+ /**
520
+ * AnalysisMaterializeResponse
521
+ *
522
+ * Async materialize job handle; poll GET /jobs/{job_id} for progress.
523
+ */
524
+ export type AnalysisMaterializeResponse = {
525
+ /**
526
+ * Job Id
527
+ */
528
+ job_id: string;
529
+ /**
530
+ * Status
531
+ */
532
+ status: string;
533
+ };
534
+ /**
535
+ * AnalysisPreviewRequest
536
+ *
537
+ * Parameters for a synchronous analysis preview.
538
+ *
539
+ * Deliberately flat (no discriminated union) so SDK generators keep the
540
+ * endpoint; per-operation requiredness is enforced by the validator.
541
+ */
542
+ export type AnalysisPreviewRequest = {
543
+ /**
544
+ * Distance Meters
545
+ *
546
+ * Buffer distance in meters (buffer only)
547
+ */
548
+ distance_meters?: number | null;
549
+ /**
550
+ * Mask
551
+ *
552
+ * GeoJSON Polygon or MultiPolygon geometry in EPSG:4326 (clip only)
553
+ */
554
+ mask?: {
555
+ [key: string]: unknown;
556
+ } | null;
557
+ /**
558
+ * Mask Dataset Id
559
+ *
560
+ * Polygon dataset whose unioned features form the clip mask (clip only; alternative to mask)
561
+ */
562
+ mask_dataset_id?: string | null;
563
+ /**
564
+ * Operation
565
+ */
566
+ operation: 'buffer' | 'centroid' | 'clip';
567
+ };
568
+ /**
569
+ * AnalysisPreviewResponse
570
+ *
571
+ * GeoJSON FeatureCollection preview of an analysis operation.
572
+ */
573
+ export type AnalysisPreviewResponse = {
574
+ /**
575
+ * Bbox
576
+ */
577
+ bbox?: Array<number> | null;
578
+ /**
579
+ * Feature Count
580
+ */
581
+ feature_count: number;
582
+ /**
583
+ * Geojson
584
+ */
585
+ geojson: {
586
+ [key: string]: unknown;
587
+ };
588
+ /**
589
+ * Source Feature Count
590
+ *
591
+ * Total feature count of the source dataset (1:1 operations only; null when the operation filters rows, e.g. clip)
592
+ */
593
+ source_feature_count?: number | null;
594
+ /**
595
+ * Truncated
596
+ */
597
+ truncated: boolean;
598
+ };
434
599
  /**
435
600
  * ApiKeyCreateRequest
436
601
  */
@@ -705,6 +870,10 @@ export type AuditLogResponse = {
705
870
  * Resource Id
706
871
  */
707
872
  resource_id: string | null;
873
+ /**
874
+ * Resource Name
875
+ */
876
+ resource_name?: string | null;
708
877
  /**
709
878
  * Resource Type
710
879
  */
@@ -1243,6 +1412,10 @@ export type ChatAction = {
1243
1412
  * Dataset Name
1244
1413
  */
1245
1414
  dataset_name?: string | null;
1415
+ /**
1416
+ * Distance Meters
1417
+ */
1418
+ distance_meters?: number | null;
1246
1419
  /**
1247
1420
  * Expression
1248
1421
  */
@@ -1262,6 +1435,10 @@ export type ChatAction = {
1262
1435
  * Opacity
1263
1436
  */
1264
1437
  opacity?: number | null;
1438
+ /**
1439
+ * Operation
1440
+ */
1441
+ operation?: string | null;
1265
1442
  /**
1266
1443
  * Paint
1267
1444
  */
@@ -4070,7 +4247,7 @@ export type JobStatusResponse = {
4070
4247
  /**
4071
4248
  * Current Step
4072
4249
  */
4073
- current_step?: 'validating' | 'ogr2ogr' | 'finalize' | 'complete' | 'cog_convert' | 'quicklook' | null;
4250
+ current_step?: 'queued' | 'validating' | 'ogr2ogr' | 'finalize' | 'complete' | 'cog_convert' | 'quicklook' | 'analyzing' | 'registering' | null;
4074
4251
  /**
4075
4252
  * Dataset Id
4076
4253
  */
@@ -8780,7 +8957,7 @@ export type StacSearchBody = {
8780
8957
  /**
8781
8958
  * Limit
8782
8959
  *
8783
- * Maximum number of items returned (1-200).
8960
+ * Maximum number of items returned. Values above 200 are clamped to 200.
8784
8961
  */
8785
8962
  limit?: number;
8786
8963
  /**
@@ -9857,7 +10034,14 @@ export type LandingPageGetResponse = LandingPageGetResponses[keyof LandingPageGe
9857
10034
  export type GetAiStatusAdminAiStatusGetData = {
9858
10035
  body?: never;
9859
10036
  path?: never;
9860
- query?: never;
10037
+ query?: {
10038
+ /**
10039
+ * Probe
10040
+ *
10041
+ * When true, run a minimal LIVE provider call per purpose (chat + embeddings) to verify the configured key actually works. Costs a real provider API call — never enabled by dashboards.
10042
+ */
10043
+ probe?: boolean;
10044
+ };
9861
10045
  url: '/admin/ai-status/';
9862
10046
  };
9863
10047
  export type GetAiStatusAdminAiStatusGetErrors = {
@@ -13713,6 +13897,8 @@ export type GetCollectionItemsCollectionsDatasetIdItemsGetData = {
13713
13897
  query?: {
13714
13898
  /**
13715
13899
  * Limit
13900
+ *
13901
+ * Page size for bulk GeoJSON export. The maximum is an admin-configurable ceiling (default 1000; Network settings tab, `ogc_items_max_page_size`) rather than the 200 used by offset-paged list endpoints, because this route pages via the constant-time `after_gid` keyset cursor. Per OGC API Features Core /req/core/fc-limit-response-1(C) a value above the ceiling is clamped to it, not rejected.
13716
13902
  */
13717
13903
  limit?: number;
13718
13904
  /**
@@ -14857,6 +15043,120 @@ export type UpdateDatasetMetadataDatasetsDatasetIdPatchResponses = {
14857
15043
  200: DatasetResponse;
14858
15044
  };
14859
15045
  export type UpdateDatasetMetadataDatasetsDatasetIdPatchResponse = UpdateDatasetMetadataDatasetsDatasetIdPatchResponses[keyof UpdateDatasetMetadataDatasetsDatasetIdPatchResponses];
15046
+ export type AnalysisMaterializeEndpointDatasetsDatasetIdAnalysisMaterializePostData = {
15047
+ body: AnalysisMaterializeRequest;
15048
+ path: {
15049
+ /**
15050
+ * Dataset Id
15051
+ */
15052
+ dataset_id: string;
15053
+ };
15054
+ query?: never;
15055
+ url: '/datasets/{dataset_id}/analysis/materialize/';
15056
+ };
15057
+ export type AnalysisMaterializeEndpointDatasetsDatasetIdAnalysisMaterializePostErrors = {
15058
+ /**
15059
+ * Bad request — invalid payload
15060
+ */
15061
+ 400: ProblemDetail;
15062
+ /**
15063
+ * Unauthorized — missing or invalid credentials
15064
+ */
15065
+ 401: ProblemDetail;
15066
+ /**
15067
+ * Forbidden — caller lacks write access
15068
+ */
15069
+ 403: ProblemDetail;
15070
+ /**
15071
+ * Not found
15072
+ */
15073
+ 404: ProblemDetail;
15074
+ /**
15075
+ * Conflict — resource state prevents the operation
15076
+ */
15077
+ 409: ProblemDetail;
15078
+ /**
15079
+ * Validation error
15080
+ */
15081
+ 422: ProblemDetail;
15082
+ /**
15083
+ * Too many requests — retry after the advertised interval
15084
+ */
15085
+ 429: ProblemDetail;
15086
+ /**
15087
+ * Internal server error
15088
+ */
15089
+ 500: ProblemDetail;
15090
+ /**
15091
+ * Service unavailable — the database could not serve the request
15092
+ */
15093
+ 503: ProblemDetail;
15094
+ };
15095
+ export type AnalysisMaterializeEndpointDatasetsDatasetIdAnalysisMaterializePostError = AnalysisMaterializeEndpointDatasetsDatasetIdAnalysisMaterializePostErrors[keyof AnalysisMaterializeEndpointDatasetsDatasetIdAnalysisMaterializePostErrors];
15096
+ export type AnalysisMaterializeEndpointDatasetsDatasetIdAnalysisMaterializePostResponses = {
15097
+ /**
15098
+ * Successful Response
15099
+ */
15100
+ 200: AnalysisMaterializeResponse;
15101
+ };
15102
+ export type AnalysisMaterializeEndpointDatasetsDatasetIdAnalysisMaterializePostResponse = AnalysisMaterializeEndpointDatasetsDatasetIdAnalysisMaterializePostResponses[keyof AnalysisMaterializeEndpointDatasetsDatasetIdAnalysisMaterializePostResponses];
15103
+ export type AnalysisPreviewEndpointDatasetsDatasetIdAnalysisPreviewPostData = {
15104
+ body: AnalysisPreviewRequest;
15105
+ path: {
15106
+ /**
15107
+ * Dataset Id
15108
+ */
15109
+ dataset_id: string;
15110
+ };
15111
+ query?: never;
15112
+ url: '/datasets/{dataset_id}/analysis/preview/';
15113
+ };
15114
+ export type AnalysisPreviewEndpointDatasetsDatasetIdAnalysisPreviewPostErrors = {
15115
+ /**
15116
+ * Bad request — invalid payload
15117
+ */
15118
+ 400: ProblemDetail;
15119
+ /**
15120
+ * Unauthorized — missing or invalid credentials
15121
+ */
15122
+ 401: ProblemDetail;
15123
+ /**
15124
+ * Forbidden — caller lacks write access
15125
+ */
15126
+ 403: ProblemDetail;
15127
+ /**
15128
+ * Not found
15129
+ */
15130
+ 404: ProblemDetail;
15131
+ /**
15132
+ * Conflict — resource state prevents the operation
15133
+ */
15134
+ 409: ProblemDetail;
15135
+ /**
15136
+ * Validation error
15137
+ */
15138
+ 422: ProblemDetail;
15139
+ /**
15140
+ * Too many requests — retry after the advertised interval
15141
+ */
15142
+ 429: ProblemDetail;
15143
+ /**
15144
+ * Internal server error
15145
+ */
15146
+ 500: ProblemDetail;
15147
+ /**
15148
+ * Service unavailable — the database could not serve the request
15149
+ */
15150
+ 503: ProblemDetail;
15151
+ };
15152
+ export type AnalysisPreviewEndpointDatasetsDatasetIdAnalysisPreviewPostError = AnalysisPreviewEndpointDatasetsDatasetIdAnalysisPreviewPostErrors[keyof AnalysisPreviewEndpointDatasetsDatasetIdAnalysisPreviewPostErrors];
15153
+ export type AnalysisPreviewEndpointDatasetsDatasetIdAnalysisPreviewPostResponses = {
15154
+ /**
15155
+ * Successful Response
15156
+ */
15157
+ 200: AnalysisPreviewResponse;
15158
+ };
15159
+ export type AnalysisPreviewEndpointDatasetsDatasetIdAnalysisPreviewPostResponse = AnalysisPreviewEndpointDatasetsDatasetIdAnalysisPreviewPostResponses[keyof AnalysisPreviewEndpointDatasetsDatasetIdAnalysisPreviewPostResponses];
14860
15160
  export type ListAttributesEndpointDatasetsDatasetIdAttributesGetData = {
14861
15161
  body?: never;
14862
15162
  path: {
@@ -23888,6 +24188,8 @@ export type SearchGetStacSearchGetData = {
23888
24188
  intersects?: string | null;
23889
24189
  /**
23890
24190
  * Limit
24191
+ *
24192
+ * Maximum number of items returned. Values above 200 are clamped to 200, per the STAC Item Search spec's clamp-don't-reject recommendation.
23891
24193
  */
23892
24194
  limit?: number;
23893
24195
  /**