@dynamic-labs-sdk/client 1.18.0 → 1.19.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 (247) hide show
  1. package/dist/client/createDynamicClient/createDynamicClient.d.ts +11 -1
  2. package/dist/client/createDynamicClient/createDynamicClient.d.ts.map +1 -1
  3. package/dist/client/defaultClient/defaultClient.d.ts +12 -1
  4. package/dist/client/defaultClient/defaultClient.d.ts.map +1 -1
  5. package/dist/core.cjs +5 -5
  6. package/dist/core.esm.js +7 -7
  7. package/dist/core.esm.js.map +1 -1
  8. package/dist/core.native.esm.js +7 -7
  9. package/dist/core.native.esm.js.map +1 -1
  10. package/dist/errors/APIError/APIError.d.ts +11 -1
  11. package/dist/errors/APIError/APIError.d.ts.map +1 -1
  12. package/dist/errors/DeviceRegistrationIdentityMismatchError.d.ts +21 -0
  13. package/dist/errors/DeviceRegistrationIdentityMismatchError.d.ts.map +1 -1
  14. package/dist/errors/MergeAccountsConfirmationError.d.ts +49 -0
  15. package/dist/errors/MergeAccountsConfirmationError.d.ts.map +1 -0
  16. package/dist/errors/WalletScreeningBlockedError.d.ts +13 -0
  17. package/dist/errors/WalletScreeningBlockedError.d.ts.map +1 -1
  18. package/dist/exports/index.d.ts +15 -5
  19. package/dist/exports/index.d.ts.map +1 -1
  20. package/dist/exports/waas.d.ts +2 -0
  21. package/dist/exports/waas.d.ts.map +1 -1
  22. package/dist/{getNetworkProviderFromNetworkId-CMIgKqEH.cjs → getNetworkProviderFromNetworkId-BJX2AMGR.cjs} +74 -4
  23. package/dist/getNetworkProviderFromNetworkId-BJX2AMGR.cjs.map +1 -0
  24. package/dist/{getNetworkProviderFromNetworkId-C6DBO0OX.native.esm.js → getNetworkProviderFromNetworkId-Bsv12Q6B.native.esm.js} +90 -9
  25. package/dist/getNetworkProviderFromNetworkId-Bsv12Q6B.native.esm.js.map +1 -0
  26. package/dist/{getNetworkProviderFromNetworkId-CEs4SGW4.esm.js → getNetworkProviderFromNetworkId-D3uwhdMN.esm.js} +72 -8
  27. package/dist/getNetworkProviderFromNetworkId-D3uwhdMN.esm.js.map +1 -0
  28. package/dist/{getSignedSessionId-De_N_Ofg.cjs → getSignedSessionId-BIZJGg61.cjs} +3 -3
  29. package/dist/{getSignedSessionId-De_N_Ofg.cjs.map → getSignedSessionId-BIZJGg61.cjs.map} +1 -1
  30. package/dist/{getSignedSessionId-CUqILBh8.esm.js → getSignedSessionId-CnSAMO3P.esm.js} +3 -3
  31. package/dist/{getSignedSessionId-CUqILBh8.esm.js.map → getSignedSessionId-CnSAMO3P.esm.js.map} +1 -1
  32. package/dist/{getSignedSessionId-Hp1nSbaW.native.esm.js → getSignedSessionId-DXDi7NkE.native.esm.js} +3 -3
  33. package/dist/{getSignedSessionId-Hp1nSbaW.native.esm.js.map → getSignedSessionId-DXDi7NkE.native.esm.js.map} +1 -1
  34. package/dist/{getWalletProviderByKey-D3e0XMjs.cjs → getWalletProviderByKey-C6aS7KgD.cjs} +2 -2
  35. package/dist/{getWalletProviderByKey-D3e0XMjs.cjs.map → getWalletProviderByKey-C6aS7KgD.cjs.map} +1 -1
  36. package/dist/{getWalletProviderByKey-CKORCA8l.esm.js → getWalletProviderByKey-Cr8m-Nax.esm.js} +2 -2
  37. package/dist/{getWalletProviderByKey-CKORCA8l.esm.js.map → getWalletProviderByKey-Cr8m-Nax.esm.js.map} +1 -1
  38. package/dist/{getWalletProviderByKey-D5M801xH.native.esm.js → getWalletProviderByKey-DVk2t98D.native.esm.js} +2 -2
  39. package/dist/{getWalletProviderByKey-D5M801xH.native.esm.js.map → getWalletProviderByKey-DVk2t98D.native.esm.js.map} +1 -1
  40. package/dist/index.cjs +732 -54
  41. package/dist/index.cjs.map +1 -1
  42. package/dist/index.esm.js +729 -53
  43. package/dist/index.esm.js.map +1 -1
  44. package/dist/index.native.esm.js +656 -52
  45. package/dist/index.native.esm.js.map +1 -1
  46. package/dist/{isDynamicWaasEnabled-BQuXZne_.cjs → isDynamicWaasEnabled-BawttOeb.cjs} +20 -6
  47. package/dist/isDynamicWaasEnabled-BawttOeb.cjs.map +1 -0
  48. package/dist/{isDynamicWaasEnabled-BlVIlXMZ.esm.js → isDynamicWaasEnabled-DDrg89y1.esm.js} +19 -5
  49. package/dist/isDynamicWaasEnabled-DDrg89y1.esm.js.map +1 -0
  50. package/dist/{isDynamicWaasEnabled-BaY09iv6.native.esm.js → isDynamicWaasEnabled-Dj_sLoBO.native.esm.js} +19 -5
  51. package/dist/isDynamicWaasEnabled-Dj_sLoBO.native.esm.js.map +1 -0
  52. package/dist/{isMfaRequiredForAction-Dghiguch.cjs → isMfaRequiredForAction-BuvyBN_r.cjs} +19 -2
  53. package/dist/isMfaRequiredForAction-BuvyBN_r.cjs.map +1 -0
  54. package/dist/{isMfaRequiredForAction-r9aDdmK5.esm.js → isMfaRequiredForAction-DTp4CZBt.esm.js} +19 -2
  55. package/dist/isMfaRequiredForAction-DTp4CZBt.esm.js.map +1 -0
  56. package/dist/{isMfaRequiredForAction-CwOGwiDz.native.esm.js → isMfaRequiredForAction-EY-OQORc.native.esm.js} +2 -2
  57. package/dist/{isMfaRequiredForAction-CwOGwiDz.native.esm.js.map → isMfaRequiredForAction-EY-OQORc.native.esm.js.map} +1 -1
  58. package/dist/{isUserOnboardingComplete-j4b_q9Pf.cjs → isUserOnboardingComplete-CkyzRYrg.cjs} +11 -4
  59. package/dist/{isUserOnboardingComplete-j4b_q9Pf.cjs.map → isUserOnboardingComplete-CkyzRYrg.cjs.map} +1 -1
  60. package/dist/{isUserOnboardingComplete-C-ioFLRR.native.esm.js → isUserOnboardingComplete-D3HrBYje.native.esm.js} +10 -3
  61. package/dist/{isUserOnboardingComplete-C-ioFLRR.native.esm.js.map → isUserOnboardingComplete-D3HrBYje.native.esm.js.map} +1 -1
  62. package/dist/{isUserOnboardingComplete-BMNAbXk1.esm.js → isUserOnboardingComplete-Dy2Ygp0u.esm.js} +10 -3
  63. package/dist/{isUserOnboardingComplete-BMNAbXk1.esm.js.map → isUserOnboardingComplete-Dy2Ygp0u.esm.js.map} +1 -1
  64. package/dist/{migrateFromFireblocks-D8Y5h0hz.native.esm.js → migrateFromFireblocks-B5qWGLCM.native.esm.js} +3 -3
  65. package/dist/{migrateFromFireblocks-D8Y5h0hz.native.esm.js.map → migrateFromFireblocks-B5qWGLCM.native.esm.js.map} +1 -1
  66. package/dist/{migrateFromFireblocks-D9pJIgt5.cjs → migrateFromFireblocks-Dp-QA9hi.cjs} +3 -3
  67. package/dist/{migrateFromFireblocks-D9pJIgt5.cjs.map → migrateFromFireblocks-Dp-QA9hi.cjs.map} +1 -1
  68. package/dist/{migrateFromFireblocks-D--uqWp5.esm.js → migrateFromFireblocks-MAatsk_w.esm.js} +3 -3
  69. package/dist/{migrateFromFireblocks-D--uqWp5.esm.js.map → migrateFromFireblocks-MAatsk_w.esm.js.map} +1 -1
  70. package/dist/modules/apiClient/constants.d.ts +8 -0
  71. package/dist/modules/apiClient/constants.d.ts.map +1 -1
  72. package/dist/modules/apiClient/createApiClient.d.ts.map +1 -1
  73. package/dist/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.d.ts +11 -1
  74. package/dist/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.d.ts.map +1 -1
  75. package/dist/modules/auth/isSignedIn/isSignedIn.d.ts +9 -0
  76. package/dist/modules/auth/isSignedIn/isSignedIn.d.ts.map +1 -1
  77. package/dist/modules/auth/logout/logout.d.ts +13 -0
  78. package/dist/modules/auth/logout/logout.d.ts.map +1 -1
  79. package/dist/modules/auth/mergeUserAccounts/index.d.ts +3 -0
  80. package/dist/modules/auth/mergeUserAccounts/index.d.ts.map +1 -0
  81. package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.d.ts +62 -0
  82. package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.d.ts.map +1 -0
  83. package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.types.d.ts +78 -0
  84. package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.types.d.ts.map +1 -0
  85. package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts +7 -0
  86. package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts.map +1 -1
  87. package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts +9 -0
  88. package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts.map +1 -1
  89. package/dist/modules/auth/social/oauth/authenticateWithSocial/authenticateWithSocial.d.ts +8 -0
  90. package/dist/modules/auth/social/oauth/authenticateWithSocial/authenticateWithSocial.d.ts.map +1 -1
  91. package/dist/modules/auth/social/oauth/clearSocialRedirectParams/clearSocialRedirectParams.d.ts +34 -0
  92. package/dist/modules/auth/social/oauth/clearSocialRedirectParams/clearSocialRedirectParams.d.ts.map +1 -0
  93. package/dist/modules/auth/social/oauth/clearSocialRedirectParams/index.d.ts +2 -0
  94. package/dist/modules/auth/social/oauth/clearSocialRedirectParams/index.d.ts.map +1 -0
  95. package/dist/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.d.ts +11 -0
  96. package/dist/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.d.ts.map +1 -1
  97. package/dist/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.d.ts +0 -1
  98. package/dist/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.d.ts.map +1 -1
  99. package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.d.ts +12 -0
  100. package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.d.ts.map +1 -1
  101. package/dist/modules/auth/social/oauth/signInWithSocialRedirect/signInWithSocialRedirect.d.ts +10 -0
  102. package/dist/modules/auth/social/oauth/signInWithSocialRedirect/signInWithSocialRedirect.d.ts.map +1 -1
  103. package/dist/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.d.ts.map +1 -1
  104. package/dist/modules/captcha/CaptchaProviderEnum/CaptchaProviderEnum.d.ts +37 -0
  105. package/dist/modules/captcha/CaptchaProviderEnum/CaptchaProviderEnum.d.ts.map +1 -0
  106. package/dist/modules/captcha/getCaptchaSettings/getCaptchaSettings.d.ts +41 -5
  107. package/dist/modules/captcha/getCaptchaSettings/getCaptchaSettings.d.ts.map +1 -1
  108. package/dist/modules/captcha/getCaptchaSettings/getCaptchaSettings.types.d.ts +22 -0
  109. package/dist/modules/captcha/getCaptchaSettings/getCaptchaSettings.types.d.ts.map +1 -0
  110. package/dist/modules/captcha/getCaptchaSettings/index.d.ts +1 -1
  111. package/dist/modules/captcha/getCaptchaSettings/index.d.ts.map +1 -1
  112. package/dist/modules/clientEvents/clientEvents.d.ts +34 -0
  113. package/dist/modules/clientEvents/clientEvents.d.ts.map +1 -1
  114. package/dist/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/clearDeviceRegistrationRedirectParams.d.ts +35 -0
  115. package/dist/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/clearDeviceRegistrationRedirectParams.d.ts.map +1 -0
  116. package/dist/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/index.d.ts +2 -0
  117. package/dist/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/index.d.ts.map +1 -0
  118. package/dist/modules/deviceRegistration/completeDeviceRegistration/completeDeviceRegistration.d.ts +8 -1
  119. package/dist/modules/deviceRegistration/completeDeviceRegistration/completeDeviceRegistration.d.ts.map +1 -1
  120. package/dist/modules/flow/cancelFlow/cancelFlow.d.ts +10 -3
  121. package/dist/modules/flow/cancelFlow/cancelFlow.d.ts.map +1 -1
  122. package/dist/modules/flow/getFlow/getFlow.d.ts +11 -3
  123. package/dist/modules/flow/getFlow/getFlow.d.ts.map +1 -1
  124. package/dist/modules/flow/getFlowQuote/getFlowQuote.d.ts +16 -3
  125. package/dist/modules/flow/getFlowQuote/getFlowQuote.d.ts.map +1 -1
  126. package/dist/modules/initializeClient/initializeClient.d.ts +16 -0
  127. package/dist/modules/initializeClient/initializeClient.d.ts.map +1 -1
  128. package/dist/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.d.ts +12 -2
  129. package/dist/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.d.ts.map +1 -1
  130. package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts +14 -0
  131. package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts.map +1 -1
  132. package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts +12 -0
  133. package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts.map +1 -1
  134. package/dist/modules/otp/verifyOTP/verifyOTP.d.ts +33 -1
  135. package/dist/modules/otp/verifyOTP/verifyOTP.d.ts.map +1 -1
  136. package/dist/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.d.ts +1 -1
  137. package/dist/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.d.ts.map +1 -1
  138. package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts +8 -0
  139. package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts.map +1 -1
  140. package/dist/modules/user/checkUserScopes/checkUserScopes.d.ts +28 -0
  141. package/dist/modules/user/checkUserScopes/checkUserScopes.d.ts.map +1 -0
  142. package/dist/modules/user/checkUserScopes/index.d.ts +2 -0
  143. package/dist/modules/user/checkUserScopes/index.d.ts.map +1 -0
  144. package/dist/modules/user/deleteUser/deleteUser.d.ts +8 -0
  145. package/dist/modules/user/deleteUser/deleteUser.d.ts.map +1 -1
  146. package/dist/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.d.ts +8 -1
  147. package/dist/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.d.ts.map +1 -1
  148. package/dist/modules/user/refreshAuth/refreshAuth.d.ts +17 -3
  149. package/dist/modules/user/refreshAuth/refreshAuth.d.ts.map +1 -1
  150. package/dist/modules/user/refreshUser/refreshUser.d.ts +16 -3
  151. package/dist/modules/user/refreshUser/refreshUser.d.ts.map +1 -1
  152. package/dist/modules/user/user.types.d.ts +9 -1
  153. package/dist/modules/user/user.types.d.ts.map +1 -1
  154. package/dist/modules/waas/getEmbeddedWalletsRequiringUpgrade/getEmbeddedWalletsRequiringUpgrade.d.ts +30 -0
  155. package/dist/modules/waas/getEmbeddedWalletsRequiringUpgrade/getEmbeddedWalletsRequiringUpgrade.d.ts.map +1 -0
  156. package/dist/modules/waas/getEmbeddedWalletsRequiringUpgrade/index.d.ts +2 -0
  157. package/dist/modules/waas/getEmbeddedWalletsRequiringUpgrade/index.d.ts.map +1 -0
  158. package/dist/modules/waas/hasEmbeddedWalletsRequiringUpgrade/hasEmbeddedWalletsRequiringUpgrade.d.ts +23 -0
  159. package/dist/modules/waas/hasEmbeddedWalletsRequiringUpgrade/hasEmbeddedWalletsRequiringUpgrade.d.ts.map +1 -0
  160. package/dist/modules/waas/hasEmbeddedWalletsRequiringUpgrade/index.d.ts +2 -0
  161. package/dist/modules/waas/hasEmbeddedWalletsRequiringUpgrade/index.d.ts.map +1 -0
  162. package/dist/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.d.ts +11 -1
  163. package/dist/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.d.ts.map +1 -1
  164. package/dist/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.d.ts +11 -3
  165. package/dist/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.d.ts.map +1 -1
  166. package/dist/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.d.ts +16 -3
  167. package/dist/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.d.ts.map +1 -1
  168. package/dist/modules/wallets/getConnectedAddresses/getConnectedAddresses.d.ts +9 -1
  169. package/dist/modules/wallets/getConnectedAddresses/getConnectedAddresses.d.ts.map +1 -1
  170. package/dist/modules/wallets/getWalletAccounts/getWalletAccounts.d.ts +11 -1
  171. package/dist/modules/wallets/getWalletAccounts/getWalletAccounts.d.ts.map +1 -1
  172. package/dist/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.d.ts +9 -0
  173. package/dist/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.d.ts.map +1 -1
  174. package/dist/modules/wallets/isWalletAccountVerified/isWalletAccountVerified.d.ts +10 -2
  175. package/dist/modules/wallets/isWalletAccountVerified/isWalletAccountVerified.d.ts.map +1 -1
  176. package/dist/modules/wallets/networks/getBalance/getBalance.d.ts +8 -0
  177. package/dist/modules/wallets/networks/getBalance/getBalance.d.ts.map +1 -1
  178. package/dist/modules/wallets/networks/getNativeBalance/getNativeBalance.d.ts +8 -0
  179. package/dist/modules/wallets/networks/getNativeBalance/getNativeBalance.d.ts.map +1 -1
  180. package/dist/modules/wallets/networks/switchActiveNetwork/switchActiveNetwork.d.ts +11 -1
  181. package/dist/modules/wallets/networks/switchActiveNetwork/switchActiveNetwork.d.ts.map +1 -1
  182. package/dist/modules/wallets/proveWalletAccountOwnership/proveWalletAccountOwnership.d.ts +10 -0
  183. package/dist/modules/wallets/proveWalletAccountOwnership/proveWalletAccountOwnership.d.ts.map +1 -1
  184. package/dist/modules/wallets/removeWalletAccount/removeWalletAccount.d.ts +9 -1
  185. package/dist/modules/wallets/removeWalletAccount/removeWalletAccount.d.ts.map +1 -1
  186. package/dist/modules/wallets/selectedWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts +24 -0
  187. package/dist/modules/wallets/selectedWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts.map +1 -0
  188. package/dist/modules/wallets/selectedWalletAccount/getPrimaryWalletAccount/index.d.ts.map +1 -0
  189. package/dist/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/getSelectedWalletAccount.d.ts +30 -0
  190. package/dist/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/getSelectedWalletAccount.d.ts.map +1 -0
  191. package/dist/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/index.d.ts +2 -0
  192. package/dist/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/index.d.ts.map +1 -0
  193. package/dist/modules/wallets/selectedWalletAccount/selectPrimaryWalletAccount/index.d.ts.map +1 -0
  194. package/dist/modules/wallets/selectedWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts +28 -0
  195. package/dist/modules/wallets/selectedWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts.map +1 -0
  196. package/dist/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/index.d.ts +2 -0
  197. package/dist/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/index.d.ts.map +1 -0
  198. package/dist/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/setSelectedWalletAccount.d.ts +34 -0
  199. package/dist/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/setSelectedWalletAccount.d.ts.map +1 -0
  200. package/dist/modules/wallets/signMessage/signMessage.d.ts +12 -1
  201. package/dist/modules/wallets/signMessage/signMessage.d.ts.map +1 -1
  202. package/dist/modules/wallets/transferAmount/transferAmount.d.ts +13 -2
  203. package/dist/modules/wallets/transferAmount/transferAmount.d.ts.map +1 -1
  204. package/dist/modules/wallets/transferWalletAccount/transferWalletAccount.d.ts +10 -1
  205. package/dist/modules/wallets/transferWalletAccount/transferWalletAccount.d.ts.map +1 -1
  206. package/dist/modules/wallets/utils/getWalletAccountFromAddress/getWalletAccountFromAddress.d.ts +11 -1
  207. package/dist/modules/wallets/utils/getWalletAccountFromAddress/getWalletAccountFromAddress.d.ts.map +1 -1
  208. package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts +1 -0
  209. package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts.map +1 -1
  210. package/dist/modules/wallets/verifyWalletAccount/verifyWalletAccount.d.ts +12 -1
  211. package/dist/modules/wallets/verifyWalletAccount/verifyWalletAccount.d.ts.map +1 -1
  212. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  213. package/dist/{updateAuthFromVerifyResponse-wVY_DoiL.native.esm.js → updateAuthFromVerifyResponse-DFjqCSu2.native.esm.js} +93 -17
  214. package/dist/updateAuthFromVerifyResponse-DFjqCSu2.native.esm.js.map +1 -0
  215. package/dist/{updateAuthFromVerifyResponse-BQes11vz.esm.js → updateAuthFromVerifyResponse-_oYRLK_w.esm.js} +93 -17
  216. package/dist/updateAuthFromVerifyResponse-_oYRLK_w.esm.js.map +1 -0
  217. package/dist/{updateAuthFromVerifyResponse-Deg9em9o.cjs → updateAuthFromVerifyResponse-pgYXvDvj.cjs} +93 -17
  218. package/dist/updateAuthFromVerifyResponse-pgYXvDvj.cjs.map +1 -0
  219. package/dist/waas.cjs +72 -5
  220. package/dist/waas.cjs.map +1 -1
  221. package/dist/waas.esm.js +70 -5
  222. package/dist/waas.esm.js.map +1 -1
  223. package/dist/waas.native.esm.js +70 -5
  224. package/dist/waas.native.esm.js.map +1 -1
  225. package/dist/waasCore.cjs +6 -6
  226. package/dist/waasCore.esm.js +6 -6
  227. package/dist/waasCore.native.esm.js +6 -6
  228. package/package.json +3 -3
  229. package/dist/getNetworkProviderFromNetworkId-C6DBO0OX.native.esm.js.map +0 -1
  230. package/dist/getNetworkProviderFromNetworkId-CEs4SGW4.esm.js.map +0 -1
  231. package/dist/getNetworkProviderFromNetworkId-CMIgKqEH.cjs.map +0 -1
  232. package/dist/isDynamicWaasEnabled-BQuXZne_.cjs.map +0 -1
  233. package/dist/isDynamicWaasEnabled-BaY09iv6.native.esm.js.map +0 -1
  234. package/dist/isDynamicWaasEnabled-BlVIlXMZ.esm.js.map +0 -1
  235. package/dist/isMfaRequiredForAction-Dghiguch.cjs.map +0 -1
  236. package/dist/isMfaRequiredForAction-r9aDdmK5.esm.js.map +0 -1
  237. package/dist/modules/wallets/primaryWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts +0 -10
  238. package/dist/modules/wallets/primaryWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts.map +0 -1
  239. package/dist/modules/wallets/primaryWalletAccount/getPrimaryWalletAccount/index.d.ts.map +0 -1
  240. package/dist/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/index.d.ts.map +0 -1
  241. package/dist/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts +0 -12
  242. package/dist/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts.map +0 -1
  243. package/dist/updateAuthFromVerifyResponse-BQes11vz.esm.js.map +0 -1
  244. package/dist/updateAuthFromVerifyResponse-Deg9em9o.cjs.map +0 -1
  245. package/dist/updateAuthFromVerifyResponse-wVY_DoiL.native.esm.js.map +0 -1
  246. /package/dist/modules/wallets/{primaryWalletAccount → selectedWalletAccount}/getPrimaryWalletAccount/index.d.ts +0 -0
  247. /package/dist/modules/wallets/{primaryWalletAccount → selectedWalletAccount}/selectPrimaryWalletAccount/index.d.ts +0 -0
@@ -1,13 +1,13 @@
1
- import { $ as SandboxMaximumThresholdReachedError, A as NoWalletProviderFoundError, B as emitEvent, C as getOperatingSystem, D as WalletProviderPriority, E as getWalletProviderFromWalletAccount, F as CHAINS_INFO_MAP, H as onEvent, I as formatWalletAccountId, J as UnauthorizedError, K as fetchAndStoreNonces, L as normalizeAddress, O as getWalletProviderRegistry, P as getChainFromVerifiedCredentialChain, Q as getNonce, R as splitWalletProviderKey, S as getPlatform, U as onceEvent, V as offEvent, _ as SDK_API_CORE_VERSION, _t as BaseError, a as initializeWaasClientsForEagerRecovery, b as DEFAULT_PII_FIELDS, bt as version, ct as ValueMustBeDefinedError, et as MfaRateLimitedError, f as getWalletProviders, g as DYNAMIC_ICONIC_SPRITE_URL, ht as setDefaultClient, i as InvalidParamError, it as APIError, j as getWalletAccounts, lt as getElevatedAccessToken, m as checkAndRaiseWalletAccountsChangedEvent, mt as getDefaultClient, n as upsertElevatedAccessToken, nt as LinkCredentialError, ot as isCookieEnabled, p as isUserMissingMfaAuth, pt as NONCE_POOL_SIZE, q as createApiClient, r as parseElevatedAccessToken, rt as InvalidExternalAuthError, st as assertDefined, t as updateAuthFromVerifyResponse, tt as MfaInvalidOtpError, ut as randomString, v as instrumentFunction, vt as getCore, w as extractSessionId, x as getUserAgent, y as scrubParameters, yt as name } from "./updateAuthFromVerifyResponse-wVY_DoiL.native.esm.js";
2
- import { A as CannotTrackError, B as generateSessionKeys, C as createRealtimeService, D as createLogger, F as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, G as createLocalStorageAdapter, H as createStorageKeySchema, I as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, J as subscribeWithSelector, K as isSignedIn, L as isServerSideRendering, M as FETCH_PROJECT_SETTINGS_TRACKER_KEY, N as GENERATE_SESSION_KEYS_TRACKER_KEY, O as createCrossTabBroadcast, P as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, R as getBuffer, S as getKeychainIndexedDBName, T as assertSafeNavigationUrl, U as createStorage, V as fetchProjectSettings, Y as isEqualShallow, _ as getAppMetadata, a as verifyMessageSignatureOwnership, b as WalletAlreadyLinkedToAnotherUserError, c as formatSignInMessage, d as setUnverifiedWalletAccounts, f as createVisit, g as isCaptchaRequired, h as consumeCaptchaToken, i as getNetworksData, j as createDeferredPromise, l as reconcileWalletAccountsAgainstClient, m as __setCaptchaToken_wrapped, o as removeUnverifiedWalletAccount, p as hasExtension, q as retryOnFail, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as updateWalletProviderKeysForVerifiedCredentials, v as MethodNotImplementedError, w as createKeychainService, x as NoNetworkProvidersError, y as WalletScreeningBlockedError, z as __logoutWithReason_wrapped } from "./getNetworkProviderFromNetworkId-C6DBO0OX.native.esm.js";
3
- import { n as NotWaasWalletAccountError, r as __refreshAuth_wrapped } from "./isDynamicWaasEnabled-BaY09iv6.native.esm.js";
4
- import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-CwOGwiDz.native.esm.js";
5
- import { a as WaasOnboardingIncompleteError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, r as isDeviceRegistrationRequired, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-C-ioFLRR.native.esm.js";
6
- import { n as getVerifiedCredentialForWalletAccount, t as getWalletProviderByKey } from "./getWalletProviderByKey-D5M801xH.native.esm.js";
1
+ import { $ as MfaRateLimitedError, A as getWalletAccounts, B as offEvent, C as extractSessionId, D as getWalletProviderRegistry, E as WalletProviderPriority, F as formatWalletAccountId, G as fetchAndStoreNonces, H as onceEvent, I as normalizeAddress, K as createApiClient, L as splitWalletProviderKey, N as getChainFromVerifiedCredentialChain, P as CHAINS_INFO_MAP, Q as SandboxMaximumThresholdReachedError, S as getOperatingSystem, T as getWalletProviderFromWalletAccount, V as onEvent, Z as getNonce, _ as SDK_API_CORE_VERSION, _t as BaseError, a as initializeWaasClientsForEagerRecovery, at as isCookieEnabled, b as DEFAULT_PII_FIELDS, bt as version, ct as getElevatedAccessToken, et as MfaInvalidOtpError, f as getWalletProviders, g as DYNAMIC_ICONIC_SPRITE_URL, ht as setDefaultClient, i as InvalidParamError, k as NoWalletProviderFoundError, lt as randomString, m as checkAndRaiseWalletAccountsChangedEvent, mt as getDefaultClient, n as upsertElevatedAccessToken, nt as InvalidExternalAuthError, ot as assertDefined, p as isUserMissingMfaAuth, pt as NONCE_POOL_SIZE, q as UnauthorizedError, r as parseElevatedAccessToken, rt as APIError, st as ValueMustBeDefinedError, t as updateAuthFromVerifyResponse, tt as LinkCredentialError, ut as getPlatform, v as instrumentFunction, vt as getCore, x as getUserAgent, y as scrubParameters, yt as name, z as emitEvent } from "./updateAuthFromVerifyResponse-DFjqCSu2.native.esm.js";
2
+ import { B as __logoutWithReason_wrapped, C as getKeychainIndexedDBName, E as assertSafeNavigationUrl, F as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, H as fetchProjectSettings, I as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, J as retryOnFail, K as createLocalStorageAdapter, L as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, M as createDeferredPromise, N as FETCH_PROJECT_SETTINGS_TRACKER_KEY, O as createLogger, P as GENERATE_SESSION_KEYS_TRACKER_KEY, R as isServerSideRendering, S as MergeAccountsConfirmationError, T as createKeychainService, U as createStorageKeySchema, V as generateSessionKeys, W as createStorage, X as isEqualShallow, Y as subscribeWithSelector, _ as getAppMetadata, a as verifyMessageSignatureOwnership, b as WalletAlreadyLinkedToAnotherUserError, c as formatSignInMessage, d as setUnverifiedWalletAccounts, f as createVisit, g as isCaptchaRequired, h as consumeCaptchaToken, i as getNetworksData, j as CannotTrackError, k as createCrossTabBroadcast, l as reconcileWalletAccountsAgainstClient, m as __setCaptchaToken_wrapped, o as removeUnverifiedWalletAccount, p as hasExtension, q as isSignedIn, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as updateWalletProviderKeysForVerifiedCredentials, v as MethodNotImplementedError, w as createRealtimeService, x as NoNetworkProvidersError, y as WalletScreeningBlockedError, z as getBuffer } from "./getNetworkProviderFromNetworkId-Bsv12Q6B.native.esm.js";
3
+ import { n as NotWaasWalletAccountError, r as __refreshAuth_wrapped } from "./isDynamicWaasEnabled-Dj_sLoBO.native.esm.js";
4
+ import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-EY-OQORc.native.esm.js";
5
+ import { a as WaasOnboardingIncompleteError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, r as isDeviceRegistrationRequired, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-D3HrBYje.native.esm.js";
6
+ import { n as getVerifiedCredentialForWalletAccount, t as getWalletProviderByKey } from "./getWalletProviderByKey-DVk2t98D.native.esm.js";
7
7
  import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
8
- import { AuthModeEnum, CaptchaProviderEnum, CaptchaProviderEnum as CaptchaProviderEnum$1, ExchangeKeyEnum, JwtVerifiedCredentialFormatEnum, JwtVerifiedCredentialFormatEnum as JwtVerifiedCredentialFormatEnum$1, MFAAction, MfaBackupCodeAcknowledgement, ProviderEnum, ProviderEnum as ProviderEnum$1, TokenScope, TokenScope as TokenScope$1, WaasBackupOptionsEnum, WalletProviderEnum } from "@dynamic-labs/sdk-api-core";
8
+ import { AuthModeEnum, CaptchaProviderEnum as CaptchaProviderEnum$1, ExchangeKeyEnum, JwtVerifiedCredentialFormatEnum, JwtVerifiedCredentialFormatEnum as JwtVerifiedCredentialFormatEnum$1, MFAAction, MfaBackupCodeAcknowledgement, ProviderEnum, ProviderEnum as ProviderEnum$1, TokenScope, TokenScope as TokenScope$1, WaasBackupOptionsEnum, WalletProviderEnum } from "@dynamic-labs/sdk-api-core";
9
9
  import * as z from "zod/mini";
10
- import EventEmitter$1, { EventEmitter } from "eventemitter3";
10
+ import EventEmitter, { EventEmitter as EventEmitter$1 } from "eventemitter3";
11
11
  import { Passkey } from "react-native-passkey";
12
12
 
13
13
  //#region src/modules/state/raiseStateEvents/events.ts
@@ -353,13 +353,26 @@ const initializeStorageSync = async (client) => {
353
353
  //#endregion
354
354
  //#region src/modules/user/refreshUser/refreshUser.ts
355
355
  /**
356
- * Refreshes the current user's data from the server.
356
+ * Refreshes the current user's profile from the server.
357
357
  *
358
- * This function fetches the latest authenticated user information from the backend
359
- * and updates the local user state.
358
+ * This fetches the latest authenticated user from the backend and updates only
359
+ * the local user state, returning the `SdkUser`. It does not touch the auth
360
+ * token — use it when you just need up-to-date user data.
361
+ *
362
+ * Prefer `refreshAuth` when you need to rotate the auth token as well: it runs
363
+ * a full verify, updates both token and user state, and returns the raw
364
+ * `VerifyResponse` (including the new token).
365
+ *
366
+ * @example
367
+ * ```ts
368
+ * const user = await refreshUser();
369
+ * console.log('Updated user:', user.email);
370
+ * ```
360
371
  *
361
372
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
362
373
  * @returns A promise that resolves to the authenticated user.
374
+ * @see refreshAuth
375
+ * @see deleteUser
363
376
  * @instrumented
364
377
  * @noHook Low-level refresh primitive that is not exposed as a React hook.
365
378
  */
@@ -410,9 +423,25 @@ var ClientAlreadyInitializedError = class extends BaseError {
410
423
  *
411
424
  * You only need to call this function if you are not using `autoInitialize: true` in createDynamicClient.
412
425
  *
426
+ * @example
427
+ * ```ts
428
+ * const client = createDynamicClient({
429
+ * environmentId: 'env-id',
430
+ * autoInitialize: false,
431
+ * });
432
+ *
433
+ * try {
434
+ * await initializeClient(client);
435
+ * } catch (error) {
436
+ * console.error('Failed to initialize:', error);
437
+ * }
438
+ * ```
439
+ *
413
440
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
414
441
  * @returns A promise that resolves when initialization is complete.
415
442
  * @throws ClientAlreadyInitializedError If the client is already initialized.
443
+ * @see createDynamicClient
444
+ * @see waitForClientInitialized
416
445
  * @instrumented
417
446
  * @noHook Client lifecycle management is not exposed as a React hook.
418
447
  */
@@ -545,7 +574,7 @@ const createAsyncTrack = () => {
545
574
  * This ensures no process is missed (as it would throw when tracked on a different node tick).
546
575
  */
547
576
  let isTrackEnabled = true;
548
- const eventEmitter = new EventEmitter();
577
+ const eventEmitter = new EventEmitter$1();
549
578
  const allSettledPromise = createDeferredPromise();
550
579
  const tracker = /* @__PURE__ */ new Map();
551
580
  /**
@@ -592,7 +621,7 @@ const createAsyncTrack = () => {
592
621
  //#endregion
593
622
  //#region src/services/eventEmitter/createEventEmitter.ts
594
623
  /** @notInstrumented */
595
- const createEventEmitter = () => new EventEmitter$1();
624
+ const createEventEmitter = () => new EventEmitter();
596
625
 
597
626
  //#endregion
598
627
  //#region src/errors/UnavailableInServerSideError.ts
@@ -1170,8 +1199,18 @@ const createCore = (config) => {
1170
1199
  * Manually calling `initializeClient` also allows you to catch any potential
1171
1200
  * errors that may occur during initialization.
1172
1201
  *
1202
+ * @example
1203
+ * ```ts
1204
+ * const client = createDynamicClient({
1205
+ * environmentId: 'your-environment-id',
1206
+ * appUrl: 'https://myapp.com',
1207
+ * });
1208
+ * ```
1209
+ *
1173
1210
  * @param config - The configuration for the Dynamic client, like the environment ID, app url, etc.
1174
1211
  * @returns The Dynamic client instance.
1212
+ * @see initializeClient
1213
+ * @see getDefaultClient
1175
1214
  * @instrumented
1176
1215
  */
1177
1216
  const createDynamicClient = (config) => {
@@ -1262,6 +1301,27 @@ var DeeplinkConnectAndVerifyUnsupportedError = class extends BaseError {
1262
1301
 
1263
1302
  //#endregion
1264
1303
  //#region src/errors/DeviceRegistrationIdentityMismatchError.ts
1304
+ /**
1305
+ * Thrown when completing device registration would replace the current session
1306
+ * with a different user's identity.
1307
+ *
1308
+ * The device registration token resolved to a user other than the one currently
1309
+ * authenticated, which can indicate a login-CSRF / session-fixation attempt, so
1310
+ * the returned session is rejected and the current session is left untouched.
1311
+ *
1312
+ * @example
1313
+ * ```ts
1314
+ * try {
1315
+ * await completeDeviceRegistration({ token });
1316
+ * } catch (error) {
1317
+ * if (error instanceof DeviceRegistrationIdentityMismatchError) {
1318
+ * // The current session was preserved; ask the user to retry on this device.
1319
+ * }
1320
+ * }
1321
+ * ```
1322
+ * @see completeDeviceRegistration
1323
+ * @see InvalidDeviceRegistrationRedirectError
1324
+ */
1265
1325
  var DeviceRegistrationIdentityMismatchError = class extends BaseError {
1266
1326
  constructor() {
1267
1327
  super({
@@ -1760,9 +1820,19 @@ const __requestExternalAuthElevatedToken_wrapped = instrumentFunction({
1760
1820
  * This function allows authentication using JWT tokens from external providers,
1761
1821
  * enabling integration with custom authentication systems.
1762
1822
  *
1823
+ * @example
1824
+ * ```ts
1825
+ * const response = await signInWithExternalJwt({
1826
+ * externalJwt: 'eyJhbGciOiJSUzI1NiIs...',
1827
+ * });
1828
+ * ```
1829
+ *
1763
1830
  * @param [params.externalJwt] - Optional external JWT token to authenticate with. Not required when using cookie based auth.
1831
+ * @param [params.sessionPublicKey] - Optional session public key for session-based auth.
1764
1832
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
1765
1833
  * @returns A promise that resolves to the authentication response from the server.
1834
+ * @see logout
1835
+ * @see refreshAuth
1766
1836
  * @instrumented
1767
1837
  */
1768
1838
  const signInWithExternalJwt = async ({ externalJwt, sessionPublicKey } = {}, client = getDefaultClient()) => {
@@ -1795,8 +1865,21 @@ const __signInWithExternalJwt_wrapped = instrumentFunction({
1795
1865
  /**
1796
1866
  * Logs out the current user and clears all authentication data.
1797
1867
  *
1868
+ * @example
1869
+ * ```ts
1870
+ * await logout();
1871
+ * ```
1872
+ *
1873
+ * @example
1874
+ * ```ts
1875
+ * // With explicit client for multi-client setups
1876
+ * await logout(myClient);
1877
+ * ```
1878
+ *
1798
1879
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
1799
1880
  * @returns A promise that resolves when the logout process is complete.
1881
+ * @see isAnyWalletAccountConnected
1882
+ * @see refreshAuth
1800
1883
  * @notInstrumented
1801
1884
  */
1802
1885
  const logout = async (client = getDefaultClient()) => {
@@ -1809,6 +1892,58 @@ const logout = async (client = getDefaultClient()) => {
1809
1892
  return __logoutWithReason_wrapped({ reason: "user-intent" }, client);
1810
1893
  };
1811
1894
 
1895
+ //#endregion
1896
+ //#region src/modules/auth/mergeUserAccounts/mergeUserAccounts.ts
1897
+ /**
1898
+ * Completes an account merge after a credential was found to already belong to
1899
+ * another user (surfaced as `MergeAccountsConfirmationError` during
1900
+ * verification / linking).
1901
+ *
1902
+ * When the merge has no field-level conflicts, call it with no resolutions to
1903
+ * merge directly. When the two accounts hold different values for the same
1904
+ * profile field, pass the user's chosen `conflictResolutions` (one per
1905
+ * conflict) so the backend knows which value to keep. On success the two users
1906
+ * are folded into one, the merged session is persisted, and the merged user is
1907
+ * returned.
1908
+ *
1909
+ * @example
1910
+ * ```ts
1911
+ * try {
1912
+ * await verifyWalletAccount({ walletAccount });
1913
+ * } catch (error) {
1914
+ * if (error instanceof MergeAccountsConfirmationError) {
1915
+ * // resolveConflicts is your own function (not provided by the SDK): given
1916
+ * // the conflicting fields, decide which value to keep for each one —
1917
+ * // usually by prompting the user — and return them as MergeUserConflictResolution[].
1918
+ * await mergeUserAccounts(
1919
+ * error.mergeConflicts
1920
+ * ? { conflictResolutions: resolveConflicts(error.mergeConflicts) }
1921
+ * : undefined,
1922
+ * );
1923
+ * }
1924
+ * }
1925
+ * ```
1926
+ * @param params.conflictResolutions - Optional per-field conflict resolutions.
1927
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
1928
+ * @returns A promise that resolves to the merged user.
1929
+ * @see MergeAccountsConfirmationError
1930
+ * @see MergeUserConflictResolution
1931
+ * @notInstrumented
1932
+ */
1933
+ const mergeUserAccounts = async ({ conflictResolutions } = {}, client = getDefaultClient()) => {
1934
+ const core = getCore(client);
1935
+ const apiClient = createApiClient({}, client);
1936
+ const hasConflictResolutions = conflictResolutions !== void 0 && conflictResolutions.length > 0;
1937
+ let response;
1938
+ if (hasConflictResolutions) response = await apiClient.verifyMergeUsers({
1939
+ environmentId: core.environmentId,
1940
+ mergeUserConflictResolutions: { mergeUserResolutions: conflictResolutions }
1941
+ });
1942
+ else response = await apiClient.mergeUsers({ environmentId: core.environmentId });
1943
+ updateAuthFromVerifyResponse({ response }, client);
1944
+ return response.user;
1945
+ };
1946
+
1812
1947
  //#endregion
1813
1948
  //#region src/modules/auth/passkeys/deletePasskey/deletePasskey.ts
1814
1949
  /**
@@ -1894,10 +2029,17 @@ const serverRegisterPasskey = async ({ registration, createMfaToken }, client) =
1894
2029
  * passwordless authentication. The user will be prompted to create a passkey
1895
2030
  * using their device's biometric authentication or security key.
1896
2031
  *
2032
+ * @example
2033
+ * ```ts
2034
+ * await registerPasskey();
2035
+ * ```
2036
+ *
1897
2037
  * @param [params.createMfaToken] - Optional configuration for MFA token creation.
1898
2038
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
1899
2039
  * @returns A promise that resolves to the registration response.
1900
2040
  * @throws NoWebAuthNSupportError If WebAuthn is not supported by the browser.
2041
+ * @see signInWithPasskey
2042
+ * @see getPasskeys
1901
2043
  * @instrumented
1902
2044
  */
1903
2045
  const registerPasskey = async ({ createMfaToken } = {}, client = getDefaultClient()) => {
@@ -1962,9 +2104,18 @@ const serverSigninPasskey = async ({ authentication, createMfaToken }, client) =
1962
2104
  * credential, providing passwordless authentication using biometrics or
1963
2105
  * security keys.
1964
2106
  *
2107
+ * @example
2108
+ * ```ts
2109
+ * const response = await signInWithPasskey();
2110
+ * console.log('Signed in:', response.user.email);
2111
+ * ```
2112
+ *
2113
+ * @param [params.relatedOriginRpId] - Optional relying party ID for cross-origin authentication.
1965
2114
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
1966
2115
  * @returns A promise that resolves to the authentication response.
1967
2116
  * @throws NoWebAuthNSupportError If WebAuthn is not supported by the browser.
2117
+ * @see registerPasskey
2118
+ * @see getPasskeys
1968
2119
  * @instrumented
1969
2120
  */
1970
2121
  const signInWithPasskey = async ({ relatedOriginRpId } = {}, client = getDefaultClient()) => {
@@ -2045,6 +2196,14 @@ const __signInWithSocialRedirect_wrapped = instrumentFunction({
2045
2196
  * @deprecated Renamed to {@link signInWithSocialRedirect}. This alias will be
2046
2197
  * removed in a future major version.
2047
2198
  *
2199
+ * @example
2200
+ * ```ts
2201
+ * // Prefer signInWithSocialRedirect instead
2202
+ * await signInWithSocialRedirect({ provider: 'google', redirectUrl: window.location.href });
2203
+ * ```
2204
+ *
2205
+ * @see signInWithSocialRedirect
2206
+ * @see completeSocialRedirect
2048
2207
  * @instrumented
2049
2208
  * @noHook Deprecated alias that is not exposed as a React hook.
2050
2209
  */
@@ -2062,6 +2221,20 @@ const __authenticateWithSocial_wrapped = instrumentFunction({
2062
2221
  }
2063
2222
  });
2064
2223
 
2224
+ //#endregion
2225
+ //#region src/modules/auth/social/oauth/clearSocialRedirectParams/clearSocialRedirectParams.native.ts
2226
+ /**
2227
+ * Clearing social OAuth redirect parameters is not supported on React Native.
2228
+ * There is no browser address bar to clean because `signInWithSocialPopUp`
2229
+ * processes the pop-up callback inline rather than via a URL redirect.
2230
+ *
2231
+ * @throws MethodNotImplementedError Always on React Native.
2232
+ * @notInstrumented
2233
+ */
2234
+ const clearSocialRedirectParams = () => {
2235
+ throw new MethodNotImplementedError("clearSocialRedirectParams (not needed on React Native — signInWithSocialPopUp processes the callback inline)");
2236
+ };
2237
+
2065
2238
  //#endregion
2066
2239
  //#region src/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.native.ts
2067
2240
  /**
@@ -2434,19 +2607,39 @@ const __signInWithSocialPopUp_wrapped = instrumentFunction({
2434
2607
  });
2435
2608
 
2436
2609
  //#endregion
2437
- //#region src/modules/wallets/primaryWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.ts
2610
+ //#region src/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/getSelectedWalletAccount.ts
2438
2611
  /**
2439
- * Get the primary wallet account.
2440
- * The primary wallet account is the one that was last selected by the user.
2441
- * This information is stored in both unverified and verified wallet accounts.
2442
- * This function consolidates this information to determine which wallet was most recently selected.
2612
+ * Get the wallet account currently selected for the user.
2613
+ *
2614
+ * The SDK itself does not use or care about which wallet is "selected" — it has
2615
+ * no bearing on authentication, signing, or any other SDK behaviour. This is
2616
+ * purely a convenience for *reading* which wallet the user most recently
2617
+ * selected (derived from the backend `lastSelectedAt` timestamp, across both
2618
+ * unverified and verified wallet accounts). Applications that need a notion of
2619
+ * an active/current wallet should own that selection state themselves.
2620
+ *
2621
+ * The one exception is the wagmi integration (`@dynamic-labs-sdk/wagmi`), which
2622
+ * mirrors the selected EVM wallet into wagmi's connector state.
2623
+ *
2624
+ * @example
2625
+ * ```ts
2626
+ * const selected = getSelectedWalletAccount();
2627
+ * if (selected) {
2628
+ * console.log('Selected wallet:', selected.address);
2629
+ * }
2630
+ * ```
2631
+ *
2632
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
2633
+ * @returns The selected wallet account, or null if no wallet has been selected.
2634
+ * @see setSelectedWalletAccount
2635
+ * @see getWalletAccounts
2443
2636
  * @notInstrumented
2444
2637
  */
2445
- const getPrimaryWalletAccount = (client = getDefaultClient()) => {
2638
+ const getSelectedWalletAccount = (client = getDefaultClient()) => {
2446
2639
  const sortedLastSelectedWalletAccounts = getWalletAccounts(client).filter((walletAccount) => Boolean(walletAccount.lastSelectedAt)).sort((a, b) => b.lastSelectedAt.getTime() - a.lastSelectedAt.getTime());
2447
2640
  if (sortedLastSelectedWalletAccounts.length === 0) return null;
2448
- const [primaryWalletAccount] = sortedLastSelectedWalletAccounts;
2449
- return primaryWalletAccount;
2641
+ const [selectedWallet] = sortedLastSelectedWalletAccounts;
2642
+ return selectedWallet;
2450
2643
  };
2451
2644
 
2452
2645
  //#endregion
@@ -2468,9 +2661,9 @@ const getPrimaryWalletAccount = (client = getDefaultClient()) => {
2468
2661
  const unlinkSocialAccount = async ({ verifiedCredentialId }, client = getDefaultClient()) => {
2469
2662
  const core = getCore(client);
2470
2663
  const apiClient = createApiClient({ elevatedAccessTokenScope: TokenScope$1.Credentialunlink }, client);
2471
- const primaryWalletAccount = getPrimaryWalletAccount(client);
2472
- const walletId = primaryWalletAccount?.verifiedCredentialId?.replace("-zerodev", "") ?? void 0;
2473
- const isEmbeddedWallet = !!primaryWalletAccount && getVerifiedCredentialForWalletAccount({ walletAccount: primaryWalletAccount }, client)?.walletProvider === WalletProviderEnum.EmbeddedWallet;
2664
+ const selectedWallet = getSelectedWalletAccount(client);
2665
+ const walletId = selectedWallet?.verifiedCredentialId?.replace("-zerodev", "") ?? void 0;
2666
+ const isEmbeddedWallet = !!selectedWallet && getVerifiedCredentialForWalletAccount({ walletAccount: selectedWallet }, client)?.walletProvider === WalletProviderEnum.EmbeddedWallet;
2474
2667
  const response = await apiClient.verifyUnlink({
2475
2668
  environmentId: core.environmentId,
2476
2669
  verifyUnlinkRequest: {
@@ -2586,10 +2779,37 @@ const getMultichainBalances = (params, client = getDefaultClient()) => getMultic
2586
2779
  //#endregion
2587
2780
  //#region src/modules/captcha/getCaptchaSettings/getCaptchaSettings.ts
2588
2781
  /**
2782
+ * The captcha providers Dynamic can be configured to use for an environment.
2783
+ * Use it to branch on which captcha widget to render for the active provider.
2784
+ *
2785
+ * Redeclared locally (rather than re-exported directly from the generated
2786
+ * `sdk-api-core`) so the public client entry point owns its own documented,
2787
+ * stable surface for this token.
2788
+ *
2789
+ * @example
2790
+ * ```ts
2791
+ * const settings = getCaptchaSettings();
2792
+ * if (settings?.provider === CaptchaProviderEnum.Hcaptcha) {
2793
+ * renderHcaptcha(settings.siteKey);
2794
+ * }
2795
+ * ```
2796
+ * @see getCaptchaSettings
2797
+ * @see CaptchaSettingsResult
2798
+ */
2799
+ const CaptchaProviderEnum = CaptchaProviderEnum$1;
2800
+ /**
2589
2801
  * Returns the active captcha provider and site key, or undefined if captcha is not enabled.
2590
2802
  * Use this to determine which captcha widget to render and which site key to pass it.
2591
2803
  *
2804
+ * @example
2805
+ * ```ts
2806
+ * const settings = getCaptchaSettings();
2807
+ * if (settings) renderCaptcha(settings.provider, settings.siteKey);
2808
+ * ```
2809
+ * @see CaptchaSettingsResult
2810
+ * @see CaptchaProviderEnum
2592
2811
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
2812
+ * @returns The active captcha provider and site key, or undefined when captcha is not enabled.
2593
2813
  * @notInstrumented
2594
2814
  */
2595
2815
  const getCaptchaSettings = (client = getDefaultClient()) => {
@@ -2598,13 +2818,13 @@ const getCaptchaSettings = (client = getDefaultClient()) => {
2598
2818
  const { security } = projectSettings;
2599
2819
  if (security.captcha) {
2600
2820
  if (security.captcha.enabled) return {
2601
- provider: security.captcha.provider ?? CaptchaProviderEnum$1.Hcaptcha,
2821
+ provider: security.captcha.provider ?? CaptchaProviderEnum.Hcaptcha,
2602
2822
  siteKey: security.captcha.siteKey
2603
2823
  };
2604
2824
  return;
2605
2825
  }
2606
2826
  if (security.hCaptcha?.enabled) return {
2607
- provider: CaptchaProviderEnum$1.Hcaptcha,
2827
+ provider: CaptchaProviderEnum.Hcaptcha,
2608
2828
  siteKey: security.hCaptcha.siteKey
2609
2829
  };
2610
2830
  };
@@ -3168,10 +3388,44 @@ const requiresConversion = async ({ transaction }, client = getDefaultClient())
3168
3388
  return !checkout.settlementConfig.settlements.some((settlement) => settlement.chainName === transaction.fromChainName && settlement.chainId === transaction.fromChainId && settlement.tokenAddress === transaction.fromToken);
3169
3389
  };
3170
3390
 
3391
+ //#endregion
3392
+ //#region src/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/clearDeviceRegistrationRedirectParams.native.ts
3393
+ /**
3394
+ * Clearing device registration redirect parameters is not supported on React
3395
+ * Native. There is no browser address bar to clean because the device
3396
+ * registration token arrives via a deep link rather than a URL redirect.
3397
+ *
3398
+ * @returns Never. Always throws on React Native.
3399
+ *
3400
+ * @throws {MethodNotImplementedError} Always on React Native.
3401
+ *
3402
+ * @example
3403
+ * ```ts
3404
+ * // On web only:
3405
+ * clearDeviceRegistrationRedirectParams();
3406
+ * ```
3407
+ *
3408
+ * @see {@link completeDeviceRegistration} to finish the registration flow.
3409
+ * @see {@link detectDeviceRegistrationRedirect} to check whether a URL is a
3410
+ * device registration callback.
3411
+ *
3412
+ * @notInstrumented
3413
+ */
3414
+ const clearDeviceRegistrationRedirectParams = () => {
3415
+ throw new MethodNotImplementedError("clearDeviceRegistrationRedirectParams (not needed on React Native — the device registration token arrives via a deep link, not a URL redirect)");
3416
+ };
3417
+
3171
3418
  //#endregion
3172
3419
  //#region src/modules/deviceRegistration/completeDeviceRegistration/completeDeviceRegistration.ts
3173
3420
  const DEVICE_REGISTRATION_TOKEN_HEADER = "x-dynamic-device-registration-token";
3174
- /** @instrumented */
3421
+ /**
3422
+ * Completes device registration using the token from a device registration
3423
+ * redirect, authenticating the current device against the user's account.
3424
+ *
3425
+ * @see detectDeviceRegistrationRedirect
3426
+ * @see clearDeviceRegistrationRedirectParams
3427
+ * @instrumented
3428
+ */
3175
3429
  const completeDeviceRegistration = async ({ deviceToken }, client = getDefaultClient()) => {
3176
3430
  assertDefined(deviceToken, "deviceToken is required");
3177
3431
  const core = getCore(client);
@@ -3519,11 +3773,18 @@ const cancelFlowInstrumentation = { resolved: (flow) => ({
3519
3773
  //#endregion
3520
3774
  //#region src/modules/flow/cancelFlow/cancelFlow.ts
3521
3775
  /**
3522
- * Cancels a flow before it has been broadcasted
3776
+ * Cancels a flow before it has been broadcasted.
3777
+ *
3778
+ * @example
3779
+ * ```ts
3780
+ * const cancelledFlow = await cancelFlow({ flowId: 'flow-abc123' });
3781
+ * ```
3523
3782
  *
3524
- * @param params CancelFlowParams - The flow to cancel.
3783
+ * @param params.flowId - The unique identifier of the flow to cancel.
3525
3784
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
3526
- * @returns The cancelled flow
3785
+ * @returns A promise that resolves to the cancelled flow.
3786
+ * @see getFlow
3787
+ * @see getFlowQuote
3527
3788
  * @instrumented
3528
3789
  */
3529
3790
  const cancelFlow = async ({ flowId }, client = getDefaultClient()) => {
@@ -3556,11 +3817,19 @@ const __cancelFlow_wrapped = instrumentFunction({
3556
3817
  //#endregion
3557
3818
  //#region src/modules/flow/getFlow/getFlow.ts
3558
3819
  /**
3559
- * Fetches a flow by its ID
3820
+ * Fetches a flow by its ID.
3560
3821
  *
3561
- * @param params GetFlowParams - The parameters for fetching the flow.
3822
+ * @example
3823
+ * ```ts
3824
+ * const flow = await getFlow({ flowId: 'flow-abc123' });
3825
+ * console.log('Flow status:', flow.status);
3826
+ * ```
3827
+ *
3828
+ * @param params.flowId - The unique identifier of the flow to fetch.
3562
3829
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
3563
- * @returns The flow
3830
+ * @returns A promise that resolves to the flow object.
3831
+ * @see cancelFlow
3832
+ * @see getFlowQuote
3564
3833
  * @notInstrumented
3565
3834
  */
3566
3835
  const getFlow = async ({ flowId }, client = getDefaultClient()) => {
@@ -3574,11 +3843,24 @@ const getFlow = async ({ flowId }, client = getDefaultClient()) => {
3574
3843
  //#endregion
3575
3844
  //#region src/modules/flow/getFlowQuote/getFlowQuote.ts
3576
3845
  /**
3577
- * Fetches a quote for a flow
3846
+ * Fetches a quote for a flow.
3847
+ *
3848
+ * @example
3849
+ * ```ts
3850
+ * const flow = await getFlowQuote({
3851
+ * flowId: 'flow-abc123',
3852
+ * slippage: 0.5,
3853
+ * });
3854
+ * ```
3578
3855
  *
3579
- * @param params GetFlowQuoteParams - The quote parameters.
3856
+ * @param params.flowId - The unique identifier of the flow.
3857
+ * @param [params.fromChainId] - Optional chain ID overriding the one set at attachFlowSource time.
3858
+ * @param [params.fromTokenAddress] - Optional token address (defaults to native token).
3859
+ * @param [params.slippage] - Acceptable slippage percentage.
3580
3860
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
3581
- * @returns The updated flow with quote data
3861
+ * @returns A promise that resolves to the updated flow with quote data.
3862
+ * @see getFlow
3863
+ * @see cancelFlow
3582
3864
  * @notInstrumented
3583
3865
  */
3584
3866
  const getFlowQuote = async ({ flowId, fromChainId, fromTokenAddress, slippage }, client = getDefaultClient()) => {
@@ -4100,7 +4382,17 @@ const __getMoonPayUrl_wrapped = instrumentFunction({
4100
4382
  * Allows waiting until all modules of the client have been properly initialized
4101
4383
  * and are ready for use.
4102
4384
  *
4103
- * @returns a promise that resolves once the client is fully initialized.
4385
+ * @example
4386
+ * ```ts
4387
+ * const client = createDynamicClient({ environmentId: 'env-id' });
4388
+ * await waitForClientInitialized(client);
4389
+ * // Client is now fully ready
4390
+ * ```
4391
+ *
4392
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
4393
+ * @returns A promise that resolves once the client is fully initialized.
4394
+ * @see initializeClient
4395
+ * @see createDynamicClient
4104
4396
  * @notInstrumented
4105
4397
  * @noHook Client lifecycle management is not exposed as a hook; use useInitStatus.
4106
4398
  */
@@ -5087,9 +5379,23 @@ const __setDefaultMfaDevice_wrapped = instrumentFunction({
5087
5379
  *
5088
5380
  * Once you have the OTP code, you should then use `verifyOTP` to verify it and complete the authentication process.
5089
5381
  *
5382
+ * @example
5383
+ * ```ts
5384
+ * const { verificationUUID } = await sendEmailOTP({
5385
+ * email: 'user@example.com',
5386
+ * });
5387
+ * // Then verify with the code the user received
5388
+ * await verifyOTP({
5389
+ * otpVerification: { email: 'user@example.com', verificationUUID },
5390
+ * verificationToken: '123456',
5391
+ * });
5392
+ * ```
5393
+ *
5090
5394
  * @param params.email - The email address to send the OTP to.
5091
5395
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
5092
5396
  * @returns A promise that resolves to an OTPVerification object containing the email and verification UUID.
5397
+ * @see verifyOTP
5398
+ * @see sendSmsOTP
5093
5399
  * @instrumented
5094
5400
  */
5095
5401
  const sendEmailOTP = async ({ email }, client = getDefaultClient()) => {
@@ -6047,10 +6353,22 @@ const supportedCountries = {
6047
6353
  /**
6048
6354
  * Sends a one-time password (OTP) via SMS to the specified phone number.
6049
6355
  *
6356
+ * @example
6357
+ * ```ts
6358
+ * const { verificationUUID } = await sendSmsOTP({
6359
+ * isoCountryCode: 'US',
6360
+ * phoneNumber: '5551234567',
6361
+ * });
6362
+ * // Then verify with the code the user received
6363
+ * await verifyOTP({ otpVerification: { phoneNumber: '5551234567', verificationUUID }, verificationToken: '123456' });
6364
+ * ```
6365
+ *
6050
6366
  * @param params.isoCountryCode - The ISO country code for the phone number (e.g., 'US', 'CA', 'GB').
6051
6367
  * @param params.phoneNumber - The phone number to send the OTP to.
6052
6368
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
6053
6369
  * @returns A promise that resolves to an OTPVerification object containing the phone details and verification UUID.
6370
+ * @see verifyOTP
6371
+ * @see sendEmailOTP
6054
6372
  * @instrumented
6055
6373
  */
6056
6374
  const sendSmsOTP = async ({ isoCountryCode, phoneNumber }, client = getDefaultClient()) => {
@@ -6090,10 +6408,11 @@ const __sendSmsOTP_wrapped = instrumentFunction({
6090
6408
  //#endregion
6091
6409
  //#region src/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.ts
6092
6410
  /** @notInstrumented */
6093
- const verifyOTPForUserSignIn = async ({ otpVerification, verificationToken }, client) => {
6411
+ const verifyOTPForUserSignIn = async ({ allowNewMFALinking, otpVerification, verificationToken }, client) => {
6094
6412
  const core = getCore(client);
6095
6413
  const apiClient = createApiClient({}, client);
6096
6414
  const verifyRequest = {
6415
+ ...allowNewMFALinking !== void 0 && { allowNewMFALinking },
6097
6416
  verificationToken,
6098
6417
  verificationUUID: otpVerification.verificationUUID
6099
6418
  };
@@ -6136,13 +6455,26 @@ const verifyOTPForUserUpdate = async ({ otpVerification, verificationToken, requ
6136
6455
  * This function validates the OTP code provided by the user and completes
6137
6456
  * the verification process for either sign-in or account updates.
6138
6457
  *
6458
+ * @example
6459
+ * ```ts
6460
+ * const { verificationUUID } = await sendEmailOTP({ email: 'user@example.com' });
6461
+ * const response = await verifyOTP({
6462
+ * otpVerification: { email: 'user@example.com', verificationUUID },
6463
+ * verificationToken: '123456',
6464
+ * });
6465
+ * ```
6466
+ *
6467
+ * @param [params.allowNewMFALinking] - Whether sign-in may return a credential-link elevated token for users without MFA.
6139
6468
  * @param params.otpVerification - The OTP verification object containing verification details.
6140
6469
  * @param params.verificationToken - The token received from the OTP verification process.
6470
+ * @param [params.requestedScopes] - Optional token scopes to request during verification.
6141
6471
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
6142
6472
  * @returns A promise that resolves to the verify response object upon successful verification.
6473
+ * @see sendEmailOTP
6474
+ * @see sendSmsOTP
6143
6475
  * @instrumented
6144
6476
  */
6145
- const verifyOTP = async ({ otpVerification, verificationToken, requestedScopes }, client = getDefaultClient()) => {
6477
+ const verifyOTP = async ({ allowNewMFALinking, otpVerification, requestedScopes, verificationToken }, client = getDefaultClient()) => {
6146
6478
  preconnectWaasIframe(client);
6147
6479
  let response;
6148
6480
  if (client.user) response = await verifyOTPForUserUpdate({
@@ -6151,6 +6483,7 @@ const verifyOTP = async ({ otpVerification, verificationToken, requestedScopes }
6151
6483
  verificationToken
6152
6484
  }, client);
6153
6485
  else response = await verifyOTPForUserSignIn({
6486
+ allowNewMFALinking,
6154
6487
  otpVerification,
6155
6488
  verificationToken
6156
6489
  }, client);
@@ -6249,6 +6582,33 @@ const getSwapStatus = async (params, client = getDefaultClient()) => {
6249
6582
  }
6250
6583
  };
6251
6584
 
6585
+ //#endregion
6586
+ //#region src/modules/user/checkUserScopes/checkUserScopes.ts
6587
+ /**
6588
+ * Checks whether the given user has all the specified scopes.
6589
+ *
6590
+ * The user's `scope` field is a whitespace-separated string of granted
6591
+ * permissions (per RFC 8693 §4.2). This helper splits it and verifies that
6592
+ * every entry in `scopes` is present.
6593
+ *
6594
+ * @example
6595
+ * const user = getDefaultClient().user;
6596
+ * if (user && checkUserScopes({ user, scopes: ['wallets:read'] })) {
6597
+ * showWalletBalances();
6598
+ * }
6599
+ *
6600
+ * @param params.user - The authenticated user to check.
6601
+ * @param params.scopes - The scope strings the user must have.
6602
+ * @returns `true` if the user has every scope in `scopes`, `false` otherwise.
6603
+ * @see User
6604
+ * @see updateUser
6605
+ * @notInstrumented
6606
+ */
6607
+ const checkUserScopes = ({ scopes, user }) => {
6608
+ const grantedScopes = user.scope?.split(/\s+/).filter(Boolean) ?? [];
6609
+ return scopes.every((requiredScope) => grantedScopes.includes(requiredScope));
6610
+ };
6611
+
6252
6612
  //#endregion
6253
6613
  //#region src/modules/user/deleteUser/deleteUser.ts
6254
6614
  /**
@@ -6257,8 +6617,16 @@ const getSwapStatus = async (params, client = getDefaultClient()) => {
6257
6617
  * This function performs a hard delete of the user account. Upon successful deletion,
6258
6618
  * the user will be automatically logged out and all authentication data will be cleared.
6259
6619
  *
6620
+ * @example
6621
+ * ```ts
6622
+ * // Permanently delete the user's account
6623
+ * await deleteUser();
6624
+ * ```
6625
+ *
6260
6626
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
6261
6627
  * @returns A promise that resolves when the user account is successfully deleted.
6628
+ * @see logout
6629
+ * @see refreshUser
6262
6630
  * @instrumented
6263
6631
  */
6264
6632
  const deleteUser = async (client = getDefaultClient()) => {
@@ -7592,8 +7960,14 @@ const getAddressesWithTypesFromConnectionResult = (connectionResult) => {
7592
7960
  *
7593
7961
  * Note: This function will not verify the wallet account, use the verifyWalletAccount function to do that
7594
7962
  * or connectAndVerifyWithWalletProvider to do that in a single step.
7595
- * @see verifyWalletAccount
7596
- * @see connectAndVerifyWithWalletProvider
7963
+ *
7964
+ * @example
7965
+ * ```ts
7966
+ * const walletAccount = await connectWithWalletProvider({
7967
+ * walletProviderKey: 'metamaskevm',
7968
+ * });
7969
+ * console.log(walletAccount.address);
7970
+ * ```
7597
7971
  *
7598
7972
  * @param params.walletProviderKey - The unique key identifying the wallet provider to connect to (e.g. 'metamaskevm', 'phantomsol').
7599
7973
  * @param [params.addToDynamicWalletAccounts] - Whether to add the connected wallet account to the user's wallet accounts. Defaults to true.
@@ -7601,7 +7975,9 @@ const getAddressesWithTypesFromConnectionResult = (connectionResult) => {
7601
7975
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
7602
7976
  * @returns A promise that resolves to the connected wallet account.
7603
7977
  * @throws NoAddressFoundError If the request to connect was successful but no address is connected to your app.
7604
- * @instrumented
7978
+ * @see verifyWalletAccount
7979
+ * @see connectAndVerifyWithWalletProvider
7980
+ * @instrumented
7605
7981
  */
7606
7982
  const connectWithWalletProvider = async ({ walletProviderKey, addToDynamicWalletAccounts = true, hardwareWalletVendor }, client = getDefaultClient()) => {
7607
7983
  const walletProvider = getWalletProviderByKey({ walletProviderKey }, client);
@@ -7738,9 +8114,19 @@ const getSignInMessage = async ({ nonce: nonceOverride, walletAccount }, client)
7738
8114
  * This function generates a sign-in message and requires the user to sign it
7739
8115
  * with their wallet's private key, proving they control the wallet address.
7740
8116
  *
8117
+ * @example
8118
+ * ```ts
8119
+ * const { messageToSign, signature } = await proveWalletAccountOwnership({
8120
+ * walletAccount: wallets[0],
8121
+ * });
8122
+ * // Send signature to your backend for verification
8123
+ * ```
8124
+ *
7741
8125
  * @param params.walletAccount - The wallet account to prove ownership of.
7742
8126
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
7743
8127
  * @returns A promise that resolves to an object containing the message and signature.
8128
+ * @see signMessage
8129
+ * @see verifyWalletAccount
7744
8130
  * @instrumented
7745
8131
  */
7746
8132
  const proveWalletAccountOwnership = async ({ walletAccount }, client = getDefaultClient()) => {
@@ -7844,11 +8230,22 @@ const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfe
7844
8230
  * This function requires the user to sign a message to prove wallet ownership,
7845
8231
  * then sets the wallet account as verified.
7846
8232
  *
8233
+ * @example
8234
+ * ```ts
8235
+ * const walletAccount = await connectWithWalletProvider({
8236
+ * walletProviderKey: 'metamaskevm',
8237
+ * });
8238
+ * const verified = await verifyWalletAccount({ walletAccount });
8239
+ * ```
8240
+ *
7847
8241
  * @param params.walletAccount - The wallet account to verify ownership of.
8242
+ * @param [params.requestedScopes] - Optional token scopes to request during verification.
7848
8243
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
7849
8244
  * @returns A promise that resolves to the verified wallet account.
7850
8245
  * @throws WalletAccountAlreadyVerifiedError If the wallet is already verified.
7851
8246
  * @throws WalletAlreadyLinkedToAnotherUserError If the wallet is linked to another user.
8247
+ * @see connectWithWalletProvider
8248
+ * @see connectAndVerifyWithWalletProvider
7852
8249
  * @instrumented
7853
8250
  */
7854
8251
  const verifyWalletAccount = async ({ walletAccount, requestedScopes }, client = getDefaultClient()) => {
@@ -7898,10 +8295,20 @@ const isDeeplinkWalletProvider = ({ walletProvider }) => walletProvider.walletPr
7898
8295
  * `verifyWalletAccount` separately from a new user gesture (e.g. a "Verify
7899
8296
  * Ownership" button).
7900
8297
  *
8298
+ * @example
8299
+ * ```ts
8300
+ * const walletAccount = await connectAndVerifyWithWalletProvider({
8301
+ * walletProviderKey: 'metamaskevm',
8302
+ * });
8303
+ * console.log('Verified address:', walletAccount.address);
8304
+ * ```
8305
+ *
7901
8306
  * @param params.walletProviderKey - The unique key identifying the wallet provider to connect to.
7902
8307
  * @param [params.hardwareWalletVendor] - The hardware wallet vendor, if connecting via a hardware wallet (e.g. 'ledger').
7903
8308
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
7904
8309
  * @returns A promise that resolves to the connected and verified wallet account.
8310
+ * @see connectWithWalletProvider
8311
+ * @see verifyWalletAccount
7905
8312
  * @instrumented
7906
8313
  */
7907
8314
  const connectAndVerifyWithWalletProvider = async ({ walletProviderKey, hardwareWalletVendor }, client = getDefaultClient()) => {
@@ -7963,9 +8370,17 @@ const getAvailableWalletProvidersData = (client = getDefaultClient()) => {
7963
8370
  * This function returns the list of wallet addresses that are currently
7964
8371
  * connected and available through the specified wallet provider.
7965
8372
  *
8373
+ * @example
8374
+ * ```ts
8375
+ * const addresses = getConnectedAddresses({ walletProviderKey: 'metamaskevm' });
8376
+ * console.log('Connected:', addresses);
8377
+ * ```
8378
+ *
7966
8379
  * @param params.walletProviderKey - The unique key of the wallet provider to query.
7967
8380
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
7968
8381
  * @returns An array of connected wallet addresses.
8382
+ * @see connectWithWalletProvider
8383
+ * @see getWalletAccounts
7969
8384
  * @notInstrumented
7970
8385
  */
7971
8386
  const getConnectedAddresses = ({ walletProviderKey }, client = getDefaultClient()) => {
@@ -8046,8 +8461,17 @@ const isHardwareWalletAccount = ({ walletAccount }) => walletAccount.hardwareWal
8046
8461
  * else your app considers "signed in" (e.g. `client.user`, completed onboarding,
8047
8462
  * a required embedded wallet, …).
8048
8463
  *
8464
+ * @example
8465
+ * ```ts
8466
+ * if (isAnyWalletAccountConnected()) {
8467
+ * console.log('At least one wallet is connected');
8468
+ * }
8469
+ * ```
8470
+ *
8049
8471
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
8050
8472
  * @returns True if the session has at least one wallet account, false otherwise.
8473
+ * @see getWalletAccounts
8474
+ * @see isWalletAccountVerified
8051
8475
  * @notInstrumented
8052
8476
  */
8053
8477
  const isAnyWalletAccountConnected = (client = getDefaultClient()) => getWalletAccounts(client).length > 0;
@@ -8057,8 +8481,16 @@ const isAnyWalletAccountConnected = (client = getDefaultClient()) => getWalletAc
8057
8481
  /**
8058
8482
  * Checks if a wallet account has been verified by a user.
8059
8483
  *
8060
- * @param walletAccount - The wallet account to check.
8484
+ * @example
8485
+ * ```ts
8486
+ * const wallets = getWalletAccounts();
8487
+ * const verified = wallets.filter(w => isWalletAccountVerified({ walletAccount: w }));
8488
+ * ```
8489
+ *
8490
+ * @param params.walletAccount - The wallet account to check.
8061
8491
  * @returns True if the wallet account has been verified, false otherwise.
8492
+ * @see verifyWalletAccount
8493
+ * @see getWalletAccounts
8062
8494
  * @notInstrumented
8063
8495
  */
8064
8496
  const isWalletAccountVerified = ({ walletAccount }) => {
@@ -8148,9 +8580,17 @@ const getActiveNetworkId = ({ walletAccount }, client = getDefaultClient()) => {
8148
8580
  * {@link getTokenBalances}; for a multi-chain portfolio snapshot, use
8149
8581
  * {@link getMultichainTokenBalances}.
8150
8582
  *
8583
+ * @example
8584
+ * ```ts
8585
+ * const { balance } = await getNativeBalance({ walletAccount: wallets[0] });
8586
+ * console.log('Native balance:', balance);
8587
+ * ```
8588
+ *
8151
8589
  * @param params.walletAccount - The wallet account to get the balance for.
8152
8590
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
8153
8591
  * @returns A promise that resolves to an object containing the balance as a string or null.
8592
+ * @see getMultichainTokenBalances
8593
+ * @see switchActiveNetwork
8154
8594
  * @notInstrumented
8155
8595
  */
8156
8596
  const getNativeBalance = async ({ walletAccount }, client = getDefaultClient()) => {
@@ -8170,6 +8610,14 @@ const getNativeBalance = async ({ walletAccount }, client = getDefaultClient())
8170
8610
  * with the token-balance fetchers (`getTokenBalances` /
8171
8611
  * `getMultichainTokenBalances`).
8172
8612
  *
8613
+ * @example
8614
+ * ```ts
8615
+ * // Prefer getNativeBalance instead
8616
+ * const balance = await getNativeBalance({ walletAccount });
8617
+ * ```
8618
+ *
8619
+ * @see getNativeBalance
8620
+ * @see getMultichainBalances
8173
8621
  * @notInstrumented
8174
8622
  * @noHook Deprecated; the replacement is exposed via its own hook.
8175
8623
  */
@@ -8255,11 +8703,21 @@ const isProgrammaticNetworkSwitchAvailable = ({ walletAccount }, client = getDef
8255
8703
  * This function programmatically changes the network
8256
8704
  * that the wallet is currently connected to.
8257
8705
  *
8706
+ * @example
8707
+ * ```ts
8708
+ * await switchActiveNetwork({
8709
+ * walletAccount: wallets[0],
8710
+ * networkId: '137', // Polygon
8711
+ * });
8712
+ * ```
8713
+ *
8258
8714
  * @param params.networkId - The identifier of the network to switch to. Should match the networkId of the network data.
8259
8715
  * @param params.walletAccount - The wallet account to switch networks for.
8260
8716
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
8261
8717
  * @returns A promise that resolves when the network switch is complete.
8262
8718
  * @throws NetworkSwitchingUnavailableError If the wallet provider doesn't support network switching.
8719
+ * @see getNativeBalance
8720
+ * @see isProgrammaticNetworkSwitchAvailable
8263
8721
  * @instrumented
8264
8722
  */
8265
8723
  const switchActiveNetwork = async ({ networkId, walletAccount }, client = getDefaultClient()) => {
@@ -8285,15 +8743,37 @@ const __switchActiveNetwork_wrapped = instrumentFunction({
8285
8743
  });
8286
8744
 
8287
8745
  //#endregion
8288
- //#region src/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.ts
8746
+ //#region src/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/setSelectedWalletAccount.ts
8289
8747
  /**
8290
- * Make the wallet account provided as the primary wallet account.
8748
+ * Set the wallet account that is currently selected for the user.
8749
+ *
8750
+ * The SDK itself does not use or care about which wallet is "selected" — this
8751
+ * only records the selection (updating the backend `lastSelectedAt` and, for
8752
+ * verified wallets, persisting it server-side) so it can later be read back via
8753
+ * `getSelectedWalletAccount`. It has no bearing on authentication or signing.
8754
+ * Applications that need a notion of an active/current wallet should own that
8755
+ * selection state themselves.
8756
+ *
8757
+ * The one exception is the wagmi integration (`@dynamic-labs-sdk/wagmi`), which
8758
+ * relies on the selected EVM wallet.
8759
+ *
8760
+ * @example
8761
+ * ```ts
8762
+ * const wallets = getWalletAccounts();
8763
+ * await setSelectedWalletAccount({ walletAccount: wallets[1] });
8764
+ * ```
8765
+ *
8766
+ * @param params.walletAccount - The wallet account to mark as selected.
8767
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
8768
+ * @returns A promise that resolves when the selection is persisted.
8769
+ * @see getSelectedWalletAccount
8770
+ * @see getWalletAccounts
8291
8771
  * @instrumented
8292
- * @noHook The primary-wallet concept is discouraged and not exposed as a hook.
8772
+ * @noHook The selected-wallet concept is not exposed as a hook.
8293
8773
  */
8294
- const selectPrimaryWalletAccount = async ({ walletAccount }, client = getDefaultClient()) => {
8774
+ const setSelectedWalletAccount = async ({ walletAccount }, client = getDefaultClient()) => {
8295
8775
  const core = getCore(client);
8296
- if (getPrimaryWalletAccount(client)?.id === walletAccount.id) return;
8776
+ if (getSelectedWalletAccount(client)?.id === walletAccount.id) return;
8297
8777
  if (walletAccount.verifiedCredentialId) updateAuthFromVerifyResponse({ response: await createApiClient({}, client).selectUserWallet({
8298
8778
  environmentId: core.environmentId,
8299
8779
  userWalletSelectionRequest: { walletId: walletAccount.verifiedCredentialId }
@@ -8303,6 +8783,68 @@ const selectPrimaryWalletAccount = async ({ walletAccount }, client = getDefault
8303
8783
  lastSelectedAt: /* @__PURE__ */ new Date()
8304
8784
  }] }, client);
8305
8785
  };
8786
+ const __setSelectedWalletAccount_impl = setSelectedWalletAccount;
8787
+ const __setSelectedWalletAccount_wrapped = instrumentFunction({
8788
+ fn: __setSelectedWalletAccount_impl,
8789
+ functionName: "setSelectedWalletAccount",
8790
+ getCore: () => {
8791
+ try {
8792
+ return getCore(getDefaultClient());
8793
+ } catch {
8794
+ return;
8795
+ }
8796
+ }
8797
+ });
8798
+
8799
+ //#endregion
8800
+ //#region src/modules/wallets/selectedWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.ts
8801
+ /**
8802
+ * Get the primary wallet account.
8803
+ *
8804
+ * @deprecated Renamed to `getSelectedWalletAccount`. The "primary wallet" naming was
8805
+ * misleading — the SDK does not use or care about which wallet is selected; it
8806
+ * only lets you *read* the user's most recently selected wallet. Migrate to
8807
+ * `getSelectedWalletAccount`, and own your own wallet-selection state in your
8808
+ * application rather than relying on the SDK's selected wallet.
8809
+ *
8810
+ * @example
8811
+ * ```ts
8812
+ * const primary = getPrimaryWalletAccount();
8813
+ * if (primary) {
8814
+ * console.log('Primary wallet:', primary.address);
8815
+ * }
8816
+ * ```
8817
+ *
8818
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
8819
+ * @returns The primary wallet account, or null if no wallet has been selected.
8820
+ * @notInstrumented
8821
+ */
8822
+ const getPrimaryWalletAccount = (client = getDefaultClient()) => getSelectedWalletAccount(client);
8823
+
8824
+ //#endregion
8825
+ //#region src/modules/wallets/selectedWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.ts
8826
+ /**
8827
+ * Make the wallet account provided as the primary wallet account.
8828
+ *
8829
+ * @deprecated Renamed to `setSelectedWalletAccount`. The "primary wallet" naming was
8830
+ * misleading — the SDK does not use or care about which wallet is selected;
8831
+ * this only records the selection so it can later be read back. Migrate to
8832
+ * `setSelectedWalletAccount`, and own your own wallet-selection state in your
8833
+ * application rather than relying on the SDK's selected wallet.
8834
+ *
8835
+ * @example
8836
+ * ```ts
8837
+ * const wallets = getWalletAccounts();
8838
+ * await selectPrimaryWalletAccount({ walletAccount: wallets[1] });
8839
+ * ```
8840
+ *
8841
+ * @param params.walletAccount - The wallet account to set as primary.
8842
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
8843
+ * @returns A promise that resolves when the selection is persisted.
8844
+ * @instrumented
8845
+ * @noHook The selected-wallet concept is not exposed as a hook.
8846
+ */
8847
+ const selectPrimaryWalletAccount = async ({ walletAccount }, client = getDefaultClient()) => __setSelectedWalletAccount_wrapped({ walletAccount }, client);
8306
8848
  const __selectPrimaryWalletAccount_impl = selectPrimaryWalletAccount;
8307
8849
  const __selectPrimaryWalletAccount_wrapped = instrumentFunction({
8308
8850
  fn: __selectPrimaryWalletAccount_impl,
@@ -8319,10 +8861,23 @@ const __selectPrimaryWalletAccount_wrapped = instrumentFunction({
8319
8861
  //#endregion
8320
8862
  //#region src/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.ts
8321
8863
  /**
8322
- * This function disconnects the specified wallet account with the wallet provider.
8864
+ * Disconnects the specified wallet account from its wallet provider.
8323
8865
  *
8324
- * The wallet account is not removed from the user's profile or from dynamic's state,
8866
+ * The wallet account is not removed from the user's profile or from Dynamic's state,
8325
8867
  * it is only responsible for terminating the connection with the wallet provider.
8868
+ * Use `removeWalletAccount` to fully remove a wallet from the user's session.
8869
+ *
8870
+ * @example
8871
+ * ```ts
8872
+ * const wallets = getWalletAccounts();
8873
+ * await disconnectWalletAccount({ walletAccount: wallets[0] }, client);
8874
+ * ```
8875
+ *
8876
+ * @param params.walletAccount - The wallet account to disconnect.
8877
+ * @param client - The Dynamic client instance.
8878
+ * @returns A promise that resolves when the wallet is disconnected from the provider.
8879
+ * @see removeWalletAccount
8880
+ * @see connectWithWalletProvider
8326
8881
  * @notInstrumented
8327
8882
  */
8328
8883
  const disconnectWalletAccount = async ({ walletAccount }, client) => {
@@ -8343,9 +8898,17 @@ const disconnectWalletAccount = async ({ walletAccount }, client) => {
8343
8898
  * updating local state and server records (if there is an authenticated user).
8344
8899
  * For verified wallets, it will unlink them from the user's account.
8345
8900
  *
8901
+ * @example
8902
+ * ```ts
8903
+ * const wallets = getWalletAccounts();
8904
+ * await removeWalletAccount({ walletAccount: wallets[0] });
8905
+ * ```
8906
+ *
8346
8907
  * @param params.walletAccount - The wallet account to remove.
8347
8908
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
8348
8909
  * @returns A promise that resolves when the wallet account is successfully removed.
8910
+ * @see getWalletAccounts
8911
+ * @see disconnectWalletAccount
8349
8912
  * @instrumented
8350
8913
  */
8351
8914
  const removeWalletAccount = async ({ walletAccount }, client = getDefaultClient()) => {
@@ -8382,10 +8945,21 @@ const __removeWalletAccount_wrapped = instrumentFunction({
8382
8945
  * This function uses the wallet's private key to cryptographically sign
8383
8946
  * the provided message.
8384
8947
  *
8948
+ * @example
8949
+ * ```ts
8950
+ * const wallets = getWalletAccounts();
8951
+ * const { signature } = await signMessage({
8952
+ * walletAccount: wallets[0],
8953
+ * message: 'Hello Dynamic!',
8954
+ * });
8955
+ * ```
8956
+ *
8385
8957
  * @param params.walletAccount - The wallet account to use for signing.
8386
8958
  * @param params.message - The message to sign.
8387
8959
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
8388
8960
  * @returns A promise that resolves to an object containing the signature.
8961
+ * @see getWalletAccounts
8962
+ * @see connectWithWalletProvider
8389
8963
  * @instrumented
8390
8964
  */
8391
8965
  const signMessage = async ({ walletAccount, message }, client = getDefaultClient()) => {
@@ -8418,13 +8992,24 @@ const __signMessage_wrapped = instrumentFunction({
8418
8992
  * Supports native token transfers and, where supported by the chain,
8419
8993
  * fungible/token transfers via the optional `token` parameter.
8420
8994
  *
8995
+ * @example
8996
+ * ```ts
8997
+ * const { transactionHash } = await transferAmount({
8998
+ * walletAccount: wallets[0],
8999
+ * amount: '0.1',
9000
+ * recipient: '0x1234...abcd',
9001
+ * });
9002
+ * ```
9003
+ *
8421
9004
  * @param params.walletAccount - The wallet account to transfer from.
8422
9005
  * @param params.amount - The amount to transfer as a decimal string (e.g. "1.5").
8423
9006
  * @param params.recipient - The recipient address.
8424
- * @param params.token - Optional token info for non-native transfers.
9007
+ * @param [params.token] - Optional token info for non-native transfers.
8425
9008
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
8426
9009
  * @returns A promise that resolves to an object containing the transaction hash.
8427
9010
  * @throws If the wallet provider does not support the transfer amount method.
9011
+ * @see getWalletAccounts
9012
+ * @see signMessage
8428
9013
  * @instrumented
8429
9014
  */
8430
9015
  const transferAmount = async ({ walletAccount, amount, recipient, token }, client = getDefaultClient()) => {
@@ -8459,9 +9044,18 @@ const __transferAmount_wrapped = instrumentFunction({
8459
9044
  * This function requires the user to sign a message to prove wallet ownership,
8460
9045
  * then transfers the wallet account to the current user's account.
8461
9046
  *
9047
+ * @example
9048
+ * ```ts
9049
+ * const walletAccount = await transferWalletAccount({
9050
+ * walletProviderKey: 'metamaskevm',
9051
+ * });
9052
+ * ```
9053
+ *
8462
9054
  * @param params.walletProviderKey - The key of the wallet provider of the wallet account to transfer.
8463
9055
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
8464
9056
  * @returns A promise that resolves to the transferred wallet account.
9057
+ * @see connectWithWalletProvider
9058
+ * @see verifyWalletAccount
8465
9059
  * @instrumented
8466
9060
  */
8467
9061
  const transferWalletAccount = async ({ walletProviderKey }, client = getDefaultClient()) => {
@@ -8494,10 +9088,20 @@ const __transferWalletAccount_wrapped = instrumentFunction({
8494
9088
  * This function searches through the current session's wallet accounts
8495
9089
  * to find one matching the specified address and chain.
8496
9090
  *
9091
+ * @example
9092
+ * ```ts
9093
+ * const account = getWalletAccountFromAddress({
9094
+ * address: '0x1234...abcd',
9095
+ * chain: 'EVM',
9096
+ * });
9097
+ * ```
9098
+ *
8497
9099
  * @param params.address - The wallet address to search for.
8498
9100
  * @param params.chain - The blockchain the wallet belongs to.
8499
9101
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
8500
9102
  * @returns The matching wallet account, or undefined if not found.
9103
+ * @see getWalletAccounts
9104
+ * @see isWalletAccountVerified
8501
9105
  * @notInstrumented
8502
9106
  */
8503
9107
  const getWalletAccountFromAddress = ({ address, chain }, client = getDefaultClient()) => {
@@ -8656,5 +9260,5 @@ const parseUserAgent = ({ userAgent }) => {
8656
9260
  assertPackageVersion(name, version);
8657
9261
 
8658
9262
  //#endregion
8659
- export { BaseError, CaptchaProviderEnum, CheckoutSessionTokenMissingError, ClientAlreadyInitializedError, DeeplinkConnectAndVerifyUnsupportedError, DeviceRegistrationIdentityMismatchError, FeeEstimationFailedError, FlowSessionTokenMissingError, GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES, InvalidDeviceRegistrationRedirectError, InvalidExternalAuthError, InvalidParamError, InvalidRedirectStorageStateError, InvalidSocialCallbackOriginError, JwtVerifiedCredentialFormatEnum, LinkCredentialError, MFAAction, MfaInvalidOtpError, MfaRateLimitedError, MissingRedirectStorageStateError, MissingSocialUrlParamError, MissingUserVerificationError, NetworkAddingUnavailableError, NetworkNotAddedError, NetworkSwitchingUnavailableError, NoAddressFoundError, NoNetworkProvidersError, NoPasskeyCredentialsFoundError, NoSmartWalletAccountSignerFoundError, NoWebAuthNSupportError, NotWaasWalletAccountError, ProviderEnum, SandboxMaximumThresholdReachedError, SimulationFailedError, TokenScope, TokenSwapError, UnauthorizedError, UnavailableInServerSideError, UnrecognizedNetworkError, UserCancelledSocialPopUpError, UserNotAuthenticatedError, UserRejectedError, WaasOnboardingIncompleteError, WalletAccountAlreadyVerifiedError, WalletAccountNotSelectedError, WalletAlreadyLinkedToAnotherUserError, WalletProviderMethodUnavailableError, WalletScreeningBlockedError, __acknowledgeRecoveryCodes_wrapped as acknowledgeRecoveryCodes, addCoinbaseOnrampOrderEventListener, __addNetwork_wrapped as addNetwork, appendConnectionUriToDeeplink, assertWalletAccountSigningAvailability, assertWalletProviderMethodDefined, __attachCheckoutTransactionSource_wrapped as attachCheckoutTransactionSource, __attachFlowSource_wrapped as attachFlowSource, authenticateMfaRecoveryCode, authenticatePasskeyMFA, authenticateTotpMfaDevice, __authenticateWithSocial_wrapped as authenticateWithSocial, __broadcastCheckoutTransaction_wrapped as broadcastCheckoutTransaction, __broadcastFlow_wrapped as broadcastFlow, canConnectWithHardwareWallet, __cancelCheckoutTransaction_wrapped as cancelCheckoutTransaction, __cancelFlow_wrapped as cancelFlow, __checkStepUpAuth_wrapped as checkStepUpAuth, __completeDeviceRegistration_wrapped as completeDeviceRegistration, __completeSocialAuthentication_wrapped as completeSocialAuthentication, __completeSocialRedirect_wrapped as completeSocialRedirect, __confirmTransaction_wrapped as confirmTransaction, __connectAndVerifyWithWalletProvider_wrapped as connectAndVerifyWithWalletProvider, __connectWithWalletProvider_wrapped as connectWithWalletProvider, __consumeMfaToken_wrapped as consumeMfaToken, __createCheckoutTransaction_wrapped as createCheckoutTransaction, __createCoinbaseOnrampOrder_wrapped as createCoinbaseOnrampOrder, __createCryptoDotComPayment_wrapped as createCryptoDotComPayment, __createDynamicClient_wrapped as createDynamicClient, createKrakenExchangeTransfer, __createNewMfaRecoveryCodes_wrapped as createNewMfaRecoveryCodes, __deleteMfaDevice_wrapped as deleteMfaDevice, __deletePasskey_wrapped as deletePasskey, __deleteUser_wrapped as deleteUser, detectDeviceRegistrationRedirect, detectOAuthRedirect, detectSocialRedirectUrl, excludeInstalledFromCatalog, __executeSwapTransaction_wrapped as executeSwapTransaction, fetchProjectSettings, findMissingGoogleDriveBackupScopes, getActiveNetworkData, getActiveNetworkId, getAvailableWalletProvidersData, getBalance, getBalanceForAddress, getBalances, getCaptchaSettings, getCheckoutTransaction, getCheckoutTransactionQuote, getCoinbaseBuyUrl, getConnectedAddresses, getDefaultClient, getDeviceRegistrationTokenFromUrl, getElevatedAccessToken, getFlow, getFlowQuote, __getGoogleDriveBackupReadiness_wrapped as getGoogleDriveBackupReadiness, getInstallationLinkForCurrentPlatform, getKrakenAccounts, getKrakenWhitelistedAddresses, getMfaDevices, getMfaMethods, getMfaRecoveryCodes, getMissingVerificationForCoinbaseOnrampOrder, __getMoonPayCurrencies_wrapped as getMoonPayCurrencies, __getMoonPayUrl_wrapped as getMoonPayUrl, getMultichainBalances, getMultichainTokenBalances, getNativeBalance, getNetworksData, getOwnerWalletAccountForSmartWalletAccount, getPasskeys, getPrimaryWalletAccount, getRegisteredDevices, getSwapQuote, getSwapStatus, getTokenBalances, getTransactionHistory, getUserSocialAccounts, getWalletAccountAddressByType, getWalletAccountFromAddress, getWalletAccounts, getWalletConnectCatalog, getWalletConnectCatalogWalletByWalletProviderKey, getWalletOptionsCatalogue, getWalletProviderDataByKey, hasAllGoogleDriveBackupScopes, hasExtension, __initializeClient_wrapped as initializeClient, isAnyWalletAccountConnected, isCaptchaRequired, isDeeplinkWalletProvider, isDeviceRegistrationRequired, isHardwareWalletAccount, isInsufficientGoogleDriveScopesError, isMfaRequiredForAction, isMobile, isPendingRecoveryCodesAcknowledgment, isProgrammaticNetworkSwitchAvailable, isSignedIn, isUserMissingMfaAuth, isUserOnboardingComplete, isWalletAccountVerified, logout, matchWalletProvidersToCatalogGroup, offEvent, offWalletProviderEvent, onEvent, onWalletProviderEvent, onceEvent, parseUserAgent, __prepareCheckoutTransaction_wrapped as prepareCheckoutTransaction, __prepareFlowSigning_wrapped as prepareFlowSigning, __proveWalletAccountOwnership_wrapped as proveWalletAccountOwnership, __refreshAuth_wrapped as refreshAuth, __refreshUser_wrapped as refreshUser, __registerPasskey_wrapped as registerPasskey, __registerTotpMfaDevice_wrapped as registerTotpMfaDevice, __removeWalletAccount_wrapped as removeWalletAccount, __requestExternalAuthElevatedToken_wrapped as requestExternalAuthElevatedToken, requiresConversion, __revokeAllRegisteredDevices_wrapped as revokeAllRegisteredDevices, __revokeRegisteredDevice_wrapped as revokeRegisteredDevice, __selectPrimaryWalletAccount_wrapped as selectPrimaryWalletAccount, __sendEmailOTP_wrapped as sendEmailOTP, __sendSmsOTP_wrapped as sendSmsOTP, __setCaptchaToken_wrapped as setCaptchaToken, __setDefaultMfaDevice_wrapped as setDefaultMfaDevice, __setInstrumentationEnabled_wrapped as setInstrumentationEnabled, __signInWithExternalJwt_wrapped as signInWithExternalJwt, __signInWithPasskey_wrapped as signInWithPasskey, __signInWithSocialPopUp_wrapped as signInWithSocialPopUp, __signInWithSocialRedirect_wrapped as signInWithSocialRedirect, __signMessage_wrapped as signMessage, __submitCheckoutTransaction_wrapped as submitCheckoutTransaction, __submitFlowTransaction_wrapped as submitFlowTransaction, supportedCountries, __switchActiveNetwork_wrapped as switchActiveNetwork, trackCheckoutTransaction, __transferAmount_wrapped as transferAmount, __transferWalletAccount_wrapped as transferWalletAccount, __unlinkSocialAccount_wrapped as unlinkSocialAccount, __updateUser_wrapped as updateUser, __verifyOTP_wrapped as verifyOTP, __verifyWalletAccount_wrapped as verifyWalletAccount, waitForClientInitialized };
9263
+ export { BaseError, CaptchaProviderEnum, CheckoutSessionTokenMissingError, ClientAlreadyInitializedError, DeeplinkConnectAndVerifyUnsupportedError, DeviceRegistrationIdentityMismatchError, FeeEstimationFailedError, FlowSessionTokenMissingError, GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES, InvalidDeviceRegistrationRedirectError, InvalidExternalAuthError, InvalidParamError, InvalidRedirectStorageStateError, InvalidSocialCallbackOriginError, JwtVerifiedCredentialFormatEnum, LinkCredentialError, MFAAction, MergeAccountsConfirmationError, MfaInvalidOtpError, MfaRateLimitedError, MissingRedirectStorageStateError, MissingSocialUrlParamError, MissingUserVerificationError, NetworkAddingUnavailableError, NetworkNotAddedError, NetworkSwitchingUnavailableError, NoAddressFoundError, NoNetworkProvidersError, NoPasskeyCredentialsFoundError, NoSmartWalletAccountSignerFoundError, NoWebAuthNSupportError, NotWaasWalletAccountError, ProviderEnum, SandboxMaximumThresholdReachedError, SimulationFailedError, TokenScope, TokenSwapError, UnauthorizedError, UnavailableInServerSideError, UnrecognizedNetworkError, UserCancelledSocialPopUpError, UserNotAuthenticatedError, UserRejectedError, WaasOnboardingIncompleteError, WalletAccountAlreadyVerifiedError, WalletAccountNotSelectedError, WalletAlreadyLinkedToAnotherUserError, WalletProviderMethodUnavailableError, WalletScreeningBlockedError, __acknowledgeRecoveryCodes_wrapped as acknowledgeRecoveryCodes, addCoinbaseOnrampOrderEventListener, __addNetwork_wrapped as addNetwork, appendConnectionUriToDeeplink, assertWalletAccountSigningAvailability, assertWalletProviderMethodDefined, __attachCheckoutTransactionSource_wrapped as attachCheckoutTransactionSource, __attachFlowSource_wrapped as attachFlowSource, authenticateMfaRecoveryCode, authenticatePasskeyMFA, authenticateTotpMfaDevice, __authenticateWithSocial_wrapped as authenticateWithSocial, __broadcastCheckoutTransaction_wrapped as broadcastCheckoutTransaction, __broadcastFlow_wrapped as broadcastFlow, canConnectWithHardwareWallet, __cancelCheckoutTransaction_wrapped as cancelCheckoutTransaction, __cancelFlow_wrapped as cancelFlow, __checkStepUpAuth_wrapped as checkStepUpAuth, checkUserScopes, clearDeviceRegistrationRedirectParams, clearSocialRedirectParams, __completeDeviceRegistration_wrapped as completeDeviceRegistration, __completeSocialAuthentication_wrapped as completeSocialAuthentication, __completeSocialRedirect_wrapped as completeSocialRedirect, __confirmTransaction_wrapped as confirmTransaction, __connectAndVerifyWithWalletProvider_wrapped as connectAndVerifyWithWalletProvider, __connectWithWalletProvider_wrapped as connectWithWalletProvider, __consumeMfaToken_wrapped as consumeMfaToken, __createCheckoutTransaction_wrapped as createCheckoutTransaction, __createCoinbaseOnrampOrder_wrapped as createCoinbaseOnrampOrder, __createCryptoDotComPayment_wrapped as createCryptoDotComPayment, __createDynamicClient_wrapped as createDynamicClient, createKrakenExchangeTransfer, __createNewMfaRecoveryCodes_wrapped as createNewMfaRecoveryCodes, __deleteMfaDevice_wrapped as deleteMfaDevice, __deletePasskey_wrapped as deletePasskey, __deleteUser_wrapped as deleteUser, detectDeviceRegistrationRedirect, detectOAuthRedirect, detectSocialRedirectUrl, excludeInstalledFromCatalog, __executeSwapTransaction_wrapped as executeSwapTransaction, fetchProjectSettings, findMissingGoogleDriveBackupScopes, getActiveNetworkData, getActiveNetworkId, getAvailableWalletProvidersData, getBalance, getBalanceForAddress, getBalances, getCaptchaSettings, getCheckoutTransaction, getCheckoutTransactionQuote, getCoinbaseBuyUrl, getConnectedAddresses, getDefaultClient, getDeviceRegistrationTokenFromUrl, getElevatedAccessToken, getFlow, getFlowQuote, __getGoogleDriveBackupReadiness_wrapped as getGoogleDriveBackupReadiness, getInstallationLinkForCurrentPlatform, getKrakenAccounts, getKrakenWhitelistedAddresses, getMfaDevices, getMfaMethods, getMfaRecoveryCodes, getMissingVerificationForCoinbaseOnrampOrder, __getMoonPayCurrencies_wrapped as getMoonPayCurrencies, __getMoonPayUrl_wrapped as getMoonPayUrl, getMultichainBalances, getMultichainTokenBalances, getNativeBalance, getNetworksData, getOwnerWalletAccountForSmartWalletAccount, getPasskeys, getPrimaryWalletAccount, getRegisteredDevices, getSelectedWalletAccount, getSwapQuote, getSwapStatus, getTokenBalances, getTransactionHistory, getUserSocialAccounts, getWalletAccountAddressByType, getWalletAccountFromAddress, getWalletAccounts, getWalletConnectCatalog, getWalletConnectCatalogWalletByWalletProviderKey, getWalletOptionsCatalogue, getWalletProviderDataByKey, hasAllGoogleDriveBackupScopes, hasExtension, __initializeClient_wrapped as initializeClient, isAnyWalletAccountConnected, isCaptchaRequired, isDeeplinkWalletProvider, isDeviceRegistrationRequired, isHardwareWalletAccount, isInsufficientGoogleDriveScopesError, isMfaRequiredForAction, isMobile, isPendingRecoveryCodesAcknowledgment, isProgrammaticNetworkSwitchAvailable, isSignedIn, isUserMissingMfaAuth, isUserOnboardingComplete, isWalletAccountVerified, logout, matchWalletProvidersToCatalogGroup, mergeUserAccounts, offEvent, offWalletProviderEvent, onEvent, onWalletProviderEvent, onceEvent, parseUserAgent, __prepareCheckoutTransaction_wrapped as prepareCheckoutTransaction, __prepareFlowSigning_wrapped as prepareFlowSigning, __proveWalletAccountOwnership_wrapped as proveWalletAccountOwnership, __refreshAuth_wrapped as refreshAuth, __refreshUser_wrapped as refreshUser, __registerPasskey_wrapped as registerPasskey, __registerTotpMfaDevice_wrapped as registerTotpMfaDevice, __removeWalletAccount_wrapped as removeWalletAccount, __requestExternalAuthElevatedToken_wrapped as requestExternalAuthElevatedToken, requiresConversion, __revokeAllRegisteredDevices_wrapped as revokeAllRegisteredDevices, __revokeRegisteredDevice_wrapped as revokeRegisteredDevice, __selectPrimaryWalletAccount_wrapped as selectPrimaryWalletAccount, __sendEmailOTP_wrapped as sendEmailOTP, __sendSmsOTP_wrapped as sendSmsOTP, __setCaptchaToken_wrapped as setCaptchaToken, __setDefaultMfaDevice_wrapped as setDefaultMfaDevice, __setInstrumentationEnabled_wrapped as setInstrumentationEnabled, __setSelectedWalletAccount_wrapped as setSelectedWalletAccount, __signInWithExternalJwt_wrapped as signInWithExternalJwt, __signInWithPasskey_wrapped as signInWithPasskey, __signInWithSocialPopUp_wrapped as signInWithSocialPopUp, __signInWithSocialRedirect_wrapped as signInWithSocialRedirect, __signMessage_wrapped as signMessage, __submitCheckoutTransaction_wrapped as submitCheckoutTransaction, __submitFlowTransaction_wrapped as submitFlowTransaction, supportedCountries, __switchActiveNetwork_wrapped as switchActiveNetwork, trackCheckoutTransaction, __transferAmount_wrapped as transferAmount, __transferWalletAccount_wrapped as transferWalletAccount, __unlinkSocialAccount_wrapped as unlinkSocialAccount, __updateUser_wrapped as updateUser, __verifyOTP_wrapped as verifyOTP, __verifyWalletAccount_wrapped as verifyWalletAccount, waitForClientInitialized };
8660
9264
  //# sourceMappingURL=index.native.esm.js.map