@inkeep/agents-core 0.78.2 → 0.78.4

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 (64) hide show
  1. package/dist/auth/auth-schema.d.ts +227 -227
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/auth.d.ts +9 -9
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/client-exports.d.ts +2 -2
  6. package/dist/client-exports.js +2 -2
  7. package/dist/data-access/index.d.ts +5 -5
  8. package/dist/data-access/index.js +5 -5
  9. package/dist/data-access/manage/agents.d.ts +16 -16
  10. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  11. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  12. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  13. package/dist/data-access/manage/evalConfig.d.ts +19 -2
  14. package/dist/data-access/manage/evalConfig.js +20 -2
  15. package/dist/data-access/manage/functionTools.d.ts +14 -14
  16. package/dist/data-access/manage/skills.d.ts +14 -14
  17. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  18. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  19. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  20. package/dist/data-access/manage/subAgents.d.ts +12 -12
  21. package/dist/data-access/manage/tools.d.ts +27 -27
  22. package/dist/data-access/manage/triggers.d.ts +4 -4
  23. package/dist/data-access/manage/webhookDestinations.d.ts +15 -3
  24. package/dist/data-access/manage/webhookDestinations.js +26 -8
  25. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  26. package/dist/data-access/runtime/apps.d.ts +17 -17
  27. package/dist/data-access/runtime/conversations.d.ts +28 -28
  28. package/dist/data-access/runtime/events.d.ts +5 -5
  29. package/dist/data-access/runtime/feedback.d.ts +4 -4
  30. package/dist/data-access/runtime/messages.d.ts +15 -15
  31. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +35 -3
  32. package/dist/data-access/runtime/scheduledTriggerInvocations.js +16 -3
  33. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +2 -2
  34. package/dist/data-access/runtime/scheduledTriggers.d.ts +28 -6
  35. package/dist/data-access/runtime/scheduledTriggers.js +34 -7
  36. package/dist/data-access/runtime/tasks.d.ts +6 -6
  37. package/dist/db/manage/manage-schema.d.ts +787 -486
  38. package/dist/db/manage/manage-schema.js +120 -2
  39. package/dist/db/runtime/runtime-schema.d.ts +474 -455
  40. package/dist/db/runtime/runtime-schema.js +3 -1
  41. package/dist/evaluation/pass-criteria-evaluator.js +69 -29
  42. package/dist/index.d.ts +9 -9
  43. package/dist/index.js +8 -8
  44. package/dist/types/entities.d.ts +5 -2
  45. package/dist/types/index.d.ts +3 -3
  46. package/dist/types/index.js +2 -2
  47. package/dist/types/utility.d.ts +13 -5
  48. package/dist/types/utility.js +2 -1
  49. package/dist/utils/error.d.ts +51 -51
  50. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  51. package/dist/validation/index.d.ts +2 -2
  52. package/dist/validation/index.js +2 -2
  53. package/dist/validation/schemas/skills.d.ts +54 -54
  54. package/dist/validation/schemas.d.ts +2731 -2387
  55. package/dist/validation/schemas.js +64 -10
  56. package/drizzle/manage/0022_last_nemesis.sql +15 -0
  57. package/drizzle/manage/0023_flimsy_patriot.sql +13 -0
  58. package/drizzle/manage/meta/0022_snapshot.json +4216 -0
  59. package/drizzle/manage/meta/0023_snapshot.json +4317 -0
  60. package/drizzle/manage/meta/_journal.json +14 -0
  61. package/drizzle/runtime/0043_normal_beyonder.sql +2 -0
  62. package/drizzle/runtime/meta/0043_snapshot.json +6304 -0
  63. package/drizzle/runtime/meta/_journal.json +7 -0
  64. package/package.json +1 -1
@@ -54,13 +54,13 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
56
  id: string;
57
+ tenantId: string;
58
+ createdAt: string;
57
59
  name: string;
58
60
  description: string | null;
59
- createdAt: string;
60
- updatedAt: string;
61
- projectId: string;
62
- tenantId: string;
63
61
  agentId: string;
