@camstack/addon-provider-wyze 0.2.117 → 0.2.118

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-Bs3xPtSh.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,114 @@ 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 — which is exactly where the
29069
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
29070
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
29071
+ * all use it): the framework emits the structural section and the widget
29072
+ * self-persists through the cap's own mutations.
29073
+ *
29074
+ * ## Why one addon may implement it
29075
+ *
29076
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29077
+ * itself. Nothing else declares a composite camera, so nothing else has a
29078
+ * layout — and the device-scoped route means the widget asks THE camera, not
29079
+ * "the camera-grid addon", which is what let the old custom-action pair be
29080
+ * reached only by a caller that already knew the addon id.
29081
+ *
29082
+ * ## The tab
29083
+ *
29084
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29085
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29086
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29087
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29088
+ * next to "PTZ").
29089
+ */
29090
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29091
+ var GridNormalizedRectSchema = object({
29092
+ x: number().min(0).max(1),
29093
+ y: number().min(0).max(1),
29094
+ width: number().gt(0).max(1),
29095
+ height: number().gt(0).max(1)
29096
+ });
29097
+ /**
29098
+ * One source camera, the part of its picture taken, and where that part lands.
29099
+ *
29100
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29101
+ * — a profile switch, a firmware update, a substream that comes back different
29102
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29103
+ * which is the class of bug nobody files.
29104
+ */
29105
+ var GridLayoutCellSchema = object({
29106
+ deviceId: number().int().positive(),
29107
+ /** The part of the SOURCE taken, normalized against the source. */
29108
+ source: GridNormalizedRectSchema,
29109
+ /** Where it lands, normalized against the CANVAS. */
29110
+ cell: GridNormalizedRectSchema
29111
+ });
29112
+ /**
29113
+ * Which profiles this grid can actually compose, and why not.
29114
+ *
29115
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29116
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29117
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29118
+ * low" is, and it is the one an operator can act on.
29119
+ */
29120
+ var GridProfileOfferSchema = object({
29121
+ profile: _enum([
29122
+ "high",
29123
+ "mid",
29124
+ "low"
29125
+ ]),
29126
+ offered: boolean(),
29127
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29128
+ missingSources: array(number().int().positive())
29129
+ });
29130
+ var GridLayoutViewSchema = object({
29131
+ /** The persisted grid row this camera was declared from. */
29132
+ instanceId: string(),
29133
+ deviceId: number().int().nonnegative(),
29134
+ name: string(),
29135
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29136
+ width: number().int(),
29137
+ height: number().int(),
29138
+ fps: number().int(),
29139
+ cells: array(GridLayoutCellSchema),
29140
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29141
+ profiles: array(GridProfileOfferSchema)
29142
+ });
29143
+ var GridLayoutPatchSchema = object({
29144
+ deviceId: number().int().nonnegative(),
29145
+ name: string().min(1).max(160).optional(),
29146
+ width: number().int().min(160).max(7680).optional(),
29147
+ height: number().int().min(120).max(4320).optional(),
29148
+ fps: number().int().min(1).max(60).optional(),
29149
+ /**
29150
+ * The whole cell list at once. A per-cell patch would need an ordering the
29151
+ * editor does not have, and a half-applied layout is a picture nobody asked
29152
+ * for.
29153
+ */
29154
+ cells: array(GridLayoutCellSchema).max(16)
29155
+ });
29156
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29157
+ kind: "mutation",
29158
+ auth: "admin"
29159
+ });
29160
+ /**
29035
29161
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29036
29162
  * on-camera motion-detection mask is a single `grid` region (a row-major
29037
29163
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36758,6 +36884,18 @@ Object.freeze({
36758
36884
  addonId: null,
36759
36885
  access: "view"
36760
36886
  },
36887
+ "cameraGridLayout.getLayout": {
36888
+ capName: "camera-grid-layout",
36889
+ capScope: "device",
36890
+ addonId: null,
36891
+ access: "view"
36892
+ },
36893
+ "cameraGridLayout.saveLayout": {
36894
+ capName: "camera-grid-layout",
36895
+ capScope: "device",
36896
+ addonId: null,
36897
+ access: "create"
36898
+ },
36761
36899
  "cameraStreams.getBrokerStreams": {
36762
36900
  capName: "camera-streams",
36763
36901
  capScope: "device",
@@ -42457,6 +42595,21 @@ Object.freeze({
42457
42595
  form: "single",
42458
42596
  optional: false
42459
42597
  }],
42598
+ "cameraGridLayout.getLayout": [{
42599
+ name: "deviceId",
42600
+ form: "single",
42601
+ optional: false
42602
+ }],
42603
+ "cameraGridLayout.saveLayout": [{
42604
+ name: "cells",
42605
+ form: "object-array",
42606
+ optional: false,
42607
+ itemField: "deviceId"
42608
+ }, {
42609
+ name: "deviceId",
42610
+ form: "single",
42611
+ optional: false
42612
+ }],
42460
42613
  "cameraStreams.getBrokerStreams": [{
42461
42614
  name: "deviceId",
42462
42615
  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-Bs3xPtSh.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,114 @@ 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 — which is exactly where the
29048
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
29049
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
29050
+ * all use it): the framework emits the structural section and the widget
29051
+ * self-persists through the cap's own mutations.
29052
+ *
29053
+ * ## Why one addon may implement it
29054
+ *
29055
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29056
+ * itself. Nothing else declares a composite camera, so nothing else has a
29057
+ * layout — and the device-scoped route means the widget asks THE camera, not
29058
+ * "the camera-grid addon", which is what let the old custom-action pair be
29059
+ * reached only by a caller that already knew the addon id.
29060
+ *
29061
+ * ## The tab
29062
+ *
29063
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29064
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29065
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29066
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29067
+ * next to "PTZ").
29068
+ */
29069
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29070
+ var GridNormalizedRectSchema = object({
29071
+ x: number().min(0).max(1),
29072
+ y: number().min(0).max(1),
29073
+ width: number().gt(0).max(1),
29074
+ height: number().gt(0).max(1)
29075
+ });
29076
+ /**
29077
+ * One source camera, the part of its picture taken, and where that part lands.
29078
+ *
29079
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29080
+ * — a profile switch, a firmware update, a substream that comes back different
29081
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29082
+ * which is the class of bug nobody files.
29083
+ */
29084
+ var GridLayoutCellSchema = object({
29085
+ deviceId: number().int().positive(),
29086
+ /** The part of the SOURCE taken, normalized against the source. */
29087
+ source: GridNormalizedRectSchema,
29088
+ /** Where it lands, normalized against the CANVAS. */
29089
+ cell: GridNormalizedRectSchema
29090
+ });
29091
+ /**
29092
+ * Which profiles this grid can actually compose, and why not.
29093
+ *
29094
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29095
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29096
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29097
+ * low" is, and it is the one an operator can act on.
29098
+ */
29099
+ var GridProfileOfferSchema = object({
29100
+ profile: _enum([
29101
+ "high",
29102
+ "mid",
29103
+ "low"
29104
+ ]),
29105
+ offered: boolean(),
29106
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29107
+ missingSources: array(number().int().positive())
29108
+ });
29109
+ var GridLayoutViewSchema = object({
29110
+ /** The persisted grid row this camera was declared from. */
29111
+ instanceId: string(),
29112
+ deviceId: number().int().nonnegative(),
29113
+ name: string(),
29114
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29115
+ width: number().int(),
29116
+ height: number().int(),
29117
+ fps: number().int(),
29118
+ cells: array(GridLayoutCellSchema),
29119
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29120
+ profiles: array(GridProfileOfferSchema)
29121
+ });
29122
+ var GridLayoutPatchSchema = object({
29123
+ deviceId: number().int().nonnegative(),
29124
+ name: string().min(1).max(160).optional(),
29125
+ width: number().int().min(160).max(7680).optional(),
29126
+ height: number().int().min(120).max(4320).optional(),
29127
+ fps: number().int().min(1).max(60).optional(),
29128
+ /**
29129
+ * The whole cell list at once. A per-cell patch would need an ordering the
29130
+ * editor does not have, and a half-applied layout is a picture nobody asked
29131
+ * for.
29132
+ */
29133
+ cells: array(GridLayoutCellSchema).max(16)
29134
+ });
29135
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29136
+ kind: "mutation",
29137
+ auth: "admin"
29138
+ });
29139
+ /**
29014
29140
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29015
29141
  * on-camera motion-detection mask is a single `grid` region (a row-major
29016
29142
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36737,6 +36863,18 @@ Object.freeze({
36737
36863
  addonId: null,
36738
36864
  access: "view"
36739
36865
  },
36866
+ "cameraGridLayout.getLayout": {
36867
+ capName: "camera-grid-layout",
36868
+ capScope: "device",
36869
+ addonId: null,
36870
+ access: "view"
36871
+ },
36872
+ "cameraGridLayout.saveLayout": {
36873
+ capName: "camera-grid-layout",
36874
+ capScope: "device",
36875
+ addonId: null,
36876
+ access: "create"
36877
+ },
36740
36878
  "cameraStreams.getBrokerStreams": {
36741
36879
  capName: "camera-streams",
36742
36880
  capScope: "device",
@@ -42436,6 +42574,21 @@ Object.freeze({
42436
42574
  form: "single",
42437
42575
  optional: false
42438
42576
  }],
42577
+ "cameraGridLayout.getLayout": [{
42578
+ name: "deviceId",
42579
+ form: "single",
42580
+ optional: false
42581
+ }],
42582
+ "cameraGridLayout.saveLayout": [{
42583
+ name: "cells",
42584
+ form: "object-array",
42585
+ optional: false,
42586
+ itemField: "deviceId"
42587
+ }, {
42588
+ name: "deviceId",
42589
+ form: "single",
42590
+ optional: false
42591
+ }],
42439
42592
  "cameraStreams.getBrokerStreams": [{
42440
42593
  name: "deviceId",
42441
42594
  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.118",
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",