@camstack/addon-export-alexa 1.2.38 → 1.2.39

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.
@@ -26423,17 +26423,60 @@ var SetSiteLocationInputSchema = object({
26423
26423
  longitude: number().min(-180).max(180)
26424
26424
  }).nullable();
26425
26425
  /**
26426
- * One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
26426
+ * The TRANSPORT a call arrived on.
26427
+ *
26428
+ * Every counted call carries exactly one of these, and `unknown` is a PLANE
26429
+ * rather than a gap: a plane that cannot attribute a call declares it here, so
26430
+ * the call lands in a named bucket instead of vanishing. `planes` summing to
26431
+ * `procedureCalls` is what makes "the sum of the planes explains the total"
26432
+ * checkable rather than asserted.
26433
+ *
26434
+ * - `http` — the Fastify tRPC plugin (`/trpc/*`), one context per request.
26435
+ * - `ws` — `applyWSSHandler`, counted per OPERATION rather than per
26436
+ * connection; the viewer talks to the hub over `wsLink`
26437
+ * exclusively, so this is the plane the HTTP census could not see.
26438
+ * - `mesh` — the in-process `$core-caps` bridge (`createCaller`), which
26439
+ * never touches a socket and therefore never touched a census.
26440
+ * - `unknown` — counted, plane undecidable. No hook produces it today, and
26441
+ * that is exactly what its `0` asserts: every plane the hub has can name
26442
+ * itself. It is an output bucket, never a knob — a call that arrives on a
26443
+ * plane nobody instrumented lands here instead of vanishing from the total.
26444
+ */
26445
+ var TransportPlaneSchema = _enum([
26446
+ "http",
26447
+ "ws",
26448
+ "mesh",
26449
+ "unknown"
26450
+ ]);
26451
+ /**
26452
+ * Calls per plane. Every key is always present, `0` included — an absent plane
26453
+ * reads as "not instrumented", which is the one thing this census must never
26454
+ * make an operator wonder about.
26455
+ */
26456
+ var TransportPlaneCountsSchema = object({
26457
+ http: number(),
26458
+ ws: number(),
26459
+ mesh: number(),
26460
+ unknown: number()
26461
+ });
26462
+ /**
26463
+ * One `(plane, procedure, user-agent, ip, principal)` tuple of the transport
26427
26464
  * census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
26428
26465
  * `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
26429
26466
  * already prints - never a token, never an `Authorization` header.
26467
+ *
26468
+ * `subscriptions` is counted APART from `calls`: a subscription is opened once
26469
+ * and lives for hours, so folding it into a call count makes one long-lived
26470
+ * stream look like a storm.
26430
26471
  */
26431
26472
  var RequestCensusGroupSchema = object({
26473
+ plane: TransportPlaneSchema,
26432
26474
  procedure: string(),
26433
26475
  userAgent: string(),
26434
26476
  ip: string(),
26435
26477
  principal: string(),
26436
26478
  calls: number(),
26479
+ subscriptions: number(),
26437
26480
  perMin: number()
26438
26481
  });
26439
26482
  /**
@@ -26446,6 +26489,14 @@ var RequestCensusGroupSchema = object({
26446
26489
  var RequestCensusProcedureSchema = object({
26447
26490
  procedure: string(),
26448
26491
  calls: number(),
26492
+ /**
26493
+ * The same total, split by transport. THIS is the row that answers the
26494
+ * question the census exists for: one look at `deviceManager.listAll` says
26495
+ * which plane carried the 4 960, without joining two log lines by eye.
26496
+ */
26497
+ planes: TransportPlaneCountsSchema,
26498
+ /** Subscription STARTS on this procedure. Never folded into `calls`. */
26499
+ subscriptions: number(),
26449
26500
  perMin: number()
26450
26501
  });
26451
26502
  /**
@@ -26473,14 +26524,45 @@ var RequestCensusStatusSchema = object({
26473
26524
  */
26474
26525
  procedureCalls: number(),
