@inkeep/agents-core 0.67.4 → 0.68.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 (38) hide show
  1. package/dist/auth/auth-schema.d.ts +1369 -1
  2. package/dist/auth/auth-schema.js +139 -6
  3. package/dist/auth/auth-validation-schemas.d.ts +137 -137
  4. package/dist/auth/auth.d.ts +2231 -0
  5. package/dist/auth/auth.js +23 -1
  6. package/dist/auth/permissions.d.ts +13 -13
  7. package/dist/data-access/manage/agents.d.ts +21 -21
  8. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  9. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  10. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  11. package/dist/data-access/manage/functionTools.d.ts +18 -18
  12. package/dist/data-access/manage/skills.d.ts +10 -10
  13. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  14. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  15. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  16. package/dist/data-access/manage/subAgents.d.ts +15 -15
  17. package/dist/data-access/manage/tools.d.ts +24 -24
  18. package/dist/data-access/manage/triggers.d.ts +5 -5
  19. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  20. package/dist/data-access/runtime/apps.d.ts +15 -15
  21. package/dist/data-access/runtime/conversations.d.ts +16 -16
  22. package/dist/data-access/runtime/feedback.d.ts +6 -6
  23. package/dist/data-access/runtime/messages.d.ts +15 -15
  24. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  25. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  26. package/dist/data-access/runtime/tasks.d.ts +4 -4
  27. package/dist/db/manage/manage-schema.d.ts +457 -457
  28. package/dist/db/runtime/runtime-schema.d.ts +418 -418
  29. package/dist/db/runtime/runtime-schema.js +7 -2
  30. package/dist/index.d.ts +2 -2
  31. package/dist/index.js +2 -2
  32. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  33. package/dist/validation/schemas/skills.d.ts +36 -36
  34. package/dist/validation/schemas.d.ts +2132 -2132
  35. package/drizzle/runtime/0036_swift_hammerhead.sql +90 -0
  36. package/drizzle/runtime/meta/0036_snapshot.json +5915 -0
  37. package/drizzle/runtime/meta/_journal.json +8 -1
  38. package/package.json +2 -1
@@ -15,10 +15,6 @@ 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;
19
- tenantId: string;
20
- projectId: string;
21
- agentId: string | null;
22
18
  id: string;
23
19
  createdAt: string;
24
20
  updatedAt: string;
@@ -29,6 +25,10 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
29
25
  } | null;
30
26
  userId: string | null;
31
27
  metadata: ConversationMetadata | null;
28
+ tenantId: string;
29
+ title: string | null;
30
+ agentId: string | null;
31
+ projectId: string;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -84,10 +84,6 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
84
  scopes: ProjectScopeConfig;
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
- title: string | null;
88
- tenantId: string;
89
- projectId: string;
90
- agentId: string | null;
91
87
  id: string;
92
88
  createdAt: string;
93
89
  updatedAt: string;
@@ -98,6 +94,10 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
98
94
  } | null;
99
95
  userId: string | null;
100
96
  metadata: ConversationMetadata | null;
97
+ tenantId: string;
98
+ title: string | null;
99
+ agentId: string | null;
100
+ projectId: string;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -120,10 +120,6 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
120
120
  metadata?: ConversationMetadata | null | undefined;
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
- title: string | null;
124
- tenantId: string;
125
- projectId: string;
126
- agentId: string | null;
127
123
  id: string;
128
124
  createdAt: string;
129
125
  updatedAt: string;
@@ -134,6 +130,10 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
134
130
  } | null;
135
131
  userId: string | null;
136
132
  metadata: ConversationMetadata | null;
133
+ tenantId: string;
134
+ title: string | null;
135
+ agentId: string | null;
136
+ projectId: string;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -152,10 +152,6 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
152
  scopes: ProjectScopeConfig;
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
- title: string | null;
156
- tenantId: string;
157
- projectId: string;
158
- agentId: string | null;
159
155
  id: string;
160
156
  createdAt: string;
161
157
  updatedAt: string;
@@ -166,6 +162,10 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
166
162
  } | null;
167
163
  userId: string | null;
168
164
  metadata: ConversationMetadata | null;
165
+ tenantId: string;
166
+ title: string | null;
167
+ agentId: string | null;
168
+ projectId: string;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -59,14 +59,14 @@ declare const listFeedback: (db: AgentsRunDatabaseClient) => (params: {
59
59
  }>;
60
60
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
61
61
  type: "positive" | "negative";
62
- tenantId: string;
63
- projectId: string;
64
62
  id: string;
65
63
  createdAt: string;
66
64
  updatedAt: string;
67
- details: string | null;
65
+ tenantId: string;
66
+ projectId: string;
68
67
  conversationId: string;
69
68
  messageId: string | null;
69
+ details: string | null;
70
70
  }>;
71
71
  declare const updateFeedback: (db: AgentsRunDatabaseClient) => (params: {
72
72
  scopes: ProjectScopeConfig;
@@ -88,14 +88,14 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
88
88
  feedbackId: string;
89
89
  }) => Promise<{
90
90
  type: "positive" | "negative";
91
- tenantId: string;
92
- projectId: string;
93
91
  id: string;
94
92
  createdAt: string;
95
93
  updatedAt: string;
96
- details: string | null;
94
+ tenantId: string;
95
+ projectId: string;
97
96
  conversationId: string;
98
97
  messageId: string | null;
98
+ details: string | null;
99
99
  }>;
