@camstack/addon-provider-dreo 0.2.32 → 0.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 +87 -5
- package/dist/addon.mjs +87 -5
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -28464,17 +28464,60 @@ var SetSiteLocationInputSchema = object({
|
|
|
28464
28464
|
longitude: number().min(-180).max(180)
|
|
28465
28465
|
}).nullable();
|
|
28466
28466
|
/**
|
|
28467
|
-
*
|
|
28467
|
+
* The TRANSPORT a call arrived on.
|
|
28468
|
+
*
|
|
28469
|
+
* Every counted call carries exactly one of these, and `unknown` is a PLANE
|
|
28470
|
+
* rather than a gap: a plane that cannot attribute a call declares it here, so
|
|
28471
|
+
* the call lands in a named bucket instead of vanishing. `planes` summing to
|
|
28472
|
+
* `procedureCalls` is what makes "the sum of the planes explains the total"
|
|
28473
|
+
* checkable rather than asserted.
|
|
28474
|
+
*
|
|
28475
|
+
* - `http` — the Fastify tRPC plugin (`/trpc/*`), one context per request.
|
|
28476
|
+
* - `ws` — `applyWSSHandler`, counted per OPERATION rather than per
|
|
28477
|
+
* connection; the viewer talks to the hub over `wsLink`
|
|
28478
|
+
* exclusively, so this is the plane the HTTP census could not see.
|
|
28479
|
+
* - `mesh` — the in-process `$core-caps` bridge (`createCaller`), which
|
|
28480
|
+
* never touches a socket and therefore never touched a census.
|
|
28481
|
+
* - `unknown` — counted, plane undecidable. No hook produces it today, and
|
|
28482
|
+
* that is exactly what its `0` asserts: every plane the hub has can name
|
|
28483
|
+
* itself. It is an output bucket, never a knob — a call that arrives on a
|
|
28484
|
+
* plane nobody instrumented lands here instead of vanishing from the total.
|
|
28485
|
+
*/
|
|
28486
|
+
var TransportPlaneSchema = _enum([
|
|
28487
|
+
"http",
|
|
28488
|
+
"ws",
|
|
28489
|
+
"mesh",
|
|
28490
|
+
"unknown"
|
|
28491
|
+
]);
|
|
28492
|
+
/**
|
|
28493
|
+
* Calls per plane. Every key is always present, `0` included — an absent plane
|
|
28494
|
+
* reads as "not instrumented", which is the one thing this census must never
|
|
28495
|
+
* make an operator wonder about.
|
|
28496
|
+
*/
|
|
28497
|
+
var TransportPlaneCountsSchema = object({
|
|
28498
|
+
http: number(),
|
|
28499
|
+
ws: number(),
|
|
28500
|
+
mesh: number(),
|
|
28501
|
+
unknown: number()
|
|
28502
|
+
});
|
|
28503
|
+
/**
|
|
28504
|
+
* One `(plane, procedure, user-agent, ip, principal)` tuple of the transport
|
|
28468
28505
|
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
28469
28506
|
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
28470
28507
|
* already prints - never a token, never an `Authorization` header.
|
|
28508
|
+
*
|
|
28509
|
+
* `subscriptions` is counted APART from `calls`: a subscription is opened once
|
|
28510
|
+
* and lives for hours, so folding it into a call count makes one long-lived
|
|
28511
|
+
* stream look like a storm.
|
|
28471
28512
|
*/
|
|
28472
28513
|
var RequestCensusGroupSchema = object({
|
|
28514
|
+
plane: TransportPlaneSchema,
|
|
28473
28515
|
procedure: string(),
|
|
28474
28516
|
userAgent: string(),
|
|
28475
28517
|
ip: string(),
|
|
28476
28518
|
principal: string(),
|
|
28477
28519
|
calls: number(),
|
|
28520
|
+
subscriptions: number(),
|
|
28478
28521
|
perMin: number()
|
|
28479
28522
|
});
|
|
28480
28523
|
/**
|
|
@@ -28487,6 +28530,14 @@ var RequestCensusGroupSchema = object({
|
|
|
28487
28530
|
var RequestCensusProcedureSchema = object({
|
|
28488
28531
|
procedure: string(),
|
|
28489
28532
|
calls: number(),
|
|
28533
|
+
/**
|
|
28534
|
+
* The same total, split by transport. THIS is the row that answers the
|
|
28535
|
+
* question the census exists for: one look at `deviceManager.listAll` says
|
|
28536
|
+
* which plane carried the 4 960, without joining two log lines by eye.
|
|
28537
|
+
*/
|
|
28538
|
+
planes: TransportPlaneCountsSchema,
|
|
28539
|
+
/** Subscription STARTS on this procedure. Never folded into `calls`. */
|
|
28540
|
+
subscriptions: number(),
|
|
28490
28541
|
perMin: number()
|
|
28491
28542
|
});
|
|
28492
28543
|
/**
|
|
@@ -28514,14 +28565,45 @@ var RequestCensusStatusSchema = object({
|
|
|
28514
28565
|
*/
|
|
28515
28566
|
procedureCalls: number(),
|
|
28516
28567
|
/**
|
|
28568
|
+
* `procedureCalls` split by transport. The four keys sum to
|
|
28569
|
+
* `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
|
|
28570
|
+
* `planesExplainTotal` is that identity, checked rather than assumed.
|
|
28571
|
+
*/
|
|
28572
|
+
planes: TransportPlaneCountsSchema,
|
|
28573
|
+
/**
|
|
28574
|
+
* True iff `planes` sums to `procedureCalls`. False means a call was counted
|
|
28575
|
+
* on no plane at all - which is a RESULT (a plane is missing from the
|
|
28576
|
+
* instrument), not a failure, and it has to be visible to be read as one.
|
|
28577
|
+
*/
|
|
28578
|
+
planesExplainTotal: boolean(),
|
|
28579
|
+
/**
|
|
28517
28580
|
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
28518
|
-
*
|
|
28519
|
-
*
|
|
28581
|
+
* adapter resolves one context per connection - kept because a plane's call
|
|
28582
|
+
* count of zero against 37 open connections says something different from a
|
|
28583
|
+
* plane with no connections at all.
|
|
28520
28584
|
*/
|
|
28521
28585
|
wsConnections: number(),
|
|
28586
|
+
/**
|
|
28587
|
+
* Client frames the WS plane looked at. `wsMessages` far above
|
|
28588
|
+
* `planes.ws + subscriptions` means most traffic is not operations
|
|
28589
|
+
* (keepalives, connection params) - which is itself an answer.
|
|
28590
|
+
*/
|
|
28591
|
+
wsMessages: number(),
|
|
28592
|
+
/**
|
|
28593
|
+
* Subscription STARTS across every plane, excluded from `procedureCalls` on
|
|
28594
|
+
* purpose: one live-events stream opened at boot and held for six hours is
|
|
28595
|
+
* one subscription, and counting it as a call would let a quiet plane
|
|
28596
|
+
* masquerade as the storm.
|
|
28597
|
+
*/
|
|
28598
|
+
subscriptions: number(),
|
|
28599
|
+
/** `subscription.stop` frames. Starts minus stops is what is still open. */
|
|
28600
|
+
subscriptionStops: number(),
|
|
28522
28601
|
distinctGroups: number(),
|
|
28523
|
-
/**
|
|
28524
|
-
*
|
|
28602
|
+
/**
|
|
28603
|
+
* Operations counted in the totals whose CALLER attribution was shed at the
|
|
28604
|
+
* cardinality bound. Unrelated to the `unknown` PLANE: these calls know
|
|
28605
|
+
* which transport they arrived on, they just lost their group row.
|
|
28606
|
+
*/
|
|
28525
28607
|
unattributedCalls: number(),
|
|
28526
28608
|
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
28527
28609
|
groups: array(RequestCensusGroupSchema).readonly()
|
package/dist/addon.mjs
CHANGED
|
@@ -28465,17 +28465,60 @@ var SetSiteLocationInputSchema = object({
|
|
|
28465
28465
|
longitude: number().min(-180).max(180)
|
|
28466
28466
|
}).nullable();
|
|
28467
28467
|
/**
|
|
28468
|
-
*
|
|
28468
|
+
* The TRANSPORT a call arrived on.
|
|
28469
|
+
*
|
|
28470
|
+
* Every counted call carries exactly one of these, and `unknown` is a PLANE
|
|
28471
|
+
* rather than a gap: a plane that cannot attribute a call declares it here, so
|
|
28472
|
+
* the call lands in a named bucket instead of vanishing. `planes` summing to
|
|
28473
|
+
* `procedureCalls` is what makes "the sum of the planes explains the total"
|
|
28474
|
+
* checkable rather than asserted.
|
|
28475
|
+
*
|
|
28476
|
+
* - `http` — the Fastify tRPC plugin (`/trpc/*`), one context per request.
|
|
28477
|
+
* - `ws` — `applyWSSHandler`, counted per OPERATION rather than per
|
|
28478
|
+
* connection; the viewer talks to the hub over `wsLink`
|
|
28479
|
+
* exclusively, so this is the plane the HTTP census could not see.
|
|
28480
|
+
* - `mesh` — the in-process `$core-caps` bridge (`createCaller`), which
|
|
28481
|
+
* never touches a socket and therefore never touched a census.
|
|
28482
|
+
* - `unknown` — counted, plane undecidable. No hook produces it today, and
|
|
28483
|
+
* that is exactly what its `0` asserts: every plane the hub has can name
|
|
28484
|
+
* itself. It is an output bucket, never a knob — a call that arrives on a
|
|
28485
|
+
* plane nobody instrumented lands here instead of vanishing from the total.
|
|
28486
|
+
*/
|
|
28487
|
+
var TransportPlaneSchema = _enum([
|
|
28488
|
+
"http",
|
|
28489
|
+
"ws",
|
|
28490
|
+
"mesh",
|
|
28491
|
+
"unknown"
|
|
28492
|
+
]);
|
|
28493
|
+
/**
|
|
28494
|
+
* Calls per plane. Every key is always present, `0` included — an absent plane
|
|
28495
|
+
* reads as "not instrumented", which is the one thing this census must never
|
|
28496
|
+
* make an operator wonder about.
|
|
28497
|
+
*/
|
|
28498
|
+
var TransportPlaneCountsSchema = object({
|
|
28499
|
+
http: number(),
|
|
28500
|
+
ws: number(),
|
|
28501
|
+
mesh: number(),
|
|
28502
|
+
unknown: number()
|
|
28503
|
+
});
|
|
28504
|
+
/**
|
|
28505
|
+
* One `(plane, procedure, user-agent, ip, principal)` tuple of the transport
|
|
28469
28506
|
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
28470
28507
|
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
28471
28508
|
* already prints - never a token, never an `Authorization` header.
|
|
28509
|
+
*
|
|
28510
|
+
* `subscriptions` is counted APART from `calls`: a subscription is opened once
|
|
28511
|
+
* and lives for hours, so folding it into a call count makes one long-lived
|
|
28512
|
+
* stream look like a storm.
|
|
28472
28513
|
*/
|
|
28473
28514
|
var RequestCensusGroupSchema = object({
|
|
28515
|
+
plane: TransportPlaneSchema,
|
|
28474
28516
|
procedure: string(),
|
|
28475
28517
|
userAgent: string(),
|
|
28476
28518
|
ip: string(),
|
|
28477
28519
|
principal: string(),
|
|
28478
28520
|
calls: number(),
|
|
28521
|
+
subscriptions: number(),
|
|
28479
28522
|
perMin: number()
|
|
28480
28523
|
});
|
|
28481
28524
|
/**
|
|
@@ -28488,6 +28531,14 @@ var RequestCensusGroupSchema = object({
|
|
|
28488
28531
|
var RequestCensusProcedureSchema = object({
|
|
28489
28532
|
procedure: string(),
|
|
28490
28533
|
calls: number(),
|
|
28534
|
+
/**
|
|
28535
|
+
* The same total, split by transport. THIS is the row that answers the
|
|
28536
|
+
* question the census exists for: one look at `deviceManager.listAll` says
|
|
28537
|
+
* which plane carried the 4 960, without joining two log lines by eye.
|
|
28538
|
+
*/
|
|
28539
|
+
planes: TransportPlaneCountsSchema,
|
|
28540
|
+
/** Subscription STARTS on this procedure. Never folded into `calls`. */
|
|
28541
|
+
subscriptions: number(),
|
|
28491
28542
|
perMin: number()
|
|
28492
28543
|
});
|
|
28493
28544
|
/**
|
|
@@ -28515,14 +28566,45 @@ var RequestCensusStatusSchema = object({
|
|
|
28515
28566
|
*/
|
|
28516
28567
|
procedureCalls: number(),
|
|
28517
28568
|
/**
|
|
28569
|
+
* `procedureCalls` split by transport. The four keys sum to
|
|
28570
|
+
* `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
|
|
28571
|
+
* `planesExplainTotal` is that identity, checked rather than assumed.
|
|
28572
|
+
*/
|
|
28573
|
+
planes: TransportPlaneCountsSchema,
|
|
28574
|
+
/**
|
|
28575
|
+
* True iff `planes` sums to `procedureCalls`. False means a call was counted
|
|
28576
|
+
* on no plane at all - which is a RESULT (a plane is missing from the
|
|
28577
|
+
* instrument), not a failure, and it has to be visible to be read as one.
|
|
28578
|
+
*/
|
|
28579
|
+
planesExplainTotal: boolean(),
|
|
28580
|
+
/**
|
|
28518
28581
|
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
28519
|
-
*
|
|
28520
|
-
*
|
|
28582
|
+
* adapter resolves one context per connection - kept because a plane's call
|
|
28583
|
+
* count of zero against 37 open connections says something different from a
|
|
28584
|
+
* plane with no connections at all.
|
|
28521
28585
|
*/
|
|
28522
28586
|
wsConnections: number(),
|
|
28587
|
+
/**
|
|
28588
|
+
* Client frames the WS plane looked at. `wsMessages` far above
|
|
28589
|
+
* `planes.ws + subscriptions` means most traffic is not operations
|
|
28590
|
+
* (keepalives, connection params) - which is itself an answer.
|
|
28591
|
+
*/
|
|
28592
|
+
wsMessages: number(),
|
|
28593
|
+
/**
|
|
28594
|
+
* Subscription STARTS across every plane, excluded from `procedureCalls` on
|
|
28595
|
+
* purpose: one live-events stream opened at boot and held for six hours is
|
|
28596
|
+
* one subscription, and counting it as a call would let a quiet plane
|
|
28597
|
+
* masquerade as the storm.
|
|
28598
|
+
*/
|
|
28599
|
+
subscriptions: number(),
|
|
28600
|
+
/** `subscription.stop` frames. Starts minus stops is what is still open. */
|
|
28601
|
+
subscriptionStops: number(),
|
|
28523
28602
|
distinctGroups: number(),
|
|
28524
|
-
/**
|
|
28525
|
-
*
|
|
28603
|
+
/**
|
|
28604
|
+
* Operations counted in the totals whose CALLER attribution was shed at the
|
|
28605
|
+
* cardinality bound. Unrelated to the `unknown` PLANE: these calls know
|
|
28606
|
+
* which transport they arrived on, they just lost their group row.
|
|
28607
|
+
*/
|
|
28526
28608
|
unattributedCalls: number(),
|
|
28527
28609
|
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
28528
28610
|
groups: array(RequestCensusGroupSchema).readonly()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-dreo",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.33",
|
|
4
4
|
"description": "Dreo smart-device (fan / air-circulator / purifier / heater / humidifier) device-provider addon for CamStack — wraps the @apocaliss92/nodedreo Dreo cloud client (REST + WebSocket)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|