@inkeep/agents-core 0.0.0-dev-20260401143150 → 0.0.0-dev-20260401162145
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/data-access/manage/agents.d.ts +16 -16
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +12 -12
- package/dist/data-access/manage/skills.d.ts +8 -8
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +10 -10
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +15 -15
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +6 -6
- package/dist/data-access/runtime/conversations.d.ts +16 -16
- 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/tasks.d.ts +2 -2
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-schema.d.ts +378 -378
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +40 -40
- package/dist/validation/schemas.d.ts +2026 -2026
- package/package.json +1 -1
|
@@ -5,25 +5,25 @@ import { organizationClient } from "better-auth/client/plugins";
|
|
|
5
5
|
//#region src/auth/permissions.d.ts
|
|
6
6
|
declare const ac: AccessControl;
|
|
7
7
|
declare const memberRole: {
|
|
8
|
-
authorize<K_1 extends "
|
|
9
|
-
actions: better_auth_plugins4.Subset<"
|
|
8
|
+
authorize<K_1 extends "organization" | "member" | "project" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins4.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
11
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
|
|
12
|
-
statements: better_auth_plugins4.Subset<"
|
|
12
|
+
statements: better_auth_plugins4.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "
|
|
16
|
-
actions: better_auth_plugins4.Subset<"
|
|
15
|
+
authorize<K_1 extends "organization" | "member" | "project" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins4.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
18
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
|
|
19
|
-
statements: better_auth_plugins4.Subset<"
|
|
19
|
+
statements: better_auth_plugins4.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "
|
|
23
|
-
actions: better_auth_plugins4.Subset<"
|
|
22
|
+
authorize<K_1 extends "organization" | "member" | "project" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins4.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
25
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
|
|
26
|
-
statements: better_auth_plugins4.Subset<"
|
|
26
|
+
statements: better_auth_plugins4.Subset<"organization" | "member" | "project" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -11,11 +11,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
11
11
|
scopes: AgentScopeConfig;
|
|
12
12
|
}) => Promise<{
|
|
13
13
|
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
14
15
|
id: string;
|
|
15
|
-
createdAt: string;
|
|
16
16
|
name: string;
|
|
17
|
-
updatedAt: string;
|
|
18
|
-
projectId: string;
|
|
19
17
|
description: string | null;
|
|
20
18
|
defaultSubAgentId: string | null;
|
|
21
19
|
contextConfigId: string | null;
|
|
@@ -59,16 +57,16 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
59
57
|
transferCountIs?: number | undefined;
|
|
60
58
|
} | null;
|
|
61
59
|
executionMode: "classic" | "durable";
|
|
60
|
+
createdAt: string;
|
|
61
|
+
updatedAt: string;
|
|
62
62
|
} | null>;
|
|
63
63
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
64
64
|
scopes: AgentScopeConfig;
|
|
65
65
|
}) => Promise<{
|
|
66
66
|
tenantId: string;
|
|
67
|
+
projectId: string;
|
|
67
68
|
id: string;
|
|
68
|
-
createdAt: string;
|
|
69
69
|
name: string;
|
|
70
|
-
updatedAt: string;
|
|
71
|
-
projectId: string;
|
|
72
70
|
description: string | null;
|
|
73
71
|
defaultSubAgentId: string | null;
|
|
74
72
|
contextConfigId: string | null;
|
|
@@ -112,14 +110,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
112
110
|
transferCountIs?: number | undefined;
|
|
113
111
|
} | null;
|
|
114
112
|
executionMode: "classic" | "durable";
|
|
113
|
+
createdAt: string;
|
|
114
|
+
updatedAt: string;
|
|
115
115
|
defaultSubAgent: {
|
|
116
116
|
tenantId: string;
|
|
117
|
+
projectId: string;
|
|
117
118
|
id: string;
|
|
118
|
-
createdAt: string;
|
|
119
119
|
name: string;
|
|
120
|
-
updatedAt: string;
|
|
121
|
-
agentId: string;
|
|
122
|
-
projectId: string;
|
|
123
120
|
description: string | null;
|
|
124
121
|
models: {
|
|
125
122
|
base?: {
|
|
@@ -145,6 +142,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
145
142
|
stopWhen: {
|
|
146
143
|
stepCountIs?: number | undefined;
|
|
147
144
|
} | null;
|
|
145
|
+
createdAt: string;
|
|
146
|
+
updatedAt: string;
|
|
147
|
+
agentId: string;
|
|
148
148
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
149
149
|
} | null;
|
|
150
150
|
} | null>;
|
|
@@ -152,11 +152,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
152
152
|
scopes: ProjectScopeConfig;
|
|
153
153
|
}) => Promise<{
|
|
154
154
|
tenantId: string;
|
|
155
|
+
projectId: string;
|
|
155
156
|
id: string;
|
|
156
|
-
createdAt: string;
|
|
157
157
|
name: string;
|
|
158
|
-
updatedAt: string;
|
|
159
|
-
projectId: string;
|
|
160
158
|
description: string | null;
|
|
161
159
|
defaultSubAgentId: string | null;
|
|
162
160
|
contextConfigId: string | null;
|
|
@@ -200,6 +198,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
200
198
|
transferCountIs?: number | undefined;
|
|
201
199
|
} | null;
|
|
202
200
|
executionMode: "classic" | "durable";
|
|
201
|
+
createdAt: string;
|
|
202
|
+
updatedAt: string;
|
|
203
203
|
}[]>;
|
|
204
204
|
declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
205
205
|
scopes: ProjectScopeConfig;
|
|
@@ -282,11 +282,9 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
282
282
|
}): Promise<AvailableAgentInfo[]>;
|
|
283
283
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
284
284
|
tenantId: string;
|
|
285
|
+
projectId: string;
|
|
285
286
|
id: string;
|
|
286
|
-
createdAt: string;
|
|
287
287
|
name: string;
|
|
288
|
-
updatedAt: string;
|
|
289
|
-
projectId: string;
|
|
290
288
|
description: string | null;
|
|
291
289
|
defaultSubAgentId: string | null;
|
|
292
290
|
contextConfigId: string | null;
|
|
@@ -330,6 +328,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
330
328
|
transferCountIs?: number | undefined;
|
|
331
329
|
} | null;
|
|
332
330
|
executionMode: "classic" | "durable";
|
|
331
|
+
createdAt: string;
|
|
332
|
+
updatedAt: string;
|
|
333
333
|
}>;
|
|
334
334
|
declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
335
335
|
scopes: AgentScopeConfig;
|
|
@@ -10,12 +10,12 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
13
14
|
id: string;
|
|
14
|
-
createdAt: string;
|
|
15
15
|
name: string;
|
|
16
|
-
updatedAt: string;
|
|
17
|
-
projectId: string;
|
|
18
16
|
description: string | null;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
19
|
props: {
|
|
20
20
|
[x: string]: unknown;
|
|
21
21
|
type: "object";
|
|
@@ -66,12 +66,12 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
66
66
|
}>;
|
|
67
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
68
68
|
tenantId: string;
|
|
69
|
+
projectId: string;
|
|
69
70
|
id: string;
|
|
70
|
-
createdAt: string;
|
|
71
71
|
name: string;
|
|
72
|
-
updatedAt: string;
|
|
73
|
-
projectId: string;
|
|
74
72
|
description: string | null;
|
|
73
|
+
createdAt: string;
|
|
74
|
+
updatedAt: string;
|
|
75
75
|
props: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
type: "object";
|
|
@@ -142,10 +142,10 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
142
142
|
artifactComponentId: string;
|
|
143
143
|
}) => Promise<{
|
|
144
144
|
tenantId: string;
|
|
145
|
+
projectId: string;
|
|
145
146
|
id: string;
|
|
146
147
|
createdAt: string;
|
|
147
148
|
agentId: string;
|
|
148
|
-
projectId: string;
|
|
149
149
|
subAgentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
@@ -185,10 +185,10 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
185
185
|
artifactComponentId: string;
|
|
186
186
|
}) => Promise<{
|
|
187
187
|
tenantId: string;
|
|
188
|
+
projectId: string;
|
|
188
189
|
id: string;
|
|
189
190
|
createdAt: string;
|
|
190
191
|
agentId: string;
|
|
191
|
-
projectId: string;
|
|
192
192
|
subAgentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
@@ -10,25 +10,25 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
13
14
|
id: string;
|
|
14
|
-
headersSchema: unknown;
|
|
15
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
16
15
|
createdAt: string;
|
|
17
16
|
updatedAt: string;
|
|
18
17
|
agentId: string;
|
|
19
|
-
|
|
18
|
+
headersSchema: unknown;
|
|
19
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
23
23
|
}) => Promise<{
|
|
24
24
|
tenantId: string;
|
|
25
|
+
projectId: string;
|
|
25
26
|
id: string;
|
|
26
|
-
headersSchema: unknown;
|
|
27
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
28
27
|
createdAt: string;
|
|
29
28
|
updatedAt: string;
|
|
30
29
|
agentId: string;
|
|
31
|
-
|
|
30
|
+
headersSchema: unknown;
|
|
31
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
32
32
|
}[]>;
|
|
33
33
|
declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
34
34
|
scopes: AgentScopeConfig;
|
|
@@ -44,13 +44,13 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
44
44
|
}>;
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
46
|
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
47
48
|
id: string;
|
|
48
|
-
headersSchema: unknown;
|
|
49
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
50
49
|
createdAt: string;
|
|
51
50
|
updatedAt: string;
|
|
52
51
|
agentId: string;
|
|
53
|
-
|
|
52
|
+
headersSchema: unknown;
|
|
53
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
54
54
|
}>;
|
|
55
55
|
declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
@@ -84,13 +84,13 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
84
84
|
data: ContextConfigInsert;
|
|
85
85
|
}) => Promise<{
|
|
86
86
|
tenantId: string;
|
|
87
|
+
projectId: string;
|
|
87
88
|
id: string;
|
|
88
|
-
headersSchema: unknown;
|
|
89
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
90
89
|
createdAt: string;
|
|
91
90
|
updatedAt: string;
|
|
92
91
|
agentId: string;
|
|
93
|
-
|
|
92
|
+
headersSchema: unknown;
|
|
93
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
94
94
|
}>;
|
|
95
95
|
//#endregion
|
|
96
96
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -66,10 +66,10 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
66
66
|
dataComponentId: string;
|
|
67
67
|
}) => Promise<{
|
|
68
68
|
tenantId: string;
|
|
69
|
+
projectId: string;
|
|
69
70
|
id: string;
|
|
70
71
|
createdAt: string;
|
|
71
72
|
agentId: string;
|
|
72
|
-
projectId: 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
|
tenantId: string;
|
|
111
|
+
projectId: string;
|
|
111
112
|
id: string;
|
|
112
113
|
createdAt: string;
|
|
113
114
|
agentId: string;
|
|
114
|
-
projectId: string;
|
|
115
115
|
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
@@ -54,13 +54,13 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
56
|
tenantId: string;
|
|
57
|
+
projectId: string;
|
|
57
58
|
id: string;
|
|
58
|
-
createdAt: string;
|
|
59
59
|
name: string;
|
|
60
|
+
description: string | null;
|
|
61
|
+
createdAt: string;
|
|
60
62
|
updatedAt: string;
|
|
61
63
|
agentId: string;
|
|
62
|
-
projectId: string;
|
|
63
|
-
description: string | null;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -96,13 +96,13 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
98
|
tenantId: string;
|
|
99
|
+
projectId: string;
|
|
99
100
|
id: string;
|
|
100
|
-
createdAt: string;
|
|
101
101
|
name: string;
|
|
102
|
+
description: string | null;
|
|
103
|
+
createdAt: string;
|
|
102
104
|
updatedAt: string;
|
|
103
105
|
agentId: string;
|
|
104
|
-
projectId: string;
|
|
105
|
-
description: string | null;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -158,16 +158,16 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
158
158
|
}> | null;
|
|
159
159
|
}) => Promise<{
|
|
160
160
|
tenantId: string;
|
|
161
|
+
projectId: string;
|
|
161
162
|
id: string;
|
|
162
163
|
createdAt: string;
|
|
163
164
|
updatedAt: string;
|
|
164
165
|
agentId: string;
|
|
165
|
-
projectId: string;
|
|
166
|
-
subAgentId: string;
|
|
167
|
-
functionToolId: string;
|
|
168
166
|
toolPolicies: Record<string, {
|
|
169
167
|
needsApproval?: boolean;
|
|
170
168
|
}> | null;
|
|
169
|
+
subAgentId: string;
|
|
170
|
+
functionToolId: string;
|
|
171
171
|
}>;
|
|
172
172
|
/**
|
|
173
173
|
* Update an agent-function tool relation
|
|
@@ -223,16 +223,16 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
223
223
|
}> | null;
|
|
224
224
|
}) => Promise<{
|
|
225
225
|
tenantId: string;
|
|
226
|
+
projectId: string;
|
|
226
227
|
id: string;
|
|
227
228
|
createdAt: string;
|
|
228
229
|
updatedAt: string;
|
|
229
230
|
agentId: string;
|
|
230
|
-
projectId: string;
|
|
231
|
-
subAgentId: string;
|
|
232
|
-
functionToolId: string;
|
|
233
231
|
toolPolicies: Record<string, {
|
|
234
232
|
needsApproval?: boolean;
|
|
235
233
|
}> | null;
|
|
234
|
+
subAgentId: string;
|
|
235
|
+
functionToolId: string;
|
|
236
236
|
}>;
|
|
237
237
|
//#endregion
|
|
238
238
|
export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
|
|
@@ -16,12 +16,12 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
16
16
|
skillId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
18
|
tenantId: string;
|
|
19
|
+
projectId: string;
|
|
19
20
|
id: string;
|
|
20
|
-
createdAt: string;
|
|
21
21
|
name: string;
|
|
22
|
-
updatedAt: string;
|
|
23
|
-
projectId: string;
|
|
24
22
|
description: string;
|
|
23
|
+
createdAt: string;
|
|
24
|
+
updatedAt: string;
|
|
25
25
|
metadata: Record<string, string> | null;
|
|
26
26
|
content: string;
|
|
27
27
|
} | null>;
|
|
@@ -111,12 +111,12 @@ interface WithTenantIdProjectId {
|
|
|
111
111
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
|
|
112
112
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
|
|
113
113
|
tenantId: string;
|
|
114
|
+
projectId: string;
|
|
114
115
|
id: string;
|
|
115
|
-
createdAt: string;
|
|
116
116
|
name: string;
|
|
117
|
-
updatedAt: string;
|
|
118
|
-
projectId: string;
|
|
119
117
|
description: string;
|
|
118
|
+
createdAt: string;
|
|
119
|
+
updatedAt: string;
|
|
120
120
|
metadata: Record<string, string> | null;
|
|
121
121
|
content: string;
|
|
122
122
|
}>;
|
|
@@ -140,14 +140,14 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
140
140
|
alwaysLoaded?: boolean;
|
|
141
141
|
}) => Promise<{
|
|
142
142
|
tenantId: string;
|
|
143
|
+
projectId: string;
|
|
143
144
|
id: string;
|
|
144
145
|
createdAt: string;
|
|
145
146
|
updatedAt: string;
|
|
146
147
|
agentId: string;
|
|
147
|
-
projectId: string;
|
|
148
|
-
subAgentId: string;
|
|
149
148
|
index: number;
|
|
150
149
|
alwaysLoaded: boolean;
|
|
150
|
+
subAgentId: string;
|
|
151
151
|
skillId: string;
|
|
152
152
|
}>;
|
|
153
153
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -10,14 +10,14 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
13
14
|
id: string;
|
|
14
15
|
createdAt: string;
|
|
15
16
|
updatedAt: string;
|
|
16
17
|
agentId: string;
|
|
17
|
-
projectId: 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;
|
|
@@ -45,27 +45,27 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
48
49
|
id: string;
|
|
49
50
|
createdAt: string;
|
|
50
51
|
updatedAt: string;
|
|
51
52
|
agentId: string;
|
|
52
|
-
projectId: 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
60
|
tenantId: string;
|
|
61
|
+
projectId: string;
|
|
61
62
|
id: string;
|
|
62
63
|
createdAt: string;
|
|
63
64
|
updatedAt: string;
|
|
64
65
|
agentId: string;
|
|
65
|
-
projectId: 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;
|
|
@@ -187,14 +187,14 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
187
187
|
};
|
|
188
188
|
}) => Promise<{
|
|
189
189
|
tenantId: string;
|
|
190
|
+
projectId: string;
|
|
190
191
|
id: string;
|
|
191
192
|
createdAt: string;
|
|
192
193
|
updatedAt: string;
|
|
193
194
|
agentId: string;
|
|
194
|
-
projectId: 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
|
|
@@ -204,14 +204,14 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
204
204
|
externalAgentId: string;
|
|
205
205
|
}) => Promise<{
|
|
206
206
|
tenantId: string;
|
|
207
|
+
projectId: string;
|
|
207
208
|
id: string;
|
|
208
209
|
createdAt: string;
|
|
209
210
|
updatedAt: string;
|
|
210
211
|
agentId: string;
|
|
211
|
-
projectId: 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)
|
|
@@ -225,14 +225,14 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
225
225
|
};
|
|
226
226
|
}) => Promise<{
|
|
227
227
|
tenantId: string;
|
|
228
|
+
projectId: string;
|
|
228
229
|
id: string;
|
|
229
230
|
createdAt: string;
|
|
230
231
|
updatedAt: string;
|
|
231
232
|
agentId: string;
|
|
232
|
-
projectId: 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;
|
|
@@ -10,11 +10,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
13
14
|
id: string;
|
|
14
15
|
createdAt: string;
|
|
15
16
|
updatedAt: string;
|
|
16
17
|
agentId: string;
|
|
17
|
-
projectId: 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
|
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
48
49
|
id: string;
|
|
49
50
|
createdAt: string;
|
|
50
51
|
updatedAt: string;
|
|
51
52
|
agentId: string;
|
|
52
|
-
projectId: 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
|
tenantId: string;
|
|
61
|
+
projectId: string;
|
|
61
62
|
id: string;
|
|
62
63
|
createdAt: string;
|
|
63
64
|
updatedAt: string;
|
|
64
65
|
agentId: string;
|
|
65
|
-
projectId: 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
|
tenantId: string;
|
|
130
|
+
projectId: string;
|
|
130
131
|
id: string;
|
|
131
132
|
createdAt: string;
|
|
132
133
|
updatedAt: string;
|
|
133
134
|
agentId: string;
|
|
134
|
-
projectId: 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
|
tenantId: string;
|
|
149
|
+
projectId: string;
|
|
149
150
|
id: string;
|
|
150
151
|
createdAt: string;
|
|
151
152
|
updatedAt: string;
|
|
152
153
|
agentId: string;
|
|
153
|
-
projectId: 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
|
tenantId: string;
|
|
163
|
+
projectId: string;
|
|
163
164
|
id: string;
|
|
164
165
|
createdAt: string;
|
|
165
166
|
updatedAt: string;
|
|
166
167
|
agentId: string;
|
|
167
|
-
projectId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -205,17 +205,17 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
207
|
tenantId: string;
|
|
208
|
+
projectId: string;
|
|
208
209
|
id: string;
|
|
209
210
|
createdAt: string;
|
|
210
211
|
updatedAt: string;
|
|
211
212
|
agentId: string;
|
|
212
|
-
projectId: string;
|
|
213
|
-
subAgentId: string;
|
|
214
213
|
toolId: string;
|
|
215
214
|
headers: Record<string, string> | null;
|
|
216
215
|
toolPolicies: Record<string, {
|
|
217
216
|
needsApproval?: boolean;
|
|
218
217
|
}> | null;
|
|
218
|
+
subAgentId: string;
|
|
219
219
|
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -249,17 +249,17 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
251
|
tenantId: string;
|
|
252
|
+
projectId: string;
|
|
252
253
|
id: string;
|
|
253
254
|
createdAt: string;
|
|
254
255
|
updatedAt: string;
|
|
255
256
|
agentId: string;
|
|
256
|
-
projectId: string;
|
|
257
|
-
subAgentId: string;
|
|
258
257
|
toolId: string;
|
|
259
258
|
headers: Record<string, string> | null;
|
|
260
259
|
toolPolicies: Record<string, {
|
|
261
260
|
needsApproval?: boolean;
|
|
262
261
|
}> | null;
|
|
262
|
+
subAgentId: string;
|
|
263
263
|
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|