/* * 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 { SDKValidationError } from "./sdk-validation-error.js"; export type DeleteCostsheetResponse = { id?: string | undefined; message?: string | undefined; }; /** @internal */ export const DeleteCostsheetResponse$inboundSchema: z.ZodMiniType< DeleteCostsheetResponse, unknown > = z.object({ id: types.optional(types.string()), message: types.optional(types.string()), }); export function deleteCostsheetResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeleteCostsheetResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteCostsheetResponse' from JSON`, ); }