@dynamic-labs-sdk/client 1.11.0 → 1.12.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 (135) hide show
  1. package/dist/{InvalidParamError-BUpLSb5x.native.esm.js → InvalidParamError-CKUis748.native.esm.js} +3 -3
  2. package/dist/{InvalidParamError-BUpLSb5x.native.esm.js.map → InvalidParamError-CKUis748.native.esm.js.map} +1 -1
  3. package/dist/{InvalidParamError-BazEwozw.esm.js → InvalidParamError-I6NfUdQL.esm.js} +3 -3
  4. package/dist/{InvalidParamError-BazEwozw.esm.js.map → InvalidParamError-I6NfUdQL.esm.js.map} +1 -1
  5. package/dist/{InvalidParamError-CMesesy6.cjs → InvalidParamError-d0WFn5Ai.cjs} +4 -4
  6. package/dist/{InvalidParamError-CMesesy6.cjs.map → InvalidParamError-d0WFn5Ai.cjs.map} +1 -1
  7. package/dist/core.cjs +5 -5
  8. package/dist/core.esm.js +5 -5
  9. package/dist/core.native.esm.js +7 -7
  10. package/dist/core.native.esm.js.map +1 -1
  11. package/dist/exports/index.d.ts +1 -1
  12. package/dist/exports/index.d.ts.map +1 -1
  13. package/dist/exports/waasCore.d.ts +1 -0
  14. package/dist/exports/waasCore.d.ts.map +1 -1
  15. package/dist/{getNetworkProviderFromNetworkId-D4xzWb7w.cjs → getNetworkProviderFromNetworkId-CfW0tOnr.cjs} +4 -4
  16. package/dist/{getNetworkProviderFromNetworkId-D4xzWb7w.cjs.map → getNetworkProviderFromNetworkId-CfW0tOnr.cjs.map} +1 -1
  17. package/dist/{getNetworkProviderFromNetworkId-BfBE-dei.esm.js → getNetworkProviderFromNetworkId-D6ABmeNQ.esm.js} +3 -3
  18. package/dist/{getNetworkProviderFromNetworkId-BfBE-dei.esm.js.map → getNetworkProviderFromNetworkId-D6ABmeNQ.esm.js.map} +1 -1
  19. package/dist/{getNetworkProviderFromNetworkId-C-1rPWZm.native.esm.js → getNetworkProviderFromNetworkId-DpiVLfs_.native.esm.js} +8 -8
  20. package/dist/getNetworkProviderFromNetworkId-DpiVLfs_.native.esm.js.map +1 -0
  21. package/dist/{getSignedSessionId-BimmHQvA.cjs → getSignedSessionId-Bc-sYE2A.cjs} +3 -3
  22. package/dist/{getSignedSessionId-BimmHQvA.cjs.map → getSignedSessionId-Bc-sYE2A.cjs.map} +1 -1
  23. package/dist/{getSignedSessionId-fwHlhBvt.native.esm.js → getSignedSessionId-C6LJdiSK.native.esm.js} +3 -3
  24. package/dist/{getSignedSessionId-fwHlhBvt.native.esm.js.map → getSignedSessionId-C6LJdiSK.native.esm.js.map} +1 -1
  25. package/dist/{getSignedSessionId-BWxWFaJW.esm.js → getSignedSessionId-IEoo2Kv9.esm.js} +3 -3
  26. package/dist/{getSignedSessionId-BWxWFaJW.esm.js.map → getSignedSessionId-IEoo2Kv9.esm.js.map} +1 -1
  27. package/dist/{getWaasWalletProviderFromWalletAccount-sEzYqoCf.cjs → getWaasWalletProviderFromWalletAccount-CSmVAhr2.cjs} +4 -4
  28. package/dist/{getWaasWalletProviderFromWalletAccount-sEzYqoCf.cjs.map → getWaasWalletProviderFromWalletAccount-CSmVAhr2.cjs.map} +1 -1
  29. package/dist/{getWaasWalletProviderFromWalletAccount-CJdnAlDf.native.esm.js → getWaasWalletProviderFromWalletAccount-D1wxsNEI.native.esm.js} +3 -3
  30. package/dist/{getWaasWalletProviderFromWalletAccount-CJdnAlDf.native.esm.js.map → getWaasWalletProviderFromWalletAccount-D1wxsNEI.native.esm.js.map} +1 -1
  31. package/dist/{getWaasWalletProviderFromWalletAccount-OM-BlEFR.esm.js → getWaasWalletProviderFromWalletAccount-DojjjSIP.esm.js} +3 -3
  32. package/dist/{getWaasWalletProviderFromWalletAccount-OM-BlEFR.esm.js.map → getWaasWalletProviderFromWalletAccount-DojjjSIP.esm.js.map} +1 -1
  33. package/dist/{getWalletProviderByKey-1zHjzqbz.cjs → getWalletProviderByKey-B821GpaI.cjs} +32 -21
  34. package/dist/getWalletProviderByKey-B821GpaI.cjs.map +1 -0
  35. package/dist/{getWalletProviderByKey-BXGcVzkf.esm.js → getWalletProviderByKey-DsTEubkT.esm.js} +26 -15
  36. package/dist/getWalletProviderByKey-DsTEubkT.esm.js.map +1 -0
  37. package/dist/{getWalletProviderByKey-CAQkYCGi.native.esm.js → getWalletProviderByKey-RTW-S68o.native.esm.js} +26 -15
  38. package/dist/{getWalletProviderByKey-CAQkYCGi.native.esm.js.map → getWalletProviderByKey-RTW-S68o.native.esm.js.map} +1 -1
  39. package/dist/index.cjs +48 -9
  40. package/dist/index.cjs.map +1 -1
  41. package/dist/index.esm.js +47 -8
  42. package/dist/index.esm.js.map +1 -1
  43. package/dist/index.native.esm.js +49 -11
  44. package/dist/index.native.esm.js.map +1 -1
  45. package/dist/isDynamicWaasEnabled-CBLpFRnd.native.esm.js +37 -0
  46. package/dist/isDynamicWaasEnabled-CBLpFRnd.native.esm.js.map +1 -0
  47. package/dist/isDynamicWaasEnabled-CBOG0ITH.cjs +49 -0
  48. package/dist/isDynamicWaasEnabled-CBOG0ITH.cjs.map +1 -0
  49. package/dist/isDynamicWaasEnabled-vRyWP-1l.esm.js +37 -0
  50. package/dist/isDynamicWaasEnabled-vRyWP-1l.esm.js.map +1 -0
  51. package/dist/{isMfaRequiredForAction-DZVNUtPY.esm.js → isMfaRequiredForAction-C1-1spV9.esm.js} +2 -2
  52. package/dist/{isMfaRequiredForAction-DZVNUtPY.esm.js.map → isMfaRequiredForAction-C1-1spV9.esm.js.map} +1 -1
  53. package/dist/{isMfaRequiredForAction-CPadAr7k.native.esm.js → isMfaRequiredForAction-D1AYL99a.native.esm.js} +2 -2
  54. package/dist/{isMfaRequiredForAction-CPadAr7k.native.esm.js.map → isMfaRequiredForAction-D1AYL99a.native.esm.js.map} +1 -1
  55. package/dist/{isMfaRequiredForAction-CxWuGsmB.cjs → isMfaRequiredForAction-DL013-fR.cjs} +2 -2
  56. package/dist/{isMfaRequiredForAction-CxWuGsmB.cjs.map → isMfaRequiredForAction-DL013-fR.cjs.map} +1 -1
  57. package/dist/modules/auth/social/oauth/authenticateWithSocial/authenticateWithSocial.d.ts +1 -0
  58. package/dist/modules/auth/social/oauth/authenticateWithSocial/authenticateWithSocial.d.ts.map +1 -1
  59. package/dist/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.d.ts +1 -0
  60. package/dist/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.d.ts.map +1 -1
  61. package/dist/modules/auth/social/oauth/processSocialCallback/processSocialCallback.d.ts.map +1 -1
  62. package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts +3 -0
  63. package/dist/modules/checkout/attachCheckoutTransactionSource/attachCheckoutTransactionSource.d.ts.map +1 -1
  64. package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts +3 -0
  65. package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts.map +1 -1
  66. package/dist/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.d.ts +3 -0
  67. package/dist/modules/checkout/cancelCheckoutTransaction/cancelCheckoutTransaction.d.ts.map +1 -1
  68. package/dist/modules/checkout/createCheckoutTransaction/createCheckoutTransaction.d.ts +3 -0
  69. package/dist/modules/checkout/createCheckoutTransaction/createCheckoutTransaction.d.ts.map +1 -1
  70. package/dist/modules/checkout/getCheckoutTransaction/getCheckoutTransaction.d.ts +4 -1
  71. package/dist/modules/checkout/getCheckoutTransaction/getCheckoutTransaction.d.ts.map +1 -1
  72. package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts +3 -0
  73. package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts.map +1 -1
  74. package/dist/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.d.ts +3 -0
  75. package/dist/modules/checkout/prepareCheckoutTransaction/prepareCheckoutTransaction.d.ts.map +1 -1
  76. package/dist/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.d.ts +3 -0
  77. package/dist/modules/checkout/submitCheckoutTransaction/submitCheckoutTransaction.d.ts.map +1 -1
  78. package/dist/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.d.ts +3 -0
  79. package/dist/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.d.ts.map +1 -1
  80. package/dist/modules/checkout/utils/requiresConversion/requiresConversion.d.ts +3 -0
  81. package/dist/modules/checkout/utils/requiresConversion/requiresConversion.d.ts.map +1 -1
  82. package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts +2 -2
  83. package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts.map +1 -1
  84. package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts +2 -2
  85. package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts.map +1 -1
  86. package/dist/modules/otp/verifyOTP/verifyOTP.d.ts.map +1 -1
  87. package/dist/modules/waas/createWaasClient/createWaasClient.d.ts.map +1 -1
  88. package/dist/modules/waas/initializeWaasClientsForEagerRecovery/index.d.ts +2 -0
  89. package/dist/modules/waas/{restoreUserSharesForAllWalletAccounts → initializeWaasClientsForEagerRecovery}/index.d.ts.map +1 -1
  90. package/dist/modules/waas/initializeWaasClientsForEagerRecovery/initializeWaasClientsForEagerRecovery.d.ts +11 -0
  91. package/dist/modules/waas/initializeWaasClientsForEagerRecovery/initializeWaasClientsForEagerRecovery.d.ts.map +1 -0
  92. package/dist/modules/waas/preconnectWaasIframe/index.d.ts +2 -0
  93. package/dist/modules/waas/preconnectWaasIframe/index.d.ts.map +1 -0
  94. package/dist/modules/waas/preconnectWaasIframe/preconnectWaasIframe.d.ts +13 -0
  95. package/dist/modules/waas/preconnectWaasIframe/preconnectWaasIframe.d.ts.map +1 -0
  96. package/dist/modules/wallets/getAvailableWalletProvidersData/getAvailableWalletProvidersData.d.ts +1 -0
  97. package/dist/modules/wallets/getAvailableWalletProvidersData/getAvailableWalletProvidersData.d.ts.map +1 -1
  98. package/dist/preconnectWaasIframe-BnyTG4Wy.native.esm.js +31 -0
  99. package/dist/preconnectWaasIframe-BnyTG4Wy.native.esm.js.map +1 -0
  100. package/dist/preconnectWaasIframe-DWYWeLor.cjs +37 -0
  101. package/dist/preconnectWaasIframe-DWYWeLor.cjs.map +1 -0
  102. package/dist/preconnectWaasIframe-Dn3RrrHd.esm.js +31 -0
  103. package/dist/preconnectWaasIframe-Dn3RrrHd.esm.js.map +1 -0
  104. package/dist/{refreshAuth-DlQw3Dky.esm.js → refreshAuth-BWQWl4uA.esm.js} +3 -3
  105. package/dist/{refreshAuth-DlQw3Dky.esm.js.map → refreshAuth-BWQWl4uA.esm.js.map} +1 -1
  106. package/dist/{refreshAuth-Cl3adySI.native.esm.js → refreshAuth-D8UjWFLB.native.esm.js} +3 -3
  107. package/dist/{refreshAuth-Cl3adySI.native.esm.js.map → refreshAuth-D8UjWFLB.native.esm.js.map} +1 -1
  108. package/dist/{refreshAuth-CKcNynMk.cjs → refreshAuth-tjEnkc58.cjs} +3 -3
  109. package/dist/{refreshAuth-CKcNynMk.cjs.map → refreshAuth-tjEnkc58.cjs.map} +1 -1
  110. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  111. package/dist/waas.cjs +8 -25
  112. package/dist/waas.cjs.map +1 -1
  113. package/dist/waas.esm.js +6 -23
  114. package/dist/waas.esm.js.map +1 -1
  115. package/dist/waas.native.esm.js +6 -23
  116. package/dist/waas.native.esm.js.map +1 -1
  117. package/dist/waasCore.cjs +16 -9
  118. package/dist/waasCore.cjs.map +1 -1
  119. package/dist/waasCore.esm.js +16 -10
  120. package/dist/waasCore.esm.js.map +1 -1
  121. package/dist/waasCore.native.esm.js +7 -5
  122. package/dist/waasCore.native.esm.js.map +1 -1
  123. package/package.json +3 -3
  124. package/dist/NotWaasWalletAccountError-CIjFmQ_l.esm.js +0 -18
  125. package/dist/NotWaasWalletAccountError-CIjFmQ_l.esm.js.map +0 -1
  126. package/dist/NotWaasWalletAccountError-D-yqOoH6.cjs +0 -23
  127. package/dist/NotWaasWalletAccountError-D-yqOoH6.cjs.map +0 -1
  128. package/dist/NotWaasWalletAccountError-DWXGDcpr.native.esm.js +0 -18
  129. package/dist/NotWaasWalletAccountError-DWXGDcpr.native.esm.js.map +0 -1
  130. package/dist/getNetworkProviderFromNetworkId-C-1rPWZm.native.esm.js.map +0 -1
  131. package/dist/getWalletProviderByKey-1zHjzqbz.cjs.map +0 -1
  132. package/dist/getWalletProviderByKey-BXGcVzkf.esm.js.map +0 -1
  133. package/dist/modules/waas/restoreUserSharesForAllWalletAccounts/index.d.ts +0 -2
  134. package/dist/modules/waas/restoreUserSharesForAllWalletAccounts/restoreUserSharesForAllWalletAccounts.d.ts +0 -4
  135. package/dist/modules/waas/restoreUserSharesForAllWalletAccounts/restoreUserSharesForAllWalletAccounts.d.ts.map +0 -1
