@inkeep/agents-core 0.0.0-dev-20260121032144 → 0.0.0-dev-20260121072820

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 (30) hide show
  1. package/dist/auth/auth.d.ts +53 -53
  2. package/dist/auth/permissions.d.ts +13 -13
  3. package/dist/client-exports.d.ts +3 -4
  4. package/dist/constants/otel-attributes.d.ts +2 -0
  5. package/dist/constants/otel-attributes.js +2 -0
  6. package/dist/data-access/manage/agents.d.ts +26 -26
  7. package/dist/data-access/manage/artifactComponents.d.ts +8 -8
  8. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  9. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  10. package/dist/data-access/manage/functionTools.d.ts +12 -12
  11. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  12. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  13. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  14. package/dist/data-access/manage/subAgents.d.ts +18 -18
  15. package/dist/data-access/manage/tools.d.ts +33 -33
  16. package/dist/data-access/manage/triggers.d.ts +1 -1
  17. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  18. package/dist/data-access/runtime/conversations.d.ts +12 -12
  19. package/dist/data-access/runtime/messages.d.ts +12 -12
  20. package/dist/data-access/runtime/tasks.d.ts +4 -4
  21. package/dist/db/manage/manage-schema.d.ts +300 -300
  22. package/dist/db/manage/manage-schema.js +1 -1
  23. package/dist/db/runtime/runtime-schema.d.ts +157 -157
  24. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  25. package/dist/validation/schemas.d.ts +1394 -1394
  26. package/dist/validation/schemas.js +1 -1
  27. package/drizzle/manage/0002_bent_sunfire.sql +1 -0
  28. package/drizzle/manage/meta/0002_snapshot.json +3115 -0
  29. package/drizzle/manage/meta/_journal.json +7 -0
  30. package/package.json +1 -1
@@ -64,13 +64,13 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
64
64
  scopes: SubAgentScopeConfig;
65
65
  dataComponentId: string;
66
66
  }) => Promise<{
67
+ id: string;
68
+ createdAt: string;
67
69
  tenantId: string;
68
70
  projectId: string;
69
- id: string;
70
71
  agentId: string;
71
- createdAt: string;
72
- subAgentId: string;
73
72
  dataComponentId: string;
73
+ subAgentId: string;
74
74
  }>;
75
75
  /**
76
76
  * Remove association between data component and agent
@@ -106,13 +106,13 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
106
106
  scopes: SubAgentScopeConfig;
107
107
  dataComponentId: string;
108
108
  }) => Promise<{
109
+ id: string;
110
+ createdAt: string;
109
111
  tenantId: string;
110
112
  projectId: string;
111
- id: string;
112
113
  agentId: string;
113
- createdAt: string;
114
- subAgentId: string;
115
114
  dataComponentId: string;
115
+ subAgentId: string;
116
116
  } | null>;
117
117
  /**
118
118
  * Count data components for a tenant/project
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
- tenantId: string;
57
- projectId: string;
58
56
  id: string;
59
57
  name: string;
60
58
  description: string | null;
61
- agentId: string;
62
59
  createdAt: string;
63
60
  updatedAt: string;
61
+ tenantId: string;
62
+ projectId: string;
63
+ agentId: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
95
95
  data: FunctionToolApiInsert;
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
- tenantId: string;
99
- projectId: string;
100
98
  id: string;
101
99
  name: string;
102
100
  description: string | null;
103
- agentId: string;
104
101
  createdAt: string;
105
102
  updatedAt: string;
103
+ tenantId: string;
104
+ projectId: string;
105
+ agentId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -150,12 +150,12 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
150
150
  subAgentId: string;
151
151
  functionToolId: string;
152
152
  }) => Promise<{
153
- tenantId: string;
154
- projectId: string;
155
153
  id: string;
156
- agentId: string;
157
154
  createdAt: string;
158
155
  updatedAt: string;
156
+ tenantId: string;
157
+ projectId: string;
158
+ agentId: string;
159
159
  subAgentId: string;
160
160
  functionToolId: string;
161
161
  }>;
@@ -206,12 +206,12 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
206
206
  subAgentId: string;
207
207
  functionToolId: string;
208
208
  }) => Promise<{
209
- tenantId: string;
210
- projectId: string;
211
209
  id: string;
212
- agentId: string;
213
210
  createdAt: string;
214
211
  updatedAt: string;
212
+ tenantId: string;
213
+ projectId: string;
214
+ agentId: string;
215
215
  subAgentId: string;
216
216
  functionToolId: string;
217
217
  }>;
@@ -8,15 +8,15 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
11
  id: string;
14
- agentId: string;
15
12
  createdAt: string;
16
13
  updatedAt: string;
14
+ tenantId: string;
15
+ projectId: string;
16
+ agentId: string;
17
+ subAgentId: string;
17
18
  headers: Record<string, string> | null;
18
19
  externalAgentId: string;
19
- subAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: SubAgentScopeConfig;
@@ -43,28 +43,28 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
43
43
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
- tenantId: string;
47
- projectId: string;
48
46
  id: string;
49
- agentId: string;
50
47
  createdAt: string;
51
48
  updatedAt: string;
49
+ tenantId: string;
50
+ projectId: string;
51
+ agentId: string;
52
+ subAgentId: string;
52
53
  headers: Record<string, string> | null;
53
54
  externalAgentId: string;
54
- subAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- tenantId: string;
60
- projectId: string;
61
59
  id: string;
62
- agentId: string;
63
60
  createdAt: string;
64
61
  updatedAt: string;
62
+ tenantId: string;
63
+ projectId: string;
64
+ agentId: string;
65
+ subAgentId: string;
65
66
  headers: Record<string, string> | null;
66
67
  externalAgentId: string;
67
- subAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -179,15 +179,15 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
179
179
  headers?: Record<string, string> | null;
180
180
  };
181
181
  }) => Promise<{
182
- tenantId: string;
183
- projectId: string;
184
182
  id: string;
185
- agentId: string;
186
183
  createdAt: string;
187
184
  updatedAt: string;
185
+ tenantId: string;
186
+ projectId: string;
187
+ agentId: string;
188
+ subAgentId: string;
188
189
  headers: Record<string, string> | null;
189
190
  externalAgentId: string;
190
- subAgentId: string;
191
191
  }>;
192
192
  /**
193
193
  * Check if sub-agent external agent relation exists by params
@@ -196,15 +196,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
196
196
  scopes: SubAgentScopeConfig;
197
197
  externalAgentId: string;
198
198
  }) => Promise<{
199
- tenantId: string;
200
- projectId: string;
201
199
  id: string;
202
- agentId: string;
203
200
  createdAt: string;
204
201
  updatedAt: string;
202
+ tenantId: string;
203
+ projectId: string;
204
+ agentId: string;
205
+ subAgentId: string;
205
206
  headers: Record<string, string> | null;
206
207
  externalAgentId: string;
207
- subAgentId: string;
208
208
  } | undefined>;
209
209
  /**
210
210
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -217,15 +217,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
217
217
  headers?: Record<string, string> | null;
218
218
  };
219
219
  }) => Promise<{
220
- tenantId: string;
221
- projectId: string;
222
220
  id: string;
223
- agentId: string;
224
221
  createdAt: string;
225
222
  updatedAt: string;
223
+ tenantId: string;
224
+ projectId: string;
225
+ agentId: string;
226
+ subAgentId: string;
226
227
  headers: Record<string, string> | null;
227
228
  externalAgentId: string;
228
- subAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;
@@ -8,12 +8,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
8
8
  scopes: AgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
11
  id: string;
14
- agentId: string;
15
12
  createdAt: string;
16
13
  updatedAt: string;
14
+ tenantId: string;
15
+ projectId: string;
16
+ agentId: string;
17
17
  sourceSubAgentId: string;
18
18
  targetSubAgentId: string | null;
19
19
  relationType: string | null;
@@ -43,12 +43,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
43
43
  declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
- tenantId: string;
47
- projectId: string;
48
46
  id: string;
49
- agentId: string;
50
47
  createdAt: string;
51
48
  updatedAt: string;
49
+ tenantId: string;
50
+ projectId: string;
51
+ agentId: string;
52
52
  sourceSubAgentId: string;
53
53
  targetSubAgentId: string | null;
54
54
  relationType: string | null;
@@ -56,12 +56,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
56
56
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- tenantId: string;
60
- projectId: string;
61
59
  id: string;
62
- agentId: string;
63
60
  createdAt: string;
64
61
  updatedAt: string;
62
+ tenantId: string;
63
+ projectId: string;
64
+ agentId: string;
65
65
  sourceSubAgentId: string;
66
66
  targetSubAgentId: string | null;
67
67
  relationType: string | null;
@@ -125,12 +125,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
125
125
  }[];
126
126
  }>;
127
127
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
128
- tenantId: string;
129
- projectId: string;
130
128
  id: string;
131
- agentId: string;
132
129
  createdAt: string;
133
130
  updatedAt: string;
131
+ tenantId: string;
132
+ projectId: string;
133
+ agentId: string;
134
134
  sourceSubAgentId: string;
135
135
  targetSubAgentId: string | null;
136
136
  relationType: string | null;
@@ -144,12 +144,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
144
144
  targetSubAgentId?: string;
145
145
  relationType: string;
146
146
  }) => Promise<{
147
- tenantId: string;
148
- projectId: string;
149
147
  id: string;
150
- agentId: string;
151
148
  createdAt: string;
152
149
  updatedAt: string;
150
+ tenantId: string;
151
+ projectId: string;
152
+ agentId: string;
153
153
  sourceSubAgentId: string;
154
154
  targetSubAgentId: string | null;
155
155
  relationType: string | null;
@@ -158,12 +158,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
158
158
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
159
159
  */