62
+ projectId: string;
63
+ updatedAt: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -96,13 +96,13 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
98
  id: string;
99
+ tenantId: string;
100
+ createdAt: string;
99
101
  name: string;
100
102
  description: string | null;
101
- createdAt: string;
102
- updatedAt: string;
103
- projectId: string;
104
- tenantId: string;
105
103
  agentId: string;
104
+ projectId: string;
105
+ updatedAt: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -158,12 +158,12 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
158
158
  }> | null;
159
159
  }) => Promise<{
160
160
  id: string;
161
- createdAt: string;
162
- updatedAt: string;
163
- projectId: string;
164
161
  tenantId: string;
162
+ createdAt: string;
165
163
  agentId: string;
164
+ projectId: string;
166
165
  subAgentId: string;
166
+ updatedAt: string;
167
167
  toolPolicies: Record<string, {
168
168
  needsApproval?: boolean;
169
169
  }> | null;
@@ -223,12 +223,12 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
223
223
  }> | null;
224
224
  }) => Promise<{
225
225
  id: string;
226
- createdAt: string;
227
- updatedAt: string;
228
- projectId: string;
229
226
  tenantId: string;
227
+ createdAt: string;
230
228
  agentId: string;
229
+ projectId: string;
231
230
  subAgentId: string;
231
+ updatedAt: string;
232
232
  toolPolicies: Record<string, {
233
233
  needsApproval?: boolean;
234
234
  }> | null;
@@ -16,14 +16,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
16
16
  skillId: string;
17
17
  }) => Promise<{
18
18
  id: string;
19
- name: string;
20
- description: string;
21
- createdAt: string;
22
- updatedAt: string;
23
- projectId: string;
24
19
  tenantId: string;
20
+ createdAt: string;
21
+ name: string;
25
22
  metadata: Record<string, string> | null;
23
+ description: string;
26
24
  content: string;
25
+ projectId: string;
26
+ updatedAt: string;
27
27
  } | null>;
28
28
  declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
29
29
  scopes: ProjectScopeConfig;
@@ -111,14 +111,14 @@ interface WithTenantIdProjectId {
111
111
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
112
112
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
113
113
  id: string;
114
- name: string;
115
- description: string;
116
- createdAt: string;
117
- updatedAt: string;
118
- projectId: string;
119
114
  tenantId: string;
115
+ createdAt: string;
116
+ name: string;
120
117
  metadata: Record<string, string> | null;
118
+ description: string;
121
119
  content: string;
120
+ projectId: string;
121
+ updatedAt: string;
122
122
  }>;
123
123
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
124
124
  scopes: ProjectScopeConfig;
@@ -140,15 +140,15 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
140
140
  alwaysLoaded?: boolean;
141
141
  }) => Promise<{
142
142
  id: string;
143
- createdAt: string;
144
- updatedAt: string;
145
- projectId: string;
146
143
  tenantId: string;
144
+ createdAt: string;
147
145
  agentId: string;
146
+ projectId: string;
148
147
  subAgentId: string;
148
+ updatedAt: string;
149
+ skillId: string;
149
150
  index: number;
150
151
  alwaysLoaded: boolean;
151
- skillId: string;
152
152
  }>;
153
153
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
154
154
  scopes: AgentScopeConfig;
@@ -10,13 +10,13 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- headers: Record<string, string> | null;
14
- createdAt: string;
15
- updatedAt: string;
16
- projectId: string;
17
13
  tenantId: string;
14
+ createdAt: string;
18
15
  agentId: string;
16
+ projectId: string;
19
17
  subAgentId: string;
18
+ updatedAt: string;
19
+ headers: Record<string, string> | null;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -45,26 +45,26 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- headers: Record<string, string> | null;
49
- createdAt: string;
50
- updatedAt: string;
51
- projectId: string;
52
48
  tenantId: string;
49
+ createdAt: string;
53
50
  agentId: string;
51
+ projectId: string;
54
52
  subAgentId: string;
