@protobase/server 0.33.4 → 0.34.1
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/assistant/query-tools.js +1 -1
- package/dist/auth/jwt.d.ts +15 -1
- package/dist/auth/jwt.js +41 -5
- package/dist/better-auth/authenticator.d.ts +16 -1
- package/dist/better-auth/authenticator.js +41 -24
- package/dist/better-auth/create-auth.d.ts +3063 -363
- package/dist/better-auth/create-auth.js +39 -20
- package/dist/better-auth/mcp/connected-apps.d.ts +13 -0
- package/dist/better-auth/mcp/connected-apps.js +86 -0
- package/dist/better-auth/mcp/consent-check.js +38 -0
- package/dist/better-auth/mcp/consent-reference.js +16 -0
- package/dist/better-auth/mcp/discovery-routes.js +19 -0
- package/dist/better-auth/mcp/grant-reference.js +25 -0
- package/dist/better-auth/mcp/mcp-plugins.d.ts +13 -0
- package/dist/better-auth/mcp/mcp-plugins.js +107 -0
- package/dist/better-auth/mcp/mcp-token-claims.js +39 -0
- package/dist/better-auth/mcp/request-defaults.js +57 -0
- package/dist/better-auth/mcp/revoke-grants.js +75 -0
- package/dist/better-auth/mcp/setup-gate.js +38 -0
- package/dist/better-auth/mcp/signed-query-guard.js +29 -0
- package/dist/better-auth/new-account-password.d.ts +6 -0
- package/dist/better-auth/new-account-password.js +6 -3
- package/dist/better-auth/origins.d.ts +7 -0
- package/dist/better-auth/origins.js +8 -1
- package/dist/better-auth/password-reset.js +4 -3
- package/dist/better-auth/policy-plugin.js +1 -24
- package/dist/better-auth/sign-in-enforcement.js +6 -1
- package/dist/better-auth/sign-in-setup.js +38 -0
- package/dist/better-auth/sign-up/sign-up-plugin.js +1 -1
- package/dist/better-auth/snake-case-names.js +102 -1
- package/dist/better-auth/staff-checks.js +9 -2
- package/dist/better-auth/staff-plugin.js +9 -2
- package/dist/better-auth/status-route.js +2 -1
- package/dist/better-auth/token-claims.js +19 -0
- package/dist/better-auth/users.d.ts +4 -1
- package/dist/better-auth/users.js +6 -1
- package/dist/check-roles.js +1 -1
- package/dist/create-admin.js +8 -0
- package/dist/deps.d.ts +1 -0
- package/dist/encryption/apply.d.ts +40 -0
- package/dist/encryption/apply.js +99 -0
- package/dist/encryption/binding.d.ts +2 -0
- package/dist/encryption/binding.js +53 -0
- package/dist/encryption/capture-off.js +12 -0
- package/dist/encryption/cascading-keys.d.ts +9 -0
- package/dist/encryption/cascading-keys.js +21 -0
- package/dist/encryption/envelope-open.d.ts +5 -0
- package/dist/encryption/envelope-open.js +57 -0
- package/dist/encryption/envelope-seal.js +38 -0
- package/dist/encryption/keyring.js +60 -0
- package/dist/encryption/mask-stored.js +16 -0
- package/dist/encryption/rebind-check.js +28 -0
- package/dist/encryption/remnants.js +53 -0
- package/dist/encryption/runtime.d.ts +1 -0
- package/dist/encryption/runtime.js +18 -0
- package/dist/encryption/scan.d.ts +4 -0
- package/dist/encryption/scan.js +61 -0
- package/dist/encryption/seal-values.js +30 -0
- package/dist/encryption/shared-columns.js +19 -0
- package/dist/encryption/status.d.ts +39 -0
- package/dist/encryption/status.js +92 -0
- package/dist/encryption/stored-value.js +16 -0
- package/dist/encryption/tools.d.ts +26 -0
- package/dist/encryption/tools.js +34 -0
- package/dist/forms/check-forms.js +1 -1
- package/dist/gotrue/user-routes.js +6 -0
- package/dist/index.d.ts +10 -5
- package/dist/index.js +4 -2
- package/dist/records.js +3 -3
- package/dist/request-access.js +9 -5
- package/dist/rest/encrypted-columns.js +37 -0
- package/dist/rest/table-routes.js +25 -13
- package/dist/reveal-service.js +17 -3
- package/dist/types.d.ts +5 -0
- package/dist/validate-body.js +4 -2
- package/dist/webhooks/subscriber-view.js +14 -1
- package/dist/write-pipeline.js +14 -2
- package/dist/write-shared.js +7 -3
- package/dist/write-update.js +12 -2
- package/package.json +11 -7
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { StaffSignIn } from "./staff-log.js";
|
|
2
|
+
import { RoleDefinitions, RolesInput } from "./organizations/role-definitions.js";
|
|
3
|
+
import { ConnectedApp } from "./mcp/connected-apps.js";
|
|
2
4
|
import { Mailer } from "../mail/smtp-mailer.js";
|
|
3
5
|
import { OperatorProvider } from "./operator-provider.js";
|
|
4
|
-
import { RoleDefinitions, RolesInput } from "./organizations/role-definitions.js";
|
|
5
6
|
import { OrganizationRole } from "./organizations/store.js";
|
|
7
|
+
import { SignInPolicy } from "./sign-in-policy.js";
|
|
8
|
+
import { McpAuthOptions } from "./mcp/mcp-plugins.js";
|
|
6
9
|
import { OrganizationsOptions, ResolvedOrganizations } from "./organizations/options.js";
|
|
7
10
|
import { PlatformSignIn } from "./platform-sign-in.js";
|
|
8
|
-
import { SignInPolicy } from "./sign-in-policy.js";
|
|
9
11
|
import { SsoOptions } from "./saml-sign-in.js";
|
|
10
12
|
import { signUpPaths } from "./sign-up/sign-up-plugin.js";
|
|
11
13
|
import { PasswordHash } from "./password-hashes.js";
|
|
@@ -132,6 +134,14 @@ export type CreateAuthOptions = {
|
|
|
132
134
|
* are held globally (on the user) or per membership. Off by default: the app works as one organization.
|
|
133
135
|
*/
|
|
134
136
|
organizations?: OrganizationsOptions;
|
|
137
|
+
/**
|
|
138
|
+
* Turns on an OAuth provider for MCP clients: a client such as an AI assistant or code editor that speaks MCP registers
|
|
139
|
+
* itself, the person signs in on the app's own pages and allows it on the connect page, and the client gets tokens
|
|
140
|
+
* for the MCP endpoint only, with the role and organization the person worked in when they allowed it. `true` for the
|
|
141
|
+
* defaults, or the endpoint's `path` (default `/api/mcp`) and the `connectPage` (default `/-/connect`). Needs an
|
|
142
|
+
* https `baseURL`, or localhost, and the OAuth tables from `protobase auth migration`. Off by default.
|
|
143
|
+
*/
|
|
144
|
+
mcp?: true | McpAuthOptions;
|
|
135
145
|
};
|
|
136
146
|
type UserCreateHooks = NonNullable<NonNullable<NonNullable<BetterAuthOptions['databaseHooks']>['user']>['create']>;
|
|
137
147
|
/** Better Auth's `databaseHooks.user.create.after`: the created user (with its `role`) and the request context, `null` outside a request. */
|
|
@@ -270,18 +280,18 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
270
280
|
hooks: {
|
|
271
281
|
after: {
|
|
272
282
|
matcher(context: import("better-auth").HookEndpointContext): boolean;
|
|
273
|
-
handler: import("better-
|
|
283
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<import("better-auth/plugins").SessionWithImpersonatedBy[] | undefined>>;
|
|
274
284
|
}[];
|
|
275
285
|
};
|
|
276
286
|
endpoints: {
|
|
277
|
-
setRole: import("better-
|
|
287
|
+
setRole: import("better-call").StrictEndpoint<"/admin/set-role", {
|
|
278
288
|
method: "POST";
|
|
279
289
|
body: import("zod").ZodObject<{
|
|
280
290
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
281
291
|
role: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>;
|
|
282
292
|
}, import("zod/v4/core").$strip>;
|
|
283
293
|
requireHeaders: true;
|
|
284
|
-
use: import("better-
|
|
294
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
285
295
|
session: {
|
|
286
296
|
user: import("better-auth/plugins").UserWithRole;
|
|
287
297
|
session: {
|
|
@@ -329,12 +339,12 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
329
339
|
}, {
|
|
330
340
|
user: import("better-auth/plugins").UserWithRole;
|
|
331
341
|
}>;
|
|
332
|
-
getUser: import("better-
|
|
342
|
+
getUser: import("better-call").StrictEndpoint<"/admin/get-user", {
|
|
333
343
|
method: "GET";
|
|
334
344
|
query: import("zod").ZodObject<{
|
|
335
345
|
id: import("zod").ZodString;
|
|
336
346
|
}, import("zod/v4/core").$strip>;
|
|
337
|
-
use: import("better-
|
|
347
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
338
348
|
session: {
|
|
339
349
|
user: import("better-auth/plugins").UserWithRole;
|
|
340
350
|
session: {
|
|
@@ -345,7 +355,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
345
355
|
expiresAt: Date;
|
|
346
356
|
token: string;
|
|
347
357
|
ipAddress?: string | null | undefined;
|
|
348
|
-
userAgent
|
|
358
|
+
userAgent?: string | null | undefined;
|
|
349
359
|
};
|
|
350
360
|
};
|
|
351
361
|
}>>[];
|
|
@@ -374,7 +384,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
374
384
|
};
|
|
375
385
|
};
|
|
376
386
|
}, import("better-auth/plugins").UserWithRole>;
|
|
377
|
-
createUser: import("better-
|
|
387
|
+
createUser: import("better-call").StrictEndpoint<"/admin/create-user", {
|
|
378
388
|
method: "POST";
|
|
379
389
|
body: import("zod").ZodObject<{
|
|
380
390
|
email: import("zod").ZodString;
|
|
@@ -419,13 +429,13 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
419
429
|
}, {
|
|
420
430
|
user: import("better-auth/plugins").UserWithRole;
|
|
421
431
|
}>;
|
|
422
|
-
adminUpdateUser: import("better-
|
|
432
|
+
adminUpdateUser: import("better-call").StrictEndpoint<"/admin/update-user", {
|
|
423
433
|
method: "POST";
|
|
424
434
|
body: import("zod").ZodObject<{
|
|
425
435
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
426
436
|
data: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
|
|
427
437
|
}, import("zod/v4/core").$strip>;
|
|
428
|
-
use: import("better-
|
|
438
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
429
439
|
session: {
|
|
430
440
|
user: import("better-auth/plugins").UserWithRole;
|
|
431
441
|
session: {
|
|
@@ -465,9 +475,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
465
475
|
};
|
|
466
476
|
};
|
|
467
477
|
}, import("better-auth/plugins").UserWithRole>;
|
|
468
|
-
listUsers: import("better-
|
|
478
|
+
listUsers: import("better-call").StrictEndpoint<"/admin/list-users", {
|
|
469
479
|
method: "GET";
|
|
470
|
-
use: import("better-
|
|
480
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
471
481
|
session: {
|
|
472
482
|
user: import("better-auth/plugins").UserWithRole;
|
|
473
483
|
session: {
|
|
@@ -557,9 +567,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
557
567
|
users: import("better-auth/plugins").UserWithRole[];
|
|
558
568
|
total: number;
|
|
559
569
|
}>;
|
|
560
|
-
listUserSessions: import("better-
|
|
570
|
+
listUserSessions: import("better-call").StrictEndpoint<"/admin/list-user-sessions", {
|
|
561
571
|
method: "POST";
|
|
562
|
-
use: import("better-
|
|
572
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
563
573
|
session: {
|
|
564
574
|
user: import("better-auth/plugins").UserWithRole;
|
|
565
575
|
session: {
|
|
@@ -607,12 +617,12 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
607
617
|
}, {
|
|
608
618
|
sessions: import("better-auth/plugins").SessionWithImpersonatedBy[];
|
|
609
619
|
}>;
|
|
610
|
-
unbanUser: import("better-
|
|
620
|
+
unbanUser: import("better-call").StrictEndpoint<"/admin/unban-user", {
|
|
611
621
|
method: "POST";
|
|
612
622
|
body: import("zod").ZodObject<{
|
|
613
623
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
614
624
|
}, import("zod/v4/core").$strip>;
|
|
615
|
-
use: import("better-
|
|
625
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
616
626
|
session: {
|
|
617
627
|
user: import("better-auth/plugins").UserWithRole;
|
|
618
628
|
session: {
|
|
@@ -654,14 +664,14 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
654
664
|
}, {
|
|
655
665
|
user: import("better-auth/plugins").UserWithRole;
|
|
656
666
|
}>;
|
|
657
|
-
banUser: import("better-
|
|
667
|
+
banUser: import("better-call").StrictEndpoint<"/admin/ban-user", {
|
|
658
668
|
method: "POST";
|
|
659
669
|
body: import("zod").ZodObject<{
|
|
660
670
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
661
671
|
banReason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
662
672
|
banExpiresIn: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
663
673
|
}, import("zod/v4/core").$strip>;
|
|
664
|
-
use: import("better-
|
|
674
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
665
675
|
session: {
|
|
666
676
|
user: import("better-auth/plugins").UserWithRole;
|
|
667
677
|
session: {
|
|
@@ -703,12 +713,12 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
703
713
|
}, {
|
|
704
714
|
user: import("better-auth/plugins").UserWithRole;
|
|
705
715
|
}>;
|
|
706
|
-
impersonateUser: import("better-
|
|
716
|
+
impersonateUser: import("better-call").StrictEndpoint<"/admin/impersonate-user", {
|
|
707
717
|
method: "POST";
|
|
708
718
|
body: import("zod").ZodObject<{
|
|
709
719
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
710
720
|
}, import("zod/v4/core").$strip>;
|
|
711
|
-
use: import("better-
|
|
721
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
712
722
|
session: {
|
|
713
723
|
user: import("better-auth/plugins").UserWithRole;
|
|
714
724
|
session: {
|
|
@@ -763,7 +773,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
763
773
|
};
|
|
764
774
|
user: import("better-auth/plugins").UserWithRole;
|
|
765
775
|
}>;
|
|
766
|
-
stopImpersonating: import("better-
|
|
776
|
+
stopImpersonating: import("better-call").StrictEndpoint<"/admin/stop-impersonating", {
|
|
767
777
|
method: "POST";
|
|
768
778
|
requireHeaders: true;
|
|
769
779
|
}, {
|
|
@@ -787,12 +797,12 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
787
797
|
image?: string | null | undefined;
|
|
788
798
|
} & Record<string, any>;
|
|
789
799
|
}>;
|
|
790
|
-
revokeUserSession: import("better-
|
|
800
|
+
revokeUserSession: import("better-call").StrictEndpoint<"/admin/revoke-user-session", {
|
|
791
801
|
method: "POST";
|
|
792
802
|
body: import("zod").ZodObject<{
|
|
793
803
|
sessionToken: import("zod").ZodString;
|
|
794
804
|
}, import("zod/v4/core").$strip>;
|
|
795
|
-
use: import("better-
|
|
805
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
796
806
|
session: {
|
|
797
807
|
user: import("better-auth/plugins").UserWithRole;
|
|
798
808
|
session: {
|
|
@@ -834,12 +844,12 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
834
844
|
}, {
|
|
835
845
|
success: boolean;
|
|
836
846
|
}>;
|
|
837
|
-
revokeUserSessions: import("better-
|
|
847
|
+
revokeUserSessions: import("better-call").StrictEndpoint<"/admin/revoke-user-sessions", {
|
|
838
848
|
method: "POST";
|
|
839
849
|
body: import("zod").ZodObject<{
|
|
840
850
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
841
851
|
}, import("zod/v4/core").$strip>;
|
|
842
|
-
use: import("better-
|
|
852
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
843
853
|
session: {
|
|
844
854
|
user: import("better-auth/plugins").UserWithRole;
|
|
845
855
|
session: {
|
|
@@ -881,12 +891,12 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
881
891
|
}, {
|
|
882
892
|
success: boolean;
|
|
883
893
|
}>;
|
|
884
|
-
removeUser: import("better-
|
|
894
|
+
removeUser: import("better-call").StrictEndpoint<"/admin/remove-user", {
|
|
885
895
|
method: "POST";
|
|
886
896
|
body: import("zod").ZodObject<{
|
|
887
897
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
888
898
|
}, import("zod/v4/core").$strip>;
|
|
889
|
-
use: import("better-
|
|
899
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
890
900
|
session: {
|
|
891
901
|
user: import("better-auth/plugins").UserWithRole;
|
|
892
902
|
session: {
|
|
@@ -928,13 +938,13 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
928
938
|
}, {
|
|
929
939
|
success: boolean;
|
|
930
940
|
}>;
|
|
931
|
-
setUserPassword: import("better-
|
|
941
|
+
setUserPassword: import("better-call").StrictEndpoint<"/admin/set-user-password", {
|
|
932
942
|
method: "POST";
|
|
933
943
|
body: import("zod").ZodObject<{
|
|
934
944
|
newPassword: import("zod").ZodString;
|
|
935
945
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
936
946
|
}, import("zod/v4/core").$strip>;
|
|
937
|
-
use: import("better-
|
|
947
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
938
948
|
session: {
|
|
939
949
|
user: import("better-auth/plugins").UserWithRole;
|
|
940
950
|
session: {
|
|
@@ -976,7 +986,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
976
986
|
}, {
|
|
977
987
|
status: boolean;
|
|
978
988
|
}>;
|
|
979
|
-
userHasPermission: import("better-
|
|
989
|
+
userHasPermission: import("better-call").StrictEndpoint<"/admin/has-permission", {
|
|
980
990
|
method: "POST";
|
|
981
991
|
body: import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
982
992
|
userId: import("zod").ZodOptional<import("zod").ZodCoercedString<unknown>>;
|
|
@@ -1163,30 +1173,30 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
1163
1173
|
user: import("better-auth").User & Record<string, any>;
|
|
1164
1174
|
session: import("better-auth").Session & Record<string, any>;
|
|
1165
1175
|
}) => Promise<{
|
|
1166
|
-
role: any;
|
|
1167
|
-
email: string;
|
|
1168
1176
|
sid: string;
|
|
1177
|
+
role: string | null | undefined;
|
|
1178
|
+
email: string;
|
|
1169
1179
|
} | {
|
|
1180
|
+
sid: string;
|
|
1170
1181
|
org?: undefined;
|
|
1171
1182
|
org_role?: undefined;
|
|
1172
1183
|
app_roles?: undefined;
|
|
1173
|
-
role:
|
|
1184
|
+
role: string | null | undefined;
|
|
1174
1185
|
email: string;
|
|
1175
|
-
sid: string;
|
|
1176
1186
|
} | {
|
|
1187
|
+
sid: string;
|
|
1177
1188
|
org: string;
|
|
1178
1189
|
org_role: OrganizationRole;
|
|
1179
1190
|
app_roles: string[];
|
|
1180
|
-
role:
|
|
1191
|
+
role: string | null | undefined;
|
|
1181
1192
|
email: string;
|
|
1182
|
-
sid: string;
|
|
1183
1193
|
} | {
|
|
1194
|
+
sid: string;
|
|
1184
1195
|
org: string;
|
|
1185
1196
|
org_role?: undefined;
|
|
1186
1197
|
app_roles?: undefined;
|
|
1187
|
-
role:
|
|
1198
|
+
role: string | null | undefined;
|
|
1188
1199
|
email: string;
|
|
1189
|
-
sid: string;
|
|
1190
1200
|
}>;
|
|
1191
1201
|
};
|
|
1192
1202
|
disableSettingJwtHeader: true;
|
|
@@ -1206,7 +1216,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
1206
1216
|
};
|
|
1207
1217
|
} | undefined;
|
|
1208
1218
|
endpoints: {
|
|
1209
|
-
getJwks: import("better-
|
|
1219
|
+
getJwks: import("better-call").StrictEndpoint<string, {
|
|
1210
1220
|
method: "GET";
|
|
1211
1221
|
metadata: {
|
|
1212
1222
|
openapi: {
|
|
@@ -1283,10 +1293,10 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
1283
1293
|
};
|
|
1284
1294
|
};
|
|
1285
1295
|
}, import("jose").JSONWebKeySet>;
|
|
1286
|
-
getToken: import("better-
|
|
1296
|
+
getToken: import("better-call").StrictEndpoint<"/token", {
|
|
1287
1297
|
method: "GET";
|
|
1288
1298
|
requireHeaders: true;
|
|
1289
|
-
use: import("better-
|
|
1299
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1290
1300
|
session: {
|
|
1291
1301
|
session: Record<string, any> & {
|
|
1292
1302
|
id: string;
|
|
@@ -1335,7 +1345,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
1335
1345
|
}, {
|
|
1336
1346
|
token: string;
|
|
1337
1347
|
}>;
|
|
1338
|
-
signJWT: import("better-
|
|
1348
|
+
signJWT: import("better-call").StrictEndpoint<string, {
|
|
1339
1349
|
method: "POST";
|
|
1340
1350
|
metadata: {
|
|
1341
1351
|
$Infer: {
|
|
@@ -1352,7 +1362,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
1352
1362
|
}, {
|
|
1353
1363
|
token: string;
|
|
1354
1364
|
}>;
|
|
1355
|
-
verifyJWT: import("better-
|
|
1365
|
+
verifyJWT: import("better-call").StrictEndpoint<string, {
|
|
1356
1366
|
method: "POST";
|
|
1357
1367
|
metadata: {
|
|
1358
1368
|
$Infer: {
|
|
@@ -1380,7 +1390,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
1380
1390
|
hooks: {
|
|
1381
1391
|
after: {
|
|
1382
1392
|
matcher(context: import("better-auth").HookEndpointContext): boolean;
|
|
1383
|
-
handler: import("better-
|
|
1393
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>;
|
|
1384
1394
|
}[];
|
|
1385
1395
|
};
|
|
1386
1396
|
schema: {
|
|
@@ -1417,7 +1427,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
1417
1427
|
hooks: {
|
|
1418
1428
|
after: {
|
|
1419
1429
|
matcher: (context: Parameters<(context: import("better-auth").HookEndpointContext) => boolean>[0]) => boolean;
|
|
1420
|
-
handler: import("better-
|
|
1430
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1421
1431
|
twoFactorRedirect: boolean;
|
|
1422
1432
|
twoFactorMethods: string[];
|
|
1423
1433
|
} | undefined>>;
|
|
@@ -1426,7 +1436,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
1426
1436
|
id: "two-factor";
|
|
1427
1437
|
version: string;
|
|
1428
1438
|
endpoints: {
|
|
1429
|
-
enableTwoFactor: import("better-
|
|
1439
|
+
enableTwoFactor: import("better-call").StrictEndpoint<"/two-factor/enable", {
|
|
1430
1440
|
method: "POST";
|
|
1431
1441
|
body: import("zod").ZodObject<{
|
|
1432
1442
|
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1443,7 +1453,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
1443
1453
|
}>>;
|
|
1444
1454
|
issuer: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1445
1455
|
}, import("zod/v4/core").$strip>;
|
|
1446
|
-
use: import("better-
|
|
1456
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1447
1457
|
session: {
|
|
1448
1458
|
session: Record<string, any> & {
|
|
1449
1459
|
id: string;
|
|
@@ -1510,14 +1520,14 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
1510
1520
|
totpURI: string;
|
|
1511
1521
|
backupCodes: string[];
|
|
1512
1522
|
}>;
|
|
1513
|
-
disableTwoFactor: import("better-
|
|
1523
|
+
disableTwoFactor: import("better-call").StrictEndpoint<"/two-factor/disable", {
|
|
1514
1524
|
method: "POST";
|
|
1515
1525
|
body: import("zod").ZodObject<{
|
|
1516
1526
|
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1517
1527
|
}, import("zod/v4/core").$strip> | import("zod").ZodObject<{
|
|
1518
1528
|
password: import("zod").ZodString;
|
|
1519
1529
|
}, import("zod/v4/core").$strip>;
|
|
1520
|
-
use: import("better-
|
|
1530
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1521
1531
|
session: {
|
|
1522
1532
|
session: Record<string, any> & {
|
|
1523
1533
|
id: string;
|
|
@@ -1566,7 +1576,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
1566
1576
|
}, {
|
|
1567
1577
|
status: boolean;
|
|
1568
1578
|
}>;
|
|
1569
|
-
verifyBackupCode: import("better-
|
|
1579
|
+
verifyBackupCode: import("better-call").StrictEndpoint<"/two-factor/verify-backup-code", {
|
|
1570
1580
|
method: "POST";
|
|
1571
1581
|
body: import("zod").ZodObject<{
|
|
1572
1582
|
code: import("zod").ZodString;
|
|
@@ -1677,14 +1687,14 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
1677
1687
|
image?: string | null | undefined;
|
|
1678
1688
|
}) | import("better-auth/plugins").UserWithTwoFactor;
|
|
1679
1689
|
}>;
|
|
1680
|
-
generateBackupCodes: import("better-
|
|
1690
|
+
generateBackupCodes: import("better-call").StrictEndpoint<"/two-factor/generate-backup-codes", {
|
|
1681
1691
|
method: "POST";
|
|
1682
1692
|
body: import("zod").ZodObject<{
|
|
1683
1693
|
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1684
1694
|
}, import("zod/v4/core").$strip> | import("zod").ZodObject<{
|
|
1685
1695
|
password: import("zod").ZodString;
|
|
1686
1696
|
}, import("zod/v4/core").$strip>;
|
|
1687
|
-
use: import("better-
|
|
1697
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1688
1698
|
session: {
|
|
1689
1699
|
session: Record<string, any> & {
|
|
1690
1700
|
id: string;
|
|
@@ -1743,7 +1753,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
1743
1753
|
status: boolean;
|
|
1744
1754
|
backupCodes: string[];
|
|
1745
1755
|
}>;
|
|
1746
|
-
viewBackupCodes: import("better-
|
|
1756
|
+
viewBackupCodes: import("better-call").StrictEndpoint<string, {
|
|
1747
1757
|
method: "POST";
|
|
1748
1758
|
body: import("zod").ZodObject<{
|
|
1749
1759
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
@@ -1752,7 +1762,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
1752
1762
|
status: boolean;
|
|
1753
1763
|
backupCodes: string[];
|
|
1754
1764
|
}>;
|
|
1755
|
-
sendTwoFactorOTP: import("better-
|
|
1765
|
+
sendTwoFactorOTP: import("better-call").StrictEndpoint<"/two-factor/send-otp", {
|
|
1756
1766
|
method: "POST";
|
|
1757
1767
|
body: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1758
1768
|
trustDevice: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -1783,7 +1793,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
1783
1793
|
}, {
|
|
1784
1794
|
status: boolean;
|
|
1785
1795
|
}>;
|
|
1786
|
-
verifyTwoFactorOTP: import("better-
|
|
1796
|
+
verifyTwoFactorOTP: import("better-call").StrictEndpoint<"/two-factor/verify-otp", {
|
|
1787
1797
|
method: "POST";
|
|
1788
1798
|
body: import("zod").ZodObject<{
|
|
1789
1799
|
code: import("zod").ZodString;
|
|
@@ -1872,7 +1882,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
1872
1882
|
image?: string | null | undefined;
|
|
1873
1883
|
};
|
|
1874
1884
|
}>;
|
|
1875
|
-
generateTOTP: import("better-
|
|
1885
|
+
generateTOTP: import("better-call").StrictEndpoint<string, {
|
|
1876
1886
|
method: "POST";
|
|
1877
1887
|
body: import("zod").ZodObject<{
|
|
1878
1888
|
secret: import("zod").ZodString;
|
|
@@ -1903,9 +1913,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
1903
1913
|
}, {
|
|
1904
1914
|
code: string;
|
|
1905
1915
|
}>;
|
|
1906
|
-
getTOTPURI: import("better-
|
|
1916
|
+
getTOTPURI: import("better-call").StrictEndpoint<"/two-factor/get-totp-uri", {
|
|
1907
1917
|
method: "POST";
|
|
1908
|
-
use: import("better-
|
|
1918
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1909
1919
|
session: {
|
|
1910
1920
|
session: Record<string, any> & {
|
|
1911
1921
|
id: string;
|
|
@@ -1959,7 +1969,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
1959
1969
|
}, {
|
|
1960
1970
|
totpURI: string;
|
|
1961
1971
|
}>;
|
|
1962
|
-
verifyTOTP: import("better-
|
|
1972
|
+
verifyTOTP: import("better-call").StrictEndpoint<"/two-factor/verify-totp", {
|
|
1963
1973
|
method: "POST";
|
|
1964
1974
|
body: import("zod").ZodObject<{
|
|
1965
1975
|
code: import("zod").ZodString;
|
|
@@ -2083,13 +2093,13 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2083
2093
|
};
|
|
2084
2094
|
} | {
|
|
2085
2095
|
endpoints: {
|
|
2086
|
-
generatePasskeyAuthenticationOptions: import("better-
|
|
2096
|
+
generatePasskeyAuthenticationOptions: import("better-call").StrictEndpoint<"/passkey/generate-authenticate-options", {
|
|
2087
2097
|
method: "GET";
|
|
2088
2098
|
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2089
2099
|
rpId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2090
2100
|
}, import("zod/v4/core").$strip>>;
|
|
2091
2101
|
}, import("@simplewebauthn/server").PublicKeyCredentialRequestOptionsJSON>;
|
|
2092
|
-
verifyPasskeyAuthentication: import("better-
|
|
2102
|
+
verifyPasskeyAuthentication: import("better-call").StrictEndpoint<"/passkey/verify-authentication", {
|
|
2093
2103
|
method: "POST";
|
|
2094
2104
|
body: import("zod").ZodObject<{
|
|
2095
2105
|
response: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
|
|
@@ -2115,9 +2125,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2115
2125
|
image?: string | null | undefined;
|
|
2116
2126
|
};
|
|
2117
2127
|
}>;
|
|
2118
|
-
generatePasskeyRegistrationOptions: import("better-
|
|
2128
|
+
generatePasskeyRegistrationOptions: import("better-call").StrictEndpoint<"/passkey/generate-register-options", {
|
|
2119
2129
|
method: "GET";
|
|
2120
|
-
use: import("better-
|
|
2130
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
2121
2131
|
session: {
|
|
2122
2132
|
session: Record<string, any> & {
|
|
2123
2133
|
id: string;
|
|
@@ -2152,7 +2162,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2152
2162
|
openapi: {
|
|
2153
2163
|
operationId: string;
|
|
2154
2164
|
description: string;
|
|
2155
|
-
parameters: import("better-
|
|
2165
|
+
parameters: import("better-call").OpenAPIParameter[];
|
|
2156
2166
|
responses: {
|
|
2157
2167
|
200: {
|
|
2158
2168
|
description: string;
|
|
@@ -2255,14 +2265,14 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2255
2265
|
};
|
|
2256
2266
|
};
|
|
2257
2267
|
}, import("@simplewebauthn/server").PublicKeyCredentialCreationOptionsJSON>;
|
|
2258
|
-
verifyPasskeyRegistration: import("better-
|
|
2268
|
+
verifyPasskeyRegistration: import("better-call").StrictEndpoint<"/passkey/verify-registration", {
|
|
2259
2269
|
method: "POST";
|
|
2260
2270
|
body: import("zod").ZodObject<{
|
|
2261
2271
|
response: import("zod").ZodAny;
|
|
2262
2272
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2263
2273
|
createSession: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2264
2274
|
}, import("zod/v4/core").$strip>;
|
|
2265
|
-
use: import("better-
|
|
2275
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
2266
2276
|
session: {
|
|
2267
2277
|
session: Record<string, any> & {
|
|
2268
2278
|
id: string;
|
|
@@ -2320,9 +2330,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2320
2330
|
};
|
|
2321
2331
|
};
|
|
2322
2332
|
}, import("@better-auth/passkey").Passkey>;
|
|
2323
|
-
listPasskeys: import("better-
|
|
2333
|
+
listPasskeys: import("better-call").StrictEndpoint<"/passkey/list-user-passkeys", {
|
|
2324
2334
|
method: "GET";
|
|
2325
|
-
use: import("better-
|
|
2335
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
2326
2336
|
session: {
|
|
2327
2337
|
session: Record<string, any> & {
|
|
2328
2338
|
id: string;
|
|
@@ -2368,12 +2378,12 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2368
2378
|
};
|
|
2369
2379
|
};
|
|
2370
2380
|
}, import("@better-auth/passkey").Passkey[]>;
|
|
2371
|
-
deletePasskey: import("better-
|
|
2381
|
+
deletePasskey: import("better-call").StrictEndpoint<"/passkey/delete-passkey", {
|
|
2372
2382
|
method: "POST";
|
|
2373
2383
|
body: import("zod").ZodObject<{
|
|
2374
2384
|
id: import("zod").ZodString;
|
|
2375
2385
|
}, import("zod/v4/core").$strip>;
|
|
2376
|
-
use: (import("better-
|
|
2386
|
+
use: (import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
2377
2387
|
session: {
|
|
2378
2388
|
session: Record<string, any> & {
|
|
2379
2389
|
id: string;
|
|
@@ -2395,7 +2405,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2395
2405
|
image?: string | null | undefined;
|
|
2396
2406
|
};
|
|
2397
2407
|
};
|
|
2398
|
-
}>> | import("better-
|
|
2408
|
+
}>> | import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
2399
2409
|
verifiedResource: {};
|
|
2400
2410
|
}>>)[];
|
|
2401
2411
|
metadata: {
|
|
@@ -2425,13 +2435,13 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2425
2435
|
}, {
|
|
2426
2436
|
status: boolean;
|
|
2427
2437
|
}>;
|
|
2428
|
-
updatePasskey: import("better-
|
|
2438
|
+
updatePasskey: import("better-call").StrictEndpoint<"/passkey/update-passkey", {
|
|
2429
2439
|
method: "POST";
|
|
2430
2440
|
body: import("zod").ZodObject<{
|
|
2431
2441
|
id: import("zod").ZodString;
|
|
2432
2442
|
name: import("zod").ZodString;
|
|
2433
2443
|
}, import("zod/v4/core").$strip>;
|
|
2434
|
-
use: (import("better-
|
|
2444
|
+
use: (import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
2435
2445
|
session: {
|
|
2436
2446
|
session: Record<string, any> & {
|
|
2437
2447
|
id: string;
|
|
@@ -2453,7 +2463,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2453
2463
|
image?: string | null | undefined;
|
|
2454
2464
|
};
|
|
2455
2465
|
};
|
|
2456
|
-
}>> | import("better-
|
|
2466
|
+
}>> | import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
2457
2467
|
verifiedResource: {};
|
|
2458
2468
|
}>>)[];
|
|
2459
2469
|
metadata: {
|
|
@@ -2577,9 +2587,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2577
2587
|
};
|
|
2578
2588
|
} | undefined;
|
|
2579
2589
|
endpoints: {
|
|
2580
|
-
sendVerificationOTP: import("better-
|
|
2590
|
+
sendVerificationOTP: import("better-call").StrictEndpoint<"/email-otp/send-verification-otp", {
|
|
2581
2591
|
method: "POST";
|
|
2582
|
-
use: import("better-
|
|
2592
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>[];
|
|
2583
2593
|
body: import("zod").ZodObject<{
|
|
2584
2594
|
email: import("zod").ZodString;
|
|
2585
2595
|
type: import("zod").ZodEnum<{
|
|
@@ -2615,7 +2625,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2615
2625
|
}, {
|
|
2616
2626
|
success: boolean;
|
|
2617
2627
|
}>;
|
|
2618
|
-
createVerificationOTP: import("better-
|
|
2628
|
+
createVerificationOTP: import("better-call").StrictEndpoint<string, {
|
|
2619
2629
|
method: "POST";
|
|
2620
2630
|
body: import("zod").ZodObject<{
|
|
2621
2631
|
email: import("zod").ZodString;
|
|
@@ -2645,7 +2655,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2645
2655
|
};
|
|
2646
2656
|
};
|
|
2647
2657
|
}, string>;
|
|
2648
|
-
getVerificationOTP: import("better-
|
|
2658
|
+
getVerificationOTP: import("better-call").StrictEndpoint<string, {
|
|
2649
2659
|
method: "GET";
|
|
2650
2660
|
query: import("zod").ZodObject<{
|
|
2651
2661
|
email: import("zod").ZodString;
|
|
@@ -2687,7 +2697,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2687
2697
|
} | {
|
|
2688
2698
|
otp: string;
|
|
2689
2699
|
}>;
|
|
2690
|
-
checkVerificationOTP: import("better-
|
|
2700
|
+
checkVerificationOTP: import("better-call").StrictEndpoint<"/email-otp/check-verification-otp", {
|
|
2691
2701
|
method: "POST";
|
|
2692
2702
|
body: import("zod").ZodObject<{
|
|
2693
2703
|
email: import("zod").ZodString;
|
|
@@ -2725,7 +2735,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2725
2735
|
}, {
|
|
2726
2736
|
success: boolean;
|
|
2727
2737
|
}>;
|
|
2728
|
-
verifyEmailOTP: import("better-
|
|
2738
|
+
verifyEmailOTP: import("better-call").StrictEndpoint<"/email-otp/verify-email", {
|
|
2729
2739
|
method: "POST";
|
|
2730
2740
|
body: import("zod").ZodObject<{
|
|
2731
2741
|
email: import("zod").ZodString;
|
|
@@ -2789,7 +2799,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2789
2799
|
image?: string | null | undefined;
|
|
2790
2800
|
} & Record<string, any>;
|
|
2791
2801
|
}>;
|
|
2792
|
-
signInEmailOTP: import("better-
|
|
2802
|
+
signInEmailOTP: import("better-call").StrictEndpoint<"/sign-in/email-otp", {
|
|
2793
2803
|
method: "POST";
|
|
2794
2804
|
body: import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
2795
2805
|
email: import("zod").ZodString;
|
|
@@ -2837,7 +2847,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2837
2847
|
image?: string | null | undefined;
|
|
2838
2848
|
};
|
|
2839
2849
|
}>;
|
|
2840
|
-
requestPasswordResetEmailOTP: import("better-
|
|
2850
|
+
requestPasswordResetEmailOTP: import("better-call").StrictEndpoint<"/email-otp/request-password-reset", {
|
|
2841
2851
|
method: "POST";
|
|
2842
2852
|
body: import("zod").ZodObject<{
|
|
2843
2853
|
email: import("zod").ZodString;
|
|
@@ -2869,7 +2879,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2869
2879
|
}, {
|
|
2870
2880
|
success: boolean;
|
|
2871
2881
|
}>;
|
|
2872
|
-
forgetPasswordEmailOTP: import("better-
|
|
2882
|
+
forgetPasswordEmailOTP: import("better-call").StrictEndpoint<"/forget-password/email-otp", {
|
|
2873
2883
|
method: "POST";
|
|
2874
2884
|
body: import("zod").ZodObject<{
|
|
2875
2885
|
email: import("zod").ZodString;
|
|
@@ -2901,7 +2911,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2901
2911
|
}, {
|
|
2902
2912
|
success: boolean;
|
|
2903
2913
|
}>;
|
|
2904
|
-
resetPasswordEmailOTP: import("better-
|
|
2914
|
+
resetPasswordEmailOTP: import("better-call").StrictEndpoint<"/email-otp/reset-password", {
|
|
2905
2915
|
method: "POST";
|
|
2906
2916
|
body: import("zod").ZodObject<{
|
|
2907
2917
|
email: import("zod").ZodString;
|
|
@@ -2934,13 +2944,13 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2934
2944
|
}, {
|
|
2935
2945
|
success: boolean;
|
|
2936
2946
|
}>;
|
|
2937
|
-
requestEmailChangeEmailOTP: import("better-
|
|
2947
|
+
requestEmailChangeEmailOTP: import("better-call").StrictEndpoint<"/email-otp/request-email-change", {
|
|
2938
2948
|
method: "POST";
|
|
2939
2949
|
body: import("zod").ZodObject<{
|
|
2940
2950
|
newEmail: import("zod").ZodString;
|
|
2941
2951
|
otp: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2942
2952
|
}, import("zod/v4/core").$strip>;
|
|
2943
|
-
use: import("better-
|
|
2953
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
2944
2954
|
session: {
|
|
2945
2955
|
session: Record<string, any> & {
|
|
2946
2956
|
id: string;
|
|
@@ -2989,13 +2999,13 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
2989
2999
|
}, {
|
|
2990
3000
|
success: boolean;
|
|
2991
3001
|
}>;
|
|
2992
|
-
changeEmailEmailOTP: import("better-
|
|
3002
|
+
changeEmailEmailOTP: import("better-call").StrictEndpoint<"/email-otp/change-email", {
|
|
2993
3003
|
method: "POST";
|
|
2994
3004
|
body: import("zod").ZodObject<{
|
|
2995
3005
|
newEmail: import("zod").ZodString;
|
|
2996
3006
|
otp: import("zod").ZodString;
|
|
2997
3007
|
}, import("zod/v4/core").$strip>;
|
|
2998
|
-
use: import("better-
|
|
3008
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
2999
3009
|
session: {
|
|
3000
3010
|
session: Record<string, any> & {
|
|
3001
3011
|
id: string;
|
|
@@ -3048,7 +3058,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3048
3058
|
hooks: {
|
|
3049
3059
|
after: {
|
|
3050
3060
|
matcher(context: import("better-auth").HookEndpointContext): boolean;
|
|
3051
|
-
handler: import("better-
|
|
3061
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>;
|
|
3052
3062
|
}[];
|
|
3053
3063
|
};
|
|
3054
3064
|
rateLimit: ({
|
|
@@ -3097,7 +3107,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3097
3107
|
} | {
|
|
3098
3108
|
id: "protobase-sign-up";
|
|
3099
3109
|
endpoints: {
|
|
3100
|
-
sendSignUpCode: import("better-
|
|
3110
|
+
sendSignUpCode: import("better-call").StrictEndpoint<string, {
|
|
3101
3111
|
method: "POST";
|
|
3102
3112
|
body: import("zod").ZodObject<{
|
|
3103
3113
|
email: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodEmail>;
|
|
@@ -3105,7 +3115,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3105
3115
|
}, {
|
|
3106
3116
|
sent: boolean;
|
|
3107
3117
|
}>;
|
|
3108
|
-
verifySignUpCode: import("better-
|
|
3118
|
+
verifySignUpCode: import("better-call").StrictEndpoint<string, {
|
|
3109
3119
|
method: "POST";
|
|
3110
3120
|
body: import("zod").ZodObject<{
|
|
3111
3121
|
email: import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodEmail>;
|
|
@@ -3114,7 +3124,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3114
3124
|
}, {
|
|
3115
3125
|
ticket: string;
|
|
3116
3126
|
}>;
|
|
3117
|
-
createSignUpAccount: import("better-
|
|
3127
|
+
createSignUpAccount: import("better-call").StrictEndpoint<string, {
|
|
3118
3128
|
method: "POST";
|
|
3119
3129
|
body: import("zod").ZodObject<{
|
|
3120
3130
|
ticket: import("zod").ZodString;
|
|
@@ -3136,8 +3146,18 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3136
3146
|
init: (ctx: import("better-auth").AuthContext) => Promise<{
|
|
3137
3147
|
context: {
|
|
3138
3148
|
socialProviders: import("better-auth").OAuthProvider<object, Partial<import("better-auth").ProviderOptions<object>>>[];
|
|
3149
|
+
genericOAuthPendingDiscovery: Map<string, {
|
|
3150
|
+
config: import("better-auth/plugins").GenericOAuthConfig;
|
|
3151
|
+
attempt?: Promise<void> | undefined;
|
|
3152
|
+
}>;
|
|
3139
3153
|
};
|
|
3140
3154
|
}>;
|
|
3155
|
+
hooks: {
|
|
3156
|
+
before: {
|
|
3157
|
+
matcher: (context: import("better-auth").HookEndpointContext) => boolean;
|
|
3158
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>;
|
|
3159
|
+
}[];
|
|
3160
|
+
};
|
|
3141
3161
|
options: import("better-auth/plugins").GenericOAuthOptions<string>;
|
|
3142
3162
|
$ERROR_CODES: {
|
|
3143
3163
|
INVALID_OAUTH_CONFIGURATION: import("better-auth").RawError<"INVALID_OAUTH_CONFIGURATION">;
|
|
@@ -3147,7 +3167,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3147
3167
|
id: "sso";
|
|
3148
3168
|
version: string;
|
|
3149
3169
|
endpoints: {
|
|
3150
|
-
spMetadata: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-
|
|
3170
|
+
spMetadata: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-call").StrictEndpoint<"/sso/saml2/sp/metadata", {
|
|
3151
3171
|
method: "GET";
|
|
3152
3172
|
query: import("zod").ZodObject<{
|
|
3153
3173
|
providerId: import("zod").ZodString;
|
|
@@ -3165,12 +3185,12 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3165
3185
|
};
|
|
3166
3186
|
};
|
|
3167
3187
|
}, Response>>;
|
|
3168
|
-
registerSSOProvider: import("better-
|
|
3188
|
+
registerSSOProvider: import("better-call").StrictEndpoint<"/sso/register", {
|
|
3169
3189
|
method: "POST";
|
|
3170
3190
|
body: import("zod").ZodObject<{
|
|
3171
3191
|
[x: string]: import("zod").ZodOptional<import("zod").ZodAny>;
|
|
3172
3192
|
}, import("zod/v4/core").$strip>;
|
|
3173
|
-
use: import("better-
|
|
3193
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
3174
3194
|
session: {
|
|
3175
3195
|
session: Record<string, any> & {
|
|
3176
3196
|
id: string;
|
|
@@ -3320,7 +3340,6 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3320
3340
|
description: string;
|
|
3321
3341
|
};
|
|
3322
3342
|
};
|
|
3323
|
-
required: string[];
|
|
3324
3343
|
};
|
|
3325
3344
|
};
|
|
3326
3345
|
required: string[];
|
|
@@ -3371,7 +3390,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3371
3390
|
domainVerified: boolean;
|
|
3372
3391
|
domainVerificationToken: string;
|
|
3373
3392
|
}>;
|
|
3374
|
-
signInSSO: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-
|
|
3393
|
+
signInSSO: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-call").StrictEndpoint<"/sign-in/sso", {
|
|
3375
3394
|
method: "POST";
|
|
3376
3395
|
body: import("zod").ZodObject<{
|
|
3377
3396
|
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -3493,7 +3512,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3493
3512
|
url: string;
|
|
3494
3513
|
redirect: boolean;
|
|
3495
3514
|
}>>;
|
|
3496
|
-
callbackSSO: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-
|
|
3515
|
+
callbackSSO: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-call").StrictEndpoint<"/sso/callback/:providerId", {
|
|
3497
3516
|
method: "GET";
|
|
3498
3517
|
query: import("zod").ZodObject<{
|
|
3499
3518
|
code: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -3516,7 +3535,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3516
3535
|
scope: "server";
|
|
3517
3536
|
};
|
|
3518
3537
|
}, never>>;
|
|
3519
|
-
callbackSSOShared: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-
|
|
3538
|
+
callbackSSOShared: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-call").StrictEndpoint<"/sso/callback", {
|
|
3520
3539
|
metadata: {
|
|
3521
3540
|
openapi: {
|
|
3522
3541
|
operationId: string;
|
|
@@ -3539,7 +3558,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3539
3558
|
}, import("zod/v4/core").$strip>;
|
|
3540
3559
|
allowedMediaTypes: readonly ["application/x-www-form-urlencoded", "application/json"];
|
|
3541
3560
|
}, never>>;
|
|
3542
|
-
acsEndpoint: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-
|
|
3561
|
+
acsEndpoint: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-call").StrictEndpoint<"/sso/saml2/sp/acs/:providerId", {
|
|
3543
3562
|
method: ("GET" | "POST")[];
|
|
3544
3563
|
body: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3545
3564
|
SAMLResponse: import("zod").ZodString;
|
|
@@ -3569,7 +3588,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3569
3588
|
scope: "server";
|
|
3570
3589
|
};
|
|
3571
3590
|
}, never>>;
|
|
3572
|
-
sloEndpoint: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-
|
|
3591
|
+
sloEndpoint: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-call").StrictEndpoint<"/sso/saml2/sp/slo/:providerId", {
|
|
3573
3592
|
method: ("GET" | "POST")[];
|
|
3574
3593
|
body: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3575
3594
|
SAMLRequest: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -3590,12 +3609,12 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3590
3609
|
scope: "server";
|
|
3591
3610
|
};
|
|
3592
3611
|
}, void | Response>>;
|
|
3593
|
-
initiateSLO: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-
|
|
3612
|
+
initiateSLO: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-call").StrictEndpoint<"/sso/saml2/logout/:providerId", {
|
|
3594
3613
|
method: "POST";
|
|
3595
3614
|
body: import("zod").ZodObject<{
|
|
3596
3615
|
callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3597
3616
|
}, import("zod/v4/core").$strip>;
|
|
3598
|
-
use: import("better-
|
|
3617
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
3599
3618
|
session: {
|
|
3600
3619
|
session: Record<string, any> & {
|
|
3601
3620
|
id: string;
|
|
@@ -3622,9 +3641,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3622
3641
|
readonly scope: "server";
|
|
3623
3642
|
};
|
|
3624
3643
|
}, never>>;
|
|
3625
|
-
listSSOProviders: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-
|
|
3644
|
+
listSSOProviders: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-call").StrictEndpoint<"/sso/providers", {
|
|
3626
3645
|
method: "GET";
|
|
3627
|
-
use: import("better-
|
|
3646
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
3628
3647
|
session: {
|
|
3629
3648
|
session: Record<string, any> & {
|
|
3630
3649
|
id: string;
|
|
@@ -3700,9 +3719,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3700
3719
|
spMetadataUrl: string;
|
|
3701
3720
|
}[];
|
|
3702
3721
|
}>>;
|
|
3703
|
-
getSSOProvider: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-
|
|
3722
|
+
getSSOProvider: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-call").StrictEndpoint<"/sso/get-provider", {
|
|
3704
3723
|
method: "GET";
|
|
3705
|
-
use: import("better-
|
|
3724
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
3706
3725
|
session: {
|
|
3707
3726
|
session: Record<string, any> & {
|
|
3708
3727
|
id: string;
|
|
@@ -3785,9 +3804,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3785
3804
|
} | undefined;
|
|
3786
3805
|
spMetadataUrl: string;
|
|
3787
3806
|
}>>;
|
|
3788
|
-
updateSSOProvider: ReturnType<(options: import("@better-auth/sso").SSOOptions) => import("better-
|
|
3807
|
+
updateSSOProvider: ReturnType<(options: import("@better-auth/sso").SSOOptions) => import("better-call").StrictEndpoint<"/sso/update-provider", {
|
|
3789
3808
|
method: "POST";
|
|
3790
|
-
use: import("better-
|
|
3809
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
3791
3810
|
session: {
|
|
3792
3811
|
session: Record<string, any> & {
|
|
3793
3812
|
id: string;
|
|
@@ -3833,19 +3852,18 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3833
3852
|
pkce: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>>;
|
|
3834
3853
|
overrideUserInfo: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
3835
3854
|
mapping: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3836
|
-
email: import("zod").ZodString
|
|
3855
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3837
3856
|
emailVerified: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3838
|
-
name: import("zod").ZodString
|
|
3857
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3839
3858
|
image: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3840
3859
|
extraFields: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
3841
3860
|
}, import("zod/v4/core").$strict>>>;
|
|
3842
3861
|
}, import("zod/v4/core").$strip>>;
|
|
3843
3862
|
samlConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3844
|
-
audience: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
3845
3863
|
mapping: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3846
|
-
email: import("zod").ZodString
|
|
3864
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3847
3865
|
emailVerified: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3848
|
-
name: import("zod").ZodString
|
|
3866
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3849
3867
|
firstName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3850
3868
|
lastName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3851
3869
|
extraFields: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
@@ -3863,6 +3881,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3863
3881
|
}, import("zod/v4/core").$strip>>>;
|
|
3864
3882
|
cert: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>>;
|
|
3865
3883
|
entryPoint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3884
|
+
audience: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
3866
3885
|
callbackUrl: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
3867
3886
|
wantAssertionsSigned: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
3868
3887
|
authnRequestsSigned: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
@@ -3948,9 +3967,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3948
3967
|
} | undefined;
|
|
3949
3968
|
spMetadataUrl: string;
|
|
3950
3969
|
}>>;
|
|
3951
|
-
deleteSSOProvider: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-
|
|
3970
|
+
deleteSSOProvider: ReturnType<(options?: import("@better-auth/sso").SSOOptions) => import("better-call").StrictEndpoint<"/sso/delete-provider", {
|
|
3952
3971
|
method: "POST";
|
|
3953
|
-
use: import("better-
|
|
3972
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
3954
3973
|
session: {
|
|
3955
3974
|
session: Record<string, any> & {
|
|
3956
3975
|
id: string;
|
|
@@ -3998,7 +4017,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
3998
4017
|
success: boolean;
|
|
3999
4018
|
}>>;
|
|
4000
4019
|
} & {
|
|
4001
|
-
requestDomainVerification: ReturnType<(options: import("@better-auth/sso").SSOOptions) => import("better-
|
|
4020
|
+
requestDomainVerification: ReturnType<(options: import("@better-auth/sso").SSOOptions) => import("better-call").StrictEndpoint<"/sso/request-domain-verification", {
|
|
4002
4021
|
method: "POST";
|
|
4003
4022
|
body: import("zod").ZodObject<{
|
|
4004
4023
|
providerId: import("zod").ZodString;
|
|
@@ -4020,7 +4039,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4020
4039
|
};
|
|
4021
4040
|
};
|
|
4022
4041
|
};
|
|
4023
|
-
use: import("better-
|
|
4042
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4024
4043
|
session: {
|
|
4025
4044
|
session: Record<string, any> & {
|
|
4026
4045
|
id: string;
|
|
@@ -4046,7 +4065,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4046
4065
|
}, {
|
|
4047
4066
|
domainVerificationToken: string;
|
|
4048
4067
|
}>>;
|
|
4049
|
-
verifyDomain: ReturnType<(options: import("@better-auth/sso").SSOOptions) => import("better-
|
|
4068
|
+
verifyDomain: ReturnType<(options: import("@better-auth/sso").SSOOptions) => import("better-call").StrictEndpoint<"/sso/verify-domain", {
|
|
4050
4069
|
method: "POST";
|
|
4051
4070
|
body: import("zod").ZodObject<{
|
|
4052
4071
|
providerId: import("zod").ZodString;
|
|
@@ -4071,7 +4090,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4071
4090
|
};
|
|
4072
4091
|
};
|
|
4073
4092
|
};
|
|
4074
|
-
use: import("better-
|
|
4093
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4075
4094
|
session: {
|
|
4076
4095
|
session: Record<string, any> & {
|
|
4077
4096
|
id: string;
|
|
@@ -4133,7 +4152,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4133
4152
|
hooks: {
|
|
4134
4153
|
before: {
|
|
4135
4154
|
matcher: (context: import("better-auth").HookEndpointContext) => boolean;
|
|
4136
|
-
handler: import("better-
|
|
4155
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>;
|
|
4137
4156
|
}[];
|
|
4138
4157
|
};
|
|
4139
4158
|
} | {
|
|
@@ -4186,10 +4205,10 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4186
4205
|
};
|
|
4187
4206
|
};
|
|
4188
4207
|
endpoints: {
|
|
4189
|
-
getSignInPolicy: import("better-
|
|
4208
|
+
getSignInPolicy: import("better-call").StrictEndpoint<"/policy/sign-in", {
|
|
4190
4209
|
method: "GET";
|
|
4191
|
-
use: import("better-
|
|
4192
|
-
use: import("better-
|
|
4210
|
+
use: import("better-call").Middleware<{
|
|
4211
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4193
4212
|
session: {
|
|
4194
4213
|
session: Record<string, any> & {
|
|
4195
4214
|
id: string;
|
|
@@ -4212,8 +4231,8 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4212
4231
|
};
|
|
4213
4232
|
};
|
|
4214
4233
|
}>>[];
|
|
4215
|
-
}, (inputContext: import("better-
|
|
4216
|
-
use: import("better-
|
|
4234
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
4235
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4217
4236
|
session: {
|
|
4218
4237
|
session: Record<string, any> & {
|
|
4219
4238
|
id: string;
|
|
@@ -4288,10 +4307,10 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4288
4307
|
effective: SignInPolicy;
|
|
4289
4308
|
mail: boolean;
|
|
4290
4309
|
}>;
|
|
4291
|
-
setSignInPolicy: import("better-
|
|
4310
|
+
setSignInPolicy: import("better-call").StrictEndpoint<"/policy/sign-in", {
|
|
4292
4311
|
method: "POST";
|
|
4293
|
-
use: import("better-
|
|
4294
|
-
use: import("better-
|
|
4312
|
+
use: import("better-call").Middleware<{
|
|
4313
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4295
4314
|
session: {
|
|
4296
4315
|
session: Record<string, any> & {
|
|
4297
4316
|
id: string;
|
|
@@ -4314,8 +4333,8 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4314
4333
|
};
|
|
4315
4334
|
};
|
|
4316
4335
|
}>>[];
|
|
4317
|
-
}, (inputContext: import("better-
|
|
4318
|
-
use: import("better-
|
|
4336
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
4337
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4319
4338
|
session: {
|
|
4320
4339
|
session: Record<string, any> & {
|
|
4321
4340
|
id: string;
|
|
@@ -4391,9 +4410,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4391
4410
|
effective: SignInPolicy;
|
|
4392
4411
|
mail: boolean;
|
|
4393
4412
|
}>;
|
|
4394
|
-
getSignInMethods: import("better-
|
|
4413
|
+
getSignInMethods: import("better-call").StrictEndpoint<"/account/sign-in-methods", {
|
|
4395
4414
|
method: "GET";
|
|
4396
|
-
use: import("better-
|
|
4415
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4397
4416
|
session: {
|
|
4398
4417
|
session: Record<string, any> & {
|
|
4399
4418
|
id: string;
|
|
@@ -4431,13 +4450,13 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4431
4450
|
hooks: {
|
|
4432
4451
|
before: {
|
|
4433
4452
|
matcher: (context: import("better-auth").HookEndpointContext) => boolean;
|
|
4434
|
-
handler: import("better-
|
|
4453
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>;
|
|
4435
4454
|
}[];
|
|
4436
4455
|
};
|
|
4437
4456
|
} | {
|
|
4438
4457
|
id: "protobase-gotrue-sessions";
|
|
4439
4458
|
endpoints: {
|
|
4440
|
-
goTrueSession: import("better-
|
|
4459
|
+
goTrueSession: import("better-call").StrictEndpoint<string, {
|
|
4441
4460
|
method: "POST";
|
|
4442
4461
|
body: import("zod").ZodObject<{
|
|
4443
4462
|
sessionToken: import("zod").ZodString;
|
|
@@ -4476,7 +4495,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4476
4495
|
email: string;
|
|
4477
4496
|
};
|
|
4478
4497
|
}>;
|
|
4479
|
-
goTrueRefresh: import("better-
|
|
4498
|
+
goTrueRefresh: import("better-call").StrictEndpoint<string, {
|
|
4480
4499
|
method: "POST";
|
|
4481
4500
|
body: import("zod").ZodObject<{
|
|
4482
4501
|
refreshToken: import("zod").ZodString;
|
|
@@ -4578,9 +4597,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4578
4597
|
};
|
|
4579
4598
|
};
|
|
4580
4599
|
endpoints: {
|
|
4581
|
-
getStaffSession: import("better-
|
|
4600
|
+
getStaffSession: import("better-call").StrictEndpoint<"/staff/session", {
|
|
4582
4601
|
method: "GET";
|
|
4583
|
-
use: import("better-
|
|
4602
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4584
4603
|
session: {
|
|
4585
4604
|
session: Record<string, any> & {
|
|
4586
4605
|
id: string;
|
|
@@ -4606,9 +4625,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4606
4625
|
}, {
|
|
4607
4626
|
staff: StaffSignIn | null;
|
|
4608
4627
|
}>;
|
|
4609
|
-
stopStaffSession: import("better-
|
|
4628
|
+
stopStaffSession: import("better-call").StrictEndpoint<"/staff/stop", {
|
|
4610
4629
|
method: "POST";
|
|
4611
|
-
use: import("better-
|
|
4630
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4612
4631
|
session: {
|
|
4613
4632
|
session: Record<string, any> & {
|
|
4614
4633
|
id: string;
|
|
@@ -4634,10 +4653,10 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4634
4653
|
}, {
|
|
4635
4654
|
stopped: boolean;
|
|
4636
4655
|
}>;
|
|
4637
|
-
listStaffSignIns: import("better-
|
|
4656
|
+
listStaffSignIns: import("better-call").StrictEndpoint<"/staff/sign-ins", {
|
|
4638
4657
|
method: "GET";
|
|
4639
|
-
use: import("better-
|
|
4640
|
-
use: import("better-
|
|
4658
|
+
use: import("better-call").Middleware<{
|
|
4659
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4641
4660
|
session: {
|
|
4642
4661
|
session: Record<string, any> & {
|
|
4643
4662
|
id: string;
|
|
@@ -4660,8 +4679,8 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4660
4679
|
};
|
|
4661
4680
|
};
|
|
4662
4681
|
}>>[];
|
|
4663
|
-
}, (inputContext: import("better-
|
|
4664
|
-
use: import("better-
|
|
4682
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
4683
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4665
4684
|
session: {
|
|
4666
4685
|
session: Record<string, any> & {
|
|
4667
4686
|
id: string;
|
|
@@ -4730,7 +4749,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4730
4749
|
}, {
|
|
4731
4750
|
signIns: StaffSignIn[];
|
|
4732
4751
|
}>;
|
|
4733
|
-
startStaffSignIn?: import("better-
|
|
4752
|
+
startStaffSignIn?: import("better-call").StrictEndpoint<"/staff/sign-in", {
|
|
4734
4753
|
method: "POST";
|
|
4735
4754
|
body: import("zod").ZodObject<{
|
|
4736
4755
|
email: import("zod").ZodEmail;
|
|
@@ -4740,7 +4759,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4740
4759
|
}, {
|
|
4741
4760
|
url: string;
|
|
4742
4761
|
}> | undefined;
|
|
4743
|
-
staffCallback?: import("better-
|
|
4762
|
+
staffCallback?: import("better-call").StrictEndpoint<"/staff/callback", {
|
|
4744
4763
|
method: "GET";
|
|
4745
4764
|
query: import("zod").ZodObject<{
|
|
4746
4765
|
state: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -4751,7 +4770,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4751
4770
|
hooks: {
|
|
4752
4771
|
before: {
|
|
4753
4772
|
matcher: (context: import("better-auth").HookEndpointContext) => boolean;
|
|
4754
|
-
handler: import("better-
|
|
4773
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>;
|
|
4755
4774
|
}[];
|
|
4756
4775
|
};
|
|
4757
4776
|
} | {
|
|
@@ -4779,9 +4798,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4779
4798
|
};
|
|
4780
4799
|
};
|
|
4781
4800
|
endpoints: {
|
|
4782
|
-
currentRole: import("better-
|
|
4801
|
+
currentRole: import("better-call").StrictEndpoint<"/role/current", {
|
|
4783
4802
|
method: "GET";
|
|
4784
|
-
use: import("better-
|
|
4803
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4785
4804
|
session: {
|
|
4786
4805
|
session: Record<string, any> & {
|
|
4787
4806
|
id: string;
|
|
@@ -4811,9 +4830,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4811
4830
|
label: string;
|
|
4812
4831
|
}[];
|
|
4813
4832
|
}>;
|
|
4814
|
-
switchRole: import("better-
|
|
4833
|
+
switchRole: import("better-call").StrictEndpoint<"/role/switch", {
|
|
4815
4834
|
method: "POST";
|
|
4816
|
-
use: import("better-
|
|
4835
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
4817
4836
|
session: {
|
|
4818
4837
|
session: Record<string, any> & {
|
|
4819
4838
|
id: string;
|
|
@@ -4846,7 +4865,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4846
4865
|
hooks: {
|
|
4847
4866
|
before: {
|
|
4848
4867
|
matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
|
|
4849
|
-
handler: import("better-
|
|
4868
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>;
|
|
4850
4869
|
}[];
|
|
4851
4870
|
};
|
|
4852
4871
|
} | {
|
|
@@ -4854,7 +4873,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
4854
4873
|
hooks: {
|
|
4855
4874
|
before: {
|
|
4856
4875
|
matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
|
|
4857
|
-
handler: import("better-
|
|
4876
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>;
|
|
4858
4877
|
}[];
|
|
4859
4878
|
};
|
|
4860
4879
|
} | import("better-auth/plugins").DefaultOrganizationPlugin<{
|
|
@@ -5147,9 +5166,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
5147
5166
|
}> | {
|
|
5148
5167
|
id: "protobase-organizations";
|
|
5149
5168
|
endpoints: {
|
|
5150
|
-
setAppRoles: import("better-
|
|
5169
|
+
setAppRoles: import("better-call").StrictEndpoint<"/organization/set-app-roles", {
|
|
5151
5170
|
method: "POST";
|
|
5152
|
-
use: import("better-
|
|
5171
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5153
5172
|
session: {
|
|
5154
5173
|
session: Record<string, any> & {
|
|
5155
5174
|
id: string;
|
|
@@ -5186,9 +5205,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
5186
5205
|
createdAt: Date;
|
|
5187
5206
|
};
|
|
5188
5207
|
}>;
|
|
5189
|
-
transferOwnership: import("better-
|
|
5208
|
+
transferOwnership: import("better-call").StrictEndpoint<"/organization/transfer-ownership", {
|
|
5190
5209
|
method: "POST";
|
|
5191
|
-
use: import("better-
|
|
5210
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5192
5211
|
session: {
|
|
5193
5212
|
session: Record<string, any> & {
|
|
5194
5213
|
id: string;
|
|
@@ -5221,9 +5240,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
5221
5240
|
}, {
|
|
5222
5241
|
owner: string;
|
|
5223
5242
|
}>;
|
|
5224
|
-
currentOrganization: import("better-
|
|
5243
|
+
currentOrganization: import("better-call").StrictEndpoint<"/organization/current", {
|
|
5225
5244
|
method: "GET";
|
|
5226
|
-
use: import("better-
|
|
5245
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5227
5246
|
session: {
|
|
5228
5247
|
session: Record<string, any> & {
|
|
5229
5248
|
id: string;
|
|
@@ -5261,9 +5280,9 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
5261
5280
|
logo: string | null;
|
|
5262
5281
|
};
|
|
5263
5282
|
}>;
|
|
5264
|
-
searchOrganizations: import("better-
|
|
5283
|
+
searchOrganizations: import("better-call").StrictEndpoint<"/organization/search", {
|
|
5265
5284
|
method: "GET";
|
|
5266
|
-
use: import("better-
|
|
5285
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5267
5286
|
session: {
|
|
5268
5287
|
session: Record<string, any> & {
|
|
5269
5288
|
id: string;
|
|
@@ -5298,12 +5317,12 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
5298
5317
|
}[];
|
|
5299
5318
|
total: number;
|
|
5300
5319
|
}>;
|
|
5301
|
-
acceptInvitation: import("better-
|
|
5320
|
+
acceptInvitation: import("better-call").StrictEndpoint<"/invitation/accept", {
|
|
5302
5321
|
method: "POST";
|
|
5303
5322
|
body: import("zod").ZodObject<{
|
|
5304
5323
|
token: import("zod").ZodString;
|
|
5305
5324
|
}, import("zod/v4/core").$strip>;
|
|
5306
|
-
use: import("better-
|
|
5325
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5307
5326
|
session: {
|
|
5308
5327
|
session: Record<string, any> & {
|
|
5309
5328
|
id: string;
|
|
@@ -5342,13 +5361,13 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
5342
5361
|
matcher: (context: {
|
|
5343
5362
|
path?: string;
|
|
5344
5363
|
}) => boolean;
|
|
5345
|
-
handler: import("better-
|
|
5364
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>;
|
|
5346
5365
|
}[];
|
|
5347
5366
|
};
|
|
5348
5367
|
} | {
|
|
5349
5368
|
id: "protobase-users";
|
|
5350
5369
|
endpoints: {
|
|
5351
|
-
getInvitation: import("better-
|
|
5370
|
+
getInvitation: import("better-call").StrictEndpoint<"/invitation", {
|
|
5352
5371
|
method: "GET";
|
|
5353
5372
|
query: import("zod").ZodObject<{
|
|
5354
5373
|
token: import("zod").ZodString;
|
|
@@ -5378,7 +5397,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
5378
5397
|
name: string;
|
|
5379
5398
|
};
|
|
5380
5399
|
}>;
|
|
5381
|
-
signUpFromInvitation: import("better-
|
|
5400
|
+
signUpFromInvitation: import("better-call").StrictEndpoint<"/invitation/sign-up", {
|
|
5382
5401
|
method: "POST";
|
|
5383
5402
|
body: import("zod").ZodObject<{
|
|
5384
5403
|
token: import("zod").ZodString;
|
|
@@ -5400,10 +5419,10 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
5400
5419
|
organizationId: string;
|
|
5401
5420
|
};
|
|
5402
5421
|
}>;
|
|
5403
|
-
inviteUser: import("better-
|
|
5422
|
+
inviteUser: import("better-call").StrictEndpoint<"/users/invite", {
|
|
5404
5423
|
method: "POST";
|
|
5405
|
-
use: import("better-
|
|
5406
|
-
use: import("better-
|
|
5424
|
+
use: import("better-call").Middleware<{
|
|
5425
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5407
5426
|
session: {
|
|
5408
5427
|
session: Record<string, any> & {
|
|
5409
5428
|
id: string;
|
|
@@ -5426,8 +5445,8 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
5426
5445
|
};
|
|
5427
5446
|
};
|
|
5428
5447
|
}>>[];
|
|
5429
|
-
}, (inputContext: import("better-
|
|
5430
|
-
use: import("better-
|
|
5448
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
5449
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5431
5450
|
session: {
|
|
5432
5451
|
session: Record<string, any> & {
|
|
5433
5452
|
id: string;
|
|
@@ -5503,10 +5522,10 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
5503
5522
|
roles: string[];
|
|
5504
5523
|
expiresAt: string;
|
|
5505
5524
|
}>;
|
|
5506
|
-
listUserInvitations: import("better-
|
|
5525
|
+
listUserInvitations: import("better-call").StrictEndpoint<"/users/invitations", {
|
|
5507
5526
|
method: "GET";
|
|
5508
|
-
use: import("better-
|
|
5509
|
-
use: import("better-
|
|
5527
|
+
use: import("better-call").Middleware<{
|
|
5528
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5510
5529
|
session: {
|
|
5511
5530
|
session: Record<string, any> & {
|
|
5512
5531
|
id: string;
|
|
@@ -5529,8 +5548,8 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
5529
5548
|
};
|
|
5530
5549
|
};
|
|
5531
5550
|
}>>[];
|
|
5532
|
-
}, (inputContext: import("better-
|
|
5533
|
-
use: import("better-
|
|
5551
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
5552
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5534
5553
|
session: {
|
|
5535
5554
|
session: Record<string, any> & {
|
|
5536
5555
|
id: string;
|
|
@@ -5604,10 +5623,10 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
5604
5623
|
expiresAt: string;
|
|
5605
5624
|
}[];
|
|
5606
5625
|
}>;
|
|
5607
|
-
cancelUserInvitation: import("better-
|
|
5626
|
+
cancelUserInvitation: import("better-call").StrictEndpoint<"/users/invitations/cancel", {
|
|
5608
5627
|
method: "POST";
|
|
5609
|
-
use: import("better-
|
|
5610
|
-
use: import("better-
|
|
5628
|
+
use: import("better-call").Middleware<{
|
|
5629
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5611
5630
|
session: {
|
|
5612
5631
|
session: Record<string, any> & {
|
|
5613
5632
|
id: string;
|
|
@@ -5630,8 +5649,8 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
5630
5649
|
};
|
|
5631
5650
|
};
|
|
5632
5651
|
}>>[];
|
|
5633
|
-
}, (inputContext: import("better-
|
|
5634
|
-
use: import("better-
|
|
5652
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
5653
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5635
5654
|
session: {
|
|
5636
5655
|
session: Record<string, any> & {
|
|
5637
5656
|
id: string;
|
|
@@ -5703,10 +5722,10 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
5703
5722
|
}, {
|
|
5704
5723
|
id: string;
|
|
5705
5724
|
}>;
|
|
5706
|
-
userRoles: import("better-
|
|
5725
|
+
userRoles: import("better-call").StrictEndpoint<"/users/roles", {
|
|
5707
5726
|
method: "GET";
|
|
5708
|
-
use: import("better-
|
|
5709
|
-
use: import("better-
|
|
5727
|
+
use: import("better-call").Middleware<{
|
|
5728
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5710
5729
|
session: {
|
|
5711
5730
|
session: Record<string, any> & {
|
|
5712
5731
|
id: string;
|
|
@@ -5729,8 +5748,8 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
5729
5748
|
};
|
|
5730
5749
|
};
|
|
5731
5750
|
}>>[];
|
|
5732
|
-
}, (inputContext: import("better-
|
|
5733
|
-
use: import("better-
|
|
5751
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
5752
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5734
5753
|
session: {
|
|
5735
5754
|
session: Record<string, any> & {
|
|
5736
5755
|
id: string;
|
|
@@ -5808,7 +5827,7 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
5808
5827
|
matcher: (context: {
|
|
5809
5828
|
path?: string;
|
|
5810
5829
|
}) => boolean;
|
|
5811
|
-
handler: import("better-
|
|
5830
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>;
|
|
5812
5831
|
}[];
|
|
5813
5832
|
};
|
|
5814
5833
|
} | {
|
|
@@ -5816,186 +5835,2867 @@ export declare const createAuth: (options: CreateAuthOptions) => import("better-
|
|
|
5816
5835
|
hooks: {
|
|
5817
5836
|
after: {
|
|
5818
5837
|
matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
|
|
5819
|
-
handler: import("better-
|
|
5838
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>;
|
|
5820
5839
|
}[];
|
|
5821
5840
|
};
|
|
5822
|
-
}
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
activeOrganizationId?: string | null;
|
|
5830
|
-
} & Record<string, unknown>) => Promise<{
|
|
5831
|
-
data: {
|
|
5832
|
-
activeOrganizationId: string;
|
|
5833
|
-
userId: string;
|
|
5834
|
-
};
|
|
5835
|
-
} | undefined>;
|
|
5836
|
-
};
|
|
5837
|
-
update: {
|
|
5838
|
-
after: (session: {
|
|
5839
|
-
userId: string;
|
|
5840
|
-
activeOrganizationId?: string | null;
|
|
5841
|
-
}) => Promise<void>;
|
|
5842
|
-
};
|
|
5843
|
-
} | undefined;
|
|
5844
|
-
user: {
|
|
5845
|
-
create: {
|
|
5846
|
-
after?: ((user: import("better-auth").User & Record<string, unknown>, context: import("better-auth").GenericEndpointContext | null) => Promise<void>) | undefined;
|
|
5847
|
-
before: (user: {
|
|
5848
|
-
id: string;
|
|
5849
|
-
createdAt: Date;
|
|
5850
|
-
updatedAt: Date;
|
|
5851
|
-
email: string;
|
|
5852
|
-
emailVerified: boolean;
|
|
5853
|
-
name: string;
|
|
5854
|
-
image?: string | null | undefined;
|
|
5855
|
-
} & Record<string, unknown>, context: import("better-auth").GenericEndpointContext | null) => Promise<{
|
|
5856
|
-
data: {
|
|
5857
|
-
id: string;
|
|
5858
|
-
createdAt: Date;
|
|
5859
|
-
updatedAt: Date;
|
|
5860
|
-
email: string;
|
|
5861
|
-
emailVerified: boolean;
|
|
5862
|
-
name: string;
|
|
5863
|
-
image?: string | null | undefined;
|
|
5864
|
-
} & Record<string, unknown>;
|
|
5865
|
-
}>;
|
|
5866
|
-
};
|
|
5867
|
-
update: {
|
|
5868
|
-
before: (user: Partial<{
|
|
5869
|
-
id: string;
|
|
5870
|
-
createdAt: Date;
|
|
5871
|
-
updatedAt: Date;
|
|
5872
|
-
email: string;
|
|
5873
|
-
emailVerified: boolean;
|
|
5874
|
-
name: string;
|
|
5875
|
-
image?: string | null | undefined;
|
|
5876
|
-
}> & Record<string, unknown>) => Promise<{
|
|
5877
|
-
data: Partial<{
|
|
5878
|
-
id: string;
|
|
5879
|
-
createdAt: Date;
|
|
5880
|
-
updatedAt: Date;
|
|
5881
|
-
email: string;
|
|
5882
|
-
emailVerified: boolean;
|
|
5883
|
-
name: string;
|
|
5884
|
-
image?: string | null | undefined;
|
|
5885
|
-
}> & Record<string, unknown>;
|
|
5886
|
-
}>;
|
|
5887
|
-
};
|
|
5841
|
+
} | {
|
|
5842
|
+
id: "protobase-mcp-signed-query-guard";
|
|
5843
|
+
hooks: {
|
|
5844
|
+
before: {
|
|
5845
|
+
matcher: (context: import("better-auth").HookEndpointContext) => boolean;
|
|
5846
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<never>>;
|
|
5847
|
+
}[];
|
|
5888
5848
|
};
|
|
5889
|
-
}
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
max: number;
|
|
5914
|
-
};
|
|
5915
|
-
'/invitation/sign-up': {
|
|
5916
|
-
window: number;
|
|
5917
|
-
max: number;
|
|
5918
|
-
};
|
|
5849
|
+
} | {
|
|
5850
|
+
id: "protobase-mcp-request-defaults";
|
|
5851
|
+
hooks: {
|
|
5852
|
+
before: ({
|
|
5853
|
+
matcher: (context: import("better-auth").HookEndpointContext) => boolean;
|
|
5854
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5855
|
+
context: {
|
|
5856
|
+
body: {
|
|
5857
|
+
[x: string]: unknown;
|
|
5858
|
+
};
|
|
5859
|
+
query?: undefined;
|
|
5860
|
+
};
|
|
5861
|
+
} | {
|
|
5862
|
+
context: {
|
|
5863
|
+
query: {
|
|
5864
|
+
[x: string]: unknown;
|
|
5865
|
+
};
|
|
5866
|
+
body?: undefined;
|
|
5867
|
+
};
|
|
5868
|
+
}>>;
|
|
5869
|
+
} | {
|
|
5870
|
+
matcher: (context: import("better-auth").HookEndpointContext) => boolean;
|
|
5871
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>;
|
|
5872
|
+
})[];
|
|
5919
5873
|
};
|
|
5920
|
-
}
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
sameSite: "lax";
|
|
5928
|
-
secure: boolean;
|
|
5874
|
+
} | {
|
|
5875
|
+
id: "protobase-mcp-setup-gate";
|
|
5876
|
+
hooks: {
|
|
5877
|
+
before: {
|
|
5878
|
+
matcher: (context: import("better-auth").HookEndpointContext) => boolean;
|
|
5879
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>;
|
|
5880
|
+
}[];
|
|
5929
5881
|
};
|
|
5930
|
-
|
|
5931
|
-
|
|
5882
|
+
} | {
|
|
5883
|
+
id: "oauth-provider";
|
|
5884
|
+
version: string;
|
|
5885
|
+
options: NoInfer<import("@better-auth/oauth-provider").OAuthOptions<import("@better-auth/oauth-provider").Scope[]>>;
|
|
5886
|
+
onRequest: (request: Request, ctx: import("better-auth").AuthContext) => Promise<{
|
|
5887
|
+
response: Response;
|
|
5888
|
+
} | {
|
|
5889
|
+
request: Request;
|
|
5890
|
+
} | void>;
|
|
5891
|
+
init: (ctx: import("better-auth").AuthContext) => Promise<{
|
|
5892
|
+
options: {
|
|
5893
|
+
databaseHooks: {
|
|
5894
|
+
session: {
|
|
5895
|
+
delete: {
|
|
5896
|
+
before(session: {
|
|
5897
|
+
id: string;
|
|
5898
|
+
createdAt: Date;
|
|
5899
|
+
updatedAt: Date;
|
|
5900
|
+
userId: string;
|
|
5901
|
+
expiresAt: Date;
|
|
5902
|
+
token: string;
|
|
5903
|
+
ipAddress?: string | null | undefined;
|
|
5904
|
+
userAgent?: string | null | undefined;
|
|
5905
|
+
} & Record<string, unknown>, hookCtx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
5906
|
+
after(session: {
|
|
5907
|
+
id: string;
|
|
5908
|
+
createdAt: Date;
|
|
5909
|
+
updatedAt: Date;
|
|
5910
|
+
userId: string;
|
|
5911
|
+
expiresAt: Date;
|
|
5912
|
+
token: string;
|
|
5913
|
+
ipAddress?: string | null | undefined;
|
|
5914
|
+
userAgent?: string | null | undefined;
|
|
5915
|
+
} & Record<string, unknown>, hookCtx: import("better-auth").GenericEndpointContext | null): Promise<void>;
|
|
5916
|
+
};
|
|
5917
|
+
};
|
|
5918
|
+
};
|
|
5919
|
+
};
|
|
5920
|
+
}>;
|
|
5921
|
+
hooks: {
|
|
5922
|
+
before: {
|
|
5923
|
+
matcher(ctx: import("better-auth").HookEndpointContext): any;
|
|
5924
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>;
|
|
5925
|
+
}[];
|
|
5926
|
+
after: {
|
|
5927
|
+
matcher(ctx: import("better-auth").HookEndpointContext): boolean;
|
|
5928
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
5929
|
+
redirect: true;
|
|
5930
|
+
url: string;
|
|
5931
|
+
} | undefined>>;
|
|
5932
|
+
}[];
|
|
5932
5933
|
};
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5934
|
+
endpoints: {
|
|
5935
|
+
getOAuthServerConfig: import("better-call").StrictEndpoint<"/.well-known/oauth-authorization-server", {
|
|
5936
|
+
method: "GET";
|
|
5937
|
+
metadata: {
|
|
5938
|
+
SERVER_ONLY: true;
|
|
5939
|
+
};
|
|
5940
|
+
}, import("@better-auth/oauth-provider").AuthServerMetadata>;
|
|
5941
|
+
getOpenIdConfig: import("better-call").StrictEndpoint<"/.well-known/openid-configuration", {
|
|
5942
|
+
method: "GET";
|
|
5943
|
+
metadata: {
|
|
5944
|
+
SERVER_ONLY: true;
|
|
5945
|
+
};
|
|
5946
|
+
}, {
|
|
5947
|
+
jwks_uri?: string | undefined;
|
|
5948
|
+
userinfo_endpoint: string;
|
|
5949
|
+
acr_values_supported?: string[] | undefined;
|
|
5950
|
+
subject_types_supported: ("public" | "pairwise")[];
|
|
5951
|
+
claims_supported: string[];
|
|
5952
|
+
claims_parameter_supported?: boolean | undefined;
|
|
5953
|
+
end_session_endpoint: string;
|
|
5954
|
+
request_parameter_supported?: boolean | undefined;
|
|
5955
|
+
request_uri_parameter_supported?: boolean | undefined;
|
|
5956
|
+
prompt_values_supported: import("@better-auth/oauth-provider").Prompt[];
|
|
5957
|
+
issuer: string;
|
|
5958
|
+
authorization_endpoint: string;
|
|
5959
|
+
token_endpoint: string;
|
|
5960
|
+
registration_endpoint?: string | undefined;
|
|
5961
|
+
scopes_supported?: string[] | undefined;
|
|
5962
|
+
response_types_supported: "code"[];
|
|
5963
|
+
response_modes_supported: "query"[];
|
|
5964
|
+
grant_types_supported: import("@better-auth/oauth-provider").GrantType[];
|
|
5965
|
+
token_endpoint_auth_methods_supported?: import("@better-auth/oauth-provider").TokenEndpointAuthMethod[] | undefined;
|
|
5966
|
+
token_endpoint_auth_signing_alg_values_supported?: import("better-auth").PrivateKeyJwtSigningAlgorithm[] | undefined;
|
|
5967
|
+
service_documentation?: string | undefined;
|
|
5968
|
+
ui_locales_supported?: string[] | undefined;
|
|
5969
|
+
op_policy_uri?: string | undefined;
|
|
5970
|
+
op_tos_uri?: string | undefined;
|
|
5971
|
+
revocation_endpoint?: string | undefined;
|
|
5972
|
+
revocation_endpoint_auth_methods_supported?: import("@better-auth/oauth-provider").TokenEndpointAuthMethod[] | undefined;
|
|
5973
|
+
revocation_endpoint_auth_signing_alg_values_supported?: import("better-auth").PrivateKeyJwtSigningAlgorithm[] | undefined;
|
|
5974
|
+
introspection_endpoint?: string | undefined;
|
|
5975
|
+
introspection_endpoint_auth_methods_supported?: import("@better-auth/oauth-provider").TokenEndpointAuthMethod[] | undefined;
|
|
5976
|
+
introspection_endpoint_auth_signing_alg_values_supported?: import("better-auth").PrivateKeyJwtSigningAlgorithm[] | undefined;
|
|
5977
|
+
code_challenge_methods_supported: "S256"[];
|
|
5978
|
+
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
5979
|
+
client_id_metadata_document_supported?: boolean | undefined;
|
|
5980
|
+
backchannel_logout_supported?: boolean | undefined;
|
|
5981
|
+
backchannel_logout_session_supported?: boolean | undefined;
|
|
5982
|
+
dpop_signing_alg_values_supported?: import("better-auth/plugins").JWSAlgorithms[] | undefined;
|
|
5983
|
+
id_token_signing_alg_values_supported: import("better-auth/plugins").JWSAlgorithms[] | ["HS256"];
|
|
5984
|
+
}>;
|
|
5985
|
+
oauth2Authorize: import("better-call").StrictEndpoint<"/oauth2/authorize", {
|
|
5986
|
+
method: ("GET" | "POST")[];
|
|
5987
|
+
body: import("zod").ZodObject<{}, import("zod/v4/core").$loose>;
|
|
5988
|
+
redirectOnError: import("@better-auth/oauth-provider").OAuthRedirectOnError<import("better-auth").GenericEndpointContext, {
|
|
5989
|
+
redirect: true;
|
|
5990
|
+
url: string;
|
|
5991
|
+
}>;
|
|
5992
|
+
metadata: {
|
|
5993
|
+
allowedMediaTypes: string[];
|
|
5994
|
+
openapi: {
|
|
5995
|
+
description: string;
|
|
5996
|
+
parameters: ({
|
|
5997
|
+
name: string;
|
|
5998
|
+
in: "query";
|
|
5999
|
+
required: false;
|
|
6000
|
+
schema: {
|
|
6001
|
+
type: "string";
|
|
6002
|
+
format?: undefined;
|
|
6003
|
+
minimum?: undefined;
|
|
6004
|
+
items?: undefined;
|
|
6005
|
+
};
|
|
6006
|
+
description: string;
|
|
6007
|
+
} | {
|
|
6008
|
+
name: string;
|
|
6009
|
+
in: "query";
|
|
6010
|
+
required: true;
|
|
6011
|
+
schema: {
|
|
6012
|
+
type: "string";
|
|
6013
|
+
format?: undefined;
|
|
6014
|
+
minimum?: undefined;
|
|
6015
|
+
items?: undefined;
|
|
6016
|
+
};
|
|
6017
|
+
description: string;
|
|
6018
|
+
} | {
|
|
6019
|
+
name: string;
|
|
6020
|
+
in: "query";
|
|
6021
|
+
required: false;
|
|
6022
|
+
schema: {
|
|
6023
|
+
type: "string";
|
|
6024
|
+
format: string;
|
|
6025
|
+
minimum?: undefined;
|
|
6026
|
+
items?: undefined;
|
|
6027
|
+
};
|
|
6028
|
+
description: string;
|
|
6029
|
+
} | {
|
|
6030
|
+
name: string;
|
|
6031
|
+
in: "query";
|
|
6032
|
+
required: false;
|
|
6033
|
+
schema: {
|
|
6034
|
+
type: "integer";
|
|
6035
|
+
minimum: number;
|
|
6036
|
+
format?: undefined;
|
|
6037
|
+
items?: undefined;
|
|
6038
|
+
};
|
|
6039
|
+
description: string;
|
|
6040
|
+
} | {
|
|
6041
|
+
name: string;
|
|
6042
|
+
in: "query";
|
|
6043
|
+
required: false;
|
|
6044
|
+
schema: {
|
|
6045
|
+
type: "array";
|
|
6046
|
+
items: {
|
|
6047
|
+
type: "string";
|
|
6048
|
+
};
|
|
6049
|
+
format?: undefined;
|
|
6050
|
+
minimum?: undefined;
|
|
6051
|
+
};
|
|
6052
|
+
description: string;
|
|
6053
|
+
})[];
|
|
6054
|
+
responses: {
|
|
6055
|
+
"302": {
|
|
6056
|
+
description: string;
|
|
6057
|
+
headers: {
|
|
6058
|
+
Location: {
|
|
6059
|
+
description: string;
|
|
6060
|
+
schema: {
|
|
6061
|
+
type: string;
|
|
6062
|
+
format: string;
|
|
6063
|
+
};
|
|
6064
|
+
};
|
|
6065
|
+
};
|
|
6066
|
+
};
|
|
6067
|
+
"400": {
|
|
6068
|
+
description: string;
|
|
6069
|
+
content: {
|
|
6070
|
+
"application/json": {
|
|
6071
|
+
schema: {
|
|
6072
|
+
type: "object";
|
|
6073
|
+
properties: {
|
|
6074
|
+
error: {
|
|
6075
|
+
type: string;
|
|
6076
|
+
};
|
|
6077
|
+
error_description: {
|
|
6078
|
+
type: string;
|
|
6079
|
+
};
|
|
6080
|
+
state: {
|
|
6081
|
+
type: string;
|
|
6082
|
+
};
|
|
6083
|
+
};
|
|
6084
|
+
required: string[];
|
|
6085
|
+
};
|
|
6086
|
+
};
|
|
6087
|
+
};
|
|
6088
|
+
};
|
|
6089
|
+
};
|
|
6090
|
+
};
|
|
6091
|
+
};
|
|
6092
|
+
}, {
|
|
6093
|
+
redirect: true;
|
|
6094
|
+
url: string;
|
|
6095
|
+
}>;
|
|
6096
|
+
oauth2Consent: import("better-call").StrictEndpoint<"/oauth2/consent", {
|
|
6097
|
+
method: "POST";
|
|
6098
|
+
body: import("zod").ZodObject<{
|
|
6099
|
+
accept: import("zod").ZodBoolean;
|
|
6100
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6101
|
+
claims: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>]>>;
|
|
6102
|
+
oauth_query: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6103
|
+
}, import("zod/v4/core").$strip>;
|
|
6104
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
6105
|
+
session: {
|
|
6106
|
+
session: Record<string, any> & {
|
|
6107
|
+
id: string;
|
|
6108
|
+
createdAt: Date;
|
|
6109
|
+
updatedAt: Date;
|
|
6110
|
+
userId: string;
|
|
6111
|
+
expiresAt: Date;
|
|
6112
|
+
token: string;
|
|
6113
|
+
ipAddress?: string | null | undefined;
|
|
6114
|
+
userAgent?: string | null | undefined;
|
|
6115
|
+
};
|
|
6116
|
+
user: Record<string, any> & {
|
|
6117
|
+
id: string;
|
|
6118
|
+
createdAt: Date;
|
|
6119
|
+
updatedAt: Date;
|
|
6120
|
+
email: string;
|
|
6121
|
+
emailVerified: boolean;
|
|
6122
|
+
name: string;
|
|
6123
|
+
image?: string | null | undefined;
|
|
6124
|
+
};
|
|
6125
|
+
};
|
|
6126
|
+
}>>[];
|
|
6127
|
+
metadata: {
|
|
6128
|
+
openapi: {
|
|
6129
|
+
description: string;
|
|
6130
|
+
responses: {
|
|
6131
|
+
"200": {
|
|
6132
|
+
description: string;
|
|
6133
|
+
content: {
|
|
6134
|
+
"application/json": {
|
|
6135
|
+
schema: {
|
|
6136
|
+
type: "object";
|
|
6137
|
+
properties: {
|
|
6138
|
+
redirect: {
|
|
6139
|
+
type: string;
|
|
6140
|
+
description: string;
|
|
6141
|
+
enum: boolean[];
|
|
6142
|
+
};
|
|
6143
|
+
url: {
|
|
6144
|
+
type: string;
|
|
6145
|
+
format: string;
|
|
6146
|
+
description: string;
|
|
6147
|
+
};
|
|
6148
|
+
};
|
|
6149
|
+
required: string[];
|
|
6150
|
+
};
|
|
6151
|
+
};
|
|
6152
|
+
};
|
|
6153
|
+
};
|
|
6154
|
+
};
|
|
6155
|
+
};
|
|
6156
|
+
};
|
|
6157
|
+
}, {
|
|
6158
|
+
redirect: true;
|
|
6159
|
+
url: string;
|
|
6160
|
+
} | {
|
|
6161
|
+
redirect: boolean;
|
|
6162
|
+
url: string;
|
|
6163
|
+
}>;
|
|
6164
|
+
oauth2Continue: import("better-call").StrictEndpoint<"/oauth2/continue", {
|
|
6165
|
+
method: "POST";
|
|
6166
|
+
body: import("zod").ZodObject<{
|
|
6167
|
+
selected: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
6168
|
+
created: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
6169
|
+
postLogin: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
6170
|
+
oauth_query: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6171
|
+
}, import("zod/v4/core").$strip>;
|
|
6172
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
6173
|
+
session: {
|
|
6174
|
+
session: Record<string, any> & {
|
|
6175
|
+
id: string;
|
|
6176
|
+
createdAt: Date;
|
|
6177
|
+
updatedAt: Date;
|
|
6178
|
+
userId: string;
|
|
6179
|
+
expiresAt: Date;
|
|
6180
|
+
token: string;
|
|
6181
|
+
ipAddress?: string | null | undefined;
|
|
6182
|
+
userAgent?: string | null | undefined;
|
|
6183
|
+
};
|
|
6184
|
+
user: Record<string, any> & {
|
|
6185
|
+
id: string;
|
|
6186
|
+
createdAt: Date;
|
|
6187
|
+
updatedAt: Date;
|
|
6188
|
+
email: string;
|
|
6189
|
+
emailVerified: boolean;
|
|
6190
|
+
name: string;
|
|
6191
|
+
image?: string | null | undefined;
|
|
6192
|
+
};
|
|
6193
|
+
};
|
|
6194
|
+
}>>[];
|
|
6195
|
+
metadata: {
|
|
6196
|
+
openapi: {
|
|
6197
|
+
description: string;
|
|
6198
|
+
responses: {
|
|
6199
|
+
"200": {
|
|
6200
|
+
description: string;
|
|
6201
|
+
content: {
|
|
6202
|
+
"application/json": {
|
|
6203
|
+
schema: {
|
|
6204
|
+
type: "object";
|
|
6205
|
+
properties: {
|
|
6206
|
+
redirect: {
|
|
6207
|
+
type: string;
|
|
6208
|
+
description: string;
|
|
6209
|
+
enum: boolean[];
|
|
6210
|
+
};
|
|
6211
|
+
url: {
|
|
6212
|
+
type: string;
|
|
6213
|
+
format: string;
|
|
6214
|
+
description: string;
|
|
6215
|
+
};
|
|
6216
|
+
};
|
|
6217
|
+
required: string[];
|
|
6218
|
+
};
|
|
6219
|
+
};
|
|
6220
|
+
};
|
|
6221
|
+
};
|
|
6222
|
+
};
|
|
6223
|
+
};
|
|
6224
|
+
};
|
|
6225
|
+
}, {
|
|
6226
|
+
redirect: true;
|
|
6227
|
+
url: string;
|
|
6228
|
+
}>;
|
|
6229
|
+
oauth2Token: import("better-call").StrictEndpoint<"/oauth2/token", {
|
|
6230
|
+
method: "POST";
|
|
6231
|
+
cloneRequest: true;
|
|
6232
|
+
body: import("zod").ZodObject<{
|
|
6233
|
+
grant_type: import("zod").ZodString;
|
|
6234
|
+
client_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6235
|
+
client_secret: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6236
|
+
client_assertion: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6237
|
+
client_assertion_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6238
|
+
code: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6239
|
+
code_verifier: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6240
|
+
redirect_uri: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
6241
|
+
refresh_token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6242
|
+
resource: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
|
|
6243
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6244
|
+
}, import("zod/v4/core").$loose>;
|
|
6245
|
+
errorCodesByField: {
|
|
6246
|
+
grant_type: {
|
|
6247
|
+
missing: "invalid_request";
|
|
6248
|
+
invalid: "unsupported_grant_type";
|
|
6249
|
+
};
|
|
6250
|
+
resource: {
|
|
6251
|
+
invalid: "invalid_target";
|
|
6252
|
+
};
|
|
6253
|
+
};
|
|
6254
|
+
metadata: {
|
|
6255
|
+
noStore: boolean;
|
|
6256
|
+
allowedMediaTypes: string[];
|
|
6257
|
+
openapi: {
|
|
6258
|
+
description: string;
|
|
6259
|
+
parameters: {
|
|
6260
|
+
name: string;
|
|
6261
|
+
in: "header";
|
|
6262
|
+
required: false;
|
|
6263
|
+
schema: {
|
|
6264
|
+
type: "string";
|
|
6265
|
+
};
|
|
6266
|
+
description: string;
|
|
6267
|
+
}[];
|
|
6268
|
+
requestBody: {
|
|
6269
|
+
required: boolean;
|
|
6270
|
+
content: {
|
|
6271
|
+
"application/json": {
|
|
6272
|
+
schema: {
|
|
6273
|
+
type: "object";
|
|
6274
|
+
properties: {
|
|
6275
|
+
grant_type: {
|
|
6276
|
+
type: string;
|
|
6277
|
+
description: string;
|
|
6278
|
+
};
|
|
6279
|
+
client_id: {
|
|
6280
|
+
type: string;
|
|
6281
|
+
description: string;
|
|
6282
|
+
};
|
|
6283
|
+
client_secret: {
|
|
6284
|
+
type: string;
|
|
6285
|
+
description: string;
|
|
6286
|
+
};
|
|
6287
|
+
code: {
|
|
6288
|
+
type: string;
|
|
6289
|
+
description: string;
|
|
6290
|
+
};
|
|
6291
|
+
code_verifier: {
|
|
6292
|
+
type: string;
|
|
6293
|
+
description: string;
|
|
6294
|
+
};
|
|
6295
|
+
redirect_uri: {
|
|
6296
|
+
type: string;
|
|
6297
|
+
format: string;
|
|
6298
|
+
description: string;
|
|
6299
|
+
};
|
|
6300
|
+
refresh_token: {
|
|
6301
|
+
type: string;
|
|
6302
|
+
description: string;
|
|
6303
|
+
};
|
|
6304
|
+
resource: {
|
|
6305
|
+
oneOf: ({
|
|
6306
|
+
type: string;
|
|
6307
|
+
description: string;
|
|
6308
|
+
items?: undefined;
|
|
6309
|
+
} | {
|
|
6310
|
+
type: string;
|
|
6311
|
+
items: {
|
|
6312
|
+
type: string;
|
|
6313
|
+
};
|
|
6314
|
+
description: string;
|
|
6315
|
+
})[];
|
|
6316
|
+
description: string;
|
|
6317
|
+
};
|
|
6318
|
+
scope: {
|
|
6319
|
+
type: string;
|
|
6320
|
+
description: string;
|
|
6321
|
+
};
|
|
6322
|
+
};
|
|
6323
|
+
required: string[];
|
|
6324
|
+
};
|
|
6325
|
+
};
|
|
6326
|
+
};
|
|
6327
|
+
};
|
|
6328
|
+
responses: {
|
|
6329
|
+
"200": {
|
|
6330
|
+
description: string;
|
|
6331
|
+
content: {
|
|
6332
|
+
"application/json": {
|
|
6333
|
+
schema: {
|
|
6334
|
+
type: "object";
|
|
6335
|
+
properties: {
|
|
6336
|
+
access_token: {
|
|
6337
|
+
type: string;
|
|
6338
|
+
description: string;
|
|
6339
|
+
};
|
|
6340
|
+
token_type: {
|
|
6341
|
+
type: string;
|
|
6342
|
+
description: string;
|
|
6343
|
+
enum: string[];
|
|
6344
|
+
};
|
|
6345
|
+
expires_in: {
|
|
6346
|
+
type: string;
|
|
6347
|
+
description: string;
|
|
6348
|
+
};
|
|
6349
|
+
refresh_token: {
|
|
6350
|
+
type: string;
|
|
6351
|
+
description: string;
|
|
6352
|
+
};
|
|
6353
|
+
scope: {
|
|
6354
|
+
type: string;
|
|
6355
|
+
description: string;
|
|
6356
|
+
};
|
|
6357
|
+
id_token: {
|
|
6358
|
+
type: string;
|
|
6359
|
+
description: string;
|
|
6360
|
+
};
|
|
6361
|
+
};
|
|
6362
|
+
required: string[];
|
|
6363
|
+
};
|
|
6364
|
+
};
|
|
6365
|
+
};
|
|
6366
|
+
};
|
|
6367
|
+
"400": {
|
|
6368
|
+
description: string;
|
|
6369
|
+
content: {
|
|
6370
|
+
"application/json": {
|
|
6371
|
+
schema: {
|
|
6372
|
+
type: "object";
|
|
6373
|
+
properties: {
|
|
6374
|
+
error: {
|
|
6375
|
+
type: string;
|
|
6376
|
+
};
|
|
6377
|
+
error_description: {
|
|
6378
|
+
type: string;
|
|
6379
|
+
};
|
|
6380
|
+
error_uri: {
|
|
6381
|
+
type: string;
|
|
6382
|
+
};
|
|
6383
|
+
};
|
|
6384
|
+
required: string[];
|
|
6385
|
+
};
|
|
6386
|
+
};
|
|
6387
|
+
};
|
|
6388
|
+
};
|
|
6389
|
+
};
|
|
6390
|
+
};
|
|
6391
|
+
};
|
|
6392
|
+
}, {
|
|
6393
|
+
expires_in: number;
|
|
6394
|
+
access_token: string;
|
|
6395
|
+
expires_at: number;
|
|
6396
|
+
token_type: import("@better-auth/oauth-provider").TokenType;
|
|
6397
|
+
refresh_token: string | undefined;
|
|
6398
|
+
scope: string;
|
|
6399
|
+
id_token: string | undefined;
|
|
6400
|
+
}>;
|
|
6401
|
+
oauth2Introspect: import("better-call").StrictEndpoint<"/oauth2/introspect", {
|
|
6402
|
+
method: "POST";
|
|
6403
|
+
cloneRequest: true;
|
|
6404
|
+
body: import("zod").ZodObject<{
|
|
6405
|
+
client_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6406
|
+
client_secret: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6407
|
+
client_assertion: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6408
|
+
client_assertion_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6409
|
+
token: import("zod").ZodString;
|
|
6410
|
+
token_type_hint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6411
|
+
}, import("zod/v4/core").$strip>;
|
|
6412
|
+
metadata: {
|
|
6413
|
+
noStore: boolean;
|
|
6414
|
+
allowedMediaTypes: string[];
|
|
6415
|
+
openapi: {
|
|
6416
|
+
description: string;
|
|
6417
|
+
requestBody: {
|
|
6418
|
+
required: boolean;
|
|
6419
|
+
content: {
|
|
6420
|
+
"application/json": {
|
|
6421
|
+
schema: {
|
|
6422
|
+
type: "object";
|
|
6423
|
+
properties: {
|
|
6424
|
+
client_id: {
|
|
6425
|
+
type: string;
|
|
6426
|
+
description: string;
|
|
6427
|
+
};
|
|
6428
|
+
client_secret: {
|
|
6429
|
+
type: string;
|
|
6430
|
+
description: string;
|
|
6431
|
+
};
|
|
6432
|
+
token: {
|
|
6433
|
+
type: string;
|
|
6434
|
+
description: string;
|
|
6435
|
+
};
|
|
6436
|
+
token_type_hint: {
|
|
6437
|
+
type: string;
|
|
6438
|
+
description: string;
|
|
6439
|
+
};
|
|
6440
|
+
};
|
|
6441
|
+
required: string[];
|
|
6442
|
+
};
|
|
6443
|
+
};
|
|
6444
|
+
};
|
|
6445
|
+
};
|
|
6446
|
+
responses: {
|
|
6447
|
+
"200": {
|
|
6448
|
+
description: string;
|
|
6449
|
+
content: {
|
|
6450
|
+
"application/json": {
|
|
6451
|
+
schema: {
|
|
6452
|
+
type: "object";
|
|
6453
|
+
properties: {
|
|
6454
|
+
active: {
|
|
6455
|
+
type: string;
|
|
6456
|
+
description: string;
|
|
6457
|
+
};
|
|
6458
|
+
scope: {
|
|
6459
|
+
type: string;
|
|
6460
|
+
description: string;
|
|
6461
|
+
};
|
|
6462
|
+
client_id: {
|
|
6463
|
+
type: string;
|
|
6464
|
+
description: string;
|
|
6465
|
+
};
|
|
6466
|
+
username: {
|
|
6467
|
+
type: string;
|
|
6468
|
+
description: string;
|
|
6469
|
+
};
|
|
6470
|
+
token_type: {
|
|
6471
|
+
type: string;
|
|
6472
|
+
description: string;
|
|
6473
|
+
};
|
|
6474
|
+
exp: {
|
|
6475
|
+
type: string;
|
|
6476
|
+
description: string;
|
|
6477
|
+
};
|
|
6478
|
+
iat: {
|
|
6479
|
+
type: string;
|
|
6480
|
+
description: string;
|
|
6481
|
+
};
|
|
6482
|
+
nbf: {
|
|
6483
|
+
type: string;
|
|
6484
|
+
description: string;
|
|
6485
|
+
};
|
|
6486
|
+
sub: {
|
|
6487
|
+
type: string;
|
|
6488
|
+
description: string;
|
|
6489
|
+
};
|
|
6490
|
+
aud: {
|
|
6491
|
+
type: string;
|
|
6492
|
+
description: string;
|
|
6493
|
+
};
|
|
6494
|
+
iss: {
|
|
6495
|
+
type: string;
|
|
6496
|
+
description: string;
|
|
6497
|
+
};
|
|
6498
|
+
jti: {
|
|
6499
|
+
type: string;
|
|
6500
|
+
description: string;
|
|
6501
|
+
};
|
|
6502
|
+
};
|
|
6503
|
+
required: string[];
|
|
6504
|
+
};
|
|
6505
|
+
};
|
|
6506
|
+
};
|
|
6507
|
+
};
|
|
6508
|
+
"400": {
|
|
6509
|
+
description: string;
|
|
6510
|
+
content: {
|
|
6511
|
+
"application/json": {
|
|
6512
|
+
schema: {
|
|
6513
|
+
type: "object";
|
|
6514
|
+
properties: {
|
|
6515
|
+
error: {
|
|
6516
|
+
type: string;
|
|
6517
|
+
};
|
|
6518
|
+
error_description: {
|
|
6519
|
+
type: string;
|
|
6520
|
+
};
|
|
6521
|
+
error_uri: {
|
|
6522
|
+
type: string;
|
|
6523
|
+
};
|
|
6524
|
+
};
|
|
6525
|
+
required: string[];
|
|
6526
|
+
};
|
|
6527
|
+
};
|
|
6528
|
+
};
|
|
6529
|
+
};
|
|
6530
|
+
};
|
|
6531
|
+
};
|
|
6532
|
+
};
|
|
6533
|
+
}, import("jose").JWTPayload>;
|
|
6534
|
+
oauth2Revoke: import("better-call").StrictEndpoint<"/oauth2/revoke", {
|
|
6535
|
+
method: "POST";
|
|
6536
|
+
cloneRequest: true;
|
|
6537
|
+
body: import("zod").ZodObject<{
|
|
6538
|
+
client_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6539
|
+
client_secret: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6540
|
+
client_assertion: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6541
|
+
client_assertion_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6542
|
+
token: import("zod").ZodString;
|
|
6543
|
+
token_type_hint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6544
|
+
}, import("zod/v4/core").$strip>;
|
|
6545
|
+
metadata: {
|
|
6546
|
+
allowedMediaTypes: string[];
|
|
6547
|
+
openapi: {
|
|
6548
|
+
description: string;
|
|
6549
|
+
requestBody: {
|
|
6550
|
+
required: boolean;
|
|
6551
|
+
content: {
|
|
6552
|
+
"application/json": {
|
|
6553
|
+
schema: {
|
|
6554
|
+
type: "object";
|
|
6555
|
+
properties: {
|
|
6556
|
+
client_id: {
|
|
6557
|
+
type: string;
|
|
6558
|
+
description: string;
|
|
6559
|
+
};
|
|
6560
|
+
client_secret: {
|
|
6561
|
+
type: string;
|
|
6562
|
+
description: string;
|
|
6563
|
+
};
|
|
6564
|
+
token: {
|
|
6565
|
+
type: string;
|
|
6566
|
+
description: string;
|
|
6567
|
+
};
|
|
6568
|
+
token_type_hint: {
|
|
6569
|
+
type: string;
|
|
6570
|
+
description: string;
|
|
6571
|
+
};
|
|
6572
|
+
};
|
|
6573
|
+
required: string[];
|
|
6574
|
+
};
|
|
6575
|
+
};
|
|
6576
|
+
};
|
|
6577
|
+
};
|
|
6578
|
+
responses: {
|
|
6579
|
+
"200": {
|
|
6580
|
+
description: string;
|
|
6581
|
+
content: {
|
|
6582
|
+
"application/json": {
|
|
6583
|
+
schema: {
|
|
6584
|
+
type: "object";
|
|
6585
|
+
description: string;
|
|
6586
|
+
};
|
|
6587
|
+
};
|
|
6588
|
+
};
|
|
6589
|
+
};
|
|
6590
|
+
"400": {
|
|
6591
|
+
description: string;
|
|
6592
|
+
content: {
|
|
6593
|
+
"application/json": {
|
|
6594
|
+
schema: {
|
|
6595
|
+
type: "object";
|
|
6596
|
+
properties: {
|
|
6597
|
+
error: {
|
|
6598
|
+
type: string;
|
|
6599
|
+
};
|
|
6600
|
+
error_description: {
|
|
6601
|
+
type: string;
|
|
6602
|
+
};
|
|
6603
|
+
error_uri: {
|
|
6604
|
+
type: string;
|
|
6605
|
+
};
|
|
6606
|
+
};
|
|
6607
|
+
required: string[];
|
|
6608
|
+
};
|
|
6609
|
+
};
|
|
6610
|
+
};
|
|
6611
|
+
};
|
|
6612
|
+
};
|
|
6613
|
+
};
|
|
6614
|
+
};
|
|
6615
|
+
}, null | undefined>;
|
|
6616
|
+
oauth2UserInfo: import("better-call").StrictEndpoint<"/oauth2/userinfo", {
|
|
6617
|
+
method: ("GET" | "POST")[];
|
|
6618
|
+
body: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
6619
|
+
access_token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6620
|
+
}, import("zod/v4/core").$loose>>;
|
|
6621
|
+
metadata: {
|
|
6622
|
+
noStore: boolean;
|
|
6623
|
+
allowedMediaTypes: string[];
|
|
6624
|
+
openapi: {
|
|
6625
|
+
description: string;
|
|
6626
|
+
security: ({
|
|
6627
|
+
bearerAuth: never[];
|
|
6628
|
+
OAuth2?: undefined;
|
|
6629
|
+
} | {
|
|
6630
|
+
OAuth2: string[];
|
|
6631
|
+
bearerAuth?: undefined;
|
|
6632
|
+
})[];
|
|
6633
|
+
parameters: {
|
|
6634
|
+
name: string;
|
|
6635
|
+
in: "header";
|
|
6636
|
+
required: false;
|
|
6637
|
+
schema: {
|
|
6638
|
+
type: "string";
|
|
6639
|
+
};
|
|
6640
|
+
description: string;
|
|
6641
|
+
}[];
|
|
6642
|
+
responses: {
|
|
6643
|
+
"200": {
|
|
6644
|
+
description: string;
|
|
6645
|
+
content: {
|
|
6646
|
+
"application/json": {
|
|
6647
|
+
schema: {
|
|
6648
|
+
type: "object";
|
|
6649
|
+
properties: {
|
|
6650
|
+
sub: {
|
|
6651
|
+
type: string;
|
|
6652
|
+
description: string;
|
|
6653
|
+
};
|
|
6654
|
+
email: {
|
|
6655
|
+
type: string;
|
|
6656
|
+
format: string;
|
|
6657
|
+
nullable: boolean;
|
|
6658
|
+
description: string;
|
|
6659
|
+
};
|
|
6660
|
+
name: {
|
|
6661
|
+
type: string;
|
|
6662
|
+
nullable: boolean;
|
|
6663
|
+
description: string;
|
|
6664
|
+
};
|
|
6665
|
+
picture: {
|
|
6666
|
+
type: string;
|
|
6667
|
+
format: string;
|
|
6668
|
+
nullable: boolean;
|
|
6669
|
+
description: string;
|
|
6670
|
+
};
|
|
6671
|
+
given_name: {
|
|
6672
|
+
type: string;
|
|
6673
|
+
nullable: boolean;
|
|
6674
|
+
description: string;
|
|
6675
|
+
};
|
|
6676
|
+
family_name: {
|
|
6677
|
+
type: string;
|
|
6678
|
+
nullable: boolean;
|
|
6679
|
+
description: string;
|
|
6680
|
+
};
|
|
6681
|
+
email_verified: {
|
|
6682
|
+
type: string;
|
|
6683
|
+
nullable: boolean;
|
|
6684
|
+
description: string;
|
|
6685
|
+
};
|
|
6686
|
+
};
|
|
6687
|
+
required: string[];
|
|
6688
|
+
};
|
|
6689
|
+
};
|
|
6690
|
+
};
|
|
6691
|
+
};
|
|
6692
|
+
"401": {
|
|
6693
|
+
description: string;
|
|
6694
|
+
content: {
|
|
6695
|
+
"application/json": {
|
|
6696
|
+
schema: {
|
|
6697
|
+
type: "object";
|
|
6698
|
+
properties: {
|
|
6699
|
+
error: {
|
|
6700
|
+
type: string;
|
|
6701
|
+
};
|
|
6702
|
+
error_description: {
|
|
6703
|
+
type: string;
|
|
6704
|
+
};
|
|
6705
|
+
};
|
|
6706
|
+
required: string[];
|
|
6707
|
+
};
|
|
6708
|
+
};
|
|
6709
|
+
};
|
|
6710
|
+
};
|
|
6711
|
+
"403": {
|
|
6712
|
+
description: string;
|
|
6713
|
+
content: {
|
|
6714
|
+
"application/json": {
|
|
6715
|
+
schema: {
|
|
6716
|
+
type: "object";
|
|
6717
|
+
properties: {
|
|
6718
|
+
error: {
|
|
6719
|
+
type: string;
|
|
6720
|
+
};
|
|
6721
|
+
error_description: {
|
|
6722
|
+
type: string;
|
|
6723
|
+
};
|
|
6724
|
+
};
|
|
6725
|
+
required: string[];
|
|
6726
|
+
};
|
|
6727
|
+
};
|
|
6728
|
+
};
|
|
6729
|
+
};
|
|
6730
|
+
};
|
|
6731
|
+
};
|
|
6732
|
+
};
|
|
6733
|
+
}, {
|
|
6734
|
+
sub: unknown;
|
|
6735
|
+
}>;
|
|
6736
|
+
oauth2EndSession: import("better-call").StrictEndpoint<"/oauth2/end-session", {
|
|
6737
|
+
method: ("GET" | "POST")[];
|
|
6738
|
+
body: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
6739
|
+
id_token_hint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6740
|
+
client_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6741
|
+
post_logout_redirect_uri: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
6742
|
+
state: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6743
|
+
}, import("zod/v4/core").$strip>>;
|
|
6744
|
+
query: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
6745
|
+
id_token_hint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6746
|
+
client_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6747
|
+
post_logout_redirect_uri: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
6748
|
+
state: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6749
|
+
}, import("zod/v4/core").$strip>>;
|
|
6750
|
+
metadata: {
|
|
6751
|
+
noStore: boolean;
|
|
6752
|
+
allowedMediaTypes: string[];
|
|
6753
|
+
$Infer: {
|
|
6754
|
+
body: {
|
|
6755
|
+
id_token_hint?: string;
|
|
6756
|
+
client_id?: string;
|
|
6757
|
+
post_logout_redirect_uri?: string;
|
|
6758
|
+
state?: string;
|
|
6759
|
+
} | {
|
|
6760
|
+
query: {
|
|
6761
|
+
id_token_hint?: string;
|
|
6762
|
+
client_id?: string;
|
|
6763
|
+
post_logout_redirect_uri?: string;
|
|
6764
|
+
state?: string;
|
|
6765
|
+
};
|
|
6766
|
+
};
|
|
6767
|
+
query: {
|
|
6768
|
+
id_token_hint?: string;
|
|
6769
|
+
client_id?: string;
|
|
6770
|
+
post_logout_redirect_uri?: string;
|
|
6771
|
+
state?: string;
|
|
6772
|
+
};
|
|
6773
|
+
};
|
|
6774
|
+
openapi: {
|
|
6775
|
+
description: string;
|
|
6776
|
+
responses: {
|
|
6777
|
+
"200": {
|
|
6778
|
+
description: string;
|
|
6779
|
+
content: {
|
|
6780
|
+
"application/json": {
|
|
6781
|
+
schema: {
|
|
6782
|
+
type: "object";
|
|
6783
|
+
properties: {
|
|
6784
|
+
redirect_uri: {
|
|
6785
|
+
type: string;
|
|
6786
|
+
format: string;
|
|
6787
|
+
description: string;
|
|
6788
|
+
};
|
|
6789
|
+
message: {
|
|
6790
|
+
type: string;
|
|
6791
|
+
description: string;
|
|
6792
|
+
};
|
|
6793
|
+
};
|
|
6794
|
+
};
|
|
6795
|
+
};
|
|
6796
|
+
"text/html": {
|
|
6797
|
+
schema: {
|
|
6798
|
+
type: "string";
|
|
6799
|
+
};
|
|
6800
|
+
};
|
|
6801
|
+
};
|
|
6802
|
+
};
|
|
6803
|
+
};
|
|
6804
|
+
};
|
|
6805
|
+
};
|
|
6806
|
+
}, Response | {
|
|
6807
|
+
redirect: true;
|
|
6808
|
+
url: string;
|
|
6809
|
+
} | null>;
|
|
6810
|
+
oauth2EndSessionConfirmation: import("better-call").StrictEndpoint<"/oauth2/end-session/confirm", {
|
|
6811
|
+
method: "POST";
|
|
6812
|
+
body: import("zod").ZodObject<{
|
|
6813
|
+
action: import("zod").ZodLiteral<"confirm">;
|
|
6814
|
+
}, import("zod/v4/core").$strip>;
|
|
6815
|
+
metadata: {
|
|
6816
|
+
noStore: boolean;
|
|
6817
|
+
allowedMediaTypes: string[];
|
|
6818
|
+
scope: "http";
|
|
6819
|
+
};
|
|
6820
|
+
}, Response | {
|
|
6821
|
+
redirect: true;
|
|
6822
|
+
url: string;
|
|
6823
|
+
} | null>;
|
|
6824
|
+
registerOAuthClient: import("better-call").StrictEndpoint<"/oauth2/register", {
|
|
6825
|
+
method: "POST";
|
|
6826
|
+
body: import("zod").ZodObject<{
|
|
6827
|
+
redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
6828
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6829
|
+
client_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6830
|
+
client_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6831
|
+
logo_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6832
|
+
contacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
6833
|
+
tos_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6834
|
+
policy_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6835
|
+
software_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6836
|
+
software_version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6837
|
+
software_statement: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6838
|
+
post_logout_redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
6839
|
+
backchannel_logout_uri: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
6840
|
+
backchannel_logout_session_required: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
6841
|
+
token_endpoint_auth_method: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6842
|
+
jwks: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
6843
|
+
keys: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
6844
|
+
}, import("zod/v4/core").$strip>>;
|
|
6845
|
+
jwks_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6846
|
+
grant_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
6847
|
+
response_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
6848
|
+
code: "code";
|
|
6849
|
+
}>>>;
|
|
6850
|
+
application_type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
6851
|
+
web: "web";
|
|
6852
|
+
native: "native";
|
|
6853
|
+
}>>;
|
|
6854
|
+
subject_type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
6855
|
+
public: "public";
|
|
6856
|
+
pairwise: "pairwise";
|
|
6857
|
+
}>>;
|
|
6858
|
+
dpop_bound_access_tokens: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
6859
|
+
resources: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
6860
|
+
skip_consent: import("zod").ZodOptional<import("zod").ZodNever>;
|
|
6861
|
+
}, import("zod/v4/core").$strip>;
|
|
6862
|
+
errorCodesByField: {
|
|
6863
|
+
redirect_uris: "invalid_redirect_uri";
|
|
6864
|
+
post_logout_redirect_uris: "invalid_redirect_uri";
|
|
6865
|
+
software_statement: "invalid_software_statement";
|
|
6866
|
+
resources: "invalid_target";
|
|
6867
|
+
};
|
|
6868
|
+
defaultError: "invalid_client_metadata";
|
|
6869
|
+
metadata: {
|
|
6870
|
+
noStore: boolean;
|
|
6871
|
+
openapi: {
|
|
6872
|
+
description: string;
|
|
6873
|
+
responses: {
|
|
6874
|
+
"201": {
|
|
6875
|
+
description: string;
|
|
6876
|
+
content: {
|
|
6877
|
+
"application/json": {
|
|
6878
|
+
schema: {
|
|
6879
|
+
type: "object";
|
|
6880
|
+
properties: {
|
|
6881
|
+
client_id: {
|
|
6882
|
+
type: string;
|
|
6883
|
+
description: string;
|
|
6884
|
+
};
|
|
6885
|
+
client_secret: {
|
|
6886
|
+
type: string;
|
|
6887
|
+
description: string;
|
|
6888
|
+
};
|
|
6889
|
+
client_secret_expires_at: {
|
|
6890
|
+
type: string;
|
|
6891
|
+
description: string;
|
|
6892
|
+
};
|
|
6893
|
+
scope: {
|
|
6894
|
+
type: string;
|
|
6895
|
+
description: string;
|
|
6896
|
+
};
|
|
6897
|
+
user_id: {
|
|
6898
|
+
type: string;
|
|
6899
|
+
description: string;
|
|
6900
|
+
};
|
|
6901
|
+
client_id_issued_at: {
|
|
6902
|
+
type: string;
|
|
6903
|
+
description: string;
|
|
6904
|
+
};
|
|
6905
|
+
client_name: {
|
|
6906
|
+
type: string;
|
|
6907
|
+
description: string;
|
|
6908
|
+
};
|
|
6909
|
+
client_uri: {
|
|
6910
|
+
type: string;
|
|
6911
|
+
description: string;
|
|
6912
|
+
};
|
|
6913
|
+
logo_uri: {
|
|
6914
|
+
type: string;
|
|
6915
|
+
description: string;
|
|
6916
|
+
};
|
|
6917
|
+
contacts: {
|
|
6918
|
+
type: string;
|
|
6919
|
+
items: {
|
|
6920
|
+
type: string;
|
|
6921
|
+
};
|
|
6922
|
+
description: string;
|
|
6923
|
+
};
|
|
6924
|
+
tos_uri: {
|
|
6925
|
+
type: string;
|
|
6926
|
+
description: string;
|
|
6927
|
+
};
|
|
6928
|
+
policy_uri: {
|
|
6929
|
+
type: string;
|
|
6930
|
+
description: string;
|
|
6931
|
+
};
|
|
6932
|
+
software_id: {
|
|
6933
|
+
type: string;
|
|
6934
|
+
description: string;
|
|
6935
|
+
};
|
|
6936
|
+
software_version: {
|
|
6937
|
+
type: string;
|
|
6938
|
+
description: string;
|
|
6939
|
+
};
|
|
6940
|
+
software_statement: {
|
|
6941
|
+
type: string;
|
|
6942
|
+
description: string;
|
|
6943
|
+
};
|
|
6944
|
+
redirect_uris: {
|
|
6945
|
+
type: string;
|
|
6946
|
+
items: {
|
|
6947
|
+
type: string;
|
|
6948
|
+
format: string;
|
|
6949
|
+
};
|
|
6950
|
+
description: string;
|
|
6951
|
+
};
|
|
6952
|
+
post_logout_redirect_uris: {
|
|
6953
|
+
type: string;
|
|
6954
|
+
items: {
|
|
6955
|
+
type: string;
|
|
6956
|
+
format: string;
|
|
6957
|
+
};
|
|
6958
|
+
description: string;
|
|
6959
|
+
};
|
|
6960
|
+
backchannel_logout_uri: {
|
|
6961
|
+
type: string;
|
|
6962
|
+
format: string;
|
|
6963
|
+
description: string;
|
|
6964
|
+
};
|
|
6965
|
+
backchannel_logout_session_required: {
|
|
6966
|
+
type: string;
|
|
6967
|
+
description: string;
|
|
6968
|
+
};
|
|
6969
|
+
token_endpoint_auth_method: {
|
|
6970
|
+
type: string;
|
|
6971
|
+
description: string;
|
|
6972
|
+
};
|
|
6973
|
+
grant_types: {
|
|
6974
|
+
type: string;
|
|
6975
|
+
items: {
|
|
6976
|
+
type: string;
|
|
6977
|
+
};
|
|
6978
|
+
description: string;
|
|
6979
|
+
};
|
|
6980
|
+
response_types: {
|
|
6981
|
+
type: string;
|
|
6982
|
+
items: {
|
|
6983
|
+
type: string;
|
|
6984
|
+
enum: string[];
|
|
6985
|
+
};
|
|
6986
|
+
description: string;
|
|
6987
|
+
};
|
|
6988
|
+
application_type: {
|
|
6989
|
+
type: string;
|
|
6990
|
+
description: string;
|
|
6991
|
+
enum: string[];
|
|
6992
|
+
};
|
|
6993
|
+
resources: {
|
|
6994
|
+
type: string;
|
|
6995
|
+
items: {
|
|
6996
|
+
type: string;
|
|
6997
|
+
format: string;
|
|
6998
|
+
};
|
|
6999
|
+
description: string;
|
|
7000
|
+
};
|
|
7001
|
+
disabled: {
|
|
7002
|
+
type: string;
|
|
7003
|
+
description: string;
|
|
7004
|
+
};
|
|
7005
|
+
};
|
|
7006
|
+
required: string[];
|
|
7007
|
+
};
|
|
7008
|
+
};
|
|
7009
|
+
};
|
|
7010
|
+
};
|
|
7011
|
+
};
|
|
7012
|
+
};
|
|
7013
|
+
};
|
|
7014
|
+
}, import("@better-auth/oauth-provider").OAuthClientRegistrationResponse>;
|
|
7015
|
+
adminCreateOAuthClient: import("better-call").StrictEndpoint<"/admin/oauth2/create-client", {
|
|
7016
|
+
method: "POST";
|
|
7017
|
+
body: import("zod").ZodObject<{
|
|
7018
|
+
redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
7019
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7020
|
+
client_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7021
|
+
client_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7022
|
+
logo_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7023
|
+
contacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
7024
|
+
tos_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7025
|
+
policy_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7026
|
+
software_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7027
|
+
software_version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7028
|
+
software_statement: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7029
|
+
post_logout_redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
7030
|
+
backchannel_logout_uri: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
7031
|
+
backchannel_logout_session_required: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7032
|
+
token_endpoint_auth_method: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7033
|
+
application_type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
7034
|
+
web: "web";
|
|
7035
|
+
native: "native";
|
|
7036
|
+
}>>;
|
|
7037
|
+
jwks: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
7038
|
+
keys: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
7039
|
+
}, import("zod/v4/core").$strip>>;
|
|
7040
|
+
jwks_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7041
|
+
grant_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
7042
|
+
client_credentials_scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
7043
|
+
resources: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
7044
|
+
response_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
7045
|
+
code: "code";
|
|
7046
|
+
}>>>;
|
|
7047
|
+
client_secret_expires_at: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>>;
|
|
7048
|
+
skip_consent: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7049
|
+
enable_end_session: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7050
|
+
require_pkce: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7051
|
+
dpop_bound_access_tokens: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7052
|
+
subject_type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
7053
|
+
public: "public";
|
|
7054
|
+
pairwise: "pairwise";
|
|
7055
|
+
}>>;
|
|
7056
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
7057
|
+
}, import("zod/v4/core").$strip>;
|
|
7058
|
+
metadata: {
|
|
7059
|
+
noStore: boolean;
|
|
7060
|
+
SERVER_ONLY: true;
|
|
7061
|
+
openapi: {
|
|
7062
|
+
description: string;
|
|
7063
|
+
responses: {
|
|
7064
|
+
"201": {
|
|
7065
|
+
description: string;
|
|
7066
|
+
content: {
|
|
7067
|
+
"application/json": {
|
|
7068
|
+
schema: {
|
|
7069
|
+
type: "object";
|
|
7070
|
+
properties: {
|
|
7071
|
+
client_id: {
|
|
7072
|
+
type: string;
|
|
7073
|
+
description: string;
|
|
7074
|
+
};
|
|
7075
|
+
client_secret: {
|
|
7076
|
+
type: string;
|
|
7077
|
+
description: string;
|
|
7078
|
+
};
|
|
7079
|
+
client_secret_expires_at: {
|
|
7080
|
+
type: string;
|
|
7081
|
+
description: string;
|
|
7082
|
+
};
|
|
7083
|
+
scope: {
|
|
7084
|
+
type: string;
|
|
7085
|
+
description: string;
|
|
7086
|
+
};
|
|
7087
|
+
client_credentials_scopes: {
|
|
7088
|
+
type: string;
|
|
7089
|
+
items: {
|
|
7090
|
+
type: string;
|
|
7091
|
+
};
|
|
7092
|
+
description: string;
|
|
7093
|
+
};
|
|
7094
|
+
user_id: {
|
|
7095
|
+
type: string;
|
|
7096
|
+
description: string;
|
|
7097
|
+
};
|
|
7098
|
+
client_id_issued_at: {
|
|
7099
|
+
type: string;
|
|
7100
|
+
description: string;
|
|
7101
|
+
};
|
|
7102
|
+
client_name: {
|
|
7103
|
+
type: string;
|
|
7104
|
+
description: string;
|
|
7105
|
+
};
|
|
7106
|
+
client_uri: {
|
|
7107
|
+
type: string;
|
|
7108
|
+
description: string;
|
|
7109
|
+
};
|
|
7110
|
+
logo_uri: {
|
|
7111
|
+
type: string;
|
|
7112
|
+
description: string;
|
|
7113
|
+
};
|
|
7114
|
+
contacts: {
|
|
7115
|
+
type: string;
|
|
7116
|
+
items: {
|
|
7117
|
+
type: string;
|
|
7118
|
+
};
|
|
7119
|
+
description: string;
|
|
7120
|
+
};
|
|
7121
|
+
tos_uri: {
|
|
7122
|
+
type: string;
|
|
7123
|
+
description: string;
|
|
7124
|
+
};
|
|
7125
|
+
policy_uri: {
|
|
7126
|
+
type: string;
|
|
7127
|
+
description: string;
|
|
7128
|
+
};
|
|
7129
|
+
software_id: {
|
|
7130
|
+
type: string;
|
|
7131
|
+
description: string;
|
|
7132
|
+
};
|
|
7133
|
+
software_version: {
|
|
7134
|
+
type: string;
|
|
7135
|
+
description: string;
|
|
7136
|
+
};
|
|
7137
|
+
software_statement: {
|
|
7138
|
+
type: string;
|
|
7139
|
+
description: string;
|
|
7140
|
+
};
|
|
7141
|
+
redirect_uris: {
|
|
7142
|
+
type: string;
|
|
7143
|
+
items: {
|
|
7144
|
+
type: string;
|
|
7145
|
+
format: string;
|
|
7146
|
+
};
|
|
7147
|
+
description: string;
|
|
7148
|
+
};
|
|
7149
|
+
token_endpoint_auth_method: {
|
|
7150
|
+
type: string;
|
|
7151
|
+
description: string;
|
|
7152
|
+
};
|
|
7153
|
+
grant_types: {
|
|
7154
|
+
type: string;
|
|
7155
|
+
items: {
|
|
7156
|
+
type: string;
|
|
7157
|
+
};
|
|
7158
|
+
description: string;
|
|
7159
|
+
};
|
|
7160
|
+
response_types: {
|
|
7161
|
+
type: string;
|
|
7162
|
+
items: {
|
|
7163
|
+
type: string;
|
|
7164
|
+
enum: string[];
|
|
7165
|
+
};
|
|
7166
|
+
description: string;
|
|
7167
|
+
};
|
|
7168
|
+
application_type: {
|
|
7169
|
+
type: string;
|
|
7170
|
+
description: string;
|
|
7171
|
+
enum: string[];
|
|
7172
|
+
};
|
|
7173
|
+
resources: {
|
|
7174
|
+
type: string;
|
|
7175
|
+
items: {
|
|
7176
|
+
type: string;
|
|
7177
|
+
format: string;
|
|
7178
|
+
};
|
|
7179
|
+
description: string;
|
|
7180
|
+
};
|
|
7181
|
+
disabled: {
|
|
7182
|
+
type: string;
|
|
7183
|
+
description: string;
|
|
7184
|
+
};
|
|
7185
|
+
require_pkce: {
|
|
7186
|
+
type: string;
|
|
7187
|
+
description: string;
|
|
7188
|
+
default: boolean;
|
|
7189
|
+
};
|
|
7190
|
+
metadata: {
|
|
7191
|
+
type: string;
|
|
7192
|
+
additionalProperties: boolean;
|
|
7193
|
+
nullable: boolean;
|
|
7194
|
+
description: string;
|
|
7195
|
+
};
|
|
7196
|
+
};
|
|
7197
|
+
required: string[];
|
|
7198
|
+
};
|
|
7199
|
+
};
|
|
7200
|
+
};
|
|
7201
|
+
};
|
|
7202
|
+
};
|
|
7203
|
+
};
|
|
7204
|
+
};
|
|
7205
|
+
}, import("@better-auth/oauth-provider").OAuthClientAdministrativeResponse>;
|
|
7206
|
+
createOAuthClient: import("better-call").StrictEndpoint<"/oauth2/create-client", {
|
|
7207
|
+
method: "POST";
|
|
7208
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
7209
|
+
session: {
|
|
7210
|
+
session: Record<string, any> & {
|
|
7211
|
+
id: string;
|
|
7212
|
+
createdAt: Date;
|
|
7213
|
+
updatedAt: Date;
|
|
7214
|
+
userId: string;
|
|
7215
|
+
expiresAt: Date;
|
|
7216
|
+
token: string;
|
|
7217
|
+
ipAddress?: string | null | undefined;
|
|
7218
|
+
userAgent?: string | null | undefined;
|
|
7219
|
+
};
|
|
7220
|
+
user: Record<string, any> & {
|
|
7221
|
+
id: string;
|
|
7222
|
+
createdAt: Date;
|
|
7223
|
+
updatedAt: Date;
|
|
7224
|
+
email: string;
|
|
7225
|
+
emailVerified: boolean;
|
|
7226
|
+
name: string;
|
|
7227
|
+
image?: string | null | undefined;
|
|
7228
|
+
};
|
|
7229
|
+
};
|
|
7230
|
+
}>>[];
|
|
7231
|
+
body: import("zod").ZodObject<{
|
|
7232
|
+
redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
7233
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7234
|
+
client_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7235
|
+
client_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7236
|
+
logo_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7237
|
+
contacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
7238
|
+
tos_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7239
|
+
policy_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7240
|
+
software_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7241
|
+
software_version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7242
|
+
software_statement: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7243
|
+
post_logout_redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
7244
|
+
backchannel_logout_uri: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
7245
|
+
backchannel_logout_session_required: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7246
|
+
token_endpoint_auth_method: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7247
|
+
application_type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
7248
|
+
web: "web";
|
|
7249
|
+
native: "native";
|
|
7250
|
+
}>>;
|
|
7251
|
+
jwks: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
7252
|
+
keys: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
7253
|
+
}, import("zod/v4/core").$strip>>;
|
|
7254
|
+
jwks_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7255
|
+
grant_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
7256
|
+
response_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
7257
|
+
code: "code";
|
|
7258
|
+
}>>>;
|
|
7259
|
+
dpop_bound_access_tokens: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7260
|
+
}, import("zod/v4/core").$strip>;
|
|
7261
|
+
metadata: {
|
|
7262
|
+
noStore: boolean;
|
|
7263
|
+
openapi: {
|
|
7264
|
+
description: string;
|
|
7265
|
+
responses: {
|
|
7266
|
+
"201": {
|
|
7267
|
+
description: string;
|
|
7268
|
+
content: {
|
|
7269
|
+
"application/json": {
|
|
7270
|
+
schema: {
|
|
7271
|
+
type: "object";
|
|
7272
|
+
properties: {
|
|
7273
|
+
client_id: {
|
|
7274
|
+
type: string;
|
|
7275
|
+
description: string;
|
|
7276
|
+
};
|
|
7277
|
+
client_secret: {
|
|
7278
|
+
type: string;
|
|
7279
|
+
description: string;
|
|
7280
|
+
};
|
|
7281
|
+
client_secret_expires_at: {
|
|
7282
|
+
type: string;
|
|
7283
|
+
description: string;
|
|
7284
|
+
};
|
|
7285
|
+
scope: {
|
|
7286
|
+
type: string;
|
|
7287
|
+
description: string;
|
|
7288
|
+
};
|
|
7289
|
+
user_id: {
|
|
7290
|
+
type: string;
|
|
7291
|
+
description: string;
|
|
7292
|
+
};
|
|
7293
|
+
client_id_issued_at: {
|
|
7294
|
+
type: string;
|
|
7295
|
+
description: string;
|
|
7296
|
+
};
|
|
7297
|
+
client_name: {
|
|
7298
|
+
type: string;
|
|
7299
|
+
description: string;
|
|
7300
|
+
};
|
|
7301
|
+
client_uri: {
|
|
7302
|
+
type: string;
|
|
7303
|
+
description: string;
|
|
7304
|
+
};
|
|
7305
|
+
logo_uri: {
|
|
7306
|
+
type: string;
|
|
7307
|
+
description: string;
|
|
7308
|
+
};
|
|
7309
|
+
contacts: {
|
|
7310
|
+
type: string;
|
|
7311
|
+
items: {
|
|
7312
|
+
type: string;
|
|
7313
|
+
};
|
|
7314
|
+
description: string;
|
|
7315
|
+
};
|
|
7316
|
+
tos_uri: {
|
|
7317
|
+
type: string;
|
|
7318
|
+
description: string;
|
|
7319
|
+
};
|
|
7320
|
+
policy_uri: {
|
|
7321
|
+
type: string;
|
|
7322
|
+
description: string;
|
|
7323
|
+
};
|
|
7324
|
+
software_id: {
|
|
7325
|
+
type: string;
|
|
7326
|
+
description: string;
|
|
7327
|
+
};
|
|
7328
|
+
software_version: {
|
|
7329
|
+
type: string;
|
|
7330
|
+
description: string;
|
|
7331
|
+
};
|
|
7332
|
+
software_statement: {
|
|
7333
|
+
type: string;
|
|
7334
|
+
description: string;
|
|
7335
|
+
};
|
|
7336
|
+
redirect_uris: {
|
|
7337
|
+
type: string;
|
|
7338
|
+
items: {
|
|
7339
|
+
type: string;
|
|
7340
|
+
format: string;
|
|
7341
|
+
};
|
|
7342
|
+
description: string;
|
|
7343
|
+
};
|
|
7344
|
+
token_endpoint_auth_method: {
|
|
7345
|
+
type: string;
|
|
7346
|
+
description: string;
|
|
7347
|
+
};
|
|
7348
|
+
grant_types: {
|
|
7349
|
+
type: string;
|
|
7350
|
+
items: {
|
|
7351
|
+
type: string;
|
|
7352
|
+
};
|
|
7353
|
+
description: string;
|
|
7354
|
+
};
|
|
7355
|
+
response_types: {
|
|
7356
|
+
type: string;
|
|
7357
|
+
items: {
|
|
7358
|
+
type: string;
|
|
7359
|
+
enum: string[];
|
|
7360
|
+
};
|
|
7361
|
+
description: string;
|
|
7362
|
+
};
|
|
7363
|
+
application_type: {
|
|
7364
|
+
type: string;
|
|
7365
|
+
description: string;
|
|
7366
|
+
enum: string[];
|
|
7367
|
+
};
|
|
7368
|
+
resources: {
|
|
7369
|
+
type: string;
|
|
7370
|
+
items: {
|
|
7371
|
+
type: string;
|
|
7372
|
+
format: string;
|
|
7373
|
+
};
|
|
7374
|
+
description: string;
|
|
7375
|
+
};
|
|
7376
|
+
disabled: {
|
|
7377
|
+
type: string;
|
|
7378
|
+
description: string;
|
|
7379
|
+
};
|
|
7380
|
+
metadata: {
|
|
7381
|
+
type: string;
|
|
7382
|
+
additionalProperties: boolean;
|
|
7383
|
+
nullable: boolean;
|
|
7384
|
+
description: string;
|
|
7385
|
+
};
|
|
7386
|
+
};
|
|
7387
|
+
required: string[];
|
|
7388
|
+
};
|
|
7389
|
+
};
|
|
7390
|
+
};
|
|
7391
|
+
};
|
|
7392
|
+
};
|
|
7393
|
+
};
|
|
7394
|
+
};
|
|
7395
|
+
}, import("@better-auth/oauth-provider").OAuthClientRegistrationResponse>;
|
|
7396
|
+
getOAuthClient: import("better-call").StrictEndpoint<"/oauth2/get-client", {
|
|
7397
|
+
method: "GET";
|
|
7398
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
7399
|
+
session: {
|
|
7400
|
+
session: Record<string, any> & {
|
|
7401
|
+
id: string;
|
|
7402
|
+
createdAt: Date;
|
|
7403
|
+
updatedAt: Date;
|
|
7404
|
+
userId: string;
|
|
7405
|
+
expiresAt: Date;
|
|
7406
|
+
token: string;
|
|
7407
|
+
ipAddress?: string | null | undefined;
|
|
7408
|
+
userAgent?: string | null | undefined;
|
|
7409
|
+
};
|
|
7410
|
+
user: Record<string, any> & {
|
|
7411
|
+
id: string;
|
|
7412
|
+
createdAt: Date;
|
|
7413
|
+
updatedAt: Date;
|
|
7414
|
+
email: string;
|
|
7415
|
+
emailVerified: boolean;
|
|
7416
|
+
name: string;
|
|
7417
|
+
image?: string | null | undefined;
|
|
7418
|
+
};
|
|
7419
|
+
};
|
|
7420
|
+
}>>[];
|
|
7421
|
+
query: import("zod").ZodObject<{
|
|
7422
|
+
client_id: import("zod").ZodString;
|
|
7423
|
+
}, import("zod/v4/core").$strip>;
|
|
7424
|
+
metadata: {
|
|
7425
|
+
openapi: {
|
|
7426
|
+
description: string;
|
|
7427
|
+
};
|
|
7428
|
+
};
|
|
7429
|
+
}, import("@better-auth/oauth-provider").OAuthClient>;
|
|
7430
|
+
getOAuthClientPublic: import("better-call").StrictEndpoint<"/oauth2/public-client", {
|
|
7431
|
+
method: "GET";
|
|
7432
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
7433
|
+
session: {
|
|
7434
|
+
session: Record<string, any> & {
|
|
7435
|
+
id: string;
|
|
7436
|
+
createdAt: Date;
|
|
7437
|
+
updatedAt: Date;
|
|
7438
|
+
userId: string;
|
|
7439
|
+
expiresAt: Date;
|
|
7440
|
+
token: string;
|
|
7441
|
+
ipAddress?: string | null | undefined;
|
|
7442
|
+
userAgent?: string | null | undefined;
|
|
7443
|
+
};
|
|
7444
|
+
user: Record<string, any> & {
|
|
7445
|
+
id: string;
|
|
7446
|
+
createdAt: Date;
|
|
7447
|
+
updatedAt: Date;
|
|
7448
|
+
email: string;
|
|
7449
|
+
emailVerified: boolean;
|
|
7450
|
+
name: string;
|
|
7451
|
+
image?: string | null | undefined;
|
|
7452
|
+
};
|
|
7453
|
+
};
|
|
7454
|
+
}>>[];
|
|
7455
|
+
query: import("zod").ZodObject<{
|
|
7456
|
+
client_id: import("zod").ZodString;
|
|
7457
|
+
}, import("zod/v4/core").$strip>;
|
|
7458
|
+
metadata: {
|
|
7459
|
+
openapi: {
|
|
7460
|
+
description: string;
|
|
7461
|
+
};
|
|
7462
|
+
};
|
|
7463
|
+
}, import("@better-auth/oauth-provider").OAuthClient>;
|
|
7464
|
+
getOAuthClientPublicPrelogin: import("better-call").StrictEndpoint<"/oauth2/public-client-prelogin", {
|
|
7465
|
+
method: "POST";
|
|
7466
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>[];
|
|
7467
|
+
body: import("zod").ZodObject<{
|
|
7468
|
+
client_id: import("zod").ZodString;
|
|
7469
|
+
oauth_query: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7470
|
+
}, import("zod/v4/core").$strip>;
|
|
7471
|
+
metadata: {
|
|
7472
|
+
openapi: {
|
|
7473
|
+
description: string;
|
|
7474
|
+
};
|
|
7475
|
+
};
|
|
7476
|
+
}, import("@better-auth/oauth-provider").OAuthClient>;
|
|
7477
|
+
getOAuthClients: import("better-call").StrictEndpoint<"/oauth2/get-clients", {
|
|
7478
|
+
method: "GET";
|
|
7479
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
7480
|
+
session: {
|
|
7481
|
+
session: Record<string, any> & {
|
|
7482
|
+
id: string;
|
|
7483
|
+
createdAt: Date;
|
|
7484
|
+
updatedAt: Date;
|
|
7485
|
+
userId: string;
|
|
7486
|
+
expiresAt: Date;
|
|
7487
|
+
token: string;
|
|
7488
|
+
ipAddress?: string | null | undefined;
|
|
7489
|
+
userAgent?: string | null | undefined;
|
|
7490
|
+
};
|
|
7491
|
+
user: Record<string, any> & {
|
|
7492
|
+
id: string;
|
|
7493
|
+
createdAt: Date;
|
|
7494
|
+
updatedAt: Date;
|
|
7495
|
+
email: string;
|
|
7496
|
+
emailVerified: boolean;
|
|
7497
|
+
name: string;
|
|
7498
|
+
image?: string | null | undefined;
|
|
7499
|
+
};
|
|
7500
|
+
};
|
|
7501
|
+
}>>[];
|
|
7502
|
+
metadata: {
|
|
7503
|
+
openapi: {
|
|
7504
|
+
description: string;
|
|
7505
|
+
};
|
|
7506
|
+
};
|
|
7507
|
+
}, import("@better-auth/oauth-provider").OAuthClient[] | null>;
|
|
7508
|
+
adminUpdateOAuthClient: import("better-call").StrictEndpoint<"/admin/oauth2/update-client", {
|
|
7509
|
+
method: "PATCH";
|
|
7510
|
+
body: import("zod").ZodObject<{
|
|
7511
|
+
client_id: import("zod").ZodString;
|
|
7512
|
+
update: import("zod").ZodObject<{
|
|
7513
|
+
redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
7514
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7515
|
+
client_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7516
|
+
client_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7517
|
+
logo_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7518
|
+
contacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
7519
|
+
tos_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7520
|
+
policy_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7521
|
+
software_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7522
|
+
software_version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7523
|
+
software_statement: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7524
|
+
post_logout_redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
7525
|
+
backchannel_logout_uri: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
7526
|
+
backchannel_logout_session_required: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7527
|
+
application_type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
7528
|
+
web: "web";
|
|
7529
|
+
native: "native";
|
|
7530
|
+
}>>;
|
|
7531
|
+
grant_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
7532
|
+
client_credentials_scopes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
7533
|
+
response_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
7534
|
+
code: "code";
|
|
7535
|
+
}>>>;
|
|
7536
|
+
client_secret_expires_at: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
7537
|
+
skip_consent: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7538
|
+
enable_end_session: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7539
|
+
disabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7540
|
+
dpop_bound_access_tokens: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7541
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
7542
|
+
}, import("zod/v4/core").$strip>;
|
|
7543
|
+
}, import("zod/v4/core").$strip>;
|
|
7544
|
+
metadata: {
|
|
7545
|
+
SERVER_ONLY: true;
|
|
7546
|
+
openapi: {
|
|
7547
|
+
description: string;
|
|
7548
|
+
};
|
|
7549
|
+
};
|
|
7550
|
+
}, import("@better-auth/oauth-provider").OAuthClientAdministrativeResponse>;
|
|
7551
|
+
updateOAuthClient: import("better-call").StrictEndpoint<"/oauth2/update-client", {
|
|
7552
|
+
method: "POST";
|
|
7553
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
7554
|
+
session: {
|
|
7555
|
+
session: Record<string, any> & {
|
|
7556
|
+
id: string;
|
|
7557
|
+
createdAt: Date;
|
|
7558
|
+
updatedAt: Date;
|
|
7559
|
+
userId: string;
|
|
7560
|
+
expiresAt: Date;
|
|
7561
|
+
token: string;
|
|
7562
|
+
ipAddress?: string | null | undefined;
|
|
7563
|
+
userAgent?: string | null | undefined;
|
|
7564
|
+
};
|
|
7565
|
+
user: Record<string, any> & {
|
|
7566
|
+
id: string;
|
|
7567
|
+
createdAt: Date;
|
|
7568
|
+
updatedAt: Date;
|
|
7569
|
+
email: string;
|
|
7570
|
+
emailVerified: boolean;
|
|
7571
|
+
name: string;
|
|
7572
|
+
image?: string | null | undefined;
|
|
7573
|
+
};
|
|
7574
|
+
};
|
|
7575
|
+
}>>[];
|
|
7576
|
+
body: import("zod").ZodObject<{
|
|
7577
|
+
client_id: import("zod").ZodString;
|
|
7578
|
+
update: import("zod").ZodObject<{
|
|
7579
|
+
redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
7580
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7581
|
+
client_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7582
|
+
client_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7583
|
+
logo_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7584
|
+
contacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
7585
|
+
tos_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7586
|
+
policy_uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7587
|
+
software_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7588
|
+
software_version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7589
|
+
software_statement: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7590
|
+
post_logout_redirect_uris: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodURL>>;
|
|
7591
|
+
backchannel_logout_uri: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
7592
|
+
backchannel_logout_session_required: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7593
|
+
application_type: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
7594
|
+
web: "web";
|
|
7595
|
+
native: "native";
|
|
7596
|
+
}>>;
|
|
7597
|
+
grant_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
7598
|
+
response_types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
7599
|
+
code: "code";
|
|
7600
|
+
}>>>;
|
|
7601
|
+
}, import("zod/v4/core").$strip>;
|
|
7602
|
+
}, import("zod/v4/core").$strip>;
|
|
7603
|
+
metadata: {
|
|
7604
|
+
openapi: {
|
|
7605
|
+
description: string;
|
|
7606
|
+
};
|
|
7607
|
+
};
|
|
7608
|
+
}, import("@better-auth/oauth-provider").OAuthClientRegistrationResponse>;
|
|
7609
|
+
rotateClientSecret: import("better-call").StrictEndpoint<"/oauth2/client/rotate-secret", {
|
|
7610
|
+
method: "POST";
|
|
7611
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
7612
|
+
session: {
|
|
7613
|
+
session: Record<string, any> & {
|
|
7614
|
+
id: string;
|
|
7615
|
+
createdAt: Date;
|
|
7616
|
+
updatedAt: Date;
|
|
7617
|
+
userId: string;
|
|
7618
|
+
expiresAt: Date;
|
|
7619
|
+
token: string;
|
|
7620
|
+
ipAddress?: string | null | undefined;
|
|
7621
|
+
userAgent?: string | null | undefined;
|
|
7622
|
+
};
|
|
7623
|
+
user: Record<string, any> & {
|
|
7624
|
+
id: string;
|
|
7625
|
+
createdAt: Date;
|
|
7626
|
+
updatedAt: Date;
|
|
7627
|
+
email: string;
|
|
7628
|
+
emailVerified: boolean;
|
|
7629
|
+
name: string;
|
|
7630
|
+
image?: string | null | undefined;
|
|
7631
|
+
};
|
|
7632
|
+
};
|
|
7633
|
+
}>>[];
|
|
7634
|
+
body: import("zod").ZodObject<{
|
|
7635
|
+
client_id: import("zod").ZodString;
|
|
7636
|
+
}, import("zod/v4/core").$strip>;
|
|
7637
|
+
metadata: {
|
|
7638
|
+
noStore: boolean;
|
|
7639
|
+
openapi: {
|
|
7640
|
+
description: string;
|
|
7641
|
+
};
|
|
7642
|
+
};
|
|
7643
|
+
}, import("@better-auth/oauth-provider").OAuthClient>;
|
|
7644
|
+
rotateClientKeys: import("better-call").StrictEndpoint<"/oauth2/client/rotate-keys", {
|
|
7645
|
+
method: "POST";
|
|
7646
|
+
body: import("zod").ZodObject<{
|
|
7647
|
+
client_assertion: import("zod").ZodString;
|
|
7648
|
+
client_assertion_type: import("zod").ZodString;
|
|
7649
|
+
jwks: import("zod").ZodObject<{
|
|
7650
|
+
keys: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
7651
|
+
}, import("zod/v4/core").$strip>;
|
|
7652
|
+
}, import("zod/v4/core").$strip>;
|
|
7653
|
+
errorCodesByField: {
|
|
7654
|
+
client_assertion: "invalid_client";
|
|
7655
|
+
client_assertion_type: "invalid_client";
|
|
7656
|
+
jwks: "invalid_client_metadata";
|
|
7657
|
+
};
|
|
7658
|
+
metadata: {
|
|
7659
|
+
noStore: boolean;
|
|
7660
|
+
openapi: {
|
|
7661
|
+
description: string;
|
|
7662
|
+
};
|
|
7663
|
+
};
|
|
7664
|
+
}, {
|
|
7665
|
+
client_id: string;
|
|
7666
|
+
jwks: {
|
|
7667
|
+
keys: Record<string, unknown>[];
|
|
7668
|
+
};
|
|
7669
|
+
}>;
|
|
7670
|
+
deleteOAuthClient: import("better-call").StrictEndpoint<"/oauth2/delete-client", {
|
|
7671
|
+
method: "POST";
|
|
7672
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
7673
|
+
session: {
|
|
7674
|
+
session: Record<string, any> & {
|
|
7675
|
+
id: string;
|
|
7676
|
+
createdAt: Date;
|
|
7677
|
+
updatedAt: Date;
|
|
7678
|
+
userId: string;
|
|
7679
|
+
expiresAt: Date;
|
|
7680
|
+
token: string;
|
|
7681
|
+
ipAddress?: string | null | undefined;
|
|
7682
|
+
userAgent?: string | null | undefined;
|
|
7683
|
+
};
|
|
7684
|
+
user: Record<string, any> & {
|
|
7685
|
+
id: string;
|
|
7686
|
+
createdAt: Date;
|
|
7687
|
+
updatedAt: Date;
|
|
7688
|
+
email: string;
|
|
7689
|
+
emailVerified: boolean;
|
|
7690
|
+
name: string;
|
|
7691
|
+
image?: string | null | undefined;
|
|
7692
|
+
};
|
|
7693
|
+
};
|
|
7694
|
+
}>>[];
|
|
7695
|
+
body: import("zod").ZodObject<{
|
|
7696
|
+
client_id: import("zod").ZodString;
|
|
7697
|
+
}, import("zod/v4/core").$strip>;
|
|
7698
|
+
metadata: {
|
|
7699
|
+
openapi: {
|
|
7700
|
+
description: string;
|
|
7701
|
+
};
|
|
7702
|
+
};
|
|
7703
|
+
}, void>;
|
|
7704
|
+
getOAuthConsent: import("better-call").StrictEndpoint<"/oauth2/get-consent", {
|
|
7705
|
+
method: "GET";
|
|
7706
|
+
query: import("zod").ZodObject<{
|
|
7707
|
+
id: import("zod").ZodString;
|
|
7708
|
+
}, import("zod/v4/core").$strip>;
|
|
7709
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
7710
|
+
session: {
|
|
7711
|
+
session: Record<string, any> & {
|
|
7712
|
+
id: string;
|
|
7713
|
+
createdAt: Date;
|
|
7714
|
+
updatedAt: Date;
|
|
7715
|
+
userId: string;
|
|
7716
|
+
expiresAt: Date;
|
|
7717
|
+
token: string;
|
|
7718
|
+
ipAddress?: string | null | undefined;
|
|
7719
|
+
userAgent?: string | null | undefined;
|
|
7720
|
+
};
|
|
7721
|
+
user: Record<string, any> & {
|
|
7722
|
+
id: string;
|
|
7723
|
+
createdAt: Date;
|
|
7724
|
+
updatedAt: Date;
|
|
7725
|
+
email: string;
|
|
7726
|
+
emailVerified: boolean;
|
|
7727
|
+
name: string;
|
|
7728
|
+
image?: string | null | undefined;
|
|
7729
|
+
};
|
|
7730
|
+
};
|
|
7731
|
+
}>>[];
|
|
7732
|
+
metadata: {
|
|
7733
|
+
openapi: {
|
|
7734
|
+
description: string;
|
|
7735
|
+
};
|
|
7736
|
+
};
|
|
7737
|
+
}, import("@better-auth/oauth-provider").OAuthConsent<import("@better-auth/oauth-provider").Scope[]>>;
|
|
7738
|
+
getOAuthConsents: import("better-call").StrictEndpoint<"/oauth2/get-consents", {
|
|
7739
|
+
method: "GET";
|
|
7740
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
7741
|
+
session: {
|
|
7742
|
+
session: Record<string, any> & {
|
|
7743
|
+
id: string;
|
|
7744
|
+
createdAt: Date;
|
|
7745
|
+
updatedAt: Date;
|
|
7746
|
+
userId: string;
|
|
7747
|
+
expiresAt: Date;
|
|
7748
|
+
token: string;
|
|
7749
|
+
ipAddress?: string | null | undefined;
|
|
7750
|
+
userAgent?: string | null | undefined;
|
|
7751
|
+
};
|
|
7752
|
+
user: Record<string, any> & {
|
|
7753
|
+
id: string;
|
|
7754
|
+
createdAt: Date;
|
|
7755
|
+
updatedAt: Date;
|
|
7756
|
+
email: string;
|
|
7757
|
+
emailVerified: boolean;
|
|
7758
|
+
name: string;
|
|
7759
|
+
image?: string | null | undefined;
|
|
7760
|
+
};
|
|
7761
|
+
};
|
|
7762
|
+
}>>[];
|
|
7763
|
+
metadata: {
|
|
7764
|
+
openapi: {
|
|
7765
|
+
description: string;
|
|
7766
|
+
};
|
|
7767
|
+
};
|
|
7768
|
+
}, import("@better-auth/oauth-provider").OAuthConsent<import("@better-auth/oauth-provider").Scope[]>[]>;
|
|
7769
|
+
updateOAuthConsent: import("better-call").StrictEndpoint<"/oauth2/update-consent", {
|
|
7770
|
+
method: "POST";
|
|
7771
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
7772
|
+
session: {
|
|
7773
|
+
session: Record<string, any> & {
|
|
7774
|
+
id: string;
|
|
7775
|
+
createdAt: Date;
|
|
7776
|
+
updatedAt: Date;
|
|
7777
|
+
userId: string;
|
|
7778
|
+
expiresAt: Date;
|
|
7779
|
+
token: string;
|
|
7780
|
+
ipAddress?: string | null | undefined;
|
|
7781
|
+
userAgent?: string | null | undefined;
|
|
7782
|
+
};
|
|
7783
|
+
user: Record<string, any> & {
|
|
7784
|
+
id: string;
|
|
7785
|
+
createdAt: Date;
|
|
7786
|
+
updatedAt: Date;
|
|
7787
|
+
email: string;
|
|
7788
|
+
emailVerified: boolean;
|
|
7789
|
+
name: string;
|
|
7790
|
+
image?: string | null | undefined;
|
|
7791
|
+
};
|
|
7792
|
+
};
|
|
7793
|
+
}>>[];
|
|
7794
|
+
body: import("zod").ZodObject<{
|
|
7795
|
+
id: import("zod").ZodString;
|
|
7796
|
+
update: import("zod").ZodObject<{
|
|
7797
|
+
scopes: import("zod").ZodArray<import("zod").ZodString>;
|
|
7798
|
+
}, import("zod/v4/core").$strip>;
|
|
7799
|
+
}, import("zod/v4/core").$strip>;
|
|
7800
|
+
metadata: {
|
|
7801
|
+
openapi: {
|
|
7802
|
+
description: string;
|
|
7803
|
+
};
|
|
7804
|
+
};
|
|
7805
|
+
}, import("@better-auth/oauth-provider").OAuthConsent<import("@better-auth/oauth-provider").Scope[]> | null>;
|
|
7806
|
+
deleteOAuthConsent: import("better-call").StrictEndpoint<"/oauth2/delete-consent", {
|
|
7807
|
+
method: "POST";
|
|
7808
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
7809
|
+
session: {
|
|
7810
|
+
session: Record<string, any> & {
|
|
7811
|
+
id: string;
|
|
7812
|
+
createdAt: Date;
|
|
7813
|
+
updatedAt: Date;
|
|
7814
|
+
userId: string;
|
|
7815
|
+
expiresAt: Date;
|
|
7816
|
+
token: string;
|
|
7817
|
+
ipAddress?: string | null | undefined;
|
|
7818
|
+
userAgent?: string | null | undefined;
|
|
7819
|
+
};
|
|
7820
|
+
user: Record<string, any> & {
|
|
7821
|
+
id: string;
|
|
7822
|
+
createdAt: Date;
|
|
7823
|
+
updatedAt: Date;
|
|
7824
|
+
email: string;
|
|
7825
|
+
emailVerified: boolean;
|
|
7826
|
+
name: string;
|
|
7827
|
+
image?: string | null | undefined;
|
|
7828
|
+
};
|
|
7829
|
+
};
|
|
7830
|
+
}>>[];
|
|
7831
|
+
body: import("zod").ZodObject<{
|
|
7832
|
+
id: import("zod").ZodString;
|
|
7833
|
+
}, import("zod/v4/core").$strip>;
|
|
7834
|
+
metadata: {
|
|
7835
|
+
openapi: {
|
|
7836
|
+
description: string;
|
|
7837
|
+
};
|
|
7838
|
+
};
|
|
7839
|
+
}, void>;
|
|
7840
|
+
adminCreateOAuthResource: import("better-call").StrictEndpoint<"/admin/oauth2/resources", {
|
|
7841
|
+
method: "POST";
|
|
7842
|
+
body: import("zod").ZodObject<{
|
|
7843
|
+
identifier: import("zod").ZodNonOptional<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
7844
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7845
|
+
accessTokenTtl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
7846
|
+
refreshTokenTtl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
7847
|
+
signingAlgorithm: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
7848
|
+
RS256: "RS256";
|
|
7849
|
+
PS256: "PS256";
|
|
7850
|
+
ES256: "ES256";
|
|
7851
|
+
ES512: "ES512";
|
|
7852
|
+
EdDSA: "EdDSA";
|
|
7853
|
+
}>>>;
|
|
7854
|
+
signingKeyId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
7855
|
+
allowedScopes: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
7856
|
+
customClaims: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
7857
|
+
dpopBoundAccessTokensRequired: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7858
|
+
disabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7859
|
+
metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
7860
|
+
}, import("zod/v4/core").$strip>;
|
|
7861
|
+
metadata: {
|
|
7862
|
+
SERVER_ONLY: true;
|
|
7863
|
+
};
|
|
7864
|
+
}, import("@better-auth/oauth-provider").OAuthResource>;
|
|
7865
|
+
adminListOAuthResources: import("better-call").StrictEndpoint<"/admin/oauth2/resources", {
|
|
7866
|
+
method: "GET";
|
|
7867
|
+
metadata: {
|
|
7868
|
+
SERVER_ONLY: true;
|
|
7869
|
+
};
|
|
7870
|
+
}, import("@better-auth/oauth-provider").OAuthResource[]>;
|
|
7871
|
+
adminGetOAuthResource: import("better-call").StrictEndpoint<"/admin/oauth2/resources/:identifier", {
|
|
7872
|
+
method: "GET";
|
|
7873
|
+
metadata: {
|
|
7874
|
+
SERVER_ONLY: true;
|
|
7875
|
+
};
|
|
7876
|
+
}, import("@better-auth/oauth-provider").OAuthResource>;
|
|
7877
|
+
adminUpdateOAuthResource: import("better-call").StrictEndpoint<"/admin/oauth2/resources/:identifier", {
|
|
7878
|
+
method: "PATCH";
|
|
7879
|
+
body: import("zod").ZodObject<{
|
|
7880
|
+
identifier: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7881
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7882
|
+
accessTokenTtl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
7883
|
+
refreshTokenTtl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
7884
|
+
signingAlgorithm: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
7885
|
+
RS256: "RS256";
|
|
7886
|
+
PS256: "PS256";
|
|
7887
|
+
ES256: "ES256";
|
|
7888
|
+
ES512: "ES512";
|
|
7889
|
+
EdDSA: "EdDSA";
|
|
7890
|
+
}>>>;
|
|
7891
|
+
signingKeyId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
7892
|
+
allowedScopes: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
7893
|
+
customClaims: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
7894
|
+
dpopBoundAccessTokensRequired: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7895
|
+
disabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
7896
|
+
metadata: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
7897
|
+
}, import("zod/v4/core").$strip>;
|
|
7898
|
+
metadata: {
|
|
7899
|
+
SERVER_ONLY: true;
|
|
7900
|
+
};
|
|
7901
|
+
}, import("@better-auth/oauth-provider").OAuthResource>;
|
|
7902
|
+
adminDeleteOAuthResource: import("better-call").StrictEndpoint<"/admin/oauth2/resources/:identifier", {
|
|
7903
|
+
method: "DELETE";
|
|
7904
|
+
metadata: {
|
|
7905
|
+
SERVER_ONLY: true;
|
|
7906
|
+
};
|
|
7907
|
+
}, {
|
|
7908
|
+
deleted: boolean;
|
|
7909
|
+
}>;
|
|
7910
|
+
adminLinkClientResource: import("better-call").StrictEndpoint<"/admin/oauth2/resources/:identifier/clients/:client_id", {
|
|
7911
|
+
method: "POST";
|
|
7912
|
+
metadata: {
|
|
7913
|
+
SERVER_ONLY: true;
|
|
7914
|
+
};
|
|
7915
|
+
}, {
|
|
7916
|
+
linked: boolean;
|
|
7917
|
+
}>;
|
|
7918
|
+
adminUnlinkClientResource: import("better-call").StrictEndpoint<"/admin/oauth2/resources/:identifier/clients/:client_id", {
|
|
7919
|
+
method: "DELETE";
|
|
7920
|
+
metadata: {
|
|
7921
|
+
SERVER_ONLY: true;
|
|
7922
|
+
};
|
|
7923
|
+
}, {
|
|
7924
|
+
unlinked: boolean;
|
|
7925
|
+
}>;
|
|
7926
|
+
};
|
|
7927
|
+
schema: {
|
|
7928
|
+
oauthClient: {
|
|
7929
|
+
modelName: string;
|
|
7930
|
+
fields: {
|
|
7931
|
+
clientId: {
|
|
7932
|
+
type: "string";
|
|
7933
|
+
unique: true;
|
|
7934
|
+
required: true;
|
|
7935
|
+
};
|
|
7936
|
+
clientSecret: {
|
|
7937
|
+
type: "string";
|
|
7938
|
+
required: false;
|
|
7939
|
+
};
|
|
7940
|
+
clientDiscoveryId: {
|
|
7941
|
+
type: "string";
|
|
7942
|
+
required: false;
|
|
7943
|
+
};
|
|
7944
|
+
disabled: {
|
|
7945
|
+
type: "boolean";
|
|
7946
|
+
defaultValue: false;
|
|
7947
|
+
required: false;
|
|
7948
|
+
};
|
|
7949
|
+
skipConsent: {
|
|
7950
|
+
type: "boolean";
|
|
7951
|
+
required: false;
|
|
7952
|
+
};
|
|
7953
|
+
enableEndSession: {
|
|
7954
|
+
type: "boolean";
|
|
7955
|
+
required: false;
|
|
7956
|
+
};
|
|
7957
|
+
subjectType: {
|
|
7958
|
+
type: "string";
|
|
7959
|
+
required: false;
|
|
7960
|
+
};
|
|
7961
|
+
scopes: {
|
|
7962
|
+
type: "string[]";
|
|
7963
|
+
required: false;
|
|
7964
|
+
};
|
|
7965
|
+
clientCredentialsScopes: {
|
|
7966
|
+
type: "string[]";
|
|
7967
|
+
required: false;
|
|
7968
|
+
defaultValue: never[];
|
|
7969
|
+
};
|
|
7970
|
+
userId: {
|
|
7971
|
+
type: "string";
|
|
7972
|
+
required: false;
|
|
7973
|
+
references: {
|
|
7974
|
+
model: string;
|
|
7975
|
+
field: string;
|
|
7976
|
+
};
|
|
7977
|
+
index: true;
|
|
7978
|
+
};
|
|
7979
|
+
createdAt: {
|
|
7980
|
+
type: "date";
|
|
7981
|
+
required: false;
|
|
7982
|
+
};
|
|
7983
|
+
updatedAt: {
|
|
7984
|
+
type: "date";
|
|
7985
|
+
required: false;
|
|
7986
|
+
};
|
|
7987
|
+
name: {
|
|
7988
|
+
type: "string";
|
|
7989
|
+
required: false;
|
|
7990
|
+
};
|
|
7991
|
+
uri: {
|
|
7992
|
+
type: "string";
|
|
7993
|
+
required: false;
|
|
7994
|
+
};
|
|
7995
|
+
icon: {
|
|
7996
|
+
type: "string";
|
|
7997
|
+
required: false;
|
|
7998
|
+
};
|
|
7999
|
+
contacts: {
|
|
8000
|
+
type: "string[]";
|
|
8001
|
+
required: false;
|
|
8002
|
+
};
|
|
8003
|
+
tos: {
|
|
8004
|
+
type: "string";
|
|
8005
|
+
required: false;
|
|
8006
|
+
};
|
|
8007
|
+
policy: {
|
|
8008
|
+
type: "string";
|
|
8009
|
+
required: false;
|
|
8010
|
+
};
|
|
8011
|
+
softwareId: {
|
|
8012
|
+
type: "string";
|
|
8013
|
+
required: false;
|
|
8014
|
+
};
|
|
8015
|
+
softwareVersion: {
|
|
8016
|
+
type: "string";
|
|
8017
|
+
required: false;
|
|
8018
|
+
};
|
|
8019
|
+
softwareStatement: {
|
|
8020
|
+
type: "string";
|
|
8021
|
+
required: false;
|
|
8022
|
+
};
|
|
8023
|
+
redirectUris: {
|
|
8024
|
+
type: "string[]";
|
|
8025
|
+
required: true;
|
|
8026
|
+
};
|
|
8027
|
+
postLogoutRedirectUris: {
|
|
8028
|
+
type: "string[]";
|
|
8029
|
+
required: false;
|
|
8030
|
+
};
|
|
8031
|
+
backchannelLogoutUri: {
|
|
8032
|
+
type: "string";
|
|
8033
|
+
required: false;
|
|
8034
|
+
};
|
|
8035
|
+
backchannelLogoutSessionRequired: {
|
|
8036
|
+
type: "boolean";
|
|
8037
|
+
required: false;
|
|
8038
|
+
};
|
|
8039
|
+
tokenEndpointAuthMethod: {
|
|
8040
|
+
type: "string";
|
|
8041
|
+
required: false;
|
|
8042
|
+
};
|
|
8043
|
+
applicationType: {
|
|
8044
|
+
type: "string";
|
|
8045
|
+
required: false;
|
|
8046
|
+
};
|
|
8047
|
+
jwks: {
|
|
8048
|
+
type: "string";
|
|
8049
|
+
required: false;
|
|
8050
|
+
};
|
|
8051
|
+
jwksUri: {
|
|
8052
|
+
type: "string";
|
|
8053
|
+
required: false;
|
|
8054
|
+
};
|
|
8055
|
+
grantTypes: {
|
|
8056
|
+
type: "string[]";
|
|
8057
|
+
required: false;
|
|
8058
|
+
};
|
|
8059
|
+
responseTypes: {
|
|
8060
|
+
type: "string[]";
|
|
8061
|
+
required: false;
|
|
8062
|
+
};
|
|
8063
|
+
requirePKCE: {
|
|
8064
|
+
type: "boolean";
|
|
8065
|
+
required: false;
|
|
8066
|
+
};
|
|
8067
|
+
dpopBoundAccessTokens: {
|
|
8068
|
+
type: "boolean";
|
|
8069
|
+
required: false;
|
|
8070
|
+
defaultValue: false;
|
|
8071
|
+
};
|
|
8072
|
+
referenceId: {
|
|
8073
|
+
type: "string";
|
|
8074
|
+
required: false;
|
|
8075
|
+
};
|
|
8076
|
+
metadata: {
|
|
8077
|
+
type: "json";
|
|
8078
|
+
required: false;
|
|
8079
|
+
};
|
|
8080
|
+
};
|
|
8081
|
+
};
|
|
8082
|
+
oauthResource: {
|
|
8083
|
+
modelName: string;
|
|
8084
|
+
fields: {
|
|
8085
|
+
identifier: {
|
|
8086
|
+
type: "string";
|
|
8087
|
+
required: true;
|
|
8088
|
+
unique: true;
|
|
8089
|
+
};
|
|
8090
|
+
name: {
|
|
8091
|
+
type: "string";
|
|
8092
|
+
required: true;
|
|
8093
|
+
};
|
|
8094
|
+
accessTokenTtl: {
|
|
8095
|
+
type: "number";
|
|
8096
|
+
required: false;
|
|
8097
|
+
};
|
|
8098
|
+
refreshTokenTtl: {
|
|
8099
|
+
type: "number";
|
|
8100
|
+
required: false;
|
|
8101
|
+
};
|
|
8102
|
+
signingAlgorithm: {
|
|
8103
|
+
type: "string";
|
|
8104
|
+
required: false;
|
|
8105
|
+
};
|
|
8106
|
+
signingKeyId: {
|
|
8107
|
+
type: "string";
|
|
8108
|
+
required: false;
|
|
8109
|
+
};
|
|
8110
|
+
allowedScopes: {
|
|
8111
|
+
type: "string[]";
|
|
8112
|
+
required: false;
|
|
8113
|
+
};
|
|
8114
|
+
customClaims: {
|
|
8115
|
+
type: "json";
|
|
8116
|
+
required: false;
|
|
8117
|
+
};
|
|
8118
|
+
dpopBoundAccessTokensRequired: {
|
|
8119
|
+
type: "boolean";
|
|
8120
|
+
required: false;
|
|
8121
|
+
defaultValue: false;
|
|
8122
|
+
};
|
|
8123
|
+
disabled: {
|
|
8124
|
+
type: "boolean";
|
|
8125
|
+
required: false;
|
|
8126
|
+
defaultValue: false;
|
|
8127
|
+
};
|
|
8128
|
+
createdAt: {
|
|
8129
|
+
type: "date";
|
|
8130
|
+
required: false;
|
|
8131
|
+
};
|
|
8132
|
+
updatedAt: {
|
|
8133
|
+
type: "date";
|
|
8134
|
+
required: false;
|
|
8135
|
+
};
|
|
8136
|
+
policyVersion: {
|
|
8137
|
+
type: "number";
|
|
8138
|
+
required: false;
|
|
8139
|
+
defaultValue: number;
|
|
8140
|
+
};
|
|
8141
|
+
metadata: {
|
|
8142
|
+
type: "json";
|
|
8143
|
+
required: false;
|
|
8144
|
+
};
|
|
8145
|
+
};
|
|
8146
|
+
};
|
|
8147
|
+
oauthClientResource: {
|
|
8148
|
+
modelName: string;
|
|
8149
|
+
fields: {
|
|
8150
|
+
clientId: {
|
|
8151
|
+
type: "string";
|
|
8152
|
+
required: true;
|
|
8153
|
+
references: {
|
|
8154
|
+
model: string;
|
|
8155
|
+
field: string;
|
|
8156
|
+
onDelete: "cascade";
|
|
8157
|
+
};
|
|
8158
|
+
index: true;
|
|
8159
|
+
};
|
|
8160
|
+
resourceId: {
|
|
8161
|
+
type: "string";
|
|
8162
|
+
required: true;
|
|
8163
|
+
references: {
|
|
8164
|
+
model: string;
|
|
8165
|
+
field: string;
|
|
8166
|
+
onDelete: "cascade";
|
|
8167
|
+
};
|
|
8168
|
+
index: true;
|
|
8169
|
+
};
|
|
8170
|
+
metadata: {
|
|
8171
|
+
type: "json";
|
|
8172
|
+
required: false;
|
|
8173
|
+
};
|
|
8174
|
+
createdAt: {
|
|
8175
|
+
type: "date";
|
|
8176
|
+
required: false;
|
|
8177
|
+
};
|
|
8178
|
+
};
|
|
8179
|
+
indexes: {
|
|
8180
|
+
fields: [string, string];
|
|
8181
|
+
unique: true;
|
|
8182
|
+
}[];
|
|
8183
|
+
};
|
|
8184
|
+
oauthRefreshToken: {
|
|
8185
|
+
fields: {
|
|
8186
|
+
token: {
|
|
8187
|
+
type: "string";
|
|
8188
|
+
required: true;
|
|
8189
|
+
unique: true;
|
|
8190
|
+
};
|
|
8191
|
+
clientId: {
|
|
8192
|
+
type: "string";
|
|
8193
|
+
required: true;
|
|
8194
|
+
references: {
|
|
8195
|
+
model: string;
|
|
8196
|
+
field: string;
|
|
8197
|
+
};
|
|
8198
|
+
index: true;
|
|
8199
|
+
};
|
|
8200
|
+
sessionId: {
|
|
8201
|
+
type: "string";
|
|
8202
|
+
required: false;
|
|
8203
|
+
references: {
|
|
8204
|
+
model: string;
|
|
8205
|
+
field: string;
|
|
8206
|
+
onDelete: "set null";
|
|
8207
|
+
};
|
|
8208
|
+
index: true;
|
|
8209
|
+
};
|
|
8210
|
+
userId: {
|
|
8211
|
+
type: "string";
|
|
8212
|
+
required: true;
|
|
8213
|
+
references: {
|
|
8214
|
+
model: string;
|
|
8215
|
+
field: string;
|
|
8216
|
+
};
|
|
8217
|
+
index: true;
|
|
8218
|
+
};
|
|
8219
|
+
referenceId: {
|
|
8220
|
+
type: "string";
|
|
8221
|
+
required: false;
|
|
8222
|
+
};
|
|
8223
|
+
authorizationCodeId: {
|
|
8224
|
+
type: "string";
|
|
8225
|
+
required: false;
|
|
8226
|
+
index: true;
|
|
8227
|
+
};
|
|
8228
|
+
resources: {
|
|
8229
|
+
type: "string[]";
|
|
8230
|
+
required: false;
|
|
8231
|
+
};
|
|
8232
|
+
requestedUserInfoClaims: {
|
|
8233
|
+
type: "string[]";
|
|
8234
|
+
required: false;
|
|
8235
|
+
};
|
|
8236
|
+
expiresAt: {
|
|
8237
|
+
type: "date";
|
|
8238
|
+
};
|
|
8239
|
+
createdAt: {
|
|
8240
|
+
type: "date";
|
|
8241
|
+
};
|
|
8242
|
+
revoked: {
|
|
8243
|
+
type: "date";
|
|
8244
|
+
required: false;
|
|
8245
|
+
};
|
|
8246
|
+
rotatedAt: {
|
|
8247
|
+
type: "date";
|
|
8248
|
+
required: false;
|
|
8249
|
+
};
|
|
8250
|
+
rotationReplayResponse: {
|
|
8251
|
+
type: "string";
|
|
8252
|
+
required: false;
|
|
8253
|
+
};
|
|
8254
|
+
rotationReplayExpiresAt: {
|
|
8255
|
+
type: "date";
|
|
8256
|
+
required: false;
|
|
8257
|
+
};
|
|
8258
|
+
authTime: {
|
|
8259
|
+
type: "date";
|
|
8260
|
+
required: false;
|
|
8261
|
+
};
|
|
8262
|
+
confirmation: {
|
|
8263
|
+
type: "json";
|
|
8264
|
+
required: false;
|
|
8265
|
+
};
|
|
8266
|
+
scopes: {
|
|
8267
|
+
type: "string[]";
|
|
8268
|
+
required: true;
|
|
8269
|
+
};
|
|
8270
|
+
};
|
|
8271
|
+
};
|
|
8272
|
+
oauthAccessToken: {
|
|
8273
|
+
modelName: string;
|
|
8274
|
+
fields: {
|
|
8275
|
+
token: {
|
|
8276
|
+
type: "string";
|
|
8277
|
+
unique: true;
|
|
8278
|
+
};
|
|
8279
|
+
clientId: {
|
|
8280
|
+
type: "string";
|
|
8281
|
+
required: true;
|
|
8282
|
+
references: {
|
|
8283
|
+
model: string;
|
|
8284
|
+
field: string;
|
|
8285
|
+
};
|
|
8286
|
+
index: true;
|
|
8287
|
+
};
|
|
8288
|
+
sessionId: {
|
|
8289
|
+
type: "string";
|
|
8290
|
+
required: false;
|
|
8291
|
+
references: {
|
|
8292
|
+
model: string;
|
|
8293
|
+
field: string;
|
|
8294
|
+
onDelete: "set null";
|
|
8295
|
+
};
|
|
8296
|
+
index: true;
|
|
8297
|
+
};
|
|
8298
|
+
userId: {
|
|
8299
|
+
type: "string";
|
|
8300
|
+
required: false;
|
|
8301
|
+
references: {
|
|
8302
|
+
model: string;
|
|
8303
|
+
field: string;
|
|
8304
|
+
};
|
|
8305
|
+
index: true;
|
|
8306
|
+
};
|
|
8307
|
+
referenceId: {
|
|
8308
|
+
type: "string";
|
|
8309
|
+
required: false;
|
|
8310
|
+
};
|
|
8311
|
+
authorizationCodeId: {
|
|
8312
|
+
type: "string";
|
|
8313
|
+
required: false;
|
|
8314
|
+
index: true;
|
|
8315
|
+
};
|
|
8316
|
+
resources: {
|
|
8317
|
+
type: "string[]";
|
|
8318
|
+
required: false;
|
|
8319
|
+
};
|
|
8320
|
+
requestedUserInfoClaims: {
|
|
8321
|
+
type: "string[]";
|
|
8322
|
+
required: false;
|
|
8323
|
+
};
|
|
8324
|
+
refreshId: {
|
|
8325
|
+
type: "string";
|
|
8326
|
+
required: false;
|
|
8327
|
+
references: {
|
|
8328
|
+
model: string;
|
|
8329
|
+
field: string;
|
|
8330
|
+
};
|
|
8331
|
+
index: true;
|
|
8332
|
+
};
|
|
8333
|
+
expiresAt: {
|
|
8334
|
+
type: "date";
|
|
8335
|
+
};
|
|
8336
|
+
createdAt: {
|
|
8337
|
+
type: "date";
|
|
8338
|
+
};
|
|
8339
|
+
revoked: {
|
|
8340
|
+
type: "date";
|
|
8341
|
+
required: false;
|
|
8342
|
+
};
|
|
8343
|
+
confirmation: {
|
|
8344
|
+
type: "json";
|
|
8345
|
+
required: false;
|
|
8346
|
+
};
|
|
8347
|
+
scopes: {
|
|
8348
|
+
type: "string[]";
|
|
8349
|
+
required: true;
|
|
8350
|
+
};
|
|
8351
|
+
};
|
|
8352
|
+
};
|
|
8353
|
+
oauthConsent: {
|
|
8354
|
+
modelName: string;
|
|
8355
|
+
fields: {
|
|
8356
|
+
clientId: {
|
|
8357
|
+
type: "string";
|
|
8358
|
+
required: true;
|
|
8359
|
+
references: {
|
|
8360
|
+
model: string;
|
|
8361
|
+
field: string;
|
|
8362
|
+
};
|
|
8363
|
+
index: true;
|
|
8364
|
+
};
|
|
8365
|
+
userId: {
|
|
8366
|
+
type: "string";
|
|
8367
|
+
required: false;
|
|
8368
|
+
references: {
|
|
8369
|
+
model: string;
|
|
8370
|
+
field: string;
|
|
8371
|
+
};
|
|
8372
|
+
index: true;
|
|
8373
|
+
};
|
|
8374
|
+
referenceId: {
|
|
8375
|
+
type: "string";
|
|
8376
|
+
required: false;
|
|
8377
|
+
};
|
|
8378
|
+
resources: {
|
|
8379
|
+
type: "string[]";
|
|
8380
|
+
required: false;
|
|
8381
|
+
};
|
|
8382
|
+
requestedUserInfoClaims: {
|
|
8383
|
+
type: "string[]";
|
|
8384
|
+
required: false;
|
|
8385
|
+
};
|
|
8386
|
+
scopes: {
|
|
8387
|
+
type: "string[]";
|
|
8388
|
+
required: true;
|
|
8389
|
+
};
|
|
8390
|
+
createdAt: {
|
|
8391
|
+
type: "date";
|
|
8392
|
+
};
|
|
8393
|
+
updatedAt: {
|
|
8394
|
+
type: "date";
|
|
8395
|
+
};
|
|
8396
|
+
};
|
|
8397
|
+
};
|
|
8398
|
+
oauthClientAssertion: {
|
|
8399
|
+
modelName: string;
|
|
8400
|
+
fields: {
|
|
8401
|
+
expiresAt: {
|
|
8402
|
+
type: "date";
|
|
8403
|
+
required: true;
|
|
8404
|
+
};
|
|
8405
|
+
};
|
|
8406
|
+
};
|
|
8407
|
+
};
|
|
8408
|
+
rateLimit: ({
|
|
8409
|
+
pathMatcher: (path: string) => path is "/oauth2/token";
|
|
8410
|
+
window: number;
|
|
8411
|
+
max: number;
|
|
8412
|
+
} | {
|
|
8413
|
+
pathMatcher: (path: string) => path is "/oauth2/authorize";
|
|
8414
|
+
window: number;
|
|
8415
|
+
max: number;
|
|
8416
|
+
} | {
|
|
8417
|
+
pathMatcher: (path: string) => path is "/oauth2/introspect";
|
|
8418
|
+
window: number;
|
|
8419
|
+
max: number;
|
|
8420
|
+
} | {
|
|
8421
|
+
pathMatcher: (path: string) => path is "/oauth2/revoke";
|
|
8422
|
+
window: number;
|
|
8423
|
+
max: number;
|
|
8424
|
+
} | {
|
|
8425
|
+
pathMatcher: (path: string) => path is "/oauth2/register";
|
|
8426
|
+
window: number;
|
|
8427
|
+
max: number;
|
|
8428
|
+
} | {
|
|
8429
|
+
pathMatcher: (path: string) => path is "/oauth2/client/rotate-keys";
|
|
8430
|
+
window: number;
|
|
8431
|
+
max: number;
|
|
8432
|
+
} | {
|
|
8433
|
+
pathMatcher: (path: string) => path is "/oauth2/userinfo";
|
|
8434
|
+
window: number;
|
|
8435
|
+
max: number;
|
|
8436
|
+
})[];
|
|
8437
|
+
} | {
|
|
8438
|
+
id: "cimd";
|
|
8439
|
+
version: string;
|
|
8440
|
+
init(ctx: import("better-auth").AuthContext): void;
|
|
8441
|
+
} | {
|
|
8442
|
+
id: "protobase-mcp-grant-revocation";
|
|
8443
|
+
hooks: {
|
|
8444
|
+
after: {
|
|
8445
|
+
matcher: (context: import("better-auth").HookEndpointContext) => boolean;
|
|
8446
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>;
|
|
8447
|
+
}[];
|
|
8448
|
+
};
|
|
8449
|
+
} | {
|
|
8450
|
+
id: "protobase-mcp-connected-apps";
|
|
8451
|
+
endpoints: {
|
|
8452
|
+
listConnectedApps: import("better-call").StrictEndpoint<"/account/connected-apps", {
|
|
8453
|
+
method: "GET";
|
|
8454
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
8455
|
+
session: {
|
|
8456
|
+
session: Record<string, any> & {
|
|
8457
|
+
id: string;
|
|
8458
|
+
createdAt: Date;
|
|
8459
|
+
updatedAt: Date;
|
|
8460
|
+
userId: string;
|
|
8461
|
+
expiresAt: Date;
|
|
8462
|
+
token: string;
|
|
8463
|
+
ipAddress?: string | null | undefined;
|
|
8464
|
+
userAgent?: string | null | undefined;
|
|
8465
|
+
};
|
|
8466
|
+
user: Record<string, any> & {
|
|
8467
|
+
id: string;
|
|
8468
|
+
createdAt: Date;
|
|
8469
|
+
updatedAt: Date;
|
|
8470
|
+
email: string;
|
|
8471
|
+
emailVerified: boolean;
|
|
8472
|
+
name: string;
|
|
8473
|
+
image?: string | null | undefined;
|
|
8474
|
+
};
|
|
8475
|
+
};
|
|
8476
|
+
}>>[];
|
|
8477
|
+
}, {
|
|
8478
|
+
apps: ConnectedApp[];
|
|
8479
|
+
}>;
|
|
8480
|
+
disconnectApp: import("better-call").StrictEndpoint<"/account/connected-apps/disconnect", {
|
|
8481
|
+
method: "POST";
|
|
8482
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
8483
|
+
session: {
|
|
8484
|
+
session: Record<string, any> & {
|
|
8485
|
+
id: string;
|
|
8486
|
+
createdAt: Date;
|
|
8487
|
+
updatedAt: Date;
|
|
8488
|
+
userId: string;
|
|
8489
|
+
expiresAt: Date;
|
|
8490
|
+
token: string;
|
|
8491
|
+
ipAddress?: string | null | undefined;
|
|
8492
|
+
userAgent?: string | null | undefined;
|
|
8493
|
+
};
|
|
8494
|
+
user: Record<string, any> & {
|
|
8495
|
+
id: string;
|
|
8496
|
+
createdAt: Date;
|
|
8497
|
+
updatedAt: Date;
|
|
8498
|
+
email: string;
|
|
8499
|
+
emailVerified: boolean;
|
|
8500
|
+
name: string;
|
|
8501
|
+
image?: string | null | undefined;
|
|
8502
|
+
};
|
|
8503
|
+
};
|
|
8504
|
+
}>>[];
|
|
8505
|
+
body: import("zod").ZodObject<{
|
|
8506
|
+
clientId: import("zod").ZodString;
|
|
8507
|
+
}, import("zod/v4/core").$strip>;
|
|
8508
|
+
}, {
|
|
8509
|
+
disconnected: boolean;
|
|
8510
|
+
}>;
|
|
8511
|
+
};
|
|
8512
|
+
})[];
|
|
8513
|
+
disabledPaths: string[];
|
|
8514
|
+
databaseHooks: {
|
|
8515
|
+
session?: {
|
|
8516
|
+
create: {
|
|
8517
|
+
before: (session: {
|
|
8518
|
+
userId: string;
|
|
8519
|
+
activeOrganizationId?: string | null;
|
|
8520
|
+
} & Record<string, unknown>) => Promise<{
|
|
8521
|
+
data: {
|
|
8522
|
+
activeOrganizationId: string;
|
|
8523
|
+
userId: string;
|
|
8524
|
+
};
|
|
8525
|
+
} | undefined>;
|
|
8526
|
+
};
|
|
8527
|
+
update: {
|
|
8528
|
+
after: (session: {
|
|
8529
|
+
userId: string;
|
|
8530
|
+
activeOrganizationId?: string | null;
|
|
8531
|
+
}) => Promise<void>;
|
|
8532
|
+
};
|
|
8533
|
+
} | undefined;
|
|
8534
|
+
user: {
|
|
8535
|
+
create: {
|
|
8536
|
+
after?: ((user: import("better-auth").User & Record<string, unknown>, context: import("better-auth").GenericEndpointContext | null) => Promise<void>) | undefined;
|
|
8537
|
+
before: (user: {
|
|
8538
|
+
id: string;
|
|
8539
|
+
createdAt: Date;
|
|
8540
|
+
updatedAt: Date;
|
|
8541
|
+
email: string;
|
|
8542
|
+
emailVerified: boolean;
|
|
8543
|
+
name: string;
|
|
8544
|
+
image?: string | null | undefined;
|
|
8545
|
+
} & Record<string, unknown>, context: import("better-auth").GenericEndpointContext | null) => Promise<{
|
|
8546
|
+
data: {
|
|
8547
|
+
id: string;
|
|
8548
|
+
createdAt: Date;
|
|
8549
|
+
updatedAt: Date;
|
|
8550
|
+
email: string;
|
|
8551
|
+
emailVerified: boolean;
|
|
8552
|
+
name: string;
|
|
8553
|
+
image?: string | null | undefined;
|
|
8554
|
+
} & Record<string, unknown>;
|
|
8555
|
+
}>;
|
|
8556
|
+
};
|
|
8557
|
+
update: {
|
|
8558
|
+
before: (user: Partial<{
|
|
8559
|
+
id: string;
|
|
8560
|
+
createdAt: Date;
|
|
8561
|
+
updatedAt: Date;
|
|
8562
|
+
email: string;
|
|
8563
|
+
emailVerified: boolean;
|
|
8564
|
+
name: string;
|
|
8565
|
+
image?: string | null | undefined;
|
|
8566
|
+
}> & Record<string, unknown>) => Promise<{
|
|
8567
|
+
data: Partial<{
|
|
8568
|
+
id: string;
|
|
8569
|
+
createdAt: Date;
|
|
8570
|
+
updatedAt: Date;
|
|
8571
|
+
email: string;
|
|
8572
|
+
emailVerified: boolean;
|
|
8573
|
+
name: string;
|
|
8574
|
+
image?: string | null | undefined;
|
|
8575
|
+
}> & Record<string, unknown>;
|
|
8576
|
+
}>;
|
|
8577
|
+
};
|
|
8578
|
+
};
|
|
8579
|
+
};
|
|
8580
|
+
rateLimit: {
|
|
8581
|
+
enabled: true;
|
|
8582
|
+
window: number;
|
|
8583
|
+
max: number;
|
|
8584
|
+
customRules: {
|
|
8585
|
+
[signUpPaths.sendCode]: {
|
|
8586
|
+
window: number;
|
|
8587
|
+
max: number;
|
|
8588
|
+
};
|
|
8589
|
+
[signUpPaths.verifyCode]: {
|
|
8590
|
+
window: number;
|
|
8591
|
+
max: number;
|
|
8592
|
+
};
|
|
8593
|
+
[signUpPaths.create]: {
|
|
8594
|
+
window: number;
|
|
8595
|
+
max: number;
|
|
8596
|
+
};
|
|
8597
|
+
'/sign-in/email': {
|
|
8598
|
+
window: number;
|
|
8599
|
+
max: number;
|
|
8600
|
+
};
|
|
8601
|
+
'/staff/sign-in': {
|
|
8602
|
+
window: number;
|
|
8603
|
+
max: number;
|
|
8604
|
+
};
|
|
8605
|
+
'/invitation/sign-up': {
|
|
8606
|
+
window: number;
|
|
8607
|
+
max: number;
|
|
8608
|
+
};
|
|
8609
|
+
};
|
|
8610
|
+
};
|
|
8611
|
+
advanced: {
|
|
8612
|
+
database?: {
|
|
8613
|
+
generateId: "uuid";
|
|
8614
|
+
} | undefined;
|
|
8615
|
+
useSecureCookies: boolean;
|
|
8616
|
+
defaultCookieAttributes: {
|
|
8617
|
+
sameSite: "lax";
|
|
8618
|
+
secure: boolean;
|
|
8619
|
+
};
|
|
8620
|
+
backgroundTasks: {
|
|
8621
|
+
handler: () => void;
|
|
8622
|
+
};
|
|
8623
|
+
};
|
|
8624
|
+
socialProviders?: import("better-auth").SocialProviders | undefined;
|
|
8625
|
+
appName: string;
|
|
8626
|
+
database: any;
|
|
8627
|
+
baseURL: string | {
|
|
8628
|
+
allowedHosts: string[];
|
|
8629
|
+
fallback: string;
|
|
8630
|
+
protocol: "https" | "http";
|
|
8631
|
+
};
|
|
8632
|
+
basePath: string;
|
|
8633
|
+
secret: string;
|
|
8634
|
+
trustedOrigins: string[];
|
|
8635
|
+
emailAndPassword: {
|
|
8636
|
+
onPasswordReset?: ((data: {
|
|
8637
|
+
user: import("better-auth").User;
|
|
8638
|
+
}, request?: Request) => Promise<void>) | undefined;
|
|
8639
|
+
resetPasswordTokenExpiresIn?: number | undefined;
|
|
8640
|
+
revokeSessionsOnPasswordReset?: true | undefined;
|
|
8641
|
+
sendResetPassword?: (({ user, url }: {
|
|
8642
|
+
user: import("better-auth").User;
|
|
8643
|
+
url: string;
|
|
8644
|
+
token: string;
|
|
8645
|
+
}) => Promise<void>) | undefined;
|
|
8646
|
+
password?: {
|
|
8647
|
+
verify: ({ hash, password }: {
|
|
8648
|
+
hash: string;
|
|
8649
|
+
password: string;
|
|
8650
|
+
}) => Promise<boolean>;
|
|
8651
|
+
} | undefined;
|
|
8652
|
+
enabled: true;
|
|
8653
|
+
disableSignUp: true;
|
|
8654
|
+
minPasswordLength: number;
|
|
8655
|
+
maxPasswordLength: number;
|
|
8656
|
+
};
|
|
8657
|
+
}> & {
|
|
8658
|
+
/** Issuer and audience of the tokens: `baseURL`, on every origin. */
|
|
8659
|
+
issuer: string;
|
|
8660
|
+
/** Every origin the app is served on, `baseURL`'s first. */
|
|
8661
|
+
origins: string[];
|
|
8662
|
+
/** The RP ID of new passkeys. */
|
|
8663
|
+
passkeyDomain: string;
|
|
8664
|
+
roles: string[];
|
|
8665
|
+
roleDefinitions: RoleDefinitions;
|
|
8666
|
+
organizations: ResolvedOrganizations | undefined;
|
|
8667
|
+
defaultRole: string | undefined;
|
|
8668
|
+
/** New users get their ids from `generateUserId` instead of Better Auth's random text. */
|
|
8669
|
+
generatesUserIds: boolean;
|
|
8670
|
+
mail: boolean;
|
|
8671
|
+
/** The policy until an admin saves one. */
|
|
8672
|
+
signInPolicy: SignInPolicy;
|
|
8673
|
+
passwordReset: boolean;
|
|
8674
|
+
/** Open sign-up is on and offered: the app asks for it, and can mail the codes. */
|
|
8675
|
+
signUp: boolean;
|
|
8676
|
+
/** The role of accounts made by open sign-up, while it is offered. */
|
|
8677
|
+
signUpRole: string | undefined;
|
|
8678
|
+
/** The app keeps each user's metadata, in the column `users.metadata` names. */
|
|
8679
|
+
userMetadata: boolean;
|
|
8680
|
+
socialProviders: string[];
|
|
8681
|
+
/** The app's name it signs in and mails as: `PROTOBASE_APP_NAME`, else `appName`, else `Protobase`. */
|
|
8682
|
+
appName: string;
|
|
8683
|
+
operator: string | undefined;
|
|
8684
|
+
platformSignIn: {
|
|
8685
|
+
provider: string;
|
|
8686
|
+
name: string;
|
|
8687
|
+
} | undefined;
|
|
8688
|
+
/** The id and name of each SAML provider, for the sign-in page. */
|
|
8689
|
+
samlProviders: {
|
|
8690
|
+
id: string;
|
|
8691
|
+
name: string;
|
|
8692
|
+
}[];
|
|
8693
|
+
/** The OAuth provider for MCP clients, when on: the endpoint's resource (its URL) and path, and the scope its tokens carry. */
|
|
8694
|
+
mcp: {
|
|
8695
|
+
resource: string;
|
|
8696
|
+
path: string;
|
|
8697
|
+
scope: string;
|
|
8698
|
+
} | undefined;
|
|
5999
8699
|
};
|
|
6000
8700
|
export type AdminAuth = ReturnType<typeof createAuth>;
|
|
6001
8701
|
//#endregion
|