@inkeep/agents-core 0.0.0-dev-20260107164002 → 0.0.0-dev-20260107203022

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.
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
+ tenantId: string;
57
+ projectId: string;
56
58
  id: string;
57
59
  name: string;
58
- createdAt: string;
59
- updatedAt: string;
60
- projectId: string;
61
- tenantId: string;
62
60
  description: string | null;
63
61
  agentId: string;
62
+ createdAt: string;
63
+ updatedAt: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
95
95
  data: FunctionToolApiInsert;
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
+ tenantId: string;
99
+ projectId: string;
98
100
  id: string;
99
101
  name: string;
100
- createdAt: string;
101
- updatedAt: string;
102
- projectId: string;
103
- tenantId: string;
104
102
  description: string | null;
105
103
  agentId: string;
104
+ createdAt: string;
105
+ updatedAt: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
@@ -9,15 +9,15 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
9
9
  scopes: ProjectScopeConfig;
10
10
  messageId: string;
11
11
  }) => Promise<{
12
+ tenantId: string;
13
+ projectId: string;
12
14
  id: string;
13
- conversationId: string;
14
15
  createdAt: string;
15
16
  updatedAt: string;
16
- projectId: string;
17
- tenantId: string;
18
17
  metadata: MessageMetadata | null;
19
18
  content: MessageContent;
20
19
  role: string;
20
+ conversationId: string;
21
21
  fromSubAgentId: string | null;
22
22
  toSubAgentId: string | null;
23
23
  fromExternalAgentId: string | null;
@@ -140,15 +140,15 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
140
140
  id: string;
141
141
  }[]>;
142
142
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
143
+ tenantId: string;
144
+ projectId: string;
143
145
  id: string;
144
- conversationId: string;
145
146
  createdAt: string;
146
147
  updatedAt: string;
147
- projectId: string;
148
- tenantId: string;
149
148
  metadata: MessageMetadata | null;
150
149
  content: MessageContent;
151
150
  role: string;
151
+ conversationId: string;
152
152
  fromSubAgentId: string | null;
153
153
  toSubAgentId: string | null;
154
154
  fromExternalAgentId: string | null;
@@ -193,15 +193,15 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
193
193
  scopes: ProjectScopeConfig;
194
194
  messageId: string;
195
195
  }) => Promise<{
196
+ tenantId: string;
197
+ projectId: string;
196
198
  id: string;
197
- conversationId: string;
198
199
  createdAt: string;
199
200
  updatedAt: string;
200
- projectId: string;
201
- tenantId: string;
202
201
  metadata: MessageMetadata | null;
203
202
  content: MessageContent;
204
203
  role: string;
204
+ conversationId: string;
205
205
  fromSubAgentId: string | null;
206
206
  toSubAgentId: string | null;
207
207
  fromExternalAgentId: string | null;
@@ -8,15 +8,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
11
13
  id: string;
14
+ agentId: string;
12
15
  createdAt: string;
13
16
  updatedAt: string;
14
- projectId: string;
15
- tenantId: string;
16
- agentId: string;
17
17
  headers: Record<string, string> | null;
18
- subAgentId: string;
19
18
  externalAgentId: string;
19
+ subAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
22
22
  scopes: SubAgentScopeConfig;
@@ -43,28 +43,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
43
43
  declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
+ tenantId: string;
47
+ projectId: string;
46
48
  id: string;
49
+ agentId: string;
47
50
  createdAt: string;
48
51
  updatedAt: string;
49
- projectId: string;
50
- tenantId: string;
51
- agentId: string;
52
52
  headers: Record<string, string> | null;
53
- subAgentId: string;
54
53
  externalAgentId: string;
54
+ subAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
+ tenantId: string;
60
+ projectId: string;
59
61
  id: string;
62
+ agentId: string;
60
63
  createdAt: string;
61
64
  updatedAt: string;
62
- projectId: string;
63
- tenantId: string;
64
- agentId: string;
65
65
  headers: Record<string, string> | null;
66
- subAgentId: string;
67
66
  externalAgentId: string;
67
+ subAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -179,15 +179,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
179
179
  headers?: Record<string, string> | null;
180
180
  };
181
181
  }) => Promise<{
182
+ tenantId: string;
183
+ projectId: string;
182
184
  id: string;
185
+ agentId: string;
183
186
  createdAt: string;
184
187
  updatedAt: string;
185
- projectId: string;
186
- tenantId: string;
187
- agentId: string;
188
188
  headers: Record<string, string> | null;
189
- subAgentId: string;
190
189
  externalAgentId: string;
190
+ subAgentId: string;
191
191
  }>;
192
192
  /**
193
193
  * Check if sub-agent external agent relation exists by params
@@ -196,15 +196,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
196
196
  scopes: SubAgentScopeConfig;
197
197
  externalAgentId: string;
198
198
  }) => Promise<{
199
+ tenantId: string;
200
+ projectId: string;
199
201
  id: string;
202
+ agentId: string;
200
203
  createdAt: string;
201
204
  updatedAt: string;
202
- projectId: string;
203
- tenantId: string;
204
- agentId: string;
205
205
  headers: Record<string, string> | null;
206
- subAgentId: string;
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)
@@ -217,15 +217,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
217
217
  headers?: Record<string, string> | null;
218
218
  };
219
219
  }) => Promise<{
220
+ tenantId: string;
221
+ projectId: string;
220
222
  id: string;
223
+ agentId: string;
221
224
  createdAt: string;
222
225
  updatedAt: string;
223
- projectId: string;
224
- tenantId: string;
225
- agentId: string;
226
226
  headers: Record<string, string> | null;
227
- subAgentId: string;
228
227
  externalAgentId: string;
228
+ subAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;
@@ -8,12 +8,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
8
8
  scopes: AgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
11
13
  id: string;
14
+ agentId: string;
12
15
  createdAt: string;
13
16
  updatedAt: string;
14
- projectId: string;
15
- tenantId: 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: DatabaseClient) => (params: {
43
43
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
+ tenantId: string;
47
+ projectId: string;
46
48
  id: string;
49
+ agentId: string;
47
50
  createdAt: string;
48
51
  updatedAt: string;
49
- projectId: string;
50
- tenantId: 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: DatabaseClient) => (params: {
56
56
  declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
+ tenantId: string;
60
+ projectId: string;
59
61
  id: string;
62
+ agentId: string;
60
63
  createdAt: string;
61
64
  updatedAt: string;
62
- projectId: string;
63
- tenantId: 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: DatabaseClient) => (params: {
125
125
  }[];
126
126
  }>;
127
127
  declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
128
+ tenantId: string;
129
+ projectId: string;
128
130
  id: string;
131
+ agentId: string;
129
132
  createdAt: string;
130
133
  updatedAt: string;
131
- projectId: string;
132
- tenantId: 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: DatabaseClient) => (params: {
144
144
  targetSubAgentId?: string;
145
145
  relationType: string;
146
146
  }) => Promise<{
147
+ tenantId: string;
148
+ projectId: string;
147
149
  id: string;
150
+ agentId: string;
148
151
  createdAt: string;
149
152
  updatedAt: string;
150
- projectId: string;
151
- tenantId: 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: DatabaseClient) => (params: {
158
158
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
159
159
  */
160
160
  declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
161
+ tenantId: string;
162
+ projectId: string;
161
163
  id: string;
164
+ agentId: string;
162
165
  createdAt: string;
163
166
  updatedAt: string;
164
- projectId: string;
165
- tenantId: string;
166
- agentId: string;
167
167
  sourceSubAgentId: string;
168
168
  targetSubAgentId: string | null;
169
169
  relationType: string | null;
@@ -203,19 +203,19 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
203
203
  }> | null;
204
204
  };
