@geolonia/geonicdb-sdk 0.19.3 → 0.21.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.
package/geonicdb.d.ts CHANGED
@@ -481,14 +481,21 @@ export interface RegisterWebPushSubscriptionOptions extends WebPushSubscribeOpti
481
481
  /** NGSI-LD `q` filter (ignored for NGSIv2). */
482
482
  q?: string;
483
483
  /**
484
- * Override the localStorage key used for idempotency. Default includes
485
- * baseUrl + tenant + protocol.
484
+ * Override the localStorage key used for idempotency. Default is
485
+ * `buildWebPushSubscriptionStorageKey(baseUrl, tenant, protocol)` — it does
486
+ * **not** include login principal. On a shared browser (kiosk, shared profile)
487
+ * or when registering multiple distinct filters from the same origin, pass a
488
+ * key that still includes that default scope plus app-managed suffixes
489
+ * (e.g. `` `${buildWebPushSubscriptionStorageKey(...)}:${userId}:${filterId}` ``).
490
+ * See docs/SDK.md → Web Push (#3097).
486
491
  */
487
492
  storageKey?: string;
488
493
  }
489
494
  /**
490
- * Build the default localStorage key for a Web Push GeonicDB subscription id.
491
- * Exported for tests and for callers that want to clear the persisted id.
495
+ * Build the default localStorage key for a Web Push GeonicDB subscription id
496
+ * (`baseUrl` + `tenant` + `protocol` only — not principal). Exported so callers
497
+ * can append user/filter suffixes for shared-browser isolation (#3097) or clear
498
+ * the persisted id.
492
499
  */
493
500
  export declare function buildWebPushSubscriptionStorageKey(baseUrl: string, tenant: string, protocol: WebPushRegisterProtocol): string;
494
501
  /**