@inkeep/agents-core 0.42.0 → 0.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/auth/auth.d.ts +24 -24
  2. package/dist/auth/auth.js +17 -13
  3. package/dist/auth/authz/client.d.ts +9 -3
  4. package/dist/auth/authz/client.js +24 -17
  5. package/dist/auth/authz/config.d.ts +51 -24
  6. package/dist/auth/authz/config.js +44 -27
  7. package/dist/auth/authz/index.d.ts +3 -3
  8. package/dist/auth/authz/index.js +3 -3
  9. package/dist/auth/authz/permissions.d.ts +0 -4
  10. package/dist/auth/authz/permissions.js +13 -13
  11. package/dist/auth/authz/sync.d.ts +23 -2
  12. package/dist/auth/authz/sync.js +136 -52
  13. package/dist/auth/permissions.d.ts +9 -9
  14. package/dist/client-exports.d.ts +3 -2
  15. package/dist/client-exports.js +3 -2
  16. package/dist/constants/execution-limits-shared/defaults.d.ts +1 -1
  17. package/dist/constants/execution-limits-shared/defaults.js +1 -1
  18. package/dist/constants/execution-limits-shared/index.d.ts +1 -1
  19. package/dist/context/TemplateEngine.d.ts +0 -6
  20. package/dist/context/TemplateEngine.js +4 -18
  21. package/dist/credential-stores/keychain-store.d.ts +20 -8
  22. package/dist/credential-stores/keychain-store.js +107 -43
  23. package/dist/data-access/index.d.ts +3 -3
  24. package/dist/data-access/index.js +3 -3
  25. package/dist/data-access/manage/agentFull.js +28 -24
  26. package/dist/data-access/manage/agents.d.ts +41 -41
  27. package/dist/data-access/manage/agents.js +29 -21
  28. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  29. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  30. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  31. package/dist/data-access/manage/functionTools.d.ts +42 -19
  32. package/dist/data-access/manage/functionTools.js +34 -22
  33. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  34. package/dist/data-access/manage/subAgentRelations.d.ts +36 -36
  35. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  36. package/dist/data-access/manage/subAgents.d.ts +15 -15
  37. package/dist/data-access/manage/tools.d.ts +40 -34
  38. package/dist/data-access/manage/tools.js +53 -30
  39. package/dist/data-access/manage/triggers.d.ts +27 -1
  40. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  41. package/dist/data-access/runtime/conversations.d.ts +31 -31
  42. package/dist/data-access/runtime/messages.d.ts +9 -9
  43. package/dist/data-access/runtime/organizations.d.ts +2 -2
  44. package/dist/data-access/runtime/organizations.js +2 -2
  45. package/dist/data-access/runtime/tasks.d.ts +7 -7
  46. package/dist/db/manage/manage-schema.d.ts +516 -402
  47. package/dist/db/manage/manage-schema.js +37 -27
  48. package/dist/db/runtime/runtime-schema.d.ts +181 -181
  49. package/dist/db/utils.d.ts +6 -0
  50. package/dist/db/utils.js +42 -0
  51. package/dist/dolt/index.d.ts +2 -2
  52. package/dist/dolt/index.js +2 -2
  53. package/dist/dolt/migrate-all-branches.js +5 -0
  54. package/dist/dolt/migrate-dolt.js +4 -1
  55. package/dist/dolt/schema-sync.d.ts +2 -1
  56. package/dist/dolt/schema-sync.js +10 -1
  57. package/dist/index.d.ts +10 -10
  58. package/dist/index.js +10 -10
  59. package/dist/types/@napi-rs__keyring/index.d.ts +14 -0
  60. package/dist/types/utility.d.ts +1 -1
  61. package/dist/types/utility.js +2 -1
  62. package/dist/utils/JsonTransformer.d.ts +1 -3
  63. package/dist/utils/JsonTransformer.js +14 -23
  64. package/dist/utils/index.d.ts +3 -3
  65. package/dist/utils/index.js +3 -3
  66. package/dist/utils/jmespath-utils.d.ts +152 -0
  67. package/dist/utils/jmespath-utils.js +213 -0
  68. package/dist/utils/mcp-client.d.ts +1 -1
  69. package/dist/utils/mcp-client.js +1 -1
  70. package/dist/utils/signature-validation.d.ts +2 -0
  71. package/dist/utils/signature-validation.js +3 -0
  72. package/dist/utils/third-party-mcp-servers/composio-client.d.ts +13 -1
  73. package/dist/utils/third-party-mcp-servers/composio-client.js +24 -6
  74. package/dist/utils/third-party-mcp-servers/index.d.ts +2 -2
  75. package/dist/utils/third-party-mcp-servers/index.js +2 -2
  76. package/dist/utils/trigger-auth.d.ts +31 -8
  77. package/dist/utils/trigger-auth.js +121 -13
  78. package/dist/validation/dolt-schemas.d.ts +1 -1
  79. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  80. package/dist/validation/index.d.ts +3 -3
  81. package/dist/validation/index.js +3 -3
  82. package/dist/validation/render-validation.js +19 -0
  83. package/dist/validation/schemas.d.ts +2502 -2285
  84. package/dist/validation/schemas.js +246 -16
  85. package/dist/validation/stream-event-schemas.d.ts +96 -1
  86. package/dist/validation/stream-event-schemas.js +67 -2
  87. package/drizzle/manage/0003_tiny_captain_universe.sql +8 -0
  88. package/drizzle/manage/0004_curious_phil_sheldon.sql +2 -0
  89. package/drizzle/manage/0005_silent_shatterstar.sql +53 -0
  90. package/drizzle/manage/meta/0003_snapshot.json +3134 -0
  91. package/drizzle/manage/meta/0004_snapshot.json +3141 -0
  92. package/drizzle/manage/meta/0005_snapshot.json +3141 -0
  93. package/drizzle/manage/meta/_journal.json +21 -0
  94. package/package.json +9 -4
  95. package/spicedb/schema.zed +114 -0
@@ -1,5 +1,6 @@
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
5
  import { apiKeys, contextCache, conversations, datasetRun, datasetRunConversationRelations, evaluationResult, evaluationRun, ledgerArtifacts, messages, projectMetadata, taskRelations, tasks, triggerInvocations } from "../db/runtime/runtime-schema.js";
5
6
  import { ResolvedRefSchema } from "./dolt-schemas.js";
@@ -162,16 +163,177 @@ const TriggerAuthHeaderStoredSchema = z.object({
162
163
  const TriggerAuthenticationStoredSchema = z.object({ headers: z.array(TriggerAuthHeaderStoredSchema).optional().describe("Array of headers with hashed values") }).openapi("TriggerAuthenticationStored");
163
164
  const TriggerAuthenticationSchema = TriggerAuthenticationInputSchema;
164
165
  const TriggerOutputTransformSchema = z.object({
165
- jmespath: z.string().optional().describe("JMESPath expression for payload transformation"),
166
+ jmespath: jmespathString().optional(),
166
167
  objectTransformation: z.record(z.string(), z.string()).optional().describe("Object transformation mapping")
167
168
  }).openapi("TriggerOutputTransform");
169
+ /**
170
+ * Configuration for extracting the webhook signature from an incoming request.
171
+ *
172
+ * The signature can be located in HTTP headers, query parameters, or the request body.
173
+ * Supports prefix stripping and regex extraction for complex signature formats.
174
+ *
175
+ * @example
176
+ * // GitHub: Extract from header with prefix
177
+ * { source: 'header', key: 'X-Hub-Signature-256', prefix: 'sha256=' }
178
+ *
179
+ * @example
180
+ * // Stripe: Extract from header using regex
181
+ * { source: 'header', key: 'Stripe-Signature', regex: 'v1=([a-f0-9]+)' }
182
+ *
183
+ * @example
184
+ * // Custom: Extract from body using JMESPath
185
+ * { source: 'body', key: 'metadata.signature' }
186
+ */
187
+ const SignatureSourceSchema = z.object({
188
+ source: z.enum([
189
+ "header",
190
+ "query",
191
+ "body"
192
+ ]).describe("Location of the signature in the incoming request"),
193
+ key: z.string().describe("Key name for the signature (header name, query param, or JMESPath)"),
194
+ prefix: z.string().optional().describe("Optional prefix to strip from signature value (e.g., \"sha256=\", \"v0=\")"),
195
+ regex: z.string().optional().describe("Optional regex pattern to extract signature from value (first capture group used)")
196
+ }).openapi("SignatureSource");
197
+ /**
198
+ * Configuration for a single component that is part of the signed data.
199
+ *
200
+ * Webhook providers often sign multiple pieces of data together (e.g., timestamp + body).
201
+ * Components are extracted from the request and joined in order before verification.
202
+ *
203
+ * @example
204
+ * // GitHub: Sign only the body
205
+ * { source: 'body', required: true }
206
+ *
207
+ * @example
208
+ * // Slack: Sign literal version + timestamp header + body
209
+ * { source: 'literal', value: 'v0', required: true }
210
+ * { source: 'header', key: 'X-Slack-Request-Timestamp', required: true }
211
+ * { source: 'body', required: true }
212
+ *
213
+ * @example
214
+ * // Stripe: Extract timestamp from header using regex
215
+ * { source: 'header', key: 'Stripe-Signature', regex: 't=([0-9]+)', required: true }
216
+ */
217
+ const SignedComponentSchema = z.object({
218
+ source: z.enum([
219
+ "header",
220
+ "body",
221
+ "literal"
222
+ ]).describe("Source of the component: header value, body via JMESPath, or literal string"),
223
+ key: z.string().optional().describe("Key for header name or JMESPath expression (required for header/body sources)"),
224
+ value: z.string().optional().describe("Literal string value (required for literal source)"),
225
+ regex: z.string().optional().describe("Optional regex pattern to extract from component value (first capture group)"),
226
+ required: z.boolean().default(true).describe("If false, missing component results in empty string instead of error")
227
+ }).openapi("SignedComponent");
228
+ /**
229
+ * Configuration for how to join multiple signed components into a single string.
230
+ *
231
+ * Different webhook providers use different separators between components.
232
+ *
233
+ * @example
234
+ * // GitHub/Zendesk: Direct concatenation (empty separator)
235
+ * { strategy: 'concatenate', separator: '' }
236
+ *
237
+ * @example
238
+ * // Slack: Colon separator
239
+ * { strategy: 'concatenate', separator: ':' }
240
+ *
241
+ * @example
242
+ * // Stripe: Dot separator
243
+ * { strategy: 'concatenate', separator: '.' }
244
+ */
245
+ const ComponentJoinSchema = z.object({
246
+ strategy: z.enum(["concatenate"]).describe("Strategy for joining components"),
247
+ separator: z.string().describe("String to insert between joined components")
248
+ }).openapi("ComponentJoin");
249
+ /**
250
+ * Advanced validation options for fine-grained control over signature verification.
251
+ *
252
+ * These options control edge case behavior and should generally use default values.
253
+ *
254
+ * @example
255
+ * // Strict validation for security-critical webhooks
256
+ * {
257
+ * headerCaseSensitive: true,
258
+ * allowEmptyBody: false,
259
+ * normalizeUnicode: true
260
+ * }
261
+ */
262
+ const SignatureValidationOptionsSchema = z.object({
263
+ headerCaseSensitive: z.boolean().default(false).describe("If true, header names are matched case-sensitively"),
264
+ allowEmptyBody: z.boolean().default(true).describe("If true, allow empty request body for verification"),
265
+ normalizeUnicode: z.boolean().default(false).describe("If true, normalize Unicode strings to NFC form before signing")
266
+ }).openapi("SignatureValidationOptions");
267
+ /**
268
+ * Complete configuration for webhook HMAC signature verification.
269
+ *
270
+ * Supports flexible, provider-agnostic signature verification for webhooks from
271
+ * GitHub, Slack, Stripe, Zendesk, and other providers.
272
+ *
273
+ * SECURITY: Always use credential references to store signing secrets. Never hardcode
274
+ * secrets in your configuration. Prefer sha256 or stronger algorithms.
275
+ *
276
+ * @example
277
+ * // GitHub webhook verification
278
+ * {
279
+ * algorithm: 'sha256',
280
+ * encoding: 'hex',
281
+ * signature: { source: 'header', key: 'X-Hub-Signature-256', prefix: 'sha256=' },
282
+ * signedComponents: [{ source: 'body', required: true }],
283
+ * componentJoin: { strategy: 'concatenate', separator: '' }
284
+ * }
285
+ *
286
+ * @example
287
+ * // Slack webhook verification with multi-component signing
288
+ * {
289
+ * algorithm: 'sha256',
290
+ * encoding: 'hex',
291
+ * signature: { source: 'header', key: 'X-Slack-Signature', prefix: 'v0=' },
292
+ * signedComponents: [
293
+ * { source: 'literal', value: 'v0', required: true },
294
+ * { source: 'header', key: 'X-Slack-Request-Timestamp', required: true },
295
+ * { source: 'body', required: true }
296
+ * ],
297
+ * componentJoin: { strategy: 'concatenate', separator: ':' }
298
+ * }
299
+ *
300
+ * @example
301
+ * // Stripe webhook verification with regex extraction
302
+ * {
303
+ * algorithm: 'sha256',
304
+ * encoding: 'hex',
305
+ * signature: { source: 'header', key: 'Stripe-Signature', regex: 'v1=([a-f0-9]+)' },
306
+ * signedComponents: [
307
+ * { source: 'header', key: 'Stripe-Signature', regex: 't=([0-9]+)', required: true },
308
+ * { source: 'body', required: true }
309
+ * ],
310
+ * componentJoin: { strategy: 'concatenate', separator: '.' }
311
+ * }
312
+ */
313
+ const SignatureVerificationConfigSchema = z.object({
314
+ algorithm: z.enum([
315
+ "sha256",
316
+ "sha512",
317
+ "sha384",
318
+ "sha1",
319
+ "md5"
320
+ ]).describe("HMAC algorithm to use for signature verification"),
321
+ encoding: z.enum(["hex", "base64"]).describe("Encoding format of the signature (hex or base64)"),
322
+ signature: SignatureSourceSchema.describe("Configuration for extracting the signature"),
323
+ signedComponents: z.array(SignedComponentSchema).min(1).describe("Array of components that are signed (order matters)"),
324
+ componentJoin: ComponentJoinSchema.describe("How to join signed components"),
325
+ validation: SignatureValidationOptionsSchema.optional().describe("Advanced validation options")
326
+ }).openapi("SignatureVerificationConfig");
168
327
  const TriggerInvocationStatusEnum = z.enum([
169
328
  "pending",
170
329
  "success",
171
330
  "failed"
172
331
  ]);
173
- const TriggerSelectSchema = createSelectSchema(triggers);
174
- const TriggerInsertSchema = createInsertSchema(triggers, {
332
+ const TriggerSelectSchema = registerFieldSchemas(createSelectSchema(triggers).extend({
333
+ signingSecretCredentialReferenceId: z.string().nullable().optional(),
334
+ signatureVerification: SignatureVerificationConfigSchema.nullable().optional()
335
+ }));
336
+ const TriggerInsertSchemaBase = createInsertSchema(triggers, {
175
337
  id: () => resourceIdSchema,
176
338
  name: () => z.string().trim().nonempty().describe("Trigger name"),
177
339
  description: () => z.string().optional().describe("Trigger description"),
@@ -180,22 +342,85 @@ const TriggerInsertSchema = createInsertSchema(triggers, {
180
342
  outputTransform: () => TriggerOutputTransformSchema.optional(),
181
343
  messageTemplate: () => z.string().trim().nonempty().describe("Message template with {{placeholder}} syntax").optional(),
182
344
  authentication: () => TriggerAuthenticationInputSchema.optional(),
183
- signingSecret: () => z.string().optional().describe("HMAC-SHA256 signing secret")
345
+ signingSecretCredentialReferenceId: () => z.string().optional().describe("Reference to credential containing signing secret"),
346
+ signatureVerification: () => SignatureVerificationConfigSchema.nullable().optional().describe("Configuration for webhook signature verification")
184
347
  });
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")
348
+ const TriggerInsertSchema = TriggerInsertSchemaBase.superRefine((data, ctx) => {
349
+ const config = data.signatureVerification;
350
+ if (!config) return;
351
+ if (config.signature.regex) {
352
+ const regexResult = validateRegex(config.signature.regex);
353
+ if (!regexResult.valid) ctx.addIssue({
354
+ code: z.ZodIssueCode.custom,
355
+ message: `Invalid regex pattern in signature.regex: ${regexResult.error}`,
356
+ path: [
357
+ "signatureVerification",
358
+ "signature",
359
+ "regex"
360
+ ]
361
+ });
362
+ }
363
+ if (config.signature.source === "body" && config.signature.key) {
364
+ const jmespathResult = validateJMESPathSecure(config.signature.key);
365
+ if (!jmespathResult.valid) ctx.addIssue({
366
+ code: z.ZodIssueCode.custom,
367
+ message: `Invalid JMESPath expression in signature.key: ${jmespathResult.error}`,
368
+ path: [
369
+ "signatureVerification",
370
+ "signature",
371
+ "key"
372
+ ]
373
+ });
374
+ }
375
+ config.signedComponents.forEach((component, index) => {
376
+ if (component.regex) {
377
+ const regexResult = validateRegex(component.regex);
378
+ if (!regexResult.valid) ctx.addIssue({
379
+ code: z.ZodIssueCode.custom,
380
+ message: `Invalid regex pattern in signedComponents[${index}].regex: ${regexResult.error}`,
381
+ path: [
382
+ "signatureVerification",
383
+ "signedComponents",
384
+ index,
385
+ "regex"
386
+ ]
387
+ });
388
+ }
389
+ if (component.source === "body" && component.key) {
390
+ const jmespathResult = validateJMESPathSecure(component.key);
391
+ if (!jmespathResult.valid) ctx.addIssue({
392
+ code: z.ZodIssueCode.custom,
393
+ message: `Invalid JMESPath expression in signedComponents[${index}].key: ${jmespathResult.error}`,
394
+ path: [
395
+ "signatureVerification",
396
+ "signedComponents",
397
+ index,
398
+ "key"
399
+ ]
400
+ });
401
+ }
402
+ if (component.value && component.source !== "literal") {
403
+ if (component.value.includes(".") || component.value.includes("[")) {
404
+ const jmespathResult = validateJMESPathSecure(component.value);
405
+ if (!jmespathResult.valid) ctx.addIssue({
406
+ code: z.ZodIssueCode.custom,
407
+ message: `Invalid JMESPath expression in signedComponents[${index}].value: ${jmespathResult.error}`,
408
+ path: [
409
+ "signatureVerification",
410
+ "signedComponents",
411
+ index,
412
+ "value"
413
+ ]
414
+ });
415
+ }
416
+ }
417
+ });
195
418
  });
419
+ const TriggerUpdateSchema = TriggerInsertSchemaBase.extend({ enabled: z.boolean().optional().describe("Whether the trigger is enabled") }).partial();
196
420
  const TriggerApiSelectSchema = createAgentScopedApiSchema(TriggerSelectSchema).openapi("Trigger");
197
421
  const TriggerApiInsertSchema = createAgentScopedApiInsertSchema(TriggerInsertSchema).extend({ id: resourceIdSchema.optional() }).openapi("TriggerCreate");
198
422
  const TriggerApiUpdateSchema = TriggerUpdateSchema.openapi("TriggerUpdate");
423
+ const TriggerWithWebhookUrlSchema = TriggerApiSelectSchema.extend({ webhookUrl: z.string().describe("Fully qualified webhook URL for this trigger") }).openapi("TriggerWithWebhookUrl");
199
424
  const TriggerInvocationSelectSchema = createSelectSchema(triggerInvocations);
200
425
  const TriggerInvocationInsertSchema = createInsertSchema(triggerInvocations, {
201
426
  id: () => resourceIdSchema,
@@ -624,7 +849,7 @@ const ToolApiUpdateSchema = createApiUpdateSchema(ToolUpdateSchema).openapi("Too
624
849
  const FunctionToolSelectSchema = createSelectSchema(functionTools);
625
850
  const FunctionToolInsertSchema = createInsertSchema(functionTools).extend({ id: resourceIdSchema });
626
851
  const FunctionToolUpdateSchema = FunctionToolInsertSchema.partial();
627
- const FunctionToolApiSelectSchema = createApiSchema(FunctionToolSelectSchema).openapi("FunctionTool");
852
+ const FunctionToolApiSelectSchema = createApiSchema(FunctionToolSelectSchema).extend({ relationshipId: z.string().optional() }).openapi("FunctionTool");
628
853
  const FunctionToolApiInsertSchema = createAgentScopedApiInsertSchema(FunctionToolInsertSchema).openapi("FunctionToolCreate");
629
854
  const FunctionToolApiUpdateSchema = createApiUpdateSchema(FunctionToolUpdateSchema).openapi("FunctionToolUpdate");
630
855
  const SubAgentFunctionToolRelationSelectSchema = createSelectSchema(subAgentFunctionToolRelations);
@@ -1014,6 +1239,11 @@ const TriggerInvocationListResponse = z.object({
1014
1239
  data: z.array(TriggerInvocationApiSelectSchema),
1015
1240
  pagination: PaginationSchema
1016
1241
  }).openapi("TriggerInvocationListResponse");
1242
+ const TriggerWithWebhookUrlResponse = z.object({ data: TriggerWithWebhookUrlSchema }).openapi("TriggerWithWebhookUrlResponse");
1243
+ const TriggerWithWebhookUrlListResponse = z.object({
1244
+ data: z.array(TriggerWithWebhookUrlSchema),
1245
+ pagination: PaginationSchema
1246
+ }).openapi("TriggerWithWebhookUrlListResponse");
1017
1247
  const SubAgentDataComponentResponse = z.object({ data: SubAgentDataComponentApiSelectSchema }).openapi("SubAgentDataComponentResponse");
1018
1248
  const SubAgentArtifactComponentResponse = z.object({ data: SubAgentArtifactComponentApiSelectSchema }).openapi("SubAgentArtifactComponentResponse");
1019
1249
  const SubAgentDataComponentListResponse = z.object({
@@ -1128,4 +1358,4 @@ const ProjectMetadataSelectSchema = createSelectSchema(projectMetadata);
1128
1358
  const ProjectMetadataInsertSchema = createInsertSchema(projectMetadata).omit({ createdAt: true });
1129
1359
 
1130
1360
  //#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 };
1361
+ 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, 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, canDelegateToExternalAgentInsertSchema, canDelegateToExternalAgentSchema, canDelegateToTeamAgentInsertSchema, canDelegateToTeamAgentSchema, canRelateToInternalSubAgentSchema, resourceIdSchema };
@@ -73,6 +73,64 @@ declare const StreamFinishEventSchema: z.ZodObject<{
73
73
  totalTokens: z.ZodOptional<z.ZodNumber>;
74
74
  }, z.core.$strip>>;
75
75
  }, z.core.$strip>;
76
+ /**
77
+ * Tool input start event - marks beginning of tool input streaming
78
+ */
79
+ declare const ToolInputStartEventSchema: z.ZodObject<{
80
+ type: z.ZodLiteral<"tool-input-start">;
81
+ toolCallId: z.ZodString;
82
+ toolName: z.ZodString;
83
+ }, z.core.$strip>;
84
+ /**
85
+ * Tool input delta event - streaming chunks of tool input
86
+ */
87
+ declare const ToolInputDeltaEventSchema: z.ZodObject<{
88
+ type: z.ZodLiteral<"tool-input-delta">;
89
+ toolCallId: z.ZodString;
90
+ inputTextDelta: z.ZodString;
91
+ }, z.core.$strip>;
92
+ /**
93
+ * Tool input available event - complete tool input is available
94
+ */
95
+ declare const ToolInputAvailableEventSchema: z.ZodObject<{
96
+ type: z.ZodLiteral<"tool-input-available">;
97
+ toolCallId: z.ZodString;
98
+ toolName: z.ZodString;
99
+ input: z.ZodAny;
100
+ providerMetadata: z.ZodOptional<z.ZodAny>;
101
+ }, z.core.$strip>;
102
+ /**
103
+ * Tool output available event - tool execution result
104
+ */
105
+ declare const ToolOutputAvailableEventSchema: z.ZodObject<{
106
+ type: z.ZodLiteral<"tool-output-available">;
107
+ toolCallId: z.ZodString;
108
+ output: z.ZodAny;
109
+ }, z.core.$strip>;
110
+ /**
111
+ * Tool output error event - tool execution failed
112
+ */
113
+ declare const ToolOutputErrorEventSchema: z.ZodObject<{
114
+ type: z.ZodLiteral<"tool-output-error">;
115
+ toolCallId: z.ZodString;
116
+ errorText: z.ZodString;
117
+ output: z.ZodNullable<z.ZodAny>;
118
+ }, z.core.$strip>;
119
+ /**
120
+ * Tool approval request event - requesting user approval for tool execution
121
+ */
122
+ declare const ToolApprovalRequestEventSchema: z.ZodObject<{
123
+ type: z.ZodLiteral<"tool-approval-request">;
124
+ approvalId: z.ZodString;
125
+ toolCallId: z.ZodString;
126
+ }, z.core.$strip>;
127
+ /**
128
+ * Tool output denied event - tool execution was denied by user
129
+ */
130
+ declare const ToolOutputDeniedEventSchema: z.ZodObject<{
131
+ type: z.ZodLiteral<"tool-output-denied">;
132
+ toolCallId: z.ZodString;
133
+ }, z.core.$strip>;
76
134
  /**
77
135
  * Union of all stream event types
78
136
  * This is the main schema used for validating incoming stream events
@@ -108,6 +166,36 @@ declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
108
166
  completionTokens: z.ZodOptional<z.ZodNumber>;
109
167
  totalTokens: z.ZodOptional<z.ZodNumber>;
110
168
  }, z.core.$strip>>;
169
+ }, z.core.$strip>, z.ZodObject<{
170
+ type: z.ZodLiteral<"tool-input-start">;
171
+ toolCallId: z.ZodString;
172
+ toolName: z.ZodString;
173
+ }, z.core.$strip>, z.ZodObject<{
174
+ type: z.ZodLiteral<"tool-input-delta">;
175
+ toolCallId: z.ZodString;
176
+ inputTextDelta: z.ZodString;
177
+ }, z.core.$strip>, z.ZodObject<{
178
+ type: z.ZodLiteral<"tool-input-available">;
179
+ toolCallId: z.ZodString;
180
+ toolName: z.ZodString;
181
+ input: z.ZodAny;
182
+ providerMetadata: z.ZodOptional<z.ZodAny>;
183
+ }, z.core.$strip>, z.ZodObject<{
184
+ type: z.ZodLiteral<"tool-output-available">;
185
+ toolCallId: z.ZodString;
186
+ output: z.ZodAny;
187
+ }, z.core.$strip>, z.ZodObject<{
188
+ type: z.ZodLiteral<"tool-output-error">;
189
+ toolCallId: z.ZodString;
190
+ errorText: z.ZodString;
191
+ output: z.ZodNullable<z.ZodAny>;
192
+ }, z.core.$strip>, z.ZodObject<{
193
+ type: z.ZodLiteral<"tool-approval-request">;
194
+ approvalId: z.ZodString;
195
+ toolCallId: z.ZodString;
196
+ }, z.core.$strip>, z.ZodObject<{
197
+ type: z.ZodLiteral<"tool-output-denied">;
198
+ toolCallId: z.ZodString;
111
199
  }, z.core.$strip>], "type">;
112
200
  type TextStartEvent = z.infer<typeof TextStartEventSchema>;
113
201
  type TextDeltaEvent = z.infer<typeof TextDeltaEventSchema>;
@@ -117,9 +205,16 @@ type DataOperationStreamEvent = z.infer<typeof DataOperationStreamEventSchema>;
117
205
  type DataSummaryStreamEvent = z.infer<typeof DataSummaryStreamEventSchema>;
118
206
  type StreamErrorEvent = z.infer<typeof StreamErrorEventSchema>;
119
207
  type StreamFinishEvent = z.infer<typeof StreamFinishEventSchema>;
208
+ type ToolInputStartEvent = z.infer<typeof ToolInputStartEventSchema>;
209
+ type ToolInputDeltaEvent = z.infer<typeof ToolInputDeltaEventSchema>;
210
+ type ToolInputAvailableEvent = z.infer<typeof ToolInputAvailableEventSchema>;
211
+ type ToolOutputAvailableEvent = z.infer<typeof ToolOutputAvailableEventSchema>;
212
+ type ToolOutputErrorEvent = z.infer<typeof ToolOutputErrorEventSchema>;
213
+ type ToolApprovalRequestEvent = z.infer<typeof ToolApprovalRequestEventSchema>;
214
+ type ToolOutputDeniedEvent = z.infer<typeof ToolOutputDeniedEventSchema>;
120
215
  /**
121
216
  * Union type of all possible stream events
122
217
  */
123
218
  type StreamEvent = z.infer<typeof StreamEventSchema>;
124
219
  //#endregion
125
- export { DataComponentStreamEvent, DataComponentStreamEventSchema, DataOperationStreamEvent, DataOperationStreamEventSchema, DataSummaryStreamEvent, DataSummaryStreamEventSchema, StreamErrorEvent, StreamErrorEventSchema, StreamEvent, StreamEventSchema, StreamFinishEvent, StreamFinishEventSchema, TextDeltaEvent, TextDeltaEventSchema, TextEndEvent, TextEndEventSchema, TextStartEvent, TextStartEventSchema };
220
+ export { DataComponentStreamEvent, DataComponentStreamEventSchema, DataOperationStreamEvent, DataOperationStreamEventSchema, DataSummaryStreamEvent, DataSummaryStreamEventSchema, StreamErrorEvent, StreamErrorEventSchema, StreamEvent, StreamEventSchema, StreamFinishEvent, StreamFinishEventSchema, TextDeltaEvent, TextDeltaEventSchema, TextEndEvent, TextEndEventSchema, TextStartEvent, TextStartEventSchema, ToolApprovalRequestEvent, ToolApprovalRequestEventSchema, ToolInputAvailableEvent, ToolInputAvailableEventSchema, ToolInputDeltaEvent, ToolInputDeltaEventSchema, ToolInputStartEvent, ToolInputStartEventSchema, ToolOutputAvailableEvent, ToolOutputAvailableEventSchema, ToolOutputDeniedEvent, ToolOutputDeniedEventSchema, ToolOutputErrorEvent, ToolOutputErrorEventSchema };
@@ -73,6 +73,64 @@ const StreamFinishEventSchema = z.object({
73
73
  }).optional()
74
74
  });
75
75
  /**
76
+ * Tool input start event - marks beginning of tool input streaming
77
+ */
78
+ const ToolInputStartEventSchema = z.object({
79
+ type: z.literal("tool-input-start"),
80
+ toolCallId: z.string(),
81
+ toolName: z.string()
82
+ });
83
+ /**
84
+ * Tool input delta event - streaming chunks of tool input
85
+ */
86
+ const ToolInputDeltaEventSchema = z.object({
87
+ type: z.literal("tool-input-delta"),
88
+ toolCallId: z.string(),
89
+ inputTextDelta: z.string()
90
+ });
91
+ /**
92
+ * Tool input available event - complete tool input is available
93
+ */
94
+ const ToolInputAvailableEventSchema = z.object({
95
+ type: z.literal("tool-input-available"),
96
+ toolCallId: z.string(),
97
+ toolName: z.string(),
98
+ input: z.any(),
99
+ providerMetadata: z.any().optional()
100
+ });
101
+ /**
102
+ * Tool output available event - tool execution result
103
+ */
104
+ const ToolOutputAvailableEventSchema = z.object({
105
+ type: z.literal("tool-output-available"),
106
+ toolCallId: z.string(),
107
+ output: z.any()
108
+ });
109
+ /**
110
+ * Tool output error event - tool execution failed
111
+ */
112
+ const ToolOutputErrorEventSchema = z.object({
113
+ type: z.literal("tool-output-error"),
114
+ toolCallId: z.string(),
115
+ errorText: z.string(),
116
+ output: z.any().nullable()
117
+ });
118
+ /**
119
+ * Tool approval request event - requesting user approval for tool execution
120
+ */
121
+ const ToolApprovalRequestEventSchema = z.object({
122
+ type: z.literal("tool-approval-request"),
123
+ approvalId: z.string(),
124
+ toolCallId: z.string()
125
+ });
126
+ /**
127
+ * Tool output denied event - tool execution was denied by user
128
+ */
129
+ const ToolOutputDeniedEventSchema = z.object({
130
+ type: z.literal("tool-output-denied"),
131
+ toolCallId: z.string()
132
+ });
133
+ /**
76
134
  * Union of all stream event types
77
135
  * This is the main schema used for validating incoming stream events
78
136
  */
@@ -84,8 +142,15 @@ const StreamEventSchema = z.discriminatedUnion("type", [
84
142
  DataOperationStreamEventSchema,
85
143
  DataSummaryStreamEventSchema,
86
144
  StreamErrorEventSchema,
87
- StreamFinishEventSchema
145
+ StreamFinishEventSchema,
146
+ ToolInputStartEventSchema,
147
+ ToolInputDeltaEventSchema,
148
+ ToolInputAvailableEventSchema,
149
+ ToolOutputAvailableEventSchema,
150
+ ToolOutputErrorEventSchema,
151
+ ToolApprovalRequestEventSchema,
152
+ ToolOutputDeniedEventSchema
88
153
  ]);
89
154
 
90
155
  //#endregion
91
- export { DataComponentStreamEventSchema, DataOperationStreamEventSchema, DataSummaryStreamEventSchema, StreamErrorEventSchema, StreamEventSchema, StreamFinishEventSchema, TextDeltaEventSchema, TextEndEventSchema, TextStartEventSchema };
156
+ export { DataComponentStreamEventSchema, DataOperationStreamEventSchema, DataSummaryStreamEventSchema, StreamErrorEventSchema, StreamEventSchema, StreamFinishEventSchema, TextDeltaEventSchema, TextEndEventSchema, TextStartEventSchema, ToolApprovalRequestEventSchema, ToolInputAvailableEventSchema, ToolInputDeltaEventSchema, ToolInputStartEventSchema, ToolOutputAvailableEventSchema, ToolOutputDeniedEventSchema, ToolOutputErrorEventSchema };
@@ -0,0 +1,8 @@
1
+ ALTER TABLE "triggers" ADD COLUMN "signing_secret_credential_reference_id" varchar(256) DEFAULT null;--> statement-breakpoint
2
+ ALTER TABLE "triggers" ADD COLUMN "signature_verification" jsonb DEFAULT null;--> statement-breakpoint
3
+ ALTER TABLE "triggers" DROP COLUMN "signing_secret";--> statement-breakpoint
4
+ ALTER TABLE "triggers" ALTER COLUMN "input_schema" SET DEFAULT null;--> statement-breakpoint
5
+ ALTER TABLE "triggers" ALTER COLUMN "output_transform" SET DEFAULT null;--> statement-breakpoint
6
+ ALTER TABLE "triggers" ALTER COLUMN "message_template" SET DEFAULT null;--> statement-breakpoint
7
+ ALTER TABLE "triggers" ALTER COLUMN "authentication" SET DEFAULT null;--> statement-breakpoint
8
+ ALTER TABLE "triggers" ADD CONSTRAINT "triggers_credential_reference_fk" FOREIGN KEY ("signing_secret_credential_reference_id") REFERENCES "public"."credential_references"("id") ON DELETE set null ON UPDATE no action;
@@ -0,0 +1,2 @@
1
+ ALTER TABLE "triggers" ALTER COLUMN "signature_verification" SET DEFAULT 'null'::jsonb;--> statement-breakpoint
2
+ ALTER TABLE "sub_agent_function_tool_relations" ADD COLUMN "tool_policies" jsonb;
@@ -0,0 +1,53 @@
1
+ -- =============================================
2
+ -- 1. dataset_item.dataset_id
3
+ -- =============================================
4
+ ALTER TABLE "dataset_item" DROP CONSTRAINT "dataset_item_dataset_fk";--> statement-breakpoint
5
+ ALTER TABLE "dataset_item" ALTER COLUMN "dataset_id" SET DATA TYPE varchar(256);--> statement-breakpoint
6
+ ALTER TABLE "dataset_item" ADD CONSTRAINT "dataset_item_dataset_fk" FOREIGN KEY ("tenant_id","project_id","dataset_id") REFERENCES "public"."dataset"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
7
+
8
+ -- =============================================
9
+ -- 2. dataset_run_config.dataset_id
10
+ -- =============================================
11
+ ALTER TABLE "dataset_run_config" DROP CONSTRAINT "dataset_run_config_dataset_fk";--> statement-breakpoint
12
+ ALTER TABLE "dataset_run_config" ALTER COLUMN "dataset_id" SET DATA TYPE varchar(256);--> statement-breakpoint
13
+ ALTER TABLE "dataset_run_config" ADD CONSTRAINT "dataset_run_config_dataset_fk" FOREIGN KEY ("tenant_id","project_id","dataset_id") REFERENCES "public"."dataset"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
14
+
15
+ -- =============================================
16
+ -- 3. dataset_run_config_agent_relations (2 columns)
17
+ -- =============================================
18
+ ALTER TABLE "dataset_run_config_agent_relations" DROP CONSTRAINT "dataset_run_config_agent_relations_dataset_run_config_fk";--> statement-breakpoint
19
+ ALTER TABLE "dataset_run_config_agent_relations" DROP CONSTRAINT "dataset_run_config_agent_relations_agent_fk";--> statement-breakpoint
20
+ ALTER TABLE "dataset_run_config_agent_relations" ALTER COLUMN "dataset_run_config_id" SET DATA TYPE varchar(256);--> statement-breakpoint
21
+ ALTER TABLE "dataset_run_config_agent_relations" ALTER COLUMN "agent_id" SET DATA TYPE varchar(256);--> statement-breakpoint
22
+ ALTER TABLE "dataset_run_config_agent_relations" ADD CONSTRAINT "dataset_run_config_agent_relations_dataset_run_config_fk" FOREIGN KEY ("tenant_id","project_id","dataset_run_config_id") REFERENCES "public"."dataset_run_config"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
23
+ ALTER TABLE "dataset_run_config_agent_relations" ADD CONSTRAINT "dataset_run_config_agent_relations_agent_fk" FOREIGN KEY ("tenant_id","project_id","agent_id") REFERENCES "public"."agent"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
24
+
25
+ -- =============================================
26
+ -- 4. evaluation_job_config_evaluator_relations (2 columns)
27
+ -- =============================================
28
+ ALTER TABLE "evaluation_job_config_evaluator_relations" DROP CONSTRAINT "eval_job_cfg_evaluator_rel_job_cfg_fk";--> statement-breakpoint
29
+ ALTER TABLE "evaluation_job_config_evaluator_relations" DROP CONSTRAINT "eval_job_cfg_evaluator_rel_evaluator_fk";--> statement-breakpoint
30
+ ALTER TABLE "evaluation_job_config_evaluator_relations" ALTER COLUMN "evaluation_job_config_id" SET DATA TYPE varchar(256);--> statement-breakpoint
31
+ ALTER TABLE "evaluation_job_config_evaluator_relations" ALTER COLUMN "evaluator_id" SET DATA TYPE varchar(256);--> statement-breakpoint
32
+ ALTER TABLE "evaluation_job_config_evaluator_relations" ADD CONSTRAINT "eval_job_cfg_evaluator_rel_job_cfg_fk" FOREIGN KEY ("tenant_id","project_id","evaluation_job_config_id") REFERENCES "public"."evaluation_job_config"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
33
+ ALTER TABLE "evaluation_job_config_evaluator_relations" ADD CONSTRAINT "eval_job_cfg_evaluator_rel_evaluator_fk" FOREIGN KEY ("tenant_id","project_id","evaluator_id") REFERENCES "public"."evaluator"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
34
+
35
+ -- =============================================
36
+ -- 5. evaluation_run_config_evaluation_suite_config_relations (2 columns)
37
+ -- =============================================
38
+ ALTER TABLE "evaluation_run_config_evaluation_suite_config_relations" DROP CONSTRAINT "eval_run_cfg_eval_suite_rel_run_cfg_fk";--> statement-breakpoint
39
+ ALTER TABLE "evaluation_run_config_evaluation_suite_config_relations" DROP CONSTRAINT "eval_run_cfg_eval_suite_rel_suite_cfg_fk";--> statement-breakpoint
40
+ ALTER TABLE "evaluation_run_config_evaluation_suite_config_relations" ALTER COLUMN "evaluation_run_config_id" SET DATA TYPE varchar(256);--> statement-breakpoint
41
+ ALTER TABLE "evaluation_run_config_evaluation_suite_config_relations" ALTER COLUMN "evaluation_suite_config_id" SET DATA TYPE varchar(256);--> statement-breakpoint
42
+ ALTER TABLE "evaluation_run_config_evaluation_suite_config_relations" ADD CONSTRAINT "eval_run_cfg_eval_suite_rel_run_cfg_fk" FOREIGN KEY ("tenant_id","project_id","evaluation_run_config_id") REFERENCES "public"."evaluation_run_config"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
43
+ ALTER TABLE "evaluation_run_config_evaluation_suite_config_relations" ADD CONSTRAINT "eval_run_cfg_eval_suite_rel_suite_cfg_fk" FOREIGN KEY ("tenant_id","project_id","evaluation_suite_config_id") REFERENCES "public"."evaluation_suite_config"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
44
+
45
+ -- =============================================
46
+ -- 6. evaluation_suite_config_evaluator_relations (2 columns)
47
+ -- =============================================
48
+ ALTER TABLE "evaluation_suite_config_evaluator_relations" DROP CONSTRAINT "eval_suite_cfg_evaluator_rel_suite_cfg_fk";--> statement-breakpoint
49
+ ALTER TABLE "evaluation_suite_config_evaluator_relations" DROP CONSTRAINT "eval_suite_cfg_evaluator_rel_evaluator_fk";--> statement-breakpoint
50
+ ALTER TABLE "evaluation_suite_config_evaluator_relations" ALTER COLUMN "evaluation_suite_config_id" SET DATA TYPE varchar(256);--> statement-breakpoint
51
+ ALTER TABLE "evaluation_suite_config_evaluator_relations" ALTER COLUMN "evaluator_id" SET DATA TYPE varchar(256);--> statement-breakpoint
52
+ ALTER TABLE "evaluation_suite_config_evaluator_relations" ADD CONSTRAINT "eval_suite_cfg_evaluator_rel_suite_cfg_fk" FOREIGN KEY ("tenant_id","project_id","evaluation_suite_config_id") REFERENCES "public"."evaluation_suite_config"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
53
+ ALTER TABLE "evaluation_suite_config_evaluator_relations" ADD CONSTRAINT "eval_suite_cfg_evaluator_rel_evaluator_fk" FOREIGN KEY ("tenant_id","project_id","evaluator_id") REFERENCES "public"."evaluator"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;