@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.
38 lines • 1.49 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 PatchFeatureFlagRequest$inboundSchema = z.object({
projectKey: z.string(),
featureFlagKey: z.string(),
ignoreConflicts: z.boolean().optional(),
dryRun: z.boolean().optional(),
PatchWithComment: components.PatchWithComment$inboundSchema,
}).transform((v) => {
return remap$(v, {
"PatchWithComment": "patchWithComment",
});
});
/** @internal */
export const PatchFeatureFlagRequest$outboundSchema = z.object({
projectKey: z.string(),
featureFlagKey: z.string(),
ignoreConflicts: z.boolean().optional(),
dryRun: z.boolean().optional(),
patchWithComment: components.PatchWithComment$outboundSchema,
}).transform((v) => {
return remap$(v, {
patchWithComment: "PatchWithComment",
});
});
export function patchFeatureFlagRequestToJSON(patchFeatureFlagRequest) {
return JSON.stringify(PatchFeatureFlagRequest$outboundSchema.parse(patchFeatureFlagRequest));
}
export function patchFeatureFlagRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => PatchFeatureFlagRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchFeatureFlagRequest' from JSON`);
}
//# sourceMappingURL=patchfeatureflag.js.map