@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.
26 lines • 964 B
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const LayerSnapshotRep$inboundSchema = z.object({
key: z.string(),
name: z.string(),
reservationPercent: z.number().int(),
otherReservationPercent: z.number().int(),
});
/** @internal */
export const LayerSnapshotRep$outboundSchema = z.object({
key: z.string(),
name: z.string(),
reservationPercent: z.number().int(),
otherReservationPercent: z.number().int(),
});
export function layerSnapshotRepToJSON(layerSnapshotRep) {
return JSON.stringify(LayerSnapshotRep$outboundSchema.parse(layerSnapshotRep));
}
export function layerSnapshotRepFromJSON(jsonString) {
return safeParse(jsonString, (x) => LayerSnapshotRep$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LayerSnapshotRep' from JSON`);
}
//# sourceMappingURL=layersnapshotrep.js.map