@inkeep/agents-api 0.47.3 → 0.47.5
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 +19 -19
- package/dist/.well-known/workflow/v1/step.cjs +49 -3
- package/dist/createApp.js +1 -1
- 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/availableAgents.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/invitations.d.ts +2 -2
- package/dist/domains/manage/routes/mcp.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/triggers.js +110 -1
- package/dist/domains/manage/routes/users.d.ts +2 -2
- package/dist/domains/mcp/routes/mcp.d.ts +2 -2
- package/dist/domains/run/agents/Agent.js +1 -1
- package/dist/domains/run/agents/generateTaskHandler.js +1 -1
- package/dist/domains/run/agents/relationTools.d.ts +2 -2
- package/dist/domains/run/agents/relationTools.js +1 -1
- package/dist/domains/run/constants/execution-limits/index.js +5 -1
- package/dist/domains/run/handlers/executionHandler.js +6 -6
- package/dist/domains/run/routes/chat.js +4 -4
- package/dist/domains/run/routes/chatDataStream.js +4 -4
- package/dist/domains/run/routes/mcp.js +2 -2
- package/dist/domains/run/services/TriggerService.d.ts +16 -2
- package/dist/domains/run/services/TriggerService.js +2 -2
- package/dist/domains/run/utils/model-context-utils.js +4 -2
- package/dist/domains/run/utils/token-estimator.d.ts +2 -2
- package/dist/factory.d.ts +267 -267
- package/dist/index.d.ts +266 -266
- 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/tenantAccess.d.ts +2 -2
- package/dist/middleware/tracing.d.ts +3 -3
- package/package.json +5 -5
package/dist/factory.d.ts
CHANGED
|
@@ -3,19 +3,19 @@ import "./types/index.js";
|
|
|
3
3
|
import { createAgentsHono } from "./createApp.js";
|
|
4
4
|
import { createAuth0Provider, createOIDCProvider } from "./ssoHelpers.js";
|
|
5
5
|
import { CredentialStore, ServerConfig } from "@inkeep/agents-core";
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
6
|
+
import * as hono0 from "hono";
|
|
7
|
+
import * as zod0 from "zod";
|
|
8
8
|
import { SSOProviderConfig, UserAuthConfig } from "@inkeep/agents-core/auth";
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
9
|
+
import * as hono_types1 from "hono/types";
|
|
10
|
+
import * as better_auth0 from "better-auth";
|
|
11
|
+
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
12
|
+
import * as _better_auth_sso0 from "@better-auth/sso";
|
|
13
13
|
|
|
14
14
|
//#region src/factory.d.ts
|
|
15
|
-
declare function createAgentsAuth(userAuthConfig?: UserAuthConfig):
|
|
15
|
+
declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth0.Auth<{
|
|
16
16
|
baseURL: string;
|
|
17
17
|
secret: string;
|
|
18
|
-
database: (options:
|
|
18
|
+
database: (options: better_auth0.BetterAuthOptions) => better_auth0.DBAdapter<better_auth0.BetterAuthOptions>;
|
|
19
19
|
emailAndPassword: {
|
|
20
20
|
enabled: true;
|
|
21
21
|
minPasswordLength: number;
|
|
@@ -28,7 +28,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
28
28
|
url,
|
|
29
29
|
token
|
|
30
30
|
}: {
|
|
31
|
-
user:
|
|
31
|
+
user: better_auth0.User;
|
|
32
32
|
url: string;
|
|
33
33
|
token: string;
|
|
34
34
|
}) => Promise<void>;
|
|
@@ -80,7 +80,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
80
80
|
clientKey?: string | undefined;
|
|
81
81
|
disableIdTokenSignIn?: boolean | undefined;
|
|
82
82
|
verifyIdToken?: ((token: string, nonce?: string) => Promise<boolean>) | undefined;
|
|
83
|
-
getUserInfo?: ((token:
|
|
83
|
+
getUserInfo?: ((token: better_auth0.OAuth2Tokens) => Promise<{
|
|
84
84
|
user: {
|
|
85
85
|
id: string;
|
|
86
86
|
name?: string;
|
|
@@ -91,8 +91,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
91
91
|
};
|
|
92
92
|
data: any;
|
|
93
93
|
} | null>) | undefined;
|
|
94
|
-
refreshAccessToken?: ((refreshToken: string) => Promise<
|
|
95
|
-
mapProfileToUser?: ((profile:
|
|
94
|
+
refreshAccessToken?: ((refreshToken: string) => Promise<better_auth0.OAuth2Tokens>) | undefined;
|
|
95
|
+
mapProfileToUser?: ((profile: better_auth0.GoogleProfile) => {
|
|
96
96
|
id?: string;
|
|
97
97
|
name?: string;
|
|
98
98
|
email?: string | null;
|
|
@@ -139,15 +139,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
139
139
|
cookies?: {
|
|
140
140
|
[key: string]: {
|
|
141
141
|
name?: string;
|
|
142
|
-
attributes?:
|
|
142
|
+
attributes?: better_auth0.CookieOptions;
|
|
143
143
|
};
|
|
144
144
|
} | undefined;
|
|
145
|
-
defaultCookieAttributes:
|
|
145
|
+
defaultCookieAttributes: better_auth0.CookieOptions;
|
|
146
146
|
cookiePrefix?: string | undefined;
|
|
147
147
|
database?: {
|
|
148
148
|
defaultFindManyLimit?: number;
|
|
149
149
|
useNumberId?: boolean;
|
|
150
|
-
generateId?:
|
|
150
|
+
generateId?: better_auth0.GenerateIdFn | false | "serial" | "uuid";
|
|
151
151
|
} | undefined;
|
|
152
152
|
trustedProxyHeaders?: boolean | undefined;
|
|
153
153
|
backgroundTasks?: {
|
|
@@ -159,31 +159,31 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
159
159
|
id: "bearer";
|
|
160
160
|
hooks: {
|
|
161
161
|
before: {
|
|
162
|
-
matcher(context:
|
|
163
|
-
handler: (inputContext:
|
|
162
|
+
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
163
|
+
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
164
164
|
context: {
|
|
165
165
|
headers: Headers;
|
|
166
166
|
};
|
|
167
167
|
} | undefined>;
|
|
168
168
|
}[];
|
|
169
169
|
after: {
|
|
170
|
-
matcher(context:
|
|
171
|
-
handler: (inputContext:
|
|
170
|
+
matcher(context: better_auth0.HookEndpointContext): true;
|
|
171
|
+
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
172
172
|
}[];
|
|
173
173
|
};
|
|
174
|
-
options:
|
|
174
|
+
options: better_auth_plugins0.BearerOptions | undefined;
|
|
175
175
|
}, {
|
|
176
176
|
id: "sso";
|
|
177
177
|
endpoints: {
|
|
178
|
-
spMetadata: ReturnType<() =>
|
|
178
|
+
spMetadata: ReturnType<() => better_auth0.StrictEndpoint<"/sso/saml2/sp/metadata", {
|
|
179
179
|
method: "GET";
|
|
180
|
-
query:
|
|
181
|
-
providerId:
|
|
182
|
-
format:
|
|
180
|
+
query: zod0.ZodObject<{
|
|
181
|
+
providerId: zod0.ZodString;
|
|
182
|
+
format: zod0.ZodDefault<zod0.ZodEnum<{
|
|
183
183
|
xml: "xml";
|
|
184
184
|
json: "json";
|
|
185
185
|
}>>;
|
|
186
|
-
},
|
|
186
|
+
}, better_auth0.$strip>;
|
|
187
187
|
metadata: {
|
|
188
188
|
openapi: {
|
|
189
189
|
operationId: string;
|
|
@@ -197,86 +197,86 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
197
197
|
};
|
|
198
198
|
};
|
|
199
199
|
}, Response>>;
|
|
200
|
-
registerSSOProvider:
|
|
200
|
+
registerSSOProvider: better_auth0.StrictEndpoint<"/sso/register", {
|
|
201
201
|
method: "POST";
|
|
202
|
-
body:
|
|
203
|
-
providerId:
|
|
204
|
-
issuer:
|
|
205
|
-
domain:
|
|
206
|
-
oidcConfig:
|
|
207
|
-
clientId:
|
|
208
|
-
clientSecret:
|
|
209
|
-
authorizationEndpoint:
|
|
210
|
-
tokenEndpoint:
|
|
211
|
-
userInfoEndpoint:
|
|
212
|
-
tokenEndpointAuthentication:
|
|
202
|
+
body: zod0.ZodObject<{
|
|
203
|
+
providerId: zod0.ZodString;
|
|
204
|
+
issuer: zod0.ZodString;
|
|
205
|
+
domain: zod0.ZodString;
|
|
206
|
+
oidcConfig: zod0.ZodOptional<zod0.ZodObject<{
|
|
207
|
+
clientId: zod0.ZodString;
|
|
208
|
+
clientSecret: zod0.ZodString;
|
|
209
|
+
authorizationEndpoint: zod0.ZodOptional<zod0.ZodString>;
|
|
210
|
+
tokenEndpoint: zod0.ZodOptional<zod0.ZodString>;
|
|
211
|
+
userInfoEndpoint: zod0.ZodOptional<zod0.ZodString>;
|
|
212
|
+
tokenEndpointAuthentication: zod0.ZodOptional<zod0.ZodEnum<{
|
|
213
213
|
client_secret_post: "client_secret_post";
|
|
214
214
|
client_secret_basic: "client_secret_basic";
|
|
215
215
|
}>>;
|
|
216
|
-
jwksEndpoint:
|
|
217
|
-
discoveryEndpoint:
|
|
218
|
-
skipDiscovery:
|
|
219
|
-
scopes:
|
|
220
|
-
pkce:
|
|
221
|
-
mapping:
|
|
222
|
-
id:
|
|
223
|
-
email:
|
|
224
|
-
emailVerified:
|
|
225
|
-
name:
|
|
226
|
-
image:
|
|
227
|
-
extraFields:
|
|
228
|
-
},
|
|
229
|
-
},
|
|
230
|
-
samlConfig:
|
|
231
|
-
entryPoint:
|
|
232
|
-
cert:
|
|
233
|
-
callbackUrl:
|
|
234
|
-
audience:
|
|
235
|
-
idpMetadata:
|
|
236
|
-
metadata:
|
|
237
|
-
entityID:
|
|
238
|
-
cert:
|
|
239
|
-
privateKey:
|
|
240
|
-
privateKeyPass:
|
|
241
|
-
isAssertionEncrypted:
|
|
242
|
-
encPrivateKey:
|
|
243
|
-
encPrivateKeyPass:
|
|
244
|
-
singleSignOnService:
|
|
245
|
-
Binding:
|
|
246
|
-
Location:
|
|
247
|
-
},
|
|
248
|
-
},
|
|
249
|
-
spMetadata:
|
|
250
|
-
metadata:
|
|
251
|
-
entityID:
|
|
252
|
-
binding:
|
|
253
|
-
privateKey:
|
|
254
|
-
privateKeyPass:
|
|
255
|
-
isAssertionEncrypted:
|
|
256
|
-
encPrivateKey:
|
|
257
|
-
encPrivateKeyPass:
|
|
258
|
-
},
|
|
259
|
-
wantAssertionsSigned:
|
|
260
|
-
signatureAlgorithm:
|
|
261
|
-
digestAlgorithm:
|
|
262
|
-
identifierFormat:
|
|
263
|
-
privateKey:
|
|
264
|
-
decryptionPvk:
|
|
265
|
-
additionalParams:
|
|
266
|
-
mapping:
|
|
267
|
-
id:
|
|
268
|
-
email:
|
|
269
|
-
emailVerified:
|
|
270
|
-
name:
|
|
271
|
-
firstName:
|
|
272
|
-
lastName:
|
|
273
|
-
extraFields:
|
|
274
|
-
},
|
|
275
|
-
},
|
|
276
|
-
organizationId:
|
|
277
|
-
overrideUserInfo:
|
|
278
|
-
},
|
|
279
|
-
use: ((inputContext:
|
|
216
|
+
jwksEndpoint: zod0.ZodOptional<zod0.ZodString>;
|
|
217
|
+
discoveryEndpoint: zod0.ZodOptional<zod0.ZodString>;
|
|
218
|
+
skipDiscovery: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
219
|
+
scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
220
|
+
pkce: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodBoolean>>;
|
|
221
|
+
mapping: zod0.ZodOptional<zod0.ZodObject<{
|
|
222
|
+
id: zod0.ZodString;
|
|
223
|
+
email: zod0.ZodString;
|
|
224
|
+
emailVerified: zod0.ZodOptional<zod0.ZodString>;
|
|
225
|
+
name: zod0.ZodString;
|
|
226
|
+
image: zod0.ZodOptional<zod0.ZodString>;
|
|
227
|
+
extraFields: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
228
|
+
}, better_auth0.$strip>>;
|
|
229
|
+
}, better_auth0.$strip>>;
|
|
230
|
+
samlConfig: zod0.ZodOptional<zod0.ZodObject<{
|
|
231
|
+
entryPoint: zod0.ZodString;
|
|
232
|
+
cert: zod0.ZodString;
|
|
233
|
+
callbackUrl: zod0.ZodString;
|
|
234
|
+
audience: zod0.ZodOptional<zod0.ZodString>;
|
|
235
|
+
idpMetadata: zod0.ZodOptional<zod0.ZodObject<{
|
|
236
|
+
metadata: zod0.ZodOptional<zod0.ZodString>;
|
|
237
|
+
entityID: zod0.ZodOptional<zod0.ZodString>;
|
|
238
|
+
cert: zod0.ZodOptional<zod0.ZodString>;
|
|
239
|
+
privateKey: zod0.ZodOptional<zod0.ZodString>;
|
|
240
|
+
privateKeyPass: zod0.ZodOptional<zod0.ZodString>;
|
|
241
|
+
isAssertionEncrypted: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
242
|
+
encPrivateKey: zod0.ZodOptional<zod0.ZodString>;
|
|
243
|
+
encPrivateKeyPass: zod0.ZodOptional<zod0.ZodString>;
|
|
244
|
+
singleSignOnService: zod0.ZodOptional<zod0.ZodArray<zod0.ZodObject<{
|
|
245
|
+
Binding: zod0.ZodString;
|
|
246
|
+
Location: zod0.ZodString;
|
|
247
|
+
}, better_auth0.$strip>>>;
|
|
248
|
+
}, better_auth0.$strip>>;
|
|
249
|
+
spMetadata: zod0.ZodObject<{
|
|
250
|
+
metadata: zod0.ZodOptional<zod0.ZodString>;
|
|
251
|
+
entityID: zod0.ZodOptional<zod0.ZodString>;
|
|
252
|
+
binding: zod0.ZodOptional<zod0.ZodString>;
|
|
253
|
+
privateKey: zod0.ZodOptional<zod0.ZodString>;
|
|
254
|
+
privateKeyPass: zod0.ZodOptional<zod0.ZodString>;
|
|
255
|
+
isAssertionEncrypted: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
256
|
+
encPrivateKey: zod0.ZodOptional<zod0.ZodString>;
|
|
257
|
+
encPrivateKeyPass: zod0.ZodOptional<zod0.ZodString>;
|
|
258
|
+
}, better_auth0.$strip>;
|
|
259
|
+
wantAssertionsSigned: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
260
|
+
signatureAlgorithm: zod0.ZodOptional<zod0.ZodString>;
|
|
261
|
+
digestAlgorithm: zod0.ZodOptional<zod0.ZodString>;
|
|
262
|
+
identifierFormat: zod0.ZodOptional<zod0.ZodString>;
|
|
263
|
+
privateKey: zod0.ZodOptional<zod0.ZodString>;
|
|
264
|
+
decryptionPvk: zod0.ZodOptional<zod0.ZodString>;
|
|
265
|
+
additionalParams: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
266
|
+
mapping: zod0.ZodOptional<zod0.ZodObject<{
|
|
267
|
+
id: zod0.ZodString;
|
|
268
|
+
email: zod0.ZodString;
|
|
269
|
+
emailVerified: zod0.ZodOptional<zod0.ZodString>;
|
|
270
|
+
name: zod0.ZodString;
|
|
271
|
+
firstName: zod0.ZodOptional<zod0.ZodString>;
|
|
272
|
+
lastName: zod0.ZodOptional<zod0.ZodString>;
|
|
273
|
+
extraFields: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
274
|
+
}, better_auth0.$strip>>;
|
|
275
|
+
}, better_auth0.$strip>>;
|
|
276
|
+
organizationId: zod0.ZodOptional<zod0.ZodString>;
|
|
277
|
+
overrideUserInfo: zod0.ZodOptional<zod0.ZodDefault<zod0.ZodBoolean>>;
|
|
278
|
+
}, better_auth0.$strip>;
|
|
279
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
280
280
|
session: {
|
|
281
281
|
session: Record<string, any> & {
|
|
282
282
|
id: string;
|
|
@@ -462,35 +462,35 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
462
462
|
};
|
|
463
463
|
}, {
|
|
464
464
|
redirectURI: string;
|
|
465
|
-
oidcConfig:
|
|
466
|
-
samlConfig:
|
|
465
|
+
oidcConfig: _better_auth_sso0.OIDCConfig | null;
|
|
466
|
+
samlConfig: _better_auth_sso0.SAMLConfig | null;
|
|
467
467
|
} & Omit<{
|
|
468
468
|
issuer: string;
|
|
469
|
-
oidcConfig?:
|
|
470
|
-
samlConfig?:
|
|
469
|
+
oidcConfig?: _better_auth_sso0.OIDCConfig | undefined;
|
|
470
|
+
samlConfig?: _better_auth_sso0.SAMLConfig | undefined;
|
|
471
471
|
userId: string;
|
|
472
472
|
providerId: string;
|
|
473
473
|
organizationId?: string | undefined;
|
|
474
474
|
domain: string;
|
|
475
475
|
}, "oidcConfig" | "samlConfig">>;
|
|
476
|
-
signInSSO: ReturnType<(options?:
|
|
476
|
+
signInSSO: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sign-in/sso", {
|
|
477
477
|
method: "POST";
|
|
478
|
-
body:
|
|
479
|
-
email:
|
|
480
|
-
organizationSlug:
|
|
481
|
-
providerId:
|
|
482
|
-
domain:
|
|
483
|
-
callbackURL:
|
|
484
|
-
errorCallbackURL:
|
|
485
|
-
newUserCallbackURL:
|
|
486
|
-
scopes:
|
|
487
|
-
loginHint:
|
|
488
|
-
requestSignUp:
|
|
489
|
-
providerType:
|
|
478
|
+
body: zod0.ZodObject<{
|
|
479
|
+
email: zod0.ZodOptional<zod0.ZodString>;
|
|
480
|
+
organizationSlug: zod0.ZodOptional<zod0.ZodString>;
|
|
481
|
+
providerId: zod0.ZodOptional<zod0.ZodString>;
|
|
482
|
+
domain: zod0.ZodOptional<zod0.ZodString>;
|
|
483
|
+
callbackURL: zod0.ZodString;
|
|
484
|
+
errorCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
485
|
+
newUserCallbackURL: zod0.ZodOptional<zod0.ZodString>;
|
|
486
|
+
scopes: zod0.ZodOptional<zod0.ZodArray<zod0.ZodString>>;
|
|
487
|
+
loginHint: zod0.ZodOptional<zod0.ZodString>;
|
|
488
|
+
requestSignUp: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
489
|
+
providerType: zod0.ZodOptional<zod0.ZodEnum<{
|
|
490
490
|
saml: "saml";
|
|
491
491
|
oidc: "oidc";
|
|
492
492
|
}>>;
|
|
493
|
-
},
|
|
493
|
+
}, better_auth0.$strip>;
|
|
494
494
|
metadata: {
|
|
495
495
|
openapi: {
|
|
496
496
|
operationId: string;
|
|
@@ -567,14 +567,14 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
567
567
|
url: string;
|
|
568
568
|
redirect: boolean;
|
|
569
569
|
}>>;
|
|
570
|
-
callbackSSO: ReturnType<(options?:
|
|
570
|
+
callbackSSO: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/callback/:providerId", {
|
|
571
571
|
method: "GET";
|
|
572
|
-
query:
|
|
573
|
-
code:
|
|
574
|
-
state:
|
|
575
|
-
error:
|
|
576
|
-
error_description:
|
|
577
|
-
},
|
|
572
|
+
query: zod0.ZodObject<{
|
|
573
|
+
code: zod0.ZodOptional<zod0.ZodString>;
|
|
574
|
+
state: zod0.ZodString;
|
|
575
|
+
error: zod0.ZodOptional<zod0.ZodString>;
|
|
576
|
+
error_description: zod0.ZodOptional<zod0.ZodString>;
|
|
577
|
+
}, better_auth0.$strip>;
|
|
578
578
|
allowedMediaTypes: string[];
|
|
579
579
|
metadata: {
|
|
580
580
|
openapi: {
|
|
@@ -590,12 +590,12 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
590
590
|
scope: "server";
|
|
591
591
|
};
|
|
592
592
|
}, never>>;
|
|
593
|
-
callbackSSOSAML: ReturnType<(options?:
|
|
593
|
+
callbackSSOSAML: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/saml2/callback/:providerId", {
|
|
594
594
|
method: "POST";
|
|
595
|
-
body:
|
|
596
|
-
SAMLResponse:
|
|
597
|
-
RelayState:
|
|
598
|
-
},
|
|
595
|
+
body: zod0.ZodObject<{
|
|
596
|
+
SAMLResponse: zod0.ZodString;
|
|
597
|
+
RelayState: zod0.ZodOptional<zod0.ZodString>;
|
|
598
|
+
}, better_auth0.$strip>;
|
|
599
599
|
metadata: {
|
|
600
600
|
allowedMediaTypes: string[];
|
|
601
601
|
openapi: {
|
|
@@ -617,15 +617,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
617
617
|
scope: "server";
|
|
618
618
|
};
|
|
619
619
|
}, never>>;
|
|
620
|
-
acsEndpoint: ReturnType<(options?:
|
|
620
|
+
acsEndpoint: ReturnType<(options?: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/saml2/sp/acs/:providerId", {
|
|
621
621
|
method: "POST";
|
|
622
|
-
params:
|
|
623
|
-
providerId:
|
|
624
|
-
},
|
|
625
|
-
body:
|
|
626
|
-
SAMLResponse:
|
|
627
|
-
RelayState:
|
|
628
|
-
},
|
|
622
|
+
params: zod0.ZodObject<{
|
|
623
|
+
providerId: zod0.ZodOptional<zod0.ZodString>;
|
|
624
|
+
}, better_auth0.$strip>;
|
|
625
|
+
body: zod0.ZodObject<{
|
|
626
|
+
SAMLResponse: zod0.ZodString;
|
|
627
|
+
RelayState: zod0.ZodOptional<zod0.ZodString>;
|
|
628
|
+
}, better_auth0.$strip>;
|
|
629
629
|
metadata: {
|
|
630
630
|
allowedMediaTypes: string[];
|
|
631
631
|
openapi: {
|
|
@@ -642,11 +642,11 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
642
642
|
};
|
|
643
643
|
}, never>>;
|
|
644
644
|
} & {
|
|
645
|
-
requestDomainVerification: ReturnType<(options:
|
|
645
|
+
requestDomainVerification: ReturnType<(options: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/request-domain-verification", {
|
|
646
646
|
method: "POST";
|
|
647
|
-
body:
|
|
648
|
-
providerId:
|
|
649
|
-
},
|
|
647
|
+
body: zod0.ZodObject<{
|
|
648
|
+
providerId: zod0.ZodString;
|
|
649
|
+
}, better_auth0.$strip>;
|
|
650
650
|
metadata: {
|
|
651
651
|
openapi: {
|
|
652
652
|
summary: string;
|
|
@@ -664,7 +664,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
664
664
|
};
|
|
665
665
|
};
|
|
666
666
|
};
|
|
667
|
-
use: ((inputContext:
|
|
667
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
668
668
|
session: {
|
|
669
669
|
session: Record<string, any> & {
|
|
670
670
|
id: string;
|
|
@@ -690,11 +690,11 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
690
690
|
}, {
|
|
691
691
|
domainVerificationToken: string;
|
|
692
692
|
}>>;
|
|
693
|
-
verifyDomain: ReturnType<(options:
|
|
693
|
+
verifyDomain: ReturnType<(options: _better_auth_sso0.SSOOptions) => better_auth0.StrictEndpoint<"/sso/verify-domain", {
|
|
694
694
|
method: "POST";
|
|
695
|
-
body:
|
|
696
|
-
providerId:
|
|
697
|
-
},
|
|
695
|
+
body: zod0.ZodObject<{
|
|
696
|
+
providerId: zod0.ZodString;
|
|
697
|
+
}, better_auth0.$strip>;
|
|
698
698
|
metadata: {
|
|
699
699
|
openapi: {
|
|
700
700
|
summary: string;
|
|
@@ -715,7 +715,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
715
715
|
};
|
|
716
716
|
};
|
|
717
717
|
};
|
|
718
|
-
use: ((inputContext:
|
|
718
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<{
|
|
719
719
|
session: {
|
|
720
720
|
session: Record<string, any> & {
|
|
721
721
|
id: string;
|
|
@@ -741,7 +741,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
741
741
|
}, void>>;
|
|
742
742
|
};
|
|
743
743
|
schema: any;
|
|
744
|
-
options:
|
|
744
|
+
options: _better_auth_sso0.SSOOptions & {
|
|
745
745
|
domainVerification?: {
|
|
746
746
|
enabled: true;
|
|
747
747
|
};
|
|
@@ -752,14 +752,14 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
752
752
|
productionURL: string;
|
|
753
753
|
}>;
|
|
754
754
|
endpoints: {
|
|
755
|
-
oAuthProxy:
|
|
755
|
+
oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
|
|
756
756
|
method: "GET";
|
|
757
757
|
operationId: string;
|
|
758
|
-
query:
|
|
759
|
-
callbackURL:
|
|
760
|
-
cookies:
|
|
761
|
-
},
|
|
762
|
-
use: ((inputContext:
|
|
758
|
+
query: zod0.ZodObject<{
|
|
759
|
+
callbackURL: zod0.ZodString;
|
|
760
|
+
cookies: zod0.ZodString;
|
|
761
|
+
}, better_auth0.$strip>;
|
|
762
|
+
use: ((inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>)[];
|
|
763
763
|
metadata: {
|
|
764
764
|
openapi: {
|
|
765
765
|
operationId: string;
|
|
@@ -789,40 +789,40 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
789
789
|
};
|
|
790
790
|
hooks: {
|
|
791
791
|
before: {
|
|
792
|
-
matcher(context:
|
|
793
|
-
handler: (inputContext:
|
|
792
|
+
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
793
|
+
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
794
794
|
}[];
|
|
795
795
|
after: {
|
|
796
|
-
matcher(context:
|
|
797
|
-
handler: (inputContext:
|
|
796
|
+
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
797
|
+
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
798
798
|
}[];
|
|
799
799
|
};
|
|
800
800
|
}, {
|
|
801
801
|
id: "organization";
|
|
802
|
-
endpoints:
|
|
802
|
+
endpoints: better_auth_plugins0.OrganizationEndpoints<{
|
|
803
803
|
allowUserToCreateOrganization: true;
|
|
804
|
-
ac:
|
|
804
|
+
ac: better_auth_plugins0.AccessControl;
|
|
805
805
|
roles: {
|
|
806
806
|
member: {
|
|
807
|
-
authorize<K_1 extends "
|
|
808
|
-
actions:
|
|
807
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
808
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
809
809
|
connector: "OR" | "AND";
|
|
810
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
811
|
-
statements:
|
|
810
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
811
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
812
812
|
};
|
|
813
813
|
admin: {
|
|
814
|
-
authorize<K_1 extends "
|
|
815
|
-
actions:
|
|
814
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
815
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
816
816
|
connector: "OR" | "AND";
|
|
817
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
818
|
-
statements:
|
|
817
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
818
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
819
819
|
};
|
|
820
820
|
owner: {
|
|
821
|
-
authorize<K_1 extends "
|
|
822
|
-
actions:
|
|
821
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
822
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
823
823
|
connector: "OR" | "AND";
|
|
824
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
825
|
-
statements:
|
|
824
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
825
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
826
826
|
};
|
|
827
827
|
};
|
|
828
828
|
creatorRole: "admin";
|
|
@@ -833,10 +833,10 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
833
833
|
id: string;
|
|
834
834
|
role: string;
|
|
835
835
|
email: string;
|
|
836
|
-
organization:
|
|
837
|
-
invitation:
|
|
838
|
-
inviter:
|
|
839
|
-
user:
|
|
836
|
+
organization: better_auth_plugins0.Organization;
|
|
837
|
+
invitation: better_auth_plugins0.Invitation;
|
|
838
|
+
inviter: better_auth_plugins0.Member & {
|
|
839
|
+
user: better_auth0.User;
|
|
840
840
|
};
|
|
841
841
|
}): Promise<void>;
|
|
842
842
|
schema: {
|
|
@@ -856,28 +856,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
856
856
|
user,
|
|
857
857
|
organization: org
|
|
858
858
|
}: {
|
|
859
|
-
invitation:
|
|
860
|
-
member:
|
|
861
|
-
user:
|
|
862
|
-
organization:
|
|
859
|
+
invitation: better_auth_plugins0.Invitation & Record<string, any>;
|
|
860
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
861
|
+
user: better_auth0.User & Record<string, any>;
|
|
862
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
863
863
|
}) => Promise<void>;
|
|
864
864
|
beforeUpdateMemberRole: ({
|
|
865
865
|
member,
|
|
866
866
|
organization: org,
|
|
867
867
|
newRole
|
|
868
868
|
}: {
|
|
869
|
-
member:
|
|
869
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
870
870
|
newRole: string;
|
|
871
|
-
user:
|
|
872
|
-
organization:
|
|
871
|
+
user: better_auth0.User & Record<string, any>;
|
|
872
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
873
873
|
}) => Promise<void>;
|
|
874
874
|
afterRemoveMember: ({
|
|
875
875
|
member,
|
|
876
876
|
organization: org
|
|
877
877
|
}: {
|
|
878
|
-
member:
|
|
879
|
-
user:
|
|
880
|
-
organization:
|
|
878
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
879
|
+
user: better_auth0.User & Record<string, any>;
|
|
880
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
881
881
|
}) => Promise<void>;
|
|
882
882
|
};
|
|
883
883
|
}>;
|
|
@@ -1008,8 +1008,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1008
1008
|
id: string;
|
|
1009
1009
|
organizationId: string;
|
|
1010
1010
|
email: string;
|
|
1011
|
-
role: "member" | "
|
|
1012
|
-
status:
|
|
1011
|
+
role: "member" | "owner" | "admin";
|
|
1012
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
1013
1013
|
inviterId: string;
|
|
1014
1014
|
expiresAt: Date;
|
|
1015
1015
|
createdAt: Date;
|
|
@@ -1018,7 +1018,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1018
1018
|
Member: {
|
|
1019
1019
|
id: string;
|
|
1020
1020
|
organizationId: string;
|
|
1021
|
-
role: "member" | "
|
|
1021
|
+
role: "member" | "owner" | "admin";
|
|
1022
1022
|
createdAt: Date;
|
|
1023
1023
|
userId: string;
|
|
1024
1024
|
user: {
|
|
@@ -1034,7 +1034,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1034
1034
|
members: {
|
|
1035
1035
|
id: string;
|
|
1036
1036
|
organizationId: string;
|
|
1037
|
-
role: "member" | "
|
|
1037
|
+
role: "member" | "owner" | "admin";
|
|
1038
1038
|
createdAt: Date;
|
|
1039
1039
|
userId: string;
|
|
1040
1040
|
user: {
|
|
@@ -1048,8 +1048,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1048
1048
|
id: string;
|
|
1049
1049
|
organizationId: string;
|
|
1050
1050
|
email: string;
|
|
1051
|
-
role: "member" | "
|
|
1052
|
-
status:
|
|
1051
|
+
role: "member" | "owner" | "admin";
|
|
1052
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
1053
1053
|
inviterId: string;
|
|
1054
1054
|
expiresAt: Date;
|
|
1055
1055
|
createdAt: Date;
|
|
@@ -1124,28 +1124,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1124
1124
|
};
|
|
1125
1125
|
options: NoInfer<{
|
|
1126
1126
|
allowUserToCreateOrganization: true;
|
|
1127
|
-
ac:
|
|
1127
|
+
ac: better_auth_plugins0.AccessControl;
|
|
1128
1128
|
roles: {
|
|
1129
1129
|
member: {
|
|
1130
|
-
authorize<K_1 extends "
|
|
1131
|
-
actions:
|
|
1130
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
1131
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
1132
1132
|
connector: "OR" | "AND";
|
|
1133
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1134
|
-
statements:
|
|
1133
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1134
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
1135
1135
|
};
|
|
1136
1136
|
admin: {
|
|
1137
|
-
authorize<K_1 extends "
|
|
1138
|
-
actions:
|
|
1137
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
1138
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
1139
1139
|
connector: "OR" | "AND";
|
|
1140
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1141
|
-
statements:
|
|
1140
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1141
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
1142
1142
|
};
|
|
1143
1143
|
owner: {
|
|
1144
|
-
authorize<K_1 extends "
|
|
1145
|
-
actions:
|
|
1144
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
1145
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
1146
1146
|
connector: "OR" | "AND";
|
|
1147
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1148
|
-
statements:
|
|
1147
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1148
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
1149
1149
|
};
|
|
1150
1150
|
};
|
|
1151
1151
|
creatorRole: "admin";
|
|
@@ -1156,10 +1156,10 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1156
1156
|
id: string;
|
|
1157
1157
|
role: string;
|
|
1158
1158
|
email: string;
|
|
1159
|
-
organization:
|
|
1160
|
-
invitation:
|
|
1161
|
-
inviter:
|
|
1162
|
-
user:
|
|
1159
|
+
organization: better_auth_plugins0.Organization;
|
|
1160
|
+
invitation: better_auth_plugins0.Invitation;
|
|
1161
|
+
inviter: better_auth_plugins0.Member & {
|
|
1162
|
+
user: better_auth0.User;
|
|
1163
1163
|
};
|
|
1164
1164
|
}): Promise<void>;
|
|
1165
1165
|
schema: {
|
|
@@ -1179,28 +1179,28 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1179
1179
|
user,
|
|
1180
1180
|
organization: org
|
|
1181
1181
|
}: {
|
|
1182
|
-
invitation:
|
|
1183
|
-
member:
|
|
1184
|
-
user:
|
|
1185
|
-
organization:
|
|
1182
|
+
invitation: better_auth_plugins0.Invitation & Record<string, any>;
|
|
1183
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
1184
|
+
user: better_auth0.User & Record<string, any>;
|
|
1185
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
1186
1186
|
}) => Promise<void>;
|
|
1187
1187
|
beforeUpdateMemberRole: ({
|
|
1188
1188
|
member,
|
|
1189
1189
|
organization: org,
|
|
1190
1190
|
newRole
|
|
1191
1191
|
}: {
|
|
1192
|
-
member:
|
|
1192
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
1193
1193
|
newRole: string;
|
|
1194
|
-
user:
|
|
1195
|
-
organization:
|
|
1194
|
+
user: better_auth0.User & Record<string, any>;
|
|
1195
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
1196
1196
|
}) => Promise<void>;
|
|
1197
1197
|
afterRemoveMember: ({
|
|
1198
1198
|
member,
|
|
1199
1199
|
organization: org
|
|
1200
1200
|
}: {
|
|
1201
|
-
member:
|
|
1202
|
-
user:
|
|
1203
|
-
organization:
|
|
1201
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
1202
|
+
user: better_auth0.User & Record<string, any>;
|
|
1203
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
1204
1204
|
}) => Promise<void>;
|
|
1205
1205
|
};
|
|
1206
1206
|
}>;
|
|
@@ -1249,19 +1249,19 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1249
1249
|
};
|
|
1250
1250
|
};
|
|
1251
1251
|
endpoints: {
|
|
1252
|
-
deviceCode:
|
|
1252
|
+
deviceCode: better_auth0.StrictEndpoint<"/device/code", {
|
|
1253
1253
|
method: "POST";
|
|
1254
|
-
body:
|
|
1255
|
-
client_id:
|
|
1256
|
-
scope:
|
|
1257
|
-
},
|
|
1258
|
-
error:
|
|
1259
|
-
error:
|
|
1254
|
+
body: zod0.ZodObject<{
|
|
1255
|
+
client_id: zod0.ZodString;
|
|
1256
|
+
scope: zod0.ZodOptional<zod0.ZodString>;
|
|
1257
|
+
}, better_auth0.$strip>;
|
|
1258
|
+
error: zod0.ZodObject<{
|
|
1259
|
+
error: zod0.ZodEnum<{
|
|
1260
1260
|
invalid_request: "invalid_request";
|
|
1261
1261
|
invalid_client: "invalid_client";
|
|
1262
1262
|
}>;
|
|
1263
|
-
error_description:
|
|
1264
|
-
},
|
|
1263
|
+
error_description: zod0.ZodString;
|
|
1264
|
+
}, better_auth0.$strip>;
|
|
1265
1265
|
metadata: {
|
|
1266
1266
|
openapi: {
|
|
1267
1267
|
description: string;
|
|
@@ -1334,15 +1334,15 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1334
1334
|
expires_in: number;
|
|
1335
1335
|
interval: number;
|
|
1336
1336
|
}>;
|
|
1337
|
-
deviceToken:
|
|
1337
|
+
deviceToken: better_auth0.StrictEndpoint<"/device/token", {
|
|
1338
1338
|
method: "POST";
|
|
1339
|
-
body:
|
|
1340
|
-
grant_type:
|
|
1341
|
-
device_code:
|
|
1342
|
-
client_id:
|
|
1343
|
-
},
|
|
1344
|
-
error:
|
|
1345
|
-
error:
|
|
1339
|
+
body: zod0.ZodObject<{
|
|
1340
|
+
grant_type: zod0.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
|
|
1341
|
+
device_code: zod0.ZodString;
|
|
1342
|
+
client_id: zod0.ZodString;
|
|
1343
|
+
}, better_auth0.$strip>;
|
|
1344
|
+
error: zod0.ZodObject<{
|
|
1345
|
+
error: zod0.ZodEnum<{
|
|
1346
1346
|
invalid_request: "invalid_request";
|
|
1347
1347
|
authorization_pending: "authorization_pending";
|
|
1348
1348
|
slow_down: "slow_down";
|
|
@@ -1350,8 +1350,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1350
1350
|
access_denied: "access_denied";
|
|
1351
1351
|
invalid_grant: "invalid_grant";
|
|
1352
1352
|
}>;
|
|
1353
|
-
error_description:
|
|
1354
|
-
},
|
|
1353
|
+
error_description: zod0.ZodString;
|
|
1354
|
+
}, better_auth0.$strip>;
|
|
1355
1355
|
metadata: {
|
|
1356
1356
|
openapi: {
|
|
1357
1357
|
description: string;
|
|
@@ -1402,17 +1402,17 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1402
1402
|
expires_in: number;
|
|
1403
1403
|
scope: string;
|
|
1404
1404
|
}>;
|
|
1405
|
-
deviceVerify:
|
|
1405
|
+
deviceVerify: better_auth0.StrictEndpoint<"/device", {
|
|
1406
1406
|
method: "GET";
|
|
1407
|
-
query:
|
|
1408
|
-
user_code:
|
|
1409
|
-
},
|
|
1410
|
-
error:
|
|
1411
|
-
error:
|
|
1407
|
+
query: zod0.ZodObject<{
|
|
1408
|
+
user_code: zod0.ZodString;
|
|
1409
|
+
}, better_auth0.$strip>;
|
|
1410
|
+
error: zod0.ZodObject<{
|
|
1411
|
+
error: zod0.ZodEnum<{
|
|
1412
1412
|
invalid_request: "invalid_request";
|
|
1413
1413
|
}>;
|
|
1414
|
-
error_description:
|
|
1415
|
-
},
|
|
1414
|
+
error_description: zod0.ZodString;
|
|
1415
|
+
}, better_auth0.$strip>;
|
|
1416
1416
|
metadata: {
|
|
1417
1417
|
openapi: {
|
|
1418
1418
|
description: string;
|
|
@@ -1445,19 +1445,19 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1445
1445
|
user_code: string;
|
|
1446
1446
|
status: string;
|
|
1447
1447
|
}>;
|
|
1448
|
-
deviceApprove:
|
|
1448
|
+
deviceApprove: better_auth0.StrictEndpoint<"/device/approve", {
|
|
1449
1449
|
method: "POST";
|
|
1450
|
-
body:
|
|
1451
|
-
userCode:
|
|
1452
|
-
},
|
|
1453
|
-
error:
|
|
1454
|
-
error:
|
|
1450
|
+
body: zod0.ZodObject<{
|
|
1451
|
+
userCode: zod0.ZodString;
|
|
1452
|
+
}, better_auth0.$strip>;
|
|
1453
|
+
error: zod0.ZodObject<{
|
|
1454
|
+
error: zod0.ZodEnum<{
|
|
1455
1455
|
invalid_request: "invalid_request";
|
|
1456
1456
|
expired_token: "expired_token";
|
|
1457
1457
|
device_code_already_processed: "device_code_already_processed";
|
|
1458
1458
|
}>;
|
|
1459
|
-
error_description:
|
|
1460
|
-
},
|
|
1459
|
+
error_description: zod0.ZodString;
|
|
1460
|
+
}, better_auth0.$strip>;
|
|
1461
1461
|
requireHeaders: true;
|
|
1462
1462
|
metadata: {
|
|
1463
1463
|
openapi: {
|
|
@@ -1484,18 +1484,18 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1484
1484
|
}, {
|
|
1485
1485
|
success: boolean;
|
|
1486
1486
|
}>;
|
|
1487
|
-
deviceDeny:
|
|
1487
|
+
deviceDeny: better_auth0.StrictEndpoint<"/device/deny", {
|
|
1488
1488
|
method: "POST";
|
|
1489
|
-
body:
|
|
1490
|
-
userCode:
|
|
1491
|
-
},
|
|
1492
|
-
error:
|
|
1493
|
-
error:
|
|
1489
|
+
body: zod0.ZodObject<{
|
|
1490
|
+
userCode: zod0.ZodString;
|
|
1491
|
+
}, better_auth0.$strip>;
|
|
1492
|
+
error: zod0.ZodObject<{
|
|
1493
|
+
error: zod0.ZodEnum<{
|
|
1494
1494
|
invalid_request: "invalid_request";
|
|
1495
1495
|
expired_token: "expired_token";
|
|
1496
1496
|
}>;
|
|
1497
|
-
error_description:
|
|
1498
|
-
},
|
|
1497
|
+
error_description: zod0.ZodString;
|
|
1498
|
+
}, better_auth0.$strip>;
|
|
1499
1499
|
metadata: {
|
|
1500
1500
|
openapi: {
|
|
1501
1501
|
description: string;
|
|
@@ -1537,8 +1537,8 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1537
1537
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1538
1538
|
};
|
|
1539
1539
|
options: Partial<{
|
|
1540
|
-
expiresIn:
|
|
1541
|
-
interval:
|
|
1540
|
+
expiresIn: better_auth_plugins0.TimeString;
|
|
1541
|
+
interval: better_auth_plugins0.TimeString;
|
|
1542
1542
|
deviceCodeLength: number;
|
|
1543
1543
|
userCodeLength: number;
|
|
1544
1544
|
schema: {
|
|
@@ -1570,6 +1570,6 @@ declare function createAgentsApp(config?: {
|
|
|
1570
1570
|
credentialStores?: CredentialStore[];
|
|
1571
1571
|
auth?: UserAuthConfig;
|
|
1572
1572
|
sandboxConfig?: SandboxConfig;
|
|
1573
|
-
}):
|
|
1573
|
+
}): hono0.Hono<hono_types1.BlankEnv, hono_types1.BlankSchema, "/">;
|
|
1574
1574
|
//#endregion
|
|
1575
1575
|
export { type SSOProviderConfig, type UserAuthConfig, createAgentsApp, createAgentsAuth, createAgentsHono, createAuth0Provider, createOIDCProvider };
|