@inkeep/agents-core 0.0.0-dev-20260409021932 → 0.0.0-dev-20260409192310

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.
Files changed (52) hide show
  1. package/dist/auth/permissions.d.ts +9 -9
  2. package/dist/client-exports.d.ts +2 -2
  3. package/dist/client-exports.js +2 -2
  4. package/dist/constants/otel-attributes.d.ts +2 -0
  5. package/dist/constants/otel-attributes.js +2 -0
  6. package/dist/data-access/index.d.ts +2 -2
  7. package/dist/data-access/index.js +2 -2
  8. package/dist/data-access/manage/agentFull.js +23 -3
  9. package/dist/data-access/manage/agents.d.ts +10 -10
  10. package/dist/data-access/manage/agents.js +12 -1
  11. package/dist/data-access/manage/artifactComponents.d.ts +2 -2
  12. package/dist/data-access/manage/contextConfigs.d.ts +4 -4
  13. package/dist/data-access/manage/functionTools.d.ts +2 -2
  14. package/dist/data-access/manage/skills.d.ts +7 -7
  15. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
  16. package/dist/data-access/manage/subAgentRelations.d.ts +4 -4
  17. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
  18. package/dist/data-access/manage/subAgents.d.ts +6 -6
  19. package/dist/data-access/manage/tools.d.ts +12 -12
  20. package/dist/data-access/manage/triggerCleanup.js +6 -1
  21. package/dist/data-access/manage/triggers.d.ts +62 -3
  22. package/dist/data-access/manage/triggers.js +88 -3
  23. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  24. package/dist/data-access/runtime/apps.d.ts +6 -6
  25. package/dist/data-access/runtime/conversations.d.ts +12 -12
  26. package/dist/data-access/runtime/messages.d.ts +9 -9
  27. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  28. package/dist/data-access/runtime/tasks.d.ts +2 -2
  29. package/dist/data-access/runtime/triggerInvocations.d.ts +2 -0
  30. package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
  31. package/dist/db/manage/manage-schema.d.ts +587 -451
  32. package/dist/db/manage/manage-schema.js +43 -2
  33. package/dist/db/runtime/runtime-schema.d.ts +443 -405
  34. package/dist/db/runtime/runtime-schema.js +4 -1
  35. package/dist/index.d.ts +4 -4
  36. package/dist/index.js +4 -4
  37. package/dist/middleware/no-auth.d.ts +2 -2
  38. package/dist/utils/signature-validation.d.ts +2 -2
  39. package/dist/utils/signature-validation.js +2 -2
  40. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  41. package/dist/validation/index.d.ts +2 -2
  42. package/dist/validation/index.js +2 -2
  43. package/dist/validation/schemas/skills.d.ts +34 -34
  44. package/dist/validation/schemas.d.ts +1877 -1683
  45. package/dist/validation/schemas.js +35 -13
  46. package/drizzle/manage/0018_gorgeous_captain_america.sql +14 -0
  47. package/drizzle/manage/meta/0018_snapshot.json +3884 -0
  48. package/drizzle/manage/meta/_journal.json +7 -0
  49. package/drizzle/runtime/0035_many_steel_serpent.sql +3 -0
  50. package/drizzle/runtime/meta/0035_snapshot.json +5321 -0
  51. package/drizzle/runtime/meta/_journal.json +7 -0
  52. package/package.json +1 -1
@@ -12,7 +12,7 @@ import { createSubAgentRelation, deleteAgentRelationsByAgent, deleteAgentToolRel
12
12
  import { deleteSubAgent, listSubAgents, upsertSubAgent } from "./subAgents.js";
13
13
  import { deleteSubAgentTeamAgentRelation, getSubAgentTeamAgentRelationsByAgent, upsertSubAgentTeamAgentRelation } from "./subAgentTeamAgentRelations.js";
14
14
  import { upsertSubAgentToolRelation } from "./tools.js";
15
- import { deleteTrigger, listTriggers, upsertTrigger } from "./triggers.js";
15
+ import { deleteTrigger, listTriggers, setTriggerUsers, upsertTrigger } from "./triggers.js";
16
16
  import { deleteAgent, getAgentById, getFullAgentDefinition, getFullAgentDefinitionWithRelationIds, updateAgent, upsertAgent } from "./agents.js";
17
17
  import { associateArtifactComponentWithAgent, deleteAgentArtifactComponentRelationByAgent, upsertAgentArtifactComponentRelation } from "./artifactComponents.js";
18
18
  import { associateDataComponentWithAgent, deleteAgentDataComponentRelationByAgent, upsertAgentDataComponentRelation } from "./dataComponents.js";
@@ -285,6 +285,7 @@ const createFullAgentServerSide = (db) => async (scopes, agentData) => {
285
285
  agentId: finalAgentId,
286
286
  triggerId
287
287
  }, "Creating trigger in agent");
288
+ const { runAsUserIds, ...triggerInsertData } = triggerData;
288
289
  await upsertTrigger(db)({
289
290
  scopes: {
290
291
  tenantId,
@@ -292,13 +293,22 @@ const createFullAgentServerSide = (db) => async (scopes, agentData) => {
292
293
  agentId: finalAgentId
293
294
  },
294
295
  data: {
295
- ...triggerData,
296
+ ...triggerInsertData,
296
297
  id: triggerId,
297
298
  tenantId,
298
299
  projectId,
299
300
  agentId: finalAgentId
300
301
  }
301
302
  });
303
+ if (runAsUserIds && runAsUserIds.length > 0) await setTriggerUsers(db)({
304
+ scopes: {
305
+ tenantId,
306
+ projectId,
307
+ agentId: finalAgentId
308
+ },
309
+ triggerId,
310
+ userIds: runAsUserIds
311
+ });
302
312
  logger.info({
303
313
  agentId: finalAgentId,
304
314
  triggerId
@@ -857,6 +867,7 @@ const updateFullAgentServerSide = (db) => async (scopes, agentData) => {
857
867
  agentId: finalAgentId,
858
868
  triggerId
859
869
  }, "Updating trigger in agent");
870
+ const { runAsUserIds, ...triggerInsertData } = triggerData;
860
871
  await upsertTrigger(db)({
861
872
  scopes: {
862
873
  tenantId,
@@ -864,13 +875,22 @@ const updateFullAgentServerSide = (db) => async (scopes, agentData) => {
864
875
  agentId: finalAgentId
865
876
  },
866
877
  data: {
867
- ...triggerData,
878
+ ...triggerInsertData,
868
879
  id: triggerId,
869
880
  tenantId,
870
881
  projectId,
871
882
  agentId: finalAgentId
872
883
  }
873
884
  });
885
+ if (runAsUserIds !== void 0) await setTriggerUsers(db)({
886
+ scopes: {
887
+ tenantId,
888
+ projectId,
889
+ agentId: finalAgentId
890
+ },
891
+ triggerId,
892
+ userIds: runAsUserIds
893
+ });
874
894
  logger.info({
875
895
  agentId: finalAgentId,
876
896
  triggerId
@@ -10,8 +10,8 @@ import { PgColumn } from "drizzle-orm/pg-core";
10
10
  declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  scopes: AgentScopeConfig;
12
12
  }) => Promise<{
13
- name: string;
14
13
  id: string;
14
+ name: string;
15
15
  createdAt: string;
16
16
  updatedAt: string;
17
17
  description: string | null;
@@ -39,6 +39,7 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
39
39
  transferCountIs?: number | undefined;
40
40
  } | null;
41
41
  tenantId: string;
42
+ projectId: string;
42
43
  defaultSubAgentId: string | null;
43
44
  contextConfigId: string | null;
44
45
  prompt: string | null;
@@ -58,13 +59,12 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
58
59
  }[] | undefined;
59
60
  } | null;
60
61
  executionMode: "classic" | "durable";
61
- projectId: string;
62
62
  } | null>;
63
63
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
64
64
  scopes: AgentScopeConfig;
65
65
  }) => Promise<{
66
- name: string;
67
66
  id: string;
67
+ name: string;
68
68
  createdAt: string;
69
69
  updatedAt: string;
70
70
  description: string | null;
@@ -92,6 +92,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
92
92
  transferCountIs?: number | undefined;
93
93
  } | null;
94
94
  tenantId: string;
95
+ projectId: string;
95
96
  defaultSubAgentId: string | null;
96
97
  contextConfigId: string | null;
97
98
  prompt: string | null;
@@ -111,10 +112,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
111
112
  }[] | undefined;
112
113
  } | null;
113
114
  executionMode: "classic" | "durable";
114
- projectId: string;
115
115
  defaultSubAgent: {
116
- name: string;
117
116
  id: string;
117
+ name: string;
118
118
  createdAt: string;
119
119
  updatedAt: string;
120
120
  description: string | null;
@@ -142,17 +142,17 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
142
142
  stepCountIs?: number | undefined;
143
143
  } | null;
144
144
  tenantId: string;
145
- prompt: string | null;
146
145
  projectId: string;
147
146
  agentId: string;
147
+ prompt: string | null;
148
148
  conversationHistoryConfig: ConversationHistoryConfig | null;
149
149
  } | null;
150
150
  } | null>;
151
151
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
152
152
  scopes: ProjectScopeConfig;
153
153
  }) => Promise<{
154
- name: string;
155
154
  id: string;
155
+ name: string;
156
156
  createdAt: string;
157
157
  updatedAt: string;
158
158
  description: string | null;
@@ -180,6 +180,7 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
180
180
  transferCountIs?: number | undefined;
181
181
  } | null;
182
182
  tenantId: string;
183
+ projectId: string;
183
184
  defaultSubAgentId: string | null;
184
185
  contextConfigId: string | null;
185
186
  prompt: string | null;
@@ -199,7 +200,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
199
200
  }[] | undefined;
200
201
  } | null;
201
202
  executionMode: "classic" | "durable";
202
- projectId: string;
203
203
  }[]>;
204
204
  declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
205
205
  scopes: ProjectScopeConfig;
@@ -281,8 +281,8 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
281
281
  projectIds: string[];
282
282
  }): Promise<AvailableAgentInfo[]>;
283
283
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
284
- name: string;
285
284
  id: string;
285
+ name: string;
286
286
  createdAt: string;
287
287
  updatedAt: string;
288
288
  description: string | null;
@@ -310,6 +310,7 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
310
310
  transferCountIs?: number | undefined;
311
311
  } | null;
312
312
  tenantId: string;
313
+ projectId: string;
313
314
  defaultSubAgentId: string | null;
314
315
  contextConfigId: string | null;
315
316
  prompt: string | null;
@@ -329,7 +330,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
329
330
  }[] | undefined;
330
331
  } | null;
331
332
  executionMode: "classic" | "durable";
332
- projectId: string;
333
333
  }>;
334
334
  declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
335
335
  scopes: AgentScopeConfig;
@@ -16,7 +16,7 @@ import { getAgentRelations, getAgentRelationsByAgent } from "./subAgentRelations
16
16
  import { getSubAgentById } from "./subAgents.js";
17
17
  import { getSubAgentTeamAgentRelationsByAgent } from "./subAgentTeamAgentRelations.js";
18
18
  import { listTools } from "./tools.js";
19
- import { listTriggers } from "./triggers.js";
19
+ import { getTriggerUsersBatch, listTriggers } from "./triggers.js";
20
20
  import { and, count, desc, eq, inArray, sql } from "drizzle-orm";
21
21
 
22
22
  //#region src/data-access/manage/agents.ts
@@ -552,6 +552,15 @@ const getFullAgentDefinitionInternal = (db) => async ({ scopes: { tenantId, proj
552
552
  count: triggersList.length
553
553
  }, "Fetched triggers for agent");
554
554
  if (triggersList.length > 0) {
555
+ const triggerIds = triggersList.map((t) => t.id);
556
+ const usersByTrigger = await getTriggerUsersBatch(db)({
557
+ scopes: {
558
+ tenantId,
559
+ projectId,
560
+ agentId
561
+ },
562
+ triggerIds
563
+ });
555
564
  const triggersObject = {};
556
565
  for (const trigger of triggersList) triggersObject[trigger.id] = {
557
566
  id: trigger.id,
@@ -564,7 +573,9 @@ const getFullAgentDefinitionInternal = (db) => async ({ scopes: { tenantId, proj
564
573
  authentication: trigger.authentication,
565
574
  signingSecretCredentialReferenceId: trigger.signingSecretCredentialReferenceId,
566
575
  signatureVerification: trigger.signatureVerification,
576
+ dispatchDelayMs: trigger.dispatchDelayMs,
567
577
  runAsUserId: trigger.runAsUserId,
578
+ runAsUserIds: usersByTrigger.get(trigger.id) ?? [],
568
579
  createdBy: trigger.createdBy
569
580
  };
570
581
  result.triggers = triggersObject;
@@ -9,8 +9,8 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
9
9
  scopes: ProjectScopeConfig;
10
10
  id: string;
11
11
  }) => Promise<{
12
- name: string;
13
12
  id: string;
13
+ name: string;
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
16
  description: string | null;
@@ -65,8 +65,8 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
65
65
  };
66
66
  }>;
67
67
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
68
- name: string;
69
68
  id: string;
69
+ name: string;
70
70
  createdAt: string;
71
71
  updatedAt: string;
72
72
  description: string | null;
@@ -14,9 +14,9 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
14
14
  updatedAt: string;
15
15
  tenantId: string;
16
16
  projectId: string;
17
+ agentId: string;
17
18
  headersSchema: unknown;
18
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
19
- agentId: string;
20
20
  } | undefined>;
21
21
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
@@ -26,9 +26,9 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
26
26
  updatedAt: string;
27
27
  tenantId: string;
28
28
  projectId: string;
29
+ agentId: string;
29
30
  headersSchema: unknown;
30
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
31
- agentId: string;
32
32
  }[]>;
33
33
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
34
34
  scopes: AgentScopeConfig;
@@ -48,9 +48,9 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
48
48
  updatedAt: string;
49
49
  tenantId: string;
50
50
  projectId: string;
51
+ agentId: string;
51
52
  headersSchema: unknown;
52
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
53
- agentId: string;
54
54
  }>;
55
55
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
@@ -88,9 +88,9 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
88
88
  updatedAt: string;
89
89
  tenantId: string;
90
90
  projectId: string;
91
+ agentId: string;
91
92
  headersSchema: unknown;
92
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
93
- agentId: string;
94
94
  }>;
95
95
  //#endregion
96
96
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -53,8 +53,8 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
- name: string;
57
56
  id: string;
57
+ name: string;
58
58
  createdAt: string;
59
59
  updatedAt: string;
60
60
  description: string | null;
@@ -95,8 +95,8 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
95
95
  data: FunctionToolApiInsert;
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
- name: string;
99
98
  id: string;
99
+ name: string;
100
100
  createdAt: string;
101
101
  updatedAt: string;
102
102
  description: string | null;
@@ -15,14 +15,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
15
15
  scopes: ProjectScopeConfig;
16
16
  skillId: string;
17
17
  }) => Promise<{
18
- metadata: Record<string, string> | null;
19
- name: string;
20
18
  id: string;
19
+ name: string;
21
20
  createdAt: string;
22
21
  updatedAt: string;
22
+ metadata: Record<string, string> | null;
23
23
  description: string;
24
- content: string;
25
24
  tenantId: string;
25
+ content: string;
26
26
  projectId: string;
27
27
  } | null>;
28
28
  declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
@@ -110,14 +110,14 @@ interface WithTenantIdProjectId {
110
110
  }
111
111
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
112
112
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
113
- metadata: Record<string, string> | null;
114
- name: string;
115
113
  id: string;
114
+ name: string;
116
115
  createdAt: string;
117
116
  updatedAt: string;
117
+ metadata: Record<string, string> | null;
118
118
  description: string;
119
- content: string;
120
119
  tenantId: string;
120
+ content: string;
121
121
  projectId: string;
122
122
  }>;
123
123
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -145,10 +145,10 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
145
145
  tenantId: string;
146
146
  projectId: string;
147
147
  agentId: string;
148
+ subAgentId: string;
148
149
  skillId: string;
149
150
  index: number;
150
151
  alwaysLoaded: boolean;
151
- subAgentId: string;
152
152
  }>;
153
153
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
154
154
  scopes: AgentScopeConfig;
@@ -9,10 +9,10 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- headers: Record<string, string> | null;
13
12
  id: string;
14
13
  createdAt: string;
15
14
  updatedAt: string;
15
+ headers: Record<string, string> | null;
16
16
  tenantId: string;
17
17
  projectId: string;
18
18
  agentId: string;
@@ -44,10 +44,10 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
44
44
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- headers: Record<string, string> | null;
48
47
  id: string;
49
48
  createdAt: string;
50
49
  updatedAt: string;
50
+ headers: Record<string, string> | null;
51
51
  tenantId: string;
52
52
  projectId: string;
53
53
  agentId: string;
@@ -57,10 +57,10 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- headers: Record<string, string> | null;
61
60
  id: string;
62
61
  createdAt: string;
63
62
  updatedAt: string;
63
+ headers: Record<string, string> | null;
64
64
  tenantId: string;
65
65
  projectId: string;
66
66
  agentId: string;
@@ -186,10 +186,10 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
186
186
  headers?: Record<string, string> | null;
187
187
  };
188
188
  }) => Promise<{
189
- headers: Record<string, string> | null;
190
189
  id: string;
191
190
  createdAt: string;
192
191
  updatedAt: string;
192
+ headers: Record<string, string> | null;
193
193
  tenantId: string;
194
194
  projectId: string;
195
195
  agentId: string;
@@ -203,10 +203,10 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
203
203
  scopes: SubAgentScopeConfig;
204
204
  externalAgentId: string;
205
205
  }) => Promise<{
206
- headers: Record<string, string> | null;
207
206
  id: string;
208
207
  createdAt: string;
209
208
  updatedAt: string;
209
+ headers: Record<string, string> | null;
210
210
  tenantId: string;
211
211
  projectId: string;
212
212
  agentId: string;
@@ -224,10 +224,10 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
224
224
  headers?: Record<string, string> | null;
225
225
  };
226
226
  }) => Promise<{
227
- headers: Record<string, string> | null;
228
227
  id: string;
229
228
  createdAt: string;
230
229
  updatedAt: string;
230
+ headers: Record<string, string> | null;
231
231
  tenantId: string;
232
232
  projectId: string;
233
233
  agentId: string;
@@ -204,15 +204,15 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
- headers: Record<string, string> | null;
208
207
  id: string;
209
208
  createdAt: string;
210
209
  updatedAt: string;
210
+ headers: Record<string, string> | null;
211
211
  tenantId: string;
212
212
  projectId: string;
213
213
  agentId: string;
214
- toolId: string;
215
214
  subAgentId: string;
215
+ toolId: string;
216
216
  selectedTools: string[] | null;
217
217
  toolPolicies: Record<string, {
218
218
  needsApproval?: boolean;
@@ -248,15 +248,15 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  scopes: SubAgentScopeConfig;
249
249
  relationId: string;
250
250
  }) => Promise<{
251
- headers: Record<string, string> | null;
252
251
  id: string;
253
252
  createdAt: string;
254
253
  updatedAt: string;
254
+ headers: Record<string, string> | null;
255
255
  tenantId: string;
256
256
  projectId: string;
257
257
  agentId: string;
258
- toolId: string;
259
258
  subAgentId: string;
259
+ toolId: string;
260
260
  selectedTools: string[] | null;
261
261
  toolPolicies: Record<string, {
262
262
  needsApproval?: boolean;
@@ -9,10 +9,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- headers: Record<string, string> | null;
13
12
  id: string;
14
13
  createdAt: string;
15
14
  updatedAt: string;
15
+ headers: Record<string, string> | null;
16
16
  tenantId: string;
17
17
  projectId: string;
18
18
  agentId: string;
@@ -44,10 +44,10 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
44
44
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- headers: Record<string, string> | null;
48
47
  id: string;
49
48
  createdAt: string;
50
49
  updatedAt: string;
50
+ headers: Record<string, string> | null;
51
51
  tenantId: string;
52
52
  projectId: string;
53
53
  agentId: string;
@@ -57,10 +57,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- headers: Record<string, string> | null;
61
60
  id: string;
62
61
  createdAt: string;
63
62
  updatedAt: string;
63
+ headers: Record<string, string> | null;
64
64
  tenantId: string;
65
65
  projectId: string;
66
66
  agentId: string;
@@ -222,10 +222,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
222
222
  headers?: Record<string, string> | null;
223
223
  };
224
224
  }) => Promise<{
225
- headers: Record<string, string> | null;
226
225
  id: string;
227
226
  createdAt: string;
228
227
  updatedAt: string;
228
+ headers: Record<string, string> | null;
229
229
  tenantId: string;
230
230
  projectId: string;
231
231
  agentId: string;
@@ -239,10 +239,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
239
239
  scopes: SubAgentScopeConfig;
240
240
  targetAgentId: string;
241
241
  }) => Promise<{
242
- headers: Record<string, string> | null;
243
242
  id: string;
244
243
  createdAt: string;
245
244
  updatedAt: string;
245
+ headers: Record<string, string> | null;
246
246
  tenantId: string;
247
247
  projectId: string;
248
248
  agentId: string;
@@ -260,10 +260,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
260
260
  headers?: Record<string, string> | null;
261
261
  };
262
262
  }) => Promise<{
263
- headers: Record<string, string> | null;
264
263
  id: string;
265
264
  createdAt: string;
266
265
  updatedAt: string;
266
+ headers: Record<string, string> | null;
267
267
  tenantId: string;
268
268
  projectId: string;
269
269
  agentId: string;
@@ -9,8 +9,8 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
- name: string;
13
12
  id: string;
13
+ name: string;
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
16
  description: string | null;
@@ -38,16 +38,16 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
38
38
  stepCountIs?: number | undefined;
39
39
  } | null;
40
40
  tenantId: string;
41
- prompt: string | null;
42
41
  projectId: string;
43
42
  agentId: string;
43
+ prompt: string | null;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  } | undefined>;
46
46
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
47
47
  scopes: AgentScopeConfig;
48
48
  }) => Promise<{
49
- name: string;
50
49
  id: string;
50
+ name: string;
51
51
  createdAt: string;
52
52
  updatedAt: string;
53
53
  description: string | null;
@@ -75,9 +75,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
75
75
  stepCountIs?: number | undefined;
76
76
  } | null;
77
77
  tenantId: string;
78
- prompt: string | null;
79
78
  projectId: string;
80
79
  agentId: string;
80
+ prompt: string | null;
81
81
  conversationHistoryConfig: ConversationHistoryConfig | null;
82
82
  }[]>;
83
83
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -127,8 +127,8 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
127
127
  };
128
128
  }>;
129
129
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
130
- name: string;
131
130
  id: string;
131
+ name: string;
132
132
  createdAt: string;
133
133
  updatedAt: string;
134
134
  description: string | null;
@@ -156,9 +156,9 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
156
156
  stepCountIs?: number | undefined;
157
157
  } | null;
158
158
  tenantId: string;
159
- prompt: string | null;
160
159
  projectId: string;
161
160
  agentId: string;
161
+ prompt: string | null;
162
162
  conversationHistoryConfig: ConversationHistoryConfig | null;
163
163
  }>;
164
164
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -20,12 +20,12 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
- headers: Record<string, string> | null;
24
- name: string;
25
23
  id: string;
24
+ name: string;
26
25
  createdAt: string;
27
26
  updatedAt: string;
28
27
  description: string | null;
28
+ headers: Record<string, string> | null;
29
29
  tenantId: string;
30
30
  projectId: string;
31
31
  credentialReferenceId: string | null;
@@ -78,12 +78,12 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
- headers: Record<string, string> | null;
82
- name: string;
83
81
  id: string;
82
+ name: string;
84
83
  createdAt: string;
85
84
  updatedAt: string;
86
85
  description: string | null;
86
+ headers: Record<string, string> | null;
87
87
  tenantId: string;
88
88
  projectId: string;
89
89
  credentialReferenceId: string | null;
@@ -135,15 +135,15 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
135
135
  needsApproval?: boolean;
136
136
  }> | null;
137
137
  }) => Promise<{
138
- headers: Record<string, string> | null;
139
138
  id: string;
140
139
  createdAt: string;
141
140
  updatedAt: string;
141
+ headers: Record<string, string> | null;
142
142
  tenantId: string;
143
143
  projectId: string;
144
144
  agentId: string;
145
- toolId: string;
146
145
  subAgentId: string;
146
+ toolId: string;
147
147
  selectedTools: string[] | null;
148
148
  toolPolicies: Record<string, {
149
149
  needsApproval?: boolean;
@@ -154,15 +154,15 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
154
154
  subAgentId: string;
155
155
  toolId: string;
156
156
  }) => Promise<{
157
- headers: Record<string, string> | null;
158
157
  id: string;
159
158
  createdAt: string;
160
159
  updatedAt: string;
160
+ headers: Record<string, string> | null;
161
161
  tenantId: string;
162
162
  projectId: string;
163
163
  agentId: string;
164
- toolId: string;
165
164
  subAgentId: string;
165
+ toolId: string;
166
166
  selectedTools: string[] | null;
167
167
  toolPolicies: Record<string, {
168
168
  needsApproval?: boolean;
@@ -182,15 +182,15 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
182
182
  }> | null;
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
- headers: Record<string, string> | null;
186
185
  id: string;
187
186
  createdAt: string;
188
187
  updatedAt: string;
188
+ headers: Record<string, string> | null;
189
189
  tenantId: string;
190
190
  projectId: string;
191
191
  agentId: string;
192
- toolId: string;
193
192
  subAgentId: string;
193
+ toolId: string;
194
194
  selectedTools: string[] | null;
195
195
  toolPolicies: Record<string, {
196
196
  needsApproval?: boolean;
@@ -202,12 +202,12 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
- headers: Record<string, string> | null;
206
- name: string;
207
205
  id: string;
206
+ name: string;
208
207
  createdAt: string;
209
208
  updatedAt: string;
210
209
  description: string | null;
210
+ headers: Record<string, string> | null;
211
211
  tenantId: string;
212
212
  projectId: string;
213
213
  credentialReferenceId: string | null;