205
205
  }) => Promise<{
206
+ tenantId: string;
207
+ projectId: string;
206
208
  id: string;
209
+ agentId: string;
207
210
  createdAt: string;
208
211
  updatedAt: string;
209
- projectId: string;
210
- tenantId: string;
211
- agentId: string;
212
- headers: Record<string, string> | null;
213
212
  toolId: string;
214
- subAgentId: string;
215
- selectedTools: string[] | null;
213
+ headers: Record<string, 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: DatabaseClient) => (params: {
221
221
  scopes: AgentScopeConfig;
@@ -247,19 +247,19 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
247
247
  scopes: SubAgentScopeConfig;
248
248
  relationId: string;
249
249
  }) => Promise<{
250
+ tenantId: string;
251
+ projectId: string;
250
252
  id: string;
253
+ agentId: string;
251
254
  createdAt: string;
252
255
  updatedAt: string;
253
- projectId: string;
254
- tenantId: string;
255
- agentId: string;
256
- headers: Record<string, string> | null;
257
256
  toolId: string;
258
- subAgentId: string;
259
- selectedTools: string[] | null;
257
+ headers: Record<string, 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: DatabaseClient) => (params: {
265
265
  scopes: SubAgentScopeConfig;
@@ -8,12 +8,12 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
11
13
  id: string;
14
+ agentId: string;
12
15
  createdAt: string;
13
16
  updatedAt: string;
14
- projectId: string;
15
- tenantId: string;
16
- agentId: string;
17
17
  headers: Record<string, string> | null;
18
18
  subAgentId: string;
19
19
  targetAgentId: string;
@@ -43,12 +43,12 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
43
43
  declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
+ tenantId: string;
47
+ projectId: string;
46
48
  id: string;
49
+ agentId: string;
47
50
  createdAt: string;
48
51
  updatedAt: string;
49
- projectId: string;
50
- tenantId: string;
51
- agentId: string;
52
52
  headers: Record<string, string> | null;
53
53
  subAgentId: string;
54
54
  targetAgentId: string;
@@ -56,12 +56,12 @@ declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
+ tenantId: string;
60
+ projectId: string;
59
61
  id: string;
62
+ agentId: string;
60
63
  createdAt: string;
61
64
  updatedAt: string;
62
- projectId: string;
63
- tenantId: string;
64
- agentId: string;
65
65
  headers: Record<string, string> | null;
66
66
  subAgentId: string;
67
67
  targetAgentId: string;
@@ -209,12 +209,12 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
209
209
  headers?: Record<string, string> | null;
210
210
  };
211
211
  }) => Promise<{
212
+ tenantId: string;
213
+ projectId: string;
212
214
  id: string;
215
+ agentId: string;
213
216
  createdAt: string;
214
217
  updatedAt: string;
215
- projectId: string;
216
- tenantId: string;
217
- agentId: string;
218
218
  headers: Record<string, string> | null;
219
219
  subAgentId: string;
220
220
  targetAgentId: string;
@@ -226,12 +226,12 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
226
226
  scopes: SubAgentScopeConfig;
227
227
  targetAgentId: string;
228
228
  }) => Promise<{
229
+ tenantId: string;
230
+ projectId: string;
229
231
  id: string;
232
+ agentId: string;
230
233
  createdAt: string;
231
234
  updatedAt: string;
232
- projectId: string;
233
- tenantId: string;
234
- agentId: string;
235
235
  headers: Record<string, string> | null;
236
236
  subAgentId: string;
237
237
  targetAgentId: string;
@@ -247,12 +247,12 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
247
247
  headers?: Record<string, string> | null;
248
248
  };
249
249
  }) => Promise<{
250
+ tenantId: string;
251
+ projectId: string;
250
252
  id: string;
253
+ agentId: string;
251
254
  createdAt: string;
252
255
  updatedAt: string;
253
- projectId: string;
254
- tenantId: string;
255
- agentId: string;
256
256
  headers: Record<string, string> | null;
257
257
  subAgentId: string;
258
258
  targetAgentId: string;
@@ -8,13 +8,15 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
8
8
  scopes: AgentScopeConfig;
9
9
  subAgentId: string;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
11
13
  id: string;
12
14
  name: string;
15
+ description: string | null;
16
+ prompt: string | null;
17
+ agentId: string;
13
18
  createdAt: string;
14
19
  updatedAt: string;
15
- projectId: string;
16
- tenantId: string;
17
- description: string | null;
18
20
  models: {
19
21
  base?: {
20
22
  model?: string | undefined;
@@ -32,20 +34,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
32
34
  stopWhen: {
33
35
  stepCountIs?: number | undefined;
34
36
  } | null;
35
- agentId: string;
36
- prompt: string | null;
37
37
  conversationHistoryConfig: ConversationHistoryConfig | null;
38
38
  } | undefined>;
39
39
  declare const listSubAgents: (db: DatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
41
41
  }) => Promise<{
42
+ tenantId: string;
43
+ projectId: string;
42
44
  id: string;
43
45
  name: string;
46
+ description: string | null;
47
+ prompt: string | null;
48
+ agentId: string;
44
49
  createdAt: string;
45
50
  updatedAt: string;
46
- projectId: string;
47
- tenantId: string;
48
- description: string | null;
49
51
  models: {
50
52
  base?: {
51
53
  model?: string | undefined;
@@ -63,8 +65,6 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
63
65
  stopWhen: {
64
66
  stepCountIs?: number | undefined;
65
67
  } | null;
66
- agentId: string;
67
- prompt: string | null;
68
68
  conversationHistoryConfig: ConversationHistoryConfig | null;
69
69
  }[]>;
70
70
  declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
@@ -108,13 +108,15 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
108
108
  };
109
109
  }>;
110
110
  declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
111
+ tenantId: string;
112
+ projectId: string;
111
113
  id: string;
112
114
  name: string;
115
+ description: string | null;
116
+ prompt: string | null;
117
+ agentId: string;
113
118
  createdAt: string;
114
119
  updatedAt: string;
115
- projectId: string;
116
- tenantId: string;
117
- description: string | null;
118
120
  models: {
119
121
  base?: {
120
122
  model?: string | undefined;
@@ -132,8 +134,6 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
132
134
  stopWhen: {
133
135
  stepCountIs?: number | undefined;
134
136
  } | null;
135
- agentId: string;
136
- prompt: string | null;
137
137
  conversationHistoryConfig: ConversationHistoryConfig | null;
138
138
  }>;
139
139
  declare const updateSubAgent: (db: DatabaseClient) => (params: {
@@ -6,13 +6,13 @@ import { DatabaseClient } from "../db/client.js";
6
6
 
7
7
  //#region src/data-access/tasks.d.ts
8
8
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
9
+ tenantId: string;
10
+ projectId: string;
9
11
  id: string;
12
+ agentId: string;
10
13
  createdAt: string;
11
14
  updatedAt: string;
12
- projectId: string;
13
- tenantId: string;
14
15
  metadata: TaskMetadataConfig | null;
15
- agentId: string;
16
16
  status: string;
17
17
  contextId: string;
18
18
  subAgentId: string;
@@ -12,19 +12,19 @@ declare const getToolById: (db: DatabaseClient) => (params: {
12
12
  scopes: ProjectScopeConfig;
13
13
  toolId: string;
14
14
  }) => Promise<{
15
+ tenantId: string;
16
+ projectId: string;
15
17
  id: string;
16
18
  name: string;
17
- createdAt: string;
18
- updatedAt: string;
19
- projectId: string;
20
- tenantId: string;
21
19
  description: string | null;
22
- headers: Record<string, string> | null;
23
20
  config: {
24
21
  type: "mcp";
25
22
  mcp: ToolMcpConfig;
26
23
  };
27
24
  credentialReferenceId: string | null;
25
+ createdAt: string;
26
+ updatedAt: string;
27
+ headers: Record<string, string> | null;
28
28
  credentialScope: string;
29
29
  imageUrl: string | null;
30
30
  capabilities: ToolServerCapabilities | null;
@@ -61,19 +61,19 @@ declare const listTools: (db: DatabaseClient) => (params: {
61
61
  };
62
62
  }>;
63
63
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
64
+ tenantId: string;
65
+ projectId: string;
64
66
  id: string;
65
67
  name: string;
66
- createdAt: string;
67
- updatedAt: string;
68
- projectId: string;
69
- tenantId: string;
70
68
  description: string | null;
71
- headers: Record<string, string> | null;
72
69
  config: {
73
70
  type: "mcp";
74
71
  mcp: ToolMcpConfig;
75
72
  };
76
73
  credentialReferenceId: string | null;
74
+ createdAt: string;
75
+ updatedAt: string;
76
+ headers: Record<string, string> | null;
77
77
  credentialScope: string;
78
78
  imageUrl: string | null;
79
79
  capabilities: ToolServerCapabilities | null;
@@ -116,38 +116,38 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
116
116
  needsApproval?: boolean;
117
117
  }> | null;
118
118
  }) => Promise<{
119
+ tenantId: string;
120
+ projectId: string;
119
121
  id: string;
122
+ agentId: string;
120
123
  createdAt: string;
121
124
  updatedAt: string;
122
- projectId: string;
123
- tenantId: string;
124
- agentId: string;
125
- headers: Record<string, string> | null;
126
125
  toolId: string;
127
- subAgentId: string;
128
- selectedTools: string[] | null;
126
+ headers: Record<string, string> | null;
129
127
  toolPolicies: Record<string, {
130
128
  needsApproval?: boolean;
131
129
  }> | null;
130
+ subAgentId: string;
131
+ selectedTools: string[] | null;
132
132
  }>;
133
133
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
134
134
  scopes: AgentScopeConfig;
135
135
  subAgentId: string;
136
136
  toolId: string;
137
137
  }) => Promise<{
138
+ tenantId: string;
139
+ projectId: string;
138
140
  id: string;
141
+ agentId: string;
139
142
  createdAt: string;
140
143
  updatedAt: string;
141
- projectId: string;
142
- tenantId: string;
143
- agentId: string;
144
- headers: Record<string, string> | null;
145
144
  toolId: string;
146
- subAgentId: string;
147
- selectedTools: string[] | null;
145
+ headers: Record<string, string> | null;
148
146
  toolPolicies: Record<string, {
149
147
  needsApproval?: boolean;
150
148
  }> | null;
149
+ subAgentId: string;
150
+ selectedTools: string[] | null;
151
151
  }>;
152
152
  /**
153
153
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -163,19 +163,19 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
163
163
  }> | null;
164
164
  relationId?: string;
165
165
  }) => Promise<{
166
+ tenantId: string;
167
+ projectId: string;
166
168
  id: string;
169
+ agentId: string;
167
170
  createdAt: string;
168
171
  updatedAt: string;
169
- projectId: string;
170
- tenantId: string;
171
- agentId: string;
172
- headers: Record<string, string> | null;
173
172
  toolId: string;
174
- subAgentId: string;
175
- selectedTools: string[] | null;
173
+ headers: Record<string, string> | null;
176
174
  toolPolicies: Record<string, {
177
175
  needsApproval?: boolean;
178
176
  }> | null;
177
+ subAgentId: string;
178
+ selectedTools: string[] | null;
179
179
  }>;
180
180
  /**
181
181
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -183,19 +183,19 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
183
183
  declare const upsertTool: (db: DatabaseClient) => (params: {
184
184
  data: ToolInsert;
185
185
  }) => Promise<{
186
+ tenantId: string;
187
+ projectId: string;
186
188
  id: string;
187
189
  name: string;
188
- createdAt: string;
189
- updatedAt: string;
190
- projectId: string;
191
- tenantId: string;
192
190
  description: string | null;
193
- headers: Record<string, string> | null;
194
191
  config: {
195
192
  type: "mcp";
196
193
  mcp: ToolMcpConfig;
197
194
  };
198
195
  credentialReferenceId: string | null;
196
+ createdAt: string;
197
+ updatedAt: string;
198
+ headers: Record<string, string> | null;
199
199
  credentialScope: string;
200
200
  imageUrl: string | null;
201
201
  capabilities: ToolServerCapabilities | null;