@dynamic-labs-sdk/client 1.30.2 → 1.30.3

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 (331) hide show
  1. package/dist/{updateAuthFromVerifyResponse-CTvWpZLa.native.esm.js → apiClient-BAKktP8E.native.esm.js} +557 -465
  2. package/dist/apiClient-BAKktP8E.native.esm.js.map +1 -0
  3. package/dist/client/types/DynamicClient.d.ts +1 -1
  4. package/dist/client/types/DynamicClient.d.ts.map +1 -1
  5. package/dist/core.cjs +61 -61
  6. package/dist/core.cjs.map +1 -1
  7. package/dist/core.esm.js +5 -5
  8. package/dist/core.native.esm.js +5 -5
  9. package/dist/errors/WaasRbacStaleRetryUnsafeError.d.ts +36 -0
  10. package/dist/errors/WaasRbacStaleRetryUnsafeError.d.ts.map +1 -0
  11. package/dist/exports/index.d.ts +16 -4
  12. package/dist/exports/index.d.ts.map +1 -1
  13. package/dist/exports/waas.d.ts +3 -2
  14. package/dist/exports/waas.d.ts.map +1 -1
  15. package/dist/{getNetworkProviderFromNetworkId--X0cb1ad.native.esm.js → getNetworkProviderFromNetworkId-Bk5ssM29.native.esm.js} +3 -3
  16. package/dist/{getNetworkProviderFromNetworkId--X0cb1ad.native.esm.js.map → getNetworkProviderFromNetworkId-Bk5ssM29.native.esm.js.map} +1 -1
  17. package/dist/{getNetworkProviderFromNetworkId-CamHn2s3.esm.js → getNetworkProviderFromNetworkId-CHlaSDGa.esm.js} +2 -2
  18. package/dist/{getNetworkProviderFromNetworkId-CamHn2s3.esm.js.map → getNetworkProviderFromNetworkId-CHlaSDGa.esm.js.map} +1 -1
  19. package/dist/{getNetworkProviderFromNetworkId-igDf2OPy.cjs → getNetworkProviderFromNetworkId-D3308b6r.cjs} +51 -51
  20. package/dist/{getNetworkProviderFromNetworkId-igDf2OPy.cjs.map → getNetworkProviderFromNetworkId-D3308b6r.cjs.map} +1 -1
  21. package/dist/{getSignedSessionId-DY-ietfO.esm.js → getSignedSessionId-B_iFJpYg.esm.js} +3 -3
  22. package/dist/{getSignedSessionId-DY-ietfO.esm.js.map → getSignedSessionId-B_iFJpYg.esm.js.map} +1 -1
  23. package/dist/{getSignedSessionId-DGa_pu-i.cjs → getSignedSessionId-CW2VWZxK.cjs} +11 -11
  24. package/dist/{getSignedSessionId-DGa_pu-i.cjs.map → getSignedSessionId-CW2VWZxK.cjs.map} +1 -1
  25. package/dist/{getSignedSessionId--XNTxNFo.native.esm.js → getSignedSessionId-D-KMuDMG.native.esm.js} +3 -3
  26. package/dist/{getSignedSessionId--XNTxNFo.native.esm.js.map → getSignedSessionId-D-KMuDMG.native.esm.js.map} +1 -1
  27. package/dist/{getWalletProviderByKey-DzpmoNlv.cjs → getVerifiedCredentialForWalletAccount-DZS1-K7H.cjs} +10 -10
  28. package/dist/getVerifiedCredentialForWalletAccount-DZS1-K7H.cjs.map +1 -0
  29. package/dist/{getWalletProviderByKey-xqyD3ybv.esm.js → getVerifiedCredentialForWalletAccount-Dqb6bpAF.esm.js} +10 -10
  30. package/dist/getVerifiedCredentialForWalletAccount-Dqb6bpAF.esm.js.map +1 -0
  31. package/dist/index.cjs +677 -666
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.esm.js +46 -17
  34. package/dist/index.esm.js.map +1 -1
  35. package/dist/index.native.esm.js +46 -17
  36. package/dist/index.native.esm.js.map +1 -1
  37. package/dist/{isMfaRequiredForAction-CatS60F6.esm.js → isMfaRequiredForAction-B0pOYhvq.esm.js} +2 -2
  38. package/dist/isMfaRequiredForAction-B0pOYhvq.esm.js.map +1 -0
  39. package/dist/{isMfaRequiredForAction-DKfoMhEk.cjs → isMfaRequiredForAction-BSclknqX.cjs} +11 -11
  40. package/dist/isMfaRequiredForAction-BSclknqX.cjs.map +1 -0
  41. package/dist/{isMfaRequiredForAction-BcJvy7Gw.native.esm.js → isMfaRequiredForAction-BvYKQLus.native.esm.js} +2 -2
  42. package/dist/isMfaRequiredForAction-BvYKQLus.native.esm.js.map +1 -0
  43. package/dist/{isUserOnboardingComplete-jkAQQVdP.esm.js → isUserOnboardingComplete-CfG3LQ6q.native.esm.js} +47 -4
  44. package/dist/isUserOnboardingComplete-CfG3LQ6q.native.esm.js.map +1 -0
  45. package/dist/{isUserOnboardingComplete-jv_idxWY.cjs → isUserOnboardingComplete-CwZbDdOC.cjs} +63 -14
  46. package/dist/isUserOnboardingComplete-CwZbDdOC.cjs.map +1 -0
  47. package/dist/{isUserOnboardingComplete-BWVuE4Jg.native.esm.js → isUserOnboardingComplete-DtGJK_dW.esm.js} +47 -4
  48. package/dist/isUserOnboardingComplete-DtGJK_dW.esm.js.map +1 -0
  49. package/dist/{updateAuthFromVerifyResponse-BLgNMqwN.esm.js → logoutWithReason-CIsCVAUE.esm.js} +679 -587
  50. package/dist/logoutWithReason-CIsCVAUE.esm.js.map +1 -0
  51. package/dist/{updateAuthFromVerifyResponse-Dsw-eAro.cjs → logoutWithReason-DEM0fiik.cjs} +691 -587
  52. package/dist/logoutWithReason-DEM0fiik.cjs.map +1 -0
  53. package/dist/{getWalletProviderByKey-Cl6WDOoD.native.esm.js → logoutWithReason-vnu8SeVK.native.esm.js} +19 -19
  54. package/dist/logoutWithReason-vnu8SeVK.native.esm.js.map +1 -0
  55. package/dist/migrateFromFireblocks-BOx3tLrP.cjs +163 -0
  56. package/dist/migrateFromFireblocks-BOx3tLrP.cjs.map +1 -0
  57. package/dist/migrateFromFireblocks-BvDbMJWJ.native.esm.js +128 -0
  58. package/dist/migrateFromFireblocks-BvDbMJWJ.native.esm.js.map +1 -0
  59. package/dist/migrateFromFireblocks-_Vt4cY3Y.esm.js +128 -0
  60. package/dist/migrateFromFireblocks-_Vt4cY3Y.esm.js.map +1 -0
  61. package/dist/modules/apiClient/apiClient.types.d.ts +1 -1
  62. package/dist/modules/apiClient/apiClient.types.d.ts.map +1 -1
  63. package/dist/modules/apiClient/createApiClient.d.ts.map +1 -1
  64. package/dist/modules/apiClient/utils/rbacStaleMiddleware/createRbacStaleMiddleware.d.ts +10 -0
  65. package/dist/modules/apiClient/utils/rbacStaleMiddleware/createRbacStaleMiddleware.d.ts.map +1 -0
  66. package/dist/modules/auth/auth.types.d.ts +45 -0
  67. package/dist/modules/auth/auth.types.d.ts.map +1 -0
  68. package/dist/modules/auth/checkStepUpAuth/checkStepUpAuth.d.ts +2 -1
  69. package/dist/modules/auth/checkStepUpAuth/checkStepUpAuth.d.ts.map +1 -1
  70. package/dist/modules/auth/consts.d.ts +9 -0
  71. package/dist/modules/auth/consts.d.ts.map +1 -1
  72. package/dist/modules/auth/createVisit/createVisit.d.ts.map +1 -1
  73. package/dist/modules/auth/externalAuth/requestExternalAuthElevatedToken/requestExternalAuthElevatedToken.d.ts +1 -1
  74. package/dist/modules/auth/externalAuth/requestExternalAuthElevatedToken/requestExternalAuthElevatedToken.d.ts.map +1 -1
  75. package/dist/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.d.ts +1 -1
  76. package/dist/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.d.ts.map +1 -1
  77. package/dist/modules/auth/getActionAuthorizationTokens/getActionAuthorizationTokens.d.ts +2 -1
  78. package/dist/modules/auth/getActionAuthorizationTokens/getActionAuthorizationTokens.d.ts.map +1 -1
  79. package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.d.ts +4 -3
  80. package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.d.ts.map +1 -1
  81. package/dist/modules/auth/passkeys/getPasskeys/getPasskeys.d.ts +1 -1
  82. package/dist/modules/auth/passkeys/getPasskeys/getPasskeys.d.ts.map +1 -1
  83. package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts +2 -1
  84. package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts.map +1 -1
  85. package/dist/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.d.ts +3 -1
  86. package/dist/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.d.ts.map +1 -1
  87. package/dist/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.d.ts +2 -1
  88. package/dist/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.d.ts.map +1 -1
  89. package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts +1 -1
  90. package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts.map +1 -1
  91. package/dist/modules/auth/social/oauth/completeSocialAuthentication/completeSocialAuthentication.d.ts +1 -1
  92. package/dist/modules/auth/social/oauth/completeSocialAuthentication/completeSocialAuthentication.d.ts.map +1 -1
  93. package/dist/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.types.d.ts +1 -1
  94. package/dist/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.types.d.ts.map +1 -1
  95. package/dist/modules/auth/social/oauth/processSocialCallback/processSocialCallback.d.ts +1 -1
  96. package/dist/modules/auth/social/oauth/processSocialCallback/processSocialCallback.d.ts.map +1 -1
  97. package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.types.d.ts +1 -1
  98. package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.types.d.ts.map +1 -1
  99. package/dist/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.d.ts +1 -1
  100. package/dist/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.d.ts.map +1 -1
  101. package/dist/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.d.ts +1 -1
  102. package/dist/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.d.ts.map +1 -1
  103. package/dist/modules/balances/balances.types.d.ts +59 -0
  104. package/dist/modules/balances/balances.types.d.ts.map +1 -0
  105. package/dist/modules/balances/getMultichainTokenBalances/getMultichainTokenBalances.d.ts +1 -1
  106. package/dist/modules/balances/getMultichainTokenBalances/getMultichainTokenBalances.d.ts.map +1 -1
  107. package/dist/modules/balances/getTokenBalances/getTokenBalances.d.ts +1 -1
  108. package/dist/modules/balances/getTokenBalances/getTokenBalances.d.ts.map +1 -1
  109. package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts +1 -1
  110. package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts.map +1 -1
  111. package/dist/modules/checkout/checkout.types.d.ts +10 -2
  112. package/dist/modules/checkout/checkout.types.d.ts.map +1 -1
  113. package/dist/modules/deviceRegistration/completeDeviceRegistration/completeDeviceRegistration.d.ts +1 -1
  114. package/dist/modules/deviceRegistration/completeDeviceRegistration/completeDeviceRegistration.d.ts.map +1 -1
  115. package/dist/modules/deviceRegistration/deviceRegistration.types.d.ts +9 -0
  116. package/dist/modules/deviceRegistration/deviceRegistration.types.d.ts.map +1 -0
  117. package/dist/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.d.ts +1 -1
  118. package/dist/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.d.ts.map +1 -1
  119. package/dist/modules/funding/coinbase/coinbase.types.d.ts +2 -40
  120. package/dist/modules/funding/coinbase/coinbase.types.d.ts.map +1 -1
  121. package/dist/modules/funding/coinbase/createCoinbaseExchangeTransfer/createCoinbaseExchangeTransfer.d.ts +1 -1
  122. package/dist/modules/funding/coinbase/createCoinbaseExchangeTransfer/createCoinbaseExchangeTransfer.d.ts.map +1 -1
  123. package/dist/modules/funding/coinbase/utils/validateUserCredentialsForCoinbaseOnrampOrder/validateUserCredentialsForCoinbaseOnrampOrder.d.ts +2 -2
  124. package/dist/modules/funding/coinbase/utils/validateUserCredentialsForCoinbaseOnrampOrder/validateUserCredentialsForCoinbaseOnrampOrder.d.ts.map +1 -1
  125. package/dist/modules/funding/cryptoDotCom/cryptoDotCom.types.d.ts +2 -2
  126. package/dist/modules/funding/cryptoDotCom/cryptoDotCom.types.d.ts.map +1 -1
  127. package/dist/modules/funding/funding.types.d.ts +26 -0
  128. package/dist/modules/funding/funding.types.d.ts.map +1 -0
  129. package/dist/modules/funding/kraken/createKrakenExchangeTransfer/createKrakenExchangeTransfer.d.ts +4 -4
  130. package/dist/modules/funding/kraken/createKrakenExchangeTransfer/createKrakenExchangeTransfer.d.ts.map +1 -1
  131. package/dist/modules/mfa/authenticateMfaRecoveryCode/authenticateMfaRecoveryCode.d.ts +3 -1
  132. package/dist/modules/mfa/authenticateMfaRecoveryCode/authenticateMfaRecoveryCode.d.ts.map +1 -1
  133. package/dist/modules/mfa/authenticatePasskeyMFA/authenticatePasskeyMFA.d.ts +3 -1
  134. package/dist/modules/mfa/authenticatePasskeyMFA/authenticatePasskeyMFA.d.ts.map +1 -1
  135. package/dist/modules/mfa/authenticateTotpMfaDevice/authenticateTotpMfaDevice.d.ts +3 -1
  136. package/dist/modules/mfa/authenticateTotpMfaDevice/authenticateTotpMfaDevice.d.ts.map +1 -1
  137. package/dist/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.d.ts +1 -1
  138. package/dist/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.d.ts.map +1 -1
  139. package/dist/modules/mfa/getMfaDevices/getMfaDevices.d.ts +1 -1
  140. package/dist/modules/mfa/getMfaDevices/getMfaDevices.d.ts.map +1 -1
  141. package/dist/modules/mfa/getMfaMethods/getMfaMethods.d.ts +1 -1
  142. package/dist/modules/mfa/getMfaMethods/getMfaMethods.d.ts.map +1 -1
  143. package/dist/modules/mfa/getMfaRecoveryCodes/getMfaRecoveryCodes.d.ts +1 -1
  144. package/dist/modules/mfa/getMfaRecoveryCodes/getMfaRecoveryCodes.d.ts.map +1 -1
  145. package/dist/modules/mfa/isMfaRequiredForAction/isMfaRequiredForAction.d.ts +1 -1
  146. package/dist/modules/mfa/isMfaRequiredForAction/isMfaRequiredForAction.d.ts.map +1 -1
  147. package/dist/modules/mfa/mfa.consts.d.ts +10 -0
  148. package/dist/modules/mfa/mfa.consts.d.ts.map +1 -0
  149. package/dist/modules/mfa/mfa.types.d.ts +66 -1
  150. package/dist/modules/mfa/mfa.types.d.ts.map +1 -1
  151. package/dist/modules/mfa/registerTotpMfaDevice/registerTotpMfaDevice.d.ts +1 -1
  152. package/dist/modules/mfa/registerTotpMfaDevice/registerTotpMfaDevice.d.ts.map +1 -1
  153. package/dist/modules/otp/verifyOTP/verifyOTP.d.ts +2 -1
  154. package/dist/modules/otp/verifyOTP/verifyOTP.d.ts.map +1 -1
  155. package/dist/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.d.ts +1 -1
  156. package/dist/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.d.ts.map +1 -1
  157. package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts +1 -1
  158. package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts.map +1 -1
  159. package/dist/modules/projectSettings/projectSettings.types.d.ts +15 -0
  160. package/dist/modules/projectSettings/projectSettings.types.d.ts.map +1 -0
  161. package/dist/modules/simulation/simulation.types.d.ts +27 -1
  162. package/dist/modules/simulation/simulation.types.d.ts.map +1 -1
  163. package/dist/modules/storageSync/schema.d.ts +2 -2
  164. package/dist/modules/storageSync/schema.d.ts.map +1 -1
  165. package/dist/modules/swap/swap.types.d.ts +15 -2
  166. package/dist/modules/swap/swap.types.d.ts.map +1 -1
  167. package/dist/modules/user/refreshAuth/refreshAuth.d.ts +2 -2
  168. package/dist/modules/user/refreshAuth/refreshAuth.d.ts.map +1 -1
  169. package/dist/modules/user/refreshUser/refreshUser.d.ts +3 -3
  170. package/dist/modules/user/refreshUser/refreshUser.d.ts.map +1 -1
  171. package/dist/modules/user/user.consts.d.ts +19 -0
  172. package/dist/modules/user/user.consts.d.ts.map +1 -0
  173. package/dist/modules/user/user.types.d.ts +22 -2
  174. package/dist/modules/user/user.types.d.ts.map +1 -1
  175. package/dist/modules/waas/businessAccounts/businessAccounts.types.d.ts +1 -1
  176. package/dist/modules/waas/businessAccounts/businessAccounts.types.d.ts.map +1 -1
  177. package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
  178. package/dist/modules/waas/getWalletAccountShareSets/getWalletAccountShareSets.d.ts +2 -2
  179. package/dist/modules/waas/getWalletAccountShareSets/getWalletAccountShareSets.d.ts.map +1 -1
  180. package/dist/modules/waas/injectWaasVerifiedCredentialFields/injectWaasVerifiedCredentialFields.d.ts +3 -1
  181. package/dist/modules/waas/injectWaasVerifiedCredentialFields/injectWaasVerifiedCredentialFields.d.ts.map +1 -1
  182. package/dist/modules/waas/policies/applyPolicyLayerBatch/applyPolicyLayerBatch.d.ts +2 -1
  183. package/dist/modules/waas/policies/applyPolicyLayerBatch/applyPolicyLayerBatch.d.ts.map +1 -1
  184. package/dist/modules/waas/policies/buildAllowAddressesRule/buildAllowAddressesRule.d.ts +1 -2
  185. package/dist/modules/waas/policies/buildAllowAddressesRule/buildAllowAddressesRule.d.ts.map +1 -1
  186. package/dist/modules/waas/policies/buildAllowPolicyRule/buildAllowPolicyRule.d.ts +1 -2
  187. package/dist/modules/waas/policies/buildAllowPolicyRule/buildAllowPolicyRule.d.ts.map +1 -1
  188. package/dist/modules/waas/policies/buildBlockExportRule/buildBlockExportRule.d.ts +1 -2
  189. package/dist/modules/waas/policies/buildBlockExportRule/buildBlockExportRule.d.ts.map +1 -1
  190. package/dist/modules/waas/policies/buildDenyAddressesRule/buildDenyAddressesRule.d.ts +1 -2
  191. package/dist/modules/waas/policies/buildDenyAddressesRule/buildDenyAddressesRule.d.ts.map +1 -1
  192. package/dist/modules/waas/policies/buildDenyPolicyRule/buildDenyPolicyRule.d.ts +1 -2
  193. package/dist/modules/waas/policies/buildDenyPolicyRule/buildDenyPolicyRule.d.ts.map +1 -1
  194. package/dist/modules/waas/policies/buildMaxAmountPerTransactionRule/buildMaxAmountPerTransactionRule.d.ts +1 -2
  195. package/dist/modules/waas/policies/buildMaxAmountPerTransactionRule/buildMaxAmountPerTransactionRule.d.ts.map +1 -1
  196. package/dist/modules/waas/policies/buildOperationForExistingRule/buildOperationForExistingRule.d.ts +3 -2
  197. package/dist/modules/waas/policies/buildOperationForExistingRule/buildOperationForExistingRule.d.ts.map +1 -1
  198. package/dist/modules/waas/policies/buildOperationsForRule/buildOperationsForRule.d.ts +2 -2
  199. package/dist/modules/waas/policies/buildOperationsForRule/buildOperationsForRule.d.ts.map +1 -1
  200. package/dist/modules/waas/policies/createPolicy/createPolicy.d.ts +2 -1
  201. package/dist/modules/waas/policies/createPolicy/createPolicy.d.ts.map +1 -1
  202. package/dist/modules/waas/policies/desugarPolicyRules/desugarPolicyRules.d.ts +1 -2
  203. package/dist/modules/waas/policies/desugarPolicyRules/desugarPolicyRules.d.ts.map +1 -1
  204. package/dist/modules/waas/policies/expandPolicyRules/expandPolicyRules.d.ts +2 -2
  205. package/dist/modules/waas/policies/expandPolicyRules/expandPolicyRules.d.ts.map +1 -1
  206. package/dist/modules/waas/policies/fillOmittedRuleValues/fillOmittedRuleValues.d.ts +1 -2
  207. package/dist/modules/waas/policies/fillOmittedRuleValues/fillOmittedRuleValues.d.ts.map +1 -1
  208. package/dist/modules/waas/policies/findMatchedRuleKind/findMatchedRuleKind.d.ts +1 -2
  209. package/dist/modules/waas/policies/findMatchedRuleKind/findMatchedRuleKind.d.ts.map +1 -1
  210. package/dist/modules/waas/policies/getAccountPolicyLayer/getAccountPolicyLayer.d.ts +1 -1
  211. package/dist/modules/waas/policies/getAccountPolicyLayer/getAccountPolicyLayer.d.ts.map +1 -1
  212. package/dist/modules/waas/policies/getPolicy/getPolicy.d.ts +2 -2
  213. package/dist/modules/waas/policies/getPolicy/getPolicy.d.ts.map +1 -1
  214. package/dist/modules/waas/policies/getResolvedPolicyLayer/getResolvedPolicyLayer.d.ts +1 -1
  215. package/dist/modules/waas/policies/getResolvedPolicyLayer/getResolvedPolicyLayer.d.ts.map +1 -1
  216. package/dist/modules/waas/policies/getSignerPolicyLayer/getSignerPolicyLayer.d.ts +1 -1
  217. package/dist/modules/waas/policies/getSignerPolicyLayer/getSignerPolicyLayer.d.ts.map +1 -1
  218. package/dist/modules/waas/policies/getWalletPolicyLayer/getWalletPolicyLayer.d.ts +1 -1
  219. package/dist/modules/waas/policies/getWalletPolicyLayer/getWalletPolicyLayer.d.ts.map +1 -1
  220. package/dist/modules/waas/policies/hasAddresses/hasAddresses.d.ts +1 -1
  221. package/dist/modules/waas/policies/hasAddresses/hasAddresses.d.ts.map +1 -1
  222. package/dist/modules/waas/policies/hasUnrecognizedFields/hasUnrecognizedFields.d.ts +1 -1
  223. package/dist/modules/waas/policies/hasUnrecognizedFields/hasUnrecognizedFields.d.ts.map +1 -1
  224. package/dist/modules/waas/policies/isPolicyRuleDeletionMarker/isPolicyRuleDeletionMarker.d.ts +1 -2
  225. package/dist/modules/waas/policies/isPolicyRuleDeletionMarker/isPolicyRuleDeletionMarker.d.ts.map +1 -1
  226. package/dist/modules/waas/policies/matchExistingRules/matchExistingRules.d.ts +1 -1
  227. package/dist/modules/waas/policies/matchExistingRules/matchExistingRules.d.ts.map +1 -1
  228. package/dist/modules/waas/policies/policies.types.d.ts +17 -1
  229. package/dist/modules/waas/policies/policies.types.d.ts.map +1 -1
  230. package/dist/modules/waas/policies/policyRuleKinds.d.ts +1 -2
  231. package/dist/modules/waas/policies/policyRuleKinds.d.ts.map +1 -1
  232. package/dist/modules/waas/policies/readAllowAddressesRule/readAllowAddressesRule.d.ts +1 -2
  233. package/dist/modules/waas/policies/readAllowAddressesRule/readAllowAddressesRule.d.ts.map +1 -1
  234. package/dist/modules/waas/policies/readBlockExportRule/readBlockExportRule.d.ts +1 -2
  235. package/dist/modules/waas/policies/readBlockExportRule/readBlockExportRule.d.ts.map +1 -1
  236. package/dist/modules/waas/policies/readCoveredRule/readCoveredRule.d.ts +1 -2
  237. package/dist/modules/waas/policies/readCoveredRule/readCoveredRule.d.ts.map +1 -1
  238. package/dist/modules/waas/policies/readDenyAddressesRule/readDenyAddressesRule.d.ts +1 -2
  239. package/dist/modules/waas/policies/readDenyAddressesRule/readDenyAddressesRule.d.ts.map +1 -1
  240. package/dist/modules/waas/policies/readMaxAmountPerTransactionRule/readMaxAmountPerTransactionRule.d.ts +1 -2
  241. package/dist/modules/waas/policies/readMaxAmountPerTransactionRule/readMaxAmountPerTransactionRule.d.ts.map +1 -1
  242. package/dist/modules/waas/policies/removeAccountPolicyRule/removeAccountPolicyRule.d.ts +1 -1
  243. package/dist/modules/waas/policies/removeAccountPolicyRule/removeAccountPolicyRule.d.ts.map +1 -1
  244. package/dist/modules/waas/policies/removePolicyRules/removePolicyRules.d.ts +2 -1
  245. package/dist/modules/waas/policies/removePolicyRules/removePolicyRules.d.ts.map +1 -1
  246. package/dist/modules/waas/policies/removeSignerPolicyRule/removeSignerPolicyRule.d.ts +1 -1
  247. package/dist/modules/waas/policies/removeSignerPolicyRule/removeSignerPolicyRule.d.ts.map +1 -1
  248. package/dist/modules/waas/policies/removeWalletPolicyRule/removeWalletPolicyRule.d.ts +1 -1
  249. package/dist/modules/waas/policies/removeWalletPolicyRule/removeWalletPolicyRule.d.ts.map +1 -1
  250. package/dist/modules/waas/policies/resolveRuleName/resolveRuleName.d.ts +1 -2
  251. package/dist/modules/waas/policies/resolveRuleName/resolveRuleName.d.ts.map +1 -1
  252. package/dist/modules/waas/policies/sortRulesByRuleId/sortRulesByRuleId.d.ts +1 -1
  253. package/dist/modules/waas/policies/sortRulesByRuleId/sortRulesByRuleId.d.ts.map +1 -1
  254. package/dist/modules/waas/policies/upsertAccountPolicyRule/upsertAccountPolicyRule.d.ts +2 -1
  255. package/dist/modules/waas/policies/upsertAccountPolicyRule/upsertAccountPolicyRule.d.ts.map +1 -1
  256. package/dist/modules/waas/policies/upsertSignerPolicyRule/upsertSignerPolicyRule.d.ts +2 -1
  257. package/dist/modules/waas/policies/upsertSignerPolicyRule/upsertSignerPolicyRule.d.ts.map +1 -1
  258. package/dist/modules/waas/policies/upsertWalletPolicyRule/upsertWalletPolicyRule.d.ts +2 -1
  259. package/dist/modules/waas/policies/upsertWalletPolicyRule/upsertWalletPolicyRule.d.ts.map +1 -1
  260. package/dist/modules/waas/waas.consts.d.ts +23 -0
  261. package/dist/modules/waas/waas.consts.d.ts.map +1 -0
  262. package/dist/modules/waas/waas.types.d.ts +29 -1
  263. package/dist/modules/waas/waas.types.d.ts.map +1 -1
  264. package/dist/modules/wallets/getWalletAccounts/getWalletAccountsFromState/getWalletAccountsFromState.d.ts +2 -2
  265. package/dist/modules/wallets/getWalletAccounts/getWalletAccountsFromState/getWalletAccountsFromState.d.ts.map +1 -1
  266. package/dist/modules/wallets/networks/getTransactionHistory/getTransactionHistory.d.ts +2 -2
  267. package/dist/modules/wallets/networks/getTransactionHistory/getTransactionHistory.d.ts.map +1 -1
  268. package/dist/modules/wallets/screenTransaction/screenTransaction.d.ts +1 -1
  269. package/dist/modules/wallets/screenTransaction/screenTransaction.d.ts.map +1 -1
  270. package/dist/modules/wallets/userHasEmbeddedWalletForChain/userHasEmbeddedWalletForChain.d.ts +2 -2
  271. package/dist/modules/wallets/userHasEmbeddedWalletForChain/userHasEmbeddedWalletForChain.d.ts.map +1 -1
  272. package/dist/modules/wallets/userHasExternalWallet/userHasExternalWallet.d.ts +2 -2
  273. package/dist/modules/wallets/userHasExternalWallet/userHasExternalWallet.d.ts.map +1 -1
  274. package/dist/modules/wallets/utils/formatWalletProviderKey/formatWalletProviderKey.d.ts +1 -1
  275. package/dist/modules/wallets/utils/formatWalletProviderKey/formatWalletProviderKey.d.ts.map +1 -1
  276. package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts +5 -3
  277. package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts.map +1 -1
  278. package/dist/modules/wallets/verifyWalletAccount/verifyWalletAccount.d.ts +1 -1
  279. package/dist/modules/wallets/verifyWalletAccount/verifyWalletAccount.d.ts.map +1 -1
  280. package/dist/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.d.ts +1 -1
  281. package/dist/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.d.ts.map +1 -1
  282. package/dist/modules/wallets/walletProvider/walletProvider.types.d.ts +4 -2
  283. package/dist/modules/wallets/walletProvider/walletProvider.types.d.ts.map +1 -1
  284. package/dist/modules/wallets/wallets.types.d.ts +47 -0
  285. package/dist/modules/wallets/wallets.types.d.ts.map +1 -0
  286. package/dist/modules/yield/yield.types.d.ts +8 -0
  287. package/dist/modules/yield/yield.types.d.ts.map +1 -1
  288. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  289. package/dist/waas-BYn7tsbq.cjs +2465 -0
  290. package/dist/waas-BYn7tsbq.cjs.map +1 -0
  291. package/dist/waas-CBrqSieN.esm.js +2148 -0
  292. package/dist/waas-CBrqSieN.esm.js.map +1 -0
  293. package/dist/waas-ChgbzsYO.native.esm.js +2148 -0
  294. package/dist/waas-ChgbzsYO.native.esm.js.map +1 -0
  295. package/dist/waas.cjs +60 -2185
  296. package/dist/waas.esm.js +5 -2126
  297. package/dist/waas.native.esm.js +5 -2126
  298. package/dist/waasCore.cjs +63 -33
  299. package/dist/waasCore.cjs.map +1 -1
  300. package/dist/waasCore.esm.js +43 -13
  301. package/dist/waasCore.esm.js.map +1 -1
  302. package/dist/waasCore.native.esm.js +43 -13
  303. package/dist/waasCore.native.esm.js.map +1 -1
  304. package/package.json +3 -3
  305. package/dist/getWalletProviderByKey-Cl6WDOoD.native.esm.js.map +0 -1
  306. package/dist/getWalletProviderByKey-DzpmoNlv.cjs.map +0 -1
  307. package/dist/getWalletProviderByKey-xqyD3ybv.esm.js.map +0 -1
  308. package/dist/isDynamicWaasEnabled-CMccs1-6.cjs +0 -136
  309. package/dist/isDynamicWaasEnabled-CMccs1-6.cjs.map +0 -1
  310. package/dist/isDynamicWaasEnabled-DSqgpEcX.native.esm.js +0 -113
  311. package/dist/isDynamicWaasEnabled-DSqgpEcX.native.esm.js.map +0 -1
  312. package/dist/isDynamicWaasEnabled-DYORq7Jc.esm.js +0 -113
  313. package/dist/isDynamicWaasEnabled-DYORq7Jc.esm.js.map +0 -1
  314. package/dist/isMfaRequiredForAction-BcJvy7Gw.native.esm.js.map +0 -1
  315. package/dist/isMfaRequiredForAction-CatS60F6.esm.js.map +0 -1
  316. package/dist/isMfaRequiredForAction-DKfoMhEk.cjs.map +0 -1
  317. package/dist/isUserOnboardingComplete-BWVuE4Jg.native.esm.js.map +0 -1
  318. package/dist/isUserOnboardingComplete-jkAQQVdP.esm.js.map +0 -1
  319. package/dist/isUserOnboardingComplete-jv_idxWY.cjs.map +0 -1
  320. package/dist/migrateFromFireblocks-B-WUs34v.native.esm.js +0 -65
  321. package/dist/migrateFromFireblocks-B-WUs34v.native.esm.js.map +0 -1
  322. package/dist/migrateFromFireblocks-D4E9bT2H.esm.js +0 -65
  323. package/dist/migrateFromFireblocks-D4E9bT2H.esm.js.map +0 -1
  324. package/dist/migrateFromFireblocks-zp5Jbq2J.cjs +0 -82
  325. package/dist/migrateFromFireblocks-zp5Jbq2J.cjs.map +0 -1
  326. package/dist/updateAuthFromVerifyResponse-BLgNMqwN.esm.js.map +0 -1
  327. package/dist/updateAuthFromVerifyResponse-CTvWpZLa.native.esm.js.map +0 -1
  328. package/dist/updateAuthFromVerifyResponse-Dsw-eAro.cjs.map +0 -1
  329. package/dist/waas.cjs.map +0 -1
  330. package/dist/waas.esm.js.map +0 -1
  331. package/dist/waas.native.esm.js.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,15 +1,16 @@
1
- const require_updateAuthFromVerifyResponse = require('./updateAuthFromVerifyResponse-Dsw-eAro.cjs');
2
- const require_getNetworkProviderFromNetworkId = require('./getNetworkProviderFromNetworkId-igDf2OPy.cjs');
3
- const require_isDynamicWaasEnabled = require('./isDynamicWaasEnabled-CMccs1-6.cjs');
4
- const require_isUserOnboardingComplete = require('./isUserOnboardingComplete-jv_idxWY.cjs');
5
- const require_getWalletProviderByKey = require('./getWalletProviderByKey-DzpmoNlv.cjs');
6
- const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-DKfoMhEk.cjs');
1
+ const require_logoutWithReason = require('./logoutWithReason-DEM0fiik.cjs');
2
+ const require_migrateFromFireblocks = require('./migrateFromFireblocks-BOx3tLrP.cjs');
3
+ const require_waas = require('./waas-BYn7tsbq.cjs');
4
+ const require_getNetworkProviderFromNetworkId = require('./getNetworkProviderFromNetworkId-D3308b6r.cjs');
5
+ const require_getVerifiedCredentialForWalletAccount = require('./getVerifiedCredentialForWalletAccount-DZS1-K7H.cjs');
6
+ const require_isUserOnboardingComplete = require('./isUserOnboardingComplete-CwZbDdOC.cjs');
7
+ const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-BSclknqX.cjs');
7
8
  let _dynamic_labs_sdk_assert_package_version = require("@dynamic-labs-sdk/assert-package-version");
8
9
  let _dynamic_labs_sdk_api_core = require("@dynamic-labs/sdk-api-core");
9
10
  let zod_mini = require("zod/mini");
10
- zod_mini = require_updateAuthFromVerifyResponse.__toESM(zod_mini);
11
+ zod_mini = require_logoutWithReason.__toESM(zod_mini);
11
12
  let eventemitter3 = require("eventemitter3");
12
- eventemitter3 = require_updateAuthFromVerifyResponse.__toESM(eventemitter3);
13
+ eventemitter3 = require_logoutWithReason.__toESM(eventemitter3);
13
14
  let _simplewebauthn_browser = require("@simplewebauthn/browser");
14
15
 
15
16
  //#region src/modules/state/raiseStateEvents/events.ts
@@ -30,13 +31,32 @@ const stateChangeEvents = {
30
31
  };
31
32
 
32
33
  //#endregion
33
- //#region src/utils/getNonce/prefetchNoncesIfNeeded/prefetchNoncesIfNeeded.ts
34
- /** @notInstrumented */
35
- const prefetchNoncesIfNeeded = async (client) => {
36
- const stored = await require_updateAuthFromVerifyResponse.updateNoncePoolStorage({ update: () => null }, client);
37
- if (stored !== null && stored.expiration > Date.now() && stored.nonces.length >= require_updateAuthFromVerifyResponse.NONCE_POOL_SIZE) return;
38
- await require_updateAuthFromVerifyResponse.fetchAndStoreNonces(client);
39
- };
34
+ //#region src/modules/mfa/mfa.consts.ts
35
+ /**
36
+ * Identifies the MFA action required by WaaS authentication operations.
37
+ *
38
+ * @see createWaasProvider
39
+ * @see consumeMfaTokenIfRequiredForAction
40
+ */
41
+ const MFAAction = _dynamic_labs_sdk_api_core.MFAAction;
42
+
43
+ //#endregion
44
+ //#region src/modules/user/user.consts.ts
45
+ /**
46
+ * Identifies the format of a verified credential returned for an authenticated
47
+ * user.
48
+ *
49
+ * @see User
50
+ * @see getUserSocialAccounts
51
+ */
52
+ const JwtVerifiedCredentialFormatEnum = _dynamic_labs_sdk_api_core.JwtVerifiedCredentialFormatEnum;
53
+ /**
54
+ * Identifies the social provider associated with an authenticated credential.
55
+ *
56
+ * @see User
57
+ * @see signInWithSocialPopUp
58
+ */
59
+ const ProviderEnum = _dynamic_labs_sdk_api_core.ProviderEnum;
40
60
 
