@inkeep/agents-core 0.0.0-dev-20260403031002 → 0.0.0-dev-20260403132729
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/permissions.d.ts +9 -9
- package/dist/data-access/manage/agents.d.ts +14 -14
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +6 -6
- package/dist/data-access/manage/skills.d.ts +7 -7
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +4 -4
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +6 -6
- 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 +8 -8
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/messages.d.ts +6 -6
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-schema.d.ts +376 -376
- 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 +38 -38
- package/dist/validation/schemas.d.ts +721 -721
- 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 "organization" | "
|
|
9
|
-
actions: better_auth_plugins4.Subset<"organization" | "
|
|
8
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "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<"organization" | "
|
|
12
|
+
statements: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "organization" | "
|
|
16
|
-
actions: better_auth_plugins4.Subset<"organization" | "
|
|
15
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "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<"organization" | "
|
|
19
|
+
statements: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "organization" | "
|
|
23
|
-
actions: better_auth_plugins4.Subset<"organization" | "
|
|
22
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "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<"organization" | "
|
|
26
|
+
statements: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -10,13 +10,13 @@ import { PgColumn } from "drizzle-orm/pg-core";
|
|
|
10
10
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
11
11
|
scopes: AgentScopeConfig;
|
|
12
12
|
}) => Promise<{
|
|
13
|
-
name: string;
|
|
14
13
|
id: string;
|
|
14
|
+
name: string;
|
|
15
15
|
createdAt: string;
|
|
16
16
|
updatedAt: string;
|
|
17
|
+
description: string | null;
|
|
17
18
|
tenantId: string;
|
|
18
19
|
projectId: string;
|
|
19
|
-
description: string | null;
|
|
20
20
|
models: {
|
|
21
21
|
base?: {
|
|
22
22
|
model?: string | undefined;
|
|
@@ -40,9 +40,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
40
40
|
stopWhen: {
|
|
41
41
|
transferCountIs?: number | undefined;
|
|
42
42
|
} | null;
|
|
43
|
+
prompt: string | null;
|
|
43
44
|
defaultSubAgentId: string | null;
|
|
44
45
|
contextConfigId: string | null;
|
|
45
|
-
prompt: string | null;
|
|
46
46
|
statusUpdates: {
|
|
47
47
|
enabled?: boolean | undefined;
|
|
48
48
|
numEvents?: number | undefined;
|
|
@@ -63,13 +63,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
63
63
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
64
64
|
scopes: AgentScopeConfig;
|
|
65
65
|
}) => Promise<{
|
|
66
|
-
name: string;
|
|
67
66
|
id: string;
|
|
67
|
+
name: string;
|
|
68
68
|
createdAt: string;
|
|
69
69
|
updatedAt: string;
|
|
70
|
+
description: string | null;
|
|
70
71
|
tenantId: string;
|
|
71
72
|
projectId: string;
|
|
72
|
-
description: string | null;
|
|
73
73
|
models: {
|
|
74
74
|
base?: {
|
|
75
75
|
model?: string | undefined;
|
|
@@ -93,9 +93,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
93
93
|
stopWhen: {
|
|
94
94
|
transferCountIs?: number | undefined;
|
|
95
95
|
} | null;
|
|
96
|
+
prompt: string | null;
|
|
96
97
|
defaultSubAgentId: string | null;
|
|
97
98
|
contextConfigId: string | null;
|
|
98
|
-
prompt: string | null;
|
|
99
99
|
statusUpdates: {
|
|
100
100
|
enabled?: boolean | undefined;
|
|
101
101
|
numEvents?: number | undefined;
|
|
@@ -113,13 +113,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
113
113
|
} | null;
|
|
114
114
|
executionMode: "classic" | "durable";
|
|
115
115
|
defaultSubAgent: {
|
|
116
|
-
name: string;
|
|
117
116
|
id: string;
|
|
117
|
+
name: string;
|
|
118
118
|
createdAt: string;
|
|
119
119
|
updatedAt: string;
|
|
120
|
+
description: string | null;
|
|
120
121
|
tenantId: string;
|
|
121
122
|
projectId: string;
|
|
122
|
-
description: string | null;
|
|
123
123
|
agentId: string;
|
|
124
124
|
models: {
|
|
125
125
|
base?: {
|
|
@@ -151,13 +151,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
151
151
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
152
152
|
scopes: ProjectScopeConfig;
|
|
153
153
|
}) => Promise<{
|
|
154
|
-
name: string;
|
|
155
154
|
id: string;
|
|
155
|
+
name: string;
|
|
156
156
|
createdAt: string;
|
|
157
157
|
updatedAt: string;
|
|
158
|
+
description: string | null;
|
|
158
159
|
tenantId: string;
|
|
159
160
|
projectId: string;
|
|
160
|
-
description: string | null;
|
|
161
161
|
models: {
|
|
162
162
|
base?: {
|
|
163
163
|
model?: string | undefined;
|
|
@@ -181,9 +181,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
181
181
|
stopWhen: {
|
|
182
182
|
transferCountIs?: number | undefined;
|
|
183
183
|
} | null;
|
|
184
|
+
prompt: string | null;
|
|
184
185
|
defaultSubAgentId: string | null;
|
|
185
186
|
contextConfigId: string | null;
|
|
186
|
-
prompt: string | null;
|
|
187
187
|
statusUpdates: {
|
|
188
188
|
enabled?: boolean | undefined;
|
|
189
189
|
numEvents?: number | undefined;
|
|
@@ -281,13 +281,13 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
281
281
|
projectIds: string[];
|
|
282
282
|
}): Promise<AvailableAgentInfo[]>;
|
|
283
283
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
284
|
-
name: string;
|
|
285
284
|
id: string;
|
|
285
|
+
name: string;
|
|
286
286
|
createdAt: string;
|
|
287
287
|
updatedAt: string;
|
|
288
|
+
description: string | null;
|
|
288
289
|
tenantId: string;
|
|
289
290
|
projectId: string;
|
|
290
|
-
description: string | null;
|
|
291
291
|
models: {
|
|
292
292
|
base?: {
|
|
293
293
|
model?: string | undefined;
|
|
@@ -311,9 +311,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
311
311
|
stopWhen: {
|
|
312
312
|
transferCountIs?: number | undefined;
|
|
313
313
|
} | null;
|
|
314
|
+
prompt: string | null;
|
|
314
315
|
defaultSubAgentId: string | null;
|
|
315
316
|
contextConfigId: string | null;
|
|
316
|
-
prompt: string | null;
|
|
317
317
|
statusUpdates: {
|
|
318
318
|
enabled?: boolean | undefined;
|
|
319
319
|
numEvents?: number | undefined;
|
|
@@ -9,13 +9,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
name: string;
|
|
13
12
|
id: string;
|
|
13
|
+
name: string;
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
|
+
description: string | null;
|
|
16
17
|
tenantId: string;
|
|
17
18
|
projectId: string;
|
|
18
|
-
description: string | null;
|
|
19
19
|
props: {
|
|
20
20
|
[x: string]: unknown;
|
|
21
21
|
type: "object";
|
|
@@ -65,13 +65,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
68
|
-
name: string;
|
|
69
68
|
id: string;
|
|
69
|
+
name: string;
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
|
+
description: string | null;
|
|
72
73
|
tenantId: string;
|
|
73
74
|
projectId: string;
|
|
74
|
-
description: string | null;
|
|
75
75
|
props: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
type: "object";
|
|
@@ -53,13 +53,13 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
-
name: string;
|
|
57
56
|
id: string;
|
|
57
|
+
name: string;
|
|
58
58
|
createdAt: string;
|
|
59
59
|
updatedAt: string;
|
|
60
|
+
description: string | null;
|
|
60
61
|
tenantId: string;
|
|
61
62
|
projectId: string;
|
|
62
|
-
description: string | null;
|
|
63
63
|
agentId: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
@@ -95,13 +95,13 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
95
95
|
data: FunctionToolApiInsert;
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
|
-
name: string;
|
|
99
98
|
id: string;
|
|
99
|
+
name: string;
|
|
100
100
|
createdAt: string;
|
|
101
101
|
updatedAt: string;
|
|
102
|
+
description: string | null;
|
|
102
103
|
tenantId: string;
|
|
103
104
|
projectId: string;
|
|
104
|
-
description: string | null;
|
|
105
105
|
agentId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
@@ -164,10 +164,10 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
164
164
|
projectId: string;
|
|
165
165
|
agentId: string;
|
|
166
166
|
subAgentId: string;
|
|
167
|
+
functionToolId: string;
|
|
167
168
|
toolPolicies: Record<string, {
|
|
168
169
|
needsApproval?: boolean;
|
|
169
170
|
}> | null;
|
|
170
|
-
functionToolId: string;
|
|
171
171
|
}>;
|
|
172
172
|
/**
|
|
173
173
|
* Update an agent-function tool relation
|
|
@@ -229,10 +229,10 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
229
229
|
projectId: string;
|
|
230
230
|
agentId: string;
|
|
231
231
|
subAgentId: string;
|
|
232
|
+
functionToolId: string;
|
|
232
233
|
toolPolicies: Record<string, {
|
|
233
234
|
needsApproval?: boolean;
|
|
234
235
|
}> | null;
|
|
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 };
|
|
@@ -15,14 +15,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
15
15
|
scopes: ProjectScopeConfig;
|
|
16
16
|
skillId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
|
-
metadata: Record<string, string> | null;
|
|
19
|
-
name: string;
|
|
20
18
|
id: string;
|
|
19
|
+
name: string;
|
|
21
20
|
createdAt: string;
|
|
22
21
|
updatedAt: string;
|
|
22
|
+
metadata: Record<string, string> | null;
|
|
23
|
+
description: string;
|
|
23
24
|
tenantId: string;
|
|
24
25
|
projectId: string;
|
|
25
|
-
description: string;
|
|
26
26
|
content: string;
|
|
27
27
|
} | null>;
|
|
28
28
|
declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -110,14 +110,14 @@ 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
|
-
metadata: Record<string, string> | null;
|
|
114
|
-
name: string;
|
|
115
113
|
id: string;
|
|
114
|
+
name: string;
|
|
116
115
|
createdAt: string;
|
|
117
116
|
updatedAt: string;
|
|
117
|
+
metadata: Record<string, string> | null;
|
|
118
|
+
description: string;
|
|
118
119
|
tenantId: string;
|
|
119
120
|
projectId: string;
|
|
120
|
-
description: string;
|
|
121
121
|
content: string;
|
|
122
122
|
}>;
|
|
123
123
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -146,9 +146,9 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
146
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,10 +9,10 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
headers: Record<string, string> | null;
|
|
13
12
|
id: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
15
|
+
headers: Record<string, string> | null;
|
|
16
16
|
tenantId: string;
|
|
17
17
|
projectId: string;
|
|
18
18
|
agentId: string;
|
|
@@ -44,10 +44,10 @@ 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;
|
|
48
47
|
id: string;
|
|
49
48
|
createdAt: string;
|
|
50
49
|
updatedAt: string;
|
|
50
|
+
headers: Record<string, string> | null;
|
|
51
51
|
tenantId: string;
|
|
52
52
|
projectId: string;
|
|
53
53
|
agentId: string;
|
|
@@ -57,10 +57,10 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
headers: Record<string, string> | null;
|
|
61
60
|
id: string;
|
|
62
61
|
createdAt: string;
|
|
63
62
|
updatedAt: string;
|
|
63
|
+
headers: Record<string, string> | null;
|
|
64
64
|
tenantId: string;
|
|
65
65
|
projectId: string;
|
|
66
66
|
agentId: string;
|
|
@@ -186,10 +186,10 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
186
186
|
headers?: Record<string, string> | null;
|
|
187
187
|
};
|
|
188
188
|
}) => Promise<{
|
|
189
|
-
headers: Record<string, string> | null;
|
|
190
189
|
id: string;
|
|
191
190
|
createdAt: string;
|
|
192
191
|
updatedAt: string;
|
|
192
|
+
headers: Record<string, string> | null;
|
|
193
193
|
tenantId: string;
|
|
194
194
|
projectId: string;
|
|
195
195
|
agentId: string;
|
|
@@ -203,10 +203,10 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
203
203
|
scopes: SubAgentScopeConfig;
|
|
204
204
|
externalAgentId: string;
|
|
205
205
|
}) => Promise<{
|
|
206
|
-
headers: Record<string, string> | null;
|
|
207
206
|
id: string;
|
|
208
207
|
createdAt: string;
|
|
209
208
|
updatedAt: string;
|
|
209
|
+
headers: Record<string, string> | null;
|
|
210
210
|
tenantId: string;
|
|
211
211
|
projectId: string;
|
|
212
212
|
agentId: string;
|
|
@@ -224,10 +224,10 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
224
224
|
headers?: Record<string, string> | null;
|
|
225
225
|
};
|
|
226
226
|
}) => Promise<{
|
|
227
|
-
headers: Record<string, string> | null;
|
|
228
227
|
id: string;
|
|
229
228
|
createdAt: string;
|
|
230
229
|
updatedAt: string;
|
|
230
|
+
headers: Record<string, string> | null;
|
|
231
231
|
tenantId: string;
|
|
232
232
|
projectId: string;
|
|
233
233
|
agentId: string;
|
|
@@ -204,19 +204,19 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
-
headers: Record<string, string> | null;
|
|
208
207
|
id: string;
|
|
209
208
|
createdAt: string;
|
|
210
209
|
updatedAt: string;
|
|
210
|
+
headers: Record<string, string> | null;
|
|
211
211
|
tenantId: string;
|
|
212
212
|
projectId: string;
|
|
213
213
|
agentId: string;
|
|
214
214
|
subAgentId: string;
|
|
215
215
|
toolId: string;
|
|
216
|
-
selectedTools: string[] | null;
|
|
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
|
-
headers: Record<string, string> | null;
|
|
252
251
|
id: string;
|
|
253
252
|
createdAt: string;
|
|
254
253
|
updatedAt: string;
|
|
254
|
+
headers: Record<string, string> | null;
|
|
255
255
|
tenantId: string;
|
|
256
256
|
projectId: string;
|
|
257
257
|
agentId: string;
|
|
258
258
|
subAgentId: string;
|
|
259
259
|
toolId: string;
|
|
260
|
-
selectedTools: string[] | null;
|
|
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,10 +9,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
headers: Record<string, string> | null;
|
|
13
12
|
id: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
15
|
+
headers: Record<string, string> | null;
|
|
16
16
|
tenantId: string;
|
|
17
17
|
projectId: string;
|
|
18
18
|
agentId: string;
|
|
@@ -44,10 +44,10 @@ 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;
|
|
48
47
|
id: string;
|
|
49
48
|
createdAt: string;
|
|
50
49
|
updatedAt: string;
|
|
50
|
+
headers: Record<string, string> | null;
|
|
51
51
|
tenantId: string;
|
|
52
52
|
projectId: string;
|
|
53
53
|
agentId: string;
|
|
@@ -57,10 +57,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
headers: Record<string, string> | null;
|
|
61
60
|
id: string;
|
|
62
61
|
createdAt: string;
|
|
63
62
|
updatedAt: string;
|
|
63
|
+
headers: Record<string, string> | null;
|
|
64
64
|
tenantId: string;
|
|
65
65
|
projectId: string;
|
|
66
66
|
agentId: string;
|
|
@@ -222,10 +222,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
222
222
|
headers?: Record<string, string> | null;
|
|
223
223
|
};
|
|
224
224
|
}) => Promise<{
|
|
225
|
-
headers: Record<string, string> | null;
|
|
226
225
|
id: string;
|
|
227
226
|
createdAt: string;
|
|
228
227
|
updatedAt: string;
|
|
228
|
+
headers: Record<string, string> | null;
|
|
229
229
|
tenantId: string;
|
|
230
230
|
projectId: string;
|
|
231
231
|
agentId: string;
|
|
@@ -239,10 +239,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
239
239
|
scopes: SubAgentScopeConfig;
|
|
240
240
|
targetAgentId: string;
|
|
241
241
|
}) => Promise<{
|
|
242
|
-
headers: Record<string, string> | null;
|
|
243
242
|
id: string;
|
|
244
243
|
createdAt: string;
|
|
245
244
|
updatedAt: string;
|
|
245
|
+
headers: Record<string, string> | null;
|
|
246
246
|
tenantId: string;
|
|
247
247
|
projectId: string;
|
|
248
248
|
agentId: string;
|
|
@@ -260,10 +260,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
260
260
|
headers?: Record<string, string> | null;
|
|
261
261
|
};
|
|
262
262
|
}) => Promise<{
|
|
263
|
-
headers: Record<string, string> | null;
|
|
264
263
|
id: string;
|
|
265
264
|
createdAt: string;
|
|
266
265
|
updatedAt: string;
|
|
266
|
+
headers: Record<string, string> | null;
|
|
267
267
|
tenantId: string;
|
|
268
268
|
projectId: string;
|
|
269
269
|
agentId: string;
|
|
@@ -9,13 +9,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
name: string;
|
|
13
12
|
id: string;
|
|
13
|
+
name: string;
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
|
+
description: string | null;
|
|
16
17
|
tenantId: string;
|
|
17
18
|
projectId: string;
|
|
18
|
-
description: string | null;
|
|
19
19
|
agentId: string;
|
|
20
20
|
models: {
|
|
21
21
|
base?: {
|
|
@@ -46,13 +46,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
46
46
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
47
47
|
scopes: AgentScopeConfig;
|
|
48
48
|
}) => Promise<{
|
|
49
|
-
name: string;
|
|
50
49
|
id: string;
|
|
50
|
+
name: string;
|
|
51
51
|
createdAt: string;
|
|
52
52
|
updatedAt: string;
|
|
53
|
+
description: string | null;
|
|
53
54
|
tenantId: string;
|
|
54
55
|
projectId: string;
|
|
55
|
-
description: string | null;
|
|
56
56
|
agentId: string;
|
|
57
57
|
models: {
|
|
58
58
|
base?: {
|
|
@@ -127,13 +127,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
127
127
|
};
|
|
128
128
|
}>;
|
|
129
129
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
130
|
-
name: string;
|
|
131
130
|
id: string;
|
|
131
|
+
name: string;
|
|
132
132
|
createdAt: string;
|
|
133
133
|
updatedAt: string;
|
|
134
|
+
description: string | null;
|
|
134
135
|
tenantId: string;
|
|
135
136
|
projectId: string;
|
|
136
|
-
description: string | null;
|
|
137
137
|
agentId: string;
|
|
138
138
|
models: {
|
|
139
139
|
base?: {
|
|
@@ -20,14 +20,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
-
headers: Record<string, string> | null;
|
|
24
|
-
name: string;
|
|
25
23
|
id: string;
|
|
24
|
+
name: string;
|
|
26
25
|
createdAt: string;
|
|
27
26
|
updatedAt: string;
|
|
27
|
+
description: string | null;
|
|
28
|
+
headers: Record<string, string> | null;
|
|
28
29
|
tenantId: string;
|
|
29
30
|
projectId: string;
|
|
30
|
-
description: string | null;
|
|
31
31
|
config: {
|
|
32
32
|
type: "mcp";
|
|
33
33
|
mcp: ToolMcpConfig;
|
|
@@ -78,14 +78,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
78
|
};
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
|
-
headers: Record<string, string> | null;
|
|
82
|
-
name: string;
|
|
83
81
|
id: string;
|
|
82
|
+
name: string;
|
|
84
83
|
createdAt: string;
|
|
85
84
|
updatedAt: string;
|
|
85
|
+
description: string | null;
|
|
86
|
+
headers: Record<string, string> | null;
|
|
86
87
|
tenantId: string;
|
|
87
88
|
projectId: string;
|
|
88
|
-
description: string | null;
|
|
89
89
|
config: {
|
|
90
90
|
type: "mcp";
|
|
91
91
|
mcp: ToolMcpConfig;
|
|
@@ -135,38 +135,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
135
|
needsApproval?: boolean;
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
|
-
headers: Record<string, string> | null;
|
|
139
138
|
id: string;
|
|
140
139
|
createdAt: string;
|
|
141
140
|
updatedAt: string;
|
|
141
|
+
headers: Record<string, string> | null;
|
|
142
142
|
tenantId: string;
|
|
143
143
|
projectId: string;
|
|
144
144
|
agentId: string;
|
|
145
145
|
subAgentId: string;
|
|
146
146
|
toolId: string;
|
|
147
|
-
selectedTools: string[] | null;
|
|
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
|
-
headers: Record<string, string> | null;
|
|
158
157
|
id: string;
|
|
159
158
|
createdAt: string;
|
|
160
159
|
updatedAt: string;
|
|
160
|
+
headers: Record<string, string> | null;
|
|
161
161
|
tenantId: string;
|
|
162
162
|
projectId: string;
|
|
163
163
|
agentId: string;
|
|
164
164
|
subAgentId: string;
|
|
165
165
|
toolId: string;
|
|
166
|
-
selectedTools: string[] | null;
|
|
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
|
-
headers: Record<string, string> | null;
|
|
186
185
|
id: string;
|
|
187
186
|
createdAt: string;
|
|
188
187
|
updatedAt: string;
|
|
188
|
+
headers: Record<string, string> | null;
|
|
189
189
|
tenantId: string;
|
|
190
190
|
projectId: string;
|
|
191
191
|
agentId: string;
|
|
192
192
|
subAgentId: string;
|
|
193
193
|
toolId: string;
|
|
194
|
-
selectedTools: string[] | null;
|
|
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,14 +202,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
202
202
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
|
-
headers: Record<string, string> | null;
|
|
206
|
-
name: string;
|
|
207
205
|
id: string;
|
|
206
|
+
name: string;
|
|
208
207
|
createdAt: string;
|
|
209
208
|
updatedAt: string;
|
|
209
|
+
description: string | null;
|
|
210
|
+
headers: Record<string, string> | null;
|
|
210
211
|
tenantId: string;
|
|
211
212
|
projectId: string;
|
|
212
|
-
description: string | null;
|
|
213
213
|
config: {
|
|
214
214
|
type: "mcp";
|
|
215
215
|
mcp: ToolMcpConfig;
|
|
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
40
40
|
algorithm: "md5" | "sha256" | "sha512" | "sha384" | "sha1";
|
|
41
41
|
encoding: "base64" | "hex";
|
|
42
42
|
signature: {
|
|
43
|
-
source: "
|
|
43
|
+
source: "query" | "header" | "body";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "
|
|
49
|
+
source: "header" | "literal" | "body";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|