@inkeep/agents-core 0.70.0 → 0.70.2
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 +227 -227
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/auth.d.ts +9 -9
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -2
- package/dist/data-access/index.d.ts +4 -2
- package/dist/data-access/index.js +4 -2
- package/dist/data-access/manage/agents.d.ts +20 -20
- 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/improvementRowRevert.d.ts +29 -0
- package/dist/data-access/manage/improvementRowRevert.js +84 -0
- package/dist/data-access/manage/skills.d.ts +9 -9
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/triggers.d.ts +4 -4
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +11 -11
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/feedback.d.ts +16 -5
- package/dist/data-access/runtime/feedback.js +18 -2
- package/dist/data-access/runtime/improvementRuns.d.ts +49 -0
- package/dist/data-access/runtime/improvementRuns.js +41 -0
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +457 -457
- package/dist/db/runtime/runtime-schema.d.ts +608 -425
- package/dist/db/runtime/runtime-schema.js +18 -1
- package/dist/dolt/diff.d.ts +2 -1
- package/dist/dolt/fk-map.d.ts +10 -1
- package/dist/dolt/fk-map.js +37 -1
- package/dist/dolt/index.d.ts +3 -3
- package/dist/dolt/index.js +3 -3
- package/dist/dolt/pk-map.d.ts +5 -1
- package/dist/dolt/pk-map.js +17 -1
- package/dist/index.d.ts +8 -6
- package/dist/index.js +8 -6
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas/skills.d.ts +43 -43
- package/dist/validation/schemas.d.ts +2469 -2236
- package/dist/validation/schemas.js +131 -2
- package/drizzle/runtime/0038_windy_kinsey_walden.sql +15 -0
- package/drizzle/runtime/meta/0038_snapshot.json +6111 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +1 -1
|
@@ -10,13 +10,13 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
tenantId: string;
|
|
14
13
|
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
headers: Record<string, string> | null;
|
|
16
|
+
tenantId: string;
|
|
15
17
|
projectId: string;
|
|
16
18
|
agentId: string;
|
|
17
19
|
subAgentId: string;
|
|
18
|
-
updatedAt: string;
|
|
19
|
-
headers: Record<string, string> | null;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -45,26 +45,26 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
-
tenantId: string;
|
|
49
48
|
createdAt: string;
|
|
49
|
+
updatedAt: string;
|
|
50
|
+
headers: Record<string, string> | null;
|
|
51
|
+
tenantId: string;
|
|
50
52
|
projectId: string;
|
|
51
53
|
agentId: string;
|
|
52
54
|
subAgentId: string;
|
|
53
|
-
updatedAt: string;
|
|
54
|
-
headers: Record<string, string> | null;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
-
tenantId: string;
|
|
62
61
|
createdAt: string;
|
|
62
|
+
updatedAt: string;
|
|
63
|
+
headers: Record<string, string> | null;
|
|
64
|
+
tenantId: string;
|
|
63
65
|
projectId: string;
|
|
64
66
|
agentId: string;
|
|
65
67
|
subAgentId: string;
|
|
66
|
-
updatedAt: string;
|
|
67
|
-
headers: Record<string, string> | null;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -187,13 +187,13 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
187
187
|
};
|
|
188
188
|
}) => Promise<{
|
|
189
189
|
id: string;
|
|
190
|
-
tenantId: string;
|
|
191
190
|
createdAt: string;
|
|
191
|
+
updatedAt: string;
|
|
192
|
+
headers: Record<string, string> | null;
|
|
193
|
+
tenantId: string;
|
|
192
194
|
projectId: string;
|
|
193
195
|
agentId: string;
|
|
194
196
|
subAgentId: string;
|
|
195
|
-
updatedAt: string;
|
|
196
|
-
headers: Record<string, string> | null;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
@@ -204,13 +204,13 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
204
204
|
externalAgentId: string;
|
|
205
205
|
}) => Promise<{
|
|
206
206
|
id: string;
|
|
207
|
-
tenantId: string;
|
|
208
207
|
createdAt: string;
|
|
208
|
+
updatedAt: string;
|
|
209
|
+
headers: Record<string, string> | null;
|
|
210
|
+
tenantId: string;
|
|
209
211
|
projectId: string;
|
|
210
212
|
agentId: string;
|
|
211
213
|
subAgentId: string;
|
|
212
|
-
updatedAt: string;
|
|
213
|
-
headers: Record<string, string> | null;
|
|
214
214
|
externalAgentId: string;
|
|
215
215
|
} | undefined>;
|
|
216
216
|
/**
|
|
@@ -225,13 +225,13 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
225
225
|
};
|
|
226
226
|
}) => Promise<{
|
|
227
227
|
id: string;
|
|
228
|
-
tenantId: string;
|
|
229
228
|
createdAt: string;
|
|
229
|
+
updatedAt: string;
|
|
230
|
+
headers: Record<string, string> | null;
|
|
231
|
+
tenantId: string;
|
|
230
232
|
projectId: string;
|
|
231
233
|
agentId: string;
|
|
232
234
|
subAgentId: string;
|
|
233
|
-
updatedAt: string;
|
|
234
|
-
headers: Record<string, string> | null;
|
|
235
235
|
externalAgentId: string;
|
|
236
236
|
}>;
|
|
237
237
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -10,11 +10,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
tenantId: string;
|
|
14
13
|
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
tenantId: string;
|
|
15
16
|
projectId: string;
|
|
16
17
|
agentId: string;
|
|
17
|
-
updatedAt: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -45,11 +45,11 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
-
tenantId: string;
|
|
49
48
|
createdAt: string;
|
|
49
|
+
updatedAt: string;
|
|
50
|
+
tenantId: string;
|
|
50
51
|
projectId: string;
|
|
51
52
|
agentId: string;
|
|
52
|
-
updatedAt: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -58,11 +58,11 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
-
tenantId: string;
|
|
62
61
|
createdAt: string;
|
|
62
|
+
updatedAt: string;
|
|
63
|
+
tenantId: string;
|
|
63
64
|
projectId: string;
|
|
64
65
|
agentId: string;
|
|
65
|
-
updatedAt: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -127,11 +127,11 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
129
|
id: string;
|
|
130
|
-
tenantId: string;
|
|
131
130
|
createdAt: string;
|
|
131
|
+
updatedAt: string;
|
|
132
|
+
tenantId: string;
|
|
132
133
|
projectId: string;
|
|
133
134
|
agentId: string;
|
|
134
|
-
updatedAt: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -146,11 +146,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
148
|
id: string;
|
|
149
|
-
tenantId: string;
|
|
150
149
|
createdAt: string;
|
|
150
|
+
updatedAt: string;
|
|
151
|
+
tenantId: string;
|
|
151
152
|
projectId: string;
|
|
152
153
|
agentId: string;
|
|
153
|
-
updatedAt: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -160,11 +160,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
160
160
|
*/
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
162
|
id: string;
|
|
163
|
-
tenantId: string;
|
|
164
163
|
createdAt: string;
|
|
164
|
+
updatedAt: string;
|
|
165
|
+
tenantId: string;
|
|
165
166
|
projectId: string;
|
|
166
167
|
agentId: string;
|
|
167
|
-
updatedAt: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -205,14 +205,14 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
207
|
id: string;
|
|
208
|
-
tenantId: string;
|
|
209
208
|
createdAt: string;
|
|
209
|
+
updatedAt: string;
|
|
210
|
+
headers: Record<string, string> | null;
|
|
211
|
+
tenantId: string;
|
|
210
212
|
projectId: string;
|
|
211
213
|
agentId: string;
|
|
212
214
|
subAgentId: string;
|
|
213
215
|
toolId: string;
|
|
214
|
-
updatedAt: string;
|
|
215
|
-
headers: Record<string, string> | null;
|
|
216
216
|
selectedTools: string[] | null;
|
|
217
217
|
toolPolicies: Record<string, {
|
|
218
218
|
needsApproval?: boolean;
|
|
@@ -249,14 +249,14 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
251
|
id: string;
|
|
252
|
-
tenantId: string;
|
|
253
252
|
createdAt: string;
|
|
253
|
+
updatedAt: string;
|
|
254
|
+
headers: Record<string, string> | null;
|
|
255
|
+
tenantId: string;
|
|
254
256
|
projectId: string;
|
|
255
257
|
agentId: string;
|
|
256
258
|
subAgentId: string;
|
|
257
259
|
toolId: string;
|
|
258
|
-
updatedAt: string;
|
|
259
|
-
headers: Record<string, string> | null;
|
|
260
260
|
selectedTools: string[] | null;
|
|
261
261
|
toolPolicies: Record<string, {
|
|
262
262
|
needsApproval?: boolean;
|
|
@@ -10,13 +10,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
tenantId: string;
|
|
14
13
|
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
headers: Record<string, string> | null;
|
|
16
|
+
tenantId: string;
|
|
15
17
|
projectId: string;
|
|
16
18
|
agentId: string;
|
|
17
19
|
subAgentId: string;
|
|
18
|
-
updatedAt: string;
|
|
19
|
-
headers: Record<string, string> | null;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -45,26 +45,26 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
-
tenantId: string;
|
|
49
48
|
createdAt: string;
|
|
49
|
+
updatedAt: string;
|
|
50
|
+
headers: Record<string, string> | null;
|
|
51
|
+
tenantId: string;
|
|
50
52
|
projectId: string;
|
|
51
53
|
agentId: string;
|
|
52
54
|
subAgentId: string;
|
|
53
|
-
updatedAt: string;
|
|
54
|
-
headers: Record<string, string> | null;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
-
tenantId: string;
|
|
62
61
|
createdAt: string;
|
|
62
|
+
updatedAt: string;
|
|
63
|
+
headers: Record<string, string> | null;
|
|
64
|
+
tenantId: string;
|
|
63
65
|
projectId: string;
|
|
64
66
|
agentId: string;
|
|
65
67
|
subAgentId: string;
|
|
66
|
-
updatedAt: string;
|
|
67
|
-
headers: Record<string, string> | null;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -223,13 +223,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
223
223
|
};
|
|
224
224
|
}) => Promise<{
|
|
225
225
|
id: string;
|
|
226
|
-
tenantId: string;
|
|
227
226
|
createdAt: string;
|
|
227
|
+
updatedAt: string;
|
|
228
|
+
headers: Record<string, string> | null;
|
|
229
|
+
tenantId: string;
|
|
228
230
|
projectId: string;
|
|
229
231
|
agentId: string;
|
|
230
232
|
subAgentId: string;
|
|
231
|
-
updatedAt: string;
|
|
232
|
-
headers: Record<string, string> | null;
|
|
233
233
|
targetAgentId: string;
|
|
234
234
|
}>;
|
|
235
235
|
/**
|
|
@@ -240,13 +240,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
240
240
|
targetAgentId: string;
|
|
241
241
|
}) => Promise<{
|
|
242
242
|
id: string;
|
|
243
|
-
tenantId: string;
|
|
244
243
|
createdAt: string;
|
|
244
|
+
updatedAt: string;
|
|
245
|
+
headers: Record<string, string> | null;
|
|
246
|
+
tenantId: string;
|
|
245
247
|
projectId: string;
|
|
246
248
|
agentId: string;
|
|
247
249
|
subAgentId: string;
|
|
248
|
-
updatedAt: string;
|
|
249
|
-
headers: Record<string, string> | null;
|
|
250
250
|
targetAgentId: string;
|
|
251
251
|
} | undefined>;
|
|
252
252
|
/**
|
|
@@ -261,13 +261,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
261
261
|
};
|
|
262
262
|
}) => Promise<{
|
|
263
263
|
id: string;
|
|
264
|
-
tenantId: string;
|
|
265
264
|
createdAt: string;
|
|
265
|
+
updatedAt: string;
|
|
266
|
+
headers: Record<string, string> | null;
|
|
267
|
+
tenantId: string;
|
|
266
268
|
projectId: string;
|
|
267
269
|
agentId: string;
|
|
268
270
|
subAgentId: string;
|
|
269
|
-
updatedAt: string;
|
|
270
|
-
headers: Record<string, string> | null;
|
|
271
271
|
targetAgentId: string;
|
|
272
272
|
}>;
|
|
273
273
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -10,13 +10,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
tenantId: string;
|
|
14
|
-
createdAt: string;
|
|
15
13
|
name: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
16
|
description: string | null;
|
|
17
|
+
prompt: string | null;
|
|
18
|
+
tenantId: string;
|
|
17
19
|
projectId: string;
|
|
18
20
|
agentId: string;
|
|
19
|
-
updatedAt: string;
|
|
20
21
|
models: {
|
|
21
22
|
base?: {
|
|
22
23
|
model?: string | undefined;
|
|
@@ -40,20 +41,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
40
41
|
stopWhen: {
|
|
41
42
|
stepCountIs?: number | undefined;
|
|
42
43
|
} | null;
|
|
43
|
-
prompt: string | null;
|
|
44
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
45
45
|
} | undefined>;
|
|
46
46
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
47
47
|
scopes: AgentScopeConfig;
|
|
48
48
|
}) => Promise<{
|
|
49
49
|
id: string;
|
|
50
|
-
tenantId: string;
|
|
51
|
-
createdAt: string;
|
|
52
50
|
name: string;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
53
53
|
description: string | null;
|
|
54
|
+
prompt: string | null;
|
|
55
|
+
tenantId: string;
|
|
54
56
|
projectId: string;
|
|
55
57
|
agentId: string;
|
|
56
|
-
updatedAt: string;
|
|
57
58
|
models: {
|
|
58
59
|
base?: {
|
|
59
60
|
model?: string | undefined;
|
|
@@ -77,7 +78,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
77
78
|
stopWhen: {
|
|
78
79
|
stepCountIs?: number | undefined;
|
|
79
80
|
} | null;
|
|
80
|
-
prompt: string | null;
|
|
81
81
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
82
82
|
}[]>;
|
|
83
83
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -128,13 +128,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
128
128
|
}>;
|
|
129
129
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
130
130
|
id: string;
|
|
131
|
-
tenantId: string;
|
|
132
|
-
createdAt: string;
|
|
133
131
|
name: string;
|
|
132
|
+
createdAt: string;
|
|
133
|
+
updatedAt: string;
|
|
134
134
|
description: string | null;
|
|
135
|
+
prompt: string | null;
|
|
136
|
+
tenantId: string;
|
|
135
137
|
projectId: string;
|
|
136
138
|
agentId: string;
|
|
137
|
-
updatedAt: string;
|
|
138
139
|
models: {
|
|
139
140
|
base?: {
|
|
140
141
|
model?: string | undefined;
|
|
@@ -158,7 +159,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
158
159
|
stopWhen: {
|
|
159
160
|
stepCountIs?: number | undefined;
|
|
160
161
|
} | null;
|
|
161
|
-
prompt: string | null;
|
|
162
162
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
163
163
|
}>;
|
|
164
164
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -21,19 +21,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
23
|
id: string;
|
|
24
|
-
tenantId: string;
|
|
25
|
-
createdAt: string;
|
|
26
24
|
name: string;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
updatedAt: string;
|
|
27
27
|
description: string | null;
|
|
28
|
+
headers: Record<string, string> | null;
|
|
29
|
+
tenantId: string;
|
|
28
30
|
projectId: string;
|
|
29
|
-
updatedAt: string;
|
|
30
31
|
credentialReferenceId: string | null;
|
|
31
32
|
config: {
|
|
32
33
|
type: "mcp";
|
|
33
34
|
mcp: ToolMcpConfig;
|
|
34
35
|
};
|
|
35
36
|
credentialScope: string;
|
|
36
|
-
headers: Record<string, string> | null;
|
|
37
37
|
imageUrl: string | null;
|
|
38
38
|
capabilities: ToolServerCapabilities | null;
|
|
39
39
|
lastError: string | null;
|
|
@@ -79,19 +79,19 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
81
|
id: string;
|
|
82
|
-
tenantId: string;
|
|
83
|
-
createdAt: string;
|
|
84
82
|
name: string;
|
|
83
|
+
createdAt: string;
|
|
84
|
+
updatedAt: string;
|
|
85
85
|
description: string | null;
|
|
86
|
+
headers: Record<string, string> | null;
|
|
87
|
+
tenantId: string;
|
|
86
88
|
projectId: string;
|
|
87
|
-
updatedAt: string;
|
|
88
89
|
credentialReferenceId: string | null;
|
|
89
90
|
config: {
|
|
90
91
|
type: "mcp";
|
|
91
92
|
mcp: ToolMcpConfig;
|
|
92
93
|
};
|
|
93
94
|
credentialScope: string;
|
|
94
|
-
headers: Record<string, string> | null;
|
|
95
95
|
imageUrl: string | null;
|
|
96
96
|
capabilities: ToolServerCapabilities | null;
|
|
97
97
|
lastError: string | null;
|
|
@@ -136,14 +136,14 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
138
|
id: string;
|
|
139
|
-
tenantId: string;
|
|
140
139
|
createdAt: string;
|
|
140
|
+
updatedAt: string;
|
|
141
|
+
headers: Record<string, string> | null;
|
|
142
|
+
tenantId: string;
|
|
141
143
|
projectId: string;
|
|
142
144
|
agentId: string;
|
|
143
145
|
subAgentId: string;
|
|
144
146
|
toolId: string;
|
|
145
|
-
updatedAt: string;
|
|
146
|
-
headers: Record<string, string> | null;
|
|
147
147
|
selectedTools: string[] | null;
|
|
148
148
|
toolPolicies: Record<string, {
|
|
149
149
|
needsApproval?: boolean;
|
|
@@ -155,14 +155,14 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
157
|
id: string;
|
|
158
|
-
tenantId: string;
|
|
159
158
|
createdAt: string;
|
|
159
|
+
updatedAt: string;
|
|
160
|
+
headers: Record<string, string> | null;
|
|
161
|
+
tenantId: string;
|
|
160
162
|
projectId: string;
|
|
161
163
|
agentId: string;
|
|
162
164
|
subAgentId: string;
|
|
163
165
|
toolId: string;
|
|
164
|
-
updatedAt: string;
|
|
165
|
-
headers: Record<string, string> | null;
|
|
166
166
|
selectedTools: string[] | null;
|
|
167
167
|
toolPolicies: Record<string, {
|
|
168
168
|
needsApproval?: boolean;
|
|
@@ -183,14 +183,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
185
|
id: string;
|
|
186
|
-
tenantId: string;
|
|
187
186
|
createdAt: string;
|
|
187
|
+
updatedAt: string;
|
|
188
|
+
headers: Record<string, string> | null;
|
|
189
|
+
tenantId: string;
|
|
188
190
|
projectId: string;
|
|
189
191
|
agentId: string;
|
|
190
192
|
subAgentId: string;
|
|
191
193
|
toolId: string;
|
|
192
|
-
updatedAt: string;
|
|
193
|
-
headers: Record<string, string> | null;
|
|
194
194
|
selectedTools: string[] | null;
|
|
195
195
|
toolPolicies: Record<string, {
|
|
196
196
|
needsApproval?: boolean;
|
|
@@ -203,19 +203,19 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
205
|
id: string;
|
|
206
|
-
tenantId: string;
|
|
207
|
-
createdAt: string;
|
|
208
206
|
name: string;
|
|
207
|
+
createdAt: string;
|
|
208
|
+
updatedAt: string;
|
|
209
209
|
description: string | null;
|
|
210
|
+
headers: Record<string, string> | null;
|
|
211
|
+
tenantId: string;
|
|
210
212
|
projectId: string;
|
|
211
|
-
updatedAt: string;
|
|
212
213
|
credentialReferenceId: string | null;
|
|
213
214
|
config: {
|
|
214
215
|
type: "mcp";
|
|
215
216
|
mcp: ToolMcpConfig;
|
|
216
217
|
};
|
|
217
218
|
credentialScope: string;
|
|
218
|
-
headers: Record<string, string> | null;
|
|
219
219
|
imageUrl: string | null;
|
|
220
220
|
capabilities: ToolServerCapabilities | null;
|
|
221
221
|
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;
|
|
@@ -131,11 +131,11 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
131
131
|
triggerId: string;
|
|
132
132
|
userId: string;
|
|
133
133
|
}) => Promise<{
|
|
134
|
-
tenantId: string;
|
|
135
134
|
createdAt: string;
|
|
135
|
+
userId: string;
|
|
136
|
+
tenantId: string;
|
|
136
137
|
projectId: string;
|
|
137
138
|
agentId: string;
|
|
138
|
-
userId: string;
|
|
139
139
|
triggerId: string;
|
|
140
140
|
}>;
|
|
141
141
|
declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,13 +9,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
|
-
tenantId: string;
|
|
13
|
-
createdAt: string;
|
|
14
12
|
name: string | null;
|
|
15
|
-
|
|
16
|
-
agentId: string;
|
|
13
|
+
createdAt: string;
|
|
17
14
|
updatedAt: string;
|
|
18
15
|
expiresAt: string | null;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
agentId: string;
|
|
19
19
|
publicId: string;
|
|
20
20
|
keyHash: string;
|
|
21
21
|
keyPrefix: string;
|
|
@@ -23,13 +23,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
25
|
id: string;
|
|
26
|
-
tenantId: string;
|
|
27
|
-
createdAt: string;
|
|
28
26
|
name: string | null;
|
|
29
|
-
|
|
30
|
-
agentId: string;
|
|
27
|
+
createdAt: string;
|
|
31
28
|
updatedAt: string;
|
|
32
29
|
expiresAt: string | null;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
projectId: string;
|
|
32
|
+
agentId: string;
|
|
33
33
|
publicId: string;
|
|
34
34
|
keyHash: string;
|
|
35
35
|
keyPrefix: string;
|
|
@@ -40,13 +40,13 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
42
|
id: string;
|
|
43
|
-
tenantId: string;
|
|
44
|
-
createdAt: string;
|
|
45
43
|
name: string | null;
|
|
46
|
-
|
|
47
|
-
agentId: string;
|
|
44
|
+
createdAt: string;
|
|
48
45
|
updatedAt: string;
|
|
49
46
|
expiresAt: string | null;
|
|
47
|
+
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
49
|
+
agentId: string;
|
|
50
50
|
publicId: string;
|
|
51
51
|
keyHash: string;
|
|
52
52
|
keyPrefix: string;
|
|
@@ -67,13 +67,13 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
69
|
id: string;
|
|
70
|
-
tenantId: string;
|
|
71
|
-
createdAt: string;
|
|
72
70
|
name: string | null;
|
|
73
|
-
|
|
74
|
-
agentId: string;
|
|
71
|
+
createdAt: string;
|
|
75
72
|
updatedAt: string;
|
|
76
73
|
expiresAt: string | null;
|
|
74
|
+
tenantId: string;
|
|
75
|
+
projectId: string;
|
|
76
|
+
agentId: string;
|
|
77
77
|
publicId: string;
|
|
78
78
|
keyHash: string;
|
|
79
79
|
keyPrefix: string;
|
|
@@ -7,14 +7,14 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
|
|
|
7
7
|
declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
|
|
8
8
|
type: AppType;
|
|
9
9
|
id: string;
|
|
10
|
-
tenantId: string | null;
|
|
11
|
-
createdAt: string;
|
|
12
10
|
name: string;
|
|
13
|
-
|
|
14
|
-
projectId: string | null;
|
|
11
|
+
createdAt: string;
|
|
15
12
|
updatedAt: string;
|
|
13
|
+
description: string | null;
|
|
16
14
|
enabled: boolean;
|
|
17
15
|
prompt: string | null;
|
|
16
|
+
tenantId: string | null;
|
|
17
|
+
projectId: string | null;
|
|
18
18
|
config: {
|
|
19
19
|
type: "web_client";
|
|
20
20
|
webClient: {
|
|
@@ -22,7 +22,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
22
22
|
publicKeys: {
|
|
23
23
|
kid: string;
|
|
24
24
|
publicKey: string;
|
|
25
|
-
algorithm: "
|
|
25
|
+
algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
|
|
26
26
|
addedAt: string;
|
|
27
27
|
}[];
|
|
28
28
|
allowAnonymous: boolean;
|
|
@@ -76,14 +76,14 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
76
76
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
77
77
|
type: AppType;
|
|
78
78
|
id: string;
|
|
79
|
-
tenantId: string | null;
|
|
80
|
-
createdAt: string;
|
|
81
79
|
name: string;
|
|
82
|
-
|
|
83
|
-
projectId: string | null;
|
|
80
|
+
createdAt: string;
|
|
84
81
|
updatedAt: string;
|
|
82
|
+
description: string | null;
|
|
85
83
|
enabled: boolean;
|
|
86
84
|
prompt: string | null;
|
|
85
|
+
tenantId: string | null;
|
|
86
|
+
projectId: string | null;
|
|
87
87
|
config: {
|
|
88
88
|
type: "web_client";
|
|
89
89
|
webClient: {
|
|
@@ -91,7 +91,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
91
91
|
publicKeys: {
|
|
92
92
|
kid: string;
|
|
93
93
|
publicKey: string;
|
|
94
|
-
algorithm: "
|
|
94
|
+
algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
|
|
95
95
|
addedAt: string;
|
|
96
96
|
}[];
|
|
97
97
|
allowAnonymous: boolean;
|
|
@@ -174,7 +174,7 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
174
174
|
publicKeys: {
|
|
175
175
|
kid: string;
|
|
176
176
|
publicKey: string;
|
|
177
|
-
algorithm: "
|
|
177
|
+
algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
|
|
178
178
|
addedAt: string;
|
|
179
179
|
}[];
|
|
180
180
|
allowAnonymous: boolean;
|