@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.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-
|
|
2
|
-
const require_InvalidParamError = require('./InvalidParamError-
|
|
3
|
-
const require_getNetworkProviderFromNetworkId = require('./getNetworkProviderFromNetworkId-
|
|
4
|
-
const require_getWalletProviderByKey = require('./getWalletProviderByKey-
|
|
5
|
-
const require_refreshAuth = require('./refreshAuth-
|
|
6
|
-
const require_isDynamicWaasEnabled = require('./isDynamicWaasEnabled-
|
|
7
|
-
const
|
|
1
|
+
const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-CgWBU6kM.cjs');
|
|
2
|
+
const require_InvalidParamError = require('./InvalidParamError-C7c-OLz1.cjs');
|
|
3
|
+
const require_getNetworkProviderFromNetworkId = require('./getNetworkProviderFromNetworkId-D8cpx0xz.cjs');
|
|
4
|
+
const require_getWalletProviderByKey = require('./getWalletProviderByKey-DCKYAida.cjs');
|
|
5
|
+
const require_refreshAuth = require('./refreshAuth-ByIVzawo.cjs');
|
|
6
|
+
const require_isDynamicWaasEnabled = require('./isDynamicWaasEnabled-BtbzDbdz.cjs');
|
|
7
|
+
const require_isUserOnboardingComplete = require('./isUserOnboardingComplete-OP4uyUlE.cjs');
|
|
8
8
|
let _dynamic_labs_sdk_assert_package_version = require("@dynamic-labs-sdk/assert-package-version");
|
|
9
9
|
let _dynamic_labs_sdk_api_core = require("@dynamic-labs/sdk-api-core");
|
|
10
10
|
let zod_mini = require("zod/mini");
|
|
@@ -32,7 +32,7 @@ const stateChangeEvents = {
|
|
|
32
32
|
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region src/utils/getNonce/prefetchNoncesIfNeeded/prefetchNoncesIfNeeded.ts
|
|
35
|
-
/** @
|
|
35
|
+
/** @notInstrumented */
|
|
36
36
|
const prefetchNoncesIfNeeded = async (client) => {
|
|
37
37
|
if (require_InvalidParamError.getCore(client).state.get().prefetchedNonces.length >= require_InvalidParamError.NONCE_POOL_SIZE) return;
|
|
38
38
|
await require_InvalidParamError.fetchAndStoreNonces(client);
|
|
@@ -44,7 +44,7 @@ const prefetchNoncesIfNeeded = async (client) => {
|
|
|
44
44
|
* Creates a new runtime services instance that manages service registration and retrieval.
|
|
45
45
|
*
|
|
46
46
|
* @returns A RuntimeServices object with methods to get, register, and unregister services
|
|
47
|
-
* @
|
|
47
|
+
* @notInstrumented
|
|
48
48
|
*/
|
|
49
49
|
const createRuntimeServices = () => {
|
|
50
50
|
const registry = /* @__PURE__ */ new Map();
|
|
@@ -59,7 +59,7 @@ const createRuntimeServices = () => {
|
|
|
59
59
|
//#region src/modules/auth/initializeAuth/setLongTimeout/setLongTimeout.ts
|
|
60
60
|
/**
|
|
61
61
|
* A replacement for setTimeout that supports delays longer than 2147483647ms (~24.8 days).
|
|
62
|
-
* @
|
|
62
|
+
* @notInstrumented
|
|
63
63
|
*/
|
|
64
64
|
const setLongTimeout = ({ callback, delay }) => {
|
|
65
65
|
const MAX_DELAY = 2147483647;
|
|
@@ -82,7 +82,7 @@ const setLongTimeout = ({ callback, delay }) => {
|
|
|
82
82
|
//#region src/modules/auth/initializeAuth/initializeAuth.ts
|
|
83
83
|
/**
|
|
84
84
|
* Sets up a timeout to log out the user when their token expires.
|
|
85
|
-
* @
|
|
85
|
+
* @notInstrumented
|
|
86
86
|
*/
|
|
87
87
|
const initializeAuth = (client) => {
|
|
88
88
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -124,7 +124,7 @@ const initializeAuth = (client) => {
|
|
|
124
124
|
* - Emits corresponding "*InAnotherTab" events on core.eventEmitter
|
|
125
125
|
*
|
|
126
126
|
* @param client - The Dynamic client instance
|
|
127
|
-
* @
|
|
127
|
+
* @notInstrumented
|
|
128
128
|
*/
|
|
129
129
|
const setupCrossTabEventSync = (client) => {
|
|
130
130
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -216,7 +216,7 @@ var KeyMigrationError = class extends require_InvalidParamError.BaseError {
|
|
|
216
216
|
*
|
|
217
217
|
* Idempotent: skips if the keychain already has a `session` key.
|
|
218
218
|
* Throws on failure — callers should handle errors (e.g. .catch(() => logout(client))).
|
|
219
|
-
* @
|
|
219
|
+
* @notInstrumented
|
|
220
220
|
*/
|
|
221
221
|
const migrateSessionKeyToKeychain = async ({ keychain, logger, state, storage }) => {
|
|
222
222
|
if (require_getNetworkProviderFromNetworkId.isServerSideRendering()) return;
|
|
@@ -261,7 +261,7 @@ const migrateSessionKeyToKeychain = async ({ keychain, logger, state, storage })
|
|
|
261
261
|
|
|
262
262
|
//#endregion
|
|
263
263
|
//#region src/modules/state/raiseStateEvents/raiseStateEvents.ts
|
|
264
|
-
/** @
|
|
264
|
+
/** @notInstrumented */
|
|
265
265
|
const raiseStateEvents = (client) => {
|
|
266
266
|
require_InvalidParamError.getCore(client).state.subscribe((value, previous) => {
|
|
267
267
|
Object.entries(stateChangeEvents).forEach(([key, event]) => {
|
|
@@ -276,7 +276,7 @@ const raiseStateEvents = (client) => {
|
|
|
276
276
|
|
|
277
277
|
//#endregion
|
|
278
278
|
//#region src/modules/storageSync/hydrateStateWithStorage/hydrateStateWithStorage.ts
|
|
279
|
-
/** @
|
|
279
|
+
/** @notInstrumented */
|
|
280
280
|
const hydrateStateWithStorage = async (client) => {
|
|
281
281
|
const core = require_InvalidParamError.getCore(client);
|
|
282
282
|
const previousState = core.state.get();
|
|
@@ -314,7 +314,7 @@ const hydrateStateWithStorage = async (client) => {
|
|
|
314
314
|
|
|
315
315
|
//#endregion
|
|
316
316
|
//#region src/modules/storageSync/syncStateWithStorage/syncStateWithStorage.ts
|
|
317
|
-
/** @
|
|
317
|
+
/** @notInstrumented */
|
|
318
318
|
const syncStateWithStorage = (client) => {
|
|
319
319
|
const core = require_InvalidParamError.getCore(client);
|
|
320
320
|
core.state.subscribe((state) => {
|
|
@@ -347,7 +347,7 @@ const syncStateWithStorage = (client) => {
|
|
|
347
347
|
|
|
348
348
|
//#endregion
|
|
349
349
|
//#region src/modules/storageSync/initializeStorageSync.ts
|
|
350
|
-
/** @
|
|
350
|
+
/** @notInstrumented */
|
|
351
351
|
const initializeStorageSync = async (client) => {
|
|
352
352
|
await hydrateStateWithStorage(client);
|
|
353
353
|
syncStateWithStorage(client);
|
|
@@ -538,7 +538,7 @@ const __initializeClient_wrapped = require_InvalidParamError.instrumentFunction(
|
|
|
538
538
|
//#region src/services/asyncTrack/createAsyncTrack.ts
|
|
539
539
|
/**
|
|
540
540
|
* Creates a tracker that associates names with promises and raises as promises resolve.
|
|
541
|
-
* @
|
|
541
|
+
* @notInstrumented
|
|
542
542
|
*/
|
|
543
543
|
const createAsyncTrack = () => {
|
|
544
544
|
/**
|
|
@@ -594,7 +594,7 @@ const createAsyncTrack = () => {
|
|
|
594
594
|
|
|
595
595
|
//#endregion
|
|
596
596
|
//#region src/services/eventEmitter/createEventEmitter.ts
|
|
597
|
-
/** @
|
|
597
|
+
/** @notInstrumented */
|
|
598
598
|
const createEventEmitter = () => new eventemitter3.default();
|
|
599
599
|
|
|
600
600
|
//#endregion
|
|
@@ -615,7 +615,7 @@ var UnavailableInServerSideError = class extends require_InvalidParamError.BaseE
|
|
|
615
615
|
//#region src/services/fetch/createWebFetch.ts
|
|
616
616
|
/**
|
|
617
617
|
* Creates a fetch instance that uses the native window.fetch API.
|
|
618
|
-
* @
|
|
618
|
+
* @notInstrumented
|
|
619
619
|
*/
|
|
620
620
|
const createWebFetch = () => {
|
|
621
621
|
if (require_getNetworkProviderFromNetworkId.isServerSideRendering()) return () => Promise.reject(new UnavailableInServerSideError("createWebFetch"));
|
|
@@ -631,7 +631,7 @@ const createWebFetch = () => {
|
|
|
631
631
|
* Bridges the logger and instrumentation subsystems without coupling them
|
|
632
632
|
* at construction time — either can exist without the other.
|
|
633
633
|
* Only error-level log entries are forwarded.
|
|
634
|
-
* @
|
|
634
|
+
* @notInstrumented
|
|
635
635
|
*/
|
|
636
636
|
const connectLoggerToInstrumentation = ({ environmentId, extensions, instrumentation, logger, sdkSessionId, sdkVersion, state }) => {
|
|
637
637
|
logger.on("log", (level, message, ...args) => {
|
|
@@ -676,7 +676,7 @@ const buildPiiFields = (customFields = []) => {
|
|
|
676
676
|
*
|
|
677
677
|
* Custom piiFields are merged with and deduplicated against the defaults so
|
|
678
678
|
* callers only need to list additional fields, not replicate the baseline.
|
|
679
|
-
* @
|
|
679
|
+
* @notInstrumented
|
|
680
680
|
*/
|
|
681
681
|
const createInstrumentation = ({ config: inputConfig } = {}) => {
|
|
682
682
|
let transport;
|
|
@@ -718,7 +718,7 @@ const LOGS_BASE_URL = "https://logs.dynamicauth.com/api/v1";
|
|
|
718
718
|
*
|
|
719
719
|
* Works in both browser and SSR environments — fetch is injected and
|
|
720
720
|
* queueMicrotask is available in Node.js >= 11.
|
|
721
|
-
* @
|
|
721
|
+
* @notInstrumented
|
|
722
722
|
*/
|
|
723
723
|
const createDynamicTransport = (params) => {
|
|
724
724
|
const queue = [];
|
|
@@ -747,7 +747,7 @@ const createDynamicTransport = (params) => {
|
|
|
747
747
|
//#region src/services/navigate/createNavigationHandler/createNavigationHandler.ts
|
|
748
748
|
/**
|
|
749
749
|
* Creates a navigation handler that uses the native window.location API.
|
|
750
|
-
* @
|
|
750
|
+
* @notInstrumented
|
|
751
751
|
*/
|
|
752
752
|
const createNavigationHandler = () => {
|
|
753
753
|
if (require_getNetworkProviderFromNetworkId.isServerSideRendering()) return () => Promise.reject(new UnavailableInServerSideError("createNavigationHandler"));
|
|
@@ -770,7 +770,7 @@ const createNavigationHandler = () => {
|
|
|
770
770
|
* the browser focuses the lingering about:blank after the redirect tab closes.
|
|
771
771
|
* `window.location.assign` reuses the current tab, avoiding the extra tab
|
|
772
772
|
* entirely.
|
|
773
|
-
* @
|
|
773
|
+
* @notInstrumented
|
|
774
774
|
*/
|
|
775
775
|
const createWebDeeplinkOpener = () => {
|
|
776
776
|
if (require_getNetworkProviderFromNetworkId.isServerSideRendering()) return () => Promise.reject(new UnavailableInServerSideError("createWebDeeplinkOpener"));
|
|
@@ -784,7 +784,7 @@ const createWebDeeplinkOpener = () => {
|
|
|
784
784
|
/**
|
|
785
785
|
* Because this is the web implementation of the passkey service, we need to
|
|
786
786
|
* import the browser's WebAuthn API directly.
|
|
787
|
-
* @
|
|
787
|
+
* @notInstrumented
|
|
788
788
|
*/
|
|
789
789
|
/**
|
|
790
790
|
* Create a passkey service that uses the browser's WebAuthn API.
|
|
@@ -792,7 +792,7 @@ const createWebDeeplinkOpener = () => {
|
|
|
792
792
|
* Metadata is accepted for parity with the native implementation (which uses
|
|
793
793
|
* `universalLink` to validate the associated domain) but is unused on web —
|
|
794
794
|
* the browser derives the relying party from `window.location.origin`.
|
|
795
|
-
* @
|
|
795
|
+
* @notInstrumented
|
|
796
796
|
*/
|
|
797
797
|
const createPasskeyService = (_params) => ({
|
|
798
798
|
authenticate: (options) => (0, _simplewebauthn_browser.startAuthentication)(options),
|
|
@@ -802,7 +802,7 @@ const createPasskeyService = (_params) => ({
|
|
|
802
802
|
|
|
803
803
|
//#endregion
|
|
804
804
|
//#region src/utils/debouncedMutex/createDebouncedMutex/createDebouncedMutex.ts
|
|
805
|
-
/** @
|
|
805
|
+
/** @notInstrumented */
|
|
806
806
|
const createDebouncedMutex = () => {
|
|
807
807
|
const mutexState = /* @__PURE__ */ new Map();
|
|
808
808
|
return async ({ lockKey, callback, debounceTime = 0 }) => {
|
|
@@ -887,7 +887,7 @@ var InvalidStorageValue = class extends require_InvalidParamError.BaseError {
|
|
|
887
887
|
* // Unsubscribe when done
|
|
888
888
|
* unsubscribe();
|
|
889
889
|
* ```
|
|
890
|
-
* @
|
|
890
|
+
* @notInstrumented
|
|
891
891
|
*/
|
|
892
892
|
const createObservableState = (getInitialState$1) => {
|
|
893
893
|
const subscribers = /* @__PURE__ */ new Set();
|
|
@@ -931,7 +931,7 @@ const DEFAULT_API_BASE_URL = "https://app.dynamicauth.com/api/v0";
|
|
|
931
931
|
//#region src/client/core/createCore/getInitialState.ts
|
|
932
932
|
/**
|
|
933
933
|
* The initial values for the state of the client.
|
|
934
|
-
* @
|
|
934
|
+
* @notInstrumented
|
|
935
935
|
*/
|
|
936
936
|
const getInitialState = () => ({
|
|
937
937
|
captchaToken: null,
|
|
@@ -956,7 +956,7 @@ const getInitialState = () => ({
|
|
|
956
956
|
//#region src/client/core/createCore/createCore.ts
|
|
957
957
|
/**
|
|
958
958
|
* Creates a core instance that contains all the services and state of the Dynamic SDK client.
|
|
959
|
-
* @
|
|
959
|
+
* @notInstrumented
|
|
960
960
|
*/
|
|
961
961
|
const createCore = (config) => {
|
|
962
962
|
const apiBaseUrl = config.coreConfig?.apiBaseUrl ?? DEFAULT_API_BASE_URL;
|
|
@@ -1657,7 +1657,7 @@ const __signInWithExternalJwt_wrapped = require_InvalidParamError.instrumentFunc
|
|
|
1657
1657
|
*
|
|
1658
1658
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1659
1659
|
* @returns A promise that resolves when the logout process is complete.
|
|
1660
|
-
* @
|
|
1660
|
+
* @notInstrumented
|
|
1661
1661
|
*/
|
|
1662
1662
|
const logout = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
1663
1663
|
/**
|
|
@@ -1712,7 +1712,7 @@ const __deletePasskey_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
1712
1712
|
*
|
|
1713
1713
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1714
1714
|
* @returns A promise that resolves to an array of the user's registered passkeys.
|
|
1715
|
-
* @
|
|
1715
|
+
* @notInstrumented
|
|
1716
1716
|
*/
|
|
1717
1717
|
const getPasskeys = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
1718
1718
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -1721,7 +1721,7 @@ const getPasskeys = async (client = require_InvalidParamError.getDefaultClient()
|
|
|
1721
1721
|
|
|
1722
1722
|
//#endregion
|
|
1723
1723
|
//#region src/modules/auth/passkeys/getPasskeyRegistrationOptions/getPasskeyRegistrationOptions.ts
|
|
1724
|
-
/** @
|
|
1724
|
+
/** @notInstrumented */
|
|
1725
1725
|
const getPasskeyRegistrationOptions = async (client) => {
|
|
1726
1726
|
const core = require_InvalidParamError.getCore(client);
|
|
1727
1727
|
return await require_InvalidParamError.createApiClient({}, client).getPasskeyRegistrationOptions({ environmentId: core.environmentId });
|
|
@@ -1729,7 +1729,7 @@ const getPasskeyRegistrationOptions = async (client) => {
|
|
|
1729
1729
|
|
|
1730
1730
|
//#endregion
|
|
1731
1731
|
//#region src/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.ts
|
|
1732
|
-
/** @
|
|
1732
|
+
/** @notInstrumented */
|
|
1733
1733
|
const serverRegisterPasskey = async ({ registration, createMfaToken }, client) => {
|
|
1734
1734
|
const core = require_InvalidParamError.getCore(client);
|
|
1735
1735
|
return await require_InvalidParamError.createApiClient({ elevatedAccessTokenScope: _dynamic_labs_sdk_api_core.TokenScope.Credentiallink }, client).registerPasskey({
|
|
@@ -1788,7 +1788,7 @@ const __registerPasskey_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
1788
1788
|
|
|
1789
1789
|
//#endregion
|
|
1790
1790
|
//#region src/modules/auth/passkeys/getPasskeyAuthenticationSignInOptions/getPasskeyAuthenticationSignInOptions.ts
|
|
1791
|
-
/** @
|
|
1791
|
+
/** @notInstrumented */
|
|
1792
1792
|
const getPasskeyAuthenticationSignInOptions = async ({ relatedOriginRpId } = {}, client) => {
|
|
1793
1793
|
const core = require_InvalidParamError.getCore(client);
|
|
1794
1794
|
return await require_InvalidParamError.createApiClient({}, client).getPasskeyAuthenticationSigninOptions({
|
|
@@ -1799,7 +1799,7 @@ const getPasskeyAuthenticationSignInOptions = async ({ relatedOriginRpId } = {},
|
|
|
1799
1799
|
|
|
1800
1800
|
//#endregion
|
|
1801
1801
|
//#region src/modules/auth/passkeys/serverSigninPasskey/serverSigninPasskey.ts
|
|
1802
|
-
/** @
|
|
1802
|
+
/** @notInstrumented */
|
|
1803
1803
|
const serverSigninPasskey = async ({ authentication, createMfaToken }, client) => {
|
|
1804
1804
|
const core = require_InvalidParamError.getCore(client);
|
|
1805
1805
|
return await require_InvalidParamError.createApiClient({}, client).signinWithPasskey({
|
|
@@ -1859,7 +1859,7 @@ const __signInWithPasskey_wrapped = require_InvalidParamError.instrumentFunction
|
|
|
1859
1859
|
*
|
|
1860
1860
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1861
1861
|
* @returns An array of `SocialAccount` objects associated with the user.
|
|
1862
|
-
* @
|
|
1862
|
+
* @notInstrumented
|
|
1863
1863
|
* @hook Exposed as a hook so consumers get the reactive list of social accounts, updated when the user changes.
|
|
1864
1864
|
*/
|
|
1865
1865
|
const getUserSocialAccounts = (client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -1878,7 +1878,7 @@ const getUserSocialAccounts = (client = require_InvalidParamError.getDefaultClie
|
|
|
1878
1878
|
|
|
1879
1879
|
//#endregion
|
|
1880
1880
|
//#region src/modules/auth/social/removeDynamicOauthParamsFromUrl/removeDynamicOauthParamsFromUrl.ts
|
|
1881
|
-
/** @
|
|
1881
|
+
/** @notInstrumented */
|
|
1882
1882
|
const removeDynamicOauthParamsFromUrl = (url) => {
|
|
1883
1883
|
const urlObject = new URL(url);
|
|
1884
1884
|
urlObject.searchParams.delete("dynamicOauthState");
|
|
@@ -1900,7 +1900,7 @@ const redirectStateStorageKeySchema = require_isMfaRequiredForAction.createStora
|
|
|
1900
1900
|
|
|
1901
1901
|
//#endregion
|
|
1902
1902
|
//#region src/utils/digestSHA256/digestSHA256.ts
|
|
1903
|
-
/** @
|
|
1903
|
+
/** @notInstrumented */
|
|
1904
1904
|
const digestSHA256 = (str) => {
|
|
1905
1905
|
const data = new TextEncoder().encode(str);
|
|
1906
1906
|
return crypto.subtle.digest("SHA-256", data);
|
|
@@ -1913,7 +1913,7 @@ const digestSHA256 = (str) => {
|
|
|
1913
1913
|
*
|
|
1914
1914
|
* @param str - The string to encode as an ArrayBuffer.
|
|
1915
1915
|
* @returns The base64url encoded string.
|
|
1916
|
-
* @
|
|
1916
|
+
* @notInstrumented
|
|
1917
1917
|
*/
|
|
1918
1918
|
const encodeBase64Url = (str) => {
|
|
1919
1919
|
const numberArray = [];
|
|
@@ -1925,7 +1925,7 @@ const encodeBase64Url = (str) => {
|
|
|
1925
1925
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/addOAuthUrlParams/addOAuthUrlParams.ts
|
|
1926
1926
|
const APPLE_RESPONSE_MODE = "form_post";
|
|
1927
1927
|
const APPLE_RESPONSE_TYPE = "code id_token";
|
|
1928
|
-
/** Helper function to add OAuth URL parameters to a given base URL. * @
|
|
1928
|
+
/** Helper function to add OAuth URL parameters to a given base URL. * @notInstrumented
|
|
1929
1929
|
*/
|
|
1930
1930
|
const addOAuthUrlParams = ({ baseUrl, isGoogleDriveBackupEnabled, provider }) => {
|
|
1931
1931
|
require_InvalidParamError.assertDefined(provider.clientId, "Client ID not found");
|
|
@@ -1953,7 +1953,7 @@ const addOAuthUrlParams = ({ baseUrl, isGoogleDriveBackupEnabled, provider }) =>
|
|
|
1953
1953
|
|
|
1954
1954
|
//#endregion
|
|
1955
1955
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/getOAuthBaseUrl/getOAuthBaseUrl.ts
|
|
1956
|
-
/** Helper function to build the OAuth base URL for a given provider. * @
|
|
1956
|
+
/** Helper function to build the OAuth base URL for a given provider. * @notInstrumented
|
|
1957
1957
|
*/
|
|
1958
1958
|
const getOAuthBaseUrl = (provider) => {
|
|
1959
1959
|
require_InvalidParamError.assertDefined(provider.provider, "Provider type not found");
|
|
@@ -1974,7 +1974,7 @@ const getOAuthBaseUrl = (provider) => {
|
|
|
1974
1974
|
//#endregion
|
|
1975
1975
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/buildOAuthUrl.ts
|
|
1976
1976
|
const providersRequiringPkce = ["twitter", "github"];
|
|
1977
|
-
/** Helper function to build the OAuth URL for a given provider. * @
|
|
1977
|
+
/** Helper function to build the OAuth URL for a given provider. * @notInstrumented
|
|
1978
1978
|
*/
|
|
1979
1979
|
const buildOAuthUrl = async (core, provider) => {
|
|
1980
1980
|
const { projectSettings } = core.state.get();
|
|
@@ -2102,7 +2102,7 @@ const __authenticateWithSocial_wrapped = require_InvalidParamError.instrumentFun
|
|
|
2102
2102
|
*/
|
|
2103
2103
|
const processSocialCallback = async ({ url, requestedScopes }, client) => {
|
|
2104
2104
|
const core = require_InvalidParamError.getCore(client);
|
|
2105
|
-
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
2105
|
+
const apiClient = require_InvalidParamError.createApiClient(client.user ? { elevatedAccessTokenScope: _dynamic_labs_sdk_api_core.TokenScope.Credentiallink } : {}, client);
|
|
2106
2106
|
await core.initTrack.waitForAll();
|
|
2107
2107
|
const dynamicOauthState = url.searchParams.get("dynamicOauthState");
|
|
2108
2108
|
const dynamicOauthCode = url.searchParams.get("dynamicOauthCode");
|
|
@@ -2113,7 +2113,7 @@ const processSocialCallback = async ({ url, requestedScopes }, client) => {
|
|
|
2113
2113
|
if (storedSocialRedirectState.state !== dynamicOauthState) throw new InvalidRedirectStorageStateError();
|
|
2114
2114
|
const { provider, codeVerifier } = storedSocialRedirectState;
|
|
2115
2115
|
await core.storage.removeItem(redirectStateStorageKeySchema);
|
|
2116
|
-
|
|
2116
|
+
require_isUserOnboardingComplete.preconnectWaasIframe(client);
|
|
2117
2117
|
let response;
|
|
2118
2118
|
if (client.user) response = await apiClient.oauthVerify({
|
|
2119
2119
|
environmentId: core.environmentId,
|
|
@@ -2220,7 +2220,7 @@ const __completeSocialAuthentication_wrapped = require_InvalidParamError.instrum
|
|
|
2220
2220
|
* @param params.url - The URL to check for OAuth redirect parameters.
|
|
2221
2221
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2222
2222
|
* @returns A promise that resolves to true if the URL is an OAuth redirect, false otherwise.
|
|
2223
|
-
* @
|
|
2223
|
+
* @notInstrumented
|
|
2224
2224
|
* @noHook Low-level redirect-detection primitive that is not exposed as a React hook.
|
|
2225
2225
|
*/
|
|
2226
2226
|
const detectSocialRedirectUrl = async ({ url }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -2238,7 +2238,7 @@ const detectSocialRedirectUrl = async ({ url }, client = require_InvalidParamErr
|
|
|
2238
2238
|
* @deprecated Renamed to {@link detectSocialRedirectUrl}. This alias will be
|
|
2239
2239
|
* removed in a future major version.
|
|
2240
2240
|
*
|
|
2241
|
-
* @
|
|
2241
|
+
* @notInstrumented
|
|
2242
2242
|
* @noHook Deprecated alias; the replacement is exposed via its own hook.
|
|
2243
2243
|
*/
|
|
2244
2244
|
const detectOAuthRedirect = (params, client = require_InvalidParamError.getDefaultClient()) => detectSocialRedirectUrl(params, client);
|
|
@@ -2279,7 +2279,7 @@ const __signInWithSocialPopUp_wrapped = require_InvalidParamError.instrumentFunc
|
|
|
2279
2279
|
* The primary wallet account is the one that was last selected by the user.
|
|
2280
2280
|
* This information is stored in both unverified and verified wallet accounts.
|
|
2281
2281
|
* This function consolidates this information to determine which wallet was most recently selected.
|
|
2282
|
-
* @
|
|
2282
|
+
* @notInstrumented
|
|
2283
2283
|
*/
|
|
2284
2284
|
const getPrimaryWalletAccount = (client = require_InvalidParamError.getDefaultClient()) => {
|
|
2285
2285
|
const sortedLastSelectedWalletAccounts = require_InvalidParamError.getWalletAccounts(client).filter((walletAccount) => Boolean(walletAccount.lastSelectedAt)).sort((a, b) => b.lastSelectedAt.getTime() - a.lastSelectedAt.getTime());
|
|
@@ -2352,7 +2352,7 @@ const __unlinkSocialAccount_wrapped = require_InvalidParamError.instrumentFuncti
|
|
|
2352
2352
|
* @param params.walletAccount - The wallet account to get the balances for.
|
|
2353
2353
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2354
2354
|
* @returns A promise that resolves to an array of token balances.
|
|
2355
|
-
* @
|
|
2355
|
+
* @notInstrumented
|
|
2356
2356
|
*/
|
|
2357
2357
|
const getTokenBalances = async ({ walletAccount, networkId, networkIds, includePrices, includeNative, filterSpamTokens, whitelistedContracts, forceRefresh }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
2358
2358
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -2383,7 +2383,7 @@ const getTokenBalances = async ({ walletAccount, networkId, networkIds, includeP
|
|
|
2383
2383
|
* longer confusable with the native-only `getBalance` or the
|
|
2384
2384
|
* multi-chain `getMultichainTokenBalances`.
|
|
2385
2385
|
*
|
|
2386
|
-
* @
|
|
2386
|
+
* @notInstrumented
|
|
2387
2387
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
2388
2388
|
*/
|
|
2389
2389
|
const getBalances = (params, client = require_InvalidParamError.getDefaultClient()) => getTokenBalances(params, client);
|
|
@@ -2402,7 +2402,7 @@ const getBalances = (params, client = require_InvalidParamError.getDefaultClient
|
|
|
2402
2402
|
* @param params.balanceRequest - The balance request configuration specifying which chains, networks and addresses to query.
|
|
2403
2403
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2404
2404
|
* @returns A promise that resolves to the chain balances across multiple networks.
|
|
2405
|
-
* @
|
|
2405
|
+
* @notInstrumented
|
|
2406
2406
|
*/
|
|
2407
2407
|
const getMultichainTokenBalances = async ({ balanceRequest }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
2408
2408
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -2419,14 +2419,14 @@ const getMultichainTokenBalances = async ({ balanceRequest }, client = require_I
|
|
|
2419
2419
|
* the name aligns with `getTokenBalances` and signals that this fetches
|
|
2420
2420
|
* token balances (not native-only) across multiple chains.
|
|
2421
2421
|
*
|
|
2422
|
-
* @
|
|
2422
|
+
* @notInstrumented
|
|
2423
2423
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
2424
2424
|
*/
|
|
2425
2425
|
const getMultichainBalances = (params, client = require_InvalidParamError.getDefaultClient()) => getMultichainTokenBalances(params, client);
|
|
2426
2426
|
|
|
2427
2427
|
//#endregion
|
|
2428
2428
|
//#region src/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.ts
|
|
2429
|
-
/** @
|
|
2429
|
+
/** @notInstrumented */
|
|
2430
2430
|
const createCheckoutSessionTokenStorageKey = (transactionId) => {
|
|
2431
2431
|
return require_isMfaRequiredForAction.createStorageKeySchema({
|
|
2432
2432
|
key: `checkoutSessionToken:${transactionId}`,
|
|
@@ -2436,7 +2436,7 @@ const createCheckoutSessionTokenStorageKey = (transactionId) => {
|
|
|
2436
2436
|
|
|
2437
2437
|
//#endregion
|
|
2438
2438
|
//#region src/modules/checkout/utils/createCheckoutApiClient/createCheckoutApiClient.ts
|
|
2439
|
-
/** @
|
|
2439
|
+
/** @notInstrumented */
|
|
2440
2440
|
const createCheckoutApiClient = async ({ transactionId }, client) => {
|
|
2441
2441
|
const core = require_InvalidParamError.getCore(client);
|
|
2442
2442
|
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
@@ -2465,7 +2465,7 @@ const createCheckoutApiClient = async ({ transactionId }, client) => {
|
|
|
2465
2465
|
* The server-side revocation lives in dashboard-api; this is the SDK-side
|
|
2466
2466
|
* defense-in-depth.
|
|
2467
2467
|
*
|
|
2468
|
-
* @
|
|
2468
|
+
* @notInstrumented
|
|
2469
2469
|
*/
|
|
2470
2470
|
const clearCheckoutSessionToken = async ({ transactionId }, client) => {
|
|
2471
2471
|
await require_InvalidParamError.getCore(client).storage.removeItem(createCheckoutSessionTokenStorageKey(transactionId));
|
|
@@ -2480,7 +2480,7 @@ const clearCheckoutSessionToken = async ({ transactionId }, client) => {
|
|
|
2480
2480
|
* exfiltration surface for no benefit and makes the next SDK load attempt
|
|
2481
2481
|
* requests that are guaranteed to fail.
|
|
2482
2482
|
*
|
|
2483
|
-
* @
|
|
2483
|
+
* @notInstrumented
|
|
2484
2484
|
*/
|
|
2485
2485
|
const withCheckoutSessionTokenCleanupOn401 = async ({ call, transactionId }, client) => {
|
|
2486
2486
|
try {
|
|
@@ -2628,7 +2628,7 @@ const __cancelCheckoutTransaction_wrapped = require_InvalidParamError.instrument
|
|
|
2628
2628
|
|
|
2629
2629
|
//#endregion
|
|
2630
2630
|
//#region src/modules/checkout/getCheckouts/getCheckouts.ts
|
|
2631
|
-
/** @
|
|
2631
|
+
/** @notInstrumented */
|
|
2632
2632
|
const getCheckouts = async (client) => {
|
|
2633
2633
|
const projectSettings = client.projectSettings;
|
|
2634
2634
|
require_InvalidParamError.assertDefined(projectSettings, "Project settings are not available");
|
|
@@ -2694,7 +2694,7 @@ const __createCheckoutTransaction_wrapped = require_InvalidParamError.instrument
|
|
|
2694
2694
|
* @param params GetCheckoutTransactionParams - The parameters for fetching the transaction.
|
|
2695
2695
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2696
2696
|
* @returns The checkout transaction
|
|
2697
|
-
* @
|
|
2697
|
+
* @notInstrumented
|
|
2698
2698
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2699
2699
|
*/
|
|
2700
2700
|
const getCheckoutTransaction = async ({ transactionId }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -2715,7 +2715,7 @@ const getCheckoutTransaction = async ({ transactionId }, client = require_Invali
|
|
|
2715
2715
|
* @param params GetCheckoutTransactionQuoteParams - The quote parameters.
|
|
2716
2716
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2717
2717
|
* @returns The updated checkout transaction with quote data
|
|
2718
|
-
* @
|
|
2718
|
+
* @notInstrumented
|
|
2719
2719
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2720
2720
|
*/
|
|
2721
2721
|
const getCheckoutTransactionQuote = async ({ fromChainId, fromTokenAddress, slippage, transactionId }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -2820,7 +2820,7 @@ const SWAP_SUPPORTED_CHAINS = [
|
|
|
2820
2820
|
* If the wallet provider is not on the correct active network, it will try to switch to the correct active network.
|
|
2821
2821
|
* It's not a blocker, so it will just log the error and skip the step if it fails.
|
|
2822
2822
|
*
|
|
2823
|
-
* @
|
|
2823
|
+
* @notInstrumented
|
|
2824
2824
|
*/
|
|
2825
2825
|
const ensureCorrectActiveNetwork = async ({ requiredNetworkId, walletProvider }, client) => {
|
|
2826
2826
|
const { logger } = require_InvalidParamError.getCore(client);
|
|
@@ -2950,7 +2950,7 @@ const __submitCheckoutTransaction_wrapped = require_InvalidParamError.instrument
|
|
|
2950
2950
|
*
|
|
2951
2951
|
* @param params.transactionId - The ID of the checkout transaction to track.
|
|
2952
2952
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2953
|
-
* @
|
|
2953
|
+
* @notInstrumented
|
|
2954
2954
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2955
2955
|
*/
|
|
2956
2956
|
const trackCheckoutTransaction = (_params, client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -2973,7 +2973,7 @@ const trackCheckoutTransaction = (_params, client = require_InvalidParamError.ge
|
|
|
2973
2973
|
* @param params - The from token details and the checkout's settlement config.
|
|
2974
2974
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2975
2975
|
* @returns Whether a token conversion is required
|
|
2976
|
-
* @
|
|
2976
|
+
* @notInstrumented
|
|
2977
2977
|
* @noHook Legacy checkout function not exposed as a React hook; the checkout product is being renamed to flow.
|
|
2978
2978
|
*/
|
|
2979
2979
|
const requiresConversion = async ({ transaction }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -3018,7 +3018,7 @@ const __completeDeviceRegistration_wrapped = require_InvalidParamError.instrumen
|
|
|
3018
3018
|
*
|
|
3019
3019
|
* @returns The device token as a string if valid.
|
|
3020
3020
|
* @throws InvalidDeviceRegistrationRedirectError If the URL is not a valid device registration redirect.
|
|
3021
|
-
* @
|
|
3021
|
+
* @notInstrumented
|
|
3022
3022
|
*/
|
|
3023
3023
|
const getDeviceRegistrationTokenFromUrl = ({ url }) => {
|
|
3024
3024
|
let urlObject;
|
|
@@ -3041,7 +3041,7 @@ const getDeviceRegistrationTokenFromUrl = ({ url }) => {
|
|
|
3041
3041
|
* if it contains device registration redirect data from a device authentication flow.
|
|
3042
3042
|
*
|
|
3043
3043
|
* @returns True if the URL is a device registration redirect, false otherwise.
|
|
3044
|
-
* @
|
|
3044
|
+
* @notInstrumented
|
|
3045
3045
|
*/
|
|
3046
3046
|
const detectDeviceRegistrationRedirect = ({ url }) => {
|
|
3047
3047
|
try {
|
|
@@ -3054,7 +3054,7 @@ const detectDeviceRegistrationRedirect = ({ url }) => {
|
|
|
3054
3054
|
|
|
3055
3055
|
//#endregion
|
|
3056
3056
|
//#region src/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.ts
|
|
3057
|
-
/** @
|
|
3057
|
+
/** @notInstrumented */
|
|
3058
3058
|
const getRegisteredDevices = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
3059
3059
|
const core = require_InvalidParamError.getCore(client);
|
|
3060
3060
|
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
@@ -3070,20 +3070,6 @@ const getRegisteredDevices = async (client = require_InvalidParamError.getDefaul
|
|
|
3070
3070
|
}
|
|
3071
3071
|
};
|
|
3072
3072
|
|
|
3073
|
-
//#endregion
|
|
3074
|
-
//#region src/modules/deviceRegistration/isDeviceRegistrationRequired/isDeviceRegistrationRequired.ts
|
|
3075
|
-
/**
|
|
3076
|
-
* Checks if device registration is required for the given user.
|
|
3077
|
-
*
|
|
3078
|
-
* This function determines if the user has the deviceRegistration
|
|
3079
|
-
* scope, indicating that device registration is required.
|
|
3080
|
-
*
|
|
3081
|
-
* @param user - The user to check.
|
|
3082
|
-
* @returns True if device registration is required, false otherwise.
|
|
3083
|
-
* @not-instrumented
|
|
3084
|
-
*/
|
|
3085
|
-
const isDeviceRegistrationRequired = (user) => Boolean(user.scope?.includes("device:register"));
|
|
3086
|
-
|
|
3087
3073
|
//#endregion
|
|
3088
3074
|
//#region src/modules/deviceRegistration/revokeAllRegisteredDevices/revokeAllRegisteredDevices.ts
|
|
3089
3075
|
/** @instrumented */
|
|
@@ -3131,7 +3117,7 @@ const __revokeRegisteredDevice_wrapped = require_InvalidParamError.instrumentFun
|
|
|
3131
3117
|
|
|
3132
3118
|
//#endregion
|
|
3133
3119
|
//#region src/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.ts
|
|
3134
|
-
/** @
|
|
3120
|
+
/** @notInstrumented */
|
|
3135
3121
|
const createFlowSessionTokenStorageKey = (flowId) => {
|
|
3136
3122
|
return require_isMfaRequiredForAction.createStorageKeySchema({
|
|
3137
3123
|
key: `flowSessionToken:${flowId}`,
|
|
@@ -3155,7 +3141,7 @@ const createFlowSessionTokenStorageKey = (flowId) => {
|
|
|
3155
3141
|
* The server-side revocation lives in dashboard-api; this is the SDK-side
|
|
3156
3142
|
* defense-in-depth.
|
|
3157
3143
|
*
|
|
3158
|
-
* @
|
|
3144
|
+
* @notInstrumented
|
|
3159
3145
|
*/
|
|
3160
3146
|
const clearFlowSessionToken = async ({ flowId }, client) => {
|
|
3161
3147
|
await require_InvalidParamError.getCore(client).storage.removeItem(createFlowSessionTokenStorageKey(flowId));
|
|
@@ -3170,7 +3156,7 @@ const clearFlowSessionToken = async ({ flowId }, client) => {
|
|
|
3170
3156
|
* exfiltration surface for no benefit and makes the next SDK load attempt
|
|
3171
3157
|
* requests that are guaranteed to fail.
|
|
3172
3158
|
*
|
|
3173
|
-
* @
|
|
3159
|
+
* @notInstrumented
|
|
3174
3160
|
*/
|
|
3175
3161
|
const withFlowSessionTokenCleanupOn401 = async ({ call, flowId }, client) => {
|
|
3176
3162
|
try {
|
|
@@ -3236,7 +3222,7 @@ const __attachFlowSource_wrapped = require_InvalidParamError.instrumentFunction(
|
|
|
3236
3222
|
|
|
3237
3223
|
//#endregion
|
|
3238
3224
|
//#region src/modules/flow/utils/createFlowApiClient/createFlowApiClient.ts
|
|
3239
|
-
/** @
|
|
3225
|
+
/** @notInstrumented */
|
|
3240
3226
|
const createFlowApiClient = async ({ flowId }, client) => {
|
|
3241
3227
|
const core = require_InvalidParamError.getCore(client);
|
|
3242
3228
|
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
@@ -3332,7 +3318,7 @@ const __cancelFlow_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
3332
3318
|
* @param params GetFlowParams - The parameters for fetching the flow.
|
|
3333
3319
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3334
3320
|
* @returns The flow
|
|
3335
|
-
* @
|
|
3321
|
+
* @notInstrumented
|
|
3336
3322
|
*/
|
|
3337
3323
|
const getFlow = async ({ flowId }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3338
3324
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -3350,7 +3336,7 @@ const getFlow = async ({ flowId }, client = require_InvalidParamError.getDefault
|
|
|
3350
3336
|
* @param params GetFlowQuoteParams - The quote parameters.
|
|
3351
3337
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3352
3338
|
* @returns The updated flow with quote data
|
|
3353
|
-
* @
|
|
3339
|
+
* @notInstrumented
|
|
3354
3340
|
*/
|
|
3355
3341
|
const getFlowQuote = async ({ flowId, fromChainId, fromTokenAddress, slippage }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3356
3342
|
const { apiClient, environmentId, sessionToken } = await createFlowApiClient({ flowId }, client);
|
|
@@ -3465,7 +3451,7 @@ const __submitFlowTransaction_wrapped = require_InvalidParamError.instrumentFunc
|
|
|
3465
3451
|
* @returns A function to remove the listener.
|
|
3466
3452
|
* @throws {ValueMustBeDefinedError} If the window is not available.
|
|
3467
3453
|
* @docs https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/apple-pay-onramp-api#events-names
|
|
3468
|
-
* @
|
|
3454
|
+
* @notInstrumented
|
|
3469
3455
|
* @hook Event listeners are error-prone to wire up by hand with useEffect.
|
|
3470
3456
|
*/
|
|
3471
3457
|
const addCoinbaseOnrampOrderEventListener = ({ listener }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -3507,7 +3493,7 @@ const addCoinbaseOnrampOrderEventListener = ({ listener }, client = require_Inva
|
|
|
3507
3493
|
* @returns FieldMissingVerificationForCoinbaseOnramp[] - An array of fields that are missing verification for a Coinbase onramp order
|
|
3508
3494
|
* @throws {InvalidParamError} - If the payment method is not valid
|
|
3509
3495
|
* @throws {ValueMustBeDefinedError} - If the user is not authenticated
|
|
3510
|
-
* @
|
|
3496
|
+
* @notInstrumented
|
|
3511
3497
|
*/
|
|
3512
3498
|
const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3513
3499
|
if (paymentMethod !== "GUEST_CHECKOUT_APPLE_PAY") throw new require_InvalidParamError.InvalidParamError(`Invalid payment method: ${paymentMethod}`);
|
|
@@ -3545,7 +3531,7 @@ const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client
|
|
|
3545
3531
|
|
|
3546
3532
|
//#endregion
|
|
3547
3533
|
//#region src/modules/funding/coinbase/utils/validateUserCredentialsForCoinbaseOnrampOrder/validateUserCredentialsForCoinbaseOnrampOrder.ts
|
|
3548
|
-
/** @
|
|
3534
|
+
/** @notInstrumented */
|
|
3549
3535
|
const validateUserCredentialsForCoinbaseOnrampOrder = (client) => {
|
|
3550
3536
|
const { user } = client;
|
|
3551
3537
|
require_InvalidParamError.assertDefined(user, "User is not authenticated");
|
|
@@ -3620,7 +3606,7 @@ const __createCoinbaseOnrampOrder_wrapped = require_InvalidParamError.instrument
|
|
|
3620
3606
|
* @param buyUrlParams CoinbaseOnrampGetBuyUrlRequest - The parameters for the buy URL.
|
|
3621
3607
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3622
3608
|
* @returns an object containing the buy URL
|
|
3623
|
-
* @
|
|
3609
|
+
* @notInstrumented
|
|
3624
3610
|
*/
|
|
3625
3611
|
const getCoinbaseBuyUrl = async (buyUrlParams, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3626
3612
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -3671,7 +3657,7 @@ const __createCryptoDotComPayment_wrapped = require_InvalidParamError.instrument
|
|
|
3671
3657
|
* @param transferParams - The parameters for the transfer including accountId
|
|
3672
3658
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3673
3659
|
* @returns The created transfer
|
|
3674
|
-
* @
|
|
3660
|
+
* @notInstrumented
|
|
3675
3661
|
*/
|
|
3676
3662
|
const createKrakenExchangeTransfer = async (transferParams, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3677
3663
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -3705,7 +3691,7 @@ const __createKrakenExchangeTransfer_wrapped = require_InvalidParamError.instrum
|
|
|
3705
3691
|
* @param [params] GetKrakenAccountsParams - Optional filters for the accounts.
|
|
3706
3692
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3707
3693
|
* @returns Array of Kraken accounts with balances
|
|
3708
|
-
* @
|
|
3694
|
+
* @notInstrumented
|
|
3709
3695
|
*/
|
|
3710
3696
|
const getKrakenAccounts = async (params, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3711
3697
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -3724,7 +3710,7 @@ const getKrakenAccounts = async (params, client = require_InvalidParamError.getD
|
|
|
3724
3710
|
*
|
|
3725
3711
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3726
3712
|
* @returns Transfer destinations response with whitelisted addresses
|
|
3727
|
-
* @
|
|
3713
|
+
* @notInstrumented
|
|
3728
3714
|
*/
|
|
3729
3715
|
const getKrakenWhitelistedAddresses = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
3730
3716
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -3850,7 +3836,7 @@ const __getMoonPayUrl_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
3850
3836
|
* and are ready for use.
|
|
3851
3837
|
*
|
|
3852
3838
|
* @returns a promise that resolves once the client is fully initialized.
|
|
3853
|
-
* @
|
|
3839
|
+
* @notInstrumented
|
|
3854
3840
|
* @noHook Client lifecycle management is not exposed as a hook; use useInitStatus.
|
|
3855
3841
|
*/
|
|
3856
3842
|
const waitForClientInitialized = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -3901,7 +3887,7 @@ const normalize$1 = (value) => value.toLowerCase().replace(/\s+/g, "").replace(/
|
|
|
3901
3887
|
* @param [params.catalogGroupName] - Optional display name (e.g. `"Trust Wallet"`); matched as a fallback when the key is opaque.
|
|
3902
3888
|
* @param params.walletProviders - Currently available wallet providers (from `getAvailableWalletProvidersData`).
|
|
3903
3889
|
* @returns The subset of `walletProviders` that match the catalog group.
|
|
3904
|
-
* @
|
|
3890
|
+
* @notInstrumented
|
|
3905
3891
|
*/
|
|
3906
3892
|
const matchWalletProvidersToCatalogGroup = ({ catalogGroupKey, catalogGroupName, walletProviders }) => {
|
|
3907
3893
|
const targets = new Set([normalize$1(catalogGroupKey)]);
|
|
@@ -3928,7 +3914,7 @@ const matchWalletProvidersToCatalogGroup = ({ catalogGroupKey, catalogGroupName,
|
|
|
3928
3914
|
* multi-chain wallet (same `groupId` across EVM + SOL entries) only runs
|
|
3929
3915
|
* the match once.
|
|
3930
3916
|
*
|
|
3931
|
-
* @
|
|
3917
|
+
* @notInstrumented
|
|
3932
3918
|
*/
|
|
3933
3919
|
const collectInstalledGroupIds = ({ catalog, walletProviders }) => {
|
|
3934
3920
|
const installedGroupIds = /* @__PURE__ */ new Set();
|
|
@@ -3971,7 +3957,7 @@ const collectInstalledGroupIds = ({ catalog, walletProviders }) => {
|
|
|
3971
3957
|
* @param params.catalog - The full WalletConnect catalog (typically from `getWalletConnectCatalog`).
|
|
3972
3958
|
* @param params.walletProviders - Currently available wallet providers.
|
|
3973
3959
|
* @returns A new catalog with only the wallets and groups the user does not have installed.
|
|
3974
|
-
* @
|
|
3960
|
+
* @notInstrumented
|
|
3975
3961
|
*/
|
|
3976
3962
|
const excludeInstalledFromCatalog = ({ catalog, walletProviders }) => {
|
|
3977
3963
|
const installedGroupIds = collectInstalledGroupIds({
|
|
@@ -3999,7 +3985,7 @@ const excludeInstalledFromCatalog = ({ catalog, walletProviders }) => {
|
|
|
3999
3985
|
//#region src/modules/legacyWalletBook/getWalletBookCdnUrl/getWalletBookCdnUrl.ts
|
|
4000
3986
|
/**
|
|
4001
3987
|
* Default CDN URL for the wallet book.
|
|
4002
|
-
* @
|
|
3988
|
+
* @notInstrumented
|
|
4003
3989
|
*/
|
|
4004
3990
|
const DEFAULT_WALLET_BOOK_CDN_URL = "https://dynamic-static-assets.com/wallet-book/v1/stable/wallet-book.json";
|
|
4005
3991
|
/**
|
|
@@ -4011,7 +3997,7 @@ const DEFAULT_WALLET_BOOK_CDN_URL = "https://dynamic-static-assets.com/wallet-bo
|
|
|
4011
3997
|
* 4. Default CDN URL
|
|
4012
3998
|
*
|
|
4013
3999
|
* @returns The wallet book CDN URL to use.
|
|
4014
|
-
* @
|
|
4000
|
+
* @notInstrumented
|
|
4015
4001
|
*/
|
|
4016
4002
|
const getWalletBookCdnUrl = () => {
|
|
4017
4003
|
if (typeof process !== "undefined" && process.env) {
|
|
@@ -4025,7 +4011,7 @@ const getWalletBookCdnUrl = () => {
|
|
|
4025
4011
|
//#region src/modules/legacyWalletBook/fetchLegacyWalletBook/fetchWithTimeout/fetchWithTimeout.ts
|
|
4026
4012
|
/**
|
|
4027
4013
|
* The timeout for each fetch attempt in milliseconds.
|
|
4028
|
-
* @
|
|
4014
|
+
* @notInstrumented
|
|
4029
4015
|
*/
|
|
4030
4016
|
const FETCH_TIMEOUT_MS = 3e4;
|
|
4031
4017
|
/**
|
|
@@ -4033,7 +4019,7 @@ const FETCH_TIMEOUT_MS = 3e4;
|
|
|
4033
4019
|
*
|
|
4034
4020
|
* @param client - The Dynamic client instance.
|
|
4035
4021
|
* @returns A promise that resolves to the wallet book data.
|
|
4036
|
-
* @
|
|
4022
|
+
* @notInstrumented
|
|
4037
4023
|
*/
|
|
4038
4024
|
const fetchWithTimeout = async (client) => {
|
|
4039
4025
|
const controller = new AbortController();
|
|
@@ -4065,7 +4051,7 @@ const walletBookCacheStorageKeySchema = require_isMfaRequiredForAction.createSto
|
|
|
4065
4051
|
//#region src/modules/legacyWalletBook/fetchLegacyWalletBook/fetchLegacyWalletBook.ts
|
|
4066
4052
|
/**
|
|
4067
4053
|
* The maximum number of retry attempts.
|
|
4068
|
-
* @
|
|
4054
|
+
* @notInstrumented
|
|
4069
4055
|
*/
|
|
4070
4056
|
const MAX_RETRIES = 3;
|
|
4071
4057
|
/**
|
|
@@ -4082,7 +4068,7 @@ const RETRY_DELAY_MS = 100;
|
|
|
4082
4068
|
* @param client - The Dynamic client instance.
|
|
4083
4069
|
* @returns A promise that resolves to the wallet book data.
|
|
4084
4070
|
* @throws If both CDN fetch and cache retrieval fail.
|
|
4085
|
-
* @
|
|
4071
|
+
* @notInstrumented
|
|
4086
4072
|
*/
|
|
4087
4073
|
const fetchLegacyWalletBook = async (client) => {
|
|
4088
4074
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -4115,7 +4101,7 @@ const fetchLegacyWalletBook = async (client) => {
|
|
|
4115
4101
|
* catalogue. These wallets are not products the user "connects" to from the
|
|
4116
4102
|
* wallet selection list — they are embedded sign-in methods that live behind
|
|
4117
4103
|
* different SDK entry points.
|
|
4118
|
-
* @
|
|
4104
|
+
* @notInstrumented
|
|
4119
4105
|
*/
|
|
4120
4106
|
const EMBEDDED_WALLET_KEYS = [
|
|
4121
4107
|
"magicemailotp",
|
|
@@ -4144,7 +4130,7 @@ const EMBEDDED_WALLET_KEYS = [
|
|
|
4144
4130
|
* {@link shouldFilterWalletForWalletConnect}.
|
|
4145
4131
|
*
|
|
4146
4132
|
* @returns True if the wallet should be filtered out, false otherwise.
|
|
4147
|
-
* @
|
|
4133
|
+
* @notInstrumented
|
|
4148
4134
|
*/
|
|
4149
4135
|
const shouldFilterWallet = ({ wallet, walletKey }) => {
|
|
4150
4136
|
if (EMBEDDED_WALLET_KEYS.includes(walletKey)) return true;
|
|
@@ -4164,7 +4150,7 @@ const shouldFilterWallet = ({ wallet, walletKey }) => {
|
|
|
4164
4150
|
*
|
|
4165
4151
|
* @returns True if the wallet should be excluded from the WalletConnect
|
|
4166
4152
|
* catalog, false otherwise.
|
|
4167
|
-
* @
|
|
4153
|
+
* @notInstrumented
|
|
4168
4154
|
*/
|
|
4169
4155
|
const shouldFilterWalletForWalletConnect = ({ wallet, walletKey }) => {
|
|
4170
4156
|
if (shouldFilterWallet({
|
|
@@ -4181,7 +4167,7 @@ const shouldFilterWalletForWalletConnect = ({ wallet, walletKey }) => {
|
|
|
4181
4167
|
*
|
|
4182
4168
|
* @param params.spriteId - The sprite identifier from the wallet book.
|
|
4183
4169
|
* @returns The full URL to the sprite icon
|
|
4184
|
-
* @
|
|
4170
|
+
* @notInstrumented
|
|
4185
4171
|
*/
|
|
4186
4172
|
const getSpriteUrl = ({ spriteId }) => `${require_InvalidParamError.DYNAMIC_ICONIC_SPRITE_URL}#${spriteId}`;
|
|
4187
4173
|
|
|
@@ -4189,7 +4175,7 @@ const getSpriteUrl = ({ spriteId }) => `${require_InvalidParamError.DYNAMIC_ICON
|
|
|
4189
4175
|
//#region src/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/transformGroup.ts
|
|
4190
4176
|
/**
|
|
4191
4177
|
* Transforms a wallet group schema into a WalletConnect catalog group.
|
|
4192
|
-
* @
|
|
4178
|
+
* @notInstrumented
|
|
4193
4179
|
*/
|
|
4194
4180
|
const transformGroup = ({ group }) => {
|
|
4195
4181
|
const spriteId = group.brand?.spriteId ?? "";
|
|
@@ -4216,7 +4202,7 @@ const transformGroup = ({ group }) => {
|
|
|
4216
4202
|
*
|
|
4217
4203
|
* Centralised here rather than in `legacyWalletBook` so all chain naming
|
|
4218
4204
|
* knowledge stays alongside `CHAINS_INFO_MAP`.
|
|
4219
|
-
* @
|
|
4205
|
+
* @notInstrumented
|
|
4220
4206
|
*/
|
|
4221
4207
|
const getChainFromWalletBookIdentifier = ({ identifier }) => {
|
|
4222
4208
|
const normalised = identifier.toLowerCase();
|
|
@@ -4234,7 +4220,7 @@ const getChainFromWalletBookIdentifier = ({ identifier }) => {
|
|
|
4234
4220
|
*
|
|
4235
4221
|
* Exported so {@link getChainsFromWalletSchema} can apply the same
|
|
4236
4222
|
* parsing to its multi-chain pass without duplicating the logic.
|
|
4237
|
-
* @
|
|
4223
|
+
* @notInstrumented
|
|
4238
4224
|
*/
|
|
4239
4225
|
const extractChainPrefix = ({ chainIdentifier }) => {
|
|
4240
4226
|
const colonIndex = chainIdentifier.indexOf(":");
|
|
@@ -4267,7 +4253,7 @@ const getChainFromWalletKey = ({ walletKey }) => {
|
|
|
4267
4253
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
4268
4254
|
* @param params.walletKey - The wallet key identifier (optional, used as last resort fallback).
|
|
4269
4255
|
* @returns The chain type, defaults to EVM if no chain can be determined.
|
|
4270
|
-
* @
|
|
4256
|
+
* @notInstrumented
|
|
4271
4257
|
*/
|
|
4272
4258
|
const getChainFromWalletSchema = ({ wallet, walletKey }) => {
|
|
4273
4259
|
if (wallet.injectedConfig && wallet.injectedConfig.length > 0) {
|
|
@@ -4295,7 +4281,7 @@ const getChainFromWalletSchema = ({ wallet, walletKey }) => {
|
|
|
4295
4281
|
//#region src/modules/legacyWalletBook/getWalletConnectCatalog/transformWallet/transformWallet.ts
|
|
4296
4282
|
/**
|
|
4297
4283
|
* Transforms a wallet schema into a WalletConnect catalog wallet entry.
|
|
4298
|
-
* @
|
|
4284
|
+
* @notInstrumented
|
|
4299
4285
|
*/
|
|
4300
4286
|
const transformWallet = ({ wallet, walletKey }) => {
|
|
4301
4287
|
const spriteId = wallet.brand?.spriteId ?? "";
|
|
@@ -4326,7 +4312,7 @@ const transformWallet = ({ wallet, walletKey }) => {
|
|
|
4326
4312
|
/**
|
|
4327
4313
|
* Transforms the legacy wallet book into a WalletConnect catalog structure.
|
|
4328
4314
|
* Filters out embedded wallets and injected-only wallets.
|
|
4329
|
-
* @
|
|
4315
|
+
* @notInstrumented
|
|
4330
4316
|
*/
|
|
4331
4317
|
const transformWalletBook = ({ walletBook }) => {
|
|
4332
4318
|
const groups = {};
|
|
@@ -4359,7 +4345,7 @@ const transformWalletBook = ({ walletBook }) => {
|
|
|
4359
4345
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4360
4346
|
* @returns A promise that resolves to the WalletConnect catalog containing groups and wallets.
|
|
4361
4347
|
* @throws If unable to fetch the wallet book from the API (when both CDN fetch and cache retrieval fail).
|
|
4362
|
-
* @
|
|
4348
|
+
* @notInstrumented
|
|
4363
4349
|
*/
|
|
4364
4350
|
const getWalletConnectCatalog = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
4365
4351
|
return transformWalletBook({ walletBook: await fetchLegacyWalletBook(client) });
|
|
@@ -4373,7 +4359,7 @@ const getWalletConnectCatalog = async (client = require_InvalidParamError.getDef
|
|
|
4373
4359
|
*
|
|
4374
4360
|
* @param params.normalizedWalletNameWithChain - The normalized wallet name with chain suffix.
|
|
4375
4361
|
* @returns The chain if found, undefined otherwise.
|
|
4376
|
-
* @
|
|
4362
|
+
* @notInstrumented
|
|
4377
4363
|
*/
|
|
4378
4364
|
const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
|
|
4379
4365
|
const lowerName = normalizedWalletNameWithChain.toLowerCase();
|
|
@@ -4393,7 +4379,7 @@ const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
|
|
|
4393
4379
|
* @param params.walletProviderKey - The wallet provider key to get the catalog wallet entry for.
|
|
4394
4380
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4395
4381
|
* @returns A promise that resolves to the WalletConnect catalog wallet entry, or undefined if not found.
|
|
4396
|
-
* @
|
|
4382
|
+
* @notInstrumented
|
|
4397
4383
|
*/
|
|
4398
4384
|
const getWalletConnectCatalogWalletByWalletProviderKey = async ({ walletProviderKey }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
4399
4385
|
const { normalizedWalletNameWithChain } = require_InvalidParamError.splitWalletProviderKey(walletProviderKey);
|
|
@@ -4499,7 +4485,7 @@ const __acknowledgeRecoveryCodes_wrapped = require_InvalidParamError.instrumentF
|
|
|
4499
4485
|
* @param [params.requestedScopes] - Optional scopes to request an elevated access token instead of an MFA token.
|
|
4500
4486
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4501
4487
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4502
|
-
* @
|
|
4488
|
+
* @notInstrumented
|
|
4503
4489
|
*/
|
|
4504
4490
|
const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, requestedScopes }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
4505
4491
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -4530,7 +4516,7 @@ const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, reques
|
|
|
4530
4516
|
|
|
4531
4517
|
//#endregion
|
|
4532
4518
|
//#region src/modules/auth/passkeys/getPasskeyAuthenticationOptions/getPasskeyAuthenticationOptions.ts
|
|
4533
|
-
/** @
|
|
4519
|
+
/** @notInstrumented */
|
|
4534
4520
|
const getPasskeyAuthenticationOptions = async ({ relatedOriginRpId } = {}, client) => {
|
|
4535
4521
|
const core = require_InvalidParamError.getCore(client);
|
|
4536
4522
|
return await require_InvalidParamError.createApiClient({}, client).getPasskeyAuthenticationOptions({
|
|
@@ -4541,7 +4527,7 @@ const getPasskeyAuthenticationOptions = async ({ relatedOriginRpId } = {}, clien
|
|
|
4541
4527
|
|
|
4542
4528
|
//#endregion
|
|
4543
4529
|
//#region src/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.ts
|
|
4544
|
-
/** @
|
|
4530
|
+
/** @notInstrumented */
|
|
4545
4531
|
const serverAuthenticatePasskey = async ({ authentication, createMfaToken, requestedScopes }, client) => {
|
|
4546
4532
|
const core = require_InvalidParamError.getCore(client);
|
|
4547
4533
|
return await require_InvalidParamError.createApiClient({}, client).authenticateMfaPasskeyDevice({
|
|
@@ -4572,7 +4558,7 @@ const serverAuthenticatePasskey = async ({ authentication, createMfaToken, reque
|
|
|
4572
4558
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4573
4559
|
* @throws NoWebAuthNSupportError If WebAuthn is not supported by the browser.
|
|
4574
4560
|
* @throws NoPasskeyCredentialsFoundError If no passkey credentials are found.
|
|
4575
|
-
* @
|
|
4561
|
+
* @notInstrumented
|
|
4576
4562
|
*/
|
|
4577
4563
|
const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, requestedScopes } = {}, client = require_InvalidParamError.getDefaultClient()) => {
|
|
4578
4564
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -4622,7 +4608,7 @@ const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, reque
|
|
|
4622
4608
|
* @param [params.requestedScopes] - Optional scopes to request an elevated access token instead of an MFA token.
|
|
4623
4609
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4624
4610
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4625
|
-
* @
|
|
4611
|
+
* @notInstrumented
|
|
4626
4612
|
*/
|
|
4627
4613
|
const authenticateTotpMfaDevice = async ({ deviceId, code, createMfaTokenOptions, requestedScopes }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
4628
4614
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -4741,7 +4727,7 @@ const __deleteMfaDevice_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
4741
4727
|
*
|
|
4742
4728
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4743
4729
|
* @returns A promise that resolves to an array of the user's registered MFA devices.
|
|
4744
|
-
* @
|
|
4730
|
+
* @notInstrumented
|
|
4745
4731
|
*/
|
|
4746
4732
|
const getMfaDevices = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
4747
4733
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -4761,31 +4747,13 @@ const getMfaDevices = async (client = require_InvalidParamError.getDefaultClient
|
|
|
4761
4747
|
*
|
|
4762
4748
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4763
4749
|
* @returns A promise that resolves to the user's MFA recovery codes.
|
|
4764
|
-
* @
|
|
4750
|
+
* @notInstrumented
|
|
4765
4751
|
*/
|
|
4766
4752
|
const getMfaRecoveryCodes = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
4767
4753
|
const core = require_InvalidParamError.getCore(client);
|
|
4768
4754
|
return require_InvalidParamError.createApiClient({}, client).getRecoveryCodes({ environmentId: core.environmentId });
|
|
4769
4755
|
};
|
|
4770
4756
|
|
|
4771
|
-
//#endregion
|
|
4772
|
-
//#region src/modules/mfa/isPendingRecoveryCodesAcknowledgment/isPendingRecoveryCodesAcknowledgment.ts
|
|
4773
|
-
/**
|
|
4774
|
-
* Checks if the user is still pending acknowledgment of their MFA recovery codes.
|
|
4775
|
-
*
|
|
4776
|
-
* This function determines whether the user has been presented with recovery
|
|
4777
|
-
* codes that they have not yet acknowledged as saved or backed up.
|
|
4778
|
-
*
|
|
4779
|
-
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4780
|
-
* @returns True if recovery codes are pending acknowledgment, false otherwise.
|
|
4781
|
-
* @not-instrumented
|
|
4782
|
-
*/
|
|
4783
|
-
const isPendingRecoveryCodesAcknowledgment = (client = require_InvalidParamError.getDefaultClient()) => {
|
|
4784
|
-
const user = client.user;
|
|
4785
|
-
require_InvalidParamError.assertDefined(user, "User not logged in");
|
|
4786
|
-
return user.mfaBackupCodeAcknowledgement === _dynamic_labs_sdk_api_core.MfaBackupCodeAcknowledgement.Pending;
|
|
4787
|
-
};
|
|
4788
|
-
|
|
4789
4757
|
//#endregion
|
|
4790
4758
|
//#region src/modules/mfa/registerTotpMfaDevice/registerTotpMfaDevice.ts
|
|
4791
4759
|
/**
|
|
@@ -4867,7 +4835,7 @@ const __setDefaultMfaDevice_wrapped = require_InvalidParamError.instrumentFuncti
|
|
|
4867
4835
|
const sendEmailOTP = async ({ email }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
4868
4836
|
const core = require_InvalidParamError.getCore(client);
|
|
4869
4837
|
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
4870
|
-
|
|
4838
|
+
require_isUserOnboardingComplete.preconnectWaasIframe(client);
|
|
4871
4839
|
const { verificationUUID } = await apiClient.createEmailVerification({
|
|
4872
4840
|
emailVerificationCreateRequest: {
|
|
4873
4841
|
captchaToken: require_getNetworkProviderFromNetworkId.consumeCaptchaToken(client),
|
|
@@ -5831,7 +5799,7 @@ const sendSmsOTP = async ({ isoCountryCode, phoneNumber }, client = require_Inva
|
|
|
5831
5799
|
const core = require_InvalidParamError.getCore(client);
|
|
5832
5800
|
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
5833
5801
|
const phoneCountryCode = supportedCountries[isoCountryCode].code;
|
|
5834
|
-
|
|
5802
|
+
require_isUserOnboardingComplete.preconnectWaasIframe(client);
|
|
5835
5803
|
const { verificationUUID } = await apiClient.createSmsVerification({
|
|
5836
5804
|
environmentId: core.environmentId,
|
|
5837
5805
|
smsVerificationCreateRequest: {
|
|
@@ -5864,7 +5832,7 @@ const __sendSmsOTP_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
5864
5832
|
|
|
5865
5833
|
//#endregion
|
|
5866
5834
|
//#region src/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.ts
|
|
5867
|
-
/** @
|
|
5835
|
+
/** @notInstrumented */
|
|
5868
5836
|
const verifyOTPForUserSignIn = async ({ otpVerification, verificationToken }, client) => {
|
|
5869
5837
|
const core = require_InvalidParamError.getCore(client);
|
|
5870
5838
|
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
@@ -5884,7 +5852,7 @@ const verifyOTPForUserSignIn = async ({ otpVerification, verificationToken }, cl
|
|
|
5884
5852
|
|
|
5885
5853
|
//#endregion
|
|
5886
5854
|
//#region src/modules/otp/verifyOTP/verifyOTPForUserUpdate/verifyOTPForUserUpdate.ts
|
|
5887
|
-
/** @
|
|
5855
|
+
/** @notInstrumented */
|
|
5888
5856
|
const verifyOTPForUserUpdate = async ({ otpVerification, verificationToken, requestedScopes }, client) => {
|
|
5889
5857
|
const core = require_InvalidParamError.getCore(client);
|
|
5890
5858
|
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
@@ -5919,7 +5887,7 @@ const verifyOTPForUserUpdate = async ({ otpVerification, verificationToken, requ
|
|
|
5919
5887
|
* @redact-params
|
|
5920
5888
|
*/
|
|
5921
5889
|
const verifyOTP = async ({ otpVerification, verificationToken, requestedScopes }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
5922
|
-
|
|
5890
|
+
require_isUserOnboardingComplete.preconnectWaasIframe(client);
|
|
5923
5891
|
let response;
|
|
5924
5892
|
if (client.user) response = await verifyOTPForUserUpdate({
|
|
5925
5893
|
otpVerification,
|
|
@@ -5955,7 +5923,7 @@ const __verifyOTP_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
5955
5923
|
* @param params GetSwapQuoteParams - The parameters for the swap quote.
|
|
5956
5924
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
5957
5925
|
* @returns The swap quote details. Use the `signingPayload` field to get the transaction data for the wallet to sign.
|
|
5958
|
-
* @
|
|
5926
|
+
* @notInstrumented
|
|
5959
5927
|
*/
|
|
5960
5928
|
const getSwapQuote = async (params, client = require_InvalidParamError.getDefaultClient()) => {
|
|
5961
5929
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -5990,7 +5958,7 @@ const getSwapQuote = async (params, client = require_InvalidParamError.getDefaul
|
|
|
5990
5958
|
* @param params GetSwapStatusParams - The parameters for the swap status.
|
|
5991
5959
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
5992
5960
|
* @returns The swap status.
|
|
5993
|
-
* @
|
|
5961
|
+
* @notInstrumented
|
|
5994
5962
|
*/
|
|
5995
5963
|
const getSwapStatus = async (params, client = require_InvalidParamError.getDefaultClient()) => {
|
|
5996
5964
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -6056,28 +6024,6 @@ const __deleteUser_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
6056
6024
|
}
|
|
6057
6025
|
});
|
|
6058
6026
|
|
|
6059
|
-
//#endregion
|
|
6060
|
-
//#region src/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.ts
|
|
6061
|
-
/**
|
|
6062
|
-
* Checks if the user has completed all onboarding requirements.
|
|
6063
|
-
*
|
|
6064
|
-
* This function verifies whether a user has fulfilled all necessary requirements
|
|
6065
|
-
* including KYC fields (Know Your Customer information) and MFA setup
|
|
6066
|
-
* (Multi-Factor Authentication including recovery codes acknowledgment).
|
|
6067
|
-
*
|
|
6068
|
-
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
6069
|
-
* @returns True if onboarding is complete (no pending requirements), false if there are pending requirements.
|
|
6070
|
-
* @not-instrumented
|
|
6071
|
-
*/
|
|
6072
|
-
const isUserOnboardingComplete = (client = require_InvalidParamError.getDefaultClient()) => {
|
|
6073
|
-
const user = client.user;
|
|
6074
|
-
require_InvalidParamError.assertDefined(user, "User not logged in");
|
|
6075
|
-
const hasMissingKycFields = Boolean(user.missingFields?.length);
|
|
6076
|
-
const hasPendingMfaAuth = require_getWalletProviderByKey.isUserMissingMfaAuth(client);
|
|
6077
|
-
const hasPendingRecoveryCodes = isPendingRecoveryCodesAcknowledgment(client);
|
|
6078
|
-
return !hasMissingKycFields && !hasPendingMfaAuth && !hasPendingRecoveryCodes;
|
|
6079
|
-
};
|
|
6080
|
-
|
|
6081
6027
|
//#endregion
|
|
6082
6028
|
//#region src/modules/walletBackup/googleDrive/constants.ts
|
|
6083
6029
|
/**
|
|
@@ -6108,7 +6054,7 @@ const ACCESS_DENIED_PHRASE = "Google Drive access denied";
|
|
|
6108
6054
|
*
|
|
6109
6055
|
* @param grantedScopes - Scopes the user has granted to their Google account.
|
|
6110
6056
|
* @returns The subset of required scopes that are still missing.
|
|
6111
|
-
* @
|
|
6057
|
+
* @notInstrumented
|
|
6112
6058
|
*/
|
|
6113
6059
|
const findMissingGoogleDriveBackupScopes = (grantedScopes) => GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES.filter((required) => !grantedScopes.includes(required));
|
|
6114
6060
|
|
|
@@ -6126,7 +6072,7 @@ const findMissingGoogleDriveBackupScopes = (grantedScopes) => GOOGLE_DRIVE_BACKU
|
|
|
6126
6072
|
* Google account (see `findGoogleOauthAccountId`).
|
|
6127
6073
|
* @param client - The Dynamic client instance.
|
|
6128
6074
|
* @returns The OAuth access token and granted scopes.
|
|
6129
|
-
* @
|
|
6075
|
+
* @notInstrumented
|
|
6130
6076
|
*/
|
|
6131
6077
|
const fetchGoogleDriveOauthAccess = async ({ oauthAccountId }, client) => {
|
|
6132
6078
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -6151,7 +6097,7 @@ const fetchGoogleDriveOauthAccess = async ({ oauthAccountId }, client) => {
|
|
|
6151
6097
|
* `client.user?.verifiedCredentials`.
|
|
6152
6098
|
* @returns The credential id of the linked Google oauth account, or
|
|
6153
6099
|
* `undefined`.
|
|
6154
|
-
* @
|
|
6100
|
+
* @notInstrumented
|
|
6155
6101
|
*/
|
|
6156
6102
|
const findGoogleOauthAccountId = (credentials) => credentials?.find((cred) => cred.format === _dynamic_labs_sdk_api_core.JwtVerifiedCredentialFormatEnum.Oauth && cred.oauthProvider === _dynamic_labs_sdk_api_core.ProviderEnum.Google)?.id;
|
|
6157
6103
|
|
|
@@ -6235,7 +6181,7 @@ const __getGoogleDriveBackupReadiness_wrapped = require_InvalidParamError.instru
|
|
|
6235
6181
|
*
|
|
6236
6182
|
* @param grantedScopes - Scopes the user has granted to their Google account.
|
|
6237
6183
|
* @returns `true` when every required scope is granted, otherwise `false`.
|
|
6238
|
-
* @
|
|
6184
|
+
* @notInstrumented
|
|
6239
6185
|
*/
|
|
6240
6186
|
const hasAllGoogleDriveBackupScopes = (grantedScopes) => findMissingGoogleDriveBackupScopes(grantedScopes).length === 0;
|
|
6241
6187
|
|
|
@@ -6252,7 +6198,7 @@ const hasAllGoogleDriveBackupScopes = (grantedScopes) => findMissingGoogleDriveB
|
|
|
6252
6198
|
* @param err - The unknown value to check.
|
|
6253
6199
|
* @returns `true` when `err` is an `Error` whose message indicates Google
|
|
6254
6200
|
* Drive access was denied.
|
|
6255
|
-
* @
|
|
6201
|
+
* @notInstrumented
|
|
6256
6202
|
*/
|
|
6257
6203
|
const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && err.message.includes(ACCESS_DENIED_PHRASE);
|
|
6258
6204
|
|
|
@@ -6260,57 +6206,57 @@ const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && er
|
|
|
6260
6206
|
//#region src/utils/isMobile/isMobile.ts
|
|
6261
6207
|
/**
|
|
6262
6208
|
* Sourced from http://detectmobilebrowsers.com/
|
|
6263
|
-
* @
|
|
6209
|
+
* @notInstrumented
|
|
6264
6210
|
*/
|
|
6265
6211
|
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;
|
|
6266
6212
|
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;
|
|
6267
|
-
/** @
|
|
6213
|
+
/** @notInstrumented */
|
|
6268
6214
|
const isMobile = (maxTouchPointsOverride) => {
|
|
6269
6215
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6270
6216
|
return userAgentRegex1.test(navigator.userAgent) || userAgentRegex2.test(navigator.userAgent.substring(0, 4)) || isIPad(maxTouchPointsOverride) || isIPhone();
|
|
6271
6217
|
};
|
|
6272
|
-
/** @
|
|
6218
|
+
/** @notInstrumented */
|
|
6273
6219
|
const isIPhone = () => typeof window === "undefined" || typeof navigator === "undefined" ? false : /iPhone|ios/.test(navigator.userAgent);
|
|
6274
6220
|
/**
|
|
6275
6221
|
* @param [optional] maxTouchPointsOverride - this is used for testing since
|
|
6276
6222
|
* it seems that JSDOM doesn't support maxTouchPoints, so it was impossible
|
|
6277
6223
|
* to mock it
|
|
6278
|
-
* @
|
|
6224
|
+
* @notInstrumented
|
|
6279
6225
|
*/
|
|
6280
6226
|
const isIPad = (maxTouchPointsOverride) => {
|
|
6281
6227
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6282
6228
|
const maxTouchPoints = maxTouchPointsOverride || navigator.maxTouchPoints;
|
|
6283
6229
|
return /iPad/.test(navigator.userAgent) || /Mac/.test(navigator.userAgent) && maxTouchPoints === 5;
|
|
6284
6230
|
};
|
|
6285
|
-
/** @
|
|
6231
|
+
/** @notInstrumented */
|
|
6286
6232
|
const isIOS = (maxTouchPointsOverride) => {
|
|
6287
6233
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6288
6234
|
return isIPhone() || isIPad(maxTouchPointsOverride);
|
|
6289
6235
|
};
|
|
6290
|
-
/** @
|
|
6236
|
+
/** @notInstrumented */
|
|
6291
6237
|
const isAndroid = () => isMobile() && !isIOS();
|
|
6292
|
-
/** @
|
|
6238
|
+
/** @notInstrumented */
|
|
6293
6239
|
const isSafariBrowser = () => {
|
|
6294
6240
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6295
6241
|
const { userAgent } = navigator;
|
|
6296
6242
|
return userAgent.includes("Safari") && !userAgent.includes("Chrome") && !userAgent.includes("Chromium");
|
|
6297
6243
|
};
|
|
6298
|
-
/** @
|
|
6244
|
+
/** @notInstrumented */
|
|
6299
6245
|
const isEdgeBrowser = () => {
|
|
6300
6246
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6301
6247
|
return /\bEdg\//.test(navigator.userAgent);
|
|
6302
6248
|
};
|
|
6303
|
-
/** @
|
|
6249
|
+
/** @notInstrumented */
|
|
6304
6250
|
const isOperaBrowser = () => {
|
|
6305
6251
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6306
6252
|
return /\b(OPR|Opera)\//.test(navigator.userAgent);
|
|
6307
6253
|
};
|
|
6308
|
-
/** @
|
|
6254
|
+
/** @notInstrumented */
|
|
6309
6255
|
const isFirefoxBrowser = () => {
|
|
6310
6256
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6311
6257
|
return /\bFirefox\//.test(navigator.userAgent);
|
|
6312
6258
|
};
|
|
6313
|
-
/** @
|
|
6259
|
+
/** @notInstrumented */
|
|
6314
6260
|
const isChromeBrowser = () => {
|
|
6315
6261
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6316
6262
|
return /\bChrome\//.test(navigator.userAgent) && !isEdgeBrowser() && !isOperaBrowser();
|
|
@@ -6344,7 +6290,7 @@ const isChromeBrowser = () => {
|
|
|
6344
6290
|
* @param params.installationUrls - The wallet option's `installationUrls`
|
|
6345
6291
|
* record (from `getWalletOptionsCatalogue`).
|
|
6346
6292
|
* @returns The install URL for the detected platform, or `undefined`.
|
|
6347
|
-
* @
|
|
6293
|
+
* @notInstrumented
|
|
6348
6294
|
*/
|
|
6349
6295
|
const getInstallationLinkForCurrentPlatform = ({ installationUrls }) => {
|
|
6350
6296
|
if (isIOS()) return installationUrls.ios;
|
|
@@ -6370,7 +6316,7 @@ const getInstallationLinkForCurrentPlatform = ({ installationUrls }) => {
|
|
|
6370
6316
|
* @param params.wallet - The wallet entry.
|
|
6371
6317
|
* @param params.walletKey - The wallet's key in `walletBook.wallets`.
|
|
6372
6318
|
* @returns The wallet option key.
|
|
6373
|
-
* @
|
|
6319
|
+
* @notInstrumented
|
|
6374
6320
|
*/
|
|
6375
6321
|
const resolveWalletBookWalletOptionKey = ({ wallet, walletKey }) => wallet.group ?? wallet.chainGroup ?? wallet.walletGroup ?? walletKey;
|
|
6376
6322
|
|
|
@@ -6385,7 +6331,7 @@ const resolveWalletBookWalletOptionKey = ({ wallet, walletKey }) => wallet.group
|
|
|
6385
6331
|
*
|
|
6386
6332
|
* @param params.wallet - The wallet book wallet entry.
|
|
6387
6333
|
* @returns The in-app browser URL, or `undefined` if neither field is set.
|
|
6388
|
-
* @
|
|
6334
|
+
* @notInstrumented
|
|
6389
6335
|
*/
|
|
6390
6336
|
const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wallet.mobile?.inAppBrowser ?? void 0;
|
|
6391
6337
|
|
|
@@ -6403,7 +6349,7 @@ const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wall
|
|
|
6403
6349
|
*
|
|
6404
6350
|
* @param params.walletBook - The fetched wallet book.
|
|
6405
6351
|
* @returns Tagged `inAppBrowser` options paired with their wallet option keys.
|
|
6406
|
-
* @
|
|
6352
|
+
* @notInstrumented
|
|
6407
6353
|
*/
|
|
6408
6354
|
const buildInAppBrowserOptions = ({ walletBook }) => {
|
|
6409
6355
|
const result = [];
|
|
@@ -6450,7 +6396,7 @@ const EDGE_ADDONS_URL_TEMPLATE = "https://microsoftedge.microsoft.com/addons/det
|
|
|
6450
6396
|
*
|
|
6451
6397
|
* @param params.wallet - The wallet book entry.
|
|
6452
6398
|
* @returns The URL bag, omitting fields the wallet does not provide.
|
|
6453
|
-
* @
|
|
6399
|
+
* @notInstrumented
|
|
6454
6400
|
*/
|
|
6455
6401
|
const buildInstallationUrls = ({ wallet }) => {
|
|
6456
6402
|
const androidId = wallet.mobile?.androidId;
|
|
@@ -6494,7 +6440,7 @@ const hasAnyInstallationUrl = ({ urls }) => Object.values(urls).some(Boolean);
|
|
|
6494
6440
|
*
|
|
6495
6441
|
* @param params.walletBook - The fetched wallet book.
|
|
6496
6442
|
* @returns A map from wallet option key to its install URL bag.
|
|
6497
|
-
* @
|
|
6443
|
+
* @notInstrumented
|
|
6498
6444
|
*/
|
|
6499
6445
|
const buildInstallationUrlsByWalletOptionKey = ({ walletBook }) => {
|
|
6500
6446
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -6525,7 +6471,7 @@ const buildInstallationUrlsByWalletOptionKey = ({ walletBook }) => {
|
|
|
6525
6471
|
*
|
|
6526
6472
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
6527
6473
|
* @returns True when the wallet has a native or universal mobile link.
|
|
6528
|
-
* @
|
|
6474
|
+
* @notInstrumented
|
|
6529
6475
|
*/
|
|
6530
6476
|
const hasUsableDeeplink = ({ wallet }) => Boolean(wallet.mobile?.native || wallet.mobile?.universal);
|
|
6531
6477
|
|
|
@@ -6564,7 +6510,7 @@ const METAMASK_SDK_URI_SUPPORTED_CHAINS = ["EVM", "SOL"];
|
|
|
6564
6510
|
*
|
|
6565
6511
|
* @param params.walletBook - The fetched wallet book.
|
|
6566
6512
|
* @returns Tagged `metamaskSdkUri` options for MetaMask if eligible, otherwise an empty array.
|
|
6567
|
-
* @
|
|
6513
|
+
* @notInstrumented
|
|
6568
6514
|
*/
|
|
6569
6515
|
const buildMetaMaskSdkUriOptions = ({ walletBook }) => {
|
|
6570
6516
|
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) {
|
|
@@ -6611,7 +6557,7 @@ const buildMetaMaskSdkUriOptions = ({ walletBook }) => {
|
|
|
6611
6557
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
6612
6558
|
* @param [params.walletKey] - The wallet key identifier (used as last-resort fallback).
|
|
6613
6559
|
* @returns Ordered, deduped array of Chains.
|
|
6614
|
-
* @
|
|
6560
|
+
* @notInstrumented
|
|
6615
6561
|
*/
|
|
6616
6562
|
const getChainsFromWalletSchema = ({ wallet, walletKey }) => {
|
|
6617
6563
|
const chains = /* @__PURE__ */ new Set();
|
|
@@ -6662,7 +6608,7 @@ const WALLETCONNECT_SUPPORTED_CHAINS = new Set(["EVM", "SOL"]);
|
|
|
6662
6608
|
*
|
|
6663
6609
|
* @param params.walletBook - The fetched wallet book.
|
|
6664
6610
|
* @returns Tagged `walletConnect` options paired with their wallet option keys.
|
|
6665
|
-
* @
|
|
6611
|
+
* @notInstrumented
|
|
6666
6612
|
*/
|
|
6667
6613
|
const buildWalletConnectOptions = ({ walletBook }) => {
|
|
6668
6614
|
const result = [];
|
|
@@ -6729,7 +6675,7 @@ const buildWalletConnectOptions = ({ walletBook }) => {
|
|
|
6729
6675
|
* @param params.walletBook - The fetched wallet book.
|
|
6730
6676
|
* @param params.walletOptionKey - The wallet option key.
|
|
6731
6677
|
* @returns The constructed wallet option.
|
|
6732
|
-
* @
|
|
6678
|
+
* @notInstrumented
|
|
6733
6679
|
*/
|
|
6734
6680
|
const buildWalletOption = ({ connectionOptions, displayOverride, installationUrls, walletBook, walletOptionKey }) => {
|
|
6735
6681
|
const group = walletBook.groups[walletOptionKey];
|
|
@@ -6767,7 +6713,7 @@ const buildWalletOption = ({ connectionOptions, displayOverride, installationUrl
|
|
|
6767
6713
|
*
|
|
6768
6714
|
* @param params.walletProvider - The wallet provider to test.
|
|
6769
6715
|
* @returns True when the provider exposes a `connect` method.
|
|
6770
|
-
* @
|
|
6716
|
+
* @notInstrumented
|
|
6771
6717
|
*/
|
|
6772
6718
|
const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletProvider.connect);
|
|
6773
6719
|
|
|
@@ -6794,7 +6740,7 @@ const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletPro
|
|
|
6794
6740
|
* @param params.entry - The registry entry to classify.
|
|
6795
6741
|
* @returns The matching source, or `undefined` if this entry should not
|
|
6796
6742
|
* surface a `withWalletProvider` option.
|
|
6797
|
-
* @
|
|
6743
|
+
* @notInstrumented
|
|
6798
6744
|
*/
|
|
6799
6745
|
const classifyWithWalletProviderSource = ({ entry }) => {
|
|
6800
6746
|
const { priority } = entry;
|
|
@@ -6815,7 +6761,7 @@ const classifyWithWalletProviderSource = ({ entry }) => {
|
|
|
6815
6761
|
* @param params.chain - The chain whose suffix should be stripped.
|
|
6816
6762
|
* @param params.normalizedName - The normalized wallet-name-with-chain string.
|
|
6817
6763
|
* @returns The name with the chain suffix removed, or the input unchanged.
|
|
6818
|
-
* @
|
|
6764
|
+
* @notInstrumented
|
|
6819
6765
|
*/
|
|
6820
6766
|
const stripChainSuffix = ({ chain, normalizedName }) => {
|
|
6821
6767
|
const suffix = chain.toLowerCase();
|
|
@@ -6844,7 +6790,7 @@ const stripChainSuffix = ({ chain, normalizedName }) => {
|
|
|
6844
6790
|
*
|
|
6845
6791
|
* @param displayName - The provider's `metadata.displayName`.
|
|
6846
6792
|
* @returns The normalized wallet option key (lowercased, no whitespace).
|
|
6847
|
-
* @
|
|
6793
|
+
* @notInstrumented
|
|
6848
6794
|
*/
|
|
6849
6795
|
const normalizeWalletDisplayName = (displayName) => displayName.toLowerCase().replace(/\s+/g, "");
|
|
6850
6796
|
|
|
@@ -6862,7 +6808,7 @@ const normalize = (value) => value === void 0 ? void 0 : value.toLowerCase().rep
|
|
|
6862
6808
|
* @param params.candidate - The lowercased, chain-suffix-stripped candidate.
|
|
6863
6809
|
* @param params.walletBook - The fetched wallet book.
|
|
6864
6810
|
* @returns The matching wallet book wallet key, or `undefined`.
|
|
6865
|
-
* @
|
|
6811
|
+
* @notInstrumented
|
|
6866
6812
|
*/
|
|
6867
6813
|
const findByNameMatch = ({ candidate, walletBook }) => {
|
|
6868
6814
|
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) if (normalize(wallet.name) === candidate || normalize(wallet.shortName) === candidate) return walletKey;
|
|
@@ -6880,7 +6826,7 @@ const findByNameMatch = ({ candidate, walletBook }) => {
|
|
|
6880
6826
|
* @param params.fallback - Wallet key to return if no group field is set.
|
|
6881
6827
|
* @param params.wallet - The wallet book wallet entry.
|
|
6882
6828
|
* @returns The resolved wallet option key.
|
|
6883
|
-
* @
|
|
6829
|
+
* @notInstrumented
|
|
6884
6830
|
*/
|
|
6885
6831
|
const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.chainGroup ?? wallet.walletGroup ?? fallback;
|
|
6886
6832
|
|
|
@@ -6917,7 +6863,7 @@ const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.
|
|
|
6917
6863
|
* @param params.walletBook - The fetched wallet book.
|
|
6918
6864
|
* @param params.walletProvider - The registered wallet provider.
|
|
6919
6865
|
* @returns The wallet option key for this provider.
|
|
6920
|
-
* @
|
|
6866
|
+
* @notInstrumented
|
|
6921
6867
|
*/
|
|
6922
6868
|
const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }) => {
|
|
6923
6869
|
const { normalizedWalletNameWithChain } = require_InvalidParamError.splitWalletProviderKey(walletProvider.key);
|
|
@@ -6965,7 +6911,7 @@ const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }
|
|
|
6965
6911
|
* @param params.walletBook - The fetched wallet book.
|
|
6966
6912
|
* @param client - The Dynamic client (used for logging unclassifiable entries).
|
|
6967
6913
|
* @returns An array of tagged options, in input order.
|
|
6968
|
-
* @
|
|
6914
|
+
* @notInstrumented
|
|
6969
6915
|
*/
|
|
6970
6916
|
const buildWithWalletProviderOptions = ({ entries, walletBook }, client) => {
|
|
6971
6917
|
const result = [];
|
|
@@ -7037,7 +6983,7 @@ const EXCLUDED_WALLET_OPTION_KEYS = new Set(["coinbase", "coinbasewallet"]);
|
|
|
7037
6983
|
* @param params.options - The tagged options to group.
|
|
7038
6984
|
* @returns A map from wallet option key to its grouped option bucket,
|
|
7039
6985
|
* iterable in first-seen order.
|
|
7040
|
-
* @
|
|
6986
|
+
* @notInstrumented
|
|
7041
6987
|
*/
|
|
7042
6988
|
const groupOptionsByWalletOption = ({ options }) => {
|
|
7043
6989
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -7077,7 +7023,7 @@ const CONNECTION_OPTION_PRIORITY = {
|
|
|
7077
7023
|
*
|
|
7078
7024
|
* @param params.option - The connection option to inspect.
|
|
7079
7025
|
* @returns The numeric priority — lower is better.
|
|
7080
|
-
* @
|
|
7026
|
+
* @notInstrumented
|
|
7081
7027
|
*/
|
|
7082
7028
|
const getConnectionOptionPriority = ({ option }) => CONNECTION_OPTION_PRIORITY[option.type];
|
|
7083
7029
|
|
|
@@ -7094,7 +7040,7 @@ const getConnectionOptionPriority = ({ option }) => CONNECTION_OPTION_PRIORITY[o
|
|
|
7094
7040
|
*
|
|
7095
7041
|
* @param params.options - The options to sort.
|
|
7096
7042
|
* @returns A new array in priority order.
|
|
7097
|
-
* @
|
|
7043
|
+
* @notInstrumented
|
|
7098
7044
|
*/
|
|
7099
7045
|
const sortConnectionOptions = ({ options }) => [...options].sort((a, b) => {
|
|
7100
7046
|
const priorityDelta = getConnectionOptionPriority({ option: a }) - getConnectionOptionPriority({ option: b });
|
|
@@ -7142,7 +7088,7 @@ const PRIORITY_WALLET_KEYS = [
|
|
|
7142
7088
|
*
|
|
7143
7089
|
* @param params.walletOption - The wallet option to inspect.
|
|
7144
7090
|
* @returns Numeric priority index — lower is better.
|
|
7145
|
-
* @
|
|
7091
|
+
* @notInstrumented
|
|
7146
7092
|
*/
|
|
7147
7093
|
const getPriorityIndex = ({ walletOption }) => {
|
|
7148
7094
|
const index = PRIORITY_WALLET_KEYS.indexOf(walletOption.key);
|
|
@@ -7159,7 +7105,7 @@ const getPriorityIndex = ({ walletOption }) => {
|
|
|
7159
7105
|
* @param params.a - First wallet option.
|
|
7160
7106
|
* @param params.b - Second wallet option.
|
|
7161
7107
|
* @returns Negative when `a` ranks first, positive when `b` ranks first.
|
|
7162
|
-
* @
|
|
7108
|
+
* @notInstrumented
|
|
7163
7109
|
*/
|
|
7164
7110
|
const compareByRelevance = ({ a, b }) => {
|
|
7165
7111
|
const aIndex = getPriorityIndex({ walletOption: a });
|
|
@@ -7179,7 +7125,7 @@ const compareByRelevance = ({ a, b }) => {
|
|
|
7179
7125
|
*
|
|
7180
7126
|
* @param params.walletOption - The wallet option to inspect.
|
|
7181
7127
|
* @returns True when `connectionOptions` is non-empty.
|
|
7182
|
-
* @
|
|
7128
|
+
* @notInstrumented
|
|
7183
7129
|
*/
|
|
7184
7130
|
const hasAnyConnectionOption = ({ walletOption }) => walletOption.connectionOptions.length > 0;
|
|
7185
7131
|
|
|
@@ -7194,7 +7140,7 @@ const hasAnyConnectionOption = ({ walletOption }) => walletOption.connectionOpti
|
|
|
7194
7140
|
*
|
|
7195
7141
|
* @param params.walletOption - The wallet option to inspect.
|
|
7196
7142
|
* @returns True when an installed provider is available.
|
|
7197
|
-
* @
|
|
7143
|
+
* @notInstrumented
|
|
7198
7144
|
*/
|
|
7199
7145
|
const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOptions[0]?.type === "withWalletProvider";
|
|
7200
7146
|
|
|
@@ -7224,7 +7170,7 @@ const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOption
|
|
|
7224
7170
|
* @param params.walletOptions - The wallet options to sort.
|
|
7225
7171
|
* @param params.ordering - The requested ordering.
|
|
7226
7172
|
* @returns A new array in the requested order.
|
|
7227
|
-
* @
|
|
7173
|
+
* @notInstrumented
|
|
7228
7174
|
*/
|
|
7229
7175
|
const sortWalletOptions = ({ walletOptions, ordering }) => {
|
|
7230
7176
|
if (ordering === "alphabetical") return [...walletOptions].sort((a, b) => a.name.localeCompare(b.name, void 0, { sensitivity: "base" }));
|
|
@@ -7273,7 +7219,7 @@ const EMPTY_WALLET_BOOK = {
|
|
|
7273
7219
|
* @param [params] - Inclusion flag + ordering preference + exclusions.
|
|
7274
7220
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7275
7221
|
* @returns A promise that resolves to the wallet options catalogue.
|
|
7276
|
-
* @
|
|
7222
|
+
* @notInstrumented
|
|
7277
7223
|
*/
|
|
7278
7224
|
const getWalletOptionsCatalogue = async (params = {}, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7279
7225
|
const includeMobileOptions = params.includeMobileOptions ?? false;
|
|
@@ -7330,7 +7276,7 @@ const getWalletOptionsCatalogue = async (params = {}, client = require_InvalidPa
|
|
|
7330
7276
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7331
7277
|
* @returns A promise that resolves if the wallet is available for signing.
|
|
7332
7278
|
* @throws WalletAccountNotSelectedError If the wallet account is not currently selected.
|
|
7333
|
-
* @
|
|
7279
|
+
* @notInstrumented
|
|
7334
7280
|
*/
|
|
7335
7281
|
const assertWalletAccountSigningAvailability = async ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7336
7282
|
const { addresses } = await require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client).getConnectedAddresses();
|
|
@@ -7379,7 +7325,7 @@ const __confirmTransaction_wrapped = require_InvalidParamError.instrumentFunctio
|
|
|
7379
7325
|
|
|
7380
7326
|
//#endregion
|
|
7381
7327
|
//#region src/modules/wallets/utils/getAddressesWithTypesFromConnectionResult/getAddressesWithTypesFromConnectionResult.ts
|
|
7382
|
-
/** @
|
|
7328
|
+
/** @notInstrumented */
|
|
7383
7329
|
const getAddressesWithTypesFromConnectionResult = (connectionResult) => {
|
|
7384
7330
|
return connectionResult.addresses.filter((address) => !!address.address && !!address.type);
|
|
7385
7331
|
};
|
|
@@ -7454,13 +7400,13 @@ const __connectWithWalletProvider_wrapped = require_InvalidParamError.instrument
|
|
|
7454
7400
|
* @param params.hardwareWalletVendor - The hardware wallet vendor that produced the signature.
|
|
7455
7401
|
* @param params.signature - The raw signature string to wrap.
|
|
7456
7402
|
* @returns The signature wrapped in `{ signedTransaction: { data } }` JSON format.
|
|
7457
|
-
* @
|
|
7403
|
+
* @notInstrumented
|
|
7458
7404
|
*/
|
|
7459
7405
|
const formatSignatureForHardwareWallet = ({ signature, hardwareWalletVendor: _ }) => JSON.stringify({ signedTransaction: { data: signature } });
|
|
7460
7406
|
|
|
7461
7407
|
//#endregion
|
|
7462
7408
|
//#region src/modules/wallets/utils/getChainIdForAccountVerification/getChainIdForAccountVerification.ts
|
|
7463
|
-
/** @
|
|
7409
|
+
/** @notInstrumented */
|
|
7464
7410
|
const getChainIdForAccountVerification = async ({ walletProvider }) => {
|
|
7465
7411
|
if ([
|
|
7466
7412
|
"BTC",
|
|
@@ -7474,7 +7420,7 @@ const getChainIdForAccountVerification = async ({ walletProvider }) => {
|
|
|
7474
7420
|
|
|
7475
7421
|
//#endregion
|
|
7476
7422
|
//#region src/modules/wallets/utils/getSignInMessage/getSignInMessage.ts
|
|
7477
|
-
/** @
|
|
7423
|
+
/** @notInstrumented */
|
|
7478
7424
|
const getSignInMessage = async ({ nonce: nonceOverride, walletAccount }, client) => {
|
|
7479
7425
|
const core = require_InvalidParamError.getCore(client);
|
|
7480
7426
|
const { appUniversalLink } = require_getNetworkProviderFromNetworkId.getAppMetadata(client);
|
|
@@ -7551,7 +7497,7 @@ const __proveWalletAccountOwnership_wrapped = require_InvalidParamError.instrume
|
|
|
7551
7497
|
|
|
7552
7498
|
//#endregion
|
|
7553
7499
|
//#region src/modules/wallets/utils/isSameAddress/isSameAddress.ts
|
|
7554
|
-
/** @
|
|
7500
|
+
/** @notInstrumented */
|
|
7555
7501
|
const isSameAddress = ({ chain, left, right }) => require_InvalidParamError.normalizeAddress({
|
|
7556
7502
|
address: left,
|
|
7557
7503
|
chain
|
|
@@ -7562,7 +7508,7 @@ const isSameAddress = ({ chain, left, right }) => require_InvalidParamError.norm
|
|
|
7562
7508
|
|
|
7563
7509
|
//#endregion
|
|
7564
7510
|
//#region src/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.ts
|
|
7565
|
-
/** @
|
|
7511
|
+
/** @notInstrumented */
|
|
7566
7512
|
const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfer, requestedScopes }, client) => {
|
|
7567
7513
|
if (walletAccount.verifiedCredentialId) throw new WalletAccountAlreadyVerifiedError(walletAccount.address);
|
|
7568
7514
|
const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7648,7 +7594,7 @@ const __verifyWalletAccount_wrapped = require_InvalidParamError.instrumentFuncti
|
|
|
7648
7594
|
//#region src/modules/wallets/walletProvider/isDeeplinkWalletProvider/isDeeplinkWalletProvider.ts
|
|
7649
7595
|
/**
|
|
7650
7596
|
* Returns true if the wallet provider uses the deep link protocol (e.g. Phantom redirect on mobile).
|
|
7651
|
-
* @
|
|
7597
|
+
* @notInstrumented
|
|
7652
7598
|
*/
|
|
7653
7599
|
const isDeeplinkWalletProvider = ({ walletProvider }) => walletProvider.walletProviderType === _dynamic_labs_sdk_api_core.WalletProviderEnum.DeepLink;
|
|
7654
7600
|
|
|
@@ -7715,7 +7661,7 @@ const __connectAndVerifyWithWalletProvider_wrapped = require_InvalidParamError.i
|
|
|
7715
7661
|
*
|
|
7716
7662
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7717
7663
|
* @returns An array of wallet provider data including chain, keys, and metadata.
|
|
7718
|
-
* @
|
|
7664
|
+
* @notInstrumented
|
|
7719
7665
|
* @hook Exposed as a hook so consumers get the reactive list of available wallet providers, updated when wallet providers change.
|
|
7720
7666
|
*/
|
|
7721
7667
|
const getAvailableWalletProvidersData = (client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -7739,7 +7685,7 @@ const getAvailableWalletProvidersData = (client = require_InvalidParamError.getD
|
|
|
7739
7685
|
* @param params.walletProviderKey - The unique key of the wallet provider to query.
|
|
7740
7686
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7741
7687
|
* @returns An array of connected wallet addresses.
|
|
7742
|
-
* @
|
|
7688
|
+
* @notInstrumented
|
|
7743
7689
|
*/
|
|
7744
7690
|
const getConnectedAddresses = ({ walletProviderKey }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7745
7691
|
return require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client).getConnectedAddresses();
|
|
@@ -7747,7 +7693,7 @@ const getConnectedAddresses = ({ walletProviderKey }, client = require_InvalidPa
|
|
|
7747
7693
|
|
|
7748
7694
|
//#endregion
|
|
7749
7695
|
//#region src/modules/wallets/getOwnerWalletAccountForSmartWalletAccount/getOwnerWalletAccountForSmartWalletAccount.ts
|
|
7750
|
-
/** @
|
|
7696
|
+
/** @notInstrumented */
|
|
7751
7697
|
const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7752
7698
|
const smartWalletVerifiedCredential = require_getWalletProviderByKey.getVerifiedCredentialForWalletAccount({ walletAccount: smartWalletAccount }, client);
|
|
7753
7699
|
require_InvalidParamError.assertDefined(smartWalletVerifiedCredential?.signerRefId, "Invalid smart wallet account");
|
|
@@ -7756,7 +7702,7 @@ const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, clie
|
|
|
7756
7702
|
|
|
7757
7703
|
//#endregion
|
|
7758
7704
|
//#region src/modules/wallets/getWalletAccountAddressByType/getWalletAccountAddressByType.ts
|
|
7759
|
-
/** @
|
|
7705
|
+
/** @notInstrumented */
|
|
7760
7706
|
const getWalletAccountAddressByType = ({ type, walletAccount }) => {
|
|
7761
7707
|
return walletAccount.addressesWithTypes?.find((address) => address.type === type)?.address;
|
|
7762
7708
|
};
|
|
@@ -7769,7 +7715,7 @@ const getWalletAccountAddressByType = ({ type, walletAccount }) => {
|
|
|
7769
7715
|
* @param params.walletProviderKey - The key of the wallet provider to retrieve data for.
|
|
7770
7716
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7771
7717
|
* @returns The data for the wallet provider.
|
|
7772
|
-
* @
|
|
7718
|
+
* @notInstrumented
|
|
7773
7719
|
*/
|
|
7774
7720
|
const getWalletProviderDataByKey = ({ walletProviderKey }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7775
7721
|
const { chain, groupKey, key, metadata, walletProviderType } = require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client);
|
|
@@ -7791,7 +7737,7 @@ const getWalletProviderDataByKey = ({ walletProviderKey }, client = require_Inva
|
|
|
7791
7737
|
* @param params.hardwareWalletVendor - The hardware wallet vendor to check for.
|
|
7792
7738
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7793
7739
|
* @returns Whether the wallet provider supports the specified hardware wallet vendor.
|
|
7794
|
-
* @
|
|
7740
|
+
* @notInstrumented
|
|
7795
7741
|
*/
|
|
7796
7742
|
const canConnectWithHardwareWallet = ({ walletProviderKey, hardwareWalletVendor }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7797
7743
|
return require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client).metadata.supportedHardwareWalletVendors?.includes(hardwareWalletVendor) ?? false;
|
|
@@ -7804,7 +7750,7 @@ const canConnectWithHardwareWallet = ({ walletProviderKey, hardwareWalletVendor
|
|
|
7804
7750
|
*
|
|
7805
7751
|
* @param params.walletAccount - The wallet account to check.
|
|
7806
7752
|
* @returns Whether the wallet account has a hardware wallet vendor set.
|
|
7807
|
-
* @
|
|
7753
|
+
* @notInstrumented
|
|
7808
7754
|
*/
|
|
7809
7755
|
const isHardwareWalletAccount = ({ walletAccount }) => walletAccount.hardwareWalletVendor !== void 0;
|
|
7810
7756
|
|
|
@@ -7820,7 +7766,7 @@ const isHardwareWalletAccount = ({ walletAccount }) => walletAccount.hardwareWal
|
|
|
7820
7766
|
*
|
|
7821
7767
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7822
7768
|
* @returns True if the session has at least one wallet account, false otherwise.
|
|
7823
|
-
* @
|
|
7769
|
+
* @notInstrumented
|
|
7824
7770
|
*/
|
|
7825
7771
|
const isAnyWalletAccountConnected = (client = require_InvalidParamError.getDefaultClient()) => require_InvalidParamError.getWalletAccounts(client).length > 0;
|
|
7826
7772
|
|
|
@@ -7831,7 +7777,7 @@ const isAnyWalletAccountConnected = (client = require_InvalidParamError.getDefau
|
|
|
7831
7777
|
*
|
|
7832
7778
|
* @param walletAccount - The wallet account to check.
|
|
7833
7779
|
* @returns True if the wallet account has been verified, false otherwise.
|
|
7834
|
-
* @
|
|
7780
|
+
* @notInstrumented
|
|
7835
7781
|
*/
|
|
7836
7782
|
const isWalletAccountVerified = ({ walletAccount }) => {
|
|
7837
7783
|
return walletAccount.verifiedCredentialId !== null;
|
|
@@ -7886,7 +7832,7 @@ const __addNetwork_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
7886
7832
|
* @param params.walletAccount - The wallet account to get network data for.
|
|
7887
7833
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7888
7834
|
* @returns A promise that resolves to the network data, or undefined if not found.
|
|
7889
|
-
* @
|
|
7835
|
+
* @notInstrumented
|
|
7890
7836
|
*/
|
|
7891
7837
|
const getActiveNetworkData = async ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7892
7838
|
const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7902,7 +7848,7 @@ const getActiveNetworkData = async ({ walletAccount }, client = require_InvalidP
|
|
|
7902
7848
|
* @param params.walletAccount - The wallet account to get the network ID for.
|
|
7903
7849
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7904
7850
|
* @returns A promise that resolves to the active network ID for the wallet account.
|
|
7905
|
-
* @
|
|
7851
|
+
* @notInstrumented
|
|
7906
7852
|
*/
|
|
7907
7853
|
const getActiveNetworkId = ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7908
7854
|
return require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client).getActiveNetworkId();
|
|
@@ -7923,7 +7869,7 @@ const getActiveNetworkId = ({ walletAccount }, client = require_InvalidParamErro
|
|
|
7923
7869
|
* @param params.walletAccount - The wallet account to get the balance for.
|
|
7924
7870
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7925
7871
|
* @returns A promise that resolves to an object containing the balance as a string or null.
|
|
7926
|
-
* @
|
|
7872
|
+
* @notInstrumented
|
|
7927
7873
|
*/
|
|
7928
7874
|
const getNativeBalance = async ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7929
7875
|
const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7942,7 +7888,7 @@ const getNativeBalance = async ({ walletAccount }, client = require_InvalidParam
|
|
|
7942
7888
|
* with the token-balance fetchers (`getTokenBalances` /
|
|
7943
7889
|
* `getMultichainTokenBalances`).
|
|
7944
7890
|
*
|
|
7945
|
-
* @
|
|
7891
|
+
* @notInstrumented
|
|
7946
7892
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
7947
7893
|
*/
|
|
7948
7894
|
const getBalance = (params, client = require_InvalidParamError.getDefaultClient()) => getNativeBalance(params, client);
|
|
@@ -7960,7 +7906,7 @@ const getBalance = (params, client = require_InvalidParamError.getDefaultClient(
|
|
|
7960
7906
|
* @param params.networkId - The specific network ID within the chain.
|
|
7961
7907
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7962
7908
|
* @returns A promise that resolves to an object containing the balance as a string or null.
|
|
7963
|
-
* @
|
|
7909
|
+
* @notInstrumented
|
|
7964
7910
|
*/
|
|
7965
7911
|
const getBalanceForAddress = async ({ address, chain, networkId }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7966
7912
|
const networkProvider = require_getNetworkProviderFromNetworkId.getNetworkProviderFromNetworkId({
|
|
@@ -7987,7 +7933,7 @@ const getBalanceForAddress = async ({ address, chain, networkId }, client = requ
|
|
|
7987
7933
|
* @param [params.tokenAddress] - Optional token contract address (EVM) or SPL mint address (Solana) to filter transaction history by token.
|
|
7988
7934
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7989
7935
|
* @returns A promise that resolves to the transaction history along with nextOffset for the given wallet address and chain.
|
|
7990
|
-
* @
|
|
7936
|
+
* @notInstrumented
|
|
7991
7937
|
*/
|
|
7992
7938
|
const getTransactionHistory = async (params, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7993
7939
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -8013,7 +7959,7 @@ const getTransactionHistory = async (params, client = require_InvalidParamError.
|
|
|
8013
7959
|
* @param params.walletAccount - The wallet account to check network switching support for.
|
|
8014
7960
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8015
7961
|
* @returns True if programmatic network switching is available, false otherwise.
|
|
8016
|
-
* @
|
|
7962
|
+
* @notInstrumented
|
|
8017
7963
|
*/
|
|
8018
7964
|
const isProgrammaticNetworkSwitchAvailable = ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
8019
7965
|
return require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey: walletAccount.walletProviderKey }, client).switchActiveNetwork !== void 0;
|
|
@@ -8095,7 +8041,7 @@ const __selectPrimaryWalletAccount_wrapped = require_InvalidParamError.instrumen
|
|
|
8095
8041
|
*
|
|
8096
8042
|
* The wallet account is not removed from the user's profile or from dynamic's state,
|
|
8097
8043
|
* it is only responsible for terminating the connection with the wallet provider.
|
|
8098
|
-
* @
|
|
8044
|
+
* @notInstrumented
|
|
8099
8045
|
*/
|
|
8100
8046
|
const disconnectWalletAccount = async ({ walletAccount }, client) => {
|
|
8101
8047
|
try {
|
|
@@ -8270,7 +8216,7 @@ const __transferWalletAccount_wrapped = require_InvalidParamError.instrumentFunc
|
|
|
8270
8216
|
* @param params.chain - The blockchain the wallet belongs to.
|
|
8271
8217
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8272
8218
|
* @returns The matching wallet account, or undefined if not found.
|
|
8273
|
-
* @
|
|
8219
|
+
* @notInstrumented
|
|
8274
8220
|
*/
|
|
8275
8221
|
const getWalletAccountFromAddress = ({ address, chain }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
8276
8222
|
return require_InvalidParamError.getWalletAccounts(client).find((walletAccount) => walletAccount.address === address && walletAccount.chain === chain);
|
|
@@ -8287,7 +8233,7 @@ const getWalletAccountFromAddress = ({ address, chain }, client = require_Invali
|
|
|
8287
8233
|
* @param params.event - The event name to remove the listener from.
|
|
8288
8234
|
* @param params.walletProviderKey - The unique key identifying the wallet provider to remove the listener from.
|
|
8289
8235
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8290
|
-
* @
|
|
8236
|
+
* @notInstrumented
|
|
8291
8237
|
*/
|
|
8292
8238
|
const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
8293
8239
|
const walletProvider = require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client);
|
|
@@ -8305,7 +8251,7 @@ const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client =
|
|
|
8305
8251
|
* @param params.walletProviderKey - The unique key identifying the wallet provider to listen to.
|
|
8306
8252
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8307
8253
|
* @returns A function that can be called to remove the listener.
|
|
8308
|
-
* @
|
|
8254
|
+
* @notInstrumented
|
|
8309
8255
|
* @hook Event listeners are error-prone to wire up by hand with useEffect.
|
|
8310
8256
|
*/
|
|
8311
8257
|
const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -8339,7 +8285,7 @@ const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client =
|
|
|
8339
8285
|
* appendConnectionUriToDeeplink({ deeplinkUrl: 'walletapp://wc?param=value', connectionUri: 'wc:123-456' })
|
|
8340
8286
|
* // Returns: 'walletapp://wc?param=value&uri=wc%3A123-456'
|
|
8341
8287
|
* ```
|
|
8342
|
-
* @
|
|
8288
|
+
* @notInstrumented
|
|
8343
8289
|
*/
|
|
8344
8290
|
const appendConnectionUriToDeeplink = ({ connectionUri, deeplinkUrl }) => {
|
|
8345
8291
|
const url = new URL(deeplinkUrl);
|
|
@@ -8410,7 +8356,7 @@ const osMatchers = [
|
|
|
8410
8356
|
pattern: /CrOS/
|
|
8411
8357
|
}
|
|
8412
8358
|
];
|
|
8413
|
-
/** @
|
|
8359
|
+
/** @notInstrumented */
|
|
8414
8360
|
const parseUserAgent = ({ userAgent }) => {
|
|
8415
8361
|
if (!userAgent?.trim()) return null;
|
|
8416
8362
|
const browser = browserMatchers.find(({ pattern }) => pattern.test(userAgent))?.name;
|
|
@@ -8470,6 +8416,7 @@ exports.UnrecognizedNetworkError = UnrecognizedNetworkError;
|
|
|
8470
8416
|
exports.UserCancelledSocialPopUpError = UserCancelledSocialPopUpError;
|
|
8471
8417
|
exports.UserNotAuthenticatedError = UserNotAuthenticatedError;
|
|
8472
8418
|
exports.UserRejectedError = UserRejectedError;
|
|
8419
|
+
exports.WaasOnboardingIncompleteError = require_isUserOnboardingComplete.WaasOnboardingIncompleteError;
|
|
8473
8420
|
exports.WalletAccountAlreadyVerifiedError = WalletAccountAlreadyVerifiedError;
|
|
8474
8421
|
exports.WalletAccountNotSelectedError = WalletAccountNotSelectedError;
|
|
8475
8422
|
exports.WalletAlreadyLinkedToAnotherUserError = require_getNetworkProviderFromNetworkId.WalletAlreadyLinkedToAnotherUserError;
|
|
@@ -8566,16 +8513,16 @@ exports.initializeClient = __initializeClient_wrapped;
|
|
|
8566
8513
|
exports.isAnyWalletAccountConnected = isAnyWalletAccountConnected;
|
|
8567
8514
|
exports.isCaptchaRequired = require_getNetworkProviderFromNetworkId.isCaptchaRequired;
|
|
8568
8515
|
exports.isDeeplinkWalletProvider = isDeeplinkWalletProvider;
|
|
8569
|
-
exports.isDeviceRegistrationRequired = isDeviceRegistrationRequired;
|
|
8516
|
+
exports.isDeviceRegistrationRequired = require_isUserOnboardingComplete.isDeviceRegistrationRequired;
|
|
8570
8517
|
exports.isHardwareWalletAccount = isHardwareWalletAccount;
|
|
8571
8518
|
exports.isInsufficientGoogleDriveScopesError = isInsufficientGoogleDriveScopesError;
|
|
8572
8519
|
exports.isMfaRequiredForAction = require_isMfaRequiredForAction.isMfaRequiredForAction;
|
|
8573
8520
|
exports.isMobile = isMobile;
|
|
8574
|
-
exports.isPendingRecoveryCodesAcknowledgment = isPendingRecoveryCodesAcknowledgment;
|
|
8521
|
+
exports.isPendingRecoveryCodesAcknowledgment = require_isUserOnboardingComplete.isPendingRecoveryCodesAcknowledgment;
|
|
8575
8522
|
exports.isProgrammaticNetworkSwitchAvailable = isProgrammaticNetworkSwitchAvailable;
|
|
8576
8523
|
exports.isSignedIn = require_isMfaRequiredForAction.isSignedIn;
|
|
8577
|
-
exports.isUserMissingMfaAuth =
|
|
8578
|
-
exports.isUserOnboardingComplete = isUserOnboardingComplete;
|
|
8524
|
+
exports.isUserMissingMfaAuth = require_InvalidParamError.isUserMissingMfaAuth;
|
|
8525
|
+
exports.isUserOnboardingComplete = require_isUserOnboardingComplete.isUserOnboardingComplete;
|
|
8579
8526
|
exports.isWalletAccountVerified = isWalletAccountVerified;
|
|
8580
8527
|
exports.logout = logout;
|
|
8581
8528
|
exports.matchWalletProvidersToCatalogGroup = matchWalletProvidersToCatalogGroup;
|