/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 4e2f68b6123e */ 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 DeploymentCredentialRotationValues = { /** * Unique identifier for the deployment. */ deploymentId: string; revision: number; token: string; }; /** @internal */ export const DeploymentCredentialRotationValues$inboundSchema: z.ZodType< DeploymentCredentialRotationValues, unknown > = z.object({ deploymentId: z.string(), revision: z.int(), token: z.string(), }); export function deploymentCredentialRotationValuesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentCredentialRotationValues$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentCredentialRotationValues' from JSON`, ); }