@inkeep/agents-core 0.0.0-dev-20260330181711 → 0.0.0-dev-20260330205052

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 (66) 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 +47 -47
  13. package/dist/data-access/manage/agents.js +0 -30
  14. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  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 +14 -14
  20. package/dist/data-access/manage/skills.d.ts +14 -14
  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 +33 -33
  25. package/dist/data-access/manage/tools.d.ts +30 -30
  26. package/dist/data-access/manage/triggerCleanup.js +18 -7
  27. package/dist/data-access/manage/triggers.d.ts +2 -2
  28. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  29. package/dist/data-access/runtime/apps.d.ts +12 -12
  30. package/dist/data-access/runtime/cascade-delete.d.ts +2 -0
  31. package/dist/data-access/runtime/cascade-delete.js +13 -6
  32. package/dist/data-access/runtime/conversations.d.ts +24 -24
  33. package/dist/data-access/runtime/messages.d.ts +9 -9
  34. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +5 -4
  35. package/dist/data-access/runtime/scheduledTriggers.d.ts +89 -0
  36. package/dist/data-access/runtime/scheduledTriggers.js +91 -0
  37. package/dist/data-access/runtime/schedulerState.d.ts +11 -0
  38. package/dist/data-access/runtime/schedulerState.js +30 -0
  39. package/dist/data-access/runtime/tasks.d.ts +5 -5
  40. package/dist/data-reconciliation/index.d.ts +2 -2
  41. package/dist/data-reconciliation/types.d.ts +1 -28
  42. package/dist/db/manage/manage-schema.d.ts +344 -698
  43. package/dist/db/manage/manage-schema.js +2 -4
  44. package/dist/db/runtime/runtime-schema.d.ts +809 -348
  45. package/dist/db/runtime/runtime-schema.js +38 -5
  46. package/dist/index.d.ts +11 -12
  47. package/dist/index.js +8 -10
  48. package/dist/types/entities.d.ts +12 -2
  49. package/dist/types/index.d.ts +2 -2
  50. package/dist/utils/compute-next-run-at.d.ts +9 -0
  51. package/dist/utils/compute-next-run-at.js +18 -0
  52. package/dist/utils/index.d.ts +2 -1
  53. package/dist/utils/index.js +2 -1
  54. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  55. package/dist/validation/index.d.ts +2 -2
  56. package/dist/validation/index.js +2 -2
  57. package/dist/validation/schemas.d.ts +2708 -3688
  58. package/dist/validation/schemas.js +16 -32
  59. package/drizzle/runtime/0028_thick_squirrel_girl.sql +36 -0
  60. package/drizzle/runtime/meta/0028_snapshot.json +4661 -0
  61. package/drizzle/runtime/meta/_journal.json +7 -0
  62. package/package.json +2 -1
  63. package/dist/data-access/manage/scheduledTriggers.d.ts +0 -91
  64. package/dist/data-access/manage/scheduledTriggers.js +0 -87
  65. package/dist/data-access/manage/scheduledWorkflows.d.ts +0 -29
  66. 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
- name: string;
58
56
  id: string;
57
+ name: string;
59
58
  createdAt: string;
60
59
  updatedAt: string;
61
- agentId: string;
62
- projectId: string;
60
+ description: string | null;
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
- name: string;
100
98
  id: string;
99
+ name: string;
101
100
  createdAt: string;
102
101
  updatedAt: string;
103
- agentId: string;
104
- projectId: string;
102
+ description: string | null;
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
- name: string;
14
11
  id: string;
12
+ name: string;
15
13
  createdAt: string;
16
14
  updatedAt: string;
17
- projectId: string;
15
+ metadata: Record<string, string> | null;
16
+ description: string;
18
17
  tenantId: string;
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
- name: string;
47
44
  id: string;
45
+ name: string;
48
46
  createdAt: string;
49
47
  updatedAt: string;
50
- projectId: string;
48
+ metadata: Record<string, string> | null;
49
+ description: string;
51
50
  tenantId: string;
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
- name: string;
58
55
  id: string;
56
+ name: string;
59
57
  createdAt: string;
60
58
  updatedAt: string;
61
- projectId: string;
59
+ metadata: Record<string, string> | null;
60
+ description: string;
62
61
  tenantId: string;
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,10 +12,10 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
- tenantId: string;
18
15
  headers: Record<string, string> | null;
16
+ tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
19
19
  subAgentId: string;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
@@ -47,10 +47,10 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
- tenantId: string;
53
50
  headers: Record<string, string> | null;
51
+ tenantId: string;
52
+ projectId: string;
53
+ agentId: string;
54
54
  subAgentId: string;
55
55
  externalAgentId: string;
56
56
  }[]>;
