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