@inkeep/agents-core 0.0.0-dev-20260112224755 → 0.0.0-dev-20260113114948
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/auth/auth-schema.d.ts +82 -82
- package/dist/auth/auth-validation-schemas.d.ts +129 -129
- package/dist/auth/auth.d.ts +39 -39
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -2
- package/dist/data-access/messages.d.ts +9 -9
- package/dist/data-access/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/subAgentRelations.d.ts +6 -6
- package/dist/data-access/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/tasks.d.ts +1 -1
- package/dist/data-access/tools.d.ts +12 -12
- package/dist/validation/schemas.d.ts +23 -23
- package/package.json +2 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { DatabaseClient } from "../db/client.js";
|
|
|
2
2
|
import * as _better_auth_sso0 from "@better-auth/sso";
|
|
3
3
|
import * as better_auth0 from "better-auth";
|
|
4
4
|
import { BetterAuthAdvancedOptions } from "better-auth";
|
|
5
|
-
import * as
|
|
5
|
+
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
6
6
|
import * as zod0 from "zod";
|
|
7
7
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
8
8
|
|
|
@@ -185,7 +185,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
185
185
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
186
186
|
}[];
|
|
187
187
|
};
|
|
188
|
-
options:
|
|
188
|
+
options: better_auth_plugins0.BearerOptions | undefined;
|
|
189
189
|
}, {
|
|
190
190
|
id: "sso";
|
|
191
191
|
endpoints: {
|
|
@@ -813,30 +813,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
813
813
|
};
|
|
814
814
|
}, {
|
|
815
815
|
id: "organization";
|
|
816
|
-
endpoints:
|
|
816
|
+
endpoints: better_auth_plugins0.OrganizationEndpoints<{
|
|
817
817
|
allowUserToCreateOrganization: true;
|
|
818
|
-
ac:
|
|
818
|
+
ac: better_auth_plugins0.AccessControl;
|
|
819
819
|
roles: {
|
|
820
820
|
member: {
|
|
821
|
-
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "
|
|
822
|
-
actions:
|
|
821
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
822
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
823
823
|
connector: "OR" | "AND";
|
|
824
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
825
|
-
statements:
|
|
824
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
825
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
826
826
|
};
|
|
827
827
|
admin: {
|
|
828
|
-
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "
|
|
829
|
-
actions:
|
|
828
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
829
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
830
830
|
connector: "OR" | "AND";
|
|
831
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
832
|
-
statements:
|
|
831
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
832
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
833
833
|
};
|
|
834
834
|
owner: {
|
|
835
|
-
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "
|
|
836
|
-
actions:
|
|
835
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
836
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
837
837
|
connector: "OR" | "AND";
|
|
838
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
839
|
-
statements:
|
|
838
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
839
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
840
840
|
};
|
|
841
841
|
};
|
|
842
842
|
membershipLimit: number;
|
|
@@ -846,9 +846,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
846
846
|
id: string;
|
|
847
847
|
role: string;
|
|
848
848
|
email: string;
|
|
849
|
-
organization:
|
|
850
|
-
invitation:
|
|
851
|
-
inviter:
|
|
849
|
+
organization: better_auth_plugins0.Organization;
|
|
850
|
+
invitation: better_auth_plugins0.Invitation;
|
|
851
|
+
inviter: better_auth_plugins0.Member & {
|
|
852
852
|
user: better_auth0.User;
|
|
853
853
|
};
|
|
854
854
|
}): Promise<void>;
|
|
@@ -981,7 +981,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
981
981
|
organizationId: string;
|
|
982
982
|
email: string;
|
|
983
983
|
role: "member" | "admin" | "owner";
|
|
984
|
-
status:
|
|
984
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
985
985
|
inviterId: string;
|
|
986
986
|
expiresAt: Date;
|
|
987
987
|
createdAt: Date;
|
|
@@ -1020,7 +1020,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1020
1020
|
organizationId: string;
|
|
1021
1021
|
email: string;
|
|
1022
1022
|
role: "member" | "admin" | "owner";
|
|
1023
|
-
status:
|
|
1023
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
1024
1024
|
inviterId: string;
|
|
1025
1025
|
expiresAt: Date;
|
|
1026
1026
|
createdAt: Date;
|
|
@@ -1094,28 +1094,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1094
1094
|
};
|
|
1095
1095
|
options: NoInfer<{
|
|
1096
1096
|
allowUserToCreateOrganization: true;
|
|
1097
|
-
ac:
|
|
1097
|
+
ac: better_auth_plugins0.AccessControl;
|
|
1098
1098
|
roles: {
|
|
1099
1099
|
member: {
|
|
1100
|
-
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "
|
|
1101
|
-
actions:
|
|
1100
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1101
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1102
1102
|
connector: "OR" | "AND";
|
|
1103
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1104
|
-
statements:
|
|
1103
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1104
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1105
1105
|
};
|
|
1106
1106
|
admin: {
|
|
1107
|
-
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "
|
|
1108
|
-
actions:
|
|
1107
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1108
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1109
1109
|
connector: "OR" | "AND";
|
|
1110
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1111
|
-
statements:
|
|
1110
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1111
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1112
1112
|
};
|
|
1113
1113
|
owner: {
|
|
1114
|
-
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "
|
|
1115
|
-
actions:
|
|
1114
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1115
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1116
1116
|
connector: "OR" | "AND";
|
|
1117
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1118
|
-
statements:
|
|
1117
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1118
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1119
1119
|
};
|
|
1120
1120
|
};
|
|
1121
1121
|
membershipLimit: number;
|
|
@@ -1125,9 +1125,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1125
1125
|
id: string;
|
|
1126
1126
|
role: string;
|
|
1127
1127
|
email: string;
|
|
1128
|
-
organization:
|
|
1129
|
-
invitation:
|
|
1130
|
-
inviter:
|
|
1128
|
+
organization: better_auth_plugins0.Organization;
|
|
1129
|
+
invitation: better_auth_plugins0.Invitation;
|
|
1130
|
+
inviter: better_auth_plugins0.Member & {
|
|
1131
1131
|
user: better_auth0.User;
|
|
1132
1132
|
};
|
|
1133
1133
|
}): Promise<void>;
|
|
@@ -1465,8 +1465,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1465
1465
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1466
1466
|
};
|
|
1467
1467
|
options: Partial<{
|
|
1468
|
-
expiresIn:
|
|
1469
|
-
interval:
|
|
1468
|
+
expiresIn: better_auth_plugins0.TimeString;
|
|
1469
|
+
interval: better_auth_plugins0.TimeString;
|
|
1470
1470
|
deviceCodeLength: number;
|
|
1471
1471
|
userCodeLength: number;
|
|
1472
1472
|
schema: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins55 from "better-auth/plugins";
|
|
2
2
|
import { AccessControl } from "better-auth/plugins/access";
|
|
3
3
|
import { organizationClient } from "better-auth/client/plugins";
|
|
4
4
|
|
|
5
5
|
//#region src/auth/permissions.d.ts
|
|
6
6
|
declare const ac: AccessControl;
|
|
7
7
|
declare const memberRole: {
|
|
8
|
-
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "
|
|
9
|
-
actions:
|
|
8
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins55.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins55.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
11
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
|
|
12
|
+
statements: better_auth_plugins55.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins55.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins55.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
18
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
|
|
19
|
+
statements: better_auth_plugins55.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins55.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins55.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
25
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
|
|
26
|
+
statements: better_auth_plugins55.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -64,8 +64,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
|
|
|
64
64
|
canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65
65
|
canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
66
66
|
type: z.ZodOptional<z.ZodEnum<{
|
|
67
|
-
external: "external";
|
|
68
67
|
internal: "internal";
|
|
68
|
+
external: "external";
|
|
69
69
|
}>>;
|
|
70
70
|
}, z.core.$strip>;
|
|
71
71
|
declare const ToolApiInsertSchema: z.ZodObject<{
|
|
@@ -192,9 +192,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
192
192
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
193
193
|
id: z.ZodString;
|
|
194
194
|
name: z.ZodString;
|
|
195
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
195
196
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
196
197
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
197
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
198
198
|
models: z.ZodOptional<z.ZodObject<{
|
|
199
199
|
base: z.ZodOptional<z.ZodObject<{
|
|
200
200
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -17,18 +17,18 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
17
17
|
projectId: string;
|
|
18
18
|
tenantId: string;
|
|
19
19
|
content: MessageContent;
|
|
20
|
-
conversationId: string;
|
|
21
20
|
fromSubAgentId: string | null;
|
|
22
21
|
toSubAgentId: string | null;
|
|
23
22
|
fromExternalAgentId: string | null;
|
|
24
23
|
toExternalAgentId: string | null;
|
|
24
|
+
taskId: string | null;
|
|
25
|
+
a2aTaskId: string | null;
|
|
26
|
+
conversationId: string;
|
|
25
27
|
fromTeamAgentId: string | null;
|
|
26
28
|
toTeamAgentId: string | null;
|
|
27
29
|
visibility: string;
|
|
28
30
|
messageType: string;
|
|
29
|
-
taskId: string | null;
|
|
30
31
|
parentMessageId: string | null;
|
|
31
|
-
a2aTaskId: string | null;
|
|
32
32
|
a2aSessionId: string | null;
|
|
33
33
|
} | undefined>;
|
|
34
34
|
declare const listMessages: (db: DatabaseClient) => (params: {
|
|
@@ -148,18 +148,18 @@ declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) =>
|
|
|
148
148
|
projectId: string;
|
|
149
149
|
tenantId: string;
|
|
150
150
|
content: MessageContent;
|
|
151
|
-
conversationId: string;
|
|
152
151
|
fromSubAgentId: string | null;
|
|
153
152
|
toSubAgentId: string | null;
|
|
154
153
|
fromExternalAgentId: string | null;
|
|
155
154
|
toExternalAgentId: string | null;
|
|
155
|
+
taskId: string | null;
|
|
156
|
+
a2aTaskId: string | null;
|
|
157
|
+
conversationId: string;
|
|
156
158
|
fromTeamAgentId: string | null;
|
|
157
159
|
toTeamAgentId: string | null;
|
|
158
160
|
visibility: string;
|
|
159
161
|
messageType: string;
|
|
160
|
-
taskId: string | null;
|
|
161
162
|
parentMessageId: string | null;
|
|
162
|
-
a2aTaskId: string | null;
|
|
163
163
|
a2aSessionId: string | null;
|
|
164
164
|
}>;
|
|
165
165
|
declare const updateMessage: (db: DatabaseClient) => (params: {
|
|
@@ -201,18 +201,18 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
201
201
|
projectId: string;
|
|
202
202
|
tenantId: string;
|
|
203
203
|
content: MessageContent;
|
|
204
|
-
conversationId: string;
|
|
205
204
|
fromSubAgentId: string | null;
|
|
206
205
|
toSubAgentId: string | null;
|
|
207
206
|
fromExternalAgentId: string | null;
|
|
208
207
|
toExternalAgentId: string | null;
|
|
208
|
+
taskId: string | null;
|
|
209
|
+
a2aTaskId: string | null;
|
|
210
|
+
conversationId: string;
|
|
209
211
|
fromTeamAgentId: string | null;
|
|
210
212
|
toTeamAgentId: string | null;
|
|
211
213
|
visibility: string;
|
|
212
214
|
messageType: string;
|
|
213
|
-
taskId: string | null;
|
|
214
215
|
parentMessageId: string | null;
|
|
215
|
-
a2aTaskId: string | null;
|
|
216
216
|
a2aSessionId: string | null;
|
|
217
217
|
}>;
|
|
218
218
|
declare const countMessagesByConversation: (db: DatabaseClient) => (params: {
|
|
@@ -11,12 +11,12 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
+
headers: Record<string, string> | null;
|
|
14
15
|
agentId: string;
|
|
15
16
|
projectId: string;
|
|
16
17
|
tenantId: string;
|
|
17
|
-
headers: Record<string, string> | null;
|
|
18
|
-
externalAgentId: string;
|
|
19
18
|
subAgentId: string;
|
|
19
|
+
externalAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
22
22
|
scopes: SubAgentScopeConfig;
|
|
@@ -46,12 +46,12 @@ declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
+
headers: Record<string, string> | null;
|
|
49
50
|
agentId: string;
|
|
50
51
|
projectId: string;
|
|
51
52
|
tenantId: string;
|
|
52
|
-
headers: Record<string, string> | null;
|
|
53
|
-
externalAgentId: string;
|
|
54
53
|
subAgentId: string;
|
|
54
|
+
externalAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
@@ -59,12 +59,12 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) =>
|
|
|
59
59
|
id: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
+
headers: Record<string, string> | null;
|
|
62
63
|
agentId: string;
|
|
63
64
|
projectId: string;
|
|
64
65
|
tenantId: string;
|
|
65
|
-
headers: Record<string, string> | null;
|
|
66
|
-
externalAgentId: string;
|
|
67
66
|
subAgentId: string;
|
|
67
|
+
externalAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
|
|
70
70
|
scopes: AgentScopeConfig;
|
|
@@ -182,12 +182,12 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
182
182
|
id: string;
|
|
183
183
|
createdAt: string;
|
|
184
184
|
updatedAt: string;
|
|
185
|
+
headers: Record<string, string> | null;
|
|
185
186
|
agentId: string;
|
|
186
187
|
projectId: string;
|
|
187
188
|
tenantId: string;
|
|
188
|
-
headers: Record<string, string> | null;
|
|
189
|
-
externalAgentId: string;
|
|
190
189
|
subAgentId: string;
|
|
190
|
+
externalAgentId: string;
|
|
191
191
|
}>;
|
|
192
192
|
/**
|
|
193
193
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -199,12 +199,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
|
|
|
199
199
|
id: string;
|
|
200
200
|
createdAt: string;
|
|
201
201
|
updatedAt: string;
|
|
202
|
+
headers: Record<string, string> | null;
|
|
202
203
|
agentId: string;
|
|
203
204
|
projectId: string;
|
|
204
205
|
tenantId: string;
|
|
205
|
-
headers: Record<string, string> | null;
|
|
206
|
-
externalAgentId: string;
|
|
207
206
|
subAgentId: string;
|
|
207
|
+
externalAgentId: string;
|
|
208
208
|
} | undefined>;
|
|
209
209
|
/**
|
|
210
210
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -220,12 +220,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
220
220
|
id: string;
|
|
221
221
|
createdAt: string;
|
|
222
222
|
updatedAt: string;
|
|
223
|
+
headers: Record<string, string> | null;
|
|
223
224
|
agentId: string;
|
|
224
225
|
projectId: string;
|
|
225
226
|
tenantId: string;
|
|
226
|
-
headers: Record<string, string> | null;
|
|
227
|
-
externalAgentId: string;
|
|
228
227
|
subAgentId: string;
|
|
228
|
+
externalAgentId: string;
|
|
229
229
|
}>;
|
|
230
230
|
declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
|
|
231
231
|
scopes: SubAgentScopeConfig;
|
|
@@ -206,16 +206,16 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
206
206
|
id: string;
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
|
+
headers: Record<string, string> | null;
|
|
209
210
|
agentId: string;
|
|
210
211
|
projectId: string;
|
|
211
212
|
tenantId: string;
|
|
213
|
+
subAgentId: string;
|
|
212
214
|
toolId: string;
|
|
213
|
-
|
|
215
|
+
selectedTools: string[] | null;
|
|
214
216
|
toolPolicies: Record<string, {
|
|
215
217
|
needsApproval?: boolean;
|
|
216
218
|
}> | null;
|
|
217
|
-
subAgentId: string;
|
|
218
|
-
selectedTools: string[] | null;
|
|
219
219
|
}>;
|
|
220
220
|
declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
221
221
|
scopes: AgentScopeConfig;
|
|
@@ -250,16 +250,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
250
250
|
id: string;
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
|
+
headers: Record<string, string> | null;
|
|
253
254
|
agentId: string;
|
|
254
255
|
projectId: string;
|
|
255
256
|
tenantId: string;
|
|
257
|
+
subAgentId: string;
|
|
256
258
|
toolId: string;
|
|
257
|
-
|
|
259
|
+
selectedTools: string[] | null;
|
|
258
260
|
toolPolicies: Record<string, {
|
|
259
261
|
needsApproval?: boolean;
|
|
260
262
|
}> | null;
|
|
261
|
-
subAgentId: string;
|
|
262
|
-
selectedTools: string[] | null;
|
|
263
263
|
} | undefined>;
|
|
264
264
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
265
265
|
scopes: SubAgentScopeConfig;
|
|
@@ -11,10 +11,10 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
+
headers: Record<string, string> | null;
|
|
14
15
|
agentId: string;
|
|
15
16
|
projectId: string;
|
|
16
17
|
tenantId: string;
|
|
17
|
-
headers: Record<string, string> | null;
|
|
18
18
|
subAgentId: string;
|
|
19
19
|
targetAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
@@ -46,10 +46,10 @@ declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
+
headers: Record<string, string> | null;
|
|
49
50
|
agentId: string;
|
|
50
51
|
projectId: string;
|
|
51
52
|
tenantId: string;
|
|
52
|
-
headers: Record<string, string> | null;
|
|
53
53
|
subAgentId: string;
|
|
54
54
|
targetAgentId: string;
|
|
55
55
|
}[]>;
|
|
@@ -59,10 +59,10 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (par
|
|
|
59
59
|
id: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
+
headers: Record<string, string> | null;
|
|
62
63
|
agentId: string;
|
|
63
64
|
projectId: string;
|
|
64
65
|
tenantId: string;
|
|
65
|
-
headers: Record<string, string> | null;
|
|
66
66
|
subAgentId: string;
|
|
67
67
|
targetAgentId: string;
|
|
68
68
|
}[]>;
|
|
@@ -212,10 +212,10 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
212
212
|
id: string;
|
|
213
213
|
createdAt: string;
|
|
214
214
|
updatedAt: string;
|
|
215
|
+
headers: Record<string, string> | null;
|
|
215
216
|
agentId: string;
|
|
216
217
|
projectId: string;
|
|
217
218
|
tenantId: string;
|
|
218
|
-
headers: Record<string, string> | null;
|
|
219
219
|
subAgentId: string;
|
|
220
220
|
targetAgentId: string;
|
|
221
221
|
}>;
|
|
@@ -229,10 +229,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
|
|
|
229
229
|
id: string;
|
|
230
230
|
createdAt: string;
|
|
231
231
|
updatedAt: string;
|
|
232
|
+
headers: Record<string, string> | null;
|
|
232
233
|
agentId: string;
|
|
233
234
|
projectId: string;
|
|
234
235
|
tenantId: string;
|
|
235
|
-
headers: Record<string, string> | null;
|
|
236
236
|
subAgentId: string;
|
|
237
237
|
targetAgentId: string;
|
|
238
238
|
} | undefined>;
|
|
@@ -250,10 +250,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
250
250
|
id: string;
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
|
+
headers: Record<string, string> | null;
|
|
253
254
|
agentId: string;
|
|
254
255
|
projectId: string;
|
|
255
256
|
tenantId: string;
|
|
256
|
-
headers: Record<string, string> | null;
|
|
257
257
|
subAgentId: string;
|
|
258
258
|
targetAgentId: string;
|
|
259
259
|
}>;
|
|
@@ -14,8 +14,8 @@ declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promis
|
|
|
14
14
|
agentId: string;
|
|
15
15
|
projectId: string;
|
|
16
16
|
tenantId: string;
|
|
17
|
-
contextId: string;
|
|
18
17
|
subAgentId: string;
|
|
18
|
+
contextId: string;
|
|
19
19
|
}>;
|
|
20
20
|
declare const getTask: (db: DatabaseClient) => (params: {
|
|
21
21
|
id: string;
|
|
@@ -16,10 +16,10 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
16
16
|
name: string;
|
|
17
17
|
createdAt: string;
|
|
18
18
|
updatedAt: string;
|
|
19
|
+
headers: Record<string, string> | null;
|
|
19
20
|
description: string | null;
|
|
20
21
|
projectId: string;
|
|
21
22
|
tenantId: string;
|
|
22
|
-
headers: Record<string, string> | null;
|
|
23
23
|
config: {
|
|
24
24
|
type: "mcp";
|
|
25
25
|
mcp: ToolMcpConfig;
|
|
@@ -65,10 +65,10 @@ declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promis
|
|
|
65
65
|
name: string;
|
|
66
66
|
createdAt: string;
|
|
67
67
|
updatedAt: string;
|
|
68
|
+
headers: Record<string, string> | null;
|
|
68
69
|
description: string | null;
|
|
69
70
|
projectId: string;
|
|
70
71
|
tenantId: string;
|
|
71
|
-
headers: Record<string, string> | null;
|
|
72
72
|
config: {
|
|
73
73
|
type: "mcp";
|
|
74
74
|
mcp: ToolMcpConfig;
|
|
@@ -119,16 +119,16 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
119
119
|
id: string;
|
|
120
120
|
createdAt: string;
|
|
121
121
|
updatedAt: string;
|
|
122
|
+
headers: Record<string, string> | null;
|
|
122
123
|
agentId: string;
|
|
123
124
|
projectId: string;
|
|
124
125
|
tenantId: string;
|
|
126
|
+
subAgentId: string;
|
|
125
127
|
toolId: string;
|
|
126
|
-
|
|
128
|
+
selectedTools: string[] | null;
|
|
127
129
|
toolPolicies: Record<string, {
|
|
128
130
|
needsApproval?: boolean;
|
|
129
131
|
}> | null;
|
|
130
|
-
subAgentId: string;
|
|
131
|
-
selectedTools: string[] | null;
|
|
132
132
|
}>;
|
|
133
133
|
declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
134
134
|
scopes: AgentScopeConfig;
|
|
@@ -138,16 +138,16 @@ declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
|
138
138
|
id: string;
|
|
139
139
|
createdAt: string;
|
|
140
140
|
updatedAt: string;
|
|
141
|
+
headers: Record<string, string> | null;
|
|
141
142
|
agentId: string;
|
|
142
143
|
projectId: string;
|
|
143
144
|
tenantId: string;
|
|
145
|
+
subAgentId: string;
|
|
144
146
|
toolId: string;
|
|
145
|
-
|
|
147
|
+
selectedTools: string[] | null;
|
|
146
148
|
toolPolicies: Record<string, {
|
|
147
149
|
needsApproval?: boolean;
|
|
148
150
|
}> | null;
|
|
149
|
-
subAgentId: string;
|
|
150
|
-
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
/**
|
|
153
153
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -166,16 +166,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
166
166
|
id: string;
|
|
167
167
|
createdAt: string;
|
|
168
168
|
updatedAt: string;
|
|
169
|
+
headers: Record<string, string> | null;
|
|
169
170
|
agentId: string;
|
|
170
171
|
projectId: string;
|
|
171
172
|
tenantId: string;
|
|
173
|
+
subAgentId: string;
|
|
172
174
|
toolId: string;
|
|
173
|
-
|
|
175
|
+
selectedTools: string[] | null;
|
|
174
176
|
toolPolicies: Record<string, {
|
|
175
177
|
needsApproval?: boolean;
|
|
176
178
|
}> | null;
|
|
177
|
-
subAgentId: string;
|
|
178
|
-
selectedTools: string[] | null;
|
|
179
179
|
}>;
|
|
180
180
|
/**
|
|
181
181
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -187,10 +187,10 @@ declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
|
187
187
|
name: string;
|
|
188
188
|
createdAt: string;
|
|
189
189
|
updatedAt: string;
|
|
190
|
+
headers: Record<string, string> | null;
|
|
190
191
|
description: string | null;
|
|
191
192
|
projectId: string;
|
|
192
193
|
tenantId: string;
|
|
193
|
-
headers: Record<string, string> | null;
|
|
194
194
|
config: {
|
|
195
195
|
type: "mcp";
|
|
196
196
|
mcp: ToolMcpConfig;
|