@inkeep/agents-core 0.77.1 → 0.78.0

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 (39) hide show
  1. package/dist/auth/auth-schema.d.ts +163 -163
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/permissions.d.ts +9 -9
  4. package/dist/constants/models.d.ts +3 -0
  5. package/dist/constants/models.js +3 -0
  6. package/dist/data-access/index.d.ts +4 -4
  7. package/dist/data-access/index.js +4 -4
  8. package/dist/data-access/manage/agents.d.ts +16 -16
  9. package/dist/data-access/manage/artifactComponents.d.ts +14 -14
  10. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  11. package/dist/data-access/manage/dataComponents.d.ts +8 -8
  12. package/dist/data-access/manage/functionTools.d.ts +18 -18
  13. package/dist/data-access/manage/skills.d.ts +13 -13
  14. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  15. package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
  16. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  17. package/dist/data-access/manage/subAgents.d.ts +12 -12
  18. package/dist/data-access/manage/tools.d.ts +30 -30
  19. package/dist/data-access/manage/triggers.d.ts +2 -2
  20. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  21. package/dist/data-access/runtime/apps.d.ts +19 -19
  22. package/dist/data-access/runtime/conversations.d.ts +49 -30
  23. package/dist/data-access/runtime/conversations.js +16 -1
  24. package/dist/data-access/runtime/evalRuns.d.ts +5 -1
  25. package/dist/data-access/runtime/evalRuns.js +4 -1
  26. package/dist/data-access/runtime/events.d.ts +8 -8
  27. package/dist/data-access/runtime/feedback.d.ts +8 -8
  28. package/dist/data-access/runtime/messages.d.ts +48 -19
  29. package/dist/data-access/runtime/messages.js +30 -1
  30. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  31. package/dist/data-access/runtime/tasks.d.ts +4 -4
  32. package/dist/db/manage/manage-schema.d.ts +379 -379
  33. package/dist/db/runtime/runtime-schema.d.ts +417 -417
  34. package/dist/index.d.ts +4 -4
  35. package/dist/index.js +4 -4
  36. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  37. package/dist/validation/schemas/skills.d.ts +47 -47
  38. package/dist/validation/schemas.d.ts +2173 -2173
  39. package/package.json +1 -1
@@ -15,15 +15,15 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
15
15
  scopes: ProjectScopeConfig;
16
16
  skillId: string;
17
17
  }) => Promise<{
18
+ name: string;
18
19
  description: string;
19
- tenantId: string;
20
- projectId: string;
21
20
  id: string;
22
- name: string;
23
- content: string;
24
21
  metadata: Record<string, string> | null;
25
22
  createdAt: string;
26
23
  updatedAt: string;
24
+ projectId: string;
25
+ tenantId: string;
26
+ content: string;
27
27
  } | null>;
28
28
  declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
29
29
  scopes: ProjectScopeConfig;
@@ -110,15 +110,15 @@ interface WithTenantIdProjectId {
110
110
  }
111
111
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
112
112
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
113
+ name: string;
113
114
  description: string;
114
- tenantId: string;
115
- projectId: string;
116
115
  id: string;
117
- name: string;
118
- content: string;
119
116
  metadata: Record<string, string> | null;
120
117
  createdAt: string;
121
118
  updatedAt: string;
119
+ projectId: string;
120
+ tenantId: string;
121
+ content: string;
122
122
  }>;
123
123
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
124
124
  scopes: ProjectScopeConfig;
@@ -139,16 +139,16 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
139
139
  index: number;
140
140
  alwaysLoaded?: boolean;
141
141
  }) => Promise<{
142
- tenantId: string;
143
- projectId: string;
144
- agentId: string;
145
- subAgentId: string;
146
142
  id: string;
143
+ agentId: string;
147
144
  createdAt: string;
148
145
  updatedAt: string;
146
+ projectId: string;
147
+ tenantId: string;
148
+ subAgentId: string;
149
+ skillId: string;
149
150
  index: number;
150
151
  alwaysLoaded: boolean;
151
- skillId: string;
152
152
  }>;
153
153
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
154
154
  scopes: AgentScopeConfig;
