@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
@@ -4,11 +4,19 @@ export type GetFlowParams = {
4
4
  flowId: string;
5
5
  };
6
6
  /**
7
- * Fetches a flow by its ID
7
+ * Fetches a flow by its ID.
8
8
  *
9
- * @param params GetFlowParams - The parameters for fetching the flow.
9
+ * @example
10
+ * ```ts
11
+ * const flow = await getFlow({ flowId: 'flow-abc123' });
12
+ * console.log('Flow status:', flow.status);
13
+ * ```
14
+ *
15
+ * @param params.flowId - The unique identifier of the flow to fetch.
10
16
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
11
- * @returns The flow
17
+ * @returns A promise that resolves to the flow object.
18
+ * @see cancelFlow
19
+ * @see getFlowQuote
12
20
  * @notInstrumented
13
21
  */
14
22
  export declare const getFlow: ({ flowId }: GetFlowParams, client?: DynamicClient) => Promise<Flow>;
@@ -1 +1 @@
1
- {"version":3,"file":"getFlow.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/getFlow/getFlow.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,eACN,aAAa,WACjB,aAAa,KACpB,OAAO,CAAC,IAAI,CAQd,CAAC"}
1
+ {"version":3,"file":"getFlow.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/getFlow/getFlow.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,OAAO,eACN,aAAa,WACjB,aAAa,KACpB,OAAO,CAAC,IAAI,CAQd,CAAC"}
@@ -17,11 +17,24 @@ export type GetFlowQuoteParams = {
17
17
  slippage?: number;
18
18
  };
19
19
  /**
20
- * Fetches a quote for a flow
20
+ * Fetches a quote for a flow.
21
21
  *
22
- * @param params GetFlowQuoteParams - The quote parameters.
22
+ * @example
23
+ * ```ts
24
+ * const flow = await getFlowQuote({
25
+ * flowId: 'flow-abc123',
26
+ * slippage: 0.5,
27
+ * });
28
+ * ```
29
+ *
30
+ * @param params.flowId - The unique identifier of the flow.
31
+ * @param [params.fromChainId] - Optional chain ID overriding the one set at attachFlowSource time.
32
+ * @param [params.fromTokenAddress] - Optional token address (defaults to native token).
33
+ * @param [params.slippage] - Acceptable slippage percentage.
23
34
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
24
- * @returns The updated flow with quote data
35
+ * @returns A promise that resolves to the updated flow with quote data.
36
+ * @see getFlow
37
+ * @see cancelFlow
25
38
  * @notInstrumented
26
39
  */
27
40
  export declare const getFlowQuote: ({ flowId, fromChainId, fromTokenAddress, slippage }: GetFlowQuoteParams, client?: import("../../../exports").DynamicClient) => Promise<Flow>;
