/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 064d48592491 */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; import * as models from "../index.js"; export type SetOperationsPluginEnabledGlobals = { /** * Workspace name. Platform API keys already select a workspace; other authentication methods can configure it once on the SDK client. */ workspace?: string | undefined; }; export type SetOperationsPluginEnabledRequest = { /** * Plugin name. */ name: string; /** * Filter by project ID or name. */ project: string; setOperationsPluginEnabledRequest?: | models.SetOperationsPluginEnabledRequest | undefined; }; /** @internal */ export type SetOperationsPluginEnabledRequest$Outbound = { name: string; project: string; SetOperationsPluginEnabledRequest?: | models.SetOperationsPluginEnabledRequest$Outbound | undefined; }; /** @internal */ export const SetOperationsPluginEnabledRequest$outboundSchema: z.ZodType< SetOperationsPluginEnabledRequest$Outbound, SetOperationsPluginEnabledRequest > = z.object({ name: z.string(), project: z.string(), setOperationsPluginEnabledRequest: models .SetOperationsPluginEnabledRequest$outboundSchema.optional(), }).transform((v) => { return remap$(v, { setOperationsPluginEnabledRequest: "SetOperationsPluginEnabledRequest", }); }); export function setOperationsPluginEnabledRequestToJSON( setOperationsPluginEnabledRequest: SetOperationsPluginEnabledRequest, ): string { return JSON.stringify( SetOperationsPluginEnabledRequest$outboundSchema.parse( setOperationsPluginEnabledRequest, ), ); }