better-auth 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +3 -806
- package/dist/cli.js.map +1 -1
- package/dist/client/plugins.d.ts +62 -62
- package/dist/{client-CaF9eUcv.d.ts → client-A2Mt04KQ.d.ts} +34 -34
- package/dist/client.d.ts +95 -95
- package/dist/{index-CGeV0d2g.d.ts → index-W5nXvJ-p.d.ts} +12 -12
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -805
- package/dist/index.js.map +1 -1
- package/dist/next-js.d.ts +1 -1
- package/dist/plugins.d.ts +12 -12
- package/dist/react.d.ts +2 -2
- package/dist/solid-start.d.ts +1 -1
- package/dist/solid.d.ts +2 -2
- package/dist/svelte-kit.d.ts +1 -1
- package/dist/svelte.d.ts +2 -2
- package/dist/{type-tYx_kmry.d.ts → type-DbMyI3b5.d.ts} +297 -297
- package/dist/types.d.ts +1 -1
- package/dist/vue.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
2
2
|
import { BetterFetchResponse, BetterFetchOption, BetterFetch, BetterFetchPlugin } from '@better-fetch/fetch';
|
|
3
|
-
import { B as BetterAuthPlugin, a as BetterAuthOptions, F as FieldAttribute, I as InferFieldOutput, A as Auth } from './index-
|
|
3
|
+
import { B as BetterAuthPlugin, a as BetterAuthOptions, F as FieldAttribute, I as InferFieldOutput, A as Auth } from './index-W5nXvJ-p.js';
|
|
4
4
|
import * as nanostores from 'nanostores';
|
|
5
5
|
import { PreinitializedWritableAtom, Atom } from 'nanostores';
|
|
6
6
|
import * as zod from 'zod';
|
|
@@ -50,12 +50,12 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
50
50
|
}>>;
|
|
51
51
|
body: zod.ZodObject<{
|
|
52
52
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
53
|
-
provider: zod.ZodEnum<["github", ...("
|
|
53
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
54
54
|
}, "strip", zod.ZodTypeAny, {
|
|
55
|
-
provider: "
|
|
55
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
56
56
|
callbackURL?: string | undefined;
|
|
57
57
|
}, {
|
|
58
|
-
provider: "
|
|
58
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
59
59
|
callbackURL?: string | undefined;
|
|
60
60
|
}>;
|
|
61
61
|
}>): Promise<{
|
|
@@ -77,12 +77,12 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
77
77
|
}>>;
|
|
78
78
|
body: zod.ZodObject<{
|
|
79
79
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
80
|
-
provider: zod.ZodEnum<["github", ...("
|
|
80
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
81
81
|
}, "strip", zod.ZodTypeAny, {
|
|
82
|
-
provider: "
|
|
82
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
83
83
|
callbackURL?: string | undefined;
|
|
84
84
|
}, {
|
|
85
|
-
provider: "
|
|
85
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
86
86
|
callbackURL?: string | undefined;
|
|
87
87
|
}>;
|
|
88
88
|
};
|
|
@@ -216,17 +216,17 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
216
216
|
image: zod.ZodOptional<zod.ZodString>;
|
|
217
217
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
218
218
|
}, "strip", zod.ZodTypeAny, {
|
|
219
|
+
password: string;
|
|
219
220
|
name: string;
|
|
220
221
|
email: string;
|
|
221
|
-
password: string;
|
|
222
|
-
callbackURL?: string | undefined;
|
|
223
222
|
image?: string | undefined;
|
|
223
|
+
callbackURL?: string | undefined;
|
|
224
224
|
}, {
|
|
225
|
+
password: string;
|
|
225
226
|
name: string;
|
|
226
227
|
email: string;
|
|
227
|
-
password: string;
|
|
228
|
-
callbackURL?: string | undefined;
|
|
229
228
|
image?: string | undefined;
|
|
229
|
+
callbackURL?: string | undefined;
|
|
230
230
|
}>;
|
|
231
231
|
}>): Promise<{
|
|
232
232
|
user: {
|
|
@@ -256,17 +256,17 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
256
256
|
image: zod.ZodOptional<zod.ZodString>;
|
|
257
257
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
258
258
|
}, "strip", zod.ZodTypeAny, {
|
|
259
|
+
password: string;
|
|
259
260
|
name: string;
|
|
260
261
|
email: string;
|
|
261
|
-
password: string;
|
|
262
|
-
callbackURL?: string | undefined;
|
|
263
262
|
image?: string | undefined;
|
|
263
|
+
callbackURL?: string | undefined;
|
|
264
264
|
}, {
|
|
265
|
+
password: string;
|
|
265
266
|
name: string;
|
|
266
267
|
email: string;
|
|
267
|
-
password: string;
|
|
268
|
-
callbackURL?: string | undefined;
|
|
269
268
|
image?: string | undefined;
|
|
269
|
+
callbackURL?: string | undefined;
|
|
270
270
|
}>;
|
|
271
271
|
};
|
|
272
272
|
method: better_call.Method | better_call.Method[];
|
|
@@ -281,13 +281,13 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
281
281
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
282
282
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
283
283
|
}, "strip", zod.ZodTypeAny, {
|
|
284
|
-
email: string;
|
|
285
284
|
password: string;
|
|
285
|
+
email: string;
|
|
286
286
|
callbackURL?: string | undefined;
|
|
287
287
|
dontRememberMe?: boolean | undefined;
|
|
288
288
|
}, {
|
|
289
|
-
email: string;
|
|
290
289
|
password: string;
|
|
290
|
+
email: string;
|
|
291
291
|
callbackURL?: string | undefined;
|
|
292
292
|
dontRememberMe?: boolean | undefined;
|
|
293
293
|
}>;
|
|
@@ -320,13 +320,13 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
320
320
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
321
321
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
322
322
|
}, "strip", zod.ZodTypeAny, {
|
|
323
|
-
email: string;
|
|
324
323
|
password: string;
|
|
324
|
+
email: string;
|
|
325
325
|
callbackURL?: string | undefined;
|
|
326
326
|
dontRememberMe?: boolean | undefined;
|
|
327
327
|
}, {
|
|
328
|
-
email: string;
|
|
329
328
|
password: string;
|
|
329
|
+
email: string;
|
|
330
330
|
callbackURL?: string | undefined;
|
|
331
331
|
dontRememberMe?: boolean | undefined;
|
|
332
332
|
}>;
|
|
@@ -411,11 +411,11 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
411
411
|
token: zod.ZodString;
|
|
412
412
|
callbackURL: zod.ZodString;
|
|
413
413
|
}, "strip", zod.ZodTypeAny, {
|
|
414
|
-
callbackURL: string;
|
|
415
414
|
token: string;
|
|
416
|
-
}, {
|
|
417
415
|
callbackURL: string;
|
|
416
|
+
}, {
|
|
418
417
|
token: string;
|
|
418
|
+
callbackURL: string;
|
|
419
419
|
}>;
|
|
420
420
|
}>): Promise<{
|
|
421
421
|
status: boolean;
|
|
@@ -427,11 +427,11 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
427
427
|
token: zod.ZodString;
|
|
428
428
|
callbackURL: zod.ZodString;
|
|
429
429
|
}, "strip", zod.ZodTypeAny, {
|
|
430
|
-
callbackURL: string;
|
|
431
430
|
token: string;
|
|
432
|
-
}, {
|
|
433
431
|
callbackURL: string;
|
|
432
|
+
}, {
|
|
434
433
|
token: string;
|
|
434
|
+
callbackURL: string;
|
|
435
435
|
}>;
|
|
436
436
|
};
|
|
437
437
|
method: better_call.Method | better_call.Method[];
|
|
@@ -484,12 +484,12 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
484
484
|
}>>;
|
|
485
485
|
body: zod.ZodObject<{
|
|
486
486
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
487
|
-
provider: zod.ZodEnum<["github", ...("
|
|
487
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
488
488
|
}, "strip", zod.ZodTypeAny, {
|
|
489
|
-
provider: "
|
|
489
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
490
490
|
callbackURL?: string | undefined;
|
|
491
491
|
}, {
|
|
492
|
-
provider: "
|
|
492
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
493
493
|
callbackURL?: string | undefined;
|
|
494
494
|
}>;
|
|
495
495
|
}>): Promise<{
|
|
@@ -511,12 +511,12 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
511
511
|
}>>;
|
|
512
512
|
body: zod.ZodObject<{
|
|
513
513
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
514
|
-
provider: zod.ZodEnum<["github", ...("
|
|
514
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
515
515
|
}, "strip", zod.ZodTypeAny, {
|
|
516
|
-
provider: "
|
|
516
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
517
517
|
callbackURL?: string | undefined;
|
|
518
518
|
}, {
|
|
519
|
-
provider: "
|
|
519
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
520
520
|
callbackURL?: string | undefined;
|
|
521
521
|
}>;
|
|
522
522
|
};
|
|
@@ -650,17 +650,17 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
650
650
|
image: zod.ZodOptional<zod.ZodString>;
|
|
651
651
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
652
652
|
}, "strip", zod.ZodTypeAny, {
|
|
653
|
+
password: string;
|
|
653
654
|
name: string;
|
|
654
655
|
email: string;
|
|
655
|
-
password: string;
|
|
656
|
-
callbackURL?: string | undefined;
|
|
657
656
|
image?: string | undefined;
|
|
657
|
+
callbackURL?: string | undefined;
|
|
658
658
|
}, {
|
|
659
|
+
password: string;
|
|
659
660
|
name: string;
|
|
660
661
|
email: string;
|
|
661
|
-
password: string;
|
|
662
|
-
callbackURL?: string | undefined;
|
|
663
662
|
image?: string | undefined;
|
|
663
|
+
callbackURL?: string | undefined;
|
|
664
664
|
}>;
|
|
665
665
|
}>): Promise<{
|
|
666
666
|
user: {
|
|
@@ -690,17 +690,17 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
690
690
|
image: zod.ZodOptional<zod.ZodString>;
|
|
691
691
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
692
692
|
}, "strip", zod.ZodTypeAny, {
|
|
693
|
+
password: string;
|
|
693
694
|
name: string;
|
|
694
695
|
email: string;
|
|
695
|
-
password: string;
|
|
696
|
-
callbackURL?: string | undefined;
|
|
697
696
|
image?: string | undefined;
|
|
697
|
+
callbackURL?: string | undefined;
|
|
698
698
|
}, {
|
|
699
|
+
password: string;
|
|
699
700
|
name: string;
|
|
700
701
|
email: string;
|
|
701
|
-
password: string;
|
|
702
|
-
callbackURL?: string | undefined;
|
|
703
702
|
image?: string | undefined;
|
|
703
|
+
callbackURL?: string | undefined;
|
|
704
704
|
}>;
|
|
705
705
|
};
|
|
706
706
|
method: better_call.Method | better_call.Method[];
|
|
@@ -715,13 +715,13 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
715
715
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
716
716
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
717
717
|
}, "strip", zod.ZodTypeAny, {
|
|
718
|
-
email: string;
|
|
719
718
|
password: string;
|
|
719
|
+
email: string;
|
|
720
720
|
callbackURL?: string | undefined;
|
|
721
721
|
dontRememberMe?: boolean | undefined;
|
|
722
722
|
}, {
|
|
723
|
-
email: string;
|
|
724
723
|
password: string;
|
|
724
|
+
email: string;
|
|
725
725
|
callbackURL?: string | undefined;
|
|
726
726
|
dontRememberMe?: boolean | undefined;
|
|
727
727
|
}>;
|
|
@@ -754,13 +754,13 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
754
754
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
755
755
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
756
756
|
}, "strip", zod.ZodTypeAny, {
|
|
757
|
-
email: string;
|
|
758
757
|
password: string;
|
|
758
|
+
email: string;
|
|
759
759
|
callbackURL?: string | undefined;
|
|
760
760
|
dontRememberMe?: boolean | undefined;
|
|
761
761
|
}, {
|
|
762
|
-
email: string;
|
|
763
762
|
password: string;
|
|
763
|
+
email: string;
|
|
764
764
|
callbackURL?: string | undefined;
|
|
765
765
|
dontRememberMe?: boolean | undefined;
|
|
766
766
|
}>;
|
|
@@ -845,11 +845,11 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
845
845
|
token: zod.ZodString;
|
|
846
846
|
callbackURL: zod.ZodString;
|
|
847
847
|
}, "strip", zod.ZodTypeAny, {
|
|
848
|
-
callbackURL: string;
|
|
849
848
|
token: string;
|
|
850
|
-
}, {
|
|
851
849
|
callbackURL: string;
|
|
850
|
+
}, {
|
|
852
851
|
token: string;
|
|
852
|
+
callbackURL: string;
|
|
853
853
|
}>;
|
|
854
854
|
}>): Promise<{
|
|
855
855
|
status: boolean;
|
|
@@ -861,11 +861,11 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
861
861
|
token: zod.ZodString;
|
|
862
862
|
callbackURL: zod.ZodString;
|
|
863
863
|
}, "strip", zod.ZodTypeAny, {
|
|
864
|
-
callbackURL: string;
|
|
865
864
|
token: string;
|
|
866
|
-
}, {
|
|
867
865
|
callbackURL: string;
|
|
866
|
+
}, {
|
|
868
867
|
token: string;
|
|
868
|
+
callbackURL: string;
|
|
869
869
|
}>;
|
|
870
870
|
};
|
|
871
871
|
method: better_call.Method | better_call.Method[];
|
|
@@ -920,12 +920,12 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
920
920
|
}>>;
|
|
921
921
|
body: zod.ZodObject<{
|
|
922
922
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
923
|
-
provider: zod.ZodEnum<["github", ...("
|
|
923
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
924
924
|
}, "strip", zod.ZodTypeAny, {
|
|
925
|
-
provider: "
|
|
925
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
926
926
|
callbackURL?: string | undefined;
|
|
927
927
|
}, {
|
|
928
|
-
provider: "
|
|
928
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
929
929
|
callbackURL?: string | undefined;
|
|
930
930
|
}>;
|
|
931
931
|
}>): Promise<{
|
|
@@ -947,12 +947,12 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
947
947
|
}>>;
|
|
948
948
|
body: zod.ZodObject<{
|
|
949
949
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
950
|
-
provider: zod.ZodEnum<["github", ...("
|
|
950
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
951
951
|
}, "strip", zod.ZodTypeAny, {
|
|
952
|
-
provider: "
|
|
952
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
953
953
|
callbackURL?: string | undefined;
|
|
954
954
|
}, {
|
|
955
|
-
provider: "
|
|
955
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
956
956
|
callbackURL?: string | undefined;
|
|
957
957
|
}>;
|
|
958
958
|
};
|
|
@@ -1086,17 +1086,17 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
1086
1086
|
image: zod.ZodOptional<zod.ZodString>;
|
|
1087
1087
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
1088
1088
|
}, "strip", zod.ZodTypeAny, {
|
|
1089
|
+
password: string;
|
|
1089
1090
|
name: string;
|
|
1090
1091
|
email: string;
|
|
1091
|
-
password: string;
|
|
1092
|
-
callbackURL?: string | undefined;
|
|
1093
1092
|
image?: string | undefined;
|
|
1093
|
+
callbackURL?: string | undefined;
|
|
1094
1094
|
}, {
|
|
1095
|
+
password: string;
|
|
1095
1096
|
name: string;
|
|
1096
1097
|
email: string;
|
|
1097
|
-
password: string;
|
|
1098
|
-
callbackURL?: string | undefined;
|
|
1099
1098
|
image?: string | undefined;
|
|
1099
|
+
callbackURL?: string | undefined;
|
|
1100
1100
|
}>;
|
|
1101
1101
|
}>): Promise<{
|
|
1102
1102
|
user: {
|
|
@@ -1126,17 +1126,17 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
1126
1126
|
image: zod.ZodOptional<zod.ZodString>;
|
|
1127
1127
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
1128
1128
|
}, "strip", zod.ZodTypeAny, {
|
|
1129
|
+
password: string;
|
|
1129
1130
|
name: string;
|
|
1130
1131
|
email: string;
|
|
1131
|
-
password: string;
|
|
1132
|
-
callbackURL?: string | undefined;
|
|
1133
1132
|
image?: string | undefined;
|
|
1133
|
+
callbackURL?: string | undefined;
|
|
1134
1134
|
}, {
|
|
1135
|
+
password: string;
|
|
1135
1136
|
name: string;
|
|
1136
1137
|
email: string;
|
|
1137
|
-
password: string;
|
|
1138
|
-
callbackURL?: string | undefined;
|
|
1139
1138
|
image?: string | undefined;
|
|
1139
|
+
callbackURL?: string | undefined;
|
|
1140
1140
|
}>;
|
|
1141
1141
|
};
|
|
1142
1142
|
method: better_call.Method | better_call.Method[];
|
|
@@ -1151,13 +1151,13 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
1151
1151
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
1152
1152
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
1153
1153
|
}, "strip", zod.ZodTypeAny, {
|
|
1154
|
-
email: string;
|
|
1155
1154
|
password: string;
|
|
1155
|
+
email: string;
|
|
1156
1156
|
callbackURL?: string | undefined;
|
|
1157
1157
|
dontRememberMe?: boolean | undefined;
|
|
1158
1158
|
}, {
|
|
1159
|
-
email: string;
|
|
1160
1159
|
password: string;
|
|
1160
|
+
email: string;
|
|
1161
1161
|
callbackURL?: string | undefined;
|
|
1162
1162
|
dontRememberMe?: boolean | undefined;
|
|
1163
1163
|
}>;
|
|
@@ -1190,13 +1190,13 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
1190
1190
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
1191
1191
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
1192
1192
|
}, "strip", zod.ZodTypeAny, {
|
|
1193
|
-
email: string;
|
|
1194
1193
|
password: string;
|
|
1194
|
+
email: string;
|
|
1195
1195
|
callbackURL?: string | undefined;
|
|
1196
1196
|
dontRememberMe?: boolean | undefined;
|
|
1197
1197
|
}, {
|
|
1198
|
-
email: string;
|
|
1199
1198
|
password: string;
|
|
1199
|
+
email: string;
|
|
1200
1200
|
callbackURL?: string | undefined;
|
|
1201
1201
|
dontRememberMe?: boolean | undefined;
|
|
1202
1202
|
}>;
|
|
@@ -1281,11 +1281,11 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
1281
1281
|
token: zod.ZodString;
|
|
1282
1282
|
callbackURL: zod.ZodString;
|
|
1283
1283
|
}, "strip", zod.ZodTypeAny, {
|
|
1284
|
-
callbackURL: string;
|
|
1285
1284
|
token: string;
|
|
1286
|
-
}, {
|
|
1287
1285
|
callbackURL: string;
|
|
1286
|
+
}, {
|
|
1288
1287
|
token: string;
|
|
1288
|
+
callbackURL: string;
|
|
1289
1289
|
}>;
|
|
1290
1290
|
}>): Promise<{
|
|
1291
1291
|
status: boolean;
|
|
@@ -1297,11 +1297,11 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
1297
1297
|
token: zod.ZodString;
|
|
1298
1298
|
callbackURL: zod.ZodString;
|
|
1299
1299
|
}, "strip", zod.ZodTypeAny, {
|
|
1300
|
-
callbackURL: string;
|
|
1301
1300
|
token: string;
|
|
1302
|
-
}, {
|
|
1303
1301
|
callbackURL: string;
|
|
1302
|
+
}, {
|
|
1304
1303
|
token: string;
|
|
1304
|
+
callbackURL: string;
|
|
1305
1305
|
}>;
|
|
1306
1306
|
};
|
|
1307
1307
|
method: better_call.Method | better_call.Method[];
|
|
@@ -1354,12 +1354,12 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
1354
1354
|
}>>;
|
|
1355
1355
|
body: zod.ZodObject<{
|
|
1356
1356
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
1357
|
-
provider: zod.ZodEnum<["github", ...("
|
|
1357
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
1358
1358
|
}, "strip", zod.ZodTypeAny, {
|
|
1359
|
-
provider: "
|
|
1359
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
1360
1360
|
callbackURL?: string | undefined;
|
|
1361
1361
|
}, {
|
|
1362
|
-
provider: "
|
|
1362
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
1363
1363
|
callbackURL?: string | undefined;
|
|
1364
1364
|
}>;
|
|
1365
1365
|
}>): Promise<{
|
|
@@ -1381,12 +1381,12 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
1381
1381
|
}>>;
|
|
1382
1382
|
body: zod.ZodObject<{
|
|
1383
1383
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
1384
|
-
provider: zod.ZodEnum<["github", ...("
|
|
1384
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
1385
1385
|
}, "strip", zod.ZodTypeAny, {
|
|
1386
|
-
provider: "
|
|
1386
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
1387
1387
|
callbackURL?: string | undefined;
|
|
1388
1388
|
}, {
|
|
1389
|
-
provider: "
|
|
1389
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
1390
1390
|
callbackURL?: string | undefined;
|
|
1391
1391
|
}>;
|
|
1392
1392
|
};
|
|
@@ -1520,17 +1520,17 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
1520
1520
|
image: zod.ZodOptional<zod.ZodString>;
|
|
1521
1521
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
1522
1522
|
}, "strip", zod.ZodTypeAny, {
|
|
1523
|
+
password: string;
|
|
1523
1524
|
name: string;
|
|
1524
1525
|
email: string;
|
|
1525
|
-
password: string;
|
|
1526
|
-
callbackURL?: string | undefined;
|
|
1527
1526
|
image?: string | undefined;
|
|
1527
|
+
callbackURL?: string | undefined;
|
|
1528
1528
|
}, {
|
|
1529
|
+
password: string;
|
|
1529
1530
|
name: string;
|
|
1530
1531
|
email: string;
|
|
1531
|
-
password: string;
|
|
1532
|
-
callbackURL?: string | undefined;
|
|
1533
1532
|
image?: string | undefined;
|
|
1533
|
+
callbackURL?: string | undefined;
|
|
1534
1534
|
}>;
|
|
1535
1535
|
}>): Promise<{
|
|
1536
1536
|
user: {
|
|
@@ -1560,17 +1560,17 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
1560
1560
|
image: zod.ZodOptional<zod.ZodString>;
|
|
1561
1561
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
1562
1562
|
}, "strip", zod.ZodTypeAny, {
|
|
1563
|
+
password: string;
|
|
1563
1564
|
name: string;
|
|
1564
1565
|
email: string;
|
|
1565
|
-
password: string;
|
|
1566
|
-
callbackURL?: string | undefined;
|
|
1567
1566
|
image?: string | undefined;
|
|
1567
|
+
callbackURL?: string | undefined;
|
|
1568
1568
|
}, {
|
|
1569
|
+
password: string;
|
|
1569
1570
|
name: string;
|
|
1570
1571
|
email: string;
|
|
1571
|
-
password: string;
|
|
1572
|
-
callbackURL?: string | undefined;
|
|
1573
1572
|
image?: string | undefined;
|
|
1573
|
+
callbackURL?: string | undefined;
|
|
1574
1574
|
}>;
|
|
1575
1575
|
};
|
|
1576
1576
|
method: better_call.Method | better_call.Method[];
|
|
@@ -1585,13 +1585,13 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
1585
1585
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
1586
1586
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
1587
1587
|
}, "strip", zod.ZodTypeAny, {
|
|
1588
|
-
email: string;
|
|
1589
1588
|
password: string;
|
|
1589
|
+
email: string;
|
|
1590
1590
|
callbackURL?: string | undefined;
|
|
1591
1591
|
dontRememberMe?: boolean | undefined;
|
|
1592
1592
|
}, {
|
|
1593
|
-
email: string;
|
|
1594
1593
|
password: string;
|
|
1594
|
+
email: string;
|
|
1595
1595
|
callbackURL?: string | undefined;
|
|
1596
1596
|
dontRememberMe?: boolean | undefined;
|
|
1597
1597
|
}>;
|
|
@@ -1624,13 +1624,13 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
1624
1624
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
1625
1625
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
1626
1626
|
}, "strip", zod.ZodTypeAny, {
|
|
1627
|
-
email: string;
|
|
1628
1627
|
password: string;
|
|
1628
|
+
email: string;
|
|
1629
1629
|
callbackURL?: string | undefined;
|
|
1630
1630
|
dontRememberMe?: boolean | undefined;
|
|
1631
1631
|
}, {
|
|
1632
|
-
email: string;
|
|
1633
1632
|
password: string;
|
|
1633
|
+
email: string;
|
|
1634
1634
|
callbackURL?: string | undefined;
|
|
1635
1635
|
dontRememberMe?: boolean | undefined;
|
|
1636
1636
|
}>;
|
|
@@ -1715,11 +1715,11 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
1715
1715
|
token: zod.ZodString;
|
|
1716
1716
|
callbackURL: zod.ZodString;
|
|
1717
1717
|
}, "strip", zod.ZodTypeAny, {
|
|
1718
|
-
callbackURL: string;
|
|
1719
1718
|
token: string;
|
|
1720
|
-
}, {
|
|
1721
1719
|
callbackURL: string;
|
|
1720
|
+
}, {
|
|
1722
1721
|
token: string;
|
|
1722
|
+
callbackURL: string;
|
|
1723
1723
|
}>;
|
|
1724
1724
|
}>): Promise<{
|
|
1725
1725
|
status: boolean;
|
|
@@ -1731,11 +1731,11 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
1731
1731
|
token: zod.ZodString;
|
|
1732
1732
|
callbackURL: zod.ZodString;
|
|
1733
1733
|
}, "strip", zod.ZodTypeAny, {
|
|
1734
|
-
callbackURL: string;
|
|
1735
1734
|
token: string;
|
|
1736
|
-
}, {
|
|
1737
1735
|
callbackURL: string;
|
|
1736
|
+
}, {
|
|
1738
1737
|
token: string;
|
|
1738
|
+
callbackURL: string;
|
|
1739
1739
|
}>;
|
|
1740
1740
|
};
|
|
1741
1741
|
method: better_call.Method | better_call.Method[];
|
|
@@ -1780,19 +1780,19 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
1780
1780
|
onClient: "hide";
|
|
1781
1781
|
} ? {} : PathToObject<T_1["path"], T_1 extends (ctx: infer C) => infer R ? C extends better_call.Context<any, any> ? (...data: HasRequiredKeys<C["body"] extends Record<string, any> ? C["body"] & {
|
|
1782
1782
|
options?: {
|
|
1783
|
-
cache?: RequestCache | undefined;
|
|
1784
|
-
credentials?: RequestCredentials | undefined;
|
|
1785
1783
|
headers?: (HeadersInit & (HeadersInit | {
|
|
1786
1784
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1787
1785
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1788
1786
|
authorization: "Bearer" | "Basic";
|
|
1789
1787
|
})) | undefined;
|
|
1788
|
+
redirect?: RequestRedirect | undefined;
|
|
1789
|
+
method?: string | undefined;
|
|
1790
|
+
cache?: RequestCache | undefined;
|
|
1791
|
+
credentials?: RequestCredentials | undefined;
|
|
1790
1792
|
integrity?: string | undefined;
|
|
1791
1793
|
keepalive?: boolean | undefined;
|
|
1792
|
-
method?: string | undefined;
|
|
1793
1794
|
mode?: RequestMode | undefined;
|
|
1794
1795
|
priority?: RequestPriority | undefined;
|
|
1795
|
-
redirect?: RequestRedirect | undefined;
|
|
1796
1796
|
referrer?: string | undefined;
|
|
1797
1797
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1798
1798
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -1847,19 +1847,19 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
1847
1847
|
} : C["query"] extends Record<string, any> ? {
|
|
1848
1848
|
query: C["query"];
|
|
1849
1849
|
options?: Omit<{
|
|
1850
|
-
cache?: RequestCache | undefined;
|
|
1851
|
-
credentials?: RequestCredentials | undefined;
|
|
1852
1850
|
headers?: (HeadersInit & (HeadersInit | {
|
|
1853
1851
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1854
1852
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1855
1853
|
authorization: "Bearer" | "Basic";
|
|
1856
1854
|
})) | undefined;
|
|
1855
|
+
redirect?: RequestRedirect | undefined;
|
|
1856
|
+
method?: string | undefined;
|
|
1857
|
+
cache?: RequestCache | undefined;
|
|
1858
|
+
credentials?: RequestCredentials | undefined;
|
|
1857
1859
|
integrity?: string | undefined;
|
|
1858
1860
|
keepalive?: boolean | undefined;
|
|
1859
|
-
method?: string | undefined;
|
|
1860
1861
|
mode?: RequestMode | undefined;
|
|
1861
1862
|
priority?: RequestPriority | undefined;
|
|
1862
|
-
redirect?: RequestRedirect | undefined;
|
|
1863
1863
|
referrer?: string | undefined;
|
|
1864
1864
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1865
1865
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -1913,19 +1913,19 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
1913
1913
|
}, "query"> | undefined;
|
|
1914
1914
|
} : {
|
|
1915
1915
|
options?: {
|
|
1916
|
-
cache?: RequestCache | undefined;
|
|
1917
|
-
credentials?: RequestCredentials | undefined;
|
|
1918
1916
|
headers?: (HeadersInit & (HeadersInit | {
|
|
1919
1917
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1920
1918
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1921
1919
|
authorization: "Bearer" | "Basic";
|
|
1922
1920
|
})) | undefined;
|
|
1921
|
+
redirect?: RequestRedirect | undefined;
|
|
1922
|
+
method?: string | undefined;
|
|
1923
|
+
cache?: RequestCache | undefined;
|
|
1924
|
+
credentials?: RequestCredentials | undefined;
|
|
1923
1925
|
integrity?: string | undefined;
|
|
1924
1926
|
keepalive?: boolean | undefined;
|
|
1925
|
-
method?: string | undefined;
|
|
1926
1927
|
mode?: RequestMode | undefined;
|
|
1927
1928
|
priority?: RequestPriority | undefined;
|
|
1928
|
-
redirect?: RequestRedirect | undefined;
|
|
1929
1929
|
referrer?: string | undefined;
|
|
1930
1930
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1931
1931
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -1979,19 +1979,19 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
1979
1979
|
} | undefined;
|
|
1980
1980
|
}> extends true ? [Prettify<C["body"] extends Record<string, any> ? C["body"] & {
|
|
1981
1981
|
options?: {
|
|
1982
|
-
cache?: RequestCache | undefined;
|
|
1983
|
-
credentials?: RequestCredentials | undefined;
|
|
1984
1982
|
headers?: (HeadersInit & (HeadersInit | {
|
|
1985
1983
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1986
1984
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1987
1985
|
authorization: "Bearer" | "Basic";
|
|
1988
1986
|
})) | undefined;
|
|
1987
|
+
redirect?: RequestRedirect | undefined;
|
|
1988
|
+
method?: string | undefined;
|
|
1989
|
+
cache?: RequestCache | undefined;
|
|
1990
|
+
credentials?: RequestCredentials | undefined;
|
|
1989
1991
|
integrity?: string | undefined;
|
|
1990
1992
|
keepalive?: boolean | undefined;
|
|
1991
|
-
method?: string | undefined;
|
|
1992
1993
|
mode?: RequestMode | undefined;
|
|
1993
1994
|
priority?: RequestPriority | undefined;
|
|
1994
|
-
redirect?: RequestRedirect | undefined;
|
|
1995
1995
|
referrer?: string | undefined;
|
|
1996
1996
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1997
1997
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -2046,19 +2046,19 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
2046
2046
|
} : C["query"] extends Record<string, any> ? {
|
|
2047
2047
|
query: C["query"];
|
|
2048
2048
|
options?: Omit<{
|
|
2049
|
-
cache?: RequestCache | undefined;
|
|
2050
|
-
credentials?: RequestCredentials | undefined;
|
|
2051
2049
|
headers?: (HeadersInit & (HeadersInit | {
|
|
2052
2050
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2053
2051
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2054
2052
|
authorization: "Bearer" | "Basic";
|
|
2055
2053
|
})) | undefined;
|
|
2054
|
+
redirect?: RequestRedirect | undefined;
|
|
2055
|
+
method?: string | undefined;
|
|
2056
|
+
cache?: RequestCache | undefined;
|
|
2057
|
+
credentials?: RequestCredentials | undefined;
|
|
2056
2058
|
integrity?: string | undefined;
|
|
2057
2059
|
keepalive?: boolean | undefined;
|
|
2058
|
-
method?: string | undefined;
|
|
2059
2060
|
mode?: RequestMode | undefined;
|
|
2060
2061
|
priority?: RequestPriority | undefined;
|
|
2061
|
-
redirect?: RequestRedirect | undefined;
|
|
2062
2062
|
referrer?: string | undefined;
|
|
2063
2063
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
2064
2064
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -2112,19 +2112,19 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
2112
2112
|
}, "query"> | undefined;
|
|
2113
2113
|
} : {
|
|
2114
2114
|
options?: {
|
|
2115
|
-
cache?: RequestCache | undefined;
|
|
2116
|
-
credentials?: RequestCredentials | undefined;
|
|
2117
2115
|
headers?: (HeadersInit & (HeadersInit | {
|
|
2118
2116
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2119
2117
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2120
2118
|
authorization: "Bearer" | "Basic";
|
|
2121
2119
|
})) | undefined;
|
|
2120
|
+
redirect?: RequestRedirect | undefined;
|
|
2121
|
+
method?: string | undefined;
|
|
2122
|
+
cache?: RequestCache | undefined;
|
|
2123
|
+
credentials?: RequestCredentials | undefined;
|
|
2122
2124
|
integrity?: string | undefined;
|
|
2123
2125
|
keepalive?: boolean | undefined;
|
|
2124
|
-
method?: string | undefined;
|
|
2125
2126
|
mode?: RequestMode | undefined;
|
|
2126
2127
|
priority?: RequestPriority | undefined;
|
|
2127
|
-
redirect?: RequestRedirect | undefined;
|
|
2128
2128
|
referrer?: string | undefined;
|
|
2129
2129
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
2130
2130
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -2178,19 +2178,19 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
2178
2178
|
} | undefined;
|
|
2179
2179
|
}>] : [Prettify<C["body"] extends Record<string, any> ? C["body"] & {
|
|
2180
2180
|
options?: {
|
|
2181
|
-
cache?: RequestCache | undefined;
|
|
2182
|
-
credentials?: RequestCredentials | undefined;
|
|
2183
2181
|
headers?: (HeadersInit & (HeadersInit | {
|
|
2184
2182
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2185
2183
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2186
2184
|
authorization: "Bearer" | "Basic";
|
|
2187
2185
|
})) | undefined;
|
|
2186
|
+
redirect?: RequestRedirect | undefined;
|
|
2187
|
+
method?: string | undefined;
|
|
2188
|
+
cache?: RequestCache | undefined;
|
|
2189
|
+
credentials?: RequestCredentials | undefined;
|
|
2188
2190
|
integrity?: string | undefined;
|
|
2189
2191
|
keepalive?: boolean | undefined;
|
|
2190
|
-
method?: string | undefined;
|
|
2191
2192
|
mode?: RequestMode | undefined;
|
|
2192
2193
|
priority?: RequestPriority | undefined;
|
|
2193
|
-
redirect?: RequestRedirect | undefined;
|
|
2194
2194
|
referrer?: string | undefined;
|
|
2195
2195
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
2196
2196
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -2245,19 +2245,19 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
2245
2245
|
} : C["query"] extends Record<string, any> ? {
|
|
2246
2246
|
query: C["query"];
|
|
2247
2247
|
options?: Omit<{
|
|
2248
|
-
cache?: RequestCache | undefined;
|
|
2249
|
-
credentials?: RequestCredentials | undefined;
|
|
2250
2248
|
headers?: (HeadersInit & (HeadersInit | {
|
|
2251
2249
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2252
2250
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2253
2251
|
authorization: "Bearer" | "Basic";
|
|
2254
2252
|
})) | undefined;
|
|
2253
|
+
redirect?: RequestRedirect | undefined;
|
|
2254
|
+
method?: string | undefined;
|
|
2255
|
+
cache?: RequestCache | undefined;
|
|
2256
|
+
credentials?: RequestCredentials | undefined;
|
|
2255
2257
|
integrity?: string | undefined;
|
|
2256
2258
|
keepalive?: boolean | undefined;
|
|
2257
|
-
method?: string | undefined;
|
|
2258
2259
|
mode?: RequestMode | undefined;
|
|
2259
2260
|
priority?: RequestPriority | undefined;
|
|
2260
|
-
redirect?: RequestRedirect | undefined;
|
|
2261
2261
|
referrer?: string | undefined;
|
|
2262
2262
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
2263
2263
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -2311,19 +2311,19 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
2311
2311
|
}, "query"> | undefined;
|
|
2312
2312
|
} : {
|
|
2313
2313
|
options?: {
|
|
2314
|
-
cache?: RequestCache | undefined;
|
|
2315
|
-
credentials?: RequestCredentials | undefined;
|
|
2316
2314
|
headers?: (HeadersInit & (HeadersInit | {
|
|
2317
2315
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2318
2316
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2319
2317
|
authorization: "Bearer" | "Basic";
|
|
2320
2318
|
})) | undefined;
|
|
2319
|
+
redirect?: RequestRedirect | undefined;
|
|
2320
|
+
method?: string | undefined;
|
|
2321
|
+
cache?: RequestCache | undefined;
|
|
2322
|
+
credentials?: RequestCredentials | undefined;
|
|
2321
2323
|
integrity?: string | undefined;
|
|
2322
2324
|
keepalive?: boolean | undefined;
|
|
2323
|
-
method?: string | undefined;
|
|
2324
2325
|
mode?: RequestMode | undefined;
|
|
2325
2326
|
priority?: RequestPriority | undefined;
|
|
2326
|
-
redirect?: RequestRedirect | undefined;
|
|
2327
2327
|
referrer?: string | undefined;
|
|
2328
2328
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
2329
2329
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -2485,22 +2485,34 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
2485
2485
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
2486
2486
|
baseURL: string;
|
|
2487
2487
|
plugins: (_better_fetch_fetch.BetterFetchPlugin | {
|
|
2488
|
+
id: string;
|
|
2489
|
+
name: string;
|
|
2490
|
+
hooks: {
|
|
2491
|
+
onSuccess(context: _better_fetch_fetch.SuccessContext): void;
|
|
2492
|
+
};
|
|
2493
|
+
} | {
|
|
2494
|
+
id: string;
|
|
2495
|
+
name: string;
|
|
2496
|
+
hooks: {
|
|
2497
|
+
onRequest<T_9 extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T_9>): _better_fetch_fetch.RequestContext<T_9>;
|
|
2498
|
+
};
|
|
2499
|
+
} | {
|
|
2488
2500
|
id: string;
|
|
2489
2501
|
name: string;
|
|
2490
2502
|
init(url: string, options: {
|
|
2491
|
-
cache?: RequestCache | undefined;
|
|
2492
|
-
credentials?: RequestCredentials | undefined;
|
|
2493
2503
|
headers?: (HeadersInit & (HeadersInit | {
|
|
2494
2504
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2495
2505
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2496
2506
|
authorization: "Bearer" | "Basic";
|
|
2497
2507
|
})) | undefined;
|
|
2508
|
+
redirect?: RequestRedirect | undefined;
|
|
2509
|
+
method?: string | undefined;
|
|
2510
|
+
cache?: RequestCache | undefined;
|
|
2511
|
+
credentials?: RequestCredentials | undefined;
|
|
2498
2512
|
integrity?: string | undefined;
|
|
2499
2513
|
keepalive?: boolean | undefined;
|
|
2500
|
-
method?: string | undefined;
|
|
2501
2514
|
mode?: RequestMode | undefined;
|
|
2502
2515
|
priority?: RequestPriority | undefined;
|
|
2503
|
-
redirect?: RequestRedirect | undefined;
|
|
2504
2516
|
referrer?: string | undefined;
|
|
2505
2517
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
2506
2518
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -2554,19 +2566,19 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
2554
2566
|
} | undefined): Promise<{
|
|
2555
2567
|
url: string;
|
|
2556
2568
|
options: {
|
|
2557
|
-
cache?: RequestCache | undefined;
|
|
2558
|
-
credentials?: RequestCredentials | undefined;
|
|
2559
2569
|
headers?: (HeadersInit & (HeadersInit | {
|
|
2560
2570
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2561
2571
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2562
2572
|
authorization: "Bearer" | "Basic";
|
|
2563
2573
|
})) | undefined;
|
|
2574
|
+
redirect?: RequestRedirect | undefined;
|
|
2575
|
+
method?: string | undefined;
|
|
2576
|
+
cache?: RequestCache | undefined;
|
|
2577
|
+
credentials?: RequestCredentials | undefined;
|
|
2564
2578
|
integrity?: string | undefined;
|
|
2565
2579
|
keepalive?: boolean | undefined;
|
|
2566
|
-
method?: string | undefined;
|
|
2567
2580
|
mode?: RequestMode | undefined;
|
|
2568
2581
|
priority?: RequestPriority | undefined;
|
|
2569
|
-
redirect?: RequestRedirect | undefined;
|
|
2570
2582
|
referrer?: string | undefined;
|
|
2571
2583
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
2572
2584
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -2619,34 +2631,22 @@ declare const createAuthClient$1: <Option extends ClientOptions>(options?: Optio
|
|
|
2619
2631
|
disableValidation?: boolean | undefined;
|
|
2620
2632
|
};
|
|
2621
2633
|
}>;
|
|
2622
|
-
} | {
|
|
2623
|
-
id: string;
|
|
2624
|
-
name: string;
|
|
2625
|
-
hooks: {
|
|
2626
|
-
onSuccess(context: _better_fetch_fetch.SuccessContext): void;
|
|
2627
|
-
};
|
|
2628
|
-
} | {
|
|
2629
|
-
id: string;
|
|
2630
|
-
name: string;
|
|
2631
|
-
hooks: {
|
|
2632
|
-
onRequest<T_9 extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T_9>): _better_fetch_fetch.RequestContext<T_9>;
|
|
2633
|
-
};
|
|
2634
2634
|
})[];
|
|
2635
2635
|
csrfPlugin?: boolean;
|
|
2636
2636
|
authPlugins?: AuthPlugin[];
|
|
2637
|
-
cache?: RequestCache;
|
|
2638
|
-
credentials?: RequestCredentials;
|
|
2639
2637
|
headers?: (HeadersInit & (HeadersInit | {
|
|
2640
2638
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2641
2639
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2642
2640
|
authorization: "Bearer" | "Basic";
|
|
2643
2641
|
})) | undefined;
|
|
2642
|
+
redirect?: RequestRedirect;
|
|
2643
|
+
method: string;
|
|
2644
|
+
cache?: RequestCache;
|
|
2645
|
+
credentials?: RequestCredentials;
|
|
2644
2646
|
integrity?: string;
|
|
2645
2647
|
keepalive?: boolean;
|
|
2646
|
-
method: string;
|
|
2647
2648
|
mode?: RequestMode;
|
|
2648
2649
|
priority?: RequestPriority;
|
|
2649
|
-
redirect?: RequestRedirect;
|
|
2650
2650
|
referrer?: string;
|
|
2651
2651
|
referrerPolicy?: ReferrerPolicy;
|
|
2652
2652
|
signal?: AbortSignal | null;
|
|
@@ -2927,12 +2927,12 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
2927
2927
|
}>>;
|
|
2928
2928
|
body: zod.ZodObject<{
|
|
2929
2929
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
2930
|
-
provider: zod.ZodEnum<["github", ...("
|
|
2930
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
2931
2931
|
}, "strip", zod.ZodTypeAny, {
|
|
2932
|
-
provider: "
|
|
2932
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
2933
2933
|
callbackURL?: string | undefined;
|
|
2934
2934
|
}, {
|
|
2935
|
-
provider: "
|
|
2935
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
2936
2936
|
callbackURL?: string | undefined;
|
|
2937
2937
|
}>;
|
|
2938
2938
|
}>): Promise<{
|
|
@@ -2954,12 +2954,12 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
2954
2954
|
}>>;
|
|
2955
2955
|
body: zod.ZodObject<{
|
|
2956
2956
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
2957
|
-
provider: zod.ZodEnum<["github", ...("
|
|
2957
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
2958
2958
|
}, "strip", zod.ZodTypeAny, {
|
|
2959
|
-
provider: "
|
|
2959
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
2960
2960
|
callbackURL?: string | undefined;
|
|
2961
2961
|
}, {
|
|
2962
|
-
provider: "
|
|
2962
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
2963
2963
|
callbackURL?: string | undefined;
|
|
2964
2964
|
}>;
|
|
2965
2965
|
};
|
|
@@ -3093,17 +3093,17 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
3093
3093
|
image: zod.ZodOptional<zod.ZodString>;
|
|
3094
3094
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3095
3095
|
}, "strip", zod.ZodTypeAny, {
|
|
3096
|
+
password: string;
|
|
3096
3097
|
name: string;
|
|
3097
3098
|
email: string;
|
|
3098
|
-
password: string;
|
|
3099
|
-
callbackURL?: string | undefined;
|
|
3100
3099
|
image?: string | undefined;
|
|
3100
|
+
callbackURL?: string | undefined;
|
|
3101
3101
|
}, {
|
|
3102
|
+
password: string;
|
|
3102
3103
|
name: string;
|
|
3103
3104
|
email: string;
|
|
3104
|
-
password: string;
|
|
3105
|
-
callbackURL?: string | undefined;
|
|
3106
3105
|
image?: string | undefined;
|
|
3106
|
+
callbackURL?: string | undefined;
|
|
3107
3107
|
}>;
|
|
3108
3108
|
}>): Promise<{
|
|
3109
3109
|
user: {
|
|
@@ -3133,17 +3133,17 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
3133
3133
|
image: zod.ZodOptional<zod.ZodString>;
|
|
3134
3134
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3135
3135
|
}, "strip", zod.ZodTypeAny, {
|
|
3136
|
+
password: string;
|
|
3136
3137
|
name: string;
|
|
3137
3138
|
email: string;
|
|
3138
|
-
password: string;
|
|
3139
|
-
callbackURL?: string | undefined;
|
|
3140
3139
|
image?: string | undefined;
|
|
3140
|
+
callbackURL?: string | undefined;
|
|
3141
3141
|
}, {
|
|
3142
|
+
password: string;
|
|
3142
3143
|
name: string;
|
|
3143
3144
|
email: string;
|
|
3144
|
-
password: string;
|
|
3145
|
-
callbackURL?: string | undefined;
|
|
3146
3145
|
image?: string | undefined;
|
|
3146
|
+
callbackURL?: string | undefined;
|
|
3147
3147
|
}>;
|
|
3148
3148
|
};
|
|
3149
3149
|
method: better_call.Method | better_call.Method[];
|
|
@@ -3158,13 +3158,13 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
3158
3158
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3159
3159
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
3160
3160
|
}, "strip", zod.ZodTypeAny, {
|
|
3161
|
-
email: string;
|
|
3162
3161
|
password: string;
|
|
3162
|
+
email: string;
|
|
3163
3163
|
callbackURL?: string | undefined;
|
|
3164
3164
|
dontRememberMe?: boolean | undefined;
|
|
3165
3165
|
}, {
|
|
3166
|
-
email: string;
|
|
3167
3166
|
password: string;
|
|
3167
|
+
email: string;
|
|
3168
3168
|
callbackURL?: string | undefined;
|
|
3169
3169
|
dontRememberMe?: boolean | undefined;
|
|
3170
3170
|
}>;
|
|
@@ -3197,13 +3197,13 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
3197
3197
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3198
3198
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
3199
3199
|
}, "strip", zod.ZodTypeAny, {
|
|
3200
|
-
email: string;
|
|
3201
3200
|
password: string;
|
|
3201
|
+
email: string;
|
|
3202
3202
|
callbackURL?: string | undefined;
|
|
3203
3203
|
dontRememberMe?: boolean | undefined;
|
|
3204
3204
|
}, {
|
|
3205
|
-
email: string;
|
|
3206
3205
|
password: string;
|
|
3206
|
+
email: string;
|
|
3207
3207
|
callbackURL?: string | undefined;
|
|
3208
3208
|
dontRememberMe?: boolean | undefined;
|
|
3209
3209
|
}>;
|
|
@@ -3288,11 +3288,11 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
3288
3288
|
token: zod.ZodString;
|
|
3289
3289
|
callbackURL: zod.ZodString;
|
|
3290
3290
|
}, "strip", zod.ZodTypeAny, {
|
|
3291
|
-
callbackURL: string;
|
|
3292
3291
|
token: string;
|
|
3293
|
-
}, {
|
|
3294
3292
|
callbackURL: string;
|
|
3293
|
+
}, {
|
|
3295
3294
|
token: string;
|
|
3295
|
+
callbackURL: string;
|
|
3296
3296
|
}>;
|
|
3297
3297
|
}>): Promise<{
|
|
3298
3298
|
status: boolean;
|
|
@@ -3304,11 +3304,11 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
3304
3304
|
token: zod.ZodString;
|
|
3305
3305
|
callbackURL: zod.ZodString;
|
|
3306
3306
|
}, "strip", zod.ZodTypeAny, {
|
|
3307
|
-
callbackURL: string;
|
|
3308
3307
|
token: string;
|
|
3309
|
-
}, {
|
|
3310
3308
|
callbackURL: string;
|
|
3309
|
+
}, {
|
|
3311
3310
|
token: string;
|
|
3311
|
+
callbackURL: string;
|
|
3312
3312
|
}>;
|
|
3313
3313
|
};
|
|
3314
3314
|
method: better_call.Method | better_call.Method[];
|
|
@@ -3361,12 +3361,12 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
3361
3361
|
}>>;
|
|
3362
3362
|
body: zod.ZodObject<{
|
|
3363
3363
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3364
|
-
provider: zod.ZodEnum<["github", ...("
|
|
3364
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
3365
3365
|
}, "strip", zod.ZodTypeAny, {
|
|
3366
|
-
provider: "
|
|
3366
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
3367
3367
|
callbackURL?: string | undefined;
|
|
3368
3368
|
}, {
|
|
3369
|
-
provider: "
|
|
3369
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
3370
3370
|
callbackURL?: string | undefined;
|
|
3371
3371
|
}>;
|
|
3372
3372
|
}>): Promise<{
|
|
@@ -3388,12 +3388,12 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
3388
3388
|
}>>;
|
|
3389
3389
|
body: zod.ZodObject<{
|
|
3390
3390
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3391
|
-
provider: zod.ZodEnum<["github", ...("
|
|
3391
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
3392
3392
|
}, "strip", zod.ZodTypeAny, {
|
|
3393
|
-
provider: "
|
|
3393
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
3394
3394
|
callbackURL?: string | undefined;
|
|
3395
3395
|
}, {
|
|
3396
|
-
provider: "
|
|
3396
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
3397
3397
|
callbackURL?: string | undefined;
|
|
3398
3398
|
}>;
|
|
3399
3399
|
};
|
|
@@ -3527,17 +3527,17 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
3527
3527
|
image: zod.ZodOptional<zod.ZodString>;
|
|
3528
3528
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3529
3529
|
}, "strip", zod.ZodTypeAny, {
|
|
3530
|
+
password: string;
|
|
3530
3531
|
name: string;
|
|
3531
3532
|
email: string;
|
|
3532
|
-
password: string;
|
|
3533
|
-
callbackURL?: string | undefined;
|
|
3534
3533
|
image?: string | undefined;
|
|
3534
|
+
callbackURL?: string | undefined;
|
|
3535
3535
|
}, {
|
|
3536
|
+
password: string;
|
|
3536
3537
|
name: string;
|
|
3537
3538
|
email: string;
|
|
3538
|
-
password: string;
|
|
3539
|
-
callbackURL?: string | undefined;
|
|
3540
3539
|
image?: string | undefined;
|
|
3540
|
+
callbackURL?: string | undefined;
|
|
3541
3541
|
}>;
|
|
3542
3542
|
}>): Promise<{
|
|
3543
3543
|
user: {
|
|
@@ -3567,17 +3567,17 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
3567
3567
|
image: zod.ZodOptional<zod.ZodString>;
|
|
3568
3568
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3569
3569
|
}, "strip", zod.ZodTypeAny, {
|
|
3570
|
+
password: string;
|
|
3570
3571
|
name: string;
|
|
3571
3572
|
email: string;
|
|
3572
|
-
password: string;
|
|
3573
|
-
callbackURL?: string | undefined;
|
|
3574
3573
|
image?: string | undefined;
|
|
3574
|
+
callbackURL?: string | undefined;
|
|
3575
3575
|
}, {
|
|
3576
|
+
password: string;
|
|
3576
3577
|
name: string;
|
|
3577
3578
|
email: string;
|
|
3578
|
-
password: string;
|
|
3579
|
-
callbackURL?: string | undefined;
|
|
3580
3579
|
image?: string | undefined;
|
|
3580
|
+
callbackURL?: string | undefined;
|
|
3581
3581
|
}>;
|
|
3582
3582
|
};
|
|
3583
3583
|
method: better_call.Method | better_call.Method[];
|
|
@@ -3592,13 +3592,13 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
3592
3592
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3593
3593
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
3594
3594
|
}, "strip", zod.ZodTypeAny, {
|
|
3595
|
-
email: string;
|
|
3596
3595
|
password: string;
|
|
3596
|
+
email: string;
|
|
3597
3597
|
callbackURL?: string | undefined;
|
|
3598
3598
|
dontRememberMe?: boolean | undefined;
|
|
3599
3599
|
}, {
|
|
3600
|
-
email: string;
|
|
3601
3600
|
password: string;
|
|
3601
|
+
email: string;
|
|
3602
3602
|
callbackURL?: string | undefined;
|
|
3603
3603
|
dontRememberMe?: boolean | undefined;
|
|
3604
3604
|
}>;
|
|
@@ -3631,13 +3631,13 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
3631
3631
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3632
3632
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
3633
3633
|
}, "strip", zod.ZodTypeAny, {
|
|
3634
|
-
email: string;
|
|
3635
3634
|
password: string;
|
|
3635
|
+
email: string;
|
|
3636
3636
|
callbackURL?: string | undefined;
|
|
3637
3637
|
dontRememberMe?: boolean | undefined;
|
|
3638
3638
|
}, {
|
|
3639
|
-
email: string;
|
|
3640
3639
|
password: string;
|
|
3640
|
+
email: string;
|
|
3641
3641
|
callbackURL?: string | undefined;
|
|
3642
3642
|
dontRememberMe?: boolean | undefined;
|
|
3643
3643
|
}>;
|
|
@@ -3722,11 +3722,11 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
3722
3722
|
token: zod.ZodString;
|
|
3723
3723
|
callbackURL: zod.ZodString;
|
|
3724
3724
|
}, "strip", zod.ZodTypeAny, {
|
|
3725
|
-
callbackURL: string;
|
|
3726
3725
|
token: string;
|
|
3727
|
-
}, {
|
|
3728
3726
|
callbackURL: string;
|
|
3727
|
+
}, {
|
|
3729
3728
|
token: string;
|
|
3729
|
+
callbackURL: string;
|
|
3730
3730
|
}>;
|
|
3731
3731
|
}>): Promise<{
|
|
3732
3732
|
status: boolean;
|
|
@@ -3738,11 +3738,11 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
3738
3738
|
token: zod.ZodString;
|
|
3739
3739
|
callbackURL: zod.ZodString;
|
|
3740
3740
|
}, "strip", zod.ZodTypeAny, {
|
|
3741
|
-
callbackURL: string;
|
|
3742
3741
|
token: string;
|
|
3743
|
-
}, {
|
|
3744
3742
|
callbackURL: string;
|
|
3743
|
+
}, {
|
|
3745
3744
|
token: string;
|
|
3745
|
+
callbackURL: string;
|
|
3746
3746
|
}>;
|
|
3747
3747
|
};
|
|
3748
3748
|
method: better_call.Method | better_call.Method[];
|
|
@@ -3797,12 +3797,12 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
3797
3797
|
}>>;
|
|
3798
3798
|
body: zod.ZodObject<{
|
|
3799
3799
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3800
|
-
provider: zod.ZodEnum<["github", ...("
|
|
3800
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
3801
3801
|
}, "strip", zod.ZodTypeAny, {
|
|
3802
|
-
provider: "
|
|
3802
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
3803
3803
|
callbackURL?: string | undefined;
|
|
3804
3804
|
}, {
|
|
3805
|
-
provider: "
|
|
3805
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
3806
3806
|
callbackURL?: string | undefined;
|
|
3807
3807
|
}>;
|
|
3808
3808
|
}>): Promise<{
|
|
@@ -3824,12 +3824,12 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
3824
3824
|
}>>;
|
|
3825
3825
|
body: zod.ZodObject<{
|
|
3826
3826
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3827
|
-
provider: zod.ZodEnum<["github", ...("
|
|
3827
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
3828
3828
|
}, "strip", zod.ZodTypeAny, {
|
|
3829
|
-
provider: "
|
|
3829
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
3830
3830
|
callbackURL?: string | undefined;
|
|
3831
3831
|
}, {
|
|
3832
|
-
provider: "
|
|
3832
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
3833
3833
|
callbackURL?: string | undefined;
|
|
3834
3834
|
}>;
|
|
3835
3835
|
};
|
|
@@ -3963,17 +3963,17 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
3963
3963
|
image: zod.ZodOptional<zod.ZodString>;
|
|
3964
3964
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
3965
3965
|
}, "strip", zod.ZodTypeAny, {
|
|
3966
|
+
password: string;
|
|
3966
3967
|
name: string;
|
|
3967
3968
|
email: string;
|
|
3968
|
-
password: string;
|
|
3969
|
-
callbackURL?: string | undefined;
|
|
3970
3969
|
image?: string | undefined;
|
|
3970
|
+
callbackURL?: string | undefined;
|
|
3971
3971
|
}, {
|
|
3972
|
+
password: string;
|
|
3972
3973
|
name: string;
|
|
3973
3974
|
email: string;
|
|
3974
|
-
password: string;
|
|
3975
|
-
callbackURL?: string | undefined;
|
|
3976
3975
|
image?: string | undefined;
|
|
3976
|
+
callbackURL?: string | undefined;
|
|
3977
3977
|
}>;
|
|
3978
3978
|
}>): Promise<{
|
|
3979
3979
|
user: {
|
|
@@ -4003,17 +4003,17 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4003
4003
|
image: zod.ZodOptional<zod.ZodString>;
|
|
4004
4004
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4005
4005
|
}, "strip", zod.ZodTypeAny, {
|
|
4006
|
+
password: string;
|
|
4006
4007
|
name: string;
|
|
4007
4008
|
email: string;
|
|
4008
|
-
password: string;
|
|
4009
|
-
callbackURL?: string | undefined;
|
|
4010
4009
|
image?: string | undefined;
|
|
4010
|
+
callbackURL?: string | undefined;
|
|
4011
4011
|
}, {
|
|
4012
|
+
password: string;
|
|
4012
4013
|
name: string;
|
|
4013
4014
|
email: string;
|
|
4014
|
-
password: string;
|
|
4015
|
-
callbackURL?: string | undefined;
|
|
4016
4015
|
image?: string | undefined;
|
|
4016
|
+
callbackURL?: string | undefined;
|
|
4017
4017
|
}>;
|
|
4018
4018
|
};
|
|
4019
4019
|
method: better_call.Method | better_call.Method[];
|
|
@@ -4028,13 +4028,13 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4028
4028
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4029
4029
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
4030
4030
|
}, "strip", zod.ZodTypeAny, {
|
|
4031
|
-
email: string;
|
|
4032
4031
|
password: string;
|
|
4032
|
+
email: string;
|
|
4033
4033
|
callbackURL?: string | undefined;
|
|
4034
4034
|
dontRememberMe?: boolean | undefined;
|
|
4035
4035
|
}, {
|
|
4036
|
-
email: string;
|
|
4037
4036
|
password: string;
|
|
4037
|
+
email: string;
|
|
4038
4038
|
callbackURL?: string | undefined;
|
|
4039
4039
|
dontRememberMe?: boolean | undefined;
|
|
4040
4040
|
}>;
|
|
@@ -4067,13 +4067,13 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4067
4067
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4068
4068
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
4069
4069
|
}, "strip", zod.ZodTypeAny, {
|
|
4070
|
-
email: string;
|
|
4071
4070
|
password: string;
|
|
4071
|
+
email: string;
|
|
4072
4072
|
callbackURL?: string | undefined;
|
|
4073
4073
|
dontRememberMe?: boolean | undefined;
|
|
4074
4074
|
}, {
|
|
4075
|
-
email: string;
|
|
4076
4075
|
password: string;
|
|
4076
|
+
email: string;
|
|
4077
4077
|
callbackURL?: string | undefined;
|
|
4078
4078
|
dontRememberMe?: boolean | undefined;
|
|
4079
4079
|
}>;
|
|
@@ -4158,11 +4158,11 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4158
4158
|
token: zod.ZodString;
|
|
4159
4159
|
callbackURL: zod.ZodString;
|
|
4160
4160
|
}, "strip", zod.ZodTypeAny, {
|
|
4161
|
-
callbackURL: string;
|
|
4162
4161
|
token: string;
|
|
4163
|
-
}, {
|
|
4164
4162
|
callbackURL: string;
|
|
4163
|
+
}, {
|
|
4165
4164
|
token: string;
|
|
4165
|
+
callbackURL: string;
|
|
4166
4166
|
}>;
|
|
4167
4167
|
}>): Promise<{
|
|
4168
4168
|
status: boolean;
|
|
@@ -4174,11 +4174,11 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4174
4174
|
token: zod.ZodString;
|
|
4175
4175
|
callbackURL: zod.ZodString;
|
|
4176
4176
|
}, "strip", zod.ZodTypeAny, {
|
|
4177
|
-
callbackURL: string;
|
|
4178
4177
|
token: string;
|
|
4179
|
-
}, {
|
|
4180
4178
|
callbackURL: string;
|
|
4179
|
+
}, {
|
|
4181
4180
|
token: string;
|
|
4181
|
+
callbackURL: string;
|
|
4182
4182
|
}>;
|
|
4183
4183
|
};
|
|
4184
4184
|
method: better_call.Method | better_call.Method[];
|
|
@@ -4231,12 +4231,12 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4231
4231
|
}>>;
|
|
4232
4232
|
body: zod.ZodObject<{
|
|
4233
4233
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4234
|
-
provider: zod.ZodEnum<["github", ...("
|
|
4234
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
4235
4235
|
}, "strip", zod.ZodTypeAny, {
|
|
4236
|
-
provider: "
|
|
4236
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
4237
4237
|
callbackURL?: string | undefined;
|
|
4238
4238
|
}, {
|
|
4239
|
-
provider: "
|
|
4239
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
4240
4240
|
callbackURL?: string | undefined;
|
|
4241
4241
|
}>;
|
|
4242
4242
|
}>): Promise<{
|
|
@@ -4258,12 +4258,12 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4258
4258
|
}>>;
|
|
4259
4259
|
body: zod.ZodObject<{
|
|
4260
4260
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4261
|
-
provider: zod.ZodEnum<["github", ...("
|
|
4261
|
+
provider: zod.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter")[]]>;
|
|
4262
4262
|
}, "strip", zod.ZodTypeAny, {
|
|
4263
|
-
provider: "
|
|
4263
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
4264
4264
|
callbackURL?: string | undefined;
|
|
4265
4265
|
}, {
|
|
4266
|
-
provider: "
|
|
4266
|
+
provider: "apple" | "discord" | "facebook" | "github" | "google" | "spotify" | "twitch" | "twitter";
|
|
4267
4267
|
callbackURL?: string | undefined;
|
|
4268
4268
|
}>;
|
|
4269
4269
|
};
|
|
@@ -4397,17 +4397,17 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4397
4397
|
image: zod.ZodOptional<zod.ZodString>;
|
|
4398
4398
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4399
4399
|
}, "strip", zod.ZodTypeAny, {
|
|
4400
|
+
password: string;
|
|
4400
4401
|
name: string;
|
|
4401
4402
|
email: string;
|
|
4402
|
-
password: string;
|
|
4403
|
-
callbackURL?: string | undefined;
|
|
4404
4403
|
image?: string | undefined;
|
|
4404
|
+
callbackURL?: string | undefined;
|
|
4405
4405
|
}, {
|
|
4406
|
+
password: string;
|
|
4406
4407
|
name: string;
|
|
4407
4408
|
email: string;
|
|
4408
|
-
password: string;
|
|
4409
|
-
callbackURL?: string | undefined;
|
|
4410
4409
|
image?: string | undefined;
|
|
4410
|
+
callbackURL?: string | undefined;
|
|
4411
4411
|
}>;
|
|
4412
4412
|
}>): Promise<{
|
|
4413
4413
|
user: {
|
|
@@ -4437,17 +4437,17 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4437
4437
|
image: zod.ZodOptional<zod.ZodString>;
|
|
4438
4438
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4439
4439
|
}, "strip", zod.ZodTypeAny, {
|
|
4440
|
+
password: string;
|
|
4440
4441
|
name: string;
|
|
4441
4442
|
email: string;
|
|
4442
|
-
password: string;
|
|
4443
|
-
callbackURL?: string | undefined;
|
|
4444
4443
|
image?: string | undefined;
|
|
4444
|
+
callbackURL?: string | undefined;
|
|
4445
4445
|
}, {
|
|
4446
|
+
password: string;
|
|
4446
4447
|
name: string;
|
|
4447
4448
|
email: string;
|
|
4448
|
-
password: string;
|
|
4449
|
-
callbackURL?: string | undefined;
|
|
4450
4449
|
image?: string | undefined;
|
|
4450
|
+
callbackURL?: string | undefined;
|
|
4451
4451
|
}>;
|
|
4452
4452
|
};
|
|
4453
4453
|
method: better_call.Method | better_call.Method[];
|
|
@@ -4462,13 +4462,13 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4462
4462
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4463
4463
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
4464
4464
|
}, "strip", zod.ZodTypeAny, {
|
|
4465
|
-
email: string;
|
|
4466
4465
|
password: string;
|
|
4466
|
+
email: string;
|
|
4467
4467
|
callbackURL?: string | undefined;
|
|
4468
4468
|
dontRememberMe?: boolean | undefined;
|
|
4469
4469
|
}, {
|
|
4470
|
-
email: string;
|
|
4471
4470
|
password: string;
|
|
4471
|
+
email: string;
|
|
4472
4472
|
callbackURL?: string | undefined;
|
|
4473
4473
|
dontRememberMe?: boolean | undefined;
|
|
4474
4474
|
}>;
|
|
@@ -4501,13 +4501,13 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4501
4501
|
callbackURL: zod.ZodOptional<zod.ZodString>;
|
|
4502
4502
|
dontRememberMe: zod.ZodOptional<zod.ZodDefault<zod.ZodBoolean>>;
|
|
4503
4503
|
}, "strip", zod.ZodTypeAny, {
|
|
4504
|
-
email: string;
|
|
4505
4504
|
password: string;
|
|
4505
|
+
email: string;
|
|
4506
4506
|
callbackURL?: string | undefined;
|
|
4507
4507
|
dontRememberMe?: boolean | undefined;
|
|
4508
4508
|
}, {
|
|
4509
|
-
email: string;
|
|
4510
4509
|
password: string;
|
|
4510
|
+
email: string;
|
|
4511
4511
|
callbackURL?: string | undefined;
|
|
4512
4512
|
dontRememberMe?: boolean | undefined;
|
|
4513
4513
|
}>;
|
|
@@ -4592,11 +4592,11 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4592
4592
|
token: zod.ZodString;
|
|
4593
4593
|
callbackURL: zod.ZodString;
|
|
4594
4594
|
}, "strip", zod.ZodTypeAny, {
|
|
4595
|
-
callbackURL: string;
|
|
4596
4595
|
token: string;
|
|
4597
|
-
}, {
|
|
4598
4596
|
callbackURL: string;
|
|
4597
|
+
}, {
|
|
4599
4598
|
token: string;
|
|
4599
|
+
callbackURL: string;
|
|
4600
4600
|
}>;
|
|
4601
4601
|
}>): Promise<{
|
|
4602
4602
|
status: boolean;
|
|
@@ -4608,11 +4608,11 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4608
4608
|
token: zod.ZodString;
|
|
4609
4609
|
callbackURL: zod.ZodString;
|
|
4610
4610
|
}, "strip", zod.ZodTypeAny, {
|
|
4611
|
-
callbackURL: string;
|
|
4612
4611
|
token: string;
|
|
4613
|
-
}, {
|
|
4614
4612
|
callbackURL: string;
|
|
4613
|
+
}, {
|
|
4615
4614
|
token: string;
|
|
4615
|
+
callbackURL: string;
|
|
4616
4616
|
}>;
|
|
4617
4617
|
};
|
|
4618
4618
|
method: better_call.Method | better_call.Method[];
|
|
@@ -4657,19 +4657,19 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4657
4657
|
onClient: "hide";
|
|
4658
4658
|
} ? {} : PathToObject<T_1["path"], T_1 extends (ctx: infer C) => infer R ? C extends better_call.Context<any, any> ? (...data: HasRequiredKeys<C["body"] extends Record<string, any> ? C["body"] & {
|
|
4659
4659
|
options?: {
|
|
4660
|
-
cache?: RequestCache | undefined;
|
|
4661
|
-
credentials?: RequestCredentials | undefined;
|
|
4662
4660
|
headers?: (HeadersInit & (HeadersInit | {
|
|
4663
4661
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
4664
4662
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
4665
4663
|
authorization: "Bearer" | "Basic";
|
|
4666
4664
|
})) | undefined;
|
|
4665
|
+
redirect?: RequestRedirect | undefined;
|
|
4666
|
+
method?: string | undefined;
|
|
4667
|
+
cache?: RequestCache | undefined;
|
|
4668
|
+
credentials?: RequestCredentials | undefined;
|
|
4667
4669
|
integrity?: string | undefined;
|
|
4668
4670
|
keepalive?: boolean | undefined;
|
|
4669
|
-
method?: string | undefined;
|
|
4670
4671
|
mode?: RequestMode | undefined;
|
|
4671
4672
|
priority?: RequestPriority | undefined;
|
|
4672
|
-
redirect?: RequestRedirect | undefined;
|
|
4673
4673
|
referrer?: string | undefined;
|
|
4674
4674
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
4675
4675
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -4724,19 +4724,19 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4724
4724
|
} : C["query"] extends Record<string, any> ? {
|
|
4725
4725
|
query: C["query"];
|
|
4726
4726
|
options?: Omit<{
|
|
4727
|
-
cache?: RequestCache | undefined;
|
|
4728
|
-
credentials?: RequestCredentials | undefined;
|
|
4729
4727
|
headers?: (HeadersInit & (HeadersInit | {
|
|
4730
4728
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
4731
4729
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
4732
4730
|
authorization: "Bearer" | "Basic";
|
|
4733
4731
|
})) | undefined;
|
|
4732
|
+
redirect?: RequestRedirect | undefined;
|
|
4733
|
+
method?: string | undefined;
|
|
4734
|
+
cache?: RequestCache | undefined;
|
|
4735
|
+
credentials?: RequestCredentials | undefined;
|
|
4734
4736
|
integrity?: string | undefined;
|
|
4735
4737
|
keepalive?: boolean | undefined;
|
|
4736
|
-
method?: string | undefined;
|
|
4737
4738
|
mode?: RequestMode | undefined;
|
|
4738
4739
|
priority?: RequestPriority | undefined;
|
|
4739
|
-
redirect?: RequestRedirect | undefined;
|
|
4740
4740
|
referrer?: string | undefined;
|
|
4741
4741
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
4742
4742
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -4790,19 +4790,19 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4790
4790
|
}, "query"> | undefined;
|
|
4791
4791
|
} : {
|
|
4792
4792
|
options?: {
|
|
4793
|
-
cache?: RequestCache | undefined;
|
|
4794
|
-
credentials?: RequestCredentials | undefined;
|
|
4795
4793
|
headers?: (HeadersInit & (HeadersInit | {
|
|
4796
4794
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
4797
4795
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
4798
4796
|
authorization: "Bearer" | "Basic";
|
|
4799
4797
|
})) | undefined;
|
|
4798
|
+
redirect?: RequestRedirect | undefined;
|
|
4799
|
+
method?: string | undefined;
|
|
4800
|
+
cache?: RequestCache | undefined;
|
|
4801
|
+
credentials?: RequestCredentials | undefined;
|
|
4800
4802
|
integrity?: string | undefined;
|
|
4801
4803
|
keepalive?: boolean | undefined;
|
|
4802
|
-
method?: string | undefined;
|
|
4803
4804
|
mode?: RequestMode | undefined;
|
|
4804
4805
|
priority?: RequestPriority | undefined;
|
|
4805
|
-
redirect?: RequestRedirect | undefined;
|
|
4806
4806
|
referrer?: string | undefined;
|
|
4807
4807
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
4808
4808
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -4856,19 +4856,19 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4856
4856
|
} | undefined;
|
|
4857
4857
|
}> extends true ? [Prettify<C["body"] extends Record<string, any> ? C["body"] & {
|
|
4858
4858
|
options?: {
|
|
4859
|
-
cache?: RequestCache | undefined;
|
|
4860
|
-
credentials?: RequestCredentials | undefined;
|
|
4861
4859
|
headers?: (HeadersInit & (HeadersInit | {
|
|
4862
4860
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
4863
4861
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
4864
4862
|
authorization: "Bearer" | "Basic";
|
|
4865
4863
|
})) | undefined;
|
|
4864
|
+
redirect?: RequestRedirect | undefined;
|
|
4865
|
+
method?: string | undefined;
|
|
4866
|
+
cache?: RequestCache | undefined;
|
|
4867
|
+
credentials?: RequestCredentials | undefined;
|
|
4866
4868
|
integrity?: string | undefined;
|
|
4867
4869
|
keepalive?: boolean | undefined;
|
|
4868
|
-
method?: string | undefined;
|
|
4869
4870
|
mode?: RequestMode | undefined;
|
|
4870
4871
|
priority?: RequestPriority | undefined;
|
|
4871
|
-
redirect?: RequestRedirect | undefined;
|
|
4872
4872
|
referrer?: string | undefined;
|
|
4873
4873
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
4874
4874
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -4923,19 +4923,19 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4923
4923
|
} : C["query"] extends Record<string, any> ? {
|
|
4924
4924
|
query: C["query"];
|
|
4925
4925
|
options?: Omit<{
|
|
4926
|
-
cache?: RequestCache | undefined;
|
|
4927
|
-
credentials?: RequestCredentials | undefined;
|
|
4928
4926
|
headers?: (HeadersInit & (HeadersInit | {
|
|
4929
4927
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
4930
4928
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
4931
4929
|
authorization: "Bearer" | "Basic";
|
|
4932
4930
|
})) | undefined;
|
|
4931
|
+
redirect?: RequestRedirect | undefined;
|
|
4932
|
+
method?: string | undefined;
|
|
4933
|
+
cache?: RequestCache | undefined;
|
|
4934
|
+
credentials?: RequestCredentials | undefined;
|
|
4933
4935
|
integrity?: string | undefined;
|
|
4934
4936
|
keepalive?: boolean | undefined;
|
|
4935
|
-
method?: string | undefined;
|
|
4936
4937
|
mode?: RequestMode | undefined;
|
|
4937
4938
|
priority?: RequestPriority | undefined;
|
|
4938
|
-
redirect?: RequestRedirect | undefined;
|
|
4939
4939
|
referrer?: string | undefined;
|
|
4940
4940
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
4941
4941
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -4989,19 +4989,19 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
4989
4989
|
}, "query"> | undefined;
|
|
4990
4990
|
} : {
|
|
4991
4991
|
options?: {
|
|
4992
|
-
cache?: RequestCache | undefined;
|
|
4993
|
-
credentials?: RequestCredentials | undefined;
|
|
4994
4992
|
headers?: (HeadersInit & (HeadersInit | {
|
|
4995
4993
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
4996
4994
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
4997
4995
|
authorization: "Bearer" | "Basic";
|
|
4998
4996
|
})) | undefined;
|
|
4997
|
+
redirect?: RequestRedirect | undefined;
|
|
4998
|
+
method?: string | undefined;
|
|
4999
|
+
cache?: RequestCache | undefined;
|
|
5000
|
+
credentials?: RequestCredentials | undefined;
|
|
4999
5001
|
integrity?: string | undefined;
|
|
5000
5002
|
keepalive?: boolean | undefined;
|
|
5001
|
-
method?: string | undefined;
|
|
5002
5003
|
mode?: RequestMode | undefined;
|
|
5003
5004
|
priority?: RequestPriority | undefined;
|
|
5004
|
-
redirect?: RequestRedirect | undefined;
|
|
5005
5005
|
referrer?: string | undefined;
|
|
5006
5006
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
5007
5007
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -5055,19 +5055,19 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
5055
5055
|
} | undefined;
|
|
5056
5056
|
}>] : [Prettify<C["body"] extends Record<string, any> ? C["body"] & {
|
|
5057
5057
|
options?: {
|
|
5058
|
-
cache?: RequestCache | undefined;
|
|
5059
|
-
credentials?: RequestCredentials | undefined;
|
|
5060
5058
|
headers?: (HeadersInit & (HeadersInit | {
|
|
5061
5059
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
5062
5060
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
5063
5061
|
authorization: "Bearer" | "Basic";
|
|
5064
5062
|
})) | undefined;
|
|
5063
|
+
redirect?: RequestRedirect | undefined;
|
|
5064
|
+
method?: string | undefined;
|
|
5065
|
+
cache?: RequestCache | undefined;
|
|
5066
|
+
credentials?: RequestCredentials | undefined;
|
|
5065
5067
|
integrity?: string | undefined;
|
|
5066
5068
|
keepalive?: boolean | undefined;
|
|
5067
|
-
method?: string | undefined;
|
|
5068
5069
|
mode?: RequestMode | undefined;
|
|
5069
5070
|
priority?: RequestPriority | undefined;
|
|
5070
|
-
redirect?: RequestRedirect | undefined;
|
|
5071
5071
|
referrer?: string | undefined;
|
|
5072
5072
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
5073
5073
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -5122,19 +5122,19 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
5122
5122
|
} : C["query"] extends Record<string, any> ? {
|
|
5123
5123
|
query: C["query"];
|
|
5124
5124
|
options?: Omit<{
|
|
5125
|
-
cache?: RequestCache | undefined;
|
|
5126
|
-
credentials?: RequestCredentials | undefined;
|
|
5127
5125
|
headers?: (HeadersInit & (HeadersInit | {
|
|
5128
5126
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
5129
5127
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
5130
5128
|
authorization: "Bearer" | "Basic";
|
|
5131
5129
|
})) | undefined;
|
|
5130
|
+
redirect?: RequestRedirect | undefined;
|
|
5131
|
+
method?: string | undefined;
|
|
5132
|
+
cache?: RequestCache | undefined;
|
|
5133
|
+
credentials?: RequestCredentials | undefined;
|
|
5132
5134
|
integrity?: string | undefined;
|
|
5133
5135
|
keepalive?: boolean | undefined;
|
|
5134
|
-
method?: string | undefined;
|
|
5135
5136
|
mode?: RequestMode | undefined;
|
|
5136
5137
|
priority?: RequestPriority | undefined;
|
|
5137
|
-
redirect?: RequestRedirect | undefined;
|
|
5138
5138
|
referrer?: string | undefined;
|
|
5139
5139
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
5140
5140
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -5188,19 +5188,19 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
5188
5188
|
}, "query"> | undefined;
|
|
5189
5189
|
} : {
|
|
5190
5190
|
options?: {
|
|
5191
|
-
cache?: RequestCache | undefined;
|
|
5192
|
-
credentials?: RequestCredentials | undefined;
|
|
5193
5191
|
headers?: (HeadersInit & (HeadersInit | {
|
|
5194
5192
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
5195
5193
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
5196
5194
|
authorization: "Bearer" | "Basic";
|
|
5197
5195
|
})) | undefined;
|
|
5196
|
+
redirect?: RequestRedirect | undefined;
|
|
5197
|
+
method?: string | undefined;
|
|
5198
|
+
cache?: RequestCache | undefined;
|
|
5199
|
+
credentials?: RequestCredentials | undefined;
|
|
5198
5200
|
integrity?: string | undefined;
|
|
5199
5201
|
keepalive?: boolean | undefined;
|
|
5200
|
-
method?: string | undefined;
|
|
5201
5202
|
mode?: RequestMode | undefined;
|
|
5202
5203
|
priority?: RequestPriority | undefined;
|
|
5203
|
-
redirect?: RequestRedirect | undefined;
|
|
5204
5204
|
referrer?: string | undefined;
|
|
5205
5205
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
5206
5206
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -5362,22 +5362,34 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
5362
5362
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
5363
5363
|
baseURL: string;
|
|
5364
5364
|
plugins: (_better_fetch_fetch.BetterFetchPlugin | {
|
|
5365
|
+
id: string;
|
|
5366
|
+
name: string;
|
|
5367
|
+
hooks: {
|
|
5368
|
+
onSuccess(context: _better_fetch_fetch.SuccessContext): void;
|
|
5369
|
+
};
|
|
5370
|
+
} | {
|
|
5371
|
+
id: string;
|
|
5372
|
+
name: string;
|
|
5373
|
+
hooks: {
|
|
5374
|
+
onRequest<T_9 extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T_9>): _better_fetch_fetch.RequestContext<T_9>;
|
|
5375
|
+
};
|
|
5376
|
+
} | {
|
|
5365
5377
|
id: string;
|
|
5366
5378
|
name: string;
|
|
5367
5379
|
init(url: string, options: {
|
|
5368
|
-
cache?: RequestCache | undefined;
|
|
5369
|
-
credentials?: RequestCredentials | undefined;
|
|
5370
5380
|
headers?: (HeadersInit & (HeadersInit | {
|
|
5371
5381
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
5372
5382
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
5373
5383
|
authorization: "Bearer" | "Basic";
|
|
5374
5384
|
})) | undefined;
|
|
5385
|
+
redirect?: RequestRedirect | undefined;
|
|
5386
|
+
method?: string | undefined;
|
|
5387
|
+
cache?: RequestCache | undefined;
|
|
5388
|
+
credentials?: RequestCredentials | undefined;
|
|
5375
5389
|
integrity?: string | undefined;
|
|
5376
5390
|
keepalive?: boolean | undefined;
|
|
5377
|
-
method?: string | undefined;
|
|
5378
5391
|
mode?: RequestMode | undefined;
|
|
5379
5392
|
priority?: RequestPriority | undefined;
|
|
5380
|
-
redirect?: RequestRedirect | undefined;
|
|
5381
5393
|
referrer?: string | undefined;
|
|
5382
5394
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
5383
5395
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -5431,19 +5443,19 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
5431
5443
|
} | undefined): Promise<{
|
|
5432
5444
|
url: string;
|
|
5433
5445
|
options: {
|
|
5434
|
-
cache?: RequestCache | undefined;
|
|
5435
|
-
credentials?: RequestCredentials | undefined;
|
|
5436
5446
|
headers?: (HeadersInit & (HeadersInit | {
|
|
5437
5447
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
5438
5448
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
5439
5449
|
authorization: "Bearer" | "Basic";
|
|
5440
5450
|
})) | undefined;
|
|
5451
|
+
redirect?: RequestRedirect | undefined;
|
|
5452
|
+
method?: string | undefined;
|
|
5453
|
+
cache?: RequestCache | undefined;
|
|
5454
|
+
credentials?: RequestCredentials | undefined;
|
|
5441
5455
|
integrity?: string | undefined;
|
|
5442
5456
|
keepalive?: boolean | undefined;
|
|
5443
|
-
method?: string | undefined;
|
|
5444
5457
|
mode?: RequestMode | undefined;
|
|
5445
5458
|
priority?: RequestPriority | undefined;
|
|
5446
|
-
redirect?: RequestRedirect | undefined;
|
|
5447
5459
|
referrer?: string | undefined;
|
|
5448
5460
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
5449
5461
|
signal?: (AbortSignal | null) | undefined;
|
|
@@ -5496,34 +5508,22 @@ declare const createAuthClient: <O extends ClientOptions>(options?: O) => UnionT
|
|
|
5496
5508
|
disableValidation?: boolean | undefined;
|
|
5497
5509
|
};
|
|
5498
5510
|
}>;
|
|
5499
|
-
} | {
|
|
5500
|
-
id: string;
|
|
5501
|
-
name: string;
|
|
5502
|
-
hooks: {
|
|
5503
|
-
onSuccess(context: _better_fetch_fetch.SuccessContext): void;
|
|
5504
|
-
};
|
|
5505
|
-
} | {
|
|
5506
|
-
id: string;
|
|
5507
|
-
name: string;
|
|
5508
|
-
hooks: {
|
|
5509
|
-
onRequest<T_9 extends Record<string, any>>(context: _better_fetch_fetch.RequestContext<T_9>): _better_fetch_fetch.RequestContext<T_9>;
|
|
5510
|
-
};
|
|
5511
5511
|
})[];
|
|
5512
5512
|
csrfPlugin?: boolean;
|
|
5513
5513
|
authPlugins?: AuthPlugin[];
|
|
5514
|
-
cache?: RequestCache;
|
|
5515
|
-
credentials?: RequestCredentials;
|
|
5516
5514
|
headers?: (HeadersInit & (HeadersInit | {
|
|
5517
5515
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
5518
5516
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
5519
5517
|
authorization: "Bearer" | "Basic";
|
|
5520
5518
|
})) | undefined;
|
|
5519
|
+
redirect?: RequestRedirect;
|
|
5520
|
+
method: string;
|
|
5521
|
+
cache?: RequestCache;
|
|
5522
|
+
credentials?: RequestCredentials;
|
|
5521
5523
|
integrity?: string;
|
|
5522
5524
|
keepalive?: boolean;
|
|
5523
|
-
method: string;
|
|
5524
5525
|
mode?: RequestMode;
|
|
5525
5526
|
priority?: RequestPriority;
|
|
5526
|
-
redirect?: RequestRedirect;
|
|
5527
5527
|
referrer?: string;
|
|
5528
5528
|
referrerPolicy?: ReferrerPolicy;
|
|
5529
5529
|
signal?: AbortSignal | null;
|