@inkeep/agents-core 0.0.0-dev-20260317210645 → 0.0.0-dev-20260317224734

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 (33) hide show
  1. package/dist/auth/auth-schema.d.ts +85 -85
  2. package/dist/auth/auth-validation-schemas.d.ts +152 -152
  3. package/dist/auth/auth.d.ts +9 -9
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/client-exports.d.ts +4 -4
  6. package/dist/data-access/index.d.ts +2 -2
  7. package/dist/data-access/index.js +2 -2
  8. package/dist/data-access/manage/agents.d.ts +36 -36
  9. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  10. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  11. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  12. package/dist/data-access/manage/functionTools.d.ts +12 -12
  13. package/dist/data-access/manage/skills.d.ts +12 -12
  14. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  15. package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
  16. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  17. package/dist/data-access/manage/subAgents.d.ts +24 -24
  18. package/dist/data-access/manage/tools.d.ts +18 -18
  19. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  20. package/dist/data-access/runtime/apps.d.ts +27 -14
  21. package/dist/data-access/runtime/apps.js +14 -7
  22. package/dist/data-access/runtime/conversations.d.ts +27 -27
  23. package/dist/data-access/runtime/messages.d.ts +27 -27
  24. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  25. package/dist/data-access/runtime/tasks.d.ts +9 -9
  26. package/dist/db/manage/manage-schema.d.ts +449 -449
  27. package/dist/db/runtime/runtime-schema.d.ts +334 -334
  28. package/dist/index.d.ts +2 -2
  29. package/dist/index.js +2 -2
  30. package/dist/validation/dolt-schemas.d.ts +1 -1
  31. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  32. package/dist/validation/schemas.d.ts +2151 -2151
  33. package/package.json +1 -1
@@ -55,12 +55,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
55
55
  }) => Promise<{
56
56
  name: string;
57
57
  description: string | null;
58
- id: string;
59
- createdAt: string;
60
- updatedAt: string;
61
58
  tenantId: string;
62
59
  projectId: string;
63
60
  agentId: string;
61
+ id: string;
62
+ createdAt: string;
63
+ updatedAt: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -97,12 +97,12 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
97
97
  }) => Promise<{
98
98
  name: string;
99
99
  description: string | null;
100
- id: string;
101
- createdAt: string;
102
- updatedAt: string;
103
100
  tenantId: string;
104
101
  projectId: string;
105
102
  agentId: string;
103
+ id: string;
104
+ createdAt: string;
105
+ updatedAt: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -157,13 +157,13 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
157
157
  needsApproval?: boolean;
158
158
  }> | null;
159
159
  }) => Promise<{
160
- id: string;
161
- createdAt: string;
162
- updatedAt: string;
163
160
  tenantId: string;
164
161
  projectId: string;
165
162
  agentId: string;
166
163
  subAgentId: string;
164
+ id: string;
165
+ createdAt: string;
166
+ updatedAt: string;
167
167
  functionToolId: string;
168
168
  toolPolicies: Record<string, {
169
169
  needsApproval?: boolean;
@@ -222,13 +222,13 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
222
222
  needsApproval?: boolean;
223
223
  }> | null;
224
224
  }) => Promise<{
225
- id: string;
226
- createdAt: string;
227
- updatedAt: string;
228
225
  tenantId: string;
229
226
  projectId: string;
230
227
  agentId: string;
231
228
  subAgentId: string;
229
+ id: string;
230
+ createdAt: string;
231
+ updatedAt: string;
232
232
  functionToolId: string;
233
233
  toolPolicies: Record<string, {
234
234
  needsApproval?: boolean;
@@ -10,13 +10,13 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  name: string;
12
12
  description: string;
13
+ tenantId: string;
14
+ projectId: string;
15
+ content: string;
13
16
  id: string;
14
17
  createdAt: string;
15
18
  updatedAt: string;
16
19
  metadata: Record<string, string> | null;
17
- content: string;
18
- tenantId: string;
19
- projectId: string;
20
20
  } | null>;
21
21
  declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: ProjectScopeConfig;
@@ -43,24 +43,24 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
43
43
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
44
44
  name: string;
45
45
  description: string;
46
+ tenantId: string;
47
+ projectId: string;
48
+ content: string;
46
49
  id: string;
47
50
  createdAt: string;
48
51
  updatedAt: string;
49
52
  metadata: Record<string, string> | null;
50
- content: string;
51
- tenantId: string;
52
- projectId: string;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
55
  name: string;
56
56
  description: string;
57
+ tenantId: string;
58
+ projectId: string;
59
+ content: string;
57
60
  id: string;
58
61
  createdAt: string;
59
62
  updatedAt: string;
60
63
  metadata: Record<string, string> | null;
61
- content: string;
62
- tenantId: string;
63
- projectId: string;
64
64
  }>;
65
65
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
66
66
  scopes: ProjectScopeConfig;
@@ -91,13 +91,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
91
91
  index: number;
92
92
  alwaysLoaded?: boolean;
93
93
  }) => Promise<{
94
- id: string;
95
- createdAt: string;
96
- updatedAt: string;
97
94
  tenantId: string;
98
95
  projectId: string;
99
96
  agentId: string;
100
97
  subAgentId: string;
98
+ id: string;
99
+ createdAt: string;
100
+ updatedAt: string;
101
101
  skillId: string;
102
102
  index: number;
103
103
  alwaysLoaded: boolean;
@@ -9,13 +9,13 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- id: string;
13
- createdAt: string;
14
- updatedAt: string;
15
12
  tenantId: string;
16
13
  projectId: string;
17
14
  agentId: string;
18
15
  subAgentId: string;
16
+ id: string;
17
+ createdAt: string;
18
+ updatedAt: 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
- id: string;
48
- createdAt: string;
49
- updatedAt: string;
50
47
  tenantId: string;
51
48
  projectId: string;
52
49
  agentId: string;
53
50
  subAgentId: string;
51
+ id: string;
52
+ createdAt: string;
53
+ updatedAt: 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
- id: string;
61
- createdAt: string;
62
- updatedAt: string;
63
60
  tenantId: string;
64
61
  projectId: string;
65
62
  agentId: string;
66
63
  subAgentId: string;
64
+ id: string;
65
+ createdAt: string;
66
+ updatedAt: 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
- id: string;
184
- createdAt: string;
185
- updatedAt: string;
186
183
  tenantId: string;
187
184
  projectId: string;
188
185
  agentId: string;
189
186
  subAgentId: string;
187
+ id: string;
188
+ createdAt: string;
189
+ updatedAt: 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
- id: string;
201
- createdAt: string;
202
- updatedAt: string;
203
200
  tenantId: string;
204
201
  projectId: string;
205
202
  agentId: string;
206
203
  subAgentId: string;
204
+ id: string;
205
+ createdAt: string;
206
+ updatedAt: 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
- id: string;
222
- createdAt: string;
223
- updatedAt: string;
224
221
  tenantId: string;
225
222
  projectId: string;
226
223
  agentId: string;
227
224
  subAgentId: string;
225
+ id: string;
226
+ createdAt: string;
227
+ updatedAt: string;
228
228
  headers: Record<string, string> | null;
229
229
  externalAgentId: string;
230
230
  }>;
@@ -9,15 +9,15 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
9
9
  scopes: AgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- id: string;
13
- createdAt: string;
14
- updatedAt: string;
15
12
  tenantId: string;
16
13
  projectId: string;
17
14
  agentId: string;
18
- relationType: string | null;
15
+ id: string;
16
+ createdAt: string;
17
+ updatedAt: string;
19
18
  sourceSubAgentId: string;
20
19
  targetSubAgentId: string | null;
20
+ relationType: string | null;
21
21
  } | undefined>;
22
22
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: AgentScopeConfig;
@@ -44,28 +44,28 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- id: string;
48
- createdAt: string;
49
- updatedAt: string;
50
47
  tenantId: string;
