@inkeep/agents-core 0.64.10 → 0.65.1
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 +108 -108
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +3 -3
- package/dist/client-exports.js +3 -3
- package/dist/constants/otel-attributes.d.ts +1 -0
- package/dist/constants/otel-attributes.js +1 -0
- package/dist/data-access/index.d.ts +5 -3
- package/dist/data-access/index.js +4 -2
- package/dist/data-access/manage/agents.d.ts +30 -30
- package/dist/data-access/manage/artifactComponents.d.ts +12 -12
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +16 -16
- package/dist/data-access/manage/projectLifecycle.d.ts +6 -6
- package/dist/data-access/manage/projectLifecycle.js +42 -21
- package/dist/data-access/manage/skills.d.ts +10 -10
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +22 -22
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +30 -30
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +12 -12
- package/dist/data-access/runtime/cascade-delete.d.ts +2 -3
- package/dist/data-access/runtime/cascade-delete.js +10 -10
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/feedback.d.ts +101 -0
- package/dist/data-access/runtime/feedback.js +83 -0
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +18 -10
- package/dist/data-access/runtime/scheduledTriggerInvocations.js +67 -9
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +54 -0
- package/dist/data-access/runtime/scheduledTriggerUsers.js +62 -0
- package/dist/data-access/runtime/scheduledTriggers.d.ts +1 -0
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-schema.d.ts +679 -384
- package/dist/db/runtime/runtime-schema.js +108 -3
- package/dist/index.d.ts +9 -7
- package/dist/index.js +7 -5
- package/dist/types/entities.d.ts +9 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/index.d.ts +3 -3
- package/dist/validation/index.js +3 -3
- package/dist/validation/schemas/shared.d.ts +3 -1
- package/dist/validation/schemas/shared.js +6 -1
- package/dist/validation/schemas/skills.d.ts +39 -39
- package/dist/validation/schemas.d.ts +2477 -1955
- package/dist/validation/schemas.js +54 -10
- package/drizzle/runtime/0032_sloppy_starfox.sql +17 -0
- package/drizzle/runtime/0033_backfill-scheduled-trigger-users.sql +7 -0
- package/drizzle/runtime/0034_simple_sphinx.sql +17 -0
- package/drizzle/runtime/meta/0032_snapshot.json +5120 -0
- package/drizzle/runtime/meta/0034_snapshot.json +5288 -0
- package/drizzle/runtime/meta/_journal.json +21 -0
- package/package.json +1 -1
|
@@ -15,15 +15,15 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
15
15
|
scopes: ProjectScopeConfig;
|
|
16
16
|
skillId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
|
-
|
|
19
|
-
projectId: string;
|
|
18
|
+
description: string;
|
|
20
19
|
id: string;
|
|
20
|
+
tenantId: string;
|
|
21
|
+
createdAt: string;
|
|
21
22
|
name: string;
|
|
22
|
-
description: string;
|
|
23
23
|
metadata: Record<string, string> | null;
|
|
24
24
|
content: string;
|
|
25
|
-
createdAt: string;
|
|
26
25
|
updatedAt: string;
|
|
26
|
+
projectId: string;
|
|
27
27
|
} | null>;
|
|
28
28
|
declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
|
|
29
29
|
scopes: ProjectScopeConfig;
|
|
@@ -110,15 +110,15 @@ interface WithTenantIdProjectId {
|
|
|
110
110
|
}
|
|
111
111
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
|
|
112
112
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
|
|
113
|
-
|
|
114
|
-
projectId: string;
|
|
113
|
+
description: string;
|
|
115
114
|
id: string;
|
|
115
|
+
tenantId: string;
|
|
116
|
+
createdAt: string;
|
|
116
117
|
name: string;
|
|
117
|
-
description: string;
|
|
118
118
|
metadata: Record<string, string> | null;
|
|
119
119
|
content: string;
|
|
120
|
-
createdAt: string;
|
|
121
120
|
updatedAt: string;
|
|
121
|
+
projectId: string;
|
|
122
122
|
}>;
|
|
123
123
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
124
124
|
scopes: ProjectScopeConfig;
|
|
@@ -139,11 +139,11 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
139
139
|
index: number;
|
|
140
140
|
alwaysLoaded?: boolean;
|
|
141
141
|
}) => Promise<{
|
|
142
|
-
tenantId: string;
|
|
143
|
-
projectId: string;
|
|
144
142
|
id: string;
|
|
143
|
+
tenantId: string;
|
|
145
144
|
createdAt: string;
|
|
146
145
|
updatedAt: string;
|
|
146
|
+
projectId: string;
|
|
147
147
|
agentId: string;
|
|
148
148
|
subAgentId: string;
|
|
149
149
|
index: number;
|
|
@@ -9,15 +9,15 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
tenantId: string;
|
|
13
|
-
projectId: string;
|
|
14
12
|
id: string;
|
|
13
|
+
tenantId: string;
|
|
15
14
|
createdAt: string;
|
|
16
15
|
updatedAt: string;
|
|
16
|
+
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
|
-
subAgentId: string;
|
|
19
18
|
headers: Record<string, string> | null;
|
|
20
19
|
externalAgentId: string;
|
|
20
|
+
subAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
23
23
|
scopes: SubAgentScopeConfig;
|
|
@@ -44,28 +44,28 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
|
|
|
44
44
|
declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
tenantId: string;
|
|
48
|
-
projectId: string;
|
|
49
47
|
id: string;
|
|
48
|
+
tenantId: string;
|
|
50
49
|
createdAt: string;
|
|
51
50
|
updatedAt: string;
|
|
51
|
+
projectId: string;
|
|
52
52
|
agentId: string;
|
|
53
|
-
subAgentId: string;
|
|
54
53
|
headers: Record<string, string> | null;
|
|
55
54
|
externalAgentId: string;
|
|
55
|
+
subAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
tenantId: string;
|
|
61
|
-
projectId: string;
|
|
62
60
|
id: string;
|
|
61
|
+
tenantId: string;
|
|
63
62
|
createdAt: string;
|
|
64
63
|
updatedAt: string;
|
|
64
|
+
projectId: string;
|
|
65
65
|
agentId: string;
|
|
66
|
-
subAgentId: string;
|
|
67
66
|
headers: Record<string, string> | null;
|
|
68
67
|
externalAgentId: string;
|
|
68
|
+
subAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -186,15 +186,15 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
186
186
|
headers?: Record<string, string> | null;
|
|
187
187
|
};
|
|
188
188
|
}) => Promise<{
|
|
189
|
-
tenantId: string;
|
|
190
|
-
projectId: string;
|
|
191
189
|
id: string;
|
|
190
|
+
tenantId: string;
|
|
192
191
|
createdAt: string;
|
|
193
192
|
updatedAt: string;
|
|
193
|
+
projectId: string;
|
|
194
194
|
agentId: string;
|
|
195
|
-
subAgentId: string;
|
|
196
195
|
headers: Record<string, string> | null;
|
|
197
196
|
externalAgentId: string;
|
|
197
|
+
subAgentId: string;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
200
200
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -203,15 +203,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
203
203
|
scopes: SubAgentScopeConfig;
|
|
204
204
|
externalAgentId: string;
|
|
205
205
|
}) => Promise<{
|
|
206
|
-
tenantId: string;
|
|
207
|
-
projectId: string;
|
|
208
206
|
id: string;
|
|
207
|
+
tenantId: string;
|
|
209
208
|
createdAt: string;
|
|
210
209
|
updatedAt: string;
|
|
210
|
+
projectId: string;
|
|
211
211
|
agentId: string;
|
|
212
|
-
subAgentId: string;
|
|
213
212
|
headers: Record<string, string> | null;
|
|
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)
|
|
@@ -224,15 +224,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
224
224
|
headers?: Record<string, string> | null;
|
|
225
225
|
};
|
|
226
226
|
}) => Promise<{
|
|
227
|
-
tenantId: string;
|
|
228
|
-
projectId: string;
|
|
229
227
|
id: string;
|
|
228
|
+
tenantId: string;
|
|
230
229
|
createdAt: string;
|
|
231
230
|
updatedAt: string;
|
|
231
|
+
projectId: string;
|
|
232
232
|
agentId: string;
|
|
233
|
-
subAgentId: string;
|
|
234
233
|
headers: Record<string, string> | null;
|
|
235
234
|
externalAgentId: string;
|
|
235
|
+
subAgentId: string;
|
|
236
236
|
}>;
|
|
237
237
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
238
238
|
scopes: SubAgentScopeConfig;
|
|
@@ -9,11 +9,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
tenantId: string;
|
|
13
|
-
projectId: string;
|
|
14
12
|
id: string;
|
|
13
|
+
tenantId: string;
|
|
15
14
|
createdAt: string;
|
|
16
15
|
updatedAt: string;
|
|
16
|
+
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
@@ -44,11 +44,11 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
44
44
|
declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
tenantId: string;
|
|
48
|
-
projectId: string;
|
|
49
47
|
id: string;
|
|
48
|
+
tenantId: string;
|
|
50
49
|
createdAt: string;
|
|
51
50
|
updatedAt: string;
|
|
51
|
+
projectId: string;
|
|
52
52
|
agentId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
@@ -57,11 +57,11 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
57
57
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
tenantId: string;
|
|
61
|
-
projectId: string;
|
|
62
60
|
id: string;
|
|
61
|
+
tenantId: string;
|
|
63
62
|
createdAt: string;
|
|
64
63
|
updatedAt: string;
|
|
64
|
+
projectId: string;
|
|
65
65
|
agentId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
@@ -126,11 +126,11 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
126
126
|
}[];
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
|
-
tenantId: string;
|
|
130
|
-
projectId: string;
|
|
131
129
|
id: string;
|
|
130
|
+
tenantId: string;
|
|
132
131
|
createdAt: string;
|
|
133
132
|
updatedAt: string;
|
|
133
|
+
projectId: string;
|
|
134
134
|
agentId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
@@ -145,11 +145,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
145
145
|
targetSubAgentId?: string;
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
|
-
tenantId: string;
|
|
149
|
-
projectId: string;
|
|
150
148
|
id: string;
|
|
149
|
+
tenantId: string;
|
|
151
150
|
createdAt: string;
|
|
152
151
|
updatedAt: string;
|
|
152
|
+
projectId: string;
|
|
153
153
|
agentId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
@@ -159,11 +159,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
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
|
-
tenantId: string;
|
|
163
|
-
projectId: string;
|
|
164
162
|
id: string;
|
|
163
|
+
tenantId: string;
|
|
165
164
|
createdAt: string;
|
|
166
165
|
updatedAt: string;
|
|
166
|
+
projectId: string;
|
|
167
167
|
agentId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
@@ -204,18 +204,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
-
tenantId: string;
|
|
208
|
-
projectId: string;
|
|
209
207
|
id: string;
|
|
210
|
-
|
|
208
|
+
tenantId: string;
|
|
211
209
|
createdAt: string;
|
|
212
210
|
updatedAt: string;
|
|
211
|
+
projectId: string;
|
|
213
212
|
agentId: string;
|
|
214
|
-
|
|
213
|
+
toolId: string;
|
|
214
|
+
headers: Record<string, string> | null;
|
|
215
215
|
toolPolicies: Record<string, {
|
|
216
216
|
needsApproval?: boolean;
|
|
217
217
|
}> | null;
|
|
218
|
-
|
|
218
|
+
subAgentId: string;
|
|
219
219
|
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -248,18 +248,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
248
248
|
scopes: SubAgentScopeConfig;
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
|
-
tenantId: string;
|
|
252
|
-
projectId: string;
|
|
253
251
|
id: string;
|
|
254
|
-
|
|
252
|
+
tenantId: string;
|
|
255
253
|
createdAt: string;
|
|
256
254
|
updatedAt: string;
|
|
255
|
+
projectId: string;
|
|
257
256
|
agentId: string;
|
|
258
|
-
|
|
257
|
+
toolId: string;
|
|
258
|
+
headers: Record<string, string> | null;
|
|
259
259
|
toolPolicies: Record<string, {
|
|
260
260
|
needsApproval?: boolean;
|
|
261
261
|
}> | null;
|
|
262
|
-
|
|
262
|
+
subAgentId: string;
|
|
263
263
|
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,14 +9,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
tenantId: string;
|
|
13
|
-
projectId: string;
|
|
14
12
|
id: string;
|
|
13
|
+
tenantId: string;
|
|
15
14
|
createdAt: string;
|
|
16
15
|
updatedAt: string;
|
|
16
|
+
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
|
-
subAgentId: 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: {
|
|
@@ -44,27 +44,27 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
44
44
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
tenantId: string;
|
|
48
|
-
projectId: string;
|
|
49
47
|
id: string;
|
|
48
|
+
tenantId: string;
|
|
50
49
|
createdAt: string;
|
|
51
50
|
updatedAt: string;
|
|
51
|
+
projectId: string;
|
|
52
52
|
agentId: string;
|
|
53
|
-
subAgentId: 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
|
-
tenantId: string;
|
|
61
|
-
projectId: string;
|
|
62
60
|
id: string;
|
|
61
|
+
tenantId: string;
|
|
63
62
|
createdAt: string;
|
|
64
63
|
updatedAt: string;
|
|
64
|
+
projectId: string;
|
|
65
65
|
agentId: string;
|
|
66
|
-
subAgentId: 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: {
|
|
@@ -222,14 +222,14 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
222
222
|
headers?: Record<string, string> | null;
|
|
223
223
|
};
|
|
224
224
|
}) => Promise<{
|
|
225
|
-
tenantId: string;
|
|
226
|
-
projectId: string;
|
|
227
225
|
id: string;
|
|
226
|
+
tenantId: string;
|
|
228
227
|
createdAt: string;
|
|
229
228
|
updatedAt: string;
|
|
229
|
+
projectId: string;
|
|
230
230
|
agentId: string;
|
|
231
|
-
subAgentId: string;
|
|
232
231
|
headers: Record<string, string> | null;
|
|
232
|
+
subAgentId: string;
|
|
233
233
|
targetAgentId: string;
|
|
234
234
|
}>;
|
|
235
235
|
/**
|
|
@@ -239,14 +239,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
239
239
|
scopes: SubAgentScopeConfig;
|
|
240
240
|
targetAgentId: string;
|
|
241
241
|
}) => Promise<{
|
|
242
|
-
tenantId: string;
|
|
243
|
-
projectId: string;
|
|
244
242
|
id: string;
|
|
243
|
+
tenantId: string;
|
|
245
244
|
createdAt: string;
|
|
246
245
|
updatedAt: string;
|
|
246
|
+
projectId: string;
|
|
247
247
|
agentId: string;
|
|
248
|
-
subAgentId: string;
|
|
249
248
|
headers: Record<string, string> | null;
|
|
249
|
+
subAgentId: string;
|
|
250
250
|
targetAgentId: string;
|
|
251
251
|
} | undefined>;
|
|
252
252
|
/**
|
|
@@ -260,14 +260,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
260
260
|
headers?: Record<string, string> | null;
|
|
261
261
|
};
|
|
262
262
|
}) => Promise<{
|
|
263
|
-
tenantId: string;
|
|
264
|
-
projectId: string;
|
|
265
263
|
id: string;
|
|
264
|
+
tenantId: string;
|
|
266
265
|
createdAt: string;
|
|
267
266
|
updatedAt: string;
|
|
267
|
+
projectId: string;
|
|
268
268
|
agentId: string;
|
|
269
|
-
subAgentId: 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: {
|
|
@@ -9,13 +9,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
tenantId: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
id: string;
|
|
15
|
-
name: string;
|
|
16
12
|
description: string | null;
|
|
13
|
+
id: string;
|
|
14
|
+
tenantId: string;
|
|
17
15
|
createdAt: string;
|
|
18
|
-
|
|
16
|
+
name: string;
|
|
19
17
|
models: {
|
|
20
18
|
base?: {
|
|
21
19
|
model?: string | undefined;
|
|
@@ -39,20 +37,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
39
37
|
stopWhen: {
|
|
40
38
|
stepCountIs?: number | undefined;
|
|
41
39
|
} | null;
|
|
42
|
-
|
|
40
|
+
updatedAt: string;
|
|
41
|
+
projectId: string;
|
|
43
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
|
-
tenantId: string;
|
|
50
|
-
projectId: string;
|
|
51
|
-
id: string;
|
|
52
|
-
name: string;
|
|
53
49
|
description: string | null;
|
|
50
|
+
id: string;
|
|
51
|
+
tenantId: string;
|
|
54
52
|
createdAt: string;
|
|
55
|
-
|
|
53
|
+
name: string;
|
|
56
54
|
models: {
|
|
57
55
|
base?: {
|
|
58
56
|
model?: string | undefined;
|
|
@@ -76,8 +74,10 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
76
74
|
stopWhen: {
|
|
77
75
|
stepCountIs?: number | undefined;
|
|
78
76
|
} | null;
|
|
79
|
-
|
|
77
|
+
updatedAt: string;
|
|
78
|
+
projectId: string;
|
|
80
79
|
prompt: string | null;
|
|
80
|
+
agentId: string;
|
|
81
81
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
82
82
|
}[]>;
|
|
83
83
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -127,13 +127,11 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
127
127
|
};
|
|
128
128
|
}>;
|
|
129
129
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
130
|
-
tenantId: string;
|
|
131
|
-
projectId: string;
|
|
132
|
-
id: string;
|
|
133
|
-
name: string;
|
|
134
130
|
description: string | null;
|
|
131
|
+
id: string;
|
|
132
|
+
tenantId: string;
|
|
135
133
|
createdAt: string;
|
|
136
|
-
|
|
134
|
+
name: string;
|
|
137
135
|
models: {
|
|
138
136
|
base?: {
|
|
139
137
|
model?: string | undefined;
|
|
@@ -157,8 +155,10 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
157
155
|
stopWhen: {
|
|
158
156
|
stepCountIs?: number | undefined;
|
|
159
157
|
} | null;
|
|
160
|
-
|
|
158
|
+
updatedAt: string;
|
|
159
|
+
projectId: string;
|
|
161
160
|
prompt: string | null;
|
|
161
|
+
agentId: string;
|
|
162
162
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
163
163
|
}>;
|
|
164
164
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -20,19 +20,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
-
tenantId: string;
|
|
24
|
-
projectId: string;
|
|
25
|
-
id: string;
|
|
26
|
-
name: string;
|
|
27
23
|
description: string | null;
|
|
24
|
+
id: string;
|
|
25
|
+
tenantId: string;
|
|
28
26
|
createdAt: string;
|
|
27
|
+
name: string;
|
|
29
28
|
updatedAt: string;
|
|
30
|
-
|
|
29
|
+
projectId: string;
|
|
31
30
|
headers: Record<string, string> | null;
|
|
32
31
|
config: {
|
|
33
32
|
type: "mcp";
|
|
34
33
|
mcp: ToolMcpConfig;
|
|
35
34
|
};
|
|
35
|
+
credentialReferenceId: string | null;
|
|
36
36
|
credentialScope: string;
|
|
37
37
|
imageUrl: string | null;
|
|
38
38
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -78,19 +78,19 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
78
|
};
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
|
-
tenantId: string;
|
|
82
|
-
projectId: string;
|
|
83
|
-
id: string;
|
|
84
|
-
name: string;
|
|
85
81
|
description: string | null;
|
|
82
|
+
id: string;
|
|
83
|
+
tenantId: string;
|
|
86
84
|
createdAt: string;
|
|
85
|
+
name: string;
|
|
87
86
|
updatedAt: string;
|
|
88
|
-
|
|
87
|
+
projectId: string;
|
|
89
88
|
headers: Record<string, string> | null;
|
|
90
89
|
config: {
|
|
91
90
|
type: "mcp";
|
|
92
91
|
mcp: ToolMcpConfig;
|
|
93
92
|
};
|
|
93
|
+
credentialReferenceId: string | null;
|
|
94
94
|
credentialScope: string;
|
|
95
95
|
imageUrl: string | null;
|
|
96
96
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -135,18 +135,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
135
|
needsApproval?: boolean;
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
|
-
tenantId: string;
|
|
139
|
-
projectId: string;
|
|
140
138
|
id: string;
|
|
141
|
-
|
|
139
|
+
tenantId: string;
|
|
142
140
|
createdAt: string;
|
|
143
141
|
updatedAt: string;
|
|
142
|
+
projectId: string;
|
|
144
143
|
agentId: string;
|
|
145
|
-
|
|
144
|
+
toolId: string;
|
|
145
|
+
headers: Record<string, string> | null;
|
|
146
146
|
toolPolicies: Record<string, {
|
|
147
147
|
needsApproval?: boolean;
|
|
148
148
|
}> | null;
|
|
149
|
-
|
|
149
|
+
subAgentId: string;
|
|
150
150
|
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -154,18 +154,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
154
154
|
subAgentId: string;
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
|
-
tenantId: string;
|
|
158
|
-
projectId: string;
|
|
159
157
|
id: string;
|
|
160
|
-
|
|
158
|
+
tenantId: string;
|
|
161
159
|
createdAt: string;
|
|
162
160
|
updatedAt: string;
|
|
161
|
+
projectId: string;
|
|
163
162
|
agentId: string;
|
|
164
|
-
|
|
163
|
+
toolId: string;
|
|
164
|
+
headers: Record<string, string> | null;
|
|
165
165
|
toolPolicies: Record<string, {
|
|
166
166
|
needsApproval?: boolean;
|
|
167
167
|
}> | null;
|
|
168
|
-
|
|
168
|
+
subAgentId: string;
|
|
169
169
|
selectedTools: string[] | null;
|
|
170
170
|
}>;
|
|
171
171
|
/**
|
|
@@ -182,18 +182,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
182
182
|
}> | null;
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
|
-
tenantId: string;
|
|
186
|
-
projectId: string;
|
|
187
185
|
id: string;
|
|
188
|
-
|
|
186
|
+
tenantId: string;
|
|
189
187
|
createdAt: string;
|
|
190
188
|
updatedAt: string;
|
|
189
|
+
projectId: string;
|
|
191
190
|
agentId: string;
|
|
192
|
-
|
|
191
|
+
toolId: string;
|
|
192
|
+
headers: Record<string, string> | null;
|
|
193
193
|
toolPolicies: Record<string, {
|
|
194
194
|
needsApproval?: boolean;
|
|
195
195
|
}> | null;
|
|
196
|
-
|
|
196
|
+
subAgentId: string;
|
|
197
197
|
selectedTools: string[] | null;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
@@ -202,19 +202,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
202
202
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
|
-
tenantId: string;
|
|
206
|
-
projectId: string;
|
|
207
|
-
id: string;
|
|
208
|
-
name: string;
|
|
209
205
|
description: string | null;
|
|
206
|
+
id: string;
|
|
207
|
+
tenantId: string;
|
|
210
208
|
createdAt: string;
|
|
209
|
+
name: string;
|
|
211
210
|
updatedAt: string;
|
|
212
|
-
|
|
211
|
+
projectId: string;
|
|
213
212
|
headers: Record<string, string> | null;
|
|
214
213
|
config: {
|
|
215
214
|
type: "mcp";
|
|
216
215
|
mcp: ToolMcpConfig;
|
|
217
216
|
};
|
|
217
|
+
credentialReferenceId: string | null;
|
|
218
218
|
credentialScope: string;
|
|
219
219
|
imageUrl: string | null;
|
|
220
220
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -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;
|
|
@@ -8,12 +8,12 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
tenantId: string;
|
|
12
|
-
projectId: string;
|
|
13
11
|
id: string;
|
|
14
|
-
|
|
12
|
+
tenantId: string;
|
|
15
13
|
createdAt: string;
|
|
14
|
+
name: string | null;
|
|
16
15
|
updatedAt: string;
|
|
16
|
+
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
18
|
expiresAt: string | null;
|
|
19
19
|
publicId: string;
|
|
@@ -22,12 +22,12 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
22
22
|
lastUsedAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
|
-
tenantId: string;
|
|
26
|
-
projectId: string;
|
|
27
25
|
id: string;
|
|
28
|
-
|
|
26
|
+
tenantId: string;
|
|
29
27
|
createdAt: string;
|
|
28
|
+
name: string | null;
|
|
30
29
|
updatedAt: string;
|
|
30
|
+
projectId: string;
|
|
31
31
|
agentId: string;
|
|
32
32
|
expiresAt: string | null;
|
|
33
33
|
publicId: string;
|
|
@@ -39,12 +39,12 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
tenantId: string;
|
|
43
|
-
projectId: string;
|
|
44
42
|
id: string;
|
|
45
|
-
|
|
43
|
+
tenantId: string;
|
|
46
44
|
createdAt: string;
|
|
45
|
+
name: string | null;
|
|
47
46
|
updatedAt: string;
|
|
47
|
+
projectId: string;
|
|
48
48
|
agentId: string;
|
|
49
49
|
expiresAt: string | null;
|
|
50
50
|
publicId: string;
|
|
@@ -66,12 +66,12 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
};
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
|
-
tenantId: string;
|
|
70
|
-
projectId: string;
|
|
71
69
|
id: string;
|
|
72
|
-
|
|
70
|
+
tenantId: string;
|
|
73
71
|
createdAt: string;
|
|
72
|
+
name: string | null;
|
|
74
73
|
updatedAt: string;
|
|
74
|
+
projectId: string;
|
|
75
75
|
agentId: string;
|
|
76
76
|
expiresAt: string | null;
|
|
77
77
|
publicId: string;
|