@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 • 1.19 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 { AiConfigsAccessAllowedRep$inboundSchema, AiConfigsAccessAllowedRep$outboundSchema, } from "./aiconfigsaccessallowedrep.js";
import { AiConfigsAccessDenied$inboundSchema, AiConfigsAccessDenied$outboundSchema, } from "./aiconfigsaccessdenied.js";
/** @internal */
export const AiConfigsAccess$inboundSchema = z.object({
denied: z.array(AiConfigsAccessDenied$inboundSchema),
allowed: z.array(AiConfigsAccessAllowedRep$inboundSchema),
});
/** @internal */
export const AiConfigsAccess$outboundSchema = z.object({
denied: z.array(AiConfigsAccessDenied$outboundSchema),
allowed: z.array(AiConfigsAccessAllowedRep$outboundSchema),
});
export function aiConfigsAccessToJSON(aiConfigsAccess) {
return JSON.stringify(AiConfigsAccess$outboundSchema.parse(aiConfigsAccess));
}
export function aiConfigsAccessFromJSON(jsonString) {
return safeParse(jsonString, (x) => AiConfigsAccess$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AiConfigsAccess' from JSON`);
}
//# sourceMappingURL=aiconfigsaccess.js.map