@inkeep/agents-core 0.68.4 → 0.69.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-schema.d.ts +227 -227
- package/dist/auth/auth-validation-schemas.d.ts +137 -137
- package/dist/auth/auth.d.ts +9 -9
- package/dist/auth/authz/config.d.ts +33 -7
- package/dist/auth/authz/config.js +18 -8
- package/dist/auth/authz/credential-gateway.d.ts +57 -0
- package/dist/auth/authz/credential-gateway.js +118 -0
- package/dist/auth/authz/index.d.ts +4 -3
- package/dist/auth/authz/index.js +4 -3
- package/dist/auth/authz/types.d.ts +8 -1
- package/dist/auth/authz/types.js +7 -3
- package/dist/auth/entitlement-lock.js +2 -4
- package/dist/auth/entitlements.js +1 -1
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/auth/support-copilot-platforms.d.ts +147 -0
- package/dist/auth/support-copilot-platforms.js +120 -0
- package/dist/client-exports.d.ts +3 -2
- package/dist/client-exports.js +3 -2
- package/dist/context/TemplateEngine.d.ts +17 -1
- package/dist/context/TemplateEngine.js +37 -3
- 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 +30 -30
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- 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 +12 -12
- package/dist/data-access/manage/skills.d.ts +11 -11
- 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 +1 -1
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +37 -13
- package/dist/data-access/runtime/conversations.d.ts +12 -12
- package/dist/data-access/runtime/entitlements.d.ts +2 -1
- package/dist/data-access/runtime/entitlements.js +5 -1
- package/dist/data-access/runtime/feedback.d.ts +6 -6
- package/dist/data-access/runtime/messages.d.ts +12 -12
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- 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 +358 -358
- package/dist/db/runtime/runtime-schema.d.ts +433 -417
- package/dist/index.d.ts +7 -5
- package/dist/index.js +7 -5
- package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +1 -1
- package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +1 -1
- package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +1 -1
- package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +1 -1
- package/dist/test-utils/mocks/logger.js +1 -1
- package/dist/utils/apiKeys.js +1 -1
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas/skills.d.ts +25 -25
- package/dist/validation/schemas.d.ts +2144 -1956
- package/dist/validation/schemas.js +16 -2
- package/package.json +1 -1
- package/spicedb/schema.zed +27 -0
|
@@ -15,15 +15,15 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
15
15
|
scopes: ProjectScopeConfig;
|
|
16
16
|
skillId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
|
-
id: string;
|
|
19
18
|
name: string;
|
|
20
19
|
description: string;
|
|
20
|
+
content: string;
|
|
21
|
+
tenantId: string;
|
|
22
|
+
projectId: string;
|
|
23
|
+
id: string;
|
|
21
24
|
createdAt: string;
|
|
22
25
|
updatedAt: string;
|
|
23
|
-
tenantId: string;
|
|
24
26
|
metadata: Record<string, string> | null;
|
|
25
|
-
content: 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
|
-
id: string;
|
|
114
113
|
name: string;
|
|
115
114
|
description: string;
|
|
115
|
+
content: string;
|
|
116
|
+
tenantId: string;
|
|
117
|
+
projectId: string;
|
|
118
|
+
id: string;
|
|
116
119
|
createdAt: string;
|
|
117
120
|
updatedAt: string;
|
|
118
|
-
tenantId: string;
|
|
119
121
|
metadata: Record<string, string> | null;
|
|
120
|
-
content: string;
|
|
121
|
-
projectId: string;
|
|
122
122
|
}>;
|
|
123
123
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
124
124
|
scopes: ProjectScopeConfig;
|
|
@@ -139,16 +139,16 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
139
139
|
index: number;
|
|
140
140
|
alwaysLoaded?: boolean;
|
|
141
141
|
}) => Promise<{
|
|
142
|
+
tenantId: string;
|
|
143
|
+
projectId: string;
|
|
142
144
|
id: string;
|
|
143
145
|
createdAt: string;
|
|
144
146
|
updatedAt: string;
|
|
145
|
-
tenantId: string;
|
|
146
|
-
projectId: string;
|
|
147
147
|
agentId: string;
|
|
148
148
|
subAgentId: string;
|
|
149
|
-
skillId: string;
|
|
150
149
|
index: number;
|
|
151
150
|
alwaysLoaded: boolean;
|
|
151
|
+
skillId: string;
|
|
152
152
|
}>;
|
|
153
153
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
154
154
|
scopes: AgentScopeConfig;
|
|
@@ -9,14 +9,14 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
12
14
|
id: string;
|
|
13
15
|
createdAt: string;
|
|
14
16
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
|
-
subAgentId: string;
|
|
19
18
|
headers: Record<string, string> | null;
|
|
19
|
+
subAgentId: string;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -44,27 +44,27 @@ 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;
|
|
47
49
|
id: string;
|
|
48
50
|
createdAt: string;
|
|
49
51
|
updatedAt: string;
|
|
50
|
-
tenantId: string;
|
|
51
|
-
projectId: string;
|
|
52
52
|
agentId: string;
|
|
53
|
-
subAgentId: string;
|
|
54
53
|
headers: Record<string, string> | null;
|
|
54
|
+
subAgentId: string;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
+
tenantId: string;
|
|
61
|
+
projectId: string;
|
|
60
62
|
id: string;
|
|
61
63
|
createdAt: string;
|
|
62
64
|
updatedAt: string;
|
|
63
|
-
tenantId: string;
|
|
64
|
-
projectId: string;
|
|
65
65
|
agentId: string;
|
|
66
|
-
subAgentId: string;
|
|
67
66
|
headers: Record<string, string> | null;
|
|
67
|
+
subAgentId: string;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -186,14 +186,14 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
186
186
|
headers?: Record<string, string> | null;
|
|
187
187
|
};
|
|
188
188
|
}) => Promise<{
|
|
189
|
+
tenantId: string;
|
|
190
|
+
projectId: string;
|
|
189
191
|
id: string;
|
|
190
192
|
createdAt: string;
|
|
191
193
|
updatedAt: string;
|
|
192
|
-
tenantId: string;
|
|
193
|
-
projectId: string;
|
|
194
194
|
agentId: string;
|
|
195
|
-
subAgentId: string;
|
|
196
195
|
headers: Record<string, string> | null;
|
|
196
|
+
subAgentId: string;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
@@ -203,14 +203,14 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
203
203
|
scopes: SubAgentScopeConfig;
|
|
204
204
|
externalAgentId: string;
|
|
205
205
|
}) => Promise<{
|
|
206
|
+
tenantId: string;
|
|
207
|
+
projectId: string;
|
|
206
208
|
id: string;
|
|
207
209
|
createdAt: string;
|
|
208
210
|
updatedAt: string;
|
|
209
|
-
tenantId: string;
|
|
210
|
-
projectId: string;
|
|
211
211
|
agentId: string;
|
|
212
|
-
subAgentId: string;
|
|
213
212
|
headers: Record<string, string> | null;
|
|
213
|
+
subAgentId: string;
|
|
214
214
|
externalAgentId: string;
|
|
215
215
|
} | undefined>;
|
|
216
216
|
/**
|
|
@@ -224,14 +224,14 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
224
224
|
headers?: Record<string, string> | null;
|
|
225
225
|
};
|
|
226
226
|
}) => Promise<{
|
|
227
|
+
tenantId: string;
|
|
228
|
+
projectId: string;
|
|
227
229
|
id: string;
|
|
228
230
|
createdAt: string;
|
|
229
231
|
updatedAt: string;
|
|
230
|
-
tenantId: string;
|
|
231
|
-
projectId: string;
|
|
232
232
|
agentId: string;
|
|
233
|
-
subAgentId: string;
|
|
234
233
|
headers: Record<string, string> | null;
|
|
234
|
+
subAgentId: string;
|
|
235
235
|
externalAgentId: string;
|
|
236
236
|
}>;
|
|
237
237
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -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;
|
|
12
14
|
id: string;
|
|
13
15
|
createdAt: string;
|
|
14
16
|
updatedAt: string;
|
|
15
|
-
tenantId: 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;
|
|
47
49
|
id: string;
|
|
48
50
|
createdAt: string;
|
|
49
51
|
updatedAt: string;
|
|
50
|
-
tenantId: 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;
|
|
60
62
|
id: string;
|
|
61
63
|
createdAt: string;
|
|
62
64
|
updatedAt: string;
|
|
63
|
-
tenantId: 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;
|
|
129
131
|
id: string;
|
|
130
132
|
createdAt: string;
|
|
131
133
|
updatedAt: string;
|
|
132
|
-
tenantId: 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;
|
|
148
150
|
id: string;
|
|
149
151
|
createdAt: string;
|
|
150
152
|
updatedAt: string;
|
|
151
|
-
tenantId: 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;
|
|
162
164
|
id: string;
|
|
163
165
|
createdAt: string;
|
|
164
166
|
updatedAt: string;
|
|
165
|
-
tenantId: string;
|
|
166
|
-
projectId: string;
|
|
167
167
|
agentId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
@@ -204,19 +204,19 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
+
tenantId: string;
|
|
208
|
+
projectId: string;
|
|
207
209
|
id: string;
|
|
208
210
|
createdAt: string;
|
|
209
211
|
updatedAt: string;
|
|
210
|
-
tenantId: string;
|
|
211
|
-
projectId: string;
|
|
212
212
|
agentId: string;
|
|
213
|
-
subAgentId: string;
|
|
214
|
-
toolId: string;
|
|
215
213
|
headers: Record<string, string> | null;
|
|
216
|
-
|
|
214
|
+
toolId: string;
|
|
215
|
+
subAgentId: string;
|
|
217
216
|
toolPolicies: Record<string, {
|
|
218
217
|
needsApproval?: boolean;
|
|
219
218
|
}> | null;
|
|
219
|
+
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
222
222
|
scopes: AgentScopeConfig;
|
|
@@ -248,19 +248,19 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
248
248
|
scopes: SubAgentScopeConfig;
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
|
+
tenantId: string;
|
|
252
|
+
projectId: string;
|
|
251
253
|
id: string;
|
|
252
254
|
createdAt: string;
|
|
253
255
|
updatedAt: string;
|
|
254
|
-
tenantId: string;
|
|
255
|
-
projectId: string;
|
|
256
256
|
agentId: string;
|
|
257
|
-
subAgentId: string;
|
|
258
|
-
toolId: string;
|
|
259
257
|
headers: Record<string, string> | null;
|
|
260
|
-
|
|
258
|
+
toolId: string;
|
|
259
|
+
subAgentId: string;
|
|
261
260
|
toolPolicies: Record<string, {
|
|
262
261
|
needsApproval?: boolean;
|
|
263
262
|
}> | null;
|
|
263
|
+
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
266
266
|
scopes: SubAgentScopeConfig;
|
|
@@ -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;
|
|
12
14
|
id: string;
|
|
13
15
|
createdAt: string;
|
|
14
16
|
updatedAt: string;
|
|
15
|
-
tenantId: 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;
|
|
47
49
|
id: string;
|
|
48
50
|
createdAt: string;
|
|
49
51
|
updatedAt: string;
|
|
50
|
-
tenantId: 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;
|
|
60
62
|
id: string;
|
|
61
63
|
createdAt: string;
|
|
62
64
|
updatedAt: string;
|
|
63
|
-
tenantId: 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;
|
|
225
227
|
id: string;
|
|
226
228
|
createdAt: string;
|
|
227
229
|
updatedAt: string;
|
|
228
|
-
tenantId: 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;
|
|
242
244
|
id: string;
|
|
243
245
|
createdAt: string;
|
|
244
246
|
updatedAt: string;
|
|
245
|
-
tenantId: 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;
|
|
263
265
|
id: string;
|
|
264
266
|
createdAt: string;
|
|
265
267
|
updatedAt: string;
|
|
266
|
-
tenantId: 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,9 +9,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
12
|
name: string;
|
|
14
13
|
description: string | null;
|
|
14
|
+
tenantId: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
id: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
15
19
|
models: {
|
|
16
20
|
base?: {
|
|
17
21
|
model?: string | undefined;
|
|
@@ -35,20 +39,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
35
39
|
stopWhen: {
|
|
36
40
|
stepCountIs?: number | undefined;
|
|
37
41
|
} | null;
|
|
38
|
-
createdAt: string;
|
|
39
|
-
updatedAt: string;
|
|
40
|
-
tenantId: string;
|
|
41
|
-
projectId: string;
|
|
42
|
-
agentId: string;
|
|
43
42
|
prompt: string | null;
|
|
44
43
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
44
|
+
agentId: string;
|
|
45
45
|
} | undefined>;
|
|
46
46
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
47
47
|
scopes: AgentScopeConfig;
|
|
48
48
|
}) => Promise<{
|
|
49
|
-
id: string;
|
|
50
49
|
name: string;
|
|
51
50
|
description: string | null;
|
|
51
|
+
tenantId: string;
|
|
52
|
+
projectId: string;
|
|
53
|
+
id: string;
|
|
54
|
+
createdAt: string;
|
|
55
|
+
updatedAt: string;
|
|
52
56
|
models: {
|
|
53
57
|
base?: {
|
|
54
58
|
model?: string | undefined;
|
|
@@ -72,13 +76,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
72
76
|
stopWhen: {
|
|
73
77
|
stepCountIs?: number | undefined;
|
|
74
78
|
} | null;
|
|
75
|
-
createdAt: string;
|
|
76
|
-
updatedAt: string;
|
|
77
|
-
tenantId: string;
|
|
78
|
-
projectId: string;
|
|
79
|
-
agentId: string;
|
|
80
79
|
prompt: string | null;
|
|
81
80
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
81
|
+
agentId: string;
|
|
82
82
|
}[]>;
|
|
83
83
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
84
84
|
scopes: AgentScopeConfig;
|
|
@@ -127,9 +127,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
127
127
|
};
|
|
128
128
|
}>;
|
|
129
129
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
130
|
-
id: string;
|
|
131
130
|
name: string;
|
|
132
131
|
description: string | null;
|
|
132
|
+
tenantId: string;
|
|
133
|
+
projectId: string;
|
|
134
|
+
id: string;
|
|
135
|
+
createdAt: string;
|
|
136
|
+
updatedAt: string;
|
|
133
137
|
models: {
|
|
134
138
|
base?: {
|
|
135
139
|
model?: string | undefined;
|
|
@@ -153,13 +157,9 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
153
157
|
stopWhen: {
|
|
154
158
|
stepCountIs?: number | undefined;
|
|
155
159
|
} | null;
|
|
156
|
-
createdAt: string;
|
|
157
|
-
updatedAt: string;
|
|
158
|
-
tenantId: string;
|
|
159
|
-
projectId: string;
|
|
160
|
-
agentId: string;
|
|
161
160
|
prompt: string | null;
|
|
162
161
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
162
|
+
agentId: string;
|
|
163
163
|
}>;
|
|
164
164
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
165
165
|
scopes: AgentScopeConfig;
|
|
@@ -20,20 +20,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
-
id: string;
|
|
24
23
|
name: string;
|
|
25
24
|
description: string | null;
|
|
26
|
-
createdAt: string;
|
|
27
|
-
updatedAt: string;
|
|
28
25
|
tenantId: string;
|
|
29
26
|
projectId: string;
|
|
30
|
-
|
|
27
|
+
id: string;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
updatedAt: string;
|
|
30
|
+
headers: Record<string, string> | null;
|
|
31
31
|
config: {
|
|
32
32
|
type: "mcp";
|
|
33
33
|
mcp: ToolMcpConfig;
|
|
34
34
|
};
|
|
35
|
+
credentialReferenceId: string | null;
|
|
35
36
|
credentialScope: string;
|
|
36
|
-
headers: Record<string, string> | null;
|
|
37
37
|
imageUrl: string | null;
|
|
38
38
|
capabilities: ToolServerCapabilities | null;
|
|
39
39
|
lastError: string | null;
|
|
@@ -78,20 +78,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
78
|
};
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
|
-
id: string;
|
|
82
81
|
name: string;
|
|
83
82
|
description: string | null;
|
|
84
|
-
createdAt: string;
|
|
85
|
-
updatedAt: string;
|
|
86
83
|
tenantId: string;
|
|
87
84
|
projectId: string;
|
|
88
|
-
|
|
85
|
+
id: string;
|
|
86
|
+
createdAt: string;
|
|
87
|
+
updatedAt: string;
|
|
88
|
+
headers: Record<string, string> | null;
|
|
89
89
|
config: {
|
|
90
90
|
type: "mcp";
|
|
91
91
|
mcp: ToolMcpConfig;
|
|
92
92
|
};
|
|
93
|
+
credentialReferenceId: string | null;
|
|
93
94
|
credentialScope: string;
|
|
94
|
-
headers: Record<string, string> | null;
|
|
95
95
|
imageUrl: string | null;
|
|
96
96
|
capabilities: ToolServerCapabilities | null;
|
|
97
97
|
lastError: string | null;
|
|
@@ -135,38 +135,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
135
|
needsApproval?: boolean;
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
|
+
tenantId: string;
|
|
139
|
+
projectId: string;
|
|
138
140
|
id: string;
|
|
139
141
|
createdAt: string;
|
|
140
142
|
updatedAt: string;
|
|
141
|
-
tenantId: string;
|
|
142
|
-
projectId: string;
|
|
143
143
|
agentId: string;
|
|
144
|
-
subAgentId: string;
|
|
145
|
-
toolId: string;
|
|
146
144
|
headers: Record<string, string> | null;
|
|
147
|
-
|
|
145
|
+
toolId: string;
|
|
146
|
+
subAgentId: string;
|
|
148
147
|
toolPolicies: Record<string, {
|
|
149
148
|
needsApproval?: boolean;
|
|
150
149
|
}> | null;
|
|
150
|
+
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
153
153
|
scopes: AgentScopeConfig;
|
|
154
154
|
subAgentId: string;
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
|
+
tenantId: string;
|
|
158
|
+
projectId: string;
|
|
157
159
|
id: string;
|
|
158
160
|
createdAt: string;
|
|
159
161
|
updatedAt: string;
|
|
160
|
-
tenantId: string;
|
|
161
|
-
projectId: string;
|
|
162
162
|
agentId: string;
|
|
163
|
-
subAgentId: string;
|
|
164
|
-
toolId: string;
|
|
165
163
|
headers: Record<string, string> | null;
|
|
166
|
-
|
|
164
|
+
toolId: string;
|
|
165
|
+
subAgentId: string;
|
|
167
166
|
toolPolicies: Record<string, {
|
|
168
167
|
needsApproval?: boolean;
|
|
169
168
|
}> | 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)
|
|
@@ -182,19 +182,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
182
182
|
}> | null;
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
|
+
tenantId: string;
|
|
186
|
+
projectId: string;
|
|
185
187
|
id: string;
|
|
186
188
|
createdAt: string;
|
|
187
189
|
updatedAt: string;
|
|
188
|
-
tenantId: string;
|
|
189
|
-
projectId: string;
|
|
190
190
|
agentId: string;
|
|
191
|
-
subAgentId: string;
|
|
192
|
-
toolId: string;
|
|
193
191
|
headers: Record<string, string> | null;
|
|
194
|
-
|
|
192
|
+
toolId: string;
|
|
193
|
+
subAgentId: string;
|
|
195
194
|
toolPolicies: Record<string, {
|
|
196
195
|
needsApproval?: boolean;
|
|
197
196
|
}> | null;
|
|
197
|
+
selectedTools: string[] | null;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
200
200
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -202,20 +202,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
202
202
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
|
-
id: string;
|
|
206
205
|
name: string;
|
|
207
206
|
description: string | null;
|
|
208
|
-
createdAt: string;
|
|
209
|
-
updatedAt: string;
|
|
210
207
|
tenantId: string;
|
|
211
208
|
projectId: string;
|
|
212
|
-
|
|
209
|
+
id: string;
|
|
210
|
+
createdAt: string;
|
|
211
|
+
updatedAt: string;
|
|
212
|
+
headers: Record<string, string> | null;
|
|
213
213
|
config: {
|
|
214
214
|
type: "mcp";
|
|
215
215
|
mcp: ToolMcpConfig;
|
|
216
216
|
};
|
|
217
|
+
credentialReferenceId: string | null;
|
|
217
218
|
credentialScope: string;
|
|
218
|
-
headers: Record<string, string> | null;
|
|
219
219
|
imageUrl: string | null;
|
|
220
220
|
capabilities: ToolServerCapabilities | null;
|
|
221
221
|
lastError: string | null;
|
|
@@ -131,9 +131,9 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
131
131
|
triggerId: string;
|
|
132
132
|
userId: string;
|
|
133
133
|
}) => Promise<{
|
|
134
|
-
createdAt: string;
|
|
135
134
|
tenantId: string;
|
|
136
135
|
projectId: string;
|
|
136
|
+
createdAt: string;
|
|
137
137
|
agentId: string;
|
|
138
138
|
userId: string;
|
|
139
139
|
triggerId: string;
|