@inkeep/agents-core 0.78.4 → 0.78.5

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 (40) 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/data-access/index.d.ts +2 -2
  6. package/dist/data-access/index.js +2 -2
  7. package/dist/data-access/manage/agents.d.ts +16 -16
  8. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  9. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  10. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  11. package/dist/data-access/manage/functionTools.d.ts +16 -16
  12. package/dist/data-access/manage/skills.d.ts +10 -10
  13. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  14. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  15. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  16. package/dist/data-access/manage/subAgents.d.ts +12 -12
  17. package/dist/data-access/manage/tools.d.ts +27 -27
  18. package/dist/data-access/manage/triggers.d.ts +5 -5
  19. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  20. package/dist/data-access/runtime/apps.d.ts +17 -17
  21. package/dist/data-access/runtime/conversations.d.ts +32 -32
  22. package/dist/data-access/runtime/evalRuns.d.ts +47 -6
  23. package/dist/data-access/runtime/evalRuns.js +96 -6
  24. package/dist/data-access/runtime/events.d.ts +3 -3
  25. package/dist/data-access/runtime/feedback.d.ts +6 -6
  26. package/dist/data-access/runtime/messages.d.ts +24 -24
  27. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +5 -5
  28. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +2 -2
  29. package/dist/data-access/runtime/tasks.d.ts +4 -4
  30. package/dist/db/manage/manage-schema.d.ts +505 -505
  31. package/dist/db/runtime/runtime-schema.d.ts +452 -452
  32. package/dist/index.d.ts +2 -2
  33. package/dist/index.js +2 -2
  34. package/dist/utils/error.d.ts +51 -51
  35. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  36. package/dist/validation/schemas/shared.d.ts +1 -0
  37. package/dist/validation/schemas/shared.js +2 -1
  38. package/dist/validation/schemas/skills.d.ts +28 -27
  39. package/dist/validation/schemas.d.ts +2352 -2324
  40. package/package.json +1 -1
@@ -16,14 +16,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
16
16
  skillId: string;
17
17
  }) => Promise<{
18
18
  id: string;
19
- tenantId: string;
20
- createdAt: string;
21
19
  name: string;
20
+ createdAt: string;
21
+ updatedAt: string;
22
22
  metadata: Record<string, string> | null;
23
23
  description: string;
24
24
  content: string;
25
25
  projectId: string;
26
- updatedAt: string;
26
+ tenantId: 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
- tenantId: string;
115
- createdAt: string;
116
114
  name: string;
115
+ createdAt: string;
116
+ updatedAt: string;
117
117
  metadata: Record<string, string> | null;
118
118
  description: string;
119
119
  content: string;
120
120
  projectId: string;
121
- updatedAt: string;
121
+ tenantId: 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
- tenantId: string;
144
143
  createdAt: string;
145
- agentId: string;
144
+ updatedAt: string;
146
145
  projectId: string;
146
+ tenantId: string;
147
+ agentId: string;
147
148
  subAgentId: string;
148
- updatedAt: string;
149
- skillId: string;
150
149
  index: number;
151
150
  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
- tenantId: string;
14
13
  createdAt: string;
15
- agentId: string;
16
- projectId: string;
17
- subAgentId: string;
18
14
  updatedAt: string;
15
+ projectId: string;
16
+ tenantId: string;
17
+ agentId: string;
19
18
  headers: Record<string, string> | null;
19
+ subAgentId: string;
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
- tenantId: string;
49
48
  createdAt: string;
50
- agentId: string;
51
- projectId: string;
52
- subAgentId: string;
53
49
  updatedAt: string;
50
+ projectId: string;
51
+ tenantId: string;
52
+ agentId: string;
54
53
  headers: Record<string, string> | null;
54
+ subAgentId: string;
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
- tenantId: string;
62
61
  createdAt: string;
63
- agentId: string;
64
- projectId: string;
65
- subAgentId: string;
66
62
  updatedAt: string;
63
+ projectId: string;
64
+ tenantId: string;
65
+ agentId: string;
67
66
  headers: Record<string, string> | null;
67
+ subAgentId: string;
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
- tenantId: string;
191
190
  createdAt: string;
192
- agentId: string;
193
- projectId: string;
194
- subAgentId: string;
195
191
  updatedAt: string;
192
+ projectId: string;
193
+ tenantId: string;
194
+ agentId: string;
196
195
  headers: Record<string, string> | null;
196
+ subAgentId: string;
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
- tenantId: string;
208
207
  createdAt: string;
209
- agentId: string;
210
- projectId: string;
211
- subAgentId: string;
212
208
  updatedAt: string;
209
+ projectId: string;
210
+ tenantId: string;
211
+ agentId: string;
213
212
  headers: Record<string, string> | null;
213
+ subAgentId: string;
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
- tenantId: string;
229
228
  createdAt: string;
230
- agentId: string;
231
- projectId: string;
232
- subAgentId: string;
233
229
  updatedAt: string;
230
+ projectId: string;
231
+ tenantId: string;
232
+ agentId: string;
234
233
  headers: Record<string, string> | null;
234
+ subAgentId: string;
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
- tenantId: string;
14
13
  createdAt: string;
15
- agentId: string;
16
- projectId: 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
48
  createdAt: string;
50
- agentId: string;
51
- projectId: 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
61
  createdAt: string;
63
- agentId: string;
64
- projectId: 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
130
  createdAt: string;
132
- agentId: string;
133
- projectId: 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
149
  createdAt: string;
151
- agentId: string;
152
- projectId: 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
163
  createdAt: string;
165
- agentId: string;
166
- projectId: 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,18 +205,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
205
205
  };
