@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
@@ -1,5 +1,5 @@
1
- const require_updateAuthFromVerifyResponse = require('./updateAuthFromVerifyResponse-Dsw-eAro.cjs');
2
- const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-DKfoMhEk.cjs');
1
+ const require_logoutWithReason = require('./logoutWithReason-DEM0fiik.cjs');
2
+ const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-BSclknqX.cjs');
3
3
 
4
4
  //#region src/modules/mfa/consumeMfaTokenIfRequiredForAction/consumeMfaTokenIfRequiredForAction.ts
5
5
  /** @notInstrumented */
@@ -12,8 +12,8 @@ const consumeMfaTokenIfRequiredForAction = async ({ mfaAction }, client) => {
12
12
  //#region src/modules/sessionKeys/generateNonceSignature/generateNonceSignature.ts
13
13
  /** @notInstrumented */
14
14
  const generateNonceSignature = async ({ nonce }, client) => {
15
- const core = require_updateAuthFromVerifyResponse.getCore(client);
16
- require_updateAuthFromVerifyResponse.assertDefined(core.keychain, "Keychain service not available");
15
+ const core = require_logoutWithReason.getCore(client);
16
+ require_logoutWithReason.assertDefined(core.keychain, "Keychain service not available");
17
17
  return { signature: await core.keychain.sign("session", nonce) };
18
18
  };
19
19
 
@@ -21,20 +21,20 @@ const generateNonceSignature = async ({ nonce }, client) => {
21
21
  //#region src/modules/sessionKeys/generateSessionSignature/generateSessionSignature.ts
22
22
  /** @notInstrumented */
23
23
  const generateSessionSignature = async ({ sessionId }, client) => {
24
- return { signature: await require_updateAuthFromVerifyResponse.getCore(client).keychain.sign("session", sessionId) };
24
+ return { signature: await require_logoutWithReason.getCore(client).keychain.sign("session", sessionId) };
25
25
  };
26
26
 
27
27
  //#endregion
28
28
  //#region src/modules/sessionKeys/getSignedSessionId/getSignedSessionId.ts
29
29
  /** @notInstrumented */
30
30
  const getSignedSessionId = async (client) => {
31
- const sessionId = require_updateAuthFromVerifyResponse.getCore(client).state.get().user?.sessionId;
32
- require_updateAuthFromVerifyResponse.assertDefined(sessionId, "Session ID is required");
31
+ const sessionId = require_logoutWithReason.getCore(client).state.get().user?.sessionId;
32
+ require_logoutWithReason.assertDefined(sessionId, "Session ID is required");
33
33
  const { signature: signedSessionId } = await generateSessionSignature({ sessionId }, client);
34
- require_updateAuthFromVerifyResponse.assertDefined(signedSessionId, "Signed session ID is required");
35
- const nonce = await require_updateAuthFromVerifyResponse.getNonce(client);
34
+ require_logoutWithReason.assertDefined(signedSessionId, "Signed session ID is required");
35
+ const nonce = await require_logoutWithReason.getNonce(client);
36
36
  const { signature: nonceSignature } = await generateNonceSignature({ nonce }, client);
37
- require_updateAuthFromVerifyResponse.assertDefined(nonceSignature, "Nonce signature is required");
37
+ require_logoutWithReason.assertDefined(nonceSignature, "Nonce signature is required");
38
38
  return { signature: `${signedSessionId}/${nonceSignature}/${nonce}` };
39
39
  };
40
40
 
@@ -51,4 +51,4 @@ Object.defineProperty(exports, 'getSignedSessionId', {
51
51
  return getSignedSessionId;
52
52
  }
53
53
  });
54
- //# sourceMappingURL=getSignedSessionId-DGa_pu-i.cjs.map
54
+ //# sourceMappingURL=getSignedSessionId-CW2VWZxK.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSignedSessionId-DGa_pu-i.cjs","names":["isMfaRequiredForAction","consumeMfaToken","getCore","getCore","getCore","getNonce"],"sources":["../src/modules/mfa/consumeMfaTokenIfRequiredForAction/consumeMfaTokenIfRequiredForAction.ts","../src/modules/sessionKeys/generateNonceSignature/generateNonceSignature.ts","../src/modules/sessionKeys/generateSessionSignature/generateSessionSignature.ts","../src/modules/sessionKeys/getSignedSessionId/getSignedSessionId.ts"],"sourcesContent":["import type { MFAAction } from '@dynamic-labs/sdk-api-core';\n\nimport type { DynamicClient } from '../../../client/types/DynamicClient';\nimport { consumeMfaToken } from '../consumeMfaToken';\nimport { isMfaRequiredForAction } from '../isMfaRequiredForAction';\n\ntype ConsumeMfaTokenIfRequiredForActionParams = {\n mfaAction: MFAAction;\n};\n\n/** @notInstrumented */\nexport const consumeMfaTokenIfRequiredForAction = async (\n { mfaAction }: ConsumeMfaTokenIfRequiredForActionParams,\n client: DynamicClient\n): Promise<string | undefined> => {\n const isRequiredForAction = await isMfaRequiredForAction(\n { mfaAction },\n client\n );\n\n if (!isRequiredForAction) {\n return;\n }\n\n return consumeMfaToken(client);\n};\n","import { getCore } from '../../../client/core/getCore';\nimport type { DynamicClient } from '../../../client/types';\nimport { assertDefined } from '../../../utils/assertDefined';\n\ntype GenerateNonceSignatureParams = {\n nonce: string;\n};\n\ntype GenerateNonceSignatureResult = { signature: string };\n\n/** @notInstrumented */\nexport const generateNonceSignature = async (\n { nonce }: GenerateNonceSignatureParams,\n client: DynamicClient\n): Promise<GenerateNonceSignatureResult> => {\n const core = getCore(client);\n\n assertDefined(core.keychain, 'Keychain service not available');\n\n const signature = await core.keychain.sign('session', nonce);\n\n return { signature };\n};\n","import { getCore } from '../../../client/core/getCore';\nimport type { DynamicClient } from '../../../client/types';\n\ntype GenerateSessionSignatureParams = {\n sessionId: string;\n};\n\ntype GenerateSessionSignatureResult = { signature: string };\n\n/** @notInstrumented */\nexport const generateSessionSignature = async (\n { sessionId }: GenerateSessionSignatureParams,\n client: DynamicClient\n): Promise<GenerateSessionSignatureResult> => {\n const core = getCore(client);\n\n const signature = await core.keychain.sign('session', sessionId);\n\n return { signature };\n};\n","import { getCore } from '../../../client/core/getCore';\nimport type { DynamicClient } from '../../../client/types';\nimport { assertDefined } from '../../../utils/assertDefined';\nimport { getNonce } from '../../../utils/getNonce';\nimport { generateNonceSignature } from '../generateNonceSignature';\nimport { generateSessionSignature } from '../generateSessionSignature';\n\ntype GetSignedSessionIdResult = { signature: string };\n\n/** @notInstrumented */\nexport const getSignedSessionId = async (\n client: DynamicClient\n): Promise<GetSignedSessionIdResult> => {\n const core = getCore(client);\n\n const sessionId = core.state.get().user?.sessionId;\n assertDefined(sessionId, 'Session ID is required');\n\n const { signature: signedSessionId } = await generateSessionSignature(\n {\n sessionId,\n },\n client\n );\n\n assertDefined(signedSessionId, 'Signed session ID is required');\n\n const nonce = await getNonce(client);\n\n const { signature: nonceSignature } = await generateNonceSignature(\n {\n nonce,\n },\n client\n );\n\n assertDefined(nonceSignature, 'Nonce signature is required');\n\n const signature = `${signedSessionId}/${nonceSignature}/${nonce}`;\n\n return { signature };\n};\n"],"mappings":";;;;;AAWA,MAAa,qCAAqC,OAChD,EAAE,aACF,WACgC;AAMhC,KAAI,CALwB,MAAMA,sDAChC,EAAE,WAAW,EACb,OACD,CAGC;AAGF,QAAOC,yDAAgB,OAAO;;;;;;ACbhC,MAAa,yBAAyB,OACpC,EAAE,SACF,WAC0C;CAC1C,MAAM,OAAOC,6CAAQ,OAAO;AAE5B,oDAAc,KAAK,UAAU,iCAAiC;AAI9D,QAAO,EAAE,WAFS,MAAM,KAAK,SAAS,KAAK,WAAW,MAAM,EAExC;;;;;;ACXtB,MAAa,2BAA2B,OACtC,EAAE,aACF,WAC4C;AAK5C,QAAO,EAAE,WAFS,MAFLC,6CAAQ,OAAO,CAEC,SAAS,KAAK,WAAW,UAAU,EAE5C;;;;;;ACRtB,MAAa,qBAAqB,OAChC,WACsC;CAGtC,MAAM,YAFOC,6CAAQ,OAAO,CAEL,MAAM,KAAK,CAAC,MAAM;AACzC,oDAAc,WAAW,yBAAyB;CAElD,MAAM,EAAE,WAAW,oBAAoB,MAAM,yBAC3C,EACE,WACD,EACD,OACD;AAED,oDAAc,iBAAiB,gCAAgC;CAE/D,MAAM,QAAQ,MAAMC,8CAAS,OAAO;CAEpC,MAAM,EAAE,WAAW,mBAAmB,MAAM,uBAC1C,EACE,OACD,EACD,OACD;AAED,oDAAc,gBAAgB,8BAA8B;AAI5D,QAAO,EAAE,WAFS,GAAG,gBAAgB,GAAG,eAAe,GAAG,SAEtC"}
1
+ {"version":3,"file":"getSignedSessionId-CW2VWZxK.cjs","names":["isMfaRequiredForAction","consumeMfaToken","getCore","getCore","getCore","getNonce"],"sources":["../src/modules/mfa/consumeMfaTokenIfRequiredForAction/consumeMfaTokenIfRequiredForAction.ts","../src/modules/sessionKeys/generateNonceSignature/generateNonceSignature.ts","../src/modules/sessionKeys/generateSessionSignature/generateSessionSignature.ts","../src/modules/sessionKeys/getSignedSessionId/getSignedSessionId.ts"],"sourcesContent":["import type { MFAAction } from '@dynamic-labs/sdk-api-core';\n\nimport type { DynamicClient } from '../../../client/types/DynamicClient';\nimport { consumeMfaToken } from '../consumeMfaToken';\nimport { isMfaRequiredForAction } from '../isMfaRequiredForAction';\n\ntype ConsumeMfaTokenIfRequiredForActionParams = {\n mfaAction: MFAAction;\n};\n\n/** @notInstrumented */\nexport const consumeMfaTokenIfRequiredForAction = async (\n { mfaAction }: ConsumeMfaTokenIfRequiredForActionParams,\n client: DynamicClient\n): Promise<string | undefined> => {\n const isRequiredForAction = await isMfaRequiredForAction(\n { mfaAction },\n client\n );\n\n if (!isRequiredForAction) {\n return;\n }\n\n return consumeMfaToken(client);\n};\n","import { getCore } from '../../../client/core/getCore';\nimport type { DynamicClient } from '../../../client/types';\nimport { assertDefined } from '../../../utils/assertDefined';\n\ntype GenerateNonceSignatureParams = {\n nonce: string;\n};\n\ntype GenerateNonceSignatureResult = { signature: string };\n\n/** @notInstrumented */\nexport const generateNonceSignature = async (\n { nonce }: GenerateNonceSignatureParams,\n client: DynamicClient\n): Promise<GenerateNonceSignatureResult> => {\n const core = getCore(client);\n\n assertDefined(core.keychain, 'Keychain service not available');\n\n const signature = await core.keychain.sign('session', nonce);\n\n return { signature };\n};\n","import { getCore } from '../../../client/core/getCore';\nimport type { DynamicClient } from '../../../client/types';\n\ntype GenerateSessionSignatureParams = {\n sessionId: string;\n};\n\ntype GenerateSessionSignatureResult = { signature: string };\n\n/** @notInstrumented */\nexport const generateSessionSignature = async (\n { sessionId }: GenerateSessionSignatureParams,\n client: DynamicClient\n): Promise<GenerateSessionSignatureResult> => {\n const core = getCore(client);\n\n const signature = await core.keychain.sign('session', sessionId);\n\n return { signature };\n};\n","import { getCore } from '../../../client/core/getCore';\nimport type { DynamicClient } from '../../../client/types';\nimport { assertDefined } from '../../../utils/assertDefined';\nimport { getNonce } from '../../../utils/getNonce';\nimport { generateNonceSignature } from '../generateNonceSignature';\nimport { generateSessionSignature } from '../generateSessionSignature';\n\ntype GetSignedSessionIdResult = { signature: string };\n\n/** @notInstrumented */\nexport const getSignedSessionId = async (\n client: DynamicClient\n): Promise<GetSignedSessionIdResult> => {\n const core = getCore(client);\n\n const sessionId = core.state.get().user?.sessionId;\n assertDefined(sessionId, 'Session ID is required');\n\n const { signature: signedSessionId } = await generateSessionSignature(\n {\n sessionId,\n },\n client\n );\n\n assertDefined(signedSessionId, 'Signed session ID is required');\n\n const nonce = await getNonce(client);\n\n const { signature: nonceSignature } = await generateNonceSignature(\n {\n nonce,\n },\n client\n );\n\n assertDefined(nonceSignature, 'Nonce signature is required');\n\n const signature = `${signedSessionId}/${nonceSignature}/${nonce}`;\n\n return { signature };\n};\n"],"mappings":";;;;;AAWA,MAAa,qCAAqC,OAChD,EAAE,aACF,WACgC;AAMhC,KAAI,CALwB,MAAMA,sDAChC,EAAE,WAAW,EACb,OACD,CAGC;AAGF,QAAOC,yDAAgB,OAAO;;;;;;ACbhC,MAAa,yBAAyB,OACpC,EAAE,SACF,WAC0C;CAC1C,MAAM,OAAOC,iCAAQ,OAAO;AAE5B,wCAAc,KAAK,UAAU,iCAAiC;AAI9D,QAAO,EAAE,WAFS,MAAM,KAAK,SAAS,KAAK,WAAW,MAAM,EAExC;;;;;;ACXtB,MAAa,2BAA2B,OACtC,EAAE,aACF,WAC4C;AAK5C,QAAO,EAAE,WAFS,MAFLC,iCAAQ,OAAO,CAEC,SAAS,KAAK,WAAW,UAAU,EAE5C;;;;;;ACRtB,MAAa,qBAAqB,OAChC,WACsC;CAGtC,MAAM,YAFOC,iCAAQ,OAAO,CAEL,MAAM,KAAK,CAAC,MAAM;AACzC,wCAAc,WAAW,yBAAyB;CAElD,MAAM,EAAE,WAAW,oBAAoB,MAAM,yBAC3C,EACE,WACD,EACD,OACD;AAED,wCAAc,iBAAiB,gCAAgC;CAE/D,MAAM,QAAQ,MAAMC,kCAAS,OAAO;CAEpC,MAAM,EAAE,WAAW,mBAAmB,MAAM,uBAC1C,EACE,OACD,EACD,OACD;AAED,wCAAc,gBAAgB,8BAA8B;AAI5D,QAAO,EAAE,WAFS,GAAG,gBAAgB,GAAG,eAAe,GAAG,SAEtC"}
@@ -1,5 +1,5 @@
1
- import { K as getNonce, St as getCore, ft as assertDefined } from "./updateAuthFromVerifyResponse-CTvWpZLa.native.esm.js";
2
- import { r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-BcJvy7Gw.native.esm.js";
1
+ import { J as getNonce, pt as assertDefined, xt as getCore } from "./apiClient-BAKktP8E.native.esm.js";
2
+ import { r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-BvYKQLus.native.esm.js";
3
3
 
4
4
  //#region src/modules/mfa/consumeMfaTokenIfRequiredForAction/consumeMfaTokenIfRequiredForAction.ts
5
5
  /** @notInstrumented */
@@ -40,4 +40,4 @@ const getSignedSessionId = async (client) => {
40
40
 
41
41
  //#endregion
42
42
  export { consumeMfaTokenIfRequiredForAction as n, getSignedSessionId as t };
43
- //# sourceMappingURL=getSignedSessionId--XNTxNFo.native.esm.js.map
43
+ //# sourceMappingURL=getSignedSessionId-D-KMuDMG.native.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSignedSessionId--XNTxNFo.native.esm.js","names":["consumeMfaToken"],"sources":["../src/modules/mfa/consumeMfaTokenIfRequiredForAction/consumeMfaTokenIfRequiredForAction.ts","../src/modules/sessionKeys/generateNonceSignature/generateNonceSignature.ts","../src/modules/sessionKeys/generateSessionSignature/generateSessionSignature.ts","../src/modules/sessionKeys/getSignedSessionId/getSignedSessionId.ts"],"sourcesContent":["import type { MFAAction } from '@dynamic-labs/sdk-api-core';\n\nimport type { DynamicClient } from '../../../client/types/DynamicClient';\nimport { consumeMfaToken } from '../consumeMfaToken';\nimport { isMfaRequiredForAction } from '../isMfaRequiredForAction';\n\ntype ConsumeMfaTokenIfRequiredForActionParams = {\n mfaAction: MFAAction;\n};\n\n/** @notInstrumented */\nexport const consumeMfaTokenIfRequiredForAction = async (\n { mfaAction }: ConsumeMfaTokenIfRequiredForActionParams,\n client: DynamicClient\n): Promise<string | undefined> => {\n const isRequiredForAction = await isMfaRequiredForAction(\n { mfaAction },\n client\n );\n\n if (!isRequiredForAction) {\n return;\n }\n\n return consumeMfaToken(client);\n};\n","import { getCore } from '../../../client/core/getCore';\nimport type { DynamicClient } from '../../../client/types';\nimport { assertDefined } from '../../../utils/assertDefined';\n\ntype GenerateNonceSignatureParams = {\n nonce: string;\n};\n\ntype GenerateNonceSignatureResult = { signature: string };\n\n/** @notInstrumented */\nexport const generateNonceSignature = async (\n { nonce }: GenerateNonceSignatureParams,\n client: DynamicClient\n): Promise<GenerateNonceSignatureResult> => {\n const core = getCore(client);\n\n assertDefined(core.keychain, 'Keychain service not available');\n\n const signature = await core.keychain.sign('session', nonce);\n\n return { signature };\n};\n","import { getCore } from '../../../client/core/getCore';\nimport type { DynamicClient } from '../../../client/types';\n\ntype GenerateSessionSignatureParams = {\n sessionId: string;\n};\n\ntype GenerateSessionSignatureResult = { signature: string };\n\n/** @notInstrumented */\nexport const generateSessionSignature = async (\n { sessionId }: GenerateSessionSignatureParams,\n client: DynamicClient\n): Promise<GenerateSessionSignatureResult> => {\n const core = getCore(client);\n\n const signature = await core.keychain.sign('session', sessionId);\n\n return { signature };\n};\n","import { getCore } from '../../../client/core/getCore';\nimport type { DynamicClient } from '../../../client/types';\nimport { assertDefined } from '../../../utils/assertDefined';\nimport { getNonce } from '../../../utils/getNonce';\nimport { generateNonceSignature } from '../generateNonceSignature';\nimport { generateSessionSignature } from '../generateSessionSignature';\n\ntype GetSignedSessionIdResult = { signature: string };\n\n/** @notInstrumented */\nexport const getSignedSessionId = async (\n client: DynamicClient\n): Promise<GetSignedSessionIdResult> => {\n const core = getCore(client);\n\n const sessionId = core.state.get().user?.sessionId;\n assertDefined(sessionId, 'Session ID is required');\n\n const { signature: signedSessionId } = await generateSessionSignature(\n {\n sessionId,\n },\n client\n );\n\n assertDefined(signedSessionId, 'Signed session ID is required');\n\n const nonce = await getNonce(client);\n\n const { signature: nonceSignature } = await generateNonceSignature(\n {\n nonce,\n },\n client\n );\n\n assertDefined(nonceSignature, 'Nonce signature is required');\n\n const signature = `${signedSessionId}/${nonceSignature}/${nonce}`;\n\n return { signature };\n};\n"],"mappings":";;;;;AAWA,MAAa,qCAAqC,OAChD,EAAE,aACF,WACgC;AAMhC,KAAI,CALwB,MAAM,uBAChC,EAAE,WAAW,EACb,OACD,CAGC;AAGF,QAAOA,0BAAgB,OAAO;;;;;;ACbhC,MAAa,yBAAyB,OACpC,EAAE,SACF,WAC0C;CAC1C,MAAM,OAAO,QAAQ,OAAO;AAE5B,eAAc,KAAK,UAAU,iCAAiC;AAI9D,QAAO,EAAE,WAFS,MAAM,KAAK,SAAS,KAAK,WAAW,MAAM,EAExC;;;;;;ACXtB,MAAa,2BAA2B,OACtC,EAAE,aACF,WAC4C;AAK5C,QAAO,EAAE,WAFS,MAFL,QAAQ,OAAO,CAEC,SAAS,KAAK,WAAW,UAAU,EAE5C;;;;;;ACRtB,MAAa,qBAAqB,OAChC,WACsC;CAGtC,MAAM,YAFO,QAAQ,OAAO,CAEL,MAAM,KAAK,CAAC,MAAM;AACzC,eAAc,WAAW,yBAAyB;CAElD,MAAM,EAAE,WAAW,oBAAoB,MAAM,yBAC3C,EACE,WACD,EACD,OACD;AAED,eAAc,iBAAiB,gCAAgC;CAE/D,MAAM,QAAQ,MAAM,SAAS,OAAO;CAEpC,MAAM,EAAE,WAAW,mBAAmB,MAAM,uBAC1C,EACE,OACD,EACD,OACD;AAED,eAAc,gBAAgB,8BAA8B;AAI5D,QAAO,EAAE,WAFS,GAAG,gBAAgB,GAAG,eAAe,GAAG,SAEtC"}
1
+ {"version":3,"file":"getSignedSessionId-D-KMuDMG.native.esm.js","names":["consumeMfaToken"],"sources":["../src/modules/mfa/consumeMfaTokenIfRequiredForAction/consumeMfaTokenIfRequiredForAction.ts","../src/modules/sessionKeys/generateNonceSignature/generateNonceSignature.ts","../src/modules/sessionKeys/generateSessionSignature/generateSessionSignature.ts","../src/modules/sessionKeys/getSignedSessionId/getSignedSessionId.ts"],"sourcesContent":["import type { MFAAction } from '@dynamic-labs/sdk-api-core';\n\nimport type { DynamicClient } from '../../../client/types/DynamicClient';\nimport { consumeMfaToken } from '../consumeMfaToken';\nimport { isMfaRequiredForAction } from '../isMfaRequiredForAction';\n\ntype ConsumeMfaTokenIfRequiredForActionParams = {\n mfaAction: MFAAction;\n};\n\n/** @notInstrumented */\nexport const consumeMfaTokenIfRequiredForAction = async (\n { mfaAction }: ConsumeMfaTokenIfRequiredForActionParams,\n client: DynamicClient\n): Promise<string | undefined> => {\n const isRequiredForAction = await isMfaRequiredForAction(\n { mfaAction },\n client\n );\n\n if (!isRequiredForAction) {\n return;\n }\n\n return consumeMfaToken(client);\n};\n","import { getCore } from '../../../client/core/getCore';\nimport type { DynamicClient } from '../../../client/types';\nimport { assertDefined } from '../../../utils/assertDefined';\n\ntype GenerateNonceSignatureParams = {\n nonce: string;\n};\n\ntype GenerateNonceSignatureResult = { signature: string };\n\n/** @notInstrumented */\nexport const generateNonceSignature = async (\n { nonce }: GenerateNonceSignatureParams,\n client: DynamicClient\n): Promise<GenerateNonceSignatureResult> => {\n const core = getCore(client);\n\n assertDefined(core.keychain, 'Keychain service not available');\n\n const signature = await core.keychain.sign('session', nonce);\n\n return { signature };\n};\n","import { getCore } from '../../../client/core/getCore';\nimport type { DynamicClient } from '../../../client/types';\n\ntype GenerateSessionSignatureParams = {\n sessionId: string;\n};\n\ntype GenerateSessionSignatureResult = { signature: string };\n\n/** @notInstrumented */\nexport const generateSessionSignature = async (\n { sessionId }: GenerateSessionSignatureParams,\n client: DynamicClient\n): Promise<GenerateSessionSignatureResult> => {\n const core = getCore(client);\n\n const signature = await core.keychain.sign('session', sessionId);\n\n return { signature };\n};\n","import { getCore } from '../../../client/core/getCore';\nimport type { DynamicClient } from '../../../client/types';\nimport { assertDefined } from '../../../utils/assertDefined';\nimport { getNonce } from '../../../utils/getNonce';\nimport { generateNonceSignature } from '../generateNonceSignature';\nimport { generateSessionSignature } from '../generateSessionSignature';\n\ntype GetSignedSessionIdResult = { signature: string };\n\n/** @notInstrumented */\nexport const getSignedSessionId = async (\n client: DynamicClient\n): Promise<GetSignedSessionIdResult> => {\n const core = getCore(client);\n\n const sessionId = core.state.get().user?.sessionId;\n assertDefined(sessionId, 'Session ID is required');\n\n const { signature: signedSessionId } = await generateSessionSignature(\n {\n sessionId,\n },\n client\n );\n\n assertDefined(signedSessionId, 'Signed session ID is required');\n\n const nonce = await getNonce(client);\n\n const { signature: nonceSignature } = await generateNonceSignature(\n {\n nonce,\n },\n client\n );\n\n assertDefined(nonceSignature, 'Nonce signature is required');\n\n const signature = `${signedSessionId}/${nonceSignature}/${nonce}`;\n\n return { signature };\n};\n"],"mappings":";;;;;AAWA,MAAa,qCAAqC,OAChD,EAAE,aACF,WACgC;AAMhC,KAAI,CALwB,MAAM,uBAChC,EAAE,WAAW,EACb,OACD,CAGC;AAGF,QAAOA,0BAAgB,OAAO;;;;;;ACbhC,MAAa,yBAAyB,OACpC,EAAE,SACF,WAC0C;CAC1C,MAAM,OAAO,QAAQ,OAAO;AAE5B,eAAc,KAAK,UAAU,iCAAiC;AAI9D,QAAO,EAAE,WAFS,MAAM,KAAK,SAAS,KAAK,WAAW,MAAM,EAExC;;;;;;ACXtB,MAAa,2BAA2B,OACtC,EAAE,aACF,WAC4C;AAK5C,QAAO,EAAE,WAFS,MAFL,QAAQ,OAAO,CAEC,SAAS,KAAK,WAAW,UAAU,EAE5C;;;;;;ACRtB,MAAa,qBAAqB,OAChC,WACsC;CAGtC,MAAM,YAFO,QAAQ,OAAO,CAEL,MAAM,KAAK,CAAC,MAAM;AACzC,eAAc,WAAW,yBAAyB;CAElD,MAAM,EAAE,WAAW,oBAAoB,MAAM,yBAC3C,EACE,WACD,EACD,OACD;AAED,eAAc,iBAAiB,gCAAgC;CAE/D,MAAM,QAAQ,MAAM,SAAS,OAAO;CAEpC,MAAM,EAAE,WAAW,mBAAmB,MAAM,uBAC1C,EACE,OACD,EACD,OACD;AAED,eAAc,gBAAgB,8BAA8B;AAI5D,QAAO,EAAE,WAFS,GAAG,gBAAgB,GAAG,eAAe,GAAG,SAEtC"}
@@ -1,18 +1,18 @@
1
- const require_updateAuthFromVerifyResponse = require('./updateAuthFromVerifyResponse-Dsw-eAro.cjs');
1
+ const require_logoutWithReason = require('./logoutWithReason-DEM0fiik.cjs');
2
2
 
3
- //#region src/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.ts
3
+ //#region src/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.ts
4
4
  /** @notInstrumented */
5
- const getVerifiedCredentialForWalletAccount = ({ walletAccount }, client) => {
6
- return client.user?.verifiedCredentials.find((vc) => vc.id === walletAccount.verifiedCredentialId);
5
+ const getWalletProviderByKey = ({ walletProviderKey }, client) => {
6
+ const walletProvider = require_logoutWithReason.getWalletProviders(client).find((walletProvider$1) => walletProvider$1.key === walletProviderKey);
7
+ if (!walletProvider) throw new require_logoutWithReason.NoWalletProviderFoundError({ walletProviderKey });
8
+ return walletProvider;
7
9
  };
8
10
 
9
11
  //#endregion
10
- //#region src/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.ts
12
+ //#region src/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.ts
11
13
  /** @notInstrumented */
12
- const getWalletProviderByKey = ({ walletProviderKey }, client) => {
13
- const walletProvider = require_updateAuthFromVerifyResponse.getWalletProviders(client).find((walletProvider$1) => walletProvider$1.key === walletProviderKey);
14
- if (!walletProvider) throw new require_updateAuthFromVerifyResponse.NoWalletProviderFoundError({ walletProviderKey });
15
- return walletProvider;
14
+ const getVerifiedCredentialForWalletAccount = ({ walletAccount }, client) => {
15
+ return client.user?.verifiedCredentials.find((vc) => vc.id === walletAccount.verifiedCredentialId);
16
16
  };
17
17
 
18
18
  //#endregion
@@ -28,4 +28,4 @@ Object.defineProperty(exports, 'getWalletProviderByKey', {
28
28
  return getWalletProviderByKey;
29
29
  }
30
30
  });
31
- //# sourceMappingURL=getWalletProviderByKey-DzpmoNlv.cjs.map
31
+ //# sourceMappingURL=getVerifiedCredentialForWalletAccount-DZS1-K7H.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getVerifiedCredentialForWalletAccount-DZS1-K7H.cjs","names":["getWalletProviders","walletProvider","NoWalletProviderFoundError"],"sources":["../src/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.ts","../src/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.ts"],"sourcesContent":["import type { DynamicClient } from '../../../client/types';\nimport { NoWalletProviderFoundError } from '../../../errors/NoWalletProviderFoundError';\nimport { getWalletProviders } from '../getWalletProviders';\nimport type { WalletProvider } from '../walletProvider';\n\ntype GetWalletProviderByKeyParams = {\n walletProviderKey: string;\n};\n\n/** @notInstrumented */\nexport const getWalletProviderByKey = (\n { walletProviderKey }: GetWalletProviderByKeyParams,\n client: DynamicClient\n): WalletProvider => {\n const walletProviders = getWalletProviders(client);\n\n const walletProvider = walletProviders.find(\n (walletProvider) => walletProvider.key === walletProviderKey\n );\n\n if (!walletProvider) {\n throw new NoWalletProviderFoundError({ walletProviderKey });\n }\n\n return walletProvider;\n};\n","import type { JwtVerifiedCredential } from '@dynamic-labs/sdk-api-core';\n\nimport type { DynamicClient } from '../../../../client/types/DynamicClient';\nimport type { WalletAccount } from '../../walletAccount';\n\ntype GetVerifiedCredentialForWalletAccountParams = {\n walletAccount: WalletAccount;\n};\n\n/** @notInstrumented */\nexport const getVerifiedCredentialForWalletAccount = (\n { walletAccount }: GetVerifiedCredentialForWalletAccountParams,\n client: DynamicClient\n): JwtVerifiedCredential | undefined => {\n return client.user?.verifiedCredentials.find(\n (vc) => vc.id === walletAccount.verifiedCredentialId\n );\n};\n"],"mappings":";;;;AAUA,MAAa,0BACX,EAAE,qBACF,WACmB;CAGnB,MAAM,iBAFkBA,4CAAmB,OAAO,CAEX,MACpC,qBAAmBC,iBAAe,QAAQ,kBAC5C;AAED,KAAI,CAAC,eACH,OAAM,IAAIC,oDAA2B,EAAE,mBAAmB,CAAC;AAG7D,QAAO;;;;;;ACdT,MAAa,yCACX,EAAE,iBACF,WACsC;AACtC,QAAO,OAAO,MAAM,oBAAoB,MACrC,OAAO,GAAG,OAAO,cAAc,qBACjC"}
@@ -1,12 +1,5 @@
1
- import { O as NoWalletProviderFoundError, p as getWalletProviders } from "./updateAuthFromVerifyResponse-BLgNMqwN.esm.js";
1
+ import { A as getWalletProviders, s as NoWalletProviderFoundError } from "./logoutWithReason-CIsCVAUE.esm.js";
2
2
 
3
- //#region src/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.ts
4
- /** @notInstrumented */
5
- const getVerifiedCredentialForWalletAccount = ({ walletAccount }, client) => {
6
- return client.user?.verifiedCredentials.find((vc) => vc.id === walletAccount.verifiedCredentialId);
7
- };
8
-
9
- //#endregion
10
3
  //#region src/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.ts
11
4
  /** @notInstrumented */
12
5
  const getWalletProviderByKey = ({ walletProviderKey }, client) => {
@@ -16,5 +9,12 @@ const getWalletProviderByKey = ({ walletProviderKey }, client) => {
16
9
  };
17
10
 
18
11
  //#endregion
19
- export { getVerifiedCredentialForWalletAccount as n, getWalletProviderByKey as t };
20
- //# sourceMappingURL=getWalletProviderByKey-xqyD3ybv.esm.js.map
12
+ //#region src/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.ts
13
+ /** @notInstrumented */
14
+ const getVerifiedCredentialForWalletAccount = ({ walletAccount }, client) => {
15
+ return client.user?.verifiedCredentials.find((vc) => vc.id === walletAccount.verifiedCredentialId);
16
+ };
17
+
18
+ //#endregion
19
+ export { getWalletProviderByKey as n, getVerifiedCredentialForWalletAccount as t };
20
+ //# sourceMappingURL=getVerifiedCredentialForWalletAccount-Dqb6bpAF.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getVerifiedCredentialForWalletAccount-Dqb6bpAF.esm.js","names":["walletProvider"],"sources":["../src/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.ts","../src/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.ts"],"sourcesContent":["import type { DynamicClient } from '../../../client/types';\nimport { NoWalletProviderFoundError } from '../../../errors/NoWalletProviderFoundError';\nimport { getWalletProviders } from '../getWalletProviders';\nimport type { WalletProvider } from '../walletProvider';\n\ntype GetWalletProviderByKeyParams = {\n walletProviderKey: string;\n};\n\n/** @notInstrumented */\nexport const getWalletProviderByKey = (\n { walletProviderKey }: GetWalletProviderByKeyParams,\n client: DynamicClient\n): WalletProvider => {\n const walletProviders = getWalletProviders(client);\n\n const walletProvider = walletProviders.find(\n (walletProvider) => walletProvider.key === walletProviderKey\n );\n\n if (!walletProvider) {\n throw new NoWalletProviderFoundError({ walletProviderKey });\n }\n\n return walletProvider;\n};\n","import type { JwtVerifiedCredential } from '@dynamic-labs/sdk-api-core';\n\nimport type { DynamicClient } from '../../../../client/types/DynamicClient';\nimport type { WalletAccount } from '../../walletAccount';\n\ntype GetVerifiedCredentialForWalletAccountParams = {\n walletAccount: WalletAccount;\n};\n\n/** @notInstrumented */\nexport const getVerifiedCredentialForWalletAccount = (\n { walletAccount }: GetVerifiedCredentialForWalletAccountParams,\n client: DynamicClient\n): JwtVerifiedCredential | undefined => {\n return client.user?.verifiedCredentials.find(\n (vc) => vc.id === walletAccount.verifiedCredentialId\n );\n};\n"],"mappings":";;;;AAUA,MAAa,0BACX,EAAE,qBACF,WACmB;CAGnB,MAAM,iBAFkB,mBAAmB,OAAO,CAEX,MACpC,qBAAmBA,iBAAe,QAAQ,kBAC5C;AAED,KAAI,CAAC,eACH,OAAM,IAAI,2BAA2B,EAAE,mBAAmB,CAAC;AAG7D,QAAO;;;;;;ACdT,MAAa,yCACX,EAAE,iBACF,WACsC;AACtC,QAAO,OAAO,MAAM,oBAAoB,MACrC,OAAO,GAAG,OAAO,cAAc,qBACjC"}