@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.
28 lines • 1.2 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const GetEnvironmentsByProjectRequest$inboundSchema = z.object({
projectKey: z.string(),
limit: z.number().int().optional(),
offset: z.number().int().optional(),
filter: z.string().optional(),
sort: z.string().optional(),
});
/** @internal */
export const GetEnvironmentsByProjectRequest$outboundSchema = z.object({
projectKey: z.string(),
limit: z.number().int().optional(),
offset: z.number().int().optional(),
filter: z.string().optional(),
sort: z.string().optional(),
});
export function getEnvironmentsByProjectRequestToJSON(getEnvironmentsByProjectRequest) {
return JSON.stringify(GetEnvironmentsByProjectRequest$outboundSchema.parse(getEnvironmentsByProjectRequest));
}
export function getEnvironmentsByProjectRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => GetEnvironmentsByProjectRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEnvironmentsByProjectRequest' from JSON`);
}
//# sourceMappingURL=getenvironmentsbyproject.js.map