@inkeep/agents-core 0.73.5 → 0.74.1

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 (50) hide show
  1. package/dist/auth/init.js +16 -1
  2. package/dist/auth/permissions.d.ts +9 -9
  3. package/dist/client-exports.d.ts +2 -2
  4. package/dist/client-exports.js +2 -2
  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/agentFull.d.ts +10 -3
  8. package/dist/data-access/manage/agentFull.js +43 -7
  9. package/dist/data-access/manage/agents.d.ts +41 -32
  10. package/dist/data-access/manage/agents.js +1 -0
  11. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  12. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  13. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  14. package/dist/data-access/manage/functionTools.d.ts +10 -10
  15. package/dist/data-access/manage/skills.d.ts +10 -10
  16. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  17. package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
  18. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  19. package/dist/data-access/manage/subAgents.d.ts +66 -12
  20. package/dist/data-access/manage/subAgents.js +2 -1
  21. package/dist/data-access/manage/tools.d.ts +21 -21
  22. package/dist/data-access/manage/triggers.d.ts +4 -4
  23. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  24. package/dist/data-access/runtime/apps.d.ts +9 -9
  25. package/dist/data-access/runtime/conversations.d.ts +32 -32
  26. package/dist/data-access/runtime/events.d.ts +3 -3
  27. package/dist/data-access/runtime/feedback.d.ts +2 -2
  28. package/dist/data-access/runtime/messages.d.ts +12 -12
  29. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  30. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  31. package/dist/data-access/runtime/tasks.d.ts +5 -5
  32. package/dist/db/manage/manage-schema.d.ts +417 -382
  33. package/dist/db/manage/manage-schema.js +1 -0
  34. package/dist/db/runtime/runtime-schema.d.ts +417 -417
  35. package/dist/evaluation/index.d.ts +3 -0
  36. package/dist/evaluation/index.js +3 -0
  37. package/dist/evaluation/pass-criteria-evaluator.d.ts +12 -0
  38. package/dist/evaluation/pass-criteria-evaluator.js +64 -0
  39. package/dist/index.d.ts +5 -3
  40. package/dist/index.js +4 -3
  41. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  42. package/dist/validation/index.d.ts +2 -2
  43. package/dist/validation/index.js +2 -2
  44. package/dist/validation/schemas/skills.d.ts +58 -58
  45. package/dist/validation/schemas.d.ts +2793 -2156
  46. package/dist/validation/schemas.js +17 -3
  47. package/drizzle/manage/0021_furry_warlock.sql +2 -0
  48. package/drizzle/manage/meta/0021_snapshot.json +4098 -0
  49. package/drizzle/manage/meta/_journal.json +7 -0
  50. package/package.json +5 -1
@@ -12,11 +12,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
15
  projectId: string;
17
16
  tenantId: string;
18
- headers: Record<string, string> | null;
17
+ agentId: string;
19
18
  subAgentId: string;
19
+ headers: Record<string, string> | null;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -47,11 +47,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- agentId: string;
51
50
  projectId: string;
52
51
  tenantId: string;
53
- headers: Record<string, string> | null;
52
+ agentId: string;
54
53
  subAgentId: string;
54
+ headers: Record<string, string> | null;
55
55
  externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -60,11 +60,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- agentId: string;
64
63
  projectId: string;
65
64
  tenantId: string;
66
- headers: Record<string, string> | null;
65
+ agentId: string;
67
66
  subAgentId: string;
67
+ headers: Record<string, string> | null;
68
68
  externalAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -189,11 +189,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
189
189
  id: string;
190
190
  createdAt: string;
191
191
  updatedAt: string;
192
- agentId: string;
193
192
  projectId: string;
194
193
  tenantId: string;
195
- headers: Record<string, string> | null;
194
+ agentId: string;
196
195
  subAgentId: string;
196
+ headers: Record<string, string> | null;
197
197
  externalAgentId: string;
198
198
  }>;
