@inkeep/agents-core 0.0.0-dev-20260123083643 → 0.0.0-dev-20260123091222

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.
@@ -5,6 +5,7 @@ import { apiKeys, contextCache, conversations, datasetRun, datasetRunConversatio
5
5
  import { ResolvedRefSchema } from "./dolt-schemas.js";
6
6
  import { MAX_ID_LENGTH, MIN_ID_LENGTH, URL_SAFE_ID_PATTERN, createInsertSchema, createResourceIdSchema, createSelectSchema, registerFieldSchemas, resourceIdSchema } from "./drizzle-schema-helpers.js";
7
7
  import { z } from "@hono/zod-openapi";
8
+ import * as jmespath$1 from "jmespath";
8
9
 
9
10
  //#region src/validation/schemas.ts
10
11
  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;
@@ -165,13 +166,175 @@ const TriggerOutputTransformSchema = z.object({
165
166
  jmespath: z.string().optional().describe("JMESPath expression for payload transformation"),
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 jmespathExt = jmespath$1;
337
+ const TriggerInsertSchemaBase = createInsertSchema(triggers, {
175
338
  id: () => resourceIdSchema,
176
339
  name: () => z.string().trim().nonempty().describe("Trigger name"),
177
340
  description: () => z.string().optional().describe("Trigger description"),
@@ -180,22 +343,88 @@ const TriggerInsertSchema = createInsertSchema(triggers, {
180
343
  outputTransform: () => TriggerOutputTransformSchema.optional(),
181
344
  messageTemplate: () => z.string().trim().nonempty().describe("Message template with {{placeholder}} syntax").optional(),
182
345
  authentication: () => TriggerAuthenticationInputSchema.optional(),
183
- signingSecret: () => z.string().optional().describe("HMAC-SHA256 signing secret")
346
+ signingSecretCredentialReferenceId: () => z.string().optional().describe("Reference to credential containing signing secret"),
347
+ signatureVerification: () => SignatureVerificationConfigSchema.nullable().optional().describe("Configuration for webhook signature verification")
184
348
  });
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().nullable(),
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")
349
+ const TriggerInsertSchema = TriggerInsertSchemaBase.superRefine((data, ctx) => {
350
+ const config = data.signatureVerification;
351
+ if (!config) return;
352
+ if (config.signature.regex) try {
353
+ new RegExp(config.signature.regex);
354
+ } catch (error) {
355
+ ctx.addIssue({
356
+ code: z.ZodIssueCode.custom,
357
+ message: `Invalid regex pattern in signature.regex: ${error instanceof Error ? error.message : String(error)}`,
358
+ path: [
359
+ "signatureVerification",
360
+ "signature",
361
+ "regex"
362
+ ]
363
+ });
364
+ }
365
+ if (config.signature.source === "body" && config.signature.key) try {
366
+ jmespathExt.compile(config.signature.key);
367
+ } catch (error) {
368
+ ctx.addIssue({
369
+ code: z.ZodIssueCode.custom,
370
+ message: `Invalid JMESPath expression in signature.key: ${error instanceof Error ? error.message : String(error)}`,
371
+ path: [
372
+ "signatureVerification",
373
+ "signature",
374
+ "key"
375
+ ]
376
+ });
377
+ }
378
+ config.signedComponents.forEach((component, index) => {
379
+ if (component.regex) try {
380
+ new RegExp(component.regex);
381
+ } catch (error) {
382
+ ctx.addIssue({
383
+ code: z.ZodIssueCode.custom,
384
+ message: `Invalid regex pattern in signedComponents[${index}].regex: ${error instanceof Error ? error.message : String(error)}`,
385
+ path: [
386
+ "signatureVerification",
387
+ "signedComponents",
388
+ index,
389
+ "regex"
390
+ ]
391
+ });
392
+ }
393
+ if (component.source === "body" && component.key) try {
394
+ jmespathExt.compile(component.key);
395
+ } catch (error) {
396
+ ctx.addIssue({
397
+ code: z.ZodIssueCode.custom,
398
+ message: `Invalid JMESPath expression in signedComponents[${index}].key: ${error instanceof Error ? error.message : String(error)}`,
399
+ path: [
400
+ "signatureVerification",
401
+ "signedComponents",
402
+ index,
403
+ "key"
404
+ ]
405
+ });
406
+ }
407
+ if (component.value && component.source !== "literal") try {
408
+ jmespathExt.compile(component.value);
409
+ } catch (error) {
410
+ if (component.value.includes(".") || component.value.includes("[")) ctx.addIssue({
411
+ code: z.ZodIssueCode.custom,
412
+ message: `Invalid JMESPath expression in signedComponents[${index}].value: ${error instanceof Error ? error.message : String(error)}`,
413
+ path: [
414
+ "signatureVerification",
415
+ "signedComponents",
416
+ index,
417
+ "value"
418
+ ]
419
+ });
420
+ }
421
+ });
195
422
  });
423
+ const TriggerUpdateSchema = TriggerInsertSchemaBase.extend({ enabled: z.boolean().optional().describe("Whether the trigger is enabled") }).partial();
196
424
  const TriggerApiSelectSchema = createAgentScopedApiSchema(TriggerSelectSchema).openapi("Trigger");
197
425
  const TriggerApiInsertSchema = createAgentScopedApiInsertSchema(TriggerInsertSchema).extend({ id: resourceIdSchema.optional() }).openapi("TriggerCreate");
198
426
  const TriggerApiUpdateSchema = TriggerUpdateSchema.openapi("TriggerUpdate");
427
+ const TriggerWithWebhookUrlSchema = TriggerApiSelectSchema.extend({ webhookUrl: z.string().describe("Fully qualified webhook URL for this trigger") }).openapi("TriggerWithWebhookUrl");
199
428
  const TriggerInvocationSelectSchema = createSelectSchema(triggerInvocations);
200
429
  const TriggerInvocationInsertSchema = createInsertSchema(triggerInvocations, {
201
430
  id: () => resourceIdSchema,
@@ -1014,6 +1243,11 @@ const TriggerInvocationListResponse = z.object({
1014
1243
  data: z.array(TriggerInvocationApiSelectSchema),
1015
1244
  pagination: PaginationSchema
1016
1245
  }).openapi("TriggerInvocationListResponse");
1246
+ const TriggerWithWebhookUrlResponse = z.object({ data: TriggerWithWebhookUrlSchema }).openapi("TriggerWithWebhookUrlResponse");
1247
+ const TriggerWithWebhookUrlListResponse = z.object({
1248
+ data: z.array(TriggerWithWebhookUrlSchema),
1249
+ pagination: PaginationSchema
1250
+ }).openapi("TriggerWithWebhookUrlListResponse");
1017
1251
  const SubAgentDataComponentResponse = z.object({ data: SubAgentDataComponentApiSelectSchema }).openapi("SubAgentDataComponentResponse");
1018
1252
  const SubAgentArtifactComponentResponse = z.object({ data: SubAgentArtifactComponentApiSelectSchema }).openapi("SubAgentArtifactComponentResponse");
1019
1253
  const SubAgentDataComponentListResponse = z.object({
@@ -1128,4 +1362,4 @@ const ProjectMetadataSelectSchema = createSelectSchema(projectMetadata);
1128
1362
  const ProjectMetadataInsertSchema = createInsertSchema(projectMetadata).omit({ createdAt: true });
1129
1363
 
1130
1364
  //#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 };
1365
+ 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 };
@@ -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;