@inkeep/agents-core 0.0.0-dev-20260130213111 → 0.0.0-dev-20260131014302

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.
@@ -8,24 +8,24 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
8
8
  scopes: AgentScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
11
  id: string;
14
- agentId: string;
15
12
  createdAt: string;
16
13
  updatedAt: string;
14
+ tenantId: string;
15
+ projectId: string;
16
+ agentId: string;
17
17
  headersSchema: unknown;
18
18
  contextVariables: Record<string, ContextFetchDefinition> | null;
19
19
  } | undefined>;
20
20
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
21
21
  scopes: AgentScopeConfig;
22
22
  }) => Promise<{
23
- tenantId: string;
24
- projectId: string;
25
23
  id: string;
26
- agentId: string;
27
24
  createdAt: string;
28
25
  updatedAt: string;
26
+ tenantId: string;
27
+ projectId: string;
28
+ agentId: string;
29
29
  headersSchema: unknown;
30
30
  contextVariables: Record<string, ContextFetchDefinition> | null;
31
31
  }[]>;
@@ -42,12 +42,12 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
42
42
  };
43
43
  }>;
44
44
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
45
- tenantId: string;
46
- projectId: string;
47
45
  id: string;
48
- agentId: string;
49
46
  createdAt: string;
50
47
  updatedAt: string;
48
+ tenantId: string;
49
+ projectId: string;
50
+ agentId: string;
51
51
  headersSchema: unknown;
52
52
  contextVariables: Record<string, ContextFetchDefinition> | null;
53
53
  }>;
@@ -82,12 +82,12 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
82
82
  declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
83
83
  data: ContextConfigInsert;
84
84
  }) => Promise<{
85
- tenantId: string;
86
- projectId: string;
87
85
  id: string;
88
- agentId: string;
89
86
  createdAt: string;
90
87
  updatedAt: string;
88
+ tenantId: string;
89
+ projectId: string;
90
+ agentId: string;
91
91
  headersSchema: unknown;
92
92
  contextVariables: Record<string, ContextFetchDefinition> | null;
93
93
  }>;
@@ -64,13 +64,13 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
64
64
  scopes: SubAgentScopeConfig;
65
65
  dataComponentId: string;
66
66
  }) => Promise<{
67
+ id: string;
68
+ createdAt: string;
67
69
  tenantId: string;
68
70
  projectId: string;
69
- id: string;
70
71
  agentId: string;
71
- createdAt: string;
72
- dataComponentId: string;
73
72
  subAgentId: string;
73
+ dataComponentId: string;
74
74
  }>;
75
75
  /**
76
76
  * Remove association between data component and agent
@@ -106,13 +106,13 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
106
106
  scopes: SubAgentScopeConfig;
107
107
  dataComponentId: string;
108
108
  }) => Promise<{
109
+ id: string;
110
+ createdAt: string;
109
111
  tenantId: string;
110
112
  projectId: string;
111
- id: string;
112
113
  agentId: string;
113
- createdAt: 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
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
- tenantId: string;
57
- projectId: string;
58
56
  id: string;
59
57
  name: string;
60
- description: string | null;
61
- agentId: string;
62
58
  createdAt: string;
63
59
  updatedAt: string;
60
+ description: string | null;
61
+ tenantId: string;
62
+ projectId: 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
- tenantId: string;
99
- projectId: string;
100
98
  id: string;
101
99
  name: string;
102
- description: string | null;
103
- agentId: string;
104
100
  createdAt: string;
105
101
  updatedAt: string;
102
+ description: string | null;
103
+ tenantId: string;
104
+ projectId: string;
105
+ agentId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -161,12 +161,12 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
161
161
  needsApproval?: boolean;
162
162
  }> | null;
163
163
  }) => Promise<{
164
- tenantId: string;
165
- projectId: string;
166
164
  id: string;
167
- agentId: string;
168
165
  createdAt: string;
169
166
  updatedAt: string;
167
+ tenantId: string;
168
+ projectId: string;
169
+ agentId: string;
170
170
  toolPolicies: Record<string, {
171
171
  needsApproval?: boolean;
172
172
  }> | null;
@@ -226,12 +226,12 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
226
226
  needsApproval?: boolean;
227
227
  }> | null;
228
228
  }) => Promise<{
229
- tenantId: string;
230
- projectId: string;
231
229
  id: string;
232
- agentId: string;
233
230
  createdAt: string;
234
231
  updatedAt: string;
232
+ tenantId: string;
233
+ projectId: string;
234
+ agentId: string;
235
235
  toolPolicies: Record<string, {
236
236
  needsApproval?: boolean;
237
237
  }> | null;
@@ -8,13 +8,13 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
11
  id: string;
14
- agentId: string;
15
12
  createdAt: string;
16
13
  updatedAt: string;
17
14
  headers: Record<string, string> | null;
15
+ tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
18
  externalAgentId: string;
19
19
  subAgentId: string;
20
20
  } | undefined>;
@@ -43,26 +43,26 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
43
43
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
- tenantId: string;
47
- projectId: string;
48
46
  id: string;
49
- agentId: string;
50
47
  createdAt: string;
51
48
  updatedAt: string;
52
49
  headers: Record<string, string> | null;
50
+ tenantId: string;
51
+ projectId: string;
52
+ agentId: string;
53
53
  externalAgentId: string;
54
54
  subAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- tenantId: string;
60
- projectId: string;
61
59
  id: string;
62
- agentId: string;
63
60
  createdAt: string;
64
61
  updatedAt: string;
65
62
  headers: Record<string, string> | null;
63
+ tenantId: string;
64
+ projectId: string;
65
+ agentId: string;
66
66
  externalAgentId: string;
67
67
  subAgentId: string;
68
68
  }[]>;
@@ -179,13 +179,13 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
179
179
  headers?: Record<string, string> | null;
180
180
  };
181
181
  }) => Promise<{
182
- tenantId: string;
183
- projectId: string;
184
182
  id: string;
185
- agentId: string;
186
183
  createdAt: string;
187
184
  updatedAt: string;
188
185
  headers: Record<string, string> | null;
186
+ tenantId: string;
187
+ projectId: string;
188
+ agentId: string;
189
189
  externalAgentId: string;
190
190
  subAgentId: string;
191
191
  }>;
@@ -196,13 +196,13 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
196
196
  scopes: SubAgentScopeConfig;
197
197
  externalAgentId: string;
198
198
  }) => Promise<{
199
- tenantId: string;
200
- projectId: string;
201
199
  id: string;
202
- agentId: string;
203
200
  createdAt: string;
204
201
  updatedAt: string;
205
202
  headers: Record<string, string> | null;
203
+ tenantId: string;
204
+ projectId: string;
205
+ agentId: string;
206
206
  externalAgentId: string;
207
207
  subAgentId: string;
208
208
  } | undefined>;
@@ -217,13 +217,13 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
217
217
  headers?: Record<string, string> | null;
218
218
  };
219
219
  }) => Promise<{
220
- tenantId: string;
221
- projectId: string;
222
220
  id: string;
223
- agentId: string;
224
221
  createdAt: string;
225
222
  updatedAt: string;
226
223
  headers: Record<string, string> | null;
224
+ tenantId: string;
225
+ projectId: string;
226
+ agentId: string;
227
227
  externalAgentId: string;
228
228
  subAgentId: string;
229
229
  }>;
@@ -8,12 +8,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
8
8
  scopes: AgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
11
  id: string;
14
- agentId: string;
15
12
  createdAt: string;
16
13
  updatedAt: string;
14
+ tenantId: string;
15
+ projectId: string;
16
+ agentId: string;
17
17
  sourceSubAgentId: string;
18
18
  targetSubAgentId: string | null;
19
19
  relationType: string | null;
@@ -43,12 +43,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
43
43
  declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
- tenantId: string;
47
- projectId: string;
48
46
  id: string;
49
- agentId: string;
50
47
  createdAt: string;
51
48
  updatedAt: string;
49
+ tenantId: string;
50
+ projectId: string;
51
+ agentId: string;
52
52
  sourceSubAgentId: string;
53
53
  targetSubAgentId: string | null;
54
54
  relationType: string | null;
@@ -56,12 +56,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
56
56
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- tenantId: string;
60
- projectId: string;
61
59
  id: string;
62
- agentId: string;
63
60
  createdAt: string;
64
61
  updatedAt: string;
62
+ tenantId: string;
63
+ projectId: string;
64
+ agentId: string;
65
65
  sourceSubAgentId: string;
66
66
  targetSubAgentId: string | null;
67
67
  relationType: string | null;
@@ -125,12 +125,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
125
125
  }[];
126
126
  }>;
127
127
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
128
- tenantId: string;
129
- projectId: string;
130
128
  id: string;
131
- agentId: string;
132
129
  createdAt: string;
133
130
  updatedAt: string;
131
+ tenantId: string;
132
+ projectId: string;
133
+ agentId: string;
134
134
  sourceSubAgentId: string;
135
135
  targetSubAgentId: string | null;
136
136
  relationType: string | null;
@@ -144,12 +144,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
144
144
  targetSubAgentId?: string;
145
145
  relationType: string;
146
146
  }) => Promise<{
147
- tenantId: string;
148
- projectId: string;
149
147
  id: string;
150
- agentId: string;
151
148
  createdAt: string;
152
149
  updatedAt: string;
150
+ tenantId: string;
151
+ projectId: string;
152
+ agentId: string;
153
153
  sourceSubAgentId: string;
154
154
  targetSubAgentId: string | null;
155
155
  relationType: string | null;
@@ -158,12 +158,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
158
158
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
159
159
  */
160
160
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
161
- tenantId: string;
162
- projectId: string;
163
161
  id: string;
164
- agentId: string;
165
162
  createdAt: string;
166
163
  updatedAt: string;
164
+ tenantId: string;
165
+ projectId: string;
166
+ agentId: string;
167
167
  sourceSubAgentId: string;
168
168
  targetSubAgentId: string | null;
169
169
  relationType: string | null;
@@ -203,14 +203,14 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
203
203
  }> | null;
204
204
  };
205
205
  }) => Promise<{
206
- tenantId: string;
207
- projectId: string;
208
206
  id: string;
209
- agentId: string;
210
207
  createdAt: string;
211
208
  updatedAt: string;
212
- toolId: string;
213
209
  headers: Record<string, string> | null;
210
+ tenantId: string;
211
+ projectId: string;
212
+ agentId: string;
213
+ toolId: string;
214
214
  toolPolicies: Record<string, {
215
215
  needsApproval?: boolean;
216
216
  }> | null;
@@ -247,14 +247,14 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
247
247
  scopes: SubAgentScopeConfig;
248
248
  relationId: string;
249
249
  }) => Promise<{
250
- tenantId: string;
251
- projectId: string;
252
250
  id: string;
253
- agentId: string;
254
251
  createdAt: string;
255
252
  updatedAt: string;
256
- toolId: string;
257
253
  headers: Record<string, string> | null;
254
+ tenantId: string;
255
+ projectId: string;
256
+ agentId: string;
257
+ toolId: string;
258
258
  toolPolicies: Record<string, {
259
259
  needsApproval?: boolean;
260
260
  }> | null;
@@ -8,13 +8,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
11
  id: string;
14
- agentId: string;
15
12
  createdAt: string;
16
13
  updatedAt: string;
17
14
  headers: Record<string, string> | null;
15
+ tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
18
  subAgentId: string;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
@@ -43,26 +43,26 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
43
43
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
- tenantId: string;
47
- projectId: string;
48
46
  id: string;
49
- agentId: string;
50
47
  createdAt: string;
51
48
  updatedAt: string;
52
49
  headers: Record<string, string> | null;
50
+ tenantId: string;
51
+ projectId: string;
52
+ agentId: string;
53
53
  subAgentId: string;
54
54
  targetAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- tenantId: string;
60
- projectId: string;
61
59
  id: string;
62
- agentId: string;
63
60
  createdAt: string;
64
61
  updatedAt: string;
65
62
  headers: Record<string, string> | null;
63
+ tenantId: string;
64
+ projectId: string;
65
+ agentId: string;
66
66
  subAgentId: string;
67
67
  targetAgentId: string;
68
68
  }[]>;
@@ -209,13 +209,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
209
209
  headers?: Record<string, string> | null;
210
210
  };
211
211
  }) => Promise<{
212
- tenantId: string;
213
- projectId: string;
214
212
  id: string;
215
- agentId: string;
216
213
  createdAt: string;
217
214
  updatedAt: string;
218
215
  headers: Record<string, string> | null;
216
+ tenantId: string;
217
+ projectId: string;
218
+ agentId: string;
219
219
  subAgentId: string;
220
220
  targetAgentId: string;
221
221
  }>;
@@ -226,13 +226,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
226
226
  scopes: SubAgentScopeConfig;
227
227
  targetAgentId: string;
228
228
  }) => Promise<{
229
- tenantId: string;
230
- projectId: string;
231
229
  id: string;
232
- agentId: string;
233
230
  createdAt: string;
234
231
  updatedAt: string;
235
232
  headers: Record<string, string> | null;
233
+ tenantId: string;
234
+ projectId: string;
235
+ agentId: string;
236
236
  subAgentId: string;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
@@ -247,13 +247,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
247
247
  headers?: Record<string, string> | null;
248
248
  };
249
249
  }) => Promise<{
250
- tenantId: string;
251
- projectId: string;
252
250
  id: string;
253
- agentId: string;
254
251
  createdAt: string;
255
252
  updatedAt: string;
256
253
  headers: Record<string, string> | null;
254
+ tenantId: string;
255
+ projectId: string;
256
+ agentId: string;
257
257
  subAgentId: string;
258
258
  targetAgentId: string;
259
259
  }>;
@@ -8,15 +8,15 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: AgentScopeConfig;
9
9
  subAgentId: string;
10
10
  }) => Promise<{
11
- tenantId: string;
12
- projectId: string;
13
11
  id: string;
14
12
  name: string;
13
+ createdAt: string;
14
+ updatedAt: string;
15
15
  description: string | null;
16
+ tenantId: string;
17
+ projectId: string;
16
18
  prompt: string | null;
17
19
  agentId: string;
18
- createdAt: string;
19
- updatedAt: string;
20
20
  models: {
21
21
  base?: {
22
22
  model?: string | undefined;
@@ -39,15 +39,15 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
39
39
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
41
41
  }) => Promise<{
42
- tenantId: string;
43
- projectId: string;
44
42
  id: string;
45
43
  name: string;
44
+ createdAt: string;
45
+ updatedAt: string;
46
46
  description: string | null;
47
+ tenantId: string;
48
+ projectId: string;
47
49
  prompt: string | null;
48
50
  agentId: string;
49
- createdAt: string;
50
- updatedAt: string;
51
51
  models: {
52
52
  base?: {
53
53
  model?: string | undefined;
@@ -108,15 +108,15 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
108
108
  };
109
109
  }>;
110
110
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
111
- tenantId: string;
112
- projectId: string;
113
111
  id: string;
114
112
  name: string;
113
+ createdAt: string;
114
+ updatedAt: string;
115
115
  description: string | null;
116
+ tenantId: string;
117
+ projectId: string;
116
118
  prompt: string | null;
117
119
  agentId: string;
118
- createdAt: string;
119
- updatedAt: string;
120
120
  models: {
121
121
  base?: {
122
122
  model?: string | undefined;
@@ -18,19 +18,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
18
18
  scopes: ProjectScopeConfig;
19
19
  toolId: string;
20
20
  }) => Promise<{
21
- tenantId: string;
22
- projectId: string;
23
21
  id: string;
24
22
  name: string;
23
+ createdAt: string;
24
+ updatedAt: string;
25
25
  description: string | null;
26
+ headers: Record<string, string> | null;
27
+ tenantId: string;
28
+ projectId: string;
26
29
  config: {
27
30
  type: "mcp";
28
31
  mcp: ToolMcpConfig;
29
32
  };
30
33
  credentialReferenceId: string | null;
31
- createdAt: string;
32
- updatedAt: string;
33
- headers: Record<string, string> | null;
34
34
  credentialScope: string;
35
35
  imageUrl: string | null;
36
36
  capabilities: ToolServerCapabilities | null;
@@ -74,19 +74,19 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
74
74
  };
75
75
  }>;
76
76
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
77
- tenantId: string;
78
- projectId: string;
79
77
  id: string;
80
78
  name: string;
79
+ createdAt: string;
80
+ updatedAt: string;
81
81
  description: string | null;
82
+ headers: Record<string, string> | null;
83
+ tenantId: string;
84
+ projectId: string;
82
85
  config: {
83
86
  type: "mcp";
84
87
  mcp: ToolMcpConfig;
85
88
  };
86
89
  credentialReferenceId: string | null;
87
- createdAt: string;
88
- updatedAt: string;
89
- headers: Record<string, string> | null;
90
90
  credentialScope: string;
91
91
  imageUrl: string | null;
92
92
  capabilities: ToolServerCapabilities | null;
@@ -129,14 +129,14 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
129
129
  needsApproval?: boolean;
130
130
  }> | null;
131
131
  }) => Promise<{
132
- tenantId: string;
133
- projectId: string;
134
132
  id: string;
135
- agentId: string;
136
133
  createdAt: string;
137
134
  updatedAt: string;
138
- toolId: string;
139
135
  headers: Record<string, string> | null;
136
+ tenantId: string;
137
+ projectId: string;
138
+ agentId: string;
139
+ toolId: string;
140
140
  toolPolicies: Record<string, {
141
141
  needsApproval?: boolean;
142
142
  }> | null;
@@ -148,14 +148,14 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
148
148
  subAgentId: string;
149
149
  toolId: string;
150
150
  }) => Promise<{
151
- tenantId: string;
152
- projectId: string;
153
151
  id: string;
154
- agentId: string;
155
152
  createdAt: string;
156
153
  updatedAt: string;
157
- toolId: string;
158
154
  headers: Record<string, string> | null;
155
+ tenantId: string;
156
+ projectId: string;
157
+ agentId: string;
158
+ toolId: string;
159
159
  toolPolicies: Record<string, {
160
160
  needsApproval?: boolean;
161
161
  }> | null;
@@ -176,14 +176,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
176
176
  }> | null;
177
177
  relationId?: string;
178
178
  }) => Promise<{
179
- tenantId: string;
180
- projectId: string;
181
179
  id: string;
182
- agentId: string;
183
180
  createdAt: string;
184
181
  updatedAt: string;
185
- toolId: string;
186
182
  headers: Record<string, string> | null;
183
+ tenantId: string;
184
+ projectId: string;
185
+ agentId: string;
186
+ toolId: string;
187
187
  toolPolicies: Record<string, {
188
188
  needsApproval?: boolean;
189
189
  }> | null;
@@ -196,19 +196,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
196
196
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
197
197
  data: ToolInsert;
198
198
  }) => Promise<{
199
- tenantId: string;
200
- projectId: string;
201
199
  id: string;
202
200
  name: string;
201
+ createdAt: string;
202
+ updatedAt: string;
203
203
  description: string | null;
204
+ headers: Record<string, string> | null;
205
+ tenantId: string;
206
+ projectId: string;
204
207
  config: {
205
208
  type: "mcp";
206
209
  mcp: ToolMcpConfig;
207
210
  };
208
211
  credentialReferenceId: string | null;
209
- createdAt: string;
210
- updatedAt: string;
211
- headers: Record<string, string> | null;
212
212
  credentialScope: string;
213
213
  imageUrl: string | null;
214
214
  capabilities: ToolServerCapabilities | null;