appos 0.1.13-0 → 0.1.15-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 (111) hide show
  1. package/build/exports/bun-sqlite-dialect-DN7EKoIB-U6HWGDKS.js +1 -0
  2. package/build/exports/chunk-2LU65C2X.js +1 -0
  3. package/build/exports/chunk-3RRIQKOV.js +2 -0
  4. package/build/exports/chunk-A2LPCJPF.js +5 -0
  5. package/build/exports/chunk-CWTDMDIJ.js +2 -0
  6. package/build/exports/chunk-FBFACBKZ.js +20 -0
  7. package/build/exports/chunk-FZ26Y4SI.js +1 -0
  8. package/build/exports/chunk-GQYUAAFT.js +1 -0
  9. package/build/exports/chunk-HZYRJBRQ.js +1 -0
  10. package/build/exports/chunk-IAPQO6XO.js +1 -0
  11. package/build/exports/chunk-JIMTVXLP.js +5 -0
  12. package/build/exports/chunk-KNTGSRCW.js +20 -0
  13. package/build/exports/chunk-KRQ2L5OP.js +1 -0
  14. package/build/exports/chunk-MQK6VFZR.js +1 -0
  15. package/build/exports/chunk-N756FM5W.js +6 -0
  16. package/build/exports/chunk-NJ2TZAVN.js +169 -0
  17. package/build/exports/chunk-NM7CITTT.js +2 -0
  18. package/build/exports/chunk-PECJ5CRS.js +1 -0
  19. package/build/exports/chunk-PYGCG54X.js +94 -0
  20. package/build/exports/chunk-QMFB7WUQ.js +1 -0
  21. package/build/exports/chunk-QWUKON2B.js +4 -0
  22. package/build/exports/chunk-S3F2U5VR.js +1 -0
  23. package/build/exports/chunk-S6CGHQRG.js +2 -0
  24. package/build/exports/chunk-TLDYRTHH.js +1 -0
  25. package/build/exports/chunk-TX6WXZHJ.js +1 -0
  26. package/build/exports/chunk-Y6DVQ7FD.js +1 -0
  27. package/build/exports/chunk-YBDDYGAW.js +1 -0
  28. package/build/exports/client.d.ts +2082 -2093
  29. package/build/exports/client.js +60 -22
  30. package/build/exports/date.js +1 -1
  31. package/build/exports/db.js +9 -0
  32. package/build/exports/dist-es-442MVKMG.js +1 -0
  33. package/build/exports/dist-es-5NPX4IPA.js +2 -0
  34. package/build/exports/dist-es-AAGJZOKW.js +1 -0
  35. package/build/exports/dist-es-BA4XRQMD.js +1 -0
  36. package/build/exports/dist-es-CEXBPGKD.js +1 -0
  37. package/build/exports/dist-es-D7P74EQC.js +2 -0
  38. package/build/exports/dist-es-K23RHFIG.js +2 -0
  39. package/build/exports/dist-es-K6CZFUD7.js +5 -0
  40. package/build/exports/dist-es-PV5MXZPQ.js +5 -0
  41. package/build/exports/dist-es-PV6DSUWC.js +1 -0
  42. package/build/exports/dist-es-PYWXCUQO.js +2 -0
  43. package/build/exports/dist-es-QLJ2PEMO.js +1 -0
  44. package/build/exports/dist-es-TDQNJYF5.js +1 -0
  45. package/build/exports/dist-es-VXQY2642.js +1 -0
  46. package/build/exports/event-streams-JL44VPIA.js +1 -0
  47. package/build/exports/file-preview-dialog-XJMPJ764.js +15 -0
  48. package/build/exports/kysely-adapter-UB5EKM3L.js +1 -0
  49. package/build/exports/loadSso-ATQGBCEY.js +1 -0
  50. package/build/exports/loadSso-ILXKFPPV.js +1 -0
  51. package/build/exports/magic-string.es-TEACLLHX.js +13 -0
  52. package/build/exports/memory-adapter-LJJR2XXS.js +1 -0
  53. package/build/exports/node-ponyfill-6NJTIN4I.js +1 -0
  54. package/build/exports/node-sqlite-dialect-BqISUSC3-3545EWOZ.js +1 -0
  55. package/build/exports/plugin-56OEBMME.js +4 -0
  56. package/build/exports/server.d.ts +71779 -0
  57. package/build/exports/server.js +435 -0
  58. package/build/exports/sso-oidc-7POVDJYK.js +1 -0
  59. package/build/exports/sso-oidc-TUR3VC4Y.js +1 -0
  60. package/build/exports/sts-35P3OWOX.js +6 -0
  61. package/build/exports/sts-ZDKVF6HW.js +1 -0
  62. package/build/exports/test.d.ts +8942 -0
  63. package/build/exports/test.js +1583 -0
  64. package/build/exports/ui/index.d.ts +568 -1595
  65. package/build/exports/ui/index.js +162 -112
  66. package/build/exports/utils.js +1 -1
  67. package/build/exports/zod.js +13 -13
  68. package/package.json +3 -3
  69. package/build/exports/adapter-factory-CLtf7vT5-DghYA9zq.mjs +0 -88
  70. package/build/exports/bun-sqlite-dialect-DN7EKoIB-0pWIoG0L.mjs +0 -1
  71. package/build/exports/chunk-BYI67GdN.mjs +0 -1
  72. package/build/exports/chunk-DQj_Q5LL.mjs +0 -1
  73. package/build/exports/client-Cf0k1wnb.mjs +0 -7
  74. package/build/exports/date.d.ts +0 -1
  75. package/build/exports/db.d.mts +0 -5195
  76. package/build/exports/db.mjs +0 -8
  77. package/build/exports/dialect-BeMwdQoz-D41NdSow.mjs +0 -1
  78. package/build/exports/dist-cjs-6zIKAlZR.mjs +0 -1
  79. package/build/exports/dist-cjs-8ShtoC4L.mjs +0 -1
  80. package/build/exports/dist-cjs-8w9IfsHf.mjs +0 -1
  81. package/build/exports/dist-cjs-B5EVkyOL.mjs +0 -1
  82. package/build/exports/dist-cjs-B8eo7PtO.mjs +0 -1
  83. package/build/exports/dist-cjs-BilOG_GK.mjs +0 -5
  84. package/build/exports/dist-cjs-CG4G0SgT.mjs +0 -1
  85. package/build/exports/dist-cjs-CWQnfnl0.mjs +0 -22
  86. package/build/exports/dist-cjs-D9iFq61w.mjs +0 -1
  87. package/build/exports/dist-cjs-DBYzdOBR.mjs +0 -10
  88. package/build/exports/dist-cjs-DO06FS0-.mjs +0 -1
  89. package/build/exports/dist-cjs-DhrATPLi.mjs +0 -1
  90. package/build/exports/dist-cjs-DpVGmjIF.mjs +0 -1
  91. package/build/exports/dist-cjs-W4znRhKQ.mjs +0 -1
  92. package/build/exports/dist-cjs-hp3M87Bc.mjs +0 -1
  93. package/build/exports/esm-DPet4lFW.mjs +0 -3
  94. package/build/exports/event-streams-BOfsfbfw.mjs +0 -1
  95. package/build/exports/file-preview-dialog-Cugg8tEc.mjs +0 -59
  96. package/build/exports/kysely-adapter-CGc8Omn1.mjs +0 -1
  97. package/build/exports/magic-string.es-jZcifc5m.mjs +0 -14
  98. package/build/exports/memory-adapter-CVX5yLJe.mjs +0 -1
  99. package/build/exports/node-ponyfill-PofhX7d2.mjs +0 -1
  100. package/build/exports/node-sqlite-dialect-BqISUSC3-DYvTLBpY.mjs +0 -1
  101. package/build/exports/package-DfozRyK6.mjs +0 -1
  102. package/build/exports/react-dom-CPjM_WCt.mjs +0 -42
  103. package/build/exports/server.d.mts +0 -71761
  104. package/build/exports/server.mjs +0 -325
  105. package/build/exports/sso-oidc-Cx-v4ZN4.mjs +0 -1
  106. package/build/exports/sts-CNfip6wL.mjs +0 -1
  107. package/build/exports/sts-DOnaOVV9.mjs +0 -1
  108. package/build/exports/test.d.mts +0 -8922
  109. package/build/exports/test.mjs +0 -1255
  110. package/build/exports/utils.d.ts +0 -21
  111. package/build/exports/zod.d.ts +0 -2
@@ -1,13 +1,12 @@
1
- import { ChangeEvent, DragEvent, InputHTMLAttributes, ReactNode } from "react";
2
- import { AuthUIFeatures } from "#app/.server/primitives/auth.ts";
3
- import * as _better_fetch_fetch0 from "@better-fetch/fetch";
4
- import * as better_auth_client_plugins0 from "better-auth/client/plugins";
5
- import * as better_auth0 from "better-auth";
6
- import * as nanostores0 from "nanostores";
7
- import { Socket } from "socket.io-client";
8
- import { ClientToServerEvents, ServerToClientEvents } from "#app/.server/realtime.ts";
1
+ import { DragEvent, ChangeEvent, InputHTMLAttributes, ReactNode } from 'react';
2
+ import { AuthUIFeatures } from '#app/.server/primitives/auth.ts';
3
+ import * as nanostores from 'nanostores';
4
+ import * as better_auth from 'better-auth';
5
+ import * as better_auth_client_plugins from 'better-auth/client/plugins';
6
+ import * as _better_fetch_fetch from '@better-fetch/fetch';
7
+ import { Socket } from 'socket.io-client';
8
+ import { ServerToClientEvents, ClientToServerEvents } from '#app/.server/realtime.ts';
9
9
 
10
- //#region app/hooks/use-env.d.ts
11
10
  /**
12
11
  * Hook to access public environment variables passed from the server.
13
12
  * These are client-safe values that can be exposed to the browser.
@@ -17,23 +16,22 @@ import { ClientToServerEvents, ServerToClientEvents } from "#app/.server/realtim
17
16
  * const siteKey = env.CF_TURNSTILE_SITE_KEY;
18
17
  */
19
18
  declare function useEnv(): {
20
- APP_NAME: any;
21
- APP_DESC: any;
22
- CF_TURNSTILE_SITE_KEY: any;
19
+ APP_NAME: any;
20
+ APP_DESC: any;
21
+ CF_TURNSTILE_SITE_KEY: any;
23
22
  };
24
- //#endregion
25
- //#region app/hooks/use-file-upload.d.ts
23
+
26
24
  /**
27
25
  * Core validation configuration shared between frontend and backend.
28
26
  * This is the single source of truth for upload validation rules.
29
27
  */
30
28
  declare const UPLOAD_VALIDATION: {
31
- readonly allowedExtensions: readonly ["jpg", "jpeg", "png", "gif", "svg", "webp", "mp4", "webm", "mp3", "wav", "pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "md", "csv"];
32
- readonly allowedContentTypes: readonly ["image/", "video/", "audio/", "application/pdf", "application/msword", "application/vnd.ms-", "application/vnd.openxmlformats", "text/"];
33
- readonly maxFileSizes: {
34
- readonly direct: number;
35
- readonly server: number;
36
- };
29
+ readonly allowedExtensions: readonly ["jpg", "jpeg", "png", "gif", "svg", "webp", "mp4", "webm", "mp3", "wav", "pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "md", "csv"];
30
+ readonly allowedContentTypes: readonly ["image/", "video/", "audio/", "application/pdf", "application/msword", "application/vnd.ms-", "application/vnd.openxmlformats", "text/"];
31
+ readonly maxFileSizes: {
32
+ readonly direct: number;
33
+ readonly server: number;
34
+ };
37
35
  };
38
36
  /**
39
37
  * Check if a file extension is allowed.
@@ -59,26 +57,26 @@ declare function validateUpload(filename: string, contentType: string): void;
59
57
  * Backend uses UPLOAD_VALIDATION for actual validation.
60
58
  */
61
59
  declare const UPLOAD_PRESETS: {
62
- readonly avatar: {
63
- readonly maxSize: number;
64
- readonly accept: string;
65
- readonly multiple: false;
66
- };
67
- readonly image: {
68
- readonly maxSize: number;
69
- readonly accept: string;
70
- readonly multiple: true;
71
- };
72
- readonly document: {
73
- readonly maxSize: number;
74
- readonly accept: string;
75
- readonly multiple: true;
76
- };
77
- readonly file: {
78
- readonly maxSize: number;
79
- readonly accept: string;
80
- readonly multiple: true;
81
- };
60
+ readonly avatar: {
61
+ readonly maxSize: number;
62
+ readonly accept: string;
63
+ readonly multiple: false;
64
+ };
65
+ readonly image: {
66
+ readonly maxSize: number;
67
+ readonly accept: string;
68
+ readonly multiple: true;
69
+ };
70
+ readonly document: {
71
+ readonly maxSize: number;
72
+ readonly accept: string;
73
+ readonly multiple: true;
74
+ };
75
+ readonly file: {
76
+ readonly maxSize: number;
77
+ readonly accept: string;
78
+ readonly multiple: true;
79
+ };
82
80
  };
83
81
  type UploadPreset = keyof typeof UPLOAD_PRESETS;
84
82
  /**
@@ -90,10 +88,10 @@ type UploadPreset = keyof typeof UPLOAD_PRESETS;
90
88
  * @returns React element with the appropriate icon
91
89
  */
92
90
  declare function getFileIcon(file: {
93
- file: File | {
94
- type: string;
95
- name: string;
96
- };
91
+ file: File | {
92
+ type: string;
93
+ name: string;
94
+ };
97
95
  }, iconSize?: string): ReactNode;
98
96
  /**
99
97
  * Get a preview element for a file - either an image preview or file icon.
@@ -104,84 +102,83 @@ declare function getFileIcon(file: {
104
102
  * @returns React element with preview or icon
105
103
  */
106
104
  declare function getFilePreview(file: {
107
- file: File | {
108
- type: string;
109
- name: string;
110
- url?: string;
111
- };
112
- preview?: string;
105
+ file: File | {
106
+ type: string;
107
+ name: string;
108
+ url?: string;
109
+ };
110
+ preview?: string;
113
111
  }, containerClassName?: string): ReactNode;
114
112
  type FileMetadata = {
115
- name: string;
116
- size: number;
117
- type: string;
118
- url: string;
119
- id: string;
113
+ name: string;
114
+ size: number;
115
+ type: string;
116
+ url: string;
117
+ id: string;
120
118
  };
121
119
  type FileWithPreview = {
122
- file: File | FileMetadata;
123
- id: string;
124
- preview?: string;
125
- blobId?: string;
126
- uploadStatus?: "pending" | "uploading" | "completed" | "error";
127
- uploadProgress?: number;
128
- uploadError?: string;
120
+ file: File | FileMetadata;
121
+ id: string;
122
+ preview?: string;
123
+ blobId?: string;
124
+ uploadStatus?: "pending" | "uploading" | "completed" | "error";
125
+ uploadProgress?: number;
126
+ uploadError?: string;
129
127
  };
130
128
  type FileUploadMessages = {
131
- fileSizeError?: string;
132
- fileTypeError?: string;
133
- maxFilesError?: string;
134
- maxFilesErrorSingle?: string;
129
+ fileSizeError?: string;
130
+ fileTypeError?: string;
131
+ maxFilesError?: string;
132
+ maxFilesErrorSingle?: string;
135
133
  };
136
134
  type FileUploadOptions = {
137
- preset?: UploadPreset;
138
- maxFiles?: number;
139
- maxSize?: number;
140
- accept?: string;
141
- multiple?: boolean;
142
- messages?: FileUploadMessages;
143
- initialFiles?: FileMetadata[];
144
- onFilesChange?: (files: FileWithPreview[]) => void;
145
- onFilesAdded?: (addedFiles: FileWithPreview[]) => void;
146
- autoUpload?: boolean;
147
- serviceName?: "private" | "public";
148
- metadata?: Record<string, any>;
149
- onFileUploaded?: (file: FileWithPreview) => void;
135
+ preset?: UploadPreset;
136
+ maxFiles?: number;
137
+ maxSize?: number;
138
+ accept?: string;
139
+ multiple?: boolean;
140
+ messages?: FileUploadMessages;
141
+ initialFiles?: FileMetadata[];
142
+ onFilesChange?: (files: FileWithPreview[]) => void;
143
+ onFilesAdded?: (addedFiles: FileWithPreview[]) => void;
144
+ autoUpload?: boolean;
145
+ serviceName?: "private" | "public";
146
+ metadata?: Record<string, any>;
147
+ onFileUploaded?: (file: FileWithPreview) => void;
150
148
  };
151
149
  type FileUploadState = {
152
- files: FileWithPreview[];
153
- isDragging: boolean;
154
- errors: string[];
150
+ files: FileWithPreview[];
151
+ isDragging: boolean;
152
+ errors: string[];
155
153
  };
156
154
  type FileUploadActions = {
157
- addFiles: (files: FileList | File[]) => void;
158
- removeFile: (id: string) => void;
159
- clearFiles: () => void;
160
- clearErrors: () => void;
161
- handleDragEnter: (e: DragEvent<HTMLElement>) => void;
162
- handleDragLeave: (e: DragEvent<HTMLElement>) => void;
163
- handleDragOver: (e: DragEvent<HTMLElement>) => void;
164
- handleDrop: (e: DragEvent<HTMLElement>) => void;
165
- handleFileChange: (e: ChangeEvent<HTMLInputElement>) => void;
166
- openFileDialog: () => void;
167
- getInputProps: (props?: InputHTMLAttributes<HTMLInputElement>) => InputHTMLAttributes<HTMLInputElement> & {
168
- ref: any;
169
- };
155
+ addFiles: (files: FileList | File[]) => void;
156
+ removeFile: (id: string) => void;
157
+ clearFiles: () => void;
158
+ clearErrors: () => void;
159
+ handleDragEnter: (e: DragEvent<HTMLElement>) => void;
160
+ handleDragLeave: (e: DragEvent<HTMLElement>) => void;
161
+ handleDragOver: (e: DragEvent<HTMLElement>) => void;
162
+ handleDrop: (e: DragEvent<HTMLElement>) => void;
163
+ handleFileChange: (e: ChangeEvent<HTMLInputElement>) => void;
164
+ openFileDialog: () => void;
165
+ getInputProps: (props?: InputHTMLAttributes<HTMLInputElement>) => InputHTMLAttributes<HTMLInputElement> & {
166
+ ref: any;
167
+ };
170
168
  };
171
169
  declare const useFileUpload: (options?: FileUploadOptions) => [FileUploadState, FileUploadActions];
172
170
  declare const formatBytes: (bytes: number, decimals?: number) => string;
173
- //#endregion
174
- //#region app/lib/auth.d.ts
171
+
175
172
  /**
176
173
  * The options for defining the auth client.
177
174
  */
178
175
  interface DefineAuthClientOptions {
179
- /**
180
- * UI-safe feature flags from server.
181
- *
182
- * Used to conditionally enable client-side plugins based on server configuration.
183
- */
184
- features: AuthUIFeatures;
176
+ /**
177
+ * UI-safe feature flags from server.
178
+ *
179
+ * Used to conditionally enable client-side plugins based on server configuration.
180
+ */
181
+ features: AuthUIFeatures;
185
182
  }
186
183
  /**
187
184
  * Define the authentication client for the application.
@@ -189,2056 +186,2048 @@ interface DefineAuthClientOptions {
189
186
  * @param param0 The options for defining the auth client.
190
187
  * @returns
191
188
  */
192
- declare function defineAuthClient({
193
- features
194
- }: DefineAuthClientOptions): {
195
- signIn: {
196
- social: <FetchOptions extends {
197
- headers?: (HeadersInit & (HeadersInit | {
198
- accept: "application/json" | "text/plain" | "application/octet-stream";
199
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
200
- authorization: "Bearer" | "Basic";
201
- })) | undefined;
202
- cache?: RequestCache | undefined;
203
- credentials?: RequestCredentials | undefined;
204
- integrity?: string | undefined;
205
- keepalive?: boolean | undefined;
206
- method?: string | undefined;
207
- mode?: RequestMode | undefined;
208
- priority?: RequestPriority | undefined;
209
- redirect?: RequestRedirect | undefined;
210
- referrer?: string | undefined;
211
- referrerPolicy?: ReferrerPolicy | undefined;
212
- signal?: (AbortSignal | null) | undefined;
213
- window?: null | undefined;
214
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
215
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
216
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
217
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
218
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
219
- hookOptions?: {
220
- cloneResponse?: boolean;
221
- } | undefined;
222
- timeout?: number | undefined;
223
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
224
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
225
- baseURL?: string | undefined;
226
- throw?: boolean | undefined;
227
- auth?: ({
228
- type: "Bearer";
229
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
230
- } | {
231
- type: "Basic";
232
- username: string | (() => string | undefined) | undefined;
233
- password: string | (() => string | undefined) | undefined;
234
- } | {
235
- type: "Custom";
236
- prefix: string | (() => string | undefined) | undefined;
237
- value: string | (() => string | undefined) | undefined;
238
- }) | undefined;
239
- body?: (Partial<{
240
- provider: unknown;
241
- callbackURL?: string | undefined;
242
- newUserCallbackURL?: string | undefined;
243
- errorCallbackURL?: string | undefined;
244
- disableRedirect?: boolean | undefined;
245
- idToken?: {
246
- token: string;
247
- nonce?: string | undefined;
248
- accessToken?: string | undefined;
249
- refreshToken?: string | undefined;
250
- expiresAt?: number | undefined;
189
+ declare function defineAuthClient({ features }: DefineAuthClientOptions): {
190
+ signIn: {
191
+ social: <FetchOptions extends {
192
+ method?: string | undefined;
193
+ mode?: RequestMode | undefined;
194
+ headers?: (HeadersInit & (HeadersInit | {
195
+ accept: "application/json" | "text/plain" | "application/octet-stream";
196
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
197
+ authorization: "Bearer" | "Basic";
198
+ })) | undefined;
199
+ cache?: RequestCache | undefined;
200
+ credentials?: RequestCredentials | undefined;
201
+ integrity?: string | undefined;
202
+ keepalive?: boolean | undefined;
203
+ priority?: RequestPriority | undefined;
204
+ redirect?: RequestRedirect | undefined;
205
+ referrer?: string | undefined;
206
+ referrerPolicy?: ReferrerPolicy | undefined;
207
+ signal?: (AbortSignal | null) | undefined;
208
+ window?: null | undefined;
209
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
210
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
211
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
212
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
213
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
214
+ hookOptions?: {
215
+ cloneResponse?: boolean;
216
+ } | undefined;
217
+ timeout?: number | undefined;
218
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
219
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
220
+ baseURL?: string | undefined;
221
+ throw?: boolean | undefined;
222
+ auth?: ({
223
+ type: "Bearer";
224
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
225
+ } | {
226
+ type: "Basic";
227
+ username: string | (() => string | undefined) | undefined;
228
+ password: string | (() => string | undefined) | undefined;
229
+ } | {
230
+ type: "Custom";
231
+ prefix: string | (() => string | undefined) | undefined;
232
+ value: string | (() => string | undefined) | undefined;
233
+ }) | undefined;
234
+ body?: (Partial<{
235
+ provider: unknown;
236
+ callbackURL?: string | undefined;
237
+ newUserCallbackURL?: string | undefined;
238
+ errorCallbackURL?: string | undefined;
239
+ disableRedirect?: boolean | undefined;
240
+ idToken?: {
241
+ token: string;
242
+ nonce?: string | undefined;
243
+ accessToken?: string | undefined;
244
+ refreshToken?: string | undefined;
245
+ expiresAt?: number | undefined;
246
+ } | undefined;
247
+ scopes?: string[] | undefined;
248
+ requestSignUp?: boolean | undefined;
249
+ loginHint?: string | undefined;
250
+ additionalData?: Record<string, any> | undefined;
251
+ }> & Record<string, any>) | undefined;
252
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
253
+ params?: Record<string, any> | undefined;
254
+ duplex?: "full" | "half" | undefined;
255
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
256
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
257
+ retryAttempt?: number | undefined;
258
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
259
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
260
+ disableValidation?: boolean | undefined;
261
+ }>(data_0: better_auth_client_plugins.Prettify<{
262
+ provider: unknown;
263
+ callbackURL?: string | undefined;
264
+ newUserCallbackURL?: string | undefined;
265
+ errorCallbackURL?: string | undefined;
266
+ disableRedirect?: boolean | undefined;
267
+ idToken?: {
268
+ token: string;
269
+ nonce?: string | undefined;
270
+ accessToken?: string | undefined;
271
+ refreshToken?: string | undefined;
272
+ expiresAt?: number | undefined;
273
+ } | undefined;
274
+ scopes?: string[] | undefined;
275
+ requestSignUp?: boolean | undefined;
276
+ loginHint?: string | undefined;
277
+ additionalData?: Record<string, any> | undefined;
278
+ } & {
279
+ fetchOptions?: FetchOptions | undefined;
280
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
281
+ redirect: boolean;
282
+ token: string;
283
+ url: undefined;
284
+ user: {
285
+ id: string;
286
+ email: string;
287
+ name: string;
288
+ image: string | null | undefined;
289
+ emailVerified: boolean;
290
+ createdAt: Date;
291
+ updatedAt: Date;
292
+ };
293
+ } | {
294
+ url: string;
295
+ redirect: boolean;
296
+ }>, {
297
+ code?: string | undefined;
298
+ message?: string | undefined;
299
+ }, FetchOptions["throw"] extends true ? true : false>>;
300
+ };
301
+ } & {
302
+ signOut: <FetchOptions extends {
303
+ method?: string | undefined;
304
+ mode?: RequestMode | undefined;
305
+ headers?: (HeadersInit & (HeadersInit | {
306
+ accept: "application/json" | "text/plain" | "application/octet-stream";
307
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
308
+ authorization: "Bearer" | "Basic";
309
+ })) | undefined;
310
+ cache?: RequestCache | undefined;
311
+ credentials?: RequestCredentials | undefined;
312
+ integrity?: string | undefined;
313
+ keepalive?: boolean | undefined;
314
+ priority?: RequestPriority | undefined;
315
+ redirect?: RequestRedirect | undefined;
316
+ referrer?: string | undefined;
317
+ referrerPolicy?: ReferrerPolicy | undefined;
318
+ signal?: (AbortSignal | null) | undefined;
319
+ window?: null | undefined;
320
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
321
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
322
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
323
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
324
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
325
+ hookOptions?: {
326
+ cloneResponse?: boolean;
251
327
  } | undefined;
252
- scopes?: string[] | undefined;
253
- requestSignUp?: boolean | undefined;
254
- loginHint?: string | undefined;
255
- additionalData?: Record<string, any> | undefined;
256
- }> & Record<string, any>) | undefined;
257
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
258
- params?: Record<string, any> | undefined;
259
- duplex?: "full" | "half" | undefined;
260
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
261
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
262
- retryAttempt?: number | undefined;
263
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
264
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
265
- disableValidation?: boolean | undefined;
266
- }>(data_0: better_auth_client_plugins0.Prettify<{
267
- provider: unknown;
268
- callbackURL?: string | undefined;
269
- newUserCallbackURL?: string | undefined;
270
- errorCallbackURL?: string | undefined;
271
- disableRedirect?: boolean | undefined;
272
- idToken?: {
273
- token: string;
274
- nonce?: string | undefined;
275
- accessToken?: string | undefined;
276
- refreshToken?: string | undefined;
277
- expiresAt?: number | undefined;
278
- } | undefined;
279
- scopes?: string[] | undefined;
280
- requestSignUp?: boolean | undefined;
281
- loginHint?: string | undefined;
282
- additionalData?: Record<string, any> | undefined;
283
- } & {
284
- fetchOptions?: FetchOptions | undefined;
285
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<NonNullable<{
286
- redirect: boolean;
287
- token: string;
288
- url: undefined;
289
- user: {
290
- id: string;
291
- email: string;
292
- name: string;
293
- image: string | null | undefined;
294
- emailVerified: boolean;
295
- createdAt: Date;
296
- updatedAt: Date;
297
- };
298
- } | {
299
- url: string;
300
- redirect: boolean;
301
- }>, {
302
- code?: string | undefined;
303
- message?: string | undefined;
328
+ timeout?: number | undefined;
329
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
330
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
331
+ baseURL?: string | undefined;
332
+ throw?: boolean | undefined;
333
+ auth?: ({
334
+ type: "Bearer";
335
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
336
+ } | {
337
+ type: "Basic";
338
+ username: string | (() => string | undefined) | undefined;
339
+ password: string | (() => string | undefined) | undefined;
340
+ } | {
341
+ type: "Custom";
342
+ prefix: string | (() => string | undefined) | undefined;
343
+ value: string | (() => string | undefined) | undefined;
344
+ }) | undefined;
345
+ body?: undefined;
346
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
347
+ params?: Record<string, any> | undefined;
348
+ duplex?: "full" | "half" | undefined;
349
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
350
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
351
+ retryAttempt?: number | undefined;
352
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
353
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
354
+ disableValidation?: boolean | undefined;
355
+ }>(data_0?: better_auth_client_plugins.Prettify<{
356
+ query?: Record<string, any> | undefined;
357
+ fetchOptions?: FetchOptions | undefined;
358
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
359
+ success: boolean;
360
+ }, {
361
+ code?: string | undefined;
362
+ message?: string | undefined;
304
363
  }, FetchOptions["throw"] extends true ? true : false>>;
305
- };
306
364
  } & {
307
- signOut: <FetchOptions extends {
308
- headers?: (HeadersInit & (HeadersInit | {
309
- accept: "application/json" | "text/plain" | "application/octet-stream";
310
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
311
- authorization: "Bearer" | "Basic";
312
- })) | undefined;
313
- cache?: RequestCache | undefined;
314
- credentials?: RequestCredentials | undefined;
315
- integrity?: string | undefined;
316
- keepalive?: boolean | undefined;
317
- method?: string | undefined;
318
- mode?: RequestMode | undefined;
319
- priority?: RequestPriority | undefined;
320
- redirect?: RequestRedirect | undefined;
321
- referrer?: string | undefined;
322
- referrerPolicy?: ReferrerPolicy | undefined;
323
- signal?: (AbortSignal | null) | undefined;
324
- window?: null | undefined;
325
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
326
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
327
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
328
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
329
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
330
- hookOptions?: {
331
- cloneResponse?: boolean;
332
- } | undefined;
333
- timeout?: number | undefined;
334
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
335
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
336
- baseURL?: string | undefined;
337
- throw?: boolean | undefined;
338
- auth?: ({
339
- type: "Bearer";
340
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
341
- } | {
342
- type: "Basic";
343
- username: string | (() => string | undefined) | undefined;
344
- password: string | (() => string | undefined) | undefined;
345
- } | {
346
- type: "Custom";
347
- prefix: string | (() => string | undefined) | undefined;
348
- value: string | (() => string | undefined) | undefined;
349
- }) | undefined;
350
- body?: undefined;
351
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
352
- params?: Record<string, any> | undefined;
353
- duplex?: "full" | "half" | undefined;
354
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
355
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
356
- retryAttempt?: number | undefined;
357
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
358
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
359
- disableValidation?: boolean | undefined;
360
- }>(data_0?: better_auth_client_plugins0.Prettify<{
361
- query?: Record<string, any> | undefined;
362
- fetchOptions?: FetchOptions | undefined;
363
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
364
- success: boolean;
365
- }, {
366
- code?: string | undefined;
367
- message?: string | undefined;
368
- }, FetchOptions["throw"] extends true ? true : false>>;
365
+ signIn: {
366
+ email: <FetchOptions extends {
367
+ method?: string | undefined;
368
+ mode?: RequestMode | undefined;
369
+ headers?: (HeadersInit & (HeadersInit | {
370
+ accept: "application/json" | "text/plain" | "application/octet-stream";
371
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
372
+ authorization: "Bearer" | "Basic";
373
+ })) | undefined;
374
+ cache?: RequestCache | undefined;
375
+ credentials?: RequestCredentials | undefined;
376
+ integrity?: string | undefined;
377
+ keepalive?: boolean | undefined;
378
+ priority?: RequestPriority | undefined;
379
+ redirect?: RequestRedirect | undefined;
380
+ referrer?: string | undefined;
381
+ referrerPolicy?: ReferrerPolicy | undefined;
382
+ signal?: (AbortSignal | null) | undefined;
383
+ window?: null | undefined;
384
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
385
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
386
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
387
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
388
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
389
+ hookOptions?: {
390
+ cloneResponse?: boolean;
391
+ } | undefined;
392
+ timeout?: number | undefined;
393
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
394
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
395
+ baseURL?: string | undefined;
396
+ throw?: boolean | undefined;
397
+ auth?: ({
398
+ type: "Bearer";
399
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
400
+ } | {
401
+ type: "Basic";
402
+ username: string | (() => string | undefined) | undefined;
403
+ password: string | (() => string | undefined) | undefined;
404
+ } | {
405
+ type: "Custom";
406
+ prefix: string | (() => string | undefined) | undefined;
407
+ value: string | (() => string | undefined) | undefined;
408
+ }) | undefined;
409
+ body?: (Partial<{
410
+ email: string;
411
+ password: string;
412
+ callbackURL?: string | undefined;
413
+ rememberMe?: boolean | undefined;
414
+ }> & Record<string, any>) | undefined;
415
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
416
+ params?: Record<string, any> | undefined;
417
+ duplex?: "full" | "half" | undefined;
418
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
419
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
420
+ retryAttempt?: number | undefined;
421
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
422
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
423
+ disableValidation?: boolean | undefined;
424
+ }>(data_0: better_auth_client_plugins.Prettify<{
425
+ email: string;
426
+ password: string;
427
+ callbackURL?: string | undefined;
428
+ rememberMe?: boolean | undefined;
429
+ } & {
430
+ fetchOptions?: FetchOptions | undefined;
431
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
432
+ redirect: boolean;
433
+ token: string;
434
+ url: string | undefined;
435
+ user: {
436
+ id: string;
437
+ email: string;
438
+ name: string;
439
+ image: string | null | undefined;
440
+ emailVerified: boolean;
441
+ createdAt: Date;
442
+ updatedAt: Date;
443
+ };
444
+ }, {
445
+ code?: string | undefined;
446
+ message?: string | undefined;
447
+ }, FetchOptions["throw"] extends true ? true : false>>;
448
+ };
369
449
  } & {
370
- signUp: {
371
- email: <FetchOptions extends {
372
- headers?: (HeadersInit & (HeadersInit | {
373
- accept: "application/json" | "text/plain" | "application/octet-stream";
374
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
375
- authorization: "Bearer" | "Basic";
376
- })) | undefined;
377
- cache?: RequestCache | undefined;
378
- credentials?: RequestCredentials | undefined;
379
- integrity?: string | undefined;
380
- keepalive?: boolean | undefined;
381
- method?: string | undefined;
382
- mode?: RequestMode | undefined;
383
- priority?: RequestPriority | undefined;
384
- redirect?: RequestRedirect | undefined;
385
- referrer?: string | undefined;
386
- referrerPolicy?: ReferrerPolicy | undefined;
387
- signal?: (AbortSignal | null) | undefined;
388
- window?: null | undefined;
389
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
390
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
391
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
392
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
393
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
394
- hookOptions?: {
395
- cloneResponse?: boolean;
396
- } | undefined;
397
- timeout?: number | undefined;
398
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
399
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
400
- baseURL?: string | undefined;
401
- throw?: boolean | undefined;
402
- auth?: ({
403
- type: "Bearer";
404
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
405
- } | {
406
- type: "Basic";
407
- username: string | (() => string | undefined) | undefined;
408
- password: string | (() => string | undefined) | undefined;
409
- } | {
410
- type: "Custom";
411
- prefix: string | (() => string | undefined) | undefined;
412
- value: string | (() => string | undefined) | undefined;
413
- }) | undefined;
414
- body?: (Partial<{
415
- name: string;
416
- email: string;
417
- password: string;
418
- image?: string | undefined;
419
- callbackURL?: string | undefined;
420
- rememberMe?: boolean | undefined;
421
- }> & Record<string, any>) | undefined;
422
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
423
- params?: Record<string, any> | undefined;
424
- duplex?: "full" | "half" | undefined;
425
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
426
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
427
- retryAttempt?: number | undefined;
428
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
429
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
430
- disableValidation?: boolean | undefined;
431
- }>(data_0: better_auth_client_plugins0.Prettify<{
432
- email: string;
433
- name: string;
434
- password: string;
435
- image?: string | undefined;
436
- callbackURL?: string | undefined;
437
- fetchOptions?: FetchOptions | undefined;
438
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<NonNullable<{
439
- token: null;
440
- user: {
441
- id: string;
442
- email: string;
443
- name: string;
444
- image: string | null | undefined;
445
- emailVerified: boolean;
446
- createdAt: Date;
447
- updatedAt: Date;
448
- };
450
+ resetPassword: <FetchOptions extends {
451
+ method?: string | undefined;
452
+ mode?: RequestMode | undefined;
453
+ headers?: (HeadersInit & (HeadersInit | {
454
+ accept: "application/json" | "text/plain" | "application/octet-stream";
455
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
456
+ authorization: "Bearer" | "Basic";
457
+ })) | undefined;
458
+ cache?: RequestCache | undefined;
459
+ credentials?: RequestCredentials | undefined;
460
+ integrity?: string | undefined;
461
+ keepalive?: boolean | undefined;
462
+ priority?: RequestPriority | undefined;
463
+ redirect?: RequestRedirect | undefined;
464
+ referrer?: string | undefined;
465
+ referrerPolicy?: ReferrerPolicy | undefined;
466
+ signal?: (AbortSignal | null) | undefined;
467
+ window?: null | undefined;
468
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
469
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
470
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
471
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
472
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
473
+ hookOptions?: {
474
+ cloneResponse?: boolean;
475
+ } | undefined;
476
+ timeout?: number | undefined;
477
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
478
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
479
+ baseURL?: string | undefined;
480
+ throw?: boolean | undefined;
481
+ auth?: ({
482
+ type: "Bearer";
483
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
484
+ } | {
485
+ type: "Basic";
486
+ username: string | (() => string | undefined) | undefined;
487
+ password: string | (() => string | undefined) | undefined;
488
+ } | {
489
+ type: "Custom";
490
+ prefix: string | (() => string | undefined) | undefined;
491
+ value: string | (() => string | undefined) | undefined;
492
+ }) | undefined;
493
+ body?: (Partial<{
494
+ newPassword: string;
495
+ token?: string | undefined;
496
+ }> & Record<string, any>) | undefined;
497
+ query?: (Partial<{
498
+ token?: string | undefined;
499
+ }> & Record<string, any>) | undefined;
500
+ params?: Record<string, any> | undefined;
501
+ duplex?: "full" | "half" | undefined;
502
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
503
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
504
+ retryAttempt?: number | undefined;
505
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
506
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
507
+ disableValidation?: boolean | undefined;
508
+ }>(data_0: better_auth_client_plugins.Prettify<{
509
+ newPassword: string;
510
+ token?: string | undefined;
511
+ } & {
512
+ fetchOptions?: FetchOptions | undefined;
513
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
514
+ status: boolean;
515
+ }, {
516
+ code?: string | undefined;
517
+ message?: string | undefined;
518
+ }, FetchOptions["throw"] extends true ? true : false>>;
519
+ } & {
520
+ verifyEmail: <FetchOptions extends {
521
+ method?: string | undefined;
522
+ mode?: RequestMode | undefined;
523
+ headers?: (HeadersInit & (HeadersInit | {
524
+ accept: "application/json" | "text/plain" | "application/octet-stream";
525
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
526
+ authorization: "Bearer" | "Basic";
527
+ })) | undefined;
528
+ cache?: RequestCache | undefined;
529
+ credentials?: RequestCredentials | undefined;
530
+ integrity?: string | undefined;
531
+ keepalive?: boolean | undefined;
532
+ priority?: RequestPriority | undefined;
533
+ redirect?: RequestRedirect | undefined;
534
+ referrer?: string | undefined;
535
+ referrerPolicy?: ReferrerPolicy | undefined;
536
+ signal?: (AbortSignal | null) | undefined;
537
+ window?: null | undefined;
538
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
539
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
540
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
541
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
542
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
543
+ hookOptions?: {
544
+ cloneResponse?: boolean;
545
+ } | undefined;
546
+ timeout?: number | undefined;
547
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
548
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
549
+ baseURL?: string | undefined;
550
+ throw?: boolean | undefined;
551
+ auth?: ({
552
+ type: "Bearer";
553
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
554
+ } | {
555
+ type: "Basic";
556
+ username: string | (() => string | undefined) | undefined;
557
+ password: string | (() => string | undefined) | undefined;
558
+ } | {
559
+ type: "Custom";
560
+ prefix: string | (() => string | undefined) | undefined;
561
+ value: string | (() => string | undefined) | undefined;
562
+ }) | undefined;
563
+ body?: undefined;
564
+ query?: (Partial<{
565
+ token: string;
566
+ callbackURL?: string | undefined;
567
+ }> & Record<string, any>) | undefined;
568
+ params?: Record<string, any> | undefined;
569
+ duplex?: "full" | "half" | undefined;
570
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
571
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
572
+ retryAttempt?: number | undefined;
573
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
574
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
575
+ disableValidation?: boolean | undefined;
576
+ }>(data_0: better_auth_client_plugins.Prettify<{
577
+ query: {
578
+ token: string;
579
+ callbackURL?: string | undefined;
580
+ };
581
+ fetchOptions?: FetchOptions | undefined;
582
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<void | {
583
+ status: boolean;
584
+ user: {
585
+ id: string;
586
+ email: string;
587
+ name: string;
588
+ image: string | null | undefined;
589
+ emailVerified: boolean;
590
+ createdAt: Date;
591
+ updatedAt: Date;
592
+ };
449
593
  } | {
450
- token: string;
451
- user: {
452
- id: string;
453
- email: string;
454
- name: string;
455
- image: string | null | undefined;
456
- emailVerified: boolean;
457
- createdAt: Date;
458
- updatedAt: Date;
459
- };
594
+ status: boolean;
595
+ user: null;
460
596
  }>, {
461
- code?: string | undefined;
462
- message?: string | undefined;
597
+ code?: string | undefined;
598
+ message?: string | undefined;
463
599
  }, FetchOptions["throw"] extends true ? true : false>>;
464
- };
465
600
  } & {
466
- signIn: {
467
- email: <FetchOptions extends {
468
- headers?: (HeadersInit & (HeadersInit | {
469
- accept: "application/json" | "text/plain" | "application/octet-stream";
470
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
471
- authorization: "Bearer" | "Basic";
472
- })) | undefined;
473
- cache?: RequestCache | undefined;
474
- credentials?: RequestCredentials | undefined;
475
- integrity?: string | undefined;
476
- keepalive?: boolean | undefined;
477
- method?: string | undefined;
478
- mode?: RequestMode | undefined;
479
- priority?: RequestPriority | undefined;
480
- redirect?: RequestRedirect | undefined;
481
- referrer?: string | undefined;
482
- referrerPolicy?: ReferrerPolicy | undefined;
483
- signal?: (AbortSignal | null) | undefined;
484
- window?: null | undefined;
485
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
486
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
487
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
488
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
489
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
490
- hookOptions?: {
491
- cloneResponse?: boolean;
492
- } | undefined;
493
- timeout?: number | undefined;
494
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
495
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
496
- baseURL?: string | undefined;
497
- throw?: boolean | undefined;
498
- auth?: ({
499
- type: "Bearer";
500
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
501
- } | {
502
- type: "Basic";
503
- username: string | (() => string | undefined) | undefined;
504
- password: string | (() => string | undefined) | undefined;
505
- } | {
506
- type: "Custom";
507
- prefix: string | (() => string | undefined) | undefined;
508
- value: string | (() => string | undefined) | undefined;
509
- }) | undefined;
510
- body?: (Partial<{
601
+ sendVerificationEmail: <FetchOptions extends {
602
+ method?: string | undefined;
603
+ mode?: RequestMode | undefined;
604
+ headers?: (HeadersInit & (HeadersInit | {
605
+ accept: "application/json" | "text/plain" | "application/octet-stream";
606
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
607
+ authorization: "Bearer" | "Basic";
608
+ })) | undefined;
609
+ cache?: RequestCache | undefined;
610
+ credentials?: RequestCredentials | undefined;
611
+ integrity?: string | undefined;
612
+ keepalive?: boolean | undefined;
613
+ priority?: RequestPriority | undefined;
614
+ redirect?: RequestRedirect | undefined;
615
+ referrer?: string | undefined;
616
+ referrerPolicy?: ReferrerPolicy | undefined;
617
+ signal?: (AbortSignal | null) | undefined;
618
+ window?: null | undefined;
619
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
620
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
621
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
622
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
623
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
624
+ hookOptions?: {
625
+ cloneResponse?: boolean;
626
+ } | undefined;
627
+ timeout?: number | undefined;
628
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
629
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
630
+ baseURL?: string | undefined;
631
+ throw?: boolean | undefined;
632
+ auth?: ({
633
+ type: "Bearer";
634
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
635
+ } | {
636
+ type: "Basic";
637
+ username: string | (() => string | undefined) | undefined;
638
+ password: string | (() => string | undefined) | undefined;
639
+ } | {
640
+ type: "Custom";
641
+ prefix: string | (() => string | undefined) | undefined;
642
+ value: string | (() => string | undefined) | undefined;
643
+ }) | undefined;
644
+ body?: (Partial<{
645
+ email: string;
646
+ callbackURL?: string | undefined;
647
+ }> & Record<string, any>) | undefined;
648
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
649
+ params?: Record<string, any> | undefined;
650
+ duplex?: "full" | "half" | undefined;
651
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
652
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
653
+ retryAttempt?: number | undefined;
654
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
655
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
656
+ disableValidation?: boolean | undefined;
657
+ }>(data_0: better_auth_client_plugins.Prettify<{
511
658
  email: string;
512
- password: string;
513
659
  callbackURL?: string | undefined;
514
- rememberMe?: boolean | undefined;
515
- }> & Record<string, any>) | undefined;
516
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
517
- params?: Record<string, any> | undefined;
518
- duplex?: "full" | "half" | undefined;
519
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
520
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
521
- retryAttempt?: number | undefined;
522
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
523
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
524
- disableValidation?: boolean | undefined;
525
- }>(data_0: better_auth_client_plugins0.Prettify<{
526
- email: string;
527
- password: string;
528
- callbackURL?: string | undefined;
529
- rememberMe?: boolean | undefined;
530
660
  } & {
531
- fetchOptions?: FetchOptions | undefined;
532
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
533
- redirect: boolean;
534
- token: string;
535
- url: string | undefined;
536
- user: {
537
- id: string;
538
- email: string;
539
- name: string;
540
- image: string | null | undefined;
541
- emailVerified: boolean;
542
- createdAt: Date;
543
- updatedAt: Date;
544
- };
661
+ fetchOptions?: FetchOptions | undefined;
662
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
663
+ status: boolean;
545
664
  }, {
546
- code?: string | undefined;
547
- message?: string | undefined;
665
+ code?: string | undefined;
666
+ message?: string | undefined;
548
667
  }, FetchOptions["throw"] extends true ? true : false>>;
549
- };
550
668
  } & {
551
- resetPassword: <FetchOptions extends {
552
- headers?: (HeadersInit & (HeadersInit | {
553
- accept: "application/json" | "text/plain" | "application/octet-stream";
554
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
555
- authorization: "Bearer" | "Basic";
556
- })) | undefined;
557
- cache?: RequestCache | undefined;
558
- credentials?: RequestCredentials | undefined;
559
- integrity?: string | undefined;
560
- keepalive?: boolean | undefined;
561
- method?: string | undefined;
562
- mode?: RequestMode | undefined;
563
- priority?: RequestPriority | undefined;
564
- redirect?: RequestRedirect | undefined;
565
- referrer?: string | undefined;
566
- referrerPolicy?: ReferrerPolicy | undefined;
567
- signal?: (AbortSignal | null) | undefined;
568
- window?: null | undefined;
569
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
570
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
571
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
572
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
573
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
574
- hookOptions?: {
575
- cloneResponse?: boolean;
576
- } | undefined;
577
- timeout?: number | undefined;
578
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
579
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
580
- baseURL?: string | undefined;
581
- throw?: boolean | undefined;
582
- auth?: ({
583
- type: "Bearer";
584
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
585
- } | {
586
- type: "Basic";
587
- username: string | (() => string | undefined) | undefined;
588
- password: string | (() => string | undefined) | undefined;
589
- } | {
590
- type: "Custom";
591
- prefix: string | (() => string | undefined) | undefined;
592
- value: string | (() => string | undefined) | undefined;
593
- }) | undefined;
594
- body?: (Partial<{
595
- newPassword: string;
596
- token?: string | undefined;
597
- }> & Record<string, any>) | undefined;
598
- query?: (Partial<{
599
- token?: string | undefined;
600
- }> & Record<string, any>) | undefined;
601
- params?: Record<string, any> | undefined;
602
- duplex?: "full" | "half" | undefined;
603
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
604
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
605
- retryAttempt?: number | undefined;
606
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
607
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
608
- disableValidation?: boolean | undefined;
609
- }>(data_0: better_auth_client_plugins0.Prettify<{
610
- newPassword: string;
611
- token?: string | undefined;
612
- } & {
613
- fetchOptions?: FetchOptions | undefined;
614
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
615
- status: boolean;
616
- }, {
617
- code?: string | undefined;
618
- message?: string | undefined;
619
- }, FetchOptions["throw"] extends true ? true : false>>;
669
+ changeEmail: <FetchOptions extends {
670
+ method?: string | undefined;
671
+ mode?: RequestMode | undefined;
672
+ headers?: (HeadersInit & (HeadersInit | {
673
+ accept: "application/json" | "text/plain" | "application/octet-stream";
674
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
675
+ authorization: "Bearer" | "Basic";
676
+ })) | undefined;
677
+ cache?: RequestCache | undefined;
678
+ credentials?: RequestCredentials | undefined;
679
+ integrity?: string | undefined;
680
+ keepalive?: boolean | undefined;
681
+ priority?: RequestPriority | undefined;
682
+ redirect?: RequestRedirect | undefined;
683
+ referrer?: string | undefined;
684
+ referrerPolicy?: ReferrerPolicy | undefined;
685
+ signal?: (AbortSignal | null) | undefined;
686
+ window?: null | undefined;
687
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
688
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
689
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
690
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
691
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
692
+ hookOptions?: {
693
+ cloneResponse?: boolean;
694
+ } | undefined;
695
+ timeout?: number | undefined;
696
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
697
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
698
+ baseURL?: string | undefined;
699
+ throw?: boolean | undefined;
700
+ auth?: ({
701
+ type: "Bearer";
702
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
703
+ } | {
704
+ type: "Basic";
705
+ username: string | (() => string | undefined) | undefined;
706
+ password: string | (() => string | undefined) | undefined;
707
+ } | {
708
+ type: "Custom";
709
+ prefix: string | (() => string | undefined) | undefined;
710
+ value: string | (() => string | undefined) | undefined;
711
+ }) | undefined;
712
+ body?: (Partial<{
713
+ newEmail: string;
714
+ callbackURL?: string | undefined;
715
+ }> & Record<string, any>) | undefined;
716
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
717
+ params?: Record<string, any> | undefined;
718
+ duplex?: "full" | "half" | undefined;
719
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
720
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
721
+ retryAttempt?: number | undefined;
722
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
723
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
724
+ disableValidation?: boolean | undefined;
725
+ }>(data_0: better_auth_client_plugins.Prettify<{
726
+ newEmail: string;
727
+ callbackURL?: string | undefined;
728
+ } & {
729
+ fetchOptions?: FetchOptions | undefined;
730
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
731
+ status: boolean;
732
+ }, {
733
+ code?: string | undefined;
734
+ message?: string | undefined;
735
+ }, FetchOptions["throw"] extends true ? true : false>>;
620
736
  } & {
621
- verifyEmail: <FetchOptions extends {
622
- headers?: (HeadersInit & (HeadersInit | {
623
- accept: "application/json" | "text/plain" | "application/octet-stream";
624
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
625
- authorization: "Bearer" | "Basic";
626
- })) | undefined;
627
- cache?: RequestCache | undefined;
628
- credentials?: RequestCredentials | undefined;
629
- integrity?: string | undefined;
630
- keepalive?: boolean | undefined;
631
- method?: string | undefined;
632
- mode?: RequestMode | undefined;
633
- priority?: RequestPriority | undefined;
634
- redirect?: RequestRedirect | undefined;
635
- referrer?: string | undefined;
636
- referrerPolicy?: ReferrerPolicy | undefined;
637
- signal?: (AbortSignal | null) | undefined;
638
- window?: null | undefined;
639
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
640
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
641
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
642
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
643
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
644
- hookOptions?: {
645
- cloneResponse?: boolean;
646
- } | undefined;
647
- timeout?: number | undefined;
648
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
649
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
650
- baseURL?: string | undefined;
651
- throw?: boolean | undefined;
652
- auth?: ({
653
- type: "Bearer";
654
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
655
- } | {
656
- type: "Basic";
657
- username: string | (() => string | undefined) | undefined;
658
- password: string | (() => string | undefined) | undefined;
659
- } | {
660
- type: "Custom";
661
- prefix: string | (() => string | undefined) | undefined;
662
- value: string | (() => string | undefined) | undefined;
663
- }) | undefined;
664
- body?: undefined;
665
- query?: (Partial<{
666
- token: string;
667
- callbackURL?: string | undefined;
668
- }> & Record<string, any>) | undefined;
669
- params?: Record<string, any> | undefined;
670
- duplex?: "full" | "half" | undefined;
671
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
672
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
673
- retryAttempt?: number | undefined;
674
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
675
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
676
- disableValidation?: boolean | undefined;
677
- }>(data_0: better_auth_client_plugins0.Prettify<{
678
- query: {
679
- token: string;
680
- callbackURL?: string | undefined;
681
- };
682
- fetchOptions?: FetchOptions | undefined;
683
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<NonNullable<void | {
684
- status: boolean;
685
- user: {
686
- id: string;
687
- email: string;
688
- name: string;
689
- image: string | null | undefined;
690
- emailVerified: boolean;
691
- createdAt: Date;
692
- updatedAt: Date;
693
- };
694
- } | {
695
- status: boolean;
696
- user: null;
697
- }>, {
698
- code?: string | undefined;
699
- message?: string | undefined;
700
- }, FetchOptions["throw"] extends true ? true : false>>;
737
+ changePassword: <FetchOptions extends {
738
+ method?: string | undefined;
739
+ mode?: RequestMode | undefined;
740
+ headers?: (HeadersInit & (HeadersInit | {
741
+ accept: "application/json" | "text/plain" | "application/octet-stream";
742
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
743
+ authorization: "Bearer" | "Basic";
744
+ })) | undefined;
745
+ cache?: RequestCache | undefined;
746
+ credentials?: RequestCredentials | undefined;
747
+ integrity?: string | undefined;
748
+ keepalive?: boolean | undefined;
749
+ priority?: RequestPriority | undefined;
750
+ redirect?: RequestRedirect | undefined;
751
+ referrer?: string | undefined;
752
+ referrerPolicy?: ReferrerPolicy | undefined;
753
+ signal?: (AbortSignal | null) | undefined;
754
+ window?: null | undefined;
755
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
756
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
757
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
758
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
759
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
760
+ hookOptions?: {
761
+ cloneResponse?: boolean;
762
+ } | undefined;
763
+ timeout?: number | undefined;
764
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
765
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
766
+ baseURL?: string | undefined;
767
+ throw?: boolean | undefined;
768
+ auth?: ({
769
+ type: "Bearer";
770
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
771
+ } | {
772
+ type: "Basic";
773
+ username: string | (() => string | undefined) | undefined;
774
+ password: string | (() => string | undefined) | undefined;
775
+ } | {
776
+ type: "Custom";
777
+ prefix: string | (() => string | undefined) | undefined;
778
+ value: string | (() => string | undefined) | undefined;
779
+ }) | undefined;
780
+ body?: (Partial<{
781
+ newPassword: string;
782
+ currentPassword: string;
783
+ revokeOtherSessions?: boolean | undefined;
784
+ }> & Record<string, any>) | undefined;
785
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
786
+ params?: Record<string, any> | undefined;
787
+ duplex?: "full" | "half" | undefined;
788
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
789
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
790
+ retryAttempt?: number | undefined;
791
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
792
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
793
+ disableValidation?: boolean | undefined;
794
+ }>(data_0: better_auth_client_plugins.Prettify<{
795
+ newPassword: string;
796
+ currentPassword: string;
797
+ revokeOtherSessions?: boolean | undefined;
798
+ } & {
799
+ fetchOptions?: FetchOptions | undefined;
800
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
801
+ token: string | null;
802
+ user: {
803
+ id: string;
804
+ email: string;
805
+ name: string;
806
+ image: string | null | undefined;
807
+ emailVerified: boolean;
808
+ createdAt: Date;
809
+ updatedAt: Date;
810
+ };
811
+ }, {
812
+ code?: string | undefined;
813
+ message?: string | undefined;
814
+ }, FetchOptions["throw"] extends true ? true : false>>;
701
815
  } & {
702
- sendVerificationEmail: <FetchOptions extends {
703
- headers?: (HeadersInit & (HeadersInit | {
704
- accept: "application/json" | "text/plain" | "application/octet-stream";
705
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
706
- authorization: "Bearer" | "Basic";
707
- })) | undefined;
708
- cache?: RequestCache | undefined;
709
- credentials?: RequestCredentials | undefined;
710
- integrity?: string | undefined;
711
- keepalive?: boolean | undefined;
712
- method?: string | undefined;
713
- mode?: RequestMode | undefined;
714
- priority?: RequestPriority | undefined;
715
- redirect?: RequestRedirect | undefined;
716
- referrer?: string | undefined;
717
- referrerPolicy?: ReferrerPolicy | undefined;
718
- signal?: (AbortSignal | null) | undefined;
719
- window?: null | undefined;
720
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
721
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
722
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
723
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
724
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
725
- hookOptions?: {
726
- cloneResponse?: boolean;
727
- } | undefined;
728
- timeout?: number | undefined;
729
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
730
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
731
- baseURL?: string | undefined;
732
- throw?: boolean | undefined;
733
- auth?: ({
734
- type: "Bearer";
735
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
736
- } | {
737
- type: "Basic";
738
- username: string | (() => string | undefined) | undefined;
739
- password: string | (() => string | undefined) | undefined;
740
- } | {
741
- type: "Custom";
742
- prefix: string | (() => string | undefined) | undefined;
743
- value: string | (() => string | undefined) | undefined;
744
- }) | undefined;
745
- body?: (Partial<{
746
- email: string;
747
- callbackURL?: string | undefined;
748
- }> & Record<string, any>) | undefined;
749
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
750
- params?: Record<string, any> | undefined;
751
- duplex?: "full" | "half" | undefined;
752
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
753
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
754
- retryAttempt?: number | undefined;
755
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
756
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
757
- disableValidation?: boolean | undefined;
758
- }>(data_0: better_auth_client_plugins0.Prettify<{
759
- email: string;
760
- callbackURL?: string | undefined;
761
- } & {
762
- fetchOptions?: FetchOptions | undefined;
763
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
764
- status: boolean;
765
- }, {
766
- code?: string | undefined;
767
- message?: string | undefined;
768
- }, FetchOptions["throw"] extends true ? true : false>>;
816
+ deleteUser: <FetchOptions extends {
817
+ method?: string | undefined;
818
+ mode?: RequestMode | undefined;
819
+ headers?: (HeadersInit & (HeadersInit | {
820
+ accept: "application/json" | "text/plain" | "application/octet-stream";
821
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
822
+ authorization: "Bearer" | "Basic";
823
+ })) | undefined;
824
+ cache?: RequestCache | undefined;
825
+ credentials?: RequestCredentials | undefined;
826
+ integrity?: string | undefined;
827
+ keepalive?: boolean | undefined;
828
+ priority?: RequestPriority | undefined;
829
+ redirect?: RequestRedirect | undefined;
830
+ referrer?: string | undefined;
831
+ referrerPolicy?: ReferrerPolicy | undefined;
832
+ signal?: (AbortSignal | null) | undefined;
833
+ window?: null | undefined;
834
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
835
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
836
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
837
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
838
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
839
+ hookOptions?: {
840
+ cloneResponse?: boolean;
841
+ } | undefined;
842
+ timeout?: number | undefined;
843
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
844
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
845
+ baseURL?: string | undefined;
846
+ throw?: boolean | undefined;
847
+ auth?: ({
848
+ type: "Bearer";
849
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
850
+ } | {
851
+ type: "Basic";
852
+ username: string | (() => string | undefined) | undefined;
853
+ password: string | (() => string | undefined) | undefined;
854
+ } | {
855
+ type: "Custom";
856
+ prefix: string | (() => string | undefined) | undefined;
857
+ value: string | (() => string | undefined) | undefined;
858
+ }) | undefined;
859
+ body?: (Partial<{
860
+ callbackURL?: string | undefined;
861
+ password?: string | undefined;
862
+ token?: string | undefined;
863
+ }> & Record<string, any>) | undefined;
864
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
865
+ params?: Record<string, any> | undefined;
866
+ duplex?: "full" | "half" | undefined;
867
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
868
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
869
+ retryAttempt?: number | undefined;
870
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
871
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
872
+ disableValidation?: boolean | undefined;
873
+ }>(data_0?: better_auth_client_plugins.Prettify<{
874
+ callbackURL?: string | undefined;
875
+ password?: string | undefined;
876
+ token?: string | undefined;
877
+ } & {
878
+ fetchOptions?: FetchOptions | undefined;
879
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
880
+ success: boolean;
881
+ message: string;
882
+ }, {
883
+ code?: string | undefined;
884
+ message?: string | undefined;
885
+ }, FetchOptions["throw"] extends true ? true : false>>;
769
886
  } & {
770
- changeEmail: <FetchOptions extends {
771
- headers?: (HeadersInit & (HeadersInit | {
772
- accept: "application/json" | "text/plain" | "application/octet-stream";
773
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
774
- authorization: "Bearer" | "Basic";
775
- })) | undefined;
776
- cache?: RequestCache | undefined;
777
- credentials?: RequestCredentials | undefined;
778
- integrity?: string | undefined;
779
- keepalive?: boolean | undefined;
780
- method?: string | undefined;
781
- mode?: RequestMode | undefined;
782
- priority?: RequestPriority | undefined;
783
- redirect?: RequestRedirect | undefined;
784
- referrer?: string | undefined;
785
- referrerPolicy?: ReferrerPolicy | undefined;
786
- signal?: (AbortSignal | null) | undefined;
787
- window?: null | undefined;
788
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
789
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
790
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
791
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
792
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
793
- hookOptions?: {
794
- cloneResponse?: boolean;
795
- } | undefined;
796
- timeout?: number | undefined;
797
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
798
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
799
- baseURL?: string | undefined;
800
- throw?: boolean | undefined;
801
- auth?: ({
802
- type: "Bearer";
803
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
804
- } | {
805
- type: "Basic";
806
- username: string | (() => string | undefined) | undefined;
807
- password: string | (() => string | undefined) | undefined;
808
- } | {
809
- type: "Custom";
810
- prefix: string | (() => string | undefined) | undefined;
811
- value: string | (() => string | undefined) | undefined;
812
- }) | undefined;
813
- body?: (Partial<{
814
- newEmail: string;
815
- callbackURL?: string | undefined;
816
- }> & Record<string, any>) | undefined;
817
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
818
- params?: Record<string, any> | undefined;
819
- duplex?: "full" | "half" | undefined;
820
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
821
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
822
- retryAttempt?: number | undefined;
823
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
824
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
825
- disableValidation?: boolean | undefined;
826
- }>(data_0: better_auth_client_plugins0.Prettify<{
827
- newEmail: string;
828
- callbackURL?: string | undefined;
829
- } & {
830
- fetchOptions?: FetchOptions | undefined;
831
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
832
- status: boolean;
833
- }, {
834
- code?: string | undefined;
835
- message?: string | undefined;
836
- }, FetchOptions["throw"] extends true ? true : false>>;
887
+ requestPasswordReset: <FetchOptions extends {
888
+ method?: string | undefined;
889
+ mode?: RequestMode | undefined;
890
+ headers?: (HeadersInit & (HeadersInit | {
891
+ accept: "application/json" | "text/plain" | "application/octet-stream";
892
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
893
+ authorization: "Bearer" | "Basic";
894
+ })) | undefined;
895
+ cache?: RequestCache | undefined;
896
+ credentials?: RequestCredentials | undefined;
897
+ integrity?: string | undefined;
898
+ keepalive?: boolean | undefined;
899
+ priority?: RequestPriority | undefined;
900
+ redirect?: RequestRedirect | undefined;
901
+ referrer?: string | undefined;
902
+ referrerPolicy?: ReferrerPolicy | undefined;
903
+ signal?: (AbortSignal | null) | undefined;
904
+ window?: null | undefined;
905
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
906
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
907
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
908
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
909
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
910
+ hookOptions?: {
911
+ cloneResponse?: boolean;
912
+ } | undefined;
913
+ timeout?: number | undefined;
914
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
915
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
916
+ baseURL?: string | undefined;
917
+ throw?: boolean | undefined;
918
+ auth?: ({
919
+ type: "Bearer";
920
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
921
+ } | {
922
+ type: "Basic";
923
+ username: string | (() => string | undefined) | undefined;
924
+ password: string | (() => string | undefined) | undefined;
925
+ } | {
926
+ type: "Custom";
927
+ prefix: string | (() => string | undefined) | undefined;
928
+ value: string | (() => string | undefined) | undefined;
929
+ }) | undefined;
930
+ body?: (Partial<{
931
+ email: string;
932
+ redirectTo?: string | undefined;
933
+ }> & Record<string, any>) | undefined;
934
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
935
+ params?: Record<string, any> | undefined;
936
+ duplex?: "full" | "half" | undefined;
937
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
938
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
939
+ retryAttempt?: number | undefined;
940
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
941
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
942
+ disableValidation?: boolean | undefined;
943
+ }>(data_0: better_auth_client_plugins.Prettify<{
944
+ email: string;
945
+ redirectTo?: string | undefined;
946
+ } & {
947
+ fetchOptions?: FetchOptions | undefined;
948
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
949
+ status: boolean;
950
+ message: string;
951
+ }, {
952
+ code?: string | undefined;
953
+ message?: string | undefined;
954
+ }, FetchOptions["throw"] extends true ? true : false>>;
837
955
  } & {
838
- changePassword: <FetchOptions extends {
839
- headers?: (HeadersInit & (HeadersInit | {
840
- accept: "application/json" | "text/plain" | "application/octet-stream";
841
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
842
- authorization: "Bearer" | "Basic";
843
- })) | undefined;
844
- cache?: RequestCache | undefined;
845
- credentials?: RequestCredentials | undefined;
846
- integrity?: string | undefined;
847
- keepalive?: boolean | undefined;
848
- method?: string | undefined;
849
- mode?: RequestMode | undefined;
850
- priority?: RequestPriority | undefined;
851
- redirect?: RequestRedirect | undefined;
852
- referrer?: string | undefined;
853
- referrerPolicy?: ReferrerPolicy | undefined;
854
- signal?: (AbortSignal | null) | undefined;
855
- window?: null | undefined;
856
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
857
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
858
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
859
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
860
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
861
- hookOptions?: {
862
- cloneResponse?: boolean;
863
- } | undefined;
864
- timeout?: number | undefined;
865
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
866
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
867
- baseURL?: string | undefined;
868
- throw?: boolean | undefined;
869
- auth?: ({
870
- type: "Bearer";
871
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
872
- } | {
873
- type: "Basic";
874
- username: string | (() => string | undefined) | undefined;
875
- password: string | (() => string | undefined) | undefined;
876
- } | {
877
- type: "Custom";
878
- prefix: string | (() => string | undefined) | undefined;
879
- value: string | (() => string | undefined) | undefined;
880
- }) | undefined;
881
- body?: (Partial<{
882
- newPassword: string;
883
- currentPassword: string;
884
- revokeOtherSessions?: boolean | undefined;
885
- }> & Record<string, any>) | undefined;
886
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
887
- params?: Record<string, any> | undefined;
888
- duplex?: "full" | "half" | undefined;
889
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
890
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
891
- retryAttempt?: number | undefined;
892
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
893
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
894
- disableValidation?: boolean | undefined;
895
- }>(data_0: better_auth_client_plugins0.Prettify<{
896
- newPassword: string;
897
- currentPassword: string;
898
- revokeOtherSessions?: boolean | undefined;
899
- } & {
900
- fetchOptions?: FetchOptions | undefined;
901
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
902
- token: string | null;
903
- user: {
904
- id: string;
905
- email: string;
906
- name: string;
907
- image: string | null | undefined;
908
- emailVerified: boolean;
909
- createdAt: Date;
910
- updatedAt: Date;
956
+ resetPassword: {
957
+ ":token": <FetchOptions extends {
958
+ method?: string | undefined;
959
+ mode?: RequestMode | undefined;
960
+ headers?: (HeadersInit & (HeadersInit | {
961
+ accept: "application/json" | "text/plain" | "application/octet-stream";
962
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
963
+ authorization: "Bearer" | "Basic";
964
+ })) | undefined;
965
+ cache?: RequestCache | undefined;
966
+ credentials?: RequestCredentials | undefined;
967
+ integrity?: string | undefined;
968
+ keepalive?: boolean | undefined;
969
+ priority?: RequestPriority | undefined;
970
+ redirect?: RequestRedirect | undefined;
971
+ referrer?: string | undefined;
972
+ referrerPolicy?: ReferrerPolicy | undefined;
973
+ signal?: (AbortSignal | null) | undefined;
974
+ window?: null | undefined;
975
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
976
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
977
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
978
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
979
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
980
+ hookOptions?: {
981
+ cloneResponse?: boolean;
982
+ } | undefined;
983
+ timeout?: number | undefined;
984
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
985
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
986
+ baseURL?: string | undefined;
987
+ throw?: boolean | undefined;
988
+ auth?: ({
989
+ type: "Bearer";
990
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
991
+ } | {
992
+ type: "Basic";
993
+ username: string | (() => string | undefined) | undefined;
994
+ password: string | (() => string | undefined) | undefined;
995
+ } | {
996
+ type: "Custom";
997
+ prefix: string | (() => string | undefined) | undefined;
998
+ value: string | (() => string | undefined) | undefined;
999
+ }) | undefined;
1000
+ body?: undefined;
1001
+ query?: (Partial<{
1002
+ callbackURL: string;
1003
+ }> & Record<string, any>) | undefined;
1004
+ params?: {
1005
+ token: string;
1006
+ } | undefined;
1007
+ duplex?: "full" | "half" | undefined;
1008
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1009
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
1010
+ retryAttempt?: number | undefined;
1011
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1012
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1013
+ disableValidation?: boolean | undefined;
1014
+ }>(data_0: better_auth_client_plugins.Prettify<{
1015
+ query: {
1016
+ callbackURL: string;
1017
+ };
1018
+ fetchOptions?: FetchOptions | undefined;
1019
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<never, {
1020
+ code?: string | undefined;
1021
+ message?: string | undefined;
1022
+ }, FetchOptions["throw"] extends true ? true : false>>;
911
1023
  };
912
- }, {
913
- code?: string | undefined;
914
- message?: string | undefined;
915
- }, FetchOptions["throw"] extends true ? true : false>>;
916
- } & {
917
- updateUser: <FetchOptions extends {
918
- headers?: (HeadersInit & (HeadersInit | {
919
- accept: "application/json" | "text/plain" | "application/octet-stream";
920
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
921
- authorization: "Bearer" | "Basic";
922
- })) | undefined;
923
- cache?: RequestCache | undefined;
924
- credentials?: RequestCredentials | undefined;
925
- integrity?: string | undefined;
926
- keepalive?: boolean | undefined;
927
- method?: string | undefined;
928
- mode?: RequestMode | undefined;
929
- priority?: RequestPriority | undefined;
930
- redirect?: RequestRedirect | undefined;
931
- referrer?: string | undefined;
932
- referrerPolicy?: ReferrerPolicy | undefined;
933
- signal?: (AbortSignal | null) | undefined;
934
- window?: null | undefined;
935
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
936
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
937
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
938
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
939
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
940
- hookOptions?: {
941
- cloneResponse?: boolean;
942
- } | undefined;
943
- timeout?: number | undefined;
944
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
945
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
946
- baseURL?: string | undefined;
947
- throw?: boolean | undefined;
948
- auth?: ({
949
- type: "Bearer";
950
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
951
- } | {
952
- type: "Basic";
953
- username: string | (() => string | undefined) | undefined;
954
- password: string | (() => string | undefined) | undefined;
955
- } | {
956
- type: "Custom";
957
- prefix: string | (() => string | undefined) | undefined;
958
- value: string | (() => string | undefined) | undefined;
959
- }) | undefined;
960
- body?: (Partial<Partial<{}> & {
961
- name?: string | undefined;
962
- image?: string | undefined;
963
- }> & Record<string, any>) | undefined;
964
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
965
- params?: Record<string, any> | undefined;
966
- duplex?: "full" | "half" | undefined;
967
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
968
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
969
- retryAttempt?: number | undefined;
970
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
971
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
972
- disableValidation?: boolean | undefined;
973
- }>(data_0?: better_auth_client_plugins0.Prettify<{
974
- image?: (string | null) | undefined;
975
- name?: string | undefined;
976
- fetchOptions?: FetchOptions | undefined;
977
- } & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
978
- status: boolean;
979
- }, {
980
- code?: string | undefined;
981
- message?: string | undefined;
982
- }, FetchOptions["throw"] extends true ? true : false>>;
983
- } & {
984
- deleteUser: <FetchOptions extends {
985
- headers?: (HeadersInit & (HeadersInit | {
986
- accept: "application/json" | "text/plain" | "application/octet-stream";
987
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
988
- authorization: "Bearer" | "Basic";
989
- })) | undefined;
990
- cache?: RequestCache | undefined;
991
- credentials?: RequestCredentials | undefined;
992
- integrity?: string | undefined;
993
- keepalive?: boolean | undefined;
994
- method?: string | undefined;
995
- mode?: RequestMode | undefined;
996
- priority?: RequestPriority | undefined;
997
- redirect?: RequestRedirect | undefined;
998
- referrer?: string | undefined;
999
- referrerPolicy?: ReferrerPolicy | undefined;
1000
- signal?: (AbortSignal | null) | undefined;
1001
- window?: null | undefined;
1002
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
1003
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
1004
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
1005
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
1006
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
1007
- hookOptions?: {
1008
- cloneResponse?: boolean;
1009
- } | undefined;
1010
- timeout?: number | undefined;
1011
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
1012
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
1013
- baseURL?: string | undefined;
1014
- throw?: boolean | undefined;
1015
- auth?: ({
1016
- type: "Bearer";
1017
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1018
- } | {
1019
- type: "Basic";
1020
- username: string | (() => string | undefined) | undefined;
1021
- password: string | (() => string | undefined) | undefined;
1022
- } | {
1023
- type: "Custom";
1024
- prefix: string | (() => string | undefined) | undefined;
1025
- value: string | (() => string | undefined) | undefined;
1026
- }) | undefined;
1027
- body?: (Partial<{
1028
- callbackURL?: string | undefined;
1029
- password?: string | undefined;
1030
- token?: string | undefined;
1031
- }> & Record<string, any>) | undefined;
1032
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1033
- params?: Record<string, any> | undefined;
1034
- duplex?: "full" | "half" | undefined;
1035
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1036
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
1037
- retryAttempt?: number | undefined;
1038
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1039
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
1040
- disableValidation?: boolean | undefined;
1041
- }>(data_0?: better_auth_client_plugins0.Prettify<{
1042
- callbackURL?: string | undefined;
1043
- password?: string | undefined;
1044
- token?: string | undefined;
1045
- } & {
1046
- fetchOptions?: FetchOptions | undefined;
1047
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
1048
- success: boolean;
1049
- message: string;
1050
- }, {
1051
- code?: string | undefined;
1052
- message?: string | undefined;
1053
- }, FetchOptions["throw"] extends true ? true : false>>;
1054
1024
  } & {
1055
- requestPasswordReset: <FetchOptions extends {
1056
- headers?: (HeadersInit & (HeadersInit | {
1057
- accept: "application/json" | "text/plain" | "application/octet-stream";
1058
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1059
- authorization: "Bearer" | "Basic";
1060
- })) | undefined;
1061
- cache?: RequestCache | undefined;
1062
- credentials?: RequestCredentials | undefined;
1063
- integrity?: string | undefined;
1064
- keepalive?: boolean | undefined;
1065
- method?: string | undefined;
1066
- mode?: RequestMode | undefined;
1067
- priority?: RequestPriority | undefined;
1068
- redirect?: RequestRedirect | undefined;
1069
- referrer?: string | undefined;
1070
- referrerPolicy?: ReferrerPolicy | undefined;
1071
- signal?: (AbortSignal | null) | undefined;
1072
- window?: null | undefined;
1073
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
1074
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
1075
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
1076
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
1077
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
1078
- hookOptions?: {
1079
- cloneResponse?: boolean;
1080
- } | undefined;
1081
- timeout?: number | undefined;
1082
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
1083
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
1084
- baseURL?: string | undefined;
1085
- throw?: boolean | undefined;
1086
- auth?: ({
1087
- type: "Bearer";
1088
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1089
- } | {
1090
- type: "Basic";
1091
- username: string | (() => string | undefined) | undefined;
1092
- password: string | (() => string | undefined) | undefined;
1093
- } | {
1094
- type: "Custom";
1095
- prefix: string | (() => string | undefined) | undefined;
1096
- value: string | (() => string | undefined) | undefined;
1097
- }) | undefined;
1098
- body?: (Partial<{
1099
- email: string;
1100
- redirectTo?: string | undefined;
1101
- }> & Record<string, any>) | undefined;
1102
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1103
- params?: Record<string, any> | undefined;
1104
- duplex?: "full" | "half" | undefined;
1105
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1106
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
1107
- retryAttempt?: number | undefined;
1108
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1109
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
1110
- disableValidation?: boolean | undefined;
1111
- }>(data_0: better_auth_client_plugins0.Prettify<{
1112
- email: string;
1113
- redirectTo?: string | undefined;
1114
- } & {
1115
- fetchOptions?: FetchOptions | undefined;
1116
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
1117
- status: boolean;
1118
- message: string;
1119
- }, {
1120
- code?: string | undefined;
1121
- message?: string | undefined;
1122
- }, FetchOptions["throw"] extends true ? true : false>>;
1123
- } & {
1124
- resetPassword: {
1125
- ":token": <FetchOptions extends {
1126
- headers?: (HeadersInit & (HeadersInit | {
1127
- accept: "application/json" | "text/plain" | "application/octet-stream";
1128
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1129
- authorization: "Bearer" | "Basic";
1130
- })) | undefined;
1131
- cache?: RequestCache | undefined;
1132
- credentials?: RequestCredentials | undefined;
1133
- integrity?: string | undefined;
1134
- keepalive?: boolean | undefined;
1135
- method?: string | undefined;
1136
- mode?: RequestMode | undefined;
1137
- priority?: RequestPriority | undefined;
1138
- redirect?: RequestRedirect | undefined;
1139
- referrer?: string | undefined;
1140
- referrerPolicy?: ReferrerPolicy | undefined;
1141
- signal?: (AbortSignal | null) | undefined;
1142
- window?: null | undefined;
1143
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
1144
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
1145
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
1146
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
1147
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
1148
- hookOptions?: {
1149
- cloneResponse?: boolean;
1150
- } | undefined;
1151
- timeout?: number | undefined;
1152
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
1153
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
1154
- baseURL?: string | undefined;
1155
- throw?: boolean | undefined;
1156
- auth?: ({
1157
- type: "Bearer";
1158
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1159
- } | {
1160
- type: "Basic";
1161
- username: string | (() => string | undefined) | undefined;
1162
- password: string | (() => string | undefined) | undefined;
1163
- } | {
1164
- type: "Custom";
1165
- prefix: string | (() => string | undefined) | undefined;
1166
- value: string | (() => string | undefined) | undefined;
1167
- }) | undefined;
1168
- body?: undefined;
1169
- query?: (Partial<{
1170
- callbackURL: string;
1171
- }> & Record<string, any>) | undefined;
1172
- params?: {
1025
+ revokeSession: <FetchOptions extends {
1026
+ method?: string | undefined;
1027
+ mode?: RequestMode | undefined;
1028
+ headers?: (HeadersInit & (HeadersInit | {
1029
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1030
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1031
+ authorization: "Bearer" | "Basic";
1032
+ })) | undefined;
1033
+ cache?: RequestCache | undefined;
1034
+ credentials?: RequestCredentials | undefined;
1035
+ integrity?: string | undefined;
1036
+ keepalive?: boolean | undefined;
1037
+ priority?: RequestPriority | undefined;
1038
+ redirect?: RequestRedirect | undefined;
1039
+ referrer?: string | undefined;
1040
+ referrerPolicy?: ReferrerPolicy | undefined;
1041
+ signal?: (AbortSignal | null) | undefined;
1042
+ window?: null | undefined;
1043
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1044
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1045
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1046
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1047
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1048
+ hookOptions?: {
1049
+ cloneResponse?: boolean;
1050
+ } | undefined;
1051
+ timeout?: number | undefined;
1052
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1053
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1054
+ baseURL?: string | undefined;
1055
+ throw?: boolean | undefined;
1056
+ auth?: ({
1057
+ type: "Bearer";
1058
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1059
+ } | {
1060
+ type: "Basic";
1061
+ username: string | (() => string | undefined) | undefined;
1062
+ password: string | (() => string | undefined) | undefined;
1063
+ } | {
1064
+ type: "Custom";
1065
+ prefix: string | (() => string | undefined) | undefined;
1066
+ value: string | (() => string | undefined) | undefined;
1067
+ }) | undefined;
1068
+ body?: (Partial<{
1069
+ token: string;
1070
+ }> & Record<string, any>) | undefined;
1071
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1072
+ params?: Record<string, any> | undefined;
1073
+ duplex?: "full" | "half" | undefined;
1074
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1075
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
1076
+ retryAttempt?: number | undefined;
1077
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1078
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1079
+ disableValidation?: boolean | undefined;
1080
+ }>(data_0: better_auth_client_plugins.Prettify<{
1173
1081
  token: string;
1174
- } | undefined;
1175
- duplex?: "full" | "half" | undefined;
1176
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1177
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
1178
- retryAttempt?: number | undefined;
1179
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1180
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
1181
- disableValidation?: boolean | undefined;
1182
- }>(data_0: better_auth_client_plugins0.Prettify<{
1183
- query: {
1184
- callbackURL: string;
1185
- };
1186
- fetchOptions?: FetchOptions | undefined;
1187
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<never, {
1188
- code?: string | undefined;
1189
- message?: string | undefined;
1082
+ } & {
1083
+ fetchOptions?: FetchOptions | undefined;
1084
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1085
+ status: boolean;
1086
+ }, {
1087
+ code?: string | undefined;
1088
+ message?: string | undefined;
1190
1089
  }, FetchOptions["throw"] extends true ? true : false>>;
1191
- };
1192
- } & {
1193
- listSessions: <FetchOptions extends {
1194
- headers?: (HeadersInit & (HeadersInit | {
1195
- accept: "application/json" | "text/plain" | "application/octet-stream";
1196
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1197
- authorization: "Bearer" | "Basic";
1198
- })) | undefined;
1199
- cache?: RequestCache | undefined;
1200
- credentials?: RequestCredentials | undefined;
1201
- integrity?: string | undefined;
1202
- keepalive?: boolean | undefined;
1203
- method?: string | undefined;
1204
- mode?: RequestMode | undefined;
1205
- priority?: RequestPriority | undefined;
1206
- redirect?: RequestRedirect | undefined;
1207
- referrer?: string | undefined;
1208
- referrerPolicy?: ReferrerPolicy | undefined;
1209
- signal?: (AbortSignal | null) | undefined;
1210
- window?: null | undefined;
1211
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
1212
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
1213
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
1214
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
1215
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
1216
- hookOptions?: {
1217
- cloneResponse?: boolean;
1218
- } | undefined;
1219
- timeout?: number | undefined;
1220
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
1221
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
1222
- baseURL?: string | undefined;
1223
- throw?: boolean | undefined;
1224
- auth?: ({
1225
- type: "Bearer";
1226
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1227
- } | {
1228
- type: "Basic";
1229
- username: string | (() => string | undefined) | undefined;
1230
- password: string | (() => string | undefined) | undefined;
1231
- } | {
1232
- type: "Custom";
1233
- prefix: string | (() => string | undefined) | undefined;
1234
- value: string | (() => string | undefined) | undefined;
1235
- }) | undefined;
1236
- body?: undefined;
1237
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1238
- params?: Record<string, any> | undefined;
1239
- duplex?: "full" | "half" | undefined;
1240
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1241
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
1242
- retryAttempt?: number | undefined;
1243
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1244
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
1245
- disableValidation?: boolean | undefined;
1246
- }>(data_0?: better_auth_client_plugins0.Prettify<{
1247
- query?: Record<string, any> | undefined;
1248
- fetchOptions?: FetchOptions | undefined;
1249
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<better_auth_client_plugins0.Prettify<{
1250
- id: string;
1251
- createdAt: Date;
1252
- updatedAt: Date;
1253
- userId: string;
1254
- expiresAt: Date;
1255
- token: string;
1256
- ipAddress?: string | null | undefined | undefined;
1257
- userAgent?: string | null | undefined | undefined;
1258
- }>[], {
1259
- code?: string | undefined;
1260
- message?: string | undefined;
1261
- }, FetchOptions["throw"] extends true ? true : false>>;
1262
- } & {
1263
- revokeSession: <FetchOptions extends {
1264
- headers?: (HeadersInit & (HeadersInit | {
1265
- accept: "application/json" | "text/plain" | "application/octet-stream";
1266
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1267
- authorization: "Bearer" | "Basic";
1268
- })) | undefined;
1269
- cache?: RequestCache | undefined;
1270
- credentials?: RequestCredentials | undefined;
1271
- integrity?: string | undefined;
1272
- keepalive?: boolean | undefined;
1273
- method?: string | undefined;
1274
- mode?: RequestMode | undefined;
1275
- priority?: RequestPriority | undefined;
1276
- redirect?: RequestRedirect | undefined;
1277
- referrer?: string | undefined;
1278
- referrerPolicy?: ReferrerPolicy | undefined;
1279
- signal?: (AbortSignal | null) | undefined;
1280
- window?: null | undefined;
1281
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
1282
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
1283
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
1284
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
1285
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
1286
- hookOptions?: {
1287
- cloneResponse?: boolean;
1288
- } | undefined;
1289
- timeout?: number | undefined;
1290
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
1291
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
1292
- baseURL?: string | undefined;
1293
- throw?: boolean | undefined;
1294
- auth?: ({
1295
- type: "Bearer";
1296
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1297
- } | {
1298
- type: "Basic";
1299
- username: string | (() => string | undefined) | undefined;
1300
- password: string | (() => string | undefined) | undefined;
1301
- } | {
1302
- type: "Custom";
1303
- prefix: string | (() => string | undefined) | undefined;
1304
- value: string | (() => string | undefined) | undefined;
1305
- }) | undefined;
1306
- body?: (Partial<{
1307
- token: string;
1308
- }> & Record<string, any>) | undefined;
1309
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1310
- params?: Record<string, any> | undefined;
1311
- duplex?: "full" | "half" | undefined;
1312
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1313
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
1314
- retryAttempt?: number | undefined;
1315
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1316
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
1317
- disableValidation?: boolean | undefined;
1318
- }>(data_0: better_auth_client_plugins0.Prettify<{
1319
- token: string;
1320
- } & {
1321
- fetchOptions?: FetchOptions | undefined;
1322
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
1323
- status: boolean;
1324
- }, {
1325
- code?: string | undefined;
1326
- message?: string | undefined;
1327
- }, FetchOptions["throw"] extends true ? true : false>>;
1328
1090
  } & {
1329
- revokeSessions: <FetchOptions extends {
1330
- headers?: (HeadersInit & (HeadersInit | {
1331
- accept: "application/json" | "text/plain" | "application/octet-stream";
1332
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1333
- authorization: "Bearer" | "Basic";
1334
- })) | undefined;
1335
- cache?: RequestCache | undefined;
1336
- credentials?: RequestCredentials | undefined;
1337
- integrity?: string | undefined;
1338
- keepalive?: boolean | undefined;
1339
- method?: string | undefined;
1340
- mode?: RequestMode | undefined;
1341
- priority?: RequestPriority | undefined;
1342
- redirect?: RequestRedirect | undefined;
1343
- referrer?: string | undefined;
1344
- referrerPolicy?: ReferrerPolicy | undefined;
1345
- signal?: (AbortSignal | null) | undefined;
1346
- window?: null | undefined;
1347
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
1348
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
1349
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
1350
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
1351
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
1352
- hookOptions?: {
1353
- cloneResponse?: boolean;
1354
- } | undefined;
1355
- timeout?: number | undefined;
1356
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
1357
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
1358
- baseURL?: string | undefined;
1359
- throw?: boolean | undefined;
1360
- auth?: ({
1361
- type: "Bearer";
1362
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1363
- } | {
1364
- type: "Basic";
1365
- username: string | (() => string | undefined) | undefined;
1366
- password: string | (() => string | undefined) | undefined;
1367
- } | {
1368
- type: "Custom";
1369
- prefix: string | (() => string | undefined) | undefined;
1370
- value: string | (() => string | undefined) | undefined;
1371
- }) | undefined;
1372
- body?: undefined;
1373
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1374
- params?: Record<string, any> | undefined;
1375
- duplex?: "full" | "half" | undefined;
1376
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1377
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
1378
- retryAttempt?: number | undefined;
1379
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1380
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
1381
- disableValidation?: boolean | undefined;
1382
- }>(data_0?: better_auth_client_plugins0.Prettify<{
1383
- query?: Record<string, any> | undefined;
1384
- fetchOptions?: FetchOptions | undefined;
1385
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
1386
- status: boolean;
1387
- }, {
1388
- code?: string | undefined;
1389
- message?: string | undefined;
1390
- }, FetchOptions["throw"] extends true ? true : false>>;
1091
+ revokeSessions: <FetchOptions extends {
1092
+ method?: string | undefined;
1093
+ mode?: RequestMode | undefined;
1094
+ headers?: (HeadersInit & (HeadersInit | {
1095
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1096
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1097
+ authorization: "Bearer" | "Basic";
1098
+ })) | undefined;
1099
+ cache?: RequestCache | undefined;
1100
+ credentials?: RequestCredentials | undefined;
1101
+ integrity?: string | undefined;
1102
+ keepalive?: boolean | undefined;
1103
+ priority?: RequestPriority | undefined;
1104
+ redirect?: RequestRedirect | undefined;
1105
+ referrer?: string | undefined;
1106
+ referrerPolicy?: ReferrerPolicy | undefined;
1107
+ signal?: (AbortSignal | null) | undefined;
1108
+ window?: null | undefined;
1109
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1110
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1111
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1112
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1113
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1114
+ hookOptions?: {
1115
+ cloneResponse?: boolean;
1116
+ } | undefined;
1117
+ timeout?: number | undefined;
1118
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1119
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1120
+ baseURL?: string | undefined;
1121
+ throw?: boolean | undefined;
1122
+ auth?: ({
1123
+ type: "Bearer";
1124
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1125
+ } | {
1126
+ type: "Basic";
1127
+ username: string | (() => string | undefined) | undefined;
1128
+ password: string | (() => string | undefined) | undefined;
1129
+ } | {
1130
+ type: "Custom";
1131
+ prefix: string | (() => string | undefined) | undefined;
1132
+ value: string | (() => string | undefined) | undefined;
1133
+ }) | undefined;
1134
+ body?: undefined;
1135
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1136
+ params?: Record<string, any> | undefined;
1137
+ duplex?: "full" | "half" | undefined;
1138
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1139
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
1140
+ retryAttempt?: number | undefined;
1141
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1142
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1143
+ disableValidation?: boolean | undefined;
1144
+ }>(data_0?: better_auth_client_plugins.Prettify<{
1145
+ query?: Record<string, any> | undefined;
1146
+ fetchOptions?: FetchOptions | undefined;
1147
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1148
+ status: boolean;
1149
+ }, {
1150
+ code?: string | undefined;
1151
+ message?: string | undefined;
1152
+ }, FetchOptions["throw"] extends true ? true : false>>;
1391
1153
  } & {
1392
- revokeOtherSessions: <FetchOptions extends {
1393
- headers?: (HeadersInit & (HeadersInit | {
1394
- accept: "application/json" | "text/plain" | "application/octet-stream";
1395
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1396
- authorization: "Bearer" | "Basic";
1397
- })) | undefined;
1398
- cache?: RequestCache | undefined;
1399
- credentials?: RequestCredentials | undefined;
1400
- integrity?: string | undefined;
1401
- keepalive?: boolean | undefined;
1402
- method?: string | undefined;
1403
- mode?: RequestMode | undefined;
1404
- priority?: RequestPriority | undefined;
1405
- redirect?: RequestRedirect | undefined;
1406
- referrer?: string | undefined;
1407
- referrerPolicy?: ReferrerPolicy | undefined;
1408
- signal?: (AbortSignal | null) | undefined;
1409
- window?: null | undefined;
1410
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
1411
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
1412
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
1413
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
1414
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
1415
- hookOptions?: {
1416
- cloneResponse?: boolean;
1417
- } | undefined;
1418
- timeout?: number | undefined;
1419
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
1420
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
1421
- baseURL?: string | undefined;
1422
- throw?: boolean | undefined;
1423
- auth?: ({
1424
- type: "Bearer";
1425
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1426
- } | {
1427
- type: "Basic";
1428
- username: string | (() => string | undefined) | undefined;
1429
- password: string | (() => string | undefined) | undefined;
1430
- } | {
1431
- type: "Custom";
1432
- prefix: string | (() => string | undefined) | undefined;
1433
- value: string | (() => string | undefined) | undefined;
1434
- }) | undefined;
1435
- body?: undefined;
1436
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1437
- params?: Record<string, any> | undefined;
1438
- duplex?: "full" | "half" | undefined;
1439
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1440
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
1441
- retryAttempt?: number | undefined;
1442
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1443
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
1444
- disableValidation?: boolean | undefined;
1445
- }>(data_0?: better_auth_client_plugins0.Prettify<{
1446
- query?: Record<string, any> | undefined;
1447
- fetchOptions?: FetchOptions | undefined;
1448
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
1449
- status: boolean;
1450
- }, {
1451
- code?: string | undefined;
1452
- message?: string | undefined;
1453
- }, FetchOptions["throw"] extends true ? true : false>>;
1154
+ revokeOtherSessions: <FetchOptions extends {
1155
+ method?: string | undefined;
1156
+ mode?: RequestMode | undefined;
1157
+ headers?: (HeadersInit & (HeadersInit | {
1158
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1159
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1160
+ authorization: "Bearer" | "Basic";
1161
+ })) | undefined;
1162
+ cache?: RequestCache | undefined;
1163
+ credentials?: RequestCredentials | undefined;
1164
+ integrity?: string | undefined;
1165
+ keepalive?: boolean | undefined;
1166
+ priority?: RequestPriority | undefined;
1167
+ redirect?: RequestRedirect | undefined;
1168
+ referrer?: string | undefined;
1169
+ referrerPolicy?: ReferrerPolicy | undefined;
1170
+ signal?: (AbortSignal | null) | undefined;
1171
+ window?: null | undefined;
1172
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1173
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1174
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1175
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1176
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1177
+ hookOptions?: {
1178
+ cloneResponse?: boolean;
1179
+ } | undefined;
1180
+ timeout?: number | undefined;
1181
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1182
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1183
+ baseURL?: string | undefined;
1184
+ throw?: boolean | undefined;
1185
+ auth?: ({
1186
+ type: "Bearer";
1187
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1188
+ } | {
1189
+ type: "Basic";
1190
+ username: string | (() => string | undefined) | undefined;
1191
+ password: string | (() => string | undefined) | undefined;
1192
+ } | {
1193
+ type: "Custom";
1194
+ prefix: string | (() => string | undefined) | undefined;
1195
+ value: string | (() => string | undefined) | undefined;
1196
+ }) | undefined;
1197
+ body?: undefined;
1198
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1199
+ params?: Record<string, any> | undefined;
1200
+ duplex?: "full" | "half" | undefined;
1201
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1202
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
1203
+ retryAttempt?: number | undefined;
1204
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1205
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1206
+ disableValidation?: boolean | undefined;
1207
+ }>(data_0?: better_auth_client_plugins.Prettify<{
1208
+ query?: Record<string, any> | undefined;
1209
+ fetchOptions?: FetchOptions | undefined;
1210
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1211
+ status: boolean;
1212
+ }, {
1213
+ code?: string | undefined;
1214
+ message?: string | undefined;
1215
+ }, FetchOptions["throw"] extends true ? true : false>>;
1454
1216
  } & {
1455
- linkSocial: <FetchOptions extends {
1456
- headers?: (HeadersInit & (HeadersInit | {
1457
- accept: "application/json" | "text/plain" | "application/octet-stream";
1458
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1459
- authorization: "Bearer" | "Basic";
1460
- })) | undefined;
1461
- cache?: RequestCache | undefined;
1462
- credentials?: RequestCredentials | undefined;
1463
- integrity?: string | undefined;
1464
- keepalive?: boolean | undefined;
1465
- method?: string | undefined;
1466
- mode?: RequestMode | undefined;
1467
- priority?: RequestPriority | undefined;
1468
- redirect?: RequestRedirect | undefined;
1469
- referrer?: string | undefined;
1470
- referrerPolicy?: ReferrerPolicy | undefined;
1471
- signal?: (AbortSignal | null) | undefined;
1472
- window?: null | undefined;
1473
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
1474
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
1475
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
1476
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
1477
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
1478
- hookOptions?: {
1479
- cloneResponse?: boolean;
1480
- } | undefined;
1481
- timeout?: number | undefined;
1482
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
1483
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
1484
- baseURL?: string | undefined;
1485
- throw?: boolean | undefined;
1486
- auth?: ({
1487
- type: "Bearer";
1488
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1489
- } | {
1490
- type: "Basic";
1491
- username: string | (() => string | undefined) | undefined;
1492
- password: string | (() => string | undefined) | undefined;
1493
- } | {
1494
- type: "Custom";
1495
- prefix: string | (() => string | undefined) | undefined;
1496
- value: string | (() => string | undefined) | undefined;
1497
- }) | undefined;
1498
- body?: (Partial<{
1499
- provider: unknown;
1500
- callbackURL?: string | undefined;
1501
- idToken?: {
1502
- token: string;
1503
- nonce?: string | undefined;
1504
- accessToken?: string | undefined;
1505
- refreshToken?: string | undefined;
1217
+ linkSocial: <FetchOptions extends {
1218
+ method?: string | undefined;
1219
+ mode?: RequestMode | undefined;
1220
+ headers?: (HeadersInit & (HeadersInit | {
1221
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1222
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1223
+ authorization: "Bearer" | "Basic";
1224
+ })) | undefined;
1225
+ cache?: RequestCache | undefined;
1226
+ credentials?: RequestCredentials | undefined;
1227
+ integrity?: string | undefined;
1228
+ keepalive?: boolean | undefined;
1229
+ priority?: RequestPriority | undefined;
1230
+ redirect?: RequestRedirect | undefined;
1231
+ referrer?: string | undefined;
1232
+ referrerPolicy?: ReferrerPolicy | undefined;
1233
+ signal?: (AbortSignal | null) | undefined;
1234
+ window?: null | undefined;
1235
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1236
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1237
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1238
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1239
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1240
+ hookOptions?: {
1241
+ cloneResponse?: boolean;
1242
+ } | undefined;
1243
+ timeout?: number | undefined;
1244
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1245
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1246
+ baseURL?: string | undefined;
1247
+ throw?: boolean | undefined;
1248
+ auth?: ({
1249
+ type: "Bearer";
1250
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1251
+ } | {
1252
+ type: "Basic";
1253
+ username: string | (() => string | undefined) | undefined;
1254
+ password: string | (() => string | undefined) | undefined;
1255
+ } | {
1256
+ type: "Custom";
1257
+ prefix: string | (() => string | undefined) | undefined;
1258
+ value: string | (() => string | undefined) | undefined;
1259
+ }) | undefined;
1260
+ body?: (Partial<{
1261
+ provider: unknown;
1262
+ callbackURL?: string | undefined;
1263
+ idToken?: {
1264
+ token: string;
1265
+ nonce?: string | undefined;
1266
+ accessToken?: string | undefined;
1267
+ refreshToken?: string | undefined;
1268
+ scopes?: string[] | undefined;
1269
+ } | undefined;
1270
+ requestSignUp?: boolean | undefined;
1271
+ scopes?: string[] | undefined;
1272
+ errorCallbackURL?: string | undefined;
1273
+ disableRedirect?: boolean | undefined;
1274
+ additionalData?: Record<string, any> | undefined;
1275
+ }> & Record<string, any>) | undefined;
1276
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1277
+ params?: Record<string, any> | undefined;
1278
+ duplex?: "full" | "half" | undefined;
1279
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1280
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
1281
+ retryAttempt?: number | undefined;
1282
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1283
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1284
+ disableValidation?: boolean | undefined;
1285
+ }>(data_0: better_auth_client_plugins.Prettify<{
1286
+ provider: unknown;
1287
+ callbackURL?: string | undefined;
1288
+ idToken?: {
1289
+ token: string;
1290
+ nonce?: string | undefined;
1291
+ accessToken?: string | undefined;
1292
+ refreshToken?: string | undefined;
1293
+ scopes?: string[] | undefined;
1294
+ } | undefined;
1295
+ requestSignUp?: boolean | undefined;
1506
1296
  scopes?: string[] | undefined;
1507
- } | undefined;
1508
- requestSignUp?: boolean | undefined;
1509
- scopes?: string[] | undefined;
1510
- errorCallbackURL?: string | undefined;
1511
- disableRedirect?: boolean | undefined;
1512
- additionalData?: Record<string, any> | undefined;
1513
- }> & Record<string, any>) | undefined;
1514
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1515
- params?: Record<string, any> | undefined;
1516
- duplex?: "full" | "half" | undefined;
1517
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1518
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
1519
- retryAttempt?: number | undefined;
1520
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1521
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
1522
- disableValidation?: boolean | undefined;
1523
- }>(data_0: better_auth_client_plugins0.Prettify<{
1524
- provider: unknown;
1525
- callbackURL?: string | undefined;
1526
- idToken?: {
1527
- token: string;
1528
- nonce?: string | undefined;
1529
- accessToken?: string | undefined;
1530
- refreshToken?: string | undefined;
1531
- scopes?: string[] | undefined;
1532
- } | undefined;
1533
- requestSignUp?: boolean | undefined;
1534
- scopes?: string[] | undefined;
1535
- errorCallbackURL?: string | undefined;
1536
- disableRedirect?: boolean | undefined;
1537
- additionalData?: Record<string, any> | undefined;
1538
- } & {
1539
- fetchOptions?: FetchOptions | undefined;
1540
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
1541
- url: string;
1542
- redirect: boolean;
1543
- }, {
1544
- code?: string | undefined;
1545
- message?: string | undefined;
1546
- }, FetchOptions["throw"] extends true ? true : false>>;
1297
+ errorCallbackURL?: string | undefined;
1298
+ disableRedirect?: boolean | undefined;
1299
+ additionalData?: Record<string, any> | undefined;
1300
+ } & {
1301
+ fetchOptions?: FetchOptions | undefined;
1302
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1303
+ url: string;
1304
+ redirect: boolean;
1305
+ }, {
1306
+ code?: string | undefined;
1307
+ message?: string | undefined;
1308
+ }, FetchOptions["throw"] extends true ? true : false>>;
1547
1309
  } & {
1548
- listAccounts: <FetchOptions extends {
1549
- headers?: (HeadersInit & (HeadersInit | {
1550
- accept: "application/json" | "text/plain" | "application/octet-stream";
1551
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1552
- authorization: "Bearer" | "Basic";
1553
- })) | undefined;
1554
- cache?: RequestCache | undefined;
1555
- credentials?: RequestCredentials | undefined;
1556
- integrity?: string | undefined;
1557
- keepalive?: boolean | undefined;
1558
- method?: string | undefined;
1559
- mode?: RequestMode | undefined;
1560
- priority?: RequestPriority | undefined;
1561
- redirect?: RequestRedirect | undefined;
1562
- referrer?: string | undefined;
1563
- referrerPolicy?: ReferrerPolicy | undefined;
1564
- signal?: (AbortSignal | null) | undefined;
1565
- window?: null | undefined;
1566
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
1567
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
1568
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
1569
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
1570
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
1571
- hookOptions?: {
1572
- cloneResponse?: boolean;
1573
- } | undefined;
1574
- timeout?: number | undefined;
1575
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
1576
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
1577
- baseURL?: string | undefined;
1578
- throw?: boolean | undefined;
1579
- auth?: ({
1580
- type: "Bearer";
1581
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1582
- } | {
1583
- type: "Basic";
1584
- username: string | (() => string | undefined) | undefined;
1585
- password: string | (() => string | undefined) | undefined;
1586
- } | {
1587
- type: "Custom";
1588
- prefix: string | (() => string | undefined) | undefined;
1589
- value: string | (() => string | undefined) | undefined;
1590
- }) | undefined;
1591
- body?: undefined;
1592
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1593
- params?: Record<string, any> | undefined;
1594
- duplex?: "full" | "half" | undefined;
1595
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1596
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
1597
- retryAttempt?: number | undefined;
1598
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1599
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
1600
- disableValidation?: boolean | undefined;
1601
- }>(data_0?: better_auth_client_plugins0.Prettify<{
1602
- query?: Record<string, any> | undefined;
1603
- fetchOptions?: FetchOptions | undefined;
1604
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
1605
- id: string;
1606
- providerId: string;
1607
- createdAt: Date;
1608
- updatedAt: Date;
1609
- accountId: string;
1610
- userId: string;
1611
- scopes: string[];
1612
- }[], {
1613
- code?: string | undefined;
1614
- message?: string | undefined;
1615
- }, FetchOptions["throw"] extends true ? true : false>>;
1310
+ listAccounts: <FetchOptions extends {
1311
+ method?: string | undefined;
1312
+ mode?: RequestMode | undefined;
1313
+ headers?: (HeadersInit & (HeadersInit | {
1314
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1315
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1316
+ authorization: "Bearer" | "Basic";
1317
+ })) | undefined;
1318
+ cache?: RequestCache | undefined;
1319
+ credentials?: RequestCredentials | undefined;
1320
+ integrity?: string | undefined;
1321
+ keepalive?: boolean | undefined;
1322
+ priority?: RequestPriority | undefined;
1323
+ redirect?: RequestRedirect | undefined;
1324
+ referrer?: string | undefined;
1325
+ referrerPolicy?: ReferrerPolicy | undefined;
1326
+ signal?: (AbortSignal | null) | undefined;
1327
+ window?: null | undefined;
1328
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1329
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1330
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1331
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1332
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1333
+ hookOptions?: {
1334
+ cloneResponse?: boolean;
1335
+ } | undefined;
1336
+ timeout?: number | undefined;
1337
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1338
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1339
+ baseURL?: string | undefined;
1340
+ throw?: boolean | undefined;
1341
+ auth?: ({
1342
+ type: "Bearer";
1343
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1344
+ } | {
1345
+ type: "Basic";
1346
+ username: string | (() => string | undefined) | undefined;
1347
+ password: string | (() => string | undefined) | undefined;
1348
+ } | {
1349
+ type: "Custom";
1350
+ prefix: string | (() => string | undefined) | undefined;
1351
+ value: string | (() => string | undefined) | undefined;
1352
+ }) | undefined;
1353
+ body?: undefined;
1354
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1355
+ params?: Record<string, any> | undefined;
1356
+ duplex?: "full" | "half" | undefined;
1357
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1358
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
1359
+ retryAttempt?: number | undefined;
1360
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1361
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1362
+ disableValidation?: boolean | undefined;
1363
+ }>(data_0?: better_auth_client_plugins.Prettify<{
1364
+ query?: Record<string, any> | undefined;
1365
+ fetchOptions?: FetchOptions | undefined;
1366
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1367
+ id: string;
1368
+ providerId: string;
1369
+ createdAt: Date;
1370
+ updatedAt: Date;
1371
+ accountId: string;
1372
+ userId: string;
1373
+ scopes: string[];
1374
+ }[], {
1375
+ code?: string | undefined;
1376
+ message?: string | undefined;
1377
+ }, FetchOptions["throw"] extends true ? true : false>>;
1616
1378
  } & {
1617
- deleteUser: {
1618
- callback: <FetchOptions extends {
1619
- headers?: (HeadersInit & (HeadersInit | {
1620
- accept: "application/json" | "text/plain" | "application/octet-stream";
1621
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1622
- authorization: "Bearer" | "Basic";
1623
- })) | undefined;
1624
- cache?: RequestCache | undefined;
1625
- credentials?: RequestCredentials | undefined;
1626
- integrity?: string | undefined;
1627
- keepalive?: boolean | undefined;
1628
- method?: string | undefined;
1629
- mode?: RequestMode | undefined;
1630
- priority?: RequestPriority | undefined;
1631
- redirect?: RequestRedirect | undefined;
1632
- referrer?: string | undefined;
1633
- referrerPolicy?: ReferrerPolicy | undefined;
1634
- signal?: (AbortSignal | null) | undefined;
1635
- window?: null | undefined;
1636
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
1637
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
1638
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
1639
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
1640
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
1641
- hookOptions?: {
1642
- cloneResponse?: boolean;
1643
- } | undefined;
1644
- timeout?: number | undefined;
1645
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
1646
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
1647
- baseURL?: string | undefined;
1648
- throw?: boolean | undefined;
1649
- auth?: ({
1650
- type: "Bearer";
1651
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1652
- } | {
1653
- type: "Basic";
1654
- username: string | (() => string | undefined) | undefined;
1655
- password: string | (() => string | undefined) | undefined;
1656
- } | {
1657
- type: "Custom";
1658
- prefix: string | (() => string | undefined) | undefined;
1659
- value: string | (() => string | undefined) | undefined;
1660
- }) | undefined;
1661
- body?: undefined;
1662
- query?: (Partial<{
1663
- token: string;
1664
- callbackURL?: string | undefined;
1665
- }> & Record<string, any>) | undefined;
1666
- params?: Record<string, any> | undefined;
1667
- duplex?: "full" | "half" | undefined;
1668
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1669
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
1670
- retryAttempt?: number | undefined;
1671
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1672
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
1673
- disableValidation?: boolean | undefined;
1674
- }>(data_0: better_auth_client_plugins0.Prettify<{
1675
- query: {
1676
- token: string;
1677
- callbackURL?: string | undefined;
1678
- };
1679
- fetchOptions?: FetchOptions | undefined;
1680
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
1681
- success: boolean;
1682
- message: string;
1379
+ deleteUser: {
1380
+ callback: <FetchOptions extends {
1381
+ method?: string | undefined;
1382
+ mode?: RequestMode | undefined;
1383
+ headers?: (HeadersInit & (HeadersInit | {
1384
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1385
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1386
+ authorization: "Bearer" | "Basic";
1387
+ })) | undefined;
1388
+ cache?: RequestCache | undefined;
1389
+ credentials?: RequestCredentials | undefined;
1390
+ integrity?: string | undefined;
1391
+ keepalive?: boolean | undefined;
1392
+ priority?: RequestPriority | undefined;
1393
+ redirect?: RequestRedirect | undefined;
1394
+ referrer?: string | undefined;
1395
+ referrerPolicy?: ReferrerPolicy | undefined;
1396
+ signal?: (AbortSignal | null) | undefined;
1397
+ window?: null | undefined;
1398
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1399
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1400
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1401
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1402
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1403
+ hookOptions?: {
1404
+ cloneResponse?: boolean;
1405
+ } | undefined;
1406
+ timeout?: number | undefined;
1407
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1408
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1409
+ baseURL?: string | undefined;
1410
+ throw?: boolean | undefined;
1411
+ auth?: ({
1412
+ type: "Bearer";
1413
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1414
+ } | {
1415
+ type: "Basic";
1416
+ username: string | (() => string | undefined) | undefined;
1417
+ password: string | (() => string | undefined) | undefined;
1418
+ } | {
1419
+ type: "Custom";
1420
+ prefix: string | (() => string | undefined) | undefined;
1421
+ value: string | (() => string | undefined) | undefined;
1422
+ }) | undefined;
1423
+ body?: undefined;
1424
+ query?: (Partial<{
1425
+ token: string;
1426
+ callbackURL?: string | undefined;
1427
+ }> & Record<string, any>) | undefined;
1428
+ params?: Record<string, any> | undefined;
1429
+ duplex?: "full" | "half" | undefined;
1430
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1431
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
1432
+ retryAttempt?: number | undefined;
1433
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1434
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1435
+ disableValidation?: boolean | undefined;
1436
+ }>(data_0: better_auth_client_plugins.Prettify<{
1437
+ query: {
1438
+ token: string;
1439
+ callbackURL?: string | undefined;
1440
+ };
1441
+ fetchOptions?: FetchOptions | undefined;
1442
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1443
+ success: boolean;
1444
+ message: string;
1445
+ }, {
1446
+ code?: string | undefined;
1447
+ message?: string | undefined;
1448
+ }, FetchOptions["throw"] extends true ? true : false>>;
1449
+ };
1450
+ } & {
1451
+ unlinkAccount: <FetchOptions extends {
1452
+ method?: string | undefined;
1453
+ mode?: RequestMode | undefined;
1454
+ headers?: (HeadersInit & (HeadersInit | {
1455
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1456
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1457
+ authorization: "Bearer" | "Basic";
1458
+ })) | undefined;
1459
+ cache?: RequestCache | undefined;
1460
+ credentials?: RequestCredentials | undefined;
1461
+ integrity?: string | undefined;
1462
+ keepalive?: boolean | undefined;
1463
+ priority?: RequestPriority | undefined;
1464
+ redirect?: RequestRedirect | undefined;
1465
+ referrer?: string | undefined;
1466
+ referrerPolicy?: ReferrerPolicy | undefined;
1467
+ signal?: (AbortSignal | null) | undefined;
1468
+ window?: null | undefined;
1469
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1470
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1471
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1472
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1473
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1474
+ hookOptions?: {
1475
+ cloneResponse?: boolean;
1476
+ } | undefined;
1477
+ timeout?: number | undefined;
1478
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1479
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1480
+ baseURL?: string | undefined;
1481
+ throw?: boolean | undefined;
1482
+ auth?: ({
1483
+ type: "Bearer";
1484
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1485
+ } | {
1486
+ type: "Basic";
1487
+ username: string | (() => string | undefined) | undefined;
1488
+ password: string | (() => string | undefined) | undefined;
1489
+ } | {
1490
+ type: "Custom";
1491
+ prefix: string | (() => string | undefined) | undefined;
1492
+ value: string | (() => string | undefined) | undefined;
1493
+ }) | undefined;
1494
+ body?: (Partial<{
1495
+ providerId: string;
1496
+ accountId?: string | undefined;
1497
+ }> & Record<string, any>) | undefined;
1498
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1499
+ params?: Record<string, any> | undefined;
1500
+ duplex?: "full" | "half" | undefined;
1501
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1502
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
1503
+ retryAttempt?: number | undefined;
1504
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1505
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1506
+ disableValidation?: boolean | undefined;
1507
+ }>(data_0: better_auth_client_plugins.Prettify<{
1508
+ providerId: string;
1509
+ accountId?: string | undefined;
1510
+ } & {
1511
+ fetchOptions?: FetchOptions | undefined;
1512
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1513
+ status: boolean;
1683
1514
  }, {
1684
- code?: string | undefined;
1685
- message?: string | undefined;
1515
+ code?: string | undefined;
1516
+ message?: string | undefined;
1686
1517
  }, FetchOptions["throw"] extends true ? true : false>>;
1687
- };
1688
- } & {
1689
- unlinkAccount: <FetchOptions extends {
1690
- headers?: (HeadersInit & (HeadersInit | {
1691
- accept: "application/json" | "text/plain" | "application/octet-stream";
1692
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1693
- authorization: "Bearer" | "Basic";
1694
- })) | undefined;
1695
- cache?: RequestCache | undefined;
1696
- credentials?: RequestCredentials | undefined;
1697
- integrity?: string | undefined;
1698
- keepalive?: boolean | undefined;
1699
- method?: string | undefined;
1700
- mode?: RequestMode | undefined;
1701
- priority?: RequestPriority | undefined;
1702
- redirect?: RequestRedirect | undefined;
1703
- referrer?: string | undefined;
1704
- referrerPolicy?: ReferrerPolicy | undefined;
1705
- signal?: (AbortSignal | null) | undefined;
1706
- window?: null | undefined;
1707
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
1708
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
1709
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
1710
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
1711
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
1712
- hookOptions?: {
1713
- cloneResponse?: boolean;
1714
- } | undefined;
1715
- timeout?: number | undefined;
1716
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
1717
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
1718
- baseURL?: string | undefined;
1719
- throw?: boolean | undefined;
1720
- auth?: ({
1721
- type: "Bearer";
1722
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1723
- } | {
1724
- type: "Basic";
1725
- username: string | (() => string | undefined) | undefined;
1726
- password: string | (() => string | undefined) | undefined;
1727
- } | {
1728
- type: "Custom";
1729
- prefix: string | (() => string | undefined) | undefined;
1730
- value: string | (() => string | undefined) | undefined;
1731
- }) | undefined;
1732
- body?: (Partial<{
1733
- providerId: string;
1734
- accountId?: string | undefined;
1735
- }> & Record<string, any>) | undefined;
1736
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1737
- params?: Record<string, any> | undefined;
1738
- duplex?: "full" | "half" | undefined;
1739
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1740
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
1741
- retryAttempt?: number | undefined;
1742
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1743
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
1744
- disableValidation?: boolean | undefined;
1745
- }>(data_0: better_auth_client_plugins0.Prettify<{
1746
- providerId: string;
1747
- accountId?: string | undefined;
1748
- } & {
1749
- fetchOptions?: FetchOptions | undefined;
1750
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
1751
- status: boolean;
1752
- }, {
1753
- code?: string | undefined;
1754
- message?: string | undefined;
1755
- }, FetchOptions["throw"] extends true ? true : false>>;
1756
1518
  } & {
1757
- refreshToken: <FetchOptions extends {
1758
- headers?: (HeadersInit & (HeadersInit | {
1759
- accept: "application/json" | "text/plain" | "application/octet-stream";
1760
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1761
- authorization: "Bearer" | "Basic";
1762
- })) | undefined;
1763
- cache?: RequestCache | undefined;
1764
- credentials?: RequestCredentials | undefined;
1765
- integrity?: string | undefined;
1766
- keepalive?: boolean | undefined;
1767
- method?: string | undefined;
1768
- mode?: RequestMode | undefined;
1769
- priority?: RequestPriority | undefined;
1770
- redirect?: RequestRedirect | undefined;
1771
- referrer?: string | undefined;
1772
- referrerPolicy?: ReferrerPolicy | undefined;
1773
- signal?: (AbortSignal | null) | undefined;
1774
- window?: null | undefined;
1775
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
1776
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
1777
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
1778
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
1779
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
1780
- hookOptions?: {
1781
- cloneResponse?: boolean;
1782
- } | undefined;
1783
- timeout?: number | undefined;
1784
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
1785
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
1786
- baseURL?: string | undefined;
1787
- throw?: boolean | undefined;
1788
- auth?: ({
1789
- type: "Bearer";
1790
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1791
- } | {
1792
- type: "Basic";
1793
- username: string | (() => string | undefined) | undefined;
1794
- password: string | (() => string | undefined) | undefined;
1795
- } | {
1796
- type: "Custom";
1797
- prefix: string | (() => string | undefined) | undefined;
1798
- value: string | (() => string | undefined) | undefined;
1799
- }) | undefined;
1800
- body?: (Partial<{
1801
- providerId: string;
1802
- accountId?: string | undefined;
1803
- userId?: string | undefined;
1804
- }> & Record<string, any>) | undefined;
1805
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1806
- params?: Record<string, any> | undefined;
1807
- duplex?: "full" | "half" | undefined;
1808
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1809
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
1810
- retryAttempt?: number | undefined;
1811
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1812
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
1813
- disableValidation?: boolean | undefined;
1814
- }>(data_0: better_auth_client_plugins0.Prettify<{
1815
- providerId: string;
1816
- accountId?: string | undefined;
1817
- userId?: string | undefined;
1818
- } & {
1819
- fetchOptions?: FetchOptions | undefined;
1820
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<better_auth0.OAuth2Tokens, {
1821
- code?: string | undefined;
1822
- message?: string | undefined;
1823
- }, FetchOptions["throw"] extends true ? true : false>>;
1519
+ refreshToken: <FetchOptions extends {
1520
+ method?: string | undefined;
1521
+ mode?: RequestMode | undefined;
1522
+ headers?: (HeadersInit & (HeadersInit | {
1523
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1524
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1525
+ authorization: "Bearer" | "Basic";
1526
+ })) | undefined;
1527
+ cache?: RequestCache | undefined;
1528
+ credentials?: RequestCredentials | undefined;
1529
+ integrity?: string | undefined;
1530
+ keepalive?: boolean | undefined;
1531
+ priority?: RequestPriority | undefined;
1532
+ redirect?: RequestRedirect | undefined;
1533
+ referrer?: string | undefined;
1534
+ referrerPolicy?: ReferrerPolicy | undefined;
1535
+ signal?: (AbortSignal | null) | undefined;
1536
+ window?: null | undefined;
1537
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1538
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1539
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1540
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1541
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1542
+ hookOptions?: {
1543
+ cloneResponse?: boolean;
1544
+ } | undefined;
1545
+ timeout?: number | undefined;
1546
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1547
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1548
+ baseURL?: string | undefined;
1549
+ throw?: boolean | undefined;
1550
+ auth?: ({
1551
+ type: "Bearer";
1552
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1553
+ } | {
1554
+ type: "Basic";
1555
+ username: string | (() => string | undefined) | undefined;
1556
+ password: string | (() => string | undefined) | undefined;
1557
+ } | {
1558
+ type: "Custom";
1559
+ prefix: string | (() => string | undefined) | undefined;
1560
+ value: string | (() => string | undefined) | undefined;
1561
+ }) | undefined;
1562
+ body?: (Partial<{
1563
+ providerId: string;
1564
+ accountId?: string | undefined;
1565
+ userId?: string | undefined;
1566
+ }> & Record<string, any>) | undefined;
1567
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1568
+ params?: Record<string, any> | undefined;
1569
+ duplex?: "full" | "half" | undefined;
1570
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1571
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
1572
+ retryAttempt?: number | undefined;
1573
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1574
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1575
+ disableValidation?: boolean | undefined;
1576
+ }>(data_0: better_auth_client_plugins.Prettify<{
1577
+ providerId: string;
1578
+ accountId?: string | undefined;
1579
+ userId?: string | undefined;
1580
+ } & {
1581
+ fetchOptions?: FetchOptions | undefined;
1582
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<better_auth.OAuth2Tokens, {
1583
+ code?: string | undefined;
1584
+ message?: string | undefined;
1585
+ }, FetchOptions["throw"] extends true ? true : false>>;
1824
1586
  } & {
1825
- getAccessToken: <FetchOptions extends {
1826
- headers?: (HeadersInit & (HeadersInit | {
1827
- accept: "application/json" | "text/plain" | "application/octet-stream";
1828
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1829
- authorization: "Bearer" | "Basic";
1830
- })) | undefined;
1831
- cache?: RequestCache | undefined;
1832
- credentials?: RequestCredentials | undefined;
1833
- integrity?: string | undefined;
1834
- keepalive?: boolean | undefined;
1835
- method?: string | undefined;
1836
- mode?: RequestMode | undefined;
1837
- priority?: RequestPriority | undefined;
1838
- redirect?: RequestRedirect | undefined;
1839
- referrer?: string | undefined;
1840
- referrerPolicy?: ReferrerPolicy | undefined;
1841
- signal?: (AbortSignal | null) | undefined;
1842
- window?: null | undefined;
1843
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
1844
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
1845
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
1846
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
1847
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
1848
- hookOptions?: {
1849
- cloneResponse?: boolean;
1850
- } | undefined;
1851
- timeout?: number | undefined;
1852
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
1853
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
1854
- baseURL?: string | undefined;
1855
- throw?: boolean | undefined;
1856
- auth?: ({
1857
- type: "Bearer";
1858
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1859
- } | {
1860
- type: "Basic";
1861
- username: string | (() => string | undefined) | undefined;
1862
- password: string | (() => string | undefined) | undefined;
1863
- } | {
1864
- type: "Custom";
1865
- prefix: string | (() => string | undefined) | undefined;
1866
- value: string | (() => string | undefined) | undefined;
1867
- }) | undefined;
1868
- body?: (Partial<{
1869
- providerId: string;
1870
- accountId?: string | undefined;
1871
- userId?: string | undefined;
1872
- }> & Record<string, any>) | undefined;
1873
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1874
- params?: Record<string, any> | undefined;
1875
- duplex?: "full" | "half" | undefined;
1876
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1877
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
1878
- retryAttempt?: number | undefined;
1879
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1880
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
1881
- disableValidation?: boolean | undefined;
1882
- }>(data_0: better_auth_client_plugins0.Prettify<{
1883
- providerId: string;
1884
- accountId?: string | undefined;
1885
- userId?: string | undefined;
1886
- } & {
1887
- fetchOptions?: FetchOptions | undefined;
1888
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
1889
- accessToken: string;
1890
- accessTokenExpiresAt: Date | undefined;
1891
- scopes: string[];
1892
- idToken: string | undefined;
1893
- }, {
1894
- code?: string | undefined;
1895
- message?: string | undefined;
1896
- }, FetchOptions["throw"] extends true ? true : false>>;
1587
+ getAccessToken: <FetchOptions extends {
1588
+ method?: string | undefined;
1589
+ mode?: RequestMode | undefined;
1590
+ headers?: (HeadersInit & (HeadersInit | {
1591
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1592
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1593
+ authorization: "Bearer" | "Basic";
1594
+ })) | undefined;
1595
+ cache?: RequestCache | undefined;
1596
+ credentials?: RequestCredentials | undefined;
1597
+ integrity?: string | undefined;
1598
+ keepalive?: boolean | undefined;
1599
+ priority?: RequestPriority | undefined;
1600
+ redirect?: RequestRedirect | undefined;
1601
+ referrer?: string | undefined;
1602
+ referrerPolicy?: ReferrerPolicy | undefined;
1603
+ signal?: (AbortSignal | null) | undefined;
1604
+ window?: null | undefined;
1605
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1606
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1607
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1608
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1609
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1610
+ hookOptions?: {
1611
+ cloneResponse?: boolean;
1612
+ } | undefined;
1613
+ timeout?: number | undefined;
1614
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1615
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1616
+ baseURL?: string | undefined;
1617
+ throw?: boolean | undefined;
1618
+ auth?: ({
1619
+ type: "Bearer";
1620
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1621
+ } | {
1622
+ type: "Basic";
1623
+ username: string | (() => string | undefined) | undefined;
1624
+ password: string | (() => string | undefined) | undefined;
1625
+ } | {
1626
+ type: "Custom";
1627
+ prefix: string | (() => string | undefined) | undefined;
1628
+ value: string | (() => string | undefined) | undefined;
1629
+ }) | undefined;
1630
+ body?: (Partial<{
1631
+ providerId: string;
1632
+ accountId?: string | undefined;
1633
+ userId?: string | undefined;
1634
+ }> & Record<string, any>) | undefined;
1635
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1636
+ params?: Record<string, any> | undefined;
1637
+ duplex?: "full" | "half" | undefined;
1638
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1639
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
1640
+ retryAttempt?: number | undefined;
1641
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1642
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1643
+ disableValidation?: boolean | undefined;
1644
+ }>(data_0: better_auth_client_plugins.Prettify<{
1645
+ providerId: string;
1646
+ accountId?: string | undefined;
1647
+ userId?: string | undefined;
1648
+ } & {
1649
+ fetchOptions?: FetchOptions | undefined;
1650
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1651
+ accessToken: string;
1652
+ accessTokenExpiresAt: Date | undefined;
1653
+ scopes: string[];
1654
+ idToken: string | undefined;
1655
+ }, {
1656
+ code?: string | undefined;
1657
+ message?: string | undefined;
1658
+ }, FetchOptions["throw"] extends true ? true : false>>;
1897
1659
  } & {
1898
- accountInfo: <FetchOptions extends {
1899
- headers?: (HeadersInit & (HeadersInit | {
1900
- accept: "application/json" | "text/plain" | "application/octet-stream";
1901
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1902
- authorization: "Bearer" | "Basic";
1903
- })) | undefined;
1904
- cache?: RequestCache | undefined;
1905
- credentials?: RequestCredentials | undefined;
1906
- integrity?: string | undefined;
1907
- keepalive?: boolean | undefined;
1908
- method?: string | undefined;
1909
- mode?: RequestMode | undefined;
1910
- priority?: RequestPriority | undefined;
1911
- redirect?: RequestRedirect | undefined;
1912
- referrer?: string | undefined;
1913
- referrerPolicy?: ReferrerPolicy | undefined;
1914
- signal?: (AbortSignal | null) | undefined;
1915
- window?: null | undefined;
1916
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
1917
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
1918
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
1919
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
1920
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
1921
- hookOptions?: {
1922
- cloneResponse?: boolean;
1923
- } | undefined;
1924
- timeout?: number | undefined;
1925
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
1926
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
1927
- baseURL?: string | undefined;
1928
- throw?: boolean | undefined;
1929
- auth?: ({
1930
- type: "Bearer";
1931
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1932
- } | {
1933
- type: "Basic";
1934
- username: string | (() => string | undefined) | undefined;
1935
- password: string | (() => string | undefined) | undefined;
1936
- } | {
1937
- type: "Custom";
1938
- prefix: string | (() => string | undefined) | undefined;
1939
- value: string | (() => string | undefined) | undefined;
1940
- }) | undefined;
1941
- body?: (Partial<{
1942
- accountId: string;
1943
- }> & Record<string, any>) | undefined;
1944
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1945
- params?: Record<string, any> | undefined;
1946
- duplex?: "full" | "half" | undefined;
1947
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1948
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
1949
- retryAttempt?: number | undefined;
1950
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1951
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
1952
- disableValidation?: boolean | undefined;
1953
- }>(data_0: better_auth_client_plugins0.Prettify<{
1954
- accountId: string;
1955
- } & {
1956
- fetchOptions?: FetchOptions | undefined;
1957
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
1958
- user: better_auth0.OAuth2UserInfo;
1959
- data: Record<string, any>;
1960
- }, {
1961
- code?: string | undefined;
1962
- message?: string | undefined;
1963
- }, FetchOptions["throw"] extends true ? true : false>>;
1660
+ accountInfo: <FetchOptions extends {
1661
+ method?: string | undefined;
1662
+ mode?: RequestMode | undefined;
1663
+ headers?: (HeadersInit & (HeadersInit | {
1664
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1665
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1666
+ authorization: "Bearer" | "Basic";
1667
+ })) | undefined;
1668
+ cache?: RequestCache | undefined;
1669
+ credentials?: RequestCredentials | undefined;
1670
+ integrity?: string | undefined;
1671
+ keepalive?: boolean | undefined;
1672
+ priority?: RequestPriority | undefined;
1673
+ redirect?: RequestRedirect | undefined;
1674
+ referrer?: string | undefined;
1675
+ referrerPolicy?: ReferrerPolicy | undefined;
1676
+ signal?: (AbortSignal | null) | undefined;
1677
+ window?: null | undefined;
1678
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1679
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1680
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1681
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1682
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1683
+ hookOptions?: {
1684
+ cloneResponse?: boolean;
1685
+ } | undefined;
1686
+ timeout?: number | undefined;
1687
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1688
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1689
+ baseURL?: string | undefined;
1690
+ throw?: boolean | undefined;
1691
+ auth?: ({
1692
+ type: "Bearer";
1693
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1694
+ } | {
1695
+ type: "Basic";
1696
+ username: string | (() => string | undefined) | undefined;
1697
+ password: string | (() => string | undefined) | undefined;
1698
+ } | {
1699
+ type: "Custom";
1700
+ prefix: string | (() => string | undefined) | undefined;
1701
+ value: string | (() => string | undefined) | undefined;
1702
+ }) | undefined;
1703
+ body?: (Partial<{
1704
+ accountId: string;
1705
+ }> & Record<string, any>) | undefined;
1706
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1707
+ params?: Record<string, any> | undefined;
1708
+ duplex?: "full" | "half" | undefined;
1709
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1710
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
1711
+ retryAttempt?: number | undefined;
1712
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1713
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1714
+ disableValidation?: boolean | undefined;
1715
+ }>(data_0: better_auth_client_plugins.Prettify<{
1716
+ accountId: string;
1717
+ } & {
1718
+ fetchOptions?: FetchOptions | undefined;
1719
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1720
+ user: better_auth.OAuth2UserInfo;
1721
+ data: Record<string, any>;
1722
+ }, {
1723
+ code?: string | undefined;
1724
+ message?: string | undefined;
1725
+ }, FetchOptions["throw"] extends true ? true : false>>;
1964
1726
  } & {
1965
- getSession: <FetchOptions extends {
1966
- headers?: (HeadersInit & (HeadersInit | {
1967
- accept: "application/json" | "text/plain" | "application/octet-stream";
1968
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1969
- authorization: "Bearer" | "Basic";
1970
- })) | undefined;
1971
- cache?: RequestCache | undefined;
1972
- credentials?: RequestCredentials | undefined;
1973
- integrity?: string | undefined;
1974
- keepalive?: boolean | undefined;
1975
- method?: string | undefined;
1976
- mode?: RequestMode | undefined;
1977
- priority?: RequestPriority | undefined;
1978
- redirect?: RequestRedirect | undefined;
1979
- referrer?: string | undefined;
1980
- referrerPolicy?: ReferrerPolicy | undefined;
1981
- signal?: (AbortSignal | null) | undefined;
1982
- window?: null | undefined;
1983
- onRequest?: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
1984
- onResponse?: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
1985
- onSuccess?: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
1986
- onError?: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
1987
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
1988
- hookOptions?: {
1989
- cloneResponse?: boolean;
1990
- } | undefined;
1991
- timeout?: number | undefined;
1992
- customFetchImpl?: _better_fetch_fetch0.FetchEsque | undefined;
1993
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[] | undefined;
1994
- baseURL?: string | undefined;
1995
- throw?: boolean | undefined;
1996
- auth?: ({
1997
- type: "Bearer";
1998
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1999
- } | {
2000
- type: "Basic";
2001
- username: string | (() => string | undefined) | undefined;
2002
- password: string | (() => string | undefined) | undefined;
2003
- } | {
2004
- type: "Custom";
2005
- prefix: string | (() => string | undefined) | undefined;
2006
- value: string | (() => string | undefined) | undefined;
2007
- }) | undefined;
2008
- body?: undefined;
2009
- query?: (Partial<{
2010
- disableCookieCache?: unknown;
2011
- disableRefresh?: unknown;
2012
- }> & Record<string, any>) | undefined;
2013
- params?: Record<string, any> | undefined;
2014
- duplex?: "full" | "half" | undefined;
2015
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2016
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
2017
- retryAttempt?: number | undefined;
2018
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2019
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
2020
- disableValidation?: boolean | undefined;
2021
- }>(data_0?: better_auth_client_plugins0.Prettify<{
2022
- query?: {
2023
- disableCookieCache?: unknown;
2024
- disableRefresh?: unknown;
2025
- } | undefined;
2026
- fetchOptions?: FetchOptions | undefined;
2027
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch0.BetterFetchResponse<{
2028
- user: {
2029
- id: string;
2030
- createdAt: Date;
2031
- updatedAt: Date;
2032
- email: string;
2033
- emailVerified: boolean;
2034
- name: string;
2035
- image?: string | null | undefined;
1727
+ signUp: {
1728
+ email: <FetchOptions extends {
1729
+ method?: string | undefined;
1730
+ mode?: RequestMode | undefined;
1731
+ headers?: (HeadersInit & (HeadersInit | {
1732
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1733
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1734
+ authorization: "Bearer" | "Basic";
1735
+ })) | undefined;
1736
+ cache?: RequestCache | undefined;
1737
+ credentials?: RequestCredentials | undefined;
1738
+ integrity?: string | undefined;
1739
+ keepalive?: boolean | undefined;
1740
+ priority?: RequestPriority | undefined;
1741
+ redirect?: RequestRedirect | undefined;
1742
+ referrer?: string | undefined;
1743
+ referrerPolicy?: ReferrerPolicy | undefined;
1744
+ signal?: (AbortSignal | null) | undefined;
1745
+ window?: null | undefined;
1746
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1747
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1748
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1749
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1750
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1751
+ hookOptions?: {
1752
+ cloneResponse?: boolean;
1753
+ } | undefined;
1754
+ timeout?: number | undefined;
1755
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1756
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1757
+ baseURL?: string | undefined;
1758
+ throw?: boolean | undefined;
1759
+ auth?: ({
1760
+ type: "Bearer";
1761
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1762
+ } | {
1763
+ type: "Basic";
1764
+ username: string | (() => string | undefined) | undefined;
1765
+ password: string | (() => string | undefined) | undefined;
1766
+ } | {
1767
+ type: "Custom";
1768
+ prefix: string | (() => string | undefined) | undefined;
1769
+ value: string | (() => string | undefined) | undefined;
1770
+ }) | undefined;
1771
+ body?: (Partial<{
1772
+ name: string;
1773
+ email: string;
1774
+ password: string;
1775
+ image?: string | undefined;
1776
+ callbackURL?: string | undefined;
1777
+ rememberMe?: boolean | undefined;
1778
+ }> & Record<string, any>) | undefined;
1779
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1780
+ params?: Record<string, any> | undefined;
1781
+ duplex?: "full" | "half" | undefined;
1782
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1783
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
1784
+ retryAttempt?: number | undefined;
1785
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1786
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1787
+ disableValidation?: boolean | undefined;
1788
+ }>(data_0: better_auth_client_plugins.Prettify<{
1789
+ email: string;
1790
+ name: string;
1791
+ password: string;
1792
+ image?: string | undefined;
1793
+ callbackURL?: string | undefined;
1794
+ fetchOptions?: FetchOptions | undefined;
1795
+ }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
1796
+ token: null;
1797
+ user: {
1798
+ id: string;
1799
+ email: string;
1800
+ name: string;
1801
+ image: string | null | undefined;
1802
+ emailVerified: boolean;
1803
+ createdAt: Date;
1804
+ updatedAt: Date;
1805
+ };
1806
+ } | {
1807
+ token: string;
1808
+ user: {
1809
+ id: string;
1810
+ email: string;
1811
+ name: string;
1812
+ image: string | null | undefined;
1813
+ emailVerified: boolean;
1814
+ createdAt: Date;
1815
+ updatedAt: Date;
1816
+ };
1817
+ }>, {
1818
+ code?: string | undefined;
1819
+ message?: string | undefined;
1820
+ }, FetchOptions["throw"] extends true ? true : false>>;
2036
1821
  };
2037
- session: {
2038
- id: string;
2039
- createdAt: Date;
2040
- updatedAt: Date;
2041
- userId: string;
2042
- expiresAt: Date;
2043
- token: string;
2044
- ipAddress?: string | null | undefined;
2045
- userAgent?: string | null | undefined;
2046
- };
2047
- } | null, {
2048
- code?: string | undefined;
2049
- message?: string | undefined;
2050
- }, FetchOptions["throw"] extends true ? true : false>>;
2051
1822
  } & {
2052
- useSession: () => {
2053
- data: {
2054
- user: {
2055
- id: string;
2056
- createdAt: Date;
2057
- updatedAt: Date;
2058
- email: string;
2059
- emailVerified: boolean;
2060
- name: string;
2061
- image?: string | null | undefined;
2062
- };
2063
- session: {
2064
- id: string;
2065
- createdAt: Date;
2066
- updatedAt: Date;
2067
- userId: string;
2068
- expiresAt: Date;
2069
- token: string;
2070
- ipAddress?: string | null | undefined;
2071
- userAgent?: string | null | undefined;
2072
- };
2073
- } | null;
2074
- isPending: boolean;
2075
- isRefetching: boolean;
2076
- error: _better_fetch_fetch0.BetterFetchError | null;
2077
- refetch: (queryParams?: {
2078
- query?: better_auth0.SessionQueryParams;
2079
- } | undefined) => void;
2080
- };
2081
- $Infer: {
2082
- Session: {
2083
- user: {
2084
- id: string;
2085
- createdAt: Date;
2086
- updatedAt: Date;
2087
- email: string;
2088
- emailVerified: boolean;
2089
- name: string;
2090
- image?: string | null | undefined;
2091
- };
2092
- session: {
1823
+ updateUser: <FetchOptions extends {
1824
+ method?: string | undefined;
1825
+ mode?: RequestMode | undefined;
1826
+ headers?: (HeadersInit & (HeadersInit | {
1827
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1828
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1829
+ authorization: "Bearer" | "Basic";
1830
+ })) | undefined;
1831
+ cache?: RequestCache | undefined;
1832
+ credentials?: RequestCredentials | undefined;
1833
+ integrity?: string | undefined;
1834
+ keepalive?: boolean | undefined;
1835
+ priority?: RequestPriority | undefined;
1836
+ redirect?: RequestRedirect | undefined;
1837
+ referrer?: string | undefined;
1838
+ referrerPolicy?: ReferrerPolicy | undefined;
1839
+ signal?: (AbortSignal | null) | undefined;
1840
+ window?: null | undefined;
1841
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1842
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1843
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1844
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1845
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1846
+ hookOptions?: {
1847
+ cloneResponse?: boolean;
1848
+ } | undefined;
1849
+ timeout?: number | undefined;
1850
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1851
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1852
+ baseURL?: string | undefined;
1853
+ throw?: boolean | undefined;
1854
+ auth?: ({
1855
+ type: "Bearer";
1856
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1857
+ } | {
1858
+ type: "Basic";
1859
+ username: string | (() => string | undefined) | undefined;
1860
+ password: string | (() => string | undefined) | undefined;
1861
+ } | {
1862
+ type: "Custom";
1863
+ prefix: string | (() => string | undefined) | undefined;
1864
+ value: string | (() => string | undefined) | undefined;
1865
+ }) | undefined;
1866
+ body?: (Partial<Partial<{}> & {
1867
+ name?: string | undefined;
1868
+ image?: string | undefined;
1869
+ }> & Record<string, any>) | undefined;
1870
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1871
+ params?: Record<string, any> | undefined;
1872
+ duplex?: "full" | "half" | undefined;
1873
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1874
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
1875
+ retryAttempt?: number | undefined;
1876
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1877
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1878
+ disableValidation?: boolean | undefined;
1879
+ }>(data_0?: better_auth_client_plugins.Prettify<{
1880
+ image?: (string | null) | undefined;
1881
+ name?: string | undefined;
1882
+ fetchOptions?: FetchOptions | undefined;
1883
+ } & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1884
+ status: boolean;
1885
+ }, {
1886
+ code?: string | undefined;
1887
+ message?: string | undefined;
1888
+ }, FetchOptions["throw"] extends true ? true : false>>;
1889
+ } & {
1890
+ listSessions: <FetchOptions extends {
1891
+ method?: string | undefined;
1892
+ mode?: RequestMode | undefined;
1893
+ headers?: (HeadersInit & (HeadersInit | {
1894
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1895
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1896
+ authorization: "Bearer" | "Basic";
1897
+ })) | undefined;
1898
+ cache?: RequestCache | undefined;
1899
+ credentials?: RequestCredentials | undefined;
1900
+ integrity?: string | undefined;
1901
+ keepalive?: boolean | undefined;
1902
+ priority?: RequestPriority | undefined;
1903
+ redirect?: RequestRedirect | undefined;
1904
+ referrer?: string | undefined;
1905
+ referrerPolicy?: ReferrerPolicy | undefined;
1906
+ signal?: (AbortSignal | null) | undefined;
1907
+ window?: null | undefined;
1908
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1909
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1910
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1911
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1912
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1913
+ hookOptions?: {
1914
+ cloneResponse?: boolean;
1915
+ } | undefined;
1916
+ timeout?: number | undefined;
1917
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1918
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1919
+ baseURL?: string | undefined;
1920
+ throw?: boolean | undefined;
1921
+ auth?: ({
1922
+ type: "Bearer";
1923
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1924
+ } | {
1925
+ type: "Basic";
1926
+ username: string | (() => string | undefined) | undefined;
1927
+ password: string | (() => string | undefined) | undefined;
1928
+ } | {
1929
+ type: "Custom";
1930
+ prefix: string | (() => string | undefined) | undefined;
1931
+ value: string | (() => string | undefined) | undefined;
1932
+ }) | undefined;
1933
+ body?: undefined;
1934
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1935
+ params?: Record<string, any> | undefined;
1936
+ duplex?: "full" | "half" | undefined;
1937
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1938
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
1939
+ retryAttempt?: number | undefined;
1940
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1941
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1942
+ disableValidation?: boolean | undefined;
1943
+ }>(data_0?: better_auth_client_plugins.Prettify<{
1944
+ query?: Record<string, any> | undefined;
1945
+ fetchOptions?: FetchOptions | undefined;
1946
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<better_auth_client_plugins.Prettify<{
2093
1947
  id: string;
2094
1948
  createdAt: Date;
2095
1949
  updatedAt: Date;
2096
1950
  userId: string;
2097
1951
  expiresAt: Date;
2098
1952
  token: string;
2099
- ipAddress?: string | null | undefined;
2100
- userAgent?: string | null | undefined;
2101
- };
1953
+ ipAddress?: string | null | undefined | undefined;
1954
+ userAgent?: string | null | undefined | undefined;
1955
+ }>[], {
1956
+ code?: string | undefined;
1957
+ message?: string | undefined;
1958
+ }, FetchOptions["throw"] extends true ? true : false>>;
1959
+ } & {
1960
+ getSession: <FetchOptions extends {
1961
+ method?: string | undefined;
1962
+ mode?: RequestMode | undefined;
1963
+ headers?: (HeadersInit & (HeadersInit | {
1964
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1965
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1966
+ authorization: "Bearer" | "Basic";
1967
+ })) | undefined;
1968
+ cache?: RequestCache | undefined;
1969
+ credentials?: RequestCredentials | undefined;
1970
+ integrity?: string | undefined;
1971
+ keepalive?: boolean | undefined;
1972
+ priority?: RequestPriority | undefined;
1973
+ redirect?: RequestRedirect | undefined;
1974
+ referrer?: string | undefined;
1975
+ referrerPolicy?: ReferrerPolicy | undefined;
1976
+ signal?: (AbortSignal | null) | undefined;
1977
+ window?: null | undefined;
1978
+ onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1979
+ onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1980
+ onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1981
+ onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1982
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1983
+ hookOptions?: {
1984
+ cloneResponse?: boolean;
1985
+ } | undefined;
1986
+ timeout?: number | undefined;
1987
+ customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1988
+ plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1989
+ baseURL?: string | undefined;
1990
+ throw?: boolean | undefined;
1991
+ auth?: ({
1992
+ type: "Bearer";
1993
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1994
+ } | {
1995
+ type: "Basic";
1996
+ username: string | (() => string | undefined) | undefined;
1997
+ password: string | (() => string | undefined) | undefined;
1998
+ } | {
1999
+ type: "Custom";
2000
+ prefix: string | (() => string | undefined) | undefined;
2001
+ value: string | (() => string | undefined) | undefined;
2002
+ }) | undefined;
2003
+ body?: undefined;
2004
+ query?: (Partial<{
2005
+ disableCookieCache?: unknown;
2006
+ disableRefresh?: unknown;
2007
+ }> & Record<string, any>) | undefined;
2008
+ params?: Record<string, any> | undefined;
2009
+ duplex?: "full" | "half" | undefined;
2010
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2011
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
2012
+ retryAttempt?: number | undefined;
2013
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2014
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
2015
+ disableValidation?: boolean | undefined;
2016
+ }>(data_0?: better_auth_client_plugins.Prettify<{
2017
+ query?: {
2018
+ disableCookieCache?: unknown;
2019
+ disableRefresh?: unknown;
2020
+ } | undefined;
2021
+ fetchOptions?: FetchOptions | undefined;
2022
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
2023
+ user: {
2024
+ id: string;
2025
+ createdAt: Date;
2026
+ updatedAt: Date;
2027
+ email: string;
2028
+ emailVerified: boolean;
2029
+ name: string;
2030
+ image?: string | null | undefined;
2031
+ };
2032
+ session: {
2033
+ id: string;
2034
+ createdAt: Date;
2035
+ updatedAt: Date;
2036
+ userId: string;
2037
+ expiresAt: Date;
2038
+ token: string;
2039
+ ipAddress?: string | null | undefined;
2040
+ userAgent?: string | null | undefined;
2041
+ };
2042
+ } | null, {
2043
+ code?: string | undefined;
2044
+ message?: string | undefined;
2045
+ }, FetchOptions["throw"] extends true ? true : false>>;
2046
+ } & {
2047
+ useSession: () => {
2048
+ data: {
2049
+ user: {
2050
+ id: string;
2051
+ createdAt: Date;
2052
+ updatedAt: Date;
2053
+ email: string;
2054
+ emailVerified: boolean;
2055
+ name: string;
2056
+ image?: string | null | undefined;
2057
+ };
2058
+ session: {
2059
+ id: string;
2060
+ createdAt: Date;
2061
+ updatedAt: Date;
2062
+ userId: string;
2063
+ expiresAt: Date;
2064
+ token: string;
2065
+ ipAddress?: string | null | undefined;
2066
+ userAgent?: string | null | undefined;
2067
+ };
2068
+ } | null;
2069
+ isPending: boolean;
2070
+ isRefetching: boolean;
2071
+ error: _better_fetch_fetch.BetterFetchError | null;
2072
+ refetch: (queryParams?: {
2073
+ query?: better_auth.SessionQueryParams;
2074
+ } | undefined) => void;
2075
+ };
2076
+ $Infer: {
2077
+ Session: {
2078
+ user: {
2079
+ id: string;
2080
+ createdAt: Date;
2081
+ updatedAt: Date;
2082
+ email: string;
2083
+ emailVerified: boolean;
2084
+ name: string;
2085
+ image?: string | null | undefined;
2086
+ };
2087
+ session: {
2088
+ id: string;
2089
+ createdAt: Date;
2090
+ updatedAt: Date;
2091
+ userId: string;
2092
+ expiresAt: Date;
2093
+ token: string;
2094
+ ipAddress?: string | null | undefined;
2095
+ userAgent?: string | null | undefined;
2096
+ };
2097
+ };
2098
+ };
2099
+ $fetch: _better_fetch_fetch.BetterFetch<{
2100
+ plugins: (_better_fetch_fetch.BetterFetchPlugin | {
2101
+ id: string;
2102
+ name: string;
2103
+ hooks: {
2104
+ onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
2105
+ };
2106
+ } | {
2107
+ id: string;
2108
+ name: string;
2109
+ hooks: {
2110
+ onRequest<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>): void;
2111
+ };
2112
+ } | {
2113
+ id: string;
2114
+ name: string;
2115
+ hooks: {
2116
+ onSuccess: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
2117
+ onError: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
2118
+ onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
2119
+ onResponse: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
2120
+ };
2121
+ })[];
2122
+ method: string;
2123
+ headers?: (HeadersInit & (HeadersInit | {
2124
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2125
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2126
+ authorization: "Bearer" | "Basic";
2127
+ })) | undefined;
2128
+ redirect?: RequestRedirect | undefined;
2129
+ cache?: RequestCache | undefined;
2130
+ credentials?: RequestCredentials;
2131
+ integrity?: string | undefined;
2132
+ keepalive?: boolean | undefined;
2133
+ mode?: RequestMode | undefined;
2134
+ priority?: RequestPriority | undefined;
2135
+ referrer?: string | undefined;
2136
+ referrerPolicy?: ReferrerPolicy | undefined;
2137
+ signal?: (AbortSignal | null) | undefined;
2138
+ window?: null | undefined;
2139
+ onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
2140
+ hookOptions?: {
2141
+ cloneResponse?: boolean;
2142
+ } | undefined;
2143
+ timeout?: number | undefined;
2144
+ customFetchImpl: _better_fetch_fetch.FetchEsque;
2145
+ baseURL: string;
2146
+ throw?: boolean | undefined;
2147
+ auth?: ({
2148
+ type: "Bearer";
2149
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2150
+ } | {
2151
+ type: "Basic";
2152
+ username: string | (() => string | undefined) | undefined;
2153
+ password: string | (() => string | undefined) | undefined;
2154
+ } | {
2155
+ type: "Custom";
2156
+ prefix: string | (() => string | undefined) | undefined;
2157
+ value: string | (() => string | undefined) | undefined;
2158
+ }) | undefined;
2159
+ body?: any;
2160
+ query?: any;
2161
+ params?: any;
2162
+ duplex?: "full" | "half" | undefined;
2163
+ jsonParser: (text: string) => Promise<any> | any;
2164
+ retry?: _better_fetch_fetch.RetryOptions | undefined;
2165
+ retryAttempt?: number | undefined;
2166
+ output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2167
+ errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
2168
+ disableValidation?: boolean | undefined;
2169
+ }, unknown, unknown, {}>;
2170
+ $store: {
2171
+ notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
2172
+ listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
2173
+ atoms: Record<string, nanostores.WritableAtom<any>>;
2174
+ };
2175
+ $ERROR_CODES: {
2176
+ readonly USER_NOT_FOUND: "User not found";
2177
+ readonly FAILED_TO_CREATE_USER: "Failed to create user";
2178
+ readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
2179
+ readonly FAILED_TO_UPDATE_USER: "Failed to update user";
2180
+ readonly FAILED_TO_GET_SESSION: "Failed to get session";
2181
+ readonly INVALID_PASSWORD: "Invalid password";
2182
+ readonly INVALID_EMAIL: "Invalid email";
2183
+ readonly INVALID_EMAIL_OR_PASSWORD: "Invalid email or password";
2184
+ readonly SOCIAL_ACCOUNT_ALREADY_LINKED: "Social account already linked";
2185
+ readonly PROVIDER_NOT_FOUND: "Provider not found";
2186
+ readonly INVALID_TOKEN: "Invalid token";
2187
+ readonly ID_TOKEN_NOT_SUPPORTED: "id_token not supported";
2188
+ readonly FAILED_TO_GET_USER_INFO: "Failed to get user info";
2189
+ readonly USER_EMAIL_NOT_FOUND: "User email not found";
2190
+ readonly EMAIL_NOT_VERIFIED: "Email not verified";
2191
+ readonly PASSWORD_TOO_SHORT: "Password too short";
2192
+ readonly PASSWORD_TOO_LONG: "Password too long";
2193
+ readonly USER_ALREADY_EXISTS: "User already exists.";
2194
+ readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
2195
+ readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated";
2196
+ readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found";
2197
+ readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.";
2198
+ readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account";
2199
+ readonly ACCOUNT_NOT_FOUND: "Account not found";
2200
+ readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.";
2102
2201
  };
2103
- };
2104
- $fetch: _better_fetch_fetch0.BetterFetch<{
2105
- plugins: (_better_fetch_fetch0.BetterFetchPlugin | {
2106
- id: string;
2107
- name: string;
2108
- hooks: {
2109
- onSuccess(context: _better_fetch_fetch0.SuccessContext<any>): void;
2110
- };
2111
- } | {
2112
- id: string;
2113
- name: string;
2114
- hooks: {
2115
- onRequest<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>): void;
2116
- };
2117
- } | {
2118
- id: string;
2119
- name: string;
2120
- hooks: {
2121
- onSuccess: ((context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void) | undefined;
2122
- onError: ((context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void) | undefined;
2123
- onRequest: (<T$1 extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T$1>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void) | undefined;
2124
- onResponse: ((context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void) | undefined;
2125
- };
2126
- })[];
2127
- method: string;
2128
- headers?: (HeadersInit & (HeadersInit | {
2129
- accept: "application/json" | "text/plain" | "application/octet-stream";
2130
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2131
- authorization: "Bearer" | "Basic";
2132
- })) | undefined;
2133
- redirect?: RequestRedirect | undefined;
2134
- cache?: RequestCache | undefined;
2135
- credentials?: RequestCredentials;
2136
- integrity?: string | undefined;
2137
- keepalive?: boolean | undefined;
2138
- mode?: RequestMode | undefined;
2139
- priority?: RequestPriority | undefined;
2140
- referrer?: string | undefined;
2141
- referrerPolicy?: ReferrerPolicy | undefined;
2142
- signal?: (AbortSignal | null) | undefined;
2143
- window?: null | undefined;
2144
- onRetry?: ((response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void) | undefined;
2145
- hookOptions?: {
2146
- cloneResponse?: boolean;
2147
- } | undefined;
2148
- timeout?: number | undefined;
2149
- customFetchImpl: _better_fetch_fetch0.FetchEsque;
2150
- baseURL: string;
2151
- throw?: boolean | undefined;
2152
- auth?: ({
2153
- type: "Bearer";
2154
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2155
- } | {
2156
- type: "Basic";
2157
- username: string | (() => string | undefined) | undefined;
2158
- password: string | (() => string | undefined) | undefined;
2159
- } | {
2160
- type: "Custom";
2161
- prefix: string | (() => string | undefined) | undefined;
2162
- value: string | (() => string | undefined) | undefined;
2163
- }) | undefined;
2164
- body?: any;
2165
- query?: any;
2166
- params?: any;
2167
- duplex?: "full" | "half" | undefined;
2168
- jsonParser: (text: string) => Promise<any> | any;
2169
- retry?: _better_fetch_fetch0.RetryOptions | undefined;
2170
- retryAttempt?: number | undefined;
2171
- output?: (_better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2172
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1 | undefined;
2173
- disableValidation?: boolean | undefined;
2174
- }, unknown, unknown, {}>;
2175
- $store: {
2176
- notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
2177
- listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
2178
- atoms: Record<string, nanostores0.WritableAtom<any>>;
2179
- };
2180
- $ERROR_CODES: {
2181
- readonly USER_NOT_FOUND: "User not found";
2182
- readonly FAILED_TO_CREATE_USER: "Failed to create user";
2183
- readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
2184
- readonly FAILED_TO_UPDATE_USER: "Failed to update user";
2185
- readonly FAILED_TO_GET_SESSION: "Failed to get session";
2186
- readonly INVALID_PASSWORD: "Invalid password";
2187
- readonly INVALID_EMAIL: "Invalid email";
2188
- readonly INVALID_EMAIL_OR_PASSWORD: "Invalid email or password";
2189
- readonly SOCIAL_ACCOUNT_ALREADY_LINKED: "Social account already linked";
2190
- readonly PROVIDER_NOT_FOUND: "Provider not found";
2191
- readonly INVALID_TOKEN: "Invalid token";
2192
- readonly ID_TOKEN_NOT_SUPPORTED: "id_token not supported";
2193
- readonly FAILED_TO_GET_USER_INFO: "Failed to get user info";
2194
- readonly USER_EMAIL_NOT_FOUND: "User email not found";
2195
- readonly EMAIL_NOT_VERIFIED: "Email not verified";
2196
- readonly PASSWORD_TOO_SHORT: "Password too short";
2197
- readonly PASSWORD_TOO_LONG: "Password too long";
2198
- readonly USER_ALREADY_EXISTS: "User already exists.";
2199
- readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
2200
- readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated";
2201
- readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found";
2202
- readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.";
2203
- readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account";
2204
- readonly ACCOUNT_NOT_FOUND: "Account not found";
2205
- readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.";
2206
- };
2207
2202
  };
2208
2203
  /**
2209
2204
  * The type of the authentication client.
2210
2205
  */
2211
2206
  type AuthClient = ReturnType<typeof defineAuthClient>;
2212
- //#endregion
2213
- //#region app/lib/auth-provider.d.ts
2207
+
2214
2208
  /**
2215
2209
  * The context type for authentication.
2216
2210
  */
2217
2211
  type AuthContextType = {
2218
- /**
2219
- * The authentication client instance.
2220
- */
2221
- client: AuthClient;
2222
- /**
2223
- * The UI feature flags for authentication.
2224
- */
2225
- features: AuthUIFeatures;
2212
+ /**
2213
+ * The authentication client instance.
2214
+ */
2215
+ client: AuthClient;
2216
+ /**
2217
+ * The UI feature flags for authentication.
2218
+ */
2219
+ features: AuthUIFeatures;
2226
2220
  };
2227
2221
  /**
2228
2222
  * Hook to access the auth context. Provides access to the auth client and
2229
2223
  * feature flags.
2230
2224
  */
2231
2225
  declare function useAuth(): AuthContextType;
2232
- //#endregion
2233
- //#region app/lib/realtime.d.ts
2226
+
2234
2227
  /**
2235
2228
  * Type-safe Socket.IO client.
2236
2229
  */
2237
2230
  type TypedRealtime = Socket<ServerToClientEvents, ClientToServerEvents>;
2238
- /**
2239
- * The realtime provider component.
2240
- */
2241
-
2242
2231
  /**
2243
2232
  * Hook to access the Socket.IO client.
2244
2233
  *
@@ -2268,5 +2257,5 @@ declare function useRealtime(): TypedRealtime;
2268
2257
  * Optional hook that returns null if not within RealtimeProvider.
2269
2258
  */
2270
2259
  declare function useSocketOptional(): TypedRealtime | null;
2271
- //#endregion
2272
- export { type AuthContextType, type FileMetadata, type FileUploadActions, type FileUploadOptions, type FileUploadState, type FileWithPreview, UPLOAD_PRESETS, UPLOAD_VALIDATION, type UploadPreset, formatBytes, generateAcceptAttribute, getFileIcon, getFilePreview, isValidContentType, isValidFileExtension, useAuth, useEnv, useFileUpload, useRealtime, useSocketOptional, validateUpload };
2260
+
2261
+ export { type AuthContextType, type FileMetadata, type FileUploadActions, type FileUploadOptions, type FileUploadState, type FileWithPreview, UPLOAD_PRESETS, UPLOAD_VALIDATION, type UploadPreset, formatBytes, generateAcceptAttribute, getFileIcon, getFilePreview, isValidContentType, isValidFileExtension, useAuth, useEnv, useFileUpload, useRealtime, useSocketOptional, validateUpload };