@inkeep/agents-core 0.41.2 → 0.42.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/api-client/base-client.d.ts +87 -8
- package/dist/api-client/base-client.js +174 -1
- package/dist/api-client/eval-api-client.d.ts +47 -0
- package/dist/api-client/eval-api-client.js +65 -0
- package/dist/api-client/index.d.ts +4 -0
- package/dist/api-client/index.js +5 -0
- package/dist/api-client/manage-api-client.d.ts +34 -0
- package/dist/api-client/manage-api-client.js +104 -0
- package/dist/auth/auth.d.ts +86 -20
- package/dist/auth/auth.js +55 -1
- package/dist/auth/authz/client.d.ts +81 -0
- package/dist/auth/authz/client.js +189 -0
- package/dist/auth/authz/config.d.ts +76 -0
- package/dist/auth/authz/config.js +76 -0
- package/dist/auth/authz/index.d.ts +5 -0
- package/dist/auth/authz/index.js +6 -0
- package/dist/auth/authz/permissions.d.ts +57 -0
- package/dist/auth/authz/permissions.js +83 -0
- package/dist/auth/authz/sync.d.ts +85 -0
- package/dist/auth/authz/sync.js +237 -0
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/auth/permissions.js +2 -181
- package/dist/client-exports.d.ts +8 -3
- package/dist/client-exports.js +3 -2
- package/dist/constants/context-breakdown.d.ts +61 -0
- package/dist/constants/context-breakdown.js +124 -0
- package/dist/constants/otel-attributes.d.ts +4 -0
- package/dist/constants/otel-attributes.js +4 -0
- package/dist/context/ContextConfig.d.ts +2 -2
- package/dist/context/ContextConfig.js +3 -3
- package/dist/context/TemplateEngine.js +0 -1
- package/dist/context/index.d.ts +1 -5
- package/dist/context/index.js +1 -5
- package/dist/credential-stuffer/CredentialStuffer.d.ts +1 -1
- package/dist/data-access/index.d.ts +34 -26
- package/dist/data-access/index.js +34 -26
- package/dist/data-access/manage/agentFull.d.ts +36 -0
- package/dist/data-access/{agentFull.js → manage/agentFull.js} +205 -7
- package/dist/data-access/{agents.d.ts → manage/agents.d.ts} +23 -22
- package/dist/data-access/{agents.js → manage/agents.js} +52 -7
- package/dist/data-access/{artifactComponents.d.ts → manage/artifactComponents.d.ts} +21 -21
- package/dist/data-access/{artifactComponents.js → manage/artifactComponents.js} +5 -5
- package/dist/data-access/{contextConfigs.d.ts → manage/contextConfigs.d.ts} +14 -14
- package/dist/data-access/{contextConfigs.js → manage/contextConfigs.js} +3 -3
- package/dist/data-access/{credentialReferences.d.ts → manage/credentialReferences.d.ts} +17 -17
- package/dist/data-access/{credentialReferences.js → manage/credentialReferences.js} +2 -2
- package/dist/data-access/{dataComponents.d.ts → manage/dataComponents.d.ts} +20 -20
- package/dist/data-access/{dataComponents.js → manage/dataComponents.js} +7 -7
- package/dist/data-access/manage/evalConfig.d.ts +221 -0
- package/dist/data-access/manage/evalConfig.js +275 -0
- package/dist/data-access/{externalAgents.d.ts → manage/externalAgents.d.ts} +16 -16
- package/dist/data-access/{externalAgents.js → manage/externalAgents.js} +2 -2
- package/dist/data-access/{functionTools.d.ts → manage/functionTools.d.ts} +65 -15
- package/dist/data-access/{functionTools.js → manage/functionTools.js} +90 -8
- package/dist/data-access/{functions.d.ts → manage/functions.d.ts} +9 -9
- package/dist/data-access/{functions.js → manage/functions.js} +3 -3
- package/dist/data-access/manage/projectFull.d.ts +38 -0
- package/dist/data-access/{projectFull.js → manage/projectFull.js} +64 -65
- package/dist/data-access/manage/projectLifecycle.d.ts +119 -0
- package/dist/data-access/manage/projectLifecycle.js +234 -0
- package/dist/data-access/manage/projects.d.ts +75 -0
- package/dist/data-access/{projects.js → manage/projects.js} +15 -16
- package/dist/data-access/{subAgentExternalAgentRelations.d.ts → manage/subAgentExternalAgentRelations.d.ts} +19 -19
- package/dist/data-access/{subAgentExternalAgentRelations.js → manage/subAgentExternalAgentRelations.js} +2 -2
- package/dist/data-access/{subAgentRelations.d.ts → manage/subAgentRelations.d.ts} +29 -29
- package/dist/data-access/{subAgentRelations.js → manage/subAgentRelations.js} +3 -3
- package/dist/data-access/{subAgentTeamAgentRelations.d.ts → manage/subAgentTeamAgentRelations.d.ts} +19 -19
- package/dist/data-access/{subAgentTeamAgentRelations.js → manage/subAgentTeamAgentRelations.js} +2 -2
- package/dist/data-access/{subAgents.d.ts → manage/subAgents.d.ts} +13 -13
- package/dist/data-access/{subAgents.js → manage/subAgents.js} +4 -4
- package/dist/data-access/{tools.d.ts → manage/tools.d.ts} +26 -19
- package/dist/data-access/{tools.js → manage/tools.js} +57 -35
- package/dist/data-access/manage/triggers.d.ts +80 -0
- package/dist/data-access/manage/triggers.js +81 -0
- package/dist/data-access/{apiKeys.d.ts → runtime/apiKeys.d.ts} +17 -17
- package/dist/data-access/{apiKeys.js → runtime/apiKeys.js} +3 -3
- package/dist/data-access/runtime/cascade-delete.d.ts +77 -0
- package/dist/data-access/runtime/cascade-delete.js +111 -0
- package/dist/data-access/{contextCache.d.ts → runtime/contextCache.d.ts} +13 -13
- package/dist/data-access/{contextCache.js → runtime/contextCache.js} +5 -5
- package/dist/data-access/{conversations.d.ts → runtime/conversations.d.ts} +68 -19
- package/dist/data-access/{conversations.js → runtime/conversations.js} +13 -7
- package/dist/data-access/runtime/evalRuns.d.ts +120 -0
- package/dist/data-access/runtime/evalRuns.js +168 -0
- package/dist/data-access/{ledgerArtifacts.d.ts → runtime/ledgerArtifacts.d.ts} +13 -13
- package/dist/data-access/{ledgerArtifacts.js → runtime/ledgerArtifacts.js} +3 -3
- package/dist/data-access/{messages.d.ts → runtime/messages.d.ts} +15 -15
- package/dist/data-access/{messages.js → runtime/messages.js} +2 -2
- package/dist/data-access/{organizations.d.ts → runtime/organizations.d.ts} +16 -7
- package/dist/data-access/{organizations.js → runtime/organizations.js} +15 -3
- package/dist/data-access/runtime/projects.d.ts +62 -0
- package/dist/data-access/runtime/projects.js +90 -0
- package/dist/data-access/runtime/tasks.d.ts +55 -0
- package/dist/data-access/{tasks.js → runtime/tasks.js} +2 -2
- package/dist/data-access/runtime/triggerInvocations.d.ts +62 -0
- package/dist/data-access/runtime/triggerInvocations.js +54 -0
- package/dist/data-access/runtime/users.d.ts +19 -0
- package/dist/data-access/{users.js → runtime/users.js} +2 -2
- package/dist/data-access/validation.d.ts +4 -4
- package/dist/data-access/validation.js +1 -1
- package/dist/db/clean.d.ts +8 -4
- package/dist/db/clean.js +14 -105
- package/dist/db/delete.d.ts +1 -1
- package/dist/db/delete.js +7 -10
- package/dist/db/manage/dolt-cleanup.d.ts +51 -0
- package/dist/db/manage/dolt-cleanup.js +132 -0
- package/dist/db/manage/manage-client.d.ts +26 -0
- package/dist/db/manage/manage-client.js +68 -0
- package/dist/db/{schema.d.ts → manage/manage-schema.d.ts} +1459 -1285
- package/dist/db/{schema.js → manage/manage-schema.js} +433 -341
- package/dist/db/manage/test-manage-client.d.ts +27 -0
- package/dist/db/manage/test-manage-client.js +68 -0
- package/dist/db/runtime/runtime-client.d.ts +20 -0
- package/dist/db/runtime/runtime-client.js +30 -0
- package/dist/db/runtime/runtime-schema.d.ts +2834 -0
- package/dist/db/runtime/runtime-schema.js +483 -0
- package/dist/db/runtime/test-runtime-client.d.ts +27 -0
- package/dist/db/{test-client.js → runtime/test-runtime-client.js} +11 -25
- package/dist/dolt/branch.d.ts +62 -0
- package/dist/dolt/branch.js +82 -0
- package/dist/dolt/branches-api.d.ts +108 -0
- package/dist/dolt/branches-api.js +162 -0
- package/dist/dolt/commit.d.ts +94 -0
- package/dist/dolt/commit.js +103 -0
- package/dist/dolt/diff.d.ts +27 -0
- package/dist/dolt/diff.js +21 -0
- package/dist/dolt/index.d.ts +10 -0
- package/dist/dolt/index.js +11 -0
- package/dist/dolt/merge.d.ts +63 -0
- package/dist/dolt/merge.js +81 -0
- package/dist/dolt/migrate-all-branches.d.ts +4 -0
- package/dist/dolt/migrate-all-branches.js +78 -0
- package/dist/dolt/migrate-dolt.d.ts +1 -0
- package/dist/dolt/migrate-dolt.js +22 -0
- package/dist/dolt/ref-helpers.d.ts +19 -0
- package/dist/dolt/ref-helpers.js +65 -0
- package/dist/dolt/ref-middleware.d.ts +82 -0
- package/dist/dolt/ref-middleware.js +217 -0
- package/dist/dolt/ref-scope.d.ts +101 -0
- package/dist/dolt/ref-scope.js +231 -0
- package/dist/dolt/schema-sync.d.ts +134 -0
- package/dist/dolt/schema-sync.js +246 -0
- package/dist/env.d.ts +6 -4
- package/dist/env.js +3 -2
- package/dist/index.d.ts +71 -44
- package/dist/index.js +74 -47
- package/dist/types/entities.d.ts +81 -2
- package/dist/types/index.d.ts +3 -3
- package/dist/types/utility.d.ts +45 -4
- package/dist/utils/JsonTransformer.d.ts +44 -0
- package/dist/utils/JsonTransformer.js +112 -0
- package/dist/utils/apiKeys.d.ts +5 -1
- package/dist/utils/apiKeys.js +11 -1
- package/dist/utils/colors.d.ts +34 -0
- package/dist/utils/colors.js +49 -0
- package/dist/utils/credential-store-utils.d.ts +1 -1
- package/dist/utils/format-messages.d.ts +1 -1
- package/dist/utils/index.d.ts +7 -3
- package/dist/utils/index.js +7 -3
- package/dist/utils/internal-service-auth.d.ts +79 -0
- package/dist/utils/internal-service-auth.js +140 -0
- package/dist/utils/jwt-helpers.d.ts +56 -0
- package/dist/utils/jwt-helpers.js +90 -0
- package/dist/utils/service-token-auth.d.ts +9 -27
- package/dist/utils/service-token-auth.js +48 -96
- package/dist/utils/template-interpolation.d.ts +22 -0
- package/dist/utils/template-interpolation.js +62 -0
- package/dist/utils/third-party-mcp-servers/composio-client.js +23 -23
- package/dist/utils/trigger-auth.d.ts +62 -0
- package/dist/utils/trigger-auth.js +125 -0
- package/dist/validation/agentFull.js +2 -4
- package/dist/validation/dolt-schemas.d.ts +49 -0
- package/dist/validation/dolt-schemas.js +44 -0
- package/dist/validation/drizzle-schema-helpers.d.ts +4 -26
- package/dist/validation/drizzle-schema-helpers.js +5 -151
- package/dist/validation/index.d.ts +4 -3
- package/dist/validation/index.js +3 -2
- package/dist/validation/schemas.d.ts +17647 -4789
- package/dist/validation/schemas.js +328 -11
- package/drizzle/manage/0000_tearful_rhodey.sql +414 -0
- package/drizzle/manage/0001_broken_wendell_vaughn.sql +19 -0
- package/drizzle/manage/0002_bent_sunfire.sql +1 -0
- package/drizzle/manage/meta/0000_snapshot.json +2987 -0
- package/drizzle/manage/meta/0001_snapshot.json +3115 -0
- package/drizzle/manage/meta/0002_snapshot.json +3115 -0
- package/drizzle/manage/meta/_journal.json +27 -0
- package/drizzle/runtime/0008_silly_preak.sql +127 -0
- package/drizzle/runtime/0009_freezing_leo.sql +17 -0
- package/drizzle/runtime/meta/0008_snapshot.json +2263 -0
- package/drizzle/runtime/meta/0009_snapshot.json +2397 -0
- package/drizzle/{meta → runtime/meta}/_journal.json +14 -0
- package/package.json +48 -15
- package/dist/context/ContextFetcher.d.ts +0 -73
- package/dist/context/ContextFetcher.js +0 -291
- package/dist/context/ContextResolver.d.ts +0 -60
- package/dist/context/ContextResolver.js +0 -278
- package/dist/context/context.d.ts +0 -27
- package/dist/context/context.js +0 -128
- package/dist/context/contextCache.d.ts +0 -58
- package/dist/context/contextCache.js +0 -177
- package/dist/data-access/agentFull.d.ts +0 -33
- package/dist/data-access/projectFull.d.ts +0 -32
- package/dist/data-access/projects.d.ts +0 -71
- package/dist/data-access/tasks.d.ts +0 -45
- package/dist/data-access/users.d.ts +0 -19
- package/dist/db/client.d.ts +0 -20
- package/dist/db/client.js +0 -28
- package/dist/db/test-client.d.ts +0 -31
- package/dist/middleware/contextValidation.d.ts +0 -46
- package/dist/middleware/contextValidation.js +0 -280
- package/dist/middleware/index.d.ts +0 -2
- package/dist/middleware/index.js +0 -3
- package/dist/utils/execution.d.ts +0 -22
- package/dist/utils/execution.js +0 -25
- /package/drizzle/{0000_exotic_mysterio.sql → runtime/0000_exotic_mysterio.sql} +0 -0
- /package/drizzle/{0001_calm_sheva_callister.sql → runtime/0001_calm_sheva_callister.sql} +0 -0
- /package/drizzle/{0002_puzzling_goblin_queen.sql → runtime/0002_puzzling_goblin_queen.sql} +0 -0
- /package/drizzle/{0003_sweet_human_robot.sql → runtime/0003_sweet_human_robot.sql} +0 -0
- /package/drizzle/{0004_cuddly_shooting_star.sql → runtime/0004_cuddly_shooting_star.sql} +0 -0
- /package/drizzle/{0005_reflective_starfox.sql → runtime/0005_reflective_starfox.sql} +0 -0
- /package/drizzle/{0006_stale_thaddeus_ross.sql → runtime/0006_stale_thaddeus_ross.sql} +0 -0
- /package/drizzle/{0007_slim_karma.sql → runtime/0007_slim_karma.sql} +0 -0
- /package/drizzle/{meta → runtime/meta}/0000_snapshot.json +0 -0
- /package/drizzle/{meta → runtime/meta}/0001_snapshot.json +0 -0
- /package/drizzle/{meta → runtime/meta}/0003_snapshot.json +0 -0
- /package/drizzle/{meta → runtime/meta}/0005_snapshot.json +0 -0
- /package/drizzle/{meta → runtime/meta}/0006_snapshot.json +0 -0
- /package/drizzle/{meta → runtime/meta}/0007_snapshot.json +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { schemaValidationDefaults } from "../constants/schema-validation/defaults.js";
|
|
2
2
|
import { CredentialStoreType, MCPServerType, MCPTransportType, TOOL_STATUS_VALUES, VALID_RELATION_TYPES } from "../types/utility.js";
|
|
3
|
-
import { agents,
|
|
3
|
+
import { agents, artifactComponents, contextConfigs, credentialReferences, dataComponents, dataset, datasetItem, datasetRunConfig, datasetRunConfigAgentRelations, evaluationJobConfig, evaluationJobConfigEvaluatorRelations, evaluationRunConfig, evaluationRunConfigEvaluationSuiteConfigRelations, evaluationSuiteConfig, evaluationSuiteConfigEvaluatorRelations, evaluator, externalAgents, functionTools, functions, projects, subAgentArtifactComponents, subAgentDataComponents, subAgentExternalAgentRelations, subAgentFunctionToolRelations, subAgentRelations, subAgentTeamAgentRelations, subAgentToolRelations, subAgents, tools, triggers } from "../db/manage/manage-schema.js";
|
|
4
|
+
import { apiKeys, contextCache, conversations, datasetRun, datasetRunConversationRelations, evaluationResult, evaluationRun, ledgerArtifacts, messages, projectMetadata, taskRelations, tasks, triggerInvocations } from "../db/runtime/runtime-schema.js";
|
|
5
|
+
import { ResolvedRefSchema } from "./dolt-schemas.js";
|
|
4
6
|
import { MAX_ID_LENGTH, MIN_ID_LENGTH, URL_SAFE_ID_PATTERN, createInsertSchema, createResourceIdSchema, createSelectSchema, registerFieldSchemas, resourceIdSchema } from "./drizzle-schema-helpers.js";
|
|
5
7
|
import { z } from "@hono/zod-openapi";
|
|
6
8
|
|
|
@@ -18,6 +20,11 @@ const ModelSettingsSchema = z.object({
|
|
|
18
20
|
model: z.string().optional().describe("The model to use for the project."),
|
|
19
21
|
providerOptions: z.record(z.string(), z.any()).optional().describe("The provider options to use for the project.")
|
|
20
22
|
}).openapi("ModelSettings");
|
|
23
|
+
const SimulationAgentSchema = z.object({
|
|
24
|
+
stopWhen: StopWhenSchema.optional(),
|
|
25
|
+
prompt: z.string(),
|
|
26
|
+
model: ModelSettingsSchema
|
|
27
|
+
}).openapi("SimulationAgent");
|
|
21
28
|
const ModelSchema = z.object({
|
|
22
29
|
base: ModelSettingsSchema.optional(),
|
|
23
30
|
structuredOutput: ModelSettingsSchema.optional(),
|
|
@@ -136,10 +143,78 @@ const AgentUpdateSchema = AgentInsertSchema.partial();
|
|
|
136
143
|
const AgentApiSelectSchema = createApiSchema(AgentSelectSchema).openapi("Agent");
|
|
137
144
|
const AgentApiInsertSchema = createApiInsertSchema(AgentInsertSchema).extend({ id: resourceIdSchema }).openapi("AgentCreate");
|
|
138
145
|
const AgentApiUpdateSchema = createApiUpdateSchema(AgentUpdateSchema).openapi("AgentUpdate");
|
|
146
|
+
const TriggerAuthHeaderInputSchema = z.object({
|
|
147
|
+
name: z.string().min(1).describe("Header name (e.g., X-API-Key, Authorization)"),
|
|
148
|
+
value: z.string().min(1).describe("Expected header value (plaintext)")
|
|
149
|
+
});
|
|
150
|
+
const TriggerAuthHeaderUpdateSchema = z.object({
|
|
151
|
+
name: z.string().min(1).describe("Header name (e.g., X-API-Key, Authorization)"),
|
|
152
|
+
value: z.string().optional().describe("New header value (plaintext). If omitted, existing value is kept."),
|
|
153
|
+
keepExisting: z.boolean().optional().describe("If true, keep the existing hashed value for this header")
|
|
154
|
+
});
|
|
155
|
+
const TriggerAuthenticationInputSchema = z.object({ headers: z.array(TriggerAuthHeaderInputSchema).optional().describe("Array of headers to validate on incoming requests") }).openapi("TriggerAuthenticationInput");
|
|
156
|
+
const TriggerAuthenticationUpdateSchema = z.object({ headers: z.array(TriggerAuthHeaderUpdateSchema).optional().describe("Array of headers. Use keepExisting:true to preserve existing hashed value.") }).openapi("TriggerAuthenticationUpdate");
|
|
157
|
+
const TriggerAuthHeaderStoredSchema = z.object({
|
|
158
|
+
name: z.string().describe("Header name"),
|
|
159
|
+
valueHash: z.string().describe("Hash of the expected header value"),
|
|
160
|
+
valuePrefix: z.string().describe("First 8 chars of value for display")
|
|
161
|
+
});
|
|
162
|
+
const TriggerAuthenticationStoredSchema = z.object({ headers: z.array(TriggerAuthHeaderStoredSchema).optional().describe("Array of headers with hashed values") }).openapi("TriggerAuthenticationStored");
|
|
163
|
+
const TriggerAuthenticationSchema = TriggerAuthenticationInputSchema;
|
|
164
|
+
const TriggerOutputTransformSchema = z.object({
|
|
165
|
+
jmespath: z.string().optional().describe("JMESPath expression for payload transformation"),
|
|
166
|
+
objectTransformation: z.record(z.string(), z.string()).optional().describe("Object transformation mapping")
|
|
167
|
+
}).openapi("TriggerOutputTransform");
|
|
168
|
+
const TriggerInvocationStatusEnum = z.enum([
|
|
169
|
+
"pending",
|
|
170
|
+
"success",
|
|
171
|
+
"failed"
|
|
172
|
+
]);
|
|
173
|
+
const TriggerSelectSchema = createSelectSchema(triggers);
|
|
174
|
+
const TriggerInsertSchema = createInsertSchema(triggers, {
|
|
175
|
+
id: () => resourceIdSchema,
|
|
176
|
+
name: () => z.string().trim().nonempty().describe("Trigger name"),
|
|
177
|
+
description: () => z.string().optional().describe("Trigger description"),
|
|
178
|
+
enabled: () => z.boolean().default(true).describe("Whether the trigger is enabled"),
|
|
179
|
+
inputSchema: () => z.record(z.string(), z.unknown()).optional().describe("JSON Schema for input validation"),
|
|
180
|
+
outputTransform: () => TriggerOutputTransformSchema.optional(),
|
|
181
|
+
messageTemplate: () => z.string().trim().nonempty().describe("Message template with {{placeholder}} syntax").optional(),
|
|
182
|
+
authentication: () => TriggerAuthenticationInputSchema.optional(),
|
|
183
|
+
signingSecret: () => z.string().optional().describe("HMAC-SHA256 signing secret")
|
|
184
|
+
});
|
|
185
|
+
const TriggerUpdateSchema = z.object({
|
|
186
|
+
name: z.string().trim().nonempty().describe("Trigger name").optional(),
|
|
187
|
+
description: z.string().optional().describe("Trigger description"),
|
|
188
|
+
enabled: z.boolean().describe("Whether the trigger is enabled").optional(),
|
|
189
|
+
inputSchema: z.record(z.string(), z.unknown()).optional().describe("JSON Schema for input validation"),
|
|
190
|
+
outputTransform: TriggerOutputTransformSchema.optional(),
|
|
191
|
+
messageTemplate: z.string().trim().nonempty().describe("Message template with {{placeholder}} syntax").optional(),
|
|
192
|
+
authentication: TriggerAuthenticationUpdateSchema.optional(),
|
|
193
|
+
signingSecret: z.string().optional().describe("New HMAC-SHA256 signing secret"),
|
|
194
|
+
keepExistingSigningSecret: z.boolean().optional().describe("If true, keep existing signing secret")
|
|
195
|
+
});
|
|
196
|
+
const TriggerApiSelectSchema = createAgentScopedApiSchema(TriggerSelectSchema).openapi("Trigger");
|
|
197
|
+
const TriggerApiInsertSchema = createAgentScopedApiInsertSchema(TriggerInsertSchema).extend({ id: resourceIdSchema.optional() }).openapi("TriggerCreate");
|
|
198
|
+
const TriggerApiUpdateSchema = TriggerUpdateSchema.openapi("TriggerUpdate");
|
|
199
|
+
const TriggerInvocationSelectSchema = createSelectSchema(triggerInvocations);
|
|
200
|
+
const TriggerInvocationInsertSchema = createInsertSchema(triggerInvocations, {
|
|
201
|
+
id: () => resourceIdSchema,
|
|
202
|
+
triggerId: () => resourceIdSchema,
|
|
203
|
+
conversationId: () => resourceIdSchema.optional(),
|
|
204
|
+
status: () => TriggerInvocationStatusEnum.default("pending"),
|
|
205
|
+
requestPayload: () => z.record(z.string(), z.unknown()).describe("Original webhook payload"),
|
|
206
|
+
transformedPayload: () => z.record(z.string(), z.unknown()).optional().describe("Transformed payload"),
|
|
207
|
+
errorMessage: () => z.string().optional().describe("Error message if status is failed")
|
|
208
|
+
});
|
|
209
|
+
const TriggerInvocationUpdateSchema = TriggerInvocationInsertSchema.partial();
|
|
210
|
+
const TriggerInvocationApiSelectSchema = createAgentScopedApiSchema(TriggerInvocationSelectSchema).openapi("TriggerInvocation");
|
|
211
|
+
const TriggerInvocationApiInsertSchema = createAgentScopedApiInsertSchema(TriggerInvocationInsertSchema).extend({ id: resourceIdSchema }).openapi("TriggerInvocationCreate");
|
|
212
|
+
const TriggerInvocationApiUpdateSchema = createAgentScopedApiUpdateSchema(TriggerInvocationUpdateSchema).openapi("TriggerInvocationUpdate");
|
|
139
213
|
const TaskSelectSchema = createSelectSchema(tasks);
|
|
140
214
|
const TaskInsertSchema = createInsertSchema(tasks).extend({
|
|
141
215
|
id: resourceIdSchema,
|
|
142
|
-
conversationId: resourceIdSchema.optional()
|
|
216
|
+
conversationId: resourceIdSchema.optional(),
|
|
217
|
+
ref: ResolvedRefSchema
|
|
143
218
|
});
|
|
144
219
|
const TaskUpdateSchema = TaskInsertSchema.partial();
|
|
145
220
|
const TaskApiSelectSchema = createApiSchema(TaskSelectSchema);
|
|
@@ -203,14 +278,22 @@ const ToolInsertSchema = createInsertSchema(tools).extend({
|
|
|
203
278
|
}),
|
|
204
279
|
sessionId: z.string().optional()
|
|
205
280
|
}).optional(),
|
|
206
|
-
activeTools: z.array(z.string()).optional()
|
|
281
|
+
activeTools: z.array(z.string()).optional(),
|
|
282
|
+
toolOverrides: z.record(z.string(), z.object({
|
|
283
|
+
displayName: z.string().optional(),
|
|
284
|
+
description: z.string().optional(),
|
|
285
|
+
schema: z.any().optional(),
|
|
286
|
+
transformation: z.union([z.string(), z.record(z.string(), z.string())]).optional()
|
|
287
|
+
})).optional(),
|
|
288
|
+
prompt: z.string().optional()
|
|
207
289
|
})
|
|
208
290
|
})
|
|
209
291
|
});
|
|
210
292
|
const ConversationSelectSchema = createSelectSchema(conversations);
|
|
211
293
|
const ConversationInsertSchema = createInsertSchema(conversations).extend({
|
|
212
294
|
id: resourceIdSchema,
|
|
213
|
-
contextConfigId: resourceIdSchema.optional()
|
|
295
|
+
contextConfigId: resourceIdSchema.optional(),
|
|
296
|
+
ref: ResolvedRefSchema
|
|
214
297
|
});
|
|
215
298
|
const ConversationUpdateSchema = ConversationInsertSchema.partial();
|
|
216
299
|
const ConversationApiSelectSchema = createApiSchema(ConversationSelectSchema).openapi("Conversation");
|
|
@@ -227,11 +310,139 @@ const MessageApiSelectSchema = createApiSchema(MessageSelectSchema).openapi("Mes
|
|
|
227
310
|
const MessageApiInsertSchema = createApiInsertSchema(MessageInsertSchema).openapi("MessageCreate");
|
|
228
311
|
const MessageApiUpdateSchema = createApiUpdateSchema(MessageUpdateSchema).openapi("MessageUpdate");
|
|
229
312
|
const ContextCacheSelectSchema = createSelectSchema(contextCache);
|
|
230
|
-
const ContextCacheInsertSchema = createInsertSchema(contextCache);
|
|
313
|
+
const ContextCacheInsertSchema = createInsertSchema(contextCache).extend({ ref: ResolvedRefSchema });
|
|
231
314
|
const ContextCacheUpdateSchema = ContextCacheInsertSchema.partial();
|
|
232
315
|
const ContextCacheApiSelectSchema = createApiSchema(ContextCacheSelectSchema);
|
|
233
316
|
const ContextCacheApiInsertSchema = createApiInsertSchema(ContextCacheInsertSchema);
|
|
234
317
|
const ContextCacheApiUpdateSchema = createApiUpdateSchema(ContextCacheUpdateSchema);
|
|
318
|
+
const DatasetRunSelectSchema = createSelectSchema(datasetRun);
|
|
319
|
+
const DatasetRunInsertSchema = createInsertSchema(datasetRun).extend({ id: resourceIdSchema });
|
|
320
|
+
const DatasetRunUpdateSchema = DatasetRunInsertSchema.partial();
|
|
321
|
+
const DatasetRunApiSelectSchema = createApiSchema(DatasetRunSelectSchema).openapi("DatasetRun");
|
|
322
|
+
const DatasetRunApiInsertSchema = createApiInsertSchema(DatasetRunInsertSchema).omit({ id: true }).openapi("DatasetRunCreate");
|
|
323
|
+
const DatasetRunApiUpdateSchema = createApiUpdateSchema(DatasetRunUpdateSchema).omit({ id: true }).openapi("DatasetRunUpdate");
|
|
324
|
+
const DatasetRunConversationRelationSelectSchema = createSelectSchema(datasetRunConversationRelations);
|
|
325
|
+
const DatasetRunConversationRelationInsertSchema = createInsertSchema(datasetRunConversationRelations).extend({ id: resourceIdSchema });
|
|
326
|
+
const DatasetRunConversationRelationUpdateSchema = DatasetRunConversationRelationInsertSchema.partial();
|
|
327
|
+
const DatasetRunConversationRelationApiSelectSchema = createApiSchema(DatasetRunConversationRelationSelectSchema).openapi("DatasetRunConversationRelation");
|
|
328
|
+
const DatasetRunConversationRelationApiInsertSchema = createApiInsertSchema(DatasetRunConversationRelationInsertSchema).omit({ id: true }).openapi("DatasetRunConversationRelationCreate");
|
|
329
|
+
const DatasetRunConversationRelationApiUpdateSchema = createApiUpdateSchema(DatasetRunConversationRelationUpdateSchema).omit({ id: true }).openapi("DatasetRunConversationRelationUpdate");
|
|
330
|
+
const EvaluationResultSelectSchema = createSelectSchema(evaluationResult);
|
|
331
|
+
const EvaluationResultInsertSchema = createInsertSchema(evaluationResult).extend({ id: resourceIdSchema });
|
|
332
|
+
const EvaluationResultUpdateSchema = EvaluationResultInsertSchema.partial();
|
|
333
|
+
const EvaluationResultApiSelectSchema = createApiSchema(EvaluationResultSelectSchema).openapi("EvaluationResult");
|
|
334
|
+
const EvaluationResultApiInsertSchema = createApiInsertSchema(EvaluationResultInsertSchema).omit({ id: true }).openapi("EvaluationResultCreate");
|
|
335
|
+
const EvaluationResultApiUpdateSchema = createApiUpdateSchema(EvaluationResultUpdateSchema).omit({ id: true }).openapi("EvaluationResultUpdate");
|
|
336
|
+
const EvaluationRunSelectSchema = createSelectSchema(evaluationRun);
|
|
337
|
+
const EvaluationRunInsertSchema = createInsertSchema(evaluationRun).extend({ id: resourceIdSchema });
|
|
338
|
+
const EvaluationRunUpdateSchema = EvaluationRunInsertSchema.partial();
|
|
339
|
+
const EvaluationRunApiSelectSchema = createApiSchema(EvaluationRunSelectSchema).openapi("EvaluationRun");
|
|
340
|
+
const EvaluationRunApiInsertSchema = createApiInsertSchema(EvaluationRunInsertSchema).omit({ id: true }).openapi("EvaluationRunCreate");
|
|
341
|
+
const EvaluationRunApiUpdateSchema = createApiUpdateSchema(EvaluationRunUpdateSchema).omit({ id: true }).openapi("EvaluationRunUpdate");
|
|
342
|
+
const EvaluationRunConfigSelectSchema = createSelectSchema(evaluationRunConfig);
|
|
343
|
+
const EvaluationRunConfigInsertSchema = createInsertSchema(evaluationRunConfig).extend({ id: resourceIdSchema });
|
|
344
|
+
const EvaluationRunConfigUpdateSchema = EvaluationRunConfigInsertSchema.partial();
|
|
345
|
+
const EvaluationRunConfigApiSelectSchema = createApiSchema(EvaluationRunConfigSelectSchema).openapi("EvaluationRunConfig");
|
|
346
|
+
const EvaluationRunConfigApiInsertSchema = createApiInsertSchema(EvaluationRunConfigInsertSchema).omit({ id: true }).extend({ suiteConfigIds: z.array(z.string()).min(1, "At least one suite config is required") }).openapi("EvaluationRunConfigCreate");
|
|
347
|
+
const EvaluationRunConfigApiUpdateSchema = createApiUpdateSchema(EvaluationRunConfigUpdateSchema).omit({ id: true }).extend({ suiteConfigIds: z.array(z.string()).optional() }).openapi("EvaluationRunConfigUpdate");
|
|
348
|
+
const EvaluationRunConfigWithSuiteConfigsApiSelectSchema = EvaluationRunConfigApiSelectSchema.extend({ suiteConfigIds: z.array(z.string()) }).openapi("EvaluationRunConfigWithSuiteConfigs");
|
|
349
|
+
const EvaluationJobConfigSelectSchema = createSelectSchema(evaluationJobConfig);
|
|
350
|
+
const EvaluationJobConfigInsertSchema = createInsertSchema(evaluationJobConfig).extend({ id: resourceIdSchema });
|
|
351
|
+
const EvaluationJobConfigUpdateSchema = EvaluationJobConfigInsertSchema.partial();
|
|
352
|
+
const EvaluationJobConfigApiSelectSchema = createApiSchema(EvaluationJobConfigSelectSchema).openapi("EvaluationJobConfig");
|
|
353
|
+
const EvaluationJobConfigApiInsertSchema = createApiInsertSchema(EvaluationJobConfigInsertSchema).omit({ id: true }).extend({ evaluatorIds: z.array(z.string()).min(1, "At least one evaluator is required") }).openapi("EvaluationJobConfigCreate");
|
|
354
|
+
const EvaluationJobConfigApiUpdateSchema = createApiUpdateSchema(EvaluationJobConfigUpdateSchema).omit({ id: true }).openapi("EvaluationJobConfigUpdate");
|
|
355
|
+
const EvaluationSuiteConfigSelectSchema = createSelectSchema(evaluationSuiteConfig);
|
|
356
|
+
const EvaluationSuiteConfigInsertSchema = createInsertSchema(evaluationSuiteConfig).extend({ id: resourceIdSchema });
|
|
357
|
+
const EvaluationSuiteConfigUpdateSchema = EvaluationSuiteConfigInsertSchema.partial();
|
|
358
|
+
const EvaluationSuiteConfigApiSelectSchema = createApiSchema(EvaluationSuiteConfigSelectSchema).openapi("EvaluationSuiteConfig");
|
|
359
|
+
const EvaluationSuiteConfigApiInsertSchema = createApiInsertSchema(EvaluationSuiteConfigInsertSchema).omit({ id: true }).extend({ evaluatorIds: z.array(z.string()).min(1, "At least one evaluator is required") }).openapi("EvaluationSuiteConfigCreate");
|
|
360
|
+
const EvaluationSuiteConfigApiUpdateSchema = createApiUpdateSchema(EvaluationSuiteConfigUpdateSchema).omit({ id: true }).extend({ evaluatorIds: z.array(z.string()).optional() }).openapi("EvaluationSuiteConfigUpdate");
|
|
361
|
+
const EvaluationRunConfigEvaluationSuiteConfigRelationSelectSchema = createSelectSchema(evaluationRunConfigEvaluationSuiteConfigRelations);
|
|
362
|
+
const EvaluationRunConfigEvaluationSuiteConfigRelationInsertSchema = createInsertSchema(evaluationRunConfigEvaluationSuiteConfigRelations).extend({ id: resourceIdSchema });
|
|
363
|
+
const EvaluationRunConfigEvaluationSuiteConfigRelationUpdateSchema = EvaluationRunConfigEvaluationSuiteConfigRelationInsertSchema.partial();
|
|
364
|
+
const EvaluationRunConfigEvaluationSuiteConfigRelationApiSelectSchema = createApiSchema(EvaluationRunConfigEvaluationSuiteConfigRelationSelectSchema).openapi("EvaluationRunConfigEvaluationSuiteConfigRelation");
|
|
365
|
+
const EvaluationRunConfigEvaluationSuiteConfigRelationApiInsertSchema = createApiInsertSchema(EvaluationRunConfigEvaluationSuiteConfigRelationInsertSchema).omit({ id: true }).openapi("EvaluationRunConfigEvaluationSuiteConfigRelationCreate");
|
|
366
|
+
const EvaluationRunConfigEvaluationSuiteConfigRelationApiUpdateSchema = createApiUpdateSchema(EvaluationRunConfigEvaluationSuiteConfigRelationUpdateSchema).omit({ id: true }).openapi("EvaluationRunConfigEvaluationSuiteConfigRelationUpdate");
|
|
367
|
+
const EvaluationJobConfigEvaluatorRelationSelectSchema = createSelectSchema(evaluationJobConfigEvaluatorRelations);
|
|
368
|
+
const EvaluationJobConfigEvaluatorRelationInsertSchema = createInsertSchema(evaluationJobConfigEvaluatorRelations).extend({ id: resourceIdSchema });
|
|
369
|
+
const EvaluationJobConfigEvaluatorRelationUpdateSchema = EvaluationJobConfigEvaluatorRelationInsertSchema.partial();
|
|
370
|
+
const EvaluationJobConfigEvaluatorRelationApiSelectSchema = createApiSchema(EvaluationJobConfigEvaluatorRelationSelectSchema).openapi("EvaluationJobConfigEvaluatorRelation");
|
|
371
|
+
const EvaluationJobConfigEvaluatorRelationApiInsertSchema = createApiInsertSchema(EvaluationJobConfigEvaluatorRelationInsertSchema).omit({ id: true }).openapi("EvaluationJobConfigEvaluatorRelationCreate");
|
|
372
|
+
const EvaluationJobConfigEvaluatorRelationApiUpdateSchema = createApiUpdateSchema(EvaluationJobConfigEvaluatorRelationUpdateSchema).omit({ id: true }).openapi("EvaluationJobConfigEvaluatorRelationUpdate");
|
|
373
|
+
const EvaluationSuiteConfigEvaluatorRelationSelectSchema = createSelectSchema(evaluationSuiteConfigEvaluatorRelations);
|
|
374
|
+
const EvaluationSuiteConfigEvaluatorRelationInsertSchema = createInsertSchema(evaluationSuiteConfigEvaluatorRelations).extend({ id: resourceIdSchema });
|
|
375
|
+
const EvaluationSuiteConfigEvaluatorRelationUpdateSchema = EvaluationSuiteConfigEvaluatorRelationInsertSchema.partial();
|
|
376
|
+
const EvaluationSuiteConfigEvaluatorRelationApiSelectSchema = createApiSchema(EvaluationSuiteConfigEvaluatorRelationSelectSchema).openapi("EvaluationSuiteConfigEvaluatorRelation");
|
|
377
|
+
const EvaluationSuiteConfigEvaluatorRelationApiInsertSchema = createApiInsertSchema(EvaluationSuiteConfigEvaluatorRelationInsertSchema).omit({ id: true }).openapi("EvaluationSuiteConfigEvaluatorRelationCreate");
|
|
378
|
+
const EvaluationSuiteConfigEvaluatorRelationApiUpdateSchema = createApiUpdateSchema(EvaluationSuiteConfigEvaluatorRelationUpdateSchema).omit({ id: true }).openapi("EvaluationSuiteConfigEvaluatorRelationUpdate");
|
|
379
|
+
const EvaluatorSelectSchema = createSelectSchema(evaluator);
|
|
380
|
+
const EvaluatorInsertSchema = createInsertSchema(evaluator).extend({ id: resourceIdSchema });
|
|
381
|
+
const EvaluatorUpdateSchema = EvaluatorInsertSchema.partial();
|
|
382
|
+
const EvaluatorApiSelectSchema = createApiSchema(EvaluatorSelectSchema).openapi("Evaluator");
|
|
383
|
+
const EvaluatorApiInsertSchema = createApiInsertSchema(EvaluatorInsertSchema).omit({ id: true }).openapi("EvaluatorCreate");
|
|
384
|
+
const EvaluatorApiUpdateSchema = createApiUpdateSchema(EvaluatorUpdateSchema).omit({ id: true }).openapi("EvaluatorUpdate");
|
|
385
|
+
const DatasetSelectSchema = createSelectSchema(dataset);
|
|
386
|
+
const DatasetInsertSchema = createInsertSchema(dataset).extend({ id: resourceIdSchema });
|
|
387
|
+
const DatasetUpdateSchema = DatasetInsertSchema.partial();
|
|
388
|
+
const DatasetApiSelectSchema = createApiSchema(DatasetSelectSchema).openapi("Dataset");
|
|
389
|
+
const DatasetApiInsertSchema = createApiInsertSchema(DatasetInsertSchema).omit({ id: true }).openapi("DatasetCreate");
|
|
390
|
+
const DatasetApiUpdateSchema = createApiUpdateSchema(DatasetUpdateSchema).omit({ id: true }).openapi("DatasetUpdate");
|
|
391
|
+
const DatasetItemSelectSchema = createSelectSchema(datasetItem);
|
|
392
|
+
const DatasetItemInsertSchema = createInsertSchema(datasetItem).extend({ id: resourceIdSchema });
|
|
393
|
+
const DatasetItemUpdateSchema = DatasetItemInsertSchema.partial();
|
|
394
|
+
const DatasetItemApiSelectSchema = createApiSchema(DatasetItemSelectSchema).openapi("DatasetItem");
|
|
395
|
+
const DatasetItemApiInsertSchema = createApiInsertSchema(DatasetItemInsertSchema).omit({
|
|
396
|
+
id: true,
|
|
397
|
+
datasetId: true
|
|
398
|
+
}).openapi("DatasetItemCreate");
|
|
399
|
+
const DatasetItemApiUpdateSchema = createApiUpdateSchema(DatasetItemUpdateSchema).omit({
|
|
400
|
+
id: true,
|
|
401
|
+
datasetId: true
|
|
402
|
+
}).openapi("DatasetItemUpdate");
|
|
403
|
+
const DatasetRunItemSchema = DatasetItemApiSelectSchema.pick({
|
|
404
|
+
id: true,
|
|
405
|
+
input: true,
|
|
406
|
+
expectedOutput: true,
|
|
407
|
+
simulationAgent: true
|
|
408
|
+
}).partial().extend({ agentId: z.string() }).openapi("DatasetRunItem");
|
|
409
|
+
const TriggerDatasetRunSchema = z.object({
|
|
410
|
+
datasetRunId: z.string(),
|
|
411
|
+
items: z.array(DatasetRunItemSchema),
|
|
412
|
+
evaluatorIds: z.array(z.string()).optional(),
|
|
413
|
+
evaluationRunId: z.string().optional()
|
|
414
|
+
}).openapi("TriggerDatasetRun");
|
|
415
|
+
const TriggerConversationEvaluationSchema = z.object({ conversationId: z.string() }).openapi("TriggerConversationEvaluation");
|
|
416
|
+
const TriggerBatchConversationEvaluationSchema = z.object({ conversations: z.array(z.object({
|
|
417
|
+
conversationId: z.string(),
|
|
418
|
+
evaluatorIds: z.array(z.string()),
|
|
419
|
+
evaluationRunId: z.string()
|
|
420
|
+
})) }).openapi("TriggerBatchConversationEvaluation");
|
|
421
|
+
const EvaluationJobFilterCriteriaSchema = z.object({
|
|
422
|
+
datasetRunIds: z.array(z.string()).optional(),
|
|
423
|
+
conversationIds: z.array(z.string()).optional(),
|
|
424
|
+
dateRange: z.object({
|
|
425
|
+
startDate: z.string(),
|
|
426
|
+
endDate: z.string()
|
|
427
|
+
}).optional()
|
|
428
|
+
}).openapi("EvaluationJobFilterCriteria");
|
|
429
|
+
const TriggerEvaluationJobSchema = z.object({
|
|
430
|
+
evaluationJobConfigId: z.string(),
|
|
431
|
+
evaluatorIds: z.array(z.string()),
|
|
432
|
+
jobFilters: EvaluationJobFilterCriteriaSchema.nullable().optional()
|
|
433
|
+
}).openapi("TriggerEvaluationJob");
|
|
434
|
+
const DatasetRunConfigSelectSchema = createSelectSchema(datasetRunConfig);
|
|
435
|
+
const DatasetRunConfigInsertSchema = createInsertSchema(datasetRunConfig).extend({ id: resourceIdSchema });
|
|
436
|
+
const DatasetRunConfigUpdateSchema = DatasetRunConfigInsertSchema.partial();
|
|
437
|
+
const DatasetRunConfigApiSelectSchema = createApiSchema(DatasetRunConfigSelectSchema).openapi("DatasetRunConfig");
|
|
438
|
+
const DatasetRunConfigApiInsertSchema = createApiInsertSchema(DatasetRunConfigInsertSchema).omit({ id: true }).openapi("DatasetRunConfigCreate");
|
|
439
|
+
const DatasetRunConfigApiUpdateSchema = createApiUpdateSchema(DatasetRunConfigUpdateSchema).omit({ id: true }).openapi("DatasetRunConfigUpdate");
|
|
440
|
+
const DatasetRunConfigAgentRelationSelectSchema = createSelectSchema(datasetRunConfigAgentRelations);
|
|
441
|
+
const DatasetRunConfigAgentRelationInsertSchema = createInsertSchema(datasetRunConfigAgentRelations).extend({ id: resourceIdSchema });
|
|
442
|
+
const DatasetRunConfigAgentRelationUpdateSchema = DatasetRunConfigAgentRelationInsertSchema.partial();
|
|
443
|
+
const DatasetRunConfigAgentRelationApiSelectSchema = createApiSchema(DatasetRunConfigAgentRelationSelectSchema).openapi("DatasetRunConfigAgentRelation");
|
|
444
|
+
const DatasetRunConfigAgentRelationApiInsertSchema = createApiInsertSchema(DatasetRunConfigAgentRelationInsertSchema).omit({ id: true }).openapi("DatasetRunConfigAgentRelationCreate");
|
|
445
|
+
const DatasetRunConfigAgentRelationApiUpdateSchema = createApiUpdateSchema(DatasetRunConfigAgentRelationUpdateSchema).omit({ id: true }).openapi("DatasetRunConfigAgentRelationUpdate");
|
|
235
446
|
const DataComponentSelectSchema = createSelectSchema(dataComponents);
|
|
236
447
|
const DataComponentInsertSchema = createInsertSchema(dataComponents).extend({ id: resourceIdSchema });
|
|
237
448
|
const DataComponentBaseSchema = DataComponentInsertSchema.omit({
|
|
@@ -397,7 +608,14 @@ const MCPToolConfigSchema = McpToolSchema.omit({
|
|
|
397
608
|
activeTools: z.array(z.string()).optional(),
|
|
398
609
|
mcpType: z.enum(MCPServerType).optional(),
|
|
399
610
|
transport: McpTransportConfigSchema.optional(),
|
|
400
|
-
credential: CredentialReferenceApiInsertSchema.optional()
|
|
611
|
+
credential: CredentialReferenceApiInsertSchema.optional(),
|
|
612
|
+
toolOverrides: z.record(z.string(), z.object({
|
|
613
|
+
displayName: z.string().optional(),
|
|
614
|
+
description: z.string().optional(),
|
|
615
|
+
schema: z.any().optional(),
|
|
616
|
+
transformation: z.union([z.string(), z.record(z.string(), z.string())]).optional()
|
|
617
|
+
})).optional(),
|
|
618
|
+
prompt: z.string().optional()
|
|
401
619
|
});
|
|
402
620
|
const ToolUpdateSchema = ToolInsertSchema.partial();
|
|
403
621
|
const ToolApiSelectSchema = createApiSchema(ToolSelectSchema).openapi("Tool");
|
|
@@ -409,6 +627,21 @@ const FunctionToolUpdateSchema = FunctionToolInsertSchema.partial();
|
|
|
409
627
|
const FunctionToolApiSelectSchema = createApiSchema(FunctionToolSelectSchema).openapi("FunctionTool");
|
|
410
628
|
const FunctionToolApiInsertSchema = createAgentScopedApiInsertSchema(FunctionToolInsertSchema).openapi("FunctionToolCreate");
|
|
411
629
|
const FunctionToolApiUpdateSchema = createApiUpdateSchema(FunctionToolUpdateSchema).openapi("FunctionToolUpdate");
|
|
630
|
+
const SubAgentFunctionToolRelationSelectSchema = createSelectSchema(subAgentFunctionToolRelations);
|
|
631
|
+
const SubAgentFunctionToolRelationInsertSchema = createInsertSchema(subAgentFunctionToolRelations).extend({
|
|
632
|
+
id: resourceIdSchema,
|
|
633
|
+
subAgentId: resourceIdSchema,
|
|
634
|
+
functionToolId: resourceIdSchema
|
|
635
|
+
});
|
|
636
|
+
const SubAgentFunctionToolRelationApiSelectSchema = createAgentScopedApiSchema(SubAgentFunctionToolRelationSelectSchema).openapi("SubAgentFunctionToolRelation");
|
|
637
|
+
const SubAgentFunctionToolRelationApiInsertSchema = SubAgentFunctionToolRelationInsertSchema.omit({
|
|
638
|
+
tenantId: true,
|
|
639
|
+
projectId: true,
|
|
640
|
+
agentId: true,
|
|
641
|
+
id: true,
|
|
642
|
+
createdAt: true,
|
|
643
|
+
updatedAt: true
|
|
644
|
+
}).openapi("SubAgentFunctionToolRelationCreate");
|
|
412
645
|
const FunctionSelectSchema = createSelectSchema(functions);
|
|
413
646
|
const FunctionInsertSchema = createInsertSchema(functions).extend({ id: resourceIdSchema });
|
|
414
647
|
const FunctionUpdateSchema = FunctionInsertSchema.partial();
|
|
@@ -531,14 +764,28 @@ const CanUseItemSchema = z.object({
|
|
|
531
764
|
headers: z.record(z.string(), z.string()).nullish(),
|
|
532
765
|
toolPolicies: z.record(z.string(), z.object({ needsApproval: z.boolean().optional() })).nullish()
|
|
533
766
|
}).openapi("CanUseItem");
|
|
534
|
-
const
|
|
767
|
+
const canRelateToInternalSubAgentSchema = z.object({
|
|
768
|
+
subAgentId: z.string(),
|
|
769
|
+
subAgentSubAgentRelationId: z.string()
|
|
770
|
+
}).openapi("CanRelateToInternalSubAgent");
|
|
771
|
+
const canDelegateToExternalAgentInsertSchema = z.object({
|
|
535
772
|
externalAgentId: z.string(),
|
|
536
773
|
subAgentExternalAgentRelationId: z.string().optional(),
|
|
537
774
|
headers: z.record(z.string(), z.string()).nullish()
|
|
775
|
+
}).openapi("CanDelegateToExternalAgentInsert");
|
|
776
|
+
const canDelegateToTeamAgentInsertSchema = z.object({
|
|
777
|
+
agentId: z.string(),
|
|
778
|
+
subAgentTeamAgentRelationId: z.string().optional(),
|
|
779
|
+
headers: z.record(z.string(), z.string()).nullish()
|
|
780
|
+
}).openapi("CanDelegateToTeamAgentInsert");
|
|
781
|
+
const canDelegateToExternalAgentSchema = z.object({
|
|
782
|
+
externalAgentId: z.string(),
|
|
783
|
+
subAgentExternalAgentRelationId: z.string(),
|
|
784
|
+
headers: z.record(z.string(), z.string()).nullish()
|
|
538
785
|
}).openapi("CanDelegateToExternalAgent");
|
|
539
786
|
const canDelegateToTeamAgentSchema = z.object({
|
|
540
787
|
agentId: z.string(),
|
|
541
|
-
subAgentTeamAgentRelationId: z.string()
|
|
788
|
+
subAgentTeamAgentRelationId: z.string(),
|
|
542
789
|
headers: z.record(z.string(), z.string()).nullish()
|
|
543
790
|
}).openapi("CanDelegateToTeamAgent");
|
|
544
791
|
const TeamAgentSchema = z.object({
|
|
@@ -555,8 +802,8 @@ const FullAgentAgentInsertSchema = SubAgentApiInsertSchema.extend({
|
|
|
555
802
|
prompt: z.string().trim().optional(),
|
|
556
803
|
canDelegateTo: z.array(z.union([
|
|
557
804
|
z.string(),
|
|
558
|
-
|
|
559
|
-
|
|
805
|
+
canDelegateToExternalAgentInsertSchema,
|
|
806
|
+
canDelegateToTeamAgentInsertSchema
|
|
560
807
|
])).optional()
|
|
561
808
|
}).openapi("FullAgentAgentInsert");
|
|
562
809
|
const AgentWithinContextOfProjectSchema = AgentApiInsertSchema.extend({
|
|
@@ -566,6 +813,7 @@ const AgentWithinContextOfProjectSchema = AgentApiInsertSchema.extend({
|
|
|
566
813
|
teamAgents: z.record(z.string(), TeamAgentSchema).optional(),
|
|
567
814
|
functionTools: z.record(z.string(), FunctionToolApiInsertSchema).optional(),
|
|
568
815
|
functions: z.record(z.string(), FunctionApiInsertSchema).optional(),
|
|
816
|
+
triggers: z.record(z.string(), TriggerApiInsertSchema).optional(),
|
|
569
817
|
contextConfig: z.optional(ContextConfigApiInsertSchema),
|
|
570
818
|
statusUpdates: z.optional(StatusUpdateSchema),
|
|
571
819
|
models: ModelSchema.optional(),
|
|
@@ -624,6 +872,53 @@ const FullProjectDefinitionSchema = ProjectApiInsertSchema.extend({
|
|
|
624
872
|
createdAt: z.string().optional(),
|
|
625
873
|
updatedAt: z.string().optional()
|
|
626
874
|
}).openapi("FullProjectDefinition");
|
|
875
|
+
const FullAgentSubAgentSelectSchema = SubAgentApiSelectSchema.extend({
|
|
876
|
+
type: z.literal("internal"),
|
|
877
|
+
canUse: z.array(CanUseItemSchema),
|
|
878
|
+
dataComponents: z.array(z.string()).nullable(),
|
|
879
|
+
artifactComponents: z.array(z.string()).nullable(),
|
|
880
|
+
canTransferTo: z.array(z.string()).nullable(),
|
|
881
|
+
prompt: z.string().nullable(),
|
|
882
|
+
canDelegateTo: z.array(z.union([
|
|
883
|
+
z.string(),
|
|
884
|
+
canDelegateToExternalAgentSchema,
|
|
885
|
+
canDelegateToTeamAgentSchema
|
|
886
|
+
])).nullable()
|
|
887
|
+
}).openapi("FullAgentSubAgentSelect");
|
|
888
|
+
const FullAgentSubAgentSelectSchemaWithRelationIds = FullAgentSubAgentSelectSchema.extend({
|
|
889
|
+
canTransferTo: z.array(canRelateToInternalSubAgentSchema).nullable(),
|
|
890
|
+
canDelegateTo: z.array(z.union([
|
|
891
|
+
canRelateToInternalSubAgentSchema,
|
|
892
|
+
canDelegateToExternalAgentSchema,
|
|
893
|
+
canDelegateToTeamAgentSchema
|
|
894
|
+
])).nullable()
|
|
895
|
+
}).openapi("FullAgentSubAgentSelectWithRelationIds");
|
|
896
|
+
const AgentWithinContextOfProjectSelectSchema = AgentApiSelectSchema.extend({
|
|
897
|
+
subAgents: z.record(z.string(), FullAgentSubAgentSelectSchema),
|
|
898
|
+
tools: z.record(z.string(), ToolApiSelectSchema).nullable(),
|
|
899
|
+
externalAgents: z.record(z.string(), ExternalAgentApiSelectSchema).nullable(),
|
|
900
|
+
teamAgents: z.record(z.string(), TeamAgentSchema).nullable(),
|
|
901
|
+
functionTools: z.record(z.string(), FunctionToolApiSelectSchema).nullable(),
|
|
902
|
+
functions: z.record(z.string(), FunctionApiSelectSchema).nullable(),
|
|
903
|
+
contextConfig: ContextConfigApiSelectSchema.nullable(),
|
|
904
|
+
statusUpdates: StatusUpdateSchema.nullable(),
|
|
905
|
+
models: ModelSchema.nullable(),
|
|
906
|
+
stopWhen: AgentStopWhenSchema.nullable(),
|
|
907
|
+
prompt: z.string().nullable()
|
|
908
|
+
}).openapi("AgentWithinContextOfProjectSelect");
|
|
909
|
+
const AgentWithinContextOfProjectSelectSchemaWithRelationIds = AgentWithinContextOfProjectSelectSchema.extend({ subAgents: z.record(z.string(), FullAgentSubAgentSelectSchemaWithRelationIds) }).openapi("AgentWithinContextOfProjectSelectWithRelationIds");
|
|
910
|
+
const FullProjectSelectSchema = ProjectApiSelectSchema.extend({
|
|
911
|
+
agents: z.record(z.string(), AgentWithinContextOfProjectSelectSchema),
|
|
912
|
+
tools: z.record(z.string(), ToolApiSelectSchema),
|
|
913
|
+
functionTools: z.record(z.string(), FunctionToolApiSelectSchema).nullable(),
|
|
914
|
+
functions: z.record(z.string(), FunctionApiSelectSchema).nullable(),
|
|
915
|
+
dataComponents: z.record(z.string(), DataComponentApiSelectSchema).nullable(),
|
|
916
|
+
artifactComponents: z.record(z.string(), ArtifactComponentApiSelectSchema).nullable(),
|
|
917
|
+
externalAgents: z.record(z.string(), ExternalAgentApiSelectSchema).nullable(),
|
|
918
|
+
statusUpdates: StatusUpdateSchema.nullable(),
|
|
919
|
+
credentialReferences: z.record(z.string(), CredentialReferenceApiSelectSchema).nullable()
|
|
920
|
+
}).openapi("FullProjectSelect");
|
|
921
|
+
const FullProjectSelectSchemaWithRelationIds = FullProjectSelectSchema.extend({ agents: z.record(z.string(), AgentWithinContextOfProjectSelectSchemaWithRelationIds) }).openapi("FullProjectSelectWithRelationIds");
|
|
627
922
|
const ProjectResponse = z.object({ data: ProjectApiSelectSchema }).openapi("ProjectResponse");
|
|
628
923
|
const SubAgentResponse = z.object({ data: SubAgentApiSelectSchema }).openapi("SubAgentResponse");
|
|
629
924
|
const AgentResponse = z.object({ data: AgentApiSelectSchema }).openapi("AgentResponse");
|
|
@@ -634,12 +929,15 @@ const ApiKeyResponse = z.object({ data: ApiKeyApiSelectSchema }).openapi("ApiKey
|
|
|
634
929
|
const CredentialReferenceResponse = z.object({ data: CredentialReferenceApiSelectSchema }).openapi("CredentialReferenceResponse");
|
|
635
930
|
const FunctionResponse = z.object({ data: FunctionApiSelectSchema }).openapi("FunctionResponse");
|
|
636
931
|
const FunctionToolResponse = z.object({ data: FunctionToolApiSelectSchema }).openapi("FunctionToolResponse");
|
|
932
|
+
const SubAgentFunctionToolRelationResponse = z.object({ data: SubAgentFunctionToolRelationApiSelectSchema }).openapi("SubAgentFunctionToolRelationResponse");
|
|
637
933
|
const DataComponentResponse = z.object({ data: DataComponentApiSelectSchema }).openapi("DataComponentResponse");
|
|
638
934
|
const ArtifactComponentResponse = z.object({ data: ArtifactComponentApiSelectSchema }).openapi("ArtifactComponentResponse");
|
|
639
935
|
const SubAgentRelationResponse = z.object({ data: SubAgentRelationApiSelectSchema }).openapi("SubAgentRelationResponse");
|
|
640
936
|
const SubAgentToolRelationResponse = z.object({ data: SubAgentToolRelationApiSelectSchema }).openapi("SubAgentToolRelationResponse");
|
|
641
937
|
const ConversationResponse = z.object({ data: ConversationApiSelectSchema }).openapi("ConversationResponse");
|
|
642
938
|
const MessageResponse = z.object({ data: MessageApiSelectSchema }).openapi("MessageResponse");
|
|
939
|
+
const TriggerResponse = z.object({ data: TriggerApiSelectSchema }).openapi("TriggerResponse");
|
|
940
|
+
const TriggerInvocationResponse = z.object({ data: TriggerInvocationApiSelectSchema }).openapi("TriggerInvocationResponse");
|
|
643
941
|
const ProjectListResponse = z.object({
|
|
644
942
|
data: z.array(ProjectApiSelectSchema),
|
|
645
943
|
pagination: PaginationSchema
|
|
@@ -680,6 +978,10 @@ const FunctionToolListResponse = z.object({
|
|
|
680
978
|
data: z.array(FunctionToolApiSelectSchema),
|
|
681
979
|
pagination: PaginationSchema
|
|
682
980
|
}).openapi("FunctionToolListResponse");
|
|
981
|
+
const SubAgentFunctionToolRelationListResponse = z.object({
|
|
982
|
+
data: z.array(SubAgentFunctionToolRelationApiSelectSchema),
|
|
983
|
+
pagination: PaginationSchema
|
|
984
|
+
}).openapi("SubAgentFunctionToolRelationListResponse");
|
|
683
985
|
const DataComponentListResponse = z.object({
|
|
684
986
|
data: z.array(DataComponentApiSelectSchema),
|
|
685
987
|
pagination: PaginationSchema
|
|
@@ -704,6 +1006,14 @@ const MessageListResponse = z.object({
|
|
|
704
1006
|
data: z.array(MessageApiSelectSchema),
|
|
705
1007
|
pagination: PaginationSchema
|
|
706
1008
|
}).openapi("MessageListResponse");
|
|
1009
|
+
const TriggerListResponse = z.object({
|
|
1010
|
+
data: z.array(TriggerApiSelectSchema),
|
|
1011
|
+
pagination: PaginationSchema
|
|
1012
|
+
}).openapi("TriggerListResponse");
|
|
1013
|
+
const TriggerInvocationListResponse = z.object({
|
|
1014
|
+
data: z.array(TriggerInvocationApiSelectSchema),
|
|
1015
|
+
pagination: PaginationSchema
|
|
1016
|
+
}).openapi("TriggerInvocationListResponse");
|
|
707
1017
|
const SubAgentDataComponentResponse = z.object({ data: SubAgentDataComponentApiSelectSchema }).openapi("SubAgentDataComponentResponse");
|
|
708
1018
|
const SubAgentArtifactComponentResponse = z.object({ data: SubAgentArtifactComponentApiSelectSchema }).openapi("SubAgentArtifactComponentResponse");
|
|
709
1019
|
const SubAgentDataComponentListResponse = z.object({
|
|
@@ -715,7 +1025,10 @@ const SubAgentArtifactComponentListResponse = z.object({
|
|
|
715
1025
|
pagination: PaginationSchema
|
|
716
1026
|
}).openapi("SubAgentArtifactComponentListResponse");
|
|
717
1027
|
const FullProjectDefinitionResponse = z.object({ data: FullProjectDefinitionSchema }).openapi("FullProjectDefinitionResponse");
|
|
1028
|
+
const FullProjectSelectResponse = z.object({ data: FullProjectSelectSchema }).openapi("FullProjectSelectResponse");
|
|
1029
|
+
const FullProjectSelectWithRelationIdsResponse = z.object({ data: FullProjectSelectSchemaWithRelationIds }).openapi("FullProjectSelectWithRelationIdsResponse");
|
|
718
1030
|
const AgentWithinContextOfProjectResponse = z.object({ data: AgentWithinContextOfProjectSchema }).openapi("AgentWithinContextOfProjectResponse");
|
|
1031
|
+
const AgentWithinContextOfProjectSelectResponse = z.object({ data: AgentWithinContextOfProjectSelectSchema }).openapi("AgentWithinContextOfProjectSelectResponse");
|
|
719
1032
|
const RelatedAgentInfoListResponse = z.object({
|
|
720
1033
|
data: z.array(RelatedAgentInfoSchema),
|
|
721
1034
|
pagination: PaginationSchema
|
|
@@ -792,6 +1105,7 @@ const TenantProjectAgentParamsSchema = TenantProjectParamsSchema.extend({ agentI
|
|
|
792
1105
|
const TenantProjectAgentIdParamsSchema = TenantProjectAgentParamsSchema.extend({ id: resourceIdSchema });
|
|
793
1106
|
const TenantProjectAgentSubAgentParamsSchema = TenantProjectAgentParamsSchema.extend({ subAgentId: SubAgentId });
|
|
794
1107
|
const TenantProjectAgentSubAgentIdParamsSchema = TenantProjectAgentSubAgentParamsSchema.extend({ id: resourceIdSchema });
|
|
1108
|
+
const RefQueryParamSchema = z.object({ ref: z.string().optional().describe("Branch name, tag name, or commit hash to query from") });
|
|
795
1109
|
const PaginationQueryParamsSchema = z.object({
|
|
796
1110
|
page: pageNumber,
|
|
797
1111
|
limit: limitNumber
|
|
@@ -809,6 +1123,9 @@ const PrebuiltMCPServerSchema = z.object({
|
|
|
809
1123
|
});
|
|
810
1124
|
const MCPCatalogListResponse = z.object({ data: z.array(PrebuiltMCPServerSchema) }).openapi("MCPCatalogListResponse");
|
|
811
1125
|
const ThirdPartyMCPServerResponse = z.object({ data: PrebuiltMCPServerSchema.nullable() }).openapi("ThirdPartyMCPServerResponse");
|
|
1126
|
+
const PaginationWithRefQueryParamsSchema = PaginationQueryParamsSchema.merge(RefQueryParamSchema);
|
|
1127
|
+
const ProjectMetadataSelectSchema = createSelectSchema(projectMetadata);
|
|
1128
|
+
const ProjectMetadataInsertSchema = createInsertSchema(projectMetadata).omit({ createdAt: true });
|
|
812
1129
|
|
|
813
1130
|
//#endregion
|
|
814
|
-
export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ComponentAssociationListResponse, ComponentAssociationSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, CredentialStoreListResponseSchema, CredentialStoreSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentArrayResponse, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionResponse, FullProjectDefinitionSchema, 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, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, PaginationSchema, PrebuiltMCPServerSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RelatedAgentInfoListResponse, RelatedAgentInfoSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationListResponse, SubAgentExternalAgentRelationResponse, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, 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, ThirdPartyMCPServerResponse, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, resourceIdSchema };
|
|
1131
|
+
export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, AgentWithinContextOfProjectSelectResponse, AgentWithinContextOfProjectSelectSchema, AgentWithinContextOfProjectSelectSchemaWithRelationIds, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ComponentAssociationListResponse, ComponentAssociationSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, CredentialStoreListResponseSchema, CredentialStoreSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentArrayResponse, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, DatasetApiInsertSchema, DatasetApiSelectSchema, DatasetApiUpdateSchema, DatasetInsertSchema, DatasetItemApiInsertSchema, DatasetItemApiSelectSchema, DatasetItemApiUpdateSchema, DatasetItemInsertSchema, DatasetItemSelectSchema, DatasetItemUpdateSchema, DatasetRunApiInsertSchema, DatasetRunApiSelectSchema, DatasetRunApiUpdateSchema, DatasetRunConfigAgentRelationApiInsertSchema, DatasetRunConfigAgentRelationApiSelectSchema, DatasetRunConfigAgentRelationApiUpdateSchema, DatasetRunConfigAgentRelationInsertSchema, DatasetRunConfigAgentRelationSelectSchema, DatasetRunConfigAgentRelationUpdateSchema, DatasetRunConfigApiInsertSchema, DatasetRunConfigApiSelectSchema, DatasetRunConfigApiUpdateSchema, DatasetRunConfigInsertSchema, DatasetRunConfigSelectSchema, DatasetRunConfigUpdateSchema, DatasetRunConversationRelationApiInsertSchema, DatasetRunConversationRelationApiSelectSchema, DatasetRunConversationRelationApiUpdateSchema, DatasetRunConversationRelationInsertSchema, DatasetRunConversationRelationSelectSchema, DatasetRunConversationRelationUpdateSchema, DatasetRunInsertSchema, DatasetRunItemSchema, DatasetRunSelectSchema, DatasetRunUpdateSchema, DatasetSelectSchema, DatasetUpdateSchema, 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, 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, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, PaginationSchema, PaginationWithRefQueryParamsSchema, PrebuiltMCPServerSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectMetadataInsertSchema, ProjectMetadataSelectSchema, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RefQueryParamSchema, RelatedAgentInfoListResponse, RelatedAgentInfoSchema, RemovedResponseSchema, SimulationAgentSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, 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, 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, ThirdPartyMCPServerResponse, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, 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, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentInsertSchema, canDelegateToExternalAgentSchema, canDelegateToTeamAgentInsertSchema, canDelegateToTeamAgentSchema, canRelateToInternalSubAgentSchema, resourceIdSchema };
|