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.

48 lines (42 loc) • 1.13 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type RelatedFlag = { key: string; }; /** @internal */ export const RelatedFlag$inboundSchema: z.ZodType< RelatedFlag, z.ZodTypeDef, unknown > = z.object({ key: z.string(), }); /** @internal */ export type RelatedFlag$Outbound = { key: string; }; /** @internal */ export const RelatedFlag$outboundSchema: z.ZodType< RelatedFlag$Outbound, z.ZodTypeDef, RelatedFlag > = z.object({ key: z.string(), }); export function relatedFlagToJSON(relatedFlag: RelatedFlag): string { return JSON.stringify(RelatedFlag$outboundSchema.parse(relatedFlag)); } export function relatedFlagFromJSON( jsonString: string, ): SafeParseResult<RelatedFlag, SDKValidationError> { return safeParse( jsonString, (x) => RelatedFlag$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RelatedFlag' from JSON`, ); }