Dominevo
ReferenceHTTP API

eventBusProxy

The eventBusProxy 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/event-bus-proxy.router.ts. Its methods are called at /trpc/eventBusProxy.<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
emitmutationadmin
getRecentqueryprotected

eventBusProxy.emit

  • Kind: mutation — POST /trpc/eventBusProxy.emit
  • Tier: admin — an administrator only
  • Source: server/backend/src/api/core/event-bus-proxy.router.ts:107
  • Try it: open /system/api-explorer?method=eventBusProxy.emit on your hub

Input

SystemEventInputSchema = z.object({ id: z.string(), timestamp: z.string(), source: z.object({ type: z.string(), id: z.string() }), category: z.string(), data: z.record(z.string(), z.unknown()) })

Output

z.object({ ok: z.literal(true) })

eventBusProxy.getRecent

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

Input

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

Output

z.array(RecentEventOutputSchema)