@dynamic-labs-sdk/client 1.17.0 → 1.18.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/core.cjs +7 -5
- package/dist/core.cjs.map +1 -1
- package/dist/core.esm.js +8 -8
- package/dist/core.esm.js.map +1 -1
- package/dist/core.native.esm.js +8 -8
- package/dist/core.native.esm.js.map +1 -1
- package/dist/errors/DeviceRegistrationIdentityMismatchError.d.ts +5 -0
- package/dist/errors/DeviceRegistrationIdentityMismatchError.d.ts.map +1 -0
- package/dist/errors/UnsafeDeeplinkUrlError.d.ts +17 -0
- package/dist/errors/UnsafeDeeplinkUrlError.d.ts.map +1 -0
- package/dist/errors/UnsafeNavigationUrlError.d.ts +16 -0
- package/dist/errors/UnsafeNavigationUrlError.d.ts.map +1 -0
- package/dist/errors/WalletScreeningBlockedError.d.ts +14 -0
- package/dist/errors/WalletScreeningBlockedError.d.ts.map +1 -0
- package/dist/exports/core.d.ts +4 -0
- package/dist/exports/core.d.ts.map +1 -1
- package/dist/exports/index.d.ts +7 -2
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-DC1bhMuB.native.esm.js → getNetworkProviderFromNetworkId-C6DBO0OX.native.esm.js} +96 -13
- package/dist/getNetworkProviderFromNetworkId-C6DBO0OX.native.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-BVVs3arj.esm.js → getNetworkProviderFromNetworkId-CEs4SGW4.esm.js} +105 -22
- package/dist/getNetworkProviderFromNetworkId-CEs4SGW4.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-DzzocxRc.cjs → getNetworkProviderFromNetworkId-CMIgKqEH.cjs} +119 -18
- package/dist/getNetworkProviderFromNetworkId-CMIgKqEH.cjs.map +1 -0
- package/dist/{getSignedSessionId-Bnuz2Aqc.esm.js → getSignedSessionId-CUqILBh8.esm.js} +3 -3
- package/dist/{getSignedSessionId-Bnuz2Aqc.esm.js.map → getSignedSessionId-CUqILBh8.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-Dx0qQLMP.cjs → getSignedSessionId-De_N_Ofg.cjs} +3 -3
- package/dist/{getSignedSessionId-Dx0qQLMP.cjs.map → getSignedSessionId-De_N_Ofg.cjs.map} +1 -1
- package/dist/{getSignedSessionId-Pc_5wscD.native.esm.js → getSignedSessionId-Hp1nSbaW.native.esm.js} +3 -3
- package/dist/{getSignedSessionId-Pc_5wscD.native.esm.js.map → getSignedSessionId-Hp1nSbaW.native.esm.js.map} +1 -1
- package/dist/{getWalletProviderByKey-BL3u0e-d.esm.js → getWalletProviderByKey-CKORCA8l.esm.js} +2 -2
- package/dist/{getWalletProviderByKey-BL3u0e-d.esm.js.map → getWalletProviderByKey-CKORCA8l.esm.js.map} +1 -1
- package/dist/{getWalletProviderByKey-BLWcueTR.cjs → getWalletProviderByKey-D3e0XMjs.cjs} +2 -2
- package/dist/{getWalletProviderByKey-BLWcueTR.cjs.map → getWalletProviderByKey-D3e0XMjs.cjs.map} +1 -1
- package/dist/{getWalletProviderByKey-DhqKzh7g.native.esm.js → getWalletProviderByKey-D5M801xH.native.esm.js} +2 -2
- package/dist/{getWalletProviderByKey-DhqKzh7g.native.esm.js.map → getWalletProviderByKey-D5M801xH.native.esm.js.map} +1 -1
- package/dist/index.cjs +253 -72
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +248 -94
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +248 -94
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isDynamicWaasEnabled-BEn7FcD9.cjs → isDynamicWaasEnabled-BQuXZne_.cjs} +4 -6
- package/dist/isDynamicWaasEnabled-BQuXZne_.cjs.map +1 -0
- package/dist/{isDynamicWaasEnabled-DYy0TvLy.esm.js → isDynamicWaasEnabled-BaY09iv6.native.esm.js} +3 -5
- package/dist/isDynamicWaasEnabled-BaY09iv6.native.esm.js.map +1 -0
- package/dist/{isDynamicWaasEnabled-CvBaMGlR.native.esm.js → isDynamicWaasEnabled-BlVIlXMZ.esm.js} +3 -5
- package/dist/isDynamicWaasEnabled-BlVIlXMZ.esm.js.map +1 -0
- package/dist/{isMfaRequiredForAction-CJ9qbBUz.native.esm.js → isMfaRequiredForAction-CwOGwiDz.native.esm.js} +3 -5
- package/dist/isMfaRequiredForAction-CwOGwiDz.native.esm.js.map +1 -0
- package/dist/{isMfaRequiredForAction-CaNdGc-m.cjs → isMfaRequiredForAction-Dghiguch.cjs} +13 -6
- package/dist/isMfaRequiredForAction-Dghiguch.cjs.map +1 -0
- package/dist/{isMfaRequiredForAction-B7wNkqQf.esm.js → isMfaRequiredForAction-r9aDdmK5.esm.js} +13 -6
- package/dist/isMfaRequiredForAction-r9aDdmK5.esm.js.map +1 -0
- package/dist/{isUserOnboardingComplete-FRAIuxdi.native.esm.js → isUserOnboardingComplete-BMNAbXk1.esm.js} +6 -3
- package/dist/isUserOnboardingComplete-BMNAbXk1.esm.js.map +1 -0
- package/dist/{isUserOnboardingComplete-CGz-9Iyw.esm.js → isUserOnboardingComplete-C-ioFLRR.native.esm.js} +6 -3
- package/dist/isUserOnboardingComplete-C-ioFLRR.native.esm.js.map +1 -0
- package/dist/{isUserOnboardingComplete-w1IkCC_p.cjs → isUserOnboardingComplete-j4b_q9Pf.cjs} +7 -4
- package/dist/isUserOnboardingComplete-j4b_q9Pf.cjs.map +1 -0
- package/dist/{migrateFromFireblocks-DXs3odF_.esm.js → migrateFromFireblocks-D--uqWp5.esm.js} +3 -3
- package/dist/{migrateFromFireblocks-DXs3odF_.esm.js.map → migrateFromFireblocks-D--uqWp5.esm.js.map} +1 -1
- package/dist/{migrateFromFireblocks-C-IqJz3q.native.esm.js → migrateFromFireblocks-D8Y5h0hz.native.esm.js} +3 -3
- package/dist/{migrateFromFireblocks-C-IqJz3q.native.esm.js.map → migrateFromFireblocks-D8Y5h0hz.native.esm.js.map} +1 -1
- package/dist/{migrateFromFireblocks-CjQWJPZW.cjs → migrateFromFireblocks-D9pJIgt5.cjs} +3 -3
- package/dist/{migrateFromFireblocks-CjQWJPZW.cjs.map → migrateFromFireblocks-D9pJIgt5.cjs.map} +1 -1
- package/dist/modules/auth/externalAuth/requestExternalAuthElevatedToken/requestExternalAuthElevatedToken.d.ts +0 -1
- package/dist/modules/auth/externalAuth/requestExternalAuthElevatedToken/requestExternalAuthElevatedToken.d.ts.map +1 -1
- package/dist/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.d.ts +0 -1
- package/dist/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.d.ts.map +1 -1
- package/dist/modules/auth/logoutWithReason/logoutWithReason.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts +0 -1
- package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts +0 -1
- package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/getOAuthBaseUrl/getOAuthBaseUrl.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.d.ts +0 -1
- package/dist/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.d.ts.map +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.d.ts.map +1 -1
- package/dist/modules/captcha/getCaptchaSettings/getCaptchaSettings.d.ts +14 -0
- package/dist/modules/captcha/getCaptchaSettings/getCaptchaSettings.d.ts.map +1 -0
- package/dist/modules/captcha/getCaptchaSettings/index.d.ts +3 -0
- package/dist/modules/captcha/getCaptchaSettings/index.d.ts.map +1 -0
- package/dist/modules/captcha/isCaptchaRequired/isCaptchaRequired.d.ts.map +1 -1
- package/dist/modules/captcha/setCaptchaToken/setCaptchaToken.d.ts +0 -1
- package/dist/modules/captcha/setCaptchaToken/setCaptchaToken.d.ts.map +1 -1
- package/dist/modules/deviceRegistration/completeDeviceRegistration/completeDeviceRegistration.d.ts.map +1 -1
- package/dist/modules/deviceRegistration/isDeviceRegistrationRequired/isDeviceRegistrationRequired.d.ts +1 -0
- package/dist/modules/deviceRegistration/isDeviceRegistrationRequired/isDeviceRegistrationRequired.d.ts.map +1 -1
- package/dist/modules/flow/attachFlowSource/attachFlowSource.d.ts.map +1 -1
- package/dist/modules/flow/attachFlowSource/attachFlowSource.instrumentation.d.ts +9 -0
- package/dist/modules/flow/attachFlowSource/attachFlowSource.instrumentation.d.ts.map +1 -0
- package/dist/modules/flow/broadcastFlow/broadcastFlow.instrumentation.d.ts +9 -0
- package/dist/modules/flow/broadcastFlow/broadcastFlow.instrumentation.d.ts.map +1 -0
- package/dist/modules/flow/cancelFlow/cancelFlow.instrumentation.d.ts +8 -0
- package/dist/modules/flow/cancelFlow/cancelFlow.instrumentation.d.ts.map +1 -0
- package/dist/modules/flow/prepareFlowSigning/prepareFlowSigning.instrumentation.d.ts +9 -0
- package/dist/modules/flow/prepareFlowSigning/prepareFlowSigning.instrumentation.d.ts.map +1 -0
- package/dist/modules/flow/submitFlowTransaction/submitFlowTransaction.instrumentation.d.ts +9 -0
- package/dist/modules/flow/submitFlowTransaction/submitFlowTransaction.instrumentation.d.ts.map +1 -0
- package/dist/modules/funding/moonpay/getMoonPayUrl/getMoonPayUrl.d.ts +0 -4
- package/dist/modules/funding/moonpay/getMoonPayUrl/getMoonPayUrl.d.ts.map +1 -1
- package/dist/modules/mfa/consumeMfaToken/consumeMfaToken.d.ts +0 -1
- package/dist/modules/mfa/consumeMfaToken/consumeMfaToken.d.ts.map +1 -1
- package/dist/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.d.ts +0 -1
- package/dist/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.d.ts.map +1 -1
- package/dist/modules/mfa/isPendingRecoveryCodesAcknowledgment/isPendingRecoveryCodesAcknowledgment.d.ts +1 -0
- package/dist/modules/mfa/isPendingRecoveryCodesAcknowledgment/isPendingRecoveryCodesAcknowledgment.d.ts.map +1 -1
- package/dist/modules/mfa/isUserMissingMfaAuth/isUserMissingMfaAuth.d.ts +1 -0
- package/dist/modules/mfa/isUserMissingMfaAuth/isUserMissingMfaAuth.d.ts.map +1 -1
- package/dist/modules/mfa/registerTotpMfaDevice/registerTotpMfaDevice.d.ts +0 -3
- package/dist/modules/mfa/registerTotpMfaDevice/registerTotpMfaDevice.d.ts.map +1 -1
- package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts +0 -1
- package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts.map +1 -1
- package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts +0 -1
- package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts.map +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTP.d.ts +0 -1
- package/dist/modules/otp/verifyOTP/verifyOTP.d.ts.map +1 -1
- package/dist/modules/sessionKeys/generateSessionKeys/generateSessionKeys.d.ts.map +1 -1
- package/dist/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.d.ts +1 -0
- package/dist/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.d.ts.map +1 -1
- package/dist/modules/user/refreshAuth/refreshAuth.d.ts +0 -1
- package/dist/modules/user/refreshAuth/refreshAuth.d.ts.map +1 -1
- package/dist/modules/user/updateUser/updateUser.d.ts +0 -1
- package/dist/modules/user/updateUser/updateUser.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletProviderDataByKey/getWalletProviderDataByKey.d.ts +2 -1
- package/dist/modules/wallets/getWalletProviderDataByKey/getWalletProviderDataByKey.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getTransactionHistory/getTransactionHistory.d.ts +1 -1
- package/dist/modules/wallets/networks/getTransactionHistory/getTransactionHistory.d.ts.map +1 -1
- package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts +2 -0
- package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts.map +1 -1
- package/dist/modules/wallets/walletProviderRegistry/events.d.ts +2 -1
- package/dist/modules/wallets/walletProviderRegistry/events.d.ts.map +1 -1
- package/dist/services/instrumentation/createInstrumentation/createInstrumentation.d.ts.map +1 -1
- package/dist/services/instrumentation/instrumentFunction/instrumentFunction.d.ts +40 -34
- package/dist/services/instrumentation/instrumentFunction/instrumentFunction.d.ts.map +1 -1
- package/dist/services/instrumentation/instrumentation.types.d.ts +50 -19
- package/dist/services/instrumentation/instrumentation.types.d.ts.map +1 -1
- package/dist/services/keychain/createKeychainService/createKeychainService.d.ts.map +1 -1
- package/dist/services/navigate/createNavigationHandler/createNavigationHandler.d.ts.map +1 -1
- package/dist/services/openDeeplink/createWebDeeplinkOpener/createWebDeeplinkOpener.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/{updateAuthFromVerifyResponse-BdokPJ21.esm.js → updateAuthFromVerifyResponse-BQes11vz.esm.js} +145 -145
- package/dist/updateAuthFromVerifyResponse-BQes11vz.esm.js.map +1 -0
- package/dist/{updateAuthFromVerifyResponse-CUnvs5Af.cjs → updateAuthFromVerifyResponse-Deg9em9o.cjs} +151 -145
- package/dist/updateAuthFromVerifyResponse-Deg9em9o.cjs.map +1 -0
- package/dist/{updateAuthFromVerifyResponse-DW-tPgdV.native.esm.js → updateAuthFromVerifyResponse-wVY_DoiL.native.esm.js} +145 -145
- package/dist/updateAuthFromVerifyResponse-wVY_DoiL.native.esm.js.map +1 -0
- package/dist/utils/assertSafeDeeplinkUrl/assertSafeDeeplinkUrl.d.ts +12 -0
- package/dist/utils/assertSafeDeeplinkUrl/assertSafeDeeplinkUrl.d.ts.map +1 -0
- package/dist/utils/assertSafeDeeplinkUrl/index.d.ts +2 -0
- package/dist/utils/assertSafeDeeplinkUrl/index.d.ts.map +1 -0
- package/dist/utils/assertSafeNavigationUrl/assertSafeNavigationUrl.d.ts +12 -0
- package/dist/utils/assertSafeNavigationUrl/assertSafeNavigationUrl.d.ts.map +1 -0
- package/dist/utils/assertSafeNavigationUrl/index.d.ts +2 -0
- package/dist/utils/assertSafeNavigationUrl/index.d.ts.map +1 -0
- package/dist/utils/getSecureCookieAttribute/getSecureCookieAttribute.d.ts +18 -0
- package/dist/utils/getSecureCookieAttribute/getSecureCookieAttribute.d.ts.map +1 -0
- package/dist/utils/getSecureCookieAttribute/index.d.ts +2 -0
- package/dist/utils/getSecureCookieAttribute/index.d.ts.map +1 -0
- package/dist/waas.cjs +5 -5
- package/dist/waas.esm.js +4 -4
- package/dist/waas.native.esm.js +4 -4
- package/dist/waasCore.cjs +6 -6
- package/dist/waasCore.esm.js +6 -6
- package/dist/waasCore.native.esm.js +6 -6
- package/package.json +3 -3
- package/dist/getNetworkProviderFromNetworkId-BVVs3arj.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-DC1bhMuB.native.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-DzzocxRc.cjs.map +0 -1
- package/dist/isDynamicWaasEnabled-BEn7FcD9.cjs.map +0 -1
- package/dist/isDynamicWaasEnabled-CvBaMGlR.native.esm.js.map +0 -1
- package/dist/isDynamicWaasEnabled-DYy0TvLy.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-B7wNkqQf.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-CJ9qbBUz.native.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-CaNdGc-m.cjs.map +0 -1
- package/dist/isUserOnboardingComplete-CGz-9Iyw.esm.js.map +0 -1
- package/dist/isUserOnboardingComplete-FRAIuxdi.native.esm.js.map +0 -1
- package/dist/isUserOnboardingComplete-w1IkCC_p.cjs.map +0 -1
- package/dist/services/instrumentation/instrumentFunction/extractParams/extractParams.d.ts +0 -28
- package/dist/services/instrumentation/instrumentFunction/extractParams/extractParams.d.ts.map +0 -1
- package/dist/services/instrumentation/instrumentFunction/scrubResolvedValue/scrubResolvedValue.d.ts +0 -15
- package/dist/services/instrumentation/instrumentFunction/scrubResolvedValue/scrubResolvedValue.d.ts.map +0 -1
- package/dist/updateAuthFromVerifyResponse-BdokPJ21.esm.js.map +0 -1
- package/dist/updateAuthFromVerifyResponse-CUnvs5Af.cjs.map +0 -1
- package/dist/updateAuthFromVerifyResponse-DW-tPgdV.native.esm.js.map +0 -1
package/dist/index.native.esm.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { A as
|
|
3
|
-
import { n as NotWaasWalletAccountError, r as __refreshAuth_wrapped } from "./isDynamicWaasEnabled-
|
|
4
|
-
import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-
|
|
5
|
-
import { a as WaasOnboardingIncompleteError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, r as isDeviceRegistrationRequired, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-
|
|
6
|
-
import { n as getVerifiedCredentialForWalletAccount, t as getWalletProviderByKey } from "./getWalletProviderByKey-
|
|
1
|
+
import { $ as SandboxMaximumThresholdReachedError, A as NoWalletProviderFoundError, B as emitEvent, C as getOperatingSystem, D as WalletProviderPriority, E as getWalletProviderFromWalletAccount, F as CHAINS_INFO_MAP, H as onEvent, I as formatWalletAccountId, J as UnauthorizedError, K as fetchAndStoreNonces, L as normalizeAddress, O as getWalletProviderRegistry, P as getChainFromVerifiedCredentialChain, Q as getNonce, R as splitWalletProviderKey, S as getPlatform, U as onceEvent, V as offEvent, _ as SDK_API_CORE_VERSION, _t as BaseError, a as initializeWaasClientsForEagerRecovery, b as DEFAULT_PII_FIELDS, bt as version, ct as ValueMustBeDefinedError, et as MfaRateLimitedError, f as getWalletProviders, g as DYNAMIC_ICONIC_SPRITE_URL, ht as setDefaultClient, i as InvalidParamError, it as APIError, j as getWalletAccounts, lt as getElevatedAccessToken, m as checkAndRaiseWalletAccountsChangedEvent, mt as getDefaultClient, n as upsertElevatedAccessToken, nt as LinkCredentialError, ot as isCookieEnabled, p as isUserMissingMfaAuth, pt as NONCE_POOL_SIZE, q as createApiClient, r as parseElevatedAccessToken, rt as InvalidExternalAuthError, st as assertDefined, t as updateAuthFromVerifyResponse, tt as MfaInvalidOtpError, ut as randomString, v as instrumentFunction, vt as getCore, w as extractSessionId, x as getUserAgent, y as scrubParameters, yt as name } from "./updateAuthFromVerifyResponse-wVY_DoiL.native.esm.js";
|
|
2
|
+
import { A as CannotTrackError, B as generateSessionKeys, C as createRealtimeService, D as createLogger, F as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, G as createLocalStorageAdapter, H as createStorageKeySchema, I as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, J as subscribeWithSelector, K as isSignedIn, L as isServerSideRendering, M as FETCH_PROJECT_SETTINGS_TRACKER_KEY, N as GENERATE_SESSION_KEYS_TRACKER_KEY, O as createCrossTabBroadcast, P as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, R as getBuffer, S as getKeychainIndexedDBName, T as assertSafeNavigationUrl, U as createStorage, V as fetchProjectSettings, Y as isEqualShallow, _ as getAppMetadata, a as verifyMessageSignatureOwnership, b as WalletAlreadyLinkedToAnotherUserError, c as formatSignInMessage, d as setUnverifiedWalletAccounts, f as createVisit, g as isCaptchaRequired, h as consumeCaptchaToken, i as getNetworksData, j as createDeferredPromise, l as reconcileWalletAccountsAgainstClient, m as __setCaptchaToken_wrapped, o as removeUnverifiedWalletAccount, p as hasExtension, q as retryOnFail, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as updateWalletProviderKeysForVerifiedCredentials, v as MethodNotImplementedError, w as createKeychainService, x as NoNetworkProvidersError, y as WalletScreeningBlockedError, z as __logoutWithReason_wrapped } from "./getNetworkProviderFromNetworkId-C6DBO0OX.native.esm.js";
|
|
3
|
+
import { n as NotWaasWalletAccountError, r as __refreshAuth_wrapped } from "./isDynamicWaasEnabled-BaY09iv6.native.esm.js";
|
|
4
|
+
import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-CwOGwiDz.native.esm.js";
|
|
5
|
+
import { a as WaasOnboardingIncompleteError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, r as isDeviceRegistrationRequired, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-C-ioFLRR.native.esm.js";
|
|
6
|
+
import { n as getVerifiedCredentialForWalletAccount, t as getWalletProviderByKey } from "./getWalletProviderByKey-D5M801xH.native.esm.js";
|
|
7
7
|
import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
|
|
8
|
-
import { AuthModeEnum, ExchangeKeyEnum, JwtVerifiedCredentialFormatEnum, MFAAction, MfaBackupCodeAcknowledgement, ProviderEnum, TokenScope, WaasBackupOptionsEnum, WalletProviderEnum } from "@dynamic-labs/sdk-api-core";
|
|
8
|
+
import { AuthModeEnum, CaptchaProviderEnum, CaptchaProviderEnum as CaptchaProviderEnum$1, ExchangeKeyEnum, JwtVerifiedCredentialFormatEnum, JwtVerifiedCredentialFormatEnum as JwtVerifiedCredentialFormatEnum$1, MFAAction, MfaBackupCodeAcknowledgement, ProviderEnum, ProviderEnum as ProviderEnum$1, TokenScope, TokenScope as TokenScope$1, WaasBackupOptionsEnum, WalletProviderEnum } from "@dynamic-labs/sdk-api-core";
|
|
9
9
|
import * as z from "zod/mini";
|
|
10
|
-
import EventEmitter, { EventEmitter
|
|
10
|
+
import EventEmitter$1, { EventEmitter } from "eventemitter3";
|
|
11
11
|
import { Passkey } from "react-native-passkey";
|
|
12
12
|
|
|
13
13
|
//#region src/modules/state/raiseStateEvents/events.ts
|
|
@@ -545,7 +545,7 @@ const createAsyncTrack = () => {
|
|
|
545
545
|
* This ensures no process is missed (as it would throw when tracked on a different node tick).
|
|
546
546
|
*/
|
|
547
547
|
let isTrackEnabled = true;
|
|
548
|
-
const eventEmitter = new EventEmitter
|
|
548
|
+
const eventEmitter = new EventEmitter();
|
|
549
549
|
const allSettledPromise = createDeferredPromise();
|
|
550
550
|
const tracker = /* @__PURE__ */ new Map();
|
|
551
551
|
/**
|
|
@@ -592,7 +592,7 @@ const createAsyncTrack = () => {
|
|
|
592
592
|
//#endregion
|
|
593
593
|
//#region src/services/eventEmitter/createEventEmitter.ts
|
|
594
594
|
/** @notInstrumented */
|
|
595
|
-
const createEventEmitter = () => new EventEmitter();
|
|
595
|
+
const createEventEmitter = () => new EventEmitter$1();
|
|
596
596
|
|
|
597
597
|
//#endregion
|
|
598
598
|
//#region src/errors/UnavailableInServerSideError.ts
|
|
@@ -749,10 +749,67 @@ const createDynamicTransport = (params) => {
|
|
|
749
749
|
const createNavigationHandler = () => {
|
|
750
750
|
if (isServerSideRendering()) return () => Promise.reject(new UnavailableInServerSideError("createNavigationHandler"));
|
|
751
751
|
return async (url) => {
|
|
752
|
+
assertSafeNavigationUrl(url);
|
|
752
753
|
window.location.href = url;
|
|
753
754
|
};
|
|
754
755
|
};
|
|
755
756
|
|
|
757
|
+
//#endregion
|
|
758
|
+
//#region src/errors/UnsafeDeeplinkUrlError.ts
|
|
759
|
+
/**
|
|
760
|
+
* Thrown when a deeplink is opened with a URL whose scheme can execute script
|
|
761
|
+
* in the current origin (`javascript:`, `data:`, `vbscript:`). Unlike
|
|
762
|
+
* navigation, deeplinks legitimately use custom app schemes (e.g. `phantom:`,
|
|
763
|
+
* `metamask:`), so this guards via a denylist of dangerous schemes rather than
|
|
764
|
+
* an `http(s)` allowlist, preventing DOM XSS through the `window.location.assign`
|
|
765
|
+
* sink while leaving valid wallet deeplinks untouched.
|
|
766
|
+
*/
|
|
767
|
+
var UnsafeDeeplinkUrlError = class extends BaseError {
|
|
768
|
+
constructor({ scheme }) {
|
|
769
|
+
super({
|
|
770
|
+
cause: null,
|
|
771
|
+
code: "unsafe_deeplink_url_error",
|
|
772
|
+
docsUrl: null,
|
|
773
|
+
name: "UnsafeDeeplinkUrlError",
|
|
774
|
+
shortMessage: `Refusing to open a deeplink with an unsafe scheme "${scheme}". Script-executing schemes (javascript:, data:, vbscript:) are not allowed. This may indicate a compromised or misconfigured deeplink URL.`
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
//#endregion
|
|
780
|
+
//#region src/utils/assertSafeDeeplinkUrl/assertSafeDeeplinkUrl.ts
|
|
781
|
+
/**
|
|
782
|
+
* Schemes that can execute script in the current origin and must never reach a
|
|
783
|
+
* deeplink navigation sink. Deeplinks legitimately use arbitrary custom app
|
|
784
|
+
* schemes (e.g. `phantom:`, `metamask:`), so a denylist of dangerous schemes is
|
|
785
|
+
* used here instead of the `http(s)` allowlist applied to standard navigation.
|
|
786
|
+
*/
|
|
787
|
+
const DANGEROUS_DEEPLINK_SCHEMES = new Set([
|
|
788
|
+
"javascript:",
|
|
789
|
+
"data:",
|
|
790
|
+
"vbscript:",
|
|
791
|
+
"blob:"
|
|
792
|
+
]);
|
|
793
|
+
/**
|
|
794
|
+
* Asserts that the given deeplink URL is safe to open, i.e. its scheme is not
|
|
795
|
+
* one that can execute script (`javascript:`, `data:`, `vbscript:`, `blob:`). Used as a
|
|
796
|
+
* defense-in-depth guard on the `window.location.assign` deeplink sink to
|
|
797
|
+
* prevent DOM XSS, while still permitting custom wallet app schemes.
|
|
798
|
+
*
|
|
799
|
+
* @param url - The deeplink URL string to validate.
|
|
800
|
+
* @throws {UnsafeDeeplinkUrlError} If the URL cannot be parsed or its scheme can execute script.
|
|
801
|
+
* @notInstrumented
|
|
802
|
+
*/
|
|
803
|
+
const assertSafeDeeplinkUrl = (url) => {
|
|
804
|
+
let parsed;
|
|
805
|
+
try {
|
|
806
|
+
parsed = new URL(url);
|
|
807
|
+
} catch {
|
|
808
|
+
throw new UnsafeDeeplinkUrlError({ scheme: "unknown" });
|
|
809
|
+
}
|
|
810
|
+
if (DANGEROUS_DEEPLINK_SCHEMES.has(parsed.protocol)) throw new UnsafeDeeplinkUrlError({ scheme: parsed.protocol });
|
|
811
|
+
};
|
|
812
|
+
|
|
756
813
|
//#endregion
|
|
757
814
|
//#region src/services/openDeeplink/createWebDeeplinkOpener/createWebDeeplinkOpener.ts
|
|
758
815
|
/**
|
|
@@ -772,6 +829,7 @@ const createNavigationHandler = () => {
|
|
|
772
829
|
const createWebDeeplinkOpener = () => {
|
|
773
830
|
if (isServerSideRendering()) return () => Promise.reject(new UnavailableInServerSideError("createWebDeeplinkOpener"));
|
|
774
831
|
return async (url) => {
|
|
832
|
+
assertSafeDeeplinkUrl(url);
|
|
775
833
|
window.location.assign(url);
|
|
776
834
|
};
|
|
777
835
|
};
|
|
@@ -1202,6 +1260,21 @@ var DeeplinkConnectAndVerifyUnsupportedError = class extends BaseError {
|
|
|
1202
1260
|
}
|
|
1203
1261
|
};
|
|
1204
1262
|
|
|
1263
|
+
//#endregion
|
|
1264
|
+
//#region src/errors/DeviceRegistrationIdentityMismatchError.ts
|
|
1265
|
+
var DeviceRegistrationIdentityMismatchError = class extends BaseError {
|
|
1266
|
+
constructor() {
|
|
1267
|
+
super({
|
|
1268
|
+
cause: null,
|
|
1269
|
+
code: "device_registration_identity_mismatch_error",
|
|
1270
|
+
docsUrl: null,
|
|
1271
|
+
metaMessages: ["The device registration token resolved to a different user than the one currently authenticated.", "This can indicate a login-CSRF / session-fixation attempt, so the returned session was rejected and the current session was left untouched."],
|
|
1272
|
+
name: "DeviceRegistrationIdentityMismatchError",
|
|
1273
|
+
shortMessage: "Device registration completion was rejected because it would have replaced the current session with a different identity."
|
|
1274
|
+
});
|
|
1275
|
+
}
|
|
1276
|
+
};
|
|
1277
|
+
|
|
1205
1278
|
//#endregion
|
|
1206
1279
|
//#region src/errors/FeeEstimationFailedError.ts
|
|
1207
1280
|
var FeeEstimationFailedError = class extends BaseError {
|
|
@@ -1649,7 +1722,6 @@ const __checkStepUpAuth_wrapped = instrumentFunction({
|
|
|
1649
1722
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1650
1723
|
* @returns A promise that resolves to the assertion response containing the elevated access token.
|
|
1651
1724
|
* @instrumented
|
|
1652
|
-
* @redact-params
|
|
1653
1725
|
*/
|
|
1654
1726
|
const requestExternalAuthElevatedToken = async ({ externalJwt }, client = getDefaultClient()) => {
|
|
1655
1727
|
const core = getCore(client);
|
|
@@ -1677,8 +1749,7 @@ const __requestExternalAuthElevatedToken_wrapped = instrumentFunction({
|
|
|
1677
1749
|
} catch {
|
|
1678
1750
|
return;
|
|
1679
1751
|
}
|
|
1680
|
-
}
|
|
1681
|
-
redactAll: true
|
|
1752
|
+
}
|
|
1682
1753
|
});
|
|
1683
1754
|
|
|
1684
1755
|
//#endregion
|
|
@@ -1693,7 +1764,6 @@ const __requestExternalAuthElevatedToken_wrapped = instrumentFunction({
|
|
|
1693
1764
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1694
1765
|
* @returns A promise that resolves to the authentication response from the server.
|
|
1695
1766
|
* @instrumented
|
|
1696
|
-
* @redact-params
|
|
1697
1767
|
*/
|
|
1698
1768
|
const signInWithExternalJwt = async ({ externalJwt, sessionPublicKey } = {}, client = getDefaultClient()) => {
|
|
1699
1769
|
const core = getCore(client);
|
|
@@ -1717,8 +1787,7 @@ const __signInWithExternalJwt_wrapped = instrumentFunction({
|
|
|
1717
1787
|
} catch {
|
|
1718
1788
|
return;
|
|
1719
1789
|
}
|
|
1720
|
-
}
|
|
1721
|
-
redactAll: true
|
|
1790
|
+
}
|
|
1722
1791
|
});
|
|
1723
1792
|
|
|
1724
1793
|
//#endregion
|
|
@@ -1753,7 +1822,7 @@ const logout = async (client = getDefaultClient()) => {
|
|
|
1753
1822
|
const deletePasskey = async ({ passkeyId }, client = getDefaultClient()) => {
|
|
1754
1823
|
const core = getCore(client);
|
|
1755
1824
|
await createApiClient({
|
|
1756
|
-
elevatedAccessTokenScope: TokenScope.Credentialunlink,
|
|
1825
|
+
elevatedAccessTokenScope: TokenScope$1.Credentialunlink,
|
|
1757
1826
|
includeMfaToken: true
|
|
1758
1827
|
}, client).deletePasskey({
|
|
1759
1828
|
deleteUserPasskeyRequest: { passkeyId },
|
|
@@ -1803,7 +1872,7 @@ const getPasskeyRegistrationOptions = async (client) => {
|
|
|
1803
1872
|
/** @notInstrumented */
|
|
1804
1873
|
const serverRegisterPasskey = async ({ registration, createMfaToken }, client) => {
|
|
1805
1874
|
const core = getCore(client);
|
|
1806
|
-
return await createApiClient({ elevatedAccessTokenScope: TokenScope.Credentiallink }, client).registerPasskey({
|
|
1875
|
+
return await createApiClient({ elevatedAccessTokenScope: TokenScope$1.Credentiallink }, client).registerPasskey({
|
|
1807
1876
|
environmentId: core.environmentId,
|
|
1808
1877
|
passkeyRegisterRequest: {
|
|
1809
1878
|
...registration,
|
|
@@ -1830,7 +1899,6 @@ const serverRegisterPasskey = async ({ registration, createMfaToken }, client) =
|
|
|
1830
1899
|
* @returns A promise that resolves to the registration response.
|
|
1831
1900
|
* @throws NoWebAuthNSupportError If WebAuthn is not supported by the browser.
|
|
1832
1901
|
* @instrumented
|
|
1833
|
-
* @redact-params
|
|
1834
1902
|
*/
|
|
1835
1903
|
const registerPasskey = async ({ createMfaToken } = {}, client = getDefaultClient()) => {
|
|
1836
1904
|
const core = getCore(client);
|
|
@@ -1853,8 +1921,7 @@ const __registerPasskey_wrapped = instrumentFunction({
|
|
|
1853
1921
|
} catch {
|
|
1854
1922
|
return;
|
|
1855
1923
|
}
|
|
1856
|
-
}
|
|
1857
|
-
redactAll: true
|
|
1924
|
+
}
|
|
1858
1925
|
});
|
|
1859
1926
|
|
|
1860
1927
|
//#endregion
|
|
@@ -1899,7 +1966,6 @@ const serverSigninPasskey = async ({ authentication, createMfaToken }, client) =
|
|
|
1899
1966
|
* @returns A promise that resolves to the authentication response.
|
|
1900
1967
|
* @throws NoWebAuthNSupportError If WebAuthn is not supported by the browser.
|
|
1901
1968
|
* @instrumented
|
|
1902
|
-
* @redact-params
|
|
1903
1969
|
*/
|
|
1904
1970
|
const signInWithPasskey = async ({ relatedOriginRpId } = {}, client = getDefaultClient()) => {
|
|
1905
1971
|
const core = getCore(client);
|
|
@@ -1919,8 +1985,7 @@ const __signInWithPasskey_wrapped = instrumentFunction({
|
|
|
1919
1985
|
} catch {
|
|
1920
1986
|
return;
|
|
1921
1987
|
}
|
|
1922
|
-
}
|
|
1923
|
-
redactAll: true
|
|
1988
|
+
}
|
|
1924
1989
|
});
|
|
1925
1990
|
|
|
1926
1991
|
//#endregion
|
|
@@ -1936,7 +2001,7 @@ const __signInWithPasskey_wrapped = instrumentFunction({
|
|
|
1936
2001
|
const getUserSocialAccounts = (client = getDefaultClient()) => {
|
|
1937
2002
|
const { user } = client;
|
|
1938
2003
|
assertDefined(user, "User is not authenticated");
|
|
1939
|
-
return (user.verifiedCredentials.filter((credential) => credential.format === JwtVerifiedCredentialFormatEnum.Oauth) ?? []).map((credential) => ({
|
|
2004
|
+
return (user.verifiedCredentials.filter((credential) => credential.format === JwtVerifiedCredentialFormatEnum$1.Oauth) ?? []).map((credential) => ({
|
|
1940
2005
|
accountId: credential.oauthAccountId ?? void 0,
|
|
1941
2006
|
displayName: credential.oauthDisplayName ?? void 0,
|
|
1942
2007
|
emails: credential.oauthEmails ?? [],
|
|
@@ -2079,7 +2144,7 @@ const redirectStateStorageKeySchema = createStorageKeySchema({
|
|
|
2079
2144
|
key: "redirectState",
|
|
2080
2145
|
schema: z.object({
|
|
2081
2146
|
codeVerifier: z.optional(z.string()),
|
|
2082
|
-
provider: z.enum(ProviderEnum),
|
|
2147
|
+
provider: z.enum(ProviderEnum$1),
|
|
2083
2148
|
state: z.string()
|
|
2084
2149
|
})
|
|
2085
2150
|
});
|
|
@@ -2107,7 +2172,7 @@ const redirectStateStorageKeySchema = createStorageKeySchema({
|
|
|
2107
2172
|
*/
|
|
2108
2173
|
const processSocialCallback = async ({ url, requestedScopes }, client) => {
|
|
2109
2174
|
const core = getCore(client);
|
|
2110
|
-
const apiClient = createApiClient(client.user ? { elevatedAccessTokenScope: TokenScope.Credentiallink } : {}, client);
|
|
2175
|
+
const apiClient = createApiClient(client.user ? { elevatedAccessTokenScope: TokenScope$1.Credentiallink } : {}, client);
|
|
2111
2176
|
await core.initTrack.waitForAll();
|
|
2112
2177
|
const dynamicOauthState = url.searchParams.get("dynamicOauthState");
|
|
2113
2178
|
const dynamicOauthCode = url.searchParams.get("dynamicOauthCode");
|
|
@@ -2193,15 +2258,15 @@ const addOAuthUrlParams = ({ baseUrl, isGoogleDriveBackupEnabled, provider }) =>
|
|
|
2193
2258
|
baseUrl.searchParams.set("client_id", provider.clientId);
|
|
2194
2259
|
baseUrl.searchParams.set("response_type", "code");
|
|
2195
2260
|
baseUrl.searchParams.set("redirect_uri", provider.redirectUrl);
|
|
2196
|
-
if (providerType === ProviderEnum.Tiktok) {
|
|
2261
|
+
if (providerType === ProviderEnum$1.Tiktok) {
|
|
2197
2262
|
baseUrl.searchParams.delete("client_id");
|
|
2198
2263
|
baseUrl.searchParams.set("client_key", provider.clientId);
|
|
2199
2264
|
}
|
|
2200
|
-
if (providerType === ProviderEnum.Google) {
|
|
2265
|
+
if (providerType === ProviderEnum$1.Google) {
|
|
2201
2266
|
baseUrl.searchParams.set("access_type", "offline");
|
|
2202
2267
|
if (isGoogleDriveBackupEnabled) baseUrl.searchParams.set("prompt", "consent");
|
|
2203
2268
|
}
|
|
2204
|
-
if (providerType === ProviderEnum.Apple) {
|
|
2269
|
+
if (providerType === ProviderEnum$1.Apple) {
|
|
2205
2270
|
baseUrl.searchParams.set("response_mode", APPLE_RESPONSE_MODE);
|
|
2206
2271
|
baseUrl.searchParams.set("response_type", APPLE_RESPONSE_TYPE);
|
|
2207
2272
|
}
|
|
@@ -2211,22 +2276,29 @@ const addOAuthUrlParams = ({ baseUrl, isGoogleDriveBackupEnabled, provider }) =>
|
|
|
2211
2276
|
|
|
2212
2277
|
//#endregion
|
|
2213
2278
|
//#region src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/getOAuthBaseUrl/getOAuthBaseUrl.ts
|
|
2214
|
-
/**
|
|
2279
|
+
/**
|
|
2280
|
+
* Resolves the raw base URL string for a provider before parsing/validation.
|
|
2215
2281
|
*/
|
|
2216
|
-
const
|
|
2282
|
+
const resolveBaseUrl = (provider) => {
|
|
2217
2283
|
assertDefined(provider.provider, "Provider type not found");
|
|
2218
2284
|
const providerType = provider.provider;
|
|
2219
|
-
if (providerType === ProviderEnum.Telegram) {
|
|
2285
|
+
if (providerType === ProviderEnum$1.Telegram) {
|
|
2220
2286
|
assertDefined(provider.authorizationUrl, "Telegram authorization URL not found");
|
|
2221
|
-
return
|
|
2287
|
+
return provider.authorizationUrl;
|
|
2222
2288
|
}
|
|
2223
2289
|
assertDefined(provider.baseAuthUrl, "Base auth URL not found");
|
|
2224
|
-
if (providerType === ProviderEnum.Shopify) {
|
|
2290
|
+
if (providerType === ProviderEnum$1.Shopify) {
|
|
2225
2291
|
assertDefined(provider.shopifyStore, "Shopify store value not found in provider");
|
|
2226
|
-
|
|
2227
|
-
return new URL(loginBaseUrl);
|
|
2292
|
+
return provider.baseAuthUrl.replace("{{shopifyStore}}", provider.shopifyStore);
|
|
2228
2293
|
}
|
|
2229
|
-
return
|
|
2294
|
+
return provider.baseAuthUrl;
|
|
2295
|
+
};
|
|
2296
|
+
/** Helper function to build the OAuth base URL for a given provider. * @notInstrumented
|
|
2297
|
+
*/
|
|
2298
|
+
const getOAuthBaseUrl = (provider) => {
|
|
2299
|
+
const urlString = resolveBaseUrl(provider);
|
|
2300
|
+
assertSafeNavigationUrl(urlString);
|
|
2301
|
+
return new URL(urlString);
|
|
2230
2302
|
};
|
|
2231
2303
|
|
|
2232
2304
|
//#endregion
|
|
@@ -2392,11 +2464,10 @@ const getPrimaryWalletAccount = (client = getDefaultClient()) => {
|
|
|
2392
2464
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2393
2465
|
* @returns A promise that resolves to the verify response.
|
|
2394
2466
|
* @instrumented
|
|
2395
|
-
* @redact-params
|
|
2396
2467
|
*/
|
|
2397
2468
|
const unlinkSocialAccount = async ({ verifiedCredentialId }, client = getDefaultClient()) => {
|
|
2398
2469
|
const core = getCore(client);
|
|
2399
|
-
const apiClient = createApiClient({ elevatedAccessTokenScope: TokenScope.Credentialunlink }, client);
|
|
2470
|
+
const apiClient = createApiClient({ elevatedAccessTokenScope: TokenScope$1.Credentialunlink }, client);
|
|
2400
2471
|
const primaryWalletAccount = getPrimaryWalletAccount(client);
|
|
2401
2472
|
const walletId = primaryWalletAccount?.verifiedCredentialId?.replace("-zerodev", "") ?? void 0;
|
|
2402
2473
|
const isEmbeddedWallet = !!primaryWalletAccount && getVerifiedCredentialForWalletAccount({ walletAccount: primaryWalletAccount }, client)?.walletProvider === WalletProviderEnum.EmbeddedWallet;
|
|
@@ -2420,8 +2491,7 @@ const __unlinkSocialAccount_wrapped = instrumentFunction({
|
|
|
2420
2491
|
} catch {
|
|
2421
2492
|
return;
|
|
2422
2493
|
}
|
|
2423
|
-
}
|
|
2424
|
-
redactAll: true
|
|
2494
|
+
}
|
|
2425
2495
|
});
|
|
2426
2496
|
|
|
2427
2497
|
//#endregion
|
|
@@ -2513,6 +2583,32 @@ const getMultichainTokenBalances = async ({ balanceRequest }, client = getDefaul
|
|
|
2513
2583
|
*/
|
|
2514
2584
|
const getMultichainBalances = (params, client = getDefaultClient()) => getMultichainTokenBalances(params, client);
|
|
2515
2585
|
|
|
2586
|
+
//#endregion
|
|
2587
|
+
//#region src/modules/captcha/getCaptchaSettings/getCaptchaSettings.ts
|
|
2588
|
+
/**
|
|
2589
|
+
* Returns the active captcha provider and site key, or undefined if captcha is not enabled.
|
|
2590
|
+
* Use this to determine which captcha widget to render and which site key to pass it.
|
|
2591
|
+
*
|
|
2592
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
2593
|
+
* @notInstrumented
|
|
2594
|
+
*/
|
|
2595
|
+
const getCaptchaSettings = (client = getDefaultClient()) => {
|
|
2596
|
+
const projectSettings = client.projectSettings;
|
|
2597
|
+
if (!projectSettings) return void 0;
|
|
2598
|
+
const { security } = projectSettings;
|
|
2599
|
+
if (security.captcha) {
|
|
2600
|
+
if (security.captcha.enabled) return {
|
|
2601
|
+
provider: security.captcha.provider ?? CaptchaProviderEnum$1.Hcaptcha,
|
|
2602
|
+
siteKey: security.captcha.siteKey
|
|
2603
|
+
};
|
|
2604
|
+
return;
|
|
2605
|
+
}
|
|
2606
|
+
if (security.hCaptcha?.enabled) return {
|
|
2607
|
+
provider: CaptchaProviderEnum$1.Hcaptcha,
|
|
2608
|
+
siteKey: security.hCaptcha.siteKey
|
|
2609
|
+
};
|
|
2610
|
+
};
|
|
2611
|
+
|
|
2516
2612
|
//#endregion
|
|
2517
2613
|
//#region src/modules/checkout/utils/createCheckoutSessionTokenStorageKey/createCheckoutSessionTokenStorageKey.ts
|
|
2518
2614
|
/** @notInstrumented */
|
|
@@ -3079,7 +3175,9 @@ const DEVICE_REGISTRATION_TOKEN_HEADER = "x-dynamic-device-registration-token";
|
|
|
3079
3175
|
const completeDeviceRegistration = async ({ deviceToken }, client = getDefaultClient()) => {
|
|
3080
3176
|
assertDefined(deviceToken, "deviceToken is required");
|
|
3081
3177
|
const core = getCore(client);
|
|
3178
|
+
const currentUser = core.state.get().user;
|
|
3082
3179
|
const response = await createApiClient({ headers: { [DEVICE_REGISTRATION_TOKEN_HEADER]: deviceToken } }, client).deviceRegistration({ environmentId: core.environmentId });
|
|
3180
|
+
if (currentUser && response.user?.id !== currentUser.id) throw new DeviceRegistrationIdentityMismatchError();
|
|
3083
3181
|
updateAuthFromVerifyResponse({ response }, client);
|
|
3084
3182
|
emitEvent({ event: "deviceRegistrationCompleted" }, client);
|
|
3085
3183
|
return response;
|
|
@@ -3260,6 +3358,22 @@ const withFlowSessionTokenCleanupOn401 = async ({ call, flowId }, client) => {
|
|
|
3260
3358
|
}
|
|
3261
3359
|
};
|
|
3262
3360
|
|
|
3361
|
+
//#endregion
|
|
3362
|
+
//#region src/modules/flow/attachFlowSource/attachFlowSource.instrumentation.ts
|
|
3363
|
+
/**
|
|
3364
|
+
* Explicit instrumentation payload for attachFlowSource. Reads the nested
|
|
3365
|
+
* `flow` and logs non-sensitive volume and routing dimensions only — never the
|
|
3366
|
+
* wallet address, and never the response's session token.
|
|
3367
|
+
*/
|
|
3368
|
+
const attachFlowSourceInstrumentation = { resolved: ({ flow }) => ({
|
|
3369
|
+
amount: flow.amount ?? null,
|
|
3370
|
+
currency: flow.currency ?? null,
|
|
3371
|
+
fromChainId: flow.fromChainId ?? null,
|
|
3372
|
+
fromChainName: flow.fromChainName ?? null,
|
|
3373
|
+
mode: flow.mode ?? null,
|
|
3374
|
+
sourceType: flow.sourceType ?? null
|
|
3375
|
+
}) };
|
|
3376
|
+
|
|
3263
3377
|
//#endregion
|
|
3264
3378
|
//#region src/modules/flow/attachFlowSource/attachFlowSource.ts
|
|
3265
3379
|
/**
|
|
@@ -3289,11 +3403,13 @@ const attachFlowSource = async (params, client = getDefaultClient()) => {
|
|
|
3289
3403
|
flowAttachSourceRequest.fromChainId = params.fromChainId;
|
|
3290
3404
|
flowAttachSourceRequest.fromChainName = params.fromChainName;
|
|
3291
3405
|
}
|
|
3406
|
+
const existingToken = await core.storage.getItem(createFlowSessionTokenStorageKey(flowId));
|
|
3292
3407
|
const result = await withFlowSessionTokenCleanupOn401({
|
|
3293
3408
|
call: () => apiClient.attachFlowSource({
|
|
3294
3409
|
environmentId: core.environmentId,
|
|
3295
3410
|
flowAttachSourceRequest,
|
|
3296
|
-
flowId
|
|
3411
|
+
flowId,
|
|
3412
|
+
xDynamicFlowSessionToken: existingToken ?? void 0
|
|
3297
3413
|
}),
|
|
3298
3414
|
flowId
|
|
3299
3415
|
}, client);
|
|
@@ -3310,7 +3426,8 @@ const __attachFlowSource_wrapped = instrumentFunction({
|
|
|
3310
3426
|
} catch {
|
|
3311
3427
|
return;
|
|
3312
3428
|
}
|
|
3313
|
-
}
|
|
3429
|
+
},
|
|
3430
|
+
selectors: attachFlowSourceInstrumentation
|
|
3314
3431
|
});
|
|
3315
3432
|
|
|
3316
3433
|
//#endregion
|
|
@@ -3328,6 +3445,22 @@ const createFlowApiClient = async ({ flowId }, client) => {
|
|
|
3328
3445
|
};
|
|
3329
3446
|
};
|
|
3330
3447
|
|
|
3448
|
+
//#endregion
|
|
3449
|
+
//#region src/modules/flow/broadcastFlow/broadcastFlow.instrumentation.ts
|
|
3450
|
+
/**
|
|
3451
|
+
* Explicit instrumentation payload for broadcastFlow. Logs non-sensitive
|
|
3452
|
+
* volume and routing dimensions only — never the wallet address or any
|
|
3453
|
+
* session token — so we can understand volume moved through the flow product.
|
|
3454
|
+
*/
|
|
3455
|
+
const broadcastFlowInstrumentation = { resolved: (flow) => ({
|
|
3456
|
+
amount: flow.amount ?? null,
|
|
3457
|
+
currency: flow.currency ?? null,
|
|
3458
|
+
fromChainId: flow.fromChainId ?? null,
|
|
3459
|
+
fromChainName: flow.fromChainName ?? null,
|
|
3460
|
+
mode: flow.mode ?? null,
|
|
3461
|
+
sourceType: flow.sourceType ?? null
|
|
3462
|
+
}) };
|
|
3463
|
+
|
|
3331
3464
|
//#endregion
|
|
3332
3465
|
//#region src/modules/flow/broadcastFlow/broadcastFlow.ts
|
|
3333
3466
|
/**
|
|
@@ -3364,9 +3497,25 @@ const __broadcastFlow_wrapped = instrumentFunction({
|
|
|
3364
3497
|
} catch {
|
|
3365
3498
|
return;
|
|
3366
3499
|
}
|
|
3367
|
-
}
|
|
3500
|
+
},
|
|
3501
|
+
selectors: broadcastFlowInstrumentation
|
|
3368
3502
|
});
|
|
3369
3503
|
|
|
3504
|
+
//#endregion
|
|
3505
|
+
//#region src/modules/flow/cancelFlow/cancelFlow.instrumentation.ts
|
|
3506
|
+
/**
|
|
3507
|
+
* Explicit instrumentation payload for cancelFlow. Logs non-sensitive volume
|
|
3508
|
+
* and routing dimensions only — never the wallet address or any session token.
|
|
3509
|
+
*/
|
|
3510
|
+
const cancelFlowInstrumentation = { resolved: (flow) => ({
|
|
3511
|
+
amount: flow.amount ?? null,
|
|
3512
|
+
currency: flow.currency ?? null,
|
|
3513
|
+
fromChainId: flow.fromChainId ?? null,
|
|
3514
|
+
fromChainName: flow.fromChainName ?? null,
|
|
3515
|
+
mode: flow.mode ?? null,
|
|
3516
|
+
sourceType: flow.sourceType ?? null
|
|
3517
|
+
}) };
|
|
3518
|
+
|
|
3370
3519
|
//#endregion
|
|
3371
3520
|
//#region src/modules/flow/cancelFlow/cancelFlow.ts
|
|
3372
3521
|
/**
|
|
@@ -3400,7 +3549,8 @@ const __cancelFlow_wrapped = instrumentFunction({
|
|
|
3400
3549
|
} catch {
|
|
3401
3550
|
return;
|
|
3402
3551
|
}
|
|
3403
|
-
}
|
|
3552
|
+
},
|
|
3553
|
+
selectors: cancelFlowInstrumentation
|
|
3404
3554
|
});
|
|
3405
3555
|
|
|
3406
3556
|
//#endregion
|
|
@@ -3448,6 +3598,22 @@ const getFlowQuote = async ({ flowId, fromChainId, fromTokenAddress, slippage },
|
|
|
3448
3598
|
}, client);
|
|
3449
3599
|
};
|
|
3450
3600
|
|
|
3601
|
+
//#endregion
|
|
3602
|
+
//#region src/modules/flow/prepareFlowSigning/prepareFlowSigning.instrumentation.ts
|
|
3603
|
+
/**
|
|
3604
|
+
* Explicit instrumentation payload for prepareFlowSigning. Logs non-sensitive
|
|
3605
|
+
* volume and routing dimensions only — never the wallet address or any
|
|
3606
|
+
* session token.
|
|
3607
|
+
*/
|
|
3608
|
+
const prepareFlowSigningInstrumentation = { resolved: (flow) => ({
|
|
3609
|
+
amount: flow.amount ?? null,
|
|
3610
|
+
currency: flow.currency ?? null,
|
|
3611
|
+
fromChainId: flow.fromChainId ?? null,
|
|
3612
|
+
fromChainName: flow.fromChainName ?? null,
|
|
3613
|
+
mode: flow.mode ?? null,
|
|
3614
|
+
sourceType: flow.sourceType ?? null
|
|
3615
|
+
}) };
|
|
3616
|
+
|
|
3451
3617
|
//#endregion
|
|
3452
3618
|
//#region src/modules/flow/prepareFlowSigning/prepareFlowSigning.ts
|
|
3453
3619
|
/**
|
|
@@ -3485,9 +3651,26 @@ const __prepareFlowSigning_wrapped = instrumentFunction({
|
|
|
3485
3651
|
} catch {
|
|
3486
3652
|
return;
|
|
3487
3653
|
}
|
|
3488
|
-
}
|
|
3654
|
+
},
|
|
3655
|
+
selectors: prepareFlowSigningInstrumentation
|
|
3489
3656
|
});
|
|
3490
3657
|
|
|
3658
|
+
//#endregion
|
|
3659
|
+
//#region src/modules/flow/submitFlowTransaction/submitFlowTransaction.instrumentation.ts
|
|
3660
|
+
/**
|
|
3661
|
+
* Explicit instrumentation payload for submitFlowTransaction. Logs
|
|
3662
|
+
* non-sensitive volume and routing dimensions only — never the wallet address
|
|
3663
|
+
* or any session token — so executed flow volume is measurable.
|
|
3664
|
+
*/
|
|
3665
|
+
const submitFlowTransactionInstrumentation = { resolved: (flow) => ({
|
|
3666
|
+
amount: flow.amount ?? null,
|
|
3667
|
+
currency: flow.currency ?? null,
|
|
3668
|
+
fromChainId: flow.fromChainId ?? null,
|
|
3669
|
+
fromChainName: flow.fromChainName ?? null,
|
|
3670
|
+
mode: flow.mode ?? null,
|
|
3671
|
+
sourceType: flow.sourceType ?? null
|
|
3672
|
+
}) };
|
|
3673
|
+
|
|
3491
3674
|
//#endregion
|
|
3492
3675
|
//#region src/modules/flow/submitFlowTransaction/submitFlowTransaction.ts
|
|
3493
3676
|
/**
|
|
@@ -3531,7 +3714,8 @@ const __submitFlowTransaction_wrapped = instrumentFunction({
|
|
|
3531
3714
|
} catch {
|
|
3532
3715
|
return;
|
|
3533
3716
|
}
|
|
3534
|
-
}
|
|
3717
|
+
},
|
|
3718
|
+
selectors: submitFlowTransactionInstrumentation
|
|
3535
3719
|
});
|
|
3536
3720
|
|
|
3537
3721
|
//#endregion
|
|
@@ -3593,7 +3777,7 @@ const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client
|
|
|
3593
3777
|
const { user } = client;
|
|
3594
3778
|
assertDefined(user, "User is not authenticated");
|
|
3595
3779
|
const fieldsMissingVerification = [];
|
|
3596
|
-
const emailVerifiedCredential = user.verifiedCredentials.find((credential) => credential.format === JwtVerifiedCredentialFormatEnum.Email);
|
|
3780
|
+
const emailVerifiedCredential = user.verifiedCredentials.find((credential) => credential.format === JwtVerifiedCredentialFormatEnum$1.Email);
|
|
3597
3781
|
if (!user.email) fieldsMissingVerification.push({
|
|
3598
3782
|
errorCode: "MISSING_INFORMATION",
|
|
3599
3783
|
field: "email"
|
|
@@ -3603,7 +3787,7 @@ const getMissingVerificationForCoinbaseOnrampOrder = ({ paymentMethod }, client
|
|
|
3603
3787
|
errorCode: "MISSING_VERIFICATION",
|
|
3604
3788
|
field: "email"
|
|
3605
3789
|
});
|
|
3606
|
-
const phoneVerifiedCredential = user.verifiedCredentials.find((credential) => credential.format === JwtVerifiedCredentialFormatEnum.PhoneNumber);
|
|
3790
|
+
const phoneVerifiedCredential = user.verifiedCredentials.find((credential) => credential.format === JwtVerifiedCredentialFormatEnum$1.PhoneNumber);
|
|
3607
3791
|
const phoneNumberVerifiedInPast60Days = phoneVerifiedCredential?.verifiedAt && phoneVerifiedCredential.verifiedAt >= /* @__PURE__ */ new Date(Date.now() - 1440 * 60 * 60 * 1e3);
|
|
3608
3792
|
if (!user.phoneNumber) fieldsMissingVerification.push({
|
|
3609
3793
|
errorCode: "MISSING_INFORMATION",
|
|
@@ -3763,18 +3947,6 @@ const createKrakenExchangeTransfer = async (transferParams, client = getDefaultC
|
|
|
3763
3947
|
exchangeKey: ExchangeKeyEnum.Kraken
|
|
3764
3948
|
});
|
|
3765
3949
|
};
|
|
3766
|
-
const __createKrakenExchangeTransfer_impl = createKrakenExchangeTransfer;
|
|
3767
|
-
const __createKrakenExchangeTransfer_wrapped = instrumentFunction({
|
|
3768
|
-
fn: __createKrakenExchangeTransfer_impl,
|
|
3769
|
-
functionName: "createKrakenExchangeTransfer",
|
|
3770
|
-
getCore: () => {
|
|
3771
|
-
try {
|
|
3772
|
-
return getCore(getDefaultClient());
|
|
3773
|
-
} catch {
|
|
3774
|
-
return;
|
|
3775
|
-
}
|
|
3776
|
-
}
|
|
3777
|
-
});
|
|
3778
3950
|
|
|
3779
3951
|
//#endregion
|
|
3780
3952
|
//#region src/modules/funding/kraken/getKrakenAccounts/getKrakenAccounts.ts
|
|
@@ -3886,10 +4058,6 @@ var MoonPayProviderNotAvailableError = class extends BaseError {
|
|
|
3886
4058
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
3887
4059
|
* @returns The signed MoonPay URL.
|
|
3888
4060
|
* @instrumented
|
|
3889
|
-
* @redact-params - the return is a bare signed onramp URL whose query string
|
|
3890
|
-
* carries the provider signature plus the user's wallet address; a bare-string
|
|
3891
|
-
* return is logged under the synthetic `result` key, which no key-based rule
|
|
3892
|
-
* covers, so redact the whole event.
|
|
3893
4061
|
*/
|
|
3894
4062
|
const getMoonPayUrl = async (params, client = getDefaultClient()) => {
|
|
3895
4063
|
const core = getCore(client);
|
|
@@ -3903,7 +4071,7 @@ const getMoonPayUrl = async (params, client = getDefaultClient()) => {
|
|
|
3903
4071
|
token: params.token,
|
|
3904
4072
|
tokenAmount: params.tokenAmount,
|
|
3905
4073
|
walletAddress: params.walletAddress
|
|
3906
|
-
})).onramps?.find((provider) => provider.provider === ProviderEnum.MoonPay);
|
|
4074
|
+
})).onramps?.find((provider) => provider.provider === ProviderEnum$1.MoonPay);
|
|
3907
4075
|
if (!moonPayProvider?.url) throw new MoonPayProviderNotAvailableError();
|
|
3908
4076
|
const parsedUrl = new URL(moonPayProvider.url);
|
|
3909
4077
|
const isValidHost = parsedUrl.hostname === "moonpay.com" || parsedUrl.hostname.endsWith(".moonpay.com");
|
|
@@ -3923,8 +4091,7 @@ const __getMoonPayUrl_wrapped = instrumentFunction({
|
|
|
3923
4091
|
} catch {
|
|
3924
4092
|
return;
|
|
3925
4093
|
}
|
|
3926
|
-
}
|
|
3927
|
-
redactAll: true
|
|
4094
|
+
}
|
|
3928
4095
|
});
|
|
3929
4096
|
|
|
3930
4097
|
//#endregion
|
|
@@ -4508,7 +4675,6 @@ const getWalletConnectCatalogWalletByWalletProviderKey = async ({ walletProvider
|
|
|
4508
4675
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4509
4676
|
* @returns A promise that resolves to OTP verification details if verification is required, or undefined.
|
|
4510
4677
|
* @instrumented
|
|
4511
|
-
* @redact-params
|
|
4512
4678
|
*/
|
|
4513
4679
|
const updateUser = async ({ userFields }, client = getDefaultClient()) => {
|
|
4514
4680
|
const core = getCore(client);
|
|
@@ -4538,8 +4704,7 @@ const __updateUser_wrapped = instrumentFunction({
|
|
|
4538
4704
|
} catch {
|
|
4539
4705
|
return;
|
|
4540
4706
|
}
|
|
4541
|
-
}
|
|
4542
|
-
redactAll: true
|
|
4707
|
+
}
|
|
4543
4708
|
});
|
|
4544
4709
|
|
|
4545
4710
|
//#endregion
|
|
@@ -4753,7 +4918,6 @@ const authenticateTotpMfaDevice = async ({ deviceId, code, createMfaTokenOptions
|
|
|
4753
4918
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4754
4919
|
* @returns A promise that resolves to the newly generated recovery codes.
|
|
4755
4920
|
* @instrumented
|
|
4756
|
-
* @redact-params
|
|
4757
4921
|
*/
|
|
4758
4922
|
const createNewMfaRecoveryCodes = async (client = getDefaultClient()) => {
|
|
4759
4923
|
const core = getCore(client);
|
|
@@ -4769,8 +4933,7 @@ const __createNewMfaRecoveryCodes_wrapped = instrumentFunction({
|
|
|
4769
4933
|
} catch {
|
|
4770
4934
|
return;
|
|
4771
4935
|
}
|
|
4772
|
-
}
|
|
4773
|
-
redactAll: true
|
|
4936
|
+
}
|
|
4774
4937
|
});
|
|
4775
4938
|
|
|
4776
4939
|
//#endregion
|
|
@@ -4794,9 +4957,9 @@ const deleteMfaDevice = async ({ deviceId, mfaAuthToken }, client = getDefaultCl
|
|
|
4794
4957
|
assertDefined(deviceId, "deviceId is required");
|
|
4795
4958
|
if (!getElevatedAccessToken({
|
|
4796
4959
|
consume: false,
|
|
4797
|
-
scope: TokenScope.Credentialunlink
|
|
4960
|
+
scope: TokenScope$1.Credentialunlink
|
|
4798
4961
|
}, client)) assertDefined(mfaAuthToken, "mfaAuthToken is required");
|
|
4799
|
-
return createApiClient({ elevatedAccessTokenScope: TokenScope.Credentialunlink }, client).deleteMfaDevice({
|
|
4962
|
+
return createApiClient({ elevatedAccessTokenScope: TokenScope$1.Credentialunlink }, client).deleteMfaDevice({
|
|
4800
4963
|
environmentId: core.environmentId,
|
|
4801
4964
|
mfaDeviceId: deviceId,
|
|
4802
4965
|
xMfaAuthToken: mfaAuthToken ?? ""
|
|
@@ -4864,13 +5027,10 @@ const getMfaRecoveryCodes = async (client = getDefaultClient()) => {
|
|
|
4864
5027
|
* @returns A promise that resolves to the TOTP registration response containing setup information,
|
|
4865
5028
|
* like the secret key and the OTP Auth URI.
|
|
4866
5029
|
* @instrumented
|
|
4867
|
-
* @redact-params - the response embeds the TOTP shared secret in both `secret`
|
|
4868
|
-
* and the `uri` (`otpauth://...?secret=...`); redact the whole event so the
|
|
4869
|
-
* seed never reaches logs via the un-keyed `uri` field.
|
|
4870
5030
|
*/
|
|
4871
5031
|
const registerTotpMfaDevice = async (client = getDefaultClient()) => {
|
|
4872
5032
|
const core = getCore(client);
|
|
4873
|
-
return createApiClient({ elevatedAccessTokenScope: TokenScope.Credentiallink }, client).registerTotpMfaDevice({ environmentId: core.environmentId });
|
|
5033
|
+
return createApiClient({ elevatedAccessTokenScope: TokenScope$1.Credentiallink }, client).registerTotpMfaDevice({ environmentId: core.environmentId });
|
|
4874
5034
|
};
|
|
4875
5035
|
const __registerTotpMfaDevice_impl = registerTotpMfaDevice;
|
|
4876
5036
|
const __registerTotpMfaDevice_wrapped = instrumentFunction({
|
|
@@ -4882,8 +5042,7 @@ const __registerTotpMfaDevice_wrapped = instrumentFunction({
|
|
|
4882
5042
|
} catch {
|
|
4883
5043
|
return;
|
|
4884
5044
|
}
|
|
4885
|
-
}
|
|
4886
|
-
redactAll: true
|
|
5045
|
+
}
|
|
4887
5046
|
});
|
|
4888
5047
|
|
|
4889
5048
|
//#endregion
|
|
@@ -4932,7 +5091,6 @@ const __setDefaultMfaDevice_wrapped = instrumentFunction({
|
|
|
4932
5091
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
4933
5092
|
* @returns A promise that resolves to an OTPVerification object containing the email and verification UUID.
|
|
4934
5093
|
* @instrumented
|
|
4935
|
-
* @redact-params
|
|
4936
5094
|
*/
|
|
4937
5095
|
const sendEmailOTP = async ({ email }, client = getDefaultClient()) => {
|
|
4938
5096
|
const core = getCore(client);
|
|
@@ -4960,8 +5118,7 @@ const __sendEmailOTP_wrapped = instrumentFunction({
|
|
|
4960
5118
|
} catch {
|
|
4961
5119
|
return;
|
|
4962
5120
|
}
|
|
4963
|
-
}
|
|
4964
|
-
redactAll: true
|
|
5121
|
+
}
|
|
4965
5122
|
});
|
|
4966
5123
|
|
|
4967
5124
|
//#endregion
|
|
@@ -5895,7 +6052,6 @@ const supportedCountries = {
|
|
|
5895
6052
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
5896
6053
|
* @returns A promise that resolves to an OTPVerification object containing the phone details and verification UUID.
|
|
5897
6054
|
* @instrumented
|
|
5898
|
-
* @redact-params
|
|
5899
6055
|
*/
|
|
5900
6056
|
const sendSmsOTP = async ({ isoCountryCode, phoneNumber }, client = getDefaultClient()) => {
|
|
5901
6057
|
const core = getCore(client);
|
|
@@ -5928,8 +6084,7 @@ const __sendSmsOTP_wrapped = instrumentFunction({
|
|
|
5928
6084
|
} catch {
|
|
5929
6085
|
return;
|
|
5930
6086
|
}
|
|
5931
|
-
}
|
|
5932
|
-
redactAll: true
|
|
6087
|
+
}
|
|
5933
6088
|
});
|
|
5934
6089
|
|
|
5935
6090
|
//#endregion
|
|
@@ -5986,7 +6141,6 @@ const verifyOTPForUserUpdate = async ({ otpVerification, verificationToken, requ
|
|
|
5986
6141
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
5987
6142
|
* @returns A promise that resolves to the verify response object upon successful verification.
|
|
5988
6143
|
* @instrumented
|
|
5989
|
-
* @redact-params
|
|
5990
6144
|
*/
|
|
5991
6145
|
const verifyOTP = async ({ otpVerification, verificationToken, requestedScopes }, client = getDefaultClient()) => {
|
|
5992
6146
|
preconnectWaasIframe(client);
|
|
@@ -6013,8 +6167,7 @@ const __verifyOTP_wrapped = instrumentFunction({
|
|
|
6013
6167
|
} catch {
|
|
6014
6168
|
return;
|
|
6015
6169
|
}
|
|
6016
|
-
}
|
|
6017
|
-
redactAll: true
|
|
6170
|
+
}
|
|
6018
6171
|
});
|
|
6019
6172
|
|
|
6020
6173
|
//#endregion
|
|
@@ -6201,7 +6354,7 @@ const fetchGoogleDriveOauthAccess = async ({ oauthAccountId }, client) => {
|
|
|
6201
6354
|
* `undefined`.
|
|
6202
6355
|
* @notInstrumented
|
|
6203
6356
|
*/
|
|
6204
|
-
const findGoogleOauthAccountId = (credentials) => credentials?.find((cred) => cred.format === JwtVerifiedCredentialFormatEnum.Oauth && cred.oauthProvider === ProviderEnum.Google)?.id;
|
|
6357
|
+
const findGoogleOauthAccountId = (credentials) => credentials?.find((cred) => cred.format === JwtVerifiedCredentialFormatEnum$1.Oauth && cred.oauthProvider === ProviderEnum$1.Google)?.id;
|
|
6205
6358
|
|
|
6206
6359
|
//#endregion
|
|
6207
6360
|
//#region src/modules/walletBackup/googleDrive/getGoogleDriveBackupReadiness/getGoogleDriveBackupReadiness.ts
|
|
@@ -7844,6 +7997,7 @@ const getWalletAccountAddressByType = ({ type, walletAccount }) => {
|
|
|
7844
7997
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
7845
7998
|
* @returns The data for the wallet provider.
|
|
7846
7999
|
* @notInstrumented
|
|
8000
|
+
* @hook Exposed as a hook so consumers get reactive wallet provider data, updated when the wallet provider registry changes.
|
|
7847
8001
|
*/
|
|
7848
8002
|
const getWalletProviderDataByKey = ({ walletProviderKey }, client = getDefaultClient()) => {
|
|
7849
8003
|
const { chain, groupKey, key, metadata, walletProviderType } = getWalletProviderByKey({ walletProviderKey }, client);
|
|
@@ -8502,5 +8656,5 @@ const parseUserAgent = ({ userAgent }) => {
|
|
|
8502
8656
|
assertPackageVersion(name, version);
|
|
8503
8657
|
|
|
8504
8658
|
//#endregion
|
|
8505
|
-
export { BaseError, CheckoutSessionTokenMissingError, ClientAlreadyInitializedError, DeeplinkConnectAndVerifyUnsupportedError, FeeEstimationFailedError, FlowSessionTokenMissingError, GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES, InvalidDeviceRegistrationRedirectError, InvalidExternalAuthError, InvalidParamError, InvalidRedirectStorageStateError, InvalidSocialCallbackOriginError, LinkCredentialError, MFAAction, MfaInvalidOtpError, MfaRateLimitedError, MissingRedirectStorageStateError, MissingSocialUrlParamError, MissingUserVerificationError, NetworkAddingUnavailableError, NetworkNotAddedError, NetworkSwitchingUnavailableError, NoAddressFoundError, NoNetworkProvidersError, NoPasskeyCredentialsFoundError, NoSmartWalletAccountSignerFoundError, NoWebAuthNSupportError, NotWaasWalletAccountError, SandboxMaximumThresholdReachedError, SimulationFailedError, TokenSwapError, UnauthorizedError, UnavailableInServerSideError, UnrecognizedNetworkError, UserCancelledSocialPopUpError, UserNotAuthenticatedError, UserRejectedError, WaasOnboardingIncompleteError, WalletAccountAlreadyVerifiedError, WalletAccountNotSelectedError, WalletAlreadyLinkedToAnotherUserError, WalletProviderMethodUnavailableError, __acknowledgeRecoveryCodes_wrapped as acknowledgeRecoveryCodes, addCoinbaseOnrampOrderEventListener, __addNetwork_wrapped as addNetwork, appendConnectionUriToDeeplink, assertWalletAccountSigningAvailability, assertWalletProviderMethodDefined, __attachCheckoutTransactionSource_wrapped as attachCheckoutTransactionSource, __attachFlowSource_wrapped as attachFlowSource, authenticateMfaRecoveryCode, authenticatePasskeyMFA, authenticateTotpMfaDevice, __authenticateWithSocial_wrapped as authenticateWithSocial, __broadcastCheckoutTransaction_wrapped as broadcastCheckoutTransaction, __broadcastFlow_wrapped as broadcastFlow, canConnectWithHardwareWallet, __cancelCheckoutTransaction_wrapped as cancelCheckoutTransaction, __cancelFlow_wrapped as cancelFlow, __checkStepUpAuth_wrapped as checkStepUpAuth, __completeDeviceRegistration_wrapped as completeDeviceRegistration, __completeSocialAuthentication_wrapped as completeSocialAuthentication, __completeSocialRedirect_wrapped as completeSocialRedirect, __confirmTransaction_wrapped as confirmTransaction, __connectAndVerifyWithWalletProvider_wrapped as connectAndVerifyWithWalletProvider, __connectWithWalletProvider_wrapped as connectWithWalletProvider, __consumeMfaToken_wrapped as consumeMfaToken, __createCheckoutTransaction_wrapped as createCheckoutTransaction, __createCoinbaseOnrampOrder_wrapped as createCoinbaseOnrampOrder, __createCryptoDotComPayment_wrapped as createCryptoDotComPayment, __createDynamicClient_wrapped as createDynamicClient,
|
|
8659
|
+
export { BaseError, CaptchaProviderEnum, CheckoutSessionTokenMissingError, ClientAlreadyInitializedError, DeeplinkConnectAndVerifyUnsupportedError, DeviceRegistrationIdentityMismatchError, FeeEstimationFailedError, FlowSessionTokenMissingError, GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES, InvalidDeviceRegistrationRedirectError, InvalidExternalAuthError, InvalidParamError, InvalidRedirectStorageStateError, InvalidSocialCallbackOriginError, JwtVerifiedCredentialFormatEnum, LinkCredentialError, MFAAction, MfaInvalidOtpError, MfaRateLimitedError, MissingRedirectStorageStateError, MissingSocialUrlParamError, MissingUserVerificationError, NetworkAddingUnavailableError, NetworkNotAddedError, NetworkSwitchingUnavailableError, NoAddressFoundError, NoNetworkProvidersError, NoPasskeyCredentialsFoundError, NoSmartWalletAccountSignerFoundError, NoWebAuthNSupportError, NotWaasWalletAccountError, ProviderEnum, SandboxMaximumThresholdReachedError, SimulationFailedError, TokenScope, TokenSwapError, UnauthorizedError, UnavailableInServerSideError, UnrecognizedNetworkError, UserCancelledSocialPopUpError, UserNotAuthenticatedError, UserRejectedError, WaasOnboardingIncompleteError, WalletAccountAlreadyVerifiedError, WalletAccountNotSelectedError, WalletAlreadyLinkedToAnotherUserError, WalletProviderMethodUnavailableError, WalletScreeningBlockedError, __acknowledgeRecoveryCodes_wrapped as acknowledgeRecoveryCodes, addCoinbaseOnrampOrderEventListener, __addNetwork_wrapped as addNetwork, appendConnectionUriToDeeplink, assertWalletAccountSigningAvailability, assertWalletProviderMethodDefined, __attachCheckoutTransactionSource_wrapped as attachCheckoutTransactionSource, __attachFlowSource_wrapped as attachFlowSource, authenticateMfaRecoveryCode, authenticatePasskeyMFA, authenticateTotpMfaDevice, __authenticateWithSocial_wrapped as authenticateWithSocial, __broadcastCheckoutTransaction_wrapped as broadcastCheckoutTransaction, __broadcastFlow_wrapped as broadcastFlow, canConnectWithHardwareWallet, __cancelCheckoutTransaction_wrapped as cancelCheckoutTransaction, __cancelFlow_wrapped as cancelFlow, __checkStepUpAuth_wrapped as checkStepUpAuth, __completeDeviceRegistration_wrapped as completeDeviceRegistration, __completeSocialAuthentication_wrapped as completeSocialAuthentication, __completeSocialRedirect_wrapped as completeSocialRedirect, __confirmTransaction_wrapped as confirmTransaction, __connectAndVerifyWithWalletProvider_wrapped as connectAndVerifyWithWalletProvider, __connectWithWalletProvider_wrapped as connectWithWalletProvider, __consumeMfaToken_wrapped as consumeMfaToken, __createCheckoutTransaction_wrapped as createCheckoutTransaction, __createCoinbaseOnrampOrder_wrapped as createCoinbaseOnrampOrder, __createCryptoDotComPayment_wrapped as createCryptoDotComPayment, __createDynamicClient_wrapped as createDynamicClient, createKrakenExchangeTransfer, __createNewMfaRecoveryCodes_wrapped as createNewMfaRecoveryCodes, __deleteMfaDevice_wrapped as deleteMfaDevice, __deletePasskey_wrapped as deletePasskey, __deleteUser_wrapped as deleteUser, detectDeviceRegistrationRedirect, detectOAuthRedirect, detectSocialRedirectUrl, excludeInstalledFromCatalog, __executeSwapTransaction_wrapped as executeSwapTransaction, fetchProjectSettings, findMissingGoogleDriveBackupScopes, getActiveNetworkData, getActiveNetworkId, getAvailableWalletProvidersData, getBalance, getBalanceForAddress, getBalances, getCaptchaSettings, getCheckoutTransaction, getCheckoutTransactionQuote, getCoinbaseBuyUrl, getConnectedAddresses, getDefaultClient, getDeviceRegistrationTokenFromUrl, getElevatedAccessToken, getFlow, getFlowQuote, __getGoogleDriveBackupReadiness_wrapped as getGoogleDriveBackupReadiness, getInstallationLinkForCurrentPlatform, getKrakenAccounts, getKrakenWhitelistedAddresses, getMfaDevices, getMfaMethods, getMfaRecoveryCodes, getMissingVerificationForCoinbaseOnrampOrder, __getMoonPayCurrencies_wrapped as getMoonPayCurrencies, __getMoonPayUrl_wrapped as getMoonPayUrl, getMultichainBalances, getMultichainTokenBalances, getNativeBalance, getNetworksData, getOwnerWalletAccountForSmartWalletAccount, getPasskeys, getPrimaryWalletAccount, getRegisteredDevices, getSwapQuote, getSwapStatus, getTokenBalances, getTransactionHistory, getUserSocialAccounts, getWalletAccountAddressByType, getWalletAccountFromAddress, getWalletAccounts, getWalletConnectCatalog, getWalletConnectCatalogWalletByWalletProviderKey, getWalletOptionsCatalogue, getWalletProviderDataByKey, hasAllGoogleDriveBackupScopes, hasExtension, __initializeClient_wrapped as initializeClient, isAnyWalletAccountConnected, isCaptchaRequired, isDeeplinkWalletProvider, isDeviceRegistrationRequired, isHardwareWalletAccount, isInsufficientGoogleDriveScopesError, isMfaRequiredForAction, isMobile, isPendingRecoveryCodesAcknowledgment, isProgrammaticNetworkSwitchAvailable, isSignedIn, isUserMissingMfaAuth, isUserOnboardingComplete, isWalletAccountVerified, logout, matchWalletProvidersToCatalogGroup, offEvent, offWalletProviderEvent, onEvent, onWalletProviderEvent, onceEvent, parseUserAgent, __prepareCheckoutTransaction_wrapped as prepareCheckoutTransaction, __prepareFlowSigning_wrapped as prepareFlowSigning, __proveWalletAccountOwnership_wrapped as proveWalletAccountOwnership, __refreshAuth_wrapped as refreshAuth, __refreshUser_wrapped as refreshUser, __registerPasskey_wrapped as registerPasskey, __registerTotpMfaDevice_wrapped as registerTotpMfaDevice, __removeWalletAccount_wrapped as removeWalletAccount, __requestExternalAuthElevatedToken_wrapped as requestExternalAuthElevatedToken, requiresConversion, __revokeAllRegisteredDevices_wrapped as revokeAllRegisteredDevices, __revokeRegisteredDevice_wrapped as revokeRegisteredDevice, __selectPrimaryWalletAccount_wrapped as selectPrimaryWalletAccount, __sendEmailOTP_wrapped as sendEmailOTP, __sendSmsOTP_wrapped as sendSmsOTP, __setCaptchaToken_wrapped as setCaptchaToken, __setDefaultMfaDevice_wrapped as setDefaultMfaDevice, __setInstrumentationEnabled_wrapped as setInstrumentationEnabled, __signInWithExternalJwt_wrapped as signInWithExternalJwt, __signInWithPasskey_wrapped as signInWithPasskey, __signInWithSocialPopUp_wrapped as signInWithSocialPopUp, __signInWithSocialRedirect_wrapped as signInWithSocialRedirect, __signMessage_wrapped as signMessage, __submitCheckoutTransaction_wrapped as submitCheckoutTransaction, __submitFlowTransaction_wrapped as submitFlowTransaction, supportedCountries, __switchActiveNetwork_wrapped as switchActiveNetwork, trackCheckoutTransaction, __transferAmount_wrapped as transferAmount, __transferWalletAccount_wrapped as transferWalletAccount, __unlinkSocialAccount_wrapped as unlinkSocialAccount, __updateUser_wrapped as updateUser, __verifyOTP_wrapped as verifyOTP, __verifyWalletAccount_wrapped as verifyWalletAccount, waitForClientInitialized };
|
|
8506
8660
|
//# sourceMappingURL=index.native.esm.js.map
|