@dynamic-labs-sdk/react-hooks 1.18.0 → 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/exports/index.d.ts +15 -0
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/hooks/wrappers/functions/useBackupWaasKeySharesToGoogleDrive/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useBackupWaasKeySharesToGoogleDrive/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useBackupWaasKeySharesToGoogleDrive/useBackupWaasKeySharesToGoogleDrive.d.ts +47 -0
- package/dist/hooks/wrappers/functions/useBackupWaasKeySharesToGoogleDrive/useBackupWaasKeySharesToGoogleDrive.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useCreateWaasWalletAccounts/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useCreateWaasWalletAccounts/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useCreateWaasWalletAccounts/useCreateWaasWalletAccounts.d.ts +47 -0
- package/dist/hooks/wrappers/functions/useCreateWaasWalletAccounts/useCreateWaasWalletAccounts.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useDelegateWaasKeyShares/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useDelegateWaasKeyShares/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useDelegateWaasKeyShares/useDelegateWaasKeyShares.d.ts +46 -0
- package/dist/hooks/wrappers/functions/useDelegateWaasKeyShares/useDelegateWaasKeyShares.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useDetectSocialRedirectUrl/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useDetectSocialRedirectUrl/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useDetectSocialRedirectUrl/useDetectSocialRedirectUrl.d.ts +48 -0
- package/dist/hooks/wrappers/functions/useDetectSocialRedirectUrl/useDetectSocialRedirectUrl.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useExportWaasClientKeyshares/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useExportWaasClientKeyshares/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useExportWaasClientKeyshares/useExportWaasClientKeyshares.d.ts +46 -0
- package/dist/hooks/wrappers/functions/useExportWaasClientKeyshares/useExportWaasClientKeyshares.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useExportWaasPrivateKey/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useExportWaasPrivateKey/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useExportWaasPrivateKey/useExportWaasPrivateKey.d.ts +47 -0
- package/dist/hooks/wrappers/functions/useExportWaasPrivateKey/useExportWaasPrivateKey.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useGetWalletRecoveryState/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useGetWalletRecoveryState/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useGetWalletRecoveryState/useGetWalletRecoveryState.d.ts +48 -0
- package/dist/hooks/wrappers/functions/useGetWalletRecoveryState/useGetWalletRecoveryState.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useImportWaasPrivateKey/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useImportWaasPrivateKey/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useImportWaasPrivateKey/useImportWaasPrivateKey.d.ts +47 -0
- package/dist/hooks/wrappers/functions/useImportWaasPrivateKey/useImportWaasPrivateKey.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useMergeUserAccounts/index.d.ts +3 -0
- package/dist/hooks/wrappers/functions/useMergeUserAccounts/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useMergeUserAccounts/useMergeUserAccounts.d.ts +52 -0
- package/dist/hooks/wrappers/functions/useMergeUserAccounts/useMergeUserAccounts.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useMigrateFromFireblocks/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useMigrateFromFireblocks/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useMigrateFromFireblocks/useMigrateFromFireblocks.d.ts +50 -0
- package/dist/hooks/wrappers/functions/useMigrateFromFireblocks/useMigrateFromFireblocks.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useRefreshWaasWalletAccountShares/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useRefreshWaasWalletAccountShares/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useRefreshWaasWalletAccountShares/useRefreshWaasWalletAccountShares.d.ts +46 -0
- package/dist/hooks/wrappers/functions/useRefreshWaasWalletAccountShares/useRefreshWaasWalletAccountShares.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useRevokeWaasDelegation/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useRevokeWaasDelegation/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useRevokeWaasDelegation/useRevokeWaasDelegation.d.ts +46 -0
- package/dist/hooks/wrappers/functions/useRevokeWaasDelegation/useRevokeWaasDelegation.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useSetWaasWalletAccountPassword/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useSetWaasWalletAccountPassword/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useSetWaasWalletAccountPassword/useSetWaasWalletAccountPassword.d.ts +46 -0
- package/dist/hooks/wrappers/functions/useSetWaasWalletAccountPassword/useSetWaasWalletAccountPassword.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useUnlockWallet/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useUnlockWallet/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useUnlockWallet/useUnlockWallet.d.ts +46 -0
- package/dist/hooks/wrappers/functions/useUnlockWallet/useUnlockWallet.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useUpdateWaasPassword/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useUpdateWaasPassword/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useUpdateWaasPassword/useUpdateWaasPassword.d.ts +47 -0
- package/dist/hooks/wrappers/functions/useUpdateWaasPassword/useUpdateWaasPassword.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useVerifyOTP/useVerifyOTP.d.ts +1 -1
- package/dist/hooks/wrappers/functions/useVerifyOTP/useVerifyOTP.d.ts.map +1 -1
- package/dist/index.cjs +379 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +366 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +4 -4
package/dist/exports/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { useGetCoinbaseBuyUrl, type UseGetCoinbaseBuyUrlParams, } from '../hooks
|
|
|
16
16
|
export { useAddCoinbaseOnrampOrderEventListener, type UseAddCoinbaseOnrampOrderEventListenerParams, } from '../hooks/wrappers/functions/useAddCoinbaseOnrampOrderEventListener';
|
|
17
17
|
export { useCompleteDeviceRegistration, type UseCompleteDeviceRegistrationParams, } from '../hooks/wrappers/functions/useCompleteDeviceRegistration';
|
|
18
18
|
export { useCompleteSocialRedirect, type UseCompleteSocialRedirectParams, } from '../hooks/wrappers/functions/useCompleteSocialRedirect';
|
|
19
|
+
export { useDetectSocialRedirectUrl, type UseDetectSocialRedirectUrlParams, } from '../hooks/wrappers/functions/useDetectSocialRedirectUrl';
|
|
19
20
|
export { useConfirmTransaction, type UseConfirmTransactionParams, } from '../hooks/wrappers/functions/useConfirmTransaction';
|
|
20
21
|
export { useConnectAndVerifyWithWalletProvider, type UseConnectAndVerifyWithWalletProviderParams, } from '../hooks/wrappers/functions/useConnectAndVerifyWithWalletProvider';
|
|
21
22
|
export { useGetConnectedAddresses, type UseGetConnectedAddressesParams, } from '../hooks/wrappers/functions/useGetConnectedAddresses';
|
|
@@ -37,6 +38,7 @@ export { useGetKrakenAccounts, type UseGetKrakenAccountsParams, } from '../hooks
|
|
|
37
38
|
export { useCreateKrakenExchangeTransfer, type UseCreateKrakenExchangeTransferParams, } from '../hooks/wrappers/functions/useCreateKrakenExchangeTransfer';
|
|
38
39
|
export { useGetKrakenWhitelistedAddresses, type UseGetKrakenWhitelistedAddressesParams, } from '../hooks/wrappers/functions/useGetKrakenWhitelistedAddresses';
|
|
39
40
|
export { useLogout } from '../hooks/wrappers/functions/useLogout';
|
|
41
|
+
export { useMergeUserAccounts, type UseMergeUserAccountsParams, } from '../hooks/wrappers/functions/useMergeUserAccounts';
|
|
40
42
|
export { useGetMfaDevices, type UseGetMfaDevicesParams, } from '../hooks/wrappers/functions/useGetMfaDevices';
|
|
41
43
|
export { useGetMfaMethods, type UseGetMfaMethodsParams, } from '../hooks/wrappers/functions/useGetMfaMethods';
|
|
42
44
|
export { useGetMfaRecoveryCodes, type UseGetMfaRecoveryCodesParams, } from '../hooks/wrappers/functions/useGetMfaRecoveryCodes';
|
|
@@ -86,6 +88,19 @@ export { useIsDeviceRegistrationRequired } from '../hooks/wrappers/functions/use
|
|
|
86
88
|
export { useIsUserMissingMfaAuth } from '../hooks/wrappers/functions/useIsUserMissingMfaAuth';
|
|
87
89
|
export { useIsPendingRecoveryCodesAcknowledgment } from '../hooks/wrappers/functions/useIsPendingRecoveryCodesAcknowledgment';
|
|
88
90
|
export { useIsUserOnboardingComplete } from '../hooks/wrappers/functions/useIsUserOnboardingComplete';
|
|
91
|
+
export { useBackupWaasKeySharesToGoogleDrive, type UseBackupWaasKeySharesToGoogleDriveParams, } from '../hooks/wrappers/functions/useBackupWaasKeySharesToGoogleDrive';
|
|
92
|
+
export { useCreateWaasWalletAccounts, type UseCreateWaasWalletAccountsParams, } from '../hooks/wrappers/functions/useCreateWaasWalletAccounts';
|
|
93
|
+
export { useDelegateWaasKeyShares, type UseDelegateWaasKeySharesParams, } from '../hooks/wrappers/functions/useDelegateWaasKeyShares';
|
|
94
|
+
export { useExportWaasClientKeyshares, type UseExportWaasClientKeysharesParams, } from '../hooks/wrappers/functions/useExportWaasClientKeyshares';
|
|
95
|
+
export { useExportWaasPrivateKey, type UseExportWaasPrivateKeyParams, } from '../hooks/wrappers/functions/useExportWaasPrivateKey';
|
|
96
|
+
export { useGetWalletRecoveryState, type UseGetWalletRecoveryStateParams, } from '../hooks/wrappers/functions/useGetWalletRecoveryState';
|
|
97
|
+
export { useImportWaasPrivateKey, type UseImportWaasPrivateKeyParams, } from '../hooks/wrappers/functions/useImportWaasPrivateKey';
|
|
98
|
+
export { useMigrateFromFireblocks, type UseMigrateFromFireblocksParams, } from '../hooks/wrappers/functions/useMigrateFromFireblocks';
|
|
99
|
+
export { useRefreshWaasWalletAccountShares, type UseRefreshWaasWalletAccountSharesParams, } from '../hooks/wrappers/functions/useRefreshWaasWalletAccountShares';
|
|
100
|
+
export { useRevokeWaasDelegation, type UseRevokeWaasDelegationParams, } from '../hooks/wrappers/functions/useRevokeWaasDelegation';
|
|
101
|
+
export { useSetWaasWalletAccountPassword, type UseSetWaasWalletAccountPasswordParams, } from '../hooks/wrappers/functions/useSetWaasWalletAccountPassword';
|
|
102
|
+
export { useUnlockWallet, type UseUnlockWalletParams, } from '../hooks/wrappers/functions/useUnlockWallet';
|
|
103
|
+
export { useUpdateWaasPassword, type UseUpdateWaasPasswordParams, } from '../hooks/wrappers/functions/useUpdateWaasPassword';
|
|
89
104
|
export { useInitStatus, type UseInitStatusResult, } from '../hooks/wrappers/state/useInitStatus';
|
|
90
105
|
export { useSessionExpiresAt } from '../hooks/wrappers/state/useSessionExpiresAt';
|
|
91
106
|
export { useUser } from '../hooks/wrappers/state/useUser';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exports/index.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,GACvC,MAAM,yDAAyD,CAAC;AACjE,OAAO,EACL,uBAAuB,EACvB,KAAK,6BAA6B,GACnC,MAAM,qDAAqD,C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AAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exports/index.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,GACvC,MAAM,yDAAyD,CAAC;AACjE,OAAO,EACL,uBAAuB,EACvB,KAAK,6BAA6B,GACnC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,GACjC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EACL,aAAa,EACb,KAAK,mBAAmB,GACzB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,yCAAyC,EACzC,KAAK,+CAA+C,GACrD,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EACL,mBAAmB,EACnB,KAAK,yBAAyB,GAC/B,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACL,8BAA8B,EAC9B,KAAK,oCAAoC,GAC1C,MAAM,4DAA4D,CAAC;AACpE,OAAO,EACL,yBAAyB,EACzB,KAAK,+BAA+B,GACrC,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EACL,4BAA4B,EAC5B,KAAK,kCAAkC,GACxC,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,kCAAkC,EAAE,MAAM,gEAAgE,CAAC;AACpH,OAAO,EACL,uBAAuB,EACvB,KAAK,6BAA6B,GACnC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EACL,gBAAgB,EAChB,KAAK,sBAAsB,GAC5B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,aAAa,EACb,KAAK,mBAAmB,GACzB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,kBAAkB,EAClB,KAAK,wBAAwB,GAC9B,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,oBAAoB,EACpB,KAAK,0BAA0B,GAChC,MAAM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KAAK,2BAA2B,GACjC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EACL,aAAa,EACb,KAAK,mBAAmB,GACzB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useBackupWaasKeySharesToGoogleDrive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,KAAK,yCAAyC,EAAE,MAAM,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { backupWaasKeySharesToGoogleDrive } from '@dynamic-labs-sdk/client/waas';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
|
|
3
|
+
type BackupWaasKeySharesToGoogleDriveVariables = Parameters<typeof backupWaasKeySharesToGoogleDrive>[0];
|
|
4
|
+
type BackupWaasKeySharesToGoogleDriveResult = Awaited<ReturnType<typeof backupWaasKeySharesToGoogleDrive>>;
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for {@link useBackupWaasKeySharesToGoogleDrive}: an optional override of the underlying
|
|
7
|
+
* react-query mutation options.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const params: UseBackupWaasKeySharesToGoogleDriveParams = {
|
|
12
|
+
* mutateParams: { onSuccess: () => {} },
|
|
13
|
+
* };
|
|
14
|
+
* ```
|
|
15
|
+
* @see useBackupWaasKeySharesToGoogleDrive
|
|
16
|
+
* @see backupWaasKeySharesToGoogleDrive
|
|
17
|
+
*/
|
|
18
|
+
export type UseBackupWaasKeySharesToGoogleDriveParams = {
|
|
19
|
+
/**
|
|
20
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
21
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
22
|
+
*/
|
|
23
|
+
mutateParams?: NonNullable<UseBaseMutationParams<BackupWaasKeySharesToGoogleDriveResult, BackupWaasKeySharesToGoogleDriveVariables>['mutateParams']>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Wraps `backupWaasKeySharesToGoogleDrive` from `@dynamic-labs-sdk/client/waas`. Call `mutate(variables)` to
|
|
27
|
+
* back up an embedded wallet's key shares to the user's Google Drive.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const { mutate, isPending } = useBackupWaasKeySharesToGoogleDrive();
|
|
32
|
+
* <button onClick={() => mutate(variables)} disabled={isPending}>
|
|
33
|
+
* Continue
|
|
34
|
+
* </button>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @returns A react-query mutation whose `mutate`/`mutateAsync` calls `backupWaasKeySharesToGoogleDrive` and whose `data` is its resolved value.
|
|
38
|
+
* @see backupWaasKeySharesToGoogleDrive
|
|
39
|
+
* @see UseBackupWaasKeySharesToGoogleDriveParams
|
|
40
|
+
*/
|
|
41
|
+
export declare const useBackupWaasKeySharesToGoogleDrive: ({ mutateParams }?: UseBackupWaasKeySharesToGoogleDriveParams) => import("@tanstack/react-query").UseMutationResult<void, Error, {
|
|
42
|
+
googleDriveAccessToken?: string;
|
|
43
|
+
password?: string;
|
|
44
|
+
walletAccount: import("@dynamic-labs-sdk/client").WalletAccount;
|
|
45
|
+
}>;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=useBackupWaasKeySharesToGoogleDrive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBackupWaasKeySharesToGoogleDrive.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useBackupWaasKeySharesToGoogleDrive/useBackupWaasKeySharesToGoogleDrive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAEjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,yCAAyC,GAAG,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC,CAAC,CAAC,CAAC;AACxG,KAAK,sCAAsC,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC,CAAC;AAE3G;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,yCAAyC,GAAG;IACtD;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC,sCAAsC,EAAE,yCAAyC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;CACtJ,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,mCAAmC,sBAAsB,yCAAyC;;;;EAI3G,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useCreateWaasWalletAccounts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,KAAK,iCAAiC,EAAE,MAAM,+BAA+B,CAAC"}
|
package/dist/hooks/wrappers/functions/useCreateWaasWalletAccounts/useCreateWaasWalletAccounts.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { createWaasWalletAccounts } from '@dynamic-labs-sdk/client/waas';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
|
|
3
|
+
type CreateWaasWalletAccountsVariables = Parameters<typeof createWaasWalletAccounts>[0];
|
|
4
|
+
type CreateWaasWalletAccountsResult = Awaited<ReturnType<typeof createWaasWalletAccounts>>;
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for {@link useCreateWaasWalletAccounts}: an optional override of the underlying
|
|
7
|
+
* react-query mutation options.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const params: UseCreateWaasWalletAccountsParams = {
|
|
12
|
+
* mutateParams: { onSuccess: () => {} },
|
|
13
|
+
* };
|
|
14
|
+
* ```
|
|
15
|
+
* @see useCreateWaasWalletAccounts
|
|
16
|
+
* @see createWaasWalletAccounts
|
|
17
|
+
*/
|
|
18
|
+
export type UseCreateWaasWalletAccountsParams = {
|
|
19
|
+
/**
|
|
20
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
21
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
22
|
+
*/
|
|
23
|
+
mutateParams?: NonNullable<UseBaseMutationParams<CreateWaasWalletAccountsResult, CreateWaasWalletAccountsVariables>['mutateParams']>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Wraps `createWaasWalletAccounts` from `@dynamic-labs-sdk/client/waas`. Call `mutate(variables)` to
|
|
27
|
+
* create embedded wallet accounts for the signed-in user.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const { mutate, isPending } = useCreateWaasWalletAccounts();
|
|
32
|
+
* <button onClick={() => mutate(variables)} disabled={isPending}>
|
|
33
|
+
* Continue
|
|
34
|
+
* </button>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @returns A react-query mutation whose `mutate`/`mutateAsync` calls `createWaasWalletAccounts` and whose `data` is its resolved value.
|
|
38
|
+
* @see createWaasWalletAccounts
|
|
39
|
+
* @see UseCreateWaasWalletAccountsParams
|
|
40
|
+
*/
|
|
41
|
+
export declare const useCreateWaasWalletAccounts: ({ mutateParams }?: UseCreateWaasWalletAccountsParams) => import("@tanstack/react-query").UseMutationResult<void, Error, {
|
|
42
|
+
chains: import("@dynamic-labs-sdk/client").Chain[] | import("@dynamic-labs-sdk/client/waas").WalletCreationRequirement[];
|
|
43
|
+
password?: string;
|
|
44
|
+
thresholdSignatureScheme?: import("@dynamic-labs-wallet/core").ThresholdSignatureScheme;
|
|
45
|
+
}>;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=useCreateWaasWalletAccounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCreateWaasWalletAccounts.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useCreateWaasWalletAccounts/useCreateWaasWalletAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,iCAAiC,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;AACxF,KAAK,8BAA8B,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC;AAE3F;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC,8BAA8B,EAAE,iCAAiC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;CACtI,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,2BAA2B,sBAAsB,iCAAiC;;;;EAI3F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useDelegateWaasKeyShares/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,KAAK,8BAA8B,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { delegateWaasKeyShares } from '@dynamic-labs-sdk/client/waas';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
|
|
3
|
+
type DelegateWaasKeySharesVariables = Parameters<typeof delegateWaasKeyShares>[0];
|
|
4
|
+
type DelegateWaasKeySharesResult = Awaited<ReturnType<typeof delegateWaasKeyShares>>;
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for {@link useDelegateWaasKeyShares}: an optional override of the underlying
|
|
7
|
+
* react-query mutation options.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const params: UseDelegateWaasKeySharesParams = {
|
|
12
|
+
* mutateParams: { onSuccess: () => {} },
|
|
13
|
+
* };
|
|
14
|
+
* ```
|
|
15
|
+
* @see useDelegateWaasKeyShares
|
|
16
|
+
* @see delegateWaasKeyShares
|
|
17
|
+
*/
|
|
18
|
+
export type UseDelegateWaasKeySharesParams = {
|
|
19
|
+
/**
|
|
20
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
21
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
22
|
+
*/
|
|
23
|
+
mutateParams?: NonNullable<UseBaseMutationParams<DelegateWaasKeySharesResult, DelegateWaasKeySharesVariables>['mutateParams']>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Wraps `delegateWaasKeyShares` from `@dynamic-labs-sdk/client/waas`. Call `mutate(variables)` to
|
|
27
|
+
* delegate signing access for an embedded wallet to your server.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const { mutate, isPending } = useDelegateWaasKeyShares();
|
|
32
|
+
* <button onClick={() => mutate(variables)} disabled={isPending}>
|
|
33
|
+
* Continue
|
|
34
|
+
* </button>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @returns A react-query mutation whose `mutate`/`mutateAsync` calls `delegateWaasKeyShares` and whose `data` is its resolved value.
|
|
38
|
+
* @see delegateWaasKeyShares
|
|
39
|
+
* @see UseDelegateWaasKeySharesParams
|
|
40
|
+
*/
|
|
41
|
+
export declare const useDelegateWaasKeyShares: ({ mutateParams }?: UseDelegateWaasKeySharesParams) => import("@tanstack/react-query").UseMutationResult<void, Error, {
|
|
42
|
+
password?: string;
|
|
43
|
+
walletAccount: import("@dynamic-labs-sdk/client").WalletAccount;
|
|
44
|
+
}>;
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=useDelegateWaasKeyShares.d.ts.map
|
package/dist/hooks/wrappers/functions/useDelegateWaasKeyShares/useDelegateWaasKeyShares.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDelegateWaasKeyShares.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useDelegateWaasKeyShares/useDelegateWaasKeyShares.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,8BAA8B,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC;AAClF,KAAK,2BAA2B,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC;AAErF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC,2BAA2B,EAAE,8BAA8B,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;CAChI,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,wBAAwB,sBAAsB,8BAA8B;;;EAIrF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useDetectSocialRedirectUrl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,KAAK,gCAAgC,GACtC,MAAM,8BAA8B,CAAC"}
|
package/dist/hooks/wrappers/functions/useDetectSocialRedirectUrl/useDetectSocialRedirectUrl.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { detectSocialRedirectUrl } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseQueryParams } from '../../../../foundation/useBaseQuery';
|
|
3
|
+
type DetectSocialRedirectUrlResult = Awaited<ReturnType<typeof detectSocialRedirectUrl>>;
|
|
4
|
+
type DetectSocialRedirectUrlArgs = Parameters<typeof detectSocialRedirectUrl>[0];
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for {@link useDetectSocialRedirectUrl} — the arguments of
|
|
7
|
+
* `detectSocialRedirectUrl` plus an optional react-query options override.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const params: UseDetectSocialRedirectUrlParams = { url };
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @see {@link useDetectSocialRedirectUrl} the hook these parameters configure.
|
|
15
|
+
* @see {@link useCompleteSocialRedirect} the mutation you fire once detection
|
|
16
|
+
* returns `true`.
|
|
17
|
+
*/
|
|
18
|
+
export type UseDetectSocialRedirectUrlParams = DetectSocialRedirectUrlArgs & {
|
|
19
|
+
/**
|
|
20
|
+
* Optional override of any react-query `UseQueryOptions` (retry,
|
|
21
|
+
* staleTime, refetchInterval, etc.).
|
|
22
|
+
*/
|
|
23
|
+
queryParams?: NonNullable<UseBaseQueryParams<DetectSocialRedirectUrlResult>['queryParams']>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Wraps `detectSocialRedirectUrl` from `@dynamic-labs-sdk/client`. Resolves to
|
|
27
|
+
* `true` when the given URL is an OAuth redirect back from a social provider
|
|
28
|
+
* (started by `signInWithSocialRedirect`), so you can decide whether to run
|
|
29
|
+
* `completeSocialRedirect`.
|
|
30
|
+
*
|
|
31
|
+
* @param params - See {@link UseDetectSocialRedirectUrlParams}.
|
|
32
|
+
* @returns A react-query result whose `data` is `true` when the URL is a social
|
|
33
|
+
* OAuth callback, plus the usual `isLoading`/`error` fields.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* const { data: isReturningFromProvider, isLoading } =
|
|
38
|
+
* useDetectSocialRedirectUrl({ url });
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @see {@link useCompleteSocialRedirect} to finish the redirect sign-in once
|
|
42
|
+
* this returns `true`.
|
|
43
|
+
* @see {@link clearSocialRedirectParams} to clean the OAuth parameters from the
|
|
44
|
+
* URL after completion.
|
|
45
|
+
*/
|
|
46
|
+
export declare const useDetectSocialRedirectUrl: ({ queryParams, ...args }: UseDetectSocialRedirectUrlParams) => import("@tanstack/react-query").UseQueryResult<boolean, Error>;
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=useDetectSocialRedirectUrl.d.ts.map
|
package/dist/hooks/wrappers/functions/useDetectSocialRedirectUrl/useDetectSocialRedirectUrl.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDetectSocialRedirectUrl.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useDetectSocialRedirectUrl/useDetectSocialRedirectUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAG9E,KAAK,6BAA6B,GAAG,OAAO,CAC1C,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAC3C,CAAC;AACF,KAAK,2BAA2B,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC;AAEjF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,gCAAgC,GAAG,2BAA2B,GAAG;IAC3E;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CACvB,kBAAkB,CAAC,6BAA6B,CAAC,CAAC,aAAa,CAAC,CACjE,CAAC;CACH,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,0BAA0B,6BAGpC,gCAAgC,mEAK/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useExportWaasClientKeyshares/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,KAAK,kCAAkC,EAAE,MAAM,gCAAgC,CAAC"}
|
package/dist/hooks/wrappers/functions/useExportWaasClientKeyshares/useExportWaasClientKeyshares.d.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { exportWaasClientKeyshares } from '@dynamic-labs-sdk/client/waas';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
|
|
3
|
+
type ExportWaasClientKeysharesVariables = Parameters<typeof exportWaasClientKeyshares>[0];
|
|
4
|
+
type ExportWaasClientKeysharesResult = Awaited<ReturnType<typeof exportWaasClientKeyshares>>;
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for {@link useExportWaasClientKeyshares}: an optional override of the underlying
|
|
7
|
+
* react-query mutation options.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const params: UseExportWaasClientKeysharesParams = {
|
|
12
|
+
* mutateParams: { onSuccess: () => {} },
|
|
13
|
+
* };
|
|
14
|
+
* ```
|
|
15
|
+
* @see useExportWaasClientKeyshares
|
|
16
|
+
* @see exportWaasClientKeyshares
|
|
17
|
+
*/
|
|
18
|
+
export type UseExportWaasClientKeysharesParams = {
|
|
19
|
+
/**
|
|
20
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
21
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
22
|
+
*/
|
|
23
|
+
mutateParams?: NonNullable<UseBaseMutationParams<ExportWaasClientKeysharesResult, ExportWaasClientKeysharesVariables>['mutateParams']>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Wraps `exportWaasClientKeyshares` from `@dynamic-labs-sdk/client/waas`. Call `mutate(variables)` to
|
|
27
|
+
* export an embedded wallet's client key shares.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const { mutate, isPending } = useExportWaasClientKeyshares();
|
|
32
|
+
* <button onClick={() => mutate(variables)} disabled={isPending}>
|
|
33
|
+
* Continue
|
|
34
|
+
* </button>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @returns A react-query mutation whose `mutate`/`mutateAsync` calls `exportWaasClientKeyshares` and whose `data` is its resolved value.
|
|
38
|
+
* @see exportWaasClientKeyshares
|
|
39
|
+
* @see UseExportWaasClientKeysharesParams
|
|
40
|
+
*/
|
|
41
|
+
export declare const useExportWaasClientKeyshares: ({ mutateParams }?: UseExportWaasClientKeysharesParams) => import("@tanstack/react-query").UseMutationResult<void, Error, {
|
|
42
|
+
password?: string;
|
|
43
|
+
walletAccount: import("@dynamic-labs-sdk/client").WalletAccount;
|
|
44
|
+
}>;
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=useExportWaasClientKeyshares.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useExportWaasClientKeyshares.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useExportWaasClientKeyshares/useExportWaasClientKeyshares.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,kCAAkC,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1F,KAAK,+BAA+B,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC;AAE7F;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC,+BAA+B,EAAE,kCAAkC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;CACxI,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,4BAA4B,sBAAsB,kCAAkC;;;EAI7F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useExportWaasPrivateKey/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,KAAK,6BAA6B,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { exportWaasPrivateKey } from '@dynamic-labs-sdk/client/waas';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
|
|
3
|
+
type ExportWaasPrivateKeyVariables = Parameters<typeof exportWaasPrivateKey>[0];
|
|
4
|
+
type ExportWaasPrivateKeyResult = Awaited<ReturnType<typeof exportWaasPrivateKey>>;
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for {@link useExportWaasPrivateKey}: an optional override of the underlying
|
|
7
|
+
* react-query mutation options.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const params: UseExportWaasPrivateKeyParams = {
|
|
12
|
+
* mutateParams: { onSuccess: () => {} },
|
|
13
|
+
* };
|
|
14
|
+
* ```
|
|
15
|
+
* @see useExportWaasPrivateKey
|
|
16
|
+
* @see exportWaasPrivateKey
|
|
17
|
+
*/
|
|
18
|
+
export type UseExportWaasPrivateKeyParams = {
|
|
19
|
+
/**
|
|
20
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
21
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
22
|
+
*/
|
|
23
|
+
mutateParams?: NonNullable<UseBaseMutationParams<ExportWaasPrivateKeyResult, ExportWaasPrivateKeyVariables>['mutateParams']>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Wraps `exportWaasPrivateKey` from `@dynamic-labs-sdk/client/waas`. Call `mutate(variables)` to
|
|
27
|
+
* export an embedded wallet's private key.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const { mutate, isPending } = useExportWaasPrivateKey();
|
|
32
|
+
* <button onClick={() => mutate(variables)} disabled={isPending}>
|
|
33
|
+
* Continue
|
|
34
|
+
* </button>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @returns A react-query mutation whose `mutate`/`mutateAsync` calls `exportWaasPrivateKey` and whose `data` is its resolved value.
|
|
38
|
+
* @see exportWaasPrivateKey
|
|
39
|
+
* @see UseExportWaasPrivateKeyParams
|
|
40
|
+
*/
|
|
41
|
+
export declare const useExportWaasPrivateKey: ({ mutateParams }?: UseExportWaasPrivateKeyParams) => import("@tanstack/react-query").UseMutationResult<void, Error, {
|
|
42
|
+
displayContainer: HTMLElement;
|
|
43
|
+
password?: string;
|
|
44
|
+
walletAccount: import("@dynamic-labs-sdk/client").WalletAccount;
|
|
45
|
+
}>;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=useExportWaasPrivateKey.d.ts.map
|
package/dist/hooks/wrappers/functions/useExportWaasPrivateKey/useExportWaasPrivateKey.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useExportWaasPrivateKey.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useExportWaasPrivateKey/useExportWaasPrivateKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,6BAA6B,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;AAChF,KAAK,0BAA0B,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC;AAEnF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;CAC9H,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,uBAAuB,sBAAsB,6BAA6B;;;;EAInF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useGetWalletRecoveryState/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,KAAK,+BAA+B,GACrC,MAAM,6BAA6B,CAAC"}
|
package/dist/hooks/wrappers/functions/useGetWalletRecoveryState/useGetWalletRecoveryState.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { WalletAccount } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import { getWalletRecoveryState } from '@dynamic-labs-sdk/client/waas';
|
|
3
|
+
import type { UseBaseQueryParams } from '../../../../foundation/useBaseQuery';
|
|
4
|
+
type GetWalletRecoveryStateResult = Awaited<ReturnType<typeof getWalletRecoveryState>>;
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for {@link useGetWalletRecoveryState}: the embedded wallet account to read recovery
|
|
7
|
+
* state for, plus optional react-query options.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const params: UseGetWalletRecoveryStateParams = { walletAccount };
|
|
12
|
+
* ```
|
|
13
|
+
* @see useGetWalletRecoveryState
|
|
14
|
+
* @see getWalletRecoveryState
|
|
15
|
+
*/
|
|
16
|
+
export type UseGetWalletRecoveryStateParams = {
|
|
17
|
+
/**
|
|
18
|
+
* Optional override of any react-query `UseQueryOptions` (retry,
|
|
19
|
+
* staleTime, refetchInterval, etc.).
|
|
20
|
+
*/
|
|
21
|
+
queryParams?: NonNullable<UseBaseQueryParams<GetWalletRecoveryStateResult>['queryParams']>;
|
|
22
|
+
/**
|
|
23
|
+
* **Pseudo-required.** The embedded wallet account to read recovery state
|
|
24
|
+
* for. Accepting `undefined` lets callers wire this up before the wallet
|
|
25
|
+
* account has loaded — the hook stays disabled until a real value is
|
|
26
|
+
* supplied.
|
|
27
|
+
*/
|
|
28
|
+
walletAccount: WalletAccount | undefined;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Returns the recovery state of an embedded wallet account — whether the user
|
|
32
|
+
* still needs to set a password, back up their key shares, etc.
|
|
33
|
+
*
|
|
34
|
+
* Wraps `getWalletRecoveryState` from `@dynamic-labs-sdk/client/waas`. The hook
|
|
35
|
+
* stays disabled until `walletAccount` is defined.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```tsx
|
|
39
|
+
* const { data, isLoading } = useGetWalletRecoveryState({ walletAccount });
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @returns A react-query result whose `data` is the wallet account's recovery state; it stays disabled until `walletAccount` is defined.
|
|
43
|
+
* @see getWalletRecoveryState
|
|
44
|
+
* @see UseGetWalletRecoveryStateParams
|
|
45
|
+
*/
|
|
46
|
+
export declare const useGetWalletRecoveryState: ({ queryParams, walletAccount, }: UseGetWalletRecoveryStateParams) => import("@tanstack/react-query").UseQueryResult<import("@dynamic-labs-wallet/core").WalletRecoveryState, Error>;
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=useGetWalletRecoveryState.d.ts.map
|
package/dist/hooks/wrappers/functions/useGetWalletRecoveryState/useGetWalletRecoveryState.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGetWalletRecoveryState.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useGetWalletRecoveryState/useGetWalletRecoveryState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAG9E,KAAK,4BAA4B,GAAG,OAAO,CACzC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAC1C,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,4BAA4B,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC;IAC3F;;;;;OAKG;IACH,aAAa,EAAE,aAAa,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,yBAAyB,oCAGnC,+BAA+B,mHAW9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useImportWaasPrivateKey/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,KAAK,6BAA6B,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { importWaasPrivateKey } from '@dynamic-labs-sdk/client/waas';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
|
|
3
|
+
type ImportWaasPrivateKeyVariables = Parameters<typeof importWaasPrivateKey>[0];
|
|
4
|
+
type ImportWaasPrivateKeyResult = Awaited<ReturnType<typeof importWaasPrivateKey>>;
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for {@link useImportWaasPrivateKey}: an optional override of the underlying
|
|
7
|
+
* react-query mutation options.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const params: UseImportWaasPrivateKeyParams = {
|
|
12
|
+
* mutateParams: { onSuccess: () => {} },
|
|
13
|
+
* };
|
|
14
|
+
* ```
|
|
15
|
+
* @see useImportWaasPrivateKey
|
|
16
|
+
* @see importWaasPrivateKey
|
|
17
|
+
*/
|
|
18
|
+
export type UseImportWaasPrivateKeyParams = {
|
|
19
|
+
/**
|
|
20
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
21
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
22
|
+
*/
|
|
23
|
+
mutateParams?: NonNullable<UseBaseMutationParams<ImportWaasPrivateKeyResult, ImportWaasPrivateKeyVariables>['mutateParams']>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Wraps `importWaasPrivateKey` from `@dynamic-labs-sdk/client/waas`. Call `mutate(variables)` to
|
|
27
|
+
* import a private key into a new embedded wallet account.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const { mutate, isPending } = useImportWaasPrivateKey();
|
|
32
|
+
* <button onClick={() => mutate(variables)} disabled={isPending}>
|
|
33
|
+
* Continue
|
|
34
|
+
* </button>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @returns A react-query mutation whose `mutate`/`mutateAsync` calls `importWaasPrivateKey` and whose `data` is its resolved value.
|
|
38
|
+
* @see importWaasPrivateKey
|
|
39
|
+
* @see UseImportWaasPrivateKeyParams
|
|
40
|
+
*/
|
|
41
|
+
export declare const useImportWaasPrivateKey: ({ mutateParams }?: UseImportWaasPrivateKeyParams) => import("@tanstack/react-query").UseMutationResult<void, Error, {
|
|
42
|
+
chain: import("@dynamic-labs-sdk/client").Chain;
|
|
43
|
+
privateKey: string;
|
|
44
|
+
thresholdSignatureScheme?: import("@dynamic-labs-wallet/core").ThresholdSignatureScheme;
|
|
45
|
+
}>;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=useImportWaasPrivateKey.d.ts.map
|
package/dist/hooks/wrappers/functions/useImportWaasPrivateKey/useImportWaasPrivateKey.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useImportWaasPrivateKey.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useImportWaasPrivateKey/useImportWaasPrivateKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,6BAA6B,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;AAChF,KAAK,0BAA0B,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC;AAEnF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;CAC9H,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,uBAAuB,sBAAsB,6BAA6B;;;;EAInF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useMergeUserAccounts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,YAAY,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { mergeUserAccounts } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
|
|
3
|
+
type MergeUserAccountsVariables = Parameters<typeof mergeUserAccounts>[0];
|
|
4
|
+
type MergeUserAccountsResult = Awaited<ReturnType<typeof mergeUserAccounts>>;
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for {@link useMergeUserAccounts}: an optional override of the
|
|
7
|
+
* underlying react-query mutation options.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const params: UseMergeUserAccountsParams = {
|
|
12
|
+
* mutateParams: { onSuccess: () => console.log('merged') },
|
|
13
|
+
* };
|
|
14
|
+
* ```
|
|
15
|
+
* @see useMergeUserAccounts
|
|
16
|
+
* @see mergeUserAccounts
|
|
17
|
+
*/
|
|
18
|
+
export type UseMergeUserAccountsParams = {
|
|
19
|
+
/**
|
|
20
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
21
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
22
|
+
*/
|
|
23
|
+
mutateParams?: NonNullable<UseBaseMutationParams<MergeUserAccountsResult, MergeUserAccountsVariables>['mutateParams']>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Completes an account merge after a credential was found to already belong to
|
|
27
|
+
* another user (surfaced as `MergeAccountsConfirmationError` during
|
|
28
|
+
* verification / linking).
|
|
29
|
+
*
|
|
30
|
+
* Wraps `mergeUserAccounts` from `@dynamic-labs-sdk/client`. Call `mutate()`
|
|
31
|
+
* with no arguments to merge directly when there are no conflicts, or
|
|
32
|
+
* `mutate({ conflictResolutions })` with the user's per-field choices when the
|
|
33
|
+
* merge surfaced conflicts. The resolved `data` is the merged user.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* const { mutate: mergeAccounts, isPending } = useMergeUserAccounts();
|
|
38
|
+
*
|
|
39
|
+
* // No conflicts — merge directly:
|
|
40
|
+
* mergeAccounts({});
|
|
41
|
+
*
|
|
42
|
+
* // With conflicts the user resolved:
|
|
43
|
+
* mergeAccounts({ conflictResolutions });
|
|
44
|
+
* ```
|
|
45
|
+
* @returns A react-query mutation whose `mutate`/`mutateAsync` completes the
|
|
46
|
+
* merge and whose `data` is the merged user.
|
|
47
|
+
* @see mergeUserAccounts
|
|
48
|
+
* @see UseMergeUserAccountsParams
|
|
49
|
+
*/
|
|
50
|
+
export declare const useMergeUserAccounts: ({ mutateParams, }?: UseMergeUserAccountsParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs/sdk-api-core").SdkUser, Error, import("@dynamic-labs-sdk/client").MergeUserAccountsParams | undefined>;
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=useMergeUserAccounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMergeUserAccounts.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useMergeUserAccounts/useMergeUserAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,0BAA0B,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1E,KAAK,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC;AAE7E;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CACxB,qBAAqB,CACnB,uBAAuB,EACvB,0BAA0B,CAC3B,CAAC,cAAc,CAAC,CAClB,CAAC;CACH,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,oBAAoB,uBAE9B,0BAA0B,mLAIzB,CAAC"}
|