/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as types from "../../types/primitives.js"; import { PaginationResponse, PaginationResponse$inboundSchema, } from "./pagination-response.js"; import { SDKValidationError } from "./sdk-validation-error.js"; import { WorkflowExecutionDTO, WorkflowExecutionDTO$inboundSchema, } from "./workflow-execution-dto.js"; export type ListWorkflowsResponse = { items?: Array | undefined; pagination?: PaginationResponse | undefined; }; /** @internal */ export const ListWorkflowsResponse$inboundSchema: z.ZodMiniType< ListWorkflowsResponse, unknown > = z.object({ items: types.optional(z.array(WorkflowExecutionDTO$inboundSchema)), pagination: types.optional(PaginationResponse$inboundSchema), }); export function listWorkflowsResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ListWorkflowsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListWorkflowsResponse' from JSON`, ); }