@geolens/sdk 1.23.0 → 1.24.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.
@@ -2345,7 +2345,7 @@ export type ColumnValuesResponse = {
2345
2345
  /**
2346
2346
  * Values
2347
2347
  */
2348
- values: Array<string | number | number | null>;
2348
+ values: Array<boolean | string | number | number | null>;
2349
2349
  /**
2350
2350
  * Count
2351
2351
  */
@@ -2534,13 +2534,13 @@ export type ConfigResponse = {
2534
2534
  /**
2535
2535
  * Registration Enabled
2536
2536
  *
2537
- * Whether self-service registration is open
2537
+ * Whether self-service registration is open. Single sign-on can create accounts whenever this is true.
2538
2538
  */
2539
2539
  registration_enabled: boolean;
2540
2540
  /**
2541
2541
  * Allow Signup
2542
2542
  *
2543
- * Whether self-serve registration is open. Alias for registration_enabled; login UI uses this to show/hide the signup link.
2543
+ * Whether password sign-up is open: registration is enabled and password login is enabled. Login UI uses this to show/hide the signup link.
2544
2544
  */
2545
2545
  allow_signup?: boolean;
2546
2546
  /**
@@ -3139,6 +3139,12 @@ export type DatasetMeta = {
3139
3139
  * Ordered vector-tile property allowlist; null restores zoom defaults, [] emits geometry-only tiles, list emits those properties at any zoom.
3140
3140
  */
3141
3141
  tile_columns?: Array<string> | null;
3142
+ /**
3143
+ * Owner Id
3144
+ *
3145
+ * Admin only: transfer the dataset to this active user.
3146
+ */
3147
+ owner_id?: string | null;
3142
3148
  };
3143
3149
  /**
3144
3150
  * DatasetRefreshRequest
@@ -5269,6 +5275,24 @@ export type LayerInfo = {
5269
5275
  * Layer kind: 'layer' (spatial) or 'table' (non-spatial attribute table).
5270
5276
  */
5271
5277
  layer_type?: string;
5278
+ /**
5279
+ * Source Layer Type
5280
+ *
5281
+ * ArcGIS sub-layer type as the service reports it, for example 'Feature Layer', 'Table', 'Group Layer', 'Raster Layer' or 'Annotation Layer'. Null for other service types.
5282
+ */
5283
+ source_layer_type?: string | null;
5284
+ /**
5285
+ * Parent Layer Id
5286
+ *
5287
+ * ArcGIS ID of the group layer that contains this layer, if any.
5288
+ */
5289
+ parent_layer_id?: number | null;
5290
+ /**
5291
+ * Importable
5292
+ *
5293
+ * False when the layer holds no features (ArcGIS composite, raster and annotation layers) and a preview of it is refused with 'unsupported_layer_type'.
5294
+ */
5295
+ importable?: boolean;
5272
5296
  /**
5273
5297
  * Layer Id
5274
5298
  *
@@ -5855,7 +5879,7 @@ export type MapLayerInput = {
5855
5879
  /**
5856
5880
  * Label Config
5857
5881
  *
5858
- * Text label configuration
5882
+ * Text label configuration. Accepted keys: allowOverlap, column, fontSize, haloColor, haloWidth, maxZoom, minZoom, placement, textAnchor, textColor, textOffset, textOpacity. Unknown keys are dropped when the map is exported as a MapLibre style. See https://docs.getgeolens.com/guides/api/publishing-from-desktop-gis/
5859
5883
  */
5860
5884
  label_config?: {
5861
5885
  [key: string]: unknown;
@@ -5867,7 +5891,7 @@ export type MapLayerInput = {
5867
5891
  /**
5868
5892
  * Style Config
5869
5893
  *
5870
- * Data-driven and builder UI style configuration. Builder-only state lives under builder, e.g. fill_disabled, stroke_disabled, outline settings, heatmap metadata, and height_column.
5894
+ * Data-driven and builder UI style configuration. Accepted top-level keys: breaks, builder, categories, classCount, colorLabel, colors, column, heatmapPaint, legendLabel, method, mode, ramp, render_mode, reversed, savedCirclePaint, sizeLabel, sizeRange, sizes, symbol, target; other top-level keys are dropped when the map is exported as a MapLibre style. Builder-only state lives under builder, whose interpreted keys are arrow_color, arrow_size, arrow_spacing, cluster_color, cluster_color_ramp, cluster_max_zoom, cluster_radius, cluster_show_counts, cluster_text_color, cluster_text_size, colormap, extrusion_min_zoom, extrusion_opacity, fill_color_saved, fill_disabled, fill_opacity_saved, folder_group_expanded, folder_group_id, folder_group_name, heatmap_ramp, heatmap_reversed, heatmap_weight_column, height_column, height_scale, hypso_enabled, hypso_ramp, hypso_reversed, lineGradient, outline_color, outline_width, outline_width_saved, pmax, pmin, sigma, stretch, stroke_disabled, symbol. Other builder keys are stored and exported unchanged but have no effect. See https://docs.getgeolens.com/guides/api/publishing-from-desktop-gis/
5871
5895
  */
5872
5896
  style_config?: {
5873
5897
  [key: string]: unknown;
@@ -6106,6 +6130,19 @@ export type MapListResponse = {
6106
6130
  */
6107
6131
  total: number;
6108
6132
  };
6133
+ /**
6134
+ * MapPatch
6135
+ *
6136
+ * Partial map update. PUT /maps/{map_id} edits the map's content.
6137
+ */
6138
+ export type MapPatch = {
6139
+ /**
6140
+ * Owner Id
6141
+ *
6142
+ * Admin only: transfer the map to this active user.
6143
+ */
6144
+ owner_id: string;
6145
+ };
6109
6146
  /**
6110
6147
  * MapResponse
6111
6148
  */
@@ -6749,7 +6786,7 @@ export type OAuthProviderCreate = {
6749
6786
  /**
6750
6787
  * Group Role Mapping
6751
6788
  *
6752
- * JSON object mapping IdP group names to GeoLens roles. First match wins. Falls back to default_role if no group matches.
6789
+ * JSON object mapping IdP group names to GeoLens roles ('viewer', 'editor' or 'admin'). A user in several mapped groups gets the most privileged of their roles; a user in none gets default_role.
6753
6790
  */
6754
6791
  group_role_mapping?: {
6755
6792
  [key: string]: unknown;
@@ -7018,7 +7055,7 @@ export type OAuthProviderUpdate = {
7018
7055
  /**
7019
7056
  * Default Role
7020
7057
  *
7021
- * Updated default role for new users.
7058
+ * Updated default role for new users: 'viewer', 'editor', or 'admin'.
7022
7059
  */
7023
7060
  default_role?: string | null;
7024
7061
  /**
@@ -7030,7 +7067,7 @@ export type OAuthProviderUpdate = {
7030
7067
  /**
7031
7068
  * Group Role Mapping
7032
7069
  *
7033
- * Updated group-to-role mapping. Pass an empty object to clear.
7070
+ * Updated group-to-role mapping, with the same rules as on create. Pass an empty object to clear.
7034
7071
  */
7035
7072
  group_role_mapping?: {
7036
7073
  [key: string]: unknown;
@@ -22901,6 +22938,63 @@ export type GetMapEndpointMapsMapIdGetResponses = {
22901
22938
  200: MapResponse;
22902
22939
  };
22903
22940
  export type GetMapEndpointMapsMapIdGetResponse = GetMapEndpointMapsMapIdGetResponses[keyof GetMapEndpointMapsMapIdGetResponses];
22941
+ export type PatchMapEndpointMapsMapIdPatchData = {
22942
+ body: MapPatch;
22943
+ path: {
22944
+ /**
22945
+ * Map Id
22946
+ */
22947
+ map_id: string;
22948
+ };
22949
+ query?: never;
22950
+ url: '/maps/{map_id}';
22951
+ };
22952
+ export type PatchMapEndpointMapsMapIdPatchErrors = {
22953
+ /**
22954
+ * Bad request — invalid payload
22955
+ */
22956
+ 400: ProblemDetail;
22957
+ /**
22958
+ * Unauthorized — missing or invalid credentials
22959
+ */
22960
+ 401: ProblemDetail;
22961
+ /**
22962
+ * Forbidden — caller lacks write access
22963
+ */
22964
+ 403: ProblemDetail;
22965
+ /**
22966
+ * Not found
22967
+ */
22968
+ 404: ProblemDetail;
22969
+ /**
22970
+ * Conflict — resource state prevents the operation
22971
+ */
22972
+ 409: ProblemDetail;
22973
+ /**
22974
+ * Validation error
22975
+ */
22976
+ 422: ProblemDetail;
22977
+ /**
22978
+ * Too many requests — retry after the advertised interval
22979
+ */
22980
+ 429: ProblemDetail;
22981
+ /**
22982
+ * Internal server error
22983
+ */
22984
+ 500: ProblemDetail;
22985
+ /**
22986
+ * Service unavailable — the database could not serve the request
22987
+ */
22988
+ 503: ProblemDetail;
22989
+ };
22990
+ export type PatchMapEndpointMapsMapIdPatchError = PatchMapEndpointMapsMapIdPatchErrors[keyof PatchMapEndpointMapsMapIdPatchErrors];
22991
+ export type PatchMapEndpointMapsMapIdPatchResponses = {
22992
+ /**
22993
+ * Successful Response
22994
+ */
22995
+ 200: MapResponse;
22996
+ };
22997
+ export type PatchMapEndpointMapsMapIdPatchResponse = PatchMapEndpointMapsMapIdPatchResponses[keyof PatchMapEndpointMapsMapIdPatchResponses];
22904
22998
  export type UpdateMapEndpointMapsMapIdPutData = {
22905
22999
  body: MapUpdate;
22906
23000
  path: {
@@ -26786,6 +26880,10 @@ export type CreateOauthProviderSettingsOauthProvidersPostErrors = {
26786
26880
  * Not found
26787
26881
  */
26788
26882
  404: ProblemDetail;
26883
+ /**
26884
+ * Conflict — resource state prevents the operation
26885
+ */
26886
+ 409: ProblemDetail;
26789
26887
  /**
26790
26888
  * Validation error
26791
26889
  */
@@ -26892,6 +26990,10 @@ export type UpdateOauthProviderSettingsOauthProvidersProviderIdPutErrors = {
26892
26990
  * Not found
26893
26991
  */
26894
26992
  404: ProblemDetail;
26993
+ /**
26994
+ * Conflict — resource state prevents the operation
26995
+ */
26996
+ 409: ProblemDetail;
26895
26997
  /**
26896
26998
  * Validation error
26897
26999
  */