@dynamic-labs-sdk/client 0.18.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/{InvalidParamError-Bxg4p9zQ.cjs.js → InvalidParamError-6MugNXi3.cjs.js} +4 -4
  2. package/dist/{InvalidParamError-Bxg4p9zQ.cjs.js.map → InvalidParamError-6MugNXi3.cjs.js.map} +1 -1
  3. package/dist/{InvalidParamError-ByAOflE2.esm.js → InvalidParamError-CnPeSjBW.esm.js} +3 -3
  4. package/dist/{InvalidParamError-ByAOflE2.esm.js.map → InvalidParamError-CnPeSjBW.esm.js.map} +1 -1
  5. package/dist/{NotWaasWalletAccountError-DMFf5i7j.esm.js → NotWaasWalletAccountError-B5QkZWrs.esm.js} +3 -3
  6. package/dist/{NotWaasWalletAccountError-DMFf5i7j.esm.js.map → NotWaasWalletAccountError-B5QkZWrs.esm.js.map} +1 -1
  7. package/dist/{NotWaasWalletAccountError-2CU35ult.cjs.js → NotWaasWalletAccountError-C204z_SH.cjs.js} +3 -3
  8. package/dist/{NotWaasWalletAccountError-2CU35ult.cjs.js.map → NotWaasWalletAccountError-C204z_SH.cjs.js.map} +1 -1
  9. package/dist/core.cjs.js +5 -5
  10. package/dist/core.cjs.js.map +1 -1
  11. package/dist/core.esm.js +5 -5
  12. package/dist/core.esm.js.map +1 -1
  13. package/dist/exports/core.d.ts +1 -1
  14. package/dist/exports/core.d.ts.map +1 -1
  15. package/dist/exports/index.d.ts +11 -1
  16. package/dist/exports/index.d.ts.map +1 -1
  17. package/dist/{getNetworkProviderFromNetworkId-BXH2tfrn.cjs.js → getNetworkProviderFromNetworkId-CoAKJyXQ.cjs.js} +23 -14
  18. package/dist/getNetworkProviderFromNetworkId-CoAKJyXQ.cjs.js.map +1 -0
  19. package/dist/{getNetworkProviderFromNetworkId-6QbuR0_i.esm.js → getNetworkProviderFromNetworkId-VEDzpV8Z.esm.js} +23 -14
  20. package/dist/getNetworkProviderFromNetworkId-VEDzpV8Z.esm.js.map +1 -0
  21. package/dist/{getSignedSessionId-KSSnmfwN.cjs.js → getSignedSessionId-BZL8lFjp.cjs.js} +5 -7
  22. package/dist/getSignedSessionId-BZL8lFjp.cjs.js.map +1 -0
  23. package/dist/{getSignedSessionId-yWd9_5u4.esm.js → getSignedSessionId-CgoBQlYG.esm.js} +5 -7
  24. package/dist/{getSignedSessionId-yWd9_5u4.esm.js.map → getSignedSessionId-CgoBQlYG.esm.js.map} +1 -1
  25. package/dist/{getVerifiedCredentialForWalletAccount-DbfbxLr9.esm.js → getVerifiedCredentialForWalletAccount-B58hODrW.esm.js} +2 -2
  26. package/dist/{getVerifiedCredentialForWalletAccount-DbfbxLr9.esm.js.map → getVerifiedCredentialForWalletAccount-B58hODrW.esm.js.map} +1 -1
  27. package/dist/{getVerifiedCredentialForWalletAccount-CJAgL4AJ.cjs.js → getVerifiedCredentialForWalletAccount-Zu778J_y.cjs.js} +3 -3
  28. package/dist/{getVerifiedCredentialForWalletAccount-CJAgL4AJ.cjs.js.map → getVerifiedCredentialForWalletAccount-Zu778J_y.cjs.js.map} +1 -1
  29. package/dist/index.cjs.js +235 -39
  30. package/dist/index.cjs.js.map +1 -1
  31. package/dist/index.esm.js +232 -40
  32. package/dist/index.esm.js.map +1 -1
  33. package/dist/{isMfaRequiredForAction-DnZ2ZWUB.cjs.js → isMfaRequiredForAction-D7amEpqp.cjs.js} +2 -2
  34. package/dist/{isMfaRequiredForAction-DnZ2ZWUB.cjs.js.map → isMfaRequiredForAction-D7amEpqp.cjs.js.map} +1 -1
  35. package/dist/{isMfaRequiredForAction-CG5JbTh1.esm.js → isMfaRequiredForAction-Dkj_caxl.esm.js} +2 -2
  36. package/dist/{isMfaRequiredForAction-CG5JbTh1.esm.js.map → isMfaRequiredForAction-Dkj_caxl.esm.js.map} +1 -1
  37. package/dist/modules/auth/checkStepUpAuth/checkStepUpAuth.d.ts +35 -0
  38. package/dist/modules/auth/checkStepUpAuth/checkStepUpAuth.d.ts.map +1 -0
  39. package/dist/modules/auth/checkStepUpAuth/index.d.ts +2 -0
  40. package/dist/modules/auth/checkStepUpAuth/index.d.ts.map +1 -0
  41. package/dist/modules/auth/events.d.ts +6 -2
  42. package/dist/modules/auth/events.d.ts.map +1 -1
  43. package/dist/modules/auth/handleSessionExpiration/handleSessionExpiration.d.ts +11 -0
  44. package/dist/modules/auth/handleSessionExpiration/handleSessionExpiration.d.ts.map +1 -0
  45. package/dist/modules/auth/handleSessionExpiration/index.d.ts +2 -0
  46. package/dist/modules/auth/handleSessionExpiration/index.d.ts.map +1 -0
  47. package/dist/modules/auth/logout/logout.d.ts +1 -1
  48. package/dist/modules/auth/logout/logout.d.ts.map +1 -1
  49. package/dist/modules/auth/logoutReason.d.ts +11 -0
  50. package/dist/modules/auth/logoutReason.d.ts.map +1 -0
  51. package/dist/modules/auth/performLogout/index.d.ts +2 -0
  52. package/dist/modules/auth/performLogout/index.d.ts.map +1 -0
  53. package/dist/modules/auth/performLogout/performLogout.d.ts +12 -0
  54. package/dist/modules/auth/performLogout/performLogout.d.ts.map +1 -0
  55. package/dist/modules/auth/social/oauth/completeSocialAuthentication/completeSocialAuthentication.d.ts +4 -1
  56. package/dist/modules/auth/social/oauth/completeSocialAuthentication/completeSocialAuthentication.d.ts.map +1 -1
  57. package/dist/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.d.ts +2 -2
  58. package/dist/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.d.ts.map +1 -1
  59. package/dist/modules/sessionKeys/getSignedSessionId/getSignedSessionId.d.ts.map +1 -1
  60. package/dist/modules/swap/constants.d.ts +2 -0
  61. package/dist/modules/swap/constants.d.ts.map +1 -0
  62. package/dist/modules/swap/executeSwapTransaction/executeSwapTransaction.d.ts +32 -0
  63. package/dist/modules/swap/executeSwapTransaction/executeSwapTransaction.d.ts.map +1 -0
  64. package/dist/modules/swap/executeSwapTransaction/index.d.ts +3 -0
  65. package/dist/modules/swap/executeSwapTransaction/index.d.ts.map +1 -0
  66. package/dist/modules/swap/getSwapQuote/getSwapQuote.d.ts +53 -0
  67. package/dist/modules/swap/getSwapQuote/getSwapQuote.d.ts.map +1 -0
  68. package/dist/modules/swap/getSwapQuote/index.d.ts +3 -0
  69. package/dist/modules/swap/getSwapQuote/index.d.ts.map +1 -0
  70. package/dist/modules/swap/getSwapStatus/getSwapStatus.d.ts +23 -0
  71. package/dist/modules/swap/getSwapStatus/getSwapStatus.d.ts.map +1 -0
  72. package/dist/modules/swap/getSwapStatus/index.d.ts +3 -0
  73. package/dist/modules/swap/getSwapStatus/index.d.ts.map +1 -0
  74. package/dist/modules/swap/swap.types.d.ts +14 -0
  75. package/dist/modules/swap/swap.types.d.ts.map +1 -0
  76. package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
  77. package/dist/modules/waas/waas.types.d.ts +4 -1
  78. package/dist/modules/waas/waas.types.d.ts.map +1 -1
  79. package/dist/modules/wallets/disconnectAndTerminateWalletProviders/disconnectAndTerminateWalletProviders.d.ts +5 -2
  80. package/dist/modules/wallets/disconnectAndTerminateWalletProviders/disconnectAndTerminateWalletProviders.d.ts.map +1 -1
  81. package/dist/modules/wallets/walletProvider/index.d.ts +1 -1
  82. package/dist/modules/wallets/walletProvider/index.d.ts.map +1 -1
  83. package/dist/modules/wallets/walletProvider/walletProvider.types.d.ts +17 -8
  84. package/dist/modules/wallets/walletProvider/walletProvider.types.d.ts.map +1 -1
  85. package/dist/services/keychain/createIndexedDBKeychainService/createIndexedDBKeychainService.d.ts.map +1 -1
  86. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  87. package/dist/waas.cjs.js +4 -4
  88. package/dist/waas.esm.js +3 -3
  89. package/dist/waasCore.cjs.js +7 -6
  90. package/dist/waasCore.cjs.js.map +1 -1
  91. package/dist/waasCore.esm.js +6 -5
  92. package/dist/waasCore.esm.js.map +1 -1
  93. package/package.json +3 -3
  94. package/dist/getNetworkProviderFromNetworkId-6QbuR0_i.esm.js.map +0 -1
  95. package/dist/getNetworkProviderFromNetworkId-BXH2tfrn.cjs.js.map +0 -1
  96. package/dist/getSignedSessionId-KSSnmfwN.cjs.js.map +0 -1
@@ -1,4 +1,4 @@
1
- const require_InvalidParamError = require('./InvalidParamError-Bxg4p9zQ.cjs.js');
1
+ const require_InvalidParamError = require('./InvalidParamError-6MugNXi3.cjs.js');
2
2
 
3
3
  //#region src/modules/mfa/consumeMfaToken/consumeMfaToken.ts
4
4
  /**
@@ -79,4 +79,4 @@ Object.defineProperty(exports, 'isMfaRequiredForAction', {
79
79
  return isMfaRequiredForAction;
80
80
  }
81
81
  });
82
- //# sourceMappingURL=isMfaRequiredForAction-DnZ2ZWUB.cjs.js.map
82
+ //# sourceMappingURL=isMfaRequiredForAction-D7amEpqp.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isMfaRequiredForAction-DnZ2ZWUB.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 * @instrumented\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 * @instrumented\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 * @not-instrumented\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":";;;;;;;;;;;;;;AAeA,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
+ {"version":3,"file":"isMfaRequiredForAction-D7amEpqp.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 * @instrumented\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 * @instrumented\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 * @not-instrumented\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":";;;;;;;;;;;;;;AAeA,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,4 +1,4 @@
1
- import { F as getCore, T as assertDefined, j as getDefaultClient, u as createApiClient } from "./InvalidParamError-ByAOflE2.esm.js";
1
+ import { F as getCore, T as assertDefined, j as getDefaultClient, u as createApiClient } from "./InvalidParamError-CnPeSjBW.esm.js";
2
2
 
3
3
  //#region src/modules/mfa/consumeMfaToken/consumeMfaToken.ts
4
4
  /**
@@ -62,4 +62,4 @@ const isMfaRequiredForAction = async ({ mfaAction }, client = getDefaultClient()
62
62
 
63
63
  //#endregion
64
64
  export { getMfaMethods as n, consumeMfaToken as r, isMfaRequiredForAction as t };
65
- //# sourceMappingURL=isMfaRequiredForAction-CG5JbTh1.esm.js.map
65
+ //# sourceMappingURL=isMfaRequiredForAction-Dkj_caxl.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isMfaRequiredForAction-CG5JbTh1.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 * @instrumented\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 * @instrumented\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 * @not-instrumented\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":";;;;;;;;;;;;;;AAeA,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
+ {"version":3,"file":"isMfaRequiredForAction-Dkj_caxl.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 * @instrumented\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 * @instrumented\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 * @not-instrumented\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":";;;;;;;;;;;;;;AAeA,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"}
@@ -0,0 +1,35 @@
1
+ import { type StepUpCheckResponse, type TokenScope } from '@dynamic-labs/sdk-api-core';
2
+ import type { DynamicClient } from '../../../client/types';
3
+ /**
4
+ * Checks whether step-up authentication is required for a given scope
5
+ * and returns the available credentials to satisfy it.
6
+ *
7
+ * First performs a fast local check — if a valid elevated access token already
8
+ * exists for the scope, returns `{ isRequired: false }` immediately without
9
+ * an API call.
10
+ *
11
+ * Otherwise, calls the backend `stepUp/check` endpoint which evaluates
12
+ * feature flags, SDK version, MFA settings, and action-based requirements
13
+ * to determine if step-up is needed. The response includes the available
14
+ * credentials and a recommended default credential.
15
+ *
16
+ * If the request fails for any reason, defaults to `{ isRequired: true }`
17
+ * as a safety measure.
18
+ *
19
+ * @param params.scope - The scope to check (e.g., 'wallet:export').
20
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
21
+ * @returns The step-up check result with `isRequired`, `credentials`, and `defaultCredentialId`.
22
+ *
23
+ * @example
24
+ * ```typescript
25
+ * const result = await checkStepUpAuth({ scope: TokenScope.Walletexport });
26
+ * if (result.isRequired) {
27
+ * // Show step-up auth UI using result.credentials
28
+ * }
29
+ * ```
30
+ * @instrumented
31
+ */
32
+ export declare const checkStepUpAuth: ({ scope }: {
33
+ scope: TokenScope;
34
+ }, client?: DynamicClient) => Promise<StepUpCheckResponse>;
35
+ //# sourceMappingURL=checkStepUpAuth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkStepUpAuth.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/checkStepUpAuth/checkStepUpAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAIvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAS3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,eAAe,cACf;IAAE,KAAK,EAAE,UAAU,CAAA;CAAE,WACxB,aAAa,KACpB,OAAO,CAAC,mBAAmB,CA6B7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { checkStepUpAuth } from './checkStepUpAuth';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/checkStepUpAuth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,10 +1,14 @@
1
+ import type { LogoutReason } from './logoutReason';
2
+ type LogoutEventMetadata = {
3
+ reason: LogoutReason;
4
+ };
1
5
  declare global {
2
6
  interface DynamicEvents {
3
7
  /**
4
8
  * Raised when "logout" is called.
5
9
  */
6
- logout: () => void;
10
+ logout: (metadata?: LogoutEventMetadata) => void;
7
11
  }
8
12
  }
9
- export {};
13
+ export type { LogoutEventMetadata };
10
14
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/modules/auth/events.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,aAAa;QACrB;;WAEG;QACH,MAAM,EAAE,MAAM,IAAI,CAAC;KACpB;CACF;AAED,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/modules/auth/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,KAAK,mBAAmB,GAAG;IACzB,MAAM,EAAE,YAAY,CAAC;CACtB,CAAC;AAEF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,aAAa;QACrB;;WAEG;QACH,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,mBAAmB,KAAK,IAAI,CAAC;KAClD;CACF;AAED,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { DynamicClient } from '../../../client/types';
2
+ /**
3
+ * Logs out due to session expiry with a token-expired reason,
4
+ * allowing downstream providers to decide their own cleanup behavior.
5
+ *
6
+ * @param client - The Dynamic client instance.
7
+ * @returns A promise that resolves when the logout process is complete.
8
+ * @instrumented
9
+ */
10
+ export declare const handleSessionExpiration: (client: DynamicClient) => Promise<void>;
11
+ //# sourceMappingURL=handleSessionExpiration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleSessionExpiration.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/handleSessionExpiration/handleSessionExpiration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,WAAkB,aAAa,kBAElE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { handleSessionExpiration } from './handleSessionExpiration';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/handleSessionExpiration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
5
5
  * @returns A promise that resolves when the logout process is complete.
6
- * @instrumented
6
+ * @instrumented
7
7
  */
8
8
  export declare const logout: (client?: import("../../../exports").DynamicClient) => Promise<void>;
9
9
  //# sourceMappingURL=logout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/logout/logout.ts"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,sEAkDlB,CAAC"}
1
+ {"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/logout/logout.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,sEAElB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Describes why a logout was triggered.
3
+ *
4
+ * Passed through the logout chain so downstream providers (e.g. wallet providers)
5
+ * can decide their own cleanup behavior based on context.
6
+ *
7
+ * - `'user-intent'` — The user explicitly requested logout.
8
+ * - `'token-expired'` — The session token expired automatically.
9
+ */
10
+ export type LogoutReason = 'token-expired' | 'user-intent';
11
+ //# sourceMappingURL=logoutReason.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logoutReason.d.ts","sourceRoot":"","sources":["../../../src/modules/auth/logoutReason.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GAAG,eAAe,GAAG,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { performLogout } from './performLogout';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/performLogout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { DynamicClient } from '../../../client/types';
2
+ import type { LogoutReason } from '../logoutReason';
3
+ /**
4
+ * Shared logout implementation that revokes the session, clears auth state,
5
+ * terminates wallet providers, and emits the logout event with the given reason.
6
+ *
7
+ * @not-instrumented
8
+ */
9
+ export declare const performLogout: ({ reason }: {
10
+ reason: LogoutReason;
11
+ }, client: DynamicClient) => Promise<void>;
12
+ //# sourceMappingURL=performLogout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"performLogout.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/performLogout/performLogout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAU3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,eACZ;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,UAC5B,aAAa,kBAmDtB,CAAC"}
@@ -1,5 +1,7 @@
1
+ import type { TokenScope } from '@dynamic-labs/sdk-api-core';
1
2
  import type { User } from '../../../../user/user.types';
2
3
  type CompleteSocialAuthenticationParams = {
4
+ requestedScopes?: TokenScope[];
3
5
  url: URL;
4
6
  };
5
7
  /**
@@ -9,12 +11,13 @@ type CompleteSocialAuthenticationParams = {
9
11
  * and completes the user authentication with the social provider.
10
12
  *
11
13
  * @param params.url - The callback URL containing OAuth response parameters.
14
+ * @param [params.requestedScopes] - Optional scopes to request an elevated access token when verifying (linking) a social account.
12
15
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
13
16
  * @returns A promise that resolves to the authenticated user or null.
14
17
  * @throws MissingSocialUrlParamError If required OAuth parameters are missing.
15
18
  * @throws InvalidRedirectStorageStateError If the stored state doesn't match.
16
19
  * @instrumented
17
20
  */
18
- export declare const completeSocialAuthentication: ({ url }: CompleteSocialAuthenticationParams, client?: import("../../../../../exports").DynamicClient) => Promise<User | null>;
21
+ export declare const completeSocialAuthentication: ({ url, requestedScopes }: CompleteSocialAuthenticationParams, client?: import("../../../../../exports").DynamicClient) => Promise<User | null>;
19
22
  export {};
20
23
  //# sourceMappingURL=completeSocialAuthentication.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"completeSocialAuthentication.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/completeSocialAuthentication/completeSocialAuthentication.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAIxD,KAAK,kCAAkC,GAAG;IACxC,GAAG,EAAE,GAAG,CAAC;CACV,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,4BAA4B,YAC9B,kCAAkC,8DAE1C,OAAO,CAAC,IAAI,GAAG,IAAI,CA+DrB,CAAC"}
1
+ {"version":3,"file":"completeSocialAuthentication.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/completeSocialAuthentication/completeSocialAuthentication.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAkB,MAAM,4BAA4B,CAAC;AAS7E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAIxD,KAAK,kCAAkC,GAAG;IACxC,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;IAC/B,GAAG,EAAE,GAAG,CAAC;CACV,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,4BAA4B,6BACb,kCAAkC,8DAE3D,OAAO,CAAC,IAAI,GAAG,IAAI,CAgErB,CAAC"}
@@ -11,13 +11,13 @@ export type SubmitCheckoutTransactionParams = {
11
11
  * Orchestrates the full submission flow:
12
12
  * 1. Calls prepareCheckoutTransaction to advance to signing state and lock the quote
13
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
14
+ * 3. Delegates on-chain signing to the wallet provider's executeSwapTransaction method
15
15
  * 4. Calls broadcastCheckoutTransaction with the resulting txHash
16
16
  *
17
17
  * @param params SubmitCheckoutTransactionParams - The transaction ID, wallet account, and optional step callback.
18
18
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
19
19
  * @returns The broadcasted checkout transaction
20
- * @instrumented
20
+ * @instrumented
21
21
  */
22
22
  export declare const submitCheckoutTransaction: ({ onStepChange, transactionId, walletAccount, }: SubmitCheckoutTransactionParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
23
23
  //# sourceMappingURL=submitCheckoutTransaction.d.ts.map
@@ -1 +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;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,yBAAyB,oDAKjC,+BAA+B,wDAEjC,OAAO,CAAC,mBAAmB,CAyC7B,CAAC"}
1
+ {"version":3,"file":"submitCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.ts"],"names":[],"mappings":"AAGA,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;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,yBAAyB,oDAKjC,+BAA+B,wDAEjC,OAAO,CAAC,mBAAmB,CAkB7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getSignedSessionId.d.ts","sourceRoot":"","sources":["../../../../src/modules/sessionKeys/getSignedSessionId/getSignedSessionId.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAM3D,oBAAoB;AACpB,eAAO,MAAM,kBAAkB,WAAkB,aAAa;;EAkC7D,CAAC"}
1
+ {"version":3,"file":"getSignedSessionId.d.ts","sourceRoot":"","sources":["../../../../src/modules/sessionKeys/getSignedSessionId/getSignedSessionId.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAM3D,oBAAoB;AACpB,eAAO,MAAM,kBAAkB,WAAkB,aAAa;;EA6B7D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const SWAP_SUPPORTED_CHAINS: string[];
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/modules/swap/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,UAAuC,CAAC"}
@@ -0,0 +1,32 @@
1
+ import type { WalletAccount } from '../../wallets/walletAccount';
2
+ import type { SwapTransactionSigningPayload } from '../swap.types';
3
+ export type ExecuteSwapTransactionParams = {
4
+ /**
5
+ * The callback to invoke when the transaction execution step changes.
6
+ *
7
+ * 'approval' - The approval step begins. (only happens for ERC-20 tokens when the allowance is insufficient)
8
+ * 'transaction' - The transaction step begins.
9
+ */
10
+ onStepChange?: (step: 'approval' | 'transaction') => void;
11
+ /**
12
+ * The signing payload for the swap transaction.
13
+ * Usually obtained from a `getSwapQuote` call.
14
+ */
15
+ signingPayload: SwapTransactionSigningPayload;
16
+ /**
17
+ * The wallet account to execute the swap transaction on.
18
+ */
19
+ walletAccount: WalletAccount;
20
+ };
21
+ /**
22
+ * Executes a swap transaction
23
+ *
24
+ * @param params ExecuteSwapTransactionParams - The parameters for the swap transaction.
25
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
26
+ * @returns The transaction hash.
27
+ * @instrumented
28
+ */
29
+ export declare const executeSwapTransaction: ({ walletAccount, signingPayload, onStepChange }: ExecuteSwapTransactionParams, client?: import("../../../exports").DynamicClient) => Promise<{
30
+ transactionHash: string;
31
+ }>;
32
+ //# sourceMappingURL=executeSwapTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executeSwapTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/swap/executeSwapTransaction/executeSwapTransaction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAC;AAEnE,MAAM,MAAM,4BAA4B,GAAG;IACzC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,GAAG,aAAa,KAAK,IAAI,CAAC;IAC1D;;;OAGG;IACH,cAAc,EAAE,6BAA6B,CAAC;IAC9C;;OAEG;IACH,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,oDACgB,4BAA4B,wDAE5E,OAAO,CAAC;IAAE,eAAe,EAAE,MAAM,CAAA;CAAE,CAkCrC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { executeSwapTransaction } from './executeSwapTransaction';
2
+ export type { ExecuteSwapTransactionParams } from './executeSwapTransaction';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/swap/executeSwapTransaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,53 @@
1
+ import type { Chain } from '../../chain';
2
+ import type { SwapQuoteOrder, SwapQuoteResponse } from '../swap.types';
3
+ export type GetSwapQuoteParams = {
4
+ from: {
5
+ address: string;
6
+ /**
7
+ * Source token amount, including all decimals (e.g. 1000000 for 1 USDC (6 decimals))
8
+ * Mutually exclusive with `to.amount`
9
+ */
10
+ amount?: string;
11
+ chain: Chain;
12
+ networkId: string;
13
+ tokenAddress: string;
14
+ };
15
+ /**
16
+ * The price impact threshold above which routes are hidden.
17
+ * As an example, one should specify 0.15 (15%) to hide routes with more than 15% price impact.
18
+ */
19
+ maxPriceImpact?: number;
20
+ /**
21
+ * Which kind of route should be preferred
22
+ *
23
+ * FASTEST: This sorting criterion prioritizes routes with the shortest estimated execution time.
24
+ * Users who value speed and want their transactions to be completed as quickly as possible should choose the fastest routes.
25
+ *
26
+ * CHEAPEST: This criterion focuses on minimizing the cost of the transaction, whether in token amount or USD amount (USD amount minus gas cost).
27
+ * Users looking for the most economical option should choose the cheapest routes.
28
+ *
29
+ */
30
+ order?: SwapQuoteOrder;
31
+ slippage?: number;
32
+ to: {
33
+ address: string;
34
+ /**
35
+ * Destination token amount, including all decimals (e.g. 1000000 for 1 USDC (6 decimals))
36
+ * Mutually exclusive with `from.amount`
37
+ */
38
+ amount?: string;
39
+ chain: Chain;
40
+ networkId: string;
41
+ tokenAddress: string;
42
+ };
43
+ };
44
+ /**
45
+ * Gets a swap quote
46
+ *
47
+ * @param params GetSwapQuoteParams - The parameters for the swap quote.
48
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
49
+ * @returns The swap quote details. Use the `signingPayload` field to get the transaction data for the wallet to sign.
50
+ * @instrumented
51
+ */
52
+ export declare const getSwapQuote: (params: GetSwapQuoteParams, client?: import("../../../exports").DynamicClient) => Promise<SwapQuoteResponse>;
53
+ //# sourceMappingURL=getSwapQuote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSwapQuote.d.ts","sourceRoot":"","sources":["../../../../src/modules/swap/getSwapQuote/getSwapQuote.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE;QAEJ,OAAO,EAAE,MAAM,CAAC;QAChB;;;WAGG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB,KAAK,EAAE,KAAK,CAAC;QAEb,SAAS,EAAE,MAAM,CAAC;QAElB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;IAEvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE;QAEF,OAAO,EAAE,MAAM,CAAC;QAChB;;;WAGG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB,KAAK,EAAE,KAAK,CAAC;QAEb,SAAS,EAAE,MAAM,CAAC;QAElB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;CACH,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,WACf,kBAAkB,wDAEzB,OAAO,CAAC,iBAAiB,CAmC3B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { getSwapQuote } from './getSwapQuote';
2
+ export type { GetSwapQuoteParams } from './getSwapQuote';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/swap/getSwapQuote/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { Chain } from '../../chain';
2
+ import type { SwapStatusResponse } from '../swap.types';
3
+ export type GetSwapStatusParams = {
4
+ from?: {
5
+ chain: Chain;
6
+ networkId: string;
7
+ };
8
+ to?: {
9
+ chain: Chain;
10
+ networkId: string;
11
+ };
12
+ txHash: string;
13
+ };
14
+ /**
15
+ * Gets the status of a swap
16
+ *
17
+ * @param params GetSwapStatusParams - The parameters for the swap status.
18
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
19
+ * @returns The swap status.
20
+ * @instrumented
21
+ */
22
+ export declare const getSwapStatus: (params: GetSwapStatusParams, client?: import("../../../exports").DynamicClient) => Promise<SwapStatusResponse>;
23
+ //# sourceMappingURL=getSwapStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSwapStatus.d.ts","sourceRoot":"","sources":["../../../../src/modules/swap/getSwapStatus/getSwapStatus.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE;QACL,KAAK,EAAE,KAAK,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,EAAE,CAAC,EAAE;QACH,KAAK,EAAE,KAAK,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,WAChB,mBAAmB,wDAE1B,OAAO,CAAC,kBAAkB,CAoC5B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { getSwapStatus } from './getSwapStatus';
2
+ export type { GetSwapStatusParams } from './getSwapStatus';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/swap/getSwapStatus/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { SwapQuoteRequestOrderEnum, SwapSigningPayload, SwapStatusResponseStatusEnum } from '@dynamic-labs/sdk-api-core';
2
+ export type { SwapQuoteResponse } from '@dynamic-labs/sdk-api-core';
3
+ export type SwapQuoteOrder = `${SwapQuoteRequestOrderEnum}`;
4
+ export type SwapTransactionSigningPayload = SwapSigningPayload;
5
+ export type SwapStatus = `${SwapStatusResponseStatusEnum}`;
6
+ export type SwapSubstatusPending = 'WAIT_SOURCE_CONFIRMATIONS' | 'WAIT_DESTINATION_TRANSACTION' | 'BRIDGE_NOT_AVAILABLE' | 'CHAIN_NOT_AVAILABLE' | 'REFUND_IN_PROGRESS' | 'UNKNOWN_ERROR';
7
+ export type SwapSubstatusDone = 'COMPLETED' | 'PARTIAL' | 'REFUNDED';
8
+ export type SwapSubstatusFailed = 'INSUFFICIENT_ALLOWANCE' | 'INSUFFICIENT_BALANCE' | 'OUT_OF_GAS' | 'EXPIRED' | 'SLIPPAGE_EXCEEDED' | 'UNKNOWN_FAILED_ERROR';
9
+ export type SwapSubstatus = SwapSubstatusPending | SwapSubstatusDone | SwapSubstatusFailed;
10
+ export type SwapStatusResponse = {
11
+ status: SwapStatus;
12
+ substatus?: SwapSubstatus | string;
13
+ };
14
+ //# sourceMappingURL=swap.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swap.types.d.ts","sourceRoot":"","sources":["../../../src/modules/swap/swap.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,kBAAkB,EAClB,4BAA4B,EAC7B,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,MAAM,MAAM,cAAc,GAAG,GAAG,yBAAyB,EAAE,CAAC;AAE5D,MAAM,MAAM,6BAA6B,GAAG,kBAAkB,CAAC;AAE/D,MAAM,MAAM,UAAU,GAAG,GAAG,4BAA4B,EAAE,CAAC;AAE3D,MAAM,MAAM,oBAAoB,GAE5B,2BAA2B,GAE3B,8BAA8B,GAE9B,sBAAsB,GAEtB,qBAAqB,GAErB,oBAAoB,GAEpB,eAAe,CAAC;AAEpB,MAAM,MAAM,iBAAiB,GAEzB,WAAW,GAIX,SAAS,GAET,UAAU,CAAC;AAEf,MAAM,MAAM,mBAAmB,GAE3B,wBAAwB,GAExB,sBAAsB,GAEtB,YAAY,GAEZ,SAAS,GAET,mBAAmB,GAEnB,sBAAsB,CAAC;AAE3B,MAAM,MAAM,aAAa,GACrB,oBAAoB,GACpB,iBAAiB,GACjB,mBAAmB,CAAC;AAExB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,UAAU,CAAC;IACnB,SAAS,CAAC,EAAE,aAAa,GAAG,MAAM,CAAC;CACpC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createWaasProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasProvider/createWaasProvider.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAKzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,aAAa,CAAC;CAC1B,CAAC;AAEF,wBAAwB;AACxB,eAAO,MAAM,kBAAkB,0BAG5B,wBAAwB,KAAG,YAwW7B,CAAC"}
1
+ {"version":3,"file":"createWaasProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasProvider/createWaasProvider.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAKzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,aAAa,CAAC;CAC1B,CAAC;AAEF,wBAAwB;AACxB,eAAO,MAAM,kBAAkB,0BAG5B,wBAAwB,KAAG,YAoX7B,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { DynamicWalletClient, GetWalletResponse, ThresholdSignatureScheme, WalletRecoveryState } from '@dynamic-labs-wallet/browser-wallet-client';
2
2
  import type { Chain } from '../chain';
3
+ import type { LogoutReason } from '../auth/logoutReason';
3
4
  import type { WalletAccount } from '../wallets/walletAccount';
4
5
  import type { WalletProvider } from '../wallets/walletProvider';
5
6
  export type { ThresholdSignatureScheme } from '@dynamic-labs-wallet/browser-wallet-client';
@@ -86,7 +87,9 @@ export type WaasProvider = {
86
87
  }) => Promise<{
87
88
  signature: string;
88
89
  }>;
89
- terminate: () => Promise<void>;
90
+ terminate: (args?: {
91
+ reason?: LogoutReason;
92
+ }) => Promise<void>;
90
93
  unlockWallet: (args: {
91
94
  password: string;
92
95
  walletAccount: WalletAccount;
@@ -1 +1 @@
1
- {"version":3,"file":"waas.types.d.ts","sourceRoot":"","sources":["../../../src/modules/waas/waas.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,YAAY,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAE3F;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,aAAa,CAAC,EAAE,2BAA2B,CAAC;IAC5C,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;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IAAI,EAAE;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,EAAE,aAAa,CAAC;KAC9B,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACjC,cAAc,EAAE,CAAC,IAAI,EAAE;QACrB,eAAe,EAAE,MAAM,CAAC;QACxB,WAAW,EAAE,MAAM,CAAC;QACpB,aAAa,EAAE,aAAa,CAAC;KAC9B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAC7C,IAAI,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC"}
@@ -1,7 +1,10 @@
1
1
  import type { DynamicClient } from '../../../client/types/DynamicClient';
2
+ import type { LogoutReason } from '../../auth/logoutReason';
2
3
  /**
3
4
  * Disconnect and terminate each wallet provider, if available.
4
- * @not-instrumented
5
+ * @not-instrumented
5
6
  */
6
- export declare const disconnectAndTerminateWalletProviders: (client: DynamicClient) => Promise<void>;
7
+ export declare const disconnectAndTerminateWalletProviders: ({ reason }: {
8
+ reason?: LogoutReason;
9
+ }, client: DynamicClient) => Promise<void>;
7
10
  //# sourceMappingURL=disconnectAndTerminateWalletProviders.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"disconnectAndTerminateWalletProviders.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/disconnectAndTerminateWalletProviders/disconnectAndTerminateWalletProviders.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAGzE;;;GAGG;AACH,eAAO,MAAM,qCAAqC,WACxC,aAAa,kBAwBtB,CAAC"}
1
+ {"version":3,"file":"disconnectAndTerminateWalletProviders.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/disconnectAndTerminateWalletProviders/disconnectAndTerminateWalletProviders.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAG5D;;;GAGG;AACH,eAAO,MAAM,qCAAqC,eACpC;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAE,UAC7B,aAAa,kBAwBtB,CAAC"}
@@ -1,2 +1,2 @@
1
- export type { ExecuteCheckoutTransactionParams, ExecuteCheckoutTransactionResult, TransferAmountParams, WalletProvider, WalletProviderConnectAddress, WalletProviderData, WalletProviderMetadata, } from './walletProvider.types';
1
+ export type { ConfirmTransactionParams, ExecuteSwapTransactionParams, ExecuteSwapTransactionResult, TransferAmountParams, WalletProvider, WalletProviderConnectAddress, WalletProviderData, WalletProviderMetadata, } from './walletProvider.types';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/walletProvider/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,gCAAgC,EAChC,gCAAgC,EAChC,oBAAoB,EACpB,cAAc,EACd,4BAA4B,EAC5B,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/walletProvider/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,wBAAwB,EACxB,4BAA4B,EAC5B,4BAA4B,EAC5B,oBAAoB,EACpB,cAAc,EACd,4BAA4B,EAC5B,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,wBAAwB,CAAC"}