@inkeep/agents-core 0.66.0 → 0.67.0

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 (56) hide show
  1. package/dist/auth/auth-schema.d.ts +86 -86
  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 +27 -27
  12. package/dist/data-access/manage/agents.js +12 -1
  13. package/dist/data-access/manage/artifactComponents.d.ts +4 -4
  14. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  15. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  16. package/dist/data-access/manage/functionTools.d.ts +6 -6
  17. package/dist/data-access/manage/skills.d.ts +7 -7
  18. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  19. package/dist/data-access/manage/subAgentRelations.d.ts +10 -10
  20. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  21. package/dist/data-access/manage/subAgents.d.ts +9 -9
  22. package/dist/data-access/manage/tools.d.ts +12 -12
  23. package/dist/data-access/manage/triggerCleanup.js +6 -1
  24. package/dist/data-access/manage/triggers.d.ts +64 -5
  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 +2 -2
  30. package/dist/data-access/runtime/messages.d.ts +9 -9
  31. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  32. package/dist/data-access/runtime/tasks.d.ts +5 -5
  33. package/dist/data-access/runtime/triggerInvocations.d.ts +2 -0
  34. package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
  35. package/dist/db/manage/manage-schema.d.ts +496 -360
  36. package/dist/db/manage/manage-schema.js +43 -2
  37. package/dist/db/runtime/runtime-schema.d.ts +409 -371
  38. package/dist/db/runtime/runtime-schema.js +4 -1
  39. package/dist/index.d.ts +4 -4
  40. package/dist/index.js +4 -4
  41. package/dist/utils/error.d.ts +51 -51
  42. package/dist/utils/signature-validation.d.ts +2 -2
  43. package/dist/utils/signature-validation.js +2 -2
  44. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  45. package/dist/validation/index.d.ts +2 -2
  46. package/dist/validation/index.js +2 -2
  47. package/dist/validation/schemas/skills.d.ts +46 -46
  48. package/dist/validation/schemas.d.ts +2193 -1999
  49. package/dist/validation/schemas.js +35 -13
  50. package/drizzle/manage/0018_gorgeous_captain_america.sql +14 -0
  51. package/drizzle/manage/meta/0018_snapshot.json +3884 -0
  52. package/drizzle/manage/meta/_journal.json +7 -0
  53. package/drizzle/runtime/0035_many_steel_serpent.sql +3 -0
  54. package/drizzle/runtime/meta/0035_snapshot.json +5321 -0
  55. package/drizzle/runtime/meta/_journal.json +7 -0
  56. 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
- agentId: string | null;
26
+ createdAt: string;
27
+ updatedAt: string;
29
28
  projectId: string;
30
29
  tenantId: string;
31
- title: string | null;
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
- agentId: string | null;
95
+ createdAt: string;
96
+ updatedAt: string;
98
97
  projectId: string;
99
98
  tenantId: string;
100
- title: string | null;
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
- agentId: string | null;
131
+ createdAt: string;
132
+ updatedAt: string;
134
133
  projectId: string;
135
134
  tenantId: string;
136
- title: string | null;
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
- agentId: string | null;
163
+ createdAt: string;
164
+ updatedAt: string;
166
165
  projectId: string;
167
166
  tenantId: string;
168
- title: string | null;
167
+ agentId: string | null;
168
+ userId: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -58,10 +58,10 @@ 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
- type: "positive" | "negative";
65
65
  projectId: string;
66
66
  tenantId: string;
67
67
  details: string | null;
@@ -87,10 +87,10 @@ 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
- type: "positive" | "negative";
94
94
  projectId: string;
95
95
  tenantId: string;
96
96
  details: string | null;
@@ -11,13 +11,12 @@ 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
18
  projectId: string;
19
19
  tenantId: string;
20
- content: MessageContent;
21
20
  fromSubAgentId: string | null;
22
21
  toSubAgentId: string | null;
23
22
  fromExternalAgentId: string | null;
@@ -25,6 +24,7 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
25
24
  taskId: string | null;
26
25
  a2aTaskId: string | null;
27
26
  conversationId: string;
27
+ role: string;
28
28
  fromTeamAgentId: string | null;
29
29
  toTeamAgentId: string | null;
30
30
  visibility: string;
@@ -145,13 +145,12 @@ 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
152
  projectId: string;
153
153
  tenantId: string;
154
- content: MessageContent;
155
154
  fromSubAgentId: string | null;
156
155
  toSubAgentId: string | null;
157
156
  fromExternalAgentId: string | null;
@@ -159,6 +158,7 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
159
158
  taskId: string | null;
160
159
  a2aTaskId: string | null;
161
160
  conversationId: string;
161
+ role: string;
162
162
  fromTeamAgentId: string | null;
163
163
  toTeamAgentId: string | null;
164
164
  visibility: string;
@@ -198,13 +198,12 @@ 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
205
  projectId: string;
206
206
  tenantId: string;
207
- content: MessageContent;
208
207
  fromSubAgentId: string | null;
209
208
  toSubAgentId: string | null;
210
209
  fromExternalAgentId: string | null;
@@ -212,6 +211,7 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
212
211
  taskId: string | null;
213
212
  a2aTaskId: string | null;
214
213
  conversationId: string;
214
+ role: string;
215
215
  fromTeamAgentId: string | null;
216
216
  toTeamAgentId: string | null;
217
217
  visibility: string;
@@ -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,19 +7,19 @@ 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
- agentId: string;
18
+ createdAt: string;
19
+ updatedAt: string;
21
20
  projectId: string;
22
21
  tenantId: string;
22
+ agentId: string;
23
23
  subAgentId: string;
24
24
  contextId: string;
25
25
  }>;
@@ -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_core1846 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_core1846.jsonb>;
10
+ declare function jsonb(name: string): ReturnType<typeof drizzle_orm_pg_core1399.jsonb>;
11
11
  //#endregion
12
12
  export { decodeBackslashes, encodeBackslashes, jsonb };