26475
26526
  /**
26527
+ * `procedureCalls` split by transport. The four keys sum to
26528
+ * `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
26529
+ * `planesExplainTotal` is that identity, checked rather than assumed.
26530
+ */
26531
+ planes: TransportPlaneCountsSchema,
26532
+ /**
26533
+ * True iff `planes` sums to `procedureCalls`. False means a call was counted
26534
+ * on no plane at all - which is a RESULT (a plane is missing from the
26535
+ * instrument), not a failure, and it has to be visible to be read as one.
26536
+ */
26537
+ planesExplainTotal: boolean(),
26538
+ /**
26476
26539
  * tRPC WebSocket connections opened during the window. NOT calls - the WS
26477
- * transport resolves one context per connection - but the number that says
26478
- * whether a plane this census cannot see was busy while HTTP was quiet.
26540
+ * adapter resolves one context per connection - kept because a plane's call
26541
+ * count of zero against 37 open connections says something different from a
26542
+ * plane with no connections at all.
26479
26543
  */
26480
26544
  wsConnections: number(),
26545
+ /**
26546
+ * Client frames the WS plane looked at. `wsMessages` far above
26547
+ * `planes.ws + subscriptions` means most traffic is not operations
26548
+ * (keepalives, connection params) - which is itself an answer.
26549
+ */
26550
+ wsMessages: number(),
26551
+ /**
26552
+ * Subscription STARTS across every plane, excluded from `procedureCalls` on
26553
+ * purpose: one live-events stream opened at boot and held for six hours is
26554
+ * one subscription, and counting it as a call would let a quiet plane
26555
+ * masquerade as the storm.
26556
+ */
26557
+ subscriptions: number(),
26558
+ /** `subscription.stop` frames. Starts minus stops is what is still open. */
26559
+ subscriptionStops: number(),
26481
26560
  distinctGroups: number(),
26482
- /** Calls counted in the totals whose group attribution was shed at the
26483
- * cardinality bound. */
26561
+ /**
26562
+ * Operations counted in the totals whose CALLER attribution was shed at the
26563
+ * cardinality bound. Unrelated to the `unknown` PLANE: these calls know
26564
+ * which transport they arrived on, they just lost their group row.
26565
+ */
26484
26566
  unattributedCalls: number(),
26485
26567
  procedures: array(RequestCensusProcedureSchema).readonly(),
26486
26568
  groups: array(RequestCensusGroupSchema).readonly()
@@ -26396,17 +26396,60 @@ var SetSiteLocationInputSchema = object({
26396
26396
  longitude: number().min(-180).max(180)
26397
26397
  }).nullable();
26398
26398
  /**
26399
- * One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
26399
+ * The TRANSPORT a call arrived on.
26400
+ *
26401
+ * Every counted call carries exactly one of these, and `unknown` is a PLANE
26402
+ * rather than a gap: a plane that cannot attribute a call declares it here, so
26403
+ * the call lands in a named bucket instead of vanishing. `planes` summing to
26404
+ * `procedureCalls` is what makes "the sum of the planes explains the total"
26405
+ * checkable rather than asserted.
26406
+ *
26407
+ * - `http` — the Fastify tRPC plugin (`/trpc/*`), one context per request.
26408
+ * - `ws` — `applyWSSHandler`, counted per OPERATION rather than per
26409
+ * connection; the viewer talks to the hub over `wsLink`
26410
+ * exclusively, so this is the plane the HTTP census could not see.
26411
+ * - `mesh` — the in-process `$core-caps` bridge (`createCaller`), which
26412
+ * never touches a socket and therefore never touched a census.
26413
+ * - `unknown` — counted, plane undecidable. No hook produces it today, and
26414
+ * that is exactly what its `0` asserts: every plane the hub has can name
26415
+ * itself. It is an output bucket, never a knob — a call that arrives on a
26416
+ * plane nobody instrumented lands here instead of vanishing from the total.
26417
+ */
26418
+ var TransportPlaneSchema = _enum([
26419
+ "http",
26420
+ "ws",
26421
+ "mesh",
26422
+ "unknown"
26423
+ ]);
26424
+ /**
26425
+ * Calls per plane. Every key is always present, `0` included — an absent plane
26426
+ * reads as "not instrumented", which is the one thing this census must never
26427
+ * make an operator wonder about.
26428
+ */
26429
+ var TransportPlaneCountsSchema = object({
26430
+ http: number(),
26431
+ ws: number(),
26432
+ mesh: number(),
26433
+ unknown: number()
26434
+ });
26435
+ /**
26436
+ * One `(plane, procedure, user-agent, ip, principal)` tuple of the transport
26400
26437
  * census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
26401
26438
  * `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
26402
26439
  * already prints - never a token, never an `Authorization` header.
26440
+ *
26441
+ * `subscriptions` is counted APART from `calls`: a subscription is opened once
26442
+ * and lives for hours, so folding it into a call count makes one long-lived
26443
+ * stream look like a storm.
26403
26444
  */
26404
26445
  var RequestCensusGroupSchema = object({
26446
+ plane: TransportPlaneSchema,
26405
26447
  procedure: string(),
26406
26448
  userAgent: string(),
26407
26449
  ip: string(),
26408
26450
  principal: string(),
26409
26451
  calls: number(),
26452
+ subscriptions: number(),
26410
26453
  perMin: number()
26411
26454
  });
26412
26455
  /**
@@ -26419,6 +26462,14 @@ var RequestCensusGroupSchema = object({
26419
26462
  var RequestCensusProcedureSchema = object({
26420
26463
  procedure: string(),
26421
26464
  calls: number(),
26465
+ /**
26466
+ * The same total, split by transport. THIS is the row that answers the
26467
+ * question the census exists for: one look at `deviceManager.listAll` says
26468
+ * which plane carried the 4 960, without joining two log lines by eye.
26469
+ */
26470
+ planes: TransportPlaneCountsSchema,
26471
+ /** Subscription STARTS on this procedure. Never folded into `calls`. */
26472
+ subscriptions: number(),
26422
26473
  perMin: number()
26423
26474
  });
26424
26475
  /**
@@ -26446,14 +26497,45 @@ var RequestCensusStatusSchema = object({
26446
26497
  */
26447
26498
  procedureCalls: number(),
26448
26499
  /**
26500
+ * `procedureCalls` split by transport. The four keys sum to
26501
+ * `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
26502
+ * `planesExplainTotal` is that identity, checked rather than assumed.
26503
+ */
26504
+ planes: TransportPlaneCountsSchema,
26505
+ /**
26506
+ * True iff `planes` sums to `procedureCalls`. False means a call was counted
26507
+ * on no plane at all - which is a RESULT (a plane is missing from the
26508
+ * instrument), not a failure, and it has to be visible to be read as one.
26509
+ */
26510
+ planesExplainTotal: boolean(),
26511
+ /**
26449
26512
  * tRPC WebSocket connections opened during the window. NOT calls - the WS
26450
- * transport resolves one context per connection - but the number that says
26451
- * whether a plane this census cannot see was busy while HTTP was quiet.
26513
+ * adapter resolves one context per connection - kept because a plane's call
26514
+ * count of zero against 37 open connections says something different from a
26515
+ * plane with no connections at all.
26452
26516
  */
26453
26517
  wsConnections: number(),
26518
+ /**
26519
+ * Client frames the WS plane looked at. `wsMessages` far above
26520
+ * `planes.ws + subscriptions` means most traffic is not operations
26521
+ * (keepalives, connection params) - which is itself an answer.
26522
+ */
26523
+ wsMessages: number(),
26524
+ /**
26525
+ * Subscription STARTS across every plane, excluded from `procedureCalls` on
26526
+ * purpose: one live-events stream opened at boot and held for six hours is
26527
+ * one subscription, and counting it as a call would let a quiet plane
26528
+ * masquerade as the storm.
26529
+ */
26530
+ subscriptions: number(),
26531
+ /** `subscription.stop` frames. Starts minus stops is what is still open. */
26532
+ subscriptionStops: number(),
26454
26533
  distinctGroups: number(),
26455
- /** Calls counted in the totals whose group attribution was shed at the
26456
- * cardinality bound. */
26534
+ /**
26535
+ * Operations counted in the totals whose CALLER attribution was shed at the
26536
+ * cardinality bound. Unrelated to the `unknown` PLANE: these calls know
26537
+ * which transport they arrived on, they just lost their group row.
26538
+ */
26457
26539
  unattributedCalls: number(),
26458
26540
  procedures: array(RequestCensusProcedureSchema).readonly(),
26459
26541
  groups: array(RequestCensusGroupSchema).readonly()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-alexa",
3
- "version": "1.2.38",
3
+ "version": "1.2.39",
4
4
  "description": "Alexa Smart Home Skill export — hub-side OAuth provider + directive handler. The companion AWS Lambda forwards Alexa directives to this addon's /addon/export-alexa/directive endpoint.",
5
5
  "keywords": [
6
6
  "camstack",