@camstack/addon-import-alexa 0.2.112 → 0.2.113

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-Bs3xPtSh.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,114 @@ 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 — which is exactly where the
29166
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
29167
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
29168
+ * all use it): the framework emits the structural section and the widget
29169
+ * self-persists through the cap's own mutations.
29170
+ *
29171
+ * ## Why one addon may implement it
29172
+ *
29173
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29174
+ * itself. Nothing else declares a composite camera, so nothing else has a
29175
+ * layout — and the device-scoped route means the widget asks THE camera, not
29176
+ * "the camera-grid addon", which is what let the old custom-action pair be
29177
+ * reached only by a caller that already knew the addon id.
29178
+ *
29179
+ * ## The tab
29180
+ *
29181
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29182
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29183
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29184
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29185
+ * next to "PTZ").
29186
+ */
29187
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29188
+ var GridNormalizedRectSchema = object({
29189
+ x: number().min(0).max(1),
29190
+ y: number().min(0).max(1),
29191
+ width: number().gt(0).max(1),
29192
+ height: number().gt(0).max(1)
29193
+ });
29194
+ /**
29195
+ * One source camera, the part of its picture taken, and where that part lands.
29196
+ *
29197
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29198
+ * — a profile switch, a firmware update, a substream that comes back different
29199
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29200
+ * which is the class of bug nobody files.
29201
+ */
29202
+ var GridLayoutCellSchema = object({
29203
+ deviceId: number().int().positive(),
29204
+ /** The part of the SOURCE taken, normalized against the source. */
29205
+ source: GridNormalizedRectSchema,
29206
+ /** Where it lands, normalized against the CANVAS. */
29207
+ cell: GridNormalizedRectSchema
29208
+ });
29209
+ /**
29210
+ * Which profiles this grid can actually compose, and why not.
29211
+ *
29212
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29213
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29214
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29215
+ * low" is, and it is the one an operator can act on.
29216
+ */
29217
+ var GridProfileOfferSchema = object({
29218
+ profile: _enum([
29219
+ "high",
29220
+ "mid",
29221
+ "low"
29222
+ ]),
29223
+ offered: boolean(),
29224
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29225
+ missingSources: array(number().int().positive())
29226
+ });
29227
+ var GridLayoutViewSchema = object({
29228
+ /** The persisted grid row this camera was declared from. */
29229
+ instanceId: string(),
29230
+ deviceId: number().int().nonnegative(),
29231
+ name: string(),
29232
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29233
+ width: number().int(),
29234
+ height: number().int(),
29235
+ fps: number().int(),
29236
+ cells: array(GridLayoutCellSchema),
29237
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29238
+ profiles: array(GridProfileOfferSchema)
29239
+ });
29240
+ var GridLayoutPatchSchema = object({
29241
+ deviceId: number().int().nonnegative(),
29242
+ name: string().min(1).max(160).optional(),
29243
+ width: number().int().min(160).max(7680).optional(),
29244
+ height: number().int().min(120).max(4320).optional(),
29245
+ fps: number().int().min(1).max(60).optional(),
29246
+ /**
29247
+ * The whole cell list at once. A per-cell patch would need an ordering the
29248
+ * editor does not have, and a half-applied layout is a picture nobody asked
29249
+ * for.
29250
+ */
29251
+ cells: array(GridLayoutCellSchema).max(16)
29252
+ });
29253
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29254
+ kind: "mutation",
29255
+ auth: "admin"
29256
+ });
29257
+ /**
29132
29258
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29133
29259
  * on-camera motion-detection mask is a single `grid` region (a row-major
29134
29260
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36855,6 +36981,18 @@ Object.freeze({
36855
36981
  addonId: null,
36856
36982
  access: "view"
36857
36983
  },
36984
+ "cameraGridLayout.getLayout": {
36985
+ capName: "camera-grid-layout",
36986
+ capScope: "device",
36987
+ addonId: null,
36988
+ access: "view"
36989
+ },
36990
+ "cameraGridLayout.saveLayout": {
36991
+ capName: "camera-grid-layout",
36992
+ capScope: "device",
36993
+ addonId: null,
36994
+ access: "create"
36995
+ },
36858
36996
  "cameraStreams.getBrokerStreams": {
36859
36997
  capName: "camera-streams",
36860
36998
  capScope: "device",
@@ -42554,6 +42692,21 @@ Object.freeze({
42554
42692
  form: "single",
42555
42693
  optional: false
42556
42694
  }],
42695
+ "cameraGridLayout.getLayout": [{
42696
+ name: "deviceId",
42697
+ form: "single",
42698
+ optional: false
42699
+ }],
42700
+ "cameraGridLayout.saveLayout": [{
42701
+ name: "cells",
42702
+ form: "object-array",
42703
+ optional: false,
42704
+ itemField: "deviceId"
42705
+ }, {
42706
+ name: "deviceId",
42707
+ form: "single",
42708
+ optional: false
42709
+ }],
42557
42710
  "cameraStreams.getBrokerStreams": [{
42558
42711
  name: "deviceId",
42559
42712
  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-Bs3xPtSh.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,114 @@ 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 — which is exactly where the
29166
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
29167
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
29168
+ * all use it): the framework emits the structural section and the widget
29169
+ * self-persists through the cap's own mutations.
29170
+ *
29171
+ * ## Why one addon may implement it
29172
+ *
29173
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29174
+ * itself. Nothing else declares a composite camera, so nothing else has a
29175
+ * layout — and the device-scoped route means the widget asks THE camera, not
29176
+ * "the camera-grid addon", which is what let the old custom-action pair be
29177
+ * reached only by a caller that already knew the addon id.
29178
+ *
29179
+ * ## The tab
29180
+ *
29181
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29182
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29183
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29184
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29185
+ * next to "PTZ").
29186
+ */
29187
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29188
+ var GridNormalizedRectSchema = object({
29189
+ x: number().min(0).max(1),
29190
+ y: number().min(0).max(1),
29191
+ width: number().gt(0).max(1),
29192
+ height: number().gt(0).max(1)
29193
+ });
29194
+ /**
29195
+ * One source camera, the part of its picture taken, and where that part lands.
29196
+ *
29197
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29198
+ * — a profile switch, a firmware update, a substream that comes back different
29199
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29200
+ * which is the class of bug nobody files.
29201
+ */
29202
+ var GridLayoutCellSchema = object({
29203
+ deviceId: number().int().positive(),
29204
+ /** The part of the SOURCE taken, normalized against the source. */
29205
+ source: GridNormalizedRectSchema,
29206
+ /** Where it lands, normalized against the CANVAS. */
29207
+ cell: GridNormalizedRectSchema
29208
+ });
29209
+ /**
29210
+ * Which profiles this grid can actually compose, and why not.
29211
+ *
29212
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29213
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29214
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29215
+ * low" is, and it is the one an operator can act on.
29216
+ */
29217
+ var GridProfileOfferSchema = object({
29218
+ profile: _enum([
29219
+ "high",
29220
+ "mid",
29221
+ "low"
29222
+ ]),
29223
+ offered: boolean(),
29224
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29225
+ missingSources: array(number().int().positive())
29226
+ });
29227
+ var GridLayoutViewSchema = object({
29228
+ /** The persisted grid row this camera was declared from. */
29229
+ instanceId: string(),
29230
+ deviceId: number().int().nonnegative(),
29231
+ name: string(),
29232
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29233
+ width: number().int(),
29234
+ height: number().int(),
29235
+ fps: number().int(),
29236
+ cells: array(GridLayoutCellSchema),
29237
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29238
+ profiles: array(GridProfileOfferSchema)
29239
+ });
29240
+ var GridLayoutPatchSchema = object({
29241
+ deviceId: number().int().nonnegative(),
29242
+ name: string().min(1).max(160).optional(),
29243
+ width: number().int().min(160).max(7680).optional(),
29244
+ height: number().int().min(120).max(4320).optional(),
29245
+ fps: number().int().min(1).max(60).optional(),
29246
+ /**
29247
+ * The whole cell list at once. A per-cell patch would need an ordering the
29248
+ * editor does not have, and a half-applied layout is a picture nobody asked
29249
+ * for.
29250
+ */
29251
+ cells: array(GridLayoutCellSchema).max(16)
29252
+ });
29253
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29254
+ kind: "mutation",
29255
+ auth: "admin"
29256
+ });
29257
+ /**
29132
29258
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29133
29259
  * on-camera motion-detection mask is a single `grid` region (a row-major
29134
29260
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36855,6 +36981,18 @@ Object.freeze({
36855
36981
  addonId: null,
36856
36982
  access: "view"
36857
36983
  },
36984
+ "cameraGridLayout.getLayout": {
36985
+ capName: "camera-grid-layout",
36986
+ capScope: "device",
36987
+ addonId: null,
36988
+ access: "view"
36989
+ },
36990
+ "cameraGridLayout.saveLayout": {
36991
+ capName: "camera-grid-layout",
36992
+ capScope: "device",
36993
+ addonId: null,
36994
+ access: "create"
36995
+ },
36858
36996
  "cameraStreams.getBrokerStreams": {
36859
36997
  capName: "camera-streams",
36860
36998
  capScope: "device",
@@ -42554,6 +42692,21 @@ Object.freeze({
42554
42692
  form: "single",
42555
42693
  optional: false
42556
42694
  }],
42695
+ "cameraGridLayout.getLayout": [{
42696
+ name: "deviceId",
42697
+ form: "single",
42698
+ optional: false
42699
+ }],
42700
+ "cameraGridLayout.saveLayout": [{
42701
+ name: "cells",
42702
+ form: "object-array",
42703
+ optional: false,
42704
+ itemField: "deviceId"
42705
+ }, {
42706
+ name: "deviceId",
42707
+ form: "single",
42708
+ optional: false
42709
+ }],
42557
42710
  "cameraStreams.getBrokerStreams": [{
42558
42711
  name: "deviceId",
42559
42712
  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.113",
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",