Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

LocalNotification

Live local notification. Repeated evidence updates preserve read/mute state; escalation requests attention.

Import

import type { LocalNotification } from "@dartwic/interface-sdk";

Declaration

export interface LocalNotification {
    /** Stable id local to this client source. The host qualifies it with the source. */
    id: string;
    severity?: NotificationSeverity;
    title: string;
    description?: string;
    /** Live handlers are never serialized. Re-upsert after loading the plugin. */
    actions?: Array<{id: string; label: string; handler(): void | Promise<void>}>;
    silenceable?: boolean;
    active?: boolean;
}

Members

NameTypeRequirementDescription
idstringRequiredStable id local to this client source. The host qualifies it with the source.
severityNotificationSeverityOptional
titlestringRequired
descriptionstringOptional
actionsArray<{id: string; label: string; handler(): void | Promise<void>}>OptionalLive handlers are never serialized. Re-upsert after loading the plugin.
silenceablebooleanOptional
activebooleanOptional