51
48
  projectId: string;
52
49
  agentId: string;
53
- relationType: string | null;
50
+ id: string;
51
+ createdAt: string;
52
+ updatedAt: string;
54
53
  sourceSubAgentId: string;
55
54
  targetSubAgentId: string | null;
55
+ relationType: string | null;
56
56
  }[]>;
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- id: string;
61
- createdAt: string;
62
- updatedAt: string;
63
60
  tenantId: string;
64
61
  projectId: string;
65
62
  agentId: string;
66
- relationType: string | null;
63
+ id: string;
64
+ createdAt: string;
65
+ updatedAt: string;
67
66
  sourceSubAgentId: string;
68
67
  targetSubAgentId: string | null;
68
+ relationType: string | null;
69
69
  }[]>;
70
70
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -126,15 +126,15 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
126
126
  }[];
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
- id: string;
130
- createdAt: string;
131
- updatedAt: string;
132
129
  tenantId: string;
133
130
  projectId: string;
134
131
  agentId: string;
135
- relationType: string | null;
132
+ id: string;
133
+ createdAt: string;
134
+ updatedAt: string;
136
135
  sourceSubAgentId: string;
137
136
  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
@@ -145,29 +145,29 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
145
145
  targetSubAgentId?: string;
146
146
  relationType: string;
147
147
  }) => Promise<{
148
- id: string;
149
- createdAt: string;
150
- updatedAt: string;
151
148
  tenantId: string;
152
149
  projectId: string;
153
150
  agentId: string;
154
- relationType: string | null;
151
+ id: string;
152
+ createdAt: string;
153
+ updatedAt: string;
155
154
  sourceSubAgentId: string;
156
155
  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)
160
160
  */
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
- id: string;
163
- createdAt: string;
164
- updatedAt: string;
165
162
  tenantId: string;
166
163
  projectId: string;
167
164
  agentId: string;
168
- relationType: string | null;
165
+ id: string;
166
+ createdAt: string;
167
+ updatedAt: string;
169
168
  sourceSubAgentId: string;
170
169
  targetSubAgentId: string | null;
170
+ relationType: string | null;
171
171
  }>;
172
172
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
173
173
  scopes: AgentScopeConfig;
@@ -204,14 +204,14 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
- id: string;
208
- createdAt: string;
209
- updatedAt: string;
210
207
  tenantId: string;
211
208
  projectId: string;
212
209
  agentId: string;
213
210
  subAgentId: string;
214
211
  toolId: string;
212
+ id: string;
213
+ createdAt: string;
214
+ updatedAt: string;
215
215
  headers: Record<string, string> | null;
