/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 2c71070555d3 */ 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"; import { GitMetadata, GitMetadata$inboundSchema } from "./gitmetadata.js"; export type DeploymentReleaseInfo = { /** * Unique identifier for the release. */ id: string; version: string; gitMetadata?: GitMetadata | null | undefined; createdAt: Date; }; /** @internal */ export const DeploymentReleaseInfo$inboundSchema: z.ZodType< DeploymentReleaseInfo, unknown > = z.object({ id: z.string(), version: z.string(), gitMetadata: z.nullable(GitMetadata$inboundSchema).optional(), createdAt: z.iso.datetime({ offset: true }).transform(v => new Date(v)), }); export function deploymentReleaseInfoFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentReleaseInfo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentReleaseInfo' from JSON`, ); }