@inkeep/agents-api 0.46.0 → 0.47.0
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 +5 -5
- package/dist/.well-known/workflow/v1/step.cjs +41 -43
- package/dist/createApp.d.ts +2 -2
- package/dist/createApp.js +1 -3
- package/dist/domains/evals/routes/datasetTriggers.d.ts +2 -2
- package/dist/domains/evals/routes/index.d.ts +2 -2
- package/dist/domains/evals/services/EvaluationService.js +1 -2
- package/dist/domains/evals/workflow/routes.d.ts +2 -2
- package/dist/domains/manage/index.js +4 -2
- package/dist/domains/manage/routes/availableAgents.d.ts +2 -2
- package/dist/domains/manage/routes/availableAgents.js +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/invitations.js +59 -0
- package/dist/domains/manage/routes/mcp.d.ts +2 -2
- package/dist/domains/manage/routes/{userOrganizations.d.ts → passwordResetLinks.d.ts} +3 -3
- package/dist/domains/manage/routes/passwordResetLinks.js +61 -0
- package/dist/domains/manage/routes/signoz.d.ts +2 -2
- package/dist/domains/manage/routes/users.d.ts +10 -0
- package/dist/domains/manage/routes/users.js +78 -0
- package/dist/domains/mcp/routes/mcp.d.ts +2 -2
- package/dist/domains/run/a2a/client.d.ts +0 -2
- package/dist/domains/run/a2a/client.js +5 -7
- package/dist/domains/run/agents/Agent.d.ts +41 -15
- package/dist/domains/run/agents/Agent.js +127 -281
- package/dist/domains/run/agents/generateTaskHandler.js +10 -5
- package/dist/domains/run/agents/relationTools.d.ts +2 -2
- package/dist/domains/run/agents/relationTools.js +1 -3
- package/dist/domains/run/agents/types.d.ts +2 -1
- package/dist/domains/run/agents/versions/v1/{Phase1Config.d.ts → PromptConfig.d.ts} +5 -4
- package/dist/domains/run/agents/versions/v1/{Phase1Config.js → PromptConfig.js} +36 -19
- package/dist/domains/run/handlers/executionHandler.js +8 -12
- package/dist/domains/run/utils/token-estimator.d.ts +2 -2
- package/dist/factory.d.ts +59 -25
- package/dist/index.d.ts +128 -94
- package/dist/middleware/evalsAuth.d.ts +2 -2
- package/dist/middleware/manageAuth.d.ts +2 -2
- package/dist/middleware/projectAccess.d.ts +2 -2
- package/dist/middleware/projectConfig.d.ts +3 -3
- package/dist/middleware/requirePermission.d.ts +2 -2
- package/dist/middleware/runAuth.d.ts +4 -4
- package/dist/middleware/sessionAuth.d.ts +3 -3
- package/dist/middleware/tenantAccess.d.ts +2 -2
- package/dist/middleware/tracing.d.ts +3 -3
- package/dist/templates/v1/prompt/system-prompt.js +5 -0
- package/dist/templates/v1/{phase1 → prompt}/tool.js +1 -1
- package/dist/templates/v1/shared/artifact-retrieval-guidance.js +1 -1
- package/dist/templates/v1/{phase2 → shared}/data-component.js +1 -1
- package/dist/templates/v1/{phase2 → shared}/data-components.js +1 -1
- package/package.json +6 -6
- package/dist/domains/manage/routes/userOrganizations.js +0 -29
- package/dist/domains/run/agents/versions/v1/Phase2Config.d.ts +0 -33
- package/dist/domains/run/agents/versions/v1/Phase2Config.js +0 -341
- package/dist/templates/v1/phase1/system-prompt.js +0 -5
- package/dist/templates/v1/phase1/thinking-preparation.js +0 -5
- package/dist/templates/v1/phase2/system-prompt.js +0 -5
- package/dist/utils/in-process-fetch.d.ts +0 -22
- package/dist/utils/in-process-fetch.js +0 -32
package/dist/index.d.ts
CHANGED
|
@@ -7,22 +7,32 @@ import { createAuth0Provider, createOIDCProvider } from "./ssoHelpers.js";
|
|
|
7
7
|
import { SSOProviderConfig, UserAuthConfig, createAgentsApp } from "./factory.js";
|
|
8
8
|
import { Hono } from "hono";
|
|
9
9
|
import * as zod205 from "zod";
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
10
|
+
import * as hono_types3 from "hono/types";
|
|
11
|
+
import * as better_auth79 from "better-auth";
|
|
12
12
|
import * as better_auth_plugins69 from "better-auth/plugins";
|
|
13
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_auth79.Auth<{
|
|
17
17
|
baseURL: string;
|
|
18
18
|
secret: string;
|
|
19
|
-
database: (options:
|
|
19
|
+
database: (options: better_auth79.BetterAuthOptions) => better_auth79.DBAdapter<better_auth79.BetterAuthOptions>;
|
|
20
20
|
emailAndPassword: {
|
|
21
21
|
enabled: true;
|
|
22
22
|
minPasswordLength: number;
|
|
23
23
|
maxPasswordLength: number;
|
|
24
24
|
requireEmailVerification: false;
|
|
25
25
|
autoSignIn: true;
|
|
26
|
+
resetPasswordTokenExpiresIn: number;
|
|
27
|
+
sendResetPassword: ({
|
|
28
|
+
user,
|
|
29
|
+
url,
|
|
30
|
+
token
|
|
31
|
+
}: {
|
|
32
|
+
user: better_auth79.User;
|
|
33
|
+
url: string;
|
|
34
|
+
token: string;
|
|
35
|
+
}) => Promise<void>;
|
|
26
36
|
};
|
|
27
37
|
account: {
|
|
28
38
|
accountLinking: {
|
|
@@ -71,7 +81,7 @@ declare const auth: better_auth78.Auth<{
|
|
|
71
81
|
clientKey?: string | undefined;
|
|
72
82
|
disableIdTokenSignIn?: boolean | undefined;
|
|
73
83
|
verifyIdToken?: ((token: string, nonce?: string) => Promise<boolean>) | undefined;
|
|
74
|
-
getUserInfo?: ((token:
|
|
84
|
+
getUserInfo?: ((token: better_auth79.OAuth2Tokens) => Promise<{
|
|
75
85
|
user: {
|
|
76
86
|
id: string;
|
|
77
87
|
name?: string;
|
|
@@ -82,8 +92,8 @@ declare const auth: better_auth78.Auth<{
|
|
|
82
92
|
};
|
|
83
93
|
data: any;
|
|
84
94
|
} | null>) | undefined;
|
|
85
|
-
refreshAccessToken?: ((refreshToken: string) => Promise<
|
|
86
|
-
mapProfileToUser?: ((profile:
|
|
95
|
+
refreshAccessToken?: ((refreshToken: string) => Promise<better_auth79.OAuth2Tokens>) | undefined;
|
|
96
|
+
mapProfileToUser?: ((profile: better_auth79.GoogleProfile) => {
|
|
87
97
|
id?: string;
|
|
88
98
|
name?: string;
|
|
89
99
|
email?: string | null;
|
|
@@ -130,15 +140,15 @@ declare const auth: better_auth78.Auth<{
|
|
|
130
140
|
cookies?: {
|
|
131
141
|
[key: string]: {
|
|
132
142
|
name?: string;
|
|
133
|
-
attributes?:
|
|
143
|
+
attributes?: better_auth79.CookieOptions;
|
|
134
144
|
};
|
|
135
145
|
} | undefined;
|
|
136
|
-
defaultCookieAttributes:
|
|
146
|
+
defaultCookieAttributes: better_auth79.CookieOptions;
|
|
137
147
|
cookiePrefix?: string | undefined;
|
|
138
148
|
database?: {
|
|
139
149
|
defaultFindManyLimit?: number;
|
|
140
150
|
useNumberId?: boolean;
|
|
141
|
-
generateId?:
|
|
151
|
+
generateId?: better_auth79.GenerateIdFn | false | "serial" | "uuid";
|
|
142
152
|
} | undefined;
|
|
143
153
|
trustedProxyHeaders?: boolean | undefined;
|
|
144
154
|
backgroundTasks?: {
|
|
@@ -150,23 +160,23 @@ declare const auth: better_auth78.Auth<{
|
|
|
150
160
|
id: "bearer";
|
|
151
161
|
hooks: {
|
|
152
162
|
before: {
|
|
153
|
-
matcher(context:
|
|
154
|
-
handler: (inputContext:
|
|
163
|
+
matcher(context: better_auth79.HookEndpointContext): boolean;
|
|
164
|
+
handler: (inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<{
|
|
155
165
|
context: {
|
|
156
166
|
headers: Headers;
|
|
157
167
|
};
|
|
158
168
|
} | undefined>;
|
|
159
169
|
}[];
|
|
160
170
|
after: {
|
|
161
|
-
matcher(context:
|
|
162
|
-
handler: (inputContext:
|
|
171
|
+
matcher(context: better_auth79.HookEndpointContext): true;
|
|
172
|
+
handler: (inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<void>;
|
|
163
173
|
}[];
|
|
164
174
|
};
|
|
165
175
|
options: better_auth_plugins69.BearerOptions | undefined;
|
|
166
176
|
}, {
|
|
167
177
|
id: "sso";
|
|
168
178
|
endpoints: {
|
|
169
|
-
spMetadata: ReturnType<() =>
|
|
179
|
+
spMetadata: ReturnType<() => better_auth79.StrictEndpoint<"/sso/saml2/sp/metadata", {
|
|
170
180
|
method: "GET";
|
|
171
181
|
query: zod205.ZodObject<{
|
|
172
182
|
providerId: zod205.ZodString;
|
|
@@ -174,7 +184,7 @@ declare const auth: better_auth78.Auth<{
|
|
|
174
184
|
xml: "xml";
|
|
175
185
|
json: "json";
|
|
176
186
|
}>>;
|
|
177
|
-
},
|
|
187
|
+
}, better_auth79.$strip>;
|
|
178
188
|
metadata: {
|
|
179
189
|
openapi: {
|
|
180
190
|
operationId: string;
|
|
@@ -188,7 +198,7 @@ declare const auth: better_auth78.Auth<{
|
|
|
188
198
|
};
|
|
189
199
|
};
|
|
190
200
|
}, Response>>;
|
|
191
|
-
registerSSOProvider:
|
|
201
|
+
registerSSOProvider: better_auth79.StrictEndpoint<"/sso/register", {
|
|
192
202
|
method: "POST";
|
|
193
203
|
body: zod205.ZodObject<{
|
|
194
204
|
providerId: zod205.ZodString;
|
|
@@ -216,8 +226,8 @@ declare const auth: better_auth78.Auth<{
|
|
|
216
226
|
name: zod205.ZodString;
|
|
217
227
|
image: zod205.ZodOptional<zod205.ZodString>;
|
|
218
228
|
extraFields: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
|
|
219
|
-
},
|
|
220
|
-
},
|
|
229
|
+
}, better_auth79.$strip>>;
|
|
230
|
+
}, better_auth79.$strip>>;
|
|
221
231
|
samlConfig: zod205.ZodOptional<zod205.ZodObject<{
|
|
222
232
|
entryPoint: zod205.ZodString;
|
|
223
233
|
cert: zod205.ZodString;
|
|
@@ -235,8 +245,8 @@ declare const auth: better_auth78.Auth<{
|
|
|
235
245
|
singleSignOnService: zod205.ZodOptional<zod205.ZodArray<zod205.ZodObject<{
|
|
236
246
|
Binding: zod205.ZodString;
|
|
237
247
|
Location: zod205.ZodString;
|
|
238
|
-
},
|
|
239
|
-
},
|
|
248
|
+
}, better_auth79.$strip>>>;
|
|
249
|
+
}, better_auth79.$strip>>;
|
|
240
250
|
spMetadata: zod205.ZodObject<{
|
|
241
251
|
metadata: zod205.ZodOptional<zod205.ZodString>;
|
|
242
252
|
entityID: zod205.ZodOptional<zod205.ZodString>;
|
|
@@ -246,7 +256,7 @@ declare const auth: better_auth78.Auth<{
|
|
|
246
256
|
isAssertionEncrypted: zod205.ZodOptional<zod205.ZodBoolean>;
|
|
247
257
|
encPrivateKey: zod205.ZodOptional<zod205.ZodString>;
|
|
248
258
|
encPrivateKeyPass: zod205.ZodOptional<zod205.ZodString>;
|
|
249
|
-
},
|
|
259
|
+
}, better_auth79.$strip>;
|
|
250
260
|
wantAssertionsSigned: zod205.ZodOptional<zod205.ZodBoolean>;
|
|
251
261
|
signatureAlgorithm: zod205.ZodOptional<zod205.ZodString>;
|
|
252
262
|
digestAlgorithm: zod205.ZodOptional<zod205.ZodString>;
|
|
@@ -262,12 +272,12 @@ declare const auth: better_auth78.Auth<{
|
|
|
262
272
|
firstName: zod205.ZodOptional<zod205.ZodString>;
|
|
263
273
|
lastName: zod205.ZodOptional<zod205.ZodString>;
|
|
264
274
|
extraFields: zod205.ZodOptional<zod205.ZodRecord<zod205.ZodString, zod205.ZodAny>>;
|
|
265
|
-
},
|
|
266
|
-
},
|
|
275
|
+
}, better_auth79.$strip>>;
|
|
276
|
+
}, better_auth79.$strip>>;
|
|
267
277
|
organizationId: zod205.ZodOptional<zod205.ZodString>;
|
|
268
278
|
overrideUserInfo: zod205.ZodOptional<zod205.ZodDefault<zod205.ZodBoolean>>;
|
|
269
|
-
},
|
|
270
|
-
use: ((inputContext:
|
|
279
|
+
}, better_auth79.$strip>;
|
|
280
|
+
use: ((inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<{
|
|
271
281
|
session: {
|
|
272
282
|
session: Record<string, any> & {
|
|
273
283
|
id: string;
|
|
@@ -464,7 +474,7 @@ declare const auth: better_auth78.Auth<{
|
|
|
464
474
|
organizationId?: string | undefined;
|
|
465
475
|
domain: string;
|
|
466
476
|
}, "oidcConfig" | "samlConfig">>;
|
|
467
|
-
signInSSO: ReturnType<(options?: _better_auth_sso10.SSOOptions) =>
|
|
477
|
+
signInSSO: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth79.StrictEndpoint<"/sign-in/sso", {
|
|
468
478
|
method: "POST";
|
|
469
479
|
body: zod205.ZodObject<{
|
|
470
480
|
email: zod205.ZodOptional<zod205.ZodString>;
|
|
@@ -481,7 +491,7 @@ declare const auth: better_auth78.Auth<{
|
|
|
481
491
|
saml: "saml";
|
|
482
492
|
oidc: "oidc";
|
|
483
493
|
}>>;
|
|
484
|
-
},
|
|
494
|
+
}, better_auth79.$strip>;
|
|
485
495
|
metadata: {
|
|
486
496
|
openapi: {
|
|
487
497
|
operationId: string;
|
|
@@ -558,14 +568,14 @@ declare const auth: better_auth78.Auth<{
|
|
|
558
568
|
url: string;
|
|
559
569
|
redirect: boolean;
|
|
560
570
|
}>>;
|
|
561
|
-
callbackSSO: ReturnType<(options?: _better_auth_sso10.SSOOptions) =>
|
|
571
|
+
callbackSSO: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth79.StrictEndpoint<"/sso/callback/:providerId", {
|
|
562
572
|
method: "GET";
|
|
563
573
|
query: zod205.ZodObject<{
|
|
564
574
|
code: zod205.ZodOptional<zod205.ZodString>;
|
|
565
575
|
state: zod205.ZodString;
|
|
566
576
|
error: zod205.ZodOptional<zod205.ZodString>;
|
|
567
577
|
error_description: zod205.ZodOptional<zod205.ZodString>;
|
|
568
|
-
},
|
|
578
|
+
}, better_auth79.$strip>;
|
|
569
579
|
allowedMediaTypes: string[];
|
|
570
580
|
metadata: {
|
|
571
581
|
openapi: {
|
|
@@ -581,12 +591,12 @@ declare const auth: better_auth78.Auth<{
|
|
|
581
591
|
scope: "server";
|
|
582
592
|
};
|
|
583
593
|
}, never>>;
|
|
584
|
-
callbackSSOSAML: ReturnType<(options?: _better_auth_sso10.SSOOptions) =>
|
|
594
|
+
callbackSSOSAML: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth79.StrictEndpoint<"/sso/saml2/callback/:providerId", {
|
|
585
595
|
method: "POST";
|
|
586
596
|
body: zod205.ZodObject<{
|
|
587
597
|
SAMLResponse: zod205.ZodString;
|
|
588
598
|
RelayState: zod205.ZodOptional<zod205.ZodString>;
|
|
589
|
-
},
|
|
599
|
+
}, better_auth79.$strip>;
|
|
590
600
|
metadata: {
|
|
591
601
|
allowedMediaTypes: string[];
|
|
592
602
|
openapi: {
|
|
@@ -608,15 +618,15 @@ declare const auth: better_auth78.Auth<{
|
|
|
608
618
|
scope: "server";
|
|
609
619
|
};
|
|
610
620
|
}, never>>;
|
|
611
|
-
acsEndpoint: ReturnType<(options?: _better_auth_sso10.SSOOptions) =>
|
|
621
|
+
acsEndpoint: ReturnType<(options?: _better_auth_sso10.SSOOptions) => better_auth79.StrictEndpoint<"/sso/saml2/sp/acs/:providerId", {
|
|
612
622
|
method: "POST";
|
|
613
623
|
params: zod205.ZodObject<{
|
|
614
624
|
providerId: zod205.ZodOptional<zod205.ZodString>;
|
|
615
|
-
},
|
|
625
|
+
}, better_auth79.$strip>;
|
|
616
626
|
body: zod205.ZodObject<{
|
|
617
627
|
SAMLResponse: zod205.ZodString;
|
|
618
628
|
RelayState: zod205.ZodOptional<zod205.ZodString>;
|
|
619
|
-
},
|
|
629
|
+
}, better_auth79.$strip>;
|
|
620
630
|
metadata: {
|
|
621
631
|
allowedMediaTypes: string[];
|
|
622
632
|
openapi: {
|
|
@@ -633,11 +643,11 @@ declare const auth: better_auth78.Auth<{
|
|
|
633
643
|
};
|
|
634
644
|
}, never>>;
|
|
635
645
|
} & {
|
|
636
|
-
requestDomainVerification: ReturnType<(options: _better_auth_sso10.SSOOptions) =>
|
|
646
|
+
requestDomainVerification: ReturnType<(options: _better_auth_sso10.SSOOptions) => better_auth79.StrictEndpoint<"/sso/request-domain-verification", {
|
|
637
647
|
method: "POST";
|
|
638
648
|
body: zod205.ZodObject<{
|
|
639
649
|
providerId: zod205.ZodString;
|
|
640
|
-
},
|
|
650
|
+
}, better_auth79.$strip>;
|
|
641
651
|
metadata: {
|
|
642
652
|
openapi: {
|
|
643
653
|
summary: string;
|
|
@@ -655,7 +665,7 @@ declare const auth: better_auth78.Auth<{
|
|
|
655
665
|
};
|
|
656
666
|
};
|
|
657
667
|
};
|
|
658
|
-
use: ((inputContext:
|
|
668
|
+
use: ((inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<{
|
|
659
669
|
session: {
|
|
660
670
|
session: Record<string, any> & {
|
|
661
671
|
id: string;
|
|
@@ -681,11 +691,11 @@ declare const auth: better_auth78.Auth<{
|
|
|
681
691
|
}, {
|
|
682
692
|
domainVerificationToken: string;
|
|
683
693
|
}>>;
|
|
684
|
-
verifyDomain: ReturnType<(options: _better_auth_sso10.SSOOptions) =>
|
|
694
|
+
verifyDomain: ReturnType<(options: _better_auth_sso10.SSOOptions) => better_auth79.StrictEndpoint<"/sso/verify-domain", {
|
|
685
695
|
method: "POST";
|
|
686
696
|
body: zod205.ZodObject<{
|
|
687
697
|
providerId: zod205.ZodString;
|
|
688
|
-
},
|
|
698
|
+
}, better_auth79.$strip>;
|
|
689
699
|
metadata: {
|
|
690
700
|
openapi: {
|
|
691
701
|
summary: string;
|
|
@@ -706,7 +716,7 @@ declare const auth: better_auth78.Auth<{
|
|
|
706
716
|
};
|
|
707
717
|
};
|
|
708
718
|
};
|
|
709
|
-
use: ((inputContext:
|
|
719
|
+
use: ((inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<{
|
|
710
720
|
session: {
|
|
711
721
|
session: Record<string, any> & {
|
|
712
722
|
id: string;
|
|
@@ -743,14 +753,14 @@ declare const auth: better_auth78.Auth<{
|
|
|
743
753
|
productionURL: string;
|
|
744
754
|
}>;
|
|
745
755
|
endpoints: {
|
|
746
|
-
oAuthProxy:
|
|
756
|
+
oAuthProxy: better_auth79.StrictEndpoint<"/oauth-proxy-callback", {
|
|
747
757
|
method: "GET";
|
|
748
758
|
operationId: string;
|
|
749
759
|
query: zod205.ZodObject<{
|
|
750
760
|
callbackURL: zod205.ZodString;
|
|
751
761
|
cookies: zod205.ZodString;
|
|
752
|
-
},
|
|
753
|
-
use: ((inputContext:
|
|
762
|
+
}, better_auth79.$strip>;
|
|
763
|
+
use: ((inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<void>)[];
|
|
754
764
|
metadata: {
|
|
755
765
|
openapi: {
|
|
756
766
|
operationId: string;
|
|
@@ -780,12 +790,12 @@ declare const auth: better_auth78.Auth<{
|
|
|
780
790
|
};
|
|
781
791
|
hooks: {
|
|
782
792
|
before: {
|
|
783
|
-
matcher(context:
|
|
784
|
-
handler: (inputContext:
|
|
793
|
+
matcher(context: better_auth79.HookEndpointContext): boolean;
|
|
794
|
+
handler: (inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<void>;
|
|
785
795
|
}[];
|
|
786
796
|
after: {
|
|
787
|
-
matcher(context:
|
|
788
|
-
handler: (inputContext:
|
|
797
|
+
matcher(context: better_auth79.HookEndpointContext): boolean;
|
|
798
|
+
handler: (inputContext: better_auth79.MiddlewareInputContext<better_auth79.MiddlewareOptions>) => Promise<void>;
|
|
789
799
|
}[];
|
|
790
800
|
};
|
|
791
801
|
}, {
|
|
@@ -795,25 +805,25 @@ declare const auth: better_auth78.Auth<{
|
|
|
795
805
|
ac: better_auth_plugins69.AccessControl;
|
|
796
806
|
roles: {
|
|
797
807
|
member: {
|
|
798
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "
|
|
799
|
-
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "
|
|
808
|
+
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] | {
|
|
809
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>[key];
|
|
800
810
|
connector: "OR" | "AND";
|
|
801
811
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
802
|
-
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "
|
|
812
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>;
|
|
803
813
|
};
|
|
804
814
|
admin: {
|
|
805
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "
|
|
806
|
-
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "
|
|
815
|
+
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] | {
|
|
816
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>[key];
|
|
807
817
|
connector: "OR" | "AND";
|
|
808
818
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
809
|
-
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "
|
|
819
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>;
|
|
810
820
|
};
|
|
811
821
|
owner: {
|
|
812
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "
|
|
813
|
-
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "
|
|
822
|
+
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] | {
|
|
823
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>[key];
|
|
814
824
|
connector: "OR" | "AND";
|
|
815
825
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
816
|
-
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "
|
|
826
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>;
|
|
817
827
|
};
|
|
818
828
|
};
|
|
819
829
|
creatorRole: "admin";
|
|
@@ -827,9 +837,20 @@ declare const auth: better_auth78.Auth<{
|
|
|
827
837
|
organization: better_auth_plugins69.Organization;
|
|
828
838
|
invitation: better_auth_plugins69.Invitation;
|
|
829
839
|
inviter: better_auth_plugins69.Member & {
|
|
830
|
-
user:
|
|
840
|
+
user: better_auth79.User;
|
|
831
841
|
};
|
|
832
842
|
}): Promise<void>;
|
|
843
|
+
schema: {
|
|
844
|
+
invitation: {
|
|
845
|
+
additionalFields: {
|
|
846
|
+
authMethod: {
|
|
847
|
+
type: "string";
|
|
848
|
+
input: true;
|
|
849
|
+
required: false;
|
|
850
|
+
};
|
|
851
|
+
};
|
|
852
|
+
};
|
|
853
|
+
};
|
|
833
854
|
organizationHooks: {
|
|
834
855
|
afterAcceptInvitation: ({
|
|
835
856
|
member,
|
|
@@ -838,7 +859,7 @@ declare const auth: better_auth78.Auth<{
|
|
|
838
859
|
}: {
|
|
839
860
|
invitation: better_auth_plugins69.Invitation & Record<string, any>;
|
|
840
861
|
member: better_auth_plugins69.Member & Record<string, any>;
|
|
841
|
-
user:
|
|
862
|
+
user: better_auth79.User & Record<string, any>;
|
|
842
863
|
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
843
864
|
}) => Promise<void>;
|
|
844
865
|
beforeUpdateMemberRole: ({
|
|
@@ -848,7 +869,7 @@ declare const auth: better_auth78.Auth<{
|
|
|
848
869
|
}: {
|
|
849
870
|
member: better_auth_plugins69.Member & Record<string, any>;
|
|
850
871
|
newRole: string;
|
|
851
|
-
user:
|
|
872
|
+
user: better_auth79.User & Record<string, any>;
|
|
852
873
|
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
853
874
|
}) => Promise<void>;
|
|
854
875
|
afterRemoveMember: ({
|
|
@@ -856,7 +877,7 @@ declare const auth: better_auth78.Auth<{
|
|
|
856
877
|
organization: org
|
|
857
878
|
}: {
|
|
858
879
|
member: better_auth_plugins69.Member & Record<string, any>;
|
|
859
|
-
user:
|
|
880
|
+
user: better_auth79.User & Record<string, any>;
|
|
860
881
|
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
861
882
|
}) => Promise<void>;
|
|
862
883
|
};
|
|
@@ -988,16 +1009,17 @@ declare const auth: better_auth78.Auth<{
|
|
|
988
1009
|
id: string;
|
|
989
1010
|
organizationId: string;
|
|
990
1011
|
email: string;
|
|
991
|
-
role: "member" | "
|
|
1012
|
+
role: "member" | "owner" | "admin";
|
|
992
1013
|
status: better_auth_plugins69.InvitationStatus;
|
|
993
1014
|
inviterId: string;
|
|
994
1015
|
expiresAt: Date;
|
|
995
1016
|
createdAt: Date;
|
|
1017
|
+
authMethod?: string | undefined;
|
|
996
1018
|
};
|
|
997
1019
|
Member: {
|
|
998
1020
|
id: string;
|
|
999
1021
|
organizationId: string;
|
|
1000
|
-
role: "member" | "
|
|
1022
|
+
role: "member" | "owner" | "admin";
|
|
1001
1023
|
createdAt: Date;
|
|
1002
1024
|
userId: string;
|
|
1003
1025
|
user: {
|
|
@@ -1013,7 +1035,7 @@ declare const auth: better_auth78.Auth<{
|
|
|
1013
1035
|
members: {
|
|
1014
1036
|
id: string;
|
|
1015
1037
|
organizationId: string;
|
|
1016
|
-
role: "member" | "
|
|
1038
|
+
role: "member" | "owner" | "admin";
|
|
1017
1039
|
createdAt: Date;
|
|
1018
1040
|
userId: string;
|
|
1019
1041
|
user: {
|
|
@@ -1027,11 +1049,12 @@ declare const auth: better_auth78.Auth<{
|
|
|
1027
1049
|
id: string;
|
|
1028
1050
|
organizationId: string;
|
|
1029
1051
|
email: string;
|
|
1030
|
-
role: "member" | "
|
|
1052
|
+
role: "member" | "owner" | "admin";
|
|
1031
1053
|
status: better_auth_plugins69.InvitationStatus;
|
|
1032
1054
|
inviterId: string;
|
|
1033
1055
|
expiresAt: Date;
|
|
1034
1056
|
createdAt: Date;
|
|
1057
|
+
authMethod?: string | undefined;
|
|
1035
1058
|
}[];
|
|
1036
1059
|
} & {
|
|
1037
1060
|
id: string;
|
|
@@ -1105,25 +1128,25 @@ declare const auth: better_auth78.Auth<{
|
|
|
1105
1128
|
ac: better_auth_plugins69.AccessControl;
|
|
1106
1129
|
roles: {
|
|
1107
1130
|
member: {
|
|
1108
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "
|
|
1109
|
-
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "
|
|
1131
|
+
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] | {
|
|
1132
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>[key];
|
|
1110
1133
|
connector: "OR" | "AND";
|
|
1111
1134
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
1112
|
-
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "
|
|
1135
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>;
|
|
1113
1136
|
};
|
|
1114
1137
|
admin: {
|
|
1115
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "
|
|
1116
|
-
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "
|
|
1138
|
+
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] | {
|
|
1139
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>[key];
|
|
1117
1140
|
connector: "OR" | "AND";
|
|
1118
1141
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
1119
|
-
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "
|
|
1142
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>;
|
|
1120
1143
|
};
|
|
1121
1144
|
owner: {
|
|
1122
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "
|
|
1123
|
-
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "
|
|
1145
|
+
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] | {
|
|
1146
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>[key];
|
|
1124
1147
|
connector: "OR" | "AND";
|
|
1125
1148
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
1126
|
-
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "
|
|
1149
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins69.Statements>;
|
|
1127
1150
|
};
|
|
1128
1151
|
};
|
|
1129
1152
|
creatorRole: "admin";
|
|
@@ -1137,9 +1160,20 @@ declare const auth: better_auth78.Auth<{
|
|
|
1137
1160
|
organization: better_auth_plugins69.Organization;
|
|
1138
1161
|
invitation: better_auth_plugins69.Invitation;
|
|
1139
1162
|
inviter: better_auth_plugins69.Member & {
|
|
1140
|
-
user:
|
|
1163
|
+
user: better_auth79.User;
|
|
1141
1164
|
};
|
|
1142
1165
|
}): Promise<void>;
|
|
1166
|
+
schema: {
|
|
1167
|
+
invitation: {
|
|
1168
|
+
additionalFields: {
|
|
1169
|
+
authMethod: {
|
|
1170
|
+
type: "string";
|
|
1171
|
+
input: true;
|
|
1172
|
+
required: false;
|
|
1173
|
+
};
|
|
1174
|
+
};
|
|
1175
|
+
};
|
|
1176
|
+
};
|
|
1143
1177
|
organizationHooks: {
|
|
1144
1178
|
afterAcceptInvitation: ({
|
|
1145
1179
|
member,
|
|
@@ -1148,7 +1182,7 @@ declare const auth: better_auth78.Auth<{
|
|
|
1148
1182
|
}: {
|
|
1149
1183
|
invitation: better_auth_plugins69.Invitation & Record<string, any>;
|
|
1150
1184
|
member: better_auth_plugins69.Member & Record<string, any>;
|
|
1151
|
-
user:
|
|
1185
|
+
user: better_auth79.User & Record<string, any>;
|
|
1152
1186
|
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
1153
1187
|
}) => Promise<void>;
|
|
1154
1188
|
beforeUpdateMemberRole: ({
|
|
@@ -1158,7 +1192,7 @@ declare const auth: better_auth78.Auth<{
|
|
|
1158
1192
|
}: {
|
|
1159
1193
|
member: better_auth_plugins69.Member & Record<string, any>;
|
|
1160
1194
|
newRole: string;
|
|
1161
|
-
user:
|
|
1195
|
+
user: better_auth79.User & Record<string, any>;
|
|
1162
1196
|
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
1163
1197
|
}) => Promise<void>;
|
|
1164
1198
|
afterRemoveMember: ({
|
|
@@ -1166,7 +1200,7 @@ declare const auth: better_auth78.Auth<{
|
|
|
1166
1200
|
organization: org
|
|
1167
1201
|
}: {
|
|
1168
1202
|
member: better_auth_plugins69.Member & Record<string, any>;
|
|
1169
|
-
user:
|
|
1203
|
+
user: better_auth79.User & Record<string, any>;
|
|
1170
1204
|
organization: better_auth_plugins69.Organization & Record<string, any>;
|
|
1171
1205
|
}) => Promise<void>;
|
|
1172
1206
|
};
|
|
@@ -1216,19 +1250,19 @@ declare const auth: better_auth78.Auth<{
|
|
|
1216
1250
|
};
|
|
1217
1251
|
};
|
|
1218
1252
|
endpoints: {
|
|
1219
|
-
deviceCode:
|
|
1253
|
+
deviceCode: better_auth79.StrictEndpoint<"/device/code", {
|
|
1220
1254
|
method: "POST";
|
|
1221
1255
|
body: zod205.ZodObject<{
|
|
1222
1256
|
client_id: zod205.ZodString;
|
|
1223
1257
|
scope: zod205.ZodOptional<zod205.ZodString>;
|
|
1224
|
-
},
|
|
1258
|
+
}, better_auth79.$strip>;
|
|
1225
1259
|
error: zod205.ZodObject<{
|
|
1226
1260
|
error: zod205.ZodEnum<{
|
|
1227
1261
|
invalid_request: "invalid_request";
|
|
1228
1262
|
invalid_client: "invalid_client";
|
|
1229
1263
|
}>;
|
|
1230
1264
|
error_description: zod205.ZodString;
|
|
1231
|
-
},
|
|
1265
|
+
}, better_auth79.$strip>;
|
|
1232
1266
|
metadata: {
|
|
1233
1267
|
openapi: {
|
|
1234
1268
|
description: string;
|
|
@@ -1301,13 +1335,13 @@ declare const auth: better_auth78.Auth<{
|
|
|
1301
1335
|
expires_in: number;
|
|
1302
1336
|
interval: number;
|
|
1303
1337
|
}>;
|
|
1304
|
-
deviceToken:
|
|
1338
|
+
deviceToken: better_auth79.StrictEndpoint<"/device/token", {
|
|
1305
1339
|
method: "POST";
|
|
1306
1340
|
body: zod205.ZodObject<{
|
|
1307
1341
|
grant_type: zod205.ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
|
|
1308
1342
|
device_code: zod205.ZodString;
|
|
1309
1343
|
client_id: zod205.ZodString;
|
|
1310
|
-
},
|
|
1344
|
+
}, better_auth79.$strip>;
|
|
1311
1345
|
error: zod205.ZodObject<{
|
|
1312
1346
|
error: zod205.ZodEnum<{
|
|
1313
1347
|
invalid_request: "invalid_request";
|
|
@@ -1318,7 +1352,7 @@ declare const auth: better_auth78.Auth<{
|
|
|
1318
1352
|
invalid_grant: "invalid_grant";
|
|
1319
1353
|
}>;
|
|
1320
1354
|
error_description: zod205.ZodString;
|
|
1321
|
-
},
|
|
1355
|
+
}, better_auth79.$strip>;
|
|
1322
1356
|
metadata: {
|
|
1323
1357
|
openapi: {
|
|
1324
1358
|
description: string;
|
|
@@ -1369,17 +1403,17 @@ declare const auth: better_auth78.Auth<{
|
|
|
1369
1403
|
expires_in: number;
|
|
1370
1404
|
scope: string;
|
|
1371
1405
|
}>;
|
|
1372
|
-
deviceVerify:
|
|
1406
|
+
deviceVerify: better_auth79.StrictEndpoint<"/device", {
|
|
1373
1407
|
method: "GET";
|
|
1374
1408
|
query: zod205.ZodObject<{
|
|
1375
1409
|
user_code: zod205.ZodString;
|
|
1376
|
-
},
|
|
1410
|
+
}, better_auth79.$strip>;
|
|
1377
1411
|
error: zod205.ZodObject<{
|
|
1378
1412
|
error: zod205.ZodEnum<{
|
|
1379
1413
|
invalid_request: "invalid_request";
|
|
1380
1414
|
}>;
|
|
1381
1415
|
error_description: zod205.ZodString;
|
|
1382
|
-
},
|
|
1416
|
+
}, better_auth79.$strip>;
|
|
1383
1417
|
metadata: {
|
|
1384
1418
|
openapi: {
|
|
1385
1419
|
description: string;
|
|
@@ -1412,11 +1446,11 @@ declare const auth: better_auth78.Auth<{
|
|
|
1412
1446
|
user_code: string;
|
|
1413
1447
|
status: string;
|
|
1414
1448
|
}>;
|
|
1415
|
-
deviceApprove:
|
|
1449
|
+
deviceApprove: better_auth79.StrictEndpoint<"/device/approve", {
|
|
1416
1450
|
method: "POST";
|
|
1417
1451
|
body: zod205.ZodObject<{
|
|
1418
1452
|
userCode: zod205.ZodString;
|
|
1419
|
-
},
|
|
1453
|
+
}, better_auth79.$strip>;
|
|
1420
1454
|
error: zod205.ZodObject<{
|
|
1421
1455
|
error: zod205.ZodEnum<{
|
|
1422
1456
|
invalid_request: "invalid_request";
|
|
@@ -1424,7 +1458,7 @@ declare const auth: better_auth78.Auth<{
|
|
|
1424
1458
|
device_code_already_processed: "device_code_already_processed";
|
|
1425
1459
|
}>;
|
|
1426
1460
|
error_description: zod205.ZodString;
|
|
1427
|
-
},
|
|
1461
|
+
}, better_auth79.$strip>;
|
|
1428
1462
|
requireHeaders: true;
|
|
1429
1463
|
metadata: {
|
|
1430
1464
|
openapi: {
|
|
@@ -1451,18 +1485,18 @@ declare const auth: better_auth78.Auth<{
|
|
|
1451
1485
|
}, {
|
|
1452
1486
|
success: boolean;
|
|
1453
1487
|
}>;
|
|
1454
|
-
deviceDeny:
|
|
1488
|
+
deviceDeny: better_auth79.StrictEndpoint<"/device/deny", {
|
|
1455
1489
|
method: "POST";
|
|
1456
1490
|
body: zod205.ZodObject<{
|
|
1457
1491
|
userCode: zod205.ZodString;
|
|
1458
|
-
},
|
|
1492
|
+
}, better_auth79.$strip>;
|
|
1459
1493
|
error: zod205.ZodObject<{
|
|
1460
1494
|
error: zod205.ZodEnum<{
|
|
1461
1495
|
invalid_request: "invalid_request";
|
|
1462
1496
|
expired_token: "expired_token";
|
|
1463
1497
|
}>;
|
|
1464
1498
|
error_description: zod205.ZodString;
|
|
1465
|
-
},
|
|
1499
|
+
}, better_auth79.$strip>;
|
|
1466
1500
|
metadata: {
|
|
1467
1501
|
openapi: {
|
|
1468
1502
|
description: string;
|
|
@@ -1532,6 +1566,6 @@ declare const auth: better_auth78.Auth<{
|
|
|
1532
1566
|
}>;
|
|
1533
1567
|
}];
|
|
1534
1568
|
}>;
|
|
1535
|
-
declare const app: Hono<
|
|
1569
|
+
declare const app: Hono<hono_types3.BlankEnv, hono_types3.BlankSchema, "/">;
|
|
1536
1570
|
//#endregion
|
|
1537
1571
|
export { type AppConfig, type AppVariables, Hono, type NativeSandboxConfig, type SSOProviderConfig, type SandboxConfig, type UserAuthConfig, type VercelSandboxConfig, auth, createAgentsApp, createAgentsHono, createAuth0Provider, createOIDCProvider, app as default };
|