@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.esm.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { A as GENERATE_SESSION_KEYS_TRACKER_KEY, B as isEqualShallow, C as createKeychainService, D as CannotTrackError, F as getBuffer, I as createStorage, M as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, N as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, O as createDeferredPromise, P as isServerSideRendering, R as createLocalStorageAdapter, S as createRealtimeService, T as createCrossTabBroadcast, _ as consumeCaptchaToken, a as verifyMessageSignatureOwnership, b as NoNetworkProvidersError, c as formatSignInMessage, d as updateWalletProviderKeysForVerifiedCredentials, f as setUnverifiedWalletAccounts, g as MethodNotImplementedError, h as __setCaptchaToken_wrapped, i as getNetworksData, j as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, k as FETCH_PROJECT_SETTINGS_TRACKER_KEY, l as getAppMetadata, m as hasExtension, o as removeUnverifiedWalletAccount, p as createVisit, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as reconcileWalletAccountsAgainstClient, v as isCaptchaRequired, w as createLogger, x as getKeychainIndexedDBName, y as WalletAlreadyLinkedToAnotherUserError, z as subscribeWithSelector } from "./getNetworkProviderFromNetworkId-
|
|
3
|
-
import { a as generateSessionKeys, c as isSignedIn, i as __logoutWithReason_wrapped, l as retryOnFail, n as getMfaMethods, o as fetchProjectSettings, r as __consumeMfaToken_wrapped, s as createStorageKeySchema, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-
|
|
4
|
-
import { a as parseElevatedAccessToken, i as upsertElevatedAccessToken, l as getWalletProviders, n as getVerifiedCredentialForWalletAccount, o as initializeWaasClientsForEagerRecovery, r as updateAuthFromVerifyResponse, t as getWalletProviderByKey, u as checkAndRaiseWalletAccountsChangedEvent } from "./getWalletProviderByKey-
|
|
5
|
-
import { t as __refreshAuth_wrapped } from "./refreshAuth-
|
|
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 ValueMustBeDefinedError, A as splitWalletProviderKey, D as CHAINS_INFO_MAP, E as getChainFromVerifiedCredentialChain, F as onceEvent, G as MfaRateLimitedError, J as InvalidExternalAuthError, K as MfaInvalidOtpError, L as fetchAndStoreNonces, M as emitEvent, N as offEvent, O as formatWalletAccountId, P as onEvent, Q as assertDefined, R as createApiClient, S as getWalletAccounts, U as getNonce, W as SandboxMaximumThresholdReachedError, Y as APIError, Z as isCookieEnabled, _ as getWalletProviderFromWalletAccount, at as getDefaultClient, c as SDK_API_CORE_VERSION, ct as BaseError, d as DEFAULT_PII_FIELDS, dt as version, et as getElevatedAccessToken, f as getUserAgent, h as extractSessionId, it as NONCE_POOL_SIZE, k as normalizeAddress, l as instrumentFunction, lt as getCore, m as getOperatingSystem, o as isUserMissingMfaAuth, ot as setDefaultClient, p as getPlatform, q as LinkCredentialError, s as DYNAMIC_ICONIC_SPRITE_URL, t as InvalidParamError, tt as randomString, u as scrubParameters, ut as name, v as WalletProviderPriority, x as NoWalletProviderFoundError, y as getWalletProviderRegistry, z as UnauthorizedError } from "./InvalidParamError-DZjc7Tjc.esm.js";
|
|
2
|
+
import { A as GENERATE_SESSION_KEYS_TRACKER_KEY, B as isEqualShallow, C as createKeychainService, D as CannotTrackError, F as getBuffer, I as createStorage, M as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, N as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, O as createDeferredPromise, P as isServerSideRendering, R as createLocalStorageAdapter, S as createRealtimeService, T as createCrossTabBroadcast, _ as consumeCaptchaToken, a as verifyMessageSignatureOwnership, b as NoNetworkProvidersError, c as formatSignInMessage, d as updateWalletProviderKeysForVerifiedCredentials, f as setUnverifiedWalletAccounts, g as MethodNotImplementedError, h as __setCaptchaToken_wrapped, i as getNetworksData, j as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, k as FETCH_PROJECT_SETTINGS_TRACKER_KEY, l as getAppMetadata, m as hasExtension, o as removeUnverifiedWalletAccount, p as createVisit, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as reconcileWalletAccountsAgainstClient, v as isCaptchaRequired, w as createLogger, x as getKeychainIndexedDBName, y as WalletAlreadyLinkedToAnotherUserError, z as subscribeWithSelector } from "./getNetworkProviderFromNetworkId-ChFA088e.esm.js";
|
|
3
|
+
import { a as generateSessionKeys, c as isSignedIn, i as __logoutWithReason_wrapped, l as retryOnFail, n as getMfaMethods, o as fetchProjectSettings, r as __consumeMfaToken_wrapped, s as createStorageKeySchema, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-CTQzzCMt.esm.js";
|
|
4
|
+
import { a as parseElevatedAccessToken, i as upsertElevatedAccessToken, l as getWalletProviders, n as getVerifiedCredentialForWalletAccount, o as initializeWaasClientsForEagerRecovery, r as updateAuthFromVerifyResponse, t as getWalletProviderByKey, u as checkAndRaiseWalletAccountsChangedEvent } from "./getWalletProviderByKey-DWYF9IxH.esm.js";
|
|
5
|
+
import { t as __refreshAuth_wrapped } from "./refreshAuth-CAPTC0sg.esm.js";
|
|
6
|
+
import { n as NotWaasWalletAccountError } from "./isDynamicWaasEnabled-C9gQ9M80.esm.js";
|
|
7
|
+
import { a as WaasOnboardingIncompleteError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, r as isDeviceRegistrationRequired, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-D1gGc77y.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";
|
|
11
|
-
import EventEmitter, { EventEmitter
|
|
11
|
+
import EventEmitter$1, { EventEmitter } from "eventemitter3";
|
|
12
12
|
import { browserSupportsWebAuthn, startAuthentication, startRegistration } from "@simplewebauthn/browser";
|
|
13
13
|
|
|
14
14
|
//#region src/modules/state/raiseStateEvents/events.ts
|
|
@@ -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
|
/**
|
|
@@ -546,7 +546,7 @@ const createAsyncTrack = () => {
|
|
|
546
546
|
* This ensures no process is missed (as it would throw when tracked on a different node tick).
|
|
547
547
|
*/
|
|
548
548
|
let isTrackEnabled = true;
|
|
549
|
-
const eventEmitter = new EventEmitter
|
|
549
|
+
const eventEmitter = new EventEmitter();
|
|
550
550
|
const allSettledPromise = createDeferredPromise();
|
|
551
551
|
const tracker = /* @__PURE__ */ new Map();
|
|
552
552
|
/**
|
|
@@ -592,8 +592,8 @@ const createAsyncTrack = () => {
|
|
|
592
592
|
|
|
593
593
|
//#endregion
|
|
594
594
|
//#region src/services/eventEmitter/createEventEmitter.ts
|
|
595
|
-
/** @
|
|
596
|
-
const createEventEmitter = () => new EventEmitter();
|
|
595
|
+
/** @notInstrumented */
|
|
596
|
+
const createEventEmitter = () => new EventEmitter$1();
|
|
597
597
|
|
|
598
598
|
//#endregion
|
|
599
599
|
//#region src/errors/UnavailableInServerSideError.ts
|
|
@@ -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"));
|
|
@@ -782,7 +782,7 @@ const createWebDeeplinkOpener = () => {
|
|
|
782
782
|
/**
|
|
783
783
|
* Because this is the web implementation of the passkey service, we need to
|
|
784
784
|
* import the browser's WebAuthn API directly.
|
|
785
|
-
* @
|
|
785
|
+
* @notInstrumented
|
|
786
786
|
*/
|
|
787
787
|
/**
|
|
788
788
|
* Create a passkey service that uses the browser's WebAuthn API.
|
|
@@ -790,7 +790,7 @@ const createWebDeeplinkOpener = () => {
|
|
|
790
790
|
* Metadata is accepted for parity with the native implementation (which uses
|
|
791
791
|
* `universalLink` to validate the associated domain) but is unused on web —
|
|
792
792
|
* the browser derives the relying party from `window.location.origin`.
|
|
793
|
-
* @
|
|
793
|
+
* @notInstrumented
|
|
794
794
|
*/
|
|
795
795
|
const createPasskeyService = (_params) => ({
|
|
796
796
|
authenticate: (options) => startAuthentication(options),
|
|
@@ -800,7 +800,7 @@ const createPasskeyService = (_params) => ({
|
|
|
800
800
|
|
|
801
801
|
//#endregion
|
|
802
802
|
//#region src/utils/debouncedMutex/createDebouncedMutex/createDebouncedMutex.ts
|
|
803
|
-
/** @
|
|
803
|
+
/** @notInstrumented */
|
|
804
804
|
const createDebouncedMutex = () => {
|
|
805
805
|
const mutexState = /* @__PURE__ */ new Map();
|
|
806
806
|
return async ({ lockKey, callback, debounceTime = 0 }) => {
|
|
@@ -885,7 +885,7 @@ var InvalidStorageValue = class extends BaseError {
|
|
|
885
885
|
* // Unsubscribe when done
|
|
886
886
|
* unsubscribe();
|
|
887
887
|
* ```
|
|
888
|
-
* @
|
|
888
|
+
* @notInstrumented
|
|
889
889
|
*/
|
|
890
890
|
const createObservableState = (getInitialState$1) => {
|
|
891
891
|
const subscribers = /* @__PURE__ */ new Set();
|
|
@@ -929,7 +929,7 @@ const DEFAULT_API_BASE_URL = "https://app.dynamicauth.com/api/v0";
|
|
|
929
929
|
//#region src/client/core/createCore/getInitialState.ts
|
|
930
930
|
/**
|
|
931
931
|
* The initial values for the state of the client.
|
|
932
|
-
* @
|
|
932
|
+
* @notInstrumented
|
|
933
933
|
*/
|
|
934
934
|
const getInitialState = () => ({
|
|
935
935
|
captchaToken: null,
|
|
@@ -954,7 +954,7 @@ const getInitialState = () => ({
|
|
|
954
954
|
//#region src/client/core/createCore/createCore.ts
|
|
955
955
|
/**
|
|
956
956
|
* Creates a core instance that contains all the services and state of the Dynamic SDK client.
|
|
957
|
-
* @
|
|
957
|
+
* @notInstrumented
|
|
958
958
|
*/
|
|
959
959
|
const createCore = (config) => {
|
|
960
960
|
const apiBaseUrl = config.coreConfig?.apiBaseUrl ?? DEFAULT_API_BASE_URL;
|
|
@@ -1525,7 +1525,7 @@ const STEP_UP_REQUIRED_DEFAULT = {
|
|
|
1525
1525
|
* @instrumented
|
|
1526
1526
|
*/
|
|
1527
1527
|
const checkStepUpAuth = async ({ scope }, client = getDefaultClient()) => {
|
|
1528
|
-
if (
|
|
1528
|
+
if (getElevatedAccessToken({
|
|
1529
1529
|
consume: false,
|
|
1530
1530
|
scope
|
|
1531
1531
|
}, client)) return {
|
|
@@ -1655,7 +1655,7 @@ const __signInWithExternalJwt_wrapped = instrumentFunction({
|
|
|
1655
1655
|
*
|
|
1656
1656
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1657
1657
|
* @returns A promise that resolves when the logout process is complete.
|
|
1658
|
-
* @
|
|
1658
|
+
* @notInstrumented
|
|
1659
1659
|
*/
|
|
1660
1660
|
const logout = async (client = getDefaultClient()) => {
|
|
1661
1661
|
/**
|
|
@@ -1710,7 +1710,7 @@ const __deletePasskey_wrapped = instrumentFunction({
|
|
|
1710
1710
|
*
|
|
1711
1711
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1712
1712
|
* @returns A promise that resolves to an array of the user's registered passkeys.
|
|
1713
|
-
* @
|
|
1713
|
+
* @notInstrumented
|
|
1714
1714
|
*/
|
|
1715
1715
|
const getPasskeys = async (client = getDefaultClient()) => {
|
|
1716
1716
|
const core = getCore(client);
|
|
@@ -1719,7 +1719,7 @@ const getPasskeys = async (client = getDefaultClient()) => {
|
|
|
1719
1719
|
|
|
1720
1720
|
//#endregion
|
|
1721
1721
|
//#region src/modules/auth/passkeys/getPasskeyRegistrationOptions/getPasskeyRegistrationOptions.ts
|
|
1722
|
-
/** @
|
|
1722
|
+
/** @notInstrumented */
|
|
1723
1723
|
const getPasskeyRegistrationOptions = async (client) => {
|
|
1724
1724
|
const core = getCore(client);
|
|
1725
1725
|
return await createApiClient({}, client).getPasskeyRegistrationOptions({ environmentId: core.environmentId });
|
|
@@ -1727,7 +1727,7 @@ const getPasskeyRegistrationOptions = async (client) => {
|
|
|
1727
1727
|
|
|
1728
1728
|
//#endregion
|
|
1729
1729
|
//#region src/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.ts
|
|
1730
|
-
/** @
|
|
1730
|
+
/** @notInstrumented */
|
|
1731
1731
|
const serverRegisterPasskey = async ({ registration, createMfaToken }, client) => {
|
|
1732
1732
|
const core = getCore(client);
|
|
1733
1733
|
return await createApiClient({ elevatedAccessTokenScope: TokenScope.Credentiallink }, client).registerPasskey({
|
|
@@ -1786,7 +1786,7 @@ const __registerPasskey_wrapped = instrumentFunction({
|
|
|
1786
1786
|
|
|
1787
1787
|
//#endregion
|
|
1788
1788
|
//#region src/modules/auth/passkeys/getPasskeyAuthenticationSignInOptions/getPasskeyAuthenticationSignInOptions.ts
|
|
1789
|
-
/** @
|
|
1789
|
+
/** @notInstrumented */
|
|
1790
1790
|
const getPasskeyAuthenticationSignInOptions = async ({ relatedOriginRpId } = {}, client) => {
|
|
1791
1791
|
const core = getCore(client);
|
|
1792
1792
|
return await createApiClient({}, client).getPasskeyAuthenticationSigninOptions({
|
|
@@ -1797,7 +1797,7 @@ const getPasskeyAuthenticationSignInOptions = async ({ relatedOriginRpId } = {},
|
|
|
1797
1797
|
|
|
1798
1798
|
//#endregion
|
|
1799
1799
|
//#region src/modules/auth/passkeys/serverSigninPasskey/serverSigninPasskey.ts
|
|
1800
|
-
/** @
|
|
1800
|
+
/** @notInstrumented */
|
|
1801
1801
|
const serverSigninPasskey = async ({ authentication, createMfaToken }, client) => {
|
|
1802
1802
|
const core = getCore(client);
|
|
1803
1803
|
return await createApiClient({}, client).signinWithPasskey({
|
|
@@ -1857,7 +1857,7 @@ const __signInWithPasskey_wrapped = instrumentFunction({
|
|
|
1857
1857
|
*
|
|
1858
1858
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1859
1859
|
* @returns An array of `SocialAccount` objects associated with the user.
|
|
1860
|
-
* @
|
|
1860
|
+
* @notInstrumented
|
|
1861
1861
|
* @hook Exposed as a hook so consumers get the reactive list of social accounts, updated when the user changes.
|
|
1862
1862
|
*/
|
|
1863
1863
|
const getUserSocialAccounts = (client = getDefaultClient()) => {
|
|
@@ -1876,7 +1876,7 @@ const getUserSocialAccounts = (client = getDefaultClient()) => {
|
|
|
1876
1876
|
|
|
1877
1877
|
//#endregion
|
|
1878
1878
|
//#region src/modules/auth/social/removeDynamicOauthParamsFromUrl/removeDynamicOauthParamsFromUrl.ts
|
|
1879
|
-
/** @
|
|
1879
|
+
/** @notInstrumented */
|
|
1880
1880
|
const removeDynamicOauthParamsFromUrl = (url) => {
|
|
1881
1881
|
const urlObject = new URL(url);
|
|
1882
1882
|
urlObject.searchParams.delete("dynamicOauthState");
|
|
@@ -1898,7 +1898,7 @@ const redirectStateStorageKeySchema = createStorageKeySchema({
|
|
|
1898
1898
|
|
|
1899
1899
|
//#endregion
|
|
1900
1900
|
//#region src/utils/digestSHA256/digestSHA256.ts
|
|
1901
|
-
/** @
|
|
1901
|
+
/** @notInstrumented */
|
|
1902
1902
|
const digestSHA256 = (str) => {
|
|
1903
1903
|
const data = new TextEncoder().encode(str);
|
|
1904
1904
|
return crypto.subtle.digest("SHA-256", data);
|
|
@@ -1911,7 +1911,7 @@ const digestSHA256 = (str) => {
|
|
|
1911
1911
|
*
|
|
1912
1912
|
* @param str - The string to encode as an ArrayBuffer.
|
|
1913
1913
|
* @returns The base64url encoded string.
|
|
1914
|
-
* @
|
|
1914
|
+
* @notInstrumented
|
|
1915
1915
|
*/
|
|
1916
1916
|
const encodeBase64Url = (str) => {
|
|
1917
1917
|
const numberArray = [];
|
|
@@ -1923,7 +1923,7 @@ const encodeBase64Url = (str) => {
|
|
|
1923
1923
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/addOAuthUrlParams/addOAuthUrlParams.ts
|
|
1924
1924
|
const APPLE_RESPONSE_MODE = "form_post";
|
|
1925
1925
|
const APPLE_RESPONSE_TYPE = "code id_token";
|
|
1926
|
-
/** Helper function to add OAuth URL parameters to a given base URL. * @
|
|
1926
|
+
/** Helper function to add OAuth URL parameters to a given base URL. * @notInstrumented
|
|
1927
1927
|
*/
|
|
1928
1928
|
const addOAuthUrlParams = ({ baseUrl, isGoogleDriveBackupEnabled, provider }) => {
|
|
1929
1929
|
assertDefined(provider.clientId, "Client ID not found");
|
|
@@ -1951,7 +1951,7 @@ const addOAuthUrlParams = ({ baseUrl, isGoogleDriveBackupEnabled, provider }) =>
|
|
|
1951
1951
|
|
|
1952
1952
|
//#endregion
|
|
1953
1953
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/getOAuthBaseUrl/getOAuthBaseUrl.ts
|
|
1954
|
-
/** Helper function to build the OAuth base URL for a given provider. * @
|
|
1954
|
+
/** Helper function to build the OAuth base URL for a given provider. * @notInstrumented
|
|
1955
1955
|
*/
|
|
1956
1956
|
const getOAuthBaseUrl = (provider) => {
|
|
1957
1957
|
assertDefined(provider.provider, "Provider type not found");
|
|
@@ -1972,7 +1972,7 @@ const getOAuthBaseUrl = (provider) => {
|
|
|
1972
1972
|
//#endregion
|
|
1973
1973
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/buildOAuthUrl.ts
|
|
1974
1974
|
const providersRequiringPkce = ["twitter", "github"];
|
|
1975
|
-
/** Helper function to build the OAuth URL for a given provider. * @
|
|
1975
|
+
/** Helper function to build the OAuth URL for a given provider. * @notInstrumented
|
|
1976
1976
|
*/
|
|
1977
1977
|
const buildOAuthUrl = async (core, provider) => {
|
|
1978
1978
|
const { projectSettings } = core.state.get();
|
|
@@ -2100,7 +2100,7 @@ const __authenticateWithSocial_wrapped = instrumentFunction({
|
|
|
2100
2100
|
*/
|
|
2101
2101
|
const processSocialCallback = async ({ url, requestedScopes }, client) => {
|
|
2102
2102
|
const core = getCore(client);
|
|
2103
|
-
const apiClient = createApiClient({}, client);
|
|
2103
|
+
const apiClient = createApiClient(client.user ? { elevatedAccessTokenScope: TokenScope.Credentiallink } : {}, client);
|
|
2104
2104
|
await core.initTrack.waitForAll();
|
|
2105
2105
|
const dynamicOauthState = url.searchParams.get("dynamicOauthState");
|
|
2106
2106
|
const dynamicOauthCode = url.searchParams.get("dynamicOauthCode");
|
|
@@ -2218,7 +2218,7 @@ const __completeSocialAuthentication_wrapped = instrumentFunction({
|
|
|
2218
2218
|
* @param params.url - The URL to check for OAuth redirect parameters.
|
|
2219
2219
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2220
2220
|
* @returns A promise that resolves to true if the URL is an OAuth redirect, false otherwise.
|
|
2221
|
-
* @
|
|
2221
|
+
* @notInstrumented
|
|
2222
2222
|
* @noHook Low-level redirect-detection primitive that is not exposed as a React hook.
|
|
2223
2223
|
*/
|
|
2224
2224
|
const detectSocialRedirectUrl = async ({ url }, client = getDefaultClient()) => {
|
|
@@ -2236,7 +2236,7 @@ const detectSocialRedirectUrl = async ({ url }, client = getDefaultClient()) =>
|
|
|
2236
2236
|
* @deprecated Renamed to {@link detectSocialRedirectUrl}. This alias will be
|
|
2237
2237
|
* removed in a future major version.
|
|
2238
2238
|
*
|
|
2239
|
-
* @
|
|
2239
|
+
* @notInstrumented
|
|
2240
2240
|
* @noHook Deprecated alias; the replacement is exposed via its own hook.
|
|
2241
2241
|
*/
|
|
2242
2242
|
const detectOAuthRedirect = (params, client = getDefaultClient()) => detectSocialRedirectUrl(params, client);
|
|
@@ -2277,7 +2277,7 @@ const __signInWithSocialPopUp_wrapped = instrumentFunction({
|
|
|
2277
2277
|
* The primary wallet account is the one that was last selected by the user.
|
|
2278
2278
|
* This information is stored in both unverified and verified wallet accounts.
|
|
2279
2279
|
* This function consolidates this information to determine which wallet was most recently selected.
|
|
2280
|
-
* @
|
|
2280
|
+
* @notInstrumented
|
|
2281
2281
|
*/
|
|
2282
2282
|
const getPrimaryWalletAccount = (client = getDefaultClient()) => {
|
|
2283
2283
|
const sortedLastSelectedWalletAccounts = getWalletAccounts(client).filter((walletAccount) => Boolean(walletAccount.lastSelectedAt)).sort((a, b) => b.lastSelectedAt.getTime() - a.lastSelectedAt.getTime());
|
|
@@ -2350,7 +2350,7 @@ const __unlinkSocialAccount_wrapped = instrumentFunction({
|
|
|
2350
2350
|
* @param params.walletAccount - The wallet account to get the balances for.
|
|
2351
2351
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2352
2352
|
* @returns A promise that resolves to an array of token balances.
|
|
2353
|
-
* @
|
|
2353
|
+
* @notInstrumented
|
|
2354
2354
|
*/
|
|
2355
2355
|
const getTokenBalances = async ({ walletAccount, networkId, networkIds, includePrices, includeNative, filterSpamTokens, whitelistedContracts, forceRefresh }, client = getDefaultClient()) => {
|
|
2356
2356
|
const core = getCore(client);
|
|
@@ -2381,7 +2381,7 @@ const getTokenBalances = async ({ walletAccount, networkId, networkIds, includeP
|
|
|
2381
2381
|
* longer confusable with the native-only `getBalance` or the
|
|
2382
2382
|
* multi-chain `getMultichainTokenBalances`.
|
|
2383
2383
|
*
|
|
2384
|
-
* @
|
|
2384
|
+
* @notInstrumented
|
|
2385
2385
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
2386
2386
|
*/
|
|
2387
2387
|
const getBalances = (params, client = getDefaultClient()) => getTokenBalances(params, client);
|
|
@@ -2400,7 +2400,7 @@ const getBalances = (params, client = getDefaultClient()) => getTokenBalances(pa
|
|
|
2400
2400
|
* @param params.balanceRequest - The balance request configuration specifying which chains, networks and addresses to query.
|
|
2401
2401
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2402
2402
|
* @returns A promise that resolves to the chain balances across multiple networks.
|
|
2403
|
-
* @
|
|
2403
|
+
* @notInstrumented
|
|
2404
2404
|
*/
|
|
2405
2405
|
const getMultichainTokenBalances = async ({ balanceRequest }, client = getDefaultClient()) => {
|
|
2406
2406
|
const core = getCore(client);
|
|
@@ -2417,14 +2417,14 @@ const getMultichainTokenBalances = async ({ balanceRequest }, client = getDefaul
|
|
|
2417
2417
|
* the name aligns with `getTokenBalances` and signals that this fetches
|
|
2418
2418
|
* token balances (not native-only) across multiple chains.
|
|
2419
2419
|
*
|
|
2420
|
-
* @
|
|
2420
|
+
* @notInstrumented
|
|
2421
2421
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
2422
2422
|
*/
|
|
2423
2423
|
const getMultichainBalances = (params, client = getDefaultClient()) => getMultichainTokenBalances(params, client);
|
|
2424
2424
|
|
|
2425
2425
|
//#endregion
|
|
2426
2426
|
//#region src/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.ts
|
|
2427
|
-
/** @
|
|
2427
|
+
/** @notInstrumented */
|
|
2428
2428
|
const createCheckoutSessionTokenStorageKey = (transactionId) => {
|
|
2429
2429
|
return createStorageKeySchema({
|
|
2430
2430
|
key: `checkoutSessionToken:${transactionId}`,
|
|
@@ -2434,7 +2434,7 @@ const createCheckoutSessionTokenStorageKey = (transactionId) => {
|
|
|
2434
2434
|
|
|
2435
2435
|
//#endregion
|
|
2436
2436
|
//#region src/modules/checkout/utils/createCheckoutApiClient/createCheckoutApiClient.ts
|
|
2437
|
-
/** @
|
|
2437
|
+
/** @notInstrumented */
|
|
2438
2438
|
const createCheckoutApiClient = async ({ transactionId }, client) => {
|
|
2439
2439
|
const core = getCore(client);
|
|
2440
2440
|
const apiClient = createApiClient({}, client);
|
|
@@ -2463,7 +2463,7 @@ const createCheckoutApiClient = async ({ transactionId }, client) => {
|
|
|
2463
2463
|
* The server-side revocation lives in dashboard-api; this is the SDK-side
|
|
2464
2464
|
* defense-in-depth.
|
|
2465
2465
|
*
|
|
2466
|
-
* @
|
|
2466
|
+
* @notInstrumented
|
|
2467
2467
|
*/
|
|
2468
2468
|
const clearCheckoutSessionToken = async ({ transactionId }, client) => {
|
|
2469
2469
|
await getCore(client).storage.removeItem(createCheckoutSessionTokenStorageKey(transactionId));
|
|
@@ -2478,7 +2478,7 @@ const clearCheckoutSessionToken = async ({ transactionId }, client) => {
|
|
|
2478
2478
|
* exfiltration surface for no benefit and makes the next SDK load attempt
|
|
2479
2479
|
* requests that are guaranteed to fail.
|
|
2480
2480
|
*
|
|
2481
|
-
* @
|
|
2481
|
+
* @notInstrumented
|
|
2482
2482
|
*/
|
|
2483
2483
|
const withCheckoutSessionTokenCleanupOn401 = async ({ call, transactionId }, client) => {
|
|
2484
2484
|
try {
|
|
@@ -2626,7 +2626,7 @@ const __cancelCheckoutTransaction_wrapped = instrumentFunction({
|
|
|
2626
2626
|
|
|
2627
2627
|
//#endregion
|
|
2628
2628
|
//#region src/modules/checkout/getCheckouts/getCheckouts.ts
|
|
2629
|
-
/** @
|
|
2629
|
+
/** @notInstrumented */
|
|
2630
2630
|
const getCheckouts = async (client) => {
|
|
2631
2631
|
const projectSettings = client.projectSettings;
|
|
2632
2632
|
assertDefined(projectSettings, "Project settings are not available");
|
|
@@ -2692,7 +2692,7 @@ const __createCheckoutTransaction_wrapped = instrumentFunction({
|
|
|
2692
2692
|
* @param params GetCheckoutTransactionParams - The parameters for fetching the transaction.
|
|
2693
2693
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2694
2694
|
* @returns The checkout transaction
|
|
2695
|
-
* @
|
|
2695
|
+
* @notInstrumented
|
|
2696
2696
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2697
2697
|
*/
|
|
2698
2698
|
const getCheckoutTransaction = async ({ transactionId }, client = getDefaultClient()) => {
|
|
@@ -2713,7 +2713,7 @@ const getCheckoutTransaction = async ({ transactionId }, client = getDefaultClie
|
|
|
2713
2713
|
* @param params GetCheckoutTransactionQuoteParams - The quote parameters.
|
|
2714
2714
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2715
2715
|
* @returns The updated checkout transaction with quote data
|
|
2716
|
-
* @
|
|
2716
|
+
* @notInstrumented
|
|
2717
2717
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2718
2718
|
*/
|
|
2719
2719
|
const getCheckoutTransactionQuote = async ({ fromChainId, fromTokenAddress, slippage, transactionId }, client = getDefaultClient()) => {
|
|
@@ -2818,7 +2818,7 @@ const SWAP_SUPPORTED_CHAINS = [
|
|
|
2818
2818
|
* If the wallet provider is not on the correct active network, it will try to switch to the correct active network.
|
|
2819
2819
|
* It's not a blocker, so it will just log the error and skip the step if it fails.
|
|
2820
2820
|
*
|
|
2821
|
-
* @
|
|
2821
|
+
* @notInstrumented
|
|
2822
2822
|
*/
|
|
2823
2823
|
const ensureCorrectActiveNetwork = async ({ requiredNetworkId, walletProvider }, client) => {
|
|
2824
2824
|
const { logger } = getCore(client);
|
|
@@ -2948,7 +2948,7 @@ const __submitCheckoutTransaction_wrapped = instrumentFunction({
|
|
|
2948
2948
|
*
|
|
2949
2949
|
* @param params.transactionId - The ID of the checkout transaction to track.
|
|
2950
2950
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2951
|
-
* @
|
|
2951
|
+
* @notInstrumented
|
|
2952
2952
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2953
2953
|
*/
|
|
2954
2954
|
const trackCheckoutTransaction = (_params, client = getDefaultClient()) => {
|
|
@@ -2971,7 +2971,7 @@ const trackCheckoutTransaction = (_params, client = getDefaultClient()) => {
|
|
|
2971
2971
|
* @param params - The from token details and the checkout's settlement config.
|
|
2972
2972
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2973
2973
|
* @returns Whether a token conversion is required
|
|
2974
|
-
* @
|
|
2974
|
+
* @notInstrumented
|
|
2975
2975
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2976
2976
|
*/
|
|
2977
2977
|
const requiresConversion = async ({ transaction }, client = getDefaultClient()) => {
|
|
@@ -3016,7 +3016,7 @@ const __completeDeviceRegistration_wrapped = instrumentFunction({
|
|
|
3016
3016
|
*
|
|
3017
3017
|
* @returns The device token as a string if valid.
|
|
3018
3018
|
* @throws InvalidDeviceRegistrationRedirectError If the URL is not a valid device registration redirect.
|
|
3019
|
-
* @
|
|
3019
|
+
* @notInstrumented
|
|
3020
3020
|
*/
|
|
3021
3021
|
const getDeviceRegistrationTokenFromUrl = ({ url }) => {
|
|
3022
3022
|
let urlObject;
|
|
@@ -3039,7 +3039,7 @@ const getDeviceRegistrationTokenFromUrl = ({ url }) => {
|
|
|
3039
3039
|
* if it contains device registration redirect data from a device authentication flow.
|
|
3040
3040
|
*
|
|
3041
3041
|
* @returns True if the URL is a device registration redirect, false otherwise.
|
|
3042
|
-
* @
|
|
3042
|
+
* @notInstrumented
|
|
3043
3043
|
*/
|
|
3044
3044
|
const detectDeviceRegistrationRedirect = ({ url }) => {
|
|
3045
3045
|
try {
|
|
@@ -3052,7 +3052,7 @@ const detectDeviceRegistrationRedirect = ({ url }) => {
|
|
|
3052
3052
|
|
|
3053
3053
|
//#endregion
|
|
3054
3054
|
//#region src/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.ts
|
|
3055
|
-
/** @
|
|
3055
|
+
/** @notInstrumented */
|
|
3056
3056
|
const getRegisteredDevices = async (client = getDefaultClient()) => {
|
|
3057
3057
|
const core = getCore(client);
|
|
3058
3058
|
const apiClient = createApiClient({}, client);
|
|
@@ -3115,7 +3115,7 @@ const __revokeRegisteredDevice_wrapped = instrumentFunction({
|
|
|
3115
3115
|
|
|
3116
3116
|
//#endregion
|
|
3117
3117
|
//#region src/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.ts
|
|
3118
|
-
/** @
|
|
3118
|
+
/** @notInstrumented */
|
|
3119
3119
|
const createFlowSessionTokenStorageKey = (flowId) => {
|
|
3120
3120
|
return createStorageKeySchema({
|
|
3121
3121
|
key: `flowSessionToken:${flowId}`,
|
|
@@ -3139,7 +3139,7 @@ const createFlowSessionTokenStorageKey = (flowId) => {
|
|
|
3139
3139
|
* The server-side revocation lives in dashboard-api; this is the SDK-side
|
|
3140
3140
|
* defense-in-depth.
|
|
3141
3141
|
*
|
|
3142
|
-
* @
|
|
3142
|
+
* @notInstrumented
|
|
3143
3143
|
*/
|
|
3144
3144
|
const clearFlowSessionToken = async ({ flowId }, client) => {
|
|
3145
3145
|
await getCore(client).storage.removeItem(createFlowSessionTokenStorageKey(flowId));
|
|
@@ -3154,7 +3154,7 @@ const clearFlowSessionToken = async ({ flowId }, client) => {
|
|
|
3154
3154
|
* exfiltration surface for no benefit and makes the next SDK load attempt
|
|
3155
3155
|
* requests that are guaranteed to fail.
|
|
3156
3156
|
*
|
|
3157
|
-
* @
|
|
3157
|
+
* @notInstrumented
|
|
3158
3158
|
*/
|
|
3159
3159
|
const withFlowSessionTokenCleanupOn401 = async ({ call, flowId }, client) => {
|
|
3160
3160
|
try {
|
|
@@ -3189,7 +3189,11 @@ const attachFlowSource = async (params, client = getDefaultClient()) => {
|
|
|
3189
3189
|
const apiClient = createApiClient({}, client);
|
|
3190
3190
|
const flowAttachSourceRequest = { sourceType };
|
|
3191
3191
|
if (params.sourceType === "exchange") flowAttachSourceRequest.exchangeProvider = params.exchangeProvider;
|
|
3192
|
-
else {
|
|
3192
|
+
else if (params.sourceType === "deposit_address") {
|
|
3193
|
+
flowAttachSourceRequest.fromChainId = params.fromChainId;
|
|
3194
|
+
flowAttachSourceRequest.fromChainName = params.fromChainName;
|
|
3195
|
+
if (params.fromAddress) flowAttachSourceRequest.fromAddress = params.fromAddress;
|
|
3196
|
+
} else {
|
|
3193
3197
|
flowAttachSourceRequest.fromAddress = params.fromAddress;
|
|
3194
3198
|
flowAttachSourceRequest.fromChainId = params.fromChainId;
|
|
3195
3199
|
flowAttachSourceRequest.fromChainName = params.fromChainName;
|
|
@@ -3220,7 +3224,7 @@ const __attachFlowSource_wrapped = instrumentFunction({
|
|
|
3220
3224
|
|
|
3221
3225
|
//#endregion
|
|
3222
3226
|
//#region src/modules/flow/utils/createFlowApiClient/createFlowApiClient.ts
|
|
3223
|
-
/** @
|
|
3227
|
+
/** @notInstrumented */
|
|
3224
3228
|
const createFlowApiClient = async ({ flowId }, client) => {
|
|
3225
3229
|
const core = getCore(client);
|
|
3226
3230
|
const apiClient = createApiClient({}, client);
|
|
@@ -3316,7 +3320,7 @@ const __cancelFlow_wrapped = instrumentFunction({
|
|
|
3316
3320
|
* @param params GetFlowParams - The parameters for fetching the flow.
|
|
3317
3321
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3318
3322
|
* @returns The flow
|
|
3319
|
-
* @
|
|
3323
|
+
* @notInstrumented
|
|
3320
3324
|
*/
|
|
3321
3325
|
const getFlow = async ({ flowId }, client = getDefaultClient()) => {
|
|
3322
3326
|
const core = getCore(client);
|
|
@@ -3334,7 +3338,7 @@ const getFlow = async ({ flowId }, client = getDefaultClient()) => {
|
|
|
3334
3338
|
* @param params GetFlowQuoteParams - The quote parameters.
|
|
3335
3339
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3336
3340
|
* @returns The updated flow with quote data
|
|
3337
|
-
* @
|
|
3341
|
+
* @notInstrumented
|
|
3338
3342
|
*/
|
|
3339
3343
|
const getFlowQuote = async ({ flowId, fromChainId, fromTokenAddress, slippage }, client = getDefaultClient()) => {
|
|
3340
3344
|
const { apiClient, environmentId, sessionToken } = await createFlowApiClient({ flowId }, client);
|
|
@@ -3449,7 +3453,7 @@ const __submitFlowTransaction_wrapped = instrumentFunction({
|
|
|
3449
3453
|
* @returns A function to remove the listener.
|
|
3450
3454
|
* @throws {ValueMustBeDefinedError} If the window is not available.
|
|
3451
3455
|
* @docs https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/apple-pay-onramp-api#events-names
|
|
3452
|
-
* @
|
|
3456
|
+
* @notInstrumented
|
|
3453
3457
|
* @hook Event listeners are error-prone to wire up by hand with useEffect.
|
|
3454
3458
|
*/
|
|
3455
3459
|
const addCoinbaseOnrampOrderEventListener = ({ listener }, client = getDefaultClient()) => {
|
|
@@ -3491,7 +3495,7 @@ const addCoinbaseOnrampOrderEventListener = ({ listener }, client = getDefaultCl
|
|
|
3491
3495
|
* @returns FieldMissingVerificationForCoinbaseOnramp[] - An array of fields that are missing verification for a Coinbase onramp order
|
|
3492
3496
|
* @throws {InvalidParamError} - If the payment method is not valid
|
|
3493
3497
|
* @throws {ValueMustBeDefinedError} - If the user is not authenticated
|
|
3494
|
-
* @
|
|
3498
|
+
* @notInstrumented
|
|
3495
3499
|
*/
|
|
3496
3500
|
const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client = getDefaultClient()) => {
|
|
3497
3501
|
if (paymentMethod !== "GUEST_CHECKOUT_APPLE_PAY") throw new InvalidParamError(`Invalid payment method: ${paymentMethod}`);
|
|
@@ -3529,7 +3533,7 @@ const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client
|
|
|
3529
3533
|
|
|
3530
3534
|
//#endregion
|
|
3531
3535
|
//#region src/modules/funding/coinbase/utils/validateUserCredentialsForCoinbaseOnrampOrder/validateUserCredentialsForCoinbaseOnrampOrder.ts
|
|
3532
|
-
/** @
|
|
3536
|
+
/** @notInstrumented */
|
|
3533
3537
|
const validateUserCredentialsForCoinbaseOnrampOrder = (client) => {
|
|
3534
3538
|
const { user } = client;
|
|
3535
3539
|
assertDefined(user, "User is not authenticated");
|
|
@@ -3604,7 +3608,7 @@ const __createCoinbaseOnrampOrder_wrapped = instrumentFunction({
|
|
|
3604
3608
|
* @param buyUrlParams CoinbaseOnrampGetBuyUrlRequest - The parameters for the buy URL.
|
|
3605
3609
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3606
3610
|
* @returns an object containing the buy URL
|
|
3607
|
-
* @
|
|
3611
|
+
* @notInstrumented
|
|
3608
3612
|
*/
|
|
3609
3613
|
const getCoinbaseBuyUrl = async (buyUrlParams, client = getDefaultClient()) => {
|
|
3610
3614
|
const core = getCore(client);
|
|
@@ -3655,7 +3659,7 @@ const __createCryptoDotComPayment_wrapped = instrumentFunction({
|
|
|
3655
3659
|
* @param transferParams - The parameters for the transfer including accountId
|
|
3656
3660
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3657
3661
|
* @returns The created transfer
|
|
3658
|
-
* @
|
|
3662
|
+
* @notInstrumented
|
|
3659
3663
|
*/
|
|
3660
3664
|
const createKrakenExchangeTransfer = async (transferParams, client = getDefaultClient()) => {
|
|
3661
3665
|
const core = getCore(client);
|
|
@@ -3689,7 +3693,7 @@ const __createKrakenExchangeTransfer_wrapped = instrumentFunction({
|
|
|
3689
3693
|
* @param [params] GetKrakenAccountsParams - Optional filters for the accounts.
|
|
3690
3694
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3691
3695
|
* @returns Array of Kraken accounts with balances
|
|
3692
|
-
* @
|
|
3696
|
+
* @notInstrumented
|
|
3693
3697
|
*/
|
|
3694
3698
|
const getKrakenAccounts = async (params, client = getDefaultClient()) => {
|
|
3695
3699
|
const core = getCore(client);
|
|
@@ -3708,7 +3712,7 @@ const getKrakenAccounts = async (params, client = getDefaultClient()) => {
|
|
|
3708
3712
|
*
|
|
3709
3713
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3710
3714
|
* @returns Transfer destinations response with whitelisted addresses
|
|
3711
|
-
* @
|
|
3715
|
+
* @notInstrumented
|
|
3712
3716
|
*/
|
|
3713
3717
|
const getKrakenWhitelistedAddresses = async (client = getDefaultClient()) => {
|
|
3714
3718
|
const core = getCore(client);
|
|
@@ -3791,6 +3795,10 @@ var MoonPayProviderNotAvailableError = class extends BaseError {
|
|
|
3791
3795
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3792
3796
|
* @returns The signed MoonPay URL.
|
|
3793
3797
|
* @instrumented
|
|
3798
|
+
* @redact-params - the return is a bare signed onramp URL whose query string
|
|
3799
|
+
* carries the provider signature plus the user's wallet address; a bare-string
|
|
3800
|
+
* return is logged under the synthetic `result` key, which no key-based rule
|
|
3801
|
+
* covers, so redact the whole event.
|
|
3794
3802
|
*/
|
|
3795
3803
|
const getMoonPayUrl = async (params, client = getDefaultClient()) => {
|
|
3796
3804
|
const core = getCore(client);
|
|
@@ -3824,7 +3832,8 @@ const __getMoonPayUrl_wrapped = instrumentFunction({
|
|
|
3824
3832
|
} catch {
|
|
3825
3833
|
return;
|
|
3826
3834
|
}
|
|
3827
|
-
}
|
|
3835
|
+
},
|
|
3836
|
+
redactAll: true
|
|
3828
3837
|
});
|
|
3829
3838
|
|
|
3830
3839
|
//#endregion
|
|
@@ -3834,7 +3843,7 @@ const __getMoonPayUrl_wrapped = instrumentFunction({
|
|
|
3834
3843
|
* and are ready for use.
|
|
3835
3844
|
*
|
|
3836
3845
|
* @returns a promise that resolves once the client is fully initialized.
|
|
3837
|
-
* @
|
|
3846
|
+
* @notInstrumented
|
|
3838
3847
|
* @noHook Client lifecycle management is not exposed as a hook; use useInitStatus.
|
|
3839
3848
|
*/
|
|
3840
3849
|
const waitForClientInitialized = async (client = getDefaultClient()) => {
|
|
@@ -3885,7 +3894,7 @@ const normalize$1 = (value) => value.toLowerCase().replace(/\s+/g, "").replace(/
|
|
|
3885
3894
|
* @param [params.catalogGroupName] - Optional display name (e.g. `"Trust Wallet"`); matched as a fallback when the key is opaque.
|
|
3886
3895
|
* @param params.walletProviders - Currently available wallet providers (from `getAvailableWalletProvidersData`).
|
|
3887
3896
|
* @returns The subset of `walletProviders` that match the catalog group.
|
|
3888
|
-
* @
|
|
3897
|
+
* @notInstrumented
|
|
3889
3898
|
*/
|
|
3890
3899
|
const matchWalletProvidersToCatalogGroup = ({ catalogGroupKey, catalogGroupName, walletProviders }) => {
|
|
3891
3900
|
const targets = new Set([normalize$1(catalogGroupKey)]);
|
|
@@ -3912,7 +3921,7 @@ const matchWalletProvidersToCatalogGroup = ({ catalogGroupKey, catalogGroupName,
|
|
|
3912
3921
|
* multi-chain wallet (same `groupId` across EVM + SOL entries) only runs
|
|
3913
3922
|
* the match once.
|
|
3914
3923
|
*
|
|
3915
|
-
* @
|
|
3924
|
+
* @notInstrumented
|
|
3916
3925
|
*/
|
|
3917
3926
|
const collectInstalledGroupIds = ({ catalog, walletProviders }) => {
|
|
3918
3927
|
const installedGroupIds = /* @__PURE__ */ new Set();
|
|
@@ -3955,7 +3964,7 @@ const collectInstalledGroupIds = ({ catalog, walletProviders }) => {
|
|
|
3955
3964
|
* @param params.catalog - The full WalletConnect catalog (typically from `getWalletConnectCatalog`).
|
|
3956
3965
|
* @param params.walletProviders - Currently available wallet providers.
|
|
3957
3966
|
* @returns A new catalog with only the wallets and groups the user does not have installed.
|
|
3958
|
-
* @
|
|
3967
|
+
* @notInstrumented
|
|
3959
3968
|
*/
|
|
3960
3969
|
const excludeInstalledFromCatalog = ({ catalog, walletProviders }) => {
|
|
3961
3970
|
const installedGroupIds = collectInstalledGroupIds({
|
|
@@ -3983,7 +3992,7 @@ const excludeInstalledFromCatalog = ({ catalog, walletProviders }) => {
|
|
|
3983
3992
|
//#region src/modules/legacyWalletBook/getWalletBookCdnUrl/getWalletBookCdnUrl.ts
|
|
3984
3993
|
/**
|
|
3985
3994
|
* Default CDN URL for the wallet book.
|
|
3986
|
-
* @
|
|
3995
|
+
* @notInstrumented
|
|
3987
3996
|
*/
|
|
3988
3997
|
const DEFAULT_WALLET_BOOK_CDN_URL = "https://dynamic-static-assets.com/wallet-book/v1/stable/wallet-book.json";
|
|
3989
3998
|
/**
|
|
@@ -3995,7 +4004,7 @@ const DEFAULT_WALLET_BOOK_CDN_URL = "https://dynamic-static-assets.com/wallet-bo
|
|
|
3995
4004
|
* 4. Default CDN URL
|
|
3996
4005
|
*
|
|
3997
4006
|
* @returns The wallet book CDN URL to use.
|
|
3998
|
-
* @
|
|
4007
|
+
* @notInstrumented
|
|
3999
4008
|
*/
|
|
4000
4009
|
const getWalletBookCdnUrl = () => {
|
|
4001
4010
|
if (typeof process !== "undefined" && process.env) {
|
|
@@ -4009,7 +4018,7 @@ const getWalletBookCdnUrl = () => {
|
|
|
4009
4018
|
//#region src/modules/legacyWalletBook/fetchLegacyWalletBook/fetchWithTimeout/fetchWithTimeout.ts
|
|
4010
4019
|
/**
|
|
4011
4020
|
* The timeout for each fetch attempt in milliseconds.
|
|
4012
|
-
* @
|
|
4021
|
+
* @notInstrumented
|
|
4013
4022
|
*/
|
|
4014
4023
|
const FETCH_TIMEOUT_MS = 3e4;
|
|
4015
4024
|
/**
|
|
@@ -4017,7 +4026,7 @@ const FETCH_TIMEOUT_MS = 3e4;
|
|
|
4017
4026
|
*
|
|
4018
4027
|
* @param client - The Dynamic client instance.
|
|
4019
4028
|
* @returns A promise that resolves to the wallet book data.
|
|
4020
|
-
* @
|
|
4029
|
+
* @notInstrumented
|
|
4021
4030
|
*/
|
|
4022
4031
|
const fetchWithTimeout = async (client) => {
|
|
4023
4032
|
const controller = new AbortController();
|
|
@@ -4049,7 +4058,7 @@ const walletBookCacheStorageKeySchema = createStorageKeySchema({
|
|
|
4049
4058
|
//#region src/modules/legacyWalletBook/fetchLegacyWalletBook/fetchLegacyWalletBook.ts
|
|
4050
4059
|
/**
|
|
4051
4060
|
* The maximum number of retry attempts.
|
|
4052
|
-
* @
|
|
4061
|
+
* @notInstrumented
|
|
4053
4062
|
*/
|
|
4054
4063
|
const MAX_RETRIES = 3;
|
|
4055
4064
|
/**
|
|
@@ -4066,7 +4075,7 @@ const RETRY_DELAY_MS = 100;
|
|
|
4066
4075
|
* @param client - The Dynamic client instance.
|
|
4067
4076
|
* @returns A promise that resolves to the wallet book data.
|
|
4068
4077
|
* @throws If both CDN fetch and cache retrieval fail.
|
|
4069
|
-
* @
|
|
4078
|
+
* @notInstrumented
|
|
4070
4079
|
*/
|
|
4071
4080
|
const fetchLegacyWalletBook = async (client) => {
|
|
4072
4081
|
const core = getCore(client);
|
|
@@ -4099,7 +4108,7 @@ const fetchLegacyWalletBook = async (client) => {
|
|
|
4099
4108
|
* catalogue. These wallets are not products the user "connects" to from the
|
|
4100
4109
|
* wallet selection list — they are embedded sign-in methods that live behind
|
|
4101
4110
|
* different SDK entry points.
|
|
4102
|
-
* @
|
|
4111
|
+
* @notInstrumented
|
|
4103
4112
|
*/
|
|
4104
4113
|
const EMBEDDED_WALLET_KEYS = [
|
|
4105
4114
|
"magicemailotp",
|
|
@@ -4128,7 +4137,7 @@ const EMBEDDED_WALLET_KEYS = [
|
|
|
4128
4137
|
* {@link shouldFilterWalletForWalletConnect}.
|
|
4129
4138
|
*
|
|
4130
4139
|
* @returns True if the wallet should be filtered out, false otherwise.
|
|
4131
|
-
* @
|
|
4140
|
+
* @notInstrumented
|
|
4132
4141
|
*/
|
|
4133
4142
|
const shouldFilterWallet = ({ wallet, walletKey }) => {
|
|
4134
4143
|
if (EMBEDDED_WALLET_KEYS.includes(walletKey)) return true;
|
|
@@ -4148,7 +4157,7 @@ const shouldFilterWallet = ({ wallet, walletKey }) => {
|
|
|
4148
4157
|
*
|
|
4149
4158
|
* @returns True if the wallet should be excluded from the WalletConnect
|
|
4150
4159
|
* catalog, false otherwise.
|
|
4151
|
-
* @
|
|
4160
|
+
* @notInstrumented
|
|
4152
4161
|
*/
|
|
4153
4162
|
const shouldFilterWalletForWalletConnect = ({ wallet, walletKey }) => {
|
|
4154
4163
|
if (shouldFilterWallet({
|
|
@@ -4165,7 +4174,7 @@ const shouldFilterWalletForWalletConnect = ({ wallet, walletKey }) => {
|
|
|
4165
4174
|
*
|
|
4166
4175
|
* @param params.spriteId - The sprite identifier from the wallet book.
|
|
4167
4176
|
* @returns The full URL to the sprite icon
|
|
4168
|
-
* @
|
|
4177
|
+
* @notInstrumented
|
|
4169
4178
|
*/
|
|
4170
4179
|
const getSpriteUrl = ({ spriteId }) => `${DYNAMIC_ICONIC_SPRITE_URL}#${spriteId}`;
|
|
4171
4180
|
|
|
@@ -4173,7 +4182,7 @@ const getSpriteUrl = ({ spriteId }) => `${DYNAMIC_ICONIC_SPRITE_URL}#${spriteId}
|
|
|
4173
4182
|
//#region src/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/transformGroup.ts
|
|
4174
4183
|
/**
|
|
4175
4184
|
* Transforms a wallet group schema into a WalletConnect catalog group.
|
|
4176
|
-
* @
|
|
4185
|
+
* @notInstrumented
|
|
4177
4186
|
*/
|
|
4178
4187
|
const transformGroup = ({ group }) => {
|
|
4179
4188
|
const spriteId = group.brand?.spriteId ?? "";
|
|
@@ -4200,7 +4209,7 @@ const transformGroup = ({ group }) => {
|
|
|
4200
4209
|
*
|
|
4201
4210
|
* Centralised here rather than in `legacyWalletBook` so all chain naming
|
|
4202
4211
|
* knowledge stays alongside `CHAINS_INFO_MAP`.
|
|
4203
|
-
* @
|
|
4212
|
+
* @notInstrumented
|
|
4204
4213
|
*/
|
|
4205
4214
|
const getChainFromWalletBookIdentifier = ({ identifier }) => {
|
|
4206
4215
|
const normalised = identifier.toLowerCase();
|
|
@@ -4218,7 +4227,7 @@ const getChainFromWalletBookIdentifier = ({ identifier }) => {
|
|
|
4218
4227
|
*
|
|
4219
4228
|
* Exported so {@link getChainsFromWalletSchema} can apply the same
|
|
4220
4229
|
* parsing to its multi-chain pass without duplicating the logic.
|
|
4221
|
-
* @
|
|
4230
|
+
* @notInstrumented
|
|
4222
4231
|
*/
|
|
4223
4232
|
const extractChainPrefix = ({ chainIdentifier }) => {
|
|
4224
4233
|
const colonIndex = chainIdentifier.indexOf(":");
|
|
@@ -4251,7 +4260,7 @@ const getChainFromWalletKey = ({ walletKey }) => {
|
|
|
4251
4260
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
4252
4261
|
* @param params.walletKey - The wallet key identifier (optional, used as last resort fallback).
|
|
4253
4262
|
* @returns The chain type, defaults to EVM if no chain can be determined.
|
|
4254
|
-
* @
|
|
4263
|
+
* @notInstrumented
|
|
4255
4264
|
*/
|
|
4256
4265
|
const getChainFromWalletSchema = ({ wallet, walletKey }) => {
|
|
4257
4266
|
if (wallet.injectedConfig && wallet.injectedConfig.length > 0) {
|
|
@@ -4279,7 +4288,7 @@ const getChainFromWalletSchema = ({ wallet, walletKey }) => {
|
|
|
4279
4288
|
//#region src/modules/legacyWalletBook/getWalletConnectCatalog/transformWallet/transformWallet.ts
|
|
4280
4289
|
/**
|
|
4281
4290
|
* Transforms a wallet schema into a WalletConnect catalog wallet entry.
|
|
4282
|
-
* @
|
|
4291
|
+
* @notInstrumented
|
|
4283
4292
|
*/
|
|
4284
4293
|
const transformWallet = ({ wallet, walletKey }) => {
|
|
4285
4294
|
const spriteId = wallet.brand?.spriteId ?? "";
|
|
@@ -4310,7 +4319,7 @@ const transformWallet = ({ wallet, walletKey }) => {
|
|
|
4310
4319
|
/**
|
|
4311
4320
|
* Transforms the legacy wallet book into a WalletConnect catalog structure.
|
|
4312
4321
|
* Filters out embedded wallets and injected-only wallets.
|
|
4313
|
-
* @
|
|
4322
|
+
* @notInstrumented
|
|
4314
4323
|
*/
|
|
4315
4324
|
const transformWalletBook = ({ walletBook }) => {
|
|
4316
4325
|
const groups = {};
|
|
@@ -4343,7 +4352,7 @@ const transformWalletBook = ({ walletBook }) => {
|
|
|
4343
4352
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4344
4353
|
* @returns A promise that resolves to the WalletConnect catalog containing groups and wallets.
|
|
4345
4354
|
* @throws If unable to fetch the wallet book from the API (when both CDN fetch and cache retrieval fail).
|
|
4346
|
-
* @
|
|
4355
|
+
* @notInstrumented
|
|
4347
4356
|
*/
|
|
4348
4357
|
const getWalletConnectCatalog = async (client = getDefaultClient()) => {
|
|
4349
4358
|
return transformWalletBook({ walletBook: await fetchLegacyWalletBook(client) });
|
|
@@ -4357,7 +4366,7 @@ const getWalletConnectCatalog = async (client = getDefaultClient()) => {
|
|
|
4357
4366
|
*
|
|
4358
4367
|
* @param params.normalizedWalletNameWithChain - The normalized wallet name with chain suffix.
|
|
4359
4368
|
* @returns The chain if found, undefined otherwise.
|
|
4360
|
-
* @
|
|
4369
|
+
* @notInstrumented
|
|
4361
4370
|
*/
|
|
4362
4371
|
const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
|
|
4363
4372
|
const lowerName = normalizedWalletNameWithChain.toLowerCase();
|
|
@@ -4377,7 +4386,7 @@ const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
|
|
|
4377
4386
|
* @param params.walletProviderKey - The wallet provider key to get the catalog wallet entry for.
|
|
4378
4387
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4379
4388
|
* @returns A promise that resolves to the WalletConnect catalog wallet entry, or undefined if not found.
|
|
4380
|
-
* @
|
|
4389
|
+
* @notInstrumented
|
|
4381
4390
|
*/
|
|
4382
4391
|
const getWalletConnectCatalogWalletByWalletProviderKey = async ({ walletProviderKey }, client = getDefaultClient()) => {
|
|
4383
4392
|
const { normalizedWalletNameWithChain } = splitWalletProviderKey(walletProviderKey);
|
|
@@ -4483,7 +4492,7 @@ const __acknowledgeRecoveryCodes_wrapped = instrumentFunction({
|
|
|
4483
4492
|
* @param [params.requestedScopes] - Optional scopes to request an elevated access token instead of an MFA token.
|
|
4484
4493
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4485
4494
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4486
|
-
* @
|
|
4495
|
+
* @notInstrumented
|
|
4487
4496
|
*/
|
|
4488
4497
|
const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, requestedScopes }, client = getDefaultClient()) => {
|
|
4489
4498
|
const core = getCore(client);
|
|
@@ -4514,7 +4523,7 @@ const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, reques
|
|
|
4514
4523
|
|
|
4515
4524
|
//#endregion
|
|
4516
4525
|
//#region src/modules/auth/passkeys/getPasskeyAuthenticationOptions/getPasskeyAuthenticationOptions.ts
|
|
4517
|
-
/** @
|
|
4526
|
+
/** @notInstrumented */
|
|
4518
4527
|
const getPasskeyAuthenticationOptions = async ({ relatedOriginRpId } = {}, client) => {
|
|
4519
4528
|
const core = getCore(client);
|
|
4520
4529
|
return await createApiClient({}, client).getPasskeyAuthenticationOptions({
|
|
@@ -4525,7 +4534,7 @@ const getPasskeyAuthenticationOptions = async ({ relatedOriginRpId } = {}, clien
|
|
|
4525
4534
|
|
|
4526
4535
|
//#endregion
|
|
4527
4536
|
//#region src/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.ts
|
|
4528
|
-
/** @
|
|
4537
|
+
/** @notInstrumented */
|
|
4529
4538
|
const serverAuthenticatePasskey = async ({ authentication, createMfaToken, requestedScopes }, client) => {
|
|
4530
4539
|
const core = getCore(client);
|
|
4531
4540
|
return await createApiClient({}, client).authenticateMfaPasskeyDevice({
|
|
@@ -4556,7 +4565,7 @@ const serverAuthenticatePasskey = async ({ authentication, createMfaToken, reque
|
|
|
4556
4565
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4557
4566
|
* @throws NoWebAuthNSupportError If WebAuthn is not supported by the browser.
|
|
4558
4567
|
* @throws NoPasskeyCredentialsFoundError If no passkey credentials are found.
|
|
4559
|
-
* @
|
|
4568
|
+
* @notInstrumented
|
|
4560
4569
|
*/
|
|
4561
4570
|
const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, requestedScopes } = {}, client = getDefaultClient()) => {
|
|
4562
4571
|
const core = getCore(client);
|
|
@@ -4606,7 +4615,7 @@ const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, reque
|
|
|
4606
4615
|
* @param [params.requestedScopes] - Optional scopes to request an elevated access token instead of an MFA token.
|
|
4607
4616
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4608
4617
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4609
|
-
* @
|
|
4618
|
+
* @notInstrumented
|
|
4610
4619
|
*/
|
|
4611
4620
|
const authenticateTotpMfaDevice = async ({ deviceId, code, createMfaTokenOptions, requestedScopes }, client = getDefaultClient()) => {
|
|
4612
4621
|
const core = getCore(client);
|
|
@@ -4692,7 +4701,7 @@ const __createNewMfaRecoveryCodes_wrapped = instrumentFunction({
|
|
|
4692
4701
|
const deleteMfaDevice = async ({ deviceId, mfaAuthToken }, client = getDefaultClient()) => {
|
|
4693
4702
|
const core = getCore(client);
|
|
4694
4703
|
assertDefined(deviceId, "deviceId is required");
|
|
4695
|
-
if (!
|
|
4704
|
+
if (!getElevatedAccessToken({
|
|
4696
4705
|
consume: false,
|
|
4697
4706
|
scope: TokenScope.Credentialunlink
|
|
4698
4707
|
}, client)) assertDefined(mfaAuthToken, "mfaAuthToken is required");
|
|
@@ -4725,7 +4734,7 @@ const __deleteMfaDevice_wrapped = instrumentFunction({
|
|
|
4725
4734
|
*
|
|
4726
4735
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4727
4736
|
* @returns A promise that resolves to an array of the user's registered MFA devices.
|
|
4728
|
-
* @
|
|
4737
|
+
* @notInstrumented
|
|
4729
4738
|
*/
|
|
4730
4739
|
const getMfaDevices = async (client = getDefaultClient()) => {
|
|
4731
4740
|
const core = getCore(client);
|
|
@@ -4745,7 +4754,7 @@ const getMfaDevices = async (client = getDefaultClient()) => {
|
|
|
4745
4754
|
*
|
|
4746
4755
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4747
4756
|
* @returns A promise that resolves to the user's MFA recovery codes.
|
|
4748
|
-
* @
|
|
4757
|
+
* @notInstrumented
|
|
4749
4758
|
*/
|
|
4750
4759
|
const getMfaRecoveryCodes = async (client = getDefaultClient()) => {
|
|
4751
4760
|
const core = getCore(client);
|
|
@@ -4764,6 +4773,9 @@ const getMfaRecoveryCodes = async (client = getDefaultClient()) => {
|
|
|
4764
4773
|
* @returns A promise that resolves to the TOTP registration response containing setup information,
|
|
4765
4774
|
* like the secret key and the OTP Auth URI.
|
|
4766
4775
|
* @instrumented
|
|
4776
|
+
* @redact-params - the response embeds the TOTP shared secret in both `secret`
|
|
4777
|
+
* and the `uri` (`otpauth://...?secret=...`); redact the whole event so the
|
|
4778
|
+
* seed never reaches logs via the un-keyed `uri` field.
|
|
4767
4779
|
*/
|
|
4768
4780
|
const registerTotpMfaDevice = async (client = getDefaultClient()) => {
|
|
4769
4781
|
const core = getCore(client);
|
|
@@ -4779,7 +4791,8 @@ const __registerTotpMfaDevice_wrapped = instrumentFunction({
|
|
|
4779
4791
|
} catch {
|
|
4780
4792
|
return;
|
|
4781
4793
|
}
|
|
4782
|
-
}
|
|
4794
|
+
},
|
|
4795
|
+
redactAll: true
|
|
4783
4796
|
});
|
|
4784
4797
|
|
|
4785
4798
|
//#endregion
|
|
@@ -5830,7 +5843,7 @@ const __sendSmsOTP_wrapped = instrumentFunction({
|
|
|
5830
5843
|
|
|
5831
5844
|
//#endregion
|
|
5832
5845
|
//#region src/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.ts
|
|
5833
|
-
/** @
|
|
5846
|
+
/** @notInstrumented */
|
|
5834
5847
|
const verifyOTPForUserSignIn = async ({ otpVerification, verificationToken }, client) => {
|
|
5835
5848
|
const core = getCore(client);
|
|
5836
5849
|
const apiClient = createApiClient({}, client);
|
|
@@ -5850,7 +5863,7 @@ const verifyOTPForUserSignIn = async ({ otpVerification, verificationToken }, cl
|
|
|
5850
5863
|
|
|
5851
5864
|
//#endregion
|
|
5852
5865
|
//#region src/modules/otp/verifyOTP/verifyOTPForUserUpdate/verifyOTPForUserUpdate.ts
|
|
5853
|
-
/** @
|
|
5866
|
+
/** @notInstrumented */
|
|
5854
5867
|
const verifyOTPForUserUpdate = async ({ otpVerification, verificationToken, requestedScopes }, client) => {
|
|
5855
5868
|
const core = getCore(client);
|
|
5856
5869
|
const apiClient = createApiClient({}, client);
|
|
@@ -5921,7 +5934,7 @@ const __verifyOTP_wrapped = instrumentFunction({
|
|
|
5921
5934
|
* @param params GetSwapQuoteParams - The parameters for the swap quote.
|
|
5922
5935
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
5923
5936
|
* @returns The swap quote details. Use the `signingPayload` field to get the transaction data for the wallet to sign.
|
|
5924
|
-
* @
|
|
5937
|
+
* @notInstrumented
|
|
5925
5938
|
*/
|
|
5926
5939
|
const getSwapQuote = async (params, client = getDefaultClient()) => {
|
|
5927
5940
|
const core = getCore(client);
|
|
@@ -5956,7 +5969,7 @@ const getSwapQuote = async (params, client = getDefaultClient()) => {
|
|
|
5956
5969
|
* @param params GetSwapStatusParams - The parameters for the swap status.
|
|
5957
5970
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
5958
5971
|
* @returns The swap status.
|
|
5959
|
-
* @
|
|
5972
|
+
* @notInstrumented
|
|
5960
5973
|
*/
|
|
5961
5974
|
const getSwapStatus = async (params, client = getDefaultClient()) => {
|
|
5962
5975
|
const core = getCore(client);
|
|
@@ -6052,7 +6065,7 @@ const ACCESS_DENIED_PHRASE = "Google Drive access denied";
|
|
|
6052
6065
|
*
|
|
6053
6066
|
* @param grantedScopes - Scopes the user has granted to their Google account.
|
|
6054
6067
|
* @returns The subset of required scopes that are still missing.
|
|
6055
|
-
* @
|
|
6068
|
+
* @notInstrumented
|
|
6056
6069
|
*/
|
|
6057
6070
|
const findMissingGoogleDriveBackupScopes = (grantedScopes) => GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES.filter((required) => !grantedScopes.includes(required));
|
|
6058
6071
|
|
|
@@ -6070,7 +6083,7 @@ const findMissingGoogleDriveBackupScopes = (grantedScopes) => GOOGLE_DRIVE_BACKU
|
|
|
6070
6083
|
* Google account (see `findGoogleOauthAccountId`).
|
|
6071
6084
|
* @param client - The Dynamic client instance.
|
|
6072
6085
|
* @returns The OAuth access token and granted scopes.
|
|
6073
|
-
* @
|
|
6086
|
+
* @notInstrumented
|
|
6074
6087
|
*/
|
|
6075
6088
|
const fetchGoogleDriveOauthAccess = async ({ oauthAccountId }, client) => {
|
|
6076
6089
|
const core = getCore(client);
|
|
@@ -6095,7 +6108,7 @@ const fetchGoogleDriveOauthAccess = async ({ oauthAccountId }, client) => {
|
|
|
6095
6108
|
* `client.user?.verifiedCredentials`.
|
|
6096
6109
|
* @returns The credential id of the linked Google oauth account, or
|
|
6097
6110
|
* `undefined`.
|
|
6098
|
-
* @
|
|
6111
|
+
* @notInstrumented
|
|
6099
6112
|
*/
|
|
6100
6113
|
const findGoogleOauthAccountId = (credentials) => credentials?.find((cred) => cred.format === JwtVerifiedCredentialFormatEnum.Oauth && cred.oauthProvider === ProviderEnum.Google)?.id;
|
|
6101
6114
|
|
|
@@ -6179,7 +6192,7 @@ const __getGoogleDriveBackupReadiness_wrapped = instrumentFunction({
|
|
|
6179
6192
|
*
|
|
6180
6193
|
* @param grantedScopes - Scopes the user has granted to their Google account.
|
|
6181
6194
|
* @returns `true` when every required scope is granted, otherwise `false`.
|
|
6182
|
-
* @
|
|
6195
|
+
* @notInstrumented
|
|
6183
6196
|
*/
|
|
6184
6197
|
const hasAllGoogleDriveBackupScopes = (grantedScopes) => findMissingGoogleDriveBackupScopes(grantedScopes).length === 0;
|
|
6185
6198
|
|
|
@@ -6196,7 +6209,7 @@ const hasAllGoogleDriveBackupScopes = (grantedScopes) => findMissingGoogleDriveB
|
|
|
6196
6209
|
* @param err - The unknown value to check.
|
|
6197
6210
|
* @returns `true` when `err` is an `Error` whose message indicates Google
|
|
6198
6211
|
* Drive access was denied.
|
|
6199
|
-
* @
|
|
6212
|
+
* @notInstrumented
|
|
6200
6213
|
*/
|
|
6201
6214
|
const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && err.message.includes(ACCESS_DENIED_PHRASE);
|
|
6202
6215
|
|
|
@@ -6204,57 +6217,57 @@ const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && er
|
|
|
6204
6217
|
//#region src/utils/isMobile/isMobile.ts
|
|
6205
6218
|
/**
|
|
6206
6219
|
* Sourced from http://detectmobilebrowsers.com/
|
|
6207
|
-
* @
|
|
6220
|
+
* @notInstrumented
|
|
6208
6221
|
*/
|
|
6209
6222
|
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;
|
|
6210
6223
|
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;
|
|
6211
|
-
/** @
|
|
6224
|
+
/** @notInstrumented */
|
|
6212
6225
|
const isMobile = (maxTouchPointsOverride) => {
|
|
6213
6226
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6214
6227
|
return userAgentRegex1.test(navigator.userAgent) || userAgentRegex2.test(navigator.userAgent.substring(0, 4)) || isIPad(maxTouchPointsOverride) || isIPhone();
|
|
6215
6228
|
};
|
|
6216
|
-
/** @
|
|
6229
|
+
/** @notInstrumented */
|
|
6217
6230
|
const isIPhone = () => typeof window === "undefined" || typeof navigator === "undefined" ? false : /iPhone|ios/.test(navigator.userAgent);
|
|
6218
6231
|
/**
|
|
6219
6232
|
* @param [optional] maxTouchPointsOverride - this is used for testing since
|
|
6220
6233
|
* it seems that JSDOM doesn't support maxTouchPoints, so it was impossible
|
|
6221
6234
|
* to mock it
|
|
6222
|
-
* @
|
|
6235
|
+
* @notInstrumented
|
|
6223
6236
|
*/
|
|
6224
6237
|
const isIPad = (maxTouchPointsOverride) => {
|
|
6225
6238
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6226
6239
|
const maxTouchPoints = maxTouchPointsOverride || navigator.maxTouchPoints;
|
|
6227
6240
|
return /iPad/.test(navigator.userAgent) || /Mac/.test(navigator.userAgent) && maxTouchPoints === 5;
|
|
6228
6241
|
};
|
|
6229
|
-
/** @
|
|
6242
|
+
/** @notInstrumented */
|
|
6230
6243
|
const isIOS = (maxTouchPointsOverride) => {
|
|
6231
6244
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6232
6245
|
return isIPhone() || isIPad(maxTouchPointsOverride);
|
|
6233
6246
|
};
|
|
6234
|
-
/** @
|
|
6247
|
+
/** @notInstrumented */
|
|
6235
6248
|
const isAndroid = () => isMobile() && !isIOS();
|
|
6236
|
-
/** @
|
|
6249
|
+
/** @notInstrumented */
|
|
6237
6250
|
const isSafariBrowser = () => {
|
|
6238
6251
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6239
6252
|
const { userAgent } = navigator;
|
|
6240
6253
|
return userAgent.includes("Safari") && !userAgent.includes("Chrome") && !userAgent.includes("Chromium");
|
|
6241
6254
|
};
|
|
6242
|
-
/** @
|
|
6255
|
+
/** @notInstrumented */
|
|
6243
6256
|
const isEdgeBrowser = () => {
|
|
6244
6257
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6245
6258
|
return /\bEdg\//.test(navigator.userAgent);
|
|
6246
6259
|
};
|
|
6247
|
-
/** @
|
|
6260
|
+
/** @notInstrumented */
|
|
6248
6261
|
const isOperaBrowser = () => {
|
|
6249
6262
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6250
6263
|
return /\b(OPR|Opera)\//.test(navigator.userAgent);
|
|
6251
6264
|
};
|
|
6252
|
-
/** @
|
|
6265
|
+
/** @notInstrumented */
|
|
6253
6266
|
const isFirefoxBrowser = () => {
|
|
6254
6267
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6255
6268
|
return /\bFirefox\//.test(navigator.userAgent);
|
|
6256
6269
|
};
|
|
6257
|
-
/** @
|
|
6270
|
+
/** @notInstrumented */
|
|
6258
6271
|
const isChromeBrowser = () => {
|
|
6259
6272
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6260
6273
|
return /\bChrome\//.test(navigator.userAgent) && !isEdgeBrowser() && !isOperaBrowser();
|
|
@@ -6288,7 +6301,7 @@ const isChromeBrowser = () => {
|
|
|
6288
6301
|
* @param params.installationUrls - The wallet option's `installationUrls`
|
|
6289
6302
|
* record (from `getWalletOptionsCatalogue`).
|
|
6290
6303
|
* @returns The install URL for the detected platform, or `undefined`.
|
|
6291
|
-
* @
|
|
6304
|
+
* @notInstrumented
|
|
6292
6305
|
*/
|
|
6293
6306
|
const getInstallationLinkForCurrentPlatform = ({ installationUrls }) => {
|
|
6294
6307
|
if (isIOS()) return installationUrls.ios;
|
|
@@ -6314,7 +6327,7 @@ const getInstallationLinkForCurrentPlatform = ({ installationUrls }) => {
|
|
|
6314
6327
|
* @param params.wallet - The wallet entry.
|
|
6315
6328
|
* @param params.walletKey - The wallet's key in `walletBook.wallets`.
|
|
6316
6329
|
* @returns The wallet option key.
|
|
6317
|
-
* @
|
|
6330
|
+
* @notInstrumented
|
|
6318
6331
|
*/
|
|
6319
6332
|
const resolveWalletBookWalletOptionKey = ({ wallet, walletKey }) => wallet.group ?? wallet.chainGroup ?? wallet.walletGroup ?? walletKey;
|
|
6320
6333
|
|
|
@@ -6329,7 +6342,7 @@ const resolveWalletBookWalletOptionKey = ({ wallet, walletKey }) => wallet.group
|
|
|
6329
6342
|
*
|
|
6330
6343
|
* @param params.wallet - The wallet book wallet entry.
|
|
6331
6344
|
* @returns The in-app browser URL, or `undefined` if neither field is set.
|
|
6332
|
-
* @
|
|
6345
|
+
* @notInstrumented
|
|
6333
6346
|
*/
|
|
6334
6347
|
const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wallet.mobile?.inAppBrowser ?? void 0;
|
|
6335
6348
|
|
|
@@ -6347,7 +6360,7 @@ const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wall
|
|
|
6347
6360
|
*
|
|
6348
6361
|
* @param params.walletBook - The fetched wallet book.
|
|
6349
6362
|
* @returns Tagged `inAppBrowser` options paired with their wallet option keys.
|
|
6350
|
-
* @
|
|
6363
|
+
* @notInstrumented
|
|
6351
6364
|
*/
|
|
6352
6365
|
const buildInAppBrowserOptions = ({ walletBook }) => {
|
|
6353
6366
|
const result = [];
|
|
@@ -6394,7 +6407,7 @@ const EDGE_ADDONS_URL_TEMPLATE = "https://microsoftedge.microsoft.com/addons/det
|
|
|
6394
6407
|
*
|
|
6395
6408
|
* @param params.wallet - The wallet book entry.
|
|
6396
6409
|
* @returns The URL bag, omitting fields the wallet does not provide.
|
|
6397
|
-
* @
|
|
6410
|
+
* @notInstrumented
|
|
6398
6411
|
*/
|
|
6399
6412
|
const buildInstallationUrls = ({ wallet }) => {
|
|
6400
6413
|
const androidId = wallet.mobile?.androidId;
|
|
@@ -6438,7 +6451,7 @@ const hasAnyInstallationUrl = ({ urls }) => Object.values(urls).some(Boolean);
|
|
|
6438
6451
|
*
|
|
6439
6452
|
* @param params.walletBook - The fetched wallet book.
|
|
6440
6453
|
* @returns A map from wallet option key to its install URL bag.
|
|
6441
|
-
* @
|
|
6454
|
+
* @notInstrumented
|
|
6442
6455
|
*/
|
|
6443
6456
|
const buildInstallationUrlsByWalletOptionKey = ({ walletBook }) => {
|
|
6444
6457
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -6469,7 +6482,7 @@ const buildInstallationUrlsByWalletOptionKey = ({ walletBook }) => {
|
|
|
6469
6482
|
*
|
|
6470
6483
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
6471
6484
|
* @returns True when the wallet has a native or universal mobile link.
|
|
6472
|
-
* @
|
|
6485
|
+
* @notInstrumented
|
|
6473
6486
|
*/
|
|
6474
6487
|
const hasUsableDeeplink = ({ wallet }) => Boolean(wallet.mobile?.native || wallet.mobile?.universal);
|
|
6475
6488
|
|
|
@@ -6508,7 +6521,7 @@ const METAMASK_SDK_URI_SUPPORTED_CHAINS = ["EVM", "SOL"];
|
|
|
6508
6521
|
*
|
|
6509
6522
|
* @param params.walletBook - The fetched wallet book.
|
|
6510
6523
|
* @returns Tagged `metamaskSdkUri` options for MetaMask if eligible, otherwise an empty array.
|
|
6511
|
-
* @
|
|
6524
|
+
* @notInstrumented
|
|
6512
6525
|
*/
|
|
6513
6526
|
const buildMetaMaskSdkUriOptions = ({ walletBook }) => {
|
|
6514
6527
|
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) {
|
|
@@ -6555,7 +6568,7 @@ const buildMetaMaskSdkUriOptions = ({ walletBook }) => {
|
|
|
6555
6568
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
6556
6569
|
* @param [params.walletKey] - The wallet key identifier (used as last-resort fallback).
|
|
6557
6570
|
* @returns Ordered, deduped array of Chains.
|
|
6558
|
-
* @
|
|
6571
|
+
* @notInstrumented
|
|
6559
6572
|
*/
|
|
6560
6573
|
const getChainsFromWalletSchema = ({ wallet, walletKey }) => {
|
|
6561
6574
|
const chains = /* @__PURE__ */ new Set();
|
|
@@ -6606,7 +6619,7 @@ const WALLETCONNECT_SUPPORTED_CHAINS = new Set(["EVM", "SOL"]);
|
|
|
6606
6619
|
*
|
|
6607
6620
|
* @param params.walletBook - The fetched wallet book.
|
|
6608
6621
|
* @returns Tagged `walletConnect` options paired with their wallet option keys.
|
|
6609
|
-
* @
|
|
6622
|
+
* @notInstrumented
|
|
6610
6623
|
*/
|
|
6611
6624
|
const buildWalletConnectOptions = ({ walletBook }) => {
|
|
6612
6625
|
const result = [];
|
|
@@ -6673,7 +6686,7 @@ const buildWalletConnectOptions = ({ walletBook }) => {
|
|
|
6673
6686
|
* @param params.walletBook - The fetched wallet book.
|
|
6674
6687
|
* @param params.walletOptionKey - The wallet option key.
|
|
6675
6688
|
* @returns The constructed wallet option.
|
|
6676
|
-
* @
|
|
6689
|
+
* @notInstrumented
|
|
6677
6690
|
*/
|
|
6678
6691
|
const buildWalletOption = ({ connectionOptions, displayOverride, installationUrls, walletBook, walletOptionKey }) => {
|
|
6679
6692
|
const group = walletBook.groups[walletOptionKey];
|
|
@@ -6711,7 +6724,7 @@ const buildWalletOption = ({ connectionOptions, displayOverride, installationUrl
|
|
|
6711
6724
|
*
|
|
6712
6725
|
* @param params.walletProvider - The wallet provider to test.
|
|
6713
6726
|
* @returns True when the provider exposes a `connect` method.
|
|
6714
|
-
* @
|
|
6727
|
+
* @notInstrumented
|
|
6715
6728
|
*/
|
|
6716
6729
|
const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletProvider.connect);
|
|
6717
6730
|
|
|
@@ -6738,7 +6751,7 @@ const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletPro
|
|
|
6738
6751
|
* @param params.entry - The registry entry to classify.
|
|
6739
6752
|
* @returns The matching source, or `undefined` if this entry should not
|
|
6740
6753
|
* surface a `withWalletProvider` option.
|
|
6741
|
-
* @
|
|
6754
|
+
* @notInstrumented
|
|
6742
6755
|
*/
|
|
6743
6756
|
const classifyWithWalletProviderSource = ({ entry }) => {
|
|
6744
6757
|
const { priority } = entry;
|
|
@@ -6759,7 +6772,7 @@ const classifyWithWalletProviderSource = ({ entry }) => {
|
|
|
6759
6772
|
* @param params.chain - The chain whose suffix should be stripped.
|
|
6760
6773
|
* @param params.normalizedName - The normalized wallet-name-with-chain string.
|
|
6761
6774
|
* @returns The name with the chain suffix removed, or the input unchanged.
|
|
6762
|
-
* @
|
|
6775
|
+
* @notInstrumented
|
|
6763
6776
|
*/
|
|
6764
6777
|
const stripChainSuffix = ({ chain, normalizedName }) => {
|
|
6765
6778
|
const suffix = chain.toLowerCase();
|
|
@@ -6788,7 +6801,7 @@ const stripChainSuffix = ({ chain, normalizedName }) => {
|
|
|
6788
6801
|
*
|
|
6789
6802
|
* @param displayName - The provider's `metadata.displayName`.
|
|
6790
6803
|
* @returns The normalized wallet option key (lowercased, no whitespace).
|
|
6791
|
-
* @
|
|
6804
|
+
* @notInstrumented
|
|
6792
6805
|
*/
|
|
6793
6806
|
const normalizeWalletDisplayName = (displayName) => displayName.toLowerCase().replace(/\s+/g, "");
|
|
6794
6807
|
|
|
@@ -6806,7 +6819,7 @@ const normalize = (value) => value === void 0 ? void 0 : value.toLowerCase().rep
|
|
|
6806
6819
|
* @param params.candidate - The lowercased, chain-suffix-stripped candidate.
|
|
6807
6820
|
* @param params.walletBook - The fetched wallet book.
|
|
6808
6821
|
* @returns The matching wallet book wallet key, or `undefined`.
|
|
6809
|
-
* @
|
|
6822
|
+
* @notInstrumented
|
|
6810
6823
|
*/
|
|
6811
6824
|
const findByNameMatch = ({ candidate, walletBook }) => {
|
|
6812
6825
|
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) if (normalize(wallet.name) === candidate || normalize(wallet.shortName) === candidate) return walletKey;
|
|
@@ -6824,7 +6837,7 @@ const findByNameMatch = ({ candidate, walletBook }) => {
|
|
|
6824
6837
|
* @param params.fallback - Wallet key to return if no group field is set.
|
|
6825
6838
|
* @param params.wallet - The wallet book wallet entry.
|
|
6826
6839
|
* @returns The resolved wallet option key.
|
|
6827
|
-
* @
|
|
6840
|
+
* @notInstrumented
|
|
6828
6841
|
*/
|
|
6829
6842
|
const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.chainGroup ?? wallet.walletGroup ?? fallback;
|
|
6830
6843
|
|
|
@@ -6861,7 +6874,7 @@ const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.
|
|
|
6861
6874
|
* @param params.walletBook - The fetched wallet book.
|
|
6862
6875
|
* @param params.walletProvider - The registered wallet provider.
|
|
6863
6876
|
* @returns The wallet option key for this provider.
|
|
6864
|
-
* @
|
|
6877
|
+
* @notInstrumented
|
|
6865
6878
|
*/
|
|
6866
6879
|
const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }) => {
|
|
6867
6880
|
const { normalizedWalletNameWithChain } = splitWalletProviderKey(walletProvider.key);
|
|
@@ -6909,7 +6922,7 @@ const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }
|
|
|
6909
6922
|
* @param params.walletBook - The fetched wallet book.
|
|
6910
6923
|
* @param client - The Dynamic client (used for logging unclassifiable entries).
|
|
6911
6924
|
* @returns An array of tagged options, in input order.
|
|
6912
|
-
* @
|
|
6925
|
+
* @notInstrumented
|
|
6913
6926
|
*/
|
|
6914
6927
|
const buildWithWalletProviderOptions = ({ entries, walletBook }, client) => {
|
|
6915
6928
|
const result = [];
|
|
@@ -6981,7 +6994,7 @@ const EXCLUDED_WALLET_OPTION_KEYS = new Set(["coinbase", "coinbasewallet"]);
|
|
|
6981
6994
|
* @param params.options - The tagged options to group.
|
|
6982
6995
|
* @returns A map from wallet option key to its grouped option bucket,
|
|
6983
6996
|
* iterable in first-seen order.
|
|
6984
|
-
* @
|
|
6997
|
+
* @notInstrumented
|
|
6985
6998
|
*/
|
|
6986
6999
|
const groupOptionsByWalletOption = ({ options }) => {
|
|
6987
7000
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -7021,7 +7034,7 @@ const CONNECTION_OPTION_PRIORITY = {
|
|
|
7021
7034
|
*
|
|
7022
7035
|
* @param params.option - The connection option to inspect.
|
|
7023
7036
|
* @returns The numeric priority — lower is better.
|
|
7024
|
-
* @
|
|
7037
|
+
* @notInstrumented
|
|
7025
7038
|
*/
|
|
7026
7039
|
const getConnectionOptionPriority = ({ option }) => CONNECTION_OPTION_PRIORITY[option.type];
|
|
7027
7040
|
|
|
@@ -7038,7 +7051,7 @@ const getConnectionOptionPriority = ({ option }) => CONNECTION_OPTION_PRIORITY[o
|
|
|
7038
7051
|
*
|
|
7039
7052
|
* @param params.options - The options to sort.
|
|
7040
7053
|
* @returns A new array in priority order.
|
|
7041
|
-
* @
|
|
7054
|
+
* @notInstrumented
|
|
7042
7055
|
*/
|
|
7043
7056
|
const sortConnectionOptions = ({ options }) => [...options].sort((a, b) => {
|
|
7044
7057
|
const priorityDelta = getConnectionOptionPriority({ option: a }) - getConnectionOptionPriority({ option: b });
|
|
@@ -7086,7 +7099,7 @@ const PRIORITY_WALLET_KEYS = [
|
|
|
7086
7099
|
*
|
|
7087
7100
|
* @param params.walletOption - The wallet option to inspect.
|
|
7088
7101
|
* @returns Numeric priority index — lower is better.
|
|
7089
|
-
* @
|
|
7102
|
+
* @notInstrumented
|
|
7090
7103
|
*/
|
|
7091
7104
|
const getPriorityIndex = ({ walletOption }) => {
|
|
7092
7105
|
const index = PRIORITY_WALLET_KEYS.indexOf(walletOption.key);
|
|
@@ -7103,7 +7116,7 @@ const getPriorityIndex = ({ walletOption }) => {
|
|
|
7103
7116
|
* @param params.a - First wallet option.
|
|
7104
7117
|
* @param params.b - Second wallet option.
|
|
7105
7118
|
* @returns Negative when `a` ranks first, positive when `b` ranks first.
|
|
7106
|
-
* @
|
|
7119
|
+
* @notInstrumented
|
|
7107
7120
|
*/
|
|
7108
7121
|
const compareByRelevance = ({ a, b }) => {
|
|
7109
7122
|
const aIndex = getPriorityIndex({ walletOption: a });
|
|
@@ -7123,7 +7136,7 @@ const compareByRelevance = ({ a, b }) => {
|
|
|
7123
7136
|
*
|
|
7124
7137
|
* @param params.walletOption - The wallet option to inspect.
|
|
7125
7138
|
* @returns True when `connectionOptions` is non-empty.
|
|
7126
|
-
* @
|
|
7139
|
+
* @notInstrumented
|
|
7127
7140
|
*/
|
|
7128
7141
|
const hasAnyConnectionOption = ({ walletOption }) => walletOption.connectionOptions.length > 0;
|
|
7129
7142
|
|
|
@@ -7138,7 +7151,7 @@ const hasAnyConnectionOption = ({ walletOption }) => walletOption.connectionOpti
|
|
|
7138
7151
|
*
|
|
7139
7152
|
* @param params.walletOption - The wallet option to inspect.
|
|
7140
7153
|
* @returns True when an installed provider is available.
|
|
7141
|
-
* @
|
|
7154
|
+
* @notInstrumented
|
|
7142
7155
|
*/
|
|
7143
7156
|
const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOptions[0]?.type === "withWalletProvider";
|
|
7144
7157
|
|
|
@@ -7168,7 +7181,7 @@ const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOption
|
|
|
7168
7181
|
* @param params.walletOptions - The wallet options to sort.
|
|
7169
7182
|
* @param params.ordering - The requested ordering.
|
|
7170
7183
|
* @returns A new array in the requested order.
|
|
7171
|
-
* @
|
|
7184
|
+
* @notInstrumented
|
|
7172
7185
|
*/
|
|
7173
7186
|
const sortWalletOptions = ({ walletOptions, ordering }) => {
|
|
7174
7187
|
if (ordering === "alphabetical") return [...walletOptions].sort((a, b) => a.name.localeCompare(b.name, void 0, { sensitivity: "base" }));
|
|
@@ -7217,7 +7230,7 @@ const EMPTY_WALLET_BOOK = {
|
|
|
7217
7230
|
* @param [params] - Inclusion flag + ordering preference + exclusions.
|
|
7218
7231
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7219
7232
|
* @returns A promise that resolves to the wallet options catalogue.
|
|
7220
|
-
* @
|
|
7233
|
+
* @notInstrumented
|
|
7221
7234
|
*/
|
|
7222
7235
|
const getWalletOptionsCatalogue = async (params = {}, client = getDefaultClient()) => {
|
|
7223
7236
|
const includeMobileOptions = params.includeMobileOptions ?? false;
|
|
@@ -7274,7 +7287,7 @@ const getWalletOptionsCatalogue = async (params = {}, client = getDefaultClient(
|
|
|
7274
7287
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7275
7288
|
* @returns A promise that resolves if the wallet is available for signing.
|
|
7276
7289
|
* @throws WalletAccountNotSelectedError If the wallet account is not currently selected.
|
|
7277
|
-
* @
|
|
7290
|
+
* @notInstrumented
|
|
7278
7291
|
*/
|
|
7279
7292
|
const assertWalletAccountSigningAvailability = async ({ walletAccount }, client = getDefaultClient()) => {
|
|
7280
7293
|
const { addresses } = await getWalletProviderFromWalletAccount({ walletAccount }, client).getConnectedAddresses();
|
|
@@ -7323,7 +7336,7 @@ const __confirmTransaction_wrapped = instrumentFunction({
|
|
|
7323
7336
|
|
|
7324
7337
|
//#endregion
|
|
7325
7338
|
//#region src/modules/wallets/utils/getAddressesWithTypesFromConnectionResult/getAddressesWithTypesFromConnectionResult.ts
|
|
7326
|
-
/** @
|
|
7339
|
+
/** @notInstrumented */
|
|
7327
7340
|
const getAddressesWithTypesFromConnectionResult = (connectionResult) => {
|
|
7328
7341
|
return connectionResult.addresses.filter((address) => !!address.address && !!address.type);
|
|
7329
7342
|
};
|
|
@@ -7398,13 +7411,13 @@ const __connectWithWalletProvider_wrapped = instrumentFunction({
|
|
|
7398
7411
|
* @param params.hardwareWalletVendor - The hardware wallet vendor that produced the signature.
|
|
7399
7412
|
* @param params.signature - The raw signature string to wrap.
|
|
7400
7413
|
* @returns The signature wrapped in `{ signedTransaction: { data } }` JSON format.
|
|
7401
|
-
* @
|
|
7414
|
+
* @notInstrumented
|
|
7402
7415
|
*/
|
|
7403
7416
|
const formatSignatureForHardwareWallet = ({ signature, hardwareWalletVendor: _ }) => JSON.stringify({ signedTransaction: { data: signature } });
|
|
7404
7417
|
|
|
7405
7418
|
//#endregion
|
|
7406
7419
|
//#region src/modules/wallets/utils/getChainIdForAccountVerification/getChainIdForAccountVerification.ts
|
|
7407
|
-
/** @
|
|
7420
|
+
/** @notInstrumented */
|
|
7408
7421
|
const getChainIdForAccountVerification = async ({ walletProvider }) => {
|
|
7409
7422
|
if ([
|
|
7410
7423
|
"BTC",
|
|
@@ -7418,7 +7431,7 @@ const getChainIdForAccountVerification = async ({ walletProvider }) => {
|
|
|
7418
7431
|
|
|
7419
7432
|
//#endregion
|
|
7420
7433
|
//#region src/modules/wallets/utils/getSignInMessage/getSignInMessage.ts
|
|
7421
|
-
/** @
|
|
7434
|
+
/** @notInstrumented */
|
|
7422
7435
|
const getSignInMessage = async ({ nonce: nonceOverride, walletAccount }, client) => {
|
|
7423
7436
|
const core = getCore(client);
|
|
7424
7437
|
const { appUniversalLink } = getAppMetadata(client);
|
|
@@ -7495,7 +7508,7 @@ const __proveWalletAccountOwnership_wrapped = instrumentFunction({
|
|
|
7495
7508
|
|
|
7496
7509
|
//#endregion
|
|
7497
7510
|
//#region src/modules/wallets/utils/isSameAddress/isSameAddress.ts
|
|
7498
|
-
/** @
|
|
7511
|
+
/** @notInstrumented */
|
|
7499
7512
|
const isSameAddress = ({ chain, left, right }) => normalizeAddress({
|
|
7500
7513
|
address: left,
|
|
7501
7514
|
chain
|
|
@@ -7506,7 +7519,7 @@ const isSameAddress = ({ chain, left, right }) => normalizeAddress({
|
|
|
7506
7519
|
|
|
7507
7520
|
//#endregion
|
|
7508
7521
|
//#region src/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.ts
|
|
7509
|
-
/** @
|
|
7522
|
+
/** @notInstrumented */
|
|
7510
7523
|
const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfer, requestedScopes }, client) => {
|
|
7511
7524
|
if (walletAccount.verifiedCredentialId) throw new WalletAccountAlreadyVerifiedError(walletAccount.address);
|
|
7512
7525
|
const walletProvider = getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7592,7 +7605,7 @@ const __verifyWalletAccount_wrapped = instrumentFunction({
|
|
|
7592
7605
|
//#region src/modules/wallets/walletProvider/isDeeplinkWalletProvider/isDeeplinkWalletProvider.ts
|
|
7593
7606
|
/**
|
|
7594
7607
|
* Returns true if the wallet provider uses the deep link protocol (e.g. Phantom redirect on mobile).
|
|
7595
|
-
* @
|
|
7608
|
+
* @notInstrumented
|
|
7596
7609
|
*/
|
|
7597
7610
|
const isDeeplinkWalletProvider = ({ walletProvider }) => walletProvider.walletProviderType === WalletProviderEnum.DeepLink;
|
|
7598
7611
|
|
|
@@ -7659,7 +7672,7 @@ const __connectAndVerifyWithWalletProvider_wrapped = instrumentFunction({
|
|
|
7659
7672
|
*
|
|
7660
7673
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7661
7674
|
* @returns An array of wallet provider data including chain, keys, and metadata.
|
|
7662
|
-
* @
|
|
7675
|
+
* @notInstrumented
|
|
7663
7676
|
* @hook Exposed as a hook so consumers get the reactive list of available wallet providers, updated when wallet providers change.
|
|
7664
7677
|
*/
|
|
7665
7678
|
const getAvailableWalletProvidersData = (client = getDefaultClient()) => {
|
|
@@ -7683,7 +7696,7 @@ const getAvailableWalletProvidersData = (client = getDefaultClient()) => {
|
|
|
7683
7696
|
* @param params.walletProviderKey - The unique key of the wallet provider to query.
|
|
7684
7697
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7685
7698
|
* @returns An array of connected wallet addresses.
|
|
7686
|
-
* @
|
|
7699
|
+
* @notInstrumented
|
|
7687
7700
|
*/
|
|
7688
7701
|
const getConnectedAddresses = ({ walletProviderKey }, client = getDefaultClient()) => {
|
|
7689
7702
|
return getWalletProviderByKey({ walletProviderKey }, client).getConnectedAddresses();
|
|
@@ -7691,7 +7704,7 @@ const getConnectedAddresses = ({ walletProviderKey }, client = getDefaultClient(
|
|
|
7691
7704
|
|
|
7692
7705
|
//#endregion
|
|
7693
7706
|
//#region src/modules/wallets/getOwnerWalletAccountForSmartWalletAccount/getOwnerWalletAccountForSmartWalletAccount.ts
|
|
7694
|
-
/** @
|
|
7707
|
+
/** @notInstrumented */
|
|
7695
7708
|
const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, client = getDefaultClient()) => {
|
|
7696
7709
|
const smartWalletVerifiedCredential = getVerifiedCredentialForWalletAccount({ walletAccount: smartWalletAccount }, client);
|
|
7697
7710
|
assertDefined(smartWalletVerifiedCredential?.signerRefId, "Invalid smart wallet account");
|
|
@@ -7700,7 +7713,7 @@ const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, clie
|
|
|
7700
7713
|
|
|
7701
7714
|
//#endregion
|
|
7702
7715
|
//#region src/modules/wallets/getWalletAccountAddressByType/getWalletAccountAddressByType.ts
|
|
7703
|
-
/** @
|
|
7716
|
+
/** @notInstrumented */
|
|
7704
7717
|
const getWalletAccountAddressByType = ({ type, walletAccount }) => {
|
|
7705
7718
|
return walletAccount.addressesWithTypes?.find((address) => address.type === type)?.address;
|
|
7706
7719
|
};
|
|
@@ -7713,7 +7726,7 @@ const getWalletAccountAddressByType = ({ type, walletAccount }) => {
|
|
|
7713
7726
|
* @param params.walletProviderKey - The key of the wallet provider to retrieve data for.
|
|
7714
7727
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7715
7728
|
* @returns The data for the wallet provider.
|
|
7716
|
-
* @
|
|
7729
|
+
* @notInstrumented
|
|
7717
7730
|
*/
|
|
7718
7731
|
const getWalletProviderDataByKey = ({ walletProviderKey }, client = getDefaultClient()) => {
|
|
7719
7732
|
const { chain, groupKey, key, metadata, walletProviderType } = getWalletProviderByKey({ walletProviderKey }, client);
|
|
@@ -7735,7 +7748,7 @@ const getWalletProviderDataByKey = ({ walletProviderKey }, client = getDefaultCl
|
|
|
7735
7748
|
* @param params.hardwareWalletVendor - The hardware wallet vendor to check for.
|
|
7736
7749
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7737
7750
|
* @returns Whether the wallet provider supports the specified hardware wallet vendor.
|
|
7738
|
-
* @
|
|
7751
|
+
* @notInstrumented
|
|
7739
7752
|
*/
|
|
7740
7753
|
const canConnectWithHardwareWallet = ({ walletProviderKey, hardwareWalletVendor }, client = getDefaultClient()) => {
|
|
7741
7754
|
return getWalletProviderByKey({ walletProviderKey }, client).metadata.supportedHardwareWalletVendors?.includes(hardwareWalletVendor) ?? false;
|
|
@@ -7748,7 +7761,7 @@ const canConnectWithHardwareWallet = ({ walletProviderKey, hardwareWalletVendor
|
|
|
7748
7761
|
*
|
|
7749
7762
|
* @param params.walletAccount - The wallet account to check.
|
|
7750
7763
|
* @returns Whether the wallet account has a hardware wallet vendor set.
|
|
7751
|
-
* @
|
|
7764
|
+
* @notInstrumented
|
|
7752
7765
|
*/
|
|
7753
7766
|
const isHardwareWalletAccount = ({ walletAccount }) => walletAccount.hardwareWalletVendor !== void 0;
|
|
7754
7767
|
|
|
@@ -7764,7 +7777,7 @@ const isHardwareWalletAccount = ({ walletAccount }) => walletAccount.hardwareWal
|
|
|
7764
7777
|
*
|
|
7765
7778
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7766
7779
|
* @returns True if the session has at least one wallet account, false otherwise.
|
|
7767
|
-
* @
|
|
7780
|
+
* @notInstrumented
|
|
7768
7781
|
*/
|
|
7769
7782
|
const isAnyWalletAccountConnected = (client = getDefaultClient()) => getWalletAccounts(client).length > 0;
|
|
7770
7783
|
|
|
@@ -7775,7 +7788,7 @@ const isAnyWalletAccountConnected = (client = getDefaultClient()) => getWalletAc
|
|
|
7775
7788
|
*
|
|
7776
7789
|
* @param walletAccount - The wallet account to check.
|
|
7777
7790
|
* @returns True if the wallet account has been verified, false otherwise.
|
|
7778
|
-
* @
|
|
7791
|
+
* @notInstrumented
|
|
7779
7792
|
*/
|
|
7780
7793
|
const isWalletAccountVerified = ({ walletAccount }) => {
|
|
7781
7794
|
return walletAccount.verifiedCredentialId !== null;
|
|
@@ -7830,7 +7843,7 @@ const __addNetwork_wrapped = instrumentFunction({
|
|
|
7830
7843
|
* @param params.walletAccount - The wallet account to get network data for.
|
|
7831
7844
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7832
7845
|
* @returns A promise that resolves to the network data, or undefined if not found.
|
|
7833
|
-
* @
|
|
7846
|
+
* @notInstrumented
|
|
7834
7847
|
*/
|
|
7835
7848
|
const getActiveNetworkData = async ({ walletAccount }, client = getDefaultClient()) => {
|
|
7836
7849
|
const walletProvider = getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7846,7 +7859,7 @@ const getActiveNetworkData = async ({ walletAccount }, client = getDefaultClient
|
|
|
7846
7859
|
* @param params.walletAccount - The wallet account to get the network ID for.
|
|
7847
7860
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7848
7861
|
* @returns A promise that resolves to the active network ID for the wallet account.
|
|
7849
|
-
* @
|
|
7862
|
+
* @notInstrumented
|
|
7850
7863
|
*/
|
|
7851
7864
|
const getActiveNetworkId = ({ walletAccount }, client = getDefaultClient()) => {
|
|
7852
7865
|
return getWalletProviderFromWalletAccount({ walletAccount }, client).getActiveNetworkId();
|
|
@@ -7867,7 +7880,7 @@ const getActiveNetworkId = ({ walletAccount }, client = getDefaultClient()) => {
|
|
|
7867
7880
|
* @param params.walletAccount - The wallet account to get the balance for.
|
|
7868
7881
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7869
7882
|
* @returns A promise that resolves to an object containing the balance as a string or null.
|
|
7870
|
-
* @
|
|
7883
|
+
* @notInstrumented
|
|
7871
7884
|
*/
|
|
7872
7885
|
const getNativeBalance = async ({ walletAccount }, client = getDefaultClient()) => {
|
|
7873
7886
|
const walletProvider = getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7886,7 +7899,7 @@ const getNativeBalance = async ({ walletAccount }, client = getDefaultClient())
|
|
|
7886
7899
|
* with the token-balance fetchers (`getTokenBalances` /
|
|
7887
7900
|
* `getMultichainTokenBalances`).
|
|
7888
7901
|
*
|
|
7889
|
-
* @
|
|
7902
|
+
* @notInstrumented
|
|
7890
7903
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
7891
7904
|
*/
|
|
7892
7905
|
const getBalance = (params, client = getDefaultClient()) => getNativeBalance(params, client);
|
|
@@ -7904,7 +7917,7 @@ const getBalance = (params, client = getDefaultClient()) => getNativeBalance(par
|
|
|
7904
7917
|
* @param params.networkId - The specific network ID within the chain.
|
|
7905
7918
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7906
7919
|
* @returns A promise that resolves to an object containing the balance as a string or null.
|
|
7907
|
-
* @
|
|
7920
|
+
* @notInstrumented
|
|
7908
7921
|
*/
|
|
7909
7922
|
const getBalanceForAddress = async ({ address, chain, networkId }, client = getDefaultClient()) => {
|
|
7910
7923
|
const networkProvider = getNetworkProviderFromNetworkId({
|
|
@@ -7931,7 +7944,7 @@ const getBalanceForAddress = async ({ address, chain, networkId }, client = getD
|
|
|
7931
7944
|
* @param [params.tokenAddress] - Optional token contract address (EVM) or SPL mint address (Solana) to filter transaction history by token.
|
|
7932
7945
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7933
7946
|
* @returns A promise that resolves to the transaction history along with nextOffset for the given wallet address and chain.
|
|
7934
|
-
* @
|
|
7947
|
+
* @notInstrumented
|
|
7935
7948
|
*/
|
|
7936
7949
|
const getTransactionHistory = async (params, client = getDefaultClient()) => {
|
|
7937
7950
|
const core = getCore(client);
|
|
@@ -7957,7 +7970,7 @@ const getTransactionHistory = async (params, client = getDefaultClient()) => {
|
|
|
7957
7970
|
* @param params.walletAccount - The wallet account to check network switching support for.
|
|
7958
7971
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7959
7972
|
* @returns True if programmatic network switching is available, false otherwise.
|
|
7960
|
-
* @
|
|
7973
|
+
* @notInstrumented
|
|
7961
7974
|
*/
|
|
7962
7975
|
const isProgrammaticNetworkSwitchAvailable = ({ walletAccount }, client = getDefaultClient()) => {
|
|
7963
7976
|
return getWalletProviderByKey({ walletProviderKey: walletAccount.walletProviderKey }, client).switchActiveNetwork !== void 0;
|
|
@@ -8039,7 +8052,7 @@ const __selectPrimaryWalletAccount_wrapped = instrumentFunction({
|
|
|
8039
8052
|
*
|
|
8040
8053
|
* The wallet account is not removed from the user's profile or from dynamic's state,
|
|
8041
8054
|
* it is only responsible for terminating the connection with the wallet provider.
|
|
8042
|
-
* @
|
|
8055
|
+
* @notInstrumented
|
|
8043
8056
|
*/
|
|
8044
8057
|
const disconnectWalletAccount = async ({ walletAccount }, client) => {
|
|
8045
8058
|
try {
|
|
@@ -8214,7 +8227,7 @@ const __transferWalletAccount_wrapped = instrumentFunction({
|
|
|
8214
8227
|
* @param params.chain - The blockchain the wallet belongs to.
|
|
8215
8228
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8216
8229
|
* @returns The matching wallet account, or undefined if not found.
|
|
8217
|
-
* @
|
|
8230
|
+
* @notInstrumented
|
|
8218
8231
|
*/
|
|
8219
8232
|
const getWalletAccountFromAddress = ({ address, chain }, client = getDefaultClient()) => {
|
|
8220
8233
|
return getWalletAccounts(client).find((walletAccount) => walletAccount.address === address && walletAccount.chain === chain);
|
|
@@ -8231,7 +8244,7 @@ const getWalletAccountFromAddress = ({ address, chain }, client = getDefaultClie
|
|
|
8231
8244
|
* @param params.event - The event name to remove the listener from.
|
|
8232
8245
|
* @param params.walletProviderKey - The unique key identifying the wallet provider to remove the listener from.
|
|
8233
8246
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8234
|
-
* @
|
|
8247
|
+
* @notInstrumented
|
|
8235
8248
|
*/
|
|
8236
8249
|
const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client = getDefaultClient()) => {
|
|
8237
8250
|
const walletProvider = getWalletProviderByKey({ walletProviderKey }, client);
|
|
@@ -8249,7 +8262,7 @@ const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client =
|
|
|
8249
8262
|
* @param params.walletProviderKey - The unique key identifying the wallet provider to listen to.
|
|
8250
8263
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8251
8264
|
* @returns A function that can be called to remove the listener.
|
|
8252
|
-
* @
|
|
8265
|
+
* @notInstrumented
|
|
8253
8266
|
* @hook Event listeners are error-prone to wire up by hand with useEffect.
|
|
8254
8267
|
*/
|
|
8255
8268
|
const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client = getDefaultClient()) => {
|
|
@@ -8283,7 +8296,7 @@ const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client =
|
|
|
8283
8296
|
* appendConnectionUriToDeeplink({ deeplinkUrl: 'walletapp://wc?param=value', connectionUri: 'wc:123-456' })
|
|
8284
8297
|
* // Returns: 'walletapp://wc?param=value&uri=wc%3A123-456'
|
|
8285
8298
|
* ```
|
|
8286
|
-
* @
|
|
8299
|
+
* @notInstrumented
|
|
8287
8300
|
*/
|
|
8288
8301
|
const appendConnectionUriToDeeplink = ({ connectionUri, deeplinkUrl }) => {
|
|
8289
8302
|
const url = new URL(deeplinkUrl);
|
|
@@ -8354,7 +8367,7 @@ const osMatchers = [
|
|
|
8354
8367
|
pattern: /CrOS/
|
|
8355
8368
|
}
|
|
8356
8369
|
];
|
|
8357
|
-
/** @
|
|
8370
|
+
/** @notInstrumented */
|
|
8358
8371
|
const parseUserAgent = ({ userAgent }) => {
|
|
8359
8372
|
if (!userAgent?.trim()) return null;
|
|
8360
8373
|
const browser = browserMatchers.find(({ pattern }) => pattern.test(userAgent))?.name;
|
|
@@ -8372,5 +8385,5 @@ const parseUserAgent = ({ userAgent }) => {
|
|
|
8372
8385
|
assertPackageVersion(name, version);
|
|
8373
8386
|
|
|
8374
8387
|
//#endregion
|
|
8375
|
-
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,
|
|
8388
|
+
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 };
|
|
8376
8389
|
//# sourceMappingURL=index.esm.js.map
|