@inkeep/agents-core 0.62.0 → 0.62.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/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 +32 -32
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +12 -12
- package/dist/data-access/manage/skills.d.ts +14 -14
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/triggers.d.ts +1 -1
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +6 -6
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/messages.d.ts +21 -21
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/manage-schema.d.ts +2 -2
- package/dist/db/runtime/runtime-schema.d.ts +2 -2
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +687 -687
- 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 };
|
|
@@ -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,15 @@ 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
17
|
description: string | null;
|
|
18
|
-
tenantId: string;
|
|
19
18
|
projectId: string;
|
|
19
|
+
tenantId: string;
|
|
20
|
+
defaultSubAgentId: string | null;
|
|
21
|
+
contextConfigId: string | null;
|
|
20
22
|
models: {
|
|
21
23
|
base?: {
|
|
22
24
|
model?: string | undefined;
|
|
@@ -31,11 +33,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
31
33
|
providerOptions?: Record<string, unknown> | undefined;
|
|
32
34
|
} | undefined;
|
|
33
35
|
} | null;
|
|
34
|
-
stopWhen: {
|
|
35
|
-
transferCountIs?: number | undefined;
|
|
36
|
-
} | null;
|
|
37
|
-
defaultSubAgentId: string | null;
|
|
38
|
-
contextConfigId: string | null;
|
|
39
36
|
prompt: string | null;
|
|
40
37
|
statusUpdates: {
|
|
41
38
|
enabled?: boolean | undefined;
|
|
@@ -52,18 +49,23 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
52
49
|
} | undefined;
|
|
53
50
|
}[] | undefined;
|
|
54
51
|
} | null;
|
|
52
|
+
stopWhen: {
|
|
53
|
+
transferCountIs?: number | undefined;
|
|
54
|
+
} | null;
|
|
55
55
|
executionMode: "classic" | "durable";
|
|
56
56
|
} | null>;
|
|
57
57
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
name: string;
|
|
61
60
|
id: string;
|
|
61
|
+
name: string;
|
|
62
62
|
createdAt: string;
|
|
63
63
|
updatedAt: string;
|
|
64
64
|
description: string | null;
|
|
65
|
-
tenantId: string;
|
|
66
65
|
projectId: string;
|
|
66
|
+
tenantId: string;
|
|
67
|
+
defaultSubAgentId: string | null;
|
|
68
|
+
contextConfigId: string | null;
|
|
67
69
|
models: {
|
|
68
70
|
base?: {
|
|
69
71
|
model?: string | undefined;
|
|
@@ -78,11 +80,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
78
80
|
providerOptions?: Record<string, unknown> | undefined;
|
|
79
81
|
} | undefined;
|
|
80
82
|
} | null;
|
|
81
|
-
stopWhen: {
|
|
82
|
-
transferCountIs?: number | undefined;
|
|
83
|
-
} | null;
|
|
84
|
-
defaultSubAgentId: string | null;
|
|
85
|
-
contextConfigId: string | null;
|
|
86
83
|
prompt: string | null;
|
|
87
84
|
statusUpdates: {
|
|
88
85
|
enabled?: boolean | undefined;
|
|
@@ -99,15 +96,19 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
99
96
|
} | undefined;
|
|
100
97
|
}[] | undefined;
|
|
101
98
|
} | null;
|
|
99
|
+
stopWhen: {
|
|
100
|
+
transferCountIs?: number | undefined;
|
|
101
|
+
} | null;
|
|
102
102
|
executionMode: "classic" | "durable";
|
|
103
103
|
defaultSubAgent: {
|
|
104
|
-
name: string;
|
|
105
104
|
id: string;
|
|
105
|
+
name: string;
|
|
106
106
|
createdAt: string;
|
|
107
107
|
updatedAt: string;
|
|
108
108
|
description: string | null;
|
|
109
|
-
|
|
109
|
+
agentId: string;
|
|
110
110
|
projectId: string;
|
|
111
|
+
tenantId: string;
|
|
111
112
|
models: {
|
|
112
113
|
base?: {
|
|
113
114
|
model?: string | undefined;
|
|
@@ -122,24 +123,25 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
122
123
|
providerOptions?: Record<string, unknown> | undefined;
|
|
123
124
|
} | undefined;
|
|
124
125
|
} | null;
|
|
126
|
+
prompt: string | null;
|
|
125
127
|
stopWhen: {
|
|
126
128
|
stepCountIs?: number | undefined;
|
|
127
129
|
} | null;
|
|
128
|
-
agentId: string;
|
|
129
|
-
prompt: string | null;
|
|
130
130
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
131
131
|
} | null;
|
|
132
132
|
} | null>;
|
|
133
133
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
134
134
|
scopes: ProjectScopeConfig;
|
|
135
135
|
}) => Promise<{
|
|
136
|
-
name: string;
|
|
137
136
|
id: string;
|
|
137
|
+
name: string;
|
|
138
138
|
createdAt: string;
|
|
139
139
|
updatedAt: string;
|
|
140
140
|
description: string | null;
|
|
141
|
-
tenantId: string;
|
|
142
141
|
projectId: string;
|
|
142
|
+
tenantId: string;
|
|
143
|
+
defaultSubAgentId: string | null;
|
|
144
|
+
contextConfigId: string | null;
|
|
143
145
|
models: {
|
|
144
146
|
base?: {
|
|
145
147
|
model?: string | undefined;
|
|
@@ -154,11 +156,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
154
156
|
providerOptions?: Record<string, unknown> | undefined;
|
|
155
157
|
} | undefined;
|
|
156
158
|
} | null;
|
|
157
|
-
stopWhen: {
|
|
158
|
-
transferCountIs?: number | undefined;
|
|
159
|
-
} | null;
|
|
160
|
-
defaultSubAgentId: string | null;
|
|
161
|
-
contextConfigId: string | null;
|
|
162
159
|
prompt: string | null;
|
|
163
160
|
statusUpdates: {
|
|
164
161
|
enabled?: boolean | undefined;
|
|
@@ -175,6 +172,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
175
172
|
} | undefined;
|
|
176
173
|
}[] | undefined;
|
|
177
174
|
} | null;
|
|
175
|
+
stopWhen: {
|
|
176
|
+
transferCountIs?: number | undefined;
|
|
177
|
+
} | null;
|
|
178
178
|
executionMode: "classic" | "durable";
|
|
179
179
|
}[]>;
|
|
180
180
|
declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -251,13 +251,15 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
251
251
|
projectIds: string[];
|
|
252
252
|
}): Promise<AvailableAgentInfo[]>;
|
|
253
253
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
254
|
-
name: string;
|
|
255
254
|
id: string;
|
|
255
|
+
name: string;
|
|
256
256
|
createdAt: string;
|
|
257
257
|
updatedAt: string;
|
|
258
258
|
description: string | null;
|
|
259
|
-
tenantId: string;
|
|
260
259
|
projectId: string;
|
|
260
|
+
tenantId: string;
|
|
261
|
+
defaultSubAgentId: string | null;
|
|
262
|
+
contextConfigId: string | null;
|
|
261
263
|
models: {
|
|
262
264
|
base?: {
|
|
263
265
|
model?: string | undefined;
|
|
@@ -272,11 +274,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
272
274
|
providerOptions?: Record<string, unknown> | undefined;
|
|
273
275
|
} | undefined;
|
|
274
276
|
} | null;
|
|
275
|
-
stopWhen: {
|
|
276
|
-
transferCountIs?: number | undefined;
|
|
277
|
-
} | null;
|
|
278
|
-
defaultSubAgentId: string | null;
|
|
279
|
-
contextConfigId: string | null;
|
|
280
277
|
prompt: string | null;
|
|
281
278
|
statusUpdates: {
|
|
282
279
|
enabled?: boolean | undefined;
|
|
@@ -293,6 +290,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
293
290
|
} | undefined;
|
|
294
291
|
}[] | undefined;
|
|
295
292
|
} | null;
|
|
293
|
+
stopWhen: {
|
|
294
|
+
transferCountIs?: number | undefined;
|
|
295
|
+
} | null;
|
|
296
296
|
executionMode: "classic" | "durable";
|
|
297
297
|
}>;
|
|
298
298
|
declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -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
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";
|
|
@@ -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
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,10 +143,10 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
143
143
|
}) => Promise<{
|
|
144
144
|
id: string;
|
|
145
145
|
createdAt: string;
|
|
146
|
-
|
|
146
|
+
agentId: string;
|
|
147
147
|
projectId: string;
|
|
148
|
+
tenantId: string;
|
|
148
149
|
subAgentId: string;
|
|
149
|
-
agentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -186,10 +186,10 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
186
186
|
}) => Promise<{
|
|
187
187
|
id: string;
|
|
188
188
|
createdAt: string;
|
|
189
|
-
|
|
189
|
+
agentId: string;
|
|
190
190
|
projectId: string;
|
|
191
|
+
tenantId: string;
|
|
191
192
|
subAgentId: string;
|
|
192
|
-
agentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
195
195
|
/**
|
|
@@ -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
|
-
projectId: string;
|
|
17
15
|
headersSchema: unknown;
|
|
18
16
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
19
17
|
agentId: string;
|
|
18
|
+
projectId: string;
|
|
19
|
+
tenantId: 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
|
-
projectId: string;
|
|
29
27
|
headersSchema: unknown;
|
|
30
28
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
31
29
|
agentId: string;
|
|
30
|
+
projectId: string;
|
|
31
|
+
tenantId: 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
|
-
projectId: string;
|
|
51
49
|
headersSchema: unknown;
|
|
52
50
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
53
51
|
agentId: string;
|
|
52
|
+
projectId: string;
|
|
53
|
+
tenantId: 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
|
-
projectId: string;
|
|
91
89
|
headersSchema: unknown;
|
|
92
90
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
93
91
|
agentId: string;
|
|
92
|
+
projectId: string;
|
|
93
|
+
tenantId: string;
|
|
94
94
|
}>;
|
|
95
95
|
//#endregion
|
|
96
96
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -67,10 +67,10 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
67
67
|
}) => Promise<{
|
|
68
68
|
id: string;
|
|
69
69
|
createdAt: string;
|
|
70
|
-
|
|
70
|
+
agentId: string;
|
|
71
71
|
projectId: string;
|
|
72
|
+
tenantId: string;
|
|
72
73
|
subAgentId: string;
|
|
73
|
-
agentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
76
76
|
/**
|
|
@@ -109,10 +109,10 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
109
109
|
}) => Promise<{
|
|
110
110
|
id: string;
|
|
111
111
|
createdAt: string;
|
|
112
|
-
|
|
112
|
+
agentId: string;
|
|
113
113
|
projectId: string;
|
|
114
|
+
tenantId: string;
|
|
114
115
|
subAgentId: string;
|
|
115
|
-
agentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
118
118
|
/**
|
|
@@ -53,14 +53,14 @@ 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
60
|
description: string | null;
|
|
61
|
-
tenantId: string;
|
|
62
|
-
projectId: string;
|
|
63
61
|
agentId: string;
|
|
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
|
-
name: string;
|
|
99
98
|
id: string;
|
|
99
|
+
name: string;
|
|
100
100
|
createdAt: string;
|
|
101
101
|
updatedAt: string;
|
|
102
102
|
description: string | null;
|
|
103
|
-
tenantId: string;
|
|
104
|
-
projectId: string;
|
|
105
103
|
agentId: string;
|
|
104
|
+
projectId: string;
|
|
105
|
+
tenantId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -160,14 +160,14 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
160
160
|
id: string;
|
|
161
161
|
createdAt: string;
|
|
162
162
|
updatedAt: string;
|
|
163
|
-
|
|
163
|
+
agentId: string;
|
|
164
164
|
projectId: string;
|
|
165
|
+
tenantId: string;
|
|
165
166
|
subAgentId: string;
|
|
166
|
-
|
|
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
|
|
@@ -225,14 +225,14 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
225
225
|
id: string;
|
|
226
226
|
createdAt: string;
|
|
227
227
|
updatedAt: string;
|
|
228
|
-
|
|
228
|
+
agentId: string;
|
|
229
229
|
projectId: string;
|
|
230
|
+
tenantId: string;
|
|
230
231
|
subAgentId: string;
|
|
231
|
-
|
|
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 };
|
|
@@ -8,15 +8,15 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
skillId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
metadata: Record<string, string> | null;
|
|
12
|
-
name: string;
|
|
13
11
|
id: string;
|
|
12
|
+
name: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
15
|
+
metadata: Record<string, string> | null;
|
|
16
16
|
description: string;
|
|
17
|
-
content: string;
|
|
18
|
-
tenantId: string;
|
|
19
17
|
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
|
+
content: string;
|
|
20
20
|
} | null>;
|
|
21
21
|
declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: ProjectScopeConfig;
|
|
@@ -41,26 +41,26 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
41
41
|
};
|
|
42
42
|
}>;
|
|
43
43
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
44
|
-
metadata: Record<string, string> | null;
|
|
45
|
-
name: string;
|
|
46
44
|
id: string;
|
|
45
|
+
name: string;
|
|
47
46
|
createdAt: string;
|
|
48
47
|
updatedAt: string;
|
|
48
|
+
metadata: Record<string, string> | null;
|
|
49
49
|
description: string;
|
|
50
|
-
content: string;
|
|
51
|
-
tenantId: string;
|
|
52
50
|
projectId: string;
|
|
51
|
+
tenantId: string;
|
|
52
|
+
content: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
55
|
-
metadata: Record<string, string> | null;
|
|
56
|
-
name: string;
|
|
57
55
|
id: string;
|
|
56
|
+
name: string;
|
|
58
57
|
createdAt: string;
|
|
59
58
|
updatedAt: string;
|
|
59
|
+
metadata: Record<string, string> | null;
|
|
60
60
|
description: string;
|
|
61
|
-
content: string;
|
|
62
|
-
tenantId: string;
|
|
63
61
|
projectId: string;
|
|
62
|
+
tenantId: string;
|
|
63
|
+
content: string;
|
|
64
64
|
}>;
|
|
65
65
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
66
66
|
scopes: ProjectScopeConfig;
|
|
@@ -94,10 +94,10 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
94
94
|
id: string;
|
|
95
95
|
createdAt: string;
|
|
96
96
|
updatedAt: string;
|
|
97
|
-
|
|
97
|
+
agentId: string;
|
|
98
98
|
projectId: string;
|
|
99
|
+
tenantId: string;
|
|
99
100
|
subAgentId: string;
|
|
100
|
-
agentId: string;
|
|
101
101
|
skillId: string;
|
|
102
102
|
index: number;
|
|
103
103
|
alwaysLoaded: boolean;
|
|
@@ -9,14 +9,14 @@ 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;
|
|
16
|
-
|
|
15
|
+
headers: Record<string, string> | null;
|
|
16
|
+
agentId: string;
|
|
17
17
|
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
18
19
|
subAgentId: string;
|
|
19
|
-
agentId: string;
|
|
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
|
-
headers: Record<string, string> | null;
|
|
48
47
|
id: string;
|
|
49
48
|
createdAt: string;
|
|
50
49
|
updatedAt: string;
|
|
51
|
-
|
|
50
|
+
headers: Record<string, string> | null;
|
|
51
|
+
agentId: string;
|
|
52
52
|
projectId: string;
|
|
53
|
+
tenantId: string;
|
|
53
54
|
subAgentId: string;
|
|
54
|
-
agentId: string;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
headers: Record<string, string> | null;
|
|
61
60
|
id: string;
|
|
62
61
|
createdAt: string;
|
|
63
62
|
updatedAt: string;
|
|
64
|
-
|
|
63
|
+
headers: Record<string, string> | null;
|
|
64
|
+
agentId: string;
|
|
65
65
|
projectId: string;
|
|
66
|
+
tenantId: string;
|
|
66
67
|
subAgentId: string;
|
|
67
|
-
agentId: string;
|
|
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
|
-
headers: Record<string, string> | null;
|
|
184
183
|
id: string;
|
|
185
184
|
createdAt: string;
|
|
186
185
|
updatedAt: string;
|
|
187
|
-
|
|
186
|
+
headers: Record<string, string> | null;
|
|
187
|
+
agentId: string;
|
|
188
188
|
projectId: string;
|
|
189
|
+
tenantId: string;
|
|
189
190
|
subAgentId: string;
|
|
190
|
-
agentId: string;
|
|
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
|
-
headers: Record<string, string> | null;
|
|
201
200
|
id: string;
|
|
202
201
|
createdAt: string;
|
|
203
202
|
updatedAt: string;
|
|
204
|
-
|
|
203
|
+
headers: Record<string, string> | null;
|
|
204
|
+
agentId: string;
|
|
205
205
|
projectId: string;
|
|
206
|
+
tenantId: string;
|
|
206
207
|
subAgentId: string;
|
|
207
|
-
agentId: string;
|
|
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
|
-
headers: Record<string, string> | null;
|
|
222
221
|
id: string;
|
|
223
222
|
createdAt: string;
|
|
224
223
|
updatedAt: string;
|
|
225
|
-
|
|
224
|
+
headers: Record<string, string> | null;
|
|
225
|
+
agentId: string;
|
|
226
226
|
projectId: string;
|
|
227
|
+
tenantId: string;
|
|
227
228
|
subAgentId: string;
|
|
228
|
-
agentId: string;
|
|
229
229
|
externalAgentId: string;
|
|
230
230
|
}>;
|
|
231
231
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|