@inkeep/agents-core 0.70.8 → 0.72.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 (69) hide show
  1. package/dist/auth/auth-schema.d.ts +227 -227
  2. package/dist/auth/auth-validation-schemas.d.ts +137 -137
  3. package/dist/auth/auth.d.ts +113 -113
  4. package/dist/auth/password-policy.d.ts +2 -2
  5. package/dist/auth/permissions.d.ts +9 -9
  6. package/dist/client-exports.d.ts +3 -3
  7. package/dist/client-exports.js +3 -3
  8. package/dist/constants/allowed-file-formats.d.ts +3 -1
  9. package/dist/constants/allowed-file-formats.js +38 -26
  10. package/dist/constants/index.d.ts +3 -3
  11. package/dist/constants/index.js +3 -3
  12. package/dist/constants/signoz-queries.d.ts +8 -2
  13. package/dist/constants/signoz-queries.js +17 -10
  14. package/dist/data-access/index.d.ts +3 -1
  15. package/dist/data-access/index.js +3 -1
  16. package/dist/data-access/manage/agents.d.ts +32 -32
  17. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  18. package/dist/data-access/manage/contextConfigs.d.ts +20 -20
  19. package/dist/data-access/manage/dataComponents.d.ts +8 -8
  20. package/dist/data-access/manage/functionTools.d.ts +16 -16
  21. package/dist/data-access/manage/skills.d.ts +11 -11
  22. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  23. package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
  24. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  25. package/dist/data-access/manage/subAgents.d.ts +12 -12
  26. package/dist/data-access/manage/tools.d.ts +30 -30
  27. package/dist/data-access/manage/triggers.d.ts +5 -5
  28. package/dist/data-access/manage/webhookDestinations.d.ts +60 -0
  29. package/dist/data-access/manage/webhookDestinations.js +113 -0
  30. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  31. package/dist/data-access/runtime/apps.d.ts +9 -9
  32. package/dist/data-access/runtime/conversations.d.ts +36 -20
  33. package/dist/data-access/runtime/conversations.js +30 -8
  34. package/dist/data-access/runtime/events.d.ts +93 -0
  35. package/dist/data-access/runtime/events.js +43 -0
  36. package/dist/data-access/runtime/feedback.d.ts +6 -6
  37. package/dist/data-access/runtime/messages.d.ts +34 -18
  38. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  39. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  40. package/dist/data-access/runtime/tasks.d.ts +5 -5
  41. package/dist/db/manage/manage-schema.d.ts +790 -459
  42. package/dist/db/manage/manage-schema.js +93 -2
  43. package/dist/db/runtime/runtime-schema.d.ts +769 -437
  44. package/dist/db/runtime/runtime-schema.js +52 -1
  45. package/dist/index.d.ts +9 -7
  46. package/dist/index.js +8 -6
  47. package/dist/setup/setup.d.ts +1 -0
  48. package/dist/setup/setup.js +4 -1
  49. package/dist/types/entities.d.ts +13 -2
  50. package/dist/types/index.d.ts +2 -2
  51. package/dist/utils/conversations.d.ts +7 -2
  52. package/dist/utils/conversations.js +16 -3
  53. package/dist/utils/error.d.ts +51 -51
  54. package/dist/utils/index.d.ts +2 -2
  55. package/dist/utils/index.js +2 -2
  56. package/dist/validation/index.d.ts +2 -2
  57. package/dist/validation/index.js +2 -2
  58. package/dist/validation/schemas/skills.d.ts +48 -48
  59. package/dist/validation/schemas.d.ts +3337 -2934
  60. package/dist/validation/schemas.js +124 -8
  61. package/drizzle/manage/0019_hesitant_runaways.sql +28 -0
  62. package/drizzle/manage/meta/0019_snapshot.json +4086 -0
  63. package/drizzle/manage/meta/_journal.json +7 -0
  64. package/drizzle/runtime/0039_abandoned_old_lace.sql +21 -0
  65. package/drizzle/runtime/0040_living_forgotten_one.sql +4 -0
  66. package/drizzle/runtime/meta/0039_snapshot.json +6309 -0
  67. package/drizzle/runtime/meta/0040_snapshot.json +6333 -0
  68. package/drizzle/runtime/meta/_journal.json +14 -0
  69. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { SUPPORT_COPILOT_PLATFORM_SLUGS } from "../auth/support-copilot-platforms.js";
2
2
  import { schemaValidationDefaults } from "../constants/schema-validation/defaults.js";
3
- import { agentDatasetRelations, agentEvaluatorRelations, agents, artifactComponents, contextConfigs, credentialReferences, dataComponents, dataset, datasetItem, datasetRunConfig, datasetRunConfigAgentRelations, evaluationJobConfig, evaluationJobConfigEvaluatorRelations, evaluationRunConfig, evaluationRunConfigEvaluationSuiteConfigRelations, evaluationSuiteConfig, evaluationSuiteConfigEvaluatorRelations, evaluator, externalAgents, functionTools, functions, projects, subAgentArtifactComponents, subAgentDataComponents, subAgentExternalAgentRelations, subAgentFunctionToolRelations, subAgentRelations, subAgentTeamAgentRelations, subAgentToolRelations, subAgents, tools, triggers } from "../db/manage/manage-schema.js";
4
- import { apiKeys, apps, contextCache, conversations, datasetRun, datasetRunConversationRelations, evaluationResult, evaluationRun, feedback, ledgerArtifacts, messages, projectMetadata, scheduledTriggerInvocations, scheduledTriggers, schedulerState, taskRelations, tasks, triggerInvocations, userProfile, workAppGitHubInstallations, workAppGitHubMcpToolRepositoryAccess, workAppGitHubProjectRepositoryAccess, workAppGitHubRepositories, workAppSlackChannelAgentConfigs, workAppSlackMcpToolAccessConfig, workAppSlackWorkspaces, workflowExecutions } from "../db/runtime/runtime-schema.js";
3
+ import { agentDatasetRelations, agentEvaluatorRelations, 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, webhookDestinations } from "../db/manage/manage-schema.js";
4
+ import { apiKeys, apps, contextCache, conversations, datasetRun, datasetRunConversationRelations, evaluationResult, evaluationRun, events, feedback, ledgerArtifacts, messages, projectMetadata, scheduledTriggerInvocations, scheduledTriggers, schedulerState, taskRelations, tasks, triggerInvocations, userProfile, workAppGitHubInstallations, workAppGitHubMcpToolRepositoryAccess, workAppGitHubProjectRepositoryAccess, workAppGitHubRepositories, workAppSlackChannelAgentConfigs, workAppSlackMcpToolAccessConfig, workAppSlackWorkspaces, workflowExecutions } from "../db/runtime/runtime-schema.js";
5
5
  import { CredentialStoreType, MCPServerType, MCPTransportType, TOOL_STATUS_VALUES, VALID_RELATION_TYPES } from "../types/utility.js";
6
6
  import { jmespathString, validateJMESPathSecure, validateRegex } from "../utils/jmespath-utils.js";
7
7
  import { ConflictItemSchema, ConflictResolutionSchema, ResolvedRefSchema } from "./dolt-schemas.js";
@@ -484,6 +484,61 @@ const TriggerInvocationUpdateSchema = TriggerInvocationInsertSchema.partial();
484
484
  const TriggerInvocationApiSelectSchema = createAgentScopedApiSchema(TriggerInvocationSelectSchema).openapi("TriggerInvocation");
485
485
  const TriggerInvocationApiInsertSchema = createAgentScopedApiInsertSchema(TriggerInvocationInsertSchema).extend({ id: ResourceIdSchema }).openapi("TriggerInvocationCreate");
486
486
  const TriggerInvocationApiUpdateSchema = createAgentScopedApiUpdateSchema(TriggerInvocationUpdateSchema).openapi("TriggerInvocationUpdate");
487
+ const WebhookDestinationEventTypeEnum = z.enum([
488
+ "conversation.created",
489
+ "conversation.updated",
490
+ "feedback.created",
491
+ "event.created"
492
+ ]).describe("Event type that triggers webhook delivery. `event.created` fires whenever an event is logged via POST /run/v1/events.");
493
+ const WebhookEventEnvelopeSchema = z.object({
494
+ type: z.string().describe("Event type (e.g. conversation.created, conversation.updated, test)"),
495
+ timestamp: z.string().datetime().describe("ISO 8601 timestamp of the event"),
496
+ tenantId: z.string().describe("Tenant ID"),
497
+ projectId: z.string().describe("Project ID"),
498
+ agentId: z.string().describe("Agent ID"),
499
+ data: z.record(z.string(), z.unknown()).describe("Event-specific payload data")
500
+ }).openapi("WebhookEventEnvelope");
501
+ const WebhookMessageSchema = z.object({
502
+ id: z.string().describe("Message ID"),
503
+ role: z.enum(["user", "assistant"]).describe("Message author role"),
504
+ content: z.string().nullable().describe("Message content as a flattened string"),
505
+ createdAt: z.string().datetime().describe("ISO 8601 timestamp when the message was created")
506
+ }).openapi("WebhookMessage");
507
+ const ConversationDetailSchema = z.object({
508
+ id: z.string().describe("Conversation ID"),
509
+ agentId: z.string().nullable().describe("Agent ID associated with the conversation"),
510
+ title: z.string().nullable().describe("Conversation title (nullable, set after first turn)"),
511
+ userProperties: z.record(z.string(), z.unknown()).nullable().describe("User attribution properties supplied at chat init"),
512
+ properties: z.record(z.string(), z.unknown()).nullable().describe("Conversation-level custom properties (page URL, referrer, etc.) supplied per chat turn"),
513
+ createdAt: z.string().datetime().describe("ISO 8601 timestamp when the conversation was created"),
514
+ updatedAt: z.string().datetime().describe("ISO 8601 timestamp when the conversation was last updated"),
515
+ messages: z.array(WebhookMessageSchema).describe("User-facing messages in the conversation, capped at 200 most recent")
516
+ }).openapi("ConversationDetail");
517
+ const WebhookConversationDataSchema = z.object({ conversation: ConversationDetailSchema }).openapi("WebhookConversationData");
518
+ const WebhookDestinationSelectSchema = registerFieldSchemas(createSelectSchema(webhookDestinations).extend({ eventTypes: z.array(WebhookDestinationEventTypeEnum) }));
519
+ const WebhookDestinationInsertSchema = createInsertSchema(webhookDestinations, {
520
+ id: () => ResourceIdSchema,
521
+ name: () => z.string().trim().nonempty().describe("Webhook destination name"),
522
+ description: () => z.string().optional().describe("Webhook destination description"),
523
+ enabled: () => z.boolean().default(true).describe("Whether the webhook destination is enabled"),
524
+ url: () => z.string().url().describe("Destination URL to POST events to"),
525
+ eventTypes: () => z.array(WebhookDestinationEventTypeEnum).min(1).describe("Event types to subscribe to")
526
+ });
527
+ const WebhookDestinationUpdateSchema = WebhookDestinationInsertSchema.extend({ enabled: z.boolean().optional().describe("Whether the webhook destination is enabled") }).partial();
528
+ const WebhookDestinationApiSelectSchema = createApiSchema(WebhookDestinationSelectSchema).extend({ agentIds: z.array(z.string()).optional().describe("Agent IDs this webhook is scoped to. Empty array means all agents. Omitted on list responses.") }).openapi("WebhookDestination");
529
+ const WebhookDestinationApiInsertSchema = createApiInsertSchema(WebhookDestinationInsertSchema).extend({
530
+ id: ResourceIdSchema.optional(),
531
+ agentIds: z.array(z.string()).optional().describe("Agent IDs to scope this webhook to. Omit or empty for all agents.")
532
+ }).omit({
533
+ createdAt: true,
534
+ updatedAt: true
535
+ }).openapi("WebhookDestinationCreate");
536
+ const WebhookDestinationApiUpdateSchema = createApiUpdateSchema(WebhookDestinationUpdateSchema).extend({ agentIds: z.array(z.string()).optional().describe("Agent IDs to scope this webhook to. Empty array for all agents.") }).openapi("WebhookDestinationUpdate");
537
+ const WebhookDestinationResponse = z.object({ data: WebhookDestinationApiSelectSchema }).openapi("WebhookDestinationResponse");
538
+ const WebhookDestinationListResponse = z.object({
539
+ data: z.array(WebhookDestinationApiSelectSchema),
540
+ pagination: PaginationSchema
541
+ }).openapi("WebhookDestinationListResponse");
487
542
  const CronExpressionSchema = z.string().regex(/^(\*(?:\/\d+)?|[\d,-]+(?:\/\d+)?)\s+(\*(?:\/\d+)?|[\d,-]+(?:\/\d+)?)\s+(\*(?:\/\d+)?|[\d,-]+(?:\/\d+)?)\s+(\*(?:\/\d+)?|[\d,-]+(?:\/\d+)?)\s+(\*(?:\/\d+)?|[\d,\-A-Za-z]+(?:\/\d+)?)$/, "Invalid cron expression. Expected 5 fields: minute hour day month weekday").describe("Cron expression in standard 5-field format (minute hour day month weekday)").openapi("CronExpression");
488
543
  const maxScheduledTriggerDispatchDelayMs = 6e5;
489
544
  const ScheduledTriggerSelectSchema = createSelectSchema(scheduledTriggers).extend({
@@ -648,21 +703,34 @@ const ToolInsertSchema = createInsertSchema(tools).extend({
648
703
  createdAt: true,
649
704
  updatedAt: true
650
705
  });
651
- const ConversationSelectSchema = createSelectSchema(conversations).extend({ ref: ResolvedRefSchema.nullable().optional() });
706
+ const TopLevelUserPropertiesSchema = z.record(z.string(), z.unknown());
707
+ const TopLevelPropertiesSchema = z.record(z.string(), z.unknown());
708
+ const ConversationSelectSchema = createSelectSchema(conversations).extend({
709
+ ref: ResolvedRefSchema.nullable().optional(),
710
+ userProperties: TopLevelUserPropertiesSchema.nullable().optional(),
711
+ properties: TopLevelPropertiesSchema.nullable().optional()
712
+ });
652
713
  const ConversationInsertSchema = createInsertSchema(conversations).extend({
653
714
  id: ResourceIdSchema,
654
715
  contextConfigId: ResourceIdSchema.optional(),
655
- ref: ResolvedRefSchema
716
+ ref: ResolvedRefSchema,
717
+ userProperties: TopLevelUserPropertiesSchema.nullable().optional(),
718
+ properties: TopLevelPropertiesSchema.nullable().optional()
656
719
  });
657
720
  const ConversationUpdateSchema = ConversationInsertSchema.partial();
658
721
  const ConversationApiSelectSchema = createApiSchema(ConversationSelectSchema).openapi("Conversation");
659
722
  const ConversationApiInsertSchema = createApiInsertSchema(ConversationInsertSchema).openapi("ConversationCreate");
660
723
  const ConversationApiUpdateSchema = createApiUpdateSchema(ConversationUpdateSchema).openapi("ConversationUpdate");
661
- const MessageSelectSchema = createSelectSchema(messages);
724
+ const MessageSelectSchema = createSelectSchema(messages).extend({
725
+ userProperties: TopLevelUserPropertiesSchema.nullable().optional(),
726
+ properties: TopLevelPropertiesSchema.nullable().optional()
727
+ });
662
728
  const MessageInsertSchema = createInsertSchema(messages).extend({
663
729
  id: ResourceIdSchema,
664
730
  conversationId: ResourceIdSchema,
665
- taskId: ResourceIdSchema.optional()
731
+ taskId: ResourceIdSchema.optional(),
732
+ userProperties: TopLevelUserPropertiesSchema.nullable().optional(),
733
+ properties: TopLevelPropertiesSchema.nullable().optional()
666
734
  });
667
735
  const MessageUpdateSchema = MessageInsertSchema.partial();
668
736
  const MessageApiSelectSchema = createApiSchema(MessageSelectSchema).openapi("Message");
@@ -684,6 +752,47 @@ const FeedbackApiUpdateSchema = createApiUpdateSchema(FeedbackUpdateSchema).omit
684
752
  messageId: true,
685
753
  id: true
686
754
  }).openapi("FeedbackUpdate");
755
+ const WebhookFeedbackDataSchema = z.object({
756
+ feedback: FeedbackApiSelectSchema,
757
+ conversation: ConversationDetailSchema
758
+ }).openapi("WebhookFeedbackData");
759
+ const MAX_EVENT_FIELD_BYTES = 64 * 1024;
760
+ const MAX_EVENT_FIELD_KEYS = 100;
761
+ const boundedJsonRecord = z.record(z.string(), z.unknown()).refine((val) => Object.keys(val).length <= MAX_EVENT_FIELD_KEYS, { message: `exceeds ${MAX_EVENT_FIELD_KEYS} keys` }).refine((val) => {
762
+ try {
763
+ return JSON.stringify(val).length <= MAX_EVENT_FIELD_BYTES;
764
+ } catch {
765
+ return false;
766
+ }
767
+ }, { message: `exceeds ${MAX_EVENT_FIELD_BYTES} bytes when serialized` });
768
+ const EventPropertiesSchema = boundedJsonRecord;
769
+ const EventUserPropertiesSchema = boundedJsonRecord;
770
+ const EventCallerMetadataSchema = boundedJsonRecord;
771
+ const EventServerMetadataSchema = z.object({ authMethod: z.string().optional() }).catchall(z.unknown());
772
+ const EventSelectSchema = createSelectSchema(events);
773
+ const EventInsertSchema = createInsertSchema(events).extend({
774
+ id: ResourceIdSchema,
775
+ type: z.string().min(1),
776
+ agentId: z.string().nullable().optional(),
777
+ conversationId: z.string().nullable().optional(),
778
+ messageId: z.string().nullable().optional(),
779
+ properties: EventPropertiesSchema.nullable().optional(),
780
+ userProperties: EventUserPropertiesSchema.nullable().optional(),
781
+ metadata: EventCallerMetadataSchema.nullable().optional(),
782
+ serverMetadata: EventServerMetadataSchema.nullable().optional()
783
+ });
784
+ const EventApiSelectSchema = createApiSchema(EventSelectSchema).openapi("Event");
785
+ const EventApiInsertSchema = createApiInsertSchema(EventInsertSchema).omit({
786
+ serverMetadata: true,
787
+ createdAt: true,
788
+ updatedAt: true
789
+ }).extend({
790
+ id: ResourceIdSchema.optional(),
791
+ properties: EventPropertiesSchema.optional(),
792
+ userProperties: EventUserPropertiesSchema.optional(),
793
+ metadata: EventCallerMetadataSchema.optional()
794
+ }).openapi("EventCreate");
795
+ const WebhookEventCreatedDataSchema = z.object({ event: EventApiSelectSchema }).openapi("WebhookEventCreatedData");
687
796
  const ContextCacheSelectSchema = createSelectSchema(contextCache).extend({ ref: ResolvedRefSchema.nullable().optional() });
688
797
  const ContextCacheInsertSchema = createInsertSchema(contextCache).extend({ ref: ResolvedRefSchema });
689
798
  const ContextCacheUpdateSchema = ContextCacheInsertSchema.partial();
@@ -1472,6 +1581,7 @@ const SubAgentToolRelationResponse = z.object({ data: SubAgentToolRelationApiSel
1472
1581
  const TriggerResponse = z.object({ data: TriggerApiSelectSchema }).openapi("TriggerResponse");
1473
1582
  const TriggerInvocationResponse = z.object({ data: TriggerInvocationApiSelectSchema }).openapi("TriggerInvocationResponse");
1474
1583
  const FeedbackResponse = z.object({ data: FeedbackApiSelectSchema }).openapi("FeedbackResponse");
1584
+ const EventResponse = z.object({ data: EventApiSelectSchema }).openapi("EventResponse");
1475
1585
  const BulkFeedbackResponseSchema = z.object({
1476
1586
  data: z.array(FeedbackApiSelectSchema),
1477
1587
  errors: z.array(z.object({
@@ -1507,7 +1617,13 @@ const ApiKeyListResponse = z.object({
1507
1617
  const AppResponse = z.object({ data: AppApiResponseSelectSchema }).openapi("AppResponse");
1508
1618
  const AppListResponse = z.object({
1509
1619
  data: z.array(AppApiResponseSelectSchema),
1510
- pagination: PaginationSchema
1620
+ pagination: PaginationSchema,
1621
+ role: z.enum([
1622
+ "owner",
1623
+ "admin",
1624
+ "member"
1625
+ ]).optional(),
1626
+ tenantHasAnyApps: z.boolean().optional()
1511
1627
  }).openapi("AppListResponse");
1512
1628
  const CredentialReferenceListResponse = z.object({
1513
1629
  data: z.array(CredentialReferenceApiSelectSchema),
@@ -1927,4 +2043,4 @@ const ImprovementBranchParamsSchema = z.object({
1927
2043
  }).openapi("ImprovementBranchParams");
1928
2044
 
1929
2045
  //#endregion
1930
- export { ALLOWED_DOMAIN_PATTERN, AddPublicKeyRequestSchema, AddScheduledTriggerUserRequestSchema, AddTriggerUserRequestSchema, AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentDatasetRelationApiInsertSchema, AgentDatasetRelationApiSelectSchema, AgentDatasetRelationInsertSchema, AgentDatasetRelationSelectSchema, AgentDatasetRelationUpdateSchema, AgentEvaluatorRelationApiInsertSchema, AgentEvaluatorRelationApiSelectSchema, AgentEvaluatorRelationInsertSchema, AgentEvaluatorRelationSelectSchema, AgentEvaluatorRelationUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, AgentWithinContextOfProjectSchemaBase, AgentWithinContextOfProjectSelectResponse, AgentWithinContextOfProjectSelectSchema, AgentWithinContextOfProjectSelectSchemaWithRelationIds, AllAgentSchema, AnonymousSessionResponseSchema, ApiConfigSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, AppApiCreationResponseSchema, AppApiInsertSchema, AppApiResponseSelectSchema, AppApiSelectSchema, AppApiUpdateSchema, AppConfigResponseSchema, AppConfigSchema, AppInsertSchema, AppListResponse, AppResponse, AppSelectSchema, AppUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, BulkFeedbackResponseSchema, CanUseItemSchema, ChannelAccessModeSchema, ChannelIdsSchema, ComponentAssociationListResponse, ComponentAssociationSchema, ComponentJoinSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationSelectSchema, ConversationUpdateSchema, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, CredentialStoreListResponseSchema, CredentialStoreSchema, CronExpressionSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentArrayResponse, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, DataPartSchema, DatasetApiInsertSchema, DatasetApiSelectSchema, DatasetApiUpdateSchema, DatasetInsertSchema, DatasetItemApiInsertSchema, DatasetItemApiSelectSchema, DatasetItemApiUpdateSchema, DatasetItemInsertSchema, DatasetItemSelectSchema, DatasetItemUpdateSchema, DatasetRunApiInsertSchema, DatasetRunApiSelectSchema, DatasetRunApiUpdateSchema, DatasetRunConfigAgentRelationInsertSchema, DatasetRunConfigAgentRelationSelectSchema, DatasetRunConfigAgentRelationUpdateSchema, DatasetRunConfigApiInsertSchema, DatasetRunConfigApiSelectSchema, DatasetRunConfigApiUpdateSchema, DatasetRunConfigInsertSchema, DatasetRunConfigSelectSchema, DatasetRunConfigUpdateSchema, DatasetRunConversationRelationApiInsertSchema, DatasetRunConversationRelationApiSelectSchema, DatasetRunConversationRelationApiUpdateSchema, DatasetRunConversationRelationInsertSchema, DatasetRunConversationRelationSelectSchema, DatasetRunConversationRelationUpdateSchema, DatasetRunInsertSchema, DatasetRunItemSchema, DatasetRunSelectSchema, DatasetRunUpdateSchema, DatasetSelectSchema, DatasetUpdateSchema, DateTimeFilterQueryParamsSchema, ErrorResponseSchema, EvalSummaryDatasetRunSchema, EvalSummaryItemStatusSchema, EvalSummaryResponseSchema, EvalSummaryResultSchema, 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, FeedbackApiInsertSchema, FeedbackApiSelectSchema, FeedbackApiUpdateSchema, FeedbackInsertSchema, FeedbackListResponse, FeedbackResponse, FeedbackSelectSchema, FeedbackUpdateSchema, FetchConfigSchema, FetchDefinitionSchema, FilePartSchema, FullAgentAgentInsertSchema, FullAgentSubAgentSelectSchema, FullAgentSubAgentSelectSchemaWithRelationIds, FullProjectDefinitionResponse, FullProjectDefinitionSchema, FullProjectSelectResponse, FullProjectSelectSchema, FullProjectSelectSchemaWithRelationIds, FullProjectSelectWithRelationIdsResponse, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, ImprovementBranchParamsSchema, ImprovementConversationResponseSchema, ImprovementDiffQuerySchema, ImprovementDiffResponseSchema, ImprovementFeedbackItemSchema, ImprovementListResponseSchema, ImprovementMergeRequestSchema, ImprovementMergeResponseSchema, ImprovementRevertRequestSchema, ImprovementRevertRowSchema, ImprovementRunSchema, ImprovementSuccessMessageSchema, ImprovementTriggerRequestSchema, ImprovementTriggerResponseSchema, LastRunSummarySchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MCPCatalogListResponse, MCPToolConfigSchema, McpToolDefinitionSchema, McpToolListResponse, McpToolResponse, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationWithRefQueryParamsSchema, PartSchema, PrebuiltMCPServerSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectMetadataInsertSchema, ProjectMetadataSelectSchema, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, PublicKeyAlgorithmSchema, PublicKeyConfigSchema, PublicKeyListResponseSchema, PublicKeyResponseSchema, RefQueryParamSchema, RelatedAgentInfoListResponse, RelatedAgentInfoSchema, RemovedResponseSchema, ScheduledTriggerApiInsertBaseSchema, ScheduledTriggerApiInsertSchema, ScheduledTriggerApiSelectSchema, ScheduledTriggerApiUpdateSchema, ScheduledTriggerInsertSchema, ScheduledTriggerInvocationApiInsertSchema, ScheduledTriggerInvocationApiSelectSchema, ScheduledTriggerInvocationApiUpdateSchema, ScheduledTriggerInvocationInsertSchema, ScheduledTriggerInvocationListResponse, ScheduledTriggerInvocationResponse, ScheduledTriggerInvocationSelectSchema, ScheduledTriggerInvocationStatusEnum, ScheduledTriggerInvocationUpdateSchema, ScheduledTriggerListResponse, ScheduledTriggerResponse, ScheduledTriggerSelectSchema, ScheduledTriggerUpdateSchema, ScheduledTriggerUsersResponseSchema, ScheduledTriggerWithRunInfoListResponse, ScheduledTriggerWithRunInfoSchema, SchedulerStateSelectSchema, SetScheduledTriggerUsersRequestSchema, SetTriggerUsersRequestSchema, SignatureSourceSchema, SignatureValidationOptionsSchema, SignatureVerificationConfigSchema, SignedComponentSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationListResponse, SubAgentExternalAgentRelationResponse, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentFunctionToolRelationApiInsertSchema, SubAgentFunctionToolRelationApiSelectSchema, SubAgentFunctionToolRelationInsertSchema, SubAgentFunctionToolRelationListResponse, SubAgentFunctionToolRelationResponse, SubAgentFunctionToolRelationSelectSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationListResponse, SubAgentTeamAgentRelationResponse, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, SupportCopilotConfigSchema, SupportCopilotPlatformSchema, SupportCopilotQuickActionGroupSchema, SupportCopilotQuickActionSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TeamAgentSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, TenantProjectToolParamsSchema, TextPartSchema, ThirdPartyMCPServerResponse, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, TriggerApiInsertBaseSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerAuthHeaderInputSchema, TriggerAuthHeaderStoredSchema, TriggerAuthHeaderUpdateSchema, TriggerAuthenticationInputSchema, TriggerAuthenticationSchema, TriggerAuthenticationStoredSchema, TriggerAuthenticationUpdateSchema, TriggerBatchConversationEvaluationSchema, TriggerConversationEvaluationSchema, TriggerEvaluationJobSchema, TriggerInsertSchema, TriggerInvocationApiInsertSchema, TriggerInvocationApiSelectSchema, TriggerInvocationApiUpdateSchema, TriggerInvocationInsertSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationSelectSchema, TriggerInvocationStatusEnum, TriggerInvocationUpdateSchema, TriggerListResponse, TriggerOutputTransformSchema, TriggerResponse, TriggerSelectSchema, TriggerUpdateSchema, TriggerUsersResponseSchema, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, TriggerWithWebhookUrlWithWarningResponse, UserIdParamsSchema, UserIdSchema, UserProfileApiInsertSchema, UserProfileApiUpdateSchema, UserProfileInsertSchema, UserProfileSelectSchema, UserProfileUpdateSchema, WebClientConfigResponseSchema, WebClientConfigSchema, WorkAppGitHubAccessGetResponseSchema, WorkAppGitHubAccessModeSchema, WorkAppGitHubAccessSetRequestSchema, WorkAppGitHubAccessSetResponseSchema, WorkAppGitHubAccountTypeSchema, WorkAppGitHubInstallationApiInsertSchema, WorkAppGitHubInstallationInsertSchema, WorkAppGitHubInstallationSelectSchema, WorkAppGitHubInstallationStatusSchema, WorkAppGitHubMcpToolRepositoryAccessSelectSchema, WorkAppGitHubProjectRepositoryAccessSelectSchema, WorkAppGitHubRepositoryApiInsertSchema, WorkAppGitHubRepositoryInsertSchema, WorkAppGitHubRepositorySelectSchema, WorkAppGithubInstallationApiSelectSchema, WorkAppSlackAgentConfigRequestSchema, WorkAppSlackAgentConfigResponseSchema, WorkAppSlackChannelAgentConfigSelectSchema, WorkAppSlackMcpToolAccessConfigApiInsertSchema, WorkAppSlackMcpToolAccessConfigInsertSchema, WorkAppSlackWorkspaceSelectSchema, WorkflowExecutionInsertSchema, WorkflowExecutionSelectSchema, WorkflowExecutionStatusEnum, WorkflowExecutionUpdateSchema, canDelegateToExternalAgentInsertSchema, canDelegateToExternalAgentSchema, canDelegateToTeamAgentInsertSchema, canDelegateToTeamAgentSchema, canRelateToInternalSubAgentSchema, maxScheduledTriggerDispatchDelayMs, maxWebhookDispatchDelayMs, runAsUserIdsSchema };
2046
+ export { ALLOWED_DOMAIN_PATTERN, AddPublicKeyRequestSchema, AddScheduledTriggerUserRequestSchema, AddTriggerUserRequestSchema, AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentDatasetRelationApiInsertSchema, AgentDatasetRelationApiSelectSchema, AgentDatasetRelationInsertSchema, AgentDatasetRelationSelectSchema, AgentDatasetRelationUpdateSchema, AgentEvaluatorRelationApiInsertSchema, AgentEvaluatorRelationApiSelectSchema, AgentEvaluatorRelationInsertSchema, AgentEvaluatorRelationSelectSchema, AgentEvaluatorRelationUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, AgentWithinContextOfProjectSchemaBase, AgentWithinContextOfProjectSelectResponse, AgentWithinContextOfProjectSelectSchema, AgentWithinContextOfProjectSelectSchemaWithRelationIds, AllAgentSchema, AnonymousSessionResponseSchema, ApiConfigSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, AppApiCreationResponseSchema, AppApiInsertSchema, AppApiResponseSelectSchema, AppApiSelectSchema, AppApiUpdateSchema, AppConfigResponseSchema, AppConfigSchema, AppInsertSchema, AppListResponse, AppResponse, AppSelectSchema, AppUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, BulkFeedbackResponseSchema, CanUseItemSchema, ChannelAccessModeSchema, ChannelIdsSchema, ComponentAssociationListResponse, ComponentAssociationSchema, ComponentJoinSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationDetailSchema, ConversationInsertSchema, ConversationSelectSchema, ConversationUpdateSchema, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, CredentialStoreListResponseSchema, CredentialStoreSchema, CronExpressionSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentArrayResponse, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, DataPartSchema, DatasetApiInsertSchema, DatasetApiSelectSchema, DatasetApiUpdateSchema, DatasetInsertSchema, DatasetItemApiInsertSchema, DatasetItemApiSelectSchema, DatasetItemApiUpdateSchema, DatasetItemInsertSchema, DatasetItemSelectSchema, DatasetItemUpdateSchema, DatasetRunApiInsertSchema, DatasetRunApiSelectSchema, DatasetRunApiUpdateSchema, DatasetRunConfigAgentRelationInsertSchema, DatasetRunConfigAgentRelationSelectSchema, DatasetRunConfigAgentRelationUpdateSchema, DatasetRunConfigApiInsertSchema, DatasetRunConfigApiSelectSchema, DatasetRunConfigApiUpdateSchema, DatasetRunConfigInsertSchema, DatasetRunConfigSelectSchema, DatasetRunConfigUpdateSchema, DatasetRunConversationRelationApiInsertSchema, DatasetRunConversationRelationApiSelectSchema, DatasetRunConversationRelationApiUpdateSchema, DatasetRunConversationRelationInsertSchema, DatasetRunConversationRelationSelectSchema, DatasetRunConversationRelationUpdateSchema, DatasetRunInsertSchema, DatasetRunItemSchema, DatasetRunSelectSchema, DatasetRunUpdateSchema, DatasetSelectSchema, DatasetUpdateSchema, DateTimeFilterQueryParamsSchema, ErrorResponseSchema, EvalSummaryDatasetRunSchema, EvalSummaryItemStatusSchema, EvalSummaryResponseSchema, EvalSummaryResultSchema, 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, EventApiInsertSchema, EventApiSelectSchema, EventInsertSchema, EventResponse, EventSelectSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FeedbackApiInsertSchema, FeedbackApiSelectSchema, FeedbackApiUpdateSchema, FeedbackInsertSchema, FeedbackListResponse, FeedbackResponse, FeedbackSelectSchema, FeedbackUpdateSchema, FetchConfigSchema, FetchDefinitionSchema, FilePartSchema, FullAgentAgentInsertSchema, FullAgentSubAgentSelectSchema, FullAgentSubAgentSelectSchemaWithRelationIds, FullProjectDefinitionResponse, FullProjectDefinitionSchema, FullProjectSelectResponse, FullProjectSelectSchema, FullProjectSelectSchemaWithRelationIds, FullProjectSelectWithRelationIdsResponse, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, ImprovementBranchParamsSchema, ImprovementConversationResponseSchema, ImprovementDiffQuerySchema, ImprovementDiffResponseSchema, ImprovementFeedbackItemSchema, ImprovementListResponseSchema, ImprovementMergeRequestSchema, ImprovementMergeResponseSchema, ImprovementRevertRequestSchema, ImprovementRevertRowSchema, ImprovementRunSchema, ImprovementSuccessMessageSchema, ImprovementTriggerRequestSchema, ImprovementTriggerResponseSchema, LastRunSummarySchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MCPCatalogListResponse, MCPToolConfigSchema, McpToolDefinitionSchema, McpToolListResponse, McpToolResponse, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationWithRefQueryParamsSchema, PartSchema, PrebuiltMCPServerSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectMetadataInsertSchema, ProjectMetadataSelectSchema, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, PublicKeyAlgorithmSchema, PublicKeyConfigSchema, PublicKeyListResponseSchema, PublicKeyResponseSchema, RefQueryParamSchema, RelatedAgentInfoListResponse, RelatedAgentInfoSchema, RemovedResponseSchema, ScheduledTriggerApiInsertBaseSchema, ScheduledTriggerApiInsertSchema, ScheduledTriggerApiSelectSchema, ScheduledTriggerApiUpdateSchema, ScheduledTriggerInsertSchema, ScheduledTriggerInvocationApiInsertSchema, ScheduledTriggerInvocationApiSelectSchema, ScheduledTriggerInvocationApiUpdateSchema, ScheduledTriggerInvocationInsertSchema, ScheduledTriggerInvocationListResponse, ScheduledTriggerInvocationResponse, ScheduledTriggerInvocationSelectSchema, ScheduledTriggerInvocationStatusEnum, ScheduledTriggerInvocationUpdateSchema, ScheduledTriggerListResponse, ScheduledTriggerResponse, ScheduledTriggerSelectSchema, ScheduledTriggerUpdateSchema, ScheduledTriggerUsersResponseSchema, ScheduledTriggerWithRunInfoListResponse, ScheduledTriggerWithRunInfoSchema, SchedulerStateSelectSchema, SetScheduledTriggerUsersRequestSchema, SetTriggerUsersRequestSchema, SignatureSourceSchema, SignatureValidationOptionsSchema, SignatureVerificationConfigSchema, SignedComponentSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationListResponse, SubAgentExternalAgentRelationResponse, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentFunctionToolRelationApiInsertSchema, SubAgentFunctionToolRelationApiSelectSchema, SubAgentFunctionToolRelationInsertSchema, SubAgentFunctionToolRelationListResponse, SubAgentFunctionToolRelationResponse, SubAgentFunctionToolRelationSelectSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationListResponse, SubAgentTeamAgentRelationResponse, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, SupportCopilotConfigSchema, SupportCopilotPlatformSchema, SupportCopilotQuickActionGroupSchema, SupportCopilotQuickActionSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TeamAgentSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, TenantProjectToolParamsSchema, TextPartSchema, ThirdPartyMCPServerResponse, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, TriggerApiInsertBaseSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerAuthHeaderInputSchema, TriggerAuthHeaderStoredSchema, TriggerAuthHeaderUpdateSchema, TriggerAuthenticationInputSchema, TriggerAuthenticationSchema, TriggerAuthenticationStoredSchema, TriggerAuthenticationUpdateSchema, TriggerBatchConversationEvaluationSchema, TriggerConversationEvaluationSchema, TriggerEvaluationJobSchema, TriggerInsertSchema, TriggerInvocationApiInsertSchema, TriggerInvocationApiSelectSchema, TriggerInvocationApiUpdateSchema, TriggerInvocationInsertSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationSelectSchema, TriggerInvocationStatusEnum, TriggerInvocationUpdateSchema, TriggerListResponse, TriggerOutputTransformSchema, TriggerResponse, TriggerSelectSchema, TriggerUpdateSchema, TriggerUsersResponseSchema, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, TriggerWithWebhookUrlWithWarningResponse, UserIdParamsSchema, UserIdSchema, UserProfileApiInsertSchema, UserProfileApiUpdateSchema, UserProfileInsertSchema, UserProfileSelectSchema, UserProfileUpdateSchema, WebClientConfigResponseSchema, WebClientConfigSchema, WebhookConversationDataSchema, WebhookDestinationApiInsertSchema, WebhookDestinationApiSelectSchema, WebhookDestinationApiUpdateSchema, WebhookDestinationEventTypeEnum, WebhookDestinationInsertSchema, WebhookDestinationListResponse, WebhookDestinationResponse, WebhookDestinationSelectSchema, WebhookDestinationUpdateSchema, WebhookEventCreatedDataSchema, WebhookEventEnvelopeSchema, WebhookFeedbackDataSchema, WebhookMessageSchema, WorkAppGitHubAccessGetResponseSchema, WorkAppGitHubAccessModeSchema, WorkAppGitHubAccessSetRequestSchema, WorkAppGitHubAccessSetResponseSchema, WorkAppGitHubAccountTypeSchema, WorkAppGitHubInstallationApiInsertSchema, WorkAppGitHubInstallationInsertSchema, WorkAppGitHubInstallationSelectSchema, WorkAppGitHubInstallationStatusSchema, WorkAppGitHubMcpToolRepositoryAccessSelectSchema, WorkAppGitHubProjectRepositoryAccessSelectSchema, WorkAppGitHubRepositoryApiInsertSchema, WorkAppGitHubRepositoryInsertSchema, WorkAppGitHubRepositorySelectSchema, WorkAppGithubInstallationApiSelectSchema, WorkAppSlackAgentConfigRequestSchema, WorkAppSlackAgentConfigResponseSchema, WorkAppSlackChannelAgentConfigSelectSchema, WorkAppSlackMcpToolAccessConfigApiInsertSchema, WorkAppSlackMcpToolAccessConfigInsertSchema, WorkAppSlackWorkspaceSelectSchema, WorkflowExecutionInsertSchema, WorkflowExecutionSelectSchema, WorkflowExecutionStatusEnum, WorkflowExecutionUpdateSchema, canDelegateToExternalAgentInsertSchema, canDelegateToExternalAgentSchema, canDelegateToTeamAgentInsertSchema, canDelegateToTeamAgentSchema, canRelateToInternalSubAgentSchema, maxScheduledTriggerDispatchDelayMs, maxWebhookDispatchDelayMs, runAsUserIdsSchema };
@@ -0,0 +1,28 @@
1
+ CREATE TABLE "webhook_destination_agents" (
2
+ "tenant_id" varchar(256) NOT NULL,
3
+ "id" varchar(256) NOT NULL,
4
+ "project_id" varchar(256) NOT NULL,
5
+ "webhook_destination_id" varchar(256) NOT NULL,
6
+ "agent_id" varchar(256) NOT NULL,
7
+ "created_at" timestamp DEFAULT now() NOT NULL,
8
+ "updated_at" timestamp DEFAULT now() NOT NULL,
9
+ CONSTRAINT "webhook_destination_agents_tenant_id_project_id_id_pk" PRIMARY KEY("tenant_id","project_id","id")
10
+ );
11
+ --> statement-breakpoint
12
+ CREATE TABLE "webhook_destinations" (
13
+ "tenant_id" varchar(256) NOT NULL,
14
+ "id" varchar(256) NOT NULL,
15
+ "project_id" varchar(256) NOT NULL,
16
+ "name" varchar(256) NOT NULL,
17
+ "description" text,
18
+ "enabled" boolean DEFAULT true NOT NULL,
19
+ "url" text NOT NULL,
20
+ "event_types" jsonb NOT NULL,
21
+ "created_at" timestamp DEFAULT now() NOT NULL,
22
+ "updated_at" timestamp DEFAULT now() NOT NULL,
23
+ CONSTRAINT "webhook_destinations_tenant_id_project_id_id_pk" PRIMARY KEY("tenant_id","project_id","id")
24
+ );
25
+ --> statement-breakpoint
26
+ ALTER TABLE "webhook_destination_agents" ADD CONSTRAINT "webhook_destination_agents_destination_fk" FOREIGN KEY ("tenant_id","project_id","webhook_destination_id") REFERENCES "public"."webhook_destinations"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
27
+ ALTER TABLE "webhook_destination_agents" ADD CONSTRAINT "webhook_destination_agents_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
28
+ ALTER TABLE "webhook_destinations" ADD CONSTRAINT "webhook_destinations_project_fk" FOREIGN KEY ("tenant_id","project_id") REFERENCES "public"."projects"("tenant_id","id") ON DELETE cascade ON UPDATE no action;