backsplash-app
Version:
An AI powered wallpaper app.
39 lines (35 loc) • 851 B
text/typescript
/**
* Constants for wallpaper-related IPC channels
*/
export enum WallpaperChannels {
SET_WALLPAPER = "set-wallpaper",
GET_WALLPAPER = "get-wallpaper",
GET_MAC_SCREENS = "get-mac-screens",
WALLPAPER_STATUS_UPDATE = "wallpaper-status-update",
UPSCALE_WALLPAPER = "wallpaper:upscale",
}
/**
* Additional wallpaper channel constants for scheduler communication
*/
export const WallpaperUpdates = {
UPDATE: "wallpaper:update",
STATUS_UPDATE: "wallpaper:status-update",
} as const;
/**
* Wallpaper status update types
*/
export type WallpaperStatusType =
| "generation-start"
| "generation-complete"
| "upscale-start"
| "upscale-complete"
| "scheduler-changed";
/**
* Status update payload structure
*/
export interface StatusUpdate {
type: WallpaperStatusType;
message: string;
timestamp?: number;
data?: any;
}