@camstack/addon-export-alexa 1.2.120 → 1.2.121

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.
@@ -5387,7 +5387,7 @@ var ZodIssueCode = {
5387
5387
  var ZodFirstPartyTypeKind;
5388
5388
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5389
5389
  //#endregion
5390
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5390
+ //#region ../types/dist/sleep-Bs3xPtSh.mjs
5391
5391
  /**
5392
5392
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5393
5393
  * window to float samples (D455).
@@ -12149,6 +12149,24 @@ var GetStreamWithCodecInputSchema = object({
12149
12149
  });
12150
12150
  var RtpSourceSchema = object({
12151
12151
  url: string(),
12152
+ /**
12153
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
12154
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
12155
+ *
12156
+ * The broker answers it because the broker is the only thing that can:
12157
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
12158
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
12159
+ * cap bindings would be a second authority, and two authorities on the same
12160
+ * question is how a composite camera ends up dialling a sleeping camera
12161
+ * because its own copy of the rule was a release behind.
12162
+ *
12163
+ * `null` is a real answer and is never a live url in disguise: a consumer
12164
+ * that silently fell back to {@link url} would perform exactly the wake this
12165
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
12166
+ * transcode hands back an egress the broker is feeding itself, which has no
12167
+ * sentry counterpart.
12168
+ */
12169
+ sentryUrl: string().nullable().optional(),
12152
12170
  videoCodec: _enum(["H264", "H265"]),
12153
12171
  audioCodec: string(),
12154
12172
  resolution: object({
@@ -27532,6 +27550,114 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
27532
27550
  lastChangedAt: number()
27533
27551
  });
27534
27552
  /**
27553
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
27554
+ * page.
27555
+ *
27556
+ * ## Why this is a capability and not an addon settings schema
27557
+ *
27558
+ * It was one, and it did not render. The addon declared the editor as a
27559
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
27560
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
27561
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
27562
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
27563
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
27564
+ * not on it "falls off silently".
27565
+ *
27566
+ * Adding a fifth name to that list would have been the wrong fix twice over:
27567
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
27568
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
27569
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
27570
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
27571
+ * all use it): the framework emits the structural section and the widget
27572
+ * self-persists through the cap's own mutations.
27573
+ *
27574
+ * ## Why one addon may implement it
27575
+ *
27576
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27577
+ * itself. Nothing else declares a composite camera, so nothing else has a
27578
+ * layout — and the device-scoped route means the widget asks THE camera, not
27579
+ * "the camera-grid addon", which is what let the old custom-action pair be
27580
+ * reached only by a caller that already knew the addon id.
27581
+ *
27582
+ * ## The tab
27583
+ *
27584
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27585
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27586
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27587
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27588
+ * next to "PTZ").
27589
+ */
27590
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27591
+ var GridNormalizedRectSchema = object({
27592
+ x: number().min(0).max(1),
27593
+ y: number().min(0).max(1),
27594
+ width: number().gt(0).max(1),
27595
+ height: number().gt(0).max(1)
27596
+ });
27597
+ /**
27598
+ * One source camera, the part of its picture taken, and where that part lands.
27599
+ *
27600
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27601
+ * — a profile switch, a firmware update, a substream that comes back different
27602
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27603
+ * which is the class of bug nobody files.
27604
+ */
27605
+ var GridLayoutCellSchema = object({
27606
+ deviceId: number().int().positive(),
27607
+ /** The part of the SOURCE taken, normalized against the source. */
27608
+ source: GridNormalizedRectSchema,
27609
+ /** Where it lands, normalized against the CANVAS. */
27610
+ cell: GridNormalizedRectSchema
27611
+ });
27612
+ /**
27613
+ * Which profiles this grid can actually compose, and why not.
27614
+ *
27615
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27616
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27617
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27618
+ * low" is, and it is the one an operator can act on.
27619
+ */
27620
+ var GridProfileOfferSchema = object({
27621
+ profile: _enum([
27622
+ "high",
27623
+ "mid",
27624
+ "low"
27625
+ ]),
27626
+ offered: boolean(),
27627
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27628
+ missingSources: array(number().int().positive())
27629
+ });
27630
+ var GridLayoutViewSchema = object({
27631
+ /** The persisted grid row this camera was declared from. */
27632
+ instanceId: string(),
27633
+ deviceId: number().int().nonnegative(),
27634
+ name: string(),
27635
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27636
+ width: number().int(),
27637
+ height: number().int(),
27638
+ fps: number().int(),
27639
+ cells: array(GridLayoutCellSchema),
27640
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27641
+ profiles: array(GridProfileOfferSchema)
27642
+ });
27643
+ var GridLayoutPatchSchema = object({
27644
+ deviceId: number().int().nonnegative(),
27645
+ name: string().min(1).max(160).optional(),
27646
+ width: number().int().min(160).max(7680).optional(),
27647
+ height: number().int().min(120).max(4320).optional(),
27648
+ fps: number().int().min(1).max(60).optional(),
27649
+ /**
27650
+ * The whole cell list at once. A per-cell patch would need an ordering the
27651
+ * editor does not have, and a half-applied layout is a picture nobody asked
27652
+ * for.
27653
+ */
27654
+ cells: array(GridLayoutCellSchema).max(16)
27655
+ });
27656
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27657
+ kind: "mutation",
27658
+ auth: "admin"
27659
+ });
27660
+ /**
27535
27661
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27536
27662
  * on-camera motion-detection mask is a single `grid` region (a row-major
27537
27663
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -32560,6 +32686,18 @@ Object.freeze({
32560
32686
  addonId: null,
32561
32687
  access: "view"
32562
32688
  },
32689
+ "cameraGridLayout.getLayout": {
32690
+ capName: "camera-grid-layout",
32691
+ capScope: "device",
32692
+ addonId: null,
32693
+ access: "view"
32694
+ },
32695
+ "cameraGridLayout.saveLayout": {
32696
+ capName: "camera-grid-layout",
32697
+ capScope: "device",
32698
+ addonId: null,
32699
+ access: "create"
32700
+ },
32563
32701
  "cameraStreams.getBrokerStreams": {
32564
32702
  capName: "camera-streams",
32565
32703
  capScope: "device",
@@ -38259,6 +38397,21 @@ Object.freeze({
38259
38397
  form: "single",
38260
38398
  optional: false
38261
38399
  }],
38400
+ "cameraGridLayout.getLayout": [{
38401
+ name: "deviceId",
38402
+ form: "single",
38403
+ optional: false
38404
+ }],
38405
+ "cameraGridLayout.saveLayout": [{
38406
+ name: "cells",
38407
+ form: "object-array",
38408
+ optional: false,
38409
+ itemField: "deviceId"
38410
+ }, {
38411
+ name: "deviceId",
38412
+ form: "single",
38413
+ optional: false
38414
+ }],
38262
38415
  "cameraStreams.getBrokerStreams": [{
38263
38416
  name: "deviceId",
38264
38417
  form: "single",
@@ -5360,7 +5360,7 @@ var ZodIssueCode = {
5360
5360
  var ZodFirstPartyTypeKind;
5361
5361
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5362
5362
  //#endregion
5363
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5363
+ //#region ../types/dist/sleep-Bs3xPtSh.mjs
5364
5364
  /**
5365
5365
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5366
5366
  * window to float samples (D455).
@@ -12122,6 +12122,24 @@ var GetStreamWithCodecInputSchema = object({
12122
12122
  });
12123
12123
  var RtpSourceSchema = object({
12124
12124
  url: string(),
12125
+ /**
12126
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
12127
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
12128
+ *
12129
+ * The broker answers it because the broker is the only thing that can:
12130
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
12131
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
12132
+ * cap bindings would be a second authority, and two authorities on the same
12133
+ * question is how a composite camera ends up dialling a sleeping camera
12134
+ * because its own copy of the rule was a release behind.
12135
+ *
12136
+ * `null` is a real answer and is never a live url in disguise: a consumer
12137
+ * that silently fell back to {@link url} would perform exactly the wake this
12138
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
12139
+ * transcode hands back an egress the broker is feeding itself, which has no
12140
+ * sentry counterpart.
12141
+ */
12142
+ sentryUrl: string().nullable().optional(),
12125
12143
  videoCodec: _enum(["H264", "H265"]),
12126
12144
  audioCodec: string(),
12127
12145
  resolution: object({
@@ -27505,6 +27523,114 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
27505
27523
  lastChangedAt: number()
27506
27524
  });
27507
27525
  /**
27526
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
27527
+ * page.
27528
+ *
27529
+ * ## Why this is a capability and not an addon settings schema
27530
+ *
27531
+ * It was one, and it did not render. The addon declared the editor as a
27532
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
27533
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
27534
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
27535
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
27536
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
27537
+ * not on it "falls off silently".
27538
+ *
27539
+ * Adding a fifth name to that list would have been the wrong fix twice over:
27540
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
27541
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
27542
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
27543
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
27544
+ * all use it): the framework emits the structural section and the widget
27545
+ * self-persists through the cap's own mutations.
27546
+ *
27547
+ * ## Why one addon may implement it
27548
+ *
27549
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27550
+ * itself. Nothing else declares a composite camera, so nothing else has a
27551
+ * layout — and the device-scoped route means the widget asks THE camera, not
27552
+ * "the camera-grid addon", which is what let the old custom-action pair be
27553
+ * reached only by a caller that already knew the addon id.
27554
+ *
27555
+ * ## The tab
27556
+ *
27557
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27558
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27559
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27560
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27561
+ * next to "PTZ").
27562
+ */
27563
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27564
+ var GridNormalizedRectSchema = object({
27565
+ x: number().min(0).max(1),
27566
+ y: number().min(0).max(1),
27567
+ width: number().gt(0).max(1),
27568
+ height: number().gt(0).max(1)
27569
+ });
27570
+ /**
27571
+ * One source camera, the part of its picture taken, and where that part lands.
27572
+ *
27573
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27574
+ * — a profile switch, a firmware update, a substream that comes back different
27575
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27576
+ * which is the class of bug nobody files.
27577
+ */
27578
+ var GridLayoutCellSchema = object({
27579
+ deviceId: number().int().positive(),
27580
+ /** The part of the SOURCE taken, normalized against the source. */
27581
+ source: GridNormalizedRectSchema,
27582
+ /** Where it lands, normalized against the CANVAS. */
27583
+ cell: GridNormalizedRectSchema
27584
+ });
27585
+ /**
27586
+ * Which profiles this grid can actually compose, and why not.
27587
+ *
27588
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27589
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27590
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27591
+ * low" is, and it is the one an operator can act on.
27592
+ */
27593
+ var GridProfileOfferSchema = object({
27594
+ profile: _enum([
27595
+ "high",
27596
+ "mid",
27597
+ "low"
27598
+ ]),
27599
+ offered: boolean(),
27600
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27601
+ missingSources: array(number().int().positive())
27602
+ });
27603
+ var GridLayoutViewSchema = object({
27604
+ /** The persisted grid row this camera was declared from. */
27605
+ instanceId: string(),
27606
+ deviceId: number().int().nonnegative(),
27607
+ name: string(),
27608
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27609
+ width: number().int(),
27610
+ height: number().int(),
27611
+ fps: number().int(),
27612
+ cells: array(GridLayoutCellSchema),
27613
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27614
+ profiles: array(GridProfileOfferSchema)
27615
+ });
27616
+ var GridLayoutPatchSchema = object({
27617
+ deviceId: number().int().nonnegative(),
27618
+ name: string().min(1).max(160).optional(),
27619
+ width: number().int().min(160).max(7680).optional(),
27620
+ height: number().int().min(120).max(4320).optional(),
27621
+ fps: number().int().min(1).max(60).optional(),
27622
+ /**
27623
+ * The whole cell list at once. A per-cell patch would need an ordering the
27624
+ * editor does not have, and a half-applied layout is a picture nobody asked
27625
+ * for.
27626
+ */
27627
+ cells: array(GridLayoutCellSchema).max(16)
27628
+ });
27629
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27630
+ kind: "mutation",
27631
+ auth: "admin"
27632
+ });
27633
+ /**
27508
27634
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27509
27635
  * on-camera motion-detection mask is a single `grid` region (a row-major
27510
27636
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -32533,6 +32659,18 @@ Object.freeze({
32533
32659
  addonId: null,
32534
32660
  access: "view"
32535
32661
  },
32662
+ "cameraGridLayout.getLayout": {
32663
+ capName: "camera-grid-layout",
32664
+ capScope: "device",
32665
+ addonId: null,
32666
+ access: "view"
32667
+ },
32668
+ "cameraGridLayout.saveLayout": {
32669
+ capName: "camera-grid-layout",
32670
+ capScope: "device",
32671
+ addonId: null,
32672
+ access: "create"
32673
+ },
32536
32674
  "cameraStreams.getBrokerStreams": {
32537
32675
  capName: "camera-streams",
32538
32676
  capScope: "device",
@@ -38232,6 +38370,21 @@ Object.freeze({
38232
38370
  form: "single",
38233
38371
  optional: false
38234
38372
  }],
38373
+ "cameraGridLayout.getLayout": [{
38374
+ name: "deviceId",
38375
+ form: "single",
38376
+ optional: false
38377
+ }],
38378
+ "cameraGridLayout.saveLayout": [{
38379
+ name: "cells",
38380
+ form: "object-array",
38381
+ optional: false,
38382
+ itemField: "deviceId"
38383
+ }, {
38384
+ name: "deviceId",
38385
+ form: "single",
38386
+ optional: false
38387
+ }],
38235
38388
  "cameraStreams.getBrokerStreams": [{
38236
38389
  name: "deviceId",
38237
38390
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-alexa",
3
- "version": "1.2.120",
3
+ "version": "1.2.121",
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",