@dynamic-labs-sdk/client 0.14.0 → 0.16.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 (147) hide show
  1. package/dist/{InvalidParamError-DQn49mNB.esm.js → InvalidParamError-Cty-xWsw.esm.js} +268 -10
  2. package/dist/InvalidParamError-Cty-xWsw.esm.js.map +1 -0
  3. package/dist/{InvalidParamError-DVzrk97b.cjs.js → InvalidParamError-DO9X0rAe.cjs.js} +360 -9
  4. package/dist/InvalidParamError-DO9X0rAe.cjs.js.map +1 -0
  5. package/dist/{NotWaasWalletAccountError-IxbdRVGy.cjs.js → NotWaasWalletAccountError-Bj3-tWL3.cjs.js} +3 -3
  6. package/dist/{NotWaasWalletAccountError-IxbdRVGy.cjs.js.map → NotWaasWalletAccountError-Bj3-tWL3.cjs.js.map} +1 -1
  7. package/dist/{NotWaasWalletAccountError-D0BXVuKy.esm.js → NotWaasWalletAccountError-x0HlFCot.esm.js} +3 -3
  8. package/dist/{NotWaasWalletAccountError-D0BXVuKy.esm.js.map → NotWaasWalletAccountError-x0HlFCot.esm.js.map} +1 -1
  9. package/dist/client/core/createCore/getInitialState.d.ts.map +1 -1
  10. package/dist/core.cjs.js +34 -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/DeeplinkConnectAndVerifyUnsupportedError.d.ts +9 -0
  15. package/dist/errors/DeeplinkConnectAndVerifyUnsupportedError.d.ts.map +1 -0
  16. package/dist/errors/UnauthorizedError.d.ts +5 -0
  17. package/dist/errors/UnauthorizedError.d.ts.map +1 -0
  18. package/dist/exports/core.d.ts +11 -1
  19. package/dist/exports/core.d.ts.map +1 -1
  20. package/dist/exports/index.d.ts +13 -2
  21. package/dist/exports/index.d.ts.map +1 -1
  22. package/dist/{getNetworkProviderFromNetworkId-z8WEapnj.cjs.js → getNetworkProviderFromNetworkId-B2NiAPL7.cjs.js} +66 -148
  23. package/dist/getNetworkProviderFromNetworkId-B2NiAPL7.cjs.js.map +1 -0
  24. package/dist/{getNetworkProviderFromNetworkId-DMMnYrfG.esm.js → getNetworkProviderFromNetworkId-DKM-ec3L.esm.js} +59 -96
  25. package/dist/getNetworkProviderFromNetworkId-DKM-ec3L.esm.js.map +1 -0
  26. package/dist/{getSignedSessionId-BdGOv_TA.cjs.js → getSignedSessionId-BQb75faX.cjs.js} +5 -24
  27. package/dist/getSignedSessionId-BQb75faX.cjs.js.map +1 -0
  28. package/dist/{getSignedSessionId-BKKO2mqj.esm.js → getSignedSessionId-DczIbYxd.esm.js} +4 -17
  29. package/dist/getSignedSessionId-DczIbYxd.esm.js.map +1 -0
  30. package/dist/{getVerifiedCredentialForWalletAccount-Ck7DNGPJ.cjs.js → getVerifiedCredentialForWalletAccount-CTL5-19B.cjs.js} +2 -3
  31. package/dist/{getVerifiedCredentialForWalletAccount-Ck7DNGPJ.cjs.js.map → getVerifiedCredentialForWalletAccount-CTL5-19B.cjs.js.map} +1 -1
  32. package/dist/{getVerifiedCredentialForWalletAccount-DQ7g6O7y.esm.js → getVerifiedCredentialForWalletAccount-CpUomVzT.esm.js} +2 -2
  33. package/dist/{getVerifiedCredentialForWalletAccount-DQ7g6O7y.esm.js.map → getVerifiedCredentialForWalletAccount-CpUomVzT.esm.js.map} +1 -1
  34. package/dist/index.cjs.js +333 -87
  35. package/dist/index.cjs.js.map +1 -1
  36. package/dist/index.esm.js +315 -78
  37. package/dist/index.esm.js.map +1 -1
  38. package/dist/{isMfaRequiredForAction-BINs954q.cjs.js → isMfaRequiredForAction-DyrKyoVd.cjs.js} +2 -15
  39. package/dist/isMfaRequiredForAction-DyrKyoVd.cjs.js.map +1 -0
  40. package/dist/{isMfaRequiredForAction-MvVGc7k3.esm.js → isMfaRequiredForAction-Hi4dCidj.esm.js} +3 -10
  41. package/dist/isMfaRequiredForAction-Hi4dCidj.esm.js.map +1 -0
  42. package/dist/modules/apiClient/createApiClient.d.ts.map +1 -1
  43. package/dist/modules/apiClient/utils/deviceSignatureHeadersMiddleware/createDeviceSignatureHeadersMiddleware.d.ts +4 -0
  44. package/dist/modules/apiClient/utils/deviceSignatureHeadersMiddleware/createDeviceSignatureHeadersMiddleware.d.ts.map +1 -0
  45. package/dist/modules/apiClient/utils/deviceSignatureHeadersMiddleware/index.d.ts +2 -0
  46. package/dist/modules/apiClient/utils/deviceSignatureHeadersMiddleware/index.d.ts.map +1 -0
  47. package/dist/modules/apiClient/utils/unauthorizedMiddleware/createUnauthorizedMiddleware.d.ts +3 -0
  48. package/dist/modules/apiClient/utils/unauthorizedMiddleware/createUnauthorizedMiddleware.d.ts.map +1 -0
  49. package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts +3 -1
  50. package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts.map +1 -1
  51. package/dist/modules/checkout/createCheckoutTransaction/createCheckoutTransaction.d.ts +1 -1
  52. package/dist/modules/checkout/createCheckoutTransaction/createCheckoutTransaction.d.ts.map +1 -1
  53. package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts +1 -2
  54. package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts.map +1 -1
  55. package/dist/modules/checkout/getCheckouts/getCheckouts.d.ts +4 -0
  56. package/dist/modules/checkout/getCheckouts/getCheckouts.d.ts.map +1 -0
  57. package/dist/modules/checkout/getCheckouts/index.d.ts +2 -0
  58. package/dist/modules/checkout/getCheckouts/index.d.ts.map +1 -0
  59. package/dist/modules/checkout/submitCheckoutTransaction/index.d.ts +3 -0
  60. package/dist/modules/checkout/submitCheckoutTransaction/index.d.ts.map +1 -0
  61. package/dist/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.d.ts +22 -0
  62. package/dist/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.d.ts.map +1 -0
  63. package/dist/modules/deviceRegistration/getDeviceSigner/getDeviceSigner.d.ts.map +1 -1
  64. package/dist/modules/deviceRegistration/getDeviceSigner/{getOrCreateUserDeviceSigningKeys/getOrCreateUserDeviceSigningKeys.d.ts → getOrCreateEnvironmentDeviceSigningKeys/getOrCreateEnvironmentDeviceSigningKeys.d.ts} +2 -2
  65. package/dist/modules/deviceRegistration/getDeviceSigner/getOrCreateEnvironmentDeviceSigningKeys/getOrCreateEnvironmentDeviceSigningKeys.d.ts.map +1 -0
  66. package/dist/modules/deviceRegistration/getDeviceSigner/getOrCreateEnvironmentDeviceSigningKeys/index.d.ts +2 -0
  67. package/dist/modules/deviceRegistration/getDeviceSigner/getOrCreateEnvironmentDeviceSigningKeys/index.d.ts.map +1 -0
  68. package/dist/modules/deviceRegistration/getHeadersForNonceSignedByDeviceSigners/getHeadersForNonceSignedByDeviceSigners.d.ts +3 -0
  69. package/dist/modules/deviceRegistration/getHeadersForNonceSignedByDeviceSigners/getHeadersForNonceSignedByDeviceSigners.d.ts.map +1 -0
  70. package/dist/modules/deviceRegistration/getHeadersForNonceSignedByDeviceSigners/index.d.ts +2 -0
  71. package/dist/modules/deviceRegistration/getHeadersForNonceSignedByDeviceSigners/index.d.ts.map +1 -0
  72. package/dist/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.d.ts +3 -0
  73. package/dist/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.d.ts.map +1 -0
  74. package/dist/modules/deviceRegistration/getRegisteredDevices/index.d.ts +2 -0
  75. package/dist/modules/deviceRegistration/getRegisteredDevices/index.d.ts.map +1 -0
  76. package/dist/modules/deviceRegistration/revokeAllRegisteredDevices/index.d.ts +2 -0
  77. package/dist/modules/deviceRegistration/revokeAllRegisteredDevices/index.d.ts.map +1 -0
  78. package/dist/modules/deviceRegistration/revokeAllRegisteredDevices/revokeAllRegisteredDevices.d.ts +2 -0
  79. package/dist/modules/deviceRegistration/revokeAllRegisteredDevices/revokeAllRegisteredDevices.d.ts.map +1 -0
  80. package/dist/modules/deviceRegistration/revokeRegisteredDevice/index.d.ts +2 -0
  81. package/dist/modules/deviceRegistration/revokeRegisteredDevice/index.d.ts.map +1 -0
  82. package/dist/modules/deviceRegistration/revokeRegisteredDevice/revokeRegisteredDevice.d.ts +6 -0
  83. package/dist/modules/deviceRegistration/revokeRegisteredDevice/revokeRegisteredDevice.d.ts.map +1 -0
  84. package/dist/modules/initializeClient/initializeClient.d.ts.map +1 -1
  85. package/dist/modules/storageSync/hydrateStateWithStorage/hydrateStateWithStorage.d.ts.map +1 -1
  86. package/dist/modules/storageSync/schema.d.ts +2 -0
  87. package/dist/modules/storageSync/schema.d.ts.map +1 -1
  88. package/dist/modules/storageSync/syncStateWithStorage/syncStateWithStorage.d.ts.map +1 -1
  89. package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
  90. package/dist/modules/waas/waas.types.d.ts +1 -0
  91. package/dist/modules/waas/waas.types.d.ts.map +1 -1
  92. package/dist/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.d.ts +10 -0
  93. package/dist/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.d.ts.map +1 -1
  94. package/dist/modules/wallets/transferAmount/index.d.ts +2 -0
  95. package/dist/modules/wallets/transferAmount/index.d.ts.map +1 -0
  96. package/dist/modules/wallets/transferAmount/transferAmount.d.ts +19 -0
  97. package/dist/modules/wallets/transferAmount/transferAmount.d.ts.map +1 -0
  98. package/dist/modules/wallets/walletProvider/index.d.ts +1 -1
  99. package/dist/modules/wallets/walletProvider/index.d.ts.map +1 -1
  100. package/dist/modules/wallets/walletProvider/isDeeplinkWalletProvider/index.d.ts +2 -0
  101. package/dist/modules/wallets/walletProvider/isDeeplinkWalletProvider/index.d.ts.map +1 -0
  102. package/dist/modules/wallets/walletProvider/isDeeplinkWalletProvider/isDeeplinkWalletProvider.d.ts +10 -0
  103. package/dist/modules/wallets/walletProvider/isDeeplinkWalletProvider/isDeeplinkWalletProvider.d.ts.map +1 -0
  104. package/dist/modules/wallets/walletProvider/walletProvider.types.d.ts +17 -0
  105. package/dist/modules/wallets/walletProvider/walletProvider.types.d.ts.map +1 -1
  106. package/dist/services/openDeeplink/createWebDeeplinkOpener/createWebDeeplinkOpener.d.ts +11 -1
  107. package/dist/services/openDeeplink/createWebDeeplinkOpener/createWebDeeplinkOpener.d.ts.map +1 -1
  108. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  109. package/dist/utils/getNonce/constants.d.ts +3 -0
  110. package/dist/utils/getNonce/constants.d.ts.map +1 -0
  111. package/dist/utils/getNonce/fetchAndStoreNonces/fetchAndStoreNonces.d.ts +13 -0
  112. package/dist/utils/getNonce/fetchAndStoreNonces/fetchAndStoreNonces.d.ts.map +1 -0
  113. package/dist/utils/getNonce/fetchAndStoreNonces/index.d.ts +2 -0
  114. package/dist/utils/getNonce/fetchAndStoreNonces/index.d.ts.map +1 -0
  115. package/dist/utils/getNonce/getNonce.d.ts +7 -0
  116. package/dist/utils/getNonce/getNonce.d.ts.map +1 -1
  117. package/dist/utils/getNonce/prefetchNoncesIfNeeded/prefetchNoncesIfNeeded.d.ts +3 -0
  118. package/dist/utils/getNonce/prefetchNoncesIfNeeded/prefetchNoncesIfNeeded.d.ts.map +1 -0
  119. package/dist/utils/getNonce/state.d.ts +15 -0
  120. package/dist/utils/getNonce/state.d.ts.map +1 -0
  121. package/dist/utils/parseAmountToSmallestUnit/index.d.ts +2 -0
  122. package/dist/utils/parseAmountToSmallestUnit/index.d.ts.map +1 -0
  123. package/dist/utils/parseAmountToSmallestUnit/parseAmountToSmallestUnit.d.ts +22 -0
  124. package/dist/utils/parseAmountToSmallestUnit/parseAmountToSmallestUnit.d.ts.map +1 -0
  125. package/dist/utils/parseUserAgent/index.d.ts +2 -0
  126. package/dist/utils/parseUserAgent/index.d.ts.map +1 -0
  127. package/dist/utils/parseUserAgent/parseUserAgent.d.ts +10 -0
  128. package/dist/utils/parseUserAgent/parseUserAgent.d.ts.map +1 -0
  129. package/dist/utils/randomString/randomString.d.ts +6 -1
  130. package/dist/utils/randomString/randomString.d.ts.map +1 -1
  131. package/dist/waas.cjs.js +3 -4
  132. package/dist/waas.cjs.js.map +1 -1
  133. package/dist/waas.esm.js +3 -3
  134. package/dist/waasCore.cjs.js +5 -5
  135. package/dist/waasCore.cjs.js.map +1 -1
  136. package/dist/waasCore.esm.js +5 -4
  137. package/dist/waasCore.esm.js.map +1 -1
  138. package/package.json +4 -3
  139. package/dist/InvalidParamError-DQn49mNB.esm.js.map +0 -1
  140. package/dist/InvalidParamError-DVzrk97b.cjs.js.map +0 -1
  141. package/dist/getNetworkProviderFromNetworkId-DMMnYrfG.esm.js.map +0 -1
  142. package/dist/getNetworkProviderFromNetworkId-z8WEapnj.cjs.js.map +0 -1
  143. package/dist/getSignedSessionId-BKKO2mqj.esm.js.map +0 -1
  144. package/dist/getSignedSessionId-BdGOv_TA.cjs.js.map +0 -1
  145. package/dist/isMfaRequiredForAction-BINs954q.cjs.js.map +0 -1
  146. package/dist/isMfaRequiredForAction-MvVGc7k3.esm.js.map +0 -1
  147. package/dist/modules/deviceRegistration/getDeviceSigner/getOrCreateUserDeviceSigningKeys/getOrCreateUserDeviceSigningKeys.d.ts.map +0 -1
@@ -1,12 +1,5 @@
1
- const require_InvalidParamError = require('./InvalidParamError-DVzrk97b.cjs.js');
1
+ const require_InvalidParamError = require('./InvalidParamError-DO9X0rAe.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-BINs954q.cjs.js.map
79
+ //# sourceMappingURL=isMfaRequiredForAction-DyrKyoVd.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isMfaRequiredForAction-DyrKyoVd.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,12 +1,5 @@
1
- import { O as getCore, l as createApiClient, w as getDefaultClient, y as assertDefined } from "./InvalidParamError-DQn49mNB.esm.js";
1
+ import { O as assertDefined, P as getDefaultClient, R as getCore, u as createApiClient } from "./InvalidParamError-Cty-xWsw.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-MvVGc7k3.esm.js.map
61
+ export { getMfaMethods as n, consumeMfaToken as r, isMfaRequiredForAction as t };
62
+ //# sourceMappingURL=isMfaRequiredForAction-Hi4dCidj.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isMfaRequiredForAction-Hi4dCidj.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 +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,7 +1,9 @@
1
+ import type { Chain } from '../../chain';
1
2
  import type { CheckoutTransaction } from '../checkout.types';
2
3
  export type AttachCheckoutTransactionSourceParams = {
3
4
  fromAddress: string;
4
5
  fromChainId: string;
6
+ fromChainName: Chain;
5
7
  transactionId: string;
6
8
  };
7
9
  /**
@@ -11,5 +13,5 @@ export type AttachCheckoutTransactionSourceParams = {
11
13
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
12
14
  * @returns The updated checkout transaction
13
15
  */
14
- export declare const attachCheckoutTransactionSource: ({ fromAddress, fromChainId, transactionId, }: AttachCheckoutTransactionSourceParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
16
+ export declare const attachCheckoutTransactionSource: ({ fromAddress, fromChainId, fromChainName, transactionId, }: AttachCheckoutTransactionSourceParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
15
17
  //# sourceMappingURL=attachCheckoutTransactionSource.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"attachCheckoutTransactionSource.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,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,KAAK,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,gEAMvC,qCAAqC,wDAEvC,OAAO,CAAC,mBAAmB,CAiB7B,CAAC"}
@@ -2,7 +2,7 @@ import type { DynamicClient } from '../../../client/types';
2
2
  import type { CheckoutTransactionCreateResponse } from '../checkout.types';
3
3
  export type CreateCheckoutTransactionParams = {
4
4
  amount: string;
5
- checkoutId: string;
5
+ checkoutId?: string;
6
6
  currency: string;
7
7
  expiresIn?: number;
8
8
  externalId?: string;
@@ -1 +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"}
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;AAG3D,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,mBAAmB,CAAC;AAI3E,MAAM,MAAM,+BAA+B,GAAG;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,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,CA+B3C,CAAC"}
@@ -2,7 +2,6 @@ import type { CheckoutTransaction } from '../checkout.types';
2
2
  export type GetCheckoutTransactionQuoteParams = {
3
3
  fromTokenAddress: string;
4
4
  slippage?: number;
5
- toTokenAddress: string;
6
5
  transactionId: string;
7
6
  };
8
7
  /**
@@ -12,5 +11,5 @@ export type GetCheckoutTransactionQuoteParams = {
12
11
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
13
12
  * @returns The updated checkout transaction with quote data
14
13
  */
15
- export declare const getCheckoutTransactionQuote: ({ fromTokenAddress, slippage, toTokenAddress, transactionId, }: GetCheckoutTransactionQuoteParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
14
+ export declare const getCheckoutTransactionQuote: ({ fromTokenAddress, slippage, transactionId, }: GetCheckoutTransactionQuoteParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
16
15
  //# sourceMappingURL=getCheckoutTransactionQuote.d.ts.map
@@ -1 +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"}
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,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,mDAKnC,iCAAiC,wDAEnC,OAAO,CAAC,mBAAmB,CAa7B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Checkout } from '@dynamic-labs/sdk-api-core';
2
+ import type { DynamicClient } from '../../../client/types';
3
+ export declare const getCheckouts: (client: DynamicClient) => Promise<Checkout[]>;
4
+ //# sourceMappingURL=getCheckouts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCheckouts.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/getCheckouts/getCheckouts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,eAAO,MAAM,YAAY,WACf,aAAa,KACpB,OAAO,CAAC,QAAQ,EAAE,CAMpB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { getCheckouts } from './getCheckouts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/getCheckouts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,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"}
@@ -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,CAcd,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 +1 @@
1
- {"version":3,"file":"hydrateStateWithStorage.d.ts","sourceRoot":"","sources":["../../../../src/modules/storageSync/hydrateStateWithStorage/hydrateStateWithStorage.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAK3D,eAAO,MAAM,uBAAuB,WAC1B,aAAa,KACpB,OAAO,CAAC,IAAI,CA4Dd,CAAC"}
1
+ {"version":3,"file":"hydrateStateWithStorage.d.ts","sourceRoot":"","sources":["../../../../src/modules/storageSync/hydrateStateWithStorage/hydrateStateWithStorage.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAK3D,eAAO,MAAM,uBAAuB,WAC1B,aAAa,KACpB,OAAO,CAAC,IAAI,CAiEd,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import type { ProjectSettings, SdkUser } from '@dynamic-labs/sdk-api-core';
2
2
  export declare const stateStorageKeySchema: import("../../services/storage").StorageKeySchema<{
3
3
  apiVersion: string;
4
+ prefetchedNonces: string[];
5
+ prefetchedNoncesExpiration: number | null;
4
6
  projectSettings: ProjectSettings | null;
5
7
  unverifiedWalletAccounts: {
6
8
  address: string;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/modules/storageSync/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAO3E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;EAShC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;EA2DlC,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/modules/storageSync/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAO3E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;EAWhC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;EA2DlC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"syncStateWithStorage.d.ts","sourceRoot":"","sources":["../../../../src/modules/storageSync/syncStateWithStorage/syncStateWithStorage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAI3D,eAAO,MAAM,oBAAoB,WAAY,aAAa,SAiCzD,CAAC"}
1
+ {"version":3,"file":"syncStateWithStorage.d.ts","sourceRoot":"","sources":["../../../../src/modules/storageSync/syncStateWithStorage/syncStateWithStorage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAI3D,eAAO,MAAM,oBAAoB,WAAY,aAAa,SAmCzD,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,eAAO,MAAM,kBAAkB,0BAG5B,wBAAwB,KAAG,YAuW7B,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,eAAO,MAAM,kBAAkB,0BAG5B,wBAAwB,KAAG,YAwW7B,CAAC"}
@@ -80,6 +80,7 @@ export type WaasProvider = {
80
80
  signature: string;
81
81
  }>;
82
82
  signSerializedTransaction: (args: {
83
+ chainId?: string;
83
84
  serializedTransaction: string;
84
85
  walletAccount: WalletAccount;
85
86
  }) => Promise<{
@@ -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;IACzB,4BAA4B,EAAE,CAAC,IAAI,EAAE;QACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,aAAa,EAAE,aAAa,CAAC;KAC9B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB,mBAAm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BAAkB,GAAG,cAAc,GAC7C,IAAI,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC"}
@@ -10,6 +10,16 @@ type ConnectAndVerifyWithWalletProviderParams = {
10
10
  * requiring the user to sign a message to prove wallet ownership before
11
11
  * the wallet account is added to their profile.
12
12
  *
13
+ * @throws {DeeplinkConnectAndVerifyUnsupportedError} On mobile with deep link
14
+ * wallet providers (e.g. Phantom redirect). This function triggers two sequential
15
+ * deeplinks — one to connect and another to sign for verification. iOS will not
16
+ * honor the second deeplink because it is no longer tied to a user gesture.
17
+ * Android may handle sequential deeplinks differently, but this guard applies to
18
+ * all mobile platforms to ensure a stable experience and prevent production-only
19
+ * errors. Use `connectWithWalletProvider` first and then invoke
20
+ * `verifyWalletAccount` separately from a new user gesture (e.g. a "Verify
21
+ * Ownership" button).
22
+ *
13
23
  * @param params.walletProviderKey - The unique key identifying the wallet provider to connect to.
14
24
  * @param [params.hardwareWalletVendor] - The hardware wallet vendor, if connecting via a hardware wallet (e.g. 'ledger').
15
25
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
@@ -1 +1 @@
1
- {"version":3,"file":"connectAndVerifyWithWalletProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAGnF,KAAK,wCAAwC,GAAG;IAC9C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kCAAkC,gDACA,wCAAwC,0IAiBtF,CAAC"}
1
+ {"version":3,"file":"connectAndVerifyWithWalletProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAInF,KAAK,wCAAwC,GAAG;IAC9C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,kCAAkC,gDACA,wCAAwC,0IAuBtF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { transferAmount } from './transferAmount';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/transferAmount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { TransferAmountParams } from '../walletProvider/walletProvider.types';
2
+ /**
3
+ * Transfers an amount of currency from the wallet account to a recipient.
4
+ *
5
+ * Supports native token transfers and, where supported by the chain,
6
+ * fungible/token transfers via the optional `token` parameter.
7
+ *
8
+ * @param params.walletAccount - The wallet account to transfer from.
9
+ * @param params.amount - The amount to transfer as a decimal string (e.g. "1.5").
10
+ * @param params.recipient - The recipient address.
11
+ * @param params.token - Optional token info for non-native transfers.
12
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
13
+ * @returns A promise that resolves to an object containing the transaction hash.
14
+ * @throws If the wallet provider does not support the transfer amount method.
15
+ */
16
+ export declare const transferAmount: ({ walletAccount, amount, recipient, token }: TransferAmountParams, client?: import("../../../exports").DynamicClient) => Promise<{
17
+ transactionHash: string;
18
+ }>;
19
+ //# sourceMappingURL=transferAmount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transferAmount.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/transferAmount/transferAmount.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAEnF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,gDACoB,oBAAoB,wDAEhE,OAAO,CAAC;IAAE,eAAe,EAAE,MAAM,CAAA;CAAE,CAkBrC,CAAC"}
@@ -1,2 +1,2 @@
1
- export type { TransferAmountParams, WalletProvider, WalletProviderConnectAddress, WalletProviderData, WalletProviderMetadata, } from './walletProvider.types';
1
+ export type { ExecuteCheckoutTransactionParams, ExecuteCheckoutTransactionResult, 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,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,gCAAgC,EAChC,gCAAgC,EAChC,oBAAoB,EACpB,cAAc,EACd,4BAA4B,EAC5B,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { isDeeplinkWalletProvider } from './isDeeplinkWalletProvider';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/walletProvider/isDeeplinkWalletProvider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { WalletProviderData } from '../walletProvider.types';
2
+ type IsDeeplinkWalletProviderParams = {
3
+ walletProvider: WalletProviderData;
4
+ };
5
+ /**
6
+ * Returns true if the wallet provider uses the deep link protocol (e.g. Phantom redirect on mobile).
7
+ */
8
+ export declare const isDeeplinkWalletProvider: ({ walletProvider, }: IsDeeplinkWalletProviderParams) => boolean;
9
+ export {};
10
+ //# sourceMappingURL=isDeeplinkWalletProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isDeeplinkWalletProvider.d.ts","sourceRoot":"","sources":["../../../../../src/modules/wallets/walletProvider/isDeeplinkWalletProvider/isDeeplinkWalletProvider.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,KAAK,8BAA8B,GAAG;IACpC,cAAc,EAAE,kBAAkB,CAAC;CACpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,wBAElC,8BAA8B,KAAG,OAC+B,CAAC"}
@@ -64,6 +64,17 @@ export type TransferAmountParams = {
64
64
  };
65
65
  walletAccount: WalletAccount;
66
66
  };
67
+ export type ExecuteCheckoutTransactionParams = {
68
+ onStepChange?: (step: 'approval' | 'transaction') => void;
69
+ signingPayload: {
70
+ chainId: string;
71
+ };
72
+ walletAccount: WalletAccount;
73
+ };
74
+ export type ExecuteCheckoutTransactionResult = {
75
+ approvalTransactionHash?: string;
76
+ transactionHash: string;
77
+ };
67
78
  export type WalletProvider = WalletProviderData & {
68
79
  /**
69
80
  * Adds a network to the wallet provider that can later be used to switch to.
@@ -99,6 +110,12 @@ export type WalletProvider = WalletProviderData & {
99
110
  */
100
111
  supportedEvents: (keyof WalletProviderEvents)[];
101
112
  };
113
+ /**
114
+ * Executes a checkout transaction by signing and sending it on-chain.
115
+ * Chain-specific implementations handle approval (EVM), deserialization (Solana/Sui),
116
+ * or PSBT signing (Bitcoin) based on the signing payload's chain type.
117
+ */
118
+ executeCheckoutTransaction?: (args: ExecuteCheckoutTransactionParams) => Promise<ExecuteCheckoutTransactionResult>;
102
119
  /**
103
120
  * Gets the network id of the currently active network for the wallet provider
104
121
  */
@@ -1 +1 @@
1
- {"version":3,"file":"walletProvider.types.d.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AAE,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC;;OAEG;IACH,cAAc,CAAC,EAAE,CACf,IAAI,EAAE,oBAAoB,KACvB,OAAO,CAAC;QAAE,eAAe,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC3C,CAAC"}
1
+ {"version":3,"file":"walletProvider.types.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/walletProvider/walletProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAEhF,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,8BAA8B,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACzD,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,QAAQ,EAAE,sBAAsB,CAAC;IACjC;;;OAGG;IACH,kBAAkB,EAAE,kB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AC9B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,GAAG;QAC5C;;WAEG;QACH,eAAe,EAAE,CAAC,MAAM,oBAAoB,CAAC,EAAE,CAAC;KACjD,CAAC;IACF;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,CAC3B,IAAI,EAAE,gCAAgC,KACnC,OAAO,CAAC,gCAAgC,CAAC,CAAC;IAC/C;;OAEG;IACH,kBAAkB,EAAE,MAAM,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACzD;;OAEG;IACH,qBAAqB,EAAE,MAAM,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;IAC9D;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,aAAa,CAAC,EAAE,aAAa,CAAC;KAC/B,KAAK,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACrC;;OAEG;IACH,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC;;OAEG;IACH,cAAc,CAAC,EAAE,CACf,IAAI,EAAE,oBAAoB,KACvB,OAAO,CAAC;QAAE,eAAe,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC3C,CAAC"}
@@ -1,6 +1,16 @@
1
1
  import type { OpenDeeplink } from '../openDeeplink.types';
2
2
  /**
3
- * Creates a deeplink opener that uses the native window.open API.
3
+ * Creates a deeplink opener that navigates the current tab to the deeplink URL.
4
+ *
5
+ * Uses `window.location.assign` instead of `window.open` deliberately.
6
+ * This matters for Phantom redirect specifically, which is the only deep link
7
+ * provider that redirects back to the app in a new tab. With `window.open`,
8
+ * the browser first opens an `about:blank` tab before the native wallet app
9
+ * handles the deep link. When Phantom redirects back, it opens yet another
10
+ * tab. The user ends up with three tabs (original, about:blank, redirect) and
11
+ * the browser focuses the lingering about:blank after the redirect tab closes.
12
+ * `window.location.assign` reuses the current tab, avoiding the extra tab
13
+ * entirely.
4
14
  */
5
15
  export declare const createWebDeeplinkOpener: () => OpenDeeplink;
6
16
  //# sourceMappingURL=createWebDeeplinkOpener.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createWebDeeplinkOpener.d.ts","sourceRoot":"","sources":["../../../../src/services/openDeeplink/createWebDeeplinkOpener/createWebDeeplinkOpener.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,uBAAuB,QAAO,YAY1C,CAAC"}
1
+ {"version":3,"file":"createWebDeeplinkOpener.d.ts","sourceRoot":"","sources":["../../../../src/services/openDeeplink/createWebDeeplinkOpener/createWebDeeplinkOpener.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,QAAO,YAY1C,CAAC"}