@dynamic-labs-sdk/client 1.17.1 → 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 (319) 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 +7 -5
  6. package/dist/core.cjs.map +1 -1
  7. package/dist/core.esm.js +6 -6
  8. package/dist/core.esm.js.map +1 -1
  9. package/dist/core.native.esm.js +6 -6
  10. package/dist/core.native.esm.js.map +1 -1
  11. package/dist/errors/APIError/APIError.d.ts +11 -1
  12. package/dist/errors/APIError/APIError.d.ts.map +1 -1
  13. package/dist/errors/DeviceRegistrationIdentityMismatchError.d.ts +26 -0
  14. package/dist/errors/DeviceRegistrationIdentityMismatchError.d.ts.map +1 -0
  15. package/dist/errors/MergeAccountsConfirmationError.d.ts +49 -0
  16. package/dist/errors/MergeAccountsConfirmationError.d.ts.map +1 -0
  17. package/dist/errors/UnsafeDeeplinkUrlError.d.ts +17 -0
  18. package/dist/errors/UnsafeDeeplinkUrlError.d.ts.map +1 -0
  19. package/dist/errors/UnsafeNavigationUrlError.d.ts +16 -0
  20. package/dist/errors/UnsafeNavigationUrlError.d.ts.map +1 -0
  21. package/dist/errors/WalletScreeningBlockedError.d.ts +27 -0
  22. package/dist/errors/WalletScreeningBlockedError.d.ts.map +1 -0
  23. package/dist/exports/core.d.ts +4 -0
  24. package/dist/exports/core.d.ts.map +1 -1
  25. package/dist/exports/index.d.ts +18 -3
  26. package/dist/exports/index.d.ts.map +1 -1
  27. package/dist/exports/waas.d.ts +2 -0
  28. package/dist/exports/waas.d.ts.map +1 -1
  29. package/dist/{getNetworkProviderFromNetworkId-CS4r9hi7.cjs → getNetworkProviderFromNetworkId-BJX2AMGR.cjs} +190 -19
  30. package/dist/getNetworkProviderFromNetworkId-BJX2AMGR.cjs.map +1 -0
  31. package/dist/{getNetworkProviderFromNetworkId-Bfg-NkNJ.native.esm.js → getNetworkProviderFromNetworkId-Bsv12Q6B.native.esm.js} +165 -10
  32. package/dist/getNetworkProviderFromNetworkId-Bsv12Q6B.native.esm.js.map +1 -0
  33. package/dist/{getNetworkProviderFromNetworkId-pknqqhk1.esm.js → getNetworkProviderFromNetworkId-D3uwhdMN.esm.js} +166 -19
  34. package/dist/getNetworkProviderFromNetworkId-D3uwhdMN.esm.js.map +1 -0
  35. package/dist/{getSignedSessionId-cMGkmojJ.cjs → getSignedSessionId-BIZJGg61.cjs} +3 -3
  36. package/dist/{getSignedSessionId-cMGkmojJ.cjs.map → getSignedSessionId-BIZJGg61.cjs.map} +1 -1
  37. package/dist/{getSignedSessionId-CUw7LJ35.esm.js → getSignedSessionId-CnSAMO3P.esm.js} +3 -3
  38. package/dist/{getSignedSessionId-CUw7LJ35.esm.js.map → getSignedSessionId-CnSAMO3P.esm.js.map} +1 -1
  39. package/dist/{getSignedSessionId-Cl3PEqa8.native.esm.js → getSignedSessionId-DXDi7NkE.native.esm.js} +3 -3
  40. package/dist/{getSignedSessionId-Cl3PEqa8.native.esm.js.map → getSignedSessionId-DXDi7NkE.native.esm.js.map} +1 -1
  41. package/dist/{getWalletProviderByKey-CP9Te5Sz.cjs → getWalletProviderByKey-C6aS7KgD.cjs} +2 -2
  42. package/dist/{getWalletProviderByKey-CP9Te5Sz.cjs.map → getWalletProviderByKey-C6aS7KgD.cjs.map} +1 -1
  43. package/dist/{getWalletProviderByKey-lQVfIGFi.esm.js → getWalletProviderByKey-Cr8m-Nax.esm.js} +2 -2
  44. package/dist/{getWalletProviderByKey-lQVfIGFi.esm.js.map → getWalletProviderByKey-Cr8m-Nax.esm.js.map} +1 -1
  45. package/dist/{getWalletProviderByKey-24co0tBE.native.esm.js → getWalletProviderByKey-DVk2t98D.native.esm.js} +2 -2
  46. package/dist/{getWalletProviderByKey-24co0tBE.native.esm.js.map → getWalletProviderByKey-DVk2t98D.native.esm.js.map} +1 -1
  47. package/dist/index.cjs +950 -111
  48. package/dist/index.cjs.map +1 -1
  49. package/dist/index.esm.js +940 -112
  50. package/dist/index.esm.js.map +1 -1
  51. package/dist/index.native.esm.js +867 -111
  52. package/dist/index.native.esm.js.map +1 -1
  53. package/dist/{isDynamicWaasEnabled-BwP1oowd.cjs → isDynamicWaasEnabled-BawttOeb.cjs} +21 -9
  54. package/dist/isDynamicWaasEnabled-BawttOeb.cjs.map +1 -0
  55. package/dist/{isDynamicWaasEnabled-BYaqAOml.esm.js → isDynamicWaasEnabled-DDrg89y1.esm.js} +20 -8
  56. package/dist/isDynamicWaasEnabled-DDrg89y1.esm.js.map +1 -0
  57. package/dist/{isDynamicWaasEnabled-BXe0VyI4.native.esm.js → isDynamicWaasEnabled-Dj_sLoBO.native.esm.js} +20 -8
  58. package/dist/isDynamicWaasEnabled-Dj_sLoBO.native.esm.js.map +1 -0
  59. package/dist/{isMfaRequiredForAction-Btejc5g3.cjs → isMfaRequiredForAction-BuvyBN_r.cjs} +21 -6
  60. package/dist/isMfaRequiredForAction-BuvyBN_r.cjs.map +1 -0
  61. package/dist/{isMfaRequiredForAction-CqEcCTIe.esm.js → isMfaRequiredForAction-DTp4CZBt.esm.js} +21 -6
  62. package/dist/isMfaRequiredForAction-DTp4CZBt.esm.js.map +1 -0
  63. package/dist/{isMfaRequiredForAction-Demz9zlH.native.esm.js → isMfaRequiredForAction-EY-OQORc.native.esm.js} +3 -5
  64. package/dist/isMfaRequiredForAction-EY-OQORc.native.esm.js.map +1 -0
  65. package/dist/{isUserOnboardingComplete-C86NDY7I.cjs → isUserOnboardingComplete-CkyzRYrg.cjs} +14 -4
  66. package/dist/isUserOnboardingComplete-CkyzRYrg.cjs.map +1 -0
  67. package/dist/{isUserOnboardingComplete-CBrAH0ZF.esm.js → isUserOnboardingComplete-D3HrBYje.native.esm.js} +13 -3
  68. package/dist/isUserOnboardingComplete-D3HrBYje.native.esm.js.map +1 -0
  69. package/dist/{isUserOnboardingComplete-Cr-YTpcU.native.esm.js → isUserOnboardingComplete-Dy2Ygp0u.esm.js} +13 -3
  70. package/dist/isUserOnboardingComplete-Dy2Ygp0u.esm.js.map +1 -0
  71. package/dist/{migrateFromFireblocks-D-J6-gRo.native.esm.js → migrateFromFireblocks-B5qWGLCM.native.esm.js} +3 -3
  72. package/dist/{migrateFromFireblocks-D-J6-gRo.native.esm.js.map → migrateFromFireblocks-B5qWGLCM.native.esm.js.map} +1 -1
  73. package/dist/{migrateFromFireblocks-B_q8Oawb.cjs → migrateFromFireblocks-Dp-QA9hi.cjs} +3 -3
  74. package/dist/{migrateFromFireblocks-B_q8Oawb.cjs.map → migrateFromFireblocks-Dp-QA9hi.cjs.map} +1 -1
  75. package/dist/{migrateFromFireblocks-Bbx2wHZD.esm.js → migrateFromFireblocks-MAatsk_w.esm.js} +3 -3
  76. package/dist/{migrateFromFireblocks-Bbx2wHZD.esm.js.map → migrateFromFireblocks-MAatsk_w.esm.js.map} +1 -1
  77. package/dist/modules/apiClient/constants.d.ts +8 -0
  78. package/dist/modules/apiClient/constants.d.ts.map +1 -1
  79. package/dist/modules/apiClient/createApiClient.d.ts.map +1 -1
  80. package/dist/modules/auth/externalAuth/requestExternalAuthElevatedToken/requestExternalAuthElevatedToken.d.ts +0 -1
  81. package/dist/modules/auth/externalAuth/requestExternalAuthElevatedToken/requestExternalAuthElevatedToken.d.ts.map +1 -1
  82. package/dist/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.d.ts +11 -2
  83. package/dist/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.d.ts.map +1 -1
  84. package/dist/modules/auth/isSignedIn/isSignedIn.d.ts +9 -0
  85. package/dist/modules/auth/isSignedIn/isSignedIn.d.ts.map +1 -1
  86. package/dist/modules/auth/logout/logout.d.ts +13 -0
  87. package/dist/modules/auth/logout/logout.d.ts.map +1 -1
  88. package/dist/modules/auth/logoutWithReason/logoutWithReason.d.ts.map +1 -1
  89. package/dist/modules/auth/mergeUserAccounts/index.d.ts +3 -0
  90. package/dist/modules/auth/mergeUserAccounts/index.d.ts.map +1 -0
  91. package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.d.ts +62 -0
  92. package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.d.ts.map +1 -0
  93. package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.types.d.ts +78 -0
  94. package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.types.d.ts.map +1 -0
  95. package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts +7 -1
  96. package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts.map +1 -1
  97. package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts +9 -1
  98. package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts.map +1 -1
  99. package/dist/modules/auth/social/oauth/authenticateWithSocial/authenticateWithSocial.d.ts +8 -0
  100. package/dist/modules/auth/social/oauth/authenticateWithSocial/authenticateWithSocial.d.ts.map +1 -1
  101. package/dist/modules/auth/social/oauth/clearSocialRedirectParams/clearSocialRedirectParams.d.ts +34 -0
  102. package/dist/modules/auth/social/oauth/clearSocialRedirectParams/clearSocialRedirectParams.d.ts.map +1 -0
  103. package/dist/modules/auth/social/oauth/clearSocialRedirectParams/index.d.ts +2 -0
  104. package/dist/modules/auth/social/oauth/clearSocialRedirectParams/index.d.ts.map +1 -0
  105. package/dist/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.d.ts +11 -0
  106. package/dist/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.d.ts.map +1 -1
  107. package/dist/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.d.ts +0 -1
  108. package/dist/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.d.ts.map +1 -1
  109. package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.d.ts +12 -0
  110. package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.d.ts.map +1 -1
  111. package/dist/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/getOAuthBaseUrl/getOAuthBaseUrl.d.ts.map +1 -1
  112. package/dist/modules/auth/social/oauth/signInWithSocialRedirect/signInWithSocialRedirect.d.ts +10 -0
  113. package/dist/modules/auth/social/oauth/signInWithSocialRedirect/signInWithSocialRedirect.d.ts.map +1 -1
  114. package/dist/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.d.ts +0 -1
  115. package/dist/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.d.ts.map +1 -1
  116. package/dist/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.d.ts.map +1 -1
  117. package/dist/modules/captcha/CaptchaProviderEnum/CaptchaProviderEnum.d.ts +37 -0
  118. package/dist/modules/captcha/CaptchaProviderEnum/CaptchaProviderEnum.d.ts.map +1 -0
  119. package/dist/modules/captcha/getCaptchaSettings/getCaptchaSettings.d.ts +50 -0
  120. package/dist/modules/captcha/getCaptchaSettings/getCaptchaSettings.d.ts.map +1 -0
  121. package/dist/modules/captcha/getCaptchaSettings/getCaptchaSettings.types.d.ts +22 -0
  122. package/dist/modules/captcha/getCaptchaSettings/getCaptchaSettings.types.d.ts.map +1 -0
  123. package/dist/modules/captcha/getCaptchaSettings/index.d.ts +3 -0
  124. package/dist/modules/captcha/getCaptchaSettings/index.d.ts.map +1 -0
  125. package/dist/modules/captcha/isCaptchaRequired/isCaptchaRequired.d.ts.map +1 -1
  126. package/dist/modules/captcha/setCaptchaToken/setCaptchaToken.d.ts +0 -1
  127. package/dist/modules/captcha/setCaptchaToken/setCaptchaToken.d.ts.map +1 -1
  128. package/dist/modules/clientEvents/clientEvents.d.ts +34 -0
  129. package/dist/modules/clientEvents/clientEvents.d.ts.map +1 -1
  130. package/dist/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/clearDeviceRegistrationRedirectParams.d.ts +35 -0
  131. package/dist/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/clearDeviceRegistrationRedirectParams.d.ts.map +1 -0
  132. package/dist/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/index.d.ts +2 -0
  133. package/dist/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/index.d.ts.map +1 -0
  134. package/dist/modules/deviceRegistration/completeDeviceRegistration/completeDeviceRegistration.d.ts +8 -1
  135. package/dist/modules/deviceRegistration/completeDeviceRegistration/completeDeviceRegistration.d.ts.map +1 -1
  136. package/dist/modules/deviceRegistration/isDeviceRegistrationRequired/isDeviceRegistrationRequired.d.ts +1 -0
  137. package/dist/modules/deviceRegistration/isDeviceRegistrationRequired/isDeviceRegistrationRequired.d.ts.map +1 -1
  138. package/dist/modules/flow/attachFlowSource/attachFlowSource.instrumentation.d.ts +9 -0
  139. package/dist/modules/flow/attachFlowSource/attachFlowSource.instrumentation.d.ts.map +1 -0
  140. package/dist/modules/flow/broadcastFlow/broadcastFlow.instrumentation.d.ts +9 -0
  141. package/dist/modules/flow/broadcastFlow/broadcastFlow.instrumentation.d.ts.map +1 -0
  142. package/dist/modules/flow/cancelFlow/cancelFlow.d.ts +10 -3
  143. package/dist/modules/flow/cancelFlow/cancelFlow.d.ts.map +1 -1
  144. package/dist/modules/flow/cancelFlow/cancelFlow.instrumentation.d.ts +8 -0
  145. package/dist/modules/flow/cancelFlow/cancelFlow.instrumentation.d.ts.map +1 -0
  146. package/dist/modules/flow/getFlow/getFlow.d.ts +11 -3
  147. package/dist/modules/flow/getFlow/getFlow.d.ts.map +1 -1
  148. package/dist/modules/flow/getFlowQuote/getFlowQuote.d.ts +16 -3
  149. package/dist/modules/flow/getFlowQuote/getFlowQuote.d.ts.map +1 -1
  150. package/dist/modules/flow/prepareFlowSigning/prepareFlowSigning.instrumentation.d.ts +9 -0
  151. package/dist/modules/flow/prepareFlowSigning/prepareFlowSigning.instrumentation.d.ts.map +1 -0
  152. package/dist/modules/flow/submitFlowTransaction/submitFlowTransaction.instrumentation.d.ts +9 -0
  153. package/dist/modules/flow/submitFlowTransaction/submitFlowTransaction.instrumentation.d.ts.map +1 -0
  154. package/dist/modules/funding/moonpay/getMoonPayUrl/getMoonPayUrl.d.ts +0 -4
  155. package/dist/modules/funding/moonpay/getMoonPayUrl/getMoonPayUrl.d.ts.map +1 -1
  156. package/dist/modules/initializeClient/initializeClient.d.ts +16 -0
  157. package/dist/modules/initializeClient/initializeClient.d.ts.map +1 -1
  158. package/dist/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.d.ts +12 -2
  159. package/dist/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.d.ts.map +1 -1
  160. package/dist/modules/mfa/consumeMfaToken/consumeMfaToken.d.ts +0 -1
  161. package/dist/modules/mfa/consumeMfaToken/consumeMfaToken.d.ts.map +1 -1
  162. package/dist/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.d.ts +0 -1
  163. package/dist/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.d.ts.map +1 -1
  164. package/dist/modules/mfa/isPendingRecoveryCodesAcknowledgment/isPendingRecoveryCodesAcknowledgment.d.ts +1 -0
  165. package/dist/modules/mfa/isPendingRecoveryCodesAcknowledgment/isPendingRecoveryCodesAcknowledgment.d.ts.map +1 -1
  166. package/dist/modules/mfa/isUserMissingMfaAuth/isUserMissingMfaAuth.d.ts +1 -0
  167. package/dist/modules/mfa/isUserMissingMfaAuth/isUserMissingMfaAuth.d.ts.map +1 -1
  168. package/dist/modules/mfa/registerTotpMfaDevice/registerTotpMfaDevice.d.ts +0 -3
  169. package/dist/modules/mfa/registerTotpMfaDevice/registerTotpMfaDevice.d.ts.map +1 -1
  170. package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts +14 -1
  171. package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts.map +1 -1
  172. package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts +12 -1
  173. package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts.map +1 -1
  174. package/dist/modules/otp/verifyOTP/verifyOTP.d.ts +33 -2
  175. package/dist/modules/otp/verifyOTP/verifyOTP.d.ts.map +1 -1
  176. package/dist/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.d.ts +1 -1
  177. package/dist/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.d.ts.map +1 -1
  178. package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts +8 -0
  179. package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts.map +1 -1
  180. package/dist/modules/user/checkUserScopes/checkUserScopes.d.ts +28 -0
  181. package/dist/modules/user/checkUserScopes/checkUserScopes.d.ts.map +1 -0
  182. package/dist/modules/user/checkUserScopes/index.d.ts +2 -0
  183. package/dist/modules/user/checkUserScopes/index.d.ts.map +1 -0
  184. package/dist/modules/user/deleteUser/deleteUser.d.ts +8 -0
  185. package/dist/modules/user/deleteUser/deleteUser.d.ts.map +1 -1
  186. package/dist/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.d.ts +9 -1
  187. package/dist/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.d.ts.map +1 -1
  188. package/dist/modules/user/refreshAuth/refreshAuth.d.ts +17 -4
  189. package/dist/modules/user/refreshAuth/refreshAuth.d.ts.map +1 -1
  190. package/dist/modules/user/refreshUser/refreshUser.d.ts +16 -3
  191. package/dist/modules/user/refreshUser/refreshUser.d.ts.map +1 -1
  192. package/dist/modules/user/updateUser/updateUser.d.ts +0 -1
  193. package/dist/modules/user/updateUser/updateUser.d.ts.map +1 -1
  194. package/dist/modules/user/user.types.d.ts +9 -1
  195. package/dist/modules/user/user.types.d.ts.map +1 -1
  196. package/dist/modules/waas/getEmbeddedWalletsRequiringUpgrade/getEmbeddedWalletsRequiringUpgrade.d.ts +30 -0
  197. package/dist/modules/waas/getEmbeddedWalletsRequiringUpgrade/getEmbeddedWalletsRequiringUpgrade.d.ts.map +1 -0
  198. package/dist/modules/waas/getEmbeddedWalletsRequiringUpgrade/index.d.ts +2 -0
  199. package/dist/modules/waas/getEmbeddedWalletsRequiringUpgrade/index.d.ts.map +1 -0
  200. package/dist/modules/waas/hasEmbeddedWalletsRequiringUpgrade/hasEmbeddedWalletsRequiringUpgrade.d.ts +23 -0
  201. package/dist/modules/waas/hasEmbeddedWalletsRequiringUpgrade/hasEmbeddedWalletsRequiringUpgrade.d.ts.map +1 -0
  202. package/dist/modules/waas/hasEmbeddedWalletsRequiringUpgrade/index.d.ts +2 -0
  203. package/dist/modules/waas/hasEmbeddedWalletsRequiringUpgrade/index.d.ts.map +1 -0
  204. package/dist/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.d.ts +11 -1
  205. package/dist/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.d.ts.map +1 -1
  206. package/dist/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.d.ts +11 -3
  207. package/dist/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.d.ts.map +1 -1
  208. package/dist/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.d.ts +16 -3
  209. package/dist/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.d.ts.map +1 -1
  210. package/dist/modules/wallets/getConnectedAddresses/getConnectedAddresses.d.ts +9 -1
  211. package/dist/modules/wallets/getConnectedAddresses/getConnectedAddresses.d.ts.map +1 -1
  212. package/dist/modules/wallets/getWalletAccounts/getWalletAccounts.d.ts +11 -1
  213. package/dist/modules/wallets/getWalletAccounts/getWalletAccounts.d.ts.map +1 -1
  214. package/dist/modules/wallets/getWalletProviderDataByKey/getWalletProviderDataByKey.d.ts +2 -1
  215. package/dist/modules/wallets/getWalletProviderDataByKey/getWalletProviderDataByKey.d.ts.map +1 -1
  216. package/dist/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.d.ts +9 -0
  217. package/dist/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.d.ts.map +1 -1
  218. package/dist/modules/wallets/isWalletAccountVerified/isWalletAccountVerified.d.ts +10 -2
  219. package/dist/modules/wallets/isWalletAccountVerified/isWalletAccountVerified.d.ts.map +1 -1
  220. package/dist/modules/wallets/networks/getBalance/getBalance.d.ts +8 -0
  221. package/dist/modules/wallets/networks/getBalance/getBalance.d.ts.map +1 -1
  222. package/dist/modules/wallets/networks/getNativeBalance/getNativeBalance.d.ts +8 -0
  223. package/dist/modules/wallets/networks/getNativeBalance/getNativeBalance.d.ts.map +1 -1
  224. package/dist/modules/wallets/networks/switchActiveNetwork/switchActiveNetwork.d.ts +11 -1
  225. package/dist/modules/wallets/networks/switchActiveNetwork/switchActiveNetwork.d.ts.map +1 -1
  226. package/dist/modules/wallets/proveWalletAccountOwnership/proveWalletAccountOwnership.d.ts +10 -0
  227. package/dist/modules/wallets/proveWalletAccountOwnership/proveWalletAccountOwnership.d.ts.map +1 -1
  228. package/dist/modules/wallets/removeWalletAccount/removeWalletAccount.d.ts +9 -1
  229. package/dist/modules/wallets/removeWalletAccount/removeWalletAccount.d.ts.map +1 -1
  230. package/dist/modules/wallets/selectedWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts +24 -0
  231. package/dist/modules/wallets/selectedWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts.map +1 -0
  232. package/dist/modules/wallets/selectedWalletAccount/getPrimaryWalletAccount/index.d.ts.map +1 -0
  233. package/dist/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/getSelectedWalletAccount.d.ts +30 -0
  234. package/dist/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/getSelectedWalletAccount.d.ts.map +1 -0
  235. package/dist/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/index.d.ts +2 -0
  236. package/dist/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/index.d.ts.map +1 -0
  237. package/dist/modules/wallets/selectedWalletAccount/selectPrimaryWalletAccount/index.d.ts.map +1 -0
  238. package/dist/modules/wallets/selectedWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts +28 -0
  239. package/dist/modules/wallets/selectedWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts.map +1 -0
  240. package/dist/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/index.d.ts +2 -0
  241. package/dist/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/index.d.ts.map +1 -0
  242. package/dist/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/setSelectedWalletAccount.d.ts +34 -0
  243. package/dist/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/setSelectedWalletAccount.d.ts.map +1 -0
  244. package/dist/modules/wallets/signMessage/signMessage.d.ts +12 -1
  245. package/dist/modules/wallets/signMessage/signMessage.d.ts.map +1 -1
  246. package/dist/modules/wallets/transferAmount/transferAmount.d.ts +13 -2
  247. package/dist/modules/wallets/transferAmount/transferAmount.d.ts.map +1 -1
  248. package/dist/modules/wallets/transferWalletAccount/transferWalletAccount.d.ts +10 -1
  249. package/dist/modules/wallets/transferWalletAccount/transferWalletAccount.d.ts.map +1 -1
  250. package/dist/modules/wallets/utils/getWalletAccountFromAddress/getWalletAccountFromAddress.d.ts +11 -1
  251. package/dist/modules/wallets/utils/getWalletAccountFromAddress/getWalletAccountFromAddress.d.ts.map +1 -1
  252. package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts +3 -0
  253. package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts.map +1 -1
  254. package/dist/modules/wallets/verifyWalletAccount/verifyWalletAccount.d.ts +12 -1
  255. package/dist/modules/wallets/verifyWalletAccount/verifyWalletAccount.d.ts.map +1 -1
  256. package/dist/services/instrumentation/createInstrumentation/createInstrumentation.d.ts.map +1 -1
  257. package/dist/services/instrumentation/instrumentFunction/instrumentFunction.d.ts +40 -34
  258. package/dist/services/instrumentation/instrumentFunction/instrumentFunction.d.ts.map +1 -1
  259. package/dist/services/instrumentation/instrumentation.types.d.ts +50 -19
  260. package/dist/services/instrumentation/instrumentation.types.d.ts.map +1 -1
  261. package/dist/services/keychain/createKeychainService/createKeychainService.d.ts.map +1 -1
  262. package/dist/services/navigate/createNavigationHandler/createNavigationHandler.d.ts.map +1 -1
  263. package/dist/services/openDeeplink/createWebDeeplinkOpener/createWebDeeplinkOpener.d.ts.map +1 -1
  264. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  265. package/dist/{updateAuthFromVerifyResponse-D1w-Aw9P.native.esm.js → updateAuthFromVerifyResponse-DFjqCSu2.native.esm.js} +235 -159
  266. package/dist/updateAuthFromVerifyResponse-DFjqCSu2.native.esm.js.map +1 -0
  267. package/dist/{updateAuthFromVerifyResponse-azIi_3FB.esm.js → updateAuthFromVerifyResponse-_oYRLK_w.esm.js} +235 -159
  268. package/dist/updateAuthFromVerifyResponse-_oYRLK_w.esm.js.map +1 -0
  269. package/dist/{updateAuthFromVerifyResponse-CElYpi97.cjs → updateAuthFromVerifyResponse-pgYXvDvj.cjs} +241 -159
  270. package/dist/updateAuthFromVerifyResponse-pgYXvDvj.cjs.map +1 -0
  271. package/dist/utils/assertSafeDeeplinkUrl/assertSafeDeeplinkUrl.d.ts +12 -0
  272. package/dist/utils/assertSafeDeeplinkUrl/assertSafeDeeplinkUrl.d.ts.map +1 -0
  273. package/dist/utils/assertSafeDeeplinkUrl/index.d.ts +2 -0
  274. package/dist/utils/assertSafeDeeplinkUrl/index.d.ts.map +1 -0
  275. package/dist/utils/assertSafeNavigationUrl/assertSafeNavigationUrl.d.ts +12 -0
  276. package/dist/utils/assertSafeNavigationUrl/assertSafeNavigationUrl.d.ts.map +1 -0
  277. package/dist/utils/assertSafeNavigationUrl/index.d.ts +2 -0
  278. package/dist/utils/assertSafeNavigationUrl/index.d.ts.map +1 -0
  279. package/dist/utils/getSecureCookieAttribute/getSecureCookieAttribute.d.ts +18 -0
  280. package/dist/utils/getSecureCookieAttribute/getSecureCookieAttribute.d.ts.map +1 -0
  281. package/dist/utils/getSecureCookieAttribute/index.d.ts +2 -0
  282. package/dist/utils/getSecureCookieAttribute/index.d.ts.map +1 -0
  283. package/dist/waas.cjs +72 -5
  284. package/dist/waas.cjs.map +1 -1
  285. package/dist/waas.esm.js +70 -5
  286. package/dist/waas.esm.js.map +1 -1
  287. package/dist/waas.native.esm.js +70 -5
  288. package/dist/waas.native.esm.js.map +1 -1
  289. package/dist/waasCore.cjs +6 -6
  290. package/dist/waasCore.esm.js +6 -6
  291. package/dist/waasCore.native.esm.js +6 -6
  292. package/package.json +3 -3
  293. package/dist/getNetworkProviderFromNetworkId-Bfg-NkNJ.native.esm.js.map +0 -1
  294. package/dist/getNetworkProviderFromNetworkId-CS4r9hi7.cjs.map +0 -1
  295. package/dist/getNetworkProviderFromNetworkId-pknqqhk1.esm.js.map +0 -1
  296. package/dist/isDynamicWaasEnabled-BXe0VyI4.native.esm.js.map +0 -1
  297. package/dist/isDynamicWaasEnabled-BYaqAOml.esm.js.map +0 -1
  298. package/dist/isDynamicWaasEnabled-BwP1oowd.cjs.map +0 -1
  299. package/dist/isMfaRequiredForAction-Btejc5g3.cjs.map +0 -1
  300. package/dist/isMfaRequiredForAction-CqEcCTIe.esm.js.map +0 -1
  301. package/dist/isMfaRequiredForAction-Demz9zlH.native.esm.js.map +0 -1
  302. package/dist/isUserOnboardingComplete-C86NDY7I.cjs.map +0 -1
  303. package/dist/isUserOnboardingComplete-CBrAH0ZF.esm.js.map +0 -1
  304. package/dist/isUserOnboardingComplete-Cr-YTpcU.native.esm.js.map +0 -1
  305. package/dist/modules/wallets/primaryWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts +0 -10
  306. package/dist/modules/wallets/primaryWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts.map +0 -1
  307. package/dist/modules/wallets/primaryWalletAccount/getPrimaryWalletAccount/index.d.ts.map +0 -1
  308. package/dist/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/index.d.ts.map +0 -1
  309. package/dist/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts +0 -12
  310. package/dist/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts.map +0 -1
  311. package/dist/services/instrumentation/instrumentFunction/extractParams/extractParams.d.ts +0 -28
  312. package/dist/services/instrumentation/instrumentFunction/extractParams/extractParams.d.ts.map +0 -1
  313. package/dist/services/instrumentation/instrumentFunction/scrubResolvedValue/scrubResolvedValue.d.ts +0 -15
  314. package/dist/services/instrumentation/instrumentFunction/scrubResolvedValue/scrubResolvedValue.d.ts.map +0 -1
  315. package/dist/updateAuthFromVerifyResponse-CElYpi97.cjs.map +0 -1
  316. package/dist/updateAuthFromVerifyResponse-D1w-Aw9P.native.esm.js.map +0 -1
  317. package/dist/updateAuthFromVerifyResponse-azIi_3FB.esm.js.map +0 -1
  318. /package/dist/modules/wallets/{primaryWalletAccount → selectedWalletAccount}/getPrimaryWalletAccount/index.d.ts +0 -0
  319. /package/dist/modules/wallets/{primaryWalletAccount → selectedWalletAccount}/selectPrimaryWalletAccount/index.d.ts +0 -0
@@ -0,0 +1,30 @@
1
+ import type { WalletAccount } from '../../wallets/walletAccount';
2
+ /**
3
+ * Returns the current session's wallet accounts that are legacy Dynamic
4
+ * embedded wallets requiring an upgrade to Dynamic WaaS.
5
+ *
6
+ * These are earlier-generation Dynamic embedded wallets that predate Dynamic
7
+ * WaaS (the current TSS-MPC embedded wallet) and can be migrated to it. Use
8
+ * this when you need the accounts themselves — for example to show how many
9
+ * wallets can be upgraded and let the user act on them. It never returns
10
+ * already-upgraded Dynamic WaaS accounts. For a simple boolean "does this user
11
+ * have anything to upgrade?" check, use `hasEmbeddedWalletsRequiringUpgrade`
12
+ * instead.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const walletsRequiringUpgrade = getEmbeddedWalletsRequiringUpgrade();
17
+ * if (walletsRequiringUpgrade.length > 0) {
18
+ * showUpgradePrompt(
19
+ * `You have ${walletsRequiringUpgrade.length} wallet(s) that can be upgraded. Upgrade now?`
20
+ * );
21
+ * }
22
+ * ```
23
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
24
+ * @returns The wallet accounts requiring an upgrade to Dynamic WaaS (empty when none).
25
+ * @see hasEmbeddedWalletsRequiringUpgrade
26
+ * @see isWaasWalletAccount
27
+ * @notInstrumented
28
+ */
29
+ export declare const getEmbeddedWalletsRequiringUpgrade: (client?: import("../../../exports").DynamicClient) => WalletAccount[];
30
+ //# sourceMappingURL=getEmbeddedWalletsRequiringUpgrade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEmbeddedWalletsRequiringUpgrade.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/getEmbeddedWalletsRequiringUpgrade/getEmbeddedWalletsRequiringUpgrade.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAYjE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,kCAAkC,yDAE5C,aAAa,EAGb,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { getEmbeddedWalletsRequiringUpgrade } from './getEmbeddedWalletsRequiringUpgrade';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/getEmbeddedWalletsRequiringUpgrade/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Returns whether the current session has any legacy Dynamic embedded wallet
3
+ * that requires an upgrade to Dynamic WaaS.
4
+ *
5
+ * This is a boolean convenience over {@link getEmbeddedWalletsRequiringUpgrade}
6
+ * for the common case where you only need to decide whether to trigger the
7
+ * upgrade flow (e.g. show a prompt or redirect to a migration app) rather than
8
+ * act on the specific accounts.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * if (hasEmbeddedWalletsRequiringUpgrade()) {
13
+ * showUpgradeToWaasBanner();
14
+ * }
15
+ * ```
16
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
17
+ * @returns True when at least one wallet account requires an upgrade to Dynamic WaaS, false otherwise.
18
+ * @see getEmbeddedWalletsRequiringUpgrade
19
+ * @see isWaasWalletAccount
20
+ * @notInstrumented
21
+ */
22
+ export declare const hasEmbeddedWalletsRequiringUpgrade: (client?: import("../../../exports").DynamicClient) => boolean;
23
+ //# sourceMappingURL=hasEmbeddedWalletsRequiringUpgrade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasEmbeddedWalletsRequiringUpgrade.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/hasEmbeddedWalletsRequiringUpgrade/hasEmbeddedWalletsRequiringUpgrade.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,kCAAkC,yDAE5C,OAAgE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { hasEmbeddedWalletsRequiringUpgrade } from './hasEmbeddedWalletsRequiringUpgrade';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/hasEmbeddedWalletsRequiringUpgrade/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC"}
@@ -20,11 +20,21 @@ type ConnectAndVerifyWithWalletProviderParams = {
20
20
  * `verifyWalletAccount` separately from a new user gesture (e.g. a "Verify
21
21
  * Ownership" button).
22
22
  *
23
+ * @example
24
+ * ```ts
25
+ * const walletAccount = await connectAndVerifyWithWalletProvider({
26
+ * walletProviderKey: 'metamaskevm',
27
+ * });
28
+ * console.log('Verified address:', walletAccount.address);
29
+ * ```
30
+ *
23
31
  * @param params.walletProviderKey - The unique key identifying the wallet provider to connect to.
24
32
  * @param [params.hardwareWalletVendor] - The hardware wallet vendor, if connecting via a hardware wallet (e.g. 'ledger').
25
33
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
26
34
  * @returns A promise that resolves to the connected and verified wallet account.
27
- * @instrumented
35
+ * @see connectWithWalletProvider
36
+ * @see verifyWalletAccount
37
+ * @instrumented
28
38
  */
29
39
  export declare const connectAndVerifyWithWalletProvider: ({ walletProviderKey, hardwareWalletVendor }: ConnectAndVerifyWithWalletProviderParams, client?: import("../../../exports").DynamicClient) => Promise<import("../walletAccount").BaseWalletAccount<import("../../chain").Chain>>;
30
40
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"connectAndVerifyWithWalletProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAInF,KAAK,wCAAwC,GAAG;IAC9C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,kCAAkC,gDACA,wCAAwC,0IAuBtF,CAAC"}
1
+ {"version":3,"file":"connectAndVerifyWithWalletProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAInF,KAAK,wCAAwC,GAAG;IAC9C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,kCAAkC,gDACA,wCAAwC,0IAuBtF,CAAC"}
@@ -10,8 +10,14 @@ type ConnectWithWalletProviderParams = {
10
10
  *
11
11
  * Note: This function will not verify the wallet account, use the verifyWalletAccount function to do that
12
12
  * or connectAndVerifyWithWalletProvider to do that in a single step.
13
- * @see verifyWalletAccount
14
- * @see connectAndVerifyWithWalletProvider
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const walletAccount = await connectWithWalletProvider({
17
+ * walletProviderKey: 'metamaskevm',
18
+ * });
19
+ * console.log(walletAccount.address);
20
+ * ```
15
21
  *
