@dynamic-labs-sdk/client 1.3.0 → 1.4.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 (138) hide show
  1. package/dist/{InvalidParamError-Za4cvW7K.esm.js → InvalidParamError-BPMi0iWC.esm.js} +55 -6
  2. package/dist/InvalidParamError-BPMi0iWC.esm.js.map +1 -0
  3. package/dist/{InvalidParamError-9kQBK3sP.native.esm.js → InvalidParamError-CDmVW2DS.native.esm.js} +55 -6
  4. package/dist/InvalidParamError-CDmVW2DS.native.esm.js.map +1 -0
  5. package/dist/{InvalidParamError-DQvZQdQ9.cjs → InvalidParamError-DEmLKJKZ.cjs} +61 -6
  6. package/dist/InvalidParamError-DEmLKJKZ.cjs.map +1 -0
  7. package/dist/{NotWaasWalletAccountError-Ciq7b-Y6.cjs → NotWaasWalletAccountError-BZsBHRQe.cjs} +6 -4
  8. package/dist/NotWaasWalletAccountError-BZsBHRQe.cjs.map +1 -0
  9. package/dist/{NotWaasWalletAccountError-By3Y4taq.esm.js → NotWaasWalletAccountError-Chpne8_Q.native.esm.js} +6 -4
  10. package/dist/NotWaasWalletAccountError-Chpne8_Q.native.esm.js.map +1 -0
  11. package/dist/{NotWaasWalletAccountError-BTMvHTA8.native.esm.js → NotWaasWalletAccountError-Cntietge.esm.js} +6 -4
  12. package/dist/NotWaasWalletAccountError-Cntietge.esm.js.map +1 -0
  13. package/dist/core.cjs +6 -5
  14. package/dist/core.cjs.map +1 -1
  15. package/dist/core.esm.js +6 -6
  16. package/dist/core.esm.js.map +1 -1
  17. package/dist/core.native.esm.js +6 -6
  18. package/dist/core.native.esm.js.map +1 -1
  19. package/dist/exports/core.d.ts +2 -0
  20. package/dist/exports/core.d.ts.map +1 -1
  21. package/dist/exports/index.d.ts +2 -1
  22. package/dist/exports/index.d.ts.map +1 -1
  23. package/dist/{getNetworkProviderFromNetworkId-RWcIZDgC.esm.js → getNetworkProviderFromNetworkId-CEeFL-gV.esm.js} +72 -16
  24. package/dist/getNetworkProviderFromNetworkId-CEeFL-gV.esm.js.map +1 -0
  25. package/dist/{getNetworkProviderFromNetworkId-COptFPwJ.native.esm.js → getNetworkProviderFromNetworkId-JGrKwBj7.native.esm.js} +72 -16
  26. package/dist/getNetworkProviderFromNetworkId-JGrKwBj7.native.esm.js.map +1 -0
  27. package/dist/{getNetworkProviderFromNetworkId-BA0CHZzu.cjs → getNetworkProviderFromNetworkId-szJOsbQN.cjs} +77 -15
  28. package/dist/getNetworkProviderFromNetworkId-szJOsbQN.cjs.map +1 -0
  29. package/dist/{getSignedSessionId-DzNCj6g_.native.esm.js → getSignedSessionId-B5DikCap.native.esm.js} +3 -3
  30. package/dist/{getSignedSessionId-DzNCj6g_.native.esm.js.map → getSignedSessionId-B5DikCap.native.esm.js.map} +1 -1
  31. package/dist/{getSignedSessionId-la6RXITX.esm.js → getSignedSessionId-BOx1nFt_.esm.js} +3 -3
  32. package/dist/{getSignedSessionId-la6RXITX.esm.js.map → getSignedSessionId-BOx1nFt_.esm.js.map} +1 -1
  33. package/dist/{getSignedSessionId-BCU987hO.cjs → getSignedSessionId-BxOK-Tdo.cjs} +3 -3
  34. package/dist/{getSignedSessionId-BCU987hO.cjs.map → getSignedSessionId-BxOK-Tdo.cjs.map} +1 -1
  35. package/dist/{getVerifiedCredentialForWalletAccount-DSSDwOyq.cjs → getVerifiedCredentialForWalletAccount-B46O0B48.cjs} +3 -3
  36. package/dist/{getVerifiedCredentialForWalletAccount-DSSDwOyq.cjs.map → getVerifiedCredentialForWalletAccount-B46O0B48.cjs.map} +1 -1
  37. package/dist/{getVerifiedCredentialForWalletAccount-DKJcLLHq.native.esm.js → getVerifiedCredentialForWalletAccount-CyykSi-M.native.esm.js} +2 -2
  38. package/dist/{getVerifiedCredentialForWalletAccount-DKJcLLHq.native.esm.js.map → getVerifiedCredentialForWalletAccount-CyykSi-M.native.esm.js.map} +1 -1
  39. package/dist/{getVerifiedCredentialForWalletAccount-Ozctwnyv.esm.js → getVerifiedCredentialForWalletAccount-DzwIoeHm.esm.js} +2 -2
  40. package/dist/{getVerifiedCredentialForWalletAccount-Ozctwnyv.esm.js.map → getVerifiedCredentialForWalletAccount-DzwIoeHm.esm.js.map} +1 -1
  41. package/dist/index.cjs +225 -117
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/index.esm.js +225 -118
  44. package/dist/index.esm.js.map +1 -1
  45. package/dist/index.native.esm.js +225 -118
  46. package/dist/index.native.esm.js.map +1 -1
  47. package/dist/{isMfaRequiredForAction-CMClgbT0.cjs → isMfaRequiredForAction-6N6JB7wa.cjs} +5 -3
  48. package/dist/isMfaRequiredForAction-6N6JB7wa.cjs.map +1 -0
  49. package/dist/{isMfaRequiredForAction-DSX-TV2z.native.esm.js → isMfaRequiredForAction-D9p_du8C.esm.js} +5 -3
  50. package/dist/isMfaRequiredForAction-D9p_du8C.esm.js.map +1 -0
  51. package/dist/{isMfaRequiredForAction-C1u4Z__n.esm.js → isMfaRequiredForAction-DUvZEpjA.native.esm.js} +5 -3
  52. package/dist/isMfaRequiredForAction-DUvZEpjA.native.esm.js.map +1 -0
  53. package/dist/modules/auth/externalAuth/requestExternalAuthElevatedToken/requestExternalAuthElevatedToken.d.ts +1 -0
  54. package/dist/modules/auth/externalAuth/requestExternalAuthElevatedToken/requestExternalAuthElevatedToken.d.ts.map +1 -1
  55. package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts +2 -1
  56. package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts.map +1 -1
  57. package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts +1 -0
  58. package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts.map +1 -1
  59. package/dist/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.d.ts +2 -1
  60. package/dist/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.d.ts.map +1 -1
  61. package/dist/modules/captcha/setCaptchaToken/setCaptchaToken.d.ts +2 -1
  62. package/dist/modules/captcha/setCaptchaToken/setCaptchaToken.d.ts.map +1 -1
  63. package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts.map +1 -1
  64. package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts +1 -1
  65. package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts.map +1 -1
  66. package/dist/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.d.ts +1 -1
  67. package/dist/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.d.ts.map +1 -1
  68. package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts.map +1 -1
  69. package/dist/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.d.ts.map +1 -1
  70. package/dist/modules/checkout/utils/clearCheckoutSessionToken/clearCheckoutSessionToken.d.ts +22 -0
  71. package/dist/modules/checkout/utils/clearCheckoutSessionToken/clearCheckoutSessionToken.d.ts.map +1 -0
  72. package/dist/modules/checkout/utils/clearCheckoutSessionToken/index.d.ts +3 -0
  73. package/dist/modules/checkout/utils/clearCheckoutSessionToken/index.d.ts.map +1 -0
  74. package/dist/modules/checkout/utils/subscribeToCheckoutTransaction/subscribeToCheckoutTransaction.d.ts.map +1 -1
  75. package/dist/modules/checkout/utils/withCheckoutSessionTokenCleanupOn401/index.d.ts +3 -0
  76. package/dist/modules/checkout/utils/withCheckoutSessionTokenCleanupOn401/index.d.ts.map +1 -0
  77. package/dist/modules/checkout/utils/withCheckoutSessionTokenCleanupOn401/withCheckoutSessionTokenCleanupOn401.d.ts +16 -0
  78. package/dist/modules/checkout/utils/withCheckoutSessionTokenCleanupOn401/withCheckoutSessionTokenCleanupOn401.d.ts.map +1 -0
  79. package/dist/modules/mfa/consumeMfaToken/consumeMfaToken.d.ts +2 -1
  80. package/dist/modules/mfa/consumeMfaToken/consumeMfaToken.d.ts.map +1 -1
  81. package/dist/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.d.ts +2 -1
  82. package/dist/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.d.ts.map +1 -1
  83. package/dist/modules/otp/verifyOTP/verifyOTP.d.ts +2 -1
  84. package/dist/modules/otp/verifyOTP/verifyOTP.d.ts.map +1 -1
  85. package/dist/modules/user/refreshAuth/refreshAuth.d.ts +2 -1
  86. package/dist/modules/user/refreshAuth/refreshAuth.d.ts.map +1 -1
  87. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/buildUriDeeplinkOptions.d.ts +28 -0
  88. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/buildUriDeeplinkOptions.d.ts.map +1 -0
  89. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/index.d.ts +2 -0
  90. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/index.d.ts.map +1 -0
  91. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/resolveUriConnectionType/index.d.ts +2 -0
  92. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/resolveUriConnectionType/index.d.ts.map +1 -0
  93. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/resolveUriConnectionType/resolveUriConnectionType.d.ts +17 -0
  94. package/dist/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/resolveUriConnectionType/resolveUriConnectionType.d.ts.map +1 -0
  95. package/dist/modules/walletOptionsCatalogue/getConnectionOptionPriority/getConnectionOptionPriority.d.ts.map +1 -1
  96. package/dist/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.d.ts +5 -15
  97. package/dist/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.d.ts.map +1 -1
  98. package/dist/modules/walletOptionsCatalogue/resolveWalletBookWalletOptionKey/resolveWalletBookWalletOptionKey.d.ts +1 -1
  99. package/dist/modules/walletOptionsCatalogue/sortConnectionOptions/sortConnectionOptions.d.ts +1 -1
  100. package/dist/modules/walletOptionsCatalogue/sortWalletOptions/sortWalletOptions.d.ts +1 -1
  101. package/dist/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.d.ts +25 -37
  102. package/dist/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.d.ts.map +1 -1
  103. package/dist/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.d.ts +1 -1
  104. package/dist/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.d.ts.map +1 -1
  105. package/dist/modules/wallets/reconcileWalletAccountsAgainstClient/index.d.ts +2 -0
  106. package/dist/modules/wallets/reconcileWalletAccountsAgainstClient/index.d.ts.map +1 -0
  107. package/dist/modules/wallets/reconcileWalletAccountsAgainstClient/reconcileWalletAccountsAgainstClient.d.ts +25 -0
  108. package/dist/modules/wallets/reconcileWalletAccountsAgainstClient/reconcileWalletAccountsAgainstClient.d.ts.map +1 -0
  109. package/dist/services/instrumentation/connectLoggerToInstrumentation/connectLoggerToInstrumentation.d.ts.map +1 -1
  110. package/dist/services/instrumentation/constants.d.ts +22 -0
  111. package/dist/services/instrumentation/constants.d.ts.map +1 -1
  112. package/dist/services/instrumentation/scrubParameters/scrubParameters.d.ts.map +1 -1
  113. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  114. package/dist/utils/appendConnectionUriToDeeplink/appendConnectionUriToDeeplink.d.ts +29 -0
  115. package/dist/utils/appendConnectionUriToDeeplink/appendConnectionUriToDeeplink.d.ts.map +1 -0
  116. package/dist/utils/appendConnectionUriToDeeplink/index.d.ts +2 -0
  117. package/dist/utils/appendConnectionUriToDeeplink/index.d.ts.map +1 -0
  118. package/dist/waas.cjs +4 -4
  119. package/dist/waas.esm.js +3 -3
  120. package/dist/waas.native.esm.js +3 -3
  121. package/dist/waasCore.cjs +4 -4
  122. package/dist/waasCore.esm.js +3 -3
  123. package/dist/waasCore.native.esm.js +3 -3
  124. package/package.json +2 -2
  125. package/dist/InvalidParamError-9kQBK3sP.native.esm.js.map +0 -1
  126. package/dist/InvalidParamError-DQvZQdQ9.cjs.map +0 -1
  127. package/dist/InvalidParamError-Za4cvW7K.esm.js.map +0 -1
  128. package/dist/NotWaasWalletAccountError-BTMvHTA8.native.esm.js.map +0 -1
  129. package/dist/NotWaasWalletAccountError-By3Y4taq.esm.js.map +0 -1
  130. package/dist/NotWaasWalletAccountError-Ciq7b-Y6.cjs.map +0 -1
  131. package/dist/getNetworkProviderFromNetworkId-BA0CHZzu.cjs.map +0 -1
  132. package/dist/getNetworkProviderFromNetworkId-COptFPwJ.native.esm.js.map +0 -1
  133. package/dist/getNetworkProviderFromNetworkId-RWcIZDgC.esm.js.map +0 -1
  134. package/dist/isMfaRequiredForAction-C1u4Z__n.esm.js.map +0 -1
  135. package/dist/isMfaRequiredForAction-CMClgbT0.cjs.map +0 -1
  136. package/dist/isMfaRequiredForAction-DSX-TV2z.native.esm.js.map +0 -1
  137. package/dist/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.d.ts +0 -23
  138. package/dist/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- const require_InvalidParamError = require('./InvalidParamError-DQvZQdQ9.cjs');
