@inkeep/agents-core 0.0.0-dev-20260310174107 → 0.0.0-dev-20260310195924
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-schema.d.ts +107 -107
- 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/otel-attributes.d.ts +22 -0
- package/dist/constants/otel-attributes.js +22 -0
- package/dist/data-access/manage/agents.d.ts +10 -10
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/functionTools.d.ts +4 -4
- package/dist/data-access/manage/skills.d.ts +9 -9
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +4 -4
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +15 -15
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +453 -453
- package/dist/db/runtime/runtime-schema.d.ts +312 -312
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1935 -1935
- package/package.json +3 -3
|
@@ -9,6 +9,7 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
headers: Record<string, string> | null;
|
|
12
13
|
id: string;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
updatedAt: string;
|
|
@@ -16,7 +17,6 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
16
17
|
projectId: string;
|
|
17
18
|
tenantId: string;
|
|
18
19
|
subAgentId: string;
|
|
19
|
-
headers: Record<string, string> | null;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -44,6 +44,7 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
44
44
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
+
headers: Record<string, string> | null;
|
|
47
48
|
id: string;
|
|
48
49
|
createdAt: string;
|
|
49
50
|
updatedAt: string;
|
|
@@ -51,12 +52,12 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
51
52
|
projectId: string;
|
|
52
53
|
tenantId: string;
|
|
53
54
|
subAgentId: string;
|
|
54
|
-
headers: Record<string, string> | null;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
+
headers: Record<string, string> | null;
|
|
60
61
|
id: string;
|
|
61
62
|
createdAt: string;
|
|
62
63
|
updatedAt: string;
|
|
@@ -64,7 +65,6 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
64
65
|
projectId: string;
|
|
65
66
|
tenantId: string;
|
|
66
67
|
subAgentId: string;
|
|
67
|
-
headers: Record<string, string> | null;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -210,6 +210,7 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
210
210
|
headers?: Record<string, string> | null;
|
|
211
211
|
};
|
|
212
212
|
}) => Promise<{
|
|
213
|
+
headers: Record<string, string> | null;
|
|
213
214
|
id: string;
|
|
214
215
|
createdAt: string;
|
|
215
216
|
updatedAt: string;
|
|
@@ -217,7 +218,6 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
217
218
|
projectId: string;
|
|
218
219
|
tenantId: string;
|
|
219
220
|
subAgentId: string;
|
|
220
|
-
headers: Record<string, string> | null;
|
|
221
221
|
targetAgentId: string;
|
|
222
222
|
}>;
|
|
223
223
|
/**
|
|
@@ -227,6 +227,7 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
227
227
|
scopes: SubAgentScopeConfig;
|
|
228
228
|
targetAgentId: string;
|
|
229
229
|
}) => Promise<{
|
|
230
|
+
headers: Record<string, string> | null;
|
|
230
231
|
id: string;
|
|
231
232
|
createdAt: string;
|
|
232
233
|
updatedAt: string;
|
|
@@ -234,7 +235,6 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
234
235
|
projectId: string;
|
|
235
236
|
tenantId: string;
|
|
236
237
|
subAgentId: string;
|
|
237
|
-
headers: Record<string, string> | null;
|
|
238
238
|
targetAgentId: string;
|
|
239
239
|
} | undefined>;
|
|
240
240
|
/**
|
|
@@ -248,6 +248,7 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
248
248
|
headers?: Record<string, string> | null;
|
|
249
249
|
};
|
|
250
250
|
}) => Promise<{
|
|
251
|
+
headers: Record<string, string> | null;
|
|
251
252
|
id: string;
|
|
252
253
|
createdAt: string;
|
|
253
254
|
updatedAt: string;
|
|
@@ -255,7 +256,6 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
255
256
|
projectId: string;
|
|
256
257
|
tenantId: string;
|
|
257
258
|
subAgentId: string;
|
|
258
|
-
headers: Record<string, string> | null;
|
|
259
259
|
targetAgentId: string;
|
|
260
260
|
}>;
|
|
261
261
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -11,12 +11,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
|
-
name: string;
|
|
15
14
|
updatedAt: string;
|
|
15
|
+
name: string;
|
|
16
|
+
description: string | null;
|
|
16
17
|
agentId: string;
|
|
17
18
|
projectId: string;
|
|
18
19
|
tenantId: string;
|
|
19
|
-
description: string | null;
|
|
20
20
|
models: {
|
|
21
21
|
base?: {
|
|
22
22
|
model?: string | undefined;
|
|
@@ -42,12 +42,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
42
42
|
}) => Promise<{
|
|
43
43
|
id: string;
|
|
44
44
|
createdAt: string;
|
|
45
|
-
name: string;
|
|
46
45
|
updatedAt: string;
|
|
46
|
+
name: string;
|
|
47
|
+
description: string | null;
|
|
47
48
|
agentId: string;
|
|
48
49
|
projectId: string;
|
|
49
50
|
tenantId: string;
|
|
50
|
-
description: string | null;
|
|
51
51
|
models: {
|
|
52
52
|
base?: {
|
|
53
53
|
model?: string | undefined;
|
|
@@ -111,12 +111,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
111
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
112
|
id: string;
|
|
113
113
|
createdAt: string;
|
|
114
|
-
name: string;
|
|
115
114
|
updatedAt: string;
|
|
115
|
+
name: string;
|
|
116
|
+
description: string | null;
|
|
116
117
|
agentId: string;
|
|
117
118
|
projectId: string;
|
|
118
119
|
tenantId: string;
|
|
119
|
-
description: string | null;
|
|
120
120
|
models: {
|
|
121
121
|
base?: {
|
|
122
122
|
model?: string | undefined;
|
|
@@ -19,14 +19,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
19
19
|
scopes: ProjectScopeConfig;
|
|
20
20
|
toolId: string;
|
|
21
21
|
}) => Promise<{
|
|
22
|
+
headers: Record<string, string> | null;
|
|
22
23
|
id: string;
|
|
23
24
|
createdAt: string;
|
|
24
|
-
name: string;
|
|
25
25
|
updatedAt: string;
|
|
26
|
+
name: string;
|
|
27
|
+
description: string | null;
|
|
26
28
|
projectId: string;
|
|
27
29
|
tenantId: string;
|
|
28
|
-
description: string | null;
|
|
29
|
-
headers: Record<string, string> | null;
|
|
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
|
+
headers: Record<string, string> | null;
|
|
80
81
|
id: string;
|
|
81
82
|
createdAt: string;
|
|
82
|
-
name: string;
|
|
83
83
|
updatedAt: string;
|
|
84
|
+
name: string;
|
|
85
|
+
description: string | null;
|
|
84
86
|
projectId: string;
|
|
85
87
|
tenantId: string;
|
|
86
|
-
description: string | null;
|
|
87
|
-
headers: Record<string, string> | null;
|
|
88
88
|
config: {
|
|
89
89
|
type: "mcp";
|
|
90
90
|
mcp: ToolMcpConfig;
|
|
@@ -134,15 +134,15 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
134
134
|
needsApproval?: boolean;
|
|
135
135
|
}> | null;
|
|
136
136
|
}) => Promise<{
|
|
137
|
+
headers: Record<string, string> | null;
|
|
137
138
|
id: string;
|
|
138
139
|
createdAt: string;
|
|
139
140
|
updatedAt: string;
|
|
140
141
|
agentId: string;
|
|
141
142
|
projectId: string;
|
|
142
143
|
tenantId: string;
|
|
143
|
-
subAgentId: string;
|
|
144
144
|
toolId: string;
|
|
145
|
-
|
|
145
|
+
subAgentId: string;
|
|
146
146
|
toolPolicies: Record<string, {
|
|
147
147
|
needsApproval?: boolean;
|
|
148
148
|
}> | null;
|
|
@@ -153,15 +153,15 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
153
153
|
subAgentId: string;
|
|
154
154
|
toolId: string;
|
|
155
155
|
}) => Promise<{
|
|
156
|
+
headers: Record<string, string> | null;
|
|
156
157
|
id: string;
|
|
157
158
|
createdAt: string;
|
|
158
159
|
updatedAt: string;
|
|
159
160
|
agentId: string;
|
|
160
161
|
projectId: string;
|
|
161
162
|
tenantId: string;
|
|
162
|
-
subAgentId: string;
|
|
163
163
|
toolId: string;
|
|
164
|
-
|
|
164
|
+
subAgentId: string;
|
|
165
165
|
toolPolicies: Record<string, {
|
|
166
166
|
needsApproval?: boolean;
|
|
167
167
|
}> | null;
|
|
@@ -181,15 +181,15 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
181
181
|
}> | null;
|
|
182
182
|
relationId?: string;
|
|
183
183
|
}) => Promise<{
|
|
184
|
+
headers: Record<string, string> | null;
|
|
184
185
|
id: string;
|
|
185
186
|
createdAt: string;
|
|
186
187
|
updatedAt: string;
|
|
187
188
|
agentId: string;
|
|
188
189
|
projectId: string;
|
|
189
190
|
tenantId: string;
|
|
190
|
-
subAgentId: string;
|
|
191
191
|
toolId: string;
|
|
192
|
-
|
|
192
|
+
subAgentId: string;
|
|
193
193
|
toolPolicies: Record<string, {
|
|
194
194
|
needsApproval?: boolean;
|
|
195
195
|
}> | 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
|
+
headers: Record<string, string> | null;
|
|
204
205
|
id: string;
|
|
205
206
|
createdAt: string;
|
|
206
|
-
name: string;
|
|
207
207
|
updatedAt: string;
|
|
208
|
+
name: string;
|
|
209
|
+
description: string | null;
|
|
208
210
|
projectId: string;
|
|
209
211
|
tenantId: string;
|
|
210
|
-
description: string | null;
|
|
211
|
-
headers: Record<string, string> | null;
|
|
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;
|
|
@@ -10,8 +10,9 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
|
-
name: string | null;
|
|
14
13
|
updatedAt: string;
|
|
14
|
+
expiresAt: string | null;
|
|
15
|
+
name: string | null;
|
|
15
16
|
agentId: string;
|
|
16
17
|
projectId: string;
|
|
17
18
|
tenantId: string;
|
|
@@ -19,13 +20,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
19
20
|
keyHash: string;
|
|
20
21
|
keyPrefix: string;
|
|
21
22
|
lastUsedAt: string | null;
|
|
22
|
-
expiresAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
25
|
id: string;
|
|
26
26
|
createdAt: string;
|
|
27
|
-
name: string | null;
|
|
28
27
|
updatedAt: string;
|
|
28
|
+
expiresAt: string | null;
|
|
29
|
+
name: string | null;
|
|
29
30
|
agentId: string;
|
|
30
31
|
projectId: string;
|
|
31
32
|
tenantId: string;
|
|
@@ -33,7 +34,6 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
|
|
|
33
34
|
keyHash: string;
|
|
34
35
|
keyPrefix: string;
|
|
35
36
|
lastUsedAt: string | null;
|
|
36
|
-
expiresAt: string | null;
|
|
37
37
|
} | undefined>;
|
|
38
38
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
@@ -41,8 +41,9 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
41
41
|
}) => Promise<{
|
|
42
42
|
id: string;
|
|
43
43
|
createdAt: string;
|
|
44
|
-
name: string | null;
|
|
45
44
|
updatedAt: string;
|
|
45
|
+
expiresAt: string | null;
|
|
46
|
+
name: string | null;
|
|
46
47
|
agentId: string;
|
|
47
48
|
projectId: string;
|
|
48
49
|
tenantId: string;
|
|
@@ -50,7 +51,6 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
50
51
|
keyHash: string;
|
|
51
52
|
keyPrefix: string;
|
|
52
53
|
lastUsedAt: string | null;
|
|
53
|
-
expiresAt: string | null;
|
|
54
54
|
}[]>;
|
|
55
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
56
56
|
scopes: ProjectScopeConfig;
|
|
@@ -68,8 +68,9 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
69
|
id: string;
|
|
70
70
|
createdAt: string;
|
|
71
|
-
name: string | null;
|
|
72
71
|
updatedAt: string;
|
|
72
|
+
expiresAt: string | null;
|
|
73
|
+
name: string | null;
|
|
73
74
|
agentId: string;
|
|
74
75
|
projectId: string;
|
|
75
76
|
tenantId: string;
|
|
@@ -77,7 +78,6 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
|
|
|
77
78
|
keyHash: string;
|
|
78
79
|
keyPrefix: string;
|
|
79
80
|
lastUsedAt: string | null;
|
|
80
|
-
expiresAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|
|
@@ -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
|
+
metadata: ConversationMetadata | null;
|
|
19
20
|
id: string;
|
|
20
21
|
createdAt: string;
|
|
21
22
|
updatedAt: string;
|
|
22
|
-
agentId: string | null;
|
|
23
|
-
projectId: string;
|
|
24
|
-
tenantId: string;
|
|
25
|
-
title: string | null;
|
|
26
|
-
metadata: ConversationMetadata | null;
|
|
27
23
|
userId: string | null;
|
|
28
24
|
ref: {
|
|
29
25
|
type: "tag" | "commit" | "branch";
|
|
30
26
|
name: string;
|
|
31
27
|
hash: string;
|
|
32
28
|
} | null;
|
|
29
|
+
agentId: string | null;
|
|
30
|
+
projectId: string;
|
|
31
|
+
tenantId: string;
|
|
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
|
+
metadata: ConversationMetadata | null;
|
|
88
89
|
id: string;
|
|
89
90
|
createdAt: string;
|
|
90
91
|
updatedAt: string;
|
|
91
|
-
agentId: string | null;
|
|
92
|
-
projectId: string;
|
|
93
|
-
tenantId: string;
|
|
94
|
-
title: string | null;
|
|
95
|
-
metadata: ConversationMetadata | null;
|
|
96
92
|
userId: string | null;
|
|
97
93
|
ref: {
|
|
98
94
|
type: "tag" | "commit" | "branch";
|
|
99
95
|
name: string;
|
|
100
96
|
hash: string;
|
|
101
97
|
} | null;
|
|
98
|
+
agentId: string | null;
|
|
99
|
+
projectId: string;
|
|
100
|
+
tenantId: string;
|
|
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
|
+
metadata: ConversationMetadata | null;
|
|
124
125
|
id: string;
|
|
125
126
|
createdAt: string;
|
|
126
127
|
updatedAt: string;
|
|
127
|
-
agentId: string | null;
|
|
128
|
-
projectId: string;
|
|
129
|
-
tenantId: string;
|
|
130
|
-
title: string | null;
|
|
131
|
-
metadata: ConversationMetadata | null;
|
|
132
128
|
userId: string | null;
|
|
133
129
|
ref: {
|
|
134
130
|
type: "tag" | "commit" | "branch";
|
|
135
131
|
name: string;
|
|
136
132
|
hash: string;
|
|
137
133
|
} | null;
|
|
134
|
+
agentId: string | null;
|
|
135
|
+
projectId: string;
|
|
136
|
+
tenantId: string;
|
|
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
|
+
metadata: ConversationMetadata | null;
|
|
156
157
|
id: string;
|
|
157
158
|
createdAt: string;
|
|
158
159
|
updatedAt: string;
|
|
159
|
-
agentId: string | null;
|
|
160
|
-
projectId: string;
|
|
161
|
-
tenantId: string;
|
|
162
|
-
title: string | null;
|
|
163
|
-
metadata: ConversationMetadata | null;
|
|
164
160
|
userId: string | null;
|
|
165
161
|
ref: {
|
|
166
162
|
type: "tag" | "commit" | "branch";
|
|
167
163
|
name: string;
|
|
168
164
|
hash: string;
|
|
169
165
|
} | null;
|
|
166
|
+
agentId: string | null;
|
|
167
|
+
projectId: string;
|
|
168
|
+
tenantId: string;
|
|
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
|
+
metadata: MessageMetadata | null;
|
|
13
14
|
id: string;
|
|
14
15
|
createdAt: string;
|
|
15
16
|
updatedAt: string;
|
|
17
|
+
role: string;
|
|
16
18
|
projectId: string;
|
|
17
19
|
tenantId: string;
|
|
18
|
-
metadata: MessageMetadata | null;
|
|
19
20
|
content: MessageContent;
|
|
20
|
-
conversationId: string;
|
|
21
|
-
role: string;
|
|
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
|
+
metadata: MessageMetadata | null;
|
|
144
145
|
id: string;
|
|
145
146
|
createdAt: string;
|
|
146
147
|
updatedAt: string;
|
|
148
|
+
role: string;
|
|
147
149
|
projectId: string;
|
|
148
150
|
tenantId: string;
|
|
149
|
-
metadata: MessageMetadata | null;
|
|
150
151
|
content: MessageContent;
|
|
151
|
-
conversationId: string;
|
|
152
|
-
role: string;
|
|
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
|
+
metadata: MessageMetadata | null;
|
|
197
198
|
id: string;
|
|
198
199
|
createdAt: string;
|
|
199
200
|
updatedAt: string;
|
|
201
|
+
role: string;
|
|
200
202
|
projectId: string;
|
|
201
203
|
tenantId: string;
|
|
202
|
-
metadata: MessageMetadata | null;
|
|
203
204
|
content: MessageContent;
|
|
204
|
-
conversationId: string;
|
|
205
|
-
role: string;
|
|
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: {
|
|
@@ -6,21 +6,21 @@ 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
|
+
metadata: TaskMetadataConfig | null;
|
|
9
10
|
id: string;
|
|
10
11
|
createdAt: string;
|
|
11
12
|
updatedAt: string;
|
|
12
|
-
agentId: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
tenantId: string;
|
|
15
|
-
metadata: TaskMetadataConfig | null;
|
|
16
|
-
subAgentId: string;
|
|
17
13
|
status: string;
|
|
18
|
-
contextId: string;
|
|
19
14
|
ref: {
|
|
20
15
|
type: "tag" | "commit" | "branch";
|
|
21
16
|
name: string;
|
|
22
17
|
hash: string;
|
|
23
18
|
} | null;
|
|
19
|
+
agentId: string;
|
|
20
|
+
projectId: string;
|
|
21
|
+
tenantId: string;
|
|
22
|
+
subAgentId: string;
|
|
23
|
+
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
26
26
|
id: string;
|