@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.
27 lines • 1.1 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
import { TreatmentParameterInput$inboundSchema, TreatmentParameterInput$outboundSchema, } from "./treatmentparameterinput.js";
/** @internal */
export const TreatmentInput$inboundSchema = z.object({
name: z.string(),
baseline: z.boolean(),
allocationPercent: z.string(),
parameters: z.array(TreatmentParameterInput$inboundSchema),
});
/** @internal */
export const TreatmentInput$outboundSchema = z.object({
name: z.string(),
baseline: z.boolean(),
allocationPercent: z.string(),
parameters: z.array(TreatmentParameterInput$outboundSchema),
});
export function treatmentInputToJSON(treatmentInput) {
return JSON.stringify(TreatmentInput$outboundSchema.parse(treatmentInput));
}
export function treatmentInputFromJSON(jsonString) {
return safeParse(jsonString, (x) => TreatmentInput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TreatmentInput' from JSON`);
}
//# sourceMappingURL=treatmentinput.js.map