@getpara/react-sdk-lite 2.18.0 → 2.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.
Files changed (144) hide show
  1. package/dist/aa/hooks/alchemy.d.ts +15 -0
  2. package/dist/aa/hooks/alchemy.js +9 -0
  3. package/dist/aa/hooks/biconomy.d.ts +15 -0
  4. package/dist/aa/hooks/biconomy.js +9 -0
  5. package/dist/aa/hooks/cdp.d.ts +14 -0
  6. package/dist/aa/hooks/cdp.js +9 -0
  7. package/dist/aa/hooks/gelato.d.ts +14 -0
  8. package/dist/aa/hooks/gelato.js +9 -0
  9. package/dist/aa/hooks/pimlico.d.ts +15 -0
  10. package/dist/aa/hooks/pimlico.js +9 -0
  11. package/dist/aa/hooks/porto.d.ts +15 -0
  12. package/dist/aa/hooks/porto.js +9 -0
  13. package/dist/aa/hooks/rhinestone.d.ts +15 -0
  14. package/dist/aa/hooks/rhinestone.js +9 -0
  15. package/dist/aa/hooks/safe.d.ts +15 -0
  16. package/dist/aa/hooks/safe.js +9 -0
  17. package/dist/aa/hooks/thirdweb.d.ts +13 -0
  18. package/dist/aa/hooks/thirdweb.js +9 -0
  19. package/dist/aa/hooks/zerodev.d.ts +15 -0
  20. package/dist/aa/hooks/zerodev.js +9 -0
  21. package/dist/aa/useWagmiSignerEnhancer.d.ts +15 -0
  22. package/dist/aa/useWagmiSignerEnhancer.js +45 -0
  23. package/dist/cli/cli.mjs +0 -0
  24. package/dist/index.d.ts +11 -12
  25. package/dist/index.js +10 -12
  26. package/dist/modal/ParaModal.js +1 -1
  27. package/dist/modal/components/Header/hooks/useStepTitle.d.ts +1 -1
  28. package/dist/modal/components/OnRampComponents/OnRampProviderButton.js +1 -1
  29. package/dist/modal/components/QuantityInput.js +1 -0
  30. package/dist/modal/components/SearchableButtonList.js +20 -11
  31. package/dist/modal/components/flows/account/AddFunds/AddFundsSettings.js +1 -0
  32. package/dist/modal/components/flows/account/Wallet/Wallet.js +1 -1
  33. package/dist/provider/ParaProviderMin.js +46 -54
  34. package/dist/provider/actions/index.d.ts +2 -34
  35. package/dist/provider/actions/index.js +43 -34
  36. package/dist/provider/hooks/mutations/index.d.ts +2 -29
  37. package/dist/provider/hooks/mutations/index.js +3 -58
  38. package/dist/provider/hooks/mutations/useAddAuthMethod.d.ts +2 -2
  39. package/dist/provider/hooks/mutations/useExportPrivateKey.d.ts +24 -4
  40. package/dist/provider/hooks/mutations/useExportPrivateKey.js +7 -2
  41. package/dist/provider/hooks/mutations/useSwitchWallets.d.ts +2 -2
  42. package/dist/provider/hooks/mutations/useVerifyNewAccount.d.ts +2 -2
  43. package/dist/provider/hooks/queries/index.d.ts +2 -2
  44. package/dist/provider/hooks/queries/index.js +2 -3
  45. package/dist/provider/hooks/queries/useAccount.d.ts +14 -69
  46. package/dist/provider/hooks/queries/useAccount.js +30 -136
  47. package/dist/provider/hooks/queries/useParaStatus.d.ts +7 -11
  48. package/dist/provider/hooks/queries/useParaStatus.js +9 -16
  49. package/dist/provider/hooks/queries/useProfileBalance.js +1 -1
  50. package/dist/provider/hooks/utils/useAutoSessionKeepAlive.js +14 -10
  51. package/dist/provider/hooks/utils/useEventListeners.js +1 -1
  52. package/dist/provider/index.d.ts +1 -0
  53. package/dist/provider/utils/renameMutations.d.ts +4 -2
  54. package/package.json +19 -18
  55. package/dist/aa/alchemy/hook.d.ts +0 -16708
  56. package/dist/aa/alchemy/hook.js +0 -26
  57. package/dist/aa/biconomy/hook.d.ts +0 -44
  58. package/dist/aa/biconomy/hook.js +0 -26
  59. package/dist/aa/cdp/hook.d.ts +0 -11
  60. package/dist/aa/cdp/hook.js +0 -26
  61. package/dist/aa/createSmartAccountHook.d.ts +0 -13
  62. package/dist/aa/createSmartAccountHook.js +0 -81
  63. package/dist/aa/gelato/hook.d.ts +0 -11
  64. package/dist/aa/gelato/hook.js +0 -26
  65. package/dist/aa/pimlico/hook.d.ts +0 -838
  66. package/dist/aa/pimlico/hook.js +0 -26
  67. package/dist/aa/porto/hook.d.ts +0 -12
  68. package/dist/aa/porto/hook.js +0 -26
  69. package/dist/aa/rhinestone/hook.d.ts +0 -12
  70. package/dist/aa/rhinestone/hook.js +0 -26
  71. package/dist/aa/safe/hook.d.ts +0 -12
  72. package/dist/aa/safe/hook.js +0 -26
  73. package/dist/aa/thirdweb/hook.d.ts +0 -12
  74. package/dist/aa/thirdweb/hook.js +0 -26
  75. package/dist/aa/types.d.ts +0 -21
  76. package/dist/aa/types.js +0 -1
  77. package/dist/aa/zerodev/hook.d.ts +0 -12
  78. package/dist/aa/zerodev/hook.js +0 -26
  79. package/dist/modal/components/flows/account/AddFunds/MoonPayEmbed.d.ts +0 -2
  80. package/dist/modal/components/flows/account/AddFunds/MoonPayEmbed.js +0 -7
  81. package/dist/provider/actions/getEmbeddedAccount.d.ts +0 -27
  82. package/dist/provider/actions/getEmbeddedAccount.js +0 -66
  83. package/dist/provider/actions/getWallet.d.ts +0 -5
  84. package/dist/provider/actions/getWallet.js +0 -18
  85. package/dist/provider/hooks/mutations/useAuthenticateWithEmailOrPhone.d.ts +0 -34
  86. package/dist/provider/hooks/mutations/useAuthenticateWithEmailOrPhone.js +0 -28
  87. package/dist/provider/hooks/mutations/useAuthenticateWithOAuth.d.ts +0 -34
  88. package/dist/provider/hooks/mutations/useAuthenticateWithOAuth.js +0 -28
  89. package/dist/provider/hooks/mutations/useClaimPregenWallets.d.ts +0 -34
  90. package/dist/provider/hooks/mutations/useClaimPregenWallets.js +0 -31
  91. package/dist/provider/hooks/mutations/useCreateGuestWallets.d.ts +0 -34
  92. package/dist/provider/hooks/mutations/useCreateGuestWallets.js +0 -31
  93. package/dist/provider/hooks/mutations/useCreatePregenWallet.d.ts +0 -34
  94. package/dist/provider/hooks/mutations/useCreatePregenWallet.js +0 -31
  95. package/dist/provider/hooks/mutations/useCreatePregenWalletPerType.d.ts +0 -34
  96. package/dist/provider/hooks/mutations/useCreatePregenWalletPerType.js +0 -28
  97. package/dist/provider/hooks/mutations/useCreateWallet.d.ts +0 -34
  98. package/dist/provider/hooks/mutations/useCreateWallet.js +0 -31
  99. package/dist/provider/hooks/mutations/useCreateWalletPerType.d.ts +0 -34
  100. package/dist/provider/hooks/mutations/useCreateWalletPerType.js +0 -28
  101. package/dist/provider/hooks/mutations/useEnable2fa.d.ts +0 -34
  102. package/dist/provider/hooks/mutations/useEnable2fa.js +0 -28
  103. package/dist/provider/hooks/mutations/useHasPregenWallet.d.ts +0 -34
  104. package/dist/provider/hooks/mutations/useHasPregenWallet.js +0 -28
  105. package/dist/provider/hooks/mutations/useIssueJwt.d.ts +0 -34
  106. package/dist/provider/hooks/mutations/useIssueJwt.js +0 -28
  107. package/dist/provider/hooks/mutations/useKeepSessionAlive.d.ts +0 -33
  108. package/dist/provider/hooks/mutations/useKeepSessionAlive.js +0 -28
  109. package/dist/provider/hooks/mutations/useLoginExternalWallet.d.ts +0 -34
  110. package/dist/provider/hooks/mutations/useLoginExternalWallet.js +0 -31
  111. package/dist/provider/hooks/mutations/useLogout.d.ts +0 -34
  112. package/dist/provider/hooks/mutations/useLogout.js +0 -28
  113. package/dist/provider/hooks/mutations/useResendVerificationCode.d.ts +0 -34
  114. package/dist/provider/hooks/mutations/useResendVerificationCode.js +0 -31
  115. package/dist/provider/hooks/mutations/useSetup2fa.d.ts +0 -34
  116. package/dist/provider/hooks/mutations/useSetup2fa.js +0 -28
  117. package/dist/provider/hooks/mutations/useSignMessage.d.ts +0 -34
  118. package/dist/provider/hooks/mutations/useSignMessage.js +0 -28
  119. package/dist/provider/hooks/mutations/useSignTransaction.d.ts +0 -34
  120. package/dist/provider/hooks/mutations/useSignTransaction.js +0 -31
  121. package/dist/provider/hooks/mutations/useSignUpOrLogIn.d.ts +0 -34
  122. package/dist/provider/hooks/mutations/useSignUpOrLogIn.js +0 -31
  123. package/dist/provider/hooks/mutations/useUpdatePregenWalletIdentifier.d.ts +0 -34
  124. package/dist/provider/hooks/mutations/useUpdatePregenWalletIdentifier.js +0 -31
  125. package/dist/provider/hooks/mutations/useVerify2fa.d.ts +0 -34
  126. package/dist/provider/hooks/mutations/useVerify2fa.js +0 -28
  127. package/dist/provider/hooks/mutations/useVerifyExternalWallet.d.ts +0 -34
  128. package/dist/provider/hooks/mutations/useVerifyExternalWallet.js +0 -31
  129. package/dist/provider/hooks/mutations/useVerifyFarcaster.d.ts +0 -34
  130. package/dist/provider/hooks/mutations/useVerifyFarcaster.js +0 -31
  131. package/dist/provider/hooks/mutations/useVerifyOAuth.d.ts +0 -34
  132. package/dist/provider/hooks/mutations/useVerifyOAuth.js +0 -28
  133. package/dist/provider/hooks/mutations/useVerifyTelegram.d.ts +0 -34
  134. package/dist/provider/hooks/mutations/useVerifyTelegram.js +0 -28
  135. package/dist/provider/hooks/mutations/useWaitForLogin.d.ts +0 -34
  136. package/dist/provider/hooks/mutations/useWaitForLogin.js +0 -31
  137. package/dist/provider/hooks/mutations/useWaitForSignup.d.ts +0 -34
  138. package/dist/provider/hooks/mutations/useWaitForSignup.js +0 -28
  139. package/dist/provider/hooks/mutations/useWaitForWalletCreation.d.ts +0 -34
  140. package/dist/provider/hooks/mutations/useWaitForWalletCreation.js +0 -28
  141. package/dist/provider/hooks/queries/useIsFullyLoggedIn.d.ts +0 -8
  142. package/dist/provider/hooks/queries/useIsFullyLoggedIn.js +0 -29
  143. package/dist/provider/hooks/queries/useWallet.d.ts +0 -5
  144. package/dist/provider/hooks/queries/useWallet.js +0 -26
@@ -1,34 +0,0 @@
1
- import type { ResendVerificationCodeParams } from '@getpara/web-sdk';
2
- export declare const RESEND_VERIFICATION_CODE_KEY = "RESEND_VERIFICATION_CODE";
3
- /**
4
- * React hook for the `resendVerificationCode` mutation.
5
- *
6
- * Returns a mutation result object with all standard fields from `useMutation`, except:
7
- * - `mutate` and `mutateAsync` are replaced by:
8
- * - `resendVerificationCode`: function to trigger the mutation (same as `mutate`)
9
- * - `resendVerificationCodeAsync`: async function to trigger the mutation (same as `mutateAsync`)
10
- *
11
- * @example
12
- * const { resendVerificationCode, resendVerificationCodeAsync } = useResendVerificationCode();
13
- * resendVerificationCode({ ...params });
14
- * // or
15
- * await resendVerificationCodeAsync({ ...params });
16
- */
17
- export declare const useResendVerificationCode: () => {
18
- data: void | undefined;
19
- variables: void | ResendVerificationCodeParams | undefined;
20
- error: Error | null;
21
- isError: boolean;
22
- isIdle: boolean;
23
- isPending: boolean;
24
- isSuccess: boolean;
25
- status: "pending" | "error" | "idle" | "success";
26
- reset: () => void;
27
- context: unknown;
28
- failureCount: number;
29
- failureReason: Error | null;
30
- isPaused: boolean;
31
- submittedAt: number;
32
- resendVerificationCode: import("@tanstack/react-query").UseMutateFunction<void, Error, void | ResendVerificationCodeParams, unknown>;
33
- resendVerificationCodeAsync: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, void | ResendVerificationCodeParams, unknown>;
34
- };
@@ -1,31 +0,0 @@
1
- "use client";
2
- import {
3
- __async
4
- } from "../../../chunk-MMUBH76A.js";
5
- import { useMutation } from "@tanstack/react-query";
6
- import { useClient } from "../utils/index.js";
7
- import { renameMutations } from "../../utils/renameMutations.js";
8
- import { resendVerificationCode } from "../../actions/index.js";
9
- const RESEND_VERIFICATION_CODE_KEY = "RESEND_VERIFICATION_CODE";
10
- const useResendVerificationCode = () => {
11
- const para = useClient();
12
- const mutation = useMutation({
13
- mutationKey: [RESEND_VERIFICATION_CODE_KEY],
14
- mutationFn: (..._0) => __async(void 0, [..._0], function* (args = {}) {
15
- try {
16
- const result = yield resendVerificationCode(para, args);
17
- return result;
18
- } catch (error) {
19
- throw error;
20
- }
21
- })
22
- });
23
- return renameMutations(
24
- mutation,
25
- "resendVerificationCode"
26
- );
27
- };
28
- export {
29
- RESEND_VERIFICATION_CODE_KEY,
30
- useResendVerificationCode
31
- };
@@ -1,34 +0,0 @@
1
- import type { Setup2faResponse } from '@getpara/web-sdk';
2
- export declare const SETUP_2FA_KEY = "SETUP_2FA";
3
- /**
4
- * React hook for the `setup2fa` mutation.
5
- *
6
- * Returns a mutation result object with all standard fields from `useMutation`, except:
7
- * - `mutate` and `mutateAsync` are replaced by:
8
- * - `setup2fa`: function to trigger the mutation (same as `mutate`)
9
- * - `setup2faAsync`: async function to trigger the mutation (same as `mutateAsync`)
10
- *
11
- * @example
12
- * const { setup2fa, setup2faAsync } = useSetup2fa();
13
- * setup2fa({ ...params });
14
- * // or
15
- * await setup2faAsync({ ...params });
16
- */
17
- export declare const useSetup2fa: () => {
18
- data: Setup2faResponse | undefined;
19
- variables: void | undefined;
20
- error: Error | null;
21
- isError: boolean;
22
- isIdle: boolean;
23
- isPending: boolean;
24
- isSuccess: boolean;
25
- status: "pending" | "error" | "idle" | "success";
26
- reset: () => void;
27
- context: unknown;
28
- failureCount: number;
29
- failureReason: Error | null;
30
- isPaused: boolean;
31
- submittedAt: number;
32
- setup2fa: import("@tanstack/react-query").UseMutateFunction<Setup2faResponse, Error, void, unknown>;
33
- setup2faAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Setup2faResponse, Error, void, unknown>;
34
- };
@@ -1,28 +0,0 @@
1
- "use client";
2
- import {
3
- __async
4
- } from "../../../chunk-MMUBH76A.js";
5
- import { useMutation } from "@tanstack/react-query";
6
- import { useClient } from "../utils/index.js";
7
- import { renameMutations } from "../../utils/renameMutations.js";
8
- import { setup2fa } from "../../actions/index.js";
9
- const SETUP_2FA_KEY = "SETUP_2FA";
10
- const useSetup2fa = () => {
11
- const para = useClient();
12
- const mutation = useMutation({
13
- mutationKey: [SETUP_2FA_KEY],
14
- mutationFn: () => __async(void 0, null, function* () {
15
- try {
16
- const result = yield setup2fa(para);
17
- return result;
18
- } catch (error) {
19
- throw error;
20
- }
21
- })
22
- });
23
- return renameMutations(mutation, "setup2fa");
24
- };
25
- export {
26
- SETUP_2FA_KEY,
27
- useSetup2fa
28
- };
@@ -1,34 +0,0 @@
1
- import type { SignMessageParams, FullSignatureRes } from '@getpara/web-sdk';
2
- export declare const SIGN_MESSAGE_KEY = "SIGN_MESSAGE";
3
- /**
4
- * React hook for the `signMessage` mutation.
5
- *
6
- * Returns a mutation result object with all standard fields from `useMutation`, except:
7
- * - `mutate` and `mutateAsync` are replaced by:
8
- * - `signMessage`: function to trigger the mutation (same as `mutate`)
9
- * - `signMessageAsync`: async function to trigger the mutation (same as `mutateAsync`)
10
- *
11
- * @example
12
- * const { signMessage, signMessageAsync } = useSignMessage();
13
- * signMessage({ ...params });
14
- * // or
15
- * await signMessageAsync({ ...params });
16
- */
17
- export declare const useSignMessage: () => {
18
- data: FullSignatureRes | undefined;
19
- variables: SignMessageParams | undefined;
20
- error: Error | null;
21
- isError: boolean;
22
- isIdle: boolean;
23
- isPending: boolean;
24
- isSuccess: boolean;
25
- status: "pending" | "error" | "idle" | "success";
26
- reset: () => void;
27
- context: unknown;
28
- failureCount: number;
29
- failureReason: Error | null;
30
- isPaused: boolean;
31
- submittedAt: number;
32
- signMessage: import("@tanstack/react-query").UseMutateFunction<FullSignatureRes, Error, SignMessageParams, unknown>;
33
- signMessageAsync: import("@tanstack/react-query").UseMutateAsyncFunction<FullSignatureRes, Error, SignMessageParams, unknown>;
34
- };
@@ -1,28 +0,0 @@
1
- "use client";
2
- import {
3
- __async
4
- } from "../../../chunk-MMUBH76A.js";
5
- import { useMutation } from "@tanstack/react-query";
6
- import { useClient } from "../utils/index.js";
7
- import { renameMutations } from "../../utils/renameMutations.js";
8
- import { signMessage } from "../../actions/index.js";
9
- const SIGN_MESSAGE_KEY = "SIGN_MESSAGE";
10
- const useSignMessage = () => {
11
- const para = useClient();
12
- const mutation = useMutation({
13
- mutationKey: [SIGN_MESSAGE_KEY],
14
- mutationFn: (args) => __async(void 0, null, function* () {
15
- try {
16
- const result = yield signMessage(para, args);
17
- return result;
18
- } catch (error) {
19
- throw error;
20
- }
21
- })
22
- });
23
- return renameMutations(mutation, "signMessage");
24
- };
25
- export {
26
- SIGN_MESSAGE_KEY,
27
- useSignMessage
28
- };
@@ -1,34 +0,0 @@
1
- import type { SignTransactionParams, FullSignatureRes } from '@getpara/web-sdk';
2
- export declare const SIGN_TRANSACTION_KEY = "SIGN_TRANSACTION";
3
- /**
4
- * React hook for the `signTransaction` mutation.
5
- *
6
- * Returns a mutation result object with all standard fields from `useMutation`, except:
7
- * - `mutate` and `mutateAsync` are replaced by:
8
- * - `signTransaction`: function to trigger the mutation (same as `mutate`)
9
- * - `signTransactionAsync`: async function to trigger the mutation (same as `mutateAsync`)
10
- *
11
- * @example
12
- * const { signTransaction, signTransactionAsync } = useSignTransaction();
13
- * signTransaction({ ...params });
14
- * // or
15
- * await signTransactionAsync({ ...params });
16
- */
17
- export declare const useSignTransaction: () => {
18
- data: FullSignatureRes | undefined;
19
- variables: SignTransactionParams | undefined;
20
- error: Error | null;
21
- isError: boolean;
22
- isIdle: boolean;
23
- isPending: boolean;
24
- isSuccess: boolean;
25
- status: "pending" | "error" | "idle" | "success";
26
- reset: () => void;
27
- context: unknown;
28
- failureCount: number;
29
- failureReason: Error | null;
30
- isPaused: boolean;
31
- submittedAt: number;
32
- signTransaction: import("@tanstack/react-query").UseMutateFunction<FullSignatureRes, Error, SignTransactionParams, unknown>;
33
- signTransactionAsync: import("@tanstack/react-query").UseMutateAsyncFunction<FullSignatureRes, Error, SignTransactionParams, unknown>;
34
- };
@@ -1,31 +0,0 @@
1
- "use client";
2
- import {
3
- __async
4
- } from "../../../chunk-MMUBH76A.js";
5
- import { useMutation } from "@tanstack/react-query";
6
- import { useClient } from "../utils/index.js";
7
- import { renameMutations } from "../../utils/renameMutations.js";
8
- import { signTransaction } from "../../actions/index.js";
9
- const SIGN_TRANSACTION_KEY = "SIGN_TRANSACTION";
10
- const useSignTransaction = () => {
11
- const para = useClient();
12
- const mutation = useMutation({
13
- mutationKey: [SIGN_TRANSACTION_KEY],
14
- mutationFn: (args) => __async(void 0, null, function* () {
15
- try {
16
- const result = yield signTransaction(para, args);
17
- return result;
18
- } catch (error) {
19
- throw error;
20
- }
21
- })
22
- });
23
- return renameMutations(
24
- mutation,
25
- "signTransaction"
26
- );
27
- };
28
- export {
29
- SIGN_TRANSACTION_KEY,
30
- useSignTransaction
31
- };
@@ -1,34 +0,0 @@
1
- import type { SignUpOrLogInParams, SignUpOrLogInResponse } from '@getpara/web-sdk';
2
- export declare const SIGN_UP_LOG_IN_KEY = "SIGN_UP_LOG_IN";
3
- /**
4
- * React hook for the `signUpOrLogIn` mutation.
5
- *
6
- * Returns a mutation result object with all standard fields from `useMutation`, except:
7
- * - `mutate` and `mutateAsync` are replaced by:
8
- * - `signUpOrLogIn`: function to trigger the mutation (same as `mutate`)
9
- * - `signUpOrLogInAsync`: async function to trigger the mutation (same as `mutateAsync`)
10
- *
11
- * @example
12
- * const { signUpOrLogIn, signUpOrLogInAsync } = useSignUpOrLogIn();
13
- * signUpOrLogIn({ ...params });
14
- * // or
15
- * await signUpOrLogInAsync({ ...params });
16
- */
17
- export declare const useSignUpOrLogIn: () => {
18
- data: SignUpOrLogInResponse | undefined;
19
- variables: SignUpOrLogInParams | undefined;
20
- error: Error | null;
21
- isError: boolean;
22
- isIdle: boolean;
23
- isPending: boolean;
24
- isSuccess: boolean;
25
- status: "pending" | "error" | "idle" | "success";
26
- reset: () => void;
27
- context: unknown;
28
- failureCount: number;
29
- failureReason: Error | null;
30
- isPaused: boolean;
31
- submittedAt: number;
32
- signUpOrLogIn: import("@tanstack/react-query").UseMutateFunction<SignUpOrLogInResponse, Error, SignUpOrLogInParams, unknown>;
33
- signUpOrLogInAsync: import("@tanstack/react-query").UseMutateAsyncFunction<SignUpOrLogInResponse, Error, SignUpOrLogInParams, unknown>;
34
- };
@@ -1,31 +0,0 @@
1
- "use client";
2
- import {
3
- __async
4
- } from "../../../chunk-MMUBH76A.js";
5
- import { useMutation } from "@tanstack/react-query";
6
- import { useClient } from "../utils/index.js";
7
- import { renameMutations } from "../../utils/renameMutations.js";
8
- import { signUpOrLogIn } from "../../actions/index.js";
9
- const SIGN_UP_LOG_IN_KEY = "SIGN_UP_LOG_IN";
10
- const useSignUpOrLogIn = () => {
11
- const para = useClient();
12
- const mutation = useMutation({
13
- mutationKey: [SIGN_UP_LOG_IN_KEY],
14
- mutationFn: (args) => __async(void 0, null, function* () {
15
- try {
16
- const result = yield signUpOrLogIn(para, args);
17
- return result;
18
- } catch (error) {
19
- throw error;
20
- }
21
- })
22
- });
23
- return renameMutations(
24
- mutation,
25
- "signUpOrLogIn"
26
- );
27
- };
28
- export {
29
- SIGN_UP_LOG_IN_KEY,
30
- useSignUpOrLogIn
31
- };
@@ -1,34 +0,0 @@
1
- import type { UpdatePregenWalletIdentifierParams } from '@getpara/web-sdk';
2
- export declare const UPDATE_PREGEN_WALLET_IDENTIFIER_KEY = "UPDATE_PREGEN_WALLET_IDENTIFIER";
3
- /**
4
- * React hook for the `updatePregenWalletIdentifier` mutation.
5
- *
6
- * Returns a mutation result object with all standard fields from `useMutation`, except:
7
- * - `mutate` and `mutateAsync` are replaced by:
8
- * - `updatePregenWalletIdentifier`: function to trigger the mutation (same as `mutate`)
9
- * - `updatePregenWalletIdentifierAsync`: async function to trigger the mutation (same as `mutateAsync`)
10
- *
11
- * @example
12
- * const { updatePregenWalletIdentifier, updatePregenWalletIdentifierAsync } = useUpdatePregenWalletIdentifier();
13
- * updatePregenWalletIdentifier({ ...params });
14
- * // or
15
- * await updatePregenWalletIdentifierAsync({ ...params });
16
- */
17
- export declare const useUpdatePregenWalletIdentifier: () => {
18
- data: void | undefined;
19
- variables: UpdatePregenWalletIdentifierParams | undefined;
20
- error: Error | null;
21
- isError: boolean;
22
- isIdle: boolean;
23
- isPending: boolean;
24
- isSuccess: boolean;
25
- status: "pending" | "error" | "idle" | "success";
26
- reset: () => void;
27
- context: unknown;
28
- failureCount: number;
29
- failureReason: Error | null;
30
- isPaused: boolean;
31
- submittedAt: number;
32
- updatePregenWalletIdentifier: import("@tanstack/react-query").UseMutateFunction<void, Error, UpdatePregenWalletIdentifierParams, unknown>;
33
- updatePregenWalletIdentifierAsync: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, UpdatePregenWalletIdentifierParams, unknown>;
34
- };
@@ -1,31 +0,0 @@
1
- "use client";
2
- import {
3
- __async
4
- } from "../../../chunk-MMUBH76A.js";
5
- import { useMutation } from "@tanstack/react-query";
6
- import { useClient } from "../utils/index.js";
7
- import { renameMutations } from "../../utils/renameMutations.js";
8
- import { updatePregenWalletIdentifier } from "../../actions/index.js";
9
- const UPDATE_PREGEN_WALLET_IDENTIFIER_KEY = "UPDATE_PREGEN_WALLET_IDENTIFIER";
10
- const useUpdatePregenWalletIdentifier = () => {
11
- const para = useClient();
12
- const mutation = useMutation({
13
- mutationKey: [UPDATE_PREGEN_WALLET_IDENTIFIER_KEY],
14
- mutationFn: (args) => __async(void 0, null, function* () {
15
- try {
16
- const result = yield updatePregenWalletIdentifier(para, args);
17
- return result;
18
- } catch (error) {
19
- throw error;
20
- }
21
- })
22
- });
23
- return renameMutations(
24
- mutation,
25
- "updatePregenWalletIdentifier"
26
- );
27
- };
28
- export {
29
- UPDATE_PREGEN_WALLET_IDENTIFIER_KEY,
30
- useUpdatePregenWalletIdentifier
31
- };
@@ -1,34 +0,0 @@
1
- import type { Verify2faParams, Verify2faResponse } from '@getpara/web-sdk';
2
- export declare const VERIFY_2FA_KEY = "VERIFY_2FA";
3
- /**
4
- * React hook for the `verify2fa` mutation.
5
- *
6
- * Returns a mutation result object with all standard fields from `useMutation`, except:
7
- * - `mutate` and `mutateAsync` are replaced by:
8
- * - `verify2fa`: function to trigger the mutation (same as `mutate`)
9
- * - `verify2faAsync`: async function to trigger the mutation (same as `mutateAsync`)
10
- *
11
- * @example
12
- * const { verify2fa, verify2faAsync } = useVerify2fa();
13
- * verify2fa({ ...params });
14
- * // or
15
- * await verify2faAsync({ ...params });
16
- */
17
- export declare const useVerify2fa: () => {
18
- data: Verify2faResponse | undefined;
19
- variables: Verify2faParams | undefined;
20
- error: Error | null;
21
- isError: boolean;
22
- isIdle: boolean;
23
- isPending: boolean;
24
- isSuccess: boolean;
25
- status: "pending" | "error" | "idle" | "success";
26
- reset: () => void;
27
- context: unknown;
28
- failureCount: number;
29
- failureReason: Error | null;
30
- isPaused: boolean;
31
- submittedAt: number;
32
- verify2fa: import("@tanstack/react-query").UseMutateFunction<Verify2faResponse, Error, Verify2faParams, unknown>;
33
- verify2faAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Verify2faResponse, Error, Verify2faParams, unknown>;
34
- };
@@ -1,28 +0,0 @@
1
- "use client";
2
- import {
3
- __async
4
- } from "../../../chunk-MMUBH76A.js";
5
- import { useMutation } from "@tanstack/react-query";
6
- import { useClient } from "../utils/index.js";
7
- import { renameMutations } from "../../utils/renameMutations.js";
8
- import { verify2fa } from "../../actions/index.js";
9
- const VERIFY_2FA_KEY = "VERIFY_2FA";
10
- const useVerify2fa = () => {
11
- const para = useClient();
12
- const mutation = useMutation({
13
- mutationKey: [VERIFY_2FA_KEY],
14
- mutationFn: (args) => __async(void 0, null, function* () {
15
- try {
16
- const result = yield verify2fa(para, args);
17
- return result;
18
- } catch (error) {
19
- throw error;
20
- }
21
- })
22
- });
23
- return renameMutations(mutation, "verify2fa");
24
- };
25
- export {
26
- VERIFY_2FA_KEY,
27
- useVerify2fa
28
- };
@@ -1,34 +0,0 @@
1
- import type { VerifyExternalWalletParams, VerifyExternalWalletResponse } from '@getpara/web-sdk';
2
- export declare const VERIFY_EXTERNAL_WALLET_KEY = "VERIFY_EXTERNAL_WALLET";
3
- /**
4
- * React hook for the `verifyExternalWallet` mutation.
5
- *
6
- * Returns a mutation result object with all standard fields from `useMutation`, except:
7
- * - `mutate` and `mutateAsync` are replaced by:
8
- * - `verifyExternalWallet`: function to trigger the mutation (same as `mutate`)
9
- * - `verifyExternalWalletAsync`: async function to trigger the mutation (same as `mutateAsync`)
10
- *
11
- * @example
12
- * const { verifyExternalWallet, verifyExternalWalletAsync } = useVerifyExternalWallet();
13
- * verifyExternalWallet({ ...params });
14
- * // or
15
- * await verifyExternalWalletAsync({ ...params });
16
- */
17
- export declare const useVerifyExternalWallet: () => {
18
- data: VerifyExternalWalletResponse | undefined;
19
- variables: VerifyExternalWalletParams | undefined;
20
- error: Error | null;
21
- isError: boolean;
22
- isIdle: boolean;
23
- isPending: boolean;
24
- isSuccess: boolean;
25
- status: "pending" | "error" | "idle" | "success";
26
- reset: () => void;
27
- context: unknown;
28
- failureCount: number;
29
- failureReason: Error | null;
30
- isPaused: boolean;
31
- submittedAt: number;
32
- verifyExternalWallet: import("@tanstack/react-query").UseMutateFunction<VerifyExternalWalletResponse, Error, VerifyExternalWalletParams, unknown>;
33
- verifyExternalWalletAsync: import("@tanstack/react-query").UseMutateAsyncFunction<VerifyExternalWalletResponse, Error, VerifyExternalWalletParams, unknown>;
34
- };
@@ -1,31 +0,0 @@
1
- "use client";
2
- import {
3
- __async
4
- } from "../../../chunk-MMUBH76A.js";
5
- import { useMutation } from "@tanstack/react-query";
6
- import { useClient } from "../utils/index.js";
7
- import { renameMutations } from "../../utils/renameMutations.js";
8
- import { verifyExternalWallet } from "../../actions/index.js";
9
- const VERIFY_EXTERNAL_WALLET_KEY = "VERIFY_EXTERNAL_WALLET";
10
- const useVerifyExternalWallet = () => {
11
- const para = useClient();
12
- const mutation = useMutation({
13
- mutationKey: [VERIFY_EXTERNAL_WALLET_KEY],
14
- mutationFn: (args) => __async(void 0, null, function* () {
15
- try {
16
- const result = yield verifyExternalWallet(para, args);
17
- return result;
18
- } catch (error) {
19
- throw error;
20
- }
21
- })
22
- });
23
- return renameMutations(
24
- mutation,
25
- "verifyExternalWallet"
26
- );
27
- };
28
- export {
29
- VERIFY_EXTERNAL_WALLET_KEY,
30
- useVerifyExternalWallet
31
- };
@@ -1,34 +0,0 @@
1
- import type { VerifyFarcasterParams } from '@getpara/web-sdk';
2
- export declare const VERIFY_FARCASTER_KEY = "VERIFY_FARCASTER";
3
- /**
4
- * React hook for the `verifyFarcaster` mutation.
5
- *
6
- * Returns a mutation result object with all standard fields from `useMutation`, except:
7
- * - `mutate` and `mutateAsync` are replaced by:
8
- * - `verifyFarcaster`: function to trigger the mutation (same as `mutate`)
9
- * - `verifyFarcasterAsync`: async function to trigger the mutation (same as `mutateAsync`)
10
- *
11
- * @example
12
- * const { verifyFarcaster, verifyFarcasterAsync } = useVerifyFarcaster();
13
- * verifyFarcaster({ ...params });
14
- * // or
15
- * await verifyFarcasterAsync({ ...params });
16
- */
17
- export declare const useVerifyFarcaster: () => {
18
- data: import("@getpara/core-sdk/dist/types/types/authState.js").AuthStateSignupOrLoginOrDone | undefined;
19
- variables: void | VerifyFarcasterParams | undefined;
20
- error: Error | null;
21
- isError: boolean;
22
- isIdle: boolean;
23
- isPending: boolean;
24
- isSuccess: boolean;
25
- status: "pending" | "error" | "idle" | "success";
26
- reset: () => void;
27
- context: unknown;
28
- failureCount: number;
29
- failureReason: Error | null;
30
- isPaused: boolean;
31
- submittedAt: number;
32
- verifyFarcaster: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk/dist/types/types/authState.js").AuthStateSignupOrLoginOrDone, Error, void | VerifyFarcasterParams, unknown>;
33
- verifyFarcasterAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk/dist/types/types/authState.js").AuthStateSignupOrLoginOrDone, Error, void | VerifyFarcasterParams, unknown>;
34
- };
@@ -1,31 +0,0 @@
1
- "use client";
2
- import {
3
- __async
4
- } from "../../../chunk-MMUBH76A.js";
5
- import { useMutation } from "@tanstack/react-query";
6
- import { useClient } from "../utils/index.js";
7
- import { renameMutations } from "../../utils/renameMutations.js";
8
- import { verifyFarcaster } from "../../actions/index.js";
9
- const VERIFY_FARCASTER_KEY = "VERIFY_FARCASTER";
10
- const useVerifyFarcaster = () => {
11
- const para = useClient();
12
- const mutation = useMutation({
13
- mutationKey: [VERIFY_FARCASTER_KEY],
14
- mutationFn: (..._0) => __async(void 0, [..._0], function* (args = {}) {
15
- try {
16
- const result = yield verifyFarcaster(para, args);
17
- return result;
18
- } catch (error) {
19
- throw error;
20
- }
21
- })
22
- });
23
- return renameMutations(
24
- mutation,
25
- "verifyFarcaster"
26
- );
27
- };
28
- export {
29
- VERIFY_FARCASTER_KEY,
30
- useVerifyFarcaster
31
- };
@@ -1,34 +0,0 @@
1
- import type { VerifyOAuthProcessParams } from '@getpara/web-sdk';
2
- export declare const VERIFY_OAUTH_KEY = "VERIFY_OAUTH";
3
- /**
4
- * React hook for the `verifyOAuth` mutation.
5
- *
6
- * Returns a mutation result object with all standard fields from `useMutation`, except:
7
- * - `mutate` and `mutateAsync` are replaced by:
8
- * - `verifyOAuth`: function to trigger the mutation (same as `mutate`)
9
- * - `verifyOAuthAsync`: async function to trigger the mutation (same as `mutateAsync`)
10
- *
11
- * @example
12
- * const { verifyOAuth, verifyOAuthAsync } = useVerifyOAuth();
13
- * verifyOAuth({ ...params });
14
- * // or
15
- * await verifyOAuthAsync({ ...params });
16
- */
17
- export declare const useVerifyOAuth: () => {
18
- data: import("@getpara/core-sdk/dist/types/types/authState.js").AuthStateSignupOrLoginOrDone | undefined;
19
- variables: VerifyOAuthProcessParams | undefined;
20
- error: Error | null;
21
- isError: boolean;
22
- isIdle: boolean;
23
- isPending: boolean;
24
- isSuccess: boolean;
25
- status: "pending" | "error" | "idle" | "success";
26
- reset: () => void;
27
- context: unknown;
28
- failureCount: number;
29
- failureReason: Error | null;
30
- isPaused: boolean;
31
- submittedAt: number;
32
- verifyOAuth: import("@tanstack/react-query").UseMutateFunction<import("@getpara/core-sdk/dist/types/types/authState.js").AuthStateSignupOrLoginOrDone, Error, VerifyOAuthProcessParams, unknown>;
33
- verifyOAuthAsync: import("@tanstack/react-query").UseMutateAsyncFunction<import("@getpara/core-sdk/dist/types/types/authState.js").AuthStateSignupOrLoginOrDone, Error, VerifyOAuthProcessParams, unknown>;
34
- };
@@ -1,28 +0,0 @@
1
- "use client";
2
- import {
3
- __async
4
- } from "../../../chunk-MMUBH76A.js";
5
- import { useMutation } from "@tanstack/react-query";
6
- import { useClient } from "../utils/index.js";
7
- import { renameMutations } from "../../utils/renameMutations.js";
8
- import { verifyOAuth } from "../../actions/index.js";
9
- const VERIFY_OAUTH_KEY = "VERIFY_OAUTH";
10
- const useVerifyOAuth = () => {
11
- const para = useClient();
12
- const mutation = useMutation({
13
- mutationKey: [VERIFY_OAUTH_KEY],
14
- mutationFn: (args) => __async(void 0, null, function* () {
15
- try {
16
- const result = yield verifyOAuth(para, args);
17
- return result;
18
- } catch (error) {
19
- throw error;
20
- }
21
- })
22
- });
23
- return renameMutations(mutation, "verifyOAuth");
24
- };
25
- export {
26
- VERIFY_OAUTH_KEY,
27
- useVerifyOAuth
28
- };