/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 22457146eef0 */ 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 { OperationsBundleDownload, OperationsBundleDownload$inboundSchema, } from "./operationsbundledownload.js"; /** * Target operations-bundle set the Operator should converge its loaded plugin registry toward. */ export type TargetOperationsBundleSet = { hash: string; bundles: Array; }; /** @internal */ export const TargetOperationsBundleSet$inboundSchema: z.ZodType< TargetOperationsBundleSet, unknown > = z.object({ hash: z.string(), bundles: z.array(OperationsBundleDownload$inboundSchema), }); export function targetOperationsBundleSetFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => TargetOperationsBundleSet$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetOperationsBundleSet' from JSON`, ); }