@inkeep/agents-api 0.58.16 → 0.58.17
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 +30 -30
- 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/data-reconciliation/handlers/agent.d.ts +2 -2
- package/dist/data-reconciliation/handlers/context-configs.d.ts +2 -2
- package/dist/data-reconciliation/handlers/scheduled-triggers.d.ts +2 -2
- package/dist/data-reconciliation/handlers/sub-agents.d.ts +2 -2
- package/dist/data-reconciliation/handlers/tools.d.ts +2 -2
- package/dist/domains/evals/routes/datasetTriggers.d.ts +2 -2
- package/dist/domains/evals/routes/index.d.ts +2 -2
- package/dist/domains/evals/workflow/routes.d.ts +2 -2
- package/dist/domains/manage/routes/availableAgents.d.ts +2 -2
- package/dist/domains/manage/routes/conversations.d.ts +2 -2
- package/dist/domains/manage/routes/index.d.ts +2 -2
- package/dist/domains/manage/routes/invitations.d.ts +2 -2
- package/dist/domains/manage/routes/passwordResetLinks.d.ts +2 -2
- package/dist/domains/manage/routes/signoz.d.ts +2 -2
- package/dist/domains/manage/routes/users.d.ts +2 -2
- package/dist/domains/mcp/routes/mcp.d.ts +2 -2
- package/dist/domains/run/agents/relationTools.d.ts +2 -2
- package/dist/domains/run/tools/distill-conversation-history-tool.d.ts +1 -1
- package/dist/domains/run/types/chat.d.ts +4 -4
- package/dist/domains/run/utils/token-estimator.d.ts +2 -2
- package/dist/domains/run/workflow/steps/scheduledTriggerSteps.d.ts +5 -5
- package/dist/env.d.ts +2 -2
- package/dist/factory.d.ts +323 -323
- package/dist/index.d.ts +322 -322
- 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/dist/utils/signozHelpers.d.ts +2 -3
- package/dist/utils/signozHelpers.js +14 -4
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -6,17 +6,17 @@ import { createAuth0Provider, createOIDCProvider } from "./ssoHelpers.js";
|
|
|
6
6
|
import { SSOProviderConfig, UserAuthConfig, createAgentsApp } from "./factory.js";
|
|
7
7
|
import "./sentry.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 zod344 from "zod";
|
|
10
|
+
import * as hono_types3 from "hono/types";
|
|
11
|
+
import * as better_auth99 from "better-auth";
|
|
12
|
+
import * as better_auth_plugins35 from "better-auth/plugins";
|
|
13
|
+
import * as _better_auth_sso11 from "@better-auth/sso";
|
|
14
14
|
|
|
15
15
|
//#region src/index.d.ts
|
|
16
|
-
declare const auth:
|
|
16
|
+
declare const auth: better_auth99.Auth<{
|
|
17
17
|
baseURL: string;
|
|
18
18
|
secret: string;
|
|
19
|
-
database: (options:
|
|
19
|
+
database: (options: better_auth99.BetterAuthOptions) => better_auth99.DBAdapter<better_auth99.BetterAuthOptions>;
|
|
20
20
|
emailAndPassword: {
|
|
21
21
|
enabled: true;
|
|
22
22
|
minPasswordLength: number;
|
|
@@ -29,7 +29,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
29
29
|
url,
|
|
30
30
|
token
|
|
31
31
|
}: {
|
|
32
|
-
user:
|
|
32
|
+
user: better_auth99.User;
|
|
33
33
|
url: string;
|
|
34
34
|
token: string;
|
|
35
35
|
}) => Promise<void>;
|
|
@@ -82,7 +82,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
82
82
|
clientKey?: string | undefined;
|
|
83
83
|
disableIdTokenSignIn?: boolean | undefined;
|
|
84
84
|
verifyIdToken?: ((token: string, nonce?: string) => Promise<boolean>) | undefined;
|
|
85
|
-
getUserInfo?: ((token:
|
|
85
|
+
getUserInfo?: ((token: better_auth99.OAuth2Tokens) => Promise<{
|
|
86
86
|
user: {
|
|
87
87
|
id: string;
|
|
88
88
|
name?: string;
|
|
@@ -93,8 +93,8 @@ declare const auth: better_auth0.Auth<{
|
|
|
93
93
|
};
|
|
94
94
|
data: any;
|
|
95
95
|
} | null>) | undefined;
|
|
96
|
-
refreshAccessToken?: ((refreshToken: string) => Promise<
|
|
97
|
-
mapProfileToUser?: ((profile:
|
|
96
|
+
refreshAccessToken?: ((refreshToken: string) => Promise<better_auth99.OAuth2Tokens>) | undefined;
|
|
97
|
+
mapProfileToUser?: ((profile: better_auth99.GoogleProfile) => {
|
|
98
98
|
id?: string;
|
|
99
99
|
name?: string;
|
|
100
100
|
email?: string | null;
|
|
@@ -142,15 +142,15 @@ declare const auth: better_auth0.Auth<{
|
|
|
142
142
|
cookies?: {
|
|
143
143
|
[key: string]: {
|
|
144
144
|
name?: string;
|
|
145
|
-
attributes?:
|
|
145
|
+
attributes?: better_auth99.CookieOptions;
|
|
146
146
|
};
|
|
147
147
|
} | undefined;
|
|
148
|
-
defaultCookieAttributes:
|
|
148
|
+
defaultCookieAttributes: better_auth99.CookieOptions;
|
|
149
149
|
cookiePrefix?: string | undefined;
|
|
150
150
|
database?: {
|
|
151
151
|
defaultFindManyLimit?: number;
|
|
152
152
|
useNumberId?: boolean;
|
|
153
|
-
generateId?:
|
|
153
|
+
generateId?: better_auth99.GenerateIdFn | false | "serial" | "uuid";
|
|
154
154
|
} | undefined;
|
|
155
155
|
trustedProxyHeaders?: boolean | undefined;
|
|
156
156
|
backgroundTasks?: {
|
|
@@ -163,31 +163,31 @@ declare const auth: better_auth0.Auth<{
|
|
|
163
163
|
id: "bearer";
|
|
164
164
|
hooks: {
|
|
165
165
|
before: {
|
|
166
|
-
matcher(context:
|
|
167
|
-
handler: (inputContext:
|
|
166
|
+
matcher(context: better_auth99.HookEndpointContext): boolean;
|
|
167
|
+
handler: (inputContext: better_auth99.MiddlewareInputContext<better_auth99.MiddlewareOptions>) => Promise<{
|
|
168
168
|
context: {
|
|
169
169
|
headers: Headers;
|
|
170
170
|
};
|
|
171
171
|
} | undefined>;
|
|
172
172
|
}[];
|
|
173
173
|
after: {
|
|
174
|
-
matcher(context:
|
|
175
|
-
handler: (inputContext:
|
|
174
|
+
matcher(context: better_auth99.HookEndpointContext): true;
|
|
175
|
+
handler: (inputContext: better_auth99.MiddlewareInputContext<better_auth99.MiddlewareOptions>) => Promise<void>;
|
|
176
176
|
}[];
|
|
177
177
|
};
|
|
178
|
-
options:
|
|
178
|
+
options: better_auth_plugins35.BearerOptions | undefined;
|
|
179
179
|
}, {
|
|
180
180
|
id: "sso";
|
|
181
181
|
endpoints: {
|
|
182
|
-
spMetadata: ReturnType<() =>
|
|
182
|
+
spMetadata: ReturnType<() => better_auth99.StrictEndpoint<"/sso/saml2/sp/metadata", {
|
|
183
183
|
method: "GET";
|
|
184
|
-
query:
|
|
185
|
-
providerId:
|
|
186
|
-
format:
|
|
184
|
+
query: zod344.ZodObject<{
|
|
185
|
+
providerId: zod344.ZodString;
|
|
186
|
+
format: zod344.ZodDefault<zod344.ZodEnum<{
|
|
187
187
|
xml: "xml";
|
|
188
188
|
json: "json";
|
|
189
189
|
}>>;
|
|
190
|
-
},
|
|
190
|
+
}, better_auth99.$strip>;
|
|
191
191
|
metadata: {
|
|
192
192
|
openapi: {
|
|
193
193
|
operationId: string;
|
|
@@ -201,86 +201,86 @@ declare const auth: better_auth0.Auth<{
|
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
203
|
}, Response>>;
|
|
204
|
-
registerSSOProvider:
|
|
204
|
+
registerSSOProvider: better_auth99.StrictEndpoint<"/sso/register", {
|
|
205
205
|
method: "POST";
|
|
206
|
-
body:
|
|
207
|
-
providerId:
|
|
208
|
-
issuer:
|
|
209
|
-
domain:
|
|
210
|
-
oidcConfig:
|
|
211
|
-
clientId:
|
|
212
|
-
clientSecret:
|
|
213
|
-
authorizationEndpoint:
|
|
214
|
-
tokenEndpoint:
|
|
215
|
-
userInfoEndpoint:
|
|
216
|
-
tokenEndpointAuthentication:
|
|
206
|
+
body: zod344.ZodObject<{
|
|
207
|
+
providerId: zod344.ZodString;
|
|
208
|
+
issuer: zod344.ZodString;
|
|
209
|
+
domain: zod344.ZodString;
|
|
210
|
+
oidcConfig: zod344.ZodOptional<zod344.ZodObject<{
|
|
211
|
+
clientId: zod344.ZodString;
|
|
212
|
+
clientSecret: zod344.ZodString;
|
|
213
|
+
authorizationEndpoint: zod344.ZodOptional<zod344.ZodString>;
|
|
214
|
+
tokenEndpoint: zod344.ZodOptional<zod344.ZodString>;
|
|
215
|
+
userInfoEndpoint: zod344.ZodOptional<zod344.ZodString>;
|
|
216
|
+
tokenEndpointAuthentication: zod344.ZodOptional<zod344.ZodEnum<{
|
|
217
217
|
client_secret_post: "client_secret_post";
|
|
218
218
|
client_secret_basic: "client_secret_basic";
|
|
219
219
|
}>>;
|
|
220
|
-
jwksEndpoint:
|
|
221
|
-
discoveryEndpoint:
|
|
222
|
-
skipDiscovery:
|
|
223
|
-
scopes:
|
|
224
|
-
pkce:
|
|
225
|
-
mapping:
|
|
226
|
-
id:
|
|
227
|
-
email:
|
|
228
|
-
emailVerified:
|
|
229
|
-
name:
|
|
230
|
-
image:
|
|
231
|
-
extraFields:
|
|
232
|
-
},
|
|
233
|
-
},
|
|
234
|
-
samlConfig:
|
|
235
|
-
entryPoint:
|
|
236
|
-
cert:
|
|
237
|
-
callbackUrl:
|
|
238
|
-
audience:
|
|
239
|
-
idpMetadata:
|
|
240
|
-
metadata:
|
|
241
|
-
entityID:
|
|
242
|
-
cert:
|
|
243
|
-
privateKey:
|
|
244
|
-
privateKeyPass:
|
|
245
|
-
isAssertionEncrypted:
|
|
246
|
-
encPrivateKey:
|
|
247
|
-
encPrivateKeyPass:
|
|
248
|
-
singleSignOnService:
|
|
249
|
-
Binding:
|
|
250
|
-
Location:
|
|
251
|
-
},
|
|
252
|
-
},
|
|
253
|
-
spMetadata:
|
|
254
|
-
metadata:
|
|
255
|
-
entityID:
|
|
256
|
-
binding:
|
|
257
|
-
privateKey:
|
|
258
|
-
privateKeyPass:
|
|
259
|
-
isAssertionEncrypted:
|
|
260
|
-
encPrivateKey:
|
|
261
|
-
encPrivateKeyPass:
|
|
262
|
-
},
|
|
263
|
-
wantAssertionsSigned:
|
|
264
|
-
signatureAlgorithm:
|
|
265
|
-
digestAlgorithm:
|
|
266
|
-
identifierFormat:
|
|
267
|
-
privateKey:
|
|
268
|
-
decryptionPvk:
|
|
269
|
-
additionalParams:
|
|
270
|
-
mapping:
|
|
271
|
-
id:
|
|
272
|
-
email:
|
|
273
|
-
emailVerified:
|
|
274
|
-
name:
|
|
275
|
-
firstName:
|
|
276
|
-
lastName:
|
|
277
|
-
extraFields:
|
|
278
|
-
},
|
|
279
|
-
},
|
|
280
|
-
organizationId:
|
|
281
|
-
overrideUserInfo:
|
|
282
|
-
},
|
|
283
|
-
use: ((inputContext:
|
|
220
|
+
jwksEndpoint: zod344.ZodOptional<zod344.ZodString>;
|
|
221
|
+
discoveryEndpoint: zod344.ZodOptional<zod344.ZodString>;
|
|
222
|
+
skipDiscovery: zod344.ZodOptional<zod344.ZodBoolean>;
|
|
223
|
+
scopes: zod344.ZodOptional<zod344.ZodArray<zod344.ZodString>>;
|
|
224
|
+
pkce: zod344.ZodOptional<zod344.ZodDefault<zod344.ZodBoolean>>;
|
|
225
|
+
mapping: zod344.ZodOptional<zod344.ZodObject<{
|
|
226
|
+
id: zod344.ZodString;
|
|
227
|
+
email: zod344.ZodString;
|
|
228
|
+
emailVerified: zod344.ZodOptional<zod344.ZodString>;
|
|
229
|
+
name: zod344.ZodString;
|
|
230
|
+
image: zod344.ZodOptional<zod344.ZodString>;
|
|
231
|
+
extraFields: zod344.ZodOptional<zod344.ZodRecord<zod344.ZodString, zod344.ZodAny>>;
|
|
232
|
+
}, better_auth99.$strip>>;
|
|
233
|
+
}, better_auth99.$strip>>;
|
|
234
|
+
samlConfig: zod344.ZodOptional<zod344.ZodObject<{
|
|
235
|
+
entryPoint: zod344.ZodString;
|
|
236
|
+
cert: zod344.ZodString;
|
|
237
|
+
callbackUrl: zod344.ZodString;
|
|
238
|
+
audience: zod344.ZodOptional<zod344.ZodString>;
|
|
239
|
+
idpMetadata: zod344.ZodOptional<zod344.ZodObject<{
|
|
240
|
+
metadata: zod344.ZodOptional<zod344.ZodString>;
|
|
241
|
+
entityID: zod344.ZodOptional<zod344.ZodString>;
|
|
242
|
+
cert: zod344.ZodOptional<zod344.ZodString>;
|
|
243
|
+
privateKey: zod344.ZodOptional<zod344.ZodString>;
|
|
244
|
+
privateKeyPass: zod344.ZodOptional<zod344.ZodString>;
|
|
245
|
+
isAssertionEncrypted: zod344.ZodOptional<zod344.ZodBoolean>;
|
|
246
|
+
encPrivateKey: zod344.ZodOptional<zod344.ZodString>;
|
|
247
|
+
encPrivateKeyPass: zod344.ZodOptional<zod344.ZodString>;
|
|
248
|
+
singleSignOnService: zod344.ZodOptional<zod344.ZodArray<zod344.ZodObject<{
|
|
249
|
+
Binding: zod344.ZodString;
|
|
250
|
+
Location: zod344.ZodString;
|
|
251
|
+
}, better_auth99.$strip>>>;
|
|
252
|
+
}, better_auth99.$strip>>;
|
|
253
|
+
spMetadata: zod344.ZodObject<{
|
|
254
|
+
metadata: zod344.ZodOptional<zod344.ZodString>;
|
|
255
|
+
entityID: zod344.ZodOptional<zod344.ZodString>;
|
|
256
|
+
binding: zod344.ZodOptional<zod344.ZodString>;
|
|
257
|
+
privateKey: zod344.ZodOptional<zod344.ZodString>;
|
|
258
|
+
privateKeyPass: zod344.ZodOptional<zod344.ZodString>;
|
|
259
|
+
isAssertionEncrypted: zod344.ZodOptional<zod344.ZodBoolean>;
|
|
260
|
+
encPrivateKey: zod344.ZodOptional<zod344.ZodString>;
|
|
261
|
+
encPrivateKeyPass: zod344.ZodOptional<zod344.ZodString>;
|
|
262
|
+
}, better_auth99.$strip>;
|
|
263
|
+
wantAssertionsSigned: zod344.ZodOptional<zod344.ZodBoolean>;
|
|
264
|
+
signatureAlgorithm: zod344.ZodOptional<zod344.ZodString>;
|
|
265
|
+
digestAlgorithm: zod344.ZodOptional<zod344.ZodString>;
|
|
266
|
+
identifierFormat: zod344.ZodOptional<zod344.ZodString>;
|
|
267
|
+
privateKey: zod344.ZodOptional<zod344.ZodString>;
|
|
268
|
+
decryptionPvk: zod344.ZodOptional<zod344.ZodString>;
|
|
269
|
+
additionalParams: zod344.ZodOptional<zod344.ZodRecord<zod344.ZodString, zod344.ZodAny>>;
|
|
270
|
+
mapping: zod344.ZodOptional<zod344.ZodObject<{
|
|
271
|
+
id: zod344.ZodString;
|
|
272
|
+
email: zod344.ZodString;
|
|
273
|
+
emailVerified: zod344.ZodOptional<zod344.ZodString>;
|
|
274
|
+
name: zod344.ZodString;
|
|
275
|
+
firstName: zod344.ZodOptional<zod344.ZodString>;
|
|
276
|
+
lastName: zod344.ZodOptional<zod344.ZodString>;
|
|
277
|
+
extraFields: zod344.ZodOptional<zod344.ZodRecord<zod344.ZodString, zod344.ZodAny>>;
|
|
278
|
+
}, better_auth99.$strip>>;
|
|
279
|
+
}, better_auth99.$strip>>;
|
|
280
|
+
organizationId: zod344.ZodOptional<zod344.ZodString>;
|
|
281
|
+
overrideUserInfo: zod344.ZodOptional<zod344.ZodDefault<zod344.ZodBoolean>>;
|
|
282
|
+
}, better_auth99.$strip>;
|
|
283
|
+
use: ((inputContext: better_auth99.MiddlewareInputContext<better_auth99.MiddlewareOptions>) => Promise<{
|
|
284
284
|
session: {
|
|
285
285
|
session: Record<string, any> & {
|
|
286
286
|
id: string;
|
|
@@ -466,35 +466,35 @@ declare const auth: better_auth0.Auth<{
|
|
|
466
466
|
};
|
|
467
467
|
}, {
|
|
468
468
|
redirectURI: string;
|
|
469
|
-
oidcConfig:
|
|
470
|
-
samlConfig:
|
|
469
|
+
oidcConfig: _better_auth_sso11.OIDCConfig | null;
|
|
470
|
+
samlConfig: _better_auth_sso11.SAMLConfig | null;
|
|
471
471
|
} & Omit<{
|
|
472
472
|
issuer: string;
|
|
473
|
-
oidcConfig?:
|
|
474
|
-
samlConfig?:
|
|
473
|
+
oidcConfig?: _better_auth_sso11.OIDCConfig | undefined;
|
|
474
|
+
samlConfig?: _better_auth_sso11.SAMLConfig | undefined;
|
|
475
475
|
userId: string;
|
|
476
476
|
providerId: string;
|
|
477
477
|
organizationId?: string | undefined;
|
|
478
478
|
domain: string;
|
|
479
479
|
}, "oidcConfig" | "samlConfig">>;
|
|
480
|
-
signInSSO: ReturnType<(options?:
|
|
480
|
+
signInSSO: ReturnType<(options?: _better_auth_sso11.SSOOptions) => better_auth99.StrictEndpoint<"/sign-in/sso", {
|
|
481
481
|
method: "POST";
|
|
482
|
-
body:
|
|
483
|
-
email:
|
|
484
|
-
organizationSlug:
|
|
485
|
-
providerId:
|
|
486
|
-
domain:
|
|
487
|
-
callbackURL:
|
|
488
|
-
errorCallbackURL:
|
|
489
|
-
newUserCallbackURL:
|
|
490
|
-
scopes:
|
|
491
|
-
loginHint:
|
|
492
|
-
requestSignUp:
|
|
493
|
-
providerType:
|
|
482
|
+
body: zod344.ZodObject<{
|
|
483
|
+
email: zod344.ZodOptional<zod344.ZodString>;
|
|
484
|
+
organizationSlug: zod344.ZodOptional<zod344.ZodString>;
|
|
485
|
+
providerId: zod344.ZodOptional<zod344.ZodString>;
|
|
486
|
+
domain: zod344.ZodOptional<zod344.ZodString>;
|
|
487
|
+
callbackURL: zod344.ZodString;
|
|
488
|
+
errorCallbackURL: zod344.ZodOptional<zod344.ZodString>;
|
|
489
|
+
newUserCallbackURL: zod344.ZodOptional<zod344.ZodString>;
|
|
490
|
+
scopes: zod344.ZodOptional<zod344.ZodArray<zod344.ZodString>>;
|
|
491
|
+
loginHint: zod344.ZodOptional<zod344.ZodString>;
|
|
492
|
+
requestSignUp: zod344.ZodOptional<zod344.ZodBoolean>;
|
|
493
|
+
providerType: zod344.ZodOptional<zod344.ZodEnum<{
|
|
494
494
|
saml: "saml";
|
|
495
495
|
oidc: "oidc";
|
|
496
496
|
}>>;
|
|
497
|
-
},
|
|
497
|
+
}, better_auth99.$strip>;
|
|
498
498
|
metadata: {
|
|
499
499
|
openapi: {
|
|
500
500
|
operationId: string;
|
|
@@ -571,14 +571,14 @@ declare const auth: better_auth0.Auth<{
|
|
|
571
571
|
url: string;
|
|
572
572
|
redirect: boolean;
|
|
573
573
|
}>>;
|
|
574
|
-
callbackSSO: ReturnType<(options?:
|
|
574
|
+
callbackSSO: ReturnType<(options?: _better_auth_sso11.SSOOptions) => better_auth99.StrictEndpoint<"/sso/callback/:providerId", {
|
|
575
575
|
method: "GET";
|
|
576
|
-
query:
|
|
577
|
-
code:
|
|
578
|
-
state:
|
|
579
|
-
error:
|
|
580
|
-
error_description:
|
|
581
|
-
},
|
|
576
|
+
query: zod344.ZodObject<{
|
|
577
|
+
code: zod344.ZodOptional<zod344.ZodString>;
|
|
578
|
+
state: zod344.ZodString;
|
|
579
|
+
error: zod344.ZodOptional<zod344.ZodString>;
|
|
580
|
+
error_description: zod344.ZodOptional<zod344.ZodString>;
|
|
581
|
+
}, better_auth99.$strip>;
|
|
582
582
|
allowedMediaTypes: string[];
|
|
583
583
|
metadata: {
|
|
584
584
|
openapi: {
|
|
@@ -594,15 +594,15 @@ declare const auth: better_auth0.Auth<{
|
|
|
594
594
|
scope: "server";
|
|
595
595
|
};
|
|
596
596
|
}, never>>;
|
|
597
|
-
callbackSSOSAML: ReturnType<(options?:
|
|
597
|
+
callbackSSOSAML: ReturnType<(options?: _better_auth_sso11.SSOOptions) => better_auth99.StrictEndpoint<"/sso/saml2/callback/:providerId", {
|
|
598
598
|
method: ("POST" | "GET")[];
|
|
599
|
-
body:
|
|
600
|
-
SAMLResponse:
|
|
601
|
-
RelayState:
|
|
602
|
-
},
|
|
603
|
-
query:
|
|
604
|
-
RelayState:
|
|
605
|
-
},
|
|
599
|
+
body: zod344.ZodOptional<zod344.ZodObject<{
|
|
600
|
+
SAMLResponse: zod344.ZodString;
|
|
601
|
+
RelayState: zod344.ZodOptional<zod344.ZodString>;
|
|
602
|
+
}, better_auth99.$strip>>;
|
|
603
|
+
query: zod344.ZodOptional<zod344.ZodObject<{
|
|
604
|
+
RelayState: zod344.ZodOptional<zod344.ZodString>;
|
|
605
|
+
}, better_auth99.$strip>>;
|
|
606
606
|
metadata: {
|
|
607
607
|
allowedMediaTypes: string[];
|
|
608
608
|
openapi: {
|
|
@@ -624,12 +624,12 @@ declare const auth: better_auth0.Auth<{
|
|
|
624
624
|
scope: "server";
|
|
625
625
|
};
|
|
626
626
|
}, never>>;
|
|
627
|
-
acsEndpoint: ReturnType<(options?:
|
|
627
|
+
acsEndpoint: ReturnType<(options?: _better_auth_sso11.SSOOptions) => better_auth99.StrictEndpoint<"/sso/saml2/sp/acs/:providerId", {
|
|
628
628
|
method: "POST";
|
|
629
|
-
body:
|
|
630
|
-
SAMLResponse:
|
|
631
|
-
RelayState:
|
|
632
|
-
},
|
|
629
|
+
body: zod344.ZodObject<{
|
|
630
|
+
SAMLResponse: zod344.ZodString;
|
|
631
|
+
RelayState: zod344.ZodOptional<zod344.ZodString>;
|
|
632
|
+
}, better_auth99.$strip>;
|
|
633
633
|
metadata: {
|
|
634
634
|
allowedMediaTypes: string[];
|
|
635
635
|
openapi: {
|
|
@@ -645,9 +645,9 @@ declare const auth: better_auth0.Auth<{
|
|
|
645
645
|
scope: "server";
|
|
646
646
|
};
|
|
647
647
|
}, never>>;
|
|
648
|
-
listSSOProviders: ReturnType<() =>
|
|
648
|
+
listSSOProviders: ReturnType<() => better_auth99.StrictEndpoint<"/sso/providers", {
|
|
649
649
|
method: "GET";
|
|
650
|
-
use: ((inputContext:
|
|
650
|
+
use: ((inputContext: better_auth99.MiddlewareInputContext<better_auth99.MiddlewareOptions>) => Promise<{
|
|
651
651
|
session: {
|
|
652
652
|
session: Record<string, any> & {
|
|
653
653
|
id: string;
|
|
@@ -721,9 +721,9 @@ declare const auth: better_auth0.Auth<{
|
|
|
721
721
|
spMetadataUrl: string;
|
|
722
722
|
}[];
|
|
723
723
|
}>>;
|
|
724
|
-
getSSOProvider: ReturnType<() =>
|
|
724
|
+
getSSOProvider: ReturnType<() => better_auth99.StrictEndpoint<"/sso/providers/:providerId", {
|
|
725
725
|
method: "GET";
|
|
726
|
-
use: ((inputContext:
|
|
726
|
+
use: ((inputContext: better_auth99.MiddlewareInputContext<better_auth99.MiddlewareOptions>) => Promise<{
|
|
727
727
|
session: {
|
|
728
728
|
session: Record<string, any> & {
|
|
729
729
|
id: string;
|
|
@@ -746,9 +746,9 @@ declare const auth: better_auth0.Auth<{
|
|
|
746
746
|
};
|
|
747
747
|
};
|
|
748
748
|
}>)[];
|
|
749
|
-
params:
|
|
750
|
-
providerId:
|
|
751
|
-
},
|
|
749
|
+
params: zod344.ZodObject<{
|
|
750
|
+
providerId: zod344.ZodString;
|
|
751
|
+
}, better_auth99.$strip>;
|
|
752
752
|
metadata: {
|
|
753
753
|
openapi: {
|
|
754
754
|
operationId: string;
|
|
@@ -804,9 +804,9 @@ declare const auth: better_auth0.Auth<{
|
|
|
804
804
|
} | undefined;
|
|
805
805
|
spMetadataUrl: string;
|
|
806
806
|
}>>;
|
|
807
|
-
updateSSOProvider: ReturnType<(options:
|
|
807
|
+
updateSSOProvider: ReturnType<(options: _better_auth_sso11.SSOOptions) => better_auth99.StrictEndpoint<"/sso/providers/:providerId", {
|
|
808
808
|
method: "PATCH";
|
|
809
|
-
use: ((inputContext:
|
|
809
|
+
use: ((inputContext: better_auth99.MiddlewareInputContext<better_auth99.MiddlewareOptions>) => Promise<{
|
|
810
810
|
session: {
|
|
811
811
|
session: Record<string, any> & {
|
|
812
812
|
id: string;
|
|
@@ -829,83 +829,83 @@ declare const auth: better_auth0.Auth<{
|
|
|
829
829
|
};
|
|
830
830
|
};
|
|
831
831
|
}>)[];
|
|
832
|
-
params:
|
|
833
|
-
providerId:
|
|
834
|
-
},
|
|
835
|
-
body:
|
|
836
|
-
issuer:
|
|
837
|
-
domain:
|
|
838
|
-
oidcConfig:
|
|
839
|
-
clientId:
|
|
840
|
-
clientSecret:
|
|
841
|
-
authorizationEndpoint:
|
|
842
|
-
tokenEndpoint:
|
|
843
|
-
userInfoEndpoint:
|
|
844
|
-
tokenEndpointAuthentication:
|
|
832
|
+
params: zod344.ZodObject<{
|
|
833
|
+
providerId: zod344.ZodString;
|
|
834
|
+
}, better_auth99.$strip>;
|
|
835
|
+
body: zod344.ZodObject<{
|
|
836
|
+
issuer: zod344.ZodOptional<zod344.ZodString>;
|
|
837
|
+
domain: zod344.ZodOptional<zod344.ZodString>;
|
|
838
|
+
oidcConfig: zod344.ZodOptional<zod344.ZodObject<{
|
|
839
|
+
clientId: zod344.ZodOptional<zod344.ZodString>;
|
|
840
|
+
clientSecret: zod344.ZodOptional<zod344.ZodString>;
|
|
841
|
+
authorizationEndpoint: zod344.ZodOptional<zod344.ZodString>;
|
|
842
|
+
tokenEndpoint: zod344.ZodOptional<zod344.ZodString>;
|
|
843
|
+
userInfoEndpoint: zod344.ZodOptional<zod344.ZodString>;
|
|
844
|
+
tokenEndpointAuthentication: zod344.ZodOptional<zod344.ZodEnum<{
|
|
845
845
|
client_secret_post: "client_secret_post";
|
|
846
846
|
client_secret_basic: "client_secret_basic";
|
|
847
847
|
}>>;
|
|
848
|
-
jwksEndpoint:
|
|
849
|
-
discoveryEndpoint:
|
|
850
|
-
scopes:
|
|
851
|
-
pkce:
|
|
852
|
-
overrideUserInfo:
|
|
853
|
-
mapping:
|
|
854
|
-
id:
|
|
855
|
-
email:
|
|
856
|
-
emailVerified:
|
|
857
|
-
name:
|
|
858
|
-
image:
|
|
859
|
-
extraFields:
|
|
860
|
-
},
|
|
861
|
-
},
|
|
862
|
-
samlConfig:
|
|
863
|
-
entryPoint:
|
|
864
|
-
cert:
|
|
865
|
-
callbackUrl:
|
|
866
|
-
audience:
|
|
867
|
-
idpMetadata:
|
|
868
|
-
metadata:
|
|
869
|
-
entityID:
|
|
870
|
-
cert:
|
|
871
|
-
privateKey:
|
|
872
|
-
privateKeyPass:
|
|
873
|
-
isAssertionEncrypted:
|
|
874
|
-
encPrivateKey:
|
|
875
|
-
encPrivateKeyPass:
|
|
876
|
-
singleSignOnService:
|
|
877
|
-
Binding:
|
|
878
|
-
Location:
|
|
879
|
-
},
|
|
880
|
-
},
|
|
881
|
-
spMetadata:
|
|
882
|
-
metadata:
|
|
883
|
-
entityID:
|
|
884
|
-
binding:
|
|
885
|
-
privateKey:
|
|
886
|
-
privateKeyPass:
|
|
887
|
-
isAssertionEncrypted:
|
|
888
|
-
encPrivateKey:
|
|
889
|
-
encPrivateKeyPass:
|
|
890
|
-
},
|
|
891
|
-
wantAssertionsSigned:
|
|
892
|
-
signatureAlgorithm:
|
|
893
|
-
digestAlgorithm:
|
|
894
|
-
identifierFormat:
|
|
895
|
-
privateKey:
|
|
896
|
-
decryptionPvk:
|
|
897
|
-
additionalParams:
|
|
898
|
-
mapping:
|
|
899
|
-
id:
|
|
900
|
-
email:
|
|
901
|
-
emailVerified:
|
|
902
|
-
name:
|
|
903
|
-
firstName:
|
|
904
|
-
lastName:
|
|
905
|
-
extraFields:
|
|
906
|
-
},
|
|
907
|
-
},
|
|
908
|
-
},
|
|
848
|
+
jwksEndpoint: zod344.ZodOptional<zod344.ZodString>;
|
|
849
|
+
discoveryEndpoint: zod344.ZodOptional<zod344.ZodString>;
|
|
850
|
+
scopes: zod344.ZodOptional<zod344.ZodArray<zod344.ZodString>>;
|
|
851
|
+
pkce: zod344.ZodOptional<zod344.ZodBoolean>;
|
|
852
|
+
overrideUserInfo: zod344.ZodOptional<zod344.ZodBoolean>;
|
|
853
|
+
mapping: zod344.ZodOptional<zod344.ZodObject<{
|
|
854
|
+
id: zod344.ZodOptional<zod344.ZodString>;
|
|
855
|
+
email: zod344.ZodOptional<zod344.ZodString>;
|
|
856
|
+
emailVerified: zod344.ZodOptional<zod344.ZodString>;
|
|
857
|
+
name: zod344.ZodOptional<zod344.ZodString>;
|
|
858
|
+
image: zod344.ZodOptional<zod344.ZodString>;
|
|
859
|
+
extraFields: zod344.ZodOptional<zod344.ZodRecord<zod344.ZodString, zod344.ZodAny>>;
|
|
860
|
+
}, better_auth99.$strip>>;
|
|
861
|
+
}, better_auth99.$strip>>;
|
|
862
|
+
samlConfig: zod344.ZodOptional<zod344.ZodObject<{
|
|
863
|
+
entryPoint: zod344.ZodOptional<zod344.ZodString>;
|
|
864
|
+
cert: zod344.ZodOptional<zod344.ZodString>;
|
|
865
|
+
callbackUrl: zod344.ZodOptional<zod344.ZodString>;
|
|
866
|
+
audience: zod344.ZodOptional<zod344.ZodString>;
|
|
867
|
+
idpMetadata: zod344.ZodOptional<zod344.ZodObject<{
|
|
868
|
+
metadata: zod344.ZodOptional<zod344.ZodString>;
|
|
869
|
+
entityID: zod344.ZodOptional<zod344.ZodString>;
|
|
870
|
+
cert: zod344.ZodOptional<zod344.ZodString>;
|
|
871
|
+
privateKey: zod344.ZodOptional<zod344.ZodString>;
|
|
872
|
+
privateKeyPass: zod344.ZodOptional<zod344.ZodString>;
|
|
873
|
+
isAssertionEncrypted: zod344.ZodOptional<zod344.ZodBoolean>;
|
|
874
|
+
encPrivateKey: zod344.ZodOptional<zod344.ZodString>;
|
|
875
|
+
encPrivateKeyPass: zod344.ZodOptional<zod344.ZodString>;
|
|
876
|
+
singleSignOnService: zod344.ZodOptional<zod344.ZodArray<zod344.ZodObject<{
|
|
877
|
+
Binding: zod344.ZodString;
|
|
878
|
+
Location: zod344.ZodString;
|
|
879
|
+
}, better_auth99.$strip>>>;
|
|
880
|
+
}, better_auth99.$strip>>;
|
|
881
|
+
spMetadata: zod344.ZodOptional<zod344.ZodObject<{
|
|
882
|
+
metadata: zod344.ZodOptional<zod344.ZodString>;
|
|
883
|
+
entityID: zod344.ZodOptional<zod344.ZodString>;
|
|
884
|
+
binding: zod344.ZodOptional<zod344.ZodString>;
|
|
885
|
+
privateKey: zod344.ZodOptional<zod344.ZodString>;
|
|
886
|
+
privateKeyPass: zod344.ZodOptional<zod344.ZodString>;
|
|
887
|
+
isAssertionEncrypted: zod344.ZodOptional<zod344.ZodBoolean>;
|
|
888
|
+
encPrivateKey: zod344.ZodOptional<zod344.ZodString>;
|
|
889
|
+
encPrivateKeyPass: zod344.ZodOptional<zod344.ZodString>;
|
|
890
|
+
}, better_auth99.$strip>>;
|
|
891
|
+
wantAssertionsSigned: zod344.ZodOptional<zod344.ZodBoolean>;
|
|
892
|
+
signatureAlgorithm: zod344.ZodOptional<zod344.ZodString>;
|
|
893
|
+
digestAlgorithm: zod344.ZodOptional<zod344.ZodString>;
|
|
894
|
+
identifierFormat: zod344.ZodOptional<zod344.ZodString>;
|
|
895
|
+
privateKey: zod344.ZodOptional<zod344.ZodString>;
|
|
896
|
+
decryptionPvk: zod344.ZodOptional<zod344.ZodString>;
|
|
897
|
+
additionalParams: zod344.ZodOptional<zod344.ZodRecord<zod344.ZodString, zod344.ZodAny>>;
|
|
898
|
+
mapping: zod344.ZodOptional<zod344.ZodObject<{
|
|
899
|
+
id: zod344.ZodOptional<zod344.ZodString>;
|
|
900
|
+
email: zod344.ZodOptional<zod344.ZodString>;
|
|
901
|
+
emailVerified: zod344.ZodOptional<zod344.ZodString>;
|
|
902
|
+
name: zod344.ZodOptional<zod344.ZodString>;
|
|
903
|
+
firstName: zod344.ZodOptional<zod344.ZodString>;
|
|
904
|
+
lastName: zod344.ZodOptional<zod344.ZodString>;
|
|
905
|
+
extraFields: zod344.ZodOptional<zod344.ZodRecord<zod344.ZodString, zod344.ZodAny>>;
|
|
906
|
+
}, better_auth99.$strip>>;
|
|
907
|
+
}, better_auth99.$strip>>;
|
|
908
|
+
}, better_auth99.$strip>;
|
|
909
909
|
metadata: {
|
|
910
910
|
openapi: {
|
|
911
911
|
operationId: string;
|
|
@@ -961,9 +961,9 @@ declare const auth: better_auth0.Auth<{
|
|
|
961
961
|
} | undefined;
|
|
962
962
|
spMetadataUrl: string;
|
|
963
963
|
}>>;
|
|
964
|
-
deleteSSOProvider: ReturnType<() =>
|
|
964
|
+
deleteSSOProvider: ReturnType<() => better_auth99.StrictEndpoint<"/sso/providers/:providerId", {
|
|
965
965
|
method: "DELETE";
|
|
966
|
-
use: ((inputContext:
|
|
966
|
+
use: ((inputContext: better_auth99.MiddlewareInputContext<better_auth99.MiddlewareOptions>) => Promise<{
|
|
967
967
|
session: {
|
|
968
968
|
session: Record<string, any> & {
|
|
969
969
|
id: string;
|
|
@@ -986,9 +986,9 @@ declare const auth: better_auth0.Auth<{
|
|
|
986
986
|
};
|
|
987
987
|
};
|
|
988
988
|
}>)[];
|
|
989
|
-
params:
|
|
990
|
-
providerId:
|
|
991
|
-
},
|
|
989
|
+
params: zod344.ZodObject<{
|
|
990
|
+
providerId: zod344.ZodString;
|
|
991
|
+
}, better_auth99.$strip>;
|
|
992
992
|
metadata: {
|
|
993
993
|
openapi: {
|
|
994
994
|
operationId: string;
|
|
@@ -1011,11 +1011,11 @@ declare const auth: better_auth0.Auth<{
|
|
|
1011
1011
|
success: boolean;
|
|
1012
1012
|
}>>;
|
|
1013
1013
|
} & {
|
|
1014
|
-
requestDomainVerification: ReturnType<(options:
|
|
1014
|
+
requestDomainVerification: ReturnType<(options: _better_auth_sso11.SSOOptions) => better_auth99.StrictEndpoint<"/sso/request-domain-verification", {
|
|
1015
1015
|
method: "POST";
|
|
1016
|
-
body:
|
|
1017
|
-
providerId:
|
|
1018
|
-
},
|
|
1016
|
+
body: zod344.ZodObject<{
|
|
1017
|
+
providerId: zod344.ZodString;
|
|
1018
|
+
}, better_auth99.$strip>;
|
|
1019
1019
|
metadata: {
|
|
1020
1020
|
openapi: {
|
|
1021
1021
|
summary: string;
|
|
@@ -1033,7 +1033,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
1033
1033
|
};
|
|
1034
1034
|
};
|
|
1035
1035
|
};
|
|
1036
|
-
use: ((inputContext:
|
|
1036
|
+
use: ((inputContext: better_auth99.MiddlewareInputContext<better_auth99.MiddlewareOptions>) => Promise<{
|
|
1037
1037
|
session: {
|
|
1038
1038
|
session: Record<string, any> & {
|
|
1039
1039
|
id: string;
|
|
@@ -1059,11 +1059,11 @@ declare const auth: better_auth0.Auth<{
|
|
|
1059
1059
|
}, {
|
|
1060
1060
|
domainVerificationToken: string;
|
|
1061
1061
|
}>>;
|
|
1062
|
-
verifyDomain: ReturnType<(options:
|
|
1062
|
+
verifyDomain: ReturnType<(options: _better_auth_sso11.SSOOptions) => better_auth99.StrictEndpoint<"/sso/verify-domain", {
|
|
1063
1063
|
method: "POST";
|
|
1064
|
-
body:
|
|
1065
|
-
providerId:
|
|
1066
|
-
},
|
|
1064
|
+
body: zod344.ZodObject<{
|
|
1065
|
+
providerId: zod344.ZodString;
|
|
1066
|
+
}, better_auth99.$strip>;
|
|
1067
1067
|
metadata: {
|
|
1068
1068
|
openapi: {
|
|
1069
1069
|
summary: string;
|
|
@@ -1084,7 +1084,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
1084
1084
|
};
|
|
1085
1085
|
};
|
|
1086
1086
|
};
|
|
1087
|
-
use: ((inputContext:
|
|
1087
|
+
use: ((inputContext: better_auth99.MiddlewareInputContext<better_auth99.MiddlewareOptions>) => Promise<{
|
|
1088
1088
|
session: {
|
|
1089
1089
|
session: Record<string, any> & {
|
|
1090
1090
|
id: string;
|
|
@@ -1109,8 +1109,8 @@ declare const auth: better_auth0.Auth<{
|
|
|
1109
1109
|
}>)[];
|
|
1110
1110
|
}, void>>;
|
|
1111
1111
|
};
|
|
1112
|
-
schema: NonNullable<
|
|
1113
|
-
options:
|
|
1112
|
+
schema: NonNullable<better_auth99.BetterAuthPlugin["schema"]>;
|
|
1113
|
+
options: _better_auth_sso11.SSOOptions & {
|
|
1114
1114
|
domainVerification?: {
|
|
1115
1115
|
enabled: true;
|
|
1116
1116
|
};
|
|
@@ -1121,14 +1121,14 @@ declare const auth: better_auth0.Auth<{
|
|
|
1121
1121
|
productionURL: string;
|
|
1122
1122
|
}>;
|
|
1123
1123
|
endpoints: {
|
|
1124
|
-
oAuthProxy:
|
|
1124
|
+
oAuthProxy: better_auth99.StrictEndpoint<"/oauth-proxy-callback", {
|
|
1125
1125
|
method: "GET";
|
|
1126
1126
|
operationId: string;
|
|
1127
|
-
query:
|
|
1128
|
-
callbackURL:
|
|
1129
|
-
cookies:
|
|
1130
|
-
},
|
|
1131
|
-
use: ((inputContext:
|
|
1127
|
+
query: zod344.ZodObject<{
|
|
1128
|
+
callbackURL: zod344.ZodString;
|
|
1129
|
+
cookies: zod344.ZodString;
|
|
1130
|
+
}, better_auth99.$strip>;
|
|
1131
|
+
use: ((inputContext: better_auth99.MiddlewareInputContext<better_auth99.MiddlewareOptions>) => Promise<void>)[];
|
|
1132
1132
|
metadata: {
|
|
1133
1133
|
openapi: {
|
|
1134
1134
|
operationId: string;
|
|
@@ -1158,38 +1158,38 @@ declare const auth: better_auth0.Auth<{
|
|
|
1158
1158
|
};
|
|
1159
1159
|
hooks: {
|
|
1160
1160
|
before: {
|
|
1161
|
-
matcher(context:
|
|
1162
|
-
handler: (inputContext:
|
|
1161
|
+
matcher(context: better_auth99.HookEndpointContext): boolean;
|
|
1162
|
+
handler: (inputContext: better_auth99.MiddlewareInputContext<better_auth99.MiddlewareOptions>) => Promise<void>;
|
|
1163
1163
|
}[];
|
|
1164
1164
|
after: {
|
|
1165
|
-
matcher(context:
|
|
1166
|
-
handler: (inputContext:
|
|
1165
|
+
matcher(context: better_auth99.HookEndpointContext): boolean;
|
|
1166
|
+
handler: (inputContext: better_auth99.MiddlewareInputContext<better_auth99.MiddlewareOptions>) => Promise<void>;
|
|
1167
1167
|
}[];
|
|
1168
1168
|
};
|
|
1169
|
-
},
|
|
1169
|
+
}, better_auth_plugins35.DefaultOrganizationPlugin<{
|
|
1170
1170
|
allowUserToCreateOrganization: true;
|
|
1171
|
-
ac:
|
|
1171
|
+
ac: better_auth_plugins35.AccessControl;
|
|
1172
1172
|
roles: {
|
|
1173
1173
|
member: {
|
|
1174
|
-
authorize<K_1 extends "
|
|
1175
|
-
actions:
|
|
1174
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins35.Statements>[key] | {
|
|
1175
|
+
actions: better_auth_plugins35.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins35.Statements>[key];
|
|
1176
1176
|
connector: "OR" | "AND";
|
|
1177
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1178
|
-
statements:
|
|
1177
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
|
|
1178
|
+
statements: better_auth_plugins35.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins35.Statements>;
|
|
1179
1179
|
};
|
|
1180
1180
|
admin: {
|
|
1181
|
-
authorize<K_1 extends "
|
|
1182
|
-
actions:
|
|
1181
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins35.Statements>[key] | {
|
|
1182
|
+
actions: better_auth_plugins35.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins35.Statements>[key];
|
|
1183
1183
|
connector: "OR" | "AND";
|
|
1184
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1185
|
-
statements:
|
|
1184
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
|
|
1185
|
+
statements: better_auth_plugins35.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins35.Statements>;
|
|
1186
1186
|
};
|
|
1187
1187
|
owner: {
|
|
1188
|
-
authorize<K_1 extends "
|
|
1189
|
-
actions:
|
|
1188
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins35.Statements>[key] | {
|
|
1189
|
+
actions: better_auth_plugins35.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins35.Statements>[key];
|
|
1190
1190
|
connector: "OR" | "AND";
|
|
1191
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1192
|
-
statements:
|
|
1191
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
|
|
1192
|
+
statements: better_auth_plugins35.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins35.Statements>;
|
|
1193
1193
|
};
|
|
1194
1194
|
};
|
|
1195
1195
|
creatorRole: "admin";
|
|
@@ -1200,10 +1200,10 @@ declare const auth: better_auth0.Auth<{
|
|
|
1200
1200
|
id: string;
|
|
1201
1201
|
role: string;
|
|
1202
1202
|
email: string;
|
|
1203
|
-
organization:
|
|
1204
|
-
invitation:
|
|
1205
|
-
inviter:
|
|
1206
|
-
user:
|
|
1203
|
+
organization: better_auth_plugins35.Organization;
|
|
1204
|
+
invitation: better_auth_plugins35.Invitation;
|
|
1205
|
+
inviter: better_auth_plugins35.Member & {
|
|
1206
|
+
user: better_auth99.User;
|
|
1207
1207
|
};
|
|
1208
1208
|
}): Promise<void>;
|
|
1209
1209
|
schema: {
|
|
@@ -1237,28 +1237,28 @@ declare const auth: better_auth0.Auth<{
|
|
|
1237
1237
|
user,
|
|
1238
1238
|
organization: org
|
|
1239
1239
|
}: {
|
|
1240
|
-
invitation:
|
|
1241
|
-
member:
|
|
1242
|
-
user:
|
|
1243
|
-
organization:
|
|
1240
|
+
invitation: better_auth_plugins35.Invitation & Record<string, any>;
|
|
1241
|
+
member: better_auth_plugins35.Member & Record<string, any>;
|
|
1242
|
+
user: better_auth99.User & Record<string, any>;
|
|
1243
|
+
organization: better_auth_plugins35.Organization & Record<string, any>;
|
|
1244
1244
|
}) => Promise<void>;
|
|
1245
1245
|
beforeUpdateMemberRole: ({
|
|
1246
1246
|
member,
|
|
1247
1247
|
organization: org,
|
|
1248
1248
|
newRole
|
|
1249
1249
|
}: {
|
|
1250
|
-
member:
|
|
1250
|
+
member: better_auth_plugins35.Member & Record<string, any>;
|
|
1251
1251
|
newRole: string;
|
|
1252
|
-
user:
|
|
1253
|
-
organization:
|
|
1252
|
+
user: better_auth99.User & Record<string, any>;
|
|
1253
|
+
organization: better_auth_plugins35.Organization & Record<string, any>;
|
|
1254
1254
|
}) => Promise<void>;
|
|
1255
1255
|
beforeRemoveMember: ({
|
|
1256
1256
|
member,
|
|
1257
1257
|
organization: org
|
|
1258
1258
|
}: {
|
|
1259
|
-
member:
|
|
1260
|
-
user:
|
|
1261
|
-
organization:
|
|
1259
|
+
member: better_auth_plugins35.Member & Record<string, any>;
|
|
1260
|
+
user: better_auth99.User & Record<string, any>;
|
|
1261
|
+
organization: better_auth_plugins35.Organization & Record<string, any>;
|
|
1262
1262
|
}) => Promise<void>;
|
|
1263
1263
|
};
|
|
1264
1264
|
}>, {
|
|
@@ -1306,19 +1306,19 @@ declare const auth: better_auth0.Auth<{
|
|
|
1306
1306
|
};
|
|
1307
1307
|
};
|
|
1308
1308
|
endpoints: {
|
|
1309
|
-
deviceCode:
|
|
1309
|
+
deviceCode: better_auth99.StrictEndpoint<"/device/code", {
|
|
1310
1310
|
method: "POST";
|
|
1311
|
-
body:
|
|
1312
|
-
client_id:
|
|
1313
|
-
scope:
|
|
1314
|
-
},
|
|
1315
|
-
error:
|
|
1316
|
-
error:
|
|
1311
|
+
body: zod344.ZodObject<{
|
|
1312
|
+
client_id: zod344.ZodString;
|
|
1313
|
+
scope: zod344.ZodOptional<zod344.ZodString>;
|
|
1314
|
+
}, better_auth99.$strip>;
|
|
1315
|
+
error: zod344.ZodObject<{
|
|
1316
|
+
error: zod344.ZodEnum<{
|
|
1317
1317
|
invalid_request: "invalid_request";
|
|
1318
1318
|
invalid_client: "invalid_client";
|
|
1319
1319
|
}>;
|
|
1320
|
-
error_description:
|
|
1321
|
-
},
|
|
1320
|
+
error_description: zod344.ZodString;
|
|
1321
|
+
}, better_auth99.$strip>;
|
|
1322
1322
|
metadata: {
|
|
1323
1323
|
openapi: {
|
|
1324
1324
|
description: string;
|
|
@@ -1391,15 +1391,15 @@ declare const auth: better_auth0.Auth<{
|
|
|
1391
1391
|
expires_in: number;
|
|
1392
1392
|
interval: number;
|
|
1393
1393
|
}>;
|
|
1394
|
-
deviceToken:
|
|
1394
|
+
deviceToken: better_auth99.StrictEndpoint<"/device/token", {
|
|
1395
1395
|
method: "POST";
|
|
1396
|
-
body:
|
|
1397
|
-
grant_type:
|
|
1398
|
-
device_code:
|
|
1399
|
-
client_id:
|
|
1400
|
-
},
|
|
1401
|
-
error:
|
|
1402
|
-
error:
|
|
1396
|
+
body: zod344.ZodObject<{
|
|
1397
|
+
grant_type: zod344.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
|
|
1398
|
+
device_code: zod344.ZodString;
|
|
1399
|
+
client_id: zod344.ZodString;
|
|
1400
|
+
}, better_auth99.$strip>;
|
|
1401
|
+
error: zod344.ZodObject<{
|
|
1402
|
+
error: zod344.ZodEnum<{
|
|
1403
1403
|
invalid_request: "invalid_request";
|
|
1404
1404
|
authorization_pending: "authorization_pending";
|
|
1405
1405
|
slow_down: "slow_down";
|
|
@@ -1407,8 +1407,8 @@ declare const auth: better_auth0.Auth<{
|
|
|
1407
1407
|
access_denied: "access_denied";
|
|
1408
1408
|
invalid_grant: "invalid_grant";
|
|
1409
1409
|
}>;
|
|
1410
|
-
error_description:
|
|
1411
|
-
},
|
|
1410
|
+
error_description: zod344.ZodString;
|
|
1411
|
+
}, better_auth99.$strip>;
|
|
1412
1412
|
metadata: {
|
|
1413
1413
|
openapi: {
|
|
1414
1414
|
description: string;
|
|
@@ -1459,17 +1459,17 @@ declare const auth: better_auth0.Auth<{
|
|
|
1459
1459
|
expires_in: number;
|
|
1460
1460
|
scope: string;
|
|
1461
1461
|
}>;
|
|
1462
|
-
deviceVerify:
|
|
1462
|
+
deviceVerify: better_auth99.StrictEndpoint<"/device", {
|
|
1463
1463
|
method: "GET";
|
|
1464
|
-
query:
|
|
1465
|
-
user_code:
|
|
1466
|
-
},
|
|
1467
|
-
error:
|
|
1468
|
-
error:
|
|
1464
|
+
query: zod344.ZodObject<{
|
|
1465
|
+
user_code: zod344.ZodString;
|
|
1466
|
+
}, better_auth99.$strip>;
|
|
1467
|
+
error: zod344.ZodObject<{
|
|
1468
|
+
error: zod344.ZodEnum<{
|
|
1469
1469
|
invalid_request: "invalid_request";
|
|
1470
1470
|
}>;
|
|
1471
|
-
error_description:
|
|
1472
|
-
},
|
|
1471
|
+
error_description: zod344.ZodString;
|
|
1472
|
+
}, better_auth99.$strip>;
|
|
1473
1473
|
metadata: {
|
|
1474
1474
|
openapi: {
|
|
1475
1475
|
description: string;
|
|
@@ -1502,21 +1502,21 @@ declare const auth: better_auth0.Auth<{
|
|
|
1502
1502
|
user_code: string;
|
|
1503
1503
|
status: string;
|
|
1504
1504
|
}>;
|
|
1505
|
-
deviceApprove:
|
|
1505
|
+
deviceApprove: better_auth99.StrictEndpoint<"/device/approve", {
|
|
1506
1506
|
method: "POST";
|
|
1507
|
-
body:
|
|
1508
|
-
userCode:
|
|
1509
|
-
},
|
|
1510
|
-
error:
|
|
1511
|
-
error:
|
|
1507
|
+
body: zod344.ZodObject<{
|
|
1508
|
+
userCode: zod344.ZodString;
|
|
1509
|
+
}, better_auth99.$strip>;
|
|
1510
|
+
error: zod344.ZodObject<{
|
|
1511
|
+
error: zod344.ZodEnum<{
|
|
1512
1512
|
unauthorized: "unauthorized";
|
|
1513
1513
|
invalid_request: "invalid_request";
|
|
1514
1514
|
expired_token: "expired_token";
|
|
1515
1515
|
access_denied: "access_denied";
|
|
1516
1516
|
device_code_already_processed: "device_code_already_processed";
|
|
1517
1517
|
}>;
|
|
1518
|
-
error_description:
|
|
1519
|
-
},
|
|
1518
|
+
error_description: zod344.ZodString;
|
|
1519
|
+
}, better_auth99.$strip>;
|
|
1520
1520
|
requireHeaders: true;
|
|
1521
1521
|
metadata: {
|
|
1522
1522
|
openapi: {
|
|
@@ -1543,20 +1543,20 @@ declare const auth: better_auth0.Auth<{
|
|
|
1543
1543
|
}, {
|
|
1544
1544
|
success: boolean;
|
|
1545
1545
|
}>;
|
|
1546
|
-
deviceDeny:
|
|
1546
|
+
deviceDeny: better_auth99.StrictEndpoint<"/device/deny", {
|
|
1547
1547
|
method: "POST";
|
|
1548
|
-
body:
|
|
1549
|
-
userCode:
|
|
1550
|
-
},
|
|
1551
|
-
error:
|
|
1552
|
-
error:
|
|
1548
|
+
body: zod344.ZodObject<{
|
|
1549
|
+
userCode: zod344.ZodString;
|
|
1550
|
+
}, better_auth99.$strip>;
|
|
1551
|
+
error: zod344.ZodObject<{
|
|
1552
|
+
error: zod344.ZodEnum<{
|
|
1553
1553
|
unauthorized: "unauthorized";
|
|
1554
1554
|
invalid_request: "invalid_request";
|
|
1555
1555
|
expired_token: "expired_token";
|
|
1556
1556
|
access_denied: "access_denied";
|
|
1557
1557
|
}>;
|
|
1558
|
-
error_description:
|
|
1559
|
-
},
|
|
1558
|
+
error_description: zod344.ZodString;
|
|
1559
|
+
}, better_auth99.$strip>;
|
|
1560
1560
|
requireHeaders: true;
|
|
1561
1561
|
metadata: {
|
|
1562
1562
|
openapi: {
|
|
@@ -1599,8 +1599,8 @@ declare const auth: better_auth0.Auth<{
|
|
|
1599
1599
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1600
1600
|
};
|
|
1601
1601
|
options: Partial<{
|
|
1602
|
-
expiresIn:
|
|
1603
|
-
interval:
|
|
1602
|
+
expiresIn: better_auth_plugins35.TimeString;
|
|
1603
|
+
interval: better_auth_plugins35.TimeString;
|
|
1604
1604
|
deviceCodeLength: number;
|
|
1605
1605
|
userCodeLength: number;
|
|
1606
1606
|
schema: {
|
|
@@ -1627,6 +1627,6 @@ declare const auth: better_auth0.Auth<{
|
|
|
1627
1627
|
}>;
|
|
1628
1628
|
}];
|
|
1629
1629
|
}>;
|
|
1630
|
-
declare const app: Hono<
|
|
1630
|
+
declare const app: Hono<hono_types3.BlankEnv, hono_types3.BlankSchema, "/">;
|
|
1631
1631
|
//#endregion
|
|
1632
1632
|
export { type AppConfig, type AppVariables, Hono, type NativeSandboxConfig, type SSOProviderConfig, type SandboxConfig, type UserAuthConfig, type VercelSandboxConfig, auth, createAgentsApp, createAgentsHono, createAuth0Provider, createOIDCProvider, app as default };
|