@camstack/addon-smtp-nodemailer 1.2.112 → 1.2.114

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-GU_us3DG.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,118 @@ 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. The device page is
27234
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
27235
+ * and this cap carries its section the way `recording` does, by RETURNING it
27236
+ * from `getDeviceSettingsContribution`.
27237
+ *
27238
+ * Seven other widgets are still declared the other way, through a
27239
+ * `deviceConfig.ui` block the framework derives a section from. That route
27240
+ * gives the addon no say in where its own panel lands and no way to decline
27241
+ * for a device the panel does not suit, which is why this one does not use it.
27242
+ *
27243
+ * ## Why one addon may implement it
27244
+ *
27245
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27246
+ * itself. Nothing else declares a composite camera, so nothing else has a
27247
+ * layout — and the device-scoped route means the widget asks THE camera, not
27248
+ * "the camera-grid addon", which is what let the old custom-action pair be
27249
+ * reached only by a caller that already knew the addon id.
27250
+ *
27251
+ * ## The tab
27252
+ *
27253
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27254
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27255
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27256
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27257
+ * next to "PTZ").
27258
+ */
27259
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27260
+ var GridNormalizedRectSchema = object({
27261
+ x: number().min(0).max(1),
27262
+ y: number().min(0).max(1),
27263
+ width: number().gt(0).max(1),
27264
+ height: number().gt(0).max(1)
27265
+ });
27266
+ /**
27267
+ * One source camera, the part of its picture taken, and where that part lands.
27268
+ *
27269
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27270
+ * — a profile switch, a firmware update, a substream that comes back different
27271
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27272
+ * which is the class of bug nobody files.
27273
+ */
27274
+ var GridLayoutCellSchema = object({
27275
+ deviceId: number().int().positive(),
27276
+ /** The part of the SOURCE taken, normalized against the source. */
27277
+ source: GridNormalizedRectSchema,
27278
+ /** Where it lands, normalized against the CANVAS. */
27279
+ cell: GridNormalizedRectSchema
27280
+ });
27281
+ /**
27282
+ * Which profiles this grid can actually compose, and why not.
27283
+ *
27284
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27285
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27286
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27287
+ * low" is, and it is the one an operator can act on.
27288
+ */
27289
+ var GridProfileOfferSchema = object({
27290
+ profile: _enum([
27291
+ "high",
27292
+ "mid",
27293
+ "low"
27294
+ ]),
27295
+ offered: boolean(),
27296
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27297
+ missingSources: array(number().int().positive())
27298
+ });
27299
+ var GridLayoutViewSchema = object({
27300
+ /** The persisted grid row this camera was declared from. */
27301
+ instanceId: string(),
27302
+ deviceId: number().int().nonnegative(),
27303
+ name: string(),
27304
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27305
+ width: number().int(),
27306
+ height: number().int(),
27307
+ fps: number().int(),
27308
+ cells: array(GridLayoutCellSchema),
27309
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27310
+ profiles: array(GridProfileOfferSchema)
27311
+ });
27312
+ var GridLayoutPatchSchema = object({
27313
+ deviceId: number().int().nonnegative(),
27314
+ name: string().min(1).max(160).optional(),
27315
+ width: number().int().min(160).max(7680).optional(),
27316
+ height: number().int().min(120).max(4320).optional(),
27317
+ fps: number().int().min(1).max(60).optional(),
27318
+ /**
27319
+ * The whole cell list at once. A per-cell patch would need an ordering the
27320
+ * editor does not have, and a half-applied layout is a picture nobody asked
27321
+ * for.
27322
+ */
27323
+ cells: array(GridLayoutCellSchema).max(16)
27324
+ });
27325
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27326
+ kind: "mutation",
27327
+ auth: "admin"
27328
+ });
27329
+ /**
27200
27330
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27201
27331
  * on-camera motion-detection mask is a single `grid` region (a row-major
27202
27332
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -32225,6 +32355,18 @@ Object.freeze({
32225
32355
  addonId: null,
32226
32356
  access: "view"
32227
32357
  },
32358
+ "cameraGridLayout.getLayout": {
32359
+ capName: "camera-grid-layout",
32360
+ capScope: "device",
32361
+ addonId: null,
32362
+ access: "view"
32363
+ },
32364
+ "cameraGridLayout.saveLayout": {
32365
+ capName: "camera-grid-layout",
32366
+ capScope: "device",
32367
+ addonId: null,
32368
+ access: "create"
32369
+ },
32228
32370
  "cameraStreams.getBrokerStreams": {
32229
32371
  capName: "camera-streams",
32230
32372
  capScope: "device",
@@ -37924,6 +38066,21 @@ Object.freeze({
37924
38066
  form: "single",
37925
38067
  optional: false
37926
38068
  }],
38069
+ "cameraGridLayout.getLayout": [{
38070
+ name: "deviceId",
38071
+ form: "single",
38072
+ optional: false
38073
+ }],
38074
+ "cameraGridLayout.saveLayout": [{
38075
+ name: "cells",
38076
+ form: "object-array",
38077
+ optional: false,
38078
+ itemField: "deviceId"
38079
+ }, {
38080
+ name: "deviceId",
38081
+ form: "single",
38082
+ optional: false
38083
+ }],
37927
38084
  "cameraStreams.getBrokerStreams": [{
37928
38085
  name: "deviceId",
37929
38086
  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-GU_us3DG.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,118 @@ 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. The device page is
27232
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
27233
+ * and this cap carries its section the way `recording` does, by RETURNING it
27234
+ * from `getDeviceSettingsContribution`.
27235
+ *
27236
+ * Seven other widgets are still declared the other way, through a
27237
+ * `deviceConfig.ui` block the framework derives a section from. That route
27238
+ * gives the addon no say in where its own panel lands and no way to decline
27239
+ * for a device the panel does not suit, which is why this one does not use it.
27240
+ *
27241
+ * ## Why one addon may implement it
27242
+ *
27243
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27244
+ * itself. Nothing else declares a composite camera, so nothing else has a
27245
+ * layout — and the device-scoped route means the widget asks THE camera, not
27246
+ * "the camera-grid addon", which is what let the old custom-action pair be
27247
+ * reached only by a caller that already knew the addon id.
27248
+ *
27249
+ * ## The tab
27250
+ *
27251
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27252
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27253
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27254
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27255
+ * next to "PTZ").
27256
+ */
27257
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27258
+ var GridNormalizedRectSchema = object({
27259
+ x: number().min(0).max(1),
27260
+ y: number().min(0).max(1),
27261
+ width: number().gt(0).max(1),
27262
+ height: number().gt(0).max(1)
27263
+ });
27264
+ /**
27265
+ * One source camera, the part of its picture taken, and where that part lands.
27266
+ *
27267
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27268
+ * — a profile switch, a firmware update, a substream that comes back different
27269
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27270
+ * which is the class of bug nobody files.
27271
+ */
27272
+ var GridLayoutCellSchema = object({
27273
+ deviceId: number().int().positive(),
27274
+ /** The part of the SOURCE taken, normalized against the source. */
27275
+ source: GridNormalizedRectSchema,
27276
+ /** Where it lands, normalized against the CANVAS. */
27277
+ cell: GridNormalizedRectSchema
27278
+ });
27279
+ /**
27280
+ * Which profiles this grid can actually compose, and why not.
27281
+ *
27282
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27283
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27284
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27285
+ * low" is, and it is the one an operator can act on.
27286
+ */
27287
+ var GridProfileOfferSchema = object({
27288
+ profile: _enum([
27289
+ "high",
27290
+ "mid",
27291
+ "low"
27292
+ ]),
27293
+ offered: boolean(),
27294
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27295
+ missingSources: array(number().int().positive())
27296
+ });
27297
+ var GridLayoutViewSchema = object({
27298
+ /** The persisted grid row this camera was declared from. */
27299
+ instanceId: string(),
27300
+ deviceId: number().int().nonnegative(),
27301
+ name: string(),
27302
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27303
+ width: number().int(),
27304
+ height: number().int(),
27305
+ fps: number().int(),
27306
+ cells: array(GridLayoutCellSchema),
27307
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27308
+ profiles: array(GridProfileOfferSchema)
27309
+ });
27310
+ var GridLayoutPatchSchema = object({
27311
+ deviceId: number().int().nonnegative(),
27312
+ name: string().min(1).max(160).optional(),
27313
+ width: number().int().min(160).max(7680).optional(),
27314
+ height: number().int().min(120).max(4320).optional(),
27315
+ fps: number().int().min(1).max(60).optional(),
27316
+ /**
27317
+ * The whole cell list at once. A per-cell patch would need an ordering the
27318
+ * editor does not have, and a half-applied layout is a picture nobody asked
27319
+ * for.
27320
+ */
27321
+ cells: array(GridLayoutCellSchema).max(16)
27322
+ });
27323
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27324
+ kind: "mutation",
27325
+ auth: "admin"
27326
+ });
27327
+ /**
27198
27328
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27199
27329
  * on-camera motion-detection mask is a single `grid` region (a row-major
27200
27330
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -32223,6 +32353,18 @@ Object.freeze({
32223
32353
  addonId: null,
32224
32354
  access: "view"
32225
32355
  },
32356
+ "cameraGridLayout.getLayout": {
32357
+ capName: "camera-grid-layout",
32358
+ capScope: "device",
32359
+ addonId: null,
32360
+ access: "view"
32361
+ },
32362
+ "cameraGridLayout.saveLayout": {
32363
+ capName: "camera-grid-layout",
32364
+ capScope: "device",
32365
+ addonId: null,
32366
+ access: "create"
32367
+ },
32226
32368
  "cameraStreams.getBrokerStreams": {
32227
32369
  capName: "camera-streams",
32228
32370
  capScope: "device",
@@ -37922,6 +38064,21 @@ Object.freeze({
37922
38064
  form: "single",
37923
38065
  optional: false
37924
38066
  }],
38067
+ "cameraGridLayout.getLayout": [{
38068
+ name: "deviceId",
38069
+ form: "single",
38070
+ optional: false
38071
+ }],
38072
+ "cameraGridLayout.saveLayout": [{
38073
+ name: "cells",
38074
+ form: "object-array",
38075
+ optional: false,
38076
+ itemField: "deviceId"
38077
+ }, {
38078
+ name: "deviceId",
38079
+ form: "single",
38080
+ optional: false
38081
+ }],
37925
38082
  "cameraStreams.getBrokerStreams": [{
37926
38083
  name: "deviceId",
37927
38084
  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.114",
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",