53
+ updatedAt: string;
54
+ headers: Record<string, string> | null;
55
55
  externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- headers: Record<string, string> | null;
62
- createdAt: string;
63
- updatedAt: string;
64
- projectId: string;
65
61
  tenantId: string;
62
+ createdAt: string;
66
63
  agentId: string;
64
+ projectId: string;
67
65
  subAgentId: string;
66
+ updatedAt: string;
67
+ headers: Record<string, string> | null;
68
68
  externalAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -187,13 +187,13 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
187
187
  };
188
188
  }) => Promise<{
189
189
  id: string;
190
- headers: Record<string, string> | null;
191
- createdAt: string;
192
- updatedAt: string;
193
- projectId: string;
194
190
  tenantId: string;
191
+ createdAt: string;
195
192
  agentId: string;
193
+ projectId: string;
196
194
  subAgentId: string;
195
+ updatedAt: string;
196
+ headers: Record<string, string> | null;
197
197
  externalAgentId: string;
198
198
  }>;
199
199
  /**
@@ -204,13 +204,13 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
204
204
  externalAgentId: string;
205
205
  }) => Promise<{
206
206
  id: string;
207
- headers: Record<string, string> | null;
208
- createdAt: string;
209
- updatedAt: string;
210
- projectId: string;
211
207
  tenantId: string;
208
+ createdAt: string;
212
209
  agentId: string;
210
+ projectId: string;
213
211
  subAgentId: string;
212
+ updatedAt: string;
213
+ headers: Record<string, string> | null;
214
214
  externalAgentId: string;
215
215
  } | undefined>;
216
216
  /**
@@ -225,13 +225,13 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
225
225
  };
226
226
  }) => Promise<{
227
227
  id: string;
228
- headers: Record<string, string> | null;
229
- createdAt: string;
230
- updatedAt: string;
231
- projectId: string;
232
228
  tenantId: string;
229
+ createdAt: string;
233
230
  agentId: string;
231
+ projectId: string;
234
232
  subAgentId: string;
233
+ updatedAt: string;
234
+ headers: Record<string, string> | null;
235
235
  externalAgentId: string;
236
236
  }>;
237
237
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -10,11 +10,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- createdAt: string;
14
- updatedAt: string;
15
- projectId: string;
16
13
  tenantId: string;
14
+ createdAt: string;
17
15
  agentId: string;
16
+ projectId: string;
17
+ updatedAt: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -45,11 +45,11 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- createdAt: string;
49
- updatedAt: string;
50
- projectId: string;
51
48
  tenantId: string;
49
+ createdAt: string;
52
50
  agentId: string;
51
+ projectId: string;
52
+ updatedAt: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -58,11 +58,11 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- createdAt: string;
62
- updatedAt: string;
63
- projectId: string;
64
61
  tenantId: string;
62
+ createdAt: string;
65
63
  agentId: string;
64
+ projectId: string;
65
+ updatedAt: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -127,11 +127,11 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
129
  id: string;
130
- createdAt: string;
131
- updatedAt: string;
132
- projectId: string;
133
130
  tenantId: string;
131
+ createdAt: string;
134
132
  agentId: string;
133
+ projectId: string;
134
+ updatedAt: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -146,11 +146,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
146
146
  relationType: string;
147
147
  }) => Promise<{
148
148
  id: string;
149
- createdAt: string;
150
- updatedAt: string;
151
- projectId: string;
152
149
  tenantId: string;
150
+ createdAt: string;
153
151
  agentId: string;
152
+ projectId: string;
153
+ updatedAt: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -160,11 +160,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
160
160
  */
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
162
  id: string;
163
- createdAt: string;
164
- updatedAt: string;
165
- projectId: string;
166
163
  tenantId: string;
164
+ createdAt: string;
167
165
  agentId: string;
166
+ projectId: string;
167
+ updatedAt: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -205,18 +205,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
205
205
  };
