@dynamic-labs-sdk/react-hooks 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/exports/index.d.ts +20 -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/useGetUserSocialAccounts/useGetUserSocialAccounts.d.ts +3 -1
- package/dist/hooks/wrappers/functions/useGetUserSocialAccounts/useGetUserSocialAccounts.d.ts.map +1 -1
- package/dist/hooks/wrappers/functions/useGetWalletProviderDataByKey/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useGetWalletProviderDataByKey/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useGetWalletProviderDataByKey/useGetWalletProviderDataByKey.d.ts +37 -0
- package/dist/hooks/wrappers/functions/useGetWalletProviderDataByKey/useGetWalletProviderDataByKey.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/useIsDeviceRegistrationRequired/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useIsDeviceRegistrationRequired/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useIsDeviceRegistrationRequired/useIsDeviceRegistrationRequired.d.ts +8 -0
- package/dist/hooks/wrappers/functions/useIsDeviceRegistrationRequired/useIsDeviceRegistrationRequired.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useIsPendingRecoveryCodesAcknowledgment/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useIsPendingRecoveryCodesAcknowledgment/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useIsPendingRecoveryCodesAcknowledgment/useIsPendingRecoveryCodesAcknowledgment.d.ts +9 -0
- package/dist/hooks/wrappers/functions/useIsPendingRecoveryCodesAcknowledgment/useIsPendingRecoveryCodesAcknowledgment.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useIsUserMissingMfaAuth/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useIsUserMissingMfaAuth/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useIsUserMissingMfaAuth/useIsUserMissingMfaAuth.d.ts +8 -0
- package/dist/hooks/wrappers/functions/useIsUserMissingMfaAuth/useIsUserMissingMfaAuth.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useIsUserOnboardingComplete/index.d.ts +2 -0
- package/dist/hooks/wrappers/functions/useIsUserOnboardingComplete/index.d.ts.map +1 -0
- package/dist/hooks/wrappers/functions/useIsUserOnboardingComplete/useIsUserOnboardingComplete.d.ts +9 -0
- package/dist/hooks/wrappers/functions/useIsUserOnboardingComplete/useIsUserOnboardingComplete.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/useOnWalletProviderEvent/useOnWalletProviderEvent.d.ts +4 -1
- package/dist/hooks/wrappers/functions/useOnWalletProviderEvent/useOnWalletProviderEvent.d.ts.map +1 -1
- 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 +502 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +484 -13
- package/dist/index.esm.js.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -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/useIsDeviceRegistrationRequired/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns whether the current user still needs to register this device.
|
|
3
|
+
*
|
|
4
|
+
* Re-renders when the user changes (login, logout, completing device
|
|
5
|
+
* registration). Resolves to `false` while no user is authenticated.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useIsDeviceRegistrationRequired: () => import("@tanstack/react-query").UseQueryResult<boolean, Error>;
|
|
8
|
+
//# sourceMappingURL=useIsDeviceRegistrationRequired.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsDeviceRegistrationRequired.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useIsDeviceRegistrationRequired/useIsDeviceRegistrationRequired.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,sEAOxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useIsPendingRecoveryCodesAcknowledgment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,2CAA2C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns whether the current user still needs to acknowledge their MFA
|
|
3
|
+
* recovery codes.
|
|
4
|
+
*
|
|
5
|
+
* Re-renders when the user changes (login, logout, acknowledging the recovery
|
|
6
|
+
* codes). Resolves to `false` while no user is authenticated.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useIsPendingRecoveryCodesAcknowledgment: () => import("@tanstack/react-query").UseQueryResult<boolean, Error>;
|
|
9
|
+
//# sourceMappingURL=useIsPendingRecoveryCodesAcknowledgment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsPendingRecoveryCodesAcknowledgment.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useIsPendingRecoveryCodesAcknowledgment/useIsPendingRecoveryCodesAcknowledgment.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,uCAAuC,sEAOhD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useIsUserMissingMfaAuth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns whether the current user still needs to complete an MFA challenge.
|
|
3
|
+
*
|
|
4
|
+
* Re-renders when the user changes (login, logout, completing the MFA
|
|
5
|
+
* challenge). Resolves to `false` while no user is authenticated.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useIsUserMissingMfaAuth: () => import("@tanstack/react-query").UseQueryResult<boolean, Error>;
|
|
8
|
+
//# sourceMappingURL=useIsUserMissingMfaAuth.d.ts.map
|
package/dist/hooks/wrappers/functions/useIsUserMissingMfaAuth/useIsUserMissingMfaAuth.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsUserMissingMfaAuth.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useIsUserMissingMfaAuth/useIsUserMissingMfaAuth.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,sEAMhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useIsUserOnboardingComplete/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
|
package/dist/hooks/wrappers/functions/useIsUserOnboardingComplete/useIsUserOnboardingComplete.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns whether the current user has completed every onboarding requirement
|
|
3
|
+
* (KYC fields, MFA, recovery codes acknowledgment, device registration).
|
|
4
|
+
*
|
|
5
|
+
* Re-renders when the user changes (login, logout, completing any onboarding
|
|
6
|
+
* step). Resolves to `false` while no user is authenticated.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useIsUserOnboardingComplete: () => import("@tanstack/react-query").UseQueryResult<boolean, Error>;
|
|
9
|
+
//# sourceMappingURL=useIsUserOnboardingComplete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsUserOnboardingComplete.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useIsUserOnboardingComplete/useIsUserOnboardingComplete.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,sEAOpC,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useMigrateFromFireblocks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,KAAK,8BAA8B,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { migrateFromFireblocks } from '@dynamic-labs-sdk/client/waas';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
|
|
3
|
+
type MigrateFromFireblocksVariables = Parameters<typeof migrateFromFireblocks>[0];
|
|
4
|
+
type MigrateFromFireblocksResult = Awaited<ReturnType<typeof migrateFromFireblocks>>;
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for {@link useMigrateFromFireblocks}: an optional override of the underlying
|
|
7
|
+
* react-query mutation options.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const params: UseMigrateFromFireblocksParams = {
|
|
12
|
+
* mutateParams: { onSuccess: () => {} },
|
|
13
|
+
* };
|
|
14
|
+
* ```
|
|
15
|
+
* @see useMigrateFromFireblocks
|
|
16
|
+
* @see migrateFromFireblocks
|
|
17
|
+
*/
|
|
18
|
+
export type UseMigrateFromFireblocksParams = {
|
|
19
|
+
/**
|
|
20
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
21
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
22
|
+
*/
|
|
23
|
+
mutateParams?: NonNullable<UseBaseMutationParams<MigrateFromFireblocksResult, MigrateFromFireblocksVariables>['mutateParams']>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Wraps `migrateFromFireblocks` from `@dynamic-labs-sdk/client/waas`. Call `mutate(variables)` to
|
|
27
|
+
* migrate a user's legacy Fireblocks wallet to an embedded wallet.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const { mutate, isPending } = useMigrateFromFireblocks();
|
|
32
|
+
* <button onClick={() => mutate(variables)} disabled={isPending}>
|
|
33
|
+
* Continue
|
|
34
|
+
* </button>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @returns A react-query mutation whose `mutate`/`mutateAsync` calls `migrateFromFireblocks` and whose `data` is its resolved value.
|
|
38
|
+
* @see migrateFromFireblocks
|
|
39
|
+
* @see UseMigrateFromFireblocksParams
|
|
40
|
+
*/
|
|
41
|
+
export declare const useMigrateFromFireblocks: ({ mutateParams }?: UseMigrateFromFireblocksParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs-wallet/core").MigrateFromFireblocksResponse, Error, {
|
|
42
|
+
coinTypes?: Record<string, number>;
|
|
43
|
+
deviceId: string;
|
|
44
|
+
expectedAddresses: Record<string, string>;
|
|
45
|
+
jwt: string;
|
|
46
|
+
password: string;
|
|
47
|
+
storage: Record<string, string>;
|
|
48
|
+
}>;
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=useMigrateFromFireblocks.d.ts.map
|
package/dist/hooks/wrappers/functions/useMigrateFromFireblocks/useMigrateFromFireblocks.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMigrateFromFireblocks.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useMigrateFromFireblocks/useMigrateFromFireblocks.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"}
|
package/dist/hooks/wrappers/functions/useOnWalletProviderEvent/useOnWalletProviderEvent.d.ts
CHANGED
|
@@ -16,7 +16,10 @@ export type UseOnWalletProviderEventParams<E extends Extract<keyof WalletProvide
|
|
|
16
16
|
* Wraps `onWalletProviderEvent` from `@dynamic-labs-sdk/client`. Uses a ref to
|
|
17
17
|
* always call the latest callback without re-subscribing, and cleans up the
|
|
18
18
|
* subscription on unmount or when `event` / `walletProviderKey` change. When
|
|
19
|
-
* `walletProviderKey` is `undefined` the hook subscribes to nothing.
|
|
19
|
+
* `walletProviderKey` is `undefined` the hook subscribes to nothing. When the
|
|
20
|
+
* provider cannot be subscribed to (not registered on this client, or it does
|
|
21
|
+
* not expose `events`), the hook logs and subscribes to nothing rather than
|
|
22
|
+
* throwing — an effect throw would unmount the entire app.
|
|
20
23
|
*
|
|
21
24
|
* @example
|
|
22
25
|
* ```tsx
|
package/dist/hooks/wrappers/functions/useOnWalletProviderEvent/useOnWalletProviderEvent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOnWalletProviderEvent.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useOnWalletProviderEvent/useOnWalletProviderEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EAE1B,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"useOnWalletProviderEvent.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useOnWalletProviderEvent/useOnWalletProviderEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EAE1B,MAAM,0BAA0B,CAAC;AAMlC;;;;;;;GAOG;AACH,MAAM,MAAM,8BAA8B,CACxC,CAAC,SAAS,OAAO,CAAC,MAAM,oBAAoB,EAAE,MAAM,CAAC,IACnD,IAAI,CAAC,2BAA2B,CAAC,CAAC,CAAC,EAAE,mBAAmB,CAAC,GAAG;IAC9D,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,wBAAwB,GACnC,CAAC,SAAS,OAAO,CAAC,MAAM,oBAAoB,EAAE,MAAM,CAAC,2CAKpD,8BAA8B,CAAC,CAAC,CAAC,SAsCnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useRefreshWaasWalletAccountShares/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,KAAK,uCAAuC,EAAE,MAAM,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { refreshWaasWalletAccountShares } from '@dynamic-labs-sdk/client/waas';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
|
|
3
|
+
type RefreshWaasWalletAccountSharesVariables = Parameters<typeof refreshWaasWalletAccountShares>[0];
|
|
4
|
+
type RefreshWaasWalletAccountSharesResult = Awaited<ReturnType<typeof refreshWaasWalletAccountShares>>;
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for {@link useRefreshWaasWalletAccountShares}: an optional override of the underlying
|
|
7
|
+
* react-query mutation options.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const params: UseRefreshWaasWalletAccountSharesParams = {
|
|
12
|
+
* mutateParams: { onSuccess: () => {} },
|
|
13
|
+
* };
|
|
14
|
+
* ```
|
|
15
|
+
* @see useRefreshWaasWalletAccountShares
|
|
16
|
+
* @see refreshWaasWalletAccountShares
|
|
17
|
+
*/
|
|
18
|
+
export type UseRefreshWaasWalletAccountSharesParams = {
|
|
19
|
+
/**
|
|
20
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
21
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
22
|
+
*/
|
|
23
|
+
mutateParams?: NonNullable<UseBaseMutationParams<RefreshWaasWalletAccountSharesResult, RefreshWaasWalletAccountSharesVariables>['mutateParams']>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Wraps `refreshWaasWalletAccountShares` from `@dynamic-labs-sdk/client/waas`. Call `mutate(variables)` to
|
|
27
|
+
* refresh an embedded wallet account's key shares.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const { mutate, isPending } = useRefreshWaasWalletAccountShares();
|
|
32
|
+
* <button onClick={() => mutate(variables)} disabled={isPending}>
|
|
33
|
+
* Continue
|
|
34
|
+
* </button>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @returns A react-query mutation whose `mutate`/`mutateAsync` calls `refreshWaasWalletAccountShares` and whose `data` is its resolved value.
|
|
38
|
+
* @see refreshWaasWalletAccountShares
|
|
39
|
+
* @see UseRefreshWaasWalletAccountSharesParams
|
|
40
|
+
*/
|
|
41
|
+
export declare const useRefreshWaasWalletAccountShares: ({ mutateParams }?: UseRefreshWaasWalletAccountSharesParams) => import("@tanstack/react-query").UseMutationResult<void, Error, {
|
|
42
|
+
password?: string;
|
|
43
|
+
walletAccount: import("@dynamic-labs-sdk/client").WalletAccount;
|
|
44
|
+
}>;
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=useRefreshWaasWalletAccountShares.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRefreshWaasWalletAccountShares.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useRefreshWaasWalletAccountShares/useRefreshWaasWalletAccountShares.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,uCAAuC,GAAG,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC,CAAC,CAAC,CAAC;AACpG,KAAK,oCAAoC,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC,CAAC;AAEvG;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,uCAAuC,GAAG;IACpD;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC,oCAAoC,EAAE,uCAAuC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;CAClJ,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,iCAAiC,sBAAsB,uCAAuC;;;EAIvG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useRevokeWaasDelegation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,KAAK,6BAA6B,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { revokeWaasDelegation } from '@dynamic-labs-sdk/client/waas';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
|
|
3
|
+
type RevokeWaasDelegationVariables = Parameters<typeof revokeWaasDelegation>[0];
|
|
4
|
+
type RevokeWaasDelegationResult = Awaited<ReturnType<typeof revokeWaasDelegation>>;
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for {@link useRevokeWaasDelegation}: an optional override of the underlying
|
|
7
|
+
* react-query mutation options.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const params: UseRevokeWaasDelegationParams = {
|
|
12
|
+
* mutateParams: { onSuccess: () => {} },
|
|
13
|
+
* };
|
|
14
|
+
* ```
|
|
15
|
+
* @see useRevokeWaasDelegation
|
|
16
|
+
* @see revokeWaasDelegation
|
|
17
|
+
*/
|
|
18
|
+
export type UseRevokeWaasDelegationParams = {
|
|
19
|
+
/**
|
|
20
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
21
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
22
|
+
*/
|
|
23
|
+
mutateParams?: NonNullable<UseBaseMutationParams<RevokeWaasDelegationResult, RevokeWaasDelegationVariables>['mutateParams']>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Wraps `revokeWaasDelegation` from `@dynamic-labs-sdk/client/waas`. Call `mutate(variables)` to
|
|
27
|
+
* revoke an embedded wallet's previously granted delegated signing access.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const { mutate, isPending } = useRevokeWaasDelegation();
|
|
32
|
+
* <button onClick={() => mutate(variables)} disabled={isPending}>
|
|
33
|
+
* Continue
|
|
34
|
+
* </button>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @returns A react-query mutation whose `mutate`/`mutateAsync` calls `revokeWaasDelegation` and whose `data` is its resolved value.
|
|
38
|
+
* @see revokeWaasDelegation
|
|
39
|
+
* @see UseRevokeWaasDelegationParams
|
|
40
|
+
*/
|
|
41
|
+
export declare const useRevokeWaasDelegation: ({ mutateParams }?: UseRevokeWaasDelegationParams) => import("@tanstack/react-query").UseMutationResult<void, Error, {
|
|
42
|
+
password?: string;
|
|
43
|
+
walletAccount: import("@dynamic-labs-sdk/client").WalletAccount;
|
|
44
|
+
}>;
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=useRevokeWaasDelegation.d.ts.map
|
package/dist/hooks/wrappers/functions/useRevokeWaasDelegation/useRevokeWaasDelegation.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRevokeWaasDelegation.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useRevokeWaasDelegation/useRevokeWaasDelegation.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/useSetWaasWalletAccountPassword/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,KAAK,qCAAqC,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { setWaasWalletAccountPassword } from '@dynamic-labs-sdk/client/waas';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
|
|
3
|
+
type SetWaasWalletAccountPasswordVariables = Parameters<typeof setWaasWalletAccountPassword>[0];
|
|
4
|
+
type SetWaasWalletAccountPasswordResult = Awaited<ReturnType<typeof setWaasWalletAccountPassword>>;
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for {@link useSetWaasWalletAccountPassword}: an optional override of the underlying
|
|
7
|
+
* react-query mutation options.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const params: UseSetWaasWalletAccountPasswordParams = {
|
|
12
|
+
* mutateParams: { onSuccess: () => {} },
|
|
13
|
+
* };
|
|
14
|
+
* ```
|
|
15
|
+
* @see useSetWaasWalletAccountPassword
|
|
16
|
+
* @see setWaasWalletAccountPassword
|
|
17
|
+
*/
|
|
18
|
+
export type UseSetWaasWalletAccountPasswordParams = {
|
|
19
|
+
/**
|
|
20
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
21
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
22
|
+
*/
|
|
23
|
+
mutateParams?: NonNullable<UseBaseMutationParams<SetWaasWalletAccountPasswordResult, SetWaasWalletAccountPasswordVariables>['mutateParams']>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Wraps `setWaasWalletAccountPassword` from `@dynamic-labs-sdk/client/waas`. Call `mutate(variables)` to
|
|
27
|
+
* set a password on an embedded wallet account.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const { mutate, isPending } = useSetWaasWalletAccountPassword();
|
|
32
|
+
* <button onClick={() => mutate(variables)} disabled={isPending}>
|
|
33
|
+
* Continue
|
|
34
|
+
* </button>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @returns A react-query mutation whose `mutate`/`mutateAsync` calls `setWaasWalletAccountPassword` and whose `data` is its resolved value.
|
|
38
|
+
* @see setWaasWalletAccountPassword
|
|
39
|
+
* @see UseSetWaasWalletAccountPasswordParams
|
|
40
|
+
*/
|
|
41
|
+
export declare const useSetWaasWalletAccountPassword: ({ mutateParams }?: UseSetWaasWalletAccountPasswordParams) => import("@tanstack/react-query").UseMutationResult<void, Error, {
|
|
42
|
+
password: string;
|
|
43
|
+
walletAccount: import("@dynamic-labs-sdk/client").WalletAccount;
|
|
44
|
+
}>;
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=useSetWaasWalletAccountPassword.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSetWaasWalletAccountPassword.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useSetWaasWalletAccountPassword/useSetWaasWalletAccountPassword.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAE7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,qCAAqC,GAAG,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC,CAAC,CAAC,CAAC;AAChG,KAAK,kCAAkC,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC,CAAC;AAEnG;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,qCAAqC,GAAG;IAClD;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC,kCAAkC,EAAE,qCAAqC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;CAC9I,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,+BAA+B,sBAAsB,qCAAqC;;;EAInG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useUnlockWallet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { unlockWallet } from '@dynamic-labs-sdk/client/waas';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
|
|
3
|
+
type UnlockWalletVariables = Parameters<typeof unlockWallet>[0];
|
|
4
|
+
type UnlockWalletResult = Awaited<ReturnType<typeof unlockWallet>>;
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for {@link useUnlockWallet}: an optional override of the underlying
|
|
7
|
+
* react-query mutation options.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const params: UseUnlockWalletParams = {
|
|
12
|
+
* mutateParams: { onSuccess: () => {} },
|
|
13
|
+
* };
|
|
14
|
+
* ```
|
|
15
|
+
* @see useUnlockWallet
|
|
16
|
+
* @see unlockWallet
|
|
17
|
+
*/
|
|
18
|
+
export type UseUnlockWalletParams = {
|
|
19
|
+
/**
|
|
20
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
21
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
22
|
+
*/
|
|
23
|
+
mutateParams?: NonNullable<UseBaseMutationParams<UnlockWalletResult, UnlockWalletVariables>['mutateParams']>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Wraps `unlockWallet` from `@dynamic-labs-sdk/client/waas`. Call `mutate(variables)` to
|
|
27
|
+
* unlock an embedded wallet account with its password.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const { mutate, isPending } = useUnlockWallet();
|
|
32
|
+
* <button onClick={() => mutate(variables)} disabled={isPending}>
|
|
33
|
+
* Continue
|
|
34
|
+
* </button>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @returns A react-query mutation whose `mutate`/`mutateAsync` calls `unlockWallet` and whose `data` is its resolved value.
|
|
38
|
+
* @see unlockWallet
|
|
39
|
+
* @see UseUnlockWalletParams
|
|
40
|
+
*/
|
|
41
|
+
export declare const useUnlockWallet: ({ mutateParams }?: UseUnlockWalletParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs-wallet/core").GetWalletResponse, Error, {
|
|
42
|
+
password: string;
|
|
43
|
+
walletAccount: import("@dynamic-labs-sdk/client").WalletAccount;
|
|
44
|
+
}>;
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=useUnlockWallet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUnlockWallet.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useUnlockWallet/useUnlockWallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAChE,KAAK,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;AAEnE;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;CAC9G,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,sBAAsB,qBAAqB;;;EAInE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useUpdateWaasPassword/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { updateWaasPassword } from '@dynamic-labs-sdk/client/waas';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
|
|
3
|
+
type UpdateWaasPasswordVariables = Parameters<typeof updateWaasPassword>[0];
|
|
4
|
+
type UpdateWaasPasswordResult = Awaited<ReturnType<typeof updateWaasPassword>>;
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for {@link useUpdateWaasPassword}: an optional override of the underlying
|
|
7
|
+
* react-query mutation options.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const params: UseUpdateWaasPasswordParams = {
|
|
12
|
+
* mutateParams: { onSuccess: () => {} },
|
|
13
|
+
* };
|
|
14
|
+
* ```
|
|
15
|
+
* @see useUpdateWaasPassword
|
|
16
|
+
* @see updateWaasPassword
|
|
17
|
+
*/
|
|
18
|
+
export type UseUpdateWaasPasswordParams = {
|
|
19
|
+
/**
|
|
20
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
21
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
22
|
+
*/
|
|
23
|
+
mutateParams?: NonNullable<UseBaseMutationParams<UpdateWaasPasswordResult, UpdateWaasPasswordVariables>['mutateParams']>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Wraps `updateWaasPassword` from `@dynamic-labs-sdk/client/waas`. Call `mutate(variables)` to
|
|
27
|
+
* update the password protecting an embedded wallet account.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* const { mutate, isPending } = useUpdateWaasPassword();
|
|
32
|
+
* <button onClick={() => mutate(variables)} disabled={isPending}>
|
|
33
|
+
* Continue
|
|
34
|
+
* </button>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @returns A react-query mutation whose `mutate`/`mutateAsync` calls `updateWaasPassword` and whose `data` is its resolved value.
|
|
38
|
+
* @see updateWaasPassword
|
|
39
|
+
* @see UseUpdateWaasPasswordParams
|
|
40
|
+
*/
|
|
41
|
+
export declare const useUpdateWaasPassword: ({ mutateParams }?: UseUpdateWaasPasswordParams) => import("@tanstack/react-query").UseMutationResult<void, Error, {
|
|
42
|
+
currentPassword: string;
|
|
43
|
+
newPassword: string;
|
|
44
|
+
walletAccount: import("@dynamic-labs-sdk/client").WalletAccount;
|
|
45
|
+
}>;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=useUpdateWaasPassword.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUpdateWaasPassword.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useUpdateWaasPassword/useUpdateWaasPassword.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,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;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC,wBAAwB,EAAE,2BAA2B,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;CAC1H,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,qBAAqB,sBAAsB,2BAA2B;;;;EAI/E,CAAC"}
|
|
@@ -30,6 +30,6 @@ export type UseVerifyOTPParams = {
|
|
|
30
30
|
* </button>
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
|
-
export declare const useVerifyOTP: ({ mutateParams }?: UseVerifyOTPParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs/sdk-api-core").VerifyResponse, Error, import("
|
|
33
|
+
export declare const useVerifyOTP: ({ mutateParams }?: UseVerifyOTPParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs/sdk-api-core").VerifyResponse, Error, import("@dynamic-labs-sdk/client").VerifyOTPParams>;
|
|
34
34
|
export {};
|
|
35
35
|
//# sourceMappingURL=useVerifyOTP.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVerifyOTP.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useVerifyOTP/useVerifyOTP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1D,KAAK,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC;AAE7D,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,eAAe,EACf,kBAAkB,CACnB,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,sBAAsB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"useVerifyOTP.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useVerifyOTP/useVerifyOTP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1D,KAAK,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC;AAE7D,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,eAAe,EACf,kBAAkB,CACnB,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,sBAAsB,kBAAkB,sKAI7D,CAAC"}
|