@dynamic-labs-sdk/client 1.22.1 → 1.23.1

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 (118) hide show
  1. package/dist/{NativeModuleNotLinkedError-C1P6K16j.native.esm.js → NativeModuleNotLinkedError-DLP1hpcM.native.esm.js} +13 -21
  2. package/dist/NativeModuleNotLinkedError-DLP1hpcM.native.esm.js.map +1 -0
  3. package/dist/constants.d.ts.map +1 -1
  4. package/dist/{consumeMfaTokenIfRequiredForAction-NVOBPPQW.esm.js → consumeMfaTokenIfRequiredForAction-D2oiQdpj.esm.js} +2 -2
  5. package/dist/{consumeMfaTokenIfRequiredForAction-NVOBPPQW.esm.js.map → consumeMfaTokenIfRequiredForAction-D2oiQdpj.esm.js.map} +1 -1
  6. package/dist/{consumeMfaTokenIfRequiredForAction-D1iSuzzl.cjs → consumeMfaTokenIfRequiredForAction-DJAdtHe3.cjs} +2 -2
  7. package/dist/{consumeMfaTokenIfRequiredForAction-D1iSuzzl.cjs.map → consumeMfaTokenIfRequiredForAction-DJAdtHe3.cjs.map} +1 -1
  8. package/dist/core.cjs +8 -7
  9. package/dist/core.cjs.map +1 -1
  10. package/dist/core.esm.js +9 -9
  11. package/dist/core.esm.js.map +1 -1
  12. package/dist/core.native.esm.js +6 -6
  13. package/dist/core.native.esm.js.map +1 -1
  14. package/dist/exports/core.d.ts +2 -0
  15. package/dist/exports/core.d.ts.map +1 -1
  16. package/dist/exports/waas.d.ts +2 -0
  17. package/dist/exports/waas.d.ts.map +1 -1
  18. package/dist/generated/dependencyCatalog.d.ts +4 -0
  19. package/dist/generated/dependencyCatalog.d.ts.map +1 -0
  20. package/dist/{getNetworkProviderFromNetworkId-Cn1w40Jn.cjs → getNetworkProviderFromNetworkId-BVP0ghId.cjs} +2 -2
  21. package/dist/{getNetworkProviderFromNetworkId-Cn1w40Jn.cjs.map → getNetworkProviderFromNetworkId-BVP0ghId.cjs.map} +1 -1
  22. package/dist/{getNetworkProviderFromNetworkId-W8EeAcf_.native.esm.js → getNetworkProviderFromNetworkId-Bh4_-rhf.native.esm.js} +3 -261
  23. package/dist/getNetworkProviderFromNetworkId-Bh4_-rhf.native.esm.js.map +1 -0
  24. package/dist/{getNetworkProviderFromNetworkId-CkKboiVD.esm.js → getNetworkProviderFromNetworkId-OfuaqHXU.esm.js} +6 -6
  25. package/dist/getNetworkProviderFromNetworkId-OfuaqHXU.esm.js.map +1 -0
  26. package/dist/{getSignedSessionId-DgEVnuO-.native.esm.js → getSignedSessionId-2jmv21__.native.esm.js} +3 -3
  27. package/dist/{getSignedSessionId-DgEVnuO-.native.esm.js.map → getSignedSessionId-2jmv21__.native.esm.js.map} +1 -1
  28. package/dist/{getSignedSessionId-DjHPdrA_.esm.js → getSignedSessionId-CDEQ6TMC.esm.js} +2 -2
  29. package/dist/{getSignedSessionId-DjHPdrA_.esm.js.map → getSignedSessionId-CDEQ6TMC.esm.js.map} +1 -1
  30. package/dist/{getSignedSessionId-DXrCyLJT.cjs → getSignedSessionId-_ZPqzvm5.cjs} +2 -2
  31. package/dist/{getSignedSessionId-DXrCyLJT.cjs.map → getSignedSessionId-_ZPqzvm5.cjs.map} +1 -1
  32. package/dist/getWalletProviderByKey-0VBVdu30.native.esm.js +279 -0
  33. package/dist/getWalletProviderByKey-0VBVdu30.native.esm.js.map +1 -0
  34. package/dist/{getWalletProviderByKey-BAmDpbgi.esm.js → getWalletProviderByKey-BIHCI8S6.esm.js} +2 -2
  35. package/dist/{getWalletProviderByKey-BAmDpbgi.esm.js.map → getWalletProviderByKey-BIHCI8S6.esm.js.map} +1 -1
  36. package/dist/{getWalletProviderByKey-o0urQYPF.cjs → getWalletProviderByKey-F5wxlC_k.cjs} +2 -2
  37. package/dist/{getWalletProviderByKey-o0urQYPF.cjs.map → getWalletProviderByKey-F5wxlC_k.cjs.map} +1 -1
  38. package/dist/index.cjs +14 -8
  39. package/dist/index.cjs.map +1 -1
  40. package/dist/index.esm.js +17 -11
  41. package/dist/index.esm.js.map +1 -1
  42. package/dist/index.native.esm.js +14 -8
  43. package/dist/index.native.esm.js.map +1 -1
  44. package/dist/{isDynamicWaasEnabled-C0x4cUHe.esm.js → isDynamicWaasEnabled-OlDJAGIi.esm.js} +2 -2
  45. package/dist/{isDynamicWaasEnabled-C0x4cUHe.esm.js.map → isDynamicWaasEnabled-OlDJAGIi.esm.js.map} +1 -1
  46. package/dist/{isDynamicWaasEnabled-DQe8Wxd0.cjs → isDynamicWaasEnabled-YigU-EAT.cjs} +2 -2
  47. package/dist/{isDynamicWaasEnabled-DQe8Wxd0.cjs.map → isDynamicWaasEnabled-YigU-EAT.cjs.map} +1 -1
  48. package/dist/{isDynamicWaasEnabled-CF-T5TSi.native.esm.js → isDynamicWaasEnabled-cVxCp5BV.native.esm.js} +2 -2
  49. package/dist/{isDynamicWaasEnabled-CF-T5TSi.native.esm.js.map → isDynamicWaasEnabled-cVxCp5BV.native.esm.js.map} +1 -1
  50. package/dist/{isMfaRequiredForAction-BK_4B7Gi.esm.js → isMfaRequiredForAction-Bn2HCYvZ.esm.js} +2 -2
  51. package/dist/{isMfaRequiredForAction-BK_4B7Gi.esm.js.map → isMfaRequiredForAction-Bn2HCYvZ.esm.js.map} +1 -1
  52. package/dist/{isMfaRequiredForAction-BcO-fQ-N.cjs → isMfaRequiredForAction-BtPXuiSY.cjs} +2 -2
  53. package/dist/{isMfaRequiredForAction-BcO-fQ-N.cjs.map → isMfaRequiredForAction-BtPXuiSY.cjs.map} +1 -1
  54. package/dist/{isMfaRequiredForAction-Ce0neLQQ.native.esm.js → isMfaRequiredForAction-DjC0wQJ4.native.esm.js} +2 -2
  55. package/dist/{isMfaRequiredForAction-Ce0neLQQ.native.esm.js.map → isMfaRequiredForAction-DjC0wQJ4.native.esm.js.map} +1 -1
  56. package/dist/{isUserOnboardingComplete-CssbJY_7.esm.js → isUserOnboardingComplete-BCZpska8.native.esm.js} +3 -3
  57. package/dist/{isUserOnboardingComplete-BK7GcrpI.native.esm.js.map → isUserOnboardingComplete-BCZpska8.native.esm.js.map} +1 -1
  58. package/dist/{isUserOnboardingComplete-B4hlrt5N.cjs → isUserOnboardingComplete-Bi7tw1lk.cjs} +3 -3
  59. package/dist/{isUserOnboardingComplete-B4hlrt5N.cjs.map → isUserOnboardingComplete-Bi7tw1lk.cjs.map} +1 -1
  60. package/dist/{isUserOnboardingComplete-BK7GcrpI.native.esm.js → isUserOnboardingComplete-DScTOOg_.esm.js} +3 -3
  61. package/dist/{isUserOnboardingComplete-CssbJY_7.esm.js.map → isUserOnboardingComplete-DScTOOg_.esm.js.map} +1 -1
  62. package/dist/{migrateFromFireblocks-BX9JTaOI.native.esm.js → migrateFromFireblocks-7aKNa_3P.native.esm.js} +3 -3
  63. package/dist/{migrateFromFireblocks-BX9JTaOI.native.esm.js.map → migrateFromFireblocks-7aKNa_3P.native.esm.js.map} +1 -1
  64. package/dist/{migrateFromFireblocks-CIE4qLS6.cjs → migrateFromFireblocks-BnHU2AZJ.cjs} +4 -4
  65. package/dist/{migrateFromFireblocks-CIE4qLS6.cjs.map → migrateFromFireblocks-BnHU2AZJ.cjs.map} +1 -1
  66. package/dist/{migrateFromFireblocks-Btox03CB.esm.js → migrateFromFireblocks-DkQj3aYU.esm.js} +4 -4
  67. package/dist/{migrateFromFireblocks-Btox03CB.esm.js.map → migrateFromFireblocks-DkQj3aYU.esm.js.map} +1 -1
  68. package/dist/modules/apiClient/constants.d.ts +1 -1
  69. package/dist/modules/apiClient/constants.d.ts.map +1 -1
  70. package/dist/modules/auth/getActionAuthorizationTokens/getActionAuthorizationTokens.d.ts +29 -0
  71. package/dist/modules/auth/getActionAuthorizationTokens/getActionAuthorizationTokens.d.ts.map +1 -0
  72. package/dist/modules/auth/getActionAuthorizationTokens/index.d.ts +2 -0
  73. package/dist/modules/auth/getActionAuthorizationTokens/index.d.ts.map +1 -0
  74. package/dist/modules/auth/logoutReason.d.ts +1 -1
  75. package/dist/modules/auth/logoutReason.d.ts.map +1 -1
  76. package/dist/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.d.ts +7 -2
  77. package/dist/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.d.ts.map +1 -1
  78. package/dist/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.d.ts +6 -1
  79. package/dist/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.d.ts.map +1 -1
  80. package/dist/modules/waas/businessAccounts/businessAccounts.constants.d.ts +5 -0
  81. package/dist/modules/waas/businessAccounts/businessAccounts.constants.d.ts.map +1 -0
  82. package/dist/modules/waas/businessAccounts/transferBusinessAccountOwnership/transferBusinessAccountOwnership.d.ts.map +1 -1
  83. package/dist/modules/waas/businessAccounts/updateBusinessAccount/index.d.ts +2 -0
  84. package/dist/modules/waas/businessAccounts/updateBusinessAccount/index.d.ts.map +1 -0
  85. package/dist/modules/waas/businessAccounts/updateBusinessAccount/updateBusinessAccount.d.ts +26 -0
  86. package/dist/modules/waas/businessAccounts/updateBusinessAccount/updateBusinessAccount.d.ts.map +1 -0
  87. package/dist/modules/waas/businessAccounts/updateBusinessAccountMemberRole/index.d.ts +2 -0
  88. package/dist/modules/waas/businessAccounts/updateBusinessAccountMemberRole/index.d.ts.map +1 -0
  89. package/dist/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.d.ts +35 -0
  90. package/dist/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.d.ts.map +1 -0
  91. package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
  92. package/dist/modules/wallets/verifyWalletAccount/verifyWalletAccount.d.ts +1 -1
  93. package/dist/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.d.ts.map +1 -1
  94. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  95. package/dist/{updateAuthFromVerifyResponse-CK3pAERc.cjs → updateAuthFromVerifyResponse-B2QePeNz.cjs} +12 -26
  96. package/dist/updateAuthFromVerifyResponse-B2QePeNz.cjs.map +1 -0
  97. package/dist/{updateAuthFromVerifyResponse-BhILXMm_.esm.js → updateAuthFromVerifyResponse-wHGRunTk.esm.js} +13 -21
  98. package/dist/updateAuthFromVerifyResponse-wHGRunTk.esm.js.map +1 -0
  99. package/dist/waas.cjs +127 -30
  100. package/dist/waas.cjs.map +1 -1
  101. package/dist/waas.esm.js +128 -33
  102. package/dist/waas.esm.js.map +1 -1
  103. package/dist/waas.native.esm.js +127 -32
  104. package/dist/waas.native.esm.js.map +1 -1
  105. package/dist/waasCore.cjs +53 -15
  106. package/dist/waasCore.cjs.map +1 -1
  107. package/dist/waasCore.esm.js +53 -15
  108. package/dist/waasCore.esm.js.map +1 -1
  109. package/dist/waasCore.native.esm.js +52 -14
  110. package/dist/waasCore.native.esm.js.map +1 -1
  111. package/package.json +7 -5
  112. package/dist/NativeModuleNotLinkedError-C1P6K16j.native.esm.js.map +0 -1
  113. package/dist/getNetworkProviderFromNetworkId-CkKboiVD.esm.js.map +0 -1
  114. package/dist/getNetworkProviderFromNetworkId-W8EeAcf_.native.esm.js.map +0 -1
  115. package/dist/getWalletProviderByKey-ClOKL5JG.native.esm.js +0 -20
  116. package/dist/getWalletProviderByKey-ClOKL5JG.native.esm.js.map +0 -1
  117. package/dist/updateAuthFromVerifyResponse-BhILXMm_.esm.js.map +0 -1
  118. package/dist/updateAuthFromVerifyResponse-CK3pAERc.cjs.map +0 -1
package/dist/index.esm.js CHANGED
@@ -1,13 +1,13 @@
1
- import { $ as updateNoncePoolStorage, A as generateSessionKeys, B as splitWalletProviderKey, C as getOperatingSystem, Ct as name, D as getWalletProviderRegistry, E as WalletProviderPriority, G as onEvent, H as retryOnFail, I as getChainFromVerifiedCredentialChain, K as onceEvent, L as CHAINS_INFO_MAP, M as isSignedIn, N as getWalletAccounts, Q as fetchAndStoreNonces, R as formatWalletAccountId, S as getUserAgent, St as getCore, T as getWalletProviderFromWalletAccount, U as emitEvent, W as offEvent, Z as getNonce, _ as SDK_API_CORE_VERSION, _t as NONCE_POOL_SIZE, a as initializeWaasClientsForEagerRecovery, at as LinkCredentialError, b as scrubParameters, dt as isCookieEnabled, et as createStorageKeySchema, f as getWalletProviders, ft as assertDefined, g as DYNAMIC_ICONIC_SPRITE_URL, gt as getPlatform, ht as randomString, i as InvalidParamError, it as MfaInvalidOtpError, j as fetchProjectSettings, k as NoWalletProviderFoundError, m as checkAndRaiseWalletAccountsChangedEvent, mt as getElevatedAccessToken, n as upsertElevatedAccessToken, nt as SandboxMaximumThresholdReachedError, ot as InvalidExternalAuthError, p as isUserMissingMfaAuth, pt as ValueMustBeDefinedError, q as createApiClient, r as parseElevatedAccessToken, rt as MfaRateLimitedError, st as APIError, t as updateAuthFromVerifyResponse, tt as UnauthorizedError, v as __logoutWithReason_wrapped, vt as getDefaultClient, w as extractSessionId, wt as version, x as DEFAULT_PII_FIELDS, xt as BaseError, y as instrumentFunction, yt as setDefaultClient, z as normalizeAddress } from "./updateAuthFromVerifyResponse-BhILXMm_.esm.js";
2
- import { B as isEqualShallow, C as getKeychainIndexedDBName, E as assertSafeNavigationUrl, F as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, G as UnavailableInServerSideError, I as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, L as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, M as createDeferredPromise, N as FETCH_PROJECT_SETTINGS_TRACKER_KEY, O as createLogger, P as GENERATE_SESSION_KEYS_TRACKER_KEY, R as getBuffer, S as MergeAccountsConfirmationError, T as createKeychainService, U as createLocalStorageAdapter, V as createStorage, W as isServerSideRendering, _ as consumeCaptchaToken, a as verifyMessageSignatureOwnership, b as WalletAlreadyLinkedToAnotherUserError, c as formatSignInMessage, d as updateWalletProviderKeysForVerifiedCredentials, f as setUnverifiedWalletAccounts, g as MethodNotImplementedError, h as __setCaptchaToken_wrapped, i as getNetworksData, j as CannotTrackError, k as createCrossTabBroadcast, l as getAppMetadata, m as hasExtension, o as removeUnverifiedWalletAccount, p as createVisit, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as reconcileWalletAccountsAgainstClient, v as isCaptchaRequired, w as createRealtimeService, x as NoNetworkProvidersError, y as WalletScreeningBlockedError, z as subscribeWithSelector } from "./getNetworkProviderFromNetworkId-CkKboiVD.esm.js";
3
- import { n as NotWaasWalletAccountError, r as __refreshAuth_wrapped } from "./isDynamicWaasEnabled-C0x4cUHe.esm.js";
4
- import { a as WaasOnboardingIncompleteError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, o as WaasLoadFailedError, r as isDeviceRegistrationRequired, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-CssbJY_7.esm.js";
5
- import { n as getVerifiedCredentialForWalletAccount, t as getWalletProviderByKey } from "./getWalletProviderByKey-BAmDpbgi.esm.js";
6
- import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-BK_4B7Gi.esm.js";
1
+ import { $ as UnauthorizedError, A as isSignedIn, B as retryOnFail, C as getWalletProviderFromWalletAccount, Ct as version, D as NoWalletProviderFoundError, F as CHAINS_INFO_MAP, G as createApiClient, H as offEvent, I as formatWalletAccountId, L as normalizeAddress, O as generateSessionKeys, P as getChainFromVerifiedCredentialChain, Q as createStorageKeySchema, R as splitWalletProviderKey, S as extractSessionId, St as name, T as getWalletProviderRegistry, U as onEvent, V as emitEvent, W as onceEvent, X as fetchAndStoreNonces, Y as getNonce, Z as updateNoncePoolStorage, _ as instrumentFunction, _t as getDefaultClient, a as initializeWaasClientsForEagerRecovery, at as APIError, b as getUserAgent, bt as BaseError, ct as SDK_API_CORE_VERSION, dt as assertDefined, et as SandboxMaximumThresholdReachedError, f as getWalletProviders, ft as ValueMustBeDefinedError, g as __logoutWithReason_wrapped, gt as NONCE_POOL_SIZE, ht as getPlatform, i as InvalidParamError, it as InvalidExternalAuthError, j as getWalletAccounts, k as fetchProjectSettings, m as checkAndRaiseWalletAccountsChangedEvent, mt as randomString, n as upsertElevatedAccessToken, nt as MfaInvalidOtpError, p as isUserMissingMfaAuth, pt as getElevatedAccessToken, r as parseElevatedAccessToken, rt as LinkCredentialError, st as DYNAMIC_ICONIC_SPRITE_URL, t as updateAuthFromVerifyResponse, tt as MfaRateLimitedError, ut as isCookieEnabled, v as scrubParameters, vt as setDefaultClient, w as WalletProviderPriority, x as getOperatingSystem, xt as getCore, y as DEFAULT_PII_FIELDS } from "./updateAuthFromVerifyResponse-wHGRunTk.esm.js";
2
+ import { B as isEqualShallow, C as getKeychainIndexedDBName, E as assertSafeNavigationUrl, F as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, G as UnavailableInServerSideError, I as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, L as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, M as createDeferredPromise, N as FETCH_PROJECT_SETTINGS_TRACKER_KEY, O as createLogger, P as GENERATE_SESSION_KEYS_TRACKER_KEY, R as getBuffer, S as MergeAccountsConfirmationError, T as createKeychainService, U as createLocalStorageAdapter, V as createStorage, W as isServerSideRendering, _ as consumeCaptchaToken, a as verifyMessageSignatureOwnership, b as WalletAlreadyLinkedToAnotherUserError, c as formatSignInMessage, d as updateWalletProviderKeysForVerifiedCredentials, f as setUnverifiedWalletAccounts, g as MethodNotImplementedError, h as __setCaptchaToken_wrapped, i as getNetworksData, j as CannotTrackError, k as createCrossTabBroadcast, l as getAppMetadata, m as hasExtension, o as removeUnverifiedWalletAccount, p as createVisit, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as reconcileWalletAccountsAgainstClient, v as isCaptchaRequired, w as createRealtimeService, x as NoNetworkProvidersError, y as WalletScreeningBlockedError, z as subscribeWithSelector } from "./getNetworkProviderFromNetworkId-OfuaqHXU.esm.js";
3
+ import { n as NotWaasWalletAccountError, r as __refreshAuth_wrapped } from "./isDynamicWaasEnabled-OlDJAGIi.esm.js";
4
+ import { a as WaasOnboardingIncompleteError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, o as WaasLoadFailedError, r as isDeviceRegistrationRequired, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-DScTOOg_.esm.js";
5
+ import { n as getVerifiedCredentialForWalletAccount, t as getWalletProviderByKey } from "./getWalletProviderByKey-BIHCI8S6.esm.js";
6
+ import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-Bn2HCYvZ.esm.js";
7
7
  import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
8
8
  import { AuthModeEnum, CaptchaProviderEnum as CaptchaProviderEnum$1, ExchangeKeyEnum, JwtVerifiedCredentialFormatEnum, JwtVerifiedCredentialFormatEnum as JwtVerifiedCredentialFormatEnum$1, MFAAction, MfaBackupCodeAcknowledgement, ProviderEnum, ProviderEnum as ProviderEnum$1, TokenScope, TokenScope as TokenScope$1, WaasBackupOptionsEnum, WalletProviderEnum } from "@dynamic-labs/sdk-api-core";
9
9
  import * as z from "zod/mini";
10
- import EventEmitter, { EventEmitter as EventEmitter$1 } from "eventemitter3";
10
+ import EventEmitter$1, { EventEmitter } from "eventemitter3";
11
11
  import { browserSupportsWebAuthn, startAuthentication, startRegistration } from "@simplewebauthn/browser";
12
12
 
13
13
  //#region src/modules/state/raiseStateEvents/events.ts
@@ -567,7 +567,7 @@ const createAsyncTrack = () => {
567
567
  * This ensures no process is missed (as it would throw when tracked on a different node tick).
568
568
  */
569
569
  let isTrackEnabled = true;
570
- const eventEmitter = new EventEmitter$1();
570
+ const eventEmitter = new EventEmitter();
571
571
  const allSettledPromise = createDeferredPromise();
572
572
  const tracker = /* @__PURE__ */ new Map();
573
573
  /**
@@ -614,7 +614,7 @@ const createAsyncTrack = () => {
614
614
  //#endregion
615
615
  //#region src/services/eventEmitter/createEventEmitter.ts
616
616
  /** @notInstrumented */
617
- const createEventEmitter = () => new EventEmitter();
617
+ const createEventEmitter = () => new EventEmitter$1();
618
618
 
619
619
  //#endregion
620
620
  //#region src/services/fetch/createWebFetch.ts
@@ -8157,7 +8157,13 @@ const isSameAddress = ({ chain, left, right }) => normalizeAddress({
8157
8157
  //#region src/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.ts
8158
8158
  /** @notInstrumented */
8159
8159
  const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfer, requestedScopes }, client) => {
8160
- if (walletAccount.verifiedCredentialId) throw new WalletAccountAlreadyVerifiedError(walletAccount.address);
8160
+ /**
8161
+ * A wallet that is already verified can still be used for step-up
8162
+ * authentication: the user proves ownership again to mint an elevated
8163
+ * access token for the requested scope. Skip the already-verified guard
8164
+ * when scopes are provided so the call reaches walletsVerify.
8165
+ */
8166
+ if (walletAccount.verifiedCredentialId && !requestedScopes) throw new WalletAccountAlreadyVerifiedError(walletAccount.address);
8161
8167
  const walletProvider = getWalletProviderFromWalletAccount({ walletAccount }, client);
8162
8168
  const { messageToSign, signature } = await __proveWalletAccountOwnership_wrapped({ walletAccount }, client);
8163
8169
  const formattedSignature = walletAccount.hardwareWalletVendor ? formatSignatureForHardwareWallet({
@@ -8226,7 +8232,7 @@ const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfe
8226
8232
  * @param [params.requestedScopes] - Optional token scopes to request during verification.
8227
8233
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
8228
8234
  * @returns A promise that resolves to the verified wallet account.
8229
- * @throws WalletAccountAlreadyVerifiedError If the wallet is already verified.
8235
+ * @throws WalletAccountAlreadyVerifiedError If the wallet is already verified and no requestedScopes are provided.
8230
8236
  * @throws WalletAlreadyLinkedToAnotherUserError If the wallet is linked to another user.
8231
8237
  * @see connectWithWalletProvider
8232
8238
  * @see connectAndVerifyWithWalletProvider