/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { WorkflowInfoDto, WorkflowInfoDto$inboundSchema, } from "./workflowinfodto.js"; export type GetLayoutUsageResponseDto = { /** * Array of workflows that use this layout */ workflows: Array; }; /** @internal */ export const GetLayoutUsageResponseDto$inboundSchema: z.ZodType< GetLayoutUsageResponseDto, z.ZodTypeDef, unknown > = z.object({ workflows: z.array(WorkflowInfoDto$inboundSchema), }); export function getLayoutUsageResponseDtoFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => GetLayoutUsageResponseDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLayoutUsageResponseDto' from JSON`, ); }