Submit an event
Submits an event; matching notification rules deliver it. Each family needs its fields:
run.* / phase.* / hug.* need realm_id, run_id and daemon_id (and phase for
phase.*), team.* needs team, daemon.* needs daemon_id. Some types are raised by
CliqHub only. The run must be in realm_id, and a daemon may only speak for daemons of its
realm. Repeating the same submit is de-duplicated.
Requires a signed-in user token; with realm_id, a realm operator (or higher) on that realm; with org_id, membership in that organization. One of realm_id or org_id is required. A daemon’s realm token (cliq_dt_…) from the same realm may also call it. Run in realm; daemon: own daemons, own org.
Authorizations
User PAT (cliq_tok_…, including session-scoped) or realm token (cliq_dt_…).
Body
Hub catalog type (run.* / phase.* / hug.* / …) or custom.
run.started, run.resumed, run.resume_requested, run.completed, run.failed, run.crashed, run.cancelled, phase.started, phase.completed, phase.failed, phase.skipped, phase.escalated, phase.input_required, phase.inputs_supplied, phase.timed_out, phase.idle, hug.review_requested, hug.review_reminded, hug.review_responded, hug.routing_requested, hug.review_resolved, hug.review_expired, team.published, team.visibility_changed, daemon.enrolled, daemon.removed, daemon.online, daemon.offline, s local hub_outbox dead_count. `dead` events carry
// a compact cause summary so operators can triage without opening
// the SPA. Emitted best-effort via the outbox itself; loss on a
// completely-broken daemon is acceptable because `daemon.offline`
// covers the total-loss case.
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
// Org-scoped identity events, raised only by CliqHub itself
// (notifications/org_events.ts); `events/submit` refuses them.
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
, ,
ISO-8601 timestamp; Hub defaults to now when omitted
Required for most families (see family rules)
Optional org scope
Team slug; required for team.*
Required for run.* / phase.* / hug.*
Required for phase.*
Required for run.* / phase.* / hug.* / daemon.*
Short notification title
Longer notification body
Overrides catalog default severity when set
info, warn, error, critical Type-specific extras (notify routing, names, error, …)