@inkeep/agents-core 0.58.13 → 0.58.14

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 (47) hide show
  1. package/dist/auth/auth-schema.d.ts +107 -107
  2. package/dist/auth/auth-validation-schemas.d.ts +152 -152
  3. package/dist/auth/auth.d.ts +9 -9
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/data-access/index.d.ts +3 -1
  6. package/dist/data-access/index.js +3 -1
  7. package/dist/data-access/manage/agents.d.ts +26 -26
  8. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  9. package/dist/data-access/manage/audit-queries.d.ts +29 -0
  10. package/dist/data-access/manage/audit-queries.js +29 -0
  11. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  12. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  13. package/dist/data-access/manage/functionTools.d.ts +16 -16
  14. package/dist/data-access/manage/skills.d.ts +14 -14
  15. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  16. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  17. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  18. package/dist/data-access/manage/subAgents.d.ts +18 -18
  19. package/dist/data-access/manage/tools.d.ts +24 -24
  20. package/dist/data-access/manage/triggers.d.ts +2 -2
  21. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  22. package/dist/data-access/runtime/apps.d.ts +8 -8
  23. package/dist/data-access/runtime/audit-queries.d.ts +41 -0
  24. package/dist/data-access/runtime/audit-queries.js +37 -0
  25. package/dist/data-access/runtime/conversations.d.ts +31 -31
  26. package/dist/data-access/runtime/messages.d.ts +12 -12
  27. package/dist/data-access/runtime/tasks.d.ts +9 -9
  28. package/dist/data-reconciliation/audit.d.ts +6 -0
  29. package/dist/data-reconciliation/audit.js +37 -0
  30. package/dist/data-reconciliation/index.d.ts +4 -0
  31. package/dist/data-reconciliation/index.js +5 -0
  32. package/dist/data-reconciliation/reconcile.d.ts +6 -0
  33. package/dist/data-reconciliation/reconcile.js +58 -0
  34. package/dist/data-reconciliation/types.d.ts +116 -0
  35. package/dist/data-reconciliation/types.js +7 -0
  36. package/dist/db/manage/manage-schema.d.ts +453 -453
  37. package/dist/db/runtime/runtime-schema.d.ts +6 -6
  38. package/dist/index.d.ts +7 -1
  39. package/dist/index.js +6 -1
  40. package/dist/setup/setup.d.ts +1 -0
  41. package/dist/setup/setup.js +25 -8
  42. package/dist/utils/error.d.ts +51 -51
  43. package/dist/validation/dolt-schemas.d.ts +1 -1
  44. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  45. package/dist/validation/schemas.d.ts +2014 -2017
  46. package/dist/validation/schemas.js +5 -1
  47. package/package.json +1 -1
@@ -55,12 +55,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
55
55
  }) => Promise<{
56
56
  id: string;
57
57
  name: string;
58
+ createdAt: string;
59
+ updatedAt: string;
58
60
  description: string | null;
59
- tenantId: string;
60
61
  projectId: string;
62
+ tenantId: string;
61
63
  agentId: string;
62
- createdAt: string;
63
- updatedAt: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -97,12 +97,12 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
97
97
  }) => Promise<{
98
98
  id: string;
99
99
  name: string;
100
+ createdAt: string;
101
+ updatedAt: string;
100
102
  description: string | null;
101
- tenantId: string;
102
103
  projectId: string;
104
+ tenantId: string;
103
105
  agentId: string;
104
- createdAt: string;
105
- updatedAt: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -162,16 +162,16 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
162
162
  }> | null;
163
163
  }) => Promise<{
164
164
  id: string;
165
- tenantId: string;
166
- projectId: string;
167
- agentId: string;
168
165
  createdAt: string;
169
166
  updatedAt: string;
167
+ subAgentId: string;
168
+ projectId: string;
169
+ tenantId: string;
170
+ agentId: string;
171
+ functionToolId: string;
170
172
  toolPolicies: Record<string, {
171
173
  needsApproval?: boolean;
172
174
  }> | null;
173
- subAgentId: string;
174
- functionToolId: string;
175
175
  }>;
