@inkeep/agents-core 0.47.4 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/auth/auth-validation-schemas.d.ts +17 -17
- package/dist/auth/auth.d.ts +1 -1
- package/dist/client-exports.d.ts +13 -2
- package/dist/client-exports.js +5 -4
- package/dist/data-access/index.d.ts +6 -1
- package/dist/data-access/index.js +6 -1
- package/dist/data-access/manage/agentFull.js +154 -1
- package/dist/data-access/manage/agents.d.ts +4 -4
- package/dist/data-access/manage/agents.js +56 -4
- package/dist/data-access/manage/artifactComponents.d.ts +41 -5
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +3 -3
- package/dist/data-access/manage/projectFull.js +97 -0
- package/dist/data-access/manage/scheduledTriggers.d.ts +80 -0
- package/dist/data-access/manage/scheduledTriggers.js +76 -0
- package/dist/data-access/manage/scheduledWorkflows.d.ts +29 -0
- package/dist/data-access/manage/scheduledWorkflows.js +32 -0
- package/dist/data-access/manage/skills.d.ts +109 -0
- package/dist/data-access/manage/skills.js +122 -0
- package/dist/data-access/manage/subAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +4 -4
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/conversations.d.ts +4 -4
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +233 -0
- package/dist/data-access/runtime/scheduledTriggerInvocations.js +226 -0
- package/dist/data-access/runtime/tasks.d.ts +2 -2
- package/dist/data-access/runtime/workAppSlack.d.ts +55 -0
- package/dist/data-access/runtime/workAppSlack.js +146 -0
- package/dist/db/manage/manage-schema.d.ts +1440 -510
- package/dist/db/manage/manage-schema.js +240 -15
- package/dist/db/runtime/runtime-schema.d.ts +1236 -234
- package/dist/db/runtime/runtime-schema.js +108 -3
- package/dist/index.d.ts +15 -6
- package/dist/index.js +13 -5
- package/dist/types/entities.d.ts +15 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/index.d.ts +5 -2
- package/dist/utils/index.js +5 -2
- package/dist/utils/slack-link-token.d.ts +57 -0
- package/dist/utils/slack-link-token.js +112 -0
- package/dist/utils/slack-user-token.d.ts +65 -0
- package/dist/utils/slack-user-token.js +129 -0
- package/dist/utils/sse-parser.d.ts +35 -0
- package/dist/utils/sse-parser.js +71 -0
- package/dist/utils/tracer-factory.d.ts +11 -2
- package/dist/utils/tracer-factory.js +24 -5
- package/dist/utils/tracer.d.ts +2 -2
- package/dist/utils/tracer.js +2 -2
- package/dist/utils/trigger-auth.d.ts +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/extend-schemas.d.ts +34 -0
- package/dist/validation/extend-schemas.js +33 -0
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/json-schemas.d.ts +28 -0
- package/dist/validation/json-schemas.js +56 -0
- package/dist/validation/schemas.d.ts +5875 -2585
- package/dist/validation/schemas.js +159 -38
- package/dist/validation/stream-event-schemas.d.ts +0 -2
- package/dist/validation/stream-event-schemas.js +1 -2
- package/drizzle/manage/0007_nice_lilandra.sql +3 -0
- package/drizzle/manage/0008_friendly_mentallo.sql +32 -0
- package/drizzle/manage/0009_chilly_old_lace.sql +39 -0
- package/drizzle/manage/meta/0007_snapshot.json +3148 -0
- package/drizzle/manage/meta/0008_snapshot.json +3391 -0
- package/drizzle/manage/meta/0009_snapshot.json +3670 -0
- package/drizzle/manage/meta/_journal.json +21 -0
- package/drizzle/runtime/0012_greedy_hulk.sql +84 -0
- package/drizzle/runtime/0013_huge_white_queen.sql +19 -0
- package/drizzle/runtime/meta/0007_snapshot.json +1 -1
- package/drizzle/runtime/meta/0012_snapshot.json +3622 -0
- package/drizzle/runtime/meta/0013_snapshot.json +3746 -0
- package/drizzle/runtime/meta/_journal.json +14 -0
- package/package.json +1 -1
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { schemaValidationDefaults } from "../constants/schema-validation/defaults.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { apiKeys, contextCache, conversations, datasetRun, datasetRunConversationRelations, evaluationResult, evaluationRun, ledgerArtifacts, messages, projectMetadata, taskRelations, tasks, triggerInvocations, workAppGitHubInstallations, workAppGitHubMcpToolRepositoryAccess, workAppGitHubProjectRepositoryAccess, workAppGitHubRepositories } from "../db/runtime/runtime-schema.js";
|
|
2
|
+
import { agents, artifactComponents, contextConfigs, credentialReferences, dataComponents, dataset, datasetItem, datasetRunConfig, datasetRunConfigAgentRelations, evaluationJobConfig, evaluationJobConfigEvaluatorRelations, evaluationRunConfig, evaluationRunConfigEvaluationSuiteConfigRelations, evaluationSuiteConfig, evaluationSuiteConfigEvaluatorRelations, evaluator, externalAgents, functionTools, functions, projects, scheduledTriggers, scheduledWorkflows, skills, subAgentArtifactComponents, subAgentDataComponents, subAgentExternalAgentRelations, subAgentFunctionToolRelations, subAgentRelations, subAgentSkills, subAgentTeamAgentRelations, subAgentToolRelations, subAgents, tools, triggers } from "../db/manage/manage-schema.js";
|
|
3
|
+
import { apiKeys, contextCache, conversations, datasetRun, datasetRunConversationRelations, evaluationResult, evaluationRun, ledgerArtifacts, messages, projectMetadata, scheduledTriggerInvocations, taskRelations, tasks, triggerInvocations, workAppGitHubInstallations, workAppGitHubMcpToolRepositoryAccess, workAppGitHubProjectRepositoryAccess, workAppGitHubRepositories } from "../db/runtime/runtime-schema.js";
|
|
5
4
|
import { CredentialStoreType, MCPServerType, MCPTransportType, TOOL_STATUS_VALUES, VALID_RELATION_TYPES } from "../types/utility.js";
|
|
5
|
+
import { jmespathString, validateJMESPathSecure, validateRegex } from "../utils/jmespath-utils.js";
|
|
6
6
|
import { ResolvedRefSchema } from "./dolt-schemas.js";
|
|
7
7
|
import { createInsertSchema, createSelectSchema, registerFieldSchemas } from "./drizzle-schema-helpers.js";
|
|
8
|
+
import { ArtifactComponentExtendSchema, DataComponentExtendSchema, DescriptionSchema, NameSchema } from "./extend-schemas.js";
|
|
8
9
|
import { z } from "@hono/zod-openapi";
|
|
9
10
|
import { parse } from "@babel/parser";
|
|
10
11
|
|
|
11
12
|
//#region src/validation/schemas.ts
|
|
12
13
|
const { AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS } = schemaValidationDefaults;
|
|
14
|
+
const StringRecordSchema = z.record(z.string(), z.string("All object values must be strings"), "Must be valid JSON object").openapi("StringRecord");
|
|
13
15
|
const PartMetadataSchema = z.record(z.string(), z.any()).optional();
|
|
14
16
|
const TextPartSchema = z.object({
|
|
15
17
|
kind: z.literal("text"),
|
|
@@ -186,7 +188,8 @@ const AgentSelectSchema = createSelectSchema(agents);
|
|
|
186
188
|
const DEFAULT_SUB_AGENT_ID_DESCRIPTION = "ID of the default sub-agent that handles initial user messages. Required at runtime but nullable on creation to avoid circular FK dependency. Workflow: 1) POST Agent (without defaultSubAgentId), 2) POST SubAgent, 3) PATCH Agent with defaultSubAgentId.";
|
|
187
189
|
const AgentInsertSchema = createInsertSchema(agents, {
|
|
188
190
|
id: () => ResourceIdSchema,
|
|
189
|
-
name: () =>
|
|
191
|
+
name: () => NameSchema,
|
|
192
|
+
description: () => DescriptionSchema,
|
|
190
193
|
defaultSubAgentId: () => ResourceIdSchema.clone().nullable().optional().openapi({
|
|
191
194
|
description: DEFAULT_SUB_AGENT_ID_DESCRIPTION,
|
|
192
195
|
example: "my-default-subagent"
|
|
@@ -485,6 +488,68 @@ const TriggerInvocationUpdateSchema = TriggerInvocationInsertSchema.partial();
|
|
|
485
488
|
const TriggerInvocationApiSelectSchema = createAgentScopedApiSchema(TriggerInvocationSelectSchema).openapi("TriggerInvocation");
|
|
486
489
|
const TriggerInvocationApiInsertSchema = createAgentScopedApiInsertSchema(TriggerInvocationInsertSchema).extend({ id: ResourceIdSchema }).openapi("TriggerInvocationCreate");
|
|
487
490
|
const TriggerInvocationApiUpdateSchema = createAgentScopedApiUpdateSchema(TriggerInvocationUpdateSchema).openapi("TriggerInvocationUpdate");
|
|
491
|
+
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");
|
|
492
|
+
const ScheduledTriggerSelectSchema = createSelectSchema(scheduledTriggers).extend({ payload: z.record(z.string(), z.unknown()).nullable().optional() });
|
|
493
|
+
const ScheduledTriggerInsertSchemaBase = createInsertSchema(scheduledTriggers, {
|
|
494
|
+
id: () => ResourceIdSchema,
|
|
495
|
+
name: () => z.string().trim().min(1).describe("Scheduled trigger name"),
|
|
496
|
+
description: () => z.string().optional().describe("Scheduled trigger description"),
|
|
497
|
+
enabled: () => z.boolean().default(true).describe("Whether the trigger is enabled"),
|
|
498
|
+
cronExpression: () => CronExpressionSchema.nullable().optional(),
|
|
499
|
+
cronTimezone: () => z.string().max(64).default("UTC").describe("IANA timezone for cron expression (e.g., America/New_York, Europe/London)"),
|
|
500
|
+
runAt: () => z.iso.datetime().nullable().optional().describe("One-time execution timestamp"),
|
|
501
|
+
payload: () => z.record(z.string(), z.unknown()).nullable().optional().describe("Static payload for agent execution"),
|
|
502
|
+
messageTemplate: () => z.string().trim().min(1).describe("Message template with {{placeholder}} syntax").optional(),
|
|
503
|
+
maxRetries: () => z.number().int().min(0).max(10).default(1),
|
|
504
|
+
retryDelaySeconds: () => z.number().int().min(10).max(3600).default(60),
|
|
505
|
+
timeoutSeconds: () => z.number().int().min(30).max(780).default(780)
|
|
506
|
+
});
|
|
507
|
+
const ScheduledTriggerInsertSchema = ScheduledTriggerInsertSchemaBase.refine((data) => data.cronExpression || data.runAt, { message: "Either cronExpression or runAt must be provided" }).refine((data) => !(data.cronExpression && data.runAt), { message: "Cannot specify both cronExpression and runAt" });
|
|
508
|
+
const ScheduledTriggerUpdateSchema = ScheduledTriggerInsertSchemaBase.extend({ enabled: z.boolean().optional().describe("Whether the trigger is enabled") }).partial();
|
|
509
|
+
const ScheduledTriggerApiSelectSchema = createAgentScopedApiSchema(ScheduledTriggerSelectSchema).openapi("ScheduledTrigger");
|
|
510
|
+
const ScheduledTriggerApiInsertBaseSchema = createAgentScopedApiInsertSchema(ScheduledTriggerInsertSchemaBase).extend({ id: ResourceIdSchema.optional() }).openapi("ScheduledTriggerInsertBase");
|
|
511
|
+
const ScheduledTriggerApiInsertSchema = ScheduledTriggerApiInsertBaseSchema.refine((data) => data.cronExpression || data.runAt, { message: "Either cronExpression or runAt must be provided" }).refine((data) => !(data.cronExpression && data.runAt), { message: "Cannot specify both cronExpression and runAt" }).openapi("ScheduledTriggerCreate");
|
|
512
|
+
const ScheduledTriggerApiUpdateSchema = ScheduledTriggerUpdateSchema.openapi("ScheduledTriggerUpdate");
|
|
513
|
+
const ScheduledWorkflowSelectSchema = createSelectSchema(scheduledWorkflows);
|
|
514
|
+
const ScheduledWorkflowInsertSchemaBase = createInsertSchema(scheduledWorkflows, {
|
|
515
|
+
id: () => ResourceIdSchema,
|
|
516
|
+
name: () => z.string().trim().min(1).describe("Scheduled workflow name"),
|
|
517
|
+
description: () => z.string().optional().describe("Scheduled workflow description"),
|
|
518
|
+
workflowRunId: () => z.string().nullable().optional().describe("Active workflow run ID for lifecycle management"),
|
|
519
|
+
scheduledTriggerId: () => z.string().describe("The scheduled trigger this workflow belongs to")
|
|
520
|
+
});
|
|
521
|
+
const ScheduledWorkflowInsertSchema = ScheduledWorkflowInsertSchemaBase;
|
|
522
|
+
const ScheduledWorkflowUpdateSchema = ScheduledWorkflowInsertSchemaBase.extend({ scheduledTriggerId: z.string().optional() }).partial();
|
|
523
|
+
const ScheduledWorkflowApiSelectSchema = createAgentScopedApiSchema(ScheduledWorkflowSelectSchema).openapi("ScheduledWorkflow");
|
|
524
|
+
const ScheduledWorkflowApiInsertSchema = createAgentScopedApiInsertSchema(ScheduledWorkflowInsertSchemaBase).extend({ id: ResourceIdSchema.optional() }).openapi("ScheduledWorkflowCreate");
|
|
525
|
+
const ScheduledWorkflowApiUpdateSchema = ScheduledWorkflowUpdateSchema.openapi("ScheduledWorkflowUpdate");
|
|
526
|
+
const ScheduledTriggerInvocationStatusEnum = z.enum([
|
|
527
|
+
"pending",
|
|
528
|
+
"running",
|
|
529
|
+
"completed",
|
|
530
|
+
"failed",
|
|
531
|
+
"cancelled"
|
|
532
|
+
]);
|
|
533
|
+
const ScheduledTriggerInvocationSelectSchema = createSelectSchema(scheduledTriggerInvocations).extend({
|
|
534
|
+
resolvedPayload: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
535
|
+
status: ScheduledTriggerInvocationStatusEnum
|
|
536
|
+
});
|
|
537
|
+
const ScheduledTriggerInvocationInsertSchema = createInsertSchema(scheduledTriggerInvocations, {
|
|
538
|
+
id: () => ResourceIdSchema,
|
|
539
|
+
scheduledTriggerId: () => ResourceIdSchema,
|
|
540
|
+
status: () => ScheduledTriggerInvocationStatusEnum,
|
|
541
|
+
scheduledFor: () => z.iso.datetime().describe("Scheduled execution time"),
|
|
542
|
+
startedAt: () => z.iso.datetime().optional().describe("Actual start time"),
|
|
543
|
+
completedAt: () => z.iso.datetime().optional().describe("Completion time"),
|
|
544
|
+
resolvedPayload: () => z.record(z.string(), z.unknown()).nullable().optional().describe("Resolved payload with variables"),
|
|
545
|
+
conversationIds: () => z.array(ResourceIdSchema).default([]).describe("Conversation IDs created during execution"),
|
|
546
|
+
attemptNumber: () => z.number().int().min(1).default(1),
|
|
547
|
+
idempotencyKey: () => z.string().describe("Idempotency key for deduplication")
|
|
548
|
+
});
|
|
549
|
+
const ScheduledTriggerInvocationUpdateSchema = ScheduledTriggerInvocationInsertSchema.partial();
|
|
550
|
+
const ScheduledTriggerInvocationApiSelectSchema = createAgentScopedApiSchema(ScheduledTriggerInvocationSelectSchema).openapi("ScheduledTriggerInvocation");
|
|
551
|
+
const ScheduledTriggerInvocationApiInsertSchema = createAgentScopedApiInsertSchema(ScheduledTriggerInvocationInsertSchema).extend({ id: ResourceIdSchema }).openapi("ScheduledTriggerInvocationCreate");
|
|
552
|
+
const ScheduledTriggerInvocationApiUpdateSchema = createAgentScopedApiUpdateSchema(ScheduledTriggerInvocationUpdateSchema).openapi("ScheduledTriggerInvocationUpdate");
|
|
488
553
|
const TaskSelectSchema = createSelectSchema(tasks);
|
|
489
554
|
const TaskInsertSchema = createInsertSchema(tasks).extend({
|
|
490
555
|
id: ResourceIdSchema,
|
|
@@ -715,19 +780,31 @@ const DatasetRunConfigApiUpdateSchema = createApiUpdateSchema(DatasetRunConfigUp
|
|
|
715
780
|
const DatasetRunConfigAgentRelationSelectSchema = createSelectSchema(datasetRunConfigAgentRelations);
|
|
716
781
|
const DatasetRunConfigAgentRelationInsertSchema = createInsertSchema(datasetRunConfigAgentRelations).extend({ id: ResourceIdSchema });
|
|
717
782
|
const DatasetRunConfigAgentRelationUpdateSchema = DatasetRunConfigAgentRelationInsertSchema.partial();
|
|
718
|
-
const
|
|
719
|
-
const
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
783
|
+
const SkillIndexSchema = z.int().min(0);
|
|
784
|
+
const SkillFrontmatterSchema = z.object({
|
|
785
|
+
name: z.string().trim().nonempty().max(64).regex(/^[a-z0-9-]+$/, "May only contain lowercase alphanumeric characters and hyphens (a-z, 0-9, -)").refine((v) => !(v.startsWith("-") || v.endsWith("-")), "Must not start or end with a hyphen (-)").refine((v) => !v.includes("--"), "Must not contain consecutive hyphens (--)").refine((v) => v !== "new", "Must not use a reserved name \"new\""),
|
|
786
|
+
description: z.string().trim().nonempty().max(1024),
|
|
787
|
+
metadata: StringRecordSchema.nullish().default(null)
|
|
788
|
+
});
|
|
789
|
+
const SkillSelectSchema = createSelectSchema(skills).extend({ metadata: StringRecordSchema.nullable() });
|
|
790
|
+
const SkillInsertSchema = createInsertSchema(skills).extend({
|
|
791
|
+
...SkillFrontmatterSchema.shape,
|
|
792
|
+
content: z.string().trim().nonempty()
|
|
793
|
+
}).omit({
|
|
794
|
+
id: true,
|
|
724
795
|
createdAt: true,
|
|
725
796
|
updatedAt: true
|
|
726
797
|
});
|
|
798
|
+
const SkillUpdateSchema = SkillInsertSchema.partial().omit({ name: true });
|
|
799
|
+
const SkillApiSelectSchema = createApiSchema(SkillSelectSchema).openapi("Skill");
|
|
800
|
+
const SkillApiInsertSchema = createApiInsertSchema(SkillInsertSchema).openapi("SkillCreate");
|
|
801
|
+
const SkillApiUpdateSchema = createApiUpdateSchema(SkillUpdateSchema).openapi("SkillUpdate");
|
|
802
|
+
const DataComponentSelectSchema = createSelectSchema(dataComponents);
|
|
803
|
+
const DataComponentInsertSchema = createInsertSchema(dataComponents).extend({ id: ResourceIdSchema });
|
|
727
804
|
const DataComponentUpdateSchema = DataComponentInsertSchema.partial();
|
|
728
805
|
const DataComponentApiSelectSchema = createApiSchema(DataComponentSelectSchema).openapi("DataComponent");
|
|
729
|
-
const DataComponentApiInsertSchema = createApiInsertSchema(DataComponentInsertSchema).openapi("DataComponentCreate");
|
|
730
|
-
const DataComponentApiUpdateSchema = createApiUpdateSchema(DataComponentUpdateSchema).openapi("DataComponentUpdate");
|
|
806
|
+
const DataComponentApiInsertSchema = createApiInsertSchema(DataComponentInsertSchema).extend(DataComponentExtendSchema).openapi("DataComponentCreate");
|
|
807
|
+
const DataComponentApiUpdateSchema = createApiUpdateSchema(DataComponentUpdateSchema).extend(DataComponentExtendSchema).openapi("DataComponentUpdate");
|
|
731
808
|
const SubAgentDataComponentSelectSchema = createSelectSchema(subAgentDataComponents);
|
|
732
809
|
const SubAgentDataComponentInsertSchema = createInsertSchema(subAgentDataComponents);
|
|
733
810
|
const SubAgentDataComponentUpdateSchema = SubAgentDataComponentInsertSchema.partial();
|
|
@@ -748,7 +825,7 @@ const ArtifactComponentApiInsertSchema = ArtifactComponentInsertSchema.omit({
|
|
|
748
825
|
projectId: true,
|
|
749
826
|
createdAt: true,
|
|
750
827
|
updatedAt: true
|
|
751
|
-
}).openapi("ArtifactComponentCreate");
|
|
828
|
+
}).extend(ArtifactComponentExtendSchema).openapi("ArtifactComponentCreate");
|
|
752
829
|
const ArtifactComponentApiUpdateSchema = createApiUpdateSchema(ArtifactComponentUpdateSchema).openapi("ArtifactComponentUpdate");
|
|
753
830
|
const SubAgentArtifactComponentSelectSchema = createSelectSchema(subAgentArtifactComponents);
|
|
754
831
|
const SubAgentArtifactComponentInsertSchema = createInsertSchema(subAgentArtifactComponents).extend({
|
|
@@ -765,6 +842,30 @@ const SubAgentArtifactComponentApiInsertSchema = SubAgentArtifactComponentInsert
|
|
|
765
842
|
createdAt: true
|
|
766
843
|
});
|
|
767
844
|
const SubAgentArtifactComponentApiUpdateSchema = createAgentScopedApiUpdateSchema(SubAgentArtifactComponentUpdateSchema);
|
|
845
|
+
const SubAgentSkillSelectSchema = createSelectSchema(subAgentSkills).extend({ index: SkillIndexSchema });
|
|
846
|
+
const SubAgentSkillInsertSchema = createInsertSchema(subAgentSkills).extend({
|
|
847
|
+
id: ResourceIdSchema,
|
|
848
|
+
subAgentId: ResourceIdSchema,
|
|
849
|
+
skillId: ResourceIdSchema,
|
|
850
|
+
index: SkillIndexSchema,
|
|
851
|
+
alwaysLoaded: z.boolean().optional().default(false)
|
|
852
|
+
});
|
|
853
|
+
const SubAgentSkillUpdateSchema = SubAgentSkillInsertSchema.partial();
|
|
854
|
+
const SubAgentSkillApiSelectSchema = createAgentScopedApiSchema(SubAgentSkillSelectSchema).openapi("SubAgentSkill");
|
|
855
|
+
const SubAgentSkillApiInsertSchema = SubAgentSkillInsertSchema.omit({
|
|
856
|
+
tenantId: true,
|
|
857
|
+
projectId: true,
|
|
858
|
+
id: true,
|
|
859
|
+
createdAt: true,
|
|
860
|
+
updatedAt: true
|
|
861
|
+
}).openapi("SubAgentSkillCreate");
|
|
862
|
+
const SubAgentSkillApiUpdateSchema = createAgentScopedApiUpdateSchema(SubAgentSkillUpdateSchema).openapi("SubAgentSkillUpdate");
|
|
863
|
+
const SubAgentSkillWithIndexSchema = SkillApiSelectSchema.extend({
|
|
864
|
+
subAgentSkillId: ResourceIdSchema,
|
|
865
|
+
subAgentId: ResourceIdSchema,
|
|
866
|
+
index: SkillIndexSchema,
|
|
867
|
+
alwaysLoaded: z.boolean()
|
|
868
|
+
}).openapi("SubAgentSkillWithIndex");
|
|
768
869
|
const ExternalAgentSelectSchema = createSelectSchema(externalAgents).extend({ credentialReferenceId: z.string().nullable().optional() });
|
|
769
870
|
const ExternalAgentInsertSchema = createInsertSchema(externalAgents).extend({ id: ResourceIdSchema });
|
|
770
871
|
const ExternalAgentUpdateSchema = ExternalAgentInsertSchema.partial();
|
|
@@ -975,7 +1076,6 @@ const FetchDefinitionSchema = z.object({
|
|
|
975
1076
|
defaultValue: z.any().optional().openapi({ description: "Default value if fetch fails" }),
|
|
976
1077
|
credential: CredentialReferenceApiInsertSchema.optional()
|
|
977
1078
|
}).openapi("FetchDefinition");
|
|
978
|
-
const HeadersSchema = z.record(z.string(), z.string("All header values must be strings"), "Must be valid JSON object");
|
|
979
1079
|
const ContextConfigSelectSchema = createSelectSchema(contextConfigs).extend({ headersSchema: z.any().optional().openapi({
|
|
980
1080
|
type: "object",
|
|
981
1081
|
description: "JSON Schema for validating request headers"
|
|
@@ -1102,6 +1202,11 @@ const FullAgentAgentInsertSchema = SubAgentApiInsertSchema.extend({
|
|
|
1102
1202
|
canUse: z.array(CanUseItemSchema),
|
|
1103
1203
|
dataComponents: z.array(z.string()).optional(),
|
|
1104
1204
|
artifactComponents: z.array(z.string()).optional(),
|
|
1205
|
+
skills: z.array(z.strictObject({
|
|
1206
|
+
id: ResourceIdSchema,
|
|
1207
|
+
index: SkillIndexSchema,
|
|
1208
|
+
alwaysLoaded: z.boolean().optional()
|
|
1209
|
+
})).optional(),
|
|
1105
1210
|
canTransferTo: z.array(z.string()).optional(),
|
|
1106
1211
|
prompt: z.string().trim().optional(),
|
|
1107
1212
|
canDelegateTo: z.array(z.union([
|
|
@@ -1118,6 +1223,7 @@ const AgentWithinContextOfProjectSchema = AgentApiInsertSchema.extend({
|
|
|
1118
1223
|
functionTools: z.record(z.string(), FunctionToolApiInsertSchema).optional(),
|
|
1119
1224
|
functions: z.record(z.string(), FunctionApiInsertSchema).optional(),
|
|
1120
1225
|
triggers: z.record(z.string(), TriggerApiInsertSchema).optional(),
|
|
1226
|
+
scheduledTriggers: z.record(z.string(), ScheduledTriggerApiInsertBaseSchema).optional(),
|
|
1121
1227
|
contextConfig: z.optional(ContextConfigApiInsertSchema),
|
|
1122
1228
|
statusUpdates: z.optional(StatusUpdateSchema),
|
|
1123
1229
|
models: ModelSchema.optional(),
|
|
@@ -1168,6 +1274,7 @@ const FullProjectDefinitionSchema = ProjectApiInsertSchema.extend({
|
|
|
1168
1274
|
tools: z.record(z.string(), ToolApiInsertSchema),
|
|
1169
1275
|
functionTools: z.record(z.string(), FunctionToolApiInsertSchema).optional(),
|
|
1170
1276
|
functions: z.record(z.string(), FunctionApiInsertSchema).optional(),
|
|
1277
|
+
skills: z.record(z.string(), SkillApiInsertSchema).optional(),
|
|
1171
1278
|
dataComponents: z.record(z.string(), DataComponentApiInsertSchema).optional(),
|
|
1172
1279
|
artifactComponents: z.record(z.string(), ArtifactComponentApiInsertSchema).optional(),
|
|
1173
1280
|
externalAgents: z.record(z.string(), ExternalAgentApiInsertSchema).optional(),
|
|
@@ -1204,6 +1311,7 @@ const AgentWithinContextOfProjectSelectSchema = AgentApiSelectSchema.extend({
|
|
|
1204
1311
|
teamAgents: z.record(z.string(), TeamAgentSchema).nullable(),
|
|
1205
1312
|
functionTools: z.record(z.string(), FunctionToolApiSelectSchema).nullable(),
|
|
1206
1313
|
functions: z.record(z.string(), FunctionApiSelectSchema).nullable(),
|
|
1314
|
+
scheduledTriggers: z.record(z.string(), ScheduledTriggerApiSelectSchema).nullable(),
|
|
1207
1315
|
contextConfig: ContextConfigApiSelectSchema.nullable(),
|
|
1208
1316
|
statusUpdates: StatusUpdateSchema.nullable(),
|
|
1209
1317
|
models: ModelSchema.nullable(),
|
|
@@ -1226,7 +1334,6 @@ const FullProjectSelectSchemaWithRelationIds = FullProjectSelectSchema.extend({
|
|
|
1226
1334
|
const ProjectResponse = z.object({ data: ProjectApiSelectSchema }).openapi("ProjectResponse");
|
|
1227
1335
|
const SubAgentResponse = z.object({ data: SubAgentApiSelectSchema }).openapi("SubAgentResponse");
|
|
1228
1336
|
const AgentResponse = z.object({ data: AgentApiSelectSchema }).openapi("AgentResponse");
|
|
1229
|
-
const ToolResponse = z.object({ data: ToolApiSelectSchema }).openapi("ToolResponse");
|
|
1230
1337
|
const ExternalAgentResponse = z.object({ data: ExternalAgentApiSelectSchema }).openapi("ExternalAgentResponse");
|
|
1231
1338
|
const ContextConfigResponse = z.object({ data: ContextConfigApiSelectSchema }).openapi("ContextConfigResponse");
|
|
1232
1339
|
const ApiKeyResponse = z.object({ data: ApiKeyApiSelectSchema }).openapi("ApiKeyResponse");
|
|
@@ -1238,8 +1345,6 @@ const DataComponentResponse = z.object({ data: DataComponentApiSelectSchema }).o
|
|
|
1238
1345
|
const ArtifactComponentResponse = z.object({ data: ArtifactComponentApiSelectSchema }).openapi("ArtifactComponentResponse");
|
|
1239
1346
|
const SubAgentRelationResponse = z.object({ data: SubAgentRelationApiSelectSchema }).openapi("SubAgentRelationResponse");
|
|
1240
1347
|
const SubAgentToolRelationResponse = z.object({ data: SubAgentToolRelationApiSelectSchema }).openapi("SubAgentToolRelationResponse");
|
|
1241
|
-
const ConversationResponse = z.object({ data: ConversationApiSelectSchema }).openapi("ConversationResponse");
|
|
1242
|
-
const MessageResponse = z.object({ data: MessageApiSelectSchema }).openapi("MessageResponse");
|
|
1243
1348
|
const TriggerResponse = z.object({ data: TriggerApiSelectSchema }).openapi("TriggerResponse");
|
|
1244
1349
|
const TriggerInvocationResponse = z.object({ data: TriggerInvocationApiSelectSchema }).openapi("TriggerInvocationResponse");
|
|
1245
1350
|
const ProjectListResponse = z.object({
|
|
@@ -1254,10 +1359,6 @@ const AgentListResponse = z.object({
|
|
|
1254
1359
|
data: z.array(AgentApiSelectSchema),
|
|
1255
1360
|
pagination: PaginationSchema
|
|
1256
1361
|
}).openapi("AgentListResponse");
|
|
1257
|
-
const ToolListResponse = z.object({
|
|
1258
|
-
data: z.array(ToolApiSelectSchema),
|
|
1259
|
-
pagination: PaginationSchema
|
|
1260
|
-
}).openapi("ToolListResponse");
|
|
1261
1362
|
const ExternalAgentListResponse = z.object({
|
|
1262
1363
|
data: z.array(ExternalAgentApiSelectSchema),
|
|
1263
1364
|
pagination: PaginationSchema
|
|
@@ -1286,6 +1387,11 @@ const SubAgentFunctionToolRelationListResponse = z.object({
|
|
|
1286
1387
|
data: z.array(SubAgentFunctionToolRelationApiSelectSchema),
|
|
1287
1388
|
pagination: PaginationSchema
|
|
1288
1389
|
}).openapi("SubAgentFunctionToolRelationListResponse");
|
|
1390
|
+
const SkillResponse = z.object({ data: SkillApiSelectSchema }).openapi("SkillResponse");
|
|
1391
|
+
const SkillListResponse = z.object({
|
|
1392
|
+
data: z.array(SkillApiSelectSchema),
|
|
1393
|
+
pagination: PaginationSchema
|
|
1394
|
+
}).openapi("SkillListResponse");
|
|
1289
1395
|
const DataComponentListResponse = z.object({
|
|
1290
1396
|
data: z.array(DataComponentApiSelectSchema),
|
|
1291
1397
|
pagination: PaginationSchema
|
|
@@ -1302,14 +1408,6 @@ const SubAgentToolRelationListResponse = z.object({
|
|
|
1302
1408
|
data: z.array(SubAgentToolRelationApiSelectSchema),
|
|
1303
1409
|
pagination: PaginationSchema
|
|
1304
1410
|
}).openapi("SubAgentToolRelationListResponse");
|
|
1305
|
-
const ConversationListResponse = z.object({
|
|
1306
|
-
data: z.array(ConversationApiSelectSchema),
|
|
1307
|
-
pagination: PaginationSchema
|
|
1308
|
-
}).openapi("ConversationListResponse");
|
|
1309
|
-
const MessageListResponse = z.object({
|
|
1310
|
-
data: z.array(MessageApiSelectSchema),
|
|
1311
|
-
pagination: PaginationSchema
|
|
1312
|
-
}).openapi("MessageListResponse");
|
|
1313
1411
|
const TriggerListResponse = z.object({
|
|
1314
1412
|
data: z.array(TriggerApiSelectSchema),
|
|
1315
1413
|
pagination: PaginationSchema
|
|
@@ -1323,16 +1421,35 @@ const TriggerWithWebhookUrlListResponse = z.object({
|
|
|
1323
1421
|
data: z.array(TriggerWithWebhookUrlSchema),
|
|
1324
1422
|
pagination: PaginationSchema
|
|
1325
1423
|
}).openapi("TriggerWithWebhookUrlListResponse");
|
|
1326
|
-
const
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1424
|
+
const ScheduledTriggerWithRunInfoSchema = ScheduledTriggerApiSelectSchema.extend({
|
|
1425
|
+
lastRunAt: z.iso.datetime().nullable().describe("Timestamp of the last completed or failed run"),
|
|
1426
|
+
lastRunStatus: z.enum(["completed", "failed"]).nullable().describe("Status of the last run"),
|
|
1427
|
+
lastRunConversationIds: z.array(z.string()).describe("Conversation IDs from the last run"),
|
|
1428
|
+
nextRunAt: z.iso.datetime().nullable().describe("Timestamp of the next pending run")
|
|
1429
|
+
}).openapi("ScheduledTriggerWithRunInfo");
|
|
1430
|
+
const ScheduledTriggerResponse = z.object({ data: ScheduledTriggerApiSelectSchema }).openapi("ScheduledTriggerResponse");
|
|
1431
|
+
const ScheduledTriggerListResponse = z.object({
|
|
1432
|
+
data: z.array(ScheduledTriggerApiSelectSchema),
|
|
1330
1433
|
pagination: PaginationSchema
|
|
1331
|
-
}).openapi("
|
|
1332
|
-
const
|
|
1333
|
-
data: z.array(
|
|
1434
|
+
}).openapi("ScheduledTriggerListResponse");
|
|
1435
|
+
const ScheduledTriggerWithRunInfoListResponse = z.object({
|
|
1436
|
+
data: z.array(ScheduledTriggerWithRunInfoSchema),
|
|
1334
1437
|
pagination: PaginationSchema
|
|
1335
|
-
}).openapi("
|
|
1438
|
+
}).openapi("ScheduledTriggerWithRunInfoListResponse");
|
|
1439
|
+
const ScheduledTriggerInvocationResponse = z.object({ data: ScheduledTriggerInvocationApiSelectSchema }).openapi("ScheduledTriggerInvocationResponse");
|
|
1440
|
+
const ScheduledTriggerInvocationListResponse = z.object({
|
|
1441
|
+
data: z.array(ScheduledTriggerInvocationApiSelectSchema),
|
|
1442
|
+
pagination: PaginationSchema
|
|
1443
|
+
}).openapi("ScheduledTriggerInvocationListResponse");
|
|
1444
|
+
const ScheduledWorkflowResponse = z.object({ data: ScheduledWorkflowApiSelectSchema }).openapi("ScheduledWorkflowResponse");
|
|
1445
|
+
const ScheduledWorkflowListResponse = z.object({
|
|
1446
|
+
data: z.array(ScheduledWorkflowApiSelectSchema),
|
|
1447
|
+
pagination: PaginationSchema
|
|
1448
|
+
}).openapi("ScheduledWorkflowListResponse");
|
|
1449
|
+
const SubAgentDataComponentResponse = z.object({ data: SubAgentDataComponentApiSelectSchema }).openapi("SubAgentDataComponentResponse");
|
|
1450
|
+
const SubAgentArtifactComponentResponse = z.object({ data: SubAgentArtifactComponentApiSelectSchema }).openapi("SubAgentArtifactComponentResponse");
|
|
1451
|
+
const SubAgentSkillResponse = z.object({ data: SubAgentSkillApiSelectSchema }).openapi("SubAgentSkillResponse");
|
|
1452
|
+
const SubAgentSkillWithIndexArrayResponse = z.object({ data: z.array(SubAgentSkillWithIndexSchema) }).openapi("SubAgentSkillWithIndexArrayResponse");
|
|
1336
1453
|
const FullProjectDefinitionResponse = z.object({ data: FullProjectDefinitionSchema }).openapi("FullProjectDefinitionResponse");
|
|
1337
1454
|
const FullProjectSelectResponse = z.object({ data: FullProjectSelectSchema }).openapi("FullProjectSelectResponse");
|
|
1338
1455
|
const FullProjectSelectWithRelationIdsResponse = z.object({ data: FullProjectSelectSchemaWithRelationIds }).openapi("FullProjectSelectWithRelationIdsResponse");
|
|
@@ -1419,6 +1536,10 @@ const PaginationQueryParamsSchema = z.object({
|
|
|
1419
1536
|
page: pageNumber,
|
|
1420
1537
|
limit: limitNumber
|
|
1421
1538
|
}).openapi("PaginationQueryParams");
|
|
1539
|
+
const DateTimeFilterQueryParamsSchema = z.object({
|
|
1540
|
+
from: z.iso.datetime().optional().describe("Start date for filtering (ISO8601)"),
|
|
1541
|
+
to: z.iso.datetime().optional().describe("End date for filtering (ISO8601)")
|
|
1542
|
+
});
|
|
1422
1543
|
const PrebuiltMCPServerSchema = z.object({
|
|
1423
1544
|
id: z.string().describe("Unique identifier for the MCP server"),
|
|
1424
1545
|
name: z.string().describe("Display name of the MCP server"),
|
|
@@ -1473,4 +1594,4 @@ const WorkAppGitHubAccessGetResponseSchema = z.object({
|
|
|
1473
1594
|
});
|
|
1474
1595
|
|
|
1475
1596
|
//#endregion
|
|
1476
|
-
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, DataPartSchema, 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, 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, HeadersSchema, 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, PartSchema, PrebuiltMCPServerSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectMetadataInsertSchema, ProjectMetadataSelectSchema, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RefQueryParamSchema, RelatedAgentInfoListResponse, RelatedAgentInfoSchema, RemovedResponseSchema, ResourceIdSchema, SignatureSourceSchema, SignatureValidationOptionsSchema, SignatureVerificationConfigSchema, SignedComponentSchema, SimulationAgentSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationListResponse, SubAgentExternalAgentRelationResponse, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentFunctionToolRelationApiInsertSchema, SubAgentFunctionToolRelationApiSelectSchema, SubAgentFunctionToolRelationInsertSchema, SubAgentFunctionToolRelationListResponse, SubAgentFunctionToolRelationResponse, SubAgentFunctionToolRelationSelectSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationListResponse, SubAgentTeamAgentRelationResponse, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TeamAgentSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, TextPartSchema, ThirdPartyMCPServerResponse, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerAuthHeaderInputSchema, TriggerAuthHeaderStoredSchema, TriggerAuthHeaderUpdateSchema, TriggerAuthenticationInputSchema, TriggerAuthenticationSchema, TriggerAuthenticationStoredSchema, TriggerAuthenticationUpdateSchema, TriggerBatchConversationEvaluationSchema, TriggerConversationEvaluationSchema, TriggerDatasetRunSchema, TriggerEvaluationJobSchema, TriggerInsertSchema, TriggerInvocationApiInsertSchema, TriggerInvocationApiSelectSchema, TriggerInvocationApiUpdateSchema, TriggerInvocationInsertSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationSelectSchema, TriggerInvocationStatusEnum, TriggerInvocationUpdateSchema, TriggerListResponse, TriggerOutputTransformSchema, TriggerResponse, TriggerSelectSchema, TriggerUpdateSchema, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, URL_SAFE_ID_PATTERN, WorkAppGitHubAccessGetResponseSchema, WorkAppGitHubAccessModeSchema, WorkAppGitHubAccessSetRequestSchema, WorkAppGitHubAccessSetResponseSchema, WorkAppGitHubAccountTypeSchema, WorkAppGitHubInstallationApiInsertSchema, WorkAppGitHubInstallationInsertSchema, WorkAppGitHubInstallationSelectSchema, WorkAppGitHubInstallationStatusSchema, WorkAppGitHubMcpToolRepositoryAccessSelectSchema, WorkAppGitHubProjectRepositoryAccessSelectSchema, WorkAppGitHubRepositoryApiInsertSchema, WorkAppGitHubRepositoryInsertSchema, WorkAppGitHubRepositorySelectSchema, WorkAppGithubInstallationApiSelectSchema, canDelegateToExternalAgentInsertSchema, canDelegateToExternalAgentSchema, canDelegateToTeamAgentInsertSchema, canDelegateToTeamAgentSchema, canRelateToInternalSubAgentSchema };
|
|
1597
|
+
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, 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, 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, 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, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPCatalogListResponse, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolListResponse, McpToolResponse, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, PaginationSchema, PaginationWithRefQueryParamsSchema, PartSchema, PrebuiltMCPServerSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectMetadataInsertSchema, ProjectMetadataSelectSchema, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RefQueryParamSchema, RelatedAgentInfoListResponse, RelatedAgentInfoSchema, RemovedResponseSchema, ResourceIdSchema, ScheduledTriggerApiInsertBaseSchema, ScheduledTriggerApiInsertSchema, ScheduledTriggerApiSelectSchema, ScheduledTriggerApiUpdateSchema, ScheduledTriggerInsertSchema, ScheduledTriggerInvocationApiInsertSchema, ScheduledTriggerInvocationApiSelectSchema, ScheduledTriggerInvocationApiUpdateSchema, ScheduledTriggerInvocationInsertSchema, ScheduledTriggerInvocationListResponse, ScheduledTriggerInvocationResponse, ScheduledTriggerInvocationSelectSchema, ScheduledTriggerInvocationStatusEnum, ScheduledTriggerInvocationUpdateSchema, ScheduledTriggerListResponse, ScheduledTriggerResponse, ScheduledTriggerSelectSchema, ScheduledTriggerUpdateSchema, ScheduledTriggerWithRunInfoListResponse, ScheduledTriggerWithRunInfoSchema, ScheduledWorkflowApiInsertSchema, ScheduledWorkflowApiSelectSchema, ScheduledWorkflowApiUpdateSchema, ScheduledWorkflowInsertSchema, ScheduledWorkflowListResponse, ScheduledWorkflowResponse, ScheduledWorkflowSelectSchema, ScheduledWorkflowUpdateSchema, SignatureSourceSchema, SignatureValidationOptionsSchema, SignatureVerificationConfigSchema, SignedComponentSchema, SimulationAgentSchema, SingleResponseSchema, SkillApiInsertSchema, SkillApiSelectSchema, SkillApiUpdateSchema, SkillFrontmatterSchema, SkillInsertSchema, SkillListResponse, SkillResponse, SkillSelectSchema, SkillUpdateSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, StringRecordSchema, 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, SubAgentSkillApiInsertSchema, SubAgentSkillApiSelectSchema, SubAgentSkillApiUpdateSchema, SubAgentSkillInsertSchema, SubAgentSkillResponse, SubAgentSkillSelectSchema, SubAgentSkillUpdateSchema, SubAgentSkillWithIndexArrayResponse, SubAgentSkillWithIndexSchema, 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, TextPartSchema, ThirdPartyMCPServerResponse, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerAuthHeaderInputSchema, TriggerAuthHeaderStoredSchema, TriggerAuthHeaderUpdateSchema, TriggerAuthenticationInputSchema, TriggerAuthenticationSchema, TriggerAuthenticationStoredSchema, TriggerAuthenticationUpdateSchema, TriggerBatchConversationEvaluationSchema, TriggerConversationEvaluationSchema, TriggerDatasetRunSchema, TriggerEvaluationJobSchema, TriggerInsertSchema, TriggerInvocationApiInsertSchema, TriggerInvocationApiSelectSchema, TriggerInvocationApiUpdateSchema, TriggerInvocationInsertSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationSelectSchema, TriggerInvocationStatusEnum, TriggerInvocationUpdateSchema, TriggerListResponse, TriggerOutputTransformSchema, TriggerResponse, TriggerSelectSchema, TriggerUpdateSchema, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, URL_SAFE_ID_PATTERN, WorkAppGitHubAccessGetResponseSchema, WorkAppGitHubAccessModeSchema, WorkAppGitHubAccessSetRequestSchema, WorkAppGitHubAccessSetResponseSchema, WorkAppGitHubAccountTypeSchema, WorkAppGitHubInstallationApiInsertSchema, WorkAppGitHubInstallationInsertSchema, WorkAppGitHubInstallationSelectSchema, WorkAppGitHubInstallationStatusSchema, WorkAppGitHubMcpToolRepositoryAccessSelectSchema, WorkAppGitHubProjectRepositoryAccessSelectSchema, WorkAppGitHubRepositoryApiInsertSchema, WorkAppGitHubRepositoryInsertSchema, WorkAppGitHubRepositorySelectSchema, WorkAppGithubInstallationApiSelectSchema, canDelegateToExternalAgentInsertSchema, canDelegateToExternalAgentSchema, canDelegateToTeamAgentInsertSchema, canDelegateToTeamAgentSchema, canRelateToInternalSubAgentSchema };
|
|
@@ -114,7 +114,6 @@ declare const ToolOutputErrorEventSchema: z.ZodObject<{
|
|
|
114
114
|
type: z.ZodLiteral<"tool-output-error">;
|
|
115
115
|
toolCallId: z.ZodString;
|
|
116
116
|
errorText: z.ZodString;
|
|
117
|
-
output: z.ZodNullable<z.ZodAny>;
|
|
118
117
|
}, z.core.$strip>;
|
|
119
118
|
/**
|
|
120
119
|
* Tool approval request event - requesting user approval for tool execution
|
|
@@ -188,7 +187,6 @@ declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
188
187
|
type: z.ZodLiteral<"tool-output-error">;
|
|
189
188
|
toolCallId: z.ZodString;
|
|
190
189
|
errorText: z.ZodString;
|
|
191
|
-
output: z.ZodNullable<z.ZodAny>;
|
|
192
190
|
}, z.core.$strip>, z.ZodObject<{
|
|
193
191
|
type: z.ZodLiteral<"tool-approval-request">;
|
|
194
192
|
approvalId: z.ZodString;
|
|
@@ -112,8 +112,7 @@ const ToolOutputAvailableEventSchema = z.object({
|
|
|
112
112
|
const ToolOutputErrorEventSchema = z.object({
|
|
113
113
|
type: z.literal("tool-output-error"),
|
|
114
114
|
toolCallId: z.string(),
|
|
115
|
-
errorText: z.string()
|
|
116
|
-
output: z.any().nullable()
|
|
115
|
+
errorText: z.string()
|
|
117
116
|
});
|
|
118
117
|
/**
|
|
119
118
|
* Tool approval request event - requesting user approval for tool execution
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
CREATE TABLE "skills" (
|
|
2
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
3
|
+
"id" varchar(64) NOT NULL,
|
|
4
|
+
"project_id" varchar(256) NOT NULL,
|
|
5
|
+
"name" varchar(64) NOT NULL,
|
|
6
|
+
"description" text NOT NULL,
|
|
7
|
+
"content" text NOT NULL,
|
|
8
|
+
"metadata" jsonb,
|
|
9
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
10
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
11
|
+
CONSTRAINT "skills_tenant_id_project_id_id_pk" PRIMARY KEY("tenant_id","project_id","id")
|
|
12
|
+
);
|
|
13
|
+
--> statement-breakpoint
|
|
14
|
+
CREATE TABLE "sub_agent_skills" (
|
|
15
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
16
|
+
"id" varchar(256) NOT NULL,
|
|
17
|
+
"project_id" varchar(256) NOT NULL,
|
|
18
|
+
"agent_id" varchar(256) NOT NULL,
|
|
19
|
+
"sub_agent_id" varchar(256) NOT NULL,
|
|
20
|
+
"skill_id" varchar(64) NOT NULL,
|
|
21
|
+
"index" numeric DEFAULT 0 NOT NULL,
|
|
22
|
+
"always_loaded" boolean DEFAULT false NOT NULL,
|
|
23
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
24
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
25
|
+
CONSTRAINT "sub_agent_skills_tenant_id_project_id_agent_id_id_pk" PRIMARY KEY("tenant_id","project_id","agent_id","id"),
|
|
26
|
+
CONSTRAINT "sub_agent_skills_sub_agent_skill_unique" UNIQUE("sub_agent_id","skill_id")
|
|
27
|
+
);
|
|
28
|
+
--> statement-breakpoint
|
|
29
|
+
ALTER TABLE "skills" ADD CONSTRAINT "skills_project_fk" FOREIGN KEY ("tenant_id","project_id") REFERENCES "public"."projects"("tenant_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
30
|
+
ALTER TABLE "sub_agent_skills" ADD CONSTRAINT "sub_agent_skills_sub_agent_fk" FOREIGN KEY ("tenant_id","project_id","agent_id","sub_agent_id") REFERENCES "public"."sub_agents"("tenant_id","project_id","agent_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
31
|
+
ALTER TABLE "sub_agent_skills" ADD CONSTRAINT "sub_agent_skills_skill_fk" FOREIGN KEY ("tenant_id","project_id","skill_id") REFERENCES "public"."skills"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
32
|
+
CREATE INDEX "sub_agent_skills_skill_idx" ON "sub_agent_skills" USING btree ("skill_id");
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
CREATE TABLE "scheduled_triggers" (
|
|
2
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
3
|
+
"id" varchar(256) NOT NULL,
|
|
4
|
+
"project_id" varchar(256) NOT NULL,
|
|
5
|
+
"agent_id" varchar(256) NOT NULL,
|
|
6
|
+
"name" varchar(256) NOT NULL,
|
|
7
|
+
"description" text,
|
|
8
|
+
"enabled" boolean DEFAULT true NOT NULL,
|
|
9
|
+
"cron_expression" varchar(256),
|
|
10
|
+
"cron_timezone" varchar(64) DEFAULT 'UTC',
|
|
11
|
+
"run_at" timestamp with time zone,
|
|
12
|
+
"payload" jsonb,
|
|
13
|
+
"message_template" text,
|
|
14
|
+
"max_retries" numeric DEFAULT 1 NOT NULL,
|
|
15
|
+
"retry_delay_seconds" numeric DEFAULT 60 NOT NULL,
|
|
16
|
+
"timeout_seconds" numeric DEFAULT 780 NOT NULL,
|
|
17
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
18
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
19
|
+
CONSTRAINT "scheduled_triggers_tenant_id_project_id_agent_id_id_pk" PRIMARY KEY("tenant_id","project_id","agent_id","id")
|
|
20
|
+
);
|
|
21
|
+
--> statement-breakpoint
|
|
22
|
+
CREATE TABLE "scheduled_workflows" (
|
|
23
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
24
|
+
"id" varchar(256) NOT NULL,
|
|
25
|
+
"project_id" varchar(256) NOT NULL,
|
|
26
|
+
"agent_id" varchar(256) NOT NULL,
|
|
27
|
+
"name" varchar(256) NOT NULL,
|
|
28
|
+
"description" text,
|
|
29
|
+
"workflow_run_id" varchar(256),
|
|
30
|
+
"status" varchar(50) DEFAULT 'pending' NOT NULL,
|
|
31
|
+
"scheduled_trigger_id" varchar(256) NOT NULL,
|
|
32
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
33
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
34
|
+
CONSTRAINT "scheduled_workflows_tenant_id_project_id_agent_id_id_pk" PRIMARY KEY("tenant_id","project_id","agent_id","id")
|
|
35
|
+
);
|
|
36
|
+
--> statement-breakpoint
|
|
37
|
+
ALTER TABLE "scheduled_triggers" ADD CONSTRAINT "scheduled_triggers_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
|
|
38
|
+
ALTER TABLE "scheduled_workflows" ADD CONSTRAINT "scheduled_workflows_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
|
|
39
|
+
ALTER TABLE "scheduled_workflows" ADD CONSTRAINT "scheduled_workflows_trigger_fk" FOREIGN KEY ("tenant_id","project_id","agent_id","scheduled_trigger_id") REFERENCES "public"."scheduled_triggers"("tenant_id","project_id","agent_id","id") ON DELETE cascade ON UPDATE no action;
|