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