Dominevo
ReferenceHTTP API

remoteLayoutComponents

The remoteLayoutComponents router: 1 method of the remote-layout-components capability, with tier, scope, input and output.

Capability remote-layout-components · scope system · mode collection · source packages/types/src/capabilities/remote-layout-components.cap.ts:16.

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

MethodKindTierToken scopeViewer
listComponentsqueryprotectedviewno

remoteLayoutComponents.listComponents

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

Input

{}

Output

({ id: string; name: string; nameI18n?: { en: string; it: string }; icon: string; category: "power" | "navigation" | "volume" | "numbers" | "media" | "colour" | "apps" | "layout"; size: { rows: number; cols: number }; group: { frame: "none" | "panel" | "divider" | "dpad" | "rocker-v" | "rocker-h" | "keypad"; title?: string } | null; buttons: ({ idSuffix: string; row: number; col: number; rowSpan: number; colSpan: number; role: string; icon?: string; label?: string; shape?: "rect" | "rounded" | "round" | "pill"; tone?: "neutral" | "accent" | "danger" | "red" | "green" | "yellow" | "blue"; showLegend?: boolean })[] })[]