@inkeep/agents-core 0.0.0-dev-20260121022749 → 0.0.0-dev-20260121072051
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.d.ts +53 -53
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/constants/otel-attributes.d.ts +2 -0
- package/dist/constants/otel-attributes.js +2 -0
- package/dist/data-access/manage/agents.d.ts +37 -37
- package/dist/data-access/manage/artifactComponents.d.ts +12 -12
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +8 -8
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +27 -27
- package/dist/data-access/manage/tools.d.ts +33 -33
- package/dist/data-access/manage/triggers.d.ts +1 -1
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- package/dist/data-access/runtime/conversations.d.ts +31 -31
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +376 -376
- package/dist/db/manage/manage-schema.js +1 -1
- package/dist/db/runtime/runtime-schema.d.ts +181 -181
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/schemas.d.ts +1537 -1537
- package/dist/validation/schemas.js +1 -1
- package/drizzle/manage/0002_bent_sunfire.sql +1 -0
- package/drizzle/manage/meta/0002_snapshot.json +3115 -0
- package/drizzle/manage/meta/_journal.json +7 -0
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { AgentsRunDatabaseClient } from "../db/runtime/runtime-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
|
|
|
@@ -213,7 +213,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
213
213
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
214
214
|
}[];
|
|
215
215
|
};
|
|
216
|
-
options:
|
|
216
|
+
options: better_auth_plugins0.BearerOptions | undefined;
|
|
217
217
|
}, {
|
|
218
218
|
id: "sso";
|
|
219
219
|
endpoints: {
|
|
@@ -841,30 +841,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
841
841
|
};
|
|
842
842
|
}, {
|
|
843
843
|
id: "organization";
|
|
844
|
-
endpoints:
|
|
844
|
+
endpoints: better_auth_plugins0.OrganizationEndpoints<{
|
|
845
845
|
allowUserToCreateOrganization: true;
|
|
846
|
-
ac:
|
|
846
|
+
ac: better_auth_plugins0.AccessControl;
|
|
847
847
|
roles: {
|
|
848
848
|
member: {
|
|
849
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
850
|
-
actions:
|
|
849
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
|
|
850
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
851
851
|
connector: "OR" | "AND";
|
|
852
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
853
|
-
statements:
|
|
852
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
853
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
854
854
|
};
|
|
855
855
|
admin: {
|
|
856
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
857
|
-
actions:
|
|
856
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
|
|
857
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
858
858
|
connector: "OR" | "AND";
|
|
859
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
860
|
-
statements:
|
|
859
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
860
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
861
861
|
};
|
|
862
862
|
owner: {
|
|
863
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
864
|
-
actions:
|
|
863
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
|
|
864
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
865
865
|
connector: "OR" | "AND";
|
|
866
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
867
|
-
statements:
|
|
866
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
867
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
868
868
|
};
|
|
869
869
|
};
|
|
870
870
|
membershipLimit: number;
|
|
@@ -874,9 +874,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
874
874
|
id: string;
|
|
875
875
|
role: string;
|
|
876
876
|
email: string;
|
|
877
|
-
organization:
|
|
878
|
-
invitation:
|
|
879
|
-
inviter:
|
|
877
|
+
organization: better_auth_plugins0.Organization;
|
|
878
|
+
invitation: better_auth_plugins0.Invitation;
|
|
879
|
+
inviter: better_auth_plugins0.Member & {
|
|
880
880
|
user: better_auth0.User;
|
|
881
881
|
};
|
|
882
882
|
}): Promise<void>;
|
|
@@ -886,28 +886,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
886
886
|
user,
|
|
887
887
|
organization: org
|
|
888
888
|
}: {
|
|
889
|
-
invitation:
|
|
890
|
-
member:
|
|
889
|
+
invitation: better_auth_plugins0.Invitation & Record<string, any>;
|
|
890
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
891
891
|
user: better_auth0.User & Record<string, any>;
|
|
892
|
-
organization:
|
|
892
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
893
893
|
}) => Promise<void>;
|
|
894
894
|
afterUpdateMemberRole: ({
|
|
895
895
|
member,
|
|
896
896
|
organization: org,
|
|
897
897
|
previousRole
|
|
898
898
|
}: {
|
|
899
|
-
member:
|
|
899
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
900
900
|
previousRole: string;
|
|
901
901
|
user: better_auth0.User & Record<string, any>;
|
|
902
|
-
organization:
|
|
902
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
903
903
|
}) => Promise<void>;
|
|
904
904
|
afterRemoveMember: ({
|
|
905
905
|
member,
|
|
906
906
|
organization: org
|
|
907
907
|
}: {
|
|
908
|
-
member:
|
|
908
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
909
909
|
user: better_auth0.User & Record<string, any>;
|
|
910
|
-
organization:
|
|
910
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
911
911
|
}) => Promise<void>;
|
|
912
912
|
};
|
|
913
913
|
}>;
|
|
@@ -1039,7 +1039,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1039
1039
|
organizationId: string;
|
|
1040
1040
|
email: string;
|
|
1041
1041
|
role: "member" | "admin" | "owner";
|
|
1042
|
-
status:
|
|
1042
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
1043
1043
|
inviterId: string;
|
|
1044
1044
|
expiresAt: Date;
|
|
1045
1045
|
createdAt: Date;
|
|
@@ -1078,7 +1078,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1078
1078
|
organizationId: string;
|
|
1079
1079
|
email: string;
|
|
1080
1080
|
role: "member" | "admin" | "owner";
|
|
1081
|
-
status:
|
|
1081
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
1082
1082
|
inviterId: string;
|
|
1083
1083
|
expiresAt: Date;
|
|
1084
1084
|
createdAt: Date;
|
|
@@ -1152,28 +1152,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1152
1152
|
};
|
|
1153
1153
|
options: NoInfer<{
|
|
1154
1154
|
allowUserToCreateOrganization: true;
|
|
1155
|
-
ac:
|
|
1155
|
+
ac: better_auth_plugins0.AccessControl;
|
|
1156
1156
|
roles: {
|
|
1157
1157
|
member: {
|
|
1158
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
1159
|
-
actions:
|
|
1158
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1159
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
1160
1160
|
connector: "OR" | "AND";
|
|
1161
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1162
|
-
statements:
|
|
1161
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1162
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
1163
1163
|
};
|
|
1164
1164
|
admin: {
|
|
1165
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
1166
|
-
actions:
|
|
1165
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1166
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
1167
1167
|
connector: "OR" | "AND";
|
|
1168
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1169
|
-
statements:
|
|
1168
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1169
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
1170
1170
|
};
|
|
1171
1171
|
owner: {
|
|
1172
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
1173
|
-
actions:
|
|
1172
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1173
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
|
|
1174
1174
|
connector: "OR" | "AND";
|
|
1175
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1176
|
-
statements:
|
|
1175
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1176
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
|
|
1177
1177
|
};
|
|
1178
1178
|
};
|
|
1179
1179
|
membershipLimit: number;
|
|
@@ -1183,9 +1183,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1183
1183
|
id: string;
|
|
1184
1184
|
role: string;
|
|
1185
1185
|
email: string;
|
|
1186
|
-
organization:
|
|
1187
|
-
invitation:
|
|
1188
|
-
inviter:
|
|
1186
|
+
organization: better_auth_plugins0.Organization;
|
|
1187
|
+
invitation: better_auth_plugins0.Invitation;
|
|
1188
|
+
inviter: better_auth_plugins0.Member & {
|
|
1189
1189
|
user: better_auth0.User;
|
|
1190
1190
|
};
|
|
1191
1191
|
}): Promise<void>;
|
|
@@ -1195,28 +1195,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1195
1195
|
user,
|
|
1196
1196
|
organization: org
|
|
1197
1197
|
}: {
|
|
1198
|
-
invitation:
|
|
1199
|
-
member:
|
|
1198
|
+
invitation: better_auth_plugins0.Invitation & Record<string, any>;
|
|
1199
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
1200
1200
|
user: better_auth0.User & Record<string, any>;
|
|
1201
|
-
organization:
|
|
1201
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
1202
1202
|
}) => Promise<void>;
|
|
1203
1203
|
afterUpdateMemberRole: ({
|
|
1204
1204
|
member,
|
|
1205
1205
|
organization: org,
|
|
1206
1206
|
previousRole
|
|
1207
1207
|
}: {
|
|
1208
|
-
member:
|
|
1208
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
1209
1209
|
previousRole: string;
|
|
1210
1210
|
user: better_auth0.User & Record<string, any>;
|
|
1211
|
-
organization:
|
|
1211
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
1212
1212
|
}) => Promise<void>;
|
|
1213
1213
|
afterRemoveMember: ({
|
|
1214
1214
|
member,
|
|
1215
1215
|
organization: org
|
|
1216
1216
|
}: {
|
|
1217
|
-
member:
|
|
1217
|
+
member: better_auth_plugins0.Member & Record<string, any>;
|
|
1218
1218
|
user: better_auth0.User & Record<string, any>;
|
|
1219
|
-
organization:
|
|
1219
|
+
organization: better_auth_plugins0.Organization & Record<string, any>;
|
|
1220
1220
|
}) => Promise<void>;
|
|
1221
1221
|
};
|
|
1222
1222
|
}>;
|
|
@@ -1553,8 +1553,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1553
1553
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1554
1554
|
};
|
|
1555
1555
|
options: Partial<{
|
|
1556
|
-
expiresIn:
|
|
1557
|
-
interval:
|
|
1556
|
+
expiresIn: better_auth_plugins0.TimeString;
|
|
1557
|
+
interval: better_auth_plugins0.TimeString;
|
|
1558
1558
|
deviceCodeLength: number;
|
|
1559
1559
|
userCodeLength: number;
|
|
1560
1560
|
schema: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins69 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 "organization" | "member" | "invitation" | "
|
|
9
|
-
actions:
|
|
8
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
11
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
12
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
18
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
19
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
25
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
26
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -67,6 +67,8 @@ declare const SPAN_KEYS: {
|
|
|
67
67
|
readonly CONTEXT_AGENT_ID: "context.agent_id";
|
|
68
68
|
readonly CONTEXT_HEADERS_KEYS: "context.headers_keys";
|
|
69
69
|
readonly MESSAGE_CONTENT: "message.content";
|
|
70
|
+
readonly MESSAGE_PARTS: "message.parts";
|
|
71
|
+
readonly MESSAGE_PARTS_COUNT: "message.parts.count";
|
|
70
72
|
readonly MESSAGE_TIMESTAMP: "message.timestamp";
|
|
71
73
|
readonly MCP_TOOL_DESCRIPTION: "mcp.tool.description";
|
|
72
74
|
readonly DELEGATION_FROM_SUB_AGENT_ID: "delegation.from_sub_agent_id";
|
|
@@ -67,6 +67,8 @@ const SPAN_KEYS = {
|
|
|
67
67
|
CONTEXT_AGENT_ID: "context.agent_id",
|
|
68
68
|
CONTEXT_HEADERS_KEYS: "context.headers_keys",
|
|
69
69
|
MESSAGE_CONTENT: "message.content",
|
|
70
|
+
MESSAGE_PARTS: "message.parts",
|
|
71
|
+
MESSAGE_PARTS_COUNT: "message.parts.count",
|
|
70
72
|
MESSAGE_TIMESTAMP: "message.timestamp",
|
|
71
73
|
MCP_TOOL_DESCRIPTION: "mcp.tool.description",
|
|
72
74
|
DELEGATION_FROM_SUB_AGENT_ID,
|
|
@@ -8,15 +8,14 @@ import { PgTable } from "drizzle-orm/pg-core";
|
|
|
8
8
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
11
13
|
id: string;
|
|
12
14
|
name: string;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
15
|
description: string | null;
|
|
16
|
-
stopWhen: {
|
|
17
|
-
transferCountIs?: number | undefined;
|
|
18
|
-
} | null;
|
|
19
16
|
prompt: string | null;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
20
19
|
models: {
|
|
21
20
|
base?: {
|
|
22
21
|
model?: string | undefined;
|
|
@@ -31,8 +30,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
31
30
|
providerOptions?: Record<string, any> | undefined;
|
|
32
31
|
} | undefined;
|
|
33
32
|
} | null;
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
stopWhen: {
|
|
34
|
+
transferCountIs?: number | undefined;
|
|
35
|
+
} | null;
|
|
36
36
|
defaultSubAgentId: string | null;
|
|
37
37
|
contextConfigId: string | null;
|
|
38
38
|
statusUpdates: {
|
|
@@ -54,15 +54,14 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
54
54
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
55
55
|
scopes: AgentScopeConfig;
|
|
56
56
|
}) => Promise<{
|
|
57
|
+
tenantId: string;
|
|
58
|
+
projectId: string;
|
|
57
59
|
id: string;
|
|
58
60
|
name: string;
|
|
59
|
-
createdAt: string;
|
|
60
|
-
updatedAt: string;
|
|
61
61
|
description: string | null;
|
|
62
|
-
stopWhen: {
|
|
63
|
-
transferCountIs?: number | undefined;
|
|
64
|
-
} | null;
|
|
65
62
|
prompt: string | null;
|
|
63
|
+
createdAt: string;
|
|
64
|
+
updatedAt: string;
|
|
66
65
|
models: {
|
|
67
66
|
base?: {
|
|
68
67
|
model?: string | undefined;
|
|
@@ -77,8 +76,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
77
76
|
providerOptions?: Record<string, any> | undefined;
|
|
78
77
|
} | undefined;
|
|
79
78
|
} | null;
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
stopWhen: {
|
|
80
|
+
transferCountIs?: number | undefined;
|
|
81
|
+
} | null;
|
|
82
82
|
defaultSubAgentId: string | null;
|
|
83
83
|
contextConfigId: string | null;
|
|
84
84
|
statusUpdates: {
|
|
@@ -97,16 +97,15 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
97
97
|
}[] | undefined;
|
|
98
98
|
} | null;
|
|
99
99
|
defaultSubAgent: {
|
|
100
|
+
tenantId: string;
|
|
101
|
+
projectId: string;
|
|
100
102
|
id: string;
|
|
101
103
|
name: string;
|
|
102
|
-
createdAt: string;
|
|
103
|
-
updatedAt: string;
|
|
104
104
|
description: string | null;
|
|
105
|
-
stopWhen: {
|
|
106
|
-
stepCountIs?: number | undefined;
|
|
107
|
-
} | null;
|
|
108
105
|
prompt: string | null;
|
|
109
|
-
|
|
106
|
+
agentId: string;
|
|
107
|
+
createdAt: string;
|
|
108
|
+
updatedAt: string;
|
|
110
109
|
models: {
|
|
111
110
|
base?: {
|
|
112
111
|
model?: string | undefined;
|
|
@@ -121,23 +120,23 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
121
120
|
providerOptions?: Record<string, any> | undefined;
|
|
122
121
|
} | undefined;
|
|
123
122
|
} | null;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
stopWhen: {
|
|
124
|
+
stepCountIs?: number | undefined;
|
|
125
|
+
} | null;
|
|
126
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
127
127
|
} | null;
|
|
128
128
|
} | null>;
|
|
129
129
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
130
130
|
scopes: ProjectScopeConfig;
|
|
131
131
|
}) => Promise<{
|
|
132
|
+
tenantId: string;
|
|
133
|
+
projectId: string;
|
|
132
134
|
id: string;
|
|
133
135
|
name: string;
|
|
134
|
-
createdAt: string;
|
|
135
|
-
updatedAt: string;
|
|
136
136
|
description: string | null;
|
|
137
|
-
stopWhen: {
|
|
138
|
-
transferCountIs?: number | undefined;
|
|
139
|
-
} | null;
|
|
140
137
|
prompt: string | null;
|
|
138
|
+
createdAt: string;
|
|
139
|
+
updatedAt: string;
|
|
141
140
|
models: {
|
|
142
141
|
base?: {
|
|
143
142
|
model?: string | undefined;
|
|
@@ -152,8 +151,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
152
151
|
providerOptions?: Record<string, any> | undefined;
|
|
153
152
|
} | undefined;
|
|
154
153
|
} | null;
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
stopWhen: {
|
|
155
|
+
transferCountIs?: number | undefined;
|
|
156
|
+
} | null;
|
|
157
157
|
defaultSubAgentId: string | null;
|
|
158
158
|
contextConfigId: string | null;
|
|
159
159
|
statusUpdates: {
|
|
@@ -228,15 +228,14 @@ declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params:
|
|
|
228
228
|
};
|
|
229
229
|
}>;
|
|
230
230
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
231
|
+
tenantId: string;
|
|
232
|
+
projectId: string;
|
|
231
233
|
id: string;
|
|
232
234
|
name: string;
|
|
233
|
-
createdAt: string;
|
|
234
|
-
updatedAt: string;
|
|
235
235
|
description: string | null;
|
|
236
|
-
stopWhen: {
|
|
237
|
-
transferCountIs?: number | undefined;
|
|
238
|
-
} | null;
|
|
239
236
|
prompt: string | null;
|
|
237
|
+
createdAt: string;
|
|
238
|
+
updatedAt: string;
|
|
240
239
|
models: {
|
|
241
240
|
base?: {
|
|
242
241
|
model?: string | undefined;
|
|
@@ -251,8 +250,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
251
250
|
providerOptions?: Record<string, any> | undefined;
|
|
252
251
|
} | undefined;
|
|
253
252
|
} | null;
|
|
254
|
-
|
|
255
|
-
|
|
253
|
+
stopWhen: {
|
|
254
|
+
transferCountIs?: number | undefined;
|
|
255
|
+
} | null;
|
|
256
256
|
defaultSubAgentId: string | null;
|
|
257
257
|
contextConfigId: string | null;
|
|
258
258
|
statusUpdates: {
|
|
@@ -7,13 +7,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
7
7
|
scopes: ProjectScopeConfig;
|
|
8
8
|
id: string;
|
|
9
9
|
}) => Promise<{
|
|
10
|
+
tenantId: string;
|
|
11
|
+
projectId: string;
|
|
10
12
|
id: string;
|
|
11
13
|
name: string;
|
|
14
|
+
description: string | null;
|
|
12
15
|
createdAt: string;
|
|
13
16
|
updatedAt: string;
|
|
14
|
-
description: string | null;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
17
|
props: Record<string, unknown> | null;
|
|
18
18
|
render: {
|
|
19
19
|
component: string;
|
|
@@ -49,13 +49,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
49
49
|
};
|
|
50
50
|
}>;
|
|
51
51
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
52
|
+
tenantId: string;
|
|
53
|
+
projectId: string;
|
|
52
54
|
id: string;
|
|
53
55
|
name: string;
|
|
56
|
+
description: string | null;
|
|
54
57
|
createdAt: string;
|
|
55
58
|
updatedAt: string;
|
|
56
|
-
description: string | null;
|
|
57
|
-
projectId: string;
|
|
58
|
-
tenantId: string;
|
|
59
59
|
props: Record<string, unknown> | null;
|
|
60
60
|
render: {
|
|
61
61
|
component: string;
|
|
@@ -104,12 +104,12 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
104
104
|
scopes: SubAgentScopeConfig;
|
|
105
105
|
artifactComponentId: string;
|
|
106
106
|
}) => Promise<{
|
|
107
|
+
tenantId: string;
|
|
108
|
+
projectId: string;
|
|
107
109
|
id: string;
|
|
110
|
+
agentId: string;
|
|
108
111
|
createdAt: string;
|
|
109
112
|
subAgentId: string;
|
|
110
|
-
agentId: string;
|
|
111
|
-
projectId: string;
|
|
112
|
-
tenantId: string;
|
|
113
113
|
artifactComponentId: string;
|
|
114
114
|
}>;
|
|
115
115
|
declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -147,12 +147,12 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
147
147
|
scopes: SubAgentScopeConfig;
|
|
148
148
|
artifactComponentId: string;
|
|
149
149
|
}) => Promise<{
|
|
150
|
+
tenantId: string;
|
|
151
|
+
projectId: string;
|
|
150
152
|
id: string;
|
|
153
|
+
agentId: string;
|
|
151
154
|
createdAt: string;
|
|
152
155
|
subAgentId: string;
|
|
153
|
-
agentId: string;
|
|
154
|
-
projectId: string;
|
|
155
|
-
tenantId: string;
|
|
156
156
|
artifactComponentId: string;
|
|
157
157
|
} | null>;
|
|
158
158
|
/**
|
|
@@ -8,24 +8,24 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
11
13
|
id: string;
|
|
14
|
+
agentId: string;
|
|
12
15
|
createdAt: string;
|
|
13
16
|
updatedAt: string;
|
|
14
|
-
agentId: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
17
|
headersSchema: unknown;
|
|
18
18
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
19
19
|
} | undefined>;
|
|
20
20
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
21
21
|
scopes: AgentScopeConfig;
|
|
22
22
|
}) => Promise<{
|
|
23
|
+
tenantId: string;
|
|
24
|
+
projectId: string;
|
|
23
25
|
id: string;
|
|
26
|
+
agentId: string;
|
|
24
27
|
createdAt: string;
|
|
25
28
|
updatedAt: string;
|
|
26
|
-
agentId: string;
|
|
27
|
-
projectId: string;
|
|
28
|
-
tenantId: string;
|
|
29
29
|
headersSchema: unknown;
|
|
30
30
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
31
31
|
}[]>;
|
|
@@ -42,12 +42,12 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
42
42
|
};
|
|
43
43
|
}>;
|
|
44
44
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
45
|
+
tenantId: string;
|
|
46
|
+
projectId: string;
|
|
45
47
|
id: string;
|
|
48
|
+
agentId: string;
|
|
46
49
|
createdAt: string;
|
|
47
50
|
updatedAt: string;
|
|
48
|
-
agentId: string;
|
|
49
|
-
projectId: string;
|
|
50
|
-
tenantId: string;
|
|
51
51
|
headersSchema: unknown;
|
|
52
52
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
53
53
|
}>;
|
|
@@ -82,12 +82,12 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
|
|
|
82
82
|
declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
83
83
|
data: ContextConfigInsert;
|
|
84
84
|
}) => Promise<{
|
|
85
|
+
tenantId: string;
|
|
86
|
+
projectId: string;
|
|
85
87
|
id: string;
|
|
88
|
+
agentId: string;
|
|
86
89
|
createdAt: string;
|
|
87
90
|
updatedAt: string;
|
|
88
|
-
agentId: string;
|
|
89
|
-
projectId: string;
|
|
90
|
-
tenantId: string;
|
|
91
91
|
headersSchema: unknown;
|
|
92
92
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
93
93
|
}>;
|
|
@@ -64,13 +64,13 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
64
64
|
scopes: SubAgentScopeConfig;
|
|
65
65
|
dataComponentId: string;
|
|
66
66
|
}) => Promise<{
|
|
67
|
+
tenantId: string;
|
|
68
|
+
projectId: string;
|
|
67
69
|
id: string;
|
|
68
|
-
createdAt: string;
|
|
69
|
-
subAgentId: string;
|
|
70
70
|
agentId: string;
|
|
71
|
-
|
|
72
|
-
tenantId: string;
|
|
71
|
+
createdAt: string;
|
|
73
72
|
dataComponentId: string;
|
|
73
|
+
subAgentId: string;
|
|
74
74
|
}>;
|
|
75
75
|
/**
|
|
76
76
|
* Remove association between data component and agent
|
|
@@ -106,13 +106,13 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
106
106
|
scopes: SubAgentScopeConfig;
|
|
107
107
|
dataComponentId: string;
|
|
108
108
|
}) => Promise<{
|
|
109
|
+
tenantId: string;
|
|
110
|
+
projectId: string;
|
|
109
111
|
id: string;
|
|
110
|
-
createdAt: string;
|
|
111
|
-
subAgentId: string;
|
|
112
112
|
agentId: string;
|
|
113
|
-
|
|
114
|
-
tenantId: string;
|
|
113
|
+
createdAt: string;
|
|
115
114
|
dataComponentId: string;
|
|
115
|
+
subAgentId: string;
|
|
116
116
|
} | null>;
|
|
117
117
|
/**
|
|
118
118
|
* Count data components for a tenant/project
|