@@ -9,13 +9,13 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
14
- agentId: string;
15
- subAgentId: string;
16
12
  id: string;
13
+ agentId: string;
17
14
  createdAt: string;
18
15
  updatedAt: string;
16
+ projectId: string;
17
+ tenantId: string;
18
+ subAgentId: string;
19
19
  headers: Record<string, string> | null;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
@@ -44,26 +44,26 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
44
44
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- tenantId: string;
48
- projectId: string;
49
- agentId: string;
50
- subAgentId: string;
51
47
  id: string;
48
+ agentId: string;
52
49
  createdAt: string;
53
50
  updatedAt: string;
51
+ projectId: string;
52
+ tenantId: string;
53
+ subAgentId: string;
54
54
  headers: Record<string, string> | null;
55
55
  externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- tenantId: string;
61
- projectId: string;
62
- agentId: string;
63
- subAgentId: string;
64
60
  id: string;
61
+ agentId: string;
65
62
  createdAt: string;
66
63
  updatedAt: string;
64
+ projectId: string;
65
+ tenantId: string;
66
+ subAgentId: string;
67
67
  headers: Record<string, string> | null;
68
68
  externalAgentId: string;
69
69
  }[]>;
@@ -186,13 +186,13 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
186
186
  headers?: Record<string, string> | null;
187
187
  };
188
188
  }) => Promise<{
189
- tenantId: string;
190
- projectId: string;
191
- agentId: string;
192
- subAgentId: string;
193
189
  id: string;
190
+ agentId: string;
194
191
  createdAt: string;
195
192
  updatedAt: string;
193
+ projectId: string;
194
+ tenantId: string;
195
+ subAgentId: string;
196
196
  headers: Record<string, string> | null;
197
197
  externalAgentId: string;
198
198
  }>;
@@ -203,13 +203,13 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
203
203
  scopes: SubAgentScopeConfig;
204
204
  externalAgentId: string;
205
205
  }) => Promise<{
206
- tenantId: string;
207
- projectId: string;
208
- agentId: string;
209
- subAgentId: string;
210
206
  id: string;
207
+ agentId: string;
211
208
  createdAt: string;
212
209
  updatedAt: string;
210
+ projectId: string;
211
+ tenantId: string;
212
+ subAgentId: string;
213
213
  headers: Record<string, string> | null;
214
214
  externalAgentId: string;
215
215
  } | undefined>;
@@ -224,13 +224,13 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
224
224
  headers?: Record<string, string> | null;
225
225
  };
226
226
  }) => Promise<{
227
- tenantId: string;
228
- projectId: string;
229
- agentId: string;
230
- subAgentId: string;
231
227
  id: string;
228
+ agentId: string;
232
229
  createdAt: string;
233
230
  updatedAt: string;
231
+ projectId: string;
232
+ tenantId: string;
233
+ subAgentId: string;
234
234
  headers: Record<string, string> | null;
235
235
  externalAgentId: string;
236
236
  }>;
@@ -9,12 +9,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
9
9
  scopes: AgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
14
- agentId: string;
15
12
  id: string;
13
+ agentId: string;
16
14
  createdAt: string;
17
15
  updatedAt: string;
16
+ projectId: string;
17
+ tenantId: string;
18
18
  relationType: string | null;
19
19
  sourceSubAgentId: string;
20
20
  targetSubAgentId: string | null;
@@ -44,12 +44,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- tenantId: string;
48
- projectId: string;
49
- agentId: string;
50
47
  id: string;
48
+ agentId: string;
51
49
  createdAt: string;
52
50
  updatedAt: string;
51
+ projectId: string;
52
+ tenantId: string;
53
53
  relationType: string | null;
54
54
  sourceSubAgentId: string;
55
55
  targetSubAgentId: string | null;
@@ -57,12 +57,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- tenantId: string;
61
- projectId: string;
62
- agentId: string;
63
60
  id: string;
61
+ agentId: string;
64
62
  createdAt: string;
65
63
  updatedAt: string;
64
+ projectId: string;
65
+ tenantId: string;
66
66
  relationType: string | null;
67
67
  sourceSubAgentId: string;
68
68
  targetSubAgentId: string | null;
@@ -126,12 +126,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
126
126
  }[];
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
- tenantId: string;
130
- projectId: string;
131
- agentId: string;
132
129
  id: string;
130
+ agentId: string;
133
131
  createdAt: string;
134
132
  updatedAt: string;
133
+ projectId: string;
134
+ tenantId: string;
135
135
  relationType: string | null;
136
136
  sourceSubAgentId: string;
137
137
  targetSubAgentId: string | null;
@@ -145,12 +145,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
145
145
  targetSubAgentId?: string;
146
146
  relationType: string;
147
147
  }) => Promise<{
148
- tenantId: string;
149
- projectId: string;
150
- agentId: string;
151
148
  id: string;
149
+ agentId: string;
152
150
  createdAt: string;
153
151
  updatedAt: string;
152
+ projectId: string;
153
+ tenantId: string;
154
154
  relationType: string | null;
155
155
  sourceSubAgentId: string;
156
156
  targetSubAgentId: string | null;
@@ -159,12 +159,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
159
159
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
160
160
  */
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
- tenantId: string;
163
- projectId: string;
164
- agentId: string;
165
162
  id: string;
163
+ agentId: string;
166
164
  createdAt: string;
167
165
  updatedAt: string;
166
+ projectId: string;
167
+ tenantId: string;
168
168
  relationType: string | null;
169
169
  sourceSubAgentId: string;
170
170
  targetSubAgentId: string | null;
@@ -204,19 +204,19 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
- tenantId: string;
208
- projectId: string;
209
- agentId: string;
210
- subAgentId: string;
211
- toolId: string;
212
207
  id: string;
208
+ agentId: string;
213
209
  createdAt: string;
214
210
  updatedAt: string;
211
+ projectId: string;
212
+ tenantId: string;
213
+ subAgentId: string;
214
+ toolId: string;
215
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;
@@ -248,19 +248,19 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  scopes: SubAgentScopeConfig;
249
249
  relationId: string;
250
250
  }) => Promise<{
251
- tenantId: string;
252
- projectId: string;
253
- agentId: string;
254
- subAgentId: string;
255
- toolId: string;
256
251
  id: string;
252
+ agentId: string;
257
253
  createdAt: string;
258
254
  updatedAt: string;
255
+ projectId: string;
256
+ tenantId: string;
257
+ subAgentId: string;
258
+ toolId: string;
259
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;
@@ -9,13 +9,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
14
- agentId: string;
15
- subAgentId: string;
16
12
  id: string;
13
+ agentId: string;
17
14
  createdAt: string;
18
15
  updatedAt: string;
16
+ projectId: string;
17
+ tenantId: string;
18
+ subAgentId: string;
19
19
  headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
@@ -44,26 +44,26 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
44
44
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- tenantId: string;
48
- projectId: string;
49
- agentId: string;
50
- subAgentId: string;
51
47
  id: string;
48
+ agentId: string;
52
49
  createdAt: string;
53
50
  updatedAt: string;
51
+ projectId: string;
52
+ tenantId: string;
53
+ subAgentId: string;
54
54
  headers: Record<string, string> | null;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- tenantId: string;
61
- projectId: string;
62
- agentId: string;
63
- subAgentId: string;
64
60
  id: string;
61
+ agentId: string;
65
62
  createdAt: string;
66
63
  updatedAt: string;
64
+ projectId: string;
65
+ tenantId: string;
66
+ subAgentId: string;
67
67
  headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -222,13 +222,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
222
222
  headers?: Record<string, string> | null;
223
223
  };
224
224
  }) => Promise<{
225
- tenantId: string;
226
- projectId: string;
227
- agentId: string;
228
- subAgentId: string;
229
225
  id: string;
226
+ agentId: string;
230
227
  createdAt: string;
231
228
  updatedAt: string;
229
+ projectId: string;
230
+ tenantId: string;
231
+ subAgentId: string;
232
232
  headers: Record<string, string> | null;
233
233
  targetAgentId: string;
234
234
  }>;
@@ -239,13 +239,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
239
239
  scopes: SubAgentScopeConfig;
240
240
  targetAgentId: string;
241
241
  }) => Promise<{
242
- tenantId: string;
243
- projectId: string;
244
- agentId: string;
245
- subAgentId: string;
246
242
  id: string;
243
+ agentId: string;
247
244
  createdAt: string;
248
245
  updatedAt: string;
246
+ projectId: string;
247
+ tenantId: string;
248
+ subAgentId: string;
249
249
  headers: Record<string, string> | null;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
@@ -260,13 +260,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
260
260
  headers?: Record<string, string> | null;
261
261
  };
262
262
  }) => Promise<{
263
- tenantId: string;
264
- projectId: string;
265
- agentId: string;
266
- subAgentId: string;
267
263
  id: string;
264
+ agentId: string;
268
265
  createdAt: string;
269
266
  updatedAt: string;
267
+ projectId: string;
268
+ tenantId: string;
269
+ subAgentId: string;
270
270
  headers: Record<string, string> | null;
271
271
  targetAgentId: string;
272
272
  }>;
@@ -9,14 +9,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
+ name: string;
12
13
  description: string | null;
13
- tenantId: string;
14
- projectId: string;
15
- agentId: string;
16
14
  id: string;
17
- name: string;
15
+ agentId: string;
18
16
  createdAt: string;
19
17
  updatedAt: string;
18
+ projectId: string;
19
+ tenantId: string;
20
20
  models: {
21
21
  base?: {
22
22
  model?: string | undefined;
@@ -55,14 +55,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
55
55
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
57
57
  }) => Promise<{
58
+ name: string;
58
59
  description: string | null;
59
- tenantId: string;
60
- projectId: string;
61
- agentId: string;
62
60
  id: string;
63
- name: string;
61
+ agentId: string;
64
62
  createdAt: string;
65
63
  updatedAt: string;
64
+ projectId: string;
65
+ tenantId: string;
66
66
  models: {
67
67
  base?: {
68
68
  model?: string | undefined;
@@ -154,14 +154,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
154
154
  };
155
155
  }>;
156
156
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
157
+ name: string;
157
158
  description: string | null;
158
- tenantId: string;
159
- projectId: string;
160
- agentId: string;
161
159
  id: string;
162
- name: string;
160
+ agentId: string;
163
161
  createdAt: string;
164
162
  updatedAt: string;
163
+ projectId: string;
164
+ tenantId: string;
165
165
  models: {
166
166
  base?: {
167
167
  model?: string | undefined;
@@ -20,20 +20,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
+ name: string;
23
24
  description: string | null;
24
- tenantId: string;
25
- projectId: string;
26
25
  id: string;
27
- name: string;
28
26
  createdAt: string;
29
27
  updatedAt: string;
30
- headers: Record<string, string> | null;
28
+ projectId: string;
29
+ tenantId: string;
31
30
  config: {
32
31
  type: "mcp";
33
32
  mcp: ToolMcpConfig;
34
33
  };
35
34
  credentialReferenceId: string | null;
36
35
  credentialScope: string;
36
+ headers: Record<string, string> | null;
37
37
  imageUrl: string | null;
38
38
  capabilities: ToolServerCapabilities | null;
39
39
  lastError: string | null;
@@ -78,20 +78,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
+ name: string;
81
82
  description: string | null;
82
- tenantId: string;
83
- projectId: string;
84
83
  id: string;
85
- name: string;
86
84
  createdAt: string;
87
85
  updatedAt: string;
88
- headers: Record<string, string> | null;
86
+ projectId: string;
87
+ tenantId: string;
89
88
  config: {
90
89
  type: "mcp";
91
90
  mcp: ToolMcpConfig;
92
91
  };
93
92
  credentialReferenceId: string | null;
94
93
  credentialScope: string;
94
+ headers: Record<string, string> | null;
95
95
  imageUrl: string | null;
96
96
  capabilities: ToolServerCapabilities | null;
97
97
  lastError: string | null;
@@ -135,38 +135,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
135
135
  needsApproval?: boolean;
136
136
  }> | null;
137
137
  }) => Promise<{
138
- tenantId: string;
139
- projectId: string;
140
- agentId: string;
141
- subAgentId: string;
142
- toolId: string;
143
138
  id: string;
139
+ agentId: string;
144
140
  createdAt: string;
145
141
  updatedAt: string;
142
+ projectId: string;
143
+ tenantId: string;
144
+ subAgentId: string;
145
+ toolId: string;
146
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;
154
154
  subAgentId: string;
155
155
  toolId: string;
156
156
  }) => Promise<{
157
- tenantId: string;
158
- projectId: string;
159
- agentId: string;
160
- subAgentId: string;
161
- toolId: string;
162
157
  id: string;
158
+ agentId: string;
163
159
  createdAt: string;
164
160
  updatedAt: string;
161
+ projectId: string;
162
+ tenantId: string;
163
+ subAgentId: string;
164
+ toolId: string;
165
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)
@@ -182,19 +182,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
182
182
  }> | null;
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
- tenantId: string;
186
- projectId: string;
187
- agentId: string;
188
- subAgentId: string;
189
- toolId: string;
190
185
  id: string;
186
+ agentId: string;
191
187
  createdAt: string;
192
188
  updatedAt: string;
189
+ projectId: string;
190
+ tenantId: string;
191
+ subAgentId: string;
192
+ toolId: string;
193
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)
@@ -202,20 +202,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
+ name: string;
205
206
  description: string | null;
206
- tenantId: string;
207
- projectId: string;
208
207
  id: string;
209
- name: string;
210
208
  createdAt: string;
211
209
  updatedAt: string;
212
- headers: Record<string, string> | null;
210
+ projectId: string;
211
+ tenantId: string;
213
212
  config: {
214
213
  type: "mcp";
215
214
  mcp: ToolMcpConfig;
216
215
  };
217
216
  credentialReferenceId: string | null;
218
217
  credentialScope: string;
218
+ headers: Record<string, string> | null;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | null;
221
221
  lastError: string | null;
@@ -131,10 +131,10 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
131
131
  triggerId: string;
132
132
  userId: string;
133
133
  }) => Promise<{
134
- tenantId: string;
135
- projectId: string;
136
134
  agentId: string;
137
135
  createdAt: string;
136
+ projectId: string;
137
+ tenantId: string;
138
138
  userId: string;
139
139
  triggerId: string;
140
140
  }>;
@@ -8,13 +8,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
- agentId: string;
14
- id: string;
15
11
  name: string | null;
12
+ id: string;
13
+ agentId: string;
16
14
  createdAt: string;
17
15
  updatedAt: string;
16
+ projectId: string;
17
+ tenantId: string;
18
18
  expiresAt: string | null;
19
19
  publicId: string;
20
20
  keyHash: string;
@@ -22,13 +22,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
22
22
  lastUsedAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
- tenantId: string;
26
- projectId: string;
27
- agentId: string;
28
- id: string;
29
25
  name: string | null;
26
+ id: string;
27
+ agentId: string;
30
28
  createdAt: string;
31
29
  updatedAt: string;
30
+ projectId: string;
31
+ tenantId: string;
32
32
  expiresAt: string | null;
33
33
  publicId: string;
34
34
  keyHash: string;
@@ -39,13 +39,13 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
- tenantId: string;
43
- projectId: string;
44
- agentId: string;
45
- id: string;
46
42
  name: string | null;
43
+ id: string;
44
+ agentId: string;
47
45
  createdAt: string;
48
46
  updatedAt: string;
47
+ projectId: string;
48
+ tenantId: string;
49
49
  expiresAt: string | null;
50
50
  publicId: string;
51
51
  keyHash: string;
@@ -66,13 +66,13 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  };
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
- tenantId: string;
70
- projectId: string;
71
- agentId: string;
72
- id: string;
73
69
  name: string | null;
70
+ id: string;
71
+ agentId: string;
74
72
  createdAt: string;
75
73
  updatedAt: string;
74
+ projectId: string;
75
+ tenantId: string;
76
76
  expiresAt: string | null;
77
77
  publicId: string;
78
78
  keyHash: string;