Interface NtfyAction

All Known Implementing Classes:
NtfyAction.Broadcast, NtfyAction.Http, NtfyAction.View

public sealed interface NtfyAction permits NtfyAction.View, NtfyAction.Http, NtfyAction.Broadcast
A single ntfy notification action button, modeled as a sealed hierarchy so each action type carries only the fields it needs (mirroring the AuthMode pattern). Actions are rendered into ntfy's Actions HTTP header by NtfyActionSerializer; ntfy allows at most three per notification.

All three ntfy action types are modeled: NtfyAction.View (open a URL — e.g. a dashboard or log link), NtfyAction.Http (fire an HTTP request — e.g. an acknowledge webhook, with optional typed NtfyAction.HttpHeaders), and NtfyAction.Broadcast (send an Android broadcast intent with optional typed NtfyAction.BroadcastExtras — only actioned by ntfy's Android app).

label and url are validated non-blank at construction: a malformed action is a programming error surfaced immediately, never a silent runtime publish failure.