better-auth 1.6.27 → 1.6.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/index.d.mts +6 -1
- package/dist/api/dispatch.d.mts +1 -0
- package/dist/api/index.d.mts +474 -472
- package/dist/api/middlewares/authorization.d.mts +8 -12
- package/dist/api/middlewares/authorization.mjs +1 -2
- package/dist/api/middlewares/index.d.mts +1 -2
- package/dist/api/middlewares/origin-check.d.mts +5 -3
- package/dist/api/routes/account.d.mts +13 -10
- package/dist/api/routes/callback.d.mts +3 -1
- package/dist/api/routes/email-verification.d.mts +8 -4
- package/dist/api/routes/error.d.mts +3 -1
- package/dist/api/routes/index.d.mts +1 -2
- package/dist/api/routes/ok.d.mts +3 -1
- package/dist/api/routes/password.d.mts +9 -7
- package/dist/api/routes/session.d.mts +24 -22
- package/dist/api/routes/sign-in.d.mts +5 -3
- package/dist/api/routes/sign-out.d.mts +3 -1
- package/dist/api/routes/sign-up.d.mts +4 -3
- package/dist/api/routes/update-session.d.mts +4 -3
- package/dist/api/routes/update-user.d.mts +14 -13
- package/dist/auth/full.d.mts +1 -1
- package/dist/auth/minimal.d.mts +1 -1
- package/dist/client/config.d.mts +14 -12
- package/dist/client/config.mjs +2 -2
- package/dist/client/equality.d.mts +1 -0
- package/dist/client/index.d.mts +5 -6
- package/dist/client/lynx/index.d.mts +5 -4
- package/dist/client/lynx/lynx-store.d.mts +2 -1
- package/dist/client/parser.d.mts +3 -7
- package/dist/client/path-to-object.d.mts +4 -3
- package/dist/client/plugins/index.d.mts +1 -1
- package/dist/client/plugins/infer-plugin.d.mts +1 -0
- package/dist/client/query.d.mts +1 -0
- package/dist/client/react/index.d.mts +5 -4
- package/dist/client/react/react-store.d.mts +2 -1
- package/dist/client/session-atom.mjs +41 -17
- package/dist/client/session-refresh.d.mts +1 -0
- package/dist/client/solid/index.d.mts +5 -4
- package/dist/client/svelte/index.d.mts +5 -4
- package/dist/client/types.d.mts +2 -2
- package/dist/client/vanilla.d.mts +2 -1
- package/dist/client/vue/index.d.mts +5 -4
- package/dist/context/create-context.mjs +3 -3
- package/dist/context/helpers.mjs +2 -2
- package/dist/cookies/index.d.mts +7 -6
- package/dist/cookies/session-store.d.mts +0 -1
- package/dist/cookies/session-store.mjs +1 -2
- package/dist/crypto/index.d.mts +9 -2
- package/dist/crypto/jwt.d.mts +1 -0
- package/dist/crypto/password.d.mts +5 -1
- package/dist/db/adapter-base.d.mts +1 -0
- package/dist/db/adapter-kysely.d.mts +1 -0
- package/dist/db/field-converter.d.mts +1 -0
- package/dist/db/field.d.mts +10 -9
- package/dist/db/get-migration.d.mts +1 -0
- package/dist/db/get-schema.d.mts +1 -0
- package/dist/db/internal-adapter.d.mts +1 -0
- package/dist/db/internal-adapter.mjs +1 -2
- package/dist/db/revoke-unproven-account-access.d.mts +1 -0
- package/dist/db/schema.d.mts +2 -2
- package/dist/db/to-zod.d.mts +7 -3
- package/dist/db/with-hooks.d.mts +1 -0
- package/dist/index.d.mts +3 -4
- package/dist/integrations/next-js.d.mts +7 -4
- package/dist/integrations/node.d.mts +3 -2
- package/dist/integrations/svelte-kit.d.mts +9 -2
- package/dist/integrations/tanstack-start-solid.d.mts +5 -2
- package/dist/integrations/tanstack-start.d.mts +5 -2
- package/dist/oauth2/link-account.d.mts +1 -1
- package/dist/oauth2/state.d.mts +1 -0
- package/dist/oauth2/utils.d.mts +1 -0
- package/dist/package.mjs +1 -1
- package/dist/plugins/access/access.d.mts +1 -0
- package/dist/plugins/access/types.d.mts +5 -4
- package/dist/plugins/additional-fields/client.d.mts +1 -0
- package/dist/plugins/admin/access/statement.d.mts +0 -1
- package/dist/plugins/admin/admin.d.mts +125 -120
- package/dist/plugins/admin/client.d.mts +30 -30
- package/dist/plugins/admin/client.mjs +1 -1
- package/dist/plugins/admin/error-codes.d.mts +25 -23
- package/dist/plugins/admin/index.d.mts +1 -1
- package/dist/plugins/admin/schema.d.mts +1 -1
- package/dist/plugins/admin/types.d.mts +2 -3
- package/dist/plugins/anonymous/client.d.mts +11 -9
- package/dist/plugins/anonymous/client.mjs +1 -1
- package/dist/plugins/anonymous/error-codes.d.mts +10 -8
- package/dist/plugins/anonymous/index.d.mts +18 -14
- package/dist/plugins/anonymous/types.d.mts +1 -1
- package/dist/plugins/bearer/index.d.mts +7 -4
- package/dist/plugins/captcha/index.d.mts +8 -5
- package/dist/plugins/captcha/types.d.mts +1 -0
- package/dist/plugins/custom-session/client.d.mts +1 -0
- package/dist/plugins/custom-session/index.d.mts +12 -7
- package/dist/plugins/device-authorization/client.d.mts +1 -0
- package/dist/plugins/device-authorization/index.d.mts +22 -19
- package/dist/plugins/email-otp/client.d.mts +6 -4
- package/dist/plugins/email-otp/client.mjs +1 -1
- package/dist/plugins/email-otp/error-codes.d.mts +5 -3
- package/dist/plugins/email-otp/index.d.mts +74 -67
- package/dist/plugins/email-otp/types.d.mts +1 -0
- package/dist/plugins/generic-oauth/client.d.mts +11 -10
- package/dist/plugins/generic-oauth/client.mjs +1 -1
- package/dist/plugins/generic-oauth/error-codes.d.mts +10 -8
- package/dist/plugins/generic-oauth/index.d.mts +44 -40
- package/dist/plugins/generic-oauth/providers/auth0.d.mts +1 -0
- package/dist/plugins/generic-oauth/providers/gumroad.d.mts +1 -0
- package/dist/plugins/generic-oauth/providers/hubspot.d.mts +1 -0
- package/dist/plugins/generic-oauth/providers/index.d.mts +1 -2
- package/dist/plugins/generic-oauth/providers/keycloak.d.mts +1 -0
- package/dist/plugins/generic-oauth/providers/line.d.mts +1 -0
- package/dist/plugins/generic-oauth/providers/microsoft-entra-id.d.mts +1 -0
- package/dist/plugins/generic-oauth/providers/okta.d.mts +1 -0
- package/dist/plugins/generic-oauth/providers/patreon.d.mts +1 -0
- package/dist/plugins/generic-oauth/providers/slack.d.mts +1 -0
- package/dist/plugins/generic-oauth/providers/yandex.d.mts +1 -0
- package/dist/plugins/generic-oauth/types.d.mts +2 -1
- package/dist/plugins/haveibeenpwned/index.d.mts +6 -3
- package/dist/plugins/index.d.mts +1 -4
- package/dist/plugins/jwt/client.d.mts +2 -1
- package/dist/plugins/jwt/index.d.mts +11 -8
- package/dist/plugins/jwt/sign.d.mts +2 -2
- package/dist/plugins/jwt/types.d.mts +1 -1
- package/dist/plugins/jwt/utils.d.mts +4 -2
- package/dist/plugins/jwt/verify.d.mts +1 -0
- package/dist/plugins/last-login-method/index.d.mts +5 -2
- package/dist/plugins/magic-link/client.d.mts +1 -0
- package/dist/plugins/magic-link/index.d.mts +6 -4
- package/dist/plugins/mcp/client/adapters.d.mts +1 -0
- package/dist/plugins/mcp/client/index.mjs +2 -4
- package/dist/plugins/mcp/index.d.mts +11 -10
- package/dist/plugins/multi-session/client.d.mts +4 -2
- package/dist/plugins/multi-session/client.mjs +1 -1
- package/dist/plugins/multi-session/error-codes.d.mts +3 -1
- package/dist/plugins/multi-session/index.d.mts +11 -7
- package/dist/plugins/oauth-popup/client.d.mts +12 -6
- package/dist/plugins/oauth-popup/client.mjs +3 -5
- package/dist/plugins/oauth-popup/error-codes.d.mts +6 -4
- package/dist/plugins/oauth-popup/index.d.mts +12 -8
- package/dist/plugins/oauth-popup/index.mjs +1 -1
- package/dist/plugins/oauth-popup/types.d.mts +2 -1
- package/dist/plugins/oauth-proxy/index.d.mts +9 -6
- package/dist/plugins/oauth-proxy/index.mjs +2 -2
- package/dist/plugins/oidc-provider/client.d.mts +2 -1
- package/dist/plugins/oidc-provider/index.d.mts +17 -15
- package/dist/plugins/oidc-provider/schema.d.mts +1 -0
- package/dist/plugins/oidc-provider/types.d.mts +1 -1
- package/dist/plugins/one-tap/client.d.mts +3 -1
- package/dist/plugins/one-tap/index.d.mts +3 -1
- package/dist/plugins/one-time-token/client.d.mts +2 -1
- package/dist/plugins/one-time-token/index.d.mts +6 -5
- package/dist/plugins/open-api/generator.d.mts +1 -0
- package/dist/plugins/open-api/generator.mjs +5 -5
- package/dist/plugins/open-api/index.d.mts +5 -3
- package/dist/plugins/organization/access/statement.d.mts +0 -1
- package/dist/plugins/organization/adapter.d.mts +82 -56
- package/dist/plugins/organization/client.d.mts +103 -104
- package/dist/plugins/organization/client.mjs +4 -7
- package/dist/plugins/organization/error-codes.d.mts +61 -59
- package/dist/plugins/organization/has-permission.d.mts +1 -0
- package/dist/plugins/organization/has-permission.mjs +1 -1
- package/dist/plugins/organization/index.d.mts +1 -1
- package/dist/plugins/organization/organization.d.mts +9 -9
- package/dist/plugins/organization/organization.mjs +1 -1
- package/dist/plugins/organization/permission.d.mts +2 -2
- package/dist/plugins/organization/routes/crud-access-control.d.mts +27 -27
- package/dist/plugins/organization/routes/crud-invites.d.mts +64 -63
- package/dist/plugins/organization/routes/crud-invites.mjs +1 -1
- package/dist/plugins/organization/routes/crud-members.d.mts +56 -54
- package/dist/plugins/organization/routes/crud-members.mjs +1 -1
- package/dist/plugins/organization/routes/crud-org.d.mts +54 -53
- package/dist/plugins/organization/routes/crud-team.d.mts +65 -64
- package/dist/plugins/organization/schema.d.mts +4 -4
- package/dist/plugins/organization/schema.mjs +1 -1
- package/dist/plugins/organization/types.d.mts +14 -14
- package/dist/plugins/phone-number/client.d.mts +15 -13
- package/dist/plugins/phone-number/client.mjs +1 -1
- package/dist/plugins/phone-number/error-codes.d.mts +14 -12
- package/dist/plugins/phone-number/index.d.mts +47 -41
- package/dist/plugins/phone-number/types.d.mts +1 -1
- package/dist/plugins/siwe/client.d.mts +1 -0
- package/dist/plugins/siwe/index.d.mts +5 -4
- package/dist/plugins/test-utils/index.d.mts +4 -2
- package/dist/plugins/test-utils/types.d.mts +0 -1
- package/dist/plugins/two-factor/backup-codes/index.d.mts +6 -4
- package/dist/plugins/two-factor/backup-codes/index.mjs +1 -1
- package/dist/plugins/two-factor/client.d.mts +15 -12
- package/dist/plugins/two-factor/client.mjs +1 -1
- package/dist/plugins/two-factor/error-code.d.mts +12 -10
- package/dist/plugins/two-factor/index.d.mts +31 -27
- package/dist/plugins/two-factor/otp/index.d.mts +4 -2
- package/dist/plugins/two-factor/totp/index.d.mts +6 -4
- package/dist/plugins/two-factor/types.d.mts +1 -1
- package/dist/plugins/username/client.d.mts +11 -9
- package/dist/plugins/username/client.mjs +1 -1
- package/dist/plugins/username/error-codes.d.mts +10 -8
- package/dist/plugins/username/index.d.mts +22 -17
- package/dist/plugins/username/schema.d.mts +5 -3
- package/dist/state.d.mts +1 -0
- package/dist/test-utils/test-instance.d.mts +3 -5
- package/dist/types/adapter.d.mts +1 -1
- package/dist/types/api.d.mts +2 -1
- package/dist/types/auth.d.mts +1 -0
- package/dist/types/helper.d.mts +5 -5
- package/dist/types/index.d.mts +2 -2
- package/dist/types/models.d.mts +1 -0
- package/dist/types/plugins.d.mts +3 -2
- package/dist/utils/index.d.mts +1 -2
- package/dist/utils/url.d.mts +1 -0
- package/package.json +10 -10
package/dist/api/index.d.mts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { OverrideMerge, Prettify as Prettify$1, UnionToIntersection } from "../types/helper.mjs";
|
|
2
2
|
import { AdditionalSessionFieldsInput, AdditionalUserFieldsInput } from "../types/models.mjs";
|
|
3
|
-
import "../types/index.mjs";
|
|
4
|
-
import "../index.mjs";
|
|
5
3
|
import { isAPIError } from "../utils/is-api-error.mjs";
|
|
6
4
|
import { DispatchContext, dispatchAuthEndpoint } from "./dispatch.mjs";
|
|
7
5
|
import { requireOrgRole, requireResourceOwnership } from "./middlewares/authorization.mjs";
|
|
8
6
|
import { formCsrfMiddleware, originCheck, originCheckMiddleware } from "./middlewares/origin-check.mjs";
|
|
9
|
-
import "./middlewares/index.mjs";
|
|
10
7
|
import { accountInfo, getAccessToken, linkSocialAccount, listUserAccounts, refreshToken, unlinkAccount } from "./routes/account.mjs";
|
|
11
8
|
import { callbackOAuth } from "./routes/callback.mjs";
|
|
12
9
|
import { createEmailVerificationToken, sendVerificationEmail, sendVerificationEmailFn, verifyEmail } from "./routes/email-verification.mjs";
|
|
@@ -19,20 +16,25 @@ import { signOut } from "./routes/sign-out.mjs";
|
|
|
19
16
|
import { signUpEmail } from "./routes/sign-up.mjs";
|
|
20
17
|
import { updateSession } from "./routes/update-session.mjs";
|
|
21
18
|
import { changeEmail, changePassword, deleteUser, deleteUserCallback, setPassword, updateUser } from "./routes/update-user.mjs";
|
|
22
|
-
import "./routes/index.mjs";
|
|
23
19
|
import { getOAuthState } from "./state/oauth.mjs";
|
|
24
20
|
import { getShouldSkipSessionRefresh, setShouldSkipSessionRefresh } from "./state/should-session-refresh.mjs";
|
|
25
21
|
import { AuthContext, Awaitable, BetterAuthOptions, BetterAuthPlugin } from "@better-auth/core";
|
|
22
|
+
import * as _$_better_auth_core_db0 from "@better-auth/core/db";
|
|
26
23
|
import { InternalLogger } from "@better-auth/core/env";
|
|
27
24
|
import { APIError } from "@better-auth/core/error";
|
|
25
|
+
import * as _$_better_auth_core_oauth20 from "@better-auth/core/oauth2";
|
|
28
26
|
import { getIp } from "@better-auth/core/utils/ip";
|
|
27
|
+
import * as _$better_call0 from "better-call";
|
|
29
28
|
import { Middleware } from "better-call";
|
|
30
29
|
import { AuthEndpoint, AuthMiddleware, createAuthEndpoint, createAuthMiddleware, optionsMiddleware } from "@better-auth/core/api";
|
|
30
|
+
import * as _$zod from "zod";
|
|
31
|
+
import * as _$zod_v4_core0 from "zod/v4/core";
|
|
32
|
+
|
|
31
33
|
//#region src/api/index.d.ts
|
|
32
34
|
declare function checkEndpointConflicts(options: BetterAuthOptions, logger: InternalLogger): void;
|
|
33
35
|
declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<AuthContext>, options: Option): {
|
|
34
36
|
api: OverrideMerge<{
|
|
35
|
-
readonly ok:
|
|
37
|
+
readonly ok: _$better_call0.StrictEndpoint<"/ok", {
|
|
36
38
|
method: "GET";
|
|
37
39
|
metadata: {
|
|
38
40
|
openapi: {
|
|
@@ -62,7 +64,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
62
64
|
}, {
|
|
63
65
|
ok: boolean;
|
|
64
66
|
}>;
|
|
65
|
-
readonly error:
|
|
67
|
+
readonly error: _$better_call0.StrictEndpoint<"/error", {
|
|
66
68
|
method: "GET";
|
|
67
69
|
metadata: {
|
|
68
70
|
openapi: {
|
|
@@ -84,61 +86,61 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
84
86
|
scope: "server";
|
|
85
87
|
};
|
|
86
88
|
}, Response>;
|
|
87
|
-
readonly signInSocial:
|
|
89
|
+
readonly signInSocial: _$better_call0.StrictEndpoint<"/sign-in/social", {
|
|
88
90
|
method: "POST";
|
|
89
91
|
operationId: string;
|
|
90
|
-
body:
|
|
91
|
-
callbackURL:
|
|
92
|
-
newUserCallbackURL:
|
|
93
|
-
errorCallbackURL:
|
|
94
|
-
provider:
|
|
95
|
-
disableRedirect:
|
|
96
|
-
idToken:
|
|
97
|
-
token:
|
|
98
|
-
nonce:
|
|
99
|
-
accessToken:
|
|
100
|
-
refreshToken:
|
|
101
|
-
expiresAt:
|
|
102
|
-
user:
|
|
103
|
-
name:
|
|
104
|
-
firstName:
|
|
105
|
-
lastName:
|
|
106
|
-
},
|
|
107
|
-
email:
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
scopes:
|
|
111
|
-
requestSignUp:
|
|
112
|
-
loginHint:
|
|
113
|
-
additionalData:
|
|
114
|
-
},
|
|
92
|
+
body: _$zod.ZodObject<{
|
|
93
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
94
|
+
newUserCallbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
95
|
+
errorCallbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
96
|
+
provider: _$zod.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, _$zod_v4_core0.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
|
|
97
|
+
disableRedirect: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
98
|
+
idToken: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
99
|
+
token: _$zod.ZodString;
|
|
100
|
+
nonce: _$zod.ZodOptional<_$zod.ZodString>;
|
|
101
|
+
accessToken: _$zod.ZodOptional<_$zod.ZodString>;
|
|
102
|
+
refreshToken: _$zod.ZodOptional<_$zod.ZodString>;
|
|
103
|
+
expiresAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
104
|
+
user: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
105
|
+
name: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
106
|
+
firstName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
107
|
+
lastName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
108
|
+
}, _$zod_v4_core0.$strip>>;
|
|
109
|
+
email: _$zod.ZodOptional<_$zod.ZodString>;
|
|
110
|
+
}, _$zod_v4_core0.$strip>>;
|
|
111
|
+
}, _$zod_v4_core0.$strip>>;
|
|
112
|
+
scopes: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
113
|
+
requestSignUp: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
114
|
+
loginHint: _$zod.ZodOptional<_$zod.ZodString>;
|
|
115
|
+
additionalData: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodAny>>;
|
|
116
|
+
}, _$zod_v4_core0.$strip>;
|
|
115
117
|
metadata: {
|
|
116
118
|
$Infer: {
|
|
117
|
-
body:
|
|
118
|
-
callbackURL:
|
|
119
|
-
newUserCallbackURL:
|
|
120
|
-
errorCallbackURL:
|
|
121
|
-
provider:
|
|
122
|
-
disableRedirect:
|
|
123
|
-
idToken:
|
|
124
|
-
token:
|
|
125
|
-
nonce:
|
|
126
|
-
accessToken:
|
|
127
|
-
refreshToken:
|
|
128
|
-
expiresAt:
|
|
129
|
-
user:
|
|
130
|
-
name:
|
|
131
|
-
firstName:
|
|
132
|
-
lastName:
|
|
133
|
-
},
|
|
134
|
-
email:
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
scopes:
|
|
138
|
-
requestSignUp:
|
|
139
|
-
loginHint:
|
|
140
|
-
additionalData:
|
|
141
|
-
},
|
|
119
|
+
body: _$zod.infer<_$zod.ZodObject<{
|
|
120
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
121
|
+
newUserCallbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
122
|
+
errorCallbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
123
|
+
provider: _$zod.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, _$zod_v4_core0.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
|
|
124
|
+
disableRedirect: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
125
|
+
idToken: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
126
|
+
token: _$zod.ZodString;
|
|
127
|
+
nonce: _$zod.ZodOptional<_$zod.ZodString>;
|
|
128
|
+
accessToken: _$zod.ZodOptional<_$zod.ZodString>;
|
|
129
|
+
refreshToken: _$zod.ZodOptional<_$zod.ZodString>;
|
|
130
|
+
expiresAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
131
|
+
user: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
132
|
+
name: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
133
|
+
firstName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
134
|
+
lastName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
135
|
+
}, _$zod_v4_core0.$strip>>;
|
|
136
|
+
email: _$zod.ZodOptional<_$zod.ZodString>;
|
|
137
|
+
}, _$zod_v4_core0.$strip>>;
|
|
138
|
+
}, _$zod_v4_core0.$strip>>;
|
|
139
|
+
scopes: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
140
|
+
requestSignUp: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
141
|
+
loginHint: _$zod.ZodOptional<_$zod.ZodString>;
|
|
142
|
+
additionalData: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodAny>>;
|
|
143
|
+
}, _$zod_v4_core0.$strip>>;
|
|
142
144
|
returned: {
|
|
143
145
|
redirect: boolean;
|
|
144
146
|
token?: string | undefined;
|
|
@@ -151,7 +153,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
151
153
|
emailVerified: boolean;
|
|
152
154
|
name: string;
|
|
153
155
|
image?: string | null | undefined;
|
|
154
|
-
} &
|
|
156
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["user"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"user", Option["plugins"]> extends infer T ? { [K in keyof T]: T[K] } : never) | undefined;
|
|
155
157
|
};
|
|
156
158
|
};
|
|
157
159
|
openapi: {
|
|
@@ -203,39 +205,39 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
203
205
|
emailVerified: boolean;
|
|
204
206
|
name: string;
|
|
205
207
|
image?: string | null | undefined;
|
|
206
|
-
} &
|
|
208
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["user"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"user", Option["plugins"]> extends infer T_1 ? { [K in keyof T_1]: T_1[K] } : never;
|
|
207
209
|
}>;
|
|
208
|
-
readonly callbackOAuth:
|
|
210
|
+
readonly callbackOAuth: _$better_call0.StrictEndpoint<"/callback/:id", {
|
|
209
211
|
method: ("GET" | "POST")[];
|
|
210
212
|
operationId: string;
|
|
211
|
-
body:
|
|
212
|
-
code:
|
|
213
|
-
error:
|
|
214
|
-
device_id:
|
|
215
|
-
error_description:
|
|
216
|
-
state:
|
|
217
|
-
user:
|
|
218
|
-
},
|
|
219
|
-
query:
|
|
220
|
-
code:
|
|
221
|
-
error:
|
|
222
|
-
device_id:
|
|
223
|
-
error_description:
|
|
224
|
-
state:
|
|
225
|
-
user:
|
|
226
|
-
},
|
|
213
|
+
body: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
214
|
+
code: _$zod.ZodOptional<_$zod.ZodString>;
|
|
215
|
+
error: _$zod.ZodOptional<_$zod.ZodString>;
|
|
216
|
+
device_id: _$zod.ZodOptional<_$zod.ZodString>;
|
|
217
|
+
error_description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
218
|
+
state: _$zod.ZodOptional<_$zod.ZodString>;
|
|
219
|
+
user: _$zod.ZodOptional<_$zod.ZodString>;
|
|
220
|
+
}, _$zod_v4_core0.$strip>>;
|
|
221
|
+
query: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
222
|
+
code: _$zod.ZodOptional<_$zod.ZodString>;
|
|
223
|
+
error: _$zod.ZodOptional<_$zod.ZodString>;
|
|
224
|
+
device_id: _$zod.ZodOptional<_$zod.ZodString>;
|
|
225
|
+
error_description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
226
|
+
state: _$zod.ZodOptional<_$zod.ZodString>;
|
|
227
|
+
user: _$zod.ZodOptional<_$zod.ZodString>;
|
|
228
|
+
}, _$zod_v4_core0.$strip>>;
|
|
227
229
|
metadata: {
|
|
228
230
|
allowedMediaTypes: string[];
|
|
229
231
|
scope: "server";
|
|
230
232
|
};
|
|
231
233
|
}, never>;
|
|
232
|
-
readonly getSession:
|
|
234
|
+
readonly getSession: _$better_call0.StrictEndpoint<"/get-session", {
|
|
233
235
|
method: ("GET" | "POST")[];
|
|
234
236
|
operationId: string;
|
|
235
|
-
query:
|
|
236
|
-
disableCookieCache:
|
|
237
|
-
disableRefresh:
|
|
238
|
-
},
|
|
237
|
+
query: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
238
|
+
disableCookieCache: _$zod.ZodOptional<_$zod.ZodCoercedBoolean<unknown>>;
|
|
239
|
+
disableRefresh: _$zod.ZodOptional<_$zod.ZodCoercedBoolean<unknown>>;
|
|
240
|
+
}, _$zod_v4_core0.$strip>>;
|
|
239
241
|
requireHeaders: true;
|
|
240
242
|
metadata: {
|
|
241
243
|
openapi: {
|
|
@@ -274,7 +276,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
274
276
|
token: string;
|
|
275
277
|
ipAddress?: string | null | undefined;
|
|
276
278
|
userAgent?: string | null | undefined;
|
|
277
|
-
} &
|
|
279
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["session"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"session", Option["plugins"]> extends infer T_2 ? { [K_1 in keyof T_2]: T_2[K_1] } : never;
|
|
278
280
|
user: {
|
|
279
281
|
id: string;
|
|
280
282
|
createdAt: Date;
|
|
@@ -283,9 +285,9 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
283
285
|
emailVerified: boolean;
|
|
284
286
|
name: string;
|
|
285
287
|
image?: string | null | undefined;
|
|
286
|
-
} &
|
|
288
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["user"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"user", Option["plugins"]> extends infer T_3 ? { [K in keyof T_3]: T_3[K] } : never;
|
|
287
289
|
} | null>;
|
|
288
|
-
readonly signOut:
|
|
290
|
+
readonly signOut: _$better_call0.StrictEndpoint<"/sign-out", {
|
|
289
291
|
method: "POST";
|
|
290
292
|
operationId: string;
|
|
291
293
|
requireHeaders: true;
|
|
@@ -315,18 +317,18 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
315
317
|
}, {
|
|
316
318
|
success: boolean;
|
|
317
319
|
}>;
|
|
318
|
-
readonly signUpEmail:
|
|
320
|
+
readonly signUpEmail: _$better_call0.StrictEndpoint<"/sign-up/email", {
|
|
319
321
|
method: "POST";
|
|
320
322
|
operationId: string;
|
|
321
|
-
use: Middleware<
|
|
322
|
-
body:
|
|
323
|
-
name:
|
|
324
|
-
email:
|
|
325
|
-
password:
|
|
326
|
-
image:
|
|
327
|
-
callbackURL:
|
|
328
|
-
rememberMe:
|
|
329
|
-
},
|
|
323
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<void>>[];
|
|
324
|
+
body: _$zod.ZodIntersection<_$zod.ZodObject<{
|
|
325
|
+
name: _$zod.ZodString;
|
|
326
|
+
email: _$zod.ZodEmail;
|
|
327
|
+
password: _$zod.ZodString;
|
|
328
|
+
image: _$zod.ZodOptional<_$zod.ZodString>;
|
|
329
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
330
|
+
rememberMe: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
331
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodAny>>;
|
|
330
332
|
cloneRequest: true;
|
|
331
333
|
metadata: {
|
|
332
334
|
allowedMediaTypes: string[];
|
|
@@ -338,7 +340,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
338
340
|
image?: string | undefined;
|
|
339
341
|
callbackURL?: string | undefined;
|
|
340
342
|
rememberMe?: boolean | undefined;
|
|
341
|
-
} &
|
|
343
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromPluginsInput<"user", Option["plugins"]> & _$_better_auth_core_db0.InferDBFieldsFromOptionsInput<Option["user"]>;
|
|
342
344
|
returned: {
|
|
343
345
|
token: string | null;
|
|
344
346
|
user: {
|
|
@@ -349,7 +351,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
349
351
|
emailVerified: boolean;
|
|
350
352
|
name: string;
|
|
351
353
|
image?: string | null | undefined;
|
|
352
|
-
} &
|
|
354
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["user"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"user", Option["plugins"]> extends infer T_4 ? { [K in keyof T_4]: T_4[K] } : never;
|
|
353
355
|
};
|
|
354
356
|
};
|
|
355
357
|
openapi: {
|
|
@@ -477,7 +479,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
477
479
|
emailVerified: boolean;
|
|
478
480
|
name: string;
|
|
479
481
|
image?: string | null | undefined;
|
|
480
|
-
} &
|
|
482
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["user"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"user", Option["plugins"]> extends infer T_5 ? { [K in keyof T_5]: T_5[K] } : never;
|
|
481
483
|
} | {
|
|
482
484
|
token: string;
|
|
483
485
|
user: {
|
|
@@ -488,19 +490,19 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
488
490
|
emailVerified: boolean;
|
|
489
491
|
name: string;
|
|
490
492
|
image?: string | null | undefined;
|
|
491
|
-
} &
|
|
493
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["user"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"user", Option["plugins"]> extends infer T_6 ? { [K in keyof T_6]: T_6[K] } : never;
|
|
492
494
|
}>;
|
|
493
|
-
readonly signInEmail:
|
|
495
|
+
readonly signInEmail: _$better_call0.StrictEndpoint<"/sign-in/email", {
|
|
494
496
|
method: "POST";
|
|
495
497
|
operationId: string;
|
|
496
|
-
use: Middleware<
|
|
498
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<void>>[];
|
|
497
499
|
cloneRequest: true;
|
|
498
|
-
body:
|
|
499
|
-
email:
|
|
500
|
-
password:
|
|
501
|
-
callbackURL:
|
|
502
|
-
rememberMe:
|
|
503
|
-
},
|
|
500
|
+
body: _$zod.ZodObject<{
|
|
501
|
+
email: _$zod.ZodString;
|
|
502
|
+
password: _$zod.ZodString;
|
|
503
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
504
|
+
rememberMe: _$zod.ZodOptional<_$zod.ZodDefault<_$zod.ZodBoolean>>;
|
|
505
|
+
}, _$zod_v4_core0.$strip>;
|
|
504
506
|
metadata: {
|
|
505
507
|
allowedMediaTypes: string[];
|
|
506
508
|
$Infer: {
|
|
@@ -522,7 +524,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
522
524
|
emailVerified: boolean;
|
|
523
525
|
name: string;
|
|
524
526
|
image?: string | null | undefined;
|
|
525
|
-
} &
|
|
527
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["user"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"user", Option["plugins"]> extends infer T_7 ? { [K in keyof T_7]: T_7[K] } : never;
|
|
526
528
|
};
|
|
527
529
|
};
|
|
528
530
|
openapi: {
|
|
@@ -574,18 +576,18 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
574
576
|
emailVerified: boolean;
|
|
575
577
|
name: string;
|
|
576
578
|
image?: string | null | undefined;
|
|
577
|
-
} &
|
|
579
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["user"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"user", Option["plugins"]> extends infer T_8 ? { [K in keyof T_8]: T_8[K] } : never;
|
|
578
580
|
}>;
|
|
579
|
-
readonly resetPassword:
|
|
581
|
+
readonly resetPassword: _$better_call0.StrictEndpoint<"/reset-password", {
|
|
580
582
|
method: "POST";
|
|
581
583
|
operationId: string;
|
|
582
|
-
query:
|
|
583
|
-
token:
|
|
584
|
-
},
|
|
585
|
-
body:
|
|
586
|
-
newPassword:
|
|
587
|
-
token:
|
|
588
|
-
},
|
|
584
|
+
query: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
585
|
+
token: _$zod.ZodOptional<_$zod.ZodString>;
|
|
586
|
+
}, _$zod_v4_core0.$strip>>;
|
|
587
|
+
body: _$zod.ZodObject<{
|
|
588
|
+
newPassword: _$zod.ZodString;
|
|
589
|
+
token: _$zod.ZodOptional<_$zod.ZodString>;
|
|
590
|
+
}, _$zod_v4_core0.$strip>;
|
|
589
591
|
metadata: {
|
|
590
592
|
openapi: {
|
|
591
593
|
operationId: string;
|
|
@@ -612,11 +614,11 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
612
614
|
}, {
|
|
613
615
|
status: boolean;
|
|
614
616
|
}>;
|
|
615
|
-
readonly verifyPassword:
|
|
617
|
+
readonly verifyPassword: _$better_call0.StrictEndpoint<"/verify-password", {
|
|
616
618
|
method: "POST";
|
|
617
|
-
body:
|
|
618
|
-
password:
|
|
619
|
-
},
|
|
619
|
+
body: _$zod.ZodObject<{
|
|
620
|
+
password: _$zod.ZodString;
|
|
621
|
+
}, _$zod_v4_core0.$strip>;
|
|
620
622
|
metadata: {
|
|
621
623
|
scope: "server";
|
|
622
624
|
openapi: {
|
|
@@ -641,7 +643,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
641
643
|
};
|
|
642
644
|
};
|
|
643
645
|
};
|
|
644
|
-
use: Middleware<
|
|
646
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
645
647
|
session: {
|
|
646
648
|
session: Record<string, any> & {
|
|
647
649
|
id: string;
|
|
@@ -667,14 +669,14 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
667
669
|
}, {
|
|
668
670
|
status: boolean;
|
|
669
671
|
}>;
|
|
670
|
-
readonly verifyEmail:
|
|
672
|
+
readonly verifyEmail: _$better_call0.StrictEndpoint<"/verify-email", {
|
|
671
673
|
method: "GET";
|
|
672
674
|
operationId: string;
|
|
673
|
-
query:
|
|
674
|
-
token:
|
|
675
|
-
callbackURL:
|
|
676
|
-
},
|
|
677
|
-
use: Middleware<
|
|
675
|
+
query: _$zod.ZodObject<{
|
|
676
|
+
token: _$zod.ZodString;
|
|
677
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
678
|
+
}, _$zod_v4_core0.$strip>;
|
|
679
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<void>>[];
|
|
678
680
|
metadata: {
|
|
679
681
|
openapi: {
|
|
680
682
|
description: string;
|
|
@@ -723,14 +725,14 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
723
725
|
}, void | {
|
|
724
726
|
status: boolean;
|
|
725
727
|
}>;
|
|
726
|
-
readonly sendVerificationEmail:
|
|
728
|
+
readonly sendVerificationEmail: _$better_call0.StrictEndpoint<"/send-verification-email", {
|
|
727
729
|
method: "POST";
|
|
728
730
|
operationId: string;
|
|
729
731
|
cloneRequest: true;
|
|
730
|
-
body:
|
|
731
|
-
email:
|
|
732
|
-
callbackURL:
|
|
733
|
-
},
|
|
732
|
+
body: _$zod.ZodObject<{
|
|
733
|
+
email: _$zod.ZodEmail;
|
|
734
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
735
|
+
}, _$zod_v4_core0.$strip>;
|
|
734
736
|
metadata: {
|
|
735
737
|
openapi: {
|
|
736
738
|
operationId: string;
|
|
@@ -799,13 +801,13 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
799
801
|
}, {
|
|
800
802
|
status: boolean;
|
|
801
803
|
}>;
|
|
802
|
-
readonly changeEmail:
|
|
804
|
+
readonly changeEmail: _$better_call0.StrictEndpoint<"/change-email", {
|
|
803
805
|
method: "POST";
|
|
804
|
-
body:
|
|
805
|
-
newEmail:
|
|
806
|
-
callbackURL:
|
|
807
|
-
},
|
|
808
|
-
use: Middleware<
|
|
806
|
+
body: _$zod.ZodObject<{
|
|
807
|
+
newEmail: _$zod.ZodEmail;
|
|
808
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
809
|
+
}, _$zod_v4_core0.$strip>;
|
|
810
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
809
811
|
session: {
|
|
810
812
|
session: Record<string, any> & {
|
|
811
813
|
id: string;
|
|
@@ -865,15 +867,15 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
865
867
|
}, {
|
|
866
868
|
status: boolean;
|
|
867
869
|
}>;
|
|
868
|
-
readonly changePassword:
|
|
870
|
+
readonly changePassword: _$better_call0.StrictEndpoint<"/change-password", {
|
|
869
871
|
method: "POST";
|
|
870
872
|
operationId: string;
|
|
871
|
-
body:
|
|
872
|
-
newPassword:
|
|
873
|
-
currentPassword:
|
|
874
|
-
revokeOtherSessions:
|
|
875
|
-
},
|
|
876
|
-
use: Middleware<
|
|
873
|
+
body: _$zod.ZodObject<{
|
|
874
|
+
newPassword: _$zod.ZodString;
|
|
875
|
+
currentPassword: _$zod.ZodString;
|
|
876
|
+
revokeOtherSessions: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
877
|
+
}, _$zod_v4_core0.$strip>;
|
|
878
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
877
879
|
session: {
|
|
878
880
|
session: Record<string, any> & {
|
|
879
881
|
id: string;
|
|
@@ -981,12 +983,12 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
981
983
|
image?: string | null | undefined;
|
|
982
984
|
};
|
|
983
985
|
}>;
|
|
984
|
-
readonly setPassword:
|
|
986
|
+
readonly setPassword: _$better_call0.StrictEndpoint<string, {
|
|
985
987
|
method: "POST";
|
|
986
|
-
body:
|
|
987
|
-
newPassword:
|
|
988
|
-
},
|
|
989
|
-
use: Middleware<
|
|
988
|
+
body: _$zod.ZodObject<{
|
|
989
|
+
newPassword: _$zod.ZodString;
|
|
990
|
+
}, _$zod_v4_core0.$strip>;
|
|
991
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
990
992
|
session: {
|
|
991
993
|
session: Record<string, any> & {
|
|
992
994
|
id: string;
|
|
@@ -1012,11 +1014,11 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1012
1014
|
}, {
|
|
1013
1015
|
status: boolean;
|
|
1014
1016
|
}>;
|
|
1015
|
-
readonly updateSession:
|
|
1017
|
+
readonly updateSession: _$better_call0.StrictEndpoint<"/update-session", {
|
|
1016
1018
|
method: "POST";
|
|
1017
1019
|
operationId: string;
|
|
1018
|
-
body:
|
|
1019
|
-
use: Middleware<
|
|
1020
|
+
body: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodAny>;
|
|
1021
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
1020
1022
|
session: {
|
|
1021
1023
|
session: Record<string, any> & {
|
|
1022
1024
|
id: string;
|
|
@@ -1078,11 +1080,11 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1078
1080
|
userAgent?: string | null | undefined;
|
|
1079
1081
|
};
|
|
1080
1082
|
}>;
|
|
1081
|
-
readonly updateUser:
|
|
1083
|
+
readonly updateUser: _$better_call0.StrictEndpoint<"/update-user", {
|
|
1082
1084
|
method: "POST";
|
|
1083
1085
|
operationId: string;
|
|
1084
|
-
body:
|
|
1085
|
-
use: Middleware<
|
|
1086
|
+
body: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodAny>;
|
|
1087
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
1086
1088
|
session: {
|
|
1087
1089
|
session: Record<string, any> & {
|
|
1088
1090
|
id: string;
|
|
@@ -1158,9 +1160,9 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1158
1160
|
}, {
|
|
1159
1161
|
status: boolean;
|
|
1160
1162
|
}>;
|
|
1161
|
-
readonly deleteUser:
|
|
1163
|
+
readonly deleteUser: _$better_call0.StrictEndpoint<"/delete-user", {
|
|
1162
1164
|
method: "POST";
|
|
1163
|
-
use: Middleware<
|
|
1165
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
1164
1166
|
session: {
|
|
1165
1167
|
session: Record<string, any> & {
|
|
1166
1168
|
id: string;
|
|
@@ -1183,11 +1185,11 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1183
1185
|
};
|
|
1184
1186
|
};
|
|
1185
1187
|
}>>[];
|
|
1186
|
-
body:
|
|
1187
|
-
callbackURL:
|
|
1188
|
-
password:
|
|
1189
|
-
token:
|
|
1190
|
-
},
|
|
1188
|
+
body: _$zod.ZodObject<{
|
|
1189
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1190
|
+
password: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1191
|
+
token: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1192
|
+
}, _$zod_v4_core0.$strip>;
|
|
1191
1193
|
metadata: {
|
|
1192
1194
|
openapi: {
|
|
1193
1195
|
operationId: string;
|
|
@@ -1245,12 +1247,12 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1245
1247
|
success: boolean;
|
|
1246
1248
|
message: string;
|
|
1247
1249
|
}>;
|
|
1248
|
-
readonly requestPasswordReset:
|
|
1250
|
+
readonly requestPasswordReset: _$better_call0.StrictEndpoint<"/request-password-reset", {
|
|
1249
1251
|
method: "POST";
|
|
1250
|
-
body:
|
|
1251
|
-
email:
|
|
1252
|
-
redirectTo:
|
|
1253
|
-
},
|
|
1252
|
+
body: _$zod.ZodObject<{
|
|
1253
|
+
email: _$zod.ZodEmail;
|
|
1254
|
+
redirectTo: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1255
|
+
}, _$zod_v4_core0.$strip>;
|
|
1254
1256
|
metadata: {
|
|
1255
1257
|
openapi: {
|
|
1256
1258
|
operationId: string;
|
|
@@ -1277,18 +1279,18 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1277
1279
|
};
|
|
1278
1280
|
};
|
|
1279
1281
|
};
|
|
1280
|
-
use: Middleware<
|
|
1282
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<void>>[];
|
|
1281
1283
|
}, {
|
|
1282
1284
|
status: boolean;
|
|
1283
1285
|
message: string;
|
|
1284
1286
|
}>;
|
|
1285
|
-
readonly requestPasswordResetCallback:
|
|
1287
|
+
readonly requestPasswordResetCallback: _$better_call0.StrictEndpoint<"/reset-password/:token", {
|
|
1286
1288
|
method: "GET";
|
|
1287
1289
|
operationId: string;
|
|
1288
|
-
query:
|
|
1289
|
-
callbackURL:
|
|
1290
|
-
},
|
|
1291
|
-
use: Middleware<
|
|
1290
|
+
query: _$zod.ZodObject<{
|
|
1291
|
+
callbackURL: _$zod.ZodString;
|
|
1292
|
+
}, _$zod_v4_core0.$strip>;
|
|
1293
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<void>>[];
|
|
1292
1294
|
metadata: {
|
|
1293
1295
|
openapi: {
|
|
1294
1296
|
operationId: string;
|
|
@@ -1330,10 +1332,10 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1330
1332
|
};
|
|
1331
1333
|
};
|
|
1332
1334
|
}, never>;
|
|
1333
|
-
readonly listSessions:
|
|
1335
|
+
readonly listSessions: _$better_call0.StrictEndpoint<"/list-sessions", {
|
|
1334
1336
|
method: "GET";
|
|
1335
1337
|
operationId: string;
|
|
1336
|
-
use: Middleware<
|
|
1338
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
1337
1339
|
session: {
|
|
1338
1340
|
session: Record<string, any> & {
|
|
1339
1341
|
id: string;
|
|
@@ -1387,13 +1389,13 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1387
1389
|
token: string;
|
|
1388
1390
|
ipAddress?: string | null | undefined;
|
|
1389
1391
|
userAgent?: string | null | undefined;
|
|
1390
|
-
} &
|
|
1391
|
-
readonly revokeSession:
|
|
1392
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["session"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"session", Option["plugins"]> extends infer T_9 ? { [K_1 in keyof T_9]: T_9[K_1] } : never>[]>;
|
|
1393
|
+
readonly revokeSession: _$better_call0.StrictEndpoint<"/revoke-session", {
|
|
1392
1394
|
method: "POST";
|
|
1393
|
-
body:
|
|
1394
|
-
token:
|
|
1395
|
-
},
|
|
1396
|
-
use: Middleware<
|
|
1395
|
+
body: _$zod.ZodObject<{
|
|
1396
|
+
token: _$zod.ZodString;
|
|
1397
|
+
}, _$zod_v4_core0.$strip>;
|
|
1398
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
1397
1399
|
session: {
|
|
1398
1400
|
session: Record<string, any> & {
|
|
1399
1401
|
id: string;
|
|
@@ -1460,9 +1462,9 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1460
1462
|
}, {
|
|
1461
1463
|
status: boolean;
|
|
1462
1464
|
}>;
|
|
1463
|
-
readonly revokeSessions:
|
|
1465
|
+
readonly revokeSessions: _$better_call0.StrictEndpoint<"/revoke-sessions", {
|
|
1464
1466
|
method: "POST";
|
|
1465
|
-
use: Middleware<
|
|
1467
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
1466
1468
|
session: {
|
|
1467
1469
|
session: Record<string, any> & {
|
|
1468
1470
|
id: string;
|
|
@@ -1513,10 +1515,10 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1513
1515
|
}, {
|
|
1514
1516
|
status: boolean;
|
|
1515
1517
|
}>;
|
|
1516
|
-
readonly revokeOtherSessions:
|
|
1518
|
+
readonly revokeOtherSessions: _$better_call0.StrictEndpoint<"/revoke-other-sessions", {
|
|
1517
1519
|
method: "POST";
|
|
1518
1520
|
requireHeaders: true;
|
|
1519
|
-
use: Middleware<
|
|
1521
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
1520
1522
|
session: {
|
|
1521
1523
|
session: Record<string, any> & {
|
|
1522
1524
|
id: string;
|
|
@@ -1566,26 +1568,26 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1566
1568
|
}, {
|
|
1567
1569
|
status: boolean;
|
|
1568
1570
|
}>;
|
|
1569
|
-
readonly linkSocialAccount:
|
|
1571
|
+
readonly linkSocialAccount: _$better_call0.StrictEndpoint<"/link-social", {
|
|
1570
1572
|
method: "POST";
|
|
1571
1573
|
requireHeaders: true;
|
|
1572
|
-
body:
|
|
1573
|
-
callbackURL:
|
|
1574
|
-
provider:
|
|
1575
|
-
idToken:
|
|
1576
|
-
token:
|
|
1577
|
-
nonce:
|
|
1578
|
-
accessToken:
|
|
1579
|
-
refreshToken:
|
|
1580
|
-
scopes:
|
|
1581
|
-
},
|
|
1582
|
-
requestSignUp:
|
|
1583
|
-
scopes:
|
|
1584
|
-
errorCallbackURL:
|
|
1585
|
-
disableRedirect:
|
|
1586
|
-
additionalData:
|
|
1587
|
-
},
|
|
1588
|
-
use: Middleware<
|
|
1574
|
+
body: _$zod.ZodObject<{
|
|
1575
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1576
|
+
provider: _$zod.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, _$zod_v4_core0.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
|
|
1577
|
+
idToken: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
1578
|
+
token: _$zod.ZodString;
|
|
1579
|
+
nonce: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1580
|
+
accessToken: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1581
|
+
refreshToken: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1582
|
+
scopes: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
1583
|
+
}, _$zod_v4_core0.$strip>>;
|
|
1584
|
+
requestSignUp: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1585
|
+
scopes: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
1586
|
+
errorCallbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1587
|
+
disableRedirect: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
1588
|
+
additionalData: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodAny>>;
|
|
1589
|
+
}, _$zod_v4_core0.$strip>;
|
|
1590
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
1589
1591
|
session: {
|
|
1590
1592
|
session: Record<string, any> & {
|
|
1591
1593
|
id: string;
|
|
@@ -1644,9 +1646,9 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1644
1646
|
url: string;
|
|
1645
1647
|
redirect: boolean;
|
|
1646
1648
|
}>;
|
|
1647
|
-
readonly listUserAccounts:
|
|
1649
|
+
readonly listUserAccounts: _$better_call0.StrictEndpoint<"/list-accounts", {
|
|
1648
1650
|
method: "GET";
|
|
1649
|
-
use: Middleware<
|
|
1651
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
1650
1652
|
session: {
|
|
1651
1653
|
session: Record<string, any> & {
|
|
1652
1654
|
id: string;
|
|
@@ -1728,13 +1730,13 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1728
1730
|
providerId: string;
|
|
1729
1731
|
accountId: string;
|
|
1730
1732
|
}[]>;
|
|
1731
|
-
readonly deleteUserCallback:
|
|
1733
|
+
readonly deleteUserCallback: _$better_call0.StrictEndpoint<"/delete-user/callback", {
|
|
1732
1734
|
method: "GET";
|
|
1733
|
-
query:
|
|
1734
|
-
token:
|
|
1735
|
-
callbackURL:
|
|
1736
|
-
},
|
|
1737
|
-
use: Middleware<
|
|
1735
|
+
query: _$zod.ZodObject<{
|
|
1736
|
+
token: _$zod.ZodString;
|
|
1737
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1738
|
+
}, _$zod_v4_core0.$strip>;
|
|
1739
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<void>>[];
|
|
1738
1740
|
metadata: {
|
|
1739
1741
|
openapi: {
|
|
1740
1742
|
description: string;
|
|
@@ -1768,13 +1770,13 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1768
1770
|
success: boolean;
|
|
1769
1771
|
message: string;
|
|
1770
1772
|
}>;
|
|
1771
|
-
readonly unlinkAccount:
|
|
1773
|
+
readonly unlinkAccount: _$better_call0.StrictEndpoint<"/unlink-account", {
|
|
1772
1774
|
method: "POST";
|
|
1773
|
-
body:
|
|
1774
|
-
providerId:
|
|
1775
|
-
accountId:
|
|
1776
|
-
},
|
|
1777
|
-
use: Middleware<
|
|
1775
|
+
body: _$zod.ZodObject<{
|
|
1776
|
+
providerId: _$zod.ZodString;
|
|
1777
|
+
accountId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1778
|
+
}, _$zod_v4_core0.$strip>;
|
|
1779
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
1778
1780
|
session: {
|
|
1779
1781
|
session: Record<string, any> & {
|
|
1780
1782
|
id: string;
|
|
@@ -1822,13 +1824,13 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1822
1824
|
}, {
|
|
1823
1825
|
status: boolean;
|
|
1824
1826
|
}>;
|
|
1825
|
-
readonly refreshToken:
|
|
1827
|
+
readonly refreshToken: _$better_call0.StrictEndpoint<"/refresh-token", {
|
|
1826
1828
|
method: "POST";
|
|
1827
|
-
body:
|
|
1828
|
-
providerId:
|
|
1829
|
-
accountId:
|
|
1830
|
-
userId:
|
|
1831
|
-
},
|
|
1829
|
+
body: _$zod.ZodObject<{
|
|
1830
|
+
providerId: _$zod.ZodString;
|
|
1831
|
+
accountId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1832
|
+
userId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1833
|
+
}, _$zod_v4_core0.$strip>;
|
|
1832
1834
|
metadata: {
|
|
1833
1835
|
openapi: {
|
|
1834
1836
|
description: string;
|
|
@@ -1881,13 +1883,13 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1881
1883
|
providerId: string;
|
|
1882
1884
|
accountId: string;
|
|
1883
1885
|
}>;
|
|
1884
|
-
readonly getAccessToken:
|
|
1886
|
+
readonly getAccessToken: _$better_call0.StrictEndpoint<"/get-access-token", {
|
|
1885
1887
|
method: "POST";
|
|
1886
|
-
body:
|
|
1887
|
-
providerId:
|
|
1888
|
-
accountId:
|
|
1889
|
-
userId:
|
|
1890
|
-
},
|
|
1888
|
+
body: _$zod.ZodObject<{
|
|
1889
|
+
providerId: _$zod.ZodString;
|
|
1890
|
+
accountId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1891
|
+
userId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1892
|
+
}, _$zod_v4_core0.$strip>;
|
|
1891
1893
|
metadata: {
|
|
1892
1894
|
openapi: {
|
|
1893
1895
|
description: string;
|
|
@@ -1929,7 +1931,7 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1929
1931
|
scopes: string[];
|
|
1930
1932
|
idToken: string | undefined;
|
|
1931
1933
|
}>;
|
|
1932
|
-
readonly accountInfo:
|
|
1934
|
+
readonly accountInfo: _$better_call0.StrictEndpoint<"/account-info", {
|
|
1933
1935
|
method: "GET";
|
|
1934
1936
|
metadata: {
|
|
1935
1937
|
openapi: {
|
|
@@ -1978,13 +1980,13 @@ declare function getEndpoints<Option extends BetterAuthOptions>(ctx: Awaitable<A
|
|
|
1978
1980
|
};
|
|
1979
1981
|
};
|
|
1980
1982
|
};
|
|
1981
|
-
query:
|
|
1982
|
-
accountId:
|
|
1983
|
-
providerId:
|
|
1984
|
-
userId:
|
|
1985
|
-
},
|
|
1983
|
+
query: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
1984
|
+
accountId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1985
|
+
providerId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1986
|
+
userId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1987
|
+
}, _$zod_v4_core0.$strip>>;
|
|
1986
1988
|
}, {
|
|
1987
|
-
user:
|
|
1989
|
+
user: _$_better_auth_core_oauth20.OAuth2UserInfo;
|
|
1988
1990
|
data: Record<string, any>;
|
|
1989
1991
|
} | null>;
|
|
1990
1992
|
}, UnionToIntersection<Option["plugins"] extends (infer T_10)[] ? T_10 extends BetterAuthPlugin ? T_10 extends {
|
|
@@ -1999,10 +2001,10 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
1999
2001
|
handler: (request: Request) => Promise<Response>;
|
|
2000
2002
|
endpoints: UnionToIntersection<Option["plugins"] extends (infer T)[] ? T extends BetterAuthPlugin ? T extends {
|
|
2001
2003
|
endpoints: infer E;
|
|
2002
|
-
} ? E : {} : {} : {}> extends
|
|
2004
|
+
} ? E : {} : {} : {}> extends infer T_1 ? T_1 extends UnionToIntersection<Option["plugins"] extends (infer T)[] ? T extends BetterAuthPlugin ? T extends {
|
|
2003
2005
|
endpoints: infer E;
|
|
2004
2006
|
} ? E : {} : {} : {}> ? T_1 extends unknown ? Prettify$1<({
|
|
2005
|
-
readonly ok:
|
|
2007
|
+
readonly ok: _$better_call0.StrictEndpoint<"/ok", {
|
|
2006
2008
|
method: "GET";
|
|
2007
2009
|
metadata: {
|
|
2008
2010
|
openapi: {
|
|
@@ -2032,7 +2034,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2032
2034
|
}, {
|
|
2033
2035
|
ok: boolean;
|
|
2034
2036
|
}>;
|
|
2035
|
-
readonly error:
|
|
2037
|
+
readonly error: _$better_call0.StrictEndpoint<"/error", {
|
|
2036
2038
|
method: "GET";
|
|
2037
2039
|
metadata: {
|
|
2038
2040
|
openapi: {
|
|
@@ -2054,61 +2056,61 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2054
2056
|
scope: "server";
|
|
2055
2057
|
};
|
|
2056
2058
|
}, Response>;
|
|
2057
|
-
readonly signInSocial:
|
|
2059
|
+
readonly signInSocial: _$better_call0.StrictEndpoint<"/sign-in/social", {
|
|
2058
2060
|
method: "POST";
|
|
2059
2061
|
operationId: string;
|
|
2060
|
-
body:
|
|
2061
|
-
callbackURL:
|
|
2062
|
-
newUserCallbackURL:
|
|
2063
|
-
errorCallbackURL:
|
|
2064
|
-
provider:
|
|
2065
|
-
disableRedirect:
|
|
2066
|
-
idToken:
|
|
2067
|
-
token:
|
|
2068
|
-
nonce:
|
|
2069
|
-
accessToken:
|
|
2070
|
-
refreshToken:
|
|
2071
|
-
expiresAt:
|
|
2072
|
-
user:
|
|
2073
|
-
name:
|
|
2074
|
-
firstName:
|
|
2075
|
-
lastName:
|
|
2076
|
-
},
|
|
2077
|
-
email:
|
|
2078
|
-
},
|
|
2079
|
-
},
|
|
2080
|
-
scopes:
|
|
2081
|
-
requestSignUp:
|
|
2082
|
-
loginHint:
|
|
2083
|
-
additionalData:
|
|
2084
|
-
},
|
|
2062
|
+
body: _$zod.ZodObject<{
|
|
2063
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2064
|
+
newUserCallbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2065
|
+
errorCallbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2066
|
+
provider: _$zod.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, _$zod_v4_core0.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
|
|
2067
|
+
disableRedirect: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
2068
|
+
idToken: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2069
|
+
token: _$zod.ZodString;
|
|
2070
|
+
nonce: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2071
|
+
accessToken: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2072
|
+
refreshToken: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2073
|
+
expiresAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2074
|
+
user: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2075
|
+
name: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2076
|
+
firstName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2077
|
+
lastName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2078
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2079
|
+
email: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2080
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2081
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2082
|
+
scopes: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
2083
|
+
requestSignUp: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
2084
|
+
loginHint: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2085
|
+
additionalData: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodAny>>;
|
|
2086
|
+
}, _$zod_v4_core0.$strip>;
|
|
2085
2087
|
metadata: {
|
|
2086
2088
|
$Infer: {
|
|
2087
|
-
body:
|
|
2088
|
-
callbackURL:
|
|
2089
|
-
newUserCallbackURL:
|
|
2090
|
-
errorCallbackURL:
|
|
2091
|
-
provider:
|
|
2092
|
-
disableRedirect:
|
|
2093
|
-
idToken:
|
|
2094
|
-
token:
|
|
2095
|
-
nonce:
|
|
2096
|
-
accessToken:
|
|
2097
|
-
refreshToken:
|
|
2098
|
-
expiresAt:
|
|
2099
|
-
user:
|
|
2100
|
-
name:
|
|
2101
|
-
firstName:
|
|
2102
|
-
lastName:
|
|
2103
|
-
},
|
|
2104
|
-
email:
|
|
2105
|
-
},
|
|
2106
|
-
},
|
|
2107
|
-
scopes:
|
|
2108
|
-
requestSignUp:
|
|
2109
|
-
loginHint:
|
|
2110
|
-
additionalData:
|
|
2111
|
-
},
|
|
2089
|
+
body: _$zod.infer<_$zod.ZodObject<{
|
|
2090
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2091
|
+
newUserCallbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2092
|
+
errorCallbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2093
|
+
provider: _$zod.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, _$zod_v4_core0.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
|
|
2094
|
+
disableRedirect: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
2095
|
+
idToken: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2096
|
+
token: _$zod.ZodString;
|
|
2097
|
+
nonce: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2098
|
+
accessToken: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2099
|
+
refreshToken: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2100
|
+
expiresAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2101
|
+
user: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2102
|
+
name: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2103
|
+
firstName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2104
|
+
lastName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2105
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2106
|
+
email: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2107
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2108
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2109
|
+
scopes: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
2110
|
+
requestSignUp: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
2111
|
+
loginHint: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2112
|
+
additionalData: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodAny>>;
|
|
2113
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2112
2114
|
returned: {
|
|
2113
2115
|
redirect: boolean;
|
|
2114
2116
|
token?: string | undefined;
|
|
@@ -2121,7 +2123,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2121
2123
|
emailVerified: boolean;
|
|
2122
2124
|
name: string;
|
|
2123
2125
|
image?: string | null | undefined;
|
|
2124
|
-
} &
|
|
2126
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["user"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"user", Option["plugins"]> extends infer T_3 ? { [K_1 in keyof T_3]: T_3[K_1] } : never) | undefined;
|
|
2125
2127
|
};
|
|
2126
2128
|
};
|
|
2127
2129
|
openapi: {
|
|
@@ -2173,39 +2175,39 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2173
2175
|
emailVerified: boolean;
|
|
2174
2176
|
name: string;
|
|
2175
2177
|
image?: string | null | undefined;
|
|
2176
|
-
} &
|
|
2178
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["user"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"user", Option["plugins"]> extends infer T_4 ? { [K_1 in keyof T_4]: T_4[K_1] } : never;
|
|
2177
2179
|
}>;
|
|
2178
|
-
readonly callbackOAuth:
|
|
2180
|
+
readonly callbackOAuth: _$better_call0.StrictEndpoint<"/callback/:id", {
|
|
2179
2181
|
method: ("GET" | "POST")[];
|
|
2180
2182
|
operationId: string;
|
|
2181
|
-
body:
|
|
2182
|
-
code:
|
|
2183
|
-
error:
|
|
2184
|
-
device_id:
|
|
2185
|
-
error_description:
|
|
2186
|
-
state:
|
|
2187
|
-
user:
|
|
2188
|
-
},
|
|
2189
|
-
query:
|
|
2190
|
-
code:
|
|
2191
|
-
error:
|
|
2192
|
-
device_id:
|
|
2193
|
-
error_description:
|
|
2194
|
-
state:
|
|
2195
|
-
user:
|
|
2196
|
-
},
|
|
2183
|
+
body: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2184
|
+
code: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2185
|
+
error: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2186
|
+
device_id: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2187
|
+
error_description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2188
|
+
state: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2189
|
+
user: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2190
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2191
|
+
query: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2192
|
+
code: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2193
|
+
error: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2194
|
+
device_id: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2195
|
+
error_description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2196
|
+
state: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2197
|
+
user: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2198
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2197
2199
|
metadata: {
|
|
2198
2200
|
allowedMediaTypes: string[];
|
|
2199
2201
|
scope: "server";
|
|
2200
2202
|
};
|
|
2201
2203
|
}, never>;
|
|
2202
|
-
readonly getSession:
|
|
2204
|
+
readonly getSession: _$better_call0.StrictEndpoint<"/get-session", {
|
|
2203
2205
|
method: ("GET" | "POST")[];
|
|
2204
2206
|
operationId: string;
|
|
2205
|
-
query:
|
|
2206
|
-
disableCookieCache:
|
|
2207
|
-
disableRefresh:
|
|
2208
|
-
},
|
|
2207
|
+
query: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2208
|
+
disableCookieCache: _$zod.ZodOptional<_$zod.ZodCoercedBoolean<unknown>>;
|
|
2209
|
+
disableRefresh: _$zod.ZodOptional<_$zod.ZodCoercedBoolean<unknown>>;
|
|
2210
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2209
2211
|
requireHeaders: true;
|
|
2210
2212
|
metadata: {
|
|
2211
2213
|
openapi: {
|
|
@@ -2244,7 +2246,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2244
2246
|
token: string;
|
|
2245
2247
|
ipAddress?: string | null | undefined;
|
|
2246
2248
|
userAgent?: string | null | undefined;
|
|
2247
|
-
} &
|
|
2249
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["session"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"session", Option["plugins"]> extends infer T_5 ? { [K_2 in keyof T_5]: T_5[K_2] } : never;
|
|
2248
2250
|
user: {
|
|
2249
2251
|
id: string;
|
|
2250
2252
|
createdAt: Date;
|
|
@@ -2253,9 +2255,9 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2253
2255
|
emailVerified: boolean;
|
|
2254
2256
|
name: string;
|
|
2255
2257
|
image?: string | null | undefined;
|
|
2256
|
-
} &
|
|
2258
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["user"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"user", Option["plugins"]> extends infer T_6 ? { [K_1 in keyof T_6]: T_6[K_1] } : never;
|
|
2257
2259
|
} | null>;
|
|
2258
|
-
readonly signOut:
|
|
2260
|
+
readonly signOut: _$better_call0.StrictEndpoint<"/sign-out", {
|
|
2259
2261
|
method: "POST";
|
|
2260
2262
|
operationId: string;
|
|
2261
2263
|
requireHeaders: true;
|
|
@@ -2285,18 +2287,18 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2285
2287
|
}, {
|
|
2286
2288
|
success: boolean;
|
|
2287
2289
|
}>;
|
|
2288
|
-
readonly signUpEmail:
|
|
2290
|
+
readonly signUpEmail: _$better_call0.StrictEndpoint<"/sign-up/email", {
|
|
2289
2291
|
method: "POST";
|
|
2290
2292
|
operationId: string;
|
|
2291
|
-
use: Middleware<
|
|
2292
|
-
body:
|
|
2293
|
-
name:
|
|
2294
|
-
email:
|
|
2295
|
-
password:
|
|
2296
|
-
image:
|
|
2297
|
-
callbackURL:
|
|
2298
|
-
rememberMe:
|
|
2299
|
-
},
|
|
2293
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<void>>[];
|
|
2294
|
+
body: _$zod.ZodIntersection<_$zod.ZodObject<{
|
|
2295
|
+
name: _$zod.ZodString;
|
|
2296
|
+
email: _$zod.ZodEmail;
|
|
2297
|
+
password: _$zod.ZodString;
|
|
2298
|
+
image: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2299
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2300
|
+
rememberMe: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
2301
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodAny>>;
|
|
2300
2302
|
cloneRequest: true;
|
|
2301
2303
|
metadata: {
|
|
2302
2304
|
allowedMediaTypes: string[];
|
|
@@ -2308,7 +2310,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2308
2310
|
image?: string | undefined;
|
|
2309
2311
|
callbackURL?: string | undefined;
|
|
2310
2312
|
rememberMe?: boolean | undefined;
|
|
2311
|
-
} &
|
|
2313
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromPluginsInput<"user", Option["plugins"]> & _$_better_auth_core_db0.InferDBFieldsFromOptionsInput<Option["user"]>;
|
|
2312
2314
|
returned: {
|
|
2313
2315
|
token: string | null;
|
|
2314
2316
|
user: {
|
|
@@ -2319,7 +2321,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2319
2321
|
emailVerified: boolean;
|
|
2320
2322
|
name: string;
|
|
2321
2323
|
image?: string | null | undefined;
|
|
2322
|
-
} &
|
|
2324
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["user"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"user", Option["plugins"]> extends infer T_7 ? { [K_1 in keyof T_7]: T_7[K_1] } : never;
|
|
2323
2325
|
};
|
|
2324
2326
|
};
|
|
2325
2327
|
openapi: {
|
|
@@ -2447,7 +2449,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2447
2449
|
emailVerified: boolean;
|
|
2448
2450
|
name: string;
|
|
2449
2451
|
image?: string | null | undefined;
|
|
2450
|
-
} &
|
|
2452
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["user"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"user", Option["plugins"]> extends infer T_8 ? { [K_1 in keyof T_8]: T_8[K_1] } : never;
|
|
2451
2453
|
} | {
|
|
2452
2454
|
token: string;
|
|
2453
2455
|
user: {
|
|
@@ -2458,19 +2460,19 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2458
2460
|
emailVerified: boolean;
|
|
2459
2461
|
name: string;
|
|
2460
2462
|
image?: string | null | undefined;
|
|
2461
|
-
} &
|
|
2463
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["user"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"user", Option["plugins"]> extends infer T_9 ? { [K_1 in keyof T_9]: T_9[K_1] } : never;
|
|
2462
2464
|
}>;
|
|
2463
|
-
readonly signInEmail:
|
|
2465
|
+
readonly signInEmail: _$better_call0.StrictEndpoint<"/sign-in/email", {
|
|
2464
2466
|
method: "POST";
|
|
2465
2467
|
operationId: string;
|
|
2466
|
-
use: Middleware<
|
|
2468
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<void>>[];
|
|
2467
2469
|
cloneRequest: true;
|
|
2468
|
-
body:
|
|
2469
|
-
email:
|
|
2470
|
-
password:
|
|
2471
|
-
callbackURL:
|
|
2472
|
-
rememberMe:
|
|
2473
|
-
},
|
|
2470
|
+
body: _$zod.ZodObject<{
|
|
2471
|
+
email: _$zod.ZodString;
|
|
2472
|
+
password: _$zod.ZodString;
|
|
2473
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2474
|
+
rememberMe: _$zod.ZodOptional<_$zod.ZodDefault<_$zod.ZodBoolean>>;
|
|
2475
|
+
}, _$zod_v4_core0.$strip>;
|
|
2474
2476
|
metadata: {
|
|
2475
2477
|
allowedMediaTypes: string[];
|
|
2476
2478
|
$Infer: {
|
|
@@ -2492,7 +2494,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2492
2494
|
emailVerified: boolean;
|
|
2493
2495
|
name: string;
|
|
2494
2496
|
image?: string | null | undefined;
|
|
2495
|
-
} &
|
|
2497
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["user"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"user", Option["plugins"]> extends infer T_10 ? { [K_1 in keyof T_10]: T_10[K_1] } : never;
|
|
2496
2498
|
};
|
|
2497
2499
|
};
|
|
2498
2500
|
openapi: {
|
|
@@ -2544,18 +2546,18 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2544
2546
|
emailVerified: boolean;
|
|
2545
2547
|
name: string;
|
|
2546
2548
|
image?: string | null | undefined;
|
|
2547
|
-
} &
|
|
2549
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["user"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"user", Option["plugins"]> extends infer T_11 ? { [K_1 in keyof T_11]: T_11[K_1] } : never;
|
|
2548
2550
|
}>;
|
|
2549
|
-
readonly resetPassword:
|
|
2551
|
+
readonly resetPassword: _$better_call0.StrictEndpoint<"/reset-password", {
|
|
2550
2552
|
method: "POST";
|
|
2551
2553
|
operationId: string;
|
|
2552
|
-
query:
|
|
2553
|
-
token:
|
|
2554
|
-
},
|
|
2555
|
-
body:
|
|
2556
|
-
newPassword:
|
|
2557
|
-
token:
|
|
2558
|
-
},
|
|
2554
|
+
query: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2555
|
+
token: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2556
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2557
|
+
body: _$zod.ZodObject<{
|
|
2558
|
+
newPassword: _$zod.ZodString;
|
|
2559
|
+
token: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2560
|
+
}, _$zod_v4_core0.$strip>;
|
|
2559
2561
|
metadata: {
|
|
2560
2562
|
openapi: {
|
|
2561
2563
|
operationId: string;
|
|
@@ -2582,11 +2584,11 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2582
2584
|
}, {
|
|
2583
2585
|
status: boolean;
|
|
2584
2586
|
}>;
|
|
2585
|
-
readonly verifyPassword:
|
|
2587
|
+
readonly verifyPassword: _$better_call0.StrictEndpoint<"/verify-password", {
|
|
2586
2588
|
method: "POST";
|
|
2587
|
-
body:
|
|
2588
|
-
password:
|
|
2589
|
-
},
|
|
2589
|
+
body: _$zod.ZodObject<{
|
|
2590
|
+
password: _$zod.ZodString;
|
|
2591
|
+
}, _$zod_v4_core0.$strip>;
|
|
2590
2592
|
metadata: {
|
|
2591
2593
|
scope: "server";
|
|
2592
2594
|
openapi: {
|
|
@@ -2611,7 +2613,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2611
2613
|
};
|
|
2612
2614
|
};
|
|
2613
2615
|
};
|
|
2614
|
-
use: Middleware<
|
|
2616
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
2615
2617
|
session: {
|
|
2616
2618
|
session: Record<string, any> & {
|
|
2617
2619
|
id: string;
|
|
@@ -2637,14 +2639,14 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2637
2639
|
}, {
|
|
2638
2640
|
status: boolean;
|
|
2639
2641
|
}>;
|
|
2640
|
-
readonly verifyEmail:
|
|
2642
|
+
readonly verifyEmail: _$better_call0.StrictEndpoint<"/verify-email", {
|
|
2641
2643
|
method: "GET";
|
|
2642
2644
|
operationId: string;
|
|
2643
|
-
query:
|
|
2644
|
-
token:
|
|
2645
|
-
callbackURL:
|
|
2646
|
-
},
|
|
2647
|
-
use: Middleware<
|
|
2645
|
+
query: _$zod.ZodObject<{
|
|
2646
|
+
token: _$zod.ZodString;
|
|
2647
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2648
|
+
}, _$zod_v4_core0.$strip>;
|
|
2649
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<void>>[];
|
|
2648
2650
|
metadata: {
|
|
2649
2651
|
openapi: {
|
|
2650
2652
|
description: string;
|
|
@@ -2693,14 +2695,14 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2693
2695
|
}, void | {
|
|
2694
2696
|
status: boolean;
|
|
2695
2697
|
}>;
|
|
2696
|
-
readonly sendVerificationEmail:
|
|
2698
|
+
readonly sendVerificationEmail: _$better_call0.StrictEndpoint<"/send-verification-email", {
|
|
2697
2699
|
method: "POST";
|
|
2698
2700
|
operationId: string;
|
|
2699
2701
|
cloneRequest: true;
|
|
2700
|
-
body:
|
|
2701
|
-
email:
|
|
2702
|
-
callbackURL:
|
|
2703
|
-
},
|
|
2702
|
+
body: _$zod.ZodObject<{
|
|
2703
|
+
email: _$zod.ZodEmail;
|
|
2704
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2705
|
+
}, _$zod_v4_core0.$strip>;
|
|
2704
2706
|
metadata: {
|
|
2705
2707
|
openapi: {
|
|
2706
2708
|
operationId: string;
|
|
@@ -2769,13 +2771,13 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2769
2771
|
}, {
|
|
2770
2772
|
status: boolean;
|
|
2771
2773
|
}>;
|
|
2772
|
-
readonly changeEmail:
|
|
2774
|
+
readonly changeEmail: _$better_call0.StrictEndpoint<"/change-email", {
|
|
2773
2775
|
method: "POST";
|
|
2774
|
-
body:
|
|
2775
|
-
newEmail:
|
|
2776
|
-
callbackURL:
|
|
2777
|
-
},
|
|
2778
|
-
use: Middleware<
|
|
2776
|
+
body: _$zod.ZodObject<{
|
|
2777
|
+
newEmail: _$zod.ZodEmail;
|
|
2778
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2779
|
+
}, _$zod_v4_core0.$strip>;
|
|
2780
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
2779
2781
|
session: {
|
|
2780
2782
|
session: Record<string, any> & {
|
|
2781
2783
|
id: string;
|
|
@@ -2835,15 +2837,15 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2835
2837
|
}, {
|
|
2836
2838
|
status: boolean;
|
|
2837
2839
|
}>;
|
|
2838
|
-
readonly changePassword:
|
|
2840
|
+
readonly changePassword: _$better_call0.StrictEndpoint<"/change-password", {
|
|
2839
2841
|
method: "POST";
|
|
2840
2842
|
operationId: string;
|
|
2841
|
-
body:
|
|
2842
|
-
newPassword:
|
|
2843
|
-
currentPassword:
|
|
2844
|
-
revokeOtherSessions:
|
|
2845
|
-
},
|
|
2846
|
-
use: Middleware<
|
|
2843
|
+
body: _$zod.ZodObject<{
|
|
2844
|
+
newPassword: _$zod.ZodString;
|
|
2845
|
+
currentPassword: _$zod.ZodString;
|
|
2846
|
+
revokeOtherSessions: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
2847
|
+
}, _$zod_v4_core0.$strip>;
|
|
2848
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
2847
2849
|
session: {
|
|
2848
2850
|
session: Record<string, any> & {
|
|
2849
2851
|
id: string;
|
|
@@ -2951,12 +2953,12 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2951
2953
|
image?: string | null | undefined;
|
|
2952
2954
|
};
|
|
2953
2955
|
}>;
|
|
2954
|
-
readonly setPassword:
|
|
2956
|
+
readonly setPassword: _$better_call0.StrictEndpoint<string, {
|
|
2955
2957
|
method: "POST";
|
|
2956
|
-
body:
|
|
2957
|
-
newPassword:
|
|
2958
|
-
},
|
|
2959
|
-
use: Middleware<
|
|
2958
|
+
body: _$zod.ZodObject<{
|
|
2959
|
+
newPassword: _$zod.ZodString;
|
|
2960
|
+
}, _$zod_v4_core0.$strip>;
|
|
2961
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
2960
2962
|
session: {
|
|
2961
2963
|
session: Record<string, any> & {
|
|
2962
2964
|
id: string;
|
|
@@ -2982,11 +2984,11 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
2982
2984
|
}, {
|
|
2983
2985
|
status: boolean;
|
|
2984
2986
|
}>;
|
|
2985
|
-
readonly updateSession:
|
|
2987
|
+
readonly updateSession: _$better_call0.StrictEndpoint<"/update-session", {
|
|
2986
2988
|
method: "POST";
|
|
2987
2989
|
operationId: string;
|
|
2988
|
-
body:
|
|
2989
|
-
use: Middleware<
|
|
2990
|
+
body: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodAny>;
|
|
2991
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
2990
2992
|
session: {
|
|
2991
2993
|
session: Record<string, any> & {
|
|
2992
2994
|
id: string;
|
|
@@ -3048,11 +3050,11 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3048
3050
|
userAgent?: string | null | undefined;
|
|
3049
3051
|
};
|
|
3050
3052
|
}>;
|
|
3051
|
-
readonly updateUser:
|
|
3053
|
+
readonly updateUser: _$better_call0.StrictEndpoint<"/update-user", {
|
|
3052
3054
|
method: "POST";
|
|
3053
3055
|
operationId: string;
|
|
3054
|
-
body:
|
|
3055
|
-
use: Middleware<
|
|
3056
|
+
body: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodAny>;
|
|
3057
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
3056
3058
|
session: {
|
|
3057
3059
|
session: Record<string, any> & {
|
|
3058
3060
|
id: string;
|
|
@@ -3128,9 +3130,9 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3128
3130
|
}, {
|
|
3129
3131
|
status: boolean;
|
|
3130
3132
|
}>;
|
|
3131
|
-
readonly deleteUser:
|
|
3133
|
+
readonly deleteUser: _$better_call0.StrictEndpoint<"/delete-user", {
|
|
3132
3134
|
method: "POST";
|
|
3133
|
-
use: Middleware<
|
|
3135
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
3134
3136
|
session: {
|
|
3135
3137
|
session: Record<string, any> & {
|
|
3136
3138
|
id: string;
|
|
@@ -3153,11 +3155,11 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3153
3155
|
};
|
|
3154
3156
|
};
|
|
3155
3157
|
}>>[];
|
|
3156
|
-
body:
|
|
3157
|
-
callbackURL:
|
|
3158
|
-
password:
|
|
3159
|
-
token:
|
|
3160
|
-
},
|
|
3158
|
+
body: _$zod.ZodObject<{
|
|
3159
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3160
|
+
password: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3161
|
+
token: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3162
|
+
}, _$zod_v4_core0.$strip>;
|
|
3161
3163
|
metadata: {
|
|
3162
3164
|
openapi: {
|
|
3163
3165
|
operationId: string;
|
|
@@ -3215,12 +3217,12 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3215
3217
|
success: boolean;
|
|
3216
3218
|
message: string;
|
|
3217
3219
|
}>;
|
|
3218
|
-
readonly requestPasswordReset:
|
|
3220
|
+
readonly requestPasswordReset: _$better_call0.StrictEndpoint<"/request-password-reset", {
|
|
3219
3221
|
method: "POST";
|
|
3220
|
-
body:
|
|
3221
|
-
email:
|
|
3222
|
-
redirectTo:
|
|
3223
|
-
},
|
|
3222
|
+
body: _$zod.ZodObject<{
|
|
3223
|
+
email: _$zod.ZodEmail;
|
|
3224
|
+
redirectTo: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3225
|
+
}, _$zod_v4_core0.$strip>;
|
|
3224
3226
|
metadata: {
|
|
3225
3227
|
openapi: {
|
|
3226
3228
|
operationId: string;
|
|
@@ -3247,18 +3249,18 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3247
3249
|
};
|
|
3248
3250
|
};
|
|
3249
3251
|
};
|
|
3250
|
-
use: Middleware<
|
|
3252
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<void>>[];
|
|
3251
3253
|
}, {
|
|
3252
3254
|
status: boolean;
|
|
3253
3255
|
message: string;
|
|
3254
3256
|
}>;
|
|
3255
|
-
readonly requestPasswordResetCallback:
|
|
3257
|
+
readonly requestPasswordResetCallback: _$better_call0.StrictEndpoint<"/reset-password/:token", {
|
|
3256
3258
|
method: "GET";
|
|
3257
3259
|
operationId: string;
|
|
3258
|
-
query:
|
|
3259
|
-
callbackURL:
|
|
3260
|
-
},
|
|
3261
|
-
use: Middleware<
|
|
3260
|
+
query: _$zod.ZodObject<{
|
|
3261
|
+
callbackURL: _$zod.ZodString;
|
|
3262
|
+
}, _$zod_v4_core0.$strip>;
|
|
3263
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<void>>[];
|
|
3262
3264
|
metadata: {
|
|
3263
3265
|
openapi: {
|
|
3264
3266
|
operationId: string;
|
|
@@ -3300,10 +3302,10 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3300
3302
|
};
|
|
3301
3303
|
};
|
|
3302
3304
|
}, never>;
|
|
3303
|
-
readonly listSessions:
|
|
3305
|
+
readonly listSessions: _$better_call0.StrictEndpoint<"/list-sessions", {
|
|
3304
3306
|
method: "GET";
|
|
3305
3307
|
operationId: string;
|
|
3306
|
-
use: Middleware<
|
|
3308
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
3307
3309
|
session: {
|
|
3308
3310
|
session: Record<string, any> & {
|
|
3309
3311
|
id: string;
|
|
@@ -3357,13 +3359,13 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3357
3359
|
token: string;
|
|
3358
3360
|
ipAddress?: string | null | undefined;
|
|
3359
3361
|
userAgent?: string | null | undefined;
|
|
3360
|
-
} &
|
|
3361
|
-
readonly revokeSession:
|
|
3362
|
+
} & _$_better_auth_core_db0.InferDBFieldsFromOptions<Option["session"]> & _$_better_auth_core_db0.InferDBFieldsFromPlugins<"session", Option["plugins"]> extends infer T_12 ? { [K_2 in keyof T_12]: T_12[K_2] } : never>[]>;
|
|
3363
|
+
readonly revokeSession: _$better_call0.StrictEndpoint<"/revoke-session", {
|
|
3362
3364
|
method: "POST";
|
|
3363
|
-
body:
|
|
3364
|
-
token:
|
|
3365
|
-
},
|
|
3366
|
-
use: Middleware<
|
|
3365
|
+
body: _$zod.ZodObject<{
|
|
3366
|
+
token: _$zod.ZodString;
|
|
3367
|
+
}, _$zod_v4_core0.$strip>;
|
|
3368
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
3367
3369
|
session: {
|
|
3368
3370
|
session: Record<string, any> & {
|
|
3369
3371
|
id: string;
|
|
@@ -3430,9 +3432,9 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3430
3432
|
}, {
|
|
3431
3433
|
status: boolean;
|
|
3432
3434
|
}>;
|
|
3433
|
-
readonly revokeSessions:
|
|
3435
|
+
readonly revokeSessions: _$better_call0.StrictEndpoint<"/revoke-sessions", {
|
|
3434
3436
|
method: "POST";
|
|
3435
|
-
use: Middleware<
|
|
3437
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
3436
3438
|
session: {
|
|
3437
3439
|
session: Record<string, any> & {
|
|
3438
3440
|
id: string;
|
|
@@ -3483,10 +3485,10 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3483
3485
|
}, {
|
|
3484
3486
|
status: boolean;
|
|
3485
3487
|
}>;
|
|
3486
|
-
readonly revokeOtherSessions:
|
|
3488
|
+
readonly revokeOtherSessions: _$better_call0.StrictEndpoint<"/revoke-other-sessions", {
|
|
3487
3489
|
method: "POST";
|
|
3488
3490
|
requireHeaders: true;
|
|
3489
|
-
use: Middleware<
|
|
3491
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
3490
3492
|
session: {
|
|
3491
3493
|
session: Record<string, any> & {
|
|
3492
3494
|
id: string;
|
|
@@ -3536,26 +3538,26 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3536
3538
|
}, {
|
|
3537
3539
|
status: boolean;
|
|
3538
3540
|
}>;
|
|
3539
|
-
readonly linkSocialAccount:
|
|
3541
|
+
readonly linkSocialAccount: _$better_call0.StrictEndpoint<"/link-social", {
|
|
3540
3542
|
method: "POST";
|
|
3541
3543
|
requireHeaders: true;
|
|
3542
|
-
body:
|
|
3543
|
-
callbackURL:
|
|
3544
|
-
provider:
|
|
3545
|
-
idToken:
|
|
3546
|
-
token:
|
|
3547
|
-
nonce:
|
|
3548
|
-
accessToken:
|
|
3549
|
-
refreshToken:
|
|
3550
|
-
scopes:
|
|
3551
|
-
},
|
|
3552
|
-
requestSignUp:
|
|
3553
|
-
scopes:
|
|
3554
|
-
errorCallbackURL:
|
|
3555
|
-
disableRedirect:
|
|
3556
|
-
additionalData:
|
|
3557
|
-
},
|
|
3558
|
-
use: Middleware<
|
|
3544
|
+
body: _$zod.ZodObject<{
|
|
3545
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3546
|
+
provider: _$zod.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, _$zod_v4_core0.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
|
|
3547
|
+
idToken: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
3548
|
+
token: _$zod.ZodString;
|
|
3549
|
+
nonce: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3550
|
+
accessToken: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3551
|
+
refreshToken: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3552
|
+
scopes: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
3553
|
+
}, _$zod_v4_core0.$strip>>;
|
|
3554
|
+
requestSignUp: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
3555
|
+
scopes: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
3556
|
+
errorCallbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3557
|
+
disableRedirect: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
3558
|
+
additionalData: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodAny>>;
|
|
3559
|
+
}, _$zod_v4_core0.$strip>;
|
|
3560
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
3559
3561
|
session: {
|
|
3560
3562
|
session: Record<string, any> & {
|
|
3561
3563
|
id: string;
|
|
@@ -3614,9 +3616,9 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3614
3616
|
url: string;
|
|
3615
3617
|
redirect: boolean;
|
|
3616
3618
|
}>;
|
|
3617
|
-
readonly listUserAccounts:
|
|
3619
|
+
readonly listUserAccounts: _$better_call0.StrictEndpoint<"/list-accounts", {
|
|
3618
3620
|
method: "GET";
|
|
3619
|
-
use: Middleware<
|
|
3621
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
3620
3622
|
session: {
|
|
3621
3623
|
session: Record<string, any> & {
|
|
3622
3624
|
id: string;
|
|
@@ -3698,13 +3700,13 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3698
3700
|
providerId: string;
|
|
3699
3701
|
accountId: string;
|
|
3700
3702
|
}[]>;
|
|
3701
|
-
readonly deleteUserCallback:
|
|
3703
|
+
readonly deleteUserCallback: _$better_call0.StrictEndpoint<"/delete-user/callback", {
|
|
3702
3704
|
method: "GET";
|
|
3703
|
-
query:
|
|
3704
|
-
token:
|
|
3705
|
-
callbackURL:
|
|
3706
|
-
},
|
|
3707
|
-
use: Middleware<
|
|
3705
|
+
query: _$zod.ZodObject<{
|
|
3706
|
+
token: _$zod.ZodString;
|
|
3707
|
+
callbackURL: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3708
|
+
}, _$zod_v4_core0.$strip>;
|
|
3709
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<void>>[];
|
|
3708
3710
|
metadata: {
|
|
3709
3711
|
openapi: {
|
|
3710
3712
|
description: string;
|
|
@@ -3738,13 +3740,13 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3738
3740
|
success: boolean;
|
|
3739
3741
|
message: string;
|
|
3740
3742
|
}>;
|
|
3741
|
-
readonly unlinkAccount:
|
|
3743
|
+
readonly unlinkAccount: _$better_call0.StrictEndpoint<"/unlink-account", {
|
|
3742
3744
|
method: "POST";
|
|
3743
|
-
body:
|
|
3744
|
-
providerId:
|
|
3745
|
-
accountId:
|
|
3746
|
-
},
|
|
3747
|
-
use: Middleware<
|
|
3745
|
+
body: _$zod.ZodObject<{
|
|
3746
|
+
providerId: _$zod.ZodString;
|
|
3747
|
+
accountId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3748
|
+
}, _$zod_v4_core0.$strip>;
|
|
3749
|
+
use: Middleware<_$better_call0.MiddlewareOptions, (inputContext: _$better_call0.MiddlewareInputContext<_$better_call0.MiddlewareOptions>) => Promise<{
|
|
3748
3750
|
session: {
|
|
3749
3751
|
session: Record<string, any> & {
|
|
3750
3752
|
id: string;
|
|
@@ -3792,13 +3794,13 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3792
3794
|
}, {
|
|
3793
3795
|
status: boolean;
|
|
3794
3796
|
}>;
|
|
3795
|
-
readonly refreshToken:
|
|
3797
|
+
readonly refreshToken: _$better_call0.StrictEndpoint<"/refresh-token", {
|
|
3796
3798
|
method: "POST";
|
|
3797
|
-
body:
|
|
3798
|
-
providerId:
|
|
3799
|
-
accountId:
|
|
3800
|
-
userId:
|
|
3801
|
-
},
|
|
3799
|
+
body: _$zod.ZodObject<{
|
|
3800
|
+
providerId: _$zod.ZodString;
|
|
3801
|
+
accountId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3802
|
+
userId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3803
|
+
}, _$zod_v4_core0.$strip>;
|
|
3802
3804
|
metadata: {
|
|
3803
3805
|
openapi: {
|
|
3804
3806
|
description: string;
|
|
@@ -3851,13 +3853,13 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3851
3853
|
providerId: string;
|
|
3852
3854
|
accountId: string;
|
|
3853
3855
|
}>;
|
|
3854
|
-
readonly getAccessToken:
|
|
3856
|
+
readonly getAccessToken: _$better_call0.StrictEndpoint<"/get-access-token", {
|
|
3855
3857
|
method: "POST";
|
|
3856
|
-
body:
|
|
3857
|
-
providerId:
|
|
3858
|
-
accountId:
|
|
3859
|
-
userId:
|
|
3860
|
-
},
|
|
3858
|
+
body: _$zod.ZodObject<{
|
|
3859
|
+
providerId: _$zod.ZodString;
|
|
3860
|
+
accountId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3861
|
+
userId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3862
|
+
}, _$zod_v4_core0.$strip>;
|
|
3861
3863
|
metadata: {
|
|
3862
3864
|
openapi: {
|
|
3863
3865
|
description: string;
|
|
@@ -3899,7 +3901,7 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3899
3901
|
scopes: string[];
|
|
3900
3902
|
idToken: string | undefined;
|
|
3901
3903
|
}>;
|
|
3902
|
-
readonly accountInfo:
|
|
3904
|
+
readonly accountInfo: _$better_call0.StrictEndpoint<"/account-info", {
|
|
3903
3905
|
method: "GET";
|
|
3904
3906
|
metadata: {
|
|
3905
3907
|
openapi: {
|
|
@@ -3948,16 +3950,16 @@ declare const router: <Option extends BetterAuthOptions>(ctx: AuthContext, optio
|
|
|
3948
3950
|
};
|
|
3949
3951
|
};
|
|
3950
3952
|
};
|
|
3951
|
-
query:
|
|
3952
|
-
accountId:
|
|
3953
|
-
providerId:
|
|
3954
|
-
userId:
|
|
3955
|
-
},
|
|
3953
|
+
query: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
3954
|
+
accountId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3955
|
+
providerId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3956
|
+
userId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3957
|
+
}, _$zod_v4_core0.$strip>>;
|
|
3956
3958
|
}, {
|
|
3957
|
-
user:
|
|
3959
|
+
user: _$_better_auth_core_oauth20.OAuth2UserInfo;
|
|
3958
3960
|
data: Record<string, any>;
|
|
3959
3961
|
} | null>;
|
|
3960
|
-
} extends
|
|
3962
|
+
} extends infer T_2 ? { [K in keyof T_2 as K extends keyof T_1 ? never : K]: T_2[K] } : never) & T_1> : never : never : never;
|
|
3961
3963
|
};
|
|
3962
3964
|
//#endregion
|
|
3963
3965
|
export { APIError, type AuthEndpoint, type AuthMiddleware, type DispatchContext, accountInfo, callbackOAuth, changeEmail, changePassword, checkEndpointConflicts, createAuthEndpoint, createAuthMiddleware, createEmailVerificationToken, deleteUser, deleteUserCallback, dispatchAuthEndpoint, error, formCsrfMiddleware, freshSessionMiddleware, getAccessToken, getAuthoritativeSessionFromCtx, getEndpoints, getIp, getOAuthState, getSession, getSessionFromCtx, getShouldSkipSessionRefresh, isAPIError, isStateful, linkSocialAccount, listSessions, listUserAccounts, ok, optionsMiddleware, originCheck, originCheckMiddleware, refreshToken, requestOnlySessionMiddleware, requestPasswordReset, requestPasswordResetCallback, requireOrgRole, requireResourceOwnership, resetPassword, revokeOtherSessions, revokeSession, revokeSessions, router, sendVerificationEmail, sendVerificationEmailFn, sensitiveSessionMiddleware, sessionMiddleware, setPassword, setShouldSkipSessionRefresh, signInEmail, signInSocial, signOut, signUpEmail, unlinkAccount, updateSession, updateUser, verifyEmail, verifyPassword };
|