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.

84 lines • 4 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"; import { AuthorizedAppDataRep$inboundSchema, AuthorizedAppDataRep$outboundSchema, } from "./authorizedappdatarep.js"; import { Link$inboundSchema, Link$outboundSchema, } from "./link.js"; import { MemberDataRep$inboundSchema, MemberDataRep$outboundSchema, } from "./memberdatarep.js"; import { ParentResourceRep$inboundSchema, ParentResourceRep$outboundSchema, } from "./parentresourcerep.js"; import { RelatedAIConfig$inboundSchema, RelatedAIConfig$outboundSchema, } from "./relatedaiconfig.js"; import { RelatedExperiment$inboundSchema, RelatedExperiment$outboundSchema, } from "./relatedexperiment.js"; import { RelatedFlag$inboundSchema, RelatedFlag$outboundSchema, } from "./relatedflag.js"; import { ResourceAccess$inboundSchema, ResourceAccess$outboundSchema, } from "./resourceaccess.js"; import { SubjectDataRep$inboundSchema, SubjectDataRep$outboundSchema, } from "./subjectdatarep.js"; import { TargetResourceRep$inboundSchema, TargetResourceRep$outboundSchema, } from "./targetresourcerep.js"; import { TokenSummary$inboundSchema, TokenSummary$outboundSchema, } from "./tokensummary.js"; /** @internal */ export const AuditLogEntryListingRep$inboundSchema = z.object({ _links: z.record(Link$inboundSchema), _id: z.string(), _accountId: z.string(), date: z.number().int(), accesses: z.array(ResourceAccess$inboundSchema), kind: z.string(), name: z.string(), description: z.string(), shortDescription: z.string(), comment: z.string().optional(), relatedFlag: RelatedFlag$inboundSchema.optional(), relatedExperiment: RelatedExperiment$inboundSchema.optional(), relatedAIConfig: RelatedAIConfig$inboundSchema.optional(), subject: SubjectDataRep$inboundSchema.optional(), member: MemberDataRep$inboundSchema.optional(), token: TokenSummary$inboundSchema.optional(), app: AuthorizedAppDataRep$inboundSchema.optional(), titleVerb: z.string().optional(), title: z.string().optional(), target: TargetResourceRep$inboundSchema.optional(), parent: ParentResourceRep$inboundSchema.optional(), }).transform((v) => { return remap$(v, { "_links": "links", "_id": "id", "_accountId": "accountId", }); }); /** @internal */ export const AuditLogEntryListingRep$outboundSchema = z.object({ links: z.record(Link$outboundSchema), id: z.string(), accountId: z.string(), date: z.number().int(), accesses: z.array(ResourceAccess$outboundSchema), kind: z.string(), name: z.string(), description: z.string(), shortDescription: z.string(), comment: z.string().optional(), relatedFlag: RelatedFlag$outboundSchema.optional(), relatedExperiment: RelatedExperiment$outboundSchema.optional(), relatedAIConfig: RelatedAIConfig$outboundSchema.optional(), subject: SubjectDataRep$outboundSchema.optional(), member: MemberDataRep$outboundSchema.optional(), token: TokenSummary$outboundSchema.optional(), app: AuthorizedAppDataRep$outboundSchema.optional(), titleVerb: z.string().optional(), title: z.string().optional(), target: TargetResourceRep$outboundSchema.optional(), parent: ParentResourceRep$outboundSchema.optional(), }).transform((v) => { return remap$(v, { links: "_links", id: "_id", accountId: "_accountId", }); }); export function auditLogEntryListingRepToJSON(auditLogEntryListingRep) { return JSON.stringify(AuditLogEntryListingRep$outboundSchema.parse(auditLogEntryListingRep)); } export function auditLogEntryListingRepFromJSON(jsonString) { return safeParse(jsonString, (x) => AuditLogEntryListingRep$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AuditLogEntryListingRep' from JSON`); } //# sourceMappingURL=auditlogentrylistingrep.js.map