@dynamic-labs-sdk/client 1.3.0 → 1.4.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.
Files changed (138) hide show
  1. package/dist/{InvalidParamError-Za4cvW7K.esm.js → InvalidParamError-BPMi0iWC.esm.js} +55 -6
  2. package/dist/InvalidParamError-BPMi0iWC.esm.js.map +1 -0
  3. package/dist/{InvalidParamError-9kQBK3sP.native.esm.js → InvalidParamError-CDmVW2DS.native.esm.js} +55 -6
  4. package/dist/InvalidParamError-CDmVW2DS.native.esm.js.map +1 -0
  5. package/dist/{InvalidParamError-DQvZQdQ9.cjs → InvalidParamError-DEmLKJKZ.cjs} +61 -6
  6. package/dist/InvalidParamError-DEmLKJKZ.cjs.map +1 -0
  7. package/dist/{NotWaasWalletAccountError-Ciq7b-Y6.cjs → NotWaasWalletAccountError-BZsBHRQe.cjs} +6 -4
  8. package/dist/NotWaasWalletAccountError-BZsBHRQe.cjs.map +1 -0
  9. package/dist/{NotWaasWalletAccountError-By3Y4taq.esm.js → NotWaasWalletAccountError-Chpne8_Q.native.esm.js} +6 -4
  10. package/dist/NotWaasWalletAccountError-Chpne8_Q.native.esm.js.map +1 -0
  11. package/dist/{NotWaasWalletAccountError-BTMvHTA8.native.esm.js → NotWaasWalletAccountError-Cntietge.esm.js} +6 -4
  12. package/dist/NotWaasWalletAccountError-Cntietge.esm.js.map +1 -0
  13. package/dist/core.cjs +6 -5
  14. package/dist/core.cjs.map +1 -1
  15. package/dist/core.esm.js +6 -6
  16. package/dist/core.esm.js.map +1 -1
  17. package/dist/core.native.esm.js +6 -6
  18. package/dist/core.native.esm.js.map +1 -1
  19. package/dist/exports/core.d.ts +2 -0
  20. package/dist/exports/core.d.ts.map +1 -1
  21. package/dist/exports/index.d.ts +2 -1
  22. package/dist/exports/index.d.ts.map +1 -1
  23. package/dist/{getNetworkProviderFromNetworkId-RWcIZDgC.esm.js → getNetworkProviderFromNetworkId-CEeFL-gV.esm.js} +72 -16
  24. package/dist/getNetworkProviderFromNetworkId-CEeFL-gV.esm.js.map +1 -0
  25. package/dist/{getNetworkProviderFromNetworkId-COptFPwJ.native.esm.js → getNetworkProviderFromNetworkId-JGrKwBj7.native.esm.js} +72 -16
  26. package/dist/getNetworkProviderFromNetworkId-JGrKwBj7.native.esm.js.map +1 -0
  27. package/dist/{getNetworkProviderFromNetworkId-BA0CHZzu.cjs → getNetworkProviderFromNetworkId-szJOsbQN.cjs} +77 -15
  28. package/dist/getNetworkProviderFromNetworkId-szJOsbQN.cjs.map +1 -0
  29. package/dist/{getSignedSessionId-DzNCj6g_.native.esm.js → getSignedSessionId-B5DikCap.native.esm.js} +3 -3
  30. package/dist/{getSignedSessionId-DzNCj6g_.native.esm.js.map → getSignedSessionId-B5DikCap.native.esm.js.map} +1 -1
  31. package/dist/{getSignedSessionId-la6RXITX.esm.js → getSignedSessionId-BOx1nFt_.esm.js} +3 -3
  32. package/dist/{getSignedSessionId-la6RXITX.esm.js.map → getSignedSessionId-BOx1nFt_.esm.js.map} +1 -1
  33. package/dist/{getSignedSessionId-BCU987hO.cjs → getSignedSessionId-BxOK-Tdo.cjs} +3 -3
  34. package/dist/{getSignedSessionId-BCU987hO.cjs.map → getSignedSessionId-BxOK-Tdo.cjs.map} +1 -1
  35. package/dist/{getVerifiedCredentialForWalletAccount-DSSDwOyq.cjs → getVerifiedCredentialForWalletAccount-B46O0B48.cjs} +3 -3
  36. package/dist/{getVerifiedCredentialForWalletAccount-DSSDwOyq.cjs.map → getVerifiedCredentialForWalletAccount-B46O0B48.cjs.map} +1 -1
  37. package/dist/{getVerifiedCredentialForWalletAccount-DKJcLLHq.native.esm.js → getVerifiedCredentialForWalletAccount-CyykSi-M.native.esm.js} +2 -2
  38. package/dist/{getVerifiedCredentialForWalletAccount-DKJcLLHq.native.esm.js.map → getVerifiedCredentialForWalletAccount-CyykSi-M.native.esm.js.map} +1 -1
  39. package/dist/{getVerifiedCredentialForWalletAccount-Ozctwnyv.esm.js → getVerifiedCredentialForWalletAccount-DzwIoeHm.esm.js} +2 -2
  40. package/dist/{getVerifiedCredentialForWalletAccount-Ozctwnyv.esm.js.map → getVerifiedCredentialForWalletAccount-DzwIoeHm.esm.js.map} +1 -1
  41. package/dist/index.cjs +225 -117
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/index.esm.js +225 -118
  44. package/dist/index.esm.js.map +1 -1
  45. package/dist/index.native.esm.js +225 -118
  46. package/dist/index.native.esm.js.map +1 -1
  47. package/dist/{isMfaRequiredForAction-CMClgbT0.cjs → isMfaRequiredForAction-6N6JB7wa.cjs} +5 -3
  48. package/dist/isMfaRequiredForAction-6N6JB7wa.cjs.map +1 -0
  49. package/dist/{isMfaRequiredForAction-DSX-TV2z.native.esm.js → isMfaRequiredForAction-D9p_du8C.esm.js} +5 -3
  50. package/dist/isMfaRequiredForAction-D9p_du8C.esm.js.map +1 -0
  51. package/dist/{isMfaRequiredForAction-C1u4Z__n.esm.js → isMfaRequiredForAction-DUvZEpjA.native.esm.js} +5 -3
  52. package/dist/isMfaRequiredForAction-DUvZEpjA.native.esm.js.map +1 -0
  53. package/dist/modules/auth/externalAuth/requestExternalAuthElevatedToken/requestExternalAuthElevatedToken.d.ts +1 -0
  54. package/dist/modules/auth/externalAuth/requestExternalAuthElevatedToken/requestExternalAuthElevatedToken.d.ts.map +1 -1
  55. package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts +2 -1
  56. package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts.map +1 -1
  57. package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts +1 -0
  58. package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts.map +1 -1
  59. package/dist/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.d.ts +2 -1
  60. package/dist/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.d.ts.map +1 -1
  61. package/dist/modules/captcha/setCaptchaToken/setCaptchaToken.d.ts +2 -1
  62. package/dist/modules/captcha/setCaptchaToken/setCaptchaToken.d.ts.map +1 -1
  63. package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts.map +1 -1
  64. package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts +1 -1
  65. package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts.map +1 -1
  66. package/dist/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.d.ts +1 -1
  67. package/dist/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.d.ts.map +1 -1
  68. package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts.map +1 -1
  69. package/dist/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.d.ts.map +1 -1
  70. package/dist/modules/checkout/utils/clearCheckoutSessionToken/clearCheckoutSessionToken.d.ts +22 -0
  71. package/dist/modules/checkout/utils/clearCheckoutSessionToken/clearCheckoutSessionToken.d.ts.map +1 -0
  72. package/dist/modules/checkout/utils/clearCheckoutSessionToken/index.d.ts +3 -0
  73. package/dist/modules/checkout/utils/clearCheckoutSessionToken/index.d.ts.map +1 -0
  74. package/dist/modules/checkout/utils/subscribeToCheckoutTransaction/subscribeToCheckoutTransaction.d.ts.map +1 -1
  75. package/dist/modules/checkout/utils/withCheckoutSessionTokenCleanupOn401/index.d.ts +3 -0
  76. package/dist/modules/checkout/utils/withCheckoutSessionTokenCleanupOn401/index.d.ts.map +1 -0
  77. package/dist/modules/checkout/utils/withCheckoutSessionTokenCleanupOn401/withCheckoutSessionTokenCleanupOn401.d.ts +16 -0
  78. package/dist/modules/checkout/utils/withCheckoutSessionTokenCleanupOn401/withCheckoutSessionTokenCleanupOn401.d.ts.map +1 -0
  79. package/dist/modules/mfa/consumeMfaToken/consumeMfaToken.d.ts +2 -1
  80. package/dist/modules/mfa/consumeMfaToken/consumeMfaToken.d.ts.map +1 -1
  81. package/dist/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.d.ts +2 -1
  82. package/dist/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.d.ts.map +1 -1
  83. package/dist/modules/otp/verifyOTP/verifyOTP.d.ts +2 -1
  84. package/dist/modules/otp/verifyOTP/verifyOTP.d.ts.map +1 -1
  85. package/dist/modules/user/refreshAuth/refreshAuth.d.ts +2 -1
  86. package/dist/modules/user/refreshAuth/refreshAuth.d.ts.map +1 -1
  87. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/buildUriDeeplinkOptions.d.ts +28 -0
  88. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/buildUriDeeplinkOptions.d.ts.map +1 -0
  89. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/index.d.ts +2 -0
  90. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/index.d.ts.map +1 -0
  91. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/resolveUriConnectionType/index.d.ts +2 -0
  92. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/resolveUriConnectionType/index.d.ts.map +1 -0
  93. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/resolveUriConnectionType/resolveUriConnectionType.d.ts +17 -0
  94. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/resolveUriConnectionType/resolveUriConnectionType.d.ts.map +1 -0
  95. package/dist/modules/walletOptionsCatalogue/getConnectionOptionPriority/getConnectionOptionPriority.d.ts.map +1 -1
  96. package/dist/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.d.ts +5 -15
  97. package/dist/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.d.ts.map +1 -1
  98. package/dist/modules/walletOptionsCatalogue/resolveWalletBookWalletOptionKey/resolveWalletBookWalletOptionKey.d.ts +1 -1
  99. package/dist/modules/walletOptionsCatalogue/sortConnectionOptions/sortConnectionOptions.d.ts +1 -1
  100. package/dist/modules/walletOptionsCatalogue/sortWalletOptions/sortWalletOptions.d.ts +1 -1
  101. package/dist/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.d.ts +25 -37
  102. package/dist/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.d.ts.map +1 -1
  103. package/dist/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.d.ts +1 -1
  104. package/dist/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.d.ts.map +1 -1
  105. package/dist/modules/wallets/reconcileWalletAccountsAgainstClient/index.d.ts +2 -0
  106. package/dist/modules/wallets/reconcileWalletAccountsAgainstClient/index.d.ts.map +1 -0
  107. package/dist/modules/wallets/reconcileWalletAccountsAgainstClient/reconcileWalletAccountsAgainstClient.d.ts +25 -0
  108. package/dist/modules/wallets/reconcileWalletAccountsAgainstClient/reconcileWalletAccountsAgainstClient.d.ts.map +1 -0
  109. package/dist/services/instrumentation/connectLoggerToInstrumentation/connectLoggerToInstrumentation.d.ts.map +1 -1
  110. package/dist/services/instrumentation/constants.d.ts +22 -0
  111. package/dist/services/instrumentation/constants.d.ts.map +1 -1
  112. package/dist/services/instrumentation/scrubParameters/scrubParameters.d.ts.map +1 -1
  113. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  114. package/dist/utils/appendConnectionUriToDeeplink/appendConnectionUriToDeeplink.d.ts +29 -0
  115. package/dist/utils/appendConnectionUriToDeeplink/appendConnectionUriToDeeplink.d.ts.map +1 -0
  116. package/dist/utils/appendConnectionUriToDeeplink/index.d.ts +2 -0
  117. package/dist/utils/appendConnectionUriToDeeplink/index.d.ts.map +1 -0
  118. package/dist/waas.cjs +4 -4
  119. package/dist/waas.esm.js +3 -3
  120. package/dist/waas.native.esm.js +3 -3
  121. package/dist/waasCore.cjs +4 -4
  122. package/dist/waasCore.esm.js +3 -3
  123. package/dist/waasCore.native.esm.js +3 -3
  124. package/package.json +2 -2
  125. package/dist/InvalidParamError-9kQBK3sP.native.esm.js.map +0 -1
  126. package/dist/InvalidParamError-DQvZQdQ9.cjs.map +0 -1
  127. package/dist/InvalidParamError-Za4cvW7K.esm.js.map +0 -1
  128. package/dist/NotWaasWalletAccountError-BTMvHTA8.native.esm.js.map +0 -1
  129. package/dist/NotWaasWalletAccountError-By3Y4taq.esm.js.map +0 -1
  130. package/dist/NotWaasWalletAccountError-Ciq7b-Y6.cjs.map +0 -1
  131. package/dist/getNetworkProviderFromNetworkId-BA0CHZzu.cjs.map +0 -1
  132. package/dist/getNetworkProviderFromNetworkId-COptFPwJ.native.esm.js.map +0 -1
  133. package/dist/getNetworkProviderFromNetworkId-RWcIZDgC.esm.js.map +0 -1
  134. package/dist/isMfaRequiredForAction-C1u4Z__n.esm.js.map +0 -1
  135. package/dist/isMfaRequiredForAction-CMClgbT0.cjs.map +0 -1
  136. package/dist/isMfaRequiredForAction-DSX-TV2z.native.esm.js.map +0 -1
  137. package/dist/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.d.ts +0 -23
  138. package/dist/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.d.ts.map +0 -1
@@ -29,23 +29,29 @@ export type WithWalletProviderConnectionOption = {
29
29
  walletProviderKey: string;
30
30
  };
31
31
  /**
32
- * A WalletConnect-capable wallet. Carries deeplinks only; the customer drives
33
- * the WC pairing flow themselves by calling the chain-level
34
- * `connectWithWalletConnect<Chain>` function, then appending the resulting WC
35
- * URI onto one of the deeplinks via `appendWalletConnectUriToDeepLink`.
32
+ * A wallet reachable through a URI deeplink. Carries deeplinks only;
33
+ * the customer drives the connection themselves by minting the
34
+ * appropriate URI and appending it onto one of the deeplinks via
35
+ * `appendConnectionUriToDeeplink`.
36
36
  *
37
- * The `WalletConnectWalletProvider` is only created after session approval,
38
- * so there is no provider key to attach to the option at catalogue-build time.
37
+ * The `type` discriminator picks the connection driver:
38
+ *
39
+ * - `'walletConnect'`: drive via WalletConnect — mint the URI with
40
+ * `connectWithWalletConnect<Chain>`.
41
+ * - `'metamaskSdkUri'`: drive via MetaMask's own URI connection
42
+ * extension — mint the URI with `connectWithMetaMaskUriEvm` or
43
+ * `connectWithMetaMaskUriSolana`. Emitted only for the MetaMask
44
+ * wallet entry.
39
45
  */
40
- export type WalletConnectConnectionOption = {
46
+ export type UriDeeplinkConnectionOption = {
41
47
  chain: Chain;
42
48
  deeplinks: {
43
- /** Native deeplink scheme (e.g. `metamask://`). */
49
+ /** Native deeplink scheme (e.g. `trust://`). */
44
50
  native?: string;
45
- /** Universal link (e.g. `https://metamask.app.link`). */
51
+ /** Universal link (e.g. `https://link.trustwallet.com`). */
46
52
  universal?: string;
47
53
  };
48
- type: 'walletConnect';
54
+ type: 'walletConnect' | 'metamaskSdkUri';
49
55
  };
50
56
  /**
51
57
  * A mobile wallet that exposes an in-app browser entry URL. The URL is a
@@ -61,7 +67,7 @@ export type InAppBrowserConnectionOption = {
61
67
  /**
62
68
  * Install / download links for a wallet option whose product can be
63
69
  * installed by the user on this device. Surfaced on `WalletOption` when
64
- * `includeInstallation: true` is passed to `getWalletOptionsCatalogue`.
70
+ * `includeMobileOptions: true` is passed to `getWalletOptionsCatalogue`.
65
71
  *
66
72
  * Installation is intentionally not a `WalletConnectionOption` — the user
67
73
  * cannot "connect" with an install link, and rendering it inline with
@@ -85,7 +91,7 @@ export type InstallationUrls = {
85
91
  * best available connection" by the priority documented on
86
92
  * `getWalletOptionsCatalogue`.
87
93
  */
88
- export type WalletConnectionOption = WithWalletProviderConnectionOption | WalletConnectConnectionOption | InAppBrowserConnectionOption;
94
+ export type WalletConnectionOption = WithWalletProviderConnectionOption | UriDeeplinkConnectionOption | InAppBrowserConnectionOption;
89
95
  /**
90
96
  * A wallet option surfaced by `getWalletOptionsCatalogue` — one wallet the
91
97
  * user can sign in with (MetaMask, Coinbase, Phantom, …). A wallet option
@@ -98,7 +104,7 @@ export type WalletConnectionOption = WithWalletProviderConnectionOption | Wallet
98
104
  export type WalletOption = {
99
105
  /**
100
106
  * Ordered connection options for this wallet. Sorted by option-type
101
- * priority (`withWalletProvider` > `walletConnect` > `inAppBrowser`),
107
+ * priority (`withWalletProvider` > URI deeplink > `inAppBrowser`),
102
108
  * then by chain for stability. May be empty when only
103
109
  * `installationUrls` are available.
104
110
  */
@@ -107,7 +113,7 @@ export type WalletOption = {
107
113
  iconUrl: string;
108
114
  /**
109
115
  * Install / download links for this wallet. Present when
110
- * `includeInstallation: true` is passed to `getWalletOptionsCatalogue`
116
+ * `includeMobileOptions: true` is passed to `getWalletOptionsCatalogue`
111
117
  * and the wallet book carries at least one store ID / desktop URL for
112
118
  * the wallet. The customer UI should render these as install actions,
113
119
  * distinct from `connectionOptions`.
@@ -127,32 +133,14 @@ export type WalletOption = {
127
133
  * - `'alphabetical'`: case-insensitive by wallet option `name`.
128
134
  */
129
135
  export type WalletOptionOrdering = 'relevance' | 'alphabetical';
130
- /**
131
- * Parameters for `getWalletOptionsCatalogue`.
132
- *
133
- * Only `includeWithWalletProvider` defaults to `true`. The remaining flags
134
- * are opt-in — call sites that want WalletConnect or in-app-browser options
135
- * must request them explicitly.
136
- */
136
+ /** Parameters for `getWalletOptionsCatalogue`. */
137
137
  export type GetWalletOptionsCatalogueParams = {
138
- /** Defaults to `false`. Mobile in-app browser launch URL. */
139
- includeInAppBrowser?: boolean;
140
- /** Defaults to `false`. Install / download links for wallets the user doesn't have yet. */
141
- includeInstallation?: boolean;
142
- /**
143
- * Defaults to `false`. Meant to be used alongside our WalletConnect chain
144
- * extensions (`addWalletConnectEvmExtension`,
145
- * `addWalletConnectSolanaExtension`, …) so the WC pairing flow has
146
- * something to connect to once the user picks a wallet from the catalogue.
147
- */
148
- includeWalletConnect?: boolean;
149
138
  /**
150
- * Defaults to `true`. Use this for users who already have the wallet
151
- * available in the page browser extensions discovered via EIP-6963,
152
- * Wallet Standard, legacy window injection, or one of our SDK-backed
153
- * providers (Base Account, MetaMask Connect, …).
139
+ * Defaults to `false`. When `true`, additionally includes
140
+ * WalletConnect, in-app-browser, and install link surfaces. Adds
141
+ * network latency.
154
142
  */
155
- includeWithWalletProvider?: boolean;
143
+ includeMobileOptions?: boolean;
156
144
  /** Defaults to `'relevance'`. See {@link WalletOptionOrdering}. */
157
145
  walletOptionOrdering?: WalletOptionOrdering;
158
146
  };
@@ -1 +1 @@
1
- {"version":3,"file":"walletOptionsCatalogue.types.d.ts","sourceRoot":"","sources":["../../../src/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,wBAAwB,GAChC,eAAe,GACf,gBAAgB,GAChB,KAAK,CAAC;AAEV;;;;;;;;;GASG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC/C,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,wBAAwB,CAAC;IACjC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE;QACT,mDAAmD;QACnD,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,yDAAyD;QACzD,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,IAAI,EAAE,eAAe,CAAC;CACvB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAC9B,kCAAkC,GAClC,6BAA6B,GAC7B,4BAA4B,CAAC;AAEjC;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;;;OAKG;IACH,iBAAiB,EAAE,sBAAsB,EAAE,CAAC;IAC5C,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,2DAA2D;IAC3D,GAAG,EAAE,MAAM,CAAC;IACZ,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG,cAAc,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C,6DAA6D;IAC7D,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,2FAA2F;IAC3F,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;OAKG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,mEAAmE;IACnE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC7C,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"walletOptionsCatalogue.types.d.ts","sourceRoot":"","sources":["../../../src/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,wBAAwB,GAChC,eAAe,GACf,gBAAgB,GAChB,KAAK,CAAC;AAEV;;;;;;;;;GASG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC/C,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,wBAAwB,CAAC;IACjC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE;QACT,gDAAgD;QAChD,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,4DAA4D;QAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,IAAI,EAAE,eAAe,GAAG,gBAAgB,CAAC;CAC1C,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAC9B,kCAAkC,GAClC,2BAA2B,GAC3B,4BAA4B,CAAC;AAEjC;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;;;OAKG;IACH,iBAAiB,EAAE,sBAAsB,EAAE,CAAC;IAC5C,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,2DAA2D;IAC3D,GAAG,EAAE,MAAM,CAAC;IACZ,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG,cAAc,CAAC;AAEhE,kDAAkD;AAClD,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,mEAAmE;IACnE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC7C,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,YAAY,EAAE,CAAC"}
@@ -19,7 +19,7 @@ type ConnectWithWalletProviderParams = {
19
19
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
20
20
  * @returns A promise that resolves to the connected wallet account.
21
21
  * @throws NoAddressFoundError If the request to connect was successful but no address is connected to your app.
22
- * @instrumented
22
+ * @instrumented
23
23
  */
24
24
  export declare const connectWithWalletProvider: ({ walletProviderKey, addToDynamicWalletAccounts, hardwareWalletVendor, }: ConnectWithWalletProviderParams, client?: import("../../../exports").DynamicClient) => Promise<WalletAccount>;
25
25
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"connectWithWalletProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAKnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,KAAK,+BAA+B,GAAG;IACrC,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,yBAAyB,6EAKjC,+BAA+B,wDAEjC,OAAO,CAAC,aAAa,CAgEvB,CAAC"}
1
+ {"version":3,"file":"connectWithWalletProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAKnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,KAAK,+BAA+B,GAAG;IACrC,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,yBAAyB,6EAKjC,+BAA+B,wDAEjC,OAAO,CAAC,aAAa,CAqDvB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { reconcileWalletAccountsAgainstClient } from './reconcileWalletAccountsAgainstClient';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/reconcileWalletAccountsAgainstClient/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { DynamicClient } from '../../../client/types';
2
+ import type { WalletAccount } from '../walletAccount';
3
+ type ReconcileWalletAccountsAgainstClientParams = {
4
+ /** Whether to write new or updated unverified accounts to client state. Defaults to `true`. */
5
+ addToDynamicWalletAccounts?: boolean;
6
+ /** Freshly-connected wallet account candidates to reconcile. */
7
+ walletAccounts: WalletAccount[];
8
+ /** Wallet provider key these candidates were connected through. */
9
+ walletProviderKey: string;
10
+ };
11
+ /**
12
+ * Reconciles freshly-connected wallet accounts against the client state. For
13
+ * each candidate it classifies as new, a re-connect of an existing unverified
14
+ * account, or a re-connect of an already-verified account, then runs the
15
+ * appropriate state mutation (`setUnverifiedWalletAccounts`,
16
+ * `updateWalletProviderKeysForVerifiedCredentials`, `createVisit` for truly-new
17
+ * entries) and emits a single `walletAccountsChanged` event if anything
18
+ * actually changed. Returns the candidates with `verifiedCredentialId`
19
+ * populated when the address already corresponded to a verified credential.
20
+ *
21
+ * @not-instrumented
22
+ */
23
+ export declare const reconcileWalletAccountsAgainstClient: ({ addToDynamicWalletAccounts, walletAccounts, walletProviderKey, }: ReconcileWalletAccountsAgainstClientParams, client: DynamicClient) => WalletAccount[];
24
+ export {};
25
+ //# sourceMappingURL=reconcileWalletAccountsAgainstClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reconcileWalletAccountsAgainstClient.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/reconcileWalletAccountsAgainstClient/reconcileWalletAccountsAgainstClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAK3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,KAAK,0CAA0C,GAAG;IAChD,+FAA+F;IAC/F,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,gEAAgE;IAChE,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,mEAAmE;IACnE,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oCAAoC,uEAK5C,0CAA0C,UACrC,aAAa,KACpB,aAAa,EAmFf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"connectLoggerToInstrumentation.d.ts","sourceRoot":"","sources":["../../../../src/services/instrumentation/connectLoggerToInstrumentation/connectLoggerToInstrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAExD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAElF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,KAAK,oCAAoC,GAAG;IAC1C,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACxB,eAAe,EAAE,eAAe,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,eAAe,CAAC,gBAAgB,CAAC,CAAC;CAC1C,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B,6FAQxC,oCAAoC,SAsBtC,CAAC"}
1
+ {"version":3,"file":"connectLoggerToInstrumentation.d.ts","sourceRoot":"","sources":["../../../../src/services/instrumentation/connectLoggerToInstrumentation/connectLoggerToInstrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAExD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAElF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAGhE,KAAK,oCAAoC,GAAG;IAC1C,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACxB,eAAe,EAAE,eAAe,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,eAAe,CAAC,gBAAgB,CAAC,CAAC;CAC1C,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B,6FAQxC,oCAAoC,SA8BtC,CAAC"}
@@ -1,4 +1,26 @@
1
+ /**
2
+ * Default key-based PII scrubber list, lowercased and matched against the
3
+ * lowercased object key.
4
+ *
5
+ * Two complementary mechanisms cover credential leakage:
6
+ *
7
+ * 1. Explicit keys listed here — matched exactly (case-insensitive). Use this
8
+ * for keys that don't end in a generic credential suffix (e.g. `mnemonic`,
9
+ * `seed`, `verificationCode`, `keyShare`).
10
+ * 2. Suffix matching in {@link scrubParameters} for the credential suffixes
11
+ * enumerated by {@link PII_KEY_SUFFIXES} — catches any field whose name
12
+ * ends in `token` or `jwt` (e.g. `mfaToken`, `minifiedJwt`, `accessToken`,
13
+ * `idToken`, `captchaToken`, …) without needing to enumerate them here.
14
+ */
1
15
  export declare const DEFAULT_PII_FIELDS: string[];
16
+ /**
17
+ * Lowercased suffixes used by {@link scrubParameters} to match credential-like
18
+ * keys without enumerating every variant (e.g. `mfaToken`, `accessToken`,
19
+ * `refreshToken`, `legacyToken`, `minifiedJwt`). Only suffixes that are
20
+ * unambiguously credentials belong here — `key` (matches `publicKey`) and
21
+ * `code` (matches `countryCode`) are too broad and must not be added.
22
+ */
23
+ export declare const PII_KEY_SUFFIXES: string[];
2
24
  export declare const REDACTED_VALUE = "[REDACTED]";
3
25
  export declare const MAX_STRING_LENGTH = 500;
4
26
  export declare const TRUNCATED_SUFFIX = "...[truncated]";
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/services/instrumentation/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,UAY9B,CAAC;AAEF,eAAO,MAAM,cAAc,eAAe,CAAC;AAE3C,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC,eAAO,MAAM,gBAAgB,mBAAmB,CAAC;AAEjD;;;;GAIG;AACH,eAAO,MAAM,YAAY,WAAW,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/services/instrumentation/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,UAqB9B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,UAAmB,CAAC;AAEjD,eAAO,MAAM,cAAc,eAAe,CAAC;AAE3C,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC,eAAO,MAAM,gBAAgB,mBAAmB,CAAC;AAEjD;;;;GAIG;AACH,eAAO,MAAM,YAAY,WAAW,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,cAAc,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"scrubParameters.d.ts","sourceRoot":"","sources":["../../../../src/services/instrumentation/scrubParameters/scrubParameters.ts"],"names":[],"mappings":"AAcA,KAAK,qBAAqB,GAAG;IAC3B,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,CAAC;AA6KF,wBAAwB;AAExB,eAAO,MAAM,eAAe,qCAIzB,qBAAqB,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAQhD,CAAC"}
1
+ {"version":3,"file":"scrubParameters.d.ts","sourceRoot":"","sources":["../../../../src/services/instrumentation/scrubParameters/scrubParameters.ts"],"names":[],"mappings":"AAuCA,KAAK,qBAAqB,GAAG;IAC3B,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,CAAC;AAmLF,wBAAwB;AAExB,eAAO,MAAM,eAAe,qCAIzB,qBAAqB,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAQhD,CAAC"}