16
22
  * @param params.walletProviderKey - The unique key identifying the wallet provider to connect to (e.g. 'metamaskevm', 'phantomsol').
17
23
  * @param [params.addToDynamicWalletAccounts] - Whether to add the connected wallet account to the user's wallet accounts. Defaults to true.
@@ -19,7 +25,9 @@ type ConnectWithWalletProviderParams = {
19
25
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
20
26
  * @returns A promise that resolves to the connected wallet account.
21
27
  * @throws NoAddressFoundError If the request to connect was successful but no address is connected to your app.
22
- * @instrumented
28
+ * @see verifyWalletAccount
29
+ * @see connectAndVerifyWithWalletProvider
30
+ * @instrumented
23
31
  */
24
32
  export declare const connectWithWalletProvider: ({ walletProviderKey, addToDynamicWalletAccounts, hardwareWalletVendor, }: ConnectWithWalletProviderParams, client?: import("../../../exports").DynamicClient) => Promise<WalletAccount>;
25
33
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"connectWithWalletProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAKnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,KAAK,+BAA+B,GAAG;IACrC,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,yBAAyB,6EAKjC,+BAA+B,wDAEjC,OAAO,CAAC,aAAa,CAqDvB,CAAC"}
1
+ {"version":3,"file":"connectWithWalletProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAKnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,KAAK,+BAA+B,GAAG;IACrC,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,yBAAyB,6EAKjC,+BAA+B,wDAEjC,OAAO,CAAC,aAAa,CAqDvB,CAAC"}
@@ -4,11 +4,24 @@ type DisconnectWalletAccountParams = {
4
4
  walletAccount: WalletAccount;
5
5
  };
