ReferenceHTTP API
hwaccel
The hwaccel router: 3 hand-written core methods, with tier, input and output.
A core router of the hub (not a capability), source server/backend/src/api/core/hwaccel.router.ts. Its methods are called at /trpc/hwaccel.<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.
| Method | Kind | Tier |
|---|---|---|
resolve | query | admin |
resolveForNode | query | admin |
resolveAll | query | admin |
hwaccel.resolve
- Kind: query —
GET /trpc/hwaccel.resolve - Tier: admin — an administrator only
- Source:
server/backend/src/api/core/hwaccel.router.ts:106 - Try it: open
/system/api-explorer?method=hwaccel.resolveon your hub
Input
z.object({ prefer: HwAccelPreferSchema }).optional()Output
HwAccelResolutionSchema = z.object({ preferred: z.array(z.string()).readonly(), rationale: z.string() })hwaccel.resolveForNode
- Kind: query —
GET /trpc/hwaccel.resolveForNode - Tier: admin — an administrator only
- Source:
server/backend/src/api/core/hwaccel.router.ts:119 - Try it: open
/system/api-explorer?method=hwaccel.resolveForNodeon your hub
Input
z.object({ nodeId: z.string(), prefer: HwAccelPreferSchema })Output
HwAccelResolutionSchema = z.object({ preferred: z.array(z.string()).readonly(), rationale: z.string() })hwaccel.resolveAll
- Kind: query —
GET /trpc/hwaccel.resolveAll - Tier: admin — an administrator only
- Source:
server/backend/src/api/core/hwaccel.router.ts:127 - Try it: open
/system/api-explorer?method=hwaccel.resolveAllon your hub
Input
noneOutput
z.array(z.object({ nodeId: z.string(), resolution: HwAccelResolutionSchema }))