package/dist/index.esm.js CHANGED
@@ -1,9 +1,10 @@
1
- import { $ as extractSessionId, A as createApiClient, B as InvalidExternalAuthError, D as onceEvent, E as onEvent, F as getNonce, G as ValueMustBeDefinedError, I as SandboxMaximumThresholdReachedError, J as scrubParameters, K as __getElevatedAccessToken_wrapped, L as MfaRateLimitedError, Q as getOperatingSystem, R as MfaInvalidOtpError, S as splitWalletProviderKey, T as offEvent, U as isCookieEnabled, V as APIError, W as assertDefined, X as getUserAgent, Y as DEFAULT_PII_FIELDS, Z as getPlatform, at as setDefaultClient, b as formatWalletAccountId, ct as getCore, d as getWalletProviderRegistry, et as randomString, it as getDefaultClient, j as UnauthorizedError, k as fetchAndStoreNonces, l as getWalletProviderFromWalletAccount, lt as name, m as getWalletAccounts, o as DYNAMIC_ICONIC_SPRITE_URL, p as NoWalletProviderFoundError, q as instrumentFunction, rt as NONCE_POOL_SIZE, s as SDK_API_CORE_VERSION, st as BaseError, t as InvalidParamError, u as WalletProviderPriority, ut as version, v as getChainFromVerifiedCredentialChain, w as emitEvent, x as normalizeAddress, y as CHAINS_INFO_MAP, z as LinkCredentialError } from "./InvalidParamError-BazEwozw.esm.js";
2
- import { A as GENERATE_SESSION_KEYS_TRACKER_KEY, B as isEqualShallow, C as createKeychainService, D as CannotTrackError, F as getBuffer, I as createStorage, M as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, N as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, O as createDeferredPromise, P as isServerSideRendering, R as createLocalStorageAdapter, S as createRealtimeService, T as createCrossTabBroadcast, _ as consumeCaptchaToken, a as verifyMessageSignatureOwnership, b as NoNetworkProvidersError, c as formatSignInMessage, d as updateWalletProviderKeysForVerifiedCredentials, f as setUnverifiedWalletAccounts, g as MethodNotImplementedError, h as __setCaptchaToken_wrapped, i as getNetworksData, j as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, k as FETCH_PROJECT_SETTINGS_TRACKER_KEY, 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 createLogger, x as getKeychainIndexedDBName, y as WalletAlreadyLinkedToAnotherUserError, z as subscribeWithSelector } from "./getNetworkProviderFromNetworkId-BfBE-dei.esm.js";
3
- import { a as generateSessionKeys, c as isSignedIn, i as __logoutWithReason_wrapped, l as retryOnFail, n as getMfaMethods, o as fetchProjectSettings, r as __consumeMfaToken_wrapped, s as createStorageKeySchema, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-DZVNUtPY.esm.js";
4
- import { a as parseElevatedAccessToken, d as checkAndRaiseWalletAccountsChangedEvent, i as upsertElevatedAccessToken, l as getWalletProviders, n as getVerifiedCredentialForWalletAccount, o as restoreUserSharesForAllWalletAccounts, r as updateAuthFromVerifyResponse, t as getWalletProviderByKey, u as isUserMissingMfaAuth } from "./getWalletProviderByKey-BXGcVzkf.esm.js";
5
- import { t as __refreshAuth_wrapped } from "./refreshAuth-DlQw3Dky.esm.js";
6
- import { t as NotWaasWalletAccountError } from "./NotWaasWalletAccountError-CIjFmQ_l.esm.js";
1
+ import { $ as extractSessionId, A as createApiClient, B as InvalidExternalAuthError, D as onceEvent, E as onEvent, F as getNonce, G as ValueMustBeDefinedError, I as SandboxMaximumThresholdReachedError, J as scrubParameters, K as __getElevatedAccessToken_wrapped, L as MfaRateLimitedError, Q as getOperatingSystem, R as MfaInvalidOtpError, S as splitWalletProviderKey, T as offEvent, U as isCookieEnabled, V as APIError, W as assertDefined, X as getUserAgent, Y as DEFAULT_PII_FIELDS, Z as getPlatform, at as setDefaultClient, b as formatWalletAccountId, ct as getCore, d as getWalletProviderRegistry, et as randomString, it as getDefaultClient, j as UnauthorizedError, k as fetchAndStoreNonces, l as getWalletProviderFromWalletAccount, lt as name, m as getWalletAccounts, o as DYNAMIC_ICONIC_SPRITE_URL, p as NoWalletProviderFoundError, q as instrumentFunction, rt as NONCE_POOL_SIZE, s as SDK_API_CORE_VERSION, st as BaseError, t as InvalidParamError, u as WalletProviderPriority, ut as version, v as getChainFromVerifiedCredentialChain, w as emitEvent, x as normalizeAddress, y as CHAINS_INFO_MAP, z as LinkCredentialError } from "./InvalidParamError-I6NfUdQL.esm.js";
2
+ import { A as GENERATE_SESSION_KEYS_TRACKER_KEY, B as isEqualShallow, C as createKeychainService, D as CannotTrackError, F as getBuffer, I as createStorage, M as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, N as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, O as createDeferredPromise, P as isServerSideRendering, R as createLocalStorageAdapter, S as createRealtimeService, T as createCrossTabBroadcast, _ as consumeCaptchaToken, a as verifyMessageSignatureOwnership, b as NoNetworkProvidersError, c as formatSignInMessage, d as updateWalletProviderKeysForVerifiedCredentials, f as setUnverifiedWalletAccounts, g as MethodNotImplementedError, h as __setCaptchaToken_wrapped, i as getNetworksData, j as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, k as FETCH_PROJECT_SETTINGS_TRACKER_KEY, 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 createLogger, x as getKeychainIndexedDBName, y as WalletAlreadyLinkedToAnotherUserError, z as subscribeWithSelector } from "./getNetworkProviderFromNetworkId-D6ABmeNQ.esm.js";
3
+ import { a as generateSessionKeys, c as isSignedIn, i as __logoutWithReason_wrapped, l as retryOnFail, n as getMfaMethods, o as fetchProjectSettings, r as __consumeMfaToken_wrapped, s as createStorageKeySchema, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-C1-1spV9.esm.js";
4
+ import { a as parseElevatedAccessToken, d as checkAndRaiseWalletAccountsChangedEvent, i as upsertElevatedAccessToken, l as getWalletProviders, n as getVerifiedCredentialForWalletAccount, o as initializeWaasClientsForEagerRecovery, r as updateAuthFromVerifyResponse, t as getWalletProviderByKey, u as isUserMissingMfaAuth } from "./getWalletProviderByKey-DsTEubkT.esm.js";
5
+ import { t as __refreshAuth_wrapped } from "./refreshAuth-BWQWl4uA.esm.js";
6
+ import { n as NotWaasWalletAccountError } from "./isDynamicWaasEnabled-vRyWP-1l.esm.js";
7
+ import { t as preconnectWaasIframe } from "./preconnectWaasIframe-Dn3RrrHd.esm.js";
7
8
  import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
8
9
  import { AuthModeEnum, ExchangeKeyEnum, JwtVerifiedCredentialFormatEnum, MFAAction, MfaBackupCodeAcknowledgement, ProviderEnum, TokenScope, WaasBackupOptionsEnum, WalletProviderEnum } from "@dynamic-labs/sdk-api-core";
9
10
  import * as z from "zod/mini";
@@ -516,7 +517,7 @@ const initializeClient = async (client = getDefaultClient()) => {
516
517
  });
517
518
  throw error;
518
519
  }
