@inkeep/agents-core 0.74.4 → 0.75.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 (39) 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 +41 -41
  5. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  6. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  7. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  8. package/dist/data-access/manage/functionTools.d.ts +14 -14
  9. package/dist/data-access/manage/skills.d.ts +12 -12
  10. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  11. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  12. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  13. package/dist/data-access/manage/subAgents.d.ts +15 -15
  14. package/dist/data-access/manage/tools.d.ts +27 -27
  15. package/dist/data-access/manage/triggers.d.ts +5 -5
  16. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  17. package/dist/data-access/runtime/apps.d.ts +13 -13
  18. package/dist/data-access/runtime/conversations.d.ts +32 -32
  19. package/dist/data-access/runtime/events.d.ts +4 -4
  20. package/dist/data-access/runtime/feedback.d.ts +4 -4
  21. package/dist/data-access/runtime/messages.d.ts +12 -12
  22. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  23. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  24. package/dist/data-access/runtime/tasks.d.ts +6 -6
  25. package/dist/db/manage/manage-schema.d.ts +484 -484
  26. package/dist/db/runtime/runtime-schema.d.ts +455 -455
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.js +2 -2
  29. package/dist/setup/setup.js +0 -5
  30. package/dist/utils/error.d.ts +57 -51
  31. package/dist/utils/error.js +8 -2
  32. package/dist/utils/index.d.ts +2 -2
  33. package/dist/utils/index.js +2 -2
  34. package/dist/utils/pow.d.ts +15 -1
  35. package/dist/utils/pow.js +59 -1
  36. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  37. package/dist/validation/schemas/skills.d.ts +47 -47
  38. package/dist/validation/schemas.d.ts +2341 -2341
  39. package/package.json +1 -1
@@ -16,23 +16,23 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
18
  id: string;
19
+ tenantId: string;
19
20
  createdAt: string;
21
+ metadata: ConversationMetadata | null;
22
+ title: string | null;
23
+ properties: Record<string, unknown> | null;
24
+ projectId: string;
25
+ agentId: string | null;
20
26
  updatedAt: string;
27
+ userId: string | null;
21
28
  ref: {
22
29
  type: "commit" | "tag" | "branch";
23
30
  name: string;
24
31
  hash: string;
25
32
  } | null;
26
- userId: string | null;
27
- metadata: ConversationMetadata | null;
28
- agentId: string | null;
29
- projectId: string;
30
- tenantId: string;
31
- properties: Record<string, unknown> | null;
32
- title: string | 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;
@@ -91,23 +91,23 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
91
91
  conversationId: string;
92
92
  }) => Promise<{
93
93
  id: string;
94
+ tenantId: string;
94
95
  createdAt: string;
96
+ metadata: ConversationMetadata | null;
97
+ title: string | null;
98
+ properties: Record<string, unknown> | null;
99
+ projectId: string;
100
+ agentId: string | null;
95
101
  updatedAt: string;
102
+ userId: string | null;
96
103
  ref: {
97
104
  type: "commit" | "tag" | "branch";
98
105
  name: string;
99
106
  hash: string;
100
107
  } | null;
101
- userId: string | null;
102
- metadata: ConversationMetadata | null;
103
- agentId: string | null;
104
- projectId: string;
105
- tenantId: string;
106
- properties: Record<string, unknown> | null;
107
- title: string | 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;
@@ -131,23 +131,23 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
131
131
  properties?: Record<string, unknown> | null | undefined;
132
132
  } | {
133
133
  id: string;
134
+ tenantId: string;
134
135
  createdAt: string;
136
+ metadata: ConversationMetadata | null;
137
+ title: string | null;
138
+ properties: Record<string, unknown> | null;
139
+ projectId: string;
140
+ agentId: string | null;
135
141
  updatedAt: string;
142
+ userId: string | null;
136
143
  ref: {
137
144
  type: "commit" | "tag" | "branch";
138
145
  name: string;
139
146
  hash: string;
140
147
  } | null;
141
- userId: string | null;
142
- metadata: ConversationMetadata | null;
143
- agentId: string | null;
144
- projectId: string;
145
- tenantId: string;
146
- properties: Record<string, unknown> | null;
147
- title: string | 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
@@ -165,23 +165,23 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
165
165
  conversationId: string;
166
166
  }) => Promise<{
167
167
  id: string;
168
+ tenantId: string;
168
169
  createdAt: string;
170
+ metadata: ConversationMetadata | null;
171
+ title: string | null;
172
+ properties: Record<string, unknown> | null;
173
+ projectId: string;
174
+ agentId: string | null;
169
175
  updatedAt: string;
176
+ userId: string | null;
170
177
  ref: {
171
178
  type: "commit" | "tag" | "branch";
172
179
  name: string;
173
180
  hash: string;
174
181
  } | null;
175
- userId: string | null;
176
- metadata: ConversationMetadata | null;
177
- agentId: string | null;
178
- projectId: string;
179
- tenantId: string;
180
- properties: Record<string, unknown> | null;
181
- title: string | 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)
@@ -9,13 +9,13 @@ declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert
9
9
  row: {
10
10
  type: string;
11
11
  id: string;
12
+ tenantId: string;
12
13
  createdAt: string;
13
- updatedAt: string;
14
14
  metadata: Record<string, unknown> | null;
15
- agentId: string | null;
16
- projectId: string;
17
- tenantId: string;
18
15
  properties: Record<string, unknown> | null;
16
+ projectId: string;
17
+ agentId: string | null;
18
+ updatedAt: string;
19
19
  conversationId: string | null;
20
20
  userProperties: Record<string, unknown> | null;
21
21
  messageId: string | null;
@@ -72,10 +72,10 @@ declare const getFeedbackByIds: (db: AgentsRunDatabaseClient) => (params: {
72
72
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
73
73
  type: "positive" | "negative";
74
74
  id: string;
75
+ tenantId: string;
75
76
  createdAt: string;
76
- updatedAt: string;
77
77
  projectId: string;
78
- tenantId: string;
78
+ updatedAt: string;
79
79
  conversationId: string;
80
80
  messageId: string | null;
81
81
  details: string | null;
@@ -102,10 +102,10 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
102
102
  }) => Promise<{
103
103
  type: "positive" | "negative";
104
104
  id: string;
105
+ tenantId: string;
105
106
  createdAt: string;
106
- updatedAt: string;
107
107
  projectId: string;
108
- tenantId: string;
108
+ updatedAt: string;
109
109
  conversationId: string;
110
110
  messageId: string | null;
111
111
  details: string | null;
@@ -11,15 +11,15 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
11
11
  messageId: string;
12
12
  }) => Promise<{
13
13
  id: string;
14
+ tenantId: string;
14
15
  createdAt: string;
15
- updatedAt: string;
16
16
  metadata: MessageMetadata | null;
17
- role: string;
18
- projectId: string;
19
- tenantId: string;
20
17
  properties: Record<string, unknown> | null;
21
18
  content: MessageContent;
19
+ projectId: string;
20
+ updatedAt: string;
22
21
  conversationId: string;
22
+ role: string;
23
23
  userProperties: Record<string, unknown> | null;
24
24
  fromSubAgentId: string | null;
25
25
  toSubAgentId: string | null;
@@ -155,15 +155,15 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
155
155
  data: Omit<MessageInsert, "tenantId" | "projectId">;
156
156
  }) => Promise<{
157
157
  id: string;
158
+ tenantId: string;
158
159
  createdAt: string;
159
- updatedAt: string;
160
160
  metadata: MessageMetadata | null;
161
- role: string;
162
- projectId: string;
163
- tenantId: string;
164
161
  properties: Record<string, unknown> | null;
165
162
  content: MessageContent;
163
+ projectId: string;
164
+ updatedAt: string;
166
165
  conversationId: string;
166
+ role: string;
167
167
  userProperties: Record<string, unknown> | null;
168
168
  fromSubAgentId: string | null;
169
169
  toSubAgentId: string | null;
@@ -212,15 +212,15 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
212
212
  messageId: string;
213
213
  }) => Promise<{
214
214
  id: string;
215
+ tenantId: string;
215
216
  createdAt: string;
216
- updatedAt: string;
217
217
  metadata: MessageMetadata | null;
218
- role: string;
219
- projectId: string;
220
- tenantId: string;
221
218
  properties: Record<string, unknown> | null;
222
219
  content: MessageContent;
220
+ projectId: string;
221
+ updatedAt: string;
223
222
  conversationId: string;
223
+ role: string;
224
224
  userProperties: Record<string, unknown> | null;
225
225
  fromSubAgentId: string | null;
226
226
  toSubAgentId: string | null;
@@ -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,9 +15,9 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
15
15
  scheduledTriggerId: string;
16
16
  userId: string;
17
17
  }) => Promise<{
18
+ tenantId: string;
18
19
  createdAt: string;
19
20
  userId: string;
20
- tenantId: string;
21
21
  scheduledTriggerId: string;
22
22
  }>;
23
23
  declare const deleteScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (params: {
@@ -8,19 +8,19 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
8
8
  //#region src/data-access/runtime/tasks.d.ts
9
9
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
10
10
  id: string;
11
+ tenantId: string;
11
12
  createdAt: string;
13
+ metadata: TaskMetadataConfig | null;
14
+ projectId: string;
15
+ agentId: string;
16
+ subAgentId: string;
12
17
  updatedAt: string;
18
+ status: string;
13
19
  ref: {
14
20
  type: "commit" | "tag" | "branch";
15
21
  name: string;
16
22
  hash: string;
17
23
  } | null;
18
- metadata: TaskMetadataConfig | null;
19
- status: string;
20
- agentId: string;
21
- projectId: string;
22
- tenantId: string;
23
- subAgentId: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {