better-auth 1.4.21 → 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/api/index.d.mts +407 -407
- package/dist/api/middlewares/origin-check.d.mts +4 -4
- 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/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 +15 -15
- package/dist/client/react/index.d.mts +15 -15
- package/dist/client/solid/index.d.mts +13 -13
- package/dist/client/svelte/index.d.mts +13 -13
- package/dist/client/vanilla.d.mts +15 -15
- package/dist/client/vue/index.d.mts +15 -15
- package/dist/db/field.d.mts +6 -6
- package/dist/integrations/next-js.d.mts +4 -4
- 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 +114 -114
- package/dist/plugins/anonymous/index.d.mts +5 -5
- package/dist/plugins/api-key/index.d.mts +79 -79
- 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 +52 -52
- package/dist/plugins/generic-oauth/index.d.mts +32 -32
- 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 +7 -7
- 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 +4 -4
- 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 +8 -8
- package/dist/plugins/organization/organization.d.mts +7 -7
- 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 +33 -33
- package/dist/plugins/siwe/index.d.mts +3 -3
- package/dist/plugins/two-factor/backup-codes/index.d.mts +5 -5
- package/dist/plugins/two-factor/index.d.mts +16 -16
- package/dist/plugins/two-factor/otp/index.d.mts +3 -3
- package/dist/plugins/two-factor/totp/index.d.mts +5 -5
- package/dist/plugins/username/index.d.mts +9 -9
- package/dist/plugins/username/schema.d.mts +3 -3
- package/dist/test-utils/test-instance.d.mts +1225 -1225
- package/package.json +3 -3
|
@@ -8,16 +8,16 @@ 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
|
-
import * as
|
|
13
|
+
import * as _better_auth_core_oauth23 from "@better-auth/core/oauth2";
|
|
14
14
|
import * as _better_auth_core_db_adapter0 from "@better-auth/core/db/adapter";
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
15
|
+
import * as better_call280 from "better-call";
|
|
16
|
+
import * as zod604 from "zod";
|
|
17
17
|
import * as nanostores3 from "nanostores";
|
|
18
18
|
import * as _better_fetch_fetch79 from "@better-fetch/fetch";
|
|
19
19
|
import { SuccessContext } from "@better-fetch/fetch";
|
|
20
|
-
import * as
|
|
20
|
+
import * as zod_v4_core83 from "zod/v4/core";
|
|
21
21
|
|
|
22
22
|
//#region src/test-utils/test-instance.d.ts
|
|
23
23
|
declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends BetterAuthClientOptions>(options?: O | undefined, config?: {
|
|
@@ -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,47 +151,47 @@ 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
|
-
body:
|
|
158
|
-
callbackURL:
|
|
159
|
-
newUserCallbackURL:
|
|
160
|
-
errorCallbackURL:
|
|
161
|
-
provider:
|
|
162
|
-
disableRedirect:
|
|
163
|
-
idToken:
|
|
164
|
-
token:
|
|
165
|
-
nonce:
|
|
166
|
-
accessToken:
|
|
167
|
-
refreshToken:
|
|
168
|
-
expiresAt:
|
|
169
|
-
},
|
|
170
|
-
scopes:
|
|
171
|
-
requestSignUp:
|
|
172
|
-
loginHint:
|
|
173
|
-
additionalData:
|
|
174
|
-
},
|
|
157
|
+
body: zod604.ZodObject<{
|
|
158
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
159
|
+
newUserCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
160
|
+
errorCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
161
|
+
provider: zod604.ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, zod_v4_core83.$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
162
|
+
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
163
|
+
idToken: zod604.ZodOptional<zod604.ZodObject<{
|
|
164
|
+
token: zod604.ZodString;
|
|
165
|
+
nonce: zod604.ZodOptional<zod604.ZodString>;
|
|
166
|
+
accessToken: zod604.ZodOptional<zod604.ZodString>;
|
|
167
|
+
refreshToken: zod604.ZodOptional<zod604.ZodString>;
|
|
168
|
+
expiresAt: zod604.ZodOptional<zod604.ZodNumber>;
|
|
169
|
+
}, zod_v4_core83.$strip>>;
|
|
170
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
171
|
+
requestSignUp: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
172
|
+
loginHint: zod604.ZodOptional<zod604.ZodString>;
|
|
173
|
+
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
174
|
+
}, zod_v4_core83.$strip>;
|
|
175
175
|
metadata: {
|
|
176
176
|
$Infer: {
|
|
177
|
-
body:
|
|
178
|
-
callbackURL:
|
|
179
|
-
newUserCallbackURL:
|
|
180
|
-
errorCallbackURL:
|
|
181
|
-
provider:
|
|
182
|
-
disableRedirect:
|
|
183
|
-
idToken:
|
|
184
|
-
token:
|
|
185
|
-
nonce:
|
|
186
|
-
accessToken:
|
|
187
|
-
refreshToken:
|
|
188
|
-
expiresAt:
|
|
189
|
-
},
|
|
190
|
-
scopes:
|
|
191
|
-
requestSignUp:
|
|
192
|
-
loginHint:
|
|
193
|
-
additionalData:
|
|
194
|
-
},
|
|
177
|
+
body: zod604.infer<zod604.ZodObject<{
|
|
178
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
179
|
+
newUserCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
180
|
+
errorCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
181
|
+
provider: zod604.ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, zod_v4_core83.$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
182
|
+
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
183
|
+
idToken: zod604.ZodOptional<zod604.ZodObject<{
|
|
184
|
+
token: zod604.ZodString;
|
|
185
|
+
nonce: zod604.ZodOptional<zod604.ZodString>;
|
|
186
|
+
accessToken: zod604.ZodOptional<zod604.ZodString>;
|
|
187
|
+
refreshToken: zod604.ZodOptional<zod604.ZodString>;
|
|
188
|
+
expiresAt: zod604.ZodOptional<zod604.ZodNumber>;
|
|
189
|
+
}, zod_v4_core83.$strip>>;
|
|
190
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
191
|
+
requestSignUp: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
192
|
+
loginHint: zod604.ZodOptional<zod604.ZodString>;
|
|
193
|
+
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
194
|
+
}, zod_v4_core83.$strip>>;
|
|
195
195
|
returned: {
|
|
196
196
|
redirect: boolean;
|
|
197
197
|
token?: string | undefined;
|
|
@@ -259,37 +259,37 @@ 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
|
-
body:
|
|
266
|
-
code:
|
|
267
|
-
error:
|
|
268
|
-
device_id:
|
|
269
|
-
error_description:
|
|
270
|
-
state:
|
|
271
|
-
user:
|
|
272
|
-
},
|
|
273
|
-
query:
|
|
274
|
-
code:
|
|
275
|
-
error:
|
|
276
|
-
device_id:
|
|
277
|
-
error_description:
|
|
278
|
-
state:
|
|
279
|
-
user:
|
|
280
|
-
},
|
|
265
|
+
body: zod604.ZodOptional<zod604.ZodObject<{
|
|
266
|
+
code: zod604.ZodOptional<zod604.ZodString>;
|
|
267
|
+
error: zod604.ZodOptional<zod604.ZodString>;
|
|
268
|
+
device_id: zod604.ZodOptional<zod604.ZodString>;
|
|
269
|
+
error_description: zod604.ZodOptional<zod604.ZodString>;
|
|
270
|
+
state: zod604.ZodOptional<zod604.ZodString>;
|
|
271
|
+
user: zod604.ZodOptional<zod604.ZodString>;
|
|
272
|
+
}, zod_v4_core83.$strip>>;
|
|
273
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
274
|
+
code: zod604.ZodOptional<zod604.ZodString>;
|
|
275
|
+
error: zod604.ZodOptional<zod604.ZodString>;
|
|
276
|
+
device_id: zod604.ZodOptional<zod604.ZodString>;
|
|
277
|
+
error_description: zod604.ZodOptional<zod604.ZodString>;
|
|
278
|
+
state: zod604.ZodOptional<zod604.ZodString>;
|
|
279
|
+
user: zod604.ZodOptional<zod604.ZodString>;
|
|
280
|
+
}, zod_v4_core83.$strip>>;
|
|
281
281
|
metadata: {
|
|
282
282
|
allowedMediaTypes: string[];
|
|
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
|
-
query:
|
|
290
|
-
disableCookieCache:
|
|
291
|
-
disableRefresh:
|
|
292
|
-
},
|
|
289
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
290
|
+
disableCookieCache: zod604.ZodOptional<zod604.ZodCoercedBoolean<unknown>>;
|
|
291
|
+
disableRefresh: zod604.ZodOptional<zod604.ZodCoercedBoolean<unknown>>;
|
|
292
|
+
}, zod_v4_core83.$strip>>;
|
|
293
293
|
requireHeaders: true;
|
|
294
294
|
metadata: {
|
|
295
295
|
openapi: {
|
|
@@ -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,18 +370,18 @@ 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:
|
|
377
|
-
body:
|
|
378
|
-
name:
|
|
379
|
-
email:
|
|
380
|
-
password:
|
|
381
|
-
image:
|
|
382
|
-
callbackURL:
|
|
383
|
-
rememberMe:
|
|
384
|
-
},
|
|
376
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
377
|
+
body: zod604.ZodIntersection<zod604.ZodObject<{
|
|
378
|
+
name: zod604.ZodString;
|
|
379
|
+
email: zod604.ZodEmail;
|
|
380
|
+
password: zod604.ZodString;
|
|
381
|
+
image: zod604.ZodOptional<zod604.ZodString>;
|
|
382
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
383
|
+
rememberMe: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
384
|
+
}, zod_v4_core83.$strip>, zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
385
385
|
metadata: {
|
|
386
386
|
allowedMediaTypes: string[];
|
|
387
387
|
$Infer: {
|
|
@@ -544,16 +544,16 @@ 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:
|
|
551
|
-
body:
|
|
552
|
-
email:
|
|
553
|
-
password:
|
|
554
|
-
callbackURL:
|
|
555
|
-
rememberMe:
|
|
556
|
-
},
|
|
550
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
551
|
+
body: zod604.ZodObject<{
|
|
552
|
+
email: zod604.ZodString;
|
|
553
|
+
password: zod604.ZodString;
|
|
554
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
555
|
+
rememberMe: zod604.ZodOptional<zod604.ZodDefault<zod604.ZodBoolean>>;
|
|
556
|
+
}, zod_v4_core83.$strip>;
|
|
557
557
|
metadata: {
|
|
558
558
|
allowedMediaTypes: string[];
|
|
559
559
|
$Infer: {
|
|
@@ -629,16 +629,16 @@ 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
|
-
query:
|
|
636
|
-
token:
|
|
637
|
-
},
|
|
638
|
-
body:
|
|
639
|
-
newPassword:
|
|
640
|
-
token:
|
|
641
|
-
},
|
|
635
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
636
|
+
token: zod604.ZodOptional<zod604.ZodString>;
|
|
637
|
+
}, zod_v4_core83.$strip>>;
|
|
638
|
+
body: zod604.ZodObject<{
|
|
639
|
+
newPassword: zod604.ZodString;
|
|
640
|
+
token: zod604.ZodOptional<zod604.ZodString>;
|
|
641
|
+
}, zod_v4_core83.$strip>;
|
|
642
642
|
metadata: {
|
|
643
643
|
openapi: {
|
|
644
644
|
operationId: string;
|
|
@@ -665,11 +665,11 @@ 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
|
-
body:
|
|
671
|
-
password:
|
|
672
|
-
},
|
|
670
|
+
body: zod604.ZodObject<{
|
|
671
|
+
password: zod604.ZodString;
|
|
672
|
+
}, zod_v4_core83.$strip>;
|
|
673
673
|
metadata: {
|
|
674
674
|
scope: "server";
|
|
675
675
|
openapi: {
|
|
@@ -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
|
-
query:
|
|
727
|
-
token:
|
|
728
|
-
callbackURL:
|
|
729
|
-
},
|
|
730
|
-
use: ((inputContext:
|
|
726
|
+
query: zod604.ZodObject<{
|
|
727
|
+
token: zod604.ZodString;
|
|
728
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
729
|
+
}, zod_v4_core83.$strip>;
|
|
730
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
731
731
|
metadata: {
|
|
732
732
|
openapi: {
|
|
733
733
|
description: string;
|
|
@@ -776,13 +776,13 @@ 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
|
-
body:
|
|
783
|
-
email:
|
|
784
|
-
callbackURL:
|
|
785
|
-
},
|
|
782
|
+
body: zod604.ZodObject<{
|
|
783
|
+
email: zod604.ZodEmail;
|
|
784
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
785
|
+
}, zod_v4_core83.$strip>;
|
|
786
786
|
metadata: {
|
|
787
787
|
openapi: {
|
|
788
788
|
operationId: string;
|
|
@@ -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
|
-
body:
|
|
857
|
-
newEmail:
|
|
858
|
-
callbackURL:
|
|
859
|
-
},
|
|
860
|
-
use: ((inputContext:
|
|
856
|
+
body: zod604.ZodObject<{
|
|
857
|
+
newEmail: zod604.ZodEmail;
|
|
858
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
859
|
+
}, zod_v4_core83.$strip>;
|
|
860
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
861
861
|
session: {
|
|
862
862
|
session: Record<string, any> & {
|
|
863
863
|
id: string;
|
|
@@ -932,15 +932,15 @@ 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
|
-
body:
|
|
939
|
-
newPassword:
|
|
940
|
-
currentPassword:
|
|
941
|
-
revokeOtherSessions:
|
|
942
|
-
},
|
|
943
|
-
use: ((inputContext:
|
|
938
|
+
body: zod604.ZodObject<{
|
|
939
|
+
newPassword: zod604.ZodString;
|
|
940
|
+
currentPassword: zod604.ZodString;
|
|
941
|
+
revokeOtherSessions: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
942
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
1046
|
-
newPassword:
|
|
1047
|
-
},
|
|
1048
|
-
use: ((inputContext:
|
|
1045
|
+
body: zod604.ZodObject<{
|
|
1046
|
+
newPassword: zod604.ZodString;
|
|
1047
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
1078
|
-
use: ((inputContext:
|
|
1077
|
+
body: zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>;
|
|
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;
|
|
@@ -1176,11 +1176,11 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1176
1176
|
};
|
|
1177
1177
|
};
|
|
1178
1178
|
}>)[];
|
|
1179
|
-
body:
|
|
1180
|
-
callbackURL:
|
|
1181
|
-
password:
|
|
1182
|
-
token:
|
|
1183
|
-
},
|
|
1179
|
+
body: zod604.ZodObject<{
|
|
1180
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
1181
|
+
password: zod604.ZodOptional<zod604.ZodString>;
|
|
1182
|
+
token: zod604.ZodOptional<zod604.ZodString>;
|
|
1183
|
+
}, zod_v4_core83.$strip>;
|
|
1184
1184
|
metadata: {
|
|
1185
1185
|
openapi: {
|
|
1186
1186
|
operationId: string;
|
|
@@ -1238,12 +1238,12 @@ 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
|
-
body:
|
|
1244
|
-
email:
|
|
1245
|
-
redirectTo:
|
|
1246
|
-
},
|
|
1243
|
+
body: zod604.ZodObject<{
|
|
1244
|
+
email: zod604.ZodEmail;
|
|
1245
|
+
redirectTo: zod604.ZodOptional<zod604.ZodString>;
|
|
1246
|
+
}, zod_v4_core83.$strip>;
|
|
1247
1247
|
metadata: {
|
|
1248
1248
|
openapi: {
|
|
1249
1249
|
operationId: string;
|
|
@@ -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
|
-
query:
|
|
1281
|
-
callbackURL:
|
|
1282
|
-
},
|
|
1283
|
-
use: ((inputContext:
|
|
1280
|
+
query: zod604.ZodObject<{
|
|
1281
|
+
callbackURL: zod604.ZodString;
|
|
1282
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
1386
|
-
token:
|
|
1387
|
-
},
|
|
1388
|
-
use: ((inputContext:
|
|
1385
|
+
body: zod604.ZodObject<{
|
|
1386
|
+
token: zod604.ZodString;
|
|
1387
|
+
}, zod_v4_core83.$strip>;
|
|
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,26 +1558,26 @@ 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
|
-
body:
|
|
1565
|
-
callbackURL:
|
|
1566
|
-
provider:
|
|
1567
|
-
idToken:
|
|
1568
|
-
token:
|
|
1569
|
-
nonce:
|
|
1570
|
-
accessToken:
|
|
1571
|
-
refreshToken:
|
|
1572
|
-
scopes:
|
|
1573
|
-
},
|
|
1574
|
-
requestSignUp:
|
|
1575
|
-
scopes:
|
|
1576
|
-
errorCallbackURL:
|
|
1577
|
-
disableRedirect:
|
|
1578
|
-
additionalData:
|
|
1579
|
-
},
|
|
1580
|
-
use: ((inputContext:
|
|
1564
|
+
body: zod604.ZodObject<{
|
|
1565
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
1566
|
+
provider: zod604.ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, zod_v4_core83.$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
1567
|
+
idToken: zod604.ZodOptional<zod604.ZodObject<{
|
|
1568
|
+
token: zod604.ZodString;
|
|
1569
|
+
nonce: zod604.ZodOptional<zod604.ZodString>;
|
|
1570
|
+
accessToken: zod604.ZodOptional<zod604.ZodString>;
|
|
1571
|
+
refreshToken: zod604.ZodOptional<zod604.ZodString>;
|
|
1572
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
1573
|
+
}, zod_v4_core83.$strip>>;
|
|
1574
|
+
requestSignUp: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
1575
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
1576
|
+
errorCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
1577
|
+
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
1578
|
+
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
1579
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
query:
|
|
1726
|
-
token:
|
|
1727
|
-
callbackURL:
|
|
1728
|
-
},
|
|
1729
|
-
use: ((inputContext:
|
|
1725
|
+
query: zod604.ZodObject<{
|
|
1726
|
+
token: zod604.ZodString;
|
|
1727
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
1728
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
1766
|
-
providerId:
|
|
1767
|
-
accountId:
|
|
1768
|
-
},
|
|
1769
|
-
use: ((inputContext:
|
|
1765
|
+
body: zod604.ZodObject<{
|
|
1766
|
+
providerId: zod604.ZodString;
|
|
1767
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
1768
|
+
}, zod_v4_core83.$strip>;
|
|
1769
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
1770
1770
|
session: {
|
|
1771
1771
|
session: Record<string, any> & {
|
|
1772
1772
|
id: string;
|
|
@@ -1814,13 +1814,13 @@ 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
|
-
body:
|
|
1820
|
-
providerId:
|
|
1821
|
-
accountId:
|
|
1822
|
-
userId:
|
|
1823
|
-
},
|
|
1819
|
+
body: zod604.ZodObject<{
|
|
1820
|
+
providerId: zod604.ZodString;
|
|
1821
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
1822
|
+
userId: zod604.ZodOptional<zod604.ZodString>;
|
|
1823
|
+
}, zod_v4_core83.$strip>;
|
|
1824
1824
|
metadata: {
|
|
1825
1825
|
openapi: {
|
|
1826
1826
|
description: string;
|
|
@@ -1873,13 +1873,13 @@ 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
|
-
body:
|
|
1879
|
-
providerId:
|
|
1880
|
-
accountId:
|
|
1881
|
-
userId:
|
|
1882
|
-
},
|
|
1878
|
+
body: zod604.ZodObject<{
|
|
1879
|
+
providerId: zod604.ZodString;
|
|
1880
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
1881
|
+
userId: zod604.ZodOptional<zod604.ZodString>;
|
|
1882
|
+
}, zod_v4_core83.$strip>;
|
|
1883
1883
|
metadata: {
|
|
1884
1884
|
openapi: {
|
|
1885
1885
|
description: string;
|
|
@@ -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;
|
|
@@ -1993,11 +1993,11 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
1993
1993
|
};
|
|
1994
1994
|
};
|
|
1995
1995
|
};
|
|
1996
|
-
query:
|
|
1997
|
-
accountId:
|
|
1998
|
-
},
|
|
1996
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
1997
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
1998
|
+
}, zod_v4_core83.$strip>>;
|
|
1999
1999
|
}, {
|
|
2000
|
-
user:
|
|
2000
|
+
user: _better_auth_core_oauth23.OAuth2UserInfo;
|
|
2001
2001
|
data: Record<string, any>;
|
|
2002
2002
|
} | null>;
|
|
2003
2003
|
}> & (((C extends undefined ? {} : C) & {
|
|
@@ -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,47 +2062,47 @@ 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
|
-
body:
|
|
2069
|
-
callbackURL:
|
|
2070
|
-
newUserCallbackURL:
|
|
2071
|
-
errorCallbackURL:
|
|
2072
|
-
provider:
|
|
2073
|
-
disableRedirect:
|
|
2074
|
-
idToken:
|
|
2075
|
-
token:
|
|
2076
|
-
nonce:
|
|
2077
|
-
accessToken:
|
|
2078
|
-
refreshToken:
|
|
2079
|
-
expiresAt:
|
|
2080
|
-
},
|
|
2081
|
-
scopes:
|
|
2082
|
-
requestSignUp:
|
|
2083
|
-
loginHint:
|
|
2084
|
-
additionalData:
|
|
2085
|
-
},
|
|
2068
|
+
body: zod604.ZodObject<{
|
|
2069
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
2070
|
+
newUserCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
2071
|
+
errorCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
2072
|
+
provider: zod604.ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, zod_v4_core83.$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
2073
|
+
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
2074
|
+
idToken: zod604.ZodOptional<zod604.ZodObject<{
|
|
2075
|
+
token: zod604.ZodString;
|
|
2076
|
+
nonce: zod604.ZodOptional<zod604.ZodString>;
|
|
2077
|
+
accessToken: zod604.ZodOptional<zod604.ZodString>;
|
|
2078
|
+
refreshToken: zod604.ZodOptional<zod604.ZodString>;
|
|
2079
|
+
expiresAt: zod604.ZodOptional<zod604.ZodNumber>;
|
|
2080
|
+
}, zod_v4_core83.$strip>>;
|
|
2081
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
2082
|
+
requestSignUp: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
2083
|
+
loginHint: zod604.ZodOptional<zod604.ZodString>;
|
|
2084
|
+
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
2085
|
+
}, zod_v4_core83.$strip>;
|
|
2086
2086
|
metadata: {
|
|
2087
2087
|
$Infer: {
|
|
2088
|
-
body:
|
|
2089
|
-
callbackURL:
|
|
2090
|
-
newUserCallbackURL:
|
|
2091
|
-
errorCallbackURL:
|
|
2092
|
-
provider:
|
|
2093
|
-
disableRedirect:
|
|
2094
|
-
idToken:
|
|
2095
|
-
token:
|
|
2096
|
-
nonce:
|
|
2097
|
-
accessToken:
|
|
2098
|
-
refreshToken:
|
|
2099
|
-
expiresAt:
|
|
2100
|
-
},
|
|
2101
|
-
scopes:
|
|
2102
|
-
requestSignUp:
|
|
2103
|
-
loginHint:
|
|
2104
|
-
additionalData:
|
|
2105
|
-
},
|
|
2088
|
+
body: zod604.infer<zod604.ZodObject<{
|
|
2089
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
2090
|
+
newUserCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
2091
|
+
errorCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
2092
|
+
provider: zod604.ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, zod_v4_core83.$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
2093
|
+
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
2094
|
+
idToken: zod604.ZodOptional<zod604.ZodObject<{
|
|
2095
|
+
token: zod604.ZodString;
|
|
2096
|
+
nonce: zod604.ZodOptional<zod604.ZodString>;
|
|
2097
|
+
accessToken: zod604.ZodOptional<zod604.ZodString>;
|
|
2098
|
+
refreshToken: zod604.ZodOptional<zod604.ZodString>;
|
|
2099
|
+
expiresAt: zod604.ZodOptional<zod604.ZodNumber>;
|
|
2100
|
+
}, zod_v4_core83.$strip>>;
|
|
2101
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
2102
|
+
requestSignUp: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
2103
|
+
loginHint: zod604.ZodOptional<zod604.ZodString>;
|
|
2104
|
+
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
2105
|
+
}, zod_v4_core83.$strip>>;
|
|
2106
2106
|
returned: {
|
|
2107
2107
|
redirect: boolean;
|
|
2108
2108
|
token?: string | undefined;
|
|
@@ -2170,37 +2170,37 @@ 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
|
-
body:
|
|
2177
|
-
code:
|
|
2178
|
-
error:
|
|
2179
|
-
device_id:
|
|
2180
|
-
error_description:
|
|
2181
|
-
state:
|
|
2182
|
-
user:
|
|
2183
|
-
},
|
|
2184
|
-
query:
|
|
2185
|
-
code:
|
|
2186
|
-
error:
|
|
2187
|
-
device_id:
|
|
2188
|
-
error_description:
|
|
2189
|
-
state:
|
|
2190
|
-
user:
|
|
2191
|
-
},
|
|
2176
|
+
body: zod604.ZodOptional<zod604.ZodObject<{
|
|
2177
|
+
code: zod604.ZodOptional<zod604.ZodString>;
|
|
2178
|
+
error: zod604.ZodOptional<zod604.ZodString>;
|
|
2179
|
+
device_id: zod604.ZodOptional<zod604.ZodString>;
|
|
2180
|
+
error_description: zod604.ZodOptional<zod604.ZodString>;
|
|
2181
|
+
state: zod604.ZodOptional<zod604.ZodString>;
|
|
2182
|
+
user: zod604.ZodOptional<zod604.ZodString>;
|
|
2183
|
+
}, zod_v4_core83.$strip>>;
|
|
2184
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
2185
|
+
code: zod604.ZodOptional<zod604.ZodString>;
|
|
2186
|
+
error: zod604.ZodOptional<zod604.ZodString>;
|
|
2187
|
+
device_id: zod604.ZodOptional<zod604.ZodString>;
|
|
2188
|
+
error_description: zod604.ZodOptional<zod604.ZodString>;
|
|
2189
|
+
state: zod604.ZodOptional<zod604.ZodString>;
|
|
2190
|
+
user: zod604.ZodOptional<zod604.ZodString>;
|
|
2191
|
+
}, zod_v4_core83.$strip>>;
|
|
2192
2192
|
metadata: {
|
|
2193
2193
|
allowedMediaTypes: string[];
|
|
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
|
-
query:
|
|
2201
|
-
disableCookieCache:
|
|
2202
|
-
disableRefresh:
|
|
2203
|
-
},
|
|
2200
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
2201
|
+
disableCookieCache: zod604.ZodOptional<zod604.ZodCoercedBoolean<unknown>>;
|
|
2202
|
+
disableRefresh: zod604.ZodOptional<zod604.ZodCoercedBoolean<unknown>>;
|
|
2203
|
+
}, zod_v4_core83.$strip>>;
|
|
2204
2204
|
requireHeaders: true;
|
|
2205
2205
|
metadata: {
|
|
2206
2206
|
openapi: {
|
|
@@ -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,18 +2281,18 @@ 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:
|
|
2288
|
-
body:
|
|
2289
|
-
name:
|
|
2290
|
-
email:
|
|
2291
|
-
password:
|
|
2292
|
-
image:
|
|
2293
|
-
callbackURL:
|
|
2294
|
-
rememberMe:
|
|
2295
|
-
},
|
|
2287
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
2288
|
+
body: zod604.ZodIntersection<zod604.ZodObject<{
|
|
2289
|
+
name: zod604.ZodString;
|
|
2290
|
+
email: zod604.ZodEmail;
|
|
2291
|
+
password: zod604.ZodString;
|
|
2292
|
+
image: zod604.ZodOptional<zod604.ZodString>;
|
|
2293
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
2294
|
+
rememberMe: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
2295
|
+
}, zod_v4_core83.$strip>, zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
2296
2296
|
metadata: {
|
|
2297
2297
|
allowedMediaTypes: string[];
|
|
2298
2298
|
$Infer: {
|
|
@@ -2455,16 +2455,16 @@ 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:
|
|
2462
|
-
body:
|
|
2463
|
-
email:
|
|
2464
|
-
password:
|
|
2465
|
-
callbackURL:
|
|
2466
|
-
rememberMe:
|
|
2467
|
-
},
|
|
2461
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
2462
|
+
body: zod604.ZodObject<{
|
|
2463
|
+
email: zod604.ZodString;
|
|
2464
|
+
password: zod604.ZodString;
|
|
2465
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
2466
|
+
rememberMe: zod604.ZodOptional<zod604.ZodDefault<zod604.ZodBoolean>>;
|
|
2467
|
+
}, zod_v4_core83.$strip>;
|
|
2468
2468
|
metadata: {
|
|
2469
2469
|
allowedMediaTypes: string[];
|
|
2470
2470
|
$Infer: {
|
|
@@ -2540,16 +2540,16 @@ 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
|
-
query:
|
|
2547
|
-
token:
|
|
2548
|
-
},
|
|
2549
|
-
body:
|
|
2550
|
-
newPassword:
|
|
2551
|
-
token:
|
|
2552
|
-
},
|
|
2546
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
2547
|
+
token: zod604.ZodOptional<zod604.ZodString>;
|
|
2548
|
+
}, zod_v4_core83.$strip>>;
|
|
2549
|
+
body: zod604.ZodObject<{
|
|
2550
|
+
newPassword: zod604.ZodString;
|
|
2551
|
+
token: zod604.ZodOptional<zod604.ZodString>;
|
|
2552
|
+
}, zod_v4_core83.$strip>;
|
|
2553
2553
|
metadata: {
|
|
2554
2554
|
openapi: {
|
|
2555
2555
|
operationId: string;
|
|
@@ -2576,11 +2576,11 @@ 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
|
-
body:
|
|
2582
|
-
password:
|
|
2583
|
-
},
|
|
2581
|
+
body: zod604.ZodObject<{
|
|
2582
|
+
password: zod604.ZodString;
|
|
2583
|
+
}, zod_v4_core83.$strip>;
|
|
2584
2584
|
metadata: {
|
|
2585
2585
|
scope: "server";
|
|
2586
2586
|
openapi: {
|
|
@@ -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
|
-
query:
|
|
2638
|
-
token:
|
|
2639
|
-
callbackURL:
|
|
2640
|
-
},
|
|
2641
|
-
use: ((inputContext:
|
|
2637
|
+
query: zod604.ZodObject<{
|
|
2638
|
+
token: zod604.ZodString;
|
|
2639
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
2640
|
+
}, zod_v4_core83.$strip>;
|
|
2641
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
2642
2642
|
metadata: {
|
|
2643
2643
|
openapi: {
|
|
2644
2644
|
description: string;
|
|
@@ -2687,13 +2687,13 @@ 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
|
-
body:
|
|
2694
|
-
email:
|
|
2695
|
-
callbackURL:
|
|
2696
|
-
},
|
|
2693
|
+
body: zod604.ZodObject<{
|
|
2694
|
+
email: zod604.ZodEmail;
|
|
2695
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
2696
|
+
}, zod_v4_core83.$strip>;
|
|
2697
2697
|
metadata: {
|
|
2698
2698
|
openapi: {
|
|
2699
2699
|
operationId: string;
|
|
@@ -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
|
-
body:
|
|
2768
|
-
newEmail:
|
|
2769
|
-
callbackURL:
|
|
2770
|
-
},
|
|
2771
|
-
use: ((inputContext:
|
|
2767
|
+
body: zod604.ZodObject<{
|
|
2768
|
+
newEmail: zod604.ZodEmail;
|
|
2769
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
2770
|
+
}, zod_v4_core83.$strip>;
|
|
2771
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
2772
2772
|
session: {
|
|
2773
2773
|
session: Record<string, any> & {
|
|
2774
2774
|
id: string;
|
|
@@ -2843,15 +2843,15 @@ 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
|
-
body:
|
|
2850
|
-
newPassword:
|
|
2851
|
-
currentPassword:
|
|
2852
|
-
revokeOtherSessions:
|
|
2853
|
-
},
|
|
2854
|
-
use: ((inputContext:
|
|
2849
|
+
body: zod604.ZodObject<{
|
|
2850
|
+
newPassword: zod604.ZodString;
|
|
2851
|
+
currentPassword: zod604.ZodString;
|
|
2852
|
+
revokeOtherSessions: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
2853
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
2957
|
-
newPassword:
|
|
2958
|
-
},
|
|
2959
|
-
use: ((inputContext:
|
|
2956
|
+
body: zod604.ZodObject<{
|
|
2957
|
+
newPassword: zod604.ZodString;
|
|
2958
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
2989
|
-
use: ((inputContext:
|
|
2988
|
+
body: zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>;
|
|
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;
|
|
@@ -3087,11 +3087,11 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3087
3087
|
};
|
|
3088
3088
|
};
|
|
3089
3089
|
}>)[];
|
|
3090
|
-
body:
|
|
3091
|
-
callbackURL:
|
|
3092
|
-
password:
|
|
3093
|
-
token:
|
|
3094
|
-
},
|
|
3090
|
+
body: zod604.ZodObject<{
|
|
3091
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
3092
|
+
password: zod604.ZodOptional<zod604.ZodString>;
|
|
3093
|
+
token: zod604.ZodOptional<zod604.ZodString>;
|
|
3094
|
+
}, zod_v4_core83.$strip>;
|
|
3095
3095
|
metadata: {
|
|
3096
3096
|
openapi: {
|
|
3097
3097
|
operationId: string;
|
|
@@ -3149,12 +3149,12 @@ 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
|
-
body:
|
|
3155
|
-
email:
|
|
3156
|
-
redirectTo:
|
|
3157
|
-
},
|
|
3154
|
+
body: zod604.ZodObject<{
|
|
3155
|
+
email: zod604.ZodEmail;
|
|
3156
|
+
redirectTo: zod604.ZodOptional<zod604.ZodString>;
|
|
3157
|
+
}, zod_v4_core83.$strip>;
|
|
3158
3158
|
metadata: {
|
|
3159
3159
|
openapi: {
|
|
3160
3160
|
operationId: string;
|
|
@@ -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
|
-
query:
|
|
3192
|
-
callbackURL:
|
|
3193
|
-
},
|
|
3194
|
-
use: ((inputContext:
|
|
3191
|
+
query: zod604.ZodObject<{
|
|
3192
|
+
callbackURL: zod604.ZodString;
|
|
3193
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
3297
|
-
token:
|
|
3298
|
-
},
|
|
3299
|
-
use: ((inputContext:
|
|
3296
|
+
body: zod604.ZodObject<{
|
|
3297
|
+
token: zod604.ZodString;
|
|
3298
|
+
}, zod_v4_core83.$strip>;
|
|
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,26 +3469,26 @@ 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
|
-
body:
|
|
3476
|
-
callbackURL:
|
|
3477
|
-
provider:
|
|
3478
|
-
idToken:
|
|
3479
|
-
token:
|
|
3480
|
-
nonce:
|
|
3481
|
-
accessToken:
|
|
3482
|
-
refreshToken:
|
|
3483
|
-
scopes:
|
|
3484
|
-
},
|
|
3485
|
-
requestSignUp:
|
|
3486
|
-
scopes:
|
|
3487
|
-
errorCallbackURL:
|
|
3488
|
-
disableRedirect:
|
|
3489
|
-
additionalData:
|
|
3490
|
-
},
|
|
3491
|
-
use: ((inputContext:
|
|
3475
|
+
body: zod604.ZodObject<{
|
|
3476
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
3477
|
+
provider: zod604.ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, zod_v4_core83.$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
3478
|
+
idToken: zod604.ZodOptional<zod604.ZodObject<{
|
|
3479
|
+
token: zod604.ZodString;
|
|
3480
|
+
nonce: zod604.ZodOptional<zod604.ZodString>;
|
|
3481
|
+
accessToken: zod604.ZodOptional<zod604.ZodString>;
|
|
3482
|
+
refreshToken: zod604.ZodOptional<zod604.ZodString>;
|
|
3483
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
3484
|
+
}, zod_v4_core83.$strip>>;
|
|
3485
|
+
requestSignUp: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
3486
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
3487
|
+
errorCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
3488
|
+
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
3489
|
+
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
3490
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
query:
|
|
3637
|
-
token:
|
|
3638
|
-
callbackURL:
|
|
3639
|
-
},
|
|
3640
|
-
use: ((inputContext:
|
|
3636
|
+
query: zod604.ZodObject<{
|
|
3637
|
+
token: zod604.ZodString;
|
|
3638
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
3639
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
3677
|
-
providerId:
|
|
3678
|
-
accountId:
|
|
3679
|
-
},
|
|
3680
|
-
use: ((inputContext:
|
|
3676
|
+
body: zod604.ZodObject<{
|
|
3677
|
+
providerId: zod604.ZodString;
|
|
3678
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
3679
|
+
}, zod_v4_core83.$strip>;
|
|
3680
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
3681
3681
|
session: {
|
|
3682
3682
|
session: Record<string, any> & {
|
|
3683
3683
|
id: string;
|
|
@@ -3725,13 +3725,13 @@ 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
|
-
body:
|
|
3731
|
-
providerId:
|
|
3732
|
-
accountId:
|
|
3733
|
-
userId:
|
|
3734
|
-
},
|
|
3730
|
+
body: zod604.ZodObject<{
|
|
3731
|
+
providerId: zod604.ZodString;
|
|
3732
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
3733
|
+
userId: zod604.ZodOptional<zod604.ZodString>;
|
|
3734
|
+
}, zod_v4_core83.$strip>;
|
|
3735
3735
|
metadata: {
|
|
3736
3736
|
openapi: {
|
|
3737
3737
|
description: string;
|
|
@@ -3784,13 +3784,13 @@ 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
|
-
body:
|
|
3790
|
-
providerId:
|
|
3791
|
-
accountId:
|
|
3792
|
-
userId:
|
|
3793
|
-
},
|
|
3789
|
+
body: zod604.ZodObject<{
|
|
3790
|
+
providerId: zod604.ZodString;
|
|
3791
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
3792
|
+
userId: zod604.ZodOptional<zod604.ZodString>;
|
|
3793
|
+
}, zod_v4_core83.$strip>;
|
|
3794
3794
|
metadata: {
|
|
3795
3795
|
openapi: {
|
|
3796
3796
|
description: string;
|
|
@@ -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;
|
|
@@ -3904,11 +3904,11 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
3904
3904
|
};
|
|
3905
3905
|
};
|
|
3906
3906
|
};
|
|
3907
|
-
query:
|
|
3908
|
-
accountId:
|
|
3909
|
-
},
|
|
3907
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
3908
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
3909
|
+
}, zod_v4_core83.$strip>>;
|
|
3910
3910
|
}, {
|
|
3911
|
-
user:
|
|
3911
|
+
user: _better_auth_core_oauth23.OAuth2UserInfo;
|
|
3912
3912
|
data: Record<string, any>;
|
|
3913
3913
|
} | null>;
|
|
3914
3914
|
}>, (C extends undefined ? {} : C) & {
|
|
@@ -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,47 +4048,47 @@ 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
|
-
body:
|
|
4055
|
-
callbackURL:
|
|
4056
|
-
newUserCallbackURL:
|
|
4057
|
-
errorCallbackURL:
|
|
4058
|
-
provider:
|
|
4059
|
-
disableRedirect:
|
|
4060
|
-
idToken:
|
|
4061
|
-
token:
|
|
4062
|
-
nonce:
|
|
4063
|
-
accessToken:
|
|
4064
|
-
refreshToken:
|
|
4065
|
-
expiresAt:
|
|
4066
|
-
},
|
|
4067
|
-
scopes:
|
|
4068
|
-
requestSignUp:
|
|
4069
|
-
loginHint:
|
|
4070
|
-
additionalData:
|
|
4071
|
-
},
|
|
4054
|
+
body: zod604.ZodObject<{
|
|
4055
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
4056
|
+
newUserCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
4057
|
+
errorCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
4058
|
+
provider: zod604.ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, zod_v4_core83.$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
4059
|
+
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
4060
|
+
idToken: zod604.ZodOptional<zod604.ZodObject<{
|
|
4061
|
+
token: zod604.ZodString;
|
|
4062
|
+
nonce: zod604.ZodOptional<zod604.ZodString>;
|
|
4063
|
+
accessToken: zod604.ZodOptional<zod604.ZodString>;
|
|
4064
|
+
refreshToken: zod604.ZodOptional<zod604.ZodString>;
|
|
4065
|
+
expiresAt: zod604.ZodOptional<zod604.ZodNumber>;
|
|
4066
|
+
}, zod_v4_core83.$strip>>;
|
|
4067
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
4068
|
+
requestSignUp: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
4069
|
+
loginHint: zod604.ZodOptional<zod604.ZodString>;
|
|
4070
|
+
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
4071
|
+
}, zod_v4_core83.$strip>;
|
|
4072
4072
|
metadata: {
|
|
4073
4073
|
$Infer: {
|
|
4074
|
-
body:
|
|
4075
|
-
callbackURL:
|
|
4076
|
-
newUserCallbackURL:
|
|
4077
|
-
errorCallbackURL:
|
|
4078
|
-
provider:
|
|
4079
|
-
disableRedirect:
|
|
4080
|
-
idToken:
|
|
4081
|
-
token:
|
|
4082
|
-
nonce:
|
|
4083
|
-
accessToken:
|
|
4084
|
-
refreshToken:
|
|
4085
|
-
expiresAt:
|
|
4086
|
-
},
|
|
4087
|
-
scopes:
|
|
4088
|
-
requestSignUp:
|
|
4089
|
-
loginHint:
|
|
4090
|
-
additionalData:
|
|
4091
|
-
},
|
|
4074
|
+
body: zod604.infer<zod604.ZodObject<{
|
|
4075
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
4076
|
+
newUserCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
4077
|
+
errorCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
4078
|
+
provider: zod604.ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, zod_v4_core83.$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
4079
|
+
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
4080
|
+
idToken: zod604.ZodOptional<zod604.ZodObject<{
|
|
4081
|
+
token: zod604.ZodString;
|
|
4082
|
+
nonce: zod604.ZodOptional<zod604.ZodString>;
|
|
4083
|
+
accessToken: zod604.ZodOptional<zod604.ZodString>;
|
|
4084
|
+
refreshToken: zod604.ZodOptional<zod604.ZodString>;
|
|
4085
|
+
expiresAt: zod604.ZodOptional<zod604.ZodNumber>;
|
|
4086
|
+
}, zod_v4_core83.$strip>>;
|
|
4087
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
4088
|
+
requestSignUp: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
4089
|
+
loginHint: zod604.ZodOptional<zod604.ZodString>;
|
|
4090
|
+
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
4091
|
+
}, zod_v4_core83.$strip>>;
|
|
4092
4092
|
returned: {
|
|
4093
4093
|
redirect: boolean;
|
|
4094
4094
|
token?: string | undefined;
|
|
@@ -4156,37 +4156,37 @@ 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
|
-
body:
|
|
4163
|
-
code:
|
|
4164
|
-
error:
|
|
4165
|
-
device_id:
|
|
4166
|
-
error_description:
|
|
4167
|
-
state:
|
|
4168
|
-
user:
|
|
4169
|
-
},
|
|
4170
|
-
query:
|
|
4171
|
-
code:
|
|
4172
|
-
error:
|
|
4173
|
-
device_id:
|
|
4174
|
-
error_description:
|
|
4175
|
-
state:
|
|
4176
|
-
user:
|
|
4177
|
-
},
|
|
4162
|
+
body: zod604.ZodOptional<zod604.ZodObject<{
|
|
4163
|
+
code: zod604.ZodOptional<zod604.ZodString>;
|
|
4164
|
+
error: zod604.ZodOptional<zod604.ZodString>;
|
|
4165
|
+
device_id: zod604.ZodOptional<zod604.ZodString>;
|
|
4166
|
+
error_description: zod604.ZodOptional<zod604.ZodString>;
|
|
4167
|
+
state: zod604.ZodOptional<zod604.ZodString>;
|
|
4168
|
+
user: zod604.ZodOptional<zod604.ZodString>;
|
|
4169
|
+
}, zod_v4_core83.$strip>>;
|
|
4170
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
4171
|
+
code: zod604.ZodOptional<zod604.ZodString>;
|
|
4172
|
+
error: zod604.ZodOptional<zod604.ZodString>;
|
|
4173
|
+
device_id: zod604.ZodOptional<zod604.ZodString>;
|
|
4174
|
+
error_description: zod604.ZodOptional<zod604.ZodString>;
|
|
4175
|
+
state: zod604.ZodOptional<zod604.ZodString>;
|
|
4176
|
+
user: zod604.ZodOptional<zod604.ZodString>;
|
|
4177
|
+
}, zod_v4_core83.$strip>>;
|
|
4178
4178
|
metadata: {
|
|
4179
4179
|
allowedMediaTypes: string[];
|
|
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
|
-
query:
|
|
4187
|
-
disableCookieCache:
|
|
4188
|
-
disableRefresh:
|
|
4189
|
-
},
|
|
4186
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
4187
|
+
disableCookieCache: zod604.ZodOptional<zod604.ZodCoercedBoolean<unknown>>;
|
|
4188
|
+
disableRefresh: zod604.ZodOptional<zod604.ZodCoercedBoolean<unknown>>;
|
|
4189
|
+
}, zod_v4_core83.$strip>>;
|
|
4190
4190
|
requireHeaders: true;
|
|
4191
4191
|
metadata: {
|
|
4192
4192
|
openapi: {
|
|
@@ -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,18 +4267,18 @@ 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:
|
|
4274
|
-
body:
|
|
4275
|
-
name:
|
|
4276
|
-
email:
|
|
4277
|
-
password:
|
|
4278
|
-
image:
|
|
4279
|
-
callbackURL:
|
|
4280
|
-
rememberMe:
|
|
4281
|
-
},
|
|
4273
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
4274
|
+
body: zod604.ZodIntersection<zod604.ZodObject<{
|
|
4275
|
+
name: zod604.ZodString;
|
|
4276
|
+
email: zod604.ZodEmail;
|
|
4277
|
+
password: zod604.ZodString;
|
|
4278
|
+
image: zod604.ZodOptional<zod604.ZodString>;
|
|
4279
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
4280
|
+
rememberMe: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
4281
|
+
}, zod_v4_core83.$strip>, zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
4282
4282
|
metadata: {
|
|
4283
4283
|
allowedMediaTypes: string[];
|
|
4284
4284
|
$Infer: {
|
|
@@ -4441,16 +4441,16 @@ 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:
|
|
4448
|
-
body:
|
|
4449
|
-
email:
|
|
4450
|
-
password:
|
|
4451
|
-
callbackURL:
|
|
4452
|
-
rememberMe:
|
|
4453
|
-
},
|
|
4447
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
4448
|
+
body: zod604.ZodObject<{
|
|
4449
|
+
email: zod604.ZodString;
|
|
4450
|
+
password: zod604.ZodString;
|
|
4451
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
4452
|
+
rememberMe: zod604.ZodOptional<zod604.ZodDefault<zod604.ZodBoolean>>;
|
|
4453
|
+
}, zod_v4_core83.$strip>;
|
|
4454
4454
|
metadata: {
|
|
4455
4455
|
allowedMediaTypes: string[];
|
|
4456
4456
|
$Infer: {
|
|
@@ -4526,16 +4526,16 @@ 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
|
-
query:
|
|
4533
|
-
token:
|
|
4534
|
-
},
|
|
4535
|
-
body:
|
|
4536
|
-
newPassword:
|
|
4537
|
-
token:
|
|
4538
|
-
},
|
|
4532
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
4533
|
+
token: zod604.ZodOptional<zod604.ZodString>;
|
|
4534
|
+
}, zod_v4_core83.$strip>>;
|
|
4535
|
+
body: zod604.ZodObject<{
|
|
4536
|
+
newPassword: zod604.ZodString;
|
|
4537
|
+
token: zod604.ZodOptional<zod604.ZodString>;
|
|
4538
|
+
}, zod_v4_core83.$strip>;
|
|
4539
4539
|
metadata: {
|
|
4540
4540
|
openapi: {
|
|
4541
4541
|
operationId: string;
|
|
@@ -4562,11 +4562,11 @@ 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
|
-
body:
|
|
4568
|
-
password:
|
|
4569
|
-
},
|
|
4567
|
+
body: zod604.ZodObject<{
|
|
4568
|
+
password: zod604.ZodString;
|
|
4569
|
+
}, zod_v4_core83.$strip>;
|
|
4570
4570
|
metadata: {
|
|
4571
4571
|
scope: "server";
|
|
4572
4572
|
openapi: {
|
|
@@ -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
|
-
query:
|
|
4624
|
-
token:
|
|
4625
|
-
callbackURL:
|
|
4626
|
-
},
|
|
4627
|
-
use: ((inputContext:
|
|
4623
|
+
query: zod604.ZodObject<{
|
|
4624
|
+
token: zod604.ZodString;
|
|
4625
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
4626
|
+
}, zod_v4_core83.$strip>;
|
|
4627
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
4628
4628
|
metadata: {
|
|
4629
4629
|
openapi: {
|
|
4630
4630
|
description: string;
|
|
@@ -4673,13 +4673,13 @@ 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
|
-
body:
|
|
4680
|
-
email:
|
|
4681
|
-
callbackURL:
|
|
4682
|
-
},
|
|
4679
|
+
body: zod604.ZodObject<{
|
|
4680
|
+
email: zod604.ZodEmail;
|
|
4681
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
4682
|
+
}, zod_v4_core83.$strip>;
|
|
4683
4683
|
metadata: {
|
|
4684
4684
|
openapi: {
|
|
4685
4685
|
operationId: string;
|
|
@@ -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
|
-
body:
|
|
4754
|
-
newEmail:
|
|
4755
|
-
callbackURL:
|
|
4756
|
-
},
|
|
4757
|
-
use: ((inputContext:
|
|
4753
|
+
body: zod604.ZodObject<{
|
|
4754
|
+
newEmail: zod604.ZodEmail;
|
|
4755
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
4756
|
+
}, zod_v4_core83.$strip>;
|
|
4757
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
4758
4758
|
session: {
|
|
4759
4759
|
session: Record<string, any> & {
|
|
4760
4760
|
id: string;
|
|
@@ -4829,15 +4829,15 @@ 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
|
-
body:
|
|
4836
|
-
newPassword:
|
|
4837
|
-
currentPassword:
|
|
4838
|
-
revokeOtherSessions:
|
|
4839
|
-
},
|
|
4840
|
-
use: ((inputContext:
|
|
4835
|
+
body: zod604.ZodObject<{
|
|
4836
|
+
newPassword: zod604.ZodString;
|
|
4837
|
+
currentPassword: zod604.ZodString;
|
|
4838
|
+
revokeOtherSessions: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
4839
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
4943
|
-
newPassword:
|
|
4944
|
-
},
|
|
4945
|
-
use: ((inputContext:
|
|
4942
|
+
body: zod604.ZodObject<{
|
|
4943
|
+
newPassword: zod604.ZodString;
|
|
4944
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
4975
|
-
use: ((inputContext:
|
|
4974
|
+
body: zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>;
|
|
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;
|
|
@@ -5073,11 +5073,11 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5073
5073
|
};
|
|
5074
5074
|
};
|
|
5075
5075
|
}>)[];
|
|
5076
|
-
body:
|
|
5077
|
-
callbackURL:
|
|
5078
|
-
password:
|
|
5079
|
-
token:
|
|
5080
|
-
},
|
|
5076
|
+
body: zod604.ZodObject<{
|
|
5077
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
5078
|
+
password: zod604.ZodOptional<zod604.ZodString>;
|
|
5079
|
+
token: zod604.ZodOptional<zod604.ZodString>;
|
|
5080
|
+
}, zod_v4_core83.$strip>;
|
|
5081
5081
|
metadata: {
|
|
5082
5082
|
openapi: {
|
|
5083
5083
|
operationId: string;
|
|
@@ -5135,12 +5135,12 @@ 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
|
-
body:
|
|
5141
|
-
email:
|
|
5142
|
-
redirectTo:
|
|
5143
|
-
},
|
|
5140
|
+
body: zod604.ZodObject<{
|
|
5141
|
+
email: zod604.ZodEmail;
|
|
5142
|
+
redirectTo: zod604.ZodOptional<zod604.ZodString>;
|
|
5143
|
+
}, zod_v4_core83.$strip>;
|
|
5144
5144
|
metadata: {
|
|
5145
5145
|
openapi: {
|
|
5146
5146
|
operationId: string;
|
|
@@ -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
|
-
query:
|
|
5178
|
-
callbackURL:
|
|
5179
|
-
},
|
|
5180
|
-
use: ((inputContext:
|
|
5177
|
+
query: zod604.ZodObject<{
|
|
5178
|
+
callbackURL: zod604.ZodString;
|
|
5179
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
5283
|
-
token:
|
|
5284
|
-
},
|
|
5285
|
-
use: ((inputContext:
|
|
5282
|
+
body: zod604.ZodObject<{
|
|
5283
|
+
token: zod604.ZodString;
|
|
5284
|
+
}, zod_v4_core83.$strip>;
|
|
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,26 +5455,26 @@ 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
|
-
body:
|
|
5462
|
-
callbackURL:
|
|
5463
|
-
provider:
|
|
5464
|
-
idToken:
|
|
5465
|
-
token:
|
|
5466
|
-
nonce:
|
|
5467
|
-
accessToken:
|
|
5468
|
-
refreshToken:
|
|
5469
|
-
scopes:
|
|
5470
|
-
},
|
|
5471
|
-
requestSignUp:
|
|
5472
|
-
scopes:
|
|
5473
|
-
errorCallbackURL:
|
|
5474
|
-
disableRedirect:
|
|
5475
|
-
additionalData:
|
|
5476
|
-
},
|
|
5477
|
-
use: ((inputContext:
|
|
5461
|
+
body: zod604.ZodObject<{
|
|
5462
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
5463
|
+
provider: zod604.ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, zod_v4_core83.$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
5464
|
+
idToken: zod604.ZodOptional<zod604.ZodObject<{
|
|
5465
|
+
token: zod604.ZodString;
|
|
5466
|
+
nonce: zod604.ZodOptional<zod604.ZodString>;
|
|
5467
|
+
accessToken: zod604.ZodOptional<zod604.ZodString>;
|
|
5468
|
+
refreshToken: zod604.ZodOptional<zod604.ZodString>;
|
|
5469
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
5470
|
+
}, zod_v4_core83.$strip>>;
|
|
5471
|
+
requestSignUp: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
5472
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
5473
|
+
errorCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
5474
|
+
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
5475
|
+
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
5476
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
query:
|
|
5623
|
-
token:
|
|
5624
|
-
callbackURL:
|
|
5625
|
-
},
|
|
5626
|
-
use: ((inputContext:
|
|
5622
|
+
query: zod604.ZodObject<{
|
|
5623
|
+
token: zod604.ZodString;
|
|
5624
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
5625
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
5663
|
-
providerId:
|
|
5664
|
-
accountId:
|
|
5665
|
-
},
|
|
5666
|
-
use: ((inputContext:
|
|
5662
|
+
body: zod604.ZodObject<{
|
|
5663
|
+
providerId: zod604.ZodString;
|
|
5664
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
5665
|
+
}, zod_v4_core83.$strip>;
|
|
5666
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
5667
5667
|
session: {
|
|
5668
5668
|
session: Record<string, any> & {
|
|
5669
5669
|
id: string;
|
|
@@ -5711,13 +5711,13 @@ 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
|
-
body:
|
|
5717
|
-
providerId:
|
|
5718
|
-
accountId:
|
|
5719
|
-
userId:
|
|
5720
|
-
},
|
|
5716
|
+
body: zod604.ZodObject<{
|
|
5717
|
+
providerId: zod604.ZodString;
|
|
5718
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
5719
|
+
userId: zod604.ZodOptional<zod604.ZodString>;
|
|
5720
|
+
}, zod_v4_core83.$strip>;
|
|
5721
5721
|
metadata: {
|
|
5722
5722
|
openapi: {
|
|
5723
5723
|
description: string;
|
|
@@ -5770,13 +5770,13 @@ 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
|
-
body:
|
|
5776
|
-
providerId:
|
|
5777
|
-
accountId:
|
|
5778
|
-
userId:
|
|
5779
|
-
},
|
|
5775
|
+
body: zod604.ZodObject<{
|
|
5776
|
+
providerId: zod604.ZodString;
|
|
5777
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
5778
|
+
userId: zod604.ZodOptional<zod604.ZodString>;
|
|
5779
|
+
}, zod_v4_core83.$strip>;
|
|
5780
5780
|
metadata: {
|
|
5781
5781
|
openapi: {
|
|
5782
5782
|
description: string;
|
|
@@ -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;
|
|
@@ -5890,11 +5890,11 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
5890
5890
|
};
|
|
5891
5891
|
};
|
|
5892
5892
|
};
|
|
5893
|
-
query:
|
|
5894
|
-
accountId:
|
|
5895
|
-
},
|
|
5893
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
5894
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
5895
|
+
}, zod_v4_core83.$strip>>;
|
|
5896
5896
|
}, {
|
|
5897
|
-
user:
|
|
5897
|
+
user: _better_auth_core_oauth23.OAuth2UserInfo;
|
|
5898
5898
|
data: Record<string, any>;
|
|
5899
5899
|
} | null>;
|
|
5900
5900
|
}> & (((C extends undefined ? {} : C) & {
|
|
@@ -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,47 +5959,47 @@ 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
|
-
body:
|
|
5966
|
-
callbackURL:
|
|
5967
|
-
newUserCallbackURL:
|
|
5968
|
-
errorCallbackURL:
|
|
5969
|
-
provider:
|
|
5970
|
-
disableRedirect:
|
|
5971
|
-
idToken:
|
|
5972
|
-
token:
|
|
5973
|
-
nonce:
|
|
5974
|
-
accessToken:
|
|
5975
|
-
refreshToken:
|
|
5976
|
-
expiresAt:
|
|
5977
|
-
},
|
|
5978
|
-
scopes:
|
|
5979
|
-
requestSignUp:
|
|
5980
|
-
loginHint:
|
|
5981
|
-
additionalData:
|
|
5982
|
-
},
|
|
5965
|
+
body: zod604.ZodObject<{
|
|
5966
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
5967
|
+
newUserCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
5968
|
+
errorCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
5969
|
+
provider: zod604.ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, zod_v4_core83.$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
5970
|
+
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
5971
|
+
idToken: zod604.ZodOptional<zod604.ZodObject<{
|
|
5972
|
+
token: zod604.ZodString;
|
|
5973
|
+
nonce: zod604.ZodOptional<zod604.ZodString>;
|
|
5974
|
+
accessToken: zod604.ZodOptional<zod604.ZodString>;
|
|
5975
|
+
refreshToken: zod604.ZodOptional<zod604.ZodString>;
|
|
5976
|
+
expiresAt: zod604.ZodOptional<zod604.ZodNumber>;
|
|
5977
|
+
}, zod_v4_core83.$strip>>;
|
|
5978
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
5979
|
+
requestSignUp: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
5980
|
+
loginHint: zod604.ZodOptional<zod604.ZodString>;
|
|
5981
|
+
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
5982
|
+
}, zod_v4_core83.$strip>;
|
|
5983
5983
|
metadata: {
|
|
5984
5984
|
$Infer: {
|
|
5985
|
-
body:
|
|
5986
|
-
callbackURL:
|
|
5987
|
-
newUserCallbackURL:
|
|
5988
|
-
errorCallbackURL:
|
|
5989
|
-
provider:
|
|
5990
|
-
disableRedirect:
|
|
5991
|
-
idToken:
|
|
5992
|
-
token:
|
|
5993
|
-
nonce:
|
|
5994
|
-
accessToken:
|
|
5995
|
-
refreshToken:
|
|
5996
|
-
expiresAt:
|
|
5997
|
-
},
|
|
5998
|
-
scopes:
|
|
5999
|
-
requestSignUp:
|
|
6000
|
-
loginHint:
|
|
6001
|
-
additionalData:
|
|
6002
|
-
},
|
|
5985
|
+
body: zod604.infer<zod604.ZodObject<{
|
|
5986
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
5987
|
+
newUserCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
5988
|
+
errorCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
5989
|
+
provider: zod604.ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, zod_v4_core83.$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
5990
|
+
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
5991
|
+
idToken: zod604.ZodOptional<zod604.ZodObject<{
|
|
5992
|
+
token: zod604.ZodString;
|
|
5993
|
+
nonce: zod604.ZodOptional<zod604.ZodString>;
|
|
5994
|
+
accessToken: zod604.ZodOptional<zod604.ZodString>;
|
|
5995
|
+
refreshToken: zod604.ZodOptional<zod604.ZodString>;
|
|
5996
|
+
expiresAt: zod604.ZodOptional<zod604.ZodNumber>;
|
|
5997
|
+
}, zod_v4_core83.$strip>>;
|
|
5998
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
5999
|
+
requestSignUp: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
6000
|
+
loginHint: zod604.ZodOptional<zod604.ZodString>;
|
|
6001
|
+
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
6002
|
+
}, zod_v4_core83.$strip>>;
|
|
6003
6003
|
returned: {
|
|
6004
6004
|
redirect: boolean;
|
|
6005
6005
|
token?: string | undefined;
|
|
@@ -6067,37 +6067,37 @@ 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
|
-
body:
|
|
6074
|
-
code:
|
|
6075
|
-
error:
|
|
6076
|
-
device_id:
|
|
6077
|
-
error_description:
|
|
6078
|
-
state:
|
|
6079
|
-
user:
|
|
6080
|
-
},
|
|
6081
|
-
query:
|
|
6082
|
-
code:
|
|
6083
|
-
error:
|
|
6084
|
-
device_id:
|
|
6085
|
-
error_description:
|
|
6086
|
-
state:
|
|
6087
|
-
user:
|
|
6088
|
-
},
|
|
6073
|
+
body: zod604.ZodOptional<zod604.ZodObject<{
|
|
6074
|
+
code: zod604.ZodOptional<zod604.ZodString>;
|
|
6075
|
+
error: zod604.ZodOptional<zod604.ZodString>;
|
|
6076
|
+
device_id: zod604.ZodOptional<zod604.ZodString>;
|
|
6077
|
+
error_description: zod604.ZodOptional<zod604.ZodString>;
|
|
6078
|
+
state: zod604.ZodOptional<zod604.ZodString>;
|
|
6079
|
+
user: zod604.ZodOptional<zod604.ZodString>;
|
|
6080
|
+
}, zod_v4_core83.$strip>>;
|
|
6081
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
6082
|
+
code: zod604.ZodOptional<zod604.ZodString>;
|
|
6083
|
+
error: zod604.ZodOptional<zod604.ZodString>;
|
|
6084
|
+
device_id: zod604.ZodOptional<zod604.ZodString>;
|
|
6085
|
+
error_description: zod604.ZodOptional<zod604.ZodString>;
|
|
6086
|
+
state: zod604.ZodOptional<zod604.ZodString>;
|
|
6087
|
+
user: zod604.ZodOptional<zod604.ZodString>;
|
|
6088
|
+
}, zod_v4_core83.$strip>>;
|
|
6089
6089
|
metadata: {
|
|
6090
6090
|
allowedMediaTypes: string[];
|
|
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
|
-
query:
|
|
6098
|
-
disableCookieCache:
|
|
6099
|
-
disableRefresh:
|
|
6100
|
-
},
|
|
6097
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
6098
|
+
disableCookieCache: zod604.ZodOptional<zod604.ZodCoercedBoolean<unknown>>;
|
|
6099
|
+
disableRefresh: zod604.ZodOptional<zod604.ZodCoercedBoolean<unknown>>;
|
|
6100
|
+
}, zod_v4_core83.$strip>>;
|
|
6101
6101
|
requireHeaders: true;
|
|
6102
6102
|
metadata: {
|
|
6103
6103
|
openapi: {
|
|
@@ -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,18 +6178,18 @@ 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:
|
|
6185
|
-
body:
|
|
6186
|
-
name:
|
|
6187
|
-
email:
|
|
6188
|
-
password:
|
|
6189
|
-
image:
|
|
6190
|
-
callbackURL:
|
|
6191
|
-
rememberMe:
|
|
6192
|
-
},
|
|
6184
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
6185
|
+
body: zod604.ZodIntersection<zod604.ZodObject<{
|
|
6186
|
+
name: zod604.ZodString;
|
|
6187
|
+
email: zod604.ZodEmail;
|
|
6188
|
+
password: zod604.ZodString;
|
|
6189
|
+
image: zod604.ZodOptional<zod604.ZodString>;
|
|
6190
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
6191
|
+
rememberMe: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
6192
|
+
}, zod_v4_core83.$strip>, zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
6193
6193
|
metadata: {
|
|
6194
6194
|
allowedMediaTypes: string[];
|
|
6195
6195
|
$Infer: {
|
|
@@ -6352,16 +6352,16 @@ 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:
|
|
6359
|
-
body:
|
|
6360
|
-
email:
|
|
6361
|
-
password:
|
|
6362
|
-
callbackURL:
|
|
6363
|
-
rememberMe:
|
|
6364
|
-
},
|
|
6358
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
6359
|
+
body: zod604.ZodObject<{
|
|
6360
|
+
email: zod604.ZodString;
|
|
6361
|
+
password: zod604.ZodString;
|
|
6362
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
6363
|
+
rememberMe: zod604.ZodOptional<zod604.ZodDefault<zod604.ZodBoolean>>;
|
|
6364
|
+
}, zod_v4_core83.$strip>;
|
|
6365
6365
|
metadata: {
|
|
6366
6366
|
allowedMediaTypes: string[];
|
|
6367
6367
|
$Infer: {
|
|
@@ -6437,16 +6437,16 @@ 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
|
-
query:
|
|
6444
|
-
token:
|
|
6445
|
-
},
|
|
6446
|
-
body:
|
|
6447
|
-
newPassword:
|
|
6448
|
-
token:
|
|
6449
|
-
},
|
|
6443
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
6444
|
+
token: zod604.ZodOptional<zod604.ZodString>;
|
|
6445
|
+
}, zod_v4_core83.$strip>>;
|
|
6446
|
+
body: zod604.ZodObject<{
|
|
6447
|
+
newPassword: zod604.ZodString;
|
|
6448
|
+
token: zod604.ZodOptional<zod604.ZodString>;
|
|
6449
|
+
}, zod_v4_core83.$strip>;
|
|
6450
6450
|
metadata: {
|
|
6451
6451
|
openapi: {
|
|
6452
6452
|
operationId: string;
|
|
@@ -6473,11 +6473,11 @@ 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
|
-
body:
|
|
6479
|
-
password:
|
|
6480
|
-
},
|
|
6478
|
+
body: zod604.ZodObject<{
|
|
6479
|
+
password: zod604.ZodString;
|
|
6480
|
+
}, zod_v4_core83.$strip>;
|
|
6481
6481
|
metadata: {
|
|
6482
6482
|
scope: "server";
|
|
6483
6483
|
openapi: {
|
|
@@ -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
|
-
query:
|
|
6535
|
-
token:
|
|
6536
|
-
callbackURL:
|
|
6537
|
-
},
|
|
6538
|
-
use: ((inputContext:
|
|
6534
|
+
query: zod604.ZodObject<{
|
|
6535
|
+
token: zod604.ZodString;
|
|
6536
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
6537
|
+
}, zod_v4_core83.$strip>;
|
|
6538
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
6539
6539
|
metadata: {
|
|
6540
6540
|
openapi: {
|
|
6541
6541
|
description: string;
|
|
@@ -6584,13 +6584,13 @@ 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
|
-
body:
|
|
6591
|
-
email:
|
|
6592
|
-
callbackURL:
|
|
6593
|
-
},
|
|
6590
|
+
body: zod604.ZodObject<{
|
|
6591
|
+
email: zod604.ZodEmail;
|
|
6592
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
6593
|
+
}, zod_v4_core83.$strip>;
|
|
6594
6594
|
metadata: {
|
|
6595
6595
|
openapi: {
|
|
6596
6596
|
operationId: string;
|
|
@@ -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
|
-
body:
|
|
6665
|
-
newEmail:
|
|
6666
|
-
callbackURL:
|
|
6667
|
-
},
|
|
6668
|
-
use: ((inputContext:
|
|
6664
|
+
body: zod604.ZodObject<{
|
|
6665
|
+
newEmail: zod604.ZodEmail;
|
|
6666
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
6667
|
+
}, zod_v4_core83.$strip>;
|
|
6668
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
6669
6669
|
session: {
|
|
6670
6670
|
session: Record<string, any> & {
|
|
6671
6671
|
id: string;
|
|
@@ -6740,15 +6740,15 @@ 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
|
-
body:
|
|
6747
|
-
newPassword:
|
|
6748
|
-
currentPassword:
|
|
6749
|
-
revokeOtherSessions:
|
|
6750
|
-
},
|
|
6751
|
-
use: ((inputContext:
|
|
6746
|
+
body: zod604.ZodObject<{
|
|
6747
|
+
newPassword: zod604.ZodString;
|
|
6748
|
+
currentPassword: zod604.ZodString;
|
|
6749
|
+
revokeOtherSessions: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
6750
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
6854
|
-
newPassword:
|
|
6855
|
-
},
|
|
6856
|
-
use: ((inputContext:
|
|
6853
|
+
body: zod604.ZodObject<{
|
|
6854
|
+
newPassword: zod604.ZodString;
|
|
6855
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
6886
|
-
use: ((inputContext:
|
|
6885
|
+
body: zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>;
|
|
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;
|
|
@@ -6984,11 +6984,11 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
6984
6984
|
};
|
|
6985
6985
|
};
|
|
6986
6986
|
}>)[];
|
|
6987
|
-
body:
|
|
6988
|
-
callbackURL:
|
|
6989
|
-
password:
|
|
6990
|
-
token:
|
|
6991
|
-
},
|
|
6987
|
+
body: zod604.ZodObject<{
|
|
6988
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
6989
|
+
password: zod604.ZodOptional<zod604.ZodString>;
|
|
6990
|
+
token: zod604.ZodOptional<zod604.ZodString>;
|
|
6991
|
+
}, zod_v4_core83.$strip>;
|
|
6992
6992
|
metadata: {
|
|
6993
6993
|
openapi: {
|
|
6994
6994
|
operationId: string;
|
|
@@ -7046,12 +7046,12 @@ 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
|
-
body:
|
|
7052
|
-
email:
|
|
7053
|
-
redirectTo:
|
|
7054
|
-
},
|
|
7051
|
+
body: zod604.ZodObject<{
|
|
7052
|
+
email: zod604.ZodEmail;
|
|
7053
|
+
redirectTo: zod604.ZodOptional<zod604.ZodString>;
|
|
7054
|
+
}, zod_v4_core83.$strip>;
|
|
7055
7055
|
metadata: {
|
|
7056
7056
|
openapi: {
|
|
7057
7057
|
operationId: string;
|
|
@@ -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
|
-
query:
|
|
7089
|
-
callbackURL:
|
|
7090
|
-
},
|
|
7091
|
-
use: ((inputContext:
|
|
7088
|
+
query: zod604.ZodObject<{
|
|
7089
|
+
callbackURL: zod604.ZodString;
|
|
7090
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
7194
|
-
token:
|
|
7195
|
-
},
|
|
7196
|
-
use: ((inputContext:
|
|
7193
|
+
body: zod604.ZodObject<{
|
|
7194
|
+
token: zod604.ZodString;
|
|
7195
|
+
}, zod_v4_core83.$strip>;
|
|
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,26 +7366,26 @@ 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
|
-
body:
|
|
7373
|
-
callbackURL:
|
|
7374
|
-
provider:
|
|
7375
|
-
idToken:
|
|
7376
|
-
token:
|
|
7377
|
-
nonce:
|
|
7378
|
-
accessToken:
|
|
7379
|
-
refreshToken:
|
|
7380
|
-
scopes:
|
|
7381
|
-
},
|
|
7382
|
-
requestSignUp:
|
|
7383
|
-
scopes:
|
|
7384
|
-
errorCallbackURL:
|
|
7385
|
-
disableRedirect:
|
|
7386
|
-
additionalData:
|
|
7387
|
-
},
|
|
7388
|
-
use: ((inputContext:
|
|
7372
|
+
body: zod604.ZodObject<{
|
|
7373
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
7374
|
+
provider: zod604.ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, zod_v4_core83.$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
7375
|
+
idToken: zod604.ZodOptional<zod604.ZodObject<{
|
|
7376
|
+
token: zod604.ZodString;
|
|
7377
|
+
nonce: zod604.ZodOptional<zod604.ZodString>;
|
|
7378
|
+
accessToken: zod604.ZodOptional<zod604.ZodString>;
|
|
7379
|
+
refreshToken: zod604.ZodOptional<zod604.ZodString>;
|
|
7380
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
7381
|
+
}, zod_v4_core83.$strip>>;
|
|
7382
|
+
requestSignUp: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
7383
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
7384
|
+
errorCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
7385
|
+
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
7386
|
+
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
7387
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
query:
|
|
7534
|
-
token:
|
|
7535
|
-
callbackURL:
|
|
7536
|
-
},
|
|
7537
|
-
use: ((inputContext:
|
|
7533
|
+
query: zod604.ZodObject<{
|
|
7534
|
+
token: zod604.ZodString;
|
|
7535
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
7536
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
7574
|
-
providerId:
|
|
7575
|
-
accountId:
|
|
7576
|
-
},
|
|
7577
|
-
use: ((inputContext:
|
|
7573
|
+
body: zod604.ZodObject<{
|
|
7574
|
+
providerId: zod604.ZodString;
|
|
7575
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
7576
|
+
}, zod_v4_core83.$strip>;
|
|
7577
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
7578
7578
|
session: {
|
|
7579
7579
|
session: Record<string, any> & {
|
|
7580
7580
|
id: string;
|
|
@@ -7622,13 +7622,13 @@ 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
|
-
body:
|
|
7628
|
-
providerId:
|
|
7629
|
-
accountId:
|
|
7630
|
-
userId:
|
|
7631
|
-
},
|
|
7627
|
+
body: zod604.ZodObject<{
|
|
7628
|
+
providerId: zod604.ZodString;
|
|
7629
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
7630
|
+
userId: zod604.ZodOptional<zod604.ZodString>;
|
|
7631
|
+
}, zod_v4_core83.$strip>;
|
|
7632
7632
|
metadata: {
|
|
7633
7633
|
openapi: {
|
|
7634
7634
|
description: string;
|
|
@@ -7681,13 +7681,13 @@ 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
|
-
body:
|
|
7687
|
-
providerId:
|
|
7688
|
-
accountId:
|
|
7689
|
-
userId:
|
|
7690
|
-
},
|
|
7686
|
+
body: zod604.ZodObject<{
|
|
7687
|
+
providerId: zod604.ZodString;
|
|
7688
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
7689
|
+
userId: zod604.ZodOptional<zod604.ZodString>;
|
|
7690
|
+
}, zod_v4_core83.$strip>;
|
|
7691
7691
|
metadata: {
|
|
7692
7692
|
openapi: {
|
|
7693
7693
|
description: string;
|
|
@@ -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;
|
|
@@ -7801,11 +7801,11 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
7801
7801
|
};
|
|
7802
7802
|
};
|
|
7803
7803
|
};
|
|
7804
|
-
query:
|
|
7805
|
-
accountId:
|
|
7806
|
-
},
|
|
7804
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
7805
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
7806
|
+
}, zod_v4_core83.$strip>>;
|
|
7807
7807
|
}, {
|
|
7808
|
-
user:
|
|
7808
|
+
user: _better_auth_core_oauth23.OAuth2UserInfo;
|
|
7809
7809
|
data: Record<string, any>;
|
|
7810
7810
|
} | null>;
|
|
7811
7811
|
}>, (C extends undefined ? {} : C) & {
|
|
@@ -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,47 +8016,47 @@ 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
|
-
body:
|
|
8023
|
-
callbackURL:
|
|
8024
|
-
newUserCallbackURL:
|
|
8025
|
-
errorCallbackURL:
|
|
8026
|
-
provider:
|
|
8027
|
-
disableRedirect:
|
|
8028
|
-
idToken:
|
|
8029
|
-
token:
|
|
8030
|
-
nonce:
|
|
8031
|
-
accessToken:
|
|
8032
|
-
refreshToken:
|
|
8033
|
-
expiresAt:
|
|
8034
|
-
},
|
|
8035
|
-
scopes:
|
|
8036
|
-
requestSignUp:
|
|
8037
|
-
loginHint:
|
|
8038
|
-
additionalData:
|
|
8039
|
-
},
|
|
8022
|
+
body: zod604.ZodObject<{
|
|
8023
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
8024
|
+
newUserCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
8025
|
+
errorCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
8026
|
+
provider: zod604.ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, zod_v4_core83.$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
8027
|
+
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
8028
|
+
idToken: zod604.ZodOptional<zod604.ZodObject<{
|
|
8029
|
+
token: zod604.ZodString;
|
|
8030
|
+
nonce: zod604.ZodOptional<zod604.ZodString>;
|
|
8031
|
+
accessToken: zod604.ZodOptional<zod604.ZodString>;
|
|
8032
|
+
refreshToken: zod604.ZodOptional<zod604.ZodString>;
|
|
8033
|
+
expiresAt: zod604.ZodOptional<zod604.ZodNumber>;
|
|
8034
|
+
}, zod_v4_core83.$strip>>;
|
|
8035
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
8036
|
+
requestSignUp: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
8037
|
+
loginHint: zod604.ZodOptional<zod604.ZodString>;
|
|
8038
|
+
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
8039
|
+
}, zod_v4_core83.$strip>;
|
|
8040
8040
|
metadata: {
|
|
8041
8041
|
$Infer: {
|
|
8042
|
-
body:
|
|
8043
|
-
callbackURL:
|
|
8044
|
-
newUserCallbackURL:
|
|
8045
|
-
errorCallbackURL:
|
|
8046
|
-
provider:
|
|
8047
|
-
disableRedirect:
|
|
8048
|
-
idToken:
|
|
8049
|
-
token:
|
|
8050
|
-
nonce:
|
|
8051
|
-
accessToken:
|
|
8052
|
-
refreshToken:
|
|
8053
|
-
expiresAt:
|
|
8054
|
-
},
|
|
8055
|
-
scopes:
|
|
8056
|
-
requestSignUp:
|
|
8057
|
-
loginHint:
|
|
8058
|
-
additionalData:
|
|
8059
|
-
},
|
|
8042
|
+
body: zod604.infer<zod604.ZodObject<{
|
|
8043
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
8044
|
+
newUserCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
8045
|
+
errorCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
8046
|
+
provider: zod604.ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, zod_v4_core83.$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
8047
|
+
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
8048
|
+
idToken: zod604.ZodOptional<zod604.ZodObject<{
|
|
8049
|
+
token: zod604.ZodString;
|
|
8050
|
+
nonce: zod604.ZodOptional<zod604.ZodString>;
|
|
8051
|
+
accessToken: zod604.ZodOptional<zod604.ZodString>;
|
|
8052
|
+
refreshToken: zod604.ZodOptional<zod604.ZodString>;
|
|
8053
|
+
expiresAt: zod604.ZodOptional<zod604.ZodNumber>;
|
|
8054
|
+
}, zod_v4_core83.$strip>>;
|
|
8055
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
8056
|
+
requestSignUp: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
8057
|
+
loginHint: zod604.ZodOptional<zod604.ZodString>;
|
|
8058
|
+
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
8059
|
+
}, zod_v4_core83.$strip>>;
|
|
8060
8060
|
returned: {
|
|
8061
8061
|
redirect: boolean;
|
|
8062
8062
|
token?: string | undefined;
|
|
@@ -8124,37 +8124,37 @@ 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
|
-
body:
|
|
8131
|
-
code:
|
|
8132
|
-
error:
|
|
8133
|
-
device_id:
|
|
8134
|
-
error_description:
|
|
8135
|
-
state:
|
|
8136
|
-
user:
|
|
8137
|
-
},
|
|
8138
|
-
query:
|
|
8139
|
-
code:
|
|
8140
|
-
error:
|
|
8141
|
-
device_id:
|
|
8142
|
-
error_description:
|
|
8143
|
-
state:
|
|
8144
|
-
user:
|
|
8145
|
-
},
|
|
8130
|
+
body: zod604.ZodOptional<zod604.ZodObject<{
|
|
8131
|
+
code: zod604.ZodOptional<zod604.ZodString>;
|
|
8132
|
+
error: zod604.ZodOptional<zod604.ZodString>;
|
|
8133
|
+
device_id: zod604.ZodOptional<zod604.ZodString>;
|
|
8134
|
+
error_description: zod604.ZodOptional<zod604.ZodString>;
|
|
8135
|
+
state: zod604.ZodOptional<zod604.ZodString>;
|
|
8136
|
+
user: zod604.ZodOptional<zod604.ZodString>;
|
|
8137
|
+
}, zod_v4_core83.$strip>>;
|
|
8138
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
8139
|
+
code: zod604.ZodOptional<zod604.ZodString>;
|
|
8140
|
+
error: zod604.ZodOptional<zod604.ZodString>;
|
|
8141
|
+
device_id: zod604.ZodOptional<zod604.ZodString>;
|
|
8142
|
+
error_description: zod604.ZodOptional<zod604.ZodString>;
|
|
8143
|
+
state: zod604.ZodOptional<zod604.ZodString>;
|
|
8144
|
+
user: zod604.ZodOptional<zod604.ZodString>;
|
|
8145
|
+
}, zod_v4_core83.$strip>>;
|
|
8146
8146
|
metadata: {
|
|
8147
8147
|
allowedMediaTypes: string[];
|
|
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
|
-
query:
|
|
8155
|
-
disableCookieCache:
|
|
8156
|
-
disableRefresh:
|
|
8157
|
-
},
|
|
8154
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
8155
|
+
disableCookieCache: zod604.ZodOptional<zod604.ZodCoercedBoolean<unknown>>;
|
|
8156
|
+
disableRefresh: zod604.ZodOptional<zod604.ZodCoercedBoolean<unknown>>;
|
|
8157
|
+
}, zod_v4_core83.$strip>>;
|
|
8158
8158
|
requireHeaders: true;
|
|
8159
8159
|
metadata: {
|
|
8160
8160
|
openapi: {
|
|
@@ -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,18 +8235,18 @@ 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:
|
|
8242
|
-
body:
|
|
8243
|
-
name:
|
|
8244
|
-
email:
|
|
8245
|
-
password:
|
|
8246
|
-
image:
|
|
8247
|
-
callbackURL:
|
|
8248
|
-
rememberMe:
|
|
8249
|
-
},
|
|
8241
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
8242
|
+
body: zod604.ZodIntersection<zod604.ZodObject<{
|
|
8243
|
+
name: zod604.ZodString;
|
|
8244
|
+
email: zod604.ZodEmail;
|
|
8245
|
+
password: zod604.ZodString;
|
|
8246
|
+
image: zod604.ZodOptional<zod604.ZodString>;
|
|
8247
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
8248
|
+
rememberMe: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
8249
|
+
}, zod_v4_core83.$strip>, zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
8250
8250
|
metadata: {
|
|
8251
8251
|
allowedMediaTypes: string[];
|
|
8252
8252
|
$Infer: {
|
|
@@ -8409,16 +8409,16 @@ 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:
|
|
8416
|
-
body:
|
|
8417
|
-
email:
|
|
8418
|
-
password:
|
|
8419
|
-
callbackURL:
|
|
8420
|
-
rememberMe:
|
|
8421
|
-
},
|
|
8415
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
8416
|
+
body: zod604.ZodObject<{
|
|
8417
|
+
email: zod604.ZodString;
|
|
8418
|
+
password: zod604.ZodString;
|
|
8419
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
8420
|
+
rememberMe: zod604.ZodOptional<zod604.ZodDefault<zod604.ZodBoolean>>;
|
|
8421
|
+
}, zod_v4_core83.$strip>;
|
|
8422
8422
|
metadata: {
|
|
8423
8423
|
allowedMediaTypes: string[];
|
|
8424
8424
|
$Infer: {
|
|
@@ -8494,16 +8494,16 @@ 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
|
-
query:
|
|
8501
|
-
token:
|
|
8502
|
-
},
|
|
8503
|
-
body:
|
|
8504
|
-
newPassword:
|
|
8505
|
-
token:
|
|
8506
|
-
},
|
|
8500
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
8501
|
+
token: zod604.ZodOptional<zod604.ZodString>;
|
|
8502
|
+
}, zod_v4_core83.$strip>>;
|
|
8503
|
+
body: zod604.ZodObject<{
|
|
8504
|
+
newPassword: zod604.ZodString;
|
|
8505
|
+
token: zod604.ZodOptional<zod604.ZodString>;
|
|
8506
|
+
}, zod_v4_core83.$strip>;
|
|
8507
8507
|
metadata: {
|
|
8508
8508
|
openapi: {
|
|
8509
8509
|
operationId: string;
|
|
@@ -8530,11 +8530,11 @@ 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
|
-
body:
|
|
8536
|
-
password:
|
|
8537
|
-
},
|
|
8535
|
+
body: zod604.ZodObject<{
|
|
8536
|
+
password: zod604.ZodString;
|
|
8537
|
+
}, zod_v4_core83.$strip>;
|
|
8538
8538
|
metadata: {
|
|
8539
8539
|
scope: "server";
|
|
8540
8540
|
openapi: {
|
|
@@ -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
|
-
query:
|
|
8592
|
-
token:
|
|
8593
|
-
callbackURL:
|
|
8594
|
-
},
|
|
8595
|
-
use: ((inputContext:
|
|
8591
|
+
query: zod604.ZodObject<{
|
|
8592
|
+
token: zod604.ZodString;
|
|
8593
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
8594
|
+
}, zod_v4_core83.$strip>;
|
|
8595
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
8596
8596
|
metadata: {
|
|
8597
8597
|
openapi: {
|
|
8598
8598
|
description: string;
|
|
@@ -8641,13 +8641,13 @@ 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
|
-
body:
|
|
8648
|
-
email:
|
|
8649
|
-
callbackURL:
|
|
8650
|
-
},
|
|
8647
|
+
body: zod604.ZodObject<{
|
|
8648
|
+
email: zod604.ZodEmail;
|
|
8649
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
8650
|
+
}, zod_v4_core83.$strip>;
|
|
8651
8651
|
metadata: {
|
|
8652
8652
|
openapi: {
|
|
8653
8653
|
operationId: string;
|
|
@@ -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
|
-
body:
|
|
8722
|
-
newEmail:
|
|
8723
|
-
callbackURL:
|
|
8724
|
-
},
|
|
8725
|
-
use: ((inputContext:
|
|
8721
|
+
body: zod604.ZodObject<{
|
|
8722
|
+
newEmail: zod604.ZodEmail;
|
|
8723
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
8724
|
+
}, zod_v4_core83.$strip>;
|
|
8725
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
8726
8726
|
session: {
|
|
8727
8727
|
session: Record<string, any> & {
|
|
8728
8728
|
id: string;
|
|
@@ -8797,15 +8797,15 @@ 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
|
-
body:
|
|
8804
|
-
newPassword:
|
|
8805
|
-
currentPassword:
|
|
8806
|
-
revokeOtherSessions:
|
|
8807
|
-
},
|
|
8808
|
-
use: ((inputContext:
|
|
8803
|
+
body: zod604.ZodObject<{
|
|
8804
|
+
newPassword: zod604.ZodString;
|
|
8805
|
+
currentPassword: zod604.ZodString;
|
|
8806
|
+
revokeOtherSessions: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
8807
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
8911
|
-
newPassword:
|
|
8912
|
-
},
|
|
8913
|
-
use: ((inputContext:
|
|
8910
|
+
body: zod604.ZodObject<{
|
|
8911
|
+
newPassword: zod604.ZodString;
|
|
8912
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
8943
|
-
use: ((inputContext:
|
|
8942
|
+
body: zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>;
|
|
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;
|
|
@@ -9041,11 +9041,11 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9041
9041
|
};
|
|
9042
9042
|
};
|
|
9043
9043
|
}>)[];
|
|
9044
|
-
body:
|
|
9045
|
-
callbackURL:
|
|
9046
|
-
password:
|
|
9047
|
-
token:
|
|
9048
|
-
},
|
|
9044
|
+
body: zod604.ZodObject<{
|
|
9045
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
9046
|
+
password: zod604.ZodOptional<zod604.ZodString>;
|
|
9047
|
+
token: zod604.ZodOptional<zod604.ZodString>;
|
|
9048
|
+
}, zod_v4_core83.$strip>;
|
|
9049
9049
|
metadata: {
|
|
9050
9050
|
openapi: {
|
|
9051
9051
|
operationId: string;
|
|
@@ -9103,12 +9103,12 @@ 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
|
-
body:
|
|
9109
|
-
email:
|
|
9110
|
-
redirectTo:
|
|
9111
|
-
},
|
|
9108
|
+
body: zod604.ZodObject<{
|
|
9109
|
+
email: zod604.ZodEmail;
|
|
9110
|
+
redirectTo: zod604.ZodOptional<zod604.ZodString>;
|
|
9111
|
+
}, zod_v4_core83.$strip>;
|
|
9112
9112
|
metadata: {
|
|
9113
9113
|
openapi: {
|
|
9114
9114
|
operationId: string;
|
|
@@ -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
|
-
query:
|
|
9146
|
-
callbackURL:
|
|
9147
|
-
},
|
|
9148
|
-
use: ((inputContext:
|
|
9145
|
+
query: zod604.ZodObject<{
|
|
9146
|
+
callbackURL: zod604.ZodString;
|
|
9147
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
9251
|
-
token:
|
|
9252
|
-
},
|
|
9253
|
-
use: ((inputContext:
|
|
9250
|
+
body: zod604.ZodObject<{
|
|
9251
|
+
token: zod604.ZodString;
|
|
9252
|
+
}, zod_v4_core83.$strip>;
|
|
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,26 +9423,26 @@ 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
|
-
body:
|
|
9430
|
-
callbackURL:
|
|
9431
|
-
provider:
|
|
9432
|
-
idToken:
|
|
9433
|
-
token:
|
|
9434
|
-
nonce:
|
|
9435
|
-
accessToken:
|
|
9436
|
-
refreshToken:
|
|
9437
|
-
scopes:
|
|
9438
|
-
},
|
|
9439
|
-
requestSignUp:
|
|
9440
|
-
scopes:
|
|
9441
|
-
errorCallbackURL:
|
|
9442
|
-
disableRedirect:
|
|
9443
|
-
additionalData:
|
|
9444
|
-
},
|
|
9445
|
-
use: ((inputContext:
|
|
9429
|
+
body: zod604.ZodObject<{
|
|
9430
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
9431
|
+
provider: zod604.ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, zod_v4_core83.$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
9432
|
+
idToken: zod604.ZodOptional<zod604.ZodObject<{
|
|
9433
|
+
token: zod604.ZodString;
|
|
9434
|
+
nonce: zod604.ZodOptional<zod604.ZodString>;
|
|
9435
|
+
accessToken: zod604.ZodOptional<zod604.ZodString>;
|
|
9436
|
+
refreshToken: zod604.ZodOptional<zod604.ZodString>;
|
|
9437
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
9438
|
+
}, zod_v4_core83.$strip>>;
|
|
9439
|
+
requestSignUp: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
9440
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
9441
|
+
errorCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
9442
|
+
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
9443
|
+
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
9444
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
query:
|
|
9591
|
-
token:
|
|
9592
|
-
callbackURL:
|
|
9593
|
-
},
|
|
9594
|
-
use: ((inputContext:
|
|
9590
|
+
query: zod604.ZodObject<{
|
|
9591
|
+
token: zod604.ZodString;
|
|
9592
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
9593
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
9631
|
-
providerId:
|
|
9632
|
-
accountId:
|
|
9633
|
-
},
|
|
9634
|
-
use: ((inputContext:
|
|
9630
|
+
body: zod604.ZodObject<{
|
|
9631
|
+
providerId: zod604.ZodString;
|
|
9632
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
9633
|
+
}, zod_v4_core83.$strip>;
|
|
9634
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
9635
9635
|
session: {
|
|
9636
9636
|
session: Record<string, any> & {
|
|
9637
9637
|
id: string;
|
|
@@ -9679,13 +9679,13 @@ 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
|
-
body:
|
|
9685
|
-
providerId:
|
|
9686
|
-
accountId:
|
|
9687
|
-
userId:
|
|
9688
|
-
},
|
|
9684
|
+
body: zod604.ZodObject<{
|
|
9685
|
+
providerId: zod604.ZodString;
|
|
9686
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
9687
|
+
userId: zod604.ZodOptional<zod604.ZodString>;
|
|
9688
|
+
}, zod_v4_core83.$strip>;
|
|
9689
9689
|
metadata: {
|
|
9690
9690
|
openapi: {
|
|
9691
9691
|
description: string;
|
|
@@ -9738,13 +9738,13 @@ 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
|
-
body:
|
|
9744
|
-
providerId:
|
|
9745
|
-
accountId:
|
|
9746
|
-
userId:
|
|
9747
|
-
},
|
|
9743
|
+
body: zod604.ZodObject<{
|
|
9744
|
+
providerId: zod604.ZodString;
|
|
9745
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
9746
|
+
userId: zod604.ZodOptional<zod604.ZodString>;
|
|
9747
|
+
}, zod_v4_core83.$strip>;
|
|
9748
9748
|
metadata: {
|
|
9749
9749
|
openapi: {
|
|
9750
9750
|
description: string;
|
|
@@ -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;
|
|
@@ -9858,11 +9858,11 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
9858
9858
|
};
|
|
9859
9859
|
};
|
|
9860
9860
|
};
|
|
9861
|
-
query:
|
|
9862
|
-
accountId:
|
|
9863
|
-
},
|
|
9861
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
9862
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
9863
|
+
}, zod_v4_core83.$strip>>;
|
|
9864
9864
|
}, {
|
|
9865
|
-
user:
|
|
9865
|
+
user: _better_auth_core_oauth23.OAuth2UserInfo;
|
|
9866
9866
|
data: Record<string, any>;
|
|
9867
9867
|
} | null>;
|
|
9868
9868
|
}> & (((C extends undefined ? {} : C) & {
|
|
@@ -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,47 +9927,47 @@ 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
|
-
body:
|
|
9934
|
-
callbackURL:
|
|
9935
|
-
newUserCallbackURL:
|
|
9936
|
-
errorCallbackURL:
|
|
9937
|
-
provider:
|
|
9938
|
-
disableRedirect:
|
|
9939
|
-
idToken:
|
|
9940
|
-
token:
|
|
9941
|
-
nonce:
|
|
9942
|
-
accessToken:
|
|
9943
|
-
refreshToken:
|
|
9944
|
-
expiresAt:
|
|
9945
|
-
},
|
|
9946
|
-
scopes:
|
|
9947
|
-
requestSignUp:
|
|
9948
|
-
loginHint:
|
|
9949
|
-
additionalData:
|
|
9950
|
-
},
|
|
9933
|
+
body: zod604.ZodObject<{
|
|
9934
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
9935
|
+
newUserCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
9936
|
+
errorCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
9937
|
+
provider: zod604.ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, zod_v4_core83.$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
9938
|
+
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
9939
|
+
idToken: zod604.ZodOptional<zod604.ZodObject<{
|
|
9940
|
+
token: zod604.ZodString;
|
|
9941
|
+
nonce: zod604.ZodOptional<zod604.ZodString>;
|
|
9942
|
+
accessToken: zod604.ZodOptional<zod604.ZodString>;
|
|
9943
|
+
refreshToken: zod604.ZodOptional<zod604.ZodString>;
|
|
9944
|
+
expiresAt: zod604.ZodOptional<zod604.ZodNumber>;
|
|
9945
|
+
}, zod_v4_core83.$strip>>;
|
|
9946
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
9947
|
+
requestSignUp: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
9948
|
+
loginHint: zod604.ZodOptional<zod604.ZodString>;
|
|
9949
|
+
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
9950
|
+
}, zod_v4_core83.$strip>;
|
|
9951
9951
|
metadata: {
|
|
9952
9952
|
$Infer: {
|
|
9953
|
-
body:
|
|
9954
|
-
callbackURL:
|
|
9955
|
-
newUserCallbackURL:
|
|
9956
|
-
errorCallbackURL:
|
|
9957
|
-
provider:
|
|
9958
|
-
disableRedirect:
|
|
9959
|
-
idToken:
|
|
9960
|
-
token:
|
|
9961
|
-
nonce:
|
|
9962
|
-
accessToken:
|
|
9963
|
-
refreshToken:
|
|
9964
|
-
expiresAt:
|
|
9965
|
-
},
|
|
9966
|
-
scopes:
|
|
9967
|
-
requestSignUp:
|
|
9968
|
-
loginHint:
|
|
9969
|
-
additionalData:
|
|
9970
|
-
},
|
|
9953
|
+
body: zod604.infer<zod604.ZodObject<{
|
|
9954
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
9955
|
+
newUserCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
9956
|
+
errorCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
9957
|
+
provider: zod604.ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, zod_v4_core83.$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
9958
|
+
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
9959
|
+
idToken: zod604.ZodOptional<zod604.ZodObject<{
|
|
9960
|
+
token: zod604.ZodString;
|
|
9961
|
+
nonce: zod604.ZodOptional<zod604.ZodString>;
|
|
9962
|
+
accessToken: zod604.ZodOptional<zod604.ZodString>;
|
|
9963
|
+
refreshToken: zod604.ZodOptional<zod604.ZodString>;
|
|
9964
|
+
expiresAt: zod604.ZodOptional<zod604.ZodNumber>;
|
|
9965
|
+
}, zod_v4_core83.$strip>>;
|
|
9966
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
9967
|
+
requestSignUp: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
9968
|
+
loginHint: zod604.ZodOptional<zod604.ZodString>;
|
|
9969
|
+
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
9970
|
+
}, zod_v4_core83.$strip>>;
|
|
9971
9971
|
returned: {
|
|
9972
9972
|
redirect: boolean;
|
|
9973
9973
|
token?: string | undefined;
|
|
@@ -10035,37 +10035,37 @@ 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
|
-
body:
|
|
10042
|
-
code:
|
|
10043
|
-
error:
|
|
10044
|
-
device_id:
|
|
10045
|
-
error_description:
|
|
10046
|
-
state:
|
|
10047
|
-
user:
|
|
10048
|
-
},
|
|
10049
|
-
query:
|
|
10050
|
-
code:
|
|
10051
|
-
error:
|
|
10052
|
-
device_id:
|
|
10053
|
-
error_description:
|
|
10054
|
-
state:
|
|
10055
|
-
user:
|
|
10056
|
-
},
|
|
10041
|
+
body: zod604.ZodOptional<zod604.ZodObject<{
|
|
10042
|
+
code: zod604.ZodOptional<zod604.ZodString>;
|
|
10043
|
+
error: zod604.ZodOptional<zod604.ZodString>;
|
|
10044
|
+
device_id: zod604.ZodOptional<zod604.ZodString>;
|
|
10045
|
+
error_description: zod604.ZodOptional<zod604.ZodString>;
|
|
10046
|
+
state: zod604.ZodOptional<zod604.ZodString>;
|
|
10047
|
+
user: zod604.ZodOptional<zod604.ZodString>;
|
|
10048
|
+
}, zod_v4_core83.$strip>>;
|
|
10049
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
10050
|
+
code: zod604.ZodOptional<zod604.ZodString>;
|
|
10051
|
+
error: zod604.ZodOptional<zod604.ZodString>;
|
|
10052
|
+
device_id: zod604.ZodOptional<zod604.ZodString>;
|
|
10053
|
+
error_description: zod604.ZodOptional<zod604.ZodString>;
|
|
10054
|
+
state: zod604.ZodOptional<zod604.ZodString>;
|
|
10055
|
+
user: zod604.ZodOptional<zod604.ZodString>;
|
|
10056
|
+
}, zod_v4_core83.$strip>>;
|
|
10057
10057
|
metadata: {
|
|
10058
10058
|
allowedMediaTypes: string[];
|
|
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
|
-
query:
|
|
10066
|
-
disableCookieCache:
|
|
10067
|
-
disableRefresh:
|
|
10068
|
-
},
|
|
10065
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
10066
|
+
disableCookieCache: zod604.ZodOptional<zod604.ZodCoercedBoolean<unknown>>;
|
|
10067
|
+
disableRefresh: zod604.ZodOptional<zod604.ZodCoercedBoolean<unknown>>;
|
|
10068
|
+
}, zod_v4_core83.$strip>>;
|
|
10069
10069
|
requireHeaders: true;
|
|
10070
10070
|
metadata: {
|
|
10071
10071
|
openapi: {
|
|
@@ -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,18 +10146,18 @@ 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:
|
|
10153
|
-
body:
|
|
10154
|
-
name:
|
|
10155
|
-
email:
|
|
10156
|
-
password:
|
|
10157
|
-
image:
|
|
10158
|
-
callbackURL:
|
|
10159
|
-
rememberMe:
|
|
10160
|
-
},
|
|
10152
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
10153
|
+
body: zod604.ZodIntersection<zod604.ZodObject<{
|
|
10154
|
+
name: zod604.ZodString;
|
|
10155
|
+
email: zod604.ZodEmail;
|
|
10156
|
+
password: zod604.ZodString;
|
|
10157
|
+
image: zod604.ZodOptional<zod604.ZodString>;
|
|
10158
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
10159
|
+
rememberMe: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
10160
|
+
}, zod_v4_core83.$strip>, zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
10161
10161
|
metadata: {
|
|
10162
10162
|
allowedMediaTypes: string[];
|
|
10163
10163
|
$Infer: {
|
|
@@ -10320,16 +10320,16 @@ 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:
|
|
10327
|
-
body:
|
|
10328
|
-
email:
|
|
10329
|
-
password:
|
|
10330
|
-
callbackURL:
|
|
10331
|
-
rememberMe:
|
|
10332
|
-
},
|
|
10326
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
10327
|
+
body: zod604.ZodObject<{
|
|
10328
|
+
email: zod604.ZodString;
|
|
10329
|
+
password: zod604.ZodString;
|
|
10330
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
10331
|
+
rememberMe: zod604.ZodOptional<zod604.ZodDefault<zod604.ZodBoolean>>;
|
|
10332
|
+
}, zod_v4_core83.$strip>;
|
|
10333
10333
|
metadata: {
|
|
10334
10334
|
allowedMediaTypes: string[];
|
|
10335
10335
|
$Infer: {
|
|
@@ -10405,16 +10405,16 @@ 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
|
-
query:
|
|
10412
|
-
token:
|
|
10413
|
-
},
|
|
10414
|
-
body:
|
|
10415
|
-
newPassword:
|
|
10416
|
-
token:
|
|
10417
|
-
},
|
|
10411
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
10412
|
+
token: zod604.ZodOptional<zod604.ZodString>;
|
|
10413
|
+
}, zod_v4_core83.$strip>>;
|
|
10414
|
+
body: zod604.ZodObject<{
|
|
10415
|
+
newPassword: zod604.ZodString;
|
|
10416
|
+
token: zod604.ZodOptional<zod604.ZodString>;
|
|
10417
|
+
}, zod_v4_core83.$strip>;
|
|
10418
10418
|
metadata: {
|
|
10419
10419
|
openapi: {
|
|
10420
10420
|
operationId: string;
|
|
@@ -10441,11 +10441,11 @@ 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
|
-
body:
|
|
10447
|
-
password:
|
|
10448
|
-
},
|
|
10446
|
+
body: zod604.ZodObject<{
|
|
10447
|
+
password: zod604.ZodString;
|
|
10448
|
+
}, zod_v4_core83.$strip>;
|
|
10449
10449
|
metadata: {
|
|
10450
10450
|
scope: "server";
|
|
10451
10451
|
openapi: {
|
|
@@ -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
|
-
query:
|
|
10503
|
-
token:
|
|
10504
|
-
callbackURL:
|
|
10505
|
-
},
|
|
10506
|
-
use: ((inputContext:
|
|
10502
|
+
query: zod604.ZodObject<{
|
|
10503
|
+
token: zod604.ZodString;
|
|
10504
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
10505
|
+
}, zod_v4_core83.$strip>;
|
|
10506
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<void>)[];
|
|
10507
10507
|
metadata: {
|
|
10508
10508
|
openapi: {
|
|
10509
10509
|
description: string;
|
|
@@ -10552,13 +10552,13 @@ 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
|
-
body:
|
|
10559
|
-
email:
|
|
10560
|
-
callbackURL:
|
|
10561
|
-
},
|
|
10558
|
+
body: zod604.ZodObject<{
|
|
10559
|
+
email: zod604.ZodEmail;
|
|
10560
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
10561
|
+
}, zod_v4_core83.$strip>;
|
|
10562
10562
|
metadata: {
|
|
10563
10563
|
openapi: {
|
|
10564
10564
|
operationId: string;
|
|
@@ -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
|
-
body:
|
|
10633
|
-
newEmail:
|
|
10634
|
-
callbackURL:
|
|
10635
|
-
},
|
|
10636
|
-
use: ((inputContext:
|
|
10632
|
+
body: zod604.ZodObject<{
|
|
10633
|
+
newEmail: zod604.ZodEmail;
|
|
10634
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
10635
|
+
}, zod_v4_core83.$strip>;
|
|
10636
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
10637
10637
|
session: {
|
|
10638
10638
|
session: Record<string, any> & {
|
|
10639
10639
|
id: string;
|
|
@@ -10708,15 +10708,15 @@ 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
|
-
body:
|
|
10715
|
-
newPassword:
|
|
10716
|
-
currentPassword:
|
|
10717
|
-
revokeOtherSessions:
|
|
10718
|
-
},
|
|
10719
|
-
use: ((inputContext:
|
|
10714
|
+
body: zod604.ZodObject<{
|
|
10715
|
+
newPassword: zod604.ZodString;
|
|
10716
|
+
currentPassword: zod604.ZodString;
|
|
10717
|
+
revokeOtherSessions: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
10718
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
10822
|
-
newPassword:
|
|
10823
|
-
},
|
|
10824
|
-
use: ((inputContext:
|
|
10821
|
+
body: zod604.ZodObject<{
|
|
10822
|
+
newPassword: zod604.ZodString;
|
|
10823
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
10854
|
-
use: ((inputContext:
|
|
10853
|
+
body: zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>;
|
|
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;
|
|
@@ -10952,11 +10952,11 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
10952
10952
|
};
|
|
10953
10953
|
};
|
|
10954
10954
|
}>)[];
|
|
10955
|
-
body:
|
|
10956
|
-
callbackURL:
|
|
10957
|
-
password:
|
|
10958
|
-
token:
|
|
10959
|
-
},
|
|
10955
|
+
body: zod604.ZodObject<{
|
|
10956
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
10957
|
+
password: zod604.ZodOptional<zod604.ZodString>;
|
|
10958
|
+
token: zod604.ZodOptional<zod604.ZodString>;
|
|
10959
|
+
}, zod_v4_core83.$strip>;
|
|
10960
10960
|
metadata: {
|
|
10961
10961
|
openapi: {
|
|
10962
10962
|
operationId: string;
|
|
@@ -11014,12 +11014,12 @@ 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
|
-
body:
|
|
11020
|
-
email:
|
|
11021
|
-
redirectTo:
|
|
11022
|
-
},
|
|
11019
|
+
body: zod604.ZodObject<{
|
|
11020
|
+
email: zod604.ZodEmail;
|
|
11021
|
+
redirectTo: zod604.ZodOptional<zod604.ZodString>;
|
|
11022
|
+
}, zod_v4_core83.$strip>;
|
|
11023
11023
|
metadata: {
|
|
11024
11024
|
openapi: {
|
|
11025
11025
|
operationId: string;
|
|
@@ -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
|
-
query:
|
|
11057
|
-
callbackURL:
|
|
11058
|
-
},
|
|
11059
|
-
use: ((inputContext:
|
|
11056
|
+
query: zod604.ZodObject<{
|
|
11057
|
+
callbackURL: zod604.ZodString;
|
|
11058
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
11162
|
-
token:
|
|
11163
|
-
},
|
|
11164
|
-
use: ((inputContext:
|
|
11161
|
+
body: zod604.ZodObject<{
|
|
11162
|
+
token: zod604.ZodString;
|
|
11163
|
+
}, zod_v4_core83.$strip>;
|
|
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,26 +11334,26 @@ 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
|
-
body:
|
|
11341
|
-
callbackURL:
|
|
11342
|
-
provider:
|
|
11343
|
-
idToken:
|
|
11344
|
-
token:
|
|
11345
|
-
nonce:
|
|
11346
|
-
accessToken:
|
|
11347
|
-
refreshToken:
|
|
11348
|
-
scopes:
|
|
11349
|
-
},
|
|
11350
|
-
requestSignUp:
|
|
11351
|
-
scopes:
|
|
11352
|
-
errorCallbackURL:
|
|
11353
|
-
disableRedirect:
|
|
11354
|
-
additionalData:
|
|
11355
|
-
},
|
|
11356
|
-
use: ((inputContext:
|
|
11340
|
+
body: zod604.ZodObject<{
|
|
11341
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
11342
|
+
provider: zod604.ZodType<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown, zod_v4_core83.$ZodTypeInternals<"github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {}), unknown>>;
|
|
11343
|
+
idToken: zod604.ZodOptional<zod604.ZodObject<{
|
|
11344
|
+
token: zod604.ZodString;
|
|
11345
|
+
nonce: zod604.ZodOptional<zod604.ZodString>;
|
|
11346
|
+
accessToken: zod604.ZodOptional<zod604.ZodString>;
|
|
11347
|
+
refreshToken: zod604.ZodOptional<zod604.ZodString>;
|
|
11348
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
11349
|
+
}, zod_v4_core83.$strip>>;
|
|
11350
|
+
requestSignUp: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
11351
|
+
scopes: zod604.ZodOptional<zod604.ZodArray<zod604.ZodString>>;
|
|
11352
|
+
errorCallbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
11353
|
+
disableRedirect: zod604.ZodOptional<zod604.ZodBoolean>;
|
|
11354
|
+
additionalData: zod604.ZodOptional<zod604.ZodRecord<zod604.ZodString, zod604.ZodAny>>;
|
|
11355
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
query:
|
|
11502
|
-
token:
|
|
11503
|
-
callbackURL:
|
|
11504
|
-
},
|
|
11505
|
-
use: ((inputContext:
|
|
11501
|
+
query: zod604.ZodObject<{
|
|
11502
|
+
token: zod604.ZodString;
|
|
11503
|
+
callbackURL: zod604.ZodOptional<zod604.ZodString>;
|
|
11504
|
+
}, zod_v4_core83.$strip>;
|
|
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
|
-
body:
|
|
11542
|
-
providerId:
|
|
11543
|
-
accountId:
|
|
11544
|
-
},
|
|
11545
|
-
use: ((inputContext:
|
|
11541
|
+
body: zod604.ZodObject<{
|
|
11542
|
+
providerId: zod604.ZodString;
|
|
11543
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
11544
|
+
}, zod_v4_core83.$strip>;
|
|
11545
|
+
use: ((inputContext: better_call280.MiddlewareInputContext<better_call280.MiddlewareOptions>) => Promise<{
|
|
11546
11546
|
session: {
|
|
11547
11547
|
session: Record<string, any> & {
|
|
11548
11548
|
id: string;
|
|
@@ -11590,13 +11590,13 @@ 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
|
-
body:
|
|
11596
|
-
providerId:
|
|
11597
|
-
accountId:
|
|
11598
|
-
userId:
|
|
11599
|
-
},
|
|
11595
|
+
body: zod604.ZodObject<{
|
|
11596
|
+
providerId: zod604.ZodString;
|
|
11597
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
11598
|
+
userId: zod604.ZodOptional<zod604.ZodString>;
|
|
11599
|
+
}, zod_v4_core83.$strip>;
|
|
11600
11600
|
metadata: {
|
|
11601
11601
|
openapi: {
|
|
11602
11602
|
description: string;
|
|
@@ -11649,13 +11649,13 @@ 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
|
-
body:
|
|
11655
|
-
providerId:
|
|
11656
|
-
accountId:
|
|
11657
|
-
userId:
|
|
11658
|
-
},
|
|
11654
|
+
body: zod604.ZodObject<{
|
|
11655
|
+
providerId: zod604.ZodString;
|
|
11656
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
11657
|
+
userId: zod604.ZodOptional<zod604.ZodString>;
|
|
11658
|
+
}, zod_v4_core83.$strip>;
|
|
11659
11659
|
metadata: {
|
|
11660
11660
|
openapi: {
|
|
11661
11661
|
description: string;
|
|
@@ -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;
|
|
@@ -11769,11 +11769,11 @@ declare function getTestInstance<O extends Partial<BetterAuthOptions>, C extends
|
|
|
11769
11769
|
};
|
|
11770
11770
|
};
|
|
11771
11771
|
};
|
|
11772
|
-
query:
|
|
11773
|
-
accountId:
|
|
11774
|
-
},
|
|
11772
|
+
query: zod604.ZodOptional<zod604.ZodObject<{
|
|
11773
|
+
accountId: zod604.ZodOptional<zod604.ZodString>;
|
|
11774
|
+
}, zod_v4_core83.$strip>>;
|
|
11775
11775
|
}, {
|
|
11776
|
-
user:
|
|
11776
|
+
user: _better_auth_core_oauth23.OAuth2UserInfo;
|
|
11777
11777
|
data: Record<string, any>;
|
|
11778
11778
|
} | null>;
|
|
11779
11779
|
}>, (C extends undefined ? {} : C) & {
|