Dominevo
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.

MethodKindTier
resolvequeryadmin
resolveForNodequeryadmin
resolveAllqueryadmin

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.resolve on 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.resolveForNode on 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.resolveAll on your hub

Input

none

Output

z.array(z.object({ nodeId: z.string(), resolution: HwAccelResolutionSchema }))