@inkeep/agents-core 0.50.4 → 0.50.6
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 +83 -83
- package/dist/auth/auth-validation-schemas.d.ts +131 -131
- package/dist/auth/auth.d.ts +53 -53
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/manage/agents.d.ts +5 -5
- package/dist/data-access/manage/artifactComponents.d.ts +2 -2
- 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/scope-helpers.d.ts +5 -5
- package/dist/data-access/manage/skills.d.ts +6 -6
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +3 -3
- package/dist/data-access/manage/tools.d.ts +15 -15
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- 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 +92 -92
- package/dist/db/runtime/runtime-schema.d.ts +28 -28
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +414 -414
- package/package.json +1 -1
|
@@ -11,10 +11,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
headers: Record<string, string> | null;
|
|
15
14
|
agentId: string;
|
|
16
15
|
projectId: string;
|
|
17
16
|
tenantId: string;
|
|
17
|
+
headers: Record<string, string> | null;
|
|
18
18
|
subAgentId: string;
|
|
19
19
|
targetAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
@@ -46,10 +46,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
-
headers: Record<string, string> | null;
|
|
50
49
|
agentId: string;
|
|
51
50
|
projectId: string;
|
|
52
51
|
tenantId: string;
|
|
52
|
+
headers: Record<string, string> | null;
|
|
53
53
|
subAgentId: string;
|
|
54
54
|
targetAgentId: string;
|
|
55
55
|
}[]>;
|
|
@@ -59,10 +59,10 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
59
59
|
id: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
-
headers: Record<string, string> | null;
|
|
63
62
|
agentId: string;
|
|
64
63
|
projectId: string;
|
|
65
64
|
tenantId: string;
|
|
65
|
+
headers: Record<string, string> | null;
|
|
66
66
|
subAgentId: string;
|
|
67
67
|
targetAgentId: string;
|
|
68
68
|
}[]>;
|
|
@@ -212,10 +212,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
212
212
|
id: string;
|
|
213
213
|
createdAt: string;
|
|
214
214
|
updatedAt: string;
|
|
215
|
-
headers: Record<string, string> | null;
|
|
216
215
|
agentId: string;
|
|
217
216
|
projectId: string;
|
|
218
217
|
tenantId: string;
|
|
218
|
+
headers: Record<string, string> | null;
|
|
219
219
|
subAgentId: string;
|
|
220
220
|
targetAgentId: string;
|
|
221
221
|
}>;
|
|
@@ -229,10 +229,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
229
229
|
id: string;
|
|
230
230
|
createdAt: string;
|
|
231
231
|
updatedAt: string;
|
|
232
|
-
headers: Record<string, string> | null;
|
|
233
232
|
agentId: string;
|
|
234
233
|
projectId: string;
|
|
235
234
|
tenantId: string;
|
|
235
|
+
headers: Record<string, string> | null;
|
|
236
236
|
subAgentId: string;
|
|
237
237
|
targetAgentId: string;
|
|
238
238
|
} | undefined>;
|
|
@@ -250,10 +250,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
250
250
|
id: string;
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
|
-
headers: Record<string, string> | null;
|
|
254
253
|
agentId: string;
|
|
255
254
|
projectId: string;
|
|
256
255
|
tenantId: string;
|
|
256
|
+
headers: Record<string, string> | null;
|
|
257
257
|
subAgentId: string;
|
|
258
258
|
targetAgentId: string;
|
|
259
259
|
}>;
|
|
@@ -8,8 +8,8 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
subAgentId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
id: string;
|
|
12
11
|
name: string;
|
|
12
|
+
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
agentId: string;
|
|
@@ -39,8 +39,8 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
39
39
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
40
40
|
scopes: AgentScopeConfig;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
id: string;
|
|
43
42
|
name: string;
|
|
43
|
+
id: string;
|
|
44
44
|
createdAt: string;
|
|
45
45
|
updatedAt: string;
|
|
46
46
|
agentId: string;
|
|
@@ -108,8 +108,8 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
110
110
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
111
|
-
id: string;
|
|
112
111
|
name: string;
|
|
112
|
+
id: string;
|
|
113
113
|
createdAt: string;
|
|
114
114
|
updatedAt: string;
|
|
115
115
|
agentId: string;
|
|
@@ -18,14 +18,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
18
18
|
scopes: ProjectScopeConfig;
|
|
19
19
|
toolId: string;
|
|
20
20
|
}) => Promise<{
|
|
21
|
-
id: string;
|
|
22
21
|
name: string;
|
|
22
|
+
id: string;
|
|
23
23
|
createdAt: string;
|
|
24
24
|
updatedAt: string;
|
|
25
|
-
headers: Record<string, string> | null;
|
|
26
25
|
projectId: string;
|
|
27
26
|
tenantId: string;
|
|
28
27
|
description: string | null;
|
|
28
|
+
headers: Record<string, string> | null;
|
|
29
29
|
config: {
|
|
30
30
|
type: "mcp";
|
|
31
31
|
mcp: ToolMcpConfig;
|
|
@@ -76,14 +76,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
76
76
|
};
|
|
77
77
|
}>;
|
|
78
78
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
79
|
-
id: string;
|
|
80
79
|
name: string;
|
|
80
|
+
id: string;
|
|
81
81
|
createdAt: string;
|
|
82
82
|
updatedAt: string;
|
|
83
|
-
headers: Record<string, string> | null;
|
|
84
83
|
projectId: string;
|
|
85
84
|
tenantId: string;
|
|
86
85
|
description: string | null;
|
|
86
|
+
headers: Record<string, string> | null;
|
|
87
87
|
config: {
|
|
88
88
|
type: "mcp";
|
|
89
89
|
mcp: ToolMcpConfig;
|
|
@@ -136,16 +136,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
136
136
|
id: string;
|
|
137
137
|
createdAt: string;
|
|
138
138
|
updatedAt: string;
|
|
139
|
-
headers: Record<string, string> | null;
|
|
140
139
|
agentId: string;
|
|
141
140
|
projectId: string;
|
|
142
141
|
tenantId: string;
|
|
143
|
-
|
|
142
|
+
headers: Record<string, string> | null;
|
|
144
143
|
subAgentId: string;
|
|
144
|
+
toolId: string;
|
|
145
|
+
selectedTools: string[] | null;
|
|
145
146
|
toolPolicies: Record<string, {
|
|
146
147
|
needsApproval?: boolean;
|
|
147
148
|
}> | null;
|
|
148
|
-
selectedTools: string[] | null;
|
|
149
149
|
}>;
|
|
150
150
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
151
151
|
scopes: AgentScopeConfig;
|
|
@@ -155,16 +155,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
155
155
|
id: string;
|
|
156
156
|
createdAt: string;
|
|
157
157
|
updatedAt: string;
|
|
158
|
-
headers: Record<string, string> | null;
|
|
159
158
|
agentId: string;
|
|
160
159
|
projectId: string;
|
|
161
160
|
tenantId: string;
|
|
162
|
-
|
|
161
|
+
headers: Record<string, string> | null;
|
|
163
162
|
subAgentId: string;
|
|
163
|
+
toolId: string;
|
|
164
|
+
selectedTools: string[] | null;
|
|
164
165
|
toolPolicies: Record<string, {
|
|
165
166
|
needsApproval?: boolean;
|
|
166
167
|
}> | null;
|
|
167
|
-
selectedTools: string[] | null;
|
|
168
168
|
}>;
|
|
169
169
|
/**
|
|
170
170
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -183,16 +183,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
183
183
|
id: string;
|
|
184
184
|
createdAt: string;
|
|
185
185
|
updatedAt: string;
|
|
186
|
-
headers: Record<string, string> | null;
|
|
187
186
|
agentId: string;
|
|
188
187
|
projectId: string;
|
|
189
188
|
tenantId: string;
|
|
190
|
-
|
|
189
|
+
headers: Record<string, string> | null;
|
|
191
190
|
subAgentId: string;
|
|
191
|
+
toolId: string;
|
|
192
|
+
selectedTools: string[] | null;
|
|
192
193
|
toolPolicies: Record<string, {
|
|
193
194
|
needsApproval?: boolean;
|
|
194
195
|
}> | null;
|
|
195
|
-
selectedTools: string[] | null;
|
|
196
196
|
}>;
|
|
197
197
|
/**
|
|
198
198
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -200,14 +200,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
200
200
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
201
201
|
data: ToolInsert;
|
|
202
202
|
}) => Promise<{
|
|
203
|
-
id: string;
|
|
204
203
|
name: string;
|
|
204
|
+
id: string;
|
|
205
205
|
createdAt: string;
|
|
206
206
|
updatedAt: string;
|
|
207
|
-
headers: Record<string, string> | null;
|
|
208
207
|
projectId: string;
|
|
209
208
|
tenantId: string;
|
|
210
209
|
description: string | null;
|
|
210
|
+
headers: Record<string, string> | null;
|
|
211
211
|
config: {
|
|
212
212
|
type: "mcp";
|
|
213
213
|
mcp: ToolMcpConfig;
|
|
@@ -7,28 +7,28 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
7
7
|
scopes: ProjectScopeConfig;
|
|
8
8
|
id: string;
|
|
9
9
|
}) => Promise<{
|
|
10
|
-
id: string;
|
|
11
10
|
name: string | null;
|
|
11
|
+
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
expiresAt: string | null;
|
|
15
14
|
agentId: string;
|
|
16
15
|
projectId: string;
|
|
17
16
|
tenantId: string;
|
|
17
|
+
expiresAt: string | null;
|
|
18
18
|
publicId: string;
|
|
19
19
|
keyHash: string;
|
|
20
20
|
keyPrefix: string;
|
|
21
21
|
lastUsedAt: string | null;
|
|
22
22
|
} | undefined>;
|
|
23
23
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
24
|
-
id: string;
|
|
25
24
|
name: string | null;
|
|
25
|
+
id: string;
|
|
26
26
|
createdAt: string;
|
|
27
27
|
updatedAt: string;
|
|
28
|
-
expiresAt: string | null;
|
|
29
28
|
agentId: string;
|
|
30
29
|
projectId: string;
|
|
31
30
|
tenantId: string;
|
|
31
|
+
expiresAt: string | null;
|
|
32
32
|
publicId: string;
|
|
33
33
|
keyHash: string;
|
|
34
34
|
keyPrefix: string;
|
|
@@ -38,14 +38,14 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
39
39
|
agentId?: string;
|
|
40
40
|
}) => Promise<{
|
|
41
|
-
id: string;
|
|
42
41
|
name: string | null;
|
|
42
|
+
id: string;
|
|
43
43
|
createdAt: string;
|
|
44
44
|
updatedAt: string;
|
|
45
|
-
expiresAt: string | null;
|
|
46
45
|
agentId: string;
|
|
47
46
|
projectId: string;
|
|
48
47
|
tenantId: string;
|
|
48
|
+
expiresAt: string | null;
|
|
49
49
|
publicId: string;
|
|
50
50
|
keyHash: string;
|
|
51
51
|
keyPrefix: string;
|
|
@@ -65,14 +65,14 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
68
|
-
id: string;
|
|
69
68
|
name: string | null;
|
|
69
|
+
id: string;
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
|
-
expiresAt: string | null;
|
|
73
72
|
agentId: string;
|
|
74
73
|
projectId: string;
|
|
75
74
|
tenantId: string;
|
|
75
|
+
expiresAt: string | null;
|
|
76
76
|
publicId: string;
|
|
77
77
|
keyHash: string;
|
|
78
78
|
keyPrefix: string;
|
|
@@ -18,17 +18,17 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
18
18
|
id: string;
|
|
19
19
|
createdAt: string;
|
|
20
20
|
updatedAt: string;
|
|
21
|
+
agentId: string | null;
|
|
22
|
+
projectId: string;
|
|
23
|
+
tenantId: string;
|
|
24
|
+
title: string | null;
|
|
25
|
+
metadata: ConversationMetadata | null;
|
|
26
|
+
userId: string | null;
|
|
21
27
|
ref: {
|
|
22
28
|
type: "tag" | "commit" | "branch";
|
|
23
29
|
name: string;
|
|
24
30
|
hash: string;
|
|
25
31
|
} | null;
|
|
26
|
-
userId: string | null;
|
|
27
|
-
metadata: ConversationMetadata | null;
|
|
28
|
-
agentId: string | null;
|
|
29
|
-
projectId: string;
|
|
30
|
-
tenantId: string;
|
|
31
|
-
title: string | null;
|
|
32
32
|
activeSubAgentId: string;
|
|
33
33
|
lastContextResolution: string | null;
|
|
34
34
|
}>;
|
|
@@ -87,17 +87,17 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
87
87
|
id: string;
|
|
88
88
|
createdAt: string;
|
|
89
89
|
updatedAt: string;
|
|
90
|
+
agentId: string | null;
|
|
91
|
+
projectId: string;
|
|
92
|
+
tenantId: string;
|
|
93
|
+
title: string | null;
|
|
94
|
+
metadata: ConversationMetadata | null;
|
|
95
|
+
userId: string | null;
|
|
90
96
|
ref: {
|
|
91
97
|
type: "tag" | "commit" | "branch";
|
|
92
98
|
name: string;
|
|
93
99
|
hash: string;
|
|
94
100
|
} | null;
|
|
95
|
-
userId: string | null;
|
|
96
|
-
metadata: ConversationMetadata | null;
|
|
97
|
-
agentId: string | null;
|
|
98
|
-
projectId: string;
|
|
99
|
-
tenantId: string;
|
|
100
|
-
title: string | null;
|
|
101
101
|
activeSubAgentId: string;
|
|
102
102
|
lastContextResolution: string | null;
|
|
103
103
|
} | undefined>;
|
|
@@ -123,17 +123,17 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
123
123
|
id: string;
|
|
124
124
|
createdAt: string;
|
|
125
125
|
updatedAt: string;
|
|
126
|
+
agentId: string | null;
|
|
127
|
+
projectId: string;
|
|
128
|
+
tenantId: string;
|
|
129
|
+
title: string | null;
|
|
130
|
+
metadata: ConversationMetadata | null;
|
|
131
|
+
userId: string | null;
|
|
126
132
|
ref: {
|
|
127
133
|
type: "tag" | "commit" | "branch";
|
|
128
134
|
name: string;
|
|
129
135
|
hash: string;
|
|
130
136
|
} | null;
|
|
131
|
-
userId: string | null;
|
|
132
|
-
metadata: ConversationMetadata | null;
|
|
133
|
-
agentId: string | null;
|
|
134
|
-
projectId: string;
|
|
135
|
-
tenantId: string;
|
|
136
|
-
title: string | null;
|
|
137
137
|
activeSubAgentId: string;
|
|
138
138
|
lastContextResolution: string | null;
|
|
139
139
|
}>;
|
|
@@ -155,17 +155,17 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
155
155
|
id: string;
|
|
156
156
|
createdAt: string;
|
|
157
157
|
updatedAt: string;
|
|
158
|
+
agentId: string | null;
|
|
159
|
+
projectId: string;
|
|
160
|
+
tenantId: string;
|
|
161
|
+
title: string | null;
|
|
162
|
+
metadata: ConversationMetadata | null;
|
|
163
|
+
userId: string | null;
|
|
158
164
|
ref: {
|
|
159
165
|
type: "tag" | "commit" | "branch";
|
|
160
166
|
name: string;
|
|
161
167
|
hash: string;
|
|
162
168
|
} | null;
|
|
163
|
-
userId: string | null;
|
|
164
|
-
metadata: ConversationMetadata | null;
|
|
165
|
-
agentId: string | null;
|
|
166
|
-
projectId: string;
|
|
167
|
-
tenantId: string;
|
|
168
|
-
title: string | null;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|
|
@@ -12,23 +12,23 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
metadata: MessageMetadata | null;
|
|
16
|
-
role: string;
|
|
17
15
|
projectId: string;
|
|
18
16
|
tenantId: string;
|
|
17
|
+
metadata: MessageMetadata | null;
|
|
19
18
|
content: MessageContent;
|
|
20
|
-
|
|
19
|
+
role: string;
|
|
21
20
|
fromSubAgentId: string | null;
|
|
22
21
|
toSubAgentId: string | null;
|
|
23
22
|
fromExternalAgentId: string | null;
|
|
24
23
|
toExternalAgentId: string | null;
|
|
24
|
+
taskId: string | null;
|
|
25
|
+
a2aTaskId: string | null;
|
|
26
|
+
conversationId: string;
|
|
25
27
|
fromTeamAgentId: string | null;
|
|
26
28
|
toTeamAgentId: string | null;
|
|
27
29
|
visibility: string;
|
|
28
30
|
messageType: string;
|
|
29
|
-
taskId: string | null;
|
|
30
31
|
parentMessageId: string | null;
|
|
31
|
-
a2aTaskId: string | null;
|
|
32
32
|
a2aSessionId: string | null;
|
|
33
33
|
} | undefined>;
|
|
34
34
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -143,23 +143,23 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
143
143
|
id: string;
|
|
144
144
|
createdAt: string;
|
|
145
145
|
updatedAt: string;
|
|
146
|
-
metadata: MessageMetadata | null;
|
|
147
|
-
role: string;
|
|
148
146
|
projectId: string;
|
|
149
147
|
tenantId: string;
|
|
148
|
+
metadata: MessageMetadata | null;
|
|
150
149
|
content: MessageContent;
|
|
151
|
-
|
|
150
|
+
role: string;
|
|
152
151
|
fromSubAgentId: string | null;
|
|
153
152
|
toSubAgentId: string | null;
|
|
154
153
|
fromExternalAgentId: string | null;
|
|
155
154
|
toExternalAgentId: string | null;
|
|
155
|
+
taskId: string | null;
|
|
156
|
+
a2aTaskId: string | null;
|
|
157
|
+
conversationId: string;
|
|
156
158
|
fromTeamAgentId: string | null;
|
|
157
159
|
toTeamAgentId: string | null;
|
|
158
160
|
visibility: string;
|
|
159
161
|
messageType: string;
|
|
160
|
-
taskId: string | null;
|
|
161
162
|
parentMessageId: string | null;
|
|
162
|
-
a2aTaskId: string | null;
|
|
163
163
|
a2aSessionId: string | null;
|
|
164
164
|
}>;
|
|
165
165
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -196,23 +196,23 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
196
196
|
id: string;
|
|
197
197
|
createdAt: string;
|
|
198
198
|
updatedAt: string;
|
|
199
|
-
metadata: MessageMetadata | null;
|
|
200
|
-
role: string;
|
|
201
199
|
projectId: string;
|
|
202
200
|
tenantId: string;
|
|
201
|
+
metadata: MessageMetadata | null;
|
|
203
202
|
content: MessageContent;
|
|
204
|
-
|
|
203
|
+
role: string;
|
|
205
204
|
fromSubAgentId: string | null;
|
|
206
205
|
toSubAgentId: string | null;
|
|
207
206
|
fromExternalAgentId: string | null;
|
|
208
207
|
toExternalAgentId: string | null;
|
|
208
|
+
taskId: string | null;
|
|
209
|
+
a2aTaskId: string | null;
|
|
210
|
+
conversationId: string;
|
|
209
211
|
fromTeamAgentId: string | null;
|
|
210
212
|
toTeamAgentId: string | null;
|
|
211
213
|
visibility: string;
|
|
212
214
|
messageType: string;
|
|
213
|
-
taskId: string | null;
|
|
214
215
|
parentMessageId: string | null;
|
|
215
|
-
a2aTaskId: string | null;
|
|
216
216
|
a2aSessionId: string | null;
|
|
217
217
|
}>;
|
|
218
218
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -9,18 +9,18 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
9
9
|
id: string;
|
|
10
10
|
createdAt: string;
|
|
11
11
|
updatedAt: string;
|
|
12
|
+
agentId: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
tenantId: string;
|
|
15
|
+
metadata: TaskMetadataConfig | null;
|
|
16
|
+
status: string;
|
|
12
17
|
ref: {
|
|
13
18
|
type: "tag" | "commit" | "branch";
|
|
14
19
|
name: string;
|
|
15
20
|
hash: string;
|
|
16
21
|
} | null;
|
|
17
|
-
metadata: TaskMetadataConfig | null;
|
|
18
|
-
status: string;
|
|
19
|
-
agentId: string;
|
|
20
|
-
projectId: string;
|
|
21
|
-
tenantId: string;
|
|
22
|
-
contextId: string;
|
|
23
22
|
subAgentId: string;
|
|
23
|
+
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
26
26
|
id: string;
|