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