@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.
36 lines • 1.44 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { TreatmentParameterInput, TreatmentParameterInput$Outbound } from "./treatmentparameterinput.js";
export type TreatmentInput = {
/**
* The treatment name
*/
name: string;
/**
* Whether this treatment is the baseline to compare other treatments against
*/
baseline: boolean;
/**
* The percentage of traffic allocated to this treatment during the iteration
*/
allocationPercent: string;
/**
* Details on the flag and variation to use for this treatment
*/
parameters: Array<TreatmentParameterInput>;
};
/** @internal */
export declare const TreatmentInput$inboundSchema: z.ZodType<TreatmentInput, z.ZodTypeDef, unknown>;
/** @internal */
export type TreatmentInput$Outbound = {
name: string;
baseline: boolean;
allocationPercent: string;
parameters: Array<TreatmentParameterInput$Outbound>;
};
/** @internal */
export declare const TreatmentInput$outboundSchema: z.ZodType<TreatmentInput$Outbound, z.ZodTypeDef, TreatmentInput>;
export declare function treatmentInputToJSON(treatmentInput: TreatmentInput): string;
export declare function treatmentInputFromJSON(jsonString: string): SafeParseResult<TreatmentInput, SDKValidationError>;
//# sourceMappingURL=treatmentinput.d.ts.map