@inkeep/agents-core 0.72.2 → 0.73.0
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 +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/manage/agents.d.ts +15 -15
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- 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 +6 -6
- package/dist/data-access/manage/skills.d.ts +5 -5
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +9 -9
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/triggers.d.ts +3 -3
- package/dist/data-access/manage/webhookDestinations.d.ts +1 -0
- package/dist/data-access/runtime/apiKeys.d.ts +4 -4
- package/dist/data-access/runtime/apps.d.ts +9 -9
- package/dist/data-access/runtime/conversations.d.ts +12 -12
- package/dist/data-access/runtime/events.d.ts +3 -3
- package/dist/data-access/runtime/feedback.d.ts +4 -4
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/tasks.d.ts +1 -1
- package/dist/db/manage/manage-schema.d.ts +400 -381
- package/dist/db/manage/manage-schema.js +1 -0
- package/dist/db/runtime/runtime-schema.d.ts +419 -419
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- 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 +32 -32
- package/dist/validation/schemas.d.ts +1849 -1801
- package/dist/validation/schemas.js +36 -12
- package/drizzle/manage/0020_typical_mandrill.sql +1 -0
- package/drizzle/manage/meta/0020_snapshot.json +4093 -0
- package/drizzle/manage/meta/_journal.json +7 -0
- package/package.json +1 -1
|
@@ -14,8 +14,8 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
description: string | null;
|
|
17
|
-
projectId: string;
|
|
18
17
|
tenantId: string;
|
|
18
|
+
projectId: string;
|
|
19
19
|
props: {
|
|
20
20
|
[x: string]: unknown;
|
|
21
21
|
type: "object";
|
|
@@ -70,8 +70,8 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
|
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
72
|
description: string | null;
|
|
73
|
-
projectId: string;
|
|
74
73
|
tenantId: string;
|
|
74
|
+
projectId: string;
|
|
75
75
|
props: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
type: "object";
|
|
@@ -143,8 +143,8 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
143
143
|
}) => Promise<{
|
|
144
144
|
id: string;
|
|
145
145
|
createdAt: string;
|
|
146
|
-
projectId: string;
|
|
147
146
|
tenantId: string;
|
|
147
|
+
projectId: string;
|
|
148
148
|
agentId: string;
|
|
149
149
|
subAgentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
@@ -186,8 +186,8 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
186
186
|
}) => Promise<{
|
|
187
187
|
id: string;
|
|
188
188
|
createdAt: string;
|
|
189
|
-
projectId: string;
|
|
190
189
|
tenantId: string;
|
|
190
|
+
projectId: string;
|
|
191
191
|
agentId: string;
|
|
192
192
|
subAgentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
@@ -12,11 +12,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
projectId: string;
|
|
16
15
|
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
17
18
|
headersSchema: unknown;
|
|
18
19
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
19
|
-
agentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
@@ -24,11 +24,11 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
24
24
|
id: string;
|
|
25
25
|
createdAt: string;
|
|
26
26
|
updatedAt: string;
|
|
27
|
-
projectId: string;
|
|
28
27
|
tenantId: string;
|
|
28
|
+
projectId: string;
|
|
29
|
+
agentId: string;
|
|
29
30
|
headersSchema: unknown;
|
|
30
31
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
31
|
-
agentId: string;
|
|
32
32
|
}[]>;
|
|
33
33
|
declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
34
34
|
scopes: AgentScopeConfig;
|
|
@@ -46,11 +46,11 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
-
projectId: string;
|
|
50
49
|
tenantId: string;
|
|
50
|
+
projectId: string;
|
|
51
|
+
agentId: string;
|
|
51
52
|
headersSchema: unknown;
|
|
52
53
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
53
|
-
agentId: string;
|
|
54
54
|
}>;
|
|
55
55
|
declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
@@ -86,11 +86,11 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
86
86
|
id: string;
|
|
87
87
|
createdAt: string;
|
|
88
88
|
updatedAt: string;
|
|
89
|
-
projectId: string;
|
|
90
89
|
tenantId: string;
|
|
90
|
+
projectId: string;
|
|
91
|
+
agentId: string;
|
|
91
92
|
headersSchema: unknown;
|
|
92
93
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
93
|
-
agentId: string;
|
|
94
94
|
}>;
|
|
95
95
|
//#endregion
|
|
96
96
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -67,8 +67,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
67
67
|
}) => Promise<{
|
|
68
68
|
id: string;
|
|
69
69
|
createdAt: string;
|
|
70
|
-
projectId: string;
|
|
71
70
|
tenantId: string;
|
|
71
|
+
projectId: string;
|
|
72
72
|
agentId: string;
|
|
73
73
|
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
@@ -109,8 +109,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
109
109
|
}) => Promise<{
|
|
110
110
|
id: string;
|
|
111
111
|
createdAt: string;
|
|
112
|
-
projectId: string;
|
|
113
112
|
tenantId: string;
|
|
113
|
+
projectId: string;
|
|
114
114
|
agentId: string;
|
|
115
115
|
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
@@ -58,8 +58,8 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
58
58
|
createdAt: string;
|
|
59
59
|
updatedAt: string;
|
|
60
60
|
description: string | null;
|
|
61
|
-
projectId: string;
|
|
62
61
|
tenantId: string;
|
|
62
|
+
projectId: string;
|
|
63
63
|
agentId: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
@@ -100,8 +100,8 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
100
100
|
createdAt: string;
|
|
101
101
|
updatedAt: string;
|
|
102
102
|
description: string | null;
|
|
103
|
-
projectId: string;
|
|
104
103
|
tenantId: string;
|
|
104
|
+
projectId: string;
|
|
105
105
|
agentId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
@@ -160,13 +160,13 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
160
160
|
id: string;
|
|
161
161
|
createdAt: string;
|
|
162
162
|
updatedAt: string;
|
|
163
|
-
projectId: string;
|
|
164
163
|
tenantId: string;
|
|
164
|
+
projectId: string;
|
|
165
165
|
agentId: string;
|
|
166
|
-
subAgentId: string;
|
|
167
166
|
toolPolicies: Record<string, {
|
|
168
167
|
needsApproval?: boolean;
|
|
169
168
|
}> | null;
|
|
169
|
+
subAgentId: string;
|
|
170
170
|
functionToolId: string;
|
|
171
171
|
}>;
|
|
172
172
|
/**
|
|
@@ -225,13 +225,13 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
225
225
|
id: string;
|
|
226
226
|
createdAt: string;
|
|
227
227
|
updatedAt: string;
|
|
228
|
-
projectId: string;
|
|
229
228
|
tenantId: string;
|
|
229
|
+
projectId: string;
|
|
230
230
|
agentId: string;
|
|
231
|
-
subAgentId: string;
|
|
232
231
|
toolPolicies: Record<string, {
|
|
233
232
|
needsApproval?: boolean;
|
|
234
233
|
}> | null;
|
|
234
|
+
subAgentId: string;
|
|
235
235
|
functionToolId: string;
|
|
236
236
|
}>;
|
|
237
237
|
//#endregion
|
|
@@ -21,8 +21,8 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
21
21
|
updatedAt: string;
|
|
22
22
|
metadata: Record<string, string> | null;
|
|
23
23
|
description: string;
|
|
24
|
-
projectId: string;
|
|
25
24
|
tenantId: string;
|
|
25
|
+
projectId: string;
|
|
26
26
|
content: string;
|
|
27
27
|
} | null>;
|
|
28
28
|
declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -116,8 +116,8 @@ declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiIn
|
|
|
116
116
|
updatedAt: string;
|
|
117
117
|
metadata: Record<string, string> | null;
|
|
118
118
|
description: string;
|
|
119
|
-
projectId: string;
|
|
120
119
|
tenantId: string;
|
|
120
|
+
projectId: string;
|
|
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
|
-
projectId: string;
|
|
146
145
|
tenantId: string;
|
|
146
|
+
projectId: string;
|
|
147
147
|
agentId: string;
|
|
148
|
-
|
|
148
|
+
subAgentId: string;
|
|
149
149
|
index: number;
|
|
150
150
|
alwaysLoaded: boolean;
|
|
151
|
-
|
|
151
|
+
skillId: string;
|
|
152
152
|
}>;
|
|
153
153
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
154
154
|
scopes: AgentScopeConfig;
|
|
@@ -13,11 +13,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
headers: Record<string, string> | null;
|
|
16
|
-
projectId: string;
|
|
17
16
|
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
18
|
agentId: string;
|
|
19
|
-
subAgentId: string;
|
|
20
19
|
externalAgentId: string;
|
|
20
|
+
subAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
23
23
|
scopes: SubAgentScopeConfig;
|
|
@@ -48,11 +48,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
50
|
headers: Record<string, string> | null;
|
|
51
|
-
projectId: string;
|
|
52
51
|
tenantId: string;
|
|
52
|
+
projectId: string;
|
|
53
53
|
agentId: string;
|
|
54
|
-
subAgentId: string;
|
|
55
54
|
externalAgentId: string;
|
|
55
|
+
subAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
@@ -61,11 +61,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
63
|
headers: Record<string, string> | null;
|
|
64
|
-
projectId: string;
|
|
65
64
|
tenantId: string;
|
|
65
|
+
projectId: string;
|
|
66
66
|
agentId: string;
|
|
67
|
-
subAgentId: string;
|
|
68
67
|
externalAgentId: string;
|
|
68
|
+
subAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -190,11 +190,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
190
190
|
createdAt: string;
|
|
191
191
|
updatedAt: string;
|
|
192
192
|
headers: Record<string, string> | null;
|
|
193
|
-
projectId: string;
|
|
194
193
|
tenantId: string;
|
|
194
|
+
projectId: string;
|
|
195
195
|
agentId: string;
|
|
196
|
-
subAgentId: string;
|
|
197
196
|
externalAgentId: string;
|
|
197
|
+
subAgentId: string;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
200
200
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -207,11 +207,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
209
|
headers: Record<string, string> | null;
|
|
210
|
-
projectId: string;
|
|
211
210
|
tenantId: string;
|
|
211
|
+
projectId: string;
|
|
212
212
|
agentId: string;
|
|
213
|
-
subAgentId: string;
|
|
214
213
|
externalAgentId: string;
|
|
214
|
+
subAgentId: string;
|
|
215
215
|
} | undefined>;
|
|
216
216
|
/**
|
|
217
217
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -228,11 +228,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
228
228
|
createdAt: string;
|
|
229
229
|
updatedAt: string;
|
|
230
230
|
headers: Record<string, string> | null;
|
|
231
|
-
projectId: string;
|
|
232
231
|
tenantId: string;
|
|
232
|
+
projectId: string;
|
|
233
233
|
agentId: string;
|
|
234
|
-
subAgentId: string;
|
|
235
234
|
externalAgentId: string;
|
|
235
|
+
subAgentId: string;
|
|
236
236
|
}>;
|
|
237
237
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
238
238
|
scopes: SubAgentScopeConfig;
|
|
@@ -12,8 +12,8 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
projectId: string;
|
|
16
15
|
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
@@ -47,8 +47,8 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
projectId: string;
|
|
51
50
|
tenantId: string;
|
|
51
|
+
projectId: string;
|
|
52
52
|
agentId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
@@ -60,8 +60,8 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
projectId: string;
|
|
64
63
|
tenantId: string;
|
|
64
|
+
projectId: string;
|
|
65
65
|
agentId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
@@ -129,8 +129,8 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
129
129
|
id: string;
|
|
130
130
|
createdAt: string;
|
|
131
131
|
updatedAt: string;
|
|
132
|
-
projectId: string;
|
|
133
132
|
tenantId: string;
|
|
133
|
+
projectId: string;
|
|
134
134
|
agentId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
@@ -148,8 +148,8 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
148
148
|
id: string;
|
|
149
149
|
createdAt: string;
|
|
150
150
|
updatedAt: string;
|
|
151
|
-
projectId: string;
|
|
152
151
|
tenantId: string;
|
|
152
|
+
projectId: string;
|
|
153
153
|
agentId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
@@ -162,8 +162,8 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
162
162
|
id: string;
|
|
163
163
|
createdAt: string;
|
|
164
164
|
updatedAt: string;
|
|
165
|
-
projectId: string;
|
|
166
165
|
tenantId: string;
|
|
166
|
+
projectId: string;
|
|
167
167
|
agentId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
@@ -208,15 +208,15 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
208
208
|
createdAt: string;
|
|
209
209
|
updatedAt: string;
|
|
210
210
|
headers: Record<string, string> | null;
|
|
211
|
-
projectId: string;
|
|
212
211
|
tenantId: string;
|
|
213
|
-
|
|
212
|
+
projectId: string;
|
|
214
213
|
agentId: string;
|
|
215
|
-
|
|
216
|
-
selectedTools: string[] | null;
|
|
214
|
+
toolId: string;
|
|
217
215
|
toolPolicies: Record<string, {
|
|
218
216
|
needsApproval?: boolean;
|
|
219
217
|
}> | null;
|
|
218
|
+
subAgentId: string;
|
|
219
|
+
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
222
222
|
scopes: AgentScopeConfig;
|
|
@@ -252,15 +252,15 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
252
252
|
createdAt: string;
|
|
253
253
|
updatedAt: string;
|
|
254
254
|
headers: Record<string, string> | null;
|
|
255
|
-
projectId: string;
|
|
256
255
|
tenantId: string;
|
|
257
|
-
|
|
256
|
+
projectId: string;
|
|
258
257
|
agentId: string;
|
|
259
|
-
|
|
260
|
-
selectedTools: string[] | null;
|
|
258
|
+
toolId: string;
|
|
261
259
|
toolPolicies: Record<string, {
|
|
262
260
|
needsApproval?: boolean;
|
|
263
261
|
}> | null;
|
|
262
|
+
subAgentId: string;
|
|
263
|
+
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
266
266
|
scopes: SubAgentScopeConfig;
|
|
@@ -13,8 +13,8 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
headers: Record<string, string> | null;
|
|
16
|
-
projectId: string;
|
|
17
16
|
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
18
|
agentId: string;
|
|
19
19
|
subAgentId: string;
|
|
20
20
|
targetAgentId: string;
|
|
@@ -48,8 +48,8 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
50
|
headers: Record<string, string> | null;
|
|
51
|
-
projectId: string;
|
|
52
51
|
tenantId: string;
|
|
52
|
+
projectId: string;
|
|
53
53
|
agentId: string;
|
|
54
54
|
subAgentId: string;
|
|
55
55
|
targetAgentId: string;
|
|
@@ -61,8 +61,8 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
63
|
headers: Record<string, string> | null;
|
|
64
|
-
projectId: string;
|
|
65
64
|
tenantId: string;
|
|
65
|
+
projectId: string;
|
|
66
66
|
agentId: string;
|
|
67
67
|
subAgentId: string;
|
|
68
68
|
targetAgentId: string;
|
|
@@ -226,8 +226,8 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
226
226
|
createdAt: string;
|
|
227
227
|
updatedAt: string;
|
|
228
228
|
headers: Record<string, string> | null;
|
|
229
|
-
projectId: string;
|
|
230
229
|
tenantId: string;
|
|
230
|
+
projectId: string;
|
|
231
231
|
agentId: string;
|
|
232
232
|
subAgentId: string;
|
|
233
233
|
targetAgentId: string;
|
|
@@ -243,8 +243,8 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
243
243
|
createdAt: string;
|
|
244
244
|
updatedAt: string;
|
|
245
245
|
headers: Record<string, string> | null;
|
|
246
|
-
projectId: string;
|
|
247
246
|
tenantId: string;
|
|
247
|
+
projectId: string;
|
|
248
248
|
agentId: string;
|
|
249
249
|
subAgentId: string;
|
|
250
250
|
targetAgentId: string;
|
|
@@ -264,8 +264,8 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
264
264
|
createdAt: string;
|
|
265
265
|
updatedAt: string;
|
|
266
266
|
headers: Record<string, string> | null;
|
|
267
|
-
projectId: string;
|
|
268
267
|
tenantId: string;
|
|
268
|
+
projectId: string;
|
|
269
269
|
agentId: string;
|
|
270
270
|
subAgentId: string;
|
|
271
271
|
targetAgentId: string;
|
|
@@ -13,9 +13,8 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
13
13
|
name: string;
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
|
+
prompt: string | null;
|
|
16
17
|
description: string | null;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
18
|
models: {
|
|
20
19
|
base?: {
|
|
21
20
|
model?: string | undefined;
|
|
@@ -39,7 +38,8 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
39
38
|
stopWhen: {
|
|
40
39
|
stepCountIs?: number | undefined;
|
|
41
40
|
} | null;
|
|
42
|
-
|
|
41
|
+
tenantId: string;
|
|
42
|
+
projectId: string;
|
|
43
43
|
agentId: string;
|
|
44
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
45
45
|
} | undefined>;
|
|
@@ -50,9 +50,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
50
50
|
name: string;
|
|
51
51
|
createdAt: string;
|
|
52
52
|
updatedAt: string;
|
|
53
|
+
prompt: string | null;
|
|
53
54
|
description: string | null;
|
|
54
|
-
projectId: string;
|
|
55
|
-
tenantId: string;
|
|
56
55
|
models: {
|
|
57
56
|
base?: {
|
|
58
57
|
model?: string | undefined;
|
|
@@ -76,7 +75,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
76
75
|
stopWhen: {
|
|
77
76
|
stepCountIs?: number | undefined;
|
|
78
77
|
} | null;
|
|
79
|
-
|
|
78
|
+
tenantId: string;
|
|
79
|
+
projectId: string;
|
|
80
80
|
agentId: string;
|
|
81
81
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
82
82
|
}[]>;
|
|
@@ -131,9 +131,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
131
131
|
name: string;
|
|
132
132
|
createdAt: string;
|
|
133
133
|
updatedAt: string;
|
|
134
|
+
prompt: string | null;
|
|
134
135
|
description: string | null;
|
|
135
|
-
projectId: string;
|
|
136
|
-
tenantId: string;
|
|
137
136
|
models: {
|
|
138
137
|
base?: {
|
|
139
138
|
model?: string | undefined;
|
|
@@ -157,7 +156,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
157
156
|
stopWhen: {
|
|
158
157
|
stepCountIs?: number | undefined;
|
|
159
158
|
} | null;
|
|
160
|
-
|
|
159
|
+
tenantId: string;
|
|
160
|
+
projectId: string;
|
|
161
161
|
agentId: string;
|
|
162
162
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
163
163
|
}>;
|
|
@@ -24,20 +24,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
24
24
|
name: string;
|
|
25
25
|
createdAt: string;
|
|
26
26
|
updatedAt: string;
|
|
27
|
+
headers: Record<string, string> | null;
|
|
27
28
|
description: string | null;
|
|
29
|
+
tenantId: string;
|
|
30
|
+
projectId: string;
|
|
28
31
|
config: {
|
|
29
32
|
type: "mcp";
|
|
30
33
|
mcp: ToolMcpConfig;
|
|
31
34
|
};
|
|
32
35
|
credentialReferenceId: string | null;
|
|
33
36
|
credentialScope: string;
|
|
34
|
-
headers: Record<string, string> | null;
|
|
35
37
|
imageUrl: string | null;
|
|
36
38
|
capabilities: ToolServerCapabilities | null;
|
|
37
39
|
lastError: string | null;
|
|
38
40
|
isWorkApp: boolean;
|
|
39
|
-
projectId: string;
|
|
40
|
-
tenantId: string;
|
|
41
41
|
} | null>;
|
|
42
42
|
declare const getMcpToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
43
43
|
scopes: ProjectScopeConfig;
|
|
@@ -82,20 +82,20 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
|
|
|
82
82
|
name: string;
|
|
83
83
|
createdAt: string;
|
|
84
84
|
updatedAt: string;
|
|
85
|
+
headers: Record<string, string> | null;
|
|
85
86
|
description: string | null;
|
|
87
|
+
tenantId: string;
|
|
88
|
+
projectId: string;
|
|
86
89
|
config: {
|
|
87
90
|
type: "mcp";
|
|
88
91
|
mcp: ToolMcpConfig;
|
|
89
92
|
};
|
|
90
93
|
credentialReferenceId: string | null;
|
|
91
94
|
credentialScope: string;
|
|
92
|
-
headers: Record<string, string> | null;
|
|
93
95
|
imageUrl: string | null;
|
|
94
96
|
capabilities: ToolServerCapabilities | null;
|
|
95
97
|
lastError: string | null;
|
|
96
98
|
isWorkApp: boolean;
|
|
97
|
-
projectId: string;
|
|
98
|
-
tenantId: string;
|
|
99
99
|
}>;
|
|
100
100
|
declare const updateTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
101
101
|
scopes: ProjectScopeConfig;
|
|
@@ -139,15 +139,15 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
139
139
|
createdAt: string;
|
|
140
140
|
updatedAt: string;
|
|
141
141
|
headers: Record<string, string> | null;
|
|
142
|
-
projectId: string;
|
|
143
142
|
tenantId: string;
|
|
144
|
-
|
|
143
|
+
projectId: string;
|
|
145
144
|
agentId: string;
|
|
146
|
-
|
|
147
|
-
selectedTools: string[] | null;
|
|
145
|
+
toolId: string;
|
|
148
146
|
toolPolicies: Record<string, {
|
|
149
147
|
needsApproval?: boolean;
|
|
150
148
|
}> | null;
|
|
149
|
+
subAgentId: string;
|
|
150
|
+
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
153
153
|
scopes: AgentScopeConfig;
|
|
@@ -158,15 +158,15 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
158
158
|
createdAt: string;
|
|
159
159
|
updatedAt: string;
|
|
160
160
|
headers: Record<string, string> | null;
|
|
161
|
-
projectId: string;
|
|
162
161
|
tenantId: string;
|
|
163
|
-
|
|
162
|
+
projectId: string;
|
|
164
163
|
agentId: string;
|
|
165
|
-
|
|
166
|
-
selectedTools: string[] | null;
|
|
164
|
+
toolId: string;
|
|
167
165
|
toolPolicies: Record<string, {
|
|
168
166
|
needsApproval?: boolean;
|
|
169
167
|
}> | null;
|
|
168
|
+
subAgentId: string;
|
|
169
|
+
selectedTools: string[] | null;
|
|
170
170
|
}>;
|
|
171
171
|
/**
|
|
172
172
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -186,15 +186,15 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
186
186
|
createdAt: string;
|
|
187
187
|
updatedAt: string;
|
|
188
188
|
headers: Record<string, string> | null;
|
|
189
|
-
projectId: string;
|
|
190
189
|
tenantId: string;
|
|
191
|
-
|
|
190
|
+
projectId: string;
|
|
192
191
|
agentId: string;
|
|
193
|
-
|
|
194
|
-
selectedTools: string[] | null;
|
|
192
|
+
toolId: string;
|
|
195
193
|
toolPolicies: Record<string, {
|
|
196
194
|
needsApproval?: boolean;
|
|
197
195
|
}> | null;
|
|
196
|
+
subAgentId: string;
|
|
197
|
+
selectedTools: string[] | null;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
200
200
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -206,20 +206,20 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
206
206
|
name: string;
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
|
+
headers: Record<string, string> | null;
|
|
209
210
|
description: string | null;
|
|
211
|
+
tenantId: string;
|
|
212
|
+
projectId: string;
|
|
210
213
|
config: {
|
|
211
214
|
type: "mcp";
|
|
212
215
|
mcp: ToolMcpConfig;
|
|
213
216
|
};
|
|
214
217
|
credentialReferenceId: string | null;
|
|
215
218
|
credentialScope: string;
|
|
216
|
-
headers: Record<string, string> | null;
|
|
217
219
|
imageUrl: string | null;
|
|
218
220
|
capabilities: ToolServerCapabilities | null;
|
|
219
221
|
lastError: string | null;
|
|
220
222
|
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 };
|
|
@@ -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;
|
|
@@ -133,8 +133,8 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
133
133
|
}) => Promise<{
|
|
134
134
|
createdAt: string;
|
|
135
135
|
userId: string;
|
|
136
|
-
projectId: string;
|
|
137
136
|
tenantId: string;
|
|
137
|
+
projectId: string;
|
|
138
138
|
agentId: string;
|
|
139
139
|
triggerId: string;
|
|
140
140
|
}>;
|