519
- if (client.user) restoreUserSharesForAllWalletAccounts(client);
520
+ if (client.user) initializeWaasClientsForEagerRecovery(client);
520
521
  };
521
522
  const __initializeClient_impl = initializeClient;
522
523
  const __initializeClient_wrapped = instrumentFunction({
@@ -2060,6 +2061,7 @@ const __signInWithSocialRedirect_wrapped = instrumentFunction({
2060
2061
  * removed in a future major version.
2061
2062
  *
2062
2063
  * @instrumented
2064
+ * @noHook Deprecated alias that is not exposed as a React hook.
2063
2065
  */
2064
2066
  const authenticateWithSocial = (params, client = getDefaultClient()) => __signInWithSocialRedirect_wrapped(params, client);
2065
2067
  const __authenticateWithSocial_impl = authenticateWithSocial;
@@ -2109,6 +2111,7 @@ const processSocialCallback = async ({ url, requestedScopes }, client) => {
2109
2111
  if (storedSocialRedirectState.state !== dynamicOauthState) throw new InvalidRedirectStorageStateError();
2110
2112
  const { provider, codeVerifier } = storedSocialRedirectState;
2111
2113
  await core.storage.removeItem(redirectStateStorageKeySchema);
2114
+ preconnectWaasIframe(client);
2112
2115
  let response;
2113
2116
  if (client.user) response = await apiClient.oauthVerify({
2114
2117
  environmentId: core.environmentId,
@@ -2216,6 +2219,7 @@ const __completeSocialAuthentication_wrapped = instrumentFunction({
2216
2219
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
2217
2220
  * @returns A promise that resolves to true if the URL is an OAuth redirect, false otherwise.
2218
2221
  * @not-instrumented
2222
+ * @noHook Low-level redirect-detection primitive that is not exposed as a React hook.
2219
2223
  */
2220
2224
  const detectSocialRedirectUrl = async ({ url }, client = getDefaultClient()) => {
2221
2225
  const core = getCore(client);
@@ -2498,10 +2502,13 @@ const withCheckoutSessionTokenCleanupOn401 = async ({ call, transactionId }, cli
2498
2502
  * exchange source record. The response includes `exchangeSource.metadata.url`
2499
2503
  * which can be embedded in an iframe for the user to complete payment.
2500
2504
  *
2505
+ * @deprecated Use {@link attachFlowSource} instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
2506
+ *
2501
2507
  * @param params AttachCheckoutTransactionSourceParams - The source details to attach.
2502
2508
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
2503
2509
  * @returns The updated checkout transaction (with exchangeSource if sourceType is 'exchange')
2504
2510
  * @instrumented
2511
+ * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
2505
2512
  */
2506
2513
  const attachCheckoutTransactionSource = async (params, client = getDefaultClient()) => {
2507
2514
  const { transactionId, sourceType = "wallet" } = params;
@@ -2545,10 +2552,13 @@ const __attachCheckoutTransactionSource_wrapped = instrumentFunction({
2545
2552
  * For exchange sources, `txHash` can be omitted — the user confirms
2546
2553
  * they completed the payment and the transaction moves to `broadcasted`.
2547
2554
  *
2555
+ * @deprecated Use {@link broadcastFlow} instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
2556
+ *
2548
2557
  * @param params BroadcastCheckoutTransactionParams - The transaction ID and optional tx hash.
2549
2558
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
2550
2559
  * @returns The updated checkout transaction
2551
2560
  * @instrumented
2561
+ * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
2552
2562
  */
2553
2563
  const broadcastCheckoutTransaction = async ({ transactionId, txHash }, client = getDefaultClient()) => {
2554
2564
  const { apiClient, environmentId, sessionToken } = await createCheckoutApiClient({ transactionId }, client);
@@ -2580,10 +2590,13 @@ const __broadcastCheckoutTransaction_wrapped = instrumentFunction({
2580
2590
  /**
2581
2591
  * Cancels a checkout transaction before it has been broadcasted
2582
2592
  *
2593
+ * @deprecated Use {@link cancelFlow} instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
2594
+ *
2583
2595
  * @param params CancelCheckoutTransactionParams - The transaction to cancel.
2584
2596
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
2585
2597
  * @returns The cancelled checkout transaction
2586
2598
  * @instrumented
2599
+ * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
2587
2600
  */
2588
2601
  const cancelCheckoutTransaction = async ({ transactionId }, client = getDefaultClient()) => {
2589
2602
  const { apiClient, environmentId, sessionToken } = await createCheckoutApiClient({ transactionId }, client);
@@ -2625,10 +2638,13 @@ const getCheckouts = async (client) => {
2625
2638
  /**
2626
2639
  * Creates a new checkout transaction and stores the session token for subsequent calls
2627
2640
  *
2641
+ * @deprecated Use the Flow API instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
2642
+ *
2628
2643
  * @param params CreateCheckoutTransactionParams - The parameters for the checkout transaction.
2629
2644
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
2630
2645
  * @returns The created transaction with session token
2631
2646
  * @instrumented
2647
+ * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
2632
2648
  */
2633
2649
  const createCheckoutTransaction = async (params, client = getDefaultClient()) => {
2634
2650
  const core = getCore(client);
@@ -2671,10 +2687,13 @@ const __createCheckoutTransaction_wrapped = instrumentFunction({
2671
2687
  /**
2672
2688
  * Fetches the current state of a checkout transaction
2673
2689
  *
2690
+ * @deprecated Use {@link getFlow} instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
2691
+ *
2674
2692
  * @param params GetCheckoutTransactionParams - The parameters for fetching the transaction.
2675
2693
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
2676
2694
  * @returns The checkout transaction
2677
2695
  * @not-instrumented
2696
+ * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
2678
2697
  */
2679
2698
  const getCheckoutTransaction = async ({ transactionId }, client = getDefaultClient()) => {
2680
2699
  const core = getCore(client);
@@ -2689,10 +2708,13 @@ const getCheckoutTransaction = async ({ transactionId }, client = getDefaultClie
2689
2708
  /**
2690
2709
  * Fetches a quote for a checkout transaction
2691
2710
  *
2711
+ * @deprecated Use {@link getFlowQuote} instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
2712
+ *
2692
2713
  * @param params GetCheckoutTransactionQuoteParams - The quote parameters.
2693
2714
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
2694
2715
  * @returns The updated checkout transaction with quote data
2695
2716
  * @not-instrumented
2717
+ * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
2696
2718
  */
2697
2719
  const getCheckoutTransactionQuote = async ({ fromChainId, fromTokenAddress, slippage, transactionId }, client = getDefaultClient()) => {
2698
2720
  const { apiClient, environmentId, sessionToken } = await createCheckoutApiClient({ transactionId }, client);
@@ -2718,10 +2740,13 @@ const getCheckoutTransactionQuote = async ({ fromChainId, fromTokenAddress, slip
2718
2740
  * This should be called immediately before triggering the transaction signing.
2719
2741
  * It will confirm the quote is still valid, the risk state is cleared, and the transaction is ready to be signed.
2720
2742
  *
2743
+ * @deprecated Use {@link prepareFlowSigning} instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
2744
+ *
2721
2745
  * @param params PrepareCheckoutTransactionParams - The transaction to prepare.
2722
2746
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
2723
2747
  * @returns The updated checkout transaction
2724
2748
  * @instrumented
2749
+ * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
2725
2750
  */
2726
2751
  const prepareCheckoutTransaction = async ({ assertBalanceForGasCost, assertBalanceForTransferAmount, transactionId }, client = getDefaultClient()) => {
2727
2752
  const { apiClient, environmentId, sessionToken } = await createCheckoutApiClient({ transactionId }, client);
@@ -2865,10 +2890,13 @@ const __executeSwapTransaction_wrapped = instrumentFunction({
2865
2890
  * 3. Delegates on-chain signing to the wallet provider's executeSwapTransaction method
2866
2891
  * 4. Calls broadcastCheckoutTransaction with the resulting txHash
2867
2892
  *
2893
+ * @deprecated Use {@link submitFlowTransaction} instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
2894
+ *
2868
2895
  * @param params SubmitCheckoutTransactionParams - The transaction ID, wallet account, and optional step callback.
2869
2896
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
2870
2897
  * @returns The broadcasted checkout transaction
2871
2898
  * @instrumented
2899
+ * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
2872
2900
  */
2873
2901
  const submitCheckoutTransaction = async ({ onStepChange, transactionId, walletAccount, assertBalanceForGasCost, assertBalanceForTransferAmount }, client = getDefaultClient()) => {
2874
2902
  const signingPayload = (await __prepareCheckoutTransaction_wrapped({
@@ -2916,9 +2944,12 @@ const __submitCheckoutTransaction_wrapped = instrumentFunction({
2916
2944
  * the realtime checkout transaction channel. Will be re-enabled once the
2917
2945
  * dashboard-api environment has the Ably wiring in place.
2918
2946
  *
2947
+ * @deprecated Use the Flow API instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
2948
+ *
2919
2949
  * @param params.transactionId - The ID of the checkout transaction to track.
2920
2950
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
2921
2951
  * @not-instrumented
2952
+ * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
2922
2953
  */
2923
2954
  const trackCheckoutTransaction = (_params, client = getDefaultClient()) => {
2924
2955
  return Promise.resolve();
@@ -2935,10 +2966,13 @@ const trackCheckoutTransaction = (_params, client = getDefaultClient()) => {
2935
2966
  * Returns `false` when the from token already matches a settlement token, so no
2936
2967
  * conversion is needed.
2937
2968
  *
2969
+ * @deprecated Use the Flow API instead. See https://www.dynamic.xyz/docs/javascript/reference/flow-getting-started
2970
+ *
2938
2971
  * @param params - The from token details and the checkout's settlement config.
2939
2972
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
2940
2973
  * @returns Whether a token conversion is required
2941
2974
  * @not-instrumented
2975
+ * @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
2942
2976
  */
2943
2977
  const requiresConversion = async ({ transaction }, client = getDefaultClient()) => {
2944
2978
  if (!transaction.fromChainId || !transaction.fromChainName || !transaction.fromToken) throw new InvalidParamError("Transaction is missing source information. Make sure that attachCheckoutTransactionSource has been called before calling this function.");
@@ -4830,7 +4864,9 @@ const __setDefaultMfaDevice_wrapped = instrumentFunction({
4830
4864
  */
4831
4865
  const sendEmailOTP = async ({ email }, client = getDefaultClient()) => {
4832
4866
  const core = getCore(client);
4833
- const { verificationUUID } = await createApiClient({}, client).createEmailVerification({
4867
+ const apiClient = createApiClient({}, client);
4868
+ preconnectWaasIframe(client);
4869
+ const { verificationUUID } = await apiClient.createEmailVerification({
4834
4870
  emailVerificationCreateRequest: {
4835
4871
  captchaToken: consumeCaptchaToken(client),
4836
4872
  email
@@ -5793,6 +5829,7 @@ const sendSmsOTP = async ({ isoCountryCode, phoneNumber }, client = getDefaultCl
5793
5829
  const core = getCore(client);
5794
5830
  const apiClient = createApiClient({}, client);
5795
5831
  const phoneCountryCode = supportedCountries[isoCountryCode].code;
5832
+ preconnectWaasIframe(client);
5796
5833
  const { verificationUUID } = await apiClient.createSmsVerification({
5797
5834
  environmentId: core.environmentId,
5798
5835
  smsVerificationCreateRequest: {
@@ -5880,6 +5917,7 @@ const verifyOTPForUserUpdate = async ({ otpVerification, verificationToken, requ
5880
5917
  * @redact-params
5881
5918
  */
5882
5919
  const verifyOTP = async ({ otpVerification, verificationToken, requestedScopes }, client = getDefaultClient()) => {
5920
+ preconnectWaasIframe(client);
5883
5921
  let response;
5884
5922
  if (client.user) response = await verifyOTPForUserUpdate({
5885
5923
  otpVerification,
@@ -7676,6 +7714,7 @@ const __connectAndVerifyWithWalletProvider_wrapped = instrumentFunction({
7676
7714
  * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
7677
7715
  * @returns An array of wallet provider data including chain, keys, and metadata.
7678
7716
  * @not-instrumented
7717
+ * @hook Exposed as a hook so consumers get the reactive list of available wallet providers, updated when wallet providers change.
7679
7718
  */
7680
7719
  const getAvailableWalletProvidersData = (client = getDefaultClient()) => {
7681
7720
  return getWalletProviders(client).filter((walletProvider) => hasWalletProviderConnectMethod({ walletProvider })).map((walletProvider) => ({