@inkeep/agents-core 0.80.4 → 0.80.5

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 (30) hide show
  1. package/dist/auth/auth-types.d.ts +7 -0
  2. package/dist/auth/auth.js +1 -1
  3. package/dist/auth/init.js +2 -1
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/data-access/manage/agents.d.ts +25 -25
  6. package/dist/data-access/manage/artifactComponents.d.ts +2 -2
  7. package/dist/data-access/manage/contextConfigs.d.ts +4 -4
  8. package/dist/data-access/manage/functionTools.d.ts +4 -4
  9. package/dist/data-access/manage/skills.d.ts +8 -8
  10. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  11. package/dist/data-access/manage/subAgentRelations.d.ts +8 -8
  12. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
  13. package/dist/data-access/manage/subAgents.d.ts +15 -15
  14. package/dist/data-access/manage/tools.d.ts +18 -18
  15. package/dist/data-access/manage/triggers.d.ts +3 -3
  16. package/dist/data-access/runtime/apiKeys.d.ts +4 -4
  17. package/dist/data-access/runtime/apps.d.ts +8 -8
  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 +24 -24
  22. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +5 -5
  23. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  24. package/dist/data-access/runtime/tasks.d.ts +5 -5
  25. package/dist/db/manage/manage-schema.d.ts +401 -401
  26. package/dist/db/runtime/runtime-schema.d.ts +420 -420
  27. package/dist/setup/setup.js +4 -0
  28. package/dist/validation/schemas/skills.d.ts +36 -36
  29. package/dist/validation/schemas.d.ts +496 -496
  30. package/package.json +4 -4
@@ -22,12 +22,12 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
22
22
  }) => Promise<{
23
23
  id: string;
24
24
  name: string;
25
- description: string | null;
26
25
  createdAt: string;
27
26
  updatedAt: string;
27
+ description: string | null;
28
+ headers: Record<string, string> | null;
28
29
  tenantId: string;
29
30
  projectId: string;
30
- headers: Record<string, string> | null;
31
31
  config: {
32
32
  type: "mcp";
33
33
  mcp: ToolMcpConfig;
@@ -80,12 +80,12 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
81
  id: string;
82
82
  name: string;
83
- description: string | null;
84
83
  createdAt: string;
85
84
  updatedAt: string;
85
+ description: string | null;
86
+ headers: Record<string, string> | null;
86
87
  tenantId: string;
87
88
  projectId: string;
88
- headers: Record<string, string> | null;
89
89
  config: {
90
90
  type: "mcp";
91
91
  mcp: ToolMcpConfig;
@@ -138,16 +138,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
138
138
  id: string;
139
139
  createdAt: string;
140
140
  updatedAt: string;
141
+ headers: Record<string, string> | null;
141
142
  tenantId: string;
142
143
  projectId: string;
143
- agentId: string;
144
144
  toolId: string;
145
- headers: Record<string, string> | null;
145
+ agentId: string;
146
+ subAgentId: string;
147
+ selectedTools: string[] | null;
146
148
  toolPolicies: Record<string, {
147
149
  needsApproval?: boolean;
148
150
  }> | null;
149
- subAgentId: string;
150
- selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
153
153
  scopes: AgentScopeConfig;
@@ -157,16 +157,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
157
157
  id: string;
158
158
  createdAt: string;
159
159
  updatedAt: string;
160
+ headers: Record<string, string> | null;
160
161
  tenantId: string;
161
162
  projectId: string;
162
- agentId: string;
163
163
  toolId: string;
164
- headers: Record<string, string> | null;
164
+ agentId: string;
165
+ subAgentId: string;
166
+ selectedTools: string[] | null;
165
167
  toolPolicies: Record<string, {
166
168
  needsApproval?: boolean;
167
169
  }> | null;
168
- subAgentId: string;
169
- selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
172
172
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -185,16 +185,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
185
185
  id: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
+ headers: Record<string, string> | null;
188
189
  tenantId: string;
189
190
  projectId: string;
190
- agentId: string;
191
191
  toolId: string;
192
- headers: Record<string, string> | null;
192
+ agentId: string;
193
+ subAgentId: string;
194
+ selectedTools: string[] | null;
193
195
  toolPolicies: Record<string, {
194
196
  needsApproval?: boolean;
195
197
  }> | null;
196
- subAgentId: string;
197
- selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
200
200
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -204,12 +204,12 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
204
204
  }) => Promise<{
205
205
  id: string;
206
206
  name: string;
207
- description: string | null;
208
207
  createdAt: string;
209
208
  updatedAt: string;
209
+ description: string | null;
210
+ headers: Record<string, string> | null;
210
211
  tenantId: string;
211
212
  projectId: string;
212
- headers: Record<string, string> | null;
213
213
  config: {
214
214
  type: "mcp";
215
215
  mcp: ToolMcpConfig;
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
40
40
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
41
  encoding: "hex" | "base64";
42
42
  signature: {
43
- source: "query" | "header" | "body";
43
+ source: "query" | "body" | "header";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "header" | "body";
49
+ source: "literal" | "body" | "header";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -132,10 +132,10 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
132
132
  userId: string;
133
133
  }) => Promise<{
134
134
  createdAt: string;
135
+ userId: string;
135
136
  tenantId: string;
136
137
  projectId: string;
137
138
  agentId: string;
138
- userId: string;
139
139
  triggerId: string;
140
140
  }>;
141
141
  declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
@@ -12,10 +12,10 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
12
12
  name: string | null;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
+ expiresAt: string | null;
15
16
  tenantId: string;
16
17
  projectId: string;
17
18
  agentId: string;
18
- expiresAt: string | null;
19
19
  publicId: string;
20
20
  keyHash: string;
21
21
  keyPrefix: string;
@@ -26,10 +26,10 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
26
26
  name: string | null;
27
27
  createdAt: string;
28
28
  updatedAt: string;
29
+ expiresAt: string | null;
29
30
  tenantId: string;
30
31
  projectId: string;
31
32
  agentId: string;
32
- expiresAt: string | null;
33
33
  publicId: string;
34
34
  keyHash: string;
35
35
  keyPrefix: string;
@@ -43,10 +43,10 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
43
43
  name: string | null;
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
+ expiresAt: string | null;
46
47
  tenantId: string;
47
48
  projectId: string;
48
49
  agentId: string;
49
- expiresAt: string | null;
50
50
  publicId: string;
51
51
  keyHash: string;
52
52
  keyPrefix: string;
@@ -70,10 +70,10 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
70
70
  name: string | null;
71
71
  createdAt: string;
72
72
  updatedAt: string;
73
+ expiresAt: string | null;
73
74
  tenantId: string;
74
75
  projectId: string;
75
76
  agentId: string;
76
- expiresAt: string | null;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;
@@ -5,16 +5,16 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
5
5
 
6
6
  //#region src/data-access/runtime/apps.d.ts
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
- type: AppType;
9
8
  id: string;
10
9
  name: string;
11
- description: string | null;
12
10
  createdAt: string;
13
11
  updatedAt: string;
14
- tenantId: string | null;
15
- projectId: string | null;
12
+ type: AppType;
13
+ description: string | null;
16
14
  enabled: boolean;
17
15
  prompt: string | null;
16
+ tenantId: string | null;
17
+ projectId: string | null;
18
18
  config: {
19
19
  type: "web_client";
20
20
  webClient: {
@@ -74,16 +74,16 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
74
74
  };
75
75
  }>;
76
76
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
77
- type: AppType;
78
77
  id: string;
79
78
  name: string;
80
- description: string | null;
81
79
  createdAt: string;
82
80
  updatedAt: string;
83
- tenantId: string | null;
84
- projectId: string | null;
81
+ type: AppType;
82
+ description: string | null;
85
83
  enabled: boolean;
86
84
  prompt: string | null;
85
+ tenantId: string | null;
86
+ projectId: string | null;
87
87
  config: {
88
88
  type: "web_client";
89
89
  webClient: {
@@ -17,23 +17,23 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
17
17
  }>;
18
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
19
19
  id: string;
20
- properties: Record<string, unknown> | null;
21
- title: string | null;
22
20
  createdAt: string;
23
21
  updatedAt: string;
24
- tenantId: string;
25
- projectId: string;
26
- metadata: ConversationMetadata | null;
27
- agentId: string | null;
28
- userId: string | null;
29
22
  ref: {
30
23
  type: "commit" | "tag" | "branch";
31
24
  name: string;
32
25
  hash: string;
33
26
  } | null;
34
- userProperties: Record<string, unknown> | null;
27
+ userId: string | null;
28
+ metadata: ConversationMetadata | null;
29
+ properties: Record<string, unknown> | null;
30
+ title: string | null;
31
+ tenantId: string;
32
+ projectId: string;
33
+ agentId: string | null;
35
34
  activeSubAgentId: string;
36
35
  lastContextResolution: string | null;
36
+ userProperties: Record<string, unknown> | null;
37
37
  }>;
38
38
  declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
@@ -92,23 +92,23 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
92
92
  conversationId: string;
93
93
  }) => Promise<{
94
94
  id: string;
95
- properties: Record<string, unknown> | null;
96
- title: string | null;
97
95
  createdAt: string;
98
96
  updatedAt: string;
99
- tenantId: string;
100
- projectId: string;
101
- metadata: ConversationMetadata | null;
102
- agentId: string | null;
103
- userId: string | null;
104
97
  ref: {
105
98
  type: "commit" | "tag" | "branch";
106
99
  name: string;
107
100
  hash: string;
108
101
  } | null;
109
- userProperties: Record<string, unknown> | null;
102
+ userId: string | null;
103
+ metadata: ConversationMetadata | null;
104
+ properties: Record<string, unknown> | null;
105
+ title: string | null;
106
+ tenantId: string;
107
+ projectId: string;
108
+ agentId: string | null;
110
109
  activeSubAgentId: string;
111
110
  lastContextResolution: string | null;
111
+ userProperties: Record<string, unknown> | null;
112
112
  } | undefined>;
