/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 589d0c0aab73 */ 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 RetryDeploymentGlobals = { /** * Workspace name. Platform API keys already select a workspace; other authentication methods can configure it once on the SDK client. */ workspace?: string | undefined; }; export type RetryDeploymentRequest = { /** * Unique identifier for the deployment. */ id: string; }; /** * Deployment retry enqueued successfully. */ export type RetryDeploymentResponse = { message: string; }; /** @internal */ export type RetryDeploymentRequest$Outbound = { id: string; }; /** @internal */ export const RetryDeploymentRequest$outboundSchema: z.ZodType< RetryDeploymentRequest$Outbound, RetryDeploymentRequest > = z.object({ id: z.string(), }); export function retryDeploymentRequestToJSON( retryDeploymentRequest: RetryDeploymentRequest, ): string { return JSON.stringify( RetryDeploymentRequest$outboundSchema.parse(retryDeploymentRequest), ); } /** @internal */ export const RetryDeploymentResponse$inboundSchema: z.ZodType< RetryDeploymentResponse, unknown > = z.object({ message: z.string(), }); export function retryDeploymentResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => RetryDeploymentResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetryDeploymentResponse' from JSON`, ); }