@inkeep/agents-core 0.74.1 → 0.74.2

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 (33) hide show
  1. package/dist/auth/auth-schema.d.ts +227 -227
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/permissions.d.ts +9 -9
  4. package/dist/data-access/manage/agents.d.ts +21 -21
  5. package/dist/data-access/manage/agents.js +12 -10
  6. package/dist/data-access/manage/artifactComponents.d.ts +14 -14
  7. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  8. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  9. package/dist/data-access/manage/functionTools.d.ts +18 -18
  10. package/dist/data-access/manage/skills.d.ts +17 -17
  11. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  12. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  13. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  14. package/dist/data-access/manage/subAgents.d.ts +15 -15
  15. package/dist/data-access/manage/tools.d.ts +30 -30
  16. package/dist/data-access/manage/triggers.d.ts +2 -2
  17. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  18. package/dist/data-access/runtime/apps.d.ts +10 -10
  19. package/dist/data-access/runtime/conversations.d.ts +28 -28
  20. package/dist/data-access/runtime/events.d.ts +6 -6
  21. package/dist/data-access/runtime/feedback.d.ts +8 -8
  22. package/dist/data-access/runtime/messages.d.ts +30 -30
  23. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  24. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  25. package/dist/data-access/runtime/tasks.d.ts +6 -6
  26. package/dist/db/manage/manage-schema.d.ts +480 -480
  27. package/dist/db/runtime/runtime-schema.d.ts +443 -443
  28. package/dist/utils/error.d.ts +51 -51
  29. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  30. package/dist/validation/schemas/skills.d.ts +69 -69
  31. package/dist/validation/schemas.d.ts +2440 -2420
  32. package/dist/validation/schemas.js +5 -1
  33. package/package.json +1 -1
@@ -15,24 +15,24 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
15
  total: number;
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
- id: string;
19
- createdAt: string;
20
- updatedAt: string;
21
- projectId: string;
22
- tenantId: string;
23
- metadata: ConversationMetadata | null;
24
18
  properties: Record<string, unknown> | null;
25
19
  title: string | null;
20
+ tenantId: string;
21
+ projectId: string;
26
22
  agentId: string | null;
23
+ id: string;
24
+ createdAt: string;
25
+ metadata: ConversationMetadata | null;
26
+ updatedAt: string;
27
27
  userId: string | null;
28
28
  ref: {
29
29
  type: "commit" | "tag" | "branch";
30
30
  name: string;
31
31
  hash: string;
32
32
  } | null;
33
+ userProperties: Record<string, unknown> | null;
33
34
  activeSubAgentId: string;
34
35
  lastContextResolution: string | null;
35
- userProperties: Record<string, unknown> | null;
36
36
  }>;
37
37
  declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
@@ -90,24 +90,24 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
90
90
  scopes: ProjectScopeConfig;
91
91
  conversationId: string;
92
92
  }) => Promise<{
93
- id: string;
94
- createdAt: string;
95
- updatedAt: string;
96
- projectId: string;
97
- tenantId: string;
98
- metadata: ConversationMetadata | null;
99
93
  properties: Record<string, unknown> | null;
100
94
  title: string | null;
95
+ tenantId: string;
96
+ projectId: string;
101
97
  agentId: string | null;
98
+ id: string;
99
+ createdAt: string;
100
+ metadata: ConversationMetadata | null;
101
+ updatedAt: string;
102
102
  userId: string | null;
103
103
  ref: {
104
104
  type: "commit" | "tag" | "branch";
105
105
  name: string;
106
106
  hash: string;
107
107
  } | null;
108
+ userProperties: Record<string, unknown> | null;
108
109
  activeSubAgentId: string;
109
110
  lastContextResolution: string | null;
110
- userProperties: Record<string, unknown> | null;
111
111
  } | undefined>;
112
112
  declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
113
113
  activeSubAgentId: string;
@@ -130,24 +130,24 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
130
130
  userProperties?: Record<string, unknown> | null | undefined;
131
131
  properties?: Record<string, unknown> | null | undefined;
132
132
  } | {
133
- id: string;
134
- createdAt: string;
135
- updatedAt: string;
136
- projectId: string;
137
- tenantId: string;
138
- metadata: ConversationMetadata | null;
139
133
  properties: Record<string, unknown> | null;
140
134
  title: string | null;
135
+ tenantId: string;
136
+ projectId: string;
141
137
  agentId: string | null;
138
+ id: string;
139
+ createdAt: string;
140
+ metadata: ConversationMetadata | null;
141
+ updatedAt: string;
142
142
  userId: string | null;
143
143
  ref: {
144
144
  type: "commit" | "tag" | "branch";
145
145
  name: string;
146
146
  hash: string;
147
147
  } | null;
148
+ userProperties: Record<string, unknown> | null;
148
149
  activeSubAgentId: string;
149
150
  lastContextResolution: string | null;
150
- userProperties: Record<string, unknown> | null;
151
151
  }>;
