@inkeep/agents-core 0.0.0-dev-20260303041823 → 0.0.0-dev-20260303160903

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/auth-schema.d.ts +107 -107
  2. package/dist/auth/auth-validation-schemas.d.ts +152 -152
  3. package/dist/auth/auth.d.ts +28 -28
  4. package/dist/auth/auth.js +2 -2
  5. package/dist/auth/permissions.d.ts +13 -13
  6. package/dist/client-exports.d.ts +5 -4
  7. package/dist/client-exports.js +2 -2
  8. package/dist/data-access/index.d.ts +3 -3
  9. package/dist/data-access/index.js +3 -3
  10. package/dist/data-access/manage/agents.d.ts +47 -47
  11. package/dist/data-access/manage/agents.js +25 -11
  12. package/dist/data-access/manage/artifactComponents.d.ts +16 -16
  13. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  14. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  15. package/dist/data-access/manage/functionTools.d.ts +16 -16
  16. package/dist/data-access/manage/skills.d.ts +13 -13
  17. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  18. package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
  19. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  20. package/dist/data-access/manage/subAgents.d.ts +21 -21
  21. package/dist/data-access/manage/tools.d.ts +21 -21
  22. package/dist/data-access/manage/triggerCleanup.d.ts +12 -0
  23. package/dist/data-access/manage/triggerCleanup.js +51 -0
  24. package/dist/data-access/manage/triggers.d.ts +13 -2
  25. package/dist/data-access/manage/triggers.js +8 -1
  26. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  27. package/dist/data-access/runtime/conversations.d.ts +12 -12
  28. package/dist/data-access/runtime/messages.d.ts +24 -24
  29. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  30. package/dist/data-access/runtime/tasks.d.ts +4 -4
  31. package/dist/data-access/runtime/users.d.ts +5 -1
  32. package/dist/data-access/runtime/users.js +14 -1
  33. package/dist/db/manage/manage-schema.d.ts +487 -449
  34. package/dist/db/manage/manage-schema.js +2 -0
  35. package/dist/db/runtime/runtime-schema.d.ts +296 -296
  36. package/dist/index.d.ts +4 -4
  37. package/dist/index.js +4 -4
  38. package/dist/middleware/no-auth.d.ts +2 -2
  39. package/dist/utils/error.d.ts +51 -51
  40. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  41. package/dist/validation/index.d.ts +2 -2
  42. package/dist/validation/index.js +2 -2
  43. package/dist/validation/schemas.d.ts +2157 -1988
  44. package/dist/validation/schemas.js +18 -5
  45. package/drizzle/manage/0012_petite_weapon_omega.sql +2 -0
  46. package/drizzle/manage/meta/0012_snapshot.json +3697 -0
  47. package/drizzle/manage/meta/_journal.json +7 -0
  48. package/package.json +1 -1
  49. package/dist/auth/cleanup.d.ts +0 -12
  50. package/dist/auth/cleanup.js +0 -43
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
- name: string;
57
56
  description: string | null;
57
+ tenantId: string;
58
+ projectId: string;
59
+ agentId: string;
58
60
  id: string;
61
+ name: string;
59
62
  createdAt: string;
60
63
  updatedAt: string;
61
- projectId: string;
62
- tenantId: 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
- name: string;
99
98
  description: string | null;
99
+ tenantId: string;
100
+ projectId: string;
101
+ agentId: string;
100
102
  id: string;
103
+ name: string;
101
104
  createdAt: string;
102
105
  updatedAt: string;
103
- projectId: string;
104
- tenantId: string;
105
- agentId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -161,17 +161,17 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
161
161
  needsApproval?: boolean;
162
162
  }> | null;
163
163
  }) => Promise<{
164
+ tenantId: string;
165
+ projectId: string;
166
+ agentId: string;
164
167
  subAgentId: string;
165
168
  id: string;
166
169
  createdAt: string;
167
170
  updatedAt: string;
168
- projectId: string;
169
- tenantId: string;
170
- agentId: string;
171
- functionToolId: string;
172
171
  toolPolicies: Record<string, {
173
172
  needsApproval?: boolean;
174
173
  }> | null;
174
+ functionToolId: string;
175
175
  }>;
176
176
  /**
177
177
  * Update an agent-function tool relation
@@ -226,17 +226,17 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
226
226
  needsApproval?: boolean;
227
227
  }> | null;
228
228
  }) => Promise<{
229
+ tenantId: string;
230
+ projectId: string;
231
+ agentId: string;
229
232
  subAgentId: string;
230
233
  id: string;
231
234
  createdAt: string;
232
235
  updatedAt: string;
233
- projectId: string;
234
- tenantId: string;
235
- agentId: string;
236
- functionToolId: string;
237
236
  toolPolicies: Record<string, {
238
237
  needsApproval?: boolean;
239
238
  }> | null;
239
+ functionToolId: string;
240
240
  }>;
241
241
  //#endregion
242
242
  export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
@@ -8,13 +8,13 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  skillId: string;
10
10
  }) => Promise<{
11
- name: string;
12
11
  description: string;
12
+ tenantId: string;
13
+ projectId: string;
13
14
  id: string;
15
+ name: string;
14
16
  createdAt: string;
15
17
  updatedAt: string;
16
- projectId: string;
17
- tenantId: string;
18
18
  metadata: Record<string, string> | null;
19
19
  content: string;
20
20
  } | null>;
@@ -41,24 +41,24 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
41
41
  };
42
42
  }>;
43
43
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
44
- name: string;
45
44
  description: string;
45
+ tenantId: string;
46
+ projectId: string;
46
47
  id: string;
48
+ name: string;
47
49
  createdAt: string;
48
50
  updatedAt: string;
49
- projectId: string;
50
- tenantId: string;
51
51
  metadata: Record<string, string> | null;
52
52
  content: string;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
- name: string;
56
55
  description: string;
56
+ tenantId: string;
57
+ projectId: string;
57
58
  id: string;
59
+ name: string;
58
60
  createdAt: string;
59
61
  updatedAt: string;
60
- projectId: string;
61
- tenantId: string;
62
62
  metadata: Record<string, string> | null;
63
63
  content: string;
64
64
  }>;
@@ -91,16 +91,16 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
91
91
  index: number;
92
92
  alwaysLoaded?: boolean;
93
93
  }) => Promise<{
94
+ tenantId: string;
95
+ projectId: string;
96
+ agentId: string;
94
97
  subAgentId: string;
95
98
  id: string;
96
99
  createdAt: string;
97
100
  updatedAt: string;
98
- projectId: string;
99
- tenantId: string;
100
- agentId: string;
101
- skillId: string;
102
101
  index: number;
103
102
  alwaysLoaded: boolean;
103
+ skillId: string;
104
104
  }>;
105
105
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
106
106
  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;
12
15
  subAgentId: string;
13
16
  id: string;
14
17
  createdAt: string;
15
18
  updatedAt: string;
16
- projectId: string;
17
- tenantId: string;
18
- agentId: 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;
47
50
  subAgentId: string;
48
51
  id: string;
49
52
  createdAt: string;
50
53
  updatedAt: string;
51
- projectId: string;
52
- tenantId: string;
53
- agentId: 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;
60
63
  subAgentId: string;
61
64
  id: string;
62
65
  createdAt: string;
63
66
  updatedAt: string;
64
- projectId: string;
65
- tenantId: string;
66
- agentId: string;
67
67
  headers: Record<string, string> | null;
68
68
  externalAgentId: string;
69
69
  }[]>;
@@ -180,13 +180,13 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
180
180
  headers?: Record<string, string> | null;
181
181
  };
182
182
  }) => Promise<{
183
+ tenantId: string;
184
+ projectId: string;
185
+ agentId: string;
183
186
  subAgentId: string;
184
187
  id: string;
185
188
  createdAt: string;
186
189
  updatedAt: string;
187
- projectId: string;
188
- tenantId: string;
189
- agentId: string;
190
190
  headers: Record<string, string> | null;
191
191
  externalAgentId: string;
192
192
  }>;
@@ -197,13 +197,13 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
197
197
  scopes: SubAgentScopeConfig;
198
198
  externalAgentId: string;
199
199
  }) => Promise<{
200
+ tenantId: string;
201
+ projectId: string;
202
+ agentId: string;
200
203
  subAgentId: string;
201
204
  id: string;
202
205
  createdAt: string;
203
206
  updatedAt: string;
204
- projectId: string;
205
- tenantId: string;
206
- agentId: string;
207
207
  headers: Record<string, string> | null;
208
208
  externalAgentId: string;
209
209
  } | undefined>;
@@ -218,13 +218,13 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
218
218
  headers?: Record<string, string> | null;
219
219
  };
220
220
  }) => Promise<{
221
+ tenantId: string;
222
+ projectId: string;
223
+ agentId: string;
221
224
  subAgentId: string;
222
225
  id: string;
223
226
  createdAt: string;
224
227
  updatedAt: string;
225
- projectId: string;
226
- tenantId: string;
227
- agentId: string;
228
228
  headers: Record<string, string> | null;
229
229
  externalAgentId: string;
230
230
  }>;
@@ -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;
12
15
  id: string;
13
16
  createdAt: string;
14
17
  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;
@@ -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;
47
50
  id: string;
48
51
  createdAt: string;
49
52
  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;
@@ -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;
60
63
  id: string;
61
64
  createdAt: string;
62
65
  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;
@@ -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;
129
132
  id: string;
130
133
  createdAt: string;
131
134
  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;
@@ -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;
148
151
  id: string;
149
152
  createdAt: string;
150
153
  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;
@@ -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;
162
165
  id: string;
163
166
  createdAt: string;
164
167
  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;
@@ -204,15 +204,15 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
+ tenantId: string;
208
+ projectId: string;
209
+ agentId: string;
207
210
  subAgentId: string;
208
211
  id: string;
209
212
  createdAt: string;
210
213
  updatedAt: string;
211
- projectId: string;
212
- tenantId: string;
213
- agentId: string;
214
- headers: Record<string, string> | null;
215
214
  toolId: string;
215
+ headers: Record<string, string> | null;
216
216
  toolPolicies: Record<string, {
217
217
  needsApproval?: boolean;
218
218
  }> | null;
@@ -248,15 +248,15 @@ 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;
251
254
  subAgentId: string;
252
255
  id: string;
253
256
  createdAt: string;
254
257
  updatedAt: string;
255
- projectId: string;
256
- tenantId: string;
257
- agentId: string;
258
- headers: Record<string, string> | null;
259
258
  toolId: string;
259
+ headers: Record<string, string> | null;
260
260
  toolPolicies: Record<string, {
261
261
  needsApproval?: boolean;
262
262
  }> | null;
@@ -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;
12
15
  subAgentId: string;
13
16
  id: string;
14
17
  createdAt: string;
15
18
  updatedAt: string;
16
- projectId: string;
17
- tenantId: string;
18
- agentId: 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;
47
50
  subAgentId: string;
48
51
  id: string;
49
52
  createdAt: string;
50
53
  updatedAt: string;
51
- projectId: string;
52
- tenantId: string;
53
- agentId: 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;
60
63
  subAgentId: string;
61
64
  id: string;
62
65
  createdAt: string;
63
66
  updatedAt: string;
64
- projectId: string;
65
- tenantId: string;
66
- agentId: string;
67
67
  headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -210,13 +210,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
210
210
  headers?: Record<string, string> | null;
211
211
  };
212
212
  }) => Promise<{
213
+ tenantId: string;
214
+ projectId: string;
215
+ agentId: string;
213
216
  subAgentId: string;
214
217
  id: string;
215
218
  createdAt: string;
216
219
  updatedAt: string;
217
- projectId: string;
218
- tenantId: string;
219
- agentId: string;
220
220
  headers: Record<string, string> | null;
221
221
  targetAgentId: string;
222
222
  }>;
@@ -227,13 +227,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
227
227
  scopes: SubAgentScopeConfig;
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
+ tenantId: string;
231
+ projectId: string;
232
+ agentId: string;
230
233
  subAgentId: string;
231
234
  id: string;
232
235
  createdAt: string;
233
236
  updatedAt: string;
234
- projectId: string;
235
- tenantId: string;
236
- agentId: string;
237
237
  headers: Record<string, string> | null;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
@@ -248,13 +248,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
248
248
  headers?: Record<string, string> | null;
249
249
  };
250
250
  }) => Promise<{
251
+ tenantId: string;
252
+ projectId: string;
253
+ agentId: string;
251
254
  subAgentId: string;
252
255
  id: string;
253
256
  createdAt: string;
254
257
  updatedAt: string;
255
- projectId: string;
256
- tenantId: string;
257
- agentId: string;
258
258
  headers: Record<string, string> | null;
259
259
  targetAgentId: string;
260
260
  }>;
@@ -9,13 +9,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
- name: string;
13
12
  description: string | null;
14
- id: string;
15
- createdAt: string;
16
- updatedAt: string;
17
- projectId: string;
18
13
  tenantId: string;
14
+ projectId: string;
15
+ agentId: string;
16
+ id: string;
17
+ name: string;
19
18
  models: {
20
19
  base?: {
21
20
  model?: string | undefined;
@@ -30,23 +29,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
30
29
  providerOptions?: Record<string, any> | undefined;
31
30
  } | undefined;
32
31
  } | null;
32
+ prompt: string | null;
33
33
  stopWhen: {
34
34
  stepCountIs?: number | undefined;
35
35
  } | null;
36
- agentId: string;
37
- prompt: string | null;
36
+ createdAt: string;
37
+ updatedAt: string;
38
38
  conversationHistoryConfig: ConversationHistoryConfig | null;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
- name: string;
44
43
  description: string | null;
45
- id: string;
46
- createdAt: string;
47
- updatedAt: string;
48
- projectId: string;
49
44
  tenantId: string;
45
+ projectId: string;
46
+ agentId: string;
47
+ id: string;
48
+ name: string;
50
49
  models: {
51
50
  base?: {
52
51
  model?: string | undefined;
@@ -61,11 +60,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
61
60
  providerOptions?: Record<string, any> | undefined;
62
61
  } | undefined;
63
62
  } | null;
63
+ prompt: string | null;
64
64
  stopWhen: {
65
65
  stepCountIs?: number | undefined;
66
66
  } | null;
67
- agentId: string;
68
- prompt: string | null;
67
+ createdAt: string;
68
+ updatedAt: string;
69
69
  conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -109,13 +109,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
109
109
  };
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
- name: string;
113
112
  description: string | null;
114
- id: string;
115
- createdAt: string;
116
- updatedAt: string;
117
- projectId: string;
118
113
  tenantId: string;
114
+ projectId: string;
115
+ agentId: string;
116
+ id: string;
117
+ name: string;
119
118
  models: {
120
119
  base?: {
121
120
  model?: string | undefined;
@@ -130,11 +129,12 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
130
129
  providerOptions?: Record<string, any> | undefined;
131
130
  } | undefined;
132
131
  } | null;
132
+ prompt: string | null;
133
133
  stopWhen: {
134
134
  stepCountIs?: number | undefined;
135
135
  } | null;
136
- agentId: string;
137
- prompt: string | null;
136
+ createdAt: string;
137
+ updatedAt: string;
138
138
  conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -19,13 +19,13 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
19
19
  scopes: ProjectScopeConfig;
20
20
  toolId: string;
21
21
  }) => Promise<{
22
- name: string;
23
22
  description: string | null;
23
+ tenantId: string;
24
+ projectId: string;
24
25
  id: string;
26
+ name: string;
25
27
  createdAt: string;
26
28
  updatedAt: string;
27
- projectId: string;
28
- tenantId: string;
29
29
  headers: Record<string, string> | null;
30
30
  config: {
31
31
  type: "mcp";
@@ -77,13 +77,13 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
77
77
  };
78
78
  }>;
79
79
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
80
- name: string;
81
80
  description: string | null;
81
+ tenantId: string;
82
+ projectId: string;
82
83
  id: string;
84
+ name: string;
83
85
  createdAt: string;
84
86
  updatedAt: string;
85
- projectId: string;
86
- tenantId: string;
87
87
  headers: Record<string, string> | null;
88
88
  config: {
89
89
  type: "mcp";
@@ -134,15 +134,15 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
134
134
  needsApproval?: boolean;
135
135
  }> | null;
136
136
  }) => Promise<{
137
+ tenantId: string;
138
+ projectId: string;
139
+ agentId: string;
137
140
  subAgentId: string;
138
141
  id: string;
139
142
  createdAt: string;
140
143
  updatedAt: string;
141
- projectId: string;
142
- tenantId: string;
143
- agentId: string;
144
- headers: Record<string, string> | null;
145
144
  toolId: string;
145
+ headers: Record<string, string> | null;
146
146
  toolPolicies: Record<string, {
147
147
  needsApproval?: boolean;
148
148
  }> | null;
@@ -153,15 +153,15 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
153
153
  subAgentId: string;
154
154
  toolId: string;
155
155
  }) => Promise<{
156
+ tenantId: string;
157
+ projectId: string;
158
+ agentId: string;
156
159
  subAgentId: string;
157
160
  id: string;
158
161
  createdAt: string;
159
162
  updatedAt: string;
160
- projectId: string;
161
- tenantId: string;
162
- agentId: string;
163
- headers: Record<string, string> | null;
164
163
  toolId: string;
164
+ headers: Record<string, string> | null;
165
165
  toolPolicies: Record<string, {
166
166
  needsApproval?: boolean;
167
167
  }> | null;
@@ -181,15 +181,15 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
181
181
  }> | null;
182
182
  relationId?: string;
183
183
  }) => Promise<{
184
+ tenantId: string;
185
+ projectId: string;
186
+ agentId: string;
184
187
  subAgentId: string;
185
188
  id: string;
186
189
  createdAt: string;
187
190
  updatedAt: string;
188
- projectId: string;
189
- tenantId: string;
190
- agentId: string;
191
- headers: Record<string, string> | null;
192
191
  toolId: string;
192
+ headers: Record<string, string> | null;
193
193
  toolPolicies: Record<string, {
194
194
  needsApproval?: boolean;
195
195
  }> | null;
@@ -201,13 +201,13 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
201
201
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
202
202
  data: ToolInsert;
203
203
  }) => Promise<{
204
- name: string;
205
204
  description: string | null;
205
+ tenantId: string;
206
+ projectId: string;
206
207
  id: string;
208
+ name: string;
207
209
  createdAt: string;
208
210
  updatedAt: string;
209
- projectId: string;
210
- tenantId: string;
211
211
  headers: Record<string, string> | null;
212
212
  config: {
213
213
  type: "mcp";
@@ -0,0 +1,12 @@
1
+ import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
2
+ import { Pool } from "pg";
3
+
4
+ //#region src/data-access/manage/triggerCleanup.d.ts
5
+ declare function cleanupUserTriggers(params: {
6
+ tenantId: string;
7
+ userId: string;
8
+ runDb: AgentsRunDatabaseClient;
9
+ manageDbPool: Pool;
10
+ }): Promise<void>;
11
+ //#endregion
12
+ export { cleanupUserTriggers };