@camstack/types 1.2.550 → 1.2.552
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/addon/addon-instance.d.ts +1 -2
- package/dist/automation/fired-trigger.d.ts +44 -0
- package/dist/automation/index.d.ts +4 -2
- package/dist/automation/trace.d.ts +2 -0
- package/dist/automation/when.d.ts +39 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +529 -223
- package/dist/index.mjs +526 -224
- package/dist/interfaces/event-bus.d.ts +22 -16
- package/package.json +1 -1
|
@@ -784,22 +784,25 @@ export interface TopologyNode {
|
|
|
784
784
|
* Why a broker's stream health flipped — the discriminator that separates an
|
|
785
785
|
* OUTAGE from an intentional state change.
|
|
786
786
|
*
|
|
787
|
-
* A `stream.offline` on its own says nothing about whether anything is wrong
|
|
788
|
-
* the
|
|
789
|
-
*
|
|
790
|
-
*
|
|
791
|
-
*
|
|
792
|
-
*
|
|
787
|
+
* A `stream.offline` on its own says nothing about whether anything is wrong,
|
|
788
|
+
* so the reason is part of the payload. The broker emits an outage only for
|
|
789
|
+
* the reasons a consumer may notify on. An on-demand stream that stops
|
|
790
|
+
* because its session went idle is not offline: the broker emits no
|
|
791
|
+
* `stream.offline` and no matching `stream.online`. It remembers `suspended`
|
|
792
|
+
* only so the rebuild is not announced as `recovered`. `suspended` on a
|
|
793
|
+
* `stream.online` is still how an announced outage is closed when the last
|
|
794
|
+
* consumer leaves.
|
|
793
795
|
*
|
|
794
796
|
* - `stale-timeout` — no video packet for the broker's stale window
|
|
795
|
-
* (120 s)
|
|
796
|
-
* - `recovered` — packets resumed after
|
|
797
|
-
*
|
|
798
|
-
*
|
|
799
|
-
*
|
|
800
|
-
*
|
|
801
|
-
*
|
|
802
|
-
*
|
|
797
|
+
* (120 s) while the stream was demanded. An outage.
|
|
798
|
+
* - `recovered` — packets resumed after an outage. The matching end.
|
|
799
|
+
* - `first-packet` — a broker's first ever packet, and it was never idle.
|
|
800
|
+
* A stream coming up, not a recovery: there was no outage before it.
|
|
801
|
+
* - `suspended` — remembered for an idle teardown (not emitted as
|
|
802
|
+
* offline). Also the reason on the `stream.online` that closes an outage
|
|
803
|
+
* whose last consumer left.
|
|
804
|
+
* - `resumed` — the matching end of a `suspended`. The broker no
|
|
805
|
+
* longer emits it; a rebuild after idle is silence.
|
|
803
806
|
* - `broker-destroyed` — the stream was unpublished/released. Deliberate.
|
|
804
807
|
*
|
|
805
808
|
* A BATTERY camera sleeping is none of these: a sleep or a plain wake emits no
|
|
@@ -808,8 +811,11 @@ export interface TopologyNode {
|
|
|
808
811
|
*
|
|
809
812
|
* - `wake-timeout` — a wake was DEMANDED (live viewer, recording,
|
|
810
813
|
* explicit force) and no stream arrived inside its bound.
|
|
811
|
-
* - `connection-error` — the camera is reported awake and
|
|
812
|
-
*
|
|
814
|
+
* - `connection-error` — the camera is reported awake and no source of it
|
|
815
|
+
* is delivering. The broker holds this until the sustained window (the
|
|
816
|
+
* same 120 s as `stale-timeout`) has elapsed with the whole camera still
|
|
817
|
+
* down. A dial that recovers inside the window, or a source that fails
|
|
818
|
+
* while another source of the camera delivers, emits nothing.
|
|
813
819
|
* - `battery-unreachable` — nothing heard from the camera past its battery
|
|
814
820
|
* refresh window (`BATTERY_UNREACHABLE_AFTER_MS`, D847).
|
|
815
821
|
*
|