@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.
33 lines • 1.34 kB
JavaScript
/*
* 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";
import { Link$inboundSchema, Link$outboundSchema, } from "./link.js";
import { RepositoryRep$inboundSchema, RepositoryRep$outboundSchema, } from "./repositoryrep.js";
/** @internal */
export const RepositoryCollectionRep$inboundSchema = z.object({
_links: z.record(Link$inboundSchema),
items: z.array(RepositoryRep$inboundSchema),
}).transform((v) => {
return remap$(v, {
"_links": "links",
});
});
/** @internal */
export const RepositoryCollectionRep$outboundSchema = z.object({
links: z.record(Link$outboundSchema),
items: z.array(RepositoryRep$outboundSchema),
}).transform((v) => {
return remap$(v, {
links: "_links",
});
});
export function repositoryCollectionRepToJSON(repositoryCollectionRep) {
return JSON.stringify(RepositoryCollectionRep$outboundSchema.parse(repositoryCollectionRep));
}
export function repositoryCollectionRepFromJSON(jsonString) {
return safeParse(jsonString, (x) => RepositoryCollectionRep$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RepositoryCollectionRep' from JSON`);
}
//# sourceMappingURL=repositorycollectionrep.js.map