@inkeep/agents-core 0.70.8 → 0.72.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 (69) hide show
  1. package/dist/auth/auth-schema.d.ts +227 -227
  2. package/dist/auth/auth-validation-schemas.d.ts +137 -137
  3. package/dist/auth/auth.d.ts +113 -113
  4. package/dist/auth/password-policy.d.ts +2 -2
  5. package/dist/auth/permissions.d.ts +9 -9
  6. package/dist/client-exports.d.ts +3 -3
  7. package/dist/client-exports.js +3 -3
  8. package/dist/constants/allowed-file-formats.d.ts +3 -1
  9. package/dist/constants/allowed-file-formats.js +38 -26
  10. package/dist/constants/index.d.ts +3 -3
  11. package/dist/constants/index.js +3 -3
  12. package/dist/constants/signoz-queries.d.ts +8 -2
  13. package/dist/constants/signoz-queries.js +17 -10
  14. package/dist/data-access/index.d.ts +3 -1
  15. package/dist/data-access/index.js +3 -1
  16. package/dist/data-access/manage/agents.d.ts +32 -32
  17. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  18. package/dist/data-access/manage/contextConfigs.d.ts +20 -20
  19. package/dist/data-access/manage/dataComponents.d.ts +8 -8
  20. package/dist/data-access/manage/functionTools.d.ts +16 -16
  21. package/dist/data-access/manage/skills.d.ts +11 -11
  22. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  23. package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
  24. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  25. package/dist/data-access/manage/subAgents.d.ts +12 -12
  26. package/dist/data-access/manage/tools.d.ts +30 -30
  27. package/dist/data-access/manage/triggers.d.ts +5 -5
  28. package/dist/data-access/manage/webhookDestinations.d.ts +60 -0
  29. package/dist/data-access/manage/webhookDestinations.js +113 -0
  30. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  31. package/dist/data-access/runtime/apps.d.ts +9 -9
  32. package/dist/data-access/runtime/conversations.d.ts +36 -20
  33. package/dist/data-access/runtime/conversations.js +30 -8
  34. package/dist/data-access/runtime/events.d.ts +93 -0
  35. package/dist/data-access/runtime/events.js +43 -0
  36. package/dist/data-access/runtime/feedback.d.ts +6 -6
  37. package/dist/data-access/runtime/messages.d.ts +34 -18
  38. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  39. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  40. package/dist/data-access/runtime/tasks.d.ts +5 -5
  41. package/dist/db/manage/manage-schema.d.ts +790 -459
  42. package/dist/db/manage/manage-schema.js +93 -2
  43. package/dist/db/runtime/runtime-schema.d.ts +769 -437
  44. package/dist/db/runtime/runtime-schema.js +52 -1
  45. package/dist/index.d.ts +9 -7
  46. package/dist/index.js +8 -6
  47. package/dist/setup/setup.d.ts +1 -0
  48. package/dist/setup/setup.js +4 -1
  49. package/dist/types/entities.d.ts +13 -2
  50. package/dist/types/index.d.ts +2 -2
  51. package/dist/utils/conversations.d.ts +7 -2
  52. package/dist/utils/conversations.js +16 -3
  53. package/dist/utils/error.d.ts +51 -51
  54. package/dist/utils/index.d.ts +2 -2
  55. package/dist/utils/index.js +2 -2
  56. package/dist/validation/index.d.ts +2 -2
  57. package/dist/validation/index.js +2 -2
  58. package/dist/validation/schemas/skills.d.ts +48 -48
  59. package/dist/validation/schemas.d.ts +3337 -2934
  60. package/dist/validation/schemas.js +124 -8
  61. package/drizzle/manage/0019_hesitant_runaways.sql +28 -0
  62. package/drizzle/manage/meta/0019_snapshot.json +4086 -0
  63. package/drizzle/manage/meta/_journal.json +7 -0
  64. package/drizzle/runtime/0039_abandoned_old_lace.sql +21 -0
  65. package/drizzle/runtime/0040_living_forgotten_one.sql +4 -0
  66. package/drizzle/runtime/meta/0039_snapshot.json +6309 -0
  67. package/drizzle/runtime/meta/0040_snapshot.json +6333 -0
  68. package/drizzle/runtime/meta/_journal.json +14 -0
  69. package/package.json +1 -1
