@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.
26 lines • 985 B
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const GetExperimentRequest$inboundSchema = z.object({
projectKey: z.string(),
environmentKey: z.string(),
experimentKey: z.string(),
expand: z.string().optional(),
});
/** @internal */
export const GetExperimentRequest$outboundSchema = z.object({
projectKey: z.string(),
environmentKey: z.string(),
experimentKey: z.string(),
expand: z.string().optional(),
});
export function getExperimentRequestToJSON(getExperimentRequest) {
return JSON.stringify(GetExperimentRequest$outboundSchema.parse(getExperimentRequest));
}
export function getExperimentRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => GetExperimentRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetExperimentRequest' from JSON`);
}
//# sourceMappingURL=getexperiment.js.map