"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toolReadContentOutputSchema = exports.toolReadContentArgsSchema = exports.TOOL_READ_CONTENT_DESCRIPTION = void 0;
const zod_1 = require("zod");
exports.TOOL_READ_CONTENT_DESCRIPTION = 'Read a dashboard or chart as JSON using its slug. Call this before editing.';
exports.toolReadContentArgsSchema = zod_1.z.object({
    slug: zod_1.z.string().min(1).describe('Slug of the dashboard or chart to read.'),
    type: zod_1.z
        .enum(['dashboard', 'chart'])
        .describe('Type of Lightdash content to read.'),
});
const toolReadContentMetadataSchema = zod_1.z.discriminatedUnion('status', [
    zod_1.z.object({ status: zod_1.z.literal('error') }),
    zod_1.z.object({
        status: zod_1.z.literal('success'),
        slug: zod_1.z.string(),
        name: zod_1.z.string(),
        href: zod_1.z.string(),
    }),
]);
exports.toolReadContentOutputSchema = zod_1.z.object({
    result: zod_1.z.string(),
    metadata: toolReadContentMetadataSchema,
});
//# sourceMappingURL=toolReadContentArgs.js.map