/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 48c8296debb1 */ 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"; /** * Rollup of this project's pull-mode installations by operations-bundle sync status, reflecting the currently enabled plugin set. */ export type OperatorInstallationsRollup = { /** * Total pull-mode installations tracked. */ total: number; ready: number; syncing: number; stuck: number; }; /** @internal */ export const OperatorInstallationsRollup$inboundSchema: z.ZodType< OperatorInstallationsRollup, unknown > = z.object({ total: z.int(), ready: z.int(), syncing: z.int(), stuck: z.int(), }); export function operatorInstallationsRollupFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => OperatorInstallationsRollup$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OperatorInstallationsRollup' from JSON`, ); }