/** * Content plugin command types. * These commands are dispatched via the controller's executeCommand() method. */ import type { BaseCommand } from "@bluecadet/launchpad-utils/plugin-interfaces"; import { z } from "zod"; /** * Fetch content from all or specific sources */ export type ContentFetchCommand = BaseCommand & { type: "content.fetch"; sources?: string[]; }; /** * Clear cached content */ export type ContentClearCommand = BaseCommand & { type: "content.clear"; sources?: string[]; temp?: boolean; backups?: boolean; downloads?: boolean; }; /** * Backup content */ export type ContentBackupCommand = BaseCommand & { type: "content.backup"; sources?: string[]; }; /** * Restore content from backup */ export type ContentRestoreCommand = BaseCommand & { type: "content.restore"; sources?: string[]; removeBackups?: boolean; }; /** * Union of all content command types */ export type ContentCommand = ContentFetchCommand | ContentClearCommand | ContentBackupCommand | ContentRestoreCommand; export type ContentCommandMap = { "content.fetch": { input: ContentFetchCommand; output: undefined; }; "content.clear": { input: ContentClearCommand; output: undefined; }; "content.backup": { input: ContentBackupCommand; output: undefined; }; "content.restore": { input: ContentRestoreCommand; output: undefined; }; }; export declare const contentFetchCommandSchema: z.ZodObject<{ type: z.ZodLiteral<"content.fetch">; sources: z.ZodOptional>; }, z.core.$strict>; export declare const contentClearCommandSchema: z.ZodObject<{ type: z.ZodLiteral<"content.clear">; sources: z.ZodOptional>; temp: z.ZodOptional; backups: z.ZodOptional; downloads: z.ZodOptional; }, z.core.$strict>; export declare const contentBackupCommandSchema: z.ZodObject<{ type: z.ZodLiteral<"content.backup">; sources: z.ZodOptional>; }, z.core.$strict>; export declare const contentRestoreCommandSchema: z.ZodObject<{ type: z.ZodLiteral<"content.restore">; sources: z.ZodOptional>; removeBackups: z.ZodOptional; }, z.core.$strict>; export declare const contentCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"content.fetch">; sources: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"content.clear">; sources: z.ZodOptional>; temp: z.ZodOptional; backups: z.ZodOptional; downloads: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"content.backup">; sources: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"content.restore">; sources: z.ZodOptional>; removeBackups: z.ZodOptional; }, z.core.$strict>], "type">; //# sourceMappingURL=content-commands.d.ts.map