Dominevo
ReferenceHTTP API

streamProbe

The streamProbe router: 2 hand-written core methods, with tier, input and output.

A core router of the hub (not a capability), source server/backend/src/api/core/stream-probe.router.ts. Its methods are called at /trpc/streamProbe.<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
probemutationadmin
probeFieldmutationadmin

streamProbe.probe

  • Kind: mutation — POST /trpc/streamProbe.probe
  • Tier: admin — an administrator only
  • Source: server/backend/src/api/core/stream-probe.router.ts:33
  • Try it: open /system/api-explorer?method=streamProbe.probe on your hub

Input

z.object({ url: z.string(), force: z.boolean().optional() })

Output

ProbedStreamSchema = z.object({ width: z.number().optional(), height: z.number().optional(), codec: z.string().optional(), fps: z.number().optional(), bitrateKbps: z.number().optional(), quality: z.enum(['high', 'mid', 'low']) })

streamProbe.probeField

  • Kind: mutation — POST /trpc/streamProbe.probeField
  • Tier: admin — an administrator only
  • Source: server/backend/src/api/core/stream-probe.router.ts:49
  • Try it: open /system/api-explorer?method=streamProbe.probeField on your hub

Input

z.object({ key: z.string(), value: z.unknown() })

Output

FieldProbeResultSchema = z.object({ status: z.enum(['ok', 'error']), labels: z.array(z.string()).optional(), error: z.string().optional() })