206
206
  }) => Promise<{
207
207
  id: string;
208
- headers: Record<string, string> | null;
209
- createdAt: string;
210
- updatedAt: string;
211
- projectId: string;
212
208
  tenantId: string;
209
+ createdAt: string;
213
210
  agentId: string;
211
+ projectId: string;
214
212
  subAgentId: string;
215
213
  toolId: string;
214
+ updatedAt: 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;
@@ -249,18 +249,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
249
249
  relationId: string;
250
250
  }) => Promise<{
251
251
  id: string;
252
- headers: Record<string, string> | null;
253
- createdAt: string;
254
- updatedAt: string;
255
- projectId: string;
256
252
  tenantId: string;
253
+ createdAt: string;
257
254
  agentId: string;
255
+ projectId: string;
258
256
  subAgentId: string;
259
257
  toolId: string;
258
+ updatedAt: 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;
@@ -10,13 +10,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- headers: Record<string, string> | null;
14
- createdAt: string;
15
- updatedAt: string;
16
- projectId: string;
17
13
  tenantId: string;
14
+ createdAt: string;
18
15
  agentId: string;
16
+ projectId: string;
19
17
  subAgentId: string;
18
+ updatedAt: string;
19
+ headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -45,26 +45,26 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- headers: Record<string, string> | null;
49
- createdAt: string;
50
- updatedAt: string;
51
- projectId: string;
52
48
  tenantId: string;
49
+ createdAt: string;
53
50
  agentId: string;
51
+ projectId: string;
54
52
  subAgentId: string;
53
+ updatedAt: string;
54
+ headers: Record<string, string> | null;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- headers: Record<string, string> | null;
62
- createdAt: string;
63
- updatedAt: string;
64
- projectId: string;
65
61
  tenantId: string;
62
+ createdAt: string;
66
63
  agentId: string;
64
+ projectId: string;
67
65
  subAgentId: string;
66
+ updatedAt: string;
67
+ headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -223,13 +223,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
223
223
  };
224
224
  }) => Promise<{
225
225
  id: string;
226
- headers: Record<string, string> | null;
227
- createdAt: string;
228
- updatedAt: string;
229
- projectId: string;
230
226
  tenantId: string;
227
+ createdAt: string;
231
228
  agentId: string;
229
+ projectId: string;
232
230
  subAgentId: string;
231
+ updatedAt: string;
232
+ headers: Record<string, string> | null;
233
233
  targetAgentId: string;
234
234
  }>;