6
6
  /**
7
- * This function disconnects the specified wallet account with the wallet provider.
7
+ * Disconnects the specified wallet account from its wallet provider.
8
8
  *
9
- * The wallet account is not removed from the user's profile or from dynamic's state,
9
+ * The wallet account is not removed from the user's profile or from Dynamic's state,
10
10
  * it is only responsible for terminating the connection with the wallet provider.
11
- * @notInstrumented
11
+ * Use `removeWalletAccount` to fully remove a wallet from the user's session.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const wallets = getWalletAccounts();
16
+ * await disconnectWalletAccount({ walletAccount: wallets[0] }, client);
17
+ * ```
18
+ *
19
+ * @param params.walletAccount - The wallet account to disconnect.
20
+ * @param client - The Dynamic client instance.
21
+ * @returns A promise that resolves when the wallet is disconnected from the provider.
22
+ * @see removeWalletAccount
23
+ * @see connectWithWalletProvider
24
+ * @notInstrumented
12
25
  */
13
26
  export declare const disconnectWalletAccount: ({ walletAccount }: DisconnectWalletAccountParams, client: DynamicClient) => Promise<void>;
14
27
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"disconnectWalletAccount.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,6BAA6B,GAAG;IACnC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,sBACf,6BAA6B,UACxC,aAAa,KACpB,OAAO,CAAC,IAAI,CAiBd,CAAC"}
1
+ {"version":3,"file":"disconnectWalletAccount.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,6BAA6B,GAAG;IACnC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,uBAAuB,sBACf,6BAA6B,UACxC,aAAa,KACpB,OAAO,CAAC,IAAI,CAiBd,CAAC"}
@@ -7,10 +7,18 @@ type GetConnectedAddressesParams = {
7
7
  * This function returns the list of wallet addresses that are currently
8
8
  * connected and available through the specified wallet provider.
9
9
  *
10
+ * @example
11
+ * ```ts
12
+ * const addresses = getConnectedAddresses({ walletProviderKey: 'metamaskevm' });
13
+ * console.log('Connected:', addresses);
14
+ * ```
15
+ *
10
16
  * @param params.walletProviderKey - The unique key of the wallet provider to query.
11
17
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
12
18
  * @returns An array of connected wallet addresses.
13
- * @notInstrumented
19
+ * @see connectWithWalletProvider
20
+ * @see getWalletAccounts
21
+ * @notInstrumented
14
22
  */
15
23
  export declare const getConnectedAddresses: ({ walletProviderKey }: GetConnectedAddressesParams, client?: import("../../../exports").DynamicClient) => Promise<{
16
24
  addresses: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"getConnectedAddresses.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/getConnectedAddresses/getConnectedAddresses.ts"],"names":[],"mappings":"AAGA,KAAK,2BAA2B,GAAG;IACjC,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,0BACT,2BAA2B;;EAMnD,CAAC"}
