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.

58 lines • 2.7 kB
import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Whether this statement should allow or deny actions on the resources. */ export declare const AiConfigsAccessAllowedReasonEffect: { readonly Allow: "allow"; readonly Deny: "deny"; }; /** * Whether this statement should allow or deny actions on the resources. */ export type AiConfigsAccessAllowedReasonEffect = ClosedEnum<typeof AiConfigsAccessAllowedReasonEffect>; export type AiConfigsAccessAllowedReason = { /** * Resource specifier strings */ resources?: Array<string> | undefined; /** * Targeted resources are the resources NOT in this list. The <code>resources</code> and <code>notActions</code> fields must be empty to use this field. */ notResources?: Array<string> | undefined; /** * Actions to perform on a resource */ actions?: Array<string> | undefined; /** * Targeted actions are the actions NOT in this list. The <code>actions</code> and <code>notResources</code> fields must be empty to use this field. */ notActions?: Array<string> | undefined; /** * Whether this statement should allow or deny actions on the resources. */ effect: AiConfigsAccessAllowedReasonEffect; roleName?: string | undefined; }; /** @internal */ export declare const AiConfigsAccessAllowedReasonEffect$inboundSchema: z.ZodNativeEnum<typeof AiConfigsAccessAllowedReasonEffect>; /** @internal */ export declare const AiConfigsAccessAllowedReasonEffect$outboundSchema: z.ZodNativeEnum<typeof AiConfigsAccessAllowedReasonEffect>; /** @internal */ export declare const AiConfigsAccessAllowedReason$inboundSchema: z.ZodType<AiConfigsAccessAllowedReason, z.ZodTypeDef, unknown>; /** @internal */ export type AiConfigsAccessAllowedReason$Outbound = { resources?: Array<string> | undefined; notResources?: Array<string> | undefined; actions?: Array<string> | undefined; notActions?: Array<string> | undefined; effect: string; role_name?: string | undefined; }; /** @internal */ export declare const AiConfigsAccessAllowedReason$outboundSchema: z.ZodType<AiConfigsAccessAllowedReason$Outbound, z.ZodTypeDef, AiConfigsAccessAllowedReason>; export declare function aiConfigsAccessAllowedReasonToJSON(aiConfigsAccessAllowedReason: AiConfigsAccessAllowedReason): string; export declare function aiConfigsAccessAllowedReasonFromJSON(jsonString: string): SafeParseResult<AiConfigsAccessAllowedReason, SDKValidationError>; //# sourceMappingURL=aiconfigsaccessallowedreason.d.ts.map