@inkeep/agents-core 0.0.0-dev-20260409191739 → 0.0.0-dev-20260409202031

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 (55) hide show
  1. package/dist/auth/auth-schema.d.ts +108 -108
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/permissions.d.ts +9 -9
  4. package/dist/client-exports.d.ts +2 -2
  5. package/dist/client-exports.js +2 -2
  6. package/dist/constants/otel-attributes.d.ts +2 -0
  7. package/dist/constants/otel-attributes.js +2 -0
  8. package/dist/data-access/index.d.ts +2 -2
  9. package/dist/data-access/index.js +2 -2
  10. package/dist/data-access/manage/agentFull.js +23 -3
  11. package/dist/data-access/manage/agents.d.ts +20 -20
  12. package/dist/data-access/manage/agents.js +12 -1
  13. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  14. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  15. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  16. package/dist/data-access/manage/functionTools.d.ts +8 -8
  17. package/dist/data-access/manage/skills.d.ts +11 -11
  18. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
  19. package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
  20. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
  21. package/dist/data-access/manage/subAgents.d.ts +12 -12
  22. package/dist/data-access/manage/tools.d.ts +21 -21
  23. package/dist/data-access/manage/triggerCleanup.js +6 -1
  24. package/dist/data-access/manage/triggers.d.ts +60 -1
  25. package/dist/data-access/manage/triggers.js +88 -3
  26. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  27. package/dist/data-access/runtime/apps.d.ts +6 -6
  28. package/dist/data-access/runtime/conversations.d.ts +24 -24
  29. package/dist/data-access/runtime/feedback.d.ts +4 -4
  30. package/dist/data-access/runtime/messages.d.ts +21 -21
  31. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  32. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  33. package/dist/data-access/runtime/tasks.d.ts +5 -5
  34. package/dist/data-access/runtime/triggerInvocations.d.ts +2 -0
  35. package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
  36. package/dist/db/manage/manage-schema.d.ts +583 -447
  37. package/dist/db/manage/manage-schema.js +43 -2
  38. package/dist/db/runtime/runtime-schema.d.ts +443 -405
  39. package/dist/db/runtime/runtime-schema.js +4 -1
  40. package/dist/index.d.ts +4 -4
  41. package/dist/index.js +4 -4
  42. package/dist/utils/error.d.ts +51 -51
  43. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  44. package/dist/validation/index.d.ts +2 -2
  45. package/dist/validation/index.js +2 -2
  46. package/dist/validation/schemas/skills.d.ts +58 -58
  47. package/dist/validation/schemas.d.ts +2238 -2044
  48. package/dist/validation/schemas.js +35 -13
  49. package/drizzle/manage/0018_gorgeous_captain_america.sql +14 -0
  50. package/drizzle/manage/meta/0018_snapshot.json +3884 -0
  51. package/drizzle/manage/meta/_journal.json +7 -0
  52. package/drizzle/runtime/0035_many_steel_serpent.sql +3 -0
  53. package/drizzle/runtime/meta/0035_snapshot.json +5321 -0
  54. package/drizzle/runtime/meta/_journal.json +7 -0
  55. package/package.json +1 -1
@@ -15,20 +15,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
15
  total: number;
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
+ title: string | null;
18
19
  id: string;
19
- createdAt: string;
20
- updatedAt: string;
20
+ metadata: ConversationMetadata | null;
21
21
  ref: {
22
22
  type: "commit" | "tag" | "branch";
23
23
  name: string;
24
24
  hash: string;
25
25
  } | null;
26
- userId: string | null;
27
- metadata: ConversationMetadata | null;
28
- title: string | null;
29
- tenantId: string;
26
+ createdAt: string;
27
+ updatedAt: string;
30
28
  projectId: string;
29
+ tenantId: string;
31
30
  agentId: string | null;
31
+ userId: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -84,20 +84,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
84
  scopes: ProjectScopeConfig;
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
+ title: string | null;
87
88
  id: string;
88
- createdAt: string;
89
- updatedAt: string;
89
+ metadata: ConversationMetadata | null;
90
90
  ref: {
91
91
  type: "commit" | "tag" | "branch";
92
92
  name: string;
93
93
  hash: string;
94
94
  } | null;
95
- userId: string | null;
96
- metadata: ConversationMetadata | null;
97
- title: string | null;
98
- tenantId: string;
95
+ createdAt: string;
96
+ updatedAt: string;
99
97
  projectId: string;
98
+ tenantId: string;
100
99
  agentId: string | null;
100
+ userId: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -120,20 +120,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
120
120
  metadata?: ConversationMetadata | null | undefined;
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
+ title: string | null;
123
124
  id: string;
124
- createdAt: string;
125
- updatedAt: string;
125
+ metadata: ConversationMetadata | null;
126
126
  ref: {
127
127
  type: "commit" | "tag" | "branch";
128
128
  name: string;
129
129
  hash: string;
130
130
  } | null;
131
- userId: string | null;
132
- metadata: ConversationMetadata | null;
133
- title: string | null;
134
- tenantId: string;
131
+ createdAt: string;
132
+ updatedAt: string;
135
133
  projectId: string;
134
+ tenantId: string;
136
135
  agentId: string | null;
136
+ userId: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -152,20 +152,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
152
  scopes: ProjectScopeConfig;
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
+ title: string | null;
155
156
  id: string;
156
- createdAt: string;
157
- updatedAt: string;
157
+ metadata: ConversationMetadata | null;
158
158
  ref: {
159
159
  type: "commit" | "tag" | "branch";
160
160
  name: string;
161
161
  hash: string;
162
162
  } | null;
163
- userId: string | null;
164
- metadata: ConversationMetadata | null;
165
- title: string | null;
166
- tenantId: string;
163
+ createdAt: string;
164
+ updatedAt: string;
167
165
  projectId: string;
166
+ tenantId: string;
168
167
  agentId: string | null;
168
+ userId: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -62,11 +62,11 @@ declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: Feedback
62
62
  id: string;
63
63
  createdAt: string;
64
64
  updatedAt: string;
65
- tenantId: string;
66
65
  projectId: string;
66
+ tenantId: string;
67
+ details: string | null;
67
68
  conversationId: string;
68
69
  messageId: string | null;
69
- details: string | null;
70
70
  }>;
