@inkeep/agents-core 0.42.0 → 0.44.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.d.ts +28 -26
- package/dist/auth/auth.js +21 -16
- package/dist/auth/authz/client.d.ts +8 -3
- package/dist/auth/authz/client.js +23 -17
- package/dist/auth/authz/config.d.ts +50 -29
- package/dist/auth/authz/config.js +42 -33
- package/dist/auth/authz/index.d.ts +3 -3
- package/dist/auth/authz/index.js +3 -3
- package/dist/auth/authz/permissions.d.ts +0 -4
- package/dist/auth/authz/permissions.js +9 -13
- package/dist/auth/authz/sync.d.ts +23 -2
- package/dist/auth/authz/sync.js +127 -53
- package/dist/auth/init.d.ts +1 -0
- package/dist/auth/init.js +115 -0
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +3 -6
- package/dist/client-exports.js +4 -7
- package/dist/constants/execution-limits-shared/defaults.d.ts +1 -1
- package/dist/constants/execution-limits-shared/defaults.js +1 -1
- package/dist/constants/execution-limits-shared/index.d.ts +1 -1
- package/dist/constants/otel-attributes.d.ts +5 -0
- package/dist/constants/otel-attributes.js +8 -3
- package/dist/constants/signoz-queries.d.ts +1 -0
- package/dist/constants/signoz-queries.js +2 -1
- package/dist/context/TemplateEngine.d.ts +0 -6
- package/dist/context/TemplateEngine.js +4 -18
- package/dist/credential-stores/keychain-store.d.ts +20 -8
- package/dist/credential-stores/keychain-store.js +107 -43
- package/dist/data-access/index.d.ts +5 -4
- package/dist/data-access/index.js +5 -4
- package/dist/data-access/manage/agentFull.js +70 -25
- package/dist/data-access/manage/agents.d.ts +41 -41
- package/dist/data-access/manage/agents.js +29 -21
- package/dist/data-access/manage/artifactComponents.d.ts +12 -12
- package/dist/data-access/manage/artifactComponents.js +1 -1
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/dataComponents.js +1 -1
- package/dist/data-access/manage/functionTools.d.ts +44 -21
- package/dist/data-access/manage/functionTools.js +34 -22
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +39 -28
- package/dist/data-access/manage/tools.js +73 -31
- package/dist/data-access/manage/triggers.d.ts +27 -1
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- package/dist/data-access/runtime/cascade-delete.d.ts +48 -1
- package/dist/data-access/runtime/cascade-delete.js +52 -2
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/github-work-app-installations.d.ts +261 -0
- package/dist/data-access/runtime/github-work-app-installations.js +457 -0
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/organizations.d.ts +2 -2
- package/dist/data-access/runtime/organizations.js +4 -4
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +533 -402
- package/dist/db/manage/manage-schema.js +38 -27
- package/dist/db/runtime/runtime-schema.d.ts +1021 -177
- package/dist/db/runtime/runtime-schema.js +173 -5
- package/dist/db/utils.d.ts +6 -0
- package/dist/db/utils.js +42 -0
- package/dist/dolt/branch.js +1 -1
- package/dist/dolt/branches-api.js +1 -1
- package/dist/dolt/index.d.ts +2 -2
- package/dist/dolt/index.js +4 -4
- package/dist/dolt/migrate-all-branches.js +6 -1
- package/dist/dolt/migrate-dolt.js +4 -1
- package/dist/dolt/ref-helpers.js +1 -1
- package/dist/dolt/ref-middleware.js +1 -1
- package/dist/dolt/ref-scope.js +1 -1
- package/dist/dolt/schema-sync.d.ts +2 -1
- package/dist/dolt/schema-sync.js +10 -1
- package/dist/env.d.ts +6 -4
- package/dist/env.js +11 -10
- package/dist/index.d.ts +15 -16
- package/dist/index.js +23 -24
- package/dist/types/@napi-rs__keyring/index.d.ts +14 -0
- package/dist/types/entities.d.ts +9 -2
- package/dist/types/index.d.ts +3 -3
- package/dist/types/utility.d.ts +17 -3
- package/dist/types/utility.js +2 -1
- package/dist/utils/JsonTransformer.d.ts +1 -3
- package/dist/utils/JsonTransformer.js +14 -23
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +3 -3
- package/dist/utils/jmespath-utils.d.ts +152 -0
- package/dist/utils/jmespath-utils.js +213 -0
- package/dist/utils/mcp-client.d.ts +1 -1
- package/dist/utils/mcp-client.js +1 -1
- package/dist/utils/signature-validation.d.ts +2 -0
- package/dist/utils/signature-validation.js +3 -0
- package/dist/utils/third-party-mcp-servers/composio-client.d.ts +13 -1
- package/dist/utils/third-party-mcp-servers/composio-client.js +24 -6
- package/dist/utils/third-party-mcp-servers/index.d.ts +2 -2
- package/dist/utils/third-party-mcp-servers/index.js +2 -2
- package/dist/utils/trigger-auth.d.ts +31 -8
- package/dist/utils/trigger-auth.js +121 -13
- package/dist/validation/agentFull.js +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +4 -23
- package/dist/validation/drizzle-schema-helpers.js +3 -30
- package/dist/validation/index.d.ts +3 -5
- package/dist/validation/index.js +5 -7
- package/dist/validation/render-validation.js +19 -0
- package/dist/validation/schemas.d.ts +3675 -1665
- package/dist/validation/schemas.js +409 -94
- package/dist/validation/stream-event-schemas.d.ts +96 -1
- package/dist/validation/stream-event-schemas.js +67 -2
- package/drizzle/manage/0003_tiny_captain_universe.sql +8 -0
- package/drizzle/manage/0004_curious_phil_sheldon.sql +2 -0
- package/drizzle/manage/0005_silent_shatterstar.sql +53 -0
- package/drizzle/manage/0006_fixed_umar.sql +1 -0
- package/drizzle/manage/meta/0003_snapshot.json +3134 -0
- package/drizzle/manage/meta/0004_snapshot.json +3141 -0
- package/drizzle/manage/meta/0005_snapshot.json +3141 -0
- package/drizzle/manage/meta/0006_snapshot.json +3148 -0
- package/drizzle/manage/meta/_journal.json +28 -0
- package/drizzle/runtime/0010_previous_black_knight.sql +84 -0
- package/drizzle/runtime/meta/0010_snapshot.json +3066 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +12 -5
- package/spicedb/schema.zed +114 -0
- package/dist/validation/id-validation.d.ts +0 -24
- package/dist/validation/id-validation.js +0 -52
|
@@ -1,10 +1,12 @@
|
|
|
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 { jmespathString, validateJMESPathSecure, validateRegex } from "../utils/jmespath-utils.js";
|
|
3
4
|
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 { apiKeys, contextCache, conversations, datasetRun, datasetRunConversationRelations, evaluationResult, evaluationRun, ledgerArtifacts, messages, projectMetadata, taskRelations, tasks, triggerInvocations, workAppGitHubInstallations, workAppGitHubMcpToolRepositoryAccess, workAppGitHubProjectRepositoryAccess, workAppGitHubRepositories } from "../db/runtime/runtime-schema.js";
|
|
5
6
|
import { ResolvedRefSchema } from "./dolt-schemas.js";
|
|
6
|
-
import {
|
|
7
|
+
import { createInsertSchema, createSelectSchema, registerFieldSchemas } from "./drizzle-schema-helpers.js";
|
|
7
8
|
import { z } from "@hono/zod-openapi";
|
|
9
|
+
import { parse } from "@babel/parser";
|
|
8
10
|
|
|
9
11
|
//#region src/validation/schemas.ts
|
|
10
12
|
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;
|
|
@@ -14,6 +16,13 @@ const StopWhenSchema = z.object({
|
|
|
14
16
|
}).openapi("StopWhen");
|
|
15
17
|
const AgentStopWhenSchema = StopWhenSchema.pick({ transferCountIs: true }).openapi("AgentStopWhen");
|
|
16
18
|
const SubAgentStopWhenSchema = StopWhenSchema.pick({ stepCountIs: true }).openapi("SubAgentStopWhen");
|
|
19
|
+
const MIN_ID_LENGTH = 1;
|
|
20
|
+
const MAX_ID_LENGTH = 255;
|
|
21
|
+
const URL_SAFE_ID_PATTERN = /^[a-zA-Z0-9\-_.]+$/;
|
|
22
|
+
const ResourceIdSchema = z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).regex(URL_SAFE_ID_PATTERN, { message: "ID must contain only letters, numbers, hyphens, underscores, and dots" }).refine((value) => value !== "new", "Must not use a reserved name \"new\"").openapi({
|
|
23
|
+
description: "Resource identifier",
|
|
24
|
+
example: "resource_789"
|
|
25
|
+
});
|
|
17
26
|
const pageNumber = z.coerce.number().min(1).default(1).openapi("PaginationPageQueryParam");
|
|
18
27
|
const limitNumber = z.coerce.number().min(1).max(100).default(10).openapi("PaginationLimitQueryParam");
|
|
19
28
|
const ModelSettingsSchema = z.object({
|
|
@@ -42,6 +51,16 @@ const FunctionToolConfigSchema = z.object({
|
|
|
42
51
|
dependencies: z.record(z.string(), z.string()).optional(),
|
|
43
52
|
execute: z.union([z.function(), z.string()])
|
|
44
53
|
});
|
|
54
|
+
const omitTenantScope = (schema) => schema.omit({ tenantId: true });
|
|
55
|
+
const omitTimestamps = (schema) => schema.omit({
|
|
56
|
+
createdAt: true,
|
|
57
|
+
updatedAt: true
|
|
58
|
+
});
|
|
59
|
+
const omitGeneratedFields = (schema) => schema.omit({
|
|
60
|
+
id: true,
|
|
61
|
+
createdAt: true,
|
|
62
|
+
updatedAt: true
|
|
63
|
+
});
|
|
45
64
|
const createApiSchema = (schema) => schema.omit({
|
|
46
65
|
tenantId: true,
|
|
47
66
|
projectId: true
|
|
@@ -71,7 +90,7 @@ const createAgentScopedApiUpdateSchema = (schema) => schema.omit({
|
|
|
71
90
|
}).partial();
|
|
72
91
|
const SubAgentSelectSchema = createSelectSchema(subAgents);
|
|
73
92
|
const SubAgentInsertSchema = createInsertSchema(subAgents).extend({
|
|
74
|
-
id:
|
|
93
|
+
id: ResourceIdSchema,
|
|
75
94
|
models: ModelSchema.optional()
|
|
76
95
|
});
|
|
77
96
|
const SubAgentUpdateSchema = SubAgentInsertSchema.partial();
|
|
@@ -80,12 +99,12 @@ const SubAgentApiInsertSchema = createAgentScopedApiInsertSchema(SubAgentInsertS
|
|
|
80
99
|
const SubAgentApiUpdateSchema = createAgentScopedApiUpdateSchema(SubAgentUpdateSchema).openapi("SubAgentUpdate");
|
|
81
100
|
const SubAgentRelationSelectSchema = createSelectSchema(subAgentRelations);
|
|
82
101
|
const SubAgentRelationInsertSchema = createInsertSchema(subAgentRelations).extend({
|
|
83
|
-
id:
|
|
84
|
-
agentId:
|
|
85
|
-
sourceSubAgentId:
|
|
86
|
-
targetSubAgentId:
|
|
87
|
-
externalSubAgentId:
|
|
88
|
-
teamSubAgentId:
|
|
102
|
+
id: ResourceIdSchema,
|
|
103
|
+
agentId: ResourceIdSchema,
|
|
104
|
+
sourceSubAgentId: ResourceIdSchema,
|
|
105
|
+
targetSubAgentId: ResourceIdSchema.optional(),
|
|
106
|
+
externalSubAgentId: ResourceIdSchema.optional(),
|
|
107
|
+
teamSubAgentId: ResourceIdSchema.optional()
|
|
89
108
|
});
|
|
90
109
|
const SubAgentRelationUpdateSchema = SubAgentRelationInsertSchema.partial();
|
|
91
110
|
const SubAgentRelationApiSelectSchema = createAgentScopedApiSchema(SubAgentRelationSelectSchema).openapi("SubAgentRelation");
|
|
@@ -126,22 +145,25 @@ const SubAgentRelationQuerySchema = z.object({
|
|
|
126
145
|
teamSubAgentId: z.string().optional()
|
|
127
146
|
});
|
|
128
147
|
const ExternalSubAgentRelationInsertSchema = createInsertSchema(subAgentRelations).extend({
|
|
129
|
-
id:
|
|
130
|
-
agentId:
|
|
131
|
-
sourceSubAgentId:
|
|
132
|
-
externalSubAgentId:
|
|
148
|
+
id: ResourceIdSchema,
|
|
149
|
+
agentId: ResourceIdSchema,
|
|
150
|
+
sourceSubAgentId: ResourceIdSchema,
|
|
151
|
+
externalSubAgentId: ResourceIdSchema
|
|
133
152
|
});
|
|
134
153
|
const ExternalSubAgentRelationApiInsertSchema = createApiInsertSchema(ExternalSubAgentRelationInsertSchema);
|
|
135
154
|
const AgentSelectSchema = createSelectSchema(agents);
|
|
136
155
|
const DEFAULT_SUB_AGENT_ID_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.";
|
|
137
156
|
const AgentInsertSchema = createInsertSchema(agents, {
|
|
138
|
-
id: () =>
|
|
157
|
+
id: () => ResourceIdSchema,
|
|
139
158
|
name: () => z.string().trim().nonempty().describe("Agent name").openapi({ description: "Agent name" }),
|
|
140
|
-
defaultSubAgentId: () =>
|
|
159
|
+
defaultSubAgentId: () => ResourceIdSchema.clone().nullable().optional().openapi({
|
|
160
|
+
description: DEFAULT_SUB_AGENT_ID_DESCRIPTION,
|
|
161
|
+
example: "my-default-subagent"
|
|
162
|
+
})
|
|
141
163
|
});
|
|
142
164
|
const AgentUpdateSchema = AgentInsertSchema.partial();
|
|
143
165
|
const AgentApiSelectSchema = createApiSchema(AgentSelectSchema).openapi("Agent");
|
|
144
|
-
const AgentApiInsertSchema = createApiInsertSchema(AgentInsertSchema).extend({ id:
|
|
166
|
+
const AgentApiInsertSchema = createApiInsertSchema(AgentInsertSchema).extend({ id: ResourceIdSchema }).openapi("AgentCreate");
|
|
145
167
|
const AgentApiUpdateSchema = createApiUpdateSchema(AgentUpdateSchema).openapi("AgentUpdate");
|
|
146
168
|
const TriggerAuthHeaderInputSchema = z.object({
|
|
147
169
|
name: z.string().min(1).describe("Header name (e.g., X-API-Key, Authorization)"),
|
|
@@ -162,17 +184,178 @@ const TriggerAuthHeaderStoredSchema = z.object({
|
|
|
162
184
|
const TriggerAuthenticationStoredSchema = z.object({ headers: z.array(TriggerAuthHeaderStoredSchema).optional().describe("Array of headers with hashed values") }).openapi("TriggerAuthenticationStored");
|
|
163
185
|
const TriggerAuthenticationSchema = TriggerAuthenticationInputSchema;
|
|
164
186
|
const TriggerOutputTransformSchema = z.object({
|
|
165
|
-
jmespath:
|
|
187
|
+
jmespath: jmespathString().optional(),
|
|
166
188
|
objectTransformation: z.record(z.string(), z.string()).optional().describe("Object transformation mapping")
|
|
167
189
|
}).openapi("TriggerOutputTransform");
|
|
190
|
+
/**
|
|
191
|
+
* Configuration for extracting the webhook signature from an incoming request.
|
|
192
|
+
*
|
|
193
|
+
* The signature can be located in HTTP headers, query parameters, or the request body.
|
|
194
|
+
* Supports prefix stripping and regex extraction for complex signature formats.
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* // GitHub: Extract from header with prefix
|
|
198
|
+
* { source: 'header', key: 'X-Hub-Signature-256', prefix: 'sha256=' }
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* // Stripe: Extract from header using regex
|
|
202
|
+
* { source: 'header', key: 'Stripe-Signature', regex: 'v1=([a-f0-9]+)' }
|
|
203
|
+
*
|
|
204
|
+
* @example
|
|
205
|
+
* // Custom: Extract from body using JMESPath
|
|
206
|
+
* { source: 'body', key: 'metadata.signature' }
|
|
207
|
+
*/
|
|
208
|
+
const SignatureSourceSchema = z.object({
|
|
209
|
+
source: z.enum([
|
|
210
|
+
"header",
|
|
211
|
+
"query",
|
|
212
|
+
"body"
|
|
213
|
+
]).describe("Location of the signature in the incoming request"),
|
|
214
|
+
key: z.string().describe("Key name for the signature (header name, query param, or JMESPath)"),
|
|
215
|
+
prefix: z.string().optional().describe("Optional prefix to strip from signature value (e.g., \"sha256=\", \"v0=\")"),
|
|
216
|
+
regex: z.string().optional().describe("Optional regex pattern to extract signature from value (first capture group used)")
|
|
217
|
+
}).openapi("SignatureSource");
|
|
218
|
+
/**
|
|
219
|
+
* Configuration for a single component that is part of the signed data.
|
|
220
|
+
*
|
|
221
|
+
* Webhook providers often sign multiple pieces of data together (e.g., timestamp + body).
|
|
222
|
+
* Components are extracted from the request and joined in order before verification.
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* // GitHub: Sign only the body
|
|
226
|
+
* { source: 'body', required: true }
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
* // Slack: Sign literal version + timestamp header + body
|
|
230
|
+
* { source: 'literal', value: 'v0', required: true }
|
|
231
|
+
* { source: 'header', key: 'X-Slack-Request-Timestamp', required: true }
|
|
232
|
+
* { source: 'body', required: true }
|
|
233
|
+
*
|
|
234
|
+
* @example
|
|
235
|
+
* // Stripe: Extract timestamp from header using regex
|
|
236
|
+
* { source: 'header', key: 'Stripe-Signature', regex: 't=([0-9]+)', required: true }
|
|
237
|
+
*/
|
|
238
|
+
const SignedComponentSchema = z.object({
|
|
239
|
+
source: z.enum([
|
|
240
|
+
"header",
|
|
241
|
+
"body",
|
|
242
|
+
"literal"
|
|
243
|
+
]).describe("Source of the component: header value, body via JMESPath, or literal string"),
|
|
244
|
+
key: z.string().optional().describe("Key for header name or JMESPath expression (required for header/body sources)"),
|
|
245
|
+
value: z.string().optional().describe("Literal string value (required for literal source)"),
|
|
246
|
+
regex: z.string().optional().describe("Optional regex pattern to extract from component value (first capture group)"),
|
|
247
|
+
required: z.boolean().default(true).describe("If false, missing component results in empty string instead of error")
|
|
248
|
+
}).openapi("SignedComponent");
|
|
249
|
+
/**
|
|
250
|
+
* Configuration for how to join multiple signed components into a single string.
|
|
251
|
+
*
|
|
252
|
+
* Different webhook providers use different separators between components.
|
|
253
|
+
*
|
|
254
|
+
* @example
|
|
255
|
+
* // GitHub/Zendesk: Direct concatenation (empty separator)
|
|
256
|
+
* { strategy: 'concatenate', separator: '' }
|
|
257
|
+
*
|
|
258
|
+
* @example
|
|
259
|
+
* // Slack: Colon separator
|
|
260
|
+
* { strategy: 'concatenate', separator: ':' }
|
|
261
|
+
*
|
|
262
|
+
* @example
|
|
263
|
+
* // Stripe: Dot separator
|
|
264
|
+
* { strategy: 'concatenate', separator: '.' }
|
|
265
|
+
*/
|
|
266
|
+
const ComponentJoinSchema = z.object({
|
|
267
|
+
strategy: z.enum(["concatenate"]).describe("Strategy for joining components"),
|
|
268
|
+
separator: z.string().describe("String to insert between joined components")
|
|
269
|
+
}).openapi("ComponentJoin");
|
|
270
|
+
/**
|
|
271
|
+
* Advanced validation options for fine-grained control over signature verification.
|
|
272
|
+
*
|
|
273
|
+
* These options control edge case behavior and should generally use default values.
|
|
274
|
+
*
|
|
275
|
+
* @example
|
|
276
|
+
* // Strict validation for security-critical webhooks
|
|
277
|
+
* {
|
|
278
|
+
* headerCaseSensitive: true,
|
|
279
|
+
* allowEmptyBody: false,
|
|
280
|
+
* normalizeUnicode: true
|
|
281
|
+
* }
|
|
282
|
+
*/
|
|
283
|
+
const SignatureValidationOptionsSchema = z.object({
|
|
284
|
+
headerCaseSensitive: z.boolean().default(false).describe("If true, header names are matched case-sensitively"),
|
|
285
|
+
allowEmptyBody: z.boolean().default(true).describe("If true, allow empty request body for verification"),
|
|
286
|
+
normalizeUnicode: z.boolean().default(false).describe("If true, normalize Unicode strings to NFC form before signing")
|
|
287
|
+
}).openapi("SignatureValidationOptions");
|
|
288
|
+
/**
|
|
289
|
+
* Complete configuration for webhook HMAC signature verification.
|
|
290
|
+
*
|
|
291
|
+
* Supports flexible, provider-agnostic signature verification for webhooks from
|
|
292
|
+
* GitHub, Slack, Stripe, Zendesk, and other providers.
|
|
293
|
+
*
|
|
294
|
+
* SECURITY: Always use credential references to store signing secrets. Never hardcode
|
|
295
|
+
* secrets in your configuration. Prefer sha256 or stronger algorithms.
|
|
296
|
+
*
|
|
297
|
+
* @example
|
|
298
|
+
* // GitHub webhook verification
|
|
299
|
+
* {
|
|
300
|
+
* algorithm: 'sha256',
|
|
301
|
+
* encoding: 'hex',
|
|
302
|
+
* signature: { source: 'header', key: 'X-Hub-Signature-256', prefix: 'sha256=' },
|
|
303
|
+
* signedComponents: [{ source: 'body', required: true }],
|
|
304
|
+
* componentJoin: { strategy: 'concatenate', separator: '' }
|
|
305
|
+
* }
|
|
306
|
+
*
|
|
307
|
+
* @example
|
|
308
|
+
* // Slack webhook verification with multi-component signing
|
|
309
|
+
* {
|
|
310
|
+
* algorithm: 'sha256',
|
|
311
|
+
* encoding: 'hex',
|
|
312
|
+
* signature: { source: 'header', key: 'X-Slack-Signature', prefix: 'v0=' },
|
|
313
|
+
* signedComponents: [
|
|
314
|
+
* { source: 'literal', value: 'v0', required: true },
|
|
315
|
+
* { source: 'header', key: 'X-Slack-Request-Timestamp', required: true },
|
|
316
|
+
* { source: 'body', required: true }
|
|
317
|
+
* ],
|
|
318
|
+
* componentJoin: { strategy: 'concatenate', separator: ':' }
|
|
319
|
+
* }
|
|
320
|
+
*
|
|
321
|
+
* @example
|
|
322
|
+
* // Stripe webhook verification with regex extraction
|
|
323
|
+
* {
|
|
324
|
+
* algorithm: 'sha256',
|
|
325
|
+
* encoding: 'hex',
|
|
326
|
+
* signature: { source: 'header', key: 'Stripe-Signature', regex: 'v1=([a-f0-9]+)' },
|
|
327
|
+
* signedComponents: [
|
|
328
|
+
* { source: 'header', key: 'Stripe-Signature', regex: 't=([0-9]+)', required: true },
|
|
329
|
+
* { source: 'body', required: true }
|
|
330
|
+
* ],
|
|
331
|
+
* componentJoin: { strategy: 'concatenate', separator: '.' }
|
|
332
|
+
* }
|
|
333
|
+
*/
|
|
334
|
+
const SignatureVerificationConfigSchema = z.object({
|
|
335
|
+
algorithm: z.enum([
|
|
336
|
+
"sha256",
|
|
337
|
+
"sha512",
|
|
338
|
+
"sha384",
|
|
339
|
+
"sha1",
|
|
340
|
+
"md5"
|
|
341
|
+
]).describe("HMAC algorithm to use for signature verification"),
|
|
342
|
+
encoding: z.enum(["hex", "base64"]).describe("Encoding format of the signature (hex or base64)"),
|
|
343
|
+
signature: SignatureSourceSchema.describe("Configuration for extracting the signature"),
|
|
344
|
+
signedComponents: z.array(SignedComponentSchema).min(1).describe("Array of components that are signed (order matters)"),
|
|
345
|
+
componentJoin: ComponentJoinSchema.describe("How to join signed components"),
|
|
346
|
+
validation: SignatureValidationOptionsSchema.optional().describe("Advanced validation options")
|
|
347
|
+
}).openapi("SignatureVerificationConfig");
|
|
168
348
|
const TriggerInvocationStatusEnum = z.enum([
|
|
169
349
|
"pending",
|
|
170
350
|
"success",
|
|
171
351
|
"failed"
|
|
172
352
|
]);
|
|
173
|
-
const TriggerSelectSchema = createSelectSchema(triggers)
|
|
174
|
-
|
|
175
|
-
|
|
353
|
+
const TriggerSelectSchema = registerFieldSchemas(createSelectSchema(triggers).extend({
|
|
354
|
+
signingSecretCredentialReferenceId: z.string().nullable().optional(),
|
|
355
|
+
signatureVerification: SignatureVerificationConfigSchema.nullable().optional()
|
|
356
|
+
}));
|
|
357
|
+
const TriggerInsertSchemaBase = createInsertSchema(triggers, {
|
|
358
|
+
id: () => ResourceIdSchema,
|
|
176
359
|
name: () => z.string().trim().nonempty().describe("Trigger name"),
|
|
177
360
|
description: () => z.string().optional().describe("Trigger description"),
|
|
178
361
|
enabled: () => z.boolean().default(true).describe("Whether the trigger is enabled"),
|
|
@@ -180,27 +363,90 @@ const TriggerInsertSchema = createInsertSchema(triggers, {
|
|
|
180
363
|
outputTransform: () => TriggerOutputTransformSchema.optional(),
|
|
181
364
|
messageTemplate: () => z.string().trim().nonempty().describe("Message template with {{placeholder}} syntax").optional(),
|
|
182
365
|
authentication: () => TriggerAuthenticationInputSchema.optional(),
|
|
183
|
-
|
|
366
|
+
signingSecretCredentialReferenceId: () => z.string().optional().describe("Reference to credential containing signing secret"),
|
|
367
|
+
signatureVerification: () => SignatureVerificationConfigSchema.nullable().optional().describe("Configuration for webhook signature verification")
|
|
184
368
|
});
|
|
185
|
-
const
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
369
|
+
const TriggerInsertSchema = TriggerInsertSchemaBase.superRefine((data, ctx) => {
|
|
370
|
+
const config = data.signatureVerification;
|
|
371
|
+
if (!config) return;
|
|
372
|
+
if (config.signature.regex) {
|
|
373
|
+
const regexResult = validateRegex(config.signature.regex);
|
|
374
|
+
if (!regexResult.valid) ctx.addIssue({
|
|
375
|
+
code: z.ZodIssueCode.custom,
|
|
376
|
+
message: `Invalid regex pattern in signature.regex: ${regexResult.error}`,
|
|
377
|
+
path: [
|
|
378
|
+
"signatureVerification",
|
|
379
|
+
"signature",
|
|
380
|
+
"regex"
|
|
381
|
+
]
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
if (config.signature.source === "body" && config.signature.key) {
|
|
385
|
+
const jmespathResult = validateJMESPathSecure(config.signature.key);
|
|
386
|
+
if (!jmespathResult.valid) ctx.addIssue({
|
|
387
|
+
code: z.ZodIssueCode.custom,
|
|
388
|
+
message: `Invalid JMESPath expression in signature.key: ${jmespathResult.error}`,
|
|
389
|
+
path: [
|
|
390
|
+
"signatureVerification",
|
|
391
|
+
"signature",
|
|
392
|
+
"key"
|
|
393
|
+
]
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
config.signedComponents.forEach((component, index) => {
|
|
397
|
+
if (component.regex) {
|
|
398
|
+
const regexResult = validateRegex(component.regex);
|
|
399
|
+
if (!regexResult.valid) ctx.addIssue({
|
|
400
|
+
code: z.ZodIssueCode.custom,
|
|
401
|
+
message: `Invalid regex pattern in signedComponents[${index}].regex: ${regexResult.error}`,
|
|
402
|
+
path: [
|
|
403
|
+
"signatureVerification",
|
|
404
|
+
"signedComponents",
|
|
405
|
+
index,
|
|
406
|
+
"regex"
|
|
407
|
+
]
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
if (component.source === "body" && component.key) {
|
|
411
|
+
const jmespathResult = validateJMESPathSecure(component.key);
|
|
412
|
+
if (!jmespathResult.valid) ctx.addIssue({
|
|
413
|
+
code: z.ZodIssueCode.custom,
|
|
414
|
+
message: `Invalid JMESPath expression in signedComponents[${index}].key: ${jmespathResult.error}`,
|
|
415
|
+
path: [
|
|
416
|
+
"signatureVerification",
|
|
417
|
+
"signedComponents",
|
|
418
|
+
index,
|
|
419
|
+
"key"
|
|
420
|
+
]
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
if (component.value && component.source !== "literal") {
|
|
424
|
+
if (component.value.includes(".") || component.value.includes("[")) {
|
|
425
|
+
const jmespathResult = validateJMESPathSecure(component.value);
|
|
426
|
+
if (!jmespathResult.valid) ctx.addIssue({
|
|
427
|
+
code: z.ZodIssueCode.custom,
|
|
428
|
+
message: `Invalid JMESPath expression in signedComponents[${index}].value: ${jmespathResult.error}`,
|
|
429
|
+
path: [
|
|
430
|
+
"signatureVerification",
|
|
431
|
+
"signedComponents",
|
|
432
|
+
index,
|
|
433
|
+
"value"
|
|
434
|
+
]
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
});
|
|
195
439
|
});
|
|
440
|
+
const TriggerUpdateSchema = TriggerInsertSchemaBase.extend({ enabled: z.boolean().optional().describe("Whether the trigger is enabled") }).partial();
|
|
196
441
|
const TriggerApiSelectSchema = createAgentScopedApiSchema(TriggerSelectSchema).openapi("Trigger");
|
|
197
|
-
const TriggerApiInsertSchema = createAgentScopedApiInsertSchema(TriggerInsertSchema).extend({ id:
|
|
442
|
+
const TriggerApiInsertSchema = createAgentScopedApiInsertSchema(TriggerInsertSchema).extend({ id: ResourceIdSchema.optional() }).openapi("TriggerCreate");
|
|
198
443
|
const TriggerApiUpdateSchema = TriggerUpdateSchema.openapi("TriggerUpdate");
|
|
444
|
+
const TriggerWithWebhookUrlSchema = TriggerApiSelectSchema.extend({ webhookUrl: z.string().describe("Fully qualified webhook URL for this trigger") }).openapi("TriggerWithWebhookUrl");
|
|
199
445
|
const TriggerInvocationSelectSchema = createSelectSchema(triggerInvocations);
|
|
200
446
|
const TriggerInvocationInsertSchema = createInsertSchema(triggerInvocations, {
|
|
201
|
-
id: () =>
|
|
202
|
-
triggerId: () =>
|
|
203
|
-
conversationId: () =>
|
|
447
|
+
id: () => ResourceIdSchema,
|
|
448
|
+
triggerId: () => ResourceIdSchema,
|
|
449
|
+
conversationId: () => ResourceIdSchema.optional(),
|
|
204
450
|
status: () => TriggerInvocationStatusEnum.default("pending"),
|
|
205
451
|
requestPayload: () => z.record(z.string(), z.unknown()).describe("Original webhook payload"),
|
|
206
452
|
transformedPayload: () => z.record(z.string(), z.unknown()).optional().describe("Transformed payload"),
|
|
@@ -208,12 +454,12 @@ const TriggerInvocationInsertSchema = createInsertSchema(triggerInvocations, {
|
|
|
208
454
|
});
|
|
209
455
|
const TriggerInvocationUpdateSchema = TriggerInvocationInsertSchema.partial();
|
|
210
456
|
const TriggerInvocationApiSelectSchema = createAgentScopedApiSchema(TriggerInvocationSelectSchema).openapi("TriggerInvocation");
|
|
211
|
-
const TriggerInvocationApiInsertSchema = createAgentScopedApiInsertSchema(TriggerInvocationInsertSchema).extend({ id:
|
|
457
|
+
const TriggerInvocationApiInsertSchema = createAgentScopedApiInsertSchema(TriggerInvocationInsertSchema).extend({ id: ResourceIdSchema }).openapi("TriggerInvocationCreate");
|
|
212
458
|
const TriggerInvocationApiUpdateSchema = createAgentScopedApiUpdateSchema(TriggerInvocationUpdateSchema).openapi("TriggerInvocationUpdate");
|
|
213
459
|
const TaskSelectSchema = createSelectSchema(tasks);
|
|
214
460
|
const TaskInsertSchema = createInsertSchema(tasks).extend({
|
|
215
|
-
id:
|
|
216
|
-
conversationId:
|
|
461
|
+
id: ResourceIdSchema,
|
|
462
|
+
conversationId: ResourceIdSchema.optional(),
|
|
217
463
|
ref: ResolvedRefSchema
|
|
218
464
|
});
|
|
219
465
|
const TaskUpdateSchema = TaskInsertSchema.partial();
|
|
@@ -222,9 +468,9 @@ const TaskApiInsertSchema = createApiInsertSchema(TaskInsertSchema);
|
|
|
222
468
|
const TaskApiUpdateSchema = createApiUpdateSchema(TaskUpdateSchema);
|
|
223
469
|
const TaskRelationSelectSchema = createSelectSchema(taskRelations);
|
|
224
470
|
const TaskRelationInsertSchema = createInsertSchema(taskRelations).extend({
|
|
225
|
-
id:
|
|
226
|
-
parentTaskId:
|
|
227
|
-
childTaskId:
|
|
471
|
+
id: ResourceIdSchema,
|
|
472
|
+
parentTaskId: ResourceIdSchema,
|
|
473
|
+
childTaskId: ResourceIdSchema
|
|
228
474
|
});
|
|
229
475
|
const TaskRelationUpdateSchema = TaskRelationInsertSchema.partial();
|
|
230
476
|
const TaskRelationApiSelectSchema = createApiSchema(TaskRelationSelectSchema);
|
|
@@ -262,7 +508,7 @@ const McpToolDefinitionSchema = z.object({
|
|
|
262
508
|
});
|
|
263
509
|
const ToolSelectSchema = createSelectSchema(tools);
|
|
264
510
|
const ToolInsertSchema = createInsertSchema(tools).extend({
|
|
265
|
-
id:
|
|
511
|
+
id: ResourceIdSchema,
|
|
266
512
|
imageUrl: imageUrlSchema,
|
|
267
513
|
config: z.object({
|
|
268
514
|
type: z.literal("mcp"),
|
|
@@ -291,8 +537,8 @@ const ToolInsertSchema = createInsertSchema(tools).extend({
|
|
|
291
537
|
});
|
|
292
538
|
const ConversationSelectSchema = createSelectSchema(conversations);
|
|
293
539
|
const ConversationInsertSchema = createInsertSchema(conversations).extend({
|
|
294
|
-
id:
|
|
295
|
-
contextConfigId:
|
|
540
|
+
id: ResourceIdSchema,
|
|
541
|
+
contextConfigId: ResourceIdSchema.optional(),
|
|
296
542
|
ref: ResolvedRefSchema
|
|
297
543
|
});
|
|
298
544
|
const ConversationUpdateSchema = ConversationInsertSchema.partial();
|
|
@@ -301,9 +547,9 @@ const ConversationApiInsertSchema = createApiInsertSchema(ConversationInsertSche
|
|
|
301
547
|
const ConversationApiUpdateSchema = createApiUpdateSchema(ConversationUpdateSchema).openapi("ConversationUpdate");
|
|
302
548
|
const MessageSelectSchema = createSelectSchema(messages);
|
|
303
549
|
const MessageInsertSchema = createInsertSchema(messages).extend({
|
|
304
|
-
id:
|
|
305
|
-
conversationId:
|
|
306
|
-
taskId:
|
|
550
|
+
id: ResourceIdSchema,
|
|
551
|
+
conversationId: ResourceIdSchema,
|
|
552
|
+
taskId: ResourceIdSchema.optional()
|
|
307
553
|
});
|
|
308
554
|
const MessageUpdateSchema = MessageInsertSchema.partial();
|
|
309
555
|
const MessageApiSelectSchema = createApiSchema(MessageSelectSchema).openapi("Message");
|
|
@@ -316,80 +562,80 @@ const ContextCacheApiSelectSchema = createApiSchema(ContextCacheSelectSchema);
|
|
|
316
562
|
const ContextCacheApiInsertSchema = createApiInsertSchema(ContextCacheInsertSchema);
|
|
317
563
|
const ContextCacheApiUpdateSchema = createApiUpdateSchema(ContextCacheUpdateSchema);
|
|
318
564
|
const DatasetRunSelectSchema = createSelectSchema(datasetRun);
|
|
319
|
-
const DatasetRunInsertSchema = createInsertSchema(datasetRun).extend({ id:
|
|
565
|
+
const DatasetRunInsertSchema = createInsertSchema(datasetRun).extend({ id: ResourceIdSchema });
|
|
320
566
|
const DatasetRunUpdateSchema = DatasetRunInsertSchema.partial();
|
|
321
567
|
const DatasetRunApiSelectSchema = createApiSchema(DatasetRunSelectSchema).openapi("DatasetRun");
|
|
322
568
|
const DatasetRunApiInsertSchema = createApiInsertSchema(DatasetRunInsertSchema).omit({ id: true }).openapi("DatasetRunCreate");
|
|
323
569
|
const DatasetRunApiUpdateSchema = createApiUpdateSchema(DatasetRunUpdateSchema).omit({ id: true }).openapi("DatasetRunUpdate");
|
|
324
570
|
const DatasetRunConversationRelationSelectSchema = createSelectSchema(datasetRunConversationRelations);
|
|
325
|
-
const DatasetRunConversationRelationInsertSchema = createInsertSchema(datasetRunConversationRelations).extend({ id:
|
|
571
|
+
const DatasetRunConversationRelationInsertSchema = createInsertSchema(datasetRunConversationRelations).extend({ id: ResourceIdSchema });
|
|
326
572
|
const DatasetRunConversationRelationUpdateSchema = DatasetRunConversationRelationInsertSchema.partial();
|
|
327
573
|
const DatasetRunConversationRelationApiSelectSchema = createApiSchema(DatasetRunConversationRelationSelectSchema).openapi("DatasetRunConversationRelation");
|
|
328
574
|
const DatasetRunConversationRelationApiInsertSchema = createApiInsertSchema(DatasetRunConversationRelationInsertSchema).omit({ id: true }).openapi("DatasetRunConversationRelationCreate");
|
|
329
575
|
const DatasetRunConversationRelationApiUpdateSchema = createApiUpdateSchema(DatasetRunConversationRelationUpdateSchema).omit({ id: true }).openapi("DatasetRunConversationRelationUpdate");
|
|
330
576
|
const EvaluationResultSelectSchema = createSelectSchema(evaluationResult);
|
|
331
|
-
const EvaluationResultInsertSchema = createInsertSchema(evaluationResult).extend({ id:
|
|
577
|
+
const EvaluationResultInsertSchema = createInsertSchema(evaluationResult).extend({ id: ResourceIdSchema });
|
|
332
578
|
const EvaluationResultUpdateSchema = EvaluationResultInsertSchema.partial();
|
|
333
579
|
const EvaluationResultApiSelectSchema = createApiSchema(EvaluationResultSelectSchema).openapi("EvaluationResult");
|
|
334
580
|
const EvaluationResultApiInsertSchema = createApiInsertSchema(EvaluationResultInsertSchema).omit({ id: true }).openapi("EvaluationResultCreate");
|
|
335
581
|
const EvaluationResultApiUpdateSchema = createApiUpdateSchema(EvaluationResultUpdateSchema).omit({ id: true }).openapi("EvaluationResultUpdate");
|
|
336
582
|
const EvaluationRunSelectSchema = createSelectSchema(evaluationRun);
|
|
337
|
-
const EvaluationRunInsertSchema = createInsertSchema(evaluationRun).extend({ id:
|
|
583
|
+
const EvaluationRunInsertSchema = createInsertSchema(evaluationRun).extend({ id: ResourceIdSchema });
|
|
338
584
|
const EvaluationRunUpdateSchema = EvaluationRunInsertSchema.partial();
|
|
339
585
|
const EvaluationRunApiSelectSchema = createApiSchema(EvaluationRunSelectSchema).openapi("EvaluationRun");
|
|
340
586
|
const EvaluationRunApiInsertSchema = createApiInsertSchema(EvaluationRunInsertSchema).omit({ id: true }).openapi("EvaluationRunCreate");
|
|
341
587
|
const EvaluationRunApiUpdateSchema = createApiUpdateSchema(EvaluationRunUpdateSchema).omit({ id: true }).openapi("EvaluationRunUpdate");
|
|
342
588
|
const EvaluationRunConfigSelectSchema = createSelectSchema(evaluationRunConfig);
|
|
343
|
-
const EvaluationRunConfigInsertSchema = createInsertSchema(evaluationRunConfig).extend({ id:
|
|
589
|
+
const EvaluationRunConfigInsertSchema = createInsertSchema(evaluationRunConfig).extend({ id: ResourceIdSchema });
|
|
344
590
|
const EvaluationRunConfigUpdateSchema = EvaluationRunConfigInsertSchema.partial();
|
|
345
591
|
const EvaluationRunConfigApiSelectSchema = createApiSchema(EvaluationRunConfigSelectSchema).openapi("EvaluationRunConfig");
|
|
346
592
|
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
593
|
const EvaluationRunConfigApiUpdateSchema = createApiUpdateSchema(EvaluationRunConfigUpdateSchema).omit({ id: true }).extend({ suiteConfigIds: z.array(z.string()).optional() }).openapi("EvaluationRunConfigUpdate");
|
|
348
594
|
const EvaluationRunConfigWithSuiteConfigsApiSelectSchema = EvaluationRunConfigApiSelectSchema.extend({ suiteConfigIds: z.array(z.string()) }).openapi("EvaluationRunConfigWithSuiteConfigs");
|
|
349
595
|
const EvaluationJobConfigSelectSchema = createSelectSchema(evaluationJobConfig);
|
|
350
|
-
const EvaluationJobConfigInsertSchema = createInsertSchema(evaluationJobConfig).extend({ id:
|
|
596
|
+
const EvaluationJobConfigInsertSchema = createInsertSchema(evaluationJobConfig).extend({ id: ResourceIdSchema });
|
|
351
597
|
const EvaluationJobConfigUpdateSchema = EvaluationJobConfigInsertSchema.partial();
|
|
352
598
|
const EvaluationJobConfigApiSelectSchema = createApiSchema(EvaluationJobConfigSelectSchema).openapi("EvaluationJobConfig");
|
|
353
599
|
const EvaluationJobConfigApiInsertSchema = createApiInsertSchema(EvaluationJobConfigInsertSchema).omit({ id: true }).extend({ evaluatorIds: z.array(z.string()).min(1, "At least one evaluator is required") }).openapi("EvaluationJobConfigCreate");
|
|
354
600
|
const EvaluationJobConfigApiUpdateSchema = createApiUpdateSchema(EvaluationJobConfigUpdateSchema).omit({ id: true }).openapi("EvaluationJobConfigUpdate");
|
|
355
601
|
const EvaluationSuiteConfigSelectSchema = createSelectSchema(evaluationSuiteConfig);
|
|
356
|
-
const EvaluationSuiteConfigInsertSchema = createInsertSchema(evaluationSuiteConfig).extend({ id:
|
|
602
|
+
const EvaluationSuiteConfigInsertSchema = createInsertSchema(evaluationSuiteConfig).extend({ id: ResourceIdSchema });
|
|
357
603
|
const EvaluationSuiteConfigUpdateSchema = EvaluationSuiteConfigInsertSchema.partial();
|
|
358
604
|
const EvaluationSuiteConfigApiSelectSchema = createApiSchema(EvaluationSuiteConfigSelectSchema).openapi("EvaluationSuiteConfig");
|
|
359
605
|
const EvaluationSuiteConfigApiInsertSchema = createApiInsertSchema(EvaluationSuiteConfigInsertSchema).omit({ id: true }).extend({ evaluatorIds: z.array(z.string()).min(1, "At least one evaluator is required") }).openapi("EvaluationSuiteConfigCreate");
|
|
360
606
|
const EvaluationSuiteConfigApiUpdateSchema = createApiUpdateSchema(EvaluationSuiteConfigUpdateSchema).omit({ id: true }).extend({ evaluatorIds: z.array(z.string()).optional() }).openapi("EvaluationSuiteConfigUpdate");
|
|
361
607
|
const EvaluationRunConfigEvaluationSuiteConfigRelationSelectSchema = createSelectSchema(evaluationRunConfigEvaluationSuiteConfigRelations);
|
|
362
|
-
const EvaluationRunConfigEvaluationSuiteConfigRelationInsertSchema = createInsertSchema(evaluationRunConfigEvaluationSuiteConfigRelations).extend({ id:
|
|
608
|
+
const EvaluationRunConfigEvaluationSuiteConfigRelationInsertSchema = createInsertSchema(evaluationRunConfigEvaluationSuiteConfigRelations).extend({ id: ResourceIdSchema });
|
|
363
609
|
const EvaluationRunConfigEvaluationSuiteConfigRelationUpdateSchema = EvaluationRunConfigEvaluationSuiteConfigRelationInsertSchema.partial();
|
|
364
610
|
const EvaluationRunConfigEvaluationSuiteConfigRelationApiSelectSchema = createApiSchema(EvaluationRunConfigEvaluationSuiteConfigRelationSelectSchema).openapi("EvaluationRunConfigEvaluationSuiteConfigRelation");
|
|
365
611
|
const EvaluationRunConfigEvaluationSuiteConfigRelationApiInsertSchema = createApiInsertSchema(EvaluationRunConfigEvaluationSuiteConfigRelationInsertSchema).omit({ id: true }).openapi("EvaluationRunConfigEvaluationSuiteConfigRelationCreate");
|
|
366
612
|
const EvaluationRunConfigEvaluationSuiteConfigRelationApiUpdateSchema = createApiUpdateSchema(EvaluationRunConfigEvaluationSuiteConfigRelationUpdateSchema).omit({ id: true }).openapi("EvaluationRunConfigEvaluationSuiteConfigRelationUpdate");
|
|
367
613
|
const EvaluationJobConfigEvaluatorRelationSelectSchema = createSelectSchema(evaluationJobConfigEvaluatorRelations);
|
|
368
|
-
const EvaluationJobConfigEvaluatorRelationInsertSchema = createInsertSchema(evaluationJobConfigEvaluatorRelations).extend({ id:
|
|
614
|
+
const EvaluationJobConfigEvaluatorRelationInsertSchema = createInsertSchema(evaluationJobConfigEvaluatorRelations).extend({ id: ResourceIdSchema });
|
|
369
615
|
const EvaluationJobConfigEvaluatorRelationUpdateSchema = EvaluationJobConfigEvaluatorRelationInsertSchema.partial();
|
|
370
616
|
const EvaluationJobConfigEvaluatorRelationApiSelectSchema = createApiSchema(EvaluationJobConfigEvaluatorRelationSelectSchema).openapi("EvaluationJobConfigEvaluatorRelation");
|
|
371
617
|
const EvaluationJobConfigEvaluatorRelationApiInsertSchema = createApiInsertSchema(EvaluationJobConfigEvaluatorRelationInsertSchema).omit({ id: true }).openapi("EvaluationJobConfigEvaluatorRelationCreate");
|
|
372
618
|
const EvaluationJobConfigEvaluatorRelationApiUpdateSchema = createApiUpdateSchema(EvaluationJobConfigEvaluatorRelationUpdateSchema).omit({ id: true }).openapi("EvaluationJobConfigEvaluatorRelationUpdate");
|
|
373
619
|
const EvaluationSuiteConfigEvaluatorRelationSelectSchema = createSelectSchema(evaluationSuiteConfigEvaluatorRelations);
|
|
374
|
-
const EvaluationSuiteConfigEvaluatorRelationInsertSchema = createInsertSchema(evaluationSuiteConfigEvaluatorRelations).extend({ id:
|
|
620
|
+
const EvaluationSuiteConfigEvaluatorRelationInsertSchema = createInsertSchema(evaluationSuiteConfigEvaluatorRelations).extend({ id: ResourceIdSchema });
|
|
375
621
|
const EvaluationSuiteConfigEvaluatorRelationUpdateSchema = EvaluationSuiteConfigEvaluatorRelationInsertSchema.partial();
|
|
376
622
|
const EvaluationSuiteConfigEvaluatorRelationApiSelectSchema = createApiSchema(EvaluationSuiteConfigEvaluatorRelationSelectSchema).openapi("EvaluationSuiteConfigEvaluatorRelation");
|
|
377
623
|
const EvaluationSuiteConfigEvaluatorRelationApiInsertSchema = createApiInsertSchema(EvaluationSuiteConfigEvaluatorRelationInsertSchema).omit({ id: true }).openapi("EvaluationSuiteConfigEvaluatorRelationCreate");
|
|
378
624
|
const EvaluationSuiteConfigEvaluatorRelationApiUpdateSchema = createApiUpdateSchema(EvaluationSuiteConfigEvaluatorRelationUpdateSchema).omit({ id: true }).openapi("EvaluationSuiteConfigEvaluatorRelationUpdate");
|
|
379
625
|
const EvaluatorSelectSchema = createSelectSchema(evaluator);
|
|
380
|
-
const EvaluatorInsertSchema = createInsertSchema(evaluator).extend({ id:
|
|
626
|
+
const EvaluatorInsertSchema = createInsertSchema(evaluator).extend({ id: ResourceIdSchema });
|
|
381
627
|
const EvaluatorUpdateSchema = EvaluatorInsertSchema.partial();
|
|
382
628
|
const EvaluatorApiSelectSchema = createApiSchema(EvaluatorSelectSchema).openapi("Evaluator");
|
|
383
629
|
const EvaluatorApiInsertSchema = createApiInsertSchema(EvaluatorInsertSchema).omit({ id: true }).openapi("EvaluatorCreate");
|
|
384
630
|
const EvaluatorApiUpdateSchema = createApiUpdateSchema(EvaluatorUpdateSchema).omit({ id: true }).openapi("EvaluatorUpdate");
|
|
385
631
|
const DatasetSelectSchema = createSelectSchema(dataset);
|
|
386
|
-
const DatasetInsertSchema = createInsertSchema(dataset).extend({ id:
|
|
632
|
+
const DatasetInsertSchema = createInsertSchema(dataset).extend({ id: ResourceIdSchema });
|
|
387
633
|
const DatasetUpdateSchema = DatasetInsertSchema.partial();
|
|
388
634
|
const DatasetApiSelectSchema = createApiSchema(DatasetSelectSchema).openapi("Dataset");
|
|
389
635
|
const DatasetApiInsertSchema = createApiInsertSchema(DatasetInsertSchema).omit({ id: true }).openapi("DatasetCreate");
|
|
390
636
|
const DatasetApiUpdateSchema = createApiUpdateSchema(DatasetUpdateSchema).omit({ id: true }).openapi("DatasetUpdate");
|
|
391
637
|
const DatasetItemSelectSchema = createSelectSchema(datasetItem);
|
|
392
|
-
const DatasetItemInsertSchema = createInsertSchema(datasetItem).extend({ id:
|
|
638
|
+
const DatasetItemInsertSchema = createInsertSchema(datasetItem).extend({ id: ResourceIdSchema });
|
|
393
639
|
const DatasetItemUpdateSchema = DatasetItemInsertSchema.partial();
|
|
394
640
|
const DatasetItemApiSelectSchema = createApiSchema(DatasetItemSelectSchema).openapi("DatasetItem");
|
|
395
641
|
const DatasetItemApiInsertSchema = createApiInsertSchema(DatasetItemInsertSchema).omit({
|
|
@@ -432,19 +678,19 @@ const TriggerEvaluationJobSchema = z.object({
|
|
|
432
678
|
jobFilters: EvaluationJobFilterCriteriaSchema.nullable().optional()
|
|
433
679
|
}).openapi("TriggerEvaluationJob");
|
|
434
680
|
const DatasetRunConfigSelectSchema = createSelectSchema(datasetRunConfig);
|
|
435
|
-
const DatasetRunConfigInsertSchema = createInsertSchema(datasetRunConfig).extend({ id:
|
|
681
|
+
const DatasetRunConfigInsertSchema = createInsertSchema(datasetRunConfig).extend({ id: ResourceIdSchema });
|
|
436
682
|
const DatasetRunConfigUpdateSchema = DatasetRunConfigInsertSchema.partial();
|
|
437
683
|
const DatasetRunConfigApiSelectSchema = createApiSchema(DatasetRunConfigSelectSchema).openapi("DatasetRunConfig");
|
|
438
684
|
const DatasetRunConfigApiInsertSchema = createApiInsertSchema(DatasetRunConfigInsertSchema).omit({ id: true }).openapi("DatasetRunConfigCreate");
|
|
439
685
|
const DatasetRunConfigApiUpdateSchema = createApiUpdateSchema(DatasetRunConfigUpdateSchema).omit({ id: true }).openapi("DatasetRunConfigUpdate");
|
|
440
686
|
const DatasetRunConfigAgentRelationSelectSchema = createSelectSchema(datasetRunConfigAgentRelations);
|
|
441
|
-
const DatasetRunConfigAgentRelationInsertSchema = createInsertSchema(datasetRunConfigAgentRelations).extend({ id:
|
|
687
|
+
const DatasetRunConfigAgentRelationInsertSchema = createInsertSchema(datasetRunConfigAgentRelations).extend({ id: ResourceIdSchema });
|
|
442
688
|
const DatasetRunConfigAgentRelationUpdateSchema = DatasetRunConfigAgentRelationInsertSchema.partial();
|
|
443
689
|
const DatasetRunConfigAgentRelationApiSelectSchema = createApiSchema(DatasetRunConfigAgentRelationSelectSchema).openapi("DatasetRunConfigAgentRelation");
|
|
444
690
|
const DatasetRunConfigAgentRelationApiInsertSchema = createApiInsertSchema(DatasetRunConfigAgentRelationInsertSchema).omit({ id: true }).openapi("DatasetRunConfigAgentRelationCreate");
|
|
445
691
|
const DatasetRunConfigAgentRelationApiUpdateSchema = createApiUpdateSchema(DatasetRunConfigAgentRelationUpdateSchema).omit({ id: true }).openapi("DatasetRunConfigAgentRelationUpdate");
|
|
446
692
|
const DataComponentSelectSchema = createSelectSchema(dataComponents);
|
|
447
|
-
const DataComponentInsertSchema = createInsertSchema(dataComponents).extend({ id:
|
|
693
|
+
const DataComponentInsertSchema = createInsertSchema(dataComponents).extend({ id: ResourceIdSchema });
|
|
448
694
|
const DataComponentBaseSchema = DataComponentInsertSchema.omit({
|
|
449
695
|
createdAt: true,
|
|
450
696
|
updatedAt: true
|
|
@@ -465,7 +711,7 @@ const SubAgentDataComponentApiInsertSchema = SubAgentDataComponentInsertSchema.o
|
|
|
465
711
|
});
|
|
466
712
|
const SubAgentDataComponentApiUpdateSchema = createAgentScopedApiUpdateSchema(SubAgentDataComponentUpdateSchema);
|
|
467
713
|
const ArtifactComponentSelectSchema = createSelectSchema(artifactComponents);
|
|
468
|
-
const ArtifactComponentInsertSchema = createInsertSchema(artifactComponents).extend({ id:
|
|
714
|
+
const ArtifactComponentInsertSchema = createInsertSchema(artifactComponents).extend({ id: ResourceIdSchema });
|
|
469
715
|
const ArtifactComponentUpdateSchema = ArtifactComponentInsertSchema.partial();
|
|
470
716
|
const ArtifactComponentApiSelectSchema = createApiSchema(ArtifactComponentSelectSchema).openapi("ArtifactComponent");
|
|
471
717
|
const ArtifactComponentApiInsertSchema = ArtifactComponentInsertSchema.omit({
|
|
@@ -477,9 +723,9 @@ const ArtifactComponentApiInsertSchema = ArtifactComponentInsertSchema.omit({
|
|
|
477
723
|
const ArtifactComponentApiUpdateSchema = createApiUpdateSchema(ArtifactComponentUpdateSchema).openapi("ArtifactComponentUpdate");
|
|
478
724
|
const SubAgentArtifactComponentSelectSchema = createSelectSchema(subAgentArtifactComponents);
|
|
479
725
|
const SubAgentArtifactComponentInsertSchema = createInsertSchema(subAgentArtifactComponents).extend({
|
|
480
|
-
id:
|
|
481
|
-
subAgentId:
|
|
482
|
-
artifactComponentId:
|
|
726
|
+
id: ResourceIdSchema,
|
|
727
|
+
subAgentId: ResourceIdSchema,
|
|
728
|
+
artifactComponentId: ResourceIdSchema
|
|
483
729
|
});
|
|
484
730
|
const SubAgentArtifactComponentUpdateSchema = SubAgentArtifactComponentInsertSchema.partial();
|
|
485
731
|
const SubAgentArtifactComponentApiSelectSchema = createAgentScopedApiSchema(SubAgentArtifactComponentSelectSchema);
|
|
@@ -491,7 +737,7 @@ const SubAgentArtifactComponentApiInsertSchema = SubAgentArtifactComponentInsert
|
|
|
491
737
|
});
|
|
492
738
|
const SubAgentArtifactComponentApiUpdateSchema = createAgentScopedApiUpdateSchema(SubAgentArtifactComponentUpdateSchema);
|
|
493
739
|
const ExternalAgentSelectSchema = createSelectSchema(externalAgents).extend({ credentialReferenceId: z.string().nullable().optional() });
|
|
494
|
-
const ExternalAgentInsertSchema = createInsertSchema(externalAgents).extend({ id:
|
|
740
|
+
const ExternalAgentInsertSchema = createInsertSchema(externalAgents).extend({ id: ResourceIdSchema });
|
|
495
741
|
const ExternalAgentUpdateSchema = ExternalAgentInsertSchema.partial();
|
|
496
742
|
const ExternalAgentApiSelectSchema = createApiSchema(ExternalAgentSelectSchema).openapi("ExternalAgent");
|
|
497
743
|
const ExternalAgentApiInsertSchema = createApiInsertSchema(ExternalAgentInsertSchema).openapi("ExternalAgentCreate");
|
|
@@ -499,8 +745,8 @@ const ExternalAgentApiUpdateSchema = createApiUpdateSchema(ExternalAgentUpdateSc
|
|
|
499
745
|
const AllAgentSchema = z.discriminatedUnion("type", [SubAgentApiSelectSchema.extend({ type: z.literal("internal") }), ExternalAgentApiSelectSchema.extend({ type: z.literal("external") })]);
|
|
500
746
|
const ApiKeySelectSchema = createSelectSchema(apiKeys);
|
|
501
747
|
const ApiKeyInsertSchema = createInsertSchema(apiKeys).extend({
|
|
502
|
-
id:
|
|
503
|
-
agentId:
|
|
748
|
+
id: ResourceIdSchema,
|
|
749
|
+
agentId: ResourceIdSchema
|
|
504
750
|
});
|
|
505
751
|
const ApiKeyUpdateSchema = ApiKeyInsertSchema.partial().omit({
|
|
506
752
|
tenantId: true,
|
|
@@ -532,9 +778,9 @@ const ApiKeyApiInsertSchema = ApiKeyInsertSchema.omit({
|
|
|
532
778
|
const ApiKeyApiUpdateSchema = ApiKeyUpdateSchema.openapi("ApiKeyUpdate");
|
|
533
779
|
const CredentialReferenceSelectSchema = createSelectSchema(credentialReferences);
|
|
534
780
|
const CredentialReferenceInsertSchema = createInsertSchema(credentialReferences).extend({
|
|
535
|
-
id:
|
|
781
|
+
id: ResourceIdSchema,
|
|
536
782
|
type: z.string(),
|
|
537
|
-
credentialStoreId:
|
|
783
|
+
credentialStoreId: ResourceIdSchema,
|
|
538
784
|
retrievalParams: z.record(z.string(), z.unknown()).nullish()
|
|
539
785
|
});
|
|
540
786
|
const CredentialReferenceUpdateSchema = CredentialReferenceInsertSchema.partial();
|
|
@@ -622,16 +868,16 @@ const ToolApiSelectSchema = createApiSchema(ToolSelectSchema).openapi("Tool");
|
|
|
622
868
|
const ToolApiInsertSchema = createApiInsertSchema(ToolInsertSchema).openapi("ToolCreate");
|
|
623
869
|
const ToolApiUpdateSchema = createApiUpdateSchema(ToolUpdateSchema).openapi("ToolUpdate");
|
|
624
870
|
const FunctionToolSelectSchema = createSelectSchema(functionTools);
|
|
625
|
-
const FunctionToolInsertSchema = createInsertSchema(functionTools).extend({ id:
|
|
871
|
+
const FunctionToolInsertSchema = createInsertSchema(functionTools).extend({ id: ResourceIdSchema });
|
|
626
872
|
const FunctionToolUpdateSchema = FunctionToolInsertSchema.partial();
|
|
627
|
-
const FunctionToolApiSelectSchema = createApiSchema(FunctionToolSelectSchema).openapi("FunctionTool");
|
|
873
|
+
const FunctionToolApiSelectSchema = createApiSchema(FunctionToolSelectSchema).extend({ relationshipId: z.string().optional() }).openapi("FunctionTool");
|
|
628
874
|
const FunctionToolApiInsertSchema = createAgentScopedApiInsertSchema(FunctionToolInsertSchema).openapi("FunctionToolCreate");
|
|
629
875
|
const FunctionToolApiUpdateSchema = createApiUpdateSchema(FunctionToolUpdateSchema).openapi("FunctionToolUpdate");
|
|
630
876
|
const SubAgentFunctionToolRelationSelectSchema = createSelectSchema(subAgentFunctionToolRelations);
|
|
631
877
|
const SubAgentFunctionToolRelationInsertSchema = createInsertSchema(subAgentFunctionToolRelations).extend({
|
|
632
|
-
id:
|
|
633
|
-
subAgentId:
|
|
634
|
-
functionToolId:
|
|
878
|
+
id: ResourceIdSchema,
|
|
879
|
+
subAgentId: ResourceIdSchema,
|
|
880
|
+
functionToolId: ResourceIdSchema
|
|
635
881
|
});
|
|
636
882
|
const SubAgentFunctionToolRelationApiSelectSchema = createAgentScopedApiSchema(SubAgentFunctionToolRelationSelectSchema).openapi("SubAgentFunctionToolRelation");
|
|
637
883
|
const SubAgentFunctionToolRelationApiInsertSchema = SubAgentFunctionToolRelationInsertSchema.omit({
|
|
@@ -643,10 +889,38 @@ const SubAgentFunctionToolRelationApiInsertSchema = SubAgentFunctionToolRelation
|
|
|
643
889
|
updatedAt: true
|
|
644
890
|
}).openapi("SubAgentFunctionToolRelationCreate");
|
|
645
891
|
const FunctionSelectSchema = createSelectSchema(functions);
|
|
646
|
-
const FunctionInsertSchema = createInsertSchema(functions).extend({ id:
|
|
892
|
+
const FunctionInsertSchema = createInsertSchema(functions).extend({ id: ResourceIdSchema });
|
|
647
893
|
const FunctionUpdateSchema = FunctionInsertSchema.partial();
|
|
648
894
|
const FunctionApiSelectSchema = createApiSchema(FunctionSelectSchema).openapi("Function");
|
|
649
|
-
const
|
|
895
|
+
const validateExecuteCode = (val, ctx) => {
|
|
896
|
+
try {
|
|
897
|
+
const isAnonymousFunction = /^(async\s+)?function(\s+)?\(/.test(val);
|
|
898
|
+
if (isAnonymousFunction) val = `(${val})`;
|
|
899
|
+
const { body } = parse(val, { sourceType: "module" }).program;
|
|
900
|
+
for (const node of body) {
|
|
901
|
+
if (node.type === "ExportDefaultDeclaration") throw SyntaxError("Export default declarations are not supported. Provide a single function instead.");
|
|
902
|
+
if (node.type === "ExportNamedDeclaration") throw SyntaxError("Export declarations are not supported. Provide a single function instead.");
|
|
903
|
+
}
|
|
904
|
+
const functionsCount = body.filter((node) => {
|
|
905
|
+
if (node.type === "FunctionDeclaration") return true;
|
|
906
|
+
if (node.type === "ExpressionStatement") return node.expression.type === (isAnonymousFunction ? "FunctionExpression" : "ArrowFunctionExpression");
|
|
907
|
+
return false;
|
|
908
|
+
}).length;
|
|
909
|
+
if (!functionsCount) throw new SyntaxError("Must contain exactly one function.");
|
|
910
|
+
if (functionsCount > 1) throw new SyntaxError(`Must contain exactly one function (found ${functionsCount}).`);
|
|
911
|
+
} catch (error) {
|
|
912
|
+
let message = error instanceof Error ? error.message : JSON.stringify(error);
|
|
913
|
+
if (message.startsWith("'return' outside of function. (")) message = "Top-level return is not allowed.";
|
|
914
|
+
else if (message.startsWith("Unexpected token, expected \"")) message = "TypeScript syntax is not supported. Use plain JavaScript.";
|
|
915
|
+
else if (message.startsWith("This experimental syntax requires enabling one of the following parser plugin(s): \"jsx\", \"flow\", \"typescript\". (")) message = "JSX syntax is not supported. Use plain JavaScript.";
|
|
916
|
+
ctx.addIssue({
|
|
917
|
+
code: "custom",
|
|
918
|
+
message,
|
|
919
|
+
input: val
|
|
920
|
+
});
|
|
921
|
+
}
|
|
922
|
+
};
|
|
923
|
+
const FunctionApiInsertSchema = createApiInsertSchema(FunctionInsertSchema).openapi("FunctionCreate").extend({ executeCode: z.string().trim().nonempty().superRefine(validateExecuteCode) });
|
|
650
924
|
const FunctionApiUpdateSchema = createApiUpdateSchema(FunctionUpdateSchema).openapi("FunctionUpdate");
|
|
651
925
|
const FetchConfigSchema = z.object({
|
|
652
926
|
url: z.string().min(1, "URL is required"),
|
|
@@ -677,7 +951,7 @@ const ContextConfigSelectSchema = createSelectSchema(contextConfigs).extend({ he
|
|
|
677
951
|
description: "JSON Schema for validating request headers"
|
|
678
952
|
}) });
|
|
679
953
|
const ContextConfigInsertSchema = createInsertSchema(contextConfigs).extend({
|
|
680
|
-
id:
|
|
954
|
+
id: ResourceIdSchema.optional(),
|
|
681
955
|
headersSchema: z.any().nullable().optional().openapi({
|
|
682
956
|
type: "object",
|
|
683
957
|
description: "JSON Schema for validating request headers"
|
|
@@ -696,9 +970,9 @@ const ContextConfigApiInsertSchema = createApiInsertSchema(ContextConfigInsertSc
|
|
|
696
970
|
const ContextConfigApiUpdateSchema = createApiUpdateSchema(ContextConfigUpdateSchema).omit({ agentId: true }).openapi("ContextConfigUpdate");
|
|
697
971
|
const SubAgentToolRelationSelectSchema = createSelectSchema(subAgentToolRelations);
|
|
698
972
|
const SubAgentToolRelationInsertSchema = createInsertSchema(subAgentToolRelations).extend({
|
|
699
|
-
id:
|
|
700
|
-
subAgentId:
|
|
701
|
-
toolId:
|
|
973
|
+
id: ResourceIdSchema,
|
|
974
|
+
subAgentId: ResourceIdSchema,
|
|
975
|
+
toolId: ResourceIdSchema,
|
|
702
976
|
selectedTools: z.array(z.string()).nullish(),
|
|
703
977
|
headers: z.record(z.string(), z.string()).nullish(),
|
|
704
978
|
toolPolicies: z.record(z.string(), z.object({ needsApproval: z.boolean().optional() })).nullish()
|
|
@@ -709,9 +983,9 @@ const SubAgentToolRelationApiInsertSchema = createAgentScopedApiInsertSchema(Sub
|
|
|
709
983
|
const SubAgentToolRelationApiUpdateSchema = createAgentScopedApiUpdateSchema(SubAgentToolRelationUpdateSchema).openapi("SubAgentToolRelationUpdate");
|
|
710
984
|
const SubAgentExternalAgentRelationSelectSchema = createSelectSchema(subAgentExternalAgentRelations);
|
|
711
985
|
const SubAgentExternalAgentRelationInsertSchema = createInsertSchema(subAgentExternalAgentRelations).extend({
|
|
712
|
-
id:
|
|
713
|
-
subAgentId:
|
|
714
|
-
externalAgentId:
|
|
986
|
+
id: ResourceIdSchema,
|
|
987
|
+
subAgentId: ResourceIdSchema,
|
|
988
|
+
externalAgentId: ResourceIdSchema,
|
|
715
989
|
headers: z.record(z.string(), z.string()).nullish()
|
|
716
990
|
});
|
|
717
991
|
const SubAgentExternalAgentRelationUpdateSchema = SubAgentExternalAgentRelationInsertSchema.partial();
|
|
@@ -723,9 +997,9 @@ const SubAgentExternalAgentRelationApiInsertSchema = createAgentScopedApiInsertS
|
|
|
723
997
|
const SubAgentExternalAgentRelationApiUpdateSchema = createAgentScopedApiUpdateSchema(SubAgentExternalAgentRelationUpdateSchema).openapi("SubAgentExternalAgentRelationUpdate");
|
|
724
998
|
const SubAgentTeamAgentRelationSelectSchema = createSelectSchema(subAgentTeamAgentRelations);
|
|
725
999
|
const SubAgentTeamAgentRelationInsertSchema = createInsertSchema(subAgentTeamAgentRelations).extend({
|
|
726
|
-
id:
|
|
727
|
-
subAgentId:
|
|
728
|
-
targetAgentId:
|
|
1000
|
+
id: ResourceIdSchema,
|
|
1001
|
+
subAgentId: ResourceIdSchema,
|
|
1002
|
+
targetAgentId: ResourceIdSchema,
|
|
729
1003
|
headers: z.record(z.string(), z.string()).nullish()
|
|
730
1004
|
});
|
|
731
1005
|
const SubAgentTeamAgentRelationUpdateSchema = SubAgentTeamAgentRelationInsertSchema.partial();
|
|
@@ -1014,6 +1288,11 @@ const TriggerInvocationListResponse = z.object({
|
|
|
1014
1288
|
data: z.array(TriggerInvocationApiSelectSchema),
|
|
1015
1289
|
pagination: PaginationSchema
|
|
1016
1290
|
}).openapi("TriggerInvocationListResponse");
|
|
1291
|
+
const TriggerWithWebhookUrlResponse = z.object({ data: TriggerWithWebhookUrlSchema }).openapi("TriggerWithWebhookUrlResponse");
|
|
1292
|
+
const TriggerWithWebhookUrlListResponse = z.object({
|
|
1293
|
+
data: z.array(TriggerWithWebhookUrlSchema),
|
|
1294
|
+
pagination: PaginationSchema
|
|
1295
|
+
}).openapi("TriggerWithWebhookUrlListResponse");
|
|
1017
1296
|
const SubAgentDataComponentResponse = z.object({ data: SubAgentDataComponentApiSelectSchema }).openapi("SubAgentDataComponentResponse");
|
|
1018
1297
|
const SubAgentArtifactComponentResponse = z.object({ data: SubAgentArtifactComponentApiSelectSchema }).openapi("SubAgentArtifactComponentResponse");
|
|
1019
1298
|
const SubAgentDataComponentListResponse = z.object({
|
|
@@ -1098,13 +1377,13 @@ const SubAgentId = z.string().openapi("SubAgentIdPathParam", {
|
|
|
1098
1377
|
example: "sub_agent_123"
|
|
1099
1378
|
});
|
|
1100
1379
|
const TenantParamsSchema = z.object({ tenantId: TenantId });
|
|
1101
|
-
const TenantIdParamsSchema = TenantParamsSchema.extend({ id:
|
|
1380
|
+
const TenantIdParamsSchema = TenantParamsSchema.extend({ id: ResourceIdSchema });
|
|
1102
1381
|
const TenantProjectParamsSchema = TenantParamsSchema.extend({ projectId: ProjectId });
|
|
1103
|
-
const TenantProjectIdParamsSchema = TenantProjectParamsSchema.extend({ id:
|
|
1382
|
+
const TenantProjectIdParamsSchema = TenantProjectParamsSchema.extend({ id: ResourceIdSchema });
|
|
1104
1383
|
const TenantProjectAgentParamsSchema = TenantProjectParamsSchema.extend({ agentId: AgentId });
|
|
1105
|
-
const TenantProjectAgentIdParamsSchema = TenantProjectAgentParamsSchema.extend({ id:
|
|
1384
|
+
const TenantProjectAgentIdParamsSchema = TenantProjectAgentParamsSchema.extend({ id: ResourceIdSchema });
|
|
1106
1385
|
const TenantProjectAgentSubAgentParamsSchema = TenantProjectAgentParamsSchema.extend({ subAgentId: SubAgentId });
|
|
1107
|
-
const TenantProjectAgentSubAgentIdParamsSchema = TenantProjectAgentSubAgentParamsSchema.extend({ id:
|
|
1386
|
+
const TenantProjectAgentSubAgentIdParamsSchema = TenantProjectAgentSubAgentParamsSchema.extend({ id: ResourceIdSchema });
|
|
1108
1387
|
const RefQueryParamSchema = z.object({ ref: z.string().optional().describe("Branch name, tag name, or commit hash to query from") });
|
|
1109
1388
|
const PaginationQueryParamsSchema = z.object({
|
|
1110
1389
|
page: pageNumber,
|
|
@@ -1126,6 +1405,42 @@ const ThirdPartyMCPServerResponse = z.object({ data: PrebuiltMCPServerSchema.nul
|
|
|
1126
1405
|
const PaginationWithRefQueryParamsSchema = PaginationQueryParamsSchema.merge(RefQueryParamSchema);
|
|
1127
1406
|
const ProjectMetadataSelectSchema = createSelectSchema(projectMetadata);
|
|
1128
1407
|
const ProjectMetadataInsertSchema = createInsertSchema(projectMetadata).omit({ createdAt: true });
|
|
1408
|
+
const WorkAppGitHubInstallationStatusSchema = z.enum([
|
|
1409
|
+
"pending",
|
|
1410
|
+
"active",
|
|
1411
|
+
"suspended",
|
|
1412
|
+
"disconnected"
|
|
1413
|
+
]);
|
|
1414
|
+
const WorkAppGitHubAccountTypeSchema = z.enum(["Organization", "User"]);
|
|
1415
|
+
const WorkAppGitHubInstallationSelectSchema = createSelectSchema(workAppGitHubInstallations);
|
|
1416
|
+
const WorkAppGitHubInstallationInsertSchema = createInsertSchema(workAppGitHubInstallations).omit({
|
|
1417
|
+
createdAt: true,
|
|
1418
|
+
updatedAt: true,
|
|
1419
|
+
status: true
|
|
1420
|
+
}).extend({
|
|
1421
|
+
accountType: WorkAppGitHubAccountTypeSchema,
|
|
1422
|
+
status: WorkAppGitHubInstallationStatusSchema.optional().default("active")
|
|
1423
|
+
});
|
|
1424
|
+
const WorkAppGithubInstallationApiSelectSchema = omitTenantScope(WorkAppGitHubInstallationSelectSchema);
|
|
1425
|
+
const WorkAppGitHubInstallationApiInsertSchema = omitGeneratedFields(WorkAppGitHubInstallationInsertSchema);
|
|
1426
|
+
const WorkAppGitHubRepositorySelectSchema = createSelectSchema(workAppGitHubRepositories);
|
|
1427
|
+
const WorkAppGitHubRepositoryInsertSchema = omitTimestamps(createInsertSchema(workAppGitHubRepositories));
|
|
1428
|
+
const WorkAppGitHubRepositoryApiInsertSchema = omitGeneratedFields(WorkAppGitHubRepositoryInsertSchema);
|
|
1429
|
+
const WorkAppGitHubProjectRepositoryAccessSelectSchema = createSelectSchema(workAppGitHubProjectRepositoryAccess);
|
|
1430
|
+
const WorkAppGitHubMcpToolRepositoryAccessSelectSchema = createSelectSchema(workAppGitHubMcpToolRepositoryAccess);
|
|
1431
|
+
const WorkAppGitHubAccessModeSchema = z.enum(["all", "selected"]);
|
|
1432
|
+
const WorkAppGitHubAccessSetRequestSchema = z.object({
|
|
1433
|
+
mode: WorkAppGitHubAccessModeSchema,
|
|
1434
|
+
repositoryIds: z.array(z.string()).optional().describe("Internal repository IDs (required when mode=\"selected\")")
|
|
1435
|
+
});
|
|
1436
|
+
const WorkAppGitHubAccessSetResponseSchema = z.object({
|
|
1437
|
+
mode: WorkAppGitHubAccessModeSchema,
|
|
1438
|
+
repositoryCount: z.number()
|
|
1439
|
+
});
|
|
1440
|
+
const WorkAppGitHubAccessGetResponseSchema = z.object({
|
|
1441
|
+
mode: WorkAppGitHubAccessModeSchema,
|
|
1442
|
+
repositories: z.array(WorkAppGitHubRepositorySelectSchema)
|
|
1443
|
+
});
|
|
1129
1444
|
|
|
1130
1445
|
//#endregion
|
|
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 };
|
|
1446
|
+
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, ComponentJoinSchema, 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, ResourceIdSchema, SignatureSourceSchema, SignatureValidationOptionsSchema, SignatureVerificationConfigSchema, SignedComponentSchema, 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, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, URL_SAFE_ID_PATTERN, WorkAppGitHubAccessGetResponseSchema, WorkAppGitHubAccessModeSchema, WorkAppGitHubAccessSetRequestSchema, WorkAppGitHubAccessSetResponseSchema, WorkAppGitHubAccountTypeSchema, WorkAppGitHubInstallationApiInsertSchema, WorkAppGitHubInstallationInsertSchema, WorkAppGitHubInstallationSelectSchema, WorkAppGitHubInstallationStatusSchema, WorkAppGitHubMcpToolRepositoryAccessSelectSchema, WorkAppGitHubProjectRepositoryAccessSelectSchema, WorkAppGitHubRepositoryApiInsertSchema, WorkAppGitHubRepositoryInsertSchema, WorkAppGitHubRepositorySelectSchema, WorkAppGithubInstallationApiSelectSchema, canDelegateToExternalAgentInsertSchema, canDelegateToExternalAgentSchema, canDelegateToTeamAgentInsertSchema, canDelegateToTeamAgentSchema, canRelateToInternalSubAgentSchema };
|