@inkeep/agents-core 0.80.7 → 0.81.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/auth/auth-config-utils.js +1 -2
- package/dist/auth/auth-schema.d.ts +1110 -91
- package/dist/auth/auth-schema.js +73 -9
- package/dist/auth/auth-validation-schemas.d.ts +137 -137
- package/dist/auth/auth.d.ts +862 -251
- package/dist/auth/auth.js +13 -3
- package/dist/auth/permissions.d.ts +7 -7
- package/dist/auth/sso-issuer-discovery.d.ts +2 -1
- package/dist/context/TemplateEngine.js +2 -1
- package/dist/credential-stores/defaults.js +2 -1
- package/dist/credential-stores/memory-store.js +6 -0
- package/dist/data-access/manage/agents.d.ts +5 -5
- package/dist/data-access/manage/functionTools.d.ts +2 -2
- package/dist/data-access/manage/skills.d.ts +1 -1
- package/dist/data-access/manage/subAgentRelations.d.ts +2 -2
- package/dist/data-access/manage/subAgents.d.ts +3 -3
- package/dist/data-access/manage/tools.d.ts +6 -6
- package/dist/data-access/manage/triggers.d.ts +1 -1
- package/dist/data-access/runtime/apps.d.ts +5 -5
- package/dist/data-access/runtime/conversations.d.ts +8 -8
- package/dist/data-access/runtime/events.d.ts +1 -1
- package/dist/data-access/runtime/feedback.d.ts +2 -2
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/db/manage/manage-schema.d.ts +504 -504
- package/dist/db/runtime/runtime-schema.d.ts +453 -453
- package/dist/db/runtime/runtime-schema.js +5 -2
- package/dist/env.d.ts +5 -0
- package/dist/env.js +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/utils/env-detection.d.ts +3 -1
- package/dist/utils/env-detection.js +7 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/event-schemas.d.ts +2 -2
- package/dist/validation/event-schemas.js +1 -1
- package/dist/validation/schemas/shared.d.ts +2 -2
- package/dist/validation/schemas/shared.js +26 -37
- package/dist/validation/schemas/skills.d.ts +29 -29
- package/dist/validation/schemas.d.ts +1787 -1787
- package/dist/validation/schemas.js +2 -2
- package/dist/validation/stream-event-schemas.d.ts +10 -10
- package/dist/validation/stream-event-schemas.js +5 -5
- package/drizzle/runtime/0045_complex_phantom_reporter.sql +95 -0
- package/drizzle/runtime/meta/0045_snapshot.json +6800 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +9 -8
package/dist/auth/auth.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import * as zod0 from "zod";
|
|
|
5
5
|
import * as better_auth0 from "better-auth";
|
|
6
6
|
import * as _better_auth_oauth_provider0 from "@better-auth/oauth-provider";
|
|
7
7
|
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
8
|
+
import * as better_call0 from "better-call";
|
|
8
9
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
9
10
|
|
|
10
11
|
//#region src/auth/auth.d.ts
|
|
@@ -31,15 +32,15 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
31
32
|
hooks: {
|
|
32
33
|
before: {
|
|
33
34
|
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
34
|
-
handler: (inputContext:
|
|
35
|
+
handler: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
35
36
|
context: {
|
|
36
37
|
headers: Headers;
|
|
37
38
|
};
|
|
38
|
-
} | undefined
|
|
39
|
+
} | undefined>>;
|
|
39
40
|
}[];
|
|
40
41
|
after: {
|
|
41
42
|
matcher(context: better_auth0.HookEndpointContext): true;
|
|
42
|
-
handler: (inputContext:
|
|
43
|
+
handler: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>>;
|
|
43
44
|
}[];
|
|
44
45
|
};
|
|
45
46
|
options: better_auth_plugins0.BearerOptions | undefined;
|
|
@@ -48,17 +49,18 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
48
49
|
version: string;
|
|
49
50
|
options: NoInfer<better_auth_plugins0.OAuthProxyOptions>;
|
|
50
51
|
endpoints: {
|
|
51
|
-
oAuthProxy:
|
|
52
|
+
oAuthProxy: better_call0.StrictEndpoint<"/oauth-proxy-callback", {
|
|
52
53
|
method: "GET";
|
|
53
54
|
operationId: string;
|
|
54
55
|
query: zod0.ZodObject<{
|
|
55
56
|
callbackURL: zod0.ZodString;
|
|
56
57
|
profile: zod0.ZodOptional<zod0.ZodString>;
|
|
57
58
|
}, zod_v4_core0.$strip>;
|
|
58
|
-
use: (
|
|
59
|
+
use: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>>[];
|
|
59
60
|
metadata: {
|
|
60
61
|
openapi: {
|
|
61
62
|
operationId: string;
|
|
63
|
+
deprecated: boolean;
|
|
62
64
|
description: string;
|
|
63
65
|
parameters: ({
|
|
64
66
|
in: "query";
|
|
@@ -87,23 +89,49 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
87
89
|
};
|
|
88
90
|
};
|
|
89
91
|
}, never>;
|
|
92
|
+
oAuthProxyCompletion: better_call0.StrictEndpoint<"/callback/:id/oauth-proxy", {
|
|
93
|
+
method: "GET";
|
|
94
|
+
operationId: string;
|
|
95
|
+
query: zod0.ZodObject<{
|
|
96
|
+
callbackURL: zod0.ZodString;
|
|
97
|
+
profile: zod0.ZodOptional<zod0.ZodString>;
|
|
98
|
+
}, zod_v4_core0.$strip>;
|
|
99
|
+
use: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>>[];
|
|
100
|
+
metadata: {
|
|
101
|
+
scope: "http";
|
|
102
|
+
};
|
|
103
|
+
}, never>;
|
|
90
104
|
};
|
|
91
105
|
hooks: {
|
|
92
106
|
before: {
|
|
93
107
|
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
94
|
-
handler: (inputContext:
|
|
108
|
+
handler: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>>;
|
|
95
109
|
}[];
|
|
96
110
|
after: {
|
|
97
111
|
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
98
|
-
handler: (inputContext:
|
|
112
|
+
handler: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>>;
|
|
99
113
|
}[];
|
|
100
114
|
};
|
|
101
115
|
}, {
|
|
102
116
|
id: "jwt";
|
|
103
117
|
version: string;
|
|
104
118
|
options: NoInfer<better_auth_plugins0.JwtOptions>;
|
|
119
|
+
init(ctx: better_auth0.AuthContext): {
|
|
120
|
+
context: {
|
|
121
|
+
sessionConfig: {
|
|
122
|
+
cookieCacheSigner: better_auth0.CookieCacheSigner;
|
|
123
|
+
updateAge: number;
|
|
124
|
+
expiresIn: number;
|
|
125
|
+
freshAge: number;
|
|
126
|
+
cookieRefreshCache: false | {
|
|
127
|
+
enabled: true;
|
|
128
|
+
updateAge: number;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
} | undefined;
|
|
105
133
|
endpoints: {
|
|
106
|
-
getJwks:
|
|
134
|
+
getJwks: better_call0.StrictEndpoint<string, {
|
|
107
135
|
method: "GET";
|
|
108
136
|
metadata: {
|
|
109
137
|
openapi: {
|
|
@@ -180,10 +208,10 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
180
208
|
};
|
|
181
209
|
};
|
|
182
210
|
}, jose0.JSONWebKeySet>;
|
|
183
|
-
getToken:
|
|
211
|
+
getToken: better_call0.StrictEndpoint<"/token", {
|
|
184
212
|
method: "GET";
|
|
185
213
|
requireHeaders: true;
|
|
186
|
-
use: (
|
|
214
|
+
use: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
187
215
|
session: {
|
|
188
216
|
session: Record<string, any> & {
|
|
189
217
|
id: string;
|
|
@@ -205,7 +233,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
205
233
|
image?: string | null | undefined;
|
|
206
234
|
};
|
|
207
235
|
};
|
|
208
|
-
}
|
|
236
|
+
}>>[];
|
|
209
237
|
metadata: {
|
|
210
238
|
openapi: {
|
|
211
239
|
operationId: string;
|
|
@@ -232,7 +260,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
232
260
|
}, {
|
|
233
261
|
token: string;
|
|
234
262
|
}>;
|
|
235
|
-
signJWT:
|
|
263
|
+
signJWT: better_call0.StrictEndpoint<string, {
|
|
236
264
|
method: "POST";
|
|
237
265
|
metadata: {
|
|
238
266
|
$Infer: {
|
|
@@ -249,7 +277,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
249
277
|
}, {
|
|
250
278
|
token: string;
|
|
251
279
|
}>;
|
|
252
|
-
verifyJWT:
|
|
280
|
+
verifyJWT: better_call0.StrictEndpoint<string, {
|
|
253
281
|
method: "POST";
|
|
254
282
|
metadata: {
|
|
255
283
|
$Infer: {
|
|
@@ -277,7 +305,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
277
305
|
hooks: {
|
|
278
306
|
after: {
|
|
279
307
|
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
280
|
-
handler: (inputContext:
|
|
308
|
+
handler: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>>;
|
|
281
309
|
}[];
|
|
282
310
|
};
|
|
283
311
|
schema: {
|
|
@@ -299,6 +327,14 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
299
327
|
type: "date";
|
|
300
328
|
required: false;
|
|
301
329
|
};
|
|
330
|
+
alg: {
|
|
331
|
+
type: "string";
|
|
332
|
+
required: false;
|
|
333
|
+
};
|
|
334
|
+
crv: {
|
|
335
|
+
type: "string";
|
|
336
|
+
required: false;
|
|
337
|
+
};
|
|
302
338
|
};
|
|
303
339
|
};
|
|
304
340
|
};
|
|
@@ -309,62 +345,114 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
309
345
|
loginPage: string;
|
|
310
346
|
consentPage: string;
|
|
311
347
|
}>;
|
|
312
|
-
|
|
348
|
+
onRequest: (request: Request, ctx: better_auth0.AuthContext) => Promise<{
|
|
349
|
+
response: Response;
|
|
350
|
+
} | {
|
|
351
|
+
request: Request;
|
|
352
|
+
} | void>;
|
|
353
|
+
init: (ctx: better_auth0.AuthContext) => Promise<{
|
|
354
|
+
options: {
|
|
355
|
+
databaseHooks: {
|
|
356
|
+
session: {
|
|
357
|
+
delete: {
|
|
358
|
+
before(session: {
|
|
359
|
+
id: string;
|
|
360
|
+
createdAt: Date;
|
|
361
|
+
updatedAt: Date;
|
|
362
|
+
userId: string;
|
|
363
|
+
expiresAt: Date;
|
|
364
|
+
token: string;
|
|
365
|
+
ipAddress?: string | null | undefined;
|
|
366
|
+
userAgent?: string | null | undefined;
|
|
367
|
+
} & Record<string, unknown>, hookCtx: better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
368
|
+
after(session: {
|
|
369
|
+
id: string;
|
|
370
|
+
createdAt: Date;
|
|
371
|
+
updatedAt: Date;
|
|
372
|
+
userId: string;
|
|
373
|
+
expiresAt: Date;
|
|
374
|
+
token: string;
|
|
375
|
+
ipAddress?: string | null | undefined;
|
|
376
|
+
userAgent?: string | null | undefined;
|
|
377
|
+
} & Record<string, unknown>, hookCtx: better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
}>;
|
|
313
383
|
hooks: {
|
|
314
384
|
before: {
|
|
315
385
|
matcher(ctx: better_auth0.HookEndpointContext): any;
|
|
316
|
-
handler: (inputContext:
|
|
386
|
+
handler: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>>;
|
|
317
387
|
}[];
|
|
318
388
|
after: {
|
|
319
389
|
matcher(ctx: better_auth0.HookEndpointContext): boolean;
|
|
320
|
-
handler: (inputContext:
|
|
321
|
-
redirect:
|
|
390
|
+
handler: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
391
|
+
redirect: true;
|
|
322
392
|
url: string;
|
|
323
|
-
} | undefined
|
|
393
|
+
} | undefined>>;
|
|
324
394
|
}[];
|
|
325
395
|
};
|
|
326
396
|
endpoints: {
|
|
327
|
-
getOAuthServerConfig:
|
|
397
|
+
getOAuthServerConfig: better_call0.StrictEndpoint<"/.well-known/oauth-authorization-server", {
|
|
328
398
|
method: "GET";
|
|
329
399
|
metadata: {
|
|
330
400
|
SERVER_ONLY: true;
|
|
331
401
|
};
|
|
332
402
|
}, _better_auth_oauth_provider0.AuthServerMetadata>;
|
|
333
|
-
getOpenIdConfig:
|
|
403
|
+
getOpenIdConfig: better_call0.StrictEndpoint<"/.well-known/openid-configuration", {
|
|
334
404
|
method: "GET";
|
|
335
405
|
metadata: {
|
|
336
406
|
SERVER_ONLY: true;
|
|
337
407
|
};
|
|
338
|
-
},
|
|
408
|
+
}, {
|
|
409
|
+
jwks_uri?: string | undefined;
|
|
410
|
+
userinfo_endpoint: string;
|
|
411
|
+
acr_values_supported?: string[] | undefined;
|
|
412
|
+
subject_types_supported: ("public" | "pairwise")[];
|
|
413
|
+
claims_supported: string[];
|
|
414
|
+
claims_parameter_supported?: boolean | undefined;
|
|
415
|
+
end_session_endpoint: string;
|
|
416
|
+
request_parameter_supported?: boolean | undefined;
|
|
417
|
+
request_uri_parameter_supported?: boolean | undefined;
|
|
418
|
+
prompt_values_supported: _better_auth_oauth_provider0.Prompt[];
|
|
419
|
+
issuer: string;
|
|
420
|
+
authorization_endpoint: string;
|
|
421
|
+
token_endpoint: string;
|
|
422
|
+
registration_endpoint?: string | undefined;
|
|
423
|
+
scopes_supported?: string[] | undefined;
|
|
424
|
+
response_types_supported: "code"[];
|
|
425
|
+
response_modes_supported: "query"[];
|
|
426
|
+
grant_types_supported: _better_auth_oauth_provider0.GrantType[];
|
|
427
|
+
token_endpoint_auth_methods_supported?: _better_auth_oauth_provider0.TokenEndpointAuthMethod[] | undefined;
|
|
428
|
+
token_endpoint_auth_signing_alg_values_supported?: better_auth0.PrivateKeyJwtSigningAlgorithm[] | undefined;
|
|
429
|
+
service_documentation?: string | undefined;
|
|
430
|
+
ui_locales_supported?: string[] | undefined;
|
|
431
|
+
op_policy_uri?: string | undefined;
|
|
432
|
+
op_tos_uri?: string | undefined;
|
|
433
|
+
revocation_endpoint?: string | undefined;
|
|
434
|
+
revocation_endpoint_auth_methods_supported?: _better_auth_oauth_provider0.TokenEndpointAuthMethod[] | undefined;
|
|
435
|
+
revocation_endpoint_auth_signing_alg_values_supported?: better_auth0.PrivateKeyJwtSigningAlgorithm[] | undefined;
|
|
436
|
+
introspection_endpoint?: string | undefined;
|
|
437
|
+
introspection_endpoint_auth_methods_supported?: _better_auth_oauth_provider0.TokenEndpointAuthMethod[] | undefined;
|
|
438
|
+
introspection_endpoint_auth_signing_alg_values_supported?: better_auth0.PrivateKeyJwtSigningAlgorithm[] | undefined;
|
|
439
|
+
code_challenge_methods_supported: "S256"[];
|
|
440
|
+
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
441
|
+
client_id_metadata_document_supported?: boolean | undefined;
|
|
442
|
+
backchannel_logout_supported?: boolean | undefined;
|
|
443
|
+
backchannel_logout_session_supported?: boolean | undefined;
|
|
444
|
+
dpop_signing_alg_values_supported?: better_auth_plugins0.JWSAlgorithms[] | undefined;
|
|
339
445
|
id_token_signing_alg_values_supported: better_auth_plugins0.JWSAlgorithms[] | ["HS256"];
|
|
340
446
|
}>;
|
|
341
|
-
oauth2Authorize:
|
|
342
|
-
method: "GET";
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
redirect_uri: zod0.ZodOptional<zod0.ZodURL>;
|
|
349
|
-
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
350
|
-
state: zod0.ZodOptional<zod0.ZodString>;
|
|
351
|
-
request_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
352
|
-
code_challenge: zod0.ZodOptional<zod0.ZodString>;
|
|
353
|
-
code_challenge_method: zod0.ZodOptional<zod0.ZodEnum<{
|
|
354
|
-
S256: "S256";
|
|
355
|
-
}>>;
|
|
356
|
-
nonce: zod0.ZodOptional<zod0.ZodString>;
|
|
357
|
-
prompt: zod0.ZodOptional<zod0.ZodEnum<{
|
|
358
|
-
none: "none";
|
|
359
|
-
consent: "consent";
|
|
360
|
-
login: "login";
|
|
361
|
-
create: "create";
|
|
362
|
-
select_account: "select_account";
|
|
363
|
-
"login consent": "login consent";
|
|
364
|
-
"select_account consent": "select_account consent";
|
|
365
|
-
}>>;
|
|
366
|
-
}, zod_v4_core0.$strip>;
|
|
447
|
+
oauth2Authorize: better_call0.StrictEndpoint<"/oauth2/authorize", {
|
|
448
|
+
method: ("GET" | "POST")[];
|
|
449
|
+
body: zod0.ZodObject<{}, zod_v4_core0.$loose>;
|
|
450
|
+
redirectOnError: _better_auth_oauth_provider0.OAuthRedirectOnError<better_auth0.GenericEndpointContext, {
|
|
451
|
+
redirect: true;
|
|
452
|
+
url: string;
|
|
453
|
+
}>;
|
|
367
454
|
metadata: {
|
|
455
|
+
allowedMediaTypes: string[];
|
|
368
456
|
openapi: {
|
|
369
457
|
description: string;
|
|
370
458
|
parameters: ({
|
|
@@ -374,6 +462,8 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
374
462
|
schema: {
|
|
375
463
|
type: "string";
|
|
376
464
|
format?: undefined;
|
|
465
|
+
minimum?: undefined;
|
|
466
|
+
items?: undefined;
|
|
377
467
|
};
|
|
378
468
|
description: string;
|
|
379
469
|
} | {
|
|
@@ -383,6 +473,8 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
383
473
|
schema: {
|
|
384
474
|
type: "string";
|
|
385
475
|
format?: undefined;
|
|
476
|
+
minimum?: undefined;
|
|
477
|
+
items?: undefined;
|
|
386
478
|
};
|
|
387
479
|
description: string;
|
|
388
480
|
} | {
|
|
@@ -392,6 +484,32 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
392
484
|
schema: {
|
|
393
485
|
type: "string";
|
|
394
486
|
format: string;
|
|
487
|
+
minimum?: undefined;
|
|
488
|
+
items?: undefined;
|
|
489
|
+
};
|
|
490
|
+
description: string;
|
|
491
|
+
} | {
|
|
492
|
+
name: string;
|
|
493
|
+
in: "query";
|
|
494
|
+
required: false;
|
|
495
|
+
schema: {
|
|
496
|
+
type: "integer";
|
|
497
|
+
minimum: number;
|
|
498
|
+
format?: undefined;
|
|
499
|
+
items?: undefined;
|
|
500
|
+
};
|
|
501
|
+
description: string;
|
|
502
|
+
} | {
|
|
503
|
+
name: string;
|
|
504
|
+
in: "query";
|
|
505
|
+
required: false;
|
|
506
|
+
schema: {
|
|
507
|
+
type: "array";
|
|
508
|
+
items: {
|
|
509
|
+
type: "string";
|
|
510
|
+
};
|
|
511
|
+
format?: undefined;
|
|
512
|
+
minimum?: undefined;
|
|
395
513
|
};
|
|
396
514
|
description: string;
|
|
397
515
|
})[];
|
|
@@ -434,17 +552,18 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
434
552
|
};
|
|
435
553
|
};
|
|
436
554
|
}, {
|
|
437
|
-
redirect:
|
|
555
|
+
redirect: true;
|
|
438
556
|
url: string;
|
|
439
557
|
}>;
|
|
440
|
-
oauth2Consent:
|
|
558
|
+
oauth2Consent: better_call0.StrictEndpoint<"/oauth2/consent", {
|
|
441
559
|
method: "POST";
|
|
442
560
|
body: zod0.ZodObject<{
|
|
443
561
|
accept: zod0.ZodBoolean;
|
|
444
562
|
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
563
|
+
claims: zod0.ZodOptional<zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>]>>;
|
|
445
564
|
oauth_query: zod0.ZodOptional<zod0.ZodString>;
|
|
446
565
|
}, zod_v4_core0.$strip>;
|
|
447
|
-
use: (
|
|
566
|
+
use: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
448
567
|
session: {
|
|
449
568
|
session: Record<string, any> & {
|
|
450
569
|
id: string;
|
|
@@ -466,7 +585,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
466
585
|
image?: string | null | undefined;
|
|
467
586
|
};
|
|
468
587
|
};
|
|
469
|
-
}
|
|
588
|
+
}>>[];
|
|
470
589
|
metadata: {
|
|
471
590
|
openapi: {
|
|
472
591
|
description: string;
|
|
@@ -478,7 +597,12 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
478
597
|
schema: {
|
|
479
598
|
type: "object";
|
|
480
599
|
properties: {
|
|
481
|
-
|
|
600
|
+
redirect: {
|
|
601
|
+
type: string;
|
|
602
|
+
description: string;
|
|
603
|
+
enum: boolean[];
|
|
604
|
+
};
|
|
605
|
+
url: {
|
|
482
606
|
type: string;
|
|
483
607
|
format: string;
|
|
484
608
|
description: string;
|
|
@@ -493,10 +617,13 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
493
617
|
};
|
|
494
618
|
};
|
|
495
619
|
}, {
|
|
620
|
+
redirect: true;
|
|
621
|
+
url: string;
|
|
622
|
+
} | {
|
|
496
623
|
redirect: boolean;
|
|
497
624
|
url: string;
|
|
498
625
|
}>;
|
|
499
|
-
oauth2Continue:
|
|
626
|
+
oauth2Continue: better_call0.StrictEndpoint<"/oauth2/continue", {
|
|
500
627
|
method: "POST";
|
|
501
628
|
body: zod0.ZodObject<{
|
|
502
629
|
selected: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
@@ -504,7 +631,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
504
631
|
postLogin: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
505
632
|
oauth_query: zod0.ZodOptional<zod0.ZodString>;
|
|
506
633
|
}, zod_v4_core0.$strip>;
|
|
507
|
-
use: (
|
|
634
|
+
use: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
508
635
|
session: {
|
|
509
636
|
session: Record<string, any> & {
|
|
510
637
|
id: string;
|
|
@@ -526,7 +653,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
526
653
|
image?: string | null | undefined;
|
|
527
654
|
};
|
|
528
655
|
};
|
|
529
|
-
}
|
|
656
|
+
}>>[];
|
|
530
657
|
metadata: {
|
|
531
658
|
openapi: {
|
|
532
659
|
description: string;
|
|
@@ -538,7 +665,12 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
538
665
|
schema: {
|
|
539
666
|
type: "object";
|
|
540
667
|
properties: {
|
|
541
|
-
|
|
668
|
+
redirect: {
|
|
669
|
+
type: string;
|
|
670
|
+
description: string;
|
|
671
|
+
enum: boolean[];
|
|
672
|
+
};
|
|
673
|
+
url: {
|
|
542
674
|
type: string;
|
|
543
675
|
format: string;
|
|
544
676
|
description: string;
|
|
@@ -553,30 +685,48 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
553
685
|
};
|
|
554
686
|
};
|
|
555
687
|
}, {
|
|
556
|
-
redirect:
|
|
688
|
+
redirect: true;
|
|
557
689
|
url: string;
|
|
558
690
|
}>;
|
|
559
|
-
oauth2Token:
|
|
691
|
+
oauth2Token: better_call0.StrictEndpoint<"/oauth2/token", {
|
|
560
692
|
method: "POST";
|
|
693
|
+
cloneRequest: true;
|
|
561
694
|
body: zod0.ZodObject<{
|
|
562
|
-
grant_type: zod0.
|
|
563
|
-
authorization_code: "authorization_code";
|
|
564
|
-
client_credentials: "client_credentials";
|
|
565
|
-
refresh_token: "refresh_token";
|
|
566
|
-
}>;
|
|
695
|
+
grant_type: zod0.ZodString;
|
|
567
696
|
client_id: zod0.ZodOptional<zod0.ZodString>;
|
|
568
697
|
client_secret: zod0.ZodOptional<zod0.ZodString>;
|
|
698
|
+
client_assertion: zod0.ZodOptional<zod0.ZodString>;
|
|
699
|
+
client_assertion_type: zod0.ZodOptional<zod0.ZodString>;
|
|
569
700
|
code: zod0.ZodOptional<zod0.ZodString>;
|
|
570
701
|
code_verifier: zod0.ZodOptional<zod0.ZodString>;
|
|
571
702
|
redirect_uri: zod0.ZodOptional<zod0.ZodURL>;
|
|
572
703
|
refresh_token: zod0.ZodOptional<zod0.ZodString>;
|
|
573
|
-
resource: zod0.ZodOptional<zod0.ZodString
|
|
704
|
+
resource: zod0.ZodOptional<zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>>;
|
|
574
705
|
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
575
|
-
}, zod_v4_core0.$
|
|
706
|
+
}, zod_v4_core0.$loose>;
|
|
707
|
+
errorCodesByField: {
|
|
708
|
+
grant_type: {
|
|
709
|
+
missing: "invalid_request";
|
|
710
|
+
invalid: "unsupported_grant_type";
|
|
711
|
+
};
|
|
712
|
+
resource: {
|
|
713
|
+
invalid: "invalid_target";
|
|
714
|
+
};
|
|
715
|
+
};
|
|
576
716
|
metadata: {
|
|
717
|
+
noStore: boolean;
|
|
577
718
|
allowedMediaTypes: string[];
|
|
578
719
|
openapi: {
|
|
579
720
|
description: string;
|
|
721
|
+
parameters: {
|
|
722
|
+
name: string;
|
|
723
|
+
in: "header";
|
|
724
|
+
required: false;
|
|
725
|
+
schema: {
|
|
726
|
+
type: "string";
|
|
727
|
+
};
|
|
728
|
+
description: string;
|
|
729
|
+
}[];
|
|
580
730
|
requestBody: {
|
|
581
731
|
required: boolean;
|
|
582
732
|
content: {
|
|
@@ -586,7 +736,6 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
586
736
|
properties: {
|
|
587
737
|
grant_type: {
|
|
588
738
|
type: string;
|
|
589
|
-
enum: string[];
|
|
590
739
|
description: string;
|
|
591
740
|
};
|
|
592
741
|
client_id: {
|
|
@@ -615,7 +764,17 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
615
764
|
description: string;
|
|
616
765
|
};
|
|
617
766
|
resource: {
|
|
618
|
-
|
|
767
|
+
oneOf: ({
|
|
768
|
+
type: string;
|
|
769
|
+
description: string;
|
|
770
|
+
items?: undefined;
|
|
771
|
+
} | {
|
|
772
|
+
type: string;
|
|
773
|
+
items: {
|
|
774
|
+
type: string;
|
|
775
|
+
};
|
|
776
|
+
description: string;
|
|
777
|
+
})[];
|
|
619
778
|
description: string;
|
|
620
779
|
};
|
|
621
780
|
scope: {
|
|
@@ -693,26 +852,27 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
693
852
|
};
|
|
694
853
|
};
|
|
695
854
|
}, {
|
|
696
|
-
access_token: string;
|
|
697
855
|
expires_in: number;
|
|
856
|
+
access_token: string;
|
|
698
857
|
expires_at: number;
|
|
699
|
-
token_type:
|
|
858
|
+
token_type: _better_auth_oauth_provider0.TokenType;
|
|
700
859
|
refresh_token: string | undefined;
|
|
701
860
|
scope: string;
|
|
702
861
|
id_token: string | undefined;
|
|
703
862
|
}>;
|
|
704
|
-
oauth2Introspect:
|
|
863
|
+
oauth2Introspect: better_call0.StrictEndpoint<"/oauth2/introspect", {
|
|
705
864
|
method: "POST";
|
|
865
|
+
cloneRequest: true;
|
|
706
866
|
body: zod0.ZodObject<{
|
|
707
867
|
client_id: zod0.ZodOptional<zod0.ZodString>;
|
|
708
868
|
client_secret: zod0.ZodOptional<zod0.ZodString>;
|
|
869
|
+
client_assertion: zod0.ZodOptional<zod0.ZodString>;
|
|
870
|
+
client_assertion_type: zod0.ZodOptional<zod0.ZodString>;
|
|
709
871
|
token: zod0.ZodString;
|
|
710
|
-
token_type_hint: zod0.ZodOptional<zod0.
|
|
711
|
-
refresh_token: "refresh_token";
|
|
712
|
-
access_token: "access_token";
|
|
713
|
-
}>>;
|
|
872
|
+
token_type_hint: zod0.ZodOptional<zod0.ZodString>;
|
|
714
873
|
}, zod_v4_core0.$strip>;
|
|
715
874
|
metadata: {
|
|
875
|
+
noStore: boolean;
|
|
716
876
|
allowedMediaTypes: string[];
|
|
717
877
|
openapi: {
|
|
718
878
|
description: string;
|
|
@@ -736,11 +896,6 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
736
896
|
description: string;
|
|
737
897
|
};
|
|
738
898
|
token_type_hint: {
|
|
739
|
-
type: string;
|
|
740
|
-
enum: string[];
|
|
741
|
-
description: string;
|
|
742
|
-
};
|
|
743
|
-
resource: {
|
|
744
899
|
type: string;
|
|
745
900
|
description: string;
|
|
746
901
|
};
|
|
@@ -838,16 +993,16 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
838
993
|
};
|
|
839
994
|
};
|
|
840
995
|
}, jose0.JWTPayload>;
|
|
841
|
-
oauth2Revoke:
|
|
996
|
+
oauth2Revoke: better_call0.StrictEndpoint<"/oauth2/revoke", {
|
|
842
997
|
method: "POST";
|
|
998
|
+
cloneRequest: true;
|
|
843
999
|
body: zod0.ZodObject<{
|
|
844
1000
|
client_id: zod0.ZodOptional<zod0.ZodString>;
|
|
845
1001
|
client_secret: zod0.ZodOptional<zod0.ZodString>;
|
|
1002
|
+
client_assertion: zod0.ZodOptional<zod0.ZodString>;
|
|
1003
|
+
client_assertion_type: zod0.ZodOptional<zod0.ZodString>;
|
|
846
1004
|
token: zod0.ZodString;
|
|
847
|
-
token_type_hint: zod0.ZodOptional<zod0.
|
|
848
|
-
refresh_token: "refresh_token";
|
|
849
|
-
access_token: "access_token";
|
|
850
|
-
}>>;
|
|
1005
|
+
token_type_hint: zod0.ZodOptional<zod0.ZodString>;
|
|
851
1006
|
}, zod_v4_core0.$strip>;
|
|
852
1007
|
metadata: {
|
|
853
1008
|
allowedMediaTypes: string[];
|
|
@@ -874,7 +1029,6 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
874
1029
|
};
|
|
875
1030
|
token_type_hint: {
|
|
876
1031
|
type: string;
|
|
877
|
-
enum: string[];
|
|
878
1032
|
description: string;
|
|
879
1033
|
};
|
|
880
1034
|
};
|
|
@@ -921,9 +1075,14 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
921
1075
|
};
|
|
922
1076
|
};
|
|
923
1077
|
}, null | undefined>;
|
|
924
|
-
oauth2UserInfo:
|
|
925
|
-
method: "GET";
|
|
1078
|
+
oauth2UserInfo: better_call0.StrictEndpoint<"/oauth2/userinfo", {
|
|
1079
|
+
method: ("GET" | "POST")[];
|
|
1080
|
+
body: zod0.ZodOptional<zod0.ZodObject<{
|
|
1081
|
+
access_token: zod0.ZodOptional<zod0.ZodString>;
|
|
1082
|
+
}, zod_v4_core0.$loose>>;
|
|
926
1083
|
metadata: {
|
|
1084
|
+
noStore: boolean;
|
|
1085
|
+
allowedMediaTypes: string[];
|
|
927
1086
|
openapi: {
|
|
928
1087
|
description: string;
|
|
929
1088
|
security: ({
|
|
@@ -1034,23 +1193,46 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1034
1193
|
};
|
|
1035
1194
|
};
|
|
1036
1195
|
}, {
|
|
1037
|
-
|
|
1038
|
-
email_verified?: boolean | undefined;
|
|
1039
|
-
name?: string | undefined;
|
|
1040
|
-
picture?: string | undefined;
|
|
1041
|
-
given_name?: string | undefined;
|
|
1042
|
-
family_name?: string | undefined;
|
|
1043
|
-
sub: string;
|
|
1196
|
+
sub: unknown;
|
|
1044
1197
|
}>;
|
|
1045
|
-
oauth2EndSession:
|
|
1046
|
-
method: "GET";
|
|
1047
|
-
|
|
1048
|
-
id_token_hint: zod0.ZodString
|
|
1198
|
+
oauth2EndSession: better_call0.StrictEndpoint<"/oauth2/end-session", {
|
|
1199
|
+
method: ("GET" | "POST")[];
|
|
1200
|
+
body: zod0.ZodOptional<zod0.ZodObject<{
|
|
1201
|
+
id_token_hint: zod0.ZodOptional<zod0.ZodString>;
|
|
1049
1202
|
client_id: zod0.ZodOptional<zod0.ZodString>;
|
|
1050
1203
|
post_logout_redirect_uri: zod0.ZodOptional<zod0.ZodURL>;
|
|
1051
1204
|
state: zod0.ZodOptional<zod0.ZodString>;
|
|
1052
|
-
}, zod_v4_core0.$strip
|
|
1205
|
+
}, zod_v4_core0.$strip>>;
|
|
1206
|
+
query: zod0.ZodOptional<zod0.ZodObject<{
|
|
1207
|
+
id_token_hint: zod0.ZodOptional<zod0.ZodString>;
|
|
1208
|
+
client_id: zod0.ZodOptional<zod0.ZodString>;
|
|
1209
|
+
post_logout_redirect_uri: zod0.ZodOptional<zod0.ZodURL>;
|
|
1210
|
+
state: zod0.ZodOptional<zod0.ZodString>;
|
|
1211
|
+
}, zod_v4_core0.$strip>>;
|
|
1053
1212
|
metadata: {
|
|
1213
|
+
noStore: boolean;
|
|
1214
|
+
allowedMediaTypes: string[];
|
|
1215
|
+
$Infer: {
|
|
1216
|
+
body: {
|
|
1217
|
+
id_token_hint?: string;
|
|
1218
|
+
client_id?: string;
|
|
1219
|
+
post_logout_redirect_uri?: string;
|
|
1220
|
+
state?: string;
|
|
1221
|
+
} | {
|
|
1222
|
+
query: {
|
|
1223
|
+
id_token_hint?: string;
|
|
1224
|
+
client_id?: string;
|
|
1225
|
+
post_logout_redirect_uri?: string;
|
|
1226
|
+
state?: string;
|
|
1227
|
+
};
|
|
1228
|
+
};
|
|
1229
|
+
query: {
|
|
1230
|
+
id_token_hint?: string;
|
|
1231
|
+
client_id?: string;
|
|
1232
|
+
post_logout_redirect_uri?: string;
|
|
1233
|
+
state?: string;
|
|
1234
|
+
};
|
|
1235
|
+
};
|
|
1054
1236
|
openapi: {
|
|
1055
1237
|
description: string;
|
|
1056
1238
|
responses: {
|
|
@@ -1073,19 +1255,38 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1073
1255
|
};
|
|
1074
1256
|
};
|
|
1075
1257
|
};
|
|
1258
|
+
"text/html": {
|
|
1259
|
+
schema: {
|
|
1260
|
+
type: "string";
|
|
1261
|
+
};
|
|
1262
|
+
};
|
|
1076
1263
|
};
|
|
1077
1264
|
};
|
|
1078
1265
|
};
|
|
1079
1266
|
};
|
|
1080
1267
|
};
|
|
1081
|
-
}, {
|
|
1082
|
-
redirect:
|
|
1268
|
+
}, Response | {
|
|
1269
|
+
redirect: true;
|
|
1083
1270
|
url: string;
|
|
1084
|
-
} |
|
|
1085
|
-
|
|
1271
|
+
} | null>;
|
|
1272
|
+
oauth2EndSessionConfirmation: better_call0.StrictEndpoint<"/oauth2/end-session/confirm", {
|
|
1086
1273
|
method: "POST";
|
|
1087
1274
|
body: zod0.ZodObject<{
|
|
1088
|
-
|
|
1275
|
+
action: zod0.ZodLiteral<"confirm">;
|
|
1276
|
+
}, zod_v4_core0.$strip>;
|
|
1277
|
+
metadata: {
|
|
1278
|
+
noStore: boolean;
|
|
1279
|
+
allowedMediaTypes: string[];
|
|
1280
|
+
scope: "http";
|
|
1281
|
+
};
|
|
1282
|
+
}, Response | {
|
|
1283
|
+
redirect: true;
|
|
1284
|
+
url: string;
|
|
1285
|
+
} | null>;
|
|
1286
|
+
registerOAuthClient: better_call0.StrictEndpoint<"/oauth2/register", {
|
|
1287
|
+
method: "POST";
|
|
1288
|
+
body: zod0.ZodObject<{
|
|
1289
|
+
redirect_uris: zod0.ZodOptional<zod0.ZodArray<zod0.ZodURL>>;
|
|
1089
1290
|
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
1090
1291
|
client_name: zod0.ZodOptional<zod0.ZodString>;
|
|
1091
1292
|
client_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
@@ -1097,35 +1298,42 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1097
1298
|
software_version: zod0.ZodOptional<zod0.ZodString>;
|
|
1098
1299
|
software_statement: zod0.ZodOptional<zod0.ZodString>;
|
|
1099
1300
|
post_logout_redirect_uris: zod0.ZodOptional<zod0.ZodArray<zod0.ZodURL>>;
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
}>>>>;
|
|
1110
|
-
response_types: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodArray<zod0.ZodEnum<{
|
|
1301
|
+
backchannel_logout_uri: zod0.ZodOptional<zod0.ZodURL>;
|
|
1302
|
+
backchannel_logout_session_required: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1303
|
+
token_endpoint_auth_method: zod0.ZodOptional<zod0.ZodString>;
|
|
1304
|
+
jwks: zod0.ZodOptional<zod0.ZodObject<{
|
|
1305
|
+
keys: zod0.ZodArray<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
|
|
1306
|
+
}, zod_v4_core0.$strip>>;
|
|
1307
|
+
jwks_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1308
|
+
grant_types: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
1309
|
+
response_types: zod0.ZodOptional<zod0.ZodArray<zod0.ZodEnum<{
|
|
1111
1310
|
code: "code";
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1311
|
+
}>>>;
|
|
1312
|
+
application_type: zod0.ZodOptional<zod0.ZodEnum<{
|
|
1114
1313
|
web: "web";
|
|
1115
1314
|
native: "native";
|
|
1116
|
-
"user-agent-based": "user-agent-based";
|
|
1117
1315
|
}>>;
|
|
1118
1316
|
subject_type: zod0.ZodOptional<zod0.ZodEnum<{
|
|
1119
1317
|
public: "public";
|
|
1120
1318
|
pairwise: "pairwise";
|
|
1121
1319
|
}>>;
|
|
1320
|
+
dpop_bound_access_tokens: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1321
|
+
resources: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
1122
1322
|
skip_consent: zod0.ZodOptional<zod0.ZodNever>;
|
|
1123
1323
|
}, zod_v4_core0.$strip>;
|
|
1324
|
+
errorCodesByField: {
|
|
1325
|
+
redirect_uris: "invalid_redirect_uri";
|
|
1326
|
+
post_logout_redirect_uris: "invalid_redirect_uri";
|
|
1327
|
+
software_statement: "invalid_software_statement";
|
|
1328
|
+
resources: "invalid_target";
|
|
1329
|
+
};
|
|
1330
|
+
defaultError: "invalid_client_metadata";
|
|
1124
1331
|
metadata: {
|
|
1332
|
+
noStore: boolean;
|
|
1125
1333
|
openapi: {
|
|
1126
1334
|
description: string;
|
|
1127
1335
|
responses: {
|
|
1128
|
-
"
|
|
1336
|
+
"201": {
|
|
1129
1337
|
description: string;
|
|
1130
1338
|
content: {
|
|
1131
1339
|
"application/json": {
|
|
@@ -1211,16 +1419,23 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1211
1419
|
};
|
|
1212
1420
|
description: string;
|
|
1213
1421
|
};
|
|
1422
|
+
backchannel_logout_uri: {
|
|
1423
|
+
type: string;
|
|
1424
|
+
format: string;
|
|
1425
|
+
description: string;
|
|
1426
|
+
};
|
|
1427
|
+
backchannel_logout_session_required: {
|
|
1428
|
+
type: string;
|
|
1429
|
+
description: string;
|
|
1430
|
+
};
|
|
1214
1431
|
token_endpoint_auth_method: {
|
|
1215
1432
|
type: string;
|
|
1216
1433
|
description: string;
|
|
1217
|
-
enum: string[];
|
|
1218
1434
|
};
|
|
1219
1435
|
grant_types: {
|
|
1220
1436
|
type: string;
|
|
1221
1437
|
items: {
|
|
1222
1438
|
type: string;
|
|
1223
|
-
enum: string[];
|
|
1224
1439
|
};
|
|
1225
1440
|
description: string;
|
|
1226
1441
|
};
|
|
@@ -1232,14 +1447,18 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1232
1447
|
};
|
|
1233
1448
|
description: string;
|
|
1234
1449
|
};
|
|
1235
|
-
|
|
1450
|
+
application_type: {
|
|
1236
1451
|
type: string;
|
|
1237
1452
|
description: string;
|
|
1453
|
+
enum: string[];
|
|
1238
1454
|
};
|
|
1239
|
-
|
|
1455
|
+
resources: {
|
|
1240
1456
|
type: string;
|
|
1457
|
+
items: {
|
|
1458
|
+
type: string;
|
|
1459
|
+
format: string;
|
|
1460
|
+
};
|
|
1241
1461
|
description: string;
|
|
1242
|
-
enum: string[];
|
|
1243
1462
|
};
|
|
1244
1463
|
disabled: {
|
|
1245
1464
|
type: string;
|
|
@@ -1254,11 +1473,11 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1254
1473
|
};
|
|
1255
1474
|
};
|
|
1256
1475
|
};
|
|
1257
|
-
}, _better_auth_oauth_provider0.
|
|
1258
|
-
adminCreateOAuthClient:
|
|
1476
|
+
}, _better_auth_oauth_provider0.OAuthClientRegistrationResponse>;
|
|
1477
|
+
adminCreateOAuthClient: better_call0.StrictEndpoint<"/admin/oauth2/create-client", {
|
|
1259
1478
|
method: "POST";
|
|
1260
1479
|
body: zod0.ZodObject<{
|
|
1261
|
-
redirect_uris: zod0.ZodArray<zod0.ZodURL
|
|
1480
|
+
redirect_uris: zod0.ZodOptional<zod0.ZodArray<zod0.ZodURL>>;
|
|
1262
1481
|
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
1263
1482
|
client_name: zod0.ZodOptional<zod0.ZodString>;
|
|
1264
1483
|
client_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
@@ -1270,28 +1489,28 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1270
1489
|
software_version: zod0.ZodOptional<zod0.ZodString>;
|
|
1271
1490
|
software_statement: zod0.ZodOptional<zod0.ZodString>;
|
|
1272
1491
|
post_logout_redirect_uris: zod0.ZodOptional<zod0.ZodArray<zod0.ZodURL>>;
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
}>>>;
|
|
1278
|
-
grant_types: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodArray<zod0.ZodEnum<{
|
|
1279
|
-
authorization_code: "authorization_code";
|
|
1280
|
-
client_credentials: "client_credentials";
|
|
1281
|
-
refresh_token: "refresh_token";
|
|
1282
|
-
}>>>>;
|
|
1283
|
-
response_types: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodArray<zod0.ZodEnum<{
|
|
1284
|
-
code: "code";
|
|
1285
|
-
}>>>>;
|
|
1286
|
-
type: zod0.ZodOptional<zod0.ZodEnum<{
|
|
1492
|
+
backchannel_logout_uri: zod0.ZodOptional<zod0.ZodURL>;
|
|
1493
|
+
backchannel_logout_session_required: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1494
|
+
token_endpoint_auth_method: zod0.ZodOptional<zod0.ZodString>;
|
|
1495
|
+
application_type: zod0.ZodOptional<zod0.ZodEnum<{
|
|
1287
1496
|
web: "web";
|
|
1288
1497
|
native: "native";
|
|
1289
|
-
"user-agent-based": "user-agent-based";
|
|
1290
1498
|
}>>;
|
|
1499
|
+
jwks: zod0.ZodOptional<zod0.ZodObject<{
|
|
1500
|
+
keys: zod0.ZodArray<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
|
|
1501
|
+
}, zod_v4_core0.$strip>>;
|
|
1502
|
+
jwks_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1503
|
+
grant_types: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
1504
|
+
client_credentials_scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
1505
|
+
resources: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
1506
|
+
response_types: zod0.ZodOptional<zod0.ZodArray<zod0.ZodEnum<{
|
|
1507
|
+
code: "code";
|
|
1508
|
+
}>>>;
|
|
1291
1509
|
client_secret_expires_at: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodNumber]>>>;
|
|
1292
1510
|
skip_consent: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1293
1511
|
enable_end_session: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1294
1512
|
require_pkce: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1513
|
+
dpop_bound_access_tokens: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1295
1514
|
subject_type: zod0.ZodOptional<zod0.ZodEnum<{
|
|
1296
1515
|
public: "public";
|
|
1297
1516
|
pairwise: "pairwise";
|
|
@@ -1299,11 +1518,12 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1299
1518
|
metadata: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
|
|
1300
1519
|
}, zod_v4_core0.$strip>;
|
|
1301
1520
|
metadata: {
|
|
1521
|
+
noStore: boolean;
|
|
1302
1522
|
SERVER_ONLY: true;
|
|
1303
1523
|
openapi: {
|
|
1304
1524
|
description: string;
|
|
1305
1525
|
responses: {
|
|
1306
|
-
"
|
|
1526
|
+
"201": {
|
|
1307
1527
|
description: string;
|
|
1308
1528
|
content: {
|
|
1309
1529
|
"application/json": {
|
|
@@ -1326,6 +1546,13 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1326
1546
|
type: string;
|
|
1327
1547
|
description: string;
|
|
1328
1548
|
};
|
|
1549
|
+
client_credentials_scopes: {
|
|
1550
|
+
type: string;
|
|
1551
|
+
items: {
|
|
1552
|
+
type: string;
|
|
1553
|
+
};
|
|
1554
|
+
description: string;
|
|
1555
|
+
};
|
|
1329
1556
|
user_id: {
|
|
1330
1557
|
type: string;
|
|
1331
1558
|
description: string;
|
|
@@ -1384,13 +1611,11 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1384
1611
|
token_endpoint_auth_method: {
|
|
1385
1612
|
type: string;
|
|
1386
1613
|
description: string;
|
|
1387
|
-
enum: string[];
|
|
1388
1614
|
};
|
|
1389
1615
|
grant_types: {
|
|
1390
1616
|
type: string;
|
|
1391
1617
|
items: {
|
|
1392
1618
|
type: string;
|
|
1393
|
-
enum: string[];
|
|
1394
1619
|
};
|
|
1395
1620
|
description: string;
|
|
1396
1621
|
};
|
|
@@ -1402,14 +1627,18 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1402
1627
|
};
|
|
1403
1628
|
description: string;
|
|
1404
1629
|
};
|
|
1405
|
-
|
|
1630
|
+
application_type: {
|
|
1406
1631
|
type: string;
|
|
1407
1632
|
description: string;
|
|
1633
|
+
enum: string[];
|
|
1408
1634
|
};
|
|
1409
|
-
|
|
1635
|
+
resources: {
|
|
1410
1636
|
type: string;
|
|
1637
|
+
items: {
|
|
1638
|
+
type: string;
|
|
1639
|
+
format: string;
|
|
1640
|
+
};
|
|
1411
1641
|
description: string;
|
|
1412
|
-
enum: string[];
|
|
1413
1642
|
};
|
|
1414
1643
|
disabled: {
|
|
1415
1644
|
type: string;
|
|
@@ -1435,10 +1664,10 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1435
1664
|
};
|
|
1436
1665
|
};
|
|
1437
1666
|
};
|
|
1438
|
-
}, _better_auth_oauth_provider0.
|
|
1439
|
-
createOAuthClient:
|
|
1667
|
+
}, _better_auth_oauth_provider0.OAuthClientAdministrativeResponse>;
|
|
1668
|
+
createOAuthClient: better_call0.StrictEndpoint<"/oauth2/create-client", {
|
|
1440
1669
|
method: "POST";
|
|
1441
|
-
use: (
|
|
1670
|
+
use: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1442
1671
|
session: {
|
|
1443
1672
|
session: Record<string, any> & {
|
|
1444
1673
|
id: string;
|
|
@@ -1460,9 +1689,9 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1460
1689
|
image?: string | null | undefined;
|
|
1461
1690
|
};
|
|
1462
1691
|
};
|
|
1463
|
-
}
|
|
1692
|
+
}>>[];
|
|
1464
1693
|
body: zod0.ZodObject<{
|
|
1465
|
-
redirect_uris: zod0.ZodArray<zod0.ZodURL
|
|
1694
|
+
redirect_uris: zod0.ZodOptional<zod0.ZodArray<zod0.ZodURL>>;
|
|
1466
1695
|
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
1467
1696
|
client_name: zod0.ZodOptional<zod0.ZodString>;
|
|
1468
1697
|
client_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
@@ -1474,30 +1703,29 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1474
1703
|
software_version: zod0.ZodOptional<zod0.ZodString>;
|
|
1475
1704
|
software_statement: zod0.ZodOptional<zod0.ZodString>;
|
|
1476
1705
|
post_logout_redirect_uris: zod0.ZodOptional<zod0.ZodArray<zod0.ZodURL>>;
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
}>>>;
|
|
1482
|
-
grant_types: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodArray<zod0.ZodEnum<{
|
|
1483
|
-
authorization_code: "authorization_code";
|
|
1484
|
-
client_credentials: "client_credentials";
|
|
1485
|
-
refresh_token: "refresh_token";
|
|
1486
|
-
}>>>>;
|
|
1487
|
-
response_types: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodArray<zod0.ZodEnum<{
|
|
1488
|
-
code: "code";
|
|
1489
|
-
}>>>>;
|
|
1490
|
-
type: zod0.ZodOptional<zod0.ZodEnum<{
|
|
1706
|
+
backchannel_logout_uri: zod0.ZodOptional<zod0.ZodURL>;
|
|
1707
|
+
backchannel_logout_session_required: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1708
|
+
token_endpoint_auth_method: zod0.ZodOptional<zod0.ZodString>;
|
|
1709
|
+
application_type: zod0.ZodOptional<zod0.ZodEnum<{
|
|
1491
1710
|
web: "web";
|
|
1492
1711
|
native: "native";
|
|
1493
|
-
"user-agent-based": "user-agent-based";
|
|
1494
1712
|
}>>;
|
|
1713
|
+
jwks: zod0.ZodOptional<zod0.ZodObject<{
|
|
1714
|
+
keys: zod0.ZodArray<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
|
|
1715
|
+
}, zod_v4_core0.$strip>>;
|
|
1716
|
+
jwks_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1717
|
+
grant_types: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
1718
|
+
response_types: zod0.ZodOptional<zod0.ZodArray<zod0.ZodEnum<{
|
|
1719
|
+
code: "code";
|
|
1720
|
+
}>>>;
|
|
1721
|
+
dpop_bound_access_tokens: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1495
1722
|
}, zod_v4_core0.$strip>;
|
|
1496
1723
|
metadata: {
|
|
1724
|
+
noStore: boolean;
|
|
1497
1725
|
openapi: {
|
|
1498
1726
|
description: string;
|
|
1499
1727
|
responses: {
|
|
1500
|
-
"
|
|
1728
|
+
"201": {
|
|
1501
1729
|
description: string;
|
|
1502
1730
|
content: {
|
|
1503
1731
|
"application/json": {
|
|
@@ -1578,13 +1806,11 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1578
1806
|
token_endpoint_auth_method: {
|
|
1579
1807
|
type: string;
|
|
1580
1808
|
description: string;
|
|
1581
|
-
enum: string[];
|
|
1582
1809
|
};
|
|
1583
1810
|
grant_types: {
|
|
1584
1811
|
type: string;
|
|
1585
1812
|
items: {
|
|
1586
1813
|
type: string;
|
|
1587
|
-
enum: string[];
|
|
1588
1814
|
};
|
|
1589
1815
|
description: string;
|
|
1590
1816
|
};
|
|
@@ -1596,14 +1822,18 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1596
1822
|
};
|
|
1597
1823
|
description: string;
|
|
1598
1824
|
};
|
|
1599
|
-
|
|
1825
|
+
application_type: {
|
|
1600
1826
|
type: string;
|
|
1601
1827
|
description: string;
|
|
1828
|
+
enum: string[];
|
|
1602
1829
|
};
|
|
1603
|
-
|
|
1830
|
+
resources: {
|
|
1604
1831
|
type: string;
|
|
1832
|
+
items: {
|
|
1833
|
+
type: string;
|
|
1834
|
+
format: string;
|
|
1835
|
+
};
|
|
1605
1836
|
description: string;
|
|
1606
|
-
enum: string[];
|
|
1607
1837
|
};
|
|
1608
1838
|
disabled: {
|
|
1609
1839
|
type: string;
|
|
@@ -1624,10 +1854,10 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1624
1854
|
};
|
|
1625
1855
|
};
|
|
1626
1856
|
};
|
|
1627
|
-
}, _better_auth_oauth_provider0.
|
|
1628
|
-
getOAuthClient:
|
|
1857
|
+
}, _better_auth_oauth_provider0.OAuthClientRegistrationResponse>;
|
|
1858
|
+
getOAuthClient: better_call0.StrictEndpoint<"/oauth2/get-client", {
|
|
1629
1859
|
method: "GET";
|
|
1630
|
-
use: (
|
|
1860
|
+
use: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1631
1861
|
session: {
|
|
1632
1862
|
session: Record<string, any> & {
|
|
1633
1863
|
id: string;
|
|
@@ -1649,7 +1879,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1649
1879
|
image?: string | null | undefined;
|
|
1650
1880
|
};
|
|
1651
1881
|
};
|
|
1652
|
-
}
|
|
1882
|
+
}>>[];
|
|
1653
1883
|
query: zod0.ZodObject<{
|
|
1654
1884
|
client_id: zod0.ZodString;
|
|
1655
1885
|
}, zod_v4_core0.$strip>;
|
|
@@ -1659,9 +1889,9 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1659
1889
|
};
|
|
1660
1890
|
};
|
|
1661
1891
|
}, _better_auth_oauth_provider0.OAuthClient>;
|
|
1662
|
-
getOAuthClientPublic:
|
|
1892
|
+
getOAuthClientPublic: better_call0.StrictEndpoint<"/oauth2/public-client", {
|
|
1663
1893
|
method: "GET";
|
|
1664
|
-
use: (
|
|
1894
|
+
use: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1665
1895
|
session: {
|
|
1666
1896
|
session: Record<string, any> & {
|
|
1667
1897
|
id: string;
|
|
@@ -1683,7 +1913,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1683
1913
|
image?: string | null | undefined;
|
|
1684
1914
|
};
|
|
1685
1915
|
};
|
|
1686
|
-
}
|
|
1916
|
+
}>>[];
|
|
1687
1917
|
query: zod0.ZodObject<{
|
|
1688
1918
|
client_id: zod0.ZodString;
|
|
1689
1919
|
}, zod_v4_core0.$strip>;
|
|
@@ -1693,9 +1923,9 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1693
1923
|
};
|
|
1694
1924
|
};
|
|
1695
1925
|
}, _better_auth_oauth_provider0.OAuthClient>;
|
|
1696
|
-
getOAuthClientPublicPrelogin:
|
|
1926
|
+
getOAuthClientPublicPrelogin: better_call0.StrictEndpoint<"/oauth2/public-client-prelogin", {
|
|
1697
1927
|
method: "POST";
|
|
1698
|
-
use: (
|
|
1928
|
+
use: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>>[];
|
|
1699
1929
|
body: zod0.ZodObject<{
|
|
1700
1930
|
client_id: zod0.ZodString;
|
|
1701
1931
|
oauth_query: zod0.ZodOptional<zod0.ZodString>;
|
|
@@ -1706,9 +1936,9 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1706
1936
|
};
|
|
1707
1937
|
};
|
|
1708
1938
|
}, _better_auth_oauth_provider0.OAuthClient>;
|
|
1709
|
-
getOAuthClients:
|
|
1939
|
+
getOAuthClients: better_call0.StrictEndpoint<"/oauth2/get-clients", {
|
|
1710
1940
|
method: "GET";
|
|
1711
|
-
use: (
|
|
1941
|
+
use: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1712
1942
|
session: {
|
|
1713
1943
|
session: Record<string, any> & {
|
|
1714
1944
|
id: string;
|
|
@@ -1730,14 +1960,14 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1730
1960
|
image?: string | null | undefined;
|
|
1731
1961
|
};
|
|
1732
1962
|
};
|
|
1733
|
-
}
|
|
1963
|
+
}>>[];
|
|
1734
1964
|
metadata: {
|
|
1735
1965
|
openapi: {
|
|
1736
1966
|
description: string;
|
|
1737
1967
|
};
|
|
1738
1968
|
};
|
|
1739
1969
|
}, _better_auth_oauth_provider0.OAuthClient[] | null>;
|
|
1740
|
-
adminUpdateOAuthClient:
|
|
1970
|
+
adminUpdateOAuthClient: better_call0.StrictEndpoint<"/admin/oauth2/update-client", {
|
|
1741
1971
|
method: "PATCH";
|
|
1742
1972
|
body: zod0.ZodObject<{
|
|
1743
1973
|
client_id: zod0.ZodString;
|
|
@@ -1754,22 +1984,22 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1754
1984
|
software_version: zod0.ZodOptional<zod0.ZodString>;
|
|
1755
1985
|
software_statement: zod0.ZodOptional<zod0.ZodString>;
|
|
1756
1986
|
post_logout_redirect_uris: zod0.ZodOptional<zod0.ZodArray<zod0.ZodURL>>;
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
refresh_token: "refresh_token";
|
|
1761
|
-
}>>>;
|
|
1762
|
-
response_types: zod0.ZodOptional<zod0.ZodArray<zod0.ZodEnum<{
|
|
1763
|
-
code: "code";
|
|
1764
|
-
}>>>;
|
|
1765
|
-
type: zod0.ZodOptional<zod0.ZodEnum<{
|
|
1987
|
+
backchannel_logout_uri: zod0.ZodOptional<zod0.ZodURL>;
|
|
1988
|
+
backchannel_logout_session_required: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1989
|
+
application_type: zod0.ZodOptional<zod0.ZodEnum<{
|
|
1766
1990
|
web: "web";
|
|
1767
1991
|
native: "native";
|
|
1768
|
-
"user-agent-based": "user-agent-based";
|
|
1769
1992
|
}>>;
|
|
1993
|
+
grant_types: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
1994
|
+
client_credentials_scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
1995
|
+
response_types: zod0.ZodOptional<zod0.ZodArray<zod0.ZodEnum<{
|
|
1996
|
+
code: "code";
|
|
1997
|
+
}>>>;
|
|
1770
1998
|
client_secret_expires_at: zod0.ZodOptional<zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodNumber]>>;
|
|
1771
1999
|
skip_consent: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1772
2000
|
enable_end_session: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2001
|
+
disabled: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2002
|
+
dpop_bound_access_tokens: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1773
2003
|
metadata: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
|
|
1774
2004
|
}, zod_v4_core0.$strip>;
|
|
1775
2005
|
}, zod_v4_core0.$strip>;
|
|
@@ -1779,10 +2009,10 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1779
2009
|
description: string;
|
|
1780
2010
|
};
|
|
1781
2011
|
};
|
|
1782
|
-
}, _better_auth_oauth_provider0.
|
|
1783
|
-
updateOAuthClient:
|
|
2012
|
+
}, _better_auth_oauth_provider0.OAuthClientAdministrativeResponse>;
|
|
2013
|
+
updateOAuthClient: better_call0.StrictEndpoint<"/oauth2/update-client", {
|
|
1784
2014
|
method: "POST";
|
|
1785
|
-
use: (
|
|
2015
|
+
use: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1786
2016
|
session: {
|
|
1787
2017
|
session: Record<string, any> & {
|
|
1788
2018
|
id: string;
|
|
@@ -1804,7 +2034,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1804
2034
|
image?: string | null | undefined;
|
|
1805
2035
|
};
|
|
1806
2036
|
};
|
|
1807
|
-
}
|
|
2037
|
+
}>>[];
|
|
1808
2038
|
body: zod0.ZodObject<{
|
|
1809
2039
|
client_id: zod0.ZodString;
|
|
1810
2040
|
update: zod0.ZodObject<{
|
|
@@ -1820,19 +2050,16 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1820
2050
|
software_version: zod0.ZodOptional<zod0.ZodString>;
|
|
1821
2051
|
software_statement: zod0.ZodOptional<zod0.ZodString>;
|
|
1822
2052
|
post_logout_redirect_uris: zod0.ZodOptional<zod0.ZodArray<zod0.ZodURL>>;
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
refresh_token: "refresh_token";
|
|
1827
|
-
}>>>;
|
|
1828
|
-
response_types: zod0.ZodOptional<zod0.ZodArray<zod0.ZodEnum<{
|
|
1829
|
-
code: "code";
|
|
1830
|
-
}>>>;
|
|
1831
|
-
type: zod0.ZodOptional<zod0.ZodEnum<{
|
|
2053
|
+
backchannel_logout_uri: zod0.ZodOptional<zod0.ZodURL>;
|
|
2054
|
+
backchannel_logout_session_required: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2055
|
+
application_type: zod0.ZodOptional<zod0.ZodEnum<{
|
|
1832
2056
|
web: "web";
|
|
1833
2057
|
native: "native";
|
|
1834
|
-
"user-agent-based": "user-agent-based";
|
|
1835
2058
|
}>>;
|
|
2059
|
+
grant_types: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
2060
|
+
response_types: zod0.ZodOptional<zod0.ZodArray<zod0.ZodEnum<{
|
|
2061
|
+
code: "code";
|
|
2062
|
+
}>>>;
|
|
1836
2063
|
}, zod_v4_core0.$strip>;
|
|
1837
2064
|
}, zod_v4_core0.$strip>;
|
|
1838
2065
|
metadata: {
|
|
@@ -1840,10 +2067,10 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1840
2067
|
description: string;
|
|
1841
2068
|
};
|
|
1842
2069
|
};
|
|
1843
|
-
}, _better_auth_oauth_provider0.
|
|
1844
|
-
rotateClientSecret:
|
|
2070
|
+
}, _better_auth_oauth_provider0.OAuthClientRegistrationResponse>;
|
|
2071
|
+
rotateClientSecret: better_call0.StrictEndpoint<"/oauth2/client/rotate-secret", {
|
|
1845
2072
|
method: "POST";
|
|
1846
|
-
use: (
|
|
2073
|
+
use: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1847
2074
|
session: {
|
|
1848
2075
|
session: Record<string, any> & {
|
|
1849
2076
|
id: string;
|
|
@@ -1865,19 +2092,46 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1865
2092
|
image?: string | null | undefined;
|
|
1866
2093
|
};
|
|
1867
2094
|
};
|
|
1868
|
-
}
|
|
2095
|
+
}>>[];
|
|
1869
2096
|
body: zod0.ZodObject<{
|
|
1870
2097
|
client_id: zod0.ZodString;
|
|
1871
2098
|
}, zod_v4_core0.$strip>;
|
|
1872
2099
|
metadata: {
|
|
2100
|
+
noStore: boolean;
|
|
1873
2101
|
openapi: {
|
|
1874
2102
|
description: string;
|
|
1875
2103
|
};
|
|
1876
2104
|
};
|
|
1877
2105
|
}, _better_auth_oauth_provider0.OAuthClient>;
|
|
1878
|
-
|
|
2106
|
+
rotateClientKeys: better_call0.StrictEndpoint<"/oauth2/client/rotate-keys", {
|
|
2107
|
+
method: "POST";
|
|
2108
|
+
body: zod0.ZodObject<{
|
|
2109
|
+
client_assertion: zod0.ZodString;
|
|
2110
|
+
client_assertion_type: zod0.ZodString;
|
|
2111
|
+
jwks: zod0.ZodObject<{
|
|
2112
|
+
keys: zod0.ZodArray<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
|
|
2113
|
+
}, zod_v4_core0.$strip>;
|
|
2114
|
+
}, zod_v4_core0.$strip>;
|
|
2115
|
+
errorCodesByField: {
|
|
2116
|
+
client_assertion: "invalid_client";
|
|
2117
|
+
client_assertion_type: "invalid_client";
|
|
2118
|
+
jwks: "invalid_client_metadata";
|
|
2119
|
+
};
|
|
2120
|
+
metadata: {
|
|
2121
|
+
noStore: boolean;
|
|
2122
|
+
openapi: {
|
|
2123
|
+
description: string;
|
|
2124
|
+
};
|
|
2125
|
+
};
|
|
2126
|
+
}, {
|
|
2127
|
+
client_id: string;
|
|
2128
|
+
jwks: {
|
|
2129
|
+
keys: Record<string, unknown>[];
|
|
2130
|
+
};
|
|
2131
|
+
}>;
|
|
2132
|
+
deleteOAuthClient: better_call0.StrictEndpoint<"/oauth2/delete-client", {
|
|
1879
2133
|
method: "POST";
|
|
1880
|
-
use: (
|
|
2134
|
+
use: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1881
2135
|
session: {
|
|
1882
2136
|
session: Record<string, any> & {
|
|
1883
2137
|
id: string;
|
|
@@ -1899,7 +2153,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1899
2153
|
image?: string | null | undefined;
|
|
1900
2154
|
};
|
|
1901
2155
|
};
|
|
1902
|
-
}
|
|
2156
|
+
}>>[];
|
|
1903
2157
|
body: zod0.ZodObject<{
|
|
1904
2158
|
client_id: zod0.ZodString;
|
|
1905
2159
|
}, zod_v4_core0.$strip>;
|
|
@@ -1909,12 +2163,12 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1909
2163
|
};
|
|
1910
2164
|
};
|
|
1911
2165
|
}, void>;
|
|
1912
|
-
getOAuthConsent:
|
|
2166
|
+
getOAuthConsent: better_call0.StrictEndpoint<"/oauth2/get-consent", {
|
|
1913
2167
|
method: "GET";
|
|
1914
2168
|
query: zod0.ZodObject<{
|
|
1915
2169
|
id: zod0.ZodString;
|
|
1916
2170
|
}, zod_v4_core0.$strip>;
|
|
1917
|
-
use: (
|
|
2171
|
+
use: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1918
2172
|
session: {
|
|
1919
2173
|
session: Record<string, any> & {
|
|
1920
2174
|
id: string;
|
|
@@ -1936,16 +2190,16 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1936
2190
|
image?: string | null | undefined;
|
|
1937
2191
|
};
|
|
1938
2192
|
};
|
|
1939
|
-
}
|
|
2193
|
+
}>>[];
|
|
1940
2194
|
metadata: {
|
|
1941
2195
|
openapi: {
|
|
1942
2196
|
description: string;
|
|
1943
2197
|
};
|
|
1944
2198
|
};
|
|
1945
2199
|
}, _better_auth_oauth_provider0.OAuthConsent<_better_auth_oauth_provider0.Scope[]>>;
|
|
1946
|
-
getOAuthConsents:
|
|
2200
|
+
getOAuthConsents: better_call0.StrictEndpoint<"/oauth2/get-consents", {
|
|
1947
2201
|
method: "GET";
|
|
1948
|
-
use: (
|
|
2202
|
+
use: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1949
2203
|
session: {
|
|
1950
2204
|
session: Record<string, any> & {
|
|
1951
2205
|
id: string;
|
|
@@ -1967,16 +2221,16 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1967
2221
|
image?: string | null | undefined;
|
|
1968
2222
|
};
|
|
1969
2223
|
};
|
|
1970
|
-
}
|
|
2224
|
+
}>>[];
|
|
1971
2225
|
metadata: {
|
|
1972
2226
|
openapi: {
|
|
1973
2227
|
description: string;
|
|
1974
2228
|
};
|
|
1975
2229
|
};
|
|
1976
2230
|
}, _better_auth_oauth_provider0.OAuthConsent<_better_auth_oauth_provider0.Scope[]>[]>;
|
|
1977
|
-
updateOAuthConsent:
|
|
2231
|
+
updateOAuthConsent: better_call0.StrictEndpoint<"/oauth2/update-consent", {
|
|
1978
2232
|
method: "POST";
|
|
1979
|
-
use: (
|
|
2233
|
+
use: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1980
2234
|
session: {
|
|
1981
2235
|
session: Record<string, any> & {
|
|
1982
2236
|
id: string;
|
|
@@ -1998,7 +2252,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
1998
2252
|
image?: string | null | undefined;
|
|
1999
2253
|
};
|
|
2000
2254
|
};
|
|
2001
|
-
}
|
|
2255
|
+
}>>[];
|
|
2002
2256
|
body: zod0.ZodObject<{
|
|
2003
2257
|
id: zod0.ZodString;
|
|
2004
2258
|
update: zod0.ZodObject<{
|
|
@@ -2011,9 +2265,9 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2011
2265
|
};
|
|
2012
2266
|
};
|
|
2013
2267
|
}, _better_auth_oauth_provider0.OAuthConsent<_better_auth_oauth_provider0.Scope[]> | null>;
|
|
2014
|
-
deleteOAuthConsent:
|
|
2268
|
+
deleteOAuthConsent: better_call0.StrictEndpoint<"/oauth2/delete-consent", {
|
|
2015
2269
|
method: "POST";
|
|
2016
|
-
use: (
|
|
2270
|
+
use: better_call0.Middleware<better_call0.MiddlewareOptions, (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2017
2271
|
session: {
|
|
2018
2272
|
session: Record<string, any> & {
|
|
2019
2273
|
id: string;
|
|
@@ -2035,7 +2289,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2035
2289
|
image?: string | null | undefined;
|
|
2036
2290
|
};
|
|
2037
2291
|
};
|
|
2038
|
-
}
|
|
2292
|
+
}>>[];
|
|
2039
2293
|
body: zod0.ZodObject<{
|
|
2040
2294
|
id: zod0.ZodString;
|
|
2041
2295
|
}, zod_v4_core0.$strip>;
|
|
@@ -2045,6 +2299,92 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2045
2299
|
};
|
|
2046
2300
|
};
|
|
2047
2301
|
}, void>;
|
|
2302
|
+
adminCreateOAuthResource: better_call0.StrictEndpoint<"/admin/oauth2/resources", {
|
|
2303
|
+
method: "POST";
|
|
2304
|
+
body: zod0.ZodObject<{
|
|
2305
|
+
identifier: zod0.ZodNonOptional<zod0.ZodOptional<zod0.ZodString>>;
|
|
2306
|
+
name: zod0.ZodOptional<zod0.ZodString>;
|
|
2307
|
+
accessTokenTtl: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
2308
|
+
refreshTokenTtl: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
2309
|
+
signingAlgorithm: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodEnum<{
|
|
2310
|
+
RS256: "RS256";
|
|
2311
|
+
PS256: "PS256";
|
|
2312
|
+
ES256: "ES256";
|
|
2313
|
+
ES512: "ES512";
|
|
2314
|
+
EdDSA: "EdDSA";
|
|
2315
|
+
}>>>;
|
|
2316
|
+
signingKeyId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
2317
|
+
allowedScopes: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodArray<zod0.ZodString>>>;
|
|
2318
|
+
customClaims: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
2319
|
+
dpopBoundAccessTokensRequired: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2320
|
+
disabled: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2321
|
+
metadata: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
2322
|
+
}, zod_v4_core0.$strip>;
|
|
2323
|
+
metadata: {
|
|
2324
|
+
SERVER_ONLY: true;
|
|
2325
|
+
};
|
|
2326
|
+
}, _better_auth_oauth_provider0.OAuthResource>;
|
|
2327
|
+
adminListOAuthResources: better_call0.StrictEndpoint<"/admin/oauth2/resources", {
|
|
2328
|
+
method: "GET";
|
|
2329
|
+
metadata: {
|
|
2330
|
+
SERVER_ONLY: true;
|
|
2331
|
+
};
|
|
2332
|
+
}, _better_auth_oauth_provider0.OAuthResource[]>;
|
|
2333
|
+
adminGetOAuthResource: better_call0.StrictEndpoint<"/admin/oauth2/resources/:identifier", {
|
|
2334
|
+
method: "GET";
|
|
2335
|
+
metadata: {
|
|
2336
|
+
SERVER_ONLY: true;
|
|
2337
|
+
};
|
|
2338
|
+
}, _better_auth_oauth_provider0.OAuthResource>;
|
|
2339
|
+
adminUpdateOAuthResource: better_call0.StrictEndpoint<"/admin/oauth2/resources/:identifier", {
|
|
2340
|
+
method: "PATCH";
|
|
2341
|
+
body: zod0.ZodObject<{
|
|
2342
|
+
identifier: zod0.ZodOptional<zod0.ZodString>;
|
|
2343
|
+
name: zod0.ZodOptional<zod0.ZodString>;
|
|
2344
|
+
accessTokenTtl: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
2345
|
+
refreshTokenTtl: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodNumber>>;
|
|
2346
|
+
signingAlgorithm: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodEnum<{
|
|
2347
|
+
RS256: "RS256";
|
|
2348
|
+
PS256: "PS256";
|
|
2349
|
+
ES256: "ES256";
|
|
2350
|
+
ES512: "ES512";
|
|
2351
|
+
EdDSA: "EdDSA";
|
|
2352
|
+
}>>>;
|
|
2353
|
+
signingKeyId: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodString>>;
|
|
2354
|
+
allowedScopes: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodArray<zod0.ZodString>>>;
|
|
2355
|
+
customClaims: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
2356
|
+
dpopBoundAccessTokensRequired: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2357
|
+
disabled: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
2358
|
+
metadata: zod0.ZodOptional<zod0.ZodNullable<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>>;
|
|
2359
|
+
}, zod_v4_core0.$strip>;
|
|
2360
|
+
metadata: {
|
|
2361
|
+
SERVER_ONLY: true;
|
|
2362
|
+
};
|
|
2363
|
+
}, _better_auth_oauth_provider0.OAuthResource>;
|
|
2364
|
+
adminDeleteOAuthResource: better_call0.StrictEndpoint<"/admin/oauth2/resources/:identifier", {
|
|
2365
|
+
method: "DELETE";
|
|
2366
|
+
metadata: {
|
|
2367
|
+
SERVER_ONLY: true;
|
|
2368
|
+
};
|
|
2369
|
+
}, {
|
|
2370
|
+
deleted: boolean;
|
|
2371
|
+
}>;
|
|
2372
|
+
adminLinkClientResource: better_call0.StrictEndpoint<"/admin/oauth2/resources/:identifier/clients/:client_id", {
|
|
2373
|
+
method: "POST";
|
|
2374
|
+
metadata: {
|
|
2375
|
+
SERVER_ONLY: true;
|
|
2376
|
+
};
|
|
2377
|
+
}, {
|
|
2378
|
+
linked: boolean;
|
|
2379
|
+
}>;
|
|
2380
|
+
adminUnlinkClientResource: better_call0.StrictEndpoint<"/admin/oauth2/resources/:identifier/clients/:client_id", {
|
|
2381
|
+
method: "DELETE";
|
|
2382
|
+
metadata: {
|
|
2383
|
+
SERVER_ONLY: true;
|
|
2384
|
+
};
|
|
2385
|
+
}, {
|
|
2386
|
+
unlinked: boolean;
|
|
2387
|
+
}>;
|
|
2048
2388
|
};
|
|
2049
2389
|
schema: {
|
|
2050
2390
|
oauthClient: {
|
|
@@ -2059,6 +2399,10 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2059
2399
|
type: "string";
|
|
2060
2400
|
required: false;
|
|
2061
2401
|
};
|
|
2402
|
+
clientDiscoveryId: {
|
|
2403
|
+
type: "string";
|
|
2404
|
+
required: false;
|
|
2405
|
+
};
|
|
2062
2406
|
disabled: {
|
|
2063
2407
|
type: "boolean";
|
|
2064
2408
|
defaultValue: false;
|
|
@@ -2080,6 +2424,11 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2080
2424
|
type: "string[]";
|
|
2081
2425
|
required: false;
|
|
2082
2426
|
};
|
|
2427
|
+
clientCredentialsScopes: {
|
|
2428
|
+
type: "string[]";
|
|
2429
|
+
required: false;
|
|
2430
|
+
defaultValue: never[];
|
|
2431
|
+
};
|
|
2083
2432
|
userId: {
|
|
2084
2433
|
type: "string";
|
|
2085
2434
|
required: false;
|
|
@@ -2087,6 +2436,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2087
2436
|
model: string;
|
|
2088
2437
|
field: string;
|
|
2089
2438
|
};
|
|
2439
|
+
index: true;
|
|
2090
2440
|
};
|
|
2091
2441
|
createdAt: {
|
|
2092
2442
|
type: "date";
|
|
@@ -2140,10 +2490,30 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2140
2490
|
type: "string[]";
|
|
2141
2491
|
required: false;
|
|
2142
2492
|
};
|
|
2493
|
+
backchannelLogoutUri: {
|
|
2494
|
+
type: "string";
|
|
2495
|
+
required: false;
|
|
2496
|
+
};
|
|
2497
|
+
backchannelLogoutSessionRequired: {
|
|
2498
|
+
type: "boolean";
|
|
2499
|
+
required: false;
|
|
2500
|
+
};
|
|
2143
2501
|
tokenEndpointAuthMethod: {
|
|
2144
2502
|
type: "string";
|
|
2145
2503
|
required: false;
|
|
2146
2504
|
};
|
|
2505
|
+
applicationType: {
|
|
2506
|
+
type: "string";
|
|
2507
|
+
required: false;
|
|
2508
|
+
};
|
|
2509
|
+
jwks: {
|
|
2510
|
+
type: "string";
|
|
2511
|
+
required: false;
|
|
2512
|
+
};
|
|
2513
|
+
jwksUri: {
|
|
2514
|
+
type: "string";
|
|
2515
|
+
required: false;
|
|
2516
|
+
};
|
|
2147
2517
|
grantTypes: {
|
|
2148
2518
|
type: "string[]";
|
|
2149
2519
|
required: false;
|
|
@@ -2152,33 +2522,133 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2152
2522
|
type: "string[]";
|
|
2153
2523
|
required: false;
|
|
2154
2524
|
};
|
|
2155
|
-
|
|
2525
|
+
requirePKCE: {
|
|
2526
|
+
type: "boolean";
|
|
2527
|
+
required: false;
|
|
2528
|
+
};
|
|
2529
|
+
dpopBoundAccessTokens: {
|
|
2156
2530
|
type: "boolean";
|
|
2157
2531
|
required: false;
|
|
2532
|
+
defaultValue: false;
|
|
2158
2533
|
};
|
|
2159
|
-
|
|
2534
|
+
referenceId: {
|
|
2160
2535
|
type: "string";
|
|
2161
2536
|
required: false;
|
|
2162
2537
|
};
|
|
2163
|
-
|
|
2164
|
-
type: "
|
|
2538
|
+
metadata: {
|
|
2539
|
+
type: "json";
|
|
2165
2540
|
required: false;
|
|
2166
2541
|
};
|
|
2167
|
-
|
|
2542
|
+
};
|
|
2543
|
+
};
|
|
2544
|
+
oauthResource: {
|
|
2545
|
+
modelName: string;
|
|
2546
|
+
fields: {
|
|
2547
|
+
identifier: {
|
|
2168
2548
|
type: "string";
|
|
2549
|
+
required: true;
|
|
2550
|
+
unique: true;
|
|
2551
|
+
};
|
|
2552
|
+
name: {
|
|
2553
|
+
type: "string";
|
|
2554
|
+
required: true;
|
|
2555
|
+
};
|
|
2556
|
+
accessTokenTtl: {
|
|
2557
|
+
type: "number";
|
|
2558
|
+
required: false;
|
|
2559
|
+
};
|
|
2560
|
+
refreshTokenTtl: {
|
|
2561
|
+
type: "number";
|
|
2562
|
+
required: false;
|
|
2563
|
+
};
|
|
2564
|
+
signingAlgorithm: {
|
|
2565
|
+
type: "string";
|
|
2566
|
+
required: false;
|
|
2567
|
+
};
|
|
2568
|
+
signingKeyId: {
|
|
2569
|
+
type: "string";
|
|
2570
|
+
required: false;
|
|
2571
|
+
};
|
|
2572
|
+
allowedScopes: {
|
|
2573
|
+
type: "string[]";
|
|
2574
|
+
required: false;
|
|
2575
|
+
};
|
|
2576
|
+
customClaims: {
|
|
2577
|
+
type: "json";
|
|
2578
|
+
required: false;
|
|
2579
|
+
};
|
|
2580
|
+
dpopBoundAccessTokensRequired: {
|
|
2581
|
+
type: "boolean";
|
|
2582
|
+
required: false;
|
|
2583
|
+
defaultValue: false;
|
|
2584
|
+
};
|
|
2585
|
+
disabled: {
|
|
2586
|
+
type: "boolean";
|
|
2587
|
+
required: false;
|
|
2588
|
+
defaultValue: false;
|
|
2589
|
+
};
|
|
2590
|
+
createdAt: {
|
|
2591
|
+
type: "date";
|
|
2592
|
+
required: false;
|
|
2593
|
+
};
|
|
2594
|
+
updatedAt: {
|
|
2595
|
+
type: "date";
|
|
2596
|
+
required: false;
|
|
2597
|
+
};
|
|
2598
|
+
policyVersion: {
|
|
2599
|
+
type: "number";
|
|
2169
2600
|
required: false;
|
|
2601
|
+
defaultValue: number;
|
|
2602
|
+
};
|
|
2603
|
+
metadata: {
|
|
2604
|
+
type: "json";
|
|
2605
|
+
required: false;
|
|
2606
|
+
};
|
|
2607
|
+
};
|
|
2608
|
+
};
|
|
2609
|
+
oauthClientResource: {
|
|
2610
|
+
modelName: string;
|
|
2611
|
+
fields: {
|
|
2612
|
+
clientId: {
|
|
2613
|
+
type: "string";
|
|
2614
|
+
required: true;
|
|
2615
|
+
references: {
|
|
2616
|
+
model: string;
|
|
2617
|
+
field: string;
|
|
2618
|
+
onDelete: "cascade";
|
|
2619
|
+
};
|
|
2620
|
+
index: true;
|
|
2621
|
+
};
|
|
2622
|
+
resourceId: {
|
|
2623
|
+
type: "string";
|
|
2624
|
+
required: true;
|
|
2625
|
+
references: {
|
|
2626
|
+
model: string;
|
|
2627
|
+
field: string;
|
|
2628
|
+
onDelete: "cascade";
|
|
2629
|
+
};
|
|
2630
|
+
index: true;
|
|
2170
2631
|
};
|
|
2171
2632
|
metadata: {
|
|
2172
2633
|
type: "json";
|
|
2173
2634
|
required: false;
|
|
2174
2635
|
};
|
|
2636
|
+
createdAt: {
|
|
2637
|
+
type: "date";
|
|
2638
|
+
required: false;
|
|
2639
|
+
};
|
|
2175
2640
|
};
|
|
2641
|
+
indexes: {
|
|
2642
|
+
fields: [string, string];
|
|
2643
|
+
unique: true;
|
|
2644
|
+
}[];
|
|
2176
2645
|
};
|
|
2177
2646
|
oauthRefreshToken: {
|
|
2178
2647
|
fields: {
|
|
2179
2648
|
token: {
|
|
2180
2649
|
type: "string";
|
|
2181
2650
|
required: true;
|
|
2651
|
+
unique: true;
|
|
2182
2652
|
};
|
|
2183
2653
|
clientId: {
|
|
2184
2654
|
type: "string";
|
|
@@ -2187,6 +2657,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2187
2657
|
model: string;
|
|
2188
2658
|
field: string;
|
|
2189
2659
|
};
|
|
2660
|
+
index: true;
|
|
2190
2661
|
};
|
|
2191
2662
|
sessionId: {
|
|
2192
2663
|
type: "string";
|
|
@@ -2196,6 +2667,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2196
2667
|
field: string;
|
|
2197
2668
|
onDelete: "set null";
|
|
2198
2669
|
};
|
|
2670
|
+
index: true;
|
|
2199
2671
|
};
|
|
2200
2672
|
userId: {
|
|
2201
2673
|
type: "string";
|
|
@@ -2204,11 +2676,25 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2204
2676
|
model: string;
|
|
2205
2677
|
field: string;
|
|
2206
2678
|
};
|
|
2679
|
+
index: true;
|
|
2207
2680
|
};
|
|
2208
2681
|
referenceId: {
|
|
2209
2682
|
type: "string";
|
|
2210
2683
|
required: false;
|
|
2211
2684
|
};
|
|
2685
|
+
authorizationCodeId: {
|
|
2686
|
+
type: "string";
|
|
2687
|
+
required: false;
|
|
2688
|
+
index: true;
|
|
2689
|
+
};
|
|
2690
|
+
resources: {
|
|
2691
|
+
type: "string[]";
|
|
2692
|
+
required: false;
|
|
2693
|
+
};
|
|
2694
|
+
requestedUserInfoClaims: {
|
|
2695
|
+
type: "string[]";
|
|
2696
|
+
required: false;
|
|
2697
|
+
};
|
|
2212
2698
|
expiresAt: {
|
|
2213
2699
|
type: "date";
|
|
2214
2700
|
};
|
|
@@ -2219,10 +2705,26 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2219
2705
|
type: "date";
|
|
2220
2706
|
required: false;
|
|
2221
2707
|
};
|
|
2708
|
+
rotatedAt: {
|
|
2709
|
+
type: "date";
|
|
2710
|
+
required: false;
|
|
2711
|
+
};
|
|
2712
|
+
rotationReplayResponse: {
|
|
2713
|
+
type: "string";
|
|
2714
|
+
required: false;
|
|
2715
|
+
};
|
|
2716
|
+
rotationReplayExpiresAt: {
|
|
2717
|
+
type: "date";
|
|
2718
|
+
required: false;
|
|
2719
|
+
};
|
|
2222
2720
|
authTime: {
|
|
2223
2721
|
type: "date";
|
|
2224
2722
|
required: false;
|
|
2225
2723
|
};
|
|
2724
|
+
confirmation: {
|
|
2725
|
+
type: "json";
|
|
2726
|
+
required: false;
|
|
2727
|
+
};
|
|
2226
2728
|
scopes: {
|
|
2227
2729
|
type: "string[]";
|
|
2228
2730
|
required: true;
|
|
@@ -2243,6 +2745,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2243
2745
|
model: string;
|
|
2244
2746
|
field: string;
|
|
2245
2747
|
};
|
|
2748
|
+
index: true;
|
|
2246
2749
|
};
|
|
2247
2750
|
sessionId: {
|
|
2248
2751
|
type: "string";
|
|
@@ -2252,6 +2755,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2252
2755
|
field: string;
|
|
2253
2756
|
onDelete: "set null";
|
|
2254
2757
|
};
|
|
2758
|
+
index: true;
|
|
2255
2759
|
};
|
|
2256
2760
|
userId: {
|
|
2257
2761
|
type: "string";
|
|
@@ -2260,11 +2764,25 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2260
2764
|
model: string;
|
|
2261
2765
|
field: string;
|
|
2262
2766
|
};
|
|
2767
|
+
index: true;
|
|
2263
2768
|
};
|
|
2264
2769
|
referenceId: {
|
|
2265
2770
|
type: "string";
|
|
2266
2771
|
required: false;
|
|
2267
2772
|
};
|
|
2773
|
+
authorizationCodeId: {
|
|
2774
|
+
type: "string";
|
|
2775
|
+
required: false;
|
|
2776
|
+
index: true;
|
|
2777
|
+
};
|
|
2778
|
+
resources: {
|
|
2779
|
+
type: "string[]";
|
|
2780
|
+
required: false;
|
|
2781
|
+
};
|
|
2782
|
+
requestedUserInfoClaims: {
|
|
2783
|
+
type: "string[]";
|
|
2784
|
+
required: false;
|
|
2785
|
+
};
|
|
2268
2786
|
refreshId: {
|
|
2269
2787
|
type: "string";
|
|
2270
2788
|
required: false;
|
|
@@ -2272,6 +2790,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2272
2790
|
model: string;
|
|
2273
2791
|
field: string;
|
|
2274
2792
|
};
|
|
2793
|
+
index: true;
|
|
2275
2794
|
};
|
|
2276
2795
|
expiresAt: {
|
|
2277
2796
|
type: "date";
|
|
@@ -2279,6 +2798,14 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2279
2798
|
createdAt: {
|
|
2280
2799
|
type: "date";
|
|
2281
2800
|
};
|
|
2801
|
+
revoked: {
|
|
2802
|
+
type: "date";
|
|
2803
|
+
required: false;
|
|
2804
|
+
};
|
|
2805
|
+
confirmation: {
|
|
2806
|
+
type: "json";
|
|
2807
|
+
required: false;
|
|
2808
|
+
};
|
|
2282
2809
|
scopes: {
|
|
2283
2810
|
type: "string[]";
|
|
2284
2811
|
required: true;
|
|
@@ -2295,6 +2822,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2295
2822
|
model: string;
|
|
2296
2823
|
field: string;
|
|
2297
2824
|
};
|
|
2825
|
+
index: true;
|
|
2298
2826
|
};
|
|
2299
2827
|
userId: {
|
|
2300
2828
|
type: "string";
|
|
@@ -2303,11 +2831,20 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2303
2831
|
model: string;
|
|
2304
2832
|
field: string;
|
|
2305
2833
|
};
|
|
2834
|
+
index: true;
|
|
2306
2835
|
};
|
|
2307
2836
|
referenceId: {
|
|
2308
2837
|
type: "string";
|
|
2309
2838
|
required: false;
|
|
2310
2839
|
};
|
|
2840
|
+
resources: {
|
|
2841
|
+
type: "string[]";
|
|
2842
|
+
required: false;
|
|
2843
|
+
};
|
|
2844
|
+
requestedUserInfoClaims: {
|
|
2845
|
+
type: "string[]";
|
|
2846
|
+
required: false;
|
|
2847
|
+
};
|
|
2311
2848
|
scopes: {
|
|
2312
2849
|
type: "string[]";
|
|
2313
2850
|
required: true;
|
|
@@ -2320,6 +2857,15 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2320
2857
|
};
|
|
2321
2858
|
};
|
|
2322
2859
|
};
|
|
2860
|
+
oauthClientAssertion: {
|
|
2861
|
+
modelName: string;
|
|
2862
|
+
fields: {
|
|
2863
|
+
expiresAt: {
|
|
2864
|
+
type: "date";
|
|
2865
|
+
required: true;
|
|
2866
|
+
};
|
|
2867
|
+
};
|
|
2868
|
+
};
|
|
2323
2869
|
};
|
|
2324
2870
|
rateLimit: ({
|
|
2325
2871
|
pathMatcher: (path: string) => path is "/oauth2/token";
|
|
@@ -2341,6 +2887,10 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2341
2887
|
pathMatcher: (path: string) => path is "/oauth2/register";
|
|
2342
2888
|
window: number;
|
|
2343
2889
|
max: number;
|
|
2890
|
+
} | {
|
|
2891
|
+
pathMatcher: (path: string) => path is "/oauth2/client/rotate-keys";
|
|
2892
|
+
window: number;
|
|
2893
|
+
max: number;
|
|
2344
2894
|
} | {
|
|
2345
2895
|
pathMatcher: (path: string) => path is "/oauth2/userinfo";
|
|
2346
2896
|
window: number;
|
|
@@ -2414,23 +2964,45 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2414
2964
|
required: false;
|
|
2415
2965
|
};
|
|
2416
2966
|
};
|
|
2967
|
+
indexes: {
|
|
2968
|
+
fields: [string];
|
|
2969
|
+
unique: true;
|
|
2970
|
+
}[];
|
|
2417
2971
|
};
|
|
2418
2972
|
};
|
|
2419
2973
|
endpoints: {
|
|
2420
|
-
deviceCode:
|
|
2974
|
+
deviceCode: better_call0.StrictEndpoint<"/device/code", {
|
|
2421
2975
|
method: "POST";
|
|
2976
|
+
cloneRequest: true;
|
|
2422
2977
|
body: zod0.ZodObject<{
|
|
2423
2978
|
client_id: zod0.ZodString;
|
|
2979
|
+
user_id: zod0.ZodOptional<zod0.ZodString>;
|
|
2424
2980
|
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
2981
|
+
}, zod_v4_core0.$strip> | zod0.ZodObject<{
|
|
2982
|
+
user_id: zod0.ZodOptional<zod0.ZodString>;
|
|
2983
|
+
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
2984
|
+
client_id: zod0.ZodOptional<zod0.ZodString>;
|
|
2425
2985
|
}, zod_v4_core0.$strip>;
|
|
2426
2986
|
error: zod0.ZodObject<{
|
|
2427
2987
|
error: zod0.ZodEnum<{
|
|
2428
2988
|
invalid_request: "invalid_request";
|
|
2429
2989
|
invalid_client: "invalid_client";
|
|
2990
|
+
unauthorized_client: "unauthorized_client";
|
|
2991
|
+
invalid_scope: "invalid_scope";
|
|
2992
|
+
server_error: "server_error";
|
|
2430
2993
|
}>;
|
|
2431
2994
|
error_description: zod0.ZodString;
|
|
2432
2995
|
}, zod_v4_core0.$strip>;
|
|
2996
|
+
onValidationError: ({
|
|
2997
|
+
issues,
|
|
2998
|
+
message
|
|
2999
|
+
}: {
|
|
3000
|
+
message: string;
|
|
3001
|
+
issues: readonly better_call0.StandardSchemaV1.Issue[];
|
|
3002
|
+
}) => never;
|
|
2433
3003
|
metadata: {
|
|
3004
|
+
noStore: boolean;
|
|
3005
|
+
allowedMediaTypes: string[];
|
|
2434
3006
|
openapi: {
|
|
2435
3007
|
description: string;
|
|
2436
3008
|
responses: {
|
|
@@ -2473,6 +3045,25 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2473
3045
|
};
|
|
2474
3046
|
};
|
|
2475
3047
|
400: {
|
|
3048
|
+
description: string;
|
|
3049
|
+
content: {
|
|
3050
|
+
"application/json": {
|
|
3051
|
+
schema: {
|
|
3052
|
+
type: "object";
|
|
3053
|
+
properties: {
|
|
3054
|
+
error: {
|
|
3055
|
+
type: string;
|
|
3056
|
+
enum: ["invalid_request", "invalid_client", "unauthorized_client", "invalid_scope"];
|
|
3057
|
+
};
|
|
3058
|
+
error_description: {
|
|
3059
|
+
type: string;
|
|
3060
|
+
};
|
|
3061
|
+
};
|
|
3062
|
+
};
|
|
3063
|
+
};
|
|
3064
|
+
};
|
|
3065
|
+
};
|
|
3066
|
+
500: {
|
|
2476
3067
|
description: string;
|
|
2477
3068
|
content: {
|
|
2478
3069
|
"application/json": {
|
|
@@ -2502,7 +3093,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2502
3093
|
expires_in: number;
|
|
2503
3094
|
interval: number;
|
|
2504
3095
|
}>;
|
|
2505
|
-
deviceToken:
|
|
3096
|
+
deviceToken: better_call0.StrictEndpoint<"/device/token", {
|
|
2506
3097
|
method: "POST";
|
|
2507
3098
|
body: zod0.ZodObject<{
|
|
2508
3099
|
grant_type: zod0.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
|
|
@@ -2512,6 +3103,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2512
3103
|
error: zod0.ZodObject<{
|
|
2513
3104
|
error: zod0.ZodEnum<{
|
|
2514
3105
|
invalid_request: "invalid_request";
|
|
3106
|
+
invalid_client: "invalid_client";
|
|
2515
3107
|
authorization_pending: "authorization_pending";
|
|
2516
3108
|
slow_down: "slow_down";
|
|
2517
3109
|
expired_token: "expired_token";
|
|
@@ -2521,6 +3113,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2521
3113
|
error_description: zod0.ZodString;
|
|
2522
3114
|
}, zod_v4_core0.$strip>;
|
|
2523
3115
|
metadata: {
|
|
3116
|
+
noStore: boolean;
|
|
2524
3117
|
openapi: {
|
|
2525
3118
|
description: string;
|
|
2526
3119
|
responses: {
|
|
@@ -2570,7 +3163,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2570
3163
|
expires_in: number;
|
|
2571
3164
|
scope: string;
|
|
2572
3165
|
}>;
|
|
2573
|
-
deviceVerify:
|
|
3166
|
+
deviceVerify: better_call0.StrictEndpoint<"/device", {
|
|
2574
3167
|
method: "GET";
|
|
2575
3168
|
query: zod0.ZodObject<{
|
|
2576
3169
|
user_code: zod0.ZodString;
|
|
@@ -2601,6 +3194,14 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2601
3194
|
enum: string[];
|
|
2602
3195
|
description: string;
|
|
2603
3196
|
};
|
|
3197
|
+
client_id: {
|
|
3198
|
+
type: string;
|
|
3199
|
+
description: string;
|
|
3200
|
+
};
|
|
3201
|
+
scope: {
|
|
3202
|
+
type: string;
|
|
3203
|
+
description: string;
|
|
3204
|
+
};
|
|
2604
3205
|
};
|
|
2605
3206
|
};
|
|
2606
3207
|
};
|
|
@@ -2612,8 +3213,10 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2612
3213
|
}, {
|
|
2613
3214
|
user_code: string;
|
|
2614
3215
|
status: string;
|
|
2615
|
-
|
|
2616
|
-
|
|
3216
|
+
client_id?: string | undefined;
|
|
3217
|
+
scope?: string | undefined;
|
|
3218
|
+
} & Partial<Record<never, never>>>;
|
|
3219
|
+
deviceApprove: better_call0.StrictEndpoint<"/device/approve", {
|
|
2617
3220
|
method: "POST";
|
|
2618
3221
|
body: zod0.ZodObject<{
|
|
2619
3222
|
userCode: zod0.ZodString;
|
|
@@ -2654,7 +3257,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2654
3257
|
}, {
|
|
2655
3258
|
success: boolean;
|
|
2656
3259
|
}>;
|
|
2657
|
-
deviceDeny:
|
|
3260
|
+
deviceDeny: better_call0.StrictEndpoint<"/device/deny", {
|
|
2658
3261
|
method: "POST";
|
|
2659
3262
|
body: zod0.ZodObject<{
|
|
2660
3263
|
userCode: zod0.ZodString;
|
|
@@ -2695,6 +3298,11 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2695
3298
|
success: boolean;
|
|
2696
3299
|
}>;
|
|
2697
3300
|
};
|
|
3301
|
+
rateLimit: {
|
|
3302
|
+
pathMatcher(path: string): path is "/device";
|
|
3303
|
+
window: number;
|
|
3304
|
+
max: number;
|
|
3305
|
+
}[];
|
|
2698
3306
|
$ERROR_CODES: {
|
|
2699
3307
|
USER_NOT_FOUND: better_auth0.RawError<"USER_NOT_FOUND">;
|
|
2700
3308
|
FAILED_TO_CREATE_SESSION: better_auth0.RawError<"FAILED_TO_CREATE_SESSION">;
|
|
@@ -2710,12 +3318,20 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2710
3318
|
INVALID_DEVICE_CODE_STATUS: better_auth0.RawError<"INVALID_DEVICE_CODE_STATUS">;
|
|
2711
3319
|
AUTHENTICATION_REQUIRED: better_auth0.RawError<"AUTHENTICATION_REQUIRED">;
|
|
2712
3320
|
};
|
|
2713
|
-
options:
|
|
3321
|
+
options: {
|
|
3322
|
+
grant: better_auth_plugins0.DeviceAuthorizationGrant<Readonly<{
|
|
3323
|
+
[k: string]: zod_v4_core0.$ZodType<unknown, unknown, zod_v4_core0.$ZodTypeInternals<unknown, unknown>>;
|
|
3324
|
+
}>, Record<string, unknown>> | undefined;
|
|
2714
3325
|
expiresIn: better_auth_plugins0.TimeString;
|
|
2715
3326
|
interval: better_auth_plugins0.TimeString;
|
|
2716
3327
|
deviceCodeLength: number;
|
|
2717
3328
|
userCodeLength: number;
|
|
2718
|
-
|
|
3329
|
+
generateDeviceCode?: (() => string | Promise<string>) | undefined;
|
|
3330
|
+
generateUserCode?: (() => string | Promise<string>) | undefined;
|
|
3331
|
+
validateClient?: ((clientId: string) => boolean | Promise<boolean>) | undefined;
|
|
3332
|
+
onDeviceAuthRequest?: ((clientId: string, scope: string | undefined) => void | Promise<void>) | undefined;
|
|
3333
|
+
verificationUri?: string | undefined;
|
|
3334
|
+
schema?: {
|
|
2719
3335
|
deviceCode?: {
|
|
2720
3336
|
modelName?: string | undefined;
|
|
2721
3337
|
fields?: {
|
|
@@ -2730,13 +3346,8 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2730
3346
|
scope?: string | undefined;
|
|
2731
3347
|
} | undefined;
|
|
2732
3348
|
} | undefined;
|
|
2733
|
-
};
|
|
2734
|
-
|
|
2735
|
-
generateUserCode?: (() => string | Promise<string>) | undefined;
|
|
2736
|
-
validateClient?: ((clientId: string) => boolean | Promise<boolean>) | undefined;
|
|
2737
|
-
onDeviceAuthRequest?: ((clientId: string, scope: string | undefined) => void | Promise<void>) | undefined;
|
|
2738
|
-
verificationUri?: string | undefined;
|
|
2739
|
-
}>;
|
|
3349
|
+
} | undefined;
|
|
3350
|
+
};
|
|
2740
3351
|
}];
|
|
2741
3352
|
}>;
|
|
2742
3353
|
type AuthInstance = ReturnType<typeof _inferAuthType>;
|