better-auth 1.4.14 → 1.4.16
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/rate-limiter/index.mjs +2 -2
- package/dist/api/rate-limiter/index.mjs.map +1 -1
- package/dist/api/routes/account.d.mts +11 -11
- package/dist/api/routes/account.mjs +1 -1
- package/dist/api/routes/callback.d.mts +1 -1
- package/dist/api/routes/callback.mjs.map +1 -1
- package/dist/api/routes/email-verification.d.mts +4 -4
- package/dist/api/routes/email-verification.mjs +1 -1
- 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/password.mjs +1 -1
- package/dist/api/routes/session.d.mts +14 -14
- package/dist/api/routes/session.mjs +1 -1
- package/dist/api/routes/sign-in.d.mts +4 -4
- package/dist/api/routes/sign-in.mjs +1 -1
- package/dist/api/routes/sign-out.d.mts +2 -2
- package/dist/api/routes/sign-up.d.mts +3 -3
- package/dist/api/routes/sign-up.mjs +1 -1
- package/dist/api/routes/update-user.d.mts +13 -13
- package/dist/api/routes/update-user.mjs +1 -1
- package/dist/auth/base.mjs.map +1 -1
- package/dist/auth/{auth.d.mts → full.d.mts} +3 -3
- package/dist/auth/{auth.mjs → full.mjs} +2 -2
- package/dist/auth/{auth.mjs.map → full.mjs.map} +1 -1
- package/dist/auth/minimal.d.mts +1 -1
- package/dist/auth/minimal.mjs.map +1 -1
- package/dist/client/config.mjs +3 -2
- package/dist/client/config.mjs.map +1 -1
- 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 +2 -2
- package/dist/client/vanilla.d.mts +15 -15
- package/dist/client/vue/index.d.mts +15 -15
- package/dist/cookies/index.d.mts +6 -6
- package/dist/cookies/session-store.d.mts +1 -1
- package/dist/db/field.d.mts +3 -3
- package/dist/db/internal-adapter.mjs +7 -3
- package/dist/db/internal-adapter.mjs.map +1 -1
- package/dist/index.d.mts +2 -3
- package/dist/index.mjs +1 -2
- 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-solid.mjs +1 -1
- package/dist/integrations/tanstack-start-solid.mjs.map +1 -1
- package/dist/integrations/tanstack-start.d.mts +4 -4
- package/dist/integrations/tanstack-start.mjs +1 -1
- package/dist/integrations/tanstack-start.mjs.map +1 -1
- package/dist/oauth2/link-account.mjs +15 -17
- package/dist/oauth2/link-account.mjs.map +1 -1
- package/dist/oauth2/state.mjs +1 -1
- package/dist/plugins/admin/admin.d.mts +6 -6
- package/dist/plugins/admin/routes.mjs +10 -8
- package/dist/plugins/admin/routes.mjs.map +1 -1
- package/dist/plugins/anonymous/index.d.mts +7 -7
- package/dist/plugins/api-key/index.d.mts +71 -71
- package/dist/plugins/api-key/routes/get-api-key.mjs +1 -1
- package/dist/plugins/api-key/routes/update-api-key.mjs +1 -1
- 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/device-authorization/routes.mjs +1 -1
- package/dist/plugins/email-otp/index.d.mts +48 -48
- package/dist/plugins/generic-oauth/index.d.mts +31 -31
- package/dist/plugins/generic-oauth/routes.mjs +1 -1
- package/dist/plugins/haveibeenpwned/index.d.mts +3 -3
- package/dist/plugins/jwt/client.d.mts +2 -2
- package/dist/plugins/jwt/index.d.mts +9 -9
- package/dist/plugins/last-login-method/index.d.mts +4 -4
- package/dist/plugins/magic-link/index.d.mts +4 -4
- package/dist/plugins/mcp/index.d.mts +10 -10
- package/dist/plugins/multi-session/index.d.mts +9 -9
- package/dist/plugins/oauth-proxy/index.d.mts +8 -8
- package/dist/plugins/oidc-provider/index.d.mts +14 -14
- package/dist/plugins/one-tap/client.d.mts +5 -5
- package/dist/plugins/one-tap/index.d.mts +2 -2
- package/dist/plugins/one-time-token/index.d.mts +5 -5
- package/dist/plugins/open-api/index.d.mts +3 -3
- package/dist/plugins/organization/client.d.mts +9 -9
- package/dist/plugins/organization/organization.d.mts +7 -7
- package/dist/plugins/organization/organization.mjs +1 -1
- package/dist/plugins/organization/routes/crud-access-control.d.mts +22 -22
- package/dist/plugins/organization/routes/crud-invites.d.mts +58 -58
- package/dist/plugins/organization/routes/crud-invites.mjs +1 -1
- package/dist/plugins/organization/routes/crud-members.d.mts +54 -54
- package/dist/plugins/organization/routes/crud-members.mjs +1 -1
- package/dist/plugins/organization/routes/crud-org.d.mts +43 -43
- package/dist/plugins/organization/routes/crud-org.mjs +1 -1
- package/dist/plugins/organization/routes/crud-team.d.mts +76 -76
- package/dist/plugins/organization/routes/crud-team.mjs +1 -1
- package/dist/plugins/organization/schema.d.mts +3 -3
- package/dist/plugins/organization/schema.mjs.map +1 -1
- package/dist/plugins/phone-number/index.d.mts +33 -33
- package/dist/plugins/phone-number/routes.mjs +1 -1
- package/dist/plugins/siwe/index.d.mts +3 -3
- package/dist/plugins/two-factor/backup-codes/index.d.mts +1 -1
- package/dist/plugins/two-factor/backup-codes/index.mjs +1 -1
- package/dist/plugins/two-factor/index.d.mts +18 -18
- package/dist/plugins/two-factor/index.mjs +1 -1
- package/dist/plugins/two-factor/otp/index.d.mts +1 -1
- package/dist/plugins/two-factor/otp/index.mjs +1 -1
- package/dist/plugins/two-factor/totp/index.d.mts +1 -1
- package/dist/plugins/two-factor/totp/index.mjs +1 -1
- package/dist/plugins/username/index.d.mts +9 -9
- package/dist/plugins/username/index.mjs +1 -1
- package/dist/plugins/username/schema.d.mts +3 -3
- package/dist/test-utils/test-instance.d.mts +1242 -1242
- package/dist/test-utils/test-instance.mjs +1 -2
- package/dist/test-utils/test-instance.mjs.map +1 -1
- package/dist/utils/get-request-ip.mjs +2 -7
- package/dist/utils/get-request-ip.mjs.map +1 -1
- package/package.json +9 -9
- package/dist/auth/index.d.mts +0 -1
- package/dist/auth/index.mjs +0 -3
package/dist/api/index.d.mts
CHANGED
|
@@ -24,17 +24,17 @@ import "./routes/index.mjs";
|
|
|
24
24
|
import { AuthContext, Awaitable, BetterAuthOptions, BetterAuthPlugin } from "@better-auth/core";
|
|
25
25
|
import { InternalLogger } from "@better-auth/core/env";
|
|
26
26
|
import * as _better_auth_core_oauth20 from "@better-auth/core/oauth2";
|
|
27
|
-
import * as
|
|
28
|
-
import * as better_call130 from "better-call";
|
|
27
|
+
import * as better_call6 from "better-call";
|
|
29
28
|
import { APIError } from "better-call";
|
|
29
|
+
import * as zod0 from "zod";
|
|
30
30
|
import { AuthEndpoint, AuthMiddleware, createAuthEndpoint, createAuthMiddleware, optionsMiddleware } from "@better-auth/core/api";
|
|
31
|
-
import * as
|
|
31
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
32
32
|
|
|
33
33
|
//#region src/api/index.d.ts
|
|
34
34
|
declare function checkEndpointConflicts(options: BetterAuthOptions, logger: InternalLogger): void;
|
|
35
35
|
declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<AuthContext>, options: Option): {
|
|
36
36
|
api: {
|
|
37
|
-
readonly ok:
|
|
37
|
+
readonly ok: better_call6.StrictEndpoint<"/ok", {
|
|
38
38
|
method: "GET";
|
|
39
39
|
metadata: {
|
|
40
40
|
openapi: {
|
|
@@ -64,7 +64,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
64
64
|
}, {
|
|
65
65
|
ok: boolean;
|
|
66
66
|
}>;
|
|
67
|
-
readonly error:
|
|
67
|
+
readonly error: better_call6.StrictEndpoint<"/error", {
|
|
68
68
|
method: "GET";
|
|
69
69
|
metadata: {
|
|
70
70
|
openapi: {
|
|
@@ -86,47 +86,47 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
86
86
|
scope: "server";
|
|
87
87
|
};
|
|
88
88
|
}, Response>;
|
|
89
|
-
readonly signInSocial:
|
|
89
|
+
readonly signInSocial: better_call6.StrictEndpoint<"/sign-in/social", {
|
|
90
90
|
method: "POST";
|
|
91
91
|
operationId: string;
|
|
92
|
-
body:
|
|
93
|
-
callbackURL:
|
|
94
|
-
newUserCallbackURL:
|
|
95
|
-
errorCallbackURL:
|
|
96
|
-
provider:
|
|
97
|
-
disableRedirect:
|
|
98
|
-
idToken:
|
|
99
|
-
token:
|
|
100
|
-
nonce:
|
|
101
|
-
accessToken:
|
|
102
|
-
refreshToken:
|
|
103
|
-
expiresAt:
|
|
104
|
-
},
|
|
105
|
-
scopes:
|
|
106
|
-
requestSignUp:
|
|
107
|
-
loginHint:
|
|
108
|
-
additionalData:
|
|
109
|
-
},
|
|
92
|
+
body: zod0.ZodObject<{
|
|
93
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
94
|
+
newUserCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
95
|
+
errorCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
96
|
+
provider: zod0.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_core0.$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>>;
|
|
97
|
+
disableRedirect: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
98
|
+
idToken: zod0.ZodOptional<zod0.ZodObject<{
|
|
99
|
+
token: zod0.ZodString;
|
|
100
|
+
nonce: zod0.ZodOptional<zod0.ZodString>;
|
|
101
|
+
accessToken: zod0.ZodOptional<zod0.ZodString>;
|
|
102
|
+
refreshToken: zod0.ZodOptional<zod0.ZodString>;
|
|
103
|
+
expiresAt: zod0.ZodOptional<zod0.ZodNumber>;
|
|
104
|
+
}, zod_v4_core0.$strip>>;
|
|
105
|
+
scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
106
|
+
requestSignUp: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
107
|
+
loginHint: zod0.ZodOptional<zod0.ZodString>;
|
|
108
|
+
additionalData: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
109
|
+
}, zod_v4_core0.$strip>;
|
|
110
110
|
metadata: {
|
|
111
111
|
$Infer: {
|
|
112
|
-
body:
|
|
113
|
-
callbackURL:
|
|
114
|
-
newUserCallbackURL:
|
|
115
|
-
errorCallbackURL:
|
|
116
|
-
provider:
|
|
117
|
-
disableRedirect:
|
|
118
|
-
idToken:
|
|
119
|
-
token:
|
|
120
|
-
nonce:
|
|
121
|
-
accessToken:
|
|
122
|
-
refreshToken:
|
|
123
|
-
expiresAt:
|
|
124
|
-
},
|
|
125
|
-
scopes:
|
|
126
|
-
requestSignUp:
|
|
127
|
-
loginHint:
|
|
128
|
-
additionalData:
|
|
129
|
-
},
|
|
112
|
+
body: zod0.infer<zod0.ZodObject<{
|
|
113
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
114
|
+
newUserCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
115
|
+
errorCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
116
|
+
provider: zod0.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_core0.$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>>;
|
|
117
|
+
disableRedirect: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
118
|
+
idToken: zod0.ZodOptional<zod0.ZodObject<{
|
|
119
|
+
token: zod0.ZodString;
|
|
120
|
+
nonce: zod0.ZodOptional<zod0.ZodString>;
|
|
121
|
+
accessToken: zod0.ZodOptional<zod0.ZodString>;
|
|
122
|
+
refreshToken: zod0.ZodOptional<zod0.ZodString>;
|
|
123
|
+
expiresAt: zod0.ZodOptional<zod0.ZodNumber>;
|
|
124
|
+
}, zod_v4_core0.$strip>>;
|
|
125
|
+
scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
126
|
+
requestSignUp: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
127
|
+
loginHint: zod0.ZodOptional<zod0.ZodString>;
|
|
128
|
+
additionalData: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
129
|
+
}, zod_v4_core0.$strip>>;
|
|
130
130
|
returned: {
|
|
131
131
|
redirect: boolean;
|
|
132
132
|
token?: string | undefined;
|
|
@@ -194,37 +194,37 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
194
194
|
image?: string | null | undefined;
|
|
195
195
|
} & (Option extends BetterAuthOptions ? AdditionalUserFieldsOutput<Option> : Option extends Auth ? AdditionalUserFieldsOutput<Option["options"]> : {})>>;
|
|
196
196
|
}>;
|
|
197
|
-
readonly callbackOAuth:
|
|
197
|
+
readonly callbackOAuth: better_call6.StrictEndpoint<"/callback/:id", {
|
|
198
198
|
method: ("GET" | "POST")[];
|
|
199
199
|
operationId: string;
|
|
200
|
-
body:
|
|
201
|
-
code:
|
|
202
|
-
error:
|
|
203
|
-
device_id:
|
|
204
|
-
error_description:
|
|
205
|
-
state:
|
|
206
|
-
user:
|
|
207
|
-
},
|
|
208
|
-
query:
|
|
209
|
-
code:
|
|
210
|
-
error:
|
|
211
|
-
device_id:
|
|
212
|
-
error_description:
|
|
213
|
-
state:
|
|
214
|
-
user:
|
|
215
|
-
},
|
|
200
|
+
body: zod0.ZodOptional<zod0.ZodObject<{
|
|
201
|
+
code: zod0.ZodOptional<zod0.ZodString>;
|
|
202
|
+
error: zod0.ZodOptional<zod0.ZodString>;
|
|
203
|
+
device_id: zod0.ZodOptional<zod0.ZodString>;
|
|
204
|
+
error_description: zod0.ZodOptional<zod0.ZodString>;
|
|
205
|
+
state: zod0.ZodOptional<zod0.ZodString>;
|
|
206
|
+
user: zod0.ZodOptional<zod0.ZodString>;
|
|
207
|
+
}, zod_v4_core0.$strip>>;
|
|
208
|
+
query: zod0.ZodOptional<zod0.ZodObject<{
|
|
209
|
+
code: zod0.ZodOptional<zod0.ZodString>;
|
|
210
|
+
error: zod0.ZodOptional<zod0.ZodString>;
|
|
211
|
+
device_id: zod0.ZodOptional<zod0.ZodString>;
|
|
212
|
+
error_description: zod0.ZodOptional<zod0.ZodString>;
|
|
213
|
+
state: zod0.ZodOptional<zod0.ZodString>;
|
|
214
|
+
user: zod0.ZodOptional<zod0.ZodString>;
|
|
215
|
+
}, zod_v4_core0.$strip>>;
|
|
216
216
|
metadata: {
|
|
217
217
|
allowedMediaTypes: string[];
|
|
218
218
|
scope: "server";
|
|
219
219
|
};
|
|
220
220
|
}, void>;
|
|
221
|
-
readonly getSession:
|
|
221
|
+
readonly getSession: better_call6.StrictEndpoint<"/get-session", {
|
|
222
222
|
method: "GET";
|
|
223
223
|
operationId: string;
|
|
224
|
-
query:
|
|
225
|
-
disableCookieCache:
|
|
226
|
-
disableRefresh:
|
|
227
|
-
},
|
|
224
|
+
query: zod0.ZodOptional<zod0.ZodObject<{
|
|
225
|
+
disableCookieCache: zod0.ZodOptional<zod0.ZodCoercedBoolean<unknown>>;
|
|
226
|
+
disableRefresh: zod0.ZodOptional<zod0.ZodCoercedBoolean<unknown>>;
|
|
227
|
+
}, zod_v4_core0.$strip>>;
|
|
228
228
|
requireHeaders: true;
|
|
229
229
|
metadata: {
|
|
230
230
|
openapi: {
|
|
@@ -275,7 +275,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
275
275
|
image?: string | null | undefined;
|
|
276
276
|
} & (Option extends BetterAuthOptions ? AdditionalUserFieldsOutput<Option> : Option extends Auth ? AdditionalUserFieldsOutput<Option["options"]> : {})>>;
|
|
277
277
|
} | null>;
|
|
278
|
-
readonly signOut:
|
|
278
|
+
readonly signOut: better_call6.StrictEndpoint<"/sign-out", {
|
|
279
279
|
method: "POST";
|
|
280
280
|
operationId: string;
|
|
281
281
|
requireHeaders: true;
|
|
@@ -305,18 +305,18 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
305
305
|
}, {
|
|
306
306
|
success: boolean;
|
|
307
307
|
}>;
|
|
308
|
-
readonly signUpEmail:
|
|
308
|
+
readonly signUpEmail: better_call6.StrictEndpoint<"/sign-up/email", {
|
|
309
309
|
method: "POST";
|
|
310
310
|
operationId: string;
|
|
311
|
-
use: ((inputContext:
|
|
312
|
-
body:
|
|
313
|
-
name:
|
|
314
|
-
email:
|
|
315
|
-
password:
|
|
316
|
-
image:
|
|
317
|
-
callbackURL:
|
|
318
|
-
rememberMe:
|
|
319
|
-
},
|
|
311
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<void>)[];
|
|
312
|
+
body: zod0.ZodIntersection<zod0.ZodObject<{
|
|
313
|
+
name: zod0.ZodString;
|
|
314
|
+
email: zod0.ZodEmail;
|
|
315
|
+
password: zod0.ZodString;
|
|
316
|
+
image: zod0.ZodOptional<zod0.ZodString>;
|
|
317
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
318
|
+
rememberMe: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
319
|
+
}, zod_v4_core0.$strip>, zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
320
320
|
metadata: {
|
|
321
321
|
allowedMediaTypes: string[];
|
|
322
322
|
$Infer: {
|
|
@@ -479,16 +479,16 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
479
479
|
image?: string | null | undefined;
|
|
480
480
|
} & (Option extends BetterAuthOptions ? AdditionalUserFieldsOutput<Option> : Option extends Auth ? AdditionalUserFieldsOutput<Option["options"]> : {})>>;
|
|
481
481
|
}>;
|
|
482
|
-
readonly signInEmail:
|
|
482
|
+
readonly signInEmail: better_call6.StrictEndpoint<"/sign-in/email", {
|
|
483
483
|
method: "POST";
|
|
484
484
|
operationId: string;
|
|
485
|
-
use: ((inputContext:
|
|
486
|
-
body:
|
|
487
|
-
email:
|
|
488
|
-
password:
|
|
489
|
-
callbackURL:
|
|
490
|
-
rememberMe:
|
|
491
|
-
},
|
|
485
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<void>)[];
|
|
486
|
+
body: zod0.ZodObject<{
|
|
487
|
+
email: zod0.ZodString;
|
|
488
|
+
password: zod0.ZodString;
|
|
489
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
490
|
+
rememberMe: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodBoolean>>;
|
|
491
|
+
}, zod_v4_core0.$strip>;
|
|
492
492
|
metadata: {
|
|
493
493
|
allowedMediaTypes: string[];
|
|
494
494
|
$Infer: {
|
|
@@ -564,16 +564,16 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
564
564
|
image?: string | null | undefined;
|
|
565
565
|
} & (Option extends BetterAuthOptions ? AdditionalUserFieldsOutput<Option> : Option extends Auth ? AdditionalUserFieldsOutput<Option["options"]> : {})>>;
|
|
566
566
|
}>;
|
|
567
|
-
readonly resetPassword:
|
|
567
|
+
readonly resetPassword: better_call6.StrictEndpoint<"/reset-password", {
|
|
568
568
|
method: "POST";
|
|
569
569
|
operationId: string;
|
|
570
|
-
query:
|
|
571
|
-
token:
|
|
572
|
-
},
|
|
573
|
-
body:
|
|
574
|
-
newPassword:
|
|
575
|
-
token:
|
|
576
|
-
},
|
|
570
|
+
query: zod0.ZodOptional<zod0.ZodObject<{
|
|
571
|
+
token: zod0.ZodOptional<zod0.ZodString>;
|
|
572
|
+
}, zod_v4_core0.$strip>>;
|
|
573
|
+
body: zod0.ZodObject<{
|
|
574
|
+
newPassword: zod0.ZodString;
|
|
575
|
+
token: zod0.ZodOptional<zod0.ZodString>;
|
|
576
|
+
}, zod_v4_core0.$strip>;
|
|
577
577
|
metadata: {
|
|
578
578
|
openapi: {
|
|
579
579
|
operationId: string;
|
|
@@ -600,11 +600,11 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
600
600
|
}, {
|
|
601
601
|
status: boolean;
|
|
602
602
|
}>;
|
|
603
|
-
readonly verifyPassword:
|
|
603
|
+
readonly verifyPassword: better_call6.StrictEndpoint<"/verify-password", {
|
|
604
604
|
method: "POST";
|
|
605
|
-
body:
|
|
606
|
-
password:
|
|
607
|
-
},
|
|
605
|
+
body: zod0.ZodObject<{
|
|
606
|
+
password: zod0.ZodString;
|
|
607
|
+
}, zod_v4_core0.$strip>;
|
|
608
608
|
metadata: {
|
|
609
609
|
scope: "server";
|
|
610
610
|
openapi: {
|
|
@@ -629,7 +629,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
629
629
|
};
|
|
630
630
|
};
|
|
631
631
|
};
|
|
632
|
-
use: ((inputContext:
|
|
632
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
633
633
|
session: {
|
|
634
634
|
session: Record<string, any> & {
|
|
635
635
|
id: string;
|
|
@@ -655,14 +655,14 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
655
655
|
}, {
|
|
656
656
|
status: boolean;
|
|
657
657
|
}>;
|
|
658
|
-
readonly verifyEmail:
|
|
658
|
+
readonly verifyEmail: better_call6.StrictEndpoint<"/verify-email", {
|
|
659
659
|
method: "GET";
|
|
660
660
|
operationId: string;
|
|
661
|
-
query:
|
|
662
|
-
token:
|
|
663
|
-
callbackURL:
|
|
664
|
-
},
|
|
665
|
-
use: ((inputContext:
|
|
661
|
+
query: zod0.ZodObject<{
|
|
662
|
+
token: zod0.ZodString;
|
|
663
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
664
|
+
}, zod_v4_core0.$strip>;
|
|
665
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<void>)[];
|
|
666
666
|
metadata: {
|
|
667
667
|
openapi: {
|
|
668
668
|
description: string;
|
|
@@ -711,13 +711,13 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
711
711
|
}, void | {
|
|
712
712
|
status: boolean;
|
|
713
713
|
}>;
|
|
714
|
-
readonly sendVerificationEmail:
|
|
714
|
+
readonly sendVerificationEmail: better_call6.StrictEndpoint<"/send-verification-email", {
|
|
715
715
|
method: "POST";
|
|
716
716
|
operationId: string;
|
|
717
|
-
body:
|
|
718
|
-
email:
|
|
719
|
-
callbackURL:
|
|
720
|
-
},
|
|
717
|
+
body: zod0.ZodObject<{
|
|
718
|
+
email: zod0.ZodEmail;
|
|
719
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
720
|
+
}, zod_v4_core0.$strip>;
|
|
721
721
|
metadata: {
|
|
722
722
|
openapi: {
|
|
723
723
|
operationId: string;
|
|
@@ -786,13 +786,13 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
786
786
|
}, {
|
|
787
787
|
status: boolean;
|
|
788
788
|
}>;
|
|
789
|
-
readonly changeEmail:
|
|
789
|
+
readonly changeEmail: better_call6.StrictEndpoint<"/change-email", {
|
|
790
790
|
method: "POST";
|
|
791
|
-
body:
|
|
792
|
-
newEmail:
|
|
793
|
-
callbackURL:
|
|
794
|
-
},
|
|
795
|
-
use: ((inputContext:
|
|
791
|
+
body: zod0.ZodObject<{
|
|
792
|
+
newEmail: zod0.ZodEmail;
|
|
793
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
794
|
+
}, zod_v4_core0.$strip>;
|
|
795
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
796
796
|
session: {
|
|
797
797
|
session: Record<string, any> & {
|
|
798
798
|
id: string;
|
|
@@ -867,15 +867,15 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
867
867
|
}, {
|
|
868
868
|
status: boolean;
|
|
869
869
|
}>;
|
|
870
|
-
readonly changePassword:
|
|
870
|
+
readonly changePassword: better_call6.StrictEndpoint<"/change-password", {
|
|
871
871
|
method: "POST";
|
|
872
872
|
operationId: string;
|
|
873
|
-
body:
|
|
874
|
-
newPassword:
|
|
875
|
-
currentPassword:
|
|
876
|
-
revokeOtherSessions:
|
|
877
|
-
},
|
|
878
|
-
use: ((inputContext:
|
|
873
|
+
body: zod0.ZodObject<{
|
|
874
|
+
newPassword: zod0.ZodString;
|
|
875
|
+
currentPassword: zod0.ZodString;
|
|
876
|
+
revokeOtherSessions: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
877
|
+
}, zod_v4_core0.$strip>;
|
|
878
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
879
879
|
session: {
|
|
880
880
|
session: Record<string, any> & {
|
|
881
881
|
id: string;
|
|
@@ -975,12 +975,12 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
975
975
|
image?: string | null | undefined;
|
|
976
976
|
} & Record<string, any>;
|
|
977
977
|
}>;
|
|
978
|
-
readonly setPassword:
|
|
978
|
+
readonly setPassword: better_call6.StrictEndpoint<string, {
|
|
979
979
|
method: "POST";
|
|
980
|
-
body:
|
|
981
|
-
newPassword:
|
|
982
|
-
},
|
|
983
|
-
use: ((inputContext:
|
|
980
|
+
body: zod0.ZodObject<{
|
|
981
|
+
newPassword: zod0.ZodString;
|
|
982
|
+
}, zod_v4_core0.$strip>;
|
|
983
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
984
984
|
session: {
|
|
985
985
|
session: Record<string, any> & {
|
|
986
986
|
id: string;
|
|
@@ -1006,11 +1006,11 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1006
1006
|
}, {
|
|
1007
1007
|
status: boolean;
|
|
1008
1008
|
}>;
|
|
1009
|
-
readonly updateUser:
|
|
1009
|
+
readonly updateUser: better_call6.StrictEndpoint<"/update-user", {
|
|
1010
1010
|
method: "POST";
|
|
1011
1011
|
operationId: string;
|
|
1012
|
-
body:
|
|
1013
|
-
use: ((inputContext:
|
|
1012
|
+
body: zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>;
|
|
1013
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
1014
1014
|
session: {
|
|
1015
1015
|
session: Record<string, any> & {
|
|
1016
1016
|
id: string;
|
|
@@ -1086,9 +1086,9 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1086
1086
|
}, {
|
|
1087
1087
|
status: boolean;
|
|
1088
1088
|
}>;
|
|
1089
|
-
readonly deleteUser:
|
|
1089
|
+
readonly deleteUser: better_call6.StrictEndpoint<"/delete-user", {
|
|
1090
1090
|
method: "POST";
|
|
1091
|
-
use: ((inputContext:
|
|
1091
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
1092
1092
|
session: {
|
|
1093
1093
|
session: Record<string, any> & {
|
|
1094
1094
|
id: string;
|
|
@@ -1111,11 +1111,11 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1111
1111
|
};
|
|
1112
1112
|
};
|
|
1113
1113
|
}>)[];
|
|
1114
|
-
body:
|
|
1115
|
-
callbackURL:
|
|
1116
|
-
password:
|
|
1117
|
-
token:
|
|
1118
|
-
},
|
|
1114
|
+
body: zod0.ZodObject<{
|
|
1115
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
1116
|
+
password: zod0.ZodOptional<zod0.ZodString>;
|
|
1117
|
+
token: zod0.ZodOptional<zod0.ZodString>;
|
|
1118
|
+
}, zod_v4_core0.$strip>;
|
|
1119
1119
|
metadata: {
|
|
1120
1120
|
openapi: {
|
|
1121
1121
|
operationId: string;
|
|
@@ -1173,12 +1173,12 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1173
1173
|
success: boolean;
|
|
1174
1174
|
message: string;
|
|
1175
1175
|
}>;
|
|
1176
|
-
readonly requestPasswordReset:
|
|
1176
|
+
readonly requestPasswordReset: better_call6.StrictEndpoint<"/request-password-reset", {
|
|
1177
1177
|
method: "POST";
|
|
1178
|
-
body:
|
|
1179
|
-
email:
|
|
1180
|
-
redirectTo:
|
|
1181
|
-
},
|
|
1178
|
+
body: zod0.ZodObject<{
|
|
1179
|
+
email: zod0.ZodEmail;
|
|
1180
|
+
redirectTo: zod0.ZodOptional<zod0.ZodString>;
|
|
1181
|
+
}, zod_v4_core0.$strip>;
|
|
1182
1182
|
metadata: {
|
|
1183
1183
|
openapi: {
|
|
1184
1184
|
operationId: string;
|
|
@@ -1209,13 +1209,13 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1209
1209
|
status: boolean;
|
|
1210
1210
|
message: string;
|
|
1211
1211
|
}>;
|
|
1212
|
-
readonly requestPasswordResetCallback:
|
|
1212
|
+
readonly requestPasswordResetCallback: better_call6.StrictEndpoint<"/reset-password/:token", {
|
|
1213
1213
|
method: "GET";
|
|
1214
1214
|
operationId: string;
|
|
1215
|
-
query:
|
|
1216
|
-
callbackURL:
|
|
1217
|
-
},
|
|
1218
|
-
use: ((inputContext:
|
|
1215
|
+
query: zod0.ZodObject<{
|
|
1216
|
+
callbackURL: zod0.ZodString;
|
|
1217
|
+
}, zod_v4_core0.$strip>;
|
|
1218
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<void>)[];
|
|
1219
1219
|
metadata: {
|
|
1220
1220
|
openapi: {
|
|
1221
1221
|
operationId: string;
|
|
@@ -1257,10 +1257,10 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1257
1257
|
};
|
|
1258
1258
|
};
|
|
1259
1259
|
}, never>;
|
|
1260
|
-
readonly listSessions:
|
|
1260
|
+
readonly listSessions: better_call6.StrictEndpoint<"/list-sessions", {
|
|
1261
1261
|
method: "GET";
|
|
1262
1262
|
operationId: string;
|
|
1263
|
-
use: ((inputContext:
|
|
1263
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
1264
1264
|
session: {
|
|
1265
1265
|
session: Record<string, any> & {
|
|
1266
1266
|
id: string;
|
|
@@ -1315,12 +1315,12 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1315
1315
|
ipAddress?: string | null | undefined;
|
|
1316
1316
|
userAgent?: string | null | undefined;
|
|
1317
1317
|
} & (Option extends BetterAuthOptions ? AdditionalSessionFieldsOutput<Option> : Option extends Auth ? AdditionalSessionFieldsOutput<Option["options"]> : {})>>>[]>;
|
|
1318
|
-
readonly revokeSession:
|
|
1318
|
+
readonly revokeSession: better_call6.StrictEndpoint<"/revoke-session", {
|
|
1319
1319
|
method: "POST";
|
|
1320
|
-
body:
|
|
1321
|
-
token:
|
|
1322
|
-
},
|
|
1323
|
-
use: ((inputContext:
|
|
1320
|
+
body: zod0.ZodObject<{
|
|
1321
|
+
token: zod0.ZodString;
|
|
1322
|
+
}, zod_v4_core0.$strip>;
|
|
1323
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
1324
1324
|
session: {
|
|
1325
1325
|
session: Record<string, any> & {
|
|
1326
1326
|
id: string;
|
|
@@ -1387,9 +1387,9 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1387
1387
|
}, {
|
|
1388
1388
|
status: boolean;
|
|
1389
1389
|
}>;
|
|
1390
|
-
readonly revokeSessions:
|
|
1390
|
+
readonly revokeSessions: better_call6.StrictEndpoint<"/revoke-sessions", {
|
|
1391
1391
|
method: "POST";
|
|
1392
|
-
use: ((inputContext:
|
|
1392
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
1393
1393
|
session: {
|
|
1394
1394
|
session: Record<string, any> & {
|
|
1395
1395
|
id: string;
|
|
@@ -1440,10 +1440,10 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1440
1440
|
}, {
|
|
1441
1441
|
status: boolean;
|
|
1442
1442
|
}>;
|
|
1443
|
-
readonly revokeOtherSessions:
|
|
1443
|
+
readonly revokeOtherSessions: better_call6.StrictEndpoint<"/revoke-other-sessions", {
|
|
1444
1444
|
method: "POST";
|
|
1445
1445
|
requireHeaders: true;
|
|
1446
|
-
use: ((inputContext:
|
|
1446
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
1447
1447
|
session: {
|
|
1448
1448
|
session: Record<string, any> & {
|
|
1449
1449
|
id: string;
|
|
@@ -1493,26 +1493,26 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1493
1493
|
}, {
|
|
1494
1494
|
status: boolean;
|
|
1495
1495
|
}>;
|
|
1496
|
-
readonly linkSocialAccount:
|
|
1496
|
+
readonly linkSocialAccount: better_call6.StrictEndpoint<"/link-social", {
|
|
1497
1497
|
method: "POST";
|
|
1498
1498
|
requireHeaders: true;
|
|
1499
|
-
body:
|
|
1500
|
-
callbackURL:
|
|
1501
|
-
provider:
|
|
1502
|
-
idToken:
|
|
1503
|
-
token:
|
|
1504
|
-
nonce:
|
|
1505
|
-
accessToken:
|
|
1506
|
-
refreshToken:
|
|
1507
|
-
scopes:
|
|
1508
|
-
},
|
|
1509
|
-
requestSignUp:
|
|
1510
|
-
scopes:
|
|
1511
|
-
errorCallbackURL:
|
|
1512
|
-
disableRedirect:
|
|
1513
|
-
additionalData:
|
|
1514
|
-
},
|
|
1515
|
-
use: ((inputContext:
|
|
1499
|
+
body: zod0.ZodObject<{
|
|
1500
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
1501
|
+
provider: zod0.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_core0.$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>>;
|
|
1502
|
+
idToken: zod0.ZodOptional<zod0.ZodObject<{
|
|
1503
|
+
token: zod0.ZodString;
|
|
1504
|
+
nonce: zod0.ZodOptional<zod0.ZodString>;
|
|
1505
|
+
accessToken: zod0.ZodOptional<zod0.ZodString>;
|
|
1506
|
+
refreshToken: zod0.ZodOptional<zod0.ZodString>;
|
|
1507
|
+
scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
1508
|
+
}, zod_v4_core0.$strip>>;
|
|
1509
|
+
requestSignUp: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1510
|
+
scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
1511
|
+
errorCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
1512
|
+
disableRedirect: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1513
|
+
additionalData: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
1514
|
+
}, zod_v4_core0.$strip>;
|
|
1515
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
1516
1516
|
session: {
|
|
1517
1517
|
session: Record<string, any> & {
|
|
1518
1518
|
id: string;
|
|
@@ -1571,9 +1571,9 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1571
1571
|
url: string;
|
|
1572
1572
|
redirect: boolean;
|
|
1573
1573
|
}>;
|
|
1574
|
-
readonly listUserAccounts:
|
|
1574
|
+
readonly listUserAccounts: better_call6.StrictEndpoint<"/list-accounts", {
|
|
1575
1575
|
method: "GET";
|
|
1576
|
-
use: ((inputContext:
|
|
1576
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
1577
1577
|
session: {
|
|
1578
1578
|
session: Record<string, any> & {
|
|
1579
1579
|
id: string;
|
|
@@ -1655,13 +1655,13 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1655
1655
|
providerId: string;
|
|
1656
1656
|
accountId: string;
|
|
1657
1657
|
}[]>;
|
|
1658
|
-
readonly deleteUserCallback:
|
|
1658
|
+
readonly deleteUserCallback: better_call6.StrictEndpoint<"/delete-user/callback", {
|
|
1659
1659
|
method: "GET";
|
|
1660
|
-
query:
|
|
1661
|
-
token:
|
|
1662
|
-
callbackURL:
|
|
1663
|
-
},
|
|
1664
|
-
use: ((inputContext:
|
|
1660
|
+
query: zod0.ZodObject<{
|
|
1661
|
+
token: zod0.ZodString;
|
|
1662
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
1663
|
+
}, zod_v4_core0.$strip>;
|
|
1664
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<void>)[];
|
|
1665
1665
|
metadata: {
|
|
1666
1666
|
openapi: {
|
|
1667
1667
|
description: string;
|
|
@@ -1695,13 +1695,13 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1695
1695
|
success: boolean;
|
|
1696
1696
|
message: string;
|
|
1697
1697
|
}>;
|
|
1698
|
-
readonly unlinkAccount:
|
|
1698
|
+
readonly unlinkAccount: better_call6.StrictEndpoint<"/unlink-account", {
|
|
1699
1699
|
method: "POST";
|
|
1700
|
-
body:
|
|
1701
|
-
providerId:
|
|
1702
|
-
accountId:
|
|
1703
|
-
},
|
|
1704
|
-
use: ((inputContext:
|
|
1700
|
+
body: zod0.ZodObject<{
|
|
1701
|
+
providerId: zod0.ZodString;
|
|
1702
|
+
accountId: zod0.ZodOptional<zod0.ZodString>;
|
|
1703
|
+
}, zod_v4_core0.$strip>;
|
|
1704
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
1705
1705
|
session: {
|
|
1706
1706
|
session: Record<string, any> & {
|
|
1707
1707
|
id: string;
|
|
@@ -1749,13 +1749,13 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1749
1749
|
}, {
|
|
1750
1750
|
status: boolean;
|
|
1751
1751
|
}>;
|
|
1752
|
-
readonly refreshToken:
|
|
1752
|
+
readonly refreshToken: better_call6.StrictEndpoint<"/refresh-token", {
|
|
1753
1753
|
method: "POST";
|
|
1754
|
-
body:
|
|
1755
|
-
providerId:
|
|
1756
|
-
accountId:
|
|
1757
|
-
userId:
|
|
1758
|
-
},
|
|
1754
|
+
body: zod0.ZodObject<{
|
|
1755
|
+
providerId: zod0.ZodString;
|
|
1756
|
+
accountId: zod0.ZodOptional<zod0.ZodString>;
|
|
1757
|
+
userId: zod0.ZodOptional<zod0.ZodString>;
|
|
1758
|
+
}, zod_v4_core0.$strip>;
|
|
1759
1759
|
metadata: {
|
|
1760
1760
|
openapi: {
|
|
1761
1761
|
description: string;
|
|
@@ -1808,13 +1808,13 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1808
1808
|
providerId: string;
|
|
1809
1809
|
accountId: string;
|
|
1810
1810
|
}>;
|
|
1811
|
-
readonly getAccessToken:
|
|
1811
|
+
readonly getAccessToken: better_call6.StrictEndpoint<"/get-access-token", {
|
|
1812
1812
|
method: "POST";
|
|
1813
|
-
body:
|
|
1814
|
-
providerId:
|
|
1815
|
-
accountId:
|
|
1816
|
-
userId:
|
|
1817
|
-
},
|
|
1813
|
+
body: zod0.ZodObject<{
|
|
1814
|
+
providerId: zod0.ZodString;
|
|
1815
|
+
accountId: zod0.ZodOptional<zod0.ZodString>;
|
|
1816
|
+
userId: zod0.ZodOptional<zod0.ZodString>;
|
|
1817
|
+
}, zod_v4_core0.$strip>;
|
|
1818
1818
|
metadata: {
|
|
1819
1819
|
openapi: {
|
|
1820
1820
|
description: string;
|
|
@@ -1856,9 +1856,9 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1856
1856
|
scopes: string[];
|
|
1857
1857
|
idToken: string | undefined;
|
|
1858
1858
|
}>;
|
|
1859
|
-
readonly accountInfo:
|
|
1859
|
+
readonly accountInfo: better_call6.StrictEndpoint<"/account-info", {
|
|
1860
1860
|
method: "GET";
|
|
1861
|
-
use: ((inputContext:
|
|
1861
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
1862
1862
|
session: {
|
|
1863
1863
|
session: Record<string, any> & {
|
|
1864
1864
|
id: string;
|
|
@@ -1928,9 +1928,9 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1928
1928
|
};
|
|
1929
1929
|
};
|
|
1930
1930
|
};
|
|
1931
|
-
query:
|
|
1932
|
-
accountId:
|
|
1933
|
-
},
|
|
1931
|
+
query: zod0.ZodOptional<zod0.ZodObject<{
|
|
1932
|
+
accountId: zod0.ZodOptional<zod0.ZodString>;
|
|
1933
|
+
}, zod_v4_core0.$strip>>;
|
|
1934
1934
|
}, {
|
|
1935
1935
|
user: _better_auth_core_oauth20.OAuth2UserInfo;
|
|
1936
1936
|
data: Record<string, any>;
|
|
@@ -1946,7 +1946,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1946
1946
|
declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, options: Option) => {
|
|
1947
1947
|
handler: (request: Request) => Promise<Response>;
|
|
1948
1948
|
endpoints: {
|
|
1949
|
-
readonly ok:
|
|
1949
|
+
readonly ok: better_call6.StrictEndpoint<"/ok", {
|
|
1950
1950
|
method: "GET";
|
|
1951
1951
|
metadata: {
|
|
1952
1952
|
openapi: {
|
|
@@ -1976,7 +1976,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
1976
1976
|
}, {
|
|
1977
1977
|
ok: boolean;
|
|
1978
1978
|
}>;
|
|
1979
|
-
readonly error:
|
|
1979
|
+
readonly error: better_call6.StrictEndpoint<"/error", {
|
|
1980
1980
|
method: "GET";
|
|
1981
1981
|
metadata: {
|
|
1982
1982
|
openapi: {
|
|
@@ -1998,47 +1998,47 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
1998
1998
|
scope: "server";
|
|
1999
1999
|
};
|
|
2000
2000
|
}, Response>;
|
|
2001
|
-
readonly signInSocial:
|
|
2001
|
+
readonly signInSocial: better_call6.StrictEndpoint<"/sign-in/social", {
|
|
2002
2002
|
method: "POST";
|
|
2003
2003
|
operationId: string;
|
|
2004
|
-
body:
|
|
2005
|
-
callbackURL:
|
|
2006
|
-
newUserCallbackURL:
|
|
2007
|
-
errorCallbackURL:
|
|
2008
|
-
provider:
|
|
2009
|
-
disableRedirect:
|
|
2010
|
-
idToken:
|
|
2011
|
-
token:
|
|
2012
|
-
nonce:
|
|
2013
|
-
accessToken:
|
|
2014
|
-
refreshToken:
|
|
2015
|
-
expiresAt:
|
|
2016
|
-
},
|
|
2017
|
-
scopes:
|
|
2018
|
-
requestSignUp:
|
|
2019
|
-
loginHint:
|
|
2020
|
-
additionalData:
|
|
2021
|
-
},
|
|
2004
|
+
body: zod0.ZodObject<{
|
|
2005
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2006
|
+
newUserCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2007
|
+
errorCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2008
|
+
provider: zod0.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_core0.$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>>;
|
|
2009
|
+
disableRedirect: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2010
|
+
idToken: zod0.ZodOptional<zod0.ZodObject<{
|
|
2011
|
+
token: zod0.ZodString;
|
|
2012
|
+
nonce: zod0.ZodOptional<zod0.ZodString>;
|
|
2013
|
+
accessToken: zod0.ZodOptional<zod0.ZodString>;
|
|
2014
|
+
refreshToken: zod0.ZodOptional<zod0.ZodString>;
|
|
2015
|
+
expiresAt: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2016
|
+
}, zod_v4_core0.$strip>>;
|
|
2017
|
+
scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
2018
|
+
requestSignUp: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2019
|
+
loginHint: zod0.ZodOptional<zod0.ZodString>;
|
|
2020
|
+
additionalData: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
2021
|
+
}, zod_v4_core0.$strip>;
|
|
2022
2022
|
metadata: {
|
|
2023
2023
|
$Infer: {
|
|
2024
|
-
body:
|
|
2025
|
-
callbackURL:
|
|
2026
|
-
newUserCallbackURL:
|
|
2027
|
-
errorCallbackURL:
|
|
2028
|
-
provider:
|
|
2029
|
-
disableRedirect:
|
|
2030
|
-
idToken:
|
|
2031
|
-
token:
|
|
2032
|
-
nonce:
|
|
2033
|
-
accessToken:
|
|
2034
|
-
refreshToken:
|
|
2035
|
-
expiresAt:
|
|
2036
|
-
},
|
|
2037
|
-
scopes:
|
|
2038
|
-
requestSignUp:
|
|
2039
|
-
loginHint:
|
|
2040
|
-
additionalData:
|
|
2041
|
-
},
|
|
2024
|
+
body: zod0.infer<zod0.ZodObject<{
|
|
2025
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2026
|
+
newUserCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2027
|
+
errorCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2028
|
+
provider: zod0.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_core0.$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>>;
|
|
2029
|
+
disableRedirect: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2030
|
+
idToken: zod0.ZodOptional<zod0.ZodObject<{
|
|
2031
|
+
token: zod0.ZodString;
|
|
2032
|
+
nonce: zod0.ZodOptional<zod0.ZodString>;
|
|
2033
|
+
accessToken: zod0.ZodOptional<zod0.ZodString>;
|
|
2034
|
+
refreshToken: zod0.ZodOptional<zod0.ZodString>;
|
|
2035
|
+
expiresAt: zod0.ZodOptional<zod0.ZodNumber>;
|
|
2036
|
+
}, zod_v4_core0.$strip>>;
|
|
2037
|
+
scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
2038
|
+
requestSignUp: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2039
|
+
loginHint: zod0.ZodOptional<zod0.ZodString>;
|
|
2040
|
+
additionalData: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
2041
|
+
}, zod_v4_core0.$strip>>;
|
|
2042
2042
|
returned: {
|
|
2043
2043
|
redirect: boolean;
|
|
2044
2044
|
token?: string | undefined;
|
|
@@ -2106,37 +2106,37 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2106
2106
|
image?: string | null | undefined;
|
|
2107
2107
|
} & (Option extends BetterAuthOptions ? AdditionalUserFieldsOutput<Option> : Option extends Auth ? AdditionalUserFieldsOutput<Option["options"]> : {})>>;
|
|
2108
2108
|
}>;
|
|
2109
|
-
readonly callbackOAuth:
|
|
2109
|
+
readonly callbackOAuth: better_call6.StrictEndpoint<"/callback/:id", {
|
|
2110
2110
|
method: ("GET" | "POST")[];
|
|
2111
2111
|
operationId: string;
|
|
2112
|
-
body:
|
|
2113
|
-
code:
|
|
2114
|
-
error:
|
|
2115
|
-
device_id:
|
|
2116
|
-
error_description:
|
|
2117
|
-
state:
|
|
2118
|
-
user:
|
|
2119
|
-
},
|
|
2120
|
-
query:
|
|
2121
|
-
code:
|
|
2122
|
-
error:
|
|
2123
|
-
device_id:
|
|
2124
|
-
error_description:
|
|
2125
|
-
state:
|
|
2126
|
-
user:
|
|
2127
|
-
},
|
|
2112
|
+
body: zod0.ZodOptional<zod0.ZodObject<{
|
|
2113
|
+
code: zod0.ZodOptional<zod0.ZodString>;
|
|
2114
|
+
error: zod0.ZodOptional<zod0.ZodString>;
|
|
2115
|
+
device_id: zod0.ZodOptional<zod0.ZodString>;
|
|
2116
|
+
error_description: zod0.ZodOptional<zod0.ZodString>;
|
|
2117
|
+
state: zod0.ZodOptional<zod0.ZodString>;
|
|
2118
|
+
user: zod0.ZodOptional<zod0.ZodString>;
|
|
2119
|
+
}, zod_v4_core0.$strip>>;
|
|
2120
|
+
query: zod0.ZodOptional<zod0.ZodObject<{
|
|
2121
|
+
code: zod0.ZodOptional<zod0.ZodString>;
|
|
2122
|
+
error: zod0.ZodOptional<zod0.ZodString>;
|
|
2123
|
+
device_id: zod0.ZodOptional<zod0.ZodString>;
|
|
2124
|
+
error_description: zod0.ZodOptional<zod0.ZodString>;
|
|
2125
|
+
state: zod0.ZodOptional<zod0.ZodString>;
|
|
2126
|
+
user: zod0.ZodOptional<zod0.ZodString>;
|
|
2127
|
+
}, zod_v4_core0.$strip>>;
|
|
2128
2128
|
metadata: {
|
|
2129
2129
|
allowedMediaTypes: string[];
|
|
2130
2130
|
scope: "server";
|
|
2131
2131
|
};
|
|
2132
2132
|
}, void>;
|
|
2133
|
-
readonly getSession:
|
|
2133
|
+
readonly getSession: better_call6.StrictEndpoint<"/get-session", {
|
|
2134
2134
|
method: "GET";
|
|
2135
2135
|
operationId: string;
|
|
2136
|
-
query:
|
|
2137
|
-
disableCookieCache:
|
|
2138
|
-
disableRefresh:
|
|
2139
|
-
},
|
|
2136
|
+
query: zod0.ZodOptional<zod0.ZodObject<{
|
|
2137
|
+
disableCookieCache: zod0.ZodOptional<zod0.ZodCoercedBoolean<unknown>>;
|
|
2138
|
+
disableRefresh: zod0.ZodOptional<zod0.ZodCoercedBoolean<unknown>>;
|
|
2139
|
+
}, zod_v4_core0.$strip>>;
|
|
2140
2140
|
requireHeaders: true;
|
|
2141
2141
|
metadata: {
|
|
2142
2142
|
openapi: {
|
|
@@ -2187,7 +2187,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2187
2187
|
image?: string | null | undefined;
|
|
2188
2188
|
} & (Option extends BetterAuthOptions ? AdditionalUserFieldsOutput<Option> : Option extends Auth ? AdditionalUserFieldsOutput<Option["options"]> : {})>>;
|
|
2189
2189
|
} | null>;
|
|
2190
|
-
readonly signOut:
|
|
2190
|
+
readonly signOut: better_call6.StrictEndpoint<"/sign-out", {
|
|
2191
2191
|
method: "POST";
|
|
2192
2192
|
operationId: string;
|
|
2193
2193
|
requireHeaders: true;
|
|
@@ -2217,18 +2217,18 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2217
2217
|
}, {
|
|
2218
2218
|
success: boolean;
|
|
2219
2219
|
}>;
|
|
2220
|
-
readonly signUpEmail:
|
|
2220
|
+
readonly signUpEmail: better_call6.StrictEndpoint<"/sign-up/email", {
|
|
2221
2221
|
method: "POST";
|
|
2222
2222
|
operationId: string;
|
|
2223
|
-
use: ((inputContext:
|
|
2224
|
-
body:
|
|
2225
|
-
name:
|
|
2226
|
-
email:
|
|
2227
|
-
password:
|
|
2228
|
-
image:
|
|
2229
|
-
callbackURL:
|
|
2230
|
-
rememberMe:
|
|
2231
|
-
},
|
|
2223
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<void>)[];
|
|
2224
|
+
body: zod0.ZodIntersection<zod0.ZodObject<{
|
|
2225
|
+
name: zod0.ZodString;
|
|
2226
|
+
email: zod0.ZodEmail;
|
|
2227
|
+
password: zod0.ZodString;
|
|
2228
|
+
image: zod0.ZodOptional<zod0.ZodString>;
|
|
2229
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2230
|
+
rememberMe: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2231
|
+
}, zod_v4_core0.$strip>, zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
2232
2232
|
metadata: {
|
|
2233
2233
|
allowedMediaTypes: string[];
|
|
2234
2234
|
$Infer: {
|
|
@@ -2391,16 +2391,16 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2391
2391
|
image?: string | null | undefined;
|
|
2392
2392
|
} & (Option extends BetterAuthOptions ? AdditionalUserFieldsOutput<Option> : Option extends Auth ? AdditionalUserFieldsOutput<Option["options"]> : {})>>;
|
|
2393
2393
|
}>;
|
|
2394
|
-
readonly signInEmail:
|
|
2394
|
+
readonly signInEmail: better_call6.StrictEndpoint<"/sign-in/email", {
|
|
2395
2395
|
method: "POST";
|
|
2396
2396
|
operationId: string;
|
|
2397
|
-
use: ((inputContext:
|
|
2398
|
-
body:
|
|
2399
|
-
email:
|
|
2400
|
-
password:
|
|
2401
|
-
callbackURL:
|
|
2402
|
-
rememberMe:
|
|
2403
|
-
},
|
|
2397
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<void>)[];
|
|
2398
|
+
body: zod0.ZodObject<{
|
|
2399
|
+
email: zod0.ZodString;
|
|
2400
|
+
password: zod0.ZodString;
|
|
2401
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2402
|
+
rememberMe: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodBoolean>>;
|
|
2403
|
+
}, zod_v4_core0.$strip>;
|
|
2404
2404
|
metadata: {
|
|
2405
2405
|
allowedMediaTypes: string[];
|
|
2406
2406
|
$Infer: {
|
|
@@ -2476,16 +2476,16 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2476
2476
|
image?: string | null | undefined;
|
|
2477
2477
|
} & (Option extends BetterAuthOptions ? AdditionalUserFieldsOutput<Option> : Option extends Auth ? AdditionalUserFieldsOutput<Option["options"]> : {})>>;
|
|
2478
2478
|
}>;
|
|
2479
|
-
readonly resetPassword:
|
|
2479
|
+
readonly resetPassword: better_call6.StrictEndpoint<"/reset-password", {
|
|
2480
2480
|
method: "POST";
|
|
2481
2481
|
operationId: string;
|
|
2482
|
-
query:
|
|
2483
|
-
token:
|
|
2484
|
-
},
|
|
2485
|
-
body:
|
|
2486
|
-
newPassword:
|
|
2487
|
-
token:
|
|
2488
|
-
},
|
|
2482
|
+
query: zod0.ZodOptional<zod0.ZodObject<{
|
|
2483
|
+
token: zod0.ZodOptional<zod0.ZodString>;
|
|
2484
|
+
}, zod_v4_core0.$strip>>;
|
|
2485
|
+
body: zod0.ZodObject<{
|
|
2486
|
+
newPassword: zod0.ZodString;
|
|
2487
|
+
token: zod0.ZodOptional<zod0.ZodString>;
|
|
2488
|
+
}, zod_v4_core0.$strip>;
|
|
2489
2489
|
metadata: {
|
|
2490
2490
|
openapi: {
|
|
2491
2491
|
operationId: string;
|
|
@@ -2512,11 +2512,11 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2512
2512
|
}, {
|
|
2513
2513
|
status: boolean;
|
|
2514
2514
|
}>;
|
|
2515
|
-
readonly verifyPassword:
|
|
2515
|
+
readonly verifyPassword: better_call6.StrictEndpoint<"/verify-password", {
|
|
2516
2516
|
method: "POST";
|
|
2517
|
-
body:
|
|
2518
|
-
password:
|
|
2519
|
-
},
|
|
2517
|
+
body: zod0.ZodObject<{
|
|
2518
|
+
password: zod0.ZodString;
|
|
2519
|
+
}, zod_v4_core0.$strip>;
|
|
2520
2520
|
metadata: {
|
|
2521
2521
|
scope: "server";
|
|
2522
2522
|
openapi: {
|
|
@@ -2541,7 +2541,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2541
2541
|
};
|
|
2542
2542
|
};
|
|
2543
2543
|
};
|
|
2544
|
-
use: ((inputContext:
|
|
2544
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
2545
2545
|
session: {
|
|
2546
2546
|
session: Record<string, any> & {
|
|
2547
2547
|
id: string;
|
|
@@ -2567,14 +2567,14 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2567
2567
|
}, {
|
|
2568
2568
|
status: boolean;
|
|
2569
2569
|
}>;
|
|
2570
|
-
readonly verifyEmail:
|
|
2570
|
+
readonly verifyEmail: better_call6.StrictEndpoint<"/verify-email", {
|
|
2571
2571
|
method: "GET";
|
|
2572
2572
|
operationId: string;
|
|
2573
|
-
query:
|
|
2574
|
-
token:
|
|
2575
|
-
callbackURL:
|
|
2576
|
-
},
|
|
2577
|
-
use: ((inputContext:
|
|
2573
|
+
query: zod0.ZodObject<{
|
|
2574
|
+
token: zod0.ZodString;
|
|
2575
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2576
|
+
}, zod_v4_core0.$strip>;
|
|
2577
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<void>)[];
|
|
2578
2578
|
metadata: {
|
|
2579
2579
|
openapi: {
|
|
2580
2580
|
description: string;
|
|
@@ -2623,13 +2623,13 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2623
2623
|
}, void | {
|
|
2624
2624
|
status: boolean;
|
|
2625
2625
|
}>;
|
|
2626
|
-
readonly sendVerificationEmail:
|
|
2626
|
+
readonly sendVerificationEmail: better_call6.StrictEndpoint<"/send-verification-email", {
|
|
2627
2627
|
method: "POST";
|
|
2628
2628
|
operationId: string;
|
|
2629
|
-
body:
|
|
2630
|
-
email:
|
|
2631
|
-
callbackURL:
|
|
2632
|
-
},
|
|
2629
|
+
body: zod0.ZodObject<{
|
|
2630
|
+
email: zod0.ZodEmail;
|
|
2631
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2632
|
+
}, zod_v4_core0.$strip>;
|
|
2633
2633
|
metadata: {
|
|
2634
2634
|
openapi: {
|
|
2635
2635
|
operationId: string;
|
|
@@ -2698,13 +2698,13 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2698
2698
|
}, {
|
|
2699
2699
|
status: boolean;
|
|
2700
2700
|
}>;
|
|
2701
|
-
readonly changeEmail:
|
|
2701
|
+
readonly changeEmail: better_call6.StrictEndpoint<"/change-email", {
|
|
2702
2702
|
method: "POST";
|
|
2703
|
-
body:
|
|
2704
|
-
newEmail:
|
|
2705
|
-
callbackURL:
|
|
2706
|
-
},
|
|
2707
|
-
use: ((inputContext:
|
|
2703
|
+
body: zod0.ZodObject<{
|
|
2704
|
+
newEmail: zod0.ZodEmail;
|
|
2705
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
2706
|
+
}, zod_v4_core0.$strip>;
|
|
2707
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
2708
2708
|
session: {
|
|
2709
2709
|
session: Record<string, any> & {
|
|
2710
2710
|
id: string;
|
|
@@ -2779,15 +2779,15 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2779
2779
|
}, {
|
|
2780
2780
|
status: boolean;
|
|
2781
2781
|
}>;
|
|
2782
|
-
readonly changePassword:
|
|
2782
|
+
readonly changePassword: better_call6.StrictEndpoint<"/change-password", {
|
|
2783
2783
|
method: "POST";
|
|
2784
2784
|
operationId: string;
|
|
2785
|
-
body:
|
|
2786
|
-
newPassword:
|
|
2787
|
-
currentPassword:
|
|
2788
|
-
revokeOtherSessions:
|
|
2789
|
-
},
|
|
2790
|
-
use: ((inputContext:
|
|
2785
|
+
body: zod0.ZodObject<{
|
|
2786
|
+
newPassword: zod0.ZodString;
|
|
2787
|
+
currentPassword: zod0.ZodString;
|
|
2788
|
+
revokeOtherSessions: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2789
|
+
}, zod_v4_core0.$strip>;
|
|
2790
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
2791
2791
|
session: {
|
|
2792
2792
|
session: Record<string, any> & {
|
|
2793
2793
|
id: string;
|
|
@@ -2887,12 +2887,12 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2887
2887
|
image?: string | null | undefined;
|
|
2888
2888
|
} & Record<string, any>;
|
|
2889
2889
|
}>;
|
|
2890
|
-
readonly setPassword:
|
|
2890
|
+
readonly setPassword: better_call6.StrictEndpoint<string, {
|
|
2891
2891
|
method: "POST";
|
|
2892
|
-
body:
|
|
2893
|
-
newPassword:
|
|
2894
|
-
},
|
|
2895
|
-
use: ((inputContext:
|
|
2892
|
+
body: zod0.ZodObject<{
|
|
2893
|
+
newPassword: zod0.ZodString;
|
|
2894
|
+
}, zod_v4_core0.$strip>;
|
|
2895
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
2896
2896
|
session: {
|
|
2897
2897
|
session: Record<string, any> & {
|
|
2898
2898
|
id: string;
|
|
@@ -2918,11 +2918,11 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2918
2918
|
}, {
|
|
2919
2919
|
status: boolean;
|
|
2920
2920
|
}>;
|
|
2921
|
-
readonly updateUser:
|
|
2921
|
+
readonly updateUser: better_call6.StrictEndpoint<"/update-user", {
|
|
2922
2922
|
method: "POST";
|
|
2923
2923
|
operationId: string;
|
|
2924
|
-
body:
|
|
2925
|
-
use: ((inputContext:
|
|
2924
|
+
body: zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>;
|
|
2925
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
2926
2926
|
session: {
|
|
2927
2927
|
session: Record<string, any> & {
|
|
2928
2928
|
id: string;
|
|
@@ -2998,9 +2998,9 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2998
2998
|
}, {
|
|
2999
2999
|
status: boolean;
|
|
3000
3000
|
}>;
|
|
3001
|
-
readonly deleteUser:
|
|
3001
|
+
readonly deleteUser: better_call6.StrictEndpoint<"/delete-user", {
|
|
3002
3002
|
method: "POST";
|
|
3003
|
-
use: ((inputContext:
|
|
3003
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
3004
3004
|
session: {
|
|
3005
3005
|
session: Record<string, any> & {
|
|
3006
3006
|
id: string;
|
|
@@ -3023,11 +3023,11 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3023
3023
|
};
|
|
3024
3024
|
};
|
|
3025
3025
|
}>)[];
|
|
3026
|
-
body:
|
|
3027
|
-
callbackURL:
|
|
3028
|
-
password:
|
|
3029
|
-
token:
|
|
3030
|
-
},
|
|
3026
|
+
body: zod0.ZodObject<{
|
|
3027
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
3028
|
+
password: zod0.ZodOptional<zod0.ZodString>;
|
|
3029
|
+
token: zod0.ZodOptional<zod0.ZodString>;
|
|
3030
|
+
}, zod_v4_core0.$strip>;
|
|
3031
3031
|
metadata: {
|
|
3032
3032
|
openapi: {
|
|
3033
3033
|
operationId: string;
|
|
@@ -3085,12 +3085,12 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3085
3085
|
success: boolean;
|
|
3086
3086
|
message: string;
|
|
3087
3087
|
}>;
|
|
3088
|
-
readonly requestPasswordReset:
|
|
3088
|
+
readonly requestPasswordReset: better_call6.StrictEndpoint<"/request-password-reset", {
|
|
3089
3089
|
method: "POST";
|
|
3090
|
-
body:
|
|
3091
|
-
email:
|
|
3092
|
-
redirectTo:
|
|
3093
|
-
},
|
|
3090
|
+
body: zod0.ZodObject<{
|
|
3091
|
+
email: zod0.ZodEmail;
|
|
3092
|
+
redirectTo: zod0.ZodOptional<zod0.ZodString>;
|
|
3093
|
+
}, zod_v4_core0.$strip>;
|
|
3094
3094
|
metadata: {
|
|
3095
3095
|
openapi: {
|
|
3096
3096
|
operationId: string;
|
|
@@ -3121,13 +3121,13 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3121
3121
|
status: boolean;
|
|
3122
3122
|
message: string;
|
|
3123
3123
|
}>;
|
|
3124
|
-
readonly requestPasswordResetCallback:
|
|
3124
|
+
readonly requestPasswordResetCallback: better_call6.StrictEndpoint<"/reset-password/:token", {
|
|
3125
3125
|
method: "GET";
|
|
3126
3126
|
operationId: string;
|
|
3127
|
-
query:
|
|
3128
|
-
callbackURL:
|
|
3129
|
-
},
|
|
3130
|
-
use: ((inputContext:
|
|
3127
|
+
query: zod0.ZodObject<{
|
|
3128
|
+
callbackURL: zod0.ZodString;
|
|
3129
|
+
}, zod_v4_core0.$strip>;
|
|
3130
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<void>)[];
|
|
3131
3131
|
metadata: {
|
|
3132
3132
|
openapi: {
|
|
3133
3133
|
operationId: string;
|
|
@@ -3169,10 +3169,10 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3169
3169
|
};
|
|
3170
3170
|
};
|
|
3171
3171
|
}, never>;
|
|
3172
|
-
readonly listSessions:
|
|
3172
|
+
readonly listSessions: better_call6.StrictEndpoint<"/list-sessions", {
|
|
3173
3173
|
method: "GET";
|
|
3174
3174
|
operationId: string;
|
|
3175
|
-
use: ((inputContext:
|
|
3175
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
3176
3176
|
session: {
|
|
3177
3177
|
session: Record<string, any> & {
|
|
3178
3178
|
id: string;
|
|
@@ -3227,12 +3227,12 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3227
3227
|
ipAddress?: string | null | undefined;
|
|
3228
3228
|
userAgent?: string | null | undefined;
|
|
3229
3229
|
} & (Option extends BetterAuthOptions ? AdditionalSessionFieldsOutput<Option> : Option extends Auth ? AdditionalSessionFieldsOutput<Option["options"]> : {})>>>[]>;
|
|
3230
|
-
readonly revokeSession:
|
|
3230
|
+
readonly revokeSession: better_call6.StrictEndpoint<"/revoke-session", {
|
|
3231
3231
|
method: "POST";
|
|
3232
|
-
body:
|
|
3233
|
-
token:
|
|
3234
|
-
},
|
|
3235
|
-
use: ((inputContext:
|
|
3232
|
+
body: zod0.ZodObject<{
|
|
3233
|
+
token: zod0.ZodString;
|
|
3234
|
+
}, zod_v4_core0.$strip>;
|
|
3235
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
3236
3236
|
session: {
|
|
3237
3237
|
session: Record<string, any> & {
|
|
3238
3238
|
id: string;
|
|
@@ -3299,9 +3299,9 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3299
3299
|
}, {
|
|
3300
3300
|
status: boolean;
|
|
3301
3301
|
}>;
|
|
3302
|
-
readonly revokeSessions:
|
|
3302
|
+
readonly revokeSessions: better_call6.StrictEndpoint<"/revoke-sessions", {
|
|
3303
3303
|
method: "POST";
|
|
3304
|
-
use: ((inputContext:
|
|
3304
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
3305
3305
|
session: {
|
|
3306
3306
|
session: Record<string, any> & {
|
|
3307
3307
|
id: string;
|
|
@@ -3352,10 +3352,10 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3352
3352
|
}, {
|
|
3353
3353
|
status: boolean;
|
|
3354
3354
|
}>;
|
|
3355
|
-
readonly revokeOtherSessions:
|
|
3355
|
+
readonly revokeOtherSessions: better_call6.StrictEndpoint<"/revoke-other-sessions", {
|
|
3356
3356
|
method: "POST";
|
|
3357
3357
|
requireHeaders: true;
|
|
3358
|
-
use: ((inputContext:
|
|
3358
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
3359
3359
|
session: {
|
|
3360
3360
|
session: Record<string, any> & {
|
|
3361
3361
|
id: string;
|
|
@@ -3405,26 +3405,26 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3405
3405
|
}, {
|
|
3406
3406
|
status: boolean;
|
|
3407
3407
|
}>;
|
|
3408
|
-
readonly linkSocialAccount:
|
|
3408
|
+
readonly linkSocialAccount: better_call6.StrictEndpoint<"/link-social", {
|
|
3409
3409
|
method: "POST";
|
|
3410
3410
|
requireHeaders: true;
|
|
3411
|
-
body:
|
|
3412
|
-
callbackURL:
|
|
3413
|
-
provider:
|
|
3414
|
-
idToken:
|
|
3415
|
-
token:
|
|
3416
|
-
nonce:
|
|
3417
|
-
accessToken:
|
|
3418
|
-
refreshToken:
|
|
3419
|
-
scopes:
|
|
3420
|
-
},
|
|
3421
|
-
requestSignUp:
|
|
3422
|
-
scopes:
|
|
3423
|
-
errorCallbackURL:
|
|
3424
|
-
disableRedirect:
|
|
3425
|
-
additionalData:
|
|
3426
|
-
},
|
|
3427
|
-
use: ((inputContext:
|
|
3411
|
+
body: zod0.ZodObject<{
|
|
3412
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
3413
|
+
provider: zod0.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_core0.$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>>;
|
|
3414
|
+
idToken: zod0.ZodOptional<zod0.ZodObject<{
|
|
3415
|
+
token: zod0.ZodString;
|
|
3416
|
+
nonce: zod0.ZodOptional<zod0.ZodString>;
|
|
3417
|
+
accessToken: zod0.ZodOptional<zod0.ZodString>;
|
|
3418
|
+
refreshToken: zod0.ZodOptional<zod0.ZodString>;
|
|
3419
|
+
scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
3420
|
+
}, zod_v4_core0.$strip>>;
|
|
3421
|
+
requestSignUp: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
3422
|
+
scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
3423
|
+
errorCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
3424
|
+
disableRedirect: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
3425
|
+
additionalData: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
3426
|
+
}, zod_v4_core0.$strip>;
|
|
3427
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
3428
3428
|
session: {
|
|
3429
3429
|
session: Record<string, any> & {
|
|
3430
3430
|
id: string;
|
|
@@ -3483,9 +3483,9 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3483
3483
|
url: string;
|
|
3484
3484
|
redirect: boolean;
|
|
3485
3485
|
}>;
|
|
3486
|
-
readonly listUserAccounts:
|
|
3486
|
+
readonly listUserAccounts: better_call6.StrictEndpoint<"/list-accounts", {
|
|
3487
3487
|
method: "GET";
|
|
3488
|
-
use: ((inputContext:
|
|
3488
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
3489
3489
|
session: {
|
|
3490
3490
|
session: Record<string, any> & {
|
|
3491
3491
|
id: string;
|
|
@@ -3567,13 +3567,13 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3567
3567
|
providerId: string;
|
|
3568
3568
|
accountId: string;
|
|
3569
3569
|
}[]>;
|
|
3570
|
-
readonly deleteUserCallback:
|
|
3570
|
+
readonly deleteUserCallback: better_call6.StrictEndpoint<"/delete-user/callback", {
|
|
3571
3571
|
method: "GET";
|
|
3572
|
-
query:
|
|
3573
|
-
token:
|
|
3574
|
-
callbackURL:
|
|
3575
|
-
},
|
|
3576
|
-
use: ((inputContext:
|
|
3572
|
+
query: zod0.ZodObject<{
|
|
3573
|
+
token: zod0.ZodString;
|
|
3574
|
+
callbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
3575
|
+
}, zod_v4_core0.$strip>;
|
|
3576
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<void>)[];
|
|
3577
3577
|
metadata: {
|
|
3578
3578
|
openapi: {
|
|
3579
3579
|
description: string;
|
|
@@ -3607,13 +3607,13 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3607
3607
|
success: boolean;
|
|
3608
3608
|
message: string;
|
|
3609
3609
|
}>;
|
|
3610
|
-
readonly unlinkAccount:
|
|
3610
|
+
readonly unlinkAccount: better_call6.StrictEndpoint<"/unlink-account", {
|
|
3611
3611
|
method: "POST";
|
|
3612
|
-
body:
|
|
3613
|
-
providerId:
|
|
3614
|
-
accountId:
|
|
3615
|
-
},
|
|
3616
|
-
use: ((inputContext:
|
|
3612
|
+
body: zod0.ZodObject<{
|
|
3613
|
+
providerId: zod0.ZodString;
|
|
3614
|
+
accountId: zod0.ZodOptional<zod0.ZodString>;
|
|
3615
|
+
}, zod_v4_core0.$strip>;
|
|
3616
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
3617
3617
|
session: {
|
|
3618
3618
|
session: Record<string, any> & {
|
|
3619
3619
|
id: string;
|
|
@@ -3661,13 +3661,13 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3661
3661
|
}, {
|
|
3662
3662
|
status: boolean;
|
|
3663
3663
|
}>;
|
|
3664
|
-
readonly refreshToken:
|
|
3664
|
+
readonly refreshToken: better_call6.StrictEndpoint<"/refresh-token", {
|
|
3665
3665
|
method: "POST";
|
|
3666
|
-
body:
|
|
3667
|
-
providerId:
|
|
3668
|
-
accountId:
|
|
3669
|
-
userId:
|
|
3670
|
-
},
|
|
3666
|
+
body: zod0.ZodObject<{
|
|
3667
|
+
providerId: zod0.ZodString;
|
|
3668
|
+
accountId: zod0.ZodOptional<zod0.ZodString>;
|
|
3669
|
+
userId: zod0.ZodOptional<zod0.ZodString>;
|
|
3670
|
+
}, zod_v4_core0.$strip>;
|
|
3671
3671
|
metadata: {
|
|
3672
3672
|
openapi: {
|
|
3673
3673
|
description: string;
|
|
@@ -3720,13 +3720,13 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3720
3720
|
providerId: string;
|
|
3721
3721
|
accountId: string;
|
|
3722
3722
|
}>;
|
|
3723
|
-
readonly getAccessToken:
|
|
3723
|
+
readonly getAccessToken: better_call6.StrictEndpoint<"/get-access-token", {
|
|
3724
3724
|
method: "POST";
|
|
3725
|
-
body:
|
|
3726
|
-
providerId:
|
|
3727
|
-
accountId:
|
|
3728
|
-
userId:
|
|
3729
|
-
},
|
|
3725
|
+
body: zod0.ZodObject<{
|
|
3726
|
+
providerId: zod0.ZodString;
|
|
3727
|
+
accountId: zod0.ZodOptional<zod0.ZodString>;
|
|
3728
|
+
userId: zod0.ZodOptional<zod0.ZodString>;
|
|
3729
|
+
}, zod_v4_core0.$strip>;
|
|
3730
3730
|
metadata: {
|
|
3731
3731
|
openapi: {
|
|
3732
3732
|
description: string;
|
|
@@ -3768,9 +3768,9 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3768
3768
|
scopes: string[];
|
|
3769
3769
|
idToken: string | undefined;
|
|
3770
3770
|
}>;
|
|
3771
|
-
readonly accountInfo:
|
|
3771
|
+
readonly accountInfo: better_call6.StrictEndpoint<"/account-info", {
|
|
3772
3772
|
method: "GET";
|
|
3773
|
-
use: ((inputContext:
|
|
3773
|
+
use: ((inputContext: better_call6.MiddlewareInputContext<better_call6.MiddlewareOptions>) => Promise<{
|
|
3774
3774
|
session: {
|
|
3775
3775
|
session: Record<string, any> & {
|
|
3776
3776
|
id: string;
|
|
@@ -3840,9 +3840,9 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3840
3840
|
};
|
|
3841
3841
|
};
|
|
3842
3842
|
};
|
|
3843
|
-
query:
|
|
3844
|
-
accountId:
|
|
3845
|
-
},
|
|
3843
|
+
query: zod0.ZodOptional<zod0.ZodObject<{
|
|
3844
|
+
accountId: zod0.ZodOptional<zod0.ZodString>;
|
|
3845
|
+
}, zod_v4_core0.$strip>>;
|
|
3846
3846
|
}, {
|
|
3847
3847
|
user: _better_auth_core_oauth20.OAuth2UserInfo;
|
|
3848
3848
|
data: Record<string, any>;
|