@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,138 +1,12 @@
1
- //#region rolldown:runtime
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
- key = keys[i];
12
- if (!__hasOwnProp.call(to, key) && key !== except) {
13
- __defProp(to, key, {
14
- get: ((k) => from[k]).bind(null, key),
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- }
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
- value: mod,
24
- enumerable: true
25
- }) : target, mod));
26
-
27
- //#endregion
28
- const require_InvalidParamError = require('./InvalidParamError-DQvZQdQ9.cjs');
29
- const require_getVerifiedCredentialForWalletAccount = require('./getVerifiedCredentialForWalletAccount-DSSDwOyq.cjs');
1
+ const require_InvalidParamError = require('./InvalidParamError-DKJhDrK8.cjs');
2
+ const require_getVerifiedCredentialForWalletAccount = require('./getVerifiedCredentialForWalletAccount-gCx0smU8.cjs');
30
3
  let _dynamic_labs_sdk_api_core = require("@dynamic-labs/sdk-api-core");
31
4
  let zod_mini = require("zod/mini");
32
- zod_mini = __toESM(zod_mini);
5
+ zod_mini = require_InvalidParamError.__toESM(zod_mini);
33
6
  let buffer = require("buffer");
34
7
  let eventemitter3 = require("eventemitter3");
35
- eventemitter3 = __toESM(eventemitter3);
36
-
37
- //#region src/utils/isEqualShallow/isEqualShallow.ts
38
- /**
39
- * Shallow compare two objects.
40
- *
41
- * Source: https://github.com/pmndrs/zustand/blob/main/src/vanilla/shallow.ts
42
- * @not-instrumented
43
- */
44
- const isEqualShallow = (objA, objB) => {
45
- if (Object.is(objA, objB)) return true;
46
- if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) return objA === objB;
47
- if (objA instanceof Map && objB instanceof Map) {
48
- if (objA.size !== objB.size) return false;
49
- for (const [key, value] of objA) if (!Object.is(value, objB.get(key))) return false;
50
- return true;
51
- }
52
- if (objA instanceof Set && objB instanceof Set) {
53
- if (objA.size !== objB.size) return false;
54
- for (const value of objA) if (!objB.has(value)) return false;
55
- return true;
56
- }
57
- const keysA = Object.keys(objA);
58
- if (keysA.length !== Object.keys(objB).length) return false;
59
- for (const keyA of keysA) if (!Object.prototype.hasOwnProperty.call(objB, keyA) || !Object.is(objA[keyA], objB[keyA])) return false;
60
- if (objA.constructor !== objB.constructor) return false;
61
- return true;
62
- };
8
+ eventemitter3 = require_InvalidParamError.__toESM(eventemitter3);
63
9
 
64
- //#endregion
65
- //#region src/utils/observable/subscribeWithSelector/subscribeWithSelector.ts
66
- /**
67
- * Allows subscribing to a slice of the state.
68
- * The slice is a computation of the states.
69
- *
70
- * The callback will only be called when the slice has changed.
71
- * Change is determined by shallow comparison.
72
- *
73
- * Returns a function to unsubscribe the callback.
74
- * @not-instrumented
75
- */
76
- const subscribeWithSelector = (observable, selector) => (callback) => {
77
- let lastSlice = selector(observable.get());
78
- return observable.subscribe((value) => {
79
- const nextSlice = selector(value);
80
- if (isEqualShallow(nextSlice, lastSlice)) return;
81
- lastSlice = nextSlice;
82
- callback(nextSlice);
83
- });
84
- };
85
-
86
- //#endregion
87
- //#region src/utils/retryOnFail/InvalidRetryOnFailCallError.ts
88
- /**
89
- * This error is thrown when the `retryOnFail` function is called with an invalid
90
- * number of retries (i.e. less than 0).
91
- */
92
- var InvalidRetryOnFailCallError = class extends require_InvalidParamError.BaseError {
93
- constructor(maxRetries) {
94
- super({
95
- cause: null,
96
- code: "invalid_retry_on_fail_call_error",
97
- docsUrl: null,
98
- name: "InvalidRetryOnFailCallError",
99
- shortMessage: `Invalid retries parameter for retryOnFail call: ${maxRetries}`
100
- });
101
- }
102
- };
103
-
104
- //#endregion
105
- //#region src/utils/retryOnFail/retryOnFail.ts
106
- /** @not-instrumented */
107
- const retryOnFail = async ({ delay = 0, fn, maxRetries }) => {
108
- for (let retry = 0; retry <= maxRetries; retry++) try {
109
- return await fn();
110
- } catch (error) {
111
- if (retry >= maxRetries) throw error;
112
- if (delay > 0) await new Promise((resolve) => setTimeout(resolve, delay));
113
- }
114
- /**
115
- * Reaching this point should never happen and this
116
- * error is thrown to help us debug the issue.
117
- */
118
- throw new InvalidRetryOnFailCallError(maxRetries);
119
- };
120
-
121
- //#endregion
122
- //#region src/modules/auth/isSignedIn/isSignedIn.ts
123
- /**
124
- * Checks if the user is currently signed in to the Dynamic client.
125
- *
126
- * The client is considered to be in a signed in state if a user has
127
- * authenticated or if the client has at least one wallet connected.
128
- *
129
- * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
130
- * @returns True if the user is signed in, false otherwise.
131
- * @not-instrumented
132
- */
133
- const isSignedIn = (client = require_InvalidParamError.getDefaultClient()) => Boolean(client.user || require_getVerifiedCredentialForWalletAccount.getWalletAccounts(client).length > 0);
134
-
135
- //#endregion
136
10
  //#region src/services/storage/createLocalStorageAdapter/createLocalStorageAdapter.ts
137
11
  /**
138
12
  * Creates a localStorage adapter.
@@ -243,183 +117,54 @@ const createStorage = ({ prefix = "", storageAdapter }) => {
243
117
  };
244
118
 
245
119
  //#endregion
246
- //#region src/services/storage/createStorageKeySchema/createStorageKeySchema.ts
247
- /** @not-instrumented */
248
- const createStorageKeySchema = (params) => {
249
- return params;
250
- };
251
-
252
- //#endregion
253
- //#region src/modules/projectSettings/fetchProjectSettings/projectSettingsExpirationScheme.ts
254
- /**
255
- * The schema to track the expiration time of the project settings.
256
- */
257
- const projectSettingsExpirationStorageKeySchema = createStorageKeySchema({
258
- key: "projectSettingsExpiration",
259
- schema: zod_mini.number()
260
- });
261
-
262
- //#endregion
263
- //#region src/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.ts
264
- /**
265
- * Expiration time of the project settings in milliseconds.
266
- */
267
- const PROJECT_SETTINGS_EXPIRATION_TIME = 1e3 * 60 * 5;
120
+ //#region src/utils/isEqualShallow/isEqualShallow.ts
268
121
  /**
269
- * Fetches and updates the project settings from the API.
270
- *
271
- * This function retrieves the latest project configuration settings
272
- * from Dynamic's servers, including authentication options, enabled chains,
273
- * and security configurations. The settings are cached for performance.
122
+ * Shallow compare two objects.
274
123
  *
275
- * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
276
- * @returns A promise that resolves to the updated project settings.
124
+ * Source: https://github.com/pmndrs/zustand/blob/main/src/vanilla/shallow.ts
277
125
  * @not-instrumented
278
126
  */
279
- const fetchProjectSettings = async (client = require_InvalidParamError.getDefaultClient()) => {
280
- const core = require_InvalidParamError.getCore(client);
281
- const currentExpiration = await core.storage.getItem(projectSettingsExpirationStorageKeySchema);
282
- if (Boolean(client.projectSettings) && !(currentExpiration && currentExpiration < Date.now()) && isSignedIn(client)) return client.projectSettings;
283
- const apiClient = require_InvalidParamError.createApiClient({}, client);
284
- core.logger.debug("[fetchProjectSettings] Fetching project settings...");
285
- const doFetch = async () => apiClient.getEnvironmentSettings({
286
- environmentId: core.environmentId,
287
- sdkVersion: `${require_InvalidParamError.CLIENT_SDK_NAME}/${core.version}`
288
- }, { credentials: "omit" });
289
- const projectSettings = await retryOnFail({
290
- fn: doFetch,
291
- maxRetries: 2
292
- });
293
- core.state.set({ projectSettings: projectSettings ?? null });
294
- await core.storage.setItem(projectSettingsExpirationStorageKeySchema, Date.now() + PROJECT_SETTINGS_EXPIRATION_TIME);
295
- return projectSettings;
296
- };
297
-
298
- //#endregion
299
- //#region src/modules/sessionKeys/generateSessionKeys/generateSessionKeys.ts
300
- /** @not-instrumented */
301
- const generateSessionKeys = async (client) => {
302
- const core = require_InvalidParamError.getCore(client);
303
- await core.keychain.removeKey("session");
304
- const publicKey = await core.keychain.generateKey("session");
305
- require_InvalidParamError.assertDefined(publicKey, "Public key not found");
306
- core.state.set({ sessionKeys: publicKey });
307
- return { publicKey };
308
- };
309
-
310
- //#endregion
311
- //#region src/modules/wallets/utils/getAvailableWalletProvidersFromWalletAccounts/getAvailableWalletProvidersFromWalletAccounts.ts
312
- /** @not-instrumented */
313
- const getAvailableWalletProvidersFromWalletAccounts = (client) => {
314
- const core = require_InvalidParamError.getCore(client);
315
- const walletProvidersMap = /* @__PURE__ */ new Map();
316
- require_getVerifiedCredentialForWalletAccount.getWalletAccounts(client).forEach((walletAccount) => {
317
- if (walletProvidersMap.has(walletAccount.walletProviderKey)) return;
318
- try {
319
- const walletProvider = require_getVerifiedCredentialForWalletAccount.getWalletProviderFromWalletAccount({ walletAccount }, client);
320
- walletProvidersMap.set(walletAccount.walletProviderKey, walletProvider);
321
- } catch (error) {
322
- core.logger.debug("Wallet provider not found for wallet account", {
323
- error,
324
- walletAccount: walletAccount.address
325
- });
326
- }
327
- });
328
- return Array.from(walletProvidersMap.values());
127
+ const isEqualShallow = (objA, objB) => {
128
+ if (Object.is(objA, objB)) return true;
129
+ if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) return objA === objB;
130
+ if (objA instanceof Map && objB instanceof Map) {
131
+ if (objA.size !== objB.size) return false;
132
+ for (const [key, value] of objA) if (!Object.is(value, objB.get(key))) return false;
133
+ return true;
134
+ }
135
+ if (objA instanceof Set && objB instanceof Set) {
136
+ if (objA.size !== objB.size) return false;
137
+ for (const value of objA) if (!objB.has(value)) return false;
138
+ return true;
139
+ }
140
+ const keysA = Object.keys(objA);
141
+ if (keysA.length !== Object.keys(objB).length) return false;
142
+ for (const keyA of keysA) if (!Object.prototype.hasOwnProperty.call(objB, keyA) || !Object.is(objA[keyA], objB[keyA])) return false;
143
+ if (objA.constructor !== objB.constructor) return false;
144
+ return true;
329
145
  };
330
146
 
331
147
  //#endregion
332
- //#region src/modules/wallets/destroyWalletProviders/destroyWalletProviders.ts
148
+ //#region src/utils/observable/subscribeWithSelector/subscribeWithSelector.ts
333
149
  /**
334
- * Tear down every wallet provider on the client.
150
+ * Allows subscribing to a slice of the state.
151
+ * The slice is a computation of the states.
335
152
  *
336
- * Each provider's `destroy` is responsible for its own local + remote
337
- * cleanup. We swallow errors so a failing destroy on one provider does not
338
- * block teardown of the others (e.g. during logout).
153
+ * The callback will only be called when the slice has changed.
154
+ * Change is determined by shallow comparison.
339
155
  *
156
+ * Returns a function to unsubscribe the callback.
340
157
  * @not-instrumented
341
158
  */
342
- const destroyWalletProviders = async ({ reason }, client) => {
343
- const core = require_InvalidParamError.getCore(client);
344
- const walletProviders = getAvailableWalletProvidersFromWalletAccounts(client);
345
- await Promise.all(walletProviders.map(async (walletProvider) => {
346
- if (!walletProvider.destroy) return;
347
- try {
348
- await walletProvider.destroy({ reason });
349
- } catch (err) {
350
- core.logger.error(`Error destroying wallet provider ${walletProvider.key}`, err);
351
- }
352
- }));
353
- };
354
-
355
- //#endregion
356
- //#region src/modules/auth/logoutWithReason/logoutWithReason.ts
357
- /**
358
- * Logs the user out with an explicit reason.
359
- *
360
- * Revokes the session, clears auth state, terminates wallet providers, and
361
- * emits the `logout` client event with the given reason. The reason is also
362
- * captured as an argument on the function-instrumentation event, which is
363
- * how Datadog distinguishes between different logout causes.
364
- *
365
- * Use this instead of the public `logout` when triggering a logout from
366
- * internal or extension code — the caller owns the reason string, so the
367
- * telemetry correctly attributes *why* the logout happened.
368
- *
369
- * @param params - The logout params.
370
- * @param params.reason - Why the logout is being triggered. Extension authors
371
- * needing a reason outside the SDK catalog can cast with `as LogoutReason`.
372
- * @param client - The Dynamic client instance.
373
- * @instrumented
374
- */
375
- const logoutWithReason = async ({ reason }, client) => {
376
- const core = require_InvalidParamError.getCore(client);
377
- core.logger.debug("[logoutWithReason] Logging out...", { reason });
378
- await destroyWalletProviders({ reason }, client);
379
- if (client.user !== null) {
380
- const apiClient = require_InvalidParamError.createApiClient({}, client);
381
- try {
382
- await apiClient.revokeSession({ environmentId: core.environmentId });
383
- } catch (error) {
384
- core.logger.error("Failed to revoke session", error);
385
- }
386
- /**
387
- * This deletes the auth cookie if it exists.
388
- * If the cookie doesn't exist, this sets a new cookie that expires immediately.
389
- */
390
- if (require_InvalidParamError.isCookieEnabled(client)) require_getVerifiedCredentialForWalletAccount.setCookie(`${require_getVerifiedCredentialForWalletAccount.DYNAMIC_AUTH_COOKIE_NAME}=; Max-Age=-99999999; path=/; SameSite=Lax`);
391
- }
392
- await core.keychain.removeKey("session");
393
- core.state.set({
394
- captchaToken: null,
395
- elevatedAccessTokens: [],
396
- legacyToken: null,
397
- mfaToken: null,
398
- sessionExpiresAt: null,
399
- sessionKeys: null,
400
- token: null,
401
- unverifiedWalletAccounts: [],
402
- user: null
159
+ const subscribeWithSelector = (observable, selector) => (callback) => {
160
+ let lastSlice = selector(observable.get());
161
+ return observable.subscribe((value) => {
162
+ const nextSlice = selector(value);
163
+ if (isEqualShallow(nextSlice, lastSlice)) return;
164
+ lastSlice = nextSlice;
165
+ callback(nextSlice);
403
166
  });
404
- require_getVerifiedCredentialForWalletAccount.emitEvent({
405
- args: { reason },
406
- event: "logout"
407
- }, client);
408
- fetchProjectSettings(client);
409
- generateSessionKeys(client);
410
167
  };
411
- const __logoutWithReason_impl = logoutWithReason;
412
- const __logoutWithReason_wrapped = require_InvalidParamError.instrumentFunction({
413
- fn: __logoutWithReason_impl,
414
- functionName: "logoutWithReason",
415
- getCore: () => {
416
- try {
417
- return require_InvalidParamError.getCore(require_InvalidParamError.getDefaultClient());
418
- } catch {
419
- return;
420
- }
421
- }
422
- });
423
168
 
424
169
  //#endregion
425
170
  //#region src/utils/getBuffer/getBuffer.ts
@@ -1017,6 +762,7 @@ const consumeCaptchaToken = (client) => {
1017
762
  * @param params.captchaToken - The captcha token to set.
1018
763
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
1019
764
  * @instrumented
765
+ * @redact-params
1020
766
  */
1021
767
  const setCaptchaToken = ({ captchaToken }, client = require_InvalidParamError.getDefaultClient()) => {
1022
768
  require_InvalidParamError.getCore(client).state.set({ captchaToken });
@@ -1031,7 +777,8 @@ const __setCaptchaToken_wrapped = require_InvalidParamError.instrumentFunction({
1031
777
  } catch {
1032
778
  return;
1033
779
  }
1034
- }
780
+ },
781
+ redactAll: true
1035
782
  });
1036
783
 
1037
784
  //#endregion
@@ -1057,9 +804,9 @@ const hasExtension = ({ extensionKey }, client = require_InvalidParamError.getDe
1057
804
  const createVisit = async ({ walletAccount, authMode = _dynamic_labs_sdk_api_core.AuthModeEnum.Only }, client) => {
1058
805
  const core = require_InvalidParamError.getCore(client);
1059
806
  const apiClient = require_InvalidParamError.createApiClient({}, client);
1060
- const walletProvider = require_getVerifiedCredentialForWalletAccount.getWalletProviderFromWalletAccount({ walletAccount }, client);
807
+ const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
1061
808
  try {
1062
- const walletName = require_getVerifiedCredentialForWalletAccount.normalizeWalletNameWithChain({
809
+ const walletName = require_InvalidParamError.normalizeWalletNameWithChain({
1063
810
  chain: walletProvider.chain,
1064
811
  displayName: walletProvider.metadata.displayName
1065
812
  });
@@ -1095,6 +842,71 @@ const setUnverifiedWalletAccounts = ({ unverifiedWalletAccountsToUpdate }, clien
1095
842
  core.state.set({ unverifiedWalletAccounts: [...filteredUnverifiedWalletAccounts, ...unverifiedWalletAccountsToUpdate] });
1096
843
  };
1097
844
 
845
+ //#endregion
846
+ //#region src/modules/wallets/walletProvider/walletProviderKeyMap/updateWalletProviderKeysForVerifiedCredentials/updateWalletProviderKeysForVerifiedCredentials.ts
847
+ /** @not-instrumented */
848
+ const updateWalletProviderKeysForVerifiedCredentials = ({ keysToUpdate }, client) => {
849
+ const core = require_InvalidParamError.getCore(client);
850
+ core.state.set({ walletProviderKeyMap: {
851
+ ...core.state.get().walletProviderKeyMap,
852
+ ...keysToUpdate
853
+ } });
854
+ };
855
+
856
+ //#endregion
857
+ //#region src/modules/wallets/reconcileWalletAccountsAgainstClient/reconcileWalletAccountsAgainstClient.ts
858
+ /**
859
+ * Reconciles freshly-connected wallet accounts against the client state. For
860
+ * each candidate it classifies as new, a re-connect of an existing unverified
861
+ * account, or a re-connect of an already-verified account, then runs the
862
+ * appropriate state mutation (`setUnverifiedWalletAccounts`,
863
+ * `updateWalletProviderKeysForVerifiedCredentials`, `createVisit` for truly-new
864
+ * entries) and emits a single `walletAccountsChanged` event if anything
865
+ * actually changed. Returns the candidates with `verifiedCredentialId`
866
+ * populated when the address already corresponded to a verified credential.
867
+ *
868
+ * @not-instrumented
869
+ */
870
+ const reconcileWalletAccountsAgainstClient = ({ addToDynamicWalletAccounts = true, walletAccounts, walletProviderKey }, client) => {
871
+ if (walletAccounts.length === 0) return [];
872
+ const existingWalletAccounts = require_InvalidParamError.getWalletAccounts(client);
873
+ const newWalletAccounts = [];
874
+ const unverifiedWalletAccountsToUpdate = [];
875
+ const verifiedCredentialIdToWalletProviderKeyMap = {};
876
+ const reconciledWalletAccounts = walletAccounts.map((candidate) => {
877
+ const matchingExistingWalletAccount = existingWalletAccounts.find((existingWalletAccount) => existingWalletAccount.id === candidate.id);
878
+ if (!matchingExistingWalletAccount) {
879
+ newWalletAccounts.push(candidate);
880
+ return candidate;
881
+ }
882
+ const isWalletProviderKeyChanged = matchingExistingWalletAccount.walletProviderKey !== walletProviderKey;
883
+ if (matchingExistingWalletAccount.verifiedCredentialId) {
884
+ if (isWalletProviderKeyChanged) verifiedCredentialIdToWalletProviderKeyMap[matchingExistingWalletAccount.verifiedCredentialId] = walletProviderKey;
885
+ return {
886
+ ...candidate,
887
+ verifiedCredentialId: matchingExistingWalletAccount.verifiedCredentialId
888
+ };
889
+ }
890
+ if (isWalletProviderKeyChanged) unverifiedWalletAccountsToUpdate.push(candidate);
891
+ return candidate;
892
+ });
893
+ let walletAccountsChanged = false;
894
+ if (Object.keys(verifiedCredentialIdToWalletProviderKeyMap).length > 0) {
895
+ updateWalletProviderKeysForVerifiedCredentials({ keysToUpdate: verifiedCredentialIdToWalletProviderKeyMap }, client);
896
+ walletAccountsChanged = true;
897
+ }
898
+ if (addToDynamicWalletAccounts) {
899
+ const accountsToWrite = [...unverifiedWalletAccountsToUpdate, ...newWalletAccounts];
900
+ if (accountsToWrite.length > 0) {
901
+ setUnverifiedWalletAccounts({ unverifiedWalletAccountsToUpdate: accountsToWrite }, client);
902
+ walletAccountsChanged = true;
903
+ for (const newWalletAccount of newWalletAccounts) createVisit({ walletAccount: newWalletAccount }, client);
904
+ }
905
+ }
906
+ if (walletAccountsChanged) require_getVerifiedCredentialForWalletAccount.emitWalletAccountsChangedEvent(client);
907
+ return reconciledWalletAccounts;
908
+ };
909
+
1098
910
  //#endregion
1099
911
  //#region src/utils/getAppMetadata/getAppMetadata.ts
1100
912
  /**
@@ -1194,7 +1006,7 @@ const isErrorWithCode = (error, code) => {
1194
1006
  const verifyMessageSignatureOwnership = async ({ messageToSign, walletAddress, addressesWithTypes, signature, chain, isTransfer = false, walletDisplayName, walletProviderType, networkId, requestedScopes }, client) => {
1195
1007
  const core = require_InvalidParamError.getCore(client);
1196
1008
  const apiClient = require_InvalidParamError.createApiClient({}, client);
1197
- const walletName = require_getVerifiedCredentialForWalletAccount.normalizeWalletNameWithChain({
1009
+ const walletName = require_InvalidParamError.normalizeWalletNameWithChain({
1198
1010
  chain,
1199
1011
  displayName: walletDisplayName
1200
1012
  });
@@ -1230,17 +1042,6 @@ const verifyMessageSignatureOwnership = async ({ messageToSign, walletAddress, a
1230
1042
  }
1231
1043
  };
1232
1044
 
1233
- //#endregion
1234
- //#region src/modules/wallets/walletProvider/walletProviderKeyMap/updateWalletProviderKeysForVerifiedCredentials/updateWalletProviderKeysForVerifiedCredentials.ts
1235
- /** @not-instrumented */
1236
- const updateWalletProviderKeysForVerifiedCredentials = ({ keysToUpdate }, client) => {
1237
- const core = require_InvalidParamError.getCore(client);
1238
- core.state.set({ walletProviderKeyMap: {
1239
- ...core.state.get().walletProviderKeyMap,
1240
- ...keysToUpdate
1241
- } });
1242
- };
1243
-
1244
1045
  //#endregion
1245
1046
  //#region src/modules/wallets/networks/getSdkChainFromApiChainName/getSdkChainFromApiChainName.ts
1246
1047
  /**
@@ -1316,7 +1117,7 @@ const createNetworkProviderBuilderRegistry = () => {
1316
1117
 
1317
1118
  //#endregion
1318
1119
  //#region src/modules/wallets/networks/networkProviderBuilderRegistry/getNetworkProviderBuilderRegistry/getNetworkProviderBuilderRegistry.ts
1319
- const getNetworkProviderBuilderRegistry = require_getVerifiedCredentialForWalletAccount.createRuntimeServiceAccessKey("networkProviderBuilderRegistry", createNetworkProviderBuilderRegistry);
1120
+ const getNetworkProviderBuilderRegistry = require_InvalidParamError.createRuntimeServiceAccessKey("networkProviderBuilderRegistry", createNetworkProviderBuilderRegistry);
1320
1121
 
1321
1122
  //#endregion
1322
1123
  //#region src/modules/wallets/networks/getNetworkProviders/getNetworkProviders.ts
@@ -1411,24 +1212,12 @@ Object.defineProperty(exports, 'WalletAlreadyLinkedToAnotherUserError', {
1411
1212
  return WalletAlreadyLinkedToAnotherUserError;
1412
1213
  }
1413
1214
  });
1414
- Object.defineProperty(exports, '__logoutWithReason_wrapped', {
1415
- enumerable: true,
1416
- get: function () {
1417
- return __logoutWithReason_wrapped;
1418
- }
1419
- });
1420
1215
  Object.defineProperty(exports, '__setCaptchaToken_wrapped', {
1421
1216
  enumerable: true,
1422
1217
  get: function () {
1423
1218
  return __setCaptchaToken_wrapped;
1424
1219
  }
1425
1220
  });
1426
- Object.defineProperty(exports, '__toESM', {
1427
- enumerable: true,
1428
- get: function () {
1429
- return __toESM;
1430
- }
1431
- });
1432
1221
  Object.defineProperty(exports, 'consumeCaptchaToken', {
1433
1222
  enumerable: true,
1434
1223
  get: function () {
@@ -1483,36 +1272,18 @@ Object.defineProperty(exports, 'createStorage', {
1483
1272
  return createStorage;
1484
1273
  }
1485
1274
  });
1486
- Object.defineProperty(exports, 'createStorageKeySchema', {
1487
- enumerable: true,
1488
- get: function () {
1489
- return createStorageKeySchema;
1490
- }
1491
- });
1492
1275
  Object.defineProperty(exports, 'createVisit', {
1493
1276
  enumerable: true,
1494
1277
  get: function () {
1495
1278
  return createVisit;
1496
1279
  }
1497
1280
  });
1498
- Object.defineProperty(exports, 'fetchProjectSettings', {
1499
- enumerable: true,
1500
- get: function () {
1501
- return fetchProjectSettings;
1502
- }
1503
- });
1504
1281
  Object.defineProperty(exports, 'formatSignInMessage', {
1505
1282
  enumerable: true,
1506
1283
  get: function () {
1507
1284
  return formatSignInMessage;
1508
1285
  }
1509
1286
  });
1510
- Object.defineProperty(exports, 'generateSessionKeys', {
1511
- enumerable: true,
1512
- get: function () {
1513
- return generateSessionKeys;
1514
- }
1515
- });
1516
1287
  Object.defineProperty(exports, 'getAppMetadata', {
1517
1288
  enumerable: true,
1518
1289
  get: function () {
@@ -1579,10 +1350,10 @@ Object.defineProperty(exports, 'isServerSideRendering', {
1579
1350
  return isServerSideRendering;
1580
1351
  }
1581
1352
  });
1582
- Object.defineProperty(exports, 'isSignedIn', {
1353
+ Object.defineProperty(exports, 'reconcileWalletAccountsAgainstClient', {
1583
1354
  enumerable: true,
1584
1355
  get: function () {
1585
- return isSignedIn;
1356
+ return reconcileWalletAccountsAgainstClient;
1586
1357
  }
1587
1358
  });
1588
1359
  Object.defineProperty(exports, 'removeUnverifiedWalletAccount', {
@@ -1591,12 +1362,6 @@ Object.defineProperty(exports, 'removeUnverifiedWalletAccount', {
1591
1362
  return removeUnverifiedWalletAccount;
1592
1363
  }
1593
1364
  });
1594
- Object.defineProperty(exports, 'retryOnFail', {
1595
- enumerable: true,
1596
- get: function () {
1597
- return retryOnFail;
1598
- }
1599
- });
1600
1365
  Object.defineProperty(exports, 'setUnverifiedWalletAccounts', {
1601
1366
  enumerable: true,
1602
1367
  get: function () {
@@ -1621,4 +1386,4 @@ Object.defineProperty(exports, 'verifyMessageSignatureOwnership', {
1621
1386
  return verifyMessageSignatureOwnership;
1622
1387
  }
1623
1388
  });
1624
- //# sourceMappingURL=getNetworkProviderFromNetworkId-BA0CHZzu.cjs.map
1389
+ //# sourceMappingURL=getNetworkProviderFromNetworkId-BJ27N-7S.cjs.map