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.

37 lines • 1.51 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 { Experiment$inboundSchema, Experiment$outboundSchema, } from "./experiment.js"; import { Link$inboundSchema, Link$outboundSchema, } from "./link.js"; /** @internal */ export const ExperimentCollectionRep$inboundSchema = z.object({ items: z.array(Experiment$inboundSchema), total_count: z.number().int().optional(), _links: z.record(Link$inboundSchema).optional(), }).transform((v) => { return remap$(v, { "total_count": "totalCount", "_links": "links", }); }); /** @internal */ export const ExperimentCollectionRep$outboundSchema = z.object({ items: z.array(Experiment$outboundSchema), totalCount: z.number().int().optional(), links: z.record(Link$outboundSchema).optional(), }).transform((v) => { return remap$(v, { totalCount: "total_count", links: "_links", }); }); export function experimentCollectionRepToJSON(experimentCollectionRep) { return JSON.stringify(ExperimentCollectionRep$outboundSchema.parse(experimentCollectionRep)); } export function experimentCollectionRepFromJSON(jsonString) { return safeParse(jsonString, (x) => ExperimentCollectionRep$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExperimentCollectionRep' from JSON`); } //# sourceMappingURL=experimentcollectionrep.js.map