UNPKG

@launchdarkly/mcp-server

Version:

The local [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server for [LaunchDarkly](https://launchdarkly.com/) federal and European Union (EU) environments.

36 lines • 1.41 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import * as components from "../components/index.js"; /** @internal */ export const PatchExperimentRequest$inboundSchema = z.object({ projectKey: z.string(), environmentKey: z.string(), experimentKey: z.string(), ExperimentPatchInput: components.ExperimentPatchInput$inboundSchema, }).transform((v) => { return remap$(v, { "ExperimentPatchInput": "experimentPatchInput", }); }); /** @internal */ export const PatchExperimentRequest$outboundSchema = z.object({ projectKey: z.string(), environmentKey: z.string(), experimentKey: z.string(), experimentPatchInput: components.ExperimentPatchInput$outboundSchema, }).transform((v) => { return remap$(v, { experimentPatchInput: "ExperimentPatchInput", }); }); export function patchExperimentRequestToJSON(patchExperimentRequest) { return JSON.stringify(PatchExperimentRequest$outboundSchema.parse(patchExperimentRequest)); } export function patchExperimentRequestFromJSON(jsonString) { return safeParse(jsonString, (x) => PatchExperimentRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchExperimentRequest' from JSON`); } //# sourceMappingURL=patchexperiment.js.map