/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 22bc7a3aaf5b */ 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"; export type PipelineConfigHeader = { value?: string | null | undefined; }; /** @internal */ export const PipelineConfigHeader$inboundSchema: z.ZodType< PipelineConfigHeader, unknown > = z.object({ value: z.nullable(z.string()).optional(), }); /** @internal */ export type PipelineConfigHeader$Outbound = { value?: string | null | undefined; }; /** @internal */ export const PipelineConfigHeader$outboundSchema: z.ZodType< PipelineConfigHeader$Outbound, PipelineConfigHeader > = z.object({ value: z.nullable(z.string()).optional(), }); export function pipelineConfigHeaderToJSON( pipelineConfigHeader: PipelineConfigHeader, ): string { return JSON.stringify( PipelineConfigHeader$outboundSchema.parse(pipelineConfigHeader), ); } export function pipelineConfigHeaderFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => PipelineConfigHeader$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PipelineConfigHeader' from JSON`, ); }