@inkeep/agents-core 0.0.0-dev-20260304214404 → 0.0.0-dev-20260304220223
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 +85 -85
- package/dist/auth/auth.d.ts +28 -28
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/manage/agents.d.ts +26 -26
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +10 -10
- package/dist/data-access/manage/skills.d.ts +15 -15
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +16 -16
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +15 -15
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/validation/schemas.d.ts +1649 -1649
- package/package.json +1 -1
|
@@ -11,10 +11,10 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
13
|
tenantId: string;
|
|
14
|
-
projectId: string;
|
|
15
|
-
agentId: string;
|
|
16
14
|
createdAt: string;
|
|
17
15
|
updatedAt: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -46,10 +46,10 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
48
|
tenantId: string;
|
|
49
|
-
projectId: string;
|
|
50
|
-
agentId: string;
|
|
51
49
|
createdAt: string;
|
|
52
50
|
updatedAt: string;
|
|
51
|
+
projectId: string;
|
|
52
|
+
agentId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -59,10 +59,10 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
61
|
tenantId: string;
|
|
62
|
-
projectId: string;
|
|
63
|
-
agentId: string;
|
|
64
62
|
createdAt: string;
|
|
65
63
|
updatedAt: string;
|
|
64
|
+
projectId: string;
|
|
65
|
+
agentId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -128,10 +128,10 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
129
|
id: string;
|
|
130
130
|
tenantId: string;
|
|
131
|
-
projectId: string;
|
|
132
|
-
agentId: string;
|
|
133
131
|
createdAt: string;
|
|
134
132
|
updatedAt: string;
|
|
133
|
+
projectId: string;
|
|
134
|
+
agentId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -147,10 +147,10 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
147
147
|
}) => Promise<{
|
|
148
148
|
id: string;
|
|
149
149
|
tenantId: string;
|
|
150
|
-
projectId: string;
|
|
151
|
-
agentId: string;
|
|
152
150
|
createdAt: string;
|
|
153
151
|
updatedAt: string;
|
|
152
|
+
projectId: string;
|
|
153
|
+
agentId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -161,10 +161,10 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
162
|
id: string;
|
|
163
163
|
tenantId: string;
|
|
164
|
-
projectId: string;
|
|
165
|
-
agentId: string;
|
|
166
164
|
createdAt: string;
|
|
167
165
|
updatedAt: string;
|
|
166
|
+
projectId: string;
|
|
167
|
+
agentId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -206,10 +206,10 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
206
206
|
}) => Promise<{
|
|
207
207
|
id: string;
|
|
208
208
|
tenantId: string;
|
|
209
|
-
projectId: string;
|
|
210
|
-
agentId: string;
|
|
211
209
|
createdAt: string;
|
|
212
210
|
updatedAt: string;
|
|
211
|
+
projectId: string;
|
|
212
|
+
agentId: string;
|
|
213
213
|
toolId: string;
|
|
214
214
|
headers: Record<string, string> | null;
|
|
215
215
|
toolPolicies: Record<string, {
|
|
@@ -250,10 +250,10 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
250
250
|
}) => Promise<{
|
|
251
251
|
id: string;
|
|
252
252
|
tenantId: string;
|
|
253
|
-
projectId: string;
|
|
254
|
-
agentId: string;
|
|
255
253
|
createdAt: string;
|
|
256
254
|
updatedAt: string;
|
|
255
|
+
projectId: string;
|
|
256
|
+
agentId: string;
|
|
257
257
|
toolId: string;
|
|
258
258
|
headers: Record<string, string> | null;
|
|
259
259
|
toolPolicies: Record<string, {
|
|
@@ -11,10 +11,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
13
|
tenantId: string;
|
|
14
|
-
projectId: string;
|
|
15
|
-
agentId: string;
|
|
16
14
|
createdAt: string;
|
|
17
15
|
updatedAt: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
18
18
|
headers: Record<string, string> | null;
|
|
19
19
|
subAgentId: string;
|
|
20
20
|
targetAgentId: string;
|
|
@@ -46,10 +46,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
48
|
tenantId: string;
|
|
49
|
-
projectId: string;
|
|
50
|
-
agentId: string;
|
|
51
49
|
createdAt: string;
|
|
52
50
|
updatedAt: string;
|
|
51
|
+
projectId: string;
|
|
52
|
+
agentId: string;
|
|
53
53
|
headers: Record<string, string> | null;
|
|
54
54
|
subAgentId: string;
|
|
55
55
|
targetAgentId: string;
|
|
@@ -59,10 +59,10 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
61
|
tenantId: string;
|
|
62
|
-
projectId: string;
|
|
63
|
-
agentId: string;
|
|
64
62
|
createdAt: string;
|
|
65
63
|
updatedAt: string;
|
|
64
|
+
projectId: string;
|
|
65
|
+
agentId: string;
|
|
66
66
|
headers: Record<string, string> | null;
|
|
67
67
|
subAgentId: string;
|
|
68
68
|
targetAgentId: string;
|
|
@@ -212,10 +212,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
212
212
|
}) => Promise<{
|
|
213
213
|
id: string;
|
|
214
214
|
tenantId: string;
|
|
215
|
-
projectId: string;
|
|
216
|
-
agentId: string;
|
|
217
215
|
createdAt: string;
|
|
218
216
|
updatedAt: string;
|
|
217
|
+
projectId: string;
|
|
218
|
+
agentId: string;
|
|
219
219
|
headers: Record<string, string> | null;
|
|
220
220
|
subAgentId: string;
|
|
221
221
|
targetAgentId: string;
|
|
@@ -229,10 +229,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
229
229
|
}) => Promise<{
|
|
230
230
|
id: string;
|
|
231
231
|
tenantId: string;
|
|
232
|
-
projectId: string;
|
|
233
|
-
agentId: string;
|
|
234
232
|
createdAt: string;
|
|
235
233
|
updatedAt: string;
|
|
234
|
+
projectId: string;
|
|
235
|
+
agentId: string;
|
|
236
236
|
headers: Record<string, string> | null;
|
|
237
237
|
subAgentId: string;
|
|
238
238
|
targetAgentId: string;
|
|
@@ -250,10 +250,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
250
250
|
}) => Promise<{
|
|
251
251
|
id: string;
|
|
252
252
|
tenantId: string;
|
|
253
|
-
projectId: string;
|
|
254
|
-
agentId: string;
|
|
255
253
|
createdAt: string;
|
|
256
254
|
updatedAt: string;
|
|
255
|
+
projectId: string;
|
|
256
|
+
agentId: string;
|
|
257
257
|
headers: Record<string, string> | null;
|
|
258
258
|
subAgentId: string;
|
|
259
259
|
targetAgentId: string;
|
|
@@ -10,13 +10,10 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
+
tenantId: string;
|
|
14
|
+
createdAt: string;
|
|
13
15
|
name: string;
|
|
14
16
|
description: string | null;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
agentId: string;
|
|
18
|
-
prompt: string | null;
|
|
19
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
20
17
|
models: {
|
|
21
18
|
base?: {
|
|
22
19
|
model?: string | undefined;
|
|
@@ -34,20 +31,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
34
31
|
stopWhen: {
|
|
35
32
|
stepCountIs?: number | undefined;
|
|
36
33
|
} | null;
|
|
37
|
-
createdAt: string;
|
|
38
34
|
updatedAt: string;
|
|
35
|
+
projectId: string;
|
|
36
|
+
prompt: string | null;
|
|
37
|
+
agentId: string;
|
|
38
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
41
41
|
scopes: AgentScopeConfig;
|
|
42
42
|
}) => Promise<{
|
|
43
43
|
id: string;
|
|
44
|
+
tenantId: string;
|
|
45
|
+
createdAt: string;
|
|
44
46
|
name: string;
|
|
45
47
|
description: string | null;
|
|
46
|
-
tenantId: string;
|
|
47
|
-
projectId: string;
|
|
48
|
-
agentId: string;
|
|
49
|
-
prompt: string | null;
|
|
50
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
51
48
|
models: {
|
|
52
49
|
base?: {
|
|
53
50
|
model?: string | undefined;
|
|
@@ -65,8 +62,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
65
62
|
stopWhen: {
|
|
66
63
|
stepCountIs?: number | undefined;
|
|
67
64
|
} | null;
|
|
68
|
-
createdAt: string;
|
|
69
65
|
updatedAt: string;
|
|
66
|
+
projectId: string;
|
|
67
|
+
prompt: string | null;
|
|
68
|
+
agentId: string;
|
|
69
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
70
70
|
}[]>;
|
|
71
71
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
72
72
|
scopes: AgentScopeConfig;
|
|
@@ -110,13 +110,10 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
110
110
|
}>;
|
|
111
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
112
|
id: string;
|
|
113
|
+
tenantId: string;
|
|
114
|
+
createdAt: string;
|
|
113
115
|
name: string;
|
|
114
116
|
description: string | null;
|
|
115
|
-
tenantId: string;
|
|
116
|
-
projectId: string;
|
|
117
|
-
agentId: string;
|
|
118
|
-
prompt: string | null;
|
|
119
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
120
117
|
models: {
|
|
121
118
|
base?: {
|
|
122
119
|
model?: string | undefined;
|
|
@@ -134,8 +131,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
134
131
|
stopWhen: {
|
|
135
132
|
stepCountIs?: number | undefined;
|
|
136
133
|
} | null;
|
|
137
|
-
createdAt: string;
|
|
138
134
|
updatedAt: string;
|
|
135
|
+
projectId: string;
|
|
136
|
+
prompt: string | null;
|
|
137
|
+
agentId: string;
|
|
138
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
139
139
|
}>;
|
|
140
140
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
141
141
|
scopes: AgentScopeConfig;
|
|
@@ -20,12 +20,12 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
toolId: string;
|
|
21
21
|
}) => Promise<{
|
|
22
22
|
id: string;
|
|
23
|
-
name: string;
|
|
24
|
-
description: string | null;
|
|
25
23
|
tenantId: string;
|
|
26
|
-
projectId: string;
|
|
27
24
|
createdAt: string;
|
|
25
|
+
name: string;
|
|
26
|
+
description: string | null;
|
|
28
27
|
updatedAt: string;
|
|
28
|
+
projectId: string;
|
|
29
29
|
headers: Record<string, string> | null;
|
|
30
30
|
config: {
|
|
31
31
|
type: "mcp";
|
|
@@ -78,12 +78,12 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
78
|
}>;
|
|
79
79
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
80
80
|
id: string;
|
|
81
|
-
name: string;
|
|
82
|
-
description: string | null;
|
|
83
81
|
tenantId: string;
|
|
84
|
-
projectId: string;
|
|
85
82
|
createdAt: string;
|
|
83
|
+
name: string;
|
|
84
|
+
description: string | null;
|
|
86
85
|
updatedAt: string;
|
|
86
|
+
projectId: string;
|
|
87
87
|
headers: Record<string, string> | null;
|
|
88
88
|
config: {
|
|
89
89
|
type: "mcp";
|
|
@@ -136,10 +136,10 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
136
136
|
}) => Promise<{
|
|
137
137
|
id: string;
|
|
138
138
|
tenantId: string;
|
|
139
|
-
projectId: string;
|
|
140
|
-
agentId: string;
|
|
141
139
|
createdAt: string;
|
|
142
140
|
updatedAt: string;
|
|
141
|
+
projectId: string;
|
|
142
|
+
agentId: string;
|
|
143
143
|
toolId: string;
|
|
144
144
|
headers: Record<string, string> | null;
|
|
145
145
|
toolPolicies: Record<string, {
|
|
@@ -155,10 +155,10 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
155
155
|
}) => Promise<{
|
|
156
156
|
id: string;
|
|
157
157
|
tenantId: string;
|
|
158
|
-
projectId: string;
|
|
159
|
-
agentId: string;
|
|
160
158
|
createdAt: string;
|
|
161
159
|
updatedAt: string;
|
|
160
|
+
projectId: string;
|
|
161
|
+
agentId: string;
|
|
162
162
|
toolId: string;
|
|
163
163
|
headers: Record<string, string> | null;
|
|
164
164
|
toolPolicies: Record<string, {
|
|
@@ -183,10 +183,10 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
183
183
|
}) => Promise<{
|
|
184
184
|
id: string;
|
|
185
185
|
tenantId: string;
|
|
186
|
-
projectId: string;
|
|
187
|
-
agentId: string;
|
|
188
186
|
createdAt: string;
|
|
189
187
|
updatedAt: string;
|
|
188
|
+
projectId: string;
|
|
189
|
+
agentId: string;
|
|
190
190
|
toolId: string;
|
|
191
191
|
headers: Record<string, string> | null;
|
|
192
192
|
toolPolicies: Record<string, {
|
|
@@ -202,12 +202,12 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
202
202
|
data: ToolInsert;
|
|
203
203
|
}) => Promise<{
|
|
204
204
|
id: string;
|
|
205
|
-
name: string;
|
|
206
|
-
description: string | null;
|
|
207
205
|
tenantId: string;
|
|
208
|
-
projectId: string;
|
|
209
206
|
createdAt: string;
|
|
207
|
+
name: string;
|
|
208
|
+
description: string | null;
|
|
210
209
|
updatedAt: string;
|
|
210
|
+
projectId: string;
|
|
211
211
|
headers: Record<string, string> | null;
|
|
212
212
|
config: {
|
|
213
213
|
type: "mcp";
|
|
@@ -9,48 +9,48 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
|
-
name: string | null;
|
|
13
12
|
tenantId: string;
|
|
14
|
-
projectId: string;
|
|
15
|
-
agentId: string;
|
|
16
13
|
createdAt: string;
|
|
14
|
+
name: string | null;
|
|
17
15
|
updatedAt: string;
|
|
18
|
-
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
19
18
|
publicId: string;
|
|
20
19
|
keyHash: string;
|
|
21
20
|
keyPrefix: string;
|
|
22
21
|
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
|
-
name: string | null;
|
|
27
26
|
tenantId: string;
|
|
28
|
-
projectId: string;
|
|
29
|
-
agentId: string;
|
|
30
27
|
createdAt: string;
|
|
28
|
+
name: string | null;
|
|
31
29
|
updatedAt: string;
|
|
32
|
-
|
|
30
|
+
projectId: string;
|
|
31
|
+
agentId: string;
|
|
33
32
|
publicId: string;
|
|
34
33
|
keyHash: string;
|
|
35
34
|
keyPrefix: string;
|
|
36
35
|
lastUsedAt: string | null;
|
|
36
|
+
expiresAt: 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
42
|
id: string;
|
|
43
|
-
name: string | null;
|
|
44
43
|
tenantId: string;
|
|
45
|
-
projectId: string;
|
|
46
|
-
agentId: string;
|
|
47
44
|
createdAt: string;
|
|
45
|
+
name: string | null;
|
|
48
46
|
updatedAt: string;
|
|
49
|
-
|
|
47
|
+
projectId: string;
|
|
48
|
+
agentId: string;
|
|
50
49
|
publicId: string;
|
|
51
50
|
keyHash: string;
|
|
52
51
|
keyPrefix: string;
|
|
53
52
|
lastUsedAt: string | null;
|
|
53
|
+
expiresAt: string | null;
|
|
54
54
|
}[]>;
|
|
55
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
56
56
|
scopes: ProjectScopeConfig;
|
|
@@ -67,17 +67,17 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
69
|
id: string;
|
|
70
|
-
name: string | null;
|
|
71
70
|
tenantId: string;
|
|
72
|
-
projectId: string;
|
|
73
|
-
agentId: string;
|
|
74
71
|
createdAt: string;
|
|
72
|
+
name: string | null;
|
|
75
73
|
updatedAt: string;
|
|
76
|
-
|
|
74
|
+
projectId: string;
|
|
75
|
+
agentId: string;
|
|
77
76
|
publicId: string;
|
|
78
77
|
keyHash: string;
|
|
79
78
|
keyPrefix: string;
|
|
80
79
|
lastUsedAt: string | null;
|
|
80
|
+
expiresAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|
|
@@ -18,18 +18,18 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
18
18
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
19
19
|
id: string;
|
|
20
20
|
tenantId: string;
|
|
21
|
-
projectId: string;
|
|
22
|
-
agentId: string | null;
|
|
23
|
-
title: string | null;
|
|
24
21
|
createdAt: string;
|
|
25
|
-
updatedAt: string;
|
|
26
22
|
metadata: ConversationMetadata | null;
|
|
23
|
+
title: string | null;
|
|
24
|
+
updatedAt: string;
|
|
25
|
+
projectId: string;
|
|
26
|
+
agentId: string | null;
|
|
27
|
+
userId: string | null;
|
|
27
28
|
ref: {
|
|
28
29
|
type: "commit" | "tag" | "branch";
|
|
29
30
|
name: string;
|
|
30
31
|
hash: string;
|
|
31
32
|
} | null;
|
|
32
|
-
userId: string | null;
|
|
33
33
|
activeSubAgentId: string;
|
|
34
34
|
lastContextResolution: string | null;
|
|
35
35
|
}>;
|
|
@@ -87,18 +87,18 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
87
87
|
}) => Promise<{
|
|
88
88
|
id: string;
|
|
89
89
|
tenantId: string;
|
|
90
|
-
projectId: string;
|
|
91
|
-
agentId: string | null;
|
|
92
|
-
title: string | null;
|
|
93
90
|
createdAt: string;
|
|
94
|
-
updatedAt: string;
|
|
95
91
|
metadata: ConversationMetadata | null;
|
|
92
|
+
title: string | null;
|
|
93
|
+
updatedAt: string;
|
|
94
|
+
projectId: string;
|
|
95
|
+
agentId: string | null;
|
|
96
|
+
userId: string | null;
|
|
96
97
|
ref: {
|
|
97
98
|
type: "commit" | "tag" | "branch";
|
|
98
99
|
name: string;
|
|
99
100
|
hash: string;
|
|
100
101
|
} | null;
|
|
101
|
-
userId: string | null;
|
|
102
102
|
activeSubAgentId: string;
|
|
103
103
|
lastContextResolution: string | null;
|
|
104
104
|
} | undefined>;
|
|
@@ -123,18 +123,18 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
123
123
|
} | {
|
|
124
124
|
id: string;
|
|
125
125
|
tenantId: string;
|
|
126
|
-
projectId: string;
|
|
127
|
-
agentId: string | null;
|
|
128
|
-
title: string | null;
|
|
129
126
|
createdAt: string;
|
|
130
|
-
updatedAt: string;
|
|
131
127
|
metadata: ConversationMetadata | null;
|
|
128
|
+
title: string | null;
|
|
129
|
+
updatedAt: string;
|
|
130
|
+
projectId: string;
|
|
131
|
+
agentId: string | null;
|
|
132
|
+
userId: string | null;
|
|
132
133
|
ref: {
|
|
133
134
|
type: "commit" | "tag" | "branch";
|
|
134
135
|
name: string;
|
|
135
136
|
hash: string;
|
|
136
137
|
} | null;
|
|
137
|
-
userId: string | null;
|
|
138
138
|
activeSubAgentId: string;
|
|
139
139
|
lastContextResolution: string | null;
|
|
140
140
|
}>;
|
|
@@ -155,18 +155,18 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
155
155
|
}) => Promise<{
|
|
156
156
|
id: string;
|
|
157
157
|
tenantId: string;
|
|
158
|
-
projectId: string;
|
|
159
|
-
agentId: string | null;
|
|
160
|
-
title: string | null;
|
|
161
158
|
createdAt: string;
|
|
162
|
-
updatedAt: string;
|
|
163
159
|
metadata: ConversationMetadata | null;
|
|
160
|
+
title: string | null;
|
|
161
|
+
updatedAt: string;
|
|
162
|
+
projectId: string;
|
|
163
|
+
agentId: string | null;
|
|
164
|
+
userId: string | null;
|
|
164
165
|
ref: {
|
|
165
166
|
type: "commit" | "tag" | "branch";
|
|
166
167
|
name: string;
|
|
167
168
|
hash: string;
|
|
168
169
|
} | null;
|
|
169
|
-
userId: string | null;
|
|
170
170
|
activeSubAgentId: string;
|
|
171
171
|
lastContextResolution: string | null;
|
|
172
172
|
} | undefined>;
|
|
@@ -12,12 +12,11 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
12
12
|
}) => Promise<{
|
|
13
13
|
id: string;
|
|
14
14
|
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
16
15
|
createdAt: string;
|
|
17
|
-
updatedAt: string;
|
|
18
16
|
metadata: MessageMetadata | null;
|
|
19
17
|
content: MessageContent;
|
|
20
|
-
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
projectId: string;
|
|
21
20
|
fromSubAgentId: string | null;
|
|
22
21
|
toSubAgentId: string | null;
|
|
23
22
|
fromExternalAgentId: string | null;
|
|
@@ -25,6 +24,7 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
25
24
|
taskId: string | null;
|
|
26
25
|
a2aTaskId: string | null;
|
|
27
26
|
conversationId: string;
|
|
27
|
+
role: string;
|
|
28
28
|
fromTeamAgentId: string | null;
|
|
29
29
|
toTeamAgentId: string | null;
|
|
30
30
|
visibility: string;
|
|
@@ -143,12 +143,11 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
143
143
|
declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
|
|
144
144
|
id: string;
|
|
145
145
|
tenantId: string;
|
|
146
|
-
projectId: string;
|
|
147
146
|
createdAt: string;
|
|
148
|
-
updatedAt: string;
|
|
149
147
|
metadata: MessageMetadata | null;
|
|
150
148
|
content: MessageContent;
|
|
151
|
-
|
|
149
|
+
updatedAt: string;
|
|
150
|
+
projectId: string;
|
|
152
151
|
fromSubAgentId: string | null;
|
|
153
152
|
toSubAgentId: string | null;
|
|
154
153
|
fromExternalAgentId: string | null;
|
|
@@ -156,6 +155,7 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
156
155
|
taskId: string | null;
|
|
157
156
|
a2aTaskId: string | null;
|
|
158
157
|
conversationId: string;
|
|
158
|
+
role: string;
|
|
159
159
|
fromTeamAgentId: string | null;
|
|
160
160
|
toTeamAgentId: string | null;
|
|
161
161
|
visibility: string;
|
|
@@ -196,12 +196,11 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
196
196
|
}) => Promise<{
|
|
197
197
|
id: string;
|
|
198
198
|
tenantId: string;
|
|
199
|
-
projectId: string;
|
|
200
199
|
createdAt: string;
|
|
201
|
-
updatedAt: string;
|
|
202
200
|
metadata: MessageMetadata | null;
|
|
203
201
|
content: MessageContent;
|
|
204
|
-
|
|
202
|
+
updatedAt: string;
|
|
203
|
+
projectId: string;
|
|
205
204
|
fromSubAgentId: string | null;
|
|
206
205
|
toSubAgentId: string | null;
|
|
207
206
|
fromExternalAgentId: string | null;
|
|
@@ -209,6 +208,7 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
209
208
|
taskId: string | null;
|
|
210
209
|
a2aTaskId: string | null;
|
|
211
210
|
conversationId: string;
|
|
211
|
+
role: string;
|
|
212
212
|
fromTeamAgentId: string | null;
|
|
213
213
|
toTeamAgentId: string | null;
|
|
214
214
|
visibility: string;
|
|
@@ -8,19 +8,19 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
8
8
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
9
9
|
id: string;
|
|
10
10
|
tenantId: string;
|
|
11
|
-
projectId: string;
|
|
12
|
-
agentId: string;
|
|
13
11
|
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
12
|
metadata: TaskMetadataConfig | null;
|
|
13
|
+
updatedAt: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
agentId: string;
|
|
16
|
+
subAgentId: string;
|
|
17
|
+
status: string;
|
|
18
|
+
contextId: string;
|
|
16
19
|
ref: {
|
|
17
20
|
type: "commit" | "tag" | "branch";
|
|
18
21
|
name: string;
|
|
19
22
|
hash: string;
|
|
20
23
|
} | null;
|
|
21
|
-
status: string;
|
|
22
|
-
subAgentId: string;
|
|
23
|
-
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
26
26
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono3 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/no-auth.d.ts
|
|
4
|
-
declare const noAuth: () =>
|
|
4
|
+
declare const noAuth: () => hono3.MiddlewareHandler<any, string, {}, Response>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { noAuth };
|