@inkeep/agents-core 0.0.0-dev-20260224170656 → 0.0.0-dev-20260224181132
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 +22 -22
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +3 -3
- 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 +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +8 -8
- package/dist/data-access/manage/skills.d.ts +5 -5
- 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 +6 -6
- package/dist/data-access/manage/tools.d.ts +12 -12
- package/dist/data-access/manage/triggers.d.ts +2 -2
- 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 +12 -12
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-schema.d.ts +292 -292
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1639 -1639
- package/package.json +1 -1
|
@@ -13,11 +13,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
tenantId: string;
|
|
16
|
-
agentId: string;
|
|
17
16
|
projectId: string;
|
|
18
|
-
|
|
17
|
+
agentId: string;
|
|
19
18
|
sourceSubAgentId: string;
|
|
20
19
|
targetSubAgentId: string | null;
|
|
20
|
+
relationType: string | null;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
23
23
|
scopes: AgentScopeConfig;
|
|
@@ -48,11 +48,11 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
50
|
tenantId: string;
|
|
51
|
-
agentId: string;
|
|
52
51
|
projectId: string;
|
|
53
|
-
|
|
52
|
+
agentId: string;
|
|
54
53
|
sourceSubAgentId: string;
|
|
55
54
|
targetSubAgentId: string | null;
|
|
55
|
+
relationType: string | null;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
@@ -61,11 +61,11 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
63
|
tenantId: string;
|
|
64
|
-
agentId: string;
|
|
65
64
|
projectId: string;
|
|
66
|
-
|
|
65
|
+
agentId: string;
|
|
67
66
|
sourceSubAgentId: string;
|
|
68
67
|
targetSubAgentId: string | null;
|
|
68
|
+
relationType: string | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -130,11 +130,11 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
130
130
|
createdAt: string;
|
|
131
131
|
updatedAt: string;
|
|
132
132
|
tenantId: string;
|
|
133
|
-
agentId: string;
|
|
134
133
|
projectId: string;
|
|
135
|
-
|
|
134
|
+
agentId: string;
|
|
136
135
|
sourceSubAgentId: string;
|
|
137
136
|
targetSubAgentId: string | null;
|
|
137
|
+
relationType: string | null;
|
|
138
138
|
}>;
|
|
139
139
|
/**
|
|
140
140
|
* Check if sub-agent relation exists by agent, source, target, and relation type
|
|
@@ -149,11 +149,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
149
149
|
createdAt: string;
|
|
150
150
|
updatedAt: string;
|
|
151
151
|
tenantId: string;
|
|
152
|
-
agentId: string;
|
|
153
152
|
projectId: string;
|
|
154
|
-
|
|
153
|
+
agentId: string;
|
|
155
154
|
sourceSubAgentId: string;
|
|
156
155
|
targetSubAgentId: string | null;
|
|
156
|
+
relationType: string | null;
|
|
157
157
|
} | undefined>;
|
|
158
158
|
/**
|
|
159
159
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
@@ -163,11 +163,11 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
163
163
|
createdAt: string;
|
|
164
164
|
updatedAt: string;
|
|
165
165
|
tenantId: string;
|
|
166
|
-
agentId: string;
|
|
167
166
|
projectId: string;
|
|
168
|
-
|
|
167
|
+
agentId: string;
|
|
169
168
|
sourceSubAgentId: string;
|
|
170
169
|
targetSubAgentId: string | null;
|
|
170
|
+
relationType: string | null;
|
|
171
171
|
}>;
|
|
172
172
|
declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
173
173
|
scopes: AgentScopeConfig;
|
|
@@ -207,12 +207,12 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
207
207
|
id: string;
|
|
208
208
|
createdAt: string;
|
|
209
209
|
updatedAt: string;
|
|
210
|
+
headers: Record<string, string> | null;
|
|
210
211
|
tenantId: string;
|
|
211
|
-
agentId: string;
|
|
212
212
|
projectId: string;
|
|
213
|
+
agentId: string;
|
|
213
214
|
subAgentId: string;
|
|
214
215
|
toolId: string;
|
|
215
|
-
headers: Record<string, string> | null;
|
|
216
216
|
toolPolicies: Record<string, {
|
|
217
217
|
needsApproval?: boolean;
|
|
218
218
|
}> | null;
|
|
@@ -251,12 +251,12 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
251
251
|
id: string;
|
|
252
252
|
createdAt: string;
|
|
253
253
|
updatedAt: string;
|
|
254
|
+
headers: Record<string, string> | null;
|
|
254
255
|
tenantId: string;
|
|
255
|
-
agentId: string;
|
|
256
256
|
projectId: string;
|
|
257
|
+
agentId: string;
|
|
257
258
|
subAgentId: string;
|
|
258
259
|
toolId: string;
|
|
259
|
-
headers: Record<string, string> | null;
|
|
260
260
|
toolPolicies: Record<string, {
|
|
261
261
|
needsApproval?: boolean;
|
|
262
262
|
}> | null;
|
|
@@ -12,11 +12,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
+
headers: Record<string, string> | null;
|
|
15
16
|
tenantId: string;
|
|
16
|
-
agentId: string;
|
|
17
17
|
projectId: string;
|
|
18
|
+
agentId: 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: {
|
|
@@ -47,11 +47,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
+
headers: Record<string, string> | null;
|
|
50
51
|
tenantId: string;
|
|
51
|
-
agentId: string;
|
|
52
52
|
projectId: string;
|
|
53
|
+
agentId: 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: {
|
|
@@ -60,11 +60,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
+
headers: Record<string, string> | null;
|
|
63
64
|
tenantId: string;
|
|
64
|
-
agentId: string;
|
|
65
65
|
projectId: string;
|
|
66
|
+
agentId: 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: {
|
|
@@ -213,11 +213,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
213
213
|
id: string;
|
|
214
214
|
createdAt: string;
|
|
215
215
|
updatedAt: string;
|
|
216
|
+
headers: Record<string, string> | null;
|
|
216
217
|
tenantId: string;
|
|
217
|
-
agentId: string;
|
|
218
218
|
projectId: string;
|
|
219
|
+
agentId: string;
|
|
219
220
|
subAgentId: string;
|
|
220
|
-
headers: Record<string, string> | null;
|
|
221
221
|
targetAgentId: string;
|
|
222
222
|
}>;
|
|
223
223
|
/**
|
|
@@ -230,11 +230,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
230
230
|
id: string;
|
|
231
231
|
createdAt: string;
|
|
232
232
|
updatedAt: string;
|
|
233
|
+
headers: Record<string, string> | null;
|
|
233
234
|
tenantId: string;
|
|
234
|
-
agentId: string;
|
|
235
235
|
projectId: string;
|
|
236
|
+
agentId: string;
|
|
236
237
|
subAgentId: string;
|
|
237
|
-
headers: Record<string, string> | null;
|
|
238
238
|
targetAgentId: string;
|
|
239
239
|
} | undefined>;
|
|
240
240
|
/**
|
|
@@ -251,11 +251,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
251
251
|
id: string;
|
|
252
252
|
createdAt: string;
|
|
253
253
|
updatedAt: string;
|
|
254
|
+
headers: Record<string, string> | null;
|
|
254
255
|
tenantId: string;
|
|
255
|
-
agentId: string;
|
|
256
256
|
projectId: string;
|
|
257
|
+
agentId: 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: {
|
|
@@ -13,10 +13,10 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
13
13
|
name: string;
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
|
-
tenantId: string;
|
|
17
|
-
agentId: string;
|
|
18
16
|
description: string | null;
|
|
17
|
+
tenantId: string;
|
|
19
18
|
projectId: string;
|
|
19
|
+
agentId: string;
|
|
20
20
|
models: {
|
|
21
21
|
base?: {
|
|
22
22
|
model?: string | undefined;
|
|
@@ -44,10 +44,10 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
44
44
|
name: string;
|
|
45
45
|
createdAt: string;
|
|
46
46
|
updatedAt: string;
|
|
47
|
-
tenantId: string;
|
|
48
|
-
agentId: string;
|
|
49
47
|
description: string | null;
|
|
48
|
+
tenantId: string;
|
|
50
49
|
projectId: string;
|
|
50
|
+
agentId: string;
|
|
51
51
|
models: {
|
|
52
52
|
base?: {
|
|
53
53
|
model?: string | undefined;
|
|
@@ -113,10 +113,10 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
113
113
|
name: string;
|
|
114
114
|
createdAt: string;
|
|
115
115
|
updatedAt: string;
|
|
116
|
-
tenantId: string;
|
|
117
|
-
agentId: string;
|
|
118
116
|
description: string | null;
|
|
117
|
+
tenantId: string;
|
|
119
118
|
projectId: string;
|
|
119
|
+
agentId: string;
|
|
120
120
|
models: {
|
|
121
121
|
base?: {
|
|
122
122
|
model?: string | undefined;
|
|
@@ -23,8 +23,9 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
23
23
|
name: string;
|
|
24
24
|
createdAt: string;
|
|
25
25
|
updatedAt: string;
|
|
26
|
-
tenantId: string;
|
|
27
26
|
description: string | null;
|
|
27
|
+
headers: Record<string, string> | null;
|
|
28
|
+
tenantId: string;
|
|
28
29
|
projectId: string;
|
|
29
30
|
config: {
|
|
30
31
|
type: "mcp";
|
|
@@ -32,7 +33,6 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
32
33
|
};
|
|
33
34
|
credentialReferenceId: string | null;
|
|
34
35
|
credentialScope: string;
|
|
35
|
-
headers: Record<string, string> | null;
|
|
36
36
|
imageUrl: string | null;
|
|
37
37
|
capabilities: ToolServerCapabilities | null;
|
|
38
38
|
lastError: string | null;
|
|
@@ -81,8 +81,9 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
|
|
|
81
81
|
name: string;
|
|
82
82
|
createdAt: string;
|
|
83
83
|
updatedAt: string;
|
|
84
|
-
tenantId: string;
|
|
85
84
|
description: string | null;
|
|
85
|
+
headers: Record<string, string> | null;
|
|
86
|
+
tenantId: string;
|
|
86
87
|
projectId: string;
|
|
87
88
|
config: {
|
|
88
89
|
type: "mcp";
|
|
@@ -90,7 +91,6 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
|
|
|
90
91
|
};
|
|
91
92
|
credentialReferenceId: string | null;
|
|
92
93
|
credentialScope: string;
|
|
93
|
-
headers: Record<string, string> | null;
|
|
94
94
|
imageUrl: string | null;
|
|
95
95
|
capabilities: ToolServerCapabilities | null;
|
|
96
96
|
lastError: string | null;
|
|
@@ -137,12 +137,12 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
137
137
|
id: string;
|
|
138
138
|
createdAt: string;
|
|
139
139
|
updatedAt: string;
|
|
140
|
+
headers: Record<string, string> | null;
|
|
140
141
|
tenantId: string;
|
|
141
|
-
agentId: string;
|
|
142
142
|
projectId: string;
|
|
143
|
+
agentId: string;
|
|
143
144
|
subAgentId: string;
|
|
144
145
|
toolId: string;
|
|
145
|
-
headers: Record<string, string> | null;
|
|
146
146
|
toolPolicies: Record<string, {
|
|
147
147
|
needsApproval?: boolean;
|
|
148
148
|
}> | null;
|
|
@@ -156,12 +156,12 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
156
156
|
id: string;
|
|
157
157
|
createdAt: string;
|
|
158
158
|
updatedAt: string;
|
|
159
|
+
headers: Record<string, string> | null;
|
|
159
160
|
tenantId: string;
|
|
160
|
-
agentId: string;
|
|
161
161
|
projectId: string;
|
|
162
|
+
agentId: string;
|
|
162
163
|
subAgentId: string;
|
|
163
164
|
toolId: string;
|
|
164
|
-
headers: Record<string, string> | null;
|
|
165
165
|
toolPolicies: Record<string, {
|
|
166
166
|
needsApproval?: boolean;
|
|
167
167
|
}> | null;
|
|
@@ -184,12 +184,12 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
184
184
|
id: string;
|
|
185
185
|
createdAt: string;
|
|
186
186
|
updatedAt: string;
|
|
187
|
+
headers: Record<string, string> | null;
|
|
187
188
|
tenantId: string;
|
|
188
|
-
agentId: string;
|
|
189
189
|
projectId: string;
|
|
190
|
+
agentId: string;
|
|
190
191
|
subAgentId: string;
|
|
191
192
|
toolId: string;
|
|
192
|
-
headers: Record<string, string> | null;
|
|
193
193
|
toolPolicies: Record<string, {
|
|
194
194
|
needsApproval?: boolean;
|
|
195
195
|
}> | null;
|
|
@@ -205,8 +205,9 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
205
205
|
name: string;
|
|
206
206
|
createdAt: string;
|
|
207
207
|
updatedAt: string;
|
|
208
|
-
tenantId: string;
|
|
209
208
|
description: string | null;
|
|
209
|
+
headers: Record<string, string> | null;
|
|
210
|
+
tenantId: string;
|
|
210
211
|
projectId: string;
|
|
211
212
|
config: {
|
|
212
213
|
type: "mcp";
|
|
@@ -214,7 +215,6 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
214
215
|
};
|
|
215
216
|
credentialReferenceId: string | null;
|
|
216
217
|
credentialScope: string;
|
|
217
|
-
headers: Record<string, string> | null;
|
|
218
218
|
imageUrl: string | null;
|
|
219
219
|
capabilities: ToolServerCapabilities | null;
|
|
220
220
|
lastError: string | null;
|
|
@@ -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: "query" | "
|
|
43
|
+
source: "query" | "body" | "header";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "literal" | "
|
|
49
|
+
source: "literal" | "body" | "header";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -14,8 +14,8 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
expiresAt: string | null;
|
|
16
16
|
tenantId: string;
|
|
17
|
-
agentId: string;
|
|
18
17
|
projectId: string;
|
|
18
|
+
agentId: string;
|
|
19
19
|
publicId: string;
|
|
20
20
|
keyHash: string;
|
|
21
21
|
keyPrefix: string;
|
|
@@ -28,8 +28,8 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
|
|
|
28
28
|
updatedAt: string;
|
|
29
29
|
expiresAt: string | null;
|
|
30
30
|
tenantId: string;
|
|
31
|
-
agentId: string;
|
|
32
31
|
projectId: string;
|
|
32
|
+
agentId: string;
|
|
33
33
|
publicId: string;
|
|
34
34
|
keyHash: string;
|
|
35
35
|
keyPrefix: string;
|
|
@@ -45,8 +45,8 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
45
45
|
updatedAt: string;
|
|
46
46
|
expiresAt: string | null;
|
|
47
47
|
tenantId: string;
|
|
48
|
-
agentId: string;
|
|
49
48
|
projectId: string;
|
|
49
|
+
agentId: string;
|
|
50
50
|
publicId: string;
|
|
51
51
|
keyHash: string;
|
|
52
52
|
keyPrefix: string;
|
|
@@ -72,8 +72,8 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
|
|
|
72
72
|
updatedAt: string;
|
|
73
73
|
expiresAt: string | null;
|
|
74
74
|
tenantId: string;
|
|
75
|
-
agentId: string;
|
|
76
75
|
projectId: string;
|
|
76
|
+
agentId: string;
|
|
77
77
|
publicId: string;
|
|
78
78
|
keyHash: string;
|
|
79
79
|
keyPrefix: string;
|
|
@@ -17,21 +17,21 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
17
17
|
}>;
|
|
18
18
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
19
19
|
id: string;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
20
22
|
ref: {
|
|
21
23
|
type: "commit" | "tag" | "branch";
|
|
22
24
|
name: string;
|
|
23
25
|
hash: string;
|
|
24
26
|
} | null;
|
|
25
|
-
createdAt: string;
|
|
26
|
-
updatedAt: string;
|
|
27
27
|
userId: string | null;
|
|
28
28
|
metadata: ConversationMetadata | null;
|
|
29
|
+
title: string | null;
|
|
29
30
|
tenantId: string;
|
|
31
|
+
projectId: string;
|
|
30
32
|
agentId: string | null;
|
|
31
33
|
activeSubAgentId: string;
|
|
32
|
-
title: string | null;
|
|
33
34
|
lastContextResolution: string | null;
|
|
34
|
-
projectId: string;
|
|
35
35
|
}>;
|
|
36
36
|
declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
37
37
|
scopes: ProjectScopeConfig;
|
|
@@ -86,21 +86,21 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
86
86
|
conversationId: string;
|
|
87
87
|
}) => Promise<{
|
|
88
88
|
id: string;
|
|
89
|
+
createdAt: string;
|
|
90
|
+
updatedAt: string;
|
|
89
91
|
ref: {
|
|
90
92
|
type: "commit" | "tag" | "branch";
|
|
91
93
|
name: string;
|
|
92
94
|
hash: string;
|
|
93
95
|
} | null;
|
|
94
|
-
createdAt: string;
|
|
95
|
-
updatedAt: string;
|
|
96
96
|
userId: string | null;
|
|
97
97
|
metadata: ConversationMetadata | null;
|
|
98
|
+
title: string | null;
|
|
98
99
|
tenantId: string;
|
|
100
|
+
projectId: string;
|
|
99
101
|
agentId: string | null;
|
|
100
102
|
activeSubAgentId: string;
|
|
101
|
-
title: string | null;
|
|
102
103
|
lastContextResolution: string | null;
|
|
103
|
-
projectId: string;
|
|
104
104
|
} | undefined>;
|
|
105
105
|
declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
|
|
106
106
|
activeSubAgentId: string;
|
|
@@ -122,21 +122,21 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
122
122
|
contextConfigId?: string | undefined;
|
|
123
123
|
} | {
|
|
124
124
|
id: string;
|
|
125
|
+
createdAt: string;
|
|
126
|
+
updatedAt: string;
|
|
125
127
|
ref: {
|
|
126
128
|
type: "commit" | "tag" | "branch";
|
|
127
129
|
name: string;
|
|
128
130
|
hash: string;
|
|
129
131
|
} | null;
|
|
130
|
-
createdAt: string;
|
|
131
|
-
updatedAt: string;
|
|
132
132
|
userId: string | null;
|
|
133
133
|
metadata: ConversationMetadata | null;
|
|
134
|
+
title: string | null;
|
|
134
135
|
tenantId: string;
|
|
136
|
+
projectId: string;
|
|
135
137
|
agentId: string | null;
|
|
136
138
|
activeSubAgentId: string;
|
|
137
|
-
title: string | null;
|
|
138
139
|
lastContextResolution: string | null;
|
|
139
|
-
projectId: string;
|
|
140
140
|
}>;
|
|
141
141
|
/**
|
|
142
142
|
* Get conversation history with filtering and context management
|
|
@@ -154,21 +154,21 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
154
154
|
conversationId: string;
|
|
155
155
|
}) => Promise<{
|
|
156
156
|
id: string;
|
|
157
|
+
createdAt: string;
|
|
158
|
+
updatedAt: string;
|
|
157
159
|
ref: {
|
|
158
160
|
type: "commit" | "tag" | "branch";
|
|
159
161
|
name: string;
|
|
160
162
|
hash: string;
|
|
161
163
|
} | null;
|
|
162
|
-
createdAt: string;
|
|
163
|
-
updatedAt: string;
|
|
164
164
|
userId: string | null;
|
|
165
165
|
metadata: ConversationMetadata | null;
|
|
166
|
+
title: string | null;
|
|
166
167
|
tenantId: string;
|
|
168
|
+
projectId: string;
|
|
167
169
|
agentId: string | null;
|
|
168
170
|
activeSubAgentId: string;
|
|
169
|
-
title: string | null;
|
|
170
171
|
lastContextResolution: string | null;
|
|
171
|
-
projectId: string;
|
|
172
172
|
} | undefined>;
|
|
173
173
|
/**
|
|
174
174
|
* Set active agent for a conversation (upsert operation)
|
|
@@ -17,19 +17,19 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
17
17
|
role: string;
|
|
18
18
|
tenantId: string;
|
|
19
19
|
projectId: string;
|
|
20
|
-
|
|
20
|
+
content: MessageContent;
|
|
21
21
|
fromSubAgentId: string | null;
|
|
22
22
|
toSubAgentId: string | null;
|
|
23
23
|
fromExternalAgentId: string | null;
|
|
24
24
|
toExternalAgentId: string | null;
|
|
25
|
+
taskId: string | null;
|
|
26
|
+
a2aTaskId: string | null;
|
|
27
|
+
conversationId: string;
|
|
25
28
|
fromTeamAgentId: string | null;
|
|
26
29
|
toTeamAgentId: string | null;
|
|
27
|
-
content: MessageContent;
|
|
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: {
|
|
@@ -148,19 +148,19 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
148
148
|
role: string;
|
|
149
149
|
tenantId: string;
|
|
150
150
|
projectId: string;
|
|
151
|
-
|
|
151
|
+
content: MessageContent;
|
|
152
152
|
fromSubAgentId: string | null;
|
|
153
153
|
toSubAgentId: string | null;
|
|
154
154
|
fromExternalAgentId: string | null;
|
|
155
155
|
toExternalAgentId: string | null;
|
|
156
|
+
taskId: string | null;
|
|
157
|
+
a2aTaskId: string | null;
|
|
158
|
+
conversationId: string;
|
|
156
159
|
fromTeamAgentId: string | null;
|
|
157
160
|
toTeamAgentId: string | null;
|
|
158
|
-
content: MessageContent;
|
|
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: {
|
|
@@ -201,19 +201,19 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
201
201
|
role: string;
|
|
202
202
|
tenantId: string;
|
|
203
203
|
projectId: string;
|
|
204
|
-
|
|
204
|
+
content: MessageContent;
|
|
205
205
|
fromSubAgentId: string | null;
|
|
206
206
|
toSubAgentId: string | null;
|
|
207
207
|
fromExternalAgentId: string | null;
|
|
208
208
|
toExternalAgentId: string | null;
|
|
209
|
+
taskId: string | null;
|
|
210
|
+
a2aTaskId: string | null;
|
|
211
|
+
conversationId: string;
|
|
209
212
|
fromTeamAgentId: string | null;
|
|
210
213
|
toTeamAgentId: string | null;
|
|
211
|
-
content: MessageContent;
|
|
212
214
|
visibility: string;
|
|
213
215
|
messageType: string;
|
|
214
|
-
taskId: string | null;
|
|
215
216
|
parentMessageId: string | null;
|
|
216
|
-
a2aTaskId: string | null;
|
|
217
217
|
a2aSessionId: string | null;
|
|
218
218
|
}>;
|
|
219
219
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -34,7 +34,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
|
|
|
34
34
|
}) => Promise<{
|
|
35
35
|
data: {
|
|
36
36
|
scheduledTriggerId: string;
|
|
37
|
-
status: "pending" | "
|
|
37
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
38
38
|
scheduledFor: string;
|
|
39
39
|
startedAt: string | null;
|
|
40
40
|
completedAt: string | null;
|
|
@@ -174,7 +174,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
|
|
|
174
174
|
}) => Promise<{
|
|
175
175
|
data: {
|
|
176
176
|
scheduledTriggerId: string;
|
|
177
|
-
status: "pending" | "
|
|
177
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
178
178
|
scheduledFor: string;
|
|
179
179
|
startedAt: string | null;
|
|
180
180
|
completedAt: string | null;
|
|
@@ -208,7 +208,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
|
|
|
208
208
|
}) => Promise<{
|
|
209
209
|
data: {
|
|
210
210
|
scheduledTriggerId: string;
|
|
211
|
-
status: "pending" | "
|
|
211
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
212
212
|
scheduledFor: string;
|
|
213
213
|
startedAt: string | null;
|
|
214
214
|
completedAt: string | null;
|
|
@@ -7,20 +7,20 @@ 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;
|
|
10
12
|
ref: {
|
|
11
13
|
type: "commit" | "tag" | "branch";
|
|
12
14
|
name: string;
|
|
13
15
|
hash: string;
|
|
14
16
|
} | null;
|
|
15
|
-
createdAt: string;
|
|
16
|
-
updatedAt: string;
|
|
17
|
-
status: string;
|
|
18
17
|
metadata: TaskMetadataConfig | null;
|
|
18
|
+
status: string;
|
|
19
19
|
tenantId: string;
|
|
20
|
-
agentId: string;
|
|
21
20
|
projectId: string;
|
|
22
|
-
|
|
21
|
+
agentId: string;
|
|
23
22
|
subAgentId: string;
|
|
23
|
+
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
26
26
|
id: string;
|