/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 6abe14060730 */ import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** * Where the feedback of the workflow originated from */ export const WorkflowFeedbackInfoSource = { ZeroState: "ZERO_STATE", Library: "LIBRARY", Homepage: "HOMEPAGE", } as const; /** * Where the feedback of the workflow originated from */ export type WorkflowFeedbackInfoSource = ClosedEnum< typeof WorkflowFeedbackInfoSource >; export type WorkflowFeedbackInfo = { /** * Where the feedback of the workflow originated from */ source?: WorkflowFeedbackInfoSource | undefined; }; /** @internal */ export const WorkflowFeedbackInfoSource$outboundSchema: z.ZodNativeEnum< typeof WorkflowFeedbackInfoSource > = z.nativeEnum(WorkflowFeedbackInfoSource); /** @internal */ export type WorkflowFeedbackInfo$Outbound = { source?: string | undefined; }; /** @internal */ export const WorkflowFeedbackInfo$outboundSchema: z.ZodType< WorkflowFeedbackInfo$Outbound, z.ZodTypeDef, WorkflowFeedbackInfo > = z.object({ source: WorkflowFeedbackInfoSource$outboundSchema.optional(), }); export function workflowFeedbackInfoToJSON( workflowFeedbackInfo: WorkflowFeedbackInfo, ): string { return JSON.stringify( WorkflowFeedbackInfo$outboundSchema.parse(workflowFeedbackInfo), ); }