@inkeep/agents-api 0.0.0-dev-20260224154211 → 0.0.0-dev-20260224170656
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 +11 -11
- 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/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/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 +3 -3
- 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 +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -5,17 +5,17 @@ import { NativeSandboxConfig, SandboxConfig, VercelSandboxConfig } from "./domai
|
|
|
5
5
|
import { createAuth0Provider, createOIDCProvider } from "./ssoHelpers.js";
|
|
6
6
|
import { SSOProviderConfig, UserAuthConfig, createAgentsApp } from "./factory.js";
|
|
7
7
|
import { Hono } from "hono";
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
8
|
+
import * as zod205 from "zod";
|
|
9
|
+
import * as hono_types9 from "hono/types";
|
|
10
|
+
import * as better_auth79 from "better-auth";
|
|
11
|
+
import * as better_auth_plugins69 from "better-auth/plugins";
|
|
12
|
+
import * as _better_auth_sso10 from "@better-auth/sso";
|
|
13
13
|
|
|
14
14
|
//#region src/index.d.ts
|
|
15
|
-
declare const auth:
|
|
15
|
+
declare const auth: better_auth79.Auth<{
|
|
16
16
|
baseURL: string;
|
|
17
17
|
secret: string;
|
|
18
|
-
database: (options:
|
|
18
|
+
database: (options: better_auth79.BetterAuthOptions) => better_auth79.DBAdapter<better_auth79.BetterAuthOptions>;
|
|
19
19
|
emailAndPassword: {
|
|
20
20
|
enabled: true;
|
|
21
21
|
minPasswordLength: number;
|
|
@@ -28,7 +28,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
28
28
|
url,
|
|
29
29
|
token
|
|
30
30
|
}: {
|
|
31
|
-
user:
|
|
31
|
+
user: better_auth79.User;
|
|
32
32
|
url: string;
|
|
33
33
|
token: string;
|
|
34
34
|
}) => Promise<void>;
|
|
@@ -80,7 +80,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
80
80
|
clientKey?: string | undefined;
|
|
81
81
|
disableIdTokenSignIn?: boolean | undefined;
|
|
82
82
|
verifyIdToken?: ((token: string, nonce?: string) => Promise<boolean>) | undefined;
|
|
83
|
-
getUserInfo?: ((token:
|
|
83
|
+
getUserInfo?: ((token: better_auth79.OAuth2Tokens) => Promise<{
|
|
84
84
|
user: {
|
|
85
85
|
id: string;
|
|
86
86
|
name?: string;
|
|
@@ -91,8 +91,8 @@ declare const auth: better_auth0.Auth<{
|
|
|
91
91
|
};
|
|
92
92
|
data: any;
|
|
93
93
|
} | null>) | undefined;
|
|
94
|
-
refreshAccessToken?: ((refreshToken: string) => Promise<
|
|
95
|
-
mapProfileToUser?: ((profile:
|
|
94
|
+
refreshAccessToken?: ((refreshToken: string) => Promise<better_auth79.OAuth2Tokens>) | undefined;
|
|
95
|
+
mapProfileToUser?: ((profile: better_auth79.GoogleProfile) => {
|
|
96
96
|
id?: string;
|
|
97
97
|
name?: string;
|
|
98
98
|
email?: string | null;
|
|
@@ -139,15 +139,15 @@ declare const auth: better_auth0.Auth<{
|
|
|
139
139
|
cookies?: {
|
|
140
140
|
[key: string]: {
|
|
141
141
|
name?: string;
|
|
142
|
-
attributes?:
|
|
142
|
+
attributes?: better_auth79.CookieOptions;
|
|
143
143
|
};
|
|
144
144
|
} | undefined;
|
|
145
|
-
defaultCookieAttributes:
|
|
145
|
+
defaultCookieAttributes: better_auth79.CookieOptions;
|
|
146
146
|
cookiePrefix?: string | undefined;
|
|
147
147
|
database?: {
|
|
148
148
|
defaultFindManyLimit?: number;
|
|
149
149
|
useNumberId?: boolean;
|
|
150
|
-
generateId?:
|
|
150
|
+
generateId?: better_auth79.GenerateIdFn | false | "serial" | "uuid";
|
|
151
151
|
} | undefined;
|
|
152
152
|
trustedProxyHeaders?: boolean | undefined;
|
|
153
153
|
backgroundTasks?: {
|
|
@@ -159,31 +159,31 @@ declare const auth: better_auth0.Auth<{
|
|
|
159
159
|
id: "bearer";
|
|
160
160
|
hooks: {
|
|
161
161
|
before: {
|
|
162
|
-
matcher(context:
|
|
163
|
-
handler: (inputContext:
|
|
162
|
+
matcher(context: better_auth79.HookEndpointContext): boolean;
|
|
163
|
+
handler: (inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<{
|
|
164
164
|
context: {
|
|
165
165
|
headers: Headers;
|
|
166
166
|
};
|
|
167
167
|
} | undefined>;
|
|
168
168
|
}[];
|
|
169
169
|
after: {
|
|
170
|
-
matcher(context:
|
|
171
|
-
handler: (inputContext:
|
|
170
|
+
matcher(context: better_auth79.HookEndpointContext): true;
|
|
171
|
+
handler: (inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<void>;
|
|
172
172
|
}[];
|
|
173
173
|
};
|
|
174
|
-
options:
|
|
174
|
+
options: better_auth_plugins69.BearerOptions | undefined;
|
|
175
175
|
}, {
|
|
176
176
|
id: "sso";
|
|
177
177
|
endpoints: {
|
|
178
|
-
spMetadata: ReturnType<() =>
|
|
178
|
+
spMetadata: ReturnType<() => better_auth79.StrictEndpoint<"/sso/saml2/sp/metadata", {
|
|
179
179
|
method: "GET";
|
|
180
|
-
query:
|
|
181
|
-
providerId:
|
|
182
|
-
format:
|
|
180
|
+
query: zod205.ZodObject<{
|
|
181
|
+
providerId: zod205.ZodString;
|
|
182
|
+
format: zod205.ZodDefault<zod205.ZodEnum<{
|
|
183
183
|
xml: "xml";
|
|
184
184
|
json: "json";
|
|
185
185
|
}>>;
|
|
186
|
-
},
|
|
186
|
+
}, better_auth79.$strip>;
|
|
187
187
|
metadata: {
|
|
188
188
|
openapi: {
|
|
189
189
|
operationId: string;
|
|
@@ -197,86 +197,86 @@ declare const auth: better_auth0.Auth<{
|
|
|
197
197
|
};
|
|
198
198
|
};
|
|
199
199
|
}, Response>>;
|
|
200
|
-
registerSSOProvider:
|
|
200
|
+
registerSSOProvider: better_auth79.StrictEndpoint<"/sso/register", {
|
|
201
201
|
method: "POST";
|
|
202
|
-
body:
|
|
203
|
-
providerId:
|
|
204
|
-
issuer:
|
|
205
|
-
domain:
|
|
206
|
-
oidcConfig:
|
|
207
|
-
clientId:
|
|
208
|
-
clientSecret:
|
|
209
|
-
authorizationEndpoint:
|
|
210
|
-
tokenEndpoint:
|
|
211
|
-
userInfoEndpoint:
|
|
212
|
-
tokenEndpointAuthentication:
|
|
202
|
+
body: zod205.ZodObject<{
|
|
203
|
+
providerId: zod205.ZodString;
|
|
204
|
+
issuer: zod205.ZodString;
|
|
205
|
+
domain: zod205.ZodString;
|
|
206
|
+
oidcConfig: zod205.ZodOptional<zod205.ZodObject<{
|
|
207
|
+
clientId: zod205.ZodString;
|
|
208
|
+
clientSecret: zod205.ZodString;
|
|
209
|
+
authorizationEndpoint: zod205.ZodOptional<zod205.ZodString>;
|
|
210
|
+
tokenEndpoint: zod205.ZodOptional<zod205.ZodString>;
|
|
211
|
+
userInfoEndpoint: zod205.ZodOptional<zod205.ZodString>;
|
|
212
|
+
tokenEndpointAuthentication: zod205.ZodOptional<zod205.ZodEnum<{
|
|
213
213
|
client_secret_post: "client_secret_post";
|
|
214
214
|
client_secret_basic: "client_secret_basic";
|
|
215
215
|
}>>;
|
|
216
|
-
jwksEndpoint:
|
|
217
|
-
discoveryEndpoint:
|
|
218
|
-
skipDiscovery:
|
|
219
|
-
scopes:
|
|
220
|
-
pkce:
|
|
221
|
-
mapping:
|
|
222
|
-
id:
|
|
223
|
-
email:
|
|
224
|
-
emailVerified:
|
|
225
|
-
name:
|
|
226
|
-
image:
|
|
227
|
-
extraFields:
|
|
228
|
-
},
|
|
229
|
-
},
|
|
230
|
-
samlConfig:
|
|
231
|
-
entryPoint:
|
|
232
|
-
cert:
|
|
233
|
-
callbackUrl:
|
|
234
|
-
audience:
|
|
235
|
-
idpMetadata:
|
|
236
|
-
metadata:
|
|
237
|
-
entityID:
|
|
238
|
-
cert:
|
|
239
|
-
privateKey:
|
|
240
|
-
privateKeyPass:
|
|
241
|
-
isAssertionEncrypted:
|
|
242
|
-
encPrivateKey:
|
|
243
|
-
encPrivateKeyPass:
|
|
244
|
-
singleSignOnService:
|
|
245
|
-
Binding:
|
|
246
|
-
Location:
|
|
247
|
-
},
|
|
248
|
-
},
|
|
249
|
-
spMetadata:
|
|
250
|
-
metadata:
|
|
251
|
-
entityID:
|
|
252
|
-
binding:
|
|
253
|
-
privateKey:
|
|
254
|
-
privateKeyPass:
|
|
255
|
-
isAssertionEncrypted:
|
|
256
|
-
encPrivateKey:
|
|
257
|
-
encPrivateKeyPass:
|
|
258
|
-
},
|
|
259
|
-
wantAssertionsSigned:
|
|
260
|
-
signatureAlgorithm:
|
|
261
|
-
digestAlgorithm:
|
|
262
|
-
identifierFormat:
|
|
263
|
-
privateKey:
|
|
264
|
-
decryptionPvk:
|
|
265
|
-
additionalParams:
|
|
266
|
-
mapping:
|
|
267
|
-
id:
|
|
268
|
-
email:
|
|
269
|
-
emailVerified:
|
|
270
|
-
name:
|
|
271
|
-
firstName:
|
|
272
|
-
lastName:
|
|
273
|
-
extraFields:
|
|
274
|
-
},
|
|
275
|
-
},
|
|
276
|
-
organizationId:
|
|
277
|
-
overrideUserInfo:
|
|
278
|
-
},
|
|
279
|
-
use: ((inputContext:
|
|
216
|
+
jwksEndpoint: zod205.ZodOptional<zod205.ZodString>;
|
|
217
|
+
discoveryEndpoint: zod205.ZodOptional<zod205.ZodString>;
|
|
218
|
+
skipDiscovery: zod205.ZodOptional<zod205.ZodBoolean>;
|
|
219
|
+
scopes: zod205.ZodOptional<zod205.ZodArray<zod205.ZodString>>;
|
|
220
|
+
pkce: zod205.ZodOptional<zod205.ZodDefault<zod205.ZodBoolean>>;
|
|
221
|
+
mapping: zod205.ZodOptional<zod205.ZodObject<{
|
|
222
|
+
id: zod205.ZodString;
|
|
223
|
+
email: zod205.ZodString;
|
|
224
|
+
emailVerified: zod205.ZodOptional<zod205.ZodString>;
|
|
225
|
+
name: zod205.ZodString;
|
|
226
|
+
image: zod205.ZodOptional<zod205.ZodString>;
|
|
227
|
+
extraFields: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
|
|
228
|
+
}, better_auth79.$strip>>;
|
|
229
|
+
}, better_auth79.$strip>>;
|
|
230
|
+
samlConfig: zod205.ZodOptional<zod205.ZodObject<{
|
|
231
|
+
entryPoint: zod205.ZodString;
|
|
232
|
+
cert: zod205.ZodString;
|
|
233
|
+
callbackUrl: zod205.ZodString;
|
|
234
|
+
audience: zod205.ZodOptional<zod205.ZodString>;
|
|
235
|
+
idpMetadata: zod205.ZodOptional<zod205.ZodObject<{
|
|
236
|
+
metadata: zod205.ZodOptional<zod205.ZodString>;
|
|
237
|
+
entityID: zod205.ZodOptional<zod205.ZodString>;
|
|
238
|
+
cert: zod205.ZodOptional<zod205.ZodString>;
|
|
239
|
+
privateKey: zod205.ZodOptional<zod205.ZodString>;
|
|
240
|
+
privateKeyPass: zod205.ZodOptional<zod205.ZodString>;
|
|
241
|
+
isAssertionEncrypted: zod205.ZodOptional<zod205.ZodBoolean>;
|
|
242
|
+
encPrivateKey: zod205.ZodOptional<zod205.ZodString>;
|
|
243
|
+
encPrivateKeyPass: zod205.ZodOptional<zod205.ZodString>;
|
|
244
|
+
singleSignOnService: zod205.ZodOptional<zod205.ZodArray<zod205.ZodObject<{
|
|
245
|
+
Binding: zod205.ZodString;
|
|
246
|
+
Location: zod205.ZodString;
|
|
247
|
+
}, better_auth79.$strip>>>;
|
|
248
|
+
}, better_auth79.$strip>>;
|
|
249
|
+
spMetadata: zod205.ZodObject<{
|
|
250
|
+
metadata: zod205.ZodOptional<zod205.ZodString>;
|
|
251
|
+
entityID: zod205.ZodOptional<zod205.ZodString>;
|
|
252
|
+
binding: zod205.ZodOptional<zod205.ZodString>;
|
|
253
|
+
privateKey: zod205.ZodOptional<zod205.ZodString>;
|
|
254
|
+
privateKeyPass: zod205.ZodOptional<zod205.ZodString>;
|
|
255
|
+
isAssertionEncrypted: zod205.ZodOptional<zod205.ZodBoolean>;
|
|
256
|
+
encPrivateKey: zod205.ZodOptional<zod205.ZodString>;
|
|
257
|
+
encPrivateKeyPass: zod205.ZodOptional<zod205.ZodString>;
|
|
258
|
+
}, better_auth79.$strip>;
|
|
259
|
+
wantAssertionsSigned: zod205.ZodOptional<zod205.ZodBoolean>;
|
|
260
|
+
signatureAlgorithm: zod205.ZodOptional<zod205.ZodString>;
|
|
261
|
+
digestAlgorithm: zod205.ZodOptional<zod205.ZodString>;
|
|
262
|
+
identifierFormat: zod205.ZodOptional<zod205.ZodString>;
|
|
263
|
+
privateKey: zod205.ZodOptional<zod205.ZodString>;
|
|
264
|
+
decryptionPvk: zod205.ZodOptional<zod205.ZodString>;
|
|
265
|
+
additionalParams: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
|
|
266
|
+
mapping: zod205.ZodOptional<zod205.ZodObject<{
|
|
267
|
+
id: zod205.ZodString;
|
|
268
|
+
email: zod205.ZodString;
|
|
269
|
+
emailVerified: zod205.ZodOptional<zod205.ZodString>;
|
|
270
|
+
name: zod205.ZodString;
|
|
271
|
+
firstName: zod205.ZodOptional<zod205.ZodString>;
|
|
272
|
+
lastName: zod205.ZodOptional<zod205.ZodString>;
|
|
273
|
+
extraFields: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
|
|
274
|
+
}, better_auth79.$strip>>;
|
|
275
|
+
}, better_auth79.$strip>>;
|
|
276
|
+
organizationId: zod205.ZodOptional<zod205.ZodString>;
|
|
277
|
+
overrideUserInfo: zod205.ZodOptional<zod205.ZodDefault<zod205.ZodBoolean>>;
|
|
278
|
+
}, better_auth79.$strip>;
|
|
279
|
+
use: ((inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<{
|
|
280
280
|
session: {
|
|
281
281
|
session: Record<string, any> & {
|
|
282
282
|
id: string;
|
|
@@ -462,35 +462,35 @@ declare const auth: better_auth0.Auth<{
|
|
|
462
462
|
};
|
|
463
463
|
}, {
|
|
464
464
|
redirectURI: string;
|
|
465
|
-
oidcConfig:
|
|
466
|
-
samlConfig:
|
|
465
|
+
oidcConfig: _better_auth_sso10.OIDCConfig | null;
|
|
466
|
+
samlConfig: _better_auth_sso10.SAMLConfig | null;
|
|
467
467
|
} & Omit<{
|
|
468
468
|
issuer: string;
|
|
469
|
-
oidcConfig?:
|
|
470
|
-
samlConfig?:
|
|
469
|
+
oidcConfig?: _better_auth_sso10.OIDCConfig | undefined;
|
|
470
|
+
samlConfig?: _better_auth_sso10.SAMLConfig | undefined;
|
|
471
471
|
userId: string;
|
|
472
472
|
providerId: string;
|
|
473
473
|
organizationId?: string | undefined;
|
|
474
474
|
domain: string;
|
|
475
475
|
}, "oidcConfig" | "samlConfig">>;
|
|
476
|
-
signInSSO: ReturnType<(options?:
|
|
476
|
+
signInSSO: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth79.StrictEndpoint<"/sign-in/sso", {
|
|
477
477
|
method: "POST";
|
|
478
|
-
body:
|
|
479
|
-
email:
|
|
480
|
-
organizationSlug:
|
|
481
|
-
providerId:
|
|
482
|
-
domain:
|
|
483
|
-
callbackURL:
|
|
484
|
-
errorCallbackURL:
|
|
485
|
-
newUserCallbackURL:
|
|
486
|
-
scopes:
|
|
487
|
-
loginHint:
|
|
488
|
-
requestSignUp:
|
|
489
|
-
providerType:
|
|
478
|
+
body: zod205.ZodObject<{
|
|
479
|
+
email: zod205.ZodOptional<zod205.ZodString>;
|
|
480
|
+
organizationSlug: zod205.ZodOptional<zod205.ZodString>;
|
|
481
|
+
providerId: zod205.ZodOptional<zod205.ZodString>;
|
|
482
|
+
domain: zod205.ZodOptional<zod205.ZodString>;
|
|
483
|
+
callbackURL: zod205.ZodString;
|
|
484
|
+
errorCallbackURL: zod205.ZodOptional<zod205.ZodString>;
|
|
485
|
+
newUserCallbackURL: zod205.ZodOptional<zod205.ZodString>;
|
|
486
|
+
scopes: zod205.ZodOptional<zod205.ZodArray<zod205.ZodString>>;
|
|
487
|
+
loginHint: zod205.ZodOptional<zod205.ZodString>;
|
|
488
|
+
requestSignUp: zod205.ZodOptional<zod205.ZodBoolean>;
|
|
489
|
+
providerType: zod205.ZodOptional<zod205.ZodEnum<{
|
|
490
490
|
saml: "saml";
|
|
491
491
|
oidc: "oidc";
|
|
492
492
|
}>>;
|
|
493
|
-
},
|
|
493
|
+
}, better_auth79.$strip>;
|
|
494
494
|
metadata: {
|
|
495
495
|
openapi: {
|
|
496
496
|
operationId: string;
|
|
@@ -567,14 +567,14 @@ declare const auth: better_auth0.Auth<{
|
|
|
567
567
|
url: string;
|
|
568
568
|
redirect: boolean;
|
|
569
569
|
}>>;
|
|
570
|
-
callbackSSO: ReturnType<(options?:
|
|
570
|
+
callbackSSO: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth79.StrictEndpoint<"/sso/callback/:providerId", {
|
|
571
571
|
method: "GET";
|
|
572
|
-
query:
|
|
573
|
-
code:
|
|
574
|
-
state:
|
|
575
|
-
error:
|
|
576
|
-
error_description:
|
|
577
|
-
},
|
|
572
|
+
query: zod205.ZodObject<{
|
|
573
|
+
code: zod205.ZodOptional<zod205.ZodString>;
|
|
574
|
+
state: zod205.ZodString;
|
|
575
|
+
error: zod205.ZodOptional<zod205.ZodString>;
|
|
576
|
+
error_description: zod205.ZodOptional<zod205.ZodString>;
|
|
577
|
+
}, better_auth79.$strip>;
|
|
578
578
|
allowedMediaTypes: string[];
|
|
579
579
|
metadata: {
|
|
580
580
|
openapi: {
|
|
@@ -590,12 +590,12 @@ declare const auth: better_auth0.Auth<{
|
|
|
590
590
|
scope: "server";
|
|
591
591
|
};
|
|
592
592
|
}, never>>;
|
|
593
|
-
callbackSSOSAML: ReturnType<(options?:
|
|
593
|
+
callbackSSOSAML: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth79.StrictEndpoint<"/sso/saml2/callback/:providerId", {
|
|
594
594
|
method: "POST";
|
|
595
|
-
body:
|
|
596
|
-
SAMLResponse:
|
|
597
|
-
RelayState:
|
|
598
|
-
},
|
|
595
|
+
body: zod205.ZodObject<{
|
|
596
|
+
SAMLResponse: zod205.ZodString;
|
|
597
|
+
RelayState: zod205.ZodOptional<zod205.ZodString>;
|
|
598
|
+
}, better_auth79.$strip>;
|
|
599
599
|
metadata: {
|
|
600
600
|
allowedMediaTypes: string[];
|
|
601
601
|
openapi: {
|
|
@@ -617,15 +617,15 @@ declare const auth: better_auth0.Auth<{
|
|
|
617
617
|
scope: "server";
|
|
618
618
|
};
|
|
619
619
|
}, never>>;
|
|
620
|
-
acsEndpoint: ReturnType<(options?:
|
|
620
|
+
acsEndpoint: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth79.StrictEndpoint<"/sso/saml2/sp/acs/:providerId", {
|
|
621
621
|
method: "POST";
|
|
622
|
-
params:
|
|
623
|
-
providerId:
|
|
624
|
-
},
|
|
625
|
-
body:
|
|
626
|
-
SAMLResponse:
|
|
627
|
-
RelayState:
|
|
628
|
-
},
|
|
622
|
+
params: zod205.ZodObject<{
|
|
623
|
+
providerId: zod205.ZodOptional<zod205.ZodString>;
|
|
624
|
+
}, better_auth79.$strip>;
|
|
625
|
+
body: zod205.ZodObject<{
|
|
626
|
+
SAMLResponse: zod205.ZodString;
|
|
627
|
+
RelayState: zod205.ZodOptional<zod205.ZodString>;
|
|
628
|
+
}, better_auth79.$strip>;
|
|
629
629
|
metadata: {
|
|
630
630
|
allowedMediaTypes: string[];
|
|
631
631
|
openapi: {
|
|
@@ -642,11 +642,11 @@ declare const auth: better_auth0.Auth<{
|
|
|
642
642
|
};
|
|
643
643
|
}, never>>;
|
|
644
644
|
} & {
|
|
645
|
-
requestDomainVerification: ReturnType<(options:
|
|
645
|
+
requestDomainVerification: ReturnType<(options: _better_auth_sso10.SSOOptions) => better_auth79.StrictEndpoint<"/sso/request-domain-verification", {
|
|
646
646
|
method: "POST";
|
|
647
|
-
body:
|
|
648
|
-
providerId:
|
|
649
|
-
},
|
|
647
|
+
body: zod205.ZodObject<{
|
|
648
|
+
providerId: zod205.ZodString;
|
|
649
|
+
}, better_auth79.$strip>;
|
|
650
650
|
metadata: {
|
|
651
651
|
openapi: {
|
|
652
652
|
summary: string;
|
|
@@ -664,7 +664,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
664
664
|
};
|
|
665
665
|
};
|
|
666
666
|
};
|
|
667
|
-
use: ((inputContext:
|
|
667
|
+
use: ((inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<{
|
|
668
668
|
session: {
|
|
669
669
|
session: Record<string, any> & {
|
|
670
670
|
id: string;
|
|
@@ -690,11 +690,11 @@ declare const auth: better_auth0.Auth<{
|
|
|
690
690
|
}, {
|
|
691
691
|
domainVerificationToken: string;
|
|
692
692
|
}>>;
|
|
693
|
-
verifyDomain: ReturnType<(options:
|
|
693
|
+
verifyDomain: ReturnType<(options: _better_auth_sso10.SSOOptions) => better_auth79.StrictEndpoint<"/sso/verify-domain", {
|
|
694
694
|
method: "POST";
|
|
695
|
-
body:
|
|
696
|
-
providerId:
|
|
697
|
-
},
|
|
695
|
+
body: zod205.ZodObject<{
|
|
696
|
+
providerId: zod205.ZodString;
|
|
697
|
+
}, better_auth79.$strip>;
|
|
698
698
|
metadata: {
|
|
699
699
|
openapi: {
|
|
700
700
|
summary: string;
|
|
@@ -715,7 +715,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
715
715
|
};
|
|
716
716
|
};
|
|
717
717
|
};
|
|
718
|
-
use: ((inputContext:
|
|
718
|
+
use: ((inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<{
|
|
719
719
|
session: {
|
|
720
720
|
session: Record<string, any> & {
|
|
721
721
|
id: string;
|
|
@@ -741,7 +741,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
741
741
|
}, void>>;
|
|
742
742
|
};
|
|
743
743
|
schema: any;
|
|
744
|
-
options:
|
|
744
|
+
options: _better_auth_sso10.SSOOptions & {
|
|
745
745
|
domainVerification?: {
|
|
746
746
|
enabled: true;
|
|
747
747
|
};
|
|
@@ -752,14 +752,14 @@ declare const auth: better_auth0.Auth<{
|
|
|
752
752
|
productionURL: string;
|
|
753
753
|
}>;
|
|
754
754
|
endpoints: {
|
|
755
|
-
oAuthProxy:
|
|
755
|
+
oAuthProxy: better_auth79.StrictEndpoint<"/oauth-proxy-callback", {
|
|
756
756
|
method: "GET";
|
|
757
757
|
operationId: string;
|
|
758
|
-
query:
|
|
759
|
-
callbackURL:
|
|
760
|
-
cookies:
|
|
761
|
-
},
|
|
762
|
-
use: ((inputContext:
|
|
758
|
+
query: zod205.ZodObject<{
|
|
759
|
+
callbackURL: zod205.ZodString;
|
|
760
|
+
cookies: zod205.ZodString;
|
|
761
|
+
}, better_auth79.$strip>;
|
|
762
|
+
use: ((inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<void>)[];
|
|
763
763
|
metadata: {
|
|
764
764
|
openapi: {
|
|
765
765
|
operationId: string;
|
|
@@ -789,40 +789,40 @@ declare const auth: better_auth0.Auth<{
|
|
|
789
789
|
};
|
|
790
790
|
hooks: {
|
|
791
791
|
before: {
|
|
792
|
-
matcher(context:
|
|
793
|
-
handler: (inputContext:
|
|
792
|
+
matcher(context: better_auth79.HookEndpointContext): boolean;
|
|
793
|
+
handler: (inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<void>;
|
|
794
794
|
}[];
|
|
795
795
|
after: {
|
|
796
|
-
matcher(context:
|
|
797
|
-
handler: (inputContext:
|
|
796
|
+
matcher(context: better_auth79.HookEndpointContext): boolean;
|
|
797
|
+
handler: (inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<void>;
|
|
798
798
|
}[];
|
|
799
799
|
};
|
|
800
800
|
}, {
|
|
801
801
|
id: "organization";
|
|
802
|
-
endpoints:
|
|
802
|
+
endpoints: better_auth_plugins69.OrganizationEndpoints<{
|
|
803
803
|
allowUserToCreateOrganization: true;
|
|
804
|
-
ac:
|
|
804
|
+
ac: better_auth_plugins69.AccessControl;
|
|
805
805
|
roles: {
|
|
806
806
|
member: {
|
|
807
|
-
authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?:
|
|
808
|
-
actions:
|
|
807
|
+
authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
|
|
808
|
+
actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
|
|
809
809
|
connector: "OR" | "AND";
|
|
810
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
811
|
-
statements:
|
|
810
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
811
|
+
statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
|
|
812
812
|
};
|
|
813
813
|
admin: {
|
|
814
|
-
authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?:
|
|
815
|
-
actions:
|
|
814
|
+
authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
|
|
815
|
+
actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
|
|
816
816
|
connector: "OR" | "AND";
|
|
817
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
818
|
-
statements:
|
|
817
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
818
|
+
statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
|
|
819
819
|
};
|
|
820
820
|
owner: {
|
|
821
|
-
authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?:
|
|
822
|
-
actions:
|
|
821
|
+
authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
|
|
822
|
+
actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
|
|
823
823
|
connector: "OR" | "AND";
|
|
824
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
825
|
-
statements:
|
|
824
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
825
|
+
statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
|
|
826
826
|
};
|
|
827
827
|
};
|
|
828
828
|
creatorRole: "admin";
|
|
@@ -833,10 +833,10 @@ declare const auth: better_auth0.Auth<{
|
|
|
833
833
|
id: string;
|
|
834
834
|
role: string;
|
|
835
835
|
email: string;
|
|
836
|
-
organization:
|
|
837
|
-
invitation:
|
|
838
|
-
inviter:
|
|
839
|
-
user:
|
|
836
|
+
organization: better_auth_plugins69.Organization;
|
|
837
|
+
invitation: better_auth_plugins69.Invitation;
|
|
838
|
+
inviter: better_auth_plugins69.Member & {
|
|
839
|
+
user: better_auth79.User;
|
|
840
840
|
};
|
|
841
841
|
}): Promise<void>;
|
|
842
842
|
schema: {
|
|
@@ -870,28 +870,28 @@ declare const auth: better_auth0.Auth<{
|
|
|
870
870
|
user,
|
|
871
871
|
organization: org
|
|
872
872
|
}: {
|
|
873
|
-
invitation:
|
|
874
|
-
member:
|
|
875
|
-
user:
|
|
876
|
-
organization:
|
|
873
|
+
invitation: better_auth_plugins69.Invitation & Record<string, any>;
|
|
874
|
+
member: better_auth_plugins69.Member & Record<string, any>;
|
|
875
|
+
user: better_auth79.User & Record<string, any>;
|
|
876
|
+
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
877
877
|
}) => Promise<void>;
|
|
878
878
|
beforeUpdateMemberRole: ({
|
|
879
879
|
member,
|
|
880
880
|
organization: org,
|
|
881
881
|
newRole
|
|
882
882
|
}: {
|
|
883
|
-
member:
|
|
883
|
+
member: better_auth_plugins69.Member & Record<string, any>;
|
|
884
884
|
newRole: string;
|
|
885
|
-
user:
|
|
886
|
-
organization:
|
|
885
|
+
user: better_auth79.User & Record<string, any>;
|
|
886
|
+
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
887
887
|
}) => Promise<void>;
|
|
888
888
|
beforeRemoveMember: ({
|
|
889
889
|
member,
|
|
890
890
|
organization: org
|
|
891
891
|
}: {
|
|
892
|
-
member:
|
|
893
|
-
user:
|
|
894
|
-
organization:
|
|
892
|
+
member: better_auth_plugins69.Member & Record<string, any>;
|
|
893
|
+
user: better_auth79.User & Record<string, any>;
|
|
894
|
+
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
895
895
|
}) => Promise<void>;
|
|
896
896
|
};
|
|
897
897
|
}>;
|
|
@@ -1025,7 +1025,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
1025
1025
|
organizationId: string;
|
|
1026
1026
|
email: string;
|
|
1027
1027
|
role: "member" | "owner" | "admin";
|
|
1028
|
-
status:
|
|
1028
|
+
status: better_auth_plugins69.InvitationStatus;
|
|
1029
1029
|
inviterId: string;
|
|
1030
1030
|
expiresAt: Date;
|
|
1031
1031
|
createdAt: Date;
|
|
@@ -1065,7 +1065,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
1065
1065
|
organizationId: string;
|
|
1066
1066
|
email: string;
|
|
1067
1067
|
role: "member" | "owner" | "admin";
|
|
1068
|
-
status:
|
|
1068
|
+
status: better_auth_plugins69.InvitationStatus;
|
|
1069
1069
|
inviterId: string;
|
|
1070
1070
|
expiresAt: Date;
|
|
1071
1071
|
createdAt: Date;
|
|
@@ -1142,28 +1142,28 @@ declare const auth: better_auth0.Auth<{
|
|
|
1142
1142
|
};
|
|
1143
1143
|
options: NoInfer<{
|
|
1144
1144
|
allowUserToCreateOrganization: true;
|
|
1145
|
-
ac:
|
|
1145
|
+
ac: better_auth_plugins69.AccessControl;
|
|
1146
1146
|
roles: {
|
|
1147
1147
|
member: {
|
|
1148
|
-
authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?:
|
|
1149
|
-
actions:
|
|
1148
|
+
authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
|
|
1149
|
+
actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
|
|
1150
1150
|
connector: "OR" | "AND";
|
|
1151
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1152
|
-
statements:
|
|
1151
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
1152
|
+
statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
|
|
1153
1153
|
};
|
|
1154
1154
|
admin: {
|
|
1155
|
-
authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?:
|
|
1156
|
-
actions:
|
|
1155
|
+
authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
|
|
1156
|
+
actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
|
|
1157
1157
|
connector: "OR" | "AND";
|
|
1158
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1159
|
-
statements:
|
|
1158
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
1159
|
+
statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
|
|
1160
1160
|
};
|
|
1161
1161
|
owner: {
|
|
1162
|
-
authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?:
|
|
1163
|
-
actions:
|
|
1162
|
+
authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
|
|
1163
|
+
actions: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
|
|
1164
1164
|
connector: "OR" | "AND";
|
|
1165
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1166
|
-
statements:
|
|
1165
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
1166
|
+
statements: better_auth_plugins69.Subset<"invitation" | "member" | "organization" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
|
|
1167
1167
|
};
|
|
1168
1168
|
};
|
|
1169
1169
|
creatorRole: "admin";
|
|
@@ -1174,10 +1174,10 @@ declare const auth: better_auth0.Auth<{
|
|
|
1174
1174
|
id: string;
|
|
1175
1175
|
role: string;
|
|
1176
1176
|
email: string;
|
|
1177
|
-
organization:
|
|
1178
|
-
invitation:
|
|
1179
|
-
inviter:
|
|
1180
|
-
user:
|
|
1177
|
+
organization: better_auth_plugins69.Organization;
|
|
1178
|
+
invitation: better_auth_plugins69.Invitation;
|
|
1179
|
+
inviter: better_auth_plugins69.Member & {
|
|
1180
|
+
user: better_auth79.User;
|
|
1181
1181
|
};
|
|
1182
1182
|
}): Promise<void>;
|
|
1183
1183
|
schema: {
|
|
@@ -1211,28 +1211,28 @@ declare const auth: better_auth0.Auth<{
|
|
|
1211
1211
|
user,
|
|
1212
1212
|
organization: org
|
|
1213
1213
|
}: {
|
|
1214
|
-
invitation:
|
|
1215
|
-
member:
|
|
1216
|
-
user:
|
|
1217
|
-
organization:
|
|
1214
|
+
invitation: better_auth_plugins69.Invitation & Record<string, any>;
|
|
1215
|
+
member: better_auth_plugins69.Member & Record<string, any>;
|
|
1216
|
+
user: better_auth79.User & Record<string, any>;
|
|
1217
|
+
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
1218
1218
|
}) => Promise<void>;
|
|
1219
1219
|
beforeUpdateMemberRole: ({
|
|
1220
1220
|
member,
|
|
1221
1221
|
organization: org,
|
|
1222
1222
|
newRole
|
|
1223
1223
|
}: {
|
|
1224
|
-
member:
|
|
1224
|
+
member: better_auth_plugins69.Member & Record<string, any>;
|
|
1225
1225
|
newRole: string;
|
|
1226
|
-
user:
|
|
1227
|
-
organization:
|
|
1226
|
+
user: better_auth79.User & Record<string, any>;
|
|
1227
|
+
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
1228
1228
|
}) => Promise<void>;
|
|
1229
1229
|
beforeRemoveMember: ({
|
|
1230
1230
|
member,
|
|
1231
1231
|
organization: org
|
|
1232
1232
|
}: {
|
|
1233
|
-
member:
|
|
1234
|
-
user:
|
|
1235
|
-
organization:
|
|
1233
|
+
member: better_auth_plugins69.Member & Record<string, any>;
|
|
1234
|
+
user: better_auth79.User & Record<string, any>;
|
|
1235
|
+
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
1236
1236
|
}) => Promise<void>;
|
|
1237
1237
|
};
|
|
1238
1238
|
}>;
|
|
@@ -1281,19 +1281,19 @@ declare const auth: better_auth0.Auth<{
|
|
|
1281
1281
|
};
|
|
1282
1282
|
};
|
|
1283
1283
|
endpoints: {
|
|
1284
|
-
deviceCode:
|
|
1284
|
+
deviceCode: better_auth79.StrictEndpoint<"/device/code", {
|
|
1285
1285
|
method: "POST";
|
|
1286
|
-
body:
|
|
1287
|
-
client_id:
|
|
1288
|
-
scope:
|
|
1289
|
-
},
|
|
1290
|
-
error:
|
|
1291
|
-
error:
|
|
1286
|
+
body: zod205.ZodObject<{
|
|
1287
|
+
client_id: zod205.ZodString;
|
|
1288
|
+
scope: zod205.ZodOptional<zod205.ZodString>;
|
|
1289
|
+
}, better_auth79.$strip>;
|
|
1290
|
+
error: zod205.ZodObject<{
|
|
1291
|
+
error: zod205.ZodEnum<{
|
|
1292
1292
|
invalid_request: "invalid_request";
|
|
1293
1293
|
invalid_client: "invalid_client";
|
|
1294
1294
|
}>;
|
|
1295
|
-
error_description:
|
|
1296
|
-
},
|
|
1295
|
+
error_description: zod205.ZodString;
|
|
1296
|
+
}, better_auth79.$strip>;
|
|
1297
1297
|
metadata: {
|
|
1298
1298
|
openapi: {
|
|
1299
1299
|
description: string;
|
|
@@ -1366,15 +1366,15 @@ declare const auth: better_auth0.Auth<{
|
|
|
1366
1366
|
expires_in: number;
|
|
1367
1367
|
interval: number;
|
|
1368
1368
|
}>;
|
|
1369
|
-
deviceToken:
|
|
1369
|
+
deviceToken: better_auth79.StrictEndpoint<"/device/token", {
|
|
1370
1370
|
method: "POST";
|
|
1371
|
-
body:
|
|
1372
|
-
grant_type:
|
|
1373
|
-
device_code:
|
|
1374
|
-
client_id:
|
|
1375
|
-
},
|
|
1376
|
-
error:
|
|
1377
|
-
error:
|
|
1371
|
+
body: zod205.ZodObject<{
|
|
1372
|
+
grant_type: zod205.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
|
|
1373
|
+
device_code: zod205.ZodString;
|
|
1374
|
+
client_id: zod205.ZodString;
|
|
1375
|
+
}, better_auth79.$strip>;
|
|
1376
|
+
error: zod205.ZodObject<{
|
|
1377
|
+
error: zod205.ZodEnum<{
|
|
1378
1378
|
invalid_request: "invalid_request";
|
|
1379
1379
|
authorization_pending: "authorization_pending";
|
|
1380
1380
|
slow_down: "slow_down";
|
|
@@ -1382,8 +1382,8 @@ declare const auth: better_auth0.Auth<{
|
|
|
1382
1382
|
access_denied: "access_denied";
|
|
1383
1383
|
invalid_grant: "invalid_grant";
|
|
1384
1384
|
}>;
|
|
1385
|
-
error_description:
|
|
1386
|
-
},
|
|
1385
|
+
error_description: zod205.ZodString;
|
|
1386
|
+
}, better_auth79.$strip>;
|
|
1387
1387
|
metadata: {
|
|
1388
1388
|
openapi: {
|
|
1389
1389
|
description: string;
|
|
@@ -1434,17 +1434,17 @@ declare const auth: better_auth0.Auth<{
|
|
|
1434
1434
|
expires_in: number;
|
|
1435
1435
|
scope: string;
|
|
1436
1436
|
}>;
|
|
1437
|
-
deviceVerify:
|
|
1437
|
+
deviceVerify: better_auth79.StrictEndpoint<"/device", {
|
|
1438
1438
|
method: "GET";
|
|
1439
|
-
query:
|
|
1440
|
-
user_code:
|
|
1441
|
-
},
|
|
1442
|
-
error:
|
|
1443
|
-
error:
|
|
1439
|
+
query: zod205.ZodObject<{
|
|
1440
|
+
user_code: zod205.ZodString;
|
|
1441
|
+
}, better_auth79.$strip>;
|
|
1442
|
+
error: zod205.ZodObject<{
|
|
1443
|
+
error: zod205.ZodEnum<{
|
|
1444
1444
|
invalid_request: "invalid_request";
|
|
1445
1445
|
}>;
|
|
1446
|
-
error_description:
|
|
1447
|
-
},
|
|
1446
|
+
error_description: zod205.ZodString;
|
|
1447
|
+
}, better_auth79.$strip>;
|
|
1448
1448
|
metadata: {
|
|
1449
1449
|
openapi: {
|
|
1450
1450
|
description: string;
|
|
@@ -1477,19 +1477,19 @@ declare const auth: better_auth0.Auth<{
|
|
|
1477
1477
|
user_code: string;
|
|
1478
1478
|
status: string;
|
|
1479
1479
|
}>;
|
|
1480
|
-
deviceApprove:
|
|
1480
|
+
deviceApprove: better_auth79.StrictEndpoint<"/device/approve", {
|
|
1481
1481
|
method: "POST";
|
|
1482
|
-
body:
|
|
1483
|
-
userCode:
|
|
1484
|
-
},
|
|
1485
|
-
error:
|
|
1486
|
-
error:
|
|
1482
|
+
body: zod205.ZodObject<{
|
|
1483
|
+
userCode: zod205.ZodString;
|
|
1484
|
+
}, better_auth79.$strip>;
|
|
1485
|
+
error: zod205.ZodObject<{
|
|
1486
|
+
error: zod205.ZodEnum<{
|
|
1487
1487
|
invalid_request: "invalid_request";
|
|
1488
1488
|
expired_token: "expired_token";
|
|
1489
1489
|
device_code_already_processed: "device_code_already_processed";
|
|
1490
1490
|
}>;
|
|
1491
|
-
error_description:
|
|
1492
|
-
},
|
|
1491
|
+
error_description: zod205.ZodString;
|
|
1492
|
+
}, better_auth79.$strip>;
|
|
1493
1493
|
requireHeaders: true;
|
|
1494
1494
|
metadata: {
|
|
1495
1495
|
openapi: {
|
|
@@ -1516,18 +1516,18 @@ declare const auth: better_auth0.Auth<{
|
|
|
1516
1516
|
}, {
|
|
1517
1517
|
success: boolean;
|
|
1518
1518
|
}>;
|
|
1519
|
-
deviceDeny:
|
|
1519
|
+
deviceDeny: better_auth79.StrictEndpoint<"/device/deny", {
|
|
1520
1520
|
method: "POST";
|
|
1521
|
-
body:
|
|
1522
|
-
userCode:
|
|
1523
|
-
},
|
|
1524
|
-
error:
|
|
1525
|
-
error:
|
|
1521
|
+
body: zod205.ZodObject<{
|
|
1522
|
+
userCode: zod205.ZodString;
|
|
1523
|
+
}, better_auth79.$strip>;
|
|
1524
|
+
error: zod205.ZodObject<{
|
|
1525
|
+
error: zod205.ZodEnum<{
|
|
1526
1526
|
invalid_request: "invalid_request";
|
|
1527
1527
|
expired_token: "expired_token";
|
|
1528
1528
|
}>;
|
|
1529
|
-
error_description:
|
|
1530
|
-
},
|
|
1529
|
+
error_description: zod205.ZodString;
|
|
1530
|
+
}, better_auth79.$strip>;
|
|
1531
1531
|
metadata: {
|
|
1532
1532
|
openapi: {
|
|
1533
1533
|
description: string;
|
|
@@ -1569,8 +1569,8 @@ declare const auth: better_auth0.Auth<{
|
|
|
1569
1569
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1570
1570
|
};
|
|
1571
1571
|
options: Partial<{
|
|
1572
|
-
expiresIn:
|
|
1573
|
-
interval:
|
|
1572
|
+
expiresIn: better_auth_plugins69.TimeString;
|
|
1573
|
+
interval: better_auth_plugins69.TimeString;
|
|
1574
1574
|
deviceCodeLength: number;
|
|
1575
1575
|
userCodeLength: number;
|
|
1576
1576
|
schema: {
|
|
@@ -1597,6 +1597,6 @@ declare const auth: better_auth0.Auth<{
|
|
|
1597
1597
|
}>;
|
|
1598
1598
|
}];
|
|
1599
1599
|
}>;
|
|
1600
|
-
declare const app: Hono<
|
|
1600
|
+
declare const app: Hono<hono_types9.BlankEnv, hono_types9.BlankSchema, "/">;
|
|
1601
1601
|
//#endregion
|
|
1602
1602
|
export { type AppConfig, type AppVariables, Hono, type NativeSandboxConfig, type SSOProviderConfig, type SandboxConfig, type UserAuthConfig, type VercelSandboxConfig, auth, createAgentsApp, createAgentsHono, createAuth0Provider, createOIDCProvider, app as default };
|