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