@inkeep/agents-core 0.74.3 → 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/constants/models.d.ts +1 -0
  5. package/dist/constants/models.js +1 -0
  6. package/dist/data-access/manage/agents.d.ts +30 -30
  7. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  8. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  9. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  10. package/dist/data-access/manage/functionTools.d.ts +12 -12
  11. package/dist/data-access/manage/skills.d.ts +13 -13
  12. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  13. package/dist/data-access/manage/subAgentRelations.d.ts +18 -18
  14. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  15. package/dist/data-access/manage/subAgents.d.ts +18 -18
  16. package/dist/data-access/manage/tools.d.ts +21 -21
  17. package/dist/data-access/manage/triggers.d.ts +3 -3
  18. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  19. package/dist/data-access/runtime/apps.d.ts +17 -17
  20. package/dist/data-access/runtime/conversations.d.ts +28 -28
  21. package/dist/data-access/runtime/events.d.ts +4 -4
  22. package/dist/data-access/runtime/feedback.d.ts +4 -4
  23. package/dist/data-access/runtime/messages.d.ts +21 -21
  24. package/dist/data-access/runtime/tasks.d.ts +4 -4
  25. package/dist/db/manage/manage-schema.d.ts +484 -484
  26. package/dist/db/runtime/runtime-schema.d.ts +451 -451
  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 +56 -56
  38. package/dist/validation/schemas.d.ts +2488 -2488
  39. 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
- properties: Record<string, unknown> | null;
19
- title: string | null;
18
+ id: string;
20
19
  tenantId: string;
20
+ createdAt: string;
21
+ metadata: ConversationMetadata | null;
22
+ title: string | null;
23
+ properties: Record<string, unknown> | null;
21
24
  projectId: string;
22
25
  agentId: string | null;
23
- id: string;
24
- createdAt: string;
25
26
  updatedAt: string;
27
+ userId: string | null;
26
28
  ref: {
27
29
  type: "commit" | "tag" | "branch";
28
30
  name: string;
29
31
  hash: string;
30
32
  } | null;
31
- userId: string | null;
32
- metadata: ConversationMetadata | 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
- properties: Record<string, unknown> | null;
94
- title: string | null;
93
+ id: string;
95
94
  tenantId: string;
95
+ createdAt: string;
96
+ metadata: ConversationMetadata | null;
97
+ title: string | null;
98
+ properties: Record<string, unknown> | null;
96
99
  projectId: string;
97
100
  agentId: string | null;
98
- id: string;
99
- createdAt: string;
100
101
  updatedAt: string;
102
+ userId: string | null;
101
103
  ref: {
102
104
  type: "commit" | "tag" | "branch";
103
105
  name: string;
104
106
  hash: string;
105
107
  } | null;
106
- userId: string | null;
107
- metadata: ConversationMetadata | 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
- properties: Record<string, unknown> | null;
134
- title: string | null;
133
+ id: string;
135
134
  tenantId: string;
135
+ createdAt: string;
136
+ metadata: ConversationMetadata | null;
137
+ title: string | null;
138
+ properties: Record<string, unknown> | null;
136
139
  projectId: string;
137
140
  agentId: string | null;
138
- id: string;
139
- createdAt: string;
140
141
  updatedAt: string;
142
+ userId: string | null;
141
143
  ref: {
142
144
  type: "commit" | "tag" | "branch";
143
145
  name: string;
144
146
  hash: string;
145
147
  } | null;
146
- userId: string | null;
147
- metadata: ConversationMetadata | 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
- properties: Record<string, unknown> | null;
168
- title: string | null;
167
+ id: string;
169
168
  tenantId: string;
169
+ createdAt: string;
170
+ metadata: ConversationMetadata | null;
171
+ title: string | null;
172
+ properties: Record<string, unknown> | null;
170
173
  projectId: string;
171
174
  agentId: string | null;
172
- id: string;
173
- createdAt: string;
174
175
  updatedAt: string;
176
+ userId: string | null;
175
177
  ref: {
176
178
  type: "commit" | "tag" | "branch";
177
179
  name: string;
178
180
  hash: string;
179
181
  } | null;
180
- userId: string | null;
181
- metadata: ConversationMetadata | 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)
@@ -8,14 +8,14 @@ import { EventInsert } from "../../types/entities.js";
8
8
  declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert) => Promise<{
9
9
  row: {
10
10
  type: string;
11
- properties: Record<string, unknown> | null;
11
+ id: string;
12
12
  tenantId: string;
13
+ createdAt: string;
14
+ metadata: Record<string, unknown> | null;
15
+ properties: Record<string, unknown> | null;
13
16
  projectId: string;
14
17
  agentId: string | null;
15
- id: string;
16
- createdAt: string;
17
18
  updatedAt: string;
18
- metadata: Record<string, unknown> | null;
19
19
  conversationId: string | null;
20
20
  userProperties: Record<string, unknown> | null;
21
21
  messageId: string | null;
@@ -71,10 +71,10 @@ declare const getFeedbackByIds: (db: AgentsRunDatabaseClient) => (params: {
71
71
  }[]>;
72
72
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
73
73
  type: "positive" | "negative";
74
- tenantId: string;
75
- projectId: string;
76
74
  id: string;
75
+ tenantId: string;
77
76
  createdAt: string;
77
+ projectId: string;
78
78
  updatedAt: string;
79
79
  conversationId: string;
80
80
  messageId: string | null;
@@ -101,10 +101,10 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
101
101
  feedbackId: string;
102
102
  }) => Promise<{
103
103
  type: "positive" | "negative";
104
- tenantId: string;
105
- projectId: string;
106
104
  id: string;
105
+ tenantId: string;
107
106
  createdAt: string;
107
+ projectId: string;
108
108
  updatedAt: string;
109
109
  conversationId: string;
110
110
  messageId: string | null;
@@ -10,18 +10,16 @@ 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;
16
13
  id: string;
14
+ tenantId: string;
17
15
  createdAt: string;
18
- updatedAt: string;
19
16
  metadata: MessageMetadata | null;
20
- role: string;
17
+ properties: Record<string, unknown> | null;
21
18
  content: MessageContent;
19
+ projectId: string;
20
+ updatedAt: string;
22
21
  conversationId: string;
23
- taskId: string | null;
24
- visibility: string;
22
+ role: string;
25
23
  userProperties: Record<string, unknown> | null;
26
24
  fromSubAgentId: string | null;
27
25
  toSubAgentId: string | null;
@@ -29,7 +27,9 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
29
27
  toExternalAgentId: string | null;
30
28
  fromTeamAgentId: string | null;
31
29
  toTeamAgentId: string | null;
30
+ visibility: string;
32
31
  messageType: string;
32
+ taskId: string | null;
33
33
  parentMessageId: string | null;
34
34
  a2aTaskId: string | null;
35
35
  a2aSessionId: string | null;
@@ -154,18 +154,16 @@ 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;
160
157
  id: string;
158
+ tenantId: string;
161
159
  createdAt: string;
162
- updatedAt: string;
163
160
  metadata: MessageMetadata | null;
164
- role: string;
161
+ properties: Record<string, unknown> | null;
165
162
  content: MessageContent;
163
+ projectId: string;
164
+ updatedAt: string;
166
165
  conversationId: string;
167
- taskId: string | null;
168
- visibility: string;
166
+ role: string;
169
167
  userProperties: Record<string, unknown> | null;
170
168
  fromSubAgentId: string | null;
171
169
  toSubAgentId: string | null;
@@ -173,7 +171,9 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
173
171
  toExternalAgentId: string | null;
174
172
  fromTeamAgentId: string | null;
175
173
  toTeamAgentId: string | null;
174
+ visibility: string;
176
175
  messageType: string;
176
+ taskId: string | null;
177
177
  parentMessageId: string | null;
178
178
  a2aTaskId: string | null;
179
179
  a2aSessionId: string | null;
@@ -211,18 +211,16 @@ 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;
217
214
  id: string;
215
+ tenantId: string;
218
216
  createdAt: string;
219
- updatedAt: string;
220
217
  metadata: MessageMetadata | null;
221
- role: string;
218
+ properties: Record<string, unknown> | null;
222
219
  content: MessageContent;
220
+ projectId: string;
221
+ updatedAt: string;
223
222
  conversationId: string;
224
- taskId: string | null;
225
- visibility: string;
223
+ role: string;
226
224
  userProperties: Record<string, unknown> | null;
227
225
  fromSubAgentId: string | null;
228
226
  toSubAgentId: string | null;
@@ -230,7 +228,9 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
230
228
  toExternalAgentId: string | null;
231
229
  fromTeamAgentId: string | null;
232
230
  toTeamAgentId: string | null;
231
+ visibility: string;
233
232
  messageType: string;
233
+ taskId: string | null;
234
234
  parentMessageId: string | null;
235
235
  a2aTaskId: string | null;
236
236
  a2aSessionId: string | null;
@@ -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;
10
11
  tenantId: string;
12
+ createdAt: string;
13
+ metadata: TaskMetadataConfig | null;
11
14
  projectId: string;
12
15
  agentId: string;
13
16
  subAgentId: string;
14
- id: string;
15
- createdAt: string;
16
17
  updatedAt: string;
18
+ status: string;
17
19
  ref: {
18
20
  type: "commit" | "tag" | "branch";
19
21
  name: string;
20
22
  hash: string;
21
23
  } | null;
22
- metadata: TaskMetadataConfig | null;
23
- status: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {