/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: b3503860e403 */ import * as z from "zod/v4"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { WorkflowWithWorkerStatus, WorkflowWithWorkerStatus$inboundSchema, } from "./workflowwithworkerstatus.js"; export type WorkflowGetResponse = { workflow: WorkflowWithWorkerStatus; }; /** @internal */ export const WorkflowGetResponse$inboundSchema: z.ZodType< WorkflowGetResponse, unknown > = z.object({ workflow: WorkflowWithWorkerStatus$inboundSchema, }); export function workflowGetResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => WorkflowGetResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorkflowGetResponse' from JSON`, ); }