152
152
  /**
153
153
  * Get conversation history with filtering and context management
@@ -164,24 +164,24 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
164
164
  scopes: ProjectScopeConfig;
165
165
  conversationId: string;
166
166
  }) => Promise<{
167
- id: string;
168
- createdAt: string;
169
- updatedAt: string;
170
- projectId: string;
171
- tenantId: string;
172
- metadata: ConversationMetadata | null;
173
167
  properties: Record<string, unknown> | null;
174
168
  title: string | null;
169
+ tenantId: string;
170
+ projectId: string;
175
171
  agentId: string | null;
172
+ id: string;
173
+ createdAt: string;
174
+ metadata: ConversationMetadata | null;
175
+ updatedAt: string;
176
176
  userId: string | null;
177
177
  ref: {
178
178
  type: "commit" | "tag" | "branch";
179
179
  name: string;
180
180
  hash: string;
181
181
  } | null;
182
+ userProperties: Record<string, unknown> | null;
182
183
  activeSubAgentId: string;
183
184
  lastContextResolution: string | null;
184
- userProperties: Record<string, unknown> | null;
185
185
  } | undefined>;
186
186
  /**
187
187
  * Set active agent for a conversation (upsert operation)
@@ -7,15 +7,15 @@ import { EventInsert } from "../../types/entities.js";
7
7
  //#region src/data-access/runtime/events.d.ts
8
8
  declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert) => Promise<{
9
9
  row: {
10
- id: string;
11
- createdAt: string;
12
- updatedAt: string;
13
- projectId: string;
14
- tenantId: string;
15
- metadata: Record<string, unknown> | null;
16
10
  type: string;
17
11
  properties: Record<string, unknown> | null;
12
+ tenantId: string;
13
+ projectId: string;
18
14
  agentId: string | null;
15
+ id: string;
16
+ createdAt: string;
17
+ metadata: Record<string, unknown> | null;
18
+ updatedAt: string;
19
19
  conversationId: string | null;
20
20
  userProperties: Record<string, unknown> | null;
21
21
  messageId: string | null;
@@ -70,15 +70,15 @@ declare const getFeedbackByIds: (db: AgentsRunDatabaseClient) => (params: {
70
70
  agentId: string | null;
71
71
  }[]>;
72
72
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
73
+ type: "positive" | "negative";
74
+ tenantId: string;
75
+ projectId: string;
73
76
  id: string;
74
77
  createdAt: string;
75
78
  updatedAt: string;
76
- projectId: string;
77
- tenantId: string;
78
- type: "positive" | "negative";
79
+ details: string | null;
79
80
  conversationId: string;
80
81
  messageId: string | null;
81
- details: string | null;
82
82
  }>;
83
83
  declare const createFeedbackBulk: (db: AgentsRunDatabaseClient) => (items: FeedbackInsert[]) => Promise<(typeof feedback.$inferSelect)[]>;
84
84
  declare const updateFeedback: (db: AgentsRunDatabaseClient) => (params: {
@@ -100,15 +100,15 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
100
100
  scopes: ProjectScopeConfig;
101
101
  feedbackId: string;
102
102
  }) => Promise<{
103
+ type: "positive" | "negative";
104
+ tenantId: string;
105
+ projectId: string;
103
106
  id: string;
104
107
  createdAt: string;
105
108
  updatedAt: string;
106
- projectId: string;
107
- tenantId: string;
108
- type: "positive" | "negative";
109
+ details: string | null;
109
110
  conversationId: string;
110
111
  messageId: string | null;
111
- details: string | null;
112
112
  }>;
113
113
  //#endregion
114
114
  export { createFeedback, createFeedbackBulk, deleteFeedback, getFeedbackById, getFeedbackByIds, listFeedback, listFeedbackByConversation, updateFeedback };
@@ -10,28 +10,28 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  scopes: ProjectScopeConfig;
11
11
  messageId: string;
12
12
  }) => Promise<{
13
+ properties: Record<string, unknown> | null;
14
+ tenantId: string;
15
+ projectId: string;
13
16
  id: string;
14
- content: MessageContent;
15
17
  createdAt: string;
16
- updatedAt: string;
17
- projectId: string;
18
- tenantId: string;
19
18
  metadata: MessageMetadata | null;
20
- properties: Record<string, unknown> | null;
21
- conversationId: string;
22
- role: string;
23
- userProperties: Record<string, unknown> | null;
19
+ content: MessageContent;
20
+ updatedAt: string;
24
21
  fromSubAgentId: string | null;
25
22
  toSubAgentId: string | null;
26
23
  fromExternalAgentId: string | null;
27
24
  toExternalAgentId: string | null;
25
+ taskId: string | null;
26
+ a2aTaskId: string | null;
27
+ conversationId: string;
28
+ role: string;
29
+ userProperties: Record<string, unknown> | null;
28
30
  fromTeamAgentId: string | null;
29
31
  toTeamAgentId: string | null;
30
32
  visibility: string;
31
33
  messageType: string;
32
- taskId: string | null;
33
34
  parentMessageId: string | null;
34
- a2aTaskId: string | null;
35
35
  a2aSessionId: string | null;
36
36
  } | undefined>;
37
37
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -154,28 +154,28 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
154
154
  scopes: ProjectScopeConfig;
155
155
  data: Omit<MessageInsert, "tenantId" | "projectId">;
156
156
  }) => Promise<{
157
+ properties: Record<string, unknown> | null;
158
+ tenantId: string;
159
+ projectId: string;
157
160
  id: string;
158
- content: MessageContent;
159
161
  createdAt: string;
160
- updatedAt: string;
161
- projectId: string;
162
- tenantId: string;
163
162
  metadata: MessageMetadata | null;
164
- properties: Record<string, unknown> | null;
165
- conversationId: string;
166
- role: string;
167
- userProperties: Record<string, unknown> | null;
163
+ content: MessageContent;
164
+ updatedAt: string;
168
165
  fromSubAgentId: string | null;
169
166
  toSubAgentId: string | null;
170
167
  fromExternalAgentId: string | null;
171
168
  toExternalAgentId: string | null;
169
+ taskId: string | null;
170
+ a2aTaskId: string | null;
171
+ conversationId: string;
172
+ role: string;
173
+ userProperties: Record<string, unknown> | null;
172
174
  fromTeamAgentId: string | null;
173
175
  toTeamAgentId: string | null;
174
176
  visibility: string;
175
177
  messageType: string;
176
- taskId: string | null;
177
178
  parentMessageId: string | null;
178
- a2aTaskId: string | null;
179
179
  a2aSessionId: string | null;
180
180
  }>;
181
181
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -211,28 +211,28 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
211
211
  scopes: ProjectScopeConfig;
212
212
  messageId: string;
213
213
  }) => Promise<{
214
+ properties: Record<string, unknown> | null;
215
+ tenantId: string;
216
+ projectId: string;
214
217
  id: string;
215
- content: MessageContent;
216
218
  createdAt: string;
217
- updatedAt: string;
218
- projectId: string;
219
- tenantId: string;
220
219
  metadata: MessageMetadata | null;
221
- properties: Record<string, unknown> | null;
222
- conversationId: string;
223
- role: string;
224
- userProperties: Record<string, unknown> | null;
220
+ content: MessageContent;
221
+ updatedAt: string;
225
222
  fromSubAgentId: string | null;
226
223
  toSubAgentId: string | null;
227
224
  fromExternalAgentId: string | null;
228
225
  toExternalAgentId: string | null;
226
+ taskId: string | null;
227
+ a2aTaskId: string | null;
228
+ conversationId: string;
229
+ role: string;
230
+ userProperties: Record<string, unknown> | null;
229
231
  fromTeamAgentId: string | null;
230
232
  toTeamAgentId: string | null;
231
233
  visibility: string;
232
234
  messageType: string;
233
- taskId: string | null;
234
235
  parentMessageId: string | null;
235
- a2aTaskId: string | null;
236
236
  a2aSessionId: string | null;
237
237
  }>;
238
238
  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;
@@ -15,8 +15,8 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
15
15
  scheduledTriggerId: string;
16
16
  userId: string;
17
17
  }) => Promise<{
18
- createdAt: string;
19
18
  tenantId: string;
19
+ createdAt: string;
20
20
  userId: string;
21
21
  scheduledTriggerId: string;
22
22
  }>;
@@ -7,20 +7,20 @@ 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
- id: string;
11
- createdAt: string;
12
- updatedAt: string;
13
- projectId: string;
14
10
  tenantId: string;
15
- metadata: TaskMetadataConfig | null;
11
+ projectId: string;
16
12
  agentId: string;
17
13
  subAgentId: string;
14
+ status: string;
15
+ id: string;
16
+ createdAt: string;
17
+ metadata: TaskMetadataConfig | null;
18
+ updatedAt: string;
18
19
  ref: {
19
20
  type: "commit" | "tag" | "branch";
20
21
  name: string;
21
22
  hash: string;
22
23
  } | null;
23
- status: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {