@inkeep/agents-core 0.73.0 → 0.73.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/auth/auth-schema.d.ts +172 -172
  2. package/dist/auth/auth-schema.js +8 -8
  3. package/dist/auth/auth-types.d.ts +6 -1
  4. package/dist/auth/auth-validation-schemas.d.ts +137 -137
  5. package/dist/auth/auth.d.ts +65 -42
  6. package/dist/auth/auth.js +18 -4
  7. package/dist/auth/password-policy.d.ts +7 -3
  8. package/dist/auth/password-policy.js +6 -4
  9. package/dist/data-access/manage/agents.d.ts +20 -20
  10. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  11. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  12. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  13. package/dist/data-access/manage/functionTools.d.ts +10 -10
  14. package/dist/data-access/manage/skills.d.ts +5 -5
  15. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  16. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  17. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  18. package/dist/data-access/manage/subAgents.d.ts +12 -12
  19. package/dist/data-access/manage/tools.d.ts +21 -21
  20. package/dist/data-access/manage/triggers.d.ts +2 -2
  21. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  22. package/dist/data-access/runtime/apps.d.ts +8 -8
  23. package/dist/data-access/runtime/conversations.d.ts +8 -8
  24. package/dist/data-access/runtime/events.d.ts +4 -4
  25. package/dist/data-access/runtime/feedback.d.ts +4 -4
  26. package/dist/data-access/runtime/messages.d.ts +6 -6
  27. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  28. package/dist/data-access/runtime/tasks.d.ts +2 -2
  29. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +1 -1
  30. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +1 -1
  31. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +1 -1
  32. package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +1 -1
  33. package/dist/test-utils/mocks/logger.js +1 -1
  34. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  35. package/dist/validation/schemas/skills.d.ts +28 -28
  36. package/dist/validation/schemas.d.ts +1815 -1815
  37. package/drizzle/runtime/0042_long_magdalene.sql +8 -0
  38. package/drizzle/runtime/meta/0042_snapshot.json +6298 -0
  39. package/drizzle/runtime/meta/_journal.json +7 -0
  40. package/package.json +8 -8
@@ -12,9 +12,9 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
15
  agentId: string;
16
+ projectId: string;
17
+ tenantId: string;
18
18
  headersSchema: unknown;
19
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
20
20
  } | undefined>;
@@ -24,9 +24,9 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
24
24
  id: string;
25
25
  createdAt: string;
26
26
  updatedAt: string;
27
- tenantId: string;
28
- projectId: string;
29
27
  agentId: string;
28
+ projectId: string;
29
+ tenantId: string;
30
30
  headersSchema: unknown;
31
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
32
32
  }[]>;
@@ -46,9 +46,9 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- tenantId: string;
50
- projectId: string;
51
49
  agentId: string;
50
+ projectId: string;
51
+ tenantId: string;
52
52
  headersSchema: unknown;
53
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
54
54
  }>;
@@ -86,9 +86,9 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
86
86
  id: string;
87
87
  createdAt: string;
88
88
  updatedAt: string;
89
- tenantId: string;
90
- projectId: string;
91
89
  agentId: string;
90
+ projectId: string;
91
+ tenantId: string;
92
92
  headersSchema: unknown;
93
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
94
94
  }>;
@@ -67,9 +67,9 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
67
67
  }) => Promise<{
68
68
  id: string;
69
69
  createdAt: string;
70
- tenantId: string;
71
- projectId: string;
72
70
  agentId: string;
71
+ projectId: string;
72
+ tenantId: string;
73
73
  subAgentId: string;
74
74
  dataComponentId: string;
75
75
  }>;
@@ -109,9 +109,9 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
109
109
  }) => Promise<{
110
110
  id: string;
111
111
  createdAt: string;
112
- tenantId: string;
113
- projectId: string;
114
112
  agentId: string;
113
+ projectId: string;
114
+ tenantId: string;
115
115
  subAgentId: string;
116
116
  dataComponentId: string;
117
117
  } | null>;
@@ -58,9 +58,9 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
58
58
  createdAt: string;
59
59
  updatedAt: string;
60
60
  description: string | null;
61
- tenantId: string;
62
- projectId: string;
63
61
  agentId: string;
62
+ projectId: string;
63
+ tenantId: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -100,9 +100,9 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
100
100
  createdAt: string;
101
101
  updatedAt: string;
102
102
  description: string | null;
103
- tenantId: string;
104
- projectId: string;
105
103
  agentId: string;
104
+ projectId: string;
105
+ tenantId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -160,13 +160,13 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
160
160
  id: string;
161
161
  createdAt: string;
162
162
  updatedAt: string;
163
- tenantId: string;
164
- projectId: string;
165
163
  agentId: string;
