@dynamic-labs-sdk/client 1.31.1 → 1.31.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.
- package/dist/{apiClient-BZfdx9fH.native.esm.js → apiClient-d2qJyIvx.native.esm.js} +2 -2
- package/dist/{apiClient-BZfdx9fH.native.esm.js.map → apiClient-d2qJyIvx.native.esm.js.map} +1 -1
- package/dist/core.cjs +77 -5
- package/dist/core.cjs.map +1 -1
- package/dist/core.esm.js +78 -8
- package/dist/core.esm.js.map +1 -1
- package/dist/core.native.esm.js +76 -6
- package/dist/core.native.esm.js.map +1 -1
- package/dist/errors/AmbiguousWalletChainError.d.ts +32 -0
- package/dist/errors/AmbiguousWalletChainError.d.ts.map +1 -0
- package/dist/errors/ConnectionUriHandlerMissingError.d.ts +37 -0
- package/dist/errors/ConnectionUriHandlerMissingError.d.ts.map +1 -0
- package/dist/errors/NoConnectionOptionAvailableError.d.ts +39 -0
- package/dist/errors/NoConnectionOptionAvailableError.d.ts.map +1 -0
- package/dist/errors/WalletOptionNotFoundError.d.ts +30 -0
- package/dist/errors/WalletOptionNotFoundError.d.ts.map +1 -0
- package/dist/exports/core.d.ts +4 -0
- package/dist/exports/core.d.ts.map +1 -1
- package/dist/exports/index.d.ts +7 -1
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-CbMpiSub.esm.js → getNetworkProviderFromNetworkId-D9nx6Od5.esm.js} +7 -7
- package/dist/getNetworkProviderFromNetworkId-D9nx6Od5.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-DRA4M5Ab.native.esm.js → getNetworkProviderFromNetworkId-DF9kPibD.native.esm.js} +3 -3
- package/dist/{getNetworkProviderFromNetworkId-DRA4M5Ab.native.esm.js.map → getNetworkProviderFromNetworkId-DF9kPibD.native.esm.js.map} +1 -1
- package/dist/{getNetworkProviderFromNetworkId-DNIuJp20.cjs → getNetworkProviderFromNetworkId-DueBnAl6.cjs} +2 -2
- package/dist/{getNetworkProviderFromNetworkId-DNIuJp20.cjs.map → getNetworkProviderFromNetworkId-DueBnAl6.cjs.map} +1 -1
- package/dist/{getSignedSessionId-DKKSCpj9.native.esm.js → getSignedSessionId-5q4uyZsv.native.esm.js} +34 -4
- package/dist/getSignedSessionId-5q4uyZsv.native.esm.js.map +1 -0
- package/dist/{getSignedSessionId--wpV_VKs.cjs → getSignedSessionId-B5oxmSTs.cjs} +39 -3
- package/dist/getSignedSessionId-B5oxmSTs.cjs.map +1 -0
- package/dist/{getSignedSessionId-DHn6yhGX.esm.js → getSignedSessionId-BKfQycNo.esm.js} +34 -4
- package/dist/getSignedSessionId-BKfQycNo.esm.js.map +1 -0
- package/dist/{getVerifiedCredentialForWalletAccount-B5LUGiDP.cjs → getVerifiedCredentialForWalletAccount-Bx0HlvfW.cjs} +2 -2
- package/dist/{getVerifiedCredentialForWalletAccount-B5LUGiDP.cjs.map → getVerifiedCredentialForWalletAccount-Bx0HlvfW.cjs.map} +1 -1
- package/dist/{getVerifiedCredentialForWalletAccount-C_GcjgC8.esm.js → getVerifiedCredentialForWalletAccount-_3MExyld.esm.js} +2 -2
- package/dist/{getVerifiedCredentialForWalletAccount-C_GcjgC8.esm.js.map → getVerifiedCredentialForWalletAccount-_3MExyld.esm.js.map} +1 -1
- package/dist/index.cjs +398 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +396 -30
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +352 -28
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isMfaRequiredForAction-D1a1Nudo.esm.js → isMfaRequiredForAction-BDmY2_Sj.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-D1a1Nudo.esm.js.map → isMfaRequiredForAction-BDmY2_Sj.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-CC7bjhqy.native.esm.js → isMfaRequiredForAction-BrRCSvEX.native.esm.js} +2 -2
- package/dist/{isMfaRequiredForAction-CC7bjhqy.native.esm.js.map → isMfaRequiredForAction-BrRCSvEX.native.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-YjJLLFFs.cjs → isMfaRequiredForAction-DnKzPDZk.cjs} +2 -2
- package/dist/{isMfaRequiredForAction-YjJLLFFs.cjs.map → isMfaRequiredForAction-DnKzPDZk.cjs.map} +1 -1
- package/dist/{isUserOnboardingComplete-C2ZuLDT9.cjs → isUserOnboardingComplete-7GzNYU2g.cjs} +3 -3
- package/dist/{isUserOnboardingComplete-C2ZuLDT9.cjs.map → isUserOnboardingComplete-7GzNYU2g.cjs.map} +1 -1
- package/dist/{isUserOnboardingComplete-BIjk67vX.native.esm.js → isUserOnboardingComplete-BfMMBtkF.native.esm.js} +3 -3
- package/dist/{isUserOnboardingComplete-BIjk67vX.native.esm.js.map → isUserOnboardingComplete-BfMMBtkF.native.esm.js.map} +1 -1
- package/dist/{isUserOnboardingComplete-C4bE5xqM.esm.js → isUserOnboardingComplete-D1-QluDm.esm.js} +3 -3
- package/dist/{isUserOnboardingComplete-C4bE5xqM.esm.js.map → isUserOnboardingComplete-D1-QluDm.esm.js.map} +1 -1
- package/dist/{logoutWithReason-BcWQGREO.native.esm.js → logoutWithReason-3UICYir7.native.esm.js} +2 -2
- package/dist/{logoutWithReason-BcWQGREO.native.esm.js.map → logoutWithReason-3UICYir7.native.esm.js.map} +1 -1
- package/dist/{logoutWithReason-BqsgA8gI.esm.js → logoutWithReason-CHyuBHdx.esm.js} +2 -2
- package/dist/{logoutWithReason-BqsgA8gI.esm.js.map → logoutWithReason-CHyuBHdx.esm.js.map} +1 -1
- package/dist/{logoutWithReason-D6ruPOvJ.cjs → logoutWithReason-C_T7KddM.cjs} +2 -2
- package/dist/{logoutWithReason-D6ruPOvJ.cjs.map → logoutWithReason-C_T7KddM.cjs.map} +1 -1
- package/dist/{migrateFromFireblocks-zazAx6WV.esm.js → migrateFromFireblocks-BMO3u6rO.esm.js} +2 -2
- package/dist/{migrateFromFireblocks-zazAx6WV.esm.js.map → migrateFromFireblocks-BMO3u6rO.esm.js.map} +1 -1
- package/dist/{migrateFromFireblocks-CCNTDCmW.cjs → migrateFromFireblocks-C9Kuke5V.cjs} +2 -2
- package/dist/{migrateFromFireblocks-CCNTDCmW.cjs.map → migrateFromFireblocks-C9Kuke5V.cjs.map} +1 -1
- package/dist/{migrateFromFireblocks-BxPgqhbu.native.esm.js → migrateFromFireblocks-DJt9bktR.native.esm.js} +2 -2
- package/dist/{migrateFromFireblocks-BxPgqhbu.native.esm.js.map → migrateFromFireblocks-DJt9bktR.native.esm.js.map} +1 -1
- package/dist/modules/auth/social/oauth/clearSocialRedirectParams/clearSocialRedirectParams.d.ts +7 -1
- package/dist/modules/auth/social/oauth/clearSocialRedirectParams/clearSocialRedirectParams.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/clearSocialRedirectParams/clearSocialRedirectParams.types.d.ts +4 -0
- package/dist/modules/auth/social/oauth/clearSocialRedirectParams/clearSocialRedirectParams.types.d.ts.map +1 -0
- package/dist/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.d.ts +9 -0
- package/dist/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.d.ts.map +1 -1
- package/dist/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.d.ts +2 -1
- package/dist/modules/walletOptionsCatalogue/walletOptionsCatalogue.types.d.ts.map +1 -1
- package/dist/modules/wallets/connectWallet.types.d.ts +35 -0
- package/dist/modules/wallets/connectWallet.types.d.ts.map +1 -0
- package/dist/modules/wallets/connectWithUriConnectionOption/connectWithUriConnectionOption.d.ts +52 -0
- package/dist/modules/wallets/connectWithUriConnectionOption/connectWithUriConnectionOption.d.ts.map +1 -0
- package/dist/modules/wallets/connectWithUriConnectionOption/getConnectionUriDeeplink/getConnectionUriDeeplink.d.ts +34 -0
- package/dist/modules/wallets/connectWithUriConnectionOption/getConnectionUriDeeplink/getConnectionUriDeeplink.d.ts.map +1 -0
- package/dist/modules/wallets/connectWithUriConnectionOption/getConnectionUriDeeplink/index.d.ts +2 -0
- package/dist/modules/wallets/connectWithUriConnectionOption/getConnectionUriDeeplink/index.d.ts.map +1 -0
- package/dist/modules/wallets/connectWithUriConnectionOption/index.d.ts +2 -0
- package/dist/modules/wallets/connectWithUriConnectionOption/index.d.ts.map +1 -0
- package/dist/modules/wallets/redirectToInAppBrowser/index.d.ts +2 -0
- package/dist/modules/wallets/redirectToInAppBrowser/index.d.ts.map +1 -0
- package/dist/modules/wallets/redirectToInAppBrowser/redirectToInAppBrowser.d.ts +60 -0
- package/dist/modules/wallets/redirectToInAppBrowser/redirectToInAppBrowser.d.ts.map +1 -0
- package/dist/modules/wallets/resolveWalletConnectionOption/index.d.ts +3 -0
- package/dist/modules/wallets/resolveWalletConnectionOption/index.d.ts.map +1 -0
- package/dist/modules/wallets/resolveWalletConnectionOption/resolveWalletConnectionOption.d.ts +36 -0
- package/dist/modules/wallets/resolveWalletConnectionOption/resolveWalletConnectionOption.d.ts.map +1 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/createUriConnectionStarterRegistry/createUriConnectionStarterRegistry.d.ts +22 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/createUriConnectionStarterRegistry/createUriConnectionStarterRegistry.d.ts.map +1 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/createUriConnectionStarterRegistry/index.d.ts +2 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/createUriConnectionStarterRegistry/index.d.ts.map +1 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/events.d.ts +18 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/events.d.ts.map +1 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/getUriConnectionStarterRegistry/getUriConnectionStarterRegistry.d.ts +22 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/getUriConnectionStarterRegistry/getUriConnectionStarterRegistry.d.ts.map +1 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/getUriConnectionStarterRegistry/index.d.ts +2 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/getUriConnectionStarterRegistry/index.d.ts.map +1 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/index.d.ts +3 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/index.d.ts.map +1 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/uriConnectionStarterRegistry.types.d.ts +32 -0
- package/dist/modules/wallets/uriConnectionStarterRegistry/uriConnectionStarterRegistry.types.d.ts.map +1 -0
- package/dist/modules/wallets/walletProviderUriConnection.types.d.ts +19 -0
- package/dist/modules/wallets/walletProviderUriConnection.types.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/utils/buildInAppBrowserUrl/buildInAppBrowserUrl.d.ts +32 -0
- package/dist/utils/buildInAppBrowserUrl/buildInAppBrowserUrl.d.ts.map +1 -0
- package/dist/utils/buildInAppBrowserUrl/index.d.ts +2 -0
- package/dist/utils/buildInAppBrowserUrl/index.d.ts.map +1 -0
- package/dist/utils/getPreferredWalletDeepLink/getPreferredWalletDeepLink.d.ts +33 -0
- package/dist/utils/getPreferredWalletDeepLink/getPreferredWalletDeepLink.d.ts.map +1 -0
- package/dist/utils/getPreferredWalletDeepLink/index.d.ts +2 -0
- package/dist/utils/getPreferredWalletDeepLink/index.d.ts.map +1 -0
- package/dist/utils/isAndroid/index.d.ts +2 -0
- package/dist/utils/isAndroid/index.d.ts.map +1 -0
- package/dist/utils/isAndroid/isAndroid.d.ts +20 -0
- package/dist/utils/isAndroid/isAndroid.d.ts.map +1 -0
- package/dist/utils/isIOS/index.d.ts +2 -0
- package/dist/utils/isIOS/index.d.ts.map +1 -0
- package/dist/utils/isIOS/isIOS.d.ts +23 -0
- package/dist/utils/isIOS/isIOS.d.ts.map +1 -0
- package/dist/utils/isMobile/isMobile.d.ts +17 -36
- package/dist/utils/isMobile/isMobile.d.ts.map +1 -1
- package/dist/utils/userAgentChecks/userAgentChecks.d.ts +35 -0
- package/dist/utils/userAgentChecks/userAgentChecks.d.ts.map +1 -0
- package/dist/{waas-DidjjQjB.native.esm.js → waas-9QajYGeK.native.esm.js} +4 -4
- package/dist/{waas-DidjjQjB.native.esm.js.map → waas-9QajYGeK.native.esm.js.map} +1 -1
- package/dist/{waas-ZWlJHeXc.cjs → waas-Bxsd0-HG.cjs} +4 -4
- package/dist/{waas-ZWlJHeXc.cjs.map → waas-Bxsd0-HG.cjs.map} +1 -1
- package/dist/{waas-C2PbR02F.esm.js → waas-T_dHXyI9.esm.js} +4 -4
- package/dist/{waas-C2PbR02F.esm.js.map → waas-T_dHXyI9.esm.js.map} +1 -1
- package/dist/waas.cjs +4 -4
- package/dist/waas.esm.js +4 -4
- package/dist/waas.native.esm.js +4 -4
- package/dist/waasCore.cjs +10 -40
- package/dist/waasCore.cjs.map +1 -1
- package/dist/waasCore.esm.js +5 -35
- package/dist/waasCore.esm.js.map +1 -1
- package/dist/waasCore.native.esm.js +5 -35
- package/dist/waasCore.native.esm.js.map +1 -1
- package/package.json +2 -2
- package/dist/getNetworkProviderFromNetworkId-CbMpiSub.esm.js.map +0 -1
- package/dist/getSignedSessionId--wpV_VKs.cjs.map +0 -1
- package/dist/getSignedSessionId-DHn6yhGX.esm.js.map +0 -1
- package/dist/getSignedSessionId-DKKSCpj9.native.esm.js.map +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { $ as updateNoncePoolStorage, A as getWalletProviders, C as initializeWaasClientsForEagerRecovery, Ct as BaseError, Et as version, F as onEvent, G as splitWalletProviderKey, H as CHAINS_INFO_MAP, I as onceEvent, M as getWalletProviderRegistry, N as emitEvent, P as offEvent, Q as fetchAndStoreNonces, R as getWalletAccounts, St as getCore, Tt as name, U as formatWalletAccountId, V as getChainFromVerifiedCredentialChain, W as normalizeAddress, Z as getNonce, _ as upsertElevatedAccessToken, _t as randomString, a as retryOnFail, at as MfaInvalidOtpError, b as InvalidParamError, bt as setDefaultClient, c as createApiClient, ct as APIError, d as scrubParameters, dt as SDK_API_CORE_VERSION, et as createStorageKeySchema, f as DEFAULT_PII_FIELDS, g as updateAuthFromVerifyResponse, gt as getElevatedAccessToken, h as extractSessionId, ht as ValueMustBeDefinedError, i as isSignedIn, it as MfaRateLimitedError, j as WalletProviderPriority, l as __refreshAuth_wrapped, m as getOperatingSystem, mt as assertDefined, n as generateSessionKeys, nt as UnauthorizedError, o as getWalletProviderFromWalletAccount, ot as LinkCredentialError, p as getUserAgent, pt as isCookieEnabled, q as isUserMissingMfaAuth, r as fetchProjectSettings, rt as SandboxMaximumThresholdReachedError, s as NoWalletProviderFoundError, st as InvalidExternalAuthError, t as __logoutWithReason_wrapped, tt as NONCE_POOL_SIZE, u as instrumentFunction, ut as DYNAMIC_ICONIC_SPRITE_URL, v as parseElevatedAccessToken, vt as getPlatform, wt as TokenScope, x as checkAndRaiseWalletAccountsChangedEvent, y as decodeJwt, yt as getDefaultClient } from "./logoutWithReason-
|
|
2
|
-
import { a as TransactionBroadcastError, i as NotWaasWalletAccountError } from "./migrateFromFireblocks-
|
|
3
|
-
import { Q as WaasChainEnum } from "./waas-
|
|
4
|
-
import { A as createEventEmitter, B as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, C as getKeychainIndexedDBName, D as assertSafeNavigationUrl, E as createKeychainService, F as createAppForegroundSubscriber, H as subscribeWithSelector, I as FETCH_PROJECT_SETTINGS_TRACKER_KEY, J as UnavailableInServerSideError, K as createLocalStorageAdapter, L as GENERATE_SESSION_KEYS_TRACKER_KEY, N as CannotTrackError, P as createDeferredPromise, R as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, S as MergeAccountsConfirmationError, T as assertSafeDeeplinkUrl, U as isEqualShallow, V as getBuffer, W as createStorage, _ as consumeCaptchaToken, a as removeUnverifiedWalletAccount, b as WalletAlreadyLinkedToAnotherUserError, c as getAppMetadata, d as setUnverifiedWalletAccounts, f as createVisit, g as MethodNotImplementedError, h as __setCaptchaToken_wrapped, i as verifyMessageSignatureOwnership, j as createCrossTabBroadcast, k as createLogger, l as reconcileWalletAccountsAgainstClient, m as hasExtension, o as createSignInMessageStatement, p as getNetworkProviderBuilderRegistry, q as isServerSideRendering, r as getNetworksData, s as formatSignInMessage, t as getNetworkProviderFromNetworkId, u as updateWalletProviderKeysForVerifiedCredentials, v as isCaptchaRequired, w as createRealtimeService, x as NoNetworkProvidersError, y as WalletScreeningBlockedError, z as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY } from "./getNetworkProviderFromNetworkId-
|
|
5
|
-
import { n as getWalletProviderByKey, t as getVerifiedCredentialForWalletAccount } from "./getVerifiedCredentialForWalletAccount-
|
|
6
|
-
import { a as WaasRbacStaleRetryUnsafeError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, o as WaasOnboardingIncompleteError, r as isDeviceRegistrationRequired, s as WaasLoadFailedError, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-
|
|
7
|
-
import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-
|
|
1
|
+
import { $ as updateNoncePoolStorage, A as getWalletProviders, C as initializeWaasClientsForEagerRecovery, Ct as BaseError, Et as version, F as onEvent, G as splitWalletProviderKey, H as CHAINS_INFO_MAP, I as onceEvent, M as getWalletProviderRegistry, N as emitEvent, P as offEvent, Q as fetchAndStoreNonces, R as getWalletAccounts, St as getCore, Tt as name, U as formatWalletAccountId, V as getChainFromVerifiedCredentialChain, W as normalizeAddress, Z as getNonce, _ as upsertElevatedAccessToken, _t as randomString, a as retryOnFail, at as MfaInvalidOtpError, b as InvalidParamError, bt as setDefaultClient, c as createApiClient, ct as APIError, d as scrubParameters, dt as SDK_API_CORE_VERSION, et as createStorageKeySchema, f as DEFAULT_PII_FIELDS, g as updateAuthFromVerifyResponse, gt as getElevatedAccessToken, h as extractSessionId, ht as ValueMustBeDefinedError, i as isSignedIn, it as MfaRateLimitedError, j as WalletProviderPriority, l as __refreshAuth_wrapped, m as getOperatingSystem, mt as assertDefined, n as generateSessionKeys, nt as UnauthorizedError, o as getWalletProviderFromWalletAccount, ot as LinkCredentialError, p as getUserAgent, pt as isCookieEnabled, q as isUserMissingMfaAuth, r as fetchProjectSettings, rt as SandboxMaximumThresholdReachedError, s as NoWalletProviderFoundError, st as InvalidExternalAuthError, t as __logoutWithReason_wrapped, tt as NONCE_POOL_SIZE, u as instrumentFunction, ut as DYNAMIC_ICONIC_SPRITE_URL, v as parseElevatedAccessToken, vt as getPlatform, wt as TokenScope, x as checkAndRaiseWalletAccountsChangedEvent, y as decodeJwt, yt as getDefaultClient } from "./logoutWithReason-CHyuBHdx.esm.js";
|
|
2
|
+
import { a as TransactionBroadcastError, i as NotWaasWalletAccountError } from "./migrateFromFireblocks-BMO3u6rO.esm.js";
|
|
3
|
+
import { Q as WaasChainEnum } from "./waas-T_dHXyI9.esm.js";
|
|
4
|
+
import { A as createEventEmitter, B as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, C as getKeychainIndexedDBName, D as assertSafeNavigationUrl, E as createKeychainService, F as createAppForegroundSubscriber, H as subscribeWithSelector, I as FETCH_PROJECT_SETTINGS_TRACKER_KEY, J as UnavailableInServerSideError, K as createLocalStorageAdapter, L as GENERATE_SESSION_KEYS_TRACKER_KEY, N as CannotTrackError, P as createDeferredPromise, R as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, S as MergeAccountsConfirmationError, T as assertSafeDeeplinkUrl, U as isEqualShallow, V as getBuffer, W as createStorage, _ as consumeCaptchaToken, a as removeUnverifiedWalletAccount, b as WalletAlreadyLinkedToAnotherUserError, c as getAppMetadata, d as setUnverifiedWalletAccounts, f as createVisit, g as MethodNotImplementedError, h as __setCaptchaToken_wrapped, i as verifyMessageSignatureOwnership, j as createCrossTabBroadcast, k as createLogger, l as reconcileWalletAccountsAgainstClient, m as hasExtension, o as createSignInMessageStatement, p as getNetworkProviderBuilderRegistry, q as isServerSideRendering, r as getNetworksData, s as formatSignInMessage, t as getNetworkProviderFromNetworkId, u as updateWalletProviderKeysForVerifiedCredentials, v as isCaptchaRequired, w as createRealtimeService, x as NoNetworkProvidersError, y as WalletScreeningBlockedError, z as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY } from "./getNetworkProviderFromNetworkId-D9nx6Od5.esm.js";
|
|
5
|
+
import { n as getWalletProviderByKey, t as getVerifiedCredentialForWalletAccount } from "./getVerifiedCredentialForWalletAccount-_3MExyld.esm.js";
|
|
6
|
+
import { a as WaasRbacStaleRetryUnsafeError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, o as WaasOnboardingIncompleteError, r as isDeviceRegistrationRequired, s as WaasLoadFailedError, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-D1-QluDm.esm.js";
|
|
7
|
+
import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-BDmY2_Sj.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";
|
|
11
|
-
import { EventEmitter
|
|
11
|
+
import { EventEmitter } from "eventemitter3";
|
|
12
12
|
import { browserSupportsWebAuthn, startAuthentication, startRegistration } from "@simplewebauthn/browser";
|
|
13
13
|
|
|
14
14
|
//#region src/modules/state/raiseStateEvents/events.ts
|
|
@@ -556,7 +556,7 @@ const initializeClient = async (client = getDefaultClient()) => {
|
|
|
556
556
|
*/
|
|
557
557
|
if (isCookieEnabled(client)) await __refreshAuth_wrapped(client).catch(async (error) => {
|
|
558
558
|
if (error.status === 401) {
|
|
559
|
-
core.logger.
|
|
559
|
+
core.logger.warn("Session expired during initialization", error);
|
|
560
560
|
if (client.user) await __logoutWithReason_wrapped({ reason: "session-refresh-unauthorized" }, client);
|
|
561
561
|
} else throw error;
|
|
562
562
|
});
|
|
@@ -631,7 +631,7 @@ const createAsyncTrack = () => {
|
|
|
631
631
|
* This ensures no process is missed (as it would throw when tracked on a different node tick).
|
|
632
632
|
*/
|
|
633
633
|
let isTrackEnabled = true;
|
|
634
|
-
const eventEmitter = new EventEmitter
|
|
634
|
+
const eventEmitter = new EventEmitter();
|
|
635
635
|
const allSettledPromise = createDeferredPromise();
|
|
636
636
|
const tracker = /* @__PURE__ */ new Map();
|
|
637
637
|
/**
|
|
@@ -1203,6 +1203,46 @@ const __createDynamicClient_wrapped = instrumentFunction({
|
|
|
1203
1203
|
}
|
|
1204
1204
|
});
|
|
1205
1205
|
|
|
1206
|
+
//#endregion
|
|
1207
|
+
//#region src/errors/AmbiguousWalletChainError.ts
|
|
1208
|
+
/**
|
|
1209
|
+
* Thrown when a wallet can be connected on more than one of the client's
|
|
1210
|
+
* enabled chains and no chain was passed to `connectWallet`.
|
|
1211
|
+
*
|
|
1212
|
+
* Multi-chain wallets such as MetaMask or Phantom connect to a different
|
|
1213
|
+
* account per chain, so the chain has to be an explicit choice rather than one
|
|
1214
|
+
* Dynamic makes on the customer's behalf.
|
|
1215
|
+
*
|
|
1216
|
+
* @example
|
|
1217
|
+
* ```ts
|
|
1218
|
+
* try {
|
|
1219
|
+
* await connectWallet({ walletKey: 'phantom' });
|
|
1220
|
+
* } catch (error) {
|
|
1221
|
+
* if (error instanceof AmbiguousWalletChainError) {
|
|
1222
|
+
* await connectWallet({ chain: 'SOL', walletKey: 'phantom' });
|
|
1223
|
+
* }
|
|
1224
|
+
* }
|
|
1225
|
+
* ```
|
|
1226
|
+
* @see connectWallet
|
|
1227
|
+
* @see getWalletOptionsCatalogue
|
|
1228
|
+
*/
|
|
1229
|
+
var AmbiguousWalletChainError = class extends BaseError {
|
|
1230
|
+
constructor({ chains, walletKey }) {
|
|
1231
|
+
super({
|
|
1232
|
+
cause: null,
|
|
1233
|
+
code: "ambiguous_wallet_chain",
|
|
1234
|
+
docsUrl: null,
|
|
1235
|
+
metaMessages: [
|
|
1236
|
+
`Wallet key: ${walletKey}`,
|
|
1237
|
+
`Available chains: ${chains.join(", ")}`,
|
|
1238
|
+
"Pass the chain param to pick which one to connect on."
|
|
1239
|
+
],
|
|
1240
|
+
name: "AmbiguousWalletChainError",
|
|
1241
|
+
shortMessage: `Wallet ${walletKey} can be connected on more than one chain, so the chain param is required.`
|
|
1242
|
+
});
|
|
1243
|
+
}
|
|
1244
|
+
};
|
|
1245
|
+
|
|
1206
1246
|
//#endregion
|
|
1207
1247
|
//#region src/errors/CheckoutSessionTokenMissingError.ts
|
|
1208
1248
|
var CheckoutSessionTokenMissingError = class extends BaseError {
|
|
@@ -1602,6 +1642,54 @@ var NoAddressFoundError = class extends BaseError {
|
|
|
1602
1642
|
}
|
|
1603
1643
|
};
|
|
1604
1644
|
|
|
1645
|
+
//#endregion
|
|
1646
|
+
//#region src/errors/NoConnectionOptionAvailableError.ts
|
|
1647
|
+
/**
|
|
1648
|
+
* Thrown when a wallet exists in the catalogue but has no connection option
|
|
1649
|
+
* this client can drive.
|
|
1650
|
+
*
|
|
1651
|
+
* Happens when the wallet is not installed on the device and no URI pairing is
|
|
1652
|
+
* available for it — either the wallet does not support one, or the chain
|
|
1653
|
+
* extension providing that pairing was not added to the client.
|
|
1654
|
+
*
|
|
1655
|
+
* @example
|
|
1656
|
+
* ```ts
|
|
1657
|
+
* try {
|
|
1658
|
+
* await connectWallet({ walletKey: 'rainbow' });
|
|
1659
|
+
* } catch (error) {
|
|
1660
|
+
* if (error instanceof NoConnectionOptionAvailableError) {
|
|
1661
|
+
* promptWalletInstall(error.installationUrls);
|
|
1662
|
+
* }
|
|
1663
|
+
* }
|
|
1664
|
+
* ```
|
|
1665
|
+
* @see connectWallet
|
|
1666
|
+
* @see getWalletOptionsCatalogue
|
|
1667
|
+
*/
|
|
1668
|
+
var NoConnectionOptionAvailableError = class extends BaseError {
|
|
1669
|
+
/**
|
|
1670
|
+
* Install / download links for the wallet, when the wallet book carries any
|
|
1671
|
+
* for this device. Prompt the user to install the wallet with these.
|
|
1672
|
+
*/
|
|
1673
|
+
installationUrls;
|
|
1674
|
+
constructor({ chain, installationUrls, walletKey }) {
|
|
1675
|
+
super({
|
|
1676
|
+
cause: null,
|
|
1677
|
+
code: "no_connection_option_available",
|
|
1678
|
+
docsUrl: null,
|
|
1679
|
+
metaMessages: [
|
|
1680
|
+
`Wallet key: ${walletKey}`,
|
|
1681
|
+
...chain ? [`Chain: ${chain}`] : [],
|
|
1682
|
+
"The wallet is not installed and no URI pairing is available for it on this client.",
|
|
1683
|
+
"URI pairing requires the chain extension that provides it — addWalletConnect<Chain>Extension for WalletConnect, addMetaMask<Chain>Extension for MetaMask.",
|
|
1684
|
+
"Use this error's installationUrls to prompt the user to install the wallet."
|
|
1685
|
+
],
|
|
1686
|
+
name: "NoConnectionOptionAvailableError",
|
|
1687
|
+
shortMessage: `No connection option available for wallet: ${walletKey}`
|
|
1688
|
+
});
|
|
1689
|
+
this.installationUrls = installationUrls;
|
|
1690
|
+
}
|
|
1691
|
+
};
|
|
1692
|
+
|
|
1605
1693
|
//#endregion
|
|
1606
1694
|
//#region src/errors/NoPasskeyCredentialsFoundError.ts
|
|
1607
1695
|
var NoPasskeyCredentialsFoundError = class extends BaseError {
|
|
@@ -1796,6 +1884,46 @@ var WalletAccountNotSelectedError = class extends BaseError {
|
|
|
1796
1884
|
}
|
|
1797
1885
|
};
|
|
1798
1886
|
|
|
1887
|
+
//#endregion
|
|
1888
|
+
//#region src/errors/WalletOptionNotFoundError.ts
|
|
1889
|
+
/**
|
|
1890
|
+
* Thrown when `connectWallet` is given a wallet key that no wallet option in
|
|
1891
|
+
* the catalogue matches.
|
|
1892
|
+
*
|
|
1893
|
+
* A wallet is only surfaced for the chains this client has an extension for, so
|
|
1894
|
+
* this also covers keys that are valid in the wallet book but not reachable
|
|
1895
|
+
* with the client's current chain extensions.
|
|
1896
|
+
*
|
|
1897
|
+
* @example
|
|
1898
|
+
* ```ts
|
|
1899
|
+
* try {
|
|
1900
|
+
* await connectWallet({ walletKey: 'metmask' });
|
|
1901
|
+
* } catch (error) {
|
|
1902
|
+
* if (error instanceof WalletOptionNotFoundError) {
|
|
1903
|
+
* showUnknownWalletMessage();
|
|
1904
|
+
* }
|
|
1905
|
+
* }
|
|
1906
|
+
* ```
|
|
1907
|
+
* @see connectWallet
|
|
1908
|
+
* @see getWalletOptionsCatalogue
|
|
1909
|
+
*/
|
|
1910
|
+
var WalletOptionNotFoundError = class extends BaseError {
|
|
1911
|
+
constructor({ walletKey }) {
|
|
1912
|
+
super({
|
|
1913
|
+
cause: null,
|
|
1914
|
+
code: "wallet_option_not_found",
|
|
1915
|
+
docsUrl: null,
|
|
1916
|
+
metaMessages: [
|
|
1917
|
+
`Wallet key: ${walletKey}`,
|
|
1918
|
+
"The key must match a wallet option surfaced by getWalletOptionsCatalogue (e.g. \"metamask\", \"phantom\").",
|
|
1919
|
+
"A wallet is only surfaced on chains this client has an extension for, so make sure the relevant chain extension is added."
|
|
1920
|
+
],
|
|
1921
|
+
name: "WalletOptionNotFoundError",
|
|
1922
|
+
shortMessage: `No wallet option found for key: ${walletKey}`
|
|
1923
|
+
});
|
|
1924
|
+
}
|
|
1925
|
+
};
|
|
1926
|
+
|
|
1799
1927
|
//#endregion
|
|
1800
1928
|
//#region src/errors/WalletProviderMethodUnavailableError.ts
|
|
1801
1929
|
var WalletProviderMethodUnavailableError = class extends BaseError {
|
|
@@ -2521,6 +2649,10 @@ const __authenticateWithSocial_wrapped = instrumentFunction({
|
|
|
2521
2649
|
* browser. Calling it during server-side rendering (no `window`) throws
|
|
2522
2650
|
* `UnavailableInServerSideError`.
|
|
2523
2651
|
*
|
|
2652
|
+
* @param [params.expectedState] - When given, the parameters are only removed
|
|
2653
|
+
* while the current URL still carries this `dynamicOauthState`. Use it to
|
|
2654
|
+
* clean up after a specific callback without touching a newer one that has
|
|
2655
|
+
* meanwhile landed in the address bar.
|
|
2524
2656
|
* @returns Nothing. The current URL is rewritten in place via
|
|
2525
2657
|
* `window.history.replaceState`.
|
|
2526
2658
|
*
|
|
@@ -2540,9 +2672,12 @@ const __authenticateWithSocial_wrapped = instrumentFunction({
|
|
|
2540
2672
|
*
|
|
2541
2673
|
* @notInstrumented
|
|
2542
2674
|
*/
|
|
2543
|
-
const clearSocialRedirectParams = () => {
|
|
2675
|
+
const clearSocialRedirectParams = ({ expectedState } = {}) => {
|
|
2544
2676
|
if (isServerSideRendering()) throw new UnavailableInServerSideError("clearSocialRedirectParams");
|
|
2545
|
-
|
|
2677
|
+
const currentHref = window.location.href;
|
|
2678
|
+
const currentState = new URL(currentHref).searchParams.get("dynamicOauthState");
|
|
2679
|
+
if (expectedState !== void 0 && currentState !== expectedState) return;
|
|
2680
|
+
window.history.replaceState({}, "", removeDynamicOauthParamsFromUrl(currentHref));
|
|
2546
2681
|
};
|
|
2547
2682
|
|
|
2548
2683
|
//#endregion
|
|
@@ -2626,6 +2761,14 @@ const __processSocialCallback_wrapped = instrumentFunction({
|
|
|
2626
2761
|
* authenticating (or linking) the user with the social provider. This is the
|
|
2627
2762
|
* final step after `signInWithSocialRedirect` + `detectSocialRedirectUrl`.
|
|
2628
2763
|
*
|
|
2764
|
+
* A callback URL whose stored redirect state is missing or does not match can
|
|
2765
|
+
* never complete, so its OAuth parameters are stripped from the browser URL
|
|
2766
|
+
* before the error is rethrown. Callers that decide whether to complete a
|
|
2767
|
+
* redirect by inspecting the URL therefore see the failure once instead of
|
|
2768
|
+
* retrying the same doomed callback on every render. The clean-up is scoped to
|
|
2769
|
+
* the state of the callback it failed on, so a newer callback sitting in the
|
|
2770
|
+
* address bar is left alone.
|
|
2771
|
+
*
|
|
2629
2772
|
* @example
|
|
2630
2773
|
* ```ts
|
|
2631
2774
|
* const redirectUrl = detectSocialRedirectUrl();
|
|
@@ -2639,16 +2782,30 @@ const __processSocialCallback_wrapped = instrumentFunction({
|
|
|
2639
2782
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2640
2783
|
* @returns A promise that resolves to the authenticated user or null.
|
|
2641
2784
|
* @throws MissingSocialUrlParamError If required OAuth parameters are missing.
|
|
2785
|
+
* @throws MissingRedirectStorageStateError If no stored redirect state exists.
|
|
2642
2786
|
* @throws InvalidRedirectStorageStateError If the stored state doesn't match.
|
|
2643
2787
|
* @see signInWithSocialRedirect
|
|
2644
2788
|
* @see detectSocialRedirectUrl
|
|
2645
2789
|
* @see clearSocialRedirectParams
|
|
2646
2790
|
* @instrumented
|
|
2647
2791
|
*/
|
|
2648
|
-
const completeSocialRedirect = ({ url, requestedScopes }, client = getDefaultClient()) =>
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2792
|
+
const completeSocialRedirect = async ({ url, requestedScopes }, client = getDefaultClient()) => {
|
|
2793
|
+
try {
|
|
2794
|
+
return await __processSocialCallback_wrapped({
|
|
2795
|
+
requestedScopes,
|
|
2796
|
+
url
|
|
2797
|
+
}, client);
|
|
2798
|
+
} catch (error) {
|
|
2799
|
+
const hasUnusableRedirectState = error instanceof MissingRedirectStorageStateError || error instanceof InvalidRedirectStorageStateError;
|
|
2800
|
+
const failedState = url.searchParams.get("dynamicOauthState");
|
|
2801
|
+
if (hasUnusableRedirectState && failedState !== null) try {
|
|
2802
|
+
clearSocialRedirectParams({ expectedState: failedState });
|
|
2803
|
+
} catch (clearError) {
|
|
2804
|
+
getCore(client).logger.debug("[completeSocialRedirect] failed to clear the social redirect params", clearError);
|
|
2805
|
+
}
|
|
2806
|
+
throw error;
|
|
2807
|
+
}
|
|
2808
|
+
};
|
|
2652
2809
|
const __completeSocialRedirect_impl = completeSocialRedirect;
|
|
2653
2810
|
const __completeSocialRedirect_wrapped = instrumentFunction({
|
|
2654
2811
|
fn: __completeSocialRedirect_impl,
|
|
@@ -7241,20 +7398,46 @@ const hasAllGoogleDriveBackupScopes = (grantedScopes) => findMissingGoogleDriveB
|
|
|
7241
7398
|
const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && err.message.includes(ACCESS_DENIED_PHRASE);
|
|
7242
7399
|
|
|
7243
7400
|
//#endregion
|
|
7244
|
-
//#region src/utils/
|
|
7401
|
+
//#region src/utils/isAndroid/isAndroid.ts
|
|
7402
|
+
/**
|
|
7403
|
+
* Tells whether the SDK is running on Android.
|
|
7404
|
+
*
|
|
7405
|
+
* The operating system comes from {@link getOperatingSystem}, which reads
|
|
7406
|
+
* `Platform.OS` in React Native and the user agent on web.
|
|
7407
|
+
*
|
|
7408
|
+
* @example
|
|
7409
|
+
* ```ts
|
|
7410
|
+
* if (isAndroid()) {
|
|
7411
|
+
* return installationUrls.android;
|
|
7412
|
+
* }
|
|
7413
|
+
* ```
|
|
7414
|
+
*
|
|
7415
|
+
* @returns `true` when the current device runs Android.
|
|
7416
|
+
* @see getOperatingSystem
|
|
7417
|
+
* @see isIOS
|
|
7418
|
+
* @notInstrumented
|
|
7419
|
+
*/
|
|
7420
|
+
const isAndroid = () => getOperatingSystem() === "android";
|
|
7421
|
+
|
|
7422
|
+
//#endregion
|
|
7423
|
+
//#region src/utils/userAgentChecks/userAgentChecks.ts
|
|
7245
7424
|
/**
|
|
7246
7425
|
* Sourced from http://detectmobilebrowsers.com/
|
|
7426
|
+
*
|
|
7427
|
+
* iOS devices are matched by {@link isIOSUserAgent} instead of a bare `ios`
|
|
7428
|
+
* alternative, which would also match unrelated words such as `kiosk`.
|
|
7247
7429
|
* @notInstrumented
|
|
7248
7430
|
*/
|
|
7249
|
-
const userAgentRegex1 = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|
|
|
7431
|
+
const userAgentRegex1 = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i;
|
|
7250
7432
|
const userAgentRegex2 = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;
|
|
7251
|
-
/**
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7433
|
+
/**
|
|
7434
|
+
* Matches the device names Apple's handhelds report, plus the standalone `ios`
|
|
7435
|
+
* token that embedded web views and custom in-app browsers use in place of a
|
|
7436
|
+
* device name. The token must stand alone so that unrelated words containing
|
|
7437
|
+
* `ios` (`kiosk`, for instance) don't match.
|
|
7438
|
+
* @notInstrumented
|
|
7439
|
+
*/
|
|
7440
|
+
const isIOSUserAgent = () => typeof window === "undefined" || typeof navigator === "undefined" ? false : /iPhone|iPod|(?:^|[^a-z])ios(?:[^a-z]|$)/i.test(navigator.userAgent);
|
|
7258
7441
|
/**
|
|
7259
7442
|
* @param [optional] maxTouchPointsOverride - this is used for testing since
|
|
7260
7443
|
* it seems that JSDOM doesn't support maxTouchPoints, so it was impossible
|
|
@@ -7267,13 +7450,11 @@ const isIPad = (maxTouchPointsOverride) => {
|
|
|
7267
7450
|
return /iPad/.test(navigator.userAgent) || /Mac/.test(navigator.userAgent) && maxTouchPoints === 5;
|
|
7268
7451
|
};
|
|
7269
7452
|
/** @notInstrumented */
|
|
7270
|
-
const
|
|
7453
|
+
const isMobileUserAgent = (maxTouchPointsOverride) => {
|
|
7271
7454
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
7272
|
-
return
|
|
7455
|
+
return userAgentRegex1.test(navigator.userAgent) || userAgentRegex2.test(navigator.userAgent.substring(0, 4)) || isIPad(maxTouchPointsOverride) || isIOSUserAgent();
|
|
7273
7456
|
};
|
|
7274
7457
|
/** @notInstrumented */
|
|
7275
|
-
const isAndroid = () => isMobile() && !isIOS();
|
|
7276
|
-
/** @notInstrumented */
|
|
7277
7458
|
const isSafariBrowser = () => {
|
|
7278
7459
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
7279
7460
|
const { userAgent } = navigator;
|
|
@@ -7300,6 +7481,31 @@ const isChromeBrowser = () => {
|
|
|
7300
7481
|
return /\bChrome\//.test(navigator.userAgent) && !isEdgeBrowser() && !isOperaBrowser();
|
|
7301
7482
|
};
|
|
7302
7483
|
|
|
7484
|
+
//#endregion
|
|
7485
|
+
//#region src/utils/isIOS/isIOS.ts
|
|
7486
|
+
/**
|
|
7487
|
+
* Tells whether the SDK is running on iOS or iPadOS.
|
|
7488
|
+
*
|
|
7489
|
+
* The operating system comes from {@link getOperatingSystem}, which reads
|
|
7490
|
+
* `Platform.OS` in React Native and the user agent on web. Two user agents
|
|
7491
|
+
* escape it: an iPad in desktop mode announces itself as macOS, and embedded
|
|
7492
|
+
* web views may carry a lowercase `ios` token instead of a device name.
|
|
7493
|
+
*
|
|
7494
|
+
* @example
|
|
7495
|
+
* ```ts
|
|
7496
|
+
* if (isIOS()) {
|
|
7497
|
+
* return installationUrls.ios;
|
|
7498
|
+
* }
|
|
7499
|
+
* ```
|
|
7500
|
+
*
|
|
7501
|
+
* @returns `true` when the current device runs iOS or iPadOS.
|
|
7502
|
+
* @see getOperatingSystem
|
|
7503
|
+
* @see isIPad
|
|
7504
|
+
* @see isIOSUserAgent
|
|
7505
|
+
* @notInstrumented
|
|
7506
|
+
*/
|
|
7507
|
+
const isIOS = () => getOperatingSystem() === "ios" || isIOSUserAgent() || isIPad();
|
|
7508
|
+
|
|
7303
7509
|
//#endregion
|
|
7304
7510
|
//#region src/modules/walletOptionsCatalogue/getInstallationLinkForCurrentPlatform/getInstallationLinkForCurrentPlatform.ts
|
|
7305
7511
|
/**
|
|
@@ -8446,6 +8652,29 @@ const __confirmTransaction_wrapped = instrumentFunction({
|
|
|
8446
8652
|
}
|
|
8447
8653
|
});
|
|
8448
8654
|
|
|
8655
|
+
//#endregion
|
|
8656
|
+
//#region src/utils/isMobile/isMobile.ts
|
|
8657
|
+
/**
|
|
8658
|
+
* Tells whether the SDK is running on a mobile device.
|
|
8659
|
+
*
|
|
8660
|
+
* This is the web implementation, which sniffs the browser's user agent. It
|
|
8661
|
+
* lives on its own so the React Native bundler can resolve
|
|
8662
|
+
* `isMobile.native.ts` instead, which always reports `true`.
|
|
8663
|
+
*
|
|
8664
|
+
* @example
|
|
8665
|
+
* ```ts
|
|
8666
|
+
* if (isMobile()) {
|
|
8667
|
+
* // hand the pairing to the wallet app instead of rendering a QR code
|
|
8668
|
+
* }
|
|
8669
|
+
* ```
|
|
8670
|
+
*
|
|
8671
|
+
* @returns `true` when the user agent belongs to a mobile device.
|
|
8672
|
+
* @see isMobileUserAgent
|
|
8673
|
+
* @see getPlatform
|
|
8674
|
+
* @notInstrumented
|
|
8675
|
+
*/
|
|
8676
|
+
const isMobile = () => isMobileUserAgent();
|
|
8677
|
+
|
|
8449
8678
|
//#endregion
|
|
8450
8679
|
//#region src/modules/wallets/utils/getAddressesWithTypesFromConnectionResult/getAddressesWithTypesFromConnectionResult.ts
|
|
8451
8680
|
/** @notInstrumented */
|
|
@@ -9442,6 +9671,109 @@ const __selectPrimaryWalletAccount_wrapped = instrumentFunction({
|
|
|
9442
9671
|
}
|
|
9443
9672
|
});
|
|
9444
9673
|
|
|
9674
|
+
//#endregion
|
|
9675
|
+
//#region src/utils/buildInAppBrowserUrl/buildInAppBrowserUrl.ts
|
|
9676
|
+
/**
|
|
9677
|
+
* Placeholder the wallet book leaves in in-app-browser URLs for the app URL
|
|
9678
|
+
* the wallet should open.
|
|
9679
|
+
*/
|
|
9680
|
+
const DAPP_URL_PLACEHOLDER = "{{encodedDappURI}}";
|
|
9681
|
+
/**
|
|
9682
|
+
* Fills a wallet's in-app-browser URL template with the app URL to open.
|
|
9683
|
+
*
|
|
9684
|
+
* Wallet book entries carry the entry point as a template (e.g.
|
|
9685
|
+
* `https://go.base.app/dapp?cb_url={{encodedDappURI}}`), so the URL is only
|
|
9686
|
+
* usable once every occurrence of the placeholder is substituted in,
|
|
9687
|
+
* percent-encoded. Templates without the placeholder are returned untouched —
|
|
9688
|
+
* some wallets open a fixed landing page.
|
|
9689
|
+
*
|
|
9690
|
+
* @example
|
|
9691
|
+
* ```ts
|
|
9692
|
+
* buildInAppBrowserUrl({
|
|
9693
|
+
* appUrl: 'https://myapp.xyz/login',
|
|
9694
|
+
* inAppBrowserUrl: 'https://go.base.app/dapp?cb_url={{encodedDappURI}}',
|
|
9695
|
+
* });
|
|
9696
|
+
* // Returns: 'https://go.base.app/dapp?cb_url=https%3A%2F%2Fmyapp.xyz%2Flogin'
|
|
9697
|
+
* ```
|
|
9698
|
+
*
|
|
9699
|
+
* @param params.appUrl - The URL of your app for the wallet's browser to open.
|
|
9700
|
+
* @param params.inAppBrowserUrl - The wallet's in-app-browser URL template.
|
|
9701
|
+
* @returns The in-app-browser URL to open.
|
|
9702
|
+
* @see redirectToInAppBrowser
|
|
9703
|
+
* @see getWalletOptionsCatalogue
|
|
9704
|
+
* @notInstrumented
|
|
9705
|
+
*/
|
|
9706
|
+
const buildInAppBrowserUrl = ({ appUrl, inAppBrowserUrl }) => inAppBrowserUrl.replaceAll(DAPP_URL_PLACEHOLDER, encodeURIComponent(appUrl));
|
|
9707
|
+
|
|
9708
|
+
//#endregion
|
|
9709
|
+
//#region src/modules/wallets/redirectToInAppBrowser/redirectToInAppBrowser.ts
|
|
9710
|
+
/**
|
|
9711
|
+
* Leaves your app for a wallet's in-app browser, which reloads `appUrl`
|
|
9712
|
+
* inside it.
|
|
9713
|
+
*
|
|
9714
|
+
* Call this from `handleWalletBrowserRedirect` with the URL of the page the
|
|
9715
|
+
* wallet should reload. The wallet's in-app-browser entry point is read from
|
|
9716
|
+
* the wallet options catalogue, so you only need the wallet's key. The wallet
|
|
9717
|
+
* is only injected on that reload, so the connection is made on the next page
|
|
9718
|
+
* load rather than in the current one.
|
|
9719
|
+
*
|
|
9720
|
+
* @example
|
|
9721
|
+
* ```ts
|
|
9722
|
+
* await connectWallet({
|
|
9723
|
+
* handleWalletBrowserRedirect: ({ chain, walletKey }) =>
|
|
9724
|
+
* redirectToInAppBrowser({ appUrl: window.location.href, chain, walletKey }),
|
|
9725
|
+
* walletKey: 'coinbase',
|
|
9726
|
+
* });
|
|
9727
|
+
* ```
|
|
9728
|
+
*
|
|
9729
|
+
* @param params.appUrl - The URL of your app for the wallet's browser to open.
|
|
9730
|
+
* @param params.walletKey - The wallet to open, keyed as in the wallet options catalogue.
|
|
9731
|
+
* @param [params.chain] - The chain to open the wallet's browser for. Required only when the wallet exposes an in-app browser on more than one enabled chain.
|
|
9732
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
9733
|
+
* @returns A promise that resolves once the redirect is triggered.
|
|
9734
|
+
* @throws WalletOptionNotFoundError If no wallet option matches the key.
|
|
9735
|
+
* @throws NoConnectionOptionAvailableError If the wallet exposes no in-app browser on the requested chain.
|
|
9736
|
+
* @throws AmbiguousWalletChainError If the wallet exposes an in-app browser on more than one chain and no chain was passed.
|
|
9737
|
+
* @throws UnsafeDeeplinkUrlError If the wallet's in-app-browser URL has a scheme that can execute script.
|
|
9738
|
+
* @see connectWallet
|
|
9739
|
+
* @see WalletBrowserRedirectHandlerParams
|
|
9740
|
+
* @instrumented
|
|
9741
|
+
*/
|
|
9742
|
+
const redirectToInAppBrowser = async ({ appUrl, chain, walletKey }, client = getDefaultClient()) => {
|
|
9743
|
+
const walletOption = (await getWalletOptionsCatalogue({ includeMobileOptions: true }, client)).find(({ key }) => key === walletKey);
|
|
9744
|
+
if (!walletOption) throw new WalletOptionNotFoundError({ walletKey });
|
|
9745
|
+
const inAppBrowserOptions = walletOption.connectionOptions.filter((option) => option.type === "inAppBrowser" && (!chain || option.chain === chain));
|
|
9746
|
+
if (inAppBrowserOptions.length === 0) throw new NoConnectionOptionAvailableError({
|
|
9747
|
+
chain,
|
|
9748
|
+
installationUrls: walletOption.installationUrls,
|
|
9749
|
+
walletKey
|
|
9750
|
+
});
|
|
9751
|
+
const availableChains = [...new Set(inAppBrowserOptions.map((option) => option.chain))];
|
|
9752
|
+
if (!chain && availableChains.length > 1) throw new AmbiguousWalletChainError({
|
|
9753
|
+
chains: availableChains,
|
|
9754
|
+
walletKey
|
|
9755
|
+
});
|
|
9756
|
+
const [inAppBrowserOption] = inAppBrowserOptions;
|
|
9757
|
+
const urlToOpen = buildInAppBrowserUrl({
|
|
9758
|
+
appUrl,
|
|
9759
|
+
inAppBrowserUrl: inAppBrowserOption.url
|
|
9760
|
+
});
|
|
9761
|
+
assertSafeDeeplinkUrl(urlToOpen);
|
|
9762
|
+
await getCore(client).openDeeplink(urlToOpen);
|
|
9763
|
+
};
|
|
9764
|
+
const __redirectToInAppBrowser_impl = redirectToInAppBrowser;
|
|
9765
|
+
const __redirectToInAppBrowser_wrapped = instrumentFunction({
|
|
9766
|
+
fn: __redirectToInAppBrowser_impl,
|
|
9767
|
+
functionName: "redirectToInAppBrowser",
|
|
9768
|
+
getCore: () => {
|
|
9769
|
+
try {
|
|
9770
|
+
return getCore(getDefaultClient());
|
|
9771
|
+
} catch {
|
|
9772
|
+
return;
|
|
9773
|
+
}
|
|
9774
|
+
}
|
|
9775
|
+
});
|
|
9776
|
+
|
|
9445
9777
|
//#endregion
|
|
9446
9778
|
//#region src/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.ts
|
|
9447
9779
|
/**
|
|
@@ -10073,6 +10405,40 @@ const appendConnectionUriToDeeplink = ({ connectionUri, deeplinkUrl }) => {
|
|
|
10073
10405
|
return url.href;
|
|
10074
10406
|
};
|
|
10075
10407
|
|
|
10408
|
+
//#endregion
|
|
10409
|
+
//#region src/utils/getPreferredWalletDeepLink/getPreferredWalletDeepLink.ts
|
|
10410
|
+
/**
|
|
10411
|
+
* Picks the most appropriate deep link variant for the current platform.
|
|
10412
|
+
*
|
|
10413
|
+
* Mobile (Android, iOS, tablets) prefers `native` because the OS treats
|
|
10414
|
+
* custom URL schemes as first-class app links and gives the wallet a faster
|
|
10415
|
+
* round-trip back to the dApp. Desktop prefers `universal` because browsers
|
|
10416
|
+
* cannot resolve mobile-only custom schemes and need an `https://` link
|
|
10417
|
+
* that opens the wallet's web flow.
|
|
10418
|
+
*
|
|
10419
|
+
* In either case, the alternative is used as a fallback when the preferred
|
|
10420
|
+
* variant is missing. Returns `undefined` only when both variants are
|
|
10421
|
+
* absent.
|
|
10422
|
+
*
|
|
10423
|
+
* @example
|
|
10424
|
+
* ```ts
|
|
10425
|
+
* const deepLink = getPreferredWalletDeepLink({
|
|
10426
|
+
* deeplinks: wallet.deeplinks,
|
|
10427
|
+
* });
|
|
10428
|
+
* ```
|
|
10429
|
+
*
|
|
10430
|
+
* @param params.deeplinks - The deep link variants for a wallet (typically `WalletConnectCatalogWallet.deeplinks`).
|
|
10431
|
+
* @returns The preferred deep link URL, or `undefined` if neither variant is available.
|
|
10432
|
+
* @see appendConnectionUriToDeeplink
|
|
10433
|
+
* @see getConnectionUriDeeplink
|
|
10434
|
+
* @notInstrumented
|
|
10435
|
+
*/
|
|
10436
|
+
const getPreferredWalletDeepLink = ({ deeplinks }) => {
|
|
10437
|
+
const { native, universal } = deeplinks;
|
|
10438
|
+
if (isMobile()) return native ?? universal;
|
|
10439
|
+
return universal ?? native;
|
|
10440
|
+
};
|
|
10441
|
+
|
|
10076
10442
|
//#endregion
|
|
10077
10443
|
//#region src/utils/parseUserAgent/parseUserAgent.ts
|
|
10078
10444
|
const browserMatchers = [
|
|
@@ -10154,5 +10520,5 @@ const parseUserAgent = ({ userAgent }) => {
|
|
|
10154
10520
|
assertPackageVersion(name, version);
|
|
10155
10521
|
|
|
10156
10522
|
//#endregion
|
|
10157
|
-
export { BaseError, COINBASE_TRAVEL_RULE_FIELD_DESCRIPTIONS, CaptchaProviderEnum, CheckoutSessionTokenMissingError, ClientAlreadyInitializedError, CoinbaseBeneficiaryWalletType, CoinbaseIsSelfTransfer, CoinbaseTransferMfaFailedError, CoinbaseTransferMfaRequiredError, CoinbaseTravelRuleFieldName, CoinbaseTravelRuleRequiredError, DeeplinkConnectAndVerifyUnsupportedError, DeviceRegistrationIdentityMismatchError, FeeEstimationFailedError, FlowSessionTokenMissingError, GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES, InvalidDeviceRegistrationRedirectError, InvalidExternalAuthError, InvalidParamError, InvalidRedirectStorageStateError, InvalidSocialCallbackOriginError, JwtVerifiedCredentialFormatEnum, LinkCredentialError, MFAAction, MergeAccountsConfirmationError, MfaInvalidOtpError, MfaRateLimitedError, MissingRedirectStorageStateError, MissingSocialUrlParamError, MissingUserVerificationError, NetworkAddingUnavailableError, NetworkNotAddedError, NetworkSwitchingUnavailableError, NoAddressFoundError, NoNetworkProvidersError, NoPasskeyCredentialsFoundError, NoSmartWalletAccountSignerFoundError, NoWebAuthNSupportError, NotWaasWalletAccountError, ProviderEnum, SandboxMaximumThresholdReachedError, ScreeningNotRequiredError, SimulationFailedError, TokenScope, TokenSwapError, TransactionBroadcastError, UnauthorizedError, UnavailableInServerSideError, UnrecognizedNetworkError, UserCancelledSocialPopUpError, UserNotAuthenticatedError, UserRejectedError, WaasChainEnum, WaasLoadFailedError, WaasOnboardingIncompleteError, WaasRbacStaleRetryUnsafeError, WalletAccountAlreadyVerifiedError, WalletAccountNotSelectedError, WalletAlreadyLinkedToAnotherUserError, WalletProviderMethodUnavailableError, WalletScreeningBlockedError, __acknowledgeRecoveryCodes_wrapped as acknowledgeRecoveryCodes, addCoinbaseOnrampOrderEventListener, __addNetwork_wrapped as addNetwork, appendConnectionUriToDeeplink, assertWalletAccountSigningAvailability, assertWalletProviderMethodDefined, __attachCheckoutTransactionSource_wrapped as attachCheckoutTransactionSource, __attachFlowSource_wrapped as attachFlowSource, authenticateMfaRecoveryCode, authenticatePasskeyMFA, authenticateTotpMfaDevice, __authenticateWithSocial_wrapped as authenticateWithSocial, __broadcastCheckoutTransaction_wrapped as broadcastCheckoutTransaction, __broadcastFlow_wrapped as broadcastFlow, canConnectWithHardwareWallet, __cancelCheckoutTransaction_wrapped as cancelCheckoutTransaction, __cancelFlow_wrapped as cancelFlow, __checkStepUpAuth_wrapped as checkStepUpAuth, checkUserScopes, __claimYieldRewards_wrapped as claimYieldRewards, clearDeviceRegistrationRedirectParams, clearSocialRedirectParams, __completeDeviceRegistration_wrapped as completeDeviceRegistration, __completeSocialAuthentication_wrapped as completeSocialAuthentication, __completeSocialRedirect_wrapped as completeSocialRedirect, __confirmTransaction_wrapped as confirmTransaction, __connectAndVerifyWithWalletProvider_wrapped as connectAndVerifyWithWalletProvider, __connectWithWalletProvider_wrapped as connectWithWalletProvider, __consumeMfaToken_wrapped as consumeMfaToken, __createCheckoutTransaction_wrapped as createCheckoutTransaction, createCoinbaseExchangeTransfer, __createCoinbaseOnrampOrder_wrapped as createCoinbaseOnrampOrder, __createCryptoDotComPayment_wrapped as createCryptoDotComPayment, __createDynamicClient_wrapped as createDynamicClient, createKrakenExchangeTransfer, __createNewMfaRecoveryCodes_wrapped as createNewMfaRecoveryCodes, __deleteMfaDevice_wrapped as deleteMfaDevice, __deletePasskey_wrapped as deletePasskey, __deleteUser_wrapped as deleteUser, __depositToYieldVault_wrapped as depositToYieldVault, detectDeviceRegistrationRedirect, detectOAuthRedirect, detectSocialRedirectUrl, excludeInstalledFromCatalog, __executeSwapTransaction_wrapped as executeSwapTransaction, fetchProjectSettings, findMissingGoogleDriveBackupScopes, getActiveNetworkData, getActiveNetworkId, getAvailableWalletProvidersData, getBalance, getBalanceForAddress, getBalances, getCaptchaSettings, getCheckoutTransaction, getCheckoutTransactionQuote, getCoinbaseAccounts, getCoinbaseBuyUrl, getConnectedAddresses, getDefaultClient, getDeviceRegistrationTokenFromUrl, getElevatedAccessToken, getFlow, getFlowQuote, __getGoogleDriveBackupReadiness_wrapped as getGoogleDriveBackupReadiness, getInstallationLinkForCurrentPlatform, getKrakenAccounts, getKrakenWhitelistedAddresses, getMfaDevices, getMfaMethods, getMfaRecoveryCodes, getMissingVerificationForCoinbaseOnrampOrder, __getMoonPayCurrencies_wrapped as getMoonPayCurrencies, __getMoonPayUrl_wrapped as getMoonPayUrl, getMultichainBalances, getMultichainTokenBalances, getNativeBalance, getNetworksData, getOwnerWalletAccountForSmartWalletAccount, getPasskeys, getPrimaryWalletAccount, getRegisteredDevices, getSelectedWalletAccount, getSwapQuote, getSwapStatus, getTokenBalances, getTransactionHistory, getUserSocialAccounts, getWalletAccountAddressByType, getWalletAccountFromAddress, getWalletAccounts, getWalletConnectCatalog, getWalletConnectCatalogWalletByWalletProviderKey, getWalletOptionsCatalogue, getWalletProviderDataByKey, getYieldDetails, getYieldPosition, getYieldRewards, hasAllGoogleDriveBackupScopes, hasExtension, __initializeClient_wrapped as initializeClient, isAnyWalletAccountConnected, isCaptchaRequired, isDeeplinkWalletProvider, isDeviceRegistrationRequired, isExternalWalletScreeningEnabled, isHardwareWalletAccount, isInsufficientGoogleDriveScopesError, isMfaRequiredForAction, isMobile, isPendingRecoveryCodesAcknowledgment, isProgrammaticNetworkSwitchAvailable, isSignedIn, isUserMissingMfaAuth, isUserOnboardingComplete, isWalletAccountVerified, listYieldVaults, logout, matchWalletProvidersToCatalogGroup, mergeUserAccounts, offEvent, offWalletProviderEvent, onEvent, onWalletProviderEvent, onceEvent, parseUserAgent, __prepareCheckoutTransaction_wrapped as prepareCheckoutTransaction, __prepareFlowSigning_wrapped as prepareFlowSigning, __proveWalletAccountOwnership_wrapped as proveWalletAccountOwnership, __refreshAuth_wrapped as refreshAuth, __refreshUser_wrapped as refreshUser, __registerPasskey_wrapped as registerPasskey, __registerTotpMfaDevice_wrapped as registerTotpMfaDevice, __removeWalletAccount_wrapped as removeWalletAccount, __requestExternalAuthElevatedToken_wrapped as requestExternalAuthElevatedToken, requiresConversion, __revokeAllRegisteredDevices_wrapped as revokeAllRegisteredDevices, __revokeRegisteredDevice_wrapped as revokeRegisteredDevice, screenTransaction, __selectPrimaryWalletAccount_wrapped as selectPrimaryWalletAccount, __sendEmailOTP_wrapped as sendEmailOTP, __sendSmsOTP_wrapped as sendSmsOTP, __setCaptchaToken_wrapped as setCaptchaToken, __setDefaultMfaDevice_wrapped as setDefaultMfaDevice, __setInstrumentationEnabled_wrapped as setInstrumentationEnabled, __setSelectedWalletAccount_wrapped as setSelectedWalletAccount, __signInWithExternalJwt_wrapped as signInWithExternalJwt, __signInWithPasskey_wrapped as signInWithPasskey, __signInWithSocialPopUp_wrapped as signInWithSocialPopUp, __signInWithSocialRedirect_wrapped as signInWithSocialRedirect, __signMessage_wrapped as signMessage, __submitCheckoutTransaction_wrapped as submitCheckoutTransaction, __submitFlowTransaction_wrapped as submitFlowTransaction, supportedCountries, __switchActiveNetwork_wrapped as switchActiveNetwork, trackCheckoutTransaction, __transferAmount_wrapped as transferAmount, __transferWalletAccount_wrapped as transferWalletAccount, __unlinkSocialAccount_wrapped as unlinkSocialAccount, __updateUser_wrapped as updateUser, __verifyOTP_wrapped as verifyOTP, __verifyWalletAccount_wrapped as verifyWalletAccount, waitForClientInitialized, __withdrawFromYieldVault_wrapped as withdrawFromYieldVault };
|
|
10523
|
+
export { AmbiguousWalletChainError, BaseError, COINBASE_TRAVEL_RULE_FIELD_DESCRIPTIONS, CaptchaProviderEnum, CheckoutSessionTokenMissingError, ClientAlreadyInitializedError, CoinbaseBeneficiaryWalletType, CoinbaseIsSelfTransfer, CoinbaseTransferMfaFailedError, CoinbaseTransferMfaRequiredError, CoinbaseTravelRuleFieldName, CoinbaseTravelRuleRequiredError, DeeplinkConnectAndVerifyUnsupportedError, DeviceRegistrationIdentityMismatchError, FeeEstimationFailedError, FlowSessionTokenMissingError, GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES, InvalidDeviceRegistrationRedirectError, InvalidExternalAuthError, InvalidParamError, InvalidRedirectStorageStateError, InvalidSocialCallbackOriginError, JwtVerifiedCredentialFormatEnum, LinkCredentialError, MFAAction, MergeAccountsConfirmationError, MfaInvalidOtpError, MfaRateLimitedError, MissingRedirectStorageStateError, MissingSocialUrlParamError, MissingUserVerificationError, NetworkAddingUnavailableError, NetworkNotAddedError, NetworkSwitchingUnavailableError, NoAddressFoundError, NoConnectionOptionAvailableError, NoNetworkProvidersError, NoPasskeyCredentialsFoundError, NoSmartWalletAccountSignerFoundError, NoWebAuthNSupportError, NotWaasWalletAccountError, ProviderEnum, SandboxMaximumThresholdReachedError, ScreeningNotRequiredError, SimulationFailedError, TokenScope, TokenSwapError, TransactionBroadcastError, UnauthorizedError, UnavailableInServerSideError, UnrecognizedNetworkError, UserCancelledSocialPopUpError, UserNotAuthenticatedError, UserRejectedError, WaasChainEnum, WaasLoadFailedError, WaasOnboardingIncompleteError, WaasRbacStaleRetryUnsafeError, WalletAccountAlreadyVerifiedError, WalletAccountNotSelectedError, WalletAlreadyLinkedToAnotherUserError, WalletOptionNotFoundError, WalletProviderMethodUnavailableError, WalletScreeningBlockedError, __acknowledgeRecoveryCodes_wrapped as acknowledgeRecoveryCodes, addCoinbaseOnrampOrderEventListener, __addNetwork_wrapped as addNetwork, appendConnectionUriToDeeplink, assertWalletAccountSigningAvailability, assertWalletProviderMethodDefined, __attachCheckoutTransactionSource_wrapped as attachCheckoutTransactionSource, __attachFlowSource_wrapped as attachFlowSource, authenticateMfaRecoveryCode, authenticatePasskeyMFA, authenticateTotpMfaDevice, __authenticateWithSocial_wrapped as authenticateWithSocial, __broadcastCheckoutTransaction_wrapped as broadcastCheckoutTransaction, __broadcastFlow_wrapped as broadcastFlow, canConnectWithHardwareWallet, __cancelCheckoutTransaction_wrapped as cancelCheckoutTransaction, __cancelFlow_wrapped as cancelFlow, __checkStepUpAuth_wrapped as checkStepUpAuth, checkUserScopes, __claimYieldRewards_wrapped as claimYieldRewards, clearDeviceRegistrationRedirectParams, clearSocialRedirectParams, __completeDeviceRegistration_wrapped as completeDeviceRegistration, __completeSocialAuthentication_wrapped as completeSocialAuthentication, __completeSocialRedirect_wrapped as completeSocialRedirect, __confirmTransaction_wrapped as confirmTransaction, __connectAndVerifyWithWalletProvider_wrapped as connectAndVerifyWithWalletProvider, __connectWithWalletProvider_wrapped as connectWithWalletProvider, __consumeMfaToken_wrapped as consumeMfaToken, __createCheckoutTransaction_wrapped as createCheckoutTransaction, createCoinbaseExchangeTransfer, __createCoinbaseOnrampOrder_wrapped as createCoinbaseOnrampOrder, __createCryptoDotComPayment_wrapped as createCryptoDotComPayment, __createDynamicClient_wrapped as createDynamicClient, createKrakenExchangeTransfer, __createNewMfaRecoveryCodes_wrapped as createNewMfaRecoveryCodes, __deleteMfaDevice_wrapped as deleteMfaDevice, __deletePasskey_wrapped as deletePasskey, __deleteUser_wrapped as deleteUser, __depositToYieldVault_wrapped as depositToYieldVault, detectDeviceRegistrationRedirect, detectOAuthRedirect, detectSocialRedirectUrl, excludeInstalledFromCatalog, __executeSwapTransaction_wrapped as executeSwapTransaction, fetchProjectSettings, findMissingGoogleDriveBackupScopes, getActiveNetworkData, getActiveNetworkId, getAvailableWalletProvidersData, getBalance, getBalanceForAddress, getBalances, getCaptchaSettings, getCheckoutTransaction, getCheckoutTransactionQuote, getCoinbaseAccounts, getCoinbaseBuyUrl, getConnectedAddresses, getDefaultClient, getDeviceRegistrationTokenFromUrl, getElevatedAccessToken, getFlow, getFlowQuote, __getGoogleDriveBackupReadiness_wrapped as getGoogleDriveBackupReadiness, getInstallationLinkForCurrentPlatform, getKrakenAccounts, getKrakenWhitelistedAddresses, getMfaDevices, getMfaMethods, getMfaRecoveryCodes, getMissingVerificationForCoinbaseOnrampOrder, __getMoonPayCurrencies_wrapped as getMoonPayCurrencies, __getMoonPayUrl_wrapped as getMoonPayUrl, getMultichainBalances, getMultichainTokenBalances, getNativeBalance, getNetworksData, getOwnerWalletAccountForSmartWalletAccount, getPasskeys, getPreferredWalletDeepLink, getPrimaryWalletAccount, getRegisteredDevices, getSelectedWalletAccount, getSwapQuote, getSwapStatus, getTokenBalances, getTransactionHistory, getUserSocialAccounts, getWalletAccountAddressByType, getWalletAccountFromAddress, getWalletAccounts, getWalletConnectCatalog, getWalletConnectCatalogWalletByWalletProviderKey, getWalletOptionsCatalogue, getWalletProviderDataByKey, getYieldDetails, getYieldPosition, getYieldRewards, hasAllGoogleDriveBackupScopes, hasExtension, __initializeClient_wrapped as initializeClient, isAnyWalletAccountConnected, isCaptchaRequired, isDeeplinkWalletProvider, isDeviceRegistrationRequired, isExternalWalletScreeningEnabled, isHardwareWalletAccount, isInsufficientGoogleDriveScopesError, isMfaRequiredForAction, isMobile, isPendingRecoveryCodesAcknowledgment, isProgrammaticNetworkSwitchAvailable, isSignedIn, isUserMissingMfaAuth, isUserOnboardingComplete, isWalletAccountVerified, listYieldVaults, logout, matchWalletProvidersToCatalogGroup, mergeUserAccounts, offEvent, offWalletProviderEvent, onEvent, onWalletProviderEvent, onceEvent, parseUserAgent, __prepareCheckoutTransaction_wrapped as prepareCheckoutTransaction, __prepareFlowSigning_wrapped as prepareFlowSigning, __proveWalletAccountOwnership_wrapped as proveWalletAccountOwnership, __redirectToInAppBrowser_wrapped as redirectToInAppBrowser, __refreshAuth_wrapped as refreshAuth, __refreshUser_wrapped as refreshUser, __registerPasskey_wrapped as registerPasskey, __registerTotpMfaDevice_wrapped as registerTotpMfaDevice, __removeWalletAccount_wrapped as removeWalletAccount, __requestExternalAuthElevatedToken_wrapped as requestExternalAuthElevatedToken, requiresConversion, __revokeAllRegisteredDevices_wrapped as revokeAllRegisteredDevices, __revokeRegisteredDevice_wrapped as revokeRegisteredDevice, screenTransaction, __selectPrimaryWalletAccount_wrapped as selectPrimaryWalletAccount, __sendEmailOTP_wrapped as sendEmailOTP, __sendSmsOTP_wrapped as sendSmsOTP, __setCaptchaToken_wrapped as setCaptchaToken, __setDefaultMfaDevice_wrapped as setDefaultMfaDevice, __setInstrumentationEnabled_wrapped as setInstrumentationEnabled, __setSelectedWalletAccount_wrapped as setSelectedWalletAccount, __signInWithExternalJwt_wrapped as signInWithExternalJwt, __signInWithPasskey_wrapped as signInWithPasskey, __signInWithSocialPopUp_wrapped as signInWithSocialPopUp, __signInWithSocialRedirect_wrapped as signInWithSocialRedirect, __signMessage_wrapped as signMessage, __submitCheckoutTransaction_wrapped as submitCheckoutTransaction, __submitFlowTransaction_wrapped as submitFlowTransaction, supportedCountries, __switchActiveNetwork_wrapped as switchActiveNetwork, trackCheckoutTransaction, __transferAmount_wrapped as transferAmount, __transferWalletAccount_wrapped as transferWalletAccount, __unlinkSocialAccount_wrapped as unlinkSocialAccount, __updateUser_wrapped as updateUser, __verifyOTP_wrapped as verifyOTP, __verifyWalletAccount_wrapped as verifyWalletAccount, waitForClientInitialized, __withdrawFromYieldVault_wrapped as withdrawFromYieldVault };
|
|
10158
10524
|
//# sourceMappingURL=index.esm.js.map
|