160
160
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
161
- tenantId: string;
162
- projectId: string;
163
161
  id: string;
164
- agentId: string;
165
162
  createdAt: string;
166
163
  updatedAt: string;
164
+ tenantId: string;
165
+ projectId: string;
166
+ agentId: string;
167
167
  sourceSubAgentId: string;
168
168
  targetSubAgentId: string | null;
169
169
  relationType: string | null;
@@ -203,19 +203,19 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
203
203
  }> | null;
204
204
  };
205
205
  }) => Promise<{
206
- tenantId: string;
207
- projectId: string;
208
206
  id: string;
209
- agentId: string;
210
207
  createdAt: string;
211
208
  updatedAt: string;
209
+ tenantId: string;
210
+ projectId: string;
211
+ agentId: string;
212
212
  toolId: string;
213
+ subAgentId: string;
213
214
  headers: Record<string, string> | null;
215
+ selectedTools: string[] | null;
214
216
  toolPolicies: Record<string, {
215
217
  needsApproval?: boolean;
216
218
  }> | null;
217
- subAgentId: string;
218
- selectedTools: string[] | null;
219
219
  }>;
220
220
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
221
221
  scopes: AgentScopeConfig;
@@ -247,19 +247,19 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
247
247
  scopes: SubAgentScopeConfig;
248
248
  relationId: string;
249
249
  }) => Promise<{
250
- tenantId: string;
251
- projectId: string;
252
250
  id: string;
253
- agentId: string;
254
251
  createdAt: string;
255
252
  updatedAt: string;
253
+ tenantId: string;
254
+ projectId: string;
255
+ agentId: string;
256
256
  toolId: string;
257
+ subAgentId: string;
257
258
  headers: Record<string, string> | null;
259
+ selectedTools: string[] | null;
258
260
  toolPolicies: Record<string, {
259
261
  needsApproval?: boolean;
260
262
  }> | null;
261
- subAgentId: string;
262
- selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
265
265
  scopes: SubAgentScopeConfig;
@@ -8,14 +8,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
11
  id: string;
14
- agentId: string;
15
12
  createdAt: string;
16
13
  updatedAt: string;
17
- headers: Record<string, string> | null;
14
+ tenantId: string;
15
+ projectId: string;
16
+ agentId: string;
18
17
  subAgentId: string;
18
+ headers: Record<string, string> | null;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -43,27 +43,27 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
43
43
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
- tenantId: string;
47
- projectId: string;
48
46
  id: string;
49
- agentId: string;
50
47
  createdAt: string;
51
48
  updatedAt: string;
52
- headers: Record<string, string> | null;
49
+ tenantId: string;
50
+ projectId: string;
51
+ agentId: string;
53
52
  subAgentId: string;
53
+ headers: Record<string, string> | null;
54
54
  targetAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- tenantId: string;
60
- projectId: string;
61
59
  id: string;
62
- agentId: string;
63
60
  createdAt: string;
64
61
  updatedAt: string;
65
- headers: Record<string, string> | null;
62
+ tenantId: string;
63
+ projectId: string;
64
+ agentId: string;
66
65
  subAgentId: string;
66
+ headers: Record<string, string> | null;
67
67
  targetAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -209,14 +209,14 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
209
209
  headers?: Record<string, string> | null;
210
210
  };
