wcz-test 6.4.2 → 6.4.4

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 (49) hide show
  1. package/dist/Approval-gLhUz6rw.d.ts +284 -0
  2. package/dist/FileMeta-CC014fnB.d.ts +18 -0
  3. package/dist/chunk-4FRZRIAO.js +29 -0
  4. package/dist/chunk-4FRZRIAO.js.map +1 -0
  5. package/dist/chunk-4UULRYGW.js +46 -0
  6. package/dist/chunk-4UULRYGW.js.map +1 -0
  7. package/dist/chunk-5WRI5ZAA.js +31 -0
  8. package/dist/chunk-5WRI5ZAA.js.map +1 -0
  9. package/dist/chunk-BZEEKZFG.js +206 -0
  10. package/dist/chunk-BZEEKZFG.js.map +1 -0
  11. package/dist/chunk-GBRG7C6R.js +61 -0
  12. package/dist/chunk-GBRG7C6R.js.map +1 -0
  13. package/dist/chunk-TME53DAF.js +20 -0
  14. package/dist/chunk-TME53DAF.js.map +1 -0
  15. package/dist/chunk-TVEJZEZT.js +883 -0
  16. package/dist/chunk-TVEJZEZT.js.map +1 -0
  17. package/dist/chunk-YHTLF4NN.js +27 -0
  18. package/dist/chunk-YHTLF4NN.js.map +1 -0
  19. package/dist/chunk-ZMWQQXZT.js +17 -0
  20. package/dist/chunk-ZMWQQXZT.js.map +1 -0
  21. package/dist/components.d.ts +89 -0
  22. package/dist/components.js +546 -0
  23. package/dist/components.js.map +1 -0
  24. package/dist/hooks.d.ts +129 -0
  25. package/dist/hooks.js +304 -0
  26. package/dist/hooks.js.map +1 -0
  27. package/dist/i18next-browser-languagedetector.d.ts +4 -0
  28. package/dist/i18next-browser-languagedetector.js +8 -0
  29. package/dist/i18next-browser-languagedetector.js.map +1 -0
  30. package/dist/i18next.d.ts +2 -0
  31. package/dist/i18next.js +9 -0
  32. package/dist/i18next.js.map +1 -0
  33. package/dist/index.d.ts +4 -3542
  34. package/dist/index.js +228 -2752
  35. package/dist/index.js.map +1 -1
  36. package/dist/models.d.ts +161 -0
  37. package/dist/models.js +249 -0
  38. package/dist/models.js.map +1 -0
  39. package/dist/queries.d.ts +1024 -0
  40. package/dist/queries.js +364 -0
  41. package/dist/queries.js.map +1 -0
  42. package/dist/react-i18next.d.ts +1 -0
  43. package/dist/react-i18next.js +3 -0
  44. package/dist/react-i18next.js.map +1 -0
  45. package/dist/utils-DLRiZ02r.d.ts +47 -0
  46. package/dist/utils.d.ts +2154 -0
  47. package/dist/utils.js +27 -0
  48. package/dist/utils.js.map +1 -0
  49. package/package.json +37 -5
package/dist/index.d.ts CHANGED
@@ -1,120 +1,6 @@
1
- import { TypographyProps, BoxProps, SxProps, Theme, ChipProps, ButtonProps, IconButtonProps, LinkProps, TabProps, ListItemButtonProps, CssVarsThemeOptions, TextFieldProps, SliderProps, RadioGroupProps, SwitchProps, CheckboxProps, AutocompleteProps } from '@mui/material';
2
- import * as react from 'react';
3
- import react__default, { FC, ComponentType, ReactNode } from 'react';
4
- import { DropzoneOptions } from 'react-dropzone';
5
- import * as z from 'zod';
6
- import z__default, { z as z$1 } from 'zod';
7
- import * as react_jsx_runtime from 'react/jsx-runtime';
8
- import { GridValidRowModel, GridRenderCellParams, GridColumnHeaderParams, GridActionsCellItemProps } from '@mui/x-data-grid-premium';
9
- import { LinkComponent, ErrorComponentProps, LinkOptions } from '@tanstack/react-router';
10
- export { uuidv7 } from 'uuidv7';
11
- import * as axios from 'axios';
12
- export { createEnv } from '@t3-oss/env-core';
13
- import * as nanostores from 'nanostores';
14
- import * as node_modules_better_auth_dist_shared_better_auth_BNARIIb2 from 'node_modules/better-auth/dist/shared/better-auth.BNARIIb2';
15
- import * as node_modules_better_auth_dist_shared_better_auth_DNnBkMGu from 'node_modules/better-auth/dist/shared/better-auth.DNnBkMGu';
16
- import * as _better_fetch_fetch from '@better-fetch/fetch';
17
- import { DateTimePickerProps, DatePickerProps } from '@mui/x-date-pickers-pro';
18
- import { NumericFormatProps, InputAttributes } from 'react-number-format/types/types';
19
- import * as _tanstack_react_form from '@tanstack/react-form';
20
- import * as _tanstack_form_core from '@tanstack/form-core';
21
- import * as _tanstack_react_query from '@tanstack/react-query';
22
- import { DefinedInitialDataOptions, UseMutationOptions } from '@tanstack/react-query';
23
- import { DetailedError } from 'tus-js-client';
24
-
25
- interface TypographyWithIconProps extends TypographyProps {
26
- startIcon?: React.ReactNode;
27
- endIcon?: React.ReactNode;
28
- }
29
- declare const TypographyWithIcon: React.FC<TypographyWithIconProps>;
30
-
31
- declare const Fullscreen: FC<BoxProps>;
32
-
33
- interface DropzoneProps extends DropzoneOptions {
34
- sx?: SxProps<Theme>;
35
- }
36
- declare const Dropzone: FC<DropzoneProps>;
37
-
38
- declare const FileMetaSchema: z.ZodObject<{
39
- id: z.ZodUUID;
40
- subId: z.ZodUUID;
41
- appName: z.ZodString;
42
- fileName: z.ZodString;
43
- fileExtension: z.ZodString;
44
- fileSize: z.ZodNumber;
45
- mediaSubType: z.ZodString;
46
- mediaType: z.ZodString;
47
- mimeType: z.ZodString;
48
- createdBy: z.ZodString;
49
- createdDate: z.ZodDate;
50
- }, z.core.$strip>;
51
- type FileMeta = z.infer<typeof FileMetaSchema>;
52
-
53
- type FileViewerGridItemBar = "hidden" | "always" | "onMouseEnter";
54
- interface FileViewerGridProps {
55
- size?: number;
56
- itemBar?: FileViewerGridItemBar;
57
- sx?: SxProps<Theme>;
58
- }
59
-
60
- declare const FileActionsSchema: z.ZodObject<{
61
- download: z.ZodOptional<z.ZodBoolean>;
62
- delete: z.ZodOptional<z.ZodBoolean>;
63
- }, z.core.$strip>;
64
- type FileActions = z.infer<typeof FileActionsSchema>;
65
-
66
- interface FileViewerListProps {
67
- sx?: SxProps<Theme>;
68
- }
69
-
70
- interface FileViewerComponent {
71
- Grid: ComponentType<FileViewerGridProps>;
72
- List: ComponentType<FileViewerListProps>;
73
- }
74
- interface FileViewerProps {
75
- subId: string;
76
- onDelete?: (params: {
77
- remainingFileMetas: Array<FileMeta>;
78
- deletedFileMeta: FileMeta;
79
- }) => void;
80
- actions?: FileActions;
81
- children: (component: FileViewerComponent) => ReactNode;
82
- }
83
- declare const FileViewer: FC<FileViewerProps>;
84
-
85
- interface ChipInputCellProps<T extends GridValidRowModel> {
86
- params: GridRenderCellParams<T>;
87
- slotProps?: ChipProps;
88
- getLabel?: (object: T) => string | number;
89
- }
90
- declare const ChipInputCell: <T extends GridValidRowModel>({ params, slotProps, getLabel }: ChipInputCellProps<T>) => react_jsx_runtime.JSX.Element | null;
91
-
92
- declare const EditableColumnHeader: <T extends GridValidRowModel>({ colDef }: GridColumnHeaderParams<T>) => react_jsx_runtime.JSX.Element;
93
-
94
- declare const Component$5: react__default.ForwardRefExoticComponent<Omit<ButtonProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
95
- declare const RouterButton: LinkComponent<typeof Component$5>;
96
-
97
- declare const Component$4: react__default.ForwardRefExoticComponent<GridActionsCellItemProps & react__default.RefAttributes<HTMLButtonElement>>;
98
- declare const RouterGridActionsCellItem: LinkComponent<typeof Component$4>;
99
-
100
- declare const Component$3: react__default.ForwardRefExoticComponent<Omit<IconButtonProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
101
- declare const RouterIconButton: LinkComponent<typeof Component$3>;
102
-
103
- declare const Component$2: react__default.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
104
- declare const RouterLink: LinkComponent<typeof Component$2>;
105
-
106
- declare const Component$1: react__default.ForwardRefExoticComponent<Omit<TabProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
107
- declare const RouterTab: LinkComponent<typeof Component$1>;
108
-
109
- declare const Component: react__default.ForwardRefExoticComponent<Omit<ListItemButtonProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
110
- declare const RouterListItemButton: LinkComponent<typeof Component>;
111
-
112
- declare function RouterNotFound(): react_jsx_runtime.JSX.Element;
113
-
114
- interface RouterErrorProps {
115
- error: ErrorComponentProps["error"];
116
- }
117
- declare const RouterError: FC<RouterErrorProps>;
1
+ import { LinkOptions } from '@tanstack/react-router';
2
+ import { FC, ReactNode } from 'react';
3
+ import { CssVarsThemeOptions } from '@mui/material';
118
4
 
119
5
  interface NavigationPageItem extends Partial<Pick<LinkOptions, "to" | "href" | "params" | "search">> {
120
6
  title: string;
@@ -141,3428 +27,4 @@ interface ProvidersProps {
141
27
  }
142
28
  declare const LayoutProvider: FC<ProvidersProps>;
143
29
 
144
- declare class Platform {
145
- static get isAndroid(): boolean;
146
- static get isIOS(): boolean;
147
- static get isWindows(): boolean;
148
- static get isMacOS(): boolean;
149
- private static get userAgent();
150
- }
151
- declare const rootRouteHead: () => {
152
- meta: ({
153
- charSet: string;
154
- name?: undefined;
155
- content?: undefined;
156
- title?: undefined;
157
- } | {
158
- name: string;
159
- content: string;
160
- charSet?: undefined;
161
- title?: undefined;
162
- } | {
163
- title: string;
164
- charSet?: undefined;
165
- name?: undefined;
166
- content?: undefined;
167
- })[];
168
- links: ({
169
- rel: string;
170
- sizes: string;
171
- href: string;
172
- type?: undefined;
173
- } | {
174
- rel: string;
175
- type: string;
176
- sizes: string;
177
- href: string;
178
- } | {
179
- rel: string;
180
- href: string;
181
- sizes?: undefined;
182
- type?: undefined;
183
- })[];
184
- };
185
- declare const httpClient: axios.AxiosInstance;
186
- type FormOmittedProps = "name" | "value" | "onChange" | "onBlur" | "error" | "helperText" | "renderInput" | "type" | "aria-label";
187
-
188
- declare const authClient: {
189
- signIn: {
190
- social: <FetchOptions extends {
191
- method?: string | undefined;
192
- mode?: RequestMode | undefined;
193
- referrerPolicy?: ReferrerPolicy | 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
- signal?: (AbortSignal | null) | undefined;
200
- integrity?: string | undefined;
201
- cache?: RequestCache | undefined;
202
- credentials?: RequestCredentials | undefined;
203
- keepalive?: boolean | undefined;
204
- priority?: RequestPriority | undefined;
205
- redirect?: RequestRedirect | undefined;
206
- referrer?: string | undefined;
207
- window?: null | undefined;
208
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
209
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
210
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
211
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
212
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
213
- hookOptions?: {
214
- cloneResponse?: boolean;
215
- } | undefined;
216
- timeout?: number | undefined;
217
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
218
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
219
- baseURL?: string | undefined;
220
- throw?: boolean | undefined;
221
- auth?: ({
222
- type: "Bearer";
223
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
224
- } | {
225
- type: "Basic";
226
- username: string | (() => string | undefined) | undefined;
227
- password: string | (() => string | undefined) | undefined;
228
- } | {
229
- type: "Custom";
230
- prefix: string | (() => string | undefined) | undefined;
231
- value: string | (() => string | undefined) | undefined;
232
- }) | undefined;
233
- body?: (Partial<{
234
- provider: unknown;
235
- callbackURL?: string | undefined;
236
- newUserCallbackURL?: string | undefined;
237
- errorCallbackURL?: string | undefined;
238
- disableRedirect?: boolean | undefined;
239
- idToken?: {
240
- token: string;
241
- nonce?: string | undefined;
242
- accessToken?: string | undefined;
243
- refreshToken?: string | undefined;
244
- expiresAt?: number | undefined;
245
- } | undefined;
246
- scopes?: string[] | undefined;
247
- requestSignUp?: boolean | undefined;
248
- loginHint?: string | undefined;
249
- }> & Record<string, any>) | undefined;
250
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
251
- params?: Record<string, any> | undefined;
252
- duplex?: "full" | "half" | undefined;
253
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
254
- retry?: _better_fetch_fetch.RetryOptions | undefined;
255
- retryAttempt?: number | undefined;
256
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
257
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
258
- disableValidation?: boolean | undefined;
259
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
260
- provider: unknown;
261
- callbackURL?: string | undefined;
262
- newUserCallbackURL?: string | undefined;
263
- errorCallbackURL?: string | undefined;
264
- disableRedirect?: boolean | undefined;
265
- idToken?: {
266
- token: string;
267
- nonce?: string | undefined;
268
- accessToken?: string | undefined;
269
- refreshToken?: string | undefined;
270
- expiresAt?: number | undefined;
271
- } | undefined;
272
- scopes?: string[] | undefined;
273
- requestSignUp?: boolean | undefined;
274
- loginHint?: string | undefined;
275
- } & {
276
- fetchOptions?: FetchOptions | undefined;
277
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
278
- redirect: boolean;
279
- token: string;
280
- url: undefined;
281
- user: {
282
- id: string;
283
- email: string;
284
- name: string;
285
- image: string | null | undefined;
286
- emailVerified: boolean;
287
- createdAt: Date;
288
- updatedAt: Date;
289
- };
290
- } | {
291
- url: string;
292
- redirect: boolean;
293
- }>, {
294
- code?: string;
295
- message?: string;
296
- }, FetchOptions["throw"] extends true ? true : false>>;
297
- };
298
- } & {
299
- signOut: <FetchOptions extends {
300
- method?: string | undefined;
301
- mode?: RequestMode | undefined;
302
- referrerPolicy?: ReferrerPolicy | undefined;
303
- headers?: (HeadersInit & (HeadersInit | {
304
- accept: "application/json" | "text/plain" | "application/octet-stream";
305
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
306
- authorization: "Bearer" | "Basic";
307
- })) | undefined;
308
- signal?: (AbortSignal | null) | undefined;
309
- integrity?: string | undefined;
310
- cache?: RequestCache | undefined;
311
- credentials?: RequestCredentials | undefined;
312
- keepalive?: boolean | undefined;
313
- priority?: RequestPriority | undefined;
314
- redirect?: RequestRedirect | undefined;
315
- referrer?: string | undefined;
316
- window?: null | undefined;
317
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
318
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
319
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
320
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
321
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
322
- hookOptions?: {
323
- cloneResponse?: boolean;
324
- } | undefined;
325
- timeout?: number | undefined;
326
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
327
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
328
- baseURL?: string | undefined;
329
- throw?: boolean | undefined;
330
- auth?: ({
331
- type: "Bearer";
332
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
333
- } | {
334
- type: "Basic";
335
- username: string | (() => string | undefined) | undefined;
336
- password: string | (() => string | undefined) | undefined;
337
- } | {
338
- type: "Custom";
339
- prefix: string | (() => string | undefined) | undefined;
340
- value: string | (() => string | undefined) | undefined;
341
- }) | undefined;
342
- body?: undefined;
343
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
344
- params?: Record<string, any> | undefined;
345
- duplex?: "full" | "half" | undefined;
346
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
347
- retry?: _better_fetch_fetch.RetryOptions | undefined;
348
- retryAttempt?: number | undefined;
349
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
350
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
351
- disableValidation?: boolean | undefined;
352
- }>(data_0?: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
353
- query?: Record<string, any> | undefined;
354
- fetchOptions?: FetchOptions | undefined;
355
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
356
- success: boolean;
357
- }, {
358
- code?: string;
359
- message?: string;
360
- }, FetchOptions["throw"] extends true ? true : false>>;
361
- } & {
362
- signUp: {
363
- email: <FetchOptions extends {
364
- method?: string | undefined;
365
- mode?: RequestMode | undefined;
366
- referrerPolicy?: ReferrerPolicy | undefined;
367
- headers?: (HeadersInit & (HeadersInit | {
368
- accept: "application/json" | "text/plain" | "application/octet-stream";
369
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
370
- authorization: "Bearer" | "Basic";
371
- })) | undefined;
372
- signal?: (AbortSignal | null) | undefined;
373
- integrity?: string | undefined;
374
- cache?: RequestCache | undefined;
375
- credentials?: RequestCredentials | undefined;
376
- keepalive?: boolean | undefined;
377
- priority?: RequestPriority | undefined;
378
- redirect?: RequestRedirect | undefined;
379
- referrer?: string | undefined;
380
- window?: null | undefined;
381
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
382
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
383
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
384
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
385
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
386
- hookOptions?: {
387
- cloneResponse?: boolean;
388
- } | undefined;
389
- timeout?: number | undefined;
390
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
391
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
392
- baseURL?: string | undefined;
393
- throw?: boolean | undefined;
394
- auth?: ({
395
- type: "Bearer";
396
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
397
- } | {
398
- type: "Basic";
399
- username: string | (() => string | undefined) | undefined;
400
- password: string | (() => string | undefined) | undefined;
401
- } | {
402
- type: "Custom";
403
- prefix: string | (() => string | undefined) | undefined;
404
- value: string | (() => string | undefined) | undefined;
405
- }) | undefined;
406
- body?: (Partial<{
407
- name: string;
408
- email: string;
409
- password: string;
410
- image?: string;
411
- callbackURL?: string;
412
- rememberMe?: boolean;
413
- }> & Record<string, any>) | undefined;
414
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
415
- params?: Record<string, any> | undefined;
416
- duplex?: "full" | "half" | undefined;
417
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
418
- retry?: _better_fetch_fetch.RetryOptions | undefined;
419
- retryAttempt?: number | undefined;
420
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
421
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
422
- disableValidation?: boolean | undefined;
423
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
424
- email: string;
425
- name: string;
426
- password: string;
427
- image?: string;
428
- callbackURL?: string;
429
- fetchOptions?: FetchOptions | undefined;
430
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<{
431
- token: null;
432
- user: {
433
- id: string;
434
- email: string;
435
- name: string;
436
- image: string | null | undefined;
437
- emailVerified: boolean;
438
- createdAt: Date;
439
- updatedAt: Date;
440
- };
441
- } | {
442
- token: string;
443
- user: {
444
- id: string;
445
- email: string;
446
- name: string;
447
- image: string | null | undefined;
448
- emailVerified: boolean;
449
- createdAt: Date;
450
- updatedAt: Date;
451
- };
452
- }>, {
453
- code?: string;
454
- message?: string;
455
- }, FetchOptions["throw"] extends true ? true : false>>;
456
- };
457
- } & {
458
- signIn: {
459
- email: <FetchOptions extends {
460
- method?: string | undefined;
461
- mode?: RequestMode | undefined;
462
- referrerPolicy?: ReferrerPolicy | undefined;
463
- headers?: (HeadersInit & (HeadersInit | {
464
- accept: "application/json" | "text/plain" | "application/octet-stream";
465
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
466
- authorization: "Bearer" | "Basic";
467
- })) | undefined;
468
- signal?: (AbortSignal | null) | undefined;
469
- integrity?: string | undefined;
470
- cache?: RequestCache | undefined;
471
- credentials?: RequestCredentials | undefined;
472
- keepalive?: boolean | undefined;
473
- priority?: RequestPriority | undefined;
474
- redirect?: RequestRedirect | undefined;
475
- referrer?: string | undefined;
476
- window?: null | undefined;
477
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
478
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
479
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
480
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
481
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
482
- hookOptions?: {
483
- cloneResponse?: boolean;
484
- } | undefined;
485
- timeout?: number | undefined;
486
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
487
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
488
- baseURL?: string | undefined;
489
- throw?: boolean | undefined;
490
- auth?: ({
491
- type: "Bearer";
492
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
493
- } | {
494
- type: "Basic";
495
- username: string | (() => string | undefined) | undefined;
496
- password: string | (() => string | undefined) | undefined;
497
- } | {
498
- type: "Custom";
499
- prefix: string | (() => string | undefined) | undefined;
500
- value: string | (() => string | undefined) | undefined;
501
- }) | undefined;
502
- body?: (Partial<{
503
- email: string;
504
- password: string;
505
- callbackURL?: string | undefined;
506
- rememberMe?: boolean | undefined;
507
- }> & Record<string, any>) | undefined;
508
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
509
- params?: Record<string, any> | undefined;
510
- duplex?: "full" | "half" | undefined;
511
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
512
- retry?: _better_fetch_fetch.RetryOptions | undefined;
513
- retryAttempt?: number | undefined;
514
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
515
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
516
- disableValidation?: boolean | undefined;
517
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
518
- email: string;
519
- password: string;
520
- callbackURL?: string | undefined;
521
- rememberMe?: boolean | undefined;
522
- } & {
523
- fetchOptions?: FetchOptions | undefined;
524
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
525
- redirect: boolean;
526
- token: string;
527
- url: string | undefined;
528
- user: {
529
- id: string;
530
- email: string;
531
- name: string;
532
- image: string | null | undefined;
533
- emailVerified: boolean;
534
- createdAt: Date;
535
- updatedAt: Date;
536
- };
537
- }, {
538
- code?: string;
539
- message?: string;
540
- }, FetchOptions["throw"] extends true ? true : false>>;
541
- };
542
- } & {
543
- forgetPassword: <FetchOptions extends {
544
- method?: string | undefined;
545
- mode?: RequestMode | undefined;
546
- referrerPolicy?: ReferrerPolicy | undefined;
547
- headers?: (HeadersInit & (HeadersInit | {
548
- accept: "application/json" | "text/plain" | "application/octet-stream";
549
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
550
- authorization: "Bearer" | "Basic";
551
- })) | undefined;
552
- signal?: (AbortSignal | null) | undefined;
553
- integrity?: string | undefined;
554
- cache?: RequestCache | undefined;
555
- credentials?: RequestCredentials | undefined;
556
- keepalive?: boolean | undefined;
557
- priority?: RequestPriority | undefined;
558
- redirect?: RequestRedirect | undefined;
559
- referrer?: string | undefined;
560
- window?: null | undefined;
561
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
562
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
563
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
564
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
565
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
566
- hookOptions?: {
567
- cloneResponse?: boolean;
568
- } | undefined;
569
- timeout?: number | undefined;
570
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
571
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
572
- baseURL?: string | undefined;
573
- throw?: boolean | undefined;
574
- auth?: ({
575
- type: "Bearer";
576
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
577
- } | {
578
- type: "Basic";
579
- username: string | (() => string | undefined) | undefined;
580
- password: string | (() => string | undefined) | undefined;
581
- } | {
582
- type: "Custom";
583
- prefix: string | (() => string | undefined) | undefined;
584
- value: string | (() => string | undefined) | undefined;
585
- }) | undefined;
586
- body?: (Partial<{
587
- email: string;
588
- redirectTo?: string | undefined;
589
- }> & Record<string, any>) | undefined;
590
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
591
- params?: Record<string, any> | undefined;
592
- duplex?: "full" | "half" | undefined;
593
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
594
- retry?: _better_fetch_fetch.RetryOptions | undefined;
595
- retryAttempt?: number | undefined;
596
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
597
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
598
- disableValidation?: boolean | undefined;
599
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
600
- email: string;
601
- redirectTo?: string | undefined;
602
- } & {
603
- fetchOptions?: FetchOptions | undefined;
604
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
605
- status: boolean;
606
- }, {
607
- code?: string;
608
- message?: string;
609
- }, FetchOptions["throw"] extends true ? true : false>>;
610
- } & {
611
- resetPassword: <FetchOptions extends {
612
- method?: string | undefined;
613
- mode?: RequestMode | undefined;
614
- referrerPolicy?: ReferrerPolicy | undefined;
615
- headers?: (HeadersInit & (HeadersInit | {
616
- accept: "application/json" | "text/plain" | "application/octet-stream";
617
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
618
- authorization: "Bearer" | "Basic";
619
- })) | undefined;
620
- signal?: (AbortSignal | null) | undefined;
621
- integrity?: string | undefined;
622
- cache?: RequestCache | undefined;
623
- credentials?: RequestCredentials | undefined;
624
- keepalive?: boolean | undefined;
625
- priority?: RequestPriority | undefined;
626
- redirect?: RequestRedirect | undefined;
627
- referrer?: string | undefined;
628
- window?: null | undefined;
629
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
630
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
631
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
632
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
633
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
634
- hookOptions?: {
635
- cloneResponse?: boolean;
636
- } | undefined;
637
- timeout?: number | undefined;
638
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
639
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
640
- baseURL?: string | undefined;
641
- throw?: boolean | undefined;
642
- auth?: ({
643
- type: "Bearer";
644
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
645
- } | {
646
- type: "Basic";
647
- username: string | (() => string | undefined) | undefined;
648
- password: string | (() => string | undefined) | undefined;
649
- } | {
650
- type: "Custom";
651
- prefix: string | (() => string | undefined) | undefined;
652
- value: string | (() => string | undefined) | undefined;
653
- }) | undefined;
654
- body?: (Partial<{
655
- newPassword: string;
656
- token?: string | undefined;
657
- }> & Record<string, any>) | undefined;
658
- query?: (Partial<{
659
- token?: string | undefined;
660
- }> & Record<string, any>) | undefined;
661
- params?: Record<string, any> | undefined;
662
- duplex?: "full" | "half" | undefined;
663
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
664
- retry?: _better_fetch_fetch.RetryOptions | undefined;
665
- retryAttempt?: number | undefined;
666
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
667
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
668
- disableValidation?: boolean | undefined;
669
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
670
- newPassword: string;
671
- token?: string | undefined;
672
- } & {
673
- fetchOptions?: FetchOptions | undefined;
674
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
675
- status: boolean;
676
- }, {
677
- code?: string;
678
- message?: string;
679
- }, FetchOptions["throw"] extends true ? true : false>>;
680
- } & {
681
- verifyEmail: <FetchOptions extends {
682
- method?: string | undefined;
683
- mode?: RequestMode | undefined;
684
- referrerPolicy?: ReferrerPolicy | undefined;
685
- headers?: (HeadersInit & (HeadersInit | {
686
- accept: "application/json" | "text/plain" | "application/octet-stream";
687
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
688
- authorization: "Bearer" | "Basic";
689
- })) | undefined;
690
- signal?: (AbortSignal | null) | undefined;
691
- integrity?: string | undefined;
692
- cache?: RequestCache | undefined;
693
- credentials?: RequestCredentials | undefined;
694
- keepalive?: boolean | undefined;
695
- priority?: RequestPriority | undefined;
696
- redirect?: RequestRedirect | undefined;
697
- referrer?: string | undefined;
698
- window?: null | undefined;
699
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
700
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
701
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
702
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
703
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
704
- hookOptions?: {
705
- cloneResponse?: boolean;
706
- } | undefined;
707
- timeout?: number | undefined;
708
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
709
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
710
- baseURL?: string | undefined;
711
- throw?: boolean | undefined;
712
- auth?: ({
713
- type: "Bearer";
714
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
715
- } | {
716
- type: "Basic";
717
- username: string | (() => string | undefined) | undefined;
718
- password: string | (() => string | undefined) | undefined;
719
- } | {
720
- type: "Custom";
721
- prefix: string | (() => string | undefined) | undefined;
722
- value: string | (() => string | undefined) | undefined;
723
- }) | undefined;
724
- body?: undefined;
725
- query?: (Partial<{
726
- token: string;
727
- callbackURL?: string | undefined;
728
- }> & Record<string, any>) | undefined;
729
- params?: Record<string, any> | undefined;
730
- duplex?: "full" | "half" | undefined;
731
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
732
- retry?: _better_fetch_fetch.RetryOptions | undefined;
733
- retryAttempt?: number | undefined;
734
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
735
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
736
- disableValidation?: boolean | undefined;
737
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
738
- query: {
739
- token: string;
740
- callbackURL?: string | undefined;
741
- };
742
- fetchOptions?: FetchOptions | undefined;
743
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<NonNullable<void | {
744
- status: boolean;
745
- user: {
746
- id: string;
747
- email: string;
748
- name: string;
749
- image: string | null | undefined;
750
- emailVerified: boolean;
751
- createdAt: Date;
752
- updatedAt: Date;
753
- };
754
- } | {
755
- status: boolean;
756
- user: null;
757
- }>, {
758
- code?: string;
759
- message?: string;
760
- }, FetchOptions["throw"] extends true ? true : false>>;
761
- } & {
762
- sendVerificationEmail: <FetchOptions extends {
763
- method?: string | undefined;
764
- mode?: RequestMode | undefined;
765
- referrerPolicy?: ReferrerPolicy | undefined;
766
- headers?: (HeadersInit & (HeadersInit | {
767
- accept: "application/json" | "text/plain" | "application/octet-stream";
768
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
769
- authorization: "Bearer" | "Basic";
770
- })) | undefined;
771
- signal?: (AbortSignal | null) | undefined;
772
- integrity?: string | undefined;
773
- cache?: RequestCache | undefined;
774
- credentials?: RequestCredentials | undefined;
775
- keepalive?: boolean | undefined;
776
- priority?: RequestPriority | undefined;
777
- redirect?: RequestRedirect | undefined;
778
- referrer?: string | undefined;
779
- window?: null | undefined;
780
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
781
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
782
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
783
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
784
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
785
- hookOptions?: {
786
- cloneResponse?: boolean;
787
- } | undefined;
788
- timeout?: number | undefined;
789
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
790
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
791
- baseURL?: string | undefined;
792
- throw?: boolean | undefined;
793
- auth?: ({
794
- type: "Bearer";
795
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
796
- } | {
797
- type: "Basic";
798
- username: string | (() => string | undefined) | undefined;
799
- password: string | (() => string | undefined) | undefined;
800
- } | {
801
- type: "Custom";
802
- prefix: string | (() => string | undefined) | undefined;
803
- value: string | (() => string | undefined) | undefined;
804
- }) | undefined;
805
- body?: (Partial<{
806
- email: string;
807
- callbackURL?: string | undefined;
808
- }> & Record<string, any>) | undefined;
809
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
810
- params?: Record<string, any> | undefined;
811
- duplex?: "full" | "half" | undefined;
812
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
813
- retry?: _better_fetch_fetch.RetryOptions | undefined;
814
- retryAttempt?: number | undefined;
815
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
816
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
817
- disableValidation?: boolean | undefined;
818
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
819
- email: string;
820
- callbackURL?: string | undefined;
821
- } & {
822
- fetchOptions?: FetchOptions | undefined;
823
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
824
- status: boolean;
825
- }, {
826
- code?: string;
827
- message?: string;
828
- }, FetchOptions["throw"] extends true ? true : false>>;
829
- } & {
830
- changeEmail: <FetchOptions extends {
831
- method?: string | undefined;
832
- mode?: RequestMode | undefined;
833
- referrerPolicy?: ReferrerPolicy | undefined;
834
- headers?: (HeadersInit & (HeadersInit | {
835
- accept: "application/json" | "text/plain" | "application/octet-stream";
836
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
837
- authorization: "Bearer" | "Basic";
838
- })) | undefined;
839
- signal?: (AbortSignal | null) | undefined;
840
- integrity?: string | undefined;
841
- cache?: RequestCache | undefined;
842
- credentials?: RequestCredentials | undefined;
843
- keepalive?: boolean | undefined;
844
- priority?: RequestPriority | undefined;
845
- redirect?: RequestRedirect | undefined;
846
- referrer?: string | undefined;
847
- window?: null | undefined;
848
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
849
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
850
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
851
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
852
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
853
- hookOptions?: {
854
- cloneResponse?: boolean;
855
- } | undefined;
856
- timeout?: number | undefined;
857
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
858
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
859
- baseURL?: string | undefined;
860
- throw?: boolean | undefined;
861
- auth?: ({
862
- type: "Bearer";
863
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
864
- } | {
865
- type: "Basic";
866
- username: string | (() => string | undefined) | undefined;
867
- password: string | (() => string | undefined) | undefined;
868
- } | {
869
- type: "Custom";
870
- prefix: string | (() => string | undefined) | undefined;
871
- value: string | (() => string | undefined) | undefined;
872
- }) | undefined;
873
- body?: (Partial<{
874
- newEmail: string;
875
- callbackURL?: string | undefined;
876
- }> & Record<string, any>) | undefined;
877
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
878
- params?: Record<string, any> | undefined;
879
- duplex?: "full" | "half" | undefined;
880
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
881
- retry?: _better_fetch_fetch.RetryOptions | undefined;
882
- retryAttempt?: number | undefined;
883
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
884
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
885
- disableValidation?: boolean | undefined;
886
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
887
- newEmail: string;
888
- callbackURL?: string | undefined;
889
- } & {
890
- fetchOptions?: FetchOptions | undefined;
891
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
892
- status: boolean;
893
- }, {
894
- code?: string;
895
- message?: string;
896
- }, FetchOptions["throw"] extends true ? true : false>>;
897
- } & {
898
- changePassword: <FetchOptions extends {
899
- method?: string | undefined;
900
- mode?: RequestMode | undefined;
901
- referrerPolicy?: ReferrerPolicy | undefined;
902
- headers?: (HeadersInit & (HeadersInit | {
903
- accept: "application/json" | "text/plain" | "application/octet-stream";
904
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
905
- authorization: "Bearer" | "Basic";
906
- })) | undefined;
907
- signal?: (AbortSignal | null) | undefined;
908
- integrity?: string | undefined;
909
- cache?: RequestCache | undefined;
910
- credentials?: RequestCredentials | undefined;
911
- keepalive?: boolean | undefined;
912
- priority?: RequestPriority | undefined;
913
- redirect?: RequestRedirect | undefined;
914
- referrer?: string | undefined;
915
- window?: null | undefined;
916
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
917
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
918
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
919
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
920
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
921
- hookOptions?: {
922
- cloneResponse?: boolean;
923
- } | undefined;
924
- timeout?: number | undefined;
925
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
926
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
927
- baseURL?: string | undefined;
928
- throw?: boolean | undefined;
929
- auth?: ({
930
- type: "Bearer";
931
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
932
- } | {
933
- type: "Basic";
934
- username: string | (() => string | undefined) | undefined;
935
- password: string | (() => string | undefined) | undefined;
936
- } | {
937
- type: "Custom";
938
- prefix: string | (() => string | undefined) | undefined;
939
- value: string | (() => string | undefined) | undefined;
940
- }) | undefined;
941
- body?: (Partial<{
942
- newPassword: string;
943
- currentPassword: string;
944
- revokeOtherSessions?: boolean | undefined;
945
- }> & Record<string, any>) | undefined;
946
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
947
- params?: Record<string, any> | undefined;
948
- duplex?: "full" | "half" | undefined;
949
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
950
- retry?: _better_fetch_fetch.RetryOptions | undefined;
951
- retryAttempt?: number | undefined;
952
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
953
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
954
- disableValidation?: boolean | undefined;
955
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
956
- newPassword: string;
957
- currentPassword: string;
958
- revokeOtherSessions?: boolean | undefined;
959
- } & {
960
- fetchOptions?: FetchOptions | undefined;
961
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
962
- token: string | null;
963
- user: {
964
- id: string;
965
- email: string;
966
- name: string;
967
- image: string | null | undefined;
968
- emailVerified: boolean;
969
- createdAt: Date;
970
- updatedAt: Date;
971
- };
972
- }, {
973
- code?: string;
974
- message?: string;
975
- }, FetchOptions["throw"] extends true ? true : false>>;
976
- } & {
977
- updateUser: <FetchOptions extends {
978
- method?: string | undefined;
979
- mode?: RequestMode | undefined;
980
- referrerPolicy?: ReferrerPolicy | undefined;
981
- headers?: (HeadersInit & (HeadersInit | {
982
- accept: "application/json" | "text/plain" | "application/octet-stream";
983
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
984
- authorization: "Bearer" | "Basic";
985
- })) | undefined;
986
- signal?: (AbortSignal | null) | undefined;
987
- integrity?: string | undefined;
988
- cache?: RequestCache | undefined;
989
- credentials?: RequestCredentials | undefined;
990
- keepalive?: boolean | undefined;
991
- priority?: RequestPriority | undefined;
992
- redirect?: RequestRedirect | undefined;
993
- referrer?: string | undefined;
994
- window?: null | undefined;
995
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
996
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
997
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
998
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
999
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1000
- hookOptions?: {
1001
- cloneResponse?: boolean;
1002
- } | undefined;
1003
- timeout?: number | undefined;
1004
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1005
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1006
- baseURL?: string | undefined;
1007
- throw?: boolean | undefined;
1008
- auth?: ({
1009
- type: "Bearer";
1010
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1011
- } | {
1012
- type: "Basic";
1013
- username: string | (() => string | undefined) | undefined;
1014
- password: string | (() => string | undefined) | undefined;
1015
- } | {
1016
- type: "Custom";
1017
- prefix: string | (() => string | undefined) | undefined;
1018
- value: string | (() => string | undefined) | undefined;
1019
- }) | undefined;
1020
- body?: (Partial<Partial<{}> & {
1021
- name?: string;
1022
- image?: string;
1023
- }> & Record<string, any>) | undefined;
1024
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1025
- params?: Record<string, any> | undefined;
1026
- duplex?: "full" | "half" | undefined;
1027
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1028
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1029
- retryAttempt?: number | undefined;
1030
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1031
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1032
- disableValidation?: boolean | undefined;
1033
- }>(data_0?: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1034
- image?: string | null;
1035
- name?: string;
1036
- fetchOptions?: FetchOptions | undefined;
1037
- } & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1038
- status: boolean;
1039
- }, {
1040
- code?: string;
1041
- message?: string;
1042
- }, FetchOptions["throw"] extends true ? true : false>>;
1043
- } & {
1044
- deleteUser: <FetchOptions extends {
1045
- method?: string | undefined;
1046
- mode?: RequestMode | undefined;
1047
- referrerPolicy?: ReferrerPolicy | undefined;
1048
- headers?: (HeadersInit & (HeadersInit | {
1049
- accept: "application/json" | "text/plain" | "application/octet-stream";
1050
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1051
- authorization: "Bearer" | "Basic";
1052
- })) | undefined;
1053
- signal?: (AbortSignal | null) | undefined;
1054
- integrity?: string | undefined;
1055
- cache?: RequestCache | undefined;
1056
- credentials?: RequestCredentials | undefined;
1057
- keepalive?: boolean | undefined;
1058
- priority?: RequestPriority | undefined;
1059
- redirect?: RequestRedirect | undefined;
1060
- referrer?: string | undefined;
1061
- window?: null | undefined;
1062
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1063
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1064
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1065
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1066
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1067
- hookOptions?: {
1068
- cloneResponse?: boolean;
1069
- } | undefined;
1070
- timeout?: number | undefined;
1071
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1072
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1073
- baseURL?: string | undefined;
1074
- throw?: boolean | undefined;
1075
- auth?: ({
1076
- type: "Bearer";
1077
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1078
- } | {
1079
- type: "Basic";
1080
- username: string | (() => string | undefined) | undefined;
1081
- password: string | (() => string | undefined) | undefined;
1082
- } | {
1083
- type: "Custom";
1084
- prefix: string | (() => string | undefined) | undefined;
1085
- value: string | (() => string | undefined) | undefined;
1086
- }) | undefined;
1087
- body?: (Partial<{
1088
- callbackURL?: string | undefined;
1089
- password?: string | undefined;
1090
- token?: string | undefined;
1091
- }> & Record<string, any>) | undefined;
1092
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1093
- params?: Record<string, any> | undefined;
1094
- duplex?: "full" | "half" | undefined;
1095
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1096
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1097
- retryAttempt?: number | undefined;
1098
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1099
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1100
- disableValidation?: boolean | undefined;
1101
- }>(data_0?: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1102
- callbackURL?: string | undefined;
1103
- password?: string | undefined;
1104
- token?: string | undefined;
1105
- } & {
1106
- fetchOptions?: FetchOptions | undefined;
1107
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1108
- success: boolean;
1109
- message: string;
1110
- }, {
1111
- code?: string;
1112
- message?: string;
1113
- }, FetchOptions["throw"] extends true ? true : false>>;
1114
- } & {
1115
- resetPassword: {
1116
- ":token": <FetchOptions extends {
1117
- method?: string | undefined;
1118
- mode?: RequestMode | undefined;
1119
- referrerPolicy?: ReferrerPolicy | undefined;
1120
- headers?: (HeadersInit & (HeadersInit | {
1121
- accept: "application/json" | "text/plain" | "application/octet-stream";
1122
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1123
- authorization: "Bearer" | "Basic";
1124
- })) | undefined;
1125
- signal?: (AbortSignal | null) | undefined;
1126
- integrity?: string | undefined;
1127
- cache?: RequestCache | undefined;
1128
- credentials?: RequestCredentials | undefined;
1129
- keepalive?: boolean | undefined;
1130
- priority?: RequestPriority | undefined;
1131
- redirect?: RequestRedirect | undefined;
1132
- referrer?: string | undefined;
1133
- window?: null | undefined;
1134
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1135
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1136
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1137
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1138
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1139
- hookOptions?: {
1140
- cloneResponse?: boolean;
1141
- } | undefined;
1142
- timeout?: number | undefined;
1143
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1144
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1145
- baseURL?: string | undefined;
1146
- throw?: boolean | undefined;
1147
- auth?: ({
1148
- type: "Bearer";
1149
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1150
- } | {
1151
- type: "Basic";
1152
- username: string | (() => string | undefined) | undefined;
1153
- password: string | (() => string | undefined) | undefined;
1154
- } | {
1155
- type: "Custom";
1156
- prefix: string | (() => string | undefined) | undefined;
1157
- value: string | (() => string | undefined) | undefined;
1158
- }) | undefined;
1159
- body?: undefined;
1160
- query?: (Partial<{
1161
- callbackURL: string;
1162
- }> & Record<string, any>) | undefined;
1163
- params?: {
1164
- token: string;
1165
- } | undefined;
1166
- duplex?: "full" | "half" | undefined;
1167
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1168
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1169
- retryAttempt?: number | undefined;
1170
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1171
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1172
- disableValidation?: boolean | undefined;
1173
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1174
- query: {
1175
- callbackURL: string;
1176
- };
1177
- fetchOptions?: FetchOptions | undefined;
1178
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<never, {
1179
- code?: string;
1180
- message?: string;
1181
- }, FetchOptions["throw"] extends true ? true : false>>;
1182
- };
1183
- } & {
1184
- requestPasswordReset: <FetchOptions extends {
1185
- method?: string | undefined;
1186
- mode?: RequestMode | undefined;
1187
- referrerPolicy?: ReferrerPolicy | undefined;
1188
- headers?: (HeadersInit & (HeadersInit | {
1189
- accept: "application/json" | "text/plain" | "application/octet-stream";
1190
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1191
- authorization: "Bearer" | "Basic";
1192
- })) | undefined;
1193
- signal?: (AbortSignal | null) | undefined;
1194
- integrity?: string | undefined;
1195
- cache?: RequestCache | undefined;
1196
- credentials?: RequestCredentials | undefined;
1197
- keepalive?: boolean | undefined;
1198
- priority?: RequestPriority | undefined;
1199
- redirect?: RequestRedirect | undefined;
1200
- referrer?: string | undefined;
1201
- window?: null | undefined;
1202
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1203
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1204
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1205
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1206
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1207
- hookOptions?: {
1208
- cloneResponse?: boolean;
1209
- } | undefined;
1210
- timeout?: number | undefined;
1211
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1212
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1213
- baseURL?: string | undefined;
1214
- throw?: boolean | undefined;
1215
- auth?: ({
1216
- type: "Bearer";
1217
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1218
- } | {
1219
- type: "Basic";
1220
- username: string | (() => string | undefined) | undefined;
1221
- password: string | (() => string | undefined) | undefined;
1222
- } | {
1223
- type: "Custom";
1224
- prefix: string | (() => string | undefined) | undefined;
1225
- value: string | (() => string | undefined) | undefined;
1226
- }) | undefined;
1227
- body?: (Partial<{
1228
- email: string;
1229
- redirectTo?: string | undefined;
1230
- }> & Record<string, any>) | undefined;
1231
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1232
- params?: Record<string, any> | undefined;
1233
- duplex?: "full" | "half" | undefined;
1234
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1235
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1236
- retryAttempt?: number | undefined;
1237
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1238
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1239
- disableValidation?: boolean | undefined;
1240
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1241
- email: string;
1242
- redirectTo?: string | undefined;
1243
- } & {
1244
- fetchOptions?: FetchOptions | undefined;
1245
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1246
- status: boolean;
1247
- message: string;
1248
- }, {
1249
- code?: string;
1250
- message?: string;
1251
- }, FetchOptions["throw"] extends true ? true : false>>;
1252
- } & {
1253
- resetPassword: {
1254
- ":token": <FetchOptions extends {
1255
- method?: string | undefined;
1256
- mode?: RequestMode | undefined;
1257
- referrerPolicy?: ReferrerPolicy | undefined;
1258
- headers?: (HeadersInit & (HeadersInit | {
1259
- accept: "application/json" | "text/plain" | "application/octet-stream";
1260
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1261
- authorization: "Bearer" | "Basic";
1262
- })) | undefined;
1263
- signal?: (AbortSignal | null) | undefined;
1264
- integrity?: string | undefined;
1265
- cache?: RequestCache | undefined;
1266
- credentials?: RequestCredentials | undefined;
1267
- keepalive?: boolean | undefined;
1268
- priority?: RequestPriority | undefined;
1269
- redirect?: RequestRedirect | undefined;
1270
- referrer?: string | undefined;
1271
- window?: null | undefined;
1272
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1273
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1274
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1275
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1276
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1277
- hookOptions?: {
1278
- cloneResponse?: boolean;
1279
- } | undefined;
1280
- timeout?: number | undefined;
1281
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1282
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1283
- baseURL?: string | undefined;
1284
- throw?: boolean | undefined;
1285
- auth?: ({
1286
- type: "Bearer";
1287
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1288
- } | {
1289
- type: "Basic";
1290
- username: string | (() => string | undefined) | undefined;
1291
- password: string | (() => string | undefined) | undefined;
1292
- } | {
1293
- type: "Custom";
1294
- prefix: string | (() => string | undefined) | undefined;
1295
- value: string | (() => string | undefined) | undefined;
1296
- }) | undefined;
1297
- body?: undefined;
1298
- query?: (Partial<{
1299
- callbackURL: string;
1300
- }> & Record<string, any>) | undefined;
1301
- params?: {
1302
- token: string;
1303
- } | undefined;
1304
- duplex?: "full" | "half" | undefined;
1305
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1306
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1307
- retryAttempt?: number | undefined;
1308
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1309
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1310
- disableValidation?: boolean | undefined;
1311
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1312
- query: {
1313
- callbackURL: string;
1314
- };
1315
- fetchOptions?: FetchOptions | undefined;
1316
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<never, {
1317
- code?: string;
1318
- message?: string;
1319
- }, FetchOptions["throw"] extends true ? true : false>>;
1320
- };
1321
- } & {
1322
- listSessions: <FetchOptions extends {
1323
- method?: string | undefined;
1324
- mode?: RequestMode | undefined;
1325
- referrerPolicy?: ReferrerPolicy | undefined;
1326
- headers?: (HeadersInit & (HeadersInit | {
1327
- accept: "application/json" | "text/plain" | "application/octet-stream";
1328
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1329
- authorization: "Bearer" | "Basic";
1330
- })) | undefined;
1331
- signal?: (AbortSignal | null) | undefined;
1332
- integrity?: string | undefined;
1333
- cache?: RequestCache | undefined;
1334
- credentials?: RequestCredentials | undefined;
1335
- keepalive?: boolean | undefined;
1336
- priority?: RequestPriority | undefined;
1337
- redirect?: RequestRedirect | undefined;
1338
- referrer?: string | undefined;
1339
- window?: null | undefined;
1340
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1341
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1342
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1343
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1344
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1345
- hookOptions?: {
1346
- cloneResponse?: boolean;
1347
- } | undefined;
1348
- timeout?: number | undefined;
1349
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1350
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1351
- baseURL?: string | undefined;
1352
- throw?: boolean | undefined;
1353
- auth?: ({
1354
- type: "Bearer";
1355
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1356
- } | {
1357
- type: "Basic";
1358
- username: string | (() => string | undefined) | undefined;
1359
- password: string | (() => string | undefined) | undefined;
1360
- } | {
1361
- type: "Custom";
1362
- prefix: string | (() => string | undefined) | undefined;
1363
- value: string | (() => string | undefined) | undefined;
1364
- }) | undefined;
1365
- body?: undefined;
1366
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1367
- params?: Record<string, any> | undefined;
1368
- duplex?: "full" | "half" | undefined;
1369
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1370
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1371
- retryAttempt?: number | undefined;
1372
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1373
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1374
- disableValidation?: boolean | undefined;
1375
- }>(data_0?: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1376
- query?: Record<string, any> | undefined;
1377
- fetchOptions?: FetchOptions | undefined;
1378
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1379
- id: string;
1380
- createdAt: Date;
1381
- updatedAt: Date;
1382
- userId: string;
1383
- expiresAt: Date;
1384
- token: string;
1385
- ipAddress?: string | null | undefined | undefined;
1386
- userAgent?: string | null | undefined | undefined;
1387
- }>[], {
1388
- code?: string;
1389
- message?: string;
1390
- }, FetchOptions["throw"] extends true ? true : false>>;
1391
- } & {
1392
- revokeSession: <FetchOptions extends {
1393
- method?: string | undefined;
1394
- mode?: RequestMode | undefined;
1395
- referrerPolicy?: ReferrerPolicy | undefined;
1396
- headers?: (HeadersInit & (HeadersInit | {
1397
- accept: "application/json" | "text/plain" | "application/octet-stream";
1398
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1399
- authorization: "Bearer" | "Basic";
1400
- })) | undefined;
1401
- signal?: (AbortSignal | null) | undefined;
1402
- integrity?: string | undefined;
1403
- cache?: RequestCache | undefined;
1404
- credentials?: RequestCredentials | undefined;
1405
- keepalive?: boolean | undefined;
1406
- priority?: RequestPriority | undefined;
1407
- redirect?: RequestRedirect | undefined;
1408
- referrer?: string | undefined;
1409
- window?: null | undefined;
1410
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1411
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1412
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1413
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1414
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1415
- hookOptions?: {
1416
- cloneResponse?: boolean;
1417
- } | undefined;
1418
- timeout?: number | undefined;
1419
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1420
- plugins?: _better_fetch_fetch.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?: (Partial<{
1436
- token: string;
1437
- }> & Record<string, any>) | undefined;
1438
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1439
- params?: Record<string, any> | undefined;
1440
- duplex?: "full" | "half" | undefined;
1441
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1442
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1443
- retryAttempt?: number | undefined;
1444
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1445
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1446
- disableValidation?: boolean | undefined;
1447
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1448
- token: string;
1449
- } & {
1450
- fetchOptions?: FetchOptions | undefined;
1451
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1452
- status: boolean;
1453
- }, {
1454
- code?: string;
1455
- message?: string;
1456
- }, FetchOptions["throw"] extends true ? true : false>>;
1457
- } & {
1458
- revokeSessions: <FetchOptions extends {
1459
- method?: string | undefined;
1460
- mode?: RequestMode | undefined;
1461
- referrerPolicy?: ReferrerPolicy | undefined;
1462
- headers?: (HeadersInit & (HeadersInit | {
1463
- accept: "application/json" | "text/plain" | "application/octet-stream";
1464
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1465
- authorization: "Bearer" | "Basic";
1466
- })) | undefined;
1467
- signal?: (AbortSignal | null) | undefined;
1468
- integrity?: string | undefined;
1469
- cache?: RequestCache | undefined;
1470
- credentials?: RequestCredentials | undefined;
1471
- keepalive?: boolean | undefined;
1472
- priority?: RequestPriority | undefined;
1473
- redirect?: RequestRedirect | undefined;
1474
- referrer?: string | undefined;
1475
- window?: null | undefined;
1476
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1477
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1478
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1479
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1480
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1481
- hookOptions?: {
1482
- cloneResponse?: boolean;
1483
- } | undefined;
1484
- timeout?: number | undefined;
1485
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1486
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1487
- baseURL?: string | undefined;
1488
- throw?: boolean | undefined;
1489
- auth?: ({
1490
- type: "Bearer";
1491
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1492
- } | {
1493
- type: "Basic";
1494
- username: string | (() => string | undefined) | undefined;
1495
- password: string | (() => string | undefined) | undefined;
1496
- } | {
1497
- type: "Custom";
1498
- prefix: string | (() => string | undefined) | undefined;
1499
- value: string | (() => string | undefined) | undefined;
1500
- }) | undefined;
1501
- body?: undefined;
1502
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1503
- params?: Record<string, any> | undefined;
1504
- duplex?: "full" | "half" | undefined;
1505
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1506
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1507
- retryAttempt?: number | undefined;
1508
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1509
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1510
- disableValidation?: boolean | undefined;
1511
- }>(data_0?: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1512
- query?: Record<string, any> | undefined;
1513
- fetchOptions?: FetchOptions | undefined;
1514
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1515
- status: boolean;
1516
- }, {
1517
- code?: string;
1518
- message?: string;
1519
- }, FetchOptions["throw"] extends true ? true : false>>;
1520
- } & {
1521
- revokeOtherSessions: <FetchOptions extends {
1522
- method?: string | undefined;
1523
- mode?: RequestMode | undefined;
1524
- referrerPolicy?: ReferrerPolicy | undefined;
1525
- headers?: (HeadersInit & (HeadersInit | {
1526
- accept: "application/json" | "text/plain" | "application/octet-stream";
1527
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1528
- authorization: "Bearer" | "Basic";
1529
- })) | undefined;
1530
- signal?: (AbortSignal | null) | undefined;
1531
- integrity?: string | undefined;
1532
- cache?: RequestCache | undefined;
1533
- credentials?: RequestCredentials | undefined;
1534
- keepalive?: boolean | undefined;
1535
- priority?: RequestPriority | undefined;
1536
- redirect?: RequestRedirect | undefined;
1537
- referrer?: string | undefined;
1538
- window?: null | undefined;
1539
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1540
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1541
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1542
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1543
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1544
- hookOptions?: {
1545
- cloneResponse?: boolean;
1546
- } | undefined;
1547
- timeout?: number | undefined;
1548
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1549
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1550
- baseURL?: string | undefined;
1551
- throw?: boolean | undefined;
1552
- auth?: ({
1553
- type: "Bearer";
1554
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1555
- } | {
1556
- type: "Basic";
1557
- username: string | (() => string | undefined) | undefined;
1558
- password: string | (() => string | undefined) | undefined;
1559
- } | {
1560
- type: "Custom";
1561
- prefix: string | (() => string | undefined) | undefined;
1562
- value: string | (() => string | undefined) | undefined;
1563
- }) | undefined;
1564
- body?: undefined;
1565
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1566
- params?: Record<string, any> | undefined;
1567
- duplex?: "full" | "half" | undefined;
1568
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1569
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1570
- retryAttempt?: number | undefined;
1571
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1572
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1573
- disableValidation?: boolean | undefined;
1574
- }>(data_0?: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1575
- query?: Record<string, any> | undefined;
1576
- fetchOptions?: FetchOptions | undefined;
1577
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1578
- status: boolean;
1579
- }, {
1580
- code?: string;
1581
- message?: string;
1582
- }, FetchOptions["throw"] extends true ? true : false>>;
1583
- } & {
1584
- linkSocial: <FetchOptions extends {
1585
- method?: string | undefined;
1586
- mode?: RequestMode | undefined;
1587
- referrerPolicy?: ReferrerPolicy | undefined;
1588
- headers?: (HeadersInit & (HeadersInit | {
1589
- accept: "application/json" | "text/plain" | "application/octet-stream";
1590
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1591
- authorization: "Bearer" | "Basic";
1592
- })) | undefined;
1593
- signal?: (AbortSignal | null) | undefined;
1594
- integrity?: string | undefined;
1595
- cache?: RequestCache | undefined;
1596
- credentials?: RequestCredentials | undefined;
1597
- keepalive?: boolean | undefined;
1598
- priority?: RequestPriority | undefined;
1599
- redirect?: RequestRedirect | undefined;
1600
- referrer?: string | undefined;
1601
- window?: null | undefined;
1602
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1603
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1604
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1605
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1606
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1607
- hookOptions?: {
1608
- cloneResponse?: boolean;
1609
- } | undefined;
1610
- timeout?: number | undefined;
1611
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1612
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1613
- baseURL?: string | undefined;
1614
- throw?: boolean | undefined;
1615
- auth?: ({
1616
- type: "Bearer";
1617
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1618
- } | {
1619
- type: "Basic";
1620
- username: string | (() => string | undefined) | undefined;
1621
- password: string | (() => string | undefined) | undefined;
1622
- } | {
1623
- type: "Custom";
1624
- prefix: string | (() => string | undefined) | undefined;
1625
- value: string | (() => string | undefined) | undefined;
1626
- }) | undefined;
1627
- body?: (Partial<{
1628
- provider: unknown;
1629
- callbackURL?: string | undefined;
1630
- idToken?: {
1631
- token: string;
1632
- nonce?: string | undefined;
1633
- accessToken?: string | undefined;
1634
- refreshToken?: string | undefined;
1635
- scopes?: string[] | undefined;
1636
- } | undefined;
1637
- requestSignUp?: boolean | undefined;
1638
- scopes?: string[] | undefined;
1639
- errorCallbackURL?: string | undefined;
1640
- disableRedirect?: boolean | undefined;
1641
- }> & Record<string, any>) | undefined;
1642
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1643
- params?: Record<string, any> | undefined;
1644
- duplex?: "full" | "half" | undefined;
1645
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1646
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1647
- retryAttempt?: number | undefined;
1648
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1649
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1650
- disableValidation?: boolean | undefined;
1651
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1652
- provider: unknown;
1653
- callbackURL?: string | undefined;
1654
- idToken?: {
1655
- token: string;
1656
- nonce?: string | undefined;
1657
- accessToken?: string | undefined;
1658
- refreshToken?: string | undefined;
1659
- scopes?: string[] | undefined;
1660
- } | undefined;
1661
- requestSignUp?: boolean | undefined;
1662
- scopes?: string[] | undefined;
1663
- errorCallbackURL?: string | undefined;
1664
- disableRedirect?: boolean | undefined;
1665
- } & {
1666
- fetchOptions?: FetchOptions | undefined;
1667
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1668
- url: string;
1669
- redirect: boolean;
1670
- }, {
1671
- code?: string;
1672
- message?: string;
1673
- }, FetchOptions["throw"] extends true ? true : false>>;
1674
- } & {
1675
- listAccounts: <FetchOptions extends {
1676
- method?: string | undefined;
1677
- mode?: RequestMode | undefined;
1678
- referrerPolicy?: ReferrerPolicy | undefined;
1679
- headers?: (HeadersInit & (HeadersInit | {
1680
- accept: "application/json" | "text/plain" | "application/octet-stream";
1681
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1682
- authorization: "Bearer" | "Basic";
1683
- })) | undefined;
1684
- signal?: (AbortSignal | null) | undefined;
1685
- integrity?: string | undefined;
1686
- cache?: RequestCache | undefined;
1687
- credentials?: RequestCredentials | undefined;
1688
- keepalive?: boolean | undefined;
1689
- priority?: RequestPriority | undefined;
1690
- redirect?: RequestRedirect | undefined;
1691
- referrer?: string | undefined;
1692
- window?: null | undefined;
1693
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1694
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1695
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1696
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1697
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1698
- hookOptions?: {
1699
- cloneResponse?: boolean;
1700
- } | undefined;
1701
- timeout?: number | undefined;
1702
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1703
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1704
- baseURL?: string | undefined;
1705
- throw?: boolean | undefined;
1706
- auth?: ({
1707
- type: "Bearer";
1708
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1709
- } | {
1710
- type: "Basic";
1711
- username: string | (() => string | undefined) | undefined;
1712
- password: string | (() => string | undefined) | undefined;
1713
- } | {
1714
- type: "Custom";
1715
- prefix: string | (() => string | undefined) | undefined;
1716
- value: string | (() => string | undefined) | undefined;
1717
- }) | undefined;
1718
- body?: undefined;
1719
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1720
- params?: Record<string, any> | undefined;
1721
- duplex?: "full" | "half" | undefined;
1722
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1723
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1724
- retryAttempt?: number | undefined;
1725
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1726
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1727
- disableValidation?: boolean | undefined;
1728
- }>(data_0?: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1729
- query?: Record<string, any> | undefined;
1730
- fetchOptions?: FetchOptions | undefined;
1731
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1732
- id: string;
1733
- providerId: string;
1734
- createdAt: Date;
1735
- updatedAt: Date;
1736
- accountId: string;
1737
- scopes: string[];
1738
- }[], {
1739
- code?: string;
1740
- message?: string;
1741
- }, FetchOptions["throw"] extends true ? true : false>>;
1742
- } & {
1743
- deleteUser: {
1744
- callback: <FetchOptions extends {
1745
- method?: string | undefined;
1746
- mode?: RequestMode | undefined;
1747
- referrerPolicy?: ReferrerPolicy | undefined;
1748
- headers?: (HeadersInit & (HeadersInit | {
1749
- accept: "application/json" | "text/plain" | "application/octet-stream";
1750
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1751
- authorization: "Bearer" | "Basic";
1752
- })) | undefined;
1753
- signal?: (AbortSignal | null) | undefined;
1754
- integrity?: string | undefined;
1755
- cache?: RequestCache | undefined;
1756
- credentials?: RequestCredentials | undefined;
1757
- keepalive?: boolean | undefined;
1758
- priority?: RequestPriority | undefined;
1759
- redirect?: RequestRedirect | undefined;
1760
- referrer?: string | undefined;
1761
- window?: null | undefined;
1762
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1763
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1764
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1765
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1766
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1767
- hookOptions?: {
1768
- cloneResponse?: boolean;
1769
- } | undefined;
1770
- timeout?: number | undefined;
1771
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1772
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1773
- baseURL?: string | undefined;
1774
- throw?: boolean | undefined;
1775
- auth?: ({
1776
- type: "Bearer";
1777
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1778
- } | {
1779
- type: "Basic";
1780
- username: string | (() => string | undefined) | undefined;
1781
- password: string | (() => string | undefined) | undefined;
1782
- } | {
1783
- type: "Custom";
1784
- prefix: string | (() => string | undefined) | undefined;
1785
- value: string | (() => string | undefined) | undefined;
1786
- }) | undefined;
1787
- body?: undefined;
1788
- query?: (Partial<{
1789
- token: string;
1790
- callbackURL?: string | undefined;
1791
- }> & Record<string, any>) | undefined;
1792
- params?: Record<string, any> | undefined;
1793
- duplex?: "full" | "half" | undefined;
1794
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1795
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1796
- retryAttempt?: number | undefined;
1797
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1798
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1799
- disableValidation?: boolean | undefined;
1800
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1801
- query: {
1802
- token: string;
1803
- callbackURL?: string | undefined;
1804
- };
1805
- fetchOptions?: FetchOptions | undefined;
1806
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1807
- success: boolean;
1808
- message: string;
1809
- }, {
1810
- code?: string;
1811
- message?: string;
1812
- }, FetchOptions["throw"] extends true ? true : false>>;
1813
- };
1814
- } & {
1815
- unlinkAccount: <FetchOptions extends {
1816
- method?: string | undefined;
1817
- mode?: RequestMode | undefined;
1818
- referrerPolicy?: ReferrerPolicy | undefined;
1819
- headers?: (HeadersInit & (HeadersInit | {
1820
- accept: "application/json" | "text/plain" | "application/octet-stream";
1821
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1822
- authorization: "Bearer" | "Basic";
1823
- })) | undefined;
1824
- signal?: (AbortSignal | null) | undefined;
1825
- integrity?: string | undefined;
1826
- cache?: RequestCache | undefined;
1827
- credentials?: RequestCredentials | undefined;
1828
- keepalive?: boolean | undefined;
1829
- priority?: RequestPriority | undefined;
1830
- redirect?: RequestRedirect | undefined;
1831
- referrer?: string | undefined;
1832
- window?: null | undefined;
1833
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1834
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1835
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1836
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1837
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1838
- hookOptions?: {
1839
- cloneResponse?: boolean;
1840
- } | undefined;
1841
- timeout?: number | undefined;
1842
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1843
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1844
- baseURL?: string | undefined;
1845
- throw?: boolean | undefined;
1846
- auth?: ({
1847
- type: "Bearer";
1848
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1849
- } | {
1850
- type: "Basic";
1851
- username: string | (() => string | undefined) | undefined;
1852
- password: string | (() => string | undefined) | undefined;
1853
- } | {
1854
- type: "Custom";
1855
- prefix: string | (() => string | undefined) | undefined;
1856
- value: string | (() => string | undefined) | undefined;
1857
- }) | undefined;
1858
- body?: (Partial<{
1859
- providerId: string;
1860
- accountId?: string | undefined;
1861
- }> & Record<string, any>) | undefined;
1862
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1863
- params?: Record<string, any> | undefined;
1864
- duplex?: "full" | "half" | undefined;
1865
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1866
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1867
- retryAttempt?: number | undefined;
1868
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1869
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1870
- disableValidation?: boolean | undefined;
1871
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1872
- providerId: string;
1873
- accountId?: string | undefined;
1874
- } & {
1875
- fetchOptions?: FetchOptions | undefined;
1876
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
1877
- status: boolean;
1878
- }, {
1879
- code?: string;
1880
- message?: string;
1881
- }, FetchOptions["throw"] extends true ? true : false>>;
1882
- } & {
1883
- refreshToken: <FetchOptions extends {
1884
- method?: string | undefined;
1885
- mode?: RequestMode | undefined;
1886
- referrerPolicy?: ReferrerPolicy | undefined;
1887
- headers?: (HeadersInit & (HeadersInit | {
1888
- accept: "application/json" | "text/plain" | "application/octet-stream";
1889
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1890
- authorization: "Bearer" | "Basic";
1891
- })) | undefined;
1892
- signal?: (AbortSignal | null) | undefined;
1893
- integrity?: string | undefined;
1894
- cache?: RequestCache | undefined;
1895
- credentials?: RequestCredentials | undefined;
1896
- keepalive?: boolean | undefined;
1897
- priority?: RequestPriority | undefined;
1898
- redirect?: RequestRedirect | undefined;
1899
- referrer?: string | undefined;
1900
- window?: null | undefined;
1901
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1902
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1903
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1904
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1905
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1906
- hookOptions?: {
1907
- cloneResponse?: boolean;
1908
- } | undefined;
1909
- timeout?: number | undefined;
1910
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1911
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1912
- baseURL?: string | undefined;
1913
- throw?: boolean | undefined;
1914
- auth?: ({
1915
- type: "Bearer";
1916
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1917
- } | {
1918
- type: "Basic";
1919
- username: string | (() => string | undefined) | undefined;
1920
- password: string | (() => string | undefined) | undefined;
1921
- } | {
1922
- type: "Custom";
1923
- prefix: string | (() => string | undefined) | undefined;
1924
- value: string | (() => string | undefined) | undefined;
1925
- }) | undefined;
1926
- body?: (Partial<{
1927
- providerId: string;
1928
- accountId?: string | undefined;
1929
- userId?: string | undefined;
1930
- }> & Record<string, any>) | undefined;
1931
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1932
- params?: Record<string, any> | undefined;
1933
- duplex?: "full" | "half" | undefined;
1934
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1935
- retry?: _better_fetch_fetch.RetryOptions | undefined;
1936
- retryAttempt?: number | undefined;
1937
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1938
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
1939
- disableValidation?: boolean | undefined;
1940
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
1941
- providerId: string;
1942
- accountId?: string | undefined;
1943
- userId?: string | undefined;
1944
- } & {
1945
- fetchOptions?: FetchOptions | undefined;
1946
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<any, {
1947
- code?: string;
1948
- message?: string;
1949
- }, FetchOptions["throw"] extends true ? true : false>>;
1950
- } & {
1951
- getAccessToken: <FetchOptions extends {
1952
- method?: string | undefined;
1953
- mode?: RequestMode | undefined;
1954
- referrerPolicy?: ReferrerPolicy | undefined;
1955
- headers?: (HeadersInit & (HeadersInit | {
1956
- accept: "application/json" | "text/plain" | "application/octet-stream";
1957
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1958
- authorization: "Bearer" | "Basic";
1959
- })) | undefined;
1960
- signal?: (AbortSignal | null) | undefined;
1961
- integrity?: string | undefined;
1962
- cache?: RequestCache | undefined;
1963
- credentials?: RequestCredentials | undefined;
1964
- keepalive?: boolean | undefined;
1965
- priority?: RequestPriority | undefined;
1966
- redirect?: RequestRedirect | undefined;
1967
- referrer?: string | undefined;
1968
- window?: null | undefined;
1969
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
1970
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
1971
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
1972
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
1973
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
1974
- hookOptions?: {
1975
- cloneResponse?: boolean;
1976
- } | undefined;
1977
- timeout?: number | undefined;
1978
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
1979
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
1980
- baseURL?: string | undefined;
1981
- throw?: boolean | undefined;
1982
- auth?: ({
1983
- type: "Bearer";
1984
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1985
- } | {
1986
- type: "Basic";
1987
- username: string | (() => string | undefined) | undefined;
1988
- password: string | (() => string | undefined) | undefined;
1989
- } | {
1990
- type: "Custom";
1991
- prefix: string | (() => string | undefined) | undefined;
1992
- value: string | (() => string | undefined) | undefined;
1993
- }) | undefined;
1994
- body?: (Partial<{
1995
- providerId: string;
1996
- accountId?: string | undefined;
1997
- userId?: string | undefined;
1998
- }> & Record<string, any>) | undefined;
1999
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2000
- params?: Record<string, any> | undefined;
2001
- duplex?: "full" | "half" | undefined;
2002
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2003
- retry?: _better_fetch_fetch.RetryOptions | undefined;
2004
- retryAttempt?: number | undefined;
2005
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2006
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
2007
- disableValidation?: boolean | undefined;
2008
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
2009
- providerId: string;
2010
- accountId?: string | undefined;
2011
- userId?: string | undefined;
2012
- } & {
2013
- fetchOptions?: FetchOptions | undefined;
2014
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
2015
- accessToken: string;
2016
- accessTokenExpiresAt: Date | undefined;
2017
- scopes: string[];
2018
- idToken: string | undefined;
2019
- }, {
2020
- code?: string;
2021
- message?: string;
2022
- }, FetchOptions["throw"] extends true ? true : false>>;
2023
- } & {
2024
- accountInfo: <FetchOptions extends {
2025
- method?: string | undefined;
2026
- mode?: RequestMode | undefined;
2027
- referrerPolicy?: ReferrerPolicy | undefined;
2028
- headers?: (HeadersInit & (HeadersInit | {
2029
- accept: "application/json" | "text/plain" | "application/octet-stream";
2030
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2031
- authorization: "Bearer" | "Basic";
2032
- })) | undefined;
2033
- signal?: (AbortSignal | null) | undefined;
2034
- integrity?: string | undefined;
2035
- cache?: RequestCache | undefined;
2036
- credentials?: RequestCredentials | undefined;
2037
- keepalive?: boolean | undefined;
2038
- priority?: RequestPriority | undefined;
2039
- redirect?: RequestRedirect | undefined;
2040
- referrer?: string | undefined;
2041
- window?: null | undefined;
2042
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
2043
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
2044
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
2045
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
2046
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
2047
- hookOptions?: {
2048
- cloneResponse?: boolean;
2049
- } | undefined;
2050
- timeout?: number | undefined;
2051
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
2052
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
2053
- baseURL?: string | undefined;
2054
- throw?: boolean | undefined;
2055
- auth?: ({
2056
- type: "Bearer";
2057
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2058
- } | {
2059
- type: "Basic";
2060
- username: string | (() => string | undefined) | undefined;
2061
- password: string | (() => string | undefined) | undefined;
2062
- } | {
2063
- type: "Custom";
2064
- prefix: string | (() => string | undefined) | undefined;
2065
- value: string | (() => string | undefined) | undefined;
2066
- }) | undefined;
2067
- body?: (Partial<{
2068
- accountId: string;
2069
- }> & Record<string, any>) | undefined;
2070
- query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2071
- params?: Record<string, any> | undefined;
2072
- duplex?: "full" | "half" | undefined;
2073
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2074
- retry?: _better_fetch_fetch.RetryOptions | undefined;
2075
- retryAttempt?: number | undefined;
2076
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2077
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
2078
- disableValidation?: boolean | undefined;
2079
- }>(data_0: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
2080
- accountId: string;
2081
- } & {
2082
- fetchOptions?: FetchOptions | undefined;
2083
- }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
2084
- user: packages_core_dist_oauth2.OAuth2UserInfo;
2085
- data: Record<string, any>;
2086
- }, {
2087
- code?: string;
2088
- message?: string;
2089
- }, FetchOptions["throw"] extends true ? true : false>>;
2090
- } & {
2091
- getSession: <FetchOptions extends {
2092
- method?: string | undefined;
2093
- mode?: RequestMode | undefined;
2094
- referrerPolicy?: ReferrerPolicy | undefined;
2095
- headers?: (HeadersInit & (HeadersInit | {
2096
- accept: "application/json" | "text/plain" | "application/octet-stream";
2097
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2098
- authorization: "Bearer" | "Basic";
2099
- })) | undefined;
2100
- signal?: (AbortSignal | null) | undefined;
2101
- integrity?: string | undefined;
2102
- cache?: RequestCache | undefined;
2103
- credentials?: RequestCredentials | undefined;
2104
- keepalive?: boolean | undefined;
2105
- priority?: RequestPriority | undefined;
2106
- redirect?: RequestRedirect | undefined;
2107
- referrer?: string | undefined;
2108
- window?: null | undefined;
2109
- onRequest?: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
2110
- onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
2111
- onSuccess?: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
2112
- onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
2113
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
2114
- hookOptions?: {
2115
- cloneResponse?: boolean;
2116
- } | undefined;
2117
- timeout?: number | undefined;
2118
- customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined;
2119
- plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined;
2120
- baseURL?: string | undefined;
2121
- throw?: boolean | undefined;
2122
- auth?: ({
2123
- type: "Bearer";
2124
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2125
- } | {
2126
- type: "Basic";
2127
- username: string | (() => string | undefined) | undefined;
2128
- password: string | (() => string | undefined) | undefined;
2129
- } | {
2130
- type: "Custom";
2131
- prefix: string | (() => string | undefined) | undefined;
2132
- value: string | (() => string | undefined) | undefined;
2133
- }) | undefined;
2134
- body?: undefined;
2135
- query?: (Partial<{
2136
- disableCookieCache?: unknown;
2137
- disableRefresh?: unknown;
2138
- }> & Record<string, any>) | undefined;
2139
- params?: Record<string, any> | undefined;
2140
- duplex?: "full" | "half" | undefined;
2141
- jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2142
- retry?: _better_fetch_fetch.RetryOptions | undefined;
2143
- retryAttempt?: number | undefined;
2144
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2145
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
2146
- disableValidation?: boolean | undefined;
2147
- }>(data_0?: node_modules_better_auth_dist_shared_better_auth_DNnBkMGu.a<{
2148
- query?: {
2149
- disableCookieCache?: unknown;
2150
- disableRefresh?: unknown;
2151
- } | undefined;
2152
- fetchOptions?: FetchOptions | undefined;
2153
- }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{
2154
- user: {
2155
- id: string;
2156
- createdAt: Date;
2157
- updatedAt: Date;
2158
- email: string;
2159
- emailVerified: boolean;
2160
- name: string;
2161
- image?: string | null | undefined;
2162
- };
2163
- session: {
2164
- id: string;
2165
- createdAt: Date;
2166
- updatedAt: Date;
2167
- userId: string;
2168
- expiresAt: Date;
2169
- token: string;
2170
- ipAddress?: string | null | undefined;
2171
- userAgent?: string | null | undefined;
2172
- };
2173
- } | null, {
2174
- code?: string;
2175
- message?: string;
2176
- }, FetchOptions["throw"] extends true ? true : false>>;
2177
- } & {
2178
- useSession: () => {
2179
- data: {
2180
- user: {
2181
- id: string;
2182
- createdAt: Date;
2183
- updatedAt: Date;
2184
- email: string;
2185
- emailVerified: boolean;
2186
- name: string;
2187
- image?: string | null | undefined;
2188
- };
2189
- session: {
2190
- id: string;
2191
- createdAt: Date;
2192
- updatedAt: Date;
2193
- userId: string;
2194
- expiresAt: Date;
2195
- token: string;
2196
- ipAddress?: string | null | undefined;
2197
- userAgent?: string | null | undefined;
2198
- };
2199
- } | null;
2200
- isPending: boolean;
2201
- isRefetching: boolean;
2202
- error: _better_fetch_fetch.BetterFetchError | null;
2203
- refetch: (queryParams?: {
2204
- query?: node_modules_better_auth_dist_shared_better_auth_BNARIIb2.i;
2205
- }) => void;
2206
- };
2207
- $Infer: {
2208
- Session: {
2209
- user: {
2210
- id: string;
2211
- createdAt: Date;
2212
- updatedAt: Date;
2213
- email: string;
2214
- emailVerified: boolean;
2215
- name: string;
2216
- image?: string | null | undefined;
2217
- };
2218
- session: {
2219
- id: string;
2220
- createdAt: Date;
2221
- updatedAt: Date;
2222
- userId: string;
2223
- expiresAt: Date;
2224
- token: string;
2225
- ipAddress?: string | null | undefined;
2226
- userAgent?: string | null | undefined;
2227
- };
2228
- };
2229
- };
2230
- $fetch: _better_fetch_fetch.BetterFetch<{
2231
- plugins: (_better_fetch_fetch.BetterFetchPlugin | {
2232
- id: string;
2233
- name: string;
2234
- hooks: {
2235
- onSuccess: ((context: _better_fetch_fetch.SuccessContext<any>) => Promise<void> | void) | undefined;
2236
- onError: ((context: _better_fetch_fetch.ErrorContext) => Promise<void> | void) | undefined;
2237
- onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T>) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined;
2238
- onResponse: ((context: _better_fetch_fetch.ResponseContext) => Promise<Response | void | _better_fetch_fetch.ResponseContext> | Response | _better_fetch_fetch.ResponseContext | void) | undefined;
2239
- };
2240
- } | {
2241
- id: string;
2242
- name: string;
2243
- hooks: {
2244
- onSuccess(context: _better_fetch_fetch.SuccessContext<any>): void;
2245
- };
2246
- })[];
2247
- method: string;
2248
- headers?: (HeadersInit & (HeadersInit | {
2249
- accept: "application/json" | "text/plain" | "application/octet-stream";
2250
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2251
- authorization: "Bearer" | "Basic";
2252
- })) | undefined;
2253
- redirect?: RequestRedirect | undefined;
2254
- cache?: RequestCache | undefined;
2255
- credentials?: RequestCredentials;
2256
- integrity?: string | undefined;
2257
- keepalive?: boolean | undefined;
2258
- mode?: RequestMode | undefined;
2259
- priority?: RequestPriority | undefined;
2260
- referrer?: string | undefined;
2261
- referrerPolicy?: ReferrerPolicy | undefined;
2262
- signal?: (AbortSignal | null) | undefined;
2263
- window?: null | undefined;
2264
- onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise<void> | void) | undefined;
2265
- hookOptions?: {
2266
- cloneResponse?: boolean;
2267
- } | undefined;
2268
- timeout?: number | undefined;
2269
- customFetchImpl: _better_fetch_fetch.FetchEsque;
2270
- baseURL: string;
2271
- throw?: boolean | undefined;
2272
- auth?: ({
2273
- type: "Bearer";
2274
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2275
- } | {
2276
- type: "Basic";
2277
- username: string | (() => string | undefined) | undefined;
2278
- password: string | (() => string | undefined) | undefined;
2279
- } | {
2280
- type: "Custom";
2281
- prefix: string | (() => string | undefined) | undefined;
2282
- value: string | (() => string | undefined) | undefined;
2283
- }) | undefined;
2284
- body?: any;
2285
- query?: any;
2286
- params?: any;
2287
- duplex?: "full" | "half" | undefined;
2288
- jsonParser: (text: string) => Promise<any> | any;
2289
- retry?: _better_fetch_fetch.RetryOptions | undefined;
2290
- retryAttempt?: number | undefined;
2291
- output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2292
- errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined;
2293
- disableValidation?: boolean | undefined;
2294
- }, unknown, unknown, {}>;
2295
- $store: {
2296
- notify: (signal?: Omit<string, "$sessionSignal"> | "$sessionSignal") => void;
2297
- listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
2298
- atoms: Record<string, nanostores.WritableAtom<any>>;
2299
- };
2300
- $ERROR_CODES: {
2301
- readonly USER_NOT_FOUND: "User not found";
2302
- readonly FAILED_TO_CREATE_USER: "Failed to create user";
2303
- readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
2304
- readonly FAILED_TO_UPDATE_USER: "Failed to update user";
2305
- readonly FAILED_TO_GET_SESSION: "Failed to get session";
2306
- readonly INVALID_PASSWORD: "Invalid password";
2307
- readonly INVALID_EMAIL: "Invalid email";
2308
- readonly INVALID_EMAIL_OR_PASSWORD: "Invalid email or password";
2309
- readonly SOCIAL_ACCOUNT_ALREADY_LINKED: "Social account already linked";
2310
- readonly PROVIDER_NOT_FOUND: "Provider not found";
2311
- readonly INVALID_TOKEN: "Invalid token";
2312
- readonly ID_TOKEN_NOT_SUPPORTED: "id_token not supported";
2313
- readonly FAILED_TO_GET_USER_INFO: "Failed to get user info";
2314
- readonly USER_EMAIL_NOT_FOUND: "User email not found";
2315
- readonly EMAIL_NOT_VERIFIED: "Email not verified";
2316
- readonly PASSWORD_TOO_SHORT: "Password too short";
2317
- readonly PASSWORD_TOO_LONG: "Password too long";
2318
- readonly USER_ALREADY_EXISTS: "User already exists.";
2319
- readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
2320
- readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated";
2321
- readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found";
2322
- readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.";
2323
- readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account";
2324
- readonly ACCOUNT_NOT_FOUND: "Account not found";
2325
- readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.";
2326
- };
2327
- };
2328
-
2329
- declare const WISTRON_PRIMARY_COLOR = "#00506E";
2330
- declare const WISTRON_SECONDARY_COLOR = "#64DC00";
2331
-
2332
- type FormSubmitButtonProps = Omit<ButtonProps, "loading" | "disabled" | "onClick" | "type">;
2333
-
2334
- interface FormDateTimePickerProps extends Omit<DateTimePickerProps, FormOmittedProps> {
2335
- textFieldProps?: TextFieldProps;
2336
- }
2337
-
2338
- interface FormDatePickerProps extends Omit<DatePickerProps, FormOmittedProps> {
2339
- textFieldProps?: TextFieldProps;
2340
- }
2341
-
2342
- interface FormSliderProps extends Omit<SliderProps, FormOmittedProps> {
2343
- label?: string;
2344
- }
2345
-
2346
- interface Option {
2347
- label: string;
2348
- value: string | number;
2349
- }
2350
- interface FormRadioGroupProps extends Omit<RadioGroupProps, FormOmittedProps> {
2351
- label?: string;
2352
- options: Array<Option>;
2353
- }
2354
-
2355
- interface FormSwitchProps extends Omit<SwitchProps, FormOmittedProps> {
2356
- label?: string;
2357
- }
2358
-
2359
- interface FormCheckboxProps extends Omit<CheckboxProps, FormOmittedProps> {
2360
- label?: string;
2361
- }
2362
-
2363
- interface FormAutocompleteProps extends Omit<AutocompleteProps<any, boolean, boolean, boolean>, FormOmittedProps> {
2364
- textFieldProps?: Omit<TextFieldProps, FormOmittedProps>;
2365
- }
2366
-
2367
- interface FormNumberFieldProps extends Omit<TextFieldProps, FormOmittedProps> {
2368
- defaultValue?: number | null;
2369
- options?: Omit<NumericFormatProps<InputAttributes>, "customInput" | "onValueChange" | keyof InputAttributes>;
2370
- }
2371
-
2372
- interface FormTextFieldProps extends Omit<TextFieldProps, FormOmittedProps> {
2373
- type?: "color" | "email" | "password" | "search" | "tel" | "text" | "url";
2374
- }
2375
-
2376
- declare const useFieldContext: <TData>() => _tanstack_form_core.FieldApi<any, string, TData, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>;
2377
- declare const useFormContext: () => _tanstack_react_form.ReactFormExtendedApi<Record<string, never>, any, any, any, any, any, any, any, any, any, any, any>;
2378
- declare const useLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnChange extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta>(props: _tanstack_form_core.FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => _tanstack_react_form.AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
2379
- readonly TextField: react.FC<FormTextFieldProps>;
2380
- readonly NumberField: react.FC<FormNumberFieldProps>;
2381
- readonly Autocomplete: react.FC<FormAutocompleteProps>;
2382
- readonly Checkbox: react.FC<FormCheckboxProps>;
2383
- readonly Switch: react.FC<FormSwitchProps>;
2384
- readonly RadioGroup: react.FC<FormRadioGroupProps>;
2385
- readonly Slider: react.FC<FormSliderProps>;
2386
- readonly DatePicker: react.FC<FormDatePickerProps>;
2387
- readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
2388
- }, {
2389
- readonly SubmitButton: react.FC<FormSubmitButtonProps>;
2390
- }>;
2391
- declare const withLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnChange extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta, TRenderProps extends object = {}>({ render, props, }: _tanstack_react_form.WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
2392
- readonly TextField: react.FC<FormTextFieldProps>;
2393
- readonly NumberField: react.FC<FormNumberFieldProps>;
2394
- readonly Autocomplete: react.FC<FormAutocompleteProps>;
2395
- readonly Checkbox: react.FC<FormCheckboxProps>;
2396
- readonly Switch: react.FC<FormSwitchProps>;
2397
- readonly RadioGroup: react.FC<FormRadioGroupProps>;
2398
- readonly Slider: react.FC<FormSliderProps>;
2399
- readonly DatePicker: react.FC<FormDatePickerProps>;
2400
- readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
2401
- }, {
2402
- readonly SubmitButton: react.FC<FormSubmitButtonProps>;
2403
- }, TRenderProps>) => (props: react.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
2404
- form: _tanstack_react_form.AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic] ? [TOnDynamic] extends [TOnDynamic & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic : TOnDynamic, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync] ? [TOnDynamicAsync] extends [TOnDynamicAsync & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync : TOnDynamicAsync, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta, {
2405
- readonly TextField: react.FC<FormTextFieldProps>;
2406
- readonly NumberField: react.FC<FormNumberFieldProps>;
2407
- readonly Autocomplete: react.FC<FormAutocompleteProps>;
2408
- readonly Checkbox: react.FC<FormCheckboxProps>;
2409
- readonly Switch: react.FC<FormSwitchProps>;
2410
- readonly RadioGroup: react.FC<FormRadioGroupProps>;
2411
- readonly Slider: react.FC<FormSliderProps>;
2412
- readonly DatePicker: react.FC<FormDatePickerProps>;
2413
- readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
2414
- }, {
2415
- readonly SubmitButton: react.FC<FormSubmitButtonProps>;
2416
- }>;
2417
- }>) => react.ReactNode;
2418
-
2419
- interface OpenDialogOptions<TResult> {
2420
- onClose?: (result: TResult) => Promise<void>;
2421
- }
2422
- interface AlertOptions {
2423
- title?: ReactNode;
2424
- }
2425
- interface ConfirmOptions {
2426
- title?: ReactNode;
2427
- cancelText?: ReactNode;
2428
- }
2429
- interface DialogProps<TPayload = undefined, TResult = void> {
2430
- payload: TPayload;
2431
- open: boolean;
2432
- onClose: (result: TResult) => Promise<void>;
2433
- }
2434
- type OpenAlertDialog = (message: ReactNode, options?: AlertOptions) => Promise<void>;
2435
- type OpenConfirmDialog = (message: ReactNode, options?: ConfirmOptions) => Promise<boolean>;
2436
- type DialogComponent<TPayload, TResult> = React.ComponentType<DialogProps<TPayload, TResult>>;
2437
- interface OpenDialog {
2438
- <TPayload extends undefined, TResult>(Component: DialogComponent<TPayload, TResult>, payload?: TPayload, options?: OpenDialogOptions<TResult>): Promise<TResult>;
2439
- <TPayload, TResult>(Component: DialogComponent<TPayload, TResult>, payload: TPayload, options?: OpenDialogOptions<TResult>): Promise<TResult>;
2440
- }
2441
- type CloseDialog = <TResult>(dialog: Promise<TResult>, result: TResult) => Promise<TResult>;
2442
- interface DialogHook {
2443
- alert: OpenAlertDialog;
2444
- confirm: OpenConfirmDialog;
2445
- open: OpenDialog;
2446
- close: CloseDialog;
2447
- }
2448
- declare function useDialogs(): DialogHook;
2449
-
2450
- type OptionalId$1 = string | undefined | null;
2451
- type BaseFileMetaArrayQueryOptions = Omit<DefinedInitialDataOptions<Array<FileMeta>>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
2452
- type BaseBlobQueryOptions = Omit<DefinedInitialDataOptions<Blob, Error, string>, "queryKey" | "queryFn" | "select" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
2453
- type BaseFileMetaMutationOptions = Omit<UseMutationOptions<FileMeta, Error, FileMeta>, "mutationFn" | "onSettled">;
2454
- type BaseBlobMutationOptions = Omit<UseMutationOptions<Blob, Error, FileMeta>, "mutationFn" | "onSuccess">;
2455
- type BaseStringMutationOptions = Omit<UseMutationOptions<string, Error, string>, "mutationFn" | "onSettled">;
2456
- declare const GetFileMetasParamsSchema: z__default.ZodObject<{
2457
- appName: z__default.ZodOptional<z__default.ZodDefault<z__default.ZodString>>;
2458
- subId: z__default.ZodUUID;
2459
- }, z__default.core.$strip>;
2460
- type GetFileMetasParams = z__default.infer<typeof GetFileMetasParamsSchema>;
2461
- declare const useGetFileMetas: (params: GetFileMetasParams, options?: BaseFileMetaArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
2462
- id: string;
2463
- subId: string;
2464
- appName: string;
2465
- fileName: string;
2466
- fileExtension: string;
2467
- fileSize: number;
2468
- mediaSubType: string;
2469
- mediaType: string;
2470
- mimeType: string;
2471
- createdBy: string;
2472
- createdDate: Date;
2473
- }[], Error>;
2474
- declare const GetFileThumbnailParamsSchema: z__default.ZodObject<{
2475
- appName: z__default.ZodOptional<z__default.ZodDefault<z__default.ZodString>>;
2476
- meta: z__default.ZodObject<{
2477
- id: z__default.ZodUUID;
2478
- subId: z__default.ZodUUID;
2479
- appName: z__default.ZodString;
2480
- fileName: z__default.ZodString;
2481
- fileExtension: z__default.ZodString;
2482
- fileSize: z__default.ZodNumber;
2483
- mediaSubType: z__default.ZodString;
2484
- mediaType: z__default.ZodString;
2485
- mimeType: z__default.ZodString;
2486
- createdBy: z__default.ZodString;
2487
- createdDate: z__default.ZodDate;
2488
- }, z__default.core.$strip>;
2489
- }, z__default.core.$strip>;
2490
- type GetFileThumbnailParams = z__default.infer<typeof GetFileThumbnailParamsSchema>;
2491
- declare const useGetFileThumbnail: (params: GetFileThumbnailParams, options?: BaseBlobQueryOptions) => _tanstack_react_query.UseQueryResult<string, Error>;
2492
- declare const GetFileParamsSchema: z__default.ZodObject<{
2493
- appName: z__default.ZodOptional<z__default.ZodDefault<z__default.ZodString>>;
2494
- meta: z__default.ZodObject<{
2495
- id: z__default.ZodUUID;
2496
- subId: z__default.ZodUUID;
2497
- appName: z__default.ZodString;
2498
- fileName: z__default.ZodString;
2499
- fileExtension: z__default.ZodString;
2500
- fileSize: z__default.ZodNumber;
2501
- mediaSubType: z__default.ZodString;
2502
- mediaType: z__default.ZodString;
2503
- mimeType: z__default.ZodString;
2504
- createdBy: z__default.ZodString;
2505
- createdDate: z__default.ZodDate;
2506
- }, z__default.core.$strip>;
2507
- }, z__default.core.$strip>;
2508
- type GetFileParams = z__default.infer<typeof GetFileParamsSchema>;
2509
- declare const useGetFile: (params: GetFileParams, options?: BaseBlobQueryOptions) => _tanstack_react_query.UseQueryResult<string, Error>;
2510
- declare const useDownloadFile: (options?: BaseBlobMutationOptions) => _tanstack_react_query.UseMutationResult<Blob, Error, {
2511
- id: string;
2512
- subId: string;
2513
- appName: string;
2514
- fileName: string;
2515
- fileExtension: string;
2516
- fileSize: number;
2517
- mediaSubType: string;
2518
- mediaType: string;
2519
- mimeType: string;
2520
- createdBy: string;
2521
- createdDate: Date;
2522
- }, unknown>;
2523
- declare const useOpenFile: (options?: BaseBlobMutationOptions) => _tanstack_react_query.UseMutationResult<Blob, Error, {
2524
- id: string;
2525
- subId: string;
2526
- appName: string;
2527
- fileName: string;
2528
- fileExtension: string;
2529
- fileSize: number;
2530
- mediaSubType: string;
2531
- mediaType: string;
2532
- mimeType: string;
2533
- createdBy: string;
2534
- createdDate: Date;
2535
- }, unknown>;
2536
- declare const useUpdateFileMeta: (options?: BaseFileMetaMutationOptions) => _tanstack_react_query.UseMutationResult<{
2537
- id: string;
2538
- subId: string;
2539
- appName: string;
2540
- fileName: string;
2541
- fileExtension: string;
2542
- fileSize: number;
2543
- mediaSubType: string;
2544
- mediaType: string;
2545
- mimeType: string;
2546
- createdBy: string;
2547
- createdDate: Date;
2548
- }, Error, {
2549
- id: string;
2550
- subId: string;
2551
- appName: string;
2552
- fileName: string;
2553
- fileExtension: string;
2554
- fileSize: number;
2555
- mediaSubType: string;
2556
- mediaType: string;
2557
- mimeType: string;
2558
- createdBy: string;
2559
- createdDate: Date;
2560
- }, unknown>;
2561
- declare const useDeleteFile: (options?: BaseFileMetaMutationOptions) => _tanstack_react_query.UseMutationResult<{
2562
- id: string;
2563
- subId: string;
2564
- appName: string;
2565
- fileName: string;
2566
- fileExtension: string;
2567
- fileSize: number;
2568
- mediaSubType: string;
2569
- mediaType: string;
2570
- mimeType: string;
2571
- createdBy: string;
2572
- createdDate: Date;
2573
- }, Error, {
2574
- id: string;
2575
- subId: string;
2576
- appName: string;
2577
- fileName: string;
2578
- fileExtension: string;
2579
- fileSize: number;
2580
- mediaSubType: string;
2581
- mediaType: string;
2582
- mimeType: string;
2583
- createdBy: string;
2584
- createdDate: Date;
2585
- }, unknown>;
2586
- declare const useDeleteFiles: (options?: BaseStringMutationOptions) => _tanstack_react_query.UseMutationResult<string, Error, string, unknown>;
2587
- interface UseUploadFileProps {
2588
- subId: OptionalId$1;
2589
- onSuccess?: (meta: Pick<FileMeta, "id" | "appName" | "subId" | "fileName">) => void;
2590
- onError?: (error: Error | DetailedError) => void;
2591
- }
2592
- declare const useUploadFile: ({ subId, onSuccess, onError }: UseUploadFileProps) => {
2593
- mutate: (file: File) => Promise<void>;
2594
- progress: number;
2595
- };
2596
-
2597
- declare const DepartmentSchema: z__default.ZodObject<{
2598
- departmentId: z__default.ZodString;
2599
- description: z__default.ZodString;
2600
- managerId: z__default.ZodString;
2601
- managerRecordNumber: z__default.ZodString;
2602
- treeLevel: z__default.ZodNumber;
2603
- upperDepartmentId: z__default.ZodString;
2604
- companyCode: z__default.ZodString;
2605
- location: z__default.ZodString;
2606
- salLocation: z__default.ZodString;
2607
- plantId: z__default.ZodString;
2608
- manager: z__default.ZodObject<{
2609
- badgeId: z__default.ZodString;
2610
- category: z__default.ZodString;
2611
- categoryGroup: z__default.ZodEnum<{
2612
- IDL: "IDL";
2613
- FD: "FD";
2614
- FI: "FI";
2615
- }>;
2616
- companyCode: z__default.ZodString;
2617
- contactPhone: z__default.ZodString;
2618
- departmentId: z__default.ZodString;
2619
- departmentDescription: z__default.ZodString;
2620
- emailString: z__default.ZodString;
2621
- employeeId: z__default.ZodString;
2622
- extensionNumber: z__default.ZodString;
2623
- firstName: z__default.ZodString;
2624
- gender: z__default.ZodString;
2625
- hiredDate: z__default.ZodDate;
2626
- lastName: z__default.ZodString;
2627
- managerId: z__default.ZodString;
2628
- middleName: z__default.ZodString;
2629
- name: z__default.ZodString;
2630
- nameTitleCase: z__default.ZodString;
2631
- nfcSn: z__default.ZodString;
2632
- plantId: z__default.ZodString;
2633
- position: z__default.ZodString;
2634
- previousEmployeeIds: z__default.ZodNullable<z__default.ZodString>;
2635
- reHiredDate: z__default.ZodNullable<z__default.ZodDate>;
2636
- recordNumber: z__default.ZodNumber;
2637
- status: z__default.ZodEnum<{
2638
- Active: "Active";
2639
- Terminated: "Terminated";
2640
- "Leave of Absence": "Leave of Absence";
2641
- }>;
2642
- supervisorId: z__default.ZodString;
2643
- terminationDate: z__default.ZodNullable<z__default.ZodDate>;
2644
- terminationFutureDate: z__default.ZodNullable<z__default.ZodDate>;
2645
- type: z__default.ZodString;
2646
- upperDepartmentId: z__default.ZodString;
2647
- jobCode: z__default.ZodString;
2648
- jobDescription: z__default.ZodString;
2649
- terminationReason: z__default.ZodNullable<z__default.ZodString>;
2650
- supervisorRecordNumber: z__default.ZodNumber;
2651
- }, z__default.core.$strip>;
2652
- }, z__default.core.$strip>;
2653
- type Department = z__default.infer<typeof DepartmentSchema>;
2654
-
2655
- declare const EmployeeSchema: z__default.ZodObject<{
2656
- badgeId: z__default.ZodString;
2657
- category: z__default.ZodString;
2658
- categoryGroup: z__default.ZodEnum<{
2659
- IDL: "IDL";
2660
- FD: "FD";
2661
- FI: "FI";
2662
- }>;
2663
- companyCode: z__default.ZodString;
2664
- contactPhone: z__default.ZodString;
2665
- departmentId: z__default.ZodString;
2666
- departmentDescription: z__default.ZodString;
2667
- emailString: z__default.ZodString;
2668
- employeeId: z__default.ZodString;
2669
- extensionNumber: z__default.ZodString;
2670
- firstName: z__default.ZodString;
2671
- gender: z__default.ZodString;
2672
- hiredDate: z__default.ZodDate;
2673
- lastName: z__default.ZodString;
2674
- managerId: z__default.ZodString;
2675
- middleName: z__default.ZodString;
2676
- name: z__default.ZodString;
2677
- nameTitleCase: z__default.ZodString;
2678
- nfcSn: z__default.ZodString;
2679
- plantId: z__default.ZodString;
2680
- position: z__default.ZodString;
2681
- previousEmployeeIds: z__default.ZodNullable<z__default.ZodString>;
2682
- reHiredDate: z__default.ZodNullable<z__default.ZodDate>;
2683
- recordNumber: z__default.ZodNumber;
2684
- status: z__default.ZodEnum<{
2685
- Active: "Active";
2686
- Terminated: "Terminated";
2687
- "Leave of Absence": "Leave of Absence";
2688
- }>;
2689
- supervisorId: z__default.ZodString;
2690
- terminationDate: z__default.ZodNullable<z__default.ZodDate>;
2691
- terminationFutureDate: z__default.ZodNullable<z__default.ZodDate>;
2692
- type: z__default.ZodString;
2693
- upperDepartmentId: z__default.ZodString;
2694
- jobCode: z__default.ZodString;
2695
- jobDescription: z__default.ZodString;
2696
- terminationReason: z__default.ZodNullable<z__default.ZodString>;
2697
- supervisorRecordNumber: z__default.ZodNumber;
2698
- }, z__default.core.$strip>;
2699
- type Employee = z__default.infer<typeof EmployeeSchema>;
2700
-
2701
- type OptionalId = string | undefined | null;
2702
- type BaseEmployeeArrayQueryOptions = Omit<DefinedInitialDataOptions<Array<Employee>>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
2703
- type BaseEmployeeQueryOptions = Omit<DefinedInitialDataOptions<Employee>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
2704
- type BaseDepartmentArrayQueryOptions = Omit<DefinedInitialDataOptions<Array<Department>>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
2705
- type BaseDepartmentQueryOptions = Omit<DefinedInitialDataOptions<Department>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
2706
- declare const useGetPeopleSoftEmployeesSearch: (searchTerm: string, options?: BaseEmployeeArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
2707
- badgeId: string;
2708
- category: string;
2709
- categoryGroup: "IDL" | "FD" | "FI";
2710
- companyCode: string;
2711
- contactPhone: string;
2712
- departmentId: string;
2713
- departmentDescription: string;
2714
- emailString: string;
2715
- employeeId: string;
2716
- extensionNumber: string;
2717
- firstName: string;
2718
- gender: string;
2719
- hiredDate: Date;
2720
- lastName: string;
2721
- managerId: string;
2722
- middleName: string;
2723
- name: string;
2724
- nameTitleCase: string;
2725
- nfcSn: string;
2726
- plantId: string;
2727
- position: string;
2728
- previousEmployeeIds: string | null;
2729
- reHiredDate: Date | null;
2730
- recordNumber: number;
2731
- status: "Active" | "Terminated" | "Leave of Absence";
2732
- supervisorId: string;
2733
- terminationDate: Date | null;
2734
- terminationFutureDate: Date | null;
2735
- type: string;
2736
- upperDepartmentId: string;
2737
- jobCode: string;
2738
- jobDescription: string;
2739
- terminationReason: string | null;
2740
- supervisorRecordNumber: number;
2741
- }[], Error>;
2742
- declare const useGetPeopleSoftEmployees: (options?: BaseEmployeeArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
2743
- badgeId: string;
2744
- category: string;
2745
- categoryGroup: "IDL" | "FD" | "FI";
2746
- companyCode: string;
2747
- contactPhone: string;
2748
- departmentId: string;
2749
- departmentDescription: string;
2750
- emailString: string;
2751
- employeeId: string;
2752
- extensionNumber: string;
2753
- firstName: string;
2754
- gender: string;
2755
- hiredDate: Date;
2756
- lastName: string;
2757
- managerId: string;
2758
- middleName: string;
2759
- name: string;
2760
- nameTitleCase: string;
2761
- nfcSn: string;
2762
- plantId: string;
2763
- position: string;
2764
- previousEmployeeIds: string | null;
2765
- reHiredDate: Date | null;
2766
- recordNumber: number;
2767
- status: "Active" | "Terminated" | "Leave of Absence";
2768
- supervisorId: string;
2769
- terminationDate: Date | null;
2770
- terminationFutureDate: Date | null;
2771
- type: string;
2772
- upperDepartmentId: string;
2773
- jobCode: string;
2774
- jobDescription: string;
2775
- terminationReason: string | null;
2776
- supervisorRecordNumber: number;
2777
- }[], Error>;
2778
- declare const useGetPeopleSoftActiveEmployees: (options?: BaseEmployeeArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
2779
- badgeId: string;
2780
- category: string;
2781
- categoryGroup: "IDL" | "FD" | "FI";
2782
- companyCode: string;
2783
- contactPhone: string;
2784
- departmentId: string;
2785
- departmentDescription: string;
2786
- emailString: string;
2787
- employeeId: string;
2788
- extensionNumber: string;
2789
- firstName: string;
2790
- gender: string;
2791
- hiredDate: Date;
2792
- lastName: string;
2793
- managerId: string;
2794
- middleName: string;
2795
- name: string;
2796
- nameTitleCase: string;
2797
- nfcSn: string;
2798
- plantId: string;
2799
- position: string;
2800
- previousEmployeeIds: string | null;
2801
- reHiredDate: Date | null;
2802
- recordNumber: number;
2803
- status: "Active" | "Terminated" | "Leave of Absence";
2804
- supervisorId: string;
2805
- terminationDate: Date | null;
2806
- terminationFutureDate: Date | null;
2807
- type: string;
2808
- upperDepartmentId: string;
2809
- jobCode: string;
2810
- jobDescription: string;
2811
- terminationReason: string | null;
2812
- supervisorRecordNumber: number;
2813
- }[], Error>;
2814
- declare const useGetPeopleSoftEmployeeById: (employeeId: OptionalId, options?: BaseEmployeeQueryOptions) => _tanstack_react_query.UseQueryResult<{
2815
- badgeId: string;
2816
- category: string;
2817
- categoryGroup: "IDL" | "FD" | "FI";
2818
- companyCode: string;
2819
- contactPhone: string;
2820
- departmentId: string;
2821
- departmentDescription: string;
2822
- emailString: string;
2823
- employeeId: string;
2824
- extensionNumber: string;
2825
- firstName: string;
2826
- gender: string;
2827
- hiredDate: Date;
2828
- lastName: string;
2829
- managerId: string;
2830
- middleName: string;
2831
- name: string;
2832
- nameTitleCase: string;
2833
- nfcSn: string;
2834
- plantId: string;
2835
- position: string;
2836
- previousEmployeeIds: string | null;
2837
- reHiredDate: Date | null;
2838
- recordNumber: number;
2839
- status: "Active" | "Terminated" | "Leave of Absence";
2840
- supervisorId: string;
2841
- terminationDate: Date | null;
2842
- terminationFutureDate: Date | null;
2843
- type: string;
2844
- upperDepartmentId: string;
2845
- jobCode: string;
2846
- jobDescription: string;
2847
- terminationReason: string | null;
2848
- supervisorRecordNumber: number;
2849
- }, Error>;
2850
- declare const useGetPeopleSoftPreviousEmployeeIds: (options?: BaseEmployeeArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
2851
- badgeId: string;
2852
- category: string;
2853
- categoryGroup: "IDL" | "FD" | "FI";
2854
- companyCode: string;
2855
- contactPhone: string;
2856
- departmentId: string;
2857
- departmentDescription: string;
2858
- emailString: string;
2859
- employeeId: string;
2860
- extensionNumber: string;
2861
- firstName: string;
2862
- gender: string;
2863
- hiredDate: Date;
2864
- lastName: string;
2865
- managerId: string;
2866
- middleName: string;
2867
- name: string;
2868
- nameTitleCase: string;
2869
- nfcSn: string;
2870
- plantId: string;
2871
- position: string;
2872
- previousEmployeeIds: string | null;
2873
- reHiredDate: Date | null;
2874
- recordNumber: number;
2875
- status: "Active" | "Terminated" | "Leave of Absence";
2876
- supervisorId: string;
2877
- terminationDate: Date | null;
2878
- terminationFutureDate: Date | null;
2879
- type: string;
2880
- upperDepartmentId: string;
2881
- jobCode: string;
2882
- jobDescription: string;
2883
- terminationReason: string | null;
2884
- supervisorRecordNumber: number;
2885
- }[], Error>;
2886
- declare const useGetPeopleSoftEmployeeSupervisor: (employeeId: OptionalId, options?: BaseEmployeeQueryOptions) => _tanstack_react_query.UseQueryResult<{
2887
- badgeId: string;
2888
- category: string;
2889
- categoryGroup: "IDL" | "FD" | "FI";
2890
- companyCode: string;
2891
- contactPhone: string;
2892
- departmentId: string;
2893
- departmentDescription: string;
2894
- emailString: string;
2895
- employeeId: string;
2896
- extensionNumber: string;
2897
- firstName: string;
2898
- gender: string;
2899
- hiredDate: Date;
2900
- lastName: string;
2901
- managerId: string;
2902
- middleName: string;
2903
- name: string;
2904
- nameTitleCase: string;
2905
- nfcSn: string;
2906
- plantId: string;
2907
- position: string;
2908
- previousEmployeeIds: string | null;
2909
- reHiredDate: Date | null;
2910
- recordNumber: number;
2911
- status: "Active" | "Terminated" | "Leave of Absence";
2912
- supervisorId: string;
2913
- terminationDate: Date | null;
2914
- terminationFutureDate: Date | null;
2915
- type: string;
2916
- upperDepartmentId: string;
2917
- jobCode: string;
2918
- jobDescription: string;
2919
- terminationReason: string | null;
2920
- supervisorRecordNumber: number;
2921
- }, Error>;
2922
- declare const useGetPeopleSoftEmployeeSubordinates: (employeeId: OptionalId, options?: BaseEmployeeArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
2923
- badgeId: string;
2924
- category: string;
2925
- categoryGroup: "IDL" | "FD" | "FI";
2926
- companyCode: string;
2927
- contactPhone: string;
2928
- departmentId: string;
2929
- departmentDescription: string;
2930
- emailString: string;
2931
- employeeId: string;
2932
- extensionNumber: string;
2933
- firstName: string;
2934
- gender: string;
2935
- hiredDate: Date;
2936
- lastName: string;
2937
- managerId: string;
2938
- middleName: string;
2939
- name: string;
2940
- nameTitleCase: string;
2941
- nfcSn: string;
2942
- plantId: string;
2943
- position: string;
2944
- previousEmployeeIds: string | null;
2945
- reHiredDate: Date | null;
2946
- recordNumber: number;
2947
- status: "Active" | "Terminated" | "Leave of Absence";
2948
- supervisorId: string;
2949
- terminationDate: Date | null;
2950
- terminationFutureDate: Date | null;
2951
- type: string;
2952
- upperDepartmentId: string;
2953
- jobCode: string;
2954
- jobDescription: string;
2955
- terminationReason: string | null;
2956
- supervisorRecordNumber: number;
2957
- }[], Error>;
2958
- declare const useGetPeopleSoftEmployeeManager: (employeeId: OptionalId, options?: BaseEmployeeQueryOptions) => _tanstack_react_query.UseQueryResult<{
2959
- badgeId: string;
2960
- category: string;
2961
- categoryGroup: "IDL" | "FD" | "FI";
2962
- companyCode: string;
2963
- contactPhone: string;
2964
- departmentId: string;
2965
- departmentDescription: string;
2966
- emailString: string;
2967
- employeeId: string;
2968
- extensionNumber: string;
2969
- firstName: string;
2970
- gender: string;
2971
- hiredDate: Date;
2972
- lastName: string;
2973
- managerId: string;
2974
- middleName: string;
2975
- name: string;
2976
- nameTitleCase: string;
2977
- nfcSn: string;
2978
- plantId: string;
2979
- position: string;
2980
- previousEmployeeIds: string | null;
2981
- reHiredDate: Date | null;
2982
- recordNumber: number;
2983
- status: "Active" | "Terminated" | "Leave of Absence";
2984
- supervisorId: string;
2985
- terminationDate: Date | null;
2986
- terminationFutureDate: Date | null;
2987
- type: string;
2988
- upperDepartmentId: string;
2989
- jobCode: string;
2990
- jobDescription: string;
2991
- terminationReason: string | null;
2992
- supervisorRecordNumber: number;
2993
- }, Error>;
2994
- declare const useGetPeopleSoftEmployeeGeneralManager: (employeeId: OptionalId, options?: BaseEmployeeQueryOptions) => _tanstack_react_query.UseQueryResult<{
2995
- badgeId: string;
2996
- category: string;
2997
- categoryGroup: "IDL" | "FD" | "FI";
2998
- companyCode: string;
2999
- contactPhone: string;
3000
- departmentId: string;
3001
- departmentDescription: string;
3002
- emailString: string;
3003
- employeeId: string;
3004
- extensionNumber: string;
3005
- firstName: string;
3006
- gender: string;
3007
- hiredDate: Date;
3008
- lastName: string;
3009
- managerId: string;
3010
- middleName: string;
3011
- name: string;
3012
- nameTitleCase: string;
3013
- nfcSn: string;
3014
- plantId: string;
3015
- position: string;
3016
- previousEmployeeIds: string | null;
3017
- reHiredDate: Date | null;
3018
- recordNumber: number;
3019
- status: "Active" | "Terminated" | "Leave of Absence";
3020
- supervisorId: string;
3021
- terminationDate: Date | null;
3022
- terminationFutureDate: Date | null;
3023
- type: string;
3024
- upperDepartmentId: string;
3025
- jobCode: string;
3026
- jobDescription: string;
3027
- terminationReason: string | null;
3028
- supervisorRecordNumber: number;
3029
- }, Error>;
3030
- declare const useGetPeopleSoftDepartments: (options?: BaseDepartmentArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
3031
- departmentId: string;
3032
- description: string;
3033
- managerId: string;
3034
- managerRecordNumber: string;
3035
- treeLevel: number;
3036
- upperDepartmentId: string;
3037
- companyCode: string;
3038
- location: string;
3039
- salLocation: string;
3040
- plantId: string;
3041
- manager: {
3042
- badgeId: string;
3043
- category: string;
3044
- categoryGroup: "IDL" | "FD" | "FI";
3045
- companyCode: string;
3046
- contactPhone: string;
3047
- departmentId: string;
3048
- departmentDescription: string;
3049
- emailString: string;
3050
- employeeId: string;
3051
- extensionNumber: string;
3052
- firstName: string;
3053
- gender: string;
3054
- hiredDate: Date;
3055
- lastName: string;
3056
- managerId: string;
3057
- middleName: string;
3058
- name: string;
3059
- nameTitleCase: string;
3060
- nfcSn: string;
3061
- plantId: string;
3062
- position: string;
3063
- previousEmployeeIds: string | null;
3064
- reHiredDate: Date | null;
3065
- recordNumber: number;
3066
- status: "Active" | "Terminated" | "Leave of Absence";
3067
- supervisorId: string;
3068
- terminationDate: Date | null;
3069
- terminationFutureDate: Date | null;
3070
- type: string;
3071
- upperDepartmentId: string;
3072
- jobCode: string;
3073
- jobDescription: string;
3074
- terminationReason: string | null;
3075
- supervisorRecordNumber: number;
3076
- };
3077
- }[], Error>;
3078
- declare const useGetPeopleSoftDepartmentById: (departmentId: OptionalId, options?: BaseDepartmentQueryOptions) => _tanstack_react_query.UseQueryResult<{
3079
- departmentId: string;
3080
- description: string;
3081
- managerId: string;
3082
- managerRecordNumber: string;
3083
- treeLevel: number;
3084
- upperDepartmentId: string;
3085
- companyCode: string;
3086
- location: string;
3087
- salLocation: string;
3088
- plantId: string;
3089
- manager: {
3090
- badgeId: string;
3091
- category: string;
3092
- categoryGroup: "IDL" | "FD" | "FI";
3093
- companyCode: string;
3094
- contactPhone: string;
3095
- departmentId: string;
3096
- departmentDescription: string;
3097
- emailString: string;
3098
- employeeId: string;
3099
- extensionNumber: string;
3100
- firstName: string;
3101
- gender: string;
3102
- hiredDate: Date;
3103
- lastName: string;
3104
- managerId: string;
3105
- middleName: string;
3106
- name: string;
3107
- nameTitleCase: string;
3108
- nfcSn: string;
3109
- plantId: string;
3110
- position: string;
3111
- previousEmployeeIds: string | null;
3112
- reHiredDate: Date | null;
3113
- recordNumber: number;
3114
- status: "Active" | "Terminated" | "Leave of Absence";
3115
- supervisorId: string;
3116
- terminationDate: Date | null;
3117
- terminationFutureDate: Date | null;
3118
- type: string;
3119
- upperDepartmentId: string;
3120
- jobCode: string;
3121
- jobDescription: string;
3122
- terminationReason: string | null;
3123
- supervisorRecordNumber: number;
3124
- };
3125
- }, Error>;
3126
- declare const useGetPeopleSoftDepartmentManager: (departmentId: OptionalId, options?: BaseEmployeeQueryOptions) => _tanstack_react_query.UseQueryResult<{
3127
- badgeId: string;
3128
- category: string;
3129
- categoryGroup: "IDL" | "FD" | "FI";
3130
- companyCode: string;
3131
- contactPhone: string;
3132
- departmentId: string;
3133
- departmentDescription: string;
3134
- emailString: string;
3135
- employeeId: string;
3136
- extensionNumber: string;
3137
- firstName: string;
3138
- gender: string;
3139
- hiredDate: Date;
3140
- lastName: string;
3141
- managerId: string;
3142
- middleName: string;
3143
- name: string;
3144
- nameTitleCase: string;
3145
- nfcSn: string;
3146
- plantId: string;
3147
- position: string;
3148
- previousEmployeeIds: string | null;
3149
- reHiredDate: Date | null;
3150
- recordNumber: number;
3151
- status: "Active" | "Terminated" | "Leave of Absence";
3152
- supervisorId: string;
3153
- terminationDate: Date | null;
3154
- terminationFutureDate: Date | null;
3155
- type: string;
3156
- upperDepartmentId: string;
3157
- jobCode: string;
3158
- jobDescription: string;
3159
- terminationReason: string | null;
3160
- supervisorRecordNumber: number;
3161
- }, Error>;
3162
- declare const useGetPeopleSoftDepartmentEmployees: (departmentId: OptionalId, options?: BaseEmployeeArrayQueryOptions) => _tanstack_react_query.UseQueryResult<{
3163
- badgeId: string;
3164
- category: string;
3165
- categoryGroup: "IDL" | "FD" | "FI";
3166
- companyCode: string;
3167
- contactPhone: string;
3168
- departmentId: string;
3169
- departmentDescription: string;
3170
- emailString: string;
3171
- employeeId: string;
3172
- extensionNumber: string;
3173
- firstName: string;
3174
- gender: string;
3175
- hiredDate: Date;
3176
- lastName: string;
3177
- managerId: string;
3178
- middleName: string;
3179
- name: string;
3180
- nameTitleCase: string;
3181
- nfcSn: string;
3182
- plantId: string;
3183
- position: string;
3184
- previousEmployeeIds: string | null;
3185
- reHiredDate: Date | null;
3186
- recordNumber: number;
3187
- status: "Active" | "Terminated" | "Leave of Absence";
3188
- supervisorId: string;
3189
- terminationDate: Date | null;
3190
- terminationFutureDate: Date | null;
3191
- type: string;
3192
- upperDepartmentId: string;
3193
- jobCode: string;
3194
- jobDescription: string;
3195
- terminationReason: string | null;
3196
- supervisorRecordNumber: number;
3197
- }[], Error>;
3198
- declare const useGetPeopleSoftCompanyGeneralManager: (companyCode: OptionalId, options?: BaseEmployeeQueryOptions) => _tanstack_react_query.UseQueryResult<{
3199
- badgeId: string;
3200
- category: string;
3201
- categoryGroup: "IDL" | "FD" | "FI";
3202
- companyCode: string;
3203
- contactPhone: string;
3204
- departmentId: string;
3205
- departmentDescription: string;
3206
- emailString: string;
3207
- employeeId: string;
3208
- extensionNumber: string;
3209
- firstName: string;
3210
- gender: string;
3211
- hiredDate: Date;
3212
- lastName: string;
3213
- managerId: string;
3214
- middleName: string;
3215
- name: string;
3216
- nameTitleCase: string;
3217
- nfcSn: string;
3218
- plantId: string;
3219
- position: string;
3220
- previousEmployeeIds: string | null;
3221
- reHiredDate: Date | null;
3222
- recordNumber: number;
3223
- status: "Active" | "Terminated" | "Leave of Absence";
3224
- supervisorId: string;
3225
- terminationDate: Date | null;
3226
- terminationFutureDate: Date | null;
3227
- type: string;
3228
- upperDepartmentId: string;
3229
- jobCode: string;
3230
- jobDescription: string;
3231
- terminationReason: string | null;
3232
- supervisorRecordNumber: number;
3233
- }, Error>;
3234
-
3235
- interface User {
3236
- employeeId: string;
3237
- name: string;
3238
- department: string;
3239
- email?: string;
3240
- company: string;
3241
- category: string;
3242
- }
3243
-
3244
- declare const EmailSchema: z__default.ZodObject<{
3245
- subject: z__default.ZodString;
3246
- body: z__default.ZodString;
3247
- to: z__default.ZodArray<z__default.ZodEmail>;
3248
- bcc: z__default.ZodOptional<z__default.ZodArray<z__default.ZodEmail>>;
3249
- cc: z__default.ZodOptional<z__default.ZodArray<z__default.ZodEmail>>;
3250
- attachments: z__default.ZodOptional<z__default.ZodArray<z__default.ZodObject<{
3251
- appName: z__default.ZodString;
3252
- subId: z__default.ZodUUID;
3253
- }, z__default.core.$strip>>>;
3254
- }, z__default.core.$strip>;
3255
- type Email = z__default.infer<typeof EmailSchema>;
3256
-
3257
- declare const EmailAttachmentSchema: z__default.ZodObject<{
3258
- appName: z__default.ZodString;
3259
- subId: z__default.ZodUUID;
3260
- }, z__default.core.$strip>;
3261
- type EmailAttachment = z__default.infer<typeof EmailAttachmentSchema>;
3262
-
3263
- declare const EmployeeCategoryGroup: z__default.ZodEnum<{
3264
- IDL: "IDL";
3265
- FD: "FD";
3266
- FI: "FI";
3267
- }>;
3268
-
3269
- declare const EmployeeStatus: z__default.ZodEnum<{
3270
- Active: "Active";
3271
- Terminated: "Terminated";
3272
- "Leave of Absence": "Leave of Absence";
3273
- }>;
3274
-
3275
- declare const ApprovalSchema: z__default.ZodObject<{
3276
- id: z__default.ZodUUID;
3277
- number: z__default.ZodOptional<z__default.ZodString>;
3278
- applicationName: z__default.ZodString;
3279
- type: z__default.ZodOptional<z__default.ZodDefault<z__default.ZodEnum<{
3280
- Single: "Single";
3281
- Batch: "Batch";
3282
- }>>>;
3283
- status: z__default.ZodEnum<{
3284
- WaitingForApproval: "WaitingForApproval";
3285
- Approved: "Approved";
3286
- Rejected: "Rejected";
3287
- Withdrawn: "Withdrawn";
3288
- Cancelled: "Cancelled";
3289
- PartiallyApproved: "PartiallyApproved";
3290
- }>;
3291
- emailBody: z__default.ZodString;
3292
- created: z__default.ZodDate;
3293
- createdBy: z__default.ZodCustom<{
3294
- employeeId: string;
3295
- name: string;
3296
- email: string;
3297
- }, {
3298
- employeeId: string;
3299
- name: string;
3300
- email: string;
3301
- }>;
3302
- updated: z__default.ZodDate;
3303
- updatedBy: z__default.ZodCustom<{
3304
- employeeId: string;
3305
- name: string;
3306
- email: string;
3307
- }, {
3308
- employeeId: string;
3309
- name: string;
3310
- email: string;
3311
- }>;
3312
- approvalFlows: z__default.ZodArray<z__default.ZodCustom<{
3313
- id: string;
3314
- approvalStage: number;
3315
- approvalSequence: number;
3316
- stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
3317
- steps: {
3318
- id: string;
3319
- order: number;
3320
- approver: {
3321
- employeeId: string;
3322
- name: string;
3323
- email: string;
3324
- };
3325
- approverRole?: string | undefined;
3326
- actualApprover?: {
3327
- employeeId: string;
3328
- name: string;
3329
- email: string;
3330
- } | undefined;
3331
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
3332
- resultDate?: Date | undefined;
3333
- resultComment?: string | undefined;
3334
- }[];
3335
- batchSequence?: number | undefined;
3336
- isActive?: boolean | undefined;
3337
- }, {
3338
- id: string;
3339
- approvalStage: number;
3340
- approvalSequence: number;
3341
- stepApprovalOrder: "Serial" | "Parallel" | "OneOfThem";
3342
- steps: {
3343
- id: string;
3344
- order: number;
3345
- approver: {
3346
- employeeId: string;
3347
- name: string;
3348
- email: string;
3349
- };
3350
- approverRole?: string | undefined;
3351
- actualApprover?: {
3352
- employeeId: string;
3353
- name: string;
3354
- email: string;
3355
- } | undefined;
3356
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
3357
- resultDate?: Date | undefined;
3358
- resultComment?: string | undefined;
3359
- }[];
3360
- batchSequence?: number | undefined;
3361
- isActive?: boolean | undefined;
3362
- }>>;
3363
- currentApprovers: z__default.ZodArray<z__default.ZodCustom<{
3364
- employeeId: string;
3365
- name: string;
3366
- email: string;
3367
- }, {
3368
- employeeId: string;
3369
- name: string;
3370
- email: string;
3371
- }>>;
3372
- }, z__default.core.$strip>;
3373
- type Approval = z__default.infer<typeof ApprovalSchema>;
3374
- declare const CreateApprovalSchema: z__default.ZodObject<{
3375
- number: z__default.ZodOptional<z__default.ZodString>;
3376
- id: z__default.ZodUUID;
3377
- type: z__default.ZodOptional<z__default.ZodDefault<z__default.ZodEnum<{
3378
- Single: "Single";
3379
- Batch: "Batch";
3380
- }>>>;
3381
- applicationName: z__default.ZodString;
3382
- emailBody: z__default.ZodString;
3383
- approvalFlows: z__default.ZodArray<z__default.ZodObject<{
3384
- stepApprovalOrder: z__default.ZodEnum<{
3385
- Serial: "Serial";
3386
- Parallel: "Parallel";
3387
- OneOfThem: "OneOfThem";
3388
- }>;
3389
- approvalStage: z__default.ZodNumber;
3390
- batchSequence: z__default.ZodOptional<z__default.ZodNumber>;
3391
- steps: z__default.ZodArray<z__default.ZodObject<{
3392
- approver: z__default.ZodObject<{
3393
- employeeId: z__default.ZodString;
3394
- name: z__default.ZodString;
3395
- email: z__default.ZodEmail;
3396
- }, z__default.core.$strip>;
3397
- approverRole: z__default.ZodOptional<z__default.ZodDefault<z__default.ZodString>>;
3398
- }, z__default.core.$strip>>;
3399
- }, z__default.core.$strip>>;
3400
- }, z__default.core.$strip>;
3401
- type CreateApproval = z__default.infer<typeof CreateApprovalSchema>;
3402
- declare const ApproveApprovalSchema: z__default.ZodObject<{
3403
- id: z__default.ZodUUID;
3404
- result: z__default.ZodEnum<{
3405
- NotAvailable: "NotAvailable";
3406
- FutureApproval: "FutureApproval";
3407
- WaitingForApproval: "WaitingForApproval";
3408
- Approved: "Approved";
3409
- Rejected: "Rejected";
3410
- Skipped: "Skipped";
3411
- Withdrawn: "Withdrawn";
3412
- Cancelled: "Cancelled";
3413
- }>;
3414
- resultComment: z__default.ZodOptional<z__default.ZodString>;
3415
- emailBody: z__default.ZodString;
3416
- }, z__default.core.$strip>;
3417
- type ApproveApproval = z__default.infer<typeof ApproveApprovalSchema>;
3418
- declare const ResubmitApprovalSchema: z__default.ZodObject<{
3419
- id: z__default.ZodUUID;
3420
- approvalFlows: z__default.ZodArray<z__default.ZodObject<{
3421
- stepApprovalOrder: z__default.ZodEnum<{
3422
- Serial: "Serial";
3423
- Parallel: "Parallel";
3424
- OneOfThem: "OneOfThem";
3425
- }>;
3426
- approvalStage: z__default.ZodNumber;
3427
- batchSequence: z__default.ZodOptional<z__default.ZodNumber>;
3428
- steps: z__default.ZodArray<z__default.ZodObject<{
3429
- approver: z__default.ZodObject<{
3430
- employeeId: z__default.ZodString;
3431
- name: z__default.ZodString;
3432
- email: z__default.ZodEmail;
3433
- }, z__default.core.$strip>;
3434
- approverRole: z__default.ZodOptional<z__default.ZodDefault<z__default.ZodString>>;
3435
- }, z__default.core.$strip>>;
3436
- }, z__default.core.$strip>>;
3437
- }, z__default.core.$strip>;
3438
- type ResubmitApproval = z__default.infer<typeof ResubmitApprovalSchema>;
3439
- declare const CancelApprovalSchema: z__default.ZodObject<{
3440
- id: z__default.ZodUUID;
3441
- comment: z__default.ZodString;
3442
- emailBody: z__default.ZodString;
3443
- }, z__default.core.$strip>;
3444
- type CancelApproval = z__default.infer<typeof CancelApprovalSchema>;
3445
- declare const WithdrawApprovalSchema: z__default.ZodObject<{
3446
- id: z__default.ZodUUID;
3447
- comment: z__default.ZodString;
3448
- emailBody: z__default.ZodString;
3449
- }, z__default.core.$strip>;
3450
- type WithdrawApproval = z__default.infer<typeof WithdrawApprovalSchema>;
3451
-
3452
- declare const ApprovalEmployeeSchema: z$1.ZodObject<{
3453
- employeeId: z$1.ZodString;
3454
- name: z$1.ZodString;
3455
- email: z$1.ZodEmail;
3456
- }, z$1.core.$strip>;
3457
- type ApprovalEmployee = z$1.infer<typeof ApprovalEmployeeSchema>;
3458
-
3459
- declare const ApprovalFlowSchema: z$1.ZodObject<{
3460
- id: z$1.ZodUUID;
3461
- approvalStage: z$1.ZodNumber;
3462
- batchSequence: z$1.ZodOptional<z$1.ZodNumber>;
3463
- approvalSequence: z$1.ZodNumber;
3464
- stepApprovalOrder: z$1.ZodEnum<{
3465
- Serial: "Serial";
3466
- Parallel: "Parallel";
3467
- OneOfThem: "OneOfThem";
3468
- }>;
3469
- steps: z$1.ZodArray<z$1.ZodCustom<{
3470
- id: string;
3471
- order: number;
3472
- approver: {
3473
- employeeId: string;
3474
- name: string;
3475
- email: string;
3476
- };
3477
- approverRole?: string | undefined;
3478
- actualApprover?: {
3479
- employeeId: string;
3480
- name: string;
3481
- email: string;
3482
- } | undefined;
3483
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
3484
- resultDate?: Date | undefined;
3485
- resultComment?: string | undefined;
3486
- }, {
3487
- id: string;
3488
- order: number;
3489
- approver: {
3490
- employeeId: string;
3491
- name: string;
3492
- email: string;
3493
- };
3494
- approverRole?: string | undefined;
3495
- actualApprover?: {
3496
- employeeId: string;
3497
- name: string;
3498
- email: string;
3499
- } | undefined;
3500
- result?: "NotAvailable" | "FutureApproval" | "WaitingForApproval" | "Approved" | "Rejected" | "Skipped" | "Withdrawn" | "Cancelled" | undefined;
3501
- resultDate?: Date | undefined;
3502
- resultComment?: string | undefined;
3503
- }>>;
3504
- isActive: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
3505
- }, z$1.core.$strip>;
3506
- type ApprovalFlow = z$1.infer<typeof ApprovalFlowSchema>;
3507
-
3508
- declare const ApprovalFlowStepSchema: z$1.ZodObject<{
3509
- id: z$1.ZodUUID;
3510
- order: z$1.ZodNumber;
3511
- approverRole: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodString>>;
3512
- approver: z$1.ZodObject<{
3513
- employeeId: z$1.ZodString;
3514
- name: z$1.ZodString;
3515
- email: z$1.ZodEmail;
3516
- }, z$1.core.$strip>;
3517
- actualApprover: z$1.ZodOptional<z$1.ZodObject<{
3518
- employeeId: z$1.ZodString;
3519
- name: z$1.ZodString;
3520
- email: z$1.ZodEmail;
3521
- }, z$1.core.$strip>>;
3522
- result: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodEnum<{
3523
- NotAvailable: "NotAvailable";
3524
- FutureApproval: "FutureApproval";
3525
- WaitingForApproval: "WaitingForApproval";
3526
- Approved: "Approved";
3527
- Rejected: "Rejected";
3528
- Skipped: "Skipped";
3529
- Withdrawn: "Withdrawn";
3530
- Cancelled: "Cancelled";
3531
- }>>>;
3532
- resultDate: z$1.ZodOptional<z$1.ZodDate>;
3533
- resultComment: z$1.ZodOptional<z$1.ZodString>;
3534
- }, z$1.core.$strip>;
3535
- type ApprovalFlowStep = z$1.infer<typeof ApprovalFlowStepSchema>;
3536
-
3537
- declare const ApprovalRequestType: z__default.ZodEnum<{
3538
- Single: "Single";
3539
- Batch: "Batch";
3540
- }>;
3541
-
3542
- declare const ApprovalStatus: z__default.ZodEnum<{
3543
- WaitingForApproval: "WaitingForApproval";
3544
- Approved: "Approved";
3545
- Rejected: "Rejected";
3546
- Withdrawn: "Withdrawn";
3547
- Cancelled: "Cancelled";
3548
- PartiallyApproved: "PartiallyApproved";
3549
- }>;
3550
-
3551
- declare const ApprovalStepResult: z__default.ZodEnum<{
3552
- NotAvailable: "NotAvailable";
3553
- FutureApproval: "FutureApproval";
3554
- WaitingForApproval: "WaitingForApproval";
3555
- Approved: "Approved";
3556
- Rejected: "Rejected";
3557
- Skipped: "Skipped";
3558
- Withdrawn: "Withdrawn";
3559
- Cancelled: "Cancelled";
3560
- }>;
3561
-
3562
- declare const StepApprovalOrder: z__default.ZodEnum<{
3563
- Serial: "Serial";
3564
- Parallel: "Parallel";
3565
- OneOfThem: "OneOfThem";
3566
- }>;
3567
-
3568
- export { type Approval, type ApprovalEmployee, ApprovalEmployeeSchema, type ApprovalFlow, ApprovalFlowSchema, type ApprovalFlowStep, ApprovalFlowStepSchema, ApprovalRequestType, ApprovalSchema, ApprovalStatus, ApprovalStepResult, type ApproveApproval, ApproveApprovalSchema, type CancelApproval, CancelApprovalSchema, ChipInputCell, type CreateApproval, CreateApprovalSchema, type Department, DepartmentSchema, type DialogProps, Dropzone, EditableColumnHeader, type Email, type EmailAttachment, EmailAttachmentSchema, EmailSchema, type Employee, EmployeeCategoryGroup, EmployeeSchema, EmployeeStatus, type FileMeta, FileMetaSchema, FileViewer, Fullscreen, type GetFileMetasParams, GetFileMetasParamsSchema, type GetFileParams, GetFileParamsSchema, type GetFileThumbnailParams, GetFileThumbnailParamsSchema, LayoutProvider, type Navigation, Platform, type ResubmitApproval, ResubmitApprovalSchema, RouterButton, RouterError, RouterGridActionsCellItem, RouterIconButton, RouterLink, RouterListItemButton, RouterNotFound, RouterTab, StepApprovalOrder, TypographyWithIcon, type User, WISTRON_PRIMARY_COLOR, WISTRON_SECONDARY_COLOR, type WithdrawApproval, WithdrawApprovalSchema, authClient, httpClient, rootRouteHead, useDeleteFile, useDeleteFiles, useDialogs, useDownloadFile, useFieldContext, useFormContext, useGetFile, useGetFileMetas, useGetFileThumbnail, useGetPeopleSoftActiveEmployees, useGetPeopleSoftCompanyGeneralManager, useGetPeopleSoftDepartmentById, useGetPeopleSoftDepartmentEmployees, useGetPeopleSoftDepartmentManager, useGetPeopleSoftDepartments, useGetPeopleSoftEmployeeById, useGetPeopleSoftEmployeeGeneralManager, useGetPeopleSoftEmployeeManager, useGetPeopleSoftEmployeeSubordinates, useGetPeopleSoftEmployeeSupervisor, useGetPeopleSoftEmployees, useGetPeopleSoftEmployeesSearch, useGetPeopleSoftPreviousEmployeeIds, useLayoutForm, useOpenFile, useUpdateFileMeta, useUploadFile, withLayoutForm };
30
+ export { LayoutProvider, type Navigation };