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