@inkeep/agents-core 0.58.17 → 0.58.19
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/client-exports.d.ts +4 -4
- package/dist/constants/models.d.ts +2 -0
- package/dist/constants/models.js +2 -0
- package/dist/data-access/index.d.ts +2 -2
- package/dist/data-access/index.js +2 -2
- package/dist/data-access/manage/agents.d.ts +48 -48
- package/dist/data-access/manage/artifactComponents.d.ts +14 -14
- package/dist/data-access/manage/contextConfigs.d.ts +20 -20
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/functionTools.d.ts +16 -16
- package/dist/data-access/manage/skills.d.ts +15 -15
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +24 -24
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- package/dist/data-access/runtime/apps.d.ts +29 -16
- package/dist/data-access/runtime/apps.js +14 -7
- package/dist/data-access/runtime/conversations.d.ts +16 -16
- package/dist/data-access/runtime/messages.d.ts +10 -7
- package/dist/data-access/runtime/messages.js +4 -1
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +3 -3
- package/dist/db/manage/manage-schema.d.ts +4 -4
- package/dist/db/runtime/runtime-schema.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/validation/schemas.d.ts +562 -580
- package/dist/validation/schemas.js +3 -3
- package/package.json +1 -1
|
@@ -8,13 +8,13 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
skillId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
name: string;
|
|
12
11
|
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
tenantId: string;
|
|
15
|
+
projectId: string;
|
|
13
16
|
createdAt: string;
|
|
14
17
|
updatedAt: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
|
-
description: string;
|
|
18
18
|
metadata: Record<string, string> | null;
|
|
19
19
|
content: string;
|
|
20
20
|
} | null>;
|
|
@@ -41,24 +41,24 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
41
41
|
};
|
|
42
42
|
}>;
|
|
43
43
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
44
|
-
name: string;
|
|
45
44
|
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
description: string;
|
|
47
|
+
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
46
49
|
createdAt: string;
|
|
47
50
|
updatedAt: string;
|
|
48
|
-
projectId: string;
|
|
49
|
-
tenantId: string;
|
|
50
|
-
description: string;
|
|
51
51
|
metadata: Record<string, string> | null;
|
|
52
52
|
content: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
55
|
-
name: string;
|
|
56
55
|
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
description: string;
|
|
58
|
+
tenantId: string;
|
|
59
|
+
projectId: string;
|
|
57
60
|
createdAt: string;
|
|
58
61
|
updatedAt: string;
|
|
59
|
-
projectId: string;
|
|
60
|
-
tenantId: string;
|
|
61
|
-
description: string;
|
|
62
62
|
metadata: Record<string, string> | null;
|
|
63
63
|
content: string;
|
|
64
64
|
}>;
|
|
@@ -92,11 +92,11 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
92
92
|
alwaysLoaded?: boolean;
|
|
93
93
|
}) => Promise<{
|
|
94
94
|
id: string;
|
|
95
|
+
tenantId: string;
|
|
96
|
+
projectId: string;
|
|
97
|
+
agentId: string;
|
|
95
98
|
createdAt: string;
|
|
96
99
|
updatedAt: string;
|
|
97
|
-
agentId: string;
|
|
98
|
-
projectId: string;
|
|
99
|
-
tenantId: string;
|
|
100
100
|
index: number;
|
|
101
101
|
alwaysLoaded: boolean;
|
|
102
102
|
subAgentId: string;
|
|
@@ -10,11 +10,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
+
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
agentId: string;
|
|
13
16
|
createdAt: string;
|
|
14
17
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
18
|
headers: Record<string, string> | null;
|
|
19
19
|
externalAgentId: string;
|
|
20
20
|
subAgentId: string;
|
|
@@ -45,11 +45,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
+
tenantId: string;
|
|
49
|
+
projectId: string;
|
|
50
|
+
agentId: string;
|
|
48
51
|
createdAt: string;
|
|
49
52
|
updatedAt: string;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
|
-
tenantId: string;
|
|
53
53
|
headers: Record<string, string> | null;
|
|
54
54
|
externalAgentId: string;
|
|
55
55
|
subAgentId: string;
|
|
@@ -58,11 +58,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
+
tenantId: string;
|
|
62
|
+
projectId: string;
|
|
63
|
+
agentId: string;
|
|
61
64
|
createdAt: string;
|
|
62
65
|
updatedAt: string;
|
|
63
|
-
agentId: string;
|
|
64
|
-
projectId: string;
|
|
65
|
-
tenantId: string;
|
|
66
66
|
headers: Record<string, string> | null;
|
|
67
67
|
externalAgentId: string;
|
|
68
68
|
subAgentId: string;
|
|
@@ -181,11 +181,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
181
181
|
};
|
|
182
182
|
}) => Promise<{
|
|
183
183
|
id: string;
|
|
184
|
+
tenantId: string;
|
|
185
|
+
projectId: string;
|
|
186
|
+
agentId: string;
|
|
184
187
|
createdAt: string;
|
|
185
188
|
updatedAt: string;
|
|
186
|
-
agentId: string;
|
|
187
|
-
projectId: string;
|
|
188
|
-
tenantId: string;
|
|
189
189
|
headers: Record<string, string> | null;
|
|
190
190
|
externalAgentId: string;
|
|
191
191
|
subAgentId: string;
|
|
@@ -198,11 +198,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
198
198
|
externalAgentId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
200
|
id: string;
|
|
201
|
+
tenantId: string;
|
|
202
|
+
projectId: string;
|
|
203
|
+
agentId: string;
|
|
201
204
|
createdAt: string;
|
|
202
205
|
updatedAt: string;
|
|
203
|
-
agentId: string;
|
|
204
|
-
projectId: string;
|
|
205
|
-
tenantId: string;
|
|
206
206
|
headers: Record<string, string> | null;
|
|
207
207
|
externalAgentId: string;
|
|
208
208
|
subAgentId: string;
|
|
@@ -219,11 +219,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
219
219
|
};
|
|
220
220
|
}) => Promise<{
|
|
221
221
|
id: string;
|
|
222
|
+
tenantId: string;
|
|
223
|
+
projectId: string;
|
|
224
|
+
agentId: string;
|
|
222
225
|
createdAt: string;
|
|
223
226
|
updatedAt: string;
|
|
224
|
-
agentId: string;
|
|
225
|
-
projectId: string;
|
|
226
|
-
tenantId: string;
|
|
227
227
|
headers: Record<string, string> | null;
|
|
228
228
|
externalAgentId: string;
|
|
229
229
|
subAgentId: string;
|
|
@@ -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
|
+
projectId: string;
|
|
15
|
+
agentId: string;
|
|
13
16
|
createdAt: string;
|
|
14
17
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
tenantId: 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
|
+
projectId: string;
|
|
50
|
+
agentId: string;
|
|
48
51
|
createdAt: string;
|
|
49
52
|
updatedAt: string;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
|
-
tenantId: 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
|
+
projectId: string;
|
|
63
|
+
agentId: string;
|
|
61
64
|
createdAt: string;
|
|
62
65
|
updatedAt: string;
|
|
63
|
-
agentId: string;
|
|
64
|
-
projectId: string;
|
|
65
|
-
tenantId: 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
|
+
projectId: string;
|
|
132
|
+
agentId: string;
|
|
130
133
|
createdAt: string;
|
|
131
134
|
updatedAt: string;
|
|
132
|
-
agentId: string;
|
|
133
|
-
projectId: string;
|
|
134
|
-
tenantId: 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
|
+
projectId: string;
|
|
151
|
+
agentId: string;
|
|
149
152
|
createdAt: string;
|
|
150
153
|
updatedAt: string;
|
|
151
|
-
agentId: string;
|
|
152
|
-
projectId: string;
|
|
153
|
-
tenantId: 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
|
+
projectId: string;
|
|
165
|
+
agentId: string;
|
|
163
166
|
createdAt: string;
|
|
164
167
|
updatedAt: string;
|
|
165
|
-
agentId: string;
|
|
166
|
-
projectId: string;
|
|
167
|
-
tenantId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -205,11 +205,11 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
207
|
id: string;
|
|
208
|
+
tenantId: string;
|
|
209
|
+
projectId: string;
|
|
210
|
+
agentId: string;
|
|
208
211
|
createdAt: string;
|
|
209
212
|
updatedAt: string;
|
|
210
|
-
agentId: string;
|
|
211
|
-
projectId: string;
|
|
212
|
-
tenantId: string;
|
|
213
213
|
toolId: string;
|
|
214
214
|
headers: Record<string, string> | null;
|
|
215
215
|
toolPolicies: Record<string, {
|
|
@@ -249,11 +249,11 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
251
|
id: string;
|
|
252
|
+
tenantId: string;
|
|
253
|
+
projectId: string;
|
|
254
|
+
agentId: string;
|
|
252
255
|
createdAt: string;
|
|
253
256
|
updatedAt: string;
|
|
254
|
-
agentId: string;
|
|
255
|
-
projectId: string;
|
|
256
|
-
tenantId: string;
|
|
257
257
|
toolId: string;
|
|
258
258
|
headers: Record<string, string> | null;
|
|
259
259
|
toolPolicies: Record<string, {
|
|
@@ -10,11 +10,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
+
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
agentId: string;
|
|
13
16
|
createdAt: string;
|
|
14
17
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
18
|
headers: Record<string, string> | null;
|
|
19
19
|
subAgentId: string;
|
|
20
20
|
targetAgentId: string;
|
|
@@ -45,11 +45,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
+
tenantId: string;
|
|
49
|
+
projectId: string;
|
|
50
|
+
agentId: string;
|
|
48
51
|
createdAt: string;
|
|
49
52
|
updatedAt: string;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
|
-
tenantId: string;
|
|
53
53
|
headers: Record<string, string> | null;
|
|
54
54
|
subAgentId: string;
|
|
55
55
|
targetAgentId: string;
|
|
@@ -58,11 +58,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
+
tenantId: string;
|
|
62
|
+
projectId: string;
|
|
63
|
+
agentId: string;
|
|
61
64
|
createdAt: string;
|
|
62
65
|
updatedAt: string;
|
|
63
|
-
agentId: string;
|
|
64
|
-
projectId: string;
|
|
65
|
-
tenantId: string;
|
|
66
66
|
headers: Record<string, string> | null;
|
|
67
67
|
subAgentId: string;
|
|
68
68
|
targetAgentId: string;
|
|
@@ -211,11 +211,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
211
211
|
};
|
|
212
212
|
}) => Promise<{
|
|
213
213
|
id: string;
|
|
214
|
+
tenantId: string;
|
|
215
|
+
projectId: string;
|
|
216
|
+
agentId: string;
|
|
214
217
|
createdAt: string;
|
|
215
218
|
updatedAt: string;
|
|
216
|
-
agentId: string;
|
|
217
|
-
projectId: string;
|
|
218
|
-
tenantId: string;
|
|
219
219
|
headers: Record<string, string> | null;
|
|
220
220
|
subAgentId: string;
|
|
221
221
|
targetAgentId: string;
|
|
@@ -228,11 +228,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
228
228
|
targetAgentId: string;
|
|
229
229
|
}) => Promise<{
|
|
230
230
|
id: string;
|
|
231
|
+
tenantId: string;
|
|
232
|
+
projectId: string;
|
|
233
|
+
agentId: string;
|
|
231
234
|
createdAt: string;
|
|
232
235
|
updatedAt: string;
|
|
233
|
-
agentId: string;
|
|
234
|
-
projectId: string;
|
|
235
|
-
tenantId: string;
|
|
236
236
|
headers: Record<string, string> | null;
|
|
237
237
|
subAgentId: string;
|
|
238
238
|
targetAgentId: string;
|
|
@@ -249,11 +249,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
249
249
|
};
|
|
250
250
|
}) => Promise<{
|
|
251
251
|
id: string;
|
|
252
|
+
tenantId: string;
|
|
253
|
+
projectId: string;
|
|
254
|
+
agentId: string;
|
|
252
255
|
createdAt: string;
|
|
253
256
|
updatedAt: string;
|
|
254
|
-
agentId: string;
|
|
255
|
-
projectId: string;
|
|
256
|
-
tenantId: string;
|
|
257
257
|
headers: Record<string, string> | null;
|
|
258
258
|
subAgentId: string;
|
|
259
259
|
targetAgentId: string;
|
|
@@ -9,14 +9,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
name: string;
|
|
13
12
|
id: string;
|
|
14
|
-
|
|
15
|
-
updatedAt: string;
|
|
16
|
-
agentId: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
13
|
+
name: string;
|
|
19
14
|
description: string | null;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
18
|
+
prompt: string | null;
|
|
19
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
20
20
|
models: {
|
|
21
21
|
base?: {
|
|
22
22
|
model?: string | undefined;
|
|
@@ -31,23 +31,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
31
31
|
providerOptions?: Record<string, any> | undefined;
|
|
32
32
|
} | undefined;
|
|
33
33
|
} | null;
|
|
34
|
-
prompt: string | null;
|
|
35
34
|
stopWhen: {
|
|
36
35
|
stepCountIs?: number | undefined;
|
|
37
36
|
} | null;
|
|
38
|
-
|
|
37
|
+
createdAt: string;
|
|
38
|
+
updatedAt: string;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
41
41
|
scopes: AgentScopeConfig;
|
|
42
42
|
}) => Promise<{
|
|
43
|
-
name: string;
|
|
44
43
|
id: string;
|
|
45
|
-
|
|
46
|
-
updatedAt: string;
|
|
47
|
-
agentId: string;
|
|
48
|
-
projectId: string;
|
|
49
|
-
tenantId: string;
|
|
44
|
+
name: string;
|
|
50
45
|
description: string | null;
|
|
46
|
+
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
48
|
+
agentId: string;
|
|
49
|
+
prompt: string | null;
|
|
50
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
51
51
|
models: {
|
|
52
52
|
base?: {
|
|
53
53
|
model?: string | undefined;
|
|
@@ -62,11 +62,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
62
62
|
providerOptions?: Record<string, any> | undefined;
|
|
63
63
|
} | undefined;
|
|
64
64
|
} | null;
|
|
65
|
-
prompt: string | null;
|
|
66
65
|
stopWhen: {
|
|
67
66
|
stepCountIs?: number | undefined;
|
|
68
67
|
} | null;
|
|
69
|
-
|
|
68
|
+
createdAt: string;
|
|
69
|
+
updatedAt: string;
|
|
70
70
|
}[]>;
|
|
71
71
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
72
72
|
scopes: AgentScopeConfig;
|
|
@@ -109,14 +109,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
109
109
|
};
|
|
110
110
|
}>;
|
|
111
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
|
-
name: string;
|
|
113
112
|
id: string;
|
|
114
|
-
|
|
115
|
-
updatedAt: string;
|
|
116
|
-
agentId: string;
|
|
117
|
-
projectId: string;
|
|
118
|
-
tenantId: string;
|
|
113
|
+
name: string;
|
|
119
114
|
description: string | null;
|
|
115
|
+
tenantId: string;
|
|
116
|
+
projectId: string;
|
|
117
|
+
agentId: string;
|
|
118
|
+
prompt: string | null;
|
|
119
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
120
120
|
models: {
|
|
121
121
|
base?: {
|
|
122
122
|
model?: string | undefined;
|
|
@@ -131,11 +131,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
131
131
|
providerOptions?: Record<string, any> | undefined;
|
|
132
132
|
} | undefined;
|
|
133
133
|
} | null;
|
|
134
|
-
prompt: string | null;
|
|
135
134
|
stopWhen: {
|
|
136
135
|
stepCountIs?: number | undefined;
|
|
137
136
|
} | null;
|
|
138
|
-
|
|
137
|
+
createdAt: string;
|
|
138
|
+
updatedAt: string;
|
|
139
139
|
}>;
|
|
140
140
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
141
141
|
scopes: AgentScopeConfig;
|
|
@@ -20,13 +20,13 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
-
name: string;
|
|
24
23
|
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
description: string | null;
|
|
26
|
+
tenantId: string;
|
|
27
|
+
projectId: string;
|
|
25
28
|
createdAt: string;
|
|
26
29
|
updatedAt: string;
|
|
27
|
-
projectId: string;
|
|
28
|
-
tenantId: string;
|
|
29
|
-
description: string | null;
|
|
30
30
|
headers: Record<string, string> | null;
|
|
31
31
|
config: {
|
|
32
32
|
type: "mcp";
|
|
@@ -78,13 +78,13 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
78
|
};
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
|
-
name: string;
|
|
82
81
|
id: string;
|
|
82
|
+
name: string;
|
|
83
|
+
description: string | null;
|
|
84
|
+
tenantId: string;
|
|
85
|
+
projectId: string;
|
|
83
86
|
createdAt: string;
|
|
84
87
|
updatedAt: string;
|
|
85
|
-
projectId: string;
|
|
86
|
-
tenantId: string;
|
|
87
|
-
description: string | null;
|
|
88
88
|
headers: Record<string, string> | null;
|
|
89
89
|
config: {
|
|
90
90
|
type: "mcp";
|
|
@@ -136,11 +136,11 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
138
|
id: string;
|
|
139
|
+
tenantId: string;
|
|
140
|
+
projectId: string;
|
|
141
|
+
agentId: string;
|
|
139
142
|
createdAt: string;
|
|
140
143
|
updatedAt: string;
|
|
141
|
-
agentId: string;
|
|
142
|
-
projectId: string;
|
|
143
|
-
tenantId: string;
|
|
144
144
|
toolId: string;
|
|
145
145
|
headers: Record<string, string> | null;
|
|
146
146
|
toolPolicies: Record<string, {
|
|
@@ -155,11 +155,11 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
157
|
id: string;
|
|
158
|
+
tenantId: string;
|
|
159
|
+
projectId: string;
|
|
160
|
+
agentId: string;
|
|
158
161
|
createdAt: string;
|
|
159
162
|
updatedAt: string;
|
|
160
|
-
agentId: string;
|
|
161
|
-
projectId: string;
|
|
162
|
-
tenantId: string;
|
|
163
163
|
toolId: string;
|
|
164
164
|
headers: Record<string, string> | null;
|
|
165
165
|
toolPolicies: Record<string, {
|
|
@@ -183,11 +183,11 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
185
|
id: string;
|
|
186
|
+
tenantId: string;
|
|
187
|
+
projectId: string;
|
|
188
|
+
agentId: string;
|
|
186
189
|
createdAt: string;
|
|
187
190
|
updatedAt: string;
|
|
188
|
-
agentId: string;
|
|
189
|
-
projectId: string;
|
|
190
|
-
tenantId: string;
|
|
191
191
|
toolId: string;
|
|
192
192
|
headers: Record<string, string> | null;
|
|
193
193
|
toolPolicies: Record<string, {
|
|
@@ -202,13 +202,13 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
202
202
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
|
-
name: string;
|
|
206
205
|
id: string;
|
|
206
|
+
name: string;
|
|
207
|
+
description: string | null;
|
|
208
|
+
tenantId: string;
|
|
209
|
+
projectId: string;
|
|
207
210
|
createdAt: string;
|
|
208
211
|
updatedAt: string;
|
|
209
|
-
projectId: string;
|
|
210
|
-
tenantId: string;
|
|
211
|
-
description: string | null;
|
|
212
212
|
headers: Record<string, string> | null;
|
|
213
213
|
config: {
|
|
214
214
|
type: "mcp";
|
|
@@ -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" | "header" | "body";
|
|
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" | "header" | "body";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -8,49 +8,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
name: string | null;
|
|
12
11
|
id: string;
|
|
12
|
+
name: string | null;
|
|
13
|
+
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
agentId: string;
|
|
13
16
|
createdAt: string;
|
|
14
17
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
18
|
expiresAt: string | null;
|
|
19
|
+
lastUsedAt: string | null;
|
|
19
20
|
publicId: string;
|
|
20
21
|
keyHash: string;
|
|
21
22
|
keyPrefix: string;
|
|
22
|
-
lastUsedAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
|
-
name: string | null;
|
|
26
25
|
id: string;
|
|
26
|
+
name: string | null;
|
|
27
|
+
tenantId: string;
|
|
28
|
+
projectId: string;
|
|
29
|
+
agentId: string;
|
|
27
30
|
createdAt: string;
|
|
28
31
|
updatedAt: string;
|
|
29
|
-
agentId: string;
|
|
30
|
-
projectId: string;
|
|
31
|
-
tenantId: string;
|
|
32
32
|
expiresAt: string | null;
|
|
33
|
+
lastUsedAt: string | null;
|
|
33
34
|
publicId: string;
|
|
34
35
|
keyHash: string;
|
|
35
36
|
keyPrefix: string;
|
|
36
|
-
lastUsedAt: 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
|
-
name: string | null;
|
|
43
42
|
id: string;
|
|
43
|
+
name: string | null;
|
|
44
|
+
tenantId: string;
|
|
45
|
+
projectId: string;
|
|
46
|
+
agentId: string;
|
|
44
47
|
createdAt: string;
|
|
45
48
|
updatedAt: string;
|
|
46
|
-
agentId: string;
|
|
47
|
-
projectId: string;
|
|
48
|
-
tenantId: string;
|
|
49
49
|
expiresAt: string | null;
|
|
50
|
+
lastUsedAt: string | null;
|
|
50
51
|
publicId: string;
|
|
51
52
|
keyHash: string;
|
|
52
53
|
keyPrefix: string;
|
|
53
|
-
lastUsedAt: string | null;
|
|
54
54
|
}[]>;
|
|
55
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
56
56
|
scopes: ProjectScopeConfig;
|
|
@@ -66,18 +66,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
};
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
|
-
name: string | null;
|
|
70
69
|
id: string;
|
|
70
|
+
name: string | null;
|
|
71
|
+
tenantId: string;
|
|
72
|
+
projectId: string;
|
|
73
|
+
agentId: string;
|
|
71
74
|
createdAt: string;
|
|
72
75
|
updatedAt: string;
|
|
73
|
-
agentId: string;
|
|
74
|
-
projectId: string;
|
|
75
|
-
tenantId: string;
|
|
76
76
|
expiresAt: string | null;
|
|
77
|
+
lastUsedAt: string | null;
|
|
77
78
|
publicId: string;
|
|
78
79
|
keyHash: string;
|
|
79
80
|
keyPrefix: string;
|
|
80
|
-
lastUsedAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|