100
100
  //#endregion
101
101
  export { createFeedback, deleteFeedback, getFeedbackById, listFeedback, listFeedbackByConversation, updateFeedback };
@@ -10,26 +10,26 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  scopes: ProjectScopeConfig;
11
11
  messageId: string;
12
12
  }) => Promise<{
13
- tenantId: string;
14
- projectId: string;
15
13
  id: string;
16
14
  createdAt: string;
17
15
  updatedAt: string;
18
16
  metadata: MessageMetadata | null;
19
17
  role: string;
18
+ tenantId: string;
20
19
  content: MessageContent;
20
+ projectId: string;
21
+ conversationId: string;
21
22
  fromSubAgentId: string | null;
22
23
  toSubAgentId: string | null;
23
24
  fromExternalAgentId: string | null;
24
25
  toExternalAgentId: string | null;
25
- taskId: string | null;
26
- a2aTaskId: string | null;
27
- conversationId: string;
28
26
  fromTeamAgentId: string | null;
29
27
  toTeamAgentId: string | null;
30
28
  visibility: string;
31
29
  messageType: string;
30
+ taskId: string | null;
32
31
  parentMessageId: string | null;
32
+ a2aTaskId: string | null;
33
33
  a2aSessionId: string | null;
34
34
  } | undefined>;
35
35
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -144,26 +144,26 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
144
144
  scopes: ProjectScopeConfig;
145
145
  data: Omit<MessageInsert, "tenantId" | "projectId">;
146
146
  }) => Promise<{
147
- tenantId: string;
148
- projectId: string;
149
147
  id: string;
150
148
  createdAt: string;
151
149
  updatedAt: string;
152
150
  metadata: MessageMetadata | null;
153
151
  role: string;
152
+ tenantId: string;
154
153
  content: MessageContent;
154
+ projectId: string;
155
+ conversationId: string;
155
156
  fromSubAgentId: string | null;
156
157
  toSubAgentId: string | null;
157
158
  fromExternalAgentId: string | null;
158
159
  toExternalAgentId: string | null;
159
- taskId: string | null;
160
- a2aTaskId: string | null;
161
- conversationId: string;
162
160
  fromTeamAgentId: string | null;
163
161
  toTeamAgentId: string | null;
164
162
  visibility: string;
165
163
  messageType: string;
164
+ taskId: string | null;
166
165
  parentMessageId: string | null;
166
+ a2aTaskId: string | null;
167
167
  a2aSessionId: string | null;
168
168
  }>;
169
169
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -197,26 +197,26 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
197
197
  scopes: ProjectScopeConfig;
198
198
  messageId: string;
199
199
  }) => Promise<{
200
- tenantId: string;
201
- projectId: string;
202
200
  id: string;
203
201
  createdAt: string;
204
202
  updatedAt: string;
205
203
  metadata: MessageMetadata | null;
206
204
  role: string;
205
+ tenantId: string;
207
206
  content: MessageContent;
207
+ projectId: string;
208
+ conversationId: string;
208
209
  fromSubAgentId: string | null;
209
210
  toSubAgentId: string | null;
210
211
  fromExternalAgentId: string | null;
211
212
  toExternalAgentId: string | null;
212
- taskId: string | null;
213
- a2aTaskId: string | null;
214
- conversationId: string;
215
213
  fromTeamAgentId: string | null;
216
214
  toTeamAgentId: string | null;
217
215
  visibility: string;
218
216
  messageType: string;
217
+ taskId: string | null;
219
218
  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" | "failed" | "running" | "completed" | "cancelled";
43
+ status: "pending" | "running" | "completed" | "failed" | "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" | "failed" | "running" | "completed" | "cancelled";
202
+ status: "pending" | "running" | "completed" | "failed" | "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" | "failed" | "running" | "completed" | "cancelled";
242
+ status: "pending" | "running" | "completed" | "failed" | "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" | "failed" | "running" | "completed" | "cancelled";
295
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
296
296
  scheduledFor: string;
297
297
  startedAt: string | null;
298
298
  completedAt: string | null;
@@ -15,9 +15,9 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
15
15
  scheduledTriggerId: string;
16
16
  userId: string;
17
17
  }) => Promise<{
18
- tenantId: string;
19
18
  createdAt: string;
20
19
  userId: string;
20
+ tenantId: string;
21
21
  scheduledTriggerId: string;
22
22
  }>;
23
23
  declare const deleteScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (params: {
@@ -7,10 +7,6 @@ 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
- tenantId: string;
11
- projectId: string;
12
- agentId: string;
13
- subAgentId: string;
14
10
  id: string;
15
11
  createdAt: string;
16
12
  updatedAt: string;
@@ -21,6 +17,10 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
21
17
  } | null;
22
18
  metadata: TaskMetadataConfig | null;
23
19
  status: string;
20
+ tenantId: string;
21
+ agentId: string;
22
+ projectId: string;
23
+ subAgentId: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {