@dynamic-labs-sdk/client 1.12.1 → 1.13.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-I6NfUdQL.esm.js → InvalidParamError-BeCPhfVz.esm.js} +79 -49
- package/dist/InvalidParamError-BeCPhfVz.esm.js.map +1 -0
- package/dist/{InvalidParamError-d0WFn5Ai.cjs → InvalidParamError-C7c-OLz1.cjs} +85 -49
- package/dist/InvalidParamError-C7c-OLz1.cjs.map +1 -0
- package/dist/{InvalidParamError-CKUis748.native.esm.js → InvalidParamError-CGiSxym5.native.esm.js} +54 -36
- package/dist/InvalidParamError-CGiSxym5.native.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 +23 -23
- package/dist/core.cjs.map +1 -1
- package/dist/core.esm.js +23 -23
- 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/errors/WaasOnboardingIncompleteError.d.ts +18 -0
- package/dist/errors/WaasOnboardingIncompleteError.d.ts.map +1 -0
- package/dist/exports/index.d.ts +1 -0
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-DpiVLfs_.native.esm.js → getNetworkProviderFromNetworkId-Be_UK4_7.native.esm.js} +54 -54
- package/dist/getNetworkProviderFromNetworkId-Be_UK4_7.native.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-D6ABmeNQ.esm.js → getNetworkProviderFromNetworkId-CP9gl1B1.esm.js} +44 -44
- package/dist/getNetworkProviderFromNetworkId-CP9gl1B1.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-CfW0tOnr.cjs → getNetworkProviderFromNetworkId-D8cpx0xz.cjs} +45 -45
- package/dist/getNetworkProviderFromNetworkId-D8cpx0xz.cjs.map +1 -0
- package/dist/{getSignedSessionId-Bc-sYE2A.cjs → getSignedSessionId-BeK0vWep.cjs} +7 -7
- package/dist/getSignedSessionId-BeK0vWep.cjs.map +1 -0
- package/dist/{getSignedSessionId-IEoo2Kv9.esm.js → getSignedSessionId-Bq7xBsA3.esm.js} +7 -7
- package/dist/getSignedSessionId-Bq7xBsA3.esm.js.map +1 -0
- package/dist/{getSignedSessionId-C6LJdiSK.native.esm.js → getSignedSessionId-D9w3Wbhk.native.esm.js} +7 -7
- package/dist/getSignedSessionId-D9w3Wbhk.native.esm.js.map +1 -0
- package/dist/{getWaasWalletProviderFromWalletAccount-D1wxsNEI.native.esm.js → getWaasWalletProviderFromWalletAccount-BKHO68FO.esm.js} +4 -4
- package/dist/getWaasWalletProviderFromWalletAccount-BKHO68FO.esm.js.map +1 -0
- package/dist/{getWaasWalletProviderFromWalletAccount-DojjjSIP.esm.js → getWaasWalletProviderFromWalletAccount-BzpLoZTm.native.esm.js} +4 -4
- package/dist/getWaasWalletProviderFromWalletAccount-BzpLoZTm.native.esm.js.map +1 -0
- package/dist/{getWaasWalletProviderFromWalletAccount-CSmVAhr2.cjs → getWaasWalletProviderFromWalletAccount-CfqTF_82.cjs} +4 -4
- package/dist/getWaasWalletProviderFromWalletAccount-CfqTF_82.cjs.map +1 -0
- package/dist/{getWalletProviderByKey-DsTEubkT.esm.js → getWalletProviderByKey-BMzoL_69.esm.js} +16 -34
- package/dist/getWalletProviderByKey-BMzoL_69.esm.js.map +1 -0
- package/dist/{getWalletProviderByKey-B821GpaI.cjs → getWalletProviderByKey-DCKYAida.cjs} +17 -41
- package/dist/getWalletProviderByKey-DCKYAida.cjs.map +1 -0
- package/dist/{getWalletProviderByKey-RTW-S68o.native.esm.js → getWalletProviderByKey-DDDxBsdv.native.esm.js} +41 -47
- package/dist/getWalletProviderByKey-DDDxBsdv.native.esm.js.map +1 -0
- package/dist/index.cjs +195 -248
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +187 -241
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +188 -242
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isDynamicWaasEnabled-vRyWP-1l.esm.js → isDynamicWaasEnabled-BMQq5uNX.esm.js} +3 -3
- package/dist/{isDynamicWaasEnabled-vRyWP-1l.esm.js.map → isDynamicWaasEnabled-BMQq5uNX.esm.js.map} +1 -1
- package/dist/{isDynamicWaasEnabled-CBOG0ITH.cjs → isDynamicWaasEnabled-BtbzDbdz.cjs} +4 -4
- package/dist/{isDynamicWaasEnabled-CBOG0ITH.cjs.map → isDynamicWaasEnabled-BtbzDbdz.cjs.map} +1 -1
- package/dist/{isDynamicWaasEnabled-CBLpFRnd.native.esm.js → isDynamicWaasEnabled-ChdeBFbN.native.esm.js} +3 -3
- package/dist/{isDynamicWaasEnabled-CBLpFRnd.native.esm.js.map → isDynamicWaasEnabled-ChdeBFbN.native.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-DL013-fR.cjs → isMfaRequiredForAction-CgWBU6kM.cjs} +11 -11
- package/dist/isMfaRequiredForAction-CgWBU6kM.cjs.map +1 -0
- package/dist/{isMfaRequiredForAction-C1-1spV9.esm.js → isMfaRequiredForAction-Diwsf9GB.esm.js} +11 -11
- package/dist/isMfaRequiredForAction-Diwsf9GB.esm.js.map +1 -0
- package/dist/{isMfaRequiredForAction-D1AYL99a.native.esm.js → isMfaRequiredForAction-dAtK8Pl6.native.esm.js} +4 -4
- package/dist/{isMfaRequiredForAction-D1AYL99a.native.esm.js.map → isMfaRequiredForAction-dAtK8Pl6.native.esm.js.map} +1 -1
- package/dist/isUserOnboardingComplete-D4Y3sdr3.esm.js +121 -0
- package/dist/isUserOnboardingComplete-D4Y3sdr3.esm.js.map +1 -0
- package/dist/isUserOnboardingComplete-DO2_gSAp.native.esm.js +121 -0
- package/dist/isUserOnboardingComplete-DO2_gSAp.native.esm.js.map +1 -0
- package/dist/isUserOnboardingComplete-OP4uyUlE.cjs +151 -0
- package/dist/isUserOnboardingComplete-OP4uyUlE.cjs.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 +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/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/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/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 +10 -3
- package/dist/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.d.ts.map +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-BWQWl4uA.esm.js → refreshAuth-BTPctQtq.esm.js} +3 -3
- package/dist/{refreshAuth-BWQWl4uA.esm.js.map → refreshAuth-BTPctQtq.esm.js.map} +1 -1
- package/dist/{refreshAuth-tjEnkc58.cjs → refreshAuth-ByIVzawo.cjs} +3 -3
- package/dist/{refreshAuth-tjEnkc58.cjs.map → refreshAuth-ByIVzawo.cjs.map} +1 -1
- package/dist/{refreshAuth-D8UjWFLB.native.esm.js → refreshAuth-C3issn5b.native.esm.js} +3 -3
- package/dist/{refreshAuth-D8UjWFLB.native.esm.js.map → refreshAuth-C3issn5b.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/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 +17 -12
- package/dist/waasCore.cjs.map +1 -1
- package/dist/waasCore.esm.js +16 -11
- package/dist/waasCore.esm.js.map +1 -1
- package/dist/waasCore.native.esm.js +19 -14
- package/dist/waasCore.native.esm.js.map +1 -1
- package/package.json +2 -2
- package/dist/InvalidParamError-CKUis748.native.esm.js.map +0 -1
- package/dist/InvalidParamError-I6NfUdQL.esm.js.map +0 -1
- package/dist/InvalidParamError-d0WFn5Ai.cjs.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-CfW0tOnr.cjs.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-D6ABmeNQ.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-DpiVLfs_.native.esm.js.map +0 -1
- package/dist/getSignedSessionId-Bc-sYE2A.cjs.map +0 -1
- package/dist/getSignedSessionId-C6LJdiSK.native.esm.js.map +0 -1
- package/dist/getSignedSessionId-IEoo2Kv9.esm.js.map +0 -1
- package/dist/getWaasWalletProviderFromWalletAccount-CSmVAhr2.cjs.map +0 -1
- package/dist/getWaasWalletProviderFromWalletAccount-D1wxsNEI.native.esm.js.map +0 -1
- package/dist/getWaasWalletProviderFromWalletAccount-DojjjSIP.esm.js.map +0 -1
- package/dist/getWalletProviderByKey-B821GpaI.cjs.map +0 -1
- package/dist/getWalletProviderByKey-DsTEubkT.esm.js.map +0 -1
- package/dist/getWalletProviderByKey-RTW-S68o.native.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-C1-1spV9.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-DL013-fR.cjs.map +0 -1
- package/dist/preconnectWaasIframe-BnyTG4Wy.native.esm.js +0 -31
- package/dist/preconnectWaasIframe-BnyTG4Wy.native.esm.js.map +0 -1
- package/dist/preconnectWaasIframe-DWYWeLor.cjs +0 -37
- package/dist/preconnectWaasIframe-DWYWeLor.cjs.map +0 -1
- package/dist/preconnectWaasIframe-Dn3RrrHd.esm.js +0 -31
- package/dist/preconnectWaasIframe-Dn3RrrHd.esm.js.map +0 -1
package/dist/index.native.esm.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { A as GENERATE_SESSION_KEYS_TRACKER_KEY, B as createStorage, C as createKeychainService, D as CannotTrackError, F as getBuffer, G as subscribeWithSelector, H as createLocalStorageAdapter, I as __logoutWithReason_wrapped, K as isEqualShallow, L as generateSessionKeys, M as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, N as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, O as createDeferredPromise, P as isServerSideRendering, R as fetchProjectSettings, S as createRealtimeService, T as createCrossTabBroadcast, U as isSignedIn, W as retryOnFail, _ as getAppMetadata, a as verifyMessageSignatureOwnership, b as NoNetworkProvidersError, c as formatSignInMessage, d as setUnverifiedWalletAccounts, f as createVisit, g as isCaptchaRequired, h as consumeCaptchaToken, i as getNetworksData, j as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, k as FETCH_PROJECT_SETTINGS_TRACKER_KEY, l as reconcileWalletAccountsAgainstClient, m as __setCaptchaToken_wrapped, o as removeUnverifiedWalletAccount, p as hasExtension, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as updateWalletProviderKeysForVerifiedCredentials, v as MethodNotImplementedError, w as createLogger, x as getKeychainIndexedDBName, y as WalletAlreadyLinkedToAnotherUserError, z as createStorageKeySchema } from "./getNetworkProviderFromNetworkId-
|
|
3
|
-
import { _ as
|
|
4
|
-
import { t as __refreshAuth_wrapped } from "./refreshAuth-
|
|
5
|
-
import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-
|
|
6
|
-
import { n as NotWaasWalletAccountError } from "./isDynamicWaasEnabled-
|
|
7
|
-
import {
|
|
1
|
+
import { $ as getCore, A as LinkCredentialError, B as DEFAULT_PII_FIELDS, D as SandboxMaximumThresholdReachedError, E as getNonce, F as assertDefined, G as randomString, H as getPlatform, I as ValueMustBeDefinedError, J as NONCE_POOL_SIZE, L as __getElevatedAccessToken_wrapped, M as APIError, O as MfaRateLimitedError, P as isCookieEnabled, Q as BaseError, R as instrumentFunction, S as UnauthorizedError, U as getOperatingSystem, V as getUserAgent, W as extractSessionId, X as setDefaultClient, Y as getDefaultClient, _ as offEvent, b as fetchAndStoreNonces, c as SDK_API_CORE_VERSION, d as getWalletProviderRegistry, et as name, g as emitEvent, h as CHAINS_INFO_MAP, j as InvalidExternalAuthError, k as MfaInvalidOtpError, l as getWalletProviderFromWalletAccount, m as getChainFromVerifiedCredentialChain, o as isUserMissingMfaAuth, p as NoWalletProviderFoundError, s as DYNAMIC_ICONIC_SPRITE_URL, t as InvalidParamError, tt as version, u as WalletProviderPriority, v as onEvent, x as createApiClient, y as onceEvent, z as scrubParameters } from "./InvalidParamError-CGiSxym5.native.esm.js";
|
|
2
|
+
import { A as GENERATE_SESSION_KEYS_TRACKER_KEY, B as createStorage, C as createKeychainService, D as CannotTrackError, F as getBuffer, G as subscribeWithSelector, H as createLocalStorageAdapter, I as __logoutWithReason_wrapped, K as isEqualShallow, L as generateSessionKeys, M as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, N as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, O as createDeferredPromise, P as isServerSideRendering, R as fetchProjectSettings, S as createRealtimeService, T as createCrossTabBroadcast, U as isSignedIn, W as retryOnFail, _ as getAppMetadata, a as verifyMessageSignatureOwnership, b as NoNetworkProvidersError, c as formatSignInMessage, d as setUnverifiedWalletAccounts, f as createVisit, g as isCaptchaRequired, h as consumeCaptchaToken, i as getNetworksData, j as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, k as FETCH_PROJECT_SETTINGS_TRACKER_KEY, l as reconcileWalletAccountsAgainstClient, m as __setCaptchaToken_wrapped, o as removeUnverifiedWalletAccount, p as hasExtension, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as updateWalletProviderKeysForVerifiedCredentials, v as MethodNotImplementedError, w as createLogger, x as getKeychainIndexedDBName, y as WalletAlreadyLinkedToAnotherUserError, z as createStorageKeySchema } from "./getNetworkProviderFromNetworkId-Be_UK4_7.native.esm.js";
|
|
3
|
+
import { _ as normalizeAddress, a as parseElevatedAccessToken, g as formatWalletAccountId, i as upsertElevatedAccessToken, l as getWalletProviders, n as getVerifiedCredentialForWalletAccount, o as initializeWaasClientsForEagerRecovery, p as getWalletAccounts, r as updateAuthFromVerifyResponse, t as getWalletProviderByKey, u as checkAndRaiseWalletAccountsChangedEvent, v as splitWalletProviderKey } from "./getWalletProviderByKey-DDDxBsdv.native.esm.js";
|
|
4
|
+
import { t as __refreshAuth_wrapped } from "./refreshAuth-C3issn5b.native.esm.js";
|
|
5
|
+
import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-dAtK8Pl6.native.esm.js";
|
|
6
|
+
import { n as NotWaasWalletAccountError } from "./isDynamicWaasEnabled-ChdeBFbN.native.esm.js";
|
|
7
|
+
import { a as WaasOnboardingIncompleteError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, r as isDeviceRegistrationRequired, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-DO2_gSAp.native.esm.js";
|
|
8
8
|
import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
|
|
9
9
|
import { AuthModeEnum, ExchangeKeyEnum, JwtVerifiedCredentialFormatEnum, MFAAction, MfaBackupCodeAcknowledgement, ProviderEnum, TokenScope, WaasBackupOptionsEnum, WalletProviderEnum } from "@dynamic-labs/sdk-api-core";
|
|
10
10
|
import * as z from "zod/mini";
|
|
11
|
-
import EventEmitter
|
|
11
|
+
import EventEmitter, { EventEmitter as EventEmitter$1 } from "eventemitter3";
|
|
12
12
|
import { Passkey } from "react-native-passkey";
|
|
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$1();
|
|
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();
|
|
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"));
|
|
@@ -856,7 +856,7 @@ const mapFromGetResult = (result) => ({
|
|
|
856
856
|
* Native passkeys require an associated domain that matches `metadata.universalLink`;
|
|
857
857
|
* `authenticate` and `register` assert it is defined so the developer gets a
|
|
858
858
|
* clear error instead of an opaque platform failure.
|
|
859
|
-
* @
|
|
859
|
+
* @notInstrumented
|
|
860
860
|
*/
|
|
861
861
|
const createPasskeyService = (_params) => ({
|
|
862
862
|
authenticate: async (options) => {
|
|
@@ -874,7 +874,7 @@ const createPasskeyService = (_params) => ({
|
|
|
874
874
|
|
|
875
875
|
//#endregion
|
|
876
876
|
//#region src/utils/debouncedMutex/createDebouncedMutex/createDebouncedMutex.ts
|
|
877
|
-
/** @
|
|
877
|
+
/** @notInstrumented */
|
|
878
878
|
const createDebouncedMutex = () => {
|
|
879
879
|
const mutexState = /* @__PURE__ */ new Map();
|
|
880
880
|
return async ({ lockKey, callback, debounceTime = 0 }) => {
|
|
@@ -959,7 +959,7 @@ var InvalidStorageValue = class extends BaseError {
|
|
|
959
959
|
* // Unsubscribe when done
|
|
960
960
|
* unsubscribe();
|
|
961
961
|
* ```
|
|
962
|
-
* @
|
|
962
|
+
* @notInstrumented
|
|
963
963
|
*/
|
|
964
964
|
const createObservableState = (getInitialState$1) => {
|
|
965
965
|
const subscribers = /* @__PURE__ */ new Set();
|
|
@@ -1003,7 +1003,7 @@ const DEFAULT_API_BASE_URL = "https://app.dynamicauth.com/api/v0";
|
|
|
1003
1003
|
//#region src/client/core/createCore/getInitialState.ts
|
|
1004
1004
|
/**
|
|
1005
1005
|
* The initial values for the state of the client.
|
|
1006
|
-
* @
|
|
1006
|
+
* @notInstrumented
|
|
1007
1007
|
*/
|
|
1008
1008
|
const getInitialState = () => ({
|
|
1009
1009
|
captchaToken: null,
|
|
@@ -1028,7 +1028,7 @@ const getInitialState = () => ({
|
|
|
1028
1028
|
//#region src/client/core/createCore/createCore.ts
|
|
1029
1029
|
/**
|
|
1030
1030
|
* Creates a core instance that contains all the services and state of the Dynamic SDK client.
|
|
1031
|
-
* @
|
|
1031
|
+
* @notInstrumented
|
|
1032
1032
|
*/
|
|
1033
1033
|
const createCore = (config) => {
|
|
1034
1034
|
const apiBaseUrl = config.coreConfig?.apiBaseUrl ?? DEFAULT_API_BASE_URL;
|
|
@@ -1729,7 +1729,7 @@ const __signInWithExternalJwt_wrapped = instrumentFunction({
|
|
|
1729
1729
|
*
|
|
1730
1730
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1731
1731
|
* @returns A promise that resolves when the logout process is complete.
|
|
1732
|
-
* @
|
|
1732
|
+
* @notInstrumented
|
|
1733
1733
|
*/
|
|
1734
1734
|
const logout = async (client = getDefaultClient()) => {
|
|
1735
1735
|
/**
|
|
@@ -1784,7 +1784,7 @@ const __deletePasskey_wrapped = instrumentFunction({
|
|
|
1784
1784
|
*
|
|
1785
1785
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1786
1786
|
* @returns A promise that resolves to an array of the user's registered passkeys.
|
|
1787
|
-
* @
|
|
1787
|
+
* @notInstrumented
|
|
1788
1788
|
*/
|
|
1789
1789
|
const getPasskeys = async (client = getDefaultClient()) => {
|
|
1790
1790
|
const core = getCore(client);
|
|
@@ -1793,7 +1793,7 @@ const getPasskeys = async (client = getDefaultClient()) => {
|
|
|
1793
1793
|
|
|
1794
1794
|
//#endregion
|
|
1795
1795
|
//#region src/modules/auth/passkeys/getPasskeyRegistrationOptions/getPasskeyRegistrationOptions.ts
|
|
1796
|
-
/** @
|
|
1796
|
+
/** @notInstrumented */
|
|
1797
1797
|
const getPasskeyRegistrationOptions = async (client) => {
|
|
1798
1798
|
const core = getCore(client);
|
|
1799
1799
|
return await createApiClient({}, client).getPasskeyRegistrationOptions({ environmentId: core.environmentId });
|
|
@@ -1801,7 +1801,7 @@ const getPasskeyRegistrationOptions = async (client) => {
|
|
|
1801
1801
|
|
|
1802
1802
|
//#endregion
|
|
1803
1803
|
//#region src/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.ts
|
|
1804
|
-
/** @
|
|
1804
|
+
/** @notInstrumented */
|
|
1805
1805
|
const serverRegisterPasskey = async ({ registration, createMfaToken }, client) => {
|
|
1806
1806
|
const core = getCore(client);
|
|
1807
1807
|
return await createApiClient({ elevatedAccessTokenScope: TokenScope.Credentiallink }, client).registerPasskey({
|
|
@@ -1860,7 +1860,7 @@ const __registerPasskey_wrapped = instrumentFunction({
|
|
|
1860
1860
|
|
|
1861
1861
|
//#endregion
|
|
1862
1862
|
//#region src/modules/auth/passkeys/getPasskeyAuthenticationSignInOptions/getPasskeyAuthenticationSignInOptions.ts
|
|
1863
|
-
/** @
|
|
1863
|
+
/** @notInstrumented */
|
|
1864
1864
|
const getPasskeyAuthenticationSignInOptions = async ({ relatedOriginRpId } = {}, client) => {
|
|
1865
1865
|
const core = getCore(client);
|
|
1866
1866
|
return await createApiClient({}, client).getPasskeyAuthenticationSigninOptions({
|
|
@@ -1871,7 +1871,7 @@ const getPasskeyAuthenticationSignInOptions = async ({ relatedOriginRpId } = {},
|
|
|
1871
1871
|
|
|
1872
1872
|
//#endregion
|
|
1873
1873
|
//#region src/modules/auth/passkeys/serverSigninPasskey/serverSigninPasskey.ts
|
|
1874
|
-
/** @
|
|
1874
|
+
/** @notInstrumented */
|
|
1875
1875
|
const serverSigninPasskey = async ({ authentication, createMfaToken }, client) => {
|
|
1876
1876
|
const core = getCore(client);
|
|
1877
1877
|
return await createApiClient({}, client).signinWithPasskey({
|
|
@@ -1931,7 +1931,7 @@ const __signInWithPasskey_wrapped = instrumentFunction({
|
|
|
1931
1931
|
*
|
|
1932
1932
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1933
1933
|
* @returns An array of `SocialAccount` objects associated with the user.
|
|
1934
|
-
* @
|
|
1934
|
+
* @notInstrumented
|
|
1935
1935
|
* @hook Exposed as a hook so consumers get the reactive list of social accounts, updated when the user changes.
|
|
1936
1936
|
*/
|
|
1937
1937
|
const getUserSocialAccounts = (client = getDefaultClient()) => {
|
|
@@ -2056,7 +2056,7 @@ const __completeSocialAuthentication_wrapped = instrumentFunction({
|
|
|
2056
2056
|
* pop-up callback inline and returns the authenticated user directly.
|
|
2057
2057
|
*
|
|
2058
2058
|
* @throws MethodNotImplementedError Always on React Native.
|
|
2059
|
-
* @
|
|
2059
|
+
* @notInstrumented
|
|
2060
2060
|
*/
|
|
2061
2061
|
const detectSocialRedirectUrl = async ({ url }, client = getDefaultClient()) => {
|
|
2062
2062
|
throw new MethodNotImplementedError("detectSocialRedirectUrl (not needed on React Native — signInWithSocialPopUp processes the callback inline)");
|
|
@@ -2068,7 +2068,7 @@ const detectSocialRedirectUrl = async ({ url }, client = getDefaultClient()) =>
|
|
|
2068
2068
|
* @deprecated Renamed to {@link detectSocialRedirectUrl}. This alias will be
|
|
2069
2069
|
* removed in a future major version.
|
|
2070
2070
|
*
|
|
2071
|
-
* @
|
|
2071
|
+
* @notInstrumented
|
|
2072
2072
|
* @noHook Deprecated alias; the replacement is exposed via its own hook.
|
|
2073
2073
|
*/
|
|
2074
2074
|
const detectOAuthRedirect = (params, client = getDefaultClient()) => detectSocialRedirectUrl(params, client);
|
|
@@ -2108,7 +2108,7 @@ const redirectStateStorageKeySchema = createStorageKeySchema({
|
|
|
2108
2108
|
*/
|
|
2109
2109
|
const processSocialCallback = async ({ url, requestedScopes }, client) => {
|
|
2110
2110
|
const core = getCore(client);
|
|
2111
|
-
const apiClient = createApiClient({}, client);
|
|
2111
|
+
const apiClient = createApiClient(client.user ? { elevatedAccessTokenScope: TokenScope.Credentiallink } : {}, client);
|
|
2112
2112
|
await core.initTrack.waitForAll();
|
|
2113
2113
|
const dynamicOauthState = url.searchParams.get("dynamicOauthState");
|
|
2114
2114
|
const dynamicOauthCode = url.searchParams.get("dynamicOauthCode");
|
|
@@ -2159,7 +2159,7 @@ const __processSocialCallback_wrapped = instrumentFunction({
|
|
|
2159
2159
|
|
|
2160
2160
|
//#endregion
|
|
2161
2161
|
//#region src/utils/digestSHA256/digestSHA256.ts
|
|
2162
|
-
/** @
|
|
2162
|
+
/** @notInstrumented */
|
|
2163
2163
|
const digestSHA256 = (str) => {
|
|
2164
2164
|
const data = new TextEncoder().encode(str);
|
|
2165
2165
|
return crypto.subtle.digest("SHA-256", data);
|
|
@@ -2172,7 +2172,7 @@ const digestSHA256 = (str) => {
|
|
|
2172
2172
|
*
|
|
2173
2173
|
* @param str - The string to encode as an ArrayBuffer.
|
|
2174
2174
|
* @returns The base64url encoded string.
|
|
2175
|
-
* @
|
|
2175
|
+
* @notInstrumented
|
|
2176
2176
|
*/
|
|
2177
2177
|
const encodeBase64Url = (str) => {
|
|
2178
2178
|
const numberArray = [];
|
|
@@ -2184,7 +2184,7 @@ const encodeBase64Url = (str) => {
|
|
|
2184
2184
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/addOAuthUrlParams/addOAuthUrlParams.ts
|
|
2185
2185
|
const APPLE_RESPONSE_MODE = "form_post";
|
|
2186
2186
|
const APPLE_RESPONSE_TYPE = "code id_token";
|
|
2187
|
-
/** Helper function to add OAuth URL parameters to a given base URL. * @
|
|
2187
|
+
/** Helper function to add OAuth URL parameters to a given base URL. * @notInstrumented
|
|
2188
2188
|
*/
|
|
2189
2189
|
const addOAuthUrlParams = ({ baseUrl, isGoogleDriveBackupEnabled, provider }) => {
|
|
2190
2190
|
assertDefined(provider.clientId, "Client ID not found");
|
|
@@ -2212,7 +2212,7 @@ const addOAuthUrlParams = ({ baseUrl, isGoogleDriveBackupEnabled, provider }) =>
|
|
|
2212
2212
|
|
|
2213
2213
|
//#endregion
|
|
2214
2214
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/getOAuthBaseUrl/getOAuthBaseUrl.ts
|
|
2215
|
-
/** Helper function to build the OAuth base URL for a given provider. * @
|
|
2215
|
+
/** Helper function to build the OAuth base URL for a given provider. * @notInstrumented
|
|
2216
2216
|
*/
|
|
2217
2217
|
const getOAuthBaseUrl = (provider) => {
|
|
2218
2218
|
assertDefined(provider.provider, "Provider type not found");
|
|
@@ -2233,7 +2233,7 @@ const getOAuthBaseUrl = (provider) => {
|
|
|
2233
2233
|
//#endregion
|
|
2234
2234
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/buildOAuthUrl.ts
|
|
2235
2235
|
const providersRequiringPkce = ["twitter", "github"];
|
|
2236
|
-
/** Helper function to build the OAuth URL for a given provider. * @
|
|
2236
|
+
/** Helper function to build the OAuth URL for a given provider. * @notInstrumented
|
|
2237
2237
|
*/
|
|
2238
2238
|
const buildOAuthUrl = async (core, provider) => {
|
|
2239
2239
|
const { projectSettings } = core.state.get();
|
|
@@ -2369,7 +2369,7 @@ const __signInWithSocialPopUp_wrapped = instrumentFunction({
|
|
|
2369
2369
|
* The primary wallet account is the one that was last selected by the user.
|
|
2370
2370
|
* This information is stored in both unverified and verified wallet accounts.
|
|
2371
2371
|
* This function consolidates this information to determine which wallet was most recently selected.
|
|
2372
|
-
* @
|
|
2372
|
+
* @notInstrumented
|
|
2373
2373
|
*/
|
|
2374
2374
|
const getPrimaryWalletAccount = (client = getDefaultClient()) => {
|
|
2375
2375
|
const sortedLastSelectedWalletAccounts = getWalletAccounts(client).filter((walletAccount) => Boolean(walletAccount.lastSelectedAt)).sort((a, b) => b.lastSelectedAt.getTime() - a.lastSelectedAt.getTime());
|
|
@@ -2442,7 +2442,7 @@ const __unlinkSocialAccount_wrapped = instrumentFunction({
|
|
|
2442
2442
|
* @param params.walletAccount - The wallet account to get the balances for.
|
|
2443
2443
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2444
2444
|
* @returns A promise that resolves to an array of token balances.
|
|
2445
|
-
* @
|
|
2445
|
+
* @notInstrumented
|
|
2446
2446
|
*/
|
|
2447
2447
|
const getTokenBalances = async ({ walletAccount, networkId, networkIds, includePrices, includeNative, filterSpamTokens, whitelistedContracts, forceRefresh }, client = getDefaultClient()) => {
|
|
2448
2448
|
const core = getCore(client);
|
|
@@ -2473,7 +2473,7 @@ const getTokenBalances = async ({ walletAccount, networkId, networkIds, includeP
|
|
|
2473
2473
|
* longer confusable with the native-only `getBalance` or the
|
|
2474
2474
|
* multi-chain `getMultichainTokenBalances`.
|
|
2475
2475
|
*
|
|
2476
|
-
* @
|
|
2476
|
+
* @notInstrumented
|
|
2477
2477
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
2478
2478
|
*/
|
|
2479
2479
|
const getBalances = (params, client = getDefaultClient()) => getTokenBalances(params, client);
|
|
@@ -2492,7 +2492,7 @@ const getBalances = (params, client = getDefaultClient()) => getTokenBalances(pa
|
|
|
2492
2492
|
* @param params.balanceRequest - The balance request configuration specifying which chains, networks and addresses to query.
|
|
2493
2493
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2494
2494
|
* @returns A promise that resolves to the chain balances across multiple networks.
|
|
2495
|
-
* @
|
|
2495
|
+
* @notInstrumented
|
|
2496
2496
|
*/
|
|
2497
2497
|
const getMultichainTokenBalances = async ({ balanceRequest }, client = getDefaultClient()) => {
|
|
2498
2498
|
const core = getCore(client);
|
|
@@ -2509,14 +2509,14 @@ const getMultichainTokenBalances = async ({ balanceRequest }, client = getDefaul
|
|
|
2509
2509
|
* the name aligns with `getTokenBalances` and signals that this fetches
|
|
2510
2510
|
* token balances (not native-only) across multiple chains.
|
|
2511
2511
|
*
|
|
2512
|
-
* @
|
|
2512
|
+
* @notInstrumented
|
|
2513
2513
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
2514
2514
|
*/
|
|
2515
2515
|
const getMultichainBalances = (params, client = getDefaultClient()) => getMultichainTokenBalances(params, client);
|
|
2516
2516
|
|
|
2517
2517
|
//#endregion
|
|
2518
2518
|
//#region src/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.ts
|
|
2519
|
-
/** @
|
|
2519
|
+
/** @notInstrumented */
|
|
2520
2520
|
const createCheckoutSessionTokenStorageKey = (transactionId) => {
|
|
2521
2521
|
return createStorageKeySchema({
|
|
2522
2522
|
key: `checkoutSessionToken:${transactionId}`,
|
|
@@ -2526,7 +2526,7 @@ const createCheckoutSessionTokenStorageKey = (transactionId) => {
|
|
|
2526
2526
|
|
|
2527
2527
|
//#endregion
|
|
2528
2528
|
//#region src/modules/checkout/utils/createCheckoutApiClient/createCheckoutApiClient.ts
|
|
2529
|
-
/** @
|
|
2529
|
+
/** @notInstrumented */
|
|
2530
2530
|
const createCheckoutApiClient = async ({ transactionId }, client) => {
|
|
2531
2531
|
const core = getCore(client);
|
|
2532
2532
|
const apiClient = createApiClient({}, client);
|
|
@@ -2555,7 +2555,7 @@ const createCheckoutApiClient = async ({ transactionId }, client) => {
|
|
|
2555
2555
|
* The server-side revocation lives in dashboard-api; this is the SDK-side
|
|
2556
2556
|
* defense-in-depth.
|
|
2557
2557
|
*
|
|
2558
|
-
* @
|
|
2558
|
+
* @notInstrumented
|
|
2559
2559
|
*/
|
|
2560
2560
|
const clearCheckoutSessionToken = async ({ transactionId }, client) => {
|
|
2561
2561
|
await getCore(client).storage.removeItem(createCheckoutSessionTokenStorageKey(transactionId));
|
|
@@ -2570,7 +2570,7 @@ const clearCheckoutSessionToken = async ({ transactionId }, client) => {
|
|
|
2570
2570
|
* exfiltration surface for no benefit and makes the next SDK load attempt
|
|
2571
2571
|
* requests that are guaranteed to fail.
|
|
2572
2572
|
*
|
|
2573
|
-
* @
|
|
2573
|
+
* @notInstrumented
|
|
2574
2574
|
*/
|
|
2575
2575
|
const withCheckoutSessionTokenCleanupOn401 = async ({ call, transactionId }, client) => {
|
|
2576
2576
|
try {
|
|
@@ -2718,7 +2718,7 @@ const __cancelCheckoutTransaction_wrapped = instrumentFunction({
|
|
|
2718
2718
|
|
|
2719
2719
|
//#endregion
|
|
2720
2720
|
//#region src/modules/checkout/getCheckouts/getCheckouts.ts
|
|
2721
|
-
/** @
|
|
2721
|
+
/** @notInstrumented */
|
|
2722
2722
|
const getCheckouts = async (client) => {
|
|
2723
2723
|
const projectSettings = client.projectSettings;
|
|
2724
2724
|
assertDefined(projectSettings, "Project settings are not available");
|
|
@@ -2784,7 +2784,7 @@ const __createCheckoutTransaction_wrapped = instrumentFunction({
|
|
|
2784
2784
|
* @param params GetCheckoutTransactionParams - The parameters for fetching the transaction.
|
|
2785
2785
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2786
2786
|
* @returns The checkout transaction
|
|
2787
|
-
* @
|
|
2787
|
+
* @notInstrumented
|
|
2788
2788
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2789
2789
|
*/
|
|
2790
2790
|
const getCheckoutTransaction = async ({ transactionId }, client = getDefaultClient()) => {
|
|
@@ -2805,7 +2805,7 @@ const getCheckoutTransaction = async ({ transactionId }, client = getDefaultClie
|
|
|
2805
2805
|
* @param params GetCheckoutTransactionQuoteParams - The quote parameters.
|
|
2806
2806
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2807
2807
|
* @returns The updated checkout transaction with quote data
|
|
2808
|
-
* @
|
|
2808
|
+
* @notInstrumented
|
|
2809
2809
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2810
2810
|
*/
|
|
2811
2811
|
const getCheckoutTransactionQuote = async ({ fromChainId, fromTokenAddress, slippage, transactionId }, client = getDefaultClient()) => {
|
|
@@ -2910,7 +2910,7 @@ const SWAP_SUPPORTED_CHAINS = [
|
|
|
2910
2910
|
* If the wallet provider is not on the correct active network, it will try to switch to the correct active network.
|
|
2911
2911
|
* It's not a blocker, so it will just log the error and skip the step if it fails.
|
|
2912
2912
|
*
|
|
2913
|
-
* @
|
|
2913
|
+
* @notInstrumented
|
|
2914
2914
|
*/
|
|
2915
2915
|
const ensureCorrectActiveNetwork = async ({ requiredNetworkId, walletProvider }, client) => {
|
|
2916
2916
|
const { logger } = getCore(client);
|
|
@@ -3040,7 +3040,7 @@ const __submitCheckoutTransaction_wrapped = instrumentFunction({
|
|
|
3040
3040
|
*
|
|
3041
3041
|
* @param params.transactionId - The ID of the checkout transaction to track.
|
|
3042
3042
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3043
|
-
* @
|
|
3043
|
+
* @notInstrumented
|
|
3044
3044
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
3045
3045
|
*/
|
|
3046
3046
|
const trackCheckoutTransaction = (_params, client = getDefaultClient()) => {
|
|
@@ -3063,7 +3063,7 @@ const trackCheckoutTransaction = (_params, client = getDefaultClient()) => {
|
|
|
3063
3063
|
* @param params - The from token details and the checkout's settlement config.
|
|
3064
3064
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3065
3065
|
* @returns Whether a token conversion is required
|
|
3066
|
-
* @
|
|
3066
|
+
* @notInstrumented
|
|
3067
3067
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
3068
3068
|
*/
|
|
3069
3069
|
const requiresConversion = async ({ transaction }, client = getDefaultClient()) => {
|
|
@@ -3108,7 +3108,7 @@ const __completeDeviceRegistration_wrapped = instrumentFunction({
|
|
|
3108
3108
|
*
|
|
3109
3109
|
* @returns The device token as a string if valid.
|
|
3110
3110
|
* @throws InvalidDeviceRegistrationRedirectError If the URL is not a valid device registration redirect.
|
|
3111
|
-
* @
|
|
3111
|
+
* @notInstrumented
|
|
3112
3112
|
*/
|
|
3113
3113
|
const getDeviceRegistrationTokenFromUrl = ({ url }) => {
|
|
3114
3114
|
let urlObject;
|
|
@@ -3131,7 +3131,7 @@ const getDeviceRegistrationTokenFromUrl = ({ url }) => {
|
|
|
3131
3131
|
* if it contains device registration redirect data from a device authentication flow.
|
|
3132
3132
|
*
|
|
3133
3133
|
* @returns True if the URL is a device registration redirect, false otherwise.
|
|
3134
|
-
* @
|
|
3134
|
+
* @notInstrumented
|
|
3135
3135
|
*/
|
|
3136
3136
|
const detectDeviceRegistrationRedirect = ({ url }) => {
|
|
3137
3137
|
try {
|
|
@@ -3144,7 +3144,7 @@ const detectDeviceRegistrationRedirect = ({ url }) => {
|
|
|
3144
3144
|
|
|
3145
3145
|
//#endregion
|
|
3146
3146
|
//#region src/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.ts
|
|
3147
|
-
/** @
|
|
3147
|
+
/** @notInstrumented */
|
|
3148
3148
|
const getRegisteredDevices = async (client = getDefaultClient()) => {
|
|
3149
3149
|
const core = getCore(client);
|
|
3150
3150
|
const apiClient = createApiClient({}, client);
|
|
@@ -3160,20 +3160,6 @@ const getRegisteredDevices = async (client = getDefaultClient()) => {
|
|
|
3160
3160
|
}
|
|
3161
3161
|
};
|
|
3162
3162
|
|
|
3163
|
-
//#endregion
|
|
3164
|
-
//#region src/modules/deviceRegistration/isDeviceRegistrationRequired/isDeviceRegistrationRequired.ts
|
|
3165
|
-
/**
|
|
3166
|
-
* Checks if device registration is required for the given user.
|
|
3167
|
-
*
|
|
3168
|
-
* This function determines if the user has the deviceRegistration
|
|
3169
|
-
* scope, indicating that device registration is required.
|
|
3170
|
-
*
|
|
3171
|
-
* @param user - The user to check.
|
|
3172
|
-
* @returns True if device registration is required, false otherwise.
|
|
3173
|
-
* @not-instrumented
|
|
3174
|
-
*/
|
|
3175
|
-
const isDeviceRegistrationRequired = (user) => Boolean(user.scope?.includes("device:register"));
|
|
3176
|
-
|
|
3177
3163
|
//#endregion
|
|
3178
3164
|
//#region src/modules/deviceRegistration/revokeAllRegisteredDevices/revokeAllRegisteredDevices.ts
|
|
3179
3165
|
/** @instrumented */
|
|
@@ -3221,7 +3207,7 @@ const __revokeRegisteredDevice_wrapped = instrumentFunction({
|
|
|
3221
3207
|
|
|
3222
3208
|
//#endregion
|
|
3223
3209
|
//#region src/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.ts
|
|
3224
|
-
/** @
|
|
3210
|
+
/** @notInstrumented */
|
|
3225
3211
|
const createFlowSessionTokenStorageKey = (flowId) => {
|
|
3226
3212
|
return createStorageKeySchema({
|
|
3227
3213
|
key: `flowSessionToken:${flowId}`,
|
|
@@ -3245,7 +3231,7 @@ const createFlowSessionTokenStorageKey = (flowId) => {
|
|
|
3245
3231
|
* The server-side revocation lives in dashboard-api; this is the SDK-side
|
|
3246
3232
|
* defense-in-depth.
|
|
3247
3233
|
*
|
|
3248
|
-
* @
|
|
3234
|
+
* @notInstrumented
|
|
3249
3235
|
*/
|
|
3250
3236
|
const clearFlowSessionToken = async ({ flowId }, client) => {
|
|
3251
3237
|
await getCore(client).storage.removeItem(createFlowSessionTokenStorageKey(flowId));
|
|
@@ -3260,7 +3246,7 @@ const clearFlowSessionToken = async ({ flowId }, client) => {
|
|
|
3260
3246
|
* exfiltration surface for no benefit and makes the next SDK load attempt
|
|
3261
3247
|
* requests that are guaranteed to fail.
|
|
3262
3248
|
*
|
|
3263
|
-
* @
|
|
3249
|
+
* @notInstrumented
|
|
3264
3250
|
*/
|
|
3265
3251
|
const withFlowSessionTokenCleanupOn401 = async ({ call, flowId }, client) => {
|
|
3266
3252
|
try {
|
|
@@ -3326,7 +3312,7 @@ const __attachFlowSource_wrapped = instrumentFunction({
|
|
|
3326
3312
|
|
|
3327
3313
|
//#endregion
|
|
3328
3314
|
//#region src/modules/flow/utils/createFlowApiClient/createFlowApiClient.ts
|
|
3329
|
-
/** @
|
|
3315
|
+
/** @notInstrumented */
|
|
3330
3316
|
const createFlowApiClient = async ({ flowId }, client) => {
|
|
3331
3317
|
const core = getCore(client);
|
|
3332
3318
|
const apiClient = createApiClient({}, client);
|
|
@@ -3422,7 +3408,7 @@ const __cancelFlow_wrapped = instrumentFunction({
|
|
|
3422
3408
|
* @param params GetFlowParams - The parameters for fetching the flow.
|
|
3423
3409
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3424
3410
|
* @returns The flow
|
|
3425
|
-
* @
|
|
3411
|
+
* @notInstrumented
|
|
3426
3412
|
*/
|
|
3427
3413
|
const getFlow = async ({ flowId }, client = getDefaultClient()) => {
|
|
3428
3414
|
const core = getCore(client);
|
|
@@ -3440,7 +3426,7 @@ const getFlow = async ({ flowId }, client = getDefaultClient()) => {
|
|
|
3440
3426
|
* @param params GetFlowQuoteParams - The quote parameters.
|
|
3441
3427
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3442
3428
|
* @returns The updated flow with quote data
|
|
3443
|
-
* @
|
|
3429
|
+
* @notInstrumented
|
|
3444
3430
|
*/
|
|
3445
3431
|
const getFlowQuote = async ({ flowId, fromChainId, fromTokenAddress, slippage }, client = getDefaultClient()) => {
|
|
3446
3432
|
const { apiClient, environmentId, sessionToken } = await createFlowApiClient({ flowId }, client);
|
|
@@ -3555,7 +3541,7 @@ const __submitFlowTransaction_wrapped = instrumentFunction({
|
|
|
3555
3541
|
* @returns A function to remove the listener.
|
|
3556
3542
|
* @throws {ValueMustBeDefinedError} If the window is not available.
|
|
3557
3543
|
* @docs https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/apple-pay-onramp-api#events-names
|
|
3558
|
-
* @
|
|
3544
|
+
* @notInstrumented
|
|
3559
3545
|
* @hook Event listeners are error-prone to wire up by hand with useEffect.
|
|
3560
3546
|
*/
|
|
3561
3547
|
const addCoinbaseOnrampOrderEventListener = ({ listener }, client = getDefaultClient()) => {
|
|
@@ -3597,7 +3583,7 @@ const addCoinbaseOnrampOrderEventListener = ({ listener }, client = getDefaultCl
|
|
|
3597
3583
|
* @returns FieldMissingVerificationForCoinbaseOnramp[] - An array of fields that are missing verification for a Coinbase onramp order
|
|
3598
3584
|
* @throws {InvalidParamError} - If the payment method is not valid
|
|
3599
3585
|
* @throws {ValueMustBeDefinedError} - If the user is not authenticated
|
|
3600
|
-
* @
|
|
3586
|
+
* @notInstrumented
|
|
3601
3587
|
*/
|
|
3602
3588
|
const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client = getDefaultClient()) => {
|
|
3603
3589
|
if (paymentMethod !== "GUEST_CHECKOUT_APPLE_PAY") throw new InvalidParamError(`Invalid payment method: ${paymentMethod}`);
|
|
@@ -3635,7 +3621,7 @@ const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client
|
|
|
3635
3621
|
|
|
3636
3622
|
//#endregion
|
|
3637
3623
|
//#region src/modules/funding/coinbase/utils/validateUserCredentialsForCoinbaseOnrampOrder/validateUserCredentialsForCoinbaseOnrampOrder.ts
|
|
3638
|
-
/** @
|
|
3624
|
+
/** @notInstrumented */
|
|
3639
3625
|
const validateUserCredentialsForCoinbaseOnrampOrder = (client) => {
|
|
3640
3626
|
const { user } = client;
|
|
3641
3627
|
assertDefined(user, "User is not authenticated");
|
|
@@ -3710,7 +3696,7 @@ const __createCoinbaseOnrampOrder_wrapped = instrumentFunction({
|
|
|
3710
3696
|
* @param buyUrlParams CoinbaseOnrampGetBuyUrlRequest - The parameters for the buy URL.
|
|
3711
3697
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3712
3698
|
* @returns an object containing the buy URL
|
|
3713
|
-
* @
|
|
3699
|
+
* @notInstrumented
|
|
3714
3700
|
*/
|
|
3715
3701
|
const getCoinbaseBuyUrl = async (buyUrlParams, client = getDefaultClient()) => {
|
|
3716
3702
|
const core = getCore(client);
|
|
@@ -3761,7 +3747,7 @@ const __createCryptoDotComPayment_wrapped = instrumentFunction({
|
|
|
3761
3747
|
* @param transferParams - The parameters for the transfer including accountId
|
|
3762
3748
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3763
3749
|
* @returns The created transfer
|
|
3764
|
-
* @
|
|
3750
|
+
* @notInstrumented
|
|
3765
3751
|
*/
|
|
3766
3752
|
const createKrakenExchangeTransfer = async (transferParams, client = getDefaultClient()) => {
|
|
3767
3753
|
const core = getCore(client);
|
|
@@ -3795,7 +3781,7 @@ const __createKrakenExchangeTransfer_wrapped = instrumentFunction({
|
|
|
3795
3781
|
* @param [params] GetKrakenAccountsParams - Optional filters for the accounts.
|
|
3796
3782
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3797
3783
|
* @returns Array of Kraken accounts with balances
|
|
3798
|
-
* @
|
|
3784
|
+
* @notInstrumented
|
|
3799
3785
|
*/
|
|
3800
3786
|
const getKrakenAccounts = async (params, client = getDefaultClient()) => {
|
|
3801
3787
|
const core = getCore(client);
|
|
@@ -3814,7 +3800,7 @@ const getKrakenAccounts = async (params, client = getDefaultClient()) => {
|
|
|
3814
3800
|
*
|
|
3815
3801
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3816
3802
|
* @returns Transfer destinations response with whitelisted addresses
|
|
3817
|
-
* @
|
|
3803
|
+
* @notInstrumented
|
|
3818
3804
|
*/
|
|
3819
3805
|
const getKrakenWhitelistedAddresses = async (client = getDefaultClient()) => {
|
|
3820
3806
|
const core = getCore(client);
|
|
@@ -3940,7 +3926,7 @@ const __getMoonPayUrl_wrapped = instrumentFunction({
|
|
|
3940
3926
|
* and are ready for use.
|
|
3941
3927
|
*
|
|
3942
3928
|
* @returns a promise that resolves once the client is fully initialized.
|
|
3943
|
-
* @
|
|
3929
|
+
* @notInstrumented
|
|
3944
3930
|
* @noHook Client lifecycle management is not exposed as a hook; use useInitStatus.
|
|
3945
3931
|
*/
|
|
3946
3932
|
const waitForClientInitialized = async (client = getDefaultClient()) => {
|
|
@@ -3991,7 +3977,7 @@ const normalize$1 = (value) => value.toLowerCase().replace(/\s+/g, "").replace(/
|
|
|
3991
3977
|
* @param [params.catalogGroupName] - Optional display name (e.g. `"Trust Wallet"`); matched as a fallback when the key is opaque.
|
|
3992
3978
|
* @param params.walletProviders - Currently available wallet providers (from `getAvailableWalletProvidersData`).
|
|
3993
3979
|
* @returns The subset of `walletProviders` that match the catalog group.
|
|
3994
|
-
* @
|
|
3980
|
+
* @notInstrumented
|
|
3995
3981
|
*/
|
|
3996
3982
|
const matchWalletProvidersToCatalogGroup = ({ catalogGroupKey, catalogGroupName, walletProviders }) => {
|
|
3997
3983
|
const targets = new Set([normalize$1(catalogGroupKey)]);
|
|
@@ -4018,7 +4004,7 @@ const matchWalletProvidersToCatalogGroup = ({ catalogGroupKey, catalogGroupName,
|
|
|
4018
4004
|
* multi-chain wallet (same `groupId` across EVM + SOL entries) only runs
|
|
4019
4005
|
* the match once.
|
|
4020
4006
|
*
|
|
4021
|
-
* @
|
|
4007
|
+
* @notInstrumented
|
|
4022
4008
|
*/
|
|
4023
4009
|
const collectInstalledGroupIds = ({ catalog, walletProviders }) => {
|
|
4024
4010
|
const installedGroupIds = /* @__PURE__ */ new Set();
|
|
@@ -4061,7 +4047,7 @@ const collectInstalledGroupIds = ({ catalog, walletProviders }) => {
|
|
|
4061
4047
|
* @param params.catalog - The full WalletConnect catalog (typically from `getWalletConnectCatalog`).
|
|
4062
4048
|
* @param params.walletProviders - Currently available wallet providers.
|
|
4063
4049
|
* @returns A new catalog with only the wallets and groups the user does not have installed.
|
|
4064
|
-
* @
|
|
4050
|
+
* @notInstrumented
|
|
4065
4051
|
*/
|
|
4066
4052
|
const excludeInstalledFromCatalog = ({ catalog, walletProviders }) => {
|
|
4067
4053
|
const installedGroupIds = collectInstalledGroupIds({
|
|
@@ -4089,7 +4075,7 @@ const excludeInstalledFromCatalog = ({ catalog, walletProviders }) => {
|
|
|
4089
4075
|
//#region src/modules/legacyWalletBook/getWalletBookCdnUrl/getWalletBookCdnUrl.ts
|
|
4090
4076
|
/**
|
|
4091
4077
|
* Default CDN URL for the wallet book.
|
|
4092
|
-
* @
|
|
4078
|
+
* @notInstrumented
|
|
4093
4079
|
*/
|
|
4094
4080
|
const DEFAULT_WALLET_BOOK_CDN_URL = "https://dynamic-static-assets.com/wallet-book/v1/stable/wallet-book.json";
|
|
4095
4081
|
/**
|
|
@@ -4101,7 +4087,7 @@ const DEFAULT_WALLET_BOOK_CDN_URL = "https://dynamic-static-assets.com/wallet-bo
|
|
|
4101
4087
|
* 4. Default CDN URL
|
|
4102
4088
|
*
|
|
4103
4089
|
* @returns The wallet book CDN URL to use.
|
|
4104
|
-
* @
|
|
4090
|
+
* @notInstrumented
|
|
4105
4091
|
*/
|
|
4106
4092
|
const getWalletBookCdnUrl = () => {
|
|
4107
4093
|
if (typeof process !== "undefined" && process.env) {
|
|
@@ -4115,7 +4101,7 @@ const getWalletBookCdnUrl = () => {
|
|
|
4115
4101
|
//#region src/modules/legacyWalletBook/fetchLegacyWalletBook/fetchWithTimeout/fetchWithTimeout.ts
|
|
4116
4102
|
/**
|
|
4117
4103
|
* The timeout for each fetch attempt in milliseconds.
|
|
4118
|
-
* @
|
|
4104
|
+
* @notInstrumented
|
|
4119
4105
|
*/
|
|
4120
4106
|
const FETCH_TIMEOUT_MS = 3e4;
|
|
4121
4107
|
/**
|
|
@@ -4123,7 +4109,7 @@ const FETCH_TIMEOUT_MS = 3e4;
|
|
|
4123
4109
|
*
|
|
4124
4110
|
* @param client - The Dynamic client instance.
|
|
4125
4111
|
* @returns A promise that resolves to the wallet book data.
|
|
4126
|
-
* @
|
|
4112
|
+
* @notInstrumented
|
|
4127
4113
|
*/
|
|
4128
4114
|
const fetchWithTimeout = async (client) => {
|
|
4129
4115
|
const controller = new AbortController();
|
|
@@ -4155,7 +4141,7 @@ const walletBookCacheStorageKeySchema = createStorageKeySchema({
|
|
|
4155
4141
|
//#region src/modules/legacyWalletBook/fetchLegacyWalletBook/fetchLegacyWalletBook.ts
|
|
4156
4142
|
/**
|
|
4157
4143
|
* The maximum number of retry attempts.
|
|
4158
|
-
* @
|
|
4144
|
+
* @notInstrumented
|
|
4159
4145
|
*/
|
|
4160
4146
|
const MAX_RETRIES = 3;
|
|
4161
4147
|
/**
|
|
@@ -4172,7 +4158,7 @@ const RETRY_DELAY_MS = 100;
|
|
|
4172
4158
|
* @param client - The Dynamic client instance.
|
|
4173
4159
|
* @returns A promise that resolves to the wallet book data.
|
|
4174
4160
|
* @throws If both CDN fetch and cache retrieval fail.
|
|
4175
|
-
* @
|
|
4161
|
+
* @notInstrumented
|
|
4176
4162
|
*/
|
|
4177
4163
|
const fetchLegacyWalletBook = async (client) => {
|
|
4178
4164
|
const core = getCore(client);
|
|
@@ -4205,7 +4191,7 @@ const fetchLegacyWalletBook = async (client) => {
|
|
|
4205
4191
|
* catalogue. These wallets are not products the user "connects" to from the
|
|
4206
4192
|
* wallet selection list — they are embedded sign-in methods that live behind
|
|
4207
4193
|
* different SDK entry points.
|
|
4208
|
-
* @
|
|
4194
|
+
* @notInstrumented
|
|
4209
4195
|
*/
|
|
4210
4196
|
const EMBEDDED_WALLET_KEYS = [
|
|
4211
4197
|
"magicemailotp",
|
|
@@ -4234,7 +4220,7 @@ const EMBEDDED_WALLET_KEYS = [
|
|
|
4234
4220
|
* {@link shouldFilterWalletForWalletConnect}.
|
|
4235
4221
|
*
|
|
4236
4222
|
* @returns True if the wallet should be filtered out, false otherwise.
|
|
4237
|
-
* @
|
|
4223
|
+
* @notInstrumented
|
|
4238
4224
|
*/
|
|
4239
4225
|
const shouldFilterWallet = ({ wallet, walletKey }) => {
|
|
4240
4226
|
if (EMBEDDED_WALLET_KEYS.includes(walletKey)) return true;
|
|
@@ -4254,7 +4240,7 @@ const shouldFilterWallet = ({ wallet, walletKey }) => {
|
|
|
4254
4240
|
*
|
|
4255
4241
|
* @returns True if the wallet should be excluded from the WalletConnect
|
|
4256
4242
|
* catalog, false otherwise.
|
|
4257
|
-
* @
|
|
4243
|
+
* @notInstrumented
|
|
4258
4244
|
*/
|
|
4259
4245
|
const shouldFilterWalletForWalletConnect = ({ wallet, walletKey }) => {
|
|
4260
4246
|
if (shouldFilterWallet({
|
|
@@ -4271,7 +4257,7 @@ const shouldFilterWalletForWalletConnect = ({ wallet, walletKey }) => {
|
|
|
4271
4257
|
*
|
|
4272
4258
|
* @param params.spriteId - The sprite identifier from the wallet book.
|
|
4273
4259
|
* @returns The full URL to the sprite icon
|
|
4274
|
-
* @
|
|
4260
|
+
* @notInstrumented
|
|
4275
4261
|
*/
|
|
4276
4262
|
const getSpriteUrl = ({ spriteId }) => `${DYNAMIC_ICONIC_SPRITE_URL}#${spriteId}`;
|
|
4277
4263
|
|
|
@@ -4279,7 +4265,7 @@ const getSpriteUrl = ({ spriteId }) => `${DYNAMIC_ICONIC_SPRITE_URL}#${spriteId}
|
|
|
4279
4265
|
//#region src/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/transformGroup.ts
|
|
4280
4266
|
/**
|
|
4281
4267
|
* Transforms a wallet group schema into a WalletConnect catalog group.
|
|
4282
|
-
* @
|
|
4268
|
+
* @notInstrumented
|
|
4283
4269
|
*/
|
|
4284
4270
|
const transformGroup = ({ group }) => {
|
|
4285
4271
|
const spriteId = group.brand?.spriteId ?? "";
|
|
@@ -4306,7 +4292,7 @@ const transformGroup = ({ group }) => {
|
|
|
4306
4292
|
*
|
|
4307
4293
|
* Centralised here rather than in `legacyWalletBook` so all chain naming
|
|
4308
4294
|
* knowledge stays alongside `CHAINS_INFO_MAP`.
|
|
4309
|
-
* @
|
|
4295
|
+
* @notInstrumented
|
|
4310
4296
|
*/
|
|
4311
4297
|
const getChainFromWalletBookIdentifier = ({ identifier }) => {
|
|
4312
4298
|
const normalised = identifier.toLowerCase();
|
|
@@ -4324,7 +4310,7 @@ const getChainFromWalletBookIdentifier = ({ identifier }) => {
|
|
|
4324
4310
|
*
|
|
4325
4311
|
* Exported so {@link getChainsFromWalletSchema} can apply the same
|
|
4326
4312
|
* parsing to its multi-chain pass without duplicating the logic.
|
|
4327
|
-
* @
|
|
4313
|
+
* @notInstrumented
|
|
4328
4314
|
*/
|
|
4329
4315
|
const extractChainPrefix = ({ chainIdentifier }) => {
|
|
4330
4316
|
const colonIndex = chainIdentifier.indexOf(":");
|
|
@@ -4357,7 +4343,7 @@ const getChainFromWalletKey = ({ walletKey }) => {
|
|
|
4357
4343
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
4358
4344
|
* @param params.walletKey - The wallet key identifier (optional, used as last resort fallback).
|
|
4359
4345
|
* @returns The chain type, defaults to EVM if no chain can be determined.
|
|
4360
|
-
* @
|
|
4346
|
+
* @notInstrumented
|
|
4361
4347
|
*/
|
|
4362
4348
|
const getChainFromWalletSchema = ({ wallet, walletKey }) => {
|
|
4363
4349
|
if (wallet.injectedConfig && wallet.injectedConfig.length > 0) {
|
|
@@ -4385,7 +4371,7 @@ const getChainFromWalletSchema = ({ wallet, walletKey }) => {
|
|
|
4385
4371
|
//#region src/modules/legacyWalletBook/getWalletConnectCatalog/transformWallet/transformWallet.ts
|
|
4386
4372
|
/**
|
|
4387
4373
|
* Transforms a wallet schema into a WalletConnect catalog wallet entry.
|
|
4388
|
-
* @
|
|
4374
|
+
* @notInstrumented
|
|
4389
4375
|
*/
|
|
4390
4376
|
const transformWallet = ({ wallet, walletKey }) => {
|
|
4391
4377
|
const spriteId = wallet.brand?.spriteId ?? "";
|
|
@@ -4416,7 +4402,7 @@ const transformWallet = ({ wallet, walletKey }) => {
|
|
|
4416
4402
|
/**
|
|
4417
4403
|
* Transforms the legacy wallet book into a WalletConnect catalog structure.
|
|
4418
4404
|
* Filters out embedded wallets and injected-only wallets.
|
|
4419
|
-
* @
|
|
4405
|
+
* @notInstrumented
|
|
4420
4406
|
*/
|
|
4421
4407
|
const transformWalletBook = ({ walletBook }) => {
|
|
4422
4408
|
const groups = {};
|
|
@@ -4449,7 +4435,7 @@ const transformWalletBook = ({ walletBook }) => {
|
|
|
4449
4435
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4450
4436
|
* @returns A promise that resolves to the WalletConnect catalog containing groups and wallets.
|
|
4451
4437
|
* @throws If unable to fetch the wallet book from the API (when both CDN fetch and cache retrieval fail).
|
|
4452
|
-
* @
|
|
4438
|
+
* @notInstrumented
|
|
4453
4439
|
*/
|
|
4454
4440
|
const getWalletConnectCatalog = async (client = getDefaultClient()) => {
|
|
4455
4441
|
return transformWalletBook({ walletBook: await fetchLegacyWalletBook(client) });
|
|
@@ -4463,7 +4449,7 @@ const getWalletConnectCatalog = async (client = getDefaultClient()) => {
|
|
|
4463
4449
|
*
|
|
4464
4450
|
* @param params.normalizedWalletNameWithChain - The normalized wallet name with chain suffix.
|
|
4465
4451
|
* @returns The chain if found, undefined otherwise.
|
|
4466
|
-
* @
|
|
4452
|
+
* @notInstrumented
|
|
4467
4453
|
*/
|
|
4468
4454
|
const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
|
|
4469
4455
|
const lowerName = normalizedWalletNameWithChain.toLowerCase();
|
|
@@ -4483,7 +4469,7 @@ const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
|
|
|
4483
4469
|
* @param params.walletProviderKey - The wallet provider key to get the catalog wallet entry for.
|
|
4484
4470
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4485
4471
|
* @returns A promise that resolves to the WalletConnect catalog wallet entry, or undefined if not found.
|
|
4486
|
-
* @
|
|
4472
|
+
* @notInstrumented
|
|
4487
4473
|
*/
|
|
4488
4474
|
const getWalletConnectCatalogWalletByWalletProviderKey = async ({ walletProviderKey }, client = getDefaultClient()) => {
|
|
4489
4475
|
const { normalizedWalletNameWithChain } = splitWalletProviderKey(walletProviderKey);
|
|
@@ -4589,7 +4575,7 @@ const __acknowledgeRecoveryCodes_wrapped = instrumentFunction({
|
|
|
4589
4575
|
* @param [params.requestedScopes] - Optional scopes to request an elevated access token instead of an MFA token.
|
|
4590
4576
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4591
4577
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4592
|
-
* @
|
|
4578
|
+
* @notInstrumented
|
|
4593
4579
|
*/
|
|
4594
4580
|
const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, requestedScopes }, client = getDefaultClient()) => {
|
|
4595
4581
|
const core = getCore(client);
|
|
@@ -4620,7 +4606,7 @@ const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, reques
|
|
|
4620
4606
|
|
|
4621
4607
|
//#endregion
|
|
4622
4608
|
//#region src/modules/auth/passkeys/getPasskeyAuthenticationOptions/getPasskeyAuthenticationOptions.ts
|
|
4623
|
-
/** @
|
|
4609
|
+
/** @notInstrumented */
|
|
4624
4610
|
const getPasskeyAuthenticationOptions = async ({ relatedOriginRpId } = {}, client) => {
|
|
4625
4611
|
const core = getCore(client);
|
|
4626
4612
|
return await createApiClient({}, client).getPasskeyAuthenticationOptions({
|
|
@@ -4631,7 +4617,7 @@ const getPasskeyAuthenticationOptions = async ({ relatedOriginRpId } = {}, clien
|
|
|
4631
4617
|
|
|
4632
4618
|
//#endregion
|
|
4633
4619
|
//#region src/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.ts
|
|
4634
|
-
/** @
|
|
4620
|
+
/** @notInstrumented */
|
|
4635
4621
|
const serverAuthenticatePasskey = async ({ authentication, createMfaToken, requestedScopes }, client) => {
|
|
4636
4622
|
const core = getCore(client);
|
|
4637
4623
|
return await createApiClient({}, client).authenticateMfaPasskeyDevice({
|
|
@@ -4662,7 +4648,7 @@ const serverAuthenticatePasskey = async ({ authentication, createMfaToken, reque
|
|
|
4662
4648
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4663
4649
|
* @throws NoWebAuthNSupportError If WebAuthn is not supported by the browser.
|
|
4664
4650
|
* @throws NoPasskeyCredentialsFoundError If no passkey credentials are found.
|
|
4665
|
-
* @
|
|
4651
|
+
* @notInstrumented
|
|
4666
4652
|
*/
|
|
4667
4653
|
const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, requestedScopes } = {}, client = getDefaultClient()) => {
|
|
4668
4654
|
const core = getCore(client);
|
|
@@ -4712,7 +4698,7 @@ const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, reque
|
|
|
4712
4698
|
* @param [params.requestedScopes] - Optional scopes to request an elevated access token instead of an MFA token.
|
|
4713
4699
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4714
4700
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4715
|
-
* @
|
|
4701
|
+
* @notInstrumented
|
|
4716
4702
|
*/
|
|
4717
4703
|
const authenticateTotpMfaDevice = async ({ deviceId, code, createMfaTokenOptions, requestedScopes }, client = getDefaultClient()) => {
|
|
4718
4704
|
const core = getCore(client);
|
|
@@ -4831,7 +4817,7 @@ const __deleteMfaDevice_wrapped = instrumentFunction({
|
|
|
4831
4817
|
*
|
|
4832
4818
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4833
4819
|
* @returns A promise that resolves to an array of the user's registered MFA devices.
|
|
4834
|
-
* @
|
|
4820
|
+
* @notInstrumented
|
|
4835
4821
|
*/
|
|
4836
4822
|
const getMfaDevices = async (client = getDefaultClient()) => {
|
|
4837
4823
|
const core = getCore(client);
|
|
@@ -4851,31 +4837,13 @@ const getMfaDevices = async (client = getDefaultClient()) => {
|
|
|
4851
4837
|
*
|
|
4852
4838
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4853
4839
|
* @returns A promise that resolves to the user's MFA recovery codes.
|
|
4854
|
-
* @
|
|
4840
|
+
* @notInstrumented
|
|
4855
4841
|
*/
|
|
4856
4842
|
const getMfaRecoveryCodes = async (client = getDefaultClient()) => {
|
|
4857
4843
|
const core = getCore(client);
|
|
4858
4844
|
return createApiClient({}, client).getRecoveryCodes({ environmentId: core.environmentId });
|
|
4859
4845
|
};
|
|
4860
4846
|
|
|
4861
|
-
//#endregion
|
|
4862
|
-
//#region src/modules/mfa/isPendingRecoveryCodesAcknowledgment/isPendingRecoveryCodesAcknowledgment.ts
|
|
4863
|
-
/**
|
|
4864
|
-
* Checks if the user is still pending acknowledgment of their MFA recovery codes.
|
|
4865
|
-
*
|
|
4866
|
-
* This function determines whether the user has been presented with recovery
|
|
4867
|
-
* codes that they have not yet acknowledged as saved or backed up.
|
|
4868
|
-
*
|
|
4869
|
-
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4870
|
-
* @returns True if recovery codes are pending acknowledgment, false otherwise.
|
|
4871
|
-
* @not-instrumented
|
|
4872
|
-
*/
|
|
4873
|
-
const isPendingRecoveryCodesAcknowledgment = (client = getDefaultClient()) => {
|
|
4874
|
-
const user = client.user;
|
|
4875
|
-
assertDefined(user, "User not logged in");
|
|
4876
|
-
return user.mfaBackupCodeAcknowledgement === MfaBackupCodeAcknowledgement.Pending;
|
|
4877
|
-
};
|
|
4878
|
-
|
|
4879
4847
|
//#endregion
|
|
4880
4848
|
//#region src/modules/mfa/registerTotpMfaDevice/registerTotpMfaDevice.ts
|
|
4881
4849
|
/**
|
|
@@ -5954,7 +5922,7 @@ const __sendSmsOTP_wrapped = instrumentFunction({
|
|
|
5954
5922
|
|
|
5955
5923
|
//#endregion
|
|
5956
5924
|
//#region src/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.ts
|
|
5957
|
-
/** @
|
|
5925
|
+
/** @notInstrumented */
|
|
5958
5926
|
const verifyOTPForUserSignIn = async ({ otpVerification, verificationToken }, client) => {
|
|
5959
5927
|
const core = getCore(client);
|
|
5960
5928
|
const apiClient = createApiClient({}, client);
|
|
@@ -5974,7 +5942,7 @@ const verifyOTPForUserSignIn = async ({ otpVerification, verificationToken }, cl
|
|
|
5974
5942
|
|
|
5975
5943
|
//#endregion
|
|
5976
5944
|
//#region src/modules/otp/verifyOTP/verifyOTPForUserUpdate/verifyOTPForUserUpdate.ts
|
|
5977
|
-
/** @
|
|
5945
|
+
/** @notInstrumented */
|
|
5978
5946
|
const verifyOTPForUserUpdate = async ({ otpVerification, verificationToken, requestedScopes }, client) => {
|
|
5979
5947
|
const core = getCore(client);
|
|
5980
5948
|
const apiClient = createApiClient({}, client);
|
|
@@ -6045,7 +6013,7 @@ const __verifyOTP_wrapped = instrumentFunction({
|
|
|
6045
6013
|
* @param params GetSwapQuoteParams - The parameters for the swap quote.
|
|
6046
6014
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
6047
6015
|
* @returns The swap quote details. Use the `signingPayload` field to get the transaction data for the wallet to sign.
|
|
6048
|
-
* @
|
|
6016
|
+
* @notInstrumented
|
|
6049
6017
|
*/
|
|
6050
6018
|
const getSwapQuote = async (params, client = getDefaultClient()) => {
|
|
6051
6019
|
const core = getCore(client);
|
|
@@ -6080,7 +6048,7 @@ const getSwapQuote = async (params, client = getDefaultClient()) => {
|
|
|
6080
6048
|
* @param params GetSwapStatusParams - The parameters for the swap status.
|
|
6081
6049
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
6082
6050
|
* @returns The swap status.
|
|
6083
|
-
* @
|
|
6051
|
+
* @notInstrumented
|
|
6084
6052
|
*/
|
|
6085
6053
|
const getSwapStatus = async (params, client = getDefaultClient()) => {
|
|
6086
6054
|
const core = getCore(client);
|
|
@@ -6146,28 +6114,6 @@ const __deleteUser_wrapped = instrumentFunction({
|
|
|
6146
6114
|
}
|
|
6147
6115
|
});
|
|
6148
6116
|
|
|
6149
|
-
//#endregion
|
|
6150
|
-
//#region src/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.ts
|
|
6151
|
-
/**
|
|
6152
|
-
* Checks if the user has completed all onboarding requirements.
|
|
6153
|
-
*
|
|
6154
|
-
* This function verifies whether a user has fulfilled all necessary requirements
|
|
6155
|
-
* including KYC fields (Know Your Customer information) and MFA setup
|
|
6156
|
-
* (Multi-Factor Authentication including recovery codes acknowledgment).
|
|
6157
|
-
*
|
|
6158
|
-
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
6159
|
-
* @returns True if onboarding is complete (no pending requirements), false if there are pending requirements.
|
|
6160
|
-
* @not-instrumented
|
|
6161
|
-
*/
|
|
6162
|
-
const isUserOnboardingComplete = (client = getDefaultClient()) => {
|
|
6163
|
-
const user = client.user;
|
|
6164
|
-
assertDefined(user, "User not logged in");
|
|
6165
|
-
const hasMissingKycFields = Boolean(user.missingFields?.length);
|
|
6166
|
-
const hasPendingMfaAuth = isUserMissingMfaAuth(client);
|
|
6167
|
-
const hasPendingRecoveryCodes = isPendingRecoveryCodesAcknowledgment(client);
|
|
6168
|
-
return !hasMissingKycFields && !hasPendingMfaAuth && !hasPendingRecoveryCodes;
|
|
6169
|
-
};
|
|
6170
|
-
|
|
6171
6117
|
//#endregion
|
|
6172
6118
|
//#region src/modules/walletBackup/googleDrive/constants.ts
|
|
6173
6119
|
/**
|
|
@@ -6198,7 +6144,7 @@ const ACCESS_DENIED_PHRASE = "Google Drive access denied";
|
|
|
6198
6144
|
*
|
|
6199
6145
|
* @param grantedScopes - Scopes the user has granted to their Google account.
|
|
6200
6146
|
* @returns The subset of required scopes that are still missing.
|
|
6201
|
-
* @
|
|
6147
|
+
* @notInstrumented
|
|
6202
6148
|
*/
|
|
6203
6149
|
const findMissingGoogleDriveBackupScopes = (grantedScopes) => GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES.filter((required) => !grantedScopes.includes(required));
|
|
6204
6150
|
|
|
@@ -6216,7 +6162,7 @@ const findMissingGoogleDriveBackupScopes = (grantedScopes) => GOOGLE_DRIVE_BACKU
|
|
|
6216
6162
|
* Google account (see `findGoogleOauthAccountId`).
|
|
6217
6163
|
* @param client - The Dynamic client instance.
|
|
6218
6164
|
* @returns The OAuth access token and granted scopes.
|
|
6219
|
-
* @
|
|
6165
|
+
* @notInstrumented
|
|
6220
6166
|
*/
|
|
6221
6167
|
const fetchGoogleDriveOauthAccess = async ({ oauthAccountId }, client) => {
|
|
6222
6168
|
const core = getCore(client);
|
|
@@ -6241,7 +6187,7 @@ const fetchGoogleDriveOauthAccess = async ({ oauthAccountId }, client) => {
|
|
|
6241
6187
|
* `client.user?.verifiedCredentials`.
|
|
6242
6188
|
* @returns The credential id of the linked Google oauth account, or
|
|
6243
6189
|
* `undefined`.
|
|
6244
|
-
* @
|
|
6190
|
+
* @notInstrumented
|
|
6245
6191
|
*/
|
|
6246
6192
|
const findGoogleOauthAccountId = (credentials) => credentials?.find((cred) => cred.format === JwtVerifiedCredentialFormatEnum.Oauth && cred.oauthProvider === ProviderEnum.Google)?.id;
|
|
6247
6193
|
|
|
@@ -6325,7 +6271,7 @@ const __getGoogleDriveBackupReadiness_wrapped = instrumentFunction({
|
|
|
6325
6271
|
*
|
|
6326
6272
|
* @param grantedScopes - Scopes the user has granted to their Google account.
|
|
6327
6273
|
* @returns `true` when every required scope is granted, otherwise `false`.
|
|
6328
|
-
* @
|
|
6274
|
+
* @notInstrumented
|
|
6329
6275
|
*/
|
|
6330
6276
|
const hasAllGoogleDriveBackupScopes = (grantedScopes) => findMissingGoogleDriveBackupScopes(grantedScopes).length === 0;
|
|
6331
6277
|
|
|
@@ -6342,7 +6288,7 @@ const hasAllGoogleDriveBackupScopes = (grantedScopes) => findMissingGoogleDriveB
|
|
|
6342
6288
|
* @param err - The unknown value to check.
|
|
6343
6289
|
* @returns `true` when `err` is an `Error` whose message indicates Google
|
|
6344
6290
|
* Drive access was denied.
|
|
6345
|
-
* @
|
|
6291
|
+
* @notInstrumented
|
|
6346
6292
|
*/
|
|
6347
6293
|
const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && err.message.includes(ACCESS_DENIED_PHRASE);
|
|
6348
6294
|
|
|
@@ -6350,57 +6296,57 @@ const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && er
|
|
|
6350
6296
|
//#region src/utils/isMobile/isMobile.ts
|
|
6351
6297
|
/**
|
|
6352
6298
|
* Sourced from http://detectmobilebrowsers.com/
|
|
6353
|
-
* @
|
|
6299
|
+
* @notInstrumented
|
|
6354
6300
|
*/
|
|
6355
6301
|
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;
|
|
6356
6302
|
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;
|
|
6357
|
-
/** @
|
|
6303
|
+
/** @notInstrumented */
|
|
6358
6304
|
const isMobile = (maxTouchPointsOverride) => {
|
|
6359
6305
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6360
6306
|
return userAgentRegex1.test(navigator.userAgent) || userAgentRegex2.test(navigator.userAgent.substring(0, 4)) || isIPad(maxTouchPointsOverride) || isIPhone();
|
|
6361
6307
|
};
|
|
6362
|
-
/** @
|
|
6308
|
+
/** @notInstrumented */
|
|
6363
6309
|
const isIPhone = () => typeof window === "undefined" || typeof navigator === "undefined" ? false : /iPhone|ios/.test(navigator.userAgent);
|
|
6364
6310
|
/**
|
|
6365
6311
|
* @param [optional] maxTouchPointsOverride - this is used for testing since
|
|
6366
6312
|
* it seems that JSDOM doesn't support maxTouchPoints, so it was impossible
|
|
6367
6313
|
* to mock it
|
|
6368
|
-
* @
|
|
6314
|
+
* @notInstrumented
|
|
6369
6315
|
*/
|
|
6370
6316
|
const isIPad = (maxTouchPointsOverride) => {
|
|
6371
6317
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6372
6318
|
const maxTouchPoints = maxTouchPointsOverride || navigator.maxTouchPoints;
|
|
6373
6319
|
return /iPad/.test(navigator.userAgent) || /Mac/.test(navigator.userAgent) && maxTouchPoints === 5;
|
|
6374
6320
|
};
|
|
6375
|
-
/** @
|
|
6321
|
+
/** @notInstrumented */
|
|
6376
6322
|
const isIOS = (maxTouchPointsOverride) => {
|
|
6377
6323
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6378
6324
|
return isIPhone() || isIPad(maxTouchPointsOverride);
|
|
6379
6325
|
};
|
|
6380
|
-
/** @
|
|
6326
|
+
/** @notInstrumented */
|
|
6381
6327
|
const isAndroid = () => isMobile() && !isIOS();
|
|
6382
|
-
/** @
|
|
6328
|
+
/** @notInstrumented */
|
|
6383
6329
|
const isSafariBrowser = () => {
|
|
6384
6330
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6385
6331
|
const { userAgent } = navigator;
|
|
6386
6332
|
return userAgent.includes("Safari") && !userAgent.includes("Chrome") && !userAgent.includes("Chromium");
|
|
6387
6333
|
};
|
|
6388
|
-
/** @
|
|
6334
|
+
/** @notInstrumented */
|
|
6389
6335
|
const isEdgeBrowser = () => {
|
|
6390
6336
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6391
6337
|
return /\bEdg\//.test(navigator.userAgent);
|
|
6392
6338
|
};
|
|
6393
|
-
/** @
|
|
6339
|
+
/** @notInstrumented */
|
|
6394
6340
|
const isOperaBrowser = () => {
|
|
6395
6341
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6396
6342
|
return /\b(OPR|Opera)\//.test(navigator.userAgent);
|
|
6397
6343
|
};
|
|
6398
|
-
/** @
|
|
6344
|
+
/** @notInstrumented */
|
|
6399
6345
|
const isFirefoxBrowser = () => {
|
|
6400
6346
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6401
6347
|
return /\bFirefox\//.test(navigator.userAgent);
|
|
6402
6348
|
};
|
|
6403
|
-
/** @
|
|
6349
|
+
/** @notInstrumented */
|
|
6404
6350
|
const isChromeBrowser = () => {
|
|
6405
6351
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6406
6352
|
return /\bChrome\//.test(navigator.userAgent) && !isEdgeBrowser() && !isOperaBrowser();
|
|
@@ -6434,7 +6380,7 @@ const isChromeBrowser = () => {
|
|
|
6434
6380
|
* @param params.installationUrls - The wallet option's `installationUrls`
|
|
6435
6381
|
* record (from `getWalletOptionsCatalogue`).
|
|
6436
6382
|
* @returns The install URL for the detected platform, or `undefined`.
|
|
6437
|
-
* @
|
|
6383
|
+
* @notInstrumented
|
|
6438
6384
|
*/
|
|
6439
6385
|
const getInstallationLinkForCurrentPlatform = ({ installationUrls }) => {
|
|
6440
6386
|
if (isIOS()) return installationUrls.ios;
|
|
@@ -6460,7 +6406,7 @@ const getInstallationLinkForCurrentPlatform = ({ installationUrls }) => {
|
|
|
6460
6406
|
* @param params.wallet - The wallet entry.
|
|
6461
6407
|
* @param params.walletKey - The wallet's key in `walletBook.wallets`.
|
|
6462
6408
|
* @returns The wallet option key.
|
|
6463
|
-
* @
|
|
6409
|
+
* @notInstrumented
|
|
6464
6410
|
*/
|
|
6465
6411
|
const resolveWalletBookWalletOptionKey = ({ wallet, walletKey }) => wallet.group ?? wallet.chainGroup ?? wallet.walletGroup ?? walletKey;
|
|
6466
6412
|
|
|
@@ -6475,7 +6421,7 @@ const resolveWalletBookWalletOptionKey = ({ wallet, walletKey }) => wallet.group
|
|
|
6475
6421
|
*
|
|
6476
6422
|
* @param params.wallet - The wallet book wallet entry.
|
|
6477
6423
|
* @returns The in-app browser URL, or `undefined` if neither field is set.
|
|
6478
|
-
* @
|
|
6424
|
+
* @notInstrumented
|
|
6479
6425
|
*/
|
|
6480
6426
|
const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wallet.mobile?.inAppBrowser ?? void 0;
|
|
6481
6427
|
|
|
@@ -6493,7 +6439,7 @@ const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wall
|
|
|
6493
6439
|
*
|
|
6494
6440
|
* @param params.walletBook - The fetched wallet book.
|
|
6495
6441
|
* @returns Tagged `inAppBrowser` options paired with their wallet option keys.
|
|
6496
|
-
* @
|
|
6442
|
+
* @notInstrumented
|
|
6497
6443
|
*/
|
|
6498
6444
|
const buildInAppBrowserOptions = ({ walletBook }) => {
|
|
6499
6445
|
const result = [];
|
|
@@ -6540,7 +6486,7 @@ const EDGE_ADDONS_URL_TEMPLATE = "https://microsoftedge.microsoft.com/addons/det
|
|
|
6540
6486
|
*
|
|
6541
6487
|
* @param params.wallet - The wallet book entry.
|
|
6542
6488
|
* @returns The URL bag, omitting fields the wallet does not provide.
|
|
6543
|
-
* @
|
|
6489
|
+
* @notInstrumented
|
|
6544
6490
|
*/
|
|
6545
6491
|
const buildInstallationUrls = ({ wallet }) => {
|
|
6546
6492
|
const androidId = wallet.mobile?.androidId;
|
|
@@ -6584,7 +6530,7 @@ const hasAnyInstallationUrl = ({ urls }) => Object.values(urls).some(Boolean);
|
|
|
6584
6530
|
*
|
|
6585
6531
|
* @param params.walletBook - The fetched wallet book.
|
|
6586
6532
|
* @returns A map from wallet option key to its install URL bag.
|
|
6587
|
-
* @
|
|
6533
|
+
* @notInstrumented
|
|
6588
6534
|
*/
|
|
6589
6535
|
const buildInstallationUrlsByWalletOptionKey = ({ walletBook }) => {
|
|
6590
6536
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -6615,7 +6561,7 @@ const buildInstallationUrlsByWalletOptionKey = ({ walletBook }) => {
|
|
|
6615
6561
|
*
|
|
6616
6562
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
6617
6563
|
* @returns True when the wallet has a native or universal mobile link.
|
|
6618
|
-
* @
|
|
6564
|
+
* @notInstrumented
|
|
6619
6565
|
*/
|
|
6620
6566
|
const hasUsableDeeplink = ({ wallet }) => Boolean(wallet.mobile?.native || wallet.mobile?.universal);
|
|
6621
6567
|
|
|
@@ -6654,7 +6600,7 @@ const METAMASK_SDK_URI_SUPPORTED_CHAINS = ["EVM", "SOL"];
|
|
|
6654
6600
|
*
|
|
6655
6601
|
* @param params.walletBook - The fetched wallet book.
|
|
6656
6602
|
* @returns Tagged `metamaskSdkUri` options for MetaMask if eligible, otherwise an empty array.
|
|
6657
|
-
* @
|
|
6603
|
+
* @notInstrumented
|
|
6658
6604
|
*/
|
|
6659
6605
|
const buildMetaMaskSdkUriOptions = ({ walletBook }) => {
|
|
6660
6606
|
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) {
|
|
@@ -6701,7 +6647,7 @@ const buildMetaMaskSdkUriOptions = ({ walletBook }) => {
|
|
|
6701
6647
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
6702
6648
|
* @param [params.walletKey] - The wallet key identifier (used as last-resort fallback).
|
|
6703
6649
|
* @returns Ordered, deduped array of Chains.
|
|
6704
|
-
* @
|
|
6650
|
+
* @notInstrumented
|
|
6705
6651
|
*/
|
|
6706
6652
|
const getChainsFromWalletSchema = ({ wallet, walletKey }) => {
|
|
6707
6653
|
const chains = /* @__PURE__ */ new Set();
|
|
@@ -6752,7 +6698,7 @@ const WALLETCONNECT_SUPPORTED_CHAINS = new Set(["EVM", "SOL"]);
|
|
|
6752
6698
|
*
|
|
6753
6699
|
* @param params.walletBook - The fetched wallet book.
|
|
6754
6700
|
* @returns Tagged `walletConnect` options paired with their wallet option keys.
|
|
6755
|
-
* @
|
|
6701
|
+
* @notInstrumented
|
|
6756
6702
|
*/
|
|
6757
6703
|
const buildWalletConnectOptions = ({ walletBook }) => {
|
|
6758
6704
|
const result = [];
|
|
@@ -6819,7 +6765,7 @@ const buildWalletConnectOptions = ({ walletBook }) => {
|
|
|
6819
6765
|
* @param params.walletBook - The fetched wallet book.
|
|
6820
6766
|
* @param params.walletOptionKey - The wallet option key.
|
|
6821
6767
|
* @returns The constructed wallet option.
|
|
6822
|
-
* @
|
|
6768
|
+
* @notInstrumented
|
|
6823
6769
|
*/
|
|
6824
6770
|
const buildWalletOption = ({ connectionOptions, displayOverride, installationUrls, walletBook, walletOptionKey }) => {
|
|
6825
6771
|
const group = walletBook.groups[walletOptionKey];
|
|
@@ -6857,7 +6803,7 @@ const buildWalletOption = ({ connectionOptions, displayOverride, installationUrl
|
|
|
6857
6803
|
*
|
|
6858
6804
|
* @param params.walletProvider - The wallet provider to test.
|
|
6859
6805
|
* @returns True when the provider exposes a `connect` method.
|
|
6860
|
-
* @
|
|
6806
|
+
* @notInstrumented
|
|
6861
6807
|
*/
|
|
6862
6808
|
const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletProvider.connect);
|
|
6863
6809
|
|
|
@@ -6884,7 +6830,7 @@ const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletPro
|
|
|
6884
6830
|
* @param params.entry - The registry entry to classify.
|
|
6885
6831
|
* @returns The matching source, or `undefined` if this entry should not
|
|
6886
6832
|
* surface a `withWalletProvider` option.
|
|
6887
|
-
* @
|
|
6833
|
+
* @notInstrumented
|
|
6888
6834
|
*/
|
|
6889
6835
|
const classifyWithWalletProviderSource = ({ entry }) => {
|
|
6890
6836
|
const { priority } = entry;
|
|
@@ -6905,7 +6851,7 @@ const classifyWithWalletProviderSource = ({ entry }) => {
|
|
|
6905
6851
|
* @param params.chain - The chain whose suffix should be stripped.
|
|
6906
6852
|
* @param params.normalizedName - The normalized wallet-name-with-chain string.
|
|
6907
6853
|
* @returns The name with the chain suffix removed, or the input unchanged.
|
|
6908
|
-
* @
|
|
6854
|
+
* @notInstrumented
|
|
6909
6855
|
*/
|
|
6910
6856
|
const stripChainSuffix = ({ chain, normalizedName }) => {
|
|
6911
6857
|
const suffix = chain.toLowerCase();
|
|
@@ -6934,7 +6880,7 @@ const stripChainSuffix = ({ chain, normalizedName }) => {
|
|
|
6934
6880
|
*
|
|
6935
6881
|
* @param displayName - The provider's `metadata.displayName`.
|
|
6936
6882
|
* @returns The normalized wallet option key (lowercased, no whitespace).
|
|
6937
|
-
* @
|
|
6883
|
+
* @notInstrumented
|
|
6938
6884
|
*/
|
|
6939
6885
|
const normalizeWalletDisplayName = (displayName) => displayName.toLowerCase().replace(/\s+/g, "");
|
|
6940
6886
|
|
|
@@ -6952,7 +6898,7 @@ const normalize = (value) => value === void 0 ? void 0 : value.toLowerCase().rep
|
|
|
6952
6898
|
* @param params.candidate - The lowercased, chain-suffix-stripped candidate.
|
|
6953
6899
|
* @param params.walletBook - The fetched wallet book.
|
|
6954
6900
|
* @returns The matching wallet book wallet key, or `undefined`.
|
|
6955
|
-
* @
|
|
6901
|
+
* @notInstrumented
|
|
6956
6902
|
*/
|
|
6957
6903
|
const findByNameMatch = ({ candidate, walletBook }) => {
|
|
6958
6904
|
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) if (normalize(wallet.name) === candidate || normalize(wallet.shortName) === candidate) return walletKey;
|
|
@@ -6970,7 +6916,7 @@ const findByNameMatch = ({ candidate, walletBook }) => {
|
|
|
6970
6916
|
* @param params.fallback - Wallet key to return if no group field is set.
|
|
6971
6917
|
* @param params.wallet - The wallet book wallet entry.
|
|
6972
6918
|
* @returns The resolved wallet option key.
|
|
6973
|
-
* @
|
|
6919
|
+
* @notInstrumented
|
|
6974
6920
|
*/
|
|
6975
6921
|
const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.chainGroup ?? wallet.walletGroup ?? fallback;
|
|
6976
6922
|
|
|
@@ -7007,7 +6953,7 @@ const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.
|
|
|
7007
6953
|
* @param params.walletBook - The fetched wallet book.
|
|
7008
6954
|
* @param params.walletProvider - The registered wallet provider.
|
|
7009
6955
|
* @returns The wallet option key for this provider.
|
|
7010
|
-
* @
|
|
6956
|
+
* @notInstrumented
|
|
7011
6957
|
*/
|
|
7012
6958
|
const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }) => {
|
|
7013
6959
|
const { normalizedWalletNameWithChain } = splitWalletProviderKey(walletProvider.key);
|
|
@@ -7055,7 +7001,7 @@ const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }
|
|
|
7055
7001
|
* @param params.walletBook - The fetched wallet book.
|
|
7056
7002
|
* @param client - The Dynamic client (used for logging unclassifiable entries).
|
|
7057
7003
|
* @returns An array of tagged options, in input order.
|
|
7058
|
-
* @
|
|
7004
|
+
* @notInstrumented
|
|
7059
7005
|
*/
|
|
7060
7006
|
const buildWithWalletProviderOptions = ({ entries, walletBook }, client) => {
|
|
7061
7007
|
const result = [];
|
|
@@ -7127,7 +7073,7 @@ const EXCLUDED_WALLET_OPTION_KEYS = new Set(["coinbase", "coinbasewallet"]);
|
|
|
7127
7073
|
* @param params.options - The tagged options to group.
|
|
7128
7074
|
* @returns A map from wallet option key to its grouped option bucket,
|
|
7129
7075
|
* iterable in first-seen order.
|
|
7130
|
-
* @
|
|
7076
|
+
* @notInstrumented
|
|
7131
7077
|
*/
|
|
7132
7078
|
const groupOptionsByWalletOption = ({ options }) => {
|
|
7133
7079
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -7167,7 +7113,7 @@ const CONNECTION_OPTION_PRIORITY = {
|
|
|
7167
7113
|
*
|
|
7168
7114
|
* @param params.option - The connection option to inspect.
|
|
7169
7115
|
* @returns The numeric priority — lower is better.
|
|
7170
|
-
* @
|
|
7116
|
+
* @notInstrumented
|
|
7171
7117
|
*/
|
|
7172
7118
|
const getConnectionOptionPriority = ({ option }) => CONNECTION_OPTION_PRIORITY[option.type];
|
|
7173
7119
|
|
|
@@ -7184,7 +7130,7 @@ const getConnectionOptionPriority = ({ option }) => CONNECTION_OPTION_PRIORITY[o
|
|
|
7184
7130
|
*
|
|
7185
7131
|
* @param params.options - The options to sort.
|
|
7186
7132
|
* @returns A new array in priority order.
|
|
7187
|
-
* @
|
|
7133
|
+
* @notInstrumented
|
|
7188
7134
|
*/
|
|
7189
7135
|
const sortConnectionOptions = ({ options }) => [...options].sort((a, b) => {
|
|
7190
7136
|
const priorityDelta = getConnectionOptionPriority({ option: a }) - getConnectionOptionPriority({ option: b });
|
|
@@ -7232,7 +7178,7 @@ const PRIORITY_WALLET_KEYS = [
|
|
|
7232
7178
|
*
|
|
7233
7179
|
* @param params.walletOption - The wallet option to inspect.
|
|
7234
7180
|
* @returns Numeric priority index — lower is better.
|
|
7235
|
-
* @
|
|
7181
|
+
* @notInstrumented
|
|
7236
7182
|
*/
|
|
7237
7183
|
const getPriorityIndex = ({ walletOption }) => {
|
|
7238
7184
|
const index = PRIORITY_WALLET_KEYS.indexOf(walletOption.key);
|
|
@@ -7249,7 +7195,7 @@ const getPriorityIndex = ({ walletOption }) => {
|
|
|
7249
7195
|
* @param params.a - First wallet option.
|
|
7250
7196
|
* @param params.b - Second wallet option.
|
|
7251
7197
|
* @returns Negative when `a` ranks first, positive when `b` ranks first.
|
|
7252
|
-
* @
|
|
7198
|
+
* @notInstrumented
|
|
7253
7199
|
*/
|
|
7254
7200
|
const compareByRelevance = ({ a, b }) => {
|
|
7255
7201
|
const aIndex = getPriorityIndex({ walletOption: a });
|
|
@@ -7269,7 +7215,7 @@ const compareByRelevance = ({ a, b }) => {
|
|
|
7269
7215
|
*
|
|
7270
7216
|
* @param params.walletOption - The wallet option to inspect.
|
|
7271
7217
|
* @returns True when `connectionOptions` is non-empty.
|
|
7272
|
-
* @
|
|
7218
|
+
* @notInstrumented
|
|
7273
7219
|
*/
|
|
7274
7220
|
const hasAnyConnectionOption = ({ walletOption }) => walletOption.connectionOptions.length > 0;
|
|
7275
7221
|
|
|
@@ -7284,7 +7230,7 @@ const hasAnyConnectionOption = ({ walletOption }) => walletOption.connectionOpti
|
|
|
7284
7230
|
*
|
|
7285
7231
|
* @param params.walletOption - The wallet option to inspect.
|
|
7286
7232
|
* @returns True when an installed provider is available.
|
|
7287
|
-
* @
|
|
7233
|
+
* @notInstrumented
|
|
7288
7234
|
*/
|
|
7289
7235
|
const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOptions[0]?.type === "withWalletProvider";
|
|
7290
7236
|
|
|
@@ -7314,7 +7260,7 @@ const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOption
|
|
|
7314
7260
|
* @param params.walletOptions - The wallet options to sort.
|
|
7315
7261
|
* @param params.ordering - The requested ordering.
|
|
7316
7262
|
* @returns A new array in the requested order.
|
|
7317
|
-
* @
|
|
7263
|
+
* @notInstrumented
|
|
7318
7264
|
*/
|
|
7319
7265
|
const sortWalletOptions = ({ walletOptions, ordering }) => {
|
|
7320
7266
|
if (ordering === "alphabetical") return [...walletOptions].sort((a, b) => a.name.localeCompare(b.name, void 0, { sensitivity: "base" }));
|
|
@@ -7363,7 +7309,7 @@ const EMPTY_WALLET_BOOK = {
|
|
|
7363
7309
|
* @param [params] - Inclusion flag + ordering preference + exclusions.
|
|
7364
7310
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7365
7311
|
* @returns A promise that resolves to the wallet options catalogue.
|
|
7366
|
-
* @
|
|
7312
|
+
* @notInstrumented
|
|
7367
7313
|
*/
|
|
7368
7314
|
const getWalletOptionsCatalogue = async (params = {}, client = getDefaultClient()) => {
|
|
7369
7315
|
const includeMobileOptions = params.includeMobileOptions ?? false;
|
|
@@ -7420,7 +7366,7 @@ const getWalletOptionsCatalogue = async (params = {}, client = getDefaultClient(
|
|
|
7420
7366
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7421
7367
|
* @returns A promise that resolves if the wallet is available for signing.
|
|
7422
7368
|
* @throws WalletAccountNotSelectedError If the wallet account is not currently selected.
|
|
7423
|
-
* @
|
|
7369
|
+
* @notInstrumented
|
|
7424
7370
|
*/
|
|
7425
7371
|
const assertWalletAccountSigningAvailability = async ({ walletAccount }, client = getDefaultClient()) => {
|
|
7426
7372
|
const { addresses } = await getWalletProviderFromWalletAccount({ walletAccount }, client).getConnectedAddresses();
|
|
@@ -7469,7 +7415,7 @@ const __confirmTransaction_wrapped = instrumentFunction({
|
|
|
7469
7415
|
|
|
7470
7416
|
//#endregion
|
|
7471
7417
|
//#region src/modules/wallets/utils/getAddressesWithTypesFromConnectionResult/getAddressesWithTypesFromConnectionResult.ts
|
|
7472
|
-
/** @
|
|
7418
|
+
/** @notInstrumented */
|
|
7473
7419
|
const getAddressesWithTypesFromConnectionResult = (connectionResult) => {
|
|
7474
7420
|
return connectionResult.addresses.filter((address) => !!address.address && !!address.type);
|
|
7475
7421
|
};
|
|
@@ -7544,13 +7490,13 @@ const __connectWithWalletProvider_wrapped = instrumentFunction({
|
|
|
7544
7490
|
* @param params.hardwareWalletVendor - The hardware wallet vendor that produced the signature.
|
|
7545
7491
|
* @param params.signature - The raw signature string to wrap.
|
|
7546
7492
|
* @returns The signature wrapped in `{ signedTransaction: { data } }` JSON format.
|
|
7547
|
-
* @
|
|
7493
|
+
* @notInstrumented
|
|
7548
7494
|
*/
|
|
7549
7495
|
const formatSignatureForHardwareWallet = ({ signature, hardwareWalletVendor: _ }) => JSON.stringify({ signedTransaction: { data: signature } });
|
|
7550
7496
|
|
|
7551
7497
|
//#endregion
|
|
7552
7498
|
//#region src/modules/wallets/utils/getChainIdForAccountVerification/getChainIdForAccountVerification.ts
|
|
7553
|
-
/** @
|
|
7499
|
+
/** @notInstrumented */
|
|
7554
7500
|
const getChainIdForAccountVerification = async ({ walletProvider }) => {
|
|
7555
7501
|
if ([
|
|
7556
7502
|
"BTC",
|
|
@@ -7564,7 +7510,7 @@ const getChainIdForAccountVerification = async ({ walletProvider }) => {
|
|
|
7564
7510
|
|
|
7565
7511
|
//#endregion
|
|
7566
7512
|
//#region src/modules/wallets/utils/getSignInMessage/getSignInMessage.ts
|
|
7567
|
-
/** @
|
|
7513
|
+
/** @notInstrumented */
|
|
7568
7514
|
const getSignInMessage = async ({ nonce: nonceOverride, walletAccount }, client) => {
|
|
7569
7515
|
const core = getCore(client);
|
|
7570
7516
|
const { appUniversalLink } = getAppMetadata(client);
|
|
@@ -7641,7 +7587,7 @@ const __proveWalletAccountOwnership_wrapped = instrumentFunction({
|
|
|
7641
7587
|
|
|
7642
7588
|
//#endregion
|
|
7643
7589
|
//#region src/modules/wallets/utils/isSameAddress/isSameAddress.ts
|
|
7644
|
-
/** @
|
|
7590
|
+
/** @notInstrumented */
|
|
7645
7591
|
const isSameAddress = ({ chain, left, right }) => normalizeAddress({
|
|
7646
7592
|
address: left,
|
|
7647
7593
|
chain
|
|
@@ -7652,7 +7598,7 @@ const isSameAddress = ({ chain, left, right }) => normalizeAddress({
|
|
|
7652
7598
|
|
|
7653
7599
|
//#endregion
|
|
7654
7600
|
//#region src/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.ts
|
|
7655
|
-
/** @
|
|
7601
|
+
/** @notInstrumented */
|
|
7656
7602
|
const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfer, requestedScopes }, client) => {
|
|
7657
7603
|
if (walletAccount.verifiedCredentialId) throw new WalletAccountAlreadyVerifiedError(walletAccount.address);
|
|
7658
7604
|
const walletProvider = getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7738,7 +7684,7 @@ const __verifyWalletAccount_wrapped = instrumentFunction({
|
|
|
7738
7684
|
//#region src/modules/wallets/walletProvider/isDeeplinkWalletProvider/isDeeplinkWalletProvider.ts
|
|
7739
7685
|
/**
|
|
7740
7686
|
* Returns true if the wallet provider uses the deep link protocol (e.g. Phantom redirect on mobile).
|
|
7741
|
-
* @
|
|
7687
|
+
* @notInstrumented
|
|
7742
7688
|
*/
|
|
7743
7689
|
const isDeeplinkWalletProvider = ({ walletProvider }) => walletProvider.walletProviderType === WalletProviderEnum.DeepLink;
|
|
7744
7690
|
|
|
@@ -7805,7 +7751,7 @@ const __connectAndVerifyWithWalletProvider_wrapped = instrumentFunction({
|
|
|
7805
7751
|
*
|
|
7806
7752
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7807
7753
|
* @returns An array of wallet provider data including chain, keys, and metadata.
|
|
7808
|
-
* @
|
|
7754
|
+
* @notInstrumented
|
|
7809
7755
|
* @hook Exposed as a hook so consumers get the reactive list of available wallet providers, updated when wallet providers change.
|
|
7810
7756
|
*/
|
|
7811
7757
|
const getAvailableWalletProvidersData = (client = getDefaultClient()) => {
|
|
@@ -7829,7 +7775,7 @@ const getAvailableWalletProvidersData = (client = getDefaultClient()) => {
|
|
|
7829
7775
|
* @param params.walletProviderKey - The unique key of the wallet provider to query.
|
|
7830
7776
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7831
7777
|
* @returns An array of connected wallet addresses.
|
|
7832
|
-
* @
|
|
7778
|
+
* @notInstrumented
|
|
7833
7779
|
*/
|
|
7834
7780
|
const getConnectedAddresses = ({ walletProviderKey }, client = getDefaultClient()) => {
|
|
7835
7781
|
return getWalletProviderByKey({ walletProviderKey }, client).getConnectedAddresses();
|
|
@@ -7837,7 +7783,7 @@ const getConnectedAddresses = ({ walletProviderKey }, client = getDefaultClient(
|
|
|
7837
7783
|
|
|
7838
7784
|
//#endregion
|
|
7839
7785
|
//#region src/modules/wallets/getOwnerWalletAccountForSmartWalletAccount/getOwnerWalletAccountForSmartWalletAccount.ts
|
|
7840
|
-
/** @
|
|
7786
|
+
/** @notInstrumented */
|
|
7841
7787
|
const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, client = getDefaultClient()) => {
|
|
7842
7788
|
const smartWalletVerifiedCredential = getVerifiedCredentialForWalletAccount({ walletAccount: smartWalletAccount }, client);
|
|
7843
7789
|
assertDefined(smartWalletVerifiedCredential?.signerRefId, "Invalid smart wallet account");
|
|
@@ -7846,7 +7792,7 @@ const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, clie
|
|
|
7846
7792
|
|
|
7847
7793
|
//#endregion
|
|
7848
7794
|
//#region src/modules/wallets/getWalletAccountAddressByType/getWalletAccountAddressByType.ts
|
|
7849
|
-
/** @
|
|
7795
|
+
/** @notInstrumented */
|
|
7850
7796
|
const getWalletAccountAddressByType = ({ type, walletAccount }) => {
|
|
7851
7797
|
return walletAccount.addressesWithTypes?.find((address) => address.type === type)?.address;
|
|
7852
7798
|
};
|
|
@@ -7859,7 +7805,7 @@ const getWalletAccountAddressByType = ({ type, walletAccount }) => {
|
|
|
7859
7805
|
* @param params.walletProviderKey - The key of the wallet provider to retrieve data for.
|
|
7860
7806
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7861
7807
|
* @returns The data for the wallet provider.
|
|
7862
|
-
* @
|
|
7808
|
+
* @notInstrumented
|
|
7863
7809
|
*/
|
|
7864
7810
|
const getWalletProviderDataByKey = ({ walletProviderKey }, client = getDefaultClient()) => {
|
|
7865
7811
|
const { chain, groupKey, key, metadata, walletProviderType } = getWalletProviderByKey({ walletProviderKey }, client);
|
|
@@ -7881,7 +7827,7 @@ const getWalletProviderDataByKey = ({ walletProviderKey }, client = getDefaultCl
|
|
|
7881
7827
|
* @param params.hardwareWalletVendor - The hardware wallet vendor to check for.
|
|
7882
7828
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7883
7829
|
* @returns Whether the wallet provider supports the specified hardware wallet vendor.
|
|
7884
|
-
* @
|
|
7830
|
+
* @notInstrumented
|
|
7885
7831
|
*/
|
|
7886
7832
|
const canConnectWithHardwareWallet = ({ walletProviderKey, hardwareWalletVendor }, client = getDefaultClient()) => {
|
|
7887
7833
|
return getWalletProviderByKey({ walletProviderKey }, client).metadata.supportedHardwareWalletVendors?.includes(hardwareWalletVendor) ?? false;
|
|
@@ -7894,7 +7840,7 @@ const canConnectWithHardwareWallet = ({ walletProviderKey, hardwareWalletVendor
|
|
|
7894
7840
|
*
|
|
7895
7841
|
* @param params.walletAccount - The wallet account to check.
|
|
7896
7842
|
* @returns Whether the wallet account has a hardware wallet vendor set.
|
|
7897
|
-
* @
|
|
7843
|
+
* @notInstrumented
|
|
7898
7844
|
*/
|
|
7899
7845
|
const isHardwareWalletAccount = ({ walletAccount }) => walletAccount.hardwareWalletVendor !== void 0;
|
|
7900
7846
|
|
|
@@ -7910,7 +7856,7 @@ const isHardwareWalletAccount = ({ walletAccount }) => walletAccount.hardwareWal
|
|
|
7910
7856
|
*
|
|
7911
7857
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7912
7858
|
* @returns True if the session has at least one wallet account, false otherwise.
|
|
7913
|
-
* @
|
|
7859
|
+
* @notInstrumented
|
|
7914
7860
|
*/
|
|
7915
7861
|
const isAnyWalletAccountConnected = (client = getDefaultClient()) => getWalletAccounts(client).length > 0;
|
|
7916
7862
|
|
|
@@ -7921,7 +7867,7 @@ const isAnyWalletAccountConnected = (client = getDefaultClient()) => getWalletAc
|
|
|
7921
7867
|
*
|
|
7922
7868
|
* @param walletAccount - The wallet account to check.
|
|
7923
7869
|
* @returns True if the wallet account has been verified, false otherwise.
|
|
7924
|
-
* @
|
|
7870
|
+
* @notInstrumented
|
|
7925
7871
|
*/
|
|
7926
7872
|
const isWalletAccountVerified = ({ walletAccount }) => {
|
|
7927
7873
|
return walletAccount.verifiedCredentialId !== null;
|
|
@@ -7976,7 +7922,7 @@ const __addNetwork_wrapped = instrumentFunction({
|
|
|
7976
7922
|
* @param params.walletAccount - The wallet account to get network data for.
|
|
7977
7923
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7978
7924
|
* @returns A promise that resolves to the network data, or undefined if not found.
|
|
7979
|
-
* @
|
|
7925
|
+
* @notInstrumented
|
|
7980
7926
|
*/
|
|
7981
7927
|
const getActiveNetworkData = async ({ walletAccount }, client = getDefaultClient()) => {
|
|
7982
7928
|
const walletProvider = getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7992,7 +7938,7 @@ const getActiveNetworkData = async ({ walletAccount }, client = getDefaultClient
|
|
|
7992
7938
|
* @param params.walletAccount - The wallet account to get the network ID for.
|
|
7993
7939
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7994
7940
|
* @returns A promise that resolves to the active network ID for the wallet account.
|
|
7995
|
-
* @
|
|
7941
|
+
* @notInstrumented
|
|
7996
7942
|
*/
|
|
7997
7943
|
const getActiveNetworkId = ({ walletAccount }, client = getDefaultClient()) => {
|
|
7998
7944
|
return getWalletProviderFromWalletAccount({ walletAccount }, client).getActiveNetworkId();
|
|
@@ -8013,7 +7959,7 @@ const getActiveNetworkId = ({ walletAccount }, client = getDefaultClient()) => {
|
|
|
8013
7959
|
* @param params.walletAccount - The wallet account to get the balance for.
|
|
8014
7960
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8015
7961
|
* @returns A promise that resolves to an object containing the balance as a string or null.
|
|
8016
|
-
* @
|
|
7962
|
+
* @notInstrumented
|
|
8017
7963
|
*/
|
|
8018
7964
|
const getNativeBalance = async ({ walletAccount }, client = getDefaultClient()) => {
|
|
8019
7965
|
const walletProvider = getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -8032,7 +7978,7 @@ const getNativeBalance = async ({ walletAccount }, client = getDefaultClient())
|
|
|
8032
7978
|
* with the token-balance fetchers (`getTokenBalances` /
|
|
8033
7979
|
* `getMultichainTokenBalances`).
|
|
8034
7980
|
*
|
|
8035
|
-
* @
|
|
7981
|
+
* @notInstrumented
|
|
8036
7982
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
8037
7983
|
*/
|
|
8038
7984
|
const getBalance = (params, client = getDefaultClient()) => getNativeBalance(params, client);
|
|
@@ -8050,7 +7996,7 @@ const getBalance = (params, client = getDefaultClient()) => getNativeBalance(par
|
|
|
8050
7996
|
* @param params.networkId - The specific network ID within the chain.
|
|
8051
7997
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8052
7998
|
* @returns A promise that resolves to an object containing the balance as a string or null.
|
|
8053
|
-
* @
|
|
7999
|
+
* @notInstrumented
|
|
8054
8000
|
*/
|
|
8055
8001
|
const getBalanceForAddress = async ({ address, chain, networkId }, client = getDefaultClient()) => {
|
|
8056
8002
|
const networkProvider = getNetworkProviderFromNetworkId({
|
|
@@ -8077,7 +8023,7 @@ const getBalanceForAddress = async ({ address, chain, networkId }, client = getD
|
|
|
8077
8023
|
* @param [params.tokenAddress] - Optional token contract address (EVM) or SPL mint address (Solana) to filter transaction history by token.
|
|
8078
8024
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8079
8025
|
* @returns A promise that resolves to the transaction history along with nextOffset for the given wallet address and chain.
|
|
8080
|
-
* @
|
|
8026
|
+
* @notInstrumented
|
|
8081
8027
|
*/
|
|
8082
8028
|
const getTransactionHistory = async (params, client = getDefaultClient()) => {
|
|
8083
8029
|
const core = getCore(client);
|
|
@@ -8103,7 +8049,7 @@ const getTransactionHistory = async (params, client = getDefaultClient()) => {
|
|
|
8103
8049
|
* @param params.walletAccount - The wallet account to check network switching support for.
|
|
8104
8050
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8105
8051
|
* @returns True if programmatic network switching is available, false otherwise.
|
|
8106
|
-
* @
|
|
8052
|
+
* @notInstrumented
|
|
8107
8053
|
*/
|
|
8108
8054
|
const isProgrammaticNetworkSwitchAvailable = ({ walletAccount }, client = getDefaultClient()) => {
|
|
8109
8055
|
return getWalletProviderByKey({ walletProviderKey: walletAccount.walletProviderKey }, client).switchActiveNetwork !== void 0;
|
|
@@ -8185,7 +8131,7 @@ const __selectPrimaryWalletAccount_wrapped = instrumentFunction({
|
|
|
8185
8131
|
*
|
|
8186
8132
|
* The wallet account is not removed from the user's profile or from dynamic's state,
|
|
8187
8133
|
* it is only responsible for terminating the connection with the wallet provider.
|
|
8188
|
-
* @
|
|
8134
|
+
* @notInstrumented
|
|
8189
8135
|
*/
|
|
8190
8136
|
const disconnectWalletAccount = async ({ walletAccount }, client) => {
|
|
8191
8137
|
try {
|
|
@@ -8360,7 +8306,7 @@ const __transferWalletAccount_wrapped = instrumentFunction({
|
|
|
8360
8306
|
* @param params.chain - The blockchain the wallet belongs to.
|
|
8361
8307
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8362
8308
|
* @returns The matching wallet account, or undefined if not found.
|
|
8363
|
-
* @
|
|
8309
|
+
* @notInstrumented
|
|
8364
8310
|
*/
|
|
8365
8311
|
const getWalletAccountFromAddress = ({ address, chain }, client = getDefaultClient()) => {
|
|
8366
8312
|
return getWalletAccounts(client).find((walletAccount) => walletAccount.address === address && walletAccount.chain === chain);
|
|
@@ -8377,7 +8323,7 @@ const getWalletAccountFromAddress = ({ address, chain }, client = getDefaultClie
|
|
|
8377
8323
|
* @param params.event - The event name to remove the listener from.
|
|
8378
8324
|
* @param params.walletProviderKey - The unique key identifying the wallet provider to remove the listener from.
|
|
8379
8325
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8380
|
-
* @
|
|
8326
|
+
* @notInstrumented
|
|
8381
8327
|
*/
|
|
8382
8328
|
const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client = getDefaultClient()) => {
|
|
8383
8329
|
const walletProvider = getWalletProviderByKey({ walletProviderKey }, client);
|
|
@@ -8395,7 +8341,7 @@ const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client =
|
|
|
8395
8341
|
* @param params.walletProviderKey - The unique key identifying the wallet provider to listen to.
|
|
8396
8342
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8397
8343
|
* @returns A function that can be called to remove the listener.
|
|
8398
|
-
* @
|
|
8344
|
+
* @notInstrumented
|
|
8399
8345
|
* @hook Event listeners are error-prone to wire up by hand with useEffect.
|
|
8400
8346
|
*/
|
|
8401
8347
|
const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client = getDefaultClient()) => {
|
|
@@ -8429,7 +8375,7 @@ const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client =
|
|
|
8429
8375
|
* appendConnectionUriToDeeplink({ deeplinkUrl: 'walletapp://wc?param=value', connectionUri: 'wc:123-456' })
|
|
8430
8376
|
* // Returns: 'walletapp://wc?param=value&uri=wc%3A123-456'
|
|
8431
8377
|
* ```
|
|
8432
|
-
* @
|
|
8378
|
+
* @notInstrumented
|
|
8433
8379
|
*/
|
|
8434
8380
|
const appendConnectionUriToDeeplink = ({ connectionUri, deeplinkUrl }) => {
|
|
8435
8381
|
const url = new URL(deeplinkUrl);
|
|
@@ -8500,7 +8446,7 @@ const osMatchers = [
|
|
|
8500
8446
|
pattern: /CrOS/
|
|
8501
8447
|
}
|
|
8502
8448
|
];
|
|
8503
|
-
/** @
|
|
8449
|
+
/** @notInstrumented */
|
|
8504
8450
|
const parseUserAgent = ({ userAgent }) => {
|
|
8505
8451
|
if (!userAgent?.trim()) return null;
|
|
8506
8452
|
const browser = browserMatchers.find(({ pattern }) => pattern.test(userAgent))?.name;
|
|
@@ -8518,5 +8464,5 @@ const parseUserAgent = ({ userAgent }) => {
|
|
|
8518
8464
|
assertPackageVersion(name, version);
|
|
8519
8465
|
|
|
8520
8466
|
//#endregion
|
|
8521
|
-
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, 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_wrapped as 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 };
|
|
8467
|
+
export { BaseError, CheckoutSessionTokenMissingError, ClientAlreadyInitializedError, DeeplinkConnectAndVerifyUnsupportedError, FeeEstimationFailedError, FlowSessionTokenMissingError, GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES, InvalidDeviceRegistrationRedirectError, InvalidExternalAuthError, InvalidParamError, InvalidRedirectStorageStateError, InvalidSocialCallbackOriginError, LinkCredentialError, MFAAction, MfaInvalidOtpError, MfaRateLimitedError, MissingRedirectStorageStateError, MissingSocialUrlParamError, MissingUserVerificationError, NetworkAddingUnavailableError, NetworkNotAddedError, NetworkSwitchingUnavailableError, NoAddressFoundError, NoNetworkProvidersError, NoPasskeyCredentialsFoundError, NoSmartWalletAccountSignerFoundError, NoWebAuthNSupportError, NotWaasWalletAccountError, SandboxMaximumThresholdReachedError, SimulationFailedError, TokenSwapError, UnauthorizedError, UnavailableInServerSideError, UnrecognizedNetworkError, UserCancelledSocialPopUpError, UserNotAuthenticatedError, UserRejectedError, WaasOnboardingIncompleteError, WalletAccountAlreadyVerifiedError, WalletAccountNotSelectedError, WalletAlreadyLinkedToAnotherUserError, WalletProviderMethodUnavailableError, __acknowledgeRecoveryCodes_wrapped as acknowledgeRecoveryCodes, addCoinbaseOnrampOrderEventListener, __addNetwork_wrapped as addNetwork, appendConnectionUriToDeeplink, assertWalletAccountSigningAvailability, assertWalletProviderMethodDefined, __attachCheckoutTransactionSource_wrapped as attachCheckoutTransactionSource, __attachFlowSource_wrapped as attachFlowSource, authenticateMfaRecoveryCode, authenticatePasskeyMFA, authenticateTotpMfaDevice, __authenticateWithSocial_wrapped as authenticateWithSocial, __broadcastCheckoutTransaction_wrapped as broadcastCheckoutTransaction, __broadcastFlow_wrapped as broadcastFlow, canConnectWithHardwareWallet, __cancelCheckoutTransaction_wrapped as cancelCheckoutTransaction, __cancelFlow_wrapped as cancelFlow, __checkStepUpAuth_wrapped as checkStepUpAuth, __completeDeviceRegistration_wrapped as completeDeviceRegistration, __completeSocialAuthentication_wrapped as completeSocialAuthentication, __completeSocialRedirect_wrapped as completeSocialRedirect, __confirmTransaction_wrapped as confirmTransaction, __connectAndVerifyWithWalletProvider_wrapped as connectAndVerifyWithWalletProvider, __connectWithWalletProvider_wrapped as connectWithWalletProvider, __consumeMfaToken_wrapped as consumeMfaToken, __createCheckoutTransaction_wrapped as createCheckoutTransaction, __createCoinbaseOnrampOrder_wrapped as createCoinbaseOnrampOrder, __createCryptoDotComPayment_wrapped as createCryptoDotComPayment, __createDynamicClient_wrapped as createDynamicClient, __createKrakenExchangeTransfer_wrapped as createKrakenExchangeTransfer, __createNewMfaRecoveryCodes_wrapped as createNewMfaRecoveryCodes, __deleteMfaDevice_wrapped as deleteMfaDevice, __deletePasskey_wrapped as deletePasskey, __deleteUser_wrapped as deleteUser, detectDeviceRegistrationRedirect, detectOAuthRedirect, detectSocialRedirectUrl, excludeInstalledFromCatalog, __executeSwapTransaction_wrapped as executeSwapTransaction, fetchProjectSettings, findMissingGoogleDriveBackupScopes, getActiveNetworkData, getActiveNetworkId, getAvailableWalletProvidersData, getBalance, getBalanceForAddress, getBalances, getCheckoutTransaction, getCheckoutTransactionQuote, getCoinbaseBuyUrl, getConnectedAddresses, getDefaultClient, getDeviceRegistrationTokenFromUrl, __getElevatedAccessToken_wrapped as 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 };
|
|
8522
8468
|
//# sourceMappingURL=index.native.esm.js.map
|