199
199
  /**
@@ -206,11 +206,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
206
206
  id: string;
207
207
  createdAt: string;
208
208
  updatedAt: string;
209
- agentId: string;
210
209
  projectId: string;
211
210
  tenantId: string;
212
- headers: Record<string, string> | null;
211
+ agentId: string;
213
212
  subAgentId: string;
213
+ headers: Record<string, string> | null;
214
214
  externalAgentId: string;
215
215
  } | undefined>;
216
216
  /**
@@ -227,11 +227,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
227
227
  id: string;
228
228
  createdAt: string;
229
229
  updatedAt: string;
230
- agentId: string;
231
230
  projectId: string;
232
231
  tenantId: string;
233
- headers: Record<string, string> | null;
232
+ agentId: string;
234
233
  subAgentId: string;
234
+ headers: Record<string, string> | null;
235
235
  externalAgentId: string;
236
236
  }>;
237
237
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -12,9 +12,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
15
  projectId: string;
17
16
  tenantId: 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
50
  projectId: string;
52
51
  tenantId: 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
63
  projectId: string;
65
64
  tenantId: 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
132
  projectId: string;
134
133
  tenantId: 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
151
  projectId: string;
153
152
  tenantId: 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
165
  projectId: string;
167
166
  tenantId: 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
210
  projectId: string;
212
211
  tenantId: string;
213
- headers: Record<string, string> | null;
214
- toolId: string;
212
+ agentId: string;
215
213
  subAgentId: string;
214
+ toolId: string;
215
+ headers: Record<string, string> | null;
216
+ selectedTools: string[] | null;
216
217
  toolPolicies: Record<string, {
217
218
  needsApproval?: boolean;
218
219
  }> | null;
219
- selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
222
222
  scopes: AgentScopeConfig;
@@ -251,16 +251,16 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
251
251
  id: string;
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
- agentId: string;
255
254
  projectId: string;
256
255
  tenantId: string;
257
- headers: Record<string, string> | null;
258
- toolId: string;
256
+ agentId: string;
259
257
  subAgentId: string;
258
+ toolId: string;
259
+ headers: Record<string, string> | null;
260
+ selectedTools: string[] | null;
260
261
  toolPolicies: Record<string, {
261
262
  needsApproval?: boolean;
262
263
  }> | null;
263
- selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -12,11 +12,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
15
  projectId: string;
17
16
  tenantId: string;
18
- headers: Record<string, string> | null;
17
+ agentId: string;
19
18
  subAgentId: string;
19
+ headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -47,11 +47,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- agentId: string;
51
50
  projectId: string;
52
51
  tenantId: string;
53
- headers: Record<string, string> | null;
52
+ agentId: string;
54
53
  subAgentId: string;
54
+ headers: Record<string, string> | null;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -60,11 +60,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- agentId: string;
64
63
  projectId: string;
65
64
  tenantId: string;
66
- headers: Record<string, string> | null;
65
+ agentId: string;
67
66
  subAgentId: string;
67
+ headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -225,11 +225,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
225
225
  id: string;
226
226
  createdAt: string;
227
227
  updatedAt: string;
228
- agentId: string;
229
228
  projectId: string;
230
229
  tenantId: string;
231
- headers: Record<string, string> | null;
230
+ agentId: string;
232
231
  subAgentId: string;
232
+ headers: Record<string, string> | null;
233
233
  targetAgentId: string;
234
234
  }>;
235
235
  /**
@@ -242,11 +242,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
242
242
  id: string;
243
243
  createdAt: string;
244
244
  updatedAt: string;
245
- agentId: string;
246
245
  projectId: string;
247
246
  tenantId: string;
248
- headers: Record<string, string> | null;
247
+ agentId: string;
249
248
  subAgentId: string;
249
+ headers: Record<string, string> | null;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
252
252
  /**
@@ -263,11 +263,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
263
263
  id: string;
264
264
  createdAt: string;
265
265
  updatedAt: string;
266
- agentId: string;
267
266
  projectId: string;
268
267
  tenantId: string;
269
- headers: Record<string, string> | null;
268
+ agentId: string;
270
269
  subAgentId: string;
270
+ headers: Record<string, string> | null;
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
- name: string;
14
13
  createdAt: string;
14
+ name: string;
15
15
  updatedAt: string;
16
- description: string | null;
17
- agentId: string;
18
16
  projectId: string;
19
17
  tenantId: string;
18
+ description: string | null;
20
19
  models: {
21
20
  base?: {
22
21
  model?: string | undefined;
@@ -37,23 +36,32 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
37
36
  allowedProviders?: string[] | undefined;
38
37
  } | undefined;
39
38
  } | null;
40
- prompt: string | null;
41
39
  stopWhen: {
42
40
  stepCountIs?: number | undefined;
43
41
  } | null;
42
+ agentId: string;
43
+ prompt: string | null;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
+ outputContract: {
46
+ [x: string]: unknown;
47
+ allowText?: boolean | undefined;
48
+ requireComponent?: string[] | undefined;
49
+ requireArtifact?: string[] | undefined;
50
+ requireTransfer?: boolean | undefined;
51
+ onViolation?: "retry" | "reject" | "warn" | undefined;
52
+ retryBudget?: number | undefined;
53
+ } | null;
45
54
  } | undefined>;
46
55
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
47
56
  scopes: AgentScopeConfig;
48
57
  }) => Promise<{
49
58
  id: string;
50
- name: string;
51
59
  createdAt: string;
60
+ name: string;
52
61
  updatedAt: string;
53
- description: string | null;
54
- agentId: string;
55
62
  projectId: string;
56
63
  tenantId: string;
64
+ description: string | null;
57
65
  models: {
58
66
  base?: {
59
67
  model?: string | undefined;
@@ -74,11 +82,21 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
74
82
  allowedProviders?: string[] | undefined;
75
83
  } | undefined;
76
84
  } | null;
77
- prompt: string | null;
78
85
  stopWhen: {
79
86
  stepCountIs?: number | undefined;
80
87
  } | null;
88
+ agentId: string;
89
+ prompt: string | null;
81
90
  conversationHistoryConfig: ConversationHistoryConfig | null;
91
+ outputContract: {
92
+ [x: string]: unknown;
93
+ allowText?: boolean | undefined;
94
+ requireComponent?: string[] | undefined;
95
+ requireArtifact?: string[] | undefined;
96
+ requireTransfer?: boolean | undefined;
97
+ onViolation?: "retry" | "reject" | "warn" | undefined;
98
+ retryBudget?: number | undefined;
99
+ } | null;
82
100
  }[]>;
83
101
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
84
102
  scopes: AgentScopeConfig;
@@ -112,6 +130,15 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
112
130
  stopWhen: {
113
131
  stepCountIs?: number | undefined;
114
132
  } | null;
133
+ outputContract: {
134
+ [x: string]: unknown;
135
+ allowText?: boolean | undefined;
136
+ requireComponent?: string[] | undefined;
137
+ requireArtifact?: string[] | undefined;
138
+ requireTransfer?: boolean | undefined;
139
+ onViolation?: "retry" | "reject" | "warn" | undefined;
140
+ retryBudget?: number | undefined;
141
+ } | null;
115
142
  name: string;
116
143
  description: string | null;
117
144
  agentId: string;
@@ -128,13 +155,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
128
155
  }>;
129
156
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
130
157
  id: string;
131
- name: string;
132
158
  createdAt: string;
159
+ name: string;
133
160
  updatedAt: string;
134
- description: string | null;
135
- agentId: string;
136
161
  projectId: string;
137
162
  tenantId: string;
163
+ description: string | null;
138
164
  models: {
139
165
  base?: {
140
166
  model?: string | undefined;
@@ -155,11 +181,21 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
155
181
  allowedProviders?: string[] | undefined;
156
182
  } | undefined;
157
183
  } | null;
158
- prompt: string | null;
159
184
  stopWhen: {
160
185
  stepCountIs?: number | undefined;
161
186
  } | null;
187
+ agentId: string;
188
+ prompt: string | null;
162
189
  conversationHistoryConfig: ConversationHistoryConfig | null;
190
+ outputContract: {
191
+ [x: string]: unknown;
192
+ allowText?: boolean | undefined;
193
+ requireComponent?: string[] | undefined;
194
+ requireArtifact?: string[] | undefined;
195
+ requireTransfer?: boolean | undefined;
196
+ onViolation?: "retry" | "reject" | "warn" | undefined;
197
+ retryBudget?: number | undefined;
198
+ } | null;
163
199
  }>;
164
200
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
165
201
  scopes: AgentScopeConfig;
@@ -193,6 +229,15 @@ declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
193
229
  stopWhen: {
194
230
  stepCountIs?: number | undefined;
195
231
  } | null;
232
+ outputContract: {
233
+ [x: string]: unknown;
234
+ allowText?: boolean | undefined;
235
+ requireComponent?: string[] | undefined;
236
+ requireArtifact?: string[] | undefined;
237
+ requireTransfer?: boolean | undefined;
238
+ onViolation?: "retry" | "reject" | "warn" | undefined;
239
+ retryBudget?: number | undefined;
240
+ } | null;
196
241
  name: string;
197
242
  description: string | null;
198
243
  agentId: string;
@@ -246,6 +291,15 @@ declare const getSubAgentsByIds: (db: AgentsManageDatabaseClient) => (params: {
246
291
  stopWhen: {
247
292
  stepCountIs?: number | undefined;
248
293
  } | null;
294
+ outputContract: {
295
+ [x: string]: unknown;
296
+ allowText?: boolean | undefined;
297
+ requireComponent?: string[] | undefined;
298
+ requireArtifact?: string[] | undefined;
299
+ requireTransfer?: boolean | undefined;
300
+ onViolation?: "retry" | "reject" | "warn" | undefined;
301
+ retryBudget?: number | undefined;
302
+ } | null;
249
303
  name: string;
250
304
  description: string | null;
251
305
  agentId: string;
@@ -62,7 +62,8 @@ const upsertSubAgent = (db) => async (params) => {
62
62
  prompt: params.data.prompt,
63
63
  conversationHistoryConfig: params.data.conversationHistoryConfig,
64
64
  models: params.data.models,
65
- stopWhen: params.data.stopWhen
65
+ stopWhen: params.data.stopWhen,
66
+ outputContract: params.data.outputContract
66
67
  }
67
68
  });
68
69
  if (!updated) throw new Error("Failed to update agent - no rows affected");
@@ -21,18 +21,18 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
21
21
  toolId: string;
22
22
  }) => Promise<{
23
23
  id: string;
24
- name: string;
25
24
  createdAt: string;
25
+ name: string;
26
26
  updatedAt: string;
27
- description: string | null;
28
27
  projectId: string;
29
28
  tenantId: string;
29
+ description: string | null;
30
30
  headers: Record<string, string> | null;
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;
@@ -79,18 +79,18 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
81
  id: string;
82
- name: string;
83
82
  createdAt: string;
83
+ name: string;
84
84
  updatedAt: string;
85
- description: string | null;
86
85
  projectId: string;
87
86
  tenantId: string;
87
+ description: string | null;
88
88
  headers: Record<string, string> | null;
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
141
  projectId: string;
143
142
  tenantId: string;
144
- headers: Record<string, string> | null;
145
- toolId: string;
143
+ agentId: string;
146
144
  subAgentId: string;
145
+ toolId: string;
146
+ headers: Record<string, string> | null;
147
+ selectedTools: string[] | null;
147
148
  toolPolicies: Record<string, {
148
149
  needsApproval?: boolean;
149
150
  }> | null;
150
- selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
153
153
  scopes: AgentScopeConfig;
@@ -157,16 +157,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
157
157
  id: string;
158
158
  createdAt: string;
159
159
  updatedAt: string;
160
- agentId: string;
161
160
  projectId: string;
162
161
  tenantId: string;
163
- headers: Record<string, string> | null;
164
- toolId: string;
162
+ agentId: string;
165
163
  subAgentId: string;
164
+ toolId: string;
165
+ headers: Record<string, string> | null;
166
+ selectedTools: string[] | null;
166
167
  toolPolicies: Record<string, {
167
168
  needsApproval?: boolean;
168
169
  }> | null;
169
- selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
172
172
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -185,16 +185,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
185
185
  id: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
- agentId: string;
189
188
  projectId: string;
190
189
  tenantId: string;
191
- headers: Record<string, string> | null;
192
- toolId: string;
190
+ agentId: string;
193
191
  subAgentId: string;
192
+ toolId: string;
193
+ headers: Record<string, string> | null;
194
+ selectedTools: string[] | null;
194
195
  toolPolicies: Record<string, {
195
196
  needsApproval?: boolean;
196
197
  }> | null;
197
- selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
200
200
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -203,18 +203,18 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
205
  id: string;
206
- name: string;
207
206
  createdAt: string;
207
+ name: string;
208
208
  updatedAt: string;
209
- description: string | null;
210
209
  projectId: string;
211
210
  tenantId: string;
211
+ description: string | null;
212
212
  headers: Record<string, string> | null;
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;
@@ -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" | "body" | "header";
43
+ source: "query" | "header" | "body";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "body" | "header";
49
+ source: "literal" | "header" | "body";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -132,10 +132,10 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
132
132
  userId: string;
133
133
  }) => Promise<{
134
134
  createdAt: string;
135
- userId: string;
136
- agentId: string;
137
135
  projectId: string;
138
136
  tenantId: string;
137
+ agentId: string;
138
+ userId: string;
139
139
  triggerId: string;
140
140
  }>;
141
141
  declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
@@ -9,13 +9,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
9
9
  id: string;
10
10
  }) => Promise<{
11
11
  id: string;
12
- name: string | null;
13
12
  createdAt: string;
13
+ name: string | null;
14
14
  updatedAt: string;
15
- expiresAt: string | null;
16
- agentId: string;
17
15
  projectId: string;
18
16
  tenantId: string;
17
+ agentId: string;
18
+ expiresAt: string | null;
19
19
  publicId: string;
20
20
  keyHash: string;
21
21
  keyPrefix: string;
@@ -23,13 +23,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
25
  id: string;
26
- name: string | null;
27
26
  createdAt: string;
27
+ name: string | null;
28
28
  updatedAt: string;
29
- expiresAt: string | null;
30
- agentId: string;
31
29
  projectId: string;
32
30
  tenantId: string;
31
+ agentId: string;
32
+ expiresAt: string | null;
33
33
  publicId: string;
34
34
  keyHash: string;
35
35
  keyPrefix: string;
@@ -40,13 +40,13 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
42
  id: string;
43
- name: string | null;
44
43
  createdAt: string;
44
+ name: string | null;
45
45
  updatedAt: string;
46
- expiresAt: string | null;
47
- agentId: string;
48
46
  projectId: string;
49
47
  tenantId: string;
48
+ agentId: string;
49
+ expiresAt: string | null;
50
50
  publicId: string;
51
51
  keyHash: string;
52
52
  keyPrefix: string;
@@ -67,13 +67,13 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
69
  id: string;
70
- name: string | null;
71
70
  createdAt: string;
71
+ name: string | null;
72
72
  updatedAt: string;
73
- expiresAt: string | null;
74
- agentId: string;
75
73
  projectId: string;
76
74
  tenantId: string;
75
+ agentId: string;
76
+ expiresAt: string | null;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;