@dynamic-labs-sdk/client 1.33.1 → 1.33.3

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 (156) hide show
  1. package/dist/{apiClient-BbjPoAwE.native.esm.js → apiClient-CpfEx6Uc.native.esm.js} +3 -3
  2. package/dist/{apiClient-BbjPoAwE.native.esm.js.map → apiClient-CpfEx6Uc.native.esm.js.map} +1 -1
  3. package/dist/core.cjs +5 -78
  4. package/dist/core.cjs.map +1 -1
  5. package/dist/core.esm.js +8 -79
  6. package/dist/core.esm.js.map +1 -1
  7. package/dist/core.native.esm.js +6 -77
  8. package/dist/core.native.esm.js.map +1 -1
  9. package/dist/exports/core.d.ts +0 -2
  10. package/dist/exports/core.d.ts.map +1 -1
  11. package/dist/exports/waas.d.ts +13 -1
  12. package/dist/exports/waas.d.ts.map +1 -1
  13. package/dist/{getNetworkProviderFromNetworkId-BXoTukxv.cjs → getNetworkProviderFromNetworkId-Cez8TM-n.cjs} +9 -2
  14. package/dist/getNetworkProviderFromNetworkId-Cez8TM-n.cjs.map +1 -0
  15. package/dist/{getNetworkProviderFromNetworkId-D_Hg6kP7.esm.js → getNetworkProviderFromNetworkId-Cf-CfYM4.esm.js} +9 -8
  16. package/dist/getNetworkProviderFromNetworkId-Cf-CfYM4.esm.js.map +1 -0
  17. package/dist/{getNetworkProviderFromNetworkId-Cs3hLqBS.native.esm.js → getNetworkProviderFromNetworkId-CuTEQ9dg.native.esm.js} +5 -4
  18. package/dist/getNetworkProviderFromNetworkId-CuTEQ9dg.native.esm.js.map +1 -0
  19. package/dist/{getSignedSessionId-Bk-8is5J.native.esm.js → getSignedSessionId-Bt4obN3w.native.esm.js} +3 -3
  20. package/dist/{getSignedSessionId-Bk-8is5J.native.esm.js.map → getSignedSessionId-Bt4obN3w.native.esm.js.map} +1 -1
  21. package/dist/{getSignedSessionId-D_TknHwX.esm.js → getSignedSessionId-Cx7WP4ZJ.esm.js} +3 -3
  22. package/dist/{getSignedSessionId-D_TknHwX.esm.js.map → getSignedSessionId-Cx7WP4ZJ.esm.js.map} +1 -1
  23. package/dist/{getSignedSessionId-2O_cJtIV.cjs → getSignedSessionId-DiVxv0qz.cjs} +3 -3
  24. package/dist/{getSignedSessionId-2O_cJtIV.cjs.map → getSignedSessionId-DiVxv0qz.cjs.map} +1 -1
  25. package/dist/{getVerifiedCredentialForWalletAccount-BmsHgXbj.esm.js → getVerifiedCredentialForWalletAccount-DfKRbqco.esm.js} +2 -2
  26. package/dist/{getVerifiedCredentialForWalletAccount-BmsHgXbj.esm.js.map → getVerifiedCredentialForWalletAccount-DfKRbqco.esm.js.map} +1 -1
  27. package/dist/{getVerifiedCredentialForWalletAccount-upiwolAi.cjs → getVerifiedCredentialForWalletAccount-UIcOv7IN.cjs} +2 -2
  28. package/dist/{getVerifiedCredentialForWalletAccount-upiwolAi.cjs.map → getVerifiedCredentialForWalletAccount-UIcOv7IN.cjs.map} +1 -1
  29. package/dist/index.cjs +56 -69
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.esm.js +50 -63
  32. package/dist/index.esm.js.map +1 -1
  33. package/dist/index.native.esm.js +48 -61
  34. package/dist/index.native.esm.js.map +1 -1
  35. package/dist/{isMfaRequiredForAction-D7b7mUT9.native.esm.js → isMfaRequiredForAction-CxYft5KR.native.esm.js} +2 -2
  36. package/dist/{isMfaRequiredForAction-D7b7mUT9.native.esm.js.map → isMfaRequiredForAction-CxYft5KR.native.esm.js.map} +1 -1
  37. package/dist/{isMfaRequiredForAction-DF65MJNN.cjs → isMfaRequiredForAction-Czx-uPFY.cjs} +2 -2
  38. package/dist/{isMfaRequiredForAction-DF65MJNN.cjs.map → isMfaRequiredForAction-Czx-uPFY.cjs.map} +1 -1
  39. package/dist/{isMfaRequiredForAction-CHqeZeTS.esm.js → isMfaRequiredForAction-DS8fcwxO.esm.js} +2 -2
  40. package/dist/{isMfaRequiredForAction-CHqeZeTS.esm.js.map → isMfaRequiredForAction-DS8fcwxO.esm.js.map} +1 -1
  41. package/dist/{isUserOnboardingComplete-CpHVw8ee.esm.js → isUserOnboardingComplete-COmYFW26.esm.js} +3 -3
  42. package/dist/{isUserOnboardingComplete-CpHVw8ee.esm.js.map → isUserOnboardingComplete-COmYFW26.esm.js.map} +1 -1
  43. package/dist/{isUserOnboardingComplete-CYpgo52t.native.esm.js → isUserOnboardingComplete-DYnRDLep.native.esm.js} +3 -3
  44. package/dist/{isUserOnboardingComplete-CYpgo52t.native.esm.js.map → isUserOnboardingComplete-DYnRDLep.native.esm.js.map} +1 -1
  45. package/dist/{isUserOnboardingComplete-BAL-3zu7.cjs → isUserOnboardingComplete-FbjleMQm.cjs} +3 -3
  46. package/dist/{isUserOnboardingComplete-BAL-3zu7.cjs.map → isUserOnboardingComplete-FbjleMQm.cjs.map} +1 -1
  47. package/dist/{logoutWithReason-CFjm8dbR.cjs → logoutWithReason-BKwWBsCT.cjs} +73 -55
  48. package/dist/logoutWithReason-BKwWBsCT.cjs.map +1 -0
  49. package/dist/{logoutWithReason-CX9hGTPw.esm.js → logoutWithReason-DO0kP7nf.esm.js} +62 -50
  50. package/dist/logoutWithReason-DO0kP7nf.esm.js.map +1 -0
  51. package/dist/{logoutWithReason-Bd1qUh7l.native.esm.js → logoutWithReason-DWkIKoLk.native.esm.js} +61 -49
  52. package/dist/logoutWithReason-DWkIKoLk.native.esm.js.map +1 -0
  53. package/dist/{migrateFromFireblocks-BLz9aHOY.native.esm.js → migrateFromFireblocks-BwYnNAAh.native.esm.js} +2 -2
  54. package/dist/{migrateFromFireblocks-BLz9aHOY.native.esm.js.map → migrateFromFireblocks-BwYnNAAh.native.esm.js.map} +1 -1
  55. package/dist/{migrateFromFireblocks-C8KXMXk-.esm.js → migrateFromFireblocks-C_cap--b.esm.js} +2 -2
  56. package/dist/{migrateFromFireblocks-C8KXMXk-.esm.js.map → migrateFromFireblocks-C_cap--b.esm.js.map} +1 -1
  57. package/dist/{migrateFromFireblocks-BiZmnKp9.cjs → migrateFromFireblocks-ycJIYcrm.cjs} +2 -2
  58. package/dist/{migrateFromFireblocks-BiZmnKp9.cjs.map → migrateFromFireblocks-ycJIYcrm.cjs.map} +1 -1
  59. package/dist/modules/initializeClient/consts.d.ts +1 -0
  60. package/dist/modules/initializeClient/consts.d.ts.map +1 -1
  61. package/dist/modules/initializeClient/initializeClient.d.ts.map +1 -1
  62. package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts +4 -5
  63. package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts.map +1 -1
  64. package/dist/modules/sessionKeys/canonicalizeJson/canonicalizeJson.d.ts +20 -0
  65. package/dist/modules/sessionKeys/canonicalizeJson/canonicalizeJson.d.ts.map +1 -0
  66. package/dist/modules/sessionKeys/canonicalizeJson/index.d.ts +2 -0
  67. package/dist/modules/sessionKeys/canonicalizeJson/index.d.ts.map +1 -0
  68. package/dist/modules/sessionKeys/signBusinessAccountIntent/signBusinessAccountIntent.d.ts +39 -6
  69. package/dist/modules/sessionKeys/signBusinessAccountIntent/signBusinessAccountIntent.d.ts.map +1 -1
  70. package/dist/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.d.ts +9 -3
  71. package/dist/modules/waas/businessAccounts/addBusinessAccountMember/addBusinessAccountMember.d.ts.map +1 -1
  72. package/dist/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.d.ts +10 -3
  73. package/dist/modules/waas/businessAccounts/addWalletToBusinessAccount/addWalletToBusinessAccount.d.ts.map +1 -1
  74. package/dist/modules/waas/businessAccounts/approveBusinessAccountProposal/approveBusinessAccountProposal.d.ts +43 -0
  75. package/dist/modules/waas/businessAccounts/approveBusinessAccountProposal/approveBusinessAccountProposal.d.ts.map +1 -0
  76. package/dist/modules/waas/businessAccounts/approveBusinessAccountProposal/index.d.ts +2 -0
  77. package/dist/modules/waas/businessAccounts/approveBusinessAccountProposal/index.d.ts.map +1 -0
  78. package/dist/modules/waas/businessAccounts/businessAccounts.types.d.ts +249 -0
  79. package/dist/modules/waas/businessAccounts/businessAccounts.types.d.ts.map +1 -1
  80. package/dist/modules/waas/businessAccounts/defineBusinessAccountRole/defineBusinessAccountRole.d.ts +45 -0
  81. package/dist/modules/waas/businessAccounts/defineBusinessAccountRole/defineBusinessAccountRole.d.ts.map +1 -0
  82. package/dist/modules/waas/businessAccounts/defineBusinessAccountRole/index.d.ts +2 -0
  83. package/dist/modules/waas/businessAccounts/defineBusinessAccountRole/index.d.ts.map +1 -0
  84. package/dist/modules/waas/businessAccounts/deleteBusinessAccountRole/deleteBusinessAccountRole.d.ts +41 -0
  85. package/dist/modules/waas/businessAccounts/deleteBusinessAccountRole/deleteBusinessAccountRole.d.ts.map +1 -0
  86. package/dist/modules/waas/businessAccounts/deleteBusinessAccountRole/index.d.ts +2 -0
  87. package/dist/modules/waas/businessAccounts/deleteBusinessAccountRole/index.d.ts.map +1 -0
  88. package/dist/modules/waas/businessAccounts/executeBusinessAccountProposal/executeBusinessAccountProposal.d.ts +39 -0
  89. package/dist/modules/waas/businessAccounts/executeBusinessAccountProposal/executeBusinessAccountProposal.d.ts.map +1 -0
  90. package/dist/modules/waas/businessAccounts/executeBusinessAccountProposal/index.d.ts +2 -0
  91. package/dist/modules/waas/businessAccounts/executeBusinessAccountProposal/index.d.ts.map +1 -0
  92. package/dist/modules/waas/businessAccounts/getBusinessAccountGovernance/getBusinessAccountGovernance.d.ts +30 -0
  93. package/dist/modules/waas/businessAccounts/getBusinessAccountGovernance/getBusinessAccountGovernance.d.ts.map +1 -0
  94. package/dist/modules/waas/businessAccounts/getBusinessAccountGovernance/index.d.ts +2 -0
  95. package/dist/modules/waas/businessAccounts/getBusinessAccountGovernance/index.d.ts.map +1 -0
  96. package/dist/modules/waas/businessAccounts/listBusinessAccountProposals/index.d.ts +2 -0
  97. package/dist/modules/waas/businessAccounts/listBusinessAccountProposals/index.d.ts.map +1 -0
  98. package/dist/modules/waas/businessAccounts/listBusinessAccountProposals/listBusinessAccountProposals.d.ts +26 -0
  99. package/dist/modules/waas/businessAccounts/listBusinessAccountProposals/listBusinessAccountProposals.d.ts.map +1 -0
  100. package/dist/modules/waas/businessAccounts/listBusinessAccountProposalsAwaitingMyApproval/index.d.ts +2 -0
  101. package/dist/modules/waas/businessAccounts/listBusinessAccountProposalsAwaitingMyApproval/index.d.ts.map +1 -0
  102. package/dist/modules/waas/businessAccounts/listBusinessAccountProposalsAwaitingMyApproval/listBusinessAccountProposalsAwaitingMyApproval.d.ts +21 -0
  103. package/dist/modules/waas/businessAccounts/listBusinessAccountProposalsAwaitingMyApproval/listBusinessAccountProposalsAwaitingMyApproval.d.ts.map +1 -0
  104. package/dist/modules/waas/businessAccounts/listBusinessAccountRoles/index.d.ts +2 -0
  105. package/dist/modules/waas/businessAccounts/listBusinessAccountRoles/index.d.ts.map +1 -0
  106. package/dist/modules/waas/businessAccounts/listBusinessAccountRoles/listBusinessAccountRoles.d.ts +26 -0
  107. package/dist/modules/waas/businessAccounts/listBusinessAccountRoles/listBusinessAccountRoles.d.ts.map +1 -0
  108. package/dist/modules/waas/businessAccounts/removeBusinessAccountMember/removeBusinessAccountMember.d.ts +11 -2
  109. package/dist/modules/waas/businessAccounts/removeBusinessAccountMember/removeBusinessAccountMember.d.ts.map +1 -1
  110. package/dist/modules/waas/businessAccounts/removeBusinessAccountSigner/removeBusinessAccountSigner.d.ts +11 -2
  111. package/dist/modules/waas/businessAccounts/removeBusinessAccountSigner/removeBusinessAccountSigner.d.ts.map +1 -1
  112. package/dist/modules/waas/businessAccounts/removeBusinessAccountWallet/removeBusinessAccountWallet.d.ts +12 -4
  113. package/dist/modules/waas/businessAccounts/removeBusinessAccountWallet/removeBusinessAccountWallet.d.ts.map +1 -1
  114. package/dist/modules/waas/businessAccounts/resendFields.d.ts +39 -0
  115. package/dist/modules/waas/businessAccounts/resendFields.d.ts.map +1 -0
  116. package/dist/modules/waas/businessAccounts/setBusinessAccountGovernance/index.d.ts +2 -0
  117. package/dist/modules/waas/businessAccounts/setBusinessAccountGovernance/index.d.ts.map +1 -0
  118. package/dist/modules/waas/businessAccounts/setBusinessAccountGovernance/setBusinessAccountGovernance.d.ts +49 -0
  119. package/dist/modules/waas/businessAccounts/setBusinessAccountGovernance/setBusinessAccountGovernance.d.ts.map +1 -0
  120. package/dist/modules/waas/businessAccounts/transferBusinessAccountOwnership/transferBusinessAccountOwnership.d.ts +11 -2
  121. package/dist/modules/waas/businessAccounts/transferBusinessAccountOwnership/transferBusinessAccountOwnership.d.ts.map +1 -1
  122. package/dist/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.d.ts +11 -2
  123. package/dist/modules/waas/businessAccounts/updateBusinessAccountMemberRole/updateBusinessAccountMemberRole.d.ts.map +1 -1
  124. package/dist/modules/waas/businessAccounts/vetoBusinessAccountProposal/index.d.ts +2 -0
  125. package/dist/modules/waas/businessAccounts/vetoBusinessAccountProposal/index.d.ts.map +1 -0
  126. package/dist/modules/waas/businessAccounts/vetoBusinessAccountProposal/vetoBusinessAccountProposal.d.ts +29 -0
  127. package/dist/modules/waas/businessAccounts/vetoBusinessAccountProposal/vetoBusinessAccountProposal.d.ts.map +1 -0
  128. package/dist/modules/waas/businessAccounts/withdrawBusinessAccountProposalApproval/index.d.ts +2 -0
  129. package/dist/modules/waas/businessAccounts/withdrawBusinessAccountProposalApproval/index.d.ts.map +1 -0
  130. package/dist/modules/waas/businessAccounts/withdrawBusinessAccountProposalApproval/withdrawBusinessAccountProposalApproval.d.ts +29 -0
  131. package/dist/modules/waas/businessAccounts/withdrawBusinessAccountProposalApproval/withdrawBusinessAccountProposalApproval.d.ts.map +1 -0
  132. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  133. package/dist/{waas-oKD6ZDP9.native.esm.js → waas-C4jtRxx1.native.esm.js} +688 -26
  134. package/dist/waas-C4jtRxx1.native.esm.js.map +1 -0
  135. package/dist/{waas-G-4JvdgJ.cjs → waas-CioG-_yp.cjs} +764 -24
  136. package/dist/waas-CioG-_yp.cjs.map +1 -0
  137. package/dist/{waas-DjgZ-ghV.esm.js → waas-DjivkzyT.esm.js} +688 -26
  138. package/dist/waas-DjivkzyT.esm.js.map +1 -0
  139. package/dist/waas.cjs +18 -5
  140. package/dist/waas.esm.js +5 -5
  141. package/dist/waas.native.esm.js +5 -5
  142. package/dist/waasCore.cjs +5 -5
  143. package/dist/waasCore.esm.js +5 -5
  144. package/dist/waasCore.native.esm.js +5 -5
  145. package/package.json +3 -4
  146. package/dist/getNetworkProviderFromNetworkId-BXoTukxv.cjs.map +0 -1
  147. package/dist/getNetworkProviderFromNetworkId-Cs3hLqBS.native.esm.js.map +0 -1
  148. package/dist/getNetworkProviderFromNetworkId-D_Hg6kP7.esm.js.map +0 -1
  149. package/dist/logoutWithReason-Bd1qUh7l.native.esm.js.map +0 -1
  150. package/dist/logoutWithReason-CFjm8dbR.cjs.map +0 -1
  151. package/dist/logoutWithReason-CX9hGTPw.esm.js.map +0 -1
  152. package/dist/modules/projectSettings/fetchProjectSettings/projectSettingsExpirationScheme.d.ts +0 -5
  153. package/dist/modules/projectSettings/fetchProjectSettings/projectSettingsExpirationScheme.d.ts.map +0 -1
  154. package/dist/waas-DjgZ-ghV.esm.js.map +0 -1
  155. package/dist/waas-G-4JvdgJ.cjs.map +0 -1
  156. package/dist/waas-oKD6ZDP9.native.esm.js.map +0 -1
@@ -1,10 +1,10 @@
1
- import { $ as createLocalStorageAdapter, A as offEvent, B as normalizeAddress, Ct as getCore, D as WalletProviderPriority, Dt as name, E as getWalletProviders, Et as TokenScope, L as getChainFromVerifiedCredentialChain, M as onceEvent, O as getWalletProviderRegistry, Ot as version, P as getWalletAccounts, Q as createStorageKeySchema, R as CHAINS_INFO_MAP, U as isUserMissingMfaAuth, V as splitWalletProviderKey, X as fetchAndStoreNonces, Y as getNonce, Z as updateNoncePoolStorage, _ as checkAndRaiseWalletAccountsChangedEvent, _t as getElevatedAccessToken, a as resolveInstrumentationCore, at as LinkCredentialError, bt as getDefaultClient, c as DEFAULT_PII_FIELDS, d as extractSessionId, et as NONCE_POOL_SIZE, f as updateAuthFromVerifyResponse, ft as SDK_API_CORE_VERSION, g as InvalidParamError, gt as ValueMustBeDefinedError, h as decodeJwt, ht as assertDefined, i as __refreshAuth_wrapped, it as MfaInvalidOtpError, j as onEvent, k as emitEvent, l as getUserAgent, m as parseElevatedAccessToken, mt as isCookieEnabled, n as NoWalletProviderFoundError, nt as SandboxMaximumThresholdReachedError, o as instrumentFunction, ot as InvalidExternalAuthError, p as upsertElevatedAccessToken, r as createApiClient, rt as MfaRateLimitedError, s as scrubParameters, st as APIError, t as getWalletProviderFromWalletAccount, tt as UnauthorizedError, u as getOperatingSystem, ut as DYNAMIC_ICONIC_SPRITE_URL, vt as randomString, wt as BaseError, xt as setDefaultClient, y as initializeWaasClientsForEagerRecovery, yt as getPlatform, z as formatWalletAccountId } from "./apiClient-BbjPoAwE.native.esm.js";
2
- import { a as TransactionBroadcastError, i as NotWaasWalletAccountError } from "./migrateFromFireblocks-BLz9aHOY.native.esm.js";
3
- import { $ as WaasChainEnum } from "./waas-oKD6ZDP9.native.esm.js";
4
- import { A as createLogger, B as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, C as MergeAccountsConfirmationError, D as createKeychainService, E as assertSafeDeeplinkUrl, F as createDeferredPromise, G as isEqualShallow, H as isServerSideRendering, I as createAppForegroundSubscriber, K as createStorage, L as FETCH_PROJECT_SETTINGS_TRACKER_KEY, M as createCrossTabBroadcast, O as assertSafeNavigationUrl, P as CannotTrackError, R as GENERATE_SESSION_KEYS_TRACKER_KEY, S as NoNetworkProvidersError, T as createRealtimeService, U as getBuffer, V as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, W as subscribeWithSelector, _ as isCaptchaRequired, a as removeUnverifiedWalletAccount, b as WalletScreeningBlockedError, c as reconcileWalletAccountsAgainstClient, d as createVisit, f as getUriConnectionStarterRegistry, g as consumeCaptchaToken, h as __setCaptchaToken_wrapped, i as verifyMessageSignatureOwnership, j as createEventEmitter, l as updateWalletProviderKeysForVerifiedCredentials, m as hasExtension, o as createSignInMessageStatement, p as getNetworkProviderBuilderRegistry, r as getNetworksData, s as formatSignInMessage, t as getNetworkProviderFromNetworkId, u as setUnverifiedWalletAccounts, v as getAppMetadata, w as getKeychainIndexedDBName, x as WalletAlreadyLinkedToAnotherUserError, y as MethodNotImplementedError, z as INITIALIZE_STORAGE_SYNC_TRACKER_KEY } from "./getNetworkProviderFromNetworkId-Cs3hLqBS.native.esm.js";
5
- import { a as retryOnFail, i as isSignedIn, n as generateSessionKeys, o as getVerifiedCredentialForWalletAccount, r as fetchProjectSettings, s as getWalletProviderByKey, t as __logoutWithReason_wrapped } from "./logoutWithReason-Bd1qUh7l.native.esm.js";
6
- import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-D7b7mUT9.native.esm.js";
7
- import { a as WaasRbacStaleRetryUnsafeError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, o as WaasOnboardingIncompleteError, r as isDeviceRegistrationRequired, s as WaasLoadFailedError, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-CYpgo52t.native.esm.js";
1
+ import { $ as createLocalStorageAdapter, A as offEvent, B as normalizeAddress, Ct as getCore, D as WalletProviderPriority, Dt as name, E as getWalletProviders, Et as TokenScope, L as getChainFromVerifiedCredentialChain, M as onceEvent, O as getWalletProviderRegistry, Ot as version, P as getWalletAccounts, Q as createStorageKeySchema, R as CHAINS_INFO_MAP, U as isUserMissingMfaAuth, V as splitWalletProviderKey, X as fetchAndStoreNonces, Y as getNonce, Z as updateNoncePoolStorage, _ as checkAndRaiseWalletAccountsChangedEvent, _t as getElevatedAccessToken, a as resolveInstrumentationCore, at as LinkCredentialError, bt as getDefaultClient, c as DEFAULT_PII_FIELDS, d as extractSessionId, et as NONCE_POOL_SIZE, f as updateAuthFromVerifyResponse, ft as SDK_API_CORE_VERSION, g as InvalidParamError, gt as ValueMustBeDefinedError, h as decodeJwt, ht as assertDefined, i as __refreshAuth_wrapped, it as MfaInvalidOtpError, j as onEvent, k as emitEvent, l as getUserAgent, m as parseElevatedAccessToken, mt as isCookieEnabled, n as NoWalletProviderFoundError, nt as SandboxMaximumThresholdReachedError, o as instrumentFunction, ot as InvalidExternalAuthError, p as upsertElevatedAccessToken, r as createApiClient, rt as MfaRateLimitedError, s as scrubParameters, st as APIError, t as getWalletProviderFromWalletAccount, tt as UnauthorizedError, u as getOperatingSystem, ut as DYNAMIC_ICONIC_SPRITE_URL, vt as randomString, wt as BaseError, xt as setDefaultClient, y as initializeWaasClientsForEagerRecovery, yt as getPlatform, z as formatWalletAccountId } from "./apiClient-CpfEx6Uc.native.esm.js";
2
+ import { a as TransactionBroadcastError, i as NotWaasWalletAccountError } from "./migrateFromFireblocks-BwYnNAAh.native.esm.js";
3
+ import { ft as WaasChainEnum } from "./waas-C4jtRxx1.native.esm.js";
4
+ import { A as createLogger, B as MIGRATE_SESSION_KEY_TRACKER_KEY, C as MergeAccountsConfirmationError, D as createKeychainService, E as assertSafeDeeplinkUrl, F as createDeferredPromise, G as subscribeWithSelector, H as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, I as createAppForegroundSubscriber, K as isEqualShallow, L as FETCH_PROJECT_SETTINGS_TRACKER_KEY, M as createCrossTabBroadcast, O as assertSafeNavigationUrl, P as CannotTrackError, R as GENERATE_SESSION_KEYS_TRACKER_KEY, S as NoNetworkProvidersError, T as createRealtimeService, U as isServerSideRendering, V as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, W as getBuffer, _ as isCaptchaRequired, a as removeUnverifiedWalletAccount, b as WalletScreeningBlockedError, c as reconcileWalletAccountsAgainstClient, d as createVisit, f as getUriConnectionStarterRegistry, g as consumeCaptchaToken, h as __setCaptchaToken_wrapped, i as verifyMessageSignatureOwnership, j as createEventEmitter, l as updateWalletProviderKeysForVerifiedCredentials, m as hasExtension, o as createSignInMessageStatement, p as getNetworkProviderBuilderRegistry, q as createStorage, r as getNetworksData, s as formatSignInMessage, t as getNetworkProviderFromNetworkId, u as setUnverifiedWalletAccounts, v as getAppMetadata, w as getKeychainIndexedDBName, x as WalletAlreadyLinkedToAnotherUserError, y as MethodNotImplementedError, z as INITIALIZE_STORAGE_SYNC_TRACKER_KEY } from "./getNetworkProviderFromNetworkId-CuTEQ9dg.native.esm.js";
5
+ import { a as stateStorageKeySchema, c as getWalletProviderByKey, i as sessionStorageKeySchema, n as generateSessionKeys, o as retryOnFail, r as fetchProjectSettings, s as getVerifiedCredentialForWalletAccount, t as __logoutWithReason_wrapped } from "./logoutWithReason-DWkIKoLk.native.esm.js";
6
+ import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-CxYft5KR.native.esm.js";
7
+ import { a as WaasRbacStaleRetryUnsafeError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, o as WaasOnboardingIncompleteError, r as isDeviceRegistrationRequired, s as WaasLoadFailedError, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-DYnRDLep.native.esm.js";
8
8
  import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
9
9
  import { AuthModeEnum, CaptchaProviderEnum as CaptchaProviderEnum$1, ChainEnum, ExchangeKeyEnum, JwtVerifiedCredentialFormatEnum as JwtVerifiedCredentialFormatEnum$1, MFAAction as MFAAction$1, MfaBackupCodeAcknowledgement, ProviderEnum as ProviderEnum$1, TokenScope as TokenScope$1, WaasBackupOptionsEnum, WalletProviderEnum } from "@dynamic-labs/sdk-api-core";
10
10
  import * as z from "zod/mini";
@@ -166,57 +166,6 @@ const setupCrossTabEventSync = (client) => {
166
166
  core.crossTabBroadcast.on("deviceRegistrationCompleted", handleCrossTabDeviceRegistrationCompleted);
167
167
  };
168
168
 
169
- //#endregion
170
- //#region src/modules/wallets/unverifiedWalletAccounts/schema.ts
171
- const unverifiedWalletAccountSchema = z.object({
172
- address: z.string(),
173
- addressesWithTypes: z.optional(z.array(z.object({
174
- address: z.string(),
175
- publicKey: z.optional(z.string()),
176
- type: z.custom((val) => typeof val === "string")
177
- }))),
178
- chain: z.custom((val) => typeof val === "string"),
179
- hardwareWalletVendor: z.optional(z.custom((val) => typeof val === "string")),
180
- id: z.string(),
181
- lastSelectedAt: z.nullable(z.date()),
182
- walletProviderKey: z.string()
183
- });
184
-
185
- //#endregion
186
- //#region src/modules/wallets/walletProvider/walletProviderKeyMap/schema.ts
187
- const walletProviderKeyMapSchema = z.record(z.string(), z.string());
188
-
189
- //#endregion
190
- //#region src/modules/storageSync/schema.ts
191
- const stateStorageKeySchema = createStorageKeySchema({
192
- key: "state",
193
- schema: z.object({
194
- apiVersion: z.string(),
195
- projectSettings: z.custom(),
196
- unverifiedWalletAccounts: z.array(unverifiedWalletAccountSchema),
197
- user: z.custom(),
198
- walletProviderKeyMap: walletProviderKeyMapSchema
199
- })
200
- });
201
- const sessionStorageKeySchema = createStorageKeySchema({
202
- config: { storageTier: "secure" },
203
- key: "session",
204
- schema: z.object({
205
- captchaToken: z.nullable(z.string()),
206
- elevatedAccessTokens: z.array(z.object({
207
- expiresAt: z.number(),
208
- scopes: z.array(z.string()),
209
- singleUse: z.nullable(z.boolean()),
210
- token: z.string()
211
- })),
212
- legacyToken: z.nullable(z.string()),
213
- mfaToken: z.nullable(z.string()),
214
- sessionExpiration: z.number(),
215
- sessionKeys: z.nullable(z.string()),
216
- token: z.nullable(z.string())
217
- })
218
- });
219
-
220
169
  //#endregion
221
170
  //#region src/modules/keychainMigration/migrateSessionKeyToKeychain/KeyMigrationError.ts
222
171
  var KeyMigrationError = class extends BaseError {
@@ -508,7 +457,7 @@ const initializeClient = async (client = getDefaultClient()) => {
508
457
  raiseStateEvents(client);
509
458
  setupCrossTabEventSync(client);
510
459
  const initializeStorageSyncPromise = initializeStorageSync(client);
511
- const fetchProjectSettingsPromise = initializeStorageSyncPromise.then(async () => {
460
+ const migrationPromise = initializeStorageSyncPromise.then(async () => {
512
461
  await migrateSessionKeyToKeychain({
513
462
  keychain: core.keychain,
514
463
  logger: core.logger,
@@ -517,8 +466,13 @@ const initializeClient = async (client = getDefaultClient()) => {
517
466
  }).catch(() => __logoutWithReason_wrapped({ reason: "keychain-migration-failed" }, client));
518
467
  if (core.state.get().sessionKeys && !await core.keychain.hasKey("session")) await __logoutWithReason_wrapped({ reason: "keychain-key-missing" }, client);
519
468
  await logoutIfSessionPublicKeyMismatched(client);
520
- }).then(async () => {
521
- if (!core.state.get().projectSettings) await fetchProjectSettings(client);
469
+ });
470
+ core.initTrack.track({
471
+ name: MIGRATE_SESSION_KEY_TRACKER_KEY,
472
+ promise: migrationPromise
473
+ });
474
+ const fetchProjectSettingsPromise = initializeStorageSyncPromise.then(async () => {
475
+ await fetchProjectSettings(client);
522
476
  });
523
477
  fetchProjectSettingsPromise.then(() => prefetchNoncesIfNeeded(client)).catch((error) => {
524
478
  core.logger.error("Failed to prefetch nonces:", error);
@@ -2238,6 +2192,39 @@ const __signInWithExternalJwt_wrapped = instrumentFunction({
2238
2192
  getCore: resolveInstrumentationCore
2239
2193
  });
2240
2194
 
2195
+ //#endregion
2196
+ //#region src/modules/auth/isSignedIn/isSignedIn.ts
2197
+ /**
2198
+ * Checks if the user is currently signed in to the Dynamic client.
2199
+ *
2200
+ * The client is considered to be in a signed in state if a user has
2201
+ * authenticated or if the client has at least one wallet connected.
2202
+ *
2203
+ * @deprecated What counts as "signed in" is your app's business logic, not the
2204
+ * SDK's. This helper bakes in one opinion (a user OR any connected wallet),
2205
+ * which rarely matches every app and forces a dependency on us for every
2206
+ * variation. Compose your own check from the underlying primitives instead —
2207
+ * e.g. `Boolean(client.user) || isAnyWalletAccountConnected(client)` — and
2208
+ * layer in whatever your app requires (device registration, completed
2209
+ * onboarding, satisfied MFA, a required embedded wallet, …). See the
2210
+ * "Check if signed in" guide:
2211
+ * https://www.dynamic.xyz/docs/javascript/user-session-management
2212
+ *
2213
+ * @example
2214
+ * ```ts
2215
+ * if (isSignedIn()) {
2216
+ * console.log('User is authenticated or has a wallet connected');
2217
+ * }
2218
+ * ```
2219
+ *
2220
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
2221
+ * @returns True if the user is signed in, false otherwise.
2222
+ * @see logout
2223
+ * @see isAnyWalletAccountConnected
2224
+ * @notInstrumented
2225
+ */
2226
+ const isSignedIn = (client = getDefaultClient()) => Boolean(client.user || getWalletAccounts(client).length > 0);
2227
+
2241
2228
  //#endregion
2242
2229
  //#region src/modules/auth/logout/logout.ts
2243
2230
  /**