@camstack/addon-provider-rtsp 1.2.32 → 1.2.33

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/dist/addon.js CHANGED
@@ -28571,17 +28571,60 @@ var SetSiteLocationInputSchema = object({
28571
28571
  longitude: number().min(-180).max(180)
28572
28572
  }).nullable();
28573
28573
  /**
28574
- * One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
28574
+ * The TRANSPORT a call arrived on.
28575
+ *
28576
+ * Every counted call carries exactly one of these, and `unknown` is a PLANE
28577
+ * rather than a gap: a plane that cannot attribute a call declares it here, so
28578
+ * the call lands in a named bucket instead of vanishing. `planes` summing to
28579
+ * `procedureCalls` is what makes "the sum of the planes explains the total"
28580
+ * checkable rather than asserted.
28581
+ *
28582
+ * - `http` — the Fastify tRPC plugin (`/trpc/*`), one context per request.
28583
+ * - `ws` — `applyWSSHandler`, counted per OPERATION rather than per
28584
+ * connection; the viewer talks to the hub over `wsLink`
28585
+ * exclusively, so this is the plane the HTTP census could not see.
28586
+ * - `mesh` — the in-process `$core-caps` bridge (`createCaller`), which
28587
+ * never touches a socket and therefore never touched a census.
28588
+ * - `unknown` — counted, plane undecidable. No hook produces it today, and
28589
+ * that is exactly what its `0` asserts: every plane the hub has can name
28590
+ * itself. It is an output bucket, never a knob — a call that arrives on a
28591
+ * plane nobody instrumented lands here instead of vanishing from the total.
28592
+ */
28593
+ var TransportPlaneSchema = _enum([
28594
+ "http",
28595
+ "ws",
28596
+ "mesh",
28597
+ "unknown"
28598
+ ]);
28599
+ /**
28600
+ * Calls per plane. Every key is always present, `0` included — an absent plane
28601
+ * reads as "not instrumented", which is the one thing this census must never
28602
+ * make an operator wonder about.
28603
+ */
28604
+ var TransportPlaneCountsSchema = object({
28605
+ http: number(),
28606
+ ws: number(),
28607
+ mesh: number(),
28608
+ unknown: number()
28609
+ });
28610
+ /**
28611
+ * One `(plane, procedure, user-agent, ip, principal)` tuple of the transport
28575
28612
  * census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
28576
28613
  * `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
28577
28614
  * already prints - never a token, never an `Authorization` header.
28615
+ *
28616
+ * `subscriptions` is counted APART from `calls`: a subscription is opened once
28617
+ * and lives for hours, so folding it into a call count makes one long-lived
28618
+ * stream look like a storm.
28578
28619
  */
28579
28620
  var RequestCensusGroupSchema = object({
28621
+ plane: TransportPlaneSchema,
28580
28622
  procedure: string(),
28581
28623
  userAgent: string(),
28582
28624
  ip: string(),
28583
28625
  principal: string(),
28584
28626
  calls: number(),
28627
+ subscriptions: number(),
28585
28628
  perMin: number()
28586
28629
  });
28587
28630
  /**
@@ -28594,6 +28637,14 @@ var RequestCensusGroupSchema = object({
28594
28637
  var RequestCensusProcedureSchema = object({
28595
28638
  procedure: string(),
28596
28639
  calls: number(),
28640
+ /**
28641
+ * The same total, split by transport. THIS is the row that answers the
28642
+ * question the census exists for: one look at `deviceManager.listAll` says
28643
+ * which plane carried the 4 960, without joining two log lines by eye.
28644
+ */
28645
+ planes: TransportPlaneCountsSchema,
28646
+ /** Subscription STARTS on this procedure. Never folded into `calls`. */
28647
+ subscriptions: number(),
28597
28648
  perMin: number()
28598
28649
  });
28599
28650
  /**
@@ -28621,14 +28672,45 @@ var RequestCensusStatusSchema = object({
28621
28672
  */
28622
28673
  procedureCalls: number(),
28623
28674
  /**
28675
+ * `procedureCalls` split by transport. The four keys sum to
28676
+ * `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
28677
+ * `planesExplainTotal` is that identity, checked rather than assumed.
28678
+ */
28679
+ planes: TransportPlaneCountsSchema,
28680
+ /**
28681
+ * True iff `planes` sums to `procedureCalls`. False means a call was counted
28682
+ * on no plane at all - which is a RESULT (a plane is missing from the
28683
+ * instrument), not a failure, and it has to be visible to be read as one.
28684
+ */
28685
+ planesExplainTotal: boolean(),
28686
+ /**
28624
28687
  * tRPC WebSocket connections opened during the window. NOT calls - the WS
28625
- * transport resolves one context per connection - but the number that says
28626
- * whether a plane this census cannot see was busy while HTTP was quiet.
28688
+ * adapter resolves one context per connection - kept because a plane's call
28689
+ * count of zero against 37 open connections says something different from a
28690
+ * plane with no connections at all.
28627
28691
  */
28628
28692
  wsConnections: number(),
28693
+ /**
28694
+ * Client frames the WS plane looked at. `wsMessages` far above
28695
+ * `planes.ws + subscriptions` means most traffic is not operations
28696
+ * (keepalives, connection params) - which is itself an answer.
28697
+ */
28698
+ wsMessages: number(),
28699
+ /**
28700
+ * Subscription STARTS across every plane, excluded from `procedureCalls` on
28701
+ * purpose: one live-events stream opened at boot and held for six hours is
28702
+ * one subscription, and counting it as a call would let a quiet plane
28703
+ * masquerade as the storm.
28704
+ */
28705
+ subscriptions: number(),
28706
+ /** `subscription.stop` frames. Starts minus stops is what is still open. */
28707
+ subscriptionStops: number(),
28629
28708
  distinctGroups: number(),
28630
- /** Calls counted in the totals whose group attribution was shed at the
28631
- * cardinality bound. */
28709
+ /**
28710
+ * Operations counted in the totals whose CALLER attribution was shed at the
28711
+ * cardinality bound. Unrelated to the `unknown` PLANE: these calls know
28712
+ * which transport they arrived on, they just lost their group row.
28713
+ */
28632
28714
  unattributedCalls: number(),
28633
28715
  procedures: array(RequestCensusProcedureSchema).readonly(),
28634
28716
  groups: array(RequestCensusGroupSchema).readonly()
package/dist/addon.mjs CHANGED
@@ -28547,17 +28547,60 @@ var SetSiteLocationInputSchema = object({
28547
28547
  longitude: number().min(-180).max(180)
28548
28548
  }).nullable();
28549
28549
  /**
28550
- * One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
28550
+ * The TRANSPORT a call arrived on.
28551
+ *
28552
+ * Every counted call carries exactly one of these, and `unknown` is a PLANE
28553
+ * rather than a gap: a plane that cannot attribute a call declares it here, so
28554
+ * the call lands in a named bucket instead of vanishing. `planes` summing to
28555
+ * `procedureCalls` is what makes "the sum of the planes explains the total"
28556
+ * checkable rather than asserted.
28557
+ *
28558
+ * - `http` — the Fastify tRPC plugin (`/trpc/*`), one context per request.
28559
+ * - `ws` — `applyWSSHandler`, counted per OPERATION rather than per
28560
+ * connection; the viewer talks to the hub over `wsLink`
28561
+ * exclusively, so this is the plane the HTTP census could not see.
28562
+ * - `mesh` — the in-process `$core-caps` bridge (`createCaller`), which
28563
+ * never touches a socket and therefore never touched a census.
28564
+ * - `unknown` — counted, plane undecidable. No hook produces it today, and
28565
+ * that is exactly what its `0` asserts: every plane the hub has can name
28566
+ * itself. It is an output bucket, never a knob — a call that arrives on a
28567
+ * plane nobody instrumented lands here instead of vanishing from the total.
28568
+ */
28569
+ var TransportPlaneSchema = _enum([
28570
+ "http",
28571
+ "ws",
28572
+ "mesh",
28573
+ "unknown"
28574
+ ]);
28575
+ /**
28576
+ * Calls per plane. Every key is always present, `0` included — an absent plane
28577
+ * reads as "not instrumented", which is the one thing this census must never
28578
+ * make an operator wonder about.
28579
+ */
28580
+ var TransportPlaneCountsSchema = object({
28581
+ http: number(),
28582
+ ws: number(),
28583
+ mesh: number(),
28584
+ unknown: number()
28585
+ });
28586
+ /**
28587
+ * One `(plane, procedure, user-agent, ip, principal)` tuple of the transport
28551
28588
  * census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
28552
28589
  * `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
28553
28590
  * already prints - never a token, never an `Authorization` header.
28591
+ *
28592
+ * `subscriptions` is counted APART from `calls`: a subscription is opened once
28593
+ * and lives for hours, so folding it into a call count makes one long-lived
28594
+ * stream look like a storm.
28554
28595
  */
28555
28596
  var RequestCensusGroupSchema = object({
28597
+ plane: TransportPlaneSchema,
28556
28598
  procedure: string(),
28557
28599
  userAgent: string(),
28558
28600
  ip: string(),
28559
28601
  principal: string(),
28560
28602
  calls: number(),
28603
+ subscriptions: number(),
28561
28604
  perMin: number()
28562
28605
  });
28563
28606
  /**
@@ -28570,6 +28613,14 @@ var RequestCensusGroupSchema = object({
28570
28613
  var RequestCensusProcedureSchema = object({
28571
28614
  procedure: string(),
28572
28615
  calls: number(),
28616
+ /**
28617
+ * The same total, split by transport. THIS is the row that answers the
28618
+ * question the census exists for: one look at `deviceManager.listAll` says
28619
+ * which plane carried the 4 960, without joining two log lines by eye.
28620
+ */
28621
+ planes: TransportPlaneCountsSchema,
28622
+ /** Subscription STARTS on this procedure. Never folded into `calls`. */
28623
+ subscriptions: number(),
28573
28624
  perMin: number()
28574
28625
  });
28575
28626
  /**
@@ -28597,14 +28648,45 @@ var RequestCensusStatusSchema = object({
28597
28648
  */
28598
28649
  procedureCalls: number(),
28599
28650
  /**
28651
+ * `procedureCalls` split by transport. The four keys sum to
28652
+ * `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
28653
+ * `planesExplainTotal` is that identity, checked rather than assumed.
28654
+ */
28655
+ planes: TransportPlaneCountsSchema,
28656
+ /**
28657
+ * True iff `planes` sums to `procedureCalls`. False means a call was counted
28658
+ * on no plane at all - which is a RESULT (a plane is missing from the
28659
+ * instrument), not a failure, and it has to be visible to be read as one.
28660
+ */
28661
+ planesExplainTotal: boolean(),
28662
+ /**
28600
28663
  * tRPC WebSocket connections opened during the window. NOT calls - the WS
28601
- * transport resolves one context per connection - but the number that says
28602
- * whether a plane this census cannot see was busy while HTTP was quiet.
28664
+ * adapter resolves one context per connection - kept because a plane's call
28665
+ * count of zero against 37 open connections says something different from a
28666
+ * plane with no connections at all.
28603
28667
  */
28604
28668
  wsConnections: number(),
28669
+ /**
28670
+ * Client frames the WS plane looked at. `wsMessages` far above
28671
+ * `planes.ws + subscriptions` means most traffic is not operations
28672
+ * (keepalives, connection params) - which is itself an answer.
28673
+ */
28674
+ wsMessages: number(),
28675
+ /**
28676
+ * Subscription STARTS across every plane, excluded from `procedureCalls` on
28677
+ * purpose: one live-events stream opened at boot and held for six hours is
28678
+ * one subscription, and counting it as a call would let a quiet plane
28679
+ * masquerade as the storm.
28680
+ */
28681
+ subscriptions: number(),
28682
+ /** `subscription.stop` frames. Starts minus stops is what is still open. */
28683
+ subscriptionStops: number(),
28605
28684
  distinctGroups: number(),
28606
- /** Calls counted in the totals whose group attribution was shed at the
28607
- * cardinality bound. */
28685
+ /**
28686
+ * Operations counted in the totals whose CALLER attribution was shed at the
28687
+ * cardinality bound. Unrelated to the `unknown` PLANE: these calls know
28688
+ * which transport they arrived on, they just lost their group row.
28689
+ */
28608
28690
  unattributedCalls: number(),
28609
28691
  procedures: array(RequestCensusProcedureSchema).readonly(),
28610
28692
  groups: array(RequestCensusGroupSchema).readonly()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-rtsp",
3
- "version": "1.2.32",
3
+ "version": "1.2.33",
4
4
  "description": "Generic RTSP camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",