41
61
  //#endregion
42
62
  //#region src/services/runtimeServices/createRuntimeServices/createRuntimeServices.ts
@@ -55,6 +75,15 @@ const createRuntimeServices = () => {
55
75
  };
56
76
  };
57
77
 
78
+ //#endregion
79
+ //#region src/utils/getNonce/prefetchNoncesIfNeeded/prefetchNoncesIfNeeded.ts
80
+ /** @notInstrumented */
81
+ const prefetchNoncesIfNeeded = async (client) => {
82
+ const stored = await require_logoutWithReason.updateNoncePoolStorage({ update: () => null }, client);
83
+ if (stored !== null && stored.expiration > Date.now() && stored.nonces.length >= require_logoutWithReason.NONCE_POOL_SIZE) return;
84
+ await require_logoutWithReason.fetchAndStoreNonces(client);
85
+ };
86
+
58
87
  //#endregion
59
88
  //#region src/modules/auth/initializeAuth/setLongTimeout/setLongTimeout.ts
60
89
  /**
@@ -85,7 +114,7 @@ const setLongTimeout = ({ callback, delay }) => {
85
114
  * @notInstrumented
86
115
  */
87
116
  const initializeAuth = (client) => {
88
- const core = require_updateAuthFromVerifyResponse.getCore(client);
117
+ const core = require_logoutWithReason.getCore(client);
89
118
  let clearExpirationTimeout = null;
90
119
  const onChangeExpiration = require_getNetworkProviderFromNetworkId.subscribeWithSelector(core.state, (state) => state.sessionExpiresAt);
91
120
  const checkExpiration = () => {
@@ -95,7 +124,7 @@ const initializeAuth = (client) => {
95
124
  const now = /* @__PURE__ */ new Date();
96
125
  const timeUntilExpiration = expiration.getTime() - now.getTime();
97
126
  if (timeUntilExpiration <= 0) {
98
- require_updateAuthFromVerifyResponse.__logoutWithReason_wrapped({ reason: "token-expired" }, client);
127
+ require_logoutWithReason.__logoutWithReason_wrapped({ reason: "token-expired" }, client);
99
128
  return;
100
129
  }
101
130
  clearExpirationTimeout = setLongTimeout({
@@ -127,13 +156,13 @@ const initializeAuth = (client) => {
127
156
  * @notInstrumented
128
157
  */
129
158
  const setupCrossTabEventSync = (client) => {
130
- const core = require_updateAuthFromVerifyResponse.getCore(client);
159
+ const core = require_logoutWithReason.getCore(client);
131
160
  const handleDeviceRegistrationCompleted = () => {
132
161
  core.crossTabBroadcast.send({ event: "deviceRegistrationCompleted" });
133
162
  };
134
163
  core.eventEmitter.on("deviceRegistrationCompleted", handleDeviceRegistrationCompleted);
135
164
  const handleCrossTabDeviceRegistrationCompleted = () => {
136
- require_updateAuthFromVerifyResponse.emitEvent({ event: "deviceRegistrationCompletedInAnotherTab" }, client);
165
+ require_logoutWithReason.emitEvent({ event: "deviceRegistrationCompletedInAnotherTab" }, client);
137
166
  };
138
167
  core.crossTabBroadcast.on("deviceRegistrationCompleted", handleCrossTabDeviceRegistrationCompleted);
139
168
  };
@@ -160,7 +189,7 @@ const walletProviderKeyMapSchema = zod_mini.record(zod_mini.string(), zod_mini.s
160
189
 
161
190
  //#endregion
162
191
  //#region src/modules/storageSync/schema.ts
163
- const stateStorageKeySchema = require_updateAuthFromVerifyResponse.createStorageKeySchema({
192
+ const stateStorageKeySchema = require_logoutWithReason.createStorageKeySchema({
164
193
  key: "state",
165
194
  schema: zod_mini.object({
166
195
  apiVersion: zod_mini.string(),
@@ -170,7 +199,7 @@ const stateStorageKeySchema = require_updateAuthFromVerifyResponse.createStorage
170
199
  walletProviderKeyMap: walletProviderKeyMapSchema
171
200
  })
172
201
  });
173
- const sessionStorageKeySchema = require_updateAuthFromVerifyResponse.createStorageKeySchema({
202
+ const sessionStorageKeySchema = require_logoutWithReason.createStorageKeySchema({
174
203
  config: { storageTier: "secure" },
175
204
  key: "session",
176
205
  schema: zod_mini.object({
@@ -191,7 +220,7 @@ const sessionStorageKeySchema = require_updateAuthFromVerifyResponse.createStora
191
220
 
192
221
  //#endregion
193
222
  //#region src/modules/keychainMigration/migrateSessionKeyToKeychain/KeyMigrationError.ts
194
- var KeyMigrationError = class extends require_updateAuthFromVerifyResponse.BaseError {
223
+ var KeyMigrationError = class extends require_logoutWithReason.BaseError {
195
224
  constructor(expectedPublicKey, importedPublicKey) {
196
225
  super({
197
226
  cause: null,
@@ -261,10 +290,10 @@ const migrateSessionKeyToKeychain = async ({ keychain, logger, state, storage })
261
290
  //#region src/modules/state/raiseStateEvents/raiseStateEvents.ts
262
291
  /** @notInstrumented */
263
292
  const raiseStateEvents = (client) => {
264
- require_updateAuthFromVerifyResponse.getCore(client).state.subscribe((value, previous) => {
293
+ require_logoutWithReason.getCore(client).state.subscribe((value, previous) => {
265
294
  Object.entries(stateChangeEvents).forEach(([key, event]) => {
266
295
  if (require_getNetworkProviderFromNetworkId.isEqualShallow(value[key], previous[key])) return;
267
- require_updateAuthFromVerifyResponse.emitEvent({
296
+ require_logoutWithReason.emitEvent({
268
297
  args: { [key]: value[key] },
269
298
  event
270
299
  }, client);
@@ -276,7 +305,7 @@ const raiseStateEvents = (client) => {
276
305
  //#region src/modules/storageSync/hydrateStateWithStorage/hydrateStateWithStorage.ts
277
306
  /** @notInstrumented */
278
307
  const hydrateStateWithStorage = async (client) => {
279
- const core = require_updateAuthFromVerifyResponse.getCore(client);
308
+ const core = require_logoutWithReason.getCore(client);
280
309
  const previousState = core.state.get();
281
310
  const stateChanges = {};
282
311
  const session = await core.storage.getItem(sessionStorageKeySchema);
@@ -296,21 +325,21 @@ const hydrateStateWithStorage = async (client) => {
296
325
  stateChanges.sessionKeys = session.sessionKeys;
297
326
  }
298
327
  const storedState = await core.storage.getItem(stateStorageKeySchema);
299
- if (storedState?.apiVersion === require_updateAuthFromVerifyResponse.SDK_API_CORE_VERSION) {
328
+ if (storedState?.apiVersion === require_logoutWithReason.SDK_API_CORE_VERSION) {
300
329
  stateChanges.unverifiedWalletAccounts = storedState.unverifiedWalletAccounts;
301
330
  stateChanges.walletProviderKeyMap = storedState.walletProviderKeyMap;
302
331
  if (isSessionValid) stateChanges.user = storedState.user;
303
332
  if (isSessionValid || (storedState.unverifiedWalletAccounts ?? []).length > 0) stateChanges.projectSettings = storedState.projectSettings;
304
333
  }
305
334
  if (Object.keys(stateChanges).length > 0) core.state.set(stateChanges);
306
- require_updateAuthFromVerifyResponse.checkAndRaiseWalletAccountsChangedEvent({ previousState }, client);
335
+ require_logoutWithReason.checkAndRaiseWalletAccountsChangedEvent({ previousState }, client);
307
336
  };
308
337
 
309
338
  //#endregion
310
339
  //#region src/modules/storageSync/syncStateWithStorage/syncStateWithStorage.ts
311
340
  /** @notInstrumented */
312
341
  const syncStateWithStorage = (client) => {
313
- const core = require_updateAuthFromVerifyResponse.getCore(client);
342
+ const core = require_logoutWithReason.getCore(client);
314
343
  core.state.subscribe((state) => {
315
344
  if (state.sessionExpiresAt === null) core.storage.removeItem(sessionStorageKeySchema);
316
345
  else core.storage.setItem(sessionStorageKeySchema, {
@@ -328,7 +357,7 @@ const syncStateWithStorage = (client) => {
328
357
  token: state.token
329
358
  });
330
359
  core.storage.setItem(stateStorageKeySchema, {
331
- apiVersion: require_updateAuthFromVerifyResponse.SDK_API_CORE_VERSION,
360
+ apiVersion: require_logoutWithReason.SDK_API_CORE_VERSION,
332
361
  projectSettings: state.projectSettings,
333
362
  unverifiedWalletAccounts: state.unverifiedWalletAccounts,
334
363
  user: state.user,
@@ -351,7 +380,7 @@ const initializeStorageSync = async (client) => {
351
380
  * Refreshes the current user's profile from the server.
352
381
  *
353
382
  * This fetches the latest authenticated user from the backend and updates only
354
- * the local user state, returning the `SdkUser`. It does not touch the auth
383
+ * the local user state, returning the `User`. It does not touch the auth
355
384
  * token — use it when you just need up-to-date user data.
356
385
  *
357
386
  * Prefer `refreshAuth` when you need to rotate the auth token as well: it runs
@@ -371,22 +400,22 @@ const initializeStorageSync = async (client) => {
371
400
  * @instrumented
372
401
  * @noHook Low-level refresh primitive that is not exposed as a React hook.
373
402
  */
374
- const refreshUser = async (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
375
- const core = require_updateAuthFromVerifyResponse.getCore(client);
376
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
403
+ const refreshUser = async (client = require_logoutWithReason.getDefaultClient()) => {
404
+ const core = require_logoutWithReason.getCore(client);
405
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
377
406
  const previousState = { ...core.state.get() };
378
407
  const user = await apiClient.getAuthenticatedUser({ environmentId: core.environmentId });
379
408
  core.state.set({ user });
380
- require_updateAuthFromVerifyResponse.checkAndRaiseWalletAccountsChangedEvent({ previousState }, client);
409
+ require_logoutWithReason.checkAndRaiseWalletAccountsChangedEvent({ previousState }, client);
381
410
  return user;
382
411
  };
383
412
  const __refreshUser_impl = refreshUser;
384
- const __refreshUser_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
413
+ const __refreshUser_wrapped = require_logoutWithReason.instrumentFunction({
385
414
  fn: __refreshUser_impl,
386
415
  functionName: "refreshUser",
387
416
  getCore: () => {
388
417
  try {
389
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
418
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
390
419
  } catch {
391
420
  return;
392
421
  }
@@ -395,7 +424,7 @@ const __refreshUser_wrapped = require_updateAuthFromVerifyResponse.instrumentFun
395
424
 
396
425
  //#endregion
397
426
  //#region src/errors/ClientAlreadyInitializedError.ts
398
- var ClientAlreadyInitializedError = class extends require_updateAuthFromVerifyResponse.BaseError {
427
+ var ClientAlreadyInitializedError = class extends require_logoutWithReason.BaseError {
399
428
  constructor() {
400
429
  super({
401
430
  cause: null,
@@ -425,19 +454,19 @@ var ClientAlreadyInitializedError = class extends require_updateAuthFromVerifyRe
425
454
  * @notInstrumented
426
455
  */
427
456
  const logoutIfSessionPublicKeyMismatched = async (client) => {
428
- const core = require_updateAuthFromVerifyResponse.getCore(client);
457
+ const core = require_logoutWithReason.getCore(client);
429
458
  const { sessionKeys, token } = core.state.get();
430
459
  if (!sessionKeys || !token) return;
431
460
  let tokenSessionPublicKey;
432
461
  try {
433
- ({sessionPublicKey: tokenSessionPublicKey} = require_updateAuthFromVerifyResponse.decodeJwt(token));
462
+ ({sessionPublicKey: tokenSessionPublicKey} = require_logoutWithReason.decodeJwt(token));
434
463
  } catch (error) {
435
464
  core.logger.error("[logoutIfSessionPublicKeyMismatched] Failed to decode token", error);
436
465
  return;
437
466
  }
438
467
  if (tokenSessionPublicKey && tokenSessionPublicKey !== sessionKeys) {
439
468
  core.logger.error("[logoutIfSessionPublicKeyMismatched] Session key does not match token claim");
440
- await require_updateAuthFromVerifyResponse.__logoutWithReason_wrapped({ reason: "session-public-key-mismatch" }, client);
469
+ await require_logoutWithReason.__logoutWithReason_wrapped({ reason: "session-public-key-mismatch" }, client);
441
470
  }
442
471
  };
443
472
 
@@ -474,8 +503,8 @@ const logoutIfSessionPublicKeyMismatched = async (client) => {
474
503
  * @instrumented
475
504
  * @noHook Client lifecycle management is not exposed as a React hook.
476
505
  */
477
- const initializeClient = async (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
478
- const core = require_updateAuthFromVerifyResponse.getCore(client);
506
+ const initializeClient = async (client = require_logoutWithReason.getDefaultClient()) => {
507
+ const core = require_logoutWithReason.getCore(client);
479
508
  core.logger.debug("[initializeClient] Initializing client. Current init status", core.state.get().initStatus);
480
509
  if (core.state.get().initStatus !== "uninitialized") throw new ClientAlreadyInitializedError();
481
510
  core.state.set({
@@ -492,11 +521,11 @@ const initializeClient = async (client = require_updateAuthFromVerifyResponse.ge
492
521
  logger: core.logger,
493
522
  state: core.state,
494
523
  storage: core.storage
495
- }).catch(() => require_updateAuthFromVerifyResponse.__logoutWithReason_wrapped({ reason: "keychain-migration-failed" }, client));
496
- if (core.state.get().sessionKeys && !await core.keychain.hasKey("session")) await require_updateAuthFromVerifyResponse.__logoutWithReason_wrapped({ reason: "keychain-key-missing" }, client);
524
+ }).catch(() => require_logoutWithReason.__logoutWithReason_wrapped({ reason: "keychain-migration-failed" }, client));
525
+ if (core.state.get().sessionKeys && !await core.keychain.hasKey("session")) await require_logoutWithReason.__logoutWithReason_wrapped({ reason: "keychain-key-missing" }, client);
497
526
  await logoutIfSessionPublicKeyMismatched(client);
498
527
  }).then(async () => {
499
- if (!core.state.get().projectSettings) await require_updateAuthFromVerifyResponse.fetchProjectSettings(client);
528
+ if (!core.state.get().projectSettings) await require_logoutWithReason.fetchProjectSettings(client);
500
529
  });
501
530
  fetchProjectSettingsPromise.then(() => prefetchNoncesIfNeeded(client)).catch((error) => {
502
531
  core.logger.error("Failed to prefetch nonces:", error);
@@ -505,7 +534,7 @@ const initializeClient = async (client = require_updateAuthFromVerifyResponse.ge
505
534
  * Generate session keys if they don't exist
506
535
  */
507
536
  const generateSessionKeysPromise = fetchProjectSettingsPromise.then(async () => {
508
- if (!core.state.get().sessionKeys) await require_updateAuthFromVerifyResponse.generateSessionKeys(client);
537
+ if (!core.state.get().sessionKeys) await require_logoutWithReason.generateSessionKeys(client);
509
538
  });
510
539
  /**
511
540
  * Refresh user state on initialization when cookie is enabled.
@@ -527,10 +556,10 @@ const initializeClient = async (client = require_updateAuthFromVerifyResponse.ge
527
556
  * This call can fail with a 401 error if the user is not logged in and the SDK should finish its initialization process
528
557
  * without throwing an error because that is an expected behavior.
529
558
  */
530
- if (require_updateAuthFromVerifyResponse.isCookieEnabled(client)) await require_isDynamicWaasEnabled.__refreshAuth_wrapped(client).catch(async (error) => {
559
+ if (require_logoutWithReason.isCookieEnabled(client)) await require_logoutWithReason.__refreshAuth_wrapped(client).catch(async (error) => {
531
560
  if (error.status === 401) {
532
561
  core.logger.error("Session expired during initialization", error);
533
- if (client.user) await require_updateAuthFromVerifyResponse.__logoutWithReason_wrapped({ reason: "session-refresh-unauthorized" }, client);
562
+ if (client.user) await require_logoutWithReason.__logoutWithReason_wrapped({ reason: "session-refresh-unauthorized" }, client);
534
563
  } else throw error;
535
564
  });
536
565
  });
@@ -541,7 +570,7 @@ const initializeClient = async (client = require_updateAuthFromVerifyResponse.ge
541
570
  */
542
571
  const refreshUserStateFromValidTokenPromise = refreshUserStateFromCookiePromise.then(async () => {
543
572
  if (core.state.get().token && !core.state.get().user) await __refreshUser_wrapped(client).catch(async () => {
544
- await require_updateAuthFromVerifyResponse.__logoutWithReason_wrapped({ reason: "user-refresh-failed" }, client);
573
+ await require_logoutWithReason.__logoutWithReason_wrapped({ reason: "user-refresh-failed" }, client);
545
574
  });
546
575
  });
547
576
  core.initTrack.track({
@@ -575,15 +604,15 @@ const initializeClient = async (client = require_updateAuthFromVerifyResponse.ge
575
604
  });
576
605
  throw error;
577
606
  }
578
- if (client.user) require_updateAuthFromVerifyResponse.initializeWaasClientsForEagerRecovery(client);
607
+ if (client.user) require_logoutWithReason.initializeWaasClientsForEagerRecovery(client);
579
608
  };
580
609
  const __initializeClient_impl = initializeClient;
581
- const __initializeClient_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
610
+ const __initializeClient_wrapped = require_logoutWithReason.instrumentFunction({
582
611
  fn: __initializeClient_impl,
583
612
  functionName: "initializeClient",
584
613
  getCore: () => {
585
614
  try {
586
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
615
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
587
616
  } catch {
588
617
  return;
589
618
  }
@@ -681,22 +710,22 @@ const connectLoggerToInstrumentation = ({ environmentId, extensions, instrumenta
681
710
  const { token, user } = state.get();
682
711
  instrumentation.log({
683
712
  environmentId,
684
- operatingSystem: require_updateAuthFromVerifyResponse.getOperatingSystem(),
685
- parameters: require_updateAuthFromVerifyResponse.scrubParameters({
713
+ operatingSystem: require_logoutWithReason.getOperatingSystem(),
714
+ parameters: require_logoutWithReason.scrubParameters({
686
715
  piiFields: instrumentation.config.piiFields,
687
716
  value: {
688
717
  args,
689
718
  message
690
719
  }
691
720
  }),
692
- platform: require_updateAuthFromVerifyResponse.getPlatform(),
721
+ platform: require_logoutWithReason.getPlatform(),
693
722
  registeredExtensionKeys: Array.from(extensions),
694
723
  sdkSessionId,
695
724
  sdkVersion,
696
725
  status: "error",
697
726
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
698
- tokenSessionId: token ? require_updateAuthFromVerifyResponse.extractSessionId(token) : null,
699
- userAgent: require_updateAuthFromVerifyResponse.getUserAgent(),
727
+ tokenSessionId: token ? require_logoutWithReason.extractSessionId(token) : null,
728
+ userAgent: require_logoutWithReason.getUserAgent(),
700
729
  userId: user?.id ?? null
701
730
  });
702
731
  });
@@ -705,7 +734,7 @@ const connectLoggerToInstrumentation = ({ environmentId, extensions, instrumenta
705
734
  //#endregion
706
735
  //#region src/services/instrumentation/createInstrumentation/createInstrumentation.ts
707
736
  const buildPiiFields = (customFields = []) => {
708
- const merged = [...require_updateAuthFromVerifyResponse.DEFAULT_PII_FIELDS, ...customFields];
737
+ const merged = [...require_logoutWithReason.DEFAULT_PII_FIELDS, ...customFields];
709
738
  return [...new Set(merged)];
710
739
  };
711
740
  /**
@@ -862,7 +891,7 @@ const createDebouncedMutex = () => {
862
891
  timer: null
863
892
  });
864
893
  const currentState = mutexState.get(lockKey);
865
- require_updateAuthFromVerifyResponse.assertDefined(currentState, `Mutex state for key ${lockKey} not found`);
894
+ require_logoutWithReason.assertDefined(currentState, `Mutex state for key ${lockKey} not found`);
866
895
  currentState.resolutionPromises.push(resolutionPromise);
867
896
  if (currentState.timer) clearTimeout(currentState.timer);
868
897
  currentState.nextCallback = callback;
@@ -889,7 +918,7 @@ const createDebouncedMutex = () => {
889
918
 
890
919
  //#endregion
891
920
  //#region src/errors/InvalidStorageValue.ts
892
- var InvalidStorageValue = class extends require_updateAuthFromVerifyResponse.BaseError {
921
+ var InvalidStorageValue = class extends require_logoutWithReason.BaseError {
893
922
  constructor(key, value) {
894
923
  super({
895
924
  cause: null,
@@ -1020,7 +1049,7 @@ const createCore = (config) => {
1020
1049
  const debouncedMutex = createDebouncedMutex();
1021
1050
  const eventEmitter = createEventEmitter();
1022
1051
  const initTrack = createAsyncTrack();
1023
- const sdkSessionId = require_updateAuthFromVerifyResponse.randomString({ length: 32 });
1052
+ const sdkSessionId = require_logoutWithReason.randomString({ length: 32 });
1024
1053
  const instrumentation = createInstrumentation({ config: config.instrumentation });
1025
1054
  const extensions = /* @__PURE__ */ new Set();
1026
1055
  connectLoggerToInstrumentation({
@@ -1029,7 +1058,7 @@ const createCore = (config) => {
1029
1058
  instrumentation,
1030
1059
  logger,
1031
1060
  sdkSessionId,
1032
- sdkVersion: require_updateAuthFromVerifyResponse.version,
1061
+ sdkVersion: require_logoutWithReason.version,
1033
1062
  state
1034
1063
  });
1035
1064
  if (!require_getNetworkProviderFromNetworkId.isServerSideRendering()) instrumentation.setTransport(createDynamicTransport({
@@ -1071,7 +1100,7 @@ const createCore = (config) => {
1071
1100
  storage,
1072
1101
  subscribeToAppForeground,
1073
1102
  transformers: config.transformers,
1074
- version: require_updateAuthFromVerifyResponse.version,
1103
+ version: require_logoutWithReason.version,
1075
1104
  waas: config.waas
1076
1105
  };
1077
1106
  };
@@ -1097,9 +1126,9 @@ const MAX_MAX_LOAD_RETRIES = 10;
1097
1126
  */
1098
1127
  const assertClientProps = (config) => {
1099
1128
  const loadTimeoutMs = config.waas?.loadTimeoutMs;
1100
- if (loadTimeoutMs !== void 0 && (!Number.isFinite(loadTimeoutMs) || loadTimeoutMs < MIN_LOAD_TIMEOUT_MS || loadTimeoutMs > MAX_LOAD_TIMEOUT_MS)) throw new require_updateAuthFromVerifyResponse.InvalidParamError(`waas.loadTimeoutMs must be a number between ${MIN_LOAD_TIMEOUT_MS} and ${MAX_LOAD_TIMEOUT_MS}`);
1129
+ if (loadTimeoutMs !== void 0 && (!Number.isFinite(loadTimeoutMs) || loadTimeoutMs < MIN_LOAD_TIMEOUT_MS || loadTimeoutMs > MAX_LOAD_TIMEOUT_MS)) throw new require_logoutWithReason.InvalidParamError(`waas.loadTimeoutMs must be a number between ${MIN_LOAD_TIMEOUT_MS} and ${MAX_LOAD_TIMEOUT_MS}`);
1101
1130
  const maxLoadRetries = config.waas?.maxLoadRetries;
1102
- if (maxLoadRetries !== void 0 && (!Number.isInteger(maxLoadRetries) || maxLoadRetries < MIN_MAX_LOAD_RETRIES || maxLoadRetries > MAX_MAX_LOAD_RETRIES)) throw new require_updateAuthFromVerifyResponse.InvalidParamError(`waas.maxLoadRetries must be an integer between ${MIN_MAX_LOAD_RETRIES} and ${MAX_MAX_LOAD_RETRIES}`);
1131
+ if (maxLoadRetries !== void 0 && (!Number.isInteger(maxLoadRetries) || maxLoadRetries < MIN_MAX_LOAD_RETRIES || maxLoadRetries > MAX_MAX_LOAD_RETRIES)) throw new require_logoutWithReason.InvalidParamError(`waas.maxLoadRetries must be an integer between ${MIN_MAX_LOAD_RETRIES} and ${MAX_MAX_LOAD_RETRIES}`);
1103
1132
  };
1104
1133
 
1105
1134
  //#endregion
@@ -1165,16 +1194,16 @@ const createDynamicClient = (config) => {
1165
1194
  core.logger.debug("[createDynamicClient] Initializing client...");
1166
1195
  __initializeClient_wrapped(client);
1167
1196
  }
1168
- require_updateAuthFromVerifyResponse.setDefaultClient(client);
1197
+ require_logoutWithReason.setDefaultClient(client);
1169
1198
  return client;
1170
1199
  };
1171
1200
  const __createDynamicClient_impl = createDynamicClient;
1172
- const __createDynamicClient_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
1201
+ const __createDynamicClient_wrapped = require_logoutWithReason.instrumentFunction({
1173
1202
  fn: __createDynamicClient_impl,
1174
1203
  functionName: "createDynamicClient",
1175
1204
  getCore: () => {
1176
1205
  try {
1177
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
1206
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
1178
1207
  } catch {
1179
1208
  return;
1180
1209
  }
@@ -1183,7 +1212,7 @@ const __createDynamicClient_wrapped = require_updateAuthFromVerifyResponse.instr
1183
1212
 
1184
1213
  //#endregion
1185
1214
  //#region src/errors/CheckoutSessionTokenMissingError.ts
1186
- var CheckoutSessionTokenMissingError = class extends require_updateAuthFromVerifyResponse.BaseError {
1215
+ var CheckoutSessionTokenMissingError = class extends require_logoutWithReason.BaseError {
1187
1216
  constructor({ transactionId }) {
1188
1217
  super({
1189
1218
  cause: null,
@@ -1226,7 +1255,7 @@ var CheckoutSessionTokenMissingError = class extends require_updateAuthFromVerif
1226
1255
  * @see createCoinbaseExchangeTransfer
1227
1256
  * @see CoinbaseTransferMfaRequiredError
1228
1257
  */
1229
- var CoinbaseTransferMfaFailedError = class extends require_updateAuthFromVerifyResponse.BaseError {
1258
+ var CoinbaseTransferMfaFailedError = class extends require_logoutWithReason.BaseError {
1230
1259
  constructor({ cause }) {
1231
1260
  super({
1232
1261
  cause,
@@ -1272,7 +1301,7 @@ var CoinbaseTransferMfaFailedError = class extends require_updateAuthFromVerifyR
1272
1301
  * @see createCoinbaseExchangeTransfer
1273
1302
  * @see CoinbaseTransferMfaFailedError
1274
1303
  */
1275
- var CoinbaseTransferMfaRequiredError = class extends require_updateAuthFromVerifyResponse.BaseError {
1304
+ var CoinbaseTransferMfaRequiredError = class extends require_logoutWithReason.BaseError {
1276
1305
  constructor({ cause }) {
1277
1306
  super({
1278
1307
  cause,
@@ -1324,7 +1353,7 @@ var CoinbaseTransferMfaRequiredError = class extends require_updateAuthFromVerif
1324
1353
  * @see CoinbaseTravelRuleFieldName
1325
1354
  * @see https://docs.cdp.coinbase.com/coinbase-app/transfer-apis/travel-rule
1326
1355
  */
1327
- var CoinbaseTravelRuleRequiredError = class extends require_updateAuthFromVerifyResponse.BaseError {
1356
+ var CoinbaseTravelRuleRequiredError = class extends require_logoutWithReason.BaseError {
1328
1357
  missingFields;
1329
1358
  constructor({ cause, missingFields }) {
1330
1359
  super({
@@ -1341,7 +1370,7 @@ var CoinbaseTravelRuleRequiredError = class extends require_updateAuthFromVerify
1341
1370
 
1342
1371
  //#endregion
1343
1372
  //#region src/errors/DeeplinkConnectAndVerifyUnsupportedError.ts
1344
- var DeeplinkConnectAndVerifyUnsupportedError = class extends require_updateAuthFromVerifyResponse.BaseError {
1373
+ var DeeplinkConnectAndVerifyUnsupportedError = class extends require_logoutWithReason.BaseError {
1345
1374
  constructor({ walletProviderKey }) {
1346
1375
  super({
1347
1376
  cause: null,
@@ -1383,7 +1412,7 @@ var DeeplinkConnectAndVerifyUnsupportedError = class extends require_updateAuthF
1383
1412
  * @see completeDeviceRegistration
1384
1413
  * @see InvalidDeviceRegistrationRedirectError
1385
1414
  */
1386
- var DeviceRegistrationIdentityMismatchError = class extends require_updateAuthFromVerifyResponse.BaseError {
1415
+ var DeviceRegistrationIdentityMismatchError = class extends require_logoutWithReason.BaseError {
1387
1416
  constructor() {
1388
1417
  super({
1389
1418
  cause: null,
@@ -1398,7 +1427,7 @@ var DeviceRegistrationIdentityMismatchError = class extends require_updateAuthFr
1398
1427
 
1399
1428
  //#endregion
1400
1429
  //#region src/errors/FeeEstimationFailedError.ts
1401
- var FeeEstimationFailedError = class extends require_updateAuthFromVerifyResponse.BaseError {
1430
+ var FeeEstimationFailedError = class extends require_logoutWithReason.BaseError {
1402
1431
  constructor(params) {
1403
1432
  super({
1404
1433
  cause: params.cause || null,
@@ -1412,7 +1441,7 @@ var FeeEstimationFailedError = class extends require_updateAuthFromVerifyRespons
1412
1441
 
1413
1442
  //#endregion
1414
1443
  //#region src/errors/FlowSessionTokenMissingError.ts
1415
- var FlowSessionTokenMissingError = class extends require_updateAuthFromVerifyResponse.BaseError {
1444
+ var FlowSessionTokenMissingError = class extends require_logoutWithReason.BaseError {
1416
1445
  constructor({ flowId }) {
1417
1446
  super({
1418
1447
  cause: null,
@@ -1426,7 +1455,7 @@ var FlowSessionTokenMissingError = class extends require_updateAuthFromVerifyRes
1426
1455
 
1427
1456
  //#endregion
1428
1457
  //#region src/errors/InvalidDeviceRegistrationRedirectError.ts
1429
- var InvalidDeviceRegistrationRedirectError = class extends require_updateAuthFromVerifyResponse.BaseError {
1458
+ var InvalidDeviceRegistrationRedirectError = class extends require_logoutWithReason.BaseError {
1430
1459
  constructor() {
1431
1460
  super({
1432
1461
  cause: null,
@@ -1441,7 +1470,7 @@ var InvalidDeviceRegistrationRedirectError = class extends require_updateAuthFro
1441
1470
 
1442
1471
  //#endregion
1443
1472
  //#region src/errors/InvalidRedirectStorageStateError.ts
1444
- var InvalidRedirectStorageStateError = class extends require_updateAuthFromVerifyResponse.BaseError {
1473
+ var InvalidRedirectStorageStateError = class extends require_logoutWithReason.BaseError {
1445
1474
  constructor() {
1446
1475
  super({
1447
1476
  cause: null,
@@ -1455,7 +1484,7 @@ var InvalidRedirectStorageStateError = class extends require_updateAuthFromVerif
1455
1484
 
1456
1485
  //#endregion
1457
1486
  //#region src/errors/InvalidSocialCallbackOriginError.ts
1458
- var InvalidSocialCallbackOriginError = class extends require_updateAuthFromVerifyResponse.BaseError {
1487
+ var InvalidSocialCallbackOriginError = class extends require_logoutWithReason.BaseError {
1459
1488
  constructor({ actualOrigin, expectedOrigin }) {
1460
1489
  super({
1461
1490
  cause: null,
@@ -1469,7 +1498,7 @@ var InvalidSocialCallbackOriginError = class extends require_updateAuthFromVerif
1469
1498
 
1470
1499
  //#endregion
1471
1500
  //#region src/errors/MissingRedirectStorageStateError.ts
1472
- var MissingRedirectStorageStateError = class extends require_updateAuthFromVerifyResponse.BaseError {
1501
+ var MissingRedirectStorageStateError = class extends require_logoutWithReason.BaseError {
1473
1502
  constructor() {
1474
1503
  super({
1475
1504
  cause: null,
@@ -1483,7 +1512,7 @@ var MissingRedirectStorageStateError = class extends require_updateAuthFromVerif
1483
1512
 
1484
1513
  //#endregion
1485
1514
  //#region src/errors/MissingSocialUrlParamError.ts
1486
- var MissingSocialUrlParamError = class extends require_updateAuthFromVerifyResponse.BaseError {
1515
+ var MissingSocialUrlParamError = class extends require_logoutWithReason.BaseError {
1487
1516
  constructor(param) {
1488
1517
  super({
1489
1518
  cause: null,
@@ -1497,7 +1526,7 @@ var MissingSocialUrlParamError = class extends require_updateAuthFromVerifyRespo
1497
1526
 
1498
1527
  //#endregion
1499
1528
  //#region src/errors/MissingUserVerificationError.ts
1500
- var MissingUserVerificationError = class extends require_updateAuthFromVerifyResponse.BaseError {
1529
+ var MissingUserVerificationError = class extends require_logoutWithReason.BaseError {
1501
1530
  informationToVerify;
1502
1531
  constructor({ informationToVerify, message }) {
1503
1532
  super({
@@ -1513,7 +1542,7 @@ var MissingUserVerificationError = class extends require_updateAuthFromVerifyRes
1513
1542
 
1514
1543
  //#endregion
1515
1544
  //#region src/errors/NetworkAddingUnavailableError.ts
1516
- var NetworkAddingUnavailableError = class extends require_updateAuthFromVerifyResponse.BaseError {
1545
+ var NetworkAddingUnavailableError = class extends require_logoutWithReason.BaseError {
1517
1546
  constructor({ walletProviderKey, originalError, extraMessages }) {
1518
1547
  const cause = originalError instanceof Error ? originalError : null;
1519
1548
  super({
@@ -1529,7 +1558,7 @@ var NetworkAddingUnavailableError = class extends require_updateAuthFromVerifyRe
1529
1558
 
1530
1559
  //#endregion
1531
1560
  //#region src/errors/NetworkNotAddedError.ts
1532
- var NetworkNotAddedError = class extends require_updateAuthFromVerifyResponse.BaseError {
1561
+ var NetworkNotAddedError = class extends require_logoutWithReason.BaseError {
1533
1562
  networkData;
1534
1563
  constructor({ networkData, networkId, originalError, walletProviderKey }) {
1535
1564
  const cause = originalError instanceof Error ? originalError : null;
@@ -1552,7 +1581,7 @@ var NetworkNotAddedError = class extends require_updateAuthFromVerifyResponse.Ba
1552
1581
 
1553
1582
  //#endregion
1554
1583
  //#region src/errors/NetworkSwitchingUnavailableError.ts
1555
- var NetworkSwitchingUnavailableError = class extends require_updateAuthFromVerifyResponse.BaseError {
1584
+ var NetworkSwitchingUnavailableError = class extends require_logoutWithReason.BaseError {
1556
1585
  constructor({ walletProviderKey, originalError, extraMessages }) {
1557
1586
  const cause = originalError instanceof Error ? originalError : null;
1558
1587
  super({
@@ -1568,7 +1597,7 @@ var NetworkSwitchingUnavailableError = class extends require_updateAuthFromVerif
1568
1597
 
1569
1598
  //#endregion
1570
1599
  //#region src/errors/NoAddressFoundError.ts
1571
- var NoAddressFoundError = class extends require_updateAuthFromVerifyResponse.BaseError {
1600
+ var NoAddressFoundError = class extends require_logoutWithReason.BaseError {
1572
1601
  constructor() {
1573
1602
  super({
1574
1603
  cause: null,
@@ -1582,7 +1611,7 @@ var NoAddressFoundError = class extends require_updateAuthFromVerifyResponse.Bas
1582
1611
 
1583
1612
  //#endregion
1584
1613
  //#region src/errors/NoPasskeyCredentialsFoundError.ts
1585
- var NoPasskeyCredentialsFoundError = class extends require_updateAuthFromVerifyResponse.BaseError {
1614
+ var NoPasskeyCredentialsFoundError = class extends require_logoutWithReason.BaseError {
1586
1615
  constructor() {
1587
1616
  super({
1588
1617
  cause: null,
@@ -1596,7 +1625,7 @@ var NoPasskeyCredentialsFoundError = class extends require_updateAuthFromVerifyR
1596
1625
 
1597
1626
  //#endregion
1598
1627
  //#region src/errors/NoSmartWalletAccountSignerFoundError.ts
1599
- var NoSmartWalletAccountSignerFoundError = class extends require_updateAuthFromVerifyResponse.BaseError {
1628
+ var NoSmartWalletAccountSignerFoundError = class extends require_logoutWithReason.BaseError {
1600
1629
  constructor(smartWalletAddress) {
1601
1630
  super({
1602
1631
  cause: null,
@@ -1610,7 +1639,7 @@ var NoSmartWalletAccountSignerFoundError = class extends require_updateAuthFromV
1610
1639
 
1611
1640
  //#endregion
1612
1641
  //#region src/errors/NoWebAuthNSupportError.ts
1613
- var NoWebAuthNSupportError = class extends require_updateAuthFromVerifyResponse.BaseError {
1642
+ var NoWebAuthNSupportError = class extends require_logoutWithReason.BaseError {
1614
1643
  constructor() {
1615
1644
  super({
1616
1645
  cause: null,
@@ -1642,7 +1671,7 @@ var NoWebAuthNSupportError = class extends require_updateAuthFromVerifyResponse.
1642
1671
  * @see screenTransaction
1643
1672
  * @see isExternalWalletScreeningEnabled
1644
1673
  */
1645
- var ScreeningNotRequiredError = class extends require_updateAuthFromVerifyResponse.BaseError {
1674
+ var ScreeningNotRequiredError = class extends require_logoutWithReason.BaseError {
1646
1675
  constructor() {
1647
1676
  super({
1648
1677
  cause: null,
@@ -1656,7 +1685,7 @@ var ScreeningNotRequiredError = class extends require_updateAuthFromVerifyRespon
1656
1685
 
1657
1686
  //#endregion
1658
1687
  //#region src/errors/SimulationFailedError.ts
1659
- var SimulationFailedError = class extends require_updateAuthFromVerifyResponse.BaseError {
1688
+ var SimulationFailedError = class extends require_logoutWithReason.BaseError {
1660
1689
  constructor(params) {
1661
1690
  super({
1662
1691
  cause: params.cause || null,
@@ -1670,7 +1699,7 @@ var SimulationFailedError = class extends require_updateAuthFromVerifyResponse.B
1670
1699
 
1671
1700
  //#endregion
1672
1701
  //#region src/errors/TokenSwapError.ts
1673
- var TokenSwapError = class extends require_updateAuthFromVerifyResponse.BaseError {
1702
+ var TokenSwapError = class extends require_logoutWithReason.BaseError {
1674
1703
  constructor({ message, originalError }) {
1675
1704
  const cause = originalError && originalError instanceof Error ? originalError : null;
1676
1705
  super({
@@ -1685,7 +1714,7 @@ var TokenSwapError = class extends require_updateAuthFromVerifyResponse.BaseErro
1685
1714
 
1686
1715
  //#endregion
1687
1716
  //#region src/errors/UnrecognizedNetworkError.ts
1688
- var UnrecognizedNetworkError = class extends require_updateAuthFromVerifyResponse.BaseError {
1717
+ var UnrecognizedNetworkError = class extends require_logoutWithReason.BaseError {
1689
1718
  constructor({ networkId, originalError, walletProviderKey }) {
1690
1719
  const cause = originalError instanceof Error ? originalError : null;
1691
1720
  super({
@@ -1701,7 +1730,7 @@ var UnrecognizedNetworkError = class extends require_updateAuthFromVerifyRespons
1701
1730
 
1702
1731
  //#endregion
1703
1732
  //#region src/errors/UserCancelledSocialPopUpError.ts
1704
- var UserCancelledSocialPopUpError = class extends require_updateAuthFromVerifyResponse.BaseError {
1733
+ var UserCancelledSocialPopUpError = class extends require_logoutWithReason.BaseError {
1705
1734
  constructor() {
1706
1735
  super({
1707
1736
  cause: null,
@@ -1715,7 +1744,7 @@ var UserCancelledSocialPopUpError = class extends require_updateAuthFromVerifyRe
1715
1744
 
1716
1745
  //#endregion
1717
1746
  //#region src/errors/UserNotAuthenticatedError.ts
1718
- var UserNotAuthenticatedError = class extends require_updateAuthFromVerifyResponse.BaseError {
1747
+ var UserNotAuthenticatedError = class extends require_logoutWithReason.BaseError {
1719
1748
  constructor({ shortMessage } = {}) {
1720
1749
  super({
1721
1750
  cause: null,
@@ -1729,7 +1758,7 @@ var UserNotAuthenticatedError = class extends require_updateAuthFromVerifyRespon
1729
1758
 
1730
1759
  //#endregion
1731
1760
  //#region src/errors/UserRejectedError.ts
1732
- var UserRejectedError = class extends require_updateAuthFromVerifyResponse.BaseError {
1761
+ var UserRejectedError = class extends require_logoutWithReason.BaseError {
1733
1762
  constructor({ action }) {
1734
1763
  super({
1735
1764
  cause: null,
@@ -1743,7 +1772,7 @@ var UserRejectedError = class extends require_updateAuthFromVerifyResponse.BaseE
1743
1772
 
1744
1773
  //#endregion
1745
1774
  //#region src/errors/WalletAccountAlreadyVerifiedError.ts
1746
- var WalletAccountAlreadyVerifiedError = class extends require_updateAuthFromVerifyResponse.BaseError {
1775
+ var WalletAccountAlreadyVerifiedError = class extends require_logoutWithReason.BaseError {
1747
1776
  constructor(address) {
1748
1777
  super({
1749
1778
  cause: null,
@@ -1757,7 +1786,7 @@ var WalletAccountAlreadyVerifiedError = class extends require_updateAuthFromVeri
1757
1786
 
1758
1787
  //#endregion
1759
1788
  //#region src/errors/WalletAccountNotSelectedError.ts
1760
- var WalletAccountNotSelectedError = class extends require_updateAuthFromVerifyResponse.BaseError {
1789
+ var WalletAccountNotSelectedError = class extends require_logoutWithReason.BaseError {
1761
1790
  expectedAddress;
1762
1791
  selectedAddress;
1763
1792
  constructor(params) {
@@ -1776,7 +1805,7 @@ var WalletAccountNotSelectedError = class extends require_updateAuthFromVerifyRe
1776
1805
 
1777
1806
  //#endregion
1778
1807
  //#region src/errors/WalletProviderMethodUnavailableError.ts
1779
- var WalletProviderMethodUnavailableError = class extends require_updateAuthFromVerifyResponse.BaseError {
1808
+ var WalletProviderMethodUnavailableError = class extends require_logoutWithReason.BaseError {
1780
1809
  constructor({ methodName, walletProviderKey }) {
1781
1810
  super({
1782
1811
  cause: null,
@@ -1823,8 +1852,8 @@ const STEP_UP_REQUIRED_DEFAULT = {
1823
1852
  * ```
1824
1853
  * @instrumented
1825
1854
  */
1826
- const checkStepUpAuth = async ({ scope }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
1827
- if (require_updateAuthFromVerifyResponse.getElevatedAccessToken({
1855
+ const checkStepUpAuth = async ({ scope }, client = require_logoutWithReason.getDefaultClient()) => {
1856
+ if (require_logoutWithReason.getElevatedAccessToken({
1828
1857
  consume: false,
1829
1858
  scope
1830
1859
  }, client)) return {
@@ -1832,8 +1861,8 @@ const checkStepUpAuth = async ({ scope }, client = require_updateAuthFromVerifyR
1832
1861
  isRequired: false
1833
1862
  };
1834
1863
  try {
1835
- const core = require_updateAuthFromVerifyResponse.getCore(client);
1836
- const response = await require_updateAuthFromVerifyResponse.createApiClient({}, client).stepUpCheck({
1864
+ const core = require_logoutWithReason.getCore(client);
1865
+ const response = await require_logoutWithReason.createApiClient({}, client).stepUpCheck({
1837
1866
  environmentId: core.environmentId,
1838
1867
  stepUpCheckRequest: { scope }
1839
1868
  });
@@ -1847,12 +1876,12 @@ const checkStepUpAuth = async ({ scope }, client = require_updateAuthFromVerifyR
1847
1876
  }
1848
1877
  };
1849
1878
  const __checkStepUpAuth_impl = checkStepUpAuth;
1850
- const __checkStepUpAuth_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
1879
+ const __checkStepUpAuth_wrapped = require_logoutWithReason.instrumentFunction({
1851
1880
  fn: __checkStepUpAuth_impl,
1852
1881
  functionName: "checkStepUpAuth",
1853
1882
  getCore: () => {
1854
1883
  try {
1855
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
1884
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
1856
1885
  } catch {
1857
1886
  return;
1858
1887
  }
@@ -1876,16 +1905,16 @@ const __checkStepUpAuth_wrapped = require_updateAuthFromVerifyResponse.instrumen
1876
1905
  * @returns A promise that resolves to the assertion response containing the elevated access token.
1877
1906
  * @instrumented
1878
1907
  */
1879
- const requestExternalAuthElevatedToken = async ({ externalJwt }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
1880
- const core = require_updateAuthFromVerifyResponse.getCore(client);
1881
- const response = await require_updateAuthFromVerifyResponse.createApiClient({}, client).externalAuthVerify({
1908
+ const requestExternalAuthElevatedToken = async ({ externalJwt }, client = require_logoutWithReason.getDefaultClient()) => {
1909
+ const core = require_logoutWithReason.getCore(client);
1910
+ const response = await require_logoutWithReason.createApiClient({}, client).externalAuthVerify({
1882
1911
  environmentId: core.environmentId,
1883
1912
  externalAuthSigninRequest: { jwt: externalJwt }
1884
1913
  });
1885
- const parsedToken = require_updateAuthFromVerifyResponse.parseElevatedAccessToken({ token: response.elevatedAccessToken });
1914
+ const parsedToken = require_logoutWithReason.parseElevatedAccessToken({ token: response.elevatedAccessToken });
1886
1915
  if (parsedToken) {
1887
1916
  const currentTokens = core.state.get().elevatedAccessTokens || [];
1888
- core.state.set({ elevatedAccessTokens: require_updateAuthFromVerifyResponse.upsertElevatedAccessToken({
1917
+ core.state.set({ elevatedAccessTokens: require_logoutWithReason.upsertElevatedAccessToken({
1889
1918
  currentTokens,
1890
1919
  newToken: parsedToken
1891
1920
  }) });
@@ -1893,12 +1922,12 @@ const requestExternalAuthElevatedToken = async ({ externalJwt }, client = requir
1893
1922
  return response;
1894
1923
  };
1895
1924
  const __requestExternalAuthElevatedToken_impl = requestExternalAuthElevatedToken;
1896
- const __requestExternalAuthElevatedToken_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
1925
+ const __requestExternalAuthElevatedToken_wrapped = require_logoutWithReason.instrumentFunction({
1897
1926
  fn: __requestExternalAuthElevatedToken_impl,
1898
1927
  functionName: "requestExternalAuthElevatedToken",
1899
1928
  getCore: () => {
1900
1929
  try {
1901
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
1930
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
1902
1931
  } catch {
1903
1932
  return;
1904
1933
  }
@@ -1928,25 +1957,25 @@ const __requestExternalAuthElevatedToken_wrapped = require_updateAuthFromVerifyR
1928
1957
  * @see refreshAuth
1929
1958
  * @instrumented
1930
1959
  */
1931
- const signInWithExternalJwt = async ({ externalJwt, sessionPublicKey } = {}, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
1932
- const core = require_updateAuthFromVerifyResponse.getCore(client);
1933
- const response = await require_updateAuthFromVerifyResponse.createApiClient({}, client).externalAuthSignin({
1960
+ const signInWithExternalJwt = async ({ externalJwt, sessionPublicKey } = {}, client = require_logoutWithReason.getDefaultClient()) => {
1961
+ const core = require_logoutWithReason.getCore(client);
1962
+ const response = await require_logoutWithReason.createApiClient({}, client).externalAuthSignin({
1934
1963
  environmentId: core.environmentId,
1935
1964
  externalAuthSigninRequest: {
1936
1965
  jwt: externalJwt,
1937
1966
  sessionPublicKey
1938
1967
  }
1939
1968
  });
1940
- require_updateAuthFromVerifyResponse.updateAuthFromVerifyResponse({ response }, client);
1969
+ require_logoutWithReason.updateAuthFromVerifyResponse({ response }, client);
1941
1970
  return response;
1942
1971
  };
1943
1972
  const __signInWithExternalJwt_impl = signInWithExternalJwt;
1944
- const __signInWithExternalJwt_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
1973
+ const __signInWithExternalJwt_wrapped = require_logoutWithReason.instrumentFunction({
1945
1974
  fn: __signInWithExternalJwt_impl,
1946
1975
  functionName: "signInWithExternalJwt",
1947
1976
  getCore: () => {
1948
1977
  try {
1949
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
1978
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
1950
1979
  } catch {
1951
1980
  return;
1952
1981
  }
@@ -1975,14 +2004,14 @@ const __signInWithExternalJwt_wrapped = require_updateAuthFromVerifyResponse.ins
1975
2004
  * @see refreshAuth
1976
2005
  * @notInstrumented
1977
2006
  */
1978
- const logout = async (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
2007
+ const logout = async (client = require_logoutWithReason.getDefaultClient()) => {
1979
2008
  /**
1980
2009
  * Delegates to `logoutWithReason` with `'user-intent'` so telemetry correctly
1981
2010
  * attributes the logout to an explicit user action. Instrumentation lives on
1982
2011
  * `logoutWithReason` — this wrapper is intentionally not instrumented so that
1983
2012
  * Datadog sees a single function name per logout regardless of entry point.
1984
2013
  */
1985
- return require_updateAuthFromVerifyResponse.__logoutWithReason_wrapped({ reason: "user-intent" }, client);
2014
+ return require_logoutWithReason.__logoutWithReason_wrapped({ reason: "user-intent" }, client);
1986
2015
  };
1987
2016
 
1988
2017
  //#endregion
@@ -2018,14 +2047,14 @@ const logout = async (client = require_updateAuthFromVerifyResponse.getDefaultCl
2018
2047
  * ```
2019
2048
  * @param params.conflictResolutions - Optional per-field conflict resolutions.
2020
2049
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
2021
- * @returns A promise that resolves to the merged user.
2050
+ * @returns A promise that resolves to the merged `User`.
2022
2051
  * @see MergeAccountsConfirmationError
2023
2052
  * @see MergeUserConflictResolution
2024
2053
  * @notInstrumented
2025
2054
  */
2026
- const mergeUserAccounts = async ({ conflictResolutions } = {}, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
2027
- const core = require_updateAuthFromVerifyResponse.getCore(client);
2028
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
2055
+ const mergeUserAccounts = async ({ conflictResolutions } = {}, client = require_logoutWithReason.getDefaultClient()) => {
2056
+ const core = require_logoutWithReason.getCore(client);
2057
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
2029
2058
  const hasConflictResolutions = conflictResolutions !== void 0 && conflictResolutions.length > 0;
2030
2059
  let response;
2031
2060
  if (hasConflictResolutions) response = await apiClient.verifyMergeUsers({
@@ -2033,7 +2062,7 @@ const mergeUserAccounts = async ({ conflictResolutions } = {}, client = require_
2033
2062
  mergeUserConflictResolutions: { mergeUserResolutions: conflictResolutions }
2034
2063
  });
2035
2064
  else response = await apiClient.mergeUsers({ environmentId: core.environmentId });
2036
- require_updateAuthFromVerifyResponse.updateAuthFromVerifyResponse({ response }, client);
2065
+ require_logoutWithReason.updateAuthFromVerifyResponse({ response }, client);
2037
2066
  return response.user;
2038
2067
  };
2039
2068
 
@@ -2047,9 +2076,9 @@ const mergeUserAccounts = async ({ conflictResolutions } = {}, client = require_
2047
2076
  * @returns A promise that resolves when the passkey is successfully deleted.
2048
2077
  * @instrumented
2049
2078
  */
2050
- const deletePasskey = async ({ passkeyId }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
2051
- const core = require_updateAuthFromVerifyResponse.getCore(client);
2052
- await require_updateAuthFromVerifyResponse.createApiClient({
2079
+ const deletePasskey = async ({ passkeyId }, client = require_logoutWithReason.getDefaultClient()) => {
2080
+ const core = require_logoutWithReason.getCore(client);
2081
+ await require_logoutWithReason.createApiClient({
2053
2082
  elevatedAccessTokenScope: _dynamic_labs_sdk_api_core.TokenScope.Credentialunlink,
2054
2083
  includeMfaToken: true
2055
2084
  }, client).deletePasskey({
@@ -2058,12 +2087,12 @@ const deletePasskey = async ({ passkeyId }, client = require_updateAuthFromVerif
2058
2087
  });
2059
2088
  };
2060
2089
  const __deletePasskey_impl = deletePasskey;
2061
- const __deletePasskey_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
2090
+ const __deletePasskey_wrapped = require_logoutWithReason.instrumentFunction({
2062
2091
  fn: __deletePasskey_impl,
2063
2092
  functionName: "deletePasskey",
2064
2093
  getCore: () => {
2065
2094
  try {
2066
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
2095
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
2067
2096
  } catch {
2068
2097
  return;
2069
2098
  }
@@ -2082,25 +2111,25 @@ const __deletePasskey_wrapped = require_updateAuthFromVerifyResponse.instrumentF
2082
2111
  * @returns A promise that resolves to an array of the user's registered passkeys.
2083
2112
  * @notInstrumented
2084
2113
  */
2085
- const getPasskeys = async (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
2086
- const core = require_updateAuthFromVerifyResponse.getCore(client);
2087
- return (await require_updateAuthFromVerifyResponse.createApiClient({}, client).getUserPasskeys({ environmentId: core.environmentId })).passkeys;
2114
+ const getPasskeys = async (client = require_logoutWithReason.getDefaultClient()) => {
2115
+ const core = require_logoutWithReason.getCore(client);
2116
+ return (await require_logoutWithReason.createApiClient({}, client).getUserPasskeys({ environmentId: core.environmentId })).passkeys;
2088
2117
  };
2089
2118
 
2090
2119
  //#endregion
2091
2120
  //#region src/modules/auth/passkeys/getPasskeyRegistrationOptions/getPasskeyRegistrationOptions.ts
2092
2121
  /** @notInstrumented */
2093
2122
  const getPasskeyRegistrationOptions = async (client) => {
2094
- const core = require_updateAuthFromVerifyResponse.getCore(client);
2095
- return await require_updateAuthFromVerifyResponse.createApiClient({}, client).getPasskeyRegistrationOptions({ environmentId: core.environmentId });
2123
+ const core = require_logoutWithReason.getCore(client);
2124
+ return await require_logoutWithReason.createApiClient({}, client).getPasskeyRegistrationOptions({ environmentId: core.environmentId });
2096
2125
  };
2097
2126
 
2098
2127
  //#endregion
2099
2128
  //#region src/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.ts
2100
2129
  /** @notInstrumented */
2101
2130
  const serverRegisterPasskey = async ({ registration, createMfaToken }, client) => {
2102
- const core = require_updateAuthFromVerifyResponse.getCore(client);
2103
- return await require_updateAuthFromVerifyResponse.createApiClient({ elevatedAccessTokenScope: _dynamic_labs_sdk_api_core.TokenScope.Credentiallink }, client).registerPasskey({
2131
+ const core = require_logoutWithReason.getCore(client);
2132
+ return await require_logoutWithReason.createApiClient({ elevatedAccessTokenScope: _dynamic_labs_sdk_api_core.TokenScope.Credentiallink }, client).registerPasskey({
2104
2133
  environmentId: core.environmentId,
2105
2134
  passkeyRegisterRequest: {
2106
2135
  ...registration,
@@ -2135,24 +2164,24 @@ const serverRegisterPasskey = async ({ registration, createMfaToken }, client) =
2135
2164
  * @see getPasskeys
2136
2165
  * @instrumented
2137
2166
  */
2138
- const registerPasskey = async ({ createMfaToken } = {}, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
2139
- const core = require_updateAuthFromVerifyResponse.getCore(client);
2167
+ const registerPasskey = async ({ createMfaToken } = {}, client = require_logoutWithReason.getDefaultClient()) => {
2168
+ const core = require_logoutWithReason.getCore(client);
2140
2169
  if (!core.passkey.isSupported()) throw new NoWebAuthNSupportError();
2141
2170
  const options = await getPasskeyRegistrationOptions(client);
2142
2171
  const response = await serverRegisterPasskey({
2143
2172
  createMfaToken,
2144
2173
  registration: await core.passkey.register({ optionsJSON: options })
2145
2174
  }, client);
2146
- require_updateAuthFromVerifyResponse.updateAuthFromVerifyResponse({ response }, client);
2175
+ require_logoutWithReason.updateAuthFromVerifyResponse({ response }, client);
2147
2176
  return response;
2148
2177
  };
2149
2178
  const __registerPasskey_impl = registerPasskey;
2150
- const __registerPasskey_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
2179
+ const __registerPasskey_wrapped = require_logoutWithReason.instrumentFunction({
2151
2180
  fn: __registerPasskey_impl,
2152
2181
  functionName: "registerPasskey",
2153
2182
  getCore: () => {
2154
2183
  try {
2155
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
2184
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
2156
2185
  } catch {
2157
2186
  return;
2158
2187
  }
@@ -2163,8 +2192,8 @@ const __registerPasskey_wrapped = require_updateAuthFromVerifyResponse.instrumen
2163
2192
  //#region src/modules/auth/passkeys/getPasskeyAuthenticationSignInOptions/getPasskeyAuthenticationSignInOptions.ts
2164
2193
  /** @notInstrumented */
2165
2194
  const getPasskeyAuthenticationSignInOptions = async ({ relatedOriginRpId } = {}, client) => {
2166
- const core = require_updateAuthFromVerifyResponse.getCore(client);
2167
- return await require_updateAuthFromVerifyResponse.createApiClient({}, client).getPasskeyAuthenticationSigninOptions({
2195
+ const core = require_logoutWithReason.getCore(client);
2196
+ return await require_logoutWithReason.createApiClient({}, client).getPasskeyAuthenticationSigninOptions({
2168
2197
  environmentId: core.environmentId,
2169
2198
  relatedOriginRpId
2170
2199
  });
@@ -2174,8 +2203,8 @@ const getPasskeyAuthenticationSignInOptions = async ({ relatedOriginRpId } = {},
2174
2203
  //#region src/modules/auth/passkeys/serverSigninPasskey/serverSigninPasskey.ts
2175
2204
  /** @notInstrumented */
2176
2205
  const serverSigninPasskey = async ({ authentication, createMfaToken }, client) => {
2177
- const core = require_updateAuthFromVerifyResponse.getCore(client);
2178
- return await require_updateAuthFromVerifyResponse.createApiClient({}, client).signinWithPasskey({
2206
+ const core = require_logoutWithReason.getCore(client);
2207
+ return await require_logoutWithReason.createApiClient({}, client).signinWithPasskey({
2179
2208
  environmentId: core.environmentId,
2180
2209
  passkeyAuthRequest: {
2181
2210
  ...authentication,
@@ -2211,21 +2240,21 @@ const serverSigninPasskey = async ({ authentication, createMfaToken }, client) =
2211
2240
  * @see getPasskeys
2212
2241
  * @instrumented
2213
2242
  */
2214
- const signInWithPasskey = async ({ relatedOriginRpId } = {}, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
2215
- const core = require_updateAuthFromVerifyResponse.getCore(client);
2243
+ const signInWithPasskey = async ({ relatedOriginRpId } = {}, client = require_logoutWithReason.getDefaultClient()) => {
2244
+ const core = require_logoutWithReason.getCore(client);
2216
2245
  if (!core.passkey.isSupported()) throw new NoWebAuthNSupportError();
2217
2246
  const formattedOptions = { ...await getPasskeyAuthenticationSignInOptions({ relatedOriginRpId }, client) };
2218
2247
  const response = await serverSigninPasskey({ authentication: await core.passkey.authenticate({ optionsJSON: formattedOptions }) }, client);
2219
- require_updateAuthFromVerifyResponse.updateAuthFromVerifyResponse({ response }, client);
2248
+ require_logoutWithReason.updateAuthFromVerifyResponse({ response }, client);
2220
2249
  return response;
2221
2250
  };
2222
2251
  const __signInWithPasskey_impl = signInWithPasskey;
2223
- const __signInWithPasskey_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
2252
+ const __signInWithPasskey_wrapped = require_logoutWithReason.instrumentFunction({
2224
2253
  fn: __signInWithPasskey_impl,
2225
2254
  functionName: "signInWithPasskey",
2226
2255
  getCore: () => {
2227
2256
  try {
2228
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
2257
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
2229
2258
  } catch {
2230
2259
  return;
2231
2260
  }
@@ -2242,9 +2271,9 @@ const __signInWithPasskey_wrapped = require_updateAuthFromVerifyResponse.instrum
2242
2271
  * @notInstrumented
2243
2272
  * @hook Exposed as a hook so consumers get the reactive list of social accounts, updated when the user changes.
2244
2273
  */
2245
- const getUserSocialAccounts = (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
2274
+ const getUserSocialAccounts = (client = require_logoutWithReason.getDefaultClient()) => {
2246
2275
  const { user } = client;
2247
- require_updateAuthFromVerifyResponse.assertDefined(user, "User is not authenticated");
2276
+ require_logoutWithReason.assertDefined(user, "User is not authenticated");
2248
2277
  return (user.verifiedCredentials.filter((credential) => credential.format === _dynamic_labs_sdk_api_core.JwtVerifiedCredentialFormatEnum.Oauth) ?? []).map((credential) => ({
2249
2278
  accountId: credential.oauthAccountId ?? void 0,
2250
2279
  displayName: credential.oauthDisplayName ?? void 0,
@@ -2269,7 +2298,7 @@ const removeDynamicOauthParamsFromUrl = (url) => {
2269
2298
  //#endregion
2270
2299
  //#region src/modules/auth/social/oauth/redirectStateStorageSchema/redirectStateStorageSchema.ts
2271
2300
  /** The schema to track the state of the OAuth flow. */
2272
- const redirectStateStorageKeySchema = require_updateAuthFromVerifyResponse.createStorageKeySchema({
2301
+ const redirectStateStorageKeySchema = require_logoutWithReason.createStorageKeySchema({
2273
2302
  key: "redirectState",
2274
2303
  schema: zod_mini.object({
2275
2304
  codeVerifier: zod_mini.optional(zod_mini.string()),
@@ -2308,9 +2337,9 @@ const APPLE_RESPONSE_TYPE = "code id_token";
2308
2337
  /** Helper function to add OAuth URL parameters to a given base URL. * @notInstrumented
2309
2338
  */
2310
2339
  const addOAuthUrlParams = ({ baseUrl, isGoogleDriveBackupEnabled, provider }) => {
2311
- require_updateAuthFromVerifyResponse.assertDefined(provider.clientId, "Client ID not found");
2312
- require_updateAuthFromVerifyResponse.assertDefined(provider.provider, "Provider type not found");
2313
- require_updateAuthFromVerifyResponse.assertDefined(provider.redirectUrl, "Redirect URL not found");
2340
+ require_logoutWithReason.assertDefined(provider.clientId, "Client ID not found");
2341
+ require_logoutWithReason.assertDefined(provider.provider, "Provider type not found");
2342
+ require_logoutWithReason.assertDefined(provider.redirectUrl, "Redirect URL not found");
2314
2343
  const providerType = provider.provider;
2315
2344
  baseUrl.searchParams.set("client_id", provider.clientId);
2316
2345
  baseUrl.searchParams.set("response_type", "code");
@@ -2337,15 +2366,15 @@ const addOAuthUrlParams = ({ baseUrl, isGoogleDriveBackupEnabled, provider }) =>
2337
2366
  * Resolves the raw base URL string for a provider before parsing/validation.
2338
2367
  */
2339
2368
  const resolveBaseUrl = (provider) => {
2340
- require_updateAuthFromVerifyResponse.assertDefined(provider.provider, "Provider type not found");
2369
+ require_logoutWithReason.assertDefined(provider.provider, "Provider type not found");
2341
2370
  const providerType = provider.provider;
2342
2371
  if (providerType === _dynamic_labs_sdk_api_core.ProviderEnum.Telegram) {
2343
- require_updateAuthFromVerifyResponse.assertDefined(provider.authorizationUrl, "Telegram authorization URL not found");
2372
+ require_logoutWithReason.assertDefined(provider.authorizationUrl, "Telegram authorization URL not found");
2344
2373
  return provider.authorizationUrl;
2345
2374
  }
2346
- require_updateAuthFromVerifyResponse.assertDefined(provider.baseAuthUrl, "Base auth URL not found");
2375
+ require_logoutWithReason.assertDefined(provider.baseAuthUrl, "Base auth URL not found");
2347
2376
  if (providerType === _dynamic_labs_sdk_api_core.ProviderEnum.Shopify) {
2348
- require_updateAuthFromVerifyResponse.assertDefined(provider.shopifyStore, "Shopify store value not found in provider");
2377
+ require_logoutWithReason.assertDefined(provider.shopifyStore, "Shopify store value not found in provider");
2349
2378
  return provider.baseAuthUrl.replace("{{shopifyStore}}", provider.shopifyStore);
2350
2379
  }
2351
2380
  return provider.baseAuthUrl;
@@ -2365,10 +2394,10 @@ const providersRequiringPkce = ["twitter", "github"];
2365
2394
  */
2366
2395
  const buildOAuthUrl = async (core, provider) => {
2367
2396
  const { projectSettings } = core.state.get();
2368
- require_updateAuthFromVerifyResponse.assertDefined(projectSettings, "Project settings not found");
2369
- require_updateAuthFromVerifyResponse.assertDefined(projectSettings.providers, "Project providers not found");
2397
+ require_logoutWithReason.assertDefined(projectSettings, "Project settings not found");
2398
+ require_logoutWithReason.assertDefined(projectSettings.providers, "Project providers not found");
2370
2399
  const socialProvider = projectSettings.providers.find((p) => p.provider === provider);
2371
- require_updateAuthFromVerifyResponse.assertDefined(socialProvider, `Social provider ${provider} not supported`);
2400
+ require_logoutWithReason.assertDefined(socialProvider, `Social provider ${provider} not supported`);
2372
2401
  const isGoogleDriveBackupEnabled = projectSettings.sdk.waas?.backupOptions?.includes(_dynamic_labs_sdk_api_core.WaasBackupOptionsEnum.GoogleDrive);
2373
2402
  const socialProviderUrl = addOAuthUrlParams({
2374
2403
  baseUrl: getOAuthBaseUrl(socialProvider),
@@ -2376,8 +2405,8 @@ const buildOAuthUrl = async (core, provider) => {
2376
2405
  provider: socialProvider
2377
2406
  });
2378
2407
  const usingPkce = providersRequiringPkce.includes(provider);
2379
- const state = require_updateAuthFromVerifyResponse.randomString({ length: 32 });
2380
- const codeVerifier = require_updateAuthFromVerifyResponse.randomString({ length: 43 });
2408
+ const state = require_logoutWithReason.randomString({ length: 32 });
2409
+ const codeVerifier = require_logoutWithReason.randomString({ length: 43 });
2381
2410
  socialProviderUrl.searchParams.set("state", state);
2382
2411
  socialProviderUrl.searchParams.set("response_type", "code");
2383
2412
  if (usingPkce) {
@@ -2419,9 +2448,9 @@ const buildOAuthUrl = async (core, provider) => {
2419
2448
  * @see detectSocialRedirectUrl
2420
2449
  * @instrumented
2421
2450
  */
2422
- const signInWithSocialRedirect = async ({ provider, redirectUrl }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
2423
- const core = require_updateAuthFromVerifyResponse.getCore(client);
2424
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
2451
+ const signInWithSocialRedirect = async ({ provider, redirectUrl }, client = require_logoutWithReason.getDefaultClient()) => {
2452
+ const core = require_logoutWithReason.getCore(client);
2453
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
2425
2454
  await core.initTrack.waitForAll();
2426
2455
  const providerType = provider;
2427
2456
  const { url, state, codeVerifier } = await buildOAuthUrl(core, providerType);
@@ -2441,12 +2470,12 @@ const signInWithSocialRedirect = async ({ provider, redirectUrl }, client = requ
2441
2470
  await core.navigate(url.toString());
2442
2471
  };
2443
2472
  const __signInWithSocialRedirect_impl = signInWithSocialRedirect;
2444
- const __signInWithSocialRedirect_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
2473
+ const __signInWithSocialRedirect_wrapped = require_logoutWithReason.instrumentFunction({
2445
2474
  fn: __signInWithSocialRedirect_impl,
2446
2475
  functionName: "signInWithSocialRedirect",
2447
2476
  getCore: () => {
2448
2477
  try {
2449
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
2478
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
2450
2479
  } catch {
2451
2480
  return;
2452
2481
  }
@@ -2470,14 +2499,14 @@ const __signInWithSocialRedirect_wrapped = require_updateAuthFromVerifyResponse.
2470
2499
  * @instrumented
2471
2500
  * @noHook Deprecated alias that is not exposed as a React hook.
2472
2501
  */
2473
- const authenticateWithSocial = (params, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => __signInWithSocialRedirect_wrapped(params, client);
2502
+ const authenticateWithSocial = (params, client = require_logoutWithReason.getDefaultClient()) => __signInWithSocialRedirect_wrapped(params, client);
2474
2503
  const __authenticateWithSocial_impl = authenticateWithSocial;
2475
- const __authenticateWithSocial_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
2504
+ const __authenticateWithSocial_wrapped = require_logoutWithReason.instrumentFunction({
2476
2505
  fn: __authenticateWithSocial_impl,
2477
2506
  functionName: "authenticateWithSocial",
2478
2507
  getCore: () => {
2479
2508
  try {
2480
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
2509
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
2481
2510
  } catch {
2482
2511
  return;
2483
2512
  }
@@ -2545,8 +2574,8 @@ const clearSocialRedirectParams = () => {
2545
2574
  * @instrumented
2546
2575
  */
2547
2576
  const processSocialCallback = async ({ url, requestedScopes }, client) => {
2548
- const core = require_updateAuthFromVerifyResponse.getCore(client);
2549
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient(client.user ? { elevatedAccessTokenScope: _dynamic_labs_sdk_api_core.TokenScope.Credentiallink } : {}, client);
2577
+ const core = require_logoutWithReason.getCore(client);
2578
+ const apiClient = require_logoutWithReason.createApiClient(client.user ? { elevatedAccessTokenScope: _dynamic_labs_sdk_api_core.TokenScope.Credentiallink } : {}, client);
2550
2579
  await core.initTrack.waitForAll();
2551
2580
  const dynamicOauthState = url.searchParams.get("dynamicOauthState");
2552
2581
  const dynamicOauthCode = url.searchParams.get("dynamicOauthCode");
@@ -2579,16 +2608,16 @@ const processSocialCallback = async ({ url, requestedScopes }, client) => {
2579
2608
  },
2580
2609
  providerType: provider
2581
2610
  });
2582
- require_updateAuthFromVerifyResponse.updateAuthFromVerifyResponse({ response }, client);
2611
+ require_logoutWithReason.updateAuthFromVerifyResponse({ response }, client);
2583
2612
  return response.user;
2584
2613
  };
2585
2614
  const __processSocialCallback_impl = processSocialCallback;
2586
- const __processSocialCallback_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
2615
+ const __processSocialCallback_wrapped = require_logoutWithReason.instrumentFunction({
2587
2616
  fn: __processSocialCallback_impl,
2588
2617
  functionName: "processSocialCallback",
2589
2618
  getCore: () => {
2590
2619
  try {
2591
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
2620
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
2592
2621
  } catch {
2593
2622
  return;
2594
2623
  }
@@ -2623,17 +2652,17 @@ const __processSocialCallback_wrapped = require_updateAuthFromVerifyResponse.ins
2623
2652
  * @see clearSocialRedirectParams
2624
2653
  * @instrumented
2625
2654
  */
2626
- const completeSocialRedirect = ({ url, requestedScopes }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => __processSocialCallback_wrapped({
2655
+ const completeSocialRedirect = ({ url, requestedScopes }, client = require_logoutWithReason.getDefaultClient()) => __processSocialCallback_wrapped({
2627
2656
  requestedScopes,
2628
2657
  url
2629
2658
  }, client);
2630
2659
  const __completeSocialRedirect_impl = completeSocialRedirect;
2631
- const __completeSocialRedirect_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
2660
+ const __completeSocialRedirect_wrapped = require_logoutWithReason.instrumentFunction({
2632
2661
  fn: __completeSocialRedirect_impl,
2633
2662
  functionName: "completeSocialRedirect",
2634
2663
  getCore: () => {
2635
2664
  try {
2636
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
2665
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
2637
2666
  } catch {
2638
2667
  return;
2639
2668
  }
@@ -2649,14 +2678,14 @@ const __completeSocialRedirect_wrapped = require_updateAuthFromVerifyResponse.in
2649
2678
  * @instrumented
2650
2679
  * @noHook Deprecated alias; the replacement is exposed via its own hook.
2651
2680
  */
2652
- const completeSocialAuthentication = (params, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => __completeSocialRedirect_wrapped(params, client);
2681
+ const completeSocialAuthentication = (params, client = require_logoutWithReason.getDefaultClient()) => __completeSocialRedirect_wrapped(params, client);
2653
2682
  const __completeSocialAuthentication_impl = completeSocialAuthentication;
2654
- const __completeSocialAuthentication_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
2683
+ const __completeSocialAuthentication_wrapped = require_logoutWithReason.instrumentFunction({
2655
2684
  fn: __completeSocialAuthentication_impl,
2656
2685
  functionName: "completeSocialAuthentication",
2657
2686
  getCore: () => {
2658
2687
  try {
2659
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
2688
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
2660
2689
  } catch {
2661
2690
  return;
2662
2691
  }
@@ -2677,8 +2706,8 @@ const __completeSocialAuthentication_wrapped = require_updateAuthFromVerifyRespo
2677
2706
  * @returns A promise that resolves to true if the URL is an OAuth redirect, false otherwise.
2678
2707
  * @notInstrumented
2679
2708
  */
2680
- const detectSocialRedirectUrl = async ({ url }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
2681
- const core = require_updateAuthFromVerifyResponse.getCore(client);
2709
+ const detectSocialRedirectUrl = async ({ url }, client = require_logoutWithReason.getDefaultClient()) => {
2710
+ const core = require_logoutWithReason.getCore(client);
2682
2711
  const dynamicOauthState = url.searchParams.get("dynamicOauthState");
2683
2712
  const dynamicOauthCode = url.searchParams.get("dynamicOauthCode");
2684
2713
  if (!dynamicOauthState || !dynamicOauthCode) return false;
@@ -2695,7 +2724,7 @@ const detectSocialRedirectUrl = async ({ url }, client = require_updateAuthFromV
2695
2724
  * @notInstrumented
2696
2725
  * @noHook Deprecated alias; the replacement is exposed via its own hook.
2697
2726
  */
2698
- const detectOAuthRedirect = (params, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => detectSocialRedirectUrl(params, client);
2727
+ const detectOAuthRedirect = (params, client = require_logoutWithReason.getDefaultClient()) => detectSocialRedirectUrl(params, client);
2699
2728
 
2700
2729
  //#endregion
2701
2730
  //#region src/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.ts
@@ -2722,16 +2751,16 @@ const detectOAuthRedirect = (params, client = require_updateAuthFromVerifyRespon
2722
2751
  * @see completeSocialRedirect
2723
2752
  * @instrumented
2724
2753
  */
2725
- const signInWithSocialPopUp = async ({ provider, requestedScopes }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
2754
+ const signInWithSocialPopUp = async ({ provider, requestedScopes }, client = require_logoutWithReason.getDefaultClient()) => {
2726
2755
  throw new require_getNetworkProviderFromNetworkId.MethodNotImplementedError("signInWithSocialPopUp (only available on React Native — use signInWithSocialRedirect on web)");
2727
2756
  };
2728
2757
  const __signInWithSocialPopUp_impl = signInWithSocialPopUp;
2729
- const __signInWithSocialPopUp_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
2758
+ const __signInWithSocialPopUp_wrapped = require_logoutWithReason.instrumentFunction({
2730
2759
  fn: __signInWithSocialPopUp_impl,
2731
2760
  functionName: "signInWithSocialPopUp",
2732
2761
  getCore: () => {
2733
2762
  try {
2734
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
2763
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
2735
2764
  } catch {
2736
2765
  return;
2737
2766
  }
@@ -2767,8 +2796,8 @@ const __signInWithSocialPopUp_wrapped = require_updateAuthFromVerifyResponse.ins
2767
2796
  * @see getWalletAccounts
2768
2797
  * @notInstrumented
2769
2798
  */
2770
- const getSelectedWalletAccount = (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
2771
- const sortedLastSelectedWalletAccounts = require_updateAuthFromVerifyResponse.getWalletAccounts(client).filter((walletAccount) => Boolean(walletAccount.lastSelectedAt)).sort((a, b) => b.lastSelectedAt.getTime() - a.lastSelectedAt.getTime());
2799
+ const getSelectedWalletAccount = (client = require_logoutWithReason.getDefaultClient()) => {
2800
+ const sortedLastSelectedWalletAccounts = require_logoutWithReason.getWalletAccounts(client).filter((walletAccount) => Boolean(walletAccount.lastSelectedAt)).sort((a, b) => b.lastSelectedAt.getTime() - a.lastSelectedAt.getTime());
2772
2801
  if (sortedLastSelectedWalletAccounts.length === 0) return null;
2773
2802
  const [selectedWallet] = sortedLastSelectedWalletAccounts;
2774
2803
  return selectedWallet;
@@ -2790,12 +2819,12 @@ const getSelectedWalletAccount = (client = require_updateAuthFromVerifyResponse.
2790
2819
  * @returns A promise that resolves to the verify response.
2791
2820
  * @instrumented
2792
2821
  */
2793
- const unlinkSocialAccount = async ({ verifiedCredentialId }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
2794
- const core = require_updateAuthFromVerifyResponse.getCore(client);
2795
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({ elevatedAccessTokenScope: _dynamic_labs_sdk_api_core.TokenScope.Credentialunlink }, client);
2822
+ const unlinkSocialAccount = async ({ verifiedCredentialId }, client = require_logoutWithReason.getDefaultClient()) => {
2823
+ const core = require_logoutWithReason.getCore(client);
2824
+ const apiClient = require_logoutWithReason.createApiClient({ elevatedAccessTokenScope: _dynamic_labs_sdk_api_core.TokenScope.Credentialunlink }, client);
2796
2825
  const selectedWallet = getSelectedWalletAccount(client);
2797
2826
  const walletId = selectedWallet?.verifiedCredentialId?.replace("-zerodev", "") ?? void 0;
2798
- const isEmbeddedWallet = !!selectedWallet && require_getWalletProviderByKey.getVerifiedCredentialForWalletAccount({ walletAccount: selectedWallet }, client)?.walletProvider === _dynamic_labs_sdk_api_core.WalletProviderEnum.EmbeddedWallet;
2827
+ const isEmbeddedWallet = !!selectedWallet && require_getVerifiedCredentialForWalletAccount.getVerifiedCredentialForWalletAccount({ walletAccount: selectedWallet }, client)?.walletProvider === _dynamic_labs_sdk_api_core.WalletProviderEnum.EmbeddedWallet;
2799
2828
  const response = await apiClient.verifyUnlink({
2800
2829
  environmentId: core.environmentId,
2801
2830
  verifyUnlinkRequest: {
@@ -2803,16 +2832,16 @@ const unlinkSocialAccount = async ({ verifiedCredentialId }, client = require_up
2803
2832
  walletId: isEmbeddedWallet ? void 0 : walletId
2804
2833
  }
2805
2834
  });
2806
- require_updateAuthFromVerifyResponse.updateAuthFromVerifyResponse({ response }, client);
2835
+ require_logoutWithReason.updateAuthFromVerifyResponse({ response }, client);
2807
2836
  return response;
2808
2837
  };
2809
2838
  const __unlinkSocialAccount_impl = unlinkSocialAccount;
2810
- const __unlinkSocialAccount_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
2839
+ const __unlinkSocialAccount_wrapped = require_logoutWithReason.instrumentFunction({
2811
2840
  fn: __unlinkSocialAccount_impl,
2812
2841
  functionName: "unlinkSocialAccount",
2813
2842
  getCore: () => {
2814
2843
  try {
2815
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
2844
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
2816
2845
  } catch {
2817
2846
  return;
2818
2847
  }
@@ -2838,11 +2867,11 @@ const __unlinkSocialAccount_wrapped = require_updateAuthFromVerifyResponse.instr
2838
2867
  * @returns A promise that resolves to an array of token balances.
2839
2868
  * @notInstrumented
2840
2869
  */
2841
- const getTokenBalances = async ({ walletAccount, networkId, networkIds, includePrices, includeNative, filterSpamTokens, whitelistedContracts, forceRefresh }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
2842
- const core = require_updateAuthFromVerifyResponse.getCore(client);
2843
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
2870
+ const getTokenBalances = async ({ walletAccount, networkId, networkIds, includePrices, includeNative, filterSpamTokens, whitelistedContracts, forceRefresh }, client = require_logoutWithReason.getDefaultClient()) => {
2871
+ const core = require_logoutWithReason.getCore(client);
2872
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
2844
2873
  if (!networkId && !networkIds) {
2845
- const activeNetworkId = await require_updateAuthFromVerifyResponse.getWalletProviderFromWalletAccount({ walletAccount }, client).getActiveNetworkId();
2874
+ const activeNetworkId = await require_logoutWithReason.getWalletProviderFromWalletAccount({ walletAccount }, client).getActiveNetworkId();
2846
2875
  networkId = Number(activeNetworkId.networkId);
2847
2876
  }
2848
2877
  return await apiClient.getAccountBalances({
@@ -2870,7 +2899,7 @@ const getTokenBalances = async ({ walletAccount, networkId, networkIds, includeP
2870
2899
  * @notInstrumented
2871
2900
  * @noHook Deprecated; the replacement is exposed via its own hook.
2872
2901
  */
2873
- const getBalances = (params, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => getTokenBalances(params, client);
2902
+ const getBalances = (params, client = require_logoutWithReason.getDefaultClient()) => getTokenBalances(params, client);
2874
2903
 
2875
2904
  //#endregion
2876
2905
  //#region src/modules/balances/getMultichainTokenBalances/getMultichainTokenBalances.ts
@@ -2888,9 +2917,9 @@ const getBalances = (params, client = require_updateAuthFromVerifyResponse.getDe
2888
2917
  * @returns A promise that resolves to the chain balances across multiple networks.
2889
2918
  * @notInstrumented
2890
2919
  */
2891
- const getMultichainTokenBalances = async ({ balanceRequest }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
2892
- const core = require_updateAuthFromVerifyResponse.getCore(client);
2893
- return (await require_updateAuthFromVerifyResponse.createApiClient({}, client).postMultichainAccountBalances({
2920
+ const getMultichainTokenBalances = async ({ balanceRequest }, client = require_logoutWithReason.getDefaultClient()) => {
2921
+ const core = require_logoutWithReason.getCore(client);
2922
+ return (await require_logoutWithReason.createApiClient({}, client).postMultichainAccountBalances({
2894
2923
  environmentId: core.environmentId,
2895
2924
  multichainAccountBalancesRequest: balanceRequest
2896
2925
  })).chainBalances;
@@ -2906,7 +2935,7 @@ const getMultichainTokenBalances = async ({ balanceRequest }, client = require_u
2906
2935
  * @notInstrumented
2907
2936
  * @noHook Deprecated; the replacement is exposed via its own hook.
2908
2937
  */
2909
- const getMultichainBalances = (params, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => getMultichainTokenBalances(params, client);
2938
+ const getMultichainBalances = (params, client = require_logoutWithReason.getDefaultClient()) => getMultichainTokenBalances(params, client);
2910
2939
 
2911
2940
  //#endregion
2912
2941
  //#region src/modules/captcha/getCaptchaSettings/getCaptchaSettings.ts
@@ -2944,7 +2973,7 @@ const CaptchaProviderEnum = _dynamic_labs_sdk_api_core.CaptchaProviderEnum;
2944
2973
  * @returns The active captcha provider and site key, or undefined when captcha is not enabled.
2945
2974
  * @notInstrumented
2946
2975
  */
2947
- const getCaptchaSettings = (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
2976
+ const getCaptchaSettings = (client = require_logoutWithReason.getDefaultClient()) => {
2948
2977
  const projectSettings = client.projectSettings;
2949
2978
  if (!projectSettings) return void 0;
2950
2979
  const { security } = projectSettings;
@@ -2965,7 +2994,7 @@ const getCaptchaSettings = (client = require_updateAuthFromVerifyResponse.getDef
2965
2994
  //#region src/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.ts
2966
2995
  /** @notInstrumented */
2967
2996
  const createCheckoutSessionTokenStorageKey = (transactionId) => {
2968
- return require_updateAuthFromVerifyResponse.createStorageKeySchema({
2997
+ return require_logoutWithReason.createStorageKeySchema({
2969
2998
  key: `checkoutSessionToken:${transactionId}`,
2970
2999
  schema: zod_mini.string()
2971
3000
  });
@@ -2975,8 +3004,8 @@ const createCheckoutSessionTokenStorageKey = (transactionId) => {
2975
3004
  //#region src/modules/checkout/utils/createCheckoutApiClient/createCheckoutApiClient.ts
2976
3005
  /** @notInstrumented */
2977
3006
  const createCheckoutApiClient = async ({ transactionId }, client) => {
2978
- const core = require_updateAuthFromVerifyResponse.getCore(client);
2979
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
3007
+ const core = require_logoutWithReason.getCore(client);
3008
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
2980
3009
  const sessionToken = await core.storage.getItem(createCheckoutSessionTokenStorageKey(transactionId));
2981
3010
  if (!sessionToken) throw new CheckoutSessionTokenMissingError({ transactionId });
2982
3011
  return {
@@ -3005,7 +3034,7 @@ const createCheckoutApiClient = async ({ transactionId }, client) => {
3005
3034
  * @notInstrumented
3006
3035
  */
3007
3036
  const clearCheckoutSessionToken = async ({ transactionId }, client) => {
3008
- await require_updateAuthFromVerifyResponse.getCore(client).storage.removeItem(createCheckoutSessionTokenStorageKey(transactionId));
3037
+ await require_logoutWithReason.getCore(client).storage.removeItem(createCheckoutSessionTokenStorageKey(transactionId));
3009
3038
  };
3010
3039
 
3011
3040
  //#endregion
@@ -3023,10 +3052,10 @@ const withCheckoutSessionTokenCleanupOn401 = async ({ call, transactionId }, cli
3023
3052
  try {
3024
3053
  return await call();
3025
3054
  } catch (error) {
3026
- if (error instanceof require_updateAuthFromVerifyResponse.APIError && error.status === 401) try {
3055
+ if (error instanceof require_logoutWithReason.APIError && error.status === 401) try {
3027
3056
  await clearCheckoutSessionToken({ transactionId }, client);
3028
3057
  } catch (cleanupError) {
3029
- require_updateAuthFromVerifyResponse.getCore(client).logger.error("Failed to clear checkout session token after 401", cleanupError);
3058
+ require_logoutWithReason.getCore(client).logger.error("Failed to clear checkout session token after 401", cleanupError);
3030
3059
  }
3031
3060
  throw error;
3032
3061
  }
@@ -3049,7 +3078,7 @@ const withCheckoutSessionTokenCleanupOn401 = async ({ call, transactionId }, cli
3049
3078
  * @instrumented
3050
3079
  * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
3051
3080
  */
3052
- const attachCheckoutTransactionSource = async (params, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3081
+ const attachCheckoutTransactionSource = async (params, client = require_logoutWithReason.getDefaultClient()) => {
3053
3082
  const { transactionId, sourceType = "wallet" } = params;
3054
3083
  const { apiClient, environmentId, sessionToken } = await createCheckoutApiClient({ transactionId }, client);
3055
3084
  const attachSourceRequest = { sourceType };
@@ -3070,12 +3099,12 @@ const attachCheckoutTransactionSource = async (params, client = require_updateAu
3070
3099
  }, client);
3071
3100
  };
3072
3101
  const __attachCheckoutTransactionSource_impl = attachCheckoutTransactionSource;
3073
- const __attachCheckoutTransactionSource_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
3102
+ const __attachCheckoutTransactionSource_wrapped = require_logoutWithReason.instrumentFunction({
3074
3103
  fn: __attachCheckoutTransactionSource_impl,
3075
3104
  functionName: "attachCheckoutTransactionSource",
3076
3105
  getCore: () => {
3077
3106
  try {
3078
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
3107
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
3079
3108
  } catch {
3080
3109
  return;
3081
3110
  }
@@ -3099,7 +3128,7 @@ const __attachCheckoutTransactionSource_wrapped = require_updateAuthFromVerifyRe
3099
3128
  * @instrumented
3100
3129
  * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
3101
3130
  */
3102
- const broadcastCheckoutTransaction = async ({ transactionId, txHash }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3131
+ const broadcastCheckoutTransaction = async ({ transactionId, txHash }, client = require_logoutWithReason.getDefaultClient()) => {
3103
3132
  const { apiClient, environmentId, sessionToken } = await createCheckoutApiClient({ transactionId }, client);
3104
3133
  return withCheckoutSessionTokenCleanupOn401({
3105
3134
  call: () => apiClient.recordCheckoutBroadcast({
@@ -3112,12 +3141,12 @@ const broadcastCheckoutTransaction = async ({ transactionId, txHash }, client =
3112
3141
  }, client);
3113
3142
  };
3114
3143
  const __broadcastCheckoutTransaction_impl = broadcastCheckoutTransaction;
3115
- const __broadcastCheckoutTransaction_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
3144
+ const __broadcastCheckoutTransaction_wrapped = require_logoutWithReason.instrumentFunction({
3116
3145
  fn: __broadcastCheckoutTransaction_impl,
3117
3146
  functionName: "broadcastCheckoutTransaction",
3118
3147
  getCore: () => {
3119
3148
  try {
3120
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
3149
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
3121
3150
  } catch {
3122
3151
  return;
3123
3152
  }
@@ -3137,7 +3166,7 @@ const __broadcastCheckoutTransaction_wrapped = require_updateAuthFromVerifyRespo
3137
3166
  * @instrumented
3138
3167
  * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
3139
3168
  */
3140
- const cancelCheckoutTransaction = async ({ transactionId }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3169
+ const cancelCheckoutTransaction = async ({ transactionId }, client = require_logoutWithReason.getDefaultClient()) => {
3141
3170
  const { apiClient, environmentId, sessionToken } = await createCheckoutApiClient({ transactionId }, client);
3142
3171
  const result = await withCheckoutSessionTokenCleanupOn401({
3143
3172
  call: () => apiClient.cancelCheckoutTransaction({
@@ -3151,12 +3180,12 @@ const cancelCheckoutTransaction = async ({ transactionId }, client = require_upd
3151
3180
  return result;
3152
3181
  };
3153
3182
  const __cancelCheckoutTransaction_impl = cancelCheckoutTransaction;
3154
- const __cancelCheckoutTransaction_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
3183
+ const __cancelCheckoutTransaction_wrapped = require_logoutWithReason.instrumentFunction({
3155
3184
  fn: __cancelCheckoutTransaction_impl,
3156
3185
  functionName: "cancelCheckoutTransaction",
3157
3186
  getCore: () => {
3158
3187
  try {
3159
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
3188
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
3160
3189
  } catch {
3161
3190
  return;
3162
3191
  }
@@ -3168,7 +3197,7 @@ const __cancelCheckoutTransaction_wrapped = require_updateAuthFromVerifyResponse
3168
3197
  /** @notInstrumented */
3169
3198
  const getCheckouts = async (client) => {
3170
3199
  const projectSettings = client.projectSettings;
3171
- require_updateAuthFromVerifyResponse.assertDefined(projectSettings, "Project settings are not available");
3200
+ require_logoutWithReason.assertDefined(projectSettings, "Project settings are not available");
3172
3201
  return projectSettings.checkouts ?? [];
3173
3202
  };
3174
3203
 
@@ -3185,12 +3214,12 @@ const getCheckouts = async (client) => {
3185
3214
  * @instrumented
3186
3215
  * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
3187
3216
  */
3188
- const createCheckoutTransaction = async (params, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3189
- const core = require_updateAuthFromVerifyResponse.getCore(client);
3190
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
3217
+ const createCheckoutTransaction = async (params, client = require_logoutWithReason.getDefaultClient()) => {
3218
+ const core = require_logoutWithReason.getCore(client);
3219
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
3191
3220
  const checkouts = await getCheckouts(client);
3192
3221
  const checkoutId = params.checkoutId || checkouts?.[0]?.id;
3193
- require_updateAuthFromVerifyResponse.assertDefined(checkoutId, "No checkout found. Please make sure you have a Checkout setup in the Dashboard.");
3222
+ require_logoutWithReason.assertDefined(checkoutId, "No checkout found. Please make sure you have a Checkout setup in the Dashboard.");
3194
3223
  const result = await apiClient.createCheckoutTransaction({
3195
3224
  checkoutId,
3196
3225
  checkoutTransactionCreateRequest: {
@@ -3209,12 +3238,12 @@ const createCheckoutTransaction = async (params, client = require_updateAuthFrom
3209
3238
  return result;
3210
3239
  };
3211
3240
  const __createCheckoutTransaction_impl = createCheckoutTransaction;
3212
- const __createCheckoutTransaction_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
3241
+ const __createCheckoutTransaction_wrapped = require_logoutWithReason.instrumentFunction({
3213
3242
  fn: __createCheckoutTransaction_impl,
3214
3243
  functionName: "createCheckoutTransaction",
3215
3244
  getCore: () => {
3216
3245
  try {
3217
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
3246
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
3218
3247
  } catch {
3219
3248
  return;
3220
3249
  }
@@ -3234,9 +3263,9 @@ const __createCheckoutTransaction_wrapped = require_updateAuthFromVerifyResponse
3234
3263
  * @notInstrumented
3235
3264
  * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
3236
3265
  */
3237
- const getCheckoutTransaction = async ({ transactionId }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3238
- const core = require_updateAuthFromVerifyResponse.getCore(client);
3239
- return require_updateAuthFromVerifyResponse.createApiClient({}, client).getCheckoutTransaction({
3266
+ const getCheckoutTransaction = async ({ transactionId }, client = require_logoutWithReason.getDefaultClient()) => {
3267
+ const core = require_logoutWithReason.getCore(client);
3268
+ return require_logoutWithReason.createApiClient({}, client).getCheckoutTransaction({
3240
3269
  environmentId: core.environmentId,
3241
3270
  transactionId
3242
3271
  });
@@ -3255,7 +3284,7 @@ const getCheckoutTransaction = async ({ transactionId }, client = require_update
3255
3284
  * @notInstrumented
3256
3285
  * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
3257
3286
  */
3258
- const getCheckoutTransactionQuote = async ({ fromChainId, fromTokenAddress, slippage, transactionId }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3287
+ const getCheckoutTransactionQuote = async ({ fromChainId, fromTokenAddress, slippage, transactionId }, client = require_logoutWithReason.getDefaultClient()) => {
3259
3288
  const { apiClient, environmentId, sessionToken } = await createCheckoutApiClient({ transactionId }, client);
3260
3289
  return withCheckoutSessionTokenCleanupOn401({
3261
3290
  call: () => apiClient.quoteCheckoutTransaction({
@@ -3287,7 +3316,7 @@ const getCheckoutTransactionQuote = async ({ fromChainId, fromTokenAddress, slip
3287
3316
  * @instrumented
3288
3317
  * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
3289
3318
  */
3290
- const prepareCheckoutTransaction = async ({ assertBalanceForGasCost, assertBalanceForTransferAmount, transactionId }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3319
+ const prepareCheckoutTransaction = async ({ assertBalanceForGasCost, assertBalanceForTransferAmount, transactionId }, client = require_logoutWithReason.getDefaultClient()) => {
3291
3320
  const { apiClient, environmentId, sessionToken } = await createCheckoutApiClient({ transactionId }, client);
3292
3321
  return withCheckoutSessionTokenCleanupOn401({
3293
3322
  call: () => apiClient.prepareCheckoutTransaction({
@@ -3303,12 +3332,12 @@ const prepareCheckoutTransaction = async ({ assertBalanceForGasCost, assertBalan
3303
3332
  }, client);
3304
3333
  };
3305
3334
  const __prepareCheckoutTransaction_impl = prepareCheckoutTransaction;
3306
- const __prepareCheckoutTransaction_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
3335
+ const __prepareCheckoutTransaction_wrapped = require_logoutWithReason.instrumentFunction({
3307
3336
  fn: __prepareCheckoutTransaction_impl,
3308
3337
  functionName: "prepareCheckoutTransaction",
3309
3338
  getCore: () => {
3310
3339
  try {
3311
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
3340
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
3312
3341
  } catch {
3313
3342
  return;
3314
3343
  }
@@ -3360,7 +3389,7 @@ const SWAP_SUPPORTED_CHAINS = [
3360
3389
  * @notInstrumented
3361
3390
  */
3362
3391
  const ensureCorrectActiveNetwork = async ({ requiredNetworkId, walletProvider }, client) => {
3363
- const { logger } = require_updateAuthFromVerifyResponse.getCore(client);
3392
+ const { logger } = require_logoutWithReason.getCore(client);
3364
3393
  if (!requiredNetworkId || !walletProvider.switchActiveNetwork) return;
3365
3394
  logger.debug("[ensureCorrectActiveNetwork] Required network id", requiredNetworkId);
3366
3395
  let activeNetworkId;
@@ -3390,9 +3419,9 @@ const ensureCorrectActiveNetwork = async ({ requiredNetworkId, walletProvider },
3390
3419
  * @returns The transaction hash.
3391
3420
  * @instrumented
3392
3421
  */
3393
- const executeSwapTransaction = async ({ walletAccount, signingPayload, onStepChange, sponsorshipMode }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3394
- if (!SWAP_SUPPORTED_CHAINS.includes(walletAccount.chain)) throw new require_updateAuthFromVerifyResponse.InvalidParamError(`Chain ${walletAccount.chain} is not supported for swap transactions`);
3395
- const walletProvider = require_updateAuthFromVerifyResponse.getWalletProviderFromWalletAccount({ walletAccount }, client);
3422
+ const executeSwapTransaction = async ({ walletAccount, signingPayload, onStepChange, sponsorshipMode }, client = require_logoutWithReason.getDefaultClient()) => {
3423
+ if (!SWAP_SUPPORTED_CHAINS.includes(walletAccount.chain)) throw new require_logoutWithReason.InvalidParamError(`Chain ${walletAccount.chain} is not supported for swap transactions`);
3424
+ const walletProvider = require_logoutWithReason.getWalletProviderFromWalletAccount({ walletAccount }, client);
3396
3425
  assertWalletProviderMethodDefined(walletProvider, "executeSwapTransaction");
3397
3426
  await ensureCorrectActiveNetwork({
3398
3427
  requiredNetworkId: signingPayload.chainId,
@@ -3407,12 +3436,12 @@ const executeSwapTransaction = async ({ walletAccount, signingPayload, onStepCha
3407
3436
  return { transactionHash };
3408
3437
  };
3409
3438
  const __executeSwapTransaction_impl = executeSwapTransaction;
3410
- const __executeSwapTransaction_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
3439
+ const __executeSwapTransaction_wrapped = require_logoutWithReason.instrumentFunction({
3411
3440
  fn: __executeSwapTransaction_impl,
3412
3441
  functionName: "executeSwapTransaction",
3413
3442
  getCore: () => {
3414
3443
  try {
3415
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
3444
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
3416
3445
  } catch {
3417
3446
  return;
3418
3447
  }
@@ -3438,13 +3467,13 @@ const __executeSwapTransaction_wrapped = require_updateAuthFromVerifyResponse.in
3438
3467
  * @instrumented
3439
3468
  * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
3440
3469
  */
3441
- const submitCheckoutTransaction = async ({ onStepChange, transactionId, walletAccount, assertBalanceForGasCost, assertBalanceForTransferAmount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3470
+ const submitCheckoutTransaction = async ({ onStepChange, transactionId, walletAccount, assertBalanceForGasCost, assertBalanceForTransferAmount }, client = require_logoutWithReason.getDefaultClient()) => {
3442
3471
  const signingPayload = (await __prepareCheckoutTransaction_wrapped({
3443
3472
  assertBalanceForGasCost,
3444
3473
  assertBalanceForTransferAmount,
3445
3474
  transactionId
3446
3475
  }, client)).quote?.signingPayload;
3447
- require_updateAuthFromVerifyResponse.assertDefined(signingPayload, "No signing payload returned from prepare — quote may be missing transaction data");
3476
+ require_logoutWithReason.assertDefined(signingPayload, "No signing payload returned from prepare — quote may be missing transaction data");
3448
3477
  const { transactionHash } = await __executeSwapTransaction_wrapped({
3449
3478
  onStepChange,
3450
3479
  signingPayload,
@@ -3456,12 +3485,12 @@ const submitCheckoutTransaction = async ({ onStepChange, transactionId, walletAc
3456
3485
  }, client);
3457
3486
  };
3458
3487
  const __submitCheckoutTransaction_impl = submitCheckoutTransaction;
3459
- const __submitCheckoutTransaction_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
3488
+ const __submitCheckoutTransaction_wrapped = require_logoutWithReason.instrumentFunction({
3460
3489
  fn: __submitCheckoutTransaction_impl,
3461
3490
  functionName: "submitCheckoutTransaction",
3462
3491
  getCore: () => {
3463
3492
  try {
3464
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
3493
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
3465
3494
  } catch {
3466
3495
  return;
3467
3496
  }
@@ -3491,7 +3520,7 @@ const __submitCheckoutTransaction_wrapped = require_updateAuthFromVerifyResponse
3491
3520
  * @notInstrumented
3492
3521
  * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
3493
3522
  */
3494
- const trackCheckoutTransaction = (_params, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3523
+ const trackCheckoutTransaction = (_params, client = require_logoutWithReason.getDefaultClient()) => {
3495
3524
  return Promise.resolve();
3496
3525
  };
3497
3526
 
@@ -3514,10 +3543,10 @@ const trackCheckoutTransaction = (_params, client = require_updateAuthFromVerify
3514
3543
  * @notInstrumented
3515
3544
  * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
3516
3545
  */
3517
- const requiresConversion = async ({ transaction }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3518
- if (!transaction.fromChainId || !transaction.fromChainName || !transaction.fromToken) throw new require_updateAuthFromVerifyResponse.InvalidParamError("Transaction is missing source information. Make sure that attachCheckoutTransactionSource has been called before calling this function.");
3546
+ const requiresConversion = async ({ transaction }, client = require_logoutWithReason.getDefaultClient()) => {
3547
+ if (!transaction.fromChainId || !transaction.fromChainName || !transaction.fromToken) throw new require_logoutWithReason.InvalidParamError("Transaction is missing source information. Make sure that attachCheckoutTransactionSource has been called before calling this function.");
3519
3548
  const checkout = (await getCheckouts(client)).find((checkout$1) => checkout$1.id === transaction.checkoutId);
3520
- require_updateAuthFromVerifyResponse.assertDefined(checkout, "Could not find checkout associated with transaction.");
3549
+ require_logoutWithReason.assertDefined(checkout, "Could not find checkout associated with transaction.");
3521
3550
  return !checkout.settlementConfig.settlements.some((settlement) => settlement.chainName === transaction.fromChainName && settlement.chainId === transaction.fromChainId && settlement.tokenAddress === transaction.fromToken);
3522
3551
  };
3523
3552
 
@@ -3574,23 +3603,23 @@ const DEVICE_REGISTRATION_TOKEN_HEADER = "x-dynamic-device-registration-token";
3574
3603
  * @see clearDeviceRegistrationRedirectParams
3575
3604
  * @instrumented
3576
3605
  */
3577
- const completeDeviceRegistration = async ({ deviceToken }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3578
- require_updateAuthFromVerifyResponse.assertDefined(deviceToken, "deviceToken is required");
3579
- const core = require_updateAuthFromVerifyResponse.getCore(client);
3606
+ const completeDeviceRegistration = async ({ deviceToken }, client = require_logoutWithReason.getDefaultClient()) => {
3607
+ require_logoutWithReason.assertDefined(deviceToken, "deviceToken is required");
3608
+ const core = require_logoutWithReason.getCore(client);
3580
3609
  const currentUser = core.state.get().user;
3581
- const response = await require_updateAuthFromVerifyResponse.createApiClient({ headers: { [DEVICE_REGISTRATION_TOKEN_HEADER]: deviceToken } }, client).deviceRegistration({ environmentId: core.environmentId });
3610
+ const response = await require_logoutWithReason.createApiClient({ headers: { [DEVICE_REGISTRATION_TOKEN_HEADER]: deviceToken } }, client).deviceRegistration({ environmentId: core.environmentId });
3582
3611
  if (currentUser && response.user?.id !== currentUser.id) throw new DeviceRegistrationIdentityMismatchError();
3583
- require_updateAuthFromVerifyResponse.updateAuthFromVerifyResponse({ response }, client);
3584
- require_updateAuthFromVerifyResponse.emitEvent({ event: "deviceRegistrationCompleted" }, client);
3612
+ require_logoutWithReason.updateAuthFromVerifyResponse({ response }, client);
3613
+ require_logoutWithReason.emitEvent({ event: "deviceRegistrationCompleted" }, client);
3585
3614
  return response;
3586
3615
  };
3587
3616
  const __completeDeviceRegistration_impl = completeDeviceRegistration;
3588
- const __completeDeviceRegistration_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
3617
+ const __completeDeviceRegistration_wrapped = require_logoutWithReason.instrumentFunction({
3589
3618
  fn: __completeDeviceRegistration_impl,
3590
3619
  functionName: "completeDeviceRegistration",
3591
3620
  getCore: () => {
3592
3621
  try {
3593
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
3622
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
3594
3623
  } catch {
3595
3624
  return;
3596
3625
  }
@@ -3644,9 +3673,9 @@ const detectDeviceRegistrationRedirect = ({ url }) => {
3644
3673
  //#endregion
3645
3674
  //#region src/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.ts
3646
3675
  /** @notInstrumented */
3647
- const getRegisteredDevices = async (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3648
- const core = require_updateAuthFromVerifyResponse.getCore(client);
3649
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
3676
+ const getRegisteredDevices = async (client = require_logoutWithReason.getDefaultClient()) => {
3677
+ const core = require_logoutWithReason.getCore(client);
3678
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
3650
3679
  try {
3651
3680
  return (await apiClient.listDeviceRegistrations({ environmentId: core.environmentId })).deviceRegistrations;
3652
3681
  } catch (error) {
@@ -3654,7 +3683,7 @@ const getRegisteredDevices = async (client = require_updateAuthFromVerifyRespons
3654
3683
  * The API will return 401 when no devices are registered when there are no
3655
3684
  * devices registered. We need to handle this case gracefully.
3656
3685
  */
3657
- if (error instanceof require_updateAuthFromVerifyResponse.UnauthorizedError) return [];
3686
+ if (error instanceof require_logoutWithReason.UnauthorizedError) return [];
3658
3687
  throw error;
3659
3688
  }
3660
3689
  };
@@ -3662,18 +3691,18 @@ const getRegisteredDevices = async (client = require_updateAuthFromVerifyRespons
3662
3691
  //#endregion
3663
3692
  //#region src/modules/deviceRegistration/revokeAllRegisteredDevices/revokeAllRegisteredDevices.ts
3664
3693
  /** @instrumented */
3665
- const revokeAllRegisteredDevices = async (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3666
- const core = require_updateAuthFromVerifyResponse.getCore(client);
3667
- await require_updateAuthFromVerifyResponse.createApiClient({}, client).deleteAllDeviceRegistrations({ environmentId: core.environmentId });
3668
- await require_updateAuthFromVerifyResponse.__logoutWithReason_wrapped({ reason: "all-devices-revoked" }, client);
3694
+ const revokeAllRegisteredDevices = async (client = require_logoutWithReason.getDefaultClient()) => {
3695
+ const core = require_logoutWithReason.getCore(client);
3696
+ await require_logoutWithReason.createApiClient({}, client).deleteAllDeviceRegistrations({ environmentId: core.environmentId });
3697
+ await require_logoutWithReason.__logoutWithReason_wrapped({ reason: "all-devices-revoked" }, client);
3669
3698
  };
3670
3699
  const __revokeAllRegisteredDevices_impl = revokeAllRegisteredDevices;
3671
- const __revokeAllRegisteredDevices_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
3700
+ const __revokeAllRegisteredDevices_wrapped = require_logoutWithReason.instrumentFunction({
3672
3701
  fn: __revokeAllRegisteredDevices_impl,
3673
3702
  functionName: "revokeAllRegisteredDevices",
3674
3703
  getCore: () => {
3675
3704
  try {
3676
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
3705
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
3677
3706
  } catch {
3678
3707
  return;
3679
3708
  }
@@ -3683,21 +3712,21 @@ const __revokeAllRegisteredDevices_wrapped = require_updateAuthFromVerifyRespons
3683
3712
  //#endregion
3684
3713
  //#region src/modules/deviceRegistration/revokeRegisteredDevice/revokeRegisteredDevice.ts
3685
3714
  /** @instrumented */
3686
- const revokeRegisteredDevice = async ({ deviceRegistrationId }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3687
- require_updateAuthFromVerifyResponse.assertDefined(deviceRegistrationId, "deviceRegistrationId is required");
3688
- const core = require_updateAuthFromVerifyResponse.getCore(client);
3689
- if ((await require_updateAuthFromVerifyResponse.createApiClient({}, client).deleteDeviceRegistration({
3715
+ const revokeRegisteredDevice = async ({ deviceRegistrationId }, client = require_logoutWithReason.getDefaultClient()) => {
3716
+ require_logoutWithReason.assertDefined(deviceRegistrationId, "deviceRegistrationId is required");
3717
+ const core = require_logoutWithReason.getCore(client);
3718
+ if ((await require_logoutWithReason.createApiClient({}, client).deleteDeviceRegistration({
3690
3719
  deviceRegistrationId,
3691
3720
  environmentId: core.environmentId
3692
- })).currentDeviceRevoked) await require_updateAuthFromVerifyResponse.__logoutWithReason_wrapped({ reason: "device-revoked" }, client);
3721
+ })).currentDeviceRevoked) await require_logoutWithReason.__logoutWithReason_wrapped({ reason: "device-revoked" }, client);
3693
3722
  };
3694
3723
  const __revokeRegisteredDevice_impl = revokeRegisteredDevice;
3695
- const __revokeRegisteredDevice_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
3724
+ const __revokeRegisteredDevice_wrapped = require_logoutWithReason.instrumentFunction({
3696
3725
  fn: __revokeRegisteredDevice_impl,
3697
3726
  functionName: "revokeRegisteredDevice",
3698
3727
  getCore: () => {
3699
3728
  try {
3700
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
3729
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
3701
3730
  } catch {
3702
3731
  return;
3703
3732
  }
@@ -3708,7 +3737,7 @@ const __revokeRegisteredDevice_wrapped = require_updateAuthFromVerifyResponse.in
3708
3737
  //#region src/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.ts
3709
3738
  /** @notInstrumented */
3710
3739
  const createFlowSessionTokenStorageKey = (flowId) => {
3711
- return require_updateAuthFromVerifyResponse.createStorageKeySchema({
3740
+ return require_logoutWithReason.createStorageKeySchema({
3712
3741
  key: `flowSessionToken:${flowId}`,
3713
3742
  schema: zod_mini.string()
3714
3743
  });
@@ -3733,7 +3762,7 @@ const createFlowSessionTokenStorageKey = (flowId) => {
3733
3762
  * @notInstrumented
3734
3763
  */
3735
3764
  const clearFlowSessionToken = async ({ flowId }, client) => {
3736
- await require_updateAuthFromVerifyResponse.getCore(client).storage.removeItem(createFlowSessionTokenStorageKey(flowId));
3765
+ await require_logoutWithReason.getCore(client).storage.removeItem(createFlowSessionTokenStorageKey(flowId));
3737
3766
  };
3738
3767
 
3739
3768
  //#endregion
@@ -3751,10 +3780,10 @@ const withFlowSessionTokenCleanupOn401 = async ({ call, flowId }, client) => {
3751
3780
  try {
3752
3781
  return await call();
3753
3782
  } catch (error) {
3754
- if (error instanceof require_updateAuthFromVerifyResponse.APIError && error.status === 401) try {
3783
+ if (error instanceof require_logoutWithReason.APIError && error.status === 401) try {
3755
3784
  await clearFlowSessionToken({ flowId }, client);
3756
3785
  } catch (cleanupError) {
3757
- require_updateAuthFromVerifyResponse.getCore(client).logger.error("Failed to clear flow session token after 401", cleanupError);
3786
+ require_logoutWithReason.getCore(client).logger.error("Failed to clear flow session token after 401", cleanupError);
3758
3787
  }
3759
3788
  throw error;
3760
3789
  }
@@ -3790,10 +3819,10 @@ const attachFlowSourceInstrumentation = { resolved: ({ flow }) => ({
3790
3819
  * @returns The updated flow and session token
3791
3820
  * @instrumented
3792
3821
  */
3793
- const attachFlowSource = async (params, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3794
- const core = require_updateAuthFromVerifyResponse.getCore(client);
3822
+ const attachFlowSource = async (params, client = require_logoutWithReason.getDefaultClient()) => {
3823
+ const core = require_logoutWithReason.getCore(client);
3795
3824
  const { flowId, sourceType = "wallet" } = params;
3796
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
3825
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
3797
3826
  const flowAttachSourceRequest = { sourceType };
3798
3827
  if (params.sourceType === "exchange") flowAttachSourceRequest.exchangeProvider = params.exchangeProvider;
3799
3828
  else if (params.sourceType === "deposit_address") {
@@ -3819,12 +3848,12 @@ const attachFlowSource = async (params, client = require_updateAuthFromVerifyRes
3819
3848
  return result;
3820
3849
  };
3821
3850
  const __attachFlowSource_impl = attachFlowSource;
3822
- const __attachFlowSource_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
3851
+ const __attachFlowSource_wrapped = require_logoutWithReason.instrumentFunction({
3823
3852
  fn: __attachFlowSource_impl,
3824
3853
  functionName: "attachFlowSource",
3825
3854
  getCore: () => {
3826
3855
  try {
3827
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
3856
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
3828
3857
  } catch {
3829
3858
  return;
3830
3859
  }
@@ -3836,8 +3865,8 @@ const __attachFlowSource_wrapped = require_updateAuthFromVerifyResponse.instrume
3836
3865
  //#region src/modules/flow/utils/createFlowApiClient/createFlowApiClient.ts
3837
3866
  /** @notInstrumented */
3838
3867
  const createFlowApiClient = async ({ flowId }, client) => {
3839
- const core = require_updateAuthFromVerifyResponse.getCore(client);
3840
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
3868
+ const core = require_logoutWithReason.getCore(client);
3869
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
3841
3870
  const sessionToken = await core.storage.getItem(createFlowSessionTokenStorageKey(flowId));
3842
3871
  if (!sessionToken) throw new FlowSessionTokenMissingError({ flowId });
3843
3872
  return {
@@ -3877,7 +3906,7 @@ const broadcastFlowInstrumentation = { resolved: (flow) => ({
3877
3906
  * @returns The updated flow
3878
3907
  * @instrumented
3879
3908
  */
3880
- const broadcastFlow = async ({ flowId, txHash }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3909
+ const broadcastFlow = async ({ flowId, txHash }, client = require_logoutWithReason.getDefaultClient()) => {
3881
3910
  const { apiClient, environmentId, sessionToken } = await createFlowApiClient({ flowId }, client);
3882
3911
  return withFlowSessionTokenCleanupOn401({
3883
3912
  call: () => apiClient.broadcastFlow({
@@ -3890,12 +3919,12 @@ const broadcastFlow = async ({ flowId, txHash }, client = require_updateAuthFrom
3890
3919
  }, client);
3891
3920
  };
3892
3921
  const __broadcastFlow_impl = broadcastFlow;
3893
- const __broadcastFlow_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
3922
+ const __broadcastFlow_wrapped = require_logoutWithReason.instrumentFunction({
3894
3923
  fn: __broadcastFlow_impl,
3895
3924
  functionName: "broadcastFlow",
3896
3925
  getCore: () => {
3897
3926
  try {
3898
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
3927
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
3899
3928
  } catch {
3900
3929
  return;
3901
3930
  }
@@ -3935,7 +3964,7 @@ const cancelFlowInstrumentation = { resolved: (flow) => ({
3935
3964
  * @see getFlowQuote
3936
3965
  * @instrumented
3937
3966
  */
3938
- const cancelFlow = async ({ flowId }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3967
+ const cancelFlow = async ({ flowId }, client = require_logoutWithReason.getDefaultClient()) => {
3939
3968
  const { apiClient, environmentId, sessionToken } = await createFlowApiClient({ flowId }, client);
3940
3969
  const result = await withFlowSessionTokenCleanupOn401({
3941
3970
  call: () => apiClient.cancelFlow({
@@ -3949,12 +3978,12 @@ const cancelFlow = async ({ flowId }, client = require_updateAuthFromVerifyRespo
3949
3978
  return result;
3950
3979
  };
3951
3980
  const __cancelFlow_impl = cancelFlow;
3952
- const __cancelFlow_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
3981
+ const __cancelFlow_wrapped = require_logoutWithReason.instrumentFunction({
3953
3982
  fn: __cancelFlow_impl,
3954
3983
  functionName: "cancelFlow",
3955
3984
  getCore: () => {
3956
3985
  try {
3957
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
3986
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
3958
3987
  } catch {
3959
3988
  return;
3960
3989
  }
@@ -3980,9 +4009,9 @@ const __cancelFlow_wrapped = require_updateAuthFromVerifyResponse.instrumentFunc
3980
4009
  * @see getFlowQuote
3981
4010
  * @notInstrumented
3982
4011
  */
3983
- const getFlow = async ({ flowId }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
3984
- const core = require_updateAuthFromVerifyResponse.getCore(client);
3985
- return require_updateAuthFromVerifyResponse.createApiClient({}, client).getFlow({
4012
+ const getFlow = async ({ flowId }, client = require_logoutWithReason.getDefaultClient()) => {
4013
+ const core = require_logoutWithReason.getCore(client);
4014
+ return require_logoutWithReason.createApiClient({}, client).getFlow({
3986
4015
  environmentId: core.environmentId,
3987
4016
  flowId
3988
4017
  });
@@ -4011,7 +4040,7 @@ const getFlow = async ({ flowId }, client = require_updateAuthFromVerifyResponse
4011
4040
  * @see cancelFlow
4012
4041
  * @notInstrumented
4013
4042
  */
4014
- const getFlowQuote = async ({ flowId, fromChainId, fromTokenAddress, slippage }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
4043
+ const getFlowQuote = async ({ flowId, fromChainId, fromTokenAddress, slippage }, client = require_logoutWithReason.getDefaultClient()) => {
4015
4044
  const { apiClient, environmentId, sessionToken } = await createFlowApiClient({ flowId }, client);
4016
4045
  return withFlowSessionTokenCleanupOn401({
4017
4046
  call: () => apiClient.getFlowQuote({
@@ -4056,7 +4085,7 @@ const prepareFlowSigningInstrumentation = { resolved: (flow) => ({
4056
4085
  * @returns The updated flow
4057
4086
  * @instrumented
4058
4087
  */
4059
- const prepareFlowSigning = async ({ assertBalanceForGasCost, assertBalanceForTransferAmount, flowId }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
4088
+ const prepareFlowSigning = async ({ assertBalanceForGasCost, assertBalanceForTransferAmount, flowId }, client = require_logoutWithReason.getDefaultClient()) => {
4060
4089
  const { apiClient, environmentId, sessionToken } = await createFlowApiClient({ flowId }, client);
4061
4090
  return withFlowSessionTokenCleanupOn401({
4062
4091
  call: () => apiClient.prepareFlowSigning({
@@ -4072,12 +4101,12 @@ const prepareFlowSigning = async ({ assertBalanceForGasCost, assertBalanceForTra
4072
4101
  }, client);
4073
4102
  };
4074
4103
  const __prepareFlowSigning_impl = prepareFlowSigning;
4075
- const __prepareFlowSigning_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
4104
+ const __prepareFlowSigning_wrapped = require_logoutWithReason.instrumentFunction({
4076
4105
  fn: __prepareFlowSigning_impl,
4077
4106
  functionName: "prepareFlowSigning",
4078
4107
  getCore: () => {
4079
4108
  try {
4080
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
4109
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
4081
4110
  } catch {
4082
4111
  return;
4083
4112
  }
@@ -4117,32 +4146,32 @@ const submitFlowTransactionInstrumentation = { resolved: (flow) => ({
4117
4146
  * @returns The broadcasted flow
4118
4147
  * @instrumented
4119
4148
  */
4120
- const submitFlowTransaction = async ({ onStepChange, flowId, walletAccount, assertBalanceForGasCost, assertBalanceForTransferAmount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
4149
+ const submitFlowTransaction = async ({ onStepChange, flowId, walletAccount, assertBalanceForGasCost, assertBalanceForTransferAmount }, client = require_logoutWithReason.getDefaultClient()) => {
4121
4150
  const signingPayload = (await __prepareFlowSigning_wrapped({
4122
4151
  assertBalanceForGasCost,
4123
4152
  assertBalanceForTransferAmount,
4124
4153
  flowId
4125
4154
  }, client)).quote?.signingPayload;
4126
- require_updateAuthFromVerifyResponse.assertDefined(signingPayload, "No signing payload returned from prepare — quote may be missing transaction data");
4155
+ require_logoutWithReason.assertDefined(signingPayload, "No signing payload returned from prepare — quote may be missing transaction data");
4127
4156
  const { transactionHash } = await __executeSwapTransaction_wrapped({
4128
4157
  onStepChange,
4129
4158
  signingPayload,
4130
4159
  walletAccount
4131
4160
  }, client);
4132
- require_updateAuthFromVerifyResponse.getCore(client).logger.debug("[submitFlowTransaction] transaction hash returned from swap transaction execution", { transactionHash });
4133
- require_updateAuthFromVerifyResponse.assertDefined(transactionHash, "No transaction hash returned from transaction execution. Flow transaction may not have been executed successfully.");
4161
+ require_logoutWithReason.getCore(client).logger.debug("[submitFlowTransaction] transaction hash returned from swap transaction execution", { transactionHash });
4162
+ require_logoutWithReason.assertDefined(transactionHash, "No transaction hash returned from transaction execution. Flow transaction may not have been executed successfully.");
4134
4163
  return __broadcastFlow_wrapped({
4135
4164
  flowId,
4136
4165
  txHash: transactionHash
4137
4166
  }, client);
4138
4167
  };
4139
4168
  const __submitFlowTransaction_impl = submitFlowTransaction;
4140
- const __submitFlowTransaction_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
4169
+ const __submitFlowTransaction_wrapped = require_logoutWithReason.instrumentFunction({
4141
4170
  fn: __submitFlowTransaction_impl,
4142
4171
  functionName: "submitFlowTransaction",
4143
4172
  getCore: () => {
4144
4173
  try {
4145
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
4174
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
4146
4175
  } catch {
4147
4176
  return;
4148
4177
  }
@@ -4163,9 +4192,9 @@ const __submitFlowTransaction_wrapped = require_updateAuthFromVerifyResponse.ins
4163
4192
  * @notInstrumented
4164
4193
  * @hook Event listeners are error-prone to wire up by hand with useEffect.
4165
4194
  */
4166
- const addCoinbaseOnrampOrderEventListener = ({ listener }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
4167
- const core = require_updateAuthFromVerifyResponse.getCore(client);
4168
- if (typeof window === "undefined") throw new require_updateAuthFromVerifyResponse.ValueMustBeDefinedError("Window is not available to listen for Coinbase onramp order events");
4195
+ const addCoinbaseOnrampOrderEventListener = ({ listener }, client = require_logoutWithReason.getDefaultClient()) => {
4196
+ const core = require_logoutWithReason.getCore(client);
4197
+ if (typeof window === "undefined") throw new require_logoutWithReason.ValueMustBeDefinedError("Window is not available to listen for Coinbase onramp order events");
4169
4198
  const handleMessageEvent = (event) => {
4170
4199
  if (event.origin !== "https://pay.coinbase.com") return;
4171
4200
  core.logger.debug("[addCoinbaseOnrampOrderEventListener] pay.coinbase.com event received", { event });
@@ -4350,9 +4379,9 @@ const parseCoinbaseTravelRuleMissingFields = ({ message }) => {
4350
4379
  * @see CoinbaseTravelRuleRequiredError
4351
4380
  * @notInstrumented
4352
4381
  */
4353
- const createCoinbaseExchangeTransfer = async (transferParams, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
4354
- const core = require_updateAuthFromVerifyResponse.getCore(client);
4355
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({ includeMfaToken: true }, client);
4382
+ const createCoinbaseExchangeTransfer = async (transferParams, client = require_logoutWithReason.getDefaultClient()) => {
4383
+ const core = require_logoutWithReason.getCore(client);
4384
+ const apiClient = require_logoutWithReason.createApiClient({ includeMfaToken: true }, client);
4356
4385
  const { accountId, ...createExchangeTransferRequest } = transferParams;
4357
4386
  try {
4358
4387
  return await apiClient.postExchangeAccountTransfer({
@@ -4362,7 +4391,7 @@ const createCoinbaseExchangeTransfer = async (transferParams, client = require_u
4362
4391
  exchangeKey: _dynamic_labs_sdk_api_core.ExchangeKeyEnum.Coinbase
4363
4392
  });
4364
4393
  } catch (error) {
4365
- if (!(error instanceof require_updateAuthFromVerifyResponse.APIError)) throw error;
4394
+ if (!(error instanceof require_logoutWithReason.APIError)) throw error;
4366
4395
  if (error.code === "transfer_mfa_required") throw new CoinbaseTransferMfaRequiredError({ cause: error });
4367
4396
  if (error.code === "transfer_mfa_failed") throw new CoinbaseTransferMfaFailedError({ cause: error });
4368
4397
  if (error.code === "unknown_transfer_error") {
@@ -4394,10 +4423,10 @@ const createCoinbaseExchangeTransfer = async (transferParams, client = require_u
4394
4423
  * @throws {ValueMustBeDefinedError} - If the user is not authenticated
4395
4424
  * @notInstrumented
4396
4425
  */
4397
- const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
4398
- if (paymentMethod !== "GUEST_CHECKOUT_APPLE_PAY") throw new require_updateAuthFromVerifyResponse.InvalidParamError(`Invalid payment method: ${paymentMethod}`);
4426
+ const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client = require_logoutWithReason.getDefaultClient()) => {
4427
+ if (paymentMethod !== "GUEST_CHECKOUT_APPLE_PAY") throw new require_logoutWithReason.InvalidParamError(`Invalid payment method: ${paymentMethod}`);
4399
4428
  const { user } = client;
4400
- require_updateAuthFromVerifyResponse.assertDefined(user, "User is not authenticated");
4429
+ require_logoutWithReason.assertDefined(user, "User is not authenticated");
4401
4430
  const fieldsMissingVerification = [];
4402
4431
  const emailVerifiedCredential = user.verifiedCredentials.find((credential) => credential.format === _dynamic_labs_sdk_api_core.JwtVerifiedCredentialFormatEnum.Email);
4403
4432
  if (!user.email) fieldsMissingVerification.push({
@@ -4433,7 +4462,7 @@ const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client
4433
4462
  /** @notInstrumented */
4434
4463
  const validateUserCredentialsForCoinbaseOnrampOrder = (client) => {
4435
4464
  const { user } = client;
4436
- require_updateAuthFromVerifyResponse.assertDefined(user, "User is not authenticated");
4465
+ require_logoutWithReason.assertDefined(user, "User is not authenticated");
4437
4466
  const fieldsMissingVerification = getMissingVerificationForCoinbaseOnrampOrder({ paymentMethod: "GUEST_CHECKOUT_APPLE_PAY" }, client);
4438
4467
  if (fieldsMissingVerification.find((field) => field.field === "email")) throw new MissingUserVerificationError({
4439
4468
  informationToVerify: "email",
@@ -4462,10 +4491,10 @@ const validateUserCredentialsForCoinbaseOnrampOrder = (client) => {
4462
4491
  * @throws {MissingUserVerificationError} If the user is missing verification for email or phone
4463
4492
  * @instrumented
4464
4493
  */
4465
- const createCoinbaseOnrampOrder = async (orderParams, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
4494
+ const createCoinbaseOnrampOrder = async (orderParams, client = require_logoutWithReason.getDefaultClient()) => {
4466
4495
  const user = validateUserCredentialsForCoinbaseOnrampOrder(client);
4467
- const core = require_updateAuthFromVerifyResponse.getCore(client);
4468
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({ includeMfaToken: true }, client);
4496
+ const core = require_logoutWithReason.getCore(client);
4497
+ const apiClient = require_logoutWithReason.createApiClient({ includeMfaToken: true }, client);
4469
4498
  const { isSandbox, ...restOrderParams } = orderParams;
4470
4499
  const orderResponse = await apiClient.createCoinbaseOnrampOrder({
4471
4500
  coinbaseOnrampOrderCreateRequest: {
@@ -4485,12 +4514,12 @@ const createCoinbaseOnrampOrder = async (orderParams, client = require_updateAut
4485
4514
  };
4486
4515
  };
4487
4516
  const __createCoinbaseOnrampOrder_impl = createCoinbaseOnrampOrder;
4488
- const __createCoinbaseOnrampOrder_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
4517
+ const __createCoinbaseOnrampOrder_wrapped = require_logoutWithReason.instrumentFunction({
4489
4518
  fn: __createCoinbaseOnrampOrder_impl,
4490
4519
  functionName: "createCoinbaseOnrampOrder",
4491
4520
  getCore: () => {
4492
4521
  try {
4493
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
4522
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
4494
4523
  } catch {
4495
4524
  return;
4496
4525
  }
@@ -4513,8 +4542,8 @@ const CHAIN_ENUM_VALUES = Object.values(_dynamic_labs_sdk_api_core.ChainEnum);
4513
4542
  * @notInstrumented
4514
4543
  */
4515
4544
  const assertChainName = (chainName) => {
4516
- if (chainName === void 0) throw new require_updateAuthFromVerifyResponse.InvalidParamError("chainName is required");
4517
- if (!CHAIN_ENUM_VALUES.includes(chainName)) throw new require_updateAuthFromVerifyResponse.InvalidParamError(`Invalid chainName: ${chainName}`);
4545
+ if (chainName === void 0) throw new require_logoutWithReason.InvalidParamError("chainName is required");
4546
+ if (!CHAIN_ENUM_VALUES.includes(chainName)) throw new require_logoutWithReason.InvalidParamError(`Invalid chainName: ${chainName}`);
4518
4547
  };
4519
4548
 
4520
4549
  //#endregion
@@ -4535,13 +4564,13 @@ const assertChainName = (chainName) => {
4535
4564
  * @see GetCoinbaseAccountsParams
4536
4565
  * @notInstrumented
4537
4566
  */
4538
- const getCoinbaseAccounts = async (params, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
4539
- const core = require_updateAuthFromVerifyResponse.getCore(client);
4540
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({ includeMfaToken: true }, client);
4567
+ const getCoinbaseAccounts = async (params, client = require_logoutWithReason.getDefaultClient()) => {
4568
+ const core = require_logoutWithReason.getCore(client);
4569
+ const apiClient = require_logoutWithReason.createApiClient({ includeMfaToken: true }, client);
4541
4570
  const chainName = params?.chainName;
4542
4571
  if (chainName !== void 0) assertChainName(chainName);
4543
4572
  const networkId = params?.networkId;
4544
- if (networkId !== void 0 && (!Number.isInteger(networkId) || networkId < 0)) throw new require_updateAuthFromVerifyResponse.InvalidParamError(`Invalid networkId: ${networkId}`);
4573
+ if (networkId !== void 0 && (!Number.isInteger(networkId) || networkId < 0)) throw new require_logoutWithReason.InvalidParamError(`Invalid networkId: ${networkId}`);
4545
4574
  return await apiClient.getUserAccounts({
4546
4575
  chainName,
4547
4576
  environmentId: core.environmentId,
@@ -4560,9 +4589,9 @@ const getCoinbaseAccounts = async (params, client = require_updateAuthFromVerify
4560
4589
  * @returns an object containing the buy URL
4561
4590
  * @notInstrumented
4562
4591
  */
4563
- const getCoinbaseBuyUrl = async (buyUrlParams, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
4564
- const core = require_updateAuthFromVerifyResponse.getCore(client);
4565
- return await require_updateAuthFromVerifyResponse.createApiClient({ includeMfaToken: true }, client).generateCoinbaseOnrampBuyUrl({
4592
+ const getCoinbaseBuyUrl = async (buyUrlParams, client = require_logoutWithReason.getDefaultClient()) => {
4593
+ const core = require_logoutWithReason.getCore(client);
4594
+ return await require_logoutWithReason.createApiClient({ includeMfaToken: true }, client).generateCoinbaseOnrampBuyUrl({
4566
4595
  coinbaseOnrampGetBuyUrlRequest: buyUrlParams,
4567
4596
  environmentId: core.environmentId
4568
4597
  });
@@ -4578,9 +4607,9 @@ const getCoinbaseBuyUrl = async (buyUrlParams, client = require_updateAuthFromVe
4578
4607
  * @returns The created payment
4579
4608
  * @instrumented
4580
4609
  */
4581
- const createCryptoDotComPayment = async (paymentParams, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
4582
- const core = require_updateAuthFromVerifyResponse.getCore(client);
4583
- return await require_updateAuthFromVerifyResponse.createApiClient({ includeMfaToken: true }, client).createCryptoDotComPayment({
4610
+ const createCryptoDotComPayment = async (paymentParams, client = require_logoutWithReason.getDefaultClient()) => {
4611
+ const core = require_logoutWithReason.getCore(client);
4612
+ return await require_logoutWithReason.createApiClient({ includeMfaToken: true }, client).createCryptoDotComPayment({
4584
4613
  cryptoDotComPaymentCreateRequest: {
4585
4614
  ...paymentParams,
4586
4615
  chain: paymentParams.chain
@@ -4589,12 +4618,12 @@ const createCryptoDotComPayment = async (paymentParams, client = require_updateA
4589
4618
  });
4590
4619
  };
4591
4620
  const __createCryptoDotComPayment_impl = createCryptoDotComPayment;
4592
- const __createCryptoDotComPayment_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
4621
+ const __createCryptoDotComPayment_wrapped = require_logoutWithReason.instrumentFunction({
4593
4622
  fn: __createCryptoDotComPayment_impl,
4594
4623
  functionName: "createCryptoDotComPayment",
4595
4624
  getCore: () => {
4596
4625
  try {
4597
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
4626
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
4598
4627
  } catch {
4599
4628
  return;
4600
4629
  }
@@ -4611,9 +4640,9 @@ const __createCryptoDotComPayment_wrapped = require_updateAuthFromVerifyResponse
4611
4640
  * @returns The created transfer
4612
4641
  * @notInstrumented
4613
4642
  */
4614
- const createKrakenExchangeTransfer = async (transferParams, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
4615
- const core = require_updateAuthFromVerifyResponse.getCore(client);
4616
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({ includeMfaToken: true }, client);
4643
+ const createKrakenExchangeTransfer = async (transferParams, client = require_logoutWithReason.getDefaultClient()) => {
4644
+ const core = require_logoutWithReason.getCore(client);
4645
+ const apiClient = require_logoutWithReason.createApiClient({ includeMfaToken: true }, client);
4617
4646
  const { accountId, ...createExchangeTransferRequest } = transferParams;
4618
4647
  return await apiClient.postExchangeAccountTransfer({
4619
4648
  accountId,
@@ -4633,9 +4662,9 @@ const createKrakenExchangeTransfer = async (transferParams, client = require_upd
4633
4662
  * @returns Array of Kraken accounts with balances
4634
4663
  * @notInstrumented
4635
4664
  */
4636
- const getKrakenAccounts = async (params, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
4637
- const core = require_updateAuthFromVerifyResponse.getCore(client);
4638
- return await require_updateAuthFromVerifyResponse.createApiClient({ includeMfaToken: true }, client).getUserAccounts({
4665
+ const getKrakenAccounts = async (params, client = require_logoutWithReason.getDefaultClient()) => {
4666
+ const core = require_logoutWithReason.getCore(client);
4667
+ return await require_logoutWithReason.createApiClient({ includeMfaToken: true }, client).getUserAccounts({
4639
4668
  chainName: params?.chainName,
4640
4669
  environmentId: core.environmentId,
4641
4670
  exchangeKey: _dynamic_labs_sdk_api_core.ExchangeKeyEnum.Kraken,
@@ -4652,9 +4681,9 @@ const getKrakenAccounts = async (params, client = require_updateAuthFromVerifyRe
4652
4681
  * @returns Transfer destinations response with whitelisted addresses
4653
4682
  * @notInstrumented
4654
4683
  */
4655
- const getKrakenWhitelistedAddresses = async (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
4656
- const core = require_updateAuthFromVerifyResponse.getCore(client);
4657
- return await require_updateAuthFromVerifyResponse.createApiClient({ includeMfaToken: true }, client).getExchangeTransferDestinations({
4684
+ const getKrakenWhitelistedAddresses = async (client = require_logoutWithReason.getDefaultClient()) => {
4685
+ const core = require_logoutWithReason.getCore(client);
4686
+ return await require_logoutWithReason.createApiClient({ includeMfaToken: true }, client).getExchangeTransferDestinations({
4658
4687
  environmentId: core.environmentId,
4659
4688
  exchangeKey: _dynamic_labs_sdk_api_core.ExchangeKeyEnum.Kraken
4660
4689
  });
@@ -4672,21 +4701,21 @@ const getKrakenWhitelistedAddresses = async (client = require_updateAuthFromVeri
4672
4701
  * @returns An array of supported MoonPay currencies.
4673
4702
  * @instrumented
4674
4703
  */
4675
- const getMoonPayCurrencies = async (params, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
4676
- const core = require_updateAuthFromVerifyResponse.getCore(client);
4677
- return (await require_updateAuthFromVerifyResponse.createApiClient({ includeMfaToken: true }, client).getMoonPayCurrencies({
4704
+ const getMoonPayCurrencies = async (params, client = require_logoutWithReason.getDefaultClient()) => {
4705
+ const core = require_logoutWithReason.getCore(client);
4706
+ return (await require_logoutWithReason.createApiClient({ includeMfaToken: true }, client).getMoonPayCurrencies({
4678
4707
  chain: params.chain,
4679
4708
  environmentId: core.environmentId,
4680
4709
  ...params.networkId ? { networkId: params.networkId } : {}
4681
4710
  })).currencies ?? [];
4682
4711
  };
4683
4712
  const __getMoonPayCurrencies_impl = getMoonPayCurrencies;
4684
- const __getMoonPayCurrencies_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
4713
+ const __getMoonPayCurrencies_wrapped = require_logoutWithReason.instrumentFunction({
4685
4714
  fn: __getMoonPayCurrencies_impl,
4686
4715
  functionName: "getMoonPayCurrencies",
4687
4716
  getCore: () => {
4688
4717
  try {
4689
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
4718
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
4690
4719
  } catch {
4691
4720
  return;
4692
4721
  }
@@ -4695,7 +4724,7 @@ const __getMoonPayCurrencies_wrapped = require_updateAuthFromVerifyResponse.inst
4695
4724
 
4696
4725
  //#endregion
4697
4726
  //#region src/modules/funding/moonpay/errors/MoonPayInvalidUrlError.ts
4698
- var MoonPayInvalidUrlError = class extends require_updateAuthFromVerifyResponse.BaseError {
4727
+ var MoonPayInvalidUrlError = class extends require_logoutWithReason.BaseError {
4699
4728
  constructor() {
4700
4729
  super({
4701
4730
  cause: null,
@@ -4709,7 +4738,7 @@ var MoonPayInvalidUrlError = class extends require_updateAuthFromVerifyResponse.
4709
4738
 
4710
4739
  //#endregion
4711
4740
  //#region src/modules/funding/moonpay/errors/MoonPayProviderNotAvailableError.ts
4712
- var MoonPayProviderNotAvailableError = class extends require_updateAuthFromVerifyResponse.BaseError {
4741
+ var MoonPayProviderNotAvailableError = class extends require_logoutWithReason.BaseError {
4713
4742
  constructor() {
4714
4743
  super({
4715
4744
  cause: null,
@@ -4734,9 +4763,9 @@ var MoonPayProviderNotAvailableError = class extends require_updateAuthFromVerif
4734
4763
  * @returns The signed MoonPay URL.
4735
4764
  * @instrumented
4736
4765
  */
4737
- const getMoonPayUrl = async (params, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
4738
- const core = require_updateAuthFromVerifyResponse.getCore(client);
4739
- const moonPayProvider = (await require_updateAuthFromVerifyResponse.createApiClient({ includeMfaToken: true }, client).getSupportedOnramps({
4766
+ const getMoonPayUrl = async (params, client = require_logoutWithReason.getDefaultClient()) => {
4767
+ const core = require_logoutWithReason.getCore(client);
4768
+ const moonPayProvider = (await require_logoutWithReason.createApiClient({ includeMfaToken: true }, client).getSupportedOnramps({
4740
4769
  chain: params.chain,
4741
4770
  currency: params.currency,
4742
4771
  environmentId: core.environmentId,
@@ -4757,12 +4786,12 @@ const getMoonPayUrl = async (params, client = require_updateAuthFromVerifyRespon
4757
4786
  return moonPayProvider.url;
4758
4787
  };
4759
4788
  const __getMoonPayUrl_impl = getMoonPayUrl;
4760
- const __getMoonPayUrl_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
4789
+ const __getMoonPayUrl_wrapped = require_logoutWithReason.instrumentFunction({
4761
4790
  fn: __getMoonPayUrl_impl,
4762
4791
  functionName: "getMoonPayUrl",
4763
4792
  getCore: () => {
4764
4793
  try {
4765
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
4794
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
4766
4795
  } catch {
4767
4796
  return;
4768
4797
  }
@@ -4789,8 +4818,8 @@ const __getMoonPayUrl_wrapped = require_updateAuthFromVerifyResponse.instrumentF
4789
4818
  * @notInstrumented
4790
4819
  * @noHook Client lifecycle management is not exposed as a hook; use useInitStatus.
4791
4820
  */
4792
- const waitForClientInitialized = async (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
4793
- await require_updateAuthFromVerifyResponse.getCore(client).initTrack.waitForAll();
4821
+ const waitForClientInitialized = async (client = require_logoutWithReason.getDefaultClient()) => {
4822
+ await require_logoutWithReason.getCore(client).initTrack.waitForAll();
4794
4823
  };
4795
4824
 
4796
4825
  //#endregion
@@ -4803,16 +4832,16 @@ const waitForClientInitialized = async (client = require_updateAuthFromVerifyRes
4803
4832
  * normally but emit no telemetry.
4804
4833
  * @instrumented
4805
4834
  */
4806
- const setInstrumentationEnabled = ({ enabled }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
4807
- require_updateAuthFromVerifyResponse.getCore(client).instrumentation.setEnabled(enabled);
4835
+ const setInstrumentationEnabled = ({ enabled }, client = require_logoutWithReason.getDefaultClient()) => {
4836
+ require_logoutWithReason.getCore(client).instrumentation.setEnabled(enabled);
4808
4837
  };
4809
4838
  const __setInstrumentationEnabled_impl = setInstrumentationEnabled;
4810
- const __setInstrumentationEnabled_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
4839
+ const __setInstrumentationEnabled_wrapped = require_logoutWithReason.instrumentFunction({
4811
4840
  fn: __setInstrumentationEnabled_impl,
4812
4841
  functionName: "setInstrumentationEnabled",
4813
4842
  getCore: () => {
4814
4843
  try {
4815
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
4844
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
4816
4845
  } catch {
4817
4846
  return;
4818
4847
  }
@@ -4974,10 +5003,10 @@ const FETCH_TIMEOUT_MS = 3e4;
4974
5003
  const fetchWithTimeout = async (client) => {
4975
5004
  const controller = new AbortController();
4976
5005
  const timeoutId = setTimeout(() => controller.abort(), FETCH_TIMEOUT_MS);
4977
- const core = require_updateAuthFromVerifyResponse.getCore(client);
5006
+ const core = require_logoutWithReason.getCore(client);
4978
5007
  try {
4979
5008
  const response = await core.fetch(getWalletBookCdnUrl(), { signal: controller.signal });
4980
- if (!response.ok) throw new require_updateAuthFromVerifyResponse.APIError(`Failed to fetch wallet book: ${response.status} ${response.statusText}`, "wallet_book_fetch_error", response.status);
5009
+ if (!response.ok) throw new require_logoutWithReason.APIError(`Failed to fetch wallet book: ${response.status} ${response.statusText}`, "wallet_book_fetch_error", response.status);
4981
5010
  return await response.json();
4982
5011
  } finally {
4983
5012
  clearTimeout(timeoutId);
@@ -4989,7 +5018,7 @@ const fetchWithTimeout = async (client) => {
4989
5018
  /**
4990
5019
  * The schema to store the cached wallet book data.
4991
5020
  */
4992
- const walletBookCacheStorageKeySchema = require_updateAuthFromVerifyResponse.createStorageKeySchema({
5021
+ const walletBookCacheStorageKeySchema = require_logoutWithReason.createStorageKeySchema({
4993
5022
  key: "legacyWalletBookCache",
4994
5023
  schema: zod_mini.object({
4995
5024
  groups: zod_mini.record(zod_mini.string(), zod_mini.any()),
@@ -5021,10 +5050,10 @@ const RETRY_DELAY_MS = 100;
5021
5050
  * @notInstrumented
5022
5051
  */
5023
5052
  const fetchLegacyWalletBook = async (client) => {
5024
- const core = require_updateAuthFromVerifyResponse.getCore(client);
5053
+ const core = require_logoutWithReason.getCore(client);
5025
5054
  core.logger.debug("[fetchLegacyWalletBook] Fetching wallet book...");
5026
5055
  try {
5027
- const walletBook = await require_updateAuthFromVerifyResponse.retryOnFail({
5056
+ const walletBook = await require_logoutWithReason.retryOnFail({
5028
5057
  delay: RETRY_DELAY_MS,
5029
5058
  fn: async () => fetchWithTimeout(client),
5030
5059
  maxRetries: MAX_RETRIES
@@ -5119,7 +5148,7 @@ const shouldFilterWalletForWalletConnect = ({ wallet, walletKey }) => {
5119
5148
  * @returns The full URL to the sprite icon
5120
5149
  * @notInstrumented
5121
5150
  */
5122
- const getSpriteUrl = ({ spriteId }) => `${require_updateAuthFromVerifyResponse.DYNAMIC_ICONIC_SPRITE_URL}#${spriteId}`;
5151
+ const getSpriteUrl = ({ spriteId }) => `${require_logoutWithReason.DYNAMIC_ICONIC_SPRITE_URL}#${spriteId}`;
5123
5152
 
5124
5153
  //#endregion
5125
5154
  //#region src/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/transformGroup.ts
@@ -5156,8 +5185,8 @@ const transformGroup = ({ group }) => {
5156
5185
  */
5157
5186
  const getChainFromWalletBookIdentifier = ({ identifier }) => {
5158
5187
  const normalised = identifier.toLowerCase();
5159
- return Object.keys(require_updateAuthFromVerifyResponse.CHAINS_INFO_MAP).find((chain) => {
5160
- const info = require_updateAuthFromVerifyResponse.CHAINS_INFO_MAP[chain];
5188
+ return Object.keys(require_logoutWithReason.CHAINS_INFO_MAP).find((chain) => {
5189
+ const info = require_logoutWithReason.CHAINS_INFO_MAP[chain];
5161
5190
  return info.apiChainName === normalised || info.legacyWalletBookAliases?.includes(normalised) === true;
5162
5191
  });
5163
5192
  };
@@ -5189,9 +5218,9 @@ const extractChainPrefix = ({ chainIdentifier }) => {
5189
5218
  */
5190
5219
  const getChainFromWalletKey = ({ walletKey }) => {
5191
5220
  const lowerKey = walletKey.toLowerCase();
5192
- const chains = Object.keys(require_updateAuthFromVerifyResponse.CHAINS_INFO_MAP);
5221
+ const chains = Object.keys(require_logoutWithReason.CHAINS_INFO_MAP);
5193
5222
  for (const chain of chains) {
5194
- const info = require_updateAuthFromVerifyResponse.CHAINS_INFO_MAP[chain];
5223
+ const info = require_logoutWithReason.CHAINS_INFO_MAP[chain];
5195
5224
  if ([info.apiChainName, ...info.legacyWalletBookAliases ?? []].some((pattern) => lowerKey.includes(pattern))) return chain;
5196
5225
  }
5197
5226
  };
@@ -5217,7 +5246,7 @@ const getChainFromWalletSchema = ({ wallet, walletKey }) => {
5217
5246
  const firstChain = wallet.chains[0];
5218
5247
  const chainPrefix = extractChainPrefix({ chainIdentifier: firstChain });
5219
5248
  try {
5220
- return require_updateAuthFromVerifyResponse.getChainFromVerifiedCredentialChain(chainPrefix);
5249
+ return require_logoutWithReason.getChainFromVerifiedCredentialChain(chainPrefix);
5221
5250
  } catch {}
5222
5251
  }
5223
5252
  if (walletKey) {
@@ -5297,7 +5326,7 @@ const transformWalletBook = ({ walletBook }) => {
5297
5326
  * @throws If unable to fetch the wallet book from the API (when both CDN fetch and cache retrieval fail).
5298
5327
  * @notInstrumented
5299
5328
  */
5300
- const getWalletConnectCatalog = async (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
5329
+ const getWalletConnectCatalog = async (client = require_logoutWithReason.getDefaultClient()) => {
5301
5330
  return transformWalletBook({ walletBook: await fetchLegacyWalletBook(client) });
5302
5331
  };
5303
5332
 
@@ -5313,7 +5342,7 @@ const getWalletConnectCatalog = async (client = require_updateAuthFromVerifyResp
5313
5342
  */
5314
5343
  const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
5315
5344
  const lowerName = normalizedWalletNameWithChain.toLowerCase();
5316
- const chainSuffixes = Object.keys(require_updateAuthFromVerifyResponse.CHAINS_INFO_MAP).map((chain) => chain.toLowerCase()).sort((a, b) => b.length - a.length);
5345
+ const chainSuffixes = Object.keys(require_logoutWithReason.CHAINS_INFO_MAP).map((chain) => chain.toLowerCase()).sort((a, b) => b.length - a.length);
5317
5346
  for (const suffix of chainSuffixes) if (lowerName.endsWith(suffix)) return suffix.toUpperCase();
5318
5347
  };
5319
5348
 
@@ -5331,8 +5360,8 @@ const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
5331
5360
  * @returns A promise that resolves to the WalletConnect catalog wallet entry, or undefined if not found.
5332
5361
  * @notInstrumented
5333
5362
  */
5334
- const getWalletConnectCatalogWalletByWalletProviderKey = async ({ walletProviderKey }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
5335
- const { normalizedWalletNameWithChain } = require_updateAuthFromVerifyResponse.splitWalletProviderKey(walletProviderKey);
5363
+ const getWalletConnectCatalogWalletByWalletProviderKey = async ({ walletProviderKey }, client = require_logoutWithReason.getDefaultClient()) => {
5364
+ const { normalizedWalletNameWithChain } = require_logoutWithReason.splitWalletProviderKey(walletProviderKey);
5336
5365
  const chain = extractChainFromNormalizedName({ normalizedWalletNameWithChain });
5337
5366
  if (!chain) return;
5338
5367
  let walletProviderName = normalizedWalletNameWithChain.toLowerCase();
@@ -5361,13 +5390,13 @@ const getWalletConnectCatalogWalletByWalletProviderKey = async ({ walletProvider
5361
5390
  * @returns A promise that resolves to OTP verification details if verification is required, or undefined.
5362
5391
  * @instrumented
5363
5392
  */
5364
- const updateUser = async ({ userFields }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
5365
- const core = require_updateAuthFromVerifyResponse.getCore(client);
5366
- const response = await require_updateAuthFromVerifyResponse.createApiClient({ includeMfaToken: true }, client).updateSelf({
5393
+ const updateUser = async ({ userFields }, client = require_logoutWithReason.getDefaultClient()) => {
5394
+ const core = require_logoutWithReason.getCore(client);
5395
+ const response = await require_logoutWithReason.createApiClient({ includeMfaToken: true }, client).updateSelf({
5367
5396
  environmentId: core.environmentId,
5368
5397
  userFields
5369
5398
  });
5370
- require_updateAuthFromVerifyResponse.updateAuthFromVerifyResponse({ response }, client);
5399
+ require_logoutWithReason.updateAuthFromVerifyResponse({ response }, client);
5371
5400
  if (response.emailVerification) return {
5372
5401
  email: response.emailVerification.email,
5373
5402
  verificationUUID: response.emailVerification.verificationUUID
@@ -5380,12 +5409,12 @@ const updateUser = async ({ userFields }, client = require_updateAuthFromVerifyR
5380
5409
  };
5381
5410
  };
5382
5411
  const __updateUser_impl = updateUser;
5383
- const __updateUser_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
5412
+ const __updateUser_wrapped = require_logoutWithReason.instrumentFunction({
5384
5413
  fn: __updateUser_impl,
5385
5414
  functionName: "updateUser",
5386
5415
  getCore: () => {
5387
5416
  try {
5388
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
5417
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
5389
5418
  } catch {
5390
5419
  return;
5391
5420
  }
@@ -5404,16 +5433,16 @@ const __updateUser_wrapped = require_updateAuthFromVerifyResponse.instrumentFunc
5404
5433
  * @returns A promise that resolves when the acknowledgment is complete.
5405
5434
  * @instrumented
5406
5435
  */
5407
- const acknowledgeRecoveryCodes = async (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
5436
+ const acknowledgeRecoveryCodes = async (client = require_logoutWithReason.getDefaultClient()) => {
5408
5437
  return __updateUser_wrapped({ userFields: { mfaBackupCodeAcknowledgement: _dynamic_labs_sdk_api_core.MfaBackupCodeAcknowledgement.Complete } }, client);
5409
5438
  };
5410
5439
  const __acknowledgeRecoveryCodes_impl = acknowledgeRecoveryCodes;
5411
- const __acknowledgeRecoveryCodes_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
5440
+ const __acknowledgeRecoveryCodes_wrapped = require_logoutWithReason.instrumentFunction({
5412
5441
  fn: __acknowledgeRecoveryCodes_impl,
5413
5442
  functionName: "acknowledgeRecoveryCodes",
5414
5443
  getCore: () => {
5415
5444
  try {
5416
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
5445
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
5417
5446
  } catch {
5418
5447
  return;
5419
5448
  }
@@ -5435,9 +5464,9 @@ const __acknowledgeRecoveryCodes_wrapped = require_updateAuthFromVerifyResponse.
5435
5464
  * @returns A promise that resolves to the MFA authentication response.
5436
5465
  * @notInstrumented
5437
5466
  */
5438
- const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, requestedScopes }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
5439
- const core = require_updateAuthFromVerifyResponse.getCore(client);
5440
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
5467
+ const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, requestedScopes }, client = require_logoutWithReason.getDefaultClient()) => {
5468
+ const core = require_logoutWithReason.getCore(client);
5469
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
5441
5470
  try {
5442
5471
  const response = await apiClient.authMfaRecovery({
5443
5472
  environmentId: core.environmentId,
@@ -5447,14 +5476,14 @@ const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, reques
5447
5476
  requestedScopes
5448
5477
  }
5449
5478
  });
5450
- require_updateAuthFromVerifyResponse.updateAuthFromVerifyResponse({ response }, client);
5451
- require_updateAuthFromVerifyResponse.emitEvent({
5479
+ require_logoutWithReason.updateAuthFromVerifyResponse({ response }, client);
5480
+ require_logoutWithReason.emitEvent({
5452
5481
  args: { mfaToken: response.mfaToken },
5453
5482
  event: "mfaCompletionSuccess"
5454
5483
  }, client);
5455
5484
  return response;
5456
5485
  } catch (error) {
5457
- require_updateAuthFromVerifyResponse.emitEvent({
5486
+ require_logoutWithReason.emitEvent({
5458
5487
  args: { error },
5459
5488
  event: "mfaCompletionFailure"
5460
5489
  }, client);
@@ -5466,8 +5495,8 @@ const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, reques
5466
5495
  //#region src/modules/auth/passkeys/getPasskeyAuthenticationOptions/getPasskeyAuthenticationOptions.ts
5467
5496
  /** @notInstrumented */
5468
5497
  const getPasskeyAuthenticationOptions = async ({ relatedOriginRpId } = {}, client) => {
5469
- const core = require_updateAuthFromVerifyResponse.getCore(client);
5470
- return await require_updateAuthFromVerifyResponse.createApiClient({}, client).getPasskeyAuthenticationOptions({
5498
+ const core = require_logoutWithReason.getCore(client);
5499
+ return await require_logoutWithReason.createApiClient({}, client).getPasskeyAuthenticationOptions({
5471
5500
  environmentId: core.environmentId,
5472
5501
  relatedOriginRpId
5473
5502
  });
@@ -5477,8 +5506,8 @@ const getPasskeyAuthenticationOptions = async ({ relatedOriginRpId } = {}, clien
5477
5506
  //#region src/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.ts
5478
5507
  /** @notInstrumented */
5479
5508
  const serverAuthenticatePasskey = async ({ authentication, createMfaToken, requestedScopes }, client) => {
5480
- const core = require_updateAuthFromVerifyResponse.getCore(client);
5481
- return await require_updateAuthFromVerifyResponse.createApiClient({}, client).authenticateMfaPasskeyDevice({
5509
+ const core = require_logoutWithReason.getCore(client);
5510
+ return await require_logoutWithReason.createApiClient({}, client).authenticateMfaPasskeyDevice({
5482
5511
  environmentId: core.environmentId,
5483
5512
  passkeyAuthRequest: {
5484
5513
  ...authentication,
@@ -5508,8 +5537,8 @@ const serverAuthenticatePasskey = async ({ authentication, createMfaToken, reque
5508
5537
  * @throws NoPasskeyCredentialsFoundError If no passkey credentials are found.
5509
5538
  * @notInstrumented
5510
5539
  */
5511
- const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, requestedScopes } = {}, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
5512
- const core = require_updateAuthFromVerifyResponse.getCore(client);
5540
+ const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, requestedScopes } = {}, client = require_logoutWithReason.getDefaultClient()) => {
5541
+ const core = require_logoutWithReason.getCore(client);
5513
5542
  try {
5514
5543
  if (!core.passkey.isSupported()) throw new NoWebAuthNSupportError();
5515
5544
  const options = await getPasskeyAuthenticationOptions({ relatedOriginRpId }, client);
@@ -5527,14 +5556,14 @@ const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, reque
5527
5556
  createMfaToken,
5528
5557
  requestedScopes
5529
5558
  }, client);
5530
- require_updateAuthFromVerifyResponse.updateAuthFromVerifyResponse({ response }, client);
5531
- require_updateAuthFromVerifyResponse.emitEvent({
5559
+ require_logoutWithReason.updateAuthFromVerifyResponse({ response }, client);
5560
+ require_logoutWithReason.emitEvent({
5532
5561
  args: { mfaToken: response.mfaToken },
5533
5562
  event: "mfaCompletionSuccess"
5534
5563
  }, client);
5535
5564
  return response;
5536
5565
  } catch (error) {
5537
- require_updateAuthFromVerifyResponse.emitEvent({
5566
+ require_logoutWithReason.emitEvent({
5538
5567
  args: { error },
5539
5568
  event: "mfaCompletionFailure"
5540
5569
  }, client);
@@ -5558,9 +5587,9 @@ const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, reque
5558
5587
  * @returns A promise that resolves to the MFA authentication response.
5559
5588
  * @notInstrumented
5560
5589
  */
5561
- const authenticateTotpMfaDevice = async ({ deviceId, code, createMfaTokenOptions, requestedScopes }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
5562
- const core = require_updateAuthFromVerifyResponse.getCore(client);
5563
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
5590
+ const authenticateTotpMfaDevice = async ({ deviceId, code, createMfaTokenOptions, requestedScopes }, client = require_logoutWithReason.getDefaultClient()) => {
5591
+ const core = require_logoutWithReason.getCore(client);
5592
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
5564
5593
  try {
5565
5594
  const response = await apiClient.authMfaTotpDevice({
5566
5595
  environmentId: core.environmentId,
@@ -5571,8 +5600,8 @@ const authenticateTotpMfaDevice = async ({ deviceId, code, createMfaTokenOptions
5571
5600
  requestedScopes
5572
5601
  }
5573
5602
  });
5574
- require_updateAuthFromVerifyResponse.updateAuthFromVerifyResponse({ response }, client);
5575
- require_updateAuthFromVerifyResponse.emitEvent({
5603
+ require_logoutWithReason.updateAuthFromVerifyResponse({ response }, client);
5604
+ require_logoutWithReason.emitEvent({
5576
5605
  args: {
5577
5606
  deviceId,
5578
5607
  mfaToken: response.mfaToken
@@ -5581,7 +5610,7 @@ const authenticateTotpMfaDevice = async ({ deviceId, code, createMfaTokenOptions
5581
5610
  }, client);
5582
5611
  return response;
5583
5612
  } catch (error) {
5584
- require_updateAuthFromVerifyResponse.emitEvent({
5613
+ require_logoutWithReason.emitEvent({
5585
5614
  args: {
5586
5615
  deviceId,
5587
5616
  error
@@ -5604,17 +5633,17 @@ const authenticateTotpMfaDevice = async ({ deviceId, code, createMfaTokenOptions
5604
5633
  * @returns A promise that resolves to the newly generated recovery codes.
5605
5634
  * @instrumented
5606
5635
  */
5607
- const createNewMfaRecoveryCodes = async (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
5608
- const core = require_updateAuthFromVerifyResponse.getCore(client);
5609
- return require_updateAuthFromVerifyResponse.createApiClient({}, client).createNewRecoveryCodes({ environmentId: core.environmentId });
5636
+ const createNewMfaRecoveryCodes = async (client = require_logoutWithReason.getDefaultClient()) => {
5637
+ const core = require_logoutWithReason.getCore(client);
5638
+ return require_logoutWithReason.createApiClient({}, client).createNewRecoveryCodes({ environmentId: core.environmentId });
5610
5639
  };
5611
5640
  const __createNewMfaRecoveryCodes_impl = createNewMfaRecoveryCodes;
5612
- const __createNewMfaRecoveryCodes_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
5641
+ const __createNewMfaRecoveryCodes_wrapped = require_logoutWithReason.instrumentFunction({
5613
5642
  fn: __createNewMfaRecoveryCodes_impl,
5614
5643
  functionName: "createNewMfaRecoveryCodes",
5615
5644
  getCore: () => {
5616
5645
  try {
5617
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
5646
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
5618
5647
  } catch {
5619
5648
  return;
5620
5649
  }
@@ -5637,26 +5666,26 @@ const __createNewMfaRecoveryCodes_wrapped = require_updateAuthFromVerifyResponse
5637
5666
  * @returns A promise that resolves when the MFA device is successfully deleted.
5638
5667
  * @instrumented
5639
5668
  */
5640
- const deleteMfaDevice = async ({ deviceId, mfaAuthToken }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
5641
- const core = require_updateAuthFromVerifyResponse.getCore(client);
5642
- require_updateAuthFromVerifyResponse.assertDefined(deviceId, "deviceId is required");
5643
- if (!require_updateAuthFromVerifyResponse.getElevatedAccessToken({
5669
+ const deleteMfaDevice = async ({ deviceId, mfaAuthToken }, client = require_logoutWithReason.getDefaultClient()) => {
5670
+ const core = require_logoutWithReason.getCore(client);
5671
+ require_logoutWithReason.assertDefined(deviceId, "deviceId is required");
5672
+ if (!require_logoutWithReason.getElevatedAccessToken({
5644
5673
  consume: false,
5645
5674
  scope: _dynamic_labs_sdk_api_core.TokenScope.Credentialunlink
5646
- }, client)) require_updateAuthFromVerifyResponse.assertDefined(mfaAuthToken, "mfaAuthToken is required");
5647
- return require_updateAuthFromVerifyResponse.createApiClient({ elevatedAccessTokenScope: _dynamic_labs_sdk_api_core.TokenScope.Credentialunlink }, client).deleteMfaDevice({
5675
+ }, client)) require_logoutWithReason.assertDefined(mfaAuthToken, "mfaAuthToken is required");
5676
+ return require_logoutWithReason.createApiClient({ elevatedAccessTokenScope: _dynamic_labs_sdk_api_core.TokenScope.Credentialunlink }, client).deleteMfaDevice({
5648
5677
  environmentId: core.environmentId,
5649
5678
  mfaDeviceId: deviceId,
5650
5679
  xMfaAuthToken: mfaAuthToken ?? ""
5651
5680
  });
5652
5681
  };
5653
5682
  const __deleteMfaDevice_impl = deleteMfaDevice;
5654
- const __deleteMfaDevice_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
5683
+ const __deleteMfaDevice_wrapped = require_logoutWithReason.instrumentFunction({
5655
5684
  fn: __deleteMfaDevice_impl,
5656
5685
  functionName: "deleteMfaDevice",
5657
5686
  getCore: () => {
5658
5687
  try {
5659
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
5688
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
5660
5689
  } catch {
5661
5690
  return;
5662
5691
  }
@@ -5675,9 +5704,9 @@ const __deleteMfaDevice_wrapped = require_updateAuthFromVerifyResponse.instrumen
5675
5704
  * @returns A promise that resolves to an array of the user's registered MFA devices.
5676
5705
  * @notInstrumented
5677
5706
  */
5678
- const getMfaDevices = async (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
5679
- const core = require_updateAuthFromVerifyResponse.getCore(client);
5680
- const { devices } = await require_updateAuthFromVerifyResponse.createApiClient({}, client).getUserMfaDevices({ environmentId: core.environmentId });
5707
+ const getMfaDevices = async (client = require_logoutWithReason.getDefaultClient()) => {
5708
+ const core = require_logoutWithReason.getCore(client);
5709
+ const { devices } = await require_logoutWithReason.createApiClient({}, client).getUserMfaDevices({ environmentId: core.environmentId });
5681
5710
  return devices;
5682
5711
  };
5683
5712
 
@@ -5695,9 +5724,9 @@ const getMfaDevices = async (client = require_updateAuthFromVerifyResponse.getDe
5695
5724
  * @returns A promise that resolves to the user's MFA recovery codes.
5696
5725
  * @notInstrumented
5697
5726
  */
5698
- const getMfaRecoveryCodes = async (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
5699
- const core = require_updateAuthFromVerifyResponse.getCore(client);
5700
- return require_updateAuthFromVerifyResponse.createApiClient({}, client).getRecoveryCodes({ environmentId: core.environmentId });
5727
+ const getMfaRecoveryCodes = async (client = require_logoutWithReason.getDefaultClient()) => {
5728
+ const core = require_logoutWithReason.getCore(client);
5729
+ return require_logoutWithReason.createApiClient({}, client).getRecoveryCodes({ environmentId: core.environmentId });
5701
5730
  };
5702
5731
 
5703
5732
  //#endregion
@@ -5713,17 +5742,17 @@ const getMfaRecoveryCodes = async (client = require_updateAuthFromVerifyResponse
5713
5742
  * like the secret key and the OTP Auth URI.
5714
5743
  * @instrumented
5715
5744
  */
5716
- const registerTotpMfaDevice = async (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
5717
- const core = require_updateAuthFromVerifyResponse.getCore(client);
5718
- return require_updateAuthFromVerifyResponse.createApiClient({ elevatedAccessTokenScope: _dynamic_labs_sdk_api_core.TokenScope.Credentiallink }, client).registerTotpMfaDevice({ environmentId: core.environmentId });
5745
+ const registerTotpMfaDevice = async (client = require_logoutWithReason.getDefaultClient()) => {
5746
+ const core = require_logoutWithReason.getCore(client);
5747
+ return require_logoutWithReason.createApiClient({ elevatedAccessTokenScope: _dynamic_labs_sdk_api_core.TokenScope.Credentiallink }, client).registerTotpMfaDevice({ environmentId: core.environmentId });
5719
5748
  };
5720
5749
  const __registerTotpMfaDevice_impl = registerTotpMfaDevice;
5721
- const __registerTotpMfaDevice_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
5750
+ const __registerTotpMfaDevice_wrapped = require_logoutWithReason.instrumentFunction({
5722
5751
  fn: __registerTotpMfaDevice_impl,
5723
5752
  functionName: "registerTotpMfaDevice",
5724
5753
  getCore: () => {
5725
5754
  try {
5726
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
5755
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
5727
5756
  } catch {
5728
5757
  return;
5729
5758
  }
@@ -5743,22 +5772,22 @@ const __registerTotpMfaDevice_wrapped = require_updateAuthFromVerifyResponse.ins
5743
5772
  * @returns A promise that resolves when the default MFA device is successfully set.
5744
5773
  * @instrumented
5745
5774
  */
5746
- const setDefaultMfaDevice = async ({ deviceId }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
5747
- const core = require_updateAuthFromVerifyResponse.getCore(client);
5748
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
5749
- require_updateAuthFromVerifyResponse.assertDefined(deviceId, "deviceId is required");
5775
+ const setDefaultMfaDevice = async ({ deviceId }, client = require_logoutWithReason.getDefaultClient()) => {
5776
+ const core = require_logoutWithReason.getCore(client);
5777
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
5778
+ require_logoutWithReason.assertDefined(deviceId, "deviceId is required");
5750
5779
  return apiClient.updateUserMfaDevice({
5751
5780
  environmentId: core.environmentId,
5752
5781
  mfaDeviceId: deviceId
5753
5782
  });
5754
5783
  };
5755
5784
  const __setDefaultMfaDevice_impl = setDefaultMfaDevice;
5756
- const __setDefaultMfaDevice_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
5785
+ const __setDefaultMfaDevice_wrapped = require_logoutWithReason.instrumentFunction({
5757
5786
  fn: __setDefaultMfaDevice_impl,
5758
5787
  functionName: "setDefaultMfaDevice",
5759
5788
  getCore: () => {
5760
5789
  try {
5761
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
5790
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
5762
5791
  } catch {
5763
5792
  return;
5764
5793
  }
@@ -5791,9 +5820,9 @@ const __setDefaultMfaDevice_wrapped = require_updateAuthFromVerifyResponse.instr
5791
5820
  * @see sendSmsOTP
5792
5821
  * @instrumented
5793
5822
  */
5794
- const sendEmailOTP = async ({ email }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
5795
- const core = require_updateAuthFromVerifyResponse.getCore(client);
5796
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
5823
+ const sendEmailOTP = async ({ email }, client = require_logoutWithReason.getDefaultClient()) => {
5824
+ const core = require_logoutWithReason.getCore(client);
5825
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
5797
5826
  require_isUserOnboardingComplete.preconnectWaasIframe(client);
5798
5827
  const { verificationUUID } = await apiClient.createEmailVerification({
5799
5828
  emailVerificationCreateRequest: {
@@ -5808,12 +5837,12 @@ const sendEmailOTP = async ({ email }, client = require_updateAuthFromVerifyResp
5808
5837
  };
5809
5838
  };
5810
5839
  const __sendEmailOTP_impl = sendEmailOTP;
5811
- const __sendEmailOTP_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
5840
+ const __sendEmailOTP_wrapped = require_logoutWithReason.instrumentFunction({
5812
5841
  fn: __sendEmailOTP_impl,
5813
5842
  functionName: "sendEmailOTP",
5814
5843
  getCore: () => {
5815
5844
  try {
5816
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
5845
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
5817
5846
  } catch {
5818
5847
  return;
5819
5848
  }
@@ -6764,9 +6793,9 @@ const supportedCountries = {
6764
6793
  * @see sendEmailOTP
6765
6794
  * @instrumented
6766
6795
  */
6767
- const sendSmsOTP = async ({ isoCountryCode, phoneNumber }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
6768
- const core = require_updateAuthFromVerifyResponse.getCore(client);
6769
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
6796
+ const sendSmsOTP = async ({ isoCountryCode, phoneNumber }, client = require_logoutWithReason.getDefaultClient()) => {
6797
+ const core = require_logoutWithReason.getCore(client);
6798
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
6770
6799
  const phoneCountryCode = supportedCountries[isoCountryCode].code;
6771
6800
  require_isUserOnboardingComplete.preconnectWaasIframe(client);
6772
6801
  const { verificationUUID } = await apiClient.createSmsVerification({
@@ -6786,12 +6815,12 @@ const sendSmsOTP = async ({ isoCountryCode, phoneNumber }, client = require_upda
6786
6815
  };
6787
6816
  };
6788
6817
  const __sendSmsOTP_impl = sendSmsOTP;
6789
- const __sendSmsOTP_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
6818
+ const __sendSmsOTP_wrapped = require_logoutWithReason.instrumentFunction({
6790
6819
  fn: __sendSmsOTP_impl,
6791
6820
  functionName: "sendSmsOTP",
6792
6821
  getCore: () => {
6793
6822
  try {
6794
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
6823
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
6795
6824
  } catch {
6796
6825
  return;
6797
6826
  }
@@ -6802,8 +6831,8 @@ const __sendSmsOTP_wrapped = require_updateAuthFromVerifyResponse.instrumentFunc
6802
6831
  //#region src/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.ts
6803
6832
  /** @notInstrumented */
6804
6833
  const verifyOTPForUserSignIn = async ({ allowNewMFALinking, otpVerification, verificationToken }, client) => {
6805
- const core = require_updateAuthFromVerifyResponse.getCore(client);
6806
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
6834
+ const core = require_logoutWithReason.getCore(client);
6835
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
6807
6836
  const verifyRequest = {
6808
6837
  ...allowNewMFALinking !== void 0 && { allowNewMFALinking },
6809
6838
  verificationToken,
@@ -6823,8 +6852,8 @@ const verifyOTPForUserSignIn = async ({ allowNewMFALinking, otpVerification, ver
6823
6852
  //#region src/modules/otp/verifyOTP/verifyOTPForUserUpdate/verifyOTPForUserUpdate.ts
6824
6853
  /** @notInstrumented */
6825
6854
  const verifyOTPForUserUpdate = async ({ otpVerification, verificationToken, requestedScopes }, client) => {
6826
- const core = require_updateAuthFromVerifyResponse.getCore(client);
6827
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
6855
+ const core = require_logoutWithReason.getCore(client);
6856
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
6828
6857
  const verifyRequest = {
6829
6858
  verificationToken,
6830
6859
  verificationUUID: otpVerification.verificationUUID
@@ -6867,7 +6896,7 @@ const verifyOTPForUserUpdate = async ({ otpVerification, verificationToken, requ
6867
6896
  * @see sendSmsOTP
6868
6897
  * @instrumented
6869
6898
  */
6870
- const verifyOTP = async ({ allowNewMFALinking, otpVerification, requestedScopes, verificationToken }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
6899
+ const verifyOTP = async ({ allowNewMFALinking, otpVerification, requestedScopes, verificationToken }, client = require_logoutWithReason.getDefaultClient()) => {
6871
6900
  require_isUserOnboardingComplete.preconnectWaasIframe(client);
6872
6901
  let response;
6873
6902
  if (client.user) response = await verifyOTPForUserUpdate({
@@ -6880,16 +6909,16 @@ const verifyOTP = async ({ allowNewMFALinking, otpVerification, requestedScopes,
6880
6909
  otpVerification,
6881
6910
  verificationToken
6882
6911
  }, client);
6883
- require_updateAuthFromVerifyResponse.updateAuthFromVerifyResponse({ response }, client);
6912
+ require_logoutWithReason.updateAuthFromVerifyResponse({ response }, client);
6884
6913
  return response;
6885
6914
  };
6886
6915
  const __verifyOTP_impl = verifyOTP;
6887
- const __verifyOTP_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
6916
+ const __verifyOTP_wrapped = require_logoutWithReason.instrumentFunction({
6888
6917
  fn: __verifyOTP_impl,
6889
6918
  functionName: "verifyOTP",
6890
6919
  getCore: () => {
6891
6920
  try {
6892
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
6921
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
6893
6922
  } catch {
6894
6923
  return;
6895
6924
  }
@@ -6906,11 +6935,11 @@ const __verifyOTP_wrapped = require_updateAuthFromVerifyResponse.instrumentFunct
6906
6935
  * @returns The swap quote details. Use the `signingPayload` field to get the transaction data for the wallet to sign.
6907
6936
  * @notInstrumented
6908
6937
  */
6909
- const getSwapQuote = async (params, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
6910
- const core = require_updateAuthFromVerifyResponse.getCore(client);
6911
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
6912
- if (!params.from.amount && !params.to.amount) throw new require_updateAuthFromVerifyResponse.InvalidParamError("Either from.amount or to.amount is required");
6913
- if (params.from.amount && params.to.amount) throw new require_updateAuthFromVerifyResponse.InvalidParamError("Only one of from.amount or to.amount is allowed");
6938
+ const getSwapQuote = async (params, client = require_logoutWithReason.getDefaultClient()) => {
6939
+ const core = require_logoutWithReason.getCore(client);
6940
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
6941
+ if (!params.from.amount && !params.to.amount) throw new require_logoutWithReason.InvalidParamError("Either from.amount or to.amount is required");
6942
+ if (params.from.amount && params.to.amount) throw new require_logoutWithReason.InvalidParamError("Only one of from.amount or to.amount is allowed");
6914
6943
  return await apiClient.swapQuote({
6915
6944
  environmentId: core.environmentId,
6916
6945
  swapQuoteRequest: {
@@ -6941,9 +6970,9 @@ const getSwapQuote = async (params, client = require_updateAuthFromVerifyRespons
6941
6970
  * @returns The swap status.
6942
6971
  * @notInstrumented
6943
6972
  */
6944
- const getSwapStatus = async (params, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
6945
- const core = require_updateAuthFromVerifyResponse.getCore(client);
6946
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
6973
+ const getSwapStatus = async (params, client = require_logoutWithReason.getDefaultClient()) => {
6974
+ const core = require_logoutWithReason.getCore(client);
6975
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
6947
6976
  let from;
6948
6977
  if (params.from) from = {
6949
6978
  chainId: params.from.networkId,
@@ -7022,18 +7051,18 @@ const checkUserScopes = ({ scopes, user }) => {
7022
7051
  * @see refreshUser
7023
7052
  * @instrumented
7024
7053
  */
7025
- const deleteUser = async (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
7026
- const core = require_updateAuthFromVerifyResponse.getCore(client);
7027
- await require_updateAuthFromVerifyResponse.createApiClient({ includeMfaToken: true }, client).hardDeleteUser({ environmentId: core.environmentId });
7028
- await require_updateAuthFromVerifyResponse.__logoutWithReason_wrapped({ reason: "user-deleted" }, client);
7054
+ const deleteUser = async (client = require_logoutWithReason.getDefaultClient()) => {
7055
+ const core = require_logoutWithReason.getCore(client);
7056
+ await require_logoutWithReason.createApiClient({ includeMfaToken: true }, client).hardDeleteUser({ environmentId: core.environmentId });
7057
+ await require_logoutWithReason.__logoutWithReason_wrapped({ reason: "user-deleted" }, client);
7029
7058
  };
7030
7059
  const __deleteUser_impl = deleteUser;
7031
- const __deleteUser_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
7060
+ const __deleteUser_wrapped = require_logoutWithReason.instrumentFunction({
7032
7061
  fn: __deleteUser_impl,
7033
7062
  functionName: "deleteUser",
7034
7063
  getCore: () => {
7035
7064
  try {
7036
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
7065
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
7037
7066
  } catch {
7038
7067
  return;
7039
7068
  }
@@ -7091,8 +7120,8 @@ const findMissingGoogleDriveBackupScopes = (grantedScopes) => GOOGLE_DRIVE_BACKU
7091
7120
  * @notInstrumented
7092
7121
  */
7093
7122
  const fetchGoogleDriveOauthAccess = async ({ oauthAccountId }, client) => {
7094
- const core = require_updateAuthFromVerifyResponse.getCore(client);
7095
- return require_updateAuthFromVerifyResponse.createApiClient({}, client).getEndUserOauthAccessToken({
7123
+ const core = require_logoutWithReason.getCore(client);
7124
+ return require_logoutWithReason.createApiClient({}, client).getEndUserOauthAccessToken({
7096
7125
  environmentId: core.environmentId,
7097
7126
  oauthAccountId
7098
7127
  });
@@ -7151,7 +7180,7 @@ const findGoogleOauthAccountId = (credentials) => credentials?.find((cred) => cr
7151
7180
  * @returns The readiness result.
7152
7181
  * @instrumented
7153
7182
  */
7154
- const getGoogleDriveBackupReadiness = async (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
7183
+ const getGoogleDriveBackupReadiness = async (client = require_logoutWithReason.getDefaultClient()) => {
7155
7184
  const { user } = client;
7156
7185
  const oauthAccountId = findGoogleOauthAccountId(user?.verifiedCredentials);
7157
7186
  if (!oauthAccountId) return {
@@ -7177,12 +7206,12 @@ const getGoogleDriveBackupReadiness = async (client = require_updateAuthFromVeri
7177
7206
  };
7178
7207
  };
7179
7208
  const __getGoogleDriveBackupReadiness_impl = getGoogleDriveBackupReadiness;
7180
- const __getGoogleDriveBackupReadiness_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
7209
+ const __getGoogleDriveBackupReadiness_wrapped = require_logoutWithReason.instrumentFunction({
7181
7210
  fn: __getGoogleDriveBackupReadiness_impl,
7182
7211
  functionName: "getGoogleDriveBackupReadiness",
7183
7212
  getCore: () => {
7184
7213
  try {
7185
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
7214
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
7186
7215
  } catch {
7187
7216
  return;
7188
7217
  }
@@ -7585,7 +7614,7 @@ const getChainsFromWalletSchema = ({ wallet, walletKey }) => {
7585
7614
  for (const identifier of wallet.chains ?? []) {
7586
7615
  const prefix = extractChainPrefix({ chainIdentifier: identifier });
7587
7616
  try {
7588
- const chain = require_updateAuthFromVerifyResponse.getChainFromVerifiedCredentialChain(prefix);
7617
+ const chain = require_logoutWithReason.getChainFromVerifiedCredentialChain(prefix);
7589
7618
  chains.add(chain);
7590
7619
  } catch {}
7591
7620
  }
@@ -7760,9 +7789,9 @@ const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletPro
7760
7789
  */
7761
7790
  const classifyWithWalletProviderSource = ({ entry }) => {
7762
7791
  const { priority } = entry;
7763
- if (priority === require_updateAuthFromVerifyResponse.WalletProviderPriority.WALLET_SDK) return "sdk";
7764
- if (priority === require_updateAuthFromVerifyResponse.WalletProviderPriority.WALLET_SELF_ANNOUNCEMENT_STANDARD) return "selfAnnounced";
7765
- if (priority === require_updateAuthFromVerifyResponse.WalletProviderPriority.WINDOW_INJECT) return "windowInjected";
7792
+ if (priority === require_logoutWithReason.WalletProviderPriority.WALLET_SDK) return "sdk";
7793
+ if (priority === require_logoutWithReason.WalletProviderPriority.WALLET_SELF_ANNOUNCEMENT_STANDARD) return "selfAnnounced";
7794
+ if (priority === require_logoutWithReason.WalletProviderPriority.WINDOW_INJECT) return "windowInjected";
7766
7795
  };
7767
7796
 
7768
7797
  //#endregion
@@ -7882,7 +7911,7 @@ const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.
7882
7911
  * @notInstrumented
7883
7912
  */
7884
7913
  const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }) => {
7885
- const { normalizedWalletNameWithChain } = require_updateAuthFromVerifyResponse.splitWalletProviderKey(walletProvider.key);
7914
+ const { normalizedWalletNameWithChain } = require_logoutWithReason.splitWalletProviderKey(walletProvider.key);
7886
7915
  const candidates = [normalizedWalletNameWithChain, stripChainSuffix({
7887
7916
  chain,
7888
7917
  normalizedName: normalizedWalletNameWithChain
@@ -7935,7 +7964,7 @@ const buildWithWalletProviderOptions = ({ entries, walletBook }, client) => {
7935
7964
  if (!hasWalletProviderConnectMethod({ walletProvider: entry.walletProvider })) continue;
7936
7965
  const source = classifyWithWalletProviderSource({ entry });
7937
7966
  if (!source) {
7938
- require_updateAuthFromVerifyResponse.getCore(client).logger.error("buildWithWalletProviderOptions: registered wallet provider has an unrecognised priority — unable to identify how this wallet was registered", {
7967
+ require_logoutWithReason.getCore(client).logger.error("buildWithWalletProviderOptions: registered wallet provider has an unrecognised priority — unable to identify how this wallet was registered", {
7939
7968
  chain: entry.walletProvider.chain,
7940
7969
  displayName: entry.walletProvider.metadata.displayName,
7941
7970
  priority: entry.priority,
@@ -8237,14 +8266,14 @@ const EMPTY_WALLET_BOOK = {
8237
8266
  * @returns A promise that resolves to the wallet options catalogue.
8238
8267
  * @notInstrumented
8239
8268
  */
8240
- const getWalletOptionsCatalogue = async (params = {}, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
8269
+ const getWalletOptionsCatalogue = async (params = {}, client = require_logoutWithReason.getDefaultClient()) => {
8241
8270
  const includeMobileOptions = params.includeMobileOptions ?? false;
8242
8271
  const walletOptionOrdering = params.walletOptionOrdering ?? "relevance";
8243
8272
  const excludedConnectionOptionTypes = new Set(params.excludedConnectionOptionTypes ?? []);
8244
8273
  const walletBook = includeMobileOptions ? await fetchLegacyWalletBook(client) : EMPTY_WALLET_BOOK;
8245
8274
  const allConnectionOptions = [];
8246
8275
  if (!excludedConnectionOptionTypes.has("withWalletProvider")) {
8247
- const entries = require_updateAuthFromVerifyResponse.getWalletProviderRegistry(client).listProviderEntries();
8276
+ const entries = require_logoutWithReason.getWalletProviderRegistry(client).listProviderEntries();
8248
8277
  allConnectionOptions.push(...buildWithWalletProviderOptions({
8249
8278
  entries,
8250
8279
  walletBook
@@ -8294,8 +8323,8 @@ const getWalletOptionsCatalogue = async (params = {}, client = require_updateAut
8294
8323
  * @throws WalletAccountNotSelectedError If the wallet account is not currently selected.
8295
8324
  * @notInstrumented
8296
8325
  */
8297
- const assertWalletAccountSigningAvailability = async ({ walletAccount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
8298
- const { addresses } = await require_updateAuthFromVerifyResponse.getWalletProviderFromWalletAccount({ walletAccount }, client).getConnectedAddresses();
8326
+ const assertWalletAccountSigningAvailability = async ({ walletAccount }, client = require_logoutWithReason.getDefaultClient()) => {
8327
+ const { addresses } = await require_logoutWithReason.getWalletProviderFromWalletAccount({ walletAccount }, client).getConnectedAddresses();
8299
8328
  if (addresses.length > 0 && !addresses.includes(walletAccount.address)) throw new WalletAccountNotSelectedError({
8300
8329
  expectedAddress: walletAccount.address,
8301
8330
  selectedAddress: addresses[0]
@@ -8318,8 +8347,8 @@ const assertWalletAccountSigningAvailability = async ({ walletAccount }, client
8318
8347
  * @throws If the wallet provider does not support the confirmTransaction method.
8319
8348
  * @instrumented
8320
8349
  */
8321
- const confirmTransaction = async ({ walletAccount, transactionHash }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
8322
- const walletProvider = require_updateAuthFromVerifyResponse.getWalletProviderFromWalletAccount({ walletAccount }, client);
8350
+ const confirmTransaction = async ({ walletAccount, transactionHash }, client = require_logoutWithReason.getDefaultClient()) => {
8351
+ const walletProvider = require_logoutWithReason.getWalletProviderFromWalletAccount({ walletAccount }, client);
8323
8352
  assertWalletProviderMethodDefined(walletProvider, "confirmTransaction");
8324
8353
  await walletProvider.confirmTransaction({
8325
8354
  transactionHash,
@@ -8327,12 +8356,12 @@ const confirmTransaction = async ({ walletAccount, transactionHash }, client = r
8327
8356
  });
8328
8357
  };
8329
8358
  const __confirmTransaction_impl = confirmTransaction;
8330
- const __confirmTransaction_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
8359
+ const __confirmTransaction_wrapped = require_logoutWithReason.instrumentFunction({
8331
8360
  fn: __confirmTransaction_impl,
8332
8361
  functionName: "confirmTransaction",
8333
8362
  getCore: () => {
8334
8363
  try {
8335
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
8364
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
8336
8365
  } catch {
8337
8366
  return;
8338
8367
  }
@@ -8372,8 +8401,8 @@ const getAddressesWithTypesFromConnectionResult = (connectionResult) => {
8372
8401
  * @see connectAndVerifyWithWalletProvider
8373
8402
  * @instrumented
8374
8403
  */
8375
- const connectWithWalletProvider = async ({ walletProviderKey, addToDynamicWalletAccounts = true, hardwareWalletVendor }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
8376
- const walletProvider = require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client);
8404
+ const connectWithWalletProvider = async ({ walletProviderKey, addToDynamicWalletAccounts = true, hardwareWalletVendor }, client = require_logoutWithReason.getDefaultClient()) => {
8405
+ const walletProvider = require_getVerifiedCredentialForWalletAccount.getWalletProviderByKey({ walletProviderKey }, client);
8377
8406
  assertWalletProviderMethodDefined(walletProvider, "connect");
8378
8407
  const { addresses } = await walletProvider.connect();
8379
8408
  const mainAddress = addresses?.length ? addresses[0].address : null;
@@ -8390,7 +8419,7 @@ const connectWithWalletProvider = async ({ walletProviderKey, addToDynamicWallet
8390
8419
  addressesWithTypes: getAddressesWithTypesFromConnectionResult({ addresses }),
8391
8420
  chain: walletProvider.chain,
8392
8421
  hardwareWalletVendor,
8393
- id: require_updateAuthFromVerifyResponse.formatWalletAccountId({
8422
+ id: require_logoutWithReason.formatWalletAccountId({
8394
8423
  address: mainAddress,
8395
8424
  chain: walletProvider.chain,
8396
8425
  walletProviderKey
@@ -8404,12 +8433,12 @@ const connectWithWalletProvider = async ({ walletProviderKey, addToDynamicWallet
8404
8433
  return reconciledWalletAccount;
8405
8434
  };
8406
8435
  const __connectWithWalletProvider_impl = connectWithWalletProvider;
8407
- const __connectWithWalletProvider_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
8436
+ const __connectWithWalletProvider_wrapped = require_logoutWithReason.instrumentFunction({
8408
8437
  fn: __connectWithWalletProvider_impl,
8409
8438
  functionName: "connectWithWalletProvider",
8410
8439
  getCore: () => {
8411
8440
  try {
8412
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
8441
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
8413
8442
  } catch {
8414
8443
  return;
8415
8444
  }
@@ -8468,13 +8497,13 @@ const getChainIdForAccountVerification = async ({ walletProvider }) => {
8468
8497
  //#region src/modules/wallets/utils/getSignInMessage/getSignInMessage.ts
8469
8498
  /** @notInstrumented */
8470
8499
  const getSignInMessage = async ({ nonce: nonceOverride, walletAccount }, client) => {
8471
- const core = require_updateAuthFromVerifyResponse.getCore(client);
8500
+ const core = require_logoutWithReason.getCore(client);
8472
8501
  const { appUniversalLink } = require_getNetworkProviderFromNetworkId.getAppMetadata(client);
8473
- require_updateAuthFromVerifyResponse.assertDefined(appUniversalLink, "Universal link is not set");
8502
+ require_logoutWithReason.assertDefined(appUniversalLink, "Universal link is not set");
8474
8503
  const url = new URL(appUniversalLink);
8475
8504
  const domain = url.host;
8476
- const nonce = nonceOverride ?? await require_updateAuthFromVerifyResponse.getNonce(client);
8477
- const walletProvider = require_updateAuthFromVerifyResponse.getWalletProviderFromWalletAccount({ walletAccount }, client);
8505
+ const nonce = nonceOverride ?? await require_logoutWithReason.getNonce(client);
8506
+ const walletProvider = require_logoutWithReason.getWalletProviderFromWalletAccount({ walletAccount }, client);
8478
8507
  if (walletProvider.chain === "STARK")
8479
8508
  /**
8480
8509
  * Starknet requires the strings to be 31 chars long
@@ -8488,7 +8517,7 @@ const getSignInMessage = async ({ nonce: nonceOverride, walletAccount }, client)
8488
8517
  const statement = require_getNetworkProviderFromNetworkId.createSignInMessageStatement(client);
8489
8518
  return await require_getNetworkProviderFromNetworkId.formatSignInMessage({
8490
8519
  address: walletAccount.address,
8491
- blockchainName: require_updateAuthFromVerifyResponse.CHAINS_INFO_MAP[walletProvider.chain].blockchainName,
8520
+ blockchainName: require_logoutWithReason.CHAINS_INFO_MAP[walletProvider.chain].blockchainName,
8492
8521
  chainId: await getChainIdForAccountVerification({ walletProvider }),
8493
8522
  domain,
8494
8523
  issuedAt: (/* @__PURE__ */ new Date()).toISOString(),
@@ -8522,8 +8551,8 @@ const getSignInMessage = async ({ nonce: nonceOverride, walletAccount }, client)
8522
8551
  * @see verifyWalletAccount
8523
8552
  * @instrumented
8524
8553
  */
8525
- const proveWalletAccountOwnership = async ({ walletAccount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
8526
- const walletProvider = require_updateAuthFromVerifyResponse.getWalletProviderFromWalletAccount({ walletAccount }, client);
8554
+ const proveWalletAccountOwnership = async ({ walletAccount }, client = require_logoutWithReason.getDefaultClient()) => {
8555
+ const walletProvider = require_logoutWithReason.getWalletProviderFromWalletAccount({ walletAccount }, client);
8527
8556
  assertWalletProviderMethodDefined(walletProvider, "signMessage");
8528
8557
  const messageToSign = await getSignInMessage({
8529
8558
  nonce: walletProvider.getConnectProofNonce?.(),
@@ -8539,12 +8568,12 @@ const proveWalletAccountOwnership = async ({ walletAccount }, client = require_u
8539
8568
  };
8540
8569
  };
8541
8570
  const __proveWalletAccountOwnership_impl = proveWalletAccountOwnership;
8542
- const __proveWalletAccountOwnership_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
8571
+ const __proveWalletAccountOwnership_wrapped = require_logoutWithReason.instrumentFunction({
8543
8572
  fn: __proveWalletAccountOwnership_impl,
8544
8573
  functionName: "proveWalletAccountOwnership",
8545
8574
  getCore: () => {
8546
8575
  try {
8547
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
8576
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
8548
8577
  } catch {
8549
8578
  return;
8550
8579
  }
@@ -8554,10 +8583,10 @@ const __proveWalletAccountOwnership_wrapped = require_updateAuthFromVerifyRespon
8554
8583
  //#endregion
8555
8584
  //#region src/modules/wallets/utils/isSameAddress/isSameAddress.ts
8556
8585
  /** @notInstrumented */
8557
- const isSameAddress = ({ chain, left, right }) => require_updateAuthFromVerifyResponse.normalizeAddress({
8586
+ const isSameAddress = ({ chain, left, right }) => require_logoutWithReason.normalizeAddress({
8558
8587
  address: left,
8559
8588
  chain
8560
- }) === require_updateAuthFromVerifyResponse.normalizeAddress({
8589
+ }) === require_logoutWithReason.normalizeAddress({
8561
8590
  address: right,
8562
8591
  chain
8563
8592
  });
@@ -8573,7 +8602,7 @@ const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfe
8573
8602
  * when scopes are provided so the call reaches walletsVerify.
8574
8603
  */
8575
8604
  if (walletAccount.verifiedCredentialId && !requestedScopes) throw new WalletAccountAlreadyVerifiedError(walletAccount.address);
8576
- const walletProvider = require_updateAuthFromVerifyResponse.getWalletProviderFromWalletAccount({ walletAccount }, client);
8605
+ const walletProvider = require_logoutWithReason.getWalletProviderFromWalletAccount({ walletAccount }, client);
8577
8606
  const { messageToSign, signature } = await __proveWalletAccountOwnership_wrapped({ walletAccount }, client);
8578
8607
  const formattedSignature = walletAccount.hardwareWalletVendor ? formatSignatureForHardwareWallet({
8579
8608
  hardwareWalletVendor: walletAccount.hardwareWalletVendor,
@@ -8594,30 +8623,30 @@ const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfe
8594
8623
  }, client);
8595
8624
  const response = walletProvider.shouldRetryVerificationOnNetworkError ? await retryOnFetchError({
8596
8625
  fn: verify,
8597
- onRetry: ({ error }) => require_updateAuthFromVerifyResponse.getCore(client).logger.warn("Retrying wallet verification after network error", error)
8626
+ onRetry: ({ error }) => require_logoutWithReason.getCore(client).logger.warn("Retrying wallet verification after network error", error)
8598
8627
  }) : await verify();
8599
8628
  const walletVerifiedCredential = response.user?.verifiedCredentials.find((verifiedCredential) => isSameAddress({
8600
8629
  chain: walletAccount.chain,
8601
8630
  left: verifiedCredential.address ?? "",
8602
8631
  right: walletAccount.address
8603
8632
  }));
8604
- require_updateAuthFromVerifyResponse.assertDefined(walletVerifiedCredential, `After verifying, still unable to find verified wallet credential for wallet account ${walletAccount.address} on chain ${walletAccount.chain}`);
8633
+ require_logoutWithReason.assertDefined(walletVerifiedCredential, `After verifying, still unable to find verified wallet credential for wallet account ${walletAccount.address} on chain ${walletAccount.chain}`);
8605
8634
  require_getNetworkProviderFromNetworkId.updateWalletProviderKeysForVerifiedCredentials({ keysToUpdate: { [walletVerifiedCredential.id]: walletProvider.key } }, client);
8606
8635
  /**
8607
8636
  * Adds the user with the new wallet verified credential
8608
8637
  * This will add the new verified wallet account to the client`s state
8609
8638
  */
8610
- require_updateAuthFromVerifyResponse.updateAuthFromVerifyResponse({ response }, client);
8639
+ require_logoutWithReason.updateAuthFromVerifyResponse({ response }, client);
8611
8640
  /**
8612
8641
  * Remove the now verified wallet account from the unverified wallet accounts
8613
8642
  */
8614
8643
  require_getNetworkProviderFromNetworkId.removeUnverifiedWalletAccount({ unverifiedWalletAccount: walletAccount }, client);
8615
- const verifiedWalletAccount = require_updateAuthFromVerifyResponse.getWalletAccounts(client).find(({ address }) => isSameAddress({
8644
+ const verifiedWalletAccount = require_logoutWithReason.getWalletAccounts(client).find(({ address }) => isSameAddress({
8616
8645
  chain: walletAccount.chain,
8617
8646
  left: address,
8618
8647
  right: walletAccount.address
8619
8648
  }));
8620
- require_updateAuthFromVerifyResponse.assertDefined(verifiedWalletAccount, `Unable to find wallet account ${walletAccount.address} on chain ${walletAccount.chain} for verified credential ${walletVerifiedCredential.id}`);
8649
+ require_logoutWithReason.assertDefined(verifiedWalletAccount, `Unable to find wallet account ${walletAccount.address} on chain ${walletAccount.chain} for verified credential ${walletVerifiedCredential.id}`);
8621
8650
  return verifiedWalletAccount;
8622
8651
  };
8623
8652
 
@@ -8647,7 +8676,7 @@ const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfe
8647
8676
  * @see connectAndVerifyWithWalletProvider
8648
8677
  * @instrumented
8649
8678
  */
8650
- const verifyWalletAccount = async ({ walletAccount, requestedScopes }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
8679
+ const verifyWalletAccount = async ({ walletAccount, requestedScopes }, client = require_logoutWithReason.getDefaultClient()) => {
8651
8680
  return verifyWalletAccountForSignInOrTransfer({
8652
8681
  isTransfer: false,
8653
8682
  requestedScopes,
@@ -8655,12 +8684,12 @@ const verifyWalletAccount = async ({ walletAccount, requestedScopes }, client =
8655
8684
  }, client);
8656
8685
  };
8657
8686
  const __verifyWalletAccount_impl = verifyWalletAccount;
8658
- const __verifyWalletAccount_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
8687
+ const __verifyWalletAccount_wrapped = require_logoutWithReason.instrumentFunction({
8659
8688
  fn: __verifyWalletAccount_impl,
8660
8689
  functionName: "verifyWalletAccount",
8661
8690
  getCore: () => {
8662
8691
  try {
8663
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
8692
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
8664
8693
  } catch {
8665
8694
  return;
8666
8695
  }
@@ -8710,8 +8739,8 @@ const isDeeplinkWalletProvider = ({ walletProvider }) => walletProvider.walletPr
8710
8739
  * @see verifyWalletAccount
8711
8740
  * @instrumented
8712
8741
  */
8713
- const connectAndVerifyWithWalletProvider = async ({ walletProviderKey, hardwareWalletVendor }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
8714
- const walletProvider = require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client);
8742
+ const connectAndVerifyWithWalletProvider = async ({ walletProviderKey, hardwareWalletVendor }, client = require_logoutWithReason.getDefaultClient()) => {
8743
+ const walletProvider = require_getVerifiedCredentialForWalletAccount.getWalletProviderByKey({ walletProviderKey }, client);
8715
8744
  if (isMobile() && isDeeplinkWalletProvider({ walletProvider })) throw new DeeplinkConnectAndVerifyUnsupportedError({ walletProviderKey });
8716
8745
  const walletAccount = await __connectWithWalletProvider_wrapped({
8717
8746
  addToDynamicWalletAccounts: false,
@@ -8726,12 +8755,12 @@ const connectAndVerifyWithWalletProvider = async ({ walletProviderKey, hardwareW
8726
8755
  return walletAccount;
8727
8756
  };
8728
8757
  const __connectAndVerifyWithWalletProvider_impl = connectAndVerifyWithWalletProvider;
8729
- const __connectAndVerifyWithWalletProvider_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
8758
+ const __connectAndVerifyWithWalletProvider_wrapped = require_logoutWithReason.instrumentFunction({
8730
8759
  fn: __connectAndVerifyWithWalletProvider_impl,
8731
8760
  functionName: "connectAndVerifyWithWalletProvider",
8732
8761
  getCore: () => {
8733
8762
  try {
8734
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
8763
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
8735
8764
  } catch {
8736
8765
  return;
8737
8766
  }
@@ -8751,8 +8780,8 @@ const __connectAndVerifyWithWalletProvider_wrapped = require_updateAuthFromVerif
8751
8780
  * @notInstrumented
8752
8781
  * @hook Exposed as a hook so consumers get the reactive list of available wallet providers, updated when wallet providers change.
8753
8782
  */
8754
- const getAvailableWalletProvidersData = (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
8755
- return require_updateAuthFromVerifyResponse.getWalletProviders(client).filter((walletProvider) => hasWalletProviderConnectMethod({ walletProvider })).map((walletProvider) => ({
8783
+ const getAvailableWalletProvidersData = (client = require_logoutWithReason.getDefaultClient()) => {
8784
+ return require_logoutWithReason.getWalletProviders(client).filter((walletProvider) => hasWalletProviderConnectMethod({ walletProvider })).map((walletProvider) => ({
8756
8785
  chain: walletProvider.chain,
8757
8786
  groupKey: walletProvider.groupKey,
8758
8787
  key: walletProvider.key,
@@ -8782,17 +8811,17 @@ const getAvailableWalletProvidersData = (client = require_updateAuthFromVerifyRe
8782
8811
  * @see getWalletAccounts
8783
8812
  * @notInstrumented
8784
8813
  */
8785
- const getConnectedAddresses = ({ walletProviderKey }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
8786
- return require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client).getConnectedAddresses();
8814
+ const getConnectedAddresses = ({ walletProviderKey }, client = require_logoutWithReason.getDefaultClient()) => {
8815
+ return require_getVerifiedCredentialForWalletAccount.getWalletProviderByKey({ walletProviderKey }, client).getConnectedAddresses();
8787
8816
  };
8788
8817
 
8789
8818
  //#endregion
8790
8819
  //#region src/modules/wallets/getOwnerWalletAccountForSmartWalletAccount/getOwnerWalletAccountForSmartWalletAccount.ts
8791
8820
  /** @notInstrumented */
8792
- const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
8793
- const smartWalletVerifiedCredential = require_getWalletProviderByKey.getVerifiedCredentialForWalletAccount({ walletAccount: smartWalletAccount }, client);
8794
- require_updateAuthFromVerifyResponse.assertDefined(smartWalletVerifiedCredential?.signerRefId, "Invalid smart wallet account");
8795
- return require_updateAuthFromVerifyResponse.getWalletAccounts(client).find((walletAccount) => walletAccount.verifiedCredentialId === smartWalletVerifiedCredential.signerRefId);
8821
+ const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, client = require_logoutWithReason.getDefaultClient()) => {
8822
+ const smartWalletVerifiedCredential = require_getVerifiedCredentialForWalletAccount.getVerifiedCredentialForWalletAccount({ walletAccount: smartWalletAccount }, client);
8823
+ require_logoutWithReason.assertDefined(smartWalletVerifiedCredential?.signerRefId, "Invalid smart wallet account");
8824
+ return require_logoutWithReason.getWalletAccounts(client).find((walletAccount) => walletAccount.verifiedCredentialId === smartWalletVerifiedCredential.signerRefId);
8796
8825
  };
8797
8826
 
8798
8827
  //#endregion
@@ -8813,8 +8842,8 @@ const getWalletAccountAddressByType = ({ type, walletAccount }) => {
8813
8842
  * @notInstrumented
8814
8843
  * @hook Exposed as a hook so consumers get reactive wallet provider data, updated when the wallet provider registry changes.
8815
8844
  */
8816
- const getWalletProviderDataByKey = ({ walletProviderKey }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
8817
- const { chain, groupKey, key, metadata, walletProviderType } = require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client);
8845
+ const getWalletProviderDataByKey = ({ walletProviderKey }, client = require_logoutWithReason.getDefaultClient()) => {
8846
+ const { chain, groupKey, key, metadata, walletProviderType } = require_getVerifiedCredentialForWalletAccount.getWalletProviderByKey({ walletProviderKey }, client);
8818
8847
  return {
8819
8848
  chain,
8820
8849
  groupKey,
@@ -8835,8 +8864,8 @@ const getWalletProviderDataByKey = ({ walletProviderKey }, client = require_upda
8835
8864
  * @returns Whether the wallet provider supports the specified hardware wallet vendor.
8836
8865
  * @notInstrumented
8837
8866
  */
8838
- const canConnectWithHardwareWallet = ({ walletProviderKey, hardwareWalletVendor }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
8839
- return require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client).metadata.supportedHardwareWalletVendors?.includes(hardwareWalletVendor) ?? false;
8867
+ const canConnectWithHardwareWallet = ({ walletProviderKey, hardwareWalletVendor }, client = require_logoutWithReason.getDefaultClient()) => {
8868
+ return require_getVerifiedCredentialForWalletAccount.getWalletProviderByKey({ walletProviderKey }, client).metadata.supportedHardwareWalletVendors?.includes(hardwareWalletVendor) ?? false;
8840
8869
  };
8841
8870
 
8842
8871
  //#endregion
@@ -8873,7 +8902,7 @@ const isHardwareWalletAccount = ({ walletAccount }) => walletAccount.hardwareWal
8873
8902
  * @see isWalletAccountVerified
8874
8903
  * @notInstrumented
8875
8904
  */
8876
- const isAnyWalletAccountConnected = (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => require_updateAuthFromVerifyResponse.getWalletAccounts(client).length > 0;
8905
+ const isAnyWalletAccountConnected = (client = require_logoutWithReason.getDefaultClient()) => require_logoutWithReason.getWalletAccounts(client).length > 0;
8877
8906
 
8878
8907
  //#endregion
8879
8908
  //#region src/modules/wallets/isExternalWalletScreeningEnabled/isExternalWalletScreeningEnabled.ts
@@ -8903,8 +8932,8 @@ const isAnyWalletAccountConnected = (client = require_updateAuthFromVerifyRespon
8903
8932
  * @see isSolanaGasSponsorshipEnabled
8904
8933
  * @notInstrumented
8905
8934
  */
8906
- const isExternalWalletScreeningEnabled = (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
8907
- require_updateAuthFromVerifyResponse.assertDefined(client.projectSettings, "Project settings are not defined");
8935
+ const isExternalWalletScreeningEnabled = (client = require_logoutWithReason.getDefaultClient()) => {
8936
+ require_logoutWithReason.assertDefined(client.projectSettings, "Project settings are not defined");
8908
8937
  return client.projectSettings.sdk.featureFlags?.enableExternalWalletOnTransactionSanctions ?? false;
8909
8938
  };
8910
8939
 
@@ -8944,8 +8973,8 @@ const isWalletAccountVerified = ({ walletAccount }) => {
8944
8973
  * @throws NetworkAddingUnavailableError If the wallet provider doesn't support adding networks.
8945
8974
  * @instrumented
8946
8975
  */
8947
- const addNetwork = async ({ networkData, walletAccount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
8948
- const walletProvider = require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey: walletAccount.walletProviderKey }, client);
8976
+ const addNetwork = async ({ networkData, walletAccount }, client = require_logoutWithReason.getDefaultClient()) => {
8977
+ const walletProvider = require_getVerifiedCredentialForWalletAccount.getWalletProviderByKey({ walletProviderKey: walletAccount.walletProviderKey }, client);
8949
8978
  if (walletProvider.addNetwork === void 0) throw new NetworkAddingUnavailableError({
8950
8979
  extraMessages: [`Wallet provider ${walletAccount.walletProviderKey} does not have addNetwork method`],
8951
8980
  originalError: null,
@@ -8954,12 +8983,12 @@ const addNetwork = async ({ networkData, walletAccount }, client = require_updat
8954
8983
  return walletProvider.addNetwork({ networkData });
8955
8984
  };
8956
8985
  const __addNetwork_impl = addNetwork;
8957
- const __addNetwork_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
8986
+ const __addNetwork_wrapped = require_logoutWithReason.instrumentFunction({
8958
8987
  fn: __addNetwork_impl,
8959
8988
  functionName: "addNetwork",
8960
8989
  getCore: () => {
8961
8990
  try {
8962
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
8991
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
8963
8992
  } catch {
8964
8993
  return;
8965
8994
  }
@@ -8980,8 +9009,8 @@ const __addNetwork_wrapped = require_updateAuthFromVerifyResponse.instrumentFunc
8980
9009
  * @returns A promise that resolves to the network data, or undefined if not found.
8981
9010
  * @notInstrumented
8982
9011
  */
8983
- const getActiveNetworkData = async ({ walletAccount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
8984
- const walletProvider = require_updateAuthFromVerifyResponse.getWalletProviderFromWalletAccount({ walletAccount }, client);
9012
+ const getActiveNetworkData = async ({ walletAccount }, client = require_logoutWithReason.getDefaultClient()) => {
9013
+ const walletProvider = require_logoutWithReason.getWalletProviderFromWalletAccount({ walletAccount }, client);
8985
9014
  const { networkId } = await walletProvider.getActiveNetworkId();
8986
9015
  return { networkData: require_getNetworkProviderFromNetworkId.getNetworksData(client).find((data) => data.networkId === networkId && data.chain === walletProvider.chain) };
8987
9016
  };
@@ -8996,8 +9025,8 @@ const getActiveNetworkData = async ({ walletAccount }, client = require_updateAu
8996
9025
  * @returns A promise that resolves to the active network ID for the wallet account.
8997
9026
  * @notInstrumented
8998
9027
  */
8999
- const getActiveNetworkId = ({ walletAccount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9000
- return require_updateAuthFromVerifyResponse.getWalletProviderFromWalletAccount({ walletAccount }, client).getActiveNetworkId();
9028
+ const getActiveNetworkId = ({ walletAccount }, client = require_logoutWithReason.getDefaultClient()) => {
9029
+ return require_logoutWithReason.getWalletProviderFromWalletAccount({ walletAccount }, client).getActiveNetworkId();
9001
9030
  };
9002
9031
 
9003
9032
  //#endregion
@@ -9025,8 +9054,8 @@ const getActiveNetworkId = ({ walletAccount }, client = require_updateAuthFromVe
9025
9054
  * @see switchActiveNetwork
9026
9055
  * @notInstrumented
9027
9056
  */
9028
- const getNativeBalance = async ({ walletAccount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9029
- const walletProvider = require_updateAuthFromVerifyResponse.getWalletProviderFromWalletAccount({ walletAccount }, client);
9057
+ const getNativeBalance = async ({ walletAccount }, client = require_logoutWithReason.getDefaultClient()) => {
9058
+ const walletProvider = require_logoutWithReason.getWalletProviderFromWalletAccount({ walletAccount }, client);
9030
9059
  const { networkId } = await walletProvider.getActiveNetworkId();
9031
9060
  return require_getNetworkProviderFromNetworkId.getNetworkProviderFromNetworkId({
9032
9061
  chain: walletProvider.chain,
@@ -9053,7 +9082,7 @@ const getNativeBalance = async ({ walletAccount }, client = require_updateAuthFr
9053
9082
  * @notInstrumented
9054
9083
  * @noHook Deprecated; the replacement is exposed via its own hook.
9055
9084
  */
9056
- const getBalance = (params, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => getNativeBalance(params, client);
9085
+ const getBalance = (params, client = require_logoutWithReason.getDefaultClient()) => getNativeBalance(params, client);
9057
9086
 
9058
9087
  //#endregion
9059
9088
  //#region src/modules/wallets/networks/getBalanceForAddress/getBalanceForAddress.ts
@@ -9070,12 +9099,12 @@ const getBalance = (params, client = require_updateAuthFromVerifyResponse.getDef
9070
9099
  * @returns A promise that resolves to an object containing the balance as a string or null.
9071
9100
  * @notInstrumented
9072
9101
  */
9073
- const getBalanceForAddress = async ({ address, chain, networkId }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9102
+ const getBalanceForAddress = async ({ address, chain, networkId }, client = require_logoutWithReason.getDefaultClient()) => {
9074
9103
  const networkProvider = require_getNetworkProviderFromNetworkId.getNetworkProviderFromNetworkId({
9075
9104
  chain,
9076
9105
  networkId
9077
9106
  }, client);
9078
- require_updateAuthFromVerifyResponse.assertDefined(networkProvider, `No network found for chain ${chain} and network id ${networkId}. Please ensure you've enabled this network in the Dashboard.`);
9107
+ require_logoutWithReason.assertDefined(networkProvider, `No network found for chain ${chain} and network id ${networkId}. Please ensure you've enabled this network in the Dashboard.`);
9079
9108
  return networkProvider.getBalance({ address });
9080
9109
  };
9081
9110
 
@@ -9097,9 +9126,9 @@ const getBalanceForAddress = async ({ address, chain, networkId }, client = requ
9097
9126
  * @returns A promise that resolves to the transaction history along with nextOffset for the given wallet address and chain.
9098
9127
  * @notInstrumented
9099
9128
  */
9100
- const getTransactionHistory = async (params, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9101
- const core = require_updateAuthFromVerifyResponse.getCore(client);
9102
- return await require_updateAuthFromVerifyResponse.createApiClient({}, client).getWalletTransactions({
9129
+ const getTransactionHistory = async (params, client = require_logoutWithReason.getDefaultClient()) => {
9130
+ const core = require_logoutWithReason.getCore(client);
9131
+ return await require_logoutWithReason.createApiClient({}, client).getWalletTransactions({
9103
9132
  address: params.address,
9104
9133
  chainName: params.chain,
9105
9134
  environmentId: core.environmentId,
@@ -9123,8 +9152,8 @@ const getTransactionHistory = async (params, client = require_updateAuthFromVeri
9123
9152
  * @returns True if programmatic network switching is available, false otherwise.
9124
9153
  * @notInstrumented
9125
9154
  */
9126
- const isProgrammaticNetworkSwitchAvailable = ({ walletAccount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9127
- return require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey: walletAccount.walletProviderKey }, client).switchActiveNetwork !== void 0;
9155
+ const isProgrammaticNetworkSwitchAvailable = ({ walletAccount }, client = require_logoutWithReason.getDefaultClient()) => {
9156
+ return require_getVerifiedCredentialForWalletAccount.getWalletProviderByKey({ walletProviderKey: walletAccount.walletProviderKey }, client).switchActiveNetwork !== void 0;
9128
9157
  };
9129
9158
 
9130
9159
  //#endregion
@@ -9152,8 +9181,8 @@ const isProgrammaticNetworkSwitchAvailable = ({ walletAccount }, client = requir
9152
9181
  * @see isProgrammaticNetworkSwitchAvailable
9153
9182
  * @instrumented
9154
9183
  */
9155
- const switchActiveNetwork = async ({ networkId, walletAccount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9156
- const walletProvider = require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey: walletAccount.walletProviderKey }, client);
9184
+ const switchActiveNetwork = async ({ networkId, walletAccount }, client = require_logoutWithReason.getDefaultClient()) => {
9185
+ const walletProvider = require_getVerifiedCredentialForWalletAccount.getWalletProviderByKey({ walletProviderKey: walletAccount.walletProviderKey }, client);
9157
9186
  if (walletProvider.switchActiveNetwork === void 0) throw new NetworkSwitchingUnavailableError({
9158
9187
  extraMessages: [`Wallet provider ${walletAccount.walletProviderKey} does not have switchActiveNetwork method`],
9159
9188
  originalError: null,
@@ -9162,12 +9191,12 @@ const switchActiveNetwork = async ({ networkId, walletAccount }, client = requir
9162
9191
  return walletProvider.switchActiveNetwork({ networkId });
9163
9192
  };
9164
9193
  const __switchActiveNetwork_impl = switchActiveNetwork;
9165
- const __switchActiveNetwork_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
9194
+ const __switchActiveNetwork_wrapped = require_logoutWithReason.instrumentFunction({
9166
9195
  fn: __switchActiveNetwork_impl,
9167
9196
  functionName: "switchActiveNetwork",
9168
9197
  getCore: () => {
9169
9198
  try {
9170
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
9199
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
9171
9200
  } catch {
9172
9201
  return;
9173
9202
  }
@@ -9209,8 +9238,8 @@ const __switchActiveNetwork_wrapped = require_updateAuthFromVerifyResponse.instr
9209
9238
  * @see screenSolanaTransactions
9210
9239
  * @notInstrumented
9211
9240
  */
9212
- const screenTransaction = async ({ chain, context, networkId, senderAddress, signal }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => require_updateAuthFromVerifyResponse.createApiClient({}, client).screenTransaction({
9213
- environmentId: require_updateAuthFromVerifyResponse.getCore(client).environmentId,
9241
+ const screenTransaction = async ({ chain, context, networkId, senderAddress, signal }, client = require_logoutWithReason.getDefaultClient()) => require_logoutWithReason.createApiClient({}, client).screenTransaction({
9242
+ environmentId: require_logoutWithReason.getCore(client).environmentId,
9214
9243
  screenTransactionRequest: {
9215
9244
  chain,
9216
9245
  chainId: networkId,
@@ -9248,10 +9277,10 @@ const screenTransaction = async ({ chain, context, networkId, senderAddress, sig
9248
9277
  * @instrumented
9249
9278
  * @noHook The selected-wallet concept is not exposed as a hook.
9250
9279
  */
9251
- const setSelectedWalletAccount = async ({ walletAccount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9252
- const core = require_updateAuthFromVerifyResponse.getCore(client);
9280
+ const setSelectedWalletAccount = async ({ walletAccount }, client = require_logoutWithReason.getDefaultClient()) => {
9281
+ const core = require_logoutWithReason.getCore(client);
9253
9282
  if (getSelectedWalletAccount(client)?.id === walletAccount.id) return;
9254
- if (walletAccount.verifiedCredentialId) require_updateAuthFromVerifyResponse.updateAuthFromVerifyResponse({ response: await require_updateAuthFromVerifyResponse.createApiClient({}, client).selectUserWallet({
9283
+ if (walletAccount.verifiedCredentialId) require_logoutWithReason.updateAuthFromVerifyResponse({ response: await require_logoutWithReason.createApiClient({}, client).selectUserWallet({
9255
9284
  environmentId: core.environmentId,
9256
9285
  userWalletSelectionRequest: { walletId: walletAccount.verifiedCredentialId }
9257
9286
  }) }, client);
@@ -9261,12 +9290,12 @@ const setSelectedWalletAccount = async ({ walletAccount }, client = require_upda
9261
9290
  }] }, client);
9262
9291
  };
9263
9292
  const __setSelectedWalletAccount_impl = setSelectedWalletAccount;
9264
- const __setSelectedWalletAccount_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
9293
+ const __setSelectedWalletAccount_wrapped = require_logoutWithReason.instrumentFunction({
9265
9294
  fn: __setSelectedWalletAccount_impl,
9266
9295
  functionName: "setSelectedWalletAccount",
9267
9296
  getCore: () => {
9268
9297
  try {
9269
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
9298
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
9270
9299
  } catch {
9271
9300
  return;
9272
9301
  }
@@ -9296,7 +9325,7 @@ const __setSelectedWalletAccount_wrapped = require_updateAuthFromVerifyResponse.
9296
9325
  * @returns The primary wallet account, or null if no wallet has been selected.
9297
9326
  * @notInstrumented
9298
9327
  */
9299
- const getPrimaryWalletAccount = (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => getSelectedWalletAccount(client);
9328
+ const getPrimaryWalletAccount = (client = require_logoutWithReason.getDefaultClient()) => getSelectedWalletAccount(client);
9300
9329
 
9301
9330
  //#endregion
9302
9331
  //#region src/modules/wallets/selectedWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.ts
@@ -9321,14 +9350,14 @@ const getPrimaryWalletAccount = (client = require_updateAuthFromVerifyResponse.g
9321
9350
  * @instrumented
9322
9351
  * @noHook The selected-wallet concept is not exposed as a hook.
9323
9352
  */
9324
- const selectPrimaryWalletAccount = async ({ walletAccount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => __setSelectedWalletAccount_wrapped({ walletAccount }, client);
9353
+ const selectPrimaryWalletAccount = async ({ walletAccount }, client = require_logoutWithReason.getDefaultClient()) => __setSelectedWalletAccount_wrapped({ walletAccount }, client);
9325
9354
  const __selectPrimaryWalletAccount_impl = selectPrimaryWalletAccount;
9326
- const __selectPrimaryWalletAccount_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
9355
+ const __selectPrimaryWalletAccount_wrapped = require_logoutWithReason.instrumentFunction({
9327
9356
  fn: __selectPrimaryWalletAccount_impl,
9328
9357
  functionName: "selectPrimaryWalletAccount",
9329
9358
  getCore: () => {
9330
9359
  try {
9331
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
9360
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
9332
9361
  } catch {
9333
9362
  return;
9334
9363
  }
@@ -9359,9 +9388,9 @@ const __selectPrimaryWalletAccount_wrapped = require_updateAuthFromVerifyRespons
9359
9388
  */
9360
9389
  const disconnectWalletAccount = async ({ walletAccount }, client) => {
9361
9390
  try {
9362
- await require_updateAuthFromVerifyResponse.getWalletProviderFromWalletAccount({ walletAccount }, client).disconnectWalletAccount?.({ walletAccount });
9391
+ await require_logoutWithReason.getWalletProviderFromWalletAccount({ walletAccount }, client).disconnectWalletAccount?.({ walletAccount });
9363
9392
  } catch (error) {
9364
- if (error instanceof require_updateAuthFromVerifyResponse.NoWalletProviderFoundError) return;
9393
+ if (error instanceof require_logoutWithReason.NoWalletProviderFoundError) return;
9365
9394
  throw error;
9366
9395
  }
9367
9396
  };
@@ -9388,26 +9417,26 @@ const disconnectWalletAccount = async ({ walletAccount }, client) => {
9388
9417
  * @see disconnectWalletAccount
9389
9418
  * @instrumented
9390
9419
  */
9391
- const removeWalletAccount = async ({ walletAccount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9392
- const core = require_updateAuthFromVerifyResponse.getCore(client);
9393
- const apiClient = require_updateAuthFromVerifyResponse.createApiClient({}, client);
9420
+ const removeWalletAccount = async ({ walletAccount }, client = require_logoutWithReason.getDefaultClient()) => {
9421
+ const core = require_logoutWithReason.getCore(client);
9422
+ const apiClient = require_logoutWithReason.createApiClient({}, client);
9394
9423
  await disconnectWalletAccount({ walletAccount }, client);
9395
9424
  if (!walletAccount.verifiedCredentialId) {
9396
9425
  require_getNetworkProviderFromNetworkId.removeUnverifiedWalletAccount({ unverifiedWalletAccount: walletAccount }, client);
9397
9426
  return;
9398
9427
  }
9399
- require_updateAuthFromVerifyResponse.updateAuthFromVerifyResponse({ response: await apiClient.verifyUnlink({
9428
+ require_logoutWithReason.updateAuthFromVerifyResponse({ response: await apiClient.verifyUnlink({
9400
9429
  environmentId: core.environmentId,
9401
9430
  verifyUnlinkRequest: { walletId: walletAccount.verifiedCredentialId }
9402
9431
  }) }, client);
9403
9432
  };
9404
9433
  const __removeWalletAccount_impl = removeWalletAccount;
9405
- const __removeWalletAccount_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
9434
+ const __removeWalletAccount_wrapped = require_logoutWithReason.instrumentFunction({
9406
9435
  fn: __removeWalletAccount_impl,
9407
9436
  functionName: "removeWalletAccount",
9408
9437
  getCore: () => {
9409
9438
  try {
9410
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
9439
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
9411
9440
  } catch {
9412
9441
  return;
9413
9442
  }
@@ -9439,8 +9468,8 @@ const __removeWalletAccount_wrapped = require_updateAuthFromVerifyResponse.instr
9439
9468
  * @see connectWithWalletProvider
9440
9469
  * @instrumented
9441
9470
  */
9442
- const signMessage = async ({ walletAccount, message }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9443
- const walletProvider = require_updateAuthFromVerifyResponse.getWalletProviderFromWalletAccount({ walletAccount }, client);
9471
+ const signMessage = async ({ walletAccount, message }, client = require_logoutWithReason.getDefaultClient()) => {
9472
+ const walletProvider = require_logoutWithReason.getWalletProviderFromWalletAccount({ walletAccount }, client);
9444
9473
  assertWalletProviderMethodDefined(walletProvider, "signMessage");
9445
9474
  const { signature } = await walletProvider.signMessage({
9446
9475
  message,
@@ -9449,12 +9478,12 @@ const signMessage = async ({ walletAccount, message }, client = require_updateAu
9449
9478
  return { signature };
9450
9479
  };
9451
9480
  const __signMessage_impl = signMessage;
9452
- const __signMessage_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
9481
+ const __signMessage_wrapped = require_logoutWithReason.instrumentFunction({
9453
9482
  fn: __signMessage_impl,
9454
9483
  functionName: "signMessage",
9455
9484
  getCore: () => {
9456
9485
  try {
9457
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
9486
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
9458
9487
  } catch {
9459
9488
  return;
9460
9489
  }
@@ -9489,8 +9518,8 @@ const __signMessage_wrapped = require_updateAuthFromVerifyResponse.instrumentFun
9489
9518
  * @see signMessage
9490
9519
  * @instrumented
9491
9520
  */
9492
- const transferAmount = async ({ walletAccount, amount, recipient, token }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9493
- const walletProvider = require_updateAuthFromVerifyResponse.getWalletProviderFromWalletAccount({ walletAccount }, client);
9521
+ const transferAmount = async ({ walletAccount, amount, recipient, token }, client = require_logoutWithReason.getDefaultClient()) => {
9522
+ const walletProvider = require_logoutWithReason.getWalletProviderFromWalletAccount({ walletAccount }, client);
9494
9523
  assertWalletProviderMethodDefined(walletProvider, "transferAmount");
9495
9524
  const { transactionHash } = await walletProvider.transferAmount({
9496
9525
  amount,
@@ -9501,12 +9530,12 @@ const transferAmount = async ({ walletAccount, amount, recipient, token }, clien
9501
9530
  return { transactionHash };
9502
9531
  };
9503
9532
  const __transferAmount_impl = transferAmount;
9504
- const __transferAmount_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
9533
+ const __transferAmount_wrapped = require_logoutWithReason.instrumentFunction({
9505
9534
  fn: __transferAmount_impl,
9506
9535
  functionName: "transferAmount",
9507
9536
  getCore: () => {
9508
9537
  try {
9509
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
9538
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
9510
9539
  } catch {
9511
9540
  return;
9512
9541
  }
@@ -9535,7 +9564,7 @@ const __transferAmount_wrapped = require_updateAuthFromVerifyResponse.instrument
9535
9564
  * @see verifyWalletAccount
9536
9565
  * @instrumented
9537
9566
  */
9538
- const transferWalletAccount = async ({ walletProviderKey }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9567
+ const transferWalletAccount = async ({ walletProviderKey }, client = require_logoutWithReason.getDefaultClient()) => {
9539
9568
  return verifyWalletAccountForSignInOrTransfer({
9540
9569
  isTransfer: true,
9541
9570
  walletAccount: await __connectWithWalletProvider_wrapped({
@@ -9545,12 +9574,12 @@ const transferWalletAccount = async ({ walletProviderKey }, client = require_upd
9545
9574
  }, client);
9546
9575
  };
9547
9576
  const __transferWalletAccount_impl = transferWalletAccount;
9548
- const __transferWalletAccount_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
9577
+ const __transferWalletAccount_wrapped = require_logoutWithReason.instrumentFunction({
9549
9578
  fn: __transferWalletAccount_impl,
9550
9579
  functionName: "transferWalletAccount",
9551
9580
  getCore: () => {
9552
9581
  try {
9553
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
9582
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
9554
9583
  } catch {
9555
9584
  return;
9556
9585
  }
@@ -9581,8 +9610,8 @@ const __transferWalletAccount_wrapped = require_updateAuthFromVerifyResponse.ins
9581
9610
  * @see isWalletAccountVerified
9582
9611
  * @notInstrumented
9583
9612
  */
9584
- const getWalletAccountFromAddress = ({ address, chain }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9585
- return require_updateAuthFromVerifyResponse.getWalletAccounts(client).find((walletAccount) => walletAccount.address === address && walletAccount.chain === chain);
9613
+ const getWalletAccountFromAddress = ({ address, chain }, client = require_logoutWithReason.getDefaultClient()) => {
9614
+ return require_logoutWithReason.getWalletAccounts(client).find((walletAccount) => walletAccount.address === address && walletAccount.chain === chain);
9586
9615
  };
9587
9616
 
9588
9617
  //#endregion
@@ -9598,8 +9627,8 @@ const getWalletAccountFromAddress = ({ address, chain }, client = require_update
9598
9627
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
9599
9628
  * @notInstrumented
9600
9629
  */
9601
- const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9602
- const walletProvider = require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client);
9630
+ const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client = require_logoutWithReason.getDefaultClient()) => {
9631
+ const walletProvider = require_getVerifiedCredentialForWalletAccount.getWalletProviderByKey({ walletProviderKey }, client);
9603
9632
  assertWalletProviderMethodDefined(walletProvider, "events");
9604
9633
  walletProvider.events.off(event, callback);
9605
9634
  };
@@ -9617,8 +9646,8 @@ const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client =
9617
9646
  * @notInstrumented
9618
9647
  * @hook Event listeners are error-prone to wire up by hand with useEffect.
9619
9648
  */
9620
- const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9621
- const walletProvider = require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client);
9649
+ const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client = require_logoutWithReason.getDefaultClient()) => {
9650
+ const walletProvider = require_getVerifiedCredentialForWalletAccount.getWalletProviderByKey({ walletProviderKey }, client);
9622
9651
  assertWalletProviderMethodDefined(walletProvider, "events");
9623
9652
  walletProvider.events.on(event, callback);
9624
9653
  return () => {
@@ -9643,7 +9672,7 @@ const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client =
9643
9672
  * @notInstrumented
9644
9673
  */
9645
9674
  const executeYieldTransaction = async ({ onStepChange, signingPayload, walletAccount }, client) => {
9646
- const walletProvider = require_updateAuthFromVerifyResponse.getWalletProviderFromWalletAccount({ walletAccount }, client);
9675
+ const walletProvider = require_logoutWithReason.getWalletProviderFromWalletAccount({ walletAccount }, client);
9647
9676
  assertWalletProviderMethodDefined(walletProvider, "executeYieldTransaction");
9648
9677
  await ensureCorrectActiveNetwork({
9649
9678
  requiredNetworkId: signingPayload.chainId,
@@ -9681,9 +9710,9 @@ const executeYieldTransaction = async ({ onStepChange, signingPayload, walletAcc
9681
9710
  * @see depositToYieldVault
9682
9711
  * @instrumented
9683
9712
  */
9684
- const claimYieldRewards = async ({ vaultId, walletAccount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9685
- const core = require_updateAuthFromVerifyResponse.getCore(client);
9686
- const { signingPayload } = await require_updateAuthFromVerifyResponse.createApiClient({}, client).yieldVaultClaim({
9713
+ const claimYieldRewards = async ({ vaultId, walletAccount }, client = require_logoutWithReason.getDefaultClient()) => {
9714
+ const core = require_logoutWithReason.getCore(client);
9715
+ const { signingPayload } = await require_logoutWithReason.createApiClient({}, client).yieldVaultClaim({
9687
9716
  environmentId: core.environmentId,
9688
9717
  vaultId,
9689
9718
  yieldVaultClaimRequest: { ownerAddress: walletAccount.address }
@@ -9694,12 +9723,12 @@ const claimYieldRewards = async ({ vaultId, walletAccount }, client = require_up
9694
9723
  }, client);
9695
9724
  };
9696
9725
  const __claimYieldRewards_impl = claimYieldRewards;
9697
- const __claimYieldRewards_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
9726
+ const __claimYieldRewards_wrapped = require_logoutWithReason.instrumentFunction({
9698
9727
  fn: __claimYieldRewards_impl,
9699
9728
  functionName: "claimYieldRewards",
9700
9729
  getCore: () => {
9701
9730
  try {
9702
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
9731
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
9703
9732
  } catch {
9704
9733
  return;
9705
9734
  }
@@ -9734,9 +9763,9 @@ const __claimYieldRewards_wrapped = require_updateAuthFromVerifyResponse.instrum
9734
9763
  * @see getYieldPosition
9735
9764
  * @instrumented
9736
9765
  */
9737
- const depositToYieldVault = async ({ amount, onStepChange, receiverAddress, vaultId, walletAccount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9738
- const core = require_updateAuthFromVerifyResponse.getCore(client);
9739
- const { signingPayload } = await require_updateAuthFromVerifyResponse.createApiClient({}, client).yieldVaultDeposit({
9766
+ const depositToYieldVault = async ({ amount, onStepChange, receiverAddress, vaultId, walletAccount }, client = require_logoutWithReason.getDefaultClient()) => {
9767
+ const core = require_logoutWithReason.getCore(client);
9768
+ const { signingPayload } = await require_logoutWithReason.createApiClient({}, client).yieldVaultDeposit({
9740
9769
  environmentId: core.environmentId,
9741
9770
  vaultId,
9742
9771
  yieldVaultActionRequest: {
@@ -9752,12 +9781,12 @@ const depositToYieldVault = async ({ amount, onStepChange, receiverAddress, vaul
9752
9781
  }, client);
9753
9782
  };
9754
9783
  const __depositToYieldVault_impl = depositToYieldVault;
9755
- const __depositToYieldVault_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
9784
+ const __depositToYieldVault_wrapped = require_logoutWithReason.instrumentFunction({
9756
9785
  fn: __depositToYieldVault_impl,
9757
9786
  functionName: "depositToYieldVault",
9758
9787
  getCore: () => {
9759
9788
  try {
9760
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
9789
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
9761
9790
  } catch {
9762
9791
  return;
9763
9792
  }
@@ -9785,9 +9814,9 @@ const __depositToYieldVault_wrapped = require_updateAuthFromVerifyResponse.instr
9785
9814
  * @see getYieldPosition
9786
9815
  * @notInstrumented
9787
9816
  */
9788
- const getYieldDetails = async ({ vaultId }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9789
- const core = require_updateAuthFromVerifyResponse.getCore(client);
9790
- return require_updateAuthFromVerifyResponse.createApiClient({}, client).getYieldVaultDetails({
9817
+ const getYieldDetails = async ({ vaultId }, client = require_logoutWithReason.getDefaultClient()) => {
9818
+ const core = require_logoutWithReason.getCore(client);
9819
+ return require_logoutWithReason.createApiClient({}, client).getYieldVaultDetails({
9791
9820
  environmentId: core.environmentId,
9792
9821
  vaultId
9793
9822
  });
@@ -9812,9 +9841,9 @@ const getYieldDetails = async ({ vaultId }, client = require_updateAuthFromVerif
9812
9841
  * @see getYieldDetails
9813
9842
  * @notInstrumented
9814
9843
  */
9815
- const getYieldPosition = async ({ vaultId, walletAccount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9816
- const core = require_updateAuthFromVerifyResponse.getCore(client);
9817
- return require_updateAuthFromVerifyResponse.createApiClient({}, client).getYieldVaultPosition({
9844
+ const getYieldPosition = async ({ vaultId, walletAccount }, client = require_logoutWithReason.getDefaultClient()) => {
9845
+ const core = require_logoutWithReason.getCore(client);
9846
+ return require_logoutWithReason.createApiClient({}, client).getYieldVaultPosition({
9818
9847
  environmentId: core.environmentId,
9819
9848
  ownerAddress: walletAccount.address,
9820
9849
  vaultId
@@ -9842,9 +9871,9 @@ const getYieldPosition = async ({ vaultId, walletAccount }, client = require_upd
9842
9871
  * @see getYieldPosition
9843
9872
  * @notInstrumented
9844
9873
  */
9845
- const getYieldRewards = async ({ vaultId, walletAccount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9846
- const core = require_updateAuthFromVerifyResponse.getCore(client);
9847
- const { rewards } = await require_updateAuthFromVerifyResponse.createApiClient({}, client).getYieldVaultRewards({
9874
+ const getYieldRewards = async ({ vaultId, walletAccount }, client = require_logoutWithReason.getDefaultClient()) => {
9875
+ const core = require_logoutWithReason.getCore(client);
9876
+ const { rewards } = await require_logoutWithReason.createApiClient({}, client).getYieldVaultRewards({
9848
9877
  environmentId: core.environmentId,
9849
9878
  ownerAddress: walletAccount.address,
9850
9879
  vaultId
@@ -9874,9 +9903,9 @@ const getYieldRewards = async ({ vaultId, walletAccount }, client = require_upda
9874
9903
  * @see getYieldPosition
9875
9904
  * @notInstrumented
9876
9905
  */
9877
- const listYieldVaults = async (client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9878
- const core = require_updateAuthFromVerifyResponse.getCore(client);
9879
- const { vaults } = await require_updateAuthFromVerifyResponse.createApiClient({}, client).listYieldVaults({ environmentId: core.environmentId });
9906
+ const listYieldVaults = async (client = require_logoutWithReason.getDefaultClient()) => {
9907
+ const core = require_logoutWithReason.getCore(client);
9908
+ const { vaults } = await require_logoutWithReason.createApiClient({}, client).listYieldVaults({ environmentId: core.environmentId });
9880
9909
  return vaults;
9881
9910
  };
9882
9911
 
@@ -9907,9 +9936,9 @@ const listYieldVaults = async (client = require_updateAuthFromVerifyResponse.get
9907
9936
  * @see getYieldPosition
9908
9937
  * @instrumented
9909
9938
  */
9910
- const withdrawFromYieldVault = async ({ amount, receiverAddress, vaultId, walletAccount }, client = require_updateAuthFromVerifyResponse.getDefaultClient()) => {
9911
- const core = require_updateAuthFromVerifyResponse.getCore(client);
9912
- const { signingPayload } = await require_updateAuthFromVerifyResponse.createApiClient({}, client).yieldVaultWithdraw({
9939
+ const withdrawFromYieldVault = async ({ amount, receiverAddress, vaultId, walletAccount }, client = require_logoutWithReason.getDefaultClient()) => {
9940
+ const core = require_logoutWithReason.getCore(client);
9941
+ const { signingPayload } = await require_logoutWithReason.createApiClient({}, client).yieldVaultWithdraw({
9913
9942
  environmentId: core.environmentId,
9914
9943
  vaultId,
9915
9944
  yieldVaultActionRequest: {
@@ -9924,12 +9953,12 @@ const withdrawFromYieldVault = async ({ amount, receiverAddress, vaultId, wallet
9924
9953
  }, client);
9925
9954
  };
9926
9955
  const __withdrawFromYieldVault_impl = withdrawFromYieldVault;
9927
- const __withdrawFromYieldVault_wrapped = require_updateAuthFromVerifyResponse.instrumentFunction({
9956
+ const __withdrawFromYieldVault_wrapped = require_logoutWithReason.instrumentFunction({
9928
9957
  fn: __withdrawFromYieldVault_impl,
9929
9958
  functionName: "withdrawFromYieldVault",
9930
9959
  getCore: () => {
9931
9960
  try {
9932
- return require_updateAuthFromVerifyResponse.getCore(require_updateAuthFromVerifyResponse.getDefaultClient());
9961
+ return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
9933
9962
  } catch {
9934
9963
  return;
9935
9964
  }
@@ -10044,10 +10073,10 @@ const parseUserAgent = ({ userAgent }) => {
10044
10073
 
10045
10074
  //#endregion
10046
10075
  //#region src/exports/index.ts
10047
- (0, _dynamic_labs_sdk_assert_package_version.assertPackageVersion)(require_updateAuthFromVerifyResponse.name, require_updateAuthFromVerifyResponse.version);
10076
+ (0, _dynamic_labs_sdk_assert_package_version.assertPackageVersion)(require_logoutWithReason.name, require_logoutWithReason.version);
10048
10077
 
10049
10078
  //#endregion
10050
- exports.BaseError = require_updateAuthFromVerifyResponse.BaseError;
10079
+ exports.BaseError = require_logoutWithReason.BaseError;
10051
10080
  exports.COINBASE_TRAVEL_RULE_FIELD_DESCRIPTIONS = COINBASE_TRAVEL_RULE_FIELD_DESCRIPTIONS;
10052
10081
  exports.CaptchaProviderEnum = CaptchaProviderEnum;
10053
10082
  exports.CheckoutSessionTokenMissingError = CheckoutSessionTokenMissingError;
@@ -10064,26 +10093,16 @@ exports.FeeEstimationFailedError = FeeEstimationFailedError;
10064
10093
  exports.FlowSessionTokenMissingError = FlowSessionTokenMissingError;
10065
10094
  exports.GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES = GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES;
10066
10095
  exports.InvalidDeviceRegistrationRedirectError = InvalidDeviceRegistrationRedirectError;
10067
- exports.InvalidExternalAuthError = require_updateAuthFromVerifyResponse.InvalidExternalAuthError;
10068
- exports.InvalidParamError = require_updateAuthFromVerifyResponse.InvalidParamError;
10096
+ exports.InvalidExternalAuthError = require_logoutWithReason.InvalidExternalAuthError;
10097
+ exports.InvalidParamError = require_logoutWithReason.InvalidParamError;
10069
10098
  exports.InvalidRedirectStorageStateError = InvalidRedirectStorageStateError;
10070
10099
  exports.InvalidSocialCallbackOriginError = InvalidSocialCallbackOriginError;
10071
- Object.defineProperty(exports, 'JwtVerifiedCredentialFormatEnum', {
10072
- enumerable: true,
10073
- get: function () {
10074
- return _dynamic_labs_sdk_api_core.JwtVerifiedCredentialFormatEnum;
10075
- }
10076
- });
10077
- exports.LinkCredentialError = require_updateAuthFromVerifyResponse.LinkCredentialError;
10078
- Object.defineProperty(exports, 'MFAAction', {
10079
- enumerable: true,
10080
- get: function () {
10081
- return _dynamic_labs_sdk_api_core.MFAAction;
10082
- }
10083
- });
10100
+ exports.JwtVerifiedCredentialFormatEnum = JwtVerifiedCredentialFormatEnum;
10101
+ exports.LinkCredentialError = require_logoutWithReason.LinkCredentialError;
10102
+ exports.MFAAction = MFAAction;
10084
10103
  exports.MergeAccountsConfirmationError = require_getNetworkProviderFromNetworkId.MergeAccountsConfirmationError;
10085
- exports.MfaInvalidOtpError = require_updateAuthFromVerifyResponse.MfaInvalidOtpError;
10086
- exports.MfaRateLimitedError = require_updateAuthFromVerifyResponse.MfaRateLimitedError;
10104
+ exports.MfaInvalidOtpError = require_logoutWithReason.MfaInvalidOtpError;
10105
+ exports.MfaRateLimitedError = require_logoutWithReason.MfaRateLimitedError;
10087
10106
  exports.MissingRedirectStorageStateError = MissingRedirectStorageStateError;
10088
10107
  exports.MissingSocialUrlParamError = MissingSocialUrlParamError;
10089
10108
  exports.MissingUserVerificationError = MissingUserVerificationError;
@@ -10095,32 +10114,24 @@ exports.NoNetworkProvidersError = require_getNetworkProviderFromNetworkId.NoNetw
10095
10114
  exports.NoPasskeyCredentialsFoundError = NoPasskeyCredentialsFoundError;
10096
10115
  exports.NoSmartWalletAccountSignerFoundError = NoSmartWalletAccountSignerFoundError;
10097
10116
  exports.NoWebAuthNSupportError = NoWebAuthNSupportError;
10098
- exports.NotWaasWalletAccountError = require_isDynamicWaasEnabled.NotWaasWalletAccountError;
10099
- Object.defineProperty(exports, 'ProviderEnum', {
10100
- enumerable: true,
10101
- get: function () {
10102
- return _dynamic_labs_sdk_api_core.ProviderEnum;
10103
- }
10104
- });
10105
- exports.SandboxMaximumThresholdReachedError = require_updateAuthFromVerifyResponse.SandboxMaximumThresholdReachedError;
10117
+ exports.NotWaasWalletAccountError = require_migrateFromFireblocks.NotWaasWalletAccountError;
10118
+ exports.ProviderEnum = ProviderEnum;
10119
+ exports.SandboxMaximumThresholdReachedError = require_logoutWithReason.SandboxMaximumThresholdReachedError;
10106
10120
  exports.ScreeningNotRequiredError = ScreeningNotRequiredError;
10107
10121
  exports.SimulationFailedError = SimulationFailedError;
10108
- Object.defineProperty(exports, 'TokenScope', {
10109
- enumerable: true,
10110
- get: function () {
10111
- return _dynamic_labs_sdk_api_core.TokenScope;
10112
- }
10113
- });
10122
+ exports.TokenScope = require_logoutWithReason.TokenScope;
10114
10123
  exports.TokenSwapError = TokenSwapError;
10115
- exports.TransactionBroadcastError = require_isDynamicWaasEnabled.TransactionBroadcastError;
10116
- exports.UnauthorizedError = require_updateAuthFromVerifyResponse.UnauthorizedError;
10124
+ exports.TransactionBroadcastError = require_migrateFromFireblocks.TransactionBroadcastError;
10125
+ exports.UnauthorizedError = require_logoutWithReason.UnauthorizedError;
10117
10126
  exports.UnavailableInServerSideError = require_getNetworkProviderFromNetworkId.UnavailableInServerSideError;
10118
10127
  exports.UnrecognizedNetworkError = UnrecognizedNetworkError;
10119
10128
  exports.UserCancelledSocialPopUpError = UserCancelledSocialPopUpError;
10120
10129
  exports.UserNotAuthenticatedError = UserNotAuthenticatedError;
10121
10130
  exports.UserRejectedError = UserRejectedError;
10131
+ exports.WaasChainEnum = require_waas.WaasChainEnum;
10122
10132
  exports.WaasLoadFailedError = require_isUserOnboardingComplete.WaasLoadFailedError;
10123
10133
  exports.WaasOnboardingIncompleteError = require_isUserOnboardingComplete.WaasOnboardingIncompleteError;
10134
+ exports.WaasRbacStaleRetryUnsafeError = require_isUserOnboardingComplete.WaasRbacStaleRetryUnsafeError;
10124
10135
  exports.WalletAccountAlreadyVerifiedError = WalletAccountAlreadyVerifiedError;
10125
10136
  exports.WalletAccountNotSelectedError = WalletAccountNotSelectedError;
10126
10137
  exports.WalletAlreadyLinkedToAnotherUserError = require_getNetworkProviderFromNetworkId.WalletAlreadyLinkedToAnotherUserError;
@@ -10171,7 +10182,7 @@ exports.detectOAuthRedirect = detectOAuthRedirect;
10171
10182
  exports.detectSocialRedirectUrl = detectSocialRedirectUrl;
10172
10183
  exports.excludeInstalledFromCatalog = excludeInstalledFromCatalog;
10173
10184
  exports.executeSwapTransaction = __executeSwapTransaction_wrapped;
10174
- exports.fetchProjectSettings = require_updateAuthFromVerifyResponse.fetchProjectSettings;
10185
+ exports.fetchProjectSettings = require_logoutWithReason.fetchProjectSettings;
10175
10186
  exports.findMissingGoogleDriveBackupScopes = findMissingGoogleDriveBackupScopes;
10176
10187
  exports.getActiveNetworkData = getActiveNetworkData;
10177
10188
  exports.getActiveNetworkId = getActiveNetworkId;
@@ -10185,9 +10196,9 @@ exports.getCheckoutTransactionQuote = getCheckoutTransactionQuote;
10185
10196
  exports.getCoinbaseAccounts = getCoinbaseAccounts;
10186
10197
  exports.getCoinbaseBuyUrl = getCoinbaseBuyUrl;
10187
10198
  exports.getConnectedAddresses = getConnectedAddresses;
10188
- exports.getDefaultClient = require_updateAuthFromVerifyResponse.getDefaultClient;
10199
+ exports.getDefaultClient = require_logoutWithReason.getDefaultClient;
10189
10200
  exports.getDeviceRegistrationTokenFromUrl = getDeviceRegistrationTokenFromUrl;
10190
- exports.getElevatedAccessToken = require_updateAuthFromVerifyResponse.getElevatedAccessToken;
10201
+ exports.getElevatedAccessToken = require_logoutWithReason.getElevatedAccessToken;
10191
10202
  exports.getFlow = getFlow;
10192
10203
  exports.getFlowQuote = getFlowQuote;
10193
10204
  exports.getGoogleDriveBackupReadiness = __getGoogleDriveBackupReadiness_wrapped;
@@ -10216,7 +10227,7 @@ exports.getTransactionHistory = getTransactionHistory;
10216
10227
  exports.getUserSocialAccounts = getUserSocialAccounts;
10217
10228
  exports.getWalletAccountAddressByType = getWalletAccountAddressByType;
10218
10229
  exports.getWalletAccountFromAddress = getWalletAccountFromAddress;
10219
- exports.getWalletAccounts = require_updateAuthFromVerifyResponse.getWalletAccounts;
10230
+ exports.getWalletAccounts = require_logoutWithReason.getWalletAccounts;
10220
10231
  exports.getWalletConnectCatalog = getWalletConnectCatalog;
10221
10232
  exports.getWalletConnectCatalogWalletByWalletProviderKey = getWalletConnectCatalogWalletByWalletProviderKey;
10222
10233
  exports.getWalletOptionsCatalogue = getWalletOptionsCatalogue;
@@ -10238,24 +10249,24 @@ exports.isMfaRequiredForAction = require_isMfaRequiredForAction.isMfaRequiredFor
10238
10249
  exports.isMobile = isMobile;
10239
10250
  exports.isPendingRecoveryCodesAcknowledgment = require_isUserOnboardingComplete.isPendingRecoveryCodesAcknowledgment;
10240
10251
  exports.isProgrammaticNetworkSwitchAvailable = isProgrammaticNetworkSwitchAvailable;
10241
- exports.isSignedIn = require_updateAuthFromVerifyResponse.isSignedIn;
10242
- exports.isUserMissingMfaAuth = require_updateAuthFromVerifyResponse.isUserMissingMfaAuth;
10252
+ exports.isSignedIn = require_logoutWithReason.isSignedIn;
10253
+ exports.isUserMissingMfaAuth = require_logoutWithReason.isUserMissingMfaAuth;
10243
10254
  exports.isUserOnboardingComplete = require_isUserOnboardingComplete.isUserOnboardingComplete;
10244
10255
  exports.isWalletAccountVerified = isWalletAccountVerified;
10245
10256
  exports.listYieldVaults = listYieldVaults;
10246
10257
  exports.logout = logout;
10247
10258
  exports.matchWalletProvidersToCatalogGroup = matchWalletProvidersToCatalogGroup;
10248
10259
  exports.mergeUserAccounts = mergeUserAccounts;
10249
- exports.offEvent = require_updateAuthFromVerifyResponse.offEvent;
10260
+ exports.offEvent = require_logoutWithReason.offEvent;
10250
10261
  exports.offWalletProviderEvent = offWalletProviderEvent;
10251
- exports.onEvent = require_updateAuthFromVerifyResponse.onEvent;
10262
+ exports.onEvent = require_logoutWithReason.onEvent;
10252
10263
  exports.onWalletProviderEvent = onWalletProviderEvent;
10253
- exports.onceEvent = require_updateAuthFromVerifyResponse.onceEvent;
10264
+ exports.onceEvent = require_logoutWithReason.onceEvent;
10254
10265
  exports.parseUserAgent = parseUserAgent;
10255
10266
  exports.prepareCheckoutTransaction = __prepareCheckoutTransaction_wrapped;
10256
10267
  exports.prepareFlowSigning = __prepareFlowSigning_wrapped;
10257
10268
  exports.proveWalletAccountOwnership = __proveWalletAccountOwnership_wrapped;
10258
- exports.refreshAuth = require_isDynamicWaasEnabled.__refreshAuth_wrapped;
10269
+ exports.refreshAuth = require_logoutWithReason.__refreshAuth_wrapped;
10259
10270
  exports.refreshUser = __refreshUser_wrapped;
10260
10271
  exports.registerPasskey = __registerPasskey_wrapped;
10261
10272
  exports.registerTotpMfaDevice = __registerTotpMfaDevice_wrapped;