/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 33f064412e30 */ import * as z from "zod/v4"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { DeploymentCredentialRotation, DeploymentCredentialRotation$inboundSchema, } from "./deploymentcredentialrotation.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type DeploymentCredentialRotationStatus = { /** * Unique identifier for the deployment. */ deploymentId: string; revision: number; rotation: DeploymentCredentialRotation | null; }; /** @internal */ export const DeploymentCredentialRotationStatus$inboundSchema: z.ZodType< DeploymentCredentialRotationStatus, unknown > = z.object({ deploymentId: z.string(), revision: z.int(), rotation: z.nullable(DeploymentCredentialRotation$inboundSchema), }); export function deploymentCredentialRotationStatusFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentCredentialRotationStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentCredentialRotationStatus' from JSON`, ); }