@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.
122 lines • 5.75 kB
JavaScript
"use strict";
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.AuditLogEntryListingRep$outboundSchema = exports.AuditLogEntryListingRep$inboundSchema = void 0;
exports.auditLogEntryListingRepToJSON = auditLogEntryListingRepToJSON;
exports.auditLogEntryListingRepFromJSON = auditLogEntryListingRepFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const authorizedappdatarep_js_1 = require("./authorizedappdatarep.js");
const link_js_1 = require("./link.js");
const memberdatarep_js_1 = require("./memberdatarep.js");
const parentresourcerep_js_1 = require("./parentresourcerep.js");
const relatedaiconfig_js_1 = require("./relatedaiconfig.js");
const relatedexperiment_js_1 = require("./relatedexperiment.js");
const relatedflag_js_1 = require("./relatedflag.js");
const resourceaccess_js_1 = require("./resourceaccess.js");
const subjectdatarep_js_1 = require("./subjectdatarep.js");
const targetresourcerep_js_1 = require("./targetresourcerep.js");
const tokensummary_js_1 = require("./tokensummary.js");
/** @internal */
exports.AuditLogEntryListingRep$inboundSchema = z.object({
_links: z.record(link_js_1.Link$inboundSchema),
_id: z.string(),
_accountId: z.string(),
date: z.number().int(),
accesses: z.array(resourceaccess_js_1.ResourceAccess$inboundSchema),
kind: z.string(),
name: z.string(),
description: z.string(),
shortDescription: z.string(),
comment: z.string().optional(),
relatedFlag: relatedflag_js_1.RelatedFlag$inboundSchema.optional(),
relatedExperiment: relatedexperiment_js_1.RelatedExperiment$inboundSchema.optional(),
relatedAIConfig: relatedaiconfig_js_1.RelatedAIConfig$inboundSchema.optional(),
subject: subjectdatarep_js_1.SubjectDataRep$inboundSchema.optional(),
member: memberdatarep_js_1.MemberDataRep$inboundSchema.optional(),
token: tokensummary_js_1.TokenSummary$inboundSchema.optional(),
app: authorizedappdatarep_js_1.AuthorizedAppDataRep$inboundSchema.optional(),
titleVerb: z.string().optional(),
title: z.string().optional(),
target: targetresourcerep_js_1.TargetResourceRep$inboundSchema.optional(),
parent: parentresourcerep_js_1.ParentResourceRep$inboundSchema.optional(),
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
"_links": "links",
"_id": "id",
"_accountId": "accountId",
});
});
/** @internal */
exports.AuditLogEntryListingRep$outboundSchema = z.object({
links: z.record(link_js_1.Link$outboundSchema),
id: z.string(),
accountId: z.string(),
date: z.number().int(),
accesses: z.array(resourceaccess_js_1.ResourceAccess$outboundSchema),
kind: z.string(),
name: z.string(),
description: z.string(),
shortDescription: z.string(),
comment: z.string().optional(),
relatedFlag: relatedflag_js_1.RelatedFlag$outboundSchema.optional(),
relatedExperiment: relatedexperiment_js_1.RelatedExperiment$outboundSchema.optional(),
relatedAIConfig: relatedaiconfig_js_1.RelatedAIConfig$outboundSchema.optional(),
subject: subjectdatarep_js_1.SubjectDataRep$outboundSchema.optional(),
member: memberdatarep_js_1.MemberDataRep$outboundSchema.optional(),
token: tokensummary_js_1.TokenSummary$outboundSchema.optional(),
app: authorizedappdatarep_js_1.AuthorizedAppDataRep$outboundSchema.optional(),
titleVerb: z.string().optional(),
title: z.string().optional(),
target: targetresourcerep_js_1.TargetResourceRep$outboundSchema.optional(),
parent: parentresourcerep_js_1.ParentResourceRep$outboundSchema.optional(),
}).transform((v) => {
return (0, primitives_js_1.remap)(v, {
links: "_links",
id: "_id",
accountId: "_accountId",
});
});
function auditLogEntryListingRepToJSON(auditLogEntryListingRep) {
return JSON.stringify(exports.AuditLogEntryListingRep$outboundSchema.parse(auditLogEntryListingRep));
}
function auditLogEntryListingRepFromJSON(jsonString) {
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AuditLogEntryListingRep$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AuditLogEntryListingRep' from JSON`);
}
//# sourceMappingURL=auditlogentrylistingrep.js.map