1
+ {"version":3,"file":"getConnectedAddresses.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/getConnectedAddresses/getConnectedAddresses.ts"],"names":[],"mappings":"AAGA,KAAK,2BAA2B,GAAG;IACjC,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,qBAAqB,0BACT,2BAA2B;;EAMnD,CAAC"}
@@ -7,9 +7,19 @@ import type { WalletAccount } from '../walletAccount';
7
7
  * You can differentiate between verified and unverified wallet accounts by
8
8
  * checking the `verifiedCredentialId` property.
9
9
  *
10
+ * @example
11
+ * ```ts
12
+ * const wallets = getWalletAccounts();
13
+ * const verified = wallets.filter((walletAccount) =>
14
+ * isWalletAccountVerified({ walletAccount }),
15
+ * );
16
+ * ```
17
+ *
10
18
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
11
19
  * @returns An array of wallet accounts associated with the session.
12
- * @notInstrumented
20
+ * @see isWalletAccountVerified
21
+ * @see verifyWalletAccount
22
+ * @notInstrumented
13
23
  * @hook Exposed as a hook so consumers get the reactive list of wallet accounts.
14
24
  */
15
25
  export declare const getWalletAccounts: (client?: import("../../../exports").DynamicClient) => WalletAccount[];
@@ -1 +1 @@
1
- {"version":3,"file":"getWalletAccounts.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/getWalletAccounts/getWalletAccounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB,yDAE3B,aAAa,EAKf,CAAC"}
1
+ {"version":3,"file":"getWalletAccounts.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/getWalletAccounts/getWalletAccounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,iBAAiB,yDAE3B,aAAa,EAKf,CAAC"}
@@ -8,7 +8,8 @@ type GetWalletProviderDataByKeyParams = {
8
8
  * @param params.walletProviderKey - The key of the wallet provider to retrieve data for.
9
9
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
10
10
  * @returns The data for the wallet provider.
11
- * @notInstrumented
11
+ * @notInstrumented
12
+ * @hook Exposed as a hook so consumers get reactive wallet provider data, updated when the wallet provider registry changes.
12
13
  */
13
14
  export declare const getWalletProviderDataByKey: ({ walletProviderKey }: GetWalletProviderDataByKeyParams, client?: import("../../../exports").DynamicClient) => WalletProviderData;
14
15
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"getWalletProviderDataByKey.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/getWalletProviderDataByKey/getWalletProviderDataByKey.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,KAAK,gCAAgC,GAAG;IACtC,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,0BACd,gCAAgC,wDAEtD,kBAKF,CAAC"}
1
+ {"version":3,"file":"getWalletProviderDataByKey.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/getWalletProviderDataByKey/getWalletProviderDataByKey.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,KAAK,gCAAgC,GAAG;IACtC,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,0BACd,gCAAgC,wDAEtD,kBAKF,CAAC"}
@@ -6,8 +6,17 @@
6
6
  * else your app considers "signed in" (e.g. `client.user`, completed onboarding,
7
7
  * a required embedded wallet, …).
