@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.
21 lines • 795 B
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
import { CoreLink$inboundSchema, CoreLink$outboundSchema, } from "./corelink.js";
/** @internal */
export const ParentLink$inboundSchema = z.object({
parent: CoreLink$inboundSchema,
});
/** @internal */
export const ParentLink$outboundSchema = z.object({
parent: CoreLink$outboundSchema,
});
export function parentLinkToJSON(parentLink) {
return JSON.stringify(ParentLink$outboundSchema.parse(parentLink));
}
export function parentLinkFromJSON(jsonString) {
return safeParse(jsonString, (x) => ParentLink$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ParentLink' from JSON`);
}
//# sourceMappingURL=parentlink.js.map