/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 88a535f8b1da */ 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 UnarchiveModelResponse = { id: string; object: "model"; archived: boolean; }; /** @internal */ export const UnarchiveModelResponse$inboundSchema: z.ZodType< UnarchiveModelResponse, unknown > = z.object({ id: z.string(), object: z.literal("model").default("model"), archived: z.boolean().default(false), }); export function unarchiveModelResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => UnarchiveModelResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UnarchiveModelResponse' from JSON`, ); }