Dominevo
ReferenceHTTP API

boardKeySource

The boardKeySource router: 3 methods of the board-key-source capability, with tier, scope, input and output.

Capability board-key-source · scope system · mode collection · source packages/types/src/capabilities/board-key-source.cap.ts:64.

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

MethodKindTierToken scopeViewer
listSourcesqueryadminadmin onlyno
listBoardsqueryadminadmin onlyno
getBoardKeyqueryadminadmin onlyno

boardKeySource.listSources

  • Kind: query — GET /trpc/boardKeySource.listSources
  • 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=boardKeySource.listSources on your hub

Input

void

Output

({ sourceId: string; name: string })[]

boardKeySource.listBoards

  • Kind: query — GET /trpc/boardKeySource.listBoards
  • 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=boardKeySource.listBoards on your hub

Input

{ sourceId: string }

Output

{ ok: true; boards: ({ configuration: string; name: string; address: string | null })[] } | { ok: false; reason: BoardKeyFailureReasonSchema; detail?: string }

Shapes: BoardKeyFailureReasonSchema

boardKeySource.getBoardKey

  • Kind: query — GET /trpc/boardKeySource.getBoardKey
  • 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=boardKeySource.getBoardKey on your hub

Input

{ sourceId: string; configuration: string }

Output

{ ok: true; key: string } | { ok: false; reason: BoardKeyFailureReasonSchema; detail?: string }

Shapes: BoardKeyFailureReasonSchema