/* * 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 { StepIssuesDto, StepIssuesDto$inboundSchema } from "./stepissuesdto.js"; export type StepListResponseDto = { /** * Slug of the step */ slug: string; /** * Type of the step */ type: string; /** * Issues associated with the step */ issues?: StepIssuesDto | undefined; }; /** @internal */ export const StepListResponseDto$inboundSchema: z.ZodType< StepListResponseDto, z.ZodTypeDef, unknown > = z.object({ slug: z.string(), type: z.string(), issues: StepIssuesDto$inboundSchema.optional(), }); export function stepListResponseDtoFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => StepListResponseDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StepListResponseDto' from JSON`, ); }