@inkeep/agents-core 0.72.0 → 0.72.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.d.ts +122 -122
- package/dist/auth/password-policy.d.ts +2 -2
- package/dist/auth/permissions.d.ts +13 -13
- 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 +32 -32
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- 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/skills.d.ts +9 -9
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +24 -24
- package/dist/data-access/manage/triggers.d.ts +4 -4
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +13 -13
- package/dist/data-access/runtime/cascade-delete.d.ts +14 -3
- package/dist/data-access/runtime/cascade-delete.js +30 -7
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/conversations.js +13 -1
- package/dist/data-access/runtime/events.d.ts +7 -3
- package/dist/data-access/runtime/events.js +6 -2
- package/dist/data-access/runtime/messages.d.ts +6 -6
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/manage-schema.d.ts +381 -381
- package/dist/db/runtime/runtime-schema.d.ts +413 -413
- package/dist/db/runtime/runtime-schema.js +1 -27
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/schemas/skills.d.ts +42 -42
- package/dist/validation/schemas.d.ts +702 -702
- package/drizzle/runtime/0041_salty_wilson_fisk.sql +3 -0
- package/drizzle/runtime/meta/0041_snapshot.json +6298 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +1 -1
|
@@ -54,13 +54,13 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
56
|
id: string;
|
|
57
|
-
createdAt: string;
|
|
58
57
|
name: string;
|
|
58
|
+
createdAt: string;
|
|
59
59
|
updatedAt: string;
|
|
60
|
-
|
|
60
|
+
description: string | null;
|
|
61
61
|
projectId: string;
|
|
62
62
|
tenantId: string;
|
|
63
|
-
|
|
63
|
+
agentId: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -96,13 +96,13 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
98
|
id: string;
|
|
99
|
-
createdAt: string;
|
|
100
99
|
name: string;
|
|
100
|
+
createdAt: string;
|
|
101
101
|
updatedAt: string;
|
|
102
|
-
|
|
102
|
+
description: string | null;
|
|
103
103
|
projectId: string;
|
|
104
104
|
tenantId: string;
|
|
105
|
-
|
|
105
|
+
agentId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -160,14 +160,14 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
160
160
|
id: string;
|
|
161
161
|
createdAt: string;
|
|
162
162
|
updatedAt: string;
|
|
163
|
-
agentId: string;
|
|
164
163
|
projectId: string;
|
|
165
164
|
tenantId: string;
|
|
165
|
+
agentId: string;
|
|
166
166
|
subAgentId: string;
|
|
167
|
-
functionToolId: string;
|
|
168
167
|
toolPolicies: Record<string, {
|
|
169
168
|
needsApproval?: boolean;
|
|
170
169
|
}> | null;
|
|
170
|
+
functionToolId: string;
|
|
171
171
|
}>;
|
|
172
172
|
/**
|
|
173
173
|
* Update an agent-function tool relation
|
|
@@ -225,14 +225,14 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
225
225
|
id: string;
|
|
226
226
|
createdAt: string;
|
|
227
227
|
updatedAt: string;
|
|
228
|
-
agentId: string;
|
|
229
228
|
projectId: string;
|
|
230
229
|
tenantId: string;
|
|
230
|
+
agentId: string;
|
|
231
231
|
subAgentId: string;
|
|
232
|
-
functionToolId: string;
|
|
233
232
|
toolPolicies: Record<string, {
|
|
234
233
|
needsApproval?: boolean;
|
|
235
234
|
}> | null;
|
|
235
|
+
functionToolId: string;
|
|
236
236
|
}>;
|
|
237
237
|
//#endregion
|
|
238
238
|
export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
|
|
@@ -16,13 +16,13 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
16
16
|
skillId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
18
|
id: string;
|
|
19
|
-
createdAt: string;
|
|
20
19
|
name: string;
|
|
20
|
+
createdAt: string;
|
|
21
21
|
updatedAt: string;
|
|
22
|
+
metadata: Record<string, string> | null;
|
|
23
|
+
description: string;
|
|
22
24
|
projectId: string;
|
|
23
25
|
tenantId: string;
|
|
24
|
-
description: string;
|
|
25
|
-
metadata: Record<string, string> | null;
|
|
26
26
|
content: string;
|
|
27
27
|
} | null>;
|
|
28
28
|
declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -111,13 +111,13 @@ interface WithTenantIdProjectId {
|
|
|
111
111
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
|
|
112
112
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
|
|
113
113
|
id: string;
|
|
114
|
-
createdAt: string;
|
|
115
114
|
name: string;
|
|
115
|
+
createdAt: string;
|
|
116
116
|
updatedAt: string;
|
|
117
|
+
metadata: Record<string, string> | null;
|
|
118
|
+
description: string;
|
|
117
119
|
projectId: string;
|
|
118
120
|
tenantId: string;
|
|
119
|
-
description: string;
|
|
120
|
-
metadata: Record<string, string> | null;
|
|
121
121
|
content: string;
|
|
122
122
|
}>;
|
|
123
123
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -142,13 +142,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
142
142
|
id: string;
|
|
143
143
|
createdAt: string;
|
|
144
144
|
updatedAt: string;
|
|
145
|
-
agentId: string;
|
|
146
145
|
projectId: string;
|
|
147
146
|
tenantId: string;
|
|
148
|
-
|
|
147
|
+
agentId: string;
|
|
148
|
+
skillId: string;
|
|
149
149
|
index: number;
|
|
150
150
|
alwaysLoaded: boolean;
|
|
151
|
-
|
|
151
|
+
subAgentId: string;
|
|
152
152
|
}>;
|
|
153
153
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
154
154
|
scopes: AgentScopeConfig;
|
|
@@ -12,11 +12,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
|
|
15
|
+
headers: Record<string, string> | null;
|
|
16
16
|
projectId: string;
|
|
17
17
|
tenantId: string;
|
|
18
|
+
agentId: string;
|
|
18
19
|
subAgentId: string;
|
|
19
|
-
headers: Record<string, string> | null;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -47,11 +47,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
|
|
50
|
+
headers: Record<string, string> | null;
|
|
51
51
|
projectId: string;
|
|
52
52
|
tenantId: string;
|
|
53
|
+
agentId: string;
|
|
53
54
|
subAgentId: string;
|
|
54
|
-
headers: Record<string, string> | null;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -60,11 +60,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
|
|
63
|
+
headers: Record<string, string> | null;
|
|
64
64
|
projectId: string;
|
|
65
65
|
tenantId: string;
|
|
66
|
+
agentId: string;
|
|
66
67
|
subAgentId: string;
|
|
67
|
-
headers: Record<string, string> | null;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -189,11 +189,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
189
189
|
id: string;
|
|
190
190
|
createdAt: string;
|
|
191
191
|
updatedAt: string;
|
|
192
|
-
|
|
192
|
+
headers: Record<string, string> | null;
|
|
193
193
|
projectId: string;
|
|
194
194
|
tenantId: string;
|
|
195
|
+
agentId: string;
|
|
195
196
|
subAgentId: string;
|
|
196
|
-
headers: Record<string, string> | null;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
@@ -206,11 +206,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
206
206
|
id: string;
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
|
-
|
|
209
|
+
headers: Record<string, string> | null;
|
|
210
210
|
projectId: string;
|
|
211
211
|
tenantId: string;
|
|
212
|
+
agentId: string;
|
|
212
213
|
subAgentId: string;
|
|
213
|
-
headers: Record<string, string> | null;
|
|
214
214
|
externalAgentId: string;
|
|
215
215
|
} | undefined>;
|
|
216
216
|
/**
|
|
@@ -227,11 +227,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
227
227
|
id: string;
|
|
228
228
|
createdAt: string;
|
|
229
229
|
updatedAt: string;
|
|
230
|
-
|
|
230
|
+
headers: Record<string, string> | null;
|
|
231
231
|
projectId: string;
|
|
232
232
|
tenantId: string;
|
|
233
|
+
agentId: string;
|
|
233
234
|
subAgentId: string;
|
|
234
|
-
headers: Record<string, string> | null;
|
|
235
235
|
externalAgentId: string;
|
|
236
236
|
}>;
|
|
237
237
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -12,9 +12,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
15
|
projectId: string;
|
|
17
16
|
tenantId: string;
|
|
17
|
+
agentId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -47,9 +47,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
agentId: string;
|
|
51
50
|
projectId: string;
|
|
52
51
|
tenantId: string;
|
|
52
|
+
agentId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -60,9 +60,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
agentId: string;
|
|
64
63
|
projectId: string;
|
|
65
64
|
tenantId: string;
|
|
65
|
+
agentId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -129,9 +129,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
129
129
|
id: string;
|
|
130
130
|
createdAt: string;
|
|
131
131
|
updatedAt: string;
|
|
132
|
-
agentId: string;
|
|
133
132
|
projectId: string;
|
|
134
133
|
tenantId: string;
|
|
134
|
+
agentId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -148,9 +148,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
148
148
|
id: string;
|
|
149
149
|
createdAt: string;
|
|
150
150
|
updatedAt: string;
|
|
151
|
-
agentId: string;
|
|
152
151
|
projectId: string;
|
|
153
152
|
tenantId: string;
|
|
153
|
+
agentId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -162,9 +162,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
162
162
|
id: string;
|
|
163
163
|
createdAt: string;
|
|
164
164
|
updatedAt: string;
|
|
165
|
-
agentId: string;
|
|
166
165
|
projectId: string;
|
|
167
166
|
tenantId: string;
|
|
167
|
+
agentId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -207,16 +207,16 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
207
207
|
id: string;
|
|
208
208
|
createdAt: string;
|
|
209
209
|
updatedAt: string;
|
|
210
|
-
|
|
210
|
+
headers: Record<string, string> | null;
|
|
211
211
|
projectId: string;
|
|
212
212
|
tenantId: string;
|
|
213
|
-
subAgentId: string;
|
|
214
213
|
toolId: string;
|
|
215
|
-
|
|
214
|
+
agentId: string;
|
|
215
|
+
subAgentId: string;
|
|
216
|
+
selectedTools: string[] | null;
|
|
216
217
|
toolPolicies: Record<string, {
|
|
217
218
|
needsApproval?: boolean;
|
|
218
219
|
}> | null;
|
|
219
|
-
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
222
222
|
scopes: AgentScopeConfig;
|
|
@@ -251,16 +251,16 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
251
251
|
id: string;
|
|
252
252
|
createdAt: string;
|
|
253
253
|
updatedAt: string;
|
|
254
|
-
|
|
254
|
+
headers: Record<string, string> | null;
|
|
255
255
|
projectId: string;
|
|
256
256
|
tenantId: string;
|
|
257
|
-
subAgentId: string;
|
|
258
257
|
toolId: string;
|
|
259
|
-
|
|
258
|
+
agentId: string;
|
|
259
|
+
subAgentId: string;
|
|
260
|
+
selectedTools: string[] | null;
|
|
260
261
|
toolPolicies: Record<string, {
|
|
261
262
|
needsApproval?: boolean;
|
|
262
263
|
}> | null;
|
|
263
|
-
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
266
266
|
scopes: SubAgentScopeConfig;
|
|
@@ -12,11 +12,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
|
|
15
|
+
headers: Record<string, string> | null;
|
|
16
16
|
projectId: string;
|
|
17
17
|
tenantId: 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
|
-
|
|
50
|
+
headers: Record<string, string> | null;
|
|
51
51
|
projectId: string;
|
|
52
52
|
tenantId: 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
|
-
|
|
63
|
+
headers: Record<string, string> | null;
|
|
64
64
|
projectId: string;
|
|
65
65
|
tenantId: 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: {
|
|
@@ -225,11 +225,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
225
225
|
id: string;
|
|
226
226
|
createdAt: string;
|
|
227
227
|
updatedAt: string;
|
|
228
|
-
|
|
228
|
+
headers: Record<string, string> | null;
|
|
229
229
|
projectId: string;
|
|
230
230
|
tenantId: string;
|
|
231
|
+
agentId: string;
|
|
231
232
|
subAgentId: string;
|
|
232
|
-
headers: Record<string, string> | null;
|
|
233
233
|
targetAgentId: string;
|
|
234
234
|
}>;
|
|
235
235
|
/**
|
|
@@ -242,11 +242,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
242
242
|
id: string;
|
|
243
243
|
createdAt: string;
|
|
244
244
|
updatedAt: string;
|
|
245
|
-
|
|
245
|
+
headers: Record<string, string> | null;
|
|
246
246
|
projectId: string;
|
|
247
247
|
tenantId: string;
|
|
248
|
+
agentId: string;
|
|
248
249
|
subAgentId: string;
|
|
249
|
-
headers: Record<string, string> | null;
|
|
250
250
|
targetAgentId: string;
|
|
251
251
|
} | undefined>;
|
|
252
252
|
/**
|
|
@@ -263,11 +263,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
263
263
|
id: string;
|
|
264
264
|
createdAt: string;
|
|
265
265
|
updatedAt: string;
|
|
266
|
-
|
|
266
|
+
headers: Record<string, string> | null;
|
|
267
267
|
projectId: string;
|
|
268
268
|
tenantId: string;
|
|
269
|
+
agentId: string;
|
|
269
270
|
subAgentId: string;
|
|
270
|
-
headers: Record<string, string> | null;
|
|
271
271
|
targetAgentId: string;
|
|
272
272
|
}>;
|
|
273
273
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -10,13 +10,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
createdAt: string;
|
|
14
13
|
name: string;
|
|
14
|
+
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
|
-
|
|
16
|
+
description: string | null;
|
|
17
17
|
projectId: string;
|
|
18
18
|
tenantId: string;
|
|
19
|
-
description: string | null;
|
|
20
19
|
models: {
|
|
21
20
|
base?: {
|
|
22
21
|
model?: string | undefined;
|
|
@@ -37,23 +36,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
37
36
|
allowedProviders?: string[] | undefined;
|
|
38
37
|
} | undefined;
|
|
39
38
|
} | null;
|
|
40
|
-
prompt: string | null;
|
|
41
39
|
stopWhen: {
|
|
42
40
|
stepCountIs?: number | undefined;
|
|
43
41
|
} | null;
|
|
42
|
+
prompt: string | null;
|
|
43
|
+
agentId: string;
|
|
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
|
-
createdAt: string;
|
|
51
50
|
name: string;
|
|
51
|
+
createdAt: string;
|
|
52
52
|
updatedAt: string;
|
|
53
|
-
|
|
53
|
+
description: string | null;
|
|
54
54
|
projectId: string;
|
|
55
55
|
tenantId: string;
|
|
56
|
-
description: string | null;
|
|
57
56
|
models: {
|
|
58
57
|
base?: {
|
|
59
58
|
model?: string | undefined;
|
|
@@ -74,10 +73,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
74
73
|
allowedProviders?: string[] | undefined;
|
|
75
74
|
} | undefined;
|
|
76
75
|
} | null;
|
|
77
|
-
prompt: string | null;
|
|
78
76
|
stopWhen: {
|
|
79
77
|
stepCountIs?: number | undefined;
|
|
80
78
|
} | null;
|
|
79
|
+
prompt: string | null;
|
|
80
|
+
agentId: string;
|
|
81
81
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
82
82
|
}[]>;
|
|
83
83
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -128,13 +128,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
128
128
|
}>;
|
|
129
129
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
130
130
|
id: string;
|
|
131
|
-
createdAt: string;
|
|
132
131
|
name: string;
|
|
132
|
+
createdAt: string;
|
|
133
133
|
updatedAt: string;
|
|
134
|
-
|
|
134
|
+
description: string | null;
|
|
135
135
|
projectId: string;
|
|
136
136
|
tenantId: string;
|
|
137
|
-
description: string | null;
|
|
138
137
|
models: {
|
|
139
138
|
base?: {
|
|
140
139
|
model?: string | undefined;
|
|
@@ -155,10 +154,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
155
154
|
allowedProviders?: string[] | undefined;
|
|
156
155
|
} | undefined;
|
|
157
156
|
} | null;
|
|
158
|
-
prompt: string | null;
|
|
159
157
|
stopWhen: {
|
|
160
158
|
stepCountIs?: number | undefined;
|
|
161
159
|
} | null;
|
|
160
|
+
prompt: string | null;
|
|
161
|
+
agentId: string;
|
|
162
162
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
163
163
|
}>;
|
|
164
164
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -21,23 +21,23 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
23
|
id: string;
|
|
24
|
-
createdAt: string;
|
|
25
24
|
name: string;
|
|
25
|
+
createdAt: string;
|
|
26
26
|
updatedAt: string;
|
|
27
|
-
projectId: string;
|
|
28
|
-
tenantId: string;
|
|
29
27
|
description: string | null;
|
|
30
|
-
headers: Record<string, string> | null;
|
|
31
28
|
config: {
|
|
32
29
|
type: "mcp";
|
|
33
30
|
mcp: ToolMcpConfig;
|
|
34
31
|
};
|
|
35
32
|
credentialReferenceId: string | null;
|
|
36
33
|
credentialScope: string;
|
|
34
|
+
headers: Record<string, string> | null;
|
|
37
35
|
imageUrl: string | null;
|
|
38
36
|
capabilities: ToolServerCapabilities | null;
|
|
39
37
|
lastError: string | null;
|
|
40
38
|
isWorkApp: boolean;
|
|
39
|
+
projectId: string;
|
|
40
|
+
tenantId: string;
|
|
41
41
|
} | null>;
|
|
42
42
|
declare const getMcpToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
43
43
|
scopes: ProjectScopeConfig;
|
|
@@ -79,23 +79,23 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
81
|
id: string;
|
|
82
|
-
createdAt: string;
|
|
83
82
|
name: string;
|
|
83
|
+
createdAt: string;
|
|
84
84
|
updatedAt: string;
|
|
85
|
-
projectId: string;
|
|
86
|
-
tenantId: string;
|
|
87
85
|
description: string | null;
|
|
88
|
-
headers: Record<string, string> | null;
|
|
89
86
|
config: {
|
|
90
87
|
type: "mcp";
|
|
91
88
|
mcp: ToolMcpConfig;
|
|
92
89
|
};
|
|
93
90
|
credentialReferenceId: string | null;
|
|
94
91
|
credentialScope: string;
|
|
92
|
+
headers: Record<string, string> | null;
|
|
95
93
|
imageUrl: string | null;
|
|
96
94
|
capabilities: ToolServerCapabilities | null;
|
|
97
95
|
lastError: string | null;
|
|
98
96
|
isWorkApp: boolean;
|
|
97
|
+
projectId: string;
|
|
98
|
+
tenantId: string;
|
|
99
99
|
}>;
|
|
100
100
|
declare const updateTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
101
101
|
scopes: ProjectScopeConfig;
|
|
@@ -138,16 +138,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
138
138
|
id: string;
|
|
139
139
|
createdAt: string;
|
|
140
140
|
updatedAt: string;
|
|
141
|
-
|
|
141
|
+
headers: Record<string, string> | null;
|
|
142
142
|
projectId: string;
|
|
143
143
|
tenantId: string;
|
|
144
|
-
subAgentId: string;
|
|
145
144
|
toolId: string;
|
|
146
|
-
|
|
145
|
+
agentId: string;
|
|
146
|
+
subAgentId: string;
|
|
147
|
+
selectedTools: string[] | null;
|
|
147
148
|
toolPolicies: Record<string, {
|
|
148
149
|
needsApproval?: boolean;
|
|
149
150
|
}> | null;
|
|
150
|
-
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
153
153
|
scopes: AgentScopeConfig;
|
|
@@ -157,16 +157,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
157
157
|
id: string;
|
|
158
158
|
createdAt: string;
|
|
159
159
|
updatedAt: string;
|
|
160
|
-
|
|
160
|
+
headers: Record<string, string> | null;
|
|
161
161
|
projectId: string;
|
|
162
162
|
tenantId: string;
|
|
163
|
-
subAgentId: string;
|
|
164
163
|
toolId: string;
|
|
165
|
-
|
|
164
|
+
agentId: string;
|
|
165
|
+
subAgentId: string;
|
|
166
|
+
selectedTools: string[] | null;
|
|
166
167
|
toolPolicies: Record<string, {
|
|
167
168
|
needsApproval?: boolean;
|
|
168
169
|
}> | null;
|
|
169
|
-
selectedTools: string[] | null;
|
|
170
170
|
}>;
|
|
171
171
|
/**
|
|
172
172
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -185,16 +185,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
185
185
|
id: string;
|
|
186
186
|
createdAt: string;
|
|
187
187
|
updatedAt: string;
|
|
188
|
-
|
|
188
|
+
headers: Record<string, string> | null;
|
|
189
189
|
projectId: string;
|
|
190
190
|
tenantId: string;
|
|
191
|
-
subAgentId: string;
|
|
192
191
|
toolId: string;
|
|
193
|
-
|
|
192
|
+
agentId: string;
|
|
193
|
+
subAgentId: string;
|
|
194
|
+
selectedTools: string[] | null;
|
|
194
195
|
toolPolicies: Record<string, {
|
|
195
196
|
needsApproval?: boolean;
|
|
196
197
|
}> | null;
|
|
197
|
-
selectedTools: string[] | null;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
200
200
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -203,23 +203,23 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
205
|
id: string;
|
|
206
|
-
createdAt: string;
|
|
207
206
|
name: string;
|
|
207
|
+
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
|
-
projectId: string;
|
|
210
|
-
tenantId: string;
|
|
211
209
|
description: string | null;
|
|
212
|
-
headers: Record<string, string> | null;
|
|
213
210
|
config: {
|
|
214
211
|
type: "mcp";
|
|
215
212
|
mcp: ToolMcpConfig;
|
|
216
213
|
};
|
|
217
214
|
credentialReferenceId: string | null;
|
|
218
215
|
credentialScope: string;
|
|
216
|
+
headers: Record<string, string> | null;
|
|
219
217
|
imageUrl: string | null;
|
|
220
218
|
capabilities: ToolServerCapabilities | null;
|
|
221
219
|
lastError: string | null;
|
|
222
220
|
isWorkApp: boolean;
|
|
221
|
+
projectId: string;
|
|
222
|
+
tenantId: string;
|
|
223
223
|
}>;
|
|
224
224
|
//#endregion
|
|
225
225
|
export { addToolToAgent, createTool, dbResultToMcpTool, dbResultToMcpToolSkeleton, deleteTool, getMcpToolById, getToolById, listTools, removeToolFromAgent, updateTool, upsertSubAgentToolRelation, upsertTool };
|
|
@@ -37,8 +37,8 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
37
37
|
authentication: unknown;
|
|
38
38
|
signingSecretCredentialReferenceId: string | null;
|
|
39
39
|
signatureVerification: {
|
|
40
|
-
algorithm: "
|
|
41
|
-
encoding: "
|
|
40
|
+
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
41
|
+
encoding: "hex" | "base64";
|
|
42
42
|
signature: {
|
|
43
43
|
source: "query" | "header" | "body";
|
|
44
44
|
key: string;
|
|
@@ -132,10 +132,10 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
132
132
|
userId: string;
|
|
133
133
|
}) => Promise<{
|
|
134
134
|
createdAt: string;
|
|
135
|
-
|
|
135
|
+
userId: string;
|
|
136
136
|
projectId: string;
|
|
137
137
|
tenantId: string;
|
|
138
|
-
|
|
138
|
+
agentId: string;
|
|
139
139
|
triggerId: string;
|
|
140
140
|
}>;
|
|
141
141
|
declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|