@inkeep/agents-core 0.58.21 → 0.59.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-config-utils.d.ts +49 -0
- package/dist/auth/auth-config-utils.js +133 -0
- package/dist/auth/auth-schema.d.ts +102 -85
- package/dist/auth/auth-schema.js +1 -0
- package/dist/auth/auth-types.d.ts +170 -0
- package/dist/auth/auth-types.js +53 -0
- package/dist/auth/auth-validation-schemas.d.ts +169 -135
- package/dist/auth/auth.d.ts +43 -1286
- package/dist/auth/auth.js +61 -70
- package/dist/auth/email-send-status-store.js +15 -3
- package/dist/auth/init.js +2 -1
- package/dist/auth/password-reset-link-store.js +8 -1
- 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/constants/{allowed-image-formats.d.ts → allowed-file-formats.d.ts} +4 -3
- package/dist/constants/{allowed-image-formats.js → allowed-file-formats.js} +13 -10
- package/dist/credential-stores/composio-store.d.ts +28 -0
- package/dist/credential-stores/composio-store.js +53 -0
- package/dist/credential-stores/default-constants.d.ts +2 -1
- package/dist/credential-stores/default-constants.js +2 -1
- package/dist/credential-stores/defaults.js +3 -1
- package/dist/credential-stores/index.d.ts +3 -2
- package/dist/credential-stores/index.js +3 -2
- package/dist/data-access/index.d.ts +5 -4
- package/dist/data-access/index.js +4 -4
- 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 +2 -2
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/skills.d.ts +19 -19
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- 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/tools.js +17 -5
- 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 +12 -12
- package/dist/data-access/runtime/auth.d.ts +9 -9
- package/dist/data-access/runtime/auth.js +19 -21
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/messages.d.ts +12 -12
- package/dist/data-access/runtime/organizations.d.ts +28 -4
- package/dist/data-access/runtime/organizations.js +131 -9
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +10 -1
- package/dist/data-access/runtime/scheduledTriggerInvocations.js +13 -1
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +359 -359
- package/dist/db/runtime/runtime-schema.d.ts +298 -298
- package/dist/index.d.ts +8 -6
- package/dist/index.js +8 -7
- package/dist/types/utility.d.ts +1 -0
- package/dist/types/utility.js +2 -1
- package/dist/utils/credential-store-utils.js +1 -0
- package/dist/utils/error.d.ts +51 -48
- package/dist/utils/error.js +3 -0
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +4 -4
- package/dist/utils/third-party-mcp-servers/composio-client.d.ts +20 -4
- package/dist/utils/third-party-mcp-servers/composio-client.js +51 -25
- package/dist/utils/third-party-mcp-servers/index.d.ts +2 -2
- package/dist/utils/third-party-mcp-servers/index.js +2 -2
- package/dist/utils/third-party-mcp-servers/third-party-check.d.ts +3 -4
- package/dist/utils/third-party-mcp-servers/third-party-check.js +1 -2
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +2026 -2005
- package/dist/validation/schemas.js +3 -1
- package/drizzle/runtime/0023_lazy_energizer.sql +1 -0
- package/drizzle/runtime/0024_moaning_kingpin.sql +1 -0
- package/drizzle/runtime/meta/0024_snapshot.json +4270 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +11 -6
|
@@ -10,11 +10,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
13
15
|
tenantId: string;
|
|
14
16
|
projectId: string;
|
|
15
17
|
agentId: string;
|
|
16
|
-
createdAt: string;
|
|
17
|
-
updatedAt: string;
|
|
18
18
|
headersSchema: unknown;
|
|
19
19
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
20
20
|
} | undefined>;
|
|
@@ -22,11 +22,11 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
23
23
|
}) => Promise<{
|
|
24
24
|
id: string;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
updatedAt: string;
|
|
25
27
|
tenantId: string;
|
|
26
28
|
projectId: string;
|
|
27
29
|
agentId: string;
|
|
28
|
-
createdAt: string;
|
|
29
|
-
updatedAt: string;
|
|
30
30
|
headersSchema: unknown;
|
|
31
31
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
32
32
|
}[]>;
|
|
@@ -44,11 +44,11 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
44
44
|
}>;
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
46
|
id: string;
|
|
47
|
+
createdAt: string;
|
|
48
|
+
updatedAt: string;
|
|
47
49
|
tenantId: string;
|
|
48
50
|
projectId: string;
|
|
49
51
|
agentId: string;
|
|
50
|
-
createdAt: string;
|
|
51
|
-
updatedAt: string;
|
|
52
52
|
headersSchema: unknown;
|
|
53
53
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
54
54
|
}>;
|
|
@@ -84,11 +84,11 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
84
84
|
data: ContextConfigInsert;
|
|
85
85
|
}) => Promise<{
|
|
86
86
|
id: string;
|
|
87
|
+
createdAt: string;
|
|
88
|
+
updatedAt: string;
|
|
87
89
|
tenantId: string;
|
|
88
90
|
projectId: string;
|
|
89
91
|
agentId: string;
|
|
90
|
-
createdAt: string;
|
|
91
|
-
updatedAt: string;
|
|
92
92
|
headersSchema: unknown;
|
|
93
93
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
94
94
|
}>;
|
|
@@ -66,10 +66,10 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
66
66
|
dataComponentId: string;
|
|
67
67
|
}) => Promise<{
|
|
68
68
|
id: string;
|
|
69
|
+
createdAt: string;
|
|
69
70
|
tenantId: string;
|
|
70
71
|
projectId: string;
|
|
71
72
|
agentId: string;
|
|
72
|
-
createdAt: string;
|
|
73
73
|
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
@@ -108,10 +108,10 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
108
108
|
dataComponentId: string;
|
|
109
109
|
}) => Promise<{
|
|
110
110
|
id: string;
|
|
111
|
+
createdAt: string;
|
|
111
112
|
tenantId: string;
|
|
112
113
|
projectId: string;
|
|
113
114
|
agentId: string;
|
|
114
|
-
createdAt: string;
|
|
115
115
|
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
-
id: string;
|
|
57
56
|
name: string;
|
|
58
|
-
|
|
57
|
+
id: string;
|
|
58
|
+
createdAt: string;
|
|
59
|
+
updatedAt: string;
|
|
59
60
|
tenantId: string;
|
|
60
61
|
projectId: string;
|
|
61
62
|
agentId: string;
|
|
62
|
-
|
|
63
|
-
updatedAt: string;
|
|
63
|
+
description: string | null;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
95
95
|
data: FunctionToolApiInsert;
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
|
-
id: string;
|
|
99
98
|
name: string;
|
|
100
|
-
|
|
99
|
+
id: string;
|
|
100
|
+
createdAt: string;
|
|
101
|
+
updatedAt: string;
|
|
101
102
|
tenantId: string;
|
|
102
103
|
projectId: string;
|
|
103
104
|
agentId: string;
|
|
104
|
-
|
|
105
|
-
updatedAt: string;
|
|
105
|
+
description: string | null;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -158,15 +158,15 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
158
158
|
}> | null;
|
|
159
159
|
}) => Promise<{
|
|
160
160
|
id: string;
|
|
161
|
+
createdAt: string;
|
|
162
|
+
updatedAt: string;
|
|
161
163
|
tenantId: string;
|
|
162
164
|
projectId: string;
|
|
163
165
|
agentId: string;
|
|
164
|
-
|
|
165
|
-
updatedAt: string;
|
|
166
|
+
subAgentId: string;
|
|
166
167
|
toolPolicies: Record<string, {
|
|
167
168
|
needsApproval?: boolean;
|
|
168
169
|
}> | null;
|
|
169
|
-
subAgentId: string;
|
|
170
170
|
functionToolId: string;
|
|
171
171
|
}>;
|
|
172
172
|
/**
|
|
@@ -223,15 +223,15 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
223
223
|
}> | null;
|
|
224
224
|
}) => Promise<{
|
|
225
225
|
id: string;
|
|
226
|
+
createdAt: string;
|
|
227
|
+
updatedAt: string;
|
|
226
228
|
tenantId: string;
|
|
227
229
|
projectId: string;
|
|
228
230
|
agentId: string;
|
|
229
|
-
|
|
230
|
-
updatedAt: string;
|
|
231
|
+
subAgentId: string;
|
|
231
232
|
toolPolicies: Record<string, {
|
|
232
233
|
needsApproval?: boolean;
|
|
233
234
|
}> | null;
|
|
234
|
-
subAgentId: string;
|
|
235
235
|
functionToolId: string;
|
|
236
236
|
}>;
|
|
237
237
|
//#endregion
|
|
@@ -8,14 +8,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
skillId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
|
|
11
|
+
metadata: Record<string, string> | null;
|
|
12
12
|
name: string;
|
|
13
|
-
|
|
14
|
-
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
13
|
+
id: string;
|
|
16
14
|
createdAt: string;
|
|
17
15
|
updatedAt: string;
|
|
18
|
-
|
|
16
|
+
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
description: string;
|
|
19
19
|
content: string;
|
|
20
20
|
} | null>;
|
|
21
21
|
declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -41,25 +41,25 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
41
41
|
};
|
|
42
42
|
}>;
|
|
43
43
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
44
|
-
|
|
44
|
+
metadata: Record<string, string> | null;
|
|
45
45
|
name: string;
|
|
46
|
-
|
|
47
|
-
tenantId: string;
|
|
48
|
-
projectId: string;
|
|
46
|
+
id: string;
|
|
49
47
|
createdAt: string;
|
|
50
48
|
updatedAt: string;
|
|
51
|
-
|
|
49
|
+
tenantId: string;
|
|
50
|
+
projectId: string;
|
|
51
|
+
description: string;
|
|
52
52
|
content: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
55
|
-
|
|
55
|
+
metadata: Record<string, string> | null;
|
|
56
56
|
name: string;
|
|
57
|
-
|
|
58
|
-
tenantId: string;
|
|
59
|
-
projectId: string;
|
|
57
|
+
id: string;
|
|
60
58
|
createdAt: string;
|
|
61
59
|
updatedAt: string;
|
|
62
|
-
|
|
60
|
+
tenantId: string;
|
|
61
|
+
projectId: string;
|
|
62
|
+
description: string;
|
|
63
63
|
content: string;
|
|
64
64
|
}>;
|
|
65
65
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -92,15 +92,15 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
92
92
|
alwaysLoaded?: boolean;
|
|
93
93
|
}) => Promise<{
|
|
94
94
|
id: string;
|
|
95
|
+
createdAt: string;
|
|
96
|
+
updatedAt: string;
|
|
95
97
|
tenantId: string;
|
|
96
98
|
projectId: string;
|
|
97
99
|
agentId: string;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
subAgentId: string;
|
|
101
|
+
skillId: string;
|
|
100
102
|
index: number;
|
|
101
103
|
alwaysLoaded: boolean;
|
|
102
|
-
skillId: string;
|
|
103
|
-
subAgentId: string;
|
|
104
104
|
}>;
|
|
105
105
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
106
106
|
scopes: AgentScopeConfig;
|
|
@@ -9,15 +9,15 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
headers: Record<string, string> | null;
|
|
12
13
|
id: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
13
16
|
tenantId: string;
|
|
14
17
|
projectId: string;
|
|
15
18
|
agentId: string;
|
|
16
|
-
createdAt: string;
|
|
17
|
-
updatedAt: string;
|
|
18
|
-
headers: Record<string, string> | null;
|
|
19
|
-
externalAgentId: string;
|
|
20
19
|
subAgentId: string;
|
|
20
|
+
externalAgentId: 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
|
+
headers: Record<string, string> | null;
|
|
47
48
|
id: string;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
updatedAt: string;
|
|
48
51
|
tenantId: string;
|
|
49
52
|
projectId: string;
|
|
50
53
|
agentId: string;
|
|
51
|
-
createdAt: string;
|
|
52
|
-
updatedAt: string;
|
|
53
|
-
headers: Record<string, string> | null;
|
|
54
|
-
externalAgentId: string;
|
|
55
54
|
subAgentId: string;
|
|
55
|
+
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
+
headers: Record<string, string> | null;
|
|
60
61
|
id: string;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
updatedAt: string;
|
|
61
64
|
tenantId: string;
|
|
62
65
|
projectId: string;
|
|
63
66
|
agentId: string;
|
|
64
|
-
createdAt: string;
|
|
65
|
-
updatedAt: string;
|
|
66
|
-
headers: Record<string, string> | null;
|
|
67
|
-
externalAgentId: string;
|
|
68
67
|
subAgentId: string;
|
|
68
|
+
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -180,15 +180,15 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
180
180
|
headers?: Record<string, string> | null;
|
|
181
181
|
};
|
|
182
182
|
}) => Promise<{
|
|
183
|
+
headers: Record<string, string> | null;
|
|
183
184
|
id: string;
|
|
185
|
+
createdAt: string;
|
|
186
|
+
updatedAt: string;
|
|
184
187
|
tenantId: string;
|
|
185
188
|
projectId: string;
|
|
186
189
|
agentId: string;
|
|
187
|
-
createdAt: string;
|
|
188
|
-
updatedAt: string;
|
|
189
|
-
headers: Record<string, string> | null;
|
|
190
|
-
externalAgentId: string;
|
|
191
190
|
subAgentId: string;
|
|
191
|
+
externalAgentId: string;
|
|
192
192
|
}>;
|
|
193
193
|
/**
|
|
194
194
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -197,15 +197,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
197
197
|
scopes: SubAgentScopeConfig;
|
|
198
198
|
externalAgentId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
|
+
headers: Record<string, string> | null;
|
|
200
201
|
id: string;
|
|
202
|
+
createdAt: string;
|
|
203
|
+
updatedAt: string;
|
|
201
204
|
tenantId: string;
|
|
202
205
|
projectId: string;
|
|
203
206
|
agentId: string;
|
|
204
|
-
createdAt: string;
|
|
205
|
-
updatedAt: string;
|
|
206
|
-
headers: Record<string, string> | null;
|
|
207
|
-
externalAgentId: string;
|
|
208
207
|
subAgentId: string;
|
|
208
|
+
externalAgentId: string;
|
|
209
209
|
} | undefined>;
|
|
210
210
|
/**
|
|
211
211
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -218,15 +218,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
218
218
|
headers?: Record<string, string> | null;
|
|
219
219
|
};
|
|
220
220
|
}) => Promise<{
|
|
221
|
+
headers: Record<string, string> | null;
|
|
221
222
|
id: string;
|
|
223
|
+
createdAt: string;
|
|
224
|
+
updatedAt: string;
|
|
222
225
|
tenantId: string;
|
|
223
226
|
projectId: string;
|
|
224
227
|
agentId: string;
|
|
225
|
-
createdAt: string;
|
|
226
|
-
updatedAt: string;
|
|
227
|
-
headers: Record<string, string> | null;
|
|
228
|
-
externalAgentId: string;
|
|
229
228
|
subAgentId: string;
|
|
229
|
+
externalAgentId: string;
|
|
230
230
|
}>;
|
|
231
231
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
232
232
|
scopes: SubAgentScopeConfig;
|
|
@@ -10,11 +10,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
13
15
|
tenantId: string;
|
|
14
16
|
projectId: string;
|
|
15
17
|
agentId: string;
|
|
16
|
-
createdAt: string;
|
|
17
|
-
updatedAt: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -45,11 +45,11 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
+
createdAt: string;
|
|
49
|
+
updatedAt: string;
|
|
48
50
|
tenantId: string;
|
|
49
51
|
projectId: string;
|
|
50
52
|
agentId: string;
|
|
51
|
-
createdAt: string;
|
|
52
|
-
updatedAt: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -58,11 +58,11 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
+
createdAt: string;
|
|
62
|
+
updatedAt: string;
|
|
61
63
|
tenantId: string;
|
|
62
64
|
projectId: string;
|
|
63
65
|
agentId: string;
|
|
64
|
-
createdAt: string;
|
|
65
|
-
updatedAt: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -127,11 +127,11 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
129
|
id: string;
|
|
130
|
+
createdAt: string;
|
|
131
|
+
updatedAt: string;
|
|
130
132
|
tenantId: string;
|
|
131
133
|
projectId: string;
|
|
132
134
|
agentId: string;
|
|
133
|
-
createdAt: string;
|
|
134
|
-
updatedAt: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -146,11 +146,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
148
|
id: string;
|
|
149
|
+
createdAt: string;
|
|
150
|
+
updatedAt: string;
|
|
149
151
|
tenantId: string;
|
|
150
152
|
projectId: string;
|
|
151
153
|
agentId: string;
|
|
152
|
-
createdAt: string;
|
|
153
|
-
updatedAt: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -160,11 +160,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
160
160
|
*/
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
162
|
id: string;
|
|
163
|
+
createdAt: string;
|
|
164
|
+
updatedAt: string;
|
|
163
165
|
tenantId: string;
|
|
164
166
|
projectId: string;
|
|
165
167
|
agentId: string;
|
|
166
|
-
createdAt: string;
|
|
167
|
-
updatedAt: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -204,19 +204,19 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
+
headers: Record<string, string> | null;
|
|
207
208
|
id: string;
|
|
209
|
+
createdAt: string;
|
|
210
|
+
updatedAt: string;
|
|
208
211
|
tenantId: string;
|
|
209
212
|
projectId: string;
|
|
210
213
|
agentId: string;
|
|
211
|
-
|
|
212
|
-
updatedAt: string;
|
|
214
|
+
subAgentId: string;
|
|
213
215
|
toolId: string;
|
|
214
|
-
|
|
216
|
+
selectedTools: string[] | null;
|
|
215
217
|
toolPolicies: Record<string, {
|
|
216
218
|
needsApproval?: boolean;
|
|
217
219
|
}> | null;
|
|
218
|
-
subAgentId: string;
|
|
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
|
+
headers: Record<string, string> | null;
|
|
251
252
|
id: string;
|
|
253
|
+
createdAt: string;
|
|
254
|
+
updatedAt: string;
|
|
252
255
|
tenantId: string;
|
|
253
256
|
projectId: string;
|
|
254
257
|
agentId: string;
|
|
255
|
-
|
|
256
|
-
updatedAt: string;
|
|
258
|
+
subAgentId: string;
|
|
257
259
|
toolId: string;
|
|
258
|
-
|
|
260
|
+
selectedTools: string[] | null;
|
|
259
261
|
toolPolicies: Record<string, {
|
|
260
262
|
needsApproval?: boolean;
|
|
261
263
|
}> | null;
|
|
262
|
-
subAgentId: string;
|
|
263
|
-
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
266
266
|
scopes: SubAgentScopeConfig;
|
|
@@ -9,13 +9,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
headers: Record<string, string> | null;
|
|
12
13
|
id: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
13
16
|
tenantId: string;
|
|
14
17
|
projectId: string;
|
|
15
18
|
agentId: string;
|
|
16
|
-
createdAt: string;
|
|
17
|
-
updatedAt: string;
|
|
18
|
-
headers: Record<string, string> | null;
|
|
19
19
|
subAgentId: string;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
@@ -44,26 +44,26 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
44
44
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
+
headers: Record<string, string> | null;
|
|
47
48
|
id: string;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
updatedAt: string;
|
|
48
51
|
tenantId: string;
|
|
49
52
|
projectId: string;
|
|
50
53
|
agentId: string;
|
|
51
|
-
createdAt: string;
|
|
52
|
-
updatedAt: string;
|
|
53
|
-
headers: Record<string, string> | null;
|
|
54
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
|
+
headers: Record<string, string> | null;
|
|
60
61
|
id: string;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
updatedAt: string;
|
|
61
64
|
tenantId: string;
|
|
62
65
|
projectId: string;
|
|
63
66
|
agentId: string;
|
|
64
|
-
createdAt: string;
|
|
65
|
-
updatedAt: string;
|
|
66
|
-
headers: Record<string, string> | null;
|
|
67
67
|
subAgentId: string;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
@@ -210,13 +210,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
210
210
|
headers?: Record<string, string> | null;
|
|
211
211
|
};
|
|
212
212
|
}) => Promise<{
|
|
213
|
+
headers: Record<string, string> | null;
|
|
213
214
|
id: string;
|
|
215
|
+
createdAt: string;
|
|
216
|
+
updatedAt: string;
|
|
214
217
|
tenantId: string;
|
|
215
218
|
projectId: string;
|
|
216
219
|
agentId: string;
|
|
217
|
-
createdAt: string;
|
|
218
|
-
updatedAt: string;
|
|
219
|
-
headers: Record<string, string> | null;
|
|
220
220
|
subAgentId: string;
|
|
221
221
|
targetAgentId: string;
|
|
222
222
|
}>;
|
|
@@ -227,13 +227,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
227
227
|
scopes: SubAgentScopeConfig;
|
|
228
228
|
targetAgentId: string;
|
|
229
229
|
}) => Promise<{
|
|
230
|
+
headers: Record<string, string> | null;
|
|
230
231
|
id: string;
|
|
232
|
+
createdAt: string;
|
|
233
|
+
updatedAt: string;
|
|
231
234
|
tenantId: string;
|
|
232
235
|
projectId: string;
|
|
233
236
|
agentId: string;
|
|
234
|
-
createdAt: string;
|
|
235
|
-
updatedAt: string;
|
|
236
|
-
headers: Record<string, string> | null;
|
|
237
237
|
subAgentId: string;
|
|
238
238
|
targetAgentId: string;
|
|
239
239
|
} | undefined>;
|
|
@@ -248,13 +248,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
248
248
|
headers?: Record<string, string> | null;
|
|
249
249
|
};
|
|
250
250
|
}) => Promise<{
|
|
251
|
+
headers: Record<string, string> | null;
|
|
251
252
|
id: string;
|
|
253
|
+
createdAt: string;
|
|
254
|
+
updatedAt: string;
|
|
252
255
|
tenantId: string;
|
|
253
256
|
projectId: string;
|
|
254
257
|
agentId: string;
|
|
255
|
-
createdAt: string;
|
|
256
|
-
updatedAt: string;
|
|
257
|
-
headers: Record<string, string> | null;
|
|
258
258
|
subAgentId: string;
|
|
259
259
|
targetAgentId: string;
|
|
260
260
|
}>;
|
|
@@ -9,14 +9,14 @@ 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
|
+
id: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
15
16
|
tenantId: string;
|
|
16
17
|
projectId: string;
|
|
17
18
|
agentId: string;
|
|
18
|
-
|
|
19
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
19
|
+
description: string | null;
|
|
20
20
|
models: {
|
|
21
21
|
base?: {
|
|
22
22
|
model?: string | undefined;
|
|
@@ -34,20 +34,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
34
34
|
stopWhen: {
|
|
35
35
|
stepCountIs?: number | undefined;
|
|
36
36
|
} | null;
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
prompt: string | null;
|
|
38
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
41
41
|
scopes: AgentScopeConfig;
|
|
42
42
|
}) => Promise<{
|
|
43
|
-
id: string;
|
|
44
43
|
name: string;
|
|
45
|
-
|
|
44
|
+
id: string;
|
|
45
|
+
createdAt: string;
|
|
46
|
+
updatedAt: string;
|
|
46
47
|
tenantId: string;
|
|
47
48
|
projectId: string;
|
|
48
49
|
agentId: string;
|
|
49
|
-
|
|
50
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
50
|
+
description: string | null;
|
|
51
51
|
models: {
|
|
52
52
|
base?: {
|
|
53
53
|
model?: string | undefined;
|
|
@@ -65,8 +65,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
65
65
|
stopWhen: {
|
|
66
66
|
stepCountIs?: number | undefined;
|
|
67
67
|
} | null;
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
prompt: string | null;
|
|
69
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
70
70
|
}[]>;
|
|
71
71
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
72
72
|
scopes: AgentScopeConfig;
|
|
@@ -109,14 +109,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
109
109
|
};
|
|
110
110
|
}>;
|
|
111
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
|
-
id: string;
|
|
113
112
|
name: string;
|
|
114
|
-
|
|
113
|
+
id: string;
|
|
114
|
+
createdAt: string;
|
|
115
|
+
updatedAt: string;
|
|
115
116
|
tenantId: string;
|
|
116
117
|
projectId: string;
|
|
117
118
|
agentId: string;
|
|
118
|
-
|
|
119
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
119
|
+
description: string | null;
|
|
120
120
|
models: {
|
|
121
121
|
base?: {
|
|
122
122
|
model?: string | undefined;
|
|
@@ -134,8 +134,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
134
134
|
stopWhen: {
|
|
135
135
|
stepCountIs?: number | undefined;
|
|
136
136
|
} | null;
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
prompt: string | null;
|
|
138
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
139
139
|
}>;
|
|
140
140
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
141
141
|
scopes: AgentScopeConfig;
|