/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 2a8ebb3666e6 */ 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 { RemoteOperatorInstallReceipt, RemoteOperatorInstallReceipt$inboundSchema, } from "./remoteoperatorinstallreceipt.js"; export type RenderOperatorManifestResponse = { /** * Rendered multi-document Kubernetes manifest */ manifest: string; /** * kubectl command for applying the manifest from a file */ applyCommand: string; /** * Suggested local filename */ filename: string; /** * Manager URL embedded in the manifest */ managerUrl: string; /** * True when the operator image is still building. The manifest contains a placeholder image () and must not be applied yet — re-render once the operator-image package is ready to get the real image. */ imagePending: boolean; operatorImage: RemoteOperatorInstallReceipt | null; }; /** @internal */ export const RenderOperatorManifestResponse$inboundSchema: z.ZodType< RenderOperatorManifestResponse, unknown > = z.object({ manifest: z.string(), applyCommand: z.string(), filename: z.string(), managerUrl: z.string(), imagePending: z.boolean(), operatorImage: z.nullable(RemoteOperatorInstallReceipt$inboundSchema), }); export function renderOperatorManifestResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => RenderOperatorManifestResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RenderOperatorManifestResponse' from JSON`, ); }