@@ -60,10 +60,10 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- agentId: string;
64
- projectId: string;
65
- tenantId: string;
66
63
  headers: Record<string, string> | null;
64
+ tenantId: string;
65
+ projectId: string;
66
+ agentId: string;
67
67
  subAgentId: string;
68
68
  externalAgentId: string;
69
69
  }[]>;
@@ -183,10 +183,10 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
183
183
  id: string;
184
184
  createdAt: string;
185
185
  updatedAt: string;
186
- agentId: string;
187
- projectId: string;
188
- tenantId: string;
189
186
  headers: Record<string, string> | null;
187
+ tenantId: string;
188
+ projectId: string;
189
+ agentId: string;
190
190
  subAgentId: string;
191
191
  externalAgentId: string;
192
192
  }>;
@@ -200,10 +200,10 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
200
200
  id: string;
201
201
  createdAt: string;
202
202
  updatedAt: string;
203
- agentId: string;
204
- projectId: string;
205
- tenantId: string;
206
203
  headers: Record<string, string> | null;
204
+ tenantId: string;
205
+ projectId: string;
206
+ agentId: string;
207
207
  subAgentId: string;
208
208
  externalAgentId: string;
209
209
  } | undefined>;
@@ -221,10 +221,10 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
221
221
  id: string;
222
222
  createdAt: string;
223
223
  updatedAt: string;
224
- agentId: string;
225
- projectId: string;
226
- tenantId: string;
227
224
  headers: Record<string, string> | null;
225
+ tenantId: string;
226
+ projectId: string;
227
+ agentId: string;
228
228
  subAgentId: string;
229
229
  externalAgentId: string;
230
230
  }>;
@@ -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
- tenantId: string;
213
210
  headers: Record<string, string> | null;
214
- toolId: string;
211
+ tenantId: string;
212
+ projectId: string;
213
+ agentId: string;
215
214
  subAgentId: string;
215
+ toolId: string;
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
- tenantId: string;
257
254
  headers: Record<string, string> | null;
258
- toolId: string;
255
+ tenantId: string;
256
+ projectId: string;
257
+ agentId: string;
259
258
  subAgentId: string;
259
+ toolId: string;
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,10 +12,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
- tenantId: string;
18
15
  headers: Record<string, string> | null;
16
+ tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
19
19
  subAgentId: string;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
@@ -47,10 +47,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
- tenantId: string;
53
50
  headers: Record<string, string> | null;
51
+ tenantId: string;
52
+ projectId: string;
53
+ agentId: string;
54
54
  subAgentId: string;
55
55
  targetAgentId: string;
56
56
  }[]>;
@@ -60,10 +60,10 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- agentId: string;
64
- projectId: string;
65
- tenantId: string;
66
63
  headers: Record<string, string> | null;
64
+ tenantId: string;
65
+ projectId: string;
66
+ agentId: string;
67
67
  subAgentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -213,10 +213,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
213
213
  id: string;
214
214
  createdAt: string;
215
215
  updatedAt: string;
216
- agentId: string;
217
- projectId: string;
218
- tenantId: string;
219
216
  headers: Record<string, string> | null;
217
+ tenantId: string;
218
+ projectId: string;
219
+ agentId: string;
220
220
  subAgentId: string;
221
221
  targetAgentId: string;
222
222
  }>;
@@ -230,10 +230,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
230
230
  id: string;
231
231
  createdAt: string;
232
232
  updatedAt: string;
233
- agentId: string;
234
- projectId: string;
235
- tenantId: string;
236
233
  headers: Record<string, string> | null;
234
+ tenantId: string;
235
+ projectId: string;
236
+ agentId: string;
237
237
  subAgentId: string;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
@@ -251,10 +251,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
251
251
  id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- agentId: string;
255
- projectId: string;
256
- tenantId: string;
257
254
  headers: Record<string, string> | null;
255
+ tenantId: string;
256
+ projectId: string;
257
+ agentId: string;
258
258
  subAgentId: string;
259
259
  targetAgentId: string;
260
260
  }>;
@@ -9,14 +9,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
- description: string | null;
13
- name: string;
14
- stopWhen: {
15
- stepCountIs?: number | undefined;
16
- } | null;
17
- prompt: string | null;
18
12
  id: string;
19
- conversationHistoryConfig: ConversationHistoryConfig | null;
13
+ name: string;
14
+ createdAt: string;
15
+ updatedAt: string;
16
+ description: string | null;
17
+ tenantId: string;
20
18
  models: {
21
19
  base?: {
22
20
  model?: string | undefined;
@@ -31,23 +29,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
31
29
  providerOptions?: Record<string, unknown> | undefined;
32
30
  } | undefined;
33
31
  } | null;
