@dynamic-labs-sdk/react-hooks 1.5.0 → 1.7.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/exports/index.d.ts +30 -1
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/hooks/useAcknowledgeRecoveryCodes/index.d.ts +2 -0
- package/dist/hooks/useAcknowledgeRecoveryCodes/index.d.ts.map +1 -0
- package/dist/hooks/useAcknowledgeRecoveryCodes/useAcknowledgeRecoveryCodes.d.ts +24 -0
- package/dist/hooks/useAcknowledgeRecoveryCodes/useAcknowledgeRecoveryCodes.d.ts.map +1 -0
- package/dist/hooks/useActiveNetworkData/index.d.ts +2 -0
- package/dist/hooks/useActiveNetworkData/index.d.ts.map +1 -0
- package/dist/hooks/useActiveNetworkData/useActiveNetworkData.d.ts +24 -0
- package/dist/hooks/useActiveNetworkData/useActiveNetworkData.d.ts.map +1 -0
- package/dist/hooks/useAddNetwork/index.d.ts +2 -0
- package/dist/hooks/useAddNetwork/index.d.ts.map +1 -0
- package/dist/hooks/useAddNetwork/useAddNetwork.d.ts +31 -0
- package/dist/hooks/useAddNetwork/useAddNetwork.d.ts.map +1 -0
- package/dist/hooks/useAuthenticateMfaRecoveryCode/index.d.ts +3 -0
- package/dist/hooks/useAuthenticateMfaRecoveryCode/index.d.ts.map +1 -0
- package/dist/hooks/useAuthenticateMfaRecoveryCode/useAuthenticateMfaRecoveryCode.d.ts +38 -0
- package/dist/hooks/useAuthenticateMfaRecoveryCode/useAuthenticateMfaRecoveryCode.d.ts.map +1 -0
- package/dist/hooks/useAuthenticatePasskeyMfa/index.d.ts +3 -0
- package/dist/hooks/useAuthenticatePasskeyMfa/index.d.ts.map +1 -0
- package/dist/hooks/useAuthenticatePasskeyMfa/useAuthenticatePasskeyMfa.d.ts +34 -0
- package/dist/hooks/useAuthenticatePasskeyMfa/useAuthenticatePasskeyMfa.d.ts.map +1 -0
- package/dist/hooks/useBalanceForAddress/index.d.ts +2 -0
- package/dist/hooks/useBalanceForAddress/index.d.ts.map +1 -0
- package/dist/hooks/useBalanceForAddress/useBalanceForAddress.d.ts +24 -0
- package/dist/hooks/useBalanceForAddress/useBalanceForAddress.d.ts.map +1 -0
- package/dist/hooks/useCoinbaseBuyUrl/index.d.ts +2 -0
- package/dist/hooks/useCoinbaseBuyUrl/index.d.ts.map +1 -0
- package/dist/hooks/useCoinbaseBuyUrl/useCoinbaseBuyUrl.d.ts +22 -0
- package/dist/hooks/useCoinbaseBuyUrl/useCoinbaseBuyUrl.d.ts.map +1 -0
- package/dist/hooks/useCompleteDeviceRegistration/index.d.ts +2 -0
- package/dist/hooks/useCompleteDeviceRegistration/index.d.ts.map +1 -0
- package/dist/hooks/useCompleteDeviceRegistration/useCompleteDeviceRegistration.d.ts +26 -0
- package/dist/hooks/useCompleteDeviceRegistration/useCompleteDeviceRegistration.d.ts.map +1 -0
- package/dist/hooks/useCompleteSocialRedirect/index.d.ts +2 -0
- package/dist/hooks/useCompleteSocialRedirect/index.d.ts.map +1 -0
- package/dist/hooks/useCompleteSocialRedirect/useCompleteSocialRedirect.d.ts +24 -0
- package/dist/hooks/useCompleteSocialRedirect/useCompleteSocialRedirect.d.ts.map +1 -0
- package/dist/hooks/useConfirmTransaction/index.d.ts +2 -0
- package/dist/hooks/useConfirmTransaction/index.d.ts.map +1 -0
- package/dist/hooks/useConfirmTransaction/useConfirmTransaction.d.ts +23 -0
- package/dist/hooks/useConfirmTransaction/useConfirmTransaction.d.ts.map +1 -0
- package/dist/hooks/useConsumeMfaToken/index.d.ts +3 -0
- package/dist/hooks/useConsumeMfaToken/index.d.ts.map +1 -0
- package/dist/hooks/useConsumeMfaToken/useConsumeMfaToken.d.ts +27 -0
- package/dist/hooks/useConsumeMfaToken/useConsumeMfaToken.d.ts.map +1 -0
- package/dist/hooks/useCreateCoinbaseOnrampOrder/index.d.ts +2 -0
- package/dist/hooks/useCreateCoinbaseOnrampOrder/index.d.ts.map +1 -0
- package/dist/hooks/useCreateCoinbaseOnrampOrder/useCreateCoinbaseOnrampOrder.d.ts +23 -0
- package/dist/hooks/useCreateCoinbaseOnrampOrder/useCreateCoinbaseOnrampOrder.d.ts.map +1 -0
- package/dist/hooks/useCreateCryptoDotComPayment/index.d.ts +2 -0
- package/dist/hooks/useCreateCryptoDotComPayment/index.d.ts.map +1 -0
- package/dist/hooks/useCreateCryptoDotComPayment/useCreateCryptoDotComPayment.d.ts +24 -0
- package/dist/hooks/useCreateCryptoDotComPayment/useCreateCryptoDotComPayment.d.ts.map +1 -0
- package/dist/hooks/useDeleteUser/index.d.ts +3 -0
- package/dist/hooks/useDeleteUser/index.d.ts.map +1 -0
- package/dist/hooks/useDeleteUser/useDeleteUser.d.ts +28 -0
- package/dist/hooks/useDeleteUser/useDeleteUser.d.ts.map +1 -0
- package/dist/hooks/useExecuteSwapTransaction/index.d.ts +2 -0
- package/dist/hooks/useExecuteSwapTransaction/index.d.ts.map +1 -0
- package/dist/hooks/useExecuteSwapTransaction/useExecuteSwapTransaction.d.ts +25 -0
- package/dist/hooks/useExecuteSwapTransaction/useExecuteSwapTransaction.d.ts.map +1 -0
- package/dist/hooks/useGoogleDriveBackupReadiness/index.d.ts +2 -0
- package/dist/hooks/useGoogleDriveBackupReadiness/index.d.ts.map +1 -0
- package/dist/hooks/useGoogleDriveBackupReadiness/useGoogleDriveBackupReadiness.d.ts +21 -0
- package/dist/hooks/useGoogleDriveBackupReadiness/useGoogleDriveBackupReadiness.d.ts.map +1 -0
- package/dist/hooks/useKrakenWhitelistedAddresses/index.d.ts +2 -0
- package/dist/hooks/useKrakenWhitelistedAddresses/index.d.ts.map +1 -0
- package/dist/hooks/useKrakenWhitelistedAddresses/useKrakenWhitelistedAddresses.d.ts +21 -0
- package/dist/hooks/useKrakenWhitelistedAddresses/useKrakenWhitelistedAddresses.d.ts.map +1 -0
- package/dist/hooks/useMfaMethods/index.d.ts +3 -0
- package/dist/hooks/useMfaMethods/index.d.ts.map +1 -0
- package/dist/hooks/useMfaMethods/useMfaMethods.d.ts +24 -0
- package/dist/hooks/useMfaMethods/useMfaMethods.d.ts.map +1 -0
- package/dist/hooks/useMfaRecoveryCodes/index.d.ts +3 -0
- package/dist/hooks/useMfaRecoveryCodes/index.d.ts.map +1 -0
- package/dist/hooks/useMfaRecoveryCodes/useMfaRecoveryCodes.d.ts +23 -0
- package/dist/hooks/useMfaRecoveryCodes/useMfaRecoveryCodes.d.ts.map +1 -0
- package/dist/hooks/usePasskeys/index.d.ts +3 -0
- package/dist/hooks/usePasskeys/index.d.ts.map +1 -0
- package/dist/hooks/usePasskeys/usePasskeys.d.ts +23 -0
- package/dist/hooks/usePasskeys/usePasskeys.d.ts.map +1 -0
- package/dist/hooks/useProveWalletAccountOwnership/index.d.ts +2 -0
- package/dist/hooks/useProveWalletAccountOwnership/index.d.ts.map +1 -0
- package/dist/hooks/useProveWalletAccountOwnership/useProveWalletAccountOwnership.d.ts +29 -0
- package/dist/hooks/useProveWalletAccountOwnership/useProveWalletAccountOwnership.d.ts.map +1 -0
- package/dist/hooks/useRefreshAuth/index.d.ts +2 -0
- package/dist/hooks/useRefreshAuth/index.d.ts.map +1 -0
- package/dist/hooks/useRefreshAuth/useRefreshAuth.d.ts +24 -0
- package/dist/hooks/useRefreshAuth/useRefreshAuth.d.ts.map +1 -0
- package/dist/hooks/useRequestExternalAuthElevatedToken/index.d.ts +2 -0
- package/dist/hooks/useRequestExternalAuthElevatedToken/index.d.ts.map +1 -0
- package/dist/hooks/useRequestExternalAuthElevatedToken/useRequestExternalAuthElevatedToken.d.ts +26 -0
- package/dist/hooks/useRequestExternalAuthElevatedToken/useRequestExternalAuthElevatedToken.d.ts.map +1 -0
- package/dist/hooks/useRevokeAllRegisteredDevices/index.d.ts +2 -0
- package/dist/hooks/useRevokeAllRegisteredDevices/index.d.ts.map +1 -0
- package/dist/hooks/useRevokeAllRegisteredDevices/useRevokeAllRegisteredDevices.d.ts +25 -0
- package/dist/hooks/useRevokeAllRegisteredDevices/useRevokeAllRegisteredDevices.d.ts.map +1 -0
- package/dist/hooks/useSignInWithExternalJwt/index.d.ts +2 -0
- package/dist/hooks/useSignInWithExternalJwt/index.d.ts.map +1 -0
- package/dist/hooks/useSignInWithExternalJwt/useSignInWithExternalJwt.d.ts +26 -0
- package/dist/hooks/useSignInWithExternalJwt/useSignInWithExternalJwt.d.ts.map +1 -0
- package/dist/hooks/useSignInWithSocialPopUp/index.d.ts +2 -0
- package/dist/hooks/useSignInWithSocialPopUp/index.d.ts.map +1 -0
- package/dist/hooks/useSignInWithSocialPopUp/useSignInWithSocialPopUp.d.ts +24 -0
- package/dist/hooks/useSignInWithSocialPopUp/useSignInWithSocialPopUp.d.ts.map +1 -0
- package/dist/hooks/useSignInWithSocialRedirect/index.d.ts +2 -0
- package/dist/hooks/useSignInWithSocialRedirect/index.d.ts.map +1 -0
- package/dist/hooks/useSignInWithSocialRedirect/useSignInWithSocialRedirect.d.ts +23 -0
- package/dist/hooks/useSignInWithSocialRedirect/useSignInWithSocialRedirect.d.ts.map +1 -0
- package/dist/hooks/useTransferAmount/index.d.ts +2 -0
- package/dist/hooks/useTransferAmount/index.d.ts.map +1 -0
- package/dist/hooks/useTransferAmount/useTransferAmount.d.ts +25 -0
- package/dist/hooks/useTransferAmount/useTransferAmount.d.ts.map +1 -0
- package/dist/hooks/useTransferWalletAccount/index.d.ts +2 -0
- package/dist/hooks/useTransferWalletAccount/index.d.ts.map +1 -0
- package/dist/hooks/useTransferWalletAccount/useTransferWalletAccount.d.ts +26 -0
- package/dist/hooks/useTransferWalletAccount/useTransferWalletAccount.d.ts.map +1 -0
- package/dist/index.cjs +583 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +556 -37
- package/dist/index.esm.js.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +5 -5
package/dist/exports/index.d.ts
CHANGED
|
@@ -1,32 +1,61 @@
|
|
|
1
|
+
export { useAcknowledgeRecoveryCodes, type UseAcknowledgeRecoveryCodesParams, } from '../hooks/useAcknowledgeRecoveryCodes';
|
|
2
|
+
export { useActiveNetworkData, type UseActiveNetworkDataParams, } from '../hooks/useActiveNetworkData';
|
|
3
|
+
export { useAddNetwork, type UseAddNetworkParams, } from '../hooks/useAddNetwork';
|
|
4
|
+
export { useAuthenticateMfaRecoveryCode, type UseAuthenticateMfaRecoveryCodeParams, } from '../hooks/useAuthenticateMfaRecoveryCode';
|
|
5
|
+
export { useAuthenticatePasskeyMfa, type UseAuthenticatePasskeyMfaParams, } from '../hooks/useAuthenticatePasskeyMfa';
|
|
1
6
|
export { useAuthenticateTotpMfaDevice, type UseAuthenticateTotpMfaDeviceParams, } from '../hooks/useAuthenticateTotpMfaDevice';
|
|
2
7
|
export { useAvailableWalletProvidersData } from '../hooks/useAvailableWalletProvidersData';
|
|
8
|
+
export { useBalanceForAddress, type UseBalanceForAddressParams, } from '../hooks/useBalanceForAddress';
|
|
9
|
+
export { useCoinbaseBuyUrl, type UseCoinbaseBuyUrlParams, } from '../hooks/useCoinbaseBuyUrl';
|
|
10
|
+
export { useCompleteDeviceRegistration, type UseCompleteDeviceRegistrationParams, } from '../hooks/useCompleteDeviceRegistration';
|
|
11
|
+
export { useCompleteSocialRedirect, type UseCompleteSocialRedirectParams, } from '../hooks/useCompleteSocialRedirect';
|
|
12
|
+
export { useConfirmTransaction, type UseConfirmTransactionParams, } from '../hooks/useConfirmTransaction';
|
|
13
|
+
export { useConsumeMfaToken, type UseConsumeMfaTokenParams, } from '../hooks/useConsumeMfaToken';
|
|
14
|
+
export { useCreateCoinbaseOnrampOrder, type UseCreateCoinbaseOnrampOrderParams, } from '../hooks/useCreateCoinbaseOnrampOrder';
|
|
15
|
+
export { useCreateCryptoDotComPayment, type UseCreateCryptoDotComPaymentParams, } from '../hooks/useCreateCryptoDotComPayment';
|
|
3
16
|
export { useCreateNewMfaRecoveryCodes, type UseCreateNewMfaRecoveryCodesParams, } from '../hooks/useCreateNewMfaRecoveryCodes';
|
|
4
17
|
export { useDeleteMfaDevice, type UseDeleteMfaDeviceParams, } from '../hooks/useDeleteMfaDevice';
|
|
5
18
|
export { useDeletePasskey, type UseDeletePasskeyParams, } from '../hooks/useDeletePasskey';
|
|
19
|
+
export { useDeleteUser, type UseDeleteUserParams, } from '../hooks/useDeleteUser';
|
|
6
20
|
export { useEvent } from '../hooks/useEvent';
|
|
21
|
+
export { useExecuteSwapTransaction, type UseExecuteSwapTransactionParams, } from '../hooks/useExecuteSwapTransaction';
|
|
22
|
+
export { useGoogleDriveBackupReadiness, type UseGoogleDriveBackupReadinessParams, } from '../hooks/useGoogleDriveBackupReadiness';
|
|
7
23
|
export { useInitStatus } from '../hooks/useInitStatus';
|
|
8
24
|
export { useIsCaptchaRequired } from '../hooks/useIsCaptchaRequired';
|
|
9
25
|
export { useIsUserMissingMfaAuth } from '../hooks/useIsUserMissingMfaAuth';
|
|
10
26
|
export { useIsUserOnboardingComplete } from '../hooks/useIsUserOnboardingComplete';
|
|
27
|
+
export { useKrakenWhitelistedAddresses, type UseKrakenWhitelistedAddressesParams, } from '../hooks/useKrakenWhitelistedAddresses';
|
|
11
28
|
export { useLogout } from '../hooks/useLogout';
|
|
12
|
-
export { useMfaDevices, type UseMfaDevicesParams } from '../hooks/useMfaDevices';
|
|
29
|
+
export { useMfaDevices, type UseMfaDevicesParams, } from '../hooks/useMfaDevices';
|
|
30
|
+
export { useMfaMethods, type UseMfaMethodsParams, } from '../hooks/useMfaMethods';
|
|
31
|
+
export { useMfaRecoveryCodes, type UseMfaRecoveryCodesParams, } from '../hooks/useMfaRecoveryCodes';
|
|
13
32
|
export { useMultichainTokenBalances, type UseMultichainTokenBalancesParams, } from '../hooks/useMultichainTokenBalances';
|
|
14
33
|
export { useNativeBalance } from '../hooks/useNativeBalance';
|
|
15
34
|
export { useNetworksData } from '../hooks/useNetworksData';
|
|
35
|
+
export { usePasskeys, type UsePasskeysParams } from '../hooks/usePasskeys';
|
|
36
|
+
export { useProveWalletAccountOwnership, type UseProveWalletAccountOwnershipParams, } from '../hooks/useProveWalletAccountOwnership';
|
|
37
|
+
export { useRefreshAuth, type UseRefreshAuthParams, } from '../hooks/useRefreshAuth';
|
|
16
38
|
export { useRegisteredDevices, type UseRegisteredDevicesParams, } from '../hooks/useRegisteredDevices';
|
|
17
39
|
export { useRegisterPasskey, type UseRegisterPasskeyParams, } from '../hooks/useRegisterPasskey';
|
|
18
40
|
export { useRegisterTotpMfaDevice, type UseRegisterTotpMfaDeviceParams, } from '../hooks/useRegisterTotpMfaDevice';
|
|
19
41
|
export { useRemoveWalletAccount, type UseRemoveWalletAccountParams, } from '../hooks/useRemoveWalletAccount';
|
|
42
|
+
export { useRequestExternalAuthElevatedToken, type UseRequestExternalAuthElevatedTokenParams, } from '../hooks/useRequestExternalAuthElevatedToken';
|
|
43
|
+
export { useRevokeAllRegisteredDevices, type UseRevokeAllRegisteredDevicesParams, } from '../hooks/useRevokeAllRegisteredDevices';
|
|
20
44
|
export { useRevokeRegisteredDevice, type UseRevokeRegisteredDeviceParams, } from '../hooks/useRevokeRegisteredDevice';
|
|
21
45
|
export { useSendEmailOtp, type UseSendEmailOtpParams, } from '../hooks/useSendEmailOtp';
|
|
22
46
|
export { useSendSmsOtp, type UseSendSmsOtpParams, } from '../hooks/useSendSmsOtp';
|
|
23
47
|
export { useSessionExpiresAt } from '../hooks/useSessionExpiresAt';
|
|
24
48
|
export { useSetDefaultMfaDevice, type UseSetDefaultMfaDeviceParams, } from '../hooks/useSetDefaultMfaDevice';
|
|
49
|
+
export { useSignInWithExternalJwt, type UseSignInWithExternalJwtParams, } from '../hooks/useSignInWithExternalJwt';
|
|
25
50
|
export { useSignInWithPasskey, type UseSignInWithPasskeyParams, } from '../hooks/useSignInWithPasskey';
|
|
51
|
+
export { useSignInWithSocialPopUp, type UseSignInWithSocialPopUpParams, } from '../hooks/useSignInWithSocialPopUp';
|
|
52
|
+
export { useSignInWithSocialRedirect, type UseSignInWithSocialRedirectParams, } from '../hooks/useSignInWithSocialRedirect';
|
|
26
53
|
export { useSignMessage, type UseSignMessageParams, } from '../hooks/useSignMessage';
|
|
27
54
|
export { useSwitchActiveNetwork, type UseSwitchActiveNetworkParams, } from '../hooks/useSwitchActiveNetwork';
|
|
28
55
|
export { useTokenBalances, type UseTokenBalancesParams, } from '../hooks/useTokenBalances';
|
|
29
56
|
export { useTransactionHistory, type UseTransactionHistoryParams, } from '../hooks/useTransactionHistory';
|
|
57
|
+
export { useTransferAmount, type UseTransferAmountParams, } from '../hooks/useTransferAmount';
|
|
58
|
+
export { useTransferWalletAccount, type UseTransferWalletAccountParams, } from '../hooks/useTransferWalletAccount';
|
|
30
59
|
export { useUnlinkSocialAccount, type UseUnlinkSocialAccountParams, } from '../hooks/useUnlinkSocialAccount';
|
|
31
60
|
export { useUpdateUser, type UseUpdateUserParams, } from '../hooks/useUpdateUser';
|
|
32
61
|
export { useUser } from '../hooks/useUser';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exports/index.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,4BAA4B,EAC5B,KAAK,kCAAkC,GACxC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAC3F,OAAO,EACL,4BAA4B,EAC5B,KAAK,kCAAkC,GACxC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,kBAAkB,EAClB,KAAK,wBAAwB,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,gBAAgB,EAChB,KAAK,sBAAsB,GAC5B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exports/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAcknowledgeRecoveryCodes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,GACvC,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { acknowledgeRecoveryCodes } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type AcknowledgeRecoveryCodesResult = Awaited<ReturnType<typeof acknowledgeRecoveryCodes>>;
|
|
4
|
+
export type UseAcknowledgeRecoveryCodesParams = {
|
|
5
|
+
/**
|
|
6
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
7
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
8
|
+
*/
|
|
9
|
+
mutateParams?: UseBaseMutationParams<AcknowledgeRecoveryCodesResult, void>['mutateParams'];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Marks the current user's MFA recovery codes as acknowledged. Takes no arguments — call `mutate()` after the user confirms they have stored the codes shown by {@link useMfaRecoveryCodes}.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* const { mutate: acknowledge, isPending } = useAcknowledgeRecoveryCodes();
|
|
17
|
+
* <button onClick={() => acknowledge()} disabled={isPending}>
|
|
18
|
+
* I've saved my recovery codes
|
|
19
|
+
* </button>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const useAcknowledgeRecoveryCodes: ({ mutateParams, }?: UseAcknowledgeRecoveryCodesParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs-sdk/client").OTPVerification | undefined, Error, void>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=useAcknowledgeRecoveryCodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAcknowledgeRecoveryCodes.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAcknowledgeRecoveryCodes/useAcknowledgeRecoveryCodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,8BAA8B,GAAG,OAAO,CAC3C,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAC5C,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,8BAA8B,EAC9B,IAAI,CACL,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,2BAA2B,uBAErC,iCAAiC,mIAIhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useActiveNetworkData/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,KAAK,0BAA0B,GAChC,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getActiveNetworkData } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseQueryParams } from '../../foundation/useBaseQuery';
|
|
3
|
+
type GetActiveNetworkDataResult = Awaited<ReturnType<typeof getActiveNetworkData>>;
|
|
4
|
+
type GetActiveNetworkDataArgs = Parameters<typeof getActiveNetworkData>[0];
|
|
5
|
+
export type UseActiveNetworkDataParams = GetActiveNetworkDataArgs & {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseQueryOptions` (retry,
|
|
8
|
+
* staleTime, refetchInterval, etc.).
|
|
9
|
+
*/
|
|
10
|
+
queryParams?: UseBaseQueryParams<GetActiveNetworkDataResult>['queryParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `getActiveNetworkData` from `@dynamic-labs-sdk/client`. Returns the network the given wallet account is currently on.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data: network, isLoading } = useActiveNetworkData({ walletAccount });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const useActiveNetworkData: ({ queryParams, ...args }: UseActiveNetworkDataParams) => import("@tanstack/react-query").UseQueryResult<{
|
|
21
|
+
networkData: import("@dynamic-labs-sdk/client").NetworkData | undefined;
|
|
22
|
+
}, Error>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=useActiveNetworkData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useActiveNetworkData.d.ts","sourceRoot":"","sources":["../../../src/hooks/useActiveNetworkData/useActiveNetworkData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGxE,KAAK,0BAA0B,GAAG,OAAO,CACvC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CACxC,CAAC;AACF,KAAK,wBAAwB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE3E,MAAM,MAAM,0BAA0B,GAAG,wBAAwB,GAAG;IAClE;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,0BAA0B,CAAC,CAAC,aAAa,CAAC,CAAC;CAC7E,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,6BAG9B,0BAA0B;wBAJ5B,0BAED;SAOI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAddNetwork/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { addNetwork } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type AddNetworkVariables = Parameters<typeof addNetwork>[0];
|
|
4
|
+
type AddNetworkResult = Awaited<ReturnType<typeof addNetwork>>;
|
|
5
|
+
export type UseAddNetworkParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<AddNetworkResult, AddNetworkVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `addNetwork` from `@dynamic-labs-sdk/client`. Call `mutate({ networkData, walletAccount })` to register a custom network on the given wallet account.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: addNetwork, isPending } = useAddNetwork();
|
|
18
|
+
* <button
|
|
19
|
+
* onClick={() => addNetwork({ networkData, walletAccount })}
|
|
20
|
+
* disabled={isPending}
|
|
21
|
+
* >
|
|
22
|
+
* Add network
|
|
23
|
+
* </button>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare const useAddNetwork: ({ mutateParams }?: UseAddNetworkParams) => import("@tanstack/react-query").UseMutationResult<void, Error, {
|
|
27
|
+
networkData: import("@dynamic-labs-sdk/client").NetworkData;
|
|
28
|
+
walletAccount: import("@dynamic-labs-sdk/client").WalletAccount;
|
|
29
|
+
}>;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=useAddNetwork.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAddNetwork.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAddNetwork/useAddNetwork.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5D,KAAK,gBAAgB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC;AAE/D,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,gBAAgB,EAChB,mBAAmB,CACpB,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,sBAAsB,mBAAmB;;;EAI/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAuthenticateMfaRecoveryCode/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAClF,YAAY,EAAE,oCAAoC,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { authenticateMfaRecoveryCode } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type AuthenticateMfaRecoveryCodeVariables = Parameters<typeof authenticateMfaRecoveryCode>[0];
|
|
4
|
+
type AuthenticateMfaRecoveryCodeResult = Awaited<ReturnType<typeof authenticateMfaRecoveryCode>>;
|
|
5
|
+
export type UseAuthenticateMfaRecoveryCodeParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<AuthenticateMfaRecoveryCodeResult, AuthenticateMfaRecoveryCodeVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Authenticates the current user with one of their MFA recovery codes.
|
|
14
|
+
*
|
|
15
|
+
* Wraps `authenticateMfaRecoveryCode` from `@dynamic-labs-sdk/client`. Call
|
|
16
|
+
* `mutate({ code })` with a backup recovery code when no registered MFA
|
|
17
|
+
* method is available; the resolved `data` is the MFA authentication
|
|
18
|
+
* response.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* const { mutate: authenticateRecoveryCode, isPending } =
|
|
23
|
+
* useAuthenticateMfaRecoveryCode();
|
|
24
|
+
* <button
|
|
25
|
+
* onClick={() => authenticateRecoveryCode({ code })}
|
|
26
|
+
* disabled={isPending}
|
|
27
|
+
* >
|
|
28
|
+
* Use recovery code
|
|
29
|
+
* </button>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare const useAuthenticateMfaRecoveryCode: ({ mutateParams, }?: UseAuthenticateMfaRecoveryCodeParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs/sdk-api-core").VerifyResponse, Error, {
|
|
33
|
+
code: string;
|
|
34
|
+
createMfaTokenOptions?: import("@dynamic-labs/sdk-api-core").CreateMfaToken;
|
|
35
|
+
requestedScopes?: import("@dynamic-labs/sdk-api-core").TokenScope[];
|
|
36
|
+
}>;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=useAuthenticateMfaRecoveryCode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuthenticateMfaRecoveryCode.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAuthenticateMfaRecoveryCode/useAuthenticateMfaRecoveryCode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAEvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,oCAAoC,GAAG,UAAU,CACpD,OAAO,2BAA2B,CACnC,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,iCAAiC,GAAG,OAAO,CAC9C,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAC/C,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG;IACjD;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,iCAAiC,EACjC,oCAAoC,CACrC,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,8BAA8B,uBAExC,oCAAoC;;;;EAQnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAuthenticatePasskeyMfa/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,YAAY,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { authenticatePasskeyMFA } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type AuthenticatePasskeyMfaVariables = Parameters<typeof authenticatePasskeyMFA>[0];
|
|
4
|
+
type AuthenticatePasskeyMfaResult = Awaited<ReturnType<typeof authenticatePasskeyMFA>>;
|
|
5
|
+
export type UseAuthenticatePasskeyMfaParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<AuthenticatePasskeyMfaResult, AuthenticatePasskeyMfaVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Completes an MFA challenge using the current user's passkey.
|
|
14
|
+
*
|
|
15
|
+
* Wraps `authenticatePasskeyMFA` from `@dynamic-labs-sdk/client`. Call
|
|
16
|
+
* `mutate()` to satisfy an MFA step-up with a passkey; the resolved `data`
|
|
17
|
+
* is the MFA verification response.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```tsx
|
|
21
|
+
* const { mutate: authenticatePasskeyMfa, isPending } =
|
|
22
|
+
* useAuthenticatePasskeyMfa();
|
|
23
|
+
* <button onClick={() => authenticatePasskeyMfa()} disabled={isPending}>
|
|
24
|
+
* Verify with passkey
|
|
25
|
+
* </button>
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare const useAuthenticatePasskeyMfa: ({ mutateParams, }?: UseAuthenticatePasskeyMfaParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs/sdk-api-core").VerifyResponse, Error, {
|
|
29
|
+
createMfaToken?: import("@dynamic-labs/sdk-api-core").CreateMfaToken;
|
|
30
|
+
relatedOriginRpId?: string;
|
|
31
|
+
requestedScopes?: import("@dynamic-labs/sdk-api-core").TokenScope[];
|
|
32
|
+
} | undefined>;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=useAuthenticatePasskeyMfa.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuthenticatePasskeyMfa.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAuthenticatePasskeyMfa/useAuthenticatePasskeyMfa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,+BAA+B,GAAG,UAAU,CAC/C,OAAO,sBAAsB,CAC9B,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,4BAA4B,GAAG,OAAO,CACzC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAC1C,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,4BAA4B,EAC5B,+BAA+B,CAChC,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,yBAAyB,uBAEnC,+BAA+B;;;;cAQ9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBalanceForAddress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,KAAK,0BAA0B,GAChC,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getBalanceForAddress } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseQueryParams } from '../../foundation/useBaseQuery';
|
|
3
|
+
type GetBalanceForAddressResult = Awaited<ReturnType<typeof getBalanceForAddress>>;
|
|
4
|
+
type GetBalanceForAddressArgs = Parameters<typeof getBalanceForAddress>[0];
|
|
5
|
+
export type UseBalanceForAddressParams = GetBalanceForAddressArgs & {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseQueryOptions` (retry,
|
|
8
|
+
* staleTime, refetchInterval, etc.).
|
|
9
|
+
*/
|
|
10
|
+
queryParams?: UseBaseQueryParams<GetBalanceForAddressResult>['queryParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `getBalanceForAddress` from `@dynamic-labs-sdk/client`. Returns the native-token balance for an arbitrary address on the given chain/network.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useBalanceForAddress({ address, chain, networkId });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const useBalanceForAddress: ({ queryParams, ...args }: UseBalanceForAddressParams) => import("@tanstack/react-query").UseQueryResult<{
|
|
21
|
+
balance: string | null;
|
|
22
|
+
}, Error>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=useBalanceForAddress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBalanceForAddress.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBalanceForAddress/useBalanceForAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGxE,KAAK,0BAA0B,GAAG,OAAO,CACvC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CACxC,CAAC;AACF,KAAK,wBAAwB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE3E,MAAM,MAAM,0BAA0B,GAAG,wBAAwB,GAAG;IAClE;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,0BAA0B,CAAC,CAAC,aAAa,CAAC,CAAC;CAC7E,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,6BAG9B,0BAA0B;;SAKzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCoinbaseBuyUrl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,KAAK,uBAAuB,GAC7B,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getCoinbaseBuyUrl } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseQueryParams } from '../../foundation/useBaseQuery';
|
|
3
|
+
type GetCoinbaseBuyUrlResult = Awaited<ReturnType<typeof getCoinbaseBuyUrl>>;
|
|
4
|
+
type GetCoinbaseBuyUrlArgs = Parameters<typeof getCoinbaseBuyUrl>[0];
|
|
5
|
+
export type UseCoinbaseBuyUrlParams = GetCoinbaseBuyUrlArgs & {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseQueryOptions` (retry,
|
|
8
|
+
* staleTime, refetchInterval, etc.).
|
|
9
|
+
*/
|
|
10
|
+
queryParams?: UseBaseQueryParams<GetCoinbaseBuyUrlResult>['queryParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `getCoinbaseBuyUrl` from `@dynamic-labs-sdk/client`. Returns a Coinbase onramp buy URL for the given parameters.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data: buyUrl, isLoading } = useCoinbaseBuyUrl(buyUrlParams);
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const useCoinbaseBuyUrl: ({ queryParams, ...args }: UseCoinbaseBuyUrlParams) => import("@tanstack/react-query").UseQueryResult<import("@dynamic-labs/sdk-api-core").CoinbaseOnrampGetBuyUrlResponse, Error>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=useCoinbaseBuyUrl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCoinbaseBuyUrl.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCoinbaseBuyUrl/useCoinbaseBuyUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGxE,KAAK,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC;AAC7E,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;AAErE,MAAM,MAAM,uBAAuB,GAAG,qBAAqB,GAAG;IAC5D;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,uBAAuB,CAAC,CAAC,aAAa,CAAC,CAAC;CAC1E,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,6BAG3B,uBAAuB,gIAKtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCompleteDeviceRegistration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,KAAK,mCAAmC,GACzC,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { completeDeviceRegistration } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type CompleteDeviceRegistrationVariables = Parameters<typeof completeDeviceRegistration>[0];
|
|
4
|
+
type CompleteDeviceRegistrationResult = Awaited<ReturnType<typeof completeDeviceRegistration>>;
|
|
5
|
+
export type UseCompleteDeviceRegistrationParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<CompleteDeviceRegistrationResult, CompleteDeviceRegistrationVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `completeDeviceRegistration` from `@dynamic-labs-sdk/client`. Call `mutate({ deviceToken })` with the device token parsed from the redirect URL; the resolved `data` is a `VerifyResponse`.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: completeRegistration, isPending } =
|
|
18
|
+
* useCompleteDeviceRegistration();
|
|
19
|
+
* completeRegistration({ deviceToken });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const useCompleteDeviceRegistration: ({ mutateParams, }?: UseCompleteDeviceRegistrationParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs/sdk-api-core").VerifyResponse, Error, {
|
|
23
|
+
deviceToken: string;
|
|
24
|
+
}>;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=useCompleteDeviceRegistration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCompleteDeviceRegistration.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCompleteDeviceRegistration/useCompleteDeviceRegistration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAEtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,mCAAmC,GAAG,UAAU,CACnD,OAAO,0BAA0B,CAClC,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,gCAAgC,GAAG,OAAO,CAC7C,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAC9C,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,gCAAgC,EAChC,mCAAmC,CACpC,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,6BAA6B,uBAEvC,mCAAmC;;EAQlC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCompleteSocialRedirect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,KAAK,+BAA+B,GACrC,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { completeSocialRedirect } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type CompleteSocialRedirectVariables = Parameters<typeof completeSocialRedirect>[0];
|
|
4
|
+
type CompleteSocialRedirectResult = Awaited<ReturnType<typeof completeSocialRedirect>>;
|
|
5
|
+
export type UseCompleteSocialRedirectParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<CompleteSocialRedirectResult, CompleteSocialRedirectVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `completeSocialRedirect` from `@dynamic-labs-sdk/client`. Call `mutate(params)` with the OAuth callback URL once the provider has redirected back to finish the sign-in; the resolved `data` is the signed-in `User` (or `null`).
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: completeSocialRedirect, data: user } =
|
|
18
|
+
* useCompleteSocialRedirect();
|
|
19
|
+
* completeSocialRedirect({ url: new URL(window.location.href) });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const useCompleteSocialRedirect: ({ mutateParams, }?: UseCompleteSocialRedirectParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs/sdk-api-core").SdkUser | null, Error, import("../../../../client/src/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.types").CompleteSocialRedirectParams>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=useCompleteSocialRedirect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCompleteSocialRedirect.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCompleteSocialRedirect/useCompleteSocialRedirect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,+BAA+B,GAAG,UAAU,CAC/C,OAAO,sBAAsB,CAC9B,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,4BAA4B,GAAG,OAAO,CACzC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAC1C,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,4BAA4B,EAC5B,+BAA+B,CAChC,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,uBAEnC,+BAA+B,+PAQ9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConfirmTransaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,GACjC,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { confirmTransaction } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type ConfirmTransactionVariables = Parameters<typeof confirmTransaction>[0];
|
|
4
|
+
type ConfirmTransactionResult = Awaited<ReturnType<typeof confirmTransaction>>;
|
|
5
|
+
export type UseConfirmTransactionParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<ConfirmTransactionResult, ConfirmTransactionVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `confirmTransaction` from `@dynamic-labs-sdk/client`. Call `mutate({ walletAccount, transactionHash })` to await confirmation of a submitted transaction; the resolved `data` is `void`.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: confirmTransaction, isPending } = useConfirmTransaction();
|
|
18
|
+
* confirmTransaction({ walletAccount, transactionHash });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const useConfirmTransaction: ({ mutateParams, }?: UseConfirmTransactionParams) => import("@tanstack/react-query").UseMutationResult<void, Error, import("@dynamic-labs-sdk/client").ConfirmTransactionParams>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=useConfirmTransaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConfirmTransaction.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConfirmTransaction/useConfirmTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,2BAA2B,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5E,KAAK,wBAAwB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC;AAE/E,MAAM,MAAM,2BAA2B,GAAG;IACxC;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,wBAAwB,EACxB,2BAA2B,CAC5B,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,uBAE/B,2BAA2B,gIAK1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConsumeMfaToken/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { consumeMfaToken } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type ConsumeMfaTokenResult = Awaited<ReturnType<typeof consumeMfaToken>>;
|
|
4
|
+
export type UseConsumeMfaTokenParams = {
|
|
5
|
+
/**
|
|
6
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
7
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
8
|
+
*/
|
|
9
|
+
mutateParams?: UseBaseMutationParams<ConsumeMfaTokenResult, void>['mutateParams'];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Consumes and clears the current MFA token from client state.
|
|
13
|
+
*
|
|
14
|
+
* Wraps `consumeMfaToken` from `@dynamic-labs-sdk/client`. Takes no
|
|
15
|
+
* arguments — call `mutate()` to read the token from a successful MFA
|
|
16
|
+
* authentication and remove it so it can't be reused; the resolved `data`
|
|
17
|
+
* is the consumed token.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```tsx
|
|
21
|
+
* const { mutate: consumeMfaToken, data: mfaToken } = useConsumeMfaToken();
|
|
22
|
+
* <button onClick={() => consumeMfaToken()}>Consume MFA token</button>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare const useConsumeMfaToken: ({ mutateParams, }?: UseConsumeMfaTokenParams) => import("@tanstack/react-query").UseMutationResult<string, Error, void>;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=useConsumeMfaToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConsumeMfaToken.d.ts","sourceRoot":"","sources":["../../../src/hooks/useConsumeMfaToken/useConsumeMfaToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,qBAAqB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC;AAEzE,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,qBAAqB,EACrB,IAAI,CACL,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,uBAE5B,wBAAwB,2EAIvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCreateCoinbaseOnrampOrder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,KAAK,kCAAkC,GACxC,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createCoinbaseOnrampOrder } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type CreateCoinbaseOnrampOrderVariables = Parameters<typeof createCoinbaseOnrampOrder>[0];
|
|
4
|
+
type CreateCoinbaseOnrampOrderResult = Awaited<ReturnType<typeof createCoinbaseOnrampOrder>>;
|
|
5
|
+
export type UseCreateCoinbaseOnrampOrderParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<CreateCoinbaseOnrampOrderResult, CreateCoinbaseOnrampOrderVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `createCoinbaseOnrampOrder` from `@dynamic-labs-sdk/client`. Call `mutate(orderParams)` to create a Coinbase onramp order; the resolved `data` is the order response.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: createOrder, data: order } = useCreateCoinbaseOnrampOrder();
|
|
18
|
+
* createOrder(orderParams);
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const useCreateCoinbaseOnrampOrder: ({ mutateParams, }?: UseCreateCoinbaseOnrampOrderParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs-sdk/client").CoinbaseOnrampOrderResponse, Error, import("@dynamic-labs-sdk/client").CoinbaseCreateOnrampOrderRequest>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=useCreateCoinbaseOnrampOrder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCreateCoinbaseOnrampOrder.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCreateCoinbaseOnrampOrder/useCreateCoinbaseOnrampOrder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,kCAAkC,GAAG,UAAU,CAClD,OAAO,yBAAyB,CACjC,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,+BAA+B,GAAG,OAAO,CAC5C,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAC7C,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,+BAA+B,EAC/B,kCAAkC,CACnC,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B,uBAEtC,kCAAkC,kMAQjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCreateCryptoDotComPayment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,KAAK,kCAAkC,GACxC,MAAM,gCAAgC,CAAC"}
|