@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.
36 lines • 1.47 kB
JavaScript
/*
* 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 PatchAIConfigTargetingRequest$inboundSchema = z.object({
projectKey: z.string(),
configKey: z.string(),
AIConfigTargetingPatch: components.AIConfigTargetingPatch$inboundSchema
.optional(),
}).transform((v) => {
return remap$(v, {
"AIConfigTargetingPatch": "aiConfigTargetingPatch",
});
});
/** @internal */
export const PatchAIConfigTargetingRequest$outboundSchema = z.object({
projectKey: z.string(),
configKey: z.string(),
aiConfigTargetingPatch: components.AIConfigTargetingPatch$outboundSchema
.optional(),
}).transform((v) => {
return remap$(v, {
aiConfigTargetingPatch: "AIConfigTargetingPatch",
});
});
export function patchAIConfigTargetingRequestToJSON(patchAIConfigTargetingRequest) {
return JSON.stringify(PatchAIConfigTargetingRequest$outboundSchema.parse(patchAIConfigTargetingRequest));
}
export function patchAIConfigTargetingRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchAIConfigTargetingRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchAIConfigTargetingRequest' from JSON`);
}
//# sourceMappingURL=patchaiconfigtargeting.js.map