UNPKG

altair-graphql-core

Version:

Several of the core logic for altair graphql client

44 lines 1.79 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.altairPluginServerPluginListResponseSchema = exports.altairPluginServerApprovedPluginsYamlManifestSchema = exports.altairPluginServerPluginDefinitionSchema = void 0; const v4_1 = require("zod/v4"); /** * Altair Plugin Server - Plugin definition */ exports.altairPluginServerPluginDefinitionSchema = (0, v4_1.object)({ /** * The plugin ID (used to install the plugin) */ id: (0, v4_1.string)().meta({ description: 'The plugin ID (used to install the plugin)' }), /** * The display name of the plugin */ name: (0, v4_1.string)().meta({ description: 'The display name of the plugin' }), /** * The description of the plugin */ description: (0, v4_1.string)().meta({ description: 'The description of the plugin' }), /** * The author of the plugin */ author: (0, v4_1.string)().meta({ description: 'The author of the plugin' }), /** * The GitHub repository of the plugin */ repository: (0, v4_1.string)().meta({ description: 'The GitHub repository of the plugin' }), /** * The homepage of the plugin */ homepage: (0, v4_1.string)().optional().meta({ description: 'The homepage of the plugin' }), }); exports.altairPluginServerApprovedPluginsYamlManifestSchema = (0, v4_1.object)({ plugins: (0, v4_1.record)((0, v4_1.string)(), exports.altairPluginServerPluginDefinitionSchema).meta({ description: 'List of approved plugins', }), }); exports.altairPluginServerPluginListResponseSchema = (0, v4_1.object)({ plugins: exports.altairPluginServerPluginDefinitionSchema .array() .meta({ description: 'List of approved plugins' }), }); //# sourceMappingURL=schema.js.map