@camstack/addon-export-alexa 1.2.120 → 1.2.122

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-GU_us3DG.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,118 @@ 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. The device page is
27569
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
27570
+ * and this cap carries its section the way `recording` does, by RETURNING it
27571
+ * from `getDeviceSettingsContribution`.
27572
+ *
27573
+ * Seven other widgets are still declared the other way, through a
27574
+ * `deviceConfig.ui` block the framework derives a section from. That route
27575
+ * gives the addon no say in where its own panel lands and no way to decline
27576
+ * for a device the panel does not suit, which is why this one does not use it.
27577
+ *
27578
+ * ## Why one addon may implement it
27579
+ *
27580
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27581
+ * itself. Nothing else declares a composite camera, so nothing else has a
27582
+ * layout — and the device-scoped route means the widget asks THE camera, not
27583
+ * "the camera-grid addon", which is what let the old custom-action pair be
27584
+ * reached only by a caller that already knew the addon id.
27585
+ *
27586
+ * ## The tab
27587
+ *
27588
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27589
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27590
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27591
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27592
+ * next to "PTZ").
27593
+ */
27594
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27595
+ var GridNormalizedRectSchema = object({
27596
+ x: number().min(0).max(1),
27597
+ y: number().min(0).max(1),
27598
+ width: number().gt(0).max(1),
27599
+ height: number().gt(0).max(1)
27600
+ });
27601
+ /**
27602
+ * One source camera, the part of its picture taken, and where that part lands.
27603
+ *
27604
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27605
+ * — a profile switch, a firmware update, a substream that comes back different
27606
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27607
+ * which is the class of bug nobody files.
27608
+ */
27609
+ var GridLayoutCellSchema = object({
27610
+ deviceId: number().int().positive(),
27611
+ /** The part of the SOURCE taken, normalized against the source. */
27612
+ source: GridNormalizedRectSchema,
27613
+ /** Where it lands, normalized against the CANVAS. */
27614
+ cell: GridNormalizedRectSchema
27615
+ });
27616
+ /**
27617
+ * Which profiles this grid can actually compose, and why not.
27618
+ *
27619
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27620
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27621
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27622
+ * low" is, and it is the one an operator can act on.
27623
+ */
27624
+ var GridProfileOfferSchema = object({
27625
+ profile: _enum([
27626
+ "high",
27627
+ "mid",
27628
+ "low"
27629
+ ]),
27630
+ offered: boolean(),
27631
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27632
+ missingSources: array(number().int().positive())
27633
+ });
27634
+ var GridLayoutViewSchema = object({
27635
+ /** The persisted grid row this camera was declared from. */
27636
+ instanceId: string(),
27637
+ deviceId: number().int().nonnegative(),
27638
+ name: string(),
27639
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27640
+ width: number().int(),
27641
+ height: number().int(),
27642
+ fps: number().int(),
27643
+ cells: array(GridLayoutCellSchema),
27644
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27645
+ profiles: array(GridProfileOfferSchema)
27646
+ });
27647
+ var GridLayoutPatchSchema = object({
27648
+ deviceId: number().int().nonnegative(),
27649
+ name: string().min(1).max(160).optional(),
27650
+ width: number().int().min(160).max(7680).optional(),
27651
+ height: number().int().min(120).max(4320).optional(),
27652
+ fps: number().int().min(1).max(60).optional(),
27653
+ /**
27654
+ * The whole cell list at once. A per-cell patch would need an ordering the
27655
+ * editor does not have, and a half-applied layout is a picture nobody asked
27656
+ * for.
27657
+ */
27658
+ cells: array(GridLayoutCellSchema).max(16)
27659
+ });
27660
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27661
+ kind: "mutation",
27662
+ auth: "admin"
27663
+ });
27664
+ /**
27535
27665
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27536
27666
  * on-camera motion-detection mask is a single `grid` region (a row-major
27537
27667
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -32560,6 +32690,18 @@ Object.freeze({
32560
32690
  addonId: null,
32561
32691
  access: "view"
32562
32692
  },
32693
+ "cameraGridLayout.getLayout": {
32694
+ capName: "camera-grid-layout",
32695
+ capScope: "device",
32696
+ addonId: null,
32697
+ access: "view"
32698
+ },
32699
+ "cameraGridLayout.saveLayout": {
32700
+ capName: "camera-grid-layout",
32701
+ capScope: "device",
32702
+ addonId: null,
32703
+ access: "create"
32704
+ },
32563
32705
  "cameraStreams.getBrokerStreams": {
32564
32706
  capName: "camera-streams",
32565
32707
  capScope: "device",
@@ -38259,6 +38401,21 @@ Object.freeze({
38259
38401
  form: "single",
38260
38402
  optional: false
38261
38403
  }],
38404
+ "cameraGridLayout.getLayout": [{
38405
+ name: "deviceId",
38406
+ form: "single",
38407
+ optional: false
38408
+ }],
38409
+ "cameraGridLayout.saveLayout": [{
38410
+ name: "cells",
38411
+ form: "object-array",
38412
+ optional: false,
38413
+ itemField: "deviceId"
38414
+ }, {
38415
+ name: "deviceId",
38416
+ form: "single",
38417
+ optional: false
38418
+ }],
38262
38419
  "cameraStreams.getBrokerStreams": [{
38263
38420
  name: "deviceId",
38264
38421
  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-GU_us3DG.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,118 @@ 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. The device page is
27542
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
27543
+ * and this cap carries its section the way `recording` does, by RETURNING it
27544
+ * from `getDeviceSettingsContribution`.
27545
+ *
27546
+ * Seven other widgets are still declared the other way, through a
27547
+ * `deviceConfig.ui` block the framework derives a section from. That route
27548
+ * gives the addon no say in where its own panel lands and no way to decline
27549
+ * for a device the panel does not suit, which is why this one does not use it.
27550
+ *
27551
+ * ## Why one addon may implement it
27552
+ *
27553
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27554
+ * itself. Nothing else declares a composite camera, so nothing else has a
27555
+ * layout — and the device-scoped route means the widget asks THE camera, not
27556
+ * "the camera-grid addon", which is what let the old custom-action pair be
27557
+ * reached only by a caller that already knew the addon id.
27558
+ *
27559
+ * ## The tab
27560
+ *
27561
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27562
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27563
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27564
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27565
+ * next to "PTZ").
27566
+ */
27567
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27568
+ var GridNormalizedRectSchema = object({
27569
+ x: number().min(0).max(1),
27570
+ y: number().min(0).max(1),
27571
+ width: number().gt(0).max(1),
27572
+ height: number().gt(0).max(1)
27573
+ });
27574
+ /**
27575
+ * One source camera, the part of its picture taken, and where that part lands.
27576
+ *
27577
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27578
+ * — a profile switch, a firmware update, a substream that comes back different
27579
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27580
+ * which is the class of bug nobody files.
27581
+ */
27582
+ var GridLayoutCellSchema = object({
27583
+ deviceId: number().int().positive(),
27584
+ /** The part of the SOURCE taken, normalized against the source. */
27585
+ source: GridNormalizedRectSchema,
27586
+ /** Where it lands, normalized against the CANVAS. */
27587
+ cell: GridNormalizedRectSchema
27588
+ });
27589
+ /**
27590
+ * Which profiles this grid can actually compose, and why not.
27591
+ *
27592
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27593
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27594
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27595
+ * low" is, and it is the one an operator can act on.
27596
+ */
27597
+ var GridProfileOfferSchema = object({
27598
+ profile: _enum([
27599
+ "high",
27600
+ "mid",
27601
+ "low"
27602
+ ]),
27603
+ offered: boolean(),
27604
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27605
+ missingSources: array(number().int().positive())
27606
+ });
27607
+ var GridLayoutViewSchema = object({
27608
+ /** The persisted grid row this camera was declared from. */
27609
+ instanceId: string(),
27610
+ deviceId: number().int().nonnegative(),
27611
+ name: string(),
27612
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27613
+ width: number().int(),
27614
+ height: number().int(),
27615
+ fps: number().int(),
27616
+ cells: array(GridLayoutCellSchema),
27617
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27618
+ profiles: array(GridProfileOfferSchema)
27619
+ });
27620
+ var GridLayoutPatchSchema = object({
27621
+ deviceId: number().int().nonnegative(),
27622
+ name: string().min(1).max(160).optional(),
27623
+ width: number().int().min(160).max(7680).optional(),
27624
+ height: number().int().min(120).max(4320).optional(),
27625
+ fps: number().int().min(1).max(60).optional(),
27626
+ /**
27627
+ * The whole cell list at once. A per-cell patch would need an ordering the
27628
+ * editor does not have, and a half-applied layout is a picture nobody asked
27629
+ * for.
27630
+ */
27631
+ cells: array(GridLayoutCellSchema).max(16)
27632
+ });
27633
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27634
+ kind: "mutation",
27635
+ auth: "admin"
27636
+ });
27637
+ /**
27508
27638
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27509
27639
  * on-camera motion-detection mask is a single `grid` region (a row-major
27510
27640
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -32533,6 +32663,18 @@ Object.freeze({
32533
32663
  addonId: null,
32534
32664
  access: "view"
32535
32665
  },
32666
+ "cameraGridLayout.getLayout": {
32667
+ capName: "camera-grid-layout",
32668
+ capScope: "device",
32669
+ addonId: null,
32670
+ access: "view"
32671
+ },
32672
+ "cameraGridLayout.saveLayout": {
32673
+ capName: "camera-grid-layout",
32674
+ capScope: "device",
32675
+ addonId: null,
32676
+ access: "create"
32677
+ },
32536
32678
  "cameraStreams.getBrokerStreams": {
32537
32679
  capName: "camera-streams",
32538
32680
  capScope: "device",
@@ -38232,6 +38374,21 @@ Object.freeze({
38232
38374
  form: "single",
38233
38375
  optional: false
38234
38376
  }],
38377
+ "cameraGridLayout.getLayout": [{
38378
+ name: "deviceId",
38379
+ form: "single",
38380
+ optional: false
38381
+ }],
38382
+ "cameraGridLayout.saveLayout": [{
38383
+ name: "cells",
38384
+ form: "object-array",
38385
+ optional: false,
38386
+ itemField: "deviceId"
38387
+ }, {
38388
+ name: "deviceId",
38389
+ form: "single",
38390
+ optional: false
38391
+ }],
38235
38392
  "cameraStreams.getBrokerStreams": [{
38236
38393
  name: "deviceId",
38237
38394
  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.122",
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",