@inkeep/agents-core 0.60.0 → 0.62.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.
- package/dist/auth/auth-schema.d.ts +86 -86
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/init.js +44 -0
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/auth/wait-for-spicedb.d.ts +1 -0
- package/dist/auth/wait-for-spicedb.js +51 -0
- package/dist/client-exports.d.ts +3 -106
- package/dist/client-exports.js +2 -60
- package/dist/data-access/index.d.ts +4 -3
- package/dist/data-access/index.js +4 -3
- package/dist/data-access/manage/agentFull.js +10 -5
- package/dist/data-access/manage/agents.d.ts +47 -41
- package/dist/data-access/manage/agents.js +2 -0
- package/dist/data-access/manage/artifactComponents.d.ts +12 -12
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/projectFull.js +24 -3
- package/dist/data-access/manage/skills.d.ts +17 -17
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +27 -27
- package/dist/data-access/manage/subAgentRelations.d.ts +25 -25
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +30 -30
- package/dist/data-access/manage/subAgents.d.ts +30 -30
- package/dist/data-access/manage/tools.d.ts +27 -27
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +54 -9
- package/dist/data-access/runtime/apps.js +15 -1
- package/dist/data-access/runtime/conversations.d.ts +25 -25
- package/dist/data-access/runtime/conversations.js +1 -0
- package/dist/data-access/runtime/ledgerArtifacts.d.ts +11 -2
- package/dist/data-access/runtime/ledgerArtifacts.js +12 -1
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/data-access/runtime/workflowExecutions.d.ts +25 -0
- package/dist/data-access/runtime/workflowExecutions.js +32 -0
- package/dist/db/manage/manage-schema.d.ts +495 -475
- package/dist/db/manage/manage-schema.js +1 -0
- package/dist/db/runtime/runtime-schema.d.ts +550 -335
- package/dist/db/runtime/runtime-schema.js +16 -2
- package/dist/index.d.ts +11 -9
- package/dist/index.js +9 -7
- package/dist/types/entities.d.ts +5 -2
- package/dist/types/index.d.ts +3 -3
- package/dist/types/utility.d.ts +9 -3
- package/dist/utils/conversations.d.ts +4 -1
- package/dist/utils/conversations.js +10 -1
- package/dist/utils/error.d.ts +51 -51
- package/dist/utils/index.d.ts +4 -3
- package/dist/utils/index.js +4 -3
- package/dist/utils/jwt-helpers.d.ts +7 -1
- package/dist/utils/jwt-helpers.js +11 -1
- package/dist/utils/validate-public-key.d.ts +10 -0
- package/dist/utils/validate-public-key.js +89 -0
- package/dist/validation/agentFull.js +0 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas.d.ts +3468 -2708
- package/dist/validation/schemas.js +104 -36
- package/drizzle/manage/0013_gorgeous_umar.sql +1 -0
- package/drizzle/manage/meta/0013_snapshot.json +3704 -0
- package/drizzle/manage/meta/_journal.json +7 -0
- package/drizzle/runtime/0026_graceful_scorpion.sql +15 -0
- package/drizzle/runtime/0027_seed-playground-app.sql +13 -0
- package/drizzle/runtime/meta/{0025_snapshot.json → 0026_snapshot.json} +114 -1
- package/drizzle/runtime/meta/0027_snapshot.json +4389 -0
- package/drizzle/runtime/meta/_journal.json +14 -0
- 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.
|
|
49
|
-
stepCountIs: z.
|
|
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().
|
|
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().
|
|
68
|
-
providerOptions: z.record(z.string(), z.
|
|
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().
|
|
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).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({
|
|
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({
|
|
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({
|
|
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({
|
|
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
|
-
|
|
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).
|
|
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.
|
|
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.
|
|
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.
|
|
1300
|
+
const StatusUpdateSchema = z.strictObject({
|
|
1252
1301
|
enabled: z.boolean().optional(),
|
|
1253
|
-
numEvents: z.
|
|
1254
|
-
timeInSeconds: z.
|
|
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:
|
|
1291
|
-
name:
|
|
1292
|
-
description:
|
|
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
|
|
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
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
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;
|