@dynamic-labs-sdk/client 1.3.0 → 1.5.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 (225) hide show
  1. package/dist/{InvalidParamError-DQvZQdQ9.cjs → InvalidParamError-DKJhDrK8.cjs} +1056 -110
  2. package/dist/InvalidParamError-DKJhDrK8.cjs.map +1 -0
  3. package/dist/{InvalidParamError-Za4cvW7K.esm.js → InvalidParamError-DWjMfOZ5.esm.js} +852 -95
  4. package/dist/InvalidParamError-DWjMfOZ5.esm.js.map +1 -0
  5. package/dist/{InvalidParamError-9kQBK3sP.native.esm.js → InvalidParamError-DkAMYJOW.native.esm.js} +885 -95
  6. package/dist/InvalidParamError-DkAMYJOW.native.esm.js.map +1 -0
  7. package/dist/{NotWaasWalletAccountError-By3Y4taq.esm.js → NotWaasWalletAccountError-BVrvQzLz.native.esm.js} +7 -5
  8. package/dist/NotWaasWalletAccountError-BVrvQzLz.native.esm.js.map +1 -0
  9. package/dist/{NotWaasWalletAccountError-BTMvHTA8.native.esm.js → NotWaasWalletAccountError-C7NUlvvM.esm.js} +7 -5
  10. package/dist/NotWaasWalletAccountError-C7NUlvvM.esm.js.map +1 -0
  11. package/dist/{NotWaasWalletAccountError-Ciq7b-Y6.cjs → NotWaasWalletAccountError-CHzpa9kk.cjs} +7 -5
  12. package/dist/NotWaasWalletAccountError-CHzpa9kk.cjs.map +1 -0
  13. package/dist/core.cjs +46 -23
  14. package/dist/core.cjs.map +1 -1
  15. package/dist/core.esm.js +29 -8
  16. package/dist/core.esm.js.map +1 -1
  17. package/dist/core.native.esm.js +27 -6
  18. package/dist/core.native.esm.js.map +1 -1
  19. package/dist/exports/core.d.ts +6 -0
  20. package/dist/exports/core.d.ts.map +1 -1
  21. package/dist/exports/index.d.ts +14 -1
  22. package/dist/exports/index.d.ts.map +1 -1
  23. package/dist/{getNetworkProviderFromNetworkId-BA0CHZzu.cjs → getNetworkProviderFromNetworkId-BJ27N-7S.cjs} +113 -348
  24. package/dist/getNetworkProviderFromNetworkId-BJ27N-7S.cjs.map +1 -0
  25. package/dist/{getNetworkProviderFromNetworkId-COptFPwJ.native.esm.js → getNetworkProviderFromNetworkId-Bs1kQdWk.native.esm.js} +106 -311
  26. package/dist/getNetworkProviderFromNetworkId-Bs1kQdWk.native.esm.js.map +1 -0
  27. package/dist/{getNetworkProviderFromNetworkId-RWcIZDgC.esm.js → getNetworkProviderFromNetworkId-Cqp9eRSs.esm.js} +110 -282
  28. package/dist/getNetworkProviderFromNetworkId-Cqp9eRSs.esm.js.map +1 -0
  29. package/dist/{getSignedSessionId-la6RXITX.esm.js → getSignedSessionId-CDdKrnw6.esm.js} +3 -3
  30. package/dist/{getSignedSessionId-la6RXITX.esm.js.map → getSignedSessionId-CDdKrnw6.esm.js.map} +1 -1
  31. package/dist/{getSignedSessionId-BCU987hO.cjs → getSignedSessionId-CHDHr-hY.cjs} +3 -3
  32. package/dist/{getSignedSessionId-BCU987hO.cjs.map → getSignedSessionId-CHDHr-hY.cjs.map} +1 -1
  33. package/dist/{getSignedSessionId-DzNCj6g_.native.esm.js → getSignedSessionId-D3KQrN8W.native.esm.js} +3 -3
  34. package/dist/{getSignedSessionId-DzNCj6g_.native.esm.js.map → getSignedSessionId-D3KQrN8W.native.esm.js.map} +1 -1
  35. package/dist/getVerifiedCredentialForWalletAccount-BuUCX040.esm.js +269 -0
  36. package/dist/getVerifiedCredentialForWalletAccount-BuUCX040.esm.js.map +1 -0
  37. package/dist/getVerifiedCredentialForWalletAccount-Ciac5d5L.native.esm.js +269 -0
  38. package/dist/getVerifiedCredentialForWalletAccount-Ciac5d5L.native.esm.js.map +1 -0
  39. package/dist/getVerifiedCredentialForWalletAccount-gCx0smU8.cjs +346 -0
  40. package/dist/getVerifiedCredentialForWalletAccount-gCx0smU8.cjs.map +1 -0
  41. package/dist/index.cjs +754 -319
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/index.esm.js +687 -260
  44. package/dist/index.esm.js.map +1 -1
  45. package/dist/index.native.esm.js +684 -257
  46. package/dist/index.native.esm.js.map +1 -1
  47. package/dist/{isMfaRequiredForAction-C1u4Z__n.esm.js → isMfaRequiredForAction-B0xNvBpU.native.esm.js} +5 -3
  48. package/dist/isMfaRequiredForAction-B0xNvBpU.native.esm.js.map +1 -0
  49. package/dist/{isMfaRequiredForAction-CMClgbT0.cjs → isMfaRequiredForAction-CLMvTTwl.cjs} +5 -3
  50. package/dist/isMfaRequiredForAction-CLMvTTwl.cjs.map +1 -0
  51. package/dist/{isMfaRequiredForAction-DSX-TV2z.native.esm.js → isMfaRequiredForAction-C_QPI1LH.esm.js} +5 -3
  52. package/dist/isMfaRequiredForAction-C_QPI1LH.esm.js.map +1 -0
  53. package/dist/modules/apiClient/apiClient.types.d.ts +12 -0
  54. package/dist/modules/apiClient/apiClient.types.d.ts.map +1 -1
  55. package/dist/modules/apiClient/createApiClient.d.ts.map +1 -1
  56. package/dist/modules/apiClient/utils/sessionExpiryLogoutMiddleware/createSessionExpiryLogoutMiddleware.d.ts +27 -0
  57. package/dist/modules/apiClient/utils/sessionExpiryLogoutMiddleware/createSessionExpiryLogoutMiddleware.d.ts.map +1 -0
  58. package/dist/modules/auth/externalAuth/requestExternalAuthElevatedToken/requestExternalAuthElevatedToken.d.ts +1 -0
  59. package/dist/modules/auth/externalAuth/requestExternalAuthElevatedToken/requestExternalAuthElevatedToken.d.ts.map +1 -1
  60. package/dist/modules/auth/isSignedIn/isSignedIn.d.ts +11 -1
  61. package/dist/modules/auth/isSignedIn/isSignedIn.d.ts.map +1 -1
  62. package/dist/modules/auth/logoutReason.d.ts +1 -1
  63. package/dist/modules/auth/logoutReason.d.ts.map +1 -1
  64. package/dist/modules/auth/logoutWithReason/logoutWithReason.d.ts.map +1 -1
  65. package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts +2 -1
  66. package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts.map +1 -1
  67. package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts +1 -0
  68. package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts.map +1 -1
  69. package/dist/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.d.ts +2 -1
  70. package/dist/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.d.ts.map +1 -1
  71. package/dist/modules/balances/getBalances/getBalances.d.ts +9 -45
  72. package/dist/modules/balances/getBalances/getBalances.d.ts.map +1 -1
  73. package/dist/modules/balances/getMultichainBalances/getMultichainBalances.d.ts +13 -20
  74. package/dist/modules/balances/getMultichainBalances/getMultichainBalances.d.ts.map +1 -1
  75. package/dist/modules/balances/getMultichainTokenBalances/getMultichainTokenBalances.d.ts +26 -0
  76. package/dist/modules/balances/getMultichainTokenBalances/getMultichainTokenBalances.d.ts.map +1 -0
  77. package/dist/modules/balances/getMultichainTokenBalances/index.d.ts +2 -0
  78. package/dist/modules/balances/getMultichainTokenBalances/index.d.ts.map +1 -0
  79. package/dist/modules/balances/getTokenBalances/getTokenBalances.d.ts +56 -0
  80. package/dist/modules/balances/getTokenBalances/getTokenBalances.d.ts.map +1 -0
  81. package/dist/modules/balances/getTokenBalances/index.d.ts +3 -0
  82. package/dist/modules/balances/getTokenBalances/index.d.ts.map +1 -0
  83. package/dist/modules/captcha/setCaptchaToken/setCaptchaToken.d.ts +2 -1
  84. package/dist/modules/captcha/setCaptchaToken/setCaptchaToken.d.ts.map +1 -1
  85. package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts.map +1 -1
  86. package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts +1 -1
  87. package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts.map +1 -1
  88. package/dist/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.d.ts +1 -1
  89. package/dist/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.d.ts.map +1 -1
  90. package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts.map +1 -1
  91. package/dist/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.d.ts.map +1 -1
  92. package/dist/modules/checkout/utils/clearCheckoutSessionToken/clearCheckoutSessionToken.d.ts +22 -0
  93. package/dist/modules/checkout/utils/clearCheckoutSessionToken/clearCheckoutSessionToken.d.ts.map +1 -0
  94. package/dist/modules/checkout/utils/clearCheckoutSessionToken/index.d.ts +3 -0
  95. package/dist/modules/checkout/utils/clearCheckoutSessionToken/index.d.ts.map +1 -0
  96. package/dist/modules/checkout/utils/subscribeToCheckoutTransaction/subscribeToCheckoutTransaction.d.ts.map +1 -1
  97. package/dist/modules/checkout/utils/withCheckoutSessionTokenCleanupOn401/index.d.ts +3 -0
  98. package/dist/modules/checkout/utils/withCheckoutSessionTokenCleanupOn401/index.d.ts.map +1 -0
  99. package/dist/modules/checkout/utils/withCheckoutSessionTokenCleanupOn401/withCheckoutSessionTokenCleanupOn401.d.ts +16 -0
  100. package/dist/modules/checkout/utils/withCheckoutSessionTokenCleanupOn401/withCheckoutSessionTokenCleanupOn401.d.ts.map +1 -0
  101. package/dist/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.d.ts.map +1 -1
  102. package/dist/modules/funding/moonpay/errors/MoonPayCurrenciesFetchError.d.ts +5 -0
  103. package/dist/modules/funding/moonpay/errors/MoonPayCurrenciesFetchError.d.ts.map +1 -0
  104. package/dist/modules/funding/moonpay/errors/MoonPayInvalidUrlError.d.ts +5 -0
  105. package/dist/modules/funding/moonpay/errors/MoonPayInvalidUrlError.d.ts.map +1 -0
  106. package/dist/modules/funding/moonpay/errors/MoonPayProviderNotAvailableError.d.ts +5 -0
  107. package/dist/modules/funding/moonpay/errors/MoonPayProviderNotAvailableError.d.ts.map +1 -0
  108. package/dist/modules/funding/moonpay/getMoonPayCurrencies/getMoonPayCurrencies.d.ts +14 -0
  109. package/dist/modules/funding/moonpay/getMoonPayCurrencies/getMoonPayCurrencies.d.ts.map +1 -0
  110. package/dist/modules/funding/moonpay/getMoonPayCurrencies/index.d.ts +2 -0
  111. package/dist/modules/funding/moonpay/getMoonPayCurrencies/index.d.ts.map +1 -0
  112. package/dist/modules/funding/moonpay/getMoonPayUrl/getMoonPayUrl.d.ts +15 -0
  113. package/dist/modules/funding/moonpay/getMoonPayUrl/getMoonPayUrl.d.ts.map +1 -0
  114. package/dist/modules/funding/moonpay/getMoonPayUrl/index.d.ts +2 -0
  115. package/dist/modules/funding/moonpay/getMoonPayUrl/index.d.ts.map +1 -0
  116. package/dist/modules/funding/moonpay/moonpay.types.d.ts +26 -0
  117. package/dist/modules/funding/moonpay/moonpay.types.d.ts.map +1 -0
  118. package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getChainFromWalletSchema/getChainFromWalletSchema.d.ts +12 -0
  119. package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getChainFromWalletSchema/getChainFromWalletSchema.d.ts.map +1 -1
  120. package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getChainsFromWalletSchema/getChainsFromWalletSchema.d.ts +26 -0
  121. package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getChainsFromWalletSchema/getChainsFromWalletSchema.d.ts.map +1 -0
  122. package/dist/modules/legacyWalletBook/hasUsableDeeplink/hasUsableDeeplink.d.ts +18 -0
  123. package/dist/modules/legacyWalletBook/hasUsableDeeplink/hasUsableDeeplink.d.ts.map +1 -0
  124. package/dist/modules/legacyWalletBook/legacyWalletBook.types.d.ts +2 -2
  125. package/dist/modules/legacyWalletBook/legacyWalletBook.types.d.ts.map +1 -1
  126. package/dist/modules/mfa/consumeMfaToken/consumeMfaToken.d.ts +2 -1
  127. package/dist/modules/mfa/consumeMfaToken/consumeMfaToken.d.ts.map +1 -1
  128. package/dist/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.d.ts +2 -1
  129. package/dist/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.d.ts.map +1 -1
  130. package/dist/modules/otp/verifyOTP/verifyOTP.d.ts +2 -1
  131. package/dist/modules/otp/verifyOTP/verifyOTP.d.ts.map +1 -1
  132. package/dist/modules/swap/executeSwapTransaction/executeSwapTransaction.d.ts +13 -1
  133. package/dist/modules/swap/executeSwapTransaction/executeSwapTransaction.d.ts.map +1 -1
  134. package/dist/modules/user/refreshAuth/refreshAuth.d.ts +2 -1
  135. package/dist/modules/user/refreshAuth/refreshAuth.d.ts.map +1 -1
  136. package/dist/modules/walletOptionsCatalogue/buildMetaMaskSdkUriOptions/buildMetaMaskSdkUriOptions.d.ts +27 -0
  137. package/dist/modules/walletOptionsCatalogue/buildMetaMaskSdkUriOptions/buildMetaMaskSdkUriOptions.d.ts.map +1 -0
  138. package/dist/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.d.ts +8 -5
  139. package/dist/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.d.ts.map +1 -1
  140. package/dist/modules/walletOptionsCatalogue/buildWalletOption/buildWalletOption.d.ts +11 -4
  141. package/dist/modules/walletOptionsCatalogue/buildWalletOption/buildWalletOption.d.ts.map +1 -1
  142. package/dist/modules/walletOptionsCatalogue/buildWithWalletProviderOptions/buildWithWalletProviderOptions.d.ts.map +1 -1
  143. package/dist/modules/walletOptionsCatalogue/getConnectionOptionPriority/getConnectionOptionPriority.d.ts.map +1 -1
  144. package/dist/modules/walletOptionsCatalogue/getInstallationLinkForCurrentPlatform/getInstallationLinkForCurrentPlatform.d.ts +35 -0
  145. package/dist/modules/walletOptionsCatalogue/getInstallationLinkForCurrentPlatform/getInstallationLinkForCurrentPlatform.d.ts.map +1 -0
  146. package/dist/modules/walletOptionsCatalogue/getInstallationLinkForCurrentPlatform/index.d.ts +2 -0
  147. package/dist/modules/walletOptionsCatalogue/getInstallationLinkForCurrentPlatform/index.d.ts.map +1 -0
  148. package/dist/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.d.ts +9 -14
  149. package/dist/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.d.ts.map +1 -1
  150. package/dist/modules/walletOptionsCatalogue/resolveWalletBookWalletOptionKey/resolveWalletBookWalletOptionKey.d.ts +1 -1
  151. package/dist/modules/walletOptionsCatalogue/sortConnectionOptions/sortConnectionOptions.d.ts +1 -1
  152. package/dist/modules/walletOptionsCatalogue/sortWalletOptions/sortWalletOptions.d.ts +1 -1
  153. package/dist/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.d.ts +34 -35
  154. package/dist/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.d.ts.map +1 -1
  155. package/dist/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.d.ts +1 -1
  156. package/dist/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.d.ts.map +1 -1
  157. package/dist/modules/wallets/constants.d.ts +7 -0
  158. package/dist/modules/wallets/constants.d.ts.map +1 -1
  159. package/dist/modules/wallets/getAvailableWalletProvidersData/getAvailableWalletProvidersData.d.ts.map +1 -1
  160. package/dist/modules/wallets/hasWalletProviderConnectMethod/hasWalletProviderConnectMethod.d.ts +26 -0
  161. package/dist/modules/wallets/hasWalletProviderConnectMethod/hasWalletProviderConnectMethod.d.ts.map +1 -0
  162. package/dist/modules/wallets/hasWalletProviderConnectMethod/index.d.ts +2 -0
  163. package/dist/modules/wallets/hasWalletProviderConnectMethod/index.d.ts.map +1 -0
  164. package/dist/modules/wallets/isAnyWalletAccountConnected/index.d.ts +2 -0
  165. package/dist/modules/wallets/isAnyWalletAccountConnected/index.d.ts.map +1 -0
  166. package/dist/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.d.ts +14 -0
  167. package/dist/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.d.ts.map +1 -0
  168. package/dist/modules/wallets/networks/getBalance/getBalance.d.ts +6 -17
  169. package/dist/modules/wallets/networks/getBalance/getBalance.d.ts.map +1 -1
  170. package/dist/modules/wallets/networks/getNativeBalance/getNativeBalance.d.ts +24 -0
  171. package/dist/modules/wallets/networks/getNativeBalance/getNativeBalance.d.ts.map +1 -0
  172. package/dist/modules/wallets/networks/getNativeBalance/index.d.ts +2 -0
  173. package/dist/modules/wallets/networks/getNativeBalance/index.d.ts.map +1 -0
  174. package/dist/modules/wallets/reconcileWalletAccountsAgainstClient/index.d.ts +2 -0
  175. package/dist/modules/wallets/reconcileWalletAccountsAgainstClient/index.d.ts.map +1 -0
  176. package/dist/modules/wallets/reconcileWalletAccountsAgainstClient/reconcileWalletAccountsAgainstClient.d.ts +25 -0
  177. package/dist/modules/wallets/reconcileWalletAccountsAgainstClient/reconcileWalletAccountsAgainstClient.d.ts.map +1 -0
  178. package/dist/modules/wallets/walletProvider/walletProvider.types.d.ts +10 -0
  179. package/dist/modules/wallets/walletProvider/walletProvider.types.d.ts.map +1 -1
  180. package/dist/services/instrumentation/connectLoggerToInstrumentation/connectLoggerToInstrumentation.d.ts.map +1 -1
  181. package/dist/services/instrumentation/constants.d.ts +22 -0
  182. package/dist/services/instrumentation/constants.d.ts.map +1 -1
  183. package/dist/services/instrumentation/scrubParameters/scrubParameters.d.ts.map +1 -1
  184. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  185. package/dist/utils/appendConnectionUriToDeeplink/appendConnectionUriToDeeplink.d.ts +29 -0
  186. package/dist/utils/appendConnectionUriToDeeplink/appendConnectionUriToDeeplink.d.ts.map +1 -0
  187. package/dist/utils/appendConnectionUriToDeeplink/index.d.ts +2 -0
  188. package/dist/utils/appendConnectionUriToDeeplink/index.d.ts.map +1 -0
  189. package/dist/utils/getChainFromWalletBookIdentifier/getChainFromWalletBookIdentifier.d.ts +22 -0
  190. package/dist/utils/getChainFromWalletBookIdentifier/getChainFromWalletBookIdentifier.d.ts.map +1 -0
  191. package/dist/utils/getChainFromWalletBookIdentifier/index.d.ts +2 -0
  192. package/dist/utils/getChainFromWalletBookIdentifier/index.d.ts.map +1 -0
  193. package/dist/utils/getNativeLinkScheme/getNativeLinkScheme.d.ts +18 -0
  194. package/dist/utils/getNativeLinkScheme/getNativeLinkScheme.d.ts.map +1 -0
  195. package/dist/utils/getNativeLinkScheme/index.d.ts +3 -0
  196. package/dist/utils/getNativeLinkScheme/index.d.ts.map +1 -0
  197. package/dist/utils/isMobile/isMobile.d.ts +8 -0
  198. package/dist/utils/isMobile/isMobile.d.ts.map +1 -1
  199. package/dist/waas.cjs +8 -9
  200. package/dist/waas.cjs.map +1 -1
  201. package/dist/waas.esm.js +3 -3
  202. package/dist/waas.native.esm.js +3 -3
  203. package/dist/waasCore.cjs +3 -4
  204. package/dist/waasCore.cjs.map +1 -1
  205. package/dist/waasCore.esm.js +3 -3
  206. package/dist/waasCore.native.esm.js +3 -3
  207. package/package.json +4 -4
  208. package/dist/InvalidParamError-9kQBK3sP.native.esm.js.map +0 -1
  209. package/dist/InvalidParamError-DQvZQdQ9.cjs.map +0 -1
  210. package/dist/InvalidParamError-Za4cvW7K.esm.js.map +0 -1
  211. package/dist/NotWaasWalletAccountError-BTMvHTA8.native.esm.js.map +0 -1
  212. package/dist/NotWaasWalletAccountError-By3Y4taq.esm.js.map +0 -1
  213. package/dist/NotWaasWalletAccountError-Ciq7b-Y6.cjs.map +0 -1
  214. package/dist/getNetworkProviderFromNetworkId-BA0CHZzu.cjs.map +0 -1
  215. package/dist/getNetworkProviderFromNetworkId-COptFPwJ.native.esm.js.map +0 -1
  216. package/dist/getNetworkProviderFromNetworkId-RWcIZDgC.esm.js.map +0 -1
  217. package/dist/getVerifiedCredentialForWalletAccount-DKJcLLHq.native.esm.js +0 -701
  218. package/dist/getVerifiedCredentialForWalletAccount-DKJcLLHq.native.esm.js.map +0 -1
  219. package/dist/getVerifiedCredentialForWalletAccount-DSSDwOyq.cjs +0 -887
  220. package/dist/getVerifiedCredentialForWalletAccount-DSSDwOyq.cjs.map +0 -1
  221. package/dist/getVerifiedCredentialForWalletAccount-Ozctwnyv.esm.js +0 -701
  222. package/dist/getVerifiedCredentialForWalletAccount-Ozctwnyv.esm.js.map +0 -1
  223. package/dist/isMfaRequiredForAction-C1u4Z__n.esm.js.map +0 -1
  224. package/dist/isMfaRequiredForAction-CMClgbT0.cjs.map +0 -1
  225. package/dist/isMfaRequiredForAction-DSX-TV2z.native.esm.js.map +0 -1
@@ -1,21 +1,16 @@
1
1
  import type { GetWalletOptionsCatalogueParams, WalletOptionsCatalogue } from '../walletOptionsCatalogue.types';
2
2
  /**
3
- * Returns a catalogue of the external wallet options a user can sign in
4
- * with through this client. Each wallet option carries an ordered
5
- * `connectionOptions` array `withWalletProvider` (direct), `walletConnect`
6
- * (deeplink/QR), or `inAppBrowser` (mobile webview). Wallet options without
7
- * any matching connections are omitted.
3
+ * Returns the catalogue of external wallet options a user can sign in
4
+ * with through this client. Always includes installed wallet providers;
5
+ * pass `includeMobileOptions: true` to additionally surface
6
+ * WalletConnect, in-app-browser, and install links.
8
7
  *
9
- * `includeWithWalletProvider` defaults to `true`; all other inclusion flags
10
- * are opt-in. `walletOptionOrdering` defaults to `'relevance'` (Dynamic's
11
- * recommended order); pass `'alphabetical'` to sort by wallet option name
12
- * within each option-priority tier.
8
+ * Pass `excludedConnectionOptionTypes` to drop specific connection types
9
+ * from the catalogue (e.g. `['inAppBrowser']` on desktop). Wallets whose
10
+ * only connection was an excluded type fall through to the install-only
11
+ * tier of the relevance ordering.
13
12
  *
14
- * The wallet book is fetched only when an enabled flag needs it
15
- * (`includeWalletConnect`, `includeInAppBrowser`). Calls that only need
16
- * `includeWithWalletProvider` skip the fetch entirely.
17
- *
18
- * @param [params] - Inclusion flags + ordering preference.
13
+ * @param [params] - Inclusion flag + ordering preference + exclusions.
19
14
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
20
15
  * @returns A promise that resolves to the wallet options catalogue.
21
16
  * @not-instrumented
@@ -1 +1 @@
1
- {"version":3,"file":"getWalletOptionsCatalogue.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,+BAA+B,EAG/B,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AAIzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,yBAAyB,YAC5B,+BAA+B,wDAEtC,OAAO,CAAC,sBAAsB,CA8EhC,CAAC"}
1
+ {"version":3,"file":"getWalletOptionsCatalogue.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EACV,+BAA+B,EAG/B,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AAIzC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,yBAAyB,YAC5B,+BAA+B,wDAEtC,OAAO,CAAC,sBAAsB,CA2EhC,CAAC"}
@@ -5,7 +5,7 @@ type ResolveWalletBookWalletOptionKeyParams = {
5
5
  };
6
6
  /**
7
7
  * Resolves which wallet option (group) a wallet book entry belongs to. Used
8
- * by the catalogue's wallet-book-driven transformers (`walletConnect`,
8
+ * by the catalogue's wallet-book-driven transformers (URI deeplink,
9
9
  * `inAppBrowser`, `installation`) to bucket their emitted options.
10
10
  *
11
11
  * Wallet book entries inconsistently use `group` / `chainGroup` /
@@ -5,7 +5,7 @@ type SortConnectionOptionsParams = {
5
5
  /**
6
6
  * Sorts a wallet option's `connectionOptions` so the most preferred option lands at
7
7
  * index 0. Primary sort is by option-type priority
8
- * (`withWalletProvider` > `walletConnect` > `inAppBrowser`);
8
+ * (`withWalletProvider` > URI deeplink > `inAppBrowser`);
9
9
  * within a type, ties break alphabetically by `chain` for deterministic
10
10
  * output across calls.
11
11
  *
@@ -13,7 +13,7 @@ type SortWalletOptionsParams = {
13
13
  * this order:
14
14
  * 1. **Installed provider** — user already has the wallet available
15
15
  * (`withWalletProvider` at index 0).
16
- * 2. **Connectable** — has at least one connection (`walletConnect`
16
+ * 2. **Connectable** — has at least one connection (URI deeplink
17
17
  * or `inAppBrowser`) but no installed provider.
18
18
  * 3. **Install-only** — no connection at all; only `installationUrls`.
19
19
  * Within each tier, rank by the hand-curated {@link PRIORITY_WALLET_KEYS}
@@ -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,25 @@ 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
138
  /**
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.
139
+ * Connection option types to drop from the catalogue before sorting and
140
+ * bucketing. Use this to opt a surface out of the catalogue without
141
+ * relying on caller-side filters e.g. dropping `'inAppBrowser'` on
142
+ * desktop so wallets whose only connection was an in-app-browser entry
143
+ * fall through to the install-only tier instead of appearing in the
144
+ * connectable bucket with no effective connect path.
145
+ *
146
+ * Defaults to `[]` (include every type).
147
147
  */
148
- includeWalletConnect?: boolean;
148
+ excludedConnectionOptionTypes?: WalletConnectionOption['type'][];
149
149
  /**
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, …).
150
+ * Defaults to `false`. When `true`, additionally includes
151
+ * WalletConnect, in-app-browser, and install link surfaces. Adds
152
+ * network latency.
154
153
  */
155
- includeWithWalletProvider?: boolean;
154
+ includeMobileOptions?: boolean;
156
155
  /** Defaults to `'relevance'`. See {@link WalletOptionOrdering}. */
157
156
  walletOptionOrdering?: WalletOptionOrdering;
158
157
  };
@@ -1 +1 @@
1
- {"version":3,"file":"walletOptionsCatalogue.types.d.ts","sourceRoot":"","sources":["../../../src/modules/walletOptionsCatalogue/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;;;;;;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,oBA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,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;;;;;;;;;OASG;IACH,6BAA6B,CAAC,EAAE,sBAAsB,CAAC,MAAM,CAAC,EAAE,CAAC;IACjE;;;;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"}
@@ -2,6 +2,13 @@ import type { Chain } from '../chain';
2
2
  type ChainInfo = {
3
3
  apiChainName: string;
4
4
  blockchainName: string;
5
+ /**
6
+ * Extra identifiers the wallet book may use to refer to this chain in
7
+ * `injectedConfig[].chain` or embedded in a wallet key, in addition to
8
+ * `apiChainName`. e.g. `bitcoin` uses apiChainName but `btc` is also
9
+ * accepted in wallet book entries.
10
+ */
11
+ legacyWalletBookAliases?: string[];
5
12
  verifiedCredentialChainName: string;
6
13
  waasChainNameOverride?: string;
7
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/modules/wallets/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,2BAA2B,EAAE,MAAM,CAAC;IACpC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,KAAK,EAAE,SAAS,CAwFpD,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/modules/wallets/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAC;IACnC,2BAA2B,EAAE,MAAM,CAAC;IACpC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,KAAK,EAAE,SAAS,CA2FpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getAvailableWalletProvidersData.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/getAvailableWalletProvidersData/getAvailableWalletProvidersData.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5D;;;;;;;;;GASG;AACH,eAAO,MAAM,+BAA+B,yDAEzC,kBAAkB,EAgBpB,CAAC"}
1
+ {"version":3,"file":"getAvailableWalletProvidersData.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/getAvailableWalletProvidersData/getAvailableWalletProvidersData.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5D;;;;;;;;;GASG;AACH,eAAO,MAAM,+BAA+B,yDAEzC,kBAAkB,EAcpB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { WalletProvider } from '../walletProvider';
2
+ type HasWalletProviderConnectMethodParams = {
3
+ walletProvider: WalletProvider;
4
+ };
5
+ /**
6
+ * Returns true when the given wallet provider exposes a `connect` method,
7
+ * which is the signal we use to decide whether it belongs in the external
8
+ * wallet picker as an `available provider`.
9
+ *
10
+ * Providers that don't expose `connect` (embedded wallets,
11
+ * account-abstraction wrappers, MetaMask SDK / WalletConnect-backed
12
+ * providers) are still sign-in capable, but via different SDK entry
13
+ * points — they should not appear in the external picker as a
14
+ * `withWalletProvider`-style option.
15
+ *
16
+ * Centralizing the predicate means future tweaks (e.g. a registry of
17
+ * provider keys to exclude) land in one place and every consumer stays
18
+ * in lockstep.
19
+ *
20
+ * @param params.walletProvider - The wallet provider to test.
21
+ * @returns True when the provider exposes a `connect` method.
22
+ * @not-instrumented
23
+ */
24
+ export declare const hasWalletProviderConnectMethod: ({ walletProvider, }: HasWalletProviderConnectMethodParams) => boolean;
25
+ export {};
26
+ //# sourceMappingURL=hasWalletProviderConnectMethod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasWalletProviderConnectMethod.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/hasWalletProviderConnectMethod/hasWalletProviderConnectMethod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,KAAK,oCAAoC,GAAG;IAC1C,cAAc,EAAE,cAAc,CAAC;CAChC,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,8BAA8B,wBAExC,oCAAoC,KAAG,OACT,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { hasWalletProviderConnectMethod } from './hasWalletProviderConnectMethod';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/hasWalletProviderConnectMethod/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { isAnyWalletAccountConnected } from './isAnyWalletAccountConnected';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/isAnyWalletAccountConnected/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Checks whether the session has at least one connected wallet account.
3
+ *
4
+ * Both verified and unverified wallet accounts count as connected. This is a
5
+ * single building block for a custom signed-in check — combine it with whatever
6
+ * else your app considers "signed in" (e.g. `client.user`, completed onboarding,
7
+ * a required embedded wallet, …).
8
+ *
9
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
10
+ * @returns True if the session has at least one wallet account, false otherwise.
11
+ * @not-instrumented
12
+ */
13
+ export declare const isAnyWalletAccountConnected: (client?: import("../../../exports").DynamicClient) => boolean;
14
+ //# sourceMappingURL=isAnyWalletAccountConnected.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isAnyWalletAccountConnected.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,2BAA2B,yDAErC,OAA+C,CAAC"}
@@ -1,20 +1,9 @@
1
- import type { WalletAccount } from '../../walletAccount';
2
- type GetBalanceParams = {
3
- walletAccount: WalletAccount;
4
- };
5
1
  /**
6
- * Retrieves the native token balance for a wallet account.
7
- *
8
- * This function fetches the balance of the native cryptocurrency
9
- * (e.g., ETH, SOL, BTC, etc.) for the specified wallet account.
10
- *
11
- * @param params.walletAccount - The wallet account to get the balance for.
12
- * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
13
- * @returns A promise that resolves to an object containing the balance as a string or null.
14
- * @not-instrumented
2
+ * @deprecated Use {@link getNativeBalance} instead. Renamed so its name
3
+ * states what it returns (native gas balance) and is no longer confusable
4
+ * with the token-balance fetchers (`getTokenBalances` /
5
+ * `getMultichainTokenBalances`).
6
+ * @not-instrumented
15
7
  */
16
- export declare const getBalance: ({ walletAccount }: GetBalanceParams, client?: import("../../../../exports").DynamicClient) => Promise<{
17
- balance: string | null;
18
- }>;
19
- export {};
8
+ export { getNativeBalance as getBalance } from '../getNativeBalance/getNativeBalance';
20
9
  //# sourceMappingURL=getBalance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getBalance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getBalance/getBalance.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,KAAK,gBAAgB,GAAG;IACtB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,sBACF,gBAAgB,2DAElC,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAgBpC,CAAC"}
1
+ {"version":3,"file":"getBalance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getBalance/getBalance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,gBAAgB,IAAI,UAAU,EAAE,MAAM,sCAAsC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { WalletAccount } from '../../walletAccount';
2
+ type GetNativeBalanceParams = {
3
+ walletAccount: WalletAccount;
4
+ };
5
+ /**
6
+ * Retrieves the native token balance for a wallet account on its active
7
+ * network. Reads directly from the chain's network provider (RPC), not
8
+ * the Dynamic API.
9
+ *
10
+ * Use this when you only need the user's gas / native-currency balance
11
+ * (ETH, SOL, BTC, etc.). For token balances, use
12
+ * {@link getTokenBalances}; for a multi-chain portfolio snapshot, use
13
+ * {@link getMultichainTokenBalances}.
14
+ *
15
+ * @param params.walletAccount - The wallet account to get the balance for.
16
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
17
+ * @returns A promise that resolves to an object containing the balance as a string or null.
18
+ * @not-instrumented
19
+ */
20
+ export declare const getNativeBalance: ({ walletAccount }: GetNativeBalanceParams, client?: import("../../../../exports").DynamicClient) => Promise<{
21
+ balance: string | null;
22
+ }>;
23
+ export {};
24
+ //# sourceMappingURL=getNativeBalance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNativeBalance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getNativeBalance/getNativeBalance.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,KAAK,sBAAsB,GAAG;IAC5B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,sBACR,sBAAsB,2DAExC,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAgBpC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { getNativeBalance } from './getNativeBalance';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getNativeBalance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,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"}
@@ -72,6 +72,16 @@ export type TransferAmountParams = {
72
72
  export type ExecuteSwapTransactionParams = {
73
73
  onStepChange?: (step: 'approval' | 'transaction') => void;
74
74
  signingPayload: SwapSigningPayload;
75
+ /**
76
+ * Controls whether the swap is routed through Dynamic's gas sponsorship.
77
+ *
78
+ * - `'auto'` (default): sponsored when gas sponsorship is enabled for the
79
+ * chain AND the wallet is a Dynamic embedded wallet.
80
+ * - `'off'`: never sponsored; the user pays gas.
81
+ *
82
+ * @default 'auto'
83
+ */
84
+ sponsorshipMode?: 'auto' | 'off';
75
85
  walletAccount: WalletAccount;
76
86
  };
77
87
  export type ExecuteSwapTransactionResult = {
@@ -1 +1 @@
1
- {"version":3,"file":"walletProvider.types.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/walletProvider/walletProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAEhF,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,8BAA8B,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACzD,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;I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AE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtE;;OAEG;IACH,cAAc,CAAC,EAAE,CACf,IAAI,EAAE,oBAAoB,KACvB,OAAO,CAAC;QAAE,eAAe,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC3C,CAAC"}
1
+ {"version":3,"file":"walletProvider.types.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/walletProvider/walletProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAEhF,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,8BAA8B,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACzD,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,QAAQ,EAAE,sBAAsB,CAAC;IACjC;;;OAGG;IACH,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CAAC;AAEF,MAA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AE,oBAAoB,KACvB,OAAO,CAAC;QAAE,eAAe,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC3C,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"}