235
235
  /**
@@ -240,13 +240,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
240
240
  targetAgentId: string;
241
241
  }) => Promise<{
242
242
  id: string;
243
- headers: Record<string, string> | null;
244
- createdAt: string;
245
- updatedAt: string;
246
- projectId: string;
247
243
  tenantId: string;
244
+ createdAt: string;
248
245
  agentId: string;
246
+ projectId: string;
249
247
  subAgentId: string;
248
+ updatedAt: string;
249
+ headers: Record<string, string> | null;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
252
252
  /**
@@ -261,13 +261,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
261
261
  };
262
262
  }) => Promise<{
263
263
  id: string;
264
- headers: Record<string, string> | null;
265
- createdAt: string;
266
- updatedAt: string;
267
- projectId: string;
268
264
  tenantId: string;
265
+ createdAt: string;
269
266
  agentId: string;
267
+ projectId: string;
270
268
  subAgentId: string;
269
+ updatedAt: string;
270
+ headers: Record<string, string> | null;
271
271
  targetAgentId: string;
272
272
  }>;
273
273
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -10,12 +10,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ tenantId: string;
14
+ createdAt: string;
13
15
  name: string;
14
16
  description: string | null;
15
- createdAt: string;
16
- updatedAt: string;
17
+ agentId: string;
17
18
  projectId: string;
18
- tenantId: string;
19
+ updatedAt: string;
19
20
  models: {
20
21
  base?: {
21
22
  model?: string | undefined;
@@ -39,7 +40,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
39
40
  stopWhen: {
40
41
  stepCountIs?: number | undefined;
41
42
  } | null;
42
- agentId: string;
43
43
  prompt: string | null;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  outputContract: {
@@ -56,12 +56,13 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
57
57
  }) => Promise<{
58
58
  id: string;
59
+ tenantId: string;
60
+ createdAt: string;
59
61
  name: string;
60
62
  description: string | null;
61
- createdAt: string;
62
- updatedAt: string;
63
+ agentId: string;
63
64
  projectId: string;
64
- tenantId: string;
65
+ updatedAt: string;
65
66
  models: {
66
67
  base?: {
67
68
  model?: string | undefined;
@@ -85,7 +86,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
85
86
  stopWhen: {
86
87
  stepCountIs?: number | undefined;
87
88
  } | null;
88
- agentId: string;
89
89
  prompt: string | null;
90
90
  conversationHistoryConfig: ConversationHistoryConfig | null;
91
91
  outputContract: {
@@ -155,12 +155,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
155
155
  }>;
156
156
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
157
157
  id: string;
158
+ tenantId: string;
159
+ createdAt: string;
158
160
  name: string;
159
161
  description: string | null;
160
- createdAt: string;
161
- updatedAt: string;
162
+ agentId: string;
162
163
  projectId: string;
163
- tenantId: string;
164
+ updatedAt: string;
164
165
  models: {
165
166
  base?: {
166
167
  model?: string | undefined;
@@ -184,7 +185,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
184
185
  stopWhen: {
185
186
  stepCountIs?: number | undefined;
186
187
  } | null;
187
- agentId: string;
188
188
  prompt: string | null;
189
189
  conversationHistoryConfig: ConversationHistoryConfig | null;
190
190
  outputContract: {
@@ -21,19 +21,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
21
21
  toolId: string;
22
22
  }) => Promise<{
23
23
  id: string;
24
+ tenantId: string;
25
+ createdAt: string;
24
26
  name: string;
25
27
  description: string | null;
26
- headers: Record<string, string> | null;
27
- createdAt: string;
28
- updatedAt: string;
29
28
  projectId: string;
30
- tenantId: string;
29
+ updatedAt: 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;
@@ -79,19 +79,19 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
81
  id: string;
82
+ tenantId: string;
83
+ createdAt: string;
82
84
  name: string;
83
85
  description: string | null;
84
- headers: Record<string, string> | null;
85
- createdAt: string;
86
- updatedAt: string;
87
86
  projectId: string;
88
- tenantId: string;
87
+ updatedAt: 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;
@@ -136,18 +136,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
136
136
  }> | null;
137
137
  }) => Promise<{
138
138
  id: string;
139
- headers: Record<string, string> | null;
140
- createdAt: string;
141
- updatedAt: string;
142
- projectId: string;
143
139
  tenantId: string;
140
+ createdAt: string;
144
141
  agentId: string;
142
+ projectId: string;
145
143
  subAgentId: string;
146
144
  toolId: string;
145
+ updatedAt: 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;
@@ -155,18 +155,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
155
155
  toolId: string;
156
156
  }) => Promise<{
157
157
  id: string;
158
- headers: Record<string, string> | null;
159
- createdAt: string;
160
- updatedAt: string;
161
- projectId: string;
162
158
  tenantId: string;
159
+ createdAt: string;
163
160
  agentId: string;
161
+ projectId: string;
164
162
  subAgentId: string;
165
163
  toolId: string;
164
+ updatedAt: 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)
@@ -183,18 +183,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
185
  id: string;
186
- headers: Record<string, string> | null;
187
- createdAt: string;
188
- updatedAt: string;
189
- projectId: string;
190
186
  tenantId: string;
187
+ createdAt: string;
191
188
  agentId: string;
189
+ projectId: string;
192
190
  subAgentId: string;
193
191
  toolId: string;
192
+ updatedAt: 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)
@@ -203,19 +203,19 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
205
  id: string;
206
+ tenantId: string;
207
+ createdAt: string;
206
208
  name: string;
207
209
  description: string | null;
208
- headers: Record<string, string> | null;
209
- createdAt: string;
210
- updatedAt: string;
211
210
  projectId: string;
212
- tenantId: string;
211
+ updatedAt: 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;