164
+ projectId: string;
165
+ tenantId: string;
166
+ subAgentId: string;
166
167
  toolPolicies: Record<string, {
167
168
  needsApproval?: boolean;
168
169
  }> | null;
169
- subAgentId: string;
170
170
  functionToolId: string;
171
171
  }>;
172
172
  /**
@@ -225,13 +225,13 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
225
225
  id: string;
226
226
  createdAt: string;
227
227
  updatedAt: string;
228
- tenantId: string;
229
- projectId: string;
230
228
  agentId: string;
229
+ projectId: string;
230
+ tenantId: string;
231
+ subAgentId: string;
231
232
  toolPolicies: Record<string, {
232
233
  needsApproval?: boolean;
233
234
  }> | null;
234
- subAgentId: string;
235
235
  functionToolId: string;
236
236
  }>;
237
237
  //#endregion
@@ -21,8 +21,8 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
21
21
  updatedAt: string;
22
22
  metadata: Record<string, string> | null;
23
23
  description: string;
24
- tenantId: string;
25
24
  projectId: string;
25
+ tenantId: string;
26
26
  content: string;
27
27
  } | null>;
28
28
  declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
@@ -116,8 +116,8 @@ declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiIn
116
116
  updatedAt: string;
117
117
  metadata: Record<string, string> | null;
118
118
  description: string;
119
- tenantId: string;
120
119
  projectId: string;
120
+ tenantId: string;
121
121
  content: string;
122
122
  }>;
123
123
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -142,13 +142,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
142
142
  id: string;
143
143
  createdAt: string;
144
144
  updatedAt: string;
145
- tenantId: string;
146
- projectId: string;
147
145
  agentId: string;
146
+ projectId: string;
147
+ tenantId: string;
148
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;
@@ -12,12 +12,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- headers: Record<string, string> | null;
16
- tenantId: string;
17
- projectId: string;
18
15
  agentId: string;
19
- externalAgentId: string;
16
+ projectId: string;
17
+ tenantId: string;
20
18
  subAgentId: string;
19
+ headers: Record<string, string> | null;
20
+ externalAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: SubAgentScopeConfig;
@@ -47,12 +47,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- headers: Record<string, string> | null;
51
- tenantId: string;
52
- projectId: string;
53
50
  agentId: string;
54
- externalAgentId: string;
51
+ projectId: string;
52
+ tenantId: string;
55
53
  subAgentId: string;
54
+ headers: Record<string, string> | null;
55
+ externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
@@ -60,12 +60,12 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- headers: Record<string, string> | null;
64
- tenantId: string;
65
- projectId: string;
66
63
  agentId: string;
67
- externalAgentId: string;
64
+ projectId: string;
65
+ tenantId: string;
68
66
  subAgentId: string;
67
+ headers: Record<string, string> | null;
68
+ externalAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -189,12 +189,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
189
189
  id: string;
190
190
  createdAt: string;
191
191
  updatedAt: string;
192
- headers: Record<string, string> | null;
193
- tenantId: string;
194
- projectId: string;
195
192
  agentId: string;
196
- externalAgentId: string;
193
+ projectId: string;
194
+ tenantId: string;
197
195
  subAgentId: string;
196
+ headers: Record<string, string> | null;
197
+ externalAgentId: string;
198
198
  }>;
199
199
  /**
200
200
  * Check if sub-agent external agent relation exists by params
@@ -206,12 +206,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
206
206
  id: string;
207
207
  createdAt: string;
208
208
  updatedAt: string;
209
- headers: Record<string, string> | null;
210
- tenantId: string;
211
- projectId: string;
212
209
  agentId: string;
213
- externalAgentId: string;
210
+ projectId: string;
211
+ tenantId: string;
214
212
  subAgentId: string;
213
+ headers: Record<string, string> | null;
214
+ externalAgentId: string;
215
215
  } | undefined>;
216
216
  /**
217
217
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -227,12 +227,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
227
227
  id: string;
228
228
  createdAt: string;
229
229
  updatedAt: string;
230
- headers: Record<string, string> | null;
231
- tenantId: string;
232
- projectId: string;
233
230
  agentId: string;
234
- externalAgentId: string;
231
+ projectId: string;
232
+ tenantId: string;
235
233
  subAgentId: string;
234
+ headers: Record<string, string> | null;
235
+ externalAgentId: string;
236
236
  }>;
237
237
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
238
238
  scopes: SubAgentScopeConfig;
@@ -12,12 +12,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
15
  agentId: string;
16
+ projectId: string;
17
+ tenantId: string;
18
+ relationType: string | null;
18
19
  sourceSubAgentId: string;
19
20
  targetSubAgentId: string | null;
20
- relationType: string | null;
21
21
  } | undefined>;
22
22
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: AgentScopeConfig;
@@ -47,12 +47,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- tenantId: string;
51
- projectId: string;
52
50
  agentId: string;
51
+ projectId: string;
52
+ tenantId: string;
53
+ relationType: string | null;
53
54
  sourceSubAgentId: string;
54
55
  targetSubAgentId: string | null;
55
- relationType: string | null;
56
56
  }[]>;
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
@@ -60,12 +60,12 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- tenantId: string;
64
- projectId: string;
65
63
  agentId: string;
64
+ projectId: string;
65
+ tenantId: string;
66
+ relationType: string | null;
66
67
  sourceSubAgentId: string;
67
68
  targetSubAgentId: string | null;
68
- relationType: string | null;
69
69
  }[]>;
70
70
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -129,12 +129,12 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
129
129
  id: string;
130
130
  createdAt: string;
131
131
  updatedAt: string;
132
- tenantId: string;
133
- projectId: string;
134
132
  agentId: string;
133
+ projectId: string;
134
+ tenantId: string;
135
+ relationType: string | null;
135
136
  sourceSubAgentId: string;
136
137
  targetSubAgentId: string | null;
137
- relationType: string | null;
138
138
  }>;
139
139
  /**
140
140
  * Check if sub-agent relation exists by agent, source, target, and relation type
@@ -148,12 +148,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
148
148
  id: string;
149
149
  createdAt: string;
150
150
  updatedAt: string;
151
- tenantId: string;
152
- projectId: string;
153
151
  agentId: string;
152
+ projectId: string;
153
+ tenantId: string;
154
+ relationType: string | null;
154
155
  sourceSubAgentId: string;
155
156
  targetSubAgentId: string | null;
156
- relationType: string | null;
157
157
  } | undefined>;
158
158
  /**
159
159
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
@@ -162,12 +162,12 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
162
162
  id: string;
163
163
  createdAt: string;
164
164
  updatedAt: string;
165
- tenantId: string;
166
- projectId: string;
167
165
  agentId: string;
166
+ projectId: string;
167
+ tenantId: string;
168
+ relationType: string | null;
168
169
  sourceSubAgentId: string;
169
170
  targetSubAgentId: string | null;
170
- relationType: string | null;
171
171
  }>;
172
172
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
173
173
  scopes: AgentScopeConfig;
@@ -207,16 +207,16 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
207
207
  id: string;
208
208
  createdAt: string;
209
209
  updatedAt: string;
210
- headers: Record<string, string> | null;
211
- tenantId: string;
212
- projectId: string;
213
210
  agentId: string;
211
+ projectId: string;
212
+ tenantId: string;
213
+ subAgentId: string;
214
214
  toolId: string;
215
+ headers: Record<string, string> | null;
216
+ selectedTools: string[] | null;
215
217
  toolPolicies: Record<string, {
216
218
  needsApproval?: boolean;
217
219
  }> | null;
218
- subAgentId: string;
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
- headers: Record<string, string> | null;
255
- tenantId: string;
256
- projectId: string;
257
254
  agentId: string;
255
+ projectId: string;
256
+ tenantId: string;
257
+ subAgentId: string;
258
258
  toolId: string;
259
+ headers: Record<string, string> | null;
260
+ selectedTools: string[] | null;
259
261
  toolPolicies: Record<string, {
260
262
  needsApproval?: boolean;
261
263
  }> | null;
262
- subAgentId: string;
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
- headers: Record<string, string> | null;
16
- tenantId: string;
17
- projectId: string;
18
15
  agentId: string;
16
+ projectId: string;
17
+ tenantId: 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
- headers: Record<string, string> | null;
51
- tenantId: string;
52
- projectId: string;
53
50
  agentId: string;
51
+ projectId: string;
52
+ tenantId: 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
- headers: Record<string, string> | null;
64
- tenantId: string;
65
- projectId: string;
66
63
  agentId: string;
64
+ projectId: string;
65
+ tenantId: 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
- headers: Record<string, string> | null;
229
- tenantId: string;
230
- projectId: string;
231
228
  agentId: string;
229
+ projectId: string;
230
+ tenantId: 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
- headers: Record<string, string> | null;
246
- tenantId: string;
247
- projectId: string;
248
245
  agentId: string;
246
+ projectId: string;
247
+ tenantId: 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
- headers: Record<string, string> | null;
267
- tenantId: string;
268
- projectId: string;
269
266
  agentId: string;
267
+ projectId: string;
268
+ tenantId: 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: {
@@ -13,8 +13,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
13
13
  name: string;
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
- prompt: string | null;
17
16
  description: string | null;
17
+ agentId: string;
18
+ projectId: string;
19
+ tenantId: string;
20
+ prompt: string | null;
18
21
  models: {
19
22
  base?: {
20
23
  model?: string | undefined;
@@ -38,9 +41,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
38
41
  stopWhen: {
39
42
  stepCountIs?: number | undefined;
40
43
  } | null;
41
- tenantId: string;
42
- projectId: string;
43
- agentId: string;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  } | undefined>;
46
46
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
@@ -50,8 +50,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
50
50
  name: string;
51
51
  createdAt: string;
52
52
  updatedAt: string;
53
- prompt: string | null;
54
53
  description: string | null;
54
+ agentId: string;
55
+ projectId: string;
56
+ tenantId: string;
57
+ prompt: string | null;
55
58
  models: {
56
59
  base?: {
57
60
  model?: string | undefined;
@@ -75,9 +78,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
75
78
  stopWhen: {
76
79
  stepCountIs?: number | undefined;
77
80
  } | null;
78
- tenantId: string;
79
- projectId: string;
80
- agentId: string;
81
81
  conversationHistoryConfig: ConversationHistoryConfig | null;
82
82
  }[]>;
83
83
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -131,8 +131,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
131
131
  name: string;
132
132
  createdAt: string;
133
133
  updatedAt: string;
134
- prompt: string | null;
135
134
  description: string | null;
135
+ agentId: string;
136
+ projectId: string;
137
+ tenantId: string;
138
+ prompt: string | null;
136
139
  models: {
137
140
  base?: {
138
141
  model?: string | undefined;
@@ -156,9 +159,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
156
159
  stopWhen: {
157
160
  stepCountIs?: number | undefined;
158
161
  } | null;
159
- tenantId: string;
160
- projectId: string;
161
- agentId: string;
162
162
  conversationHistoryConfig: ConversationHistoryConfig | null;
163
163
  }>;
164
164
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -24,10 +24,10 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
24
24
  name: string;
25
25
  createdAt: string;
26
26
  updatedAt: string;
27
- headers: Record<string, string> | null;
28
27
  description: string | null;
29
- tenantId: string;
30
28
  projectId: string;
29
+ tenantId: string;
30
+ headers: Record<string, string> | null;
31
31
  config: {
32
32
  type: "mcp";
33
33
  mcp: ToolMcpConfig;
@@ -82,10 +82,10 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
82
82
  name: string;
83
83
  createdAt: string;
84
84
  updatedAt: string;
85
- headers: Record<string, string> | null;
86
85
  description: string | null;
87
- tenantId: string;
88
86
  projectId: string;
87
+ tenantId: string;
88
+ headers: Record<string, string> | null;
89
89
  config: {
90
90
  type: "mcp";
91
91
  mcp: ToolMcpConfig;
@@ -138,16 +138,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
138
138
  id: string;
139
139
  createdAt: string;
140
140
  updatedAt: string;
141
- headers: Record<string, string> | null;
142
- tenantId: string;
143
- projectId: string;
144
141
  agentId: string;
142
+ projectId: string;
143
+ tenantId: string;
144
+ subAgentId: string;
145
145
  toolId: string;
146
+ headers: Record<string, string> | null;
147
+ selectedTools: string[] | null;
146
148
  toolPolicies: Record<string, {
147
149
  needsApproval?: boolean;
148
150
  }> | null;
149
- subAgentId: string;
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
- headers: Record<string, string> | null;
161
- tenantId: string;
162
- projectId: string;
163
160
  agentId: string;
161
+ projectId: string;
162
+ tenantId: string;
163
+ subAgentId: string;
164
164
  toolId: string;
165
+ headers: Record<string, string> | null;
166
+ selectedTools: string[] | null;
165
167
  toolPolicies: Record<string, {
166
168
  needsApproval?: boolean;
167
169
  }> | null;
168
- subAgentId: string;
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
- headers: Record<string, string> | null;
189
- tenantId: string;
190
- projectId: string;
191
188
  agentId: string;
189
+ projectId: string;
190
+ tenantId: string;
191
+ subAgentId: string;
192
192
  toolId: string;
193
+ headers: Record<string, string> | null;
194
+ selectedTools: string[] | null;
193
195
  toolPolicies: Record<string, {
194
196
  needsApproval?: boolean;
195
197
  }> | null;
196
- subAgentId: string;
197
- selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
200
200
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -206,10 +206,10 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
206
206
  name: string;
207
207
  createdAt: string;
208
208
  updatedAt: string;
209
- headers: Record<string, string> | null;
210
209
  description: string | null;
211
- tenantId: string;
212
210
  projectId: string;
211
+ tenantId: string;
212
+ headers: Record<string, string> | null;
213
213
  config: {
214
214
  type: "mcp";
215
215
  mcp: ToolMcpConfig;
@@ -133,9 +133,9 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
133
133
  }) => Promise<{
134
134
  createdAt: string;
135
135
  userId: string;
136
- tenantId: string;
137
- projectId: string;
138
136
  agentId: string;
137
+ projectId: string;
138
+ tenantId: string;
139
139
  triggerId: string;
140
140
  }>;
141
141
  declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {