/** * We use these types in both pipeline and release client, to avoid circular * dependency issue, we need to put the type and schema here */ import { z } from "zod"; import { DataSpecification, GeneralRecord, Nullable } from "../types"; import { ComponentDefinition } from "./component"; export type PipelineVariableField = { title: string; instillFormat: string; description?: string; instillUiOrder?: number; instillUiMultiline?: boolean; listen?: string[]; }; export declare const PipelineVariableFieldSchema: z.ZodObject<{ title: z.ZodString; instillFormat: z.ZodString; description: z.ZodOptional; instillUiOrder: z.ZodOptional; instillUiMultiline: z.ZodOptional; }, "strip", z.ZodTypeAny, { title: string; instillFormat: string; description?: string | undefined; instillUiOrder?: number | undefined; instillUiMultiline?: boolean | undefined; }, { title: string; instillFormat: string; description?: string | undefined; instillUiOrder?: number | undefined; instillUiMultiline?: boolean | undefined; }>; export type PipelineVariableFieldMap = Record>; export declare const PipelineVariableFieldMapSchema: z.ZodRecord; instillUiOrder: z.ZodOptional; instillUiMultiline: z.ZodOptional; }, "strip", z.ZodTypeAny, { title: string; instillFormat: string; description?: string | undefined; instillUiOrder?: number | undefined; instillUiMultiline?: boolean | undefined; }, { title: string; instillFormat: string; description?: string | undefined; instillUiOrder?: number | undefined; instillUiMultiline?: boolean | undefined; }>>>; export type PipelineOutputField = { title: string; description?: string; value: string; instillUiOrder?: number; }; export declare const PipelineOutputFieldSchema: z.ZodObject<{ title: z.ZodString; description: z.ZodOptional; value: z.ZodString; instillUiOrder: z.ZodOptional; }, "strip", z.ZodTypeAny, { title: string; value: string; description?: string | undefined; instillUiOrder?: number | undefined; }, { title: string; value: string; description?: string | undefined; instillUiOrder?: number | undefined; }>; export type PipelineOutputFieldMap = Record>; export declare const PipelineOutputFieldMapSchema: z.ZodRecord; value: z.ZodString; instillUiOrder: z.ZodOptional; }, "strip", z.ZodTypeAny, { title: string; value: string; description?: string | undefined; instillUiOrder?: number | undefined; }, { title: string; value: string; description?: string | undefined; instillUiOrder?: number | undefined; }>>>; export type ComponentBasicFields = { metadata?: GeneralRecord; type: string; }; export type PipelineGeneralComponent = { definition?: Nullable; task: string; input: GeneralRecord; condition: Nullable; setup: Nullable; description?: string; } & ComponentBasicFields; export type PipelineIteratorComponent = { input: string; outputElements: Record; component: PipelineComponentMap; condition: Nullable; dataSpecification: Nullable; description?: string; } & ComponentBasicFields; export type PipelineComponent = PipelineIteratorComponent | PipelineGeneralComponent; export type PipelineComponentMap = Record; export declare const PipelineComponentMapSchema: z.ZodRecord; export type PipelineRunOnEventItem = { type: string; event: string; }; export type PipelineRunOnEventMap = Record; export declare const PipelineRunOnEventItemMapSchema: z.ZodRecord; export declare const PipelineRunOnMapSchema: z.ZodRecord; export type PipelineRecipe = { version: string; component?: PipelineComponentMap; variable?: PipelineVariableFieldMap; output?: PipelineOutputFieldMap; on?: PipelineRunOnEventMap; }; export declare const PipelineRecipeSchema: z.ZodObject<{ version: z.ZodString; component: z.ZodOptional>; variable: z.ZodOptional; instillUiOrder: z.ZodOptional; instillUiMultiline: z.ZodOptional; }, "strip", z.ZodTypeAny, { title: string; instillFormat: string; description?: string | undefined; instillUiOrder?: number | undefined; instillUiMultiline?: boolean | undefined; }, { title: string; instillFormat: string; description?: string | undefined; instillUiOrder?: number | undefined; instillUiMultiline?: boolean | undefined; }>>>>; output: z.ZodOptional; value: z.ZodString; instillUiOrder: z.ZodOptional; }, "strip", z.ZodTypeAny, { title: string; value: string; description?: string | undefined; instillUiOrder?: number | undefined; }, { title: string; value: string; description?: string | undefined; instillUiOrder?: number | undefined; }>>>>; on: z.ZodOptional>; }, "strip", z.ZodTypeAny, { version: string; output?: Record | undefined; component?: Record | undefined; variable?: Record | undefined; on?: Record | undefined; }, { version: string; output?: Record | undefined; component?: Record | undefined; variable?: Record | undefined; on?: Record | undefined; }>; export type RunStatus = "RUN_STATUS_PROCESSING" | "RUN_STATUS_COMPLETED" | "RUN_STATUS_FAILED" | "RUN_STATUS_QUEUED"; export type RunSource = "RUN_SOURCE_CONSOLE" | "RUN_SOURCE_API"; export type ResourceView = "VIEW_FULL" | "VIEW_BASIC"; export declare const ResourceViewSchema: z.ZodEnum<["VIEW_FULL", "VIEW_BASIC"]>; export type ResourceViewWithRecipeView = ResourceView | "VIEW_RECIPE"; //# sourceMappingURL=types.d.ts.map