@inkeep/agents-core 0.75.3 → 0.77.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 (62) hide show
  1. package/dist/auth/auth.js +3 -0
  2. package/dist/auth/permissions.d.ts +9 -9
  3. package/dist/auth/sso-issuer-discovery.d.ts +50 -0
  4. package/dist/auth/sso-issuer-discovery.js +85 -0
  5. package/dist/constants/allowed-file-formats.d.ts +3 -1
  6. package/dist/constants/allowed-file-formats.js +3 -2
  7. package/dist/constants/index.d.ts +2 -2
  8. package/dist/constants/schema-validation/defaults.d.ts +1 -1
  9. package/dist/constants/schema-validation/defaults.js +1 -1
  10. package/dist/constants/schema-validation/index.d.ts +1 -1
  11. package/dist/data-access/index.d.ts +2 -2
  12. package/dist/data-access/index.js +2 -2
  13. package/dist/data-access/manage/agents.d.ts +46 -46
  14. package/dist/data-access/manage/artifactComponents.d.ts +14 -14
  15. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  16. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  17. package/dist/data-access/manage/functionTools.d.ts +20 -20
  18. package/dist/data-access/manage/skills.d.ts +12 -12
  19. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  20. package/dist/data-access/manage/subAgentRelations.d.ts +34 -34
  21. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  22. package/dist/data-access/manage/subAgents.d.ts +18 -18
  23. package/dist/data-access/manage/tools.d.ts +30 -30
  24. package/dist/data-access/manage/triggers.d.ts +5 -5
  25. package/dist/data-access/manage/webhookDestinations.d.ts +6 -4
  26. package/dist/data-access/manage/webhookDestinations.js +13 -15
  27. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  28. package/dist/data-access/runtime/apps.d.ts +16 -16
  29. package/dist/data-access/runtime/auth.d.ts +4 -1
  30. package/dist/data-access/runtime/auth.js +5 -1
  31. package/dist/data-access/runtime/conversations.d.ts +21 -20
  32. package/dist/data-access/runtime/conversations.js +8 -1
  33. package/dist/data-access/runtime/events.d.ts +5 -5
  34. package/dist/data-access/runtime/feedback.d.ts +6 -6
  35. package/dist/data-access/runtime/messages.d.ts +18 -18
  36. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  37. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  38. package/dist/data-access/runtime/tasks.d.ts +4 -4
  39. package/dist/db/manage/manage-schema.d.ts +484 -484
  40. package/dist/db/runtime/runtime-schema.d.ts +443 -443
  41. package/dist/external-fetch/external-file-downloader.d.ts +14 -0
  42. package/dist/external-fetch/external-file-downloader.js +146 -0
  43. package/dist/external-fetch/file-content-security.d.ts +18 -0
  44. package/dist/external-fetch/file-content-security.js +81 -0
  45. package/dist/external-fetch/file-security-constants.d.ts +12 -0
  46. package/dist/external-fetch/file-security-constants.js +16 -0
  47. package/dist/external-fetch/file-security-errors.d.ts +96 -0
  48. package/dist/external-fetch/file-security-errors.js +154 -0
  49. package/dist/external-fetch/file-url-security.d.ts +7 -0
  50. package/dist/external-fetch/file-url-security.js +75 -0
  51. package/dist/external-fetch/index.d.ts +6 -0
  52. package/dist/external-fetch/index.js +7 -0
  53. package/dist/index.d.ts +2 -2
  54. package/dist/index.js +2 -2
  55. package/dist/text-attachments/index.d.ts +2 -0
  56. package/dist/text-attachments/index.js +3 -0
  57. package/dist/text-attachments/text-document-attachments.d.ts +40 -0
  58. package/dist/text-attachments/text-document-attachments.js +86 -0
  59. package/dist/validation/schemas/skills.d.ts +43 -43
  60. package/dist/validation/schemas.d.ts +2415 -2415
  61. package/dist/validation/schemas.js +5 -3
  62. package/package.json +12 -1
@@ -6,18 +6,15 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
6
6
  //#region src/data-access/runtime/apps.d.ts
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
8
  type: AppType;
9
- description: string | null;
10
- tenantId: string | null;
11
- projectId: string | null;
12
- name: string;
13
9
  id: string;
10
+ name: string;
14
11
  createdAt: string;
15
12
  updatedAt: string;
16
- prompt: string | null;
13
+ description: string | null;
17
14
  enabled: boolean;
18
- lastUsedAt: string | null;
19
- defaultProjectId: string | null;
20
- defaultAgentId: string | null;
15
+ projectId: string | null;
16
+ tenantId: string | null;
17
+ prompt: string | null;
21
18
  config: {
22
19
  type: "web_client";
23
20
  webClient: {
@@ -48,6 +45,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
48
45
  }[] | undefined;
49
46
  };
50
47
  };
48
+ lastUsedAt: string | null;
49
+ defaultProjectId: string | null;
50
+ defaultAgentId: string | null;
51
51
  } | undefined>;
52
52
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
53
53
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -75,18 +75,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
75
75
  }>;
76
76
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
77
77
  type: AppType;
78
- description: string | null;
79
- tenantId: string | null;
80
- projectId: string | null;
81
- name: string;
82
78
  id: string;
79
+ name: string;
83
80
  createdAt: string;
84
81
  updatedAt: string;
85
- prompt: string | null;
82
+ description: string | null;
86
83
  enabled: boolean;
87
- lastUsedAt: string | null;
88
- defaultProjectId: string | null;
89
- defaultAgentId: string | null;
84
+ projectId: string | null;
85
+ tenantId: string | null;
86
+ prompt: string | null;
90
87
  config: {
91
88
  type: "web_client";
92
89
  webClient: {
@@ -117,6 +114,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
117
114
  }[] | undefined;
118
115
  };
119
116
  };
117
+ lastUsedAt: string | null;
118
+ defaultProjectId: string | null;
119
+ defaultAgentId: string | null;
120
120
  }>;
121
121
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
122
122
  scopes: TenantScopeConfig;
@@ -8,6 +8,9 @@ declare const queryHasCredentialAccount: (db: AgentsRunDatabaseClient) => (userI
8
8
  declare const querySsoProviderIssuers: (db: AgentsRunDatabaseClient) => () => Promise<{
9
9
  issuer: string;
10
10
  }[]>;
11
+ declare const querySsoProviderById: (db: AgentsRunDatabaseClient) => (providerId: string) => Promise<{
12
+ issuer: string;
13
+ } | undefined>;
11
14
  declare const querySsoProviderIds: (db: AgentsRunDatabaseClient) => () => Promise<string[]>;
12
15
  declare const queryOrgAllowedAuthMethods: (db: AgentsRunDatabaseClient) => (orgId: string) => Promise<{
13
16
  allowedAuthMethods: string | null;
@@ -15,4 +18,4 @@ declare const queryOrgAllowedAuthMethods: (db: AgentsRunDatabaseClient) => (orgI
15
18
  declare const queryMemberExists: (db: AgentsRunDatabaseClient) => (userId: string, organizationId: string) => Promise<boolean>;
16
19
  declare const queryPendingInvitationExists: (db: AgentsRunDatabaseClient) => (email: string, organizationId: string) => Promise<boolean>;
17
20
  //#endregion
18
- export { getInitialOrganization, queryHasCredentialAccount, queryMemberExists, queryOrgAllowedAuthMethods, queryPendingInvitationExists, querySsoProviderIds, querySsoProviderIssuers };
21
+ export { getInitialOrganization, queryHasCredentialAccount, queryMemberExists, queryOrgAllowedAuthMethods, queryPendingInvitationExists, querySsoProviderById, querySsoProviderIds, querySsoProviderIssuers };
@@ -13,6 +13,10 @@ const queryHasCredentialAccount = (db) => async (userId) => {
13
13
  const querySsoProviderIssuers = (db) => async () => {
14
14
  return db.select({ issuer: ssoProvider.issuer }).from(ssoProvider);
15
15
  };
16
+ const querySsoProviderById = (db) => async (providerId) => {
17
+ const [row] = await db.select({ issuer: ssoProvider.issuer }).from(ssoProvider).where(eq(ssoProvider.providerId, providerId)).limit(1);
18
+ return row;
19
+ };
16
20
  const querySsoProviderIds = (db) => async () => {
17
21
  return (await db.select({ providerId: ssoProvider.providerId }).from(ssoProvider)).map((r) => r.providerId);
18
22
  };
@@ -30,4 +34,4 @@ const queryPendingInvitationExists = (db) => async (email, organizationId) => {
30
34
  };
31
35
 
32
36
  //#endregion
33
- export { getInitialOrganization, queryHasCredentialAccount, queryMemberExists, queryOrgAllowedAuthMethods, queryPendingInvitationExists, querySsoProviderIds, querySsoProviderIssuers };
37
+ export { getInitialOrganization, queryHasCredentialAccount, queryMemberExists, queryOrgAllowedAuthMethods, queryPendingInvitationExists, querySsoProviderById, querySsoProviderIds, querySsoProviderIssuers };
@@ -9,17 +9,13 @@ import { ConversationInsert, ConversationSelect, ConversationUpdate, MessageSele
9
9
  declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
10
10
  scopes: ProjectScopeConfig;
11
11
  userId?: string;
12
+ agentIds?: string[];
12
13
  pagination?: PaginationConfig;
13
14
  }) => Promise<{
14
15
  conversations: ConversationSelect[];
15
16
  total: number;
16
17
  }>;
17
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
- properties: Record<string, unknown> | null;
19
- title: string | null;
20
- tenantId: string;
21
- projectId: string;
22
- agentId: string | null;
23
19
  id: string;
24
20
  createdAt: string;
25
21
  updatedAt: string;
@@ -30,6 +26,11 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
30
26
  } | null;
31
27
  userId: string | null;
32
28
  metadata: ConversationMetadata | null;
29
+ projectId: string;
30
+ tenantId: string;
31
+ properties: Record<string, unknown> | null;
32
+ title: string | null;
33
+ agentId: string | null;
33
34
  activeSubAgentId: string;
34
35
  lastContextResolution: string | null;
35
36
  userProperties: Record<string, unknown> | null;
@@ -90,11 +91,6 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
90
91
  scopes: ProjectScopeConfig;
91
92
  conversationId: string;
92
93
  }) => Promise<{
93
- properties: Record<string, unknown> | null;
94
- title: string | null;
95
- tenantId: string;
96
- projectId: string;
97
- agentId: string | null;
98
94
  id: string;
99
95
  createdAt: string;
100
96
  updatedAt: string;
@@ -105,6 +101,11 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
105
101
  } | null;
106
102
  userId: string | null;
107
103
  metadata: ConversationMetadata | null;
104
+ projectId: string;
105
+ tenantId: string;
106
+ properties: Record<string, unknown> | null;
107
+ title: string | null;
108
+ agentId: string | null;
108
109
  activeSubAgentId: string;
109
110
  lastContextResolution: string | null;
110
111
  userProperties: Record<string, unknown> | null;
@@ -130,11 +131,6 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
130
131
  userProperties?: Record<string, unknown> | null | undefined;
131
132
  properties?: Record<string, unknown> | null | undefined;
132
133
  } | {
133
- properties: Record<string, unknown> | null;
134
- title: string | null;
135
- tenantId: string;
136
- projectId: string;
137
- agentId: string | null;
138
134
  id: string;
139
135
  createdAt: string;
140
136
  updatedAt: string;
@@ -145,6 +141,11 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
145
141
  } | null;
146
142
  userId: string | null;
147
143
  metadata: ConversationMetadata | null;
144
+ projectId: string;
145
+ tenantId: string;
146
+ properties: Record<string, unknown> | null;
147
+ title: string | null;
148
+ agentId: string | null;
148
149
  activeSubAgentId: string;
149
150
  lastContextResolution: string | null;
150
151
  userProperties: Record<string, unknown> | null;
@@ -164,11 +165,6 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
164
165
  scopes: ProjectScopeConfig;
165
166
  conversationId: string;
166
167
  }) => Promise<{
167
- properties: Record<string, unknown> | null;
168
- title: string | null;
169
- tenantId: string;
170
- projectId: string;
171
- agentId: string | null;
172
168
  id: string;
173
169
  createdAt: string;
174
170
  updatedAt: string;
@@ -179,6 +175,11 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
179
175
  } | null;
180
176
  userId: string | null;
181
177
  metadata: ConversationMetadata | null;
178
+ projectId: string;
179
+ tenantId: string;
180
+ properties: Record<string, unknown> | null;
181
+ title: string | null;
182
+ agentId: string | null;
182
183
  activeSubAgentId: string;
183
184
  lastContextResolution: string | null;
184
185
  userProperties: Record<string, unknown> | null;
@@ -8,12 +8,19 @@ import { and, count, desc, eq, inArray } from "drizzle-orm";
8
8
  //#region src/data-access/runtime/conversations.ts
9
9
  const logger = getLogger("data-access/runtime/conversations");
10
10
  const listConversations = (db) => async (params) => {
11
- const { userId, pagination } = params;
11
+ const { userId, agentIds, pagination } = params;
12
12
  const page = pagination?.page || 1;
13
13
  const limit = Math.min(pagination?.limit || 20, 200);
14
14
  const offset = (page - 1) * limit;
15
15
  const whereConditions = [projectScopedWhere(conversations, params.scopes)];
16
16
  if (userId) whereConditions.push(eq(conversations.userId, userId));
17
+ if (agentIds) {
18
+ if (agentIds.length === 0) return {
19
+ conversations: [],
20
+ total: 0
21
+ };
22
+ whereConditions.push(inArray(conversations.agentId, agentIds));
23
+ }
17
24
  const conversationList = await db.select().from(conversations).where(and(...whereConditions)).orderBy(desc(conversations.updatedAt)).limit(limit).offset(offset);
18
25
  const total = (await db.select({ count: count() }).from(conversations).where(and(...whereConditions)))[0]?.count || 0;
19
26
  return {
@@ -8,16 +8,16 @@ 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;
12
- tenantId: string;
13
- projectId: string;
14
- agentId: string | null;
15
11
  id: string;
16
12
  createdAt: string;
17
13
  updatedAt: string;
18
14
  metadata: Record<string, unknown> | null;
19
- userProperties: Record<string, unknown> | null;
15
+ projectId: string;
16
+ tenantId: string;
17
+ properties: Record<string, unknown> | null;
18
+ agentId: string | null;
20
19
  conversationId: string | null;
20
+ userProperties: Record<string, unknown> | null;
21
21
  messageId: string | null;
22
22
  serverMetadata: {
23
23
  [k: string]: unknown;
@@ -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
79
  conversationId: string;
80
- messageId: string | null;
81
80
  details: string | null;
81
+ messageId: 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
109
  conversationId: string;
110
- messageId: string | null;
111
110
  details: string | null;
111
+ messageId: string | null;
112
112
  }>;
113
113
  //#endregion
114
114
  export { createFeedback, createFeedbackBulk, deleteFeedback, getFeedbackById, getFeedbackByIds, listFeedback, listFeedbackByConversation, updateFeedback };
@@ -10,28 +10,28 @@ 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;
17
14
  createdAt: string;
18
15
  updatedAt: string;
19
16
  metadata: MessageMetadata | null;
20
17
  role: string;
21
18
  content: MessageContent;
22
- userProperties: Record<string, unknown> | null;
19
+ projectId: string;
20
+ tenantId: string;
21
+ properties: Record<string, unknown> | null;
23
22
  conversationId: string;
24
23
  fromSubAgentId: string | null;
25
24
  toSubAgentId: string | null;
26
25
  fromExternalAgentId: string | null;
27
26
  toExternalAgentId: string | null;
27
+ taskId: string | null;
28
+ a2aTaskId: string | null;
29
+ userProperties: Record<string, unknown> | null;
28
30
  fromTeamAgentId: string | null;
29
31
  toTeamAgentId: string | null;
30
32
  visibility: string;
31
33
  messageType: string;
32
- taskId: string | null;
33
34
  parentMessageId: string | null;
34
- a2aTaskId: string | null;
35
35
  a2aSessionId: string | null;
36
36
  } | undefined>;
37
37
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -154,28 +154,28 @@ 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;
161
158
  createdAt: string;
162
159
  updatedAt: string;
163
160
  metadata: MessageMetadata | null;
164
161
  role: string;
165
162
  content: MessageContent;
166
- userProperties: Record<string, unknown> | null;
163
+ projectId: string;
164
+ tenantId: string;
165
+ properties: Record<string, unknown> | null;
167
166
  conversationId: string;
168
167
  fromSubAgentId: string | null;
169
168
  toSubAgentId: string | null;
170
169
  fromExternalAgentId: string | null;
171
170
  toExternalAgentId: string | null;
171
+ taskId: string | null;
172
+ a2aTaskId: string | null;
173
+ userProperties: Record<string, unknown> | null;
172
174
  fromTeamAgentId: string | null;
173
175
  toTeamAgentId: string | null;
174
176
  visibility: string;
175
177
  messageType: string;
176
- taskId: string | null;
177
178
  parentMessageId: string | null;
178
- a2aTaskId: string | null;
179
179
  a2aSessionId: string | null;
180
180
  }>;
181
181
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -211,28 +211,28 @@ 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;
218
215
  createdAt: string;
219
216
  updatedAt: string;
220
217
  metadata: MessageMetadata | null;
221
218
  role: string;
222
219
  content: MessageContent;
223
- userProperties: Record<string, unknown> | null;
220
+ projectId: string;
221
+ tenantId: string;
222
+ properties: Record<string, unknown> | null;
224
223
  conversationId: string;
225
224
  fromSubAgentId: string | null;
226
225
  toSubAgentId: string | null;
227
226
  fromExternalAgentId: string | null;
228
227
  toExternalAgentId: string | null;
228
+ taskId: string | null;
229
+ a2aTaskId: string | null;
230
+ userProperties: Record<string, unknown> | null;
229
231
  fromTeamAgentId: string | null;
230
232
  toTeamAgentId: string | null;
231
233
  visibility: string;
232
234
  messageType: string;
233
- taskId: string | null;
234
235
  parentMessageId: string | null;
235
- a2aTaskId: string | null;
236
236
  a2aSessionId: string | null;
237
237
  }>;
238
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,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
+ projectId: string;
21
+ tenantId: string;
22
+ agentId: string;
23
+ subAgentId: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {