@inkeep/agents-api 0.0.0-dev-20260121145510 → 0.0.0-dev-20260121150358
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.debug.json +16 -16
- package/dist/domains/evals/routes/datasetTriggers.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/conversations.d.ts +2 -2
- package/dist/domains/manage/routes/evals/evaluationResults.d.ts +2 -2
- package/dist/domains/manage/routes/index.d.ts +2 -2
- package/dist/domains/manage/routes/mcp.d.ts +2 -2
- package/dist/domains/manage/routes/signoz.d.ts +2 -2
- package/dist/factory.d.ts +271 -265
- package/dist/index.d.ts +271 -265
- package/dist/middleware/evalsAuth.d.ts +2 -2
- package/dist/middleware/manageAuth.d.ts +2 -2
- package/dist/middleware/projectAccess.d.ts +2 -2
- package/dist/middleware/projectConfig.d.ts +3 -3
- 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 +3 -3
package/dist/factory.d.ts
CHANGED
|
@@ -5,18 +5,18 @@ import { initializeDefaultUser } from "./initialization.js";
|
|
|
5
5
|
import { createAuth0Provider, createOIDCProvider } from "./ssoHelpers.js";
|
|
6
6
|
import * as hono0 from "hono";
|
|
7
7
|
import { CredentialStore, ServerConfig } from "@inkeep/agents-core";
|
|
8
|
-
import * as
|
|
8
|
+
import * as zod205 from "zod";
|
|
9
9
|
import { SSOProviderConfig, UserAuthConfig } from "@inkeep/agents-core/auth";
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
10
|
+
import * as hono_types3 from "hono/types";
|
|
11
|
+
import * as better_auth78 from "better-auth";
|
|
12
|
+
import * as better_auth_plugins69 from "better-auth/plugins";
|
|
13
|
+
import * as _better_auth_sso10 from "@better-auth/sso";
|
|
14
14
|
|
|
15
15
|
//#region src/factory.d.ts
|
|
16
|
-
declare function createAgentsAuth(userAuthConfig?: UserAuthConfig):
|
|
16
|
+
declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth78.Auth<{
|
|
17
17
|
baseURL: string;
|
|
18
18
|
secret: string;
|
|
19
|
-
database: (options:
|
|
19
|
+
database: (options: better_auth78.BetterAuthOptions) => better_auth78.DBAdapter<better_auth78.BetterAuthOptions>;
|
|
20
20
|
emailAndPassword: {
|
|
21
21
|
enabled: true;
|
|
22
22
|
minPasswordLength: number;
|
|
@@ -24,6 +24,12 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
24
24
|
requireEmailVerification: false;
|
|
25
25
|
autoSignIn: true;
|
|
26
26
|
};
|
|
27
|
+
account: {
|
|
28
|
+
accountLinking: {
|
|
29
|
+
enabled: true;
|
|
30
|
+
trustedProviders: ("google" | "email-password" | "auth0")[];
|
|
31
|
+
};
|
|
32
|
+
};
|
|
27
33
|
databaseHooks: {
|
|
28
34
|
session: {
|
|
29
35
|
create: {
|
|
@@ -65,7 +71,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
65
71
|
clientKey?: string | undefined;
|
|
66
72
|
disableIdTokenSignIn?: boolean | undefined;
|
|
67
73
|
verifyIdToken?: ((token: string, nonce?: string) => Promise<boolean>) | undefined;
|
|
68
|
-
getUserInfo?: ((token:
|
|
74
|
+
getUserInfo?: ((token: better_auth78.OAuth2Tokens) => Promise<{
|
|
69
75
|
user: {
|
|
70
76
|
id: string;
|
|
71
77
|
name?: string;
|
|
@@ -76,8 +82,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
76
82
|
};
|
|
77
83
|
data: any;
|
|
78
84
|
} | null>) | undefined;
|
|
79
|
-
refreshAccessToken?: ((refreshToken: string) => Promise<
|
|
80
|
-
mapProfileToUser?: ((profile:
|
|
85
|
+
refreshAccessToken?: ((refreshToken: string) => Promise<better_auth78.OAuth2Tokens>) | undefined;
|
|
86
|
+
mapProfileToUser?: ((profile: better_auth78.GoogleProfile) => {
|
|
81
87
|
id?: string;
|
|
82
88
|
name?: string;
|
|
83
89
|
email?: string | null;
|
|
@@ -124,15 +130,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
124
130
|
cookies?: {
|
|
125
131
|
[key: string]: {
|
|
126
132
|
name?: string;
|
|
127
|
-
attributes?:
|
|
133
|
+
attributes?: better_auth78.CookieOptions;
|
|
128
134
|
};
|
|
129
135
|
} | undefined;
|
|
130
|
-
defaultCookieAttributes:
|
|
136
|
+
defaultCookieAttributes: better_auth78.CookieOptions;
|
|
131
137
|
cookiePrefix?: string | undefined;
|
|
132
138
|
database?: {
|
|
133
139
|
defaultFindManyLimit?: number;
|
|
134
140
|
useNumberId?: boolean;
|
|
135
|
-
generateId?:
|
|
141
|
+
generateId?: better_auth78.GenerateIdFn | false | "serial" | "uuid";
|
|
136
142
|
} | undefined;
|
|
137
143
|
trustedProxyHeaders?: boolean | undefined;
|
|
138
144
|
backgroundTasks?: {
|
|
@@ -144,31 +150,31 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
144
150
|
id: "bearer";
|
|
145
151
|
hooks: {
|
|
146
152
|
before: {
|
|
147
|
-
matcher(context:
|
|
148
|
-
handler: (inputContext:
|
|
153
|
+
matcher(context: better_auth78.HookEndpointContext): boolean;
|
|
154
|
+
handler: (inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<{
|
|
149
155
|
context: {
|
|
150
156
|
headers: Headers;
|
|
151
157
|
};
|
|
152
158
|
} | undefined>;
|
|
153
159
|
}[];
|
|
154
160
|
after: {
|
|
155
|
-
matcher(context:
|
|
156
|
-
handler: (inputContext:
|
|
161
|
+
matcher(context: better_auth78.HookEndpointContext): true;
|
|
162
|
+
handler: (inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<void>;
|
|
157
163
|
}[];
|
|
158
164
|
};
|
|
159
|
-
options:
|
|
165
|
+
options: better_auth_plugins69.BearerOptions | undefined;
|
|
160
166
|
}, {
|
|
161
167
|
id: "sso";
|
|
162
168
|
endpoints: {
|
|
163
|
-
spMetadata: ReturnType<() =>
|
|
169
|
+
spMetadata: ReturnType<() => better_auth78.StrictEndpoint<"/sso/saml2/sp/metadata", {
|
|
164
170
|
method: "GET";
|
|
165
|
-
query:
|
|
166
|
-
providerId:
|
|
167
|
-
format:
|
|
171
|
+
query: zod205.ZodObject<{
|
|
172
|
+
providerId: zod205.ZodString;
|
|
173
|
+
format: zod205.ZodDefault<zod205.ZodEnum<{
|
|
168
174
|
xml: "xml";
|
|
169
175
|
json: "json";
|
|
170
176
|
}>>;
|
|
171
|
-
},
|
|
177
|
+
}, better_auth78.$strip>;
|
|
172
178
|
metadata: {
|
|
173
179
|
openapi: {
|
|
174
180
|
operationId: string;
|
|
@@ -182,86 +188,86 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
182
188
|
};
|
|
183
189
|
};
|
|
184
190
|
}, Response>>;
|
|
185
|
-
registerSSOProvider:
|
|
191
|
+
registerSSOProvider: better_auth78.StrictEndpoint<"/sso/register", {
|
|
186
192
|
method: "POST";
|
|
187
|
-
body:
|
|
188
|
-
providerId:
|
|
189
|
-
issuer:
|
|
190
|
-
domain:
|
|
191
|
-
oidcConfig:
|
|
192
|
-
clientId:
|
|
193
|
-
clientSecret:
|
|
194
|
-
authorizationEndpoint:
|
|
195
|
-
tokenEndpoint:
|
|
196
|
-
userInfoEndpoint:
|
|
197
|
-
tokenEndpointAuthentication:
|
|
193
|
+
body: zod205.ZodObject<{
|
|
194
|
+
providerId: zod205.ZodString;
|
|
195
|
+
issuer: zod205.ZodString;
|
|
196
|
+
domain: zod205.ZodString;
|
|
197
|
+
oidcConfig: zod205.ZodOptional<zod205.ZodObject<{
|
|
198
|
+
clientId: zod205.ZodString;
|
|
199
|
+
clientSecret: zod205.ZodString;
|
|
200
|
+
authorizationEndpoint: zod205.ZodOptional<zod205.ZodString>;
|
|
201
|
+
tokenEndpoint: zod205.ZodOptional<zod205.ZodString>;
|
|
202
|
+
userInfoEndpoint: zod205.ZodOptional<zod205.ZodString>;
|
|
203
|
+
tokenEndpointAuthentication: zod205.ZodOptional<zod205.ZodEnum<{
|
|
198
204
|
client_secret_post: "client_secret_post";
|
|
199
205
|
client_secret_basic: "client_secret_basic";
|
|
200
206
|
}>>;
|
|
201
|
-
jwksEndpoint:
|
|
202
|
-
discoveryEndpoint:
|
|
203
|
-
skipDiscovery:
|
|
204
|
-
scopes:
|
|
205
|
-
pkce:
|
|
206
|
-
mapping:
|
|
207
|
-
id:
|
|
208
|
-
email:
|
|
209
|
-
emailVerified:
|
|
210
|
-
name:
|
|
211
|
-
image:
|
|
212
|
-
extraFields:
|
|
213
|
-
},
|
|
214
|
-
},
|
|
215
|
-
samlConfig:
|
|
216
|
-
entryPoint:
|
|
217
|
-
cert:
|
|
218
|
-
callbackUrl:
|
|
219
|
-
audience:
|
|
220
|
-
idpMetadata:
|
|
221
|
-
metadata:
|
|
222
|
-
entityID:
|
|
223
|
-
cert:
|
|
224
|
-
privateKey:
|
|
225
|
-
privateKeyPass:
|
|
226
|
-
isAssertionEncrypted:
|
|
227
|
-
encPrivateKey:
|
|
228
|
-
encPrivateKeyPass:
|
|
229
|
-
singleSignOnService:
|
|
230
|
-
Binding:
|
|
231
|
-
Location:
|
|
232
|
-
},
|
|
233
|
-
},
|
|
234
|
-
spMetadata:
|
|
235
|
-
metadata:
|
|
236
|
-
entityID:
|
|
237
|
-
binding:
|
|
238
|
-
privateKey:
|
|
239
|
-
privateKeyPass:
|
|
240
|
-
isAssertionEncrypted:
|
|
241
|
-
encPrivateKey:
|
|
242
|
-
encPrivateKeyPass:
|
|
243
|
-
},
|
|
244
|
-
wantAssertionsSigned:
|
|
245
|
-
signatureAlgorithm:
|
|
246
|
-
digestAlgorithm:
|
|
247
|
-
identifierFormat:
|
|
248
|
-
privateKey:
|
|
249
|
-
decryptionPvk:
|
|
250
|
-
additionalParams:
|
|
251
|
-
mapping:
|
|
252
|
-
id:
|
|
253
|
-
email:
|
|
254
|
-
emailVerified:
|
|
255
|
-
name:
|
|
256
|
-
firstName:
|
|
257
|
-
lastName:
|
|
258
|
-
extraFields:
|
|
259
|
-
},
|
|
260
|
-
},
|
|
261
|
-
organizationId:
|
|
262
|
-
overrideUserInfo:
|
|
263
|
-
},
|
|
264
|
-
use: ((inputContext:
|
|
207
|
+
jwksEndpoint: zod205.ZodOptional<zod205.ZodString>;
|
|
208
|
+
discoveryEndpoint: zod205.ZodOptional<zod205.ZodString>;
|
|
209
|
+
skipDiscovery: zod205.ZodOptional<zod205.ZodBoolean>;
|
|
210
|
+
scopes: zod205.ZodOptional<zod205.ZodArray<zod205.ZodString>>;
|
|
211
|
+
pkce: zod205.ZodOptional<zod205.ZodDefault<zod205.ZodBoolean>>;
|
|
212
|
+
mapping: zod205.ZodOptional<zod205.ZodObject<{
|
|
213
|
+
id: zod205.ZodString;
|
|
214
|
+
email: zod205.ZodString;
|
|
215
|
+
emailVerified: zod205.ZodOptional<zod205.ZodString>;
|
|
216
|
+
name: zod205.ZodString;
|
|
217
|
+
image: zod205.ZodOptional<zod205.ZodString>;
|
|
218
|
+
extraFields: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
|
|
219
|
+
}, better_auth78.$strip>>;
|
|
220
|
+
}, better_auth78.$strip>>;
|
|
221
|
+
samlConfig: zod205.ZodOptional<zod205.ZodObject<{
|
|
222
|
+
entryPoint: zod205.ZodString;
|
|
223
|
+
cert: zod205.ZodString;
|
|
224
|
+
callbackUrl: zod205.ZodString;
|
|
225
|
+
audience: zod205.ZodOptional<zod205.ZodString>;
|
|
226
|
+
idpMetadata: zod205.ZodOptional<zod205.ZodObject<{
|
|
227
|
+
metadata: zod205.ZodOptional<zod205.ZodString>;
|
|
228
|
+
entityID: zod205.ZodOptional<zod205.ZodString>;
|
|
229
|
+
cert: zod205.ZodOptional<zod205.ZodString>;
|
|
230
|
+
privateKey: zod205.ZodOptional<zod205.ZodString>;
|
|
231
|
+
privateKeyPass: zod205.ZodOptional<zod205.ZodString>;
|
|
232
|
+
isAssertionEncrypted: zod205.ZodOptional<zod205.ZodBoolean>;
|
|
233
|
+
encPrivateKey: zod205.ZodOptional<zod205.ZodString>;
|
|
234
|
+
encPrivateKeyPass: zod205.ZodOptional<zod205.ZodString>;
|
|
235
|
+
singleSignOnService: zod205.ZodOptional<zod205.ZodArray<zod205.ZodObject<{
|
|
236
|
+
Binding: zod205.ZodString;
|
|
237
|
+
Location: zod205.ZodString;
|
|
238
|
+
}, better_auth78.$strip>>>;
|
|
239
|
+
}, better_auth78.$strip>>;
|
|
240
|
+
spMetadata: zod205.ZodObject<{
|
|
241
|
+
metadata: zod205.ZodOptional<zod205.ZodString>;
|
|
242
|
+
entityID: zod205.ZodOptional<zod205.ZodString>;
|
|
243
|
+
binding: zod205.ZodOptional<zod205.ZodString>;
|
|
244
|
+
privateKey: zod205.ZodOptional<zod205.ZodString>;
|
|
245
|
+
privateKeyPass: zod205.ZodOptional<zod205.ZodString>;
|
|
246
|
+
isAssertionEncrypted: zod205.ZodOptional<zod205.ZodBoolean>;
|
|
247
|
+
encPrivateKey: zod205.ZodOptional<zod205.ZodString>;
|
|
248
|
+
encPrivateKeyPass: zod205.ZodOptional<zod205.ZodString>;
|
|
249
|
+
}, better_auth78.$strip>;
|
|
250
|
+
wantAssertionsSigned: zod205.ZodOptional<zod205.ZodBoolean>;
|
|
251
|
+
signatureAlgorithm: zod205.ZodOptional<zod205.ZodString>;
|
|
252
|
+
digestAlgorithm: zod205.ZodOptional<zod205.ZodString>;
|
|
253
|
+
identifierFormat: zod205.ZodOptional<zod205.ZodString>;
|
|
254
|
+
privateKey: zod205.ZodOptional<zod205.ZodString>;
|
|
255
|
+
decryptionPvk: zod205.ZodOptional<zod205.ZodString>;
|
|
256
|
+
additionalParams: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
|
|
257
|
+
mapping: zod205.ZodOptional<zod205.ZodObject<{
|
|
258
|
+
id: zod205.ZodString;
|
|
259
|
+
email: zod205.ZodString;
|
|
260
|
+
emailVerified: zod205.ZodOptional<zod205.ZodString>;
|
|
261
|
+
name: zod205.ZodString;
|
|
262
|
+
firstName: zod205.ZodOptional<zod205.ZodString>;
|
|
263
|
+
lastName: zod205.ZodOptional<zod205.ZodString>;
|
|
264
|
+
extraFields: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
|
|
265
|
+
}, better_auth78.$strip>>;
|
|
266
|
+
}, better_auth78.$strip>>;
|
|
267
|
+
organizationId: zod205.ZodOptional<zod205.ZodString>;
|
|
268
|
+
overrideUserInfo: zod205.ZodOptional<zod205.ZodDefault<zod205.ZodBoolean>>;
|
|
269
|
+
}, better_auth78.$strip>;
|
|
270
|
+
use: ((inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<{
|
|
265
271
|
session: {
|
|
266
272
|
session: Record<string, any> & {
|
|
267
273
|
id: string;
|
|
@@ -447,35 +453,35 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
447
453
|
};
|
|
448
454
|
}, {
|
|
449
455
|
redirectURI: string;
|
|
450
|
-
oidcConfig:
|
|
451
|
-
samlConfig:
|
|
456
|
+
oidcConfig: _better_auth_sso10.OIDCConfig | null;
|
|
457
|
+
samlConfig: _better_auth_sso10.SAMLConfig | null;
|
|
452
458
|
} & Omit<{
|
|
453
459
|
issuer: string;
|
|
454
|
-
oidcConfig?:
|
|
455
|
-
samlConfig?:
|
|
460
|
+
oidcConfig?: _better_auth_sso10.OIDCConfig | undefined;
|
|
461
|
+
samlConfig?: _better_auth_sso10.SAMLConfig | undefined;
|
|
456
462
|
userId: string;
|
|
457
463
|
providerId: string;
|
|
458
464
|
organizationId?: string | undefined;
|
|
459
465
|
domain: string;
|
|
460
466
|
}, "oidcConfig" | "samlConfig">>;
|
|
461
|
-
signInSSO: ReturnType<(options?:
|
|
467
|
+
signInSSO: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sign-in/sso", {
|
|
462
468
|
method: "POST";
|
|
463
|
-
body:
|
|
464
|
-
email:
|
|
465
|
-
organizationSlug:
|
|
466
|
-
providerId:
|
|
467
|
-
domain:
|
|
468
|
-
callbackURL:
|
|
469
|
-
errorCallbackURL:
|
|
470
|
-
newUserCallbackURL:
|
|
471
|
-
scopes:
|
|
472
|
-
loginHint:
|
|
473
|
-
requestSignUp:
|
|
474
|
-
providerType:
|
|
469
|
+
body: zod205.ZodObject<{
|
|
470
|
+
email: zod205.ZodOptional<zod205.ZodString>;
|
|
471
|
+
organizationSlug: zod205.ZodOptional<zod205.ZodString>;
|
|
472
|
+
providerId: zod205.ZodOptional<zod205.ZodString>;
|
|
473
|
+
domain: zod205.ZodOptional<zod205.ZodString>;
|
|
474
|
+
callbackURL: zod205.ZodString;
|
|
475
|
+
errorCallbackURL: zod205.ZodOptional<zod205.ZodString>;
|
|
476
|
+
newUserCallbackURL: zod205.ZodOptional<zod205.ZodString>;
|
|
477
|
+
scopes: zod205.ZodOptional<zod205.ZodArray<zod205.ZodString>>;
|
|
478
|
+
loginHint: zod205.ZodOptional<zod205.ZodString>;
|
|
479
|
+
requestSignUp: zod205.ZodOptional<zod205.ZodBoolean>;
|
|
480
|
+
providerType: zod205.ZodOptional<zod205.ZodEnum<{
|
|
475
481
|
saml: "saml";
|
|
476
482
|
oidc: "oidc";
|
|
477
483
|
}>>;
|
|
478
|
-
},
|
|
484
|
+
}, better_auth78.$strip>;
|
|
479
485
|
metadata: {
|
|
480
486
|
openapi: {
|
|
481
487
|
operationId: string;
|
|
@@ -552,14 +558,14 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
552
558
|
url: string;
|
|
553
559
|
redirect: boolean;
|
|
554
560
|
}>>;
|
|
555
|
-
callbackSSO: ReturnType<(options?:
|
|
561
|
+
callbackSSO: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/callback/:providerId", {
|
|
556
562
|
method: "GET";
|
|
557
|
-
query:
|
|
558
|
-
code:
|
|
559
|
-
state:
|
|
560
|
-
error:
|
|
561
|
-
error_description:
|
|
562
|
-
},
|
|
563
|
+
query: zod205.ZodObject<{
|
|
564
|
+
code: zod205.ZodOptional<zod205.ZodString>;
|
|
565
|
+
state: zod205.ZodString;
|
|
566
|
+
error: zod205.ZodOptional<zod205.ZodString>;
|
|
567
|
+
error_description: zod205.ZodOptional<zod205.ZodString>;
|
|
568
|
+
}, better_auth78.$strip>;
|
|
563
569
|
allowedMediaTypes: string[];
|
|
564
570
|
metadata: {
|
|
565
571
|
openapi: {
|
|
@@ -575,12 +581,12 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
575
581
|
scope: "server";
|
|
576
582
|
};
|
|
577
583
|
}, never>>;
|
|
578
|
-
callbackSSOSAML: ReturnType<(options?:
|
|
584
|
+
callbackSSOSAML: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/saml2/callback/:providerId", {
|
|
579
585
|
method: "POST";
|
|
580
|
-
body:
|
|
581
|
-
SAMLResponse:
|
|
582
|
-
RelayState:
|
|
583
|
-
},
|
|
586
|
+
body: zod205.ZodObject<{
|
|
587
|
+
SAMLResponse: zod205.ZodString;
|
|
588
|
+
RelayState: zod205.ZodOptional<zod205.ZodString>;
|
|
589
|
+
}, better_auth78.$strip>;
|
|
584
590
|
metadata: {
|
|
585
591
|
allowedMediaTypes: string[];
|
|
586
592
|
openapi: {
|
|
@@ -602,15 +608,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
602
608
|
scope: "server";
|
|
603
609
|
};
|
|
604
610
|
}, never>>;
|
|
605
|
-
acsEndpoint: ReturnType<(options?:
|
|
611
|
+
acsEndpoint: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/saml2/sp/acs/:providerId", {
|
|
606
612
|
method: "POST";
|
|
607
|
-
params:
|
|
608
|
-
providerId:
|
|
609
|
-
},
|
|
610
|
-
body:
|
|
611
|
-
SAMLResponse:
|
|
612
|
-
RelayState:
|
|
613
|
-
},
|
|
613
|
+
params: zod205.ZodObject<{
|
|
614
|
+
providerId: zod205.ZodOptional<zod205.ZodString>;
|
|
615
|
+
}, better_auth78.$strip>;
|
|
616
|
+
body: zod205.ZodObject<{
|
|
617
|
+
SAMLResponse: zod205.ZodString;
|
|
618
|
+
RelayState: zod205.ZodOptional<zod205.ZodString>;
|
|
619
|
+
}, better_auth78.$strip>;
|
|
614
620
|
metadata: {
|
|
615
621
|
allowedMediaTypes: string[];
|
|
616
622
|
openapi: {
|
|
@@ -627,11 +633,11 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
627
633
|
};
|
|
628
634
|
}, never>>;
|
|
629
635
|
} & {
|
|
630
|
-
requestDomainVerification: ReturnType<(options:
|
|
636
|
+
requestDomainVerification: ReturnType<(options: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/request-domain-verification", {
|
|
631
637
|
method: "POST";
|
|
632
|
-
body:
|
|
633
|
-
providerId:
|
|
634
|
-
},
|
|
638
|
+
body: zod205.ZodObject<{
|
|
639
|
+
providerId: zod205.ZodString;
|
|
640
|
+
}, better_auth78.$strip>;
|
|
635
641
|
metadata: {
|
|
636
642
|
openapi: {
|
|
637
643
|
summary: string;
|
|
@@ -649,7 +655,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
649
655
|
};
|
|
650
656
|
};
|
|
651
657
|
};
|
|
652
|
-
use: ((inputContext:
|
|
658
|
+
use: ((inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<{
|
|
653
659
|
session: {
|
|
654
660
|
session: Record<string, any> & {
|
|
655
661
|
id: string;
|
|
@@ -675,11 +681,11 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
675
681
|
}, {
|
|
676
682
|
domainVerificationToken: string;
|
|
677
683
|
}>>;
|
|
678
|
-
verifyDomain: ReturnType<(options:
|
|
684
|
+
verifyDomain: ReturnType<(options: _better_auth_sso10.SSOOptions) => better_auth78.StrictEndpoint<"/sso/verify-domain", {
|
|
679
685
|
method: "POST";
|
|
680
|
-
body:
|
|
681
|
-
providerId:
|
|
682
|
-
},
|
|
686
|
+
body: zod205.ZodObject<{
|
|
687
|
+
providerId: zod205.ZodString;
|
|
688
|
+
}, better_auth78.$strip>;
|
|
683
689
|
metadata: {
|
|
684
690
|
openapi: {
|
|
685
691
|
summary: string;
|
|
@@ -700,7 +706,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
700
706
|
};
|
|
701
707
|
};
|
|
702
708
|
};
|
|
703
|
-
use: ((inputContext:
|
|
709
|
+
use: ((inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<{
|
|
704
710
|
session: {
|
|
705
711
|
session: Record<string, any> & {
|
|
706
712
|
id: string;
|
|
@@ -726,7 +732,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
726
732
|
}, void>>;
|
|
727
733
|
};
|
|
728
734
|
schema: any;
|
|
729
|
-
options:
|
|
735
|
+
options: _better_auth_sso10.SSOOptions & {
|
|
730
736
|
domainVerification?: {
|
|
731
737
|
enabled: true;
|
|
732
738
|
};
|
|
@@ -737,14 +743,14 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
737
743
|
productionURL: string;
|
|
738
744
|
}>;
|
|
739
745
|
endpoints: {
|
|
740
|
-
oAuthProxy:
|
|
746
|
+
oAuthProxy: better_auth78.StrictEndpoint<"/oauth-proxy-callback", {
|
|
741
747
|
method: "GET";
|
|
742
748
|
operationId: string;
|
|
743
|
-
query:
|
|
744
|
-
callbackURL:
|
|
745
|
-
cookies:
|
|
746
|
-
},
|
|
747
|
-
use: ((inputContext:
|
|
749
|
+
query: zod205.ZodObject<{
|
|
750
|
+
callbackURL: zod205.ZodString;
|
|
751
|
+
cookies: zod205.ZodString;
|
|
752
|
+
}, better_auth78.$strip>;
|
|
753
|
+
use: ((inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<void>)[];
|
|
748
754
|
metadata: {
|
|
749
755
|
openapi: {
|
|
750
756
|
operationId: string;
|
|
@@ -774,40 +780,40 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
774
780
|
};
|
|
775
781
|
hooks: {
|
|
776
782
|
before: {
|
|
777
|
-
matcher(context:
|
|
778
|
-
handler: (inputContext:
|
|
783
|
+
matcher(context: better_auth78.HookEndpointContext): boolean;
|
|
784
|
+
handler: (inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<void>;
|
|
779
785
|
}[];
|
|
780
786
|
after: {
|
|
781
|
-
matcher(context:
|
|
782
|
-
handler: (inputContext:
|
|
787
|
+
matcher(context: better_auth78.HookEndpointContext): boolean;
|
|
788
|
+
handler: (inputContext: better_auth78.MiddlewareInputContext<better_auth78.MiddlewareOptions>) => Promise<void>;
|
|
783
789
|
}[];
|
|
784
790
|
};
|
|
785
791
|
}, {
|
|
786
792
|
id: "organization";
|
|
787
|
-
endpoints:
|
|
793
|
+
endpoints: better_auth_plugins69.OrganizationEndpoints<{
|
|
788
794
|
allowUserToCreateOrganization: true;
|
|
789
|
-
ac:
|
|
795
|
+
ac: better_auth_plugins69.AccessControl;
|
|
790
796
|
roles: {
|
|
791
797
|
member: {
|
|
792
|
-
authorize<K_1 extends "
|
|
793
|
-
actions:
|
|
798
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
|
|
799
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
|
|
794
800
|
connector: "OR" | "AND";
|
|
795
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
796
|
-
statements:
|
|
801
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
802
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
|
|
797
803
|
};
|
|
798
804
|
admin: {
|
|
799
|
-
authorize<K_1 extends "
|
|
800
|
-
actions:
|
|
805
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
|
|
806
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
|
|
801
807
|
connector: "OR" | "AND";
|
|
802
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
803
|
-
statements:
|
|
808
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
809
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
|
|
804
810
|
};
|
|
805
811
|
owner: {
|
|
806
|
-
authorize<K_1 extends "
|
|
807
|
-
actions:
|
|
812
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
|
|
813
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
|
|
808
814
|
connector: "OR" | "AND";
|
|
809
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
810
|
-
statements:
|
|
815
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
816
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
|
|
811
817
|
};
|
|
812
818
|
};
|
|
813
819
|
membershipLimit: number;
|
|
@@ -817,10 +823,10 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
817
823
|
id: string;
|
|
818
824
|
role: string;
|
|
819
825
|
email: string;
|
|
820
|
-
organization:
|
|
821
|
-
invitation:
|
|
822
|
-
inviter:
|
|
823
|
-
user:
|
|
826
|
+
organization: better_auth_plugins69.Organization;
|
|
827
|
+
invitation: better_auth_plugins69.Invitation;
|
|
828
|
+
inviter: better_auth_plugins69.Member & {
|
|
829
|
+
user: better_auth78.User;
|
|
824
830
|
};
|
|
825
831
|
}): Promise<void>;
|
|
826
832
|
organizationHooks: {
|
|
@@ -829,28 +835,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
829
835
|
user,
|
|
830
836
|
organization: org
|
|
831
837
|
}: {
|
|
832
|
-
invitation:
|
|
833
|
-
member:
|
|
834
|
-
user:
|
|
835
|
-
organization:
|
|
838
|
+
invitation: better_auth_plugins69.Invitation & Record<string, any>;
|
|
839
|
+
member: better_auth_plugins69.Member & Record<string, any>;
|
|
840
|
+
user: better_auth78.User & Record<string, any>;
|
|
841
|
+
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
836
842
|
}) => Promise<void>;
|
|
837
843
|
afterUpdateMemberRole: ({
|
|
838
844
|
member,
|
|
839
845
|
organization: org,
|
|
840
846
|
previousRole
|
|
841
847
|
}: {
|
|
842
|
-
member:
|
|
848
|
+
member: better_auth_plugins69.Member & Record<string, any>;
|
|
843
849
|
previousRole: string;
|
|
844
|
-
user:
|
|
845
|
-
organization:
|
|
850
|
+
user: better_auth78.User & Record<string, any>;
|
|
851
|
+
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
846
852
|
}) => Promise<void>;
|
|
847
853
|
afterRemoveMember: ({
|
|
848
854
|
member,
|
|
849
855
|
organization: org
|
|
850
856
|
}: {
|
|
851
|
-
member:
|
|
852
|
-
user:
|
|
853
|
-
organization:
|
|
857
|
+
member: better_auth_plugins69.Member & Record<string, any>;
|
|
858
|
+
user: better_auth78.User & Record<string, any>;
|
|
859
|
+
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
854
860
|
}) => Promise<void>;
|
|
855
861
|
};
|
|
856
862
|
}>;
|
|
@@ -981,8 +987,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
981
987
|
id: string;
|
|
982
988
|
organizationId: string;
|
|
983
989
|
email: string;
|
|
984
|
-
role: "
|
|
985
|
-
status:
|
|
990
|
+
role: "member" | "admin" | "owner";
|
|
991
|
+
status: better_auth_plugins69.InvitationStatus;
|
|
986
992
|
inviterId: string;
|
|
987
993
|
expiresAt: Date;
|
|
988
994
|
createdAt: Date;
|
|
@@ -990,7 +996,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
990
996
|
Member: {
|
|
991
997
|
id: string;
|
|
992
998
|
organizationId: string;
|
|
993
|
-
role: "
|
|
999
|
+
role: "member" | "admin" | "owner";
|
|
994
1000
|
createdAt: Date;
|
|
995
1001
|
userId: string;
|
|
996
1002
|
user: {
|
|
@@ -1006,7 +1012,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
1006
1012
|
members: {
|
|
1007
1013
|
id: string;
|
|
1008
1014
|
organizationId: string;
|
|
1009
|
-
role: "
|
|
1015
|
+
role: "member" | "admin" | "owner";
|
|
1010
1016
|
createdAt: Date;
|
|
1011
1017
|
userId: string;
|
|
1012
1018
|
user: {
|
|
@@ -1020,8 +1026,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
1020
1026
|
id: string;
|
|
1021
1027
|
organizationId: string;
|
|
1022
1028
|
email: string;
|
|
1023
|
-
role: "
|
|
1024
|
-
status:
|
|
1029
|
+
role: "member" | "admin" | "owner";
|
|
1030
|
+
status: better_auth_plugins69.InvitationStatus;
|
|
1025
1031
|
inviterId: string;
|
|
1026
1032
|
expiresAt: Date;
|
|
1027
1033
|
createdAt: Date;
|
|
@@ -1095,28 +1101,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
1095
1101
|
};
|
|
1096
1102
|
options: NoInfer<{
|
|
1097
1103
|
allowUserToCreateOrganization: true;
|
|
1098
|
-
ac:
|
|
1104
|
+
ac: better_auth_plugins69.AccessControl;
|
|
1099
1105
|
roles: {
|
|
1100
1106
|
member: {
|
|
1101
|
-
authorize<K_1 extends "
|
|
1102
|
-
actions:
|
|
1107
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
|
|
1108
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
|
|
1103
1109
|
connector: "OR" | "AND";
|
|
1104
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1105
|
-
statements:
|
|
1110
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
1111
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
|
|
1106
1112
|
};
|
|
1107
1113
|
admin: {
|
|
1108
|
-
authorize<K_1 extends "
|
|
1109
|
-
actions:
|
|
1114
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
|
|
1115
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
|
|
1110
1116
|
connector: "OR" | "AND";
|
|
1111
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1112
|
-
statements:
|
|
1117
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
1118
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
|
|
1113
1119
|
};
|
|
1114
1120
|
owner: {
|
|
1115
|
-
authorize<K_1 extends "
|
|
1116
|
-
actions:
|
|
1121
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
|
|
1122
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
|
|
1117
1123
|
connector: "OR" | "AND";
|
|
1118
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1119
|
-
statements:
|
|
1124
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
1125
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
|
|
1120
1126
|
};
|
|
1121
1127
|
};
|
|
1122
1128
|
membershipLimit: number;
|
|
@@ -1126,10 +1132,10 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
1126
1132
|
id: string;
|
|
1127
1133
|
role: string;
|
|
1128
1134
|
email: string;
|
|
1129
|
-
organization:
|
|
1130
|
-
invitation:
|
|
1131
|
-
inviter:
|
|
1132
|
-
user:
|
|
1135
|
+
organization: better_auth_plugins69.Organization;
|
|
1136
|
+
invitation: better_auth_plugins69.Invitation;
|
|
1137
|
+
inviter: better_auth_plugins69.Member & {
|
|
1138
|
+
user: better_auth78.User;
|
|
1133
1139
|
};
|
|
1134
1140
|
}): Promise<void>;
|
|
1135
1141
|
organizationHooks: {
|
|
@@ -1138,28 +1144,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
1138
1144
|
user,
|
|
1139
1145
|
organization: org
|
|
1140
1146
|
}: {
|
|
1141
|
-
invitation:
|
|
1142
|
-
member:
|
|
1143
|
-
user:
|
|
1144
|
-
organization:
|
|
1147
|
+
invitation: better_auth_plugins69.Invitation & Record<string, any>;
|
|
1148
|
+
member: better_auth_plugins69.Member & Record<string, any>;
|
|
1149
|
+
user: better_auth78.User & Record<string, any>;
|
|
1150
|
+
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
1145
1151
|
}) => Promise<void>;
|
|
1146
1152
|
afterUpdateMemberRole: ({
|
|
1147
1153
|
member,
|
|
1148
1154
|
organization: org,
|
|
1149
1155
|
previousRole
|
|
1150
1156
|
}: {
|
|
1151
|
-
member:
|
|
1157
|
+
member: better_auth_plugins69.Member & Record<string, any>;
|
|
1152
1158
|
previousRole: string;
|
|
1153
|
-
user:
|
|
1154
|
-
organization:
|
|
1159
|
+
user: better_auth78.User & Record<string, any>;
|
|
1160
|
+
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
1155
1161
|
}) => Promise<void>;
|
|
1156
1162
|
afterRemoveMember: ({
|
|
1157
1163
|
member,
|
|
1158
1164
|
organization: org
|
|
1159
1165
|
}: {
|
|
1160
|
-
member:
|
|
1161
|
-
user:
|
|
1162
|
-
organization:
|
|
1166
|
+
member: better_auth_plugins69.Member & Record<string, any>;
|
|
1167
|
+
user: better_auth78.User & Record<string, any>;
|
|
1168
|
+
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
1163
1169
|
}) => Promise<void>;
|
|
1164
1170
|
};
|
|
1165
1171
|
}>;
|
|
@@ -1208,19 +1214,19 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
1208
1214
|
};
|
|
1209
1215
|
};
|
|
1210
1216
|
endpoints: {
|
|
1211
|
-
deviceCode:
|
|
1217
|
+
deviceCode: better_auth78.StrictEndpoint<"/device/code", {
|
|
1212
1218
|
method: "POST";
|
|
1213
|
-
body:
|
|
1214
|
-
client_id:
|
|
1215
|
-
scope:
|
|
1216
|
-
},
|
|
1217
|
-
error:
|
|
1218
|
-
error:
|
|
1219
|
+
body: zod205.ZodObject<{
|
|
1220
|
+
client_id: zod205.ZodString;
|
|
1221
|
+
scope: zod205.ZodOptional<zod205.ZodString>;
|
|
1222
|
+
}, better_auth78.$strip>;
|
|
1223
|
+
error: zod205.ZodObject<{
|
|
1224
|
+
error: zod205.ZodEnum<{
|
|
1219
1225
|
invalid_request: "invalid_request";
|
|
1220
1226
|
invalid_client: "invalid_client";
|
|
1221
1227
|
}>;
|
|
1222
|
-
error_description:
|
|
1223
|
-
},
|
|
1228
|
+
error_description: zod205.ZodString;
|
|
1229
|
+
}, better_auth78.$strip>;
|
|
1224
1230
|
metadata: {
|
|
1225
1231
|
openapi: {
|
|
1226
1232
|
description: string;
|
|
@@ -1293,15 +1299,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
1293
1299
|
expires_in: number;
|
|
1294
1300
|
interval: number;
|
|
1295
1301
|
}>;
|
|
1296
|
-
deviceToken:
|
|
1302
|
+
deviceToken: better_auth78.StrictEndpoint<"/device/token", {
|
|
1297
1303
|
method: "POST";
|
|
1298
|
-
body:
|
|
1299
|
-
grant_type:
|
|
1300
|
-
device_code:
|
|
1301
|
-
client_id:
|
|
1302
|
-
},
|
|
1303
|
-
error:
|
|
1304
|
-
error:
|
|
1304
|
+
body: zod205.ZodObject<{
|
|
1305
|
+
grant_type: zod205.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
|
|
1306
|
+
device_code: zod205.ZodString;
|
|
1307
|
+
client_id: zod205.ZodString;
|
|
1308
|
+
}, better_auth78.$strip>;
|
|
1309
|
+
error: zod205.ZodObject<{
|
|
1310
|
+
error: zod205.ZodEnum<{
|
|
1305
1311
|
invalid_request: "invalid_request";
|
|
1306
1312
|
authorization_pending: "authorization_pending";
|
|
1307
1313
|
slow_down: "slow_down";
|
|
@@ -1309,8 +1315,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
1309
1315
|
access_denied: "access_denied";
|
|
1310
1316
|
invalid_grant: "invalid_grant";
|
|
1311
1317
|
}>;
|
|
1312
|
-
error_description:
|
|
1313
|
-
},
|
|
1318
|
+
error_description: zod205.ZodString;
|
|
1319
|
+
}, better_auth78.$strip>;
|
|
1314
1320
|
metadata: {
|
|
1315
1321
|
openapi: {
|
|
1316
1322
|
description: string;
|
|
@@ -1361,17 +1367,17 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
1361
1367
|
expires_in: number;
|
|
1362
1368
|
scope: string;
|
|
1363
1369
|
}>;
|
|
1364
|
-
deviceVerify:
|
|
1370
|
+
deviceVerify: better_auth78.StrictEndpoint<"/device", {
|
|
1365
1371
|
method: "GET";
|
|
1366
|
-
query:
|
|
1367
|
-
user_code:
|
|
1368
|
-
},
|
|
1369
|
-
error:
|
|
1370
|
-
error:
|
|
1372
|
+
query: zod205.ZodObject<{
|
|
1373
|
+
user_code: zod205.ZodString;
|
|
1374
|
+
}, better_auth78.$strip>;
|
|
1375
|
+
error: zod205.ZodObject<{
|
|
1376
|
+
error: zod205.ZodEnum<{
|
|
1371
1377
|
invalid_request: "invalid_request";
|
|
1372
1378
|
}>;
|
|
1373
|
-
error_description:
|
|
1374
|
-
},
|
|
1379
|
+
error_description: zod205.ZodString;
|
|
1380
|
+
}, better_auth78.$strip>;
|
|
1375
1381
|
metadata: {
|
|
1376
1382
|
openapi: {
|
|
1377
1383
|
description: string;
|
|
@@ -1404,19 +1410,19 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
1404
1410
|
user_code: string;
|
|
1405
1411
|
status: string;
|
|
1406
1412
|
}>;
|
|
1407
|
-
deviceApprove:
|
|
1413
|
+
deviceApprove: better_auth78.StrictEndpoint<"/device/approve", {
|
|
1408
1414
|
method: "POST";
|
|
1409
|
-
body:
|
|
1410
|
-
userCode:
|
|
1411
|
-
},
|
|
1412
|
-
error:
|
|
1413
|
-
error:
|
|
1415
|
+
body: zod205.ZodObject<{
|
|
1416
|
+
userCode: zod205.ZodString;
|
|
1417
|
+
}, better_auth78.$strip>;
|
|
1418
|
+
error: zod205.ZodObject<{
|
|
1419
|
+
error: zod205.ZodEnum<{
|
|
1414
1420
|
invalid_request: "invalid_request";
|
|
1415
1421
|
expired_token: "expired_token";
|
|
1416
1422
|
device_code_already_processed: "device_code_already_processed";
|
|
1417
1423
|
}>;
|
|
1418
|
-
error_description:
|
|
1419
|
-
},
|
|
1424
|
+
error_description: zod205.ZodString;
|
|
1425
|
+
}, better_auth78.$strip>;
|
|
1420
1426
|
requireHeaders: true;
|
|
1421
1427
|
metadata: {
|
|
1422
1428
|
openapi: {
|
|
@@ -1443,18 +1449,18 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
1443
1449
|
}, {
|
|
1444
1450
|
success: boolean;
|
|
1445
1451
|
}>;
|
|
1446
|
-
deviceDeny:
|
|
1452
|
+
deviceDeny: better_auth78.StrictEndpoint<"/device/deny", {
|
|
1447
1453
|
method: "POST";
|
|
1448
|
-
body:
|
|
1449
|
-
userCode:
|
|
1450
|
-
},
|
|
1451
|
-
error:
|
|
1452
|
-
error:
|
|
1454
|
+
body: zod205.ZodObject<{
|
|
1455
|
+
userCode: zod205.ZodString;
|
|
1456
|
+
}, better_auth78.$strip>;
|
|
1457
|
+
error: zod205.ZodObject<{
|
|
1458
|
+
error: zod205.ZodEnum<{
|
|
1453
1459
|
invalid_request: "invalid_request";
|
|
1454
1460
|
expired_token: "expired_token";
|
|
1455
1461
|
}>;
|
|
1456
|
-
error_description:
|
|
1457
|
-
},
|
|
1462
|
+
error_description: zod205.ZodString;
|
|
1463
|
+
}, better_auth78.$strip>;
|
|
1458
1464
|
metadata: {
|
|
1459
1465
|
openapi: {
|
|
1460
1466
|
description: string;
|
|
@@ -1496,8 +1502,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0
|
|
|
1496
1502
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1497
1503
|
};
|
|
1498
1504
|
options: Partial<{
|
|
1499
|
-
expiresIn:
|
|
1500
|
-
interval:
|
|
1505
|
+
expiresIn: better_auth_plugins69.TimeString;
|
|
1506
|
+
interval: better_auth_plugins69.TimeString;
|
|
1501
1507
|
deviceCodeLength: number;
|
|
1502
1508
|
userCodeLength: number;
|
|
1503
1509
|
schema: {
|
|
@@ -1530,6 +1536,6 @@ declare function createAgentsApp(config?: {
|
|
|
1530
1536
|
auth?: UserAuthConfig;
|
|
1531
1537
|
sandboxConfig?: SandboxConfig;
|
|
1532
1538
|
skipInitialization?: boolean;
|
|
1533
|
-
}): hono0.Hono<
|
|
1539
|
+
}): hono0.Hono<hono_types3.BlankEnv, hono_types3.BlankSchema, "/">;
|
|
1534
1540
|
//#endregion
|
|
1535
1541
|
export { type SSOProviderConfig, type UserAuthConfig, createAgentsApp, createAgentsAuth, createAgentsHono, createAuth0Provider, createOIDCProvider, initializeDefaultUser };
|