@inkeep/agents-core 0.58.1 → 0.58.2
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.
- package/dist/auth/auth-validation-schemas.d.ts +152 -152
- package/dist/auth/auth.d.ts +28 -28
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +3 -3
- package/dist/constants/allowed-image-formats.d.ts +8 -0
- package/dist/constants/allowed-image-formats.js +38 -0
- package/dist/constants/models.d.ts +2 -0
- package/dist/constants/models.js +2 -0
- package/dist/constants/otel-attributes.d.ts +1 -0
- package/dist/constants/otel-attributes.js +1 -0
- package/dist/data-access/manage/agents.d.ts +25 -25
- package/dist/data-access/manage/artifactComponents.d.ts +16 -16
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/functionTools.d.ts +20 -20
- package/dist/data-access/manage/skills.d.ts +20 -20
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +36 -36
- package/dist/data-access/manage/triggers.d.ts +1 -1
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +451 -451
- package/dist/db/runtime/runtime-schema.d.ts +303 -303
- package/dist/db/utils.js +4 -0
- package/dist/dolt/migrate-all-branches.js +4 -1
- package/dist/dolt/migrate-dolt.js +20 -3
- package/dist/middleware/authz-meta.d.ts +2 -2
- package/dist/middleware/create-protected-route.d.ts +2 -2
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1956 -1956
- package/package.json +5 -1
|
@@ -19,20 +19,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
19
19
|
scopes: ProjectScopeConfig;
|
|
20
20
|
toolId: string;
|
|
21
21
|
}) => Promise<{
|
|
22
|
-
tenantId: string;
|
|
23
|
-
projectId: string;
|
|
24
|
-
description: string | null;
|
|
25
|
-
name: string;
|
|
26
22
|
id: string;
|
|
23
|
+
name: string;
|
|
27
24
|
createdAt: string;
|
|
28
25
|
updatedAt: string;
|
|
29
|
-
|
|
26
|
+
description: string | null;
|
|
27
|
+
tenantId: string;
|
|
28
|
+
projectId: string;
|
|
29
|
+
headers: Record<string, string> | null;
|
|
30
30
|
config: {
|
|
31
31
|
type: "mcp";
|
|
32
32
|
mcp: ToolMcpConfig;
|
|
33
33
|
};
|
|
34
|
+
credentialReferenceId: string | null;
|
|
34
35
|
credentialScope: string;
|
|
35
|
-
headers: Record<string, string> | null;
|
|
36
36
|
imageUrl: string | null;
|
|
37
37
|
capabilities: ToolServerCapabilities | null;
|
|
38
38
|
lastError: string | null;
|
|
@@ -77,20 +77,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
77
77
|
};
|
|
78
78
|
}>;
|
|
79
79
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
80
|
-
tenantId: string;
|
|
81
|
-
projectId: string;
|
|
82
|
-
description: string | null;
|
|
83
|
-
name: string;
|
|
84
80
|
id: string;
|
|
81
|
+
name: string;
|
|
85
82
|
createdAt: string;
|
|
86
83
|
updatedAt: string;
|
|
87
|
-
|
|
84
|
+
description: string | null;
|
|
85
|
+
tenantId: string;
|
|
86
|
+
projectId: string;
|
|
87
|
+
headers: Record<string, string> | null;
|
|
88
88
|
config: {
|
|
89
89
|
type: "mcp";
|
|
90
90
|
mcp: ToolMcpConfig;
|
|
91
91
|
};
|
|
92
|
+
credentialReferenceId: string | null;
|
|
92
93
|
credentialScope: string;
|
|
93
|
-
headers: Record<string, string> | null;
|
|
94
94
|
imageUrl: string | null;
|
|
95
95
|
capabilities: ToolServerCapabilities | null;
|
|
96
96
|
lastError: string | null;
|
|
@@ -134,18 +134,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
134
134
|
needsApproval?: boolean;
|
|
135
135
|
}> | null;
|
|
136
136
|
}) => Promise<{
|
|
137
|
-
tenantId: string;
|
|
138
|
-
projectId: string;
|
|
139
|
-
agentId: string;
|
|
140
|
-
subAgentId: string;
|
|
141
137
|
id: string;
|
|
142
138
|
createdAt: string;
|
|
143
139
|
updatedAt: string;
|
|
140
|
+
tenantId: string;
|
|
141
|
+
projectId: string;
|
|
142
|
+
subAgentId: string;
|
|
143
|
+
agentId: string;
|
|
144
|
+
toolId: string;
|
|
145
|
+
headers: Record<string, string> | null;
|
|
144
146
|
toolPolicies: Record<string, {
|
|
145
147
|
needsApproval?: boolean;
|
|
146
148
|
}> | null;
|
|
147
|
-
toolId: string;
|
|
148
|
-
headers: Record<string, string> | null;
|
|
149
149
|
selectedTools: string[] | null;
|
|
150
150
|
}>;
|
|
151
151
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -153,18 +153,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
153
153
|
subAgentId: string;
|
|
154
154
|
toolId: string;
|
|
155
155
|
}) => Promise<{
|
|
156
|
-
tenantId: string;
|
|
157
|
-
projectId: string;
|
|
158
|
-
agentId: string;
|
|
159
|
-
subAgentId: string;
|
|
160
156
|
id: string;
|
|
161
157
|
createdAt: string;
|
|
162
158
|
updatedAt: string;
|
|
159
|
+
tenantId: string;
|
|
160
|
+
projectId: string;
|
|
161
|
+
subAgentId: string;
|
|
162
|
+
agentId: string;
|
|
163
|
+
toolId: string;
|
|
164
|
+
headers: Record<string, string> | null;
|
|
163
165
|
toolPolicies: Record<string, {
|
|
164
166
|
needsApproval?: boolean;
|
|
165
167
|
}> | null;
|
|
166
|
-
toolId: string;
|
|
167
|
-
headers: Record<string, string> | null;
|
|
168
168
|
selectedTools: string[] | null;
|
|
169
169
|
}>;
|
|
170
170
|
/**
|
|
@@ -181,18 +181,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
181
181
|
}> | null;
|
|
182
182
|
relationId?: string;
|
|
183
183
|
}) => Promise<{
|
|
184
|
-
tenantId: string;
|
|
185
|
-
projectId: string;
|
|
186
|
-
agentId: string;
|
|
187
|
-
subAgentId: string;
|
|
188
184
|
id: string;
|
|
189
185
|
createdAt: string;
|
|
190
186
|
updatedAt: string;
|
|
187
|
+
tenantId: string;
|
|
188
|
+
projectId: string;
|
|
189
|
+
subAgentId: string;
|
|
190
|
+
agentId: string;
|
|
191
|
+
toolId: string;
|
|
192
|
+
headers: Record<string, string> | null;
|
|
191
193
|
toolPolicies: Record<string, {
|
|
192
194
|
needsApproval?: boolean;
|
|
193
195
|
}> | null;
|
|
194
|
-
toolId: string;
|
|
195
|
-
headers: Record<string, string> | null;
|
|
196
196
|
selectedTools: string[] | null;
|
|
197
197
|
}>;
|
|
198
198
|
/**
|
|
@@ -201,20 +201,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
201
201
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
202
202
|
data: ToolInsert;
|
|
203
203
|
}) => Promise<{
|
|
204
|
-
tenantId: string;
|
|
205
|
-
projectId: string;
|
|
206
|
-
description: string | null;
|
|
207
|
-
name: string;
|
|
208
204
|
id: string;
|
|
205
|
+
name: string;
|
|
209
206
|
createdAt: string;
|
|
210
207
|
updatedAt: string;
|
|
211
|
-
|
|
208
|
+
description: string | null;
|
|
209
|
+
tenantId: string;
|
|
210
|
+
projectId: string;
|
|
211
|
+
headers: Record<string, string> | null;
|
|
212
212
|
config: {
|
|
213
213
|
type: "mcp";
|
|
214
214
|
mcp: ToolMcpConfig;
|
|
215
215
|
};
|
|
216
|
+
credentialReferenceId: string | null;
|
|
216
217
|
credentialScope: string;
|
|
217
|
-
headers: Record<string, string> | null;
|
|
218
218
|
imageUrl: string | null;
|
|
219
219
|
capabilities: ToolServerCapabilities | null;
|
|
220
220
|
lastError: string | null;
|
|
@@ -46,7 +46,7 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "
|
|
49
|
+
source: "literal" | "header" | "body";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -8,28 +8,28 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
tenantId: string;
|
|
12
|
-
projectId: string;
|
|
13
|
-
agentId: string;
|
|
14
|
-
name: string | null;
|
|
15
11
|
id: string;
|
|
12
|
+
name: string | null;
|
|
16
13
|
createdAt: string;
|
|
17
14
|
updatedAt: string;
|
|
18
15
|
expiresAt: string | null;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
agentId: string;
|
|
19
19
|
publicId: string;
|
|
20
20
|
keyHash: string;
|
|
21
21
|
keyPrefix: string;
|
|
22
22
|
lastUsedAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
|
-
tenantId: string;
|
|
26
|
-
projectId: string;
|
|
27
|
-
agentId: string;
|
|
28
|
-
name: string | null;
|
|
29
25
|
id: string;
|
|
26
|
+
name: string | null;
|
|
30
27
|
createdAt: string;
|
|
31
28
|
updatedAt: string;
|
|
32
29
|
expiresAt: string | null;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
projectId: string;
|
|
32
|
+
agentId: string;
|
|
33
33
|
publicId: string;
|
|
34
34
|
keyHash: string;
|
|
35
35
|
keyPrefix: string;
|
|
@@ -39,14 +39,14 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
tenantId: string;
|
|
43
|
-
projectId: string;
|
|
44
|
-
agentId: string;
|
|
45
|
-
name: string | null;
|
|
46
42
|
id: string;
|
|
43
|
+
name: string | null;
|
|
47
44
|
createdAt: string;
|
|
48
45
|
updatedAt: string;
|
|
49
46
|
expiresAt: string | null;
|
|
47
|
+
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
49
|
+
agentId: string;
|
|
50
50
|
publicId: string;
|
|
51
51
|
keyHash: string;
|
|
52
52
|
keyPrefix: string;
|
|
@@ -66,14 +66,14 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
};
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
|
-
tenantId: string;
|
|
70
|
-
projectId: string;
|
|
71
|
-
agentId: string;
|
|
72
|
-
name: string | null;
|
|
73
69
|
id: string;
|
|
70
|
+
name: string | null;
|
|
74
71
|
createdAt: string;
|
|
75
72
|
updatedAt: string;
|
|
76
73
|
expiresAt: string | null;
|
|
74
|
+
tenantId: string;
|
|
75
|
+
projectId: string;
|
|
76
|
+
agentId: string;
|
|
77
77
|
publicId: string;
|
|
78
78
|
keyHash: string;
|
|
79
79
|
keyPrefix: string;
|
|
@@ -16,20 +16,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
total: number;
|
|
17
17
|
}>;
|
|
18
18
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
19
|
-
tenantId: string;
|
|
20
|
-
projectId: string;
|
|
21
|
-
agentId: string | null;
|
|
22
|
-
title: string | null;
|
|
23
|
-
userId: string | null;
|
|
24
19
|
id: string;
|
|
25
20
|
createdAt: string;
|
|
26
21
|
updatedAt: string;
|
|
27
|
-
metadata: ConversationMetadata | null;
|
|
28
22
|
ref: {
|
|
29
23
|
type: "commit" | "tag" | "branch";
|
|
30
24
|
name: string;
|
|
31
25
|
hash: string;
|
|
32
26
|
} | null;
|
|
27
|
+
userId: string | null;
|
|
28
|
+
metadata: ConversationMetadata | null;
|
|
29
|
+
title: string | null;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
projectId: string;
|
|
32
|
+
agentId: string | null;
|
|
33
33
|
activeSubAgentId: string;
|
|
34
34
|
lastContextResolution: string | null;
|
|
35
35
|
}>;
|
|
@@ -85,20 +85,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
85
85
|
scopes: ProjectScopeConfig;
|
|
86
86
|
conversationId: string;
|
|
87
87
|
}) => Promise<{
|
|
88
|
-
tenantId: string;
|
|
89
|
-
projectId: string;
|
|
90
|
-
agentId: string | null;
|
|
91
|
-
title: string | null;
|
|
92
|
-
userId: string | null;
|
|
93
88
|
id: string;
|
|
94
89
|
createdAt: string;
|
|
95
90
|
updatedAt: string;
|
|
96
|
-
metadata: ConversationMetadata | null;
|
|
97
91
|
ref: {
|
|
98
92
|
type: "commit" | "tag" | "branch";
|
|
99
93
|
name: string;
|
|
100
94
|
hash: string;
|
|
101
95
|
} | null;
|
|
96
|
+
userId: string | null;
|
|
97
|
+
metadata: ConversationMetadata | null;
|
|
98
|
+
title: string | null;
|
|
99
|
+
tenantId: string;
|
|
100
|
+
projectId: string;
|
|
101
|
+
agentId: string | null;
|
|
102
102
|
activeSubAgentId: string;
|
|
103
103
|
lastContextResolution: string | null;
|
|
104
104
|
} | undefined>;
|
|
@@ -121,20 +121,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
121
121
|
metadata?: ConversationMetadata | null | undefined;
|
|
122
122
|
contextConfigId?: string | undefined;
|
|
123
123
|
} | {
|
|
124
|
-
tenantId: string;
|
|
125
|
-
projectId: string;
|
|
126
|
-
agentId: string | null;
|
|
127
|
-
title: string | null;
|
|
128
|
-
userId: string | null;
|
|
129
124
|
id: string;
|
|
130
125
|
createdAt: string;
|
|
131
126
|
updatedAt: string;
|
|
132
|
-
metadata: ConversationMetadata | null;
|
|
133
127
|
ref: {
|
|
134
128
|
type: "commit" | "tag" | "branch";
|
|
135
129
|
name: string;
|
|
136
130
|
hash: string;
|
|
137
131
|
} | null;
|
|
132
|
+
userId: string | null;
|
|
133
|
+
metadata: ConversationMetadata | null;
|
|
134
|
+
title: string | null;
|
|
135
|
+
tenantId: string;
|
|
136
|
+
projectId: string;
|
|
137
|
+
agentId: string | null;
|
|
138
138
|
activeSubAgentId: string;
|
|
139
139
|
lastContextResolution: string | null;
|
|
140
140
|
}>;
|
|
@@ -153,20 +153,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
153
153
|
scopes: ProjectScopeConfig;
|
|
154
154
|
conversationId: string;
|
|
155
155
|
}) => Promise<{
|
|
156
|
-
tenantId: string;
|
|
157
|
-
projectId: string;
|
|
158
|
-
agentId: string | null;
|
|
159
|
-
title: string | null;
|
|
160
|
-
userId: string | null;
|
|
161
156
|
id: string;
|
|
162
157
|
createdAt: string;
|
|
163
158
|
updatedAt: string;
|
|
164
|
-
metadata: ConversationMetadata | null;
|
|
165
159
|
ref: {
|
|
166
160
|
type: "commit" | "tag" | "branch";
|
|
167
161
|
name: string;
|
|
168
162
|
hash: string;
|
|
169
163
|
} | null;
|
|
164
|
+
userId: string | null;
|
|
165
|
+
metadata: ConversationMetadata | null;
|
|
166
|
+
title: string | null;
|
|
167
|
+
tenantId: string;
|
|
168
|
+
projectId: string;
|
|
169
|
+
agentId: string | null;
|
|
170
170
|
activeSubAgentId: string;
|
|
171
171
|
lastContextResolution: string | null;
|
|
172
172
|
} | undefined>;
|
|
@@ -10,20 +10,20 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
scopes: ProjectScopeConfig;
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
|
+
id: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
metadata: MessageMetadata | null;
|
|
17
|
+
role: string;
|
|
18
|
+
content: MessageContent;
|
|
13
19
|
tenantId: string;
|
|
14
20
|
projectId: string;
|
|
15
|
-
content: MessageContent;
|
|
16
21
|
fromSubAgentId: string | null;
|
|
17
22
|
toSubAgentId: string | null;
|
|
18
23
|
fromExternalAgentId: string | null;
|
|
19
24
|
toExternalAgentId: string | null;
|
|
20
25
|
taskId: string | null;
|
|
21
26
|
a2aTaskId: string | null;
|
|
22
|
-
id: string;
|
|
23
|
-
createdAt: string;
|
|
24
|
-
updatedAt: string;
|
|
25
|
-
metadata: MessageMetadata | null;
|
|
26
|
-
role: string;
|
|
27
27
|
conversationId: string;
|
|
28
28
|
fromTeamAgentId: string | null;
|
|
29
29
|
toTeamAgentId: string | null;
|
|
@@ -141,20 +141,20 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
141
141
|
id: string;
|
|
142
142
|
}[]>;
|
|
143
143
|
declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
|
|
144
|
+
id: string;
|
|
145
|
+
createdAt: string;
|
|
146
|
+
updatedAt: string;
|
|
147
|
+
metadata: MessageMetadata | null;
|
|
148
|
+
role: string;
|
|
149
|
+
content: MessageContent;
|
|
144
150
|
tenantId: string;
|
|
145
151
|
projectId: string;
|
|
146
|
-
content: MessageContent;
|
|
147
152
|
fromSubAgentId: string | null;
|
|
148
153
|
toSubAgentId: string | null;
|
|
149
154
|
fromExternalAgentId: string | null;
|
|
150
155
|
toExternalAgentId: string | null;
|
|
151
156
|
taskId: string | null;
|
|
152
157
|
a2aTaskId: string | null;
|
|
153
|
-
id: string;
|
|
154
|
-
createdAt: string;
|
|
155
|
-
updatedAt: string;
|
|
156
|
-
metadata: MessageMetadata | null;
|
|
157
|
-
role: string;
|
|
158
158
|
conversationId: string;
|
|
159
159
|
fromTeamAgentId: string | null;
|
|
160
160
|
toTeamAgentId: string | null;
|
|
@@ -194,20 +194,20 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
194
194
|
scopes: ProjectScopeConfig;
|
|
195
195
|
messageId: string;
|
|
196
196
|
}) => Promise<{
|
|
197
|
+
id: string;
|
|
198
|
+
createdAt: string;
|
|
199
|
+
updatedAt: string;
|
|
200
|
+
metadata: MessageMetadata | null;
|
|
201
|
+
role: string;
|
|
202
|
+
content: MessageContent;
|
|
197
203
|
tenantId: string;
|
|
198
204
|
projectId: string;
|
|
199
|
-
content: MessageContent;
|
|
200
205
|
fromSubAgentId: string | null;
|
|
201
206
|
toSubAgentId: string | null;
|
|
202
207
|
fromExternalAgentId: string | null;
|
|
203
208
|
toExternalAgentId: string | null;
|
|
204
209
|
taskId: string | null;
|
|
205
210
|
a2aTaskId: string | null;
|
|
206
|
-
id: string;
|
|
207
|
-
createdAt: string;
|
|
208
|
-
updatedAt: string;
|
|
209
|
-
metadata: MessageMetadata | null;
|
|
210
|
-
role: string;
|
|
211
211
|
conversationId: string;
|
|
212
212
|
fromTeamAgentId: string | null;
|
|
213
213
|
toTeamAgentId: string | null;
|
|
@@ -34,7 +34,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
|
|
|
34
34
|
}) => Promise<{
|
|
35
35
|
data: {
|
|
36
36
|
scheduledTriggerId: string;
|
|
37
|
-
status: "pending" | "
|
|
37
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
38
38
|
scheduledFor: string;
|
|
39
39
|
startedAt: string | null;
|
|
40
40
|
completedAt: string | null;
|
|
@@ -174,7 +174,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
|
|
|
174
174
|
}) => Promise<{
|
|
175
175
|
data: {
|
|
176
176
|
scheduledTriggerId: string;
|
|
177
|
-
status: "pending" | "
|
|
177
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
178
178
|
scheduledFor: string;
|
|
179
179
|
startedAt: string | null;
|
|
180
180
|
completedAt: string | null;
|
|
@@ -208,7 +208,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
|
|
|
208
208
|
}) => Promise<{
|
|
209
209
|
data: {
|
|
210
210
|
scheduledTriggerId: string;
|
|
211
|
-
status: "pending" | "
|
|
211
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
212
212
|
scheduledFor: string;
|
|
213
213
|
startedAt: string | null;
|
|
214
214
|
completedAt: string | null;
|
|
@@ -6,20 +6,20 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
6
6
|
|
|
7
7
|
//#region src/data-access/runtime/tasks.d.ts
|
|
8
8
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
9
|
-
tenantId: string;
|
|
10
|
-
projectId: string;
|
|
11
|
-
agentId: string;
|
|
12
|
-
subAgentId: string;
|
|
13
|
-
status: string;
|
|
14
9
|
id: string;
|
|
15
10
|
createdAt: string;
|
|
16
11
|
updatedAt: string;
|
|
17
|
-
metadata: TaskMetadataConfig | null;
|
|
18
12
|
ref: {
|
|
19
13
|
type: "commit" | "tag" | "branch";
|
|
20
14
|
name: string;
|
|
21
15
|
hash: string;
|
|
22
16
|
} | null;
|
|
17
|
+
metadata: TaskMetadataConfig | null;
|
|
18
|
+
status: string;
|
|
19
|
+
tenantId: string;
|
|
20
|
+
projectId: string;
|
|
21
|
+
subAgentId: string;
|
|
22
|
+
agentId: string;
|
|
23
23
|
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|