@inkeep/agents-core 0.0.0-dev-20260414161812 → 0.0.0-dev-20260414201919

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 (43) hide show
  1. package/dist/auth/auth.js +14 -0
  2. package/dist/client-exports.d.ts +2 -2
  3. package/dist/client-exports.js +2 -2
  4. package/dist/data-access/index.d.ts +2 -1
  5. package/dist/data-access/index.js +2 -1
  6. package/dist/data-access/manage/agents.d.ts +5 -5
  7. package/dist/data-access/manage/artifactComponents.d.ts +4 -4
  8. package/dist/data-access/manage/contextConfigs.d.ts +4 -4
  9. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  10. package/dist/data-access/manage/functionTools.d.ts +6 -6
  11. package/dist/data-access/manage/skills.d.ts +3 -3
  12. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
  13. package/dist/data-access/manage/subAgentRelations.d.ts +10 -10
  14. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
  15. package/dist/data-access/manage/subAgents.d.ts +3 -3
  16. package/dist/data-access/manage/tools.d.ts +12 -12
  17. package/dist/data-access/manage/triggers.d.ts +1 -1
  18. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  19. package/dist/data-access/runtime/apps.d.ts +23 -8
  20. package/dist/data-access/runtime/conversations.d.ts +8 -8
  21. package/dist/data-access/runtime/feedback.d.ts +4 -4
  22. package/dist/data-access/runtime/invitationProjectAssignments.d.ts +16 -0
  23. package/dist/data-access/runtime/invitationProjectAssignments.js +25 -0
  24. package/dist/data-access/runtime/messages.d.ts +12 -12
  25. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  26. package/dist/data-access/runtime/tasks.d.ts +1 -1
  27. package/dist/db/manage/manage-schema.d.ts +453 -453
  28. package/dist/db/runtime/runtime-schema.d.ts +513 -411
  29. package/dist/db/runtime/runtime-schema.js +13 -1
  30. package/dist/index.d.ts +5 -4
  31. package/dist/index.js +4 -3
  32. package/dist/types/index.d.ts +2 -2
  33. package/dist/types/utility.d.ts +5 -4
  34. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  35. package/dist/validation/index.d.ts +2 -2
  36. package/dist/validation/index.js +2 -2
  37. package/dist/validation/schemas/skills.d.ts +24 -24
  38. package/dist/validation/schemas.d.ts +1863 -1765
  39. package/dist/validation/schemas.js +20 -4
  40. package/drizzle/runtime/0037_mysterious_gargoyle.sql +10 -0
  41. package/drizzle/runtime/meta/0037_snapshot.json +5990 -0
  42. package/drizzle/runtime/meta/_journal.json +7 -0
  43. package/package.json +1 -1
@@ -25,10 +25,10 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
25
25
  } | null;
26
26
  userId: string | null;
27
27
  metadata: ConversationMetadata | null;
28
- tenantId: string;
29
- title: string | null;
30
28
  agentId: string | null;
31
29
  projectId: string;
30
+ tenantId: string;
31
+ title: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -94,10 +94,10 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
94
94
  } | null;
95
95
  userId: string | null;
96
96
  metadata: ConversationMetadata | null;
97
- tenantId: string;
98
- title: string | null;
99
97
  agentId: string | null;
100
98
  projectId: string;
99
+ tenantId: string;
100
+ title: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -130,10 +130,10 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
130
130
  } | null;
131
131
  userId: string | null;
132
132
  metadata: ConversationMetadata | null;
133
- tenantId: string;
134
- title: string | null;
135
133
  agentId: string | null;
136
134
  projectId: string;
135
+ tenantId: string;
136
+ title: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -162,10 +162,10 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
162
162
  } | null;
163
163
  userId: string | null;
164
164
  metadata: ConversationMetadata | null;
165
- tenantId: string;
166
- title: string | null;
167
165
  agentId: string | null;
168
166
  projectId: string;
167
+ tenantId: string;
168
+ title: 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 };
@@ -0,0 +1,16 @@
1
+ import { ProjectRole } from "../../auth/authz/types.js";
2
+ import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
3
+
4
+ //#region src/data-access/runtime/invitationProjectAssignments.d.ts
5
+ interface InvitationProjectAssignmentInput {
6
+ projectId: string;
7
+ projectRole: ProjectRole;
8
+ }
9
+ declare const createInvitationProjectAssignments: (db: AgentsRunDatabaseClient) => (invitationId: string, assignments: InvitationProjectAssignmentInput[]) => Promise<void>;
10
+ declare const getProjectAssignmentsForInvitation: (db: AgentsRunDatabaseClient) => (invitationId: string) => Promise<Array<{
11
+ projectId: string;
12
+ projectRole: ProjectRole;
13
+ }>>;
14
+ declare const deleteInvitationProjectAssignments: (db: AgentsRunDatabaseClient) => (invitationId: string) => Promise<void>;
15
+ //#endregion
16
+ export { InvitationProjectAssignmentInput, createInvitationProjectAssignments, deleteInvitationProjectAssignments, getProjectAssignmentsForInvitation };
@@ -0,0 +1,25 @@
1
+ import { invitationProjectAssignment } from "../../db/runtime/runtime-schema.js";
2
+ import { eq } from "drizzle-orm";
3
+
4
+ //#region src/data-access/runtime/invitationProjectAssignments.ts
5
+ const createInvitationProjectAssignments = (db) => async (invitationId, assignments) => {
6
+ if (assignments.length === 0) return;
7
+ await db.insert(invitationProjectAssignment).values(assignments.map((a) => ({
8
+ id: crypto.randomUUID(),
9
+ invitationId,
10
+ projectId: a.projectId,
11
+ projectRole: a.projectRole
12
+ })));
13
+ };
14
+ const getProjectAssignmentsForInvitation = (db) => async (invitationId) => {
15
+ return await db.select({
16
+ projectId: invitationProjectAssignment.projectId,
17
+ projectRole: invitationProjectAssignment.projectRole
18
+ }).from(invitationProjectAssignment).where(eq(invitationProjectAssignment.invitationId, invitationId));
19
+ };
20
+ const deleteInvitationProjectAssignments = (db) => async (invitationId) => {
21
+ await db.delete(invitationProjectAssignment).where(eq(invitationProjectAssignment.invitationId, invitationId));
22
+ };
23
+
24
+ //#endregion
25
+ export { createInvitationProjectAssignments, deleteInvitationProjectAssignments, getProjectAssignmentsForInvitation };
@@ -15,21 +15,21 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
15
15
  updatedAt: string;
16
16
  metadata: MessageMetadata | null;
17
17
  role: string;
18
+ projectId: string;
18
19
  tenantId: string;
19
20
  content: MessageContent;
20
- projectId: string;
21
- conversationId: string;
22
21
  fromSubAgentId: string | null;
23
22
  toSubAgentId: string | null;
24
23
  fromExternalAgentId: string | null;
25
24
  toExternalAgentId: string | null;
25
+ taskId: string | null;
26
+ a2aTaskId: string | null;
27
+ conversationId: 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: {
@@ -149,21 +149,21 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
149
149
  updatedAt: string;
150
150
  metadata: MessageMetadata | null;
151
151
  role: string;
152
+ projectId: string;
152
153
  tenantId: string;
153
154
  content: MessageContent;
154
- projectId: string;
155
- conversationId: string;
156
155
  fromSubAgentId: string | null;
157
156
  toSubAgentId: string | null;
158
157
  fromExternalAgentId: string | null;
159
158
  toExternalAgentId: string | null;
159
+ taskId: string | null;
160
+ a2aTaskId: string | null;
161
+ conversationId: 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: {
@@ -202,21 +202,21 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
202
202
  updatedAt: string;
203
203
  metadata: MessageMetadata | null;
204
204
  role: string;
205
+ projectId: string;
205
206
  tenantId: string;
206
207
  content: MessageContent;
207
- projectId: string;
208
- conversationId: string;
209
208
  fromSubAgentId: string | null;
210
209
  toSubAgentId: string | null;
211
210
  fromExternalAgentId: string | null;
212
211
  toExternalAgentId: string | null;
212
+ taskId: string | null;
213
+ a2aTaskId: string | null;
214
+ conversationId: 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;
@@ -17,9 +17,9 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
17
17
  } | null;
18
18
  metadata: TaskMetadataConfig | null;
19
19
  status: string;
20
- tenantId: string;
21
20
  agentId: string;
22
21
  projectId: string;
22
+ tenantId: string;
23
23
  subAgentId: string;
24
24
  contextId: string;
25
25
  }>;