Skip to main content

Variable: QuestionFieldSchema

const QuestionFieldSchema: ZodDiscriminatedUnion<[ZodObject<{ id: ZodString; label: ZodString; maxLength: ZodOptional<ZodNumber>; required: ZodOptional<ZodBoolean>; type: ZodLiteral<"short_text">; }, $strip>, ZodObject<{ id: ZodString; label: ZodString; multiple: ZodOptional<ZodBoolean>; options: ZodArray<ZodObject<{ label: ZodString; value: ZodString; }, $strip>>; required: ZodOptional<ZodBoolean>; type: ZodLiteral<"choice">; }, $strip>, ZodObject<{ id: ZodString; label: ZodString; required: ZodOptional<ZodBoolean>; type: ZodLiteral<"file_reference">; }, $strip>, ZodObject<{ id: ZodString; label: ZodString; required: ZodOptional<ZodBoolean>; spec: ZodDiscriminatedUnion<[ZodObject<{ cancelLabel: ZodOptional<ZodString>; confirmLabel: ZodOptional<ZodString>; id: ZodOptional<ZodString>; kind: ZodLiteral<"confirm">; metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; prompt: ZodString; }, $strip>, ZodObject<{ id: ZodOptional<ZodString>; kind: ZodLiteral<"text">; maxLength: ZodOptional<ZodNumber>; metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; placeholder: ZodOptional<ZodString>; prompt: ZodString; }, $strip>, ZodObject<{ id: ZodOptional<ZodString>; kind: ZodLiteral<"choice">; metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; multiple: ZodOptional<ZodBoolean>; options: ZodArray<ZodObject<{ description: ...; label: ...; value: ...; }, $strip>>; prompt: ZodString; }, $strip>], "kind">; type: ZodLiteral<"core_interrupt">; }, $strip>], "type">

Defined in: packages/orchestration/src/questions.ts:8