UNPKG

@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.

32 lines • 1.19 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import * as components from "../components/index.js"; /** @internal */ export const PostAIConfigRequest$inboundSchema = z.object({ projectKey: z.string(), AIConfigPost: components.AIConfigPost$inboundSchema, }).transform((v) => { return remap$(v, { "AIConfigPost": "aiConfigPost", }); }); /** @internal */ export const PostAIConfigRequest$outboundSchema = z.object({ projectKey: z.string(), aiConfigPost: components.AIConfigPost$outboundSchema, }).transform((v) => { return remap$(v, { aiConfigPost: "AIConfigPost", }); }); export function postAIConfigRequestToJSON(postAIConfigRequest) { return JSON.stringify(PostAIConfigRequest$outboundSchema.parse(postAIConfigRequest)); } export function postAIConfigRequestFromJSON(jsonString) { return safeParse(jsonString, (x) => PostAIConfigRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostAIConfigRequest' from JSON`); } //# sourceMappingURL=postaiconfig.js.map