206
206
  }) => Promise<{
207
207
  id: string;
208
- tenantId: string;
209
208
  createdAt: string;
210
- agentId: string;
209
+ updatedAt: string;
211
210
  projectId: string;
211
+ tenantId: string;
212
+ agentId: string;
213
+ headers: Record<string, string> | null;
212
214
  subAgentId: string;
213
215
  toolId: string;
214
- updatedAt: string;
215
- headers: Record<string, string> | null;
216
- selectedTools: string[] | null;
217
216
  toolPolicies: Record<string, {
218
217
  needsApproval?: boolean;
219
218
  }> | 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
- tenantId: string;
253
252
  createdAt: string;
254
- agentId: string;
253
+ updatedAt: string;
255
254
  projectId: string;
255
+ tenantId: string;
256
+ agentId: string;
257
+ headers: Record<string, string> | null;
256
258
  subAgentId: string;
257
259
  toolId: string;
258
- updatedAt: string;
259
- headers: Record<string, string> | null;
260
- selectedTools: string[] | null;
261
260
  toolPolicies: Record<string, {
262
261
  needsApproval?: boolean;
263
262
  }> | 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
- tenantId: string;
14
13
  createdAt: string;
15
- agentId: string;
16
- projectId: string;
17
- subAgentId: string;
18
14
  updatedAt: string;
15
+ projectId: string;
16
+ tenantId: string;
17
+ agentId: string;
19
18
  headers: Record<string, string> | null;
19
+ subAgentId: 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
48
  createdAt: string;
50
- agentId: string;
51
- projectId: string;
52
- subAgentId: string;
53
49
  updatedAt: string;
50
+ projectId: string;
51
+ tenantId: string;
52
+ agentId: string;
54
53
  headers: Record<string, string> | null;
54
+ subAgentId: 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
61
  createdAt: string;
63
- agentId: string;
64
- projectId: string;
65
- subAgentId: string;
66
62
  updatedAt: string;
63
+ projectId: string;
64
+ tenantId: string;
65
+ agentId: string;
67
66
  headers: Record<string, string> | null;
67
+ subAgentId: string;
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
- tenantId: string;
227
226
  createdAt: string;
228
- agentId: string;
229
- projectId: string;
230
- subAgentId: string;
231
227
  updatedAt: string;
228
+ projectId: string;
229
+ tenantId: string;
230
+ agentId: string;
232
231
  headers: Record<string, string> | null;
232
+ subAgentId: string;
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
- tenantId: string;
244
243
  createdAt: string;
245
- agentId: string;
246
- projectId: string;
247
- subAgentId: string;
248
244
  updatedAt: string;
245
+ projectId: string;
246
+ tenantId: string;
247
+ agentId: string;
249
248
  headers: Record<string, string> | null;
249
+ subAgentId: string;
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
- tenantId: string;
265
264
  createdAt: string;
266
- agentId: string;
267
- projectId: string;
268
- subAgentId: string;
269
265
  updatedAt: string;
266
+ projectId: string;
267
+ tenantId: string;
268
+ agentId: string;
270
269
  headers: Record<string, string> | null;
270
+ subAgentId: string;
271
271
  targetAgentId: string;
272
272
  }>;
273
273
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -10,13 +10,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- tenantId: string;
14
- createdAt: string;
15
13
  name: string;
14
+ createdAt: string;
15
+ updatedAt: string;
16
16
  description: string | null;
17
- agentId: string;
18
17
  projectId: string;
19
- updatedAt: string;
18
+ tenantId: string;
20
19
  models: {
21
20
  base?: {
22
21
  model?: string | undefined;
@@ -40,6 +39,7 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
40
39
  stopWhen: {
41
40
  stepCountIs?: number | undefined;
42
41
  } | null;
42
+ agentId: string;
43
43
  prompt: string | null;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  outputContract: {
@@ -56,13 +56,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
57
57
  }) => Promise<{
58
58
  id: string;
59
- tenantId: string;
60
- createdAt: string;
61
59
  name: string;
60
+ createdAt: string;
61
+ updatedAt: string;
62
62
  description: string | null;
63
- agentId: string;
64
63
  projectId: string;
65
- updatedAt: string;
64
+ tenantId: string;
66
65
  models: {
67
66
  base?: {
68
67
  model?: string | undefined;
@@ -86,6 +85,7 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
86
85
  stopWhen: {
87
86
  stepCountIs?: number | undefined;
88
87
  } | null;
88
+ agentId: string;
89
89
  prompt: string | null;
90
90
  conversationHistoryConfig: ConversationHistoryConfig | null;
91
91
  outputContract: {
@@ -155,13 +155,12 @@ 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;
160
158
  name: string;
159
+ createdAt: string;
160
+ updatedAt: string;
161
161
  description: string | null;
162
- agentId: string;
163
162
  projectId: string;
164
- updatedAt: string;
163
+ tenantId: string;
165
164
  models: {
166
165
  base?: {
167
166
  model?: string | undefined;
@@ -185,6 +184,7 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
185
184
  stopWhen: {
186
185
  stepCountIs?: number | undefined;
187
186
  } | 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;
26
24
  name: string;
25
+ createdAt: string;
26
+ updatedAt: string;
27
27
  description: string | null;
28
28
  projectId: string;
29
- updatedAt: string;
29
+ tenantId: string;
30
+ headers: Record<string, string> | null;
30
31
  config: {
31
32
  type: "mcp";
32
33
  mcp: ToolMcpConfig;
33
34
  };
34
35
  credentialReferenceId: string | null;
35
36
  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;
84
82
  name: string;
83
+ createdAt: string;
84
+ updatedAt: string;
85
85
  description: string | null;
86
86
  projectId: string;
87
- updatedAt: string;
87
+ tenantId: string;
88
+ headers: Record<string, string> | null;
88
89
  config: {
89
90
  type: "mcp";
90
91
  mcp: ToolMcpConfig;
91
92
  };
92
93
  credentialReferenceId: string | null;
93
94
  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
- tenantId: string;
140
139
  createdAt: string;
141
- agentId: string;
140
+ updatedAt: string;
142
141
  projectId: string;
142
+ tenantId: string;
143
+ agentId: string;
144
+ headers: Record<string, string> | null;
143
145
  subAgentId: string;
144
146
  toolId: string;
145
- updatedAt: string;
146
- headers: Record<string, string> | null;
147
- selectedTools: string[] | null;
148
147
  toolPolicies: Record<string, {
149
148
  needsApproval?: boolean;
150
149
  }> | 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
- tenantId: string;
159
158
  createdAt: string;
160
- agentId: string;
159
+ updatedAt: string;
161
160
  projectId: string;
161
+ tenantId: string;
162
+ agentId: string;
163
+ headers: Record<string, string> | null;
162
164
  subAgentId: string;
163
165
  toolId: string;
164
- updatedAt: string;
165
- headers: Record<string, string> | null;
166
- selectedTools: string[] | null;
167
166
  toolPolicies: Record<string, {
168
167
  needsApproval?: boolean;
169
168
  }> | 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
- tenantId: string;
187
186
  createdAt: string;
188
- agentId: string;
187
+ updatedAt: string;
189
188
  projectId: string;
189
+ tenantId: string;
190
+ agentId: string;
191
+ headers: Record<string, string> | null;
190
192
  subAgentId: string;
191
193
  toolId: string;
192
- updatedAt: string;
193
- headers: Record<string, string> | null;
194
- selectedTools: string[] | null;
195
194
  toolPolicies: Record<string, {
196
195
  needsApproval?: boolean;
197
196
  }> | 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;
208
206
  name: string;
207
+ createdAt: string;
208
+ updatedAt: string;
209
209
  description: string | null;
210
210
  projectId: string;
211
- updatedAt: string;
211
+ tenantId: string;
212
+ headers: Record<string, string> | null;
212
213
  config: {
213
214
  type: "mcp";
214
215
  mcp: ToolMcpConfig;
215
216
  };
216
217
  credentialReferenceId: string | null;
217
218
  credentialScope: string;
218
- headers: Record<string, string> | null;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | null;
221
221
  lastError: string | null;
@@ -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;
@@ -131,11 +131,11 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
131
131
  triggerId: string;
132
132
  userId: string;
133
133
  }) => Promise<{
134
- tenantId: string;
135
134
  createdAt: string;
136
- agentId: string;
137
- projectId: string;
138
135
  userId: string;
136
+ projectId: string;
137
+ tenantId: string;
138
+ agentId: string;
139
139
  triggerId: string;
140
140
  }>;
141
141
  declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {