@inkeep/agents-core 0.64.6 → 0.64.8

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.
@@ -164,10 +164,10 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
164
164
  projectId: string;
165
165
  tenantId: string;
166
166
  subAgentId: string;
167
- functionToolId: string;
168
167
  toolPolicies: Record<string, {
169
168
  needsApproval?: boolean;
170
169
  }> | null;
170
+ functionToolId: string;
171
171
  }>;
172
172
  /**
173
173
  * Update an agent-function tool relation
@@ -229,10 +229,10 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
229
229
  projectId: string;
230
230
  tenantId: string;
231
231
  subAgentId: string;
232
- functionToolId: string;
233
232
  toolPolicies: Record<string, {
234
233
  needsApproval?: boolean;
235
234
  }> | null;
235
+ functionToolId: string;
236
236
  }>;
237
237
  //#endregion
238
238
  export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
@@ -146,9 +146,9 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
146
146
  projectId: string;
147
147
  tenantId: string;
148
148
  subAgentId: string;
149
+ skillId: string;
149
150
  index: number;
150
151
  alwaysLoaded: boolean;
151
- skillId: string;
152
152
  }>;
153
153
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
154
154
  scopes: AgentScopeConfig;
@@ -15,9 +15,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
15
15
  agentId: string;
16
16
  projectId: string;
17
17
  tenantId: string;
18
+ relationType: string | null;
18
19
  sourceSubAgentId: string;
19
20
  targetSubAgentId: string | null;
20
- relationType: string | null;
21
21
  } | undefined>;
22
22
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: AgentScopeConfig;
@@ -50,9 +50,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
50
50
  agentId: string;
51
51
  projectId: string;
52
52
  tenantId: string;
53
+ relationType: string | null;
53
54
  sourceSubAgentId: string;
54
55
  targetSubAgentId: string | null;
55
- relationType: string | null;
56
56
  }[]>;
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
@@ -63,9 +63,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
63
63
  agentId: string;
64
64
  projectId: string;
65
65
  tenantId: string;
66
+ relationType: string | null;
66
67
  sourceSubAgentId: string;
67
68
  targetSubAgentId: string | null;
68
- relationType: string | null;
69
69
  }[]>;
70
70
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -132,9 +132,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
132
132
  agentId: string;
133
133
  projectId: string;
134
134
  tenantId: string;
135
+ relationType: string | null;
135
136
  sourceSubAgentId: string;
136
137
  targetSubAgentId: string | null;
137
- relationType: string | null;
138
138
  }>;
139
139
  /**
140
140
  * Check if sub-agent relation exists by agent, source, target, and relation type
@@ -151,9 +151,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
151
151
  agentId: string;
152
152
  projectId: string;
153
153
  tenantId: string;
154
+ relationType: string | null;
154
155
  sourceSubAgentId: string;
155
156
  targetSubAgentId: string | null;
156
- relationType: string | null;
157
157
  } | undefined>;
158
158
  /**
159
159
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
@@ -165,9 +165,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
165
165
  agentId: string;
166
166
  projectId: string;
167
167
  tenantId: string;
168
+ relationType: string | null;
168
169
  sourceSubAgentId: string;
169
170
  targetSubAgentId: string | null;
170
- relationType: string | null;
171
171
  }>;
172
172
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
173
173
  scopes: AgentScopeConfig;
@@ -211,12 +211,12 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
211
211
  agentId: string;
212
212
  projectId: string;
213
213
  tenantId: string;
214
- toolId: string;
215
214
  subAgentId: string;
215
+ toolId: string;
216
+ selectedTools: string[] | null;
216
217
  toolPolicies: Record<string, {
217
218
  needsApproval?: boolean;
218
219
  }> | null;
219
- selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
222
222
  scopes: AgentScopeConfig;
@@ -255,12 +255,12 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
255
255
  agentId: string;
256
256
  projectId: string;
257
257
  tenantId: string;
258
- toolId: string;
259
258
  subAgentId: string;
259
+ toolId: string;
260
+ selectedTools: string[] | null;
260
261
  toolPolicies: Record<string, {
261
262
  needsApproval?: boolean;
262
263
  }> | null;
263
- selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -142,12 +142,12 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
142
142
  agentId: string;
143
143
  projectId: string;
144
144
  tenantId: string;
145
- toolId: string;
146
145
  subAgentId: string;
146
+ toolId: string;
147
+ selectedTools: string[] | null;
147
148
  toolPolicies: Record<string, {
148
149
  needsApproval?: boolean;
149
150
  }> | null;
150
- selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
153
153
  scopes: AgentScopeConfig;
@@ -161,12 +161,12 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
161
161
  agentId: string;
162
162
  projectId: string;
163
163
  tenantId: string;
164
- toolId: string;
165
164
  subAgentId: string;
165
+ toolId: string;
166
+ selectedTools: string[] | null;
166
167
  toolPolicies: Record<string, {
167
168
  needsApproval?: boolean;
168
169
  }> | null;
169
- selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
172
172
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -189,12 +189,12 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
189
189
  agentId: string;
190
190
  projectId: string;
191
191
  tenantId: string;
192
- toolId: string;
193
192
  subAgentId: string;
193
+ toolId: string;
194
+ selectedTools: string[] | null;
194
195
  toolPolicies: Record<string, {
195
196
  needsApproval?: boolean;
196
197
  }> | null;
197
- selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
200
200
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -5,16 +5,19 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
5
5
 
6
6
  //#region src/data-access/runtime/apps.d.ts
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
+ type: AppType;
9
+ enabled: boolean;
8
10
  id: string;
9
11
  name: string;
10
12
  createdAt: string;
11
13
  updatedAt: string;
12
14
  description: string | null;
13
- enabled: boolean;
14
- type: AppType;
15
15
  projectId: string | null;
16
16
  tenantId: string | null;
17
17
  prompt: string | null;
18
+ lastUsedAt: string | null;
19
+ defaultProjectId: string | null;
20
+ defaultAgentId: string | null;
18
21
  config: {
19
22
  type: "web_client";
20
23
  webClient: {
@@ -32,9 +35,6 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
32
35
  type: "api";
33
36
  api: Record<string, never>;
34
37
  };
35
- lastUsedAt: string | null;
36
- defaultProjectId: string | null;
37
- defaultAgentId: string | null;
38
38
  } | undefined>;
39
39
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
40
40
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -61,16 +61,19 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
61
61
  };
62
62
  }>;
63
63
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
64
+ type: AppType;
65
+ enabled: boolean;
64
66
  id: string;
65
67
  name: string;
66
68
  createdAt: string;
67
69
  updatedAt: string;
68
70
  description: string | null;
69
- enabled: boolean;
70
- type: AppType;
71
71
  projectId: string | null;
72
72
  tenantId: string | null;
73
73
  prompt: string | null;
74
+ lastUsedAt: string | null;
75
+ defaultProjectId: string | null;
76
+ defaultAgentId: string | null;
74
77
  config: {
75
78
  type: "web_client";
76
79
  webClient: {
@@ -88,9 +91,6 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
88
91
  type: "api";
89
92
  api: Record<string, never>;
90
93
  };
91
- lastUsedAt: string | null;
92
- defaultProjectId: string | null;
93
- defaultAgentId: string | null;
94
94
  }>;
95
95
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
96
96
  scopes: TenantScopeConfig;
@@ -18,18 +18,18 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
18
18
  projectId: string;
19
19
  tenantId: string;
20
20
  content: MessageContent;
21
- conversationId: string;
21
+ taskId: string | null;
22
+ visibility: string;
22
23
  fromSubAgentId: string | null;
23
24
  toSubAgentId: string | null;
24
25
  fromExternalAgentId: string | null;
25
26
  toExternalAgentId: string | null;
27
+ a2aTaskId: string | null;
28
+ conversationId: string;
26
29
  fromTeamAgentId: string | null;
27
30
  toTeamAgentId: string | null;
28
- visibility: string;
29
31
  messageType: string;
30
- taskId: string | null;
31
32
  parentMessageId: string | null;
32
- a2aTaskId: string | null;
33
33
  a2aSessionId: string | null;
34
34
  } | undefined>;
35
35
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -152,18 +152,18 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
152
152
  projectId: string;
153
153
  tenantId: string;
154
154
  content: MessageContent;
155
- conversationId: string;
155
+ taskId: string | null;
156
+ visibility: string;
156
157
  fromSubAgentId: string | null;
157
158
  toSubAgentId: string | null;
158
159
  fromExternalAgentId: string | null;
159
160
  toExternalAgentId: string | null;
161
+ a2aTaskId: string | null;
162
+ conversationId: string;
160
163
  fromTeamAgentId: string | null;
161
164
  toTeamAgentId: string | null;
162
- visibility: string;
163
165
  messageType: string;
164
- taskId: string | null;
165
166
  parentMessageId: string | null;
166
- a2aTaskId: string | null;
167
167
  a2aSessionId: string | null;
168
168
  }>;
169
169
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -205,18 +205,18 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
205
205
  projectId: string;
206
206
  tenantId: string;
207
207
  content: MessageContent;
208
- conversationId: string;
208
+ taskId: string | null;
209
+ visibility: string;
209
210
  fromSubAgentId: string | null;
210
211
  toSubAgentId: string | null;
211
212
  fromExternalAgentId: string | null;
212
213
  toExternalAgentId: string | null;
214
+ a2aTaskId: string | null;
215
+ conversationId: string;
213
216
  fromTeamAgentId: string | null;
214
217
  toTeamAgentId: string | null;
215
- visibility: string;
216
218
  messageType: string;
217
- taskId: string | null;
218
219
  parentMessageId: string | null;
219
- a2aTaskId: string | null;
220
220
  a2aSessionId: string | null;
221
221
  }>;
222
222
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -40,7 +40,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;
43
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
43
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
44
44
  scheduledFor: string;
45
45
  startedAt: string | null;
46
46
  completedAt: string | null;
@@ -194,7 +194,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
194
194
  name: string;
195
195
  hash: string;
196
196
  } | null;
197
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
197
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
198
198
  scheduledFor: string;
199
199
  startedAt: string | null;
200
200
  completedAt: string | null;
@@ -233,7 +233,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
233
233
  name: string;
234
234
  hash: string;
235
235
  } | null;
236
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
236
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
237
237
  scheduledFor: string;
238
238
  startedAt: string | null;
239
239
  completedAt: string | null;
@@ -285,7 +285,7 @@ declare const listScheduledTriggerInvocationsByTriggerId: (db: AgentsRunDatabase
285
285
  name: string;
286
286
  hash: string;
287
287
  } | null;
288
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
288
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
289
289
  scheduledFor: string;
290
290
  startedAt: string | null;
291
291
  completedAt: string | null;
@@ -20,8 +20,8 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
20
20
  agentId: string;
21
21
  projectId: string;
22
22
  tenantId: string;
23
- contextId: string;
24
23
  subAgentId: string;
24
+ contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
27
27
  id: string;
@@ -1,4 +1,4 @@
1
- import * as drizzle_orm_pg_core1809 from "drizzle-orm/pg-core";
1
+ import * as drizzle_orm_pg_core220 from "drizzle-orm/pg-core";
2
2
 
3
3
  //#region src/db/manage/dolt-safe-jsonb.d.ts
4
4
  declare function encodeBackslashes(value: unknown): unknown;
@@ -7,6 +7,6 @@ declare function decodeBackslashes(value: unknown): unknown;
7
7
  * Drop-in replacement for drizzle-orm's `jsonb()`.
8
8
  * Encodes backslashes on write and decodes on read to work around the Doltgres bug.
9
9
  */
10
- declare function jsonb(name: string): ReturnType<typeof drizzle_orm_pg_core1809.jsonb>;
10
+ declare function jsonb(name: string): ReturnType<typeof drizzle_orm_pg_core220.jsonb>;
11
11
  //#endregion
12
12
  export { decodeBackslashes, encodeBackslashes, jsonb };