113
113
  /**
114
114
  * Batch-fetch conversations by id within a project scope.
@@ -147,23 +147,23 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
147
147
  properties?: Record<string, unknown> | null | undefined;
148
148
  } | {
149
149
  id: string;
150
- properties: Record<string, unknown> | null;
151
- title: string | null;
152
150
  createdAt: string;
153
151
  updatedAt: string;
154
- tenantId: string;
155
- projectId: string;
156
- metadata: ConversationMetadata | null;
157
- agentId: string | null;
158
- userId: string | null;
159
152
  ref: {
160
153
  type: "commit" | "tag" | "branch";
161
154
  name: string;
162
155
  hash: string;
163
156
  } | null;
164
- userProperties: Record<string, unknown> | null;
157
+ userId: string | null;
158
+ metadata: ConversationMetadata | null;
159
+ properties: Record<string, unknown> | null;
160
+ title: string | null;
161
+ tenantId: string;
162
+ projectId: string;
163
+ agentId: string | null;
165
164
  activeSubAgentId: string;
166
165
  lastContextResolution: string | null;
166
+ userProperties: Record<string, unknown> | null;
167
167
  }>;
168
168
  /**
169
169
  * Extract text content from message content object
@@ -185,23 +185,23 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
185
185
  conversationId: string;
186
186
  }) => Promise<{
187
187
  id: string;
188
- properties: Record<string, unknown> | null;
189
- title: string | null;
190
188
  createdAt: string;
191
189
  updatedAt: string;
192
- tenantId: string;
193
- projectId: string;
194
- metadata: ConversationMetadata | null;
195
- agentId: string | null;
196
- userId: string | null;
197
190
  ref: {
198
191
  type: "commit" | "tag" | "branch";
199
192
  name: string;
200
193
  hash: string;
201
194
  } | null;
202
- userProperties: Record<string, unknown> | null;
195
+ userId: string | null;
196
+ metadata: ConversationMetadata | null;
197
+ properties: Record<string, unknown> | null;
198
+ title: string | null;
199
+ tenantId: string;
200
+ projectId: string;
201
+ agentId: string | null;
203
202
  activeSubAgentId: string;
204
203
  lastContextResolution: string | null;
204
+ userProperties: Record<string, unknown> | null;
205
205
  } | undefined>;
206
206
  /**
207
207
  * Set active agent for a conversation (upsert operation)
@@ -7,17 +7,17 @@ import { EventInsert } from "../../types/entities.js";
7
7
  //#region src/data-access/runtime/events.d.ts
8
8
  declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert) => Promise<{
9
9
  row: {
10
- type: string;
11
10
  id: string;
12
- properties: Record<string, unknown> | null;
13
11
  createdAt: string;
14
12
  updatedAt: string;
13
+ type: string;
14
+ metadata: Record<string, unknown> | null;
15
+ properties: Record<string, unknown> | null;
15
16
  tenantId: string;
16
17
  projectId: string;
17
- metadata: Record<string, unknown> | null;
18
18
  agentId: string | null;
19
- conversationId: string | null;
20
19
  userProperties: Record<string, unknown> | null;
20
+ conversationId: string | null;
21
21
  messageId: string | null;
22
22
  serverMetadata: {
23
23
  [k: string]: unknown;
@@ -70,15 +70,15 @@ declare const getFeedbackByIds: (db: AgentsRunDatabaseClient) => (params: {
70
70
  agentId: string | null;
71
71
  }[]>;
72
72
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
73
- type: "positive" | "negative";
74
73
  id: string;
75
74
  createdAt: string;
76
75
  updatedAt: string;
76
+ type: "positive" | "negative";
77
77
  tenantId: string;
78
78
  projectId: string;
79
- details: string | null;
80
79
  conversationId: string;
81
80
  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: {
@@ -100,15 +100,15 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
100
100
  scopes: ProjectScopeConfig;
101
101
  feedbackId: string;
102
102
  }) => Promise<{
103
- type: "positive" | "negative";
104
103
  id: string;
105
104
  createdAt: string;
106
105
  updatedAt: string;
106
+ type: "positive" | "negative";
107
107
  tenantId: string;
108
108
  projectId: string;
109
- details: string | null;
110
109
  conversationId: string;
111
110
  messageId: string | null;
111
+ details: string | null;
112
112
  }>;
113
113
  //#endregion
114
114
  export { createFeedback, createFeedbackBulk, deleteFeedback, getFeedbackById, getFeedbackByIds, listFeedback, listFeedbackByConversation, updateFeedback };
@@ -11,27 +11,27 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
11
11
  messageId: string;
12
12
  }) => Promise<{
13
13
  id: string;
14
- properties: Record<string, unknown> | null;
15
14
  createdAt: string;
16
15
  updatedAt: string;
17
- tenantId: string;
18
- projectId: string;
19
16
  metadata: MessageMetadata | null;
20
- content: MessageContent;
21
17
  role: string;
18
+ properties: Record<string, unknown> | null;
19
+ tenantId: string;
20
+ content: MessageContent;
21
+ projectId: string;
22
+ userProperties: Record<string, unknown> | null;
23
+ conversationId: string;
22
24
  fromSubAgentId: string | null;
23
25
  toSubAgentId: string | null;
24
26
  fromExternalAgentId: string | null;
25
27
  toExternalAgentId: string | null;
26
- taskId: string | null;
27
- a2aTaskId: string | null;
28
- conversationId: string;
29
- userProperties: Record<string, unknown> | null;
30
28
  fromTeamAgentId: string | null;
31
29
  toTeamAgentId: string | null;
32
30
  visibility: string;
33
31
  messageType: string;
32
+ taskId: string | null;
34
33
  parentMessageId: string | null;
34
+ a2aTaskId: string | null;
35
35
  a2aSessionId: string | null;
36
36
  } | undefined>;
37
37
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -184,27 +184,27 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
184
184
  data: Omit<MessageInsert, "tenantId" | "projectId">;
185
185
  }) => Promise<{
186
186
  id: string;
187
- properties: Record<string, unknown> | null;
188
187
  createdAt: string;
189
188
  updatedAt: string;
190
- tenantId: string;
191
- projectId: string;
192
189
  metadata: MessageMetadata | null;
193
- content: MessageContent;
194
190
  role: string;
191
+ properties: Record<string, unknown> | null;
192
+ tenantId: string;
193
+ content: MessageContent;
194
+ projectId: string;
195
+ userProperties: Record<string, unknown> | null;
196
+ conversationId: string;
195
197
  fromSubAgentId: string | null;
196
198
  toSubAgentId: string | null;
197
199
  fromExternalAgentId: string | null;
198
200
  toExternalAgentId: string | null;
199
- taskId: string | null;
200
- a2aTaskId: string | null;
201
- conversationId: string;
202
- userProperties: Record<string, unknown> | null;
203
201
  fromTeamAgentId: string | null;
204
202
  toTeamAgentId: string | null;
205
203
  visibility: string;
206
204
  messageType: string;
205
+ taskId: string | null;
207
206
  parentMessageId: string | null;
207
+ a2aTaskId: string | null;
208
208
  a2aSessionId: string | null;
209
209
  }>;
210
210
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -241,27 +241,27 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
241
241
  messageId: string;
242
242
  }) => Promise<{
243
243
  id: string;
244
- properties: Record<string, unknown> | null;
245
244
  createdAt: string;
246
245
  updatedAt: string;
247
- tenantId: string;
248
- projectId: string;
249
246
  metadata: MessageMetadata | null;
250
- content: MessageContent;
251
247
  role: string;
248
+ properties: Record<string, unknown> | null;
249
+ tenantId: string;
250
+ content: MessageContent;
251
+ projectId: string;
252
+ userProperties: Record<string, unknown> | null;
253
+ conversationId: string;
252
254
  fromSubAgentId: string | null;
253
255
  toSubAgentId: string | null;
254
256
  fromExternalAgentId: string | null;
255
257
  toExternalAgentId: string | null;
256
- taskId: string | null;
257
- a2aTaskId: string | null;
258
- conversationId: string;
259
- userProperties: Record<string, unknown> | null;
260
258
  fromTeamAgentId: string | null;
261
259
  toTeamAgentId: string | null;
262
260
  visibility: string;
263
261
  messageType: string;
262
+ taskId: string | null;
264
263
  parentMessageId: string | null;
264
+ a2aTaskId: string | null;
265
265
  a2aSessionId: string | null;
266
266
  }>;
267
267
  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;
@@ -320,7 +320,7 @@ declare const listScheduledTriggerInvocationsByDatasetRunId: (db: AgentsRunDatab
320
320
  name: string;
321
321
  hash: string;
322
322
  } | null;
323
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
323
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
324
324
  scheduledFor: string;
325
325
  startedAt: string | null;
326
326
  completedAt: string | null;
@@ -16,8 +16,8 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
16
16
  userId: string;
17
17
  }) => Promise<{
18
18
  createdAt: string;
19
- tenantId: string;
20
19
  userId: string;
20
+ tenantId: string;
21
21
  scheduledTriggerId: string;
22
22
  }>;
23
23
  declare const deleteScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (params: {
@@ -10,17 +10,17 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
10
10
  id: string;
11
11
  createdAt: string;
12
12
  updatedAt: string;
13
- tenantId: string;
14
- projectId: string;
15
- metadata: TaskMetadataConfig | null;
16
- agentId: string;
17
- subAgentId: string;
18
13
  ref: {
19
14
  type: "commit" | "tag" | "branch";
20
15
  name: string;
21
16
  hash: string;
22
17
  } | null;
18
+ metadata: TaskMetadataConfig | null;
23
19
  status: string;
20
+ tenantId: string;
21
+ projectId: string;
22
+ agentId: string;
23
+ subAgentId: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {