@inkeep/agents-core 0.58.0 → 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.
Files changed (34) hide show
  1. package/dist/auth/auth.d.ts +28 -28
  2. package/dist/auth/permissions.d.ts +13 -13
  3. package/dist/client-exports.d.ts +2 -2
  4. package/dist/constants/allowed-image-formats.d.ts +8 -0
  5. package/dist/constants/allowed-image-formats.js +38 -0
  6. package/dist/constants/models.d.ts +2 -0
  7. package/dist/constants/models.js +2 -0
  8. package/dist/constants/otel-attributes.d.ts +1 -0
  9. package/dist/constants/otel-attributes.js +1 -0
  10. package/dist/data-access/manage/agents.d.ts +16 -16
  11. package/dist/data-access/manage/artifactComponents.d.ts +4 -4
  12. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  13. package/dist/data-access/manage/functionTools.d.ts +4 -4
  14. package/dist/data-access/manage/skills.d.ts +10 -10
  15. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  16. package/dist/data-access/manage/subAgentRelations.d.ts +4 -4
  17. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  18. package/dist/data-access/manage/subAgents.d.ts +12 -12
  19. package/dist/data-access/manage/tools.d.ts +12 -12
  20. package/dist/data-access/manage/triggers.d.ts +2 -2
  21. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  22. package/dist/data-access/runtime/conversations.d.ts +12 -12
  23. package/dist/data-access/runtime/messages.d.ts +6 -6
  24. package/dist/data-access/runtime/tasks.d.ts +3 -3
  25. package/dist/db/manage/manage-schema.d.ts +361 -361
  26. package/dist/db/utils.js +4 -0
  27. package/dist/dolt/migrate-all-branches.js +4 -1
  28. package/dist/dolt/migrate-dolt.js +20 -3
  29. package/dist/middleware/authz-meta.d.ts +2 -2
  30. package/dist/middleware/create-protected-route.d.ts +2 -2
  31. package/dist/middleware/no-auth.d.ts +2 -2
  32. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  33. package/dist/validation/schemas.d.ts +1843 -1843
  34. package/package.json +5 -1
@@ -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 better_auth_plugins0 from "better-auth/plugins";
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: better_auth_plugins0.BearerOptions | undefined;
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
- }, better_auth_plugins0.DefaultOrganizationPlugin<{
1271
+ }, better_auth_plugins20.DefaultOrganizationPlugin<{
1272
1272
  allowUserToCreateOrganization: true;
1273
- ac: better_auth_plugins0.AccessControl;
1273
+ ac: better_auth_plugins20.AccessControl;
1274
1274
  roles: {
1275
1275
  member: {
1276
- authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
1277
- actions: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key];
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"): better_auth_plugins0.AuthorizeResponse;
1280
- statements: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.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 "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
1284
- actions: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key];
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"): better_auth_plugins0.AuthorizeResponse;
1287
- statements: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.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 "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
1291
- actions: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key];
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"): better_auth_plugins0.AuthorizeResponse;
1294
- statements: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.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: better_auth_plugins0.Organization;
1306
- invitation: better_auth_plugins0.Invitation;
1307
- inviter: better_auth_plugins0.Member & {
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: better_auth_plugins0.Invitation & Record<string, any>;
1343
- member: better_auth_plugins0.Member & Record<string, any>;
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: better_auth_plugins0.Organization & Record<string, any>;
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: better_auth_plugins0.Member & Record<string, any>;
1352
+ member: better_auth_plugins20.Member & Record<string, any>;
1353
1353
  newRole: string;
1354
1354
  user: better_auth0.User & Record<string, any>;
1355
- organization: better_auth_plugins0.Organization & Record<string, any>;
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: better_auth_plugins0.Member & Record<string, any>;
1361
+ member: better_auth_plugins20.Member & Record<string, any>;
1362
1362
  user: better_auth0.User & Record<string, any>;
1363
- organization: better_auth_plugins0.Organization & Record<string, any>;
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: better_auth_plugins0.TimeString;
1705
- interval: better_auth_plugins0.TimeString;
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 better_auth_plugins35 from "better-auth/plugins";
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 "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins35.Statements>[key] | {
9
- actions: better_auth_plugins35.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins35.Statements>[key];
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"): better_auth_plugins35.AuthorizeResponse;
12
- statements: better_auth_plugins35.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins35.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 "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins35.Statements>[key] | {
16
- actions: better_auth_plugins35.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins35.Statements>[key];
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"): better_auth_plugins35.AuthorizeResponse;
19
- statements: better_auth_plugins35.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins35.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 "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins35.Statements>[key] | {
23
- actions: better_auth_plugins35.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins35.Statements>[key];
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"): better_auth_plugins35.AuthorizeResponse;
26
- statements: better_auth_plugins35.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins35.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 };
@@ -18,11 +18,10 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
18
18
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
19
19
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
20
20
  id: z.ZodString;
21
+ name: z.ZodString;
21
22
  createdAt: z.ZodOptional<z.ZodString>;
22
23
  updatedAt: z.ZodOptional<z.ZodString>;
23
- name: z.ZodString;
24
24
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
- conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
26
25
  models: z.ZodOptional<z.ZodObject<{
27
26
  base: z.ZodOptional<z.ZodObject<{
28
27
  model: z.ZodOptional<z.ZodString>;
@@ -37,6 +36,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
37
36
  providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
38
37
  }, z.core.$strip>>;
39
38
  }, z.core.$strip>>;
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";
@@ -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",
@@ -10,14 +10,12 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  scopes: AgentScopeConfig;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ name: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- name: string;
16
16
  description: string | null;
17
- defaultSubAgentId: string | null;
18
17
  tenantId: string;
19
18
  projectId: string;
20
- prompt: string | null;
21
19
  models: {
22
20
  base?: {
23
21
  model?: string | undefined;
@@ -35,6 +33,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
35
33
  stopWhen: {
36
34
  transferCountIs?: number | undefined;
37
35
  } | null;
36
+ defaultSubAgentId: string | null;
37
+ prompt: string | null;
38
38
  contextConfigId: string | null;
39
39
  statusUpdates: {
40
40
  enabled?: boolean | undefined;
@@ -56,14 +56,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
56
56
  scopes: AgentScopeConfig;
57
57
  }) => Promise<{
58
58
  id: string;
59
+ name: string;
59
60
  createdAt: string;
60
61
  updatedAt: string;
61
- name: string;
62
62
  description: string | null;
63
- defaultSubAgentId: string | null;
64
63
  tenantId: string;
65
64
  projectId: string;
66
- prompt: string | null;
67
65
  models: {
68
66
  base?: {
69
67
  model?: string | undefined;
@@ -81,6 +79,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
81
79
  stopWhen: {
82
80
  transferCountIs?: number | undefined;
83
81
  } | null;
82
+ defaultSubAgentId: string | null;
83
+ prompt: string | null;
84
84
  contextConfigId: string | null;
85
85
  statusUpdates: {
86
86
  enabled?: boolean | undefined;
@@ -99,15 +99,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
99
99
  } | null;
100
100
  defaultSubAgent: {
101
101
  id: string;
102
+ name: string;
102
103
  createdAt: string;
103
104
  updatedAt: string;
104
- name: string;
105
105
  description: string | null;
106
106
  tenantId: string;
107
107
  projectId: string;
108
- agentId: string;
109
- prompt: string | null;
110
- conversationHistoryConfig: ConversationHistoryConfig | null;
111
108
  models: {
112
109
  base?: {
113
110
  model?: string | undefined;
@@ -125,20 +122,21 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
125
122
  stopWhen: {
126
123
  stepCountIs?: number | undefined;
127
124
  } | null;
125
+ agentId: string;
126
+ prompt: string | null;
127
+ conversationHistoryConfig: ConversationHistoryConfig | null;
128
128
  } | null;
129
129
  } | null>;
130
130
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
131
131
  scopes: ProjectScopeConfig;
132
132
  }) => Promise<{
133
133
  id: string;
134
+ name: string;
134
135
  createdAt: string;
135
136
  updatedAt: string;
136
- name: string;
137
137
  description: string | null;
138
- defaultSubAgentId: string | null;
139
138
  tenantId: string;
140
139
  projectId: string;
141
- prompt: string | null;
142
140
  models: {
143
141
  base?: {
144
142
  model?: string | undefined;
@@ -156,6 +154,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
156
154
  stopWhen: {
157
155
  transferCountIs?: number | undefined;
158
156
  } | null;
157
+ defaultSubAgentId: string | null;
158
+ prompt: string | null;
159
159
  contextConfigId: string | null;
160
160
  statusUpdates: {
161
161
  enabled?: boolean | undefined;
@@ -247,14 +247,12 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
247
247
  }): Promise<AvailableAgentInfo[]>;
248
248
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
249
249
  id: string;
250
+ name: string;
250
251
  createdAt: string;
251
252
  updatedAt: string;
252
- name: string;
253
253
  description: string | null;
254
- defaultSubAgentId: string | null;
255
254
  tenantId: string;
256
255
  projectId: string;
257
- prompt: string | null;
258
256
  models: {
259
257
  base?: {
260
258
  model?: string | undefined;
@@ -272,6 +270,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
272
270
  stopWhen: {
273
271
  transferCountIs?: number | undefined;
274
272
  } | null;
273
+ defaultSubAgentId: string | null;
274
+ prompt: string | null;
275
275
  contextConfigId: string | null;
276
276
  statusUpdates: {
277
277
  enabled?: boolean | undefined;
@@ -10,9 +10,9 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
10
10
  id: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
+ name: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- name: string;
16
16
  description: string | null;
17
17
  tenantId: string;
18
18
  projectId: string;
@@ -66,9 +66,9 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
66
66
  }>;
67
67
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
68
68
  id: string;
69
+ name: string;
69
70
  createdAt: string;
70
71
  updatedAt: string;
71
- name: string;
72
72
  description: string | null;
73
73
  tenantId: string;
74
74
  projectId: string;
@@ -145,8 +145,8 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
145
145
  createdAt: string;
146
146
  tenantId: string;
147
147
  projectId: string;
148
- agentId: string;
149
148
  subAgentId: string;
149
+ agentId: string;
150
150
  artifactComponentId: string;
151
151
  }>;
152
152
  declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -188,8 +188,8 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
188
188
  createdAt: string;
189
189
  tenantId: string;
190
190
  projectId: string;
191
- agentId: string;
192
191
  subAgentId: string;
192
+ agentId: string;
193
193
  artifactComponentId: string;
194
194
  } | null>;
195
195
  /**
@@ -69,8 +69,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
69
69
  createdAt: string;
70
70
  tenantId: string;
71
71
  projectId: string;
72
- agentId: string;
73
72
  subAgentId: string;
73
+ agentId: string;
74
74
  dataComponentId: string;
75
75
  }>;
76
76
  /**
@@ -111,8 +111,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
111
111
  createdAt: string;
112
112
  tenantId: string;
113
113
  projectId: string;
114
- agentId: string;
115
114
  subAgentId: string;
115
+ agentId: string;
116
116
  dataComponentId: string;
117
117
  } | null>;
118
118
  /**
@@ -54,9 +54,9 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
56
  id: string;
57
+ name: string;
57
58
  createdAt: string;
58
59
  updatedAt: string;
59
- name: string;
60
60
  description: string | null;
61
61
  tenantId: string;
62
62
  projectId: string;
@@ -96,9 +96,9 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
98
  id: string;
99
+ name: string;
99
100
  createdAt: string;
100
101
  updatedAt: string;
101
- name: string;
102
102
  description: string | null;
103
103
  tenantId: string;
104
104
  projectId: string;
@@ -166,11 +166,11 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
166
166
  updatedAt: string;
167
167
  tenantId: string;
168
168
  projectId: string;
169
+ subAgentId: string;
169
170
  agentId: string;
170
171
  toolPolicies: Record<string, {
171
172
  needsApproval?: boolean;
172
173
  }> | null;
173
- subAgentId: string;
174
174
  functionToolId: string;
175
175
  }>;
176
176
  /**
@@ -231,11 +231,11 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
231
231
  updatedAt: string;
232
232
  tenantId: string;
233
233
  projectId: string;
234
+ subAgentId: string;
234
235
  agentId: string;
235
236
  toolPolicies: Record<string, {
236
237
  needsApproval?: boolean;
237
238
  }> | null;
238
- subAgentId: string;
239
239
  functionToolId: string;
240
240
  }>;
241
241
  //#endregion
@@ -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
11
  id: string;
12
+ name: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- name: string;
15
+ metadata: Record<string, string> | null;
16
16
  description: string;
17
+ content: string;
17
18
  tenantId: string;
18
19
  projectId: 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
44
  id: string;
45
+ name: string;
46
46
  createdAt: string;
47
47
  updatedAt: string;
48
- name: string;
48
+ metadata: Record<string, string> | null;
49
49
  description: string;
50
+ content: string;
50
51
  tenantId: string;
51
52
  projectId: string;
52
- content: string;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
- metadata: Record<string, string> | null;
56
55
  id: string;
56
+ name: string;
57
57
  createdAt: string;
58
58
  updatedAt: string;
59
- name: string;
59
+ metadata: Record<string, string> | null;
60
60
  description: string;
61
+ content: string;
61
62
  tenantId: string;
62
63
  projectId: string;
63
- content: string;
64
64
  }>;
65
65
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
66
66
  scopes: ProjectScopeConfig;
@@ -96,10 +96,10 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
96
96
  updatedAt: string;
97
97
  tenantId: string;
98
98
  projectId: string;
99
+ subAgentId: string;
99
100
  agentId: string;
100
101
  index: number;
101
102
  alwaysLoaded: boolean;
102
- subAgentId: string;
103
103
  skillId: string;
104
104
  }>;
105
105
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {