@dynamic-labs-sdk/client 0.27.0 → 0.27.2

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 (136) hide show
  1. package/dist/{InvalidParamError-D_EzyxXy.native.esm.js → InvalidParamError-B8XO1W5c.native.esm.js} +2 -2
  2. package/dist/{InvalidParamError-D_EzyxXy.native.esm.js.map → InvalidParamError-B8XO1W5c.native.esm.js.map} +1 -1
  3. package/dist/{InvalidParamError-BHNFIR4K.cjs → InvalidParamError-Co6j4qll.cjs} +3 -3
  4. package/dist/{InvalidParamError-BHNFIR4K.cjs.map → InvalidParamError-Co6j4qll.cjs.map} +1 -1
  5. package/dist/{InvalidParamError-DJxqCxOB.esm.js → InvalidParamError-Di6crZca.esm.js} +2 -2
  6. package/dist/{InvalidParamError-DJxqCxOB.esm.js.map → InvalidParamError-Di6crZca.esm.js.map} +1 -1
  7. package/dist/{NotWaasWalletAccountError-CIUs1vxk.cjs → NotWaasWalletAccountError-BvN42V8M.cjs} +3 -3
  8. package/dist/{NotWaasWalletAccountError-CIUs1vxk.cjs.map → NotWaasWalletAccountError-BvN42V8M.cjs.map} +1 -1
  9. package/dist/{NotWaasWalletAccountError-BSon-4Ob.native.esm.js → NotWaasWalletAccountError-CUQFqBLS.native.esm.js} +3 -3
  10. package/dist/{NotWaasWalletAccountError-BSon-4Ob.native.esm.js.map → NotWaasWalletAccountError-CUQFqBLS.native.esm.js.map} +1 -1
  11. package/dist/{NotWaasWalletAccountError-DyqqJavQ.esm.js → NotWaasWalletAccountError-yLvN4JGj.esm.js} +3 -3
  12. package/dist/{NotWaasWalletAccountError-DyqqJavQ.esm.js.map → NotWaasWalletAccountError-yLvN4JGj.esm.js.map} +1 -1
  13. package/dist/client/core/createCore/createCore.d.ts.map +1 -1
  14. package/dist/client/core/types/DynamicCore.d.ts +8 -0
  15. package/dist/client/core/types/DynamicCore.d.ts.map +1 -1
  16. package/dist/client/core/types/DynamicCoreConfig.d.ts +1 -1
  17. package/dist/client/core/types/DynamicCoreConfig.d.ts.map +1 -1
  18. package/dist/core.cjs +19 -21
  19. package/dist/core.cjs.map +1 -1
  20. package/dist/core.esm.js +19 -22
  21. package/dist/core.esm.js.map +1 -1
  22. package/dist/core.native.esm.js +19 -8
  23. package/dist/core.native.esm.js.map +1 -1
  24. package/dist/errors/InvalidSocialCallbackOriginError.d.ts +10 -0
  25. package/dist/errors/InvalidSocialCallbackOriginError.d.ts.map +1 -0
  26. package/dist/errors/UserCancelledSocialPopUpError.d.ts +5 -0
  27. package/dist/errors/UserCancelledSocialPopUpError.d.ts.map +1 -0
  28. package/dist/exports/core.d.ts +2 -0
  29. package/dist/exports/core.d.ts.map +1 -1
  30. package/dist/exports/index.d.ts +9 -0
  31. package/dist/exports/index.d.ts.map +1 -1
  32. package/dist/{getNetworkProviderFromNetworkId-BN3NLh8u.native.esm.js → getNetworkProviderFromNetworkId-B55TeeB6.native.esm.js} +35 -41
  33. package/dist/getNetworkProviderFromNetworkId-B55TeeB6.native.esm.js.map +1 -0
  34. package/dist/{getNetworkProviderFromNetworkId-EbAuEVM-.esm.js → getNetworkProviderFromNetworkId-Cx5BbTRa.esm.js} +35 -27
  35. package/dist/getNetworkProviderFromNetworkId-Cx5BbTRa.esm.js.map +1 -0
  36. package/dist/{getNetworkProviderFromNetworkId-B5HGICoA.cjs → getNetworkProviderFromNetworkId-ctY-MguW.cjs} +36 -28
  37. package/dist/getNetworkProviderFromNetworkId-ctY-MguW.cjs.map +1 -0
  38. package/dist/{getSignedSessionId-BW4I7fDk.esm.js → getSignedSessionId-C-R1Tsh4.esm.js} +3 -3
  39. package/dist/{getSignedSessionId-BW4I7fDk.esm.js.map → getSignedSessionId-C-R1Tsh4.esm.js.map} +1 -1
  40. package/dist/{getSignedSessionId-DMMejcaD.cjs → getSignedSessionId-CEh6X6Uk.cjs} +3 -3
  41. package/dist/{getSignedSessionId-DMMejcaD.cjs.map → getSignedSessionId-CEh6X6Uk.cjs.map} +1 -1
  42. package/dist/{getSignedSessionId-B_a6CXGP.native.esm.js → getSignedSessionId-CqQEOYvq.native.esm.js} +3 -3
  43. package/dist/{getSignedSessionId-B_a6CXGP.native.esm.js.map → getSignedSessionId-CqQEOYvq.native.esm.js.map} +1 -1
  44. package/dist/{getVerifiedCredentialForWalletAccount-ChZvrEQJ.esm.js → getVerifiedCredentialForWalletAccount-Bb6xxqc5.esm.js} +2 -2
  45. package/dist/{getVerifiedCredentialForWalletAccount-ChZvrEQJ.esm.js.map → getVerifiedCredentialForWalletAccount-Bb6xxqc5.esm.js.map} +1 -1
  46. package/dist/{getVerifiedCredentialForWalletAccount-DMoMmbjK.native.esm.js → getVerifiedCredentialForWalletAccount-C3_d4Wfb.native.esm.js} +2 -2
  47. package/dist/{getVerifiedCredentialForWalletAccount-DMoMmbjK.native.esm.js.map → getVerifiedCredentialForWalletAccount-C3_d4Wfb.native.esm.js.map} +1 -1
  48. package/dist/{getVerifiedCredentialForWalletAccount-C7-3wtlJ.cjs → getVerifiedCredentialForWalletAccount-Cc41eb96.cjs} +3 -3
  49. package/dist/{getVerifiedCredentialForWalletAccount-C7-3wtlJ.cjs.map → getVerifiedCredentialForWalletAccount-Cc41eb96.cjs.map} +1 -1
  50. package/dist/index.cjs +304 -109
  51. package/dist/index.cjs.map +1 -1
  52. package/dist/index.esm.js +300 -113
  53. package/dist/index.esm.js.map +1 -1
  54. package/dist/index.native.esm.js +523 -116
  55. package/dist/index.native.esm.js.map +1 -1
  56. package/dist/{isMfaRequiredForAction-BUfcq6P2.esm.js → isMfaRequiredForAction-5fIZTsUT.esm.js} +2 -2
  57. package/dist/{isMfaRequiredForAction-BUfcq6P2.esm.js.map → isMfaRequiredForAction-5fIZTsUT.esm.js.map} +1 -1
  58. package/dist/{isMfaRequiredForAction-IhCAdScF.cjs → isMfaRequiredForAction-BgSJwZj8.cjs} +2 -2
  59. package/dist/{isMfaRequiredForAction-IhCAdScF.cjs.map → isMfaRequiredForAction-BgSJwZj8.cjs.map} +1 -1
  60. package/dist/{isMfaRequiredForAction-iVSdynw1.native.esm.js → isMfaRequiredForAction-BvOa3tgh.native.esm.js} +2 -2
  61. package/dist/{isMfaRequiredForAction-iVSdynw1.native.esm.js.map → isMfaRequiredForAction-BvOa3tgh.native.esm.js.map} +1 -1
  62. package/dist/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.d.ts.map +1 -1
  63. package/dist/modules/auth/social/oauth/processSocialCallback/index.d.ts +2 -0
  64. package/dist/modules/auth/social/oauth/processSocialCallback/index.d.ts.map +1 -0
  65. package/dist/modules/auth/social/oauth/processSocialCallback/processSocialCallback.d.ts +29 -0
  66. package/dist/modules/auth/social/oauth/processSocialCallback/processSocialCallback.d.ts.map +1 -0
  67. package/dist/modules/auth/social/oauth/signInWithSocialPopUp/index.d.ts +2 -0
  68. package/dist/modules/auth/social/oauth/signInWithSocialPopUp/index.d.ts.map +1 -0
  69. package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.d.ts +16 -0
  70. package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.d.ts.map +1 -0
  71. package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.types.d.ts +5 -0
  72. package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.types.d.ts.map +1 -0
  73. package/dist/modules/checkout/createCheckoutTransaction/createCheckoutTransaction.d.ts.map +1 -1
  74. package/dist/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.d.ts +6 -1
  75. package/dist/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.d.ts.map +1 -1
  76. package/dist/modules/waas/createWaasClient/createWaasClient.d.ts.map +1 -1
  77. package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
  78. package/dist/modules/waas/waas.types.d.ts +3 -3
  79. package/dist/modules/waas/waas.types.d.ts.map +1 -1
  80. package/dist/modules/walletBackup/googleDrive/constants.d.ts +19 -0
  81. package/dist/modules/walletBackup/googleDrive/constants.d.ts.map +1 -0
  82. package/dist/modules/walletBackup/googleDrive/findMissingGoogleDriveBackupScopes/findMissingGoogleDriveBackupScopes.d.ts +11 -0
  83. package/dist/modules/walletBackup/googleDrive/findMissingGoogleDriveBackupScopes/findMissingGoogleDriveBackupScopes.d.ts.map +1 -0
  84. package/dist/modules/walletBackup/googleDrive/findMissingGoogleDriveBackupScopes/index.d.ts +2 -0
  85. package/dist/modules/walletBackup/googleDrive/findMissingGoogleDriveBackupScopes/index.d.ts.map +1 -0
  86. package/dist/modules/walletBackup/googleDrive/getGoogleDriveBackupReadiness/getGoogleDriveBackupReadiness.d.ts +35 -0
  87. package/dist/modules/walletBackup/googleDrive/getGoogleDriveBackupReadiness/getGoogleDriveBackupReadiness.d.ts.map +1 -0
  88. package/dist/modules/walletBackup/googleDrive/getGoogleDriveBackupReadiness/index.d.ts +2 -0
  89. package/dist/modules/walletBackup/googleDrive/getGoogleDriveBackupReadiness/index.d.ts.map +1 -0
  90. package/dist/modules/walletBackup/googleDrive/googleDrive.types.d.ts +30 -0
  91. package/dist/modules/walletBackup/googleDrive/googleDrive.types.d.ts.map +1 -0
  92. package/dist/modules/walletBackup/googleDrive/hasAllGoogleDriveBackupScopes/hasAllGoogleDriveBackupScopes.d.ts +10 -0
  93. package/dist/modules/walletBackup/googleDrive/hasAllGoogleDriveBackupScopes/hasAllGoogleDriveBackupScopes.d.ts.map +1 -0
  94. package/dist/modules/walletBackup/googleDrive/hasAllGoogleDriveBackupScopes/index.d.ts +2 -0
  95. package/dist/modules/walletBackup/googleDrive/hasAllGoogleDriveBackupScopes/index.d.ts.map +1 -0
  96. package/dist/modules/walletBackup/googleDrive/isInsufficientGoogleDriveScopesError/index.d.ts +2 -0
  97. package/dist/modules/walletBackup/googleDrive/isInsufficientGoogleDriveScopesError/index.d.ts.map +1 -0
  98. package/dist/modules/walletBackup/googleDrive/isInsufficientGoogleDriveScopesError/isInsufficientGoogleDriveScopesError.d.ts +15 -0
  99. package/dist/modules/walletBackup/googleDrive/isInsufficientGoogleDriveScopesError/isInsufficientGoogleDriveScopesError.d.ts.map +1 -0
  100. package/dist/modules/walletBackup/googleDrive/utils/fetchGoogleDriveOauthAccess/fetchGoogleDriveOauthAccess.d.ts +21 -0
  101. package/dist/modules/walletBackup/googleDrive/utils/fetchGoogleDriveOauthAccess/fetchGoogleDriveOauthAccess.d.ts.map +1 -0
  102. package/dist/modules/walletBackup/googleDrive/utils/fetchGoogleDriveOauthAccess/index.d.ts +2 -0
  103. package/dist/modules/walletBackup/googleDrive/utils/fetchGoogleDriveOauthAccess/index.d.ts.map +1 -0
  104. package/dist/modules/walletBackup/googleDrive/utils/findGoogleOauthAccountId/findGoogleOauthAccountId.d.ts +18 -0
  105. package/dist/modules/walletBackup/googleDrive/utils/findGoogleOauthAccountId/findGoogleOauthAccountId.d.ts.map +1 -0
  106. package/dist/modules/walletBackup/googleDrive/utils/findGoogleOauthAccountId/index.d.ts +2 -0
  107. package/dist/modules/walletBackup/googleDrive/utils/findGoogleOauthAccountId/index.d.ts.map +1 -0
  108. package/dist/modules/wallets/destroyWalletProviders/destroyWalletProviders.d.ts +15 -0
  109. package/dist/modules/wallets/destroyWalletProviders/destroyWalletProviders.d.ts.map +1 -0
  110. package/dist/modules/wallets/destroyWalletProviders/index.d.ts +2 -0
  111. package/dist/modules/wallets/destroyWalletProviders/index.d.ts.map +1 -0
  112. package/dist/modules/wallets/walletProvider/walletProvider.types.d.ts +9 -10
  113. package/dist/modules/wallets/walletProvider/walletProvider.types.d.ts.map +1 -1
  114. package/dist/services/openAuthSession/index.d.ts +2 -0
  115. package/dist/services/openAuthSession/index.d.ts.map +1 -0
  116. package/dist/services/openAuthSession/openAuthSession.types.d.ts +26 -0
  117. package/dist/services/openAuthSession/openAuthSession.types.d.ts.map +1 -0
  118. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  119. package/dist/utils/debouncedMutex/createDebouncedMutex/createDebouncedMutex.d.ts.map +1 -1
  120. package/dist/waas.cjs +4 -4
  121. package/dist/waas.esm.js +3 -3
  122. package/dist/waas.native.esm.js +3 -3
  123. package/dist/waasCore.cjs +17 -7
  124. package/dist/waasCore.cjs.map +1 -1
  125. package/dist/waasCore.esm.js +17 -7
  126. package/dist/waasCore.esm.js.map +1 -1
  127. package/dist/waasCore.native.esm.js +17 -7
  128. package/dist/waasCore.native.esm.js.map +1 -1
  129. package/package.json +39 -3
  130. package/dist/getNetworkProviderFromNetworkId-B5HGICoA.cjs.map +0 -1
  131. package/dist/getNetworkProviderFromNetworkId-BN3NLh8u.native.esm.js.map +0 -1
  132. package/dist/getNetworkProviderFromNetworkId-EbAuEVM-.esm.js.map +0 -1
  133. package/dist/modules/wallets/disconnectAndTerminateWalletProviders/disconnectAndTerminateWalletProviders.d.ts +0 -10
  134. package/dist/modules/wallets/disconnectAndTerminateWalletProviders/disconnectAndTerminateWalletProviders.d.ts.map +0 -1
  135. package/dist/modules/wallets/disconnectAndTerminateWalletProviders/index.d.ts +0 -2
  136. package/dist/modules/wallets/disconnectAndTerminateWalletProviders/index.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { D as instrumentFunction, F as getDefaultClient, u as createApiClient, w as assertDefined, z as getCore } from "./InvalidParamError-DJxqCxOB.esm.js";