34
- createdAt: string;
35
- updatedAt: string;
36
- agentId: string;
32
+ stopWhen: {
33
+ stepCountIs?: number | undefined;
34
+ } | null;
37
35
  projectId: string;
38
- tenantId: 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
- name: string;
45
- stopWhen: {
46
- stepCountIs?: number | undefined;
47
- } | null;
48
- prompt: string | null;
49
43
  id: string;
50
- conversationHistoryConfig: ConversationHistoryConfig | null;
44
+ name: string;
45
+ createdAt: string;
46
+ updatedAt: string;
47
+ description: string | null;
48
+ tenantId: string;
51
49
  models: {
52
50
  base?: {
53
51
  model?: string | undefined;
@@ -62,11 +60,13 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
62
60
  providerOptions?: Record<string, unknown> | undefined;
63
61
  } | undefined;
64
62
  } | null;
65
- createdAt: string;
66
- updatedAt: string;
67
- agentId: string;
63
+ stopWhen: {
64
+ stepCountIs?: number | undefined;
65
+ } | null;
68
66
  projectId: string;
69
- tenantId: 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,12 @@ 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
- name: string;
114
- stopWhen: {
115
- stepCountIs?: number | undefined;
116
- } | null;
117
- prompt: string | null;
118
112
  id: string;
119
- conversationHistoryConfig: ConversationHistoryConfig | null;
113
+ name: string;
114
+ createdAt: string;
115
+ updatedAt: string;
116
+ description: string | null;
117
+ tenantId: string;
120
118
  models: {
121
119
  base?: {
122
120
  model?: string | undefined;
@@ -131,11 +129,13 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
131
129
  providerOptions?: Record<string, unknown> | undefined;
132
130
  } | undefined;
133
131
  } | null;
134
- createdAt: string;
135
- updatedAt: string;
136
- agentId: string;
132
+ stopWhen: {
133
+ stepCountIs?: number | undefined;
134
+ } | null;
137
135
  projectId: string;
138
- tenantId: 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,19 +20,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
- description: string | null;
24
- name: string;
25
23
  id: string;
24
+ name: string;
26
25
  createdAt: string;
27
26
  updatedAt: string;
28
- projectId: string;
29
- tenantId: string;
27
+ description: string | null;
30
28
  headers: Record<string, string> | null;
29
+ tenantId: string;
30
+ projectId: string;
31
+ credentialReferenceId: string | null;
31
32
  config: {
32
33
  type: "mcp";
33
34
  mcp: ToolMcpConfig;
34
35
  };
35
- credentialReferenceId: string | null;
36
36
  credentialScope: string;
37
37
  imageUrl: string | null;
38
38
  capabilities: ToolServerCapabilities | null;
@@ -78,19 +78,19 @@ 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
- name: string;
83
81
  id: string;
82
+ name: string;
84
83
  createdAt: string;
85
84
  updatedAt: string;
86
- projectId: string;
87
- tenantId: string;
85
+ description: string | null;
88
86
  headers: Record<string, string> | null;
87
+ tenantId: string;
88
+ projectId: string;
89
+ credentialReferenceId: string | null;
89
90
  config: {
90
91
  type: "mcp";
91
92
  mcp: ToolMcpConfig;
92
93
  };
93
- credentialReferenceId: string | null;
94
94
  credentialScope: string;
95
95
  imageUrl: string | null;
96
96
  capabilities: ToolServerCapabilities | 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
- tenantId: string;
144
141
  headers: Record<string, string> | null;
145
- toolId: string;
142
+ tenantId: string;
143
+ projectId: string;
144
+ agentId: string;
146
145
  subAgentId: string;
146
+ toolId: string;
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
- tenantId: string;
163
160
  headers: Record<string, string> | null;
164
- toolId: string;
161
+ tenantId: string;
162
+ projectId: string;
163
+ agentId: string;
165
164
  subAgentId: string;
165
+ toolId: string;
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
- tenantId: string;
191
188
  headers: Record<string, string> | null;
192
- toolId: string;
189
+ tenantId: string;
190
+ projectId: string;
191
+ agentId: string;
193
192
  subAgentId: string;
193
+ toolId: string;
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,19 +202,19 @@ 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
- name: string;
207
205
  id: string;
206
+ name: string;
208
207
  createdAt: string;
209
208
  updatedAt: string;
210
- projectId: string;
211
- tenantId: string;
209
+ description: string | null;
212
210
  headers: Record<string, string> | null;
211
+ tenantId: string;
212
+ projectId: string;
213
+ credentialReferenceId: string | null;
213
214
  config: {
214
215
  type: "mcp";
215
216
  mcp: ToolMcpConfig;
216
217
  };
217
- credentialReferenceId: string | null;
218
218
  credentialScope: string;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | null;