71
71
  declare const updateFeedback: (db: AgentsRunDatabaseClient) => (params: {
72
72
  scopes: ProjectScopeConfig;
@@ -91,11 +91,11 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
91
91
  id: string;
92
92
  createdAt: string;
93
93
  updatedAt: string;
94
- tenantId: string;
95
94
  projectId: string;
95
+ tenantId: string;
96
+ details: string | null;
96
97
  conversationId: string;
97
98
  messageId: string | null;
98
- details: string | null;
99
99
  }>;
100
100
  //#endregion
101
101
  export { createFeedback, deleteFeedback, getFeedbackById, listFeedback, listFeedbackByConversation, updateFeedback };
@@ -11,25 +11,25 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
11
11
  messageId: string;
12
12
  }) => Promise<{
13
13
  id: string;
14
+ content: MessageContent;
15
+ metadata: MessageMetadata | null;
14
16
  createdAt: string;
15
17
  updatedAt: string;
16
- metadata: MessageMetadata | null;
17
- role: string;
18
- tenantId: string;
19
18
  projectId: string;
20
- content: MessageContent;
21
- conversationId: string;
19
+ tenantId: string;
22
20
  fromSubAgentId: string | null;
23
21
  toSubAgentId: string | null;
24
22
  fromExternalAgentId: string | null;
25
23
  toExternalAgentId: string | null;
24
+ taskId: string | null;
25
+ a2aTaskId: string | null;
26
+ conversationId: string;
27
+ role: string;
26
28
  fromTeamAgentId: string | null;
27
29
  toTeamAgentId: string | null;
28
30
  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: {
@@ -145,25 +145,25 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
145
145
  data: Omit<MessageInsert, "tenantId" | "projectId">;
146
146
  }) => Promise<{
147
147
  id: string;
148
+ content: MessageContent;
149
+ metadata: MessageMetadata | null;
148
150
  createdAt: string;
149
151
  updatedAt: string;
150
- metadata: MessageMetadata | null;
151
- role: string;
152
- tenantId: string;
153
152
  projectId: string;
154
- content: MessageContent;
155
- conversationId: string;
153
+ tenantId: string;
156
154
  fromSubAgentId: string | null;
157
155
  toSubAgentId: string | null;
158
156
  fromExternalAgentId: string | null;
159
157
  toExternalAgentId: string | null;
158
+ taskId: string | null;
159
+ a2aTaskId: string | null;
160
+ conversationId: string;
161
+ role: string;
160
162
  fromTeamAgentId: string | null;
161
163
  toTeamAgentId: string | null;
162
164
  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: {
@@ -198,25 +198,25 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
198
198
  messageId: string;
199
199
  }) => Promise<{
200
200
  id: string;
201
+ content: MessageContent;
202
+ metadata: MessageMetadata | null;
201
203
  createdAt: string;
202
204
  updatedAt: string;
203
- metadata: MessageMetadata | null;
204
- role: string;
205
- tenantId: string;
206
205
  projectId: string;
207
- content: MessageContent;
208
- conversationId: string;
206
+ tenantId: string;
209
207
  fromSubAgentId: string | null;
210
208
  toSubAgentId: string | null;
211
209
  fromExternalAgentId: string | null;
212
210
  toExternalAgentId: string | null;
211
+ taskId: string | null;
212
+ a2aTaskId: string | null;
213
+ conversationId: string;
214
+ role: string;
213
215
  fromTeamAgentId: string | null;
214
216
  toTeamAgentId: string | null;
215
217
  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" | "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;
@@ -16,8 +16,8 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
16
16
  userId: string;
17
17
  }) => Promise<{
18
18
  createdAt: string;
19
- userId: string;
20
19
  tenantId: string;
20
+ userId: string;
21
21
  scheduledTriggerId: string;
22
22
  }>;
23
23
  declare const deleteScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (params: {
@@ -7,18 +7,18 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
7
7
 
8
8
  //#region src/data-access/runtime/tasks.d.ts
9
9
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
10
+ status: string;
10
11
  id: string;
11
- createdAt: string;
12
- updatedAt: string;
12
+ metadata: TaskMetadataConfig | null;
13
13
  ref: {
14
14
  type: "commit" | "tag" | "branch";
15
15
  name: string;
16
16
  hash: string;
17
17
  } | null;
18
- metadata: TaskMetadataConfig | null;
19
- status: string;
20
- tenantId: string;
18
+ createdAt: string;
19
+ updatedAt: string;
21
20
  projectId: string;
21
+ tenantId: string;
22
22
  agentId: string;
23
23
  subAgentId: string;
24
24
  contextId: string;
@@ -28,6 +28,8 @@ declare const listTriggerInvocationsPaginated: (db: AgentsRunDatabaseClient) =>
28
28
  data: {
29
29
  triggerId: string;
30
30
  conversationId: string | null;
31
+ runAsUserId: string | null;
32
+ batchId: string | null;
31
33
  ref: {
32
34
  type: "commit" | "tag" | "branch";
33
35
  name: string;
@@ -1,4 +1,4 @@
1
- import * as drizzle_orm_pg_core484 from "drizzle-orm/pg-core";
1
+ import * as drizzle_orm_pg_core1399 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_core484.jsonb>;
10
+ declare function jsonb(name: string): ReturnType<typeof drizzle_orm_pg_core1399.jsonb>;
11
11
  //#endregion
12
12
  export { decodeBackslashes, encodeBackslashes, jsonb };