@camstack/addon-smtp-nodemailer 1.2.112 → 1.2.113

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.
@@ -5397,7 +5397,7 @@ var ZodIssueCode = {
5397
5397
  var ZodFirstPartyTypeKind;
5398
5398
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5399
5399
  //#endregion
5400
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5400
+ //#region ../types/dist/sleep-Bs3xPtSh.mjs
5401
5401
  /**
5402
5402
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5403
5403
  * window to float samples (D455).
@@ -11842,6 +11842,24 @@ var GetStreamWithCodecInputSchema = object({
11842
11842
  });
11843
11843
  var RtpSourceSchema = object({
11844
11844
  url: string(),
11845
+ /**
11846
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11847
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11848
+ *
11849
+ * The broker answers it because the broker is the only thing that can:
11850
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11851
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11852
+ * cap bindings would be a second authority, and two authorities on the same
11853
+ * question is how a composite camera ends up dialling a sleeping camera
11854
+ * because its own copy of the rule was a release behind.
11855
+ *
11856
+ * `null` is a real answer and is never a live url in disguise: a consumer
11857
+ * that silently fell back to {@link url} would perform exactly the wake this
11858
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11859
+ * transcode hands back an egress the broker is feeding itself, which has no
11860
+ * sentry counterpart.
11861
+ */
11862
+ sentryUrl: string().nullable().optional(),
11845
11863
  videoCodec: _enum(["H264", "H265"]),
11846
11864
  audioCodec: string(),
11847
11865
  resolution: object({
@@ -27197,6 +27215,114 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
27197
27215
  lastChangedAt: number()
27198
27216
  });
27199
27217
  /**
27218
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
27219
+ * page.
27220
+ *
27221
+ * ## Why this is a capability and not an addon settings schema
27222
+ *
27223
+ * It was one, and it did not render. The addon declared the editor as a
27224
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
27225
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
27226
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
27227
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
27228
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
27229
+ * not on it "falls off silently".
27230
+ *
27231
+ * Adding a fifth name to that list would have been the wrong fix twice over:
27232
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
27233
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
27234
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
27235
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
27236
+ * all use it): the framework emits the structural section and the widget
27237
+ * self-persists through the cap's own mutations.
27238
+ *
27239
+ * ## Why one addon may implement it
27240
+ *
27241
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27242
+ * itself. Nothing else declares a composite camera, so nothing else has a
27243
+ * layout — and the device-scoped route means the widget asks THE camera, not
27244
+ * "the camera-grid addon", which is what let the old custom-action pair be
27245
+ * reached only by a caller that already knew the addon id.
27246
+ *
27247
+ * ## The tab
27248
+ *
27249
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27250
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27251
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27252
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27253
+ * next to "PTZ").
27254
+ */
27255
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27256
+ var GridNormalizedRectSchema = object({
27257
+ x: number().min(0).max(1),
27258
+ y: number().min(0).max(1),
27259
+ width: number().gt(0).max(1),
27260
+ height: number().gt(0).max(1)
27261
+ });
27262
+ /**
27263
+ * One source camera, the part of its picture taken, and where that part lands.
27264
+ *
27265
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27266
+ * — a profile switch, a firmware update, a substream that comes back different
27267
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27268
+ * which is the class of bug nobody files.
27269
+ */
27270
+ var GridLayoutCellSchema = object({
27271
+ deviceId: number().int().positive(),
27272
+ /** The part of the SOURCE taken, normalized against the source. */
27273
+ source: GridNormalizedRectSchema,
27274
+ /** Where it lands, normalized against the CANVAS. */
27275
+ cell: GridNormalizedRectSchema
27276
+ });
27277
+ /**
27278
+ * Which profiles this grid can actually compose, and why not.
27279
+ *
27280
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27281
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27282
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27283
+ * low" is, and it is the one an operator can act on.
27284
+ */
27285
+ var GridProfileOfferSchema = object({
27286
+ profile: _enum([
27287
+ "high",
27288
+ "mid",
27289
+ "low"
27290
+ ]),
27291
+ offered: boolean(),
27292
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27293
+ missingSources: array(number().int().positive())
27294
+ });
27295
+ var GridLayoutViewSchema = object({
27296
+ /** The persisted grid row this camera was declared from. */
27297
+ instanceId: string(),
27298
+ deviceId: number().int().nonnegative(),
27299
+ name: string(),
27300
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27301
+ width: number().int(),
27302
+ height: number().int(),
27303
+ fps: number().int(),
27304
+ cells: array(GridLayoutCellSchema),
27305
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27306
+ profiles: array(GridProfileOfferSchema)
27307
+ });
27308
+ var GridLayoutPatchSchema = object({
27309
+ deviceId: number().int().nonnegative(),
27310
+ name: string().min(1).max(160).optional(),
27311
+ width: number().int().min(160).max(7680).optional(),
27312
+ height: number().int().min(120).max(4320).optional(),
27313
+ fps: number().int().min(1).max(60).optional(),
27314
+ /**
27315
+ * The whole cell list at once. A per-cell patch would need an ordering the
27316
+ * editor does not have, and a half-applied layout is a picture nobody asked
27317
+ * for.
27318
+ */
27319
+ cells: array(GridLayoutCellSchema).max(16)
27320
+ });
27321
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27322
+ kind: "mutation",
27323
+ auth: "admin"
27324
+ });
27325
+ /**
27200
27326
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27201
27327
  * on-camera motion-detection mask is a single `grid` region (a row-major
27202
27328
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -32225,6 +32351,18 @@ Object.freeze({
32225
32351
  addonId: null,
32226
32352
  access: "view"
32227
32353
  },
32354
+ "cameraGridLayout.getLayout": {
32355
+ capName: "camera-grid-layout",
32356
+ capScope: "device",
32357
+ addonId: null,
32358
+ access: "view"
32359
+ },
32360
+ "cameraGridLayout.saveLayout": {
32361
+ capName: "camera-grid-layout",
32362
+ capScope: "device",
32363
+ addonId: null,
32364
+ access: "create"
32365
+ },
32228
32366
  "cameraStreams.getBrokerStreams": {
32229
32367
  capName: "camera-streams",
32230
32368
  capScope: "device",
@@ -37924,6 +38062,21 @@ Object.freeze({
37924
38062
  form: "single",
37925
38063
  optional: false
37926
38064
  }],
38065
+ "cameraGridLayout.getLayout": [{
38066
+ name: "deviceId",
38067
+ form: "single",
38068
+ optional: false
38069
+ }],
38070
+ "cameraGridLayout.saveLayout": [{
38071
+ name: "cells",
38072
+ form: "object-array",
38073
+ optional: false,
38074
+ itemField: "deviceId"
38075
+ }, {
38076
+ name: "deviceId",
38077
+ form: "single",
38078
+ optional: false
38079
+ }],
37927
38080
  "cameraStreams.getBrokerStreams": [{
37928
38081
  name: "deviceId",
37929
38082
  form: "single",
@@ -5395,7 +5395,7 @@ var ZodIssueCode = {
5395
5395
  var ZodFirstPartyTypeKind;
5396
5396
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5397
5397
  //#endregion
5398
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5398
+ //#region ../types/dist/sleep-Bs3xPtSh.mjs
5399
5399
  /**
5400
5400
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5401
5401
  * window to float samples (D455).
@@ -11840,6 +11840,24 @@ var GetStreamWithCodecInputSchema = object({
11840
11840
  });
11841
11841
  var RtpSourceSchema = object({
11842
11842
  url: string(),
11843
+ /**
11844
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11845
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11846
+ *
11847
+ * The broker answers it because the broker is the only thing that can:
11848
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11849
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11850
+ * cap bindings would be a second authority, and two authorities on the same
11851
+ * question is how a composite camera ends up dialling a sleeping camera
11852
+ * because its own copy of the rule was a release behind.
11853
+ *
11854
+ * `null` is a real answer and is never a live url in disguise: a consumer
11855
+ * that silently fell back to {@link url} would perform exactly the wake this
11856
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11857
+ * transcode hands back an egress the broker is feeding itself, which has no
11858
+ * sentry counterpart.
11859
+ */
11860
+ sentryUrl: string().nullable().optional(),
11843
11861
  videoCodec: _enum(["H264", "H265"]),
11844
11862
  audioCodec: string(),
11845
11863
  resolution: object({
@@ -27195,6 +27213,114 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
27195
27213
  lastChangedAt: number()
27196
27214
  });
27197
27215
  /**
27216
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
27217
+ * page.
27218
+ *
27219
+ * ## Why this is a capability and not an addon settings schema
27220
+ *
27221
+ * It was one, and it did not render. The addon declared the editor as a
27222
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
27223
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
27224
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
27225
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
27226
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
27227
+ * not on it "falls off silently".
27228
+ *
27229
+ * Adding a fifth name to that list would have been the wrong fix twice over:
27230
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
27231
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
27232
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
27233
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
27234
+ * all use it): the framework emits the structural section and the widget
27235
+ * self-persists through the cap's own mutations.
27236
+ *
27237
+ * ## Why one addon may implement it
27238
+ *
27239
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27240
+ * itself. Nothing else declares a composite camera, so nothing else has a
27241
+ * layout — and the device-scoped route means the widget asks THE camera, not
27242
+ * "the camera-grid addon", which is what let the old custom-action pair be
27243
+ * reached only by a caller that already knew the addon id.
27244
+ *
27245
+ * ## The tab
27246
+ *
27247
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27248
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27249
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27250
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27251
+ * next to "PTZ").
27252
+ */
27253
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27254
+ var GridNormalizedRectSchema = object({
27255
+ x: number().min(0).max(1),
27256
+ y: number().min(0).max(1),
27257
+ width: number().gt(0).max(1),
27258
+ height: number().gt(0).max(1)
27259
+ });
27260
+ /**
27261
+ * One source camera, the part of its picture taken, and where that part lands.
27262
+ *
27263
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27264
+ * — a profile switch, a firmware update, a substream that comes back different
27265
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27266
+ * which is the class of bug nobody files.
27267
+ */
27268
+ var GridLayoutCellSchema = object({
27269
+ deviceId: number().int().positive(),
27270
+ /** The part of the SOURCE taken, normalized against the source. */
27271
+ source: GridNormalizedRectSchema,
27272
+ /** Where it lands, normalized against the CANVAS. */
27273
+ cell: GridNormalizedRectSchema
27274
+ });
27275
+ /**
27276
+ * Which profiles this grid can actually compose, and why not.
27277
+ *
27278
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27279
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27280
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27281
+ * low" is, and it is the one an operator can act on.
27282
+ */
27283
+ var GridProfileOfferSchema = object({
27284
+ profile: _enum([
27285
+ "high",
27286
+ "mid",
27287
+ "low"
27288
+ ]),
27289
+ offered: boolean(),
27290
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27291
+ missingSources: array(number().int().positive())
27292
+ });
27293
+ var GridLayoutViewSchema = object({
27294
+ /** The persisted grid row this camera was declared from. */
27295
+ instanceId: string(),
27296
+ deviceId: number().int().nonnegative(),
27297
+ name: string(),
27298
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27299
+ width: number().int(),
27300
+ height: number().int(),
27301
+ fps: number().int(),
27302
+ cells: array(GridLayoutCellSchema),
27303
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27304
+ profiles: array(GridProfileOfferSchema)
27305
+ });
27306
+ var GridLayoutPatchSchema = object({
27307
+ deviceId: number().int().nonnegative(),
27308
+ name: string().min(1).max(160).optional(),
27309
+ width: number().int().min(160).max(7680).optional(),
27310
+ height: number().int().min(120).max(4320).optional(),
27311
+ fps: number().int().min(1).max(60).optional(),
27312
+ /**
27313
+ * The whole cell list at once. A per-cell patch would need an ordering the
27314
+ * editor does not have, and a half-applied layout is a picture nobody asked
27315
+ * for.
27316
+ */
27317
+ cells: array(GridLayoutCellSchema).max(16)
27318
+ });
27319
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27320
+ kind: "mutation",
27321
+ auth: "admin"
27322
+ });
27323
+ /**
27198
27324
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27199
27325
  * on-camera motion-detection mask is a single `grid` region (a row-major
27200
27326
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -32223,6 +32349,18 @@ Object.freeze({
32223
32349
  addonId: null,
32224
32350
  access: "view"
32225
32351
  },
32352
+ "cameraGridLayout.getLayout": {
32353
+ capName: "camera-grid-layout",
32354
+ capScope: "device",
32355
+ addonId: null,
32356
+ access: "view"
32357
+ },
32358
+ "cameraGridLayout.saveLayout": {
32359
+ capName: "camera-grid-layout",
32360
+ capScope: "device",
32361
+ addonId: null,
32362
+ access: "create"
32363
+ },
32226
32364
  "cameraStreams.getBrokerStreams": {
32227
32365
  capName: "camera-streams",
32228
32366
  capScope: "device",
@@ -37922,6 +38060,21 @@ Object.freeze({
37922
38060
  form: "single",
37923
38061
  optional: false
37924
38062
  }],
38063
+ "cameraGridLayout.getLayout": [{
38064
+ name: "deviceId",
38065
+ form: "single",
38066
+ optional: false
38067
+ }],
38068
+ "cameraGridLayout.saveLayout": [{
38069
+ name: "cells",
38070
+ form: "object-array",
38071
+ optional: false,
38072
+ itemField: "deviceId"
38073
+ }, {
38074
+ name: "deviceId",
38075
+ form: "single",
38076
+ optional: false
38077
+ }],
37925
38078
  "cameraStreams.getBrokerStreams": [{
37926
38079
  name: "deviceId",
37927
38080
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-smtp-nodemailer",
3
- "version": "1.2.112",
3
+ "version": "1.2.113",
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",