@camstack/addon-export-google 0.1.77 → 0.1.79

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.
@@ -5438,7 +5438,7 @@ var ZodIssueCode = {
5438
5438
  var ZodFirstPartyTypeKind;
5439
5439
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5440
5440
  //#endregion
5441
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5441
+ //#region ../types/dist/sleep-GU_us3DG.mjs
5442
5442
  /**
5443
5443
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5444
5444
  * window to float samples (D455).
@@ -12060,6 +12060,24 @@ var GetStreamWithCodecInputSchema = object({
12060
12060
  });
12061
12061
  var RtpSourceSchema = object({
12062
12062
  url: string(),
12063
+ /**
12064
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
12065
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
12066
+ *
12067
+ * The broker answers it because the broker is the only thing that can:
12068
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
12069
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
12070
+ * cap bindings would be a second authority, and two authorities on the same
12071
+ * question is how a composite camera ends up dialling a sleeping camera
12072
+ * because its own copy of the rule was a release behind.
12073
+ *
12074
+ * `null` is a real answer and is never a live url in disguise: a consumer
12075
+ * that silently fell back to {@link url} would perform exactly the wake this
12076
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
12077
+ * transcode hands back an egress the broker is feeding itself, which has no
12078
+ * sentry counterpart.
12079
+ */
12080
+ sentryUrl: string().nullable().optional(),
12063
12081
  videoCodec: _enum(["H264", "H265"]),
12064
12082
  audioCodec: string(),
12065
12083
  resolution: object({
@@ -27455,6 +27473,118 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
27455
27473
  lastChangedAt: number()
27456
27474
  });
27457
27475
  /**
27476
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
27477
+ * page.
27478
+ *
27479
+ * ## Why this is a capability and not an addon settings schema
27480
+ *
27481
+ * It was one, and it did not render. The addon declared the editor as a
27482
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
27483
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
27484
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
27485
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
27486
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
27487
+ * not on it "falls off silently".
27488
+ *
27489
+ * Adding a fifth name to that list would have been the wrong fix twice over:
27490
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
27491
+ * beside PTZ and motion zones on the camera itself. The device page is
27492
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
27493
+ * and this cap carries its section the way `recording` does, by RETURNING it
27494
+ * from `getDeviceSettingsContribution`.
27495
+ *
27496
+ * Seven other widgets are still declared the other way, through a
27497
+ * `deviceConfig.ui` block the framework derives a section from. That route
27498
+ * gives the addon no say in where its own panel lands and no way to decline
27499
+ * for a device the panel does not suit, which is why this one does not use it.
27500
+ *
27501
+ * ## Why one addon may implement it
27502
+ *
27503
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27504
+ * itself. Nothing else declares a composite camera, so nothing else has a
27505
+ * layout — and the device-scoped route means the widget asks THE camera, not
27506
+ * "the camera-grid addon", which is what let the old custom-action pair be
27507
+ * reached only by a caller that already knew the addon id.
27508
+ *
27509
+ * ## The tab
27510
+ *
27511
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27512
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27513
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27514
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27515
+ * next to "PTZ").
27516
+ */
27517
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27518
+ var GridNormalizedRectSchema = object({
27519
+ x: number().min(0).max(1),
27520
+ y: number().min(0).max(1),
27521
+ width: number().gt(0).max(1),
27522
+ height: number().gt(0).max(1)
27523
+ });
27524
+ /**
27525
+ * One source camera, the part of its picture taken, and where that part lands.
27526
+ *
27527
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27528
+ * — a profile switch, a firmware update, a substream that comes back different
27529
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27530
+ * which is the class of bug nobody files.
27531
+ */
27532
+ var GridLayoutCellSchema = object({
27533
+ deviceId: number().int().positive(),
27534
+ /** The part of the SOURCE taken, normalized against the source. */
27535
+ source: GridNormalizedRectSchema,
27536
+ /** Where it lands, normalized against the CANVAS. */
27537
+ cell: GridNormalizedRectSchema
27538
+ });
27539
+ /**
27540
+ * Which profiles this grid can actually compose, and why not.
27541
+ *
27542
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27543
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27544
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27545
+ * low" is, and it is the one an operator can act on.
27546
+ */
27547
+ var GridProfileOfferSchema = object({
27548
+ profile: _enum([
27549
+ "high",
27550
+ "mid",
27551
+ "low"
27552
+ ]),
27553
+ offered: boolean(),
27554
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27555
+ missingSources: array(number().int().positive())
27556
+ });
27557
+ var GridLayoutViewSchema = object({
27558
+ /** The persisted grid row this camera was declared from. */
27559
+ instanceId: string(),
27560
+ deviceId: number().int().nonnegative(),
27561
+ name: string(),
27562
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27563
+ width: number().int(),
27564
+ height: number().int(),
27565
+ fps: number().int(),
27566
+ cells: array(GridLayoutCellSchema),
27567
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27568
+ profiles: array(GridProfileOfferSchema)
27569
+ });
27570
+ var GridLayoutPatchSchema = object({
27571
+ deviceId: number().int().nonnegative(),
27572
+ name: string().min(1).max(160).optional(),
27573
+ width: number().int().min(160).max(7680).optional(),
27574
+ height: number().int().min(120).max(4320).optional(),
27575
+ fps: number().int().min(1).max(60).optional(),
27576
+ /**
27577
+ * The whole cell list at once. A per-cell patch would need an ordering the
27578
+ * editor does not have, and a half-applied layout is a picture nobody asked
27579
+ * for.
27580
+ */
27581
+ cells: array(GridLayoutCellSchema).max(16)
27582
+ });
27583
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27584
+ kind: "mutation",
27585
+ auth: "admin"
27586
+ });
27587
+ /**
27458
27588
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27459
27589
  * on-camera motion-detection mask is a single `grid` region (a row-major
27460
27590
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -32490,6 +32620,18 @@ Object.freeze({
32490
32620
  addonId: null,
32491
32621
  access: "view"
32492
32622
  },
32623
+ "cameraGridLayout.getLayout": {
32624
+ capName: "camera-grid-layout",
32625
+ capScope: "device",
32626
+ addonId: null,
32627
+ access: "view"
32628
+ },
32629
+ "cameraGridLayout.saveLayout": {
32630
+ capName: "camera-grid-layout",
32631
+ capScope: "device",
32632
+ addonId: null,
32633
+ access: "create"
32634
+ },
32493
32635
  "cameraStreams.getBrokerStreams": {
32494
32636
  capName: "camera-streams",
32495
32637
  capScope: "device",
@@ -38189,6 +38331,21 @@ Object.freeze({
38189
38331
  form: "single",
38190
38332
  optional: false
38191
38333
  }],
38334
+ "cameraGridLayout.getLayout": [{
38335
+ name: "deviceId",
38336
+ form: "single",
38337
+ optional: false
38338
+ }],
38339
+ "cameraGridLayout.saveLayout": [{
38340
+ name: "cells",
38341
+ form: "object-array",
38342
+ optional: false,
38343
+ itemField: "deviceId"
38344
+ }, {
38345
+ name: "deviceId",
38346
+ form: "single",
38347
+ optional: false
38348
+ }],
38192
38349
  "cameraStreams.getBrokerStreams": [{
38193
38350
  name: "deviceId",
38194
38351
  form: "single",
@@ -5434,7 +5434,7 @@ var ZodIssueCode = {
5434
5434
  var ZodFirstPartyTypeKind;
5435
5435
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5436
5436
  //#endregion
5437
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5437
+ //#region ../types/dist/sleep-GU_us3DG.mjs
5438
5438
  /**
5439
5439
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5440
5440
  * window to float samples (D455).
@@ -12056,6 +12056,24 @@ var GetStreamWithCodecInputSchema = object({
12056
12056
  });
12057
12057
  var RtpSourceSchema = object({
12058
12058
  url: string(),
12059
+ /**
12060
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
12061
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
12062
+ *
12063
+ * The broker answers it because the broker is the only thing that can:
12064
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
12065
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
12066
+ * cap bindings would be a second authority, and two authorities on the same
12067
+ * question is how a composite camera ends up dialling a sleeping camera
12068
+ * because its own copy of the rule was a release behind.
12069
+ *
12070
+ * `null` is a real answer and is never a live url in disguise: a consumer
12071
+ * that silently fell back to {@link url} would perform exactly the wake this
12072
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
12073
+ * transcode hands back an egress the broker is feeding itself, which has no
12074
+ * sentry counterpart.
12075
+ */
12076
+ sentryUrl: string().nullable().optional(),
12059
12077
  videoCodec: _enum(["H264", "H265"]),