211
211
  }) => Promise<{
212
- tenantId: string;
213
- projectId: string;
214
212
  id: string;
215
- agentId: string;
216
213
  createdAt: string;
217
214
  updatedAt: string;
218
- headers: Record<string, string> | null;
215
+ tenantId: string;
216
+ projectId: string;
217
+ agentId: string;
219
218
  subAgentId: string;
219
+ headers: Record<string, string> | null;
220
220
  targetAgentId: string;
221
221
  }>;
222
222
  /**
@@ -226,14 +226,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
226
226
  scopes: SubAgentScopeConfig;
227
227
  targetAgentId: string;
228
228
  }) => Promise<{
229
- tenantId: string;
230
- projectId: string;
231
229
  id: string;
232
- agentId: string;
233
230
  createdAt: string;
234
231
  updatedAt: string;
235
- headers: Record<string, string> | null;
232
+ tenantId: string;
233
+ projectId: string;
234
+ agentId: string;
236
235
  subAgentId: string;
236
+ headers: Record<string, string> | null;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
239
239
  /**
@@ -247,14 +247,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
247
247
  headers?: Record<string, string> | null;
248
248
  };
249
249
  }) => Promise<{
250
- tenantId: string;
251
- projectId: string;
252
250
  id: string;
253
- agentId: string;
254
251
  createdAt: string;
255
252
  updatedAt: string;
256
- headers: Record<string, string> | null;
253
+ tenantId: string;
254
+ projectId: string;
255
+ agentId: string;
257
256
  subAgentId: string;
257
+ headers: Record<string, string> | null;
258
258
  targetAgentId: string;
259
259
  }>;
260
260
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -8,15 +8,9 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: AgentScopeConfig;
9
9
  subAgentId: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
11
  id: string;
14
12
  name: string;
15
13
  description: string | null;
16
- prompt: string | null;
17
- agentId: string;
18
- createdAt: string;
19
- updatedAt: string;
20
14
  models: {
21
15
  base?: {
22
16
  model?: string | undefined;
@@ -34,20 +28,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
34
28
  stopWhen: {
35
29
  stepCountIs?: number | undefined;
36
30
  } | null;
31
+ createdAt: string;
32
+ updatedAt: string;
33
+ tenantId: string;
34
+ prompt: string | null;
35
+ projectId: string;
36
+ agentId: string;
37
37
  conversationHistoryConfig: ConversationHistoryConfig | null;
38
38
  } | undefined>;
39
39
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
41
41
  }) => Promise<{
42
- tenantId: string;
43
- projectId: string;
44
42
  id: string;
45
43
  name: string;
46
44
  description: string | null;
47
- prompt: string | null;
48
- agentId: string;
49
- createdAt: string;
50
- updatedAt: string;
51
45
  models: {
52
46
  base?: {
53
47
  model?: string | undefined;
@@ -65,6 +59,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
65
59
  stopWhen: {
66
60
  stepCountIs?: number | undefined;
67
61
  } | null;
62
+ createdAt: string;
63
+ updatedAt: string;
64
+ tenantId: string;
65
+ prompt: string | null;
66
+ projectId: string;
67
+ agentId: string;
68
68
  conversationHistoryConfig: ConversationHistoryConfig | null;
69
69
  }[]>;
70
70
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -108,15 +108,9 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
108
108
  };
109
109
  }>;
110
110
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
111
- tenantId: string;
112
- projectId: string;
113
111
  id: string;
114
112
  name: string;
115
113
  description: string | null;
116
- prompt: string | null;
117
- agentId: string;
118
- createdAt: string;
119
- updatedAt: string;
120
114
  models: {
121
115
  base?: {
122
116
  model?: string | undefined;
@@ -134,6 +128,12 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
134
128
  stopWhen: {
135
129
  stepCountIs?: number | undefined;
136
130
  } | null;
131
+ createdAt: string;
132
+ updatedAt: string;
133
+ tenantId: string;
134
+ prompt: string | null;
135
+ projectId: string;
136
+ agentId: string;
137
137
  conversationHistoryConfig: ConversationHistoryConfig | null;
138
138
  }>;
139
139
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -12,20 +12,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
12
12
  scopes: ProjectScopeConfig;
13
13
  toolId: string;
14
14
  }) => Promise<{
15
- tenantId: string;
16
- projectId: string;
17
15
  id: string;
18
16
  name: string;
19
17
  description: string | null;
18
+ createdAt: string;
19
+ updatedAt: string;
20
+ tenantId: string;
21
+ projectId: string;
22
+ credentialReferenceId: string | null;
20
23
  config: {
21
24
  type: "mcp";
22
25
  mcp: ToolMcpConfig;
23
26
  };
24
- credentialReferenceId: string | null;
25
- createdAt: string;
26
- updatedAt: string;
27
- headers: Record<string, string> | null;
28
27
  credentialScope: string;
28
+ headers: Record<string, string> | null;
29
29
  imageUrl: string | null;
30
30
  capabilities: ToolServerCapabilities | null;
31
31
  lastError: string | null;
@@ -68,20 +68,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
68
68
  };
69
69
  }>;
70
70
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
71
- tenantId: string;
72
- projectId: string;
73
71
  id: string;
74
72
  name: string;
75
73
  description: string | null;
74
+ createdAt: string;
75
+ updatedAt: string;
76
+ tenantId: string;
77
+ projectId: string;
78
+ credentialReferenceId: string | null;
76
79
  config: {
77
80
  type: "mcp";
78
81
  mcp: ToolMcpConfig;
79
82
  };
80
- credentialReferenceId: string | null;
81
- createdAt: string;
82
- updatedAt: string;
83
- headers: Record<string, string> | null;
84
83
  credentialScope: string;
84
+ headers: Record<string, string> | null;
85
85
  imageUrl: string | null;
86
86
  capabilities: ToolServerCapabilities | null;
87
87
  lastError: string | null;
@@ -123,38 +123,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
123
123
  needsApproval?: boolean;
124
124
  }> | null;
125
125
  }) => Promise<{
126
- tenantId: string;
127
- projectId: string;
128
126
  id: string;
129
- agentId: string;
130
127
  createdAt: string;
131
128
  updatedAt: string;
129
+ tenantId: string;
130
+ projectId: string;
131
+ agentId: string;
132
132
  toolId: string;
133
+ subAgentId: string;
133
134
  headers: Record<string, string> | null;
135
+ selectedTools: string[] | null;
134
136
  toolPolicies: Record<string, {
135
137
  needsApproval?: boolean;
136
138
  }> | null;
137
- subAgentId: string;
138
- selectedTools: string[] | null;
139
139
  }>;
140
140
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
142
142
  subAgentId: string;
143
143
  toolId: string;
144
144
  }) => Promise<{
145
- tenantId: string;
146
- projectId: string;
147
145
  id: string;
148
- agentId: string;
149
146
  createdAt: string;
150
147
  updatedAt: string;
148
+ tenantId: string;
149
+ projectId: string;
150
+ agentId: string;
151
151
  toolId: string;
152
+ subAgentId: string;
152
153
  headers: Record<string, string> | null;
154
+ selectedTools: string[] | null;
153
155
  toolPolicies: Record<string, {
154
156
  needsApproval?: boolean;
155
157
  }> | null;
156
- subAgentId: string;
157
- selectedTools: string[] | null;
158
158
  }>;
159
159
  /**
160
160
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -170,19 +170,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
170
170
  }> | null;
171
171
  relationId?: string;
172
172
  }) => Promise<{
173
- tenantId: string;
174
- projectId: string;
175
173
  id: string;
176
- agentId: string;
177
174
  createdAt: string;
178
175
  updatedAt: string;
176
+ tenantId: string;
177
+ projectId: string;
178
+ agentId: string;
179
179
  toolId: string;
180
+ subAgentId: string;
180
181
  headers: Record<string, string> | null;
182
+ selectedTools: string[] | null;
181
183
  toolPolicies: Record<string, {
182
184
  needsApproval?: boolean;
183
185
  }> | null;
184
- subAgentId: string;
185
- selectedTools: string[] | null;
186
186
  }>;
187
187
  /**
188
188
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -190,20 +190,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
190
190
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
191
191
  data: ToolInsert;
192
192
  }) => Promise<{
193
- tenantId: string;
194
- projectId: string;
195
193
  id: string;
196
194
  name: string;
197
195
  description: string | null;
196
+ createdAt: string;
197
+ updatedAt: string;
198
+ tenantId: string;
199
+ projectId: string;
200
+ credentialReferenceId: string | null;
198
201
  config: {
199
202
  type: "mcp";
200
203
  mcp: ToolMcpConfig;
201
204
  };
202
- credentialReferenceId: string | null;
203
- createdAt: string;
204
- updatedAt: string;
205
- headers: Record<string, string> | null;
206
205
  credentialScope: string;
206
+ headers: Record<string, string> | null;
207
207
  imageUrl: string | null;
208
208
  capabilities: ToolServerCapabilities | null;
209
209
  lastError: string | null;