@inkeep/agents-core 0.56.2 → 0.58.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.
- package/dist/auth/auth.d.ts +9 -9
- package/dist/auth/auth.js +6 -0
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +4 -4
- package/dist/client-exports.js +2 -2
- package/dist/data-access/index.d.ts +2 -1
- package/dist/data-access/index.js +2 -1
- package/dist/data-access/manage/agents.d.ts +21 -21
- package/dist/data-access/manage/artifactComponents.d.ts +14 -14
- 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 +16 -16
- package/dist/data-access/manage/skills.d.ts +18 -18
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
- 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 +27 -27
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- package/dist/data-access/runtime/apiKeys.js +1 -8
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/messages.d.ts +21 -21
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/data-access/runtime/userProfiles.d.ts +14 -0
- package/dist/data-access/runtime/userProfiles.js +45 -0
- package/dist/db/manage/manage-schema.d.ts +361 -361
- package/dist/db/runtime/runtime-schema.d.ts +384 -270
- package/dist/db/runtime/runtime-schema.js +14 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +4 -3
- package/dist/types/entities.d.ts +7 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/model-factory.d.ts +10 -2
- package/dist/utils/model-factory.js +21 -13
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas.d.ts +1992 -1749
- package/dist/validation/schemas.js +18 -3
- package/drizzle/runtime/0019_easy_bedlam.sql +24 -0
- package/drizzle/runtime/meta/0019_snapshot.json +4003 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +2 -2
|
@@ -9,13 +9,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
|
|
13
|
-
projectId: string;
|
|
14
|
-
tenantId: string;
|
|
12
|
+
headers: Record<string, string> | null;
|
|
15
13
|
id: string;
|
|
16
14
|
createdAt: string;
|
|
17
15
|
updatedAt: string;
|
|
18
|
-
|
|
16
|
+
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
agentId: string;
|
|
19
19
|
subAgentId: string;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
@@ -44,26 +44,26 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
44
44
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
|
|
48
|
-
projectId: string;
|
|
49
|
-
tenantId: string;
|
|
47
|
+
headers: Record<string, string> | null;
|
|
50
48
|
id: string;
|
|
51
49
|
createdAt: string;
|
|
52
50
|
updatedAt: string;
|
|
53
|
-
|
|
51
|
+
tenantId: string;
|
|
52
|
+
projectId: string;
|
|
53
|
+
agentId: string;
|
|
54
54
|
subAgentId: string;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
|
|
61
|
-
projectId: string;
|
|
62
|
-
tenantId: string;
|
|
60
|
+
headers: Record<string, string> | null;
|
|
63
61
|
id: string;
|
|
64
62
|
createdAt: string;
|
|
65
63
|
updatedAt: string;
|
|
66
|
-
|
|
64
|
+
tenantId: string;
|
|
65
|
+
projectId: string;
|
|
66
|
+
agentId: string;
|
|
67
67
|
subAgentId: string;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
@@ -210,13 +210,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
210
210
|
headers?: Record<string, string> | null;
|
|
211
211
|
};
|
|
212
212
|
}) => Promise<{
|
|
213
|
-
|
|
214
|
-
projectId: string;
|
|
215
|
-
tenantId: string;
|
|
213
|
+
headers: Record<string, string> | null;
|
|
216
214
|
id: string;
|
|
217
215
|
createdAt: string;
|
|
218
216
|
updatedAt: string;
|
|
219
|
-
|
|
217
|
+
tenantId: string;
|
|
218
|
+
projectId: string;
|
|
219
|
+
agentId: string;
|
|
220
220
|
subAgentId: string;
|
|
221
221
|
targetAgentId: string;
|
|
222
222
|
}>;
|
|
@@ -227,13 +227,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
227
227
|
scopes: SubAgentScopeConfig;
|
|
228
228
|
targetAgentId: string;
|
|
229
229
|
}) => Promise<{
|
|
230
|
-
|
|
231
|
-
projectId: string;
|
|
232
|
-
tenantId: string;
|
|
230
|
+
headers: Record<string, string> | null;
|
|
233
231
|
id: string;
|
|
234
232
|
createdAt: string;
|
|
235
233
|
updatedAt: string;
|
|
236
|
-
|
|
234
|
+
tenantId: string;
|
|
235
|
+
projectId: string;
|
|
236
|
+
agentId: string;
|
|
237
237
|
subAgentId: string;
|
|
238
238
|
targetAgentId: string;
|
|
239
239
|
} | undefined>;
|
|
@@ -248,13 +248,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
248
248
|
headers?: Record<string, string> | null;
|
|
249
249
|
};
|
|
250
250
|
}) => Promise<{
|
|
251
|
-
|
|
252
|
-
projectId: string;
|
|
253
|
-
tenantId: string;
|
|
251
|
+
headers: Record<string, string> | null;
|
|
254
252
|
id: string;
|
|
255
253
|
createdAt: string;
|
|
256
254
|
updatedAt: string;
|
|
257
|
-
|
|
255
|
+
tenantId: string;
|
|
256
|
+
projectId: string;
|
|
257
|
+
agentId: string;
|
|
258
258
|
subAgentId: string;
|
|
259
259
|
targetAgentId: string;
|
|
260
260
|
}>;
|
|
@@ -9,12 +9,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
agentId: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
tenantId: string;
|
|
15
12
|
id: string;
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
16
15
|
name: string;
|
|
17
16
|
description: string | null;
|
|
17
|
+
tenantId: string;
|
|
18
|
+
projectId: string;
|
|
19
|
+
agentId: string;
|
|
18
20
|
prompt: string | null;
|
|
19
21
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
20
22
|
models: {
|
|
@@ -34,18 +36,18 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
34
36
|
stopWhen: {
|
|
35
37
|
stepCountIs?: number | undefined;
|
|
36
38
|
} | null;
|
|
37
|
-
createdAt: string;
|
|
38
|
-
updatedAt: string;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
41
41
|
scopes: AgentScopeConfig;
|
|
42
42
|
}) => Promise<{
|
|
43
|
-
agentId: string;
|
|
44
|
-
projectId: string;
|
|
45
|
-
tenantId: string;
|
|
46
43
|
id: string;
|
|
44
|
+
createdAt: string;
|
|
45
|
+
updatedAt: string;
|
|
47
46
|
name: string;
|
|
48
47
|
description: string | null;
|
|
48
|
+
tenantId: string;
|
|
49
|
+
projectId: string;
|
|
50
|
+
agentId: string;
|
|
49
51
|
prompt: string | null;
|
|
50
52
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
51
53
|
models: {
|
|
@@ -65,8 +67,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
65
67
|
stopWhen: {
|
|
66
68
|
stepCountIs?: number | undefined;
|
|
67
69
|
} | null;
|
|
68
|
-
createdAt: string;
|
|
69
|
-
updatedAt: string;
|
|
70
70
|
}[]>;
|
|
71
71
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
72
72
|
scopes: AgentScopeConfig;
|
|
@@ -109,12 +109,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
109
109
|
};
|
|
110
110
|
}>;
|
|
111
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
|
-
agentId: string;
|
|
113
|
-
projectId: string;
|
|
114
|
-
tenantId: string;
|
|
115
112
|
id: string;
|
|
113
|
+
createdAt: string;
|
|
114
|
+
updatedAt: string;
|
|
116
115
|
name: string;
|
|
117
116
|
description: string | null;
|
|
117
|
+
tenantId: string;
|
|
118
|
+
projectId: string;
|
|
119
|
+
agentId: string;
|
|
118
120
|
prompt: string | null;
|
|
119
121
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
120
122
|
models: {
|
|
@@ -134,8 +136,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
134
136
|
stopWhen: {
|
|
135
137
|
stepCountIs?: number | undefined;
|
|
136
138
|
} | null;
|
|
137
|
-
createdAt: string;
|
|
138
|
-
updatedAt: string;
|
|
139
139
|
}>;
|
|
140
140
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
141
141
|
scopes: AgentScopeConfig;
|
|
@@ -19,14 +19,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
19
19
|
scopes: ProjectScopeConfig;
|
|
20
20
|
toolId: string;
|
|
21
21
|
}) => Promise<{
|
|
22
|
-
|
|
23
|
-
tenantId: string;
|
|
22
|
+
headers: Record<string, string> | null;
|
|
24
23
|
id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
description: string | null;
|
|
27
24
|
createdAt: string;
|
|
28
25
|
updatedAt: string;
|
|
29
|
-
|
|
26
|
+
name: string;
|
|
27
|
+
description: string | null;
|
|
28
|
+
tenantId: string;
|
|
29
|
+
projectId: string;
|
|
30
30
|
config: {
|
|
31
31
|
type: "mcp";
|
|
32
32
|
mcp: ToolMcpConfig;
|
|
@@ -77,14 +77,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
77
77
|
};
|
|
78
78
|
}>;
|
|
79
79
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
80
|
-
|
|
81
|
-
tenantId: string;
|
|
80
|
+
headers: Record<string, string> | null;
|
|
82
81
|
id: string;
|
|
83
|
-
name: string;
|
|
84
|
-
description: string | null;
|
|
85
82
|
createdAt: string;
|
|
86
83
|
updatedAt: string;
|
|
87
|
-
|
|
84
|
+
name: string;
|
|
85
|
+
description: string | null;
|
|
86
|
+
tenantId: string;
|
|
87
|
+
projectId: string;
|
|
88
88
|
config: {
|
|
89
89
|
type: "mcp";
|
|
90
90
|
mcp: ToolMcpConfig;
|
|
@@ -134,14 +134,14 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
134
134
|
needsApproval?: boolean;
|
|
135
135
|
}> | null;
|
|
136
136
|
}) => Promise<{
|
|
137
|
-
|
|
138
|
-
projectId: string;
|
|
139
|
-
tenantId: string;
|
|
137
|
+
headers: Record<string, string> | null;
|
|
140
138
|
id: string;
|
|
141
139
|
createdAt: string;
|
|
142
140
|
updatedAt: string;
|
|
141
|
+
tenantId: string;
|
|
142
|
+
projectId: string;
|
|
143
|
+
agentId: string;
|
|
143
144
|
toolId: string;
|
|
144
|
-
headers: Record<string, string> | null;
|
|
145
145
|
toolPolicies: Record<string, {
|
|
146
146
|
needsApproval?: boolean;
|
|
147
147
|
}> | null;
|
|
@@ -153,14 +153,14 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
153
153
|
subAgentId: string;
|
|
154
154
|
toolId: string;
|
|
155
155
|
}) => Promise<{
|
|
156
|
-
|
|
157
|
-
projectId: string;
|
|
158
|
-
tenantId: string;
|
|
156
|
+
headers: Record<string, string> | null;
|
|
159
157
|
id: string;
|
|
160
158
|
createdAt: string;
|
|
161
159
|
updatedAt: string;
|
|
160
|
+
tenantId: string;
|
|
161
|
+
projectId: string;
|
|
162
|
+
agentId: string;
|
|
162
163
|
toolId: string;
|
|
163
|
-
headers: Record<string, string> | null;
|
|
164
164
|
toolPolicies: Record<string, {
|
|
165
165
|
needsApproval?: boolean;
|
|
166
166
|
}> | null;
|
|
@@ -181,14 +181,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
181
181
|
}> | null;
|
|
182
182
|
relationId?: string;
|
|
183
183
|
}) => Promise<{
|
|
184
|
-
|
|
185
|
-
projectId: string;
|
|
186
|
-
tenantId: string;
|
|
184
|
+
headers: Record<string, string> | null;
|
|
187
185
|
id: string;
|
|
188
186
|
createdAt: string;
|
|
189
187
|
updatedAt: string;
|
|
188
|
+
tenantId: string;
|
|
189
|
+
projectId: string;
|
|
190
|
+
agentId: string;
|
|
190
191
|
toolId: string;
|
|
191
|
-
headers: Record<string, string> | null;
|
|
192
192
|
toolPolicies: Record<string, {
|
|
193
193
|
needsApproval?: boolean;
|
|
194
194
|
}> | null;
|
|
@@ -201,14 +201,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
201
201
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
202
202
|
data: ToolInsert;
|
|
203
203
|
}) => Promise<{
|
|
204
|
-
|
|
205
|
-
tenantId: string;
|
|
204
|
+
headers: Record<string, string> | null;
|
|
206
205
|
id: string;
|
|
207
|
-
name: string;
|
|
208
|
-
description: string | null;
|
|
209
206
|
createdAt: string;
|
|
210
207
|
updatedAt: string;
|
|
211
|
-
|
|
208
|
+
name: string;
|
|
209
|
+
description: string | null;
|
|
210
|
+
tenantId: string;
|
|
211
|
+
projectId: string;
|
|
212
212
|
config: {
|
|
213
213
|
type: "mcp";
|
|
214
214
|
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: "
|
|
43
|
+
source: "body" | "query" | "header";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "
|
|
49
|
+
source: "body" | "header" | "literal";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -8,49 +8,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
agentId: string;
|
|
12
|
-
projectId: string;
|
|
13
|
-
tenantId: string;
|
|
14
11
|
id: string;
|
|
15
|
-
name: string | null;
|
|
16
12
|
createdAt: string;
|
|
17
13
|
updatedAt: string;
|
|
18
14
|
expiresAt: string | null;
|
|
15
|
+
name: string | null;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
agentId: string;
|
|
19
|
+
lastUsedAt: string | null;
|
|
19
20
|
publicId: string;
|
|
20
21
|
keyHash: string;
|
|
21
22
|
keyPrefix: string;
|
|
22
|
-
lastUsedAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
|
-
agentId: string;
|
|
26
|
-
projectId: string;
|
|
27
|
-
tenantId: string;
|
|
28
25
|
id: string;
|
|
29
|
-
name: string | null;
|
|
30
26
|
createdAt: string;
|
|
31
27
|
updatedAt: string;
|
|
32
28
|
expiresAt: string | null;
|
|
29
|
+
name: string | null;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
projectId: string;
|
|
32
|
+
agentId: string;
|
|
33
|
+
lastUsedAt: string | null;
|
|
33
34
|
publicId: string;
|
|
34
35
|
keyHash: string;
|
|
35
36
|
keyPrefix: string;
|
|
36
|
-
lastUsedAt: string | null;
|
|
37
37
|
} | undefined>;
|
|
38
38
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
agentId: string;
|
|
43
|
-
projectId: string;
|
|
44
|
-
tenantId: string;
|
|
45
42
|
id: string;
|
|
46
|
-
name: string | null;
|
|
47
43
|
createdAt: string;
|
|
48
44
|
updatedAt: string;
|
|
49
45
|
expiresAt: string | null;
|
|
46
|
+
name: string | null;
|
|
47
|
+
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
49
|
+
agentId: string;
|
|
50
|
+
lastUsedAt: string | null;
|
|
50
51
|
publicId: string;
|
|
51
52
|
keyHash: string;
|
|
52
53
|
keyPrefix: string;
|
|
53
|
-
lastUsedAt: string | null;
|
|
54
54
|
}[]>;
|
|
55
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
56
56
|
scopes: ProjectScopeConfig;
|
|
@@ -66,18 +66,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
};
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
|
-
agentId: string;
|
|
70
|
-
projectId: string;
|
|
71
|
-
tenantId: string;
|
|
72
69
|
id: string;
|
|
73
|
-
name: string | null;
|
|
74
70
|
createdAt: string;
|
|
75
71
|
updatedAt: string;
|
|
76
72
|
expiresAt: string | null;
|
|
73
|
+
name: string | null;
|
|
74
|
+
tenantId: string;
|
|
75
|
+
projectId: string;
|
|
76
|
+
agentId: string;
|
|
77
|
+
lastUsedAt: string | null;
|
|
77
78
|
publicId: string;
|
|
78
79
|
keyHash: string;
|
|
79
80
|
keyPrefix: string;
|
|
80
|
-
lastUsedAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|
|
@@ -120,14 +120,7 @@ const validateAndGetApiKey = async (key, db) => {
|
|
|
120
120
|
if (!apiKey) return null;
|
|
121
121
|
if (!await validateApiKey(key, apiKey.keyHash)) return null;
|
|
122
122
|
if (isApiKeyExpired(apiKey.expiresAt)) return null;
|
|
123
|
-
await
|
|
124
|
-
scopes: {
|
|
125
|
-
tenantId: apiKey.tenantId,
|
|
126
|
-
projectId: apiKey.projectId
|
|
127
|
-
},
|
|
128
|
-
id: apiKey.id,
|
|
129
|
-
data: { lastUsedAt: (/* @__PURE__ */ new Date()).toISOString() }
|
|
130
|
-
});
|
|
123
|
+
await updateApiKeyLastUsed(db)(apiKey.id);
|
|
131
124
|
return apiKey;
|
|
132
125
|
};
|
|
133
126
|
|
|
@@ -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
|
-
|
|
20
|
-
projectId: string;
|
|
21
|
-
tenantId: string;
|
|
22
|
-
userId: string | null;
|
|
19
|
+
metadata: ConversationMetadata | null;
|
|
23
20
|
id: string;
|
|
24
|
-
title: string | null;
|
|
25
21
|
createdAt: string;
|
|
26
22
|
updatedAt: string;
|
|
27
|
-
|
|
23
|
+
userId: string | null;
|
|
28
24
|
ref: {
|
|
29
25
|
type: "commit" | "tag" | "branch";
|
|
30
26
|
name: string;
|
|
31
27
|
hash: string;
|
|
32
28
|
} | null;
|
|
29
|
+
tenantId: string;
|
|
30
|
+
projectId: string;
|
|
31
|
+
agentId: string | null;
|
|
32
|
+
title: 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
|
-
|
|
89
|
-
projectId: string;
|
|
90
|
-
tenantId: string;
|
|
91
|
-
userId: string | null;
|
|
88
|
+
metadata: ConversationMetadata | null;
|
|
92
89
|
id: string;
|
|
93
|
-
title: string | null;
|
|
94
90
|
createdAt: string;
|
|
95
91
|
updatedAt: string;
|
|
96
|
-
|
|
92
|
+
userId: string | null;
|
|
97
93
|
ref: {
|
|
98
94
|
type: "commit" | "tag" | "branch";
|
|
99
95
|
name: string;
|
|
100
96
|
hash: string;
|
|
101
97
|
} | null;
|
|
98
|
+
tenantId: string;
|
|
99
|
+
projectId: string;
|
|
100
|
+
agentId: string | null;
|
|
101
|
+
title: 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
|
-
|
|
125
|
-
projectId: string;
|
|
126
|
-
tenantId: string;
|
|
127
|
-
userId: string | null;
|
|
124
|
+
metadata: ConversationMetadata | null;
|
|
128
125
|
id: string;
|
|
129
|
-
title: string | null;
|
|
130
126
|
createdAt: string;
|
|
131
127
|
updatedAt: string;
|
|
132
|
-
|
|
128
|
+
userId: string | null;
|
|
133
129
|
ref: {
|
|
134
130
|
type: "commit" | "tag" | "branch";
|
|
135
131
|
name: string;
|
|
136
132
|
hash: string;
|
|
137
133
|
} | null;
|
|
134
|
+
tenantId: string;
|
|
135
|
+
projectId: string;
|
|
136
|
+
agentId: string | null;
|
|
137
|
+
title: 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
|
-
|
|
157
|
-
projectId: string;
|
|
158
|
-
tenantId: string;
|
|
159
|
-
userId: string | null;
|
|
156
|
+
metadata: ConversationMetadata | null;
|
|
160
157
|
id: string;
|
|
161
|
-
title: string | null;
|
|
162
158
|
createdAt: string;
|
|
163
159
|
updatedAt: string;
|
|
164
|
-
|
|
160
|
+
userId: string | null;
|
|
165
161
|
ref: {
|
|
166
162
|
type: "commit" | "tag" | "branch";
|
|
167
163
|
name: string;
|
|
168
164
|
hash: string;
|
|
169
165
|
} | null;
|
|
166
|
+
tenantId: string;
|
|
167
|
+
projectId: string;
|
|
168
|
+
agentId: string | null;
|
|
169
|
+
title: string | null;
|
|
170
170
|
activeSubAgentId: string;
|
|
171
171
|
lastContextResolution: string | null;
|
|
172
172
|
} | undefined>;
|
|
@@ -10,26 +10,26 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
scopes: ProjectScopeConfig;
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
|
-
|
|
14
|
-
tenantId: string;
|
|
13
|
+
metadata: MessageMetadata | null;
|
|
15
14
|
id: string;
|
|
16
15
|
createdAt: string;
|
|
17
16
|
updatedAt: string;
|
|
18
|
-
metadata: MessageMetadata | null;
|
|
19
|
-
content: MessageContent;
|
|
20
17
|
role: string;
|
|
21
|
-
|
|
18
|
+
tenantId: string;
|
|
19
|
+
projectId: 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: {
|
|
@@ -141,26 +141,26 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
141
141
|
id: string;
|
|
142
142
|
}[]>;
|
|
143
143
|
declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
|
|
144
|
-
|
|
145
|
-
tenantId: string;
|
|
144
|
+
metadata: MessageMetadata | null;
|
|
146
145
|
id: string;
|
|
147
146
|
createdAt: string;
|
|
148
147
|
updatedAt: string;
|
|
149
|
-
metadata: MessageMetadata | null;
|
|
150
|
-
content: MessageContent;
|
|
151
148
|
role: string;
|
|
152
|
-
|
|
149
|
+
tenantId: string;
|
|
150
|
+
projectId: string;
|
|
151
|
+
content: MessageContent;
|
|
153
152
|
fromSubAgentId: string | null;
|
|
154
153
|
toSubAgentId: string | null;
|
|
155
154
|
fromExternalAgentId: string | null;
|
|
156
155
|
toExternalAgentId: string | null;
|
|
156
|
+
taskId: string | null;
|
|
157
|
+
a2aTaskId: string | null;
|
|
158
|
+
conversationId: string;
|
|
157
159
|
fromTeamAgentId: string | null;
|
|
158
160
|
toTeamAgentId: string | null;
|
|
159
161
|
visibility: string;
|
|
160
162
|
messageType: string;
|
|
161
|
-
taskId: string | null;
|
|
162
163
|
parentMessageId: string | null;
|
|
163
|
-
a2aTaskId: string | null;
|
|
164
164
|
a2aSessionId: string | null;
|
|
165
165
|
}>;
|
|
166
166
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -194,26 +194,26 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
194
194
|
scopes: ProjectScopeConfig;
|
|
195
195
|
messageId: string;
|
|
196
196
|
}) => Promise<{
|
|
197
|
-
|
|
198
|
-
tenantId: string;
|
|
197
|
+
metadata: MessageMetadata | null;
|
|
199
198
|
id: string;
|
|
200
199
|
createdAt: string;
|
|
201
200
|
updatedAt: string;
|
|
202
|
-
metadata: MessageMetadata | null;
|
|
203
|
-
content: MessageContent;
|
|
204
201
|
role: string;
|
|
205
|
-
|
|
202
|
+
tenantId: string;
|
|
203
|
+
projectId: string;
|
|
204
|
+
content: MessageContent;
|
|
206
205
|
fromSubAgentId: string | null;
|
|
207
206
|
toSubAgentId: string | null;
|
|
208
207
|
fromExternalAgentId: string | null;
|
|
209
208
|
toExternalAgentId: string | null;
|
|
209
|
+
taskId: string | null;
|
|
210
|
+
a2aTaskId: string | null;
|
|
211
|
+
conversationId: string;
|
|
210
212
|
fromTeamAgentId: string | null;
|
|
211
213
|
toTeamAgentId: string | null;
|
|
212
214
|
visibility: string;
|
|
213
215
|
messageType: string;
|
|
214
|
-
taskId: string | null;
|
|
215
216
|
parentMessageId: string | null;
|
|
216
|
-
a2aTaskId: string | null;
|
|
217
217
|
a2aSessionId: string | null;
|
|
218
218
|
}>;
|
|
219
219
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -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
|
-
|
|
10
|
-
projectId: string;
|
|
11
|
-
tenantId: string;
|
|
9
|
+
metadata: TaskMetadataConfig | null;
|
|
12
10
|
id: string;
|
|
13
11
|
createdAt: string;
|
|
14
12
|
updatedAt: string;
|
|
15
|
-
|
|
16
|
-
subAgentId: string;
|
|
13
|
+
status: string;
|
|
17
14
|
ref: {
|
|
18
15
|
type: "commit" | "tag" | "branch";
|
|
19
16
|
name: string;
|
|
20
17
|
hash: string;
|
|
21
18
|
} | null;
|
|
22
|
-
|
|
19
|
+
tenantId: string;
|
|
20
|
+
projectId: string;
|
|
21
|
+
agentId: string;
|
|
22
|
+
subAgentId: string;
|
|
23
23
|
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|