@inkeep/agents-core 0.0.0-dev-20260330181206 → 0.0.0-dev-20260330201301

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 (65) hide show
  1. package/dist/auth/auth-config-utils.js +1 -1
  2. package/dist/auth/auth-schema.d.ts +86 -86
  3. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  4. package/dist/auth/auth.d.ts +6 -6
  5. package/dist/auth/auth.js +1 -1
  6. package/dist/auth/permissions.d.ts +13 -13
  7. package/dist/client-exports.d.ts +2 -2
  8. package/dist/client-exports.js +2 -2
  9. package/dist/data-access/index.d.ts +4 -7
  10. package/dist/data-access/index.js +4 -7
  11. package/dist/data-access/manage/agentFull.js +0 -116
  12. package/dist/data-access/manage/agents.d.ts +32 -32
  13. package/dist/data-access/manage/agents.js +0 -30
  14. package/dist/data-access/manage/artifactComponents.d.ts +8 -8
  15. package/dist/data-access/manage/audit-queries.d.ts +1 -14
  16. package/dist/data-access/manage/audit-queries.js +2 -16
  17. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  18. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  19. package/dist/data-access/manage/functionTools.d.ts +12 -12
  20. package/dist/data-access/manage/skills.d.ts +11 -11
  21. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  22. package/dist/data-access/manage/subAgentRelations.d.ts +22 -22
  23. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  24. package/dist/data-access/manage/subAgents.d.ts +24 -24
  25. package/dist/data-access/manage/tools.d.ts +24 -24
  26. package/dist/data-access/manage/triggerCleanup.js +18 -7
  27. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  28. package/dist/data-access/runtime/apps.d.ts +10 -10
  29. package/dist/data-access/runtime/cascade-delete.d.ts +2 -0
  30. package/dist/data-access/runtime/cascade-delete.js +13 -6
  31. package/dist/data-access/runtime/conversations.d.ts +16 -16
  32. package/dist/data-access/runtime/messages.d.ts +9 -9
  33. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +5 -4
  34. package/dist/data-access/runtime/scheduledTriggers.d.ts +89 -0
  35. package/dist/data-access/runtime/scheduledTriggers.js +91 -0
  36. package/dist/data-access/runtime/schedulerState.d.ts +11 -0
  37. package/dist/data-access/runtime/schedulerState.js +30 -0
  38. package/dist/data-access/runtime/tasks.d.ts +5 -5
  39. package/dist/data-reconciliation/index.d.ts +2 -2
  40. package/dist/data-reconciliation/types.d.ts +1 -28
  41. package/dist/db/manage/manage-schema.d.ts +340 -694
  42. package/dist/db/manage/manage-schema.js +2 -4
  43. package/dist/db/runtime/runtime-schema.d.ts +811 -350
  44. package/dist/db/runtime/runtime-schema.js +38 -5
  45. package/dist/index.d.ts +11 -12
  46. package/dist/index.js +8 -10
  47. package/dist/types/entities.d.ts +12 -2
  48. package/dist/types/index.d.ts +2 -2
  49. package/dist/utils/compute-next-run-at.d.ts +9 -0
  50. package/dist/utils/compute-next-run-at.js +18 -0
  51. package/dist/utils/index.d.ts +2 -1
  52. package/dist/utils/index.js +2 -1
  53. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  54. package/dist/validation/index.d.ts +2 -2
  55. package/dist/validation/index.js +2 -2
  56. package/dist/validation/schemas.d.ts +2668 -3648
  57. package/dist/validation/schemas.js +16 -32
  58. package/drizzle/runtime/0028_thick_squirrel_girl.sql +36 -0
  59. package/drizzle/runtime/meta/0028_snapshot.json +4661 -0
  60. package/drizzle/runtime/meta/_journal.json +7 -0
  61. package/package.json +2 -1
  62. package/dist/data-access/manage/scheduledTriggers.d.ts +0 -91
  63. package/dist/data-access/manage/scheduledTriggers.js +0 -87
  64. package/dist/data-access/manage/scheduledWorkflows.d.ts +0 -29
  65. package/dist/data-access/manage/scheduledWorkflows.js +0 -33
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
- description: string | null;
57
56
  name: string;
58
57
  id: string;
58
+ description: string | null;
59
59
  createdAt: string;
60
60
  updatedAt: string;
61
- agentId: string;
62
- projectId: string;
63
61
  tenantId: string;
62
+ projectId: string;
63
+ agentId: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
95
95
  data: FunctionToolApiInsert;
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
- description: string | null;
99
98
  name: string;
100
99
  id: string;
100
+ description: string | null;
101
101
  createdAt: string;
102
102
  updatedAt: string;
103
- agentId: string;
104
- projectId: string;
105
103
  tenantId: string;
104
+ projectId: string;
105
+ agentId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -160,14 +160,14 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
160
160
  id: string;
161
161
  createdAt: string;
162
162
  updatedAt: string;
163
- agentId: string;
164
- projectId: string;
165
163
  tenantId: string;
164
+ projectId: string;
165
+ agentId: string;
166
166
  subAgentId: string;
167
- functionToolId: string;
168
167
  toolPolicies: Record<string, {
169
168
  needsApproval?: boolean;
170
169
  }> | null;
170
+ functionToolId: string;
171
171
  }>;
172
172
  /**
173
173
  * Update an agent-function tool relation
@@ -225,14 +225,14 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
225
225
  id: string;
226
226
  createdAt: string;
227
227
  updatedAt: string;
228
- agentId: string;
229
- projectId: string;
230
228
  tenantId: string;
229
+ projectId: string;
230
+ agentId: string;
231
231
  subAgentId: string;
232
- functionToolId: string;
233
232
  toolPolicies: Record<string, {
234
233
  needsApproval?: boolean;
235
234
  }> | null;
235
+ functionToolId: string;
236
236
  }>;
237
237
  //#endregion
238
238
  export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
@@ -8,15 +8,15 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  skillId: string;
10
10
  }) => Promise<{
11
- description: string;
12
- metadata: Record<string, string> | null;
13
11
  name: string;
14
12
  id: string;
13
+ description: string;
15
14
  createdAt: string;
16
15
  updatedAt: string;
17
- projectId: string;
18
16
  tenantId: string;
17
+ metadata: Record<string, string> | null;
19
18
  content: string;
19
+ projectId: string;
20
20
  } | null>;
21
21
  declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: ProjectScopeConfig;
@@ -41,26 +41,26 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
41
41
  };
42
42
  }>;
43
43
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
44
- description: string;
45
- metadata: Record<string, string> | null;
46
44
  name: string;
47
45
  id: string;
46
+ description: string;
48
47
  createdAt: string;
49
48
  updatedAt: string;
50
- projectId: string;
51
49
  tenantId: string;
50
+ metadata: Record<string, string> | null;
52
51
  content: string;
52
+ projectId: string;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
- description: string;
56
- metadata: Record<string, string> | null;
57
55
  name: string;
58
56
  id: string;
57
+ description: string;
59
58
  createdAt: string;
60
59
  updatedAt: string;
61
- projectId: string;
62
60
  tenantId: string;
61
+ metadata: Record<string, string> | null;
63
62
  content: string;
63
+ projectId: string;
64
64
  }>;
65
65
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
66
66
  scopes: ProjectScopeConfig;
@@ -94,9 +94,9 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
94
94
  id: string;
95
95
  createdAt: string;
96
96
  updatedAt: string;
97
- agentId: string;
98
- projectId: string;
99
97
  tenantId: string;
98
+ projectId: string;
99
+ agentId: string;
100
100
  subAgentId: string;
101
101
  skillId: string;
102
102
  index: number;
@@ -12,11 +12,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
15
  tenantId: string;
18
- headers: Record<string, string> | null;
16
+ projectId: string;
17
+ agentId: string;
19
18
  subAgentId: string;
19
+ headers: Record<string, string> | null;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -47,11 +47,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
50
  tenantId: string;
53
- headers: Record<string, string> | null;
51
+ projectId: string;
52
+ agentId: string;
54
53
  subAgentId: string;
54
+ headers: Record<string, string> | null;
55
55
  externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -60,11 +60,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- agentId: string;
64
- projectId: string;
65
63
  tenantId: string;
66
- headers: Record<string, string> | null;
64
+ projectId: string;
65
+ agentId: string;
67
66
  subAgentId: string;
67
+ headers: Record<string, string> | null;
68
68
  externalAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -183,11 +183,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
183
183
  id: string;
184
184
  createdAt: string;
185
185
  updatedAt: string;
186
- agentId: string;
187
- projectId: string;
188
186
  tenantId: string;
189
- headers: Record<string, string> | null;
187
+ projectId: string;
188
+ agentId: string;
190
189
  subAgentId: string;
190
+ headers: Record<string, string> | null;
191
191
  externalAgentId: string;
192
192
  }>;
193
193
  /**
@@ -200,11 +200,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
200
200
  id: string;
201
201
  createdAt: string;
202
202
  updatedAt: string;
203
- agentId: string;
204
- projectId: string;
205
203
  tenantId: string;
206
- headers: Record<string, string> | null;
204
+ projectId: string;
205
+ agentId: string;
207
206
  subAgentId: string;
207
+ headers: Record<string, string> | null;
208
208
  externalAgentId: string;
209
209
  } | undefined>;
210
210
  /**
@@ -221,11 +221,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
221
221
  id: string;
222
222
  createdAt: string;
223
223
  updatedAt: string;
224
- agentId: string;
225
- projectId: string;
226
224
  tenantId: string;
227
- headers: Record<string, string> | null;
225
+ projectId: string;
226
+ agentId: string;
228
227
  subAgentId: string;
228
+ headers: Record<string, string> | null;
229
229
  externalAgentId: string;
230
230
  }>;
231
231
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -12,9 +12,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
15
  tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -47,9 +47,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
50
  tenantId: string;
51
+ projectId: string;
52
+ agentId: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -60,9 +60,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- agentId: string;
64
- projectId: string;
65
63
  tenantId: string;
64
+ projectId: string;
65
+ agentId: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -129,9 +129,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
129
129
  id: string;
130
130
  createdAt: string;
131
131
  updatedAt: string;
132
- agentId: string;
133
- projectId: string;
134
132
  tenantId: string;
133
+ projectId: string;
134
+ agentId: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -148,9 +148,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
148
148
  id: string;
149
149
  createdAt: string;
150
150
  updatedAt: string;
151
- agentId: string;
152
- projectId: string;
153
151
  tenantId: string;
152
+ projectId: string;
153
+ agentId: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -162,9 +162,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
162
162
  id: string;
163
163
  createdAt: string;
164
164
  updatedAt: string;
165
- agentId: string;
166
- projectId: string;
167
165
  tenantId: string;
166
+ projectId: string;
167
+ agentId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -207,16 +207,16 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
207
207
  id: string;
208
208
  createdAt: string;
209
209
  updatedAt: string;
210
- agentId: string;
211
- projectId: string;
212
210
  tenantId: string;
213
- headers: Record<string, string> | null;
214
- toolId: string;
211
+ projectId: string;
212
+ agentId: string;
215
213
  subAgentId: string;
214
+ toolId: string;
215
+ headers: Record<string, string> | null;
216
+ selectedTools: string[] | null;
216
217
  toolPolicies: Record<string, {
217
218
  needsApproval?: boolean;
218
219
  }> | null;
219
- selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
222
222
  scopes: AgentScopeConfig;
@@ -251,16 +251,16 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
251
251
  id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- agentId: string;
255
- projectId: string;
256
254
  tenantId: string;
257
- headers: Record<string, string> | null;
258
- toolId: string;
255
+ projectId: string;
256
+ agentId: string;
259
257
  subAgentId: string;
258
+ toolId: string;
259
+ headers: Record<string, string> | null;
260
+ selectedTools: string[] | null;
260
261
  toolPolicies: Record<string, {
261
262
  needsApproval?: boolean;
262
263
  }> | null;
263
- selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -12,11 +12,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
15
  tenantId: string;
18
- headers: Record<string, string> | null;
16
+ projectId: string;
17
+ agentId: string;
19
18
  subAgentId: string;
19
+ headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -47,11 +47,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
50
  tenantId: string;
53
- headers: Record<string, string> | null;
51
+ projectId: string;
52
+ agentId: string;
54
53
  subAgentId: string;
54
+ headers: Record<string, string> | null;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -60,11 +60,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- agentId: string;
64
- projectId: string;
65
63
  tenantId: string;
66
- headers: Record<string, string> | null;
64
+ projectId: string;
65
+ agentId: string;
67
66
  subAgentId: string;
67
+ headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -213,11 +213,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
213
213
  id: string;
214
214
  createdAt: string;
215
215
  updatedAt: string;
216
- agentId: string;
217
- projectId: string;
218
216
  tenantId: string;
219
- headers: Record<string, string> | null;
217
+ projectId: string;
218
+ agentId: string;
220
219
  subAgentId: string;
220
+ headers: Record<string, string> | null;
221
221
  targetAgentId: string;
222
222
  }>;
223
223
  /**
@@ -230,11 +230,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
230
230
  id: string;
231
231
  createdAt: string;
232
232
  updatedAt: string;
233
- agentId: string;
234
- projectId: string;
235
233
  tenantId: string;
236
- headers: Record<string, string> | null;
234
+ projectId: string;
235
+ agentId: string;
237
236
  subAgentId: string;
237
+ headers: Record<string, string> | null;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
240
240
  /**
@@ -251,11 +251,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
251
251
  id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- agentId: string;
255
- projectId: string;
256
254
  tenantId: string;
257
- headers: Record<string, string> | null;
255
+ projectId: string;
256
+ agentId: string;
258
257
  subAgentId: string;
258
+ headers: Record<string, string> | null;
259
259
  targetAgentId: string;
260
260
  }>;
261
261
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -9,14 +9,9 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
- description: string | null;
13
12
  name: string;
14
- stopWhen: {
15
- stepCountIs?: number | undefined;
16
- } | null;
17
- prompt: string | null;
18
13
  id: string;
19
- conversationHistoryConfig: ConversationHistoryConfig | null;
14
+ description: string | null;
20
15
  models: {
21
16
  base?: {
22
17
  model?: string | undefined;
@@ -31,23 +26,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
31
26
  providerOptions?: Record<string, unknown> | undefined;
32
27
  } | undefined;
33
28
  } | null;
29
+ stopWhen: {
30
+ stepCountIs?: number | undefined;
31
+ } | null;
34
32
  createdAt: string;
35
33
  updatedAt: string;
36
- agentId: string;
37
- projectId: string;
38
34
  tenantId: string;
35
+ projectId: string;
36
+ agentId: string;
37
+ prompt: string | null;
38
+ conversationHistoryConfig: ConversationHistoryConfig | null;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
- description: string | null;
44
43
  name: string;
45
- stopWhen: {
46
- stepCountIs?: number | undefined;
47
- } | null;
48
- prompt: string | null;
49
44
  id: string;
50
- conversationHistoryConfig: ConversationHistoryConfig | null;
45
+ description: string | null;
51
46
  models: {
52
47
  base?: {
53
48
  model?: string | undefined;
@@ -62,11 +57,16 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
62
57
  providerOptions?: Record<string, unknown> | undefined;
63
58
  } | undefined;
64
59
  } | null;
60
+ stopWhen: {
61
+ stepCountIs?: number | undefined;
62
+ } | null;
65
63
  createdAt: string;
66
64
  updatedAt: string;
67
- agentId: string;
68
- projectId: string;
69
65
  tenantId: string;
66
+ projectId: string;
67
+ agentId: string;
68
+ prompt: string | null;
69
+ conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
72
72
  scopes: AgentScopeConfig;
@@ -109,14 +109,9 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
109
109
  };
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
- description: string | null;
113
112
  name: string;
114
- stopWhen: {
115
- stepCountIs?: number | undefined;
116
- } | null;
117
- prompt: string | null;
118
113
  id: string;
119
- conversationHistoryConfig: ConversationHistoryConfig | null;
114
+ description: string | null;
120
115
  models: {
121
116
  base?: {
122
117
  model?: string | undefined;
@@ -131,11 +126,16 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
131
126
  providerOptions?: Record<string, unknown> | undefined;
132
127
  } | undefined;
133
128
  } | null;
129
+ stopWhen: {
130
+ stepCountIs?: number | undefined;
131
+ } | null;
134
132
  createdAt: string;
135
133
  updatedAt: string;
136
- agentId: string;
137
- projectId: string;
138
134
  tenantId: string;
135
+ projectId: string;
136
+ agentId: string;
137
+ prompt: string | null;
138
+ conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
@@ -20,20 +20,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
- description: string | null;
24
23
  name: string;
25
24
  id: string;
25
+ description: string | null;
26
26
  createdAt: string;
27
27
  updatedAt: string;
28
- projectId: string;
29
28
  tenantId: string;
30
- headers: Record<string, string> | null;
29
+ projectId: string;
31
30
  config: {
32
31
  type: "mcp";
33
32
  mcp: ToolMcpConfig;
34
33
  };
35
34
  credentialReferenceId: string | null;
36
35
  credentialScope: string;
36
+ headers: Record<string, string> | null;
37
37
  imageUrl: string | null;
38
38
  capabilities: ToolServerCapabilities | null;
39
39
  lastError: string | null;
@@ -78,20 +78,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
- description: string | null;
82
81
  name: string;
83
82
  id: string;
83
+ description: string | null;
84
84
  createdAt: string;
85
85
  updatedAt: string;
86
- projectId: string;
87
86
  tenantId: string;
88
- headers: Record<string, string> | null;
87
+ projectId: string;
89
88
  config: {
90
89
  type: "mcp";
91
90
  mcp: ToolMcpConfig;
92
91
  };
93
92
  credentialReferenceId: string | null;
94
93
  credentialScope: string;
94
+ headers: Record<string, string> | null;
95
95
  imageUrl: string | null;
96
96
  capabilities: ToolServerCapabilities | null;
97
97
  lastError: string | null;
@@ -138,16 +138,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
138
138
  id: string;
139
139
  createdAt: string;
140
140
  updatedAt: string;
141
- agentId: string;
142
- projectId: string;
143
141
  tenantId: string;
144
- headers: Record<string, string> | null;
145
- toolId: string;
142
+ projectId: string;
143
+ agentId: string;
146
144
  subAgentId: string;
145
+ toolId: string;
146
+ headers: Record<string, string> | null;
147
+ selectedTools: string[] | null;
147
148
  toolPolicies: Record<string, {
148
149
  needsApproval?: boolean;
149
150
  }> | null;
150
- selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
153
153
  scopes: AgentScopeConfig;
@@ -157,16 +157,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
157
157
  id: string;
158
158
  createdAt: string;
159
159
  updatedAt: string;
160
- agentId: string;
161
- projectId: string;
162
160
  tenantId: string;
163
- headers: Record<string, string> | null;
164
- toolId: string;
161
+ projectId: string;
162
+ agentId: string;
165
163
  subAgentId: string;
164
+ toolId: string;
165
+ headers: Record<string, string> | null;
166
+ selectedTools: string[] | null;
166
167
  toolPolicies: Record<string, {
167
168
  needsApproval?: boolean;
168
169
  }> | null;
169
- selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
172
172
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -185,16 +185,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
185
185
  id: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
- agentId: string;
189
- projectId: string;
190
188
  tenantId: string;
191
- headers: Record<string, string> | null;
192
- toolId: string;
189
+ projectId: string;
190
+ agentId: string;
193
191
  subAgentId: string;
192
+ toolId: string;
193
+ headers: Record<string, string> | null;
194
+ selectedTools: string[] | null;
194
195
  toolPolicies: Record<string, {
195
196
  needsApproval?: boolean;
196
197
  }> | null;
197
- selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
200
200
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -202,20 +202,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
- description: string | null;
206
205
  name: string;
207
206
  id: string;
207
+ description: string | null;
208
208
  createdAt: string;
209
209
  updatedAt: string;
210
- projectId: string;
211
210
  tenantId: string;
212
- headers: Record<string, string> | null;
211
+ projectId: string;
213
212
  config: {
214
213
  type: "mcp";
215
214
  mcp: ToolMcpConfig;
216
215
  };
217
216
  credentialReferenceId: string | null;
218
217
  credentialScope: string;
218
+ headers: Record<string, string> | null;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | null;
221
221
  lastError: string | null;