@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.
24 lines • 826 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 PatchOperation$inboundSchema = z.object({
op: z.string(),
path: z.string(),
value: z.any().optional(),
});
/** @internal */
export const PatchOperation$outboundSchema = z.object({
op: z.string(),
path: z.string(),
value: z.any().optional(),
});
export function patchOperationToJSON(patchOperation) {
return JSON.stringify(PatchOperation$outboundSchema.parse(patchOperation));
}
export function patchOperationFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchOperation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchOperation' from JSON`);
}
//# sourceMappingURL=patchoperation.js.map