@inkeep/agents-core 0.0.0-dev-20260401162145 → 0.0.0-dev-20260401173131

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 (28) hide show
  1. package/dist/auth/auth-schema.d.ts +108 -108
  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 +37 -37
  5. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  6. package/dist/data-access/manage/contextConfigs.d.ts +4 -4
  7. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  8. package/dist/data-access/manage/functionTools.d.ts +10 -10
  9. package/dist/data-access/manage/skills.d.ts +4 -4
  10. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  11. package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
  12. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  13. package/dist/data-access/manage/subAgents.d.ts +15 -15
  14. package/dist/data-access/manage/tools.d.ts +12 -12
  15. package/dist/data-access/manage/triggers.d.ts +2 -2
  16. package/dist/data-access/runtime/apiKeys.d.ts +4 -4
  17. package/dist/data-access/runtime/apps.d.ts +6 -6
  18. package/dist/data-access/runtime/conversations.d.ts +16 -16
  19. package/dist/data-access/runtime/messages.d.ts +12 -12
  20. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  21. package/dist/data-access/runtime/tasks.d.ts +4 -4
  22. package/dist/db/manage/manage-schema.d.ts +449 -449
  23. package/dist/db/runtime/runtime-schema.d.ts +376 -376
  24. package/dist/middleware/no-auth.d.ts +2 -2
  25. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  26. package/dist/validation/schemas/skills.d.ts +37 -37
  27. package/dist/validation/schemas.d.ts +2218 -2218
  28. package/package.json +1 -1
@@ -11,12 +11,12 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
11
11
  }) => Promise<{
12
12
  tenantId: string;
13
13
  projectId: string;
14
+ agentId: string;
15
+ subAgentId: string;
14
16
  id: string;
15
17
  createdAt: string;
16
18
  updatedAt: string;
17
- agentId: string;
18
19
  headers: Record<string, string> | null;
19
- subAgentId: string;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -46,12 +46,12 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
46
46
  }) => Promise<{
47
47
  tenantId: string;
48
48
  projectId: string;
49
+ agentId: string;
50
+ subAgentId: string;
49
51
  id: string;
50
52
  createdAt: string;
51
53
  updatedAt: string;
52
- agentId: string;
53
54
  headers: Record<string, string> | null;
54
- subAgentId: string;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -59,12 +59,12 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
59
59
  }) => Promise<{
60
60
  tenantId: string;
61
61
  projectId: string;
62
+ agentId: string;
63
+ subAgentId: string;
62
64
  id: string;
63
65
  createdAt: string;
64
66
  updatedAt: string;
65
- agentId: string;
66
67
  headers: Record<string, string> | null;
67
- subAgentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -224,12 +224,12 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
224
224
  }) => Promise<{
225
225
  tenantId: string;
226
226
  projectId: string;
227
+ agentId: string;
228
+ subAgentId: string;
227
229
  id: string;
228
230
  createdAt: string;
229
231
  updatedAt: string;
230
- agentId: string;
231
232
  headers: Record<string, string> | null;
232
- subAgentId: string;
233
233
  targetAgentId: string;
234
234
  }>;
235
235
  /**
@@ -241,12 +241,12 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
241
241
  }) => Promise<{
242
242
  tenantId: string;
243
243
  projectId: string;
244
+ agentId: string;
245
+ subAgentId: string;
244
246
  id: string;
245
247
  createdAt: string;
246
248
  updatedAt: string;
247
- agentId: string;
248
249
  headers: Record<string, string> | null;
249
- subAgentId: string;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
252
252
  /**
@@ -262,12 +262,12 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
262
262
  }) => Promise<{
263
263
  tenantId: string;
264
264
  projectId: string;
265
+ agentId: string;
266
+ subAgentId: string;
265
267
  id: string;
266
268
  createdAt: string;
267
269
  updatedAt: string;
268
- agentId: string;
269
270
  headers: Record<string, string> | null;
270
- subAgentId: string;
271
271
  targetAgentId: string;
272
272
  }>;
273
273
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -9,11 +9,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
+ description: string | null;
12
13
  tenantId: string;
13
14
  projectId: string;
15
+ agentId: string;
14
16
  id: string;
15
17
  name: string;
16
- description: string | null;
18
+ createdAt: string;
19
+ updatedAt: string;
17
20
  models: {
18
21
  base?: {
19
22
  model?: string | undefined;
@@ -34,23 +37,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
34
37
  allowedProviders?: string[] | undefined;
35
38
  } | undefined;
36
39
  } | null;
37
- prompt: string | null;
38
40
  stopWhen: {
39
41
  stepCountIs?: number | undefined;
40
42
  } | null;
41
- createdAt: string;
42
- updatedAt: string;
43
- agentId: string;
43
+ prompt: string | null;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  } | undefined>;
46
46
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
47
47
  scopes: AgentScopeConfig;
48
48
  }) => Promise<{
49
+ description: string | null;
49
50
  tenantId: string;
50
51
  projectId: string;
52
+ agentId: string;
51
53
  id: string;
52
54
  name: string;
53
- description: string | null;
55
+ createdAt: string;
56
+ updatedAt: string;
54
57
  models: {
55
58
  base?: {
56
59
  model?: string | undefined;
@@ -71,13 +74,10 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
71
74
  allowedProviders?: string[] | undefined;
72
75
  } | undefined;
73
76
  } | null;
74
- prompt: string | null;
75
77
  stopWhen: {
76
78
  stepCountIs?: number | undefined;
77
79
  } | null;
78
- createdAt: string;
79
- updatedAt: string;
80
- agentId: string;
80
+ prompt: string | null;
81
81
  conversationHistoryConfig: ConversationHistoryConfig | null;
82
82
  }[]>;
83
83
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -127,11 +127,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
127
127
  };
128
128
  }>;
129
129
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
130
+ description: string | null;
130
131
  tenantId: string;
131
132
  projectId: string;
133
+ agentId: string;
132
134
  id: string;
133
135
  name: string;
134
- description: string | null;
136
+ createdAt: string;
137
+ updatedAt: string;
135
138
  models: {
136
139
  base?: {
137
140
  model?: string | undefined;
@@ -152,13 +155,10 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
152
155
  allowedProviders?: string[] | undefined;
153
156
  } | undefined;
154
157
  } | null;
155
- prompt: string | null;
156
158
  stopWhen: {
157
159
  stepCountIs?: number | undefined;
158
160
  } | null;
159
- createdAt: string;
160
- updatedAt: string;
161
- agentId: string;
161
+ prompt: string | null;
162
162
  conversationHistoryConfig: ConversationHistoryConfig | null;
163
163
  }>;
164
164
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -20,11 +20,11 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
+ description: string | null;
23
24
  tenantId: string;
24
25
  projectId: string;
25
26
  id: string;
26
27
  name: string;
27
- description: string | null;
28
28
  createdAt: string;
29
29
  updatedAt: string;
30
30
  headers: Record<string, string> | null;
@@ -78,11 +78,11 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
+ description: string | null;
81
82
  tenantId: string;
82
83
  projectId: string;
83
84
  id: string;
84
85
  name: string;
85
- description: string | null;
86
86
  createdAt: string;
87
87
  updatedAt: string;
88
88
  headers: Record<string, string> | null;
@@ -137,16 +137,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
137
137
  }) => Promise<{
138
138
  tenantId: string;
139
139
  projectId: string;
140
+ agentId: string;
141
+ subAgentId: string;
142
+ toolId: string;
140
143
  id: string;
141
144
  createdAt: string;
142
145
  updatedAt: string;
143
- agentId: string;
144
- toolId: string;
145
146
  headers: Record<string, string> | null;
146
147
  toolPolicies: Record<string, {
147
148
  needsApproval?: boolean;
148
149
  }> | null;
149
- subAgentId: string;
150
150
  selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -156,16 +156,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
156
156
  }) => Promise<{
157
157
  tenantId: string;
158
158
  projectId: string;
159
+ agentId: string;
160
+ subAgentId: string;
161
+ toolId: string;
159
162
  id: string;
160
163
  createdAt: string;
161
164
  updatedAt: string;
162
- agentId: string;
163
- toolId: string;
164
165
  headers: Record<string, string> | null;
165
166
  toolPolicies: Record<string, {
166
167
  needsApproval?: boolean;
167
168
  }> | null;
168
- subAgentId: string;
169
169
  selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
@@ -184,16 +184,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
184
184
  }) => Promise<{
185
185
  tenantId: string;
186
186
  projectId: string;
187
+ agentId: string;
188
+ subAgentId: string;
189
+ toolId: string;
187
190
  id: string;
188
191
  createdAt: string;
189
192
  updatedAt: string;
190
- agentId: string;
191
- toolId: string;
192
193
  headers: Record<string, string> | null;
193
194
  toolPolicies: Record<string, {
194
195
  needsApproval?: boolean;
195
196
  }> | null;
196
- subAgentId: string;
197
197
  selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
@@ -202,11 +202,11 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
+ description: string | null;
205
206
  tenantId: string;
206
207
  projectId: string;
207
208
  id: string;
208
209
  name: string;
209
- description: string | null;
210
210
  createdAt: string;
211
211
  updatedAt: string;
212
212
  headers: Record<string, string> | null;
@@ -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: "header" | "literal" | "body";
49
+ source: "literal" | "body" | "header";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -10,11 +10,11 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  tenantId: string;
12
12
  projectId: string;
13
+ agentId: string;
13
14
  id: string;
14
15
  name: string | null;
15
16
  createdAt: string;
16
17
  updatedAt: string;
17
- agentId: string;
18
18
  expiresAt: string | null;
19
19
  publicId: string;
20
20
  keyHash: string;
@@ -24,11 +24,11 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
25
  tenantId: string;
26
26
  projectId: string;
27
+ agentId: string;
27
28
  id: string;
28
29
  name: string | null;
29
30
  createdAt: string;
30
31
  updatedAt: string;
31
- agentId: string;
32
32
  expiresAt: string | null;
33
33
  publicId: string;
34
34
  keyHash: string;
@@ -41,11 +41,11 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
41
41
  }) => Promise<{
42
42
  tenantId: string;
43
43
  projectId: string;
44
+ agentId: string;
44
45
  id: string;
45
46
  name: string | null;
46
47
  createdAt: string;
47
48
  updatedAt: string;
48
- agentId: string;
49
49
  expiresAt: string | null;
50
50
  publicId: string;
51
51
  keyHash: string;
@@ -68,11 +68,11 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
69
  tenantId: string;
70
70
  projectId: string;
71
+ agentId: string;
71
72
  id: string;
72
73
  name: string | null;
73
74
  createdAt: string;
74
75
  updatedAt: string;
75
- agentId: string;
76
76
  expiresAt: string | null;
77
77
  publicId: string;
78
78
  keyHash: 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
+ enabled: boolean;
8
9
  type: AppType;
10
+ description: string | null;
9
11
  tenantId: string | null;
10
12
  projectId: string | null;
11
13
  id: string;
12
14
  name: string;
13
- description: string | null;
14
- enabled: boolean;
15
- prompt: string | null;
16
15
  createdAt: string;
17
16
  updatedAt: string;
17
+ prompt: string | null;
18
18
  config: {
19
19
  type: "web_client";
20
20
  webClient: {
@@ -61,16 +61,16 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
61
61
  };
62
62
  }>;
63
63
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
64
+ enabled: boolean;
64
65
  type: AppType;
66
+ description: string | null;
65
67
  tenantId: string | null;
66
68
  projectId: string | null;
67
69
  id: string;
68
70
  name: string;
69
- description: string | null;
70
- enabled: boolean;
71
- prompt: string | null;
72
71
  createdAt: string;
73
72
  updatedAt: string;
73
+ prompt: string | null;
74
74
  config: {
75
75
  type: "web_client";
76
76
  webClient: {
@@ -15,20 +15,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
15
  total: number;
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
+ title: string | null;
18
19
  tenantId: string;
19
20
  projectId: string;
21
+ agentId: string | null;
20
22
  id: string;
21
- title: string | null;
22
23
  createdAt: string;
23
24
  updatedAt: string;
24
- metadata: ConversationMetadata | null;
25
- agentId: string | null;
26
- userId: string | null;
27
25
  ref: {
28
26
  type: "commit" | "tag" | "branch";
29
27
  name: string;
30
28
  hash: string;
31
29
  } | null;
30
+ userId: string | null;
31
+ metadata: ConversationMetadata | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -84,20 +84,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
84
  scopes: ProjectScopeConfig;
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
+ title: string | null;
87
88
  tenantId: string;
88
89
  projectId: string;
90
+ agentId: string | null;
89
91
  id: string;
90
- title: string | null;
91
92
  createdAt: string;
92
93
  updatedAt: string;
93
- metadata: ConversationMetadata | null;
94
- agentId: string | null;
95
- userId: string | null;
96
94
  ref: {
97
95
  type: "commit" | "tag" | "branch";
98
96
  name: string;
99
97
  hash: string;
100
98
  } | null;
99
+ userId: string | null;
100
+ metadata: ConversationMetadata | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -120,20 +120,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
120
120
  metadata?: ConversationMetadata | null | undefined;
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
+ title: string | null;
123
124
  tenantId: string;
124
125
  projectId: string;
126
+ agentId: string | null;
125
127
  id: string;
126
- title: string | null;
127
128
  createdAt: string;
128
129
  updatedAt: string;
129
- metadata: ConversationMetadata | null;
130
- agentId: string | null;
131
- userId: string | null;
132
130
  ref: {
133
131
  type: "commit" | "tag" | "branch";
134
132
  name: string;
135
133
  hash: string;
136
134
  } | null;
135
+ userId: string | null;
136
+ metadata: ConversationMetadata | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -152,20 +152,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
152
  scopes: ProjectScopeConfig;
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
+ title: string | null;
155
156
  tenantId: string;
156
157
  projectId: string;
158
+ agentId: string | null;
157
159
  id: string;
158
- title: string | null;
159
160
  createdAt: string;
160
161
  updatedAt: string;
161
- metadata: ConversationMetadata | null;
162
- agentId: string | null;
163
- userId: string | null;
164
162
  ref: {
165
163
  type: "commit" | "tag" | "branch";
166
164
  name: string;
167
165
  hash: string;
168
166
  } | null;
167
+ userId: string | null;
168
+ metadata: ConversationMetadata | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -16,20 +16,20 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
16
16
  createdAt: string;
17
17
  updatedAt: string;
18
18
  metadata: MessageMetadata | null;
19
- content: MessageContent;
20
19
  role: string;
21
- conversationId: string;
20
+ content: MessageContent;
22
21
  fromSubAgentId: string | null;
23
22
  toSubAgentId: string | null;
24
23
  fromExternalAgentId: string | null;
25
24
  toExternalAgentId: string | null;
25
+ taskId: string | null;
26
+ a2aTaskId: string | null;
27
+ conversationId: string;
26
28
  fromTeamAgentId: string | null;
27
29
  toTeamAgentId: string | null;
28
30
  visibility: string;
29
31
  messageType: string;
30
- taskId: string | null;
31
32
  parentMessageId: string | null;
32
- a2aTaskId: string | null;
33
33
  a2aSessionId: string | null;
34
34
  } | undefined>;
35
35
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -150,20 +150,20 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
150
150
  createdAt: string;
151
151
  updatedAt: string;
152
152
  metadata: MessageMetadata | null;
153
- content: MessageContent;
154
153
  role: string;
155
- conversationId: string;
154
+ content: MessageContent;
156
155
  fromSubAgentId: string | null;
157
156
  toSubAgentId: string | null;
158
157
  fromExternalAgentId: string | null;
159
158
  toExternalAgentId: string | null;
159
+ taskId: string | null;
160
+ a2aTaskId: string | null;
161
+ conversationId: string;
160
162
  fromTeamAgentId: string | null;
161
163
  toTeamAgentId: string | null;
162
164
  visibility: string;
163
165
  messageType: string;
164
- taskId: string | null;
165
166
  parentMessageId: string | null;
166
- a2aTaskId: string | null;
167
167
  a2aSessionId: string | null;
168
168
  }>;
169
169
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -203,20 +203,20 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
203
203
  createdAt: string;
204
204
  updatedAt: string;
205
205
  metadata: MessageMetadata | null;
206
- content: MessageContent;
207
206
  role: string;
208
- conversationId: string;
207
+ content: MessageContent;
209
208
  fromSubAgentId: string | null;
210
209
  toSubAgentId: string | null;
211
210
  fromExternalAgentId: string | null;
212
211
  toExternalAgentId: string | null;
212
+ taskId: string | null;
213
+ a2aTaskId: string | null;
214
+ conversationId: string;
213
215
  fromTeamAgentId: string | null;
214
216
  toTeamAgentId: string | null;
215
217
  visibility: string;
216
218
  messageType: string;
217
- taskId: string | null;
218
219
  parentMessageId: string | null;
219
- a2aTaskId: string | null;
220
220
  a2aSessionId: string | null;
221
221
  }>;
222
222
  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;
@@ -194,7 +194,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
194
194
  name: string;
195
195
  hash: string;
196
196
  } | null;
197
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
197
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
198
198
  scheduledFor: string;
199
199
  startedAt: string | null;
200
200
  completedAt: string | null;
@@ -233,7 +233,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
233
233
  name: string;
234
234
  hash: string;
235
235
  } | null;
236
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
236
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
237
237
  scheduledFor: string;
238
238
  startedAt: string | null;
239
239
  completedAt: string | null;
@@ -285,7 +285,7 @@ declare const listScheduledTriggerInvocationsByTriggerId: (db: AgentsRunDatabase
285
285
  name: string;
286
286
  hash: string;
287
287
  } | null;
288
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
288
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
289
289
  scheduledFor: string;
290
290
  startedAt: string | null;
291
291
  completedAt: string | null;
@@ -9,18 +9,18 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
9
9
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
10
10
  tenantId: string;
11
11
  projectId: string;
12
+ agentId: string;
13
+ subAgentId: string;
12
14
  id: string;
13
15
  createdAt: string;
14
16
  updatedAt: string;
15
- metadata: TaskMetadataConfig | null;
16
- agentId: string;
17
- subAgentId: string;
18
- status: string;
19
17
  ref: {
20
18
  type: "commit" | "tag" | "branch";
21
19
  name: string;
22
20
  hash: string;
23
21
  } | null;
22
+ metadata: TaskMetadataConfig | null;
23
+ status: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {