@camstack/addon-smtp-nodemailer 1.2.31 → 1.2.32

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.
@@ -26146,17 +26146,60 @@ var SetSiteLocationInputSchema = object({
26146
26146
  longitude: number().min(-180).max(180)
26147
26147
  }).nullable();
26148
26148
  /**
26149
- * One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
26149
+ * The TRANSPORT a call arrived on.
26150
+ *
26151
+ * Every counted call carries exactly one of these, and `unknown` is a PLANE
26152
+ * rather than a gap: a plane that cannot attribute a call declares it here, so
26153
+ * the call lands in a named bucket instead of vanishing. `planes` summing to
26154
+ * `procedureCalls` is what makes "the sum of the planes explains the total"
26155
+ * checkable rather than asserted.
26156
+ *
26157
+ * - `http` — the Fastify tRPC plugin (`/trpc/*`), one context per request.
26158
+ * - `ws` — `applyWSSHandler`, counted per OPERATION rather than per
26159
+ * connection; the viewer talks to the hub over `wsLink`
26160
+ * exclusively, so this is the plane the HTTP census could not see.
26161
+ * - `mesh` — the in-process `$core-caps` bridge (`createCaller`), which
26162
+ * never touches a socket and therefore never touched a census.
26163
+ * - `unknown` — counted, plane undecidable. No hook produces it today, and
26164
+ * that is exactly what its `0` asserts: every plane the hub has can name
26165
+ * itself. It is an output bucket, never a knob — a call that arrives on a
26166
+ * plane nobody instrumented lands here instead of vanishing from the total.
26167
+ */
26168
+ var TransportPlaneSchema = _enum([
26169
+ "http",
26170
+ "ws",
26171
+ "mesh",
26172
+ "unknown"
26173
+ ]);
26174
+ /**
26175
+ * Calls per plane. Every key is always present, `0` included — an absent plane
26176
+ * reads as "not instrumented", which is the one thing this census must never
26177
+ * make an operator wonder about.
26178
+ */
26179
+ var TransportPlaneCountsSchema = object({
26180
+ http: number(),
26181
+ ws: number(),
26182
+ mesh: number(),
26183
+ unknown: number()
26184
+ });
26185
+ /**
26186
+ * One `(plane, procedure, user-agent, ip, principal)` tuple of the transport
26150
26187
  * census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
26151
26188
  * `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
26152
26189
  * already prints - never a token, never an `Authorization` header.
26190
+ *
26191
+ * `subscriptions` is counted APART from `calls`: a subscription is opened once
26192
+ * and lives for hours, so folding it into a call count makes one long-lived
26193
+ * stream look like a storm.
26153
26194
  */
26154
26195
  var RequestCensusGroupSchema = object({
26196
+ plane: TransportPlaneSchema,
26155
26197
  procedure: string(),
26156
26198
  userAgent: string(),
26157
26199
  ip: string(),
26158
26200
  principal: string(),
26159
26201
  calls: number(),
26202
+ subscriptions: number(),
26160
26203
  perMin: number()
26161
26204
  });
26162
26205
  /**
@@ -26169,6 +26212,14 @@ var RequestCensusGroupSchema = object({
26169
26212
  var RequestCensusProcedureSchema = object({
26170
26213
  procedure: string(),
26171
26214
  calls: number(),
26215
+ /**
26216
+ * The same total, split by transport. THIS is the row that answers the
26217
+ * question the census exists for: one look at `deviceManager.listAll` says
26218
+ * which plane carried the 4 960, without joining two log lines by eye.
26219
+ */
26220
+ planes: TransportPlaneCountsSchema,
26221
+ /** Subscription STARTS on this procedure. Never folded into `calls`. */
26222
+ subscriptions: number(),
26172
26223
  perMin: number()
26173
26224
  });
26174
26225
  /**
@@ -26196,14 +26247,45 @@ var RequestCensusStatusSchema = object({
26196
26247
  */
26197
26248
  procedureCalls: number(),
26198
26249
  /**
26250
+ * `procedureCalls` split by transport. The four keys sum to
26251
+ * `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
26252
+ * `planesExplainTotal` is that identity, checked rather than assumed.
26253
+ */
26254
+ planes: TransportPlaneCountsSchema,
26255
+ /**
26256
+ * True iff `planes` sums to `procedureCalls`. False means a call was counted
26257
+ * on no plane at all - which is a RESULT (a plane is missing from the
26258
+ * instrument), not a failure, and it has to be visible to be read as one.
26259
+ */
26260
+ planesExplainTotal: boolean(),
26261
+ /**
26199
26262
  * tRPC WebSocket connections opened during the window. NOT calls - the WS
26200
- * transport resolves one context per connection - but the number that says
26201
- * whether a plane this census cannot see was busy while HTTP was quiet.
26263
+ * adapter resolves one context per connection - kept because a plane's call
26264
+ * count of zero against 37 open connections says something different from a
26265
+ * plane with no connections at all.
26202
26266
  */
26203
26267
  wsConnections: number(),
26268
+ /**
26269
+ * Client frames the WS plane looked at. `wsMessages` far above
26270
+ * `planes.ws + subscriptions` means most traffic is not operations
26271
+ * (keepalives, connection params) - which is itself an answer.
26272
+ */
26273
+ wsMessages: number(),
26274
+ /**
26275
+ * Subscription STARTS across every plane, excluded from `procedureCalls` on
26276
+ * purpose: one live-events stream opened at boot and held for six hours is
26277
+ * one subscription, and counting it as a call would let a quiet plane
26278
+ * masquerade as the storm.
26279
+ */
26280
+ subscriptions: number(),
26281
+ /** `subscription.stop` frames. Starts minus stops is what is still open. */
26282
+ subscriptionStops: number(),
26204
26283
  distinctGroups: number(),
26205
- /** Calls counted in the totals whose group attribution was shed at the
26206
- * cardinality bound. */
26284
+ /**
26285
+ * Operations counted in the totals whose CALLER attribution was shed at the
26286
+ * cardinality bound. Unrelated to the `unknown` PLANE: these calls know
26287
+ * which transport they arrived on, they just lost their group row.
26288
+ */
26207
26289
  unattributedCalls: number(),
26208
26290
  procedures: array(RequestCensusProcedureSchema).readonly(),
26209
26291
  groups: array(RequestCensusGroupSchema).readonly()
@@ -26144,17 +26144,60 @@ var SetSiteLocationInputSchema = object({
26144
26144
  longitude: number().min(-180).max(180)
26145
26145
  }).nullable();
26146
26146
  /**
26147
- * One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
26147
+ * The TRANSPORT a call arrived on.
26148
+ *
26149
+ * Every counted call carries exactly one of these, and `unknown` is a PLANE
26150
+ * rather than a gap: a plane that cannot attribute a call declares it here, so
26151
+ * the call lands in a named bucket instead of vanishing. `planes` summing to
26152
+ * `procedureCalls` is what makes "the sum of the planes explains the total"
26153
+ * checkable rather than asserted.
26154
+ *
26155
+ * - `http` — the Fastify tRPC plugin (`/trpc/*`), one context per request.
26156
+ * - `ws` — `applyWSSHandler`, counted per OPERATION rather than per
26157
+ * connection; the viewer talks to the hub over `wsLink`
26158
+ * exclusively, so this is the plane the HTTP census could not see.
26159
+ * - `mesh` — the in-process `$core-caps` bridge (`createCaller`), which
26160
+ * never touches a socket and therefore never touched a census.
26161
+ * - `unknown` — counted, plane undecidable. No hook produces it today, and
26162
+ * that is exactly what its `0` asserts: every plane the hub has can name
26163
+ * itself. It is an output bucket, never a knob — a call that arrives on a
26164
+ * plane nobody instrumented lands here instead of vanishing from the total.
26165
+ */
26166
+ var TransportPlaneSchema = _enum([
26167
+ "http",
26168
+ "ws",
26169
+ "mesh",
26170
+ "unknown"
26171
+ ]);
26172
+ /**
26173
+ * Calls per plane. Every key is always present, `0` included — an absent plane
26174
+ * reads as "not instrumented", which is the one thing this census must never
26175
+ * make an operator wonder about.
26176
+ */
26177
+ var TransportPlaneCountsSchema = object({
26178
+ http: number(),
26179
+ ws: number(),
26180
+ mesh: number(),
26181
+ unknown: number()
26182
+ });
26183
+ /**
26184
+ * One `(plane, procedure, user-agent, ip, principal)` tuple of the transport
26148
26185
  * census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
26149
26186
  * `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
26150
26187
  * already prints - never a token, never an `Authorization` header.
26188
+ *
26189
+ * `subscriptions` is counted APART from `calls`: a subscription is opened once
26190
+ * and lives for hours, so folding it into a call count makes one long-lived
26191
+ * stream look like a storm.
26151
26192
  */
26152
26193
  var RequestCensusGroupSchema = object({
26194
+ plane: TransportPlaneSchema,
26153
26195
  procedure: string(),
26154
26196
  userAgent: string(),
26155
26197
  ip: string(),
26156
26198
  principal: string(),
26157
26199
  calls: number(),
26200
+ subscriptions: number(),
26158
26201
  perMin: number()
26159
26202
  });
26160
26203
  /**
@@ -26167,6 +26210,14 @@ var RequestCensusGroupSchema = object({
26167
26210
  var RequestCensusProcedureSchema = object({
26168
26211
  procedure: string(),
26169
26212
  calls: number(),
26213
+ /**
26214
+ * The same total, split by transport. THIS is the row that answers the
26215
+ * question the census exists for: one look at `deviceManager.listAll` says
26216
+ * which plane carried the 4 960, without joining two log lines by eye.
26217
+ */
26218
+ planes: TransportPlaneCountsSchema,
26219
+ /** Subscription STARTS on this procedure. Never folded into `calls`. */
26220
+ subscriptions: number(),
26170
26221
  perMin: number()
26171
26222
  });
26172
26223
  /**
@@ -26194,14 +26245,45 @@ var RequestCensusStatusSchema = object({
26194
26245
  */
26195
26246
  procedureCalls: number(),
26196
26247
  /**
26248
+ * `procedureCalls` split by transport. The four keys sum to
26249
+ * `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
26250
+ * `planesExplainTotal` is that identity, checked rather than assumed.
26251
+ */
26252
+ planes: TransportPlaneCountsSchema,
26253
+ /**
26254
+ * True iff `planes` sums to `procedureCalls`. False means a call was counted
26255
+ * on no plane at all - which is a RESULT (a plane is missing from the
26256
+ * instrument), not a failure, and it has to be visible to be read as one.
26257
+ */
26258
+ planesExplainTotal: boolean(),
26259
+ /**
26197
26260
  * tRPC WebSocket connections opened during the window. NOT calls - the WS
26198
- * transport resolves one context per connection - but the number that says
26199
- * whether a plane this census cannot see was busy while HTTP was quiet.
26261
+ * adapter resolves one context per connection - kept because a plane's call
26262
+ * count of zero against 37 open connections says something different from a
26263
+ * plane with no connections at all.
26200
26264
  */
26201
26265
  wsConnections: number(),
26266
+ /**
26267
+ * Client frames the WS plane looked at. `wsMessages` far above
26268
+ * `planes.ws + subscriptions` means most traffic is not operations
26269
+ * (keepalives, connection params) - which is itself an answer.
26270
+ */
26271
+ wsMessages: number(),
26272
+ /**
26273
+ * Subscription STARTS across every plane, excluded from `procedureCalls` on
26274
+ * purpose: one live-events stream opened at boot and held for six hours is
26275
+ * one subscription, and counting it as a call would let a quiet plane
26276
+ * masquerade as the storm.
26277
+ */
26278
+ subscriptions: number(),
26279
+ /** `subscription.stop` frames. Starts minus stops is what is still open. */
26280
+ subscriptionStops: number(),
26202
26281
  distinctGroups: number(),
26203
- /** Calls counted in the totals whose group attribution was shed at the
26204
- * cardinality bound. */
26282
+ /**
26283
+ * Operations counted in the totals whose CALLER attribution was shed at the
26284
+ * cardinality bound. Unrelated to the `unknown` PLANE: these calls know
26285
+ * which transport they arrived on, they just lost their group row.
26286
+ */
26205
26287
  unattributedCalls: number(),
26206
26288
  procedures: array(RequestCensusProcedureSchema).readonly(),
26207
26289
  groups: array(RequestCensusGroupSchema).readonly()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-smtp-nodemailer",
3
- "version": "1.2.31",
3
+ "version": "1.2.32",
4
4
  "description": "SMTP email provider addon for CamStack — wraps `nodemailer` and registers a `smtp-provider` cap collection entry. Used by magic-link login + notifier addons.",
5
5
  "keywords": [
6
6
  "camstack",