@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.
28 lines • 996 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 HunkRep$inboundSchema = z.object({
startingLineNumber: z.number().int(),
lines: z.string().optional(),
projKey: z.string().optional(),
flagKey: z.string().optional(),
aliases: z.array(z.string()).optional(),
});
/** @internal */
export const HunkRep$outboundSchema = z.object({
startingLineNumber: z.number().int(),
lines: z.string().optional(),
projKey: z.string().optional(),
flagKey: z.string().optional(),
aliases: z.array(z.string()).optional(),
});
export function hunkRepToJSON(hunkRep) {
return JSON.stringify(HunkRep$outboundSchema.parse(hunkRep));
}
export function hunkRepFromJSON(jsonString) {
return safeParse(jsonString, (x) => HunkRep$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HunkRep' from JSON`);
}
//# sourceMappingURL=hunkrep.js.map