176
176
  /**
177
177
  * Update an agent-function tool relation
@@ -227,16 +227,16 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
227
227
  }> | null;
228
228
  }) => Promise<{
229
229
  id: string;
230
- tenantId: string;
231
- projectId: string;
232
- agentId: string;
233
230
  createdAt: string;
234
231
  updatedAt: string;
232
+ subAgentId: string;
233
+ projectId: string;
234
+ tenantId: string;
235
+ agentId: string;
236
+ functionToolId: string;
235
237
  toolPolicies: Record<string, {
236
238
  needsApproval?: boolean;
237
239
  }> | null;
238
- subAgentId: string;
239
- functionToolId: string;
240
240
  }>;
241
241
  //#endregion
242
242
  export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
@@ -10,12 +10,12 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  id: string;
12
12
  name: string;
13
- description: string;
14
- tenantId: string;
15
- projectId: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
18
15
  metadata: Record<string, string> | null;
16
+ description: string;
17
+ projectId: string;
18
+ tenantId: string;
19
19
  content: string;
20
20
  } | null>;
21
21
  declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
@@ -43,23 +43,23 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
43
43
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
44
44
  id: string;
45
45
  name: string;
46
- description: string;
47
- tenantId: string;
48
- projectId: string;
49
46
  createdAt: string;
50
47
  updatedAt: string;
51
48
  metadata: Record<string, string> | null;
49
+ description: string;
50
+ projectId: string;
51
+ tenantId: string;
52
52
  content: string;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
55
  id: string;
56
56
  name: string;
57
- description: string;
58
- tenantId: string;
59
- projectId: string;
60
57
  createdAt: string;
61
58
  updatedAt: string;
62
59
  metadata: Record<string, string> | null;
60
+ description: string;
61
+ projectId: string;
62
+ tenantId: string;
63
63
  content: string;
64
64
  }>;
65
65
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -92,15 +92,15 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
92
92
  alwaysLoaded?: boolean;
93
93
  }) => Promise<{
94
94
  id: string;
95
- tenantId: string;
96
- projectId: string;
97
- agentId: string;
98
95
  createdAt: string;
99
96
  updatedAt: string;
100
- index: number;
101
- alwaysLoaded: boolean;
102
97
  subAgentId: string;
98
+ projectId: string;
99
+ tenantId: string;
100
+ agentId: string;
103
101
  skillId: string;
102
+ index: number;
103
+ alwaysLoaded: boolean;
104
104
  }>;
105
105
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
106
106
  scopes: AgentScopeConfig;
@@ -10,14 +10,14 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- tenantId: string;
14
- projectId: string;
15
- agentId: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
15
+ subAgentId: string;
16
+ projectId: string;
17
+ tenantId: string;
18
18
  headers: Record<string, string> | null;
19
+ agentId: string;
19
20
  externalAgentId: string;
20
- subAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: SubAgentScopeConfig;
@@ -45,27 +45,27 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- tenantId: string;
49
- projectId: string;
50
- agentId: string;
51
48
  createdAt: string;
52
49
  updatedAt: string;
50
+ subAgentId: string;
51
+ projectId: string;
52
+ tenantId: string;
53
53
  headers: Record<string, string> | null;
54
+ agentId: string;
54
55
  externalAgentId: string;
55
- subAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- tenantId: string;
62
- projectId: string;
63
- agentId: string;
64
61
  createdAt: string;
65
62
  updatedAt: string;
63
+ subAgentId: string;
64
+ projectId: string;
65
+ tenantId: string;
66
66
  headers: Record<string, string> | null;
67
+ agentId: string;
67
68
  externalAgentId: string;
68
- subAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -181,14 +181,14 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
181
181
  };
182
182
  }) => Promise<{
183
183
  id: string;
184
- tenantId: string;
185
- projectId: string;
186
- agentId: string;
187
184
  createdAt: string;
188
185
  updatedAt: string;
186
+ subAgentId: string;
187
+ projectId: string;
188
+ tenantId: string;
189
189
  headers: Record<string, string> | null;
190
+ agentId: string;
190
191
  externalAgentId: string;
191
- subAgentId: string;
192
192
  }>;
193
193
  /**
194
194
  * Check if sub-agent external agent relation exists by params
@@ -198,14 +198,14 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
198
198
  externalAgentId: string;
199
199
  }) => Promise<{
200
200
  id: string;
201
- tenantId: string;
202
- projectId: string;
203
- agentId: string;
204
201
  createdAt: string;
205
202
  updatedAt: string;
203
+ subAgentId: string;
204
+ projectId: string;
205
+ tenantId: string;
206
206
  headers: Record<string, string> | null;
207
+ agentId: string;
207
208
  externalAgentId: string;
208
- subAgentId: string;
209
209
  } | undefined>;
210
210
  /**
211
211
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -219,14 +219,14 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
219
219
  };
220
220
  }) => Promise<{
221
221
  id: string;
222
- tenantId: string;
223
- projectId: string;
224
- agentId: string;
225
222
  createdAt: string;
226
223
  updatedAt: string;
224
+ subAgentId: string;
225
+ projectId: string;
226
+ tenantId: string;
227
227
  headers: Record<string, string> | null;
228
+ agentId: string;
228
229
  externalAgentId: string;
229
- subAgentId: string;
230
230
  }>;
231
231
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
232
232
  scopes: SubAgentScopeConfig;
@@ -10,11 +10,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- tenantId: string;
14
- projectId: string;
15
- agentId: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
15
+ projectId: string;
16
+ tenantId: string;
17
+ agentId: 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
- tenantId: string;
49
- projectId: string;
50
- agentId: string;
51
48
  createdAt: string;
52
49
  updatedAt: string;
50
+ projectId: string;
51
+ tenantId: string;
52
+ agentId: 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
- tenantId: string;
62
- projectId: string;
63
- agentId: string;
64
61
  createdAt: string;
65
62
  updatedAt: string;
63
+ projectId: string;
64
+ tenantId: string;
65
+ agentId: 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
- tenantId: string;
131
- projectId: string;
132
- agentId: string;
133
130
  createdAt: string;
134
131
  updatedAt: string;
132
+ projectId: string;
133
+ tenantId: string;
134
+ agentId: 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
- tenantId: string;
150
- projectId: string;
151
- agentId: string;
152
149
  createdAt: string;
153
150
  updatedAt: string;
151
+ projectId: string;
152
+ tenantId: string;
153
+ agentId: 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
- tenantId: string;
164
- projectId: string;
165
- agentId: string;
166
163
  createdAt: string;
167
164
  updatedAt: string;
165
+ projectId: string;
166
+ tenantId: string;
167
+ agentId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -205,17 +205,17 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
205
205
  };
206
206
  }) => Promise<{
207
207
  id: string;
208
- tenantId: string;
209
- projectId: string;
210
- agentId: string;
211
208
  createdAt: string;
212
209
  updatedAt: string;
213
- toolId: string;
210
+ subAgentId: string;
211
+ projectId: string;
212
+ tenantId: string;
214
213
  headers: Record<string, string> | null;
214
+ agentId: string;
215
+ toolId: string;
215
216
  toolPolicies: Record<string, {
216
217
  needsApproval?: boolean;
217
218
  }> | null;
218
- subAgentId: string;
219
219
  selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -249,17 +249,17 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
249
249
  relationId: string;
250
250
  }) => Promise<{
251
251
  id: string;
252
- tenantId: string;
253
- projectId: string;
254
- agentId: string;
255
252
  createdAt: string;
256
253
  updatedAt: string;
257
- toolId: string;
254
+ subAgentId: string;
255
+ projectId: string;
256
+ tenantId: string;
258
257
  headers: Record<string, string> | null;
258
+ agentId: string;
259
+ toolId: string;
259
260
  toolPolicies: Record<string, {
260
261
  needsApproval?: boolean;
261
262
  }> | null;
262
- subAgentId: string;
263
263
  selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -10,13 +10,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- tenantId: string;
14
- projectId: string;
15
- agentId: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
18
- headers: Record<string, string> | null;
19
15
  subAgentId: string;
16
+ projectId: string;
17
+ tenantId: string;
18
+ headers: Record<string, string> | null;
19
+ agentId: string;
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
- tenantId: string;
49
- projectId: string;
50
- agentId: string;
51
48
  createdAt: string;
52
49
  updatedAt: string;
53
- headers: Record<string, string> | null;
54
50
  subAgentId: string;
51
+ projectId: string;
52
+ tenantId: string;
53
+ headers: Record<string, string> | null;
54
+ agentId: string;
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
- tenantId: string;
62
- projectId: string;
63
- agentId: string;
64
61
  createdAt: string;
65
62
  updatedAt: string;
66
- headers: Record<string, string> | null;
67
63
  subAgentId: string;
64
+ projectId: string;
65
+ tenantId: string;
66
+ headers: Record<string, string> | null;
67
+ agentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -211,13 +211,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
211
211
  };
212
212
  }) => Promise<{
213
213
  id: string;
214
- tenantId: string;
215
- projectId: string;
216
- agentId: string;
217
214
  createdAt: string;
218
215
  updatedAt: string;
219
- headers: Record<string, string> | null;
220
216
  subAgentId: string;
217
+ projectId: string;
218
+ tenantId: string;
219
+ headers: Record<string, string> | null;
220
+ agentId: string;
221
221
  targetAgentId: string;
222
222
  }>;
223
223
  /**
@@ -228,13 +228,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
230
  id: string;
231
- tenantId: string;
232
- projectId: string;
233
- agentId: string;
234
231
  createdAt: string;
235
232
  updatedAt: string;
236
- headers: Record<string, string> | null;
237
233
  subAgentId: string;
234
+ projectId: string;
235
+ tenantId: string;
236
+ headers: Record<string, string> | null;
237
+ agentId: string;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
240
240
  /**
@@ -249,13 +249,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
249
249
  };
250
250
  }) => Promise<{
251
251
  id: string;
252
- tenantId: string;
253
- projectId: string;
254
- agentId: string;
255
252
  createdAt: string;
256
253
  updatedAt: string;
257
- headers: Record<string, string> | null;
258
254
  subAgentId: string;
255
+ projectId: string;
256
+ tenantId: string;
257
+ headers: Record<string, string> | null;
258
+ agentId: string;
259
259
  targetAgentId: string;
260
260
  }>;
261
261
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -11,12 +11,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
+ createdAt: string;
15
+ updatedAt: string;
14
16
  description: string | null;
15
- tenantId: string;
16
17
  projectId: string;
17
- agentId: string;
18
- prompt: string | null;
19
- conversationHistoryConfig: ConversationHistoryConfig | null;
18
+ tenantId: string;
20
19
  models: {
21
20
  base?: {
22
21
  model?: string | undefined;
@@ -34,20 +33,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
34
33
  stopWhen: {
35
34
  stepCountIs?: number | undefined;
36
35
  } | null;
37
- createdAt: string;
38
- updatedAt: string;
36
+ prompt: string | null;
37
+ conversationHistoryConfig: ConversationHistoryConfig | null;
38
+ agentId: string;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
43
  id: string;
44
44
  name: string;
45
+ createdAt: string;
46
+ updatedAt: string;
45
47
  description: string | null;
46
- tenantId: string;
47
48
  projectId: string;
48
- agentId: string;
49
- prompt: string | null;
50
- conversationHistoryConfig: ConversationHistoryConfig | null;
49
+ tenantId: string;
51
50
  models: {
52
51
  base?: {
53
52
  model?: string | undefined;
@@ -65,8 +64,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
65
64
  stopWhen: {
66
65
  stepCountIs?: number | undefined;
67
66
  } | null;
68
- createdAt: string;
69
- updatedAt: string;
67
+ prompt: string | null;
68
+ conversationHistoryConfig: ConversationHistoryConfig | null;
69
+ agentId: string;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
72
72
  scopes: AgentScopeConfig;
@@ -111,12 +111,11 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
112
  id: string;
113
113
  name: string;
114
+ createdAt: string;
115
+ updatedAt: string;
114
116
  description: string | null;
115
- tenantId: string;
116
117
  projectId: string;
117
- agentId: string;
118
- prompt: string | null;
119
- conversationHistoryConfig: ConversationHistoryConfig | null;
118
+ tenantId: string;
120
119
  models: {
121
120
  base?: {
122
121
  model?: string | undefined;
@@ -134,8 +133,9 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
134
133
  stopWhen: {
135
134
  stepCountIs?: number | undefined;
136
135
  } | null;
137
- createdAt: string;
138
- updatedAt: string;
136
+ prompt: string | null;
137
+ conversationHistoryConfig: ConversationHistoryConfig | null;
138
+ agentId: string;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
@@ -22,11 +22,11 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
22
22
  }) => Promise<{
23
23
  id: string;
24
24
  name: string;
25
- description: string | null;
26
- tenantId: string;
27
- projectId: string;
28
25
  createdAt: string;
29
26
  updatedAt: string;
27
+ description: string | null;
28
+ projectId: string;
29
+ tenantId: string;
30
30
  headers: Record<string, string> | null;
31
31
  config: {
32
32
  type: "mcp";
@@ -80,11 +80,11 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
81
  id: string;
82
82
  name: string;
83
- description: string | null;
84
- tenantId: string;
85
- projectId: string;
86
83
  createdAt: string;
87
84
  updatedAt: string;
85
+ description: string | null;
86
+ projectId: string;
87
+ tenantId: string;
88
88
  headers: Record<string, string> | null;
89
89
  config: {
90
90
  type: "mcp";
@@ -136,17 +136,17 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
136
136
  }> | null;
137
137
  }) => Promise<{
138
138
  id: string;
139
- tenantId: string;
140
- projectId: string;
141
- agentId: string;
142
139
  createdAt: string;
143
140
  updatedAt: string;
144
- toolId: string;
141
+ subAgentId: string;
142
+ projectId: string;
143
+ tenantId: string;
145
144
  headers: Record<string, string> | null;
145
+ agentId: string;
146
+ toolId: string;
146
147
  toolPolicies: Record<string, {
147
148
  needsApproval?: boolean;
148
149
  }> | null;
149
- subAgentId: string;
150
150
  selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -155,17 +155,17 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
155
155
  toolId: string;
156
156
  }) => Promise<{
157
157
  id: string;
158
- tenantId: string;
159
- projectId: string;
160
- agentId: string;
161
158
  createdAt: string;
162
159
  updatedAt: string;
163
- toolId: string;
160
+ subAgentId: string;
161
+ projectId: string;
162
+ tenantId: string;
164
163
  headers: Record<string, string> | null;
164
+ agentId: string;
165
+ toolId: string;
165
166
  toolPolicies: Record<string, {
166
167
  needsApproval?: boolean;
167
168
  }> | null;
168
- subAgentId: string;
169
169
  selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
@@ -183,17 +183,17 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
185
  id: string;
186
- tenantId: string;
187
- projectId: string;
188
- agentId: string;
189
186
  createdAt: string;
190
187
  updatedAt: string;
191
- toolId: string;
188
+ subAgentId: string;
189
+ projectId: string;
190
+ tenantId: string;
192
191
  headers: Record<string, string> | null;
192
+ agentId: string;
193
+ toolId: string;
193
194
  toolPolicies: Record<string, {
194
195
  needsApproval?: boolean;
195
196
  }> | null;
196
- subAgentId: string;
197
197
  selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
@@ -204,11 +204,11 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
204
204
  }) => Promise<{
205
205
  id: string;
206
206
  name: string;
207
- description: string | null;
208
- tenantId: string;
209
- projectId: string;
210
207
  createdAt: string;
211
208
  updatedAt: string;
209
+ description: string | null;
210
+ projectId: string;
211
+ tenantId: string;
212
212
  headers: Record<string, string> | null;
213
213
  config: {
214
214
  type: "mcp";
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
40
40
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
41
  encoding: "hex" | "base64";
42
42
  signature: {
43
- source: "query" | "header" | "body";
43
+ source: "query" | "body" | "header";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "header" | "body";
49
+ source: "literal" | "body" | "header";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;