@inkeep/agents-core 0.59.4 → 0.61.0

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 (88) hide show
  1. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  2. package/dist/auth/init.js +42 -0
  3. package/dist/auth/wait-for-spicedb.d.ts +1 -0
  4. package/dist/auth/wait-for-spicedb.js +51 -0
  5. package/dist/client-exports.d.ts +4 -107
  6. package/dist/client-exports.js +3 -61
  7. package/dist/constants/context-breakdown.js +5 -0
  8. package/dist/constants/otel-attributes.d.ts +25 -1
  9. package/dist/constants/otel-attributes.js +25 -1
  10. package/dist/data-access/index.d.ts +4 -3
  11. package/dist/data-access/index.js +4 -3
  12. package/dist/data-access/manage/agentFull.js +15 -10
  13. package/dist/data-access/manage/agents.d.ts +69 -63
  14. package/dist/data-access/manage/agents.js +2 -0
  15. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  16. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  17. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  18. package/dist/data-access/manage/functionTools.d.ts +18 -18
  19. package/dist/data-access/manage/functionTools.js +2 -2
  20. package/dist/data-access/manage/projectFull.js +24 -3
  21. package/dist/data-access/manage/skills.d.ts +14 -14
  22. package/dist/data-access/manage/skills.js +2 -3
  23. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +27 -27
  24. package/dist/data-access/manage/subAgentExternalAgentRelations.js +2 -2
  25. package/dist/data-access/manage/subAgentRelations.d.ts +29 -29
  26. package/dist/data-access/manage/subAgentRelations.js +2 -2
  27. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +30 -30
  28. package/dist/data-access/manage/subAgentTeamAgentRelations.js +2 -2
  29. package/dist/data-access/manage/subAgents.d.ts +36 -36
  30. package/dist/data-access/manage/tools.d.ts +21 -21
  31. package/dist/data-access/manage/tools.js +2 -2
  32. package/dist/data-access/manage/triggers.d.ts +2 -2
  33. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  34. package/dist/data-access/runtime/apps.d.ts +61 -13
  35. package/dist/data-access/runtime/apps.js +15 -1
  36. package/dist/data-access/runtime/conversations.d.ts +23 -23
  37. package/dist/data-access/runtime/conversations.js +18 -1
  38. package/dist/data-access/runtime/ledgerArtifacts.d.ts +11 -2
  39. package/dist/data-access/runtime/ledgerArtifacts.js +12 -1
  40. package/dist/data-access/runtime/messages.d.ts +18 -18
  41. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  42. package/dist/data-access/runtime/tasks.d.ts +4 -4
  43. package/dist/data-access/runtime/workflowExecutions.d.ts +25 -0
  44. package/dist/data-access/runtime/workflowExecutions.js +32 -0
  45. package/dist/db/manage/manage-schema.d.ts +495 -475
  46. package/dist/db/manage/manage-schema.js +1 -0
  47. package/dist/db/runtime/runtime-schema.d.ts +568 -334
  48. package/dist/db/runtime/runtime-schema.js +19 -2
  49. package/dist/dolt/fk-map.d.ts +5 -0
  50. package/dist/dolt/fk-map.js +34 -0
  51. package/dist/dolt/index.d.ts +3 -2
  52. package/dist/dolt/index.js +3 -2
  53. package/dist/dolt/resolve-conflicts.d.ts +11 -1
  54. package/dist/dolt/resolve-conflicts.js +105 -47
  55. package/dist/index.d.ts +15 -10
  56. package/dist/index.js +13 -8
  57. package/dist/types/entities.d.ts +5 -2
  58. package/dist/types/index.d.ts +3 -3
  59. package/dist/types/utility.d.ts +11 -3
  60. package/dist/utils/apiKeys.js +1 -1
  61. package/dist/utils/conversations.d.ts +10 -1
  62. package/dist/utils/conversations.js +19 -1
  63. package/dist/utils/error.d.ts +51 -51
  64. package/dist/utils/index.d.ts +7 -2
  65. package/dist/utils/index.js +5 -2
  66. package/dist/utils/model-factory.js +35 -10
  67. package/dist/utils/token-estimator.d.ts +19 -0
  68. package/dist/utils/token-estimator.js +17 -0
  69. package/dist/utils/usage-cost-middleware.d.ts +13 -0
  70. package/dist/utils/usage-cost-middleware.js +60 -0
  71. package/dist/utils/usage-tracker.d.ts +2 -0
  72. package/dist/utils/usage-tracker.js +1 -0
  73. package/dist/utils/validate-public-key.d.ts +10 -0
  74. package/dist/utils/validate-public-key.js +89 -0
  75. package/dist/validation/agentFull.js +0 -1
  76. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  77. package/dist/validation/index.d.ts +2 -2
  78. package/dist/validation/index.js +2 -2
  79. package/dist/validation/schemas.d.ts +3518 -2682
  80. package/dist/validation/schemas.js +104 -36
  81. package/drizzle/manage/0013_gorgeous_umar.sql +1 -0
  82. package/drizzle/manage/meta/0013_snapshot.json +3704 -0
  83. package/drizzle/manage/meta/_journal.json +7 -0
  84. package/drizzle/runtime/0025_faulty_kylun.sql +1 -0
  85. package/drizzle/runtime/0026_graceful_scorpion.sql +15 -0
  86. package/drizzle/runtime/meta/0026_snapshot.json +4389 -0
  87. package/drizzle/runtime/meta/_journal.json +14 -0
  88. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
1
  import { schemaValidationDefaults } from "../constants/schema-validation/defaults.js";
2
2
  import { agents, artifactComponents, contextConfigs, credentialReferences, dataComponents, dataset, datasetItem, datasetRunConfig, datasetRunConfigAgentRelations, evaluationJobConfig, evaluationJobConfigEvaluatorRelations, evaluationRunConfig, evaluationRunConfigEvaluationSuiteConfigRelations, evaluationSuiteConfig, evaluationSuiteConfigEvaluatorRelations, evaluator, externalAgents, functionTools, functions, projects, scheduledTriggers, scheduledWorkflows, skills, subAgentArtifactComponents, subAgentDataComponents, subAgentExternalAgentRelations, subAgentFunctionToolRelations, subAgentRelations, subAgentSkills, subAgentTeamAgentRelations, subAgentToolRelations, subAgents, tools, triggers } from "../db/manage/manage-schema.js";
3
- import { apiKeys, apps, contextCache, conversations, datasetRun, datasetRunConversationRelations, evaluationResult, evaluationRun, ledgerArtifacts, messages, projectMetadata, scheduledTriggerInvocations, taskRelations, tasks, triggerInvocations, userProfile, workAppGitHubInstallations, workAppGitHubMcpToolRepositoryAccess, workAppGitHubProjectRepositoryAccess, workAppGitHubRepositories, workAppSlackChannelAgentConfigs, workAppSlackMcpToolAccessConfig, workAppSlackWorkspaces } from "../db/runtime/runtime-schema.js";
3
+ import { apiKeys, apps, contextCache, conversations, datasetRun, datasetRunConversationRelations, evaluationResult, evaluationRun, ledgerArtifacts, messages, projectMetadata, scheduledTriggerInvocations, taskRelations, tasks, triggerInvocations, userProfile, workAppGitHubInstallations, workAppGitHubMcpToolRepositoryAccess, workAppGitHubProjectRepositoryAccess, workAppGitHubRepositories, workAppSlackChannelAgentConfigs, workAppSlackMcpToolAccessConfig, workAppSlackWorkspaces, workflowExecutions } from "../db/runtime/runtime-schema.js";
4
4
  import { CredentialStoreType, MCPServerType, MCPTransportType, TOOL_STATUS_VALUES, VALID_RELATION_TYPES } from "../types/utility.js";
5
5
  import { jmespathString, validateJMESPathSecure, validateRegex } from "../utils/jmespath-utils.js";
6
6
  import { ResolvedRefSchema } from "./dolt-schemas.js";
7
7
  import { createInsertSchema, createSelectSchema, registerFieldSchemas } from "./drizzle-schema-helpers.js";
8
8
  import { ArtifactComponentExtendSchema, DataComponentExtendSchema, DescriptionSchema, NameSchema } from "./extend-schemas.js";
9
- import { z } from "@hono/zod-openapi";
10
9
  import { parse } from "@babel/parser";
10
+ import { z } from "@hono/zod-openapi";
11
11
 
12
12
  //#region src/validation/schemas.ts
13
13
  const { AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS } = schemaValidationDefaults;
@@ -45,8 +45,8 @@ const PartSchema = z.discriminatedUnion("kind", [
45
45
  DataPartSchema
46
46
  ]).openapi("Part");
47
47
  const StopWhenSchema = z.object({
48
- transferCountIs: z.number().min(AGENT_EXECUTION_TRANSFER_COUNT_MIN).max(AGENT_EXECUTION_TRANSFER_COUNT_MAX).optional().describe("The maximum number of transfers to trigger the stop condition."),
49
- stepCountIs: z.number().min(SUB_AGENT_TURN_GENERATION_STEPS_MIN).max(SUB_AGENT_TURN_GENERATION_STEPS_MAX).optional().describe("The maximum number of steps to trigger the stop condition.")
48
+ transferCountIs: z.int().min(AGENT_EXECUTION_TRANSFER_COUNT_MIN).max(AGENT_EXECUTION_TRANSFER_COUNT_MAX).optional().describe("The maximum number of transfers to trigger the stop condition."),
49
+ stepCountIs: z.int().min(SUB_AGENT_TURN_GENERATION_STEPS_MIN).max(SUB_AGENT_TURN_GENERATION_STEPS_MAX).optional().describe("The maximum number of steps to trigger the stop condition.")
50
50
  }).openapi("StopWhen");
51
51
  const AgentStopWhenSchema = StopWhenSchema.pick({ transferCountIs: true }).openapi("AgentStopWhen");
52
52
  const SubAgentStopWhenSchema = StopWhenSchema.pick({ stepCountIs: true }).openapi("SubAgentStopWhen");
@@ -57,15 +57,15 @@ const UserIdSchema = z.string().openapi("UserId", {
57
57
  description: "User identifier",
58
58
  example: "user_123"
59
59
  });
60
- const ResourceIdSchema = z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).regex(URL_SAFE_ID_PATTERN, { message: "ID must contain only letters, numbers, hyphens, underscores, and dots" }).refine((value) => value !== "new", "Must not use a reserved name \"new\"").openapi("ResourceId", {
60
+ const ResourceIdSchema = z.string().trim().nonempty("Id is required").max(MAX_ID_LENGTH).regex(URL_SAFE_ID_PATTERN, { message: "ID must contain only letters, numbers, hyphens, underscores, and dots" }).refine((value) => value !== "new", "Must not use a reserved name \"new\"").openapi("ResourceId", {
61
61
  description: "Resource identifier",
62
62
  example: "resource_789"
63
63
  });
64
64
  const pageNumber = z.coerce.number().min(1).default(1).openapi("PaginationPageQueryParam");
65
65
  const limitNumber = z.coerce.number().min(1).max(100).default(10).openapi("PaginationLimitQueryParam");
66
66
  const ModelSettingsSchema = z.object({
67
- model: z.string().optional().describe("The model to use for the project."),
68
- providerOptions: z.record(z.string(), z.any()).optional().describe("The provider options to use for the project.")
67
+ model: z.string().trim().optional().openapi({ description: "The model to use for the project." }),
68
+ providerOptions: z.record(z.string(), z.unknown()).optional().openapi({ description: "The provider options to use for the project." })
69
69
  }).openapi("ModelSettings");
70
70
  const SimulationAgentSchema = z.object({
71
71
  stopWhen: StopWhenSchema.optional(),
@@ -129,6 +129,8 @@ const createAgentScopedApiUpdateSchema = (schema) => schema.omit({
129
129
  const SubAgentSelectSchema = createSelectSchema(subAgents);
130
130
  const SubAgentInsertSchema = createInsertSchema(subAgents).extend({
131
131
  id: ResourceIdSchema,
132
+ name: NameSchema,
133
+ description: DescriptionSchema,
132
134
  models: ModelSchema.optional()
133
135
  });
134
136
  const SubAgentUpdateSchema = SubAgentInsertSchema.partial();
@@ -194,10 +196,11 @@ const AgentInsertSchema = createInsertSchema(agents, {
194
196
  id: () => ResourceIdSchema,
195
197
  name: () => NameSchema,
196
198
  description: () => DescriptionSchema,
197
- defaultSubAgentId: () => ResourceIdSchema.clone().nullable().optional().openapi({
199
+ defaultSubAgentId: () => ResourceIdSchema.clone().openapi({
198
200
  description: "ID of the default sub-agent that handles initial user messages. Required at runtime but nullable on creation to avoid circular FK dependency. Workflow: 1) POST Agent (without defaultSubAgentId), 2) POST SubAgent, 3) PATCH Agent with defaultSubAgentId.",
199
201
  example: "my-default-subagent"
200
- })
202
+ }),
203
+ executionMode: () => z.enum(["classic", "durable"]).optional()
201
204
  });
202
205
  const AgentUpdateSchema = AgentInsertSchema.partial();
203
206
  const AgentApiSelectSchema = createApiSchema(AgentSelectSchema).openapi("Agent");
@@ -636,7 +639,10 @@ const McpToolDefinitionSchema = z.object({
636
639
  const ToolSelectSchema = createSelectSchema(tools);
637
640
  const ToolInsertSchema = createInsertSchema(tools).extend({
638
641
  id: ResourceIdSchema,
642
+ name: NameSchema,
643
+ description: DescriptionSchema,
639
644
  imageUrl: imageUrlSchema,
645
+ headers: StringRecordSchema.nullish(),
640
646
  config: z.object({
641
647
  type: z.literal("mcp"),
642
648
  mcp: z.object({
@@ -958,18 +964,52 @@ const ApiKeyApiInsertSchema = ApiKeyInsertSchema.omit({
958
964
  const ApiKeyApiUpdateSchema = ApiKeyUpdateSchema.openapi("ApiKeyUpdate");
959
965
  const ALLOWED_DOMAIN_PATTERN = /^(\*|\*\.[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?)*|[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?)*(:\d{1,5})?)$/;
960
966
  const AllowedDomainSchema = z.string().min(1).regex(ALLOWED_DOMAIN_PATTERN, "Invalid domain pattern. Use a hostname (e.g. \"example.com\"), wildcard (\"*.example.com\"), or bare \"*\" to allow all origins.");
967
+ const PublicKeyAlgorithmSchema = z.enum([
968
+ "RS256",
969
+ "RS384",
970
+ "RS512",
971
+ "ES256",
972
+ "ES384",
973
+ "ES512",
974
+ "EdDSA"
975
+ ]);
976
+ const PublicKeyConfigSchema = z.object({
977
+ kid: z.string().min(1),
978
+ publicKey: z.string().min(1),
979
+ algorithm: PublicKeyAlgorithmSchema,
980
+ addedAt: z.string().datetime()
981
+ }).openapi("PublicKeyConfig");
982
+ const WebClientAuthConfigSchema = z.object({
983
+ publicKeys: z.array(PublicKeyConfigSchema).max(5).default([]),
984
+ audience: z.string().optional(),
985
+ validateScopeClaims: z.boolean().optional(),
986
+ allowAnonymous: z.boolean().optional()
987
+ }).openapi("WebClientAuthConfig");
961
988
  const WebClientConfigSchema = z.object({
962
989
  type: z.literal("web_client"),
963
- webClient: z.object({ allowedDomains: z.array(AllowedDomainSchema).min(1) })
990
+ webClient: z.object({
991
+ allowedDomains: z.array(AllowedDomainSchema).min(1),
992
+ auth: WebClientAuthConfigSchema.optional()
993
+ })
964
994
  }).openapi("WebClientConfig");
965
995
  const ApiConfigSchema = z.object({
966
996
  type: z.literal("api"),
967
997
  api: z.object({}).default({})
968
998
  }).openapi("ApiConfig");
969
999
  const AppConfigSchema = z.discriminatedUnion("type", [WebClientConfigSchema, ApiConfigSchema]).openapi("AppConfig");
1000
+ const AddPublicKeyRequestSchema = z.object({
1001
+ kid: z.string().min(1).describe("Key identifier"),
1002
+ publicKey: z.string().min(1).describe("PEM-encoded public key"),
1003
+ algorithm: PublicKeyAlgorithmSchema.describe("Signing algorithm")
1004
+ }).openapi("AddPublicKeyRequest");
1005
+ const PublicKeyListResponseSchema = z.object({ data: z.array(PublicKeyConfigSchema) }).openapi("PublicKeyListResponse");
1006
+ const PublicKeyResponseSchema = z.object({ data: PublicKeyConfigSchema }).openapi("PublicKeyResponse");
970
1007
  const WebClientConfigResponseSchema = z.object({
971
1008
  type: z.literal("web_client"),
972
- webClient: z.object({ allowedDomains: z.array(AllowedDomainSchema).min(1) })
1009
+ webClient: z.object({
1010
+ allowedDomains: z.array(AllowedDomainSchema).min(1),
1011
+ auth: WebClientAuthConfigSchema.optional()
1012
+ })
973
1013
  }).openapi("WebClientConfigResponse");
974
1014
  const AppConfigResponseSchema = z.discriminatedUnion("type", [WebClientConfigResponseSchema, ApiConfigSchema]).openapi("AppConfigResponse");
975
1015
  const AppSelectSchema = createSelectSchema(apps);
@@ -1086,7 +1126,11 @@ const ToolApiSelectSchema = createApiSchema(ToolSelectSchema).openapi("Tool");
1086
1126
  const ToolApiInsertSchema = createApiInsertSchema(ToolInsertSchema).openapi("ToolCreate");
1087
1127
  const ToolApiUpdateSchema = createApiUpdateSchema(ToolUpdateSchema).openapi("ToolUpdate");
1088
1128
  const FunctionToolSelectSchema = createSelectSchema(functionTools);
1089
- const FunctionToolInsertSchema = createInsertSchema(functionTools).extend({ id: ResourceIdSchema }).omit({
1129
+ const FunctionToolInsertSchema = createInsertSchema(functionTools).extend({
1130
+ id: ResourceIdSchema,
1131
+ name: NameSchema,
1132
+ description: DescriptionSchema
1133
+ }).omit({
1090
1134
  createdAt: true,
1091
1135
  updatedAt: true
1092
1136
  });
@@ -1110,10 +1154,15 @@ const SubAgentFunctionToolRelationApiInsertSchema = SubAgentFunctionToolRelation
1110
1154
  updatedAt: true
1111
1155
  }).openapi("SubAgentFunctionToolRelationCreate");
1112
1156
  const FunctionSelectSchema = createSelectSchema(functions);
1113
- const FunctionInsertSchema = createInsertSchema(functions).extend({ id: ResourceIdSchema });
1157
+ const FunctionInsertSchema = createInsertSchema(functions).extend({
1158
+ id: ResourceIdSchema,
1159
+ dependencies: StringRecordSchema.nullish(),
1160
+ executeCode: z.string().trim().nonempty().superRefine(validateExecuteCode),
1161
+ inputSchema: z.record(z.string(), z.unknown()).nullish()
1162
+ });
1114
1163
  const FunctionUpdateSchema = FunctionInsertSchema.partial();
1115
1164
  const FunctionApiSelectSchema = createApiSchema(FunctionSelectSchema).openapi("Function");
1116
- const validateExecuteCode = (val, ctx) => {
1165
+ function validateExecuteCode(val, ctx) {
1117
1166
  try {
1118
1167
  const isAnonymousFunction = /^(async\s+)?function(\s+)?\(/.test(val);
1119
1168
  if (isAnonymousFunction) val = `(${val})`;
@@ -1140,8 +1189,8 @@ const validateExecuteCode = (val, ctx) => {
1140
1189
  input: val
1141
1190
  });
1142
1191
  }
1143
- };
1144
- const FunctionApiInsertSchema = createApiInsertSchema(FunctionInsertSchema).extend({ executeCode: z.string().trim().nonempty().superRefine(validateExecuteCode) }).omit({
1192
+ }
1193
+ const FunctionApiInsertSchema = createApiInsertSchema(FunctionInsertSchema).omit({
1145
1194
  createdAt: true,
1146
1195
  updatedAt: true
1147
1196
  }).openapi("FunctionCreate");
@@ -1176,11 +1225,11 @@ const ContextConfigSelectSchema = createSelectSchema(contextConfigs).extend({ he
1176
1225
  }) });
1177
1226
  const ContextConfigInsertSchema = createInsertSchema(contextConfigs).extend({
1178
1227
  id: ResourceIdSchema.optional(),
1179
- headersSchema: z.any().nullable().optional().openapi({
1228
+ headersSchema: z.record(z.string(), z.unknown(), "Must be valid JSON object").nullish().openapi({
1180
1229
  type: "object",
1181
1230
  description: "JSON Schema for validating request headers"
1182
1231
  }),
1183
- contextVariables: z.any().nullable().optional().openapi({
1232
+ contextVariables: z.record(z.string(), z.unknown(), "Must be valid JSON object").nullish().openapi({
1184
1233
  type: "object",
1185
1234
  description: "Context variables configuration with fetch definitions"
1186
1235
  })
@@ -1248,11 +1297,11 @@ const StatusComponentSchema = z.object({
1248
1297
  required: z.array(z.string()).optional()
1249
1298
  }).optional()
1250
1299
  }).openapi("StatusComponent");
1251
- const StatusUpdateSchema = z.object({
1300
+ const StatusUpdateSchema = z.strictObject({
1252
1301
  enabled: z.boolean().optional(),
1253
- numEvents: z.number().min(1).max(STATUS_UPDATE_MAX_NUM_EVENTS).optional(),
1254
- timeInSeconds: z.number().min(1).max(STATUS_UPDATE_MAX_INTERVAL_SECONDS).optional(),
1255
- prompt: z.string().max(VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, `Custom prompt cannot exceed ${VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS} characters`).optional(),
1302
+ numEvents: z.int().min(1).max(STATUS_UPDATE_MAX_NUM_EVENTS).optional().openapi({ description: "Trigger after N events" }),
1303
+ timeInSeconds: z.int().min(1).max(STATUS_UPDATE_MAX_INTERVAL_SECONDS).optional().openapi({ description: "Trigger after N seconds" }),
1304
+ prompt: z.string().trim().max(VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, `Custom prompt cannot exceed ${VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS} characters`).optional(),
1256
1305
  statusComponents: z.array(StatusComponentSchema).optional()
1257
1306
  }).openapi("StatusUpdate");
1258
1307
  const CanUseItemSchema = z.object({
@@ -1287,9 +1336,9 @@ const canDelegateToTeamAgentSchema = z.object({
1287
1336
  headers: z.record(z.string(), z.string()).nullish()
1288
1337
  }).openapi("CanDelegateToTeamAgent");
1289
1338
  const TeamAgentSchema = z.object({
1290
- id: z.string(),
1291
- name: z.string(),
1292
- description: z.string()
1339
+ id: ResourceIdSchema,
1340
+ name: NameSchema,
1341
+ description: DescriptionSchema
1293
1342
  }).openapi("TeamAgent");
1294
1343
  const FullAgentAgentInsertSchema = SubAgentApiInsertSchema.extend({
1295
1344
  type: z.literal("internal"),
@@ -1310,20 +1359,27 @@ const FullAgentAgentInsertSchema = SubAgentApiInsertSchema.extend({
1310
1359
  ])).optional(),
1311
1360
  stopWhen: SubAgentStopWhenSchema.optional()
1312
1361
  }).openapi("FullAgentAgentInsert");
1313
- const AgentWithinContextOfProjectSchema = AgentApiInsertSchema.extend({
1362
+ const AgentWithinContextOfProjectSchemaBase = AgentApiInsertSchema.extend({
1363
+ contextConfig: ContextConfigApiInsertSchema.optional(),
1364
+ statusUpdates: StatusUpdateSchema.optional(),
1365
+ models: ModelSchema.optional(),
1366
+ stopWhen: AgentStopWhenSchema.optional(),
1367
+ prompt: z.string().trim().max(VALIDATION_AGENT_PROMPT_MAX_CHARS, `Agent prompt cannot exceed ${VALIDATION_AGENT_PROMPT_MAX_CHARS} characters`).optional(),
1314
1368
  subAgents: z.record(z.string(), FullAgentAgentInsertSchema),
1315
- tools: z.record(z.string(), ToolApiInsertSchema).optional(),
1316
- externalAgents: z.record(z.string(), ExternalAgentApiInsertSchema).optional(),
1317
- teamAgents: z.record(z.string(), TeamAgentSchema).optional(),
1318
1369
  functionTools: z.record(z.string(), FunctionToolApiInsertSchema).optional(),
1319
1370
  functions: z.record(z.string(), FunctionApiInsertSchema).optional(),
1371
+ externalAgents: z.record(z.string(), ExternalAgentApiInsertSchema).optional(),
1372
+ teamAgents: z.record(z.string(), TeamAgentSchema).optional(),
1373
+ tools: z.record(z.string(), ToolApiInsertSchema).optional(),
1320
1374
  triggers: z.record(z.string(), TriggerApiInsertSchema).optional(),
1321
- scheduledTriggers: z.record(z.string(), ScheduledTriggerApiInsertBaseSchema).optional(),
1322
- contextConfig: z.optional(ContextConfigApiInsertSchema),
1323
- statusUpdates: z.optional(StatusUpdateSchema),
1324
- models: ModelSchema.optional(),
1325
- stopWhen: AgentStopWhenSchema.optional(),
1326
- prompt: z.string().max(VALIDATION_AGENT_PROMPT_MAX_CHARS, `Agent prompt cannot exceed ${VALIDATION_AGENT_PROMPT_MAX_CHARS} characters`).optional()
1375
+ scheduledTriggers: z.record(z.string(), ScheduledTriggerApiInsertBaseSchema).optional()
1376
+ });
1377
+ const AgentWithinContextOfProjectSchema = AgentWithinContextOfProjectSchemaBase.superRefine(({ defaultSubAgentId, subAgents: subAgents$1 }, ctx) => {
1378
+ if (defaultSubAgentId && !subAgents$1[defaultSubAgentId]) ctx.addIssue({
1379
+ code: "custom",
1380
+ path: ["defaultSubAgentId"],
1381
+ message: `Default agent '${defaultSubAgentId}' does not exist in agents`
1382
+ });
1327
1383
  }).openapi("AgentWithinContextOfProject");
1328
1384
  const PaginationSchema = z.object({
1329
1385
  page: pageNumber,
@@ -1747,6 +1803,18 @@ const AnonymousSessionResponseSchema = z.object({
1747
1803
  token: z.string().describe("Anonymous session JWT"),
1748
1804
  expiresAt: z.string().describe("Token expiration time (ISO 8601)")
1749
1805
  }).openapi("AnonymousSessionResponse");
1806
+ const WorkflowExecutionStatusEnum = z.enum([
1807
+ "running",
1808
+ "suspended",
1809
+ "completed",
1810
+ "failed"
1811
+ ]);
1812
+ const WorkflowExecutionSelectSchema = createSelectSchema(workflowExecutions).extend({ status: WorkflowExecutionStatusEnum });
1813
+ const WorkflowExecutionInsertSchema = createInsertSchema(workflowExecutions).omit({
1814
+ createdAt: true,
1815
+ updatedAt: true
1816
+ }).extend({ status: WorkflowExecutionStatusEnum.default("running") });
1817
+ const WorkflowExecutionUpdateSchema = WorkflowExecutionInsertSchema.partial();
1750
1818
 
1751
1819
  //#endregion
1752
- export { ALLOWED_DOMAIN_PATTERN, AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, AgentWithinContextOfProjectSelectResponse, AgentWithinContextOfProjectSelectSchema, AgentWithinContextOfProjectSelectSchemaWithRelationIds, AllAgentSchema, AnonymousSessionResponseSchema, ApiConfigSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, AppApiCreationResponseSchema, AppApiInsertSchema, AppApiResponseSelectSchema, AppApiSelectSchema, AppApiUpdateSchema, AppConfigResponseSchema, AppConfigSchema, AppInsertSchema, AppListResponse, AppResponse, AppSelectSchema, AppUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ChannelAccessModeSchema, ChannelIdsSchema, ComponentAssociationListResponse, ComponentAssociationSchema, ComponentJoinSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationSelectSchema, ConversationUpdateSchema, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, CredentialStoreListResponseSchema, CredentialStoreSchema, CronExpressionSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentArrayResponse, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, DataPartSchema, DatasetApiInsertSchema, DatasetApiSelectSchema, DatasetApiUpdateSchema, DatasetInsertSchema, DatasetItemApiInsertSchema, DatasetItemApiSelectSchema, DatasetItemApiUpdateSchema, DatasetItemInsertSchema, DatasetItemSelectSchema, DatasetItemUpdateSchema, DatasetRunApiInsertSchema, DatasetRunApiSelectSchema, DatasetRunApiUpdateSchema, DatasetRunConfigAgentRelationInsertSchema, DatasetRunConfigAgentRelationSelectSchema, DatasetRunConfigAgentRelationUpdateSchema, DatasetRunConfigApiInsertSchema, DatasetRunConfigApiSelectSchema, DatasetRunConfigApiUpdateSchema, DatasetRunConfigInsertSchema, DatasetRunConfigSelectSchema, DatasetRunConfigUpdateSchema, DatasetRunConversationRelationApiInsertSchema, DatasetRunConversationRelationApiSelectSchema, DatasetRunConversationRelationApiUpdateSchema, DatasetRunConversationRelationInsertSchema, DatasetRunConversationRelationSelectSchema, DatasetRunConversationRelationUpdateSchema, DatasetRunInsertSchema, DatasetRunItemSchema, DatasetRunSelectSchema, DatasetRunUpdateSchema, DatasetSelectSchema, DatasetUpdateSchema, DateTimeFilterQueryParamsSchema, ErrorResponseSchema, EvaluationJobConfigApiInsertSchema, EvaluationJobConfigApiSelectSchema, EvaluationJobConfigApiUpdateSchema, EvaluationJobConfigEvaluatorRelationApiInsertSchema, EvaluationJobConfigEvaluatorRelationApiSelectSchema, EvaluationJobConfigEvaluatorRelationApiUpdateSchema, EvaluationJobConfigEvaluatorRelationInsertSchema, EvaluationJobConfigEvaluatorRelationSelectSchema, EvaluationJobConfigEvaluatorRelationUpdateSchema, EvaluationJobConfigInsertSchema, EvaluationJobConfigSelectSchema, EvaluationJobConfigUpdateSchema, EvaluationJobFilterCriteriaSchema, EvaluationResultApiInsertSchema, EvaluationResultApiSelectSchema, EvaluationResultApiUpdateSchema, EvaluationResultInsertSchema, EvaluationResultSelectSchema, EvaluationResultUpdateSchema, EvaluationRunApiInsertSchema, EvaluationRunApiSelectSchema, EvaluationRunApiUpdateSchema, EvaluationRunConfigApiInsertSchema, EvaluationRunConfigApiSelectSchema, EvaluationRunConfigApiUpdateSchema, EvaluationRunConfigEvaluationSuiteConfigRelationApiInsertSchema, EvaluationRunConfigEvaluationSuiteConfigRelationApiSelectSchema, EvaluationRunConfigEvaluationSuiteConfigRelationApiUpdateSchema, EvaluationRunConfigEvaluationSuiteConfigRelationInsertSchema, EvaluationRunConfigEvaluationSuiteConfigRelationSelectSchema, EvaluationRunConfigEvaluationSuiteConfigRelationUpdateSchema, EvaluationRunConfigInsertSchema, EvaluationRunConfigSelectSchema, EvaluationRunConfigUpdateSchema, EvaluationRunConfigWithSuiteConfigsApiSelectSchema, EvaluationRunInsertSchema, EvaluationRunSelectSchema, EvaluationRunUpdateSchema, EvaluationSuiteConfigApiInsertSchema, EvaluationSuiteConfigApiSelectSchema, EvaluationSuiteConfigApiUpdateSchema, EvaluationSuiteConfigEvaluatorRelationApiInsertSchema, EvaluationSuiteConfigEvaluatorRelationApiSelectSchema, EvaluationSuiteConfigEvaluatorRelationApiUpdateSchema, EvaluationSuiteConfigEvaluatorRelationInsertSchema, EvaluationSuiteConfigEvaluatorRelationSelectSchema, EvaluationSuiteConfigEvaluatorRelationUpdateSchema, EvaluationSuiteConfigInsertSchema, EvaluationSuiteConfigSelectSchema, EvaluationSuiteConfigUpdateSchema, EvaluatorApiInsertSchema, EvaluatorApiSelectSchema, EvaluatorApiUpdateSchema, EvaluatorInsertSchema, EvaluatorSelectSchema, EvaluatorUpdateSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FilePartSchema, FullAgentAgentInsertSchema, FullAgentSubAgentSelectSchema, FullAgentSubAgentSelectSchemaWithRelationIds, FullProjectDefinitionResponse, FullProjectDefinitionSchema, FullProjectSelectResponse, FullProjectSelectSchema, FullProjectSelectSchemaWithRelationIds, FullProjectSelectWithRelationIdsResponse, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPCatalogListResponse, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolListResponse, McpToolResponse, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, PaginationSchema, PaginationWithRefQueryParamsSchema, PartSchema, PrebuiltMCPServerSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectMetadataInsertSchema, ProjectMetadataSelectSchema, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RefQueryParamSchema, RelatedAgentInfoListResponse, RelatedAgentInfoSchema, RemovedResponseSchema, ResourceIdSchema, ScheduledTriggerApiInsertBaseSchema, ScheduledTriggerApiInsertSchema, ScheduledTriggerApiSelectSchema, ScheduledTriggerApiUpdateSchema, ScheduledTriggerInsertSchema, ScheduledTriggerInvocationApiInsertSchema, ScheduledTriggerInvocationApiSelectSchema, ScheduledTriggerInvocationApiUpdateSchema, ScheduledTriggerInvocationInsertSchema, ScheduledTriggerInvocationListResponse, ScheduledTriggerInvocationResponse, ScheduledTriggerInvocationSelectSchema, ScheduledTriggerInvocationStatusEnum, ScheduledTriggerInvocationUpdateSchema, ScheduledTriggerListResponse, ScheduledTriggerResponse, ScheduledTriggerSelectSchema, ScheduledTriggerUpdateSchema, ScheduledTriggerWithRunInfoListResponse, ScheduledTriggerWithRunInfoSchema, ScheduledWorkflowApiInsertSchema, ScheduledWorkflowApiSelectSchema, ScheduledWorkflowApiUpdateSchema, ScheduledWorkflowInsertSchema, ScheduledWorkflowListResponse, ScheduledWorkflowResponse, ScheduledWorkflowSelectSchema, ScheduledWorkflowUpdateSchema, SignatureSourceSchema, SignatureValidationOptionsSchema, SignatureVerificationConfigSchema, SignedComponentSchema, SimulationAgentSchema, SingleResponseSchema, SkillApiInsertSchema, SkillApiSelectSchema, SkillApiUpdateSchema, SkillFrontmatterSchema, SkillInsertSchema, SkillListResponse, SkillResponse, SkillSelectSchema, SkillUpdateSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, StringRecordSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationListResponse, SubAgentExternalAgentRelationResponse, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentFunctionToolRelationApiInsertSchema, SubAgentFunctionToolRelationApiSelectSchema, SubAgentFunctionToolRelationInsertSchema, SubAgentFunctionToolRelationListResponse, SubAgentFunctionToolRelationResponse, SubAgentFunctionToolRelationSelectSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentSkillApiInsertSchema, SubAgentSkillApiSelectSchema, SubAgentSkillApiUpdateSchema, SubAgentSkillInsertSchema, SubAgentSkillResponse, SubAgentSkillSelectSchema, SubAgentSkillUpdateSchema, SubAgentSkillWithIndexArrayResponse, SubAgentSkillWithIndexSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationListResponse, SubAgentTeamAgentRelationResponse, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TeamAgentSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, TenantProjectToolParamsSchema, TextPartSchema, ThirdPartyMCPServerResponse, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerAuthHeaderInputSchema, TriggerAuthHeaderStoredSchema, TriggerAuthHeaderUpdateSchema, TriggerAuthenticationInputSchema, TriggerAuthenticationSchema, TriggerAuthenticationStoredSchema, TriggerAuthenticationUpdateSchema, TriggerBatchConversationEvaluationSchema, TriggerConversationEvaluationSchema, TriggerDatasetRunSchema, TriggerEvaluationJobSchema, TriggerInsertSchema, TriggerInvocationApiInsertSchema, TriggerInvocationApiSelectSchema, TriggerInvocationApiUpdateSchema, TriggerInvocationInsertSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationSelectSchema, TriggerInvocationStatusEnum, TriggerInvocationUpdateSchema, TriggerListResponse, TriggerOutputTransformSchema, TriggerResponse, TriggerSelectSchema, TriggerUpdateSchema, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, TriggerWithWebhookUrlWithWarningResponse, URL_SAFE_ID_PATTERN, UserIdParamsSchema, UserIdSchema, UserProfileApiInsertSchema, UserProfileApiUpdateSchema, UserProfileInsertSchema, UserProfileSelectSchema, UserProfileUpdateSchema, WebClientConfigResponseSchema, WebClientConfigSchema, WorkAppGitHubAccessGetResponseSchema, WorkAppGitHubAccessModeSchema, WorkAppGitHubAccessSetRequestSchema, WorkAppGitHubAccessSetResponseSchema, WorkAppGitHubAccountTypeSchema, WorkAppGitHubInstallationApiInsertSchema, WorkAppGitHubInstallationInsertSchema, WorkAppGitHubInstallationSelectSchema, WorkAppGitHubInstallationStatusSchema, WorkAppGitHubMcpToolRepositoryAccessSelectSchema, WorkAppGitHubProjectRepositoryAccessSelectSchema, WorkAppGitHubRepositoryApiInsertSchema, WorkAppGitHubRepositoryInsertSchema, WorkAppGitHubRepositorySelectSchema, WorkAppGithubInstallationApiSelectSchema, WorkAppSlackAgentConfigRequestSchema, WorkAppSlackAgentConfigResponseSchema, WorkAppSlackChannelAgentConfigSelectSchema, WorkAppSlackMcpToolAccessConfigApiInsertSchema, WorkAppSlackMcpToolAccessConfigInsertSchema, WorkAppSlackWorkspaceSelectSchema, canDelegateToExternalAgentInsertSchema, canDelegateToExternalAgentSchema, canDelegateToTeamAgentInsertSchema, canDelegateToTeamAgentSchema, canRelateToInternalSubAgentSchema };
1820
+ export { ALLOWED_DOMAIN_PATTERN, AddPublicKeyRequestSchema, AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, AgentWithinContextOfProjectSchemaBase, AgentWithinContextOfProjectSelectResponse, AgentWithinContextOfProjectSelectSchema, AgentWithinContextOfProjectSelectSchemaWithRelationIds, AllAgentSchema, AnonymousSessionResponseSchema, ApiConfigSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, AppApiCreationResponseSchema, AppApiInsertSchema, AppApiResponseSelectSchema, AppApiSelectSchema, AppApiUpdateSchema, AppConfigResponseSchema, AppConfigSchema, AppInsertSchema, AppListResponse, AppResponse, AppSelectSchema, AppUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ChannelAccessModeSchema, ChannelIdsSchema, ComponentAssociationListResponse, ComponentAssociationSchema, ComponentJoinSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationSelectSchema, ConversationUpdateSchema, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, CredentialStoreListResponseSchema, CredentialStoreSchema, CronExpressionSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentArrayResponse, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, DataPartSchema, DatasetApiInsertSchema, DatasetApiSelectSchema, DatasetApiUpdateSchema, DatasetInsertSchema, DatasetItemApiInsertSchema, DatasetItemApiSelectSchema, DatasetItemApiUpdateSchema, DatasetItemInsertSchema, DatasetItemSelectSchema, DatasetItemUpdateSchema, DatasetRunApiInsertSchema, DatasetRunApiSelectSchema, DatasetRunApiUpdateSchema, DatasetRunConfigAgentRelationInsertSchema, DatasetRunConfigAgentRelationSelectSchema, DatasetRunConfigAgentRelationUpdateSchema, DatasetRunConfigApiInsertSchema, DatasetRunConfigApiSelectSchema, DatasetRunConfigApiUpdateSchema, DatasetRunConfigInsertSchema, DatasetRunConfigSelectSchema, DatasetRunConfigUpdateSchema, DatasetRunConversationRelationApiInsertSchema, DatasetRunConversationRelationApiSelectSchema, DatasetRunConversationRelationApiUpdateSchema, DatasetRunConversationRelationInsertSchema, DatasetRunConversationRelationSelectSchema, DatasetRunConversationRelationUpdateSchema, DatasetRunInsertSchema, DatasetRunItemSchema, DatasetRunSelectSchema, DatasetRunUpdateSchema, DatasetSelectSchema, DatasetUpdateSchema, DateTimeFilterQueryParamsSchema, ErrorResponseSchema, EvaluationJobConfigApiInsertSchema, EvaluationJobConfigApiSelectSchema, EvaluationJobConfigApiUpdateSchema, EvaluationJobConfigEvaluatorRelationApiInsertSchema, EvaluationJobConfigEvaluatorRelationApiSelectSchema, EvaluationJobConfigEvaluatorRelationApiUpdateSchema, EvaluationJobConfigEvaluatorRelationInsertSchema, EvaluationJobConfigEvaluatorRelationSelectSchema, EvaluationJobConfigEvaluatorRelationUpdateSchema, EvaluationJobConfigInsertSchema, EvaluationJobConfigSelectSchema, EvaluationJobConfigUpdateSchema, EvaluationJobFilterCriteriaSchema, EvaluationResultApiInsertSchema, EvaluationResultApiSelectSchema, EvaluationResultApiUpdateSchema, EvaluationResultInsertSchema, EvaluationResultSelectSchema, EvaluationResultUpdateSchema, EvaluationRunApiInsertSchema, EvaluationRunApiSelectSchema, EvaluationRunApiUpdateSchema, EvaluationRunConfigApiInsertSchema, EvaluationRunConfigApiSelectSchema, EvaluationRunConfigApiUpdateSchema, EvaluationRunConfigEvaluationSuiteConfigRelationApiInsertSchema, EvaluationRunConfigEvaluationSuiteConfigRelationApiSelectSchema, EvaluationRunConfigEvaluationSuiteConfigRelationApiUpdateSchema, EvaluationRunConfigEvaluationSuiteConfigRelationInsertSchema, EvaluationRunConfigEvaluationSuiteConfigRelationSelectSchema, EvaluationRunConfigEvaluationSuiteConfigRelationUpdateSchema, EvaluationRunConfigInsertSchema, EvaluationRunConfigSelectSchema, EvaluationRunConfigUpdateSchema, EvaluationRunConfigWithSuiteConfigsApiSelectSchema, EvaluationRunInsertSchema, EvaluationRunSelectSchema, EvaluationRunUpdateSchema, EvaluationSuiteConfigApiInsertSchema, EvaluationSuiteConfigApiSelectSchema, EvaluationSuiteConfigApiUpdateSchema, EvaluationSuiteConfigEvaluatorRelationApiInsertSchema, EvaluationSuiteConfigEvaluatorRelationApiSelectSchema, EvaluationSuiteConfigEvaluatorRelationApiUpdateSchema, EvaluationSuiteConfigEvaluatorRelationInsertSchema, EvaluationSuiteConfigEvaluatorRelationSelectSchema, EvaluationSuiteConfigEvaluatorRelationUpdateSchema, EvaluationSuiteConfigInsertSchema, EvaluationSuiteConfigSelectSchema, EvaluationSuiteConfigUpdateSchema, EvaluatorApiInsertSchema, EvaluatorApiSelectSchema, EvaluatorApiUpdateSchema, EvaluatorInsertSchema, EvaluatorSelectSchema, EvaluatorUpdateSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FilePartSchema, FullAgentAgentInsertSchema, FullAgentSubAgentSelectSchema, FullAgentSubAgentSelectSchemaWithRelationIds, FullProjectDefinitionResponse, FullProjectDefinitionSchema, FullProjectSelectResponse, FullProjectSelectSchema, FullProjectSelectSchemaWithRelationIds, FullProjectSelectWithRelationIdsResponse, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPCatalogListResponse, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolListResponse, McpToolResponse, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, PaginationSchema, PaginationWithRefQueryParamsSchema, PartSchema, PrebuiltMCPServerSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectMetadataInsertSchema, ProjectMetadataSelectSchema, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, PublicKeyAlgorithmSchema, PublicKeyConfigSchema, PublicKeyListResponseSchema, PublicKeyResponseSchema, RefQueryParamSchema, RelatedAgentInfoListResponse, RelatedAgentInfoSchema, RemovedResponseSchema, ResourceIdSchema, ScheduledTriggerApiInsertBaseSchema, ScheduledTriggerApiInsertSchema, ScheduledTriggerApiSelectSchema, ScheduledTriggerApiUpdateSchema, ScheduledTriggerInsertSchema, ScheduledTriggerInvocationApiInsertSchema, ScheduledTriggerInvocationApiSelectSchema, ScheduledTriggerInvocationApiUpdateSchema, ScheduledTriggerInvocationInsertSchema, ScheduledTriggerInvocationListResponse, ScheduledTriggerInvocationResponse, ScheduledTriggerInvocationSelectSchema, ScheduledTriggerInvocationStatusEnum, ScheduledTriggerInvocationUpdateSchema, ScheduledTriggerListResponse, ScheduledTriggerResponse, ScheduledTriggerSelectSchema, ScheduledTriggerUpdateSchema, ScheduledTriggerWithRunInfoListResponse, ScheduledTriggerWithRunInfoSchema, ScheduledWorkflowApiInsertSchema, ScheduledWorkflowApiSelectSchema, ScheduledWorkflowApiUpdateSchema, ScheduledWorkflowInsertSchema, ScheduledWorkflowListResponse, ScheduledWorkflowResponse, ScheduledWorkflowSelectSchema, ScheduledWorkflowUpdateSchema, SignatureSourceSchema, SignatureValidationOptionsSchema, SignatureVerificationConfigSchema, SignedComponentSchema, SimulationAgentSchema, SingleResponseSchema, SkillApiInsertSchema, SkillApiSelectSchema, SkillApiUpdateSchema, SkillFrontmatterSchema, SkillInsertSchema, SkillListResponse, SkillResponse, SkillSelectSchema, SkillUpdateSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, StringRecordSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationListResponse, SubAgentExternalAgentRelationResponse, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentFunctionToolRelationApiInsertSchema, SubAgentFunctionToolRelationApiSelectSchema, SubAgentFunctionToolRelationInsertSchema, SubAgentFunctionToolRelationListResponse, SubAgentFunctionToolRelationResponse, SubAgentFunctionToolRelationSelectSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentSkillApiInsertSchema, SubAgentSkillApiSelectSchema, SubAgentSkillApiUpdateSchema, SubAgentSkillInsertSchema, SubAgentSkillResponse, SubAgentSkillSelectSchema, SubAgentSkillUpdateSchema, SubAgentSkillWithIndexArrayResponse, SubAgentSkillWithIndexSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationListResponse, SubAgentTeamAgentRelationResponse, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TeamAgentSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, TenantProjectToolParamsSchema, TextPartSchema, ThirdPartyMCPServerResponse, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerAuthHeaderInputSchema, TriggerAuthHeaderStoredSchema, TriggerAuthHeaderUpdateSchema, TriggerAuthenticationInputSchema, TriggerAuthenticationSchema, TriggerAuthenticationStoredSchema, TriggerAuthenticationUpdateSchema, TriggerBatchConversationEvaluationSchema, TriggerConversationEvaluationSchema, TriggerDatasetRunSchema, TriggerEvaluationJobSchema, TriggerInsertSchema, TriggerInvocationApiInsertSchema, TriggerInvocationApiSelectSchema, TriggerInvocationApiUpdateSchema, TriggerInvocationInsertSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationSelectSchema, TriggerInvocationStatusEnum, TriggerInvocationUpdateSchema, TriggerListResponse, TriggerOutputTransformSchema, TriggerResponse, TriggerSelectSchema, TriggerUpdateSchema, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, TriggerWithWebhookUrlWithWarningResponse, URL_SAFE_ID_PATTERN, UserIdParamsSchema, UserIdSchema, UserProfileApiInsertSchema, UserProfileApiUpdateSchema, UserProfileInsertSchema, UserProfileSelectSchema, UserProfileUpdateSchema, WebClientAuthConfigSchema, WebClientConfigResponseSchema, WebClientConfigSchema, WorkAppGitHubAccessGetResponseSchema, WorkAppGitHubAccessModeSchema, WorkAppGitHubAccessSetRequestSchema, WorkAppGitHubAccessSetResponseSchema, WorkAppGitHubAccountTypeSchema, WorkAppGitHubInstallationApiInsertSchema, WorkAppGitHubInstallationInsertSchema, WorkAppGitHubInstallationSelectSchema, WorkAppGitHubInstallationStatusSchema, WorkAppGitHubMcpToolRepositoryAccessSelectSchema, WorkAppGitHubProjectRepositoryAccessSelectSchema, WorkAppGitHubRepositoryApiInsertSchema, WorkAppGitHubRepositoryInsertSchema, WorkAppGitHubRepositorySelectSchema, WorkAppGithubInstallationApiSelectSchema, WorkAppSlackAgentConfigRequestSchema, WorkAppSlackAgentConfigResponseSchema, WorkAppSlackChannelAgentConfigSelectSchema, WorkAppSlackMcpToolAccessConfigApiInsertSchema, WorkAppSlackMcpToolAccessConfigInsertSchema, WorkAppSlackWorkspaceSelectSchema, WorkflowExecutionInsertSchema, WorkflowExecutionSelectSchema, WorkflowExecutionStatusEnum, WorkflowExecutionUpdateSchema, canDelegateToExternalAgentInsertSchema, canDelegateToExternalAgentSchema, canDelegateToTeamAgentInsertSchema, canDelegateToTeamAgentSchema, canRelateToInternalSubAgentSchema };
@@ -0,0 +1 @@
1
+ ALTER TABLE "agent" ADD COLUMN "execution_mode" varchar(50) DEFAULT 'classic' NOT NULL;