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