12060
12078
  audioCodec: string(),
12061
12079
  resolution: object({
@@ -27451,6 +27469,118 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
27451
27469
  lastChangedAt: number()
27452
27470
  });
27453
27471
  /**
27472
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
27473
+ * page.
27474
+ *
27475
+ * ## Why this is a capability and not an addon settings schema
27476
+ *
27477
+ * It was one, and it did not render. The addon declared the editor as a
27478
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
27479
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
27480
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
27481
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
27482
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
27483
+ * not on it "falls off silently".
27484
+ *
27485
+ * Adding a fifth name to that list would have been the wrong fix twice over:
27486
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
27487
+ * beside PTZ and motion zones on the camera itself. The device page is
27488
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
27489
+ * and this cap carries its section the way `recording` does, by RETURNING it
27490
+ * from `getDeviceSettingsContribution`.
27491
+ *
27492
+ * Seven other widgets are still declared the other way, through a
27493
+ * `deviceConfig.ui` block the framework derives a section from. That route
27494
+ * gives the addon no say in where its own panel lands and no way to decline
27495
+ * for a device the panel does not suit, which is why this one does not use it.
27496
+ *
27497
+ * ## Why one addon may implement it
27498
+ *
27499
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27500
+ * itself. Nothing else declares a composite camera, so nothing else has a
27501
+ * layout — and the device-scoped route means the widget asks THE camera, not
27502
+ * "the camera-grid addon", which is what let the old custom-action pair be
27503
+ * reached only by a caller that already knew the addon id.
27504
+ *
27505
+ * ## The tab
27506
+ *
27507
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27508
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27509
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27510
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27511
+ * next to "PTZ").
27512
+ */
27513
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27514
+ var GridNormalizedRectSchema = object({
27515
+ x: number().min(0).max(1),
27516
+ y: number().min(0).max(1),
27517
+ width: number().gt(0).max(1),
27518
+ height: number().gt(0).max(1)
27519
+ });
27520
+ /**
27521
+ * One source camera, the part of its picture taken, and where that part lands.
27522
+ *
27523
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27524
+ * — a profile switch, a firmware update, a substream that comes back different
27525
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27526
+ * which is the class of bug nobody files.
27527
+ */
27528
+ var GridLayoutCellSchema = object({
27529
+ deviceId: number().int().positive(),
27530
+ /** The part of the SOURCE taken, normalized against the source. */
27531
+ source: GridNormalizedRectSchema,
27532
+ /** Where it lands, normalized against the CANVAS. */
27533
+ cell: GridNormalizedRectSchema
27534
+ });
27535
+ /**
27536
+ * Which profiles this grid can actually compose, and why not.
27537
+ *
27538
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27539
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27540
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27541
+ * low" is, and it is the one an operator can act on.
27542
+ */
27543
+ var GridProfileOfferSchema = object({
27544
+ profile: _enum([
27545
+ "high",
27546
+ "mid",
27547
+ "low"
27548
+ ]),
27549
+ offered: boolean(),
27550
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27551
+ missingSources: array(number().int().positive())
27552
+ });
27553
+ var GridLayoutViewSchema = object({
27554
+ /** The persisted grid row this camera was declared from. */
27555
+ instanceId: string(),
27556
+ deviceId: number().int().nonnegative(),
27557
+ name: string(),
27558
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27559
+ width: number().int(),
27560
+ height: number().int(),
27561
+ fps: number().int(),
27562
+ cells: array(GridLayoutCellSchema),
27563
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27564
+ profiles: array(GridProfileOfferSchema)
27565
+ });
27566
+ var GridLayoutPatchSchema = object({
27567
+ deviceId: number().int().nonnegative(),
27568
+ name: string().min(1).max(160).optional(),
27569
+ width: number().int().min(160).max(7680).optional(),
27570
+ height: number().int().min(120).max(4320).optional(),
27571
+ fps: number().int().min(1).max(60).optional(),
27572
+ /**
27573
+ * The whole cell list at once. A per-cell patch would need an ordering the
27574
+ * editor does not have, and a half-applied layout is a picture nobody asked
27575
+ * for.
27576
+ */
27577
+ cells: array(GridLayoutCellSchema).max(16)
27578
+ });
27579
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27580
+ kind: "mutation",
27581
+ auth: "admin"
27582
+ });
27583
+ /**
27454
27584
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27455
27585
  * on-camera motion-detection mask is a single `grid` region (a row-major
27456
27586
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -32486,6 +32616,18 @@ Object.freeze({
32486
32616
  addonId: null,
32487
32617
  access: "view"
32488
32618
  },
32619
+ "cameraGridLayout.getLayout": {
32620
+ capName: "camera-grid-layout",
32621
+ capScope: "device",
32622
+ addonId: null,
32623
+ access: "view"
32624
+ },
32625
+ "cameraGridLayout.saveLayout": {
32626
+ capName: "camera-grid-layout",
32627
+ capScope: "device",
32628
+ addonId: null,
32629
+ access: "create"
32630
+ },
32489
32631
  "cameraStreams.getBrokerStreams": {
32490
32632
  capName: "camera-streams",
32491
32633
  capScope: "device",
@@ -38185,6 +38327,21 @@ Object.freeze({
38185
38327
  form: "single",
38186
38328
  optional: false
38187
38329
  }],
38330
+ "cameraGridLayout.getLayout": [{
38331
+ name: "deviceId",
38332
+ form: "single",
38333
+ optional: false
38334
+ }],
38335
+ "cameraGridLayout.saveLayout": [{
38336
+ name: "cells",
38337
+ form: "object-array",
38338
+ optional: false,
38339
+ itemField: "deviceId"
38340
+ }, {
38341
+ name: "deviceId",
38342
+ form: "single",
38343
+ optional: false
38344
+ }],
38188
38345
  "cameraStreams.getBrokerStreams": [{
38189
38346
  name: "deviceId",
38190
38347
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-google",
3
- "version": "0.1.77",
3
+ "version": "0.1.79",
4
4
  "description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
5
5
  "keywords": [
6
6
  "camstack",