@inkeep/agents-api 0.0.0-dev-20260121155444 → 0.0.0-dev-20260121172937
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/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/index.d.ts +2 -2
- package/dist/domains/manage/routes/signoz.d.ts +2 -2
- package/dist/domains/run/agents/relationTools.d.ts +2 -2
- package/dist/domains/run/routes/webhooks.js +0 -1
- package/dist/domains/run/utils/token-estimator.d.ts +2 -2
- package/dist/factory.d.ts +265 -265
- package/dist/index.d.ts +265 -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 zod0 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_types1 from "hono/types";
|
|
11
|
+
import * as better_auth0 from "better-auth";
|
|
12
|
+
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
13
|
+
import * as _better_auth_sso0 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_auth0.Auth<{
|
|
17
17
|
baseURL: string;
|
|
18
18
|
secret: string;
|
|
19
|
-
database: (options:
|
|
19
|
+
database: (options: better_auth0.BetterAuthOptions) => better_auth0.DBAdapter<better_auth0.BetterAuthOptions>;
|
|
20
20
|
emailAndPassword: {
|
|
21
21
|
enabled: true;
|
|
22
22
|
minPasswordLength: number;
|
|
@@ -71,7 +71,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
71
71
|
clientKey?: string | undefined;
|
|
72
72
|
disableIdTokenSignIn?: boolean | undefined;
|
|
73
73
|
verifyIdToken?: ((token: string, nonce?: string) => Promise<boolean>) | undefined;
|
|
74
|
-
getUserInfo?: ((token:
|
|
74
|
+
getUserInfo?: ((token: better_auth0.OAuth2Tokens) => Promise<{
|
|
75
75
|
user: {
|
|
76
76
|
id: string;
|
|
77
77
|
name?: string;
|
|
@@ -82,8 +82,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
82
82
|
};
|
|
83
83
|
data: any;
|
|
84
84
|
} | null>) | undefined;
|
|
85
|
-
refreshAccessToken?: ((refreshToken: string) => Promise<
|
|
86
|
-
mapProfileToUser?: ((profile:
|
|
85
|
+
refreshAccessToken?: ((refreshToken: string) => Promise<better_auth0.OAuth2Tokens>) | undefined;
|
|
86
|
+
mapProfileToUser?: ((profile: better_auth0.GoogleProfile) => {
|
|
87
87
|
id?: string;
|
|
88
88
|
name?: string;
|
|
89
89
|
email?: string | null;
|
|
@@ -130,15 +130,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
130
130
|
cookies?: {
|
|
131
131
|
[key: string]: {
|
|
132
132
|
name?: string;
|
|
133
|
-
attributes?:
|
|
133
|
+
attributes?: better_auth0.CookieOptions;
|
|
134
134
|
};
|
|
135
135
|
} | undefined;
|
|
136
|
-
defaultCookieAttributes:
|
|
136
|
+
defaultCookieAttributes: better_auth0.CookieOptions;
|
|
137
137
|
cookiePrefix?: string | undefined;
|
|
138
138
|
database?: {
|
|
139
139
|
defaultFindManyLimit?: number;
|
|
140
140
|
useNumberId?: boolean;
|
|
141
|
-
generateId?:
|
|
141
|
+
generateId?: better_auth0.GenerateIdFn | false | "serial" | "uuid";
|
|
142
142
|
} | undefined;
|
|
143
143
|
trustedProxyHeaders?: boolean | undefined;
|
|
144
144
|
backgroundTasks?: {
|
|
@@ -150,31 +150,31 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
150
150
|
id: "bearer";
|
|
151
151
|
hooks: {
|
|
152
152
|
before: {
|
|
153
|
-
matcher(context:
|
|
154
|
-
handler: (inputContext:
|
|
153
|
+
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
154
|
+
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
155
155
|
context: {
|
|
156
156
|
headers: Headers;
|
|
157
157
|
};
|
|
158
158
|
} | undefined>;
|
|
159
159
|
}[];
|
|
160
160
|
after: {
|
|
161
|
-
matcher(context:
|
|
162
|
-
handler: (inputContext:
|
|
161
|
+
matcher(context: better_auth0.HookEndpointContext): true;
|
|
162
|
+
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
163
163
|
}[];
|
|
164
164
|
};
|
|
165
|
-
options:
|
|
165
|
+
options: better_auth_plugins0.BearerOptions | undefined;
|
|
166
166
|
}, {
|
|
167
167
|
id: "sso";
|
|
168
168
|
endpoints: {
|
|
169
|
-
spMetadata: ReturnType<() =>
|
|
169
|
+
spMetadata: ReturnType<() => better_auth0.StrictEndpoint<"/sso/saml2/sp/metadata", {
|
|
170
170
|
method: "GET";
|
|
171
|
-
query:
|
|
172
|
-
providerId:
|
|
173
|
-
format:
|
|
171
|
+
query: zod0.ZodObject<{
|
|
172
|
+
providerId: zod0.ZodString;
|
|
173
|
+
format: zod0.ZodDefault<zod0.ZodEnum<{
|
|
174
174
|
xml: "xml";
|
|
175
175
|
json: "json";
|
|
176
176
|
}>>;
|
|
177
|
-
},
|
|
177
|
+
}, better_auth0.$strip>;
|
|
178
178
|
metadata: {
|
|
179
179
|
openapi: {
|
|
180
180
|
operationId: string;
|
|
@@ -188,86 +188,86 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
188
188
|
};
|
|
189
189
|
};
|
|
190
190
|
}, Response>>;
|
|
191
|
-
registerSSOProvider:
|
|
191
|
+
registerSSOProvider: better_auth0.StrictEndpoint<"/sso/register", {
|
|
192
192
|
method: "POST";
|
|
193
|
-
body:
|
|
194
|
-
providerId:
|
|
195
|
-
issuer:
|
|
196
|
-
domain:
|
|
197
|
-
oidcConfig:
|
|
198
|
-
clientId:
|
|
199
|
-
clientSecret:
|
|
200
|
-
authorizationEndpoint:
|
|
201
|
-
tokenEndpoint:
|
|
202
|
-
userInfoEndpoint:
|
|
203
|
-
tokenEndpointAuthentication:
|
|
193
|
+
body: zod0.ZodObject<{
|
|
194
|
+
providerId: zod0.ZodString;
|
|
195
|
+
issuer: zod0.ZodString;
|
|
196
|
+
domain: zod0.ZodString;
|
|
197
|
+
oidcConfig: zod0.ZodOptional<zod0.ZodObject<{
|
|
198
|
+
clientId: zod0.ZodString;
|
|
199
|
+
clientSecret: zod0.ZodString;
|
|
200
|
+
authorizationEndpoint: zod0.ZodOptional<zod0.ZodString>;
|
|
201
|
+
tokenEndpoint: zod0.ZodOptional<zod0.ZodString>;
|
|
202
|
+
userInfoEndpoint: zod0.ZodOptional<zod0.ZodString>;
|
|
203
|
+
tokenEndpointAuthentication: zod0.ZodOptional<zod0.ZodEnum<{
|
|
204
204
|
client_secret_post: "client_secret_post";
|
|
205
205
|
client_secret_basic: "client_secret_basic";
|
|
206
206
|
}>>;
|
|
207
|
-
jwksEndpoint:
|
|
208
|
-
discoveryEndpoint:
|
|
209
|
-
skipDiscovery:
|
|
210
|
-
scopes:
|
|
211
|
-
pkce:
|
|
212
|
-
mapping:
|
|
213
|
-
id:
|
|
214
|
-
email:
|
|
215
|
-
emailVerified:
|
|
216
|
-
name:
|
|
217
|
-
image:
|
|
218
|
-
extraFields:
|
|
219
|
-
},
|
|
220
|
-
},
|
|
221
|
-
samlConfig:
|
|
222
|
-
entryPoint:
|
|
223
|
-
cert:
|
|
224
|
-
callbackUrl:
|
|
225
|
-
audience:
|
|
226
|
-
idpMetadata:
|
|
227
|
-
metadata:
|
|
228
|
-
entityID:
|
|
229
|
-
cert:
|
|
230
|
-
privateKey:
|
|
231
|
-
privateKeyPass:
|
|
232
|
-
isAssertionEncrypted:
|
|
233
|
-
encPrivateKey:
|
|
234
|
-
encPrivateKeyPass:
|
|
235
|
-
singleSignOnService:
|
|
236
|
-
Binding:
|
|
237
|
-
Location:
|
|
238
|
-
},
|
|
239
|
-
},
|
|
240
|
-
spMetadata:
|
|
241
|
-
metadata:
|
|
242
|
-
entityID:
|
|
243
|
-
binding:
|
|
244
|
-
privateKey:
|
|
245
|
-
privateKeyPass:
|
|
246
|
-
isAssertionEncrypted:
|
|
247
|
-
encPrivateKey:
|
|
248
|
-
encPrivateKeyPass:
|
|
249
|
-
},
|
|
250
|
-
wantAssertionsSigned:
|
|
251
|
-
signatureAlgorithm:
|
|
252
|
-
digestAlgorithm:
|
|
253
|
-
identifierFormat:
|
|
254
|
-
privateKey:
|
|
255
|
-
decryptionPvk:
|
|
256
|
-
additionalParams:
|
|
257
|
-
mapping:
|
|
258
|
-
id:
|
|
259
|
-
email:
|
|
260
|
-
emailVerified:
|
|
261
|
-
name:
|
|
262
|
-
firstName:
|
|
263
|
-
lastName:
|
|
264
|
-
extraFields:
|
|
265
|
-
},
|
|
266
|
-
},
|
|
267
|
-
organizationId:
|
|
268
|
-
overrideUserInfo:
|
|
269
|
-
},
|
|
270
|
-
use: ((inputContext:
|
|
207
|
+
jwksEndpoint: zod0.ZodOptional<zod0.ZodString>;
|
|
208
|
+
discoveryEndpoint: zod0.ZodOptional<zod0.ZodString>;
|
|
209
|
+
skipDiscovery: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
210
|
+
scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
211
|
+
pkce: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodBoolean>>;
|
|
212
|
+
mapping: zod0.ZodOptional<zod0.ZodObject<{
|
|
213
|
+
id: zod0.ZodString;
|
|
214
|
+
email: zod0.ZodString;
|
|
215
|
+
emailVerified: zod0.ZodOptional<zod0.ZodString>;
|
|
216
|
+
name: zod0.ZodString;
|
|
217
|
+
image: zod0.ZodOptional<zod0.ZodString>;
|
|
218
|
+
extraFields: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
219
|
+
}, better_auth0.$strip>>;
|
|
220
|
+
}, better_auth0.$strip>>;
|
|
221
|
+
samlConfig: zod0.ZodOptional<zod0.ZodObject<{
|
|
222
|
+
entryPoint: zod0.ZodString;
|
|
223
|
+
cert: zod0.ZodString;
|
|
224
|
+
callbackUrl: zod0.ZodString;
|
|
225
|
+
audience: zod0.ZodOptional<zod0.ZodString>;
|
|
226
|
+
idpMetadata: zod0.ZodOptional<zod0.ZodObject<{
|
|
227
|
+
metadata: zod0.ZodOptional<zod0.ZodString>;
|
|
228
|
+
entityID: zod0.ZodOptional<zod0.ZodString>;
|
|
229
|
+
cert: zod0.ZodOptional<zod0.ZodString>;
|
|
230
|
+
privateKey: zod0.ZodOptional<zod0.ZodString>;
|
|
231
|
+
privateKeyPass: zod0.ZodOptional<zod0.ZodString>;
|
|
232
|
+
isAssertionEncrypted: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
233
|
+
encPrivateKey: zod0.ZodOptional<zod0.ZodString>;
|
|
234
|
+
encPrivateKeyPass: zod0.ZodOptional<zod0.ZodString>;
|
|
235
|
+
singleSignOnService: zod0.ZodOptional<zod0.ZodArray<zod0.ZodObject<{
|
|
236
|
+
Binding: zod0.ZodString;
|
|
237
|
+
Location: zod0.ZodString;
|
|
238
|
+
}, better_auth0.$strip>>>;
|
|
239
|
+
}, better_auth0.$strip>>;
|
|
240
|
+
spMetadata: zod0.ZodObject<{
|
|
241
|
+
metadata: zod0.ZodOptional<zod0.ZodString>;
|
|
242
|
+
entityID: zod0.ZodOptional<zod0.ZodString>;
|
|
243
|
+
binding: zod0.ZodOptional<zod0.ZodString>;
|
|
244
|
+
privateKey: zod0.ZodOptional<zod0.ZodString>;
|
|
245
|
+
privateKeyPass: zod0.ZodOptional<zod0.ZodString>;
|
|
246
|
+
isAssertionEncrypted: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
247
|
+
encPrivateKey: zod0.ZodOptional<zod0.ZodString>;
|
|
248
|
+
encPrivateKeyPass: zod0.ZodOptional<zod0.ZodString>;
|
|
249
|
+
}, better_auth0.$strip>;
|
|
250
|
+
wantAssertionsSigned: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
251
|
+
signatureAlgorithm: zod0.ZodOptional<zod0.ZodString>;
|
|
252
|
+
digestAlgorithm: zod0.ZodOptional<zod0.ZodString>;
|
|
253
|
+
identifierFormat: zod0.ZodOptional<zod0.ZodString>;
|
|
254
|
+
privateKey: zod0.ZodOptional<zod0.ZodString>;
|
|
255
|
+
decryptionPvk: zod0.ZodOptional<zod0.ZodString>;
|
|
256
|
+
additionalParams: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
257
|
+
mapping: zod0.ZodOptional<zod0.ZodObject<{
|
|
258
|
+
id: zod0.ZodString;
|
|
259
|
+
email: zod0.ZodString;
|
|
260
|
+
emailVerified: zod0.ZodOptional<zod0.ZodString>;
|
|
261
|
+
name: zod0.ZodString;
|
|
262
|
+
firstName: zod0.ZodOptional<zod0.ZodString>;
|
|
263
|
+
lastName: zod0.ZodOptional<zod0.ZodString>;
|
|
264
|
+
extraFields: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
265
|
+
}, better_auth0.$strip>>;
|
|
266
|
+
}, better_auth0.$strip>>;
|
|
267
|
+
organizationId: zod0.ZodOptional<zod0.ZodString>;
|
|
268
|
+
overrideUserInfo: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodBoolean>>;
|
|
269
|
+
}, better_auth0.$strip>;
|
|
270
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
271
271
|
session: {
|
|
272
272
|
session: Record<string, any> & {
|
|
273
273
|
id: string;
|
|
@@ -453,35 +453,35 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
453
453
|
};
|
|
454
454
|
}, {
|
|
455
455
|
redirectURI: string;
|
|
456
|
-
oidcConfig:
|
|
457
|
-
samlConfig:
|
|
456
|
+
oidcConfig: _better_auth_sso0.OIDCConfig | null;
|
|
457
|
+
samlConfig: _better_auth_sso0.SAMLConfig | null;
|
|
458
458
|
} & Omit<{
|
|
459
459
|
issuer: string;
|
|
460
|
-
oidcConfig?:
|
|
461
|
-
samlConfig?:
|
|
460
|
+
oidcConfig?: _better_auth_sso0.OIDCConfig | undefined;
|
|
461
|
+
samlConfig?: _better_auth_sso0.SAMLConfig | undefined;
|
|
462
462
|
userId: string;
|
|
463
463
|
providerId: string;
|
|
464
464
|
organizationId?: string | undefined;
|
|
465
465
|
domain: string;
|
|
466
466
|
}, "oidcConfig" | "samlConfig">>;
|
|
467
|
-
signInSSO: ReturnType<(options?:
|
|
467
|
+
signInSSO: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sign-in/sso", {
|
|
468
468
|
method: "POST";
|
|
469
|
-
body:
|
|
470
|
-
email:
|
|
471
|
-
organizationSlug:
|
|
472
|
-
providerId:
|
|
473
|
-
domain:
|
|
474
|
-
callbackURL:
|
|
475
|
-
errorCallbackURL:
|
|
476
|
-
newUserCallbackURL:
|
|
477
|
-
scopes:
|
|
478
|
-
loginHint:
|
|
479
|
-
requestSignUp:
|
|
480
|
-
providerType:
|
|
469
|
+
body: zod0.ZodObject<{
|
|
470
|
+
email: zod0.ZodOptional<zod0.ZodString>;
|
|
471
|
+
organizationSlug: zod0.ZodOptional<zod0.ZodString>;
|
|
472
|
+
providerId: zod0.ZodOptional<zod0.ZodString>;
|
|
473
|
+
domain: zod0.ZodOptional<zod0.ZodString>;
|
|
474
|
+
callbackURL: zod0.ZodString;
|
|
475
|
+
errorCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
476
|
+
newUserCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
477
|
+
scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
478
|
+
loginHint: zod0.ZodOptional<zod0.ZodString>;
|
|
479
|
+
requestSignUp: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
480
|
+
providerType: zod0.ZodOptional<zod0.ZodEnum<{
|
|
481
481
|
saml: "saml";
|
|
482
482
|
oidc: "oidc";
|
|
483
483
|
}>>;
|
|
484
|
-
},
|
|
484
|
+
}, better_auth0.$strip>;
|
|
485
485
|
metadata: {
|
|
486
486
|
openapi: {
|
|
487
487
|
operationId: string;
|
|
@@ -558,14 +558,14 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
558
558
|
url: string;
|
|
559
559
|
redirect: boolean;
|
|
560
560
|
}>>;
|
|
561
|
-
callbackSSO: ReturnType<(options?:
|
|
561
|
+
callbackSSO: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/callback/:providerId", {
|
|
562
562
|
method: "GET";
|
|
563
|
-
query:
|
|
564
|
-
code:
|
|
565
|
-
state:
|
|
566
|
-
error:
|
|
567
|
-
error_description:
|
|
568
|
-
},
|
|
563
|
+
query: zod0.ZodObject<{
|
|
564
|
+
code: zod0.ZodOptional<zod0.ZodString>;
|
|
565
|
+
state: zod0.ZodString;
|
|
566
|
+
error: zod0.ZodOptional<zod0.ZodString>;
|
|
567
|
+
error_description: zod0.ZodOptional<zod0.ZodString>;
|
|
568
|
+
}, better_auth0.$strip>;
|
|
569
569
|
allowedMediaTypes: string[];
|
|
570
570
|
metadata: {
|
|
571
571
|
openapi: {
|
|
@@ -581,12 +581,12 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
581
581
|
scope: "server";
|
|
582
582
|
};
|
|
583
583
|
}, never>>;
|
|
584
|
-
callbackSSOSAML: ReturnType<(options?:
|
|
584
|
+
callbackSSOSAML: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/saml2/callback/:providerId", {
|
|
585
585
|
method: "POST";
|
|
586
|
-
body:
|
|
587
|
-
SAMLResponse:
|
|
588
|
-
RelayState:
|
|
589
|
-
},
|
|
586
|
+
body: zod0.ZodObject<{
|
|
587
|
+
SAMLResponse: zod0.ZodString;
|
|
588
|
+
RelayState: zod0.ZodOptional<zod0.ZodString>;
|
|
589
|
+
}, better_auth0.$strip>;
|
|
590
590
|
metadata: {
|
|
591
591
|
allowedMediaTypes: string[];
|
|
592
592
|
openapi: {
|
|
@@ -608,15 +608,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
608
608
|
scope: "server";
|
|
609
609
|
};
|
|
610
610
|
}, never>>;
|
|
611
|
-
acsEndpoint: ReturnType<(options?:
|
|
611
|
+
acsEndpoint: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/saml2/sp/acs/:providerId", {
|
|
612
612
|
method: "POST";
|
|
613
|
-
params:
|
|
614
|
-
providerId:
|
|
615
|
-
},
|
|
616
|
-
body:
|
|
617
|
-
SAMLResponse:
|
|
618
|
-
RelayState:
|
|
619
|
-
},
|
|
613
|
+
params: zod0.ZodObject<{
|
|
614
|
+
providerId: zod0.ZodOptional<zod0.ZodString>;
|
|
615
|
+
}, better_auth0.$strip>;
|
|
616
|
+
body: zod0.ZodObject<{
|
|
617
|
+
SAMLResponse: zod0.ZodString;
|
|
618
|
+
RelayState: zod0.ZodOptional<zod0.ZodString>;
|
|
619
|
+
}, better_auth0.$strip>;
|
|
620
620
|
metadata: {
|
|
621
621
|
allowedMediaTypes: string[];
|
|
622
622
|
openapi: {
|
|
@@ -633,11 +633,11 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
633
633
|
};
|
|
634
634
|
}, never>>;
|
|
635
635
|
} & {
|
|
636
|
-
requestDomainVerification: ReturnType<(options:
|
|
636
|
+
requestDomainVerification: ReturnType<(options: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/request-domain-verification", {
|
|
637
637
|
method: "POST";
|
|
638
|
-
body:
|
|
639
|
-
providerId:
|
|
640
|
-
},
|
|
638
|
+
body: zod0.ZodObject<{
|
|
639
|
+
providerId: zod0.ZodString;
|
|
640
|
+
}, better_auth0.$strip>;
|
|
641
641
|
metadata: {
|
|
642
642
|
openapi: {
|
|
643
643
|
summary: string;
|
|
@@ -655,7 +655,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
655
655
|
};
|
|
656
656
|
};
|
|
657
657
|
};
|
|
658
|
-
use: ((inputContext:
|
|
658
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
659
659
|
session: {
|
|
660
660
|
session: Record<string, any> & {
|
|
661
661
|
id: string;
|
|
@@ -681,11 +681,11 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
681
681
|
}, {
|
|
682
682
|
domainVerificationToken: string;
|
|
683
683
|
}>>;
|
|
684
|
-
verifyDomain: ReturnType<(options:
|
|
684
|
+
verifyDomain: ReturnType<(options: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/verify-domain", {
|
|
685
685
|
method: "POST";
|
|
686
|
-
body:
|
|
687
|
-
providerId:
|
|
688
|
-
},
|
|
686
|
+
body: zod0.ZodObject<{
|
|
687
|
+
providerId: zod0.ZodString;
|
|
688
|
+
}, better_auth0.$strip>;
|
|
689
689
|
metadata: {
|
|
690
690
|
openapi: {
|
|
691
691
|
summary: string;
|
|
@@ -706,7 +706,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
706
706
|
};
|
|
707
707
|
};
|
|
708
708
|
};
|
|
709
|
-
use: ((inputContext:
|
|
709
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
710
710
|
session: {
|
|
711
711
|
session: Record<string, any> & {
|
|
712
712
|
id: string;
|
|
@@ -732,7 +732,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
732
732
|
}, void>>;
|
|
733
733
|
};
|
|
734
734
|
schema: any;
|
|
735
|
-
options:
|
|
735
|
+
options: _better_auth_sso0.SSOOptions & {
|
|
736
736
|
domainVerification?: {
|
|
737
737
|
enabled: true;
|
|
738
738
|
};
|
|
@@ -743,14 +743,14 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
743
743
|
productionURL: string;
|
|
744
744
|
}>;
|
|
745
745
|
endpoints: {
|
|
746
|
-
oAuthProxy:
|
|
746
|
+
oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
|
|
747
747
|
method: "GET";
|
|
748
748
|
operationId: string;
|
|
749
|
-
query:
|
|
750
|
-
callbackURL:
|
|
751
|
-
cookies:
|
|
752
|
-
},
|
|
753
|
-
use: ((inputContext:
|
|
749
|
+
query: zod0.ZodObject<{
|
|
750
|
+
callbackURL: zod0.ZodString;
|
|
751
|
+
cookies: zod0.ZodString;
|
|
752
|
+
}, better_auth0.$strip>;
|
|
753
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>)[];
|
|
754
754
|
metadata: {
|
|
755
755
|
openapi: {
|
|
756
756
|
operationId: string;
|
|
@@ -780,40 +780,40 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
780
780
|
};
|
|
781
781
|
hooks: {
|
|
782
782
|
before: {
|
|
783
|
-
matcher(context:
|
|
784
|
-
handler: (inputContext:
|
|
783
|
+
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
784
|
+
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
785
785
|
}[];
|
|
786
786
|
after: {
|
|
787
|
-
matcher(context:
|
|
788
|
-
handler: (inputContext:
|
|
787
|
+
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
788
|
+
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
789
789
|
}[];
|
|
790
790
|
};
|
|
791
791
|
}, {
|
|
792
792
|
id: "organization";
|
|
793
|
-
endpoints:
|
|
793
|
+
endpoints: better_auth_plugins0.OrganizationEndpoints<{
|
|
794
794
|
allowUserToCreateOrganization: true;
|
|
795
|
-
ac:
|
|
795
|
+
ac: better_auth_plugins0.AccessControl;
|
|
796
796
|
roles: {
|
|
797
797
|
member: {
|
|
798
|
-
authorize<K_1 extends "organization" | "
|
|
799
|
-
actions:
|
|
798
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
799
|
+
actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
800
800
|
connector: "OR" | "AND";
|
|
801
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
802
|
-
statements:
|
|
801
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
802
|
+
statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
803
803
|
};
|
|
804
804
|
admin: {
|
|
805
|
-
authorize<K_1 extends "organization" | "
|
|
806
|
-
actions:
|
|
805
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
806
|
+
actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
807
807
|
connector: "OR" | "AND";
|
|
808
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
809
|
-
statements:
|
|
808
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
809
|
+
statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
810
810
|
};
|
|
811
811
|
owner: {
|
|
812
|
-
authorize<K_1 extends "organization" | "
|
|
813
|
-
actions:
|
|
812
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
813
|
+
actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
814
814
|
connector: "OR" | "AND";
|
|
815
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
816
|
-
statements:
|
|
815
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
816
|
+
statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
817
817
|
};
|
|
818
818
|
};
|
|
819
819
|
membershipLimit: number;
|
|
@@ -823,10 +823,10 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
823
823
|
id: string;
|
|
824
824
|
role: string;
|
|
825
825
|
email: string;
|
|
826
|
-
organization:
|
|
827
|
-
invitation:
|
|
828
|
-
inviter:
|
|
829
|
-
user:
|
|
826
|
+
organization: better_auth_plugins0.Organization;
|
|
827
|
+
invitation: better_auth_plugins0.Invitation;
|
|
828
|
+
inviter: better_auth_plugins0.Member & {
|
|
829
|
+
user: better_auth0.User;
|
|
830
830
|
};
|
|
831
831
|
}): Promise<void>;
|
|
832
832
|
organizationHooks: {
|
|
@@ -835,28 +835,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
835
835
|
user,
|
|
836
836
|
organization: org
|
|
837
837
|
}: {
|
|
838
|
-
invitation:
|
|
839
|
-
member:
|
|
840
|
-
user:
|
|
841
|
-
organization:
|
|
838
|
+
invitation: better_auth_plugins0.Invitation & Record<string, any>;
|
|
839
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
840
|
+
user: better_auth0.User & Record<string, any>;
|
|
841
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
842
842
|
}) => Promise<void>;
|
|
843
843
|
afterUpdateMemberRole: ({
|
|
844
844
|
member,
|
|
845
845
|
organization: org,
|
|
846
846
|
previousRole
|
|
847
847
|
}: {
|
|
848
|
-
member:
|
|
848
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
849
849
|
previousRole: string;
|
|
850
|
-
user:
|
|
851
|
-
organization:
|
|
850
|
+
user: better_auth0.User & Record<string, any>;
|
|
851
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
852
852
|
}) => Promise<void>;
|
|
853
853
|
afterRemoveMember: ({
|
|
854
854
|
member,
|
|
855
855
|
organization: org
|
|
856
856
|
}: {
|
|
857
|
-
member:
|
|
858
|
-
user:
|
|
859
|
-
organization:
|
|
857
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
858
|
+
user: better_auth0.User & Record<string, any>;
|
|
859
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
860
860
|
}) => Promise<void>;
|
|
861
861
|
};
|
|
862
862
|
}>;
|
|
@@ -987,8 +987,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
987
987
|
id: string;
|
|
988
988
|
organizationId: string;
|
|
989
989
|
email: string;
|
|
990
|
-
role: "
|
|
991
|
-
status:
|
|
990
|
+
role: "owner" | "admin" | "member";
|
|
991
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
992
992
|
inviterId: string;
|
|
993
993
|
expiresAt: Date;
|
|
994
994
|
createdAt: Date;
|
|
@@ -996,7 +996,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
996
996
|
Member: {
|
|
997
997
|
id: string;
|
|
998
998
|
organizationId: string;
|
|
999
|
-
role: "
|
|
999
|
+
role: "owner" | "admin" | "member";
|
|
1000
1000
|
createdAt: Date;
|
|
1001
1001
|
userId: string;
|
|
1002
1002
|
user: {
|
|
@@ -1012,7 +1012,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1012
1012
|
members: {
|
|
1013
1013
|
id: string;
|
|
1014
1014
|
organizationId: string;
|
|
1015
|
-
role: "
|
|
1015
|
+
role: "owner" | "admin" | "member";
|
|
1016
1016
|
createdAt: Date;
|
|
1017
1017
|
userId: string;
|
|
1018
1018
|
user: {
|
|
@@ -1026,8 +1026,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1026
1026
|
id: string;
|
|
1027
1027
|
organizationId: string;
|
|
1028
1028
|
email: string;
|
|
1029
|
-
role: "
|
|
1030
|
-
status:
|
|
1029
|
+
role: "owner" | "admin" | "member";
|
|
1030
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
1031
1031
|
inviterId: string;
|
|
1032
1032
|
expiresAt: Date;
|
|
1033
1033
|
createdAt: Date;
|
|
@@ -1101,28 +1101,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1101
1101
|
};
|
|
1102
1102
|
options: NoInfer<{
|
|
1103
1103
|
allowUserToCreateOrganization: true;
|
|
1104
|
-
ac:
|
|
1104
|
+
ac: better_auth_plugins0.AccessControl;
|
|
1105
1105
|
roles: {
|
|
1106
1106
|
member: {
|
|
1107
|
-
authorize<K_1 extends "organization" | "
|
|
1108
|
-
actions:
|
|
1107
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
1108
|
+
actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
1109
1109
|
connector: "OR" | "AND";
|
|
1110
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1111
|
-
statements:
|
|
1110
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1111
|
+
statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
1112
1112
|
};
|
|
1113
1113
|
admin: {
|
|
1114
|
-
authorize<K_1 extends "organization" | "
|
|
1115
|
-
actions:
|
|
1114
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
1115
|
+
actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
1116
1116
|
connector: "OR" | "AND";
|
|
1117
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1118
|
-
statements:
|
|
1117
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1118
|
+
statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
1119
1119
|
};
|
|
1120
1120
|
owner: {
|
|
1121
|
-
authorize<K_1 extends "organization" | "
|
|
1122
|
-
actions:
|
|
1121
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
1122
|
+
actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
1123
1123
|
connector: "OR" | "AND";
|
|
1124
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1125
|
-
statements:
|
|
1124
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1125
|
+
statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
1126
1126
|
};
|
|
1127
1127
|
};
|
|
1128
1128
|
membershipLimit: number;
|
|
@@ -1132,10 +1132,10 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1132
1132
|
id: string;
|
|
1133
1133
|
role: string;
|
|
1134
1134
|
email: string;
|
|
1135
|
-
organization:
|
|
1136
|
-
invitation:
|
|
1137
|
-
inviter:
|
|
1138
|
-
user:
|
|
1135
|
+
organization: better_auth_plugins0.Organization;
|
|
1136
|
+
invitation: better_auth_plugins0.Invitation;
|
|
1137
|
+
inviter: better_auth_plugins0.Member & {
|
|
1138
|
+
user: better_auth0.User;
|
|
1139
1139
|
};
|
|
1140
1140
|
}): Promise<void>;
|
|
1141
1141
|
organizationHooks: {
|
|
@@ -1144,28 +1144,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1144
1144
|
user,
|
|
1145
1145
|
organization: org
|
|
1146
1146
|
}: {
|
|
1147
|
-
invitation:
|
|
1148
|
-
member:
|
|
1149
|
-
user:
|
|
1150
|
-
organization:
|
|
1147
|
+
invitation: better_auth_plugins0.Invitation & Record<string, any>;
|
|
1148
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
1149
|
+
user: better_auth0.User & Record<string, any>;
|
|
1150
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
1151
1151
|
}) => Promise<void>;
|
|
1152
1152
|
afterUpdateMemberRole: ({
|
|
1153
1153
|
member,
|
|
1154
1154
|
organization: org,
|
|
1155
1155
|
previousRole
|
|
1156
1156
|
}: {
|
|
1157
|
-
member:
|
|
1157
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
1158
1158
|
previousRole: string;
|
|
1159
|
-
user:
|
|
1160
|
-
organization:
|
|
1159
|
+
user: better_auth0.User & Record<string, any>;
|
|
1160
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
1161
1161
|
}) => Promise<void>;
|
|
1162
1162
|
afterRemoveMember: ({
|
|
1163
1163
|
member,
|
|
1164
1164
|
organization: org
|
|
1165
1165
|
}: {
|
|
1166
|
-
member:
|
|
1167
|
-
user:
|
|
1168
|
-
organization:
|
|
1166
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
1167
|
+
user: better_auth0.User & Record<string, any>;
|
|
1168
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
1169
1169
|
}) => Promise<void>;
|
|
1170
1170
|
};
|
|
1171
1171
|
}>;
|
|
@@ -1214,19 +1214,19 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1214
1214
|
};
|
|
1215
1215
|
};
|
|
1216
1216
|
endpoints: {
|
|
1217
|
-
deviceCode:
|
|
1217
|
+
deviceCode: better_auth0.StrictEndpoint<"/device/code", {
|
|
1218
1218
|
method: "POST";
|
|
1219
|
-
body:
|
|
1220
|
-
client_id:
|
|
1221
|
-
scope:
|
|
1222
|
-
},
|
|
1223
|
-
error:
|
|
1224
|
-
error:
|
|
1219
|
+
body: zod0.ZodObject<{
|
|
1220
|
+
client_id: zod0.ZodString;
|
|
1221
|
+
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
1222
|
+
}, better_auth0.$strip>;
|
|
1223
|
+
error: zod0.ZodObject<{
|
|
1224
|
+
error: zod0.ZodEnum<{
|
|
1225
1225
|
invalid_request: "invalid_request";
|
|
1226
1226
|
invalid_client: "invalid_client";
|
|
1227
1227
|
}>;
|
|
1228
|
-
error_description:
|
|
1229
|
-
},
|
|
1228
|
+
error_description: zod0.ZodString;
|
|
1229
|
+
}, better_auth0.$strip>;
|
|
1230
1230
|
metadata: {
|
|
1231
1231
|
openapi: {
|
|
1232
1232
|
description: string;
|
|
@@ -1299,15 +1299,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1299
1299
|
expires_in: number;
|
|
1300
1300
|
interval: number;
|
|
1301
1301
|
}>;
|
|
1302
|
-
deviceToken:
|
|
1302
|
+
deviceToken: better_auth0.StrictEndpoint<"/device/token", {
|
|
1303
1303
|
method: "POST";
|
|
1304
|
-
body:
|
|
1305
|
-
grant_type:
|
|
1306
|
-
device_code:
|
|
1307
|
-
client_id:
|
|
1308
|
-
},
|
|
1309
|
-
error:
|
|
1310
|
-
error:
|
|
1304
|
+
body: zod0.ZodObject<{
|
|
1305
|
+
grant_type: zod0.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
|
|
1306
|
+
device_code: zod0.ZodString;
|
|
1307
|
+
client_id: zod0.ZodString;
|
|
1308
|
+
}, better_auth0.$strip>;
|
|
1309
|
+
error: zod0.ZodObject<{
|
|
1310
|
+
error: zod0.ZodEnum<{
|
|
1311
1311
|
invalid_request: "invalid_request";
|
|
1312
1312
|
authorization_pending: "authorization_pending";
|
|
1313
1313
|
slow_down: "slow_down";
|
|
@@ -1315,8 +1315,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1315
1315
|
access_denied: "access_denied";
|
|
1316
1316
|
invalid_grant: "invalid_grant";
|
|
1317
1317
|
}>;
|
|
1318
|
-
error_description:
|
|
1319
|
-
},
|
|
1318
|
+
error_description: zod0.ZodString;
|
|
1319
|
+
}, better_auth0.$strip>;
|
|
1320
1320
|
metadata: {
|
|
1321
1321
|
openapi: {
|
|
1322
1322
|
description: string;
|
|
@@ -1367,17 +1367,17 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1367
1367
|
expires_in: number;
|
|
1368
1368
|
scope: string;
|
|
1369
1369
|
}>;
|
|
1370
|
-
deviceVerify:
|
|
1370
|
+
deviceVerify: better_auth0.StrictEndpoint<"/device", {
|
|
1371
1371
|
method: "GET";
|
|
1372
|
-
query:
|
|
1373
|
-
user_code:
|
|
1374
|
-
},
|
|
1375
|
-
error:
|
|
1376
|
-
error:
|
|
1372
|
+
query: zod0.ZodObject<{
|
|
1373
|
+
user_code: zod0.ZodString;
|
|
1374
|
+
}, better_auth0.$strip>;
|
|
1375
|
+
error: zod0.ZodObject<{
|
|
1376
|
+
error: zod0.ZodEnum<{
|
|
1377
1377
|
invalid_request: "invalid_request";
|
|
1378
1378
|
}>;
|
|
1379
|
-
error_description:
|
|
1380
|
-
},
|
|
1379
|
+
error_description: zod0.ZodString;
|
|
1380
|
+
}, better_auth0.$strip>;
|
|
1381
1381
|
metadata: {
|
|
1382
1382
|
openapi: {
|
|
1383
1383
|
description: string;
|
|
@@ -1410,19 +1410,19 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1410
1410
|
user_code: string;
|
|
1411
1411
|
status: string;
|
|
1412
1412
|
}>;
|
|
1413
|
-
deviceApprove:
|
|
1413
|
+
deviceApprove: better_auth0.StrictEndpoint<"/device/approve", {
|
|
1414
1414
|
method: "POST";
|
|
1415
|
-
body:
|
|
1416
|
-
userCode:
|
|
1417
|
-
},
|
|
1418
|
-
error:
|
|
1419
|
-
error:
|
|
1415
|
+
body: zod0.ZodObject<{
|
|
1416
|
+
userCode: zod0.ZodString;
|
|
1417
|
+
}, better_auth0.$strip>;
|
|
1418
|
+
error: zod0.ZodObject<{
|
|
1419
|
+
error: zod0.ZodEnum<{
|
|
1420
1420
|
invalid_request: "invalid_request";
|
|
1421
1421
|
expired_token: "expired_token";
|
|
1422
1422
|
device_code_already_processed: "device_code_already_processed";
|
|
1423
1423
|
}>;
|
|
1424
|
-
error_description:
|
|
1425
|
-
},
|
|
1424
|
+
error_description: zod0.ZodString;
|
|
1425
|
+
}, better_auth0.$strip>;
|
|
1426
1426
|
requireHeaders: true;
|
|
1427
1427
|
metadata: {
|
|
1428
1428
|
openapi: {
|
|
@@ -1449,18 +1449,18 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1449
1449
|
}, {
|
|
1450
1450
|
success: boolean;
|
|
1451
1451
|
}>;
|
|
1452
|
-
deviceDeny:
|
|
1452
|
+
deviceDeny: better_auth0.StrictEndpoint<"/device/deny", {
|
|
1453
1453
|
method: "POST";
|
|
1454
|
-
body:
|
|
1455
|
-
userCode:
|
|
1456
|
-
},
|
|
1457
|
-
error:
|
|
1458
|
-
error:
|
|
1454
|
+
body: zod0.ZodObject<{
|
|
1455
|
+
userCode: zod0.ZodString;
|
|
1456
|
+
}, better_auth0.$strip>;
|
|
1457
|
+
error: zod0.ZodObject<{
|
|
1458
|
+
error: zod0.ZodEnum<{
|
|
1459
1459
|
invalid_request: "invalid_request";
|
|
1460
1460
|
expired_token: "expired_token";
|
|
1461
1461
|
}>;
|
|
1462
|
-
error_description:
|
|
1463
|
-
},
|
|
1462
|
+
error_description: zod0.ZodString;
|
|
1463
|
+
}, better_auth0.$strip>;
|
|
1464
1464
|
metadata: {
|
|
1465
1465
|
openapi: {
|
|
1466
1466
|
description: string;
|
|
@@ -1502,8 +1502,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1502
1502
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1503
1503
|
};
|
|
1504
1504
|
options: Partial<{
|
|
1505
|
-
expiresIn:
|
|
1506
|
-
interval:
|
|
1505
|
+
expiresIn: better_auth_plugins0.TimeString;
|
|
1506
|
+
interval: better_auth_plugins0.TimeString;
|
|
1507
1507
|
deviceCodeLength: number;
|
|
1508
1508
|
userCodeLength: number;
|
|
1509
1509
|
schema: {
|
|
@@ -1536,6 +1536,6 @@ declare function createAgentsApp(config?: {
|
|
|
1536
1536
|
auth?: UserAuthConfig;
|
|
1537
1537
|
sandboxConfig?: SandboxConfig;
|
|
1538
1538
|
skipInitialization?: boolean;
|
|
1539
|
-
}): hono0.Hono<
|
|
1539
|
+
}): hono0.Hono<hono_types1.BlankEnv, hono_types1.BlankSchema, "/">;
|
|
1540
1540
|
//#endregion
|
|
1541
1541
|
export { type SSOProviderConfig, type UserAuthConfig, createAgentsApp, createAgentsAuth, createAgentsHono, createAuth0Provider, createOIDCProvider, initializeDefaultUser };
|