Dominevo
ReferenceHTTP API

broker

The broker router: 6 methods of the broker capability, with tier, scope, input and output.

Capability broker · scope system · mode collection · source packages/types/src/capabilities/broker.cap.ts:78.

Every method is called at /trpc/broker.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewno
getBrokerConfigqueryadminadmin onlyno
publishmutationadminadmin onlyno
subscribemutationadminadmin onlyno
unsubscribemutationadminadmin onlyno
getStatequeryadminadmin onlyno

broker.getStatus

  • Kind: query — GET /trpc/broker.getStatus
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability broker, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=broker.getStatus on your hub

Input

void

Output

BrokerRegistryStatusSchema

Shapes: BrokerRegistryStatusSchema

broker.getBrokerConfig

  • Kind: query — GET /trpc/broker.getBrokerConfig
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=broker.getBrokerConfig on your hub

Input

{ id: string }

Output

Record<string, unknown> | null

broker.publish

  • Kind: mutation — POST /trpc/broker.publish
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=broker.publish on your hub

Input

BrokerPublishInputSchema

Output

unknown

Shapes: BrokerPublishInputSchema

broker.subscribe

  • Kind: mutation — POST /trpc/broker.subscribe
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=broker.subscribe on your hub

Input

BrokerSubscribeInputSchema

Output

BrokerSubscribeResultSchema

Shapes: BrokerSubscribeInputSchema · BrokerSubscribeResultSchema

broker.unsubscribe

  • Kind: mutation — POST /trpc/broker.unsubscribe
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=broker.unsubscribe on your hub

Input

BrokerUnsubscribeInputSchema

Output

void

Shapes: BrokerUnsubscribeInputSchema

broker.getState

  • Kind: query — GET /trpc/broker.getState
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=broker.getState on your hub

Input

BrokerGetStateInputSchema

Output

unknown | null

Shapes: BrokerGetStateInputSchema