@inkeep/agents-core 0.0.0-dev-20260327181326 → 0.0.0-dev-20260327195114
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/constants/allowed-file-formats.d.ts +3 -1
- package/dist/constants/allowed-file-formats.js +27 -3
- package/dist/data-access/manage/agents.d.ts +10 -10
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +6 -6
- package/dist/data-access/manage/skills.d.ts +10 -10
- 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 +6 -6
- package/dist/data-access/manage/tools.d.ts +15 -15
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +6 -6
- package/dist/data-access/runtime/conversations.d.ts +12 -12
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +3 -3
- package/dist/db/runtime/runtime-schema.d.ts +2 -2
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/validation/schemas.d.ts +402 -402
- 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_plugins0.Subset<"
|
|
8
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
11
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
12
|
-
statements: better_auth_plugins0.Subset<"
|
|
12
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "
|
|
16
|
-
actions: better_auth_plugins0.Subset<"
|
|
15
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
18
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
19
|
-
statements: better_auth_plugins0.Subset<"
|
|
19
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "
|
|
23
|
-
actions: better_auth_plugins0.Subset<"
|
|
22
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
25
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
26
|
-
statements: better_auth_plugins0.Subset<"
|
|
26
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
//#region src/constants/allowed-file-formats.d.ts
|
|
2
2
|
declare const ALLOWED_IMAGE_MIME_TYPES: Set<string>;
|
|
3
|
+
declare const ALLOWED_TEXT_DOCUMENT_MIME_TYPES: Set<string>;
|
|
3
4
|
declare const DATA_URI_IMAGE_BASE64_REGEX: RegExp;
|
|
4
5
|
declare const DATA_URI_PDF_BASE64_REGEX: RegExp;
|
|
6
|
+
declare const DATA_URI_TEXT_BASE64_REGEX: RegExp;
|
|
5
7
|
declare function normalizeMimeType(mimeType: string): string;
|
|
6
8
|
declare function getExtensionFromMimeType(mimeType?: string): string;
|
|
7
9
|
declare function getMimeTypeFromExtension(extension?: string): string;
|
|
8
10
|
//#endregion
|
|
9
|
-
export { ALLOWED_IMAGE_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeMimeType };
|
|
11
|
+
export { ALLOWED_IMAGE_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeMimeType };
|
|
@@ -4,19 +4,42 @@ const ALLOWED_IMAGE_MIME_TYPES = new Set([
|
|
|
4
4
|
"image/jpeg",
|
|
5
5
|
"image/webp"
|
|
6
6
|
]);
|
|
7
|
+
const ALLOWED_TEXT_DOCUMENT_MIME_TYPES = new Set([
|
|
8
|
+
"text/plain",
|
|
9
|
+
"text/markdown",
|
|
10
|
+
"text/html",
|
|
11
|
+
"text/csv",
|
|
12
|
+
"text/x-log",
|
|
13
|
+
"application/json"
|
|
14
|
+
]);
|
|
7
15
|
const FILE_MIME_TYPE_TO_EXTENSION = {
|
|
8
16
|
"image/png": "png",
|
|
9
17
|
"image/jpeg": "jpg",
|
|
10
18
|
"image/jpg": "jpg",
|
|
11
19
|
"image/webp": "webp",
|
|
12
|
-
"application/pdf": "pdf"
|
|
20
|
+
"application/pdf": "pdf",
|
|
21
|
+
"text/plain": "txt",
|
|
22
|
+
"text/markdown": "md",
|
|
23
|
+
"text/html": "html",
|
|
24
|
+
"text/csv": "csv",
|
|
25
|
+
"text/x-log": "log",
|
|
26
|
+
"application/json": "json"
|
|
13
27
|
};
|
|
14
28
|
const FILE_EXTENSION_TO_MIME_TYPE = {
|
|
15
29
|
png: "image/png",
|
|
16
30
|
jpg: "image/jpeg",
|
|
17
31
|
jpeg: "image/jpeg",
|
|
18
32
|
webp: "image/webp",
|
|
19
|
-
pdf: "application/pdf"
|
|
33
|
+
pdf: "application/pdf",
|
|
34
|
+
txt: "text/plain",
|
|
35
|
+
text: "text/plain",
|
|
36
|
+
md: "text/markdown",
|
|
37
|
+
markdown: "text/markdown",
|
|
38
|
+
html: "text/html",
|
|
39
|
+
htm: "text/html",
|
|
40
|
+
csv: "text/csv",
|
|
41
|
+
log: "text/x-log",
|
|
42
|
+
json: "application/json"
|
|
20
43
|
};
|
|
21
44
|
const dataUriSubtypes = Array.from(ALLOWED_IMAGE_MIME_TYPES).flatMap((mime) => {
|
|
22
45
|
const subtype = mime.replace("image/", "");
|
|
@@ -24,6 +47,7 @@ const dataUriSubtypes = Array.from(ALLOWED_IMAGE_MIME_TYPES).flatMap((mime) => {
|
|
|
24
47
|
});
|
|
25
48
|
const DATA_URI_IMAGE_BASE64_REGEX = /* @__PURE__ */ new RegExp(`^data:image/(${dataUriSubtypes.join("|")});base64,`);
|
|
26
49
|
const DATA_URI_PDF_BASE64_REGEX = /^data:application\/pdf;base64,/;
|
|
50
|
+
const DATA_URI_TEXT_BASE64_REGEX = /^data:(text\/(plain|markdown|html|csv|x-log)|application\/json);base64,/;
|
|
27
51
|
function normalizeMimeType(mimeType) {
|
|
28
52
|
return mimeType.split(";")[0]?.trim().toLowerCase() || "";
|
|
29
53
|
}
|
|
@@ -38,4 +62,4 @@ function getMimeTypeFromExtension(extension) {
|
|
|
38
62
|
}
|
|
39
63
|
|
|
40
64
|
//#endregion
|
|
41
|
-
export { ALLOWED_IMAGE_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeMimeType };
|
|
65
|
+
export { ALLOWED_IMAGE_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeMimeType };
|
|
@@ -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
|
-
tenantId: string;
|
|
14
|
-
name: string;
|
|
15
13
|
id: string;
|
|
14
|
+
name: string;
|
|
16
15
|
createdAt: string;
|
|
17
16
|
updatedAt: string;
|
|
18
17
|
description: string | null;
|
|
19
18
|
projectId: string;
|
|
19
|
+
tenantId: string;
|
|
20
20
|
defaultSubAgentId: string | null;
|
|
21
21
|
contextConfigId: string | null;
|
|
22
22
|
models: {
|
|
@@ -57,13 +57,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
57
57
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
tenantId: string;
|
|
61
|
-
name: string;
|
|
62
60
|
id: string;
|
|
61
|
+
name: string;
|
|
63
62
|
createdAt: string;
|
|
64
63
|
updatedAt: string;
|
|
65
64
|
description: string | null;
|
|
66
65
|
projectId: string;
|
|
66
|
+
tenantId: string;
|
|
67
67
|
defaultSubAgentId: string | null;
|
|
68
68
|
contextConfigId: string | null;
|
|
69
69
|
models: {
|
|
@@ -101,14 +101,14 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
101
101
|
} | null;
|
|
102
102
|
executionMode: "classic" | "durable";
|
|
103
103
|
defaultSubAgent: {
|
|
104
|
-
tenantId: string;
|
|
105
|
-
name: string;
|
|
106
104
|
id: string;
|
|
105
|
+
name: string;
|
|
107
106
|
createdAt: string;
|
|
108
107
|
updatedAt: string;
|
|
109
108
|
description: string | null;
|
|
110
109
|
agentId: string;
|
|
111
110
|
projectId: string;
|
|
111
|
+
tenantId: string;
|
|
112
112
|
models: {
|
|
113
113
|
base?: {
|
|
114
114
|
model?: string | undefined;
|
|
@@ -133,13 +133,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
133
133
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
134
134
|
scopes: ProjectScopeConfig;
|
|
135
135
|
}) => Promise<{
|
|
136
|
-
tenantId: string;
|
|
137
|
-
name: string;
|
|
138
136
|
id: string;
|
|
137
|
+
name: string;
|
|
139
138
|
createdAt: string;
|
|
140
139
|
updatedAt: string;
|
|
141
140
|
description: string | null;
|
|
142
141
|
projectId: string;
|
|
142
|
+
tenantId: string;
|
|
143
143
|
defaultSubAgentId: string | null;
|
|
144
144
|
contextConfigId: string | null;
|
|
145
145
|
models: {
|
|
@@ -251,13 +251,13 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
251
251
|
projectIds: string[];
|
|
252
252
|
}): Promise<AvailableAgentInfo[]>;
|
|
253
253
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
254
|
-
tenantId: string;
|
|
255
|
-
name: string;
|
|
256
254
|
id: string;
|
|
255
|
+
name: string;
|
|
257
256
|
createdAt: string;
|
|
258
257
|
updatedAt: string;
|
|
259
258
|
description: string | null;
|
|
260
259
|
projectId: string;
|
|
260
|
+
tenantId: string;
|
|
261
261
|
defaultSubAgentId: string | null;
|
|
262
262
|
contextConfigId: string | null;
|
|
263
263
|
models: {
|
|
@@ -9,13 +9,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
tenantId: string;
|
|
13
|
-
name: string;
|
|
14
12
|
id: string;
|
|
13
|
+
name: string;
|
|
15
14
|
createdAt: string;
|
|
16
15
|
updatedAt: string;
|
|
17
16
|
description: string | null;
|
|
18
17
|
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
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
|
-
tenantId: string;
|
|
69
|
-
name: string;
|
|
70
68
|
id: string;
|
|
69
|
+
name: string;
|
|
71
70
|
createdAt: string;
|
|
72
71
|
updatedAt: string;
|
|
73
72
|
description: string | null;
|
|
74
73
|
projectId: string;
|
|
74
|
+
tenantId: string;
|
|
75
75
|
props: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
type: "object";
|
|
@@ -141,11 +141,11 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
141
141
|
scopes: SubAgentScopeConfig;
|
|
142
142
|
artifactComponentId: string;
|
|
143
143
|
}) => Promise<{
|
|
144
|
-
tenantId: string;
|
|
145
144
|
id: string;
|
|
146
145
|
createdAt: string;
|
|
147
146
|
agentId: string;
|
|
148
147
|
projectId: string;
|
|
148
|
+
tenantId: string;
|
|
149
149
|
subAgentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
@@ -184,11 +184,11 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
184
184
|
scopes: SubAgentScopeConfig;
|
|
185
185
|
artifactComponentId: string;
|
|
186
186
|
}) => Promise<{
|
|
187
|
-
tenantId: string;
|
|
188
187
|
id: string;
|
|
189
188
|
createdAt: string;
|
|
190
189
|
agentId: string;
|
|
191
190
|
projectId: string;
|
|
191
|
+
tenantId: string;
|
|
192
192
|
subAgentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
@@ -9,7 +9,6 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
tenantId: string;
|
|
13
12
|
id: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
@@ -17,11 +16,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
17
16
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
18
17
|
agentId: string;
|
|
19
18
|
projectId: string;
|
|
19
|
+
tenantId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
23
23
|
}) => Promise<{
|
|
24
|
-
tenantId: string;
|
|
25
24
|
id: string;
|
|
26
25
|
createdAt: string;
|
|
27
26
|
updatedAt: string;
|
|
@@ -29,6 +28,7 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
29
28
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
30
29
|
agentId: string;
|
|
31
30
|
projectId: string;
|
|
31
|
+
tenantId: string;
|
|
32
32
|
}[]>;
|
|
33
33
|
declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
34
34
|
scopes: AgentScopeConfig;
|
|
@@ -43,7 +43,6 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
|
-
tenantId: string;
|
|
47
46
|
id: string;
|
|
48
47
|
createdAt: string;
|
|
49
48
|
updatedAt: string;
|
|
@@ -51,6 +50,7 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
51
50
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
52
51
|
agentId: string;
|
|
53
52
|
projectId: string;
|
|
53
|
+
tenantId: string;
|
|
54
54
|
}>;
|
|
55
55
|
declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
@@ -83,7 +83,6 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
|
|
|
83
83
|
declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
84
84
|
data: ContextConfigInsert;
|
|
85
85
|
}) => Promise<{
|
|
86
|
-
tenantId: string;
|
|
87
86
|
id: string;
|
|
88
87
|
createdAt: string;
|
|
89
88
|
updatedAt: string;
|
|
@@ -91,6 +90,7 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
91
90
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
92
91
|
agentId: string;
|
|
93
92
|
projectId: string;
|
|
93
|
+
tenantId: string;
|
|
94
94
|
}>;
|
|
95
95
|
//#endregion
|
|
96
96
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -65,11 +65,11 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
scopes: SubAgentScopeConfig;
|
|
66
66
|
dataComponentId: string;
|
|
67
67
|
}) => Promise<{
|
|
68
|
-
tenantId: string;
|
|
69
68
|
id: string;
|
|
70
69
|
createdAt: string;
|
|
71
70
|
agentId: string;
|
|
72
71
|
projectId: string;
|
|
72
|
+
tenantId: string;
|
|
73
73
|
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
@@ -107,11 +107,11 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
107
107
|
scopes: SubAgentScopeConfig;
|
|
108
108
|
dataComponentId: string;
|
|
109
109
|
}) => Promise<{
|
|
110
|
-
tenantId: string;
|
|
111
110
|
id: string;
|
|
112
111
|
createdAt: string;
|
|
113
112
|
agentId: string;
|
|
114
113
|
projectId: string;
|
|
114
|
+
tenantId: 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
|
-
tenantId: string;
|
|
57
|
-
name: string;
|
|
58
56
|
id: string;
|
|
57
|
+
name: string;
|
|
59
58
|
createdAt: string;
|
|
60
59
|
updatedAt: string;
|
|
61
60
|
description: string | null;
|
|
62
61
|
agentId: string;
|
|
63
62
|
projectId: string;
|
|
63
|
+
tenantId: string;
|
|
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
|
-
tenantId: string;
|
|
99
|
-
name: string;
|
|
100
98
|
id: string;
|
|
99
|
+
name: string;
|
|
101
100
|
createdAt: string;
|
|
102
101
|
updatedAt: string;
|
|
103
102
|
description: string | null;
|
|
104
103
|
agentId: string;
|
|
105
104
|
projectId: string;
|
|
105
|
+
tenantId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -157,12 +157,12 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
157
157
|
needsApproval?: boolean;
|
|
158
158
|
}> | null;
|
|
159
159
|
}) => Promise<{
|
|
160
|
-
tenantId: string;
|
|
161
160
|
id: string;
|
|
162
161
|
createdAt: string;
|
|
163
162
|
updatedAt: string;
|
|
164
163
|
agentId: string;
|
|
165
164
|
projectId: string;
|
|
165
|
+
tenantId: string;
|
|
166
166
|
subAgentId: string;
|
|
167
167
|
toolPolicies: Record<string, {
|
|
168
168
|
needsApproval?: boolean;
|
|
@@ -222,12 +222,12 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
222
222
|
needsApproval?: boolean;
|
|
223
223
|
}> | null;
|
|
224
224
|
}) => Promise<{
|
|
225
|
-
tenantId: string;
|
|
226
225
|
id: string;
|
|
227
226
|
createdAt: string;
|
|
228
227
|
updatedAt: string;
|
|
229
228
|
agentId: string;
|
|
230
229
|
projectId: string;
|
|
230
|
+
tenantId: string;
|
|
231
231
|
subAgentId: string;
|
|
232
232
|
toolPolicies: Record<string, {
|
|
233
233
|
needsApproval?: boolean;
|
|
@@ -8,14 +8,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
skillId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
tenantId: string;
|
|
12
|
-
name: string;
|
|
13
|
-
metadata: Record<string, string> | null;
|
|
14
11
|
id: string;
|
|
12
|
+
name: string;
|
|
15
13
|
createdAt: string;
|
|
16
14
|
updatedAt: string;
|
|
15
|
+
metadata: Record<string, string> | null;
|
|
17
16
|
description: string;
|
|
18
17
|
projectId: string;
|
|
18
|
+
tenantId: 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
|
-
tenantId: string;
|
|
45
|
-
name: string;
|
|
46
|
-
metadata: Record<string, string> | null;
|
|
47
44
|
id: string;
|
|
45
|
+
name: string;
|
|
48
46
|
createdAt: string;
|
|
49
47
|
updatedAt: string;
|
|
48
|
+
metadata: Record<string, string> | null;
|
|
50
49
|
description: string;
|
|
51
50
|
projectId: string;
|
|
51
|
+
tenantId: string;
|
|
52
52
|
content: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
55
|
-
tenantId: string;
|
|
56
|
-
name: string;
|
|
57
|
-
metadata: Record<string, string> | null;
|
|
58
55
|
id: string;
|
|
56
|
+
name: string;
|
|
59
57
|
createdAt: string;
|
|
60
58
|
updatedAt: string;
|
|
59
|
+
metadata: Record<string, string> | null;
|
|
61
60
|
description: string;
|
|
62
61
|
projectId: string;
|
|
62
|
+
tenantId: string;
|
|
63
63
|
content: string;
|
|
64
64
|
}>;
|
|
65
65
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -91,12 +91,12 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
91
91
|
index: number;
|
|
92
92
|
alwaysLoaded?: boolean;
|
|
93
93
|
}) => Promise<{
|
|
94
|
-
tenantId: string;
|
|
95
94
|
id: string;
|
|
96
95
|
createdAt: string;
|
|
97
96
|
updatedAt: string;
|
|
98
97
|
agentId: string;
|
|
99
98
|
projectId: string;
|
|
99
|
+
tenantId: string;
|
|
100
100
|
subAgentId: string;
|
|
101
101
|
skillId: string;
|
|
102
102
|
index: number;
|
|
@@ -9,14 +9,14 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
tenantId: string;
|
|
13
|
-
headers: Record<string, string> | null;
|
|
14
12
|
id: string;
|
|
15
13
|
createdAt: string;
|
|
16
14
|
updatedAt: string;
|
|
17
15
|
agentId: string;
|
|
18
16
|
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
19
18
|
subAgentId: string;
|
|
19
|
+
headers: Record<string, string> | null;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -44,27 +44,27 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
|
|
|
44
44
|
declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
tenantId: string;
|
|
48
|
-
headers: Record<string, string> | null;
|
|
49
47
|
id: string;
|
|
50
48
|
createdAt: string;
|
|
51
49
|
updatedAt: string;
|
|
52
50
|
agentId: string;
|
|
53
51
|
projectId: string;
|
|
52
|
+
tenantId: string;
|
|
54
53
|
subAgentId: string;
|
|
54
|
+
headers: Record<string, string> | null;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
tenantId: string;
|
|
61
|
-
headers: Record<string, string> | null;
|
|
62
60
|
id: string;
|
|
63
61
|
createdAt: string;
|
|
64
62
|
updatedAt: string;
|
|
65
63
|
agentId: string;
|
|
66
64
|
projectId: string;
|
|
65
|
+
tenantId: string;
|
|
67
66
|
subAgentId: string;
|
|
67
|
+
headers: Record<string, string> | null;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -180,14 +180,14 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
180
180
|
headers?: Record<string, string> | null;
|
|
181
181
|
};
|
|
182
182
|
}) => Promise<{
|
|
183
|
-
tenantId: string;
|
|
184
|
-
headers: Record<string, string> | null;
|
|
185
183
|
id: string;
|
|
186
184
|
createdAt: string;
|
|
187
185
|
updatedAt: string;
|
|
188
186
|
agentId: string;
|
|
189
187
|
projectId: string;
|
|
188
|
+
tenantId: string;
|
|
190
189
|
subAgentId: string;
|
|
190
|
+
headers: Record<string, string> | null;
|
|
191
191
|
externalAgentId: string;
|
|
192
192
|
}>;
|
|
193
193
|
/**
|
|
@@ -197,14 +197,14 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
197
197
|
scopes: SubAgentScopeConfig;
|
|
198
198
|
externalAgentId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
|
-
tenantId: string;
|
|
201
|
-
headers: Record<string, string> | null;
|
|
202
200
|
id: string;
|
|
203
201
|
createdAt: string;
|
|
204
202
|
updatedAt: string;
|
|
205
203
|
agentId: string;
|
|
206
204
|
projectId: string;
|
|
205
|
+
tenantId: string;
|
|
207
206
|
subAgentId: string;
|
|
207
|
+
headers: Record<string, string> | null;
|
|
208
208
|
externalAgentId: string;
|
|
209
209
|
} | undefined>;
|
|
210
210
|
/**
|
|
@@ -218,14 +218,14 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
218
218
|
headers?: Record<string, string> | null;
|
|
219
219
|
};
|
|
220
220
|
}) => Promise<{
|
|
221
|
-
tenantId: string;
|
|
222
|
-
headers: Record<string, string> | null;
|
|
223
221
|
id: string;
|
|
224
222
|
createdAt: string;
|
|
225
223
|
updatedAt: string;
|
|
226
224
|
agentId: string;
|
|
227
225
|
projectId: string;
|
|
226
|
+
tenantId: string;
|
|
228
227
|
subAgentId: string;
|
|
228
|
+
headers: Record<string, string> | null;
|
|
229
229
|
externalAgentId: string;
|
|
230
230
|
}>;
|
|
231
231
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,12 +9,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
tenantId: string;
|
|
13
12
|
id: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
16
15
|
agentId: string;
|
|
17
16
|
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -44,12 +44,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
44
44
|
declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
tenantId: string;
|
|
48
47
|
id: string;
|
|
49
48
|
createdAt: string;
|
|
50
49
|
updatedAt: string;
|
|
51
50
|
agentId: string;
|
|
52
51
|
projectId: string;
|
|
52
|
+
tenantId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -57,12 +57,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
57
57
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
tenantId: string;
|
|
61
60
|
id: string;
|
|
62
61
|
createdAt: string;
|
|
63
62
|
updatedAt: string;
|
|
64
63
|
agentId: string;
|
|
65
64
|
projectId: string;
|
|
65
|
+
tenantId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -126,12 +126,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
126
126
|
}[];
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
|
-
tenantId: string;
|
|
130
129
|
id: string;
|
|
131
130
|
createdAt: string;
|
|
132
131
|
updatedAt: string;
|
|
133
132
|
agentId: string;
|
|
134
133
|
projectId: string;
|
|
134
|
+
tenantId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -145,12 +145,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
145
145
|
targetSubAgentId?: string;
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
|
-
tenantId: string;
|
|
149
148
|
id: string;
|
|
150
149
|
createdAt: string;
|
|
151
150
|
updatedAt: string;
|
|
152
151
|
agentId: string;
|
|
153
152
|
projectId: string;
|
|
153
|
+
tenantId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -159,12 +159,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
159
159
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
160
160
|
*/
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
|
-
tenantId: string;
|
|
163
162
|
id: string;
|
|
164
163
|
createdAt: string;
|
|
165
164
|
updatedAt: string;
|
|
166
165
|
agentId: string;
|
|
167
166
|
projectId: string;
|
|
167
|
+
tenantId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -204,15 +204,15 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
-
tenantId: string;
|
|
208
|
-
headers: Record<string, string> | null;
|
|
209
207
|
id: string;
|
|
210
208
|
createdAt: string;
|
|
211
209
|
updatedAt: string;
|
|
212
210
|
agentId: string;
|
|
213
211
|
projectId: string;
|
|
212
|
+
tenantId: string;
|
|
214
213
|
subAgentId: string;
|
|
215
214
|
toolId: string;
|
|
215
|
+
headers: Record<string, string> | null;
|
|
216
216
|
selectedTools: string[] | null;
|
|
217
217
|
toolPolicies: Record<string, {
|
|
218
218
|
needsApproval?: boolean;
|
|
@@ -248,15 +248,15 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
248
248
|
scopes: SubAgentScopeConfig;
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
|
-
tenantId: string;
|
|
252
|
-
headers: Record<string, string> | null;
|
|
253
251
|
id: string;
|
|
254
252
|
createdAt: string;
|
|
255
253
|
updatedAt: string;
|
|
256
254
|
agentId: string;
|
|
257
255
|
projectId: string;
|
|
256
|
+
tenantId: string;
|
|
258
257
|
subAgentId: string;
|
|
259
258
|
toolId: string;
|
|
259
|
+
headers: Record<string, string> | null;
|
|
260
260
|
selectedTools: string[] | null;
|
|
261
261
|
toolPolicies: Record<string, {
|
|
262
262
|
needsApproval?: boolean;
|