@inkeep/agents-core 0.0.0-dev-20260102022857 → 0.0.0-dev-20260105192809

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.
@@ -9,26 +9,26 @@ 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
15
  createdAt: string;
14
16
  updatedAt: string;
15
17
  metadata: MessageMetadata | null;
16
- role: string;
17
- tenantId: string;
18
- projectId: string;
19
18
  content: MessageContent;
20
19
  conversationId: string;
21
20
  fromSubAgentId: string | null;
22
21
  toSubAgentId: string | null;
23
22
  fromExternalAgentId: string | null;
24
23
  toExternalAgentId: string | null;
24
+ taskId: string | null;
25
+ a2aTaskId: string | null;
26
+ role: string;
25
27
  fromTeamAgentId: string | null;
26
28
  toTeamAgentId: string | null;
27
29
  visibility: string;
28
30
  messageType: string;
29
- taskId: string | null;
30
31
  parentMessageId: string | null;
31
- a2aTaskId: string | null;
32
32
  a2aSessionId: string | null;
33
33
  } | undefined>;
34
34
  declare const listMessages: (db: DatabaseClient) => (params: {
@@ -140,26 +140,26 @@ 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
146
  createdAt: string;
145
147
  updatedAt: string;
146
148
  metadata: MessageMetadata | null;
147
- role: string;
148
- tenantId: string;
149
- projectId: string;
150
149
  content: MessageContent;
151
150
  conversationId: string;
152
151
  fromSubAgentId: string | null;
153
152
  toSubAgentId: string | null;
154
153
  fromExternalAgentId: string | null;
155
154
  toExternalAgentId: string | null;
155
+ taskId: string | null;
156
+ a2aTaskId: string | null;
157
+ role: string;
156
158
  fromTeamAgentId: string | null;
157
159
  toTeamAgentId: string | null;
158
160
  visibility: string;
159
161
  messageType: string;
160
- taskId: string | null;
161
162
  parentMessageId: string | null;
162
- a2aTaskId: string | null;
163
163
  a2aSessionId: string | null;
164
164
  }>;
165
165
  declare const updateMessage: (db: DatabaseClient) => (params: {
@@ -193,26 +193,26 @@ 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
199
  createdAt: string;
198
200
  updatedAt: string;
199
201
  metadata: MessageMetadata | null;
200
- role: string;
201
- tenantId: string;
202
- projectId: string;
203
202
  content: MessageContent;
204
203
  conversationId: string;
205
204
  fromSubAgentId: string | null;
206
205
  toSubAgentId: string | null;
207
206
  fromExternalAgentId: string | null;
208
207
  toExternalAgentId: string | null;
208
+ taskId: string | null;
209
+ a2aTaskId: string | null;
210
+ role: string;
209
211
  fromTeamAgentId: string | null;
210
212
  toTeamAgentId: string | null;
211
213
  visibility: string;
212
214
  messageType: string;
213
- taskId: string | null;
214
215
  parentMessageId: string | null;
215
- a2aTaskId: string | null;
216
216
  a2aSessionId: string | null;
217
217
  }>;
218
218
  declare const countMessagesByConversation: (db: DatabaseClient) => (params: {
@@ -8,13 +8,13 @@ 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
17
  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: 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
52
  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: 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
65
  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: 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
188
  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: 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
205
  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: 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
226
  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: DatabaseClient) => (params: {
8
8
  scopes: AgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- id: string;
12
- createdAt: string;
13
- updatedAt: string;
14
11
  tenantId: string;
15
12
  projectId: string;
13
+ id: string;
16
14
  agentId: string;
15
+ createdAt: string;
16
+ updatedAt: 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
- id: string;
47
- createdAt: string;
48
- updatedAt: string;
49
46
  tenantId: string;
50
47
  projectId: string;
48
+ id: string;
51
49
  agentId: string;
50
+ createdAt: string;
51
+ updatedAt: 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
- id: string;
60
- createdAt: string;
61
- updatedAt: string;
62
59
  tenantId: string;
63
60
  projectId: string;
61
+ id: string;
64
62
  agentId: string;
63
+ createdAt: string;
64
+ updatedAt: 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
- id: string;
129
- createdAt: string;
130
- updatedAt: string;
131
128
  tenantId: string;
132
129
  projectId: string;
130
+ id: string;
133
131
  agentId: string;
132
+ createdAt: string;
133
+ updatedAt: 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
- id: string;
148
- createdAt: string;
149
- updatedAt: string;
150
147
  tenantId: string;
151
148
  projectId: string;
149
+ id: string;
152
150
  agentId: string;
151
+ createdAt: string;
152
+ updatedAt: 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
- id: string;
162
- createdAt: string;
163
- updatedAt: string;
164
161
  tenantId: string;
165
162
  projectId: string;
163
+ id: string;
166
164
  agentId: string;
165
+ createdAt: string;
166
+ updatedAt: string;
167
167
  sourceSubAgentId: string;
168
168
  targetSubAgentId: string | null;
169
169
  relationType: string | null;
@@ -203,14 +203,14 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
203
203
  }> | null;
204
204
  };
205
205
  }) => Promise<{
206
- id: string;
207
- createdAt: string;
208
- updatedAt: string;
209
- headers: Record<string, string> | null;
210
206
  tenantId: string;
211
207
  projectId: string;
208
+ id: string;
212
209
  agentId: string;
210
+ createdAt: string;
211
+ updatedAt: string;
213
212
  toolId: string;
213
+ headers: Record<string, string> | null;
214
214
  toolPolicies: Record<string, {
215
215
  needsApproval?: boolean;
216
216
  }> | null;
@@ -247,14 +247,14 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
247
247
  scopes: SubAgentScopeConfig;
248
248
  relationId: string;
249
249
  }) => Promise<{
250
- id: string;
251
- createdAt: string;
252
- updatedAt: string;
253
- headers: Record<string, string> | null;
254
250
  tenantId: string;
255
251
  projectId: string;
252
+ id: string;
256
253
  agentId: string;
254
+ createdAt: string;
255
+ updatedAt: string;
257
256
  toolId: string;
257
+ headers: Record<string, string> | null;
258
258
  toolPolicies: Record<string, {
259
259
  needsApproval?: boolean;
260
260
  }> | null;
@@ -8,13 +8,13 @@ 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
17
  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: 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
52
  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: 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
65
  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: 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
218
  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: 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
235
  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: 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
256
  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: 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;
13
- createdAt: string;
14
- updatedAt: string;
15
15
  description: string | null;
16
- tenantId: string;
17
- projectId: string;
18
16
  prompt: string | null;
19
17
  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: DatabaseClient) => (params: {
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;
44
- createdAt: string;
45
- updatedAt: string;
46
46
  description: string | null;
47
- tenantId: string;
48
- projectId: string;
49
47
  prompt: string | null;
50
48
  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: 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;
113
- createdAt: string;
114
- updatedAt: string;
115
115
  description: string | null;
116
- tenantId: string;
117
- projectId: string;
118
116
  prompt: string | null;
119
117
  agentId: string;
118
+ createdAt: string;
119
+ updatedAt: string;
120
120
  models: {
121
121
  base?: {
122
122
  model?: string | undefined;
@@ -6,15 +6,15 @@ 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
15
  metadata: TaskMetadataConfig | null;
13
- status: string;
14
- tenantId: string;
15
- projectId: string;
16
- agentId: string;
17
16
  contextId: string;
17
+ status: string;
18
18
  subAgentId: string;
19
19
  }>;
20
20
  declare const getTask: (db: DatabaseClient) => (params: {
@@ -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
19
  description: string | null;
20
- headers: Record<string, string> | null;
21
- tenantId: string;
22
- projectId: string;
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
68
  description: string | null;
69
- headers: Record<string, string> | null;
70
- tenantId: string;
71
- projectId: string;
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,14 +116,14 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
116
116
  needsApproval?: boolean;
117
117
  }> | null;
118
118
  }) => Promise<{
119
- id: string;
120
- createdAt: string;
121
- updatedAt: string;
122
- headers: Record<string, string> | null;
123
119
  tenantId: string;
124
120
  projectId: string;
121
+ id: string;
125
122
  agentId: string;
123
+ createdAt: string;
124
+ updatedAt: string;
126
125
  toolId: string;
126
+ headers: Record<string, string> | null;
127
127
  toolPolicies: Record<string, {
128
128
  needsApproval?: boolean;
129
129
  }> | null;
@@ -135,14 +135,14 @@ declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
135
135
  subAgentId: string;
136
136
  toolId: string;
137
137
  }) => Promise<{
138
- id: string;
139
- createdAt: string;
140
- updatedAt: string;
141
- headers: Record<string, string> | null;
142
138
  tenantId: string;
143
139
  projectId: string;
140
+ id: string;
144
141
  agentId: string;
142
+ createdAt: string;
143
+ updatedAt: string;
145
144
  toolId: string;
145
+ headers: Record<string, string> | null;
146
146
  toolPolicies: Record<string, {
147
147
  needsApproval?: boolean;
148
148
  }> | null;
@@ -163,14 +163,14 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
163
163
  }> | null;
164
164
  relationId?: string;
165
165
  }) => Promise<{
166
- id: string;
167
- createdAt: string;
168
- updatedAt: string;
169
- headers: Record<string, string> | null;
170
166
  tenantId: string;
171
167
  projectId: string;
168
+ id: string;
172
169
  agentId: string;
170
+ createdAt: string;
171
+ updatedAt: string;
173
172
  toolId: string;
173
+ headers: Record<string, string> | null;
174
174
  toolPolicies: Record<string, {
175
175
  needsApproval?: boolean;
176
176
  }> | null;
@@ -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
190
  description: string | null;
191
- headers: Record<string, string> | null;
192
- tenantId: string;
193
- projectId: string;
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;