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