@dynamic-labs-sdk/client 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/dist/{InvalidParamError-BZPD1J5U.esm.js → InvalidParamError-Dyk0GfyN.esm.js} +262 -6
  2. package/dist/InvalidParamError-Dyk0GfyN.esm.js.map +1 -0
  3. package/dist/{InvalidParamError-CH8qePiW.cjs.js → InvalidParamError-DzSZbHE5.cjs.js} +348 -5
  4. package/dist/InvalidParamError-DzSZbHE5.cjs.js.map +1 -0
  5. package/dist/{NotWaasWalletAccountError-Bb8-O3Q9.cjs.js → NotWaasWalletAccountError-DFTloI8C.cjs.js} +3 -3
  6. package/dist/{NotWaasWalletAccountError-Bb8-O3Q9.cjs.js.map → NotWaasWalletAccountError-DFTloI8C.cjs.js.map} +1 -1
  7. package/dist/{NotWaasWalletAccountError-kP6g-sx9.esm.js → NotWaasWalletAccountError-kNpOqccC.esm.js} +3 -3
  8. package/dist/{NotWaasWalletAccountError-kP6g-sx9.esm.js.map → NotWaasWalletAccountError-kNpOqccC.esm.js.map} +1 -1
  9. package/dist/client/core/createCore/getInitialState.d.ts.map +1 -1
  10. package/dist/core.cjs.js +33 -65
  11. package/dist/core.cjs.js.map +1 -1
  12. package/dist/core.esm.js +24 -60
  13. package/dist/core.esm.js.map +1 -1
  14. package/dist/errors/CheckoutSessionTokenMissingError.d.ts +7 -0
  15. package/dist/errors/CheckoutSessionTokenMissingError.d.ts.map +1 -0
  16. package/dist/errors/DeeplinkConnectAndVerifyUnsupportedError.d.ts +9 -0
  17. package/dist/errors/DeeplinkConnectAndVerifyUnsupportedError.d.ts.map +1 -0
  18. package/dist/errors/UnauthorizedError.d.ts +5 -0
  19. package/dist/errors/UnauthorizedError.d.ts.map +1 -0
  20. package/dist/exports/core.d.ts +9 -1
  21. package/dist/exports/core.d.ts.map +1 -1
  22. package/dist/exports/index.d.ts +30 -3
  23. package/dist/exports/index.d.ts.map +1 -1
  24. package/dist/{getNetworkProviderFromNetworkId-gEnLk01L.cjs.js → getNetworkProviderFromNetworkId-BD1iGcEg.cjs.js} +77 -153
  25. package/dist/getNetworkProviderFromNetworkId-BD1iGcEg.cjs.js.map +1 -0
  26. package/dist/{getNetworkProviderFromNetworkId-mlU2KYAn.esm.js → getNetworkProviderFromNetworkId-ySZUpmOr.esm.js} +70 -101
  27. package/dist/getNetworkProviderFromNetworkId-ySZUpmOr.esm.js.map +1 -0
  28. package/dist/{getSignedSessionId-B2kd9qrw.esm.js → getSignedSessionId-BxhxGkA4.esm.js} +4 -17
  29. package/dist/getSignedSessionId-BxhxGkA4.esm.js.map +1 -0
  30. package/dist/{getSignedSessionId-BYF0o0nI.cjs.js → getSignedSessionId-s45HpP3W.cjs.js} +5 -24
  31. package/dist/getSignedSessionId-s45HpP3W.cjs.js.map +1 -0
  32. package/dist/{getVerifiedCredentialForWalletAccount-DZMPlNXZ.cjs.js → getVerifiedCredentialForWalletAccount-BxrgouFz.cjs.js} +2 -3
  33. package/dist/{getVerifiedCredentialForWalletAccount-DZMPlNXZ.cjs.js.map → getVerifiedCredentialForWalletAccount-BxrgouFz.cjs.js.map} +1 -1
  34. package/dist/{getVerifiedCredentialForWalletAccount-DupRN2qF.esm.js → getVerifiedCredentialForWalletAccount-Ch8h_J_W.esm.js} +2 -2
  35. package/dist/{getVerifiedCredentialForWalletAccount-DupRN2qF.esm.js.map → getVerifiedCredentialForWalletAccount-Ch8h_J_W.esm.js.map} +1 -1
  36. package/dist/index.cjs.js +500 -88
  37. package/dist/index.cjs.js.map +1 -1
  38. package/dist/index.esm.js +475 -80
  39. package/dist/index.esm.js.map +1 -1
  40. package/dist/{isMfaRequiredForAction-CBENhE_c.esm.js → isMfaRequiredForAction-D1sFhYH1.esm.js} +3 -10
  41. package/dist/isMfaRequiredForAction-D1sFhYH1.esm.js.map +1 -0
  42. package/dist/{isMfaRequiredForAction-KnGLJETO.cjs.js → isMfaRequiredForAction-DaJSsq8Z.cjs.js} +2 -15
  43. package/dist/isMfaRequiredForAction-DaJSsq8Z.cjs.js.map +1 -0
  44. package/dist/modules/apiClient/createApiClient.d.ts.map +1 -1
  45. package/dist/modules/apiClient/utils/deviceSignatureHeadersMiddleware/createDeviceSignatureHeadersMiddleware.d.ts +4 -0
  46. package/dist/modules/apiClient/utils/deviceSignatureHeadersMiddleware/createDeviceSignatureHeadersMiddleware.d.ts.map +1 -0
  47. package/dist/modules/apiClient/utils/deviceSignatureHeadersMiddleware/index.d.ts +2 -0
  48. package/dist/modules/apiClient/utils/deviceSignatureHeadersMiddleware/index.d.ts.map +1 -0
  49. package/dist/modules/apiClient/utils/unauthorizedMiddleware/createUnauthorizedMiddleware.d.ts +3 -0
  50. package/dist/modules/apiClient/utils/unauthorizedMiddleware/createUnauthorizedMiddleware.d.ts.map +1 -0
  51. package/dist/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.d.ts +4 -2
  52. package/dist/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.d.ts.map +1 -1
  53. package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts +15 -0
  54. package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts.map +1 -0
  55. package/dist/modules/checkout/attachCheckoutTransactionSource/index.d.ts +3 -0
  56. package/dist/modules/checkout/attachCheckoutTransactionSource/index.d.ts.map +1 -0
  57. package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts +15 -0
  58. package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts.map +1 -0
  59. package/dist/modules/checkout/broadcastCheckoutTransaction/index.d.ts +3 -0
  60. package/dist/modules/checkout/broadcastCheckoutTransaction/index.d.ts.map +1 -0
  61. package/dist/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.d.ts +13 -0
  62. package/dist/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.d.ts.map +1 -0
  63. package/dist/modules/checkout/cancelCheckoutTransaction/index.d.ts +3 -0
  64. package/dist/modules/checkout/cancelCheckoutTransaction/index.d.ts.map +1 -0
  65. package/dist/modules/checkout/checkout.types.d.ts +7 -0
  66. package/dist/modules/checkout/checkout.types.d.ts.map +1 -0
  67. package/dist/modules/checkout/createCheckoutTransaction/createCheckoutTransaction.d.ts +18 -0
  68. package/dist/modules/checkout/createCheckoutTransaction/createCheckoutTransaction.d.ts.map +1 -0
  69. package/dist/modules/checkout/createCheckoutTransaction/index.d.ts +3 -0
  70. package/dist/modules/checkout/createCheckoutTransaction/index.d.ts.map +1 -0
  71. package/dist/modules/checkout/getCheckoutTransaction/getCheckoutTransaction.d.ts +14 -0
  72. package/dist/modules/checkout/getCheckoutTransaction/getCheckoutTransaction.d.ts.map +1 -0
  73. package/dist/modules/checkout/getCheckoutTransaction/index.d.ts +3 -0
  74. package/dist/modules/checkout/getCheckoutTransaction/index.d.ts.map +1 -0
  75. package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts +16 -0
  76. package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts.map +1 -0
  77. package/dist/modules/checkout/getCheckoutTransactionQuote/index.d.ts +3 -0
  78. package/dist/modules/checkout/getCheckoutTransactionQuote/index.d.ts.map +1 -0
  79. package/dist/modules/checkout/prepareCheckoutTransaction/index.d.ts +3 -0
  80. package/dist/modules/checkout/prepareCheckoutTransaction/index.d.ts.map +1 -0
  81. package/dist/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.d.ts +15 -0
  82. package/dist/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.d.ts.map +1 -0
  83. package/dist/modules/checkout/submitCheckoutTransaction/index.d.ts +3 -0
  84. package/dist/modules/checkout/submitCheckoutTransaction/index.d.ts.map +1 -0
  85. package/dist/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.d.ts +22 -0
  86. package/dist/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.d.ts.map +1 -0
  87. package/dist/modules/checkout/utils/createCheckoutApiClient/createCheckoutApiClient.d.ts +13 -0
  88. package/dist/modules/checkout/utils/createCheckoutApiClient/createCheckoutApiClient.d.ts.map +1 -0
  89. package/dist/modules/checkout/utils/createCheckoutApiClient/index.d.ts +2 -0
  90. package/dist/modules/checkout/utils/createCheckoutApiClient/index.d.ts.map +1 -0
  91. package/dist/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.d.ts +2 -0
  92. package/dist/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.d.ts.map +1 -0
  93. package/dist/modules/checkout/utils/createCheckoutSessionTokenStorageKey/index.d.ts +2 -0
  94. package/dist/modules/checkout/utils/createCheckoutSessionTokenStorageKey/index.d.ts.map +1 -0
  95. package/dist/modules/deviceRegistration/getDeviceSigner/getDeviceSigner.d.ts.map +1 -1
  96. package/dist/modules/deviceRegistration/getDeviceSigner/{getOrCreateUserDeviceSigningKeys/getOrCreateUserDeviceSigningKeys.d.ts → getOrCreateEnvironmentDeviceSigningKeys/getOrCreateEnvironmentDeviceSigningKeys.d.ts} +2 -2
  97. package/dist/modules/deviceRegistration/getDeviceSigner/getOrCreateEnvironmentDeviceSigningKeys/getOrCreateEnvironmentDeviceSigningKeys.d.ts.map +1 -0
  98. package/dist/modules/deviceRegistration/getDeviceSigner/getOrCreateEnvironmentDeviceSigningKeys/index.d.ts +2 -0
  99. package/dist/modules/deviceRegistration/getDeviceSigner/getOrCreateEnvironmentDeviceSigningKeys/index.d.ts.map +1 -0
  100. package/dist/modules/deviceRegistration/getHeadersForNonceSignedByDeviceSigners/getHeadersForNonceSignedByDeviceSigners.d.ts +3 -0
  101. package/dist/modules/deviceRegistration/getHeadersForNonceSignedByDeviceSigners/getHeadersForNonceSignedByDeviceSigners.d.ts.map +1 -0
  102. package/dist/modules/deviceRegistration/getHeadersForNonceSignedByDeviceSigners/index.d.ts +2 -0
  103. package/dist/modules/deviceRegistration/getHeadersForNonceSignedByDeviceSigners/index.d.ts.map +1 -0
  104. package/dist/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.d.ts +3 -0
  105. package/dist/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.d.ts.map +1 -0
  106. package/dist/modules/deviceRegistration/getRegisteredDevices/index.d.ts +2 -0
  107. package/dist/modules/deviceRegistration/getRegisteredDevices/index.d.ts.map +1 -0
  108. package/dist/modules/deviceRegistration/revokeAllRegisteredDevices/index.d.ts +2 -0
  109. package/dist/modules/deviceRegistration/revokeAllRegisteredDevices/index.d.ts.map +1 -0
  110. package/dist/modules/deviceRegistration/revokeAllRegisteredDevices/revokeAllRegisteredDevices.d.ts +2 -0
  111. package/dist/modules/deviceRegistration/revokeAllRegisteredDevices/revokeAllRegisteredDevices.d.ts.map +1 -0
  112. package/dist/modules/deviceRegistration/revokeRegisteredDevice/index.d.ts +2 -0
  113. package/dist/modules/deviceRegistration/revokeRegisteredDevice/index.d.ts.map +1 -0
  114. package/dist/modules/deviceRegistration/revokeRegisteredDevice/revokeRegisteredDevice.d.ts +6 -0
  115. package/dist/modules/deviceRegistration/revokeRegisteredDevice/revokeRegisteredDevice.d.ts.map +1 -0
  116. package/dist/modules/initializeClient/initializeClient.d.ts.map +1 -1
  117. package/dist/modules/mfa/authenticateMfaRecoveryCode/authenticateMfaRecoveryCode.d.ts +7 -3
  118. package/dist/modules/mfa/authenticateMfaRecoveryCode/authenticateMfaRecoveryCode.d.ts.map +1 -1
  119. package/dist/modules/mfa/authenticatePasskeyMFA/authenticatePasskeyMFA.d.ts +6 -3
  120. package/dist/modules/mfa/authenticatePasskeyMFA/authenticatePasskeyMFA.d.ts.map +1 -1
  121. package/dist/modules/mfa/authenticateTotpMfaDevice/authenticateTotpMfaDevice.d.ts +6 -3
  122. package/dist/modules/mfa/authenticateTotpMfaDevice/authenticateTotpMfaDevice.d.ts.map +1 -1
  123. package/dist/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.d.ts +10 -0
  124. package/dist/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.d.ts.map +1 -1
  125. package/dist/modules/wallets/constants.d.ts.map +1 -1
  126. package/dist/modules/wallets/transferAmount/index.d.ts +2 -0
  127. package/dist/modules/wallets/transferAmount/index.d.ts.map +1 -0
  128. package/dist/modules/wallets/transferAmount/transferAmount.d.ts +19 -0
  129. package/dist/modules/wallets/transferAmount/transferAmount.d.ts.map +1 -0
  130. package/dist/modules/wallets/walletProvider/index.d.ts +1 -1
  131. package/dist/modules/wallets/walletProvider/index.d.ts.map +1 -1
  132. package/dist/modules/wallets/walletProvider/isDeeplinkWalletProvider/index.d.ts +2 -0
  133. package/dist/modules/wallets/walletProvider/isDeeplinkWalletProvider/index.d.ts.map +1 -0
  134. package/dist/modules/wallets/walletProvider/isDeeplinkWalletProvider/isDeeplinkWalletProvider.d.ts +10 -0
  135. package/dist/modules/wallets/walletProvider/isDeeplinkWalletProvider/isDeeplinkWalletProvider.d.ts.map +1 -0
  136. package/dist/modules/wallets/walletProvider/walletProvider.types.d.ts +32 -0
  137. package/dist/modules/wallets/walletProvider/walletProvider.types.d.ts.map +1 -1
  138. package/dist/services/crossTabBroadcast/createCrossTabBroadcast/createCrossTabBroadcast.d.ts.map +1 -1
  139. package/dist/services/crossTabBroadcast/crossTabBroadcast.schema.d.ts +1 -0
  140. package/dist/services/crossTabBroadcast/crossTabBroadcast.schema.d.ts.map +1 -1
  141. package/dist/services/crossTabBroadcast/crossTabBroadcast.types.d.ts +9 -6
  142. package/dist/services/crossTabBroadcast/crossTabBroadcast.types.d.ts.map +1 -1
  143. package/dist/services/openDeeplink/createWebDeeplinkOpener/createWebDeeplinkOpener.d.ts +11 -1
  144. package/dist/services/openDeeplink/createWebDeeplinkOpener/createWebDeeplinkOpener.d.ts.map +1 -1
  145. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  146. package/dist/utils/getDeviceNameFromUserAgent/getDeviceNameFromUserAgent.d.ts +6 -0
  147. package/dist/utils/getDeviceNameFromUserAgent/getDeviceNameFromUserAgent.d.ts.map +1 -0
  148. package/dist/utils/getDeviceNameFromUserAgent/index.d.ts +2 -0
  149. package/dist/utils/getDeviceNameFromUserAgent/index.d.ts.map +1 -0
  150. package/dist/utils/getNonce/constants.d.ts +2 -0
  151. package/dist/utils/getNonce/constants.d.ts.map +1 -0
  152. package/dist/utils/getNonce/fetchAndStoreNonces/fetchAndStoreNonces.d.ts +13 -0
  153. package/dist/utils/getNonce/fetchAndStoreNonces/fetchAndStoreNonces.d.ts.map +1 -0
  154. package/dist/utils/getNonce/fetchAndStoreNonces/index.d.ts +2 -0
  155. package/dist/utils/getNonce/fetchAndStoreNonces/index.d.ts.map +1 -0
  156. package/dist/utils/getNonce/getNonce.d.ts +7 -0
  157. package/dist/utils/getNonce/getNonce.d.ts.map +1 -1
  158. package/dist/utils/getNonce/state.d.ts +11 -0
  159. package/dist/utils/getNonce/state.d.ts.map +1 -0
  160. package/dist/utils/parseAmountToSmallestUnit/index.d.ts +2 -0
  161. package/dist/utils/parseAmountToSmallestUnit/index.d.ts.map +1 -0
  162. package/dist/utils/parseAmountToSmallestUnit/parseAmountToSmallestUnit.d.ts +22 -0
  163. package/dist/utils/parseAmountToSmallestUnit/parseAmountToSmallestUnit.d.ts.map +1 -0
  164. package/dist/waas.cjs.js +3 -4
  165. package/dist/waas.cjs.js.map +1 -1
  166. package/dist/waas.esm.js +3 -3
  167. package/dist/waasCore.cjs.js +3 -4
  168. package/dist/waasCore.cjs.js.map +1 -1
  169. package/dist/waasCore.esm.js +3 -3
  170. package/package.json +3 -3
  171. package/dist/InvalidParamError-BZPD1J5U.esm.js.map +0 -1
  172. package/dist/InvalidParamError-CH8qePiW.cjs.js.map +0 -1
  173. package/dist/getNetworkProviderFromNetworkId-gEnLk01L.cjs.js.map +0 -1
  174. package/dist/getNetworkProviderFromNetworkId-mlU2KYAn.esm.js.map +0 -1
  175. package/dist/getSignedSessionId-B2kd9qrw.esm.js.map +0 -1
  176. package/dist/getSignedSessionId-BYF0o0nI.cjs.js.map +0 -1
  177. package/dist/isMfaRequiredForAction-CBENhE_c.esm.js.map +0 -1
  178. package/dist/isMfaRequiredForAction-KnGLJETO.cjs.js.map +0 -1
  179. package/dist/modules/deviceRegistration/getDeviceSigner/getOrCreateUserDeviceSigningKeys/getOrCreateUserDeviceSigningKeys.d.ts.map +0 -1
@@ -1,12 +1,5 @@
1
- import { O as getCore, l as createApiClient, w as getDefaultClient, y as assertDefined } from "./InvalidParamError-BZPD1J5U.esm.js";
1
+ import { L as getCore, N as getDefaultClient, O as assertDefined, u as createApiClient } from "./InvalidParamError-Dyk0GfyN.esm.js";
2
2
 
3
- //#region src/utils/bufferToHex/bufferToHex.ts
4
- /**
5
- * Converts an ArrayBuffer or Uint8Array to a hex-encoded string
6
- */
7
- const bufferToHex = (buffer) => [...buffer instanceof Uint8Array ? buffer : new Uint8Array(buffer)].map((x) => x.toString(16).padStart(2, "0")).join("");
8
-
9
- //#endregion
10
3
  //#region src/modules/mfa/consumeMfaToken/consumeMfaToken.ts
11
4
  /**
12
5
  * Consumes and clears the current MFA token from the client state.
@@ -65,5 +58,5 @@ const isMfaRequiredForAction = async ({ mfaAction }, client = getDefaultClient()
65
58
  };
66
59
 
67
60
  //#endregion
68
- export { bufferToHex as i, getMfaMethods as n, consumeMfaToken as r, isMfaRequiredForAction as t };
69
- //# sourceMappingURL=isMfaRequiredForAction-CBENhE_c.esm.js.map
61
+ export { getMfaMethods as n, consumeMfaToken as r, isMfaRequiredForAction as t };
62
+ //# sourceMappingURL=isMfaRequiredForAction-D1sFhYH1.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isMfaRequiredForAction-D1sFhYH1.esm.js","names":[],"sources":["../src/modules/mfa/consumeMfaToken/consumeMfaToken.ts","../src/modules/mfa/getMfaMethods/getMfaMethods.ts","../src/modules/mfa/isMfaRequiredForAction/isMfaRequiredForAction.ts"],"sourcesContent":["import { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { assertDefined } from '../../../utils/assertDefined';\n\n/**\n * Consumes and clears the current MFA token from the client state.\n *\n * This function retrieves the MFA token obtained from a successful MFA authentication,\n * and removes it from the client, to prevent it from being used again.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns The MFA token that was consumed.\n * @throws Error if no MFA token is found.\n */\nexport const consumeMfaToken = (client = getDefaultClient()) => {\n const core = getCore(client);\n\n const mfaToken = core.state.get().mfaToken;\n\n assertDefined(mfaToken, 'No MFA token found');\n\n core.state.set({\n mfaToken: null,\n });\n\n return mfaToken;\n};\n","import { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { createApiClient } from '../../apiClient';\n\n/**\n * Retrieves the available MFA methods for the current user.\n *\n * This function fetches information about which multi-factor authentication\n * methods are available and configured for the user's account.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to the user's MFA methods configuration.\n */\nexport const getMfaMethods = async (client = getDefaultClient()) => {\n const core = getCore(client);\n const apiClient = createApiClient({}, client);\n\n const userMfaMethods = await apiClient.getUserMfaMethods({\n environmentId: core.environmentId,\n verifiedOnly: true,\n });\n\n return userMfaMethods;\n};\n","import type { MFAAction } from '@dynamic-labs/sdk-api-core';\n\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { getMfaMethods } from '../getMfaMethods';\n\ntype IsMfaRequiredForActionParams = {\n mfaAction: MFAAction;\n};\n\n/**\n * Checks if MFA is required for a specific action.\n *\n * This function determines whether multi-factor authentication is required\n * for the specified action based on project settings and user configuration.\n *\n * @param params.mfaAction - The action to check MFA requirements for.\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to true if MFA is required for the action, false otherwise.\n */\nexport const isMfaRequiredForAction = async (\n { mfaAction }: IsMfaRequiredForActionParams,\n client = getDefaultClient()\n) => {\n const projectSettings = client.projectSettings;\n\n const isRequiredForAction = projectSettings?.security?.mfa?.actions?.some(\n (action) => action.action === mfaAction && action.required\n );\n\n // if mfa is not required for the action, return false\n // no matter if general mfa is set to required or not\n if (!isRequiredForAction) {\n return false;\n }\n\n const isMfaMethodRequired = projectSettings?.security?.mfa?.required;\n\n // if mfa is required for the action and also set as required in general, return true\n if (isMfaMethodRequired) {\n return true;\n }\n\n const mfaMethods = await getMfaMethods(client);\n // if general mfa is optional, but user has registered methods,\n // then it should be required for the action\n return mfaMethods.userHasVerifiedMfaMethods;\n};\n"],"mappings":";;;;;;;;;;;;;AAcA,MAAa,mBAAmB,SAAS,kBAAkB,KAAK;CAC9D,MAAM,OAAO,QAAQ,OAAO;CAE5B,MAAM,WAAW,KAAK,MAAM,KAAK,CAAC;AAElC,eAAc,UAAU,qBAAqB;AAE7C,MAAK,MAAM,IAAI,EACb,UAAU,MACX,CAAC;AAEF,QAAO;;;;;;;;;;;;;;ACZT,MAAa,gBAAgB,OAAO,SAAS,kBAAkB,KAAK;CAClE,MAAM,OAAO,QAAQ,OAAO;AAQ5B,QALuB,MAFL,gBAAgB,EAAE,EAAE,OAAO,CAEN,kBAAkB;EACvD,eAAe,KAAK;EACpB,cAAc;EACf,CAAC;;;;;;;;;;;;;;;ACDJ,MAAa,yBAAyB,OACpC,EAAE,aACF,SAAS,kBAAkB,KACxB;CACH,MAAM,kBAAkB,OAAO;AAQ/B,KAAI,CANwB,iBAAiB,UAAU,KAAK,SAAS,MAClE,WAAW,OAAO,WAAW,aAAa,OAAO,SACnD,CAKC,QAAO;AAMT,KAH4B,iBAAiB,UAAU,KAAK,SAI1D,QAAO;AAMT,SAHmB,MAAM,cAAc,OAAO,EAG5B"}
@@ -1,12 +1,5 @@
1
- const require_InvalidParamError = require('./InvalidParamError-CH8qePiW.cjs.js');
1
+ const require_InvalidParamError = require('./InvalidParamError-DzSZbHE5.cjs.js');
2
2
 
3
- //#region src/utils/bufferToHex/bufferToHex.ts
4
- /**
5
- * Converts an ArrayBuffer or Uint8Array to a hex-encoded string
6
- */
7
- const bufferToHex = (buffer) => [...buffer instanceof Uint8Array ? buffer : new Uint8Array(buffer)].map((x) => x.toString(16).padStart(2, "0")).join("");
8
-
9
- //#endregion
10
3
  //#region src/modules/mfa/consumeMfaToken/consumeMfaToken.ts
11
4
  /**
12
5
  * Consumes and clears the current MFA token from the client state.
@@ -65,12 +58,6 @@ const isMfaRequiredForAction = async ({ mfaAction }, client = require_InvalidPar
65
58
  };
66
59
 
67
60
  //#endregion
68
- Object.defineProperty(exports, 'bufferToHex', {
69
- enumerable: true,
70
- get: function () {
71
- return bufferToHex;
72
- }
73
- });
74
61
  Object.defineProperty(exports, 'consumeMfaToken', {
75
62
  enumerable: true,
76
63
  get: function () {
@@ -89,4 +76,4 @@ Object.defineProperty(exports, 'isMfaRequiredForAction', {
89
76
  return isMfaRequiredForAction;
90
77
  }
91
78
  });
92
- //# sourceMappingURL=isMfaRequiredForAction-KnGLJETO.cjs.js.map
79
+ //# sourceMappingURL=isMfaRequiredForAction-DaJSsq8Z.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isMfaRequiredForAction-DaJSsq8Z.cjs.js","names":["getDefaultClient","getCore","getDefaultClient","getCore","createApiClient","getDefaultClient"],"sources":["../src/modules/mfa/consumeMfaToken/consumeMfaToken.ts","../src/modules/mfa/getMfaMethods/getMfaMethods.ts","../src/modules/mfa/isMfaRequiredForAction/isMfaRequiredForAction.ts"],"sourcesContent":["import { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { assertDefined } from '../../../utils/assertDefined';\n\n/**\n * Consumes and clears the current MFA token from the client state.\n *\n * This function retrieves the MFA token obtained from a successful MFA authentication,\n * and removes it from the client, to prevent it from being used again.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns The MFA token that was consumed.\n * @throws Error if no MFA token is found.\n */\nexport const consumeMfaToken = (client = getDefaultClient()) => {\n const core = getCore(client);\n\n const mfaToken = core.state.get().mfaToken;\n\n assertDefined(mfaToken, 'No MFA token found');\n\n core.state.set({\n mfaToken: null,\n });\n\n return mfaToken;\n};\n","import { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { createApiClient } from '../../apiClient';\n\n/**\n * Retrieves the available MFA methods for the current user.\n *\n * This function fetches information about which multi-factor authentication\n * methods are available and configured for the user's account.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to the user's MFA methods configuration.\n */\nexport const getMfaMethods = async (client = getDefaultClient()) => {\n const core = getCore(client);\n const apiClient = createApiClient({}, client);\n\n const userMfaMethods = await apiClient.getUserMfaMethods({\n environmentId: core.environmentId,\n verifiedOnly: true,\n });\n\n return userMfaMethods;\n};\n","import type { MFAAction } from '@dynamic-labs/sdk-api-core';\n\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { getMfaMethods } from '../getMfaMethods';\n\ntype IsMfaRequiredForActionParams = {\n mfaAction: MFAAction;\n};\n\n/**\n * Checks if MFA is required for a specific action.\n *\n * This function determines whether multi-factor authentication is required\n * for the specified action based on project settings and user configuration.\n *\n * @param params.mfaAction - The action to check MFA requirements for.\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to true if MFA is required for the action, false otherwise.\n */\nexport const isMfaRequiredForAction = async (\n { mfaAction }: IsMfaRequiredForActionParams,\n client = getDefaultClient()\n) => {\n const projectSettings = client.projectSettings;\n\n const isRequiredForAction = projectSettings?.security?.mfa?.actions?.some(\n (action) => action.action === mfaAction && action.required\n );\n\n // if mfa is not required for the action, return false\n // no matter if general mfa is set to required or not\n if (!isRequiredForAction) {\n return false;\n }\n\n const isMfaMethodRequired = projectSettings?.security?.mfa?.required;\n\n // if mfa is required for the action and also set as required in general, return true\n if (isMfaMethodRequired) {\n return true;\n }\n\n const mfaMethods = await getMfaMethods(client);\n // if general mfa is optional, but user has registered methods,\n // then it should be required for the action\n return mfaMethods.userHasVerifiedMfaMethods;\n};\n"],"mappings":";;;;;;;;;;;;;AAcA,MAAa,mBAAmB,SAASA,4CAAkB,KAAK;CAC9D,MAAM,OAAOC,kCAAQ,OAAO;CAE5B,MAAM,WAAW,KAAK,MAAM,KAAK,CAAC;AAElC,yCAAc,UAAU,qBAAqB;AAE7C,MAAK,MAAM,IAAI,EACb,UAAU,MACX,CAAC;AAEF,QAAO;;;;;;;;;;;;;;ACZT,MAAa,gBAAgB,OAAO,SAASC,4CAAkB,KAAK;CAClE,MAAM,OAAOC,kCAAQ,OAAO;AAQ5B,QALuB,MAFLC,0CAAgB,EAAE,EAAE,OAAO,CAEN,kBAAkB;EACvD,eAAe,KAAK;EACpB,cAAc;EACf,CAAC;;;;;;;;;;;;;;;ACDJ,MAAa,yBAAyB,OACpC,EAAE,aACF,SAASC,4CAAkB,KACxB;CACH,MAAM,kBAAkB,OAAO;AAQ/B,KAAI,CANwB,iBAAiB,UAAU,KAAK,SAAS,MAClE,WAAW,OAAO,WAAW,aAAa,OAAO,SACnD,CAKC,QAAO;AAMT,KAH4B,iBAAiB,UAAU,KAAK,SAI1D,QAAO;AAMT,SAHmB,MAAM,cAAc,OAAO,EAG5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"createApiClient.d.ts","sourceRoot":"","sources":["../../../src/modules/apiClient/createApiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAInE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAIxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AA2BhE;;;;GAIG;AACH,eAAO,MAAM,eAAe,YACjB,sBAAsB,sBACvB,aAAa,WAmDtB,CAAC"}
1
+ {"version":3,"file":"createApiClient.d.ts","sourceRoot":"","sources":["../../../src/modules/apiClient/createApiClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAInE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAIxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AA6BhE;;;;GAIG;AACH,eAAO,MAAM,eAAe,YACjB,sBAAsB,sBACvB,aAAa,WAqDtB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Middleware } from '@dynamic-labs/sdk-api-core';
2
+ import type { DynamicClient } from '../../../../client/types';
3
+ export declare const createDeviceSignatureHeadersMiddleware: (client: DynamicClient) => Middleware;
4
+ //# sourceMappingURL=createDeviceSignatureHeadersMiddleware.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createDeviceSignatureHeadersMiddleware.d.ts","sourceRoot":"","sources":["../../../../../src/modules/apiClient/utils/deviceSignatureHeadersMiddleware/createDeviceSignatureHeadersMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAG7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAI9D,eAAO,MAAM,sCAAsC,WACzC,aAAa,KACpB,UA6BF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createDeviceSignatureHeadersMiddleware } from './createDeviceSignatureHeadersMiddleware';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/apiClient/utils/deviceSignatureHeadersMiddleware/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Middleware } from '@dynamic-labs/sdk-api-core';
2
+ export declare const createUnauthorizedMiddleware: () => Middleware;
3
+ //# sourceMappingURL=createUnauthorizedMiddleware.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createUnauthorizedMiddleware.d.ts","sourceRoot":"","sources":["../../../../../src/modules/apiClient/utils/unauthorizedMiddleware/createUnauthorizedMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAmB,MAAM,4BAA4B,CAAC;AAI9E,eAAO,MAAM,4BAA4B,QAAO,UAyB9C,CAAC"}
@@ -1,10 +1,12 @@
1
- import type { CreateMfaToken } from '@dynamic-labs/sdk-api-core';
1
+ import type { CreateMfaToken, TokenScope } from '@dynamic-labs/sdk-api-core';
2
2
  import type { AuthenticationResponseJSON } from '@simplewebauthn/browser';
3
3
  import type { DynamicClient } from '../../../../client/types';
4
4
  type ServerAuthenticatePasskeyParams = {
5
5
  authentication: AuthenticationResponseJSON;
6
+ /** @deprecated Use `requestedScopes` instead. */
6
7
  createMfaToken?: CreateMfaToken;
8
+ requestedScopes?: TokenScope[];
7
9
  };
8
- export declare const serverAuthenticatePasskey: ({ authentication, createMfaToken }: ServerAuthenticatePasskeyParams, client: DynamicClient) => Promise<import("@dynamic-labs/sdk-api-core").VerifyResponse>;
10
+ export declare const serverAuthenticatePasskey: ({ authentication, createMfaToken, requestedScopes }: ServerAuthenticatePasskeyParams, client: DynamicClient) => Promise<import("@dynamic-labs/sdk-api-core").VerifyResponse>;
9
11
  export {};
10
12
  //# sourceMappingURL=serverAuthenticatePasskey.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverAuthenticatePasskey.d.ts","sourceRoot":"","sources":["../../../../../src/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAG1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,KAAK,+BAA+B,GAAG;IACrC,cAAc,EAAE,0BAA0B,CAAC;IAC3C,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,yBAAyB,uCACA,+BAA+B,UAC3D,aAAa,iEAkBtB,CAAC"}
1
+ {"version":3,"file":"serverAuthenticatePasskey.d.ts","sourceRoot":"","sources":["../../../../../src/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAEd,UAAU,EACX,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAG1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,KAAK,+BAA+B,GAAG;IACrC,cAAc,EAAE,0BAA0B,CAAC;IAC3C,iDAAiD;IACjD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,yBAAyB,wDACiB,+BAA+B,UAC5E,aAAa,iEAmBtB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { CheckoutTransaction } from '../checkout.types';
2
+ export type AttachCheckoutTransactionSourceParams = {
3
+ fromAddress: string;
4
+ fromChainId: string;
5
+ transactionId: string;
6
+ };
7
+ /**
8
+ * Attaches a wallet source to a checkout transaction
9
+ *
10
+ * @param params AttachCheckoutTransactionSourceParams - The source details to attach.
11
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
12
+ * @returns The updated checkout transaction
13
+ */
14
+ export declare const attachCheckoutTransactionSource: ({ fromAddress, fromChainId, transactionId, }: AttachCheckoutTransactionSourceParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
15
+ //# sourceMappingURL=attachCheckoutTransactionSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachCheckoutTransactionSource.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,MAAM,MAAM,qCAAqC,GAAG;IAClD,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,iDAKvC,qCAAqC,wDAEvC,OAAO,CAAC,mBAAmB,CAe7B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { attachCheckoutTransactionSource } from './attachCheckoutTransactionSource';
2
+ export type { AttachCheckoutTransactionSourceParams } from './attachCheckoutTransactionSource';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/attachCheckoutTransactionSource/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,YAAY,EAAE,qCAAqC,EAAE,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { CheckoutTransaction } from '@dynamic-labs/sdk-api-core';
2
+ import type { DynamicClient } from '../../../client/types';
3
+ export type BroadcastCheckoutTransactionParams = {
4
+ transactionId: string;
5
+ txHash: string;
6
+ };
7
+ /**
8
+ * Records the on-chain broadcast of a checkout transaction
9
+ *
10
+ * @param params BroadcastCheckoutTransactionParams - The transaction ID and tx hash.
11
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
12
+ * @returns The updated checkout transaction
13
+ */
14
+ export declare const broadcastCheckoutTransaction: ({ transactionId, txHash }: BroadcastCheckoutTransactionParams, client?: DynamicClient) => Promise<CheckoutTransaction>;
15
+ //# sourceMappingURL=broadcastCheckoutTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"broadcastCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,MAAM,MAAM,kCAAkC,GAAG;IAC/C,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,8BACZ,kCAAkC,WACrD,aAAa,KACpB,OAAO,CAAC,mBAAmB,CAU7B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { broadcastCheckoutTransaction } from './broadcastCheckoutTransaction';
2
+ export type { BroadcastCheckoutTransactionParams } from './broadcastCheckoutTransaction';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/broadcastCheckoutTransaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,YAAY,EAAE,kCAAkC,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { CheckoutTransaction } from '../checkout.types';
2
+ export type CancelCheckoutTransactionParams = {
3
+ transactionId: string;
4
+ };
5
+ /**
6
+ * Cancels a checkout transaction before it has been broadcasted
7
+ *
8
+ * @param params CancelCheckoutTransactionParams - The transaction to cancel.
9
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
10
+ * @returns The cancelled checkout transaction
11
+ */
12
+ export declare const cancelCheckoutTransaction: ({ transactionId }: CancelCheckoutTransactionParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
13
+ //# sourceMappingURL=cancelCheckoutTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancelCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAI7D,MAAM,MAAM,+BAA+B,GAAG;IAC5C,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,sBACjB,+BAA+B,wDAEjD,OAAO,CAAC,mBAAmB,CAgB7B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { cancelCheckoutTransaction } from './cancelCheckoutTransaction';
2
+ export type { CancelCheckoutTransactionParams } from './cancelCheckoutTransaction';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/cancelCheckoutTransaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,YAAY,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { CheckoutExecutionStateEnum, CheckoutRiskStateEnum, CheckoutSettlementStateEnum, CheckoutSourceTypeEnum } from '@dynamic-labs/sdk-api-core';
2
+ export type { CheckoutFeeBreakdown, CheckoutFailure, CheckoutQuoteSnapshot, CheckoutSettlementData, CheckoutTransaction, CheckoutTransactionCreateResponse, } from '@dynamic-labs/sdk-api-core';
3
+ export type CheckoutExecutionState = `${CheckoutExecutionStateEnum}`;
4
+ export type CheckoutSettlementState = `${CheckoutSettlementStateEnum}`;
5
+ export type CheckoutRiskState = `${CheckoutRiskStateEnum}`;
6
+ export type CheckoutSourceType = `${CheckoutSourceTypeEnum}`;
7
+ //# sourceMappingURL=checkout.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkout.types.d.ts","sourceRoot":"","sources":["../../../src/modules/checkout/checkout.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAGpC,YAAY,EACV,oBAAoB,EACpB,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,iCAAiC,GAClC,MAAM,4BAA4B,CAAC;AAGpC,MAAM,MAAM,sBAAsB,GAAG,GAAG,0BAA0B,EAAE,CAAC;AACrE,MAAM,MAAM,uBAAuB,GAAG,GAAG,2BAA2B,EAAE,CAAC;AACvE,MAAM,MAAM,iBAAiB,GAAG,GAAG,qBAAqB,EAAE,CAAC;AAC3D,MAAM,MAAM,kBAAkB,GAAG,GAAG,sBAAsB,EAAE,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { DynamicClient } from '../../../client/types';
2
+ import type { CheckoutTransactionCreateResponse } from '../checkout.types';
3
+ export type CreateCheckoutTransactionParams = {
4
+ amount: string;
5
+ checkoutId: string;
6
+ currency: string;
7
+ expiresIn?: number;
8
+ externalId?: string;
9
+ };
10
+ /**
11
+ * Creates a new checkout transaction and stores the session token for subsequent calls
12
+ *
13
+ * @param params CreateCheckoutTransactionParams - The parameters for the checkout transaction.
14
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
15
+ * @returns The created transaction with session token
16
+ */
17
+ export declare const createCheckoutTransaction: (params: CreateCheckoutTransactionParams, client?: DynamicClient) => Promise<CheckoutTransactionCreateResponse>;
18
+ //# sourceMappingURL=createCheckoutTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/createCheckoutTransaction/createCheckoutTransaction.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,mBAAmB,CAAC;AAG3E,MAAM,MAAM,+BAA+B,GAAG;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,WAC5B,+BAA+B,WAC/B,aAAa,KACpB,OAAO,CAAC,iCAAiC,CAqB3C,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { createCheckoutTransaction } from './createCheckoutTransaction';
2
+ export type { CreateCheckoutTransactionParams } from './createCheckoutTransaction';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/createCheckoutTransaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,YAAY,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { DynamicClient } from '../../../client/types';
2
+ import type { CheckoutTransaction } from '../checkout.types';
3
+ export type GetCheckoutTransactionParams = {
4
+ transactionId: string;
5
+ };
6
+ /**
7
+ * Fetches the current state of a checkout transaction
8
+ *
9
+ * @param params GetCheckoutTransactionParams - The parameters for fetching the transaction.
10
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
11
+ * @returns The checkout transaction
12
+ */
13
+ export declare const getCheckoutTransaction: ({ transactionId }: GetCheckoutTransactionParams, client?: DynamicClient) => Promise<CheckoutTransaction>;
14
+ //# sourceMappingURL=getCheckoutTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/getCheckoutTransaction/getCheckoutTransaction.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,MAAM,MAAM,4BAA4B,GAAG;IACzC,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,sBACd,4BAA4B,WACvC,aAAa,KACpB,OAAO,CAAC,mBAAmB,CAQ7B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { getCheckoutTransaction } from './getCheckoutTransaction';
2
+ export type { GetCheckoutTransactionParams } from './getCheckoutTransaction';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/getCheckoutTransaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { CheckoutTransaction } from '../checkout.types';
2
+ export type GetCheckoutTransactionQuoteParams = {
3
+ fromTokenAddress: string;
4
+ slippage?: number;
5
+ toTokenAddress: string;
6
+ transactionId: string;
7
+ };
8
+ /**
9
+ * Fetches a quote for a checkout transaction
10
+ *
11
+ * @param params GetCheckoutTransactionQuoteParams - The quote parameters.
12
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
13
+ * @returns The updated checkout transaction with quote data
14
+ */
15
+ export declare const getCheckoutTransactionQuote: ({ fromTokenAddress, slippage, toTokenAddress, transactionId, }: GetCheckoutTransactionQuoteParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
16
+ //# sourceMappingURL=getCheckoutTransactionQuote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCheckoutTransactionQuote.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,MAAM,MAAM,iCAAiC,GAAG;IAC9C,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,mEAMnC,iCAAiC,wDAEnC,OAAO,CAAC,mBAAmB,CAc7B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { getCheckoutTransactionQuote } from './getCheckoutTransactionQuote';
2
+ export type { GetCheckoutTransactionQuoteParams } from './getCheckoutTransactionQuote';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/getCheckoutTransactionQuote/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,YAAY,EAAE,iCAAiC,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { prepareCheckoutTransaction } from './prepareCheckoutTransaction';
2
+ export type { PrepareCheckoutTransactionParams } from './prepareCheckoutTransaction';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/prepareCheckoutTransaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,YAAY,EAAE,gCAAgC,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { CheckoutTransaction } from '../checkout.types';
2
+ export type PrepareCheckoutTransactionParams = {
3
+ transactionId: string;
4
+ };
5
+ /**
6
+ * Prepares a checkout transaction for signing
7
+ * This should be called immediately before triggering the transaction signing.
8
+ * It will confirm the quote is still valid, the risk state is cleared, and the transaction is ready to be signed.
9
+ *
10
+ * @param params PrepareCheckoutTransactionParams - The transaction to prepare.
11
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
12
+ * @returns The updated checkout transaction
13
+ */
14
+ export declare const prepareCheckoutTransaction: ({ transactionId }: PrepareCheckoutTransactionParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
15
+ //# sourceMappingURL=prepareCheckoutTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepareCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,MAAM,MAAM,gCAAgC,GAAG;IAC7C,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,sBAClB,gCAAgC,wDAElD,OAAO,CAAC,mBAAmB,CAS7B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { submitCheckoutTransaction } from './submitCheckoutTransaction';
2
+ export type { SubmitCheckoutTransactionParams } from './submitCheckoutTransaction';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/submitCheckoutTransaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,YAAY,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { WalletAccount } from '../../wallets/walletAccount';
2
+ import type { CheckoutTransaction } from '../checkout.types';
3
+ export type SubmitCheckoutTransactionParams = {
4
+ onStepChange?: (step: 'approval' | 'transaction') => void;
5
+ transactionId: string;
6
+ walletAccount: WalletAccount;
7
+ };
8
+ /**
9
+ * Prepares, signs, and broadcasts a checkout transaction in one call.
10
+ *
11
+ * Orchestrates the full submission flow:
12
+ * 1. Calls prepareCheckoutTransaction to advance to signing state and lock the quote
13
+ * 2. Ensures the wallet is on the correct network for the transaction
14
+ * 3. Delegates on-chain signing to the wallet provider's executeCheckoutTransaction method
15
+ * 4. Calls broadcastCheckoutTransaction with the resulting txHash
16
+ *
17
+ * @param params SubmitCheckoutTransactionParams - The transaction ID, wallet account, and optional step callback.
18
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
19
+ * @returns The broadcasted checkout transaction
20
+ */
21
+ export declare const submitCheckoutTransaction: ({ onStepChange, transactionId, walletAccount, }: SubmitCheckoutTransactionParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
22
+ //# sourceMappingURL=submitCheckoutTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submitCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,MAAM,MAAM,+BAA+B,GAAG;IAC5C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,GAAG,aAAa,KAAK,IAAI,CAAC;IAC1D,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,yBAAyB,oDAKjC,+BAA+B,wDAEjC,OAAO,CAAC,mBAAmB,CAyC7B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { SDKApi } from '@dynamic-labs/sdk-api-core';
2
+ import type { DynamicClient } from '../../../../client/types';
3
+ type CreateCheckoutApiClientParams = {
4
+ transactionId: string;
5
+ };
6
+ type CheckoutApiClientResult = {
7
+ apiClient: SDKApi;
8
+ environmentId: string;
9
+ sessionToken: string;
10
+ };
11
+ export declare const createCheckoutApiClient: ({ transactionId }: CreateCheckoutApiClientParams, client: DynamicClient) => Promise<CheckoutApiClientResult>;
12
+ export {};
13
+ //# sourceMappingURL=createCheckoutApiClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCheckoutApiClient.d.ts","sourceRoot":"","sources":["../../../../../src/modules/checkout/utils/createCheckoutApiClient/createCheckoutApiClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAGzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAK9D,KAAK,6BAA6B,GAAG;IACnC,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,uBAAuB,sBACf,6BAA6B,UACxC,aAAa,KACpB,OAAO,CAAC,uBAAuB,CAiBjC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createCheckoutApiClient } from './createCheckoutApiClient';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/checkout/utils/createCheckoutApiClient/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const createCheckoutSessionTokenStorageKey: (transactionId: string) => import("../../../../services/storage").StorageKeySchema<string>;
2
+ //# sourceMappingURL=createCheckoutSessionTokenStorageKey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCheckoutSessionTokenStorageKey.d.ts","sourceRoot":"","sources":["../../../../../src/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oCAAoC,kBAAmB,MAAM,oEAKzE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createCheckoutSessionTokenStorageKey } from './createCheckoutSessionTokenStorageKey';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/checkout/utils/createCheckoutSessionTokenStorageKey/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getDeviceSigner.d.ts","sourceRoot":"","sources":["../../../../src/modules/deviceRegistration/getDeviceSigner/getDeviceSigner.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAInE,eAAO,MAAM,eAAe,WAClB,aAAa,KACpB,OAAO,CAAC,YAAY,CAwBtB,CAAC"}
1
+ {"version":3,"file":"getDeviceSigner.d.ts","sourceRoot":"","sources":["../../../../src/modules/deviceRegistration/getDeviceSigner/getDeviceSigner.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAInE,eAAO,MAAM,eAAe,WAClB,aAAa,KACpB,OAAO,CAAC,YAAY,CAyBtB,CAAC"}
@@ -5,5 +5,5 @@ import { deviceSigningKeysSchema } from '../deviceSigningKeys.schema';
5
5
  * On web we want to auto create the device signing keys for each user.
6
6
  * And the user device signing keys should never be deleted.
7
7
  */
8
- export declare const getOrCreateUserDeviceSigningKeys: (client: DynamicClient) => Promise<z.infer<typeof deviceSigningKeysSchema>>;
9
- //# sourceMappingURL=getOrCreateUserDeviceSigningKeys.d.ts.map
8
+ export declare const getOrCreateEnvironmentDeviceSigningKeys: (client: DynamicClient) => Promise<z.infer<typeof deviceSigningKeysSchema>>;
9
+ //# sourceMappingURL=getOrCreateEnvironmentDeviceSigningKeys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOrCreateEnvironmentDeviceSigningKeys.d.ts","sourceRoot":"","sources":["../../../../../src/modules/deviceRegistration/getDeviceSigner/getOrCreateEnvironmentDeviceSigningKeys/getOrCreateEnvironmentDeviceSigningKeys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,UAAU,CAAC;AAGnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAI9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,uCAAuC,WAC1C,aAAa,KACpB,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAmCjD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { getOrCreateEnvironmentDeviceSigningKeys } from './getOrCreateEnvironmentDeviceSigningKeys';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/deviceRegistration/getDeviceSigner/getOrCreateEnvironmentDeviceSigningKeys/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,2CAA2C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { DynamicClient } from '../../../client/types';
2
+ export declare const getHeadersForNonceSignedByDeviceSigners: (client: DynamicClient) => Promise<Record<string, string>>;
3
+ //# sourceMappingURL=getHeadersForNonceSignedByDeviceSigners.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getHeadersForNonceSignedByDeviceSigners.d.ts","sourceRoot":"","sources":["../../../../src/modules/deviceRegistration/getHeadersForNonceSignedByDeviceSigners/getHeadersForNonceSignedByDeviceSigners.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAM3D,eAAO,MAAM,uCAAuC,WAC1C,aAAa,KACpB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA0BhC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { getHeadersForNonceSignedByDeviceSigners } from './getHeadersForNonceSignedByDeviceSigners';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/deviceRegistration/getHeadersForNonceSignedByDeviceSigners/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,2CAA2C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { DeviceRegistrationResponse } from '@dynamic-labs/sdk-api-core';
2
+ export declare const getRegisteredDevices: (client?: import("../../../exports").DynamicClient) => Promise<DeviceRegistrationResponse[]>;
3
+ //# sourceMappingURL=getRegisteredDevices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRegisteredDevices.d.ts","sourceRoot":"","sources":["../../../../src/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAO7E,eAAO,MAAM,oBAAoB,yDAE9B,OAAO,CAAC,0BAA0B,EAAE,CAqBtC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { getRegisteredDevices } from './getRegisteredDevices';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/deviceRegistration/getRegisteredDevices/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { revokeAllRegisteredDevices } from './revokeAllRegisteredDevices';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/deviceRegistration/revokeAllRegisteredDevices/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const revokeAllRegisteredDevices: (client?: import("../../../exports").DynamicClient) => Promise<void>;
2
+ //# sourceMappingURL=revokeAllRegisteredDevices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"revokeAllRegisteredDevices.d.ts","sourceRoot":"","sources":["../../../../src/modules/deviceRegistration/revokeAllRegisteredDevices/revokeAllRegisteredDevices.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,0BAA0B,yDAEpC,OAAO,CAAC,IAAI,CASd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { revokeRegisteredDevice } from './revokeRegisteredDevice';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/deviceRegistration/revokeRegisteredDevice/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,6 @@
1
+ type RevokeRegisteredDeviceParams = {
2
+ deviceRegistrationId: string;
3
+ };
4
+ export declare const revokeRegisteredDevice: ({ deviceRegistrationId }: RevokeRegisteredDeviceParams, client?: import("../../../exports").DynamicClient) => Promise<void>;
5
+ export {};
6
+ //# sourceMappingURL=revokeRegisteredDevice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"revokeRegisteredDevice.d.ts","sourceRoot":"","sources":["../../../../src/modules/deviceRegistration/revokeRegisteredDevice/revokeRegisteredDevice.ts"],"names":[],"mappings":"AAMA,KAAK,4BAA4B,GAAG;IAClC,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,sBAAsB,6BACP,4BAA4B,wDAErD,OAAO,CAAC,IAAI,CAYd,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"initializeClient.d.ts","sourceRoot":"","sources":["../../../src/modules/initializeClient/initializeClient.ts"],"names":[],"mappings":"AAoBA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,mEA0G5B,CAAC"}
1
+ {"version":3,"file":"initializeClient.d.ts","sourceRoot":"","sources":["../../../src/modules/initializeClient/initializeClient.ts"],"names":[],"mappings":"AAqBA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,mEAkH5B,CAAC"}
@@ -1,7 +1,9 @@
1
- import type { CreateMfaToken } from '@dynamic-labs/sdk-api-core';
1
+ import type { CreateMfaToken, TokenScope } from '@dynamic-labs/sdk-api-core';
2
2
  type AuthenticateMfaRecoveryCodeParams = {
3
3
  code: string;
4
+ /** @deprecated Use `requestedScopes` instead. */
4
5
  createMfaTokenOptions?: CreateMfaToken;
6
+ requestedScopes?: TokenScope[];
5
7
  };
6
8
  /**
7
9
  * Authenticates using an MFA recovery code.
@@ -10,9 +12,11 @@ type AuthenticateMfaRecoveryCodeParams = {
10
12
  * one of their backup recovery codes when none of the registered MFA methods are available.
11
13
  *
12
14
  * @param params.code - The recovery code to authenticate with.
15
+ * @param [params.createMfaTokenOptions] - @deprecated Use `requestedScopes` instead. Optional configuration for MFA token creation.
16
+ * @param [params.requestedScopes] - Optional scopes to request an elevated access token instead of an MFA token.
13
17
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
14
- * @returns A promise that resolves to the MFA authentication response with token.
18
+ * @returns A promise that resolves to the MFA authentication response.
15
19
  */
16
- export declare const authenticateMfaRecoveryCode: ({ code, createMfaTokenOptions }: AuthenticateMfaRecoveryCodeParams, client?: import("../../../exports").DynamicClient) => Promise<import("@dynamic-labs/sdk-api-core").VerifyResponse>;
20
+ export declare const authenticateMfaRecoveryCode: ({ code, createMfaTokenOptions, requestedScopes }: AuthenticateMfaRecoveryCodeParams, client?: import("../../../exports").DynamicClient) => Promise<import("@dynamic-labs/sdk-api-core").VerifyResponse>;
17
21
  export {};
18
22
  //# sourceMappingURL=authenticateMfaRecoveryCode.d.ts.map