@camstack/addon-import-alexa 0.2.112 → 0.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.
package/dist/addon.js CHANGED
@@ -5399,7 +5399,7 @@ var ZodIssueCode = {
5399
5399
  var ZodFirstPartyTypeKind;
5400
5400
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5401
5401
  //#endregion
5402
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5402
+ //#region ../types/dist/sleep-GU_us3DG.mjs
5403
5403
  /**
5404
5404
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5405
5405
  * window to float samples (D455).
@@ -12074,6 +12074,24 @@ var GetStreamWithCodecInputSchema = object({
12074
12074
  });
12075
12075
  var RtpSourceSchema = object({
12076
12076
  url: string(),
12077
+ /**
12078
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
12079
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
12080
+ *
12081
+ * The broker answers it because the broker is the only thing that can:
12082
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
12083
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
12084
+ * cap bindings would be a second authority, and two authorities on the same
12085
+ * question is how a composite camera ends up dialling a sleeping camera
12086
+ * because its own copy of the rule was a release behind.
12087
+ *
12088
+ * `null` is a real answer and is never a live url in disguise: a consumer
12089
+ * that silently fell back to {@link url} would perform exactly the wake this
12090
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
12091
+ * transcode hands back an egress the broker is feeding itself, which has no
12092
+ * sentry counterpart.
12093
+ */
12094
+ sentryUrl: string().nullable().optional(),
12077
12095
  videoCodec: _enum(["H264", "H265"]),
12078
12096
  audioCodec: string(),
12079
12097
  resolution: object({
@@ -29129,6 +29147,118 @@ var motionTriggerCapability = {
29129
29147
  durability: "session"
29130
29148
  };
29131
29149
  /**
29150
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
29151
+ * page.
29152
+ *
29153
+ * ## Why this is a capability and not an addon settings schema
29154
+ *
29155
+ * It was one, and it did not render. The addon declared the editor as a
29156
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
29157
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
29158
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
29159
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
29160
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
29161
+ * not on it "falls off silently".
29162
+ *
29163
+ * Adding a fifth name to that list would have been the wrong fix twice over:
29164
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
29165
+ * beside PTZ and motion zones on the camera itself. The device page is
29166
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
29167
+ * and this cap carries its section the way `recording` does, by RETURNING it
29168
+ * from `getDeviceSettingsContribution`.
29169
+ *
29170
+ * Seven other widgets are still declared the other way, through a
29171
+ * `deviceConfig.ui` block the framework derives a section from. That route
29172
+ * gives the addon no say in where its own panel lands and no way to decline
29173
+ * for a device the panel does not suit, which is why this one does not use it.
29174
+ *
29175
+ * ## Why one addon may implement it
29176
+ *
29177
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29178
+ * itself. Nothing else declares a composite camera, so nothing else has a
29179
+ * layout — and the device-scoped route means the widget asks THE camera, not
29180
+ * "the camera-grid addon", which is what let the old custom-action pair be
29181
+ * reached only by a caller that already knew the addon id.
29182
+ *
29183
+ * ## The tab
29184
+ *
29185
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29186
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29187
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29188
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29189
+ * next to "PTZ").
29190
+ */
29191
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29192
+ var GridNormalizedRectSchema = object({
29193
+ x: number().min(0).max(1),
29194
+ y: number().min(0).max(1),
29195
+ width: number().gt(0).max(1),
29196
+ height: number().gt(0).max(1)
29197
+ });
29198
+ /**
29199
+ * One source camera, the part of its picture taken, and where that part lands.
29200
+ *
29201
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29202
+ * — a profile switch, a firmware update, a substream that comes back different
29203
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29204
+ * which is the class of bug nobody files.
29205
+ */
29206
+ var GridLayoutCellSchema = object({
29207
+ deviceId: number().int().positive(),
29208
+ /** The part of the SOURCE taken, normalized against the source. */
29209
+ source: GridNormalizedRectSchema,
29210
+ /** Where it lands, normalized against the CANVAS. */
29211
+ cell: GridNormalizedRectSchema
29212
+ });
29213
+ /**
29214
+ * Which profiles this grid can actually compose, and why not.
29215
+ *
29216
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29217
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29218
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29219
+ * low" is, and it is the one an operator can act on.
29220
+ */
29221
+ var GridProfileOfferSchema = object({
29222
+ profile: _enum([
29223
+ "high",
29224
+ "mid",
29225
+ "low"
29226
+ ]),
29227
+ offered: boolean(),
29228
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29229
+ missingSources: array(number().int().positive())
29230
+ });
29231
+ var GridLayoutViewSchema = object({
29232
+ /** The persisted grid row this camera was declared from. */
29233
+ instanceId: string(),
29234
+ deviceId: number().int().nonnegative(),
29235
+ name: string(),
29236
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29237
+ width: number().int(),
29238
+ height: number().int(),
29239
+ fps: number().int(),
29240
+ cells: array(GridLayoutCellSchema),
29241
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29242
+ profiles: array(GridProfileOfferSchema)
29243
+ });
29244
+ var GridLayoutPatchSchema = object({
29245
+ deviceId: number().int().nonnegative(),
29246
+ name: string().min(1).max(160).optional(),
29247
+ width: number().int().min(160).max(7680).optional(),
29248
+ height: number().int().min(120).max(4320).optional(),
29249
+ fps: number().int().min(1).max(60).optional(),
29250
+ /**
29251
+ * The whole cell list at once. A per-cell patch would need an ordering the
29252
+ * editor does not have, and a half-applied layout is a picture nobody asked
29253
+ * for.
29254
+ */
29255
+ cells: array(GridLayoutCellSchema).max(16)
29256
+ });
29257
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29258
+ kind: "mutation",
29259
+ auth: "admin"
29260
+ });
29261
+ /**
29132
29262
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29133
29263
  * on-camera motion-detection mask is a single `grid` region (a row-major
29134
29264
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36855,6 +36985,18 @@ Object.freeze({
36855
36985
  addonId: null,
36856
36986
  access: "view"
36857
36987
  },
36988
+ "cameraGridLayout.getLayout": {
36989
+ capName: "camera-grid-layout",
36990
+ capScope: "device",
36991
+ addonId: null,
36992
+ access: "view"
36993
+ },
36994
+ "cameraGridLayout.saveLayout": {
36995
+ capName: "camera-grid-layout",
36996
+ capScope: "device",
36997
+ addonId: null,
36998
+ access: "create"
36999
+ },
36858
37000
  "cameraStreams.getBrokerStreams": {
36859
37001
  capName: "camera-streams",
36860
37002
  capScope: "device",
@@ -42554,6 +42696,21 @@ Object.freeze({
42554
42696
  form: "single",
42555
42697
  optional: false
42556
42698
  }],
42699
+ "cameraGridLayout.getLayout": [{
42700
+ name: "deviceId",
42701
+ form: "single",
42702
+ optional: false
42703
+ }],
42704
+ "cameraGridLayout.saveLayout": [{
42705
+ name: "cells",
42706
+ form: "object-array",
42707
+ optional: false,
42708
+ itemField: "deviceId"
42709
+ }, {
42710
+ name: "deviceId",
42711
+ form: "single",
42712
+ optional: false
42713
+ }],
42557
42714
  "cameraStreams.getBrokerStreams": [{
42558
42715
  name: "deviceId",
42559
42716
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5399,7 +5399,7 @@ var ZodIssueCode = {
5399
5399
  var ZodFirstPartyTypeKind;
5400
5400
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5401
5401
  //#endregion
5402
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5402
+ //#region ../types/dist/sleep-GU_us3DG.mjs
5403
5403
  /**
5404
5404
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5405
5405
  * window to float samples (D455).
@@ -12074,6 +12074,24 @@ var GetStreamWithCodecInputSchema = object({
12074
12074
  });
12075
12075
  var RtpSourceSchema = object({
12076
12076
  url: string(),
12077
+ /**
12078
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
12079
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
12080
+ *
12081
+ * The broker answers it because the broker is the only thing that can:
12082
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
12083
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
12084
+ * cap bindings would be a second authority, and two authorities on the same
12085
+ * question is how a composite camera ends up dialling a sleeping camera
12086
+ * because its own copy of the rule was a release behind.
12087
+ *
12088
+ * `null` is a real answer and is never a live url in disguise: a consumer
12089
+ * that silently fell back to {@link url} would perform exactly the wake this
12090
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
12091
+ * transcode hands back an egress the broker is feeding itself, which has no
12092
+ * sentry counterpart.
12093
+ */
12094
+ sentryUrl: string().nullable().optional(),
12077
12095
  videoCodec: _enum(["H264", "H265"]),
12078
12096
  audioCodec: string(),
12079
12097
  resolution: object({
@@ -29129,6 +29147,118 @@ var motionTriggerCapability = {
29129
29147
  durability: "session"
29130
29148
  };
29131
29149
  /**
29150
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
29151
+ * page.
29152
+ *
29153
+ * ## Why this is a capability and not an addon settings schema
29154
+ *
29155
+ * It was one, and it did not render. The addon declared the editor as a
29156
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
29157
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
29158
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
29159
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
29160
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
29161
+ * not on it "falls off silently".
29162
+ *
29163
+ * Adding a fifth name to that list would have been the wrong fix twice over:
29164
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
29165
+ * beside PTZ and motion zones on the camera itself. The device page is
29166
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
29167
+ * and this cap carries its section the way `recording` does, by RETURNING it
29168
+ * from `getDeviceSettingsContribution`.
29169
+ *
29170
+ * Seven other widgets are still declared the other way, through a
29171
+ * `deviceConfig.ui` block the framework derives a section from. That route
29172
+ * gives the addon no say in where its own panel lands and no way to decline
29173
+ * for a device the panel does not suit, which is why this one does not use it.
29174
+ *
29175
+ * ## Why one addon may implement it
29176
+ *
29177
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29178
+ * itself. Nothing else declares a composite camera, so nothing else has a
29179
+ * layout — and the device-scoped route means the widget asks THE camera, not
29180
+ * "the camera-grid addon", which is what let the old custom-action pair be
29181
+ * reached only by a caller that already knew the addon id.
29182
+ *
29183
+ * ## The tab
29184
+ *
29185
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29186
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29187
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29188
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29189
+ * next to "PTZ").
29190
+ */
29191
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29192
+ var GridNormalizedRectSchema = object({
29193
+ x: number().min(0).max(1),
29194
+ y: number().min(0).max(1),
29195
+ width: number().gt(0).max(1),
29196
+ height: number().gt(0).max(1)
29197
+ });
29198
+ /**
29199
+ * One source camera, the part of its picture taken, and where that part lands.
29200
+ *
29201
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29202
+ * — a profile switch, a firmware update, a substream that comes back different
29203
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29204
+ * which is the class of bug nobody files.
29205
+ */
29206
+ var GridLayoutCellSchema = object({
29207
+ deviceId: number().int().positive(),
29208
+ /** The part of the SOURCE taken, normalized against the source. */
29209
+ source: GridNormalizedRectSchema,
29210
+ /** Where it lands, normalized against the CANVAS. */
29211
+ cell: GridNormalizedRectSchema
29212
+ });
29213
+ /**
29214
+ * Which profiles this grid can actually compose, and why not.
29215
+ *
29216
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29217
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29218
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29219
+ * low" is, and it is the one an operator can act on.
29220
+ */
29221
+ var GridProfileOfferSchema = object({
29222
+ profile: _enum([
29223
+ "high",
29224
+ "mid",
29225
+ "low"
29226
+ ]),
29227
+ offered: boolean(),
29228
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29229
+ missingSources: array(number().int().positive())
29230
+ });
29231
+ var GridLayoutViewSchema = object({
29232
+ /** The persisted grid row this camera was declared from. */
29233
+ instanceId: string(),
29234
+ deviceId: number().int().nonnegative(),
29235
+ name: string(),
29236
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29237
+ width: number().int(),
29238
+ height: number().int(),
29239
+ fps: number().int(),
29240
+ cells: array(GridLayoutCellSchema),
29241
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29242
+ profiles: array(GridProfileOfferSchema)
29243
+ });
29244
+ var GridLayoutPatchSchema = object({
29245
+ deviceId: number().int().nonnegative(),
29246
+ name: string().min(1).max(160).optional(),
29247
+ width: number().int().min(160).max(7680).optional(),
29248
+ height: number().int().min(120).max(4320).optional(),
29249
+ fps: number().int().min(1).max(60).optional(),
29250
+ /**
29251
+ * The whole cell list at once. A per-cell patch would need an ordering the
29252
+ * editor does not have, and a half-applied layout is a picture nobody asked
29253
+ * for.
29254
+ */
29255
+ cells: array(GridLayoutCellSchema).max(16)
29256
+ });
29257
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29258
+ kind: "mutation",
29259
+ auth: "admin"
29260
+ });
29261
+ /**
29132
29262
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29133
29263
  * on-camera motion-detection mask is a single `grid` region (a row-major
29134
29264
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36855,6 +36985,18 @@ Object.freeze({
36855
36985
  addonId: null,
36856
36986
  access: "view"
36857
36987
  },
36988
+ "cameraGridLayout.getLayout": {
36989
+ capName: "camera-grid-layout",
36990
+ capScope: "device",
36991
+ addonId: null,
36992
+ access: "view"
36993
+ },
36994
+ "cameraGridLayout.saveLayout": {
36995
+ capName: "camera-grid-layout",
36996
+ capScope: "device",
36997
+ addonId: null,
36998
+ access: "create"
36999
+ },
36858
37000
  "cameraStreams.getBrokerStreams": {
36859
37001
  capName: "camera-streams",
36860
37002
  capScope: "device",
@@ -42554,6 +42696,21 @@ Object.freeze({
42554
42696
  form: "single",
42555
42697
  optional: false
42556
42698
  }],
42699
+ "cameraGridLayout.getLayout": [{
42700
+ name: "deviceId",
42701
+ form: "single",
42702
+ optional: false
42703
+ }],
42704
+ "cameraGridLayout.saveLayout": [{
42705
+ name: "cells",
42706
+ form: "object-array",
42707
+ optional: false,
42708
+ itemField: "deviceId"
42709
+ }, {
42710
+ name: "deviceId",
42711
+ form: "single",
42712
+ optional: false
42713
+ }],
42557
42714
  "cameraStreams.getBrokerStreams": [{
42558
42715
  name: "deviceId",
42559
42716
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-import-alexa",
3
- "version": "0.2.112",
3
+ "version": "0.2.114",
4
4
  "description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
5
5
  "keywords": [
6
6
  "camstack",