Dominevo
ReferenceHTTP API

systemEvents

The systemEvents router: 2 hand-written core methods, with tier, input and output.

A core router of the hub (not a capability), source server/backend/src/api/core/system-events.router.ts. Its methods are called at /trpc/systemEvents.<method>. A core method checks only the tier: a scoped token that is signed in reaches every protected method here, unless the method itself refuses it. See How to call and Authorization.

Inputs and outputs are the validation schemas as written in the source.

MethodKindTier
getRecentqueryprotected
subscribesubscriptionprotected

systemEvents.getRecent

  • Kind: query — GET /trpc/systemEvents.getRecent
  • Tier: protected — any signed-in principal
  • Source: server/backend/src/api/core/system-events.router.ts:103
  • Try it: open /system/api-explorer?method=systemEvents.getRecent on your hub

Input

GetRecentInputSchema = ScopeFieldsSchema.extend({ category: z.union([z.string(), z.array(z.string())]).optional(), limit: z.number().int().min(1).max(500).optional() })

Output

not declared

systemEvents.subscribe

  • Kind: subscription — WebSocket /trpc/systemEvents.subscribe
  • Tier: protected — any signed-in principal
  • Source: server/backend/src/api/core/system-events.router.ts:123
  • Try it: open /system/api-explorer?method=systemEvents.subscribe on your hub

Input

SubscribeInputSchema = ScopeFieldsSchema.extend({ category: z.string().optional() })

Output

not declared