@dynamic-labs-sdk/client 1.17.1 → 1.19.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/client/createDynamicClient/createDynamicClient.d.ts +11 -1
- package/dist/client/createDynamicClient/createDynamicClient.d.ts.map +1 -1
- package/dist/client/defaultClient/defaultClient.d.ts +12 -1
- package/dist/client/defaultClient/defaultClient.d.ts.map +1 -1
- package/dist/core.cjs +7 -5
- package/dist/core.cjs.map +1 -1
- package/dist/core.esm.js +6 -6
- package/dist/core.esm.js.map +1 -1
- package/dist/core.native.esm.js +6 -6
- package/dist/core.native.esm.js.map +1 -1
- package/dist/errors/APIError/APIError.d.ts +11 -1
- package/dist/errors/APIError/APIError.d.ts.map +1 -1
- package/dist/errors/DeviceRegistrationIdentityMismatchError.d.ts +26 -0
- package/dist/errors/DeviceRegistrationIdentityMismatchError.d.ts.map +1 -0
- package/dist/errors/MergeAccountsConfirmationError.d.ts +49 -0
- package/dist/errors/MergeAccountsConfirmationError.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 +27 -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 +18 -3
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/exports/waas.d.ts +2 -0
- package/dist/exports/waas.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-CS4r9hi7.cjs → getNetworkProviderFromNetworkId-BJX2AMGR.cjs} +190 -19
- package/dist/getNetworkProviderFromNetworkId-BJX2AMGR.cjs.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-Bfg-NkNJ.native.esm.js → getNetworkProviderFromNetworkId-Bsv12Q6B.native.esm.js} +165 -10
- package/dist/getNetworkProviderFromNetworkId-Bsv12Q6B.native.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-pknqqhk1.esm.js → getNetworkProviderFromNetworkId-D3uwhdMN.esm.js} +166 -19
- package/dist/getNetworkProviderFromNetworkId-D3uwhdMN.esm.js.map +1 -0
- package/dist/{getSignedSessionId-cMGkmojJ.cjs → getSignedSessionId-BIZJGg61.cjs} +3 -3
- package/dist/{getSignedSessionId-cMGkmojJ.cjs.map → getSignedSessionId-BIZJGg61.cjs.map} +1 -1
- package/dist/{getSignedSessionId-CUw7LJ35.esm.js → getSignedSessionId-CnSAMO3P.esm.js} +3 -3
- package/dist/{getSignedSessionId-CUw7LJ35.esm.js.map → getSignedSessionId-CnSAMO3P.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-Cl3PEqa8.native.esm.js → getSignedSessionId-DXDi7NkE.native.esm.js} +3 -3
- package/dist/{getSignedSessionId-Cl3PEqa8.native.esm.js.map → getSignedSessionId-DXDi7NkE.native.esm.js.map} +1 -1
- package/dist/{getWalletProviderByKey-CP9Te5Sz.cjs → getWalletProviderByKey-C6aS7KgD.cjs} +2 -2
- package/dist/{getWalletProviderByKey-CP9Te5Sz.cjs.map → getWalletProviderByKey-C6aS7KgD.cjs.map} +1 -1
- package/dist/{getWalletProviderByKey-lQVfIGFi.esm.js → getWalletProviderByKey-Cr8m-Nax.esm.js} +2 -2
- package/dist/{getWalletProviderByKey-lQVfIGFi.esm.js.map → getWalletProviderByKey-Cr8m-Nax.esm.js.map} +1 -1
- package/dist/{getWalletProviderByKey-24co0tBE.native.esm.js → getWalletProviderByKey-DVk2t98D.native.esm.js} +2 -2
- package/dist/{getWalletProviderByKey-24co0tBE.native.esm.js.map → getWalletProviderByKey-DVk2t98D.native.esm.js.map} +1 -1
- package/dist/index.cjs +950 -111
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +940 -112
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +867 -111
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isDynamicWaasEnabled-BwP1oowd.cjs → isDynamicWaasEnabled-BawttOeb.cjs} +21 -9
- package/dist/isDynamicWaasEnabled-BawttOeb.cjs.map +1 -0
- package/dist/{isDynamicWaasEnabled-BYaqAOml.esm.js → isDynamicWaasEnabled-DDrg89y1.esm.js} +20 -8
- package/dist/isDynamicWaasEnabled-DDrg89y1.esm.js.map +1 -0
- package/dist/{isDynamicWaasEnabled-BXe0VyI4.native.esm.js → isDynamicWaasEnabled-Dj_sLoBO.native.esm.js} +20 -8
- package/dist/isDynamicWaasEnabled-Dj_sLoBO.native.esm.js.map +1 -0
- package/dist/{isMfaRequiredForAction-Btejc5g3.cjs → isMfaRequiredForAction-BuvyBN_r.cjs} +21 -6
- package/dist/isMfaRequiredForAction-BuvyBN_r.cjs.map +1 -0
- package/dist/{isMfaRequiredForAction-CqEcCTIe.esm.js → isMfaRequiredForAction-DTp4CZBt.esm.js} +21 -6
- package/dist/isMfaRequiredForAction-DTp4CZBt.esm.js.map +1 -0
- package/dist/{isMfaRequiredForAction-Demz9zlH.native.esm.js → isMfaRequiredForAction-EY-OQORc.native.esm.js} +3 -5
- package/dist/isMfaRequiredForAction-EY-OQORc.native.esm.js.map +1 -0
- package/dist/{isUserOnboardingComplete-C86NDY7I.cjs → isUserOnboardingComplete-CkyzRYrg.cjs} +14 -4
- package/dist/isUserOnboardingComplete-CkyzRYrg.cjs.map +1 -0
- package/dist/{isUserOnboardingComplete-CBrAH0ZF.esm.js → isUserOnboardingComplete-D3HrBYje.native.esm.js} +13 -3
- package/dist/isUserOnboardingComplete-D3HrBYje.native.esm.js.map +1 -0
- package/dist/{isUserOnboardingComplete-Cr-YTpcU.native.esm.js → isUserOnboardingComplete-Dy2Ygp0u.esm.js} +13 -3
- package/dist/isUserOnboardingComplete-Dy2Ygp0u.esm.js.map +1 -0
- package/dist/{migrateFromFireblocks-D-J6-gRo.native.esm.js → migrateFromFireblocks-B5qWGLCM.native.esm.js} +3 -3
- package/dist/{migrateFromFireblocks-D-J6-gRo.native.esm.js.map → migrateFromFireblocks-B5qWGLCM.native.esm.js.map} +1 -1
- package/dist/{migrateFromFireblocks-B_q8Oawb.cjs → migrateFromFireblocks-Dp-QA9hi.cjs} +3 -3
- package/dist/{migrateFromFireblocks-B_q8Oawb.cjs.map → migrateFromFireblocks-Dp-QA9hi.cjs.map} +1 -1
- package/dist/{migrateFromFireblocks-Bbx2wHZD.esm.js → migrateFromFireblocks-MAatsk_w.esm.js} +3 -3
- package/dist/{migrateFromFireblocks-Bbx2wHZD.esm.js.map → migrateFromFireblocks-MAatsk_w.esm.js.map} +1 -1
- package/dist/modules/apiClient/constants.d.ts +8 -0
- package/dist/modules/apiClient/constants.d.ts.map +1 -1
- package/dist/modules/apiClient/createApiClient.d.ts.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 +11 -2
- package/dist/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.d.ts.map +1 -1
- package/dist/modules/auth/isSignedIn/isSignedIn.d.ts +9 -0
- package/dist/modules/auth/isSignedIn/isSignedIn.d.ts.map +1 -1
- package/dist/modules/auth/logout/logout.d.ts +13 -0
- package/dist/modules/auth/logout/logout.d.ts.map +1 -1
- package/dist/modules/auth/logoutWithReason/logoutWithReason.d.ts.map +1 -1
- package/dist/modules/auth/mergeUserAccounts/index.d.ts +3 -0
- package/dist/modules/auth/mergeUserAccounts/index.d.ts.map +1 -0
- package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.d.ts +62 -0
- package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.d.ts.map +1 -0
- package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.types.d.ts +78 -0
- package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.types.d.ts.map +1 -0
- package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts +7 -1
- package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts +9 -1
- package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/authenticateWithSocial/authenticateWithSocial.d.ts +8 -0
- package/dist/modules/auth/social/oauth/authenticateWithSocial/authenticateWithSocial.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/clearSocialRedirectParams/clearSocialRedirectParams.d.ts +34 -0
- package/dist/modules/auth/social/oauth/clearSocialRedirectParams/clearSocialRedirectParams.d.ts.map +1 -0
- package/dist/modules/auth/social/oauth/clearSocialRedirectParams/index.d.ts +2 -0
- package/dist/modules/auth/social/oauth/clearSocialRedirectParams/index.d.ts.map +1 -0
- package/dist/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.d.ts +11 -0
- package/dist/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.d.ts +0 -1
- package/dist/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.d.ts +12 -0
- package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.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/signInWithSocialRedirect/signInWithSocialRedirect.d.ts +10 -0
- package/dist/modules/auth/social/oauth/signInWithSocialRedirect/signInWithSocialRedirect.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/CaptchaProviderEnum/CaptchaProviderEnum.d.ts +37 -0
- package/dist/modules/captcha/CaptchaProviderEnum/CaptchaProviderEnum.d.ts.map +1 -0
- package/dist/modules/captcha/getCaptchaSettings/getCaptchaSettings.d.ts +50 -0
- package/dist/modules/captcha/getCaptchaSettings/getCaptchaSettings.d.ts.map +1 -0
- package/dist/modules/captcha/getCaptchaSettings/getCaptchaSettings.types.d.ts +22 -0
- package/dist/modules/captcha/getCaptchaSettings/getCaptchaSettings.types.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/clientEvents/clientEvents.d.ts +34 -0
- package/dist/modules/clientEvents/clientEvents.d.ts.map +1 -1
- package/dist/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/clearDeviceRegistrationRedirectParams.d.ts +35 -0
- package/dist/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/clearDeviceRegistrationRedirectParams.d.ts.map +1 -0
- package/dist/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/index.d.ts +2 -0
- package/dist/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/index.d.ts.map +1 -0
- package/dist/modules/deviceRegistration/completeDeviceRegistration/completeDeviceRegistration.d.ts +8 -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.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.d.ts +10 -3
- package/dist/modules/flow/cancelFlow/cancelFlow.d.ts.map +1 -1
- 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/getFlow/getFlow.d.ts +11 -3
- package/dist/modules/flow/getFlow/getFlow.d.ts.map +1 -1
- package/dist/modules/flow/getFlowQuote/getFlowQuote.d.ts +16 -3
- package/dist/modules/flow/getFlowQuote/getFlowQuote.d.ts.map +1 -1
- 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/initializeClient/initializeClient.d.ts +16 -0
- package/dist/modules/initializeClient/initializeClient.d.ts.map +1 -1
- package/dist/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.d.ts +12 -2
- package/dist/modules/initializeClient/waitForClientInitialized/waitForClientInitialized.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 +14 -1
- package/dist/modules/otp/sendEmailOTP/sendEmailOTP.d.ts.map +1 -1
- package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts +12 -1
- package/dist/modules/otp/sendSmsOTP/sendSmsOTP.d.ts.map +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTP.d.ts +33 -2
- package/dist/modules/otp/verifyOTP/verifyOTP.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/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts +8 -0
- package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts.map +1 -1
- package/dist/modules/user/checkUserScopes/checkUserScopes.d.ts +28 -0
- package/dist/modules/user/checkUserScopes/checkUserScopes.d.ts.map +1 -0
- package/dist/modules/user/checkUserScopes/index.d.ts +2 -0
- package/dist/modules/user/checkUserScopes/index.d.ts.map +1 -0
- package/dist/modules/user/deleteUser/deleteUser.d.ts +8 -0
- package/dist/modules/user/deleteUser/deleteUser.d.ts.map +1 -1
- package/dist/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.d.ts +9 -1
- package/dist/modules/user/isUserOnboardingComplete/isUserOnboardingComplete.d.ts.map +1 -1
- package/dist/modules/user/refreshAuth/refreshAuth.d.ts +17 -4
- package/dist/modules/user/refreshAuth/refreshAuth.d.ts.map +1 -1
- package/dist/modules/user/refreshUser/refreshUser.d.ts +16 -3
- package/dist/modules/user/refreshUser/refreshUser.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/user/user.types.d.ts +9 -1
- package/dist/modules/user/user.types.d.ts.map +1 -1
- package/dist/modules/waas/getEmbeddedWalletsRequiringUpgrade/getEmbeddedWalletsRequiringUpgrade.d.ts +30 -0
- package/dist/modules/waas/getEmbeddedWalletsRequiringUpgrade/getEmbeddedWalletsRequiringUpgrade.d.ts.map +1 -0
- package/dist/modules/waas/getEmbeddedWalletsRequiringUpgrade/index.d.ts +2 -0
- package/dist/modules/waas/getEmbeddedWalletsRequiringUpgrade/index.d.ts.map +1 -0
- package/dist/modules/waas/hasEmbeddedWalletsRequiringUpgrade/hasEmbeddedWalletsRequiringUpgrade.d.ts +23 -0
- package/dist/modules/waas/hasEmbeddedWalletsRequiringUpgrade/hasEmbeddedWalletsRequiringUpgrade.d.ts.map +1 -0
- package/dist/modules/waas/hasEmbeddedWalletsRequiringUpgrade/index.d.ts +2 -0
- package/dist/modules/waas/hasEmbeddedWalletsRequiringUpgrade/index.d.ts.map +1 -0
- package/dist/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.d.ts +11 -1
- package/dist/modules/wallets/connectAndVerifyWithWalletProvider/connectAndVerifyWithWalletProvider.d.ts.map +1 -1
- package/dist/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.d.ts +11 -3
- package/dist/modules/wallets/connectWithWalletProvider/connectWithWalletProvider.d.ts.map +1 -1
- package/dist/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.d.ts +16 -3
- package/dist/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/getConnectedAddresses/getConnectedAddresses.d.ts +9 -1
- package/dist/modules/wallets/getConnectedAddresses/getConnectedAddresses.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletAccounts/getWalletAccounts.d.ts +11 -1
- package/dist/modules/wallets/getWalletAccounts/getWalletAccounts.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/isAnyWalletAccountConnected/isAnyWalletAccountConnected.d.ts +9 -0
- package/dist/modules/wallets/isAnyWalletAccountConnected/isAnyWalletAccountConnected.d.ts.map +1 -1
- package/dist/modules/wallets/isWalletAccountVerified/isWalletAccountVerified.d.ts +10 -2
- package/dist/modules/wallets/isWalletAccountVerified/isWalletAccountVerified.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getBalance/getBalance.d.ts +8 -0
- package/dist/modules/wallets/networks/getBalance/getBalance.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getNativeBalance/getNativeBalance.d.ts +8 -0
- package/dist/modules/wallets/networks/getNativeBalance/getNativeBalance.d.ts.map +1 -1
- package/dist/modules/wallets/networks/switchActiveNetwork/switchActiveNetwork.d.ts +11 -1
- package/dist/modules/wallets/networks/switchActiveNetwork/switchActiveNetwork.d.ts.map +1 -1
- package/dist/modules/wallets/proveWalletAccountOwnership/proveWalletAccountOwnership.d.ts +10 -0
- package/dist/modules/wallets/proveWalletAccountOwnership/proveWalletAccountOwnership.d.ts.map +1 -1
- package/dist/modules/wallets/removeWalletAccount/removeWalletAccount.d.ts +9 -1
- package/dist/modules/wallets/removeWalletAccount/removeWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/selectedWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts +24 -0
- package/dist/modules/wallets/selectedWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts.map +1 -0
- package/dist/modules/wallets/selectedWalletAccount/getPrimaryWalletAccount/index.d.ts.map +1 -0
- package/dist/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/getSelectedWalletAccount.d.ts +30 -0
- package/dist/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/getSelectedWalletAccount.d.ts.map +1 -0
- package/dist/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/index.d.ts +2 -0
- package/dist/modules/wallets/selectedWalletAccount/getSelectedWalletAccount/index.d.ts.map +1 -0
- package/dist/modules/wallets/selectedWalletAccount/selectPrimaryWalletAccount/index.d.ts.map +1 -0
- package/dist/modules/wallets/selectedWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts +28 -0
- package/dist/modules/wallets/selectedWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts.map +1 -0
- package/dist/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/index.d.ts +2 -0
- package/dist/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/index.d.ts.map +1 -0
- package/dist/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/setSelectedWalletAccount.d.ts +34 -0
- package/dist/modules/wallets/selectedWalletAccount/setSelectedWalletAccount/setSelectedWalletAccount.d.ts.map +1 -0
- package/dist/modules/wallets/signMessage/signMessage.d.ts +12 -1
- package/dist/modules/wallets/signMessage/signMessage.d.ts.map +1 -1
- package/dist/modules/wallets/transferAmount/transferAmount.d.ts +13 -2
- package/dist/modules/wallets/transferAmount/transferAmount.d.ts.map +1 -1
- package/dist/modules/wallets/transferWalletAccount/transferWalletAccount.d.ts +10 -1
- package/dist/modules/wallets/transferWalletAccount/transferWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/utils/getWalletAccountFromAddress/getWalletAccountFromAddress.d.ts +11 -1
- package/dist/modules/wallets/utils/getWalletAccountFromAddress/getWalletAccountFromAddress.d.ts.map +1 -1
- package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts +3 -0
- package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts.map +1 -1
- package/dist/modules/wallets/verifyWalletAccount/verifyWalletAccount.d.ts +12 -1
- package/dist/modules/wallets/verifyWalletAccount/verifyWalletAccount.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-D1w-Aw9P.native.esm.js → updateAuthFromVerifyResponse-DFjqCSu2.native.esm.js} +235 -159
- package/dist/updateAuthFromVerifyResponse-DFjqCSu2.native.esm.js.map +1 -0
- package/dist/{updateAuthFromVerifyResponse-azIi_3FB.esm.js → updateAuthFromVerifyResponse-_oYRLK_w.esm.js} +235 -159
- package/dist/updateAuthFromVerifyResponse-_oYRLK_w.esm.js.map +1 -0
- package/dist/{updateAuthFromVerifyResponse-CElYpi97.cjs → updateAuthFromVerifyResponse-pgYXvDvj.cjs} +241 -159
- package/dist/updateAuthFromVerifyResponse-pgYXvDvj.cjs.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 +72 -5
- package/dist/waas.cjs.map +1 -1
- package/dist/waas.esm.js +70 -5
- package/dist/waas.esm.js.map +1 -1
- package/dist/waas.native.esm.js +70 -5
- package/dist/waas.native.esm.js.map +1 -1
- 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-Bfg-NkNJ.native.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-CS4r9hi7.cjs.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-pknqqhk1.esm.js.map +0 -1
- package/dist/isDynamicWaasEnabled-BXe0VyI4.native.esm.js.map +0 -1
- package/dist/isDynamicWaasEnabled-BYaqAOml.esm.js.map +0 -1
- package/dist/isDynamicWaasEnabled-BwP1oowd.cjs.map +0 -1
- package/dist/isMfaRequiredForAction-Btejc5g3.cjs.map +0 -1
- package/dist/isMfaRequiredForAction-CqEcCTIe.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-Demz9zlH.native.esm.js.map +0 -1
- package/dist/isUserOnboardingComplete-C86NDY7I.cjs.map +0 -1
- package/dist/isUserOnboardingComplete-CBrAH0ZF.esm.js.map +0 -1
- package/dist/isUserOnboardingComplete-Cr-YTpcU.native.esm.js.map +0 -1
- package/dist/modules/wallets/primaryWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts +0 -10
- package/dist/modules/wallets/primaryWalletAccount/getPrimaryWalletAccount/getPrimaryWalletAccount.d.ts.map +0 -1
- package/dist/modules/wallets/primaryWalletAccount/getPrimaryWalletAccount/index.d.ts.map +0 -1
- package/dist/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/index.d.ts.map +0 -1
- package/dist/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts +0 -12
- package/dist/modules/wallets/primaryWalletAccount/selectPrimaryWalletAccount/selectPrimaryWalletAccount.d.ts.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-CElYpi97.cjs.map +0 -1
- package/dist/updateAuthFromVerifyResponse-D1w-Aw9P.native.esm.js.map +0 -1
- package/dist/updateAuthFromVerifyResponse-azIi_3FB.esm.js.map +0 -1
- /package/dist/modules/wallets/{primaryWalletAccount → selectedWalletAccount}/getPrimaryWalletAccount/index.d.ts +0 -0
- /package/dist/modules/wallets/{primaryWalletAccount → selectedWalletAccount}/selectPrimaryWalletAccount/index.d.ts +0 -0
|
@@ -8,11 +8,19 @@ export type SignInWithPasskeyParams = {
|
|
|
8
8
|
* credential, providing passwordless authentication using biometrics or
|
|
9
9
|
* security keys.
|
|
10
10
|
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const response = await signInWithPasskey();
|
|
14
|
+
* console.log('Signed in:', response.user.email);
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @param [params.relatedOriginRpId] - Optional relying party ID for cross-origin authentication.
|
|
11
18
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
12
19
|
* @returns A promise that resolves to the authentication response.
|
|
13
20
|
* @throws NoWebAuthNSupportError If WebAuthn is not supported by the browser.
|
|
21
|
+
* @see registerPasskey
|
|
22
|
+
* @see getPasskeys
|
|
14
23
|
* @instrumented
|
|
15
|
-
* @redact-params
|
|
16
24
|
*/
|
|
17
25
|
export declare const signInWithPasskey: ({ relatedOriginRpId }?: SignInWithPasskeyParams, client?: import("../../../../exports").DynamicClient) => Promise<import("@dynamic-labs/sdk-api-core").VerifyResponse>;
|
|
18
26
|
//# sourceMappingURL=signInWithPasskey.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signInWithPasskey.d.ts","sourceRoot":"","sources":["../../../../../src/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,uBAAuB,GAAG;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"signInWithPasskey.d.ts","sourceRoot":"","sources":["../../../../../src/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,uBAAuB,GAAG;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,iBAAiB,2BACL,uBAAuB,uHA0B/C,CAAC"}
|
|
@@ -7,6 +7,14 @@ type AuthenticateWithSocialParams = {
|
|
|
7
7
|
* @deprecated Renamed to {@link signInWithSocialRedirect}. This alias will be
|
|
8
8
|
* removed in a future major version.
|
|
9
9
|
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* // Prefer signInWithSocialRedirect instead
|
|
13
|
+
* await signInWithSocialRedirect({ provider: 'google', redirectUrl: window.location.href });
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @see signInWithSocialRedirect
|
|
17
|
+
* @see completeSocialRedirect
|
|
10
18
|
* @instrumented
|
|
11
19
|
* @noHook Deprecated alias that is not exposed as a React hook.
|
|
12
20
|
*/
|
package/dist/modules/auth/social/oauth/authenticateWithSocial/authenticateWithSocial.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authenticateWithSocial.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/authenticateWithSocial/authenticateWithSocial.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGzD,KAAK,4BAA4B,GAAG;IAClC,QAAQ,EAAE,cAAc,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"authenticateWithSocial.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/authenticateWithSocial/authenticateWithSocial.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGzD,KAAK,4BAA4B,GAAG;IAClC,QAAQ,EAAE,cAAc,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,WACzB,4BAA4B,2EAEO,CAAC"}
|
package/dist/modules/auth/social/oauth/clearSocialRedirectParams/clearSocialRedirectParams.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Removes the social OAuth redirect parameters that `signInWithSocialRedirect`
|
|
3
|
+
* appends to the return URL from the browser's current URL, leaving every other
|
|
4
|
+
* query parameter, the path, and the hash untouched.
|
|
5
|
+
*
|
|
6
|
+
* Call this once you have finished `completeSocialRedirect` so a page refresh
|
|
7
|
+
* doesn't re-trigger the redirect flow. Unlike clearing the whole query
|
|
8
|
+
* string, this preserves any of your own parameters on the callback URL.
|
|
9
|
+
*
|
|
10
|
+
* This reads and rewrites `window.location`, so it can only run in the
|
|
11
|
+
* browser. Calling it during server-side rendering (no `window`) throws
|
|
12
|
+
* `UnavailableInServerSideError`.
|
|
13
|
+
*
|
|
14
|
+
* @returns Nothing. The current URL is rewritten in place via
|
|
15
|
+
* `window.history.replaceState`.
|
|
16
|
+
*
|
|
17
|
+
* @throws {UnavailableInServerSideError} When called without a `window`
|
|
18
|
+
* (e.g. during server-side rendering).
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* await completeSocialRedirect({ url: new URL(window.location.href) });
|
|
23
|
+
* clearSocialRedirectParams();
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @see {@link completeSocialRedirect} to finish the redirect sign-in before
|
|
27
|
+
* clearing the parameters.
|
|
28
|
+
* @see {@link detectSocialRedirectUrl} to check whether the current URL is a
|
|
29
|
+
* social OAuth callback.
|
|
30
|
+
*
|
|
31
|
+
* @notInstrumented
|
|
32
|
+
*/
|
|
33
|
+
export declare const clearSocialRedirectParams: () => void;
|
|
34
|
+
//# sourceMappingURL=clearSocialRedirectParams.d.ts.map
|
package/dist/modules/auth/social/oauth/clearSocialRedirectParams/clearSocialRedirectParams.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clearSocialRedirectParams.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/clearSocialRedirectParams/clearSocialRedirectParams.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,yBAAyB,QAAO,IAY5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/clearSocialRedirectParams/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -8,12 +8,23 @@ export type { CompleteSocialRedirectParams } from './completeSocialRedirect.type
|
|
|
8
8
|
* authenticating (or linking) the user with the social provider. This is the
|
|
9
9
|
* final step after `signInWithSocialRedirect` + `detectSocialRedirectUrl`.
|
|
10
10
|
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const redirectUrl = detectSocialRedirectUrl();
|
|
14
|
+
* if (redirectUrl) {
|
|
15
|
+
* const user = await completeSocialRedirect({ url: redirectUrl });
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
11
19
|
* @param params.url - The callback URL containing OAuth response parameters.
|
|
12
20
|
* @param [params.requestedScopes] - Optional scopes to request an elevated access token when verifying (linking) a social account.
|
|
13
21
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
14
22
|
* @returns A promise that resolves to the authenticated user or null.
|
|
15
23
|
* @throws MissingSocialUrlParamError If required OAuth parameters are missing.
|
|
16
24
|
* @throws InvalidRedirectStorageStateError If the stored state doesn't match.
|
|
25
|
+
* @see signInWithSocialRedirect
|
|
26
|
+
* @see detectSocialRedirectUrl
|
|
27
|
+
* @see clearSocialRedirectParams
|
|
17
28
|
* @instrumented
|
|
18
29
|
*/
|
|
19
30
|
export declare const completeSocialRedirect: ({ url, requestedScopes }: CompleteSocialRedirectParams, client?: import("../../../../../exports").DynamicClient) => Promise<User | null>;
|
package/dist/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completeSocialRedirect.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAExD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAEnF,YAAY,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAEnF
|
|
1
|
+
{"version":3,"file":"completeSocialRedirect.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAExD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAEnF,YAAY,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAEnF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,sBAAsB,6BACP,4BAA4B,8DAErD,OAAO,CAAC,IAAI,GAAG,IAAI,CACmC,CAAC"}
|
|
@@ -11,7 +11,6 @@ export type { DetectSocialRedirectUrlParams } from './detectSocialRedirectUrl.ty
|
|
|
11
11
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
12
12
|
* @returns A promise that resolves to true if the URL is an OAuth redirect, false otherwise.
|
|
13
13
|
* @notInstrumented
|
|
14
|
-
* @noHook Low-level redirect-detection primitive that is not exposed as a React hook.
|
|
15
14
|
*/
|
|
16
15
|
export declare const detectSocialRedirectUrl: ({ url }: DetectSocialRedirectUrlParams, client?: import("../../../../../exports").DynamicClient) => Promise<boolean>;
|
|
17
16
|
//# sourceMappingURL=detectSocialRedirectUrl.d.ts.map
|
package/dist/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detectSocialRedirectUrl.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF,YAAY,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF
|
|
1
|
+
{"version":3,"file":"detectSocialRedirectUrl.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/detectSocialRedirectUrl/detectSocialRedirectUrl.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF,YAAY,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB,YACzB,6BAA6B,8DAErC,OAAO,CAAC,OAAO,CAkBjB,CAAC"}
|
|
@@ -9,7 +9,19 @@ export type { SignInWithSocialPopUpParams } from './signInWithSocialPopUp.types'
|
|
|
9
9
|
* {@link signInWithSocialRedirect} + {@link completeSocialRedirect} instead —
|
|
10
10
|
* the browser already owns the tab so there is no popup to open.
|
|
11
11
|
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* // React Native only
|
|
15
|
+
* const user = await signInWithSocialPopUp({ provider: 'google' });
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @param params.provider - The social provider to authenticate with.
|
|
19
|
+
* @param [params.requestedScopes] - Optional scopes to request from the provider.
|
|
20
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
21
|
+
* @returns A promise that resolves to the authenticated user or null.
|
|
12
22
|
* @throws MethodNotImplementedError Always on web.
|
|
23
|
+
* @see signInWithSocialRedirect
|
|
24
|
+
* @see completeSocialRedirect
|
|
13
25
|
* @instrumented
|
|
14
26
|
*/
|
|
15
27
|
export declare const signInWithSocialPopUp: ({ provider, requestedScopes }: SignInWithSocialPopUpParams, client?: import("../../../../../exports").DynamicClient) => Promise<User | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signInWithSocialPopUp.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF,YAAY,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF
|
|
1
|
+
{"version":3,"file":"signInWithSocialPopUp.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF,YAAY,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,qBAAqB,kCAED,2BAA2B,8DAGzD,OAAO,CAAC,IAAI,GAAG,IAAI,CAIrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOAuthBaseUrl.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/getOAuthBaseUrl/getOAuthBaseUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAgB,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"getOAuthBaseUrl.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/social/oauth/signInWithSocialRedirect/buildOAuthUrl/getOAuthBaseUrl/getOAuthBaseUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAgB,MAAM,4BAA4B,CAAC;AAqCzE;GACG;AAEH,eAAO,MAAM,eAAe,aAAc,QAAQ,KAAG,GAYpD,CAAC"}
|
package/dist/modules/auth/social/oauth/signInWithSocialRedirect/signInWithSocialRedirect.d.ts
CHANGED
|
@@ -10,9 +10,19 @@ export type { SignInWithSocialRedirectParams } from './signInWithSocialRedirect.
|
|
|
10
10
|
* back because of this flow, then call `completeSocialRedirect` to finish
|
|
11
11
|
* the social authentication.
|
|
12
12
|
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* await signInWithSocialRedirect({
|
|
16
|
+
* provider: 'google',
|
|
17
|
+
* redirectUrl: window.location.href,
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
13
21
|
* @param params.provider - The social provider to authenticate with (e.g., 'google', 'github').
|
|
14
22
|
* @param params.redirectUrl - The URL to redirect back to after authentication.
|
|
15
23
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
24
|
+
* @see completeSocialRedirect
|
|
25
|
+
* @see detectSocialRedirectUrl
|
|
16
26
|
* @instrumented
|
|
17
27
|
*/
|
|
18
28
|
export declare const signInWithSocialRedirect: ({ provider, redirectUrl }: SignInWithSocialRedirectParams, client?: import("../../../../../exports").DynamicClient) => Promise<void>;
|
package/dist/modules/auth/social/oauth/signInWithSocialRedirect/signInWithSocialRedirect.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signInWithSocialRedirect.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/signInWithSocialRedirect/signInWithSocialRedirect.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAEvF,YAAY,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAEvF
|
|
1
|
+
{"version":3,"file":"signInWithSocialRedirect.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/signInWithSocialRedirect/signInWithSocialRedirect.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAEvF,YAAY,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAEvF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,wBAAwB,8BACR,8BAA8B,2EA4B1D,CAAC"}
|
|
@@ -15,7 +15,6 @@ type UnlinkSocialAccountParams = {
|
|
|
15
15
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
16
16
|
* @returns A promise that resolves to the verify response.
|
|
17
17
|
* @instrumented
|
|
18
|
-
* @redact-params
|
|
19
18
|
*/
|
|
20
19
|
export declare const unlinkSocialAccount: ({ verifiedCredentialId }: UnlinkSocialAccountParams, client?: import("../../../../../exports").DynamicClient) => Promise<VerifyResponse>;
|
|
21
20
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unlinkSocialAccount.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EAEpB,MAAM,4BAA4B,CAAC;AASpC,KAAK,yBAAyB,GAAG;IAC/B,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"unlinkSocialAccount.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EAEpB,MAAM,4BAA4B,CAAC;AASpC,KAAK,yBAAyB,GAAG;IAC/B,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,6BACJ,yBAAyB,8DAElD,OAAO,CAAC,cAAc,CAmCxB,CAAC"}
|
package/dist/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateAuthFromVerifyResponse.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAIjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"updateAuthFromVerifyResponse.d.ts","sourceRoot":"","sources":["../../../../src/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAIjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAU3D,KAAK,kCAAkC,GAAG;IACxC,QAAQ,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF,uBAAuB;AACvB,eAAO,MAAM,4BAA4B,iBACzB,kCAAkC,UACxC,aAAa,SAqEtB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { CaptchaProviderEnum as SdkCaptchaProviderEnum } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
/**
|
|
3
|
+
* The captcha providers Dynamic can be configured to use.
|
|
4
|
+
*
|
|
5
|
+
* Re-declared locally (instead of a bare re-export from `sdk-api-core`) so the
|
|
6
|
+
* value ships with SDK-level documentation. Branch on the provider returned by
|
|
7
|
+
* `getCaptchaSettings` to decide which captcha widget to render.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const settings = getCaptchaSettings();
|
|
12
|
+
* if (settings?.provider === CaptchaProviderEnum.Hcaptcha) {
|
|
13
|
+
* renderHcaptcha({ siteKey: settings.siteKey });
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @see getCaptchaSettings
|
|
18
|
+
* @see isCaptchaRequired
|
|
19
|
+
*/
|
|
20
|
+
export declare const CaptchaProviderEnum: typeof SdkCaptchaProviderEnum;
|
|
21
|
+
/**
|
|
22
|
+
* The captcha providers Dynamic can be configured to use.
|
|
23
|
+
*
|
|
24
|
+
* Re-declared locally (instead of a bare re-export from `sdk-api-core`) so the
|
|
25
|
+
* type ships with SDK-level documentation. Use it to type the provider returned
|
|
26
|
+
* by `getCaptchaSettings`.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const provider: CaptchaProviderEnum = CaptchaProviderEnum.Hcaptcha;
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @see getCaptchaSettings
|
|
34
|
+
* @see isCaptchaRequired
|
|
35
|
+
*/
|
|
36
|
+
export type CaptchaProviderEnum = SdkCaptchaProviderEnum;
|
|
37
|
+
//# sourceMappingURL=CaptchaProviderEnum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CaptchaProviderEnum.d.ts","sourceRoot":"","sources":["../../../../src/modules/captcha/CaptchaProviderEnum/CaptchaProviderEnum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,IAAI,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAE3F;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,mBAAmB,+BAAyB,CAAC;AAE1D;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { CaptchaProviderEnum as CaptchaProviderEnumCore } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
import type { CaptchaSettingsResult } from './getCaptchaSettings.types';
|
|
3
|
+
/**
|
|
4
|
+
* The captcha providers Dynamic can be configured to use for an environment.
|
|
5
|
+
* Use it to branch on which captcha widget to render for the active provider.
|
|
6
|
+
*
|
|
7
|
+
* Redeclared locally (rather than re-exported directly from the generated
|
|
8
|
+
* `sdk-api-core`) so the public client entry point owns its own documented,
|
|
9
|
+
* stable surface for this token.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const settings = getCaptchaSettings();
|
|
14
|
+
* if (settings?.provider === CaptchaProviderEnum.Hcaptcha) {
|
|
15
|
+
* renderHcaptcha(settings.siteKey);
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
* @see getCaptchaSettings
|
|
19
|
+
* @see CaptchaSettingsResult
|
|
20
|
+
*/
|
|
21
|
+
export declare const CaptchaProviderEnum: typeof CaptchaProviderEnumCore;
|
|
22
|
+
/**
|
|
23
|
+
* The captcha providers Dynamic can be configured to use for an environment.
|
|
24
|
+
* Use it to type the `provider` returned by {@link getCaptchaSettings}.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const provider: CaptchaProviderEnum = CaptchaProviderEnum.Hcaptcha;
|
|
29
|
+
* ```
|
|
30
|
+
* @see getCaptchaSettings
|
|
31
|
+
* @see CaptchaSettingsResult
|
|
32
|
+
*/
|
|
33
|
+
export type CaptchaProviderEnum = CaptchaProviderEnumCore;
|
|
34
|
+
/**
|
|
35
|
+
* Returns the active captcha provider and site key, or undefined if captcha is not enabled.
|
|
36
|
+
* Use this to determine which captcha widget to render and which site key to pass it.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const settings = getCaptchaSettings();
|
|
41
|
+
* if (settings) renderCaptcha(settings.provider, settings.siteKey);
|
|
42
|
+
* ```
|
|
43
|
+
* @see CaptchaSettingsResult
|
|
44
|
+
* @see CaptchaProviderEnum
|
|
45
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
46
|
+
* @returns The active captcha provider and site key, or undefined when captcha is not enabled.
|
|
47
|
+
* @notInstrumented
|
|
48
|
+
*/
|
|
49
|
+
export declare const getCaptchaSettings: (client?: import("../../../exports").DynamicClient) => CaptchaSettingsResult | undefined;
|
|
50
|
+
//# sourceMappingURL=getCaptchaSettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCaptchaSettings.d.ts","sourceRoot":"","sources":["../../../../src/modules/captcha/getCaptchaSettings/getCaptchaSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAG5F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,mBAAmB,gCAA0B,CAAC;AAE3D;;;;;;;;;;GAUG;AACH,MAAM,MAAM,mBAAmB,GAAG,uBAAuB,CAAC;AAE1D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,yDAE5B,qBAAqB,GAAG,SA2B1B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CaptchaProviderEnum } from './getCaptchaSettings';
|
|
2
|
+
/**
|
|
3
|
+
* The resolved captcha configuration for the current environment: the active
|
|
4
|
+
* `provider` and the `siteKey` to hand the captcha widget (`undefined` when the
|
|
5
|
+
* provider has no site key configured).
|
|
6
|
+
*
|
|
7
|
+
* Returned by {@link getCaptchaSettings}; `undefined` overall means captcha is
|
|
8
|
+
* not enabled.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const settings: CaptchaSettingsResult | undefined = getCaptchaSettings();
|
|
13
|
+
* if (settings) renderCaptcha(settings.provider, settings.siteKey);
|
|
14
|
+
* ```
|
|
15
|
+
* @see getCaptchaSettings
|
|
16
|
+
* @see CaptchaProviderEnum
|
|
17
|
+
*/
|
|
18
|
+
export type CaptchaSettingsResult = {
|
|
19
|
+
provider: CaptchaProviderEnum;
|
|
20
|
+
siteKey: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=getCaptchaSettings.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCaptchaSettings.types.d.ts","sourceRoot":"","sources":["../../../../src/modules/captcha/getCaptchaSettings/getCaptchaSettings.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/captcha/getCaptchaSettings/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isCaptchaRequired.d.ts","sourceRoot":"","sources":["../../../../src/modules/captcha/isCaptchaRequired/isCaptchaRequired.ts"],"names":[],"mappings":"AAGA,uBAAuB;AACvB,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"isCaptchaRequired.d.ts","sourceRoot":"","sources":["../../../../src/modules/captcha/isCaptchaRequired/isCaptchaRequired.ts"],"names":[],"mappings":"AAGA,uBAAuB;AACvB,eAAO,MAAM,iBAAiB,gEAS7B,CAAC"}
|
|
@@ -7,7 +7,6 @@ type SetCaptchaTokenProps = {
|
|
|
7
7
|
* @param params.captchaToken - The captcha token to set.
|
|
8
8
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
9
9
|
* @instrumented
|
|
10
|
-
* @redact-params
|
|
11
10
|
*/
|
|
12
11
|
export declare const setCaptchaToken: ({ captchaToken }: SetCaptchaTokenProps, client?: import("../../../exports").DynamicClient) => void;
|
|
13
12
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setCaptchaToken.d.ts","sourceRoot":"","sources":["../../../../src/modules/captcha/setCaptchaToken/setCaptchaToken.ts"],"names":[],"mappings":"AAGA,KAAK,oBAAoB,GAAG;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"setCaptchaToken.d.ts","sourceRoot":"","sources":["../../../../src/modules/captcha/setCaptchaToken/setCaptchaToken.ts"],"names":[],"mappings":"AAGA,KAAK,oBAAoB,GAAG;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,qBACR,oBAAoB,4DAQvC,CAAC"}
|
|
@@ -6,10 +6,25 @@ import type { DynamicEvents, EmitEventParams, OffEventParams, OnEventParams, Onc
|
|
|
6
6
|
* This function allows you to listen for various events emitted by the Dynamic client,
|
|
7
7
|
* such as authentication state changes, wallet connections, and more.
|
|
8
8
|
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const unsubscribe = onEvent({
|
|
12
|
+
* event: 'walletAdded',
|
|
13
|
+
* listener: ({ walletAccount }) => {
|
|
14
|
+
* console.log('Wallet added:', walletAccount.address);
|
|
15
|
+
* },
|
|
16
|
+
* });
|
|
17
|
+
*
|
|
18
|
+
* // Later: clean up
|
|
19
|
+
* unsubscribe();
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
9
22
|
* @param params.event - The event name to listen for.
|
|
10
23
|
* @param params.listener - The callback function to execute when the event is fired.
|
|
11
24
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
12
25
|
* @returns A function that can be called to remove the listener.
|
|
26
|
+
* @see offEvent
|
|
27
|
+
* @see onceEvent
|
|
13
28
|
* @notInstrumented
|
|
14
29
|
* @hook Event listeners are error-prone to wire up by hand with useEffect.
|
|
15
30
|
*/
|
|
@@ -20,9 +35,16 @@ export declare const onEvent: <E extends keyof DynamicEvents>({ event, listener
|
|
|
20
35
|
* This function unsubscribes a previously registered event listener
|
|
21
36
|
* from the specified Dynamic client event.
|
|
22
37
|
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* offEvent({ event: 'walletAdded', listener: myListener });
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
23
43
|
* @param params.event - The event name to remove the listener from.
|
|
24
44
|
* @param params.listener - The callback function to remove.
|
|
25
45
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
46
|
+
* @see onEvent
|
|
47
|
+
* @see onceEvent
|
|
26
48
|
* @notInstrumented
|
|
27
49
|
*/
|
|
28
50
|
export declare const offEvent: <E extends keyof DynamicEvents>({ event, listener }: OffEventParams<E>, client?: DynamicClient) => void;
|
|
@@ -32,10 +54,22 @@ export declare const offEvent: <E extends keyof DynamicEvents>({ event, listener
|
|
|
32
54
|
* This function listens for an event that will automatically remove itself
|
|
33
55
|
* after being triggered once.
|
|
34
56
|
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* onceEvent({
|
|
60
|
+
* event: 'logout',
|
|
61
|
+
* listener: () => {
|
|
62
|
+
* console.log('User logged out');
|
|
63
|
+
* },
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
35
67
|
* @param params.event - The event name to listen for.
|
|
36
68
|
* @param params.listener - The callback function to execute when the event is fired.
|
|
37
69
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
38
70
|
* @returns A function that can be called to remove the listener before it fires.
|
|
71
|
+
* @see onEvent
|
|
72
|
+
* @see offEvent
|
|
39
73
|
* @notInstrumented
|
|
40
74
|
* @hook Event listeners are error-prone to wire up by hand with useEffect.
|
|
41
75
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientEvents.d.ts","sourceRoot":"","sources":["../../../src/modules/clientEvents/clientEvents.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,cAAc,EACd,aAAa,EACb,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAE9B
|
|
1
|
+
{"version":3,"file":"clientEvents.d.ts","sourceRoot":"","sources":["../../../src/modules/clientEvents/clientEvents.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,cAAc,EACd,aAAa,EACb,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,MAAM,aAAa,uBAC9B,aAAa,CAAC,CAAC,CAAC,uCAUtC,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AAEH,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,MAAM,aAAa,uBAC/B,cAAc,CAAC,CAAC,CAAC,iCAMvC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,MAAM,aAAa,uBAChC,eAAe,CAAC,CAAC,CAAC,uCAUxC,CAAC;AAEF;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,MAAM,aAAa,mBACpC,eAAe,CAAC,CAAC,CAAC,UAC3B,aAAa,SAKtB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Removes the device registration redirect parameters that the device
|
|
3
|
+
* registration email link appends to the return URL from the browser's current
|
|
4
|
+
* URL, leaving every other query parameter, the path, and the hash untouched.
|
|
5
|
+
*
|
|
6
|
+
* Call this once you have finished `completeDeviceRegistration` so a page
|
|
7
|
+
* refresh doesn't re-trigger the registration flow. Unlike clearing the whole
|
|
8
|
+
* query string, this preserves any of your own parameters on the callback URL.
|
|
9
|
+
*
|
|
10
|
+
* This reads and rewrites `window.location`, so it can only run in the
|
|
11
|
+
* browser. Calling it during server-side rendering (no `window`) throws
|
|
12
|
+
* `UnavailableInServerSideError`.
|
|
13
|
+
*
|
|
14
|
+
* @returns Nothing. The current URL is rewritten in place via
|
|
15
|
+
* `window.history.replaceState`.
|
|
16
|
+
*
|
|
17
|
+
* @throws {UnavailableInServerSideError} When called without a `window`
|
|
18
|
+
* (e.g. during server-side rendering).
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const deviceToken = getDeviceRegistrationTokenFromUrl({ url: window.location.href });
|
|
23
|
+
* await completeDeviceRegistration({ deviceToken });
|
|
24
|
+
* clearDeviceRegistrationRedirectParams();
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @see {@link completeDeviceRegistration} to finish the registration before
|
|
28
|
+
* clearing the parameters.
|
|
29
|
+
* @see {@link detectDeviceRegistrationRedirect} to check whether the current
|
|
30
|
+
* URL is a device registration callback.
|
|
31
|
+
*
|
|
32
|
+
* @notInstrumented
|
|
33
|
+
*/
|
|
34
|
+
export declare const clearDeviceRegistrationRedirectParams: () => void;
|
|
35
|
+
//# sourceMappingURL=clearDeviceRegistrationRedirectParams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clearDeviceRegistrationRedirectParams.d.ts","sourceRoot":"","sources":["../../../../src/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/clearDeviceRegistrationRedirectParams.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,qCAAqC,QAAO,IAcxD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/deviceRegistration/clearDeviceRegistrationRedirectParams/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC"}
|
package/dist/modules/deviceRegistration/completeDeviceRegistration/completeDeviceRegistration.d.ts
CHANGED
|
@@ -2,7 +2,14 @@ import type { VerifyResponse } from '@dynamic-labs/sdk-api-core';
|
|
|
2
2
|
type CompleteDeviceRegistrationParams = {
|
|
3
3
|
deviceToken: string;
|
|
4
4
|
};
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Completes device registration using the token from a device registration
|
|
7
|
+
* redirect, authenticating the current device against the user's account.
|
|
8
|
+
*
|
|
9
|
+
* @see detectDeviceRegistrationRedirect
|
|
10
|
+
* @see clearDeviceRegistrationRedirectParams
|
|
11
|
+
* @instrumented
|
|
12
|
+
*/
|
|
6
13
|
export declare const completeDeviceRegistration: ({ deviceToken }: CompleteDeviceRegistrationParams, client?: import("../../../exports").DynamicClient) => Promise<VerifyResponse>;
|
|
7
14
|
export {};
|
|
8
15
|
//# sourceMappingURL=completeDeviceRegistration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completeDeviceRegistration.d.ts","sourceRoot":"","sources":["../../../../src/modules/deviceRegistration/completeDeviceRegistration/completeDeviceRegistration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"completeDeviceRegistration.d.ts","sourceRoot":"","sources":["../../../../src/modules/deviceRegistration/completeDeviceRegistration/completeDeviceRegistration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAYjE,KAAK,gCAAgC,GAAG;IACtC,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,oBACpB,gCAAgC,wDAEhD,OAAO,CAAC,cAAc,CAmCxB,CAAC"}
|
|
@@ -8,6 +8,7 @@ import type { User } from '../../user/user.types';
|
|
|
8
8
|
* @param user - The user to check.
|
|
9
9
|
* @returns True if device registration is required, false otherwise.
|
|
10
10
|
* @notInstrumented
|
|
11
|
+
* @hook Exposed as a hook so consumers reactively know when this device must be registered, updated when the user changes.
|
|
11
12
|
*/
|
|
12
13
|
export declare const isDeviceRegistrationRequired: (user: User) => boolean;
|
|
13
14
|
//# sourceMappingURL=isDeviceRegistrationRequired.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isDeviceRegistrationRequired.d.ts","sourceRoot":"","sources":["../../../../src/modules/deviceRegistration/isDeviceRegistrationRequired/isDeviceRegistrationRequired.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAElD
|
|
1
|
+
{"version":3,"file":"isDeviceRegistrationRequired.d.ts","sourceRoot":"","sources":["../../../../src/modules/deviceRegistration/isDeviceRegistrationRequired/isDeviceRegistrationRequired.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,4BAA4B,SAAU,IAAI,YACL,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { InstrumentationPayloadSelectors } from '../../../services/instrumentation/instrumentation.types';
|
|
2
|
+
import type { FlowSourceResponse } from '../flow.types';
|
|
3
|
+
/**
|
|
4
|
+
* Explicit instrumentation payload for attachFlowSource. Reads the nested
|
|
5
|
+
* `flow` and logs non-sensitive volume and routing dimensions only — never the
|
|
6
|
+
* wallet address, and never the response's session token.
|
|
7
|
+
*/
|
|
8
|
+
export declare const attachFlowSourceInstrumentation: InstrumentationPayloadSelectors<unknown[], FlowSourceResponse>;
|
|
9
|
+
//# sourceMappingURL=attachFlowSource.instrumentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachFlowSource.instrumentation.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/attachFlowSource/attachFlowSource.instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,yDAAyD,CAAC;AAC/G,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,EAAE,+BAA+B,CAC3E,OAAO,EAAE,EACT,kBAAkB,CAUnB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { InstrumentationPayloadSelectors } from '../../../services/instrumentation/instrumentation.types';
|
|
2
|
+
import type { Flow } from '../flow.types';
|
|
3
|
+
/**
|
|
4
|
+
* Explicit instrumentation payload for broadcastFlow. Logs non-sensitive
|
|
5
|
+
* volume and routing dimensions only — never the wallet address or any
|
|
6
|
+
* session token — so we can understand volume moved through the flow product.
|
|
7
|
+
*/
|
|
8
|
+
export declare const broadcastFlowInstrumentation: InstrumentationPayloadSelectors<unknown[], Flow>;
|
|
9
|
+
//# sourceMappingURL=broadcastFlow.instrumentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"broadcastFlow.instrumentation.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/broadcastFlow/broadcastFlow.instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,yDAAyD,CAAC;AAC/G,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,EAAE,+BAA+B,CACxE,OAAO,EAAE,EACT,IAAI,CAUL,CAAC"}
|
|
@@ -3,11 +3,18 @@ export type CancelFlowParams = {
|
|
|
3
3
|
flowId: string;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
-
* Cancels a flow before it has been broadcasted
|
|
6
|
+
* Cancels a flow before it has been broadcasted.
|
|
7
7
|
*
|
|
8
|
-
* @
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const cancelledFlow = await cancelFlow({ flowId: 'flow-abc123' });
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @param params.flowId - The unique identifier of the flow to cancel.
|
|
9
14
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
10
|
-
* @returns
|
|
15
|
+
* @returns A promise that resolves to the cancelled flow.
|
|
16
|
+
* @see getFlow
|
|
17
|
+
* @see getFlowQuote
|
|
11
18
|
* @instrumented
|
|
12
19
|
*/
|
|
13
20
|
export declare const cancelFlow: ({ flowId }: CancelFlowParams, client?: import("../../../exports").DynamicClient) => Promise<Flow>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancelFlow.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/cancelFlow/cancelFlow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAK1C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"cancelFlow.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/cancelFlow/cancelFlow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAK1C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,eACT,gBAAgB,wDAE3B,OAAO,CAAC,IAAI,CAsBd,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { InstrumentationPayloadSelectors } from '../../../services/instrumentation/instrumentation.types';
|
|
2
|
+
import type { Flow } from '../flow.types';
|
|
3
|
+
/**
|
|
4
|
+
* Explicit instrumentation payload for cancelFlow. Logs non-sensitive volume
|
|
5
|
+
* and routing dimensions only — never the wallet address or any session token.
|
|
6
|
+
*/
|
|
7
|
+
export declare const cancelFlowInstrumentation: InstrumentationPayloadSelectors<unknown[], Flow>;
|
|
8
|
+
//# sourceMappingURL=cancelFlow.instrumentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancelFlow.instrumentation.d.ts","sourceRoot":"","sources":["../../../../src/modules/flow/cancelFlow/cancelFlow.instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,yDAAyD,CAAC;AAC/G,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,+BAA+B,CACrE,OAAO,EAAE,EACT,IAAI,CAUL,CAAC"}
|