@dynamic-labs-sdk/client 1.12.2 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{InvalidParamError-DbUJgYDE.native.esm.js → InvalidParamError-BKr8fFc1.native.esm.js} +1081 -1091
- package/dist/InvalidParamError-BKr8fFc1.native.esm.js.map +1 -0
- package/dist/{InvalidParamError-DDdAeFXE.cjs → InvalidParamError-Cs4ZMEj4.cjs} +823 -833
- package/dist/InvalidParamError-Cs4ZMEj4.cjs.map +1 -0
- package/dist/{InvalidParamError-B0nAZ6Ei.esm.js → InvalidParamError-DZjc7Tjc.esm.js} +912 -922
- package/dist/InvalidParamError-DZjc7Tjc.esm.js.map +1 -0
- package/dist/client/core/createCore/createCore.d.ts +1 -1
- package/dist/client/core/createCore/getInitialState.d.ts +1 -1
- package/dist/client/core/getCore/getCore.d.ts +1 -1
- package/dist/client/core/getCore/getCore.d.ts.map +1 -1
- package/dist/client/defaultClient/defaultClient.d.ts +2 -2
- package/dist/client/defaultClient/defaultClient.d.ts.map +1 -1
- package/dist/core.cjs +24 -24
- package/dist/core.cjs.map +1 -1
- package/dist/core.esm.js +26 -26
- package/dist/core.esm.js.map +1 -1
- package/dist/core.native.esm.js +25 -25
- package/dist/core.native.esm.js.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-1j3BPA22.cjs → getNetworkProviderFromNetworkId-CdCEFEgT.cjs} +45 -45
- package/dist/getNetworkProviderFromNetworkId-CdCEFEgT.cjs.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-DaMxnWPo.esm.js → getNetworkProviderFromNetworkId-ChFA088e.esm.js} +48 -48
- package/dist/getNetworkProviderFromNetworkId-ChFA088e.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-CMBk4NzR.native.esm.js → getNetworkProviderFromNetworkId-DZkq74O7.native.esm.js} +51 -51
- package/dist/getNetworkProviderFromNetworkId-DZkq74O7.native.esm.js.map +1 -0
- package/dist/{getSignedSessionId-BU81jCyQ.cjs → getSignedSessionId-DceZVits.cjs} +7 -7
- package/dist/getSignedSessionId-DceZVits.cjs.map +1 -0
- package/dist/{getSignedSessionId-DPj38qtY.native.esm.js → getSignedSessionId-DmDcWkqB.native.esm.js} +7 -7
- package/dist/getSignedSessionId-DmDcWkqB.native.esm.js.map +1 -0
- package/dist/{getSignedSessionId-BRklPjP0.esm.js → getSignedSessionId-DrrvGNcG.esm.js} +7 -7
- package/dist/getSignedSessionId-DrrvGNcG.esm.js.map +1 -0
- package/dist/{getWaasWalletProviderFromWalletAccount-JN5ZC71J.esm.js → getWaasWalletProviderFromWalletAccount-B_8slAdm.esm.js} +4 -4
- package/dist/getWaasWalletProviderFromWalletAccount-B_8slAdm.esm.js.map +1 -0
- package/dist/{getWaasWalletProviderFromWalletAccount-BhgXIVZM.native.esm.js → getWaasWalletProviderFromWalletAccount-C2GdfqUr.native.esm.js} +4 -4
- package/dist/getWaasWalletProviderFromWalletAccount-C2GdfqUr.native.esm.js.map +1 -0
- package/dist/{getWaasWalletProviderFromWalletAccount-aRoo7mw8.cjs → getWaasWalletProviderFromWalletAccount-CKZIsFWL.cjs} +4 -4
- package/dist/getWaasWalletProviderFromWalletAccount-CKZIsFWL.cjs.map +1 -0
- package/dist/{getWalletProviderByKey-BKRul8sp.native.esm.js → getWalletProviderByKey-BhisAyZg.native.esm.js} +26 -26
- package/dist/getWalletProviderByKey-BhisAyZg.native.esm.js.map +1 -0
- package/dist/{getWalletProviderByKey-C-HHI7L8.esm.js → getWalletProviderByKey-DWYF9IxH.esm.js} +15 -15
- package/dist/getWalletProviderByKey-DWYF9IxH.esm.js.map +1 -0
- package/dist/{getWalletProviderByKey-z1nf15R8.cjs → getWalletProviderByKey-OD65GUWG.cjs} +16 -16
- package/dist/getWalletProviderByKey-OD65GUWG.cjs.map +1 -0
- package/dist/index.cjs +205 -192
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +208 -195
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +203 -190
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isDynamicWaasEnabled-DDbRfcN3.cjs → isDynamicWaasEnabled-C90E53x1.cjs} +4 -4
- package/dist/{isDynamicWaasEnabled-DDbRfcN3.cjs.map → isDynamicWaasEnabled-C90E53x1.cjs.map} +1 -1
- package/dist/{isDynamicWaasEnabled-DvC45F05.esm.js → isDynamicWaasEnabled-C9gQ9M80.esm.js} +3 -3
- package/dist/{isDynamicWaasEnabled-DvC45F05.esm.js.map → isDynamicWaasEnabled-C9gQ9M80.esm.js.map} +1 -1
- package/dist/{isDynamicWaasEnabled-9I4iE0Ko.native.esm.js → isDynamicWaasEnabled-rRFvljev.native.esm.js} +3 -3
- package/dist/{isDynamicWaasEnabled-9I4iE0Ko.native.esm.js.map → isDynamicWaasEnabled-rRFvljev.native.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-B8d2MBRx.native.esm.js → isMfaRequiredForAction-C1KaU-XS.native.esm.js} +4 -4
- package/dist/{isMfaRequiredForAction-B8d2MBRx.native.esm.js.map → isMfaRequiredForAction-C1KaU-XS.native.esm.js.map} +1 -1
- package/dist/{isMfaRequiredForAction-BAqo9eBq.esm.js → isMfaRequiredForAction-CTQzzCMt.esm.js} +11 -11
- package/dist/isMfaRequiredForAction-CTQzzCMt.esm.js.map +1 -0
- package/dist/{isMfaRequiredForAction-YGaK8XRO.cjs → isMfaRequiredForAction-DFowphoV.cjs} +11 -11
- package/dist/isMfaRequiredForAction-DFowphoV.cjs.map +1 -0
- package/dist/{isUserOnboardingComplete-Bo9grSze.cjs → isUserOnboardingComplete-77jTT2BB.cjs} +8 -8
- package/dist/isUserOnboardingComplete-77jTT2BB.cjs.map +1 -0
- package/dist/{isUserOnboardingComplete-BT_SR4m_.esm.js → isUserOnboardingComplete-D1gGc77y.esm.js} +7 -7
- package/dist/isUserOnboardingComplete-D1gGc77y.esm.js.map +1 -0
- package/dist/{isUserOnboardingComplete-CVHzzTtG.native.esm.js → isUserOnboardingComplete-DfDNapVu.native.esm.js} +7 -7
- package/dist/isUserOnboardingComplete-DfDNapVu.native.esm.js.map +1 -0
- package/dist/modules/apiClient/createApiClient.d.ts +1 -1
- package/dist/modules/apiClient/utils/clientErrorMapper/clientErrorMapper.d.ts +1 -1
- package/dist/modules/apiClient/utils/convertToApiErrorMiddleware/convertToApiErrorMiddleware.d.ts +1 -1
- package/dist/modules/apiClient/utils/deviceSignatureHeadersMiddleware/createDeviceSignatureHeadersMiddleware.d.ts +1 -1
- package/dist/modules/apiClient/utils/deviceSignatureHeadersMiddleware/createDeviceSignatureHeadersMiddleware.d.ts.map +1 -1
- package/dist/modules/apiClient/utils/unauthorizedMiddleware/createUnauthorizedMiddleware.d.ts +1 -1
- package/dist/modules/apiClient/utils/unauthorizedMiddleware/createUnauthorizedMiddleware.d.ts.map +1 -1
- package/dist/modules/auth/createVisit/createVisit.d.ts +1 -1
- package/dist/modules/auth/createVisit/createVisit.d.ts.map +1 -1
- package/dist/modules/auth/decodeJwt/decodeJwt.d.ts +1 -1
- package/dist/modules/auth/extractSessionId/extractSessionId.d.ts +1 -1
- package/dist/modules/auth/getElevatedAccessToken/getElevatedAccessToken.d.ts +2 -3
- package/dist/modules/auth/getElevatedAccessToken/getElevatedAccessToken.d.ts.map +1 -1
- package/dist/modules/auth/initializeAuth/initializeAuth.d.ts +1 -1
- package/dist/modules/auth/initializeAuth/setLongTimeout/setLongTimeout.d.ts +1 -1
- package/dist/modules/auth/isSignedIn/isSignedIn.d.ts +1 -1
- package/dist/modules/auth/logout/logout.d.ts +1 -1
- package/dist/modules/auth/passkeys/getPasskeyAuthenticationOptions/getPasskeyAuthenticationOptions.d.ts +1 -1
- package/dist/modules/auth/passkeys/getPasskeyAuthenticationOptions/getPasskeyAuthenticationOptions.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/getPasskeyAuthenticationSignInOptions/getPasskeyAuthenticationSignInOptions.d.ts +1 -1
- package/dist/modules/auth/passkeys/getPasskeyAuthenticationSignInOptions/getPasskeyAuthenticationSignInOptions.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/getPasskeyRegistrationOptions/getPasskeyRegistrationOptions.d.ts +1 -1
- package/dist/modules/auth/passkeys/getPasskeyRegistrationOptions/getPasskeyRegistrationOptions.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/getPasskeys/getPasskeys.d.ts +1 -1
- package/dist/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.d.ts +1 -1
- package/dist/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.d.ts +1 -1
- package/dist/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/serverSigninPasskey/serverSigninPasskey.d.ts +1 -1
- package/dist/modules/auth/passkeys/serverSigninPasskey/serverSigninPasskey.d.ts.map +1 -1
- package/dist/modules/auth/social/getUserSocialAccounts/getUserSocialAccounts.d.ts +1 -1
- package/dist/modules/auth/social/oauth/detectOAuthRedirect/detectOAuthRedirect.d.ts +1 -1
- package/dist/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.d.ts +1 -1
- package/dist/modules/auth/social/oauth/processSocialCallback/processSocialCallback.d.ts +1 -1
- package/dist/modules/auth/social/oauth/processSocialCallback/processSocialCallback.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/addOAuthUrlParams/addOAuthUrlParams.d.ts +2 -2
- package/dist/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/buildOAuthUrl.d.ts +2 -2
- package/dist/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/getOAuthBaseUrl/getOAuthBaseUrl.d.ts +1 -1
- package/dist/modules/auth/social/removeDynamicOauthParamsFromUrl/removeDynamicOauthParamsFromUrl.d.ts +1 -1
- package/dist/modules/auth/social/removeDynamicOauthParamsFromUrl/removeDynamicOauthParamsFromUrl.d.ts.map +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/checkAndRaiseWalletAccountsChangedEvent/checkAndRaiseWalletAccountsChangedEvent.d.ts +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/checkAndRaiseWalletAccountsChangedEvent/checkAndRaiseWalletAccountsChangedEvent.d.ts.map +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/elevatedAccessTokens/normalizeScopes/normalizeScopes.d.ts +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/elevatedAccessTokens/parseElevatedAccessToken/parseElevatedAccessToken.d.ts +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/elevatedAccessTokens/upsertElevatedAccessToken/upsertElevatedAccessToken.d.ts +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.d.ts +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.d.ts.map +1 -1
- package/dist/modules/balances/getBalances/getBalances.d.ts +1 -1
- package/dist/modules/balances/getMultichainBalances/getMultichainBalances.d.ts +1 -1
- package/dist/modules/balances/getMultichainTokenBalances/getMultichainTokenBalances.d.ts +1 -1
- package/dist/modules/balances/getTokenBalances/getTokenBalances.d.ts +2 -2
- package/dist/modules/captcha/consumeCaptchaToken/consumeCaptchaToken.d.ts +1 -1
- package/dist/modules/captcha/isCaptchaRequired/isCaptchaRequired.d.ts +1 -1
- package/dist/modules/captcha/isCaptchaRequired/isCaptchaRequired.d.ts.map +1 -1
- package/dist/modules/checkout/getCheckoutTransaction/getCheckoutTransaction.d.ts +1 -1
- package/dist/modules/checkout/getCheckoutTransactionQuote/getCheckoutTransactionQuote.d.ts +1 -1
- package/dist/modules/checkout/getCheckouts/getCheckouts.d.ts +1 -1
- package/dist/modules/checkout/getCheckouts/getCheckouts.d.ts.map +1 -1
- package/dist/modules/checkout/trackCheckoutTransaction/trackCheckoutTransaction.d.ts +1 -1
- package/dist/modules/checkout/utils/clearCheckoutSessionToken/clearCheckoutSessionToken.d.ts +1 -1
- package/dist/modules/checkout/utils/createCheckoutApiClient/createCheckoutApiClient.d.ts +1 -1
- package/dist/modules/checkout/utils/createCheckoutApiClient/createCheckoutApiClient.d.ts.map +1 -1
- package/dist/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.d.ts +1 -1
- package/dist/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.d.ts.map +1 -1
- package/dist/modules/checkout/utils/createCheckoutTransactionChannelSchema/createCheckoutTransactionChannelSchema.d.ts +1 -1
- package/dist/modules/checkout/utils/requiresConversion/requiresConversion.d.ts +1 -1
- package/dist/modules/checkout/utils/subscribeToCheckoutTransaction/subscribeToCheckoutTransaction.d.ts +1 -1
- package/dist/modules/checkout/utils/withCheckoutSessionTokenCleanupOn401/withCheckoutSessionTokenCleanupOn401.d.ts +1 -1
- package/dist/modules/clientEvents/clientEvents.d.ts +4 -4
- package/dist/modules/crossTabEventSync/setupCrossTabEventSync/setupCrossTabEventSync.d.ts +1 -1
- package/dist/modules/deviceRegistration/detectDeviceRegistrationRedirect/detectDeviceRegistrationRedirect.d.ts +1 -1
- package/dist/modules/deviceRegistration/getDeviceRegistrationTokenFromUrl/getDeviceRegistrationTokenFromUrl.d.ts +1 -1
- package/dist/modules/deviceRegistration/getDeviceSigner/getDeviceSigner.d.ts +1 -1
- package/dist/modules/deviceRegistration/getDeviceSigner/getDeviceSigner.d.ts.map +1 -1
- package/dist/modules/deviceRegistration/getDeviceSigner/getOrCreateEnvironmentDeviceSigningKeys/getOrCreateEnvironmentDeviceSigningKeys.d.ts +1 -1
- package/dist/modules/deviceRegistration/getHeadersForNonceSignedByDeviceSigners/getHeadersForNonceSignedByDeviceSigners.d.ts +1 -1
- package/dist/modules/deviceRegistration/getHeadersForNonceSignedByDeviceSigners/getHeadersForNonceSignedByDeviceSigners.d.ts.map +1 -1
- package/dist/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.d.ts +1 -1
- package/dist/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.d.ts.map +1 -1
- package/dist/modules/deviceRegistration/isDeviceRegistrationRequired/isDeviceRegistrationRequired.d.ts +1 -1
- package/dist/modules/extension/hasExtension/hasExtension.d.ts +1 -1
- package/dist/modules/extension/registerExtension/registerExtension.d.ts +1 -1
- package/dist/modules/flow/attachFlowSource/attachFlowSource.d.ts +12 -1
- package/dist/modules/flow/attachFlowSource/attachFlowSource.d.ts.map +1 -1
- package/dist/modules/flow/getFlow/getFlow.d.ts +1 -1
- package/dist/modules/flow/getFlowQuote/getFlowQuote.d.ts +1 -1
- package/dist/modules/flow/utils/clearFlowSessionToken/clearFlowSessionToken.d.ts +1 -1
- package/dist/modules/flow/utils/createFlowApiClient/createFlowApiClient.d.ts +1 -1
- package/dist/modules/flow/utils/createFlowApiClient/createFlowApiClient.d.ts.map +1 -1
- package/dist/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.d.ts +1 -1
- package/dist/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.d.ts.map +1 -1
- package/dist/modules/flow/utils/withFlowSessionTokenCleanupOn401/withFlowSessionTokenCleanupOn401.d.ts +1 -1
- package/dist/modules/funding/coinbase/addCoinbaseOnrampOrderEventListener/addCoinbaseOnrampOrderEventListener.d.ts +1 -1
- package/dist/modules/funding/coinbase/getCoinbaseBuyUrl/getCoinbaseBuyUrl.d.ts +1 -1
- package/dist/modules/funding/coinbase/getMissingVerificationForCoinbaseOnrampOrder/getMissingVerificationForCoinbaseOnrampOrder.d.ts +1 -1
- package/dist/modules/funding/coinbase/utils/validateUserCredentialsForCoinbaseOnrampOrder/validateUserCredentialsForCoinbaseOnrampOrder.d.ts +1 -1
- package/dist/modules/funding/coinbase/utils/validateUserCredentialsForCoinbaseOnrampOrder/validateUserCredentialsForCoinbaseOnrampOrder.d.ts.map +1 -1
- package/dist/modules/funding/kraken/createKrakenExchangeTransfer/createKrakenExchangeTransfer.d.ts +1 -1
- package/dist/modules/funding/kraken/getKrakenAccounts/getKrakenAccounts.d.ts +2 -2
- package/dist/modules/funding/kraken/getKrakenWhitelistedAddresses/getKrakenWhitelistedAddresses.d.ts +1 -1
- package/dist/modules/funding/moonpay/getMoonPayUrl/getMoonPayUrl.d.ts +4 -0
- package/dist/modules/funding/moonpay/getMoonPayUrl/getMoonPayUrl.d.ts.map +1 -1
- package/dist/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.d.ts +1 -1
- package/dist/modules/initializeClient/waitForProjectSettings/waitForProjectSettings.d.ts +1 -1
- package/dist/modules/initializeClient/waitForProjectSettings/waitForProjectSettings.d.ts.map +1 -1
- package/dist/modules/keychainMigration/migrateSessionKeyToKeychain/migrateSessionKeyToKeychain.d.ts +1 -1
- package/dist/modules/legacyWalletBook/excludeInstalledFromCatalog/collectInstalledGroupIds/collectInstalledGroupIds.d.ts +1 -1
- package/dist/modules/legacyWalletBook/excludeInstalledFromCatalog/excludeInstalledFromCatalog.d.ts +1 -1
- package/dist/modules/legacyWalletBook/fetchLegacyWalletBook/fetchLegacyWalletBook.d.ts +1 -1
- package/dist/modules/legacyWalletBook/fetchLegacyWalletBook/fetchWithTimeout/fetchWithTimeout.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getSpriteUrl/getSpriteUrl.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletBookCdnUrl/getWalletBookCdnUrl.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getChainFromWalletSchema/getChainFromWalletSchema.d.ts +2 -2
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getChainsFromWalletSchema/getChainsFromWalletSchema.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/getWalletConnectCatalog.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/shouldFilterWalletForWalletConnect/shouldFilterWalletForWalletConnect.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/transformGroup.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformWallet/transformWallet.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalog/transformWalletBook/transformWalletBook.d.ts +1 -1
- package/dist/modules/legacyWalletBook/getWalletConnectCatalogWalletByWalletProviderKey/getWalletConnectCatalogWalletByWalletProviderKey.d.ts +1 -1
- package/dist/modules/legacyWalletBook/hasUsableDeeplink/hasUsableDeeplink.d.ts +1 -1
- package/dist/modules/legacyWalletBook/matchWalletProvidersToCatalogGroup/matchWalletProvidersToCatalogGroup.d.ts +1 -1
- package/dist/modules/legacyWalletBook/shouldFilterWallet/shouldFilterWallet.d.ts +2 -2
- package/dist/modules/mfa/authenticateMfaRecoveryCode/authenticateMfaRecoveryCode.d.ts +1 -1
- package/dist/modules/mfa/authenticatePasskeyMFA/authenticatePasskeyMFA.d.ts +1 -1
- package/dist/modules/mfa/authenticateTotpMfaDevice/authenticateTotpMfaDevice.d.ts +1 -1
- package/dist/modules/mfa/consumeMfaTokenIfRequiredForAction/consumeMfaTokenIfRequiredForAction.d.ts +1 -1
- package/dist/modules/mfa/consumeMfaTokenIfRequiredForAction/consumeMfaTokenIfRequiredForAction.d.ts.map +1 -1
- package/dist/modules/mfa/getMfaDevices/getMfaDevices.d.ts +1 -1
- package/dist/modules/mfa/getMfaMethods/getMfaMethods.d.ts +1 -1
- package/dist/modules/mfa/getMfaRecoveryCodes/getMfaRecoveryCodes.d.ts +1 -1
- package/dist/modules/mfa/isMfaRequiredForAction/isMfaRequiredForAction.d.ts +1 -1
- package/dist/modules/mfa/isPendingRecoveryCodesAcknowledgment/isPendingRecoveryCodesAcknowledgment.d.ts +1 -1
- package/dist/modules/mfa/isUserMissingMfaAuth/isUserMissingMfaAuth.d.ts +1 -1
- package/dist/modules/mfa/registerTotpMfaDevice/registerTotpMfaDevice.d.ts +4 -1
- package/dist/modules/mfa/registerTotpMfaDevice/registerTotpMfaDevice.d.ts.map +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.d.ts +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.d.ts.map +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTPForUserUpdate/verifyOTPForUserUpdate.d.ts +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTPForUserUpdate/verifyOTPForUserUpdate.d.ts.map +1 -1
- package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts +1 -1
- package/dist/modules/projectSettings/isCookieEnabled/isCookieEnabled.d.ts +1 -1
- package/dist/modules/screenshotProtection/setScreenshotProtection/setScreenshotProtection.d.ts +1 -1
- package/dist/modules/sessionKeys/generateNonceSignature/generateNonceSignature.d.ts +1 -1
- package/dist/modules/sessionKeys/generateNonceSignature/generateNonceSignature.d.ts.map +1 -1
- package/dist/modules/sessionKeys/generateSessionKeys/generateSessionKeys.d.ts +1 -1
- package/dist/modules/sessionKeys/generateSessionKeys/generateSessionKeys.d.ts.map +1 -1
- package/dist/modules/sessionKeys/generateSessionSignature/generateSessionSignature.d.ts +1 -1
- package/dist/modules/sessionKeys/generateSessionSignature/generateSessionSignature.d.ts.map +1 -1
- package/dist/modules/sessionKeys/getSessionKeys/getSessionKeys.d.ts +1 -1
- package/dist/modules/sessionKeys/getSessionKeys/getSessionKeys.d.ts.map +1 -1
- package/dist/modules/sessionKeys/getSignedSessionId/getSignedSessionId.d.ts +1 -1
- package/dist/modules/sessionKeys/getSignedSessionId/getSignedSessionId.d.ts.map +1 -1
- package/dist/modules/state/raiseStateEvents/raiseStateEvents.d.ts +1 -1
- package/dist/modules/state/raiseStateEvents/raiseStateEvents.d.ts.map +1 -1
- package/dist/modules/storageSync/hydrateStateWithStorage/hydrateStateWithStorage.d.ts +1 -1
- package/dist/modules/storageSync/hydrateStateWithStorage/hydrateStateWithStorage.d.ts.map +1 -1
- package/dist/modules/storageSync/initializeStorageSync.d.ts +1 -1
- package/dist/modules/storageSync/initializeStorageSync.d.ts.map +1 -1
- package/dist/modules/storageSync/syncStateWithStorage/syncStateWithStorage.d.ts +1 -1
- package/dist/modules/storageSync/syncStateWithStorage/syncStateWithStorage.d.ts.map +1 -1
- package/dist/modules/swap/getSwapQuote/getSwapQuote.d.ts +1 -1
- package/dist/modules/swap/getSwapStatus/getSwapStatus.d.ts +1 -1
- package/dist/modules/swap/utils/ensureCorrectActiveNetwork/ensureCorrectActiveNetwork.d.ts +1 -1
- package/dist/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.d.ts +1 -1
- package/dist/modules/waas/backupWaasKeySharesToGoogleDrive/backupWaasKeySharesToGoogleDrive.d.ts +1 -1
- package/dist/modules/waas/createWaasClient/createNativeWaasSDKContainer.d.ts +1 -1
- package/dist/modules/waas/createWaasClient/createWaasClient.d.ts +1 -1
- package/dist/modules/waas/createWaasClient/createWaasClient.d.ts.map +1 -1
- package/dist/modules/waas/createWaasClient/createWaasSDKContainer.d.ts +1 -1
- package/dist/modules/waas/createWaasClient/translateNativeOpenError.d.ts +1 -1
- package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts +1 -1
- package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
- package/dist/modules/waas/createWaasWalletAccounts/createWaasWalletAccounts.d.ts +2 -2
- package/dist/modules/waas/delegateWaasKeyShares/delegateWaasKeyShares.d.ts +1 -1
- package/dist/modules/waas/exportWaasClientKeyshares/exportWaasClientKeyshares.d.ts +1 -1
- package/dist/modules/waas/exportWaasPrivateKey/exportWaasPrivateKey.d.ts +1 -1
- package/dist/modules/waas/exportWaasPrivateKeyToContainer/exportWaasPrivateKeyToContainer.d.ts +1 -1
- package/dist/modules/waas/findWaasWalletProviderByChain/findWaasWalletProviderByChain.d.ts +1 -1
- package/dist/modules/waas/findWaasWalletProviderByChain/findWaasWalletProviderByChain.d.ts.map +1 -1
- package/dist/modules/waas/getAllUserWaasAddressesForChain/getAllUserWaasAddressesForChain.d.ts +1 -1
- package/dist/modules/waas/getAllUserWaasAddressesForChain/getAllUserWaasAddressesForChain.d.ts.map +1 -1
- package/dist/modules/waas/getChainsMissingWaasWalletAccounts/getChainsMissingWaasWalletAccounts.d.ts +1 -1
- package/dist/modules/waas/getWaasChainNameFromChain/getWaasChainNameFromChain.d.ts +1 -1
- package/dist/modules/waas/getWaasChainNameFromChain/getWaasChainNameFromChain.d.ts.map +1 -1
- package/dist/modules/waas/getWaasWalletProviderByChain/getWaasWalletProviderByChain.d.ts +1 -1
- package/dist/modules/waas/getWaasWalletProviderByChain/getWaasWalletProviderByChain.d.ts.map +1 -1
- package/dist/modules/waas/getWaasWalletProviderFromWalletAccount/getWaasWalletProviderFromWalletAccount.d.ts +1 -1
- package/dist/modules/waas/getWaasWalletProviderFromWalletAccount/getWaasWalletProviderFromWalletAccount.d.ts.map +1 -1
- package/dist/modules/waas/getWalletRecoveryState/getWalletRecoveryState.d.ts +1 -1
- package/dist/modules/waas/hasDelegatedAccess/hasDelegatedAccess.d.ts +1 -1
- package/dist/modules/waas/importWaasPrivateKey/importWaasPrivateKey.d.ts +1 -1
- package/dist/modules/waas/initializeWaasClientsForEagerRecovery/initializeWaasClientsForEagerRecovery.d.ts +1 -1
- package/dist/modules/waas/isDynamicWaasEnabled/isDynamicWaasEnabled.d.ts +1 -1
- package/dist/modules/waas/isPasswordRequiredForWaasWallets/isPasswordRequiredForWaasWallets.d.ts +1 -1
- package/dist/modules/waas/isWaasWalletAccount/isWaasWalletAccount.d.ts +1 -1
- package/dist/modules/waas/isWaasWalletProvider/isWaasWalletProvider.d.ts +1 -1
- package/dist/modules/waas/isWaasWalletProvider/isWaasWalletProvider.d.ts.map +1 -1
- package/dist/modules/waas/isWalletCreationRequirement/isWalletCreationRequirement.d.ts +1 -1
- package/dist/modules/waas/normalizeWalletRequirements/normalizeWalletRequirements.d.ts +1 -1
- package/dist/modules/waas/preconnectWaasIframe/preconnectWaasIframe.d.ts +1 -1
- package/dist/modules/waas/refreshWaasWalletAccountShares/refreshWaasWalletAccountShares.d.ts +1 -1
- package/dist/modules/waas/revokeWaasDelegation/revokeWaasDelegation.d.ts +1 -1
- package/dist/modules/waas/setWaasWalletAccountPassword/setWaasWalletAccountPassword.d.ts +1 -1
- package/dist/modules/waas/shouldAutoCreateWalletForChain/shouldAutoCreateWalletForChain.d.ts +1 -1
- package/dist/modules/waas/unlockWallet/unlockWallet.d.ts +1 -1
- package/dist/modules/waas/updateWaasPassword/updateWaasPassword.d.ts +1 -1
- package/dist/modules/walletBackup/googleDrive/findMissingGoogleDriveBackupScopes/findMissingGoogleDriveBackupScopes.d.ts +1 -1
- package/dist/modules/walletBackup/googleDrive/hasAllGoogleDriveBackupScopes/hasAllGoogleDriveBackupScopes.d.ts +1 -1
- package/dist/modules/walletBackup/googleDrive/isInsufficientGoogleDriveScopesError/isInsufficientGoogleDriveScopesError.d.ts +1 -1
- package/dist/modules/walletBackup/googleDrive/utils/fetchGoogleDriveOauthAccess/fetchGoogleDriveOauthAccess.d.ts +1 -1
- package/dist/modules/walletBackup/googleDrive/utils/findGoogleOauthAccountId/findGoogleOauthAccountId.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildInAppBrowserOptions/buildInAppBrowserOptions.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildInAppBrowserOptions/getInAppBrowserUrl/getInAppBrowserUrl.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildInstallationUrls/buildInstallationUrls.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildInstallationUrlsByWalletOptionKey/buildInstallationUrlsByWalletOptionKey.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildMetaMaskSdkUriOptions/buildMetaMaskSdkUriOptions.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildWalletConnectOptions/buildWalletConnectOptions.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildWalletOption/buildWalletOption.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/buildWithWalletProviderOptions/buildWithWalletProviderOptions.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/classifyWithWalletProviderSource/classifyWithWalletProviderSource.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/compareByRelevance/compareByRelevance.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/findWalletOptionKeyForProviderKey/findByNameMatch/findByNameMatch.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/findWalletOptionKeyForProviderKey/findWalletOptionKeyForProviderKey.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/findWalletOptionKeyForProviderKey/resolveWalletOptionKey/resolveWalletOptionKey.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/getConnectionOptionPriority/getConnectionOptionPriority.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/getInstallationLinkForCurrentPlatform/getInstallationLinkForCurrentPlatform.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/getPriorityIndex/getPriorityIndex.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/getWalletOptionsCatalogue/getWalletOptionsCatalogue.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/groupOptionsByWalletOption/groupOptionsByWalletOption.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/hasAnyConnectionOption/hasAnyConnectionOption.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/hasInstalledProvider/hasInstalledProvider.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/normalizeWalletDisplayName/normalizeWalletDisplayName.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/resolveWalletBookWalletOptionKey/resolveWalletBookWalletOptionKey.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/sortConnectionOptions/sortConnectionOptions.d.ts +1 -1
- package/dist/modules/walletOptionsCatalogue/sortWalletOptions/sortWalletOptions.d.ts +1 -1
- package/dist/modules/wallets/assertWalletAccountSigningAvailability/assertWalletAccountSigningAvailability.d.ts +1 -1
- package/dist/modules/wallets/destroyWalletProviders/destroyWalletProviders.d.ts +1 -1
- package/dist/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/emitWalletAccountsChangedEvent/emitWalletAccountsChangedEvent.d.ts +1 -1
- package/dist/modules/wallets/getAvailableWalletProvidersData/getAvailableWalletProvidersData.d.ts +1 -1
- package/dist/modules/wallets/getConnectedAddresses/getConnectedAddresses.d.ts +1 -1
- package/dist/modules/wallets/getOwnerWalletAccountForSmartWalletAccount/getOwnerWalletAccountForSmartWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/getOwnerWalletAccountForSmartWalletAccount/getOwnerWalletAccountForSmartWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletAccountAddressByType/getWalletAccountAddressByType.d.ts +1 -1
- package/dist/modules/wallets/getWalletAccountAddressByType/getWalletAccountAddressByType.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletAccounts/getWalletAccounts.d.ts +1 -1
- package/dist/modules/wallets/getWalletAccounts/getWalletAccountsFromState/getWalletAccountsFromState.d.ts +1 -1
- package/dist/modules/wallets/getWalletAccounts/getWalletAccountsFromState/getWalletAccountsFromState.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.d.ts +1 -1
- package/dist/modules/wallets/getWalletProviderByKey/getWalletProviderByKey.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletProviderDataByKey/getWalletProviderDataByKey.d.ts +1 -1
- package/dist/modules/wallets/getWalletProviders/getWalletProviders.d.ts +1 -1
- package/dist/modules/wallets/hardwareWallet/canConnectWithHardwareWallet/canConnectWithHardwareWallet.d.ts +1 -1
- package/dist/modules/wallets/hardwareWallet/formatSignatureForHardwareWallet/formatSignatureForHardwareWallet.d.ts +1 -1
- package/dist/modules/wallets/hardwareWallet/isHardwareWalletAccount/isHardwareWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/hasWalletProviderConnectMethod/hasWalletProviderConnectMethod.d.ts +1 -1
- package/dist/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.d.ts +1 -1
- package/dist/modules/wallets/isWalletAccountVerified/isWalletAccountVerified.d.ts +1 -1
- package/dist/modules/wallets/networks/createBaseNetworkProvider/createBaseNetworkProvider.d.ts +1 -1
- package/dist/modules/wallets/networks/createBaseNetworkProvider/createBaseNetworkProvider.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getActiveNetworkData/getActiveNetworkData.d.ts +1 -1
- package/dist/modules/wallets/networks/getActiveNetworkId/getActiveNetworkId.d.ts +1 -1
- package/dist/modules/wallets/networks/getBalance/getBalance.d.ts +1 -1
- package/dist/modules/wallets/networks/getBalanceForAddress/getBalanceForAddress.d.ts +1 -1
- package/dist/modules/wallets/networks/getNativeBalance/getNativeBalance.d.ts +1 -1
- package/dist/modules/wallets/networks/getNetworkDataForNetworkId/getNetworkDataForNetworkId.d.ts +1 -1
- package/dist/modules/wallets/networks/getNetworkDataForNetworkId/getNetworkDataForNetworkId.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getNetworkProviderFromNetworkId/getNetworkProviderFromNetworkId.d.ts +1 -1
- package/dist/modules/wallets/networks/getNetworkProviderFromNetworkId/getNetworkProviderFromNetworkId.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getNetworkProviders/getNetworkProviders.d.ts +1 -1
- package/dist/modules/wallets/networks/getNetworksData/getNetworksData.d.ts +1 -1
- package/dist/modules/wallets/networks/getSdkChainFromApiChainName/getSdkChainFromApiChainName.d.ts +1 -1
- package/dist/modules/wallets/networks/getTransactionHistory/getTransactionHistory.d.ts +1 -1
- package/dist/modules/wallets/networks/isProgrammaticNetworkSwitchAvailable/isProgrammaticNetworkSwitchAvailable.d.ts +1 -1
- package/dist/modules/wallets/networks/lastKnownNetworkRegistry/createLastKnownNetworkRegistry/createLastKnownNetworkRegistry.d.ts +1 -1
- package/dist/modules/wallets/networks/networkProviderBuilderRegistry/createNetworkProviderBuilderRegistry/createNetworkProviderBuilderRegistry.d.ts +1 -1
- package/dist/modules/wallets/networks/networkProviderBuilderRegistry/createNetworkProviderBuilderRegistry/createNetworkProviderBuilderRegistry.d.ts.map +1 -1
- package/dist/modules/wallets/primaryWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/reconcileWalletAccountsAgainstClient/reconcileWalletAccountsAgainstClient.d.ts +1 -1
- package/dist/modules/wallets/unverifiedWalletAccounts/removeUnverifiedWalletAccount/removeUnverifiedWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/unverifiedWalletAccounts/setUnverifiedWalletAccounts/setUnverifiedWalletAccounts.d.ts +1 -1
- package/dist/modules/wallets/userHasEmbeddedWalletForChain/userHasEmbeddedWalletForChain.d.ts +1 -1
- package/dist/modules/wallets/userHasEmbeddedWalletForChain/userHasEmbeddedWalletForChain.d.ts.map +1 -1
- package/dist/modules/wallets/userHasExternalWallet/userHasExternalWallet.d.ts +1 -1
- package/dist/modules/wallets/userHasExternalWallet/userHasExternalWallet.d.ts.map +1 -1
- package/dist/modules/wallets/utils/convertUnverifiedWalletAccountToWalletAccount/convertUnverifiedWalletAccountToWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/utils/convertUnverifiedWalletAccountToWalletAccount/convertUnverifiedWalletAccountToWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/utils/convertVerifiedCredentialToWalletAccount/convertVerifiedCredentialToWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/utils/convertVerifiedCredentialToWalletAccount/convertVerifiedCredentialToWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/utils/formatSignInMessage/formatSignInMessage.d.ts +1 -1
- package/dist/modules/wallets/utils/formatWalletAccountId/formatWalletAccountId.d.ts +1 -1
- package/dist/modules/wallets/utils/formatWalletAccountId/formatWalletAccountId.d.ts.map +1 -1
- package/dist/modules/wallets/utils/formatWalletProviderGroupKey/formatWalletProviderGroupKey.d.ts +1 -1
- package/dist/modules/wallets/utils/formatWalletProviderGroupKey/formatWalletProviderGroupKey.d.ts.map +1 -1
- package/dist/modules/wallets/utils/formatWalletProviderKey/formatWalletProviderKey.d.ts +1 -1
- package/dist/modules/wallets/utils/getAddressesWithTypesFromConnectionResult/getAddressesWithTypesFromConnectionResult.d.ts +1 -1
- package/dist/modules/wallets/utils/getAddressesWithTypesFromConnectionResult/getAddressesWithTypesFromConnectionResult.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getAllProvidersFromWindow/getAllProvidersFromWindow.d.ts +1 -1
- package/dist/modules/wallets/utils/getAvailableWalletProvidersFromWalletAccounts/getAvailableWalletProvidersFromWalletAccounts.d.ts +1 -1
- package/dist/modules/wallets/utils/getAvailableWalletProvidersFromWalletAccounts/getAvailableWalletProvidersFromWalletAccounts.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getChainIdForAccountVerification/getChainIdForAccountVerification.d.ts +1 -1
- package/dist/modules/wallets/utils/getChainIdForAccountVerification/getChainIdForAccountVerification.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getInjectedProviderFromWindow/getInjectedProviderFromWindow.d.ts +1 -1
- package/dist/modules/wallets/utils/getInjectedProviderFromWindow/getInjectedProviderFromWindow.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getSignInMessage/createSignInMessageStatement/createSignInMessageStatement.d.ts +1 -1
- package/dist/modules/wallets/utils/getSignInMessage/createSignInMessageStatement/createSignInMessageStatement.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getSignInMessage/getSignInMessage.d.ts +1 -1
- package/dist/modules/wallets/utils/getSignInMessage/getSignInMessage.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/utils/getVerifiedCredentialForWalletAccount/getVerifiedCredentialForWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getWalletAccountFromAddress/getWalletAccountFromAddress.d.ts +1 -1
- package/dist/modules/wallets/utils/getWalletProviderFromWalletAccount/getWalletProviderFromWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/utils/getWalletProviderFromWalletAccount/getWalletProviderFromWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/utils/isSameAddress/isSameAddress.d.ts +1 -1
- package/dist/modules/wallets/utils/isSameAddress/isSameAddress.d.ts.map +1 -1
- package/dist/modules/wallets/utils/normalizeAddress/normalizeAddress.d.ts +1 -1
- package/dist/modules/wallets/utils/normalizeAddress/normalizeAddress.d.ts.map +1 -1
- package/dist/modules/wallets/utils/normalizeWalletNameWithChain/normalizeWalletNameWithChain.d.ts +1 -1
- package/dist/modules/wallets/utils/stripChainSuffix/stripChainSuffix.d.ts +1 -1
- package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts +1 -1
- package/dist/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.d.ts +1 -1
- package/dist/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/defaultImplementations/getActiveNetworkIdFromLastKnownRegistry/getActiveNetworkIdFromLastKnownRegistry.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/defaultImplementations/getActiveNetworkIdFromLastKnownRegistry/getActiveNetworkIdFromLastKnownRegistry.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/defaultImplementations/switchActiveNetworkInLastKnownRegistry/switchActiveNetworkInLastKnownRegistry.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/defaultImplementations/switchActiveNetworkInLastKnownRegistry/switchActiveNetworkInLastKnownRegistry.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/events/createWalletProviderEventEmitter/createWalletProviderEventEmitter.d.ts +2 -2
- package/dist/modules/wallets/walletProvider/events/offWalletProviderEvent/offWalletProviderEvent.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/events/onWalletProviderEvent/onWalletProviderEvent.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/extractChainFromNormalizedName/extractChainFromNormalizedName.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/isDeeplinkWalletProvider/isDeeplinkWalletProvider.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/splitWalletProviderKey/splitWalletProviderKey.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/splitWalletProviderKey/splitWalletProviderKey.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/walletProviderKeyMap/getWalletProviderKeyFromVerifiedCredential/getWalletProviderKeyFromVerifiedCredential.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/walletProviderKeyMap/getWalletProviderKeyFromVerifiedCredential/getWalletProviderKeyFromVerifiedCredential.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/walletProviderKeyMap/updateWalletProviderKeysForVerifiedCredentials/updateWalletProviderKeysForVerifiedCredentials.d.ts +1 -1
- package/dist/modules/wallets/walletProvider/walletProviderKeyMap/updateWalletProviderKeysForVerifiedCredentials/updateWalletProviderKeysForVerifiedCredentials.d.ts.map +1 -1
- package/dist/modules/wallets/walletProviderRegistry/createWalletProviderRegistry/createWalletProviderRegistry.d.ts +1 -1
- package/dist/{refreshAuth-C0kN3RBN.cjs → refreshAuth-B3XSU6GT.cjs} +3 -3
- package/dist/{refreshAuth-C0kN3RBN.cjs.map → refreshAuth-B3XSU6GT.cjs.map} +1 -1
- package/dist/{refreshAuth-CfpOd4qg.esm.js → refreshAuth-CAPTC0sg.esm.js} +3 -3
- package/dist/{refreshAuth-CfpOd4qg.esm.js.map → refreshAuth-CAPTC0sg.esm.js.map} +1 -1
- package/dist/{refreshAuth-Ck5OyzzC.native.esm.js → refreshAuth-aTqsU1uq.native.esm.js} +3 -3
- package/dist/{refreshAuth-Ck5OyzzC.native.esm.js.map → refreshAuth-aTqsU1uq.native.esm.js.map} +1 -1
- package/dist/services/asyncTrack/createAsyncTrack.d.ts +1 -1
- package/dist/services/crossTabBroadcast/createCrossTabBroadcast/createCrossTabBroadcast.d.ts +1 -1
- package/dist/services/eventEmitter/createEventEmitter.d.ts +1 -1
- package/dist/services/eventEmitter/createEventEmitter.d.ts.map +1 -1
- package/dist/services/fetch/createWebFetch.d.ts +1 -1
- package/dist/services/instrumentation/connectLoggerToInstrumentation/connectLoggerToInstrumentation.d.ts +1 -1
- package/dist/services/instrumentation/constants.d.ts.map +1 -1
- package/dist/services/instrumentation/createInstrumentation/createInstrumentation.d.ts +1 -1
- package/dist/services/instrumentation/instrumentFunction/extractParams/extractParams.d.ts +1 -1
- package/dist/services/instrumentation/instrumentFunction/instrumentFunction.d.ts +1 -1
- package/dist/services/instrumentation/instrumentFunction/scrubResolvedValue/scrubResolvedValue.d.ts +1 -1
- package/dist/services/instrumentation/scrubParameters/scrubParameters.d.ts +1 -1
- package/dist/services/instrumentation/scrubParameters/scrubParameters.d.ts.map +1 -1
- package/dist/services/instrumentation/transports/createDynamicTransport/createDynamicTransport.d.ts +1 -1
- package/dist/services/keychain/createKeychainService/createKeychainService.d.ts +1 -1
- package/dist/services/keychain/createKeychainService/createKeychainService.d.ts.map +1 -1
- package/dist/services/keychain/createKeychainService/utils/deleteIndexedDBItem.d.ts +1 -1
- package/dist/services/keychain/createKeychainService/utils/deleteIndexedDBItem.d.ts.map +1 -1
- package/dist/services/keychain/createKeychainService/utils/getIndexedDBItem.d.ts +1 -1
- package/dist/services/keychain/createKeychainService/utils/getIndexedDBItem.d.ts.map +1 -1
- package/dist/services/keychain/createKeychainService/utils/openDatabase.d.ts +1 -1
- package/dist/services/keychain/createKeychainService/utils/openDatabase.d.ts.map +1 -1
- package/dist/services/keychain/createKeychainService/utils/setIndexedDBItem.d.ts +1 -1
- package/dist/services/keychain/createKeychainService/utils/setIndexedDBItem.d.ts.map +1 -1
- package/dist/services/keychain/createKeychainService/utils/withDatabase/withDatabase.d.ts +1 -1
- package/dist/services/logger/createLogger/createLogger.d.ts +2 -2
- package/dist/services/nativeManifest/getReactNativeManifest/getReactNativeManifest.d.ts +1 -1
- package/dist/services/navigate/createNavigationHandler/createNavigationHandler.d.ts +1 -1
- package/dist/services/openDeeplink/createWebDeeplinkOpener/createWebDeeplinkOpener.d.ts +1 -1
- package/dist/services/passkey/createPasskeyService/createPasskeyService.d.ts +1 -1
- package/dist/services/realtime/createRealtimeChannelSchema/createRealtimeChannelSchema.d.ts +1 -1
- package/dist/services/realtime/createRealtimeService/createRealtimeService.d.ts +1 -1
- package/dist/services/runtimeServices/createRuntimeServiceAccessKey/createRuntimeServiceAccessKey.d.ts +1 -1
- package/dist/services/runtimeServices/createRuntimeServices/createRuntimeServices.d.ts +1 -1
- package/dist/services/storage/createLocalStorageAdapter/createLocalStorageAdapter.d.ts +1 -1
- package/dist/services/storage/createStorage/createStorage.d.ts +1 -1
- package/dist/services/storage/createStorage/formatForStorage/isValidDateISOString/isValidDateISOString.d.ts +1 -1
- package/dist/services/storage/createStorage/formatForStorage/storageFormat.d.ts +2 -2
- package/dist/services/storage/createStorage/formatForStorage/storageFormat.d.ts.map +1 -1
- package/dist/services/storage/createStorageKeySchema/createStorageKeySchema.d.ts +1 -1
- package/dist/services/storage/createStorageKeySchema/createStorageKeySchema.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/utils/appendConnectionUriToDeeplink/appendConnectionUriToDeeplink.d.ts +1 -1
- package/dist/utils/base64UrlDecode/base64UrlDecode.d.ts +1 -1
- package/dist/utils/base64urlFromBytes/base64urlFromBytes.d.ts +1 -1
- package/dist/utils/bufferToBase64/bufferToBase64.d.ts +1 -1
- package/dist/utils/bufferToBase64/bufferToBase64.d.ts.map +1 -1
- package/dist/utils/bufferToHex/bufferToHex.d.ts +1 -1
- package/dist/utils/bytesFromBase64url/bytesFromBase64url.d.ts +1 -1
- package/dist/utils/compressRawPublicKey/compressRawPublicKey.d.ts +1 -1
- package/dist/utils/debouncedMutex/createDebouncedMutex/createDebouncedMutex.d.ts +1 -1
- package/dist/utils/debouncedMutex/createDebouncedMutex/createDebouncedMutex.d.ts.map +1 -1
- package/dist/utils/deferredPromise/createDeferredPromise.d.ts +1 -1
- package/dist/utils/deferredPromise/createDeferredPromise.d.ts.map +1 -1
- package/dist/utils/derToP1363/derToP1363.d.ts +1 -1
- package/dist/utils/digestSHA256/digestSHA256.d.ts +1 -1
- package/dist/utils/digestSHA256/digestSHA256.d.ts.map +1 -1
- package/dist/utils/encodeBase64Url/encodeBase64Url.d.ts +1 -1
- package/dist/utils/filterDuplicates/filterDuplicates.d.ts +1 -1
- package/dist/utils/getAppMetadata/getAppMetadata.d.ts +1 -1
- package/dist/utils/getBuffer/getBuffer.d.ts +1 -1
- package/dist/utils/getBuffer/getBuffer.d.ts.map +1 -1
- package/dist/utils/getChainFromVerifiedCredentialChain/getChainFromVerifiedCredentialChain.d.ts +1 -1
- package/dist/utils/getChainFromVerifiedCredentialChain/getChainFromVerifiedCredentialChain.d.ts.map +1 -1
- package/dist/utils/getChainFromWalletBookIdentifier/getChainFromWalletBookIdentifier.d.ts +1 -1
- package/dist/utils/getKeychainIndexedDBName/getKeychainIndexedDBName.d.ts +1 -1
- package/dist/utils/getNativeLinkScheme/getNativeLinkScheme.d.ts +1 -1
- package/dist/utils/getNonce/fetchAndStoreNonces/fetchAndStoreNonces.d.ts +1 -1
- package/dist/utils/getNonce/getNonce.d.ts +1 -1
- package/dist/utils/getNonce/prefetchNoncesIfNeeded/prefetchNoncesIfNeeded.d.ts +1 -1
- package/dist/utils/getNonce/prefetchNoncesIfNeeded/prefetchNoncesIfNeeded.d.ts.map +1 -1
- package/dist/utils/getOperatingSystem/getOperatingSystem.d.ts +1 -1
- package/dist/utils/getPlatform/getPlatform.d.ts +1 -1
- package/dist/utils/getUserAgent/getUserAgent.d.ts +1 -1
- package/dist/utils/isEqualShallow/isEqualShallow.d.ts +1 -1
- package/dist/utils/isError/isError.d.ts +1 -1
- package/dist/utils/isErrorWithCode/isErrorWithCode.d.ts +1 -1
- package/dist/utils/isMobile/isMobile.d.ts +16 -16
- package/dist/utils/isMobile/isMobile.d.ts.map +1 -1
- package/dist/utils/isServerSideRendering/isServerSideRendering.d.ts +1 -1
- package/dist/utils/observable/createObservableState/createObservableState.d.ts +1 -1
- package/dist/utils/observable/subscribeWithSelector/subscribeWithSelector.d.ts +1 -1
- package/dist/utils/p256Keygen/p256Keygen.d.ts +1 -1
- package/dist/utils/p256Keygen/p256Keygen.d.ts.map +1 -1
- package/dist/utils/p256Sign/p256Sign.d.ts +1 -1
- package/dist/utils/p256Sign/p256Sign.d.ts.map +1 -1
- package/dist/utils/parseAmountToSmallestUnit/parseAmountToSmallestUnit.d.ts +1 -1
- package/dist/utils/parseUserAgent/parseUserAgent.d.ts +1 -1
- package/dist/utils/parseUserAgent/parseUserAgent.d.ts.map +1 -1
- package/dist/utils/randomString/randomString.d.ts +1 -1
- package/dist/utils/randomString/randomString.d.ts.map +1 -1
- package/dist/utils/retryOnFail/retryOnFail.d.ts +1 -1
- package/dist/utils/retryOnFail/retryOnFail.d.ts.map +1 -1
- package/dist/utils/setCookie/setCookie.d.ts +1 -1
- package/dist/waas.cjs +27 -27
- package/dist/waas.cjs.map +1 -1
- package/dist/waas.esm.js +26 -26
- package/dist/waas.esm.js.map +1 -1
- package/dist/waas.native.esm.js +26 -26
- package/dist/waas.native.esm.js.map +1 -1
- package/dist/waasCore.cjs +19 -15
- package/dist/waasCore.cjs.map +1 -1
- package/dist/waasCore.esm.js +19 -15
- package/dist/waasCore.esm.js.map +1 -1
- package/dist/waasCore.native.esm.js +23 -19
- package/dist/waasCore.native.esm.js.map +1 -1
- package/package.json +2 -2
- package/dist/InvalidParamError-B0nAZ6Ei.esm.js.map +0 -1
- package/dist/InvalidParamError-DDdAeFXE.cjs.map +0 -1
- package/dist/InvalidParamError-DbUJgYDE.native.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-1j3BPA22.cjs.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-CMBk4NzR.native.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-DaMxnWPo.esm.js.map +0 -1
- package/dist/getSignedSessionId-BRklPjP0.esm.js.map +0 -1
- package/dist/getSignedSessionId-BU81jCyQ.cjs.map +0 -1
- package/dist/getSignedSessionId-DPj38qtY.native.esm.js.map +0 -1
- package/dist/getWaasWalletProviderFromWalletAccount-BhgXIVZM.native.esm.js.map +0 -1
- package/dist/getWaasWalletProviderFromWalletAccount-JN5ZC71J.esm.js.map +0 -1
- package/dist/getWaasWalletProviderFromWalletAccount-aRoo7mw8.cjs.map +0 -1
- package/dist/getWalletProviderByKey-BKRul8sp.native.esm.js.map +0 -1
- package/dist/getWalletProviderByKey-C-HHI7L8.esm.js.map +0 -1
- package/dist/getWalletProviderByKey-z1nf15R8.cjs.map +0 -1
- package/dist/isMfaRequiredForAction-BAqo9eBq.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-YGaK8XRO.cjs.map +0 -1
- package/dist/isUserOnboardingComplete-BT_SR4m_.esm.js.map +0 -1
- package/dist/isUserOnboardingComplete-Bo9grSze.cjs.map +0 -1
- package/dist/isUserOnboardingComplete-CVHzzTtG.native.esm.js.map +0 -1
package/dist/index.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 require_isUserOnboardingComplete = require('./isUserOnboardingComplete-
|
|
1
|
+
const require_isMfaRequiredForAction = require('./isMfaRequiredForAction-DFowphoV.cjs');
|
|
2
|
+
const require_InvalidParamError = require('./InvalidParamError-Cs4ZMEj4.cjs');
|
|
3
|
+
const require_getNetworkProviderFromNetworkId = require('./getNetworkProviderFromNetworkId-CdCEFEgT.cjs');
|
|
4
|
+
const require_getWalletProviderByKey = require('./getWalletProviderByKey-OD65GUWG.cjs');
|
|
5
|
+
const require_refreshAuth = require('./refreshAuth-B3XSU6GT.cjs');
|
|
6
|
+
const require_isDynamicWaasEnabled = require('./isDynamicWaasEnabled-C90E53x1.cjs');
|
|
7
|
+
const require_isUserOnboardingComplete = require('./isUserOnboardingComplete-77jTT2BB.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;
|
|
@@ -1527,7 +1527,7 @@ const STEP_UP_REQUIRED_DEFAULT = {
|
|
|
1527
1527
|
* @instrumented
|
|
1528
1528
|
*/
|
|
1529
1529
|
const checkStepUpAuth = async ({ scope }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
1530
|
-
if (require_InvalidParamError.
|
|
1530
|
+
if (require_InvalidParamError.getElevatedAccessToken({
|
|
1531
1531
|
consume: false,
|
|
1532
1532
|
scope
|
|
1533
1533
|
}, client)) return {
|
|
@@ -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");
|
|
@@ -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);
|
|
@@ -3117,7 +3117,7 @@ const __revokeRegisteredDevice_wrapped = require_InvalidParamError.instrumentFun
|
|
|
3117
3117
|
|
|
3118
3118
|
//#endregion
|
|
3119
3119
|
//#region src/modules/flow/utils/createFlowSessionTokenStorageKey/createFlowSessionTokenStorageKey.ts
|
|
3120
|
-
/** @
|
|
3120
|
+
/** @notInstrumented */
|
|
3121
3121
|
const createFlowSessionTokenStorageKey = (flowId) => {
|
|
3122
3122
|
return require_isMfaRequiredForAction.createStorageKeySchema({
|
|
3123
3123
|
key: `flowSessionToken:${flowId}`,
|
|
@@ -3141,7 +3141,7 @@ const createFlowSessionTokenStorageKey = (flowId) => {
|
|
|
3141
3141
|
* The server-side revocation lives in dashboard-api; this is the SDK-side
|
|
3142
3142
|
* defense-in-depth.
|
|
3143
3143
|
*
|
|
3144
|
-
* @
|
|
3144
|
+
* @notInstrumented
|
|
3145
3145
|
*/
|
|
3146
3146
|
const clearFlowSessionToken = async ({ flowId }, client) => {
|
|
3147
3147
|
await require_InvalidParamError.getCore(client).storage.removeItem(createFlowSessionTokenStorageKey(flowId));
|
|
@@ -3156,7 +3156,7 @@ const clearFlowSessionToken = async ({ flowId }, client) => {
|
|
|
3156
3156
|
* exfiltration surface for no benefit and makes the next SDK load attempt
|
|
3157
3157
|
* requests that are guaranteed to fail.
|
|
3158
3158
|
*
|
|
3159
|
-
* @
|
|
3159
|
+
* @notInstrumented
|
|
3160
3160
|
*/
|
|
3161
3161
|
const withFlowSessionTokenCleanupOn401 = async ({ call, flowId }, client) => {
|
|
3162
3162
|
try {
|
|
@@ -3191,7 +3191,11 @@ const attachFlowSource = async (params, client = require_InvalidParamError.getDe
|
|
|
3191
3191
|
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
3192
3192
|
const flowAttachSourceRequest = { sourceType };
|
|
3193
3193
|
if (params.sourceType === "exchange") flowAttachSourceRequest.exchangeProvider = params.exchangeProvider;
|
|
3194
|
-
else {
|
|
3194
|
+
else if (params.sourceType === "deposit_address") {
|
|
3195
|
+
flowAttachSourceRequest.fromChainId = params.fromChainId;
|
|
3196
|
+
flowAttachSourceRequest.fromChainName = params.fromChainName;
|
|
3197
|
+
if (params.fromAddress) flowAttachSourceRequest.fromAddress = params.fromAddress;
|
|
3198
|
+
} else {
|
|
3195
3199
|
flowAttachSourceRequest.fromAddress = params.fromAddress;
|
|
3196
3200
|
flowAttachSourceRequest.fromChainId = params.fromChainId;
|
|
3197
3201
|
flowAttachSourceRequest.fromChainName = params.fromChainName;
|
|
@@ -3222,7 +3226,7 @@ const __attachFlowSource_wrapped = require_InvalidParamError.instrumentFunction(
|
|
|
3222
3226
|
|
|
3223
3227
|
//#endregion
|
|
3224
3228
|
//#region src/modules/flow/utils/createFlowApiClient/createFlowApiClient.ts
|
|
3225
|
-
/** @
|
|
3229
|
+
/** @notInstrumented */
|
|
3226
3230
|
const createFlowApiClient = async ({ flowId }, client) => {
|
|
3227
3231
|
const core = require_InvalidParamError.getCore(client);
|
|
3228
3232
|
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
@@ -3318,7 +3322,7 @@ const __cancelFlow_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
3318
3322
|
* @param params GetFlowParams - The parameters for fetching the flow.
|
|
3319
3323
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3320
3324
|
* @returns The flow
|
|
3321
|
-
* @
|
|
3325
|
+
* @notInstrumented
|
|
3322
3326
|
*/
|
|
3323
3327
|
const getFlow = async ({ flowId }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3324
3328
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -3336,7 +3340,7 @@ const getFlow = async ({ flowId }, client = require_InvalidParamError.getDefault
|
|
|
3336
3340
|
* @param params GetFlowQuoteParams - The quote parameters.
|
|
3337
3341
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3338
3342
|
* @returns The updated flow with quote data
|
|
3339
|
-
* @
|
|
3343
|
+
* @notInstrumented
|
|
3340
3344
|
*/
|
|
3341
3345
|
const getFlowQuote = async ({ flowId, fromChainId, fromTokenAddress, slippage }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3342
3346
|
const { apiClient, environmentId, sessionToken } = await createFlowApiClient({ flowId }, client);
|
|
@@ -3451,7 +3455,7 @@ const __submitFlowTransaction_wrapped = require_InvalidParamError.instrumentFunc
|
|
|
3451
3455
|
* @returns A function to remove the listener.
|
|
3452
3456
|
* @throws {ValueMustBeDefinedError} If the window is not available.
|
|
3453
3457
|
* @docs https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/apple-pay-onramp-api#events-names
|
|
3454
|
-
* @
|
|
3458
|
+
* @notInstrumented
|
|
3455
3459
|
* @hook Event listeners are error-prone to wire up by hand with useEffect.
|
|
3456
3460
|
*/
|
|
3457
3461
|
const addCoinbaseOnrampOrderEventListener = ({ listener }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -3493,7 +3497,7 @@ const addCoinbaseOnrampOrderEventListener = ({ listener }, client = require_Inva
|
|
|
3493
3497
|
* @returns FieldMissingVerificationForCoinbaseOnramp[] - An array of fields that are missing verification for a Coinbase onramp order
|
|
3494
3498
|
* @throws {InvalidParamError} - If the payment method is not valid
|
|
3495
3499
|
* @throws {ValueMustBeDefinedError} - If the user is not authenticated
|
|
3496
|
-
* @
|
|
3500
|
+
* @notInstrumented
|
|
3497
3501
|
*/
|
|
3498
3502
|
const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3499
3503
|
if (paymentMethod !== "GUEST_CHECKOUT_APPLE_PAY") throw new require_InvalidParamError.InvalidParamError(`Invalid payment method: ${paymentMethod}`);
|
|
@@ -3531,7 +3535,7 @@ const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client
|
|
|
3531
3535
|
|
|
3532
3536
|
//#endregion
|
|
3533
3537
|
//#region src/modules/funding/coinbase/utils/validateUserCredentialsForCoinbaseOnrampOrder/validateUserCredentialsForCoinbaseOnrampOrder.ts
|
|
3534
|
-
/** @
|
|
3538
|
+
/** @notInstrumented */
|
|
3535
3539
|
const validateUserCredentialsForCoinbaseOnrampOrder = (client) => {
|
|
3536
3540
|
const { user } = client;
|
|
3537
3541
|
require_InvalidParamError.assertDefined(user, "User is not authenticated");
|
|
@@ -3606,7 +3610,7 @@ const __createCoinbaseOnrampOrder_wrapped = require_InvalidParamError.instrument
|
|
|
3606
3610
|
* @param buyUrlParams CoinbaseOnrampGetBuyUrlRequest - The parameters for the buy URL.
|
|
3607
3611
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3608
3612
|
* @returns an object containing the buy URL
|
|
3609
|
-
* @
|
|
3613
|
+
* @notInstrumented
|
|
3610
3614
|
*/
|
|
3611
3615
|
const getCoinbaseBuyUrl = async (buyUrlParams, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3612
3616
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -3657,7 +3661,7 @@ const __createCryptoDotComPayment_wrapped = require_InvalidParamError.instrument
|
|
|
3657
3661
|
* @param transferParams - The parameters for the transfer including accountId
|
|
3658
3662
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3659
3663
|
* @returns The created transfer
|
|
3660
|
-
* @
|
|
3664
|
+
* @notInstrumented
|
|
3661
3665
|
*/
|
|
3662
3666
|
const createKrakenExchangeTransfer = async (transferParams, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3663
3667
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -3691,7 +3695,7 @@ const __createKrakenExchangeTransfer_wrapped = require_InvalidParamError.instrum
|
|
|
3691
3695
|
* @param [params] GetKrakenAccountsParams - Optional filters for the accounts.
|
|
3692
3696
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3693
3697
|
* @returns Array of Kraken accounts with balances
|
|
3694
|
-
* @
|
|
3698
|
+
* @notInstrumented
|
|
3695
3699
|
*/
|
|
3696
3700
|
const getKrakenAccounts = async (params, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3697
3701
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -3710,7 +3714,7 @@ const getKrakenAccounts = async (params, client = require_InvalidParamError.getD
|
|
|
3710
3714
|
*
|
|
3711
3715
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3712
3716
|
* @returns Transfer destinations response with whitelisted addresses
|
|
3713
|
-
* @
|
|
3717
|
+
* @notInstrumented
|
|
3714
3718
|
*/
|
|
3715
3719
|
const getKrakenWhitelistedAddresses = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
3716
3720
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -3793,6 +3797,10 @@ var MoonPayProviderNotAvailableError = class extends require_InvalidParamError.B
|
|
|
3793
3797
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3794
3798
|
* @returns The signed MoonPay URL.
|
|
3795
3799
|
* @instrumented
|
|
3800
|
+
* @redact-params - the return is a bare signed onramp URL whose query string
|
|
3801
|
+
* carries the provider signature plus the user's wallet address; a bare-string
|
|
3802
|
+
* return is logged under the synthetic `result` key, which no key-based rule
|
|
3803
|
+
* covers, so redact the whole event.
|
|
3796
3804
|
*/
|
|
3797
3805
|
const getMoonPayUrl = async (params, client = require_InvalidParamError.getDefaultClient()) => {
|
|
3798
3806
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -3826,7 +3834,8 @@ const __getMoonPayUrl_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
3826
3834
|
} catch {
|
|
3827
3835
|
return;
|
|
3828
3836
|
}
|
|
3829
|
-
}
|
|
3837
|
+
},
|
|
3838
|
+
redactAll: true
|
|
3830
3839
|
});
|
|
3831
3840
|
|
|
3832
3841
|
//#endregion
|
|
@@ -3836,7 +3845,7 @@ const __getMoonPayUrl_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
3836
3845
|
* and are ready for use.
|
|
3837
3846
|
*
|
|
3838
3847
|
* @returns a promise that resolves once the client is fully initialized.
|
|
3839
|
-
* @
|
|
3848
|
+
* @notInstrumented
|
|
3840
3849
|
* @noHook Client lifecycle management is not exposed as a hook; use useInitStatus.
|
|
3841
3850
|
*/
|
|
3842
3851
|
const waitForClientInitialized = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -3887,7 +3896,7 @@ const normalize$1 = (value) => value.toLowerCase().replace(/\s+/g, "").replace(/
|
|
|
3887
3896
|
* @param [params.catalogGroupName] - Optional display name (e.g. `"Trust Wallet"`); matched as a fallback when the key is opaque.
|
|
3888
3897
|
* @param params.walletProviders - Currently available wallet providers (from `getAvailableWalletProvidersData`).
|
|
3889
3898
|
* @returns The subset of `walletProviders` that match the catalog group.
|
|
3890
|
-
* @
|
|
3899
|
+
* @notInstrumented
|
|
3891
3900
|
*/
|
|
3892
3901
|
const matchWalletProvidersToCatalogGroup = ({ catalogGroupKey, catalogGroupName, walletProviders }) => {
|
|
3893
3902
|
const targets = new Set([normalize$1(catalogGroupKey)]);
|
|
@@ -3914,7 +3923,7 @@ const matchWalletProvidersToCatalogGroup = ({ catalogGroupKey, catalogGroupName,
|
|
|
3914
3923
|
* multi-chain wallet (same `groupId` across EVM + SOL entries) only runs
|
|
3915
3924
|
* the match once.
|
|
3916
3925
|
*
|
|
3917
|
-
* @
|
|
3926
|
+
* @notInstrumented
|
|
3918
3927
|
*/
|
|
3919
3928
|
const collectInstalledGroupIds = ({ catalog, walletProviders }) => {
|
|
3920
3929
|
const installedGroupIds = /* @__PURE__ */ new Set();
|
|
@@ -3957,7 +3966,7 @@ const collectInstalledGroupIds = ({ catalog, walletProviders }) => {
|
|
|
3957
3966
|
* @param params.catalog - The full WalletConnect catalog (typically from `getWalletConnectCatalog`).
|
|
3958
3967
|
* @param params.walletProviders - Currently available wallet providers.
|
|
3959
3968
|
* @returns A new catalog with only the wallets and groups the user does not have installed.
|
|
3960
|
-
* @
|
|
3969
|
+
* @notInstrumented
|
|
3961
3970
|
*/
|
|
3962
3971
|
const excludeInstalledFromCatalog = ({ catalog, walletProviders }) => {
|
|
3963
3972
|
const installedGroupIds = collectInstalledGroupIds({
|
|
@@ -3985,7 +3994,7 @@ const excludeInstalledFromCatalog = ({ catalog, walletProviders }) => {
|
|
|
3985
3994
|
//#region src/modules/legacyWalletBook/getWalletBookCdnUrl/getWalletBookCdnUrl.ts
|
|
3986
3995
|
/**
|
|
3987
3996
|
* Default CDN URL for the wallet book.
|
|
3988
|
-
* @
|
|
3997
|
+
* @notInstrumented
|
|
3989
3998
|
*/
|
|
3990
3999
|
const DEFAULT_WALLET_BOOK_CDN_URL = "https://dynamic-static-assets.com/wallet-book/v1/stable/wallet-book.json";
|
|
3991
4000
|
/**
|
|
@@ -3997,7 +4006,7 @@ const DEFAULT_WALLET_BOOK_CDN_URL = "https://dynamic-static-assets.com/wallet-bo
|
|
|
3997
4006
|
* 4. Default CDN URL
|
|
3998
4007
|
*
|
|
3999
4008
|
* @returns The wallet book CDN URL to use.
|
|
4000
|
-
* @
|
|
4009
|
+
* @notInstrumented
|
|
4001
4010
|
*/
|
|
4002
4011
|
const getWalletBookCdnUrl = () => {
|
|
4003
4012
|
if (typeof process !== "undefined" && process.env) {
|
|
@@ -4011,7 +4020,7 @@ const getWalletBookCdnUrl = () => {
|
|
|
4011
4020
|
//#region src/modules/legacyWalletBook/fetchLegacyWalletBook/fetchWithTimeout/fetchWithTimeout.ts
|
|
4012
4021
|
/**
|
|
4013
4022
|
* The timeout for each fetch attempt in milliseconds.
|
|
4014
|
-
* @
|
|
4023
|
+
* @notInstrumented
|
|
4015
4024
|
*/
|
|
4016
4025
|
const FETCH_TIMEOUT_MS = 3e4;
|
|
4017
4026
|
/**
|
|
@@ -4019,7 +4028,7 @@ const FETCH_TIMEOUT_MS = 3e4;
|
|
|
4019
4028
|
*
|
|
4020
4029
|
* @param client - The Dynamic client instance.
|
|
4021
4030
|
* @returns A promise that resolves to the wallet book data.
|
|
4022
|
-
* @
|
|
4031
|
+
* @notInstrumented
|
|
4023
4032
|
*/
|
|
4024
4033
|
const fetchWithTimeout = async (client) => {
|
|
4025
4034
|
const controller = new AbortController();
|
|
@@ -4051,7 +4060,7 @@ const walletBookCacheStorageKeySchema = require_isMfaRequiredForAction.createSto
|
|
|
4051
4060
|
//#region src/modules/legacyWalletBook/fetchLegacyWalletBook/fetchLegacyWalletBook.ts
|
|
4052
4061
|
/**
|
|
4053
4062
|
* The maximum number of retry attempts.
|
|
4054
|
-
* @
|
|
4063
|
+
* @notInstrumented
|
|
4055
4064
|
*/
|
|
4056
4065
|
const MAX_RETRIES = 3;
|
|
4057
4066
|
/**
|
|
@@ -4068,7 +4077,7 @@ const RETRY_DELAY_MS = 100;
|
|
|
4068
4077
|
* @param client - The Dynamic client instance.
|
|
4069
4078
|
* @returns A promise that resolves to the wallet book data.
|
|
4070
4079
|
* @throws If both CDN fetch and cache retrieval fail.
|
|
4071
|
-
* @
|
|
4080
|
+
* @notInstrumented
|
|
4072
4081
|
*/
|
|
4073
4082
|
const fetchLegacyWalletBook = async (client) => {
|
|
4074
4083
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -4101,7 +4110,7 @@ const fetchLegacyWalletBook = async (client) => {
|
|
|
4101
4110
|
* catalogue. These wallets are not products the user "connects" to from the
|
|
4102
4111
|
* wallet selection list — they are embedded sign-in methods that live behind
|
|
4103
4112
|
* different SDK entry points.
|
|
4104
|
-
* @
|
|
4113
|
+
* @notInstrumented
|
|
4105
4114
|
*/
|
|
4106
4115
|
const EMBEDDED_WALLET_KEYS = [
|
|
4107
4116
|
"magicemailotp",
|
|
@@ -4130,7 +4139,7 @@ const EMBEDDED_WALLET_KEYS = [
|
|
|
4130
4139
|
* {@link shouldFilterWalletForWalletConnect}.
|
|
4131
4140
|
*
|
|
4132
4141
|
* @returns True if the wallet should be filtered out, false otherwise.
|
|
4133
|
-
* @
|
|
4142
|
+
* @notInstrumented
|
|
4134
4143
|
*/
|
|
4135
4144
|
const shouldFilterWallet = ({ wallet, walletKey }) => {
|
|
4136
4145
|
if (EMBEDDED_WALLET_KEYS.includes(walletKey)) return true;
|
|
@@ -4150,7 +4159,7 @@ const shouldFilterWallet = ({ wallet, walletKey }) => {
|
|
|
4150
4159
|
*
|
|
4151
4160
|
* @returns True if the wallet should be excluded from the WalletConnect
|
|
4152
4161
|
* catalog, false otherwise.
|
|
4153
|
-
* @
|
|
4162
|
+
* @notInstrumented
|
|
4154
4163
|
*/
|
|
4155
4164
|
const shouldFilterWalletForWalletConnect = ({ wallet, walletKey }) => {
|
|
4156
4165
|
if (shouldFilterWallet({
|
|
@@ -4167,7 +4176,7 @@ const shouldFilterWalletForWalletConnect = ({ wallet, walletKey }) => {
|
|
|
4167
4176
|
*
|
|
4168
4177
|
* @param params.spriteId - The sprite identifier from the wallet book.
|
|
4169
4178
|
* @returns The full URL to the sprite icon
|
|
4170
|
-
* @
|
|
4179
|
+
* @notInstrumented
|
|
4171
4180
|
*/
|
|
4172
4181
|
const getSpriteUrl = ({ spriteId }) => `${require_InvalidParamError.DYNAMIC_ICONIC_SPRITE_URL}#${spriteId}`;
|
|
4173
4182
|
|
|
@@ -4175,7 +4184,7 @@ const getSpriteUrl = ({ spriteId }) => `${require_InvalidParamError.DYNAMIC_ICON
|
|
|
4175
4184
|
//#region src/modules/legacyWalletBook/getWalletConnectCatalog/transformGroup/transformGroup.ts
|
|
4176
4185
|
/**
|
|
4177
4186
|
* Transforms a wallet group schema into a WalletConnect catalog group.
|
|
4178
|
-
* @
|
|
4187
|
+
* @notInstrumented
|
|
4179
4188
|
*/
|
|
4180
4189
|
const transformGroup = ({ group }) => {
|
|
4181
4190
|
const spriteId = group.brand?.spriteId ?? "";
|
|
@@ -4202,7 +4211,7 @@ const transformGroup = ({ group }) => {
|
|
|
4202
4211
|
*
|
|
4203
4212
|
* Centralised here rather than in `legacyWalletBook` so all chain naming
|
|
4204
4213
|
* knowledge stays alongside `CHAINS_INFO_MAP`.
|
|
4205
|
-
* @
|
|
4214
|
+
* @notInstrumented
|
|
4206
4215
|
*/
|
|
4207
4216
|
const getChainFromWalletBookIdentifier = ({ identifier }) => {
|
|
4208
4217
|
const normalised = identifier.toLowerCase();
|
|
@@ -4220,7 +4229,7 @@ const getChainFromWalletBookIdentifier = ({ identifier }) => {
|
|
|
4220
4229
|
*
|
|
4221
4230
|
* Exported so {@link getChainsFromWalletSchema} can apply the same
|
|
4222
4231
|
* parsing to its multi-chain pass without duplicating the logic.
|
|
4223
|
-
* @
|
|
4232
|
+
* @notInstrumented
|
|
4224
4233
|
*/
|
|
4225
4234
|
const extractChainPrefix = ({ chainIdentifier }) => {
|
|
4226
4235
|
const colonIndex = chainIdentifier.indexOf(":");
|
|
@@ -4253,7 +4262,7 @@ const getChainFromWalletKey = ({ walletKey }) => {
|
|
|
4253
4262
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
4254
4263
|
* @param params.walletKey - The wallet key identifier (optional, used as last resort fallback).
|
|
4255
4264
|
* @returns The chain type, defaults to EVM if no chain can be determined.
|
|
4256
|
-
* @
|
|
4265
|
+
* @notInstrumented
|
|
4257
4266
|
*/
|
|
4258
4267
|
const getChainFromWalletSchema = ({ wallet, walletKey }) => {
|
|
4259
4268
|
if (wallet.injectedConfig && wallet.injectedConfig.length > 0) {
|
|
@@ -4281,7 +4290,7 @@ const getChainFromWalletSchema = ({ wallet, walletKey }) => {
|
|
|
4281
4290
|
//#region src/modules/legacyWalletBook/getWalletConnectCatalog/transformWallet/transformWallet.ts
|
|
4282
4291
|
/**
|
|
4283
4292
|
* Transforms a wallet schema into a WalletConnect catalog wallet entry.
|
|
4284
|
-
* @
|
|
4293
|
+
* @notInstrumented
|
|
4285
4294
|
*/
|
|
4286
4295
|
const transformWallet = ({ wallet, walletKey }) => {
|
|
4287
4296
|
const spriteId = wallet.brand?.spriteId ?? "";
|
|
@@ -4312,7 +4321,7 @@ const transformWallet = ({ wallet, walletKey }) => {
|
|
|
4312
4321
|
/**
|
|
4313
4322
|
* Transforms the legacy wallet book into a WalletConnect catalog structure.
|
|
4314
4323
|
* Filters out embedded wallets and injected-only wallets.
|
|
4315
|
-
* @
|
|
4324
|
+
* @notInstrumented
|
|
4316
4325
|
*/
|
|
4317
4326
|
const transformWalletBook = ({ walletBook }) => {
|
|
4318
4327
|
const groups = {};
|
|
@@ -4345,7 +4354,7 @@ const transformWalletBook = ({ walletBook }) => {
|
|
|
4345
4354
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4346
4355
|
* @returns A promise that resolves to the WalletConnect catalog containing groups and wallets.
|
|
4347
4356
|
* @throws If unable to fetch the wallet book from the API (when both CDN fetch and cache retrieval fail).
|
|
4348
|
-
* @
|
|
4357
|
+
* @notInstrumented
|
|
4349
4358
|
*/
|
|
4350
4359
|
const getWalletConnectCatalog = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
4351
4360
|
return transformWalletBook({ walletBook: await fetchLegacyWalletBook(client) });
|
|
@@ -4359,7 +4368,7 @@ const getWalletConnectCatalog = async (client = require_InvalidParamError.getDef
|
|
|
4359
4368
|
*
|
|
4360
4369
|
* @param params.normalizedWalletNameWithChain - The normalized wallet name with chain suffix.
|
|
4361
4370
|
* @returns The chain if found, undefined otherwise.
|
|
4362
|
-
* @
|
|
4371
|
+
* @notInstrumented
|
|
4363
4372
|
*/
|
|
4364
4373
|
const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
|
|
4365
4374
|
const lowerName = normalizedWalletNameWithChain.toLowerCase();
|
|
@@ -4379,7 +4388,7 @@ const extractChainFromNormalizedName = ({ normalizedWalletNameWithChain }) => {
|
|
|
4379
4388
|
* @param params.walletProviderKey - The wallet provider key to get the catalog wallet entry for.
|
|
4380
4389
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4381
4390
|
* @returns A promise that resolves to the WalletConnect catalog wallet entry, or undefined if not found.
|
|
4382
|
-
* @
|
|
4391
|
+
* @notInstrumented
|
|
4383
4392
|
*/
|
|
4384
4393
|
const getWalletConnectCatalogWalletByWalletProviderKey = async ({ walletProviderKey }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
4385
4394
|
const { normalizedWalletNameWithChain } = require_InvalidParamError.splitWalletProviderKey(walletProviderKey);
|
|
@@ -4485,7 +4494,7 @@ const __acknowledgeRecoveryCodes_wrapped = require_InvalidParamError.instrumentF
|
|
|
4485
4494
|
* @param [params.requestedScopes] - Optional scopes to request an elevated access token instead of an MFA token.
|
|
4486
4495
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4487
4496
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4488
|
-
* @
|
|
4497
|
+
* @notInstrumented
|
|
4489
4498
|
*/
|
|
4490
4499
|
const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, requestedScopes }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
4491
4500
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -4516,7 +4525,7 @@ const authenticateMfaRecoveryCode = async ({ code, createMfaTokenOptions, reques
|
|
|
4516
4525
|
|
|
4517
4526
|
//#endregion
|
|
4518
4527
|
//#region src/modules/auth/passkeys/getPasskeyAuthenticationOptions/getPasskeyAuthenticationOptions.ts
|
|
4519
|
-
/** @
|
|
4528
|
+
/** @notInstrumented */
|
|
4520
4529
|
const getPasskeyAuthenticationOptions = async ({ relatedOriginRpId } = {}, client) => {
|
|
4521
4530
|
const core = require_InvalidParamError.getCore(client);
|
|
4522
4531
|
return await require_InvalidParamError.createApiClient({}, client).getPasskeyAuthenticationOptions({
|
|
@@ -4527,7 +4536,7 @@ const getPasskeyAuthenticationOptions = async ({ relatedOriginRpId } = {}, clien
|
|
|
4527
4536
|
|
|
4528
4537
|
//#endregion
|
|
4529
4538
|
//#region src/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.ts
|
|
4530
|
-
/** @
|
|
4539
|
+
/** @notInstrumented */
|
|
4531
4540
|
const serverAuthenticatePasskey = async ({ authentication, createMfaToken, requestedScopes }, client) => {
|
|
4532
4541
|
const core = require_InvalidParamError.getCore(client);
|
|
4533
4542
|
return await require_InvalidParamError.createApiClient({}, client).authenticateMfaPasskeyDevice({
|
|
@@ -4558,7 +4567,7 @@ const serverAuthenticatePasskey = async ({ authentication, createMfaToken, reque
|
|
|
4558
4567
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4559
4568
|
* @throws NoWebAuthNSupportError If WebAuthn is not supported by the browser.
|
|
4560
4569
|
* @throws NoPasskeyCredentialsFoundError If no passkey credentials are found.
|
|
4561
|
-
* @
|
|
4570
|
+
* @notInstrumented
|
|
4562
4571
|
*/
|
|
4563
4572
|
const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, requestedScopes } = {}, client = require_InvalidParamError.getDefaultClient()) => {
|
|
4564
4573
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -4608,7 +4617,7 @@ const authenticatePasskeyMFA = async ({ createMfaToken, relatedOriginRpId, reque
|
|
|
4608
4617
|
* @param [params.requestedScopes] - Optional scopes to request an elevated access token instead of an MFA token.
|
|
4609
4618
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4610
4619
|
* @returns A promise that resolves to the MFA authentication response.
|
|
4611
|
-
* @
|
|
4620
|
+
* @notInstrumented
|
|
4612
4621
|
*/
|
|
4613
4622
|
const authenticateTotpMfaDevice = async ({ deviceId, code, createMfaTokenOptions, requestedScopes }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
4614
4623
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -4694,7 +4703,7 @@ const __createNewMfaRecoveryCodes_wrapped = require_InvalidParamError.instrument
|
|
|
4694
4703
|
const deleteMfaDevice = async ({ deviceId, mfaAuthToken }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
4695
4704
|
const core = require_InvalidParamError.getCore(client);
|
|
4696
4705
|
require_InvalidParamError.assertDefined(deviceId, "deviceId is required");
|
|
4697
|
-
if (!require_InvalidParamError.
|
|
4706
|
+
if (!require_InvalidParamError.getElevatedAccessToken({
|
|
4698
4707
|
consume: false,
|
|
4699
4708
|
scope: _dynamic_labs_sdk_api_core.TokenScope.Credentialunlink
|
|
4700
4709
|
}, client)) require_InvalidParamError.assertDefined(mfaAuthToken, "mfaAuthToken is required");
|
|
@@ -4727,7 +4736,7 @@ const __deleteMfaDevice_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
4727
4736
|
*
|
|
4728
4737
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4729
4738
|
* @returns A promise that resolves to an array of the user's registered MFA devices.
|
|
4730
|
-
* @
|
|
4739
|
+
* @notInstrumented
|
|
4731
4740
|
*/
|
|
4732
4741
|
const getMfaDevices = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
4733
4742
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -4747,7 +4756,7 @@ const getMfaDevices = async (client = require_InvalidParamError.getDefaultClient
|
|
|
4747
4756
|
*
|
|
4748
4757
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4749
4758
|
* @returns A promise that resolves to the user's MFA recovery codes.
|
|
4750
|
-
* @
|
|
4759
|
+
* @notInstrumented
|
|
4751
4760
|
*/
|
|
4752
4761
|
const getMfaRecoveryCodes = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
4753
4762
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -4766,6 +4775,9 @@ const getMfaRecoveryCodes = async (client = require_InvalidParamError.getDefault
|
|
|
4766
4775
|
* @returns A promise that resolves to the TOTP registration response containing setup information,
|
|
4767
4776
|
* like the secret key and the OTP Auth URI.
|
|
4768
4777
|
* @instrumented
|
|
4778
|
+
* @redact-params - the response embeds the TOTP shared secret in both `secret`
|
|
4779
|
+
* and the `uri` (`otpauth://...?secret=...`); redact the whole event so the
|
|
4780
|
+
* seed never reaches logs via the un-keyed `uri` field.
|
|
4769
4781
|
*/
|
|
4770
4782
|
const registerTotpMfaDevice = async (client = require_InvalidParamError.getDefaultClient()) => {
|
|
4771
4783
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -4781,7 +4793,8 @@ const __registerTotpMfaDevice_wrapped = require_InvalidParamError.instrumentFunc
|
|
|
4781
4793
|
} catch {
|
|
4782
4794
|
return;
|
|
4783
4795
|
}
|
|
4784
|
-
}
|
|
4796
|
+
},
|
|
4797
|
+
redactAll: true
|
|
4785
4798
|
});
|
|
4786
4799
|
|
|
4787
4800
|
//#endregion
|
|
@@ -5832,7 +5845,7 @@ const __sendSmsOTP_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
5832
5845
|
|
|
5833
5846
|
//#endregion
|
|
5834
5847
|
//#region src/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.ts
|
|
5835
|
-
/** @
|
|
5848
|
+
/** @notInstrumented */
|
|
5836
5849
|
const verifyOTPForUserSignIn = async ({ otpVerification, verificationToken }, client) => {
|
|
5837
5850
|
const core = require_InvalidParamError.getCore(client);
|
|
5838
5851
|
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
@@ -5852,7 +5865,7 @@ const verifyOTPForUserSignIn = async ({ otpVerification, verificationToken }, cl
|
|
|
5852
5865
|
|
|
5853
5866
|
//#endregion
|
|
5854
5867
|
//#region src/modules/otp/verifyOTP/verifyOTPForUserUpdate/verifyOTPForUserUpdate.ts
|
|
5855
|
-
/** @
|
|
5868
|
+
/** @notInstrumented */
|
|
5856
5869
|
const verifyOTPForUserUpdate = async ({ otpVerification, verificationToken, requestedScopes }, client) => {
|
|
5857
5870
|
const core = require_InvalidParamError.getCore(client);
|
|
5858
5871
|
const apiClient = require_InvalidParamError.createApiClient({}, client);
|
|
@@ -5923,7 +5936,7 @@ const __verifyOTP_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
5923
5936
|
* @param params GetSwapQuoteParams - The parameters for the swap quote.
|
|
5924
5937
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
5925
5938
|
* @returns The swap quote details. Use the `signingPayload` field to get the transaction data for the wallet to sign.
|
|
5926
|
-
* @
|
|
5939
|
+
* @notInstrumented
|
|
5927
5940
|
*/
|
|
5928
5941
|
const getSwapQuote = async (params, client = require_InvalidParamError.getDefaultClient()) => {
|
|
5929
5942
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -5958,7 +5971,7 @@ const getSwapQuote = async (params, client = require_InvalidParamError.getDefaul
|
|
|
5958
5971
|
* @param params GetSwapStatusParams - The parameters for the swap status.
|
|
5959
5972
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
5960
5973
|
* @returns The swap status.
|
|
5961
|
-
* @
|
|
5974
|
+
* @notInstrumented
|
|
5962
5975
|
*/
|
|
5963
5976
|
const getSwapStatus = async (params, client = require_InvalidParamError.getDefaultClient()) => {
|
|
5964
5977
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -6054,7 +6067,7 @@ const ACCESS_DENIED_PHRASE = "Google Drive access denied";
|
|
|
6054
6067
|
*
|
|
6055
6068
|
* @param grantedScopes - Scopes the user has granted to their Google account.
|
|
6056
6069
|
* @returns The subset of required scopes that are still missing.
|
|
6057
|
-
* @
|
|
6070
|
+
* @notInstrumented
|
|
6058
6071
|
*/
|
|
6059
6072
|
const findMissingGoogleDriveBackupScopes = (grantedScopes) => GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES.filter((required) => !grantedScopes.includes(required));
|
|
6060
6073
|
|
|
@@ -6072,7 +6085,7 @@ const findMissingGoogleDriveBackupScopes = (grantedScopes) => GOOGLE_DRIVE_BACKU
|
|
|
6072
6085
|
* Google account (see `findGoogleOauthAccountId`).
|
|
6073
6086
|
* @param client - The Dynamic client instance.
|
|
6074
6087
|
* @returns The OAuth access token and granted scopes.
|
|
6075
|
-
* @
|
|
6088
|
+
* @notInstrumented
|
|
6076
6089
|
*/
|
|
6077
6090
|
const fetchGoogleDriveOauthAccess = async ({ oauthAccountId }, client) => {
|
|
6078
6091
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -6097,7 +6110,7 @@ const fetchGoogleDriveOauthAccess = async ({ oauthAccountId }, client) => {
|
|
|
6097
6110
|
* `client.user?.verifiedCredentials`.
|
|
6098
6111
|
* @returns The credential id of the linked Google oauth account, or
|
|
6099
6112
|
* `undefined`.
|
|
6100
|
-
* @
|
|
6113
|
+
* @notInstrumented
|
|
6101
6114
|
*/
|
|
6102
6115
|
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;
|
|
6103
6116
|
|
|
@@ -6181,7 +6194,7 @@ const __getGoogleDriveBackupReadiness_wrapped = require_InvalidParamError.instru
|
|
|
6181
6194
|
*
|
|
6182
6195
|
* @param grantedScopes - Scopes the user has granted to their Google account.
|
|
6183
6196
|
* @returns `true` when every required scope is granted, otherwise `false`.
|
|
6184
|
-
* @
|
|
6197
|
+
* @notInstrumented
|
|
6185
6198
|
*/
|
|
6186
6199
|
const hasAllGoogleDriveBackupScopes = (grantedScopes) => findMissingGoogleDriveBackupScopes(grantedScopes).length === 0;
|
|
6187
6200
|
|
|
@@ -6198,7 +6211,7 @@ const hasAllGoogleDriveBackupScopes = (grantedScopes) => findMissingGoogleDriveB
|
|
|
6198
6211
|
* @param err - The unknown value to check.
|
|
6199
6212
|
* @returns `true` when `err` is an `Error` whose message indicates Google
|
|
6200
6213
|
* Drive access was denied.
|
|
6201
|
-
* @
|
|
6214
|
+
* @notInstrumented
|
|
6202
6215
|
*/
|
|
6203
6216
|
const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && err.message.includes(ACCESS_DENIED_PHRASE);
|
|
6204
6217
|
|
|
@@ -6206,57 +6219,57 @@ const isInsufficientGoogleDriveScopesError = (err) => err instanceof Error && er
|
|
|
6206
6219
|
//#region src/utils/isMobile/isMobile.ts
|
|
6207
6220
|
/**
|
|
6208
6221
|
* Sourced from http://detectmobilebrowsers.com/
|
|
6209
|
-
* @
|
|
6222
|
+
* @notInstrumented
|
|
6210
6223
|
*/
|
|
6211
6224
|
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;
|
|
6212
6225
|
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;
|
|
6213
|
-
/** @
|
|
6226
|
+
/** @notInstrumented */
|
|
6214
6227
|
const isMobile = (maxTouchPointsOverride) => {
|
|
6215
6228
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6216
6229
|
return userAgentRegex1.test(navigator.userAgent) || userAgentRegex2.test(navigator.userAgent.substring(0, 4)) || isIPad(maxTouchPointsOverride) || isIPhone();
|
|
6217
6230
|
};
|
|
6218
|
-
/** @
|
|
6231
|
+
/** @notInstrumented */
|
|
6219
6232
|
const isIPhone = () => typeof window === "undefined" || typeof navigator === "undefined" ? false : /iPhone|ios/.test(navigator.userAgent);
|
|
6220
6233
|
/**
|
|
6221
6234
|
* @param [optional] maxTouchPointsOverride - this is used for testing since
|
|
6222
6235
|
* it seems that JSDOM doesn't support maxTouchPoints, so it was impossible
|
|
6223
6236
|
* to mock it
|
|
6224
|
-
* @
|
|
6237
|
+
* @notInstrumented
|
|
6225
6238
|
*/
|
|
6226
6239
|
const isIPad = (maxTouchPointsOverride) => {
|
|
6227
6240
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6228
6241
|
const maxTouchPoints = maxTouchPointsOverride || navigator.maxTouchPoints;
|
|
6229
6242
|
return /iPad/.test(navigator.userAgent) || /Mac/.test(navigator.userAgent) && maxTouchPoints === 5;
|
|
6230
6243
|
};
|
|
6231
|
-
/** @
|
|
6244
|
+
/** @notInstrumented */
|
|
6232
6245
|
const isIOS = (maxTouchPointsOverride) => {
|
|
6233
6246
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6234
6247
|
return isIPhone() || isIPad(maxTouchPointsOverride);
|
|
6235
6248
|
};
|
|
6236
|
-
/** @
|
|
6249
|
+
/** @notInstrumented */
|
|
6237
6250
|
const isAndroid = () => isMobile() && !isIOS();
|
|
6238
|
-
/** @
|
|
6251
|
+
/** @notInstrumented */
|
|
6239
6252
|
const isSafariBrowser = () => {
|
|
6240
6253
|
if (typeof window === "undefined" || typeof navigator === "undefined") return false;
|
|
6241
6254
|
const { userAgent } = navigator;
|
|
6242
6255
|
return userAgent.includes("Safari") && !userAgent.includes("Chrome") && !userAgent.includes("Chromium");
|
|
6243
6256
|
};
|
|
6244
|
-
/** @
|
|
6257
|
+
/** @notInstrumented */
|
|
6245
6258
|
const isEdgeBrowser = () => {
|
|
6246
6259
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6247
6260
|
return /\bEdg\//.test(navigator.userAgent);
|
|
6248
6261
|
};
|
|
6249
|
-
/** @
|
|
6262
|
+
/** @notInstrumented */
|
|
6250
6263
|
const isOperaBrowser = () => {
|
|
6251
6264
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6252
6265
|
return /\b(OPR|Opera)\//.test(navigator.userAgent);
|
|
6253
6266
|
};
|
|
6254
|
-
/** @
|
|
6267
|
+
/** @notInstrumented */
|
|
6255
6268
|
const isFirefoxBrowser = () => {
|
|
6256
6269
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6257
6270
|
return /\bFirefox\//.test(navigator.userAgent);
|
|
6258
6271
|
};
|
|
6259
|
-
/** @
|
|
6272
|
+
/** @notInstrumented */
|
|
6260
6273
|
const isChromeBrowser = () => {
|
|
6261
6274
|
if (globalThis.window === void 0 || globalThis.navigator === void 0) return false;
|
|
6262
6275
|
return /\bChrome\//.test(navigator.userAgent) && !isEdgeBrowser() && !isOperaBrowser();
|
|
@@ -6290,7 +6303,7 @@ const isChromeBrowser = () => {
|
|
|
6290
6303
|
* @param params.installationUrls - The wallet option's `installationUrls`
|
|
6291
6304
|
* record (from `getWalletOptionsCatalogue`).
|
|
6292
6305
|
* @returns The install URL for the detected platform, or `undefined`.
|
|
6293
|
-
* @
|
|
6306
|
+
* @notInstrumented
|
|
6294
6307
|
*/
|
|
6295
6308
|
const getInstallationLinkForCurrentPlatform = ({ installationUrls }) => {
|
|
6296
6309
|
if (isIOS()) return installationUrls.ios;
|
|
@@ -6316,7 +6329,7 @@ const getInstallationLinkForCurrentPlatform = ({ installationUrls }) => {
|
|
|
6316
6329
|
* @param params.wallet - The wallet entry.
|
|
6317
6330
|
* @param params.walletKey - The wallet's key in `walletBook.wallets`.
|
|
6318
6331
|
* @returns The wallet option key.
|
|
6319
|
-
* @
|
|
6332
|
+
* @notInstrumented
|
|
6320
6333
|
*/
|
|
6321
6334
|
const resolveWalletBookWalletOptionKey = ({ wallet, walletKey }) => wallet.group ?? wallet.chainGroup ?? wallet.walletGroup ?? walletKey;
|
|
6322
6335
|
|
|
@@ -6331,7 +6344,7 @@ const resolveWalletBookWalletOptionKey = ({ wallet, walletKey }) => wallet.group
|
|
|
6331
6344
|
*
|
|
6332
6345
|
* @param params.wallet - The wallet book wallet entry.
|
|
6333
6346
|
* @returns The in-app browser URL, or `undefined` if neither field is set.
|
|
6334
|
-
* @
|
|
6347
|
+
* @notInstrumented
|
|
6335
6348
|
*/
|
|
6336
6349
|
const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wallet.mobile?.inAppBrowser ?? void 0;
|
|
6337
6350
|
|
|
@@ -6349,7 +6362,7 @@ const getInAppBrowserUrl = ({ wallet }) => wallet.mobile?.inAppBrowserV2 ?? wall
|
|
|
6349
6362
|
*
|
|
6350
6363
|
* @param params.walletBook - The fetched wallet book.
|
|
6351
6364
|
* @returns Tagged `inAppBrowser` options paired with their wallet option keys.
|
|
6352
|
-
* @
|
|
6365
|
+
* @notInstrumented
|
|
6353
6366
|
*/
|
|
6354
6367
|
const buildInAppBrowserOptions = ({ walletBook }) => {
|
|
6355
6368
|
const result = [];
|
|
@@ -6396,7 +6409,7 @@ const EDGE_ADDONS_URL_TEMPLATE = "https://microsoftedge.microsoft.com/addons/det
|
|
|
6396
6409
|
*
|
|
6397
6410
|
* @param params.wallet - The wallet book entry.
|
|
6398
6411
|
* @returns The URL bag, omitting fields the wallet does not provide.
|
|
6399
|
-
* @
|
|
6412
|
+
* @notInstrumented
|
|
6400
6413
|
*/
|
|
6401
6414
|
const buildInstallationUrls = ({ wallet }) => {
|
|
6402
6415
|
const androidId = wallet.mobile?.androidId;
|
|
@@ -6440,7 +6453,7 @@ const hasAnyInstallationUrl = ({ urls }) => Object.values(urls).some(Boolean);
|
|
|
6440
6453
|
*
|
|
6441
6454
|
* @param params.walletBook - The fetched wallet book.
|
|
6442
6455
|
* @returns A map from wallet option key to its install URL bag.
|
|
6443
|
-
* @
|
|
6456
|
+
* @notInstrumented
|
|
6444
6457
|
*/
|
|
6445
6458
|
const buildInstallationUrlsByWalletOptionKey = ({ walletBook }) => {
|
|
6446
6459
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -6471,7 +6484,7 @@ const buildInstallationUrlsByWalletOptionKey = ({ walletBook }) => {
|
|
|
6471
6484
|
*
|
|
6472
6485
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
6473
6486
|
* @returns True when the wallet has a native or universal mobile link.
|
|
6474
|
-
* @
|
|
6487
|
+
* @notInstrumented
|
|
6475
6488
|
*/
|
|
6476
6489
|
const hasUsableDeeplink = ({ wallet }) => Boolean(wallet.mobile?.native || wallet.mobile?.universal);
|
|
6477
6490
|
|
|
@@ -6510,7 +6523,7 @@ const METAMASK_SDK_URI_SUPPORTED_CHAINS = ["EVM", "SOL"];
|
|
|
6510
6523
|
*
|
|
6511
6524
|
* @param params.walletBook - The fetched wallet book.
|
|
6512
6525
|
* @returns Tagged `metamaskSdkUri` options for MetaMask if eligible, otherwise an empty array.
|
|
6513
|
-
* @
|
|
6526
|
+
* @notInstrumented
|
|
6514
6527
|
*/
|
|
6515
6528
|
const buildMetaMaskSdkUriOptions = ({ walletBook }) => {
|
|
6516
6529
|
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) {
|
|
@@ -6557,7 +6570,7 @@ const buildMetaMaskSdkUriOptions = ({ walletBook }) => {
|
|
|
6557
6570
|
* @param params.wallet - The wallet schema from the wallet book.
|
|
6558
6571
|
* @param [params.walletKey] - The wallet key identifier (used as last-resort fallback).
|
|
6559
6572
|
* @returns Ordered, deduped array of Chains.
|
|
6560
|
-
* @
|
|
6573
|
+
* @notInstrumented
|
|
6561
6574
|
*/
|
|
6562
6575
|
const getChainsFromWalletSchema = ({ wallet, walletKey }) => {
|
|
6563
6576
|
const chains = /* @__PURE__ */ new Set();
|
|
@@ -6608,7 +6621,7 @@ const WALLETCONNECT_SUPPORTED_CHAINS = new Set(["EVM", "SOL"]);
|
|
|
6608
6621
|
*
|
|
6609
6622
|
* @param params.walletBook - The fetched wallet book.
|
|
6610
6623
|
* @returns Tagged `walletConnect` options paired with their wallet option keys.
|
|
6611
|
-
* @
|
|
6624
|
+
* @notInstrumented
|
|
6612
6625
|
*/
|
|
6613
6626
|
const buildWalletConnectOptions = ({ walletBook }) => {
|
|
6614
6627
|
const result = [];
|
|
@@ -6675,7 +6688,7 @@ const buildWalletConnectOptions = ({ walletBook }) => {
|
|
|
6675
6688
|
* @param params.walletBook - The fetched wallet book.
|
|
6676
6689
|
* @param params.walletOptionKey - The wallet option key.
|
|
6677
6690
|
* @returns The constructed wallet option.
|
|
6678
|
-
* @
|
|
6691
|
+
* @notInstrumented
|
|
6679
6692
|
*/
|
|
6680
6693
|
const buildWalletOption = ({ connectionOptions, displayOverride, installationUrls, walletBook, walletOptionKey }) => {
|
|
6681
6694
|
const group = walletBook.groups[walletOptionKey];
|
|
@@ -6713,7 +6726,7 @@ const buildWalletOption = ({ connectionOptions, displayOverride, installationUrl
|
|
|
6713
6726
|
*
|
|
6714
6727
|
* @param params.walletProvider - The wallet provider to test.
|
|
6715
6728
|
* @returns True when the provider exposes a `connect` method.
|
|
6716
|
-
* @
|
|
6729
|
+
* @notInstrumented
|
|
6717
6730
|
*/
|
|
6718
6731
|
const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletProvider.connect);
|
|
6719
6732
|
|
|
@@ -6740,7 +6753,7 @@ const hasWalletProviderConnectMethod = ({ walletProvider }) => Boolean(walletPro
|
|
|
6740
6753
|
* @param params.entry - The registry entry to classify.
|
|
6741
6754
|
* @returns The matching source, or `undefined` if this entry should not
|
|
6742
6755
|
* surface a `withWalletProvider` option.
|
|
6743
|
-
* @
|
|
6756
|
+
* @notInstrumented
|
|
6744
6757
|
*/
|
|
6745
6758
|
const classifyWithWalletProviderSource = ({ entry }) => {
|
|
6746
6759
|
const { priority } = entry;
|
|
@@ -6761,7 +6774,7 @@ const classifyWithWalletProviderSource = ({ entry }) => {
|
|
|
6761
6774
|
* @param params.chain - The chain whose suffix should be stripped.
|
|
6762
6775
|
* @param params.normalizedName - The normalized wallet-name-with-chain string.
|
|
6763
6776
|
* @returns The name with the chain suffix removed, or the input unchanged.
|
|
6764
|
-
* @
|
|
6777
|
+
* @notInstrumented
|
|
6765
6778
|
*/
|
|
6766
6779
|
const stripChainSuffix = ({ chain, normalizedName }) => {
|
|
6767
6780
|
const suffix = chain.toLowerCase();
|
|
@@ -6790,7 +6803,7 @@ const stripChainSuffix = ({ chain, normalizedName }) => {
|
|
|
6790
6803
|
*
|
|
6791
6804
|
* @param displayName - The provider's `metadata.displayName`.
|
|
6792
6805
|
* @returns The normalized wallet option key (lowercased, no whitespace).
|
|
6793
|
-
* @
|
|
6806
|
+
* @notInstrumented
|
|
6794
6807
|
*/
|
|
6795
6808
|
const normalizeWalletDisplayName = (displayName) => displayName.toLowerCase().replace(/\s+/g, "");
|
|
6796
6809
|
|
|
@@ -6808,7 +6821,7 @@ const normalize = (value) => value === void 0 ? void 0 : value.toLowerCase().rep
|
|
|
6808
6821
|
* @param params.candidate - The lowercased, chain-suffix-stripped candidate.
|
|
6809
6822
|
* @param params.walletBook - The fetched wallet book.
|
|
6810
6823
|
* @returns The matching wallet book wallet key, or `undefined`.
|
|
6811
|
-
* @
|
|
6824
|
+
* @notInstrumented
|
|
6812
6825
|
*/
|
|
6813
6826
|
const findByNameMatch = ({ candidate, walletBook }) => {
|
|
6814
6827
|
for (const [walletKey, wallet] of Object.entries(walletBook.wallets)) if (normalize(wallet.name) === candidate || normalize(wallet.shortName) === candidate) return walletKey;
|
|
@@ -6826,7 +6839,7 @@ const findByNameMatch = ({ candidate, walletBook }) => {
|
|
|
6826
6839
|
* @param params.fallback - Wallet key to return if no group field is set.
|
|
6827
6840
|
* @param params.wallet - The wallet book wallet entry.
|
|
6828
6841
|
* @returns The resolved wallet option key.
|
|
6829
|
-
* @
|
|
6842
|
+
* @notInstrumented
|
|
6830
6843
|
*/
|
|
6831
6844
|
const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.chainGroup ?? wallet.walletGroup ?? fallback;
|
|
6832
6845
|
|
|
@@ -6863,7 +6876,7 @@ const resolveWalletOptionKey = ({ fallback, wallet }) => wallet.group ?? wallet.
|
|
|
6863
6876
|
* @param params.walletBook - The fetched wallet book.
|
|
6864
6877
|
* @param params.walletProvider - The registered wallet provider.
|
|
6865
6878
|
* @returns The wallet option key for this provider.
|
|
6866
|
-
* @
|
|
6879
|
+
* @notInstrumented
|
|
6867
6880
|
*/
|
|
6868
6881
|
const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }) => {
|
|
6869
6882
|
const { normalizedWalletNameWithChain } = require_InvalidParamError.splitWalletProviderKey(walletProvider.key);
|
|
@@ -6911,7 +6924,7 @@ const findWalletOptionKeyForProviderKey = ({ chain, walletBook, walletProvider }
|
|
|
6911
6924
|
* @param params.walletBook - The fetched wallet book.
|
|
6912
6925
|
* @param client - The Dynamic client (used for logging unclassifiable entries).
|
|
6913
6926
|
* @returns An array of tagged options, in input order.
|
|
6914
|
-
* @
|
|
6927
|
+
* @notInstrumented
|
|
6915
6928
|
*/
|
|
6916
6929
|
const buildWithWalletProviderOptions = ({ entries, walletBook }, client) => {
|
|
6917
6930
|
const result = [];
|
|
@@ -6983,7 +6996,7 @@ const EXCLUDED_WALLET_OPTION_KEYS = new Set(["coinbase", "coinbasewallet"]);
|
|
|
6983
6996
|
* @param params.options - The tagged options to group.
|
|
6984
6997
|
* @returns A map from wallet option key to its grouped option bucket,
|
|
6985
6998
|
* iterable in first-seen order.
|
|
6986
|
-
* @
|
|
6999
|
+
* @notInstrumented
|
|
6987
7000
|
*/
|
|
6988
7001
|
const groupOptionsByWalletOption = ({ options }) => {
|
|
6989
7002
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -7023,7 +7036,7 @@ const CONNECTION_OPTION_PRIORITY = {
|
|
|
7023
7036
|
*
|
|
7024
7037
|
* @param params.option - The connection option to inspect.
|
|
7025
7038
|
* @returns The numeric priority — lower is better.
|
|
7026
|
-
* @
|
|
7039
|
+
* @notInstrumented
|
|
7027
7040
|
*/
|
|
7028
7041
|
const getConnectionOptionPriority = ({ option }) => CONNECTION_OPTION_PRIORITY[option.type];
|
|
7029
7042
|
|
|
@@ -7040,7 +7053,7 @@ const getConnectionOptionPriority = ({ option }) => CONNECTION_OPTION_PRIORITY[o
|
|
|
7040
7053
|
*
|
|
7041
7054
|
* @param params.options - The options to sort.
|
|
7042
7055
|
* @returns A new array in priority order.
|
|
7043
|
-
* @
|
|
7056
|
+
* @notInstrumented
|
|
7044
7057
|
*/
|
|
7045
7058
|
const sortConnectionOptions = ({ options }) => [...options].sort((a, b) => {
|
|
7046
7059
|
const priorityDelta = getConnectionOptionPriority({ option: a }) - getConnectionOptionPriority({ option: b });
|
|
@@ -7088,7 +7101,7 @@ const PRIORITY_WALLET_KEYS = [
|
|
|
7088
7101
|
*
|
|
7089
7102
|
* @param params.walletOption - The wallet option to inspect.
|
|
7090
7103
|
* @returns Numeric priority index — lower is better.
|
|
7091
|
-
* @
|
|
7104
|
+
* @notInstrumented
|
|
7092
7105
|
*/
|
|
7093
7106
|
const getPriorityIndex = ({ walletOption }) => {
|
|
7094
7107
|
const index = PRIORITY_WALLET_KEYS.indexOf(walletOption.key);
|
|
@@ -7105,7 +7118,7 @@ const getPriorityIndex = ({ walletOption }) => {
|
|
|
7105
7118
|
* @param params.a - First wallet option.
|
|
7106
7119
|
* @param params.b - Second wallet option.
|
|
7107
7120
|
* @returns Negative when `a` ranks first, positive when `b` ranks first.
|
|
7108
|
-
* @
|
|
7121
|
+
* @notInstrumented
|
|
7109
7122
|
*/
|
|
7110
7123
|
const compareByRelevance = ({ a, b }) => {
|
|
7111
7124
|
const aIndex = getPriorityIndex({ walletOption: a });
|
|
@@ -7125,7 +7138,7 @@ const compareByRelevance = ({ a, b }) => {
|
|
|
7125
7138
|
*
|
|
7126
7139
|
* @param params.walletOption - The wallet option to inspect.
|
|
7127
7140
|
* @returns True when `connectionOptions` is non-empty.
|
|
7128
|
-
* @
|
|
7141
|
+
* @notInstrumented
|
|
7129
7142
|
*/
|
|
7130
7143
|
const hasAnyConnectionOption = ({ walletOption }) => walletOption.connectionOptions.length > 0;
|
|
7131
7144
|
|
|
@@ -7140,7 +7153,7 @@ const hasAnyConnectionOption = ({ walletOption }) => walletOption.connectionOpti
|
|
|
7140
7153
|
*
|
|
7141
7154
|
* @param params.walletOption - The wallet option to inspect.
|
|
7142
7155
|
* @returns True when an installed provider is available.
|
|
7143
|
-
* @
|
|
7156
|
+
* @notInstrumented
|
|
7144
7157
|
*/
|
|
7145
7158
|
const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOptions[0]?.type === "withWalletProvider";
|
|
7146
7159
|
|
|
@@ -7170,7 +7183,7 @@ const hasInstalledProvider = ({ walletOption }) => walletOption.connectionOption
|
|
|
7170
7183
|
* @param params.walletOptions - The wallet options to sort.
|
|
7171
7184
|
* @param params.ordering - The requested ordering.
|
|
7172
7185
|
* @returns A new array in the requested order.
|
|
7173
|
-
* @
|
|
7186
|
+
* @notInstrumented
|
|
7174
7187
|
*/
|
|
7175
7188
|
const sortWalletOptions = ({ walletOptions, ordering }) => {
|
|
7176
7189
|
if (ordering === "alphabetical") return [...walletOptions].sort((a, b) => a.name.localeCompare(b.name, void 0, { sensitivity: "base" }));
|
|
@@ -7219,7 +7232,7 @@ const EMPTY_WALLET_BOOK = {
|
|
|
7219
7232
|
* @param [params] - Inclusion flag + ordering preference + exclusions.
|
|
7220
7233
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7221
7234
|
* @returns A promise that resolves to the wallet options catalogue.
|
|
7222
|
-
* @
|
|
7235
|
+
* @notInstrumented
|
|
7223
7236
|
*/
|
|
7224
7237
|
const getWalletOptionsCatalogue = async (params = {}, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7225
7238
|
const includeMobileOptions = params.includeMobileOptions ?? false;
|
|
@@ -7276,7 +7289,7 @@ const getWalletOptionsCatalogue = async (params = {}, client = require_InvalidPa
|
|
|
7276
7289
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7277
7290
|
* @returns A promise that resolves if the wallet is available for signing.
|
|
7278
7291
|
* @throws WalletAccountNotSelectedError If the wallet account is not currently selected.
|
|
7279
|
-
* @
|
|
7292
|
+
* @notInstrumented
|
|
7280
7293
|
*/
|
|
7281
7294
|
const assertWalletAccountSigningAvailability = async ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7282
7295
|
const { addresses } = await require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client).getConnectedAddresses();
|
|
@@ -7325,7 +7338,7 @@ const __confirmTransaction_wrapped = require_InvalidParamError.instrumentFunctio
|
|
|
7325
7338
|
|
|
7326
7339
|
//#endregion
|
|
7327
7340
|
//#region src/modules/wallets/utils/getAddressesWithTypesFromConnectionResult/getAddressesWithTypesFromConnectionResult.ts
|
|
7328
|
-
/** @
|
|
7341
|
+
/** @notInstrumented */
|
|
7329
7342
|
const getAddressesWithTypesFromConnectionResult = (connectionResult) => {
|
|
7330
7343
|
return connectionResult.addresses.filter((address) => !!address.address && !!address.type);
|
|
7331
7344
|
};
|
|
@@ -7400,13 +7413,13 @@ const __connectWithWalletProvider_wrapped = require_InvalidParamError.instrument
|
|
|
7400
7413
|
* @param params.hardwareWalletVendor - The hardware wallet vendor that produced the signature.
|
|
7401
7414
|
* @param params.signature - The raw signature string to wrap.
|
|
7402
7415
|
* @returns The signature wrapped in `{ signedTransaction: { data } }` JSON format.
|
|
7403
|
-
* @
|
|
7416
|
+
* @notInstrumented
|
|
7404
7417
|
*/
|
|
7405
7418
|
const formatSignatureForHardwareWallet = ({ signature, hardwareWalletVendor: _ }) => JSON.stringify({ signedTransaction: { data: signature } });
|
|
7406
7419
|
|
|
7407
7420
|
//#endregion
|
|
7408
7421
|
//#region src/modules/wallets/utils/getChainIdForAccountVerification/getChainIdForAccountVerification.ts
|
|
7409
|
-
/** @
|
|
7422
|
+
/** @notInstrumented */
|
|
7410
7423
|
const getChainIdForAccountVerification = async ({ walletProvider }) => {
|
|
7411
7424
|
if ([
|
|
7412
7425
|
"BTC",
|
|
@@ -7420,7 +7433,7 @@ const getChainIdForAccountVerification = async ({ walletProvider }) => {
|
|
|
7420
7433
|
|
|
7421
7434
|
//#endregion
|
|
7422
7435
|
//#region src/modules/wallets/utils/getSignInMessage/getSignInMessage.ts
|
|
7423
|
-
/** @
|
|
7436
|
+
/** @notInstrumented */
|
|
7424
7437
|
const getSignInMessage = async ({ nonce: nonceOverride, walletAccount }, client) => {
|
|
7425
7438
|
const core = require_InvalidParamError.getCore(client);
|
|
7426
7439
|
const { appUniversalLink } = require_getNetworkProviderFromNetworkId.getAppMetadata(client);
|
|
@@ -7497,7 +7510,7 @@ const __proveWalletAccountOwnership_wrapped = require_InvalidParamError.instrume
|
|
|
7497
7510
|
|
|
7498
7511
|
//#endregion
|
|
7499
7512
|
//#region src/modules/wallets/utils/isSameAddress/isSameAddress.ts
|
|
7500
|
-
/** @
|
|
7513
|
+
/** @notInstrumented */
|
|
7501
7514
|
const isSameAddress = ({ chain, left, right }) => require_InvalidParamError.normalizeAddress({
|
|
7502
7515
|
address: left,
|
|
7503
7516
|
chain
|
|
@@ -7508,7 +7521,7 @@ const isSameAddress = ({ chain, left, right }) => require_InvalidParamError.norm
|
|
|
7508
7521
|
|
|
7509
7522
|
//#endregion
|
|
7510
7523
|
//#region src/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.ts
|
|
7511
|
-
/** @
|
|
7524
|
+
/** @notInstrumented */
|
|
7512
7525
|
const verifyWalletAccountForSignInOrTransfer = async ({ walletAccount, isTransfer, requestedScopes }, client) => {
|
|
7513
7526
|
if (walletAccount.verifiedCredentialId) throw new WalletAccountAlreadyVerifiedError(walletAccount.address);
|
|
7514
7527
|
const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7594,7 +7607,7 @@ const __verifyWalletAccount_wrapped = require_InvalidParamError.instrumentFuncti
|
|
|
7594
7607
|
//#region src/modules/wallets/walletProvider/isDeeplinkWalletProvider/isDeeplinkWalletProvider.ts
|
|
7595
7608
|
/**
|
|
7596
7609
|
* Returns true if the wallet provider uses the deep link protocol (e.g. Phantom redirect on mobile).
|
|
7597
|
-
* @
|
|
7610
|
+
* @notInstrumented
|
|
7598
7611
|
*/
|
|
7599
7612
|
const isDeeplinkWalletProvider = ({ walletProvider }) => walletProvider.walletProviderType === _dynamic_labs_sdk_api_core.WalletProviderEnum.DeepLink;
|
|
7600
7613
|
|
|
@@ -7661,7 +7674,7 @@ const __connectAndVerifyWithWalletProvider_wrapped = require_InvalidParamError.i
|
|
|
7661
7674
|
*
|
|
7662
7675
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7663
7676
|
* @returns An array of wallet provider data including chain, keys, and metadata.
|
|
7664
|
-
* @
|
|
7677
|
+
* @notInstrumented
|
|
7665
7678
|
* @hook Exposed as a hook so consumers get the reactive list of available wallet providers, updated when wallet providers change.
|
|
7666
7679
|
*/
|
|
7667
7680
|
const getAvailableWalletProvidersData = (client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -7685,7 +7698,7 @@ const getAvailableWalletProvidersData = (client = require_InvalidParamError.getD
|
|
|
7685
7698
|
* @param params.walletProviderKey - The unique key of the wallet provider to query.
|
|
7686
7699
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7687
7700
|
* @returns An array of connected wallet addresses.
|
|
7688
|
-
* @
|
|
7701
|
+
* @notInstrumented
|
|
7689
7702
|
*/
|
|
7690
7703
|
const getConnectedAddresses = ({ walletProviderKey }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7691
7704
|
return require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client).getConnectedAddresses();
|
|
@@ -7693,7 +7706,7 @@ const getConnectedAddresses = ({ walletProviderKey }, client = require_InvalidPa
|
|
|
7693
7706
|
|
|
7694
7707
|
//#endregion
|
|
7695
7708
|
//#region src/modules/wallets/getOwnerWalletAccountForSmartWalletAccount/getOwnerWalletAccountForSmartWalletAccount.ts
|
|
7696
|
-
/** @
|
|
7709
|
+
/** @notInstrumented */
|
|
7697
7710
|
const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7698
7711
|
const smartWalletVerifiedCredential = require_getWalletProviderByKey.getVerifiedCredentialForWalletAccount({ walletAccount: smartWalletAccount }, client);
|
|
7699
7712
|
require_InvalidParamError.assertDefined(smartWalletVerifiedCredential?.signerRefId, "Invalid smart wallet account");
|
|
@@ -7702,7 +7715,7 @@ const getOwnerWalletAccountForSmartWalletAccount = ({ smartWalletAccount }, clie
|
|
|
7702
7715
|
|
|
7703
7716
|
//#endregion
|
|
7704
7717
|
//#region src/modules/wallets/getWalletAccountAddressByType/getWalletAccountAddressByType.ts
|
|
7705
|
-
/** @
|
|
7718
|
+
/** @notInstrumented */
|
|
7706
7719
|
const getWalletAccountAddressByType = ({ type, walletAccount }) => {
|
|
7707
7720
|
return walletAccount.addressesWithTypes?.find((address) => address.type === type)?.address;
|
|
7708
7721
|
};
|
|
@@ -7715,7 +7728,7 @@ const getWalletAccountAddressByType = ({ type, walletAccount }) => {
|
|
|
7715
7728
|
* @param params.walletProviderKey - The key of the wallet provider to retrieve data for.
|
|
7716
7729
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7717
7730
|
* @returns The data for the wallet provider.
|
|
7718
|
-
* @
|
|
7731
|
+
* @notInstrumented
|
|
7719
7732
|
*/
|
|
7720
7733
|
const getWalletProviderDataByKey = ({ walletProviderKey }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7721
7734
|
const { chain, groupKey, key, metadata, walletProviderType } = require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client);
|
|
@@ -7737,7 +7750,7 @@ const getWalletProviderDataByKey = ({ walletProviderKey }, client = require_Inva
|
|
|
7737
7750
|
* @param params.hardwareWalletVendor - The hardware wallet vendor to check for.
|
|
7738
7751
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7739
7752
|
* @returns Whether the wallet provider supports the specified hardware wallet vendor.
|
|
7740
|
-
* @
|
|
7753
|
+
* @notInstrumented
|
|
7741
7754
|
*/
|
|
7742
7755
|
const canConnectWithHardwareWallet = ({ walletProviderKey, hardwareWalletVendor }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7743
7756
|
return require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client).metadata.supportedHardwareWalletVendors?.includes(hardwareWalletVendor) ?? false;
|
|
@@ -7750,7 +7763,7 @@ const canConnectWithHardwareWallet = ({ walletProviderKey, hardwareWalletVendor
|
|
|
7750
7763
|
*
|
|
7751
7764
|
* @param params.walletAccount - The wallet account to check.
|
|
7752
7765
|
* @returns Whether the wallet account has a hardware wallet vendor set.
|
|
7753
|
-
* @
|
|
7766
|
+
* @notInstrumented
|
|
7754
7767
|
*/
|
|
7755
7768
|
const isHardwareWalletAccount = ({ walletAccount }) => walletAccount.hardwareWalletVendor !== void 0;
|
|
7756
7769
|
|
|
@@ -7766,7 +7779,7 @@ const isHardwareWalletAccount = ({ walletAccount }) => walletAccount.hardwareWal
|
|
|
7766
7779
|
*
|
|
7767
7780
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7768
7781
|
* @returns True if the session has at least one wallet account, false otherwise.
|
|
7769
|
-
* @
|
|
7782
|
+
* @notInstrumented
|
|
7770
7783
|
*/
|
|
7771
7784
|
const isAnyWalletAccountConnected = (client = require_InvalidParamError.getDefaultClient()) => require_InvalidParamError.getWalletAccounts(client).length > 0;
|
|
7772
7785
|
|
|
@@ -7777,7 +7790,7 @@ const isAnyWalletAccountConnected = (client = require_InvalidParamError.getDefau
|
|
|
7777
7790
|
*
|
|
7778
7791
|
* @param walletAccount - The wallet account to check.
|
|
7779
7792
|
* @returns True if the wallet account has been verified, false otherwise.
|
|
7780
|
-
* @
|
|
7793
|
+
* @notInstrumented
|
|
7781
7794
|
*/
|
|
7782
7795
|
const isWalletAccountVerified = ({ walletAccount }) => {
|
|
7783
7796
|
return walletAccount.verifiedCredentialId !== null;
|
|
@@ -7832,7 +7845,7 @@ const __addNetwork_wrapped = require_InvalidParamError.instrumentFunction({
|
|
|
7832
7845
|
* @param params.walletAccount - The wallet account to get network data for.
|
|
7833
7846
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7834
7847
|
* @returns A promise that resolves to the network data, or undefined if not found.
|
|
7835
|
-
* @
|
|
7848
|
+
* @notInstrumented
|
|
7836
7849
|
*/
|
|
7837
7850
|
const getActiveNetworkData = async ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7838
7851
|
const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7848,7 +7861,7 @@ const getActiveNetworkData = async ({ walletAccount }, client = require_InvalidP
|
|
|
7848
7861
|
* @param params.walletAccount - The wallet account to get the network ID for.
|
|
7849
7862
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7850
7863
|
* @returns A promise that resolves to the active network ID for the wallet account.
|
|
7851
|
-
* @
|
|
7864
|
+
* @notInstrumented
|
|
7852
7865
|
*/
|
|
7853
7866
|
const getActiveNetworkId = ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7854
7867
|
return require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client).getActiveNetworkId();
|
|
@@ -7869,7 +7882,7 @@ const getActiveNetworkId = ({ walletAccount }, client = require_InvalidParamErro
|
|
|
7869
7882
|
* @param params.walletAccount - The wallet account to get the balance for.
|
|
7870
7883
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7871
7884
|
* @returns A promise that resolves to an object containing the balance as a string or null.
|
|
7872
|
-
* @
|
|
7885
|
+
* @notInstrumented
|
|
7873
7886
|
*/
|
|
7874
7887
|
const getNativeBalance = async ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7875
7888
|
const walletProvider = require_InvalidParamError.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
@@ -7888,7 +7901,7 @@ const getNativeBalance = async ({ walletAccount }, client = require_InvalidParam
|
|
|
7888
7901
|
* with the token-balance fetchers (`getTokenBalances` /
|
|
7889
7902
|
* `getMultichainTokenBalances`).
|
|
7890
7903
|
*
|
|
7891
|
-
* @
|
|
7904
|
+
* @notInstrumented
|
|
7892
7905
|
* @noHook Deprecated; the replacement is exposed via its own hook.
|
|
7893
7906
|
*/
|
|
7894
7907
|
const getBalance = (params, client = require_InvalidParamError.getDefaultClient()) => getNativeBalance(params, client);
|
|
@@ -7906,7 +7919,7 @@ const getBalance = (params, client = require_InvalidParamError.getDefaultClient(
|
|
|
7906
7919
|
* @param params.networkId - The specific network ID within the chain.
|
|
7907
7920
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7908
7921
|
* @returns A promise that resolves to an object containing the balance as a string or null.
|
|
7909
|
-
* @
|
|
7922
|
+
* @notInstrumented
|
|
7910
7923
|
*/
|
|
7911
7924
|
const getBalanceForAddress = async ({ address, chain, networkId }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7912
7925
|
const networkProvider = require_getNetworkProviderFromNetworkId.getNetworkProviderFromNetworkId({
|
|
@@ -7933,7 +7946,7 @@ const getBalanceForAddress = async ({ address, chain, networkId }, client = requ
|
|
|
7933
7946
|
* @param [params.tokenAddress] - Optional token contract address (EVM) or SPL mint address (Solana) to filter transaction history by token.
|
|
7934
7947
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7935
7948
|
* @returns A promise that resolves to the transaction history along with nextOffset for the given wallet address and chain.
|
|
7936
|
-
* @
|
|
7949
|
+
* @notInstrumented
|
|
7937
7950
|
*/
|
|
7938
7951
|
const getTransactionHistory = async (params, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7939
7952
|
const core = require_InvalidParamError.getCore(client);
|
|
@@ -7959,7 +7972,7 @@ const getTransactionHistory = async (params, client = require_InvalidParamError.
|
|
|
7959
7972
|
* @param params.walletAccount - The wallet account to check network switching support for.
|
|
7960
7973
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7961
7974
|
* @returns True if programmatic network switching is available, false otherwise.
|
|
7962
|
-
* @
|
|
7975
|
+
* @notInstrumented
|
|
7963
7976
|
*/
|
|
7964
7977
|
const isProgrammaticNetworkSwitchAvailable = ({ walletAccount }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
7965
7978
|
return require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey: walletAccount.walletProviderKey }, client).switchActiveNetwork !== void 0;
|
|
@@ -8041,7 +8054,7 @@ const __selectPrimaryWalletAccount_wrapped = require_InvalidParamError.instrumen
|
|
|
8041
8054
|
*
|
|
8042
8055
|
* The wallet account is not removed from the user's profile or from dynamic's state,
|
|
8043
8056
|
* it is only responsible for terminating the connection with the wallet provider.
|
|
8044
|
-
* @
|
|
8057
|
+
* @notInstrumented
|
|
8045
8058
|
*/
|
|
8046
8059
|
const disconnectWalletAccount = async ({ walletAccount }, client) => {
|
|
8047
8060
|
try {
|
|
@@ -8216,7 +8229,7 @@ const __transferWalletAccount_wrapped = require_InvalidParamError.instrumentFunc
|
|
|
8216
8229
|
* @param params.chain - The blockchain the wallet belongs to.
|
|
8217
8230
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8218
8231
|
* @returns The matching wallet account, or undefined if not found.
|
|
8219
|
-
* @
|
|
8232
|
+
* @notInstrumented
|
|
8220
8233
|
*/
|
|
8221
8234
|
const getWalletAccountFromAddress = ({ address, chain }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
8222
8235
|
return require_InvalidParamError.getWalletAccounts(client).find((walletAccount) => walletAccount.address === address && walletAccount.chain === chain);
|
|
@@ -8233,7 +8246,7 @@ const getWalletAccountFromAddress = ({ address, chain }, client = require_Invali
|
|
|
8233
8246
|
* @param params.event - The event name to remove the listener from.
|
|
8234
8247
|
* @param params.walletProviderKey - The unique key identifying the wallet provider to remove the listener from.
|
|
8235
8248
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8236
|
-
* @
|
|
8249
|
+
* @notInstrumented
|
|
8237
8250
|
*/
|
|
8238
8251
|
const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
8239
8252
|
const walletProvider = require_getWalletProviderByKey.getWalletProviderByKey({ walletProviderKey }, client);
|
|
@@ -8251,7 +8264,7 @@ const offWalletProviderEvent = ({ callback, event, walletProviderKey }, client =
|
|
|
8251
8264
|
* @param params.walletProviderKey - The unique key identifying the wallet provider to listen to.
|
|
8252
8265
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
8253
8266
|
* @returns A function that can be called to remove the listener.
|
|
8254
|
-
* @
|
|
8267
|
+
* @notInstrumented
|
|
8255
8268
|
* @hook Event listeners are error-prone to wire up by hand with useEffect.
|
|
8256
8269
|
*/
|
|
8257
8270
|
const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client = require_InvalidParamError.getDefaultClient()) => {
|
|
@@ -8285,7 +8298,7 @@ const onWalletProviderEvent = ({ callback, event, walletProviderKey }, client =
|
|
|
8285
8298
|
* appendConnectionUriToDeeplink({ deeplinkUrl: 'walletapp://wc?param=value', connectionUri: 'wc:123-456' })
|
|
8286
8299
|
* // Returns: 'walletapp://wc?param=value&uri=wc%3A123-456'
|
|
8287
8300
|
* ```
|
|
8288
|
-
* @
|
|
8301
|
+
* @notInstrumented
|
|
8289
8302
|
*/
|
|
8290
8303
|
const appendConnectionUriToDeeplink = ({ connectionUri, deeplinkUrl }) => {
|
|
8291
8304
|
const url = new URL(deeplinkUrl);
|
|
@@ -8356,7 +8369,7 @@ const osMatchers = [
|
|
|
8356
8369
|
pattern: /CrOS/
|
|
8357
8370
|
}
|
|
8358
8371
|
];
|
|
8359
|
-
/** @
|
|
8372
|
+
/** @notInstrumented */
|
|
8360
8373
|
const parseUserAgent = ({ userAgent }) => {
|
|
8361
8374
|
if (!userAgent?.trim()) return null;
|
|
8362
8375
|
const browser = browserMatchers.find(({ pattern }) => pattern.test(userAgent))?.name;
|
|
@@ -8474,7 +8487,7 @@ exports.getCoinbaseBuyUrl = getCoinbaseBuyUrl;
|
|
|
8474
8487
|
exports.getConnectedAddresses = getConnectedAddresses;
|
|
8475
8488
|
exports.getDefaultClient = require_InvalidParamError.getDefaultClient;
|
|
8476
8489
|
exports.getDeviceRegistrationTokenFromUrl = getDeviceRegistrationTokenFromUrl;
|
|
8477
|
-
exports.getElevatedAccessToken = require_InvalidParamError.
|
|
8490
|
+
exports.getElevatedAccessToken = require_InvalidParamError.getElevatedAccessToken;
|
|
8478
8491
|
exports.getFlow = getFlow;
|
|
8479
8492
|
exports.getFlowQuote = getFlowQuote;
|
|
8480
8493
|
exports.getGoogleDriveBackupReadiness = __getGoogleDriveBackupReadiness_wrapped;
|