@inkeep/agents-core 0.58.1 → 0.58.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/auth-validation-schemas.d.ts +152 -152
- package/dist/auth/auth.d.ts +28 -28
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +3 -3
- package/dist/constants/allowed-image-formats.d.ts +8 -0
- package/dist/constants/allowed-image-formats.js +38 -0
- package/dist/constants/models.d.ts +2 -0
- package/dist/constants/models.js +2 -0
- package/dist/constants/otel-attributes.d.ts +1 -0
- package/dist/constants/otel-attributes.js +1 -0
- package/dist/data-access/manage/agents.d.ts +25 -25
- package/dist/data-access/manage/artifactComponents.d.ts +16 -16
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/functionTools.d.ts +20 -20
- package/dist/data-access/manage/skills.d.ts +20 -20
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +36 -36
- 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/conversations.d.ts +24 -24
- 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 +6 -6
- package/dist/db/manage/manage-schema.d.ts +451 -451
- package/dist/db/runtime/runtime-schema.d.ts +303 -303
- package/dist/db/utils.js +4 -0
- package/dist/dolt/migrate-all-branches.js +4 -1
- package/dist/dolt/migrate-dolt.js +20 -3
- package/dist/middleware/authz-meta.d.ts +2 -2
- package/dist/middleware/create-protected-route.d.ts +2 -2
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1956 -1956
- package/package.json +5 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as zod0 from "zod";
|
|
|
4
4
|
import * as better_auth0 from "better-auth";
|
|
5
5
|
import { BetterAuthAdvancedOptions } from "better-auth";
|
|
6
6
|
import * as _better_auth_sso0 from "@better-auth/sso";
|
|
7
|
-
import * as
|
|
7
|
+
import * as better_auth_plugins20 from "better-auth/plugins";
|
|
8
8
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
9
9
|
|
|
10
10
|
//#region src/auth/auth.d.ts
|
|
@@ -277,7 +277,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
277
277
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
278
278
|
}[];
|
|
279
279
|
};
|
|
280
|
-
options:
|
|
280
|
+
options: better_auth_plugins20.BearerOptions | undefined;
|
|
281
281
|
}, {
|
|
282
282
|
id: "sso";
|
|
283
283
|
endpoints: {
|
|
@@ -1268,30 +1268,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1268
1268
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
1269
1269
|
}[];
|
|
1270
1270
|
};
|
|
1271
|
-
},
|
|
1271
|
+
}, better_auth_plugins20.DefaultOrganizationPlugin<{
|
|
1272
1272
|
allowUserToCreateOrganization: true;
|
|
1273
|
-
ac:
|
|
1273
|
+
ac: better_auth_plugins20.AccessControl;
|
|
1274
1274
|
roles: {
|
|
1275
1275
|
member: {
|
|
1276
|
-
authorize<K_1 extends "
|
|
1277
|
-
actions:
|
|
1276
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1277
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1278
1278
|
connector: "OR" | "AND";
|
|
1279
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1280
|
-
statements:
|
|
1279
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1280
|
+
statements: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1281
1281
|
};
|
|
1282
1282
|
admin: {
|
|
1283
|
-
authorize<K_1 extends "
|
|
1284
|
-
actions:
|
|
1283
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1284
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1285
1285
|
connector: "OR" | "AND";
|
|
1286
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1287
|
-
statements:
|
|
1286
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1287
|
+
statements: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1288
1288
|
};
|
|
1289
1289
|
owner: {
|
|
1290
|
-
authorize<K_1 extends "
|
|
1291
|
-
actions:
|
|
1290
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1291
|
+
actions: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1292
1292
|
connector: "OR" | "AND";
|
|
1293
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1294
|
-
statements:
|
|
1293
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1294
|
+
statements: better_auth_plugins20.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1295
1295
|
};
|
|
1296
1296
|
};
|
|
1297
1297
|
creatorRole: "admin";
|
|
@@ -1302,9 +1302,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1302
1302
|
id: string;
|
|
1303
1303
|
role: string;
|
|
1304
1304
|
email: string;
|
|
1305
|
-
organization:
|
|
1306
|
-
invitation:
|
|
1307
|
-
inviter:
|
|
1305
|
+
organization: better_auth_plugins20.Organization;
|
|
1306
|
+
invitation: better_auth_plugins20.Invitation;
|
|
1307
|
+
inviter: better_auth_plugins20.Member & {
|
|
1308
1308
|
user: better_auth0.User;
|
|
1309
1309
|
};
|
|
1310
1310
|
}): Promise<void>;
|
|
@@ -1339,28 +1339,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1339
1339
|
user,
|
|
1340
1340
|
organization: org
|
|
1341
1341
|
}: {
|
|
1342
|
-
invitation:
|
|
1343
|
-
member:
|
|
1342
|
+
invitation: better_auth_plugins20.Invitation & Record<string, any>;
|
|
1343
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1344
1344
|
user: better_auth0.User & Record<string, any>;
|
|
1345
|
-
organization:
|
|
1345
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1346
1346
|
}) => Promise<void>;
|
|
1347
1347
|
beforeUpdateMemberRole: ({
|
|
1348
1348
|
member,
|
|
1349
1349
|
organization: org,
|
|
1350
1350
|
newRole
|
|
1351
1351
|
}: {
|
|
1352
|
-
member:
|
|
1352
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1353
1353
|
newRole: string;
|
|
1354
1354
|
user: better_auth0.User & Record<string, any>;
|
|
1355
|
-
organization:
|
|
1355
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1356
1356
|
}) => Promise<void>;
|
|
1357
1357
|
beforeRemoveMember: ({
|
|
1358
1358
|
member,
|
|
1359
1359
|
organization: org
|
|
1360
1360
|
}: {
|
|
1361
|
-
member:
|
|
1361
|
+
member: better_auth_plugins20.Member & Record<string, any>;
|
|
1362
1362
|
user: better_auth0.User & Record<string, any>;
|
|
1363
|
-
organization:
|
|
1363
|
+
organization: better_auth_plugins20.Organization & Record<string, any>;
|
|
1364
1364
|
}) => Promise<void>;
|
|
1365
1365
|
};
|
|
1366
1366
|
}>, {
|
|
@@ -1701,8 +1701,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1701
1701
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1702
1702
|
};
|
|
1703
1703
|
options: Partial<{
|
|
1704
|
-
expiresIn:
|
|
1705
|
-
interval:
|
|
1704
|
+
expiresIn: better_auth_plugins20.TimeString;
|
|
1705
|
+
interval: better_auth_plugins20.TimeString;
|
|
1706
1706
|
deviceCodeLength: number;
|
|
1707
1707
|
userCodeLength: number;
|
|
1708
1708
|
schema: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
2
2
|
import { AccessControl } from "better-auth/plugins/access";
|
|
3
3
|
import { organizationClient } from "better-auth/client/plugins";
|
|
4
4
|
|
|
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:
|
|
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
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
11
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
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:
|
|
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
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
18
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
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:
|
|
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
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
25
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
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 };
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -19,8 +19,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
19
19
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
20
20
|
id: z.ZodString;
|
|
21
21
|
name: z.ZodString;
|
|
22
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
23
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
22
24
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
-
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
24
25
|
models: z.ZodOptional<z.ZodObject<{
|
|
25
26
|
base: z.ZodOptional<z.ZodObject<{
|
|
26
27
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -35,8 +36,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
35
36
|
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
36
37
|
}, z.core.$strip>>;
|
|
37
38
|
}, z.core.$strip>>;
|
|
38
|
-
|
|
39
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
39
|
+
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
40
40
|
type: z.ZodLiteral<"internal">;
|
|
41
41
|
canUse: z.ZodArray<z.ZodObject<{
|
|
42
42
|
agentToolRelationId: z.ZodOptional<z.ZodString>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/constants/allowed-image-formats.d.ts
|
|
2
|
+
declare const ALLOWED_IMAGE_MIME_TYPES: Set<string>;
|
|
3
|
+
declare const DATA_URI_IMAGE_BASE64_REGEX: RegExp;
|
|
4
|
+
declare function normalizeImageMimeType(mimeType: string): string;
|
|
5
|
+
declare function getExtensionFromMimeType(mimeType?: string): string;
|
|
6
|
+
declare function getMimeTypeFromExtension(extension?: string): string;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ALLOWED_IMAGE_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeImageMimeType };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//#region src/constants/allowed-image-formats.ts
|
|
2
|
+
const ALLOWED_IMAGE_MIME_TYPES = new Set([
|
|
3
|
+
"image/png",
|
|
4
|
+
"image/jpeg",
|
|
5
|
+
"image/webp"
|
|
6
|
+
]);
|
|
7
|
+
const IMAGE_MIME_TYPE_TO_EXTENSION = {
|
|
8
|
+
"image/png": "png",
|
|
9
|
+
"image/jpeg": "jpg",
|
|
10
|
+
"image/jpg": "jpg",
|
|
11
|
+
"image/webp": "webp"
|
|
12
|
+
};
|
|
13
|
+
const IMAGE_EXTENSION_TO_MIME_TYPE = {
|
|
14
|
+
png: "image/png",
|
|
15
|
+
jpg: "image/jpeg",
|
|
16
|
+
jpeg: "image/jpeg",
|
|
17
|
+
webp: "image/webp"
|
|
18
|
+
};
|
|
19
|
+
const dataUriSubtypes = Array.from(ALLOWED_IMAGE_MIME_TYPES).flatMap((mime) => {
|
|
20
|
+
const subtype = mime.replace("image/", "");
|
|
21
|
+
return subtype === "jpeg" ? ["jpeg", "jpg"] : [subtype];
|
|
22
|
+
});
|
|
23
|
+
const DATA_URI_IMAGE_BASE64_REGEX = /* @__PURE__ */ new RegExp(`^data:image/(${dataUriSubtypes.join("|")});base64,`);
|
|
24
|
+
function normalizeImageMimeType(mimeType) {
|
|
25
|
+
return mimeType.split(";")[0]?.trim().toLowerCase() || "";
|
|
26
|
+
}
|
|
27
|
+
function getExtensionFromMimeType(mimeType) {
|
|
28
|
+
if (!mimeType) return "bin";
|
|
29
|
+
const normalizedMimeType = normalizeImageMimeType(mimeType);
|
|
30
|
+
return IMAGE_MIME_TYPE_TO_EXTENSION[normalizedMimeType] || normalizedMimeType.split("/")[1] || "bin";
|
|
31
|
+
}
|
|
32
|
+
function getMimeTypeFromExtension(extension) {
|
|
33
|
+
if (!extension) return "application/octet-stream";
|
|
34
|
+
return IMAGE_EXTENSION_TO_MIME_TYPE[extension.replace(/^\./, "").trim().toLowerCase()] || "application/octet-stream";
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { ALLOWED_IMAGE_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeImageMimeType };
|
|
@@ -20,6 +20,8 @@ declare const ANTHROPIC_MODELS: {
|
|
|
20
20
|
readonly CLAUDE_3_5_HAIKU_20241022: "anthropic/claude-3-5-haiku-20241022";
|
|
21
21
|
};
|
|
22
22
|
declare const OPENAI_MODELS: {
|
|
23
|
+
readonly GPT_5_4_PRO: "openai/gpt-5.4-pro";
|
|
24
|
+
readonly GPT_5_4: "openai/gpt-5.4";
|
|
23
25
|
readonly GPT_5_2: "openai/gpt-5.2";
|
|
24
26
|
readonly GPT_5_2_20251211: "openai/gpt-5.2-2025-12-11";
|
|
25
27
|
readonly GPT_5_1: "openai/gpt-5.1";
|
package/dist/constants/models.js
CHANGED
|
@@ -20,6 +20,8 @@ const ANTHROPIC_MODELS = {
|
|
|
20
20
|
CLAUDE_3_5_HAIKU_20241022: "anthropic/claude-3-5-haiku-20241022"
|
|
21
21
|
};
|
|
22
22
|
const OPENAI_MODELS = {
|
|
23
|
+
GPT_5_4_PRO: "openai/gpt-5.4-pro",
|
|
24
|
+
GPT_5_4: "openai/gpt-5.4",
|
|
23
25
|
GPT_5_2: "openai/gpt-5.2",
|
|
24
26
|
GPT_5_2_20251211: "openai/gpt-5.2-2025-12-11",
|
|
25
27
|
GPT_5_1: "openai/gpt-5.1",
|
|
@@ -114,6 +114,7 @@ declare const SPAN_KEYS: {
|
|
|
114
114
|
readonly AGENT_MAX_STEPS_REACHED: "agent.max_steps_reached";
|
|
115
115
|
readonly AGENT_STEPS_COMPLETED: "agent.steps_completed";
|
|
116
116
|
readonly AGENT_MAX_STEPS: "agent.max_steps";
|
|
117
|
+
readonly GENERATION_TIMEOUT_MS: "generation.timeout_ms";
|
|
117
118
|
readonly STREAM_CLEANUP_REASON: "stream.cleanup.reason";
|
|
118
119
|
readonly STREAM_MAX_LIFETIME_MS: "stream.max_lifetime_ms";
|
|
119
120
|
readonly STREAM_BUFFER_SIZE_BYTES: "stream.buffer_size_bytes";
|
|
@@ -114,6 +114,7 @@ const SPAN_KEYS = {
|
|
|
114
114
|
AGENT_MAX_STEPS_REACHED: "agent.max_steps_reached",
|
|
115
115
|
AGENT_STEPS_COMPLETED: "agent.steps_completed",
|
|
116
116
|
AGENT_MAX_STEPS: "agent.max_steps",
|
|
117
|
+
GENERATION_TIMEOUT_MS: "generation.timeout_ms",
|
|
117
118
|
STREAM_CLEANUP_REASON: "stream.cleanup.reason",
|
|
118
119
|
STREAM_MAX_LIFETIME_MS: "stream.max_lifetime_ms",
|
|
119
120
|
STREAM_BUFFER_SIZE_BYTES: "stream.buffer_size_bytes",
|
|
@@ -9,13 +9,13 @@ import { PgTable } from "drizzle-orm/pg-core";
|
|
|
9
9
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
10
10
|
scopes: AgentScopeConfig;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
tenantId: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
description: string | null;
|
|
15
|
-
name: string;
|
|
16
12
|
id: string;
|
|
13
|
+
name: string;
|
|
17
14
|
createdAt: string;
|
|
18
15
|
updatedAt: string;
|
|
16
|
+
description: string | null;
|
|
17
|
+
tenantId: string;
|
|
18
|
+
projectId: string;
|
|
19
19
|
models: {
|
|
20
20
|
base?: {
|
|
21
21
|
model?: string | undefined;
|
|
@@ -34,8 +34,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
34
34
|
transferCountIs?: number | undefined;
|
|
35
35
|
} | null;
|
|
36
36
|
defaultSubAgentId: string | null;
|
|
37
|
-
contextConfigId: string | null;
|
|
38
37
|
prompt: string | null;
|
|
38
|
+
contextConfigId: string | null;
|
|
39
39
|
statusUpdates: {
|
|
40
40
|
enabled?: boolean | undefined;
|
|
41
41
|
numEvents?: number | undefined;
|
|
@@ -55,13 +55,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
55
55
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
57
57
|
}) => Promise<{
|
|
58
|
-
tenantId: string;
|
|
59
|
-
projectId: string;
|
|
60
|
-
description: string | null;
|
|
61
|
-
name: string;
|
|
62
58
|
id: string;
|
|
59
|
+
name: string;
|
|
63
60
|
createdAt: string;
|
|
64
61
|
updatedAt: string;
|
|
62
|
+
description: string | null;
|
|
63
|
+
tenantId: string;
|
|
64
|
+
projectId: string;
|
|
65
65
|
models: {
|
|
66
66
|
base?: {
|
|
67
67
|
model?: string | undefined;
|
|
@@ -80,8 +80,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
80
80
|
transferCountIs?: number | undefined;
|
|
81
81
|
} | null;
|
|
82
82
|
defaultSubAgentId: string | null;
|
|
83
|
-
contextConfigId: string | null;
|
|
84
83
|
prompt: string | null;
|
|
84
|
+
contextConfigId: string | null;
|
|
85
85
|
statusUpdates: {
|
|
86
86
|
enabled?: boolean | undefined;
|
|
87
87
|
numEvents?: number | undefined;
|
|
@@ -98,14 +98,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
98
98
|
}[] | undefined;
|
|
99
99
|
} | null;
|
|
100
100
|
defaultSubAgent: {
|
|
101
|
-
tenantId: string;
|
|
102
|
-
projectId: string;
|
|
103
|
-
agentId: string;
|
|
104
|
-
description: string | null;
|
|
105
|
-
name: string;
|
|
106
101
|
id: string;
|
|
102
|
+
name: string;
|
|
107
103
|
createdAt: string;
|
|
108
104
|
updatedAt: string;
|
|
105
|
+
description: string | null;
|
|
106
|
+
tenantId: string;
|
|
107
|
+
projectId: string;
|
|
109
108
|
models: {
|
|
110
109
|
base?: {
|
|
111
110
|
model?: string | undefined;
|
|
@@ -123,6 +122,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
123
122
|
stopWhen: {
|
|
124
123
|
stepCountIs?: number | undefined;
|
|
125
124
|
} | null;
|
|
125
|
+
agentId: string;
|
|
126
126
|
prompt: string | null;
|
|
127
127
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
128
128
|
} | null;
|
|
@@ -130,13 +130,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
130
130
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
131
131
|
scopes: ProjectScopeConfig;
|
|
132
132
|
}) => Promise<{
|
|
133
|
-
tenantId: string;
|
|
134
|
-
projectId: string;
|
|
135
|
-
description: string | null;
|
|
136
|
-
name: string;
|
|
137
133
|
id: string;
|
|
134
|
+
name: string;
|
|
138
135
|
createdAt: string;
|
|
139
136
|
updatedAt: string;
|
|
137
|
+
description: string | null;
|
|
138
|
+
tenantId: string;
|
|
139
|
+
projectId: string;
|
|
140
140
|
models: {
|
|
141
141
|
base?: {
|
|
142
142
|
model?: string | undefined;
|
|
@@ -155,8 +155,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
155
155
|
transferCountIs?: number | undefined;
|
|
156
156
|
} | null;
|
|
157
157
|
defaultSubAgentId: string | null;
|
|
158
|
-
contextConfigId: string | null;
|
|
159
158
|
prompt: string | null;
|
|
159
|
+
contextConfigId: string | null;
|
|
160
160
|
statusUpdates: {
|
|
161
161
|
enabled?: boolean | undefined;
|
|
162
162
|
numEvents?: number | undefined;
|
|
@@ -246,13 +246,13 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
246
246
|
projectIds: string[];
|
|
247
247
|
}): Promise<AvailableAgentInfo[]>;
|
|
248
248
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
249
|
-
tenantId: string;
|
|
250
|
-
projectId: string;
|
|
251
|
-
description: string | null;
|
|
252
|
-
name: string;
|
|
253
249
|
id: string;
|
|
250
|
+
name: string;
|
|
254
251
|
createdAt: string;
|
|
255
252
|
updatedAt: string;
|
|
253
|
+
description: string | null;
|
|
254
|
+
tenantId: string;
|
|
255
|
+
projectId: string;
|
|
256
256
|
models: {
|
|
257
257
|
base?: {
|
|
258
258
|
model?: string | undefined;
|
|
@@ -271,8 +271,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
271
271
|
transferCountIs?: number | undefined;
|
|
272
272
|
} | null;
|
|
273
273
|
defaultSubAgentId: string | null;
|
|
274
|
-
contextConfigId: string | null;
|
|
275
274
|
prompt: string | null;
|
|
275
|
+
contextConfigId: string | null;
|
|
276
276
|
statusUpdates: {
|
|
277
277
|
enabled?: boolean | undefined;
|
|
278
278
|
numEvents?: number | undefined;
|
|
@@ -9,11 +9,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
description: string | null;
|
|
12
17
|
tenantId: string;
|
|
13
18
|
projectId: string;
|
|
14
|
-
description: string | null;
|
|
15
|
-
name: string;
|
|
16
|
-
id: string;
|
|
17
19
|
props: {
|
|
18
20
|
[x: string]: unknown;
|
|
19
21
|
type: "object";
|
|
@@ -26,8 +28,6 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
26
28
|
component: string;
|
|
27
29
|
mockData: Record<string, unknown>;
|
|
28
30
|
} | null;
|
|
29
|
-
createdAt: string;
|
|
30
|
-
updatedAt: string;
|
|
31
31
|
} | undefined>;
|
|
32
32
|
declare const listArtifactComponents: (db: AgentsManageDatabaseClient) => (params: {
|
|
33
33
|
scopes: ProjectScopeConfig;
|
|
@@ -65,11 +65,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
68
|
+
id: string;
|
|
69
|
+
name: string;
|
|
70
|
+
createdAt: string;
|
|
71
|
+
updatedAt: string;
|
|
72
|
+
description: string | null;
|
|
68
73
|
tenantId: string;
|
|
69
74
|
projectId: string;
|
|
70
|
-
description: string | null;
|
|
71
|
-
name: string;
|
|
72
|
-
id: string;
|
|
73
75
|
props: {
|
|
74
76
|
[x: string]: unknown;
|
|
75
77
|
type: "object";
|
|
@@ -82,8 +84,6 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
|
|
|
82
84
|
component: string;
|
|
83
85
|
mockData: Record<string, unknown>;
|
|
84
86
|
} | null;
|
|
85
|
-
createdAt: string;
|
|
86
|
-
updatedAt: string;
|
|
87
87
|
}>;
|
|
88
88
|
declare const updateArtifactComponent: (db: AgentsManageDatabaseClient) => (params: {
|
|
89
89
|
scopes: ProjectScopeConfig;
|
|
@@ -141,12 +141,12 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
141
141
|
scopes: SubAgentScopeConfig;
|
|
142
142
|
artifactComponentId: string;
|
|
143
143
|
}) => Promise<{
|
|
144
|
+
id: string;
|
|
145
|
+
createdAt: string;
|
|
144
146
|
tenantId: string;
|
|
145
147
|
projectId: string;
|
|
146
|
-
agentId: string;
|
|
147
148
|
subAgentId: string;
|
|
148
|
-
|
|
149
|
-
createdAt: string;
|
|
149
|
+
agentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -184,12 +184,12 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
184
184
|
scopes: SubAgentScopeConfig;
|
|
185
185
|
artifactComponentId: string;
|
|
186
186
|
}) => Promise<{
|
|
187
|
+
id: string;
|
|
188
|
+
createdAt: string;
|
|
187
189
|
tenantId: string;
|
|
188
190
|
projectId: string;
|
|
189
|
-
agentId: string;
|
|
190
191
|
subAgentId: string;
|
|
191
|
-
|
|
192
|
-
createdAt: string;
|
|
192
|
+
agentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
195
195
|
/**
|
|
@@ -9,24 +9,24 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
tenantId: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
agentId: string;
|
|
15
12
|
id: string;
|
|
16
13
|
createdAt: string;
|
|
17
14
|
updatedAt: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
18
18
|
headersSchema: unknown;
|
|
19
19
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
23
23
|
}) => Promise<{
|
|
24
|
-
tenantId: string;
|
|
25
|
-
projectId: string;
|
|
26
|
-
agentId: string;
|
|
27
24
|
id: string;
|
|
28
25
|
createdAt: string;
|
|
29
26
|
updatedAt: string;
|
|
27
|
+
tenantId: string;
|
|
28
|
+
projectId: string;
|
|
29
|
+
agentId: string;
|
|
30
30
|
headersSchema: unknown;
|
|
31
31
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
32
32
|
}[]>;
|
|
@@ -43,12 +43,12 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
|
-
tenantId: string;
|
|
47
|
-
projectId: string;
|
|
48
|
-
agentId: string;
|
|
49
46
|
id: string;
|
|
50
47
|
createdAt: string;
|
|
51
48
|
updatedAt: string;
|
|
49
|
+
tenantId: string;
|
|
50
|
+
projectId: string;
|
|
51
|
+
agentId: string;
|
|
52
52
|
headersSchema: unknown;
|
|
53
53
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
54
54
|
}>;
|
|
@@ -83,12 +83,12 @@ 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
|
-
projectId: string;
|
|
88
|
-
agentId: string;
|
|
89
86
|
id: string;
|
|
90
87
|
createdAt: string;
|
|
91
88
|
updatedAt: string;
|
|
89
|
+
tenantId: string;
|
|
90
|
+
projectId: string;
|
|
91
|
+
agentId: string;
|
|
92
92
|
headersSchema: unknown;
|
|
93
93
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
94
94
|
}>;
|
|
@@ -65,12 +65,12 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
scopes: SubAgentScopeConfig;
|
|
66
66
|
dataComponentId: string;
|
|
67
67
|
}) => Promise<{
|
|
68
|
+
id: string;
|
|
69
|
+
createdAt: string;
|
|
68
70
|
tenantId: string;
|
|
69
71
|
projectId: string;
|
|
70
|
-
agentId: string;
|
|
71
72
|
subAgentId: string;
|
|
72
|
-
|
|
73
|
-
createdAt: string;
|
|
73
|
+
agentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
76
76
|
/**
|
|
@@ -107,12 +107,12 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
107
107
|
scopes: SubAgentScopeConfig;
|
|
108
108
|
dataComponentId: string;
|
|
109
109
|
}) => Promise<{
|
|
110
|
+
id: string;
|
|
111
|
+
createdAt: string;
|
|
110
112
|
tenantId: string;
|
|
111
113
|
projectId: string;
|
|
112
|
-
agentId: string;
|
|
113
114
|
subAgentId: string;
|
|
114
|
-
|
|
115
|
-
createdAt: string;
|
|
115
|
+
agentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
118
118
|
/**
|