@camstack/addon-provider-wyze 0.2.117 → 0.2.119

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
@@ -5392,7 +5392,7 @@ var ZodIssueCode = {
5392
5392
  var ZodFirstPartyTypeKind;
5393
5393
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5394
5394
  //#endregion
5395
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5395
+ //#region ../types/dist/sleep-GU_us3DG.mjs
5396
5396
  /**
5397
5397
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5398
5398
  * window to float samples (D455).
@@ -11882,6 +11882,24 @@ var GetStreamWithCodecInputSchema = object({
11882
11882
  });
11883
11883
  var RtpSourceSchema = object({
11884
11884
  url: string(),
11885
+ /**
11886
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11887
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11888
+ *
11889
+ * The broker answers it because the broker is the only thing that can:
11890
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11891
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11892
+ * cap bindings would be a second authority, and two authorities on the same
11893
+ * question is how a composite camera ends up dialling a sleeping camera
11894
+ * because its own copy of the rule was a release behind.
11895
+ *
11896
+ * `null` is a real answer and is never a live url in disguise: a consumer
11897
+ * that silently fell back to {@link url} would perform exactly the wake this
11898
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11899
+ * transcode hands back an egress the broker is feeding itself, which has no
11900
+ * sentry counterpart.
11901
+ */
11902
+ sentryUrl: string().nullable().optional(),
11885
11903
  videoCodec: _enum(["H264", "H265"]),
11886
11904
  audioCodec: string(),
11887
11905
  resolution: object({
@@ -29032,6 +29050,118 @@ var motionTriggerCapability = {
29032
29050
  durability: "session"
29033
29051
  };
29034
29052
  /**
29053
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
29054
+ * page.
29055
+ *
29056
+ * ## Why this is a capability and not an addon settings schema
29057
+ *
29058
+ * It was one, and it did not render. The addon declared the editor as a
29059
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
29060
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
29061
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
29062
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
29063
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
29064
+ * not on it "falls off silently".
29065
+ *
29066
+ * Adding a fifth name to that list would have been the wrong fix twice over:
29067
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
29068
+ * beside PTZ and motion zones on the camera itself. The device page is
29069
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
29070
+ * and this cap carries its section the way `recording` does, by RETURNING it
29071
+ * from `getDeviceSettingsContribution`.
29072
+ *
29073
+ * Seven other widgets are still declared the other way, through a
29074
+ * `deviceConfig.ui` block the framework derives a section from. That route
29075
+ * gives the addon no say in where its own panel lands and no way to decline
29076
+ * for a device the panel does not suit, which is why this one does not use it.
29077
+ *
29078
+ * ## Why one addon may implement it
29079
+ *
29080
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29081
+ * itself. Nothing else declares a composite camera, so nothing else has a
29082
+ * layout — and the device-scoped route means the widget asks THE camera, not
29083
+ * "the camera-grid addon", which is what let the old custom-action pair be
29084
+ * reached only by a caller that already knew the addon id.
29085
+ *
29086
+ * ## The tab
29087
+ *
29088
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29089
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29090
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29091
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29092
+ * next to "PTZ").
29093
+ */
29094
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29095
+ var GridNormalizedRectSchema = object({
29096
+ x: number().min(0).max(1),
29097
+ y: number().min(0).max(1),
29098
+ width: number().gt(0).max(1),
29099
+ height: number().gt(0).max(1)
29100
+ });
29101
+ /**
29102
+ * One source camera, the part of its picture taken, and where that part lands.
29103
+ *
29104
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29105
+ * — a profile switch, a firmware update, a substream that comes back different
29106
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29107
+ * which is the class of bug nobody files.
29108
+ */
29109
+ var GridLayoutCellSchema = object({
29110
+ deviceId: number().int().positive(),
29111
+ /** The part of the SOURCE taken, normalized against the source. */
29112
+ source: GridNormalizedRectSchema,
29113
+ /** Where it lands, normalized against the CANVAS. */
29114
+ cell: GridNormalizedRectSchema
29115
+ });
29116
+ /**
29117
+ * Which profiles this grid can actually compose, and why not.
29118
+ *
29119
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29120
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29121
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29122
+ * low" is, and it is the one an operator can act on.
29123
+ */
29124
+ var GridProfileOfferSchema = object({
29125
+ profile: _enum([
29126
+ "high",
29127
+ "mid",
29128
+ "low"
29129
+ ]),
29130
+ offered: boolean(),
29131
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29132
+ missingSources: array(number().int().positive())
29133
+ });
29134
+ var GridLayoutViewSchema = object({
29135
+ /** The persisted grid row this camera was declared from. */
29136
+ instanceId: string(),
29137
+ deviceId: number().int().nonnegative(),
29138
+ name: string(),
29139
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29140
+ width: number().int(),
29141
+ height: number().int(),
29142
+ fps: number().int(),
29143
+ cells: array(GridLayoutCellSchema),
29144
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29145
+ profiles: array(GridProfileOfferSchema)
29146
+ });
29147
+ var GridLayoutPatchSchema = object({
29148
+ deviceId: number().int().nonnegative(),
29149
+ name: string().min(1).max(160).optional(),
29150
+ width: number().int().min(160).max(7680).optional(),
29151
+ height: number().int().min(120).max(4320).optional(),
29152
+ fps: number().int().min(1).max(60).optional(),
29153
+ /**
29154
+ * The whole cell list at once. A per-cell patch would need an ordering the
29155
+ * editor does not have, and a half-applied layout is a picture nobody asked
29156
+ * for.
29157
+ */
29158
+ cells: array(GridLayoutCellSchema).max(16)
29159
+ });
29160
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29161
+ kind: "mutation",
29162
+ auth: "admin"
29163
+ });
29164
+ /**
29035
29165
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29036
29166
  * on-camera motion-detection mask is a single `grid` region (a row-major
29037
29167
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36758,6 +36888,18 @@ Object.freeze({
36758
36888
  addonId: null,
36759
36889
  access: "view"
36760
36890
  },
36891
+ "cameraGridLayout.getLayout": {
36892
+ capName: "camera-grid-layout",
36893
+ capScope: "device",
36894
+ addonId: null,
36895
+ access: "view"
36896
+ },
36897
+ "cameraGridLayout.saveLayout": {
36898
+ capName: "camera-grid-layout",
36899
+ capScope: "device",
36900
+ addonId: null,
36901
+ access: "create"
36902
+ },
36761
36903
  "cameraStreams.getBrokerStreams": {
36762
36904
  capName: "camera-streams",
36763
36905
  capScope: "device",
@@ -42457,6 +42599,21 @@ Object.freeze({
42457
42599
  form: "single",
42458
42600
  optional: false
42459
42601
  }],
42602
+ "cameraGridLayout.getLayout": [{
42603
+ name: "deviceId",
42604
+ form: "single",
42605
+ optional: false
42606
+ }],
42607
+ "cameraGridLayout.saveLayout": [{
42608
+ name: "cells",
42609
+ form: "object-array",
42610
+ optional: false,
42611
+ itemField: "deviceId"
42612
+ }, {
42613
+ name: "deviceId",
42614
+ form: "single",
42615
+ optional: false
42616
+ }],
42460
42617
  "cameraStreams.getBrokerStreams": [{
42461
42618
  name: "deviceId",
42462
42619
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5371,7 +5371,7 @@ var ZodIssueCode = {
5371
5371
  var ZodFirstPartyTypeKind;
5372
5372
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5373
5373
  //#endregion
5374
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5374
+ //#region ../types/dist/sleep-GU_us3DG.mjs
5375
5375
  /**
5376
5376
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5377
5377
  * window to float samples (D455).
@@ -11861,6 +11861,24 @@ var GetStreamWithCodecInputSchema = object({
11861
11861
  });
11862
11862
  var RtpSourceSchema = object({
11863
11863
  url: string(),
11864
+ /**
11865
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11866
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11867
+ *
11868
+ * The broker answers it because the broker is the only thing that can:
11869
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11870
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11871
+ * cap bindings would be a second authority, and two authorities on the same
11872
+ * question is how a composite camera ends up dialling a sleeping camera
11873
+ * because its own copy of the rule was a release behind.
11874
+ *
11875
+ * `null` is a real answer and is never a live url in disguise: a consumer
11876
+ * that silently fell back to {@link url} would perform exactly the wake this
11877
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11878
+ * transcode hands back an egress the broker is feeding itself, which has no
11879
+ * sentry counterpart.
11880
+ */
11881
+ sentryUrl: string().nullable().optional(),
11864
11882
  videoCodec: _enum(["H264", "H265"]),
11865
11883
  audioCodec: string(),
11866
11884
  resolution: object({
@@ -29011,6 +29029,118 @@ var motionTriggerCapability = {
29011
29029
  durability: "session"
29012
29030
  };
29013
29031
  /**
29032
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
29033
+ * page.
29034
+ *
29035
+ * ## Why this is a capability and not an addon settings schema
29036
+ *
29037
+ * It was one, and it did not render. The addon declared the editor as a
29038
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
29039
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
29040
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
29041
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
29042
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
29043
+ * not on it "falls off silently".
29044
+ *
29045
+ * Adding a fifth name to that list would have been the wrong fix twice over:
29046
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
29047
+ * beside PTZ and motion zones on the camera itself. The device page is
29048
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
29049
+ * and this cap carries its section the way `recording` does, by RETURNING it
29050
+ * from `getDeviceSettingsContribution`.
29051
+ *
29052
+ * Seven other widgets are still declared the other way, through a
29053
+ * `deviceConfig.ui` block the framework derives a section from. That route
29054
+ * gives the addon no say in where its own panel lands and no way to decline
29055
+ * for a device the panel does not suit, which is why this one does not use it.
29056
+ *
29057
+ * ## Why one addon may implement it
29058
+ *
29059
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29060
+ * itself. Nothing else declares a composite camera, so nothing else has a
29061
+ * layout — and the device-scoped route means the widget asks THE camera, not
29062
+ * "the camera-grid addon", which is what let the old custom-action pair be
29063
+ * reached only by a caller that already knew the addon id.
29064
+ *
29065
+ * ## The tab
29066
+ *
29067
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29068
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29069
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29070
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29071
+ * next to "PTZ").
29072
+ */
29073
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29074
+ var GridNormalizedRectSchema = object({
29075
+ x: number().min(0).max(1),
29076
+ y: number().min(0).max(1),
29077
+ width: number().gt(0).max(1),
29078
+ height: number().gt(0).max(1)
29079
+ });
29080
+ /**
29081
+ * One source camera, the part of its picture taken, and where that part lands.
29082
+ *
29083
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29084
+ * — a profile switch, a firmware update, a substream that comes back different
29085
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29086
+ * which is the class of bug nobody files.
29087
+ */
29088
+ var GridLayoutCellSchema = object({
29089
+ deviceId: number().int().positive(),
29090
+ /** The part of the SOURCE taken, normalized against the source. */
29091
+ source: GridNormalizedRectSchema,
29092
+ /** Where it lands, normalized against the CANVAS. */
29093
+ cell: GridNormalizedRectSchema
29094
+ });
29095
+ /**
29096
+ * Which profiles this grid can actually compose, and why not.
29097
+ *
29098
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29099
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29100
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29101
+ * low" is, and it is the one an operator can act on.
29102
+ */
29103
+ var GridProfileOfferSchema = object({
29104
+ profile: _enum([
29105
+ "high",
29106
+ "mid",
29107
+ "low"
29108
+ ]),
29109
+ offered: boolean(),
29110
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29111
+ missingSources: array(number().int().positive())
29112
+ });
29113
+ var GridLayoutViewSchema = object({
29114
+ /** The persisted grid row this camera was declared from. */
29115
+ instanceId: string(),
29116
+ deviceId: number().int().nonnegative(),
29117
+ name: string(),
29118
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29119
+ width: number().int(),
29120
+ height: number().int(),
29121
+ fps: number().int(),
29122
+ cells: array(GridLayoutCellSchema),
29123
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29124
+ profiles: array(GridProfileOfferSchema)
29125
+ });
29126
+ var GridLayoutPatchSchema = object({
29127
+ deviceId: number().int().nonnegative(),
29128
+ name: string().min(1).max(160).optional(),
29129
+ width: number().int().min(160).max(7680).optional(),
29130
+ height: number().int().min(120).max(4320).optional(),
29131
+ fps: number().int().min(1).max(60).optional(),
29132
+ /**
29133
+ * The whole cell list at once. A per-cell patch would need an ordering the
29134
+ * editor does not have, and a half-applied layout is a picture nobody asked
29135
+ * for.
29136
+ */
29137
+ cells: array(GridLayoutCellSchema).max(16)
29138
+ });
29139
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29140
+ kind: "mutation",
29141
+ auth: "admin"
29142
+ });
29143
+ /**
29014
29144
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29015
29145
  * on-camera motion-detection mask is a single `grid` region (a row-major
29016
29146
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36737,6 +36867,18 @@ Object.freeze({
36737
36867
  addonId: null,
36738
36868
  access: "view"
36739
36869
  },
36870
+ "cameraGridLayout.getLayout": {
36871
+ capName: "camera-grid-layout",
36872
+ capScope: "device",
36873
+ addonId: null,
36874
+ access: "view"
36875
+ },
36876
+ "cameraGridLayout.saveLayout": {
36877
+ capName: "camera-grid-layout",
36878
+ capScope: "device",
36879
+ addonId: null,
36880
+ access: "create"
36881
+ },
36740
36882
  "cameraStreams.getBrokerStreams": {
36741
36883
  capName: "camera-streams",
36742
36884
  capScope: "device",
@@ -42436,6 +42578,21 @@ Object.freeze({
42436
42578
  form: "single",
42437
42579
  optional: false
42438
42580
  }],
42581
+ "cameraGridLayout.getLayout": [{
42582
+ name: "deviceId",
42583
+ form: "single",
42584
+ optional: false
42585
+ }],
42586
+ "cameraGridLayout.saveLayout": [{
42587
+ name: "cells",
42588
+ form: "object-array",
42589
+ optional: false,
42590
+ itemField: "deviceId"
42591
+ }, {
42592
+ name: "deviceId",
42593
+ form: "single",
42594
+ optional: false
42595
+ }],
42439
42596
  "cameraStreams.getBrokerStreams": [{
42440
42597
  name: "deviceId",
42441
42598
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-wyze",
3
- "version": "0.2.117",
3
+ "version": "0.2.119",
4
4
  "description": "Wyze camera device-provider addon for CamStack — wraps the @apocaliss92/wyze-bridge-js P2P/DTLS client, feeding the stream-broker via the pull-rfc4571 lazy-publish path (a structural twin of addon-provider-reolink)",
5
5
  "keywords": [
6
6
  "camstack",