@inkeep/agents-core 0.0.0-dev-20260116203411 → 0.0.0-dev-20260116211102
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 +104 -104
- package/dist/auth/auth-validation-schemas.d.ts +129 -129
- package/dist/auth/auth.d.ts +39 -39
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -1
- package/dist/data-access/manage/agents.d.ts +15 -15
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +6 -6
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +9 -9
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/runtime/apiKeys.d.ts +4 -4
- package/dist/data-access/runtime/conversations.d.ts +16 -16
- package/dist/data-access/runtime/messages.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/manage-schema.d.ts +360 -360
- package/dist/db/runtime/runtime-schema.d.ts +163 -163
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +202 -202
- package/package.json +1 -1
|
@@ -12,8 +12,8 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
16
15
|
agentId: string;
|
|
16
|
+
projectId: string;
|
|
17
17
|
relationType: string | null;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
@@ -47,8 +47,8 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
49
|
tenantId: string;
|
|
50
|
-
projectId: string;
|
|
51
50
|
agentId: string;
|
|
51
|
+
projectId: string;
|
|
52
52
|
relationType: string | null;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
@@ -60,8 +60,8 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
62
|
tenantId: string;
|
|
63
|
-
projectId: string;
|
|
64
63
|
agentId: string;
|
|
64
|
+
projectId: string;
|
|
65
65
|
relationType: string | null;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
@@ -129,8 +129,8 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
129
129
|
createdAt: string;
|
|
130
130
|
updatedAt: string;
|
|
131
131
|
tenantId: string;
|
|
132
|
-
projectId: string;
|
|
133
132
|
agentId: string;
|
|
133
|
+
projectId: string;
|
|
134
134
|
relationType: string | null;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
@@ -148,8 +148,8 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
148
148
|
createdAt: string;
|
|
149
149
|
updatedAt: string;
|
|
150
150
|
tenantId: string;
|
|
151
|
-
projectId: string;
|
|
152
151
|
agentId: string;
|
|
152
|
+
projectId: string;
|
|
153
153
|
relationType: string | null;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
@@ -162,8 +162,8 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
162
162
|
createdAt: string;
|
|
163
163
|
updatedAt: string;
|
|
164
164
|
tenantId: string;
|
|
165
|
-
projectId: string;
|
|
166
165
|
agentId: string;
|
|
166
|
+
projectId: string;
|
|
167
167
|
relationType: string | null;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
@@ -207,15 +207,15 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
209
|
tenantId: string;
|
|
210
|
-
projectId: string;
|
|
211
210
|
agentId: string;
|
|
211
|
+
projectId: string;
|
|
212
|
+
subAgentId: string;
|
|
212
213
|
toolId: string;
|
|
213
214
|
headers: Record<string, string> | null;
|
|
215
|
+
selectedTools: string[] | null;
|
|
214
216
|
toolPolicies: Record<string, {
|
|
215
217
|
needsApproval?: boolean;
|
|
216
218
|
}> | null;
|
|
217
|
-
subAgentId: string;
|
|
218
|
-
selectedTools: string[] | null;
|
|
219
219
|
}>;
|
|
220
220
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
221
221
|
scopes: AgentScopeConfig;
|
|
@@ -251,15 +251,15 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
253
|
tenantId: string;
|
|
254
|
-
projectId: string;
|
|
255
254
|
agentId: string;
|
|
255
|
+
projectId: string;
|
|
256
|
+
subAgentId: string;
|
|
256
257
|
toolId: string;
|
|
257
258
|
headers: Record<string, string> | null;
|
|
259
|
+
selectedTools: string[] | null;
|
|
258
260
|
toolPolicies: Record<string, {
|
|
259
261
|
needsApproval?: boolean;
|
|
260
262
|
}> | null;
|
|
261
|
-
subAgentId: string;
|
|
262
|
-
selectedTools: string[] | null;
|
|
263
263
|
} | undefined>;
|
|
264
264
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
265
265
|
scopes: SubAgentScopeConfig;
|
|
@@ -12,10 +12,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
16
15
|
agentId: string;
|
|
17
|
-
|
|
16
|
+
projectId: string;
|
|
18
17
|
subAgentId: string;
|
|
18
|
+
headers: Record<string, string> | null;
|
|
19
19
|
targetAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -47,10 +47,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
49
|
tenantId: string;
|
|
50
|
-
projectId: string;
|
|
51
50
|
agentId: string;
|
|
52
|
-
|
|
51
|
+
projectId: string;
|
|
53
52
|
subAgentId: string;
|
|
53
|
+
headers: Record<string, string> | null;
|
|
54
54
|
targetAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -60,10 +60,10 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
62
|
tenantId: string;
|
|
63
|
-
projectId: string;
|
|
64
63
|
agentId: string;
|
|
65
|
-
|
|
64
|
+
projectId: string;
|
|
66
65
|
subAgentId: string;
|
|
66
|
+
headers: Record<string, string> | null;
|
|
67
67
|
targetAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -213,10 +213,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
213
213
|
createdAt: string;
|
|
214
214
|
updatedAt: string;
|
|
215
215
|
tenantId: string;
|
|
216
|
-
projectId: string;
|
|
217
216
|
agentId: string;
|
|
218
|
-
|
|
217
|
+
projectId: string;
|
|
219
218
|
subAgentId: string;
|
|
219
|
+
headers: Record<string, string> | null;
|
|
220
220
|
targetAgentId: string;
|
|
221
221
|
}>;
|
|
222
222
|
/**
|
|
@@ -230,10 +230,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
230
230
|
createdAt: string;
|
|
231
231
|
updatedAt: string;
|
|
232
232
|
tenantId: string;
|
|
233
|
-
projectId: string;
|
|
234
233
|
agentId: string;
|
|
235
|
-
|
|
234
|
+
projectId: string;
|
|
236
235
|
subAgentId: string;
|
|
236
|
+
headers: Record<string, string> | null;
|
|
237
237
|
targetAgentId: string;
|
|
238
238
|
} | undefined>;
|
|
239
239
|
/**
|
|
@@ -251,10 +251,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
253
|
tenantId: string;
|
|
254
|
-
projectId: string;
|
|
255
254
|
agentId: string;
|
|
256
|
-
|
|
255
|
+
projectId: string;
|
|
257
256
|
subAgentId: string;
|
|
257
|
+
headers: Record<string, string> | null;
|
|
258
258
|
targetAgentId: string;
|
|
259
259
|
}>;
|
|
260
260
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -12,11 +12,10 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
12
12
|
name: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
description: string | null;
|
|
16
15
|
tenantId: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
prompt: string | null;
|
|
19
16
|
agentId: string;
|
|
17
|
+
description: string | null;
|
|
18
|
+
projectId: string;
|
|
20
19
|
models: {
|
|
21
20
|
base?: {
|
|
22
21
|
model?: string | undefined;
|
|
@@ -34,6 +33,7 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
34
33
|
stopWhen: {
|
|
35
34
|
stepCountIs?: number | undefined;
|
|
36
35
|
} | null;
|
|
36
|
+
prompt: string | null;
|
|
37
37
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
38
38
|
} | undefined>;
|
|
39
39
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -43,11 +43,10 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
43
43
|
name: string;
|
|
44
44
|
createdAt: string;
|
|
45
45
|
updatedAt: string;
|
|
46
|
-
description: string | null;
|
|
47
46
|
tenantId: string;
|
|
48
|
-
projectId: string;
|
|
49
|
-
prompt: string | null;
|
|
50
47
|
agentId: string;
|
|
48
|
+
description: string | null;
|
|
49
|
+
projectId: string;
|
|
51
50
|
models: {
|
|
52
51
|
base?: {
|
|
53
52
|
model?: string | undefined;
|
|
@@ -65,6 +64,7 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
65
64
|
stopWhen: {
|
|
66
65
|
stepCountIs?: number | undefined;
|
|
67
66
|
} | null;
|
|
67
|
+
prompt: string | null;
|
|
68
68
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -112,11 +112,10 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
112
112
|
name: string;
|
|
113
113
|
createdAt: string;
|
|
114
114
|
updatedAt: string;
|
|
115
|
-
description: string | null;
|
|
116
115
|
tenantId: string;
|
|
117
|
-
projectId: string;
|
|
118
|
-
prompt: string | null;
|
|
119
116
|
agentId: string;
|
|
117
|
+
description: string | null;
|
|
118
|
+
projectId: string;
|
|
120
119
|
models: {
|
|
121
120
|
base?: {
|
|
122
121
|
model?: string | undefined;
|
|
@@ -134,6 +133,7 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
134
133
|
stopWhen: {
|
|
135
134
|
stepCountIs?: number | undefined;
|
|
136
135
|
} | null;
|
|
136
|
+
prompt: string | null;
|
|
137
137
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
138
138
|
}>;
|
|
139
139
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -16,16 +16,16 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
16
16
|
name: string;
|
|
17
17
|
createdAt: string;
|
|
18
18
|
updatedAt: string;
|
|
19
|
-
description: string | null;
|
|
20
19
|
tenantId: string;
|
|
20
|
+
description: string | null;
|
|
21
21
|
projectId: string;
|
|
22
|
+
credentialReferenceId: string | null;
|
|
22
23
|
config: {
|
|
23
24
|
type: "mcp";
|
|
24
25
|
mcp: ToolMcpConfig;
|
|
25
26
|
};
|
|
26
|
-
credentialReferenceId: string | null;
|
|
27
|
-
headers: Record<string, string> | null;
|
|
28
27
|
credentialScope: string;
|
|
28
|
+
headers: Record<string, string> | null;
|
|
29
29
|
imageUrl: string | null;
|
|
30
30
|
capabilities: ToolServerCapabilities | null;
|
|
31
31
|
lastError: string | null;
|
|
@@ -65,16 +65,16 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
|
|
|
65
65
|
name: string;
|
|
66
66
|
createdAt: string;
|
|
67
67
|
updatedAt: string;
|
|
68
|
-
description: string | null;
|
|
69
68
|
tenantId: string;
|
|
69
|
+
description: string | null;
|
|
70
70
|
projectId: string;
|
|
71
|
+
credentialReferenceId: string | null;
|
|
71
72
|
config: {
|
|
72
73
|
type: "mcp";
|
|
73
74
|
mcp: ToolMcpConfig;
|
|
74
75
|
};
|
|
75
|
-
credentialReferenceId: string | null;
|
|
76
|
-
headers: Record<string, string> | null;
|
|
77
76
|
credentialScope: string;
|
|
77
|
+
headers: Record<string, string> | null;
|
|
78
78
|
imageUrl: string | null;
|
|
79
79
|
capabilities: ToolServerCapabilities | null;
|
|
80
80
|
lastError: string | null;
|
|
@@ -120,15 +120,15 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
120
120
|
createdAt: string;
|
|
121
121
|
updatedAt: string;
|
|
122
122
|
tenantId: string;
|
|
123
|
-
projectId: string;
|
|
124
123
|
agentId: string;
|
|
124
|
+
projectId: string;
|
|
125
|
+
subAgentId: string;
|
|
125
126
|
toolId: string;
|
|
126
127
|
headers: Record<string, string> | null;
|
|
128
|
+
selectedTools: string[] | null;
|
|
127
129
|
toolPolicies: Record<string, {
|
|
128
130
|
needsApproval?: boolean;
|
|
129
131
|
}> | null;
|
|
130
|
-
subAgentId: string;
|
|
131
|
-
selectedTools: string[] | null;
|
|
132
132
|
}>;
|
|
133
133
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
134
134
|
scopes: AgentScopeConfig;
|
|
@@ -139,15 +139,15 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
139
139
|
createdAt: string;
|
|
140
140
|
updatedAt: string;
|
|
141
141
|
tenantId: string;
|
|
142
|
-
projectId: string;
|
|
143
142
|
agentId: string;
|
|
143
|
+
projectId: string;
|
|
144
|
+
subAgentId: string;
|
|
144
145
|
toolId: string;
|
|
145
146
|
headers: Record<string, string> | null;
|
|
147
|
+
selectedTools: string[] | null;
|
|
146
148
|
toolPolicies: Record<string, {
|
|
147
149
|
needsApproval?: boolean;
|
|
148
150
|
}> | null;
|
|
149
|
-
subAgentId: string;
|
|
150
|
-
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
/**
|
|
153
153
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -167,15 +167,15 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
167
167
|
createdAt: string;
|
|
168
168
|
updatedAt: string;
|
|
169
169
|
tenantId: string;
|
|
170
|
-
projectId: string;
|
|
171
170
|
agentId: string;
|
|
171
|
+
projectId: string;
|
|
172
|
+
subAgentId: string;
|
|
172
173
|
toolId: string;
|
|
173
174
|
headers: Record<string, string> | null;
|
|
175
|
+
selectedTools: string[] | null;
|
|
174
176
|
toolPolicies: Record<string, {
|
|
175
177
|
needsApproval?: boolean;
|
|
176
178
|
}> | null;
|
|
177
|
-
subAgentId: string;
|
|
178
|
-
selectedTools: string[] | null;
|
|
179
179
|
}>;
|
|
180
180
|
/**
|
|
181
181
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -187,16 +187,16 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
187
187
|
name: string;
|
|
188
188
|
createdAt: string;
|
|
189
189
|
updatedAt: string;
|
|
190
|
-
description: string | null;
|
|
191
190
|
tenantId: string;
|
|
191
|
+
description: string | null;
|
|
192
192
|
projectId: string;
|
|
193
|
+
credentialReferenceId: string | null;
|
|
193
194
|
config: {
|
|
194
195
|
type: "mcp";
|
|
195
196
|
mcp: ToolMcpConfig;
|
|
196
197
|
};
|
|
197
|
-
credentialReferenceId: string | null;
|
|
198
|
-
headers: Record<string, string> | null;
|
|
199
198
|
credentialScope: string;
|
|
199
|
+
headers: Record<string, string> | null;
|
|
200
200
|
imageUrl: string | null;
|
|
201
201
|
capabilities: ToolServerCapabilities | null;
|
|
202
202
|
lastError: string | null;
|
|
@@ -13,8 +13,8 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
expiresAt: string | null;
|
|
15
15
|
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
16
|
agentId: string;
|
|
17
|
+
projectId: string;
|
|
18
18
|
publicId: string;
|
|
19
19
|
keyHash: string;
|
|
20
20
|
keyPrefix: string;
|
|
@@ -27,8 +27,8 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
|
|
|
27
27
|
updatedAt: string;
|
|
28
28
|
expiresAt: string | null;
|
|
29
29
|
tenantId: string;
|
|
30
|
-
projectId: string;
|
|
31
30
|
agentId: string;
|
|
31
|
+
projectId: string;
|
|
32
32
|
publicId: string;
|
|
33
33
|
keyHash: string;
|
|
34
34
|
keyPrefix: string;
|
|
@@ -44,8 +44,8 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
44
44
|
updatedAt: string;
|
|
45
45
|
expiresAt: string | null;
|
|
46
46
|
tenantId: string;
|
|
47
|
-
projectId: string;
|
|
48
47
|
agentId: string;
|
|
48
|
+
projectId: string;
|
|
49
49
|
publicId: string;
|
|
50
50
|
keyHash: string;
|
|
51
51
|
keyPrefix: string;
|
|
@@ -71,8 +71,8 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
|
|
|
71
71
|
updatedAt: string;
|
|
72
72
|
expiresAt: string | null;
|
|
73
73
|
tenantId: string;
|
|
74
|
-
projectId: string;
|
|
75
74
|
agentId: string;
|
|
75
|
+
projectId: string;
|
|
76
76
|
publicId: string;
|
|
77
77
|
keyHash: string;
|
|
78
78
|
keyPrefix: string;
|
|
@@ -16,21 +16,21 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
18
|
id: string;
|
|
19
|
-
createdAt: string;
|
|
20
|
-
updatedAt: string;
|
|
21
19
|
ref: {
|
|
22
20
|
type: "commit" | "tag" | "branch";
|
|
23
21
|
name: string;
|
|
24
22
|
hash: string;
|
|
25
23
|
} | null;
|
|
24
|
+
createdAt: string;
|
|
25
|
+
updatedAt: string;
|
|
26
26
|
userId: string | null;
|
|
27
27
|
metadata: ConversationMetadata | null;
|
|
28
28
|
tenantId: string;
|
|
29
|
-
projectId: string;
|
|
30
|
-
title: string | null;
|
|
31
29
|
agentId: string | null;
|
|
32
30
|
activeSubAgentId: string;
|
|
31
|
+
title: string | null;
|
|
33
32
|
lastContextResolution: string | null;
|
|
33
|
+
projectId: string;
|
|
34
34
|
}>;
|
|
35
35
|
declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
36
36
|
scopes: ProjectScopeConfig;
|
|
@@ -85,21 +85,21 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
85
85
|
conversationId: string;
|
|
86
86
|
}) => Promise<{
|
|
87
87
|
id: string;
|
|
88
|
-
createdAt: string;
|
|
89
|
-
updatedAt: string;
|
|
90
88
|
ref: {
|
|
91
89
|
type: "commit" | "tag" | "branch";
|
|
92
90
|
name: string;
|
|
93
91
|
hash: string;
|
|
94
92
|
} | null;
|
|
93
|
+
createdAt: string;
|
|
94
|
+
updatedAt: string;
|
|
95
95
|
userId: string | null;
|
|
96
96
|
metadata: ConversationMetadata | null;
|
|
97
97
|
tenantId: string;
|
|
98
|
-
projectId: string;
|
|
99
|
-
title: string | null;
|
|
100
98
|
agentId: string | null;
|
|
101
99
|
activeSubAgentId: string;
|
|
100
|
+
title: string | null;
|
|
102
101
|
lastContextResolution: string | null;
|
|
102
|
+
projectId: string;
|
|
103
103
|
} | undefined>;
|
|
104
104
|
declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
|
|
105
105
|
activeSubAgentId: string;
|
|
@@ -121,21 +121,21 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
121
121
|
contextConfigId?: string | undefined;
|
|
122
122
|
} | {
|
|
123
123
|
id: string;
|
|
124
|
-
createdAt: string;
|
|
125
|
-
updatedAt: string;
|
|
126
124
|
ref: {
|
|
127
125
|
type: "commit" | "tag" | "branch";
|
|
128
126
|
name: string;
|
|
129
127
|
hash: string;
|
|
130
128
|
} | null;
|
|
129
|
+
createdAt: string;
|
|
130
|
+
updatedAt: string;
|
|
131
131
|
userId: string | null;
|
|
132
132
|
metadata: ConversationMetadata | null;
|
|
133
133
|
tenantId: string;
|
|
134
|
-
projectId: string;
|
|
135
|
-
title: string | null;
|
|
136
134
|
agentId: string | null;
|
|
137
135
|
activeSubAgentId: string;
|
|
136
|
+
title: string | null;
|
|
138
137
|
lastContextResolution: string | null;
|
|
138
|
+
projectId: string;
|
|
139
139
|
}>;
|
|
140
140
|
/**
|
|
141
141
|
* Get conversation history with filtering and context management
|
|
@@ -153,21 +153,21 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
153
153
|
conversationId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
155
|
id: string;
|
|
156
|
-
createdAt: string;
|
|
157
|
-
updatedAt: string;
|
|
158
156
|
ref: {
|
|
159
157
|
type: "commit" | "tag" | "branch";
|
|
160
158
|
name: string;
|
|
161
159
|
hash: string;
|
|
162
160
|
} | null;
|
|
161
|
+
createdAt: string;
|
|
162
|
+
updatedAt: string;
|
|
163
163
|
userId: string | null;
|
|
164
164
|
metadata: ConversationMetadata | null;
|
|
165
165
|
tenantId: string;
|
|
166
|
-
projectId: string;
|
|
167
|
-
title: string | null;
|
|
168
166
|
agentId: string | null;
|
|
169
167
|
activeSubAgentId: string;
|
|
168
|
+
title: string | null;
|
|
170
169
|
lastContextResolution: string | null;
|
|
170
|
+
projectId: string;
|
|
171
171
|
} | undefined>;
|
|
172
172
|
/**
|
|
173
173
|
* Set active agent for a conversation (upsert operation)
|
|
@@ -16,7 +16,6 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
role: string;
|
|
17
17
|
tenantId: string;
|
|
18
18
|
projectId: string;
|
|
19
|
-
content: MessageContent;
|
|
20
19
|
conversationId: string;
|
|
21
20
|
fromSubAgentId: string | null;
|
|
22
21
|
toSubAgentId: string | null;
|
|
@@ -24,6 +23,7 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
24
23
|
toExternalAgentId: string | null;
|
|
25
24
|
fromTeamAgentId: string | null;
|
|
26
25
|
toTeamAgentId: string | null;
|
|
26
|
+
content: MessageContent;
|
|
27
27
|
visibility: string;
|
|
28
28
|
messageType: string;
|
|
29
29
|
taskId: string | null;
|
|
@@ -147,7 +147,6 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
147
147
|
role: string;
|
|
148
148
|
tenantId: string;
|
|
149
149
|
projectId: string;
|
|
150
|
-
content: MessageContent;
|
|
151
150
|
conversationId: string;
|
|
152
151
|
fromSubAgentId: string | null;
|
|
153
152
|
toSubAgentId: string | null;
|
|
@@ -155,6 +154,7 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
155
154
|
toExternalAgentId: string | null;
|
|
156
155
|
fromTeamAgentId: string | null;
|
|
157
156
|
toTeamAgentId: string | null;
|
|
157
|
+
content: MessageContent;
|
|
158
158
|
visibility: string;
|
|
159
159
|
messageType: string;
|
|
160
160
|
taskId: string | null;
|
|
@@ -200,7 +200,6 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
200
200
|
role: string;
|
|
201
201
|
tenantId: string;
|
|
202
202
|
projectId: string;
|
|
203
|
-
content: MessageContent;
|
|
204
203
|
conversationId: string;
|
|
205
204
|
fromSubAgentId: string | null;
|
|
206
205
|
toSubAgentId: string | null;
|
|
@@ -208,6 +207,7 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
208
207
|
toExternalAgentId: string | null;
|
|
209
208
|
fromTeamAgentId: string | null;
|
|
210
209
|
toTeamAgentId: string | null;
|
|
210
|
+
content: MessageContent;
|
|
211
211
|
visibility: string;
|
|
212
212
|
messageType: string;
|
|
213
213
|
taskId: string | null;
|
|
@@ -7,18 +7,18 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
7
7
|
//#region src/data-access/runtime/tasks.d.ts
|
|
8
8
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
9
9
|
id: string;
|
|
10
|
-
createdAt: string;
|
|
11
|
-
updatedAt: string;
|
|
12
10
|
ref: {
|
|
13
11
|
type: "commit" | "tag" | "branch";
|
|
14
12
|
name: string;
|
|
15
13
|
hash: string;
|
|
16
14
|
} | null;
|
|
17
|
-
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
18
17
|
status: string;
|
|
18
|
+
metadata: TaskMetadataConfig | null;
|
|
19
19
|
tenantId: string;
|
|
20
|
-
projectId: string;
|
|
21
20
|
agentId: string;
|
|
21
|
+
projectId: string;
|
|
22
22
|
contextId: string;
|
|
23
23
|
subAgentId: string;
|
|
24
24
|
}>;
|