export type CalendarViewMode = 'month' | 'week' | 'day' | 'agenda'; export type VibeCalendarTaskSource = 'scheduledJob' | 'vibeCalendarTask'; export interface VibeCalendarTask { id: string; /** * Set by client-side mappers (e.g. `jobToVibeCalendarTask`). Reading * code branches on this to pick the correct mutation/route. Omitted * for real VibeCalendarTask rows fetched from wspace-calendar-svc — * treat `undefined` as `'vibeCalendarTask'`. */ source?: VibeCalendarTaskSource; title: string; description: string | null; calendarId: string; calendarEventId: string; agentId: string; taskConfig: { taskType: string; command?: string | null; script?: string | null; interpreter?: string | null; cwd?: string | null; env?: Record | null; timeout?: number | null; webhookUrl?: string | null; webhookMethod?: string | null; webhookHeaders?: Record | null; webhookAuthType?: string | null; webhookPayload?: Record | null; }; cronExpression: string | null; rrule: string | null; scheduledAt: string | null; timezone: string; nextExecutionAt: string | null; lastExecutedAt: string | null; status: string; totalExecutions: number; consecutiveFailures: number; createdAt: string; updatedAt: string; } export interface VibeCalendarExecution { id: string; taskId: string; status: string; output: string | null; exitCode: number | null; webhookStatusCode: number | null; startedAt: string | null; completedAt: string | null; error: string | null; } export interface CalendarOccurrence { task: VibeCalendarTask; occurrenceAt: string; isPast: boolean; execution: VibeCalendarExecution | null; } export declare const STATUS_COLORS: Record;