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.07 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"; /** * Whether this statement should allow or deny actions on the resources. */ export const AiConfigsAccessAllowedReasonEffect = { Allow: "allow", Deny: "deny", }; /** @internal */ export const AiConfigsAccessAllowedReasonEffect$inboundSchema = z.nativeEnum(AiConfigsAccessAllowedReasonEffect); /** @internal */ export const AiConfigsAccessAllowedReasonEffect$outboundSchema = AiConfigsAccessAllowedReasonEffect$inboundSchema; /** @internal */ export const AiConfigsAccessAllowedReason$inboundSchema = z.object({ resources: z.array(z.string()).optional(), notResources: z.array(z.string()).optional(), actions: z.array(z.string()).optional(), notActions: z.array(z.string()).optional(), effect: AiConfigsAccessAllowedReasonEffect$inboundSchema, role_name: z.string().optional(), }).transform((v) => { return remap$(v, { "role_name": "roleName", }); }); /** @internal */ export const AiConfigsAccessAllowedReason$outboundSchema = z.object({ resources: z.array(z.string()).optional(), notResources: z.array(z.string()).optional(), actions: z.array(z.string()).optional(), notActions: z.array(z.string()).optional(), effect: AiConfigsAccessAllowedReasonEffect$outboundSchema, roleName: z.string().optional(), }).transform((v) => { return remap$(v, { roleName: "role_name", }); }); export function aiConfigsAccessAllowedReasonToJSON(aiConfigsAccessAllowedReason) { return JSON.stringify(AiConfigsAccessAllowedReason$outboundSchema.parse(aiConfigsAccessAllowedReason)); } export function aiConfigsAccessAllowedReasonFromJSON(jsonString) { return safeParse(jsonString, (x) => AiConfigsAccessAllowedReason$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AiConfigsAccessAllowedReason' from JSON`); } //# sourceMappingURL=aiconfigsaccessallowedreason.js.map