@dynamic-labs-sdk/client 1.12.2 → 1.14.0
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/{InvalidParamError-DbUJgYDE.native.esm.js → InvalidParamError-BKr8fFc1.native.esm.js} +1081 -1091
- package/dist/InvalidParamError-BKr8fFc1.native.esm.js.map +1 -0
- package/dist/{InvalidParamError-DDdAeFXE.cjs → InvalidParamError-Cs4ZMEj4.cjs} +823 -833
- package/dist/InvalidParamError-Cs4ZMEj4.cjs.map +1 -0
- package/dist/{InvalidParamError-B0nAZ6Ei.esm.js → InvalidParamError-DZjc7Tjc.esm.js} +912 -922
- package/dist/InvalidParamError-DZjc7Tjc.esm.js.map +1 -0
- package/dist/client/core/createCore/createCore.d.ts +1 -1
- package/dist/client/core/createCore/getInitialState.d.ts +1 -1
- package/dist/client/core/getCore/getCore.d.ts +1 -1
- package/dist/client/core/getCore/getCore.d.ts.map +1 -1
- package/dist/client/defaultClient/defaultClient.d.ts +2 -2
- package/dist/client/defaultClient/defaultClient.d.ts.map +1 -1
- package/dist/core.cjs +24 -24
- package/dist/core.cjs.map +1 -1
- package/dist/core.esm.js +26 -26
- package/dist/core.esm.js.map +1 -1
- package/dist/core.native.esm.js +25 -25
- package/dist/core.native.esm.js.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-1j3BPA22.cjs → getNetworkProviderFromNetworkId-CdCEFEgT.cjs} +45 -45
- package/dist/getNetworkProviderFromNetworkId-CdCEFEgT.cjs.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-DaMxnWPo.esm.js → getNetworkProviderFromNetworkId-ChFA088e.esm.js} +48 -48
- package/dist/getNetworkProviderFromNetworkId-ChFA088e.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-CMBk4NzR.native.esm.js → getNetworkProviderFromNetworkId-DZkq74O7.native.esm.js} +51 -51
- package/dist/getNetworkProviderFromNetworkId-DZkq74O7.native.esm.js.map +1 -0
- package/dist/{getSignedSessionId-BU81jCyQ.cjs → getSignedSessionId-DceZVits.cjs} +7 -7
- package/dist/getSignedSessionId-DceZVits.cjs.map +1 -0
- package/dist/{getSignedSessionId-DPj38qtY.native.esm.js → getSignedSessionId-DmDcWkqB.native.esm.js} +7 -7
- package/dist/getSignedSessionId-DmDcWkqB.native.esm.js.map +1 -0
- package/dist/{getSignedSessionId-BRklPjP0.esm.js → getSignedSessionId-DrrvGNcG.esm.js} +7 -7
- package/dist/getSignedSessionId-DrrvGNcG.esm.js.map +1 -0
- package/dist/{getWaasWalletProviderFromWalletAccount-JN5ZC71J.esm.js → getWaasWalletProviderFromWalletAccount-B_8slAdm.esm.js} +4 -4
- package/dist/getWaasWalletProviderFromWalletAccount-B_8slAdm.esm.js.map +1 -0
- package/dist/{getWaasWalletProviderFromWalletAccount-BhgXIVZM.native.esm.js → getWaasWalletProviderFromWalletAccount-C2GdfqUr.native.esm.js} +4 -4
- package/dist/getWaasWalletProviderFromWalletAccount-C2GdfqUr.native.esm.js.map +1 -0
- package/dist/{getWaasWalletProviderFromWalletAccount-aRoo7mw8.cjs → getWaasWalletProviderFromWalletAccount-CKZIsFWL.cjs} +4 -4
- package/dist/getWaasWalletProviderFromWalletAccount-CKZIsFWL.cjs.map +1 -0
- package/dist/{getWalletProviderByKey-BKRul8sp.native.esm.js → getWalletProviderByKey-BhisAyZg.native.esm.js} +26 -26
- package/dist/getWalletProviderByKey-BhisAyZg.native.esm.js.map +1 -0
- package/dist/{getWalletProviderByKey-C-HHI7L8.esm.js → getWalletProviderByKey-DWYF9IxH.esm.js} +15 -15
- package/dist/getWalletProviderByKey-DWYF9IxH.esm.js.map +1 -0
- package/dist/{getWalletProviderByKey-z1nf15R8.cjs → getWalletProviderByKey-OD65GUWG.cjs} +16 -16
- package/dist/getWalletProviderByKey-OD65GUWG.cjs.map +1 -0
- package/dist/index.cjs +205 -192
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +208 -195
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +203 -190
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isDynamicWaasEnabled-DDbRfcN3.cjs → isDynamicWaasEnabled-C90E53x1.cjs} +4 -4
- package/dist/{isDynamicWaasEnabled-DDbRfcN3.cjs.map → isDynamicWaasEnabled-C90E53x1.cjs.map} +1 -1
- package/dist/{isDynamicWaasEnabled-DvC45F05.esm.js → isDynamicWaasEnabled-C9gQ9M80.esm.js} +3 -3
- package/dist/{isDynamicWaasEnabled-DvC45F05.esm.js.map → isDynamicWaasEnabled-C9gQ9M80.esm.js.map} +1 -1
- package/dist/{isDynamicWaasEnabled-9I4iE0Ko.native.esm.js → isDynamicWaasEnabled-rRFvljev.native.esm.js} +3 -3
- package/dist/{isDynamicWaasEnabled-9I4iE0Ko.native.esm.js.map → isDynamicWaasEnabled-rRFvljev.native.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-B8d2MBRx.native.esm.js → isMfaRequiredForAction-C1KaU-XS.native.esm.js} +4 -4
- package/dist/{isMfaRequiredForAction-B8d2MBRx.native.esm.js.map → isMfaRequiredForAction-C1KaU-XS.native.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-BAqo9eBq.esm.js → isMfaRequiredForAction-CTQzzCMt.esm.js} +11 -11
- package/dist/isMfaRequiredForAction-CTQzzCMt.esm.js.map +1 -0
- package/dist/{isMfaRequiredForAction-YGaK8XRO.cjs → isMfaRequiredForAction-DFowphoV.cjs} +11 -11
- package/dist/isMfaRequiredForAction-DFowphoV.cjs.map +1 -0
- package/dist/{isUserOnboardingComplete-Bo9grSze.cjs → isUserOnboardingComplete-77jTT2BB.cjs} +8 -8
- package/dist/isUserOnboardingComplete-77jTT2BB.cjs.map +1 -0
- package/dist/{isUserOnboardingComplete-BT_SR4m_.esm.js → isUserOnboardingComplete-D1gGc77y.esm.js} +7 -7
- package/dist/isUserOnboardingComplete-D1gGc77y.esm.js.map +1 -0
- package/dist/{isUserOnboardingComplete-CVHzzTtG.native.esm.js → isUserOnboardingComplete-DfDNapVu.native.esm.js} +7 -7
- package/dist/isUserOnboardingComplete-DfDNapVu.native.esm.js.map +1 -0
- package/dist/modules/apiClient/createApiClient.d.ts +1 -1
- package/dist/modules/apiClient/utils/clientErrorMapper/clientErrorMapper.d.ts +1 -1
- package/dist/modules/apiClient/utils/convertToApiErrorMiddleware/convertToApiErrorMiddleware.d.ts +1 -1
- package/dist/modules/apiClient/utils/deviceSignatureHeadersMiddleware/createDeviceSignatureHeadersMiddleware.d.ts +1 -1
- package/dist/modules/apiClient/utils/deviceSignatureHeadersMiddleware/createDeviceSignatureHeadersMiddleware.d.ts.map +1 -1
- package/dist/modules/apiClient/utils/unauthorizedMiddleware/createUnauthorizedMiddleware.d.ts +1 -1
- package/dist/modules/apiClient/utils/unauthorizedMiddleware/createUnauthorizedMiddleware.d.ts.map +1 -1
- package/dist/modules/auth/createVisit/createVisit.d.ts +1 -1
- package/dist/modules/auth/createVisit/createVisit.d.ts.map +1 -1
- package/dist/modules/auth/decodeJwt/decodeJwt.d.ts +1 -1
- package/dist/modules/auth/extractSessionId/extractSessionId.d.ts +1 -1
- package/dist/modules/auth/getElevatedAccessToken/getElevatedAccessToken.d.ts +2 -3
- package/dist/modules/auth/getElevatedAccessToken/getElevatedAccessToken.d.ts.map +1 -1
- package/dist/modules/auth/initializeAuth/initializeAuth.d.ts +1 -1
- package/dist/modules/auth/initializeAuth/setLongTimeout/setLongTimeout.d.ts +1 -1
- package/dist/modules/auth/isSignedIn/isSignedIn.d.ts +1 -1
- package/dist/modules/auth/logout/logout.d.ts +1 -1
- package/dist/modules/auth/passkeys/getPasskeyAuthenticationOptions/getPasskeyAuthenticationOptions.d.ts +1 -1
- package/dist/modules/auth/passkeys/getPasskeyAuthenticationOptions/getPasskeyAuthenticationOptions.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/getPasskeyAuthenticationSignInOptions/getPasskeyAuthenticationSignInOptions.d.ts +1 -1
- package/dist/modules/auth/passkeys/getPasskeyAuthenticationSignInOptions/getPasskeyAuthenticationSignInOptions.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/getPasskeyRegistrationOptions/getPasskeyRegistrationOptions.d.ts +1 -1
- package/dist/modules/auth/passkeys/getPasskeyRegistrationOptions/getPasskeyRegistrationOptions.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/getPasskeys/getPasskeys.d.ts +1 -1
- package/dist/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.d.ts +1 -1
- package/dist/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.d.ts +1 -1
- package/dist/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/serverSigninPasskey/serverSigninPasskey.d.ts +1 -1
- package/dist/modules/auth/passkeys/serverSigninPasskey/serverSigninPasskey.d.ts.map +1 -1
- package/dist/modules/auth/social/getUserSocialAccounts/getUserSocialAccounts.d.ts +1 -1
- package/dist/modules/auth/social/oauth/detectOAuthRedirect/detectOAuthRedirect.d.ts +1 -1
- package/dist/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.d.ts +1 -1
- package/dist/modules/auth/social/oauth/processSocialCallback/processSocialCallback.d.ts +1 -1
- package/dist/modules/auth/social/oauth/processSocialCallback/processSocialCallback.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/addOAuthUrlParams/addOAuthUrlParams.d.ts +2 -2
- package/dist/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/buildOAuthUrl.d.ts +2 -2
- package/dist/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/getOAuthBaseUrl/getOAuthBaseUrl.d.ts +1 -1
- package/dist/modules/auth/social/removeDynamicOauthParamsFromUrl/removeDynamicOauthParamsFromUrl.d.ts +1 -1
- package/dist/modules/auth/social/removeDynamicOauthParamsFromUrl/removeDynamicOauthParamsFromUrl.d.ts.map +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/checkAndRaiseWalletAccountsChangedEvent/checkAndRaiseWalletAccountsChangedEvent.d.ts +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/checkAndRaiseWalletAccountsChangedEvent/checkAndRaiseWalletAccountsChangedEvent.d.ts.map +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/elevatedAccessTokens/normalizeScopes/normalizeScopes.d.ts +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/elevatedAccessTokens/parseElevatedAccessToken/parseElevatedAccessToken.d.ts +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/elevatedAccessTokens/upsertElevatedAccessToken/upsertElevatedAccessToken.d.ts +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.d.ts +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.d.ts.map +1 -1
- package/dist/modules/balances/getBalances/getBalances.d.ts +1 -1
- package/dist/modules/balances/getMultichainBalances/getMultichainBalances.d.ts +1 -1
- package/dist/modules/balances/getMultichainTokenBalances/getMultichainTokenBalances.d.ts +1 -1
- package/dist/modules/balances/getTokenBalances/getTokenBalances.d.ts +2 -2
- package/dist/modules/captcha/consumeCaptchaToken/consumeCaptchaToken.d.ts +1 -1
- package/dist/modules/captcha/isCaptchaRequired/isCaptchaRequired.d.ts +1 -1
- package/dist/modules/captcha/isCaptchaRequired/isCaptchaRequired.d.ts.map +1 -1
- package/dist/modules/checkout/getCheckoutTransaction/getCheckoutTransaction.d.ts +1 -1
- package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts +1 -1
- package/dist/modules/checkout/getCheckouts/getCheckouts.d.ts +1 -1
- package/dist/modules/checkout/getCheckouts/getCheckouts.d.ts.map +1 -1
- package/dist/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.d.ts +1 -1
- package/dist/modules/checkout/utils/clearCheckoutSessionToken/clearCheckoutSessionToken.d.ts +1 -1
- package/dist/modules/checkout/utils/createCheckoutApiClient/createCheckoutApiClient.d.ts +1 -1
- package/dist/modules/checkout/utils/createCheckoutApiClient/createCheckoutApiClient.d.ts.map +1 -1
- package/dist/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.d.ts +1 -1
- package/dist/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.d.ts.map +1 -1
- package/dist/modules/checkout/utils/createCheckoutTransactionChannelSchema/createCheckoutTransactionChannelSchema.d.ts +1 -1
- package/dist/modules/checkout/utils/requiresConversion/requiresConversion.d.ts +1 -1
- package/dist/modules/checkout/utils/subscribeToCheckoutTransaction/subscribeToCheckoutTransaction.d.ts +1 -1
- package/dist/modules/checkout/utils/withCheckoutSessionTokenCleanupOn401/withCheckoutSessionTokenCleanupOn401.d.ts +1 -1
- package/dist/modules/clientEvents/clientEvents.d.ts +4 -4
- package/dist/modules/crossTabEventSync/setupCrossTabEventSync/setupCrossTabEventSync.d.ts +1 -1
- package/dist/modules/deviceRegistration/detectDeviceRegistrationRedirect/detectDeviceRegistrationRedirect.d.ts +1 -1
- package/dist/modules/deviceRegistration/getDeviceRegistrationTokenFromUrl/getDeviceRegistrationTokenFromUrl.d.ts +1 -1
- package/dist/modules/deviceRegistration/getDeviceSigner/getDeviceSigner.d.ts +1 -1
- package/dist/modules/deviceRegistration/getDeviceSigner/getDeviceSigner.d.ts.map +1 -1
- package/dist/modules/deviceRegistration/getDeviceSigner/getOrCreateEnvironmentDeviceSigningKeys/getOrCreateEnvironmentDeviceSigningKeys.d.ts +1 -1
- package/dist/modules/deviceRegistration/getHeadersForNonceSignedByDeviceSigners/getHeadersForNonceSignedByDeviceSigners.d.ts +1 -1
- package/dist/modules/deviceRegistration/getHeadersForNonceSignedByDeviceSigners/getHeadersForNonceSignedByDeviceSigners.d.ts.map +1 -1
- package/dist/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.d.ts +1 -1
- package/dist/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.d.ts.map +1 -1
- package/dist/modules/deviceRegistration/isDeviceRegistrationRequired/isDeviceRegistrationRequired.d.ts +1 -1
- package/dist/modules/extension/hasExtension/hasExtension.d.ts +1 -1
- package/dist/modules/extension/registerExtension/registerExtension.d.ts +1 -1
- package/dist/modules/flow/attachFlowSource/attachFlowSource.d.ts +12 -1
- package/dist/modules/flow/attachFlowSource/attachFlowSource.d.ts.map +1 -1
- package/dist/modules/flow/getFlow/getFlow.d.ts +1 -1
- package/dist/modules/flow/getFlowQuote/getFlowQuote.d.ts +1 -1
- package/dist/modules/flow/utils/clearFlowSessionToken/clearFlowSessionToken.d.ts +1 -1
- package/dist/modules/flow/utils/createFlowApiClient/createFlowApiClient.d.ts +1 -1
- package/dist/modules/flow/utils/createFlowApiClient/createFlowApiClient.d.ts.map +1 -1
- package/dist/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.d.ts +1 -1
- package/dist/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.d.ts.map +1 -1
- package/dist/modules/flow/utils/withFlowSessionTokenCleanupOn401/withFlowSessionTokenCleanupOn401.d.ts +1 -1
- package/dist/modules/funding/coinbase/addCoinbaseOnrampOrderEventListener/addCoinbaseOnrampOrderEventListener.d.ts +1 -1
- package/dist/modules/funding/coinbase/getCoinbaseBuyUrl/getCoinbaseBuyUrl.d.ts +1 -1
- package/dist/modules/funding/coinbase/getMissingVerificationForCoinbaseOnrampOrder/getMissingVerificationForCoinbaseOnrampOrder.d.ts +1 -1
- package/dist/modules/funding/coinbase/utils/validateUserCredentialsForCoinbaseOnrampOrder/validateUserCredentialsForCoinbaseOnrampOrder.d.ts +1 -1
- package/dist/modules/funding/coinbase/utils/validateUserCredentialsForCoinbaseOnrampOrder/validateUserCredentialsForCoinbaseOnrampOrder.d.ts.map +1 -1
- package/dist/modules/funding/kraken/createKrakenExchangeTransfer/createKrakenExchangeTransfer.d.ts +1 -1
- package/dist/modules/funding/kraken/getKrakenAccounts/getKrakenAccounts.d.ts +2 -2
- package/dist/modules/funding/kraken/getKrakenWhitelistedAddresses/getKrakenWhitelistedAddresses.d.ts +1 -1
- package/dist/modules/funding/moonpay/getMoonPayUrl/getMoonPayUrl.d.ts +4 -0
- package/dist/modules/funding/moonpay/getMoonPayUrl/getMoonPayUrl.d.ts.map +1 -1
- package/dist/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.d.ts +1 -1
- package/dist/modules/initializeClient/waitForProjectSettings/waitForProjectSettings.d.ts +1 -1
- package/dist/modules/initializeClient/waitForProjectSettings/waitForProjectSettings.d.ts.map +1 -1
- package/dist/modules/keychainMigration/migrateSessionKeyToKeychain/migrateSessionKeyToKeychain.d.ts +1 -1
- package/dist/modules/legacyWalletBook/excludeInstalledFromCatalog/collectInstalledGroupIds/collectInstalledGroupIds.d.ts +1 -1
- package/dist/modules/legacyWalletBook/excludeInstalledFromCatalog/excludeInstalledFromCatalog.d.ts +1 -1
- package/dist/modules/legacyWalletBook/fetchLegacyWalletBook/fetchLegacyWalletBook.d.ts +1 -1
- package/dist/modules/legacyWalletBook/fetchLegacyWalletBook/fetchWithTimeout/fetchWithTimeout.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getSpriteUrl/getSpriteUrl.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletBookCdnUrl/getWalletBookCdnUrl.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getChainFromWalletSchema/getChainFromWalletSchema.d.ts +2 -2
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getChainsFromWalletSchema/getChainsFromWalletSchema.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getWalletConnectCatalog.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/shouldFilterWalletForWalletConnect/shouldFilterWalletForWalletConnect.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/transformGroup.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformWallet/transformWallet.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformWalletBook/transformWalletBook.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalogWalletByWalletProviderKey/getWalletConnectCatalogWalletByWalletProviderKey.d.ts +1 -1
- package/dist/modules/legacyWalletBook/hasUsableDeeplink/hasUsableDeeplink.d.ts +1 -1
- package/dist/modules/legacyWalletBook/matchWalletProvidersToCatalogGroup/matchWalletProvidersToCatalogGroup.d.ts +1 -1
- package/dist/modules/legacyWalletBook/shouldFilterWallet/shouldFilterWallet.d.ts +2 -2
- package/dist/modules/mfa/authenticateMfaRecoveryCode/authenticateMfaRecoveryCode.d.ts +1 -1
- package/dist/modules/mfa/authenticatePasskeyMFA/authenticatePasskeyMFA.d.ts +1 -1
- package/dist/modules/mfa/authenticateTotpMfaDevice/authenticateTotpMfaDevice.d.ts +1 -1
- package/dist/modules/mfa/consumeMfaTokenIfRequiredForAction/consumeMfaTokenIfRequiredForAction.d.ts +1 -1
- package/dist/modules/mfa/consumeMfaTokenIfRequiredForAction/consumeMfaTokenIfRequiredForAction.d.ts.map +1 -1
- package/dist/modules/mfa/getMfaDevices/getMfaDevices.d.ts +1 -1
- package/dist/modules/mfa/getMfaMethods/getMfaMethods.d.ts +1 -1
- package/dist/modules/mfa/getMfaRecoveryCodes/getMfaRecoveryCodes.d.ts +1 -1
- package/dist/modules/mfa/isMfaRequiredForAction/isMfaRequiredForAction.d.ts +1 -1
- package/dist/modules/mfa/isPendingRecoveryCodesAcknowledgment/isPendingRecoveryCodesAcknowledgment.d.ts +1 -1
- package/dist/modules/mfa/isUserMissingMfaAuth/isUserMissingMfaAuth.d.ts +1 -1
- package/dist/modules/mfa/registerTotpMfaDevice/registerTotpMfaDevice.d.ts +4 -1
- package/dist/modules/mfa/registerTotpMfaDevice/registerTotpMfaDevice.d.ts.map +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.d.ts +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.d.ts.map +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTPForUserUpdate/verifyOTPForUserUpdate.d.ts +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTPForUserUpdate/verifyOTPForUserUpdate.d.ts.map +1 -1
- package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts +1 -1
- package/dist/modules/projectSettings/isCookieEnabled/isCookieEnabled.d.ts +1 -1
- package/dist/modules/screenshotProtection/setScreenshotProtection/setScreenshotProtection.d.ts +1 -1
- package/dist/modules/sessionKeys/generateNonceSignature/generateNonceSignature.d.ts +1 -1
- package/dist/modules/sessionKeys/generateNonceSignature/generateNonceSignature.d.ts.map +1 -1
- package/dist/modules/sessionKeys/generateSessionKeys/generateSessionKeys.d.ts +1 -1
- package/dist/modules/sessionKeys/generateSessionKeys/generateSessionKeys.d.ts.map +1 -1
- package/dist/modules/sessionKeys/generateSessionSignature/generateSessionSignature.d.ts +1 -1
- package/dist/modules/sessionKeys/generateSessionSignature/generateSessionSignature.d.ts.map +1 -1
- package/dist/modules/sessionKeys/getSessionKeys/getSessionKeys.d.ts +1 -1
- package/dist/modules/sessionKeys/getSessionKeys/getSessionKeys.d.ts.map +1 -1
- package/dist/modules/sessionKeys/getSignedSessionId/getSignedSessionId.d.ts +1 -1
- package/dist/modules/sessionKeys/getSignedSessionId/getSignedSessionId.d.ts.map +1 -1
- package/dist/modules/state/raiseStateEvents/raiseStateEvents.d.ts +1 -1
- package/dist/modules/state/raiseStateEvents/raiseStateEvents.d.ts.map +1 -1
- package/dist/modules/storageSync/hydrateStateWithStorage/hydrateStateWithStorage.d.ts +1 -1
- package/dist/modules/storageSync/hydrateStateWithStorage/hydrateStateWithStorage.d.ts.map +1 -1
- package/dist/modules/storageSync/initializeStorageSync.d.ts +1 -1
- package/dist/modules/storageSync/initializeStorageSync.d.ts.map +1 -1
- package/dist/modules/storageSync/syncStateWithStorage/syncStateWithStorage.d.ts +1 -1
- package/dist/modules/storageSync/syncStateWithStorage/syncStateWithStorage.d.ts.map +1 -1
- package/dist/modules/swap/getSwapQuote/getSwapQuote.d.ts +1 -1
- package/dist/modules/swap/getSwapStatus/getSwapStatus.d.ts +1 -1
- package/dist/modules/swap/utils/ensureCorrectActiveNetwork/ensureCorrectActiveNetwork.d.ts +1 -1
- package/dist/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.d.ts +1 -1
- package/dist/modules/waas/backupWaasKeySharesToGoogleDrive/backupWaasKeySharesToGoogleDrive.d.ts +1 -1
- package/dist/modules/waas/createWaasClient/createNativeWaasSDKContainer.d.ts +1 -1
- package/dist/modules/waas/createWaasClient/createWaasClient.d.ts +1 -1
- package/dist/modules/waas/createWaasClient/createWaasClient.d.ts.map +1 -1
- package/dist/modules/waas/createWaasClient/createWaasSDKContainer.d.ts +1 -1
- package/dist/modules/waas/createWaasClient/translateNativeOpenError.d.ts +1 -1
- package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts +1 -1
- package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
- package/dist/modules/waas/createWaasWalletAccounts/createWaasWalletAccounts.d.ts +2 -2
- package/dist/modules/waas/delegateWaasKeyShares/delegateWaasKeyShares.d.ts +1 -1
- package/dist/modules/waas/exportWaasClientKeyshares/exportWaasClientKeyshares.d.ts +1 -1
- package/dist/modules/waas/exportWaasPrivateKey/exportWaasPrivateKey.d.ts +1 -1
- package/dist/modules/waas/exportWaasPrivateKeyToContainer/exportWaasPrivateKeyToContainer.d.ts +1 -1
- package/dist/modules/waas/findWaasWalletProviderByChain/findWaasWalletProviderByChain.d.ts +1 -1
- package/dist/modules/waas/findWaasWalletProviderByChain/findWaasWalletProviderByChain.d.ts.map +1 -1
- package/dist/modules/waas/getAllUserWaasAddressesForChain/getAllUserWaasAddressesForChain.d.ts +1 -1
- package/dist/modules/waas/getAllUserWaasAddressesForChain/getAllUserWaasAddressesForChain.d.ts.map +1 -1
- package/dist/modules/waas/getChainsMissingWaasWalletAccounts/getChainsMissingWaasWalletAccounts.d.ts +1 -1
- package/dist/modules/waas/getWaasChainNameFromChain/getWaasChainNameFromChain.d.ts +1 -1
- package/dist/modules/waas/getWaasChainNameFromChain/getWaasChainNameFromChain.d.ts.map +1 -1
- package/dist/modules/waas/getWaasWalletProviderByChain/getWaasWalletProviderByChain.d.ts +1 -1
- package/dist/modules/waas/getWaasWalletProviderByChain/getWaasWalletProviderByChain.d.ts.map +1 -1
- package/dist/modules/waas/getWaasWalletProviderFromWalletAccount/getWaasWalletProviderFromWalletAccount.d.ts +1 -1
- package/dist/modules/waas/getWaasWalletProviderFromWalletAccount/getWaasWalletProviderFromWalletAccount.d.ts.map +1 -1
- package/dist/modules/waas/getWalletRecoveryState/getWalletRecoveryState.d.ts +1 -1
- package/dist/modules/waas/hasDelegatedAccess/hasDelegatedAccess.d.ts +1 -1
- package/dist/modules/waas/importWaasPrivateKey/importWaasPrivateKey.d.ts +1 -1
- package/dist/modules/waas/initializeWaasClientsForEagerRecovery/initializeWaasClientsForEagerRecovery.d.ts +1 -1
- package/dist/modules/waas/isDynamicWaasEnabled/isDynamicWaasEnabled.d.ts +1 -1
- package/dist/modules/waas/isPasswordRequiredForWaasWallets/isPasswordRequiredForWaasWallets.d.ts +1 -1
- package/dist/modules/waas/isWaasWalletAccount/isWaasWalletAccount.d.ts +1 -1
- package/dist/modules/waas/isWaasWalletProvider/isWaasWalletProvider.d.ts +1 -1
- package/dist/modules/waas/isWaasWalletProvider/isWaasWalletProvider.d.ts.map +1 -1
- package/dist/modules/waas/isWalletCreationRequirement/isWalletCreationRequirement.d.ts +1 -1
- package/dist/modules/waas/normalizeWalletRequirements/normalizeWalletRequirements.d.ts +1 -1
- package/dist/modules/waas/preconnectWaasIframe/preconnectWaasIframe.d.ts +1 -1
- package/dist/modules/waas/refreshWaasWalletAccountShares/refreshWaasWalletAccountShares.d.ts +1 -1
- package/dist/modules/waas/revokeWaasDelegation/revokeWaasDelegation.d.ts +1 -1
- package/dist/modules/waas/setWaasWalletAccountPassword/setWaasWalletAccountPassword.d.ts +1 -1
- package/dist/modules/waas/shouldAutoCreateWalletForChain/shouldAutoCreateWalletForChain.d.ts +1 -1
- package/dist/modules/waas/unlockWallet/unlockWallet.d.ts +1 -1
- package/dist/modules/waas/updateWaasPassword/updateWaasPassword.d.ts +1 -1
- package/dist/modules/walletBackup/googleDrive/findMissingGoogleDriveBackupScopes/findMissingGoogleDriveBackupScopes.d.ts +1 -1
- package/dist/modules/walletBackup/googleDrive/hasAllGoogleDriveBackupScopes/hasAllGoogleDriveBackupScopes.d.ts +1 -1
- package/dist/modules/walletBackup/googleDrive/isInsufficientGoogleDriveScopesError/isInsufficientGoogleDriveScopesError.d.ts +1 -1
- package/dist/modules/walletBackup/googleDrive/utils/fetchGoogleDriveOauthAccess/fetchGoogleDriveOauthAccess.d.ts +1 -1
- package/dist/modules/walletBackup/googleDrive/utils/findGoogleOauthAccountId/findGoogleOauthAccountId.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildInAppBrowserOptions/buildInAppBrowserOptions.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildInAppBrowserOptions/getInAppBrowserUrl/getInAppBrowserUrl.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildInstallationUrls/buildInstallationUrls.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildInstallationUrlsByWalletOptionKey/buildInstallationUrlsByWalletOptionKey.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildMetaMaskSdkUriOptions/buildMetaMaskSdkUriOptions.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildWalletOption/buildWalletOption.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildWithWalletProviderOptions/buildWithWalletProviderOptions.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/classifyWithWalletProviderSource/classifyWithWalletProviderSource.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/compareByRelevance/compareByRelevance.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/findWalletOptionKeyForProviderKey/findByNameMatch/findByNameMatch.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/findWalletOptionKeyForProviderKey/findWalletOptionKeyForProviderKey.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/findWalletOptionKeyForProviderKey/resolveWalletOptionKey/resolveWalletOptionKey.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/getConnectionOptionPriority/getConnectionOptionPriority.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/getInstallationLinkForCurrentPlatform/getInstallationLinkForCurrentPlatform.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/getPriorityIndex/getPriorityIndex.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/groupOptionsByWalletOption/groupOptionsByWalletOption.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/hasAnyConnectionOption/hasAnyConnectionOption.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/hasInstalledProvider/hasInstalledProvider.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/normalizeWalletDisplayName/normalizeWalletDisplayName.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/resolveWalletBookWalletOptionKey/resolveWalletBookWalletOptionKey.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/sortConnectionOptions/sortConnectionOptions.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/sortWalletOptions/sortWalletOptions.d.ts +1 -1
- package/dist/modules/wallets/assertWalletAccountSigningAvailability/assertWalletAccountSigningAvailability.d.ts +1 -1
- package/dist/modules/wallets/destroyWalletProviders/destroyWalletProviders.d.ts +1 -1
- package/dist/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/emitWalletAccountsChangedEvent/emitWalletAccountsChangedEvent.d.ts +1 -1
- package/dist/modules/wallets/getAvailableWalletProvidersData/getAvailableWalletProvidersData.d.ts +1 -1
- package/dist/modules/wallets/getConnectedAddresses/getConnectedAddresses.d.ts +1 -1
- package/dist/modules/wallets/getOwnerWalletAccountForSmartWalletAccount/getOwnerWalletAccountForSmartWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/getOwnerWalletAccountForSmartWalletAccount/getOwnerWalletAccountForSmartWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletAccountAddressByType/getWalletAccountAddressByType.d.ts +1 -1
- package/dist/modules/wallets/getWalletAccountAddressByType/getWalletAccountAddressByType.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletAccounts/getWalletAccounts.d.ts +1 -1
- package/dist/modules/wallets/getWalletAccounts/getWalletAccountsFromState/getWalletAccountsFromState.d.ts +1 -1
- package/dist/modules/wallets/getWalletAccounts/getWalletAccountsFromState/getWalletAccountsFromState.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.d.ts +1 -1
- package/dist/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletProviderDataByKey/getWalletProviderDataByKey.d.ts +1 -1
- package/dist/modules/wallets/getWalletProviders/getWalletProviders.d.ts +1 -1
- package/dist/modules/wallets/hardwareWallet/canConnectWithHardwareWallet/canConnectWithHardwareWallet.d.ts +1 -1
- package/dist/modules/wallets/hardwareWallet/formatSignatureForHardwareWallet/formatSignatureForHardwareWallet.d.ts +1 -1
- package/dist/modules/wallets/hardwareWallet/isHardwareWalletAccount/isHardwareWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/hasWalletProviderConnectMethod/hasWalletProviderConnectMethod.d.ts +1 -1
- package/dist/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.d.ts +1 -1
- package/dist/modules/wallets/isWalletAccountVerified/isWalletAccountVerified.d.ts +1 -1
- package/dist/modules/wallets/networks/createBaseNetworkProvider/createBaseNetworkProvider.d.ts +1 -1
- package/dist/modules/wallets/networks/createBaseNetworkProvider/createBaseNetworkProvider.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getActiveNetworkData/getActiveNetworkData.d.ts +1 -1
- package/dist/modules/wallets/networks/getActiveNetworkId/getActiveNetworkId.d.ts +1 -1
- package/dist/modules/wallets/networks/getBalance/getBalance.d.ts +1 -1
- package/dist/modules/wallets/networks/getBalanceForAddress/getBalanceForAddress.d.ts +1 -1
- package/dist/modules/wallets/networks/getNativeBalance/getNativeBalance.d.ts +1 -1
- package/dist/modules/wallets/networks/getNetworkDataForNetworkId/getNetworkDataForNetworkId.d.ts +1 -1
- package/dist/modules/wallets/networks/getNetworkDataForNetworkId/getNetworkDataForNetworkId.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getNetworkProviderFromNetworkId/getNetworkProviderFromNetworkId.d.ts +1 -1
- package/dist/modules/wallets/networks/getNetworkProviderFromNetworkId/getNetworkProviderFromNetworkId.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getNetworkProviders/getNetworkProviders.d.ts +1 -1
- package/dist/modules/wallets/networks/getNetworksData/getNetworksData.d.ts +1 -1
- package/dist/modules/wallets/networks/getSdkChainFromApiChainName/getSdkChainFromApiChainName.d.ts +1 -1
- package/dist/modules/wallets/networks/getTransactionHistory/getTransactionHistory.d.ts +1 -1
- package/dist/modules/wallets/networks/isProgrammaticNetworkSwitchAvailable/isProgrammaticNetworkSwitchAvailable.d.ts +1 -1
- package/dist/modules/wallets/networks/lastKnownNetworkRegistry/createLastKnownNetworkRegistry/createLastKnownNetworkRegistry.d.ts +1 -1
- package/dist/modules/wallets/networks/networkProviderBuilderRegistry/createNetworkProviderBuilderRegistry/createNetworkProviderBuilderRegistry.d.ts +1 -1
- package/dist/modules/wallets/networks/networkProviderBuilderRegistry/createNetworkProviderBuilderRegistry/createNetworkProviderBuilderRegistry.d.ts.map +1 -1
- package/dist/modules/wallets/primaryWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/reconcileWalletAccountsAgainstClient/reconcileWalletAccountsAgainstClient.d.ts +1 -1
- package/dist/modules/wallets/unverifiedWalletAccounts/removeUnverifiedWalletAccount/removeUnverifiedWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/unverifiedWalletAccounts/setUnverifiedWalletAccounts/setUnverifiedWalletAccounts.d.ts +1 -1
- package/dist/modules/wallets/userHasEmbeddedWalletForChain/userHasEmbeddedWalletForChain.d.ts +1 -1
- package/dist/modules/wallets/userHasEmbeddedWalletForChain/userHasEmbeddedWalletForChain.d.ts.map +1 -1
- package/dist/modules/wallets/userHasExternalWallet/userHasExternalWallet.d.ts +1 -1
- package/dist/modules/wallets/userHasExternalWallet/userHasExternalWallet.d.ts.map +1 -1
- package/dist/modules/wallets/utils/convertUnverifiedWalletAccountToWalletAccount/convertUnverifiedWalletAccountToWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/utils/convertUnverifiedWalletAccountToWalletAccount/convertUnverifiedWalletAccountToWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/utils/convertVerifiedCredentialToWalletAccount/convertVerifiedCredentialToWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/utils/convertVerifiedCredentialToWalletAccount/convertVerifiedCredentialToWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/utils/formatSignInMessage/formatSignInMessage.d.ts +1 -1
- package/dist/modules/wallets/utils/formatWalletAccountId/formatWalletAccountId.d.ts +1 -1
- package/dist/modules/wallets/utils/formatWalletAccountId/formatWalletAccountId.d.ts.map +1 -1
- package/dist/modules/wallets/utils/formatWalletProviderGroupKey/formatWalletProviderGroupKey.d.ts +1 -1
- package/dist/modules/wallets/utils/formatWalletProviderGroupKey/formatWalletProviderGroupKey.d.ts.map +1 -1
- package/dist/modules/wallets/utils/formatWalletProviderKey/formatWalletProviderKey.d.ts +1 -1
- package/dist/modules/wallets/utils/getAddressesWithTypesFromConnectionResult/getAddressesWithTypesFromConnectionResult.d.ts +1 -1
- package/dist/modules/wallets/utils/getAddressesWithTypesFromConnectionResult/getAddressesWithTypesFromConnectionResult.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getAllProvidersFromWindow/getAllProvidersFromWindow.d.ts +1 -1
- package/dist/modules/wallets/utils/getAvailableWalletProvidersFromWalletAccounts/getAvailableWalletProvidersFromWalletAccounts.d.ts +1 -1
- package/dist/modules/wallets/utils/getAvailableWalletProvidersFromWalletAccounts/getAvailableWalletProvidersFromWalletAccounts.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getChainIdForAccountVerification/getChainIdForAccountVerification.d.ts +1 -1
- package/dist/modules/wallets/utils/getChainIdForAccountVerification/getChainIdForAccountVerification.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getInjectedProviderFromWindow/getInjectedProviderFromWindow.d.ts +1 -1
- package/dist/modules/wallets/utils/getInjectedProviderFromWindow/getInjectedProviderFromWindow.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getSignInMessage/createSignInMessageStatement/createSignInMessageStatement.d.ts +1 -1
- package/dist/modules/wallets/utils/getSignInMessage/createSignInMessageStatement/createSignInMessageStatement.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getSignInMessage/getSignInMessage.d.ts +1 -1
- package/dist/modules/wallets/utils/getSignInMessage/getSignInMessage.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getWalletAccountFromAddress/getWalletAccountFromAddress.d.ts +1 -1
- package/dist/modules/wallets/utils/getWalletProviderFromWalletAccount/getWalletProviderFromWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/utils/getWalletProviderFromWalletAccount/getWalletProviderFromWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/utils/isSameAddress/isSameAddress.d.ts +1 -1
- package/dist/modules/wallets/utils/isSameAddress/isSameAddress.d.ts.map +1 -1
- package/dist/modules/wallets/utils/normalizeAddress/normalizeAddress.d.ts +1 -1
- package/dist/modules/wallets/utils/normalizeAddress/normalizeAddress.d.ts.map +1 -1
- package/dist/modules/wallets/utils/normalizeWalletNameWithChain/normalizeWalletNameWithChain.d.ts +1 -1
- package/dist/modules/wallets/utils/stripChainSuffix/stripChainSuffix.d.ts +1 -1
- package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts +1 -1
- package/dist/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.d.ts +1 -1
- package/dist/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/defaultImplementations/getActiveNetworkIdFromLastKnownRegistry/getActiveNetworkIdFromLastKnownRegistry.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/defaultImplementations/getActiveNetworkIdFromLastKnownRegistry/getActiveNetworkIdFromLastKnownRegistry.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/defaultImplementations/switchActiveNetworkInLastKnownRegistry/switchActiveNetworkInLastKnownRegistry.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/defaultImplementations/switchActiveNetworkInLastKnownRegistry/switchActiveNetworkInLastKnownRegistry.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/events/createWalletProviderEventEmitter/createWalletProviderEventEmitter.d.ts +2 -2
- package/dist/modules/wallets/walletProvider/events/offWalletProviderEvent/offWalletProviderEvent.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/events/onWalletProviderEvent/onWalletProviderEvent.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/extractChainFromNormalizedName/extractChainFromNormalizedName.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/isDeeplinkWalletProvider/isDeeplinkWalletProvider.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/splitWalletProviderKey/splitWalletProviderKey.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/splitWalletProviderKey/splitWalletProviderKey.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/walletProviderKeyMap/getWalletProviderKeyFromVerifiedCredential/getWalletProviderKeyFromVerifiedCredential.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/walletProviderKeyMap/getWalletProviderKeyFromVerifiedCredential/getWalletProviderKeyFromVerifiedCredential.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/walletProviderKeyMap/updateWalletProviderKeysForVerifiedCredentials/updateWalletProviderKeysForVerifiedCredentials.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/walletProviderKeyMap/updateWalletProviderKeysForVerifiedCredentials/updateWalletProviderKeysForVerifiedCredentials.d.ts.map +1 -1
- package/dist/modules/wallets/walletProviderRegistry/createWalletProviderRegistry/createWalletProviderRegistry.d.ts +1 -1
- package/dist/{refreshAuth-C0kN3RBN.cjs → refreshAuth-B3XSU6GT.cjs} +3 -3
- package/dist/{refreshAuth-C0kN3RBN.cjs.map → refreshAuth-B3XSU6GT.cjs.map} +1 -1
- package/dist/{refreshAuth-CfpOd4qg.esm.js → refreshAuth-CAPTC0sg.esm.js} +3 -3
- package/dist/{refreshAuth-CfpOd4qg.esm.js.map → refreshAuth-CAPTC0sg.esm.js.map} +1 -1
- package/dist/{refreshAuth-Ck5OyzzC.native.esm.js → refreshAuth-aTqsU1uq.native.esm.js} +3 -3
- package/dist/{refreshAuth-Ck5OyzzC.native.esm.js.map → refreshAuth-aTqsU1uq.native.esm.js.map} +1 -1
- package/dist/services/asyncTrack/createAsyncTrack.d.ts +1 -1
- package/dist/services/crossTabBroadcast/createCrossTabBroadcast/createCrossTabBroadcast.d.ts +1 -1
- package/dist/services/eventEmitter/createEventEmitter.d.ts +1 -1
- package/dist/services/eventEmitter/createEventEmitter.d.ts.map +1 -1
- package/dist/services/fetch/createWebFetch.d.ts +1 -1
- package/dist/services/instrumentation/connectLoggerToInstrumentation/connectLoggerToInstrumentation.d.ts +1 -1
- package/dist/services/instrumentation/constants.d.ts.map +1 -1
- package/dist/services/instrumentation/createInstrumentation/createInstrumentation.d.ts +1 -1
- package/dist/services/instrumentation/instrumentFunction/extractParams/extractParams.d.ts +1 -1
- package/dist/services/instrumentation/instrumentFunction/instrumentFunction.d.ts +1 -1
- package/dist/services/instrumentation/instrumentFunction/scrubResolvedValue/scrubResolvedValue.d.ts +1 -1
- package/dist/services/instrumentation/scrubParameters/scrubParameters.d.ts +1 -1
- package/dist/services/instrumentation/scrubParameters/scrubParameters.d.ts.map +1 -1
- package/dist/services/instrumentation/transports/createDynamicTransport/createDynamicTransport.d.ts +1 -1
- package/dist/services/keychain/createKeychainService/createKeychainService.d.ts +1 -1
- package/dist/services/keychain/createKeychainService/createKeychainService.d.ts.map +1 -1
- package/dist/services/keychain/createKeychainService/utils/deleteIndexedDBItem.d.ts +1 -1
- package/dist/services/keychain/createKeychainService/utils/deleteIndexedDBItem.d.ts.map +1 -1
- package/dist/services/keychain/createKeychainService/utils/getIndexedDBItem.d.ts +1 -1
- package/dist/services/keychain/createKeychainService/utils/getIndexedDBItem.d.ts.map +1 -1
- package/dist/services/keychain/createKeychainService/utils/openDatabase.d.ts +1 -1
- package/dist/services/keychain/createKeychainService/utils/openDatabase.d.ts.map +1 -1
- package/dist/services/keychain/createKeychainService/utils/setIndexedDBItem.d.ts +1 -1
- package/dist/services/keychain/createKeychainService/utils/setIndexedDBItem.d.ts.map +1 -1
- package/dist/services/keychain/createKeychainService/utils/withDatabase/withDatabase.d.ts +1 -1
- package/dist/services/logger/createLogger/createLogger.d.ts +2 -2
- package/dist/services/nativeManifest/getReactNativeManifest/getReactNativeManifest.d.ts +1 -1
- package/dist/services/navigate/createNavigationHandler/createNavigationHandler.d.ts +1 -1
- package/dist/services/openDeeplink/createWebDeeplinkOpener/createWebDeeplinkOpener.d.ts +1 -1
- package/dist/services/passkey/createPasskeyService/createPasskeyService.d.ts +1 -1
- package/dist/services/realtime/createRealtimeChannelSchema/createRealtimeChannelSchema.d.ts +1 -1
- package/dist/services/realtime/createRealtimeService/createRealtimeService.d.ts +1 -1
- package/dist/services/runtimeServices/createRuntimeServiceAccessKey/createRuntimeServiceAccessKey.d.ts +1 -1
- package/dist/services/runtimeServices/createRuntimeServices/createRuntimeServices.d.ts +1 -1
- package/dist/services/storage/createLocalStorageAdapter/createLocalStorageAdapter.d.ts +1 -1
- package/dist/services/storage/createStorage/createStorage.d.ts +1 -1
- package/dist/services/storage/createStorage/formatForStorage/isValidDateISOString/isValidDateISOString.d.ts +1 -1
- package/dist/services/storage/createStorage/formatForStorage/storageFormat.d.ts +2 -2
- package/dist/services/storage/createStorage/formatForStorage/storageFormat.d.ts.map +1 -1
- package/dist/services/storage/createStorageKeySchema/createStorageKeySchema.d.ts +1 -1
- package/dist/services/storage/createStorageKeySchema/createStorageKeySchema.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/utils/appendConnectionUriToDeeplink/appendConnectionUriToDeeplink.d.ts +1 -1
- package/dist/utils/base64UrlDecode/base64UrlDecode.d.ts +1 -1
- package/dist/utils/base64urlFromBytes/base64urlFromBytes.d.ts +1 -1
- package/dist/utils/bufferToBase64/bufferToBase64.d.ts +1 -1
- package/dist/utils/bufferToBase64/bufferToBase64.d.ts.map +1 -1
- package/dist/utils/bufferToHex/bufferToHex.d.ts +1 -1
- package/dist/utils/bytesFromBase64url/bytesFromBase64url.d.ts +1 -1
- package/dist/utils/compressRawPublicKey/compressRawPublicKey.d.ts +1 -1
- package/dist/utils/debouncedMutex/createDebouncedMutex/createDebouncedMutex.d.ts +1 -1
- package/dist/utils/debouncedMutex/createDebouncedMutex/createDebouncedMutex.d.ts.map +1 -1
- package/dist/utils/deferredPromise/createDeferredPromise.d.ts +1 -1
- package/dist/utils/deferredPromise/createDeferredPromise.d.ts.map +1 -1
- package/dist/utils/derToP1363/derToP1363.d.ts +1 -1
- package/dist/utils/digestSHA256/digestSHA256.d.ts +1 -1
- package/dist/utils/digestSHA256/digestSHA256.d.ts.map +1 -1
- package/dist/utils/encodeBase64Url/encodeBase64Url.d.ts +1 -1
- package/dist/utils/filterDuplicates/filterDuplicates.d.ts +1 -1
- package/dist/utils/getAppMetadata/getAppMetadata.d.ts +1 -1
- package/dist/utils/getBuffer/getBuffer.d.ts +1 -1
- package/dist/utils/getBuffer/getBuffer.d.ts.map +1 -1
- package/dist/utils/getChainFromVerifiedCredentialChain/getChainFromVerifiedCredentialChain.d.ts +1 -1
- package/dist/utils/getChainFromVerifiedCredentialChain/getChainFromVerifiedCredentialChain.d.ts.map +1 -1
- package/dist/utils/getChainFromWalletBookIdentifier/getChainFromWalletBookIdentifier.d.ts +1 -1
- package/dist/utils/getKeychainIndexedDBName/getKeychainIndexedDBName.d.ts +1 -1
- package/dist/utils/getNativeLinkScheme/getNativeLinkScheme.d.ts +1 -1
- package/dist/utils/getNonce/fetchAndStoreNonces/fetchAndStoreNonces.d.ts +1 -1
- package/dist/utils/getNonce/getNonce.d.ts +1 -1
- package/dist/utils/getNonce/prefetchNoncesIfNeeded/prefetchNoncesIfNeeded.d.ts +1 -1
- package/dist/utils/getNonce/prefetchNoncesIfNeeded/prefetchNoncesIfNeeded.d.ts.map +1 -1
- package/dist/utils/getOperatingSystem/getOperatingSystem.d.ts +1 -1
- package/dist/utils/getPlatform/getPlatform.d.ts +1 -1
- package/dist/utils/getUserAgent/getUserAgent.d.ts +1 -1
- package/dist/utils/isEqualShallow/isEqualShallow.d.ts +1 -1
- package/dist/utils/isError/isError.d.ts +1 -1
- package/dist/utils/isErrorWithCode/isErrorWithCode.d.ts +1 -1
- package/dist/utils/isMobile/isMobile.d.ts +16 -16
- package/dist/utils/isMobile/isMobile.d.ts.map +1 -1
- package/dist/utils/isServerSideRendering/isServerSideRendering.d.ts +1 -1
- package/dist/utils/observable/createObservableState/createObservableState.d.ts +1 -1
- package/dist/utils/observable/subscribeWithSelector/subscribeWithSelector.d.ts +1 -1
- package/dist/utils/p256Keygen/p256Keygen.d.ts +1 -1
- package/dist/utils/p256Keygen/p256Keygen.d.ts.map +1 -1
- package/dist/utils/p256Sign/p256Sign.d.ts +1 -1
- package/dist/utils/p256Sign/p256Sign.d.ts.map +1 -1
- package/dist/utils/parseAmountToSmallestUnit/parseAmountToSmallestUnit.d.ts +1 -1
- package/dist/utils/parseUserAgent/parseUserAgent.d.ts +1 -1
- package/dist/utils/parseUserAgent/parseUserAgent.d.ts.map +1 -1
- package/dist/utils/randomString/randomString.d.ts +1 -1
- package/dist/utils/randomString/randomString.d.ts.map +1 -1
- package/dist/utils/retryOnFail/retryOnFail.d.ts +1 -1
- package/dist/utils/retryOnFail/retryOnFail.d.ts.map +1 -1
- package/dist/utils/setCookie/setCookie.d.ts +1 -1
- package/dist/waas.cjs +27 -27
- package/dist/waas.cjs.map +1 -1
- package/dist/waas.esm.js +26 -26
- package/dist/waas.esm.js.map +1 -1
- package/dist/waas.native.esm.js +26 -26
- package/dist/waas.native.esm.js.map +1 -1
- package/dist/waasCore.cjs +19 -15
- package/dist/waasCore.cjs.map +1 -1
- package/dist/waasCore.esm.js +19 -15
- package/dist/waasCore.esm.js.map +1 -1
- package/dist/waasCore.native.esm.js +23 -19
- package/dist/waasCore.native.esm.js.map +1 -1
- package/package.json +2 -2
- package/dist/InvalidParamError-B0nAZ6Ei.esm.js.map +0 -1
- package/dist/InvalidParamError-DDdAeFXE.cjs.map +0 -1
- package/dist/InvalidParamError-DbUJgYDE.native.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-1j3BPA22.cjs.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-CMBk4NzR.native.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-DaMxnWPo.esm.js.map +0 -1
- package/dist/getSignedSessionId-BRklPjP0.esm.js.map +0 -1
- package/dist/getSignedSessionId-BU81jCyQ.cjs.map +0 -1
- package/dist/getSignedSessionId-DPj38qtY.native.esm.js.map +0 -1
- package/dist/getWaasWalletProviderFromWalletAccount-BhgXIVZM.native.esm.js.map +0 -1
- package/dist/getWaasWalletProviderFromWalletAccount-JN5ZC71J.esm.js.map +0 -1
- package/dist/getWaasWalletProviderFromWalletAccount-aRoo7mw8.cjs.map +0 -1
- package/dist/getWalletProviderByKey-BKRul8sp.native.esm.js.map +0 -1
- package/dist/getWalletProviderByKey-C-HHI7L8.esm.js.map +0 -1
- package/dist/getWalletProviderByKey-z1nf15R8.cjs.map +0 -1
- package/dist/isMfaRequiredForAction-BAqo9eBq.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-YGaK8XRO.cjs.map +0 -1
- package/dist/isUserOnboardingComplete-BT_SR4m_.esm.js.map +0 -1
- package/dist/isUserOnboardingComplete-Bo9grSze.cjs.map +0 -1
- package/dist/isUserOnboardingComplete-CVHzzTtG.native.esm.js.map +0 -1
package/dist/index.native.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as getCore,
|
|
2
|
-
import { A as GENERATE_SESSION_KEYS_TRACKER_KEY, B as createStorage, C as createKeychainService, D as CannotTrackError, F as getBuffer, G as subscribeWithSelector, H as createLocalStorageAdapter, I as __logoutWithReason_wrapped, K as isEqualShallow, L as generateSessionKeys, 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 fetchProjectSettings, S as createRealtimeService, T as createCrossTabBroadcast, U as isSignedIn, W as retryOnFail, _ as getAppMetadata, a as verifyMessageSignatureOwnership, b as NoNetworkProvidersError, c as formatSignInMessage, d as setUnverifiedWalletAccounts, f as createVisit, g as isCaptchaRequired, h as consumeCaptchaToken, i as getNetworksData, j as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, k as FETCH_PROJECT_SETTINGS_TRACKER_KEY, l as reconcileWalletAccountsAgainstClient, m as __setCaptchaToken_wrapped, o as removeUnverifiedWalletAccount, p as hasExtension, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as updateWalletProviderKeysForVerifiedCredentials, v as MethodNotImplementedError, w as createLogger, x as getKeychainIndexedDBName, y as WalletAlreadyLinkedToAnotherUserError, z as createStorageKeySchema } from "./getNetworkProviderFromNetworkId-
|
|
3
|
-
import { _ as normalizeAddress, a as parseElevatedAccessToken, g as formatWalletAccountId, i as upsertElevatedAccessToken, l as getWalletProviders, n as getVerifiedCredentialForWalletAccount, o as initializeWaasClientsForEagerRecovery, p as getWalletAccounts, r as updateAuthFromVerifyResponse, t as getWalletProviderByKey, u as checkAndRaiseWalletAccountsChangedEvent, v as splitWalletProviderKey } from "./getWalletProviderByKey-
|
|
4
|
-
import { t as __refreshAuth_wrapped } from "./refreshAuth-
|
|
5
|
-
import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-
|
|
6
|
-
import { n as NotWaasWalletAccountError } from "./isDynamicWaasEnabled-
|
|
7
|
-
import { a as WaasOnboardingIncompleteError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, r as isDeviceRegistrationRequired, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-
|
|
1
|
+
import { $ as getCore, C as emitEvent, D as fetchAndStoreNonces, E as onceEvent, F as MfaRateLimitedError, G as randomString, H as assertDefined, I as MfaInvalidOtpError, J as NONCE_POOL_SIZE, L as LinkCredentialError, N as getNonce, O as createApiClient, P as SandboxMaximumThresholdReachedError, Q as BaseError, R as InvalidExternalAuthError, S as CHAINS_INFO_MAP, T as onEvent, U as ValueMustBeDefinedError, V as isCookieEnabled, W as getElevatedAccessToken, X as setDefaultClient, Y as getDefaultClient, _ as WalletProviderPriority, b as NoWalletProviderFoundError, c as SDK_API_CORE_VERSION, d as DEFAULT_PII_FIELDS, et as name, f as getUserAgent, g as getWalletProviderFromWalletAccount, h as extractSessionId, k as UnauthorizedError, l as instrumentFunction, m as getOperatingSystem, o as isUserMissingMfaAuth, p as getPlatform, s as DYNAMIC_ICONIC_SPRITE_URL, t as InvalidParamError, tt as version, u as scrubParameters, v as getWalletProviderRegistry, w as offEvent, x as getChainFromVerifiedCredentialChain, z as APIError } from "./InvalidParamError-BKr8fFc1.native.esm.js";
|
|
2
|
+
import { A as GENERATE_SESSION_KEYS_TRACKER_KEY, B as createStorage, C as createKeychainService, D as CannotTrackError, F as getBuffer, G as subscribeWithSelector, H as createLocalStorageAdapter, I as __logoutWithReason_wrapped, K as isEqualShallow, L as generateSessionKeys, 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 fetchProjectSettings, S as createRealtimeService, T as createCrossTabBroadcast, U as isSignedIn, W as retryOnFail, _ as getAppMetadata, a as verifyMessageSignatureOwnership, b as NoNetworkProvidersError, c as formatSignInMessage, d as setUnverifiedWalletAccounts, f as createVisit, g as isCaptchaRequired, h as consumeCaptchaToken, i as getNetworksData, j as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, k as FETCH_PROJECT_SETTINGS_TRACKER_KEY, l as reconcileWalletAccountsAgainstClient, m as __setCaptchaToken_wrapped, o as removeUnverifiedWalletAccount, p as hasExtension, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as updateWalletProviderKeysForVerifiedCredentials, v as MethodNotImplementedError, w as createLogger, x as getKeychainIndexedDBName, y as WalletAlreadyLinkedToAnotherUserError, z as createStorageKeySchema } from "./getNetworkProviderFromNetworkId-DZkq74O7.native.esm.js";
|
|
3
|
+
import { _ as normalizeAddress, a as parseElevatedAccessToken, g as formatWalletAccountId, i as upsertElevatedAccessToken, l as getWalletProviders, n as getVerifiedCredentialForWalletAccount, o as initializeWaasClientsForEagerRecovery, p as getWalletAccounts, r as updateAuthFromVerifyResponse, t as getWalletProviderByKey, u as checkAndRaiseWalletAccountsChangedEvent, v as splitWalletProviderKey } from "./getWalletProviderByKey-BhisAyZg.native.esm.js";
|
|
4
|
+
import { t as __refreshAuth_wrapped } from "./refreshAuth-aTqsU1uq.native.esm.js";
|
|
5
|
+
import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-C1KaU-XS.native.esm.js";
|
|
6
|
+
import { n as NotWaasWalletAccountError } from "./isDynamicWaasEnabled-rRFvljev.native.esm.js";
|
|
7
|
+
import { a as WaasOnboardingIncompleteError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, r as isDeviceRegistrationRequired, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-DfDNapVu.native.esm.js";
|
|
8
8
|
import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
|
|
9
9
|
import { AuthModeEnum, ExchangeKeyEnum, JwtVerifiedCredentialFormatEnum, MFAAction, MfaBackupCodeAcknowledgement, ProviderEnum, TokenScope, WaasBackupOptionsEnum, WalletProviderEnum } from "@dynamic-labs/sdk-api-core";
|
|
10
10
|
import * as z from "zod/mini";
|
|
@@ -30,7 +30,7 @@ const stateChangeEvents = {
|
|
|
30
30
|
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/utils/getNonce/prefetchNoncesIfNeeded/prefetchNoncesIfNeeded.ts
|
|
33
|
-
/** @
|
|
33
|
+
/** @notInstrumented */
|
|
34
34
|
const prefetchNoncesIfNeeded = async (client) => {
|
|
35
35
|
if (getCore(client).state.get().prefetchedNonces.length >= NONCE_POOL_SIZE) return;
|
|
36
36
|
await fetchAndStoreNonces(client);
|
|
@@ -42,7 +42,7 @@ const prefetchNoncesIfNeeded = async (client) => {
|
|
|
42
42
|
* Creates a new runtime services instance that manages service registration and retrieval.
|
|
43
43
|
*
|
|
44
44
|
* @returns A RuntimeServices object with methods to get, register, and unregister services
|
|
45
|
-
* @
|
|
45
|
+
* @notInstrumented
|
|
46
46
|
*/
|
|
47
47
|
const createRuntimeServices = () => {
|
|
48
48
|
const registry = /* @__PURE__ */ new Map();
|
|
@@ -57,7 +57,7 @@ const createRuntimeServices = () => {
|
|
|
57
57
|
//#region src/modules/auth/initializeAuth/setLongTimeout/setLongTimeout.ts
|
|
58
58
|
/**
|
|
59
59
|
* A replacement for setTimeout that supports delays longer than 2147483647ms (~24.8 days).
|
|
60
|
-
* @
|
|
60
|
+
* @notInstrumented
|
|
61
61
|
*/
|
|
62
62
|
const setLongTimeout = ({ callback, delay }) => {
|
|
63
63
|
const MAX_DELAY = 2147483647;
|
|
@@ -80,7 +80,7 @@ const setLongTimeout = ({ callback, delay }) => {
|
|
|
80
80
|
//#region src/modules/auth/initializeAuth/initializeAuth.ts
|
|
81
81
|
/**
|
|
82
82
|
* Sets up a timeout to log out the user when their token expires.
|
|
83
|
-
* @
|
|
83
|
+
* @notInstrumented
|
|
84
84
|
*/
|
|
85
85
|
const initializeAuth = (client) => {
|
|
86
86
|
const core = getCore(client);
|
|
@@ -122,7 +122,7 @@ const initializeAuth = (client) => {
|
|
|
122
122
|
* - Emits corresponding "*InAnotherTab" events on core.eventEmitter
|
|
123
123
|
*
|
|
124
124
|
* @param client - The Dynamic client instance
|
|
125
|
-
* @
|
|
125
|
+
* @notInstrumented
|
|
126
126
|
*/
|
|
127
127
|
const setupCrossTabEventSync = (client) => {
|
|
128
128
|
const core = getCore(client);
|
|
@@ -214,7 +214,7 @@ var KeyMigrationError = class extends BaseError {
|
|
|
214
214
|
*
|
|
215
215
|
* Idempotent: skips if the keychain already has a `session` key.
|
|
216
216
|
* Throws on failure — callers should handle errors (e.g. .catch(() => logout(client))).
|
|
217
|
-
* @
|
|
217
|
+
* @notInstrumented
|
|
218
218
|
*/
|
|
219
219
|
const migrateSessionKeyToKeychain = async ({ keychain, logger, state, storage }) => {
|
|
220
220
|
if (isServerSideRendering()) return;
|
|
@@ -259,7 +259,7 @@ const migrateSessionKeyToKeychain = async ({ keychain, logger, state, storage })
|
|
|
259
259
|
|
|
260
260
|
//#endregion
|
|
261
261
|
//#region src/modules/state/raiseStateEvents/raiseStateEvents.ts
|
|
262
|
-
/** @
|
|
262
|
+
/** @notInstrumented */
|
|
263
263
|
const raiseStateEvents = (client) => {
|
|
264
264
|
getCore(client).state.subscribe((value, previous) => {
|
|
265
265
|
Object.entries(stateChangeEvents).forEach(([key, event]) => {
|
|
@@ -274,7 +274,7 @@ const raiseStateEvents = (client) => {
|
|
|
274
274
|
|
|
275
275
|
//#endregion
|
|
276
276
|
//#region src/modules/storageSync/hydrateStateWithStorage/hydrateStateWithStorage.ts
|
|
277
|
-
/** @
|
|
277
|
+
/** @notInstrumented */
|
|
278
278
|
const hydrateStateWithStorage = async (client) => {
|
|
279
279
|
const core = getCore(client);
|
|
280
280
|
const previousState = core.state.get();
|
|
@@ -312,7 +312,7 @@ const hydrateStateWithStorage = async (client) => {
|
|
|
312
312
|
|
|
313
313
|
//#endregion
|
|
314
314
|
//#region src/modules/storageSync/syncStateWithStorage/syncStateWithStorage.ts
|
|
315
|
-
/** @
|
|
315
|
+
/** @notInstrumented */
|
|
316
316
|
const syncStateWithStorage = (client) => {
|
|
317
317
|
const core = getCore(client);
|
|
318
318
|
core.state.subscribe((state) => {
|
|
@@ -345,7 +345,7 @@ const syncStateWithStorage = (client) => {
|
|
|
345
345
|
|
|
346
346
|
//#endregion
|
|
347
347
|
//#region src/modules/storageSync/initializeStorageSync.ts
|
|
348
|
-
/** @
|
|
348
|
+
/** @notInstrumented */
|
|
349
349
|
const initializeStorageSync = async (client) => {
|
|
350
350
|
await hydrateStateWithStorage(client);
|
|
351
351
|
syncStateWithStorage(client);
|
|
@@ -536,7 +536,7 @@ const __initializeClient_wrapped = instrumentFunction({
|
|
|
536
536
|
//#region src/services/asyncTrack/createAsyncTrack.ts
|
|
537
537
|
/**
|
|
538
538
|
* Creates a tracker that associates names with promises and raises as promises resolve.
|
|
539
|
-
* @
|
|
539
|
+
* @notInstrumented
|
|
540
540
|
*/
|
|
541
541
|
const createAsyncTrack = () => {
|
|
542
542
|
/**
|
|
@@ -592,7 +592,7 @@ const createAsyncTrack = () => {
|
|
|
592
592
|
|
|
593
593
|
//#endregion
|
|
594
594
|
//#region src/services/eventEmitter/createEventEmitter.ts
|
|
595
|
-
/** @
|
|
595
|
+
/** @notInstrumented */
|
|
596
596
|
const createEventEmitter = () => new EventEmitter();
|
|
597
597
|
|
|
598
598
|
//#endregion
|
|
@@ -613,7 +613,7 @@ var UnavailableInServerSideError = class extends BaseError {
|
|
|
613
613
|
//#region src/services/fetch/createWebFetch.ts
|
|
614
614
|
/**
|
|
615
615
|
* Creates a fetch instance that uses the native window.fetch API.
|
|
616
|
-
* @
|
|
616
|
+
* @notInstrumented
|
|
617
617
|
*/
|
|
618
618
|
const createWebFetch = () => {
|
|
619
619
|
if (isServerSideRendering()) return () => Promise.reject(new UnavailableInServerSideError("createWebFetch"));
|
|
@@ -629,7 +629,7 @@ const createWebFetch = () => {
|
|
|
629
629
|
* Bridges the logger and instrumentation subsystems without coupling them
|
|
630
630
|
* at construction time — either can exist without the other.
|
|
631
631
|
* Only error-level log entries are forwarded.
|
|
632
|
-
* @
|
|
632
|
+
* @notInstrumented
|
|
633
633
|
*/
|
|
634
634
|
const connectLoggerToInstrumentation = ({ environmentId, extensions, instrumentation, logger, sdkSessionId, sdkVersion, state }) => {
|
|
635
635
|
logger.on("log", (level, message, ...args) => {
|
|
@@ -674,7 +674,7 @@ const buildPiiFields = (customFields = []) => {
|
|
|
674
674
|
*
|
|
675
675
|
* Custom piiFields are merged with and deduplicated against the defaults so
|
|
676
676
|
* callers only need to list additional fields, not replicate the baseline.
|
|
677
|
-
* @
|
|
677
|
+
* @notInstrumented
|
|
678
678
|
*/
|
|
679
679
|
const createInstrumentation = ({ config: inputConfig } = {}) => {
|
|
680
680
|
let transport;
|
|
@@ -716,7 +716,7 @@ const LOGS_BASE_URL = "https://logs.dynamicauth.com/api/v1";
|
|
|
716
716
|
*
|
|
717
717
|
* Works in both browser and SSR environments — fetch is injected and
|
|
718
718
|
* queueMicrotask is available in Node.js >= 11.
|
|
719
|
-
* @
|
|
719
|
+
* @notInstrumented
|
|
720
720
|
*/
|
|
721
721
|
const createDynamicTransport = (params) => {
|
|
722
722
|
const queue = [];
|
|
@@ -745,7 +745,7 @@ const createDynamicTransport = (params) => {
|
|
|
745
745
|
//#region src/services/navigate/createNavigationHandler/createNavigationHandler.ts
|
|
746
746
|
/**
|
|
747
747
|
* Creates a navigation handler that uses the native window.location API.
|
|
748
|
-
* @
|
|
748
|
+
* @notInstrumented
|
|
749
749
|
*/
|
|
750
750
|
const createNavigationHandler = () => {
|
|
751
751
|
if (isServerSideRendering()) return () => Promise.reject(new UnavailableInServerSideError("createNavigationHandler"));
|
|
@@ -768,7 +768,7 @@ const createNavigationHandler = () => {
|
|
|
768
768
|
* the browser focuses the lingering about:blank after the redirect tab closes.
|
|
769
769
|
* `window.location.assign` reuses the current tab, avoiding the extra tab
|
|
770
770
|
* entirely.
|
|
771
|
-
* @
|
|
771
|
+
* @notInstrumented
|
|
772
772
|
*/
|
|
773
773
|
const createWebDeeplinkOpener = () => {
|
|
774
774
|
if (isServerSideRendering()) return () => Promise.reject(new UnavailableInServerSideError("createWebDeeplinkOpener"));
|
|
@@ -856,7 +856,7 @@ const mapFromGetResult = (result) => ({
|
|
|
856
856
|
* Native passkeys require an associated domain that matches `metadata.universalLink`;
|
|
857
857
|
* `authenticate` and `register` assert it is defined so the developer gets a
|
|
858
858
|
* clear error instead of an opaque platform failure.
|
|
859
|
-
* @
|
|
859
|
+
* @notInstrumented
|
|
860
860
|
*/
|
|
861
861
|
const createPasskeyService = (_params) => ({
|
|
862
862
|
authenticate: async (options) => {
|
|
@@ -874,7 +874,7 @@ const createPasskeyService = (_params) => ({
|
|
|
874
874
|
|
|
875
875
|
//#endregion
|
|
876
876
|
//#region src/utils/debouncedMutex/createDebouncedMutex/createDebouncedMutex.ts
|
|
877
|
-
/** @
|
|
877
|
+
/** @notInstrumented */
|
|
878
878
|
const createDebouncedMutex = () => {
|
|
879
879
|
const mutexState = /* @__PURE__ */ new Map();
|
|
880
880
|
return async ({ lockKey, callback, debounceTime = 0 }) => {
|
|
@@ -959,7 +959,7 @@ var InvalidStorageValue = class extends BaseError {
|
|
|
959
959
|
* // Unsubscribe when done
|
|
960
960
|
* unsubscribe();
|
|
961
961
|
* ```
|
|
962
|
-
* @
|
|
962
|
+
* @notInstrumented
|
|
963
963
|
*/
|
|
964
964
|
const createObservableState = (getInitialState$1) => {
|
|
965
965
|
const subscribers = /* @__PURE__ */ new Set();
|
|
@@ -1003,7 +1003,7 @@ const DEFAULT_API_BASE_URL = "https://app.dynamicauth.com/api/v0";
|
|
|
1003
1003
|
//#region src/client/core/createCore/getInitialState.ts
|
|
1004
1004
|
/**
|
|
1005
1005
|
* The initial values for the state of the client.
|
|
1006
|
-
* @
|
|
1006
|
+
* @notInstrumented
|
|
1007
1007
|
*/
|
|
1008
1008
|
const getInitialState = () => ({
|
|
1009
1009
|
captchaToken: null,
|
|
@@ -1028,7 +1028,7 @@ const getInitialState = () => ({
|
|
|
1028
1028
|
//#region src/client/core/createCore/createCore.ts
|
|
1029
1029
|
/**
|
|
1030
1030
|
* Creates a core instance that contains all the services and state of the Dynamic SDK client.
|
|
1031
|
-
* @
|
|
1031
|
+
* @notInstrumented
|
|
1032
1032
|
*/
|
|
1033
1033
|
const createCore = (config) => {
|
|
1034
1034
|
const apiBaseUrl = config.coreConfig?.apiBaseUrl ?? DEFAULT_API_BASE_URL;
|
|
@@ -1599,7 +1599,7 @@ const STEP_UP_REQUIRED_DEFAULT = {
|
|
|
1599
1599
|
* @instrumented
|
|
1600
1600
|
*/
|
|
1601
1601
|
const checkStepUpAuth = async ({ scope }, client = getDefaultClient()) => {
|
|
1602
|
-
if (
|
|
1602
|
+
if (getElevatedAccessToken({
|
|
1603
1603
|
consume: false,
|
|
1604
1604
|
scope
|
|
1605
1605
|
}, client)) return {
|
|
@@ -1729,7 +1729,7 @@ const __signInWithExternalJwt_wrapped = instrumentFunction({
|
|
|
1729
1729
|
*
|
|
1730
1730
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1731
1731
|
* @returns A promise that resolves when the logout process is complete.
|
|
1732
|
-
* @
|
|
1732
|
+
* @notInstrumented
|
|
1733
1733
|
*/
|
|
1734
1734
|
const logout = async (client = getDefaultClient()) => {
|
|
1735
1735
|
/**
|
|
@@ -1784,7 +1784,7 @@ const __deletePasskey_wrapped = instrumentFunction({
|
|
|
1784
1784
|
*
|
|
1785
1785
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1786
1786
|
* @returns A promise that resolves to an array of the user's registered passkeys.
|
|
1787
|
-
* @
|
|
1787
|
+
* @notInstrumented
|
|
1788
1788
|
*/
|
|
1789
1789
|
const getPasskeys = async (client = getDefaultClient()) => {
|
|
1790
1790
|
const core = getCore(client);
|
|
@@ -1793,7 +1793,7 @@ const getPasskeys = async (client = getDefaultClient()) => {
|
|
|
1793
1793
|
|
|
1794
1794
|
//#endregion
|
|
1795
1795
|
//#region src/modules/auth/passkeys/getPasskeyRegistrationOptions/getPasskeyRegistrationOptions.ts
|
|
1796
|
-
/** @
|
|
1796
|
+
/** @notInstrumented */
|
|
1797
1797
|
const getPasskeyRegistrationOptions = async (client) => {
|
|
1798
1798
|
const core = getCore(client);
|
|
1799
1799
|
return await createApiClient({}, client).getPasskeyRegistrationOptions({ environmentId: core.environmentId });
|
|
@@ -1801,7 +1801,7 @@ const getPasskeyRegistrationOptions = async (client) => {
|
|
|
1801
1801
|
|
|
1802
1802
|
//#endregion
|
|
1803
1803
|
//#region src/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.ts
|
|
1804
|
-
/** @
|
|
1804
|
+
/** @notInstrumented */
|
|
1805
1805
|
const serverRegisterPasskey = async ({ registration, createMfaToken }, client) => {
|
|
1806
1806
|
const core = getCore(client);
|
|
1807
1807
|
return await createApiClient({ elevatedAccessTokenScope: TokenScope.Credentiallink }, client).registerPasskey({
|
|
@@ -1860,7 +1860,7 @@ const __registerPasskey_wrapped = instrumentFunction({
|
|
|
1860
1860
|
|
|
1861
1861
|
//#endregion
|
|
1862
1862
|
//#region src/modules/auth/passkeys/getPasskeyAuthenticationSignInOptions/getPasskeyAuthenticationSignInOptions.ts
|
|
1863
|
-
/** @
|
|
1863
|
+
/** @notInstrumented */
|
|
1864
1864
|
const getPasskeyAuthenticationSignInOptions = async ({ relatedOriginRpId } = {}, client) => {
|
|
1865
1865
|
const core = getCore(client);
|
|
1866
1866
|
return await createApiClient({}, client).getPasskeyAuthenticationSigninOptions({
|
|
@@ -1871,7 +1871,7 @@ const getPasskeyAuthenticationSignInOptions = async ({ relatedOriginRpId } = {},
|
|
|
1871
1871
|
|
|
1872
1872
|
//#endregion
|
|
1873
1873
|
//#region src/modules/auth/passkeys/serverSigninPasskey/serverSigninPasskey.ts
|
|
1874
|
-
/** @
|
|
1874
|
+
/** @notInstrumented */
|
|
1875
1875
|
const serverSigninPasskey = async ({ authentication, createMfaToken }, client) => {
|
|
1876
1876
|
const core = getCore(client);
|
|
1877
1877
|
return await createApiClient({}, client).signinWithPasskey({
|
|
@@ -1931,7 +1931,7 @@ const __signInWithPasskey_wrapped = instrumentFunction({
|
|
|
1931
1931
|
*
|
|
1932
1932
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1933
1933
|
* @returns An array of `SocialAccount` objects associated with the user.
|
|
1934
|
-
* @
|
|
1934
|
+
* @notInstrumented
|
|
1935
1935
|
* @hook Exposed as a hook so consumers get the reactive list of social accounts, updated when the user changes.
|
|
1936
1936
|
*/
|
|
1937
1937
|
const getUserSocialAccounts = (client = getDefaultClient()) => {
|
|
@@ -2056,7 +2056,7 @@ const __completeSocialAuthentication_wrapped = instrumentFunction({
|
|
|
2056
2056
|
* pop-up callback inline and returns the authenticated user directly.
|
|
2057
2057
|
*
|
|
2058
2058
|
* @throws MethodNotImplementedError Always on React Native.
|
|
2059
|
-
* @
|
|
2059
|
+
* @notInstrumented
|
|
2060
2060
|
*/
|
|
2061
2061
|
const detectSocialRedirectUrl = async ({ url }, client = getDefaultClient()) => {
|
|
2062
2062
|
throw new MethodNotImplementedError("detectSocialRedirectUrl (not needed on React Native — signInWithSocialPopUp processes the callback inline)");
|
|
@@ -2068,7 +2068,7 @@ const detectSocialRedirectUrl = async ({ url }, client = getDefaultClient()) =>
|
|
|
2068
2068
|
* @deprecated Renamed to {@link detectSocialRedirectUrl}. This alias will be
|
|
2069
2069
|
* removed in a future major version.
|
|
2070
2070
|
*
|
|
2071
|
-
* @
|
|
2071
|
+
* @notInstrumented
|
|
2072
2072
|
* @noHook Deprecated alias; the replacement is exposed via its own hook.
|
|
2073
2073
|
*/
|
|
2074
2074
|
const detectOAuthRedirect = (params, client = getDefaultClient()) => detectSocialRedirectUrl(params, client);
|
|
@@ -2108,7 +2108,7 @@ const redirectStateStorageKeySchema = createStorageKeySchema({
|
|
|
2108
2108
|
*/
|
|
2109
2109
|
const processSocialCallback = async ({ url, requestedScopes }, client) => {
|
|
2110
2110
|
const core = getCore(client);
|
|
2111
|
-
const apiClient = createApiClient({}, client);
|
|
2111
|
+
const apiClient = createApiClient(client.user ? { elevatedAccessTokenScope: TokenScope.Credentiallink } : {}, client);
|
|
2112
2112
|
await core.initTrack.waitForAll();
|
|
2113
2113
|
const dynamicOauthState = url.searchParams.get("dynamicOauthState");
|
|
2114
2114
|
const dynamicOauthCode = url.searchParams.get("dynamicOauthCode");
|
|
@@ -2159,7 +2159,7 @@ const __processSocialCallback_wrapped = instrumentFunction({
|
|
|
2159
2159
|
|
|
2160
2160
|
//#endregion
|
|
2161
2161
|
//#region src/utils/digestSHA256/digestSHA256.ts
|
|
2162
|
-
/** @
|
|
2162
|
+
/** @notInstrumented */
|
|
2163
2163
|
const digestSHA256 = (str) => {
|
|
2164
2164
|
const data = new TextEncoder().encode(str);
|
|
2165
2165
|
return crypto.subtle.digest("SHA-256", data);
|
|
@@ -2172,7 +2172,7 @@ const digestSHA256 = (str) => {
|
|
|
2172
2172
|
*
|
|
2173
2173
|
* @param str - The string to encode as an ArrayBuffer.
|
|
2174
2174
|
* @returns The base64url encoded string.
|
|
2175
|
-
* @
|
|
2175
|
+
* @notInstrumented
|
|
2176
2176
|
*/
|
|
2177
2177
|
const encodeBase64Url = (str) => {
|
|
2178
2178
|
const numberArray = [];
|
|
@@ -2184,7 +2184,7 @@ const encodeBase64Url = (str) => {
|
|
|
2184
2184
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/addOAuthUrlParams/addOAuthUrlParams.ts
|
|
2185
2185
|
const APPLE_RESPONSE_MODE = "form_post";
|
|
2186
2186
|
const APPLE_RESPONSE_TYPE = "code id_token";
|
|
2187
|
-
/** Helper function to add OAuth URL parameters to a given base URL. * @
|
|
2187
|
+
/** Helper function to add OAuth URL parameters to a given base URL. * @notInstrumented
|
|
2188
2188
|
*/
|
|
2189
2189
|
const addOAuthUrlParams = ({ baseUrl, isGoogleDriveBackupEnabled, provider }) => {
|
|
2190
2190
|
assertDefined(provider.clientId, "Client ID not found");
|
|
@@ -2212,7 +2212,7 @@ const addOAuthUrlParams = ({ baseUrl, isGoogleDriveBackupEnabled, provider }) =>
|
|
|
2212
2212
|
|
|
2213
2213
|
//#endregion
|
|
2214
2214
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/getOAuthBaseUrl/getOAuthBaseUrl.ts
|
|
2215
|
-
/** Helper function to build the OAuth base URL for a given provider. * @
|
|
2215
|
+
/** Helper function to build the OAuth base URL for a given provider. * @notInstrumented
|
|
2216
2216
|
*/
|
|
2217
2217
|
const getOAuthBaseUrl = (provider) => {
|
|
2218
2218
|
assertDefined(provider.provider, "Provider type not found");
|
|
@@ -2233,7 +2233,7 @@ const getOAuthBaseUrl = (provider) => {
|
|
|
2233
2233
|
//#endregion
|
|
2234
2234
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/buildOAuthUrl.ts
|
|
2235
2235
|
const providersRequiringPkce = ["twitter", "github"];
|
|
2236
|
-
/** Helper function to build the OAuth URL for a given provider. * @
|
|
2236
|
+
/** Helper function to build the OAuth URL for a given provider. * @notInstrumented
|
|
2237
2237
|
*/
|
|
2238
2238
|
const buildOAuthUrl = async (core, provider) => {
|
|
2239
2239
|
const { projectSettings } = core.state.get();
|
|
@@ -2369,7 +2369,7 @@ const __signInWithSocialPopUp_wrapped = instrumentFunction({
|
|
|
2369
2369
|
* The primary wallet account is the one that was last selected by the user.
|
|
2370
2370
|
* This information is stored in both unverified and verified wallet accounts.
|
|
2371
2371
|
* This function consolidates this information to determine which wallet was most recently selected.
|
|
2372
|
-
* @
|
|
2372
|
+
* @notInstrumented
|
|
2373
2373
|
*/
|
|
2374
2374
|
const getPrimaryWalletAccount = (client = getDefaultClient()) => {
|
|
2375
2375
|
const sortedLastSelectedWalletAccounts = getWalletAccounts(client).filter((walletAccount) => Boolean(walletAccount.lastSelectedAt)).sort((a, b) => b.lastSelectedAt.getTime() - a.lastSelectedAt.getTime());
|
|
@@ -2442,7 +2442,7 @@ const __unlinkSocialAccount_wrapped = instrumentFunction({
|
|
|
2442
2442
|
* @param params.walletAccount - The wallet account to get the balances for.
|
|
2443
2443
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2444
2444
|
* @returns A promise that resolves to an array of token balances.
|
|
2445
|
-
* @
|
|
2445
|
+
* @notInstrumented
|
|
2446
2446
|
*/
|
|
2447
2447
|
const getTokenBalances = async ({ walletAccount, networkId, networkIds, includePrices, includeNative, filterSpamTokens, whitelistedContracts, forceRefresh }, client = getDefaultClient()) => {
|
|
2448
2448
|
const core = getCore(client);
|
|
@@ -2473,7 +2473,7 @@ const getTokenBalances = async ({ walletAccount, networkId, networkIds, includeP
|
|
|
2473
2473
|
* longer confusable with the native-only `getBalance` or the
|
|
2474
2474
|
* multi-chain `getMultichainTokenBalances`.
|
|
2475
2475
|
*
|
|
2476
|
-
* @
|
|
2476
|
+
* @notInstrumented
|
|
2477
2477
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
2478
2478
|
*/
|
|
2479
2479
|
const getBalances = (params, client = getDefaultClient()) => getTokenBalances(params, client);
|
|
@@ -2492,7 +2492,7 @@ const getBalances = (params, client = getDefaultClient()) => getTokenBalances(pa
|
|
|
2492
2492
|
* @param params.balanceRequest - The balance request configuration specifying which chains, networks and addresses to query.
|
|
2493
2493
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2494
2494
|
* @returns A promise that resolves to the chain balances across multiple networks.
|
|
2495
|
-
* @
|
|
2495
|
+
* @notInstrumented
|
|
2496
2496
|
*/
|
|
2497
2497
|
const getMultichainTokenBalances = async ({ balanceRequest }, client = getDefaultClient()) => {
|
|
2498
2498
|
const core = getCore(client);
|
|
@@ -2509,14 +2509,14 @@ const getMultichainTokenBalances = async ({ balanceRequest }, client = getDefaul
|
|
|
2509
2509
|
* the name aligns with `getTokenBalances` and signals that this fetches
|
|
2510
2510
|
* token balances (not native-only) across multiple chains.
|
|
2511
2511
|
*
|
|
2512
|
-
* @
|
|
2512
|
+
* @notInstrumented
|
|
2513
2513
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
2514
2514
|
*/
|
|
2515
2515
|
const getMultichainBalances = (params, client = getDefaultClient()) => getMultichainTokenBalances(params, client);
|
|
2516
2516
|
|
|
2517
2517
|
//#endregion
|
|
2518
2518
|
//#region src/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.ts
|
|
2519
|
-
/** @
|
|
2519
|
+
/** @notInstrumented */
|
|
2520
2520
|
const createCheckoutSessionTokenStorageKey = (transactionId) => {
|
|
2521
2521
|
return createStorageKeySchema({
|
|
2522
2522
|
key: `checkoutSessionToken:${transactionId}`,
|
|
@@ -2526,7 +2526,7 @@ const createCheckoutSessionTokenStorageKey = (transactionId) => {
|
|
|
2526
2526
|
|
|
2527
2527
|
//#endregion
|
|
2528
2528
|
//#region src/modules/checkout/utils/createCheckoutApiClient/createCheckoutApiClient.ts
|
|
2529
|
-
/** @
|
|
2529
|
+
/** @notInstrumented */
|
|
2530
2530
|
const createCheckoutApiClient = async ({ transactionId }, client) => {
|
|
2531
2531
|
const core = getCore(client);
|
|
2532
2532
|
const apiClient = createApiClient({}, client);
|
|
@@ -2555,7 +2555,7 @@ const createCheckoutApiClient = async ({ transactionId }, client) => {
|
|
|
2555
2555
|
* The server-side revocation lives in dashboard-api; this is the SDK-side
|
|
2556
2556
|
* defense-in-depth.
|
|
2557
2557
|
*
|
|
2558
|
-
* @
|
|
2558
|
+
* @notInstrumented
|
|
2559
2559
|
*/
|
|
2560
2560
|
const clearCheckoutSessionToken = async ({ transactionId }, client) => {
|
|
2561
2561
|
await getCore(client).storage.removeItem(createCheckoutSessionTokenStorageKey(transactionId));
|
|
@@ -2570,7 +2570,7 @@ const clearCheckoutSessionToken = async ({ transactionId }, client) => {
|
|
|
2570
2570
|
* exfiltration surface for no benefit and makes the next SDK load attempt
|
|
2571
2571
|
* requests that are guaranteed to fail.
|
|
2572
2572
|
*
|
|
2573
|
-
* @
|
|
2573
|
+
* @notInstrumented
|
|
2574
2574
|
*/
|
|
2575
2575
|
const withCheckoutSessionTokenCleanupOn401 = async ({ call, transactionId }, client) => {
|
|
2576
2576
|
try {
|
|
@@ -2718,7 +2718,7 @@ const __cancelCheckoutTransaction_wrapped = instrumentFunction({
|
|
|
2718
2718
|
|
|
2719
2719
|
//#endregion
|
|
2720
2720
|
//#region src/modules/checkout/getCheckouts/getCheckouts.ts
|
|
2721
|
-
/** @
|
|
2721
|
+
/** @notInstrumented */
|
|
2722
2722
|
const getCheckouts = async (client) => {
|
|
2723
2723
|
const projectSettings = client.projectSettings;
|
|
2724
2724
|
assertDefined(projectSettings, "Project settings are not available");
|
|
@@ -2784,7 +2784,7 @@ const __createCheckoutTransaction_wrapped = instrumentFunction({
|
|
|
2784
2784
|
* @param params GetCheckoutTransactionParams - The parameters for fetching the transaction.
|
|
2785
2785
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2786
2786
|
* @returns The checkout transaction
|
|
2787
|
-
* @
|
|
2787
|
+
* @notInstrumented
|
|
2788
2788
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2789
2789
|
*/
|
|
2790
2790
|
const getCheckoutTransaction = async ({ transactionId }, client = getDefaultClient()) => {
|
|
@@ -2805,7 +2805,7 @@ const getCheckoutTransaction = async ({ transactionId }, client = getDefaultClie
|
|
|
2805
2805
|
* @param params GetCheckoutTransactionQuoteParams - The quote parameters.
|
|
2806
2806
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2807
2807
|
* @returns The updated checkout transaction with quote data
|
|
2808
|
-
* @
|
|
2808
|
+
* @notInstrumented
|
|
2809
2809
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2810
2810
|
*/
|
|
2811
2811
|
const getCheckoutTransactionQuote = async ({ fromChainId, fromTokenAddress, slippage, transactionId }, client = getDefaultClient()) => {
|
|
@@ -2910,7 +2910,7 @@ const SWAP_SUPPORTED_CHAINS = [
|
|
|
2910
2910
|
* If the wallet provider is not on the correct active network, it will try to switch to the correct active network.
|
|
2911
2911
|
* It's not a blocker, so it will just log the error and skip the step if it fails.
|
|
2912
2912
|
*
|
|
2913
|
-
* @
|
|
2913
|
+
* @notInstrumented
|
|
2914
2914
|
*/
|
|
2915
2915
|
const ensureCorrectActiveNetwork = async ({ requiredNetworkId, walletProvider }, client) => {
|
|
2916
2916
|
const { logger } = getCore(client);
|
|
@@ -3040,7 +3040,7 @@ const __submitCheckoutTransaction_wrapped = instrumentFunction({
|
|
|
3040
3040
|
*
|
|
3041
3041
|
* @param params.transactionId - The ID of the checkout transaction to track.
|
|
3042
3042
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3043
|
-
* @
|
|
3043
|
+
* @notInstrumented
|
|
3044
3044
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
3045
3045
|
*/
|
|
3046
3046
|
const trackCheckoutTransaction = (_params, client = getDefaultClient()) => {
|
|
@@ -3063,7 +3063,7 @@ const trackCheckoutTransaction = (_params, client = getDefaultClient()) => {
|
|
|
3063
3063
|
* @param params - The from token details and the checkout's settlement config.
|
|
3064
3064
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3065
3065
|
* @returns Whether a token conversion is required
|
|
3066
|
-
* @
|
|
3066
|
+
* @notInstrumented
|
|
3067
3067
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
3068
3068
|
*/
|
|
3069
3069
|
const requiresConversion = async ({ transaction }, client = getDefaultClient()) => {
|
|
@@ -3108,7 +3108,7 @@ const __completeDeviceRegistration_wrapped = instrumentFunction({
|
|
|
3108
3108
|
*
|
|
3109
3109
|
* @returns The device token as a string if valid.
|
|
3110
3110
|
* @throws InvalidDeviceRegistrationRedirectError If the URL is not a valid device registration redirect.
|
|
3111
|
-
* @
|
|
3111
|
+
* @notInstrumented
|
|
3112
3112
|
*/
|
|
3113
3113
|
const getDeviceRegistrationTokenFromUrl = ({ url }) => {
|
|
3114
3114
|
let urlObject;
|
|
@@ -3131,7 +3131,7 @@ const getDeviceRegistrationTokenFromUrl = ({ url }) => {
|
|
|
3131
3131
|
* if it contains device registration redirect data from a device authentication flow.
|
|
3132
3132
|
*
|
|
3133
3133
|
* @returns True if the URL is a device registration redirect, false otherwise.
|
|
3134
|
-
* @
|
|
3134
|
+
* @notInstrumented
|
|
3135
3135
|
*/
|
|
3136
3136
|
const detectDeviceRegistrationRedirect = ({ url }) => {
|
|
3137
3137
|
try {
|
|
@@ -3144,7 +3144,7 @@ const detectDeviceRegistrationRedirect = ({ url }) => {
|
|
|
3144
3144
|
|
|
3145
3145
|
//#endregion
|
|
3146
3146
|
//#region src/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.ts
|
|
3147
|
-
/** @
|
|
3147
|
+
/** @notInstrumented */
|
|
3148
3148
|
const getRegisteredDevices = async (client = getDefaultClient()) => {
|
|
3149
3149
|
const core = getCore(client);
|
|
3150
3150
|
const apiClient = createApiClient({}, client);
|
|
@@ -3207,7 +3207,7 @@ const __revokeRegisteredDevice_wrapped = instrumentFunction({
|
|
|
3207
3207
|
|
|
3208
3208
|
//#endregion
|
|
3209
3209
|
//#region src/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.ts
|
|
3210
|
-
/** @
|
|
3210
|
+
/** @notInstrumented */
|
|
3211
3211
|
const createFlowSessionTokenStorageKey = (flowId) => {
|
|
3212
3212
|
return createStorageKeySchema({
|
|
3213
3213
|
key: `flowSessionToken:${flowId}`,
|
|
@@ -3231,7 +3231,7 @@ const createFlowSessionTokenStorageKey = (flowId) => {
|
|
|
3231
3231
|
* The server-side revocation lives in dashboard-api; this is the SDK-side
|
|
3232
3232
|
* defense-in-depth.
|
|
3233
3233
|
*
|
|
3234
|
-
* @
|
|
3234
|
+
* @notInstrumented
|
|
3235
3235
|
*/
|
|
3236
3236
|
const clearFlowSessionToken = async ({ flowId }, client) => {
|
|
3237
3237
|
await getCore(client).storage.removeItem(createFlowSessionTokenStorageKey(flowId));
|
|
@@ -3246,7 +3246,7 @@ const clearFlowSessionToken = async ({ flowId }, client) => {
|
|
|
3246
3246
|
* exfiltration surface for no benefit and makes the next SDK load attempt
|
|
3247
3247
|
* requests that are guaranteed to fail.
|
|
3248
3248
|
*
|
|
3249
|
-
* @
|
|
3249
|
+
* @notInstrumented
|
|
3250
3250
|
*/
|
|
3251
3251
|
const withFlowSessionTokenCleanupOn401 = async ({ call, flowId }, client) => {
|
|
3252
3252
|
try {
|
|
@@ -3281,7 +3281,11 @@ const attachFlowSource = async (params, client = getDefaultClient()) => {
|
|
|
3281
3281
|
const apiClient = createApiClient({}, client);
|
|
3282
3282
|
const flowAttachSourceRequest = { sourceType };
|
|
3283
3283
|
if (params.sourceType === "exchange") flowAttachSourceRequest.exchangeProvider = params.exchangeProvider;
|
|
3284
|
-
else {
|
|
3284
|
+
else if (params.sourceType === "deposit_address") {
|
|
3285
|
+
flowAttachSourceRequest.fromChainId = params.fromChainId;
|
|
3286
|
+
flowAttachSourceRequest.fromChainName = params.fromChainName;
|
|
3287
|
+
if (params.fromAddress) flowAttachSourceRequest.fromAddress = params.fromAddress;
|
|
3288
|
+
} else {
|
|
3285
3289
|
flowAttachSourceRequest.fromAddress = params.fromAddress;
|
|
3286
3290
|
flowAttachSourceRequest.fromChainId = params.fromChainId;
|
|
3287
3291
|
flowAttachSourceRequest.fromChainName = params.fromChainName;
|
|
@@ -3312,7 +3316,7 @@ const __attachFlowSource_wrapped = instrumentFunction({
|
|
|
3312
3316
|
|
|
3313
3317
|
//#endregion
|
|
3314
3318
|
//#region src/modules/flow/utils/createFlowApiClient/createFlowApiClient.ts
|
|
3315
|
-
/** @
|
|
3319
|
+
/** @notInstrumented */
|
|
3316
3320
|
const createFlowApiClient = async ({ flowId }, client) => {
|
|
3317
3321
|
const core = getCore(client);
|
|
3318
3322
|
const apiClient = createApiClient({}, client);
|
|
@@ -3408,7 +3412,7 @@ const __cancelFlow_wrapped = instrumentFunction({
|
|
|
3408
3412
|
* @param params GetFlowParams - The parameters for fetching the flow.
|
|
3409
3413
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3410
3414
|
* @returns The flow
|
|
3411
|
-
* @
|
|
3415
|
+
* @notInstrumented
|
|
3412
3416
|
*/
|
|
3413
3417
|
const getFlow = async ({ flowId }, client = getDefaultClient()) => {
|
|
3414
3418
|
const core = getCore(client);
|
|
@@ -3426,7 +3430,7 @@ const getFlow = async ({ flowId }, client = getDefaultClient()) => {
|
|
|
3426
3430
|
* @param params GetFlowQuoteParams - The quote parameters.
|
|
3427
3431
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3428
3432
|
* @returns The updated flow with quote data
|
|
3429
|
-
* @
|
|
3433
|
+
* @notInstrumented
|
|
3430
3434
|
*/
|
|
3431
3435
|
const getFlowQuote = async ({ flowId, fromChainId, fromTokenAddress, slippage }, client = getDefaultClient()) => {
|
|
3432
3436
|
const { apiClient, environmentId, sessionToken } = await createFlowApiClient({ flowId }, client);
|
|
@@ -3541,7 +3545,7 @@ const __submitFlowTransaction_wrapped = instrumentFunction({
|
|
|
3541
3545
|
* @returns A function to remove the listener.
|
|
3542
3546
|
* @throws {ValueMustBeDefinedError} If the window is not available.
|
|
3543
3547
|
* @docs https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/apple-pay-onramp-api#events-names
|
|
3544
|
-
* @
|
|
3548
|
+
* @notInstrumented
|
|
3545
3549
|
* @hook Event listeners are error-prone to wire up by hand with useEffect.
|
|
3546
3550
|
*/
|
|
3547
3551
|
const addCoinbaseOnrampOrderEventListener = ({ listener }, client = getDefaultClient()) => {
|
|
@@ -3583,7 +3587,7 @@ const addCoinbaseOnrampOrderEventListener = ({ listener }, client = getDefaultCl
|
|
|
3583
3587
|
* @returns FieldMissingVerificationForCoinbaseOnramp[] - An array of fields that are missing verification for a Coinbase onramp order
|
|
3584
3588
|
* @throws {InvalidParamError} - If the payment method is not valid
|
|
3585
3589
|
* @throws {ValueMustBeDefinedError} - If the user is not authenticated
|
|
3586
|
-
* @
|
|
3590
|
+
* @notInstrumented
|
|
3587
3591
|
*/
|
|
3588
3592
|
const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client = getDefaultClient()) => {
|
|
3589
3593
|
if (paymentMethod !== "GUEST_CHECKOUT_APPLE_PAY") throw new InvalidParamError(`Invalid payment method: ${paymentMethod}`);
|
|
@@ -3621,7 +3625,7 @@ const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client
|
|
|
3621
3625
|
|
|
3622
3626
|
//#endregion
|
|
3623
3627
|
//#region src/modules/funding/coinbase/utils/validateUserCredentialsForCoinbaseOnrampOrder/validateUserCredentialsForCoinbaseOnrampOrder.ts
|
|
3624
|
-
/** @
|
|
3628
|
+
/** @notInstrumented */
|
|
3625
3629
|
const validateUserCredentialsForCoinbaseOnrampOrder = (client) => {
|
|
3626
3630
|
const { user } = client;
|
|
3627
3631
|
assertDefined(user, "User is not authenticated");
|
|
@@ -3696,7 +3700,7 @@ const __createCoinbaseOnrampOrder_wrapped = instrumentFunction({
|
|
|
3696
3700
|
* @param buyUrlParams CoinbaseOnrampGetBuyUrlRequest - The parameters for the buy URL.
|
|
3697
3701
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3698
3702
|
* @returns an object containing the buy URL
|
|
3699
|
-
* @
|
|
3703
|
+
* @notInstrumented
|
|
3700
3704
|
*/
|
|
3701
3705
|
const getCoinbaseBuyUrl = async (buyUrlParams, client = getDefaultClient()) => {
|
|
3702
3706
|
const core = getCore(client);
|
|
@@ -3747,7 +3751,7 @@ const __createCryptoDotComPayment_wrapped = instrumentFunction({
|
|
|
3747
3751
|
* @param transferParams - The parameters for the transfer including accountId
|
|
3748
3752
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3749
3753
|
* @returns The created transfer
|
|
3750
|
-
* @
|
|
3754
|
+
* @notInstrumented
|
|
3751
3755
|
*/
|
|
3752
3756
|
const createKrakenExchangeTransfer = async (transferParams, client = getDefaultClient()) => {
|
|
3753
3757
|
const core = getCore(client);
|
|
@@ -3781,7 +3785,7 @@ const __createKrakenExchangeTransfer_wrapped = instrumentFunction({
|
|
|
3781
3785
|
* @param [params] GetKrakenAccountsParams - Optional filters for the accounts.
|
|
3782
3786
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3783
3787
|
* @returns Array of Kraken accounts with balances
|
|
3784
|
-
* @
|
|
3788
|
+
* @notInstrumented
|
|
3785
3789
|
*/
|
|
3786
3790
|
const getKrakenAccounts = async (params, client = getDefaultClient()) => {
|
|
3787
3791
|
const core = getCore(client);
|
|
@@ -3800,7 +3804,7 @@ const getKrakenAccounts = async (params, client = getDefaultClient()) => {
|
|
|
3800
3804
|
*
|
|
3801
3805
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3802
3806
|
* @returns Transfer destinations response with whitelisted addresses
|
|
3803
|
-
* @
|
|
3807
|
+
* @notInstrumented
|
|
3804
3808
|
*/
|
|
3805
3809
|
const getKrakenWhitelistedAddresses = async (client = getDefaultClient()) => {
|
|
3806
3810
|
const core = getCore(client);
|
|
@@ -3883,6 +3887,10 @@ var MoonPayProviderNotAvailableError = class extends BaseError {
|
|
|
3883
3887
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3884
3888
|
* @returns The signed MoonPay URL.
|
|
3885
3889
|
* @instrumented
|
|
3890
|
+
* @redact-params - the return is a bare signed onramp URL whose query string
|
|
3891
|
+
* carries the provider signature plus the user's wallet address; a bare-string
|
|
3892
|
+
* return is logged under the synthetic `result` key, which no key-based rule
|
|
3893
|
+
* covers, so redact the whole event.
|
|
3886
3894
|
*/
|
|
3887
3895
|
const getMoonPayUrl = async (params, client = getDefaultClient()) => {
|
|
3888
3896
|
const core = getCore(client);
|
|
@@ -3916,7 +3924,8 @@ const __getMoonPayUrl_wrapped = instrumentFunction({
|
|
|
3916
3924
|
} catch {
|
|
3917
3925
|
return;
|
|
3918
3926
|
}
|
|
3919
|
-
}
|
|
3927
|
+
},
|
|
3928
|
+
redactAll: true
|
|
3920
3929
|
});
|
|
3921
3930
|
|
|
3922
3931
|
//#endregion
|
|
@@ -3926,7 +3935,7 @@ const __getMoonPayUrl_wrapped = instrumentFunction({
|
|
|
3926
3935
|
* and are ready for use.
|
|
3927
3936
|
*
|
|
3928
3937
|
* @returns a promise that resolves once the client is fully initialized.
|
|
3929
|
-
* @
|
|
3938
|
+
* @notInstrumented
|
|
3930
3939
|
* @noHook Client lifecycle management is not exposed as a hook; use useInitStatus.
|
|
3931
3940
|
*/
|
|
3932
3941
|
const waitForClientInitialized = async (client = getDefaultClient()) => {
|
|
@@ -3977,7 +3986,7 @@ const normalize$1 = (value) => value.toLowerCase().replace(/\s+/g, "").replace(/
|
|
|
3977
3986
|
* @param [params.catalogGroupName] - Optional display name (e.g. `"Trust Wallet"`); matched as a fallback when the key is opaque.
|
|
3978
3987
|
* @param params.walletProviders - Currently available wallet providers (from `getAvailableWalletProvidersData`).
|
|
3979
3988
|
* @returns The subset of `walletProviders` that match the catalog group.
|
|
3980
|
-
* @
|
|
3989
|
+
* @notInstrumented
|
|
3981
3990
|
*/
|
|
3982
3991
|
const matchWalletProvidersToCatalogGroup = ({ catalogGroupKey, catalogGroupName, walletProviders }) => {
|
|
3983
3992
|
const targets = new Set([normalize$1(catalogGroupKey)]);
|
|
@@ -4004,7 +4013,7 @@ const matchWalletProvidersToCatalogGroup = ({ catalogGroupKey, catalogGroupName,
|
|
|
4004
4013
|
* multi-chain wallet (same `groupId` across EVM + SOL entries) only runs
|
|
4005
4014
|
* the match once.
|
|
4006
4015
|
*
|
|
4007
|
-
* @
|
|
4016
|
+
* @notInstrumented
|
|
4008
4017
|
*/
|
|
4009
4018
|
const collectInstalledGroupIds = ({ catalog, walletProviders }) => {
|
|
4010
4019
|
const installedGroupIds = /* @__PURE__ */ new Set();
|
|
@@ -4047,7 +4056,7 @@ const collectInstalledGroupIds = ({ catalog, walletProviders }) => {
|
|
|
4047
4056
|
* @param params.catalog - The full WalletConnect catalog (typically from `getWalletConnectCatalog`).
|
|
4048
4057
|
* @param params.walletProviders - Currently available wallet providers.
|
|
4049
4058
|
* @returns A new catalog with only the wallets and groups the user does not have installed.
|
|
4050
|
-
* @
|
|
4059
|
+
* @notInstrumented
|
|
4051
4060
|
*/
|
|
4052
4061
|
const excludeInstalledFromCatalog = ({ catalog, walletProviders }) => {
|
|
4053
4062
|
const installedGroupIds = collectInstalledGroupIds({
|
|
@@ -4075,7 +4084,7 @@ const excludeInstalledFromCatalog = ({ catalog, walletProviders }) => {
|
|
|
4075
4084
|
//#region src/modules/legacyWalletBook/getWalletBookCdnUrl/getWalletBookCdnUrl.ts
|
|
4076
4085
|
/**
|
|
4077
4086
|
* Default CDN URL for the wallet book.
|
|
4078
|
-
* @
|
|
4087
|
+
* @notInstrumented
|
|
4079
4088
|
*/
|
|
4080
4089
|
const DEFAULT_WALLET_BOOK_CDN_URL = "https://dynamic-static-assets.com/wallet-book/v1/stable/wallet-book.json";
|
|
4081
4090
|
/**
|
|
@@ -4087,7 +4096,7 @@ const DEFAULT_WALLET_BOOK_CDN_URL = "https://dynamic-static-assets.com/wallet-bo
|
|
|
4087
4096
|
* 4. Default CDN URL
|
|
4088
4097
|
*
|
|
4089
4098
|
* @returns The wallet book CDN URL to use.
|
|
4090
|
-
* @
|
|
4099
|
+
* @notInstrumented
|
|
4091
4100
|
*/
|
|
4092
4101
|
const getWalletBookCdnUrl = () => {
|
|
4093
4102
|
if (typeof process !== "undefined" && process.env) {
|
|
@@ -4101,7 +4110,7 @@ const getWalletBookCdnUrl = () => {
|
|
|
4101
4110
|
//#region src/modules/legacyWalletBook/fetchLegacyWalletBook/fetchWithTimeout/fetchWithTimeout.ts
|
|
4102
4111
|
/**
|
|
4103
4112
|
* The timeout for each fetch attempt in milliseconds.
|
|
4104
|
-
* @
|
|
4113
|
+
* @notInstrumented
|
|
4105
4114
|
*/
|
|
4106
4115
|
const FETCH_TIMEOUT_MS = 3e4;
|
|
4107
4116
|
/**
|
|
@@ -4109,7 +4118,7 @@ const FETCH_TIMEOUT_MS = 3e4;
|
|
|
4109
4118
|
*
|
|
4110
4119
|
* @param client - The Dynamic client instance.
|
|
4111
4120
|
* @returns A promise that resolves to the wallet book data.
|
|
4112
|
-
* @
|
|
4121
|
+
* @notInstrumented
|
|
4113
4122
|
*/
|
|
4114
4123
|
const fetchWithTimeout = async (client) => {
|
|
4115
4124
|
const controller = new AbortController();
|
|
@@ -4141,7 +4150,7 @@ const walletBookCacheStorageKeySchema = createStorageKeySchema({
|
|
|
4141
4150
|
//#region src/modules/legacyWalletBook/fetchLegacyWalletBook/fetchLegacyWalletBook.ts
|
|
4142
4151
|
/**
|
|
4143
4152
|
* The maximum number of retry attempts.
|
|
4144
|
-
* @
|
|
4153
|
+
* @notInstrumented
|
|
4145
4154
|
*/
|
|
4146
4155
|
const MAX_RETRIES = 3;
|
|
4147
4156
|
/**
|
|
@@ -4158,7 +4167,7 @@ const RETRY_DELAY_MS = 100;
|
|
|
4158
4167
|
* @param client - The Dynamic client instance.
|
|
4159
4168
|
* @returns A promise that resolves to the wallet book data.
|
|
4160
4169
|
* @throws If both CDN fetch and cache retrieval fail.
|
|
4161
|
-
* @
|
|
4170
|
+
* @notInstrumented
|
|
4162
4171
|
*/
|
|
4163
4172
|
const fetchLegacyWalletBook = async (client) => {
|
|
4164
4173
|
const core = getCore(client);
|
|
@@ -4191,7 +4200,7 @@ const fetchLegacyWalletBook = async (client) => {
|
|
|
4191
4200
|
* catalogue. These wallets are not products the user "connects" to from the
|
|
4192
4201
|
* wallet selection list — they are embedded sign-in methods that live behind
|
|
4193
4202
|
* different SDK entry points.
|
|
4194
|
-
* @
|
|
4203
|
+
* @notInstrumented
|
|
4195
4204
|
*/
|
|
4196
4205
|
const EMBEDDED_WALLET_KEYS = [
|
|
4197
4206
|
"magicemailotp",
|
|
@@ -4220,7 +4229,7 @@ const EMBEDDED_WALLET_KEYS = [
|
|
|
4220
4229
|
* {@link shouldFilterWalletForWalletConnect}.
|
|
4221
4230
|
*
|
|
4222
4231
|
* @returns True if the wallet should be filtered out, false otherwise.
|
|
4223
|
-
* @
|
|
4232
|
+
* @notInstrumented
|
|
4224
4233
|
*/
|
|
4225
4234
|
const shouldFilterWallet = ({ wallet, walletKey }) => {
|
|
4226
4235
|
if (EMBEDDED_WALLET_KEYS.includes(walletKey)) return true;
|
|
@@ -4240,7 +4249,7 @@ const shouldFilterWallet = ({ wallet, walletKey }) => {
|
|
|
4240
4249
|
*
|
|
4241
4250
|
* @returns True if the wallet should be excluded from the WalletConnect
|
|
4242
4251
|
* catalog, false otherwise.
|
|
4243
|
-
* @
|
|
4252
|
+
* @notInstrumented
|
|
4244
4253
|
*/
|
|
4245
4254
|
const shouldFilterWalletForWalletConnect = ({ wallet, walletKey }) => {
|
|
4246
4255
|
if (shouldFilterWallet({
|
|
@@ -4257,7 +4266,7 @@ const shouldFilterWalletForWalletConnect = ({ wallet, walletKey }) => {
|
|
|
4257
4266
|
*
|
|
4258
4267
|
* @param params.spriteId - The sprite identifier from the wallet book.
|
|
4259
4268
|
* @returns The full URL to the sprite icon
|
|
4260
|
-
* @
|
|
4269
|
+
* @notInstrumented
|
|
4261
4270
|
*/
|
|
4262
4271
|
const getSpriteUrl = ({ spriteId }) => `${DYNAMIC_ICONIC_SPRITE_URL}#${spriteId}`;
|
|
4263
4272
|
|
|
@@ -4265,7 +4274,7 @@ const getSpriteUrl = ({ spriteId }) => `${DYNAMIC_ICONIC_SPRITE_URL}#${spriteId}
|
|
|
4265
4274
|
//#region src/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/transformGroup.ts
|
|
4266
4275
|
/**
|
|
4267
4276
|
* Transforms a wallet group schema into a WalletConnect catalog group.
|
|
4268
|
-
* @
|
|
4277
|
+
* @notInstrumented
|
|
4269
4278
|
*/
|
|
4270
4279
|
const transformGroup = ({ group }) => {
|
|
4271
4280
|
const spriteId = group.brand?.spriteId ?? "";
|
|
@@ -4292,7 +4301,7 @@ const transformGroup = ({ group }) => {
|
|
|
4292
4301
|
*
|
|
4293
4302
|
* Centralised here rather than in `legacyWalletBook` so all chain naming
|
|
4294
4303
|
* knowledge stays alongside `CHAINS_INFO_MAP`.
|
|
4295
|
-
* @
|
|
4304
|
+
* @notInstrumented
|
|
4296
4305
|
*/
|
|
4297
4306
|
const getChainFromWalletBookIdentifier = ({ identifier }) => {
|
|
4298
4307
|
const normalised = identifier.toLowerCase();
|
|
@@ -4310,7 +4319,7 @@ const getChainFromWalletBookIdentifier = ({ identifier }) => {
|
|
|
4310
4319
|
*
|
|
4311
4320
|
* Exported so {@link getChainsFromWalletSchema} can apply the same
|
|
4312
4321
|
* parsing to its multi-chain pass without duplicating the logic.
|
|
4313
|
-
* @
|
|
4322
|
+
* @notInstrumented
|
|
4314
4323
|
*/
|
|
4315
4324
|
const extractChainPrefix = ({ chainIdentifier }) => {
|
|
4316
4325
|
const colonIndex = chainIdentifier.indexOf(":");
|
|
@@ -4343,7 +4352,7 @@ const getChainFromWalletKey = ({ walletKey }) => {
|
|
|
4343
4352
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
4344
4353
|
* @param params.walletKey - The wallet key identifier (optional, used as last resort fallback).
|
|
4345
4354
|
* @returns The chain type, defaults to EVM if no chain can be determined.
|
|
4346
|
-
* @
|
|
4355
|
+
* @notInstrumented
|
|
4347
4356
|
*/
|
|
4348
4357
|
const getChainFromWalletSchema = ({ wallet, walletKey }) => {
|
|
4349
4358
|
if (wallet.injectedConfig && wallet.injectedConfig.length > 0) {
|
|
@@ -4371,7 +4380,7 @@ const getChainFromWalletSchema = ({ wallet, walletKey }) => {
|
|
|
4371
4380
|
//#region src/modules/legacyWalletBook/getWalletConnectCatalog/transformWallet/transformWallet.ts
|
|
4372
4381
|
/**
|
|
4373
4382
|
* Transforms a wallet schema into a WalletConnect catalog wallet entry.
|
|
4374
|
-
* @
|
|
4383
|
+
* @notInstrumented
|
|
4375
4384
|
*/
|
|
4376
4385
|
const transformWallet = ({ wallet, walletKey }) => {
|
|
4377
4386
|
const spriteId = wallet.brand?.spriteId ?? "";
|
|
@@ -4402,7 +4411,7 @@ const transformWallet = ({ wallet, walletKey }) => {
|
|
|
4402
4411
|
/**
|
|
4403
4412
|
* Transforms the legacy wallet book into a WalletConnect catalog structure.
|
|
4404
4413
|
* Filters out embedded wallets and injected-only wallets.
|
|
4405
|
-
* @
|
|
4414
|
+
* @notInstrumented
|
|
4406
4415
|
*/
|
|
4407
4416
|
const transformWalletBook = ({ walletBook }) => {
|
|
4408
4417
|
const groups = {};
|
|
@@ -4435,7 +4444,7 @@ const transformWalletBook = ({ walletBook }) => {
|
|
|
4435
4444
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4436
4445
|
* @returns A promise that resolves to the WalletConnect catalog containing groups and wallets.
|
|
4437
4446
|
* @throws If unable to fetch the wallet book from the API (when both CDN fetch and cache retrieval fail).
|
|
4438
|
-
* @
|
|
4447
|
+
* @notInstrumented
|
|
4439
4448
|
*/
|
|
4440
4449
|
const getWalletConnectCatalog = async (client = getDefaultClient()) => {
|
|
4441
4450
|
return transformWalletBook({ walletBook: await fetchLegacyWalletBook(client) });
|
|
@@ -4449,7 +4458,7 @@ const getWalletConnectCatalog = async (client = getDefaultClient()) => {
|
|
|
4449
4458
|
*
|
|
4450
4459
|
* @param params.normalizedWalletNameWithChain - The normalized wallet name with chain suffix.
|
|
4451
4460
|
* @returns The chain if found, undefined otherwise.
|
|
4452
|
-
* @
|
|
4461
|
+
* @notInstrumented
|
|
4453
4462
|
*/
|
|
4454
4463
|
const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
|
|
4455
4464
|
const lowerName = normalizedWalletNameWithChain.toLowerCase();
|
|
@@ -4469,7 +4478,7 @@ const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
|
|
|
4469
4478
|
* @param params.walletProviderKey - The wallet provider key to get the catalog wallet entry for.
|
|
4470
4479
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4471
4480
|
* @returns A promise that resolves to the WalletConnect catalog wallet entry, or undefined if not found.
|
|
4472
|
-
* @
|
|
4481
|
+
* @notInstrumented
|
|
4473
4482
|
*/
|
|
4474
4483
|
const getWalletConnectCatalogWalletByWalletProviderKey = async ({ walletProviderKey }, client = getDefaultClient()) => {
|
|
4475
4484
|
const { normalizedWalletNameWithChain } = splitWalletProviderKey(walletProviderKey);
|
|
@@ -4575,7 +4584,7 @@ const __acknowledgeRecoveryCodes_wrapped = instrumentFunction({
|
|
|
4575
4584
|
* @param [params.requestedScopes] - Optional scopes to request an elevated access token instead of an MFA token.
|
|
4576
4585
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4577
4586
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4578
|
-
* @
|
|
4587
|
+
* @notInstrumented
|
|
4579
4588
|
*/
|
|
4580
4589
|
const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, requestedScopes }, client = getDefaultClient()) => {
|
|
4581
4590
|
const core = getCore(client);
|
|
@@ -4606,7 +4615,7 @@ const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, reques
|
|
|
4606
4615
|
|
|
4607
4616
|
//#endregion
|
|
4608
4617
|
//#region src/modules/auth/passkeys/getPasskeyAuthenticationOptions/getPasskeyAuthenticationOptions.ts
|
|
4609
|
-
/** @
|
|
4618
|
+
/** @notInstrumented */
|
|
4610
4619
|
const getPasskeyAuthenticationOptions = async ({ relatedOriginRpId } = {}, client) => {
|
|
4611
4620
|
const core = getCore(client);
|
|
4612
4621
|
return await createApiClient({}, client).getPasskeyAuthenticationOptions({
|
|
@@ -4617,7 +4626,7 @@ const getPasskeyAuthenticationOptions = async ({ relatedOriginRpId } = {}, clien
|
|
|
4617
4626
|
|
|
4618
4627
|
//#endregion
|
|
4619
4628
|
//#region src/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.ts
|
|
4620
|
-
/** @
|
|
4629
|
+
/** @notInstrumented */
|
|
4621
4630
|
const serverAuthenticatePasskey = async ({ authentication, createMfaToken, requestedScopes }, client) => {
|
|
4622
4631
|
const core = getCore(client);
|
|
4623
4632
|
return await createApiClient({}, client).authenticateMfaPasskeyDevice({
|
|
@@ -4648,7 +4657,7 @@ const serverAuthenticatePasskey = async ({ authentication, createMfaToken, reque
|
|
|
4648
4657
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4649
4658
|
* @throws NoWebAuthNSupportError If WebAuthn is not supported by the browser.
|
|
4650
4659
|
* @throws NoPasskeyCredentialsFoundError If no passkey credentials are found.
|
|
4651
|
-
* @
|
|
4660
|
+
* @notInstrumented
|
|
4652
4661
|
*/
|
|
4653
4662
|
const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, requestedScopes } = {}, client = getDefaultClient()) => {
|
|
4654
4663
|
const core = getCore(client);
|
|
@@ -4698,7 +4707,7 @@ const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, reque
|
|
|
4698
4707
|
* @param [params.requestedScopes] - Optional scopes to request an elevated access token instead of an MFA token.
|
|
4699
4708
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4700
4709
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4701
|
-
* @
|
|
4710
|
+
* @notInstrumented
|
|
4702
4711
|
*/
|
|
4703
4712
|
const authenticateTotpMfaDevice = async ({ deviceId, code, createMfaTokenOptions, requestedScopes }, client = getDefaultClient()) => {
|
|
4704
4713
|
const core = getCore(client);
|
|
@@ -4784,7 +4793,7 @@ const __createNewMfaRecoveryCodes_wrapped = instrumentFunction({
|
|
|
4784
4793
|
const deleteMfaDevice = async ({ deviceId, mfaAuthToken }, client = getDefaultClient()) => {
|
|
4785
4794
|
const core = getCore(client);
|
|
4786
4795
|
assertDefined(deviceId, "deviceId is required");
|
|
4787
|
-
if (!
|
|
4796
|
+
if (!getElevatedAccessToken({
|
|
4788
4797
|
consume: false,
|
|
4789
4798
|
scope: TokenScope.Credentialunlink
|
|
4790
4799
|
}, client)) assertDefined(mfaAuthToken, "mfaAuthToken is required");
|
|
@@ -4817,7 +4826,7 @@ const __deleteMfaDevice_wrapped = instrumentFunction({
|
|
|
4817
4826
|
*
|
|
4818
4827
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4819
4828
|
* @returns A promise that resolves to an array of the user's registered MFA devices.
|
|
4820
|
-
* @
|
|
4829
|
+
* @notInstrumented
|
|
4821
4830
|
*/
|
|
4822
4831
|
const getMfaDevices = async (client = getDefaultClient()) => {
|
|
4823
4832
|
const core = getCore(client);
|
|
@@ -4837,7 +4846,7 @@ const getMfaDevices = async (client = getDefaultClient()) => {
|
|
|
4837
4846
|
*
|
|
4838
4847
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4839
4848
|
* @returns A promise that resolves to the user's MFA recovery codes.
|
|
4840
|
-
* @
|
|
4849
|
+
* @notInstrumented
|
|
4841
4850
|
*/
|
|
4842
4851
|
const getMfaRecoveryCodes = async (client = getDefaultClient()) => {
|
|
4843
4852
|
const core = getCore(client);
|
|
@@ -4856,6 +4865,9 @@ const getMfaRecoveryCodes = async (client = getDefaultClient()) => {
|
|
|
4856
4865
|
* @returns A promise that resolves to the TOTP registration response containing setup information,
|
|
4857
4866
|
* like the secret key and the OTP Auth URI.
|
|
4858
4867
|
* @instrumented
|
|
4868
|
+
* @redact-params - the response embeds the TOTP shared secret in both `secret`
|
|
4869
|
+
* and the `uri` (`otpauth://...?secret=...`); redact the whole event so the
|
|
4870
|
+
* seed never reaches logs via the un-keyed `uri` field.
|
|
4859
4871
|
*/
|
|
4860
4872
|
const registerTotpMfaDevice = async (client = getDefaultClient()) => {
|
|
4861
4873
|
const core = getCore(client);
|
|
@@ -4871,7 +4883,8 @@ const __registerTotpMfaDevice_wrapped = instrumentFunction({
|
|
|
4871
4883
|
} catch {
|
|
4872
4884
|
return;
|
|
4873
4885
|
}
|
|
4874
|
-
}
|
|
4886
|
+
},
|
|
4887
|
+
redactAll: true
|
|
4875
4888
|
});
|
|
4876
4889
|
|
|
4877
4890
|
//#endregion
|
|
@@ -5922,7 +5935,7 @@ const __sendSmsOTP_wrapped = instrumentFunction({
|
|
|
5922
5935
|
|
|
5923
5936
|
//#endregion
|
|
5924
5937
|
//#region src/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.ts
|
|
5925
|
-
/** @
|
|
5938
|
+
/** @notInstrumented */
|
|
5926
5939
|
const verifyOTPForUserSignIn = async ({ otpVerification, verificationToken }, client) => {
|
|
5927
5940
|
const core = getCore(client);
|
|
5928
5941
|
const apiClient = createApiClient({}, client);
|
|
@@ -5942,7 +5955,7 @@ const verifyOTPForUserSignIn = async ({ otpVerification, verificationToken }, cl
|
|
|
5942
5955
|
|
|
5943
5956
|
//#endregion
|
|
5944
5957
|
//#region src/modules/otp/verifyOTP/verifyOTPForUserUpdate/verifyOTPForUserUpdate.ts
|
|
5945
|
-
/** @
|
|
5958
|
+
/** @notInstrumented */
|
|
5946
5959
|
const verifyOTPForUserUpdate = async ({ otpVerification, verificationToken, requestedScopes }, client) => {
|
|
5947
5960
|
const core = getCore(client);
|
|
5948
5961
|
const apiClient = createApiClient({}, client);
|
|
@@ -6013,7 +6026,7 @@ const __verifyOTP_wrapped = instrumentFunction({
|
|
|
6013
6026
|
* @param params GetSwapQuoteParams - The parameters for the swap quote.
|
|
6014
6027
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
6015
6028
|
* @returns The swap quote details. Use the `signingPayload` field to get the transaction data for the wallet to sign.
|
|
6016
|
-
* @
|
|
6029
|
+
* @notInstrumented
|
|
6017
6030
|
*/
|
|
6018
6031
|
const getSwapQuote = async (params, client = getDefaultClient()) => {
|
|
6019
6032
|
const core = getCore(client);
|
|
@@ -6048,7 +6061,7 @@ const getSwapQuote = async (params, client = getDefaultClient()) => {
|
|
|
6048
6061
|
* @param params GetSwapStatusParams - The parameters for the swap status.
|
|
6049
6062
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
6050
6063
|
* @returns The swap status.
|
|
6051
|
-
* @
|
|
6064
|
+
* @notInstrumented
|
|
6052
6065
|
*/
|
|
6053
6066
|
const getSwapStatus = async (params, client = getDefaultClient()) => {
|
|
6054
6067
|
const core = getCore(client);
|
|
@@ -6144,7 +6157,7 @@ const ACCESS_DENIED_PHRASE = "Google Drive access denied";
|
|
|
6144
6157
|
*
|
|
6145
6158
|
* @param grantedScopes - Scopes the user has granted to their Google account.
|
|
6146
6159
|
* @returns The subset of required scopes that are still missing.
|
|
6147
|
-
* @
|
|
6160
|
+
* @notInstrumented
|
|
6148
6161
|
*/
|
|
6149
6162
|
const findMissingGoogleDriveBackupScopes = (grantedScopes) => GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES.filter((required) => !grantedScopes.includes(required));
|
|
6150
6163
|
|
|
@@ -6162,7 +6175,7 @@ const findMissingGoogleDriveBackupScopes = (grantedScopes) => GOOGLE_DRIVE_BACKU
|
|
|
6162
6175
|
* Google account (see `findGoogleOauthAccountId`).
|
|
6163
6176
|
* @param client - The Dynamic client instance.
|
|
6164
6177
|
* @returns The OAuth access token and granted scopes.
|
|
6165
|
-
* @
|
|
6178
|
+
* @notInstrumented
|
|
6166
6179
|
*/
|
|
6167
6180
|
const fetchGoogleDriveOauthAccess = async ({ oauthAccountId }, client) => {
|
|
6168
6181
|
const core = getCore(client);
|
|
@@ -6187,7 +6200,7 @@ const fetchGoogleDriveOauthAccess = async ({ oauthAccountId }, client) => {
|
|
|
6187
6200
|
* `client.user?.verifiedCredentials`.
|
|
6188
6201
|
* @returns The credential id of the linked Google oauth account, or
|
|
6189
6202
|
* `undefined`.
|
|
6190
|
-
* @
|
|
6203
|
+
* @notInstrumented
|
|
6191
6204
|
*/
|
|
6192
6205
|
const findGoogleOauthAccountId = (credentials) => credentials?.find((cred) => cred.format === JwtVerifiedCredentialFormatEnum.Oauth && cred.oauthProvider === ProviderEnum.Google)?.id;
|
|
6193
6206
|
|
|
@@ -6271,7 +6284,7 @@ const __getGoogleDriveBackupReadiness_wrapped = instrumentFunction({
|
|
|
6271
6284
|
*
|
|
6272
6285
|
* @param grantedScopes - Scopes the user has granted to their Google account.
|
|
6273
6286
|
* @returns `true` when every required scope is granted, otherwise `false`.
|
|
6274
|
-
* @
|
|
6287
|
+
* @notInstrumented
|
|
6275
6288
|
*/
|
|
6276
6289
|
const hasAllGoogleDriveBackupScopes = (grantedScopes) => findMissingGoogleDriveBackupScopes(grantedScopes).length === 0;
|
|
6277
6290
|
|
|
@@ -6288,7 +6301,7 @@ const hasAllGoogleDriveBackupScopes = (grantedScopes) => findMissingGoogleDriveB
|
|
|
6288
6301
|
* @param err - The unknown value to check.
|
|
6289
6302
|
* @returns `true` when `err` is an `Error` whose message indicates Google
|
|
6290
6303
|
* Drive access was denied.
|
|
6291
|
-
* @
|
|
6304
|
+
* @notInstrumented
|
|
6292
6305
|
*/
|
|
6293
6306
|
const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && err.message.includes(ACCESS_DENIED_PHRASE);
|
|
6294
6307
|
|
|
@@ -6296,57 +6309,57 @@ const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && er
|
|
|
6296
6309
|
//#region src/utils/isMobile/isMobile.ts
|
|
6297
6310
|
/**
|
|
6298
6311
|
* Sourced from http://detectmobilebrowsers.com/
|
|
6299
|
-
* @
|
|
6312
|
+
* @notInstrumented
|
|
6300
6313
|
*/
|
|
6301
6314
|
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|ios|ipad|playbook|silk/i;
|
|
6302
6315
|
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;
|
|
6303
|
-
/** @
|
|
6316
|
+
/** @notInstrumented */
|
|
6304
6317
|
const isMobile = (maxTouchPointsOverride) => {
|
|
6305
6318
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6306
6319
|
return userAgentRegex1.test(navigator.userAgent) || userAgentRegex2.test(navigator.userAgent.substring(0, 4)) || isIPad(maxTouchPointsOverride) || isIPhone();
|
|
6307
6320
|
};
|
|
6308
|
-
/** @
|
|
6321
|
+
/** @notInstrumented */
|
|
6309
6322
|
const isIPhone = () => typeof window === "undefined" || typeof navigator === "undefined" ? false : /iPhone|ios/.test(navigator.userAgent);
|
|
6310
6323
|
/**
|
|
6311
6324
|
* @param [optional] maxTouchPointsOverride - this is used for testing since
|
|
6312
6325
|
* it seems that JSDOM doesn't support maxTouchPoints, so it was impossible
|
|
6313
6326
|
* to mock it
|
|
6314
|
-
* @
|
|
6327
|
+
* @notInstrumented
|
|
6315
6328
|
*/
|
|
6316
6329
|
const isIPad = (maxTouchPointsOverride) => {
|
|
6317
6330
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6318
6331
|
const maxTouchPoints = maxTouchPointsOverride || navigator.maxTouchPoints;
|
|
6319
6332
|
return /iPad/.test(navigator.userAgent) || /Mac/.test(navigator.userAgent) && maxTouchPoints === 5;
|
|
6320
6333
|
};
|
|
6321
|
-
/** @
|
|
6334
|
+
/** @notInstrumented */
|
|
6322
6335
|
const isIOS = (maxTouchPointsOverride) => {
|
|
6323
6336
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6324
6337
|
return isIPhone() || isIPad(maxTouchPointsOverride);
|
|
6325
6338
|
};
|
|
6326
|
-
/** @
|
|
6339
|
+
/** @notInstrumented */
|
|
6327
6340
|
const isAndroid = () => isMobile() && !isIOS();
|
|
6328
|
-
/** @
|
|
6341
|
+
/** @notInstrumented */
|
|
6329
6342
|
const isSafariBrowser = () => {
|
|
6330
6343
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6331
6344
|
const { userAgent } = navigator;
|
|
6332
6345
|
return userAgent.includes("Safari") && !userAgent.includes("Chrome") && !userAgent.includes("Chromium");
|
|
6333
6346
|
};
|
|
6334
|
-
/** @
|
|
6347
|
+
/** @notInstrumented */
|
|
6335
6348
|
const isEdgeBrowser = () => {
|
|
6336
6349
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6337
6350
|
return /\bEdg\//.test(navigator.userAgent);
|
|
6338
6351
|
};
|
|
6339
|
-
/** @
|
|
6352
|
+
/** @notInstrumented */
|
|
6340
6353
|
const isOperaBrowser = () => {
|
|
6341
6354
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6342
6355
|
return /\b(OPR|Opera)\//.test(navigator.userAgent);
|
|
6343
6356
|
};
|
|
6344
|
-
/** @
|
|
6357
|
+
/** @notInstrumented */
|
|
6345
6358
|
const isFirefoxBrowser = () => {
|
|
6346
6359
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6347
6360
|
return /\bFirefox\//.test(navigator.userAgent);
|
|
6348
6361
|
};
|
|
6349
|
-
/** @
|
|
6362
|
+
/** @notInstrumented */
|
|
6350
6363
|
const isChromeBrowser = () => {
|
|
6351
6364
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6352
6365
|
return /\bChrome\//.test(navigator.userAgent) && !isEdgeBrowser() && !isOperaBrowser();
|
|
@@ -6380,7 +6393,7 @@ const isChromeBrowser = () => {
|
|
|
6380
6393
|
* @param params.installationUrls - The wallet option's `installationUrls`
|
|
6381
6394
|
* record (from `getWalletOptionsCatalogue`).
|
|
6382
6395
|
* @returns The install URL for the detected platform, or `undefined`.
|
|
6383
|
-
* @
|
|
6396
|
+
* @notInstrumented
|
|
6384
6397
|
*/
|
|
6385
6398
|
const getInstallationLinkForCurrentPlatform = ({ installationUrls }) => {
|
|
6386
6399
|
if (isIOS()) return installationUrls.ios;
|
|
@@ -6406,7 +6419,7 @@ const getInstallationLinkForCurrentPlatform = ({ installationUrls }) => {
|
|
|
6406
6419
|
* @param params.wallet - The wallet entry.
|
|
6407
6420
|
* @param params.walletKey - The wallet's key in `walletBook.wallets`.
|
|
6408
6421
|
* @returns The wallet option key.
|
|
6409
|
-
* @
|
|
6422
|
+
* @notInstrumented
|
|
6410
6423
|
*/
|
|
6411
6424
|
const resolveWalletBookWalletOptionKey = ({ wallet, walletKey }) => wallet.group ?? wallet.chainGroup ?? wallet.walletGroup ?? walletKey;
|
|
6412
6425
|
|
|
@@ -6421,7 +6434,7 @@ const resolveWalletBookWalletOptionKey = ({ wallet, walletKey }) => wallet.group
|
|
|
6421
6434
|
*
|
|
6422
6435
|
* @param params.wallet - The wallet book wallet entry.
|
|
6423
6436
|
* @returns The in-app browser URL, or `undefined` if neither field is set.
|
|
6424
|
-
* @
|
|
6437
|
+
* @notInstrumented
|
|
6425
6438
|
*/
|
|
6426
6439
|
const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wallet.mobile?.inAppBrowser ?? void 0;
|
|
6427
6440
|
|
|
@@ -6439,7 +6452,7 @@ const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wall
|
|
|
6439
6452
|
*
|
|
6440
6453
|
* @param params.walletBook - The fetched wallet book.
|
|
6441
6454
|
* @returns Tagged `inAppBrowser` options paired with their wallet option keys.
|
|
6442
|
-
* @
|
|
6455
|
+
* @notInstrumented
|
|
6443
6456
|
*/
|
|
6444
6457
|
const buildInAppBrowserOptions = ({ walletBook }) => {
|
|
6445
6458
|
const result = [];
|
|
@@ -6486,7 +6499,7 @@ const EDGE_ADDONS_URL_TEMPLATE = "https://microsoftedge.microsoft.com/addons/det
|
|
|
6486
6499
|
*
|
|
6487
6500
|
* @param params.wallet - The wallet book entry.
|
|
6488
6501
|
* @returns The URL bag, omitting fields the wallet does not provide.
|
|
6489
|
-
* @
|
|
6502
|
+
* @notInstrumented
|
|
6490
6503
|
*/
|
|
6491
6504
|
const buildInstallationUrls = ({ wallet }) => {
|
|
6492
6505
|
const androidId = wallet.mobile?.androidId;
|
|
@@ -6530,7 +6543,7 @@ const hasAnyInstallationUrl = ({ urls }) => Object.values(urls).some(Boolean);
|
|
|
6530
6543
|
*
|
|
6531
6544
|
* @param params.walletBook - The fetched wallet book.
|
|
6532
6545
|
* @returns A map from wallet option key to its install URL bag.
|
|
6533
|
-
* @
|
|
6546
|
+
* @notInstrumented
|
|
6534
6547
|
*/
|
|
6535
6548
|
const buildInstallationUrlsByWalletOptionKey = ({ walletBook }) => {
|
|
6536
6549
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -6561,7 +6574,7 @@ const buildInstallationUrlsByWalletOptionKey = ({ walletBook }) => {
|
|
|
6561
6574
|
*
|
|
6562
6575
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
6563
6576
|
* @returns True when the wallet has a native or universal mobile link.
|
|
6564
|
-
* @
|
|
6577
|
+
* @notInstrumented
|
|
6565
6578
|
*/
|
|
6566
6579
|
const hasUsableDeeplink = ({ wallet }) => Boolean(wallet.mobile?.native || wallet.mobile?.universal);
|
|
6567
6580
|
|
|
@@ -6600,7 +6613,7 @@ const METAMASK_SDK_URI_SUPPORTED_CHAINS = ["EVM", "SOL"];
|
|
|
6600
6613
|
*
|
|
6601
6614
|
* @param params.walletBook - The fetched wallet book.
|
|
6602
6615
|
* @returns Tagged `metamaskSdkUri` options for MetaMask if eligible, otherwise an empty array.
|
|
6603
|
-
* @
|
|
6616
|
+
* @notInstrumented
|
|
6604
6617
|
*/
|
|
6605
6618
|
const buildMetaMaskSdkUriOptions = ({ walletBook }) => {
|
|
6606
6619
|
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) {
|
|
@@ -6647,7 +6660,7 @@ const buildMetaMaskSdkUriOptions = ({ walletBook }) => {
|
|
|
6647
6660
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
6648
6661
|
* @param [params.walletKey] - The wallet key identifier (used as last-resort fallback).
|
|
6649
6662
|
* @returns Ordered, deduped array of Chains.
|
|
6650
|
-
* @
|
|
6663
|
+
* @notInstrumented
|
|
6651
6664
|
*/
|
|
6652
6665
|
const getChainsFromWalletSchema = ({ wallet, walletKey }) => {
|
|
6653
6666
|
const chains = /* @__PURE__ */ new Set();
|
|
@@ -6698,7 +6711,7 @@ const WALLETCONNECT_SUPPORTED_CHAINS = new Set(["EVM", "SOL"]);
|
|
|
6698
6711
|
*
|
|
6699
6712
|
* @param params.walletBook - The fetched wallet book.
|
|
6700
6713
|
* @returns Tagged `walletConnect` options paired with their wallet option keys.
|
|
6701
|
-
* @
|
|
6714
|
+
* @notInstrumented
|
|
6702
6715
|
*/
|
|
6703
6716
|
const buildWalletConnectOptions = ({ walletBook }) => {
|
|
6704
6717
|
const result = [];
|
|
@@ -6765,7 +6778,7 @@ const buildWalletConnectOptions = ({ walletBook }) => {
|
|
|
6765
6778
|
* @param params.walletBook - The fetched wallet book.
|
|
6766
6779
|
* @param params.walletOptionKey - The wallet option key.
|
|
6767
6780
|
* @returns The constructed wallet option.
|
|
6768
|
-
* @
|
|
6781
|
+
* @notInstrumented
|
|
6769
6782
|
*/
|
|
6770
6783
|
const buildWalletOption = ({ connectionOptions, displayOverride, installationUrls, walletBook, walletOptionKey }) => {
|
|
6771
6784
|
const group = walletBook.groups[walletOptionKey];
|
|
@@ -6803,7 +6816,7 @@ const buildWalletOption = ({ connectionOptions, displayOverride, installationUrl
|
|
|
6803
6816
|
*
|
|
6804
6817
|
* @param params.walletProvider - The wallet provider to test.
|
|
6805
6818
|
* @returns True when the provider exposes a `connect` method.
|
|
6806
|
-
* @
|
|
6819
|
+
* @notInstrumented
|
|
6807
6820
|
*/
|
|
6808
6821
|
const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletProvider.connect);
|
|
6809
6822
|
|
|
@@ -6830,7 +6843,7 @@ const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletPro
|
|
|
6830
6843
|
* @param params.entry - The registry entry to classify.
|
|
6831
6844
|
* @returns The matching source, or `undefined` if this entry should not
|
|
6832
6845
|
* surface a `withWalletProvider` option.
|
|
6833
|
-
* @
|
|
6846
|
+
* @notInstrumented
|
|
6834
6847
|
*/
|
|
6835
6848
|
const classifyWithWalletProviderSource = ({ entry }) => {
|
|
6836
6849
|
const { priority } = entry;
|
|
@@ -6851,7 +6864,7 @@ const classifyWithWalletProviderSource = ({ entry }) => {
|
|
|
6851
6864
|
* @param params.chain - The chain whose suffix should be stripped.
|
|
6852
6865
|
* @param params.normalizedName - The normalized wallet-name-with-chain string.
|
|
6853
6866
|
* @returns The name with the chain suffix removed, or the input unchanged.
|
|
6854
|
-
* @
|
|
6867
|
+
* @notInstrumented
|
|
6855
6868
|
*/
|
|
6856
6869
|
const stripChainSuffix = ({ chain, normalizedName }) => {
|
|
6857
6870
|
const suffix = chain.toLowerCase();
|
|
@@ -6880,7 +6893,7 @@ const stripChainSuffix = ({ chain, normalizedName }) => {
|
|
|
6880
6893
|
*
|
|
6881
6894
|
* @param displayName - The provider's `metadata.displayName`.
|
|
6882
6895
|
* @returns The normalized wallet option key (lowercased, no whitespace).
|
|
6883
|
-
* @
|
|
6896
|
+
* @notInstrumented
|
|
6884
6897
|
*/
|
|
6885
6898
|
const normalizeWalletDisplayName = (displayName) => displayName.toLowerCase().replace(/\s+/g, "");
|
|
6886
6899
|
|
|
@@ -6898,7 +6911,7 @@ const normalize = (value) => value === void 0 ? void 0 : value.toLowerCase().rep
|
|
|
6898
6911
|
* @param params.candidate - The lowercased, chain-suffix-stripped candidate.
|
|
6899
6912
|
* @param params.walletBook - The fetched wallet book.
|
|
6900
6913
|
* @returns The matching wallet book wallet key, or `undefined`.
|
|
6901
|
-
* @
|
|
6914
|
+
* @notInstrumented
|
|
6902
6915
|
*/
|
|
6903
6916
|
const findByNameMatch = ({ candidate, walletBook }) => {
|
|
6904
6917
|
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) if (normalize(wallet.name) === candidate || normalize(wallet.shortName) === candidate) return walletKey;
|
|
@@ -6916,7 +6929,7 @@ const findByNameMatch = ({ candidate, walletBook }) => {
|
|
|
6916
6929
|
* @param params.fallback - Wallet key to return if no group field is set.
|
|
6917
6930
|
* @param params.wallet - The wallet book wallet entry.
|
|
6918
6931
|
* @returns The resolved wallet option key.
|
|
6919
|
-
* @
|
|
6932
|
+
* @notInstrumented
|
|
6920
6933
|
*/
|
|
6921
6934
|
const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.chainGroup ?? wallet.walletGroup ?? fallback;
|
|
6922
6935
|
|
|
@@ -6953,7 +6966,7 @@ const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.
|
|
|
6953
6966
|
* @param params.walletBook - The fetched wallet book.
|
|
6954
6967
|
* @param params.walletProvider - The registered wallet provider.
|
|
6955
6968
|
* @returns The wallet option key for this provider.
|
|
6956
|
-
* @
|
|
6969
|
+
* @notInstrumented
|
|
6957
6970
|
*/
|
|
6958
6971
|
const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }) => {
|
|
6959
6972
|
const { normalizedWalletNameWithChain } = splitWalletProviderKey(walletProvider.key);
|
|
@@ -7001,7 +7014,7 @@ const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }
|
|
|
7001
7014
|
* @param params.walletBook - The fetched wallet book.
|
|
7002
7015
|
* @param client - The Dynamic client (used for logging unclassifiable entries).
|
|
7003
7016
|
* @returns An array of tagged options, in input order.
|
|
7004
|
-
* @
|
|
7017
|
+
* @notInstrumented
|
|
7005
7018
|
*/
|
|
7006
7019
|
const buildWithWalletProviderOptions = ({ entries, walletBook }, client) => {
|
|
7007
7020
|
const result = [];
|
|
@@ -7073,7 +7086,7 @@ const EXCLUDED_WALLET_OPTION_KEYS = new Set(["coinbase", "coinbasewallet"]);
|
|
|
7073
7086
|
* @param params.options - The tagged options to group.
|
|
7074
7087
|
* @returns A map from wallet option key to its grouped option bucket,
|
|
7075
7088
|
* iterable in first-seen order.
|
|
7076
|
-
* @
|
|
7089
|
+
* @notInstrumented
|
|
7077
7090
|
*/
|
|
7078
7091
|
const groupOptionsByWalletOption = ({ options }) => {
|
|
7079
7092
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -7113,7 +7126,7 @@ const CONNECTION_OPTION_PRIORITY = {
|
|
|
7113
7126
|
*
|
|
7114
7127
|
* @param params.option - The connection option to inspect.
|
|
7115
7128
|
* @returns The numeric priority — lower is better.
|
|
7116
|
-
* @
|
|
7129
|
+
* @notInstrumented
|
|
7117
7130
|
*/
|
|
7118
7131
|
const getConnectionOptionPriority = ({ option }) => CONNECTION_OPTION_PRIORITY[option.type];
|
|
7119
7132
|
|
|
@@ -7130,7 +7143,7 @@ const getConnectionOptionPriority = ({ option }) => CONNECTION_OPTION_PRIORITY[o
|
|
|
7130
7143
|
*
|
|
7131
7144
|
* @param params.options - The options to sort.
|
|
7132
7145
|
* @returns A new array in priority order.
|
|
7133
|
-
* @
|
|
7146
|
+
* @notInstrumented
|
|
7134
7147
|
*/
|
|
7135
7148
|
const sortConnectionOptions = ({ options }) => [...options].sort((a, b) => {
|
|
7136
7149
|
const priorityDelta = getConnectionOptionPriority({ option: a }) - getConnectionOptionPriority({ option: b });
|
|
@@ -7178,7 +7191,7 @@ const PRIORITY_WALLET_KEYS = [
|
|
|
7178
7191
|
*
|
|
7179
7192
|
* @param params.walletOption - The wallet option to inspect.
|
|
7180
7193
|
* @returns Numeric priority index — lower is better.
|
|
7181
|
-
* @
|
|
7194
|
+
* @notInstrumented
|
|
7182
7195
|
*/
|
|
7183
7196
|
const getPriorityIndex = ({ walletOption }) => {
|
|
7184
7197
|
const index = PRIORITY_WALLET_KEYS.indexOf(walletOption.key);
|
|
@@ -7195,7 +7208,7 @@ const getPriorityIndex = ({ walletOption }) => {
|
|
|
7195
7208
|
* @param params.a - First wallet option.
|
|
7196
7209
|
* @param params.b - Second wallet option.
|
|
7197
7210
|
* @returns Negative when `a` ranks first, positive when `b` ranks first.
|
|
7198
|
-
* @
|
|
7211
|
+
* @notInstrumented
|
|
7199
7212
|
*/
|
|
7200
7213
|
const compareByRelevance = ({ a, b }) => {
|
|
7201
7214
|
const aIndex = getPriorityIndex({ walletOption: a });
|
|
@@ -7215,7 +7228,7 @@ const compareByRelevance = ({ a, b }) => {
|
|
|
7215
7228
|
*
|
|
7216
7229
|
* @param params.walletOption - The wallet option to inspect.
|
|
7217
7230
|
* @returns True when `connectionOptions` is non-empty.
|
|
7218
|
-
* @
|
|
7231
|
+
* @notInstrumented
|
|
7219
7232
|
*/
|
|
7220
7233
|
const hasAnyConnectionOption = ({ walletOption }) => walletOption.connectionOptions.length > 0;
|
|
7221
7234
|
|
|
@@ -7230,7 +7243,7 @@ const hasAnyConnectionOption = ({ walletOption }) => walletOption.connectionOpti
|
|
|
7230
7243
|
*
|
|
7231
7244
|
* @param params.walletOption - The wallet option to inspect.
|
|
7232
7245
|
* @returns True when an installed provider is available.
|
|
7233
|
-
* @
|
|
7246
|
+
* @notInstrumented
|
|
7234
7247
|
*/
|
|
7235
7248
|
const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOptions[0]?.type === "withWalletProvider";
|
|
7236
7249
|
|
|
@@ -7260,7 +7273,7 @@ const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOption
|
|
|
7260
7273
|
* @param params.walletOptions - The wallet options to sort.
|
|
7261
7274
|
* @param params.ordering - The requested ordering.
|
|
7262
7275
|
* @returns A new array in the requested order.
|
|
7263
|
-
* @
|
|
7276
|
+
* @notInstrumented
|
|
7264
7277
|
*/
|
|
7265
7278
|
const sortWalletOptions = ({ walletOptions, ordering }) => {
|
|
7266
7279
|
if (ordering === "alphabetical") return [...walletOptions].sort((a, b) => a.name.localeCompare(b.name, void 0, { sensitivity: "base" }));
|
|
@@ -7309,7 +7322,7 @@ const EMPTY_WALLET_BOOK = {
|
|
|
7309
7322
|
* @param [params] - Inclusion flag + ordering preference + exclusions.
|
|
7310
7323
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7311
7324
|
* @returns A promise that resolves to the wallet options catalogue.
|
|
7312
|
-
* @
|
|
7325
|
+
* @notInstrumented
|
|
7313
7326
|
*/
|
|
7314
7327
|
const getWalletOptionsCatalogue = async (params = {}, client = getDefaultClient()) => {
|
|
7315
7328
|
const includeMobileOptions = params.includeMobileOptions ?? false;
|
|
@@ -7366,7 +7379,7 @@ const getWalletOptionsCatalogue = async (params = {}, client = getDefaultClient(
|
|
|
7366
7379
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7367
7380
|
* @returns A promise that resolves if the wallet is available for signing.
|
|
7368
7381
|
* @throws WalletAccountNotSelectedError If the wallet account is not currently selected.
|
|
7369
|
-
* @
|
|
7382
|
+
* @notInstrumented
|
|
7370
7383
|
*/
|
|
7371
7384
|
const assertWalletAccountSigningAvailability = async ({ walletAccount }, client = getDefaultClient()) => {
|
|
7372
7385
|
const { addresses } = await getWalletProviderFromWalletAccount({ walletAccount }, client).getConnectedAddresses();
|
|
@@ -7415,7 +7428,7 @@ const __confirmTransaction_wrapped = instrumentFunction({
|
|
|
7415
7428
|
|
|
7416
7429
|
//#endregion
|
|
7417
7430
|
//#region src/modules/wallets/utils/getAddressesWithTypesFromConnectionResult/getAddressesWithTypesFromConnectionResult.ts
|
|
7418
|
-
/** @
|
|
7431
|
+
/** @notInstrumented */
|
|
7419
7432
|
const getAddressesWithTypesFromConnectionResult = (connectionResult) => {
|
|
7420
7433
|
return connectionResult.addresses.filter((address) => !!address.address && !!address.type);
|
|
7421
7434
|
};
|
|
@@ -7490,13 +7503,13 @@ const __connectWithWalletProvider_wrapped = instrumentFunction({
|
|
|
7490
7503
|
* @param params.hardwareWalletVendor - The hardware wallet vendor that produced the signature.
|
|
7491
7504
|
* @param params.signature - The raw signature string to wrap.
|
|
7492
7505
|
* @returns The signature wrapped in `{ signedTransaction: { data } }` JSON format.
|
|
7493
|
-
* @
|
|
7506
|
+
* @notInstrumented
|
|
7494
7507
|
*/
|
|
7495
7508
|
const formatSignatureForHardwareWallet = ({ signature, hardwareWalletVendor: _ }) => JSON.stringify({ signedTransaction: { data: signature } });
|
|
7496
7509
|
|
|
7497
7510
|
//#endregion
|
|
7498
7511
|
//#region src/modules/wallets/utils/getChainIdForAccountVerification/getChainIdForAccountVerification.ts
|
|
7499
|
-
/** @
|
|
7512
|
+
/** @notInstrumented */
|
|
7500
7513
|
const getChainIdForAccountVerification = async ({ walletProvider }) => {
|
|
7501
7514
|
if ([
|
|
7502
7515
|
"BTC",
|
|
@@ -7510,7 +7523,7 @@ const getChainIdForAccountVerification = async ({ walletProvider }) => {
|
|
|
7510
7523
|
|
|
7511
7524
|
//#endregion
|
|
7512
7525
|
//#region src/modules/wallets/utils/getSignInMessage/getSignInMessage.ts
|
|
7513
|
-
/** @
|
|
7526
|
+
/** @notInstrumented */
|
|
7514
7527
|
const getSignInMessage = async ({ nonce: nonceOverride, walletAccount }, client) => {
|
|
7515
7528
|
const core = getCore(client);
|
|
7516
7529
|
const { appUniversalLink } = getAppMetadata(client);
|
|
@@ -7587,7 +7600,7 @@ const __proveWalletAccountOwnership_wrapped = instrumentFunction({
|
|
|
7587
7600
|
|
|
7588
7601
|
//#endregion
|
|
7589
7602
|
//#region src/modules/wallets/utils/isSameAddress/isSameAddress.ts
|
|
7590
|
-
/** @
|
|
7603
|
+
/** @notInstrumented */
|
|
7591
7604
|
const isSameAddress = ({ chain, left, right }) => normalizeAddress({
|
|
7592
7605
|
address: left,
|
|
7593
7606
|
chain
|
|
@@ -7598,7 +7611,7 @@ const isSameAddress = ({ chain, left, right }) => normalizeAddress({
|
|
|
7598
7611
|
|
|
7599
7612
|
//#endregion
|
|
7600
7613
|
//#region src/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.ts
|
|
7601
|
-
/** @
|
|
7614
|
+
/** @notInstrumented */
|
|
7602
7615
|
const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfer, requestedScopes }, client) => {
|
|
7603
7616
|
if (walletAccount.verifiedCredentialId) throw new WalletAccountAlreadyVerifiedError(walletAccount.address);
|
|
7604
7617
|
const walletProvider = getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7684,7 +7697,7 @@ const __verifyWalletAccount_wrapped = instrumentFunction({
|
|
|
7684
7697
|
//#region src/modules/wallets/walletProvider/isDeeplinkWalletProvider/isDeeplinkWalletProvider.ts
|
|
7685
7698
|
/**
|
|
7686
7699
|
* Returns true if the wallet provider uses the deep link protocol (e.g. Phantom redirect on mobile).
|
|
7687
|
-
* @
|
|
7700
|
+
* @notInstrumented
|
|
7688
7701
|
*/
|
|
7689
7702
|
const isDeeplinkWalletProvider = ({ walletProvider }) => walletProvider.walletProviderType === WalletProviderEnum.DeepLink;
|
|
7690
7703
|
|
|
@@ -7751,7 +7764,7 @@ const __connectAndVerifyWithWalletProvider_wrapped = instrumentFunction({
|
|
|
7751
7764
|
*
|
|
7752
7765
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7753
7766
|
* @returns An array of wallet provider data including chain, keys, and metadata.
|
|
7754
|
-
* @
|
|
7767
|
+
* @notInstrumented
|
|
7755
7768
|
* @hook Exposed as a hook so consumers get the reactive list of available wallet providers, updated when wallet providers change.
|
|
7756
7769
|
*/
|
|
7757
7770
|
const getAvailableWalletProvidersData = (client = getDefaultClient()) => {
|
|
@@ -7775,7 +7788,7 @@ const getAvailableWalletProvidersData = (client = getDefaultClient()) => {
|
|
|
7775
7788
|
* @param params.walletProviderKey - The unique key of the wallet provider to query.
|
|
7776
7789
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7777
7790
|
* @returns An array of connected wallet addresses.
|
|
7778
|
-
* @
|
|
7791
|
+
* @notInstrumented
|
|
7779
7792
|
*/
|
|
7780
7793
|
const getConnectedAddresses = ({ walletProviderKey }, client = getDefaultClient()) => {
|
|
7781
7794
|
return getWalletProviderByKey({ walletProviderKey }, client).getConnectedAddresses();
|
|
@@ -7783,7 +7796,7 @@ const getConnectedAddresses = ({ walletProviderKey }, client = getDefaultClient(
|
|
|
7783
7796
|
|
|
7784
7797
|
//#endregion
|
|
7785
7798
|
//#region src/modules/wallets/getOwnerWalletAccountForSmartWalletAccount/getOwnerWalletAccountForSmartWalletAccount.ts
|
|
7786
|
-
/** @
|
|
7799
|
+
/** @notInstrumented */
|
|
7787
7800
|
const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, client = getDefaultClient()) => {
|
|
7788
7801
|
const smartWalletVerifiedCredential = getVerifiedCredentialForWalletAccount({ walletAccount: smartWalletAccount }, client);
|
|
7789
7802
|
assertDefined(smartWalletVerifiedCredential?.signerRefId, "Invalid smart wallet account");
|
|
@@ -7792,7 +7805,7 @@ const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, clie
|
|
|
7792
7805
|
|
|
7793
7806
|
//#endregion
|
|
7794
7807
|
//#region src/modules/wallets/getWalletAccountAddressByType/getWalletAccountAddressByType.ts
|
|
7795
|
-
/** @
|
|
7808
|
+
/** @notInstrumented */
|
|
7796
7809
|
const getWalletAccountAddressByType = ({ type, walletAccount }) => {
|
|
7797
7810
|
return walletAccount.addressesWithTypes?.find((address) => address.type === type)?.address;
|
|
7798
7811
|
};
|
|
@@ -7805,7 +7818,7 @@ const getWalletAccountAddressByType = ({ type, walletAccount }) => {
|
|
|
7805
7818
|
* @param params.walletProviderKey - The key of the wallet provider to retrieve data for.
|
|
7806
7819
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7807
7820
|
* @returns The data for the wallet provider.
|
|
7808
|
-
* @
|
|
7821
|
+
* @notInstrumented
|
|
7809
7822
|
*/
|
|
7810
7823
|
const getWalletProviderDataByKey = ({ walletProviderKey }, client = getDefaultClient()) => {
|
|
7811
7824
|
const { chain, groupKey, key, metadata, walletProviderType } = getWalletProviderByKey({ walletProviderKey }, client);
|
|
@@ -7827,7 +7840,7 @@ const getWalletProviderDataByKey = ({ walletProviderKey }, client = getDefaultCl
|
|
|
7827
7840
|
* @param params.hardwareWalletVendor - The hardware wallet vendor to check for.
|
|
7828
7841
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7829
7842
|
* @returns Whether the wallet provider supports the specified hardware wallet vendor.
|
|
7830
|
-
* @
|
|
7843
|
+
* @notInstrumented
|
|
7831
7844
|
*/
|
|
7832
7845
|
const canConnectWithHardwareWallet = ({ walletProviderKey, hardwareWalletVendor }, client = getDefaultClient()) => {
|
|
7833
7846
|
return getWalletProviderByKey({ walletProviderKey }, client).metadata.supportedHardwareWalletVendors?.includes(hardwareWalletVendor) ?? false;
|
|
@@ -7840,7 +7853,7 @@ const canConnectWithHardwareWallet = ({ walletProviderKey, hardwareWalletVendor
|
|
|
7840
7853
|
*
|
|
7841
7854
|
* @param params.walletAccount - The wallet account to check.
|
|
7842
7855
|
* @returns Whether the wallet account has a hardware wallet vendor set.
|
|
7843
|
-
* @
|
|
7856
|
+
* @notInstrumented
|
|
7844
7857
|
*/
|
|
7845
7858
|
const isHardwareWalletAccount = ({ walletAccount }) => walletAccount.hardwareWalletVendor !== void 0;
|
|
7846
7859
|
|
|
@@ -7856,7 +7869,7 @@ const isHardwareWalletAccount = ({ walletAccount }) => walletAccount.hardwareWal
|
|
|
7856
7869
|
*
|
|
7857
7870
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7858
7871
|
* @returns True if the session has at least one wallet account, false otherwise.
|
|
7859
|
-
* @
|
|
7872
|
+
* @notInstrumented
|
|
7860
7873
|
*/
|
|
7861
7874
|
const isAnyWalletAccountConnected = (client = getDefaultClient()) => getWalletAccounts(client).length > 0;
|
|
7862
7875
|
|
|
@@ -7867,7 +7880,7 @@ const isAnyWalletAccountConnected = (client = getDefaultClient()) => getWalletAc
|
|
|
7867
7880
|
*
|
|
7868
7881
|
* @param walletAccount - The wallet account to check.
|
|
7869
7882
|
* @returns True if the wallet account has been verified, false otherwise.
|
|
7870
|
-
* @
|
|
7883
|
+
* @notInstrumented
|
|
7871
7884
|
*/
|
|
7872
7885
|
const isWalletAccountVerified = ({ walletAccount }) => {
|
|
7873
7886
|
return walletAccount.verifiedCredentialId !== null;
|
|
@@ -7922,7 +7935,7 @@ const __addNetwork_wrapped = instrumentFunction({
|
|
|
7922
7935
|
* @param params.walletAccount - The wallet account to get network data for.
|
|
7923
7936
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7924
7937
|
* @returns A promise that resolves to the network data, or undefined if not found.
|
|
7925
|
-
* @
|
|
7938
|
+
* @notInstrumented
|
|
7926
7939
|
*/
|
|
7927
7940
|
const getActiveNetworkData = async ({ walletAccount }, client = getDefaultClient()) => {
|
|
7928
7941
|
const walletProvider = getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7938,7 +7951,7 @@ const getActiveNetworkData = async ({ walletAccount }, client = getDefaultClient
|
|
|
7938
7951
|
* @param params.walletAccount - The wallet account to get the network ID for.
|
|
7939
7952
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7940
7953
|
* @returns A promise that resolves to the active network ID for the wallet account.
|
|
7941
|
-
* @
|
|
7954
|
+
* @notInstrumented
|
|
7942
7955
|
*/
|
|
7943
7956
|
const getActiveNetworkId = ({ walletAccount }, client = getDefaultClient()) => {
|
|
7944
7957
|
return getWalletProviderFromWalletAccount({ walletAccount }, client).getActiveNetworkId();
|
|
@@ -7959,7 +7972,7 @@ const getActiveNetworkId = ({ walletAccount }, client = getDefaultClient()) => {
|
|
|
7959
7972
|
* @param params.walletAccount - The wallet account to get the balance for.
|
|
7960
7973
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7961
7974
|
* @returns A promise that resolves to an object containing the balance as a string or null.
|
|
7962
|
-
* @
|
|
7975
|
+
* @notInstrumented
|
|
7963
7976
|
*/
|
|
7964
7977
|
const getNativeBalance = async ({ walletAccount }, client = getDefaultClient()) => {
|
|
7965
7978
|
const walletProvider = getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7978,7 +7991,7 @@ const getNativeBalance = async ({ walletAccount }, client = getDefaultClient())
|
|
|
7978
7991
|
* with the token-balance fetchers (`getTokenBalances` /
|
|
7979
7992
|
* `getMultichainTokenBalances`).
|
|
7980
7993
|
*
|
|
7981
|
-
* @
|
|
7994
|
+
* @notInstrumented
|
|
7982
7995
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
7983
7996
|
*/
|
|
7984
7997
|
const getBalance = (params, client = getDefaultClient()) => getNativeBalance(params, client);
|
|
@@ -7996,7 +8009,7 @@ const getBalance = (params, client = getDefaultClient()) => getNativeBalance(par
|
|
|
7996
8009
|
* @param params.networkId - The specific network ID within the chain.
|
|
7997
8010
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7998
8011
|
* @returns A promise that resolves to an object containing the balance as a string or null.
|
|
7999
|
-
* @
|
|
8012
|
+
* @notInstrumented
|
|
8000
8013
|
*/
|
|
8001
8014
|
const getBalanceForAddress = async ({ address, chain, networkId }, client = getDefaultClient()) => {
|
|
8002
8015
|
const networkProvider = getNetworkProviderFromNetworkId({
|
|
@@ -8023,7 +8036,7 @@ const getBalanceForAddress = async ({ address, chain, networkId }, client = getD
|
|
|
8023
8036
|
* @param [params.tokenAddress] - Optional token contract address (EVM) or SPL mint address (Solana) to filter transaction history by token.
|
|
8024
8037
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8025
8038
|
* @returns A promise that resolves to the transaction history along with nextOffset for the given wallet address and chain.
|
|
8026
|
-
* @
|
|
8039
|
+
* @notInstrumented
|
|
8027
8040
|
*/
|
|
8028
8041
|
const getTransactionHistory = async (params, client = getDefaultClient()) => {
|
|
8029
8042
|
const core = getCore(client);
|
|
@@ -8049,7 +8062,7 @@ const getTransactionHistory = async (params, client = getDefaultClient()) => {
|
|
|
8049
8062
|
* @param params.walletAccount - The wallet account to check network switching support for.
|
|
8050
8063
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8051
8064
|
* @returns True if programmatic network switching is available, false otherwise.
|
|
8052
|
-
* @
|
|
8065
|
+
* @notInstrumented
|
|
8053
8066
|
*/
|
|
8054
8067
|
const isProgrammaticNetworkSwitchAvailable = ({ walletAccount }, client = getDefaultClient()) => {
|
|
8055
8068
|
return getWalletProviderByKey({ walletProviderKey: walletAccount.walletProviderKey }, client).switchActiveNetwork !== void 0;
|
|
@@ -8131,7 +8144,7 @@ const __selectPrimaryWalletAccount_wrapped = instrumentFunction({
|
|
|
8131
8144
|
*
|
|
8132
8145
|
* The wallet account is not removed from the user's profile or from dynamic's state,
|
|
8133
8146
|
* it is only responsible for terminating the connection with the wallet provider.
|
|
8134
|
-
* @
|
|
8147
|
+
* @notInstrumented
|
|
8135
8148
|
*/
|
|
8136
8149
|
const disconnectWalletAccount = async ({ walletAccount }, client) => {
|
|
8137
8150
|
try {
|
|
@@ -8306,7 +8319,7 @@ const __transferWalletAccount_wrapped = instrumentFunction({
|
|
|
8306
8319
|
* @param params.chain - The blockchain the wallet belongs to.
|
|
8307
8320
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8308
8321
|
* @returns The matching wallet account, or undefined if not found.
|
|
8309
|
-
* @
|
|
8322
|
+
* @notInstrumented
|
|
8310
8323
|
*/
|
|
8311
8324
|
const getWalletAccountFromAddress = ({ address, chain }, client = getDefaultClient()) => {
|
|
8312
8325
|
return getWalletAccounts(client).find((walletAccount) => walletAccount.address === address && walletAccount.chain === chain);
|
|
@@ -8323,7 +8336,7 @@ const getWalletAccountFromAddress = ({ address, chain }, client = getDefaultClie
|
|
|
8323
8336
|
* @param params.event - The event name to remove the listener from.
|
|
8324
8337
|
* @param params.walletProviderKey - The unique key identifying the wallet provider to remove the listener from.
|
|
8325
8338
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8326
|
-
* @
|
|
8339
|
+
* @notInstrumented
|
|
8327
8340
|
*/
|
|
8328
8341
|
const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client = getDefaultClient()) => {
|
|
8329
8342
|
const walletProvider = getWalletProviderByKey({ walletProviderKey }, client);
|
|
@@ -8341,7 +8354,7 @@ const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client =
|
|
|
8341
8354
|
* @param params.walletProviderKey - The unique key identifying the wallet provider to listen to.
|
|
8342
8355
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8343
8356
|
* @returns A function that can be called to remove the listener.
|
|
8344
|
-
* @
|
|
8357
|
+
* @notInstrumented
|
|
8345
8358
|
* @hook Event listeners are error-prone to wire up by hand with useEffect.
|
|
8346
8359
|
*/
|
|
8347
8360
|
const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client = getDefaultClient()) => {
|
|
@@ -8375,7 +8388,7 @@ const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client =
|
|
|
8375
8388
|
* appendConnectionUriToDeeplink({ deeplinkUrl: 'walletapp://wc?param=value', connectionUri: 'wc:123-456' })
|
|
8376
8389
|
* // Returns: 'walletapp://wc?param=value&uri=wc%3A123-456'
|
|
8377
8390
|
* ```
|
|
8378
|
-
* @
|
|
8391
|
+
* @notInstrumented
|
|
8379
8392
|
*/
|
|
8380
8393
|
const appendConnectionUriToDeeplink = ({ connectionUri, deeplinkUrl }) => {
|
|
8381
8394
|
const url = new URL(deeplinkUrl);
|
|
@@ -8446,7 +8459,7 @@ const osMatchers = [
|
|
|
8446
8459
|
pattern: /CrOS/
|
|
8447
8460
|
}
|
|
8448
8461
|
];
|
|
8449
|
-
/** @
|
|
8462
|
+
/** @notInstrumented */
|
|
8450
8463
|
const parseUserAgent = ({ userAgent }) => {
|
|
8451
8464
|
if (!userAgent?.trim()) return null;
|
|
8452
8465
|
const browser = browserMatchers.find(({ pattern }) => pattern.test(userAgent))?.name;
|
|
@@ -8464,5 +8477,5 @@ const parseUserAgent = ({ userAgent }) => {
|
|
|
8464
8477
|
assertPackageVersion(name, version);
|
|
8465
8478
|
|
|
8466
8479
|
//#endregion
|
|
8467
|
-
export { BaseError, CheckoutSessionTokenMissingError, ClientAlreadyInitializedError, DeeplinkConnectAndVerifyUnsupportedError, FeeEstimationFailedError, FlowSessionTokenMissingError, GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES, InvalidDeviceRegistrationRedirectError, InvalidExternalAuthError, InvalidParamError, InvalidRedirectStorageStateError, InvalidSocialCallbackOriginError, LinkCredentialError, MFAAction, MfaInvalidOtpError, MfaRateLimitedError, MissingRedirectStorageStateError, MissingSocialUrlParamError, MissingUserVerificationError, NetworkAddingUnavailableError, NetworkNotAddedError, NetworkSwitchingUnavailableError, NoAddressFoundError, NoNetworkProvidersError, NoPasskeyCredentialsFoundError, NoSmartWalletAccountSignerFoundError, NoWebAuthNSupportError, NotWaasWalletAccountError, SandboxMaximumThresholdReachedError, SimulationFailedError, TokenSwapError, UnauthorizedError, UnavailableInServerSideError, UnrecognizedNetworkError, UserCancelledSocialPopUpError, UserNotAuthenticatedError, UserRejectedError, WaasOnboardingIncompleteError, WalletAccountAlreadyVerifiedError, WalletAccountNotSelectedError, WalletAlreadyLinkedToAnotherUserError, WalletProviderMethodUnavailableError, __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, __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, __createCoinbaseOnrampOrder_wrapped as createCoinbaseOnrampOrder, __createCryptoDotComPayment_wrapped as createCryptoDotComPayment, __createDynamicClient_wrapped as createDynamicClient, __createKrakenExchangeTransfer_wrapped as createKrakenExchangeTransfer, __createNewMfaRecoveryCodes_wrapped as createNewMfaRecoveryCodes, __deleteMfaDevice_wrapped as deleteMfaDevice, __deletePasskey_wrapped as deletePasskey, __deleteUser_wrapped as deleteUser, detectDeviceRegistrationRedirect, detectOAuthRedirect, detectSocialRedirectUrl, excludeInstalledFromCatalog, __executeSwapTransaction_wrapped as executeSwapTransaction, fetchProjectSettings, findMissingGoogleDriveBackupScopes, getActiveNetworkData, getActiveNetworkId, getAvailableWalletProvidersData, getBalance, getBalanceForAddress, getBalances, getCheckoutTransaction, getCheckoutTransactionQuote, getCoinbaseBuyUrl, getConnectedAddresses, getDefaultClient, getDeviceRegistrationTokenFromUrl,
|
|
8480
|
+
export { BaseError, CheckoutSessionTokenMissingError, ClientAlreadyInitializedError, DeeplinkConnectAndVerifyUnsupportedError, FeeEstimationFailedError, FlowSessionTokenMissingError, GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES, InvalidDeviceRegistrationRedirectError, InvalidExternalAuthError, InvalidParamError, InvalidRedirectStorageStateError, InvalidSocialCallbackOriginError, LinkCredentialError, MFAAction, MfaInvalidOtpError, MfaRateLimitedError, MissingRedirectStorageStateError, MissingSocialUrlParamError, MissingUserVerificationError, NetworkAddingUnavailableError, NetworkNotAddedError, NetworkSwitchingUnavailableError, NoAddressFoundError, NoNetworkProvidersError, NoPasskeyCredentialsFoundError, NoSmartWalletAccountSignerFoundError, NoWebAuthNSupportError, NotWaasWalletAccountError, SandboxMaximumThresholdReachedError, SimulationFailedError, TokenSwapError, UnauthorizedError, UnavailableInServerSideError, UnrecognizedNetworkError, UserCancelledSocialPopUpError, UserNotAuthenticatedError, UserRejectedError, WaasOnboardingIncompleteError, WalletAccountAlreadyVerifiedError, WalletAccountNotSelectedError, WalletAlreadyLinkedToAnotherUserError, WalletProviderMethodUnavailableError, __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, __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, __createCoinbaseOnrampOrder_wrapped as createCoinbaseOnrampOrder, __createCryptoDotComPayment_wrapped as createCryptoDotComPayment, __createDynamicClient_wrapped as createDynamicClient, __createKrakenExchangeTransfer_wrapped as createKrakenExchangeTransfer, __createNewMfaRecoveryCodes_wrapped as createNewMfaRecoveryCodes, __deleteMfaDevice_wrapped as deleteMfaDevice, __deletePasskey_wrapped as deletePasskey, __deleteUser_wrapped as deleteUser, detectDeviceRegistrationRedirect, detectOAuthRedirect, detectSocialRedirectUrl, excludeInstalledFromCatalog, __executeSwapTransaction_wrapped as executeSwapTransaction, fetchProjectSettings, findMissingGoogleDriveBackupScopes, getActiveNetworkData, getActiveNetworkId, getAvailableWalletProvidersData, getBalance, getBalanceForAddress, getBalances, getCheckoutTransaction, getCheckoutTransactionQuote, 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, getSwapQuote, getSwapStatus, getTokenBalances, getTransactionHistory, getUserSocialAccounts, getWalletAccountAddressByType, getWalletAccountFromAddress, getWalletAccounts, getWalletConnectCatalog, getWalletConnectCatalogWalletByWalletProviderKey, getWalletOptionsCatalogue, getWalletProviderDataByKey, hasAllGoogleDriveBackupScopes, hasExtension, __initializeClient_wrapped as initializeClient, isAnyWalletAccountConnected, isCaptchaRequired, isDeeplinkWalletProvider, isDeviceRegistrationRequired, isHardwareWalletAccount, isInsufficientGoogleDriveScopesError, isMfaRequiredForAction, isMobile, isPendingRecoveryCodesAcknowledgment, isProgrammaticNetworkSwitchAvailable, isSignedIn, isUserMissingMfaAuth, isUserOnboardingComplete, isWalletAccountVerified, logout, matchWalletProvidersToCatalogGroup, 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, __selectPrimaryWalletAccount_wrapped as selectPrimaryWalletAccount, __sendEmailOTP_wrapped as sendEmailOTP, __sendSmsOTP_wrapped as sendSmsOTP, __setCaptchaToken_wrapped as setCaptchaToken, __setDefaultMfaDevice_wrapped as setDefaultMfaDevice, __setInstrumentationEnabled_wrapped as setInstrumentationEnabled, __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 };
|
|
8468
8481
|
//# sourceMappingURL=index.native.esm.js.map
|