1
+ const require_InvalidParamError = require('./InvalidParamError-DEmLKJKZ.cjs');
2
2
 
3
3
  //#region src/modules/mfa/consumeMfaToken/consumeMfaToken.ts
4
4
  /**
@@ -11,6 +11,7 @@ const require_InvalidParamError = require('./InvalidParamError-DQvZQdQ9.cjs');
11
11
  * @returns The MFA token that was consumed.
12
12
  * @throws Error if no MFA token is found.
13
13
  * @instrumented
14
+ * @redact-params
14
15
  */
15
16
  const consumeMfaToken = (client = require_InvalidParamError.getDefaultClient()) => {
16
17
  const core = require_InvalidParamError.getCore(client);
@@ -29,7 +30,8 @@ const __consumeMfaToken_wrapped = require_InvalidParamError.instrumentFunction({
29
30
  } catch {
30
31
  return;
31
32
  }
32
- }
33
+ },
34
+ redactAll: true
33
35
  });
34
36
 
35
37
  //#endregion
@@ -91,4 +93,4 @@ Object.defineProperty(exports, 'isMfaRequiredForAction', {
91
93
  return isMfaRequiredForAction;
92
94
  }
93
95
  });
94
- //# sourceMappingURL=isMfaRequiredForAction-CMClgbT0.cjs.map
96
+ //# sourceMappingURL=isMfaRequiredForAction-6N6JB7wa.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isMfaRequiredForAction-6N6JB7wa.cjs","names":["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 * @redact-params\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 * @not-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":";;;;;;;;;;;;;;;AAmBA,MAAE,mBAAsB,SAAU,4CAAU,KAAA;;;AAK1C,yCAAY,UAAI,qBAAA;kBAGhB,UAAO,MACR,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACdD,MAAa,gBAAgB,OAAO,SAASA,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 { D as instrumentFunction, F as getDefaultClient, u as createApiClient, w as assertDefined, z as getCore } from "./InvalidParamError-9kQBK3sP.native.esm.js";
1
+ import { B as getCore, D as instrumentFunction, I as getDefaultClient, u as createApiClient, w as assertDefined } from "./InvalidParamError-BPMi0iWC.esm.js";
2
2
 
3
3
  //#region src/modules/mfa/consumeMfaToken/consumeMfaToken.ts
4
4
  /**
@@ -11,6 +11,7 @@ import { D as instrumentFunction, F as getDefaultClient, u as createApiClient, w
11
11
  * @returns The MFA token that was consumed.
12
12
  * @throws Error if no MFA token is found.
13
13
  * @instrumented
14
+ * @redact-params
14
15
  */
15
16
  const consumeMfaToken = (client = getDefaultClient()) => {
16
17
  const core = getCore(client);
@@ -29,7 +30,8 @@ const __consumeMfaToken_wrapped = instrumentFunction({
29
30
  } catch {
30
31
  return;
31
32
  }
32
- }
33
+ },
34
+ redactAll: true
33
35
  });
34
36
 
35
37
  //#endregion
@@ -74,4 +76,4 @@ const isMfaRequiredForAction = async ({ mfaAction }, client = getDefaultClient()
74
76
 
75
77
  //#endregion
76
78
  export { getMfaMethods as n, __consumeMfaToken_wrapped as r, isMfaRequiredForAction as t };
77
- //# sourceMappingURL=isMfaRequiredForAction-DSX-TV2z.native.esm.js.map
79
+ //# sourceMappingURL=isMfaRequiredForAction-D9p_du8C.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isMfaRequiredForAction-D9p_du8C.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 * @redact-params\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 * @not-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":";;;;;;;;;;;;;;;AAmBA,MAAE,mBAAsB,SAAU,kBAAU,KAAA;;;AAK1C,eAAY,UAAI,qBAAA;kBAGhB,UAAO,MACR,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACdD,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,4 +1,4 @@
1
- import { D as instrumentFunction, F as getDefaultClient, u as createApiClient, w as assertDefined, z as getCore } from "./InvalidParamError-Za4cvW7K.esm.js";
1
+ import { B as getCore, D as instrumentFunction, I as getDefaultClient, u as createApiClient, w as assertDefined } from "./InvalidParamError-CDmVW2DS.native.esm.js";
2
2
 
3
3
  //#region src/modules/mfa/consumeMfaToken/consumeMfaToken.ts
4
4
  /**
@@ -11,6 +11,7 @@ import { D as instrumentFunction, F as getDefaultClient, u as createApiClient, w
11
11
  * @returns The MFA token that was consumed.
12
12
  * @throws Error if no MFA token is found.
13
13
  * @instrumented
14
+ * @redact-params
14
15
  */
15
16
  const consumeMfaToken = (client = getDefaultClient()) => {
16
17
  const core = getCore(client);
@@ -29,7 +30,8 @@ const __consumeMfaToken_wrapped = instrumentFunction({
29
30
  } catch {
30
31
  return;
31
32
  }
32
- }
33
+ },
34
+ redactAll: true
33
35
  });
34
36
 
35
37
  //#endregion
@@ -74,4 +76,4 @@ const isMfaRequiredForAction = async ({ mfaAction }, client = getDefaultClient()
74
76
 
75
77
  //#endregion
76
78
  export { getMfaMethods as n, __consumeMfaToken_wrapped as r, isMfaRequiredForAction as t };
77
- //# sourceMappingURL=isMfaRequiredForAction-C1u4Z__n.esm.js.map
79
+ //# sourceMappingURL=isMfaRequiredForAction-DUvZEpjA.native.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isMfaRequiredForAction-DUvZEpjA.native.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 * @redact-params\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 * @not-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":";;;;;;;;;;;;;;;AAmBA,MAAE,mBAAsB,SAAU,kBAAU,KAAA;;;AAK1C,eAAY,UAAI,qBAAA;kBAGhB,UAAO,MACR,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACdD,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"}
@@ -15,6 +15,7 @@ type RequestExternalAuthElevatedTokenParams = {
15
15
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
16
16
  * @returns A promise that resolves to the assertion response containing the elevated access token.
17
17
  * @instrumented
18
+ * @redact-params
18
19
  */
19
20
  export declare const requestExternalAuthElevatedToken: ({ externalJwt }: RequestExternalAuthElevatedTokenParams, client?: import("../../../../exports").DynamicClient) => Promise<import("@dynamic-labs/sdk-api-core").ExternalAuthAssertionResponse>;
20
21
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"requestExternalAuthElevatedToken.d.ts","sourceRoot":"","sources":["../../../../../src/modules/auth/externalAuth/requestExternalAuthElevatedToken/requestExternalAuthElevatedToken.ts"],"names":[],"mappings":"AAMA,KAAK,sCAAsC,GAAG;IAC5C,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gCAAgC,oBAC1B,sCAAsC,sIA2BxD,CAAC"}
1
+ {"version":3,"file":"requestExternalAuthElevatedToken.d.ts","sourceRoot":"","sources":["../../../../../src/modules/auth/externalAuth/requestExternalAuthElevatedToken/requestExternalAuthElevatedToken.ts"],"names":[],"mappings":"AAMA,KAAK,sCAAsC,GAAG;IAC5C,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,gCAAgC,oBAC1B,sCAAsC,sIA2BxD,CAAC"}
@@ -13,7 +13,8 @@ type RegisterPasskeyParams = {
13
13
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
14
14
  * @returns A promise that resolves to the registration response.
15
15
  * @throws NoWebAuthNSupportError If WebAuthn is not supported by the browser.
16
- * @instrumented
16
+ * @instrumented
17
+ * @redact-params
17
18
  */
18
19
  export declare const registerPasskey: ({ createMfaToken }?: RegisterPasskeyParams, client?: import("../../../../exports").DynamicClient) => Promise<import("@dynamic-labs/sdk-api-core").VerifyResponse>;
19
20
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"registerPasskey.d.ts","sourceRoot":"","sources":["../../../../../src/modules/auth/passkeys/registerPasskey/registerPasskey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAUjE,KAAK,qBAAqB,GAAG;IAC3B,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,wBACN,qBAAqB,uHAuB1C,CAAC"}
1
+ {"version":3,"file":"registerPasskey.d.ts","sourceRoot":"","sources":["../../../../../src/modules/auth/passkeys/registerPasskey/registerPasskey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAUjE,KAAK,qBAAqB,GAAG;IAC3B,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,wBACN,qBAAqB,uHAuB1C,CAAC"}
@@ -12,6 +12,7 @@ export type SignInWithPasskeyParams = {
12
12
  * @returns A promise that resolves to the authentication response.
13
13
  * @throws NoWebAuthNSupportError If WebAuthn is not supported by the browser.
14
14
  * @instrumented
15
+ * @redact-params
15
16
  */
16
17
  export declare const signInWithPasskey: ({ relatedOriginRpId }?: SignInWithPasskeyParams, client?: import("../../../../exports").DynamicClient) => Promise<import("@dynamic-labs/sdk-api-core").VerifyResponse>;
17
18
  //# sourceMappingURL=signInWithPasskey.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"signInWithPasskey.d.ts","sourceRoot":"","sources":["../../../../../src/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,uBAAuB,GAAG;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,2BACL,uBAAuB,uHA0B/C,CAAC"}
1
+ {"version":3,"file":"signInWithPasskey.d.ts","sourceRoot":"","sources":["../../../../../src/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,uBAAuB,GAAG;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB,2BACL,uBAAuB,uHA0B/C,CAAC"}
@@ -8,7 +8,8 @@ type UnlinkSocialAccountParams = {
8
8
  * @param params.verifiedCredentialId - The verified credential ID of the social account to unlink.
9
9
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
10
10
  * @returns A promise that resolves to the verify response.
11
- * @instrumented
11
+ * @instrumented
12
+ * @redact-params
12
13
  */
13
14
  export declare const unlinkSocialAccount: ({ verifiedCredentialId }: UnlinkSocialAccountParams, client?: import("../../../../../exports").DynamicClient) => Promise<VerifyResponse>;
14
15
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"unlinkSocialAccount.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAQjE,KAAK,yBAAyB,GAAG;IAC/B,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,6BACJ,yBAAyB,8DAElD,OAAO,CAAC,cAAc,CAuBxB,CAAC"}
1
+ {"version":3,"file":"unlinkSocialAccount.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAQjE,KAAK,yBAAyB,GAAG;IAC/B,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,6BACJ,yBAAyB,8DAElD,OAAO,CAAC,cAAc,CAuBxB,CAAC"}
@@ -6,7 +6,8 @@ type SetCaptchaTokenProps = {
6
6
  *
7
7
  * @param params.captchaToken - The captcha token to set.
8
8
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
9
- * @instrumented
9
+ * @instrumented
10
+ * @redact-params
10
11
  */
11
12
  export declare const setCaptchaToken: ({ captchaToken }: SetCaptchaTokenProps, client?: import("../../../exports").DynamicClient) => void;
12
13
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"setCaptchaToken.d.ts","sourceRoot":"","sources":["../../../../src/modules/captcha/setCaptchaToken/setCaptchaToken.ts"],"names":[],"mappings":"AAGA,KAAK,oBAAoB,GAAG;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,qBACR,oBAAoB,4DAQvC,CAAC"}
1
+ {"version":3,"file":"setCaptchaToken.d.ts","sourceRoot":"","sources":["../../../../src/modules/captcha/setCaptchaToken/setCaptchaToken.ts"],"names":[],"mappings":"AAGA,KAAK,oBAAoB,GAAG;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,qBACR,oBAAoB,4DAQvC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"attachCheckoutTransactionSource.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EACV,iCAAiC,EACjC,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAG3B,KAAK,2CAA2C,GAAG;IACjD,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,iEAAiE;IACjE,WAAW,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,aAAa,EAAE,KAAK,CAAC;IACrB,+BAA+B;IAC/B,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,6CAA6C,GAAG;IACnD;;;;OAIG;IACH,gBAAgB,EAAE,iCAAiC,CAAC;IACpD,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,qCAAqC,GAC7C,2CAA2C,GAC3C,6CAA6C,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,+BAA+B,WAClC,qCAAqC,wDAE5C,OAAO,CAAC,mBAAmB,CA0B7B,CAAC"}
1
+ {"version":3,"file":"attachCheckoutTransactionSource.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EACV,iCAAiC,EACjC,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAI3B,KAAK,2CAA2C,GAAG;IACjD,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,iEAAiE;IACjE,WAAW,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,aAAa,EAAE,KAAK,CAAC;IACrB,+BAA+B;IAC/B,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,6CAA6C,GAAG;IACnD;;;;OAIG;IACH,gBAAgB,EAAE,iCAAiC,CAAC;IACpD,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,qCAAqC,GAC7C,2CAA2C,GAC3C,6CAA6C,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,+BAA+B,WAClC,qCAAqC,wDAE5C,OAAO,CAAC,mBAAmB,CAiC7B,CAAC"}
@@ -18,7 +18,7 @@ export type BroadcastCheckoutTransactionParams = {
18
18
  * @param params BroadcastCheckoutTransactionParams - The transaction ID and optional tx hash.
19
19
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
20
20
  * @returns The updated checkout transaction
21
- * @instrumented
21
+ * @instrumented
22
22
  */
23
23
  export declare const broadcastCheckoutTransaction: ({ transactionId, txHash }: BroadcastCheckoutTransactionParams, client?: DynamicClient) => Promise<CheckoutTransaction>;
24
24
  //# sourceMappingURL=broadcastCheckoutTransaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"broadcastCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,MAAM,MAAM,kCAAkC,GAAG;IAC/C,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,4BAA4B,8BACZ,kCAAkC,WACrD,aAAa,KACpB,OAAO,CAAC,mBAAmB,CAU7B,CAAC"}
1
+ {"version":3,"file":"broadcastCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAI3D,MAAM,MAAM,kCAAkC,GAAG;IAC/C,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,4BAA4B,8BACZ,kCAAkC,WACrD,aAAa,KACpB,OAAO,CAAC,mBAAmB,CAiB7B,CAAC"}
@@ -8,7 +8,7 @@ export type CancelCheckoutTransactionParams = {
8
8
  * @param params CancelCheckoutTransactionParams - The transaction to cancel.
9
9
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
10
10
  * @returns The cancelled checkout transaction
11
- * @instrumented
11
+ * @instrumented
12
12
  */
13
13
  export declare const cancelCheckoutTransaction: ({ transactionId }: CancelCheckoutTransactionParams, client?: import("../../../exports").DynamicClient) => Promise<CheckoutTransaction>;
14
14
  //# sourceMappingURL=cancelCheckoutTransaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cancelCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAI7D,MAAM,MAAM,+BAA+B,GAAG;IAC5C,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,sBACjB,+BAA+B,wDAEjD,OAAO,CAAC,mBAAmB,CAgB7B,CAAC"}
1
+ {"version":3,"file":"cancelCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAK7D,MAAM,MAAM,+BAA+B,GAAG;IAC5C,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,sBACjB,+BAA+B,wDAEjD,OAAO,CAAC,mBAAmB,CAoB7B,CAAC"}
@@ -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;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,gEAMnC,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;AAI7D,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,gEAMnC,iCAAiC,wDAEnC,OAAO,CAAC,mBAAmB,CAqB7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"prepareCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;;OAIG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,gFAKlC,gCAAgC,wDAElC,OAAO,CAAC,mBAAmB,CAa7B,CAAC"}
1
+ {"version":3,"file":"prepareCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAI7D,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;;OAIG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,gFAKlC,gCAAgC,wDAElC,OAAO,CAAC,mBAAmB,CAqB7B,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { DynamicClient } from '../../../../client/types';
2
+ export type ClearCheckoutSessionTokenParams = {
3
+ transactionId: string;
4
+ };
5
+ /**
6
+ * Removes the locally stored checkout session token for the given transaction.
7
+ *
8
+ * The checkout session token is the anonymous credential that authorizes
9
+ * mutations to a single in-flight checkout transaction. Once the transaction
10
+ * has reached a terminal state (cancelled, expired, failed, completed) it can
11
+ * no longer be advanced, and the token is dead weight that should not be
12
+ * persisted in browser storage — leaving it around lets a later XSS payload
13
+ * exfiltrate a credential with no further use, and it can also confuse the
14
+ * SDK on subsequent loads into believing an active session exists.
15
+ *
16
+ * The server-side revocation lives in dashboard-api; this is the SDK-side
17
+ * defense-in-depth.
18
+ *
19
+ * @not-instrumented
20
+ */
21
+ export declare const clearCheckoutSessionToken: ({ transactionId }: ClearCheckoutSessionTokenParams, client: DynamicClient) => Promise<void>;
22
+ //# sourceMappingURL=clearCheckoutSessionToken.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clearCheckoutSessionToken.d.ts","sourceRoot":"","sources":["../../../../../src/modules/checkout/utils/clearCheckoutSessionToken/clearCheckoutSessionToken.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,MAAM,MAAM,+BAA+B,GAAG;IAC5C,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,yBAAyB,sBACjB,+BAA+B,UAC1C,aAAa,KACpB,OAAO,CAAC,IAAI,CAMd,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { clearCheckoutSessionToken } from './clearCheckoutSessionToken';
2
+ export type { ClearCheckoutSessionTokenParams } from './clearCheckoutSessionToken';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/checkout/utils/clearCheckoutSessionToken/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,YAAY,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"subscribeToCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../../src/modules/checkout/utils/subscribeToCheckoutTransaction/subscribeToCheckoutTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAO9D,OAAO,cAAc,CAAC;AAgBtB,MAAM,MAAM,oCAAoC,GAAG;IACjD,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;GAOG;AAEH,eAAO,MAAM,8BAA8B,sBACtB,oCAAoC,UAC/C,aAAa,KACpB,OAAO,CAAC,IAAI,CA4Dd,CAAC"}
1
+ {"version":3,"file":"subscribeToCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../../src/modules/checkout/utils/subscribeToCheckoutTransaction/subscribeToCheckoutTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAO9D,OAAO,cAAc,CAAC;AAmBtB,MAAM,MAAM,oCAAoC,GAAG;IACjD,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;GAOG;AAEH,eAAO,MAAM,8BAA8B,sBACtB,oCAAoC,UAC/C,aAAa,KACpB,OAAO,CAAC,IAAI,CAyEd,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { withCheckoutSessionTokenCleanupOn401 } from './withCheckoutSessionTokenCleanupOn401';
2
+ export type { WithCheckoutSessionTokenCleanupOn401Params } from './withCheckoutSessionTokenCleanupOn401';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/checkout/utils/withCheckoutSessionTokenCleanupOn401/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC;AAC9F,YAAY,EAAE,0CAA0C,EAAE,MAAM,wCAAwC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { DynamicClient } from '../../../../client/types';
2
+ export type WithCheckoutSessionTokenCleanupOn401Params<T> = {
3
+ call: () => Promise<T>;
4
+ transactionId: string;
5
+ };
6
+ /**
7
+ * Checkout mutation routes are guarded server-side only by session-token
8
+ * validation, so a 401 means the token is dead (revoked, expired, deleted,
9
+ * or invalid). Leaving a dead token in `localStorage` widens the XSS
10
+ * exfiltration surface for no benefit and makes the next SDK load attempt
11
+ * requests that are guaranteed to fail.
12
+ *
13
+ * @not-instrumented
14
+ */
15
+ export declare const withCheckoutSessionTokenCleanupOn401: <T>({ call, transactionId }: WithCheckoutSessionTokenCleanupOn401Params<T>, client: DynamicClient) => Promise<T>;
16
+ //# sourceMappingURL=withCheckoutSessionTokenCleanupOn401.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withCheckoutSessionTokenCleanupOn401.d.ts","sourceRoot":"","sources":["../../../../../src/modules/checkout/utils/withCheckoutSessionTokenCleanupOn401/withCheckoutSessionTokenCleanupOn401.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAG9D,MAAM,MAAM,0CAA0C,CAAC,CAAC,IAAI;IAC1D,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,oCAAoC,GAAU,CAAC,2BACjC,0CAA0C,CAAC,CAAC,CAAC,UAC9D,aAAa,KACpB,OAAO,CAAC,CAAC,CAgBX,CAAC"}
@@ -7,7 +7,8 @@
7
7
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
8
8
  * @returns The MFA token that was consumed.
9
9
  * @throws Error if no MFA token is found.
10
- * @instrumented
10
+ * @instrumented
11
+ * @redact-params
11
12
  */
12
13
  export declare const consumeMfaToken: (client?: import("../../../exports").DynamicClient) => string;
13
14
  //# sourceMappingURL=consumeMfaToken.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"consumeMfaToken.d.ts","sourceRoot":"","sources":["../../../../src/modules/mfa/consumeMfaToken/consumeMfaToken.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,+DAY3B,CAAC"}
1
+ {"version":3,"file":"consumeMfaToken.d.ts","sourceRoot":"","sources":["../../../../src/modules/mfa/consumeMfaToken/consumeMfaToken.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,+DAY3B,CAAC"}
@@ -6,7 +6,8 @@
6
6
  *
7
7
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
8
8
  * @returns A promise that resolves to the newly generated recovery codes.
9
- * @instrumented
9
+ * @instrumented
10
+ * @redact-params
10
11
  */
11
12
  export declare const createNewMfaRecoveryCodes: (client?: import("../../../exports").DynamicClient) => Promise<import("@dynamic-labs/sdk-api-core").MFARegenRecoveryCodesResponse>;
12
13
  //# sourceMappingURL=createNewMfaRecoveryCodes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createNewMfaRecoveryCodes.d.ts","sourceRoot":"","sources":["../../../../src/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,oIASrC,CAAC"}
1
+ {"version":3,"file":"createNewMfaRecoveryCodes.d.ts","sourceRoot":"","sources":["../../../../src/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,oIASrC,CAAC"}
@@ -15,7 +15,8 @@ export type VerifyOTPParams = {
15
15
  * @param params.verificationToken - The token received from the OTP verification process.
16
16
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
17
17
  * @returns A promise that resolves to the verify response object upon successful verification.
18
- * @instrumented
18
+ * @instrumented
19
+ * @redact-params
19
20
  */
20
21
  export declare const verifyOTP: ({ otpVerification, verificationToken, requestedScopes }: VerifyOTPParams, client?: import("../../../exports").DynamicClient) => Promise<VerifyResponse>;
21
22
  //# sourceMappingURL=verifyOTP.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"verifyOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/verifyOTP/verifyOTP.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAI7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,SAAS,4DACqC,eAAe,wDAEvE,OAAO,CAAC,cAAc,CAqBxB,CAAC"}
1
+ {"version":3,"file":"verifyOTP.d.ts","sourceRoot":"","sources":["../../../../src/modules/otp/verifyOTP/verifyOTP.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAI7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,4DACqC,eAAe,wDAEvE,OAAO,CAAC,cAAc,CAqBxB,CAAC"}
@@ -7,7 +7,8 @@ import type { VerifyResponse } from '@dynamic-labs/sdk-api-core';
7
7
  *
8
8
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
9
9
  * @returns A promise that resolves to the verify response.
10
- * @instrumented
10
+ * @instrumented
11
+ * @redact-params
11
12
  */
12
13
  export declare const refreshAuth: (client?: import("../../../exports").DynamicClient) => Promise<VerifyResponse>;
13
14
  //# sourceMappingURL=refreshAuth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"refreshAuth.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/refreshAuth/refreshAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAOjE;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,yDAErB,OAAO,CAAC,cAAc,CAWxB,CAAC"}
1
+ {"version":3,"file":"refreshAuth.d.ts","sourceRoot":"","sources":["../../../../src/modules/user/refreshAuth/refreshAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAOjE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,yDAErB,OAAO,CAAC,cAAc,CAWxB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import type { WalletBookSchema } from '../../legacyWalletBook/legacyWalletBook.types';
2
+ import type { ConnectionOptionForWalletOption } from '../groupOptionsByWalletOption/groupOptionsByWalletOption';
3
+ type BuildUriDeeplinkOptionsParams = {
4
+ walletBook: WalletBookSchema;
5
+ };
6
+ /**
7
+ * Builds the URI-deeplink catalogue options from a fetched wallet book.
8
+ * Applies the WalletConnect-specific eligibility filter
9
+ * (`shouldFilterWalletForWalletConnect`) so embedded wallets and entries
10
+ * without `sign_v2` support are excluded — same surface as
11
+ * `getWalletConnectCatalog`.
12
+ *
13
+ * Each emitted option carries the wallet's mobile deeplinks. Customers
14
+ * combine these with their chain's connection URI via
15
+ * `appendConnectionUriToDeeplink` to open the wallet's app:
16
+ *
17
+ * - `'walletConnect'`: mint via `connectWithWalletConnect<Chain>`.
18
+ * - `'metamaskSdkUri'`: mint via `connectWithMetaMaskUriEvm` or
19
+ * `connectWithMetaMaskUriSolana`. Emitted only for the MetaMask
20
+ * wallet entry — see `resolveUriConnectionType`.
21
+ *
22
+ * @param params.walletBook - The fetched wallet book.
23
+ * @returns Tagged options paired with their wallet option keys.
24
+ * @not-instrumented
25
+ */
26
+ export declare const buildUriDeeplinkOptions: ({ walletBook, }: BuildUriDeeplinkOptionsParams) => ConnectionOptionForWalletOption[];
27
+ export {};
28
+ //# sourceMappingURL=buildUriDeeplinkOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildUriDeeplinkOptions.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/buildUriDeeplinkOptions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,gBAAgB,EAEjB,MAAM,+CAA+C,CAAC;AACvD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,0DAA0D,CAAC;AAiBhH,KAAK,6BAA6B,GAAG;IACnC,UAAU,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,uBAAuB,oBAEjC,6BAA6B,KAAG,+BAA+B,EAgCjE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { buildUriDeeplinkOptions } from './buildUriDeeplinkOptions';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { resolveUriConnectionType } from './resolveUriConnectionType';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/resolveUriConnectionType/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,17 @@
1
+ type ResolveUriConnectionTypeParams = {
2
+ walletOptionKey: string;
3
+ };
4
+ /**
5
+ * Picks the connection-option `type` discriminator for a wallet-book-
6
+ * derived URI deeplink option. MetaMask is steered toward its own
7
+ * MetaMask SDK URI connection extension (`metamaskSdkUri`) so we route
8
+ * customers off generic WalletConnect for that wallet; every other
9
+ * wallet uses the standard `walletConnect` discriminator.
10
+ *
11
+ * @param params.walletOptionKey - The resolved wallet option key.
12
+ * @returns The connection-option discriminator to emit.
13
+ * @not-instrumented
14
+ */
15
+ export declare const resolveUriConnectionType: ({ walletOptionKey, }: ResolveUriConnectionTypeParams) => "metamaskSdkUri" | "walletConnect";
16
+ export {};
17
+ //# sourceMappingURL=resolveUriConnectionType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveUriConnectionType.d.ts","sourceRoot":"","sources":["../../../../../src/modules/walletOptionsCatalogue/buildUriDeeplinkOptions/resolveUriConnectionType/resolveUriConnectionType.ts"],"names":[],"mappings":"AAAA,KAAK,8BAA8B,GAAG;IACpC,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,yBAElC,8BAA8B,KAAG,gBAAgB,GAAG,eACc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getConnectionOptionPriority.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/getConnectionOptionPriority/getConnectionOptionPriority.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAiB9E,KAAK,iCAAiC,GAAG;IACvC,MAAM,EAAE,sBAAsB,CAAC;CAChC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,gBAErC,iCAAiC,KAAG,MACE,CAAC"}
1
+ {"version":3,"file":"getConnectionOptionPriority.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/getConnectionOptionPriority/getConnectionOptionPriority.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAkB9E,KAAK,iCAAiC,GAAG;IACvC,MAAM,EAAE,sBAAsB,CAAC;CAChC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,gBAErC,iCAAiC,KAAG,MACE,CAAC"}
@@ -1,21 +1,11 @@
1
1
  import type { GetWalletOptionsCatalogueParams, WalletOptionsCatalogue } from '../walletOptionsCatalogue.types';
2
2
  /**
3
- * Returns a catalogue of the external wallet options a user can sign in
4
- * with through this client. Each wallet option carries an ordered
5
- * `connectionOptions` array `withWalletProvider` (direct), `walletConnect`
6
- * (deeplink/QR), or `inAppBrowser` (mobile webview). Wallet options without
7
- * any matching connections are omitted.
3
+ * Returns the catalogue of external wallet options a user can sign in
4
+ * with through this client. Always includes installed wallet providers;
5
+ * pass `includeMobileOptions: true` to additionally surface
6
+ * WalletConnect, in-app-browser, and install links.
8
7
  *
9
- * `includeWithWalletProvider` defaults to `true`; all other inclusion flags
10
- * are opt-in. `walletOptionOrdering` defaults to `'relevance'` (Dynamic's
11
- * recommended order); pass `'alphabetical'` to sort by wallet option name
12
- * within each option-priority tier.
13
- *
14
- * The wallet book is fetched only when an enabled flag needs it
15
- * (`includeWalletConnect`, `includeInAppBrowser`). Calls that only need
16
- * `includeWithWalletProvider` skip the fetch entirely.
17
- *
18
- * @param [params] - Inclusion flags + ordering preference.
8
+ * @param [params] - Inclusion flag + ordering preference.
19
9
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
20
10
  * @returns A promise that resolves to the wallet options catalogue.
21
11
  * @not-instrumented
@@ -1 +1 @@
1
- {"version":3,"file":"getWalletOptionsCatalogue.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,+BAA+B,EAG/B,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AAIzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,yBAAyB,YAC5B,+BAA+B,wDAEtC,OAAO,CAAC,sBAAsB,CA8EhC,CAAC"}
1
+ {"version":3,"file":"getWalletOptionsCatalogue.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,+BAA+B,EAG/B,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AAIzC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,YAC5B,+BAA+B,wDAEtC,OAAO,CAAC,sBAAsB,CA6DhC,CAAC"}
@@ -5,7 +5,7 @@ type ResolveWalletBookWalletOptionKeyParams = {
5
5
  };
6
6
  /**
7
7
  * Resolves which wallet option (group) a wallet book entry belongs to. Used
8
- * by the catalogue's wallet-book-driven transformers (`walletConnect`,
8
+ * by the catalogue's wallet-book-driven transformers (URI deeplink,
9
9
  * `inAppBrowser`, `installation`) to bucket their emitted options.
10
10
  *
11
11
  * Wallet book entries inconsistently use `group` / `chainGroup` /
@@ -5,7 +5,7 @@ type SortConnectionOptionsParams = {
5
5
  /**
6
6
  * Sorts a wallet option's `connectionOptions` so the most preferred option lands at
7
7
  * index 0. Primary sort is by option-type priority
8
- * (`withWalletProvider` > `walletConnect` > `inAppBrowser`);
8
+ * (`withWalletProvider` > URI deeplink > `inAppBrowser`);
9
9
  * within a type, ties break alphabetically by `chain` for deterministic
10
10
  * output across calls.
11
11
  *
@@ -13,7 +13,7 @@ type SortWalletOptionsParams = {
13
13
  * this order:
14
14
  * 1. **Installed provider** — user already has the wallet available
15
15
  * (`withWalletProvider` at index 0).
16
- * 2. **Connectable** — has at least one connection (`walletConnect`
16
+ * 2. **Connectable** — has at least one connection (URI deeplink
17
17
  * or `inAppBrowser`) but no installed provider.
18
18
  * 3. **Install-only** — no connection at all; only `installationUrls`.
19
19
  * Within each tier, rank by the hand-curated {@link PRIORITY_WALLET_KEYS}