@inkeep/agents-core 0.80.0 → 0.80.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 +137 -137
- package/dist/auth/auth.d.ts +9 -9
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/constants/otel-attributes.d.ts +3 -0
- package/dist/constants/otel-attributes.js +4 -1
- package/dist/data-access/manage/agents.d.ts +29 -29
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/skills.d.ts +14 -14
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +32 -32
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +27 -27
- package/dist/data-access/manage/triggers.d.ts +3 -3
- package/dist/data-access/runtime/apiKeys.d.ts +24 -24
- package/dist/data-access/runtime/apps.d.ts +14 -14
- package/dist/data-access/runtime/conversations.d.ts +32 -32
- package/dist/data-access/runtime/events.d.ts +6 -6
- package/dist/data-access/runtime/feedback.d.ts +8 -8
- package/dist/data-access/runtime/messages.d.ts +30 -30
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +5 -5
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +2 -2
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +504 -504
- package/dist/db/runtime/runtime-schema.d.ts +452 -452
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/schemas/skills.d.ts +27 -27
- package/dist/validation/schemas.d.ts +2142 -2138
- package/dist/validation/schemas.js +1 -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;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
subAgentId: string;
|
|
18
14
|
updatedAt: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
19
18
|
headers: Record<string, string> | null;
|
|
19
|
+
subAgentId: string;
|
|
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;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
|
-
subAgentId: string;
|
|
53
49
|
updatedAt: string;
|
|
50
|
+
tenantId: string;
|
|
51
|
+
projectId: string;
|
|
52
|
+
agentId: string;
|
|
54
53
|
headers: Record<string, string> | null;
|
|
54
|
+
subAgentId: string;
|
|
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;
|
|
63
|
-
agentId: string;
|
|
64
|
-
projectId: string;
|
|
65
|
-
subAgentId: string;
|
|
66
62
|
updatedAt: string;
|
|
63
|
+
tenantId: string;
|
|
64
|
+
projectId: string;
|
|
65
|
+
agentId: string;
|
|
67
66
|
headers: Record<string, string> | null;
|
|
67
|
+
subAgentId: string;
|
|
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;
|
|
192
|
-
agentId: string;
|
|
193
|
-
projectId: string;
|
|
194
|
-
subAgentId: string;
|
|
195
191
|
updatedAt: string;
|
|
192
|
+
tenantId: string;
|
|
193
|
+
projectId: string;
|
|
194
|
+
agentId: string;
|
|
196
195
|
headers: Record<string, string> | null;
|
|
196
|
+
subAgentId: string;
|
|
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;
|
|
209
|
-
agentId: string;
|
|
210
|
-
projectId: string;
|
|
211
|
-
subAgentId: string;
|
|
212
208
|
updatedAt: string;
|
|
209
|
+
tenantId: string;
|
|
210
|
+
projectId: string;
|
|
211
|
+
agentId: string;
|
|
213
212
|
headers: Record<string, string> | null;
|
|
213
|
+
subAgentId: string;
|
|
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;
|
|
230
|
-
agentId: string;
|
|
231
|
-
projectId: string;
|
|
232
|
-
subAgentId: string;
|
|
233
229
|
updatedAt: string;
|
|
230
|
+
tenantId: string;
|
|
231
|
+
projectId: string;
|
|
232
|
+
agentId: string;
|
|
234
233
|
headers: Record<string, string> | null;
|
|
234
|
+
subAgentId: string;
|
|
235
235
|
externalAgentId: string;
|
|
236
236
|
}>;
|
|
237
237
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -10,14 +10,14 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
tenantId: string;
|
|
14
13
|
createdAt: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
14
|
updatedAt: string;
|
|
18
|
-
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
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;
|
|
@@ -45,27 +45,27 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
-
tenantId: string;
|
|
49
48
|
createdAt: string;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
49
|
updatedAt: string;
|
|
53
|
-
|
|
50
|
+
tenantId: string;
|
|
51
|
+
projectId: string;
|
|
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;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
-
tenantId: string;
|
|
62
61
|
createdAt: string;
|
|
63
|
-
agentId: string;
|
|
64
|
-
projectId: string;
|
|
65
62
|
updatedAt: string;
|
|
66
|
-
|
|
63
|
+
tenantId: string;
|
|
64
|
+
projectId: string;
|
|
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;
|
|
@@ -127,14 +127,14 @@ 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;
|
|
132
|
-
agentId: string;
|
|
133
|
-
projectId: string;
|
|
134
131
|
updatedAt: string;
|
|
135
|
-
|
|
132
|
+
tenantId: string;
|
|
133
|
+
projectId: string;
|
|
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
|
|
@@ -146,28 +146,28 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
148
|
id: string;
|
|
149
|
-
tenantId: string;
|
|
150
149
|
createdAt: string;
|
|
151
|
-
agentId: string;
|
|
152
|
-
projectId: string;
|
|
153
150
|
updatedAt: string;
|
|
154
|
-
|
|
151
|
+
tenantId: string;
|
|
152
|
+
projectId: string;
|
|
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)
|
|
160
160
|
*/
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
162
|
id: string;
|
|
163
|
-
tenantId: string;
|
|
164
163
|
createdAt: string;
|
|
165
|
-
agentId: string;
|
|
166
|
-
projectId: string;
|
|
167
164
|
updatedAt: string;
|
|
168
|
-
|
|
165
|
+
tenantId: string;
|
|
166
|
+
projectId: string;
|
|
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;
|
|
@@ -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;
|
|
210
|
-
|
|
209
|
+
updatedAt: string;
|
|
210
|
+
tenantId: string;
|
|
211
211
|
projectId: string;
|
|
212
|
-
|
|
212
|
+
agentId: string;
|
|
213
213
|
toolId: string;
|
|
214
|
-
updatedAt: string;
|
|
215
214
|
headers: Record<string, string> | null;
|
|
215
|
+
subAgentId: string;
|
|
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;
|
|
254
|
-
|
|
253
|
+
updatedAt: string;
|
|
254
|
+
tenantId: string;
|
|
255
255
|
projectId: string;
|
|
256
|
-
|
|
256
|
+
agentId: string;
|
|
257
257
|
toolId: string;
|
|
258
|
-
updatedAt: string;
|
|
259
258
|
headers: Record<string, string> | null;
|
|
259
|
+
subAgentId: string;
|
|
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;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
subAgentId: string;
|
|
18
14
|
updatedAt: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
19
18
|
headers: Record<string, string> | null;
|
|
19
|
+
subAgentId: string;
|
|
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;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
|
-
subAgentId: string;
|
|
53
49
|
updatedAt: string;
|
|
50
|
+
tenantId: string;
|
|
51
|
+
projectId: string;
|
|
52
|
+
agentId: string;
|
|
54
53
|
headers: Record<string, string> | null;
|
|
54
|
+
subAgentId: string;
|
|
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;
|
|
63
|
-
agentId: string;
|
|
64
|
-
projectId: string;
|
|
65
|
-
subAgentId: string;
|
|
66
62
|
updatedAt: string;
|
|
63
|
+
tenantId: string;
|
|
64
|
+
projectId: string;
|
|
65
|
+
agentId: string;
|
|
67
66
|
headers: Record<string, string> | null;
|
|
67
|
+
subAgentId: string;
|
|
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;
|
|
228
|
-
agentId: string;
|
|
229
|
-
projectId: string;
|
|
230
|
-
subAgentId: string;
|
|
231
227
|
updatedAt: string;
|
|
228
|
+
tenantId: string;
|
|
229
|
+
projectId: string;
|
|
230
|
+
agentId: string;
|
|
232
231
|
headers: Record<string, string> | null;
|
|
232
|
+
subAgentId: string;
|
|
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;
|
|
245
|
-
agentId: string;
|
|
246
|
-
projectId: string;
|
|
247
|
-
subAgentId: string;
|
|
248
244
|
updatedAt: string;
|
|
245
|
+
tenantId: string;
|
|
246
|
+
projectId: string;
|
|
247
|
+
agentId: string;
|
|
249
248
|
headers: Record<string, string> | null;
|
|
249
|
+
subAgentId: string;
|
|
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;
|
|
266
|
-
agentId: string;
|
|
267
|
-
projectId: string;
|
|
268
|
-
subAgentId: string;
|
|
269
265
|
updatedAt: string;
|
|
266
|
+
tenantId: string;
|
|
267
|
+
projectId: string;
|
|
268
|
+
agentId: string;
|
|
270
269
|
headers: Record<string, string> | null;
|
|
270
|
+
subAgentId: string;
|
|
271
271
|
targetAgentId: string;
|
|
272
272
|
}>;
|
|
273
273
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -10,13 +10,8 @@ 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;
|
|
16
14
|
description: string | null;
|
|
17
|
-
agentId: string;
|
|
18
|
-
projectId: string;
|
|
19
|
-
updatedAt: string;
|
|
20
15
|
models: {
|
|
21
16
|
base?: {
|
|
22
17
|
model?: string | undefined;
|
|
@@ -40,7 +35,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
40
35
|
stopWhen: {
|
|
41
36
|
stepCountIs?: number | undefined;
|
|
42
37
|
} | null;
|
|
38
|
+
createdAt: string;
|
|
39
|
+
updatedAt: string;
|
|
40
|
+
tenantId: string;
|
|
43
41
|
prompt: string | null;
|
|
42
|
+
projectId: string;
|
|
43
|
+
agentId: string;
|
|
44
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
45
45
|
outputContract: {
|
|
46
46
|
[x: string]: unknown;
|
|
@@ -56,13 +56,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
57
57
|
}) => Promise<{
|
|
58
58
|
id: string;
|
|
59
|
-
tenantId: string;
|
|
60
|
-
createdAt: string;
|
|
61
59
|
name: string;
|
|
62
60
|
description: string | null;
|
|
63
|
-
agentId: string;
|
|
64
|
-
projectId: string;
|
|
65
|
-
updatedAt: string;
|
|
66
61
|
models: {
|
|
67
62
|
base?: {
|
|
68
63
|
model?: string | undefined;
|
|
@@ -86,7 +81,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
86
81
|
stopWhen: {
|
|
87
82
|
stepCountIs?: number | undefined;
|
|
88
83
|
} | null;
|
|
84
|
+
createdAt: string;
|
|
85
|
+
updatedAt: string;
|
|
86
|
+
tenantId: string;
|
|
89
87
|
prompt: string | null;
|
|
88
|
+
projectId: string;
|
|
89
|
+
agentId: string;
|
|
90
90
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
91
91
|
outputContract: {
|
|
92
92
|
[x: string]: unknown;
|
|
@@ -155,13 +155,8 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
155
155
|
}>;
|
|
156
156
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
157
157
|
id: string;
|
|
158
|
-
tenantId: string;
|
|
159
|
-
createdAt: string;
|
|
160
158
|
name: string;
|
|
161
159
|
description: string | null;
|
|
162
|
-
agentId: string;
|
|
163
|
-
projectId: string;
|
|
164
|
-
updatedAt: string;
|
|
165
160
|
models: {
|
|
166
161
|
base?: {
|
|
167
162
|
model?: string | undefined;
|
|
@@ -185,7 +180,12 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
185
180
|
stopWhen: {
|
|
186
181
|
stepCountIs?: number | undefined;
|
|
187
182
|
} | null;
|
|
183
|
+
createdAt: string;
|
|
184
|
+
updatedAt: string;
|
|
185
|
+
tenantId: string;
|
|
188
186
|
prompt: string | null;
|
|
187
|
+
projectId: string;
|
|
188
|
+
agentId: string;
|
|
189
189
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
190
190
|
outputContract: {
|
|
191
191
|
[x: string]: unknown;
|
|
@@ -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;
|
|
27
25
|
description: string | null;
|
|
28
|
-
|
|
26
|
+
createdAt: string;
|
|
29
27
|
updatedAt: string;
|
|
28
|
+
tenantId: string;
|
|
29
|
+
projectId: string;
|
|
30
|
+
headers: Record<string, string> | null;
|
|
31
|
+
credentialReferenceId: string | null;
|
|
30
32
|
config: {
|
|
31
33
|
type: "mcp";
|
|
32
34
|
mcp: ToolMcpConfig;
|
|
33
35
|
};
|
|
34
|
-
credentialReferenceId: string | null;
|
|
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;
|
|
85
83
|
description: string | null;
|
|
86
|
-
|
|
84
|
+
createdAt: string;
|
|
87
85
|
updatedAt: string;
|
|
86
|
+
tenantId: string;
|
|
87
|
+
projectId: string;
|
|
88
|
+
headers: Record<string, string> | null;
|
|
89
|
+
credentialReferenceId: string | null;
|
|
88
90
|
config: {
|
|
89
91
|
type: "mcp";
|
|
90
92
|
mcp: ToolMcpConfig;
|
|
91
93
|
};
|
|
92
|
-
credentialReferenceId: string | null;
|
|
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;
|
|
141
|
-
|
|
140
|
+
updatedAt: string;
|
|
141
|
+
tenantId: string;
|
|
142
142
|
projectId: string;
|
|
143
|
-
|
|
143
|
+
agentId: string;
|
|
144
144
|
toolId: string;
|
|
145
|
-
updatedAt: string;
|
|
146
145
|
headers: Record<string, string> | null;
|
|
146
|
+
subAgentId: string;
|
|
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;
|
|
160
|
-
|
|
159
|
+
updatedAt: string;
|
|
160
|
+
tenantId: string;
|
|
161
161
|
projectId: string;
|
|
162
|
-
|
|
162
|
+
agentId: string;
|
|
163
163
|
toolId: string;
|
|
164
|
-
updatedAt: string;
|
|
165
164
|
headers: Record<string, string> | null;
|
|
165
|
+
subAgentId: string;
|
|
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;
|
|
188
|
-
|
|
187
|
+
updatedAt: string;
|
|
188
|
+
tenantId: string;
|
|
189
189
|
projectId: string;
|
|
190
|
-
|
|
190
|
+
agentId: string;
|
|
191
191
|
toolId: string;
|
|
192
|
-
updatedAt: string;
|
|
193
192
|
headers: Record<string, string> | null;
|
|
193
|
+
subAgentId: string;
|
|
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;
|
|
209
207
|
description: string | null;
|
|
210
|
-
|
|
208
|
+
createdAt: string;
|
|
211
209
|
updatedAt: string;
|
|
210
|
+
tenantId: string;
|
|
211
|
+
projectId: string;
|
|
212
|
+
headers: Record<string, string> | null;
|
|
213
|
+
credentialReferenceId: string | null;
|
|
212
214
|
config: {
|
|
213
215
|
type: "mcp";
|
|
214
216
|
mcp: ToolMcpConfig;
|
|
215
217
|
};
|
|
216
|
-
credentialReferenceId: string | null;
|
|
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,7 +40,7 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
40
40
|
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
41
41
|
encoding: "hex" | "base64";
|
|
42
42
|
signature: {
|
|
43
|
-
source: "
|
|
43
|
+
source: "header" | "query" | "body";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
@@ -131,10 +131,10 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
131
131
|
triggerId: string;
|
|
132
132
|
userId: string;
|
|
133
133
|
}) => Promise<{
|
|
134
|
-
tenantId: string;
|
|
135
134
|
createdAt: string;
|
|
136
|
-
|
|
135
|
+
tenantId: string;
|
|
137
136
|
projectId: string;
|
|
137
|
+
agentId: string;
|
|
138
138
|
userId: string;
|
|
139
139
|
triggerId: string;
|
|
140
140
|
}>;
|
|
@@ -9,48 +9,48 @@ 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
|
-
projectId: string;
|
|
13
|
+
createdAt: string;
|
|
17
14
|
updatedAt: string;
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
20
18
|
publicId: string;
|
|
21
19
|
keyHash: string;
|
|
22
20
|
keyPrefix: string;
|
|
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
|
-
tenantId: string;
|
|
27
|
-
createdAt: string;
|
|
28
26
|
name: string | null;
|
|
29
|
-
|
|
30
|
-
projectId: string;
|
|
27
|
+
createdAt: string;
|
|
31
28
|
updatedAt: string;
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
tenantId: string;
|
|
30
|
+
projectId: string;
|
|
31
|
+
agentId: string;
|
|
34
32
|
publicId: string;
|
|
35
33
|
keyHash: string;
|
|
36
34
|
keyPrefix: string;
|
|
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
|
-
tenantId: string;
|
|
44
|
-
createdAt: string;
|
|
45
43
|
name: string | null;
|
|
46
|
-
|
|
47
|
-
projectId: string;
|
|
44
|
+
createdAt: string;
|
|
48
45
|
updatedAt: string;
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
48
|
+
agentId: string;
|
|
51
49
|
publicId: string;
|
|
52
50
|
keyHash: string;
|
|
53
51
|
keyPrefix: string;
|
|
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
|
-
tenantId: string;
|
|
71
|
-
createdAt: string;
|
|
72
70
|
name: string | null;
|
|
73
|
-
|
|
74
|
-
projectId: string;
|
|
71
|
+
createdAt: string;
|
|
75
72
|
updatedAt: string;
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
tenantId: string;
|
|
74
|
+
projectId: string;
|
|
75
|
+
agentId: string;
|
|
78
76
|
publicId: string;
|
|
79
77
|
keyHash: string;
|
|
80
78
|
keyPrefix: string;
|
|
79
|
+
lastUsedAt: string | null;
|
|
80
|
+
expiresAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|