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