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.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
listComponents | query | protected | view | no |
remoteLayoutComponents.listComponents
- Kind: query —
GET /trpc/remoteLayoutComponents.listComponents - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityremote-layout-components, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=remoteLayoutComponents.listComponentson 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 })[] })[]