@@ -1 +1 @@
1
- {"version":3,"file":"getFlowQuote.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/getFlowQuote/getFlowQuote.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAI1C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,wDAC8B,kBAAkB,wDAEtE,OAAO,CAAC,IAAI,CAuBd,CAAC"}
1
+ {"version":3,"file":"getFlowQuote.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/getFlowQuote/getFlowQuote.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAI1C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,wDAC8B,kBAAkB,wDAEtE,OAAO,CAAC,IAAI,CAuBd,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { InstrumentationPayloadSelectors } from '../../../services/instrumentation/instrumentation.types';
2
+ import type { Flow } from '../flow.types';
3
+ /**
4
+ * Explicit instrumentation payload for prepareFlowSigning. Logs non-sensitive
5
+ * volume and routing dimensions only — never the wallet address or any
6
+ * session token.
7
+ */
8
+ export declare const prepareFlowSigningInstrumentation: InstrumentationPayloadSelectors<unknown[], Flow>;
9
+ //# sourceMappingURL=prepareFlowSigning.instrumentation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepareFlowSigning.instrumentation.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/prepareFlowSigning/prepareFlowSigning.instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,yDAAyD,CAAC;AAC/G,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,EAAE,+BAA+B,CAC7E,OAAO,EAAE,EACT,IAAI,CAUL,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { InstrumentationPayloadSelectors } from '../../../services/instrumentation/instrumentation.types';
2
+ import type { Flow } from '../flow.types';
3
+ /**
4
+ * Explicit instrumentation payload for submitFlowTransaction. Logs
5
+ * non-sensitive volume and routing dimensions only — never the wallet address
6
+ * or any session token — so executed flow volume is measurable.
7
+ */
8
+ export declare const submitFlowTransactionInstrumentation: InstrumentationPayloadSelectors<unknown[], Flow>;
9
+ //# sourceMappingURL=submitFlowTransaction.instrumentation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submitFlowTransaction.instrumentation.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/submitFlowTransaction/submitFlowTransaction.instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,yDAAyD,CAAC;AAC/G,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C;;;;GAIG;AACH,eAAO,MAAM,oCAAoC,EAAE,+BAA+B,CAChF,OAAO,EAAE,EACT,IAAI,CAUL,CAAC"}
@@ -10,10 +10,6 @@ import type { GetMoonPayUrlParams } from '../moonpay.types';
10
10
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
11
11
  * @returns The signed MoonPay URL.
12
12
  * @instrumented
13
- * @redact-params - the return is a bare signed onramp URL whose query string
14
- * carries the provider signature plus the user's wallet address; a bare-string
15
- * return is logged under the synthetic `result` key, which no key-based rule
16
- * covers, so redact the whole event.
17
13
  */
18
14
  export declare const getMoonPayUrl: (params: GetMoonPayUrlParams, client?: DynamicClient) => Promise<string>;
19
15
  //# sourceMappingURL=getMoonPayUrl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getMoonPayUrl.d.ts","sourceRoot":"","sources":["../../../../../src/modules/funding/moonpay/getMoonPayUrl/getMoonPayUrl.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAI9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,WAChB,mBAAmB,WACnB,aAAa,KACpB,OAAO,CAAC,MAAM,CAsChB,CAAC"}
1
+ {"version":3,"file":"getMoonPayUrl.d.ts","sourceRoot":"","sources":["../../../../../src/modules/funding/moonpay/getMoonPayUrl/getMoonPayUrl.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAI9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,WAChB,mBAAmB,WACnB,aAAa,KACpB,OAAO,CAAC,MAAM,CAsChB,CAAC"}
@@ -7,9 +7,25 @@
7
7
  *
8
8
  * You only need to call this function if you are not using `autoInitialize: true` in createDynamicClient.
9
9
  *
10
+ * @example
11
+ * ```ts
12
+ * const client = createDynamicClient({
13
+ * environmentId: 'env-id',
14
+ * autoInitialize: false,
15
+ * });
16
+ *
17
+ * try {
18
+ * await initializeClient(client);
19
+ * } catch (error) {
20
+ * console.error('Failed to initialize:', error);
21
+ * }
22
+ * ```
23
+ *
10
24
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
11
25
  * @returns A promise that resolves when initialization is complete.
12
26
  * @throws ClientAlreadyInitializedError If the client is already initialized.
27
+ * @see createDynamicClient
28
+ * @see waitForClientInitialized
13
29
  * @instrumented
14
30
  * @noHook Client lifecycle management is not exposed as a React hook.
15
31
  */
@@ -1 +1 @@
1
- {"version":3,"file":"initializeClient.d.ts","sourceRoot":"","sources":["../../../src/modules/initializeClient/initializeClient.ts"],"names":[],"mappings":"AAwBA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,mEAqK5B,CAAC"}
1
+ {"version":3,"file":"initializeClient.d.ts","sourceRoot":"","sources":["../../../src/modules/initializeClient/initializeClient.ts"],"names":[],"mappings":"AAwBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,gBAAgB,mEAqK5B,CAAC"}
@@ -2,8 +2,18 @@
2
2
  * Allows waiting until all modules of the client have been properly initialized
3
3
  * and are ready for use.
4
4
  *
5
- * @returns a promise that resolves once the client is fully initialized.
6
- * @notInstrumented
5
+ * @example
6
+ * ```ts
7
+ * const client = createDynamicClient({ environmentId: 'env-id' });
8
+ * await waitForClientInitialized(client);
9
+ * // Client is now fully ready
10
+ * ```
11
+ *
12
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
13
+ * @returns A promise that resolves once the client is fully initialized.
14
+ * @see initializeClient
15
+ * @see createDynamicClient
16
+ * @notInstrumented
7
17
  * @noHook Client lifecycle management is not exposed as a hook; use useInitStatus.
8
18
  */
9
19
  export declare const waitForClientInitialized: (client?: import("../../../exports").DynamicClient) => Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"waitForClientInitialized.d.ts","sourceRoot":"","sources":["../../../../src/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,sEAIpC,CAAC"}
1
+ {"version":3,"file":"waitForClientInitialized.d.ts","sourceRoot":"","sources":["../../../../src/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,wBAAwB,sEAIpC,CAAC"}
@@ -8,7 +8,6 @@
8
8
  * @returns The MFA token that was consumed.
9
9
  * @throws Error if no MFA token is found.
10
10
  * @instrumented
11
- * @redact-params
12
11
  */
13
12
  export declare const consumeMfaToken: (client?: import("../../../exports").DynamicClient) => string;
14
13
  //# sourceMappingURL=consumeMfaToken.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"consumeMfaToken.d.ts","sourceRoot":"","sources":["../../../../src/modules/mfa/consumeMfaToken/consumeMfaToken.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,+DAY3B,CAAC"}
1
+ {"version":3,"file":"consumeMfaToken.d.ts","sourceRoot":"","sources":["../../../../src/modules/mfa/consumeMfaToken/consumeMfaToken.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,+DAY3B,CAAC"}
@@ -7,7 +7,6 @@
7
7
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
8
8
  * @returns A promise that resolves to the newly generated recovery codes.
9
9
  * @instrumented
10
- * @redact-params
11
10
  */
12
11
  export declare const createNewMfaRecoveryCodes: (client?: import("../../../exports").DynamicClient) => Promise<import("@dynamic-labs/sdk-api-core").MFARegenRecoveryCodesResponse>;
13
12
  //# sourceMappingURL=createNewMfaRecoveryCodes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createNewMfaRecoveryCodes.d.ts","sourceRoot":"","sources":["../../../../src/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,oIASrC,CAAC"}
1
+ {"version":3,"file":"createNewMfaRecoveryCodes.d.ts","sourceRoot":"","sources":["../../../../src/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,oIASrC,CAAC"}
@@ -7,6 +7,7 @@
7
7
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
8
8
  * @returns True if recovery codes are pending acknowledgment, false otherwise.
9
9
  * @notInstrumented
10
+ * @hook Exposed as a hook so consumers reactively know when recovery codes await acknowledgment, updated when the user changes.
10
11
  */
11
12
  export declare const isPendingRecoveryCodesAcknowledgment: (client?: import("../../../exports").DynamicClient) => boolean;
12
13
  //# sourceMappingURL=isPendingRecoveryCodesAcknowledgment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isPendingRecoveryCodesAcknowledgment.d.ts","sourceRoot":"","sources":["../../../../src/modules/mfa/isPendingRecoveryCodesAcknowledgment/isPendingRecoveryCodesAcknowledgment.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,eAAO,MAAM,oCAAoC,gEAUhD,CAAC"}
1
+ {"version":3,"file":"isPendingRecoveryCodesAcknowledgment.d.ts","sourceRoot":"","sources":["../../../../src/modules/mfa/isPendingRecoveryCodesAcknowledgment/isPendingRecoveryCodesAcknowledgment.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oCAAoC,gEAUhD,CAAC"}
@@ -7,6 +7,7 @@
7
7
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
8
8
  * @returns True if the user needs additional MFA authentication, false otherwise.
9
9
  * @notInstrumented
10
+ * @hook Exposed as a hook so consumers reactively know when MFA is still required, updated when the user changes.
10
11
  */
11
12
  export declare const isUserMissingMfaAuth: (client?: import("../../../exports").DynamicClient) => boolean;
12
13
  //# sourceMappingURL=isUserMissingMfaAuth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isUserMissingMfaAuth.d.ts","sourceRoot":"","sources":["../../../../src/modules/mfa/isUserMissingMfaAuth/isUserMissingMfaAuth.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,gEAMhC,CAAC"}
1
+ {"version":3,"file":"isUserMissingMfaAuth.d.ts","sourceRoot":"","sources":["../../../../src/modules/mfa/isUserMissingMfaAuth/isUserMissingMfaAuth.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,gEAMhC,CAAC"}
@@ -8,9 +8,6 @@
8
8
  * @returns A promise that resolves to the TOTP registration response containing setup information,
9
9
  * like the secret key and the OTP Auth URI.
10
10
  * @instrumented
11
- * @redact-params - the response embeds the TOTP shared secret in both `secret`
12
- * and the `uri` (`otpauth://...?secret=...`); redact the whole event so the
13
- * seed never reaches logs via the un-keyed `uri` field.
14
11
  */
15
12
  export declare const registerTotpMfaDevice: (client?: import("../../../exports").DynamicClient) => Promise<import("@dynamic-labs/sdk-api-core").MFARegisterTotpDeviceGetResponse>;
16
13
  //# sourceMappingURL=registerTotpMfaDevice.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"registerTotpMfaDevice.d.ts","sourceRoot":"","sources":["../../../../src/modules/mfa/registerTotpMfaDevice/registerTotpMfaDevice.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB,uIAUjC,CAAC"}
1
+ {"version":3,"file":"registerTotpMfaDevice.d.ts","sourceRoot":"","sources":["../../../../src/modules/mfa/registerTotpMfaDevice/registerTotpMfaDevice.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,uIAUjC,CAAC"}
@@ -7,11 +7,24 @@ export type SendEmailOTPParams = {
7
7
  *
8
8
  * Once you have the OTP code, you should then use `verifyOTP` to verify it and complete the authentication process.
9
9
  *
10
+ * @example
11
+ * ```ts
12
+ * const { verificationUUID } = await sendEmailOTP({
13
+ * email: 'user@example.com',
14
+ * });
15
+ * // Then verify with the code the user received
16
+ * await verifyOTP({
17
+ * otpVerification: { email: 'user@example.com', verificationUUID },
18
+ * verificationToken: '123456',
19
+ * });
20
+ * ```
21
+ *
10
22
  * @param params.email - The email address to send the OTP to.
11
23
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
12
24
  * @returns A promise that resolves to an OTPVerification object containing the email and verification UUID.
25
+ * @see verifyOTP
26
+ * @see sendSmsOTP
13
27
  * @instrumented
14
- * @redact-params
15
28
  */
16
29
  export declare const sendEmailOTP: ({ email }: SendEmailOTPParams, client?: import("../../../exports").DynamicClient) => Promise<OTPVerification>;
17
30
  //# sourceMappingURL=sendEmailOTP.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendEmailOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/sendEmailOTP/sendEmailOTP.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,cACZ,kBAAkB,wDAE5B,OAAO,CAAC,eAAe,CAgBzB,CAAC"}
1
+ {"version":3,"file":"sendEmailOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/sendEmailOTP/sendEmailOTP.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,YAAY,cACZ,kBAAkB,wDAE5B,OAAO,CAAC,eAAe,CAgBzB,CAAC"}
@@ -7,12 +7,23 @@ export type SendSmsOTPParams = {
7
7
  /**
8
8
  * Sends a one-time password (OTP) via SMS to the specified phone number.
9
9
  *
10
+ * @example
11
+ * ```ts
12
+ * const { verificationUUID } = await sendSmsOTP({
13
+ * isoCountryCode: 'US',
14
+ * phoneNumber: '5551234567',
15
+ * });
16
+ * // Then verify with the code the user received
17
+ * await verifyOTP({ otpVerification: { phoneNumber: '5551234567', verificationUUID }, verificationToken: '123456' });
18
+ * ```
19
+ *
10
20
  * @param params.isoCountryCode - The ISO country code for the phone number (e.g., 'US', 'CA', 'GB').
11
21
  * @param params.phoneNumber - The phone number to send the OTP to.
12
22
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
13
23
  * @returns A promise that resolves to an OTPVerification object containing the phone details and verification UUID.
24
+ * @see verifyOTP
25
+ * @see sendEmailOTP
14
26
  * @instrumented
15
- * @redact-params
16
27
  */
17
28
  export declare const sendSmsOTP: ({ isoCountryCode, phoneNumber }: SendSmsOTPParams, client?: import("../../../exports").DynamicClient) => Promise<OTPVerification>;
18
29
  //# sourceMappingURL=sendSmsOTP.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendSmsOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/sendSmsOTP/sendSmsOTP.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,cAAc,EAAE,WAAW,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,oCACY,gBAAgB,wDAEhD,OAAO,CAAC,eAAe,CAoBzB,CAAC"}
1
+ {"version":3,"file":"sendSmsOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/sendSmsOTP/sendSmsOTP.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,cAAc,EAAE,WAAW,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,UAAU,oCACY,gBAAgB,wDAEhD,OAAO,CAAC,eAAe,CAoBzB,CAAC"}
@@ -1,6 +1,25 @@
1
1
  import type { TokenScope, VerifyResponse } from '@dynamic-labs/sdk-api-core';
2
2
  import type { OTPVerification } from '../otp.types';
3
+ /**
4
+ * Parameters for verifying an OTP during sign-in or an authenticated user update.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * const params: VerifyOTPParams = {
9
+ * otpVerification,
10
+ * verificationToken: '123456',
11
+ * };
12
+ * ```
13
+ * @see verifyOTP
14
+ * @see sendEmailOTP
15
+ */
3
16
  export type VerifyOTPParams = {
17
+ /**
18
+ * When true on a sign-in request, the server returns an elevated access
19
+ * token with credential:link scope if MFA is optional and the user has
20
+ * no MFA methods registered. Ignored on post-login verify requests.
21
+ */
22
+ allowNewMFALinking?: boolean;
4
23
  otpVerification: OTPVerification;
5
24
  requestedScopes?: TokenScope[];
6
25
  verificationToken: string;
@@ -11,12 +30,24 @@ export type VerifyOTPParams = {
11
30
  * This function validates the OTP code provided by the user and completes
12
31
  * the verification process for either sign-in or account updates.
13
32
  *
33
+ * @example
34
+ * ```ts
35
+ * const { verificationUUID } = await sendEmailOTP({ email: 'user@example.com' });
36
+ * const response = await verifyOTP({
37
+ * otpVerification: { email: 'user@example.com', verificationUUID },
38
+ * verificationToken: '123456',
39
+ * });
40
+ * ```
41
+ *
42
+ * @param [params.allowNewMFALinking] - Whether sign-in may return a credential-link elevated token for users without MFA.
14
43
  * @param params.otpVerification - The OTP verification object containing verification details.
15
44
  * @param params.verificationToken - The token received from the OTP verification process.
45
+ * @param [params.requestedScopes] - Optional token scopes to request during verification.
16
46
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
17
47
  * @returns A promise that resolves to the verify response object upon successful verification.
48
+ * @see sendEmailOTP
49
+ * @see sendSmsOTP
18
50
  * @instrumented
19
- * @redact-params
20
51
  */
21
- export declare const verifyOTP: ({ otpVerification, verificationToken, requestedScopes }: VerifyOTPParams, client?: import("../../../exports").DynamicClient) => Promise<VerifyResponse>;
52
+ export declare const verifyOTP: ({ allowNewMFALinking, otpVerification, requestedScopes, verificationToken, }: VerifyOTPParams, client?: import("../../../exports").DynamicClient) => Promise<VerifyResponse>;
22
53
  //# sourceMappingURL=verifyOTP.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"verifyOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/verifyOTP/verifyOTP.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAK7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,4DACqC,eAAe,wDAEvE,OAAO,CAAC,cAAc,CAwBxB,CAAC"}
1
+ {"version":3,"file":"verifyOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/verifyOTP/verifyOTP.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAK7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,SAAS,iFAMjB,eAAe,wDAEjB,OAAO,CAAC,cAAc,CAwBxB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { DynamicClient } from '../../../../client/types';
2
2
  import type { VerifyOTPParams } from '../verifyOTP';
3
3
  /** @notInstrumented */
4
- export declare const verifyOTPForUserSignIn: ({ otpVerification, verificationToken }: VerifyOTPParams, client: DynamicClient) => Promise<import("@dynamic-labs/sdk-api-core").VerifyResponse>;
4
+ export declare const verifyOTPForUserSignIn: ({ allowNewMFALinking, otpVerification, verificationToken }: VerifyOTPParams, client: DynamicClient) => Promise<import("@dynamic-labs/sdk-api-core").VerifyResponse>;
5
5
  //# sourceMappingURL=verifyOTPForUserSignIn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"verifyOTPForUserSignIn.d.ts","sourceRoot":"","sources":["../../../../../src/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,uBAAuB;AACvB,eAAO,MAAM,sBAAsB,2CACO,eAAe,UAC/C,aAAa,iEAqBtB,CAAC"}
1
+ {"version":3,"file":"verifyOTPForUserSignIn.d.ts","sourceRoot":"","sources":["../../../../../src/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,uBAAuB;AACvB,eAAO,MAAM,sBAAsB,+DAC2B,eAAe,UACnE,aAAa,iEAsBtB,CAAC"}
@@ -9,8 +9,16 @@ export declare const PROJECT_SETTINGS_EXPIRATION_TIME: number;
9
9
  * from Dynamic's servers, including authentication options, enabled chains,
10
10
  * and security configurations. The settings are cached for performance.
11
11
  *
12
+ * @example
13
+ * ```ts
14
+ * const settings = await fetchProjectSettings();
15
+ * console.log('Enabled chains:', settings.chains);
16
+ * ```
17
+ *
12
18
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
13
19
  * @returns A promise that resolves to the updated project settings.
20
+ * @see createDynamicClient
21
+ * @see initializeClient
14
22
  * @notInstrumented
15
23
  * @noHook Internal settings fetch that is not part of the public hook surface.
16
24
  */
@@ -1 +1 @@
1
- {"version":3,"file":"fetchProjectSettings.d.ts","sourceRoot":"","sources":["../../../../src/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,eAAO,MAAM,gCAAgC,QAAgB,CAAC;AAE9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oBAAoB,6HA4ChC,CAAC"}
1
+ {"version":3,"file":"fetchProjectSettings.d.ts","sourceRoot":"","sources":["../../../../src/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,eAAO,MAAM,gCAAgC,QAAgB,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,oBAAoB,6HA4ChC,CAAC"}
@@ -0,0 +1,28 @@
1
+ import type { User } from '../user.types';
2
+ type CheckUserScopesParams = {
3
+ scopes: string[];
4
+ user: User;
5
+ };
6
+ /**
7
+ * Checks whether the given user has all the specified scopes.
8
+ *
9
+ * The user's `scope` field is a whitespace-separated string of granted
10
+ * permissions (per RFC 8693 §4.2). This helper splits it and verifies that
11
+ * every entry in `scopes` is present.
12
+ *
13
+ * @example
14
+ * const user = getDefaultClient().user;
15
+ * if (user && checkUserScopes({ user, scopes: ['wallets:read'] })) {
16
+ * showWalletBalances();
17
+ * }
18
+ *
19
+ * @param params.user - The authenticated user to check.
20
+ * @param params.scopes - The scope strings the user must have.
21
+ * @returns `true` if the user has every scope in `scopes`, `false` otherwise.
22
+ * @see User
23
+ * @see updateUser
24
+ * @notInstrumented
25
+ */
26
+ export declare const checkUserScopes: ({ scopes, user, }: CheckUserScopesParams) => boolean;
27
+ export {};
28
+ //# sourceMappingURL=checkUserScopes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkUserScopes.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/checkUserScopes/checkUserScopes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,KAAK,qBAAqB,GAAG;IAC3B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,sBAGzB,qBAAqB,KAAG,OAI1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { checkUserScopes } from './checkUserScopes';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/checkUserScopes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -4,8 +4,16 @@
4
4
  * This function performs a hard delete of the user account. Upon successful deletion,
5
5
  * the user will be automatically logged out and all authentication data will be cleared.
6
6
  *
7
+ * @example
8
+ * ```ts
9
+ * // Permanently delete the user's account
10
+ * await deleteUser();
11
+ * ```
12
+ *
7
13
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
8
14
  * @returns A promise that resolves when the user account is successfully deleted.
15
+ * @see logout
16
+ * @see refreshUser
9
17
  * @instrumented
10
18
  */
11
19
  export declare const deleteUser: (client?: import("../../../exports").DynamicClient) => Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"deleteUser.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/deleteUser/deleteUser.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,yDAEpB,OAAO,CAAC,IAAI,CASd,CAAC"}
1
+ {"version":3,"file":"deleteUser.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/deleteUser/deleteUser.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,UAAU,yDAEpB,OAAO,CAAC,IAAI,CASd,CAAC"}
@@ -12,9 +12,17 @@
12
12
  * is one such feature — its backend calls reject a pre-`user:basic` token — but
13
13
  * this predicate is general and not specific to embedded wallets.
14
14
  *
15
+ * @deprecated Use {@link checkUserScopes} instead. This function conflates
16
+ * Dynamic-controlled requirements (MFA, device registration, required fields)
17
+ * with the concept of "onboarding complete", which is app-specific. Replace
18
+ * with `checkUserScopes({ user, scopes: ['user:basic'] })` to check whether
19
+ * Dynamic's requirements are satisfied, and compose your own logic on top for
20
+ * any app-specific onboarding steps.
21
+ *
15
22
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
16
23
  * @returns True if onboarding is complete (no pending requirements), false if there are pending requirements.
17
- * @notInstrumented
24
+ * @notInstrumented
25
+ * @hook Exposed as a hook so consumers reactively know when onboarding is complete, updated when the user changes.
18
26
  */
19
27
  export declare const isUserOnboardingComplete: (client?: import("../../../exports").DynamicClient) => boolean;
20
28
  //# sourceMappingURL=isUserOnboardingComplete.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isUserOnboardingComplete.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,wBAAwB,gEAiBpC,CAAC"}
1
+ {"version":3,"file":"isUserOnboardingComplete.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,wBAAwB,gEAiBpC,CAAC"}
@@ -1,14 +1,27 @@
1
1
  import type { VerifyResponse } from '@dynamic-labs/sdk-api-core';
2
2
  /**
3
- * Refreshes the current user's data from the server.
3
+ * Refreshes the current session's authentication from the server.
4
4
  *
5
- * This function fetches the latest user information and token from the backend
6
- * updating the local user and token states with any changes.
5
+ * This rotates the auth token via a full verify call and updates both the
6
+ * token and the user state from the response, returning the raw
7
+ * `VerifyResponse` (which includes the new token). Reach for this when you
8
+ * need a fresh JWT — e.g. before a call that requires a non-expired token.
9
+ *
10
+ * Prefer `refreshUser` when you only need the latest user profile and do not
11
+ * care about rotating the token: it hits the authenticated-user endpoint,
12
+ * touches only the user state, and returns the `SdkUser` directly.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const response = await refreshAuth();
17
+ * console.log('Token refreshed:', response.token);
18
+ * ```
7
19
  *
8
20
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
9
21
  * @returns A promise that resolves to the verify response.
22
+ * @see logout
23
+ * @see refreshUser
10
24
  * @instrumented
11
- * @redact-params
12
25
  */
13
26
  export declare const refreshAuth: (client?: import("../../../exports").DynamicClient) => Promise<VerifyResponse>;
14
27
  //# sourceMappingURL=refreshAuth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"refreshAuth.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/refreshAuth/refreshAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAOjE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,yDAErB,OAAO,CAAC,cAAc,CAWxB,CAAC"}
1
+ {"version":3,"file":"refreshAuth.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/refreshAuth/refreshAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAOjE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,WAAW,yDAErB,OAAO,CAAC,cAAc,CAWxB,CAAC"}
@@ -1,12 +1,25 @@
1
1
  import type { SdkUser } from '@dynamic-labs/sdk-api-core';
2
2
  /**
3
- * Refreshes the current user's data from the server.
3
+ * Refreshes the current user's profile from the server.
4
4
  *
5
- * This function fetches the latest authenticated user information from the backend
6
- * and updates the local user state.
5
+ * This fetches the latest authenticated user from the backend and updates only
6
+ * the local user state, returning the `SdkUser`. It does not touch the auth
7
+ * token — use it when you just need up-to-date user data.
8
+ *
9
+ * Prefer `refreshAuth` when you need to rotate the auth token as well: it runs
10
+ * a full verify, updates both token and user state, and returns the raw
11
+ * `VerifyResponse` (including the new token).
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const user = await refreshUser();
16
+ * console.log('Updated user:', user.email);
17
+ * ```
7
18
  *
8
19
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
9
20
  * @returns A promise that resolves to the authenticated user.
21
+ * @see refreshAuth
22
+ * @see deleteUser
10
23
  * @instrumented
11
24
  * @noHook Low-level refresh primitive that is not exposed as a React hook.
12
25
  */
@@ -1 +1 @@
1
- {"version":3,"file":"refreshUser.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/refreshUser/refreshUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAO1D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,yDAErB,OAAO,CAAC,OAAO,CAejB,CAAC"}
1
+ {"version":3,"file":"refreshUser.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/refreshUser/refreshUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAO1D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,WAAW,yDAErB,OAAO,CAAC,OAAO,CAejB,CAAC"}
@@ -14,7 +14,6 @@ type UpdateUserParams = {
14
14
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
15
15
  * @returns A promise that resolves to OTP verification details if verification is required, or undefined.
16
16
  * @instrumented
17
- * @redact-params
18
17
  */
19
18
  export declare const updateUser: ({ userFields }: UpdateUserParams, client?: import("../../../exports").DynamicClient) => Promise<OTPVerification | undefined>;
20
19
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"updateUser.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/updateUser/updateUser.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,KAAK,gBAAgB,GAAG;IACtB,UAAU,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,mBACL,gBAAgB,wDAE/B,OAAO,CAAC,eAAe,GAAG,SAAS,CA4BrC,CAAC"}
1
+ {"version":3,"file":"updateUser.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/updateUser/updateUser.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,KAAK,gBAAgB,GAAG;IACtB,UAAU,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,mBACL,gBAAgB,wDAE/B,OAAO,CAAC,eAAe,GAAG,SAAS,CA4BrC,CAAC"}
@@ -1,6 +1,14 @@
1
1
  import type { SdkUser, UserFields } from '@dynamic-labs/sdk-api-core';
2
2
  /**
3
- * A user that is authenticated with the Dynamic SDK.
3
+ * A user that is authenticated with the Dynamic SDK. Carries profile fields,
4
+ * verified credentials, and the granted `scope` string used for authorization.
5
+ *
6
+ * @example
7
+ * const user: User | undefined = getDefaultClient().user;
8
+ * if (user) console.log(user.email, user.scope);
9
+ *
10
+ * @see checkUserScopes
11
+ * @see updateUser
4
12
  */
5
13
  export type User = SdkUser;
6
14
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"user.types.d.ts","sourceRoot":"","sources":["../../../src/modules/user/user.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,OAAO,CAAC;AAE3B;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,UAAU,EACR,OAAO,GACP,OAAO,GACP,WAAW,GACX,UAAU,GACV,UAAU,GACV,aAAa,GACb,YAAY,GACZ,MAAM,GACN,SAAS,GACT,UAAU,GACV,UAAU,GACV,8BAA8B,GAC9B,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,YAAY,CACf,CAAC"}
1
+ {"version":3,"file":"user.types.d.ts","sourceRoot":"","sources":["../../../src/modules/user/user.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAEtE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,IAAI,GAAG,OAAO,CAAC;AAE3B;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,UAAU,EACR,OAAO,GACP,OAAO,GACP,WAAW,GACX,UAAU,GACV,UAAU,GACV,aAAa,GACb,YAAY,GACZ,MAAM,GACN,SAAS,GACT,UAAU,GACV,UAAU,GACV,8BAA8B,GAC9B,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,YAAY,CACf,CAAC"}