@inkeep/agents-core 0.0.0-dev-20260204170416 → 0.0.0-dev-20260204182014

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 (55) hide show
  1. package/dist/auth/auth.d.ts +54 -54
  2. package/dist/auth/create-test-users.d.ts +1 -0
  3. package/dist/auth/create-test-users.js +102 -0
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/client-exports.d.ts +3 -4
  6. package/dist/data-access/index.d.ts +3 -1
  7. package/dist/data-access/index.js +3 -1
  8. package/dist/data-access/manage/agents.d.ts +10 -10
  9. package/dist/data-access/manage/artifactComponents.d.ts +4 -4
  10. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  11. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  12. package/dist/data-access/manage/functionTools.d.ts +6 -6
  13. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  14. package/dist/data-access/manage/subAgentRelations.d.ts +6 -6
  15. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
  16. package/dist/data-access/manage/subAgents.d.ts +6 -6
  17. package/dist/data-access/manage/tools.d.ts +18 -18
  18. package/dist/data-access/manage/workAppConfigs.d.ts +228 -0
  19. package/dist/data-access/manage/workAppConfigs.js +120 -0
  20. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  21. package/dist/data-access/runtime/conversations.d.ts +20 -20
  22. package/dist/data-access/runtime/messages.d.ts +15 -15
  23. package/dist/data-access/runtime/tasks.d.ts +4 -4
  24. package/dist/data-access/runtime/workAppSlack.d.ts +45 -0
  25. package/dist/data-access/runtime/workAppSlack.js +154 -0
  26. package/dist/db/manage/manage-schema.d.ts +600 -380
  27. package/dist/db/manage/manage-schema.js +27 -2
  28. package/dist/db/runtime/runtime-schema.d.ts +1147 -234
  29. package/dist/db/runtime/runtime-schema.js +98 -2
  30. package/dist/index.d.ts +10 -5
  31. package/dist/index.js +9 -4
  32. package/dist/types/entities.d.ts +8 -2
  33. package/dist/types/index.d.ts +2 -2
  34. package/dist/utils/index.d.ts +4 -1
  35. package/dist/utils/index.js +4 -1
  36. package/dist/utils/slack-link-token.d.ts +60 -0
  37. package/dist/utils/slack-link-token.js +124 -0
  38. package/dist/utils/slack-user-token.d.ts +87 -0
  39. package/dist/utils/slack-user-token.js +156 -0
  40. package/dist/utils/sse-parser.d.ts +35 -0
  41. package/dist/utils/sse-parser.js +71 -0
  42. package/dist/utils/trigger-auth.d.ts +1 -1
  43. package/dist/validation/index.d.ts +2 -2
  44. package/dist/validation/index.js +2 -2
  45. package/dist/validation/schemas.d.ts +3912 -1352
  46. package/dist/validation/schemas.js +65 -3
  47. package/drizzle/manage/0007_whole_skreet.sql +17 -0
  48. package/drizzle/manage/meta/0007_snapshot.json +3265 -0
  49. package/drizzle/manage/meta/_journal.json +7 -0
  50. package/drizzle/runtime/0011_grey_energizer.sql +131 -0
  51. package/drizzle/runtime/0012_salty_zuras.sql +6 -0
  52. package/drizzle/runtime/meta/0011_snapshot.json +3747 -0
  53. package/drizzle/runtime/meta/0012_snapshot.json +3747 -0
  54. package/drizzle/runtime/meta/_journal.json +14 -0
  55. package/package.json +1 -1
@@ -9,12 +9,12 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  }) => Promise<{
11
11
  id: string;
12
- name: string;
13
12
  createdAt: string;
13
+ name: string;
14
14
  updatedAt: string;
15
- description: string | null;
16
15
  projectId: string;
17
16
  tenantId: string;
17
+ description: string | null;
18
18
  defaultSubAgentId: string | null;
19
19
  contextConfigId: string | null;
20
20
  models: {
@@ -55,12 +55,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
57
  id: string;
58
- name: string;
59
58
  createdAt: string;
59
+ name: string;
60
60
  updatedAt: string;
61
- description: string | null;
62
61
  projectId: string;
63
62
  tenantId: string;
63
+ description: string | null;
64
64
  defaultSubAgentId: string | null;
65
65
  contextConfigId: string | null;
66
66
  models: {
@@ -98,13 +98,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
98
98
  } | null;
99
99
  defaultSubAgent: {
100
100
  id: string;
101
- name: string;
102
101
  createdAt: string;
102
+ name: string;
103
103
  updatedAt: string;
104
- description: string | null;
105
104
  agentId: string;
106
105
  projectId: string;
107
106
  tenantId: string;
107
+ description: string | null;
108
108
  models: {
109
109
  base?: {
110
110
  model?: string | undefined;
@@ -130,12 +130,12 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
130
130
  scopes: ProjectScopeConfig;
131
131
  }) => Promise<{
132
132
  id: string;
133
- name: string;
134
133
  createdAt: string;
134
+ name: string;
135
135
  updatedAt: string;
136
- description: string | null;
137
136
  projectId: string;
138
137
  tenantId: string;
138
+ description: string | null;
139
139
  defaultSubAgentId: string | null;
140
140
  contextConfigId: string | null;
141
141
  models: {
@@ -246,12 +246,12 @@ declare function listAgentsAcrossProjectBranches(db: AgentsManageDatabaseClient,
246
246
  }): Promise<AvailableAgentInfo[]>;
247
247
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
248
248
  id: string;
249
- name: string;
250
249
  createdAt: string;
250
+ name: string;
251
251
  updatedAt: string;
252
- description: string | null;
253
252
  projectId: string;
254
253
  tenantId: string;
254
+ description: string | null;
255
255
  defaultSubAgentId: string | null;
256
256
  contextConfigId: string | null;
257
257
  models: {
@@ -8,12 +8,12 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
8
8
  id: string;
9
9
  }) => Promise<{
10
10
  id: string;
11
- name: string;
12
11
  createdAt: string;
12
+ name: string;
13
13
  updatedAt: string;
14
- description: string | null;
15
14
  projectId: string;
16
15
  tenantId: string;
16
+ description: string | null;
17
17
  props: Record<string, unknown> | null;
18
18
  render: {
19
19
  component: string;
@@ -50,12 +50,12 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
50
50
  }>;
51
51
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
52
52
  id: string;
53
- name: string;
54
53
  createdAt: string;
54
+ name: string;
55
55
  updatedAt: string;
56
- description: string | null;
57
56
  projectId: string;
58
57
  tenantId: string;
58
+ description: string | null;
59
59
  props: Record<string, unknown> | null;
60
60
  render: {
61
61
  component: string;
@@ -9,10 +9,10 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
9
9
  id: string;
10
10
  }) => Promise<{
11
11
  id: string;
12
- createdAt: string;
13
- updatedAt: string;
14
12
  headersSchema: unknown;
15
13
  contextVariables: Record<string, ContextFetchDefinition> | null;
14
+ createdAt: string;
15
+ updatedAt: string;
16
16
  agentId: string;
17
17
  projectId: string;
18
18
  tenantId: string;
@@ -21,10 +21,10 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
21
21
  scopes: AgentScopeConfig;
22
22
  }) => Promise<{
23
23
  id: string;
24
- createdAt: string;
25
- updatedAt: string;
26
24
  headersSchema: unknown;
27
25
  contextVariables: Record<string, ContextFetchDefinition> | null;
26
+ createdAt: string;
27
+ updatedAt: string;
28
28
  agentId: string;
29
29
  projectId: string;
30
30
  tenantId: string;
@@ -43,10 +43,10 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
43
43
  }>;
44
44
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
45
45
  id: string;
46
- createdAt: string;
47
- updatedAt: string;
48
46
  headersSchema: unknown;
49
47
  contextVariables: Record<string, ContextFetchDefinition> | null;
48
+ createdAt: string;
49
+ updatedAt: string;
50
50
  agentId: string;
51
51
  projectId: string;
52
52
  tenantId: string;
@@ -83,10 +83,10 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
83
83
  data: ContextConfigInsert;
84
84
  }) => Promise<{
85
85
  id: string;
86
- createdAt: string;
87
- updatedAt: string;
88
86
  headersSchema: unknown;
89
87
  contextVariables: Record<string, ContextFetchDefinition> | null;
88
+ createdAt: string;
89
+ updatedAt: string;
90
90
  agentId: string;
91
91
  projectId: string;
92
92
  tenantId: string;
@@ -69,8 +69,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
69
69
  agentId: string;
70
70
  projectId: string;
71
71
  tenantId: string;
72
- dataComponentId: string;
73
72
  subAgentId: string;
73
+ dataComponentId: string;
74
74
  }>;
75
75
  /**
76
76
  * Remove association between data component and agent
@@ -111,8 +111,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
111
111
  agentId: string;
112
112
  projectId: string;
113
113
  tenantId: string;
114
- dataComponentId: string;
115
114
  subAgentId: string;
115
+ dataComponentId: string;
116
116
  } | null>;
117
117
  /**
118
118
  * Count data components for a tenant/project
@@ -54,13 +54,13 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
56
  id: string;
57
- name: string;
58
57
  createdAt: string;
58
+ name: string;
59
59
  updatedAt: string;
60
- description: string | null;
61
60
  agentId: string;
62
61
  projectId: string;
63
62
  tenantId: string;
63
+ description: string | null;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -96,13 +96,13 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
98
  id: string;
99
- name: string;
100
99
  createdAt: string;
100
+ name: string;
101
101
  updatedAt: string;
102
- description: string | null;
103
102
  agentId: string;
104
103
  projectId: string;
105
104
  tenantId: string;
105
+ description: string | null;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -167,10 +167,10 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
167
167
  agentId: string;
168
168
  projectId: string;
169
169
  tenantId: string;
170
- subAgentId: string;
171
170
  toolPolicies: Record<string, {
172
171
  needsApproval?: boolean;
173
172
  }> | null;
173
+ subAgentId: string;
174
174
  functionToolId: string;
175
175
  }>;
176
176
  /**
@@ -232,10 +232,10 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
232
232
  agentId: string;
233
233
  projectId: string;
234
234
  tenantId: string;
235
- subAgentId: string;
236
235
  toolPolicies: Record<string, {
237
236
  needsApproval?: boolean;
238
237
  }> | null;
238
+ subAgentId: string;
239
239
  functionToolId: string;
240
240
  }>;
241
241
  //#endregion
@@ -11,12 +11,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- headers: Record<string, string> | null;
15
14
  agentId: string;
16
15
  projectId: string;
17
16
  tenantId: string;
18
- subAgentId: string;
17
+ headers: Record<string, string> | null;
19
18
  externalAgentId: string;
19
+ subAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: SubAgentScopeConfig;
@@ -46,12 +46,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- headers: Record<string, string> | null;
50
49
  agentId: string;
51
50
  projectId: string;
52
51
  tenantId: string;
53
- subAgentId: string;
52
+ headers: Record<string, string> | null;
54
53
  externalAgentId: string;
54
+ subAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
@@ -59,12 +59,12 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- headers: Record<string, string> | null;
63
62
  agentId: string;
64
63
  projectId: string;
65
64
  tenantId: string;
66
- subAgentId: string;
65
+ headers: Record<string, string> | null;
67
66
  externalAgentId: string;
67
+ subAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -182,12 +182,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
182
182
  id: string;
183
183
  createdAt: string;
184
184
  updatedAt: string;
185
- headers: Record<string, string> | null;
186
185
  agentId: string;
187
186
  projectId: string;
188
187
  tenantId: string;
189
- subAgentId: string;
188
+ headers: Record<string, string> | null;
190
189
  externalAgentId: string;
190
+ subAgentId: string;
191
191
  }>;
192
192
  /**
193
193
  * Check if sub-agent external agent relation exists by params
@@ -199,12 +199,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
199
199
  id: string;
200
200
  createdAt: string;
201
201
  updatedAt: string;
202
- headers: Record<string, string> | null;
203
202
  agentId: string;
204
203
  projectId: string;
205
204
  tenantId: string;
206
- subAgentId: string;
205
+ headers: Record<string, string> | null;
207
206
  externalAgentId: string;
207
+ subAgentId: string;
208
208
  } | undefined>;
209
209
  /**
210
210
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -220,12 +220,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
220
220
  id: string;
221
221
  createdAt: string;
222
222
  updatedAt: string;
223
- headers: Record<string, string> | null;
224
223
  agentId: string;
225
224
  projectId: string;
226
225
  tenantId: string;
227
- subAgentId: string;
226
+ headers: Record<string, string> | null;
228
227
  externalAgentId: string;
228
+ subAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;
@@ -206,16 +206,16 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
206
206
  id: string;
207
207
  createdAt: string;
208
208
  updatedAt: string;
209
- headers: Record<string, string> | null;
210
209
  agentId: string;
211
210
  projectId: string;
212
211
  tenantId: string;
212
+ headers: Record<string, string> | null;
213
213
  toolId: string;
214
- subAgentId: string;
215
- selectedTools: string[] | null;
216
214
  toolPolicies: Record<string, {
217
215
  needsApproval?: boolean;
218
216
  }> | null;
217
+ subAgentId: string;
218
+ selectedTools: string[] | null;
219
219
  }>;
220
220
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
221
221
  scopes: AgentScopeConfig;
@@ -250,16 +250,16 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
250
250
  id: string;
251
251
  createdAt: string;
252
252
  updatedAt: string;
253
- headers: Record<string, string> | null;
254
253
  agentId: string;
255
254
  projectId: string;
256
255
  tenantId: string;
256
+ headers: Record<string, string> | null;
257
257
  toolId: string;
258
- subAgentId: string;
259
- selectedTools: string[] | null;
260
258
  toolPolicies: Record<string, {
261
259
  needsApproval?: boolean;
262
260
  }> | null;
261
+ subAgentId: string;
262
+ selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
265
265
  scopes: SubAgentScopeConfig;
@@ -11,10 +11,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- headers: Record<string, string> | null;
15
14
  agentId: string;
16
15
  projectId: string;
17
16
  tenantId: string;
17
+ headers: Record<string, string> | null;
18
18
  subAgentId: string;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
@@ -46,10 +46,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- headers: Record<string, string> | null;
50
49
  agentId: string;
51
50
  projectId: string;
52
51
  tenantId: string;
52
+ headers: Record<string, string> | null;
53
53
  subAgentId: string;
54
54
  targetAgentId: string;
55
55
  }[]>;
@@ -59,10 +59,10 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- headers: Record<string, string> | null;
63
62
  agentId: string;
64
63
  projectId: string;
65
64
  tenantId: string;
65
+ headers: Record<string, string> | null;
66
66
  subAgentId: string;
67
67
  targetAgentId: string;
68
68
  }[]>;
@@ -212,10 +212,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
212
212
  id: string;
213
213
  createdAt: string;
214
214
  updatedAt: string;
215
- headers: Record<string, string> | null;
216
215
  agentId: string;
217
216
  projectId: string;
218
217
  tenantId: string;
218
+ headers: Record<string, string> | null;
219
219
  subAgentId: string;
220
220
  targetAgentId: string;
221
221
  }>;
@@ -229,10 +229,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
229
229
  id: string;
230
230
  createdAt: string;
231
231
  updatedAt: string;
232
- headers: Record<string, string> | null;
233
232
  agentId: string;
234
233
  projectId: string;
235
234
  tenantId: string;
235
+ headers: Record<string, string> | null;
236
236
  subAgentId: string;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
@@ -250,10 +250,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
250
250
  id: string;
251
251
  createdAt: string;
252
252
  updatedAt: string;
253
- headers: Record<string, string> | null;
254
253
  agentId: string;
255
254
  projectId: string;
256
255
  tenantId: string;
256
+ headers: Record<string, string> | null;
257
257
  subAgentId: string;
258
258
  targetAgentId: string;
259
259
  }>;
@@ -9,13 +9,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  subAgentId: string;
10
10
  }) => Promise<{
11
11
  id: string;
12
- name: string;
13
12
  createdAt: string;
13
+ name: string;
14
14
  updatedAt: string;
15
- description: string | null;
16
15
  agentId: string;
17
16
  projectId: string;
18
17
  tenantId: string;
18
+ description: string | null;
19
19
  models: {
20
20
  base?: {
21
21
  model?: string | undefined;
@@ -40,13 +40,13 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
41
41
  }) => Promise<{
42
42
  id: string;
43
- name: string;
44
43
  createdAt: string;
44
+ name: string;
45
45
  updatedAt: string;
46
- description: string | null;
47
46
  agentId: string;
48
47
  projectId: string;
49
48
  tenantId: string;
49
+ description: string | null;
50
50
  models: {
51
51
  base?: {
52
52
  model?: string | undefined;
@@ -109,13 +109,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
109
109
  }>;
110
110
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
111
111
  id: string;
112
- name: string;
113
112
  createdAt: string;
113
+ name: string;
114
114
  updatedAt: string;
115
- description: string | null;
116
115
  agentId: string;
117
116
  projectId: string;
118
117
  tenantId: string;
118
+ description: string | null;
119
119
  models: {
120
120
  base?: {
121
121
  model?: string | undefined;
@@ -19,13 +19,13 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
19
19
  toolId: string;
20
20
  }) => Promise<{
21
21
  id: string;
22
- name: string;
23
22
  createdAt: string;
23
+ name: string;
24
24
  updatedAt: string;
25
- description: string | null;
26
- headers: Record<string, string> | null;
27
25
  projectId: string;
28
26
  tenantId: string;
27
+ description: string | null;
28
+ headers: Record<string, string> | null;
29
29
  config: {
30
30
  type: "mcp";
31
31
  mcp: ToolMcpConfig;
@@ -77,13 +77,13 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
77
77
  }>;
78
78
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
79
79
  id: string;
80
- name: string;
81
80
  createdAt: string;
81
+ name: string;
82
82
  updatedAt: string;
83
- description: string | null;
84
- headers: Record<string, string> | null;
85
83
  projectId: string;
86
84
  tenantId: string;
85
+ description: string | null;
86
+ headers: Record<string, string> | null;
87
87
  config: {
88
88
  type: "mcp";
89
89
  mcp: ToolMcpConfig;
@@ -136,16 +136,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
136
136
  id: string;
137
137
  createdAt: string;
138
138
  updatedAt: string;
139
- headers: Record<string, string> | null;
140
139
  agentId: string;
141
140
  projectId: string;
142
141
  tenantId: string;
142
+ headers: Record<string, string> | null;
143
143
  toolId: string;
144
- subAgentId: string;
145
- selectedTools: string[] | null;
146
144
  toolPolicies: Record<string, {
147
145
  needsApproval?: boolean;
148
146
  }> | null;
147
+ subAgentId: string;
148
+ selectedTools: string[] | null;
149
149
  }>;
150
150
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
151
151
  scopes: AgentScopeConfig;
@@ -155,16 +155,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
155
155
  id: string;
156
156
  createdAt: string;
157
157
  updatedAt: string;
158
- headers: Record<string, string> | null;
159
158
  agentId: string;
160
159
  projectId: string;
161
160
  tenantId: string;
161
+ headers: Record<string, string> | null;
162
162
  toolId: string;
163
- subAgentId: string;
164
- selectedTools: string[] | null;
165
163
  toolPolicies: Record<string, {
166
164
  needsApproval?: boolean;
167
165
  }> | null;
166
+ subAgentId: string;
167
+ selectedTools: string[] | null;
168
168
  }>;
169
169
  /**
170
170
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -183,16 +183,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
183
183
  id: string;
184
184
  createdAt: string;
185
185
  updatedAt: string;
186
- headers: Record<string, string> | null;
187
186
  agentId: string;
188
187
  projectId: string;
189
188
  tenantId: string;
189
+ headers: Record<string, string> | null;
190
190
  toolId: string;
191
- subAgentId: string;
192
- selectedTools: string[] | null;
193
191
  toolPolicies: Record<string, {
194
192
  needsApproval?: boolean;
195
193
  }> | null;
194
+ subAgentId: string;
195
+ selectedTools: string[] | null;
196
196
  }>;
197
197
  /**
198
198
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -201,13 +201,13 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
201
201
  data: ToolInsert;
202
202
  }) => Promise<{
203
203
  id: string;
204
- name: string;
205
204
  createdAt: string;
205
+ name: string;
206
206
  updatedAt: string;
207
- description: string | null;
208
- headers: Record<string, string> | null;
209
207
  projectId: string;
210
208
  tenantId: string;
209
+ description: string | null;
210
+ headers: Record<string, string> | null;
211
211
  config: {
212
212
  type: "mcp";
213
213
  mcp: ToolMcpConfig;