/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 1c146411056c */ 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 { OperationsPlugin, OperationsPlugin$inboundSchema, } from "./operationsplugin.js"; import { OperatorInstallationsRollup, OperatorInstallationsRollup$inboundSchema, } from "./operatorinstallationsrollup.js"; export type ListOperationsPluginsResponse = { plugins: Array; /** * Rollup of this project's pull-mode installations by operations-bundle sync status, reflecting the currently enabled plugin set. */ installations: OperatorInstallationsRollup; }; /** @internal */ export const ListOperationsPluginsResponse$inboundSchema: z.ZodType< ListOperationsPluginsResponse, unknown > = z.object({ plugins: z.array(OperationsPlugin$inboundSchema), installations: OperatorInstallationsRollup$inboundSchema, }); export function listOperationsPluginsResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ListOperationsPluginsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListOperationsPluginsResponse' from JSON`, ); }