@inkeep/agents-core 0.0.0-dev-20260406183632 → 0.0.0-dev-20260406200043

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 (32) hide show
  1. package/dist/auth/auth-schema.d.ts +108 -108
  2. package/dist/auth/auth-validation-schemas.d.ts +17 -17
  3. package/dist/auth/auth.d.ts +6 -6
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/client-exports.d.ts +2 -2
  6. package/dist/client-exports.js +2 -2
  7. package/dist/data-access/manage/functionTools.d.ts +2 -2
  8. package/dist/data-access/manage/skills.d.ts +1 -1
  9. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
  10. package/dist/data-access/manage/subAgentRelations.d.ts +10 -10
  11. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
  12. package/dist/data-access/manage/tools.d.ts +6 -6
  13. package/dist/data-access/manage/triggers.d.ts +4 -4
  14. package/dist/data-access/runtime/apps.d.ts +10 -10
  15. package/dist/data-access/runtime/feedback.d.ts +2 -2
  16. package/dist/data-access/runtime/messages.d.ts +3 -3
  17. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  18. package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
  19. package/dist/db/manage/manage-schema.d.ts +453 -453
  20. package/dist/db/runtime/runtime-schema.d.ts +407 -407
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.js +2 -2
  23. package/dist/middleware/no-auth.d.ts +2 -2
  24. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  25. package/dist/validation/index.d.ts +2 -2
  26. package/dist/validation/index.js +2 -2
  27. package/dist/validation/schemas/shared.d.ts +3 -1
  28. package/dist/validation/schemas/shared.js +6 -1
  29. package/dist/validation/schemas/skills.d.ts +25 -25
  30. package/dist/validation/schemas.d.ts +1551 -1551
  31. package/dist/validation/schemas.js +5 -4
  32. package/package.json +1 -1
@@ -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;
19
18
  sourceSubAgentId: string;
20
19
  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;
54
53
  sourceSubAgentId: string;
55
54
  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;
67
66
  sourceSubAgentId: string;
68
67
  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;
136
135
  sourceSubAgentId: string;
137
136
  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;
155
154
  sourceSubAgentId: string;
156
155
  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;
169
168
  sourceSubAgentId: string;
170
169
  targetSubAgentId: string | null;
170
+ relationType: string | null;
171
171
  }>;
172
172
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
173
173
  scopes: AgentScopeConfig;
@@ -210,13 +210,13 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
210
210
  agentId: string;
211
211
  projectId: string;
212
212
  tenantId: string;
213
- headers: Record<string, string> | null;
214
213
  subAgentId: string;
214
+ headers: Record<string, string> | null;
215
215
  toolId: string;
216
- selectedTools: string[] | null;
217
216
  toolPolicies: Record<string, {
218
217
  needsApproval?: boolean;
219
218
  }> | null;
219
+ selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
222
222
  scopes: AgentScopeConfig;
@@ -254,13 +254,13 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
254
254
  agentId: string;
255
255
  projectId: string;
256
256
  tenantId: string;
257
- headers: Record<string, string> | null;
258
257
  subAgentId: string;
258
+ headers: Record<string, string> | null;
259
259
  toolId: string;
260
- selectedTools: string[] | null;
261
260
  toolPolicies: Record<string, {
262
261
  needsApproval?: boolean;
263
262
  }> | null;
263
+ selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -15,8 +15,8 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
15
15
  agentId: string;
16
16
  projectId: string;
17
17
  tenantId: string;
18
- headers: Record<string, string> | null;
19
18
  subAgentId: string;
19
+ headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -50,8 +50,8 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
50
50
  agentId: string;
51
51
  projectId: string;
52
52
  tenantId: string;
53
- headers: Record<string, string> | null;
54
53
  subAgentId: string;
54
+ headers: Record<string, string> | null;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -63,8 +63,8 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
63
63
  agentId: string;
64
64
  projectId: string;
65
65
  tenantId: string;
66
- headers: Record<string, string> | null;
67
66
  subAgentId: string;
67
+ headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -228,8 +228,8 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
228
228
  agentId: string;
229
229
  projectId: string;
230
230
  tenantId: string;
231
- headers: Record<string, string> | null;
232
231
  subAgentId: string;
232
+ headers: Record<string, string> | null;
233
233
  targetAgentId: string;
234
234
  }>;
235
235
  /**
@@ -245,8 +245,8 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
245
245
  agentId: string;
246
246
  projectId: string;
247
247
  tenantId: string;
248
- headers: Record<string, string> | null;
249
248
  subAgentId: string;
249
+ headers: Record<string, string> | null;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
252
252
  /**
@@ -266,8 +266,8 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
266
266
  agentId: string;
267
267
  projectId: string;
268
268
  tenantId: string;
269
- headers: Record<string, string> | null;
270
269
  subAgentId: string;
270
+ headers: Record<string, string> | null;
271
271
  targetAgentId: string;
272
272
  }>;
273
273
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -141,13 +141,13 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  agentId: string;
142
142
  projectId: string;
143
143
  tenantId: string;
144
- headers: Record<string, string> | null;
145
144
  subAgentId: string;
145
+ headers: Record<string, string> | null;
146
146
  toolId: string;
147
- selectedTools: string[] | null;
148
147
  toolPolicies: Record<string, {
149
148
  needsApproval?: boolean;
150
149
  }> | null;
150
+ selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
153
153
  scopes: AgentScopeConfig;
@@ -160,13 +160,13 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
160
160
  agentId: string;
161
161
  projectId: string;
162
162
  tenantId: string;
163
- headers: Record<string, string> | null;
164
163
  subAgentId: string;
164
+ headers: Record<string, string> | null;
165
165
  toolId: string;
166
- selectedTools: string[] | null;
167
166
  toolPolicies: Record<string, {
168
167
  needsApproval?: boolean;
169
168
  }> | 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)
@@ -188,13 +188,13 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
188
188
  agentId: string;
189
189
  projectId: string;
190
190
  tenantId: string;
191
- headers: Record<string, string> | null;
192
191
  subAgentId: string;
192
+ headers: Record<string, string> | null;
193
193
  toolId: string;
194
- selectedTools: string[] | null;
195
194
  toolPolicies: Record<string, {
196
195
  needsApproval?: boolean;
197
196
  }> | null;
197
+ selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
200
200
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -37,16 +37,16 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
37
37
  authentication: unknown;
38
38
  signingSecretCredentialReferenceId: string | null;
39
39
  signatureVerification: {
40
- algorithm: "md5" | "sha256" | "sha512" | "sha384" | "sha1";
41
- encoding: "base64" | "hex";
40
+ algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
+ encoding: "hex" | "base64";
42
42
  signature: {
43
- source: "query" | "body" | "header";
43
+ source: "query" | "header" | "body";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "body" | "header";
49
+ source: "literal" | "header" | "body";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -5,6 +5,8 @@ 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;
@@ -12,12 +14,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
12
14
  projectId: string | null;
13
15
  tenantId: string | null;
14
16
  description: string | null;
15
- type: AppType;
16
- enabled: boolean;
17
17
  prompt: string | null;
18
- lastUsedAt: string | null;
19
- defaultProjectId: string | null;
20
- defaultAgentId: string | null;
21
18
  config: {
22
19
  type: "web_client";
23
20
  webClient: {
@@ -35,6 +32,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
35
32
  type: "api";
36
33
  api: Record<string, never>;
37
34
  };
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,6 +61,8 @@ 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;
@@ -68,12 +70,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
68
70
  projectId: string | null;
69
71
  tenantId: string | null;
70
72
  description: string | null;
71
- type: AppType;
72
- enabled: boolean;
73
73
  prompt: string | null;
74
- lastUsedAt: string | null;
75
- defaultProjectId: string | null;
76
- defaultAgentId: string | null;
77
74
  config: {
78
75
  type: "web_client";
79
76
  webClient: {
@@ -91,6 +88,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
91
88
  type: "api";
92
89
  api: Record<string, never>;
93
90
  };
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;
@@ -58,12 +58,12 @@ declare const listFeedback: (db: AgentsRunDatabaseClient) => (params: {
58
58
  total: number;
59
59
  }>;
60
60
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
61
+ type: "positive" | "negative";
61
62
  id: string;
62
63
  createdAt: string;
63
64
  updatedAt: string;
64
65
  projectId: string;
65
66
  tenantId: string;
66
- type: "positive" | "negative";
67
67
  details: string | null;
68
68
  conversationId: string;
69
69
  messageId: string | null;
@@ -87,12 +87,12 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
87
87
  scopes: ProjectScopeConfig;
88
88
  feedbackId: string;
89
89
  }) => Promise<{
90
+ type: "positive" | "negative";
90
91
  id: string;
91
92
  createdAt: string;
92
93
  updatedAt: string;
93
94
  projectId: string;
94
95
  tenantId: string;
95
- type: "positive" | "negative";
96
96
  details: string | null;
97
97
  conversationId: string;
98
98
  messageId: string | null;
@@ -17,13 +17,13 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
17
17
  tenantId: string;
18
18
  metadata: MessageMetadata | null;
19
19
  content: MessageContent;
20
- role: string;
21
20
  fromSubAgentId: string | null;
22
21
  toSubAgentId: string | null;
23
22
  fromExternalAgentId: string | null;
24
23
  toExternalAgentId: string | null;
25
24
  taskId: string | null;
26
25
  a2aTaskId: string | null;
26
+ role: string;
27
27
  conversationId: string;
28
28
  fromTeamAgentId: string | null;
29
29
  toTeamAgentId: string | null;
@@ -151,13 +151,13 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
151
151
  tenantId: string;
152
152
  metadata: MessageMetadata | null;
153
153
  content: MessageContent;
154
- role: string;
155
154
  fromSubAgentId: string | null;
156
155
  toSubAgentId: string | null;
157
156
  fromExternalAgentId: string | null;
158
157
  toExternalAgentId: string | null;
159
158
  taskId: string | null;
160
159
  a2aTaskId: string | null;
160
+ role: string;
161
161
  conversationId: string;
162
162
  fromTeamAgentId: string | null;
163
163
  toTeamAgentId: string | null;
@@ -204,13 +204,13 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
204
204
  tenantId: string;
205
205
  metadata: MessageMetadata | null;
206
206
  content: MessageContent;
207
- role: string;
208
207
  fromSubAgentId: string | null;
209
208
  toSubAgentId: string | null;
210
209
  fromExternalAgentId: string | null;
211
210
  toExternalAgentId: string | null;
212
211
  taskId: string | null;
213
212
  a2aTaskId: string | null;
213
+ role: string;
214
214
  conversationId: string;
215
215
  fromTeamAgentId: string | null;
216
216
  toTeamAgentId: string | null;
@@ -40,7 +40,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;
43
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
43
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
44
44
  scheduledFor: string;
45
45
  startedAt: string | null;
46
46
  completedAt: string | null;
@@ -199,7 +199,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
199
199
  name: string;
200
200
  hash: string;
201
201
  } | null;
202
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
202
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
203
203
  scheduledFor: string;
204
204
  startedAt: string | null;
205
205
  completedAt: string | null;
@@ -239,7 +239,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
239
239
  name: string;
240
240
  hash: string;
241
241
  } | null;
242
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
242
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
243
243
  scheduledFor: string;
244
244
  startedAt: string | null;
245
245
  completedAt: string | null;
@@ -292,7 +292,7 @@ declare const listScheduledTriggerInvocationsByTriggerId: (db: AgentsRunDatabase
292
292
  name: string;
293
293
  hash: string;
294
294
  } | null;
295
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
295
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
296
296
  scheduledFor: string;
297
297
  startedAt: string | null;
298
298
  completedAt: string | null;
@@ -1,4 +1,4 @@
1
- import * as drizzle_orm_pg_core220 from "drizzle-orm/pg-core";
1
+ import * as drizzle_orm_pg_core2211 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_core220.jsonb>;
10
+ declare function jsonb(name: string): ReturnType<typeof drizzle_orm_pg_core2211.jsonb>;
11
11
  //#endregion
12
12
  export { decodeBackslashes, encodeBackslashes, jsonb };