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