type alias Push

A message the camera sent unasked, from Client.pushes.

Narrow on name: a known push carries its decoded body, an unknown one (name: undefined) its decrypted xml.

Definition

[K in keyof Pushes]: { name: K; id: number; body: CommandBody<Pushes[K]>; }[keyof Pushes]
| { name: undefined; id: number; xml: string; }

Usage

import { type Push } from "client.ts";