8
8
  *
9
+ * @example
10
+ * ```ts
11
+ * if (isAnyWalletAccountConnected()) {
12
+ * console.log('At least one wallet is connected');
13
+ * }
14
+ * ```
15
+ *
9
16
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
10
17
  * @returns True if the session has at least one wallet account, false otherwise.
18
+ * @see getWalletAccounts
19
+ * @see isWalletAccountVerified
11
20
  * @notInstrumented
12
21
  */
13
22
  export declare const isAnyWalletAccountConnected: (client?: import("../../../exports").DynamicClient) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"isAnyWalletAccountConnected.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,2BAA2B,yDAErC,OAA+C,CAAC"}
1
+ {"version":3,"file":"isAnyWalletAccountConnected.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,2BAA2B,yDAErC,OAA+C,CAAC"}
@@ -5,9 +5,17 @@ type isWalletAccountVerifiedParams = {
5
5
  /**
6
6
  * Checks if a wallet account has been verified by a user.
7
7
  *
8
- * @param walletAccount - The wallet account to check.
8
+ * @example
9
+ * ```ts
10
+ * const wallets = getWalletAccounts();
11
+ * const verified = wallets.filter(w => isWalletAccountVerified({ walletAccount: w }));
12
+ * ```
13
+ *
14
+ * @param params.walletAccount - The wallet account to check.
9
15
  * @returns True if the wallet account has been verified, false otherwise.
10
- * @notInstrumented
16
+ * @see verifyWalletAccount
17
+ * @see getWalletAccounts
18
+ * @notInstrumented
11
19
  */
12
20
  export declare const isWalletAccountVerified: ({ walletAccount, }: isWalletAccountVerifiedParams) => boolean;
13
21
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"isWalletAccountVerified.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/isWalletAccountVerified/isWalletAccountVerified.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,6BAA6B,GAAG;IACnC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,uBAEjC,6BAA6B,YAE/B,CAAC"}
1
+ {"version":3,"file":"isWalletAccountVerified.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/isWalletAccountVerified/isWalletAccountVerified.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,6BAA6B,GAAG;IACnC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,uBAEjC,6BAA6B,YAE/B,CAAC"}
@@ -6,6 +6,14 @@ type GetBalanceParams = Parameters<typeof getNativeBalance>[0];
6
6
  * with the token-balance fetchers (`getTokenBalances` /
7
7
  * `getMultichainTokenBalances`).
