@geolens/sdk 1.4.0 → 1.4.1

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.
@@ -1,6 +1,22 @@
1
1
  export type ClientOptions = {
2
2
  baseUrl: `${string}://${string}` | (string & {});
3
3
  };
4
+ /**
5
+ * AIAvailabilityResponse
6
+ *
7
+ * Public-safe AI readiness signal (builder-audit #338 P1-11).
8
+ *
9
+ * Carries a single boolean and intentionally exposes NO provider name, model,
10
+ * or key detail — it is readable by any non-admin editor holding
11
+ * ``use_ai_chat`` so the builder can enable/disable chat without the
12
+ * admin-only ``/admin/ai-status`` endpoint (which leaks provider/key info).
13
+ */
14
+ export type AiAvailabilityResponse = {
15
+ /**
16
+ * Available
17
+ */
18
+ available: boolean;
19
+ };
4
20
  /**
5
21
  * AIStatusResponse
6
22
  */
@@ -335,15 +351,15 @@ export type AdminShareTokenResponse = {
335
351
  /**
336
352
  * Expires At
337
353
  */
338
- expires_at: string | null;
354
+ expires_at?: string | null;
339
355
  /**
340
356
  * Id
341
357
  */
342
- id: string;
358
+ id?: string | null;
343
359
  /**
344
360
  * Is Active
345
361
  */
346
- is_active: boolean;
362
+ is_active?: boolean | null;
347
363
  /**
348
364
  * Map Id
349
365
  */
@@ -355,7 +371,7 @@ export type AdminShareTokenResponse = {
355
371
  /**
356
372
  * Token
357
373
  */
358
- token: string;
374
+ token?: string | null;
359
375
  };
360
376
  /**
361
377
  * AdminUserCreate
@@ -8320,7 +8336,7 @@ export type SublayerOverride = {
8320
8336
  /**
8321
8337
  * Opacity
8322
8338
  *
8323
- * Per-sublayer opacity (0-1), or null to use the basemap default. Additive on top of BasemapConfig.opacity (the whole-basemap master opacity). IN-02 (Phase 1059 code review): this field is populated via API or a future Phase milestone. The current UI opacity slider in BasemapSublayerEditorScene routes through the legacy sublayerState path (MapBuilderPage.tsx handleSublayerOpacityChange) per D-09 ('OPACITY existing slider untouched') and does not call updateSublayerOverride. See TODO(BUILDER-SUBLAYER-PERSIST) comment at MapBuilderPage.tsx for the deferral rationale.
8339
+ * Per-sublayer opacity (0-1), or null to use the basemap default. Composes on top of BasemapConfig.opacity (the whole-basemap master opacity): the rendered opacity is override.opacity * master_opacity (builder-audit #338 CORR-01). The UI opacity slider in BasemapSublayerEditorScene persists through this field: MapBuilderPage.handleSublayerOpacityChange -> setBasemapSublayerOpacity -> updateBasemapSublayerOverride writes config.sublayer_overrides[key].opacity.
8324
8340
  */
8325
8341
  opacity?: number | null;
8326
8342
  /**
@@ -10434,6 +10450,46 @@ export type RejectUserAdminUsersUserIdRejectPostResponses = {
10434
10450
  204: void;
10435
10451
  };
10436
10452
  export type RejectUserAdminUsersUserIdRejectPostResponse = RejectUserAdminUsersUserIdRejectPostResponses[keyof RejectUserAdminUsersUserIdRejectPostResponses];
10453
+ export type AiAvailabilityEndpointAiAvailabilityGetData = {
10454
+ body?: never;
10455
+ path?: never;
10456
+ query?: never;
10457
+ url: '/ai/availability/';
10458
+ };
10459
+ export type AiAvailabilityEndpointAiAvailabilityGetErrors = {
10460
+ /**
10461
+ * Bad request — invalid query parameters or payload
10462
+ */
10463
+ 400: ProblemDetail;
10464
+ /**
10465
+ * Unauthorized — missing or invalid credentials
10466
+ */
10467
+ 401: ProblemDetail;
10468
+ /**
10469
+ * Forbidden — caller lacks access to this resource
10470
+ */
10471
+ 403: ProblemDetail;
10472
+ /**
10473
+ * Not found
10474
+ */
10475
+ 404: ProblemDetail;
10476
+ /**
10477
+ * Validation error
10478
+ */
10479
+ 422: ProblemDetail;
10480
+ /**
10481
+ * Internal server error
10482
+ */
10483
+ 500: ProblemDetail;
10484
+ };
10485
+ export type AiAvailabilityEndpointAiAvailabilityGetError = AiAvailabilityEndpointAiAvailabilityGetErrors[keyof AiAvailabilityEndpointAiAvailabilityGetErrors];
10486
+ export type AiAvailabilityEndpointAiAvailabilityGetResponses = {
10487
+ /**
10488
+ * Successful Response
10489
+ */
10490
+ 200: AiAvailabilityResponse;
10491
+ };
10492
+ export type AiAvailabilityEndpointAiAvailabilityGetResponse = AiAvailabilityEndpointAiAvailabilityGetResponses[keyof AiAvailabilityEndpointAiAvailabilityGetResponses];
10437
10493
  export type ChatEndpointAiChatPostData = {
10438
10494
  body: ChatRequest;
10439
10495
  path?: never;