1
+ import { D as instrumentFunction, F as getDefaultClient, u as createApiClient, w as assertDefined, z as getCore } from "./InvalidParamError-Di6crZca.esm.js";
2
2
 
3
3
  //#region src/modules/mfa/consumeMfaToken/consumeMfaToken.ts
4
4
  /**
@@ -74,4 +74,4 @@ const isMfaRequiredForAction = async ({ mfaAction }, client = getDefaultClient()
74
74
 
75
75
  //#endregion
76
76
  export { getMfaMethods as n, __consumeMfaToken_wrapped as r, isMfaRequiredForAction as t };
77
- //# sourceMappingURL=isMfaRequiredForAction-BUfcq6P2.esm.js.map
77
+ //# sourceMappingURL=isMfaRequiredForAction-5fIZTsUT.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isMfaRequiredForAction-BUfcq6P2.esm.js","names":[],"sources":["../src/modules/mfa/consumeMfaToken/consumeMfaToken.ts","../src/modules/mfa/getMfaMethods/getMfaMethods.ts","../src/modules/mfa/isMfaRequiredForAction/isMfaRequiredForAction.ts"],"sourcesContent":["import { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { assertDefined } from '../../../utils/assertDefined';\n\n/**\n * Consumes and clears the current MFA token from the client state.\n *\n * This function retrieves the MFA token obtained from a successful MFA authentication,\n * and removes it from the client, to prevent it from being used again.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns The MFA token that was consumed.\n * @throws Error if no MFA token is found.\n * @instrumented\n */\nexport const consumeMfaToken = (client = getDefaultClient()) => {\n const core = getCore(client);\n\n const mfaToken = core.state.get().mfaToken;\n\n assertDefined(mfaToken, 'No MFA token found');\n\n core.state.set({\n mfaToken: null,\n });\n\n return mfaToken;\n};\n","import { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { createApiClient } from '../../apiClient';\n\n/**\n * Retrieves the available MFA methods for the current user.\n *\n * This function fetches information about which multi-factor authentication\n * methods are available and configured for the user's account.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to the user's MFA methods configuration.\n * @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":";;;;;;;;;;;;;;AAkBA,MAAE,mBAAsB,SAAU,kBAAU,KAAA;;;AAK1C,eAAY,UAAI,qBAAA;kBAGhB,UAAO,MACR,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACbD,MAAa,gBAAgB,OAAO,SAAS,kBAAkB,KAAK;CAClE,MAAM,OAAO,QAAQ,OAAO;AAQ5B,QALuB,MAFL,gBAAgB,EAAE,EAAE,OAAO,CAEN,kBAAkB;EACvD,eAAe,KAAK;EACpB,cAAc;EACf,CAAC;;;;;;;;;;;;;;;;ACDJ,MAAa,yBAAyB,OACpC,EAAE,aACF,SAAS,kBAAkB,KACxB;CACH,MAAM,kBAAkB,OAAO;AAQ/B,KAAI,CANwB,iBAAiB,UAAU,KAAK,SAAS,MAClE,WAAW,OAAO,WAAW,aAAa,OAAO,SACnD,CAKC,QAAO;AAMT,KAH4B,iBAAiB,UAAU,KAAK,SAI1D,QAAO;AAMT,SAHmB,MAAM,cAAc,OAAO,EAG5B"}
1
+ {"version":3,"file":"isMfaRequiredForAction-5fIZTsUT.esm.js","names":[],"sources":["../src/modules/mfa/consumeMfaToken/consumeMfaToken.ts","../src/modules/mfa/getMfaMethods/getMfaMethods.ts","../src/modules/mfa/isMfaRequiredForAction/isMfaRequiredForAction.ts"],"sourcesContent":["import { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { assertDefined } from '../../../utils/assertDefined';\n\n/**\n * Consumes and clears the current MFA token from the client state.\n *\n * This function retrieves the MFA token obtained from a successful MFA authentication,\n * and removes it from the client, to prevent it from being used again.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns The MFA token that was consumed.\n * @throws Error if no MFA token is found.\n * @instrumented\n */\nexport const consumeMfaToken = (client = getDefaultClient()) => {\n const core = getCore(client);\n\n const mfaToken = core.state.get().mfaToken;\n\n assertDefined(mfaToken, 'No MFA token found');\n\n core.state.set({\n mfaToken: null,\n });\n\n return mfaToken;\n};\n","import { getCore } from '../../../client/core/getCore';\nimport { getDefaultClient } from '../../../client/defaultClient';\nimport { createApiClient } from '../../apiClient';\n\n/**\n * Retrieves the available MFA methods for the current user.\n *\n * This function fetches information about which multi-factor authentication\n * methods are available and configured for the user's account.\n *\n * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.\n * @returns A promise that resolves to the user's MFA methods configuration.\n * @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":";;;;;;;;;;;;;;AAkBA,MAAE,mBAAsB,SAAU,kBAAU,KAAA;;;AAK1C,eAAY,UAAI,qBAAA;kBAGhB,UAAO,MACR,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACbD,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
- const require_InvalidParamError = require('./InvalidParamError-BHNFIR4K.cjs');
1
+ const require_InvalidParamError = require('./InvalidParamError-Co6j4qll.cjs');
2
2
 
3
3
  //#region src/modules/mfa/consumeMfaToken/consumeMfaToken.ts
4
4
  /**
@@ -91,4 +91,4 @@ Object.defineProperty(exports, 'isMfaRequiredForAction', {
91
91
  return isMfaRequiredForAction;
92
92
  }
93
93
  });
94
- //# sourceMappingURL=isMfaRequiredForAction-IhCAdScF.cjs.map
94
+ //# sourceMappingURL=isMfaRequiredForAction-BgSJwZj8.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"isMfaRequiredForAction-IhCAdScF.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 */\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":";;;;;;;;;;;;;;AAkBA,MAAE,mBAAsB,SAAU,4CAAU,KAAA;;;AAK1C,yCAAY,UAAI,qBAAA;kBAGhB,UAAO,MACR,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACbD,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
+ {"version":3,"file":"isMfaRequiredForAction-BgSJwZj8.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 */\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":";;;;;;;;;;;;;;AAkBA,MAAE,mBAAsB,SAAU,4CAAU,KAAA;;;AAK1C,yCAAY,UAAI,qBAAA;kBAGhB,UAAO,MACR,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACbD,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-D_EzyxXy.native.esm.js";
1
+ import { D as instrumentFunction, F as getDefaultClient, u as createApiClient, w as assertDefined, z as getCore } from "./InvalidParamError-B8XO1W5c.native.esm.js";
2
2
 
3
3
  //#region src/modules/mfa/consumeMfaToken/consumeMfaToken.ts
4
4
  /**
@@ -74,4 +74,4 @@ const isMfaRequiredForAction = async ({ mfaAction }, client = getDefaultClient()
74
74
 
75
75
  //#endregion
76
76
  export { getMfaMethods as n, __consumeMfaToken_wrapped as r, isMfaRequiredForAction as t };
77
- //# sourceMappingURL=isMfaRequiredForAction-iVSdynw1.native.esm.js.map
77
+ //# sourceMappingURL=isMfaRequiredForAction-BvOa3tgh.native.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isMfaRequiredForAction-iVSdynw1.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 */\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":";;;;;;;;;;;;;;AAkBA,MAAE,mBAAsB,SAAU,kBAAU,KAAA;;;AAK1C,eAAY,UAAI,qBAAA;kBAGhB,UAAO,MACR,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACbD,MAAa,gBAAgB,OAAO,SAAS,kBAAkB,KAAK;CAClE,MAAM,OAAO,QAAQ,OAAO;AAQ5B,QALuB,MAFL,gBAAgB,EAAE,EAAE,OAAO,CAEN,kBAAkB;EACvD,eAAe,KAAK;EACpB,cAAc;EACf,CAAC;;;;;;;;;;;;;;;;ACDJ,MAAa,yBAAyB,OACpC,EAAE,aACF,SAAS,kBAAkB,KACxB;CACH,MAAM,kBAAkB,OAAO;AAQ/B,KAAI,CANwB,iBAAiB,UAAU,KAAK,SAAS,MAClE,WAAW,OAAO,WAAW,aAAa,OAAO,SACnD,CAKC,QAAO;AAMT,KAH4B,iBAAiB,UAAU,KAAK,SAI1D,QAAO;AAMT,SAHmB,MAAM,cAAc,OAAO,EAG5B"}
1
+ {"version":3,"file":"isMfaRequiredForAction-BvOa3tgh.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 */\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":";;;;;;;;;;;;;;AAkBA,MAAE,mBAAsB,SAAU,kBAAU,KAAA;;;AAK1C,eAAY,UAAI,qBAAA;kBAGhB,UAAO,MACR,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACbD,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":"completeSocialRedirect.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAGxD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAEnF,YAAY,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAEnF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,6BACP,4BAA4B,8DAErD,OAAO,CAAC,IAAI,GAAG,IAAI,CAgErB,CAAC"}
1
+ {"version":3,"file":"completeSocialRedirect.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAExD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAEnF,YAAY,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAEnF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,6BACP,4BAA4B,8DAErD,OAAO,CAAC,IAAI,GAAG,IAAI,CACmC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { processSocialCallback } from './processSocialCallback';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/processSocialCallback/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { TokenScope } from '@dynamic-labs/sdk-api-core';
2
+ import type { DynamicClient } from '../../../../../client/types';
3
+ import type { User } from '../../../../user/user.types';
4
+ type ProcessSocialCallbackParams = {
5
+ requestedScopes?: TokenScope[];
6
+ url: URL;
7
+ };
8
+ /**
9
+ * Platform-agnostic OAuth callback processor used by both the web redirect
10
+ * flow (`completeSocialRedirect`) and the native pop-up flow
11
+ * (`signInWithSocialPopUp`). Intentionally has no `.native.ts` variant — the
12
+ * logic (parse URL, validate state, call oauthSignIn/oauthVerify, update auth)
13
+ * works identically on every platform.
14
+ *
15
+ * Not exported from the public SDK surface; public callers go through
16
+ * `completeSocialRedirect` or `signInWithSocialPopUp` instead.
17
+ *
18
+ * @param params.url - The callback URL containing OAuth response parameters.
19
+ * @param [params.requestedScopes] - Optional scopes to request an elevated access token when verifying (linking) a social account.
20
+ * @param client - The Dynamic client instance.
21
+ * @returns The authenticated user, or null if the verify response had none.
22
+ * @throws MissingSocialUrlParamError If required OAuth parameters are missing.
23
+ * @throws MissingRedirectStorageStateError If no stored redirect state exists.
24
+ * @throws InvalidRedirectStorageStateError If the stored state doesn't match the URL state.
25
+ * @instrumented
26
+ */
27
+ export declare const processSocialCallback: ({ url, requestedScopes }: ProcessSocialCallbackParams, client: DynamicClient) => Promise<User | null>;
28
+ export {};
29
+ //# sourceMappingURL=processSocialCallback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"processSocialCallback.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/processSocialCallback/processSocialCallback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAkB,MAAM,4BAA4B,CAAC;AAG7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAMjE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAIxD,KAAK,2BAA2B,GAAG;IACjC,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;IAC/B,GAAG,EAAE,GAAG,CAAC;CACV,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,qBAAqB,6BACN,2BAA2B,UAC7C,aAAa,KACpB,OAAO,CAAC,IAAI,GAAG,IAAI,CAgErB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { signInWithSocialPopUp } from './signInWithSocialPopUp';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/signInWithSocialPopUp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { User } from '../../../../user/user.types';
2
+ import type { SignInWithSocialPopUpParams } from './signInWithSocialPopUp.types';
3
+ export type { SignInWithSocialPopUpParams } from './signInWithSocialPopUp.types';
4
+ /**
5
+ * Sign in with a social provider via an in-app popup (ASWebAuthenticationSession
6
+ * on iOS, Chrome Custom Tabs on Android).
7
+ *
8
+ * This method is **only available on React Native**. On web, use
9
+ * {@link signInWithSocialRedirect} + {@link completeSocialRedirect} instead —
10
+ * the browser already owns the tab so there is no popup to open.
11
+ *
12
+ * @throws MethodNotImplementedError Always on web.
13
+ * @instrumented
14
+ */
15
+ export declare const signInWithSocialPopUp: ({ provider }: SignInWithSocialPopUpParams, client?: import("../../../../../exports").DynamicClient) => Promise<User | null>;
16
+ //# sourceMappingURL=signInWithSocialPopUp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signInWithSocialPopUp.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF,YAAY,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,iBAElB,2BAA2B,8DAGxC,OAAO,CAAC,IAAI,GAAG,IAAI,CAIrB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { SocialProvider } from '../../social.types';
2
+ export type SignInWithSocialPopUpParams = {
3
+ provider: SocialProvider;
4
+ };
5
+ //# sourceMappingURL=signInWithSocialPopUp.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signInWithSocialPopUp.types.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,EAAE,cAAc,CAAC;CAC1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/createCheckoutTransaction/createCheckoutTransaction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,mBAAmB,CAAC;AAK3E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,WAC5B,+BAA+B,WAC/B,aAAa,KACpB,OAAO,CAAC,iCAAiC,CAgD3C,CAAC"}
1
+ {"version":3,"file":"createCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/createCheckoutTransaction/createCheckoutTransaction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,mBAAmB,CAAC;AAW3E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,WAC5B,+BAA+B,WAC/B,aAAa,KACpB,OAAO,CAAC,iCAAiC,CAiD3C,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { DynamicClient } from '../../../client/types';
1
2
  export type TrackCheckoutTransactionParams = {
2
3
  transactionId: string;
3
4
  };
@@ -11,9 +12,13 @@ export type TrackCheckoutTransactionParams = {
11
12
  * subscribed — calling this again for those is unnecessary unless the page
12
13
  * has been reloaded.
13
14
  *
15
+ * NOTE: Temporarily a no-op while the Ably API key is being provisioned for
16
+ * the realtime checkout transaction channel. Will be re-enabled once the
17
+ * dashboard-api environment has the Ably wiring in place.
18
+ *
14
19
  * @param params.transactionId - The ID of the checkout transaction to track.
15
20
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
16
21
  * @not-instrumented
17
22
  */
18
- export declare const trackCheckoutTransaction: ({ transactionId }: TrackCheckoutTransactionParams, client?: import("../../../exports").DynamicClient) => Promise<void>;
23
+ export declare const trackCheckoutTransaction: (_params: TrackCheckoutTransactionParams, client?: DynamicClient) => Promise<void>;
19
24
  //# sourceMappingURL=trackCheckoutTransaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trackCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,8BAA8B,GAAG;IAC3C,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,wBAAwB,sBAChB,8BAA8B,wDAEhD,OAAO,CAAC,IAAI,CAA8D,CAAC"}
1
+ {"version":3,"file":"trackCheckoutTransaction.d.ts","sourceRoot":"","sources":["../../../../src/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAS3D,MAAM,MAAM,8BAA8B,GAAG;IAC3C,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,wBAAwB,YAC1B,8BAA8B,WAE/B,aAAa,KACpB,OAAO,CAAC,IAAI,CAKd,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createWaasClient.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasClient/createWaasClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AAGjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAQzE,KAAK,sBAAsB,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAwB;AACxB,eAAO,MAAM,gBAAgB,kBACZ,sBAAsB,UAC7B,aAAa,wBAuBtB,CAAC"}
1
+ {"version":3,"file":"createWaasClient.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasClient/createWaasClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AAGjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAQzE,KAAK,sBAAsB,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAwB;AACxB,eAAO,MAAM,gBAAgB,kBACZ,sBAAsB,UAC7B,aAAa,wBA6BtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createWaasProvider.d.ts","sourceRoot":"","sources":["../../../../src/modules/waas/createWaasProvider/createWaasProvider.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAKzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,aAAa,CAAC;CAC1B,CAAC;AAEF,wBAAwB;AACxB,eAAO,MAAM,kBAAkB,0BAG5B,wBAAwB,KAAG,YAqX7B,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;AAGzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAKzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,aAAa,CAAC;CAC1B,CAAC;AAEF,wBAAwB;AACxB,eAAO,MAAM,kBAAkB,0BAG5B,wBAAwB,KAAG,YA+Y7B,CAAC"}
@@ -35,6 +35,9 @@ export type WaasProvider = {
35
35
  password?: string;
36
36
  walletAccount: WalletAccount;
37
37
  }) => Promise<void>;
38
+ destroy: (args?: {
39
+ reason?: LogoutReason;
40
+ }) => Promise<void>;
38
41
  exportClientKeyshares: (args: {
39
42
  password?: string;
40
43
  walletAccount: WalletAccount;
@@ -87,9 +90,6 @@ export type WaasProvider = {
87
90
  }) => Promise<{
88
91
  signature: string;
89
92
  }>;
90
- terminate: (args?: {
91
- reason?: LogoutReason;
92
- }) => Promise<void>;
93
93
  unlockWallet: (args: {
94
94
  password: string;
95
95
  walletAccount: WalletAccount;
@@ -1 +1 @@
1
- {"version":3,"file":"waas.types.d.ts","sourceRoot":"","sources":["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google Drive to succeed.
4
+ *
5
+ * Exported so host apps can pre-flight check or display these in their own
6
+ * UX. Kept as a `readonly` tuple to discourage mutation.
7
+ */
8
+ export declare const GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES: readonly ["https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.file"];
9
+ /**
10
+ * Stable phrase the WaaS layer includes in Google Drive 401 / scope-insufficient
11
+ * upload failure messages. Match by `.includes(...)` rather than equality
12
+ * because the iframe message-handler fallback path rewraps the original error
13
+ * as `new Error(String(response.error))`, which prefixes the message with
14
+ * "Error: ". The phrase remains unique to the auth/scope case across all the
15
+ * Drive failure reasons (rate-limit, storage-full, 5xx, network all use
16
+ * distinct prefixes), so message-only matching is sufficient to discriminate.
17
+ */
18
+ export declare const ACCESS_DENIED_PHRASE = "Google Drive access denied";
19
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletBackup/googleDrive/constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,mCAAmC,0GAGtC,CAAC;AAEX;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,+BAA+B,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Returns the Google OAuth scopes from `GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES`
3
+ * that are NOT present in `grantedScopes`. An empty array means all required
4
+ * scopes have been granted.
5
+ *
6
+ * @param grantedScopes - Scopes the user has granted to their Google account.
7
+ * @returns The subset of required scopes that are still missing.
8
+ * @not-instrumented
9
+ */
10
+ export declare const findMissingGoogleDriveBackupScopes: (grantedScopes: readonly string[]) => string[];
11
+ //# sourceMappingURL=findMissingGoogleDriveBackupScopes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findMissingGoogleDriveBackupScopes.d.ts","sourceRoot":"","sources":["../../../../../src/modules/walletBackup/googleDrive/findMissingGoogleDriveBackupScopes/findMissingGoogleDriveBackupScopes.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,eAAO,MAAM,kCAAkC,kBAC9B,SAAS,MAAM,EAAE,KAC/B,MAAM,EAGN,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { findMissingGoogleDriveBackupScopes } from './findMissingGoogleDriveBackupScopes';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/walletBackup/googleDrive/findMissingGoogleDriveBackupScopes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC"}
@@ -0,0 +1,35 @@
1
+ import type { GoogleDriveBackupReadiness } from '../googleDrive.types';
2
+ /**
3
+ * Pre-flight readiness check for backing up MPC keyshares to Google Drive.
4
+ *
5
+ * Call this before initiating the keyshare backup ceremony. When the result
6
+ * is `'needs-access'`, have the user re-link their Google account so the
7
+ * required Drive scopes are granted, then call this again before retrying
8
+ * the backup. This avoids spending an MPC reshare ceremony on a backup that
9
+ * will predictably fail.
10
+ *
11
+ * Status values:
12
+ * - `'ready'`: stored scopes include both required Drive scopes; backup
13
+ * should succeed (barring transient errors).
14
+ * - `'needs-access'`: backup likely won't succeed without user intervention.
15
+ * Three sub-cases, distinguished by `missingScopes`:
16
+ * - No Google account linked → `missingScopes` is the full required set.
17
+ * - Some scopes granted but not all → `missingScopes` lists the gap.
18
+ * - Legacy token captured before scope tracking shipped (`scopes: []` from
19
+ * the API) → `missingScopes` is empty. Forcing a fresh consent will
20
+ * populate the scopes column for subsequent calls.
21
+ *
22
+ * Failures of the underlying access-token fetch propagate as Promise
23
+ * rejections — the caller is expected to surface or retry them.
24
+ *
25
+ * Pair with `isInsufficientGoogleDriveScopesError` to detect post-flight
26
+ * scope failures (e.g. for the legacy "unknown scopes" case where pre-flight
27
+ * cannot prove failure).
28
+ *
29
+ * @param [client] - The Dynamic client instance. Only required when using
30
+ * multiple Dynamic clients.
31
+ * @returns The readiness result.
32
+ * @instrumented
33
+ */
34
+ export declare const getGoogleDriveBackupReadiness: (client?: import("../../../../exports").DynamicClient) => Promise<GoogleDriveBackupReadiness>;
35
+ //# sourceMappingURL=getGoogleDriveBackupReadiness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getGoogleDriveBackupReadiness.d.ts","sourceRoot":"","sources":["../../../../../src/modules/walletBackup/googleDrive/getGoogleDriveBackupReadiness/getGoogleDriveBackupReadiness.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAIvE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,6BAA6B,4DAEvC,OAAO,CAAC,0BAA0B,CA+CpC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { getGoogleDriveBackupReadiness } from './getGoogleDriveBackupReadiness';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/walletBackup/googleDrive/getGoogleDriveBackupReadiness/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Outcome of a Google Drive backup readiness pre-flight check.
3
+ *
4
+ * - `'ready'`: stored scopes include both required Drive scopes; backup
5
+ * should succeed (barring transient errors).
6
+ * - `'needs-access'`: backup likely won't succeed without user intervention.
7
+ * Caller should have the user re-link their Google account before
8
+ * initiating the backup. Covers three sub-cases — see
9
+ * `GoogleDriveBackupReadiness.missingScopes`.
10
+ *
11
+ * Failures of the underlying access-token fetch propagate as Promise
12
+ * rejections from `getGoogleDriveBackupReadiness`.
13
+ */
14
+ export type GoogleDriveBackupReadinessStatus = 'ready' | 'needs-access';
15
+ /**
16
+ * Result of a Google Drive backup readiness pre-flight check.
17
+ *
18
+ * `missingScopes` semantics when `status === 'needs-access'`:
19
+ * - Populated with the full required set when no Google account is linked.
20
+ * - Populated with only the missing scopes when some are granted but not all.
21
+ * - Empty array for legacy tokens captured before scope tracking shipped
22
+ * (the API returns `scopes: []`); we can't confirm the upload will work,
23
+ * so the caller should re-prompt consent to force a fresh token.
24
+ */
25
+ export type GoogleDriveBackupReadiness = {
26
+ accessToken?: string;
27
+ missingScopes: readonly string[];
28
+ status: GoogleDriveBackupReadinessStatus;
29
+ };
30
+ //# sourceMappingURL=googleDrive.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"googleDrive.types.d.ts","sourceRoot":"","sources":["../../../../src/modules/walletBackup/googleDrive/googleDrive.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,gCAAgC,GAAG,OAAO,GAAG,cAAc,CAAC;AAExE;;;;;;;;;GASG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,MAAM,EAAE,gCAAgC,CAAC;CAC1C,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Returns whether `grantedScopes` covers every Google OAuth scope required
3
+ * to upload a keyshare backup to Google Drive.
4
+ *
5
+ * @param grantedScopes - Scopes the user has granted to their Google account.
6
+ * @returns `true` when every required scope is granted, otherwise `false`.
7
+ * @not-instrumented
8
+ */
9
+ export declare const hasAllGoogleDriveBackupScopes: (grantedScopes: readonly string[]) => boolean;
10
+ //# sourceMappingURL=hasAllGoogleDriveBackupScopes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasAllGoogleDriveBackupScopes.d.ts","sourceRoot":"","sources":["../../../../../src/modules/walletBackup/googleDrive/hasAllGoogleDriveBackupScopes/hasAllGoogleDriveBackupScopes.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,kBACzB,SAAS,MAAM,EAAE,KAC/B,OAAyE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { hasAllGoogleDriveBackupScopes } from './hasAllGoogleDriveBackupScopes';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/walletBackup/googleDrive/hasAllGoogleDriveBackupScopes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { isInsufficientGoogleDriveScopesError } from './isInsufficientGoogleDriveScopesError';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/walletBackup/googleDrive/isInsufficientGoogleDriveScopesError/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Type-guard for Google Drive backup failures caused by missing or
3
+ * insufficient OAuth scopes (or otherwise denied access).
4
+ *
5
+ * Recover by having the user re-link their Google account and retrying the
6
+ * backup once the granted scopes include
7
+ * `GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES`.
8
+ *
9
+ * @param err - The unknown value to check.
10
+ * @returns `true` when `err` is an `Error` whose message indicates Google
11
+ * Drive access was denied.
12
+ * @not-instrumented
13
+ */
14
+ export declare const isInsufficientGoogleDriveScopesError: (err: unknown) => err is Error;
15
+ //# sourceMappingURL=isInsufficientGoogleDriveScopesError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isInsufficientGoogleDriveScopesError.d.ts","sourceRoot":"","sources":["../../../../../src/modules/walletBackup/googleDrive/isInsufficientGoogleDriveScopesError/isInsufficientGoogleDriveScopesError.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oCAAoC,QAC1C,OAAO,KACX,GAAG,IAAI,KAC0D,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type { UserOauthAccessTokenResponse } from '@dynamic-labs/sdk-api-core';
2
+ import type { DynamicClient } from '../../../../../client/types';
3
+ export type FetchGoogleDriveOauthAccessParams = {
4
+ oauthAccountId: string;
5
+ };
6
+ /**
7
+ * Fetches the user's stored Google OAuth access token together with the
8
+ * scopes that were granted when the token was issued.
9
+ *
10
+ * Internal to the Google Drive backup readiness check — not exported as a
11
+ * public API. The returned `scopes` array can be empty for legacy tokens
12
+ * captured before the API began tracking granted scopes.
13
+ *
14
+ * @param params.oauthAccountId - The verified-credential id of the linked
15
+ * Google account (see `findGoogleOauthAccountId`).
16
+ * @param client - The Dynamic client instance.
17
+ * @returns The OAuth access token and granted scopes.
18
+ * @not-instrumented
19
+ */
20
+ export declare const fetchGoogleDriveOauthAccess: ({ oauthAccountId }: FetchGoogleDriveOauthAccessParams, client: DynamicClient) => Promise<UserOauthAccessTokenResponse>;
21
+ //# sourceMappingURL=fetchGoogleDriveOauthAccess.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchGoogleDriveOauthAccess.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/walletBackup/googleDrive/utils/fetchGoogleDriveOauthAccess/fetchGoogleDriveOauthAccess.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAG/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAGjE,MAAM,MAAM,iCAAiC,GAAG;IAC9C,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,2BAA2B,uBAClB,iCAAiC,UAC7C,aAAa,KACpB,OAAO,CAAC,4BAA4B,CAQtC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { fetchGoogleDriveOauthAccess } from './fetchGoogleDriveOauthAccess';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/walletBackup/googleDrive/utils/fetchGoogleDriveOauthAccess/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { type JwtVerifiedCredential } from '@dynamic-labs/sdk-api-core';
2
+ /**
3
+ * Returns the verified-credential `id` (UUID of the user_oauth_accounts row)
4
+ * for the user's linked Google account, or `undefined` if no Google account
5
+ * is linked.
6
+ *
7
+ * The `getEndUserOauthAccessToken` API path parameter expects this UUID, NOT
8
+ * the third-party `oauthAccountId` (Google's numeric profile ID) — those are
9
+ * stored in the same credential under different fields.
10
+ *
11
+ * @param credentials - The user's verified credentials, typically from
12
+ * `client.user?.verifiedCredentials`.
13
+ * @returns The credential id of the linked Google oauth account, or
14
+ * `undefined`.
15
+ * @not-instrumented
16
+ */
17
+ export declare const findGoogleOauthAccountId: (credentials: readonly JwtVerifiedCredential[] | undefined) => string | undefined;
18
+ //# sourceMappingURL=findGoogleOauthAccountId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findGoogleOauthAccountId.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/walletBackup/googleDrive/utils/findGoogleOauthAccountId/findGoogleOauthAccountId.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAG3B,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,wBAAwB,gBACtB,SAAS,qBAAqB,EAAE,GAAG,SAAS,KACxD,MAAM,GAAG,SAKL,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { findGoogleOauthAccountId } from './findGoogleOauthAccountId';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/walletBackup/googleDrive/utils/findGoogleOauthAccountId/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { DynamicClient } from '../../../client/types/DynamicClient';
2
+ import type { LogoutReason } from '../../auth/logoutReason';
3
+ /**
4
+ * Tear down every wallet provider on the client.
5
+ *
6
+ * Each provider's `destroy` is responsible for its own local + remote
7
+ * cleanup. We swallow errors so a failing destroy on one provider does not
8
+ * block teardown of the others (e.g. during logout).
9
+ *
10
+ * @not-instrumented
11
+ */
12
+ export declare const destroyWalletProviders: ({ reason }: {
13
+ reason?: LogoutReason;
14
+ }, client: DynamicClient) => Promise<void>;
15
+ //# sourceMappingURL=destroyWalletProviders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"destroyWalletProviders.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/destroyWalletProviders/destroyWalletProviders.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAG5D;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,eACrB;IAAE,MAAM,CAAC,EAAE,YAAY,CAAA;CAAE,UAC7B,aAAa,kBAmBtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { destroyWalletProviders } from './destroyWalletProviders';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/wallets/destroyWalletProviders/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}