216
216
  toolPolicies: Record<string, {
217
217
  needsApproval?: boolean;
@@ -248,14 +248,14 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  scopes: SubAgentScopeConfig;
249
249
  relationId: string;
250
250
  }) => Promise<{
251
- id: string;
252
- createdAt: string;
253
- updatedAt: string;
254
251
  tenantId: string;
255
252
  projectId: string;
256
253
  agentId: string;
257
254
  subAgentId: string;
258
255
  toolId: string;
256
+ id: string;
257
+ createdAt: string;
258
+ updatedAt: string;
259
259
  headers: Record<string, string> | null;
260
260
  toolPolicies: Record<string, {
261
261
  needsApproval?: boolean;
@@ -9,13 +9,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- id: string;
13
- createdAt: string;
14
- updatedAt: string;
15
12
  tenantId: string;
16
13
  projectId: string;
17
14
  agentId: string;
18
15
  subAgentId: string;
16
+ id: string;
17
+ createdAt: string;
18
+ updatedAt: 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
- id: string;
48
- createdAt: string;
49
- updatedAt: string;
50
47
  tenantId: string;
51
48
  projectId: string;
52
49
  agentId: string;
53
50
  subAgentId: string;
51
+ id: string;
52
+ createdAt: string;
53
+ updatedAt: 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
- id: string;
61
- createdAt: string;
62
- updatedAt: string;
63
60
  tenantId: string;
64
61
  projectId: string;
65
62
  agentId: string;
66
63
  subAgentId: string;
64
+ id: string;
65
+ createdAt: string;
66
+ updatedAt: 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
- id: string;
214
- createdAt: string;
215
- updatedAt: string;
216
213
  tenantId: string;
217
214
  projectId: string;
218
215
  agentId: string;
219
216
  subAgentId: string;
217
+ id: string;
218
+ createdAt: string;
219
+ updatedAt: 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
- id: string;
231
- createdAt: string;
232
- updatedAt: string;
233
230
  tenantId: string;
234
231
  projectId: string;
235
232
  agentId: string;
236
233
  subAgentId: string;
234
+ id: string;
235
+ createdAt: string;
236
+ updatedAt: 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
- id: string;
252
- createdAt: string;
253
- updatedAt: string;
254
251
  tenantId: string;
255
252
  projectId: string;
256
253
  agentId: string;
257
254
  subAgentId: string;
255
+ id: string;
256
+ createdAt: string;
257
+ updatedAt: string;
258
258
  headers: Record<string, string> | null;
259
259
  targetAgentId: string;
260
260
  }>;
@@ -11,17 +11,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  }) => Promise<{
12
12
  name: string;
13
13
  description: string | null;
14
- id: string;
15
- createdAt: string;
16
- updatedAt: string;
17
14
  tenantId: string;
18
15
  projectId: string;
19
16
  agentId: string;
20
- stopWhen: {
21
- stepCountIs?: number | undefined;
22
- } | null;
23
- prompt: string | null;
24
- conversationHistoryConfig: ConversationHistoryConfig | null;
17
+ id: string;
18
+ createdAt: string;
19
+ updatedAt: string;
25
20
  models: {
26
21
  base?: {
27
22
  model?: string | undefined;
@@ -36,23 +31,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
36
31
  providerOptions?: Record<string, any> | undefined;
37
32
  } | undefined;
38
33
  } | null;
34
+ stopWhen: {
35
+ stepCountIs?: number | undefined;
36
+ } | null;
37
+ prompt: string | null;
38
+ conversationHistoryConfig: ConversationHistoryConfig | null;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
43
  name: string;
44
44
  description: string | null;
45
- id: string;
46
- createdAt: string;
47
- updatedAt: string;
48
45
  tenantId: string;
49
46
  projectId: string;
50
47
  agentId: string;
51
- stopWhen: {
52
- stepCountIs?: number | undefined;
53
- } | null;
54
- prompt: string | null;
55
- conversationHistoryConfig: ConversationHistoryConfig | null;
48
+ id: string;
49
+ createdAt: string;
50
+ updatedAt: string;
56
51
  models: {
57
52
  base?: {
58
53
  model?: string | undefined;
@@ -67,6 +62,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
67
62
  providerOptions?: Record<string, any> | undefined;
68
63
  } | undefined;
69
64
  } | null;
65
+ stopWhen: {
66
+ stepCountIs?: number | undefined;
67
+ } | null;
68
+ prompt: string | null;
69
+ conversationHistoryConfig: ConversationHistoryConfig | null;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
72
72
  scopes: AgentScopeConfig;
@@ -111,17 +111,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
112
  name: string;
113
113
  description: string | null;
114
- id: string;
115
- createdAt: string;
116
- updatedAt: string;
117
114
  tenantId: string;
118
115
  projectId: string;
119
116
  agentId: string;
120
- stopWhen: {
121
- stepCountIs?: number | undefined;
122
- } | null;
123
- prompt: string | null;
124
- conversationHistoryConfig: ConversationHistoryConfig | null;
117
+ id: string;
118
+ createdAt: string;
119
+ updatedAt: string;
125
120
  models: {
126
121
  base?: {
127
122
  model?: string | undefined;
@@ -136,6 +131,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
136
131
  providerOptions?: Record<string, any> | undefined;
137
132
  } | undefined;
138
133
  } | null;
134
+ stopWhen: {
135
+ stepCountIs?: number | undefined;
136
+ } | null;
137
+ prompt: string | null;
138
+ conversationHistoryConfig: ConversationHistoryConfig | null;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
@@ -22,16 +22,16 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
22
22
  }) => Promise<{
23
23
  name: string;
24
24
  description: string | null;
25
+ tenantId: string;
26
+ projectId: string;
25
27
  id: string;
26
28
  createdAt: string;
27
29
  updatedAt: string;
28
- tenantId: string;
29
- projectId: string;
30
+ headers: Record<string, string> | null;
30
31
  config: {
31
32
  type: "mcp";
32
33
  mcp: ToolMcpConfig;
33
34
  };
34
- headers: Record<string, string> | null;
35
35
  credentialReferenceId: string | null;
36
36
  credentialScope: string;
37
37
  imageUrl: string | null;
@@ -80,16 +80,16 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
81
  name: string;
82
82
  description: string | null;
83
+ tenantId: string;
84
+ projectId: string;
83
85
  id: string;
84
86
  createdAt: string;
85
87
  updatedAt: string;
86
- tenantId: string;
87
- projectId: string;
88
+ headers: Record<string, string> | null;
88
89
  config: {
89
90
  type: "mcp";
90
91
  mcp: ToolMcpConfig;
91
92
  };
92
- headers: Record<string, string> | null;
93
93
  credentialReferenceId: string | null;
94
94
  credentialScope: string;
95
95
  imageUrl: string | null;
@@ -135,14 +135,14 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
135
135
  needsApproval?: boolean;
136
136
  }> | null;
137
137
  }) => Promise<{
138
- id: string;
139
- createdAt: string;
140
- updatedAt: string;
141
138
  tenantId: string;
142
139
  projectId: string;
143
140
  agentId: string;
144
141
  subAgentId: string;
145
142
  toolId: string;
143
+ id: string;
144
+ createdAt: string;
145
+ updatedAt: string;
146
146
  headers: Record<string, string> | null;
147
147
  toolPolicies: Record<string, {
148
148
  needsApproval?: boolean;
@@ -154,14 +154,14 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
154
154
  subAgentId: string;
155
155
  toolId: string;
156
156
  }) => Promise<{
157
- id: string;
158
- createdAt: string;
159
- updatedAt: string;
160
157
  tenantId: string;
161
158
  projectId: string;
162
159
  agentId: string;
163
160
  subAgentId: string;
164
161
  toolId: string;
162
+ id: string;
163
+ createdAt: string;
164
+ updatedAt: string;
165
165
  headers: Record<string, string> | null;
166
166
  toolPolicies: Record<string, {
167
167
  needsApproval?: boolean;
@@ -182,14 +182,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
182
182
  }> | null;
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
- id: string;
186
- createdAt: string;
187
- updatedAt: string;
188
185
  tenantId: string;
189
186
  projectId: string;
190
187
  agentId: string;
191
188
  subAgentId: string;
192
189
  toolId: string;
190
+ id: string;
191
+ createdAt: string;
192
+ updatedAt: string;
193
193
  headers: Record<string, string> | null;
194
194
  toolPolicies: Record<string, {
195
195
  needsApproval?: boolean;
@@ -204,16 +204,16 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
204
204
  }) => Promise<{
205
205
  name: string;
206
206
  description: string | null;
207
+ tenantId: string;
208
+ projectId: string;
207
209
  id: string;
208
210
  createdAt: string;
209
211
  updatedAt: string;
210
- tenantId: string;
211
- projectId: string;
212
+ headers: Record<string, string> | null;
212
213
  config: {
213
214
  type: "mcp";
214
215
  mcp: ToolMcpConfig;
215
216
  };
216
- headers: Record<string, string> | null;
217
217
  credentialReferenceId: string | null;
218
218
  credentialScope: string;
219
219
  imageUrl: string | null;