@inkeep/agents-api 0.0.0-dev-20260413140955 → 0.0.0-dev-20260413152429
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/.well-known/workflow/v1/manifest.json +50 -50
- package/dist/createApp.d.ts +2 -2
- package/dist/data/db/runDbClient.d.ts +2 -2
- package/dist/data-reconciliation/handlers/agent.d.ts +2 -2
- package/dist/data-reconciliation/handlers/sub-agents.d.ts +2 -2
- package/dist/domains/evals/routes/index.d.ts +2 -2
- package/dist/domains/evals/workflow/routes.d.ts +2 -2
- package/dist/domains/manage/routes/authLookup.d.ts +2 -2
- package/dist/domains/manage/routes/availableAgents.d.ts +2 -2
- package/dist/domains/manage/routes/conversations.d.ts +2 -2
- package/dist/domains/manage/routes/feedback.d.ts +2 -2
- package/dist/domains/manage/routes/index.d.ts +2 -2
- package/dist/domains/manage/routes/invitations.d.ts +2 -2
- package/dist/domains/manage/routes/passwordResetLinks.d.ts +2 -2
- package/dist/domains/manage/routes/signoz.d.ts +2 -2
- package/dist/domains/manage/routes/users.d.ts +2 -2
- package/dist/domains/mcp/routes/mcp.d.ts +2 -2
- package/dist/domains/run/routes/auth.d.ts +2 -2
- package/dist/domains/run/tools/distill-conversation-history-tool.d.ts +1 -1
- package/dist/domains/run/types/chat.d.ts +13 -13
- package/dist/domains/run/workflow/steps/scheduledTriggerSteps.d.ts +6 -6
- package/dist/factory.d.ts +340 -340
- package/dist/index.d.ts +338 -338
- package/dist/middleware/evalsAuth.d.ts +2 -2
- package/dist/middleware/manageAuth.d.ts +3 -3
- package/dist/middleware/projectConfig.d.ts +3 -3
- package/dist/middleware/requireEntitlement.d.ts +2 -2
- package/dist/middleware/requirePermission.d.ts +2 -2
- package/dist/middleware/runAuth.d.ts +4 -4
- package/dist/middleware/sessionAuth.d.ts +3 -3
- package/dist/middleware/tenantAccess.d.ts +2 -2
- package/dist/middleware/tracing.d.ts +3 -3
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -4,45 +4,45 @@ import { createAgentsHono } from "./createApp.js";
|
|
|
4
4
|
import { NativeSandboxConfig, SandboxConfig, VercelSandboxConfig } from "./domains/run/types/executionContext.js";
|
|
5
5
|
import { SSOProviderConfig, UserAuthConfig, createAgentsApp } from "./factory.js";
|
|
6
6
|
import "./sentry.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as _better_auth_oauth_provider0 from "@better-auth/oauth-provider";
|
|
8
8
|
import { Hono } from "hono";
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
9
|
+
import * as zod0 from "zod";
|
|
10
|
+
import * as jose0 from "jose";
|
|
11
11
|
import * as hono_types1 from "hono/types";
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
12
|
+
import * as better_auth0 from "better-auth";
|
|
13
|
+
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
14
14
|
|
|
15
15
|
//#region src/index.d.ts
|
|
16
|
-
declare const auth:
|
|
16
|
+
declare const auth: better_auth0.Auth<{
|
|
17
17
|
plugins: [{
|
|
18
18
|
id: "bearer";
|
|
19
19
|
hooks: {
|
|
20
20
|
before: {
|
|
21
|
-
matcher(context:
|
|
22
|
-
handler: (inputContext:
|
|
21
|
+
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
22
|
+
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
23
23
|
context: {
|
|
24
24
|
headers: Headers;
|
|
25
25
|
};
|
|
26
26
|
} | undefined>;
|
|
27
27
|
}[];
|
|
28
28
|
after: {
|
|
29
|
-
matcher(context:
|
|
30
|
-
handler: (inputContext:
|
|
29
|
+
matcher(context: better_auth0.HookEndpointContext): true;
|
|
30
|
+
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
31
31
|
}[];
|
|
32
32
|
};
|
|
33
|
-
options:
|
|
33
|
+
options: better_auth_plugins0.BearerOptions | undefined;
|
|
34
34
|
}, {
|
|
35
35
|
id: "oauth-proxy";
|
|
36
|
-
options: NoInfer<
|
|
36
|
+
options: NoInfer<better_auth_plugins0.OAuthProxyOptions>;
|
|
37
37
|
endpoints: {
|
|
38
|
-
oAuthProxy:
|
|
38
|
+
oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
|
|
39
39
|
method: "GET";
|
|
40
40
|
operationId: string;
|
|
41
|
-
query:
|
|
42
|
-
callbackURL:
|
|
43
|
-
profile:
|
|
44
|
-
},
|
|
45
|
-
use: ((inputContext:
|
|
41
|
+
query: zod0.ZodObject<{
|
|
42
|
+
callbackURL: zod0.ZodString;
|
|
43
|
+
profile: zod0.ZodOptional<zod0.ZodString>;
|
|
44
|
+
}, better_auth0.$strip>;
|
|
45
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>)[];
|
|
46
46
|
metadata: {
|
|
47
47
|
openapi: {
|
|
48
48
|
operationId: string;
|
|
@@ -77,19 +77,19 @@ declare const auth: better_auth133.Auth<{
|
|
|
77
77
|
};
|
|
78
78
|
hooks: {
|
|
79
79
|
before: {
|
|
80
|
-
matcher(context:
|
|
81
|
-
handler: (inputContext:
|
|
80
|
+
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
81
|
+
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
82
82
|
}[];
|
|
83
83
|
after: {
|
|
84
|
-
matcher(context:
|
|
85
|
-
handler: (inputContext:
|
|
84
|
+
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
85
|
+
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
86
86
|
}[];
|
|
87
87
|
};
|
|
88
88
|
}, {
|
|
89
89
|
id: "jwt";
|
|
90
|
-
options: NoInfer<
|
|
90
|
+
options: NoInfer<better_auth_plugins0.JwtOptions>;
|
|
91
91
|
endpoints: {
|
|
92
|
-
getJwks:
|
|
92
|
+
getJwks: better_auth0.StrictEndpoint<string, {
|
|
93
93
|
method: "GET";
|
|
94
94
|
metadata: {
|
|
95
95
|
openapi: {
|
|
@@ -165,11 +165,11 @@ declare const auth: better_auth133.Auth<{
|
|
|
165
165
|
};
|
|
166
166
|
};
|
|
167
167
|
};
|
|
168
|
-
},
|
|
169
|
-
getToken:
|
|
168
|
+
}, jose0.JSONWebKeySet>;
|
|
169
|
+
getToken: better_auth0.StrictEndpoint<"/token", {
|
|
170
170
|
method: "GET";
|
|
171
171
|
requireHeaders: true;
|
|
172
|
-
use: ((inputContext:
|
|
172
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
173
173
|
session: {
|
|
174
174
|
session: Record<string, any> & {
|
|
175
175
|
id: string;
|
|
@@ -218,24 +218,24 @@ declare const auth: better_auth133.Auth<{
|
|
|
218
218
|
}, {
|
|
219
219
|
token: string;
|
|
220
220
|
}>;
|
|
221
|
-
signJWT:
|
|
221
|
+
signJWT: better_auth0.StrictEndpoint<string, {
|
|
222
222
|
method: "POST";
|
|
223
223
|
metadata: {
|
|
224
224
|
$Infer: {
|
|
225
225
|
body: {
|
|
226
|
-
payload:
|
|
227
|
-
overrideOptions?:
|
|
226
|
+
payload: jose0.JWTPayload;
|
|
227
|
+
overrideOptions?: better_auth_plugins0.JwtOptions | undefined;
|
|
228
228
|
};
|
|
229
229
|
};
|
|
230
230
|
};
|
|
231
|
-
body:
|
|
232
|
-
payload:
|
|
233
|
-
overrideOptions:
|
|
234
|
-
},
|
|
231
|
+
body: zod0.ZodObject<{
|
|
232
|
+
payload: zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>;
|
|
233
|
+
overrideOptions: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
234
|
+
}, better_auth0.$strip>;
|
|
235
235
|
}, {
|
|
236
236
|
token: string;
|
|
237
237
|
}>;
|
|
238
|
-
verifyJWT:
|
|
238
|
+
verifyJWT: better_auth0.StrictEndpoint<string, {
|
|
239
239
|
method: "POST";
|
|
240
240
|
metadata: {
|
|
241
241
|
$Infer: {
|
|
@@ -252,18 +252,18 @@ declare const auth: better_auth133.Auth<{
|
|
|
252
252
|
};
|
|
253
253
|
};
|
|
254
254
|
};
|
|
255
|
-
body:
|
|
256
|
-
token:
|
|
257
|
-
issuer:
|
|
258
|
-
},
|
|
255
|
+
body: zod0.ZodObject<{
|
|
256
|
+
token: zod0.ZodString;
|
|
257
|
+
issuer: zod0.ZodOptional<zod0.ZodString>;
|
|
258
|
+
}, better_auth0.$strip>;
|
|
259
259
|
}, {
|
|
260
|
-
payload: (
|
|
260
|
+
payload: (jose0.JWTPayload & Required<Pick<jose0.JWTPayload, "sub" | "aud">>) | null;
|
|
261
261
|
}>;
|
|
262
262
|
};
|
|
263
263
|
hooks: {
|
|
264
264
|
after: {
|
|
265
|
-
matcher(context:
|
|
266
|
-
handler: (inputContext:
|
|
265
|
+
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
266
|
+
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
267
267
|
}[];
|
|
268
268
|
};
|
|
269
269
|
schema: {
|
|
@@ -294,51 +294,51 @@ declare const auth: better_auth133.Auth<{
|
|
|
294
294
|
loginPage: string;
|
|
295
295
|
consentPage: string;
|
|
296
296
|
}>;
|
|
297
|
-
init: (ctx:
|
|
297
|
+
init: (ctx: better_auth0.AuthContext) => void;
|
|
298
298
|
hooks: {
|
|
299
299
|
before: {
|
|
300
|
-
matcher(ctx:
|
|
301
|
-
handler: (inputContext:
|
|
300
|
+
matcher(ctx: better_auth0.HookEndpointContext): any;
|
|
301
|
+
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
302
302
|
}[];
|
|
303
303
|
after: {
|
|
304
|
-
matcher(ctx:
|
|
305
|
-
handler: (inputContext:
|
|
304
|
+
matcher(ctx: better_auth0.HookEndpointContext): boolean;
|
|
305
|
+
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
306
306
|
redirect: boolean;
|
|
307
307
|
url: string;
|
|
308
308
|
} | undefined>;
|
|
309
309
|
}[];
|
|
310
310
|
};
|
|
311
311
|
endpoints: {
|
|
312
|
-
getOAuthServerConfig:
|
|
312
|
+
getOAuthServerConfig: better_auth0.StrictEndpoint<"/.well-known/oauth-authorization-server", {
|
|
313
313
|
method: "GET";
|
|
314
314
|
metadata: {
|
|
315
315
|
SERVER_ONLY: true;
|
|
316
316
|
};
|
|
317
|
-
},
|
|
318
|
-
getOpenIdConfig:
|
|
317
|
+
}, _better_auth_oauth_provider0.AuthServerMetadata>;
|
|
318
|
+
getOpenIdConfig: better_auth0.StrictEndpoint<"/.well-known/openid-configuration", {
|
|
319
319
|
method: "GET";
|
|
320
320
|
metadata: {
|
|
321
321
|
SERVER_ONLY: true;
|
|
322
322
|
};
|
|
323
|
-
}, Omit<
|
|
324
|
-
id_token_signing_alg_values_supported:
|
|
323
|
+
}, Omit<_better_auth_oauth_provider0.OIDCMetadata, "id_token_signing_alg_values_supported"> & {
|
|
324
|
+
id_token_signing_alg_values_supported: better_auth_plugins0.JWSAlgorithms[] | ["HS256"];
|
|
325
325
|
}>;
|
|
326
|
-
oauth2Authorize:
|
|
326
|
+
oauth2Authorize: better_auth0.StrictEndpoint<"/oauth2/authorize", {
|
|
327
327
|
method: "GET";
|
|
328
|
-
query:
|
|
329
|
-
response_type:
|
|
328
|
+
query: zod0.ZodObject<{
|
|
329
|
+
response_type: zod0.ZodEnum<{
|
|
330
330
|
code: "code";
|
|
331
331
|
}>;
|
|
332
|
-
client_id:
|
|
333
|
-
redirect_uri:
|
|
334
|
-
scope:
|
|
335
|
-
state:
|
|
336
|
-
code_challenge:
|
|
337
|
-
code_challenge_method:
|
|
332
|
+
client_id: zod0.ZodString;
|
|
333
|
+
redirect_uri: zod0.ZodOptional<zod0.ZodURL>;
|
|
334
|
+
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
335
|
+
state: zod0.ZodOptional<zod0.ZodString>;
|
|
336
|
+
code_challenge: zod0.ZodOptional<zod0.ZodString>;
|
|
337
|
+
code_challenge_method: zod0.ZodOptional<zod0.ZodEnum<{
|
|
338
338
|
S256: "S256";
|
|
339
339
|
}>>;
|
|
340
|
-
nonce:
|
|
341
|
-
prompt:
|
|
340
|
+
nonce: zod0.ZodOptional<zod0.ZodString>;
|
|
341
|
+
prompt: zod0.ZodOptional<zod0.ZodEnum<{
|
|
342
342
|
none: "none";
|
|
343
343
|
consent: "consent";
|
|
344
344
|
login: "login";
|
|
@@ -347,7 +347,7 @@ declare const auth: better_auth133.Auth<{
|
|
|
347
347
|
"login consent": "login consent";
|
|
348
348
|
"select_account consent": "select_account consent";
|
|
349
349
|
}>>;
|
|
350
|
-
},
|
|
350
|
+
}, better_auth0.$strip>;
|
|
351
351
|
metadata: {
|
|
352
352
|
openapi: {
|
|
353
353
|
description: string;
|
|
@@ -421,14 +421,14 @@ declare const auth: better_auth133.Auth<{
|
|
|
421
421
|
redirect: boolean;
|
|
422
422
|
url: string;
|
|
423
423
|
}>;
|
|
424
|
-
oauth2Consent:
|
|
424
|
+
oauth2Consent: better_auth0.StrictEndpoint<"/oauth2/consent", {
|
|
425
425
|
method: "POST";
|
|
426
|
-
body:
|
|
427
|
-
accept:
|
|
428
|
-
scope:
|
|
429
|
-
oauth_query:
|
|
430
|
-
},
|
|
431
|
-
use: ((inputContext:
|
|
426
|
+
body: zod0.ZodObject<{
|
|
427
|
+
accept: zod0.ZodBoolean;
|
|
428
|
+
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
429
|
+
oauth_query: zod0.ZodOptional<zod0.ZodString>;
|
|
430
|
+
}, better_auth0.$strip>;
|
|
431
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
432
432
|
session: {
|
|
433
433
|
session: Record<string, any> & {
|
|
434
434
|
id: string;
|
|
@@ -480,15 +480,15 @@ declare const auth: better_auth133.Auth<{
|
|
|
480
480
|
redirect: boolean;
|
|
481
481
|
url: string;
|
|
482
482
|
}>;
|
|
483
|
-
oauth2Continue:
|
|
483
|
+
oauth2Continue: better_auth0.StrictEndpoint<"/oauth2/continue", {
|
|
484
484
|
method: "POST";
|
|
485
|
-
body:
|
|
486
|
-
selected:
|
|
487
|
-
created:
|
|
488
|
-
postLogin:
|
|
489
|
-
oauth_query:
|
|
490
|
-
},
|
|
491
|
-
use: ((inputContext:
|
|
485
|
+
body: zod0.ZodObject<{
|
|
486
|
+
selected: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
487
|
+
created: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
488
|
+
postLogin: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
489
|
+
oauth_query: zod0.ZodOptional<zod0.ZodString>;
|
|
490
|
+
}, better_auth0.$strip>;
|
|
491
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
492
492
|
session: {
|
|
493
493
|
session: Record<string, any> & {
|
|
494
494
|
id: string;
|
|
@@ -540,23 +540,23 @@ declare const auth: better_auth133.Auth<{
|
|
|
540
540
|
redirect: boolean;
|
|
541
541
|
url: string;
|
|
542
542
|
}>;
|
|
543
|
-
oauth2Token:
|
|
543
|
+
oauth2Token: better_auth0.StrictEndpoint<"/oauth2/token", {
|
|
544
544
|
method: "POST";
|
|
545
|
-
body:
|
|
546
|
-
grant_type:
|
|
545
|
+
body: zod0.ZodObject<{
|
|
546
|
+
grant_type: zod0.ZodEnum<{
|
|
547
547
|
authorization_code: "authorization_code";
|
|
548
548
|
client_credentials: "client_credentials";
|
|
549
549
|
refresh_token: "refresh_token";
|
|
550
550
|
}>;
|
|
551
|
-
client_id:
|
|
552
|
-
client_secret:
|
|
553
|
-
code:
|
|
554
|
-
code_verifier:
|
|
555
|
-
redirect_uri:
|
|
556
|
-
refresh_token:
|
|
557
|
-
resource:
|
|
558
|
-
scope:
|
|
559
|
-
},
|
|
551
|
+
client_id: zod0.ZodOptional<zod0.ZodString>;
|
|
552
|
+
client_secret: zod0.ZodOptional<zod0.ZodString>;
|
|
553
|
+
code: zod0.ZodOptional<zod0.ZodString>;
|
|
554
|
+
code_verifier: zod0.ZodOptional<zod0.ZodString>;
|
|
555
|
+
redirect_uri: zod0.ZodOptional<zod0.ZodURL>;
|
|
556
|
+
refresh_token: zod0.ZodOptional<zod0.ZodString>;
|
|
557
|
+
resource: zod0.ZodOptional<zod0.ZodString>;
|
|
558
|
+
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
559
|
+
}, better_auth0.$strip>;
|
|
560
560
|
metadata: {
|
|
561
561
|
allowedMediaTypes: string[];
|
|
562
562
|
openapi: {
|
|
@@ -683,17 +683,17 @@ declare const auth: better_auth133.Auth<{
|
|
|
683
683
|
token_type: string;
|
|
684
684
|
scope: string;
|
|
685
685
|
}>;
|
|
686
|
-
oauth2Introspect:
|
|
686
|
+
oauth2Introspect: better_auth0.StrictEndpoint<"/oauth2/introspect", {
|
|
687
687
|
method: "POST";
|
|
688
|
-
body:
|
|
689
|
-
client_id:
|
|
690
|
-
client_secret:
|
|
691
|
-
token:
|
|
692
|
-
token_type_hint:
|
|
688
|
+
body: zod0.ZodObject<{
|
|
689
|
+
client_id: zod0.ZodOptional<zod0.ZodString>;
|
|
690
|
+
client_secret: zod0.ZodOptional<zod0.ZodString>;
|
|
691
|
+
token: zod0.ZodString;
|
|
692
|
+
token_type_hint: zod0.ZodOptional<zod0.ZodEnum<{
|
|
693
693
|
refresh_token: "refresh_token";
|
|
694
694
|
access_token: "access_token";
|
|
695
695
|
}>>;
|
|
696
|
-
},
|
|
696
|
+
}, better_auth0.$strip>;
|
|
697
697
|
metadata: {
|
|
698
698
|
allowedMediaTypes: string[];
|
|
699
699
|
openapi: {
|
|
@@ -819,18 +819,18 @@ declare const auth: better_auth133.Auth<{
|
|
|
819
819
|
};
|
|
820
820
|
};
|
|
821
821
|
};
|
|
822
|
-
},
|
|
823
|
-
oauth2Revoke:
|
|
822
|
+
}, jose0.JWTPayload>;
|
|
823
|
+
oauth2Revoke: better_auth0.StrictEndpoint<"/oauth2/revoke", {
|
|
824
824
|
method: "POST";
|
|
825
|
-
body:
|
|
826
|
-
client_id:
|
|
827
|
-
client_secret:
|
|
828
|
-
token:
|
|
829
|
-
token_type_hint:
|
|
825
|
+
body: zod0.ZodObject<{
|
|
826
|
+
client_id: zod0.ZodOptional<zod0.ZodString>;
|
|
827
|
+
client_secret: zod0.ZodOptional<zod0.ZodString>;
|
|
828
|
+
token: zod0.ZodString;
|
|
829
|
+
token_type_hint: zod0.ZodOptional<zod0.ZodEnum<{
|
|
830
830
|
refresh_token: "refresh_token";
|
|
831
831
|
access_token: "access_token";
|
|
832
832
|
}>>;
|
|
833
|
-
},
|
|
833
|
+
}, better_auth0.$strip>;
|
|
834
834
|
metadata: {
|
|
835
835
|
allowedMediaTypes: string[];
|
|
836
836
|
openapi: {
|
|
@@ -903,7 +903,7 @@ declare const auth: better_auth133.Auth<{
|
|
|
903
903
|
};
|
|
904
904
|
};
|
|
905
905
|
}, null | undefined>;
|
|
906
|
-
oauth2UserInfo:
|
|
906
|
+
oauth2UserInfo: better_auth0.StrictEndpoint<"/oauth2/userinfo", {
|
|
907
907
|
method: "GET";
|
|
908
908
|
metadata: {
|
|
909
909
|
openapi: {
|
|
@@ -1024,14 +1024,14 @@ declare const auth: better_auth133.Auth<{
|
|
|
1024
1024
|
family_name?: string | undefined;
|
|
1025
1025
|
sub: string;
|
|
1026
1026
|
}>;
|
|
1027
|
-
oauth2EndSession:
|
|
1027
|
+
oauth2EndSession: better_auth0.StrictEndpoint<"/oauth2/end-session", {
|
|
1028
1028
|
method: "GET";
|
|
1029
|
-
query:
|
|
1030
|
-
id_token_hint:
|
|
1031
|
-
client_id:
|
|
1032
|
-
post_logout_redirect_uri:
|
|
1033
|
-
state:
|
|
1034
|
-
},
|
|
1029
|
+
query: zod0.ZodObject<{
|
|
1030
|
+
id_token_hint: zod0.ZodString;
|
|
1031
|
+
client_id: zod0.ZodOptional<zod0.ZodString>;
|
|
1032
|
+
post_logout_redirect_uri: zod0.ZodOptional<zod0.ZodURL>;
|
|
1033
|
+
state: zod0.ZodOptional<zod0.ZodString>;
|
|
1034
|
+
}, better_auth0.$strip>;
|
|
1035
1035
|
metadata: {
|
|
1036
1036
|
openapi: {
|
|
1037
1037
|
description: string;
|
|
@@ -1064,44 +1064,44 @@ declare const auth: better_auth133.Auth<{
|
|
|
1064
1064
|
redirect: boolean;
|
|
1065
1065
|
url: string;
|
|
1066
1066
|
} | undefined>;
|
|
1067
|
-
registerOAuthClient:
|
|
1067
|
+
registerOAuthClient: better_auth0.StrictEndpoint<"/oauth2/register", {
|
|
1068
1068
|
method: "POST";
|
|
1069
|
-
body:
|
|
1070
|
-
redirect_uris:
|
|
1071
|
-
scope:
|
|
1072
|
-
client_name:
|
|
1073
|
-
client_uri:
|
|
1074
|
-
logo_uri:
|
|
1075
|
-
contacts:
|
|
1076
|
-
tos_uri:
|
|
1077
|
-
policy_uri:
|
|
1078
|
-
software_id:
|
|
1079
|
-
software_version:
|
|
1080
|
-
software_statement:
|
|
1081
|
-
post_logout_redirect_uris:
|
|
1082
|
-
token_endpoint_auth_method:
|
|
1069
|
+
body: zod0.ZodObject<{
|
|
1070
|
+
redirect_uris: zod0.ZodArray<zod0.ZodURL>;
|
|
1071
|
+
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
1072
|
+
client_name: zod0.ZodOptional<zod0.ZodString>;
|
|
1073
|
+
client_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1074
|
+
logo_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1075
|
+
contacts: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
1076
|
+
tos_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1077
|
+
policy_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1078
|
+
software_id: zod0.ZodOptional<zod0.ZodString>;
|
|
1079
|
+
software_version: zod0.ZodOptional<zod0.ZodString>;
|
|
1080
|
+
software_statement: zod0.ZodOptional<zod0.ZodString>;
|
|
1081
|
+
post_logout_redirect_uris: zod0.ZodOptional<zod0.ZodArray<zod0.ZodURL>>;
|
|
1082
|
+
token_endpoint_auth_method: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodEnum<{
|
|
1083
1083
|
none: "none";
|
|
1084
1084
|
client_secret_basic: "client_secret_basic";
|
|
1085
1085
|
client_secret_post: "client_secret_post";
|
|
1086
1086
|
}>>>;
|
|
1087
|
-
grant_types:
|
|
1087
|
+
grant_types: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodArray<zod0.ZodEnum<{
|
|
1088
1088
|
authorization_code: "authorization_code";
|
|
1089
1089
|
client_credentials: "client_credentials";
|
|
1090
1090
|
refresh_token: "refresh_token";
|
|
1091
1091
|
}>>>>;
|
|
1092
|
-
response_types:
|
|
1092
|
+
response_types: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodArray<zod0.ZodEnum<{
|
|
1093
1093
|
code: "code";
|
|
1094
1094
|
}>>>>;
|
|
1095
|
-
type:
|
|
1095
|
+
type: zod0.ZodOptional<zod0.ZodEnum<{
|
|
1096
1096
|
web: "web";
|
|
1097
1097
|
native: "native";
|
|
1098
1098
|
"user-agent-based": "user-agent-based";
|
|
1099
1099
|
}>>;
|
|
1100
|
-
subject_type:
|
|
1100
|
+
subject_type: zod0.ZodOptional<zod0.ZodEnum<{
|
|
1101
1101
|
public: "public";
|
|
1102
1102
|
pairwise: "pairwise";
|
|
1103
1103
|
}>>;
|
|
1104
|
-
},
|
|
1104
|
+
}, better_auth0.$strip>;
|
|
1105
1105
|
metadata: {
|
|
1106
1106
|
openapi: {
|
|
1107
1107
|
description: string;
|
|
@@ -1235,50 +1235,50 @@ declare const auth: better_auth133.Auth<{
|
|
|
1235
1235
|
};
|
|
1236
1236
|
};
|
|
1237
1237
|
};
|
|
1238
|
-
},
|
|
1239
|
-
adminCreateOAuthClient:
|
|
1238
|
+
}, _better_auth_oauth_provider0.OAuthClient>;
|
|
1239
|
+
adminCreateOAuthClient: better_auth0.StrictEndpoint<"/admin/oauth2/create-client", {
|
|
1240
1240
|
method: "POST";
|
|
1241
|
-
body:
|
|
1242
|
-
redirect_uris:
|
|
1243
|
-
scope:
|
|
1244
|
-
client_name:
|
|
1245
|
-
client_uri:
|
|
1246
|
-
logo_uri:
|
|
1247
|
-
contacts:
|
|
1248
|
-
tos_uri:
|
|
1249
|
-
policy_uri:
|
|
1250
|
-
software_id:
|
|
1251
|
-
software_version:
|
|
1252
|
-
software_statement:
|
|
1253
|
-
post_logout_redirect_uris:
|
|
1254
|
-
token_endpoint_auth_method:
|
|
1241
|
+
body: zod0.ZodObject<{
|
|
1242
|
+
redirect_uris: zod0.ZodArray<zod0.ZodURL>;
|
|
1243
|
+
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
1244
|
+
client_name: zod0.ZodOptional<zod0.ZodString>;
|
|
1245
|
+
client_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1246
|
+
logo_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1247
|
+
contacts: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
1248
|
+
tos_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1249
|
+
policy_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1250
|
+
software_id: zod0.ZodOptional<zod0.ZodString>;
|
|
1251
|
+
software_version: zod0.ZodOptional<zod0.ZodString>;
|
|
1252
|
+
software_statement: zod0.ZodOptional<zod0.ZodString>;
|
|
1253
|
+
post_logout_redirect_uris: zod0.ZodOptional<zod0.ZodArray<zod0.ZodURL>>;
|
|
1254
|
+
token_endpoint_auth_method: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodEnum<{
|
|
1255
1255
|
none: "none";
|
|
1256
1256
|
client_secret_basic: "client_secret_basic";
|
|
1257
1257
|
client_secret_post: "client_secret_post";
|
|
1258
1258
|
}>>>;
|
|
1259
|
-
grant_types:
|
|
1259
|
+
grant_types: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodArray<zod0.ZodEnum<{
|
|
1260
1260
|
authorization_code: "authorization_code";
|
|
1261
1261
|
client_credentials: "client_credentials";
|
|
1262
1262
|
refresh_token: "refresh_token";
|
|
1263
1263
|
}>>>>;
|
|
1264
|
-
response_types:
|
|
1264
|
+
response_types: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodArray<zod0.ZodEnum<{
|
|
1265
1265
|
code: "code";
|
|
1266
1266
|
}>>>>;
|
|
1267
|
-
type:
|
|
1267
|
+
type: zod0.ZodOptional<zod0.ZodEnum<{
|
|
1268
1268
|
web: "web";
|
|
1269
1269
|
native: "native";
|
|
1270
1270
|
"user-agent-based": "user-agent-based";
|
|
1271
1271
|
}>>;
|
|
1272
|
-
client_secret_expires_at:
|
|
1273
|
-
skip_consent:
|
|
1274
|
-
enable_end_session:
|
|
1275
|
-
require_pkce:
|
|
1276
|
-
subject_type:
|
|
1272
|
+
client_secret_expires_at: zod0.ZodDefault<zod0.ZodOptional<zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodNumber]>>>;
|
|
1273
|
+
skip_consent: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1274
|
+
enable_end_session: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1275
|
+
require_pkce: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1276
|
+
subject_type: zod0.ZodOptional<zod0.ZodEnum<{
|
|
1277
1277
|
public: "public";
|
|
1278
1278
|
pairwise: "pairwise";
|
|
1279
1279
|
}>>;
|
|
1280
|
-
metadata:
|
|
1281
|
-
},
|
|
1280
|
+
metadata: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
|
|
1281
|
+
}, better_auth0.$strip>;
|
|
1282
1282
|
metadata: {
|
|
1283
1283
|
SERVER_ONLY: true;
|
|
1284
1284
|
openapi: {
|
|
@@ -1416,10 +1416,10 @@ declare const auth: better_auth133.Auth<{
|
|
|
1416
1416
|
};
|
|
1417
1417
|
};
|
|
1418
1418
|
};
|
|
1419
|
-
},
|
|
1420
|
-
createOAuthClient:
|
|
1419
|
+
}, _better_auth_oauth_provider0.OAuthClient>;
|
|
1420
|
+
createOAuthClient: better_auth0.StrictEndpoint<"/oauth2/create-client", {
|
|
1421
1421
|
method: "POST";
|
|
1422
|
-
use: ((inputContext:
|
|
1422
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
1423
1423
|
session: {
|
|
1424
1424
|
session: Record<string, any> & {
|
|
1425
1425
|
id: string;
|
|
@@ -1442,38 +1442,38 @@ declare const auth: better_auth133.Auth<{
|
|
|
1442
1442
|
};
|
|
1443
1443
|
};
|
|
1444
1444
|
}>)[];
|
|
1445
|
-
body:
|
|
1446
|
-
redirect_uris:
|
|
1447
|
-
scope:
|
|
1448
|
-
client_name:
|
|
1449
|
-
client_uri:
|
|
1450
|
-
logo_uri:
|
|
1451
|
-
contacts:
|
|
1452
|
-
tos_uri:
|
|
1453
|
-
policy_uri:
|
|
1454
|
-
software_id:
|
|
1455
|
-
software_version:
|
|
1456
|
-
software_statement:
|
|
1457
|
-
post_logout_redirect_uris:
|
|
1458
|
-
token_endpoint_auth_method:
|
|
1445
|
+
body: zod0.ZodObject<{
|
|
1446
|
+
redirect_uris: zod0.ZodArray<zod0.ZodURL>;
|
|
1447
|
+
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
1448
|
+
client_name: zod0.ZodOptional<zod0.ZodString>;
|
|
1449
|
+
client_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1450
|
+
logo_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1451
|
+
contacts: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
1452
|
+
tos_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1453
|
+
policy_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1454
|
+
software_id: zod0.ZodOptional<zod0.ZodString>;
|
|
1455
|
+
software_version: zod0.ZodOptional<zod0.ZodString>;
|
|
1456
|
+
software_statement: zod0.ZodOptional<zod0.ZodString>;
|
|
1457
|
+
post_logout_redirect_uris: zod0.ZodOptional<zod0.ZodArray<zod0.ZodURL>>;
|
|
1458
|
+
token_endpoint_auth_method: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodEnum<{
|
|
1459
1459
|
none: "none";
|
|
1460
1460
|
client_secret_basic: "client_secret_basic";
|
|
1461
1461
|
client_secret_post: "client_secret_post";
|
|
1462
1462
|
}>>>;
|
|
1463
|
-
grant_types:
|
|
1463
|
+
grant_types: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodArray<zod0.ZodEnum<{
|
|
1464
1464
|
authorization_code: "authorization_code";
|
|
1465
1465
|
client_credentials: "client_credentials";
|
|
1466
1466
|
refresh_token: "refresh_token";
|
|
1467
1467
|
}>>>>;
|
|
1468
|
-
response_types:
|
|
1468
|
+
response_types: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodArray<zod0.ZodEnum<{
|
|
1469
1469
|
code: "code";
|
|
1470
1470
|
}>>>>;
|
|
1471
|
-
type:
|
|
1471
|
+
type: zod0.ZodOptional<zod0.ZodEnum<{
|
|
1472
1472
|
web: "web";
|
|
1473
1473
|
native: "native";
|
|
1474
1474
|
"user-agent-based": "user-agent-based";
|
|
1475
1475
|
}>>;
|
|
1476
|
-
},
|
|
1476
|
+
}, better_auth0.$strip>;
|
|
1477
1477
|
metadata: {
|
|
1478
1478
|
openapi: {
|
|
1479
1479
|
description: string;
|
|
@@ -1605,10 +1605,10 @@ declare const auth: better_auth133.Auth<{
|
|
|
1605
1605
|
};
|
|
1606
1606
|
};
|
|
1607
1607
|
};
|
|
1608
|
-
},
|
|
1609
|
-
getOAuthClient:
|
|
1608
|
+
}, _better_auth_oauth_provider0.OAuthClient>;
|
|
1609
|
+
getOAuthClient: better_auth0.StrictEndpoint<"/oauth2/get-client", {
|
|
1610
1610
|
method: "GET";
|
|
1611
|
-
use: ((inputContext:
|
|
1611
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
1612
1612
|
session: {
|
|
1613
1613
|
session: Record<string, any> & {
|
|
1614
1614
|
id: string;
|
|
@@ -1631,18 +1631,18 @@ declare const auth: better_auth133.Auth<{
|
|
|
1631
1631
|
};
|
|
1632
1632
|
};
|
|
1633
1633
|
}>)[];
|
|
1634
|
-
query:
|
|
1635
|
-
client_id:
|
|
1636
|
-
},
|
|
1634
|
+
query: zod0.ZodObject<{
|
|
1635
|
+
client_id: zod0.ZodString;
|
|
1636
|
+
}, better_auth0.$strip>;
|
|
1637
1637
|
metadata: {
|
|
1638
1638
|
openapi: {
|
|
1639
1639
|
description: string;
|
|
1640
1640
|
};
|
|
1641
1641
|
};
|
|
1642
|
-
},
|
|
1643
|
-
getOAuthClientPublic:
|
|
1642
|
+
}, _better_auth_oauth_provider0.OAuthClient>;
|
|
1643
|
+
getOAuthClientPublic: better_auth0.StrictEndpoint<"/oauth2/public-client", {
|
|
1644
1644
|
method: "GET";
|
|
1645
|
-
use: ((inputContext:
|
|
1645
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
1646
1646
|
session: {
|
|
1647
1647
|
session: Record<string, any> & {
|
|
1648
1648
|
id: string;
|
|
@@ -1665,18 +1665,18 @@ declare const auth: better_auth133.Auth<{
|
|
|
1665
1665
|
};
|
|
1666
1666
|
};
|
|
1667
1667
|
}>)[];
|
|
1668
|
-
query:
|
|
1669
|
-
client_id:
|
|
1670
|
-
},
|
|
1668
|
+
query: zod0.ZodObject<{
|
|
1669
|
+
client_id: zod0.ZodString;
|
|
1670
|
+
}, better_auth0.$strip>;
|
|
1671
1671
|
metadata: {
|
|
1672
1672
|
openapi: {
|
|
1673
1673
|
description: string;
|
|
1674
1674
|
};
|
|
1675
1675
|
};
|
|
1676
|
-
},
|
|
1677
|
-
getOAuthClients:
|
|
1676
|
+
}, _better_auth_oauth_provider0.OAuthClient>;
|
|
1677
|
+
getOAuthClients: better_auth0.StrictEndpoint<"/oauth2/get-clients", {
|
|
1678
1678
|
method: "GET";
|
|
1679
|
-
use: ((inputContext:
|
|
1679
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
1680
1680
|
session: {
|
|
1681
1681
|
session: Record<string, any> & {
|
|
1682
1682
|
id: string;
|
|
@@ -1704,53 +1704,53 @@ declare const auth: better_auth133.Auth<{
|
|
|
1704
1704
|
description: string;
|
|
1705
1705
|
};
|
|
1706
1706
|
};
|
|
1707
|
-
},
|
|
1708
|
-
adminUpdateOAuthClient:
|
|
1707
|
+
}, _better_auth_oauth_provider0.OAuthClient[] | null>;
|
|
1708
|
+
adminUpdateOAuthClient: better_auth0.StrictEndpoint<"/admin/oauth2/update-client", {
|
|
1709
1709
|
method: "PATCH";
|
|
1710
|
-
body:
|
|
1711
|
-
client_id:
|
|
1712
|
-
update:
|
|
1713
|
-
redirect_uris:
|
|
1714
|
-
scope:
|
|
1715
|
-
client_name:
|
|
1716
|
-
client_uri:
|
|
1717
|
-
logo_uri:
|
|
1718
|
-
contacts:
|
|
1719
|
-
tos_uri:
|
|
1720
|
-
policy_uri:
|
|
1721
|
-
software_id:
|
|
1722
|
-
software_version:
|
|
1723
|
-
software_statement:
|
|
1724
|
-
post_logout_redirect_uris:
|
|
1725
|
-
grant_types:
|
|
1710
|
+
body: zod0.ZodObject<{
|
|
1711
|
+
client_id: zod0.ZodString;
|
|
1712
|
+
update: zod0.ZodObject<{
|
|
1713
|
+
redirect_uris: zod0.ZodOptional<zod0.ZodArray<zod0.ZodURL>>;
|
|
1714
|
+
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
1715
|
+
client_name: zod0.ZodOptional<zod0.ZodString>;
|
|
1716
|
+
client_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1717
|
+
logo_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1718
|
+
contacts: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
1719
|
+
tos_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1720
|
+
policy_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1721
|
+
software_id: zod0.ZodOptional<zod0.ZodString>;
|
|
1722
|
+
software_version: zod0.ZodOptional<zod0.ZodString>;
|
|
1723
|
+
software_statement: zod0.ZodOptional<zod0.ZodString>;
|
|
1724
|
+
post_logout_redirect_uris: zod0.ZodOptional<zod0.ZodArray<zod0.ZodURL>>;
|
|
1725
|
+
grant_types: zod0.ZodOptional<zod0.ZodArray<zod0.ZodEnum<{
|
|
1726
1726
|
authorization_code: "authorization_code";
|
|
1727
1727
|
client_credentials: "client_credentials";
|
|
1728
1728
|
refresh_token: "refresh_token";
|
|
1729
1729
|
}>>>;
|
|
1730
|
-
response_types:
|
|
1730
|
+
response_types: zod0.ZodOptional<zod0.ZodArray<zod0.ZodEnum<{
|
|
1731
1731
|
code: "code";
|
|
1732
1732
|
}>>>;
|
|
1733
|
-
type:
|
|
1733
|
+
type: zod0.ZodOptional<zod0.ZodEnum<{
|
|
1734
1734
|
web: "web";
|
|
1735
1735
|
native: "native";
|
|
1736
1736
|
"user-agent-based": "user-agent-based";
|
|
1737
1737
|
}>>;
|
|
1738
|
-
client_secret_expires_at:
|
|
1739
|
-
skip_consent:
|
|
1740
|
-
enable_end_session:
|
|
1741
|
-
metadata:
|
|
1742
|
-
},
|
|
1743
|
-
},
|
|
1738
|
+
client_secret_expires_at: zod0.ZodOptional<zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodNumber]>>;
|
|
1739
|
+
skip_consent: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1740
|
+
enable_end_session: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1741
|
+
metadata: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>>;
|
|
1742
|
+
}, better_auth0.$strip>;
|
|
1743
|
+
}, better_auth0.$strip>;
|
|
1744
1744
|
metadata: {
|
|
1745
1745
|
SERVER_ONLY: true;
|
|
1746
1746
|
openapi: {
|
|
1747
1747
|
description: string;
|
|
1748
1748
|
};
|
|
1749
1749
|
};
|
|
1750
|
-
},
|
|
1751
|
-
updateOAuthClient:
|
|
1750
|
+
}, _better_auth_oauth_provider0.OAuthClient>;
|
|
1751
|
+
updateOAuthClient: better_auth0.StrictEndpoint<"/oauth2/update-client", {
|
|
1752
1752
|
method: "POST";
|
|
1753
|
-
use: ((inputContext:
|
|
1753
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
1754
1754
|
session: {
|
|
1755
1755
|
session: Record<string, any> & {
|
|
1756
1756
|
id: string;
|
|
@@ -1773,45 +1773,45 @@ declare const auth: better_auth133.Auth<{
|
|
|
1773
1773
|
};
|
|
1774
1774
|
};
|
|
1775
1775
|
}>)[];
|
|
1776
|
-
body:
|
|
1777
|
-
client_id:
|
|
1778
|
-
update:
|
|
1779
|
-
redirect_uris:
|
|
1780
|
-
scope:
|
|
1781
|
-
client_name:
|
|
1782
|
-
client_uri:
|
|
1783
|
-
logo_uri:
|
|
1784
|
-
contacts:
|
|
1785
|
-
tos_uri:
|
|
1786
|
-
policy_uri:
|
|
1787
|
-
software_id:
|
|
1788
|
-
software_version:
|
|
1789
|
-
software_statement:
|
|
1790
|
-
post_logout_redirect_uris:
|
|
1791
|
-
grant_types:
|
|
1776
|
+
body: zod0.ZodObject<{
|
|
1777
|
+
client_id: zod0.ZodString;
|
|
1778
|
+
update: zod0.ZodObject<{
|
|
1779
|
+
redirect_uris: zod0.ZodOptional<zod0.ZodArray<zod0.ZodURL>>;
|
|
1780
|
+
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
1781
|
+
client_name: zod0.ZodOptional<zod0.ZodString>;
|
|
1782
|
+
client_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1783
|
+
logo_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1784
|
+
contacts: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
1785
|
+
tos_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1786
|
+
policy_uri: zod0.ZodOptional<zod0.ZodString>;
|
|
1787
|
+
software_id: zod0.ZodOptional<zod0.ZodString>;
|
|
1788
|
+
software_version: zod0.ZodOptional<zod0.ZodString>;
|
|
1789
|
+
software_statement: zod0.ZodOptional<zod0.ZodString>;
|
|
1790
|
+
post_logout_redirect_uris: zod0.ZodOptional<zod0.ZodArray<zod0.ZodURL>>;
|
|
1791
|
+
grant_types: zod0.ZodOptional<zod0.ZodArray<zod0.ZodEnum<{
|
|
1792
1792
|
authorization_code: "authorization_code";
|
|
1793
1793
|
client_credentials: "client_credentials";
|
|
1794
1794
|
refresh_token: "refresh_token";
|
|
1795
1795
|
}>>>;
|
|
1796
|
-
response_types:
|
|
1796
|
+
response_types: zod0.ZodOptional<zod0.ZodArray<zod0.ZodEnum<{
|
|
1797
1797
|
code: "code";
|
|
1798
1798
|
}>>>;
|
|
1799
|
-
type:
|
|
1799
|
+
type: zod0.ZodOptional<zod0.ZodEnum<{
|
|
1800
1800
|
web: "web";
|
|
1801
1801
|
native: "native";
|
|
1802
1802
|
"user-agent-based": "user-agent-based";
|
|
1803
1803
|
}>>;
|
|
1804
|
-
},
|
|
1805
|
-
},
|
|
1804
|
+
}, better_auth0.$strip>;
|
|
1805
|
+
}, better_auth0.$strip>;
|
|
1806
1806
|
metadata: {
|
|
1807
1807
|
openapi: {
|
|
1808
1808
|
description: string;
|
|
1809
1809
|
};
|
|
1810
1810
|
};
|
|
1811
|
-
},
|
|
1812
|
-
rotateClientSecret:
|
|
1811
|
+
}, _better_auth_oauth_provider0.OAuthClient>;
|
|
1812
|
+
rotateClientSecret: better_auth0.StrictEndpoint<"/oauth2/client/rotate-secret", {
|
|
1813
1813
|
method: "POST";
|
|
1814
|
-
use: ((inputContext:
|
|
1814
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
1815
1815
|
session: {
|
|
1816
1816
|
session: Record<string, any> & {
|
|
1817
1817
|
id: string;
|
|
@@ -1834,18 +1834,18 @@ declare const auth: better_auth133.Auth<{
|
|
|
1834
1834
|
};
|
|
1835
1835
|
};
|
|
1836
1836
|
}>)[];
|
|
1837
|
-
body:
|
|
1838
|
-
client_id:
|
|
1839
|
-
},
|
|
1837
|
+
body: zod0.ZodObject<{
|
|
1838
|
+
client_id: zod0.ZodString;
|
|
1839
|
+
}, better_auth0.$strip>;
|
|
1840
1840
|
metadata: {
|
|
1841
1841
|
openapi: {
|
|
1842
1842
|
description: string;
|
|
1843
1843
|
};
|
|
1844
1844
|
};
|
|
1845
|
-
},
|
|
1846
|
-
deleteOAuthClient:
|
|
1845
|
+
}, _better_auth_oauth_provider0.OAuthClient>;
|
|
1846
|
+
deleteOAuthClient: better_auth0.StrictEndpoint<"/oauth2/delete-client", {
|
|
1847
1847
|
method: "POST";
|
|
1848
|
-
use: ((inputContext:
|
|
1848
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
1849
1849
|
session: {
|
|
1850
1850
|
session: Record<string, any> & {
|
|
1851
1851
|
id: string;
|
|
@@ -1868,21 +1868,21 @@ declare const auth: better_auth133.Auth<{
|
|
|
1868
1868
|
};
|
|
1869
1869
|
};
|
|
1870
1870
|
}>)[];
|
|
1871
|
-
body:
|
|
1872
|
-
client_id:
|
|
1873
|
-
},
|
|
1871
|
+
body: zod0.ZodObject<{
|
|
1872
|
+
client_id: zod0.ZodString;
|
|
1873
|
+
}, better_auth0.$strip>;
|
|
1874
1874
|
metadata: {
|
|
1875
1875
|
openapi: {
|
|
1876
1876
|
description: string;
|
|
1877
1877
|
};
|
|
1878
1878
|
};
|
|
1879
1879
|
}, void>;
|
|
1880
|
-
getOAuthConsent:
|
|
1880
|
+
getOAuthConsent: better_auth0.StrictEndpoint<"/oauth2/get-consent", {
|
|
1881
1881
|
method: "GET";
|
|
1882
|
-
query:
|
|
1883
|
-
id:
|
|
1884
|
-
},
|
|
1885
|
-
use: ((inputContext:
|
|
1882
|
+
query: zod0.ZodObject<{
|
|
1883
|
+
id: zod0.ZodString;
|
|
1884
|
+
}, better_auth0.$strip>;
|
|
1885
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
1886
1886
|
session: {
|
|
1887
1887
|
session: Record<string, any> & {
|
|
1888
1888
|
id: string;
|
|
@@ -1910,10 +1910,10 @@ declare const auth: better_auth133.Auth<{
|
|
|
1910
1910
|
description: string;
|
|
1911
1911
|
};
|
|
1912
1912
|
};
|
|
1913
|
-
},
|
|
1914
|
-
getOAuthConsents:
|
|
1913
|
+
}, _better_auth_oauth_provider0.OAuthConsent<_better_auth_oauth_provider0.Scope[]>>;
|
|
1914
|
+
getOAuthConsents: better_auth0.StrictEndpoint<"/oauth2/get-consents", {
|
|
1915
1915
|
method: "GET";
|
|
1916
|
-
use: ((inputContext:
|
|
1916
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
1917
1917
|
session: {
|
|
1918
1918
|
session: Record<string, any> & {
|
|
1919
1919
|
id: string;
|
|
@@ -1941,10 +1941,10 @@ declare const auth: better_auth133.Auth<{
|
|
|
1941
1941
|
description: string;
|
|
1942
1942
|
};
|
|
1943
1943
|
};
|
|
1944
|
-
},
|
|
1945
|
-
updateOAuthConsent:
|
|
1944
|
+
}, _better_auth_oauth_provider0.OAuthConsent<_better_auth_oauth_provider0.Scope[]>[]>;
|
|
1945
|
+
updateOAuthConsent: better_auth0.StrictEndpoint<"/oauth2/update-consent", {
|
|
1946
1946
|
method: "POST";
|
|
1947
|
-
use: ((inputContext:
|
|
1947
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
1948
1948
|
session: {
|
|
1949
1949
|
session: Record<string, any> & {
|
|
1950
1950
|
id: string;
|
|
@@ -1967,21 +1967,21 @@ declare const auth: better_auth133.Auth<{
|
|
|
1967
1967
|
};
|
|
1968
1968
|
};
|
|
1969
1969
|
}>)[];
|
|
1970
|
-
body:
|
|
1971
|
-
id:
|
|
1972
|
-
update:
|
|
1973
|
-
scopes:
|
|
1974
|
-
},
|
|
1975
|
-
},
|
|
1970
|
+
body: zod0.ZodObject<{
|
|
1971
|
+
id: zod0.ZodString;
|
|
1972
|
+
update: zod0.ZodObject<{
|
|
1973
|
+
scopes: zod0.ZodArray<zod0.ZodString>;
|
|
1974
|
+
}, better_auth0.$strip>;
|
|
1975
|
+
}, better_auth0.$strip>;
|
|
1976
1976
|
metadata: {
|
|
1977
1977
|
openapi: {
|
|
1978
1978
|
description: string;
|
|
1979
1979
|
};
|
|
1980
1980
|
};
|
|
1981
|
-
},
|
|
1982
|
-
deleteOAuthConsent:
|
|
1981
|
+
}, _better_auth_oauth_provider0.OAuthConsent<_better_auth_oauth_provider0.Scope[]> | null>;
|
|
1982
|
+
deleteOAuthConsent: better_auth0.StrictEndpoint<"/oauth2/delete-consent", {
|
|
1983
1983
|
method: "POST";
|
|
1984
|
-
use: ((inputContext:
|
|
1984
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
1985
1985
|
session: {
|
|
1986
1986
|
session: Record<string, any> & {
|
|
1987
1987
|
id: string;
|
|
@@ -2004,9 +2004,9 @@ declare const auth: better_auth133.Auth<{
|
|
|
2004
2004
|
};
|
|
2005
2005
|
};
|
|
2006
2006
|
}>)[];
|
|
2007
|
-
body:
|
|
2008
|
-
id:
|
|
2009
|
-
},
|
|
2007
|
+
body: zod0.ZodObject<{
|
|
2008
|
+
id: zod0.ZodString;
|
|
2009
|
+
}, better_auth0.$strip>;
|
|
2010
2010
|
metadata: {
|
|
2011
2011
|
openapi: {
|
|
2012
2012
|
description: string;
|
|
@@ -2314,7 +2314,7 @@ declare const auth: better_auth133.Auth<{
|
|
|
2314
2314
|
window: number;
|
|
2315
2315
|
max: number;
|
|
2316
2316
|
})[];
|
|
2317
|
-
},
|
|
2317
|
+
}, better_auth_plugins0.DefaultOrganizationPlugin<{
|
|
2318
2318
|
schema: {
|
|
2319
2319
|
invitation: {
|
|
2320
2320
|
additionalFields: {
|
|
@@ -2384,19 +2384,19 @@ declare const auth: better_auth133.Auth<{
|
|
|
2384
2384
|
};
|
|
2385
2385
|
};
|
|
2386
2386
|
endpoints: {
|
|
2387
|
-
deviceCode:
|
|
2387
|
+
deviceCode: better_auth0.StrictEndpoint<"/device/code", {
|
|
2388
2388
|
method: "POST";
|
|
2389
|
-
body:
|
|
2390
|
-
client_id:
|
|
2391
|
-
scope:
|
|
2392
|
-
},
|
|
2393
|
-
error:
|
|
2394
|
-
error:
|
|
2389
|
+
body: zod0.ZodObject<{
|
|
2390
|
+
client_id: zod0.ZodString;
|
|
2391
|
+
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
2392
|
+
}, better_auth0.$strip>;
|
|
2393
|
+
error: zod0.ZodObject<{
|
|
2394
|
+
error: zod0.ZodEnum<{
|
|
2395
2395
|
invalid_request: "invalid_request";
|
|
2396
2396
|
invalid_client: "invalid_client";
|
|
2397
2397
|
}>;
|
|
2398
|
-
error_description:
|
|
2399
|
-
},
|
|
2398
|
+
error_description: zod0.ZodString;
|
|
2399
|
+
}, better_auth0.$strip>;
|
|
2400
2400
|
metadata: {
|
|
2401
2401
|
openapi: {
|
|
2402
2402
|
description: string;
|
|
@@ -2469,15 +2469,15 @@ declare const auth: better_auth133.Auth<{
|
|
|
2469
2469
|
expires_in: number;
|
|
2470
2470
|
interval: number;
|
|
2471
2471
|
}>;
|
|
2472
|
-
deviceToken:
|
|
2472
|
+
deviceToken: better_auth0.StrictEndpoint<"/device/token", {
|
|
2473
2473
|
method: "POST";
|
|
2474
|
-
body:
|
|
2475
|
-
grant_type:
|
|
2476
|
-
device_code:
|
|
2477
|
-
client_id:
|
|
2478
|
-
},
|
|
2479
|
-
error:
|
|
2480
|
-
error:
|
|
2474
|
+
body: zod0.ZodObject<{
|
|
2475
|
+
grant_type: zod0.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
|
|
2476
|
+
device_code: zod0.ZodString;
|
|
2477
|
+
client_id: zod0.ZodString;
|
|
2478
|
+
}, better_auth0.$strip>;
|
|
2479
|
+
error: zod0.ZodObject<{
|
|
2480
|
+
error: zod0.ZodEnum<{
|
|
2481
2481
|
invalid_request: "invalid_request";
|
|
2482
2482
|
authorization_pending: "authorization_pending";
|
|
2483
2483
|
slow_down: "slow_down";
|
|
@@ -2485,8 +2485,8 @@ declare const auth: better_auth133.Auth<{
|
|
|
2485
2485
|
access_denied: "access_denied";
|
|
2486
2486
|
invalid_grant: "invalid_grant";
|
|
2487
2487
|
}>;
|
|
2488
|
-
error_description:
|
|
2489
|
-
},
|
|
2488
|
+
error_description: zod0.ZodString;
|
|
2489
|
+
}, better_auth0.$strip>;
|
|
2490
2490
|
metadata: {
|
|
2491
2491
|
openapi: {
|
|
2492
2492
|
description: string;
|
|
@@ -2537,17 +2537,17 @@ declare const auth: better_auth133.Auth<{
|
|
|
2537
2537
|
expires_in: number;
|
|
2538
2538
|
scope: string;
|
|
2539
2539
|
}>;
|
|
2540
|
-
deviceVerify:
|
|
2540
|
+
deviceVerify: better_auth0.StrictEndpoint<"/device", {
|
|
2541
2541
|
method: "GET";
|
|
2542
|
-
query:
|
|
2543
|
-
user_code:
|
|
2544
|
-
},
|
|
2545
|
-
error:
|
|
2546
|
-
error:
|
|
2542
|
+
query: zod0.ZodObject<{
|
|
2543
|
+
user_code: zod0.ZodString;
|
|
2544
|
+
}, better_auth0.$strip>;
|
|
2545
|
+
error: zod0.ZodObject<{
|
|
2546
|
+
error: zod0.ZodEnum<{
|
|
2547
2547
|
invalid_request: "invalid_request";
|
|
2548
2548
|
}>;
|
|
2549
|
-
error_description:
|
|
2550
|
-
},
|
|
2549
|
+
error_description: zod0.ZodString;
|
|
2550
|
+
}, better_auth0.$strip>;
|
|
2551
2551
|
metadata: {
|
|
2552
2552
|
openapi: {
|
|
2553
2553
|
description: string;
|
|
@@ -2580,21 +2580,21 @@ declare const auth: better_auth133.Auth<{
|
|
|
2580
2580
|
user_code: string;
|
|
2581
2581
|
status: string;
|
|
2582
2582
|
}>;
|
|
2583
|
-
deviceApprove:
|
|
2583
|
+
deviceApprove: better_auth0.StrictEndpoint<"/device/approve", {
|
|
2584
2584
|
method: "POST";
|
|
2585
|
-
body:
|
|
2586
|
-
userCode:
|
|
2587
|
-
},
|
|
2588
|
-
error:
|
|
2589
|
-
error:
|
|
2585
|
+
body: zod0.ZodObject<{
|
|
2586
|
+
userCode: zod0.ZodString;
|
|
2587
|
+
}, better_auth0.$strip>;
|
|
2588
|
+
error: zod0.ZodObject<{
|
|
2589
|
+
error: zod0.ZodEnum<{
|
|
2590
2590
|
invalid_request: "invalid_request";
|
|
2591
2591
|
expired_token: "expired_token";
|
|
2592
2592
|
access_denied: "access_denied";
|
|
2593
2593
|
device_code_already_processed: "device_code_already_processed";
|
|
2594
2594
|
unauthorized: "unauthorized";
|
|
2595
2595
|
}>;
|
|
2596
|
-
error_description:
|
|
2597
|
-
},
|
|
2596
|
+
error_description: zod0.ZodString;
|
|
2597
|
+
}, better_auth0.$strip>;
|
|
2598
2598
|
requireHeaders: true;
|
|
2599
2599
|
metadata: {
|
|
2600
2600
|
openapi: {
|
|
@@ -2621,20 +2621,20 @@ declare const auth: better_auth133.Auth<{
|
|
|
2621
2621
|
}, {
|
|
2622
2622
|
success: boolean;
|
|
2623
2623
|
}>;
|
|
2624
|
-
deviceDeny:
|
|
2624
|
+
deviceDeny: better_auth0.StrictEndpoint<"/device/deny", {
|
|
2625
2625
|
method: "POST";
|
|
2626
|
-
body:
|
|
2627
|
-
userCode:
|
|
2628
|
-
},
|
|
2629
|
-
error:
|
|
2630
|
-
error:
|
|
2626
|
+
body: zod0.ZodObject<{
|
|
2627
|
+
userCode: zod0.ZodString;
|
|
2628
|
+
}, better_auth0.$strip>;
|
|
2629
|
+
error: zod0.ZodObject<{
|
|
2630
|
+
error: zod0.ZodEnum<{
|
|
2631
2631
|
invalid_request: "invalid_request";
|
|
2632
2632
|
expired_token: "expired_token";
|
|
2633
2633
|
access_denied: "access_denied";
|
|
2634
2634
|
unauthorized: "unauthorized";
|
|
2635
2635
|
}>;
|
|
2636
|
-
error_description:
|
|
2637
|
-
},
|
|
2636
|
+
error_description: zod0.ZodString;
|
|
2637
|
+
}, better_auth0.$strip>;
|
|
2638
2638
|
requireHeaders: true;
|
|
2639
2639
|
metadata: {
|
|
2640
2640
|
openapi: {
|
|
@@ -2663,22 +2663,22 @@ declare const auth: better_auth133.Auth<{
|
|
|
2663
2663
|
}>;
|
|
2664
2664
|
};
|
|
2665
2665
|
$ERROR_CODES: {
|
|
2666
|
-
USER_NOT_FOUND:
|
|
2667
|
-
FAILED_TO_CREATE_SESSION:
|
|
2668
|
-
INVALID_DEVICE_CODE:
|
|
2669
|
-
EXPIRED_DEVICE_CODE:
|
|
2670
|
-
EXPIRED_USER_CODE:
|
|
2671
|
-
AUTHORIZATION_PENDING:
|
|
2672
|
-
ACCESS_DENIED:
|
|
2673
|
-
INVALID_USER_CODE:
|
|
2674
|
-
DEVICE_CODE_ALREADY_PROCESSED:
|
|
2675
|
-
POLLING_TOO_FREQUENTLY:
|
|
2676
|
-
INVALID_DEVICE_CODE_STATUS:
|
|
2677
|
-
AUTHENTICATION_REQUIRED:
|
|
2666
|
+
USER_NOT_FOUND: better_auth0.RawError<"USER_NOT_FOUND">;
|
|
2667
|
+
FAILED_TO_CREATE_SESSION: better_auth0.RawError<"FAILED_TO_CREATE_SESSION">;
|
|
2668
|
+
INVALID_DEVICE_CODE: better_auth0.RawError<"INVALID_DEVICE_CODE">;
|
|
2669
|
+
EXPIRED_DEVICE_CODE: better_auth0.RawError<"EXPIRED_DEVICE_CODE">;
|
|
2670
|
+
EXPIRED_USER_CODE: better_auth0.RawError<"EXPIRED_USER_CODE">;
|
|
2671
|
+
AUTHORIZATION_PENDING: better_auth0.RawError<"AUTHORIZATION_PENDING">;
|
|
2672
|
+
ACCESS_DENIED: better_auth0.RawError<"ACCESS_DENIED">;
|
|
2673
|
+
INVALID_USER_CODE: better_auth0.RawError<"INVALID_USER_CODE">;
|
|
2674
|
+
DEVICE_CODE_ALREADY_PROCESSED: better_auth0.RawError<"DEVICE_CODE_ALREADY_PROCESSED">;
|
|
2675
|
+
POLLING_TOO_FREQUENTLY: better_auth0.RawError<"POLLING_TOO_FREQUENTLY">;
|
|
2676
|
+
INVALID_DEVICE_CODE_STATUS: better_auth0.RawError<"INVALID_DEVICE_CODE_STATUS">;
|
|
2677
|
+
AUTHENTICATION_REQUIRED: better_auth0.RawError<"AUTHENTICATION_REQUIRED">;
|
|
2678
2678
|
};
|
|
2679
2679
|
options: Partial<{
|
|
2680
|
-
expiresIn:
|
|
2681
|
-
interval:
|
|
2680
|
+
expiresIn: better_auth_plugins0.TimeString;
|
|
2681
|
+
interval: better_auth_plugins0.TimeString;
|
|
2682
2682
|
deviceCodeLength: number;
|
|
2683
2683
|
userCodeLength: number;
|
|
2684
2684
|
schema: {
|