@inkeep/agents-core 0.80.5 → 0.80.7
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 +1 -0
- package/dist/auth/auth.js +1 -0
- package/dist/auth/permissions.d.ts +24 -21
- package/dist/data-access/manage/agents.d.ts +5 -5
- 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 +4 -4
- package/dist/data-access/manage/skills.d.ts +5 -5
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +10 -10
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +3 -3
- package/dist/data-access/manage/tools.d.ts +12 -12
- package/dist/data-access/manage/triggers.d.ts +1 -1
- package/dist/data-access/runtime/apiKeys.d.ts +4 -4
- package/dist/data-access/runtime/apps.d.ts +4 -4
- package/dist/data-access/runtime/conversations.d.ts +8 -8
- 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 +6 -6
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +5 -5
- package/dist/data-access/runtime/tasks.d.ts +1 -1
- package/dist/db/manage/manage-schema.d.ts +397 -397
- package/dist/db/runtime/runtime-schema.d.ts +418 -418
- 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_fc26da61d3f761277fbc021fa297f7ea → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_7e984a2c608e4e130e672ce3746dabdf}/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_fc26da61d3f761277fbc021fa297f7ea → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_7e984a2c608e4e130e672ce3746dabdf}/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_fc26da61d3f761277fbc021fa297f7ea → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_7e984a2c608e4e130e672ce3746dabdf}/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_fc26da61d3f761277fbc021fa297f7ea → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.7.0_7e984a2c608e4e130e672ce3746dabdf}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +1 -1
- package/dist/test-utils/mocks/logger.js +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +26 -26
- package/dist/validation/schemas.d.ts +473 -473
- package/package.json +3 -3
package/dist/auth/auth.d.ts
CHANGED
|
@@ -2705,6 +2705,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
2705
2705
|
ACCESS_DENIED: better_auth0.RawError<"ACCESS_DENIED">;
|
|
2706
2706
|
INVALID_USER_CODE: better_auth0.RawError<"INVALID_USER_CODE">;
|
|
2707
2707
|
DEVICE_CODE_ALREADY_PROCESSED: better_auth0.RawError<"DEVICE_CODE_ALREADY_PROCESSED">;
|
|
2708
|
+
DEVICE_CODE_NOT_CLAIMED: better_auth0.RawError<"DEVICE_CODE_NOT_CLAIMED">;
|
|
2708
2709
|
POLLING_TOO_FREQUENTLY: better_auth0.RawError<"POLLING_TOO_FREQUENTLY">;
|
|
2709
2710
|
INVALID_DEVICE_CODE_STATUS: better_auth0.RawError<"INVALID_DEVICE_CODE_STATUS">;
|
|
2710
2711
|
AUTHENTICATION_REQUIRED: better_auth0.RawError<"AUTHENTICATION_REQUIRED">;
|
package/dist/auth/auth.js
CHANGED
|
@@ -194,6 +194,7 @@ function createAuth(config) {
|
|
|
194
194
|
oAuthProxy({ productionURL: env.OAUTH_PROXY_PRODUCTION_URL || config.baseURL }),
|
|
195
195
|
organization({
|
|
196
196
|
allowUserToCreateOrganization: false,
|
|
197
|
+
requireEmailVerificationOnInvitation: false,
|
|
197
198
|
ac,
|
|
198
199
|
roles: {
|
|
199
200
|
member: memberRole,
|
|
@@ -4,26 +4,29 @@ import { organizationClient } from "better-auth/client/plugins";
|
|
|
4
4
|
|
|
5
5
|
//#region src/auth/permissions.d.ts
|
|
6
6
|
declare const ac: AccessControl;
|
|
7
|
-
declare const memberRole: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
7
|
+
declare const memberRole: better_auth_plugins7.Role<better_auth_plugins7.ExactRoleStatements<{
|
|
8
|
+
readonly organization: readonly [];
|
|
9
|
+
readonly member: readonly [];
|
|
10
|
+
readonly invitation: readonly [];
|
|
11
|
+
readonly team: readonly [];
|
|
12
|
+
readonly ac: readonly ["read"];
|
|
13
|
+
readonly project: ["read"];
|
|
14
|
+
}>, better_auth_plugins7.Statements>;
|
|
15
|
+
declare const adminRole: better_auth_plugins7.Role<better_auth_plugins7.ExactRoleStatements<{
|
|
16
|
+
readonly organization: readonly ["update"];
|
|
17
|
+
readonly invitation: readonly ["create", "cancel"];
|
|
18
|
+
readonly member: readonly ["create", "update", "delete"];
|
|
19
|
+
readonly team: readonly ["create", "update", "delete"];
|
|
20
|
+
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
21
|
+
readonly project: ["create", "read", "update", "delete"];
|
|
22
|
+
}>, better_auth_plugins7.Statements>;
|
|
23
|
+
declare const ownerRole: better_auth_plugins7.Role<better_auth_plugins7.ExactRoleStatements<{
|
|
24
|
+
readonly organization: readonly ["update", "delete"];
|
|
25
|
+
readonly member: readonly ["create", "update", "delete"];
|
|
26
|
+
readonly invitation: readonly ["create", "cancel"];
|
|
27
|
+
readonly team: readonly ["create", "update", "delete"];
|
|
28
|
+
readonly ac: readonly ["create", "read", "update", "delete"];
|
|
29
|
+
readonly project: ["create", "read", "update", "delete"];
|
|
30
|
+
}>, better_auth_plugins7.Statements>;
|
|
28
31
|
//#endregion
|
|
29
32
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -16,8 +16,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
16
16
|
updatedAt: string;
|
|
17
17
|
description: string | null;
|
|
18
18
|
prompt: string | null;
|
|
19
|
-
tenantId: string;
|
|
20
19
|
projectId: string;
|
|
20
|
+
tenantId: string;
|
|
21
21
|
models: {
|
|
22
22
|
base?: {
|
|
23
23
|
model?: string | undefined;
|
|
@@ -69,8 +69,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
69
69
|
updatedAt: string;
|
|
70
70
|
description: string | null;
|
|
71
71
|
prompt: string | null;
|
|
72
|
-
tenantId: string;
|
|
73
72
|
projectId: string;
|
|
73
|
+
tenantId: string;
|
|
74
74
|
models: {
|
|
75
75
|
base?: {
|
|
76
76
|
model?: string | undefined;
|
|
@@ -119,8 +119,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
119
119
|
updatedAt: string;
|
|
120
120
|
description: string | null;
|
|
121
121
|
prompt: string | null;
|
|
122
|
-
tenantId: string;
|
|
123
122
|
projectId: string;
|
|
123
|
+
tenantId: string;
|
|
124
124
|
models: {
|
|
125
125
|
base?: {
|
|
126
126
|
model?: string | undefined;
|
|
@@ -166,8 +166,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
166
166
|
updatedAt: string;
|
|
167
167
|
description: string | null;
|
|
168
168
|
prompt: string | null;
|
|
169
|
-
tenantId: string;
|
|
170
169
|
projectId: string;
|
|
170
|
+
tenantId: string;
|
|
171
171
|
models: {
|
|
172
172
|
base?: {
|
|
173
173
|
model?: string | undefined;
|
|
@@ -296,8 +296,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
296
296
|
updatedAt: string;
|
|
297
297
|
description: string | null;
|
|
298
298
|
prompt: string | null;
|
|
299
|
-
tenantId: string;
|
|
300
299
|
projectId: string;
|
|
300
|
+
tenantId: string;
|
|
301
301
|
models: {
|
|
302
302
|
base?: {
|
|
303
303
|
model?: string | undefined;
|
|
@@ -14,8 +14,8 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
description: string | null;
|
|
17
|
-
tenantId: string;
|
|
18
17
|
projectId: string;
|
|
18
|
+
tenantId: 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
|
-
tenantId: string;
|
|
74
73
|
projectId: string;
|
|
74
|
+
tenantId: 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
|
-
tenantId: string;
|
|
147
146
|
projectId: string;
|
|
147
|
+
tenantId: 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
|
-
tenantId: string;
|
|
190
189
|
projectId: string;
|
|
190
|
+
tenantId: 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
|
-
tenantId: string;
|
|
16
15
|
projectId: string;
|
|
16
|
+
tenantId: 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
|
-
tenantId: string;
|
|
28
27
|
projectId: string;
|
|
28
|
+
tenantId: 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
|
-
tenantId: string;
|
|
50
49
|
projectId: string;
|
|
50
|
+
tenantId: 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
|
-
tenantId: string;
|
|
90
89
|
projectId: string;
|
|
90
|
+
tenantId: 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
|
-
tenantId: string;
|
|
71
70
|
projectId: string;
|
|
71
|
+
tenantId: 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
|
-
tenantId: string;
|
|
113
112
|
projectId: string;
|
|
113
|
+
tenantId: 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
|
-
tenantId: string;
|
|
62
61
|
projectId: string;
|
|
62
|
+
tenantId: 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
|
-
tenantId: string;
|
|
104
103
|
projectId: string;
|
|
104
|
+
tenantId: string;
|
|
105
105
|
agentId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
@@ -160,8 +160,8 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
160
160
|
id: string;
|
|
161
161
|
createdAt: string;
|
|
162
162
|
updatedAt: string;
|
|
163
|
-
tenantId: string;
|
|
164
163
|
projectId: string;
|
|
164
|
+
tenantId: string;
|
|
165
165
|
agentId: string;
|
|
166
166
|
subAgentId: string;
|
|
167
167
|
toolPolicies: Record<string, {
|
|
@@ -225,8 +225,8 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
225
225
|
id: string;
|
|
226
226
|
createdAt: string;
|
|
227
227
|
updatedAt: string;
|
|
228
|
-
tenantId: string;
|
|
229
228
|
projectId: string;
|
|
229
|
+
tenantId: string;
|
|
230
230
|
agentId: string;
|
|
231
231
|
subAgentId: string;
|
|
232
232
|
toolPolicies: Record<string, {
|
|
@@ -21,9 +21,9 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
21
21
|
updatedAt: string;
|
|
22
22
|
metadata: Record<string, string> | null;
|
|
23
23
|
description: string;
|
|
24
|
-
tenantId: string;
|
|
25
24
|
content: string;
|
|
26
25
|
projectId: string;
|
|
26
|
+
tenantId: string;
|
|
27
27
|
} | null>;
|
|
28
28
|
declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
|
|
29
29
|
scopes: ProjectScopeConfig;
|
|
@@ -116,9 +116,9 @@ declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiIn
|
|
|
116
116
|
updatedAt: string;
|
|
117
117
|
metadata: Record<string, string> | null;
|
|
118
118
|
description: string;
|
|
119
|
-
tenantId: string;
|
|
120
119
|
content: string;
|
|
121
120
|
projectId: string;
|
|
121
|
+
tenantId: string;
|
|
122
122
|
}>;
|
|
123
123
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
124
124
|
scopes: ProjectScopeConfig;
|
|
@@ -142,13 +142,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
142
142
|
id: string;
|
|
143
143
|
createdAt: string;
|
|
144
144
|
updatedAt: string;
|
|
145
|
-
|
|
145
|
+
skillId: string;
|
|
146
146
|
projectId: string;
|
|
147
|
+
tenantId: string;
|
|
147
148
|
agentId: string;
|
|
148
|
-
|
|
149
|
+
subAgentId: string;
|
|
149
150
|
index: number;
|
|
150
151
|
alwaysLoaded: boolean;
|
|
151
|
-
subAgentId: string;
|
|
152
152
|
}>;
|
|
153
153
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
154
154
|
scopes: AgentScopeConfig;
|
|
@@ -13,8 +13,8 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
headers: Record<string, string> | null;
|
|
16
|
-
tenantId: string;
|
|
17
16
|
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
18
18
|
agentId: string;
|
|
19
19
|
subAgentId: string;
|
|
20
20
|
externalAgentId: string;
|
|
@@ -48,8 +48,8 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
50
|
headers: Record<string, string> | null;
|
|
51
|
-
tenantId: string;
|
|
52
51
|
projectId: string;
|
|
52
|
+
tenantId: string;
|
|
53
53
|
agentId: string;
|
|
54
54
|
subAgentId: string;
|
|
55
55
|
externalAgentId: string;
|
|
@@ -61,8 +61,8 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
63
|
headers: Record<string, string> | null;
|
|
64
|
-
tenantId: string;
|
|
65
64
|
projectId: string;
|
|
65
|
+
tenantId: string;
|
|
66
66
|
agentId: string;
|
|
67
67
|
subAgentId: string;
|
|
68
68
|
externalAgentId: string;
|
|
@@ -190,8 +190,8 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
190
190
|
createdAt: string;
|
|
191
191
|
updatedAt: string;
|
|
192
192
|
headers: Record<string, string> | null;
|
|
193
|
-
tenantId: string;
|
|
194
193
|
projectId: string;
|
|
194
|
+
tenantId: string;
|
|
195
195
|
agentId: string;
|
|
196
196
|
subAgentId: string;
|
|
197
197
|
externalAgentId: string;
|
|
@@ -207,8 +207,8 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
209
|
headers: Record<string, string> | null;
|
|
210
|
-
tenantId: string;
|
|
211
210
|
projectId: string;
|
|
211
|
+
tenantId: string;
|
|
212
212
|
agentId: string;
|
|
213
213
|
subAgentId: string;
|
|
214
214
|
externalAgentId: string;
|
|
@@ -228,8 +228,8 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
228
228
|
createdAt: string;
|
|
229
229
|
updatedAt: string;
|
|
230
230
|
headers: Record<string, string> | null;
|
|
231
|
-
tenantId: string;
|
|
232
231
|
projectId: string;
|
|
232
|
+
tenantId: string;
|
|
233
233
|
agentId: string;
|
|
234
234
|
subAgentId: string;
|
|
235
235
|
externalAgentId: string;
|
|
@@ -12,8 +12,8 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
15
|
projectId: string;
|
|
16
|
+
tenantId: 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
|
-
tenantId: string;
|
|
51
50
|
projectId: string;
|
|
51
|
+
tenantId: 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
|
-
tenantId: string;
|
|
64
63
|
projectId: string;
|
|
64
|
+
tenantId: 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
|
-
tenantId: string;
|
|
133
132
|
projectId: string;
|
|
133
|
+
tenantId: 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
|
-
tenantId: string;
|
|
152
151
|
projectId: string;
|
|
152
|
+
tenantId: 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
|
-
tenantId: string;
|
|
166
165
|
projectId: string;
|
|
166
|
+
tenantId: string;
|
|
167
167
|
agentId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
@@ -208,11 +208,11 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
208
208
|
createdAt: string;
|
|
209
209
|
updatedAt: string;
|
|
210
210
|
headers: Record<string, string> | null;
|
|
211
|
-
tenantId: string;
|
|
212
211
|
projectId: string;
|
|
213
|
-
|
|
212
|
+
tenantId: string;
|
|
214
213
|
agentId: string;
|
|
215
214
|
subAgentId: string;
|
|
215
|
+
toolId: string;
|
|
216
216
|
selectedTools: string[] | null;
|
|
217
217
|
toolPolicies: Record<string, {
|
|
218
218
|
needsApproval?: boolean;
|
|
@@ -252,11 +252,11 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
252
252
|
createdAt: string;
|
|
253
253
|
updatedAt: string;
|
|
254
254
|
headers: Record<string, string> | null;
|
|
255
|
-
tenantId: string;
|
|
256
255
|
projectId: string;
|
|
257
|
-
|
|
256
|
+
tenantId: string;
|
|
258
257
|
agentId: string;
|
|
259
258
|
subAgentId: string;
|
|
259
|
+
toolId: string;
|
|
260
260
|
selectedTools: string[] | null;
|
|
261
261
|
toolPolicies: Record<string, {
|
|
262
262
|
needsApproval?: boolean;
|
|
@@ -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
|
-
tenantId: string;
|
|
17
16
|
projectId: string;
|
|
17
|
+
tenantId: 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
|
-
tenantId: string;
|
|
52
51
|
projectId: string;
|
|
52
|
+
tenantId: 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
|
-
tenantId: string;
|
|
65
64
|
projectId: string;
|
|
65
|
+
tenantId: 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
|
-
tenantId: string;
|
|
230
229
|
projectId: string;
|
|
230
|
+
tenantId: 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
|
-
tenantId: string;
|
|
247
246
|
projectId: string;
|
|
247
|
+
tenantId: 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
|
-
tenantId: string;
|
|
268
267
|
projectId: string;
|
|
268
|
+
tenantId: string;
|
|
269
269
|
agentId: string;
|
|
270
270
|
subAgentId: string;
|
|
271
271
|
targetAgentId: string;
|
|
@@ -15,8 +15,8 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
description: string | null;
|
|
17
17
|
prompt: string | null;
|
|
18
|
-
tenantId: string;
|
|
19
18
|
projectId: string;
|
|
19
|
+
tenantId: string;
|
|
20
20
|
models: {
|
|
21
21
|
base?: {
|
|
22
22
|
model?: string | undefined;
|
|
@@ -61,8 +61,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
61
61
|
updatedAt: string;
|
|
62
62
|
description: string | null;
|
|
63
63
|
prompt: string | null;
|
|
64
|
-
tenantId: string;
|
|
65
64
|
projectId: string;
|
|
65
|
+
tenantId: string;
|
|
66
66
|
models: {
|
|
67
67
|
base?: {
|
|
68
68
|
model?: string | undefined;
|
|
@@ -160,8 +160,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
160
160
|
updatedAt: string;
|
|
161
161
|
description: string | null;
|
|
162
162
|
prompt: string | null;
|
|
163
|
-
tenantId: string;
|
|
164
163
|
projectId: string;
|
|
164
|
+
tenantId: string;
|
|
165
165
|
models: {
|
|
166
166
|
base?: {
|
|
167
167
|
model?: string | undefined;
|
|
@@ -26,13 +26,13 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
26
26
|
updatedAt: string;
|
|
27
27
|
description: string | null;
|
|
28
28
|
headers: Record<string, string> | null;
|
|
29
|
-
tenantId: string;
|
|
30
29
|
projectId: string;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
credentialReferenceId: string | null;
|
|
31
32
|
config: {
|
|
32
33
|
type: "mcp";
|
|
33
34
|
mcp: ToolMcpConfig;
|
|
34
35
|
};
|
|
35
|
-
credentialReferenceId: string | null;
|
|
36
36
|
credentialScope: string;
|
|
37
37
|
imageUrl: string | null;
|
|
38
38
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -84,13 +84,13 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
|
|
|
84
84
|
updatedAt: string;
|
|
85
85
|
description: string | null;
|
|
86
86
|
headers: Record<string, string> | null;
|
|
87
|
-
tenantId: string;
|
|
88
87
|
projectId: string;
|
|
88
|
+
tenantId: string;
|
|
89
|
+
credentialReferenceId: string | null;
|
|
89
90
|
config: {
|
|
90
91
|
type: "mcp";
|
|
91
92
|
mcp: ToolMcpConfig;
|
|
92
93
|
};
|
|
93
|
-
credentialReferenceId: string | null;
|
|
94
94
|
credentialScope: string;
|
|
95
95
|
imageUrl: string | null;
|
|
96
96
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -139,11 +139,11 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
139
139
|
createdAt: string;
|
|
140
140
|
updatedAt: string;
|
|
141
141
|
headers: Record<string, string> | null;
|
|
142
|
-
tenantId: string;
|
|
143
142
|
projectId: string;
|
|
144
|
-
|
|
143
|
+
tenantId: string;
|
|
145
144
|
agentId: string;
|
|
146
145
|
subAgentId: string;
|
|
146
|
+
toolId: string;
|
|
147
147
|
selectedTools: string[] | null;
|
|
148
148
|
toolPolicies: Record<string, {
|
|
149
149
|
needsApproval?: boolean;
|
|
@@ -158,11 +158,11 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
158
158
|
createdAt: string;
|
|
159
159
|
updatedAt: string;
|
|
160
160
|
headers: Record<string, string> | null;
|
|
161
|
-
tenantId: string;
|
|
162
161
|
projectId: string;
|
|
163
|
-
|
|
162
|
+
tenantId: string;
|
|
164
163
|
agentId: string;
|
|
165
164
|
subAgentId: string;
|
|
165
|
+
toolId: string;
|
|
166
166
|
selectedTools: string[] | null;
|
|
167
167
|
toolPolicies: Record<string, {
|
|
168
168
|
needsApproval?: boolean;
|
|
@@ -186,11 +186,11 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
186
186
|
createdAt: string;
|
|
187
187
|
updatedAt: string;
|
|
188
188
|
headers: Record<string, string> | null;
|
|
189
|
-
tenantId: string;
|
|
190
189
|
projectId: string;
|
|
191
|
-
|
|
190
|
+
tenantId: string;
|
|
192
191
|
agentId: string;
|
|
193
192
|
subAgentId: string;
|
|
193
|
+
toolId: string;
|
|
194
194
|
selectedTools: string[] | null;
|
|
195
195
|
toolPolicies: Record<string, {
|
|
196
196
|
needsApproval?: boolean;
|
|
@@ -208,13 +208,13 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
208
208
|
updatedAt: string;
|
|
209
209
|
description: string | null;
|
|
210
210
|
headers: Record<string, string> | null;
|
|
211
|
-
tenantId: string;
|
|
212
211
|
projectId: string;
|
|
212
|
+
tenantId: string;
|
|
213
|
+
credentialReferenceId: string | null;
|
|
213
214
|
config: {
|
|
214
215
|
type: "mcp";
|
|
215
216
|
mcp: ToolMcpConfig;
|
|
216
217
|
};
|
|
217
|
-
credentialReferenceId: string | null;
|
|
218
218
|
credentialScope: string;
|
|
219
219
|
imageUrl: string | null;
|
|
220
220
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -133,8 +133,8 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
133
133
|
}) => Promise<{
|
|
134
134
|
createdAt: string;
|
|
135
135
|
userId: string;
|
|
136
|
-
tenantId: string;
|
|
137
136
|
projectId: string;
|
|
137
|
+
tenantId: string;
|
|
138
138
|
agentId: string;
|
|
139
139
|
triggerId: string;
|
|
140
140
|
}>;
|