@@ -60,14 +60,27 @@ const createOrGetConversation = (db) => async (input) => {
60
60
  if (input.id) {
61
61
  const existing = await db.query.conversations.findFirst({ where: and(eq(conversations.tenantId, input.tenantId), eq(conversations.id, input.id)) });
62
62
  if (existing) {
63
+ const updateSet = { updatedAt: (/* @__PURE__ */ new Date()).toISOString() };
64
+ let needsUpdate = false;
63
65
  if (existing.activeSubAgentId !== input.activeSubAgentId) {
64
- await db.update(conversations).set({
65
- activeSubAgentId: input.activeSubAgentId,
66
- updatedAt: (/* @__PURE__ */ new Date()).toISOString()
67
- }).where(eq(conversations.id, input.id));
66
+ updateSet.activeSubAgentId = input.activeSubAgentId;
67
+ needsUpdate = true;
68
+ }
69
+ if (input.userProperties !== void 0) {
70
+ updateSet.userProperties = input.userProperties;
71
+ needsUpdate = true;
72
+ }
73
+ if (input.properties !== void 0) {
74
+ updateSet.properties = input.properties;
75
+ needsUpdate = true;
76
+ }
77
+ if (needsUpdate) {
78
+ await db.update(conversations).set(updateSet).where(eq(conversations.id, input.id));
68
79
  return {
69
80
  ...existing,
70
- activeSubAgentId: input.activeSubAgentId
81
+ ...updateSet.activeSubAgentId ? { activeSubAgentId: updateSet.activeSubAgentId } : {},
82
+ ...input.userProperties !== void 0 ? { userProperties: input.userProperties } : {},
83
+ ...input.properties !== void 0 ? { properties: input.properties } : {}
71
84
  };
72
85
  }
73
86
  return existing;
@@ -83,6 +96,8 @@ const createOrGetConversation = (db) => async (input) => {
83
96
  title: input.title,
84
97
  lastContextResolution: input.lastContextResolution,
85
98
  metadata: input.metadata,
99
+ userProperties: input.userProperties,
100
+ properties: input.properties,
86
101
  ref: input.ref,
87
102
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
88
103
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
@@ -134,6 +149,8 @@ function applyContextWindowManagement(messageHistory, maxOutputTokens) {
134
149
  a2aTaskId: null,
135
150
  a2aSessionId: null,
136
151
  metadata: null,
152
+ userProperties: null,
153
+ properties: null,
137
154
  createdAt: referenceMessage.createdAt,
138
155
  updatedAt: referenceMessage.updatedAt
139
156
  };
@@ -167,6 +184,7 @@ const getActiveAgentForConversation = (db) => async (params) => {
167
184
  * Set active agent for a conversation (upsert operation)
168
185
  */
169
186
  const setActiveAgentForConversation = (db) => async (params) => {
187
+ const now = (/* @__PURE__ */ new Date()).toISOString();
170
188
  await db.insert(conversations).values({
171
189
  id: params.conversationId,
172
190
  tenantId: params.scopes.tenantId,
@@ -176,8 +194,10 @@ const setActiveAgentForConversation = (db) => async (params) => {
176
194
  ref: params.ref,
177
195
  userId: params.userId,
178
196
  metadata: params.metadata,
179
- createdAt: (/* @__PURE__ */ new Date()).toISOString(),
180
- updatedAt: (/* @__PURE__ */ new Date()).toISOString()
197
+ userProperties: params.userProperties,
198
+ properties: params.properties,
199
+ createdAt: now,
200
+ updatedAt: now
181
201
  }).onConflictDoUpdate({
182
202
  target: [
183
203
  conversations.tenantId,
@@ -186,7 +206,9 @@ const setActiveAgentForConversation = (db) => async (params) => {
186
206
  ],
187
207
  set: {
188
208
  activeSubAgentId: params.subAgentId,
189
- updatedAt: (/* @__PURE__ */ new Date()).toISOString()
209
+ updatedAt: now,
210
+ ...params.userProperties !== void 0 ? { userProperties: params.userProperties } : {},
211
+ ...params.properties !== void 0 ? { properties: params.properties } : {}
190
212
  }
191
213
  });
192
214
  };
@@ -0,0 +1,93 @@
1
+ import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
2
+ import { PaginationConfig } from "../../types/utility.js";
3
+ import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
4
+ import "../../types/index.js";
5
+ import { EventInsert } from "../../types/entities.js";
6
+
7
+ //#region src/data-access/runtime/events.d.ts
8
+ declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert) => Promise<{
9
+ row: {
10
+ type: string;
11
+ id: string;
12
+ createdAt: string;
13
+ updatedAt: string;
14
+ agentId: string | null;
15
+ projectId: string;
16
+ tenantId: string;
17
+ properties: Record<string, unknown> | null;
18
+ metadata: Record<string, unknown> | null;
19
+ conversationId: string | null;
20
+ userProperties: Record<string, unknown> | null;
21
+ messageId: string | null;
22
+ serverMetadata: {
23
+ [k: string]: unknown;
24
+ authMethod?: string;
25
+ } | null;
26
+ };
27
+ conflict: false;
28
+ } | {
29
+ row: {
30
+ createdAt: string;
31
+ updatedAt: string;
32
+ type: string;
33
+ agentId: string | null;
34
+ conversationId: string | null;
35
+ messageId: string | null;
36
+ properties: Record<string, unknown> | null;
37
+ userProperties: Record<string, unknown> | null;
38
+ metadata: Record<string, unknown> | null;
39
+ serverMetadata: {
40
+ [k: string]: unknown;
41
+ authMethod?: string;
42
+ } | null;
43
+ projectId: string;
44
+ tenantId: string;
45
+ id: string;
46
+ };
47
+ conflict: true;
48
+ }>;
49
+ declare const getEventById: (db: AgentsRunDatabaseClient) => (params: {
50
+ scopes: ProjectScopeConfig;
51
+ eventId: string;
52
+ }) => Promise<{
53
+ createdAt: string;
54
+ updatedAt: string;
55
+ type: string;
56
+ agentId: string | null;
57
+ conversationId: string | null;
58
+ messageId: string | null;
59
+ properties: Record<string, unknown> | null;
60
+ userProperties: Record<string, unknown> | null;
61
+ metadata: Record<string, unknown> | null;
62
+ serverMetadata: {
63
+ [k: string]: unknown;
64
+ authMethod?: string;
65
+ } | null;
66
+ projectId: string;
67
+ tenantId: string;
68
+ id: string;
69
+ }>;
70
+ declare const listEventsByConversationId: (db: AgentsRunDatabaseClient) => (params: {
71
+ scopes: ProjectScopeConfig;
72
+ conversationId: string;
73
+ pagination?: PaginationConfig;
74
+ }) => Promise<{
75
+ createdAt: string;
76
+ updatedAt: string;
77
+ type: string;
78
+ agentId: string | null;
79
+ conversationId: string | null;
80
+ messageId: string | null;
81
+ properties: Record<string, unknown> | null;
82
+ userProperties: Record<string, unknown> | null;
83
+ metadata: Record<string, unknown> | null;
84
+ serverMetadata: {
85
+ [k: string]: unknown;
86
+ authMethod?: string;
87
+ } | null;
88
+ projectId: string;
89
+ tenantId: string;
90
+ id: string;
91
+ }[]>;
92
+ //#endregion
93
+ export { createEvent, getEventById, listEventsByConversationId };
@@ -0,0 +1,43 @@
1
+ import { events } from "../../db/runtime/runtime-schema.js";
2
+ import { projectScopedWhere } from "../manage/scope-helpers.js";
3
+ import { and, desc, eq } from "drizzle-orm";
4
+
5
+ //#region src/data-access/runtime/events.ts
6
+ const createEvent = (db) => async (params) => {
7
+ const now = (/* @__PURE__ */ new Date()).toISOString();
8
+ const [inserted] = await db.insert(events).values({
9
+ ...params,
10
+ createdAt: now,
11
+ updatedAt: now
12
+ }).onConflictDoNothing({ target: [
13
+ events.tenantId,
14
+ events.projectId,
15
+ events.id
16
+ ] }).returning();
17
+ if (inserted) return {
18
+ row: inserted,
19
+ conflict: false
20
+ };
21
+ const [existing] = await db.select().from(events).where(and(projectScopedWhere(events, {
22
+ tenantId: params.tenantId,
23
+ projectId: params.projectId
24
+ }), eq(events.id, params.id))).limit(1);
25
+ if (!existing) throw new Error(`createEvent: insert returned no row and no existing row found for id=${params.id}`);
26
+ return {
27
+ row: existing,
28
+ conflict: true
29
+ };
30
+ };
31
+ const getEventById = (db) => async (params) => {
32
+ const [result] = await db.select().from(events).where(and(projectScopedWhere(events, params.scopes), eq(events.id, params.eventId))).limit(1);
33
+ return result;
34
+ };
35
+ const listEventsByConversationId = (db) => async (params) => {
36
+ const page = params.pagination?.page || 1;
37
+ const limit = Math.min(params.pagination?.limit || 100, 100);
38
+ const offset = (page - 1) * limit;
39
+ return db.select().from(events).where(and(projectScopedWhere(events, params.scopes), eq(events.conversationId, params.conversationId))).orderBy(desc(events.createdAt)).limit(limit).offset(offset);
40
+ };
41
+
42
+ //#endregion
43
+ export { createEvent, getEventById, listEventsByConversationId };
@@ -71,14 +71,14 @@ 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;
77
75
  createdAt: string;
78
76
  updatedAt: string;
77
+ projectId: string;
78
+ tenantId: string;
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: {
@@ -101,14 +101,14 @@ 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;
107
105
  createdAt: string;
108
106
  updatedAt: string;
107
+ projectId: string;
108
+ tenantId: string;
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,26 +10,28 @@ 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
- content: MessageContent;
17
14
  createdAt: string;
18
15
  updatedAt: string;
16
+ projectId: string;
17
+ tenantId: string;
18
+ properties: Record<string, unknown> | null;
19
19
  metadata: MessageMetadata | null;
20
+ content: MessageContent;
20
21
  role: string;
21
- conversationId: string;
22
22
  fromSubAgentId: string | null;
23
23
  toSubAgentId: string | null;
24
24
  fromExternalAgentId: string | null;
25
25
  toExternalAgentId: string | null;
26
+ taskId: string | null;
27
+ a2aTaskId: string | null;
28
+ conversationId: string;
29
+ userProperties: Record<string, unknown> | null;
26
30
  fromTeamAgentId: string | null;
27
31
  toTeamAgentId: string | null;
28
32
  visibility: string;
29
33
  messageType: string;
30
- taskId: string | null;
31
34
  parentMessageId: string | null;
32
- a2aTaskId: string | null;
33
35
  a2aSessionId: string | null;
34
36
  } | undefined>;
35
37
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -54,6 +56,8 @@ declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
54
56
  a2aTaskId: string | null;
55
57
  a2aSessionId: string | null;
56
58
  metadata: MessageMetadata | null;
59
+ userProperties: Record<string, unknown> | null;
60
+ properties: Record<string, unknown> | null;
57
61
  projectId: string;
58
62
  tenantId: string;
59
63
  id: string;
@@ -81,6 +85,8 @@ declare const getMessagesByConversation: (db: AgentsRunDatabaseClient) => (param
81
85
  a2aTaskId: string | null;
82
86
  a2aSessionId: string | null;
83
87
  metadata: MessageMetadata | null;
88
+ userProperties: Record<string, unknown> | null;
89
+ properties: Record<string, unknown> | null;
84
90
  projectId: string;
85
91
  tenantId: string;
86
92
  id: string;
@@ -108,6 +114,8 @@ declare const getMessagesByTask: (db: AgentsRunDatabaseClient) => (params: {
108
114
  a2aTaskId: string | null;
109
115
  a2aSessionId: string | null;
110
116
  metadata: MessageMetadata | null;
117
+ userProperties: Record<string, unknown> | null;
118
+ properties: Record<string, unknown> | null;
111
119
  projectId: string;
112
120
  tenantId: string;
113
121
  id: string;
@@ -136,6 +144,8 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
136
144
  a2aTaskId: string | null;
137
145
  a2aSessionId: string | null;
138
146
  metadata: MessageMetadata | null;
147
+ userProperties: Record<string, unknown> | null;
148
+ properties: Record<string, unknown> | null;
139
149
  projectId: string;
140
150
  tenantId: string;
141
151
  id: string;
@@ -144,26 +154,28 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
144
154
  scopes: ProjectScopeConfig;
145
155
  data: Omit<MessageInsert, "tenantId" | "projectId">;
146
156
  }) => Promise<{
147
- tenantId: string;
148
- projectId: string;
149
157
  id: string;
150
- content: MessageContent;
151
158
  createdAt: string;
152
159
  updatedAt: string;
160
+ projectId: string;
161
+ tenantId: string;
162
+ properties: Record<string, unknown> | null;
153
163
  metadata: MessageMetadata | null;
164
+ content: MessageContent;
154
165
  role: string;
155
- conversationId: string;
156
166
  fromSubAgentId: string | null;
157
167
  toSubAgentId: string | null;
158
168
  fromExternalAgentId: string | null;
159
169
  toExternalAgentId: string | null;
170
+ taskId: string | null;
171
+ a2aTaskId: string | null;
172
+ conversationId: string;
173
+ userProperties: Record<string, unknown> | null;
160
174
  fromTeamAgentId: string | null;
161
175
  toTeamAgentId: string | null;
162
176
  visibility: string;
163
177
  messageType: string;
164
- taskId: string | null;
165
178
  parentMessageId: string | null;
166
- a2aTaskId: string | null;
167
179
  a2aSessionId: string | null;
168
180
  }>;
169
181
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -189,6 +201,8 @@ declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
189
201
  a2aTaskId: string | null;
190
202
  a2aSessionId: string | null;
191
203
  metadata: MessageMetadata | null;
204
+ userProperties: Record<string, unknown> | null;
205
+ properties: Record<string, unknown> | null;
192
206
  projectId: string;
193
207
  tenantId: string;
194
208
  id: string;
@@ -197,26 +211,28 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
197
211
  scopes: ProjectScopeConfig;
198
212
  messageId: string;
199
213
  }) => Promise<{
200
- tenantId: string;
201
- projectId: string;
202
214
  id: string;
203
- content: MessageContent;
204
215
  createdAt: string;
205
216
  updatedAt: string;
217
+ projectId: string;
218
+ tenantId: string;
219
+ properties: Record<string, unknown> | null;
206
220
  metadata: MessageMetadata | null;
221
+ content: MessageContent;
207
222
  role: string;
208
- conversationId: string;
209
223
  fromSubAgentId: string | null;
210
224
  toSubAgentId: string | null;
211
225
  fromExternalAgentId: string | null;
212
226
  toExternalAgentId: string | null;
227
+ taskId: string | null;
228
+ a2aTaskId: string | null;
229
+ conversationId: string;
230
+ userProperties: Record<string, unknown> | null;
213
231
  fromTeamAgentId: string | null;
214
232
  toTeamAgentId: string | null;
215
233
  visibility: string;
216
234
  messageType: string;
217
- taskId: string | null;
218
235
  parentMessageId: string | null;
219
- a2aTaskId: string | null;
220
236
  a2aSessionId: string | null;
221
237
  }>;
222
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
- tenantId: string;
19
18
  createdAt: string;
19
+ tenantId: 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
- tenantId: string;
11
- projectId: string;
12
- agentId: string;
13
- subAgentId: string;
14
10
  id: string;
15
11
  createdAt: string;
16
12
  updatedAt: string;
13
+ agentId: string;
14
+ projectId: string;
15
+ tenantId: string;
17
16
  metadata: TaskMetadataConfig | null;
18
- status: string;
19
17
  ref: {
20
18
  type: "commit" | "tag" | "branch";
21
19
  name: string;
22
20
  hash: string;
23
21
  } | null;
22
+ status: string;
23
+ subAgentId: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {