better-auth 1.4.20 → 1.4.22
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/adapters/memory-adapter/memory-adapter.d.mts +2 -2
- package/dist/api/index.d.mts +99 -99
- package/dist/api/routes/account.d.mts +11 -11
- package/dist/api/routes/callback.d.mts +2 -2
- package/dist/api/routes/email-verification.d.mts +4 -4
- package/dist/api/routes/error.d.mts +2 -2
- package/dist/api/routes/ok.d.mts +2 -2
- package/dist/api/routes/password.d.mts +7 -7
- package/dist/api/routes/session.d.mts +14 -14
- package/dist/api/routes/sign-in.d.mts +4 -4
- package/dist/api/routes/sign-out.d.mts +2 -2
- package/dist/api/routes/sign-up.d.mts +3 -3
- package/dist/api/routes/update-user.d.mts +13 -13
- package/dist/client/lynx/index.d.mts +13 -13
- package/dist/client/react/index.d.mts +13 -13
- package/dist/client/solid/index.d.mts +13 -13
- package/dist/client/svelte/index.d.mts +15 -15
- package/dist/client/vanilla.d.mts +15 -15
- package/dist/client/vue/index.d.mts +15 -15
- package/dist/db/field.d.mts +3 -3
- package/dist/integrations/svelte-kit.d.mts +2 -2
- package/dist/integrations/tanstack-start-solid.d.mts +4 -4
- package/dist/integrations/tanstack-start.d.mts +4 -4
- package/dist/plugins/admin/admin.d.mts +3 -3
- package/dist/plugins/anonymous/index.d.mts +7 -7
- package/dist/plugins/api-key/index.d.mts +36 -36
- package/dist/plugins/bearer/index.d.mts +6 -6
- package/dist/plugins/captcha/index.d.mts +2 -2
- package/dist/plugins/custom-session/index.d.mts +5 -5
- package/dist/plugins/device-authorization/index.d.mts +6 -6
- package/dist/plugins/email-otp/index.d.mts +14 -14
- package/dist/plugins/generic-oauth/index.d.mts +5 -5
- package/dist/plugins/haveibeenpwned/index.d.mts +3 -3
- package/dist/plugins/jwt/client.d.mts +2 -2
- package/dist/plugins/jwt/index.d.mts +9 -9
- package/dist/plugins/last-login-method/index.d.mts +4 -4
- package/dist/plugins/magic-link/index.d.mts +4 -4
- package/dist/plugins/mcp/index.d.mts +10 -10
- package/dist/plugins/multi-session/index.d.mts +9 -9
- package/dist/plugins/oauth-proxy/index.d.mts +8 -8
- package/dist/plugins/oidc-provider/index.d.mts +13 -13
- package/dist/plugins/one-tap/client.d.mts +5 -5
- package/dist/plugins/one-tap/index.d.mts +2 -2
- package/dist/plugins/one-time-token/index.d.mts +5 -5
- package/dist/plugins/open-api/index.d.mts +3 -3
- package/dist/plugins/organization/adapter.d.mts +24 -24
- package/dist/plugins/organization/client.d.mts +9 -9
- package/dist/plugins/organization/organization.d.mts +3 -3
- package/dist/plugins/organization/routes/crud-access-control.d.mts +22 -22
- package/dist/plugins/organization/routes/crud-invites.d.mts +69 -69
- package/dist/plugins/organization/routes/crud-members.d.mts +67 -67
- package/dist/plugins/organization/routes/crud-org.d.mts +59 -59
- package/dist/plugins/organization/routes/crud-team.d.mts +79 -79
- package/dist/plugins/phone-number/index.d.mts +9 -9
- package/dist/plugins/siwe/index.d.mts +3 -3
- package/dist/plugins/two-factor/client.d.mts +2 -2
- package/dist/plugins/two-factor/index.d.mts +18 -18
- package/dist/plugins/username/index.d.mts +4 -4
- package/dist/plugins/username/schema.d.mts +3 -3
- package/dist/test-utils/test-instance.d.mts +312 -312
- package/package.json +3 -3
|
@@ -8,14 +8,14 @@ import "../types/index.mjs";
|
|
|
8
8
|
import "../index.mjs";
|
|
9
9
|
import { setCookieToHeader } from "../cookies/cookie-utils.mjs";
|
|
10
10
|
import "../cookies/index.mjs";
|
|
11
|
-
import * as
|
|
11
|
+
import * as _better_auth_core35 from "@better-auth/core";
|
|
12
12
|
import { Awaitable, BetterAuthClientOptions, BetterAuthOptions } from "@better-auth/core";
|
|
13
13
|
import * as _better_auth_core_oauth23 from "@better-auth/core/oauth2";
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
14
|
+
import * as _better_auth_core_db_adapter0 from "@better-auth/core/db/adapter";
|
|
15
|
+
import * as better_call280 from "better-call";
|
|
16
16
|
import * as zod604 from "zod";
|
|
17
17
|
import * as nanostores3 from "nanostores";
|
|
18
|
-
import * as
|
|
18
|
+
import * as _better_fetch_fetch79 from "@better-fetch/fetch";
|
|
19
19
|
import { SuccessContext } from "@better-fetch/fetch";
|
|
20
20
|
import * as zod_v4_core83 from "zod/v4/core";
|
|
21
21
|
|
|
@@ -40,7 +40,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
40
40
|
};
|
|
41
41
|
} ? T extends {
|
|
42
42
|
plugins: Array<infer Plugin>;
|
|
43
|
-
} ? UnionToIntersection<Plugin extends
|
|
43
|
+
} ? UnionToIntersection<Plugin extends _better_auth_core35.BetterAuthClientPlugin ? Plugin["getAtoms"] extends ((fetch: any) => infer Atoms) ? Atoms extends Record<string, any> ? { [key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: Atoms[key] } : {} : {} : {}> : {} : never : never> & UnionToIntersection<InferRoute<((C extends undefined ? {} : C) & {
|
|
44
44
|
baseURL: string | undefined;
|
|
45
45
|
fetchOptions: {
|
|
46
46
|
customFetchImpl: (url: string | URL | Request, init?: RequestInit | undefined) => Promise<Response>;
|
|
@@ -99,7 +99,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
99
99
|
};
|
|
100
100
|
} | null> : Promise<Response>;
|
|
101
101
|
} & FilteredAPI<{
|
|
102
|
-
readonly ok:
|
|
102
|
+
readonly ok: better_call280.StrictEndpoint<"/ok", {
|
|
103
103
|
method: "GET";
|
|
104
104
|
metadata: {
|
|
105
105
|
openapi: {
|
|
@@ -129,7 +129,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
129
129
|
}, {
|
|
130
130
|
ok: boolean;
|
|
131
131
|
}>;
|
|
132
|
-
readonly error:
|
|
132
|
+
readonly error: better_call280.StrictEndpoint<"/error", {
|
|
133
133
|
method: "GET";
|
|
134
134
|
metadata: {
|
|
135
135
|
openapi: {
|
|
@@ -151,7 +151,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
151
151
|
scope: "server";
|
|
152
152
|
};
|
|
153
153
|
}, Response>;
|
|
154
|
-
readonly signInSocial:
|
|
154
|
+
readonly signInSocial: better_call280.StrictEndpoint<"/sign-in/social", {
|
|
155
155
|
method: "POST";
|
|
156
156
|
operationId: string;
|
|
157
157
|
body: zod604.ZodObject<{
|
|
@@ -259,7 +259,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
259
259
|
image?: string | null | undefined;
|
|
260
260
|
};
|
|
261
261
|
}>;
|
|
262
|
-
readonly callbackOAuth:
|
|
262
|
+
readonly callbackOAuth: better_call280.StrictEndpoint<"/callback/:id", {
|
|
263
263
|
method: ("GET" | "POST")[];
|
|
264
264
|
operationId: string;
|
|
265
265
|
body: zod604.ZodOptional<zod604.ZodObject<{
|
|
@@ -283,7 +283,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
283
283
|
scope: "server";
|
|
284
284
|
};
|
|
285
285
|
}, void>;
|
|
286
|
-
readonly getSession:
|
|
286
|
+
readonly getSession: better_call280.StrictEndpoint<"/get-session", {
|
|
287
287
|
method: "GET";
|
|
288
288
|
operationId: string;
|
|
289
289
|
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
@@ -340,7 +340,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
340
340
|
image?: string | null | undefined;
|
|
341
341
|
};
|
|
342
342
|
} | null>;
|
|
343
|
-
readonly signOut:
|
|
343
|
+
readonly signOut: better_call280.StrictEndpoint<"/sign-out", {
|
|
344
344
|
method: "POST";
|
|
345
345
|
operationId: string;
|
|
346
346
|
requireHeaders: true;
|
|
@@ -370,10 +370,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
370
370
|
}, {
|
|
371
371
|
success: boolean;
|
|
372
372
|
}>;
|
|
373
|
-
readonly signUpEmail:
|
|
373
|
+
readonly signUpEmail: better_call280.StrictEndpoint<"/sign-up/email", {
|
|
374
374
|
method: "POST";
|
|
375
375
|
operationId: string;
|
|
376
|
-
use: ((inputContext:
|
|
376
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
377
377
|
body: zod604.ZodIntersection<zod604.ZodObject<{
|
|
378
378
|
name: zod604.ZodString;
|
|
379
379
|
email: zod604.ZodEmail;
|
|
@@ -544,10 +544,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
544
544
|
image?: string | null | undefined;
|
|
545
545
|
};
|
|
546
546
|
}>;
|
|
547
|
-
readonly signInEmail:
|
|
547
|
+
readonly signInEmail: better_call280.StrictEndpoint<"/sign-in/email", {
|
|
548
548
|
method: "POST";
|
|
549
549
|
operationId: string;
|
|
550
|
-
use: ((inputContext:
|
|
550
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
551
551
|
body: zod604.ZodObject<{
|
|
552
552
|
email: zod604.ZodString;
|
|
553
553
|
password: zod604.ZodString;
|
|
@@ -629,7 +629,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
629
629
|
image?: string | null | undefined;
|
|
630
630
|
};
|
|
631
631
|
}>;
|
|
632
|
-
readonly resetPassword:
|
|
632
|
+
readonly resetPassword: better_call280.StrictEndpoint<"/reset-password", {
|
|
633
633
|
method: "POST";
|
|
634
634
|
operationId: string;
|
|
635
635
|
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
@@ -665,7 +665,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
665
665
|
}, {
|
|
666
666
|
status: boolean;
|
|
667
667
|
}>;
|
|
668
|
-
readonly verifyPassword:
|
|
668
|
+
readonly verifyPassword: better_call280.StrictEndpoint<"/verify-password", {
|
|
669
669
|
method: "POST";
|
|
670
670
|
body: zod604.ZodObject<{
|
|
671
671
|
password: zod604.ZodString;
|
|
@@ -694,7 +694,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
694
694
|
};
|
|
695
695
|
};
|
|
696
696
|
};
|
|
697
|
-
use: ((inputContext:
|
|
697
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
698
698
|
session: {
|
|
699
699
|
session: Record<string, any> & {
|
|
700
700
|
id: string;
|
|
@@ -720,14 +720,14 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
720
720
|
}, {
|
|
721
721
|
status: boolean;
|
|
722
722
|
}>;
|
|
723
|
-
readonly verifyEmail:
|
|
723
|
+
readonly verifyEmail: better_call280.StrictEndpoint<"/verify-email", {
|
|
724
724
|
method: "GET";
|
|
725
725
|
operationId: string;
|
|
726
726
|
query: zod604.ZodObject<{
|
|
727
727
|
token: zod604.ZodString;
|
|
728
728
|
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
729
729
|
}, zod_v4_core83.$strip>;
|
|
730
|
-
use: ((inputContext:
|
|
730
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
731
731
|
metadata: {
|
|
732
732
|
openapi: {
|
|
733
733
|
description: string;
|
|
@@ -776,7 +776,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
776
776
|
}, void | {
|
|
777
777
|
status: boolean;
|
|
778
778
|
}>;
|
|
779
|
-
readonly sendVerificationEmail:
|
|
779
|
+
readonly sendVerificationEmail: better_call280.StrictEndpoint<"/send-verification-email", {
|
|
780
780
|
method: "POST";
|
|
781
781
|
operationId: string;
|
|
782
782
|
body: zod604.ZodObject<{
|
|
@@ -851,13 +851,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
851
851
|
}, {
|
|
852
852
|
status: boolean;
|
|
853
853
|
}>;
|
|
854
|
-
readonly changeEmail:
|
|
854
|
+
readonly changeEmail: better_call280.StrictEndpoint<"/change-email", {
|
|
855
855
|
method: "POST";
|
|
856
856
|
body: zod604.ZodObject<{
|
|
857
857
|
newEmail: zod604.ZodEmail;
|
|
858
858
|
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
859
859
|
}, zod_v4_core83.$strip>;
|
|
860
|
-
use: ((inputContext:
|
|
860
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
861
861
|
session: {
|
|
862
862
|
session: Record<string, any> & {
|
|
863
863
|
id: string;
|
|
@@ -932,7 +932,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
932
932
|
}, {
|
|
933
933
|
status: boolean;
|
|
934
934
|
}>;
|
|
935
|
-
readonly changePassword:
|
|
935
|
+
readonly changePassword: better_call280.StrictEndpoint<"/change-password", {
|
|
936
936
|
method: "POST";
|
|
937
937
|
operationId: string;
|
|
938
938
|
body: zod604.ZodObject<{
|
|
@@ -940,7 +940,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
940
940
|
currentPassword: zod604.ZodString;
|
|
941
941
|
revokeOtherSessions: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
942
942
|
}, zod_v4_core83.$strip>;
|
|
943
|
-
use: ((inputContext:
|
|
943
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
944
944
|
session: {
|
|
945
945
|
session: Record<string, any> & {
|
|
946
946
|
id: string;
|
|
@@ -1040,12 +1040,12 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1040
1040
|
image?: string | null | undefined;
|
|
1041
1041
|
} & Record<string, any>;
|
|
1042
1042
|
}>;
|
|
1043
|
-
readonly setPassword:
|
|
1043
|
+
readonly setPassword: better_call280.StrictEndpoint<string, {
|
|
1044
1044
|
method: "POST";
|
|
1045
1045
|
body: zod604.ZodObject<{
|
|
1046
1046
|
newPassword: zod604.ZodString;
|
|
1047
1047
|
}, zod_v4_core83.$strip>;
|
|
1048
|
-
use: ((inputContext:
|
|
1048
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
1049
1049
|
session: {
|
|
1050
1050
|
session: Record<string, any> & {
|
|
1051
1051
|
id: string;
|
|
@@ -1071,11 +1071,11 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1071
1071
|
}, {
|
|
1072
1072
|
status: boolean;
|
|
1073
1073
|
}>;
|
|
1074
|
-
readonly updateUser:
|
|
1074
|
+
readonly updateUser: better_call280.StrictEndpoint<"/update-user", {
|
|
1075
1075
|
method: "POST";
|
|
1076
1076
|
operationId: string;
|
|
1077
1077
|
body: zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>;
|
|
1078
|
-
use: ((inputContext:
|
|
1078
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
1079
1079
|
session: {
|
|
1080
1080
|
session: Record<string, any> & {
|
|
1081
1081
|
id: string;
|
|
@@ -1151,9 +1151,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1151
1151
|
}, {
|
|
1152
1152
|
status: boolean;
|
|
1153
1153
|
}>;
|
|
1154
|
-
readonly deleteUser:
|
|
1154
|
+
readonly deleteUser: better_call280.StrictEndpoint<"/delete-user", {
|
|
1155
1155
|
method: "POST";
|
|
1156
|
-
use: ((inputContext:
|
|
1156
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
1157
1157
|
session: {
|
|
1158
1158
|
session: Record<string, any> & {
|
|
1159
1159
|
id: string;
|
|
@@ -1238,7 +1238,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1238
1238
|
success: boolean;
|
|
1239
1239
|
message: string;
|
|
1240
1240
|
}>;
|
|
1241
|
-
readonly requestPasswordReset:
|
|
1241
|
+
readonly requestPasswordReset: better_call280.StrictEndpoint<"/request-password-reset", {
|
|
1242
1242
|
method: "POST";
|
|
1243
1243
|
body: zod604.ZodObject<{
|
|
1244
1244
|
email: zod604.ZodEmail;
|
|
@@ -1274,13 +1274,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1274
1274
|
status: boolean;
|
|
1275
1275
|
message: string;
|
|
1276
1276
|
}>;
|
|
1277
|
-
readonly requestPasswordResetCallback:
|
|
1277
|
+
readonly requestPasswordResetCallback: better_call280.StrictEndpoint<"/reset-password/:token", {
|
|
1278
1278
|
method: "GET";
|
|
1279
1279
|
operationId: string;
|
|
1280
1280
|
query: zod604.ZodObject<{
|
|
1281
1281
|
callbackURL: zod604.ZodString;
|
|
1282
1282
|
}, zod_v4_core83.$strip>;
|
|
1283
|
-
use: ((inputContext:
|
|
1283
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
1284
1284
|
metadata: {
|
|
1285
1285
|
openapi: {
|
|
1286
1286
|
operationId: string;
|
|
@@ -1322,10 +1322,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1322
1322
|
};
|
|
1323
1323
|
};
|
|
1324
1324
|
}, never>;
|
|
1325
|
-
readonly listSessions:
|
|
1325
|
+
readonly listSessions: better_call280.StrictEndpoint<"/list-sessions", {
|
|
1326
1326
|
method: "GET";
|
|
1327
1327
|
operationId: string;
|
|
1328
|
-
use: ((inputContext:
|
|
1328
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
1329
1329
|
session: {
|
|
1330
1330
|
session: Record<string, any> & {
|
|
1331
1331
|
id: string;
|
|
@@ -1380,12 +1380,12 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1380
1380
|
ipAddress?: string | null | undefined;
|
|
1381
1381
|
userAgent?: string | null | undefined;
|
|
1382
1382
|
}>[]>;
|
|
1383
|
-
readonly revokeSession:
|
|
1383
|
+
readonly revokeSession: better_call280.StrictEndpoint<"/revoke-session", {
|
|
1384
1384
|
method: "POST";
|
|
1385
1385
|
body: zod604.ZodObject<{
|
|
1386
1386
|
token: zod604.ZodString;
|
|
1387
1387
|
}, zod_v4_core83.$strip>;
|
|
1388
|
-
use: ((inputContext:
|
|
1388
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
1389
1389
|
session: {
|
|
1390
1390
|
session: Record<string, any> & {
|
|
1391
1391
|
id: string;
|
|
@@ -1452,9 +1452,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1452
1452
|
}, {
|
|
1453
1453
|
status: boolean;
|
|
1454
1454
|
}>;
|
|
1455
|
-
readonly revokeSessions:
|
|
1455
|
+
readonly revokeSessions: better_call280.StrictEndpoint<"/revoke-sessions", {
|
|
1456
1456
|
method: "POST";
|
|
1457
|
-
use: ((inputContext:
|
|
1457
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
1458
1458
|
session: {
|
|
1459
1459
|
session: Record<string, any> & {
|
|
1460
1460
|
id: string;
|
|
@@ -1505,10 +1505,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1505
1505
|
}, {
|
|
1506
1506
|
status: boolean;
|
|
1507
1507
|
}>;
|
|
1508
|
-
readonly revokeOtherSessions:
|
|
1508
|
+
readonly revokeOtherSessions: better_call280.StrictEndpoint<"/revoke-other-sessions", {
|
|
1509
1509
|
method: "POST";
|
|
1510
1510
|
requireHeaders: true;
|
|
1511
|
-
use: ((inputContext:
|
|
1511
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
1512
1512
|
session: {
|
|
1513
1513
|
session: Record<string, any> & {
|
|
1514
1514
|
id: string;
|
|
@@ -1558,7 +1558,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1558
1558
|
}, {
|
|
1559
1559
|
status: boolean;
|
|
1560
1560
|
}>;
|
|
1561
|
-
readonly linkSocialAccount:
|
|
1561
|
+
readonly linkSocialAccount: better_call280.StrictEndpoint<"/link-social", {
|
|
1562
1562
|
method: "POST";
|
|
1563
1563
|
requireHeaders: true;
|
|
1564
1564
|
body: zod604.ZodObject<{
|
|
@@ -1577,7 +1577,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1577
1577
|
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
1578
1578
|
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
1579
1579
|
}, zod_v4_core83.$strip>;
|
|
1580
|
-
use: ((inputContext:
|
|
1580
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
1581
1581
|
session: {
|
|
1582
1582
|
session: Record<string, any> & {
|
|
1583
1583
|
id: string;
|
|
@@ -1636,9 +1636,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1636
1636
|
url: string;
|
|
1637
1637
|
redirect: boolean;
|
|
1638
1638
|
}>;
|
|
1639
|
-
readonly listUserAccounts:
|
|
1639
|
+
readonly listUserAccounts: better_call280.StrictEndpoint<"/list-accounts", {
|
|
1640
1640
|
method: "GET";
|
|
1641
|
-
use: ((inputContext:
|
|
1641
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
1642
1642
|
session: {
|
|
1643
1643
|
session: Record<string, any> & {
|
|
1644
1644
|
id: string;
|
|
@@ -1720,13 +1720,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1720
1720
|
providerId: string;
|
|
1721
1721
|
accountId: string;
|
|
1722
1722
|
}[]>;
|
|
1723
|
-
readonly deleteUserCallback:
|
|
1723
|
+
readonly deleteUserCallback: better_call280.StrictEndpoint<"/delete-user/callback", {
|
|
1724
1724
|
method: "GET";
|
|
1725
1725
|
query: zod604.ZodObject<{
|
|
1726
1726
|
token: zod604.ZodString;
|
|
1727
1727
|
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
1728
1728
|
}, zod_v4_core83.$strip>;
|
|
1729
|
-
use: ((inputContext:
|
|
1729
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
1730
1730
|
metadata: {
|
|
1731
1731
|
openapi: {
|
|
1732
1732
|
description: string;
|
|
@@ -1760,13 +1760,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1760
1760
|
success: boolean;
|
|
1761
1761
|
message: string;
|
|
1762
1762
|
}>;
|
|
1763
|
-
readonly unlinkAccount:
|
|
1763
|
+
readonly unlinkAccount: better_call280.StrictEndpoint<"/unlink-account", {
|
|
1764
1764
|
method: "POST";
|
|
1765
1765
|
body: zod604.ZodObject<{
|
|
1766
1766
|
providerId: zod604.ZodString;
|
|
1767
1767
|
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
1768
1768
|
}, zod_v4_core83.$strip>;
|
|
1769
|
-
use: ((inputContext:
|
|
1769
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
1770
1770
|
session: {
|
|
1771
1771
|
session: Record<string, any> & {
|
|
1772
1772
|
id: string;
|
|
@@ -1814,7 +1814,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1814
1814
|
}, {
|
|
1815
1815
|
status: boolean;
|
|
1816
1816
|
}>;
|
|
1817
|
-
readonly refreshToken:
|
|
1817
|
+
readonly refreshToken: better_call280.StrictEndpoint<"/refresh-token", {
|
|
1818
1818
|
method: "POST";
|
|
1819
1819
|
body: zod604.ZodObject<{
|
|
1820
1820
|
providerId: zod604.ZodString;
|
|
@@ -1873,7 +1873,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1873
1873
|
providerId: string;
|
|
1874
1874
|
accountId: string;
|
|
1875
1875
|
}>;
|
|
1876
|
-
readonly getAccessToken:
|
|
1876
|
+
readonly getAccessToken: better_call280.StrictEndpoint<"/get-access-token", {
|
|
1877
1877
|
method: "POST";
|
|
1878
1878
|
body: zod604.ZodObject<{
|
|
1879
1879
|
providerId: zod604.ZodString;
|
|
@@ -1921,9 +1921,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1921
1921
|
scopes: string[];
|
|
1922
1922
|
idToken: string | undefined;
|
|
1923
1923
|
}>;
|
|
1924
|
-
readonly accountInfo:
|
|
1924
|
+
readonly accountInfo: better_call280.StrictEndpoint<"/account-info", {
|
|
1925
1925
|
method: "GET";
|
|
1926
|
-
use: ((inputContext:
|
|
1926
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
1927
1927
|
session: {
|
|
1928
1928
|
session: Record<string, any> & {
|
|
1929
1929
|
id: string;
|
|
@@ -2010,7 +2010,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
2010
2010
|
} ? Plug extends {
|
|
2011
2011
|
endpoints: infer Endpoints;
|
|
2012
2012
|
} ? Endpoints : {} : {}> : {}) : InferAPI<{
|
|
2013
|
-
readonly ok:
|
|
2013
|
+
readonly ok: better_call280.StrictEndpoint<"/ok", {
|
|
2014
2014
|
method: "GET";
|
|
2015
2015
|
metadata: {
|
|
2016
2016
|
openapi: {
|
|
@@ -2040,7 +2040,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
2040
2040
|
}, {
|
|
2041
2041
|
ok: boolean;
|
|
2042
2042
|
}>;
|
|
2043
|
-
readonly error:
|
|
2043
|
+
readonly error: better_call280.StrictEndpoint<"/error", {
|
|
2044
2044
|
method: "GET";
|
|
2045
2045
|
metadata: {
|
|
2046
2046
|
openapi: {
|
|
@@ -2062,7 +2062,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
2062
2062
|
scope: "server";
|
|
2063
2063
|
};
|
|
2064
2064
|
}, Response>;
|
|
2065
|
-
readonly signInSocial:
|
|
2065
|
+
readonly signInSocial: better_call280.StrictEndpoint<"/sign-in/social", {
|
|
2066
2066
|
method: "POST";
|
|
2067
2067
|
operationId: string;
|
|
2068
2068
|
body: zod604.ZodObject<{
|
|
@@ -2170,7 +2170,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
2170
2170
|
image?: string | null | undefined;
|
|
2171
2171
|
};
|
|
2172
2172
|
}>;
|
|
2173
|
-
readonly callbackOAuth:
|
|
2173
|
+
readonly callbackOAuth: better_call280.StrictEndpoint<"/callback/:id", {
|
|
2174
2174
|
method: ("GET" | "POST")[];
|
|
2175
2175
|
operationId: string;
|
|
2176
2176
|
body: zod604.ZodOptional<zod604.ZodObject<{
|
|
@@ -2194,7 +2194,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
2194
2194
|
scope: "server";
|
|
2195
2195
|
};
|
|
2196
2196
|
}, void>;
|
|
2197
|
-
readonly getSession:
|
|
2197
|
+
readonly getSession: better_call280.StrictEndpoint<"/get-session", {
|
|
2198
2198
|
method: "GET";
|
|
2199
2199
|
operationId: string;
|
|
2200
2200
|
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
@@ -2251,7 +2251,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
2251
2251
|
image?: string | null | undefined;
|
|
2252
2252
|
};
|
|
2253
2253
|
} | null>;
|
|
2254
|
-
readonly signOut:
|
|
2254
|
+
readonly signOut: better_call280.StrictEndpoint<"/sign-out", {
|
|
2255
2255
|
method: "POST";
|
|
2256
2256
|
operationId: string;
|
|
2257
2257
|
requireHeaders: true;
|
|
@@ -2281,10 +2281,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
2281
2281
|
}, {
|
|
2282
2282
|
success: boolean;
|
|
2283
2283
|
}>;
|
|
2284
|
-
readonly signUpEmail:
|
|
2284
|
+
readonly signUpEmail: better_call280.StrictEndpoint<"/sign-up/email", {
|
|
2285
2285
|
method: "POST";
|
|
2286
2286
|
operationId: string;
|
|
2287
|
-
use: ((inputContext:
|
|
2287
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
2288
2288
|
body: zod604.ZodIntersection<zod604.ZodObject<{
|
|
2289
2289
|
name: zod604.ZodString;
|
|
2290
2290
|
email: zod604.ZodEmail;
|
|
@@ -2455,10 +2455,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
2455
2455
|
image?: string | null | undefined;
|
|
2456
2456
|
};
|
|
2457
2457
|
}>;
|
|
2458
|
-
readonly signInEmail:
|
|
2458
|
+
readonly signInEmail: better_call280.StrictEndpoint<"/sign-in/email", {
|
|
2459
2459
|
method: "POST";
|
|
2460
2460
|
operationId: string;
|
|
2461
|
-
use: ((inputContext:
|
|
2461
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
2462
2462
|
body: zod604.ZodObject<{
|
|
2463
2463
|
email: zod604.ZodString;
|
|
2464
2464
|
password: zod604.ZodString;
|
|
@@ -2540,7 +2540,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
2540
2540
|
image?: string | null | undefined;
|
|
2541
2541
|
};
|
|
2542
2542
|
}>;
|
|
2543
|
-
readonly resetPassword:
|
|
2543
|
+
readonly resetPassword: better_call280.StrictEndpoint<"/reset-password", {
|
|
2544
2544
|
method: "POST";
|
|
2545
2545
|
operationId: string;
|
|
2546
2546
|
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
@@ -2576,7 +2576,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
2576
2576
|
}, {
|
|
2577
2577
|
status: boolean;
|
|
2578
2578
|
}>;
|
|
2579
|
-
readonly verifyPassword:
|
|
2579
|
+
readonly verifyPassword: better_call280.StrictEndpoint<"/verify-password", {
|
|
2580
2580
|
method: "POST";
|
|
2581
2581
|
body: zod604.ZodObject<{
|
|
2582
2582
|
password: zod604.ZodString;
|
|
@@ -2605,7 +2605,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
2605
2605
|
};
|
|
2606
2606
|
};
|
|
2607
2607
|
};
|
|
2608
|
-
use: ((inputContext:
|
|
2608
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
2609
2609
|
session: {
|
|
2610
2610
|
session: Record<string, any> & {
|
|
2611
2611
|
id: string;
|
|
@@ -2631,14 +2631,14 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
2631
2631
|
}, {
|
|
2632
2632
|
status: boolean;
|
|
2633
2633
|
}>;
|
|
2634
|
-
readonly verifyEmail:
|
|
2634
|
+
readonly verifyEmail: better_call280.StrictEndpoint<"/verify-email", {
|
|
2635
2635
|
method: "GET";
|
|
2636
2636
|
operationId: string;
|
|
2637
2637
|
query: zod604.ZodObject<{
|
|
2638
2638
|
token: zod604.ZodString;
|
|
2639
2639
|
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
2640
2640
|
}, zod_v4_core83.$strip>;
|
|
2641
|
-
use: ((inputContext:
|
|
2641
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
2642
2642
|
metadata: {
|
|
2643
2643
|
openapi: {
|
|
2644
2644
|
description: string;
|
|
@@ -2687,7 +2687,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
2687
2687
|
}, void | {
|
|
2688
2688
|
status: boolean;
|
|
2689
2689
|
}>;
|
|
2690
|
-
readonly sendVerificationEmail:
|
|
2690
|
+
readonly sendVerificationEmail: better_call280.StrictEndpoint<"/send-verification-email", {
|
|
2691
2691
|
method: "POST";
|
|
2692
2692
|
operationId: string;
|
|
2693
2693
|
body: zod604.ZodObject<{
|
|
@@ -2762,13 +2762,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
2762
2762
|
}, {
|
|
2763
2763
|
status: boolean;
|
|
2764
2764
|
}>;
|
|
2765
|
-
readonly changeEmail:
|
|
2765
|
+
readonly changeEmail: better_call280.StrictEndpoint<"/change-email", {
|
|
2766
2766
|
method: "POST";
|
|
2767
2767
|
body: zod604.ZodObject<{
|
|
2768
2768
|
newEmail: zod604.ZodEmail;
|
|
2769
2769
|
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
2770
2770
|
}, zod_v4_core83.$strip>;
|
|
2771
|
-
use: ((inputContext:
|
|
2771
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
2772
2772
|
session: {
|
|
2773
2773
|
session: Record<string, any> & {
|
|
2774
2774
|
id: string;
|
|
@@ -2843,7 +2843,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
2843
2843
|
}, {
|
|
2844
2844
|
status: boolean;
|
|
2845
2845
|
}>;
|
|
2846
|
-
readonly changePassword:
|
|
2846
|
+
readonly changePassword: better_call280.StrictEndpoint<"/change-password", {
|
|
2847
2847
|
method: "POST";
|
|
2848
2848
|
operationId: string;
|
|
2849
2849
|
body: zod604.ZodObject<{
|
|
@@ -2851,7 +2851,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
2851
2851
|
currentPassword: zod604.ZodString;
|
|
2852
2852
|
revokeOtherSessions: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
2853
2853
|
}, zod_v4_core83.$strip>;
|
|
2854
|
-
use: ((inputContext:
|
|
2854
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
2855
2855
|
session: {
|
|
2856
2856
|
session: Record<string, any> & {
|
|
2857
2857
|
id: string;
|
|
@@ -2951,12 +2951,12 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
2951
2951
|
image?: string | null | undefined;
|
|
2952
2952
|
} & Record<string, any>;
|
|
2953
2953
|
}>;
|
|
2954
|
-
readonly setPassword:
|
|
2954
|
+
readonly setPassword: better_call280.StrictEndpoint<string, {
|
|
2955
2955
|
method: "POST";
|
|
2956
2956
|
body: zod604.ZodObject<{
|
|
2957
2957
|
newPassword: zod604.ZodString;
|
|
2958
2958
|
}, zod_v4_core83.$strip>;
|
|
2959
|
-
use: ((inputContext:
|
|
2959
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
2960
2960
|
session: {
|
|
2961
2961
|
session: Record<string, any> & {
|
|
2962
2962
|
id: string;
|
|
@@ -2982,11 +2982,11 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
2982
2982
|
}, {
|
|
2983
2983
|
status: boolean;
|
|
2984
2984
|
}>;
|
|
2985
|
-
readonly updateUser:
|
|
2985
|
+
readonly updateUser: better_call280.StrictEndpoint<"/update-user", {
|
|
2986
2986
|
method: "POST";
|
|
2987
2987
|
operationId: string;
|
|
2988
2988
|
body: zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>;
|
|
2989
|
-
use: ((inputContext:
|
|
2989
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
2990
2990
|
session: {
|
|
2991
2991
|
session: Record<string, any> & {
|
|
2992
2992
|
id: string;
|
|
@@ -3062,9 +3062,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3062
3062
|
}, {
|
|
3063
3063
|
status: boolean;
|
|
3064
3064
|
}>;
|
|
3065
|
-
readonly deleteUser:
|
|
3065
|
+
readonly deleteUser: better_call280.StrictEndpoint<"/delete-user", {
|
|
3066
3066
|
method: "POST";
|
|
3067
|
-
use: ((inputContext:
|
|
3067
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
3068
3068
|
session: {
|
|
3069
3069
|
session: Record<string, any> & {
|
|
3070
3070
|
id: string;
|
|
@@ -3149,7 +3149,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3149
3149
|
success: boolean;
|
|
3150
3150
|
message: string;
|
|
3151
3151
|
}>;
|
|
3152
|
-
readonly requestPasswordReset:
|
|
3152
|
+
readonly requestPasswordReset: better_call280.StrictEndpoint<"/request-password-reset", {
|
|
3153
3153
|
method: "POST";
|
|
3154
3154
|
body: zod604.ZodObject<{
|
|
3155
3155
|
email: zod604.ZodEmail;
|
|
@@ -3185,13 +3185,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3185
3185
|
status: boolean;
|
|
3186
3186
|
message: string;
|
|
3187
3187
|
}>;
|
|
3188
|
-
readonly requestPasswordResetCallback:
|
|
3188
|
+
readonly requestPasswordResetCallback: better_call280.StrictEndpoint<"/reset-password/:token", {
|
|
3189
3189
|
method: "GET";
|
|
3190
3190
|
operationId: string;
|
|
3191
3191
|
query: zod604.ZodObject<{
|
|
3192
3192
|
callbackURL: zod604.ZodString;
|
|
3193
3193
|
}, zod_v4_core83.$strip>;
|
|
3194
|
-
use: ((inputContext:
|
|
3194
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
3195
3195
|
metadata: {
|
|
3196
3196
|
openapi: {
|
|
3197
3197
|
operationId: string;
|
|
@@ -3233,10 +3233,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3233
3233
|
};
|
|
3234
3234
|
};
|
|
3235
3235
|
}, never>;
|
|
3236
|
-
readonly listSessions:
|
|
3236
|
+
readonly listSessions: better_call280.StrictEndpoint<"/list-sessions", {
|
|
3237
3237
|
method: "GET";
|
|
3238
3238
|
operationId: string;
|
|
3239
|
-
use: ((inputContext:
|
|
3239
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
3240
3240
|
session: {
|
|
3241
3241
|
session: Record<string, any> & {
|
|
3242
3242
|
id: string;
|
|
@@ -3291,12 +3291,12 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3291
3291
|
ipAddress?: string | null | undefined;
|
|
3292
3292
|
userAgent?: string | null | undefined;
|
|
3293
3293
|
}>[]>;
|
|
3294
|
-
readonly revokeSession:
|
|
3294
|
+
readonly revokeSession: better_call280.StrictEndpoint<"/revoke-session", {
|
|
3295
3295
|
method: "POST";
|
|
3296
3296
|
body: zod604.ZodObject<{
|
|
3297
3297
|
token: zod604.ZodString;
|
|
3298
3298
|
}, zod_v4_core83.$strip>;
|
|
3299
|
-
use: ((inputContext:
|
|
3299
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
3300
3300
|
session: {
|
|
3301
3301
|
session: Record<string, any> & {
|
|
3302
3302
|
id: string;
|
|
@@ -3363,9 +3363,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3363
3363
|
}, {
|
|
3364
3364
|
status: boolean;
|
|
3365
3365
|
}>;
|
|
3366
|
-
readonly revokeSessions:
|
|
3366
|
+
readonly revokeSessions: better_call280.StrictEndpoint<"/revoke-sessions", {
|
|
3367
3367
|
method: "POST";
|
|
3368
|
-
use: ((inputContext:
|
|
3368
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
3369
3369
|
session: {
|
|
3370
3370
|
session: Record<string, any> & {
|
|
3371
3371
|
id: string;
|
|
@@ -3416,10 +3416,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3416
3416
|
}, {
|
|
3417
3417
|
status: boolean;
|
|
3418
3418
|
}>;
|
|
3419
|
-
readonly revokeOtherSessions:
|
|
3419
|
+
readonly revokeOtherSessions: better_call280.StrictEndpoint<"/revoke-other-sessions", {
|
|
3420
3420
|
method: "POST";
|
|
3421
3421
|
requireHeaders: true;
|
|
3422
|
-
use: ((inputContext:
|
|
3422
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
3423
3423
|
session: {
|
|
3424
3424
|
session: Record<string, any> & {
|
|
3425
3425
|
id: string;
|
|
@@ -3469,7 +3469,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3469
3469
|
}, {
|
|
3470
3470
|
status: boolean;
|
|
3471
3471
|
}>;
|
|
3472
|
-
readonly linkSocialAccount:
|
|
3472
|
+
readonly linkSocialAccount: better_call280.StrictEndpoint<"/link-social", {
|
|
3473
3473
|
method: "POST";
|
|
3474
3474
|
requireHeaders: true;
|
|
3475
3475
|
body: zod604.ZodObject<{
|
|
@@ -3488,7 +3488,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3488
3488
|
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
3489
3489
|
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
3490
3490
|
}, zod_v4_core83.$strip>;
|
|
3491
|
-
use: ((inputContext:
|
|
3491
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
3492
3492
|
session: {
|
|
3493
3493
|
session: Record<string, any> & {
|
|
3494
3494
|
id: string;
|
|
@@ -3547,9 +3547,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3547
3547
|
url: string;
|
|
3548
3548
|
redirect: boolean;
|
|
3549
3549
|
}>;
|
|
3550
|
-
readonly listUserAccounts:
|
|
3550
|
+
readonly listUserAccounts: better_call280.StrictEndpoint<"/list-accounts", {
|
|
3551
3551
|
method: "GET";
|
|
3552
|
-
use: ((inputContext:
|
|
3552
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
3553
3553
|
session: {
|
|
3554
3554
|
session: Record<string, any> & {
|
|
3555
3555
|
id: string;
|
|
@@ -3631,13 +3631,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3631
3631
|
providerId: string;
|
|
3632
3632
|
accountId: string;
|
|
3633
3633
|
}[]>;
|
|
3634
|
-
readonly deleteUserCallback:
|
|
3634
|
+
readonly deleteUserCallback: better_call280.StrictEndpoint<"/delete-user/callback", {
|
|
3635
3635
|
method: "GET";
|
|
3636
3636
|
query: zod604.ZodObject<{
|
|
3637
3637
|
token: zod604.ZodString;
|
|
3638
3638
|
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
3639
3639
|
}, zod_v4_core83.$strip>;
|
|
3640
|
-
use: ((inputContext:
|
|
3640
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
3641
3641
|
metadata: {
|
|
3642
3642
|
openapi: {
|
|
3643
3643
|
description: string;
|
|
@@ -3671,13 +3671,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3671
3671
|
success: boolean;
|
|
3672
3672
|
message: string;
|
|
3673
3673
|
}>;
|
|
3674
|
-
readonly unlinkAccount:
|
|
3674
|
+
readonly unlinkAccount: better_call280.StrictEndpoint<"/unlink-account", {
|
|
3675
3675
|
method: "POST";
|
|
3676
3676
|
body: zod604.ZodObject<{
|
|
3677
3677
|
providerId: zod604.ZodString;
|
|
3678
3678
|
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
3679
3679
|
}, zod_v4_core83.$strip>;
|
|
3680
|
-
use: ((inputContext:
|
|
3680
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
3681
3681
|
session: {
|
|
3682
3682
|
session: Record<string, any> & {
|
|
3683
3683
|
id: string;
|
|
@@ -3725,7 +3725,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3725
3725
|
}, {
|
|
3726
3726
|
status: boolean;
|
|
3727
3727
|
}>;
|
|
3728
|
-
readonly refreshToken:
|
|
3728
|
+
readonly refreshToken: better_call280.StrictEndpoint<"/refresh-token", {
|
|
3729
3729
|
method: "POST";
|
|
3730
3730
|
body: zod604.ZodObject<{
|
|
3731
3731
|
providerId: zod604.ZodString;
|
|
@@ -3784,7 +3784,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3784
3784
|
providerId: string;
|
|
3785
3785
|
accountId: string;
|
|
3786
3786
|
}>;
|
|
3787
|
-
readonly getAccessToken:
|
|
3787
|
+
readonly getAccessToken: better_call280.StrictEndpoint<"/get-access-token", {
|
|
3788
3788
|
method: "POST";
|
|
3789
3789
|
body: zod604.ZodObject<{
|
|
3790
3790
|
providerId: zod604.ZodString;
|
|
@@ -3832,9 +3832,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3832
3832
|
scopes: string[];
|
|
3833
3833
|
idToken: string | undefined;
|
|
3834
3834
|
}>;
|
|
3835
|
-
readonly accountInfo:
|
|
3835
|
+
readonly accountInfo: better_call280.StrictEndpoint<"/account-info", {
|
|
3836
3836
|
method: "GET";
|
|
3837
|
-
use: ((inputContext:
|
|
3837
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
3838
3838
|
session: {
|
|
3839
3839
|
session: Record<string, any> & {
|
|
3840
3840
|
id: string;
|
|
@@ -3921,7 +3921,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3921
3921
|
fetchOptions: {
|
|
3922
3922
|
customFetchImpl: (url: string | URL | Request, init?: RequestInit | undefined) => Promise<Response>;
|
|
3923
3923
|
};
|
|
3924
|
-
})["plugins"] extends (infer Plugin_1)[] ? UnionToIntersection<Plugin_1 extends
|
|
3924
|
+
})["plugins"] extends (infer Plugin_1)[] ? UnionToIntersection<Plugin_1 extends _better_auth_core35.BetterAuthClientPlugin ? Plugin_1["getActions"] extends ((...args: any) => infer Actions) ? Actions : {} : {}> : {}) & UnionToIntersection<InferRoute<((C extends undefined ? {} : C) & {
|
|
3925
3925
|
baseURL: string | undefined;
|
|
3926
3926
|
fetchOptions: {
|
|
3927
3927
|
customFetchImpl: (url: string | URL | Request, init?: RequestInit | undefined) => Promise<Response>;
|
|
@@ -3996,7 +3996,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3996
3996
|
};
|
|
3997
3997
|
} | null> : Promise<Response>;
|
|
3998
3998
|
} & FilteredAPI<{
|
|
3999
|
-
readonly ok:
|
|
3999
|
+
readonly ok: better_call280.StrictEndpoint<"/ok", {
|
|
4000
4000
|
method: "GET";
|
|
4001
4001
|
metadata: {
|
|
4002
4002
|
openapi: {
|
|
@@ -4026,7 +4026,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
4026
4026
|
}, {
|
|
4027
4027
|
ok: boolean;
|
|
4028
4028
|
}>;
|
|
4029
|
-
readonly error:
|
|
4029
|
+
readonly error: better_call280.StrictEndpoint<"/error", {
|
|
4030
4030
|
method: "GET";
|
|
4031
4031
|
metadata: {
|
|
4032
4032
|
openapi: {
|
|
@@ -4048,7 +4048,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
4048
4048
|
scope: "server";
|
|
4049
4049
|
};
|
|
4050
4050
|
}, Response>;
|
|
4051
|
-
readonly signInSocial:
|
|
4051
|
+
readonly signInSocial: better_call280.StrictEndpoint<"/sign-in/social", {
|
|
4052
4052
|
method: "POST";
|
|
4053
4053
|
operationId: string;
|
|
4054
4054
|
body: zod604.ZodObject<{
|
|
@@ -4156,7 +4156,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
4156
4156
|
image?: string | null | undefined;
|
|
4157
4157
|
};
|
|
4158
4158
|
}>;
|
|
4159
|
-
readonly callbackOAuth:
|
|
4159
|
+
readonly callbackOAuth: better_call280.StrictEndpoint<"/callback/:id", {
|
|
4160
4160
|
method: ("GET" | "POST")[];
|
|
4161
4161
|
operationId: string;
|
|
4162
4162
|
body: zod604.ZodOptional<zod604.ZodObject<{
|
|
@@ -4180,7 +4180,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
4180
4180
|
scope: "server";
|
|
4181
4181
|
};
|
|
4182
4182
|
}, void>;
|
|
4183
|
-
readonly getSession:
|
|
4183
|
+
readonly getSession: better_call280.StrictEndpoint<"/get-session", {
|
|
4184
4184
|
method: "GET";
|
|
4185
4185
|
operationId: string;
|
|
4186
4186
|
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
@@ -4237,7 +4237,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
4237
4237
|
image?: string | null | undefined;
|
|
4238
4238
|
};
|
|
4239
4239
|
} | null>;
|
|
4240
|
-
readonly signOut:
|
|
4240
|
+
readonly signOut: better_call280.StrictEndpoint<"/sign-out", {
|
|
4241
4241
|
method: "POST";
|
|
4242
4242
|
operationId: string;
|
|
4243
4243
|
requireHeaders: true;
|
|
@@ -4267,10 +4267,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
4267
4267
|
}, {
|
|
4268
4268
|
success: boolean;
|
|
4269
4269
|
}>;
|
|
4270
|
-
readonly signUpEmail:
|
|
4270
|
+
readonly signUpEmail: better_call280.StrictEndpoint<"/sign-up/email", {
|
|
4271
4271
|
method: "POST";
|
|
4272
4272
|
operationId: string;
|
|
4273
|
-
use: ((inputContext:
|
|
4273
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
4274
4274
|
body: zod604.ZodIntersection<zod604.ZodObject<{
|
|
4275
4275
|
name: zod604.ZodString;
|
|
4276
4276
|
email: zod604.ZodEmail;
|
|
@@ -4441,10 +4441,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
4441
4441
|
image?: string | null | undefined;
|
|
4442
4442
|
};
|
|
4443
4443
|
}>;
|
|
4444
|
-
readonly signInEmail:
|
|
4444
|
+
readonly signInEmail: better_call280.StrictEndpoint<"/sign-in/email", {
|
|
4445
4445
|
method: "POST";
|
|
4446
4446
|
operationId: string;
|
|
4447
|
-
use: ((inputContext:
|
|
4447
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
4448
4448
|
body: zod604.ZodObject<{
|
|
4449
4449
|
email: zod604.ZodString;
|
|
4450
4450
|
password: zod604.ZodString;
|
|
@@ -4526,7 +4526,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
4526
4526
|
image?: string | null | undefined;
|
|
4527
4527
|
};
|
|
4528
4528
|
}>;
|
|
4529
|
-
readonly resetPassword:
|
|
4529
|
+
readonly resetPassword: better_call280.StrictEndpoint<"/reset-password", {
|
|
4530
4530
|
method: "POST";
|
|
4531
4531
|
operationId: string;
|
|
4532
4532
|
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
@@ -4562,7 +4562,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
4562
4562
|
}, {
|
|
4563
4563
|
status: boolean;
|
|
4564
4564
|
}>;
|
|
4565
|
-
readonly verifyPassword:
|
|
4565
|
+
readonly verifyPassword: better_call280.StrictEndpoint<"/verify-password", {
|
|
4566
4566
|
method: "POST";
|
|
4567
4567
|
body: zod604.ZodObject<{
|
|
4568
4568
|
password: zod604.ZodString;
|
|
@@ -4591,7 +4591,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
4591
4591
|
};
|
|
4592
4592
|
};
|
|
4593
4593
|
};
|
|
4594
|
-
use: ((inputContext:
|
|
4594
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
4595
4595
|
session: {
|
|
4596
4596
|
session: Record<string, any> & {
|
|
4597
4597
|
id: string;
|
|
@@ -4617,14 +4617,14 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
4617
4617
|
}, {
|
|
4618
4618
|
status: boolean;
|
|
4619
4619
|
}>;
|
|
4620
|
-
readonly verifyEmail:
|
|
4620
|
+
readonly verifyEmail: better_call280.StrictEndpoint<"/verify-email", {
|
|
4621
4621
|
method: "GET";
|
|
4622
4622
|
operationId: string;
|
|
4623
4623
|
query: zod604.ZodObject<{
|
|
4624
4624
|
token: zod604.ZodString;
|
|
4625
4625
|
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
4626
4626
|
}, zod_v4_core83.$strip>;
|
|
4627
|
-
use: ((inputContext:
|
|
4627
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
4628
4628
|
metadata: {
|
|
4629
4629
|
openapi: {
|
|
4630
4630
|
description: string;
|
|
@@ -4673,7 +4673,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
4673
4673
|
}, void | {
|
|
4674
4674
|
status: boolean;
|
|
4675
4675
|
}>;
|
|
4676
|
-
readonly sendVerificationEmail:
|
|
4676
|
+
readonly sendVerificationEmail: better_call280.StrictEndpoint<"/send-verification-email", {
|
|
4677
4677
|
method: "POST";
|
|
4678
4678
|
operationId: string;
|
|
4679
4679
|
body: zod604.ZodObject<{
|
|
@@ -4748,13 +4748,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
4748
4748
|
}, {
|
|
4749
4749
|
status: boolean;
|
|
4750
4750
|
}>;
|
|
4751
|
-
readonly changeEmail:
|
|
4751
|
+
readonly changeEmail: better_call280.StrictEndpoint<"/change-email", {
|
|
4752
4752
|
method: "POST";
|
|
4753
4753
|
body: zod604.ZodObject<{
|
|
4754
4754
|
newEmail: zod604.ZodEmail;
|
|
4755
4755
|
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
4756
4756
|
}, zod_v4_core83.$strip>;
|
|
4757
|
-
use: ((inputContext:
|
|
4757
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
4758
4758
|
session: {
|
|
4759
4759
|
session: Record<string, any> & {
|
|
4760
4760
|
id: string;
|
|
@@ -4829,7 +4829,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
4829
4829
|
}, {
|
|
4830
4830
|
status: boolean;
|
|
4831
4831
|
}>;
|
|
4832
|
-
readonly changePassword:
|
|
4832
|
+
readonly changePassword: better_call280.StrictEndpoint<"/change-password", {
|
|
4833
4833
|
method: "POST";
|
|
4834
4834
|
operationId: string;
|
|
4835
4835
|
body: zod604.ZodObject<{
|
|
@@ -4837,7 +4837,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
4837
4837
|
currentPassword: zod604.ZodString;
|
|
4838
4838
|
revokeOtherSessions: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
4839
4839
|
}, zod_v4_core83.$strip>;
|
|
4840
|
-
use: ((inputContext:
|
|
4840
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
4841
4841
|
session: {
|
|
4842
4842
|
session: Record<string, any> & {
|
|
4843
4843
|
id: string;
|
|
@@ -4937,12 +4937,12 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
4937
4937
|
image?: string | null | undefined;
|
|
4938
4938
|
} & Record<string, any>;
|
|
4939
4939
|
}>;
|
|
4940
|
-
readonly setPassword:
|
|
4940
|
+
readonly setPassword: better_call280.StrictEndpoint<string, {
|
|
4941
4941
|
method: "POST";
|
|
4942
4942
|
body: zod604.ZodObject<{
|
|
4943
4943
|
newPassword: zod604.ZodString;
|
|
4944
4944
|
}, zod_v4_core83.$strip>;
|
|
4945
|
-
use: ((inputContext:
|
|
4945
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
4946
4946
|
session: {
|
|
4947
4947
|
session: Record<string, any> & {
|
|
4948
4948
|
id: string;
|
|
@@ -4968,11 +4968,11 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
4968
4968
|
}, {
|
|
4969
4969
|
status: boolean;
|
|
4970
4970
|
}>;
|
|
4971
|
-
readonly updateUser:
|
|
4971
|
+
readonly updateUser: better_call280.StrictEndpoint<"/update-user", {
|
|
4972
4972
|
method: "POST";
|
|
4973
4973
|
operationId: string;
|
|
4974
4974
|
body: zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>;
|
|
4975
|
-
use: ((inputContext:
|
|
4975
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
4976
4976
|
session: {
|
|
4977
4977
|
session: Record<string, any> & {
|
|
4978
4978
|
id: string;
|
|
@@ -5048,9 +5048,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5048
5048
|
}, {
|
|
5049
5049
|
status: boolean;
|
|
5050
5050
|
}>;
|
|
5051
|
-
readonly deleteUser:
|
|
5051
|
+
readonly deleteUser: better_call280.StrictEndpoint<"/delete-user", {
|
|
5052
5052
|
method: "POST";
|
|
5053
|
-
use: ((inputContext:
|
|
5053
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
5054
5054
|
session: {
|
|
5055
5055
|
session: Record<string, any> & {
|
|
5056
5056
|
id: string;
|
|
@@ -5135,7 +5135,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5135
5135
|
success: boolean;
|
|
5136
5136
|
message: string;
|
|
5137
5137
|
}>;
|
|
5138
|
-
readonly requestPasswordReset:
|
|
5138
|
+
readonly requestPasswordReset: better_call280.StrictEndpoint<"/request-password-reset", {
|
|
5139
5139
|
method: "POST";
|
|
5140
5140
|
body: zod604.ZodObject<{
|
|
5141
5141
|
email: zod604.ZodEmail;
|
|
@@ -5171,13 +5171,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5171
5171
|
status: boolean;
|
|
5172
5172
|
message: string;
|
|
5173
5173
|
}>;
|
|
5174
|
-
readonly requestPasswordResetCallback:
|
|
5174
|
+
readonly requestPasswordResetCallback: better_call280.StrictEndpoint<"/reset-password/:token", {
|
|
5175
5175
|
method: "GET";
|
|
5176
5176
|
operationId: string;
|
|
5177
5177
|
query: zod604.ZodObject<{
|
|
5178
5178
|
callbackURL: zod604.ZodString;
|
|
5179
5179
|
}, zod_v4_core83.$strip>;
|
|
5180
|
-
use: ((inputContext:
|
|
5180
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
5181
5181
|
metadata: {
|
|
5182
5182
|
openapi: {
|
|
5183
5183
|
operationId: string;
|
|
@@ -5219,10 +5219,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5219
5219
|
};
|
|
5220
5220
|
};
|
|
5221
5221
|
}, never>;
|
|
5222
|
-
readonly listSessions:
|
|
5222
|
+
readonly listSessions: better_call280.StrictEndpoint<"/list-sessions", {
|
|
5223
5223
|
method: "GET";
|
|
5224
5224
|
operationId: string;
|
|
5225
|
-
use: ((inputContext:
|
|
5225
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
5226
5226
|
session: {
|
|
5227
5227
|
session: Record<string, any> & {
|
|
5228
5228
|
id: string;
|
|
@@ -5277,12 +5277,12 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5277
5277
|
ipAddress?: string | null | undefined;
|
|
5278
5278
|
userAgent?: string | null | undefined;
|
|
5279
5279
|
}>[]>;
|
|
5280
|
-
readonly revokeSession:
|
|
5280
|
+
readonly revokeSession: better_call280.StrictEndpoint<"/revoke-session", {
|
|
5281
5281
|
method: "POST";
|
|
5282
5282
|
body: zod604.ZodObject<{
|
|
5283
5283
|
token: zod604.ZodString;
|
|
5284
5284
|
}, zod_v4_core83.$strip>;
|
|
5285
|
-
use: ((inputContext:
|
|
5285
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
5286
5286
|
session: {
|
|
5287
5287
|
session: Record<string, any> & {
|
|
5288
5288
|
id: string;
|
|
@@ -5349,9 +5349,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5349
5349
|
}, {
|
|
5350
5350
|
status: boolean;
|
|
5351
5351
|
}>;
|
|
5352
|
-
readonly revokeSessions:
|
|
5352
|
+
readonly revokeSessions: better_call280.StrictEndpoint<"/revoke-sessions", {
|
|
5353
5353
|
method: "POST";
|
|
5354
|
-
use: ((inputContext:
|
|
5354
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
5355
5355
|
session: {
|
|
5356
5356
|
session: Record<string, any> & {
|
|
5357
5357
|
id: string;
|
|
@@ -5402,10 +5402,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5402
5402
|
}, {
|
|
5403
5403
|
status: boolean;
|
|
5404
5404
|
}>;
|
|
5405
|
-
readonly revokeOtherSessions:
|
|
5405
|
+
readonly revokeOtherSessions: better_call280.StrictEndpoint<"/revoke-other-sessions", {
|
|
5406
5406
|
method: "POST";
|
|
5407
5407
|
requireHeaders: true;
|
|
5408
|
-
use: ((inputContext:
|
|
5408
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
5409
5409
|
session: {
|
|
5410
5410
|
session: Record<string, any> & {
|
|
5411
5411
|
id: string;
|
|
@@ -5455,7 +5455,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5455
5455
|
}, {
|
|
5456
5456
|
status: boolean;
|
|
5457
5457
|
}>;
|
|
5458
|
-
readonly linkSocialAccount:
|
|
5458
|
+
readonly linkSocialAccount: better_call280.StrictEndpoint<"/link-social", {
|
|
5459
5459
|
method: "POST";
|
|
5460
5460
|
requireHeaders: true;
|
|
5461
5461
|
body: zod604.ZodObject<{
|
|
@@ -5474,7 +5474,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5474
5474
|
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
5475
5475
|
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
5476
5476
|
}, zod_v4_core83.$strip>;
|
|
5477
|
-
use: ((inputContext:
|
|
5477
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
5478
5478
|
session: {
|
|
5479
5479
|
session: Record<string, any> & {
|
|
5480
5480
|
id: string;
|
|
@@ -5533,9 +5533,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5533
5533
|
url: string;
|
|
5534
5534
|
redirect: boolean;
|
|
5535
5535
|
}>;
|
|
5536
|
-
readonly listUserAccounts:
|
|
5536
|
+
readonly listUserAccounts: better_call280.StrictEndpoint<"/list-accounts", {
|
|
5537
5537
|
method: "GET";
|
|
5538
|
-
use: ((inputContext:
|
|
5538
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
5539
5539
|
session: {
|
|
5540
5540
|
session: Record<string, any> & {
|
|
5541
5541
|
id: string;
|
|
@@ -5617,13 +5617,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5617
5617
|
providerId: string;
|
|
5618
5618
|
accountId: string;
|
|
5619
5619
|
}[]>;
|
|
5620
|
-
readonly deleteUserCallback:
|
|
5620
|
+
readonly deleteUserCallback: better_call280.StrictEndpoint<"/delete-user/callback", {
|
|
5621
5621
|
method: "GET";
|
|
5622
5622
|
query: zod604.ZodObject<{
|
|
5623
5623
|
token: zod604.ZodString;
|
|
5624
5624
|
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
5625
5625
|
}, zod_v4_core83.$strip>;
|
|
5626
|
-
use: ((inputContext:
|
|
5626
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
5627
5627
|
metadata: {
|
|
5628
5628
|
openapi: {
|
|
5629
5629
|
description: string;
|
|
@@ -5657,13 +5657,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5657
5657
|
success: boolean;
|
|
5658
5658
|
message: string;
|
|
5659
5659
|
}>;
|
|
5660
|
-
readonly unlinkAccount:
|
|
5660
|
+
readonly unlinkAccount: better_call280.StrictEndpoint<"/unlink-account", {
|
|
5661
5661
|
method: "POST";
|
|
5662
5662
|
body: zod604.ZodObject<{
|
|
5663
5663
|
providerId: zod604.ZodString;
|
|
5664
5664
|
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
5665
5665
|
}, zod_v4_core83.$strip>;
|
|
5666
|
-
use: ((inputContext:
|
|
5666
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
5667
5667
|
session: {
|
|
5668
5668
|
session: Record<string, any> & {
|
|
5669
5669
|
id: string;
|
|
@@ -5711,7 +5711,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5711
5711
|
}, {
|
|
5712
5712
|
status: boolean;
|
|
5713
5713
|
}>;
|
|
5714
|
-
readonly refreshToken:
|
|
5714
|
+
readonly refreshToken: better_call280.StrictEndpoint<"/refresh-token", {
|
|
5715
5715
|
method: "POST";
|
|
5716
5716
|
body: zod604.ZodObject<{
|
|
5717
5717
|
providerId: zod604.ZodString;
|
|
@@ -5770,7 +5770,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5770
5770
|
providerId: string;
|
|
5771
5771
|
accountId: string;
|
|
5772
5772
|
}>;
|
|
5773
|
-
readonly getAccessToken:
|
|
5773
|
+
readonly getAccessToken: better_call280.StrictEndpoint<"/get-access-token", {
|
|
5774
5774
|
method: "POST";
|
|
5775
5775
|
body: zod604.ZodObject<{
|
|
5776
5776
|
providerId: zod604.ZodString;
|
|
@@ -5818,9 +5818,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5818
5818
|
scopes: string[];
|
|
5819
5819
|
idToken: string | undefined;
|
|
5820
5820
|
}>;
|
|
5821
|
-
readonly accountInfo:
|
|
5821
|
+
readonly accountInfo: better_call280.StrictEndpoint<"/account-info", {
|
|
5822
5822
|
method: "GET";
|
|
5823
|
-
use: ((inputContext:
|
|
5823
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
5824
5824
|
session: {
|
|
5825
5825
|
session: Record<string, any> & {
|
|
5826
5826
|
id: string;
|
|
@@ -5907,7 +5907,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5907
5907
|
} ? Plug extends {
|
|
5908
5908
|
endpoints: infer Endpoints;
|
|
5909
5909
|
} ? Endpoints : {} : {}> : {}) : InferAPI<{
|
|
5910
|
-
readonly ok:
|
|
5910
|
+
readonly ok: better_call280.StrictEndpoint<"/ok", {
|
|
5911
5911
|
method: "GET";
|
|
5912
5912
|
metadata: {
|
|
5913
5913
|
openapi: {
|
|
@@ -5937,7 +5937,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5937
5937
|
}, {
|
|
5938
5938
|
ok: boolean;
|
|
5939
5939
|
}>;
|
|
5940
|
-
readonly error:
|
|
5940
|
+
readonly error: better_call280.StrictEndpoint<"/error", {
|
|
5941
5941
|
method: "GET";
|
|
5942
5942
|
metadata: {
|
|
5943
5943
|
openapi: {
|
|
@@ -5959,7 +5959,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5959
5959
|
scope: "server";
|
|
5960
5960
|
};
|
|
5961
5961
|
}, Response>;
|
|
5962
|
-
readonly signInSocial:
|
|
5962
|
+
readonly signInSocial: better_call280.StrictEndpoint<"/sign-in/social", {
|
|
5963
5963
|
method: "POST";
|
|
5964
5964
|
operationId: string;
|
|
5965
5965
|
body: zod604.ZodObject<{
|
|
@@ -6067,7 +6067,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
6067
6067
|
image?: string | null | undefined;
|
|
6068
6068
|
};
|
|
6069
6069
|
}>;
|
|
6070
|
-
readonly callbackOAuth:
|
|
6070
|
+
readonly callbackOAuth: better_call280.StrictEndpoint<"/callback/:id", {
|
|
6071
6071
|
method: ("GET" | "POST")[];
|
|
6072
6072
|
operationId: string;
|
|
6073
6073
|
body: zod604.ZodOptional<zod604.ZodObject<{
|
|
@@ -6091,7 +6091,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
6091
6091
|
scope: "server";
|
|
6092
6092
|
};
|
|
6093
6093
|
}, void>;
|
|
6094
|
-
readonly getSession:
|
|
6094
|
+
readonly getSession: better_call280.StrictEndpoint<"/get-session", {
|
|
6095
6095
|
method: "GET";
|
|
6096
6096
|
operationId: string;
|
|
6097
6097
|
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
@@ -6148,7 +6148,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
6148
6148
|
image?: string | null | undefined;
|
|
6149
6149
|
};
|
|
6150
6150
|
} | null>;
|
|
6151
|
-
readonly signOut:
|
|
6151
|
+
readonly signOut: better_call280.StrictEndpoint<"/sign-out", {
|
|
6152
6152
|
method: "POST";
|
|
6153
6153
|
operationId: string;
|
|
6154
6154
|
requireHeaders: true;
|
|
@@ -6178,10 +6178,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
6178
6178
|
}, {
|
|
6179
6179
|
success: boolean;
|
|
6180
6180
|
}>;
|
|
6181
|
-
readonly signUpEmail:
|
|
6181
|
+
readonly signUpEmail: better_call280.StrictEndpoint<"/sign-up/email", {
|
|
6182
6182
|
method: "POST";
|
|
6183
6183
|
operationId: string;
|
|
6184
|
-
use: ((inputContext:
|
|
6184
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
6185
6185
|
body: zod604.ZodIntersection<zod604.ZodObject<{
|
|
6186
6186
|
name: zod604.ZodString;
|
|
6187
6187
|
email: zod604.ZodEmail;
|
|
@@ -6352,10 +6352,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
6352
6352
|
image?: string | null | undefined;
|
|
6353
6353
|
};
|
|
6354
6354
|
}>;
|
|
6355
|
-
readonly signInEmail:
|
|
6355
|
+
readonly signInEmail: better_call280.StrictEndpoint<"/sign-in/email", {
|
|
6356
6356
|
method: "POST";
|
|
6357
6357
|
operationId: string;
|
|
6358
|
-
use: ((inputContext:
|
|
6358
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
6359
6359
|
body: zod604.ZodObject<{
|
|
6360
6360
|
email: zod604.ZodString;
|
|
6361
6361
|
password: zod604.ZodString;
|
|
@@ -6437,7 +6437,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
6437
6437
|
image?: string | null | undefined;
|
|
6438
6438
|
};
|
|
6439
6439
|
}>;
|
|
6440
|
-
readonly resetPassword:
|
|
6440
|
+
readonly resetPassword: better_call280.StrictEndpoint<"/reset-password", {
|
|
6441
6441
|
method: "POST";
|
|
6442
6442
|
operationId: string;
|
|
6443
6443
|
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
@@ -6473,7 +6473,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
6473
6473
|
}, {
|
|
6474
6474
|
status: boolean;
|
|
6475
6475
|
}>;
|
|
6476
|
-
readonly verifyPassword:
|
|
6476
|
+
readonly verifyPassword: better_call280.StrictEndpoint<"/verify-password", {
|
|
6477
6477
|
method: "POST";
|
|
6478
6478
|
body: zod604.ZodObject<{
|
|
6479
6479
|
password: zod604.ZodString;
|
|
@@ -6502,7 +6502,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
6502
6502
|
};
|
|
6503
6503
|
};
|
|
6504
6504
|
};
|
|
6505
|
-
use: ((inputContext:
|
|
6505
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
6506
6506
|
session: {
|
|
6507
6507
|
session: Record<string, any> & {
|
|
6508
6508
|
id: string;
|
|
@@ -6528,14 +6528,14 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
6528
6528
|
}, {
|
|
6529
6529
|
status: boolean;
|
|
6530
6530
|
}>;
|
|
6531
|
-
readonly verifyEmail:
|
|
6531
|
+
readonly verifyEmail: better_call280.StrictEndpoint<"/verify-email", {
|
|
6532
6532
|
method: "GET";
|
|
6533
6533
|
operationId: string;
|
|
6534
6534
|
query: zod604.ZodObject<{
|
|
6535
6535
|
token: zod604.ZodString;
|
|
6536
6536
|
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
6537
6537
|
}, zod_v4_core83.$strip>;
|
|
6538
|
-
use: ((inputContext:
|
|
6538
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
6539
6539
|
metadata: {
|
|
6540
6540
|
openapi: {
|
|
6541
6541
|
description: string;
|
|
@@ -6584,7 +6584,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
6584
6584
|
}, void | {
|
|
6585
6585
|
status: boolean;
|
|
6586
6586
|
}>;
|
|
6587
|
-
readonly sendVerificationEmail:
|
|
6587
|
+
readonly sendVerificationEmail: better_call280.StrictEndpoint<"/send-verification-email", {
|
|
6588
6588
|
method: "POST";
|
|
6589
6589
|
operationId: string;
|
|
6590
6590
|
body: zod604.ZodObject<{
|
|
@@ -6659,13 +6659,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
6659
6659
|
}, {
|
|
6660
6660
|
status: boolean;
|
|
6661
6661
|
}>;
|
|
6662
|
-
readonly changeEmail:
|
|
6662
|
+
readonly changeEmail: better_call280.StrictEndpoint<"/change-email", {
|
|
6663
6663
|
method: "POST";
|
|
6664
6664
|
body: zod604.ZodObject<{
|
|
6665
6665
|
newEmail: zod604.ZodEmail;
|
|
6666
6666
|
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
6667
6667
|
}, zod_v4_core83.$strip>;
|
|
6668
|
-
use: ((inputContext:
|
|
6668
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
6669
6669
|
session: {
|
|
6670
6670
|
session: Record<string, any> & {
|
|
6671
6671
|
id: string;
|
|
@@ -6740,7 +6740,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
6740
6740
|
}, {
|
|
6741
6741
|
status: boolean;
|
|
6742
6742
|
}>;
|
|
6743
|
-
readonly changePassword:
|
|
6743
|
+
readonly changePassword: better_call280.StrictEndpoint<"/change-password", {
|
|
6744
6744
|
method: "POST";
|
|
6745
6745
|
operationId: string;
|
|
6746
6746
|
body: zod604.ZodObject<{
|
|
@@ -6748,7 +6748,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
6748
6748
|
currentPassword: zod604.ZodString;
|
|
6749
6749
|
revokeOtherSessions: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
6750
6750
|
}, zod_v4_core83.$strip>;
|
|
6751
|
-
use: ((inputContext:
|
|
6751
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
6752
6752
|
session: {
|
|
6753
6753
|
session: Record<string, any> & {
|
|
6754
6754
|
id: string;
|
|
@@ -6848,12 +6848,12 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
6848
6848
|
image?: string | null | undefined;
|
|
6849
6849
|
} & Record<string, any>;
|
|
6850
6850
|
}>;
|
|
6851
|
-
readonly setPassword:
|
|
6851
|
+
readonly setPassword: better_call280.StrictEndpoint<string, {
|
|
6852
6852
|
method: "POST";
|
|
6853
6853
|
body: zod604.ZodObject<{
|
|
6854
6854
|
newPassword: zod604.ZodString;
|
|
6855
6855
|
}, zod_v4_core83.$strip>;
|
|
6856
|
-
use: ((inputContext:
|
|
6856
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
6857
6857
|
session: {
|
|
6858
6858
|
session: Record<string, any> & {
|
|
6859
6859
|
id: string;
|
|
@@ -6879,11 +6879,11 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
6879
6879
|
}, {
|
|
6880
6880
|
status: boolean;
|
|
6881
6881
|
}>;
|
|
6882
|
-
readonly updateUser:
|
|
6882
|
+
readonly updateUser: better_call280.StrictEndpoint<"/update-user", {
|
|
6883
6883
|
method: "POST";
|
|
6884
6884
|
operationId: string;
|
|
6885
6885
|
body: zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>;
|
|
6886
|
-
use: ((inputContext:
|
|
6886
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
6887
6887
|
session: {
|
|
6888
6888
|
session: Record<string, any> & {
|
|
6889
6889
|
id: string;
|
|
@@ -6959,9 +6959,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
6959
6959
|
}, {
|
|
6960
6960
|
status: boolean;
|
|
6961
6961
|
}>;
|
|
6962
|
-
readonly deleteUser:
|
|
6962
|
+
readonly deleteUser: better_call280.StrictEndpoint<"/delete-user", {
|
|
6963
6963
|
method: "POST";
|
|
6964
|
-
use: ((inputContext:
|
|
6964
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
6965
6965
|
session: {
|
|
6966
6966
|
session: Record<string, any> & {
|
|
6967
6967
|
id: string;
|
|
@@ -7046,7 +7046,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7046
7046
|
success: boolean;
|
|
7047
7047
|
message: string;
|
|
7048
7048
|
}>;
|
|
7049
|
-
readonly requestPasswordReset:
|
|
7049
|
+
readonly requestPasswordReset: better_call280.StrictEndpoint<"/request-password-reset", {
|
|
7050
7050
|
method: "POST";
|
|
7051
7051
|
body: zod604.ZodObject<{
|
|
7052
7052
|
email: zod604.ZodEmail;
|
|
@@ -7082,13 +7082,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7082
7082
|
status: boolean;
|
|
7083
7083
|
message: string;
|
|
7084
7084
|
}>;
|
|
7085
|
-
readonly requestPasswordResetCallback:
|
|
7085
|
+
readonly requestPasswordResetCallback: better_call280.StrictEndpoint<"/reset-password/:token", {
|
|
7086
7086
|
method: "GET";
|
|
7087
7087
|
operationId: string;
|
|
7088
7088
|
query: zod604.ZodObject<{
|
|
7089
7089
|
callbackURL: zod604.ZodString;
|
|
7090
7090
|
}, zod_v4_core83.$strip>;
|
|
7091
|
-
use: ((inputContext:
|
|
7091
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
7092
7092
|
metadata: {
|
|
7093
7093
|
openapi: {
|
|
7094
7094
|
operationId: string;
|
|
@@ -7130,10 +7130,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7130
7130
|
};
|
|
7131
7131
|
};
|
|
7132
7132
|
}, never>;
|
|
7133
|
-
readonly listSessions:
|
|
7133
|
+
readonly listSessions: better_call280.StrictEndpoint<"/list-sessions", {
|
|
7134
7134
|
method: "GET";
|
|
7135
7135
|
operationId: string;
|
|
7136
|
-
use: ((inputContext:
|
|
7136
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
7137
7137
|
session: {
|
|
7138
7138
|
session: Record<string, any> & {
|
|
7139
7139
|
id: string;
|
|
@@ -7188,12 +7188,12 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7188
7188
|
ipAddress?: string | null | undefined;
|
|
7189
7189
|
userAgent?: string | null | undefined;
|
|
7190
7190
|
}>[]>;
|
|
7191
|
-
readonly revokeSession:
|
|
7191
|
+
readonly revokeSession: better_call280.StrictEndpoint<"/revoke-session", {
|
|
7192
7192
|
method: "POST";
|
|
7193
7193
|
body: zod604.ZodObject<{
|
|
7194
7194
|
token: zod604.ZodString;
|
|
7195
7195
|
}, zod_v4_core83.$strip>;
|
|
7196
|
-
use: ((inputContext:
|
|
7196
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
7197
7197
|
session: {
|
|
7198
7198
|
session: Record<string, any> & {
|
|
7199
7199
|
id: string;
|
|
@@ -7260,9 +7260,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7260
7260
|
}, {
|
|
7261
7261
|
status: boolean;
|
|
7262
7262
|
}>;
|
|
7263
|
-
readonly revokeSessions:
|
|
7263
|
+
readonly revokeSessions: better_call280.StrictEndpoint<"/revoke-sessions", {
|
|
7264
7264
|
method: "POST";
|
|
7265
|
-
use: ((inputContext:
|
|
7265
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
7266
7266
|
session: {
|
|
7267
7267
|
session: Record<string, any> & {
|
|
7268
7268
|
id: string;
|
|
@@ -7313,10 +7313,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7313
7313
|
}, {
|
|
7314
7314
|
status: boolean;
|
|
7315
7315
|
}>;
|
|
7316
|
-
readonly revokeOtherSessions:
|
|
7316
|
+
readonly revokeOtherSessions: better_call280.StrictEndpoint<"/revoke-other-sessions", {
|
|
7317
7317
|
method: "POST";
|
|
7318
7318
|
requireHeaders: true;
|
|
7319
|
-
use: ((inputContext:
|
|
7319
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
7320
7320
|
session: {
|
|
7321
7321
|
session: Record<string, any> & {
|
|
7322
7322
|
id: string;
|
|
@@ -7366,7 +7366,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7366
7366
|
}, {
|
|
7367
7367
|
status: boolean;
|
|
7368
7368
|
}>;
|
|
7369
|
-
readonly linkSocialAccount:
|
|
7369
|
+
readonly linkSocialAccount: better_call280.StrictEndpoint<"/link-social", {
|
|
7370
7370
|
method: "POST";
|
|
7371
7371
|
requireHeaders: true;
|
|
7372
7372
|
body: zod604.ZodObject<{
|
|
@@ -7385,7 +7385,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7385
7385
|
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
7386
7386
|
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
7387
7387
|
}, zod_v4_core83.$strip>;
|
|
7388
|
-
use: ((inputContext:
|
|
7388
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
7389
7389
|
session: {
|
|
7390
7390
|
session: Record<string, any> & {
|
|
7391
7391
|
id: string;
|
|
@@ -7444,9 +7444,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7444
7444
|
url: string;
|
|
7445
7445
|
redirect: boolean;
|
|
7446
7446
|
}>;
|
|
7447
|
-
readonly listUserAccounts:
|
|
7447
|
+
readonly listUserAccounts: better_call280.StrictEndpoint<"/list-accounts", {
|
|
7448
7448
|
method: "GET";
|
|
7449
|
-
use: ((inputContext:
|
|
7449
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
7450
7450
|
session: {
|
|
7451
7451
|
session: Record<string, any> & {
|
|
7452
7452
|
id: string;
|
|
@@ -7528,13 +7528,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7528
7528
|
providerId: string;
|
|
7529
7529
|
accountId: string;
|
|
7530
7530
|
}[]>;
|
|
7531
|
-
readonly deleteUserCallback:
|
|
7531
|
+
readonly deleteUserCallback: better_call280.StrictEndpoint<"/delete-user/callback", {
|
|
7532
7532
|
method: "GET";
|
|
7533
7533
|
query: zod604.ZodObject<{
|
|
7534
7534
|
token: zod604.ZodString;
|
|
7535
7535
|
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
7536
7536
|
}, zod_v4_core83.$strip>;
|
|
7537
|
-
use: ((inputContext:
|
|
7537
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
7538
7538
|
metadata: {
|
|
7539
7539
|
openapi: {
|
|
7540
7540
|
description: string;
|
|
@@ -7568,13 +7568,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7568
7568
|
success: boolean;
|
|
7569
7569
|
message: string;
|
|
7570
7570
|
}>;
|
|
7571
|
-
readonly unlinkAccount:
|
|
7571
|
+
readonly unlinkAccount: better_call280.StrictEndpoint<"/unlink-account", {
|
|
7572
7572
|
method: "POST";
|
|
7573
7573
|
body: zod604.ZodObject<{
|
|
7574
7574
|
providerId: zod604.ZodString;
|
|
7575
7575
|
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
7576
7576
|
}, zod_v4_core83.$strip>;
|
|
7577
|
-
use: ((inputContext:
|
|
7577
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
7578
7578
|
session: {
|
|
7579
7579
|
session: Record<string, any> & {
|
|
7580
7580
|
id: string;
|
|
@@ -7622,7 +7622,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7622
7622
|
}, {
|
|
7623
7623
|
status: boolean;
|
|
7624
7624
|
}>;
|
|
7625
|
-
readonly refreshToken:
|
|
7625
|
+
readonly refreshToken: better_call280.StrictEndpoint<"/refresh-token", {
|
|
7626
7626
|
method: "POST";
|
|
7627
7627
|
body: zod604.ZodObject<{
|
|
7628
7628
|
providerId: zod604.ZodString;
|
|
@@ -7681,7 +7681,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7681
7681
|
providerId: string;
|
|
7682
7682
|
accountId: string;
|
|
7683
7683
|
}>;
|
|
7684
|
-
readonly getAccessToken:
|
|
7684
|
+
readonly getAccessToken: better_call280.StrictEndpoint<"/get-access-token", {
|
|
7685
7685
|
method: "POST";
|
|
7686
7686
|
body: zod604.ZodObject<{
|
|
7687
7687
|
providerId: zod604.ZodString;
|
|
@@ -7729,9 +7729,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7729
7729
|
scopes: string[];
|
|
7730
7730
|
idToken: string | undefined;
|
|
7731
7731
|
}>;
|
|
7732
|
-
readonly accountInfo:
|
|
7732
|
+
readonly accountInfo: better_call280.StrictEndpoint<"/account-info", {
|
|
7733
7733
|
method: "GET";
|
|
7734
|
-
use: ((inputContext:
|
|
7734
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
7735
7735
|
session: {
|
|
7736
7736
|
session: Record<string, any> & {
|
|
7737
7737
|
id: string;
|
|
@@ -7826,15 +7826,15 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7826
7826
|
data: infer S;
|
|
7827
7827
|
error: null;
|
|
7828
7828
|
} ? S : Res extends Record<string, any> ? Res : never : never;
|
|
7829
|
-
error:
|
|
7829
|
+
error: _better_fetch_fetch79.BetterFetchError | null;
|
|
7830
7830
|
isPending: boolean;
|
|
7831
7831
|
isRefetching: boolean;
|
|
7832
7832
|
refetch: (queryParams?: {
|
|
7833
7833
|
query?: SessionQueryParams;
|
|
7834
7834
|
} | undefined) => Promise<void>;
|
|
7835
7835
|
}>;
|
|
7836
|
-
$fetch:
|
|
7837
|
-
plugins: (
|
|
7836
|
+
$fetch: _better_fetch_fetch79.BetterFetch<{
|
|
7837
|
+
plugins: (_better_fetch_fetch79.BetterFetchPlugin<Record<string, any>> | {
|
|
7838
7838
|
id: string;
|
|
7839
7839
|
name: string;
|
|
7840
7840
|
hooks: {
|
|
@@ -7845,9 +7845,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7845
7845
|
name: string;
|
|
7846
7846
|
hooks: {
|
|
7847
7847
|
onSuccess: ((context: SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
7848
|
-
onError: ((context:
|
|
7849
|
-
onRequest: (<T_1 extends Record<string, any>>(context:
|
|
7850
|
-
onResponse: ((context:
|
|
7848
|
+
onError: ((context: _better_fetch_fetch79.ErrorContext) => Promise<void> | void) | undefined;
|
|
7849
|
+
onRequest: (<T_1 extends Record<string, any>>(context: _better_fetch_fetch79.RequestContext<T_1>) => Promise<_better_fetch_fetch79.RequestContext | void> | _better_fetch_fetch79.RequestContext | void) | undefined;
|
|
7850
|
+
onResponse: ((context: _better_fetch_fetch79.ResponseContext) => Promise<Response | void | _better_fetch_fetch79.ResponseContext> | Response | _better_fetch_fetch79.ResponseContext | void) | undefined;
|
|
7851
7851
|
};
|
|
7852
7852
|
})[];
|
|
7853
7853
|
cache?: RequestCache | undefined;
|
|
@@ -7867,12 +7867,12 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7867
7867
|
referrer?: string | undefined;
|
|
7868
7868
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
7869
7869
|
signal?: (AbortSignal | null) | undefined;
|
|
7870
|
-
onRetry?: ((response:
|
|
7870
|
+
onRetry?: ((response: _better_fetch_fetch79.ResponseContext) => Promise<void> | void) | undefined;
|
|
7871
7871
|
hookOptions?: {
|
|
7872
7872
|
cloneResponse?: boolean;
|
|
7873
7873
|
} | undefined;
|
|
7874
7874
|
timeout?: number | undefined;
|
|
7875
|
-
customFetchImpl:
|
|
7875
|
+
customFetchImpl: _better_fetch_fetch79.FetchEsque;
|
|
7876
7876
|
baseURL: string;
|
|
7877
7877
|
throw?: boolean | undefined;
|
|
7878
7878
|
auth?: ({
|
|
@@ -7892,10 +7892,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7892
7892
|
params?: any;
|
|
7893
7893
|
duplex?: "full" | "half" | undefined;
|
|
7894
7894
|
jsonParser: (text: string) => Promise<any> | any;
|
|
7895
|
-
retry?:
|
|
7895
|
+
retry?: _better_fetch_fetch79.RetryOptions | undefined;
|
|
7896
7896
|
retryAttempt?: number | undefined;
|
|
7897
|
-
output?: (
|
|
7898
|
-
errorSchema?:
|
|
7897
|
+
output?: (_better_fetch_fetch79.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
7898
|
+
errorSchema?: _better_fetch_fetch79.StandardSchemaV1 | undefined;
|
|
7899
7899
|
disableValidation?: boolean | undefined;
|
|
7900
7900
|
disableSignal?: boolean | undefined;
|
|
7901
7901
|
}, unknown, unknown, {}>;
|
|
@@ -7964,7 +7964,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7964
7964
|
};
|
|
7965
7965
|
} | null> : Promise<Response>;
|
|
7966
7966
|
} & FilteredAPI<{
|
|
7967
|
-
readonly ok:
|
|
7967
|
+
readonly ok: better_call280.StrictEndpoint<"/ok", {
|
|
7968
7968
|
method: "GET";
|
|
7969
7969
|
metadata: {
|
|
7970
7970
|
openapi: {
|
|
@@ -7994,7 +7994,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7994
7994
|
}, {
|
|
7995
7995
|
ok: boolean;
|
|
7996
7996
|
}>;
|
|
7997
|
-
readonly error:
|
|
7997
|
+
readonly error: better_call280.StrictEndpoint<"/error", {
|
|
7998
7998
|
method: "GET";
|
|
7999
7999
|
metadata: {
|
|
8000
8000
|
openapi: {
|
|
@@ -8016,7 +8016,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
8016
8016
|
scope: "server";
|
|
8017
8017
|
};
|
|
8018
8018
|
}, Response>;
|
|
8019
|
-
readonly signInSocial:
|
|
8019
|
+
readonly signInSocial: better_call280.StrictEndpoint<"/sign-in/social", {
|
|
8020
8020
|
method: "POST";
|
|
8021
8021
|
operationId: string;
|
|
8022
8022
|
body: zod604.ZodObject<{
|
|
@@ -8124,7 +8124,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
8124
8124
|
image?: string | null | undefined;
|
|
8125
8125
|
};
|
|
8126
8126
|
}>;
|
|
8127
|
-
readonly callbackOAuth:
|
|
8127
|
+
readonly callbackOAuth: better_call280.StrictEndpoint<"/callback/:id", {
|
|
8128
8128
|
method: ("GET" | "POST")[];
|
|
8129
8129
|
operationId: string;
|
|
8130
8130
|
body: zod604.ZodOptional<zod604.ZodObject<{
|
|
@@ -8148,7 +8148,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
8148
8148
|
scope: "server";
|
|
8149
8149
|
};
|
|
8150
8150
|
}, void>;
|
|
8151
|
-
readonly getSession:
|
|
8151
|
+
readonly getSession: better_call280.StrictEndpoint<"/get-session", {
|
|
8152
8152
|
method: "GET";
|
|
8153
8153
|
operationId: string;
|
|
8154
8154
|
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
@@ -8205,7 +8205,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
8205
8205
|
image?: string | null | undefined;
|
|
8206
8206
|
};
|
|
8207
8207
|
} | null>;
|
|
8208
|
-
readonly signOut:
|
|
8208
|
+
readonly signOut: better_call280.StrictEndpoint<"/sign-out", {
|
|
8209
8209
|
method: "POST";
|
|
8210
8210
|
operationId: string;
|
|
8211
8211
|
requireHeaders: true;
|
|
@@ -8235,10 +8235,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
8235
8235
|
}, {
|
|
8236
8236
|
success: boolean;
|
|
8237
8237
|
}>;
|
|
8238
|
-
readonly signUpEmail:
|
|
8238
|
+
readonly signUpEmail: better_call280.StrictEndpoint<"/sign-up/email", {
|
|
8239
8239
|
method: "POST";
|
|
8240
8240
|
operationId: string;
|
|
8241
|
-
use: ((inputContext:
|
|
8241
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
8242
8242
|
body: zod604.ZodIntersection<zod604.ZodObject<{
|
|
8243
8243
|
name: zod604.ZodString;
|
|
8244
8244
|
email: zod604.ZodEmail;
|
|
@@ -8409,10 +8409,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
8409
8409
|
image?: string | null | undefined;
|
|
8410
8410
|
};
|
|
8411
8411
|
}>;
|
|
8412
|
-
readonly signInEmail:
|
|
8412
|
+
readonly signInEmail: better_call280.StrictEndpoint<"/sign-in/email", {
|
|
8413
8413
|
method: "POST";
|
|
8414
8414
|
operationId: string;
|
|
8415
|
-
use: ((inputContext:
|
|
8415
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
8416
8416
|
body: zod604.ZodObject<{
|
|
8417
8417
|
email: zod604.ZodString;
|
|
8418
8418
|
password: zod604.ZodString;
|
|
@@ -8494,7 +8494,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
8494
8494
|
image?: string | null | undefined;
|
|
8495
8495
|
};
|
|
8496
8496
|
}>;
|
|
8497
|
-
readonly resetPassword:
|
|
8497
|
+
readonly resetPassword: better_call280.StrictEndpoint<"/reset-password", {
|
|
8498
8498
|
method: "POST";
|
|
8499
8499
|
operationId: string;
|
|
8500
8500
|
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
@@ -8530,7 +8530,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
8530
8530
|
}, {
|
|
8531
8531
|
status: boolean;
|
|
8532
8532
|
}>;
|
|
8533
|
-
readonly verifyPassword:
|
|
8533
|
+
readonly verifyPassword: better_call280.StrictEndpoint<"/verify-password", {
|
|
8534
8534
|
method: "POST";
|
|
8535
8535
|
body: zod604.ZodObject<{
|
|
8536
8536
|
password: zod604.ZodString;
|
|
@@ -8559,7 +8559,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
8559
8559
|
};
|
|
8560
8560
|
};
|
|
8561
8561
|
};
|
|
8562
|
-
use: ((inputContext:
|
|
8562
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
8563
8563
|
session: {
|
|
8564
8564
|
session: Record<string, any> & {
|
|
8565
8565
|
id: string;
|
|
@@ -8585,14 +8585,14 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
8585
8585
|
}, {
|
|
8586
8586
|
status: boolean;
|
|
8587
8587
|
}>;
|
|
8588
|
-
readonly verifyEmail:
|
|
8588
|
+
readonly verifyEmail: better_call280.StrictEndpoint<"/verify-email", {
|
|
8589
8589
|
method: "GET";
|
|
8590
8590
|
operationId: string;
|
|
8591
8591
|
query: zod604.ZodObject<{
|
|
8592
8592
|
token: zod604.ZodString;
|
|
8593
8593
|
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
8594
8594
|
}, zod_v4_core83.$strip>;
|
|
8595
|
-
use: ((inputContext:
|
|
8595
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
8596
8596
|
metadata: {
|
|
8597
8597
|
openapi: {
|
|
8598
8598
|
description: string;
|
|
@@ -8641,7 +8641,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
8641
8641
|
}, void | {
|
|
8642
8642
|
status: boolean;
|
|
8643
8643
|
}>;
|
|
8644
|
-
readonly sendVerificationEmail:
|
|
8644
|
+
readonly sendVerificationEmail: better_call280.StrictEndpoint<"/send-verification-email", {
|
|
8645
8645
|
method: "POST";
|
|
8646
8646
|
operationId: string;
|
|
8647
8647
|
body: zod604.ZodObject<{
|
|
@@ -8716,13 +8716,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
8716
8716
|
}, {
|
|
8717
8717
|
status: boolean;
|
|
8718
8718
|
}>;
|
|
8719
|
-
readonly changeEmail:
|
|
8719
|
+
readonly changeEmail: better_call280.StrictEndpoint<"/change-email", {
|
|
8720
8720
|
method: "POST";
|
|
8721
8721
|
body: zod604.ZodObject<{
|
|
8722
8722
|
newEmail: zod604.ZodEmail;
|
|
8723
8723
|
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
8724
8724
|
}, zod_v4_core83.$strip>;
|
|
8725
|
-
use: ((inputContext:
|
|
8725
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
8726
8726
|
session: {
|
|
8727
8727
|
session: Record<string, any> & {
|
|
8728
8728
|
id: string;
|
|
@@ -8797,7 +8797,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
8797
8797
|
}, {
|
|
8798
8798
|
status: boolean;
|
|
8799
8799
|
}>;
|
|
8800
|
-
readonly changePassword:
|
|
8800
|
+
readonly changePassword: better_call280.StrictEndpoint<"/change-password", {
|
|
8801
8801
|
method: "POST";
|
|
8802
8802
|
operationId: string;
|
|
8803
8803
|
body: zod604.ZodObject<{
|
|
@@ -8805,7 +8805,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
8805
8805
|
currentPassword: zod604.ZodString;
|
|
8806
8806
|
revokeOtherSessions: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
8807
8807
|
}, zod_v4_core83.$strip>;
|
|
8808
|
-
use: ((inputContext:
|
|
8808
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
8809
8809
|
session: {
|
|
8810
8810
|
session: Record<string, any> & {
|
|
8811
8811
|
id: string;
|
|
@@ -8905,12 +8905,12 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
8905
8905
|
image?: string | null | undefined;
|
|
8906
8906
|
} & Record<string, any>;
|
|
8907
8907
|
}>;
|
|
8908
|
-
readonly setPassword:
|
|
8908
|
+
readonly setPassword: better_call280.StrictEndpoint<string, {
|
|
8909
8909
|
method: "POST";
|
|
8910
8910
|
body: zod604.ZodObject<{
|
|
8911
8911
|
newPassword: zod604.ZodString;
|
|
8912
8912
|
}, zod_v4_core83.$strip>;
|
|
8913
|
-
use: ((inputContext:
|
|
8913
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
8914
8914
|
session: {
|
|
8915
8915
|
session: Record<string, any> & {
|
|
8916
8916
|
id: string;
|
|
@@ -8936,11 +8936,11 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
8936
8936
|
}, {
|
|
8937
8937
|
status: boolean;
|
|
8938
8938
|
}>;
|
|
8939
|
-
readonly updateUser:
|
|
8939
|
+
readonly updateUser: better_call280.StrictEndpoint<"/update-user", {
|
|
8940
8940
|
method: "POST";
|
|
8941
8941
|
operationId: string;
|
|
8942
8942
|
body: zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>;
|
|
8943
|
-
use: ((inputContext:
|
|
8943
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
8944
8944
|
session: {
|
|
8945
8945
|
session: Record<string, any> & {
|
|
8946
8946
|
id: string;
|
|
@@ -9016,9 +9016,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9016
9016
|
}, {
|
|
9017
9017
|
status: boolean;
|
|
9018
9018
|
}>;
|
|
9019
|
-
readonly deleteUser:
|
|
9019
|
+
readonly deleteUser: better_call280.StrictEndpoint<"/delete-user", {
|
|
9020
9020
|
method: "POST";
|
|
9021
|
-
use: ((inputContext:
|
|
9021
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
9022
9022
|
session: {
|
|
9023
9023
|
session: Record<string, any> & {
|
|
9024
9024
|
id: string;
|
|
@@ -9103,7 +9103,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9103
9103
|
success: boolean;
|
|
9104
9104
|
message: string;
|
|
9105
9105
|
}>;
|
|
9106
|
-
readonly requestPasswordReset:
|
|
9106
|
+
readonly requestPasswordReset: better_call280.StrictEndpoint<"/request-password-reset", {
|
|
9107
9107
|
method: "POST";
|
|
9108
9108
|
body: zod604.ZodObject<{
|
|
9109
9109
|
email: zod604.ZodEmail;
|
|
@@ -9139,13 +9139,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9139
9139
|
status: boolean;
|
|
9140
9140
|
message: string;
|
|
9141
9141
|
}>;
|
|
9142
|
-
readonly requestPasswordResetCallback:
|
|
9142
|
+
readonly requestPasswordResetCallback: better_call280.StrictEndpoint<"/reset-password/:token", {
|
|
9143
9143
|
method: "GET";
|
|
9144
9144
|
operationId: string;
|
|
9145
9145
|
query: zod604.ZodObject<{
|
|
9146
9146
|
callbackURL: zod604.ZodString;
|
|
9147
9147
|
}, zod_v4_core83.$strip>;
|
|
9148
|
-
use: ((inputContext:
|
|
9148
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
9149
9149
|
metadata: {
|
|
9150
9150
|
openapi: {
|
|
9151
9151
|
operationId: string;
|
|
@@ -9187,10 +9187,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9187
9187
|
};
|
|
9188
9188
|
};
|
|
9189
9189
|
}, never>;
|
|
9190
|
-
readonly listSessions:
|
|
9190
|
+
readonly listSessions: better_call280.StrictEndpoint<"/list-sessions", {
|
|
9191
9191
|
method: "GET";
|
|
9192
9192
|
operationId: string;
|
|
9193
|
-
use: ((inputContext:
|
|
9193
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
9194
9194
|
session: {
|
|
9195
9195
|
session: Record<string, any> & {
|
|
9196
9196
|
id: string;
|
|
@@ -9245,12 +9245,12 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9245
9245
|
ipAddress?: string | null | undefined;
|
|
9246
9246
|
userAgent?: string | null | undefined;
|
|
9247
9247
|
}>[]>;
|
|
9248
|
-
readonly revokeSession:
|
|
9248
|
+
readonly revokeSession: better_call280.StrictEndpoint<"/revoke-session", {
|
|
9249
9249
|
method: "POST";
|
|
9250
9250
|
body: zod604.ZodObject<{
|
|
9251
9251
|
token: zod604.ZodString;
|
|
9252
9252
|
}, zod_v4_core83.$strip>;
|
|
9253
|
-
use: ((inputContext:
|
|
9253
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
9254
9254
|
session: {
|
|
9255
9255
|
session: Record<string, any> & {
|
|
9256
9256
|
id: string;
|
|
@@ -9317,9 +9317,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9317
9317
|
}, {
|
|
9318
9318
|
status: boolean;
|
|
9319
9319
|
}>;
|
|
9320
|
-
readonly revokeSessions:
|
|
9320
|
+
readonly revokeSessions: better_call280.StrictEndpoint<"/revoke-sessions", {
|
|
9321
9321
|
method: "POST";
|
|
9322
|
-
use: ((inputContext:
|
|
9322
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
9323
9323
|
session: {
|
|
9324
9324
|
session: Record<string, any> & {
|
|
9325
9325
|
id: string;
|
|
@@ -9370,10 +9370,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9370
9370
|
}, {
|
|
9371
9371
|
status: boolean;
|
|
9372
9372
|
}>;
|
|
9373
|
-
readonly revokeOtherSessions:
|
|
9373
|
+
readonly revokeOtherSessions: better_call280.StrictEndpoint<"/revoke-other-sessions", {
|
|
9374
9374
|
method: "POST";
|
|
9375
9375
|
requireHeaders: true;
|
|
9376
|
-
use: ((inputContext:
|
|
9376
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
9377
9377
|
session: {
|
|
9378
9378
|
session: Record<string, any> & {
|
|
9379
9379
|
id: string;
|
|
@@ -9423,7 +9423,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9423
9423
|
}, {
|
|
9424
9424
|
status: boolean;
|
|
9425
9425
|
}>;
|
|
9426
|
-
readonly linkSocialAccount:
|
|
9426
|
+
readonly linkSocialAccount: better_call280.StrictEndpoint<"/link-social", {
|
|
9427
9427
|
method: "POST";
|
|
9428
9428
|
requireHeaders: true;
|
|
9429
9429
|
body: zod604.ZodObject<{
|
|
@@ -9442,7 +9442,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9442
9442
|
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
9443
9443
|
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
9444
9444
|
}, zod_v4_core83.$strip>;
|
|
9445
|
-
use: ((inputContext:
|
|
9445
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
9446
9446
|
session: {
|
|
9447
9447
|
session: Record<string, any> & {
|
|
9448
9448
|
id: string;
|
|
@@ -9501,9 +9501,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9501
9501
|
url: string;
|
|
9502
9502
|
redirect: boolean;
|
|
9503
9503
|
}>;
|
|
9504
|
-
readonly listUserAccounts:
|
|
9504
|
+
readonly listUserAccounts: better_call280.StrictEndpoint<"/list-accounts", {
|
|
9505
9505
|
method: "GET";
|
|
9506
|
-
use: ((inputContext:
|
|
9506
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
9507
9507
|
session: {
|
|
9508
9508
|
session: Record<string, any> & {
|
|
9509
9509
|
id: string;
|
|
@@ -9585,13 +9585,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9585
9585
|
providerId: string;
|
|
9586
9586
|
accountId: string;
|
|
9587
9587
|
}[]>;
|
|
9588
|
-
readonly deleteUserCallback:
|
|
9588
|
+
readonly deleteUserCallback: better_call280.StrictEndpoint<"/delete-user/callback", {
|
|
9589
9589
|
method: "GET";
|
|
9590
9590
|
query: zod604.ZodObject<{
|
|
9591
9591
|
token: zod604.ZodString;
|
|
9592
9592
|
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
9593
9593
|
}, zod_v4_core83.$strip>;
|
|
9594
|
-
use: ((inputContext:
|
|
9594
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
9595
9595
|
metadata: {
|
|
9596
9596
|
openapi: {
|
|
9597
9597
|
description: string;
|
|
@@ -9625,13 +9625,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9625
9625
|
success: boolean;
|
|
9626
9626
|
message: string;
|
|
9627
9627
|
}>;
|
|
9628
|
-
readonly unlinkAccount:
|
|
9628
|
+
readonly unlinkAccount: better_call280.StrictEndpoint<"/unlink-account", {
|
|
9629
9629
|
method: "POST";
|
|
9630
9630
|
body: zod604.ZodObject<{
|
|
9631
9631
|
providerId: zod604.ZodString;
|
|
9632
9632
|
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
9633
9633
|
}, zod_v4_core83.$strip>;
|
|
9634
|
-
use: ((inputContext:
|
|
9634
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
9635
9635
|
session: {
|
|
9636
9636
|
session: Record<string, any> & {
|
|
9637
9637
|
id: string;
|
|
@@ -9679,7 +9679,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9679
9679
|
}, {
|
|
9680
9680
|
status: boolean;
|
|
9681
9681
|
}>;
|
|
9682
|
-
readonly refreshToken:
|
|
9682
|
+
readonly refreshToken: better_call280.StrictEndpoint<"/refresh-token", {
|
|
9683
9683
|
method: "POST";
|
|
9684
9684
|
body: zod604.ZodObject<{
|
|
9685
9685
|
providerId: zod604.ZodString;
|
|
@@ -9738,7 +9738,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9738
9738
|
providerId: string;
|
|
9739
9739
|
accountId: string;
|
|
9740
9740
|
}>;
|
|
9741
|
-
readonly getAccessToken:
|
|
9741
|
+
readonly getAccessToken: better_call280.StrictEndpoint<"/get-access-token", {
|
|
9742
9742
|
method: "POST";
|
|
9743
9743
|
body: zod604.ZodObject<{
|
|
9744
9744
|
providerId: zod604.ZodString;
|
|
@@ -9786,9 +9786,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9786
9786
|
scopes: string[];
|
|
9787
9787
|
idToken: string | undefined;
|
|
9788
9788
|
}>;
|
|
9789
|
-
readonly accountInfo:
|
|
9789
|
+
readonly accountInfo: better_call280.StrictEndpoint<"/account-info", {
|
|
9790
9790
|
method: "GET";
|
|
9791
|
-
use: ((inputContext:
|
|
9791
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
9792
9792
|
session: {
|
|
9793
9793
|
session: Record<string, any> & {
|
|
9794
9794
|
id: string;
|
|
@@ -9875,7 +9875,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9875
9875
|
} ? Plug extends {
|
|
9876
9876
|
endpoints: infer Endpoints;
|
|
9877
9877
|
} ? Endpoints : {} : {}> : {}) : InferAPI<{
|
|
9878
|
-
readonly ok:
|
|
9878
|
+
readonly ok: better_call280.StrictEndpoint<"/ok", {
|
|
9879
9879
|
method: "GET";
|
|
9880
9880
|
metadata: {
|
|
9881
9881
|
openapi: {
|
|
@@ -9905,7 +9905,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9905
9905
|
}, {
|
|
9906
9906
|
ok: boolean;
|
|
9907
9907
|
}>;
|
|
9908
|
-
readonly error:
|
|
9908
|
+
readonly error: better_call280.StrictEndpoint<"/error", {
|
|
9909
9909
|
method: "GET";
|
|
9910
9910
|
metadata: {
|
|
9911
9911
|
openapi: {
|
|
@@ -9927,7 +9927,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9927
9927
|
scope: "server";
|
|
9928
9928
|
};
|
|
9929
9929
|
}, Response>;
|
|
9930
|
-
readonly signInSocial:
|
|
9930
|
+
readonly signInSocial: better_call280.StrictEndpoint<"/sign-in/social", {
|
|
9931
9931
|
method: "POST";
|
|
9932
9932
|
operationId: string;
|
|
9933
9933
|
body: zod604.ZodObject<{
|
|
@@ -10035,7 +10035,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
10035
10035
|
image?: string | null | undefined;
|
|
10036
10036
|
};
|
|
10037
10037
|
}>;
|
|
10038
|
-
readonly callbackOAuth:
|
|
10038
|
+
readonly callbackOAuth: better_call280.StrictEndpoint<"/callback/:id", {
|
|
10039
10039
|
method: ("GET" | "POST")[];
|
|
10040
10040
|
operationId: string;
|
|
10041
10041
|
body: zod604.ZodOptional<zod604.ZodObject<{
|
|
@@ -10059,7 +10059,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
10059
10059
|
scope: "server";
|
|
10060
10060
|
};
|
|
10061
10061
|
}, void>;
|
|
10062
|
-
readonly getSession:
|
|
10062
|
+
readonly getSession: better_call280.StrictEndpoint<"/get-session", {
|
|
10063
10063
|
method: "GET";
|
|
10064
10064
|
operationId: string;
|
|
10065
10065
|
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
@@ -10116,7 +10116,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
10116
10116
|
image?: string | null | undefined;
|
|
10117
10117
|
};
|
|
10118
10118
|
} | null>;
|
|
10119
|
-
readonly signOut:
|
|
10119
|
+
readonly signOut: better_call280.StrictEndpoint<"/sign-out", {
|
|
10120
10120
|
method: "POST";
|
|
10121
10121
|
operationId: string;
|
|
10122
10122
|
requireHeaders: true;
|
|
@@ -10146,10 +10146,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
10146
10146
|
}, {
|
|
10147
10147
|
success: boolean;
|
|
10148
10148
|
}>;
|
|
10149
|
-
readonly signUpEmail:
|
|
10149
|
+
readonly signUpEmail: better_call280.StrictEndpoint<"/sign-up/email", {
|
|
10150
10150
|
method: "POST";
|
|
10151
10151
|
operationId: string;
|
|
10152
|
-
use: ((inputContext:
|
|
10152
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
10153
10153
|
body: zod604.ZodIntersection<zod604.ZodObject<{
|
|
10154
10154
|
name: zod604.ZodString;
|
|
10155
10155
|
email: zod604.ZodEmail;
|
|
@@ -10320,10 +10320,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
10320
10320
|
image?: string | null | undefined;
|
|
10321
10321
|
};
|
|
10322
10322
|
}>;
|
|
10323
|
-
readonly signInEmail:
|
|
10323
|
+
readonly signInEmail: better_call280.StrictEndpoint<"/sign-in/email", {
|
|
10324
10324
|
method: "POST";
|
|
10325
10325
|
operationId: string;
|
|
10326
|
-
use: ((inputContext:
|
|
10326
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
10327
10327
|
body: zod604.ZodObject<{
|
|
10328
10328
|
email: zod604.ZodString;
|
|
10329
10329
|
password: zod604.ZodString;
|
|
@@ -10405,7 +10405,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
10405
10405
|
image?: string | null | undefined;
|
|
10406
10406
|
};
|
|
10407
10407
|
}>;
|
|
10408
|
-
readonly resetPassword:
|
|
10408
|
+
readonly resetPassword: better_call280.StrictEndpoint<"/reset-password", {
|
|
10409
10409
|
method: "POST";
|
|
10410
10410
|
operationId: string;
|
|
10411
10411
|
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
@@ -10441,7 +10441,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
10441
10441
|
}, {
|
|
10442
10442
|
status: boolean;
|
|
10443
10443
|
}>;
|
|
10444
|
-
readonly verifyPassword:
|
|
10444
|
+
readonly verifyPassword: better_call280.StrictEndpoint<"/verify-password", {
|
|
10445
10445
|
method: "POST";
|
|
10446
10446
|
body: zod604.ZodObject<{
|
|
10447
10447
|
password: zod604.ZodString;
|
|
@@ -10470,7 +10470,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
10470
10470
|
};
|
|
10471
10471
|
};
|
|
10472
10472
|
};
|
|
10473
|
-
use: ((inputContext:
|
|
10473
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
10474
10474
|
session: {
|
|
10475
10475
|
session: Record<string, any> & {
|
|
10476
10476
|
id: string;
|
|
@@ -10496,14 +10496,14 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
10496
10496
|
}, {
|
|
10497
10497
|
status: boolean;
|
|
10498
10498
|
}>;
|
|
10499
|
-
readonly verifyEmail:
|
|
10499
|
+
readonly verifyEmail: better_call280.StrictEndpoint<"/verify-email", {
|
|
10500
10500
|
method: "GET";
|
|
10501
10501
|
operationId: string;
|
|
10502
10502
|
query: zod604.ZodObject<{
|
|
10503
10503
|
token: zod604.ZodString;
|
|
10504
10504
|
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
10505
10505
|
}, zod_v4_core83.$strip>;
|
|
10506
|
-
use: ((inputContext:
|
|
10506
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
10507
10507
|
metadata: {
|
|
10508
10508
|
openapi: {
|
|
10509
10509
|
description: string;
|
|
@@ -10552,7 +10552,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
10552
10552
|
}, void | {
|
|
10553
10553
|
status: boolean;
|
|
10554
10554
|
}>;
|
|
10555
|
-
readonly sendVerificationEmail:
|
|
10555
|
+
readonly sendVerificationEmail: better_call280.StrictEndpoint<"/send-verification-email", {
|
|
10556
10556
|
method: "POST";
|
|
10557
10557
|
operationId: string;
|
|
10558
10558
|
body: zod604.ZodObject<{
|
|
@@ -10627,13 +10627,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
10627
10627
|
}, {
|
|
10628
10628
|
status: boolean;
|
|
10629
10629
|
}>;
|
|
10630
|
-
readonly changeEmail:
|
|
10630
|
+
readonly changeEmail: better_call280.StrictEndpoint<"/change-email", {
|
|
10631
10631
|
method: "POST";
|
|
10632
10632
|
body: zod604.ZodObject<{
|
|
10633
10633
|
newEmail: zod604.ZodEmail;
|
|
10634
10634
|
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
10635
10635
|
}, zod_v4_core83.$strip>;
|
|
10636
|
-
use: ((inputContext:
|
|
10636
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
10637
10637
|
session: {
|
|
10638
10638
|
session: Record<string, any> & {
|
|
10639
10639
|
id: string;
|
|
@@ -10708,7 +10708,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
10708
10708
|
}, {
|
|
10709
10709
|
status: boolean;
|
|
10710
10710
|
}>;
|
|
10711
|
-
readonly changePassword:
|
|
10711
|
+
readonly changePassword: better_call280.StrictEndpoint<"/change-password", {
|
|
10712
10712
|
method: "POST";
|
|
10713
10713
|
operationId: string;
|
|
10714
10714
|
body: zod604.ZodObject<{
|
|
@@ -10716,7 +10716,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
10716
10716
|
currentPassword: zod604.ZodString;
|
|
10717
10717
|
revokeOtherSessions: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
10718
10718
|
}, zod_v4_core83.$strip>;
|
|
10719
|
-
use: ((inputContext:
|
|
10719
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
10720
10720
|
session: {
|
|
10721
10721
|
session: Record<string, any> & {
|
|
10722
10722
|
id: string;
|
|
@@ -10816,12 +10816,12 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
10816
10816
|
image?: string | null | undefined;
|
|
10817
10817
|
} & Record<string, any>;
|
|
10818
10818
|
}>;
|
|
10819
|
-
readonly setPassword:
|
|
10819
|
+
readonly setPassword: better_call280.StrictEndpoint<string, {
|
|
10820
10820
|
method: "POST";
|
|
10821
10821
|
body: zod604.ZodObject<{
|
|
10822
10822
|
newPassword: zod604.ZodString;
|
|
10823
10823
|
}, zod_v4_core83.$strip>;
|
|
10824
|
-
use: ((inputContext:
|
|
10824
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
10825
10825
|
session: {
|
|
10826
10826
|
session: Record<string, any> & {
|
|
10827
10827
|
id: string;
|
|
@@ -10847,11 +10847,11 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
10847
10847
|
}, {
|
|
10848
10848
|
status: boolean;
|
|
10849
10849
|
}>;
|
|
10850
|
-
readonly updateUser:
|
|
10850
|
+
readonly updateUser: better_call280.StrictEndpoint<"/update-user", {
|
|
10851
10851
|
method: "POST";
|
|
10852
10852
|
operationId: string;
|
|
10853
10853
|
body: zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>;
|
|
10854
|
-
use: ((inputContext:
|
|
10854
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
10855
10855
|
session: {
|
|
10856
10856
|
session: Record<string, any> & {
|
|
10857
10857
|
id: string;
|
|
@@ -10927,9 +10927,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
10927
10927
|
}, {
|
|
10928
10928
|
status: boolean;
|
|
10929
10929
|
}>;
|
|
10930
|
-
readonly deleteUser:
|
|
10930
|
+
readonly deleteUser: better_call280.StrictEndpoint<"/delete-user", {
|
|
10931
10931
|
method: "POST";
|
|
10932
|
-
use: ((inputContext:
|
|
10932
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
10933
10933
|
session: {
|
|
10934
10934
|
session: Record<string, any> & {
|
|
10935
10935
|
id: string;
|
|
@@ -11014,7 +11014,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
11014
11014
|
success: boolean;
|
|
11015
11015
|
message: string;
|
|
11016
11016
|
}>;
|
|
11017
|
-
readonly requestPasswordReset:
|
|
11017
|
+
readonly requestPasswordReset: better_call280.StrictEndpoint<"/request-password-reset", {
|
|
11018
11018
|
method: "POST";
|
|
11019
11019
|
body: zod604.ZodObject<{
|
|
11020
11020
|
email: zod604.ZodEmail;
|
|
@@ -11050,13 +11050,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
11050
11050
|
status: boolean;
|
|
11051
11051
|
message: string;
|
|
11052
11052
|
}>;
|
|
11053
|
-
readonly requestPasswordResetCallback:
|
|
11053
|
+
readonly requestPasswordResetCallback: better_call280.StrictEndpoint<"/reset-password/:token", {
|
|
11054
11054
|
method: "GET";
|
|
11055
11055
|
operationId: string;
|
|
11056
11056
|
query: zod604.ZodObject<{
|
|
11057
11057
|
callbackURL: zod604.ZodString;
|
|
11058
11058
|
}, zod_v4_core83.$strip>;
|
|
11059
|
-
use: ((inputContext:
|
|
11059
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
11060
11060
|
metadata: {
|
|
11061
11061
|
openapi: {
|
|
11062
11062
|
operationId: string;
|
|
@@ -11098,10 +11098,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
11098
11098
|
};
|
|
11099
11099
|
};
|
|
11100
11100
|
}, never>;
|
|
11101
|
-
readonly listSessions:
|
|
11101
|
+
readonly listSessions: better_call280.StrictEndpoint<"/list-sessions", {
|
|
11102
11102
|
method: "GET";
|
|
11103
11103
|
operationId: string;
|
|
11104
|
-
use: ((inputContext:
|
|
11104
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
11105
11105
|
session: {
|
|
11106
11106
|
session: Record<string, any> & {
|
|
11107
11107
|
id: string;
|
|
@@ -11156,12 +11156,12 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
11156
11156
|
ipAddress?: string | null | undefined;
|
|
11157
11157
|
userAgent?: string | null | undefined;
|
|
11158
11158
|
}>[]>;
|
|
11159
|
-
readonly revokeSession:
|
|
11159
|
+
readonly revokeSession: better_call280.StrictEndpoint<"/revoke-session", {
|
|
11160
11160
|
method: "POST";
|
|
11161
11161
|
body: zod604.ZodObject<{
|
|
11162
11162
|
token: zod604.ZodString;
|
|
11163
11163
|
}, zod_v4_core83.$strip>;
|
|
11164
|
-
use: ((inputContext:
|
|
11164
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
11165
11165
|
session: {
|
|
11166
11166
|
session: Record<string, any> & {
|
|
11167
11167
|
id: string;
|
|
@@ -11228,9 +11228,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
11228
11228
|
}, {
|
|
11229
11229
|
status: boolean;
|
|
11230
11230
|
}>;
|
|
11231
|
-
readonly revokeSessions:
|
|
11231
|
+
readonly revokeSessions: better_call280.StrictEndpoint<"/revoke-sessions", {
|
|
11232
11232
|
method: "POST";
|
|
11233
|
-
use: ((inputContext:
|
|
11233
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
11234
11234
|
session: {
|
|
11235
11235
|
session: Record<string, any> & {
|
|
11236
11236
|
id: string;
|
|
@@ -11281,10 +11281,10 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
11281
11281
|
}, {
|
|
11282
11282
|
status: boolean;
|
|
11283
11283
|
}>;
|
|
11284
|
-
readonly revokeOtherSessions:
|
|
11284
|
+
readonly revokeOtherSessions: better_call280.StrictEndpoint<"/revoke-other-sessions", {
|
|
11285
11285
|
method: "POST";
|
|
11286
11286
|
requireHeaders: true;
|
|
11287
|
-
use: ((inputContext:
|
|
11287
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
11288
11288
|
session: {
|
|
11289
11289
|
session: Record<string, any> & {
|
|
11290
11290
|
id: string;
|
|
@@ -11334,7 +11334,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
11334
11334
|
}, {
|
|
11335
11335
|
status: boolean;
|
|
11336
11336
|
}>;
|
|
11337
|
-
readonly linkSocialAccount:
|
|
11337
|
+
readonly linkSocialAccount: better_call280.StrictEndpoint<"/link-social", {
|
|
11338
11338
|
method: "POST";
|
|
11339
11339
|
requireHeaders: true;
|
|
11340
11340
|
body: zod604.ZodObject<{
|
|
@@ -11353,7 +11353,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
11353
11353
|
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
11354
11354
|
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
11355
11355
|
}, zod_v4_core83.$strip>;
|
|
11356
|
-
use: ((inputContext:
|
|
11356
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
11357
11357
|
session: {
|
|
11358
11358
|
session: Record<string, any> & {
|
|
11359
11359
|
id: string;
|
|
@@ -11412,9 +11412,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
11412
11412
|
url: string;
|
|
11413
11413
|
redirect: boolean;
|
|
11414
11414
|
}>;
|
|
11415
|
-
readonly listUserAccounts:
|
|
11415
|
+
readonly listUserAccounts: better_call280.StrictEndpoint<"/list-accounts", {
|
|
11416
11416
|
method: "GET";
|
|
11417
|
-
use: ((inputContext:
|
|
11417
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
11418
11418
|
session: {
|
|
11419
11419
|
session: Record<string, any> & {
|
|
11420
11420
|
id: string;
|
|
@@ -11496,13 +11496,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
11496
11496
|
providerId: string;
|
|
11497
11497
|
accountId: string;
|
|
11498
11498
|
}[]>;
|
|
11499
|
-
readonly deleteUserCallback:
|
|
11499
|
+
readonly deleteUserCallback: better_call280.StrictEndpoint<"/delete-user/callback", {
|
|
11500
11500
|
method: "GET";
|
|
11501
11501
|
query: zod604.ZodObject<{
|
|
11502
11502
|
token: zod604.ZodString;
|
|
11503
11503
|
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
11504
11504
|
}, zod_v4_core83.$strip>;
|
|
11505
|
-
use: ((inputContext:
|
|
11505
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
11506
11506
|
metadata: {
|
|
11507
11507
|
openapi: {
|
|
11508
11508
|
description: string;
|
|
@@ -11536,13 +11536,13 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
11536
11536
|
success: boolean;
|
|
11537
11537
|
message: string;
|
|
11538
11538
|
}>;
|
|
11539
|
-
readonly unlinkAccount:
|
|
11539
|
+
readonly unlinkAccount: better_call280.StrictEndpoint<"/unlink-account", {
|
|
11540
11540
|
method: "POST";
|
|
11541
11541
|
body: zod604.ZodObject<{
|
|
11542
11542
|
providerId: zod604.ZodString;
|
|
11543
11543
|
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
11544
11544
|
}, zod_v4_core83.$strip>;
|
|
11545
|
-
use: ((inputContext:
|
|
11545
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
11546
11546
|
session: {
|
|
11547
11547
|
session: Record<string, any> & {
|
|
11548
11548
|
id: string;
|
|
@@ -11590,7 +11590,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
11590
11590
|
}, {
|
|
11591
11591
|
status: boolean;
|
|
11592
11592
|
}>;
|
|
11593
|
-
readonly refreshToken:
|
|
11593
|
+
readonly refreshToken: better_call280.StrictEndpoint<"/refresh-token", {
|
|
11594
11594
|
method: "POST";
|
|
11595
11595
|
body: zod604.ZodObject<{
|
|
11596
11596
|
providerId: zod604.ZodString;
|
|
@@ -11649,7 +11649,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
11649
11649
|
providerId: string;
|
|
11650
11650
|
accountId: string;
|
|
11651
11651
|
}>;
|
|
11652
|
-
readonly getAccessToken:
|
|
11652
|
+
readonly getAccessToken: better_call280.StrictEndpoint<"/get-access-token", {
|
|
11653
11653
|
method: "POST";
|
|
11654
11654
|
body: zod604.ZodObject<{
|
|
11655
11655
|
providerId: zod604.ZodString;
|
|
@@ -11697,9 +11697,9 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
11697
11697
|
scopes: string[];
|
|
11698
11698
|
idToken: string | undefined;
|
|
11699
11699
|
}>;
|
|
11700
|
-
readonly accountInfo:
|
|
11700
|
+
readonly accountInfo: better_call280.StrictEndpoint<"/account-info", {
|
|
11701
11701
|
method: "GET";
|
|
11702
|
-
use: ((inputContext:
|
|
11702
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
11703
11703
|
session: {
|
|
11704
11704
|
session: Record<string, any> & {
|
|
11705
11705
|
id: string;
|
|
@@ -11873,7 +11873,7 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
11873
11873
|
cookieSetter: typeof setCookieToHeader;
|
|
11874
11874
|
customFetchImpl: (url: string | URL | Request, init?: RequestInit | undefined) => Promise<Response>;
|
|
11875
11875
|
sessionSetter: (headers: Headers) => (context: SuccessContext) => void;
|
|
11876
|
-
db:
|
|
11876
|
+
db: _better_auth_core_db_adapter0.DBAdapter<BetterAuthOptions>;
|
|
11877
11877
|
runWithUser: (email: string, password: string, fn: (headers: Headers) => Awaitable<void>) => Promise<void>;
|
|
11878
11878
|
}>;
|
|
11879
11879
|
//#endregion
|