@geolens/sdk 1.4.7 → 1.4.9

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.
@@ -1967,6 +1967,24 @@ export type ConfigResponse = {
1967
1967
  * Auth methods contributed by the active AuthExtension. Empty by default; compatible deployments may add methods such as ['saml']. Login UI can render conditional sign-in options without needing admin OAuthProvider access.
1968
1968
  */
1969
1969
  auth_methods?: Array<string>;
1970
+ /**
1971
+ * Banner Color
1972
+ *
1973
+ * Theme token for the site banner color: warning | info | success | destructive.
1974
+ */
1975
+ banner_color?: string;
1976
+ /**
1977
+ * Banner Enabled
1978
+ *
1979
+ * When true and banner_text is non-empty, the site-wide announcement banner is shown. Default false.
1980
+ */
1981
+ banner_enabled?: boolean;
1982
+ /**
1983
+ * Banner Text
1984
+ *
1985
+ * Admin-configured site-wide announcement banner text. Empty string means no banner is shown.
1986
+ */
1987
+ banner_text?: string;
1970
1988
  /**
1971
1989
  * Demo Mode
1972
1990
  *
@@ -2376,6 +2394,32 @@ export type CreateLayerResponse = {
2376
2394
  */
2377
2395
  visibility: string;
2378
2396
  };
2397
+ /**
2398
+ * DatasetChatRequest
2399
+ *
2400
+ * Dataset-scoped chat: no map, no client-supplied layer state.
2401
+ *
2402
+ * The server resolves ALL dataset context (table name, columns, samples)
2403
+ * authoritatively from the DB — the client only names the dataset.
2404
+ */
2405
+ export type DatasetChatRequest = {
2406
+ /**
2407
+ * Dataset Id
2408
+ */
2409
+ dataset_id: string;
2410
+ /**
2411
+ * History
2412
+ */
2413
+ history?: Array<ChatHistoryMessage>;
2414
+ /**
2415
+ * Language
2416
+ */
2417
+ language?: string | null;
2418
+ /**
2419
+ * Message
2420
+ */
2421
+ message: string;
2422
+ };
2379
2423
  /**
2380
2424
  * DatasetDeleteRequest
2381
2425
  */
@@ -4003,75 +4047,6 @@ export type InfrastructureResponse = {
4003
4047
  [key: string]: ProviderHealth;
4004
4048
  };
4005
4049
  };
4006
- /**
4007
- * InlineDef_GeoJSONFeature_adc353e4
4008
- *
4009
- * A single GeoJSON Feature.
4010
- */
4011
- export type InlineDefGeoJsonFeatureAdc353E4 = {
4012
- /**
4013
- * Geometry
4014
- */
4015
- geometry?: InlineDefGeoJsonGeometryCollectionD6B7Eb76 | GeoJsonGeometry | null;
4016
- /**
4017
- * Id
4018
- */
4019
- id: number;
4020
- /**
4021
- * Properties
4022
- */
4023
- properties: {
4024
- [key: string]: unknown;
4025
- };
4026
- /**
4027
- * Type
4028
- */
4029
- type?: 'Feature';
4030
- };
4031
- /**
4032
- * InlineDef_GeoJSONGeometryCollection_d6b7eb76
4033
- *
4034
- * A GeoJSON GeometryCollection (RFC 7946 §3.1.8).
4035
- *
4036
- * fix(#430 codex r9): carries ``geometries`` instead of ``coordinates``, so
4037
- * it needs its own model — only generic-GEOMETRY datasets accept it on write
4038
- * (enforced in the service), and any stored collection must serialize back
4039
- * out on read.
4040
- *
4041
- * Deliberately NON-recursive (codex r13, refuted): PostGIS cannot round-trip
4042
- * nested collections through the GeoJSON boundary in either direction —
4043
- * ST_GeomFromGeoJSON rejects them on write and ST_AsGeoJSON raises
4044
- * 'GeoJson: geometry not supported' on read — so a recursive model could
4045
- * never receive one and would only convert the write-side 422 into a raw
4046
- * database 500. The write schemas add a raw-payload guard for a clear 422.
4047
- */
4048
- export type InlineDefGeoJsonGeometryCollectionD6B7Eb76 = {
4049
- /**
4050
- * Geometries
4051
- */
4052
- geometries: Array<GeoJsonGeometry>;
4053
- /**
4054
- * Type
4055
- */
4056
- type: 'GeometryCollection';
4057
- };
4058
- /**
4059
- * InlineDef_Link_900f1c94
4060
- */
4061
- export type InlineDefLink900F1C94 = {
4062
- /**
4063
- * Href
4064
- */
4065
- href: string;
4066
- /**
4067
- * Rel
4068
- */
4069
- rel: string;
4070
- /**
4071
- * Type
4072
- */
4073
- type: string;
4074
- };
4075
4050
  /**
4076
4051
  * JobStatusResponse
4077
4052
  */
@@ -7814,7 +7789,7 @@ export type ShareTokenRequest = {
7814
7789
  /**
7815
7790
  * Expires In Days
7816
7791
  *
7817
- * Server-calculated expiration preset available in every edition. Choose 1, 7, 30, or 90 days.
7792
+ * Server-calculated expiration preset. Choose 1, 7, 30, or 90 days.
7818
7793
  */
7819
7794
  expires_in_days?: 1 | 7 | 30 | 90 | null;
7820
7795
  };
@@ -11447,6 +11422,54 @@ export type ChatEndpointAiChatPostResponses = {
11447
11422
  200: ChatResponse;
11448
11423
  };
11449
11424
  export type ChatEndpointAiChatPostResponse = ChatEndpointAiChatPostResponses[keyof ChatEndpointAiChatPostResponses];
11425
+ export type DatasetChatStreamEndpointAiChatDatasetStreamPostData = {
11426
+ body: DatasetChatRequest;
11427
+ path?: never;
11428
+ query?: never;
11429
+ url: '/ai/chat/dataset/stream/';
11430
+ };
11431
+ export type DatasetChatStreamEndpointAiChatDatasetStreamPostErrors = {
11432
+ /**
11433
+ * Bad request — invalid query parameters or payload
11434
+ */
11435
+ 400: ProblemDetail;
11436
+ /**
11437
+ * Unauthorized — missing or invalid credentials
11438
+ */
11439
+ 401: ProblemDetail;
11440
+ /**
11441
+ * Forbidden — caller lacks access to this resource
11442
+ */
11443
+ 403: ProblemDetail;
11444
+ /**
11445
+ * Not found
11446
+ */
11447
+ 404: ProblemDetail;
11448
+ /**
11449
+ * Validation error
11450
+ */
11451
+ 422: ProblemDetail;
11452
+ /**
11453
+ * Too many requests — retry after the advertised interval
11454
+ */
11455
+ 429: ProblemDetail;
11456
+ /**
11457
+ * Internal server error
11458
+ */
11459
+ 500: ProblemDetail;
11460
+ /**
11461
+ * Service unavailable — the database could not serve the request
11462
+ */
11463
+ 503: ProblemDetail;
11464
+ };
11465
+ export type DatasetChatStreamEndpointAiChatDatasetStreamPostError = DatasetChatStreamEndpointAiChatDatasetStreamPostErrors[keyof DatasetChatStreamEndpointAiChatDatasetStreamPostErrors];
11466
+ export type DatasetChatStreamEndpointAiChatDatasetStreamPostResponses = {
11467
+ /**
11468
+ * UTF-8 server-sent event frames. Each data field contains one JSON event payload described by x-geolens-event-schema.
11469
+ */
11470
+ 200: string;
11471
+ };
11472
+ export type DatasetChatStreamEndpointAiChatDatasetStreamPostResponse = DatasetChatStreamEndpointAiChatDatasetStreamPostResponses[keyof DatasetChatStreamEndpointAiChatDatasetStreamPostResponses];
11450
11473
  export type ChatStreamEndpointAiChatStreamPostData = {
11451
11474
  body: ChatRequest;
11452
11475
  path?: never;
@@ -13744,7 +13767,7 @@ export type GetCollectionItemsCollectionsDatasetIdItemsGetResponses = {
13744
13767
  /**
13745
13768
  * OGCFeatureItemsResponse
13746
13769
  *
13747
- * OGC API Features compliant feature collection response.
13770
+ * FeatureCollection response as defined by OGC API - Features.
13748
13771
  */
13749
13772
  200: {
13750
13773
  /**
@@ -13760,7 +13783,32 @@ export type GetCollectionItemsCollectionsDatasetIdItemsGetResponses = {
13760
13783
  *
13761
13784
  * Pagination and self-reference links.
13762
13785
  */
13763
- links: Array<OgcLink>;
13786
+ links: Array<{
13787
+ /**
13788
+ * Href
13789
+ *
13790
+ * Target URL of the link.
13791
+ */
13792
+ href: string;
13793
+ /**
13794
+ * Rel
13795
+ *
13796
+ * Link relation type per RFC 8288 (e.g. 'self', 'next', 'prev', 'data', 'collection').
13797
+ */
13798
+ rel: string;
13799
+ /**
13800
+ * Title
13801
+ *
13802
+ * Optional human-readable label for the link.
13803
+ */
13804
+ title?: string | null;
13805
+ /**
13806
+ * Type
13807
+ *
13808
+ * Media type of the linked resource (e.g. 'application/json', 'application/geo+json').
13809
+ */
13810
+ type: string;
13811
+ }>;
13764
13812
  /**
13765
13813
  * Numbermatched
13766
13814
  *
@@ -13841,7 +13889,16 @@ export type GetCollectionItemFeatureCollectionsDatasetIdItemsFeatureIdGetRespons
13841
13889
  /**
13842
13890
  * GeoJSON geometry of the feature, or null for geometry-less features.
13843
13891
  */
13844
- geometry: GeoJsonGeometry | null;
13892
+ geometry: {
13893
+ /**
13894
+ * Coordinates
13895
+ */
13896
+ coordinates: Array<unknown>;
13897
+ /**
13898
+ * Type
13899
+ */
13900
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon';
13901
+ } | null;
13845
13902
  /**
13846
13903
  * Id
13847
13904
  *
@@ -13853,7 +13910,32 @@ export type GetCollectionItemFeatureCollectionsDatasetIdItemsFeatureIdGetRespons
13853
13910
  *
13854
13911
  * Self-reference and related-resource links.
13855
13912
  */
13856
- links?: Array<OgcLink>;
13913
+ links?: Array<{
13914
+ /**
13915
+ * Href
13916
+ *
13917
+ * Target URL of the link.
13918
+ */
13919
+ href: string;
13920
+ /**
13921
+ * Rel
13922
+ *
13923
+ * Link relation type per RFC 8288 (e.g. 'self', 'next', 'prev', 'data', 'collection').
13924
+ */
13925
+ rel: string;
13926
+ /**
13927
+ * Title
13928
+ *
13929
+ * Optional human-readable label for the link.
13930
+ */
13931
+ title?: string | null;
13932
+ /**
13933
+ * Type
13934
+ *
13935
+ * Media type of the linked resource (e.g. 'application/json', 'application/geo+json').
13936
+ */
13937
+ type: string;
13938
+ }>;
13857
13939
  /**
13858
13940
  * Properties
13859
13941
  *
@@ -15557,11 +15639,70 @@ export type ListFeaturesDatasetsDatasetIdFeaturesGetResponses = {
15557
15639
  /**
15558
15640
  * Features
15559
15641
  */
15560
- features: Array<InlineDefGeoJsonFeatureAdc353E4>;
15642
+ features: Array<{
15643
+ /**
15644
+ * Geometry
15645
+ */
15646
+ geometry?: {
15647
+ /**
15648
+ * Geometries
15649
+ */
15650
+ geometries: Array<{
15651
+ /**
15652
+ * Coordinates
15653
+ */
15654
+ coordinates: Array<unknown>;
15655
+ /**
15656
+ * Type
15657
+ */
15658
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon';
15659
+ }>;
15660
+ /**
15661
+ * Type
15662
+ */
15663
+ type: 'GeometryCollection';
15664
+ } | {
15665
+ /**
15666
+ * Coordinates
15667
+ */
15668
+ coordinates: Array<unknown>;
15669
+ /**
15670
+ * Type
15671
+ */
15672
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon';
15673
+ } | null;
15674
+ /**
15675
+ * Id
15676
+ */
15677
+ id: number;
15678
+ /**
15679
+ * Properties
15680
+ */
15681
+ properties: {
15682
+ [key: string]: unknown;
15683
+ };
15684
+ /**
15685
+ * Type
15686
+ */
15687
+ type?: 'Feature';
15688
+ }>;
15561
15689
  /**
15562
15690
  * Links
15563
15691
  */
15564
- links: Array<InlineDefLink900F1C94>;
15692
+ links: Array<{
15693
+ /**
15694
+ * Href
15695
+ */
15696
+ href: string;
15697
+ /**
15698
+ * Rel
15699
+ */
15700
+ rel: string;
15701
+ /**
15702
+ * Type
15703
+ */
15704
+ type: string;
15705
+ }>;
15565
15706
  /**
15566
15707
  * Numbermatched
15567
15708
  */
@@ -15637,7 +15778,34 @@ export type CreateFeatureDatasetsDatasetIdFeaturesPostResponses = {
15637
15778
  /**
15638
15779
  * Geometry
15639
15780
  */
15640
- geometry?: InlineDefGeoJsonGeometryCollectionD6B7Eb76 | GeoJsonGeometry | null;
15781
+ geometry?: {
15782
+ /**
15783
+ * Geometries
15784
+ */
15785
+ geometries: Array<{
15786
+ /**
15787
+ * Coordinates
15788
+ */
15789
+ coordinates: Array<unknown>;
15790
+ /**
15791
+ * Type
15792
+ */
15793
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon';
15794
+ }>;
15795
+ /**
15796
+ * Type
15797
+ */
15798
+ type: 'GeometryCollection';
15799
+ } | {
15800
+ /**
15801
+ * Coordinates
15802
+ */
15803
+ coordinates: Array<unknown>;
15804
+ /**
15805
+ * Type
15806
+ */
15807
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon';
15808
+ } | null;
15641
15809
  /**
15642
15810
  * Id
15643
15811
  */
@@ -15776,7 +15944,34 @@ export type GetSingleFeatureDatasetsDatasetIdFeaturesGidGetResponses = {
15776
15944
  /**
15777
15945
  * Geometry
15778
15946
  */
15779
- geometry?: InlineDefGeoJsonGeometryCollectionD6B7Eb76 | GeoJsonGeometry | null;
15947
+ geometry?: {
15948
+ /**
15949
+ * Geometries
15950
+ */
15951
+ geometries: Array<{
15952
+ /**
15953
+ * Coordinates
15954
+ */
15955
+ coordinates: Array<unknown>;
15956
+ /**
15957
+ * Type
15958
+ */
15959
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon';
15960
+ }>;
15961
+ /**
15962
+ * Type
15963
+ */
15964
+ type: 'GeometryCollection';
15965
+ } | {
15966
+ /**
15967
+ * Coordinates
15968
+ */
15969
+ coordinates: Array<unknown>;
15970
+ /**
15971
+ * Type
15972
+ */
15973
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon';
15974
+ } | null;
15780
15975
  /**
15781
15976
  * Id
15782
15977
  */
@@ -15858,7 +16053,34 @@ export type PatchSingleFeatureDatasetsDatasetIdFeaturesGidPatchResponses = {
15858
16053
  /**
15859
16054
  * Geometry
15860
16055
  */
15861
- geometry?: InlineDefGeoJsonGeometryCollectionD6B7Eb76 | GeoJsonGeometry | null;
16056
+ geometry?: {
16057
+ /**
16058
+ * Geometries
16059
+ */
16060
+ geometries: Array<{
16061
+ /**
16062
+ * Coordinates
16063
+ */
16064
+ coordinates: Array<unknown>;
16065
+ /**
16066
+ * Type
16067
+ */
16068
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon';
16069
+ }>;
16070
+ /**
16071
+ * Type
16072
+ */
16073
+ type: 'GeometryCollection';
16074
+ } | {
16075
+ /**
16076
+ * Coordinates
16077
+ */
16078
+ coordinates: Array<unknown>;
16079
+ /**
16080
+ * Type
16081
+ */
16082
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon';
16083
+ } | null;
15862
16084
  /**
15863
16085
  * Id
15864
16086
  */
@@ -15940,7 +16162,34 @@ export type ReplaceSingleFeatureDatasetsDatasetIdFeaturesGidPutResponses = {
15940
16162
  /**
15941
16163
  * Geometry
15942
16164
  */
15943
- geometry?: InlineDefGeoJsonGeometryCollectionD6B7Eb76 | GeoJsonGeometry | null;
16165
+ geometry?: {
16166
+ /**
16167
+ * Geometries
16168
+ */
16169
+ geometries: Array<{
16170
+ /**
16171
+ * Coordinates
16172
+ */
16173
+ coordinates: Array<unknown>;
16174
+ /**
16175
+ * Type
16176
+ */
16177
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon';
16178
+ }>;
16179
+ /**
16180
+ * Type
16181
+ */
16182
+ type: 'GeometryCollection';
16183
+ } | {
16184
+ /**
16185
+ * Coordinates
16186
+ */
16187
+ coordinates: Array<unknown>;
16188
+ /**
16189
+ * Type
16190
+ */
16191
+ type: 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon';
16192
+ } | null;
15944
16193
  /**
15945
16194
  * Id
15946
16195
  */