8
8
  *
9
+ * @example
10
+ * ```ts
11
+ * // Prefer getNativeBalance instead
12
+ * const balance = await getNativeBalance({ walletAccount });
13
+ * ```
14
+ *
15
+ * @see getNativeBalance
16
+ * @see getMultichainBalances
9
17
  * @notInstrumented
10
18
  * @noHook Deprecated; the replacement is exposed via its own hook.
11
19
  */
@@ -1 +1 @@
1
- {"version":3,"file":"getBalance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getBalance/getBalance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/D;;;;;;;;GAQG;AAGH,eAAO,MAAM,UAAU,WACb,gBAAgB,2DAEvB,UAAU,CAAC,OAAO,gBAAgB,CAAqC,CAAC"}
1
+ {"version":3,"file":"getBalance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getBalance/getBalance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/D;;;;;;;;;;;;;;;;GAgBG;AAGH,eAAO,MAAM,UAAU,WACb,gBAAgB,2DAEvB,UAAU,CAAC,OAAO,gBAAgB,CAAqC,CAAC"}
@@ -12,9 +12,17 @@ type GetNativeBalanceParams = {
12
12
  * {@link getTokenBalances}; for a multi-chain portfolio snapshot, use
13
13
  * {@link getMultichainTokenBalances}.
14
14
  *
15
+ * @example
16
+ * ```ts
17
+ * const { balance } = await getNativeBalance({ walletAccount: wallets[0] });
18
+ * console.log('Native balance:', balance);
19
+ * ```
20
+ *
15
21
  * @param params.walletAccount - The wallet account to get the balance for.
16
22
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
17
23
  * @returns A promise that resolves to an object containing the balance as a string or null.
24
+ * @see getMultichainTokenBalances
25
+ * @see switchActiveNetwork
18
26
  * @notInstrumented
19
27
  */
20
28
  export declare const getNativeBalance: ({ walletAccount }: GetNativeBalanceParams, client?: import("../../../../exports").DynamicClient) => Promise<{
@@ -1 +1 @@
1
- {"version":3,"file":"getNativeBalance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getNativeBalance/getNativeBalance.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,KAAK,sBAAsB,GAAG;IAC5B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,sBACR,sBAAsB,2DAExC,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAgBpC,CAAC"}
1
+ {"version":3,"file":"getNativeBalance.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/getNativeBalance/getNativeBalance.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,KAAK,sBAAsB,GAAG;IAC5B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,gBAAgB,sBACR,sBAAsB,2DAExC,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAgBpC,CAAC"}
@@ -9,12 +9,22 @@ type SwitchActiveNetworkParams = {
9
9
  * This function programmatically changes the network
10
10
  * that the wallet is currently connected to.
11
11
  *
12
+ * @example
13
+ * ```ts
14
+ * await switchActiveNetwork({
15
+ * walletAccount: wallets[0],
16
+ * networkId: '137', // Polygon
17
+ * });
18
+ * ```
19
+ *
12
20
  * @param params.networkId - The identifier of the network to switch to. Should match the networkId of the network data.
13
21
  * @param params.walletAccount - The wallet account to switch networks for.
14
22
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
15
23
  * @returns A promise that resolves when the network switch is complete.
16
24
  * @throws NetworkSwitchingUnavailableError If the wallet provider doesn't support network switching.
17
- * @instrumented
25
+ * @see getNativeBalance
26
+ * @see isProgrammaticNetworkSwitchAvailable
27
+ * @instrumented
18
28
  */
19
29
  export declare const switchActiveNetwork: ({ networkId, walletAccount }: SwitchActiveNetworkParams, client?: import("../../../../exports").DynamicClient) => Promise<void>;
20
30
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"switchActiveNetwork.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/switchActiveNetwork/switchActiveNetwork.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,KAAK,yBAAyB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,mBAAmB,iCACA,yBAAyB,wEAmBxD,CAAC"}
1
+ {"version":3,"file":"switchActiveNetwork.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/networks/switchActiveNetwork/switchActiveNetwork.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,KAAK,yBAAyB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,mBAAmB,iCACA,yBAAyB,wEAmBxD,CAAC"}
@@ -8,9 +8,19 @@ type ProveWalletAccountOwnershipParams = {
8
8
  * This function generates a sign-in message and requires the user to sign it
9
9
  * with their wallet's private key, proving they control the wallet address.
10
10
  *
11
+ * @example
12
+ * ```ts
13
+ * const { messageToSign, signature } = await proveWalletAccountOwnership({
14
+ * walletAccount: wallets[0],
15
+ * });
16
+ * // Send signature to your backend for verification
17
+ * ```
18
+ *
11
19
  * @param params.walletAccount - The wallet account to prove ownership of.
12
20
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
13
21
  * @returns A promise that resolves to an object containing the message and signature.
22
+ * @see signMessage
23
+ * @see verifyWalletAccount
14
24
  * @instrumented
15
25
  */
16
26
  export declare const proveWalletAccountOwnership: ({ walletAccount }: ProveWalletAccountOwnershipParams, client?: import("../../../exports").DynamicClient) => Promise<{
@@ -1 +1 @@
1
- {"version":3,"file":"proveWalletAccountOwnership.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/proveWalletAccountOwnership/proveWalletAccountOwnership.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,iCAAiC,GAAG;IACvC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,2BAA2B,sBACnB,iCAAiC,wDAEnD,OAAO,CAAC;IACT,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB,CAqBA,CAAC"}
1
+ {"version":3,"file":"proveWalletAccountOwnership.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/proveWalletAccountOwnership/proveWalletAccountOwnership.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,iCAAiC,GAAG;IACvC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,2BAA2B,sBACnB,iCAAiC,wDAEnD,OAAO,CAAC;IACT,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB,CAqBA,CAAC"}
@@ -9,10 +9,18 @@ type RemoveWalletAccountParams = {
9
9
  * updating local state and server records (if there is an authenticated user).
10
10
  * For verified wallets, it will unlink them from the user's account.
11
11
  *
12
+ * @example
13
+ * ```ts
14
+ * const wallets = getWalletAccounts();
15
+ * await removeWalletAccount({ walletAccount: wallets[0] });
16
+ * ```
17
+ *
12
18
  * @param params.walletAccount - The wallet account to remove.
13
19
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
14
20
  * @returns A promise that resolves when the wallet account is successfully removed.
15
- * @instrumented
21
+ * @see getWalletAccounts
22
+ * @see disconnectWalletAccount
23
+ * @instrumented
16
24
  */
17
25
  export declare const removeWalletAccount: ({ walletAccount }: RemoveWalletAccountParams, client?: import("../../../exports").DynamicClient) => Promise<void>;
18
26
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"removeWalletAccount.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/removeWalletAccount/removeWalletAccount.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,yBAAyB,GAAG;IAC/B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,sBACX,yBAAyB,wDAE3C,OAAO,CAAC,IAAI,CAuBd,CAAC"}
1
+ {"version":3,"file":"removeWalletAccount.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/removeWalletAccount/removeWalletAccount.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,yBAAyB,GAAG;IAC/B,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,mBAAmB,sBACX,yBAAyB,wDAE3C,OAAO,CAAC,IAAI,CAuBd,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { WalletAccount } from '../../walletAccount';
2
+ /**
3
+ * Get the primary wallet account.
4
+ *
5
+ * @deprecated Renamed to `getSelectedWalletAccount`. The "primary wallet" naming was
6
+ * misleading — the SDK does not use or care about which wallet is selected; it
7
+ * only lets you *read* the user's most recently selected wallet. Migrate to
8
+ * `getSelectedWalletAccount`, and own your own wallet-selection state in your
9
+ * application rather than relying on the SDK's selected wallet.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const primary = getPrimaryWalletAccount();
14
+ * if (primary) {
15
+ * console.log('Primary wallet:', primary.address);
16
+ * }
17
+ * ```
18
+ *
19
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
20
+ * @returns The primary wallet account, or null if no wallet has been selected.
21
+ * @notInstrumented
22
+ */
23
+ export declare const getPrimaryWalletAccount: (client?: import("../../../../exports").DynamicClient) => WalletAccount | null;
24
+ //# sourceMappingURL=getPrimaryWalletAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPrimaryWalletAccount.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/selectedWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,uBAAuB,4DAEjC,aAAa,GAAG,IAAwC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/selectedWalletAccount/getPrimaryWalletAccount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { WalletAccount } from '../../walletAccount';
2
+ /**
3
+ * Get the wallet account currently selected for the user.
4
+ *
5
+ * The SDK itself does not use or care about which wallet is "selected" — it has
6
+ * no bearing on authentication, signing, or any other SDK behaviour. This is
7
+ * purely a convenience for *reading* which wallet the user most recently
8
+ * selected (derived from the backend `lastSelectedAt` timestamp, across both
9
+ * unverified and verified wallet accounts). Applications that need a notion of
10
+ * an active/current wallet should own that selection state themselves.
11
+ *
12
+ * The one exception is the wagmi integration (`@dynamic-labs-sdk/wagmi`), which
13
+ * mirrors the selected EVM wallet into wagmi's connector state.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const selected = getSelectedWalletAccount();
18
+ * if (selected) {
19
+ * console.log('Selected wallet:', selected.address);
20
+ * }
21
+ * ```
22
+ *
23
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
24
+ * @returns The selected wallet account, or null if no wallet has been selected.
25
+ * @see setSelectedWalletAccount
26
+ * @see getWalletAccounts
27
+ * @notInstrumented
28
+ */
29
+ export declare const getSelectedWalletAccount: (client?: import("../../../../exports").DynamicClient) => WalletAccount | null;
30
+ //# sourceMappingURL=getSelectedWalletAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSelectedWalletAccount.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/getSelectedWalletAccount.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,wBAAwB,4DAElC,aAAa,GAAG,IAmBlB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { getSelectedWalletAccount } from './getSelectedWalletAccount';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/selectedWalletAccount/selectPrimaryWalletAccount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,28 @@
1
+ import type { WalletAccount } from '../../walletAccount';
2
+ type SelectPrimaryWalletAccountParams = {
3
+ walletAccount: WalletAccount;
4
+ };
5
+ /**
6
+ * Make the wallet account provided as the primary wallet account.
7
+ *
8
+ * @deprecated Renamed to `setSelectedWalletAccount`. The "primary wallet" naming was
9
+ * misleading — the SDK does not use or care about which wallet is selected;
10
+ * this only records the selection so it can later be read back. Migrate to
11
+ * `setSelectedWalletAccount`, and own your own wallet-selection state in your
12
+ * application rather than relying on the SDK's selected wallet.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const wallets = getWalletAccounts();
17
+ * await selectPrimaryWalletAccount({ walletAccount: wallets[1] });
18
+ * ```
19
+ *
20
+ * @param params.walletAccount - The wallet account to set as primary.
21
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
22
+ * @returns A promise that resolves when the selection is persisted.
23
+ * @instrumented
24
+ * @noHook The selected-wallet concept is not exposed as a hook.
25
+ */
26
+ export declare const selectPrimaryWalletAccount: ({ walletAccount }: SelectPrimaryWalletAccountParams, client?: import("../../../../exports").DynamicClient) => Promise<void>;
27
+ export {};
28
+ //# sourceMappingURL=selectPrimaryWalletAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectPrimaryWalletAccount.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/selectedWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,KAAK,gCAAgC,GAAG;IACtC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,0BAA0B,sBAClB,gCAAgC,2DAElD,OAAO,CAAC,IAAI,CAAwD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { setSelectedWalletAccount } from './setSelectedWalletAccount';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,34 @@
1
+ import type { WalletAccount } from '../../walletAccount';
2
+ type SetSelectedWalletAccountParams = {
3
+ walletAccount: WalletAccount;
4
+ };
5
+ /**
6
+ * Set the wallet account that is currently selected for the user.
7
+ *
8
+ * The SDK itself does not use or care about which wallet is "selected" — this
9
+ * only records the selection (updating the backend `lastSelectedAt` and, for
10
+ * verified wallets, persisting it server-side) so it can later be read back via
11
+ * `getSelectedWalletAccount`. It has no bearing on authentication or signing.
12
+ * Applications that need a notion of an active/current wallet should own that
13
+ * selection state themselves.
14
+ *
15
+ * The one exception is the wagmi integration (`@dynamic-labs-sdk/wagmi`), which
16
+ * relies on the selected EVM wallet.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const wallets = getWalletAccounts();
21
+ * await setSelectedWalletAccount({ walletAccount: wallets[1] });
22
+ * ```
23
+ *
24
+ * @param params.walletAccount - The wallet account to mark as selected.
25
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
26
+ * @returns A promise that resolves when the selection is persisted.
27
+ * @see getSelectedWalletAccount
28
+ * @see getWalletAccounts
29
+ * @instrumented
30
+ * @noHook The selected-wallet concept is not exposed as a hook.
31
+ */
32
+ export declare const setSelectedWalletAccount: ({ walletAccount }: SetSelectedWalletAccountParams, client?: import("../../../../exports").DynamicClient) => Promise<void>;
33
+ export {};
34
+ //# sourceMappingURL=setSelectedWalletAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setSelectedWalletAccount.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/setSelectedWalletAccount.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,KAAK,8BAA8B,GAAG;IACpC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,wBAAwB,sBAChB,8BAA8B,2DAEhD,OAAO,CAAC,IAAI,CAiCd,CAAC"}