/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 7443ce7c0855 */ 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 DeploymentProjectInfo = { /** * Unique identifier for the project. */ id: string; /** * Project name. */ name: string; }; /** @internal */ export const DeploymentProjectInfo$inboundSchema: z.ZodType< DeploymentProjectInfo, unknown > = z.object({ id: z.string(), name: z.string(), }); export function deploymentProjectInfoFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentProjectInfo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentProjectInfo' from JSON`, ); }