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.

50 lines • 2.13 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 { Link$inboundSchema, Link$outboundSchema, } from "./link.js"; import { MetricInGroupRep$inboundSchema, MetricInGroupRep$outboundSchema, } from "./metricingrouprep.js"; /** * The type of the metric group */ export const DependentMetricGroupRepWithMetricsKind = { Funnel: "funnel", Standard: "standard", }; /** @internal */ export const DependentMetricGroupRepWithMetricsKind$inboundSchema = z.nativeEnum(DependentMetricGroupRepWithMetricsKind); /** @internal */ export const DependentMetricGroupRepWithMetricsKind$outboundSchema = DependentMetricGroupRepWithMetricsKind$inboundSchema; /** @internal */ export const DependentMetricGroupRepWithMetrics$inboundSchema = z.object({ key: z.string(), name: z.string(), kind: DependentMetricGroupRepWithMetricsKind$inboundSchema, _links: z.record(Link$inboundSchema), metrics: z.array(MetricInGroupRep$inboundSchema).optional(), }).transform((v) => { return remap$(v, { "_links": "links", }); }); /** @internal */ export const DependentMetricGroupRepWithMetrics$outboundSchema = z.object({ key: z.string(), name: z.string(), kind: DependentMetricGroupRepWithMetricsKind$outboundSchema, links: z.record(Link$outboundSchema), metrics: z.array(MetricInGroupRep$outboundSchema).optional(), }).transform((v) => { return remap$(v, { links: "_links", }); }); export function dependentMetricGroupRepWithMetricsToJSON(dependentMetricGroupRepWithMetrics) { return JSON.stringify(DependentMetricGroupRepWithMetrics$outboundSchema.parse(dependentMetricGroupRepWithMetrics)); } export function dependentMetricGroupRepWithMetricsFromJSON(jsonString) { return safeParse(jsonString, (x) => DependentMetricGroupRepWithMetrics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DependentMetricGroupRepWithMetrics' from JSON`); } //# sourceMappingURL=dependentmetricgrouprepwithmetrics.js.map