@camstack/addon-provider-wyze 0.2.96 → 0.2.98

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
@@ -16519,6 +16519,7 @@ var NcSystemEventKindSchema = _enum([
16519
16519
  "addon-crash-loop",
16520
16520
  "addon-update-available",
16521
16521
  "server-update-available",
16522
+ "wrapper-update-available",
16522
16523
  "alarm-triggered",
16523
16524
  "alarm-armed",
16524
16525
  "alarm-disarmed",
@@ -19964,7 +19965,17 @@ var EventDensityBucketSchema = object({
19964
19965
  bucketStart: number(),
19965
19966
  motion: number().int(),
19966
19967
  object: number().int(),
19967
- audio: number().int()
19968
+ audio: number().int(),
19969
+ /**
19970
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
19971
+ * as opposed to `audio`, which is their COUNT (D431).
19972
+ *
19973
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
19974
+ * measured", which is not the same claim as silence, and a lane that cannot
19975
+ * tell them apart paints a quiet hour at full scale — which is exactly what
19976
+ * the count-on-a-level-meter did.
19977
+ */
19978
+ audioDbfs: number().optional()
19968
19979
  });
19969
19980
  /**
19970
19981
  * One camera's row in a `getEventDensityBatch` answer.
@@ -22065,6 +22076,53 @@ var ImageContractSchema = object({
22065
22076
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22066
22077
  message: string()
22067
22078
  });
22079
+ /**
22080
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22081
+ * produced it.
22082
+ *
22083
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22084
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22085
+ * for a `docker` shell and says the app restarts into the new build for
22086
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22087
+ * nothing reads is the defect this repo keeps paying for.
22088
+ */
22089
+ var WrapperIdentitySchema = object({
22090
+ kind: _enum([
22091
+ "docker",
22092
+ "electron",
22093
+ "native",
22094
+ "contradictory",
22095
+ "unknown"
22096
+ ]),
22097
+ /** Every probe that ran, in a stable order. Never empty. */
22098
+ evidence: array(object({
22099
+ /** Which probe this row reports. */
22100
+ fact: _enum([
22101
+ "dockerenv-file",
22102
+ "proc-1-cgroup",
22103
+ "platform",
22104
+ "electron-app-version-env"
22105
+ ]),
22106
+ /**
22107
+ * `observed` — this process read it itself. `declared` — the shell told the
22108
+ * process and nothing here can check it. Only the Electron app version is
22109
+ * ever `declared`, and only because a child cannot see its parent.
22110
+ */
22111
+ mode: _enum(["observed", "declared"]),
22112
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22113
+ holds: boolean(),
22114
+ /** What was actually read, verbatim enough for an operator to argue with. */
22115
+ detail: string()
22116
+ })),
22117
+ /**
22118
+ * The version of the SHELL, when the shell has one it can state: the
22119
+ * Electron app version it declared, or the baked seed closure that
22120
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22121
+ * `unknown` — which version belongs to the shell is precisely what is not
22122
+ * known there.
22123
+ */
22124
+ currentVersion: string().nullable()
22125
+ });
22068
22126
  var ServerRollbackInfoSchema = object({
22069
22127
  /** The version that failed (or was manually rolled back). */
22070
22128
  fromVersion: string(),
@@ -22106,7 +22164,13 @@ var ServerPackageStatusSchema = object({
22106
22164
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22107
22165
  * version skew: an older provider's payload simply omits it.
22108
22166
  */
22109
- imageContract: ImageContractSchema.optional()
22167
+ imageContract: ImageContractSchema.optional(),
22168
+ /**
22169
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22170
+ * for version skew: an older provider's payload simply omits it, and an
22171
+ * absent wrapper is unknown — never `native`.
22172
+ */
22173
+ wrapper: WrapperIdentitySchema.optional()
22110
22174
  });
22111
22175
  var ServerUpdateCheckResultSchema = object({
22112
22176
  packageName: string(),
@@ -30091,7 +30155,23 @@ var RecordingRangeSchema = object({
30091
30155
  });
30092
30156
  var RecordingAvailabilitySchema = object({
30093
30157
  deviceId: number(),
30094
- ranges: array(RecordingRangeSchema)
30158
+ ranges: array(RecordingRangeSchema),
30159
+ /**
30160
+ * Every profile this camera has footage in — not only the one `ranges`
30161
+ * describes (D433).
30162
+ *
30163
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
30164
+ * and enumerating all of them triples the directory reads for a bar that
30165
+ * would look identical. But the answer used to say nothing about that, so a
30166
+ * caller asking "what can I export?" read the single preferred profile as
30167
+ * the only one that exists — on this deployment every camera records `high`
30168
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
30169
+ * UI could not see it.
30170
+ *
30171
+ * Cheap: it is the same shallow directory read the profile CHOICE already
30172
+ * makes. Ask for a specific profile's ranges with the `profile` input.
30173
+ */
30174
+ profilesWithFootage: array(string())
30095
30175
  });
30096
30176
  var RecordingDaysSchema = object({
30097
30177
  deviceId: number(),
@@ -30117,7 +30197,11 @@ var RecordingDaysSchema = object({
30117
30197
  var RecordingAvailabilityForDeviceSchema = object({
30118
30198
  deviceId: number(),
30119
30199
  read: _enum(["read", "unreadable"]),
30120
- ranges: array(RecordingRangeSchema).readonly()
30200
+ ranges: array(RecordingRangeSchema).readonly(),
30201
+ /** Same field, same meaning, as the singular answer (D433). A row that
30202
+ * dropped it would tell a grid caller the archive holds one profile.
30203
+ * Empty on an `'unreadable'` row: nobody looked. */
30204
+ profilesWithFootage: array(string()).readonly()
30121
30205
  });
30122
30206
  /**
30123
30207
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -30407,7 +30491,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
30407
30491
  method(object({
30408
30492
  deviceId: number(),
30409
30493
  fromMs: number(),
30410
- toMs: number()
30494
+ toMs: number(),
30495
+ /**
30496
+ * Answer for THIS profile instead of the preferred one (D433). Absent
30497
+ * keeps the timeline's behaviour — one bar, one profile, one set of
30498
+ * reads. `profilesWithFootage` on the answer says what may be asked
30499
+ * for.
30500
+ */
30501
+ profile: string().optional()
30411
30502
  }), RecordingAvailabilitySchema, {
30412
30503
  kind: "query",
30413
30504
  auth: "protected"
package/dist/addon.mjs CHANGED
@@ -16498,6 +16498,7 @@ var NcSystemEventKindSchema = _enum([
16498
16498
  "addon-crash-loop",
16499
16499
  "addon-update-available",
16500
16500
  "server-update-available",
16501
+ "wrapper-update-available",
16501
16502
  "alarm-triggered",
16502
16503
  "alarm-armed",
16503
16504
  "alarm-disarmed",
@@ -19943,7 +19944,17 @@ var EventDensityBucketSchema = object({
19943
19944
  bucketStart: number(),
19944
19945
  motion: number().int(),
19945
19946
  object: number().int(),
19946
- audio: number().int()
19947
+ audio: number().int(),
19948
+ /**
19949
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
19950
+ * as opposed to `audio`, which is their COUNT (D431).
19951
+ *
19952
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
19953
+ * measured", which is not the same claim as silence, and a lane that cannot
19954
+ * tell them apart paints a quiet hour at full scale — which is exactly what
19955
+ * the count-on-a-level-meter did.
19956
+ */
19957
+ audioDbfs: number().optional()
19947
19958
  });
19948
19959
  /**
19949
19960
  * One camera's row in a `getEventDensityBatch` answer.
@@ -22044,6 +22055,53 @@ var ImageContractSchema = object({
22044
22055
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22045
22056
  message: string()
22046
22057
  });
22058
+ /**
22059
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22060
+ * produced it.
22061
+ *
22062
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22063
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22064
+ * for a `docker` shell and says the app restarts into the new build for
22065
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22066
+ * nothing reads is the defect this repo keeps paying for.
22067
+ */
22068
+ var WrapperIdentitySchema = object({
22069
+ kind: _enum([
22070
+ "docker",
22071
+ "electron",
22072
+ "native",
22073
+ "contradictory",
22074
+ "unknown"
22075
+ ]),
22076
+ /** Every probe that ran, in a stable order. Never empty. */
22077
+ evidence: array(object({
22078
+ /** Which probe this row reports. */
22079
+ fact: _enum([
22080
+ "dockerenv-file",
22081
+ "proc-1-cgroup",
22082
+ "platform",
22083
+ "electron-app-version-env"
22084
+ ]),
22085
+ /**
22086
+ * `observed` — this process read it itself. `declared` — the shell told the
22087
+ * process and nothing here can check it. Only the Electron app version is
22088
+ * ever `declared`, and only because a child cannot see its parent.
22089
+ */
22090
+ mode: _enum(["observed", "declared"]),
22091
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22092
+ holds: boolean(),
22093
+ /** What was actually read, verbatim enough for an operator to argue with. */
22094
+ detail: string()
22095
+ })),
22096
+ /**
22097
+ * The version of the SHELL, when the shell has one it can state: the
22098
+ * Electron app version it declared, or the baked seed closure that
22099
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22100
+ * `unknown` — which version belongs to the shell is precisely what is not
22101
+ * known there.
22102
+ */
22103
+ currentVersion: string().nullable()
22104
+ });
22047
22105
  var ServerRollbackInfoSchema = object({
22048
22106
  /** The version that failed (or was manually rolled back). */
22049
22107
  fromVersion: string(),
@@ -22085,7 +22143,13 @@ var ServerPackageStatusSchema = object({
22085
22143
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22086
22144
  * version skew: an older provider's payload simply omits it.
22087
22145
  */
22088
- imageContract: ImageContractSchema.optional()
22146
+ imageContract: ImageContractSchema.optional(),
22147
+ /**
22148
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22149
+ * for version skew: an older provider's payload simply omits it, and an
22150
+ * absent wrapper is unknown — never `native`.
22151
+ */
22152
+ wrapper: WrapperIdentitySchema.optional()
22089
22153
  });
22090
22154
  var ServerUpdateCheckResultSchema = object({
22091
22155
  packageName: string(),
@@ -30070,7 +30134,23 @@ var RecordingRangeSchema = object({
30070
30134
  });
30071
30135
  var RecordingAvailabilitySchema = object({
30072
30136
  deviceId: number(),
30073
- ranges: array(RecordingRangeSchema)
30137
+ ranges: array(RecordingRangeSchema),
30138
+ /**
30139
+ * Every profile this camera has footage in — not only the one `ranges`
30140
+ * describes (D433).
30141
+ *
30142
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
30143
+ * and enumerating all of them triples the directory reads for a bar that
30144
+ * would look identical. But the answer used to say nothing about that, so a
30145
+ * caller asking "what can I export?" read the single preferred profile as
30146
+ * the only one that exists — on this deployment every camera records `high`
30147
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
30148
+ * UI could not see it.
30149
+ *
30150
+ * Cheap: it is the same shallow directory read the profile CHOICE already
30151
+ * makes. Ask for a specific profile's ranges with the `profile` input.
30152
+ */
30153
+ profilesWithFootage: array(string())
30074
30154
  });
30075
30155
  var RecordingDaysSchema = object({
30076
30156
  deviceId: number(),
@@ -30096,7 +30176,11 @@ var RecordingDaysSchema = object({
30096
30176
  var RecordingAvailabilityForDeviceSchema = object({
30097
30177
  deviceId: number(),
30098
30178
  read: _enum(["read", "unreadable"]),
30099
- ranges: array(RecordingRangeSchema).readonly()
30179
+ ranges: array(RecordingRangeSchema).readonly(),
30180
+ /** Same field, same meaning, as the singular answer (D433). A row that
30181
+ * dropped it would tell a grid caller the archive holds one profile.
30182
+ * Empty on an `'unreadable'` row: nobody looked. */
30183
+ profilesWithFootage: array(string()).readonly()
30100
30184
  });
30101
30185
  /**
30102
30186
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -30386,7 +30470,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
30386
30470
  method(object({
30387
30471
  deviceId: number(),
30388
30472
  fromMs: number(),
30389
- toMs: number()
30473
+ toMs: number(),
30474
+ /**
30475
+ * Answer for THIS profile instead of the preferred one (D433). Absent
30476
+ * keeps the timeline's behaviour — one bar, one profile, one set of
30477
+ * reads. `profilesWithFootage` on the answer says what may be asked
30478
+ * for.
30479
+ */
30480
+ profile: string().optional()
30390
30481
  }), RecordingAvailabilitySchema, {
30391
30482
  kind: "query",
30392
30483
  auth: "protected"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-wyze",
3
- "version": "0.2.96",
3
+ "version": "0.2.98",
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",