@dynamic-labs-sdk/react-hooks 1.6.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 +23 -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/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/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/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/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 +428 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +408 -37
- package/dist/index.esm.js.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { proveWalletAccountOwnership } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type ProveWalletAccountOwnershipVariables = Parameters<typeof proveWalletAccountOwnership>[0];
|
|
4
|
+
type ProveWalletAccountOwnershipResult = Awaited<ReturnType<typeof proveWalletAccountOwnership>>;
|
|
5
|
+
export type UseProveWalletAccountOwnershipParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<ProveWalletAccountOwnershipResult, ProveWalletAccountOwnershipVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `proveWalletAccountOwnership` from `@dynamic-labs-sdk/client`. Call `mutate({ walletAccount })` to prove ownership of a connected wallet account by signing a challenge.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: proveOwnership, isPending } =
|
|
18
|
+
* useProveWalletAccountOwnership();
|
|
19
|
+
* proveOwnership({ walletAccount });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const useProveWalletAccountOwnership: ({ mutateParams, }?: UseProveWalletAccountOwnershipParams) => import("@tanstack/react-query").UseMutationResult<{
|
|
23
|
+
messageToSign: string;
|
|
24
|
+
signature: string;
|
|
25
|
+
}, Error, {
|
|
26
|
+
walletAccount: import("@dynamic-labs-sdk/client").WalletAccount;
|
|
27
|
+
}>;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=useProveWalletAccountOwnership.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useProveWalletAccountOwnership.d.ts","sourceRoot":"","sources":["../../../src/hooks/useProveWalletAccountOwnership/useProveWalletAccountOwnership.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;;;;;;;;;GASG;AACH,eAAO,MAAM,8BAA8B,uBAExC,oCAAoC;;;;;EAQnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useRefreshAuth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { refreshAuth } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type RefreshAuthResult = Awaited<ReturnType<typeof refreshAuth>>;
|
|
4
|
+
export type UseRefreshAuthParams = {
|
|
5
|
+
/**
|
|
6
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
7
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
8
|
+
*/
|
|
9
|
+
mutateParams?: UseBaseMutationParams<RefreshAuthResult, void>['mutateParams'];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Wraps `refreshAuth` from `@dynamic-labs-sdk/client`. Takes no arguments — call `mutate()` to refresh the session/JWT; the resolved `data` is a `VerifyResponse`.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* const { mutate: refreshAuth, isPending } = useRefreshAuth();
|
|
17
|
+
* <button onClick={() => refreshAuth()} disabled={isPending}>
|
|
18
|
+
* Refresh session
|
|
19
|
+
* </button>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const useRefreshAuth: ({ mutateParams }?: UseRefreshAuthParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs/sdk-api-core").VerifyResponse, Error, void>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=useRefreshAuth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRefreshAuth.d.ts","sourceRoot":"","sources":["../../../src/hooks/useRefreshAuth/useRefreshAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC;AAEjE,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC;CAC/E,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,sBAAsB,oBAAoB,wHAIjE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useRequestExternalAuthElevatedToken/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EACnC,KAAK,yCAAyC,GAC/C,MAAM,uCAAuC,CAAC"}
|
package/dist/hooks/useRequestExternalAuthElevatedToken/useRequestExternalAuthElevatedToken.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { requestExternalAuthElevatedToken } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type RequestExternalAuthElevatedTokenVariables = Parameters<typeof requestExternalAuthElevatedToken>[0];
|
|
4
|
+
type RequestExternalAuthElevatedTokenResult = Awaited<ReturnType<typeof requestExternalAuthElevatedToken>>;
|
|
5
|
+
export type UseRequestExternalAuthElevatedTokenParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<RequestExternalAuthElevatedTokenResult, RequestExternalAuthElevatedTokenVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `requestExternalAuthElevatedToken` from `@dynamic-labs-sdk/client`. Call `mutate({ externalJwt })` to exchange an externally issued JWT for an elevated-access token.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: requestElevatedToken } =
|
|
18
|
+
* useRequestExternalAuthElevatedToken();
|
|
19
|
+
* requestElevatedToken({ externalJwt });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const useRequestExternalAuthElevatedToken: ({ mutateParams, }?: UseRequestExternalAuthElevatedTokenParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs/sdk-api-core").ExternalAuthAssertionResponse, Error, {
|
|
23
|
+
externalJwt: string;
|
|
24
|
+
}>;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=useRequestExternalAuthElevatedToken.d.ts.map
|
package/dist/hooks/useRequestExternalAuthElevatedToken/useRequestExternalAuthElevatedToken.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRequestExternalAuthElevatedToken.d.ts","sourceRoot":"","sources":["../../../src/hooks/useRequestExternalAuthElevatedToken/useRequestExternalAuthElevatedToken.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,0BAA0B,CAAC;AAE5E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,yCAAyC,GAAG,UAAU,CACzD,OAAO,gCAAgC,CACxC,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,sCAAsC,GAAG,OAAO,CACnD,UAAU,CAAC,OAAO,gCAAgC,CAAC,CACpD,CAAC;AAEF,MAAM,MAAM,yCAAyC,GAAG;IACtD;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,sCAAsC,EACtC,yCAAyC,CAC1C,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,mCAAmC,uBAE7C,yCAAyC;;EAQxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useRevokeAllRegisteredDevices/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,KAAK,mCAAmC,GACzC,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { revokeAllRegisteredDevices } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type RevokeAllRegisteredDevicesResult = Awaited<ReturnType<typeof revokeAllRegisteredDevices>>;
|
|
4
|
+
export type UseRevokeAllRegisteredDevicesParams = {
|
|
5
|
+
/**
|
|
6
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
7
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
8
|
+
*/
|
|
9
|
+
mutateParams?: UseBaseMutationParams<RevokeAllRegisteredDevicesResult, void>['mutateParams'];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Wraps `revokeAllRegisteredDevices` from `@dynamic-labs-sdk/client`. Takes no arguments — call `mutate()` to revoke every device registered to the current user; the resolved `data` is `void`.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* const { mutate: revokeAllDevices, isPending } =
|
|
17
|
+
* useRevokeAllRegisteredDevices();
|
|
18
|
+
* <button onClick={() => revokeAllDevices()} disabled={isPending}>
|
|
19
|
+
* Revoke all devices
|
|
20
|
+
* </button>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare const useRevokeAllRegisteredDevices: ({ mutateParams, }?: UseRevokeAllRegisteredDevicesParams) => import("@tanstack/react-query").UseMutationResult<void, Error, void>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=useRevokeAllRegisteredDevices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRevokeAllRegisteredDevices.d.ts","sourceRoot":"","sources":["../../../src/hooks/useRevokeAllRegisteredDevices/useRevokeAllRegisteredDevices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAEtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,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,IAAI,CACL,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,6BAA6B,uBAEvC,mCAAmC,yEAIlC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSignInWithExternalJwt/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,KAAK,8BAA8B,GACpC,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { signInWithExternalJwt } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type SignInWithExternalJwtVariables = Parameters<typeof signInWithExternalJwt>[0];
|
|
4
|
+
type SignInWithExternalJwtResult = Awaited<ReturnType<typeof signInWithExternalJwt>>;
|
|
5
|
+
export type UseSignInWithExternalJwtParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<SignInWithExternalJwtResult, SignInWithExternalJwtVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `signInWithExternalJwt` from `@dynamic-labs-sdk/client`. Call `mutate({ externalJwt })` to authenticate the user with a JWT issued by an external auth provider.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: signInWithJwt, isPending } = useSignInWithExternalJwt();
|
|
18
|
+
* signInWithJwt({ externalJwt });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const useSignInWithExternalJwt: ({ mutateParams, }?: UseSignInWithExternalJwtParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs/sdk-api-core").VerifyResponse, Error, {
|
|
22
|
+
externalJwt?: string;
|
|
23
|
+
sessionPublicKey?: string;
|
|
24
|
+
} | undefined>;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=useSignInWithExternalJwt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSignInWithExternalJwt.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSignInWithExternalJwt/useSignInWithExternalJwt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,8BAA8B,GAAG,UAAU,CAC9C,OAAO,qBAAqB,CAC7B,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,2BAA2B,GAAG,OAAO,CACxC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CACzC,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,2BAA2B,EAC3B,8BAA8B,CAC/B,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,uBAElC,8BAA8B;;;cAK7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSignInWithSocialPopUp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,KAAK,8BAA8B,GACpC,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { signInWithSocialPopUp } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type SignInWithSocialPopUpVariables = Parameters<typeof signInWithSocialPopUp>[0];
|
|
4
|
+
type SignInWithSocialPopUpResult = Awaited<ReturnType<typeof signInWithSocialPopUp>>;
|
|
5
|
+
export type UseSignInWithSocialPopUpParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<SignInWithSocialPopUpResult, SignInWithSocialPopUpVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `signInWithSocialPopUp` from `@dynamic-labs-sdk/client`. Call `mutate({ provider })` to open the provider's OAuth popup; the resolved `data` is the signed-in `User` (or `null`).
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: signInWithPopUp, data: user } =
|
|
18
|
+
* useSignInWithSocialPopUp();
|
|
19
|
+
* signInWithPopUp({ provider: 'google' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const useSignInWithSocialPopUp: ({ mutateParams, }?: UseSignInWithSocialPopUpParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs/sdk-api-core").SdkUser | null, Error, import("../../../../client/src/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.types").SignInWithSocialPopUpParams>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=useSignInWithSocialPopUp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSignInWithSocialPopUp.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSignInWithSocialPopUp/useSignInWithSocialPopUp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,8BAA8B,GAAG,UAAU,CAC9C,OAAO,qBAAqB,CAC7B,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,2BAA2B,GAAG,OAAO,CACxC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CACzC,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,2BAA2B,EAC3B,8BAA8B,CAC/B,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,uBAElC,8BAA8B,4PAK7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSignInWithSocialRedirect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,GACvC,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { signInWithSocialRedirect } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type SignInWithSocialRedirectVariables = Parameters<typeof signInWithSocialRedirect>[0];
|
|
4
|
+
type SignInWithSocialRedirectResult = Awaited<ReturnType<typeof signInWithSocialRedirect>>;
|
|
5
|
+
export type UseSignInWithSocialRedirectParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<SignInWithSocialRedirectResult, SignInWithSocialRedirectVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `signInWithSocialRedirect` from `@dynamic-labs-sdk/client`. Call `mutate({ provider, redirectUrl })` to redirect the user to the provider's OAuth page; complete the flow with {@link useCompleteSocialAuthentication}.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: signInWithRedirect } = useSignInWithSocialRedirect();
|
|
18
|
+
* signInWithRedirect({ provider: 'google', redirectUrl });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const useSignInWithSocialRedirect: ({ mutateParams, }?: UseSignInWithSocialRedirectParams) => import("@tanstack/react-query").UseMutationResult<void, Error, import("../../../../client/src/modules/auth/social/oauth/signInWithSocialRedirect/signInWithSocialRedirect.types").SignInWithSocialRedirectParams>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=useSignInWithSocialRedirect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSignInWithSocialRedirect.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSignInWithSocialRedirect/useSignInWithSocialRedirect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,iCAAiC,GAAG,UAAU,CACjD,OAAO,wBAAwB,CAChC,CAAC,CAAC,CAAC,CAAC;AACL,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,iCAAiC,CAClC,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,uBAErC,iCAAiC,sNAQhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTransferAmount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,KAAK,uBAAuB,GAC7B,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { transferAmount } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type TransferAmountVariables = Parameters<typeof transferAmount>[0];
|
|
4
|
+
type TransferAmountResult = Awaited<ReturnType<typeof transferAmount>>;
|
|
5
|
+
export type UseTransferAmountParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<TransferAmountResult, TransferAmountVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `transferAmount` from `@dynamic-labs-sdk/client`. Call `mutate({ walletAccount, amount, recipient, token })` to send tokens; the resolved `data` is `{ transactionHash }`.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: transfer, data } = useTransferAmount();
|
|
18
|
+
* transfer({ walletAccount, amount, recipient, token });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const useTransferAmount: ({ mutateParams, }?: UseTransferAmountParams) => import("@tanstack/react-query").UseMutationResult<{
|
|
22
|
+
transactionHash: string;
|
|
23
|
+
}, Error, import("@dynamic-labs-sdk/client").TransferAmountParams>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=useTransferAmount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTransferAmount.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTransferAmount/useTransferAmount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,uBAAuB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AACpE,KAAK,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC;AAEvE,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,oBAAoB,EACpB,uBAAuB,CACxB,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,uBAE3B,uBAAuB;;kEAItB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTransferWalletAccount/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,KAAK,8BAA8B,GACpC,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { transferWalletAccount } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { UseBaseMutationParams } from '../../foundation/useBaseMutation';
|
|
3
|
+
type TransferWalletAccountVariables = Parameters<typeof transferWalletAccount>[0];
|
|
4
|
+
type TransferWalletAccountResult = Awaited<ReturnType<typeof transferWalletAccount>>;
|
|
5
|
+
export type UseTransferWalletAccountParams = {
|
|
6
|
+
/**
|
|
7
|
+
* Optional override of any react-query `UseMutationOptions`
|
|
8
|
+
* (`onSuccess`, `onError`, `retry`, etc.).
|
|
9
|
+
*/
|
|
10
|
+
mutateParams?: UseBaseMutationParams<TransferWalletAccountResult, TransferWalletAccountVariables>['mutateParams'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Wraps `transferWalletAccount` from `@dynamic-labs-sdk/client`. Call `mutate({ walletProviderKey })` to transfer (hand off) a wallet account to the given provider.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: transferWalletAccount, isPending } =
|
|
18
|
+
* useTransferWalletAccount();
|
|
19
|
+
* transferWalletAccount({ walletProviderKey });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const useTransferWalletAccount: ({ mutateParams, }?: UseTransferWalletAccountParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs-sdk/client/core").BaseWalletAccount<import("@dynamic-labs-sdk/client").Chain>, Error, {
|
|
23
|
+
walletProviderKey: string;
|
|
24
|
+
}>;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=useTransferWalletAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTransferWalletAccount.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTransferWalletAccount/useTransferWalletAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,KAAK,8BAA8B,GAAG,UAAU,CAC9C,OAAO,qBAAqB,CAC7B,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,2BAA2B,GAAG,OAAO,CACxC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CACzC,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,2BAA2B,EAC3B,8BAA8B,CAC/B,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,uBAElC,8BAA8B;;EAK7B,CAAC"}
|