@inkeep/agents-core 0.0.0-dev-20260205075846 → 0.0.0-dev-20260205163322
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 +104 -104
- package/dist/auth/auth.d.ts +53 -53
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +1 -1
- package/dist/data-access/manage/agents.d.ts +16 -16
- package/dist/data-access/manage/artifactComponents.d.ts +2 -2
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +2 -2
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +10 -10
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +12 -12
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/tasks.d.ts +1 -1
- package/dist/db/manage/manage-schema.d.ts +378 -378
- package/dist/db/runtime/runtime-schema.d.ts +232 -232
- package/dist/validation/schemas.d.ts +1228 -1228
- 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_plugins20 from "better-auth/plugins";
|
|
6
6
|
import * as zod0 from "zod";
|
|
7
7
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
8
8
|
|
|
@@ -219,7 +219,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
219
219
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
220
220
|
}[];
|
|
221
221
|
};
|
|
222
|
-
options:
|
|
222
|
+
options: better_auth_plugins20.BearerOptions | undefined;
|
|
223
223
|
}, {
|
|
224
224
|
id: "sso";
|
|
225
225
|
endpoints: {
|
|
@@ -847,30 +847,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
847
847
|
};
|
|
848
848
|
}, {
|
|
849
849
|
id: "organization";
|
|
850
|
-
endpoints:
|
|
850
|
+
endpoints: better_auth_plugins20.OrganizationEndpoints<{
|
|
851
851
|
allowUserToCreateOrganization: true;
|
|
852
|
-
ac:
|
|
852
|
+
ac: better_auth_plugins20.AccessControl;
|
|
853
853
|
roles: {
|
|
854
854
|
member: {
|
|
855
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
856
|
-
actions:
|
|
855
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
856
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
857
857
|
connector: "OR" | "AND";
|
|
858
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
859
|
-
statements:
|
|
858
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
859
|
+
statements: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
860
860
|
};
|
|
861
861
|
admin: {
|
|
862
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
863
|
-
actions:
|
|
862
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
863
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
864
864
|
connector: "OR" | "AND";
|
|
865
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
866
|
-
statements:
|
|
865
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
866
|
+
statements: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
867
867
|
};
|
|
868
868
|
owner: {
|
|
869
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
870
|
-
actions:
|
|
869
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
870
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
871
871
|
connector: "OR" | "AND";
|
|
872
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
873
|
-
statements:
|
|
872
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
873
|
+
statements: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
874
874
|
};
|
|
875
875
|
};
|
|
876
876
|
creatorRole: "admin";
|
|
@@ -881,9 +881,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
881
881
|
id: string;
|
|
882
882
|
role: string;
|
|
883
883
|
email: string;
|
|
884
|
-
organization:
|
|
885
|
-
invitation:
|
|
886
|
-
inviter:
|
|
884
|
+
organization: better_auth_plugins20.Organization;
|
|
885
|
+
invitation: better_auth_plugins20.Invitation;
|
|
886
|
+
inviter: better_auth_plugins20.Member & {
|
|
887
887
|
user: better_auth0.User;
|
|
888
888
|
};
|
|
889
889
|
}): Promise<void>;
|
|
@@ -893,28 +893,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
893
893
|
user,
|
|
894
894
|
organization: org
|
|
895
895
|
}: {
|
|
896
|
-
invitation:
|
|
897
|
-
member:
|
|
896
|
+
invitation: better_auth_plugins20.Invitation & Record<string, any>;
|
|
897
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
898
898
|
user: better_auth0.User & Record<string, any>;
|
|
899
|
-
organization:
|
|
899
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
900
900
|
}) => Promise<void>;
|
|
901
901
|
beforeUpdateMemberRole: ({
|
|
902
902
|
member,
|
|
903
903
|
organization: org,
|
|
904
904
|
newRole
|
|
905
905
|
}: {
|
|
906
|
-
member:
|
|
906
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
907
907
|
newRole: string;
|
|
908
908
|
user: better_auth0.User & Record<string, any>;
|
|
909
|
-
organization:
|
|
909
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
910
910
|
}) => Promise<void>;
|
|
911
911
|
afterRemoveMember: ({
|
|
912
912
|
member,
|
|
913
913
|
organization: org
|
|
914
914
|
}: {
|
|
915
|
-
member:
|
|
915
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
916
916
|
user: better_auth0.User & Record<string, any>;
|
|
917
|
-
organization:
|
|
917
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
918
918
|
}) => Promise<void>;
|
|
919
919
|
};
|
|
920
920
|
}>;
|
|
@@ -1046,7 +1046,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1046
1046
|
organizationId: string;
|
|
1047
1047
|
email: string;
|
|
1048
1048
|
role: "member" | "admin" | "owner";
|
|
1049
|
-
status:
|
|
1049
|
+
status: better_auth_plugins20.InvitationStatus;
|
|
1050
1050
|
inviterId: string;
|
|
1051
1051
|
expiresAt: Date;
|
|
1052
1052
|
createdAt: Date;
|
|
@@ -1085,7 +1085,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1085
1085
|
organizationId: string;
|
|
1086
1086
|
email: string;
|
|
1087
1087
|
role: "member" | "admin" | "owner";
|
|
1088
|
-
status:
|
|
1088
|
+
status: better_auth_plugins20.InvitationStatus;
|
|
1089
1089
|
inviterId: string;
|
|
1090
1090
|
expiresAt: Date;
|
|
1091
1091
|
createdAt: Date;
|
|
@@ -1159,28 +1159,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1159
1159
|
};
|
|
1160
1160
|
options: NoInfer<{
|
|
1161
1161
|
allowUserToCreateOrganization: true;
|
|
1162
|
-
ac:
|
|
1162
|
+
ac: better_auth_plugins20.AccessControl;
|
|
1163
1163
|
roles: {
|
|
1164
1164
|
member: {
|
|
1165
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
1166
|
-
actions:
|
|
1165
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1166
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1167
1167
|
connector: "OR" | "AND";
|
|
1168
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1169
|
-
statements:
|
|
1168
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1169
|
+
statements: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1170
1170
|
};
|
|
1171
1171
|
admin: {
|
|
1172
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
1173
|
-
actions:
|
|
1172
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1173
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1174
1174
|
connector: "OR" | "AND";
|
|
1175
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1176
|
-
statements:
|
|
1175
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1176
|
+
statements: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1177
1177
|
};
|
|
1178
1178
|
owner: {
|
|
1179
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
1180
|
-
actions:
|
|
1179
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1180
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1181
1181
|
connector: "OR" | "AND";
|
|
1182
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1183
|
-
statements:
|
|
1182
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1183
|
+
statements: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1184
1184
|
};
|
|
1185
1185
|
};
|
|
1186
1186
|
creatorRole: "admin";
|
|
@@ -1191,9 +1191,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1191
1191
|
id: string;
|
|
1192
1192
|
role: string;
|
|
1193
1193
|
email: string;
|
|
1194
|
-
organization:
|
|
1195
|
-
invitation:
|
|
1196
|
-
inviter:
|
|
1194
|
+
organization: better_auth_plugins20.Organization;
|
|
1195
|
+
invitation: better_auth_plugins20.Invitation;
|
|
1196
|
+
inviter: better_auth_plugins20.Member & {
|
|
1197
1197
|
user: better_auth0.User;
|
|
1198
1198
|
};
|
|
1199
1199
|
}): Promise<void>;
|
|
@@ -1203,28 +1203,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1203
1203
|
user,
|
|
1204
1204
|
organization: org
|
|
1205
1205
|
}: {
|
|
1206
|
-
invitation:
|
|
1207
|
-
member:
|
|
1206
|
+
invitation: better_auth_plugins20.Invitation & Record<string, any>;
|
|
1207
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1208
1208
|
user: better_auth0.User & Record<string, any>;
|
|
1209
|
-
organization:
|
|
1209
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1210
1210
|
}) => Promise<void>;
|
|
1211
1211
|
beforeUpdateMemberRole: ({
|
|
1212
1212
|
member,
|
|
1213
1213
|
organization: org,
|
|
1214
1214
|
newRole
|
|
1215
1215
|
}: {
|
|
1216
|
-
member:
|
|
1216
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1217
1217
|
newRole: string;
|
|
1218
1218
|
user: better_auth0.User & Record<string, any>;
|
|
1219
|
-
organization:
|
|
1219
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1220
1220
|
}) => Promise<void>;
|
|
1221
1221
|
afterRemoveMember: ({
|
|
1222
1222
|
member,
|
|
1223
1223
|
organization: org
|
|
1224
1224
|
}: {
|
|
1225
|
-
member:
|
|
1225
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1226
1226
|
user: better_auth0.User & Record<string, any>;
|
|
1227
|
-
organization:
|
|
1227
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1228
1228
|
}) => Promise<void>;
|
|
1229
1229
|
};
|
|
1230
1230
|
}>;
|
|
@@ -1561,8 +1561,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1561
1561
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1562
1562
|
};
|
|
1563
1563
|
options: Partial<{
|
|
1564
|
-
expiresIn:
|
|
1565
|
-
interval:
|
|
1564
|
+
expiresIn: better_auth_plugins20.TimeString;
|
|
1565
|
+
interval: better_auth_plugins20.TimeString;
|
|
1566
1566
|
deviceCodeLength: number;
|
|
1567
1567
|
userCodeLength: number;
|
|
1568
1568
|
schema: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins0 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" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
11
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
12
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.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" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
18
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
19
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.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" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
25
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
26
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -65,8 +65,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
|
|
|
65
65
|
canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
66
66
|
canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
67
67
|
type: z.ZodOptional<z.ZodEnum<{
|
|
68
|
-
external: "external";
|
|
69
68
|
internal: "internal";
|
|
69
|
+
external: "external";
|
|
70
70
|
}>>;
|
|
71
71
|
}, z.core.$strip>;
|
|
72
72
|
declare const ToolApiInsertSchema: z.ZodObject<{
|
|
@@ -13,6 +13,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
description: string | null;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
prompt: string | null;
|
|
16
19
|
models: {
|
|
17
20
|
base?: {
|
|
18
21
|
model?: string | undefined;
|
|
@@ -30,10 +33,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
30
33
|
stopWhen: {
|
|
31
34
|
transferCountIs?: number | undefined;
|
|
32
35
|
} | null;
|
|
33
|
-
tenantId: string;
|
|
34
36
|
defaultSubAgentId: string | null;
|
|
35
37
|
contextConfigId: string | null;
|
|
36
|
-
prompt: string | null;
|
|
37
38
|
statusUpdates: {
|
|
38
39
|
enabled?: boolean | undefined;
|
|
39
40
|
numEvents?: number | undefined;
|
|
@@ -49,7 +50,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
49
50
|
} | undefined;
|
|
50
51
|
}[] | undefined;
|
|
51
52
|
} | null;
|
|
52
|
-
projectId: string;
|
|
53
53
|
} | null>;
|
|
54
54
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
55
55
|
scopes: AgentScopeConfig;
|
|
@@ -59,6 +59,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
59
59
|
createdAt: string;
|
|
60
60
|
updatedAt: string;
|
|
61
61
|
description: string | null;
|
|
62
|
+
tenantId: string;
|
|
63
|
+
projectId: string;
|
|
64
|
+
prompt: string | null;
|
|
62
65
|
models: {
|
|
63
66
|
base?: {
|
|
64
67
|
model?: string | undefined;
|
|
@@ -76,10 +79,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
76
79
|
stopWhen: {
|
|
77
80
|
transferCountIs?: number | undefined;
|
|
78
81
|
} | null;
|
|
79
|
-
tenantId: string;
|
|
80
82
|
defaultSubAgentId: string | null;
|
|
81
83
|
contextConfigId: string | null;
|
|
82
|
-
prompt: string | null;
|
|
83
84
|
statusUpdates: {
|
|
84
85
|
enabled?: boolean | undefined;
|
|
85
86
|
numEvents?: number | undefined;
|
|
@@ -95,13 +96,16 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
95
96
|
} | undefined;
|
|
96
97
|
}[] | undefined;
|
|
97
98
|
} | null;
|
|
98
|
-
projectId: string;
|
|
99
99
|
defaultSubAgent: {
|
|
100
100
|
id: string;
|
|
101
101
|
name: string;
|
|
102
102
|
createdAt: string;
|
|
103
103
|
updatedAt: string;
|
|
104
104
|
description: string | null;
|
|
105
|
+
tenantId: string;
|
|
106
|
+
projectId: string;
|
|
107
|
+
prompt: string | null;
|
|
108
|
+
agentId: string;
|
|
105
109
|
models: {
|
|
106
110
|
base?: {
|
|
107
111
|
model?: string | undefined;
|
|
@@ -119,10 +123,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
119
123
|
stopWhen: {
|
|
120
124
|
stepCountIs?: number | undefined;
|
|
121
125
|
} | null;
|
|
122
|
-
tenantId: string;
|
|
123
|
-
prompt: string | null;
|
|
124
|
-
projectId: string;
|
|
125
|
-
agentId: string;
|
|
126
126
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
127
127
|
} | null;
|
|
128
128
|
} | null>;
|
|
@@ -134,6 +134,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
134
134
|
createdAt: string;
|
|
135
135
|
updatedAt: string;
|
|
136
136
|
description: string | null;
|
|
137
|
+
tenantId: string;
|
|
138
|
+
projectId: string;
|
|
139
|
+
prompt: string | null;
|
|
137
140
|
models: {
|
|
138
141
|
base?: {
|
|
139
142
|
model?: string | undefined;
|
|
@@ -151,10 +154,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
151
154
|
stopWhen: {
|
|
152
155
|
transferCountIs?: number | undefined;
|
|
153
156
|
} | null;
|
|
154
|
-
tenantId: string;
|
|
155
157
|
defaultSubAgentId: string | null;
|
|
156
158
|
contextConfigId: string | null;
|
|
157
|
-
prompt: string | null;
|
|
158
159
|
statusUpdates: {
|
|
159
160
|
enabled?: boolean | undefined;
|
|
160
161
|
numEvents?: number | undefined;
|
|
@@ -170,7 +171,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
170
171
|
} | undefined;
|
|
171
172
|
}[] | undefined;
|
|
172
173
|
} | null;
|
|
173
|
-
projectId: string;
|
|
174
174
|
}[]>;
|
|
175
175
|
declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
176
176
|
scopes: ProjectScopeConfig;
|
|
@@ -250,6 +250,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
250
250
|
createdAt: string;
|
|
251
251
|
updatedAt: string;
|
|
252
252
|
description: string | null;
|
|
253
|
+
tenantId: string;
|
|
254
|
+
projectId: string;
|
|
255
|
+
prompt: string | null;
|
|
253
256
|
models: {
|
|
254
257
|
base?: {
|
|
255
258
|
model?: string | undefined;
|
|
@@ -267,10 +270,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
267
270
|
stopWhen: {
|
|
268
271
|
transferCountIs?: number | undefined;
|
|
269
272
|
} | null;
|
|
270
|
-
tenantId: string;
|
|
271
273
|
defaultSubAgentId: string | null;
|
|
272
274
|
contextConfigId: string | null;
|
|
273
|
-
prompt: string | null;
|
|
274
275
|
statusUpdates: {
|
|
275
276
|
enabled?: boolean | undefined;
|
|
276
277
|
numEvents?: number | undefined;
|
|
@@ -286,7 +287,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
286
287
|
} | undefined;
|
|
287
288
|
}[] | undefined;
|
|
288
289
|
} | null;
|
|
289
|
-
projectId: string;
|
|
290
290
|
}>;
|
|
291
291
|
declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
292
292
|
scopes: AgentScopeConfig;
|
|
@@ -104,12 +104,12 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
104
104
|
scopes: SubAgentScopeConfig;
|
|
105
105
|
artifactComponentId: string;
|
|
106
106
|
}) => Promise<{
|
|
107
|
-
subAgentId: string;
|
|
108
107
|
id: string;
|
|
109
108
|
createdAt: string;
|
|
110
109
|
tenantId: string;
|
|
111
110
|
projectId: string;
|
|
112
111
|
agentId: string;
|
|
112
|
+
subAgentId: 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
|
-
subAgentId: string;
|
|
151
150
|
id: string;
|
|
152
151
|
createdAt: string;
|
|
153
152
|
tenantId: string;
|
|
154
153
|
projectId: string;
|
|
155
154
|
agentId: string;
|
|
155
|
+
subAgentId: string;
|
|
156
156
|
artifactComponentId: string;
|
|
157
157
|
} | null>;
|
|
158
158
|
/**
|
|
@@ -13,9 +13,9 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
tenantId: string;
|
|
15
15
|
projectId: string;
|
|
16
|
+
agentId: string;
|
|
16
17
|
headersSchema: unknown;
|
|
17
18
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
18
|
-
agentId: string;
|
|
19
19
|
} | undefined>;
|
|
20
20
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
21
21
|
scopes: AgentScopeConfig;
|
|
@@ -25,9 +25,9 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
25
25
|
updatedAt: string;
|
|
26
26
|
tenantId: string;
|
|
27
27
|
projectId: string;
|
|
28
|
+
agentId: string;
|
|
28
29
|
headersSchema: unknown;
|
|
29
30
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
30
|
-
agentId: string;
|
|
31
31
|
}[]>;
|
|
32
32
|
declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
33
33
|
scopes: AgentScopeConfig;
|
|
@@ -47,9 +47,9 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
47
47
|
updatedAt: string;
|
|
48
48
|
tenantId: string;
|
|
49
49
|
projectId: string;
|
|
50
|
+
agentId: string;
|
|
50
51
|
headersSchema: unknown;
|
|
51
52
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
52
|
-
agentId: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
55
55
|
scopes: AgentScopeConfig;
|
|
@@ -87,9 +87,9 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
87
87
|
updatedAt: string;
|
|
88
88
|
tenantId: string;
|
|
89
89
|
projectId: string;
|
|
90
|
+
agentId: string;
|
|
90
91
|
headersSchema: unknown;
|
|
91
92
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
92
|
-
agentId: string;
|
|
93
93
|
}>;
|
|
94
94
|
//#endregion
|
|
95
95
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -64,12 +64,12 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
64
64
|
scopes: SubAgentScopeConfig;
|
|
65
65
|
dataComponentId: string;
|
|
66
66
|
}) => Promise<{
|
|
67
|
-
subAgentId: string;
|
|
68
67
|
id: string;
|
|
69
68
|
createdAt: string;
|
|
70
69
|
tenantId: string;
|
|
71
70
|
projectId: string;
|
|
72
71
|
agentId: string;
|
|
72
|
+
subAgentId: string;
|
|
73
73
|
dataComponentId: string;
|
|
74
74
|
}>;
|
|
75
75
|
/**
|
|
@@ -106,12 +106,12 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
106
106
|
scopes: SubAgentScopeConfig;
|
|
107
107
|
dataComponentId: string;
|
|
108
108
|
}) => Promise<{
|
|
109
|
-
subAgentId: string;
|
|
110
109
|
id: string;
|
|
111
110
|
createdAt: string;
|
|
112
111
|
tenantId: string;
|
|
113
112
|
projectId: string;
|
|
114
113
|
agentId: string;
|
|
114
|
+
subAgentId: string;
|
|
115
115
|
dataComponentId: string;
|
|
116
116
|
} | null>;
|
|
117
117
|
/**
|
|
@@ -161,7 +161,6 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
161
161
|
needsApproval?: boolean;
|
|
162
162
|
}> | null;
|
|
163
163
|
}) => Promise<{
|
|
164
|
-
subAgentId: string;
|
|
165
164
|
id: string;
|
|
166
165
|
createdAt: string;
|
|
167
166
|
updatedAt: string;
|
|
@@ -171,6 +170,7 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
171
170
|
toolPolicies: Record<string, {
|
|
172
171
|
needsApproval?: boolean;
|
|
173
172
|
}> | null;
|
|
173
|
+
subAgentId: string;
|
|
174
174
|
functionToolId: string;
|
|
175
175
|
}>;
|
|
176
176
|
/**
|
|
@@ -226,7 +226,6 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
226
226
|
needsApproval?: boolean;
|
|
227
227
|
}> | null;
|
|
228
228
|
}) => Promise<{
|
|
229
|
-
subAgentId: string;
|
|
230
229
|
id: string;
|
|
231
230
|
createdAt: string;
|
|
232
231
|
updatedAt: string;
|
|
@@ -236,6 +235,7 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
236
235
|
toolPolicies: Record<string, {
|
|
237
236
|
needsApproval?: boolean;
|
|
238
237
|
}> | null;
|
|
238
|
+
subAgentId: string;
|
|
239
239
|
functionToolId: string;
|
|
240
240
|
}>;
|
|
241
241
|
//#endregion
|