@meshconnect/uwc-types 0.20.0-snapshot.3bf4b70 → 0.20.0-snapshot.9bafc74

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.
@@ -44,6 +44,16 @@ export interface WalletConnectConfig {
44
44
  * enableSessionReuse is on.
45
45
  */
46
46
  onSessionReuseSkipped?: (skip: WalletConnectSessionReuseSkip) => void;
47
+ /**
48
+ * SECURITY-CRITICAL user binding for session reuse. The Mesh Link iframe shares
49
+ * one origin across every client and end-user, so a stored session must be
50
+ * bound to the authenticated Link user — otherwise a later user on the same
51
+ * device could silently adopt an earlier user's live session without a fresh
52
+ * approval. Pass a stable per-user id (the Link user id). Reuse is DISABLED when
53
+ * this is empty/absent, regardless of `enableSessionReuse` — origin persistence
54
+ * alone is never sufficient. No-op unless enableSessionReuse is on.
55
+ */
56
+ sessionReuseScopeId?: string;
47
57
  /**
48
58
  * Opt-in liveness-ping window (ms) for session reuse. Reuse is OPTIMISTIC by
49
59
  * default: when this is unset (or ≤ 0) connect() adopts a stored session with no
@@ -1 +1 @@
1
- {"version":3,"file":"wallet-connect-connector.d.ts","sourceRoot":"","sources":["../src/wallet-connect-connector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAA;AAEpE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE;QACT,IAAI,EAAE,MAAM,CAAA;QACZ,WAAW,EAAE,MAAM,CAAA;QACnB,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,EAAE,CAAA;KAChB,CAAA;IACD;;;;;;;;;;;;;;;OAeG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B;;;;;;;OAOG;IACH,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,6BAA6B,KAAK,IAAI,CAAA;IACrE;;;;;;;;;;;OAWG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAA;CACnC"}
1
+ {"version":3,"file":"wallet-connect-connector.d.ts","sourceRoot":"","sources":["../src/wallet-connect-connector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAA;AAEpE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE;QACT,IAAI,EAAE,MAAM,CAAA;QACZ,WAAW,EAAE,MAAM,CAAA;QACnB,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,EAAE,CAAA;KAChB,CAAA;IACD;;;;;;;;;;;;;;;OAeG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B;;;;;;;OAOG;IACH,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,6BAA6B,KAAK,IAAI,CAAA;IACrE;;;;;;;;OAQG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;;;;;;;;;;OAWG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAA;CACnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshconnect/uwc-types",
3
- "version": "0.20.0-snapshot.3bf4b70",
3
+ "version": "0.20.0-snapshot.9bafc74",
4
4
  "description": "TypeScript types for Universal Wallet Connector",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -45,6 +45,16 @@ export interface WalletConnectConfig {
45
45
  * enableSessionReuse is on.
46
46
  */
47
47
  onSessionReuseSkipped?: (skip: WalletConnectSessionReuseSkip) => void
48
+ /**
49
+ * SECURITY-CRITICAL user binding for session reuse. The Mesh Link iframe shares
50
+ * one origin across every client and end-user, so a stored session must be
51
+ * bound to the authenticated Link user — otherwise a later user on the same
52
+ * device could silently adopt an earlier user's live session without a fresh
53
+ * approval. Pass a stable per-user id (the Link user id). Reuse is DISABLED when
54
+ * this is empty/absent, regardless of `enableSessionReuse` — origin persistence
55
+ * alone is never sufficient. No-op unless enableSessionReuse is on.
56
+ */
57
+ sessionReuseScopeId?: string
48
58
  /**
49
59
  * Opt-in liveness-ping window (ms) for session reuse. Reuse is OPTIMISTIC by
50
60
  * default: when this is unset (or ≤ 0) connect() adopts a stored session with no