UNPKG

@takashito/linode-mcp-server

Version:

MCP server for Linode API

90 lines 3.77 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getLogDestinationHistorySchema = exports.deleteLogDestinationSchema = exports.updateLogDestinationSchema = exports.createLogDestinationSchema = exports.getLogDestinationSchema = exports.listLogDestinationsSchema = exports.getLogStreamHistorySchema = exports.deleteLogStreamSchema = exports.updateLogStreamSchema = exports.createLogStreamSchema = exports.getLogStreamSchema = exports.listLogStreamsSchema = void 0; const zod_1 = require("zod"); const schemas_1 = require("../common/schemas"); /** * Schema for listing log streams */ exports.listLogStreamsSchema = zod_1.z.object({ ...schemas_1.pagingParamsSchema.shape }); /** * Schema for getting a specific log stream */ exports.getLogStreamSchema = zod_1.z.object({ streamId: zod_1.z.number().describe('The ID of the log stream') }); /** * Schema for creating a log stream */ exports.createLogStreamSchema = zod_1.z.object({ label: zod_1.z.string().describe('The label for the log stream'), filters: zod_1.z.record(zod_1.z.any()).describe('The filters configuration for the log stream'), aggregation: zod_1.z.record(zod_1.z.any()).describe('The aggregation configuration for the log stream') }); /** * Schema for updating a log stream */ exports.updateLogStreamSchema = zod_1.z.object({ streamId: zod_1.z.number().describe('The ID of the log stream to update'), label: zod_1.z.string().optional().describe('The label for the log stream'), filters: zod_1.z.record(zod_1.z.any()).optional().describe('The filters configuration for the log stream'), aggregation: zod_1.z.record(zod_1.z.any()).optional().describe('The aggregation configuration for the log stream') }); /** * Schema for deleting a log stream */ exports.deleteLogStreamSchema = zod_1.z.object({ streamId: zod_1.z.number().describe('The ID of the log stream to delete') }); /** * Schema for getting a log stream's history */ exports.getLogStreamHistorySchema = zod_1.z.object({ streamId: zod_1.z.number().describe('The ID of the log stream'), ...schemas_1.pagingParamsSchema.shape }); /** * Schema for listing log destinations */ exports.listLogDestinationsSchema = zod_1.z.object({ ...schemas_1.pagingParamsSchema.shape }); /** * Schema for getting a specific log destination */ exports.getLogDestinationSchema = zod_1.z.object({ destinationId: zod_1.z.number().describe('The ID of the log destination') }); /** * Schema for creating a log destination */ exports.createLogDestinationSchema = zod_1.z.object({ label: zod_1.z.string().describe('The label for the log destination'), type: zod_1.z.string().describe('The type of the log destination'), config: zod_1.z.record(zod_1.z.any()).describe('The configuration for the log destination') }); /** * Schema for updating a log destination */ exports.updateLogDestinationSchema = zod_1.z.object({ destinationId: zod_1.z.number().describe('The ID of the log destination to update'), label: zod_1.z.string().optional().describe('The label for the log destination'), type: zod_1.z.string().optional().describe('The type of the log destination'), config: zod_1.z.record(zod_1.z.any()).optional().describe('The configuration for the log destination') }); /** * Schema for deleting a log destination */ exports.deleteLogDestinationSchema = zod_1.z.object({ destinationId: zod_1.z.number().describe('The ID of the log destination to delete') }); /** * Schema for getting a log destination's history */ exports.getLogDestinationHistorySchema = zod_1.z.object({ destinationId: zod_1.z.number().describe('The ID of the log destination'), ...schemas_1.pagingParamsSchema.shape }); //# sourceMappingURL=schemas.js.map