@camstack/addon-provider-tuya 0.2.92 → 0.2.94

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
@@ -17307,6 +17307,7 @@ var NcSystemEventKindSchema = _enum([
17307
17307
  "addon-crash-loop",
17308
17308
  "addon-update-available",
17309
17309
  "server-update-available",
17310
+ "wrapper-update-available",
17310
17311
  "alarm-triggered",
17311
17312
  "alarm-armed",
17312
17313
  "alarm-disarmed",
@@ -20752,7 +20753,17 @@ var EventDensityBucketSchema = object({
20752
20753
  bucketStart: number(),
20753
20754
  motion: number().int(),
20754
20755
  object: number().int(),
20755
- audio: number().int()
20756
+ audio: number().int(),
20757
+ /**
20758
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
20759
+ * as opposed to `audio`, which is their COUNT (D431).
20760
+ *
20761
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
20762
+ * measured", which is not the same claim as silence, and a lane that cannot
20763
+ * tell them apart paints a quiet hour at full scale — which is exactly what
20764
+ * the count-on-a-level-meter did.
20765
+ */
20766
+ audioDbfs: number().optional()
20756
20767
  });
20757
20768
  /**
20758
20769
  * One camera's row in a `getEventDensityBatch` answer.
@@ -22853,6 +22864,53 @@ var ImageContractSchema = object({
22853
22864
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22854
22865
  message: string()
22855
22866
  });
22867
+ /**
22868
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22869
+ * produced it.
22870
+ *
22871
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22872
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22873
+ * for a `docker` shell and says the app restarts into the new build for
22874
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22875
+ * nothing reads is the defect this repo keeps paying for.
22876
+ */
22877
+ var WrapperIdentitySchema = object({
22878
+ kind: _enum([
22879
+ "docker",
22880
+ "electron",
22881
+ "native",
22882
+ "contradictory",
22883
+ "unknown"
22884
+ ]),
22885
+ /** Every probe that ran, in a stable order. Never empty. */
22886
+ evidence: array(object({
22887
+ /** Which probe this row reports. */
22888
+ fact: _enum([
22889
+ "dockerenv-file",
22890
+ "proc-1-cgroup",
22891
+ "platform",
22892
+ "electron-app-version-env"
22893
+ ]),
22894
+ /**
22895
+ * `observed` — this process read it itself. `declared` — the shell told the
22896
+ * process and nothing here can check it. Only the Electron app version is
22897
+ * ever `declared`, and only because a child cannot see its parent.
22898
+ */
22899
+ mode: _enum(["observed", "declared"]),
22900
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22901
+ holds: boolean(),
22902
+ /** What was actually read, verbatim enough for an operator to argue with. */
22903
+ detail: string()
22904
+ })),
22905
+ /**
22906
+ * The version of the SHELL, when the shell has one it can state: the
22907
+ * Electron app version it declared, or the baked seed closure that
22908
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22909
+ * `unknown` — which version belongs to the shell is precisely what is not
22910
+ * known there.
22911
+ */
22912
+ currentVersion: string().nullable()
22913
+ });
22856
22914
  var ServerRollbackInfoSchema = object({
22857
22915
  /** The version that failed (or was manually rolled back). */
22858
22916
  fromVersion: string(),
@@ -22894,7 +22952,13 @@ var ServerPackageStatusSchema = object({
22894
22952
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22895
22953
  * version skew: an older provider's payload simply omits it.
22896
22954
  */
22897
- imageContract: ImageContractSchema.optional()
22955
+ imageContract: ImageContractSchema.optional(),
22956
+ /**
22957
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22958
+ * for version skew: an older provider's payload simply omits it, and an
22959
+ * absent wrapper is unknown — never `native`.
22960
+ */
22961
+ wrapper: WrapperIdentitySchema.optional()
22898
22962
  });
22899
22963
  var ServerUpdateCheckResultSchema = object({
22900
22964
  packageName: string(),
@@ -30775,7 +30839,23 @@ var RecordingRangeSchema = object({
30775
30839
  });
30776
30840
  var RecordingAvailabilitySchema = object({
30777
30841
  deviceId: number(),
30778
- ranges: array(RecordingRangeSchema)
30842
+ ranges: array(RecordingRangeSchema),
30843
+ /**
30844
+ * Every profile this camera has footage in — not only the one `ranges`
30845
+ * describes (D433).
30846
+ *
30847
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
30848
+ * and enumerating all of them triples the directory reads for a bar that
30849
+ * would look identical. But the answer used to say nothing about that, so a
30850
+ * caller asking "what can I export?" read the single preferred profile as
30851
+ * the only one that exists — on this deployment every camera records `high`
30852
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
30853
+ * UI could not see it.
30854
+ *
30855
+ * Cheap: it is the same shallow directory read the profile CHOICE already
30856
+ * makes. Ask for a specific profile's ranges with the `profile` input.
30857
+ */
30858
+ profilesWithFootage: array(string())
30779
30859
  });
30780
30860
  var RecordingDaysSchema = object({
30781
30861
  deviceId: number(),
@@ -30801,7 +30881,11 @@ var RecordingDaysSchema = object({
30801
30881
  var RecordingAvailabilityForDeviceSchema = object({
30802
30882
  deviceId: number(),
30803
30883
  read: _enum(["read", "unreadable"]),
30804
- ranges: array(RecordingRangeSchema).readonly()
30884
+ ranges: array(RecordingRangeSchema).readonly(),
30885
+ /** Same field, same meaning, as the singular answer (D433). A row that
30886
+ * dropped it would tell a grid caller the archive holds one profile.
30887
+ * Empty on an `'unreadable'` row: nobody looked. */
30888
+ profilesWithFootage: array(string()).readonly()
30805
30889
  });
30806
30890
  /**
30807
30891
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -31091,7 +31175,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
31091
31175
  method(object({
31092
31176
  deviceId: number(),
31093
31177
  fromMs: number(),
31094
- toMs: number()
31178
+ toMs: number(),
31179
+ /**
31180
+ * Answer for THIS profile instead of the preferred one (D433). Absent
31181
+ * keeps the timeline's behaviour — one bar, one profile, one set of
31182
+ * reads. `profilesWithFootage` on the answer says what may be asked
31183
+ * for.
31184
+ */
31185
+ profile: string().optional()
31095
31186
  }), RecordingAvailabilitySchema, {
31096
31187
  kind: "query",
31097
31188
  auth: "protected"
package/dist/addon.mjs CHANGED
@@ -17306,6 +17306,7 @@ var NcSystemEventKindSchema = _enum([
17306
17306
  "addon-crash-loop",
17307
17307
  "addon-update-available",
17308
17308
  "server-update-available",
17309
+ "wrapper-update-available",
17309
17310
  "alarm-triggered",
17310
17311
  "alarm-armed",
17311
17312
  "alarm-disarmed",
@@ -20751,7 +20752,17 @@ var EventDensityBucketSchema = object({
20751
20752
  bucketStart: number(),
20752
20753
  motion: number().int(),
20753
20754
  object: number().int(),
20754
- audio: number().int()
20755
+ audio: number().int(),
20756
+ /**
20757
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
20758
+ * as opposed to `audio`, which is their COUNT (D431).
20759
+ *
20760
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
20761
+ * measured", which is not the same claim as silence, and a lane that cannot
20762
+ * tell them apart paints a quiet hour at full scale — which is exactly what
20763
+ * the count-on-a-level-meter did.
20764
+ */
20765
+ audioDbfs: number().optional()
20755
20766
  });
20756
20767
  /**
20757
20768
  * One camera's row in a `getEventDensityBatch` answer.
@@ -22852,6 +22863,53 @@ var ImageContractSchema = object({
22852
22863
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22853
22864
  message: string()
22854
22865
  });
22866
+ /**
22867
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22868
+ * produced it.
22869
+ *
22870
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22871
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22872
+ * for a `docker` shell and says the app restarts into the new build for
22873
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22874
+ * nothing reads is the defect this repo keeps paying for.
22875
+ */
22876
+ var WrapperIdentitySchema = object({
22877
+ kind: _enum([
22878
+ "docker",
22879
+ "electron",
22880
+ "native",
22881
+ "contradictory",
22882
+ "unknown"
22883
+ ]),
22884
+ /** Every probe that ran, in a stable order. Never empty. */
22885
+ evidence: array(object({
22886
+ /** Which probe this row reports. */
22887
+ fact: _enum([
22888
+ "dockerenv-file",
22889
+ "proc-1-cgroup",
22890
+ "platform",
22891
+ "electron-app-version-env"
22892
+ ]),
22893
+ /**
22894
+ * `observed` — this process read it itself. `declared` — the shell told the
22895
+ * process and nothing here can check it. Only the Electron app version is
22896
+ * ever `declared`, and only because a child cannot see its parent.
22897
+ */
22898
+ mode: _enum(["observed", "declared"]),
22899
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22900
+ holds: boolean(),
22901
+ /** What was actually read, verbatim enough for an operator to argue with. */
22902
+ detail: string()
22903
+ })),
22904
+ /**
22905
+ * The version of the SHELL, when the shell has one it can state: the
22906
+ * Electron app version it declared, or the baked seed closure that
22907
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22908
+ * `unknown` — which version belongs to the shell is precisely what is not
22909
+ * known there.
22910
+ */
22911
+ currentVersion: string().nullable()
22912
+ });
22855
22913
  var ServerRollbackInfoSchema = object({
22856
22914
  /** The version that failed (or was manually rolled back). */
22857
22915
  fromVersion: string(),
@@ -22893,7 +22951,13 @@ var ServerPackageStatusSchema = object({
22893
22951
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22894
22952
  * version skew: an older provider's payload simply omits it.
22895
22953
  */
22896
- imageContract: ImageContractSchema.optional()
22954
+ imageContract: ImageContractSchema.optional(),
22955
+ /**
22956
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22957
+ * for version skew: an older provider's payload simply omits it, and an
22958
+ * absent wrapper is unknown — never `native`.
22959
+ */
22960
+ wrapper: WrapperIdentitySchema.optional()
22897
22961
  });
22898
22962
  var ServerUpdateCheckResultSchema = object({
22899
22963
  packageName: string(),
@@ -30774,7 +30838,23 @@ var RecordingRangeSchema = object({
30774
30838
  });
30775
30839
  var RecordingAvailabilitySchema = object({
30776
30840
  deviceId: number(),
30777
- ranges: array(RecordingRangeSchema)
30841
+ ranges: array(RecordingRangeSchema),
30842
+ /**
30843
+ * Every profile this camera has footage in — not only the one `ranges`
30844
+ * describes (D433).
30845
+ *
30846
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
30847
+ * and enumerating all of them triples the directory reads for a bar that
30848
+ * would look identical. But the answer used to say nothing about that, so a
30849
+ * caller asking "what can I export?" read the single preferred profile as
30850
+ * the only one that exists — on this deployment every camera records `high`
30851
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
30852
+ * UI could not see it.
30853
+ *
30854
+ * Cheap: it is the same shallow directory read the profile CHOICE already
30855
+ * makes. Ask for a specific profile's ranges with the `profile` input.
30856
+ */
30857
+ profilesWithFootage: array(string())
30778
30858
  });
30779
30859
  var RecordingDaysSchema = object({
30780
30860
  deviceId: number(),
@@ -30800,7 +30880,11 @@ var RecordingDaysSchema = object({
30800
30880
  var RecordingAvailabilityForDeviceSchema = object({
30801
30881
  deviceId: number(),
30802
30882
  read: _enum(["read", "unreadable"]),
30803
- ranges: array(RecordingRangeSchema).readonly()
30883
+ ranges: array(RecordingRangeSchema).readonly(),
30884
+ /** Same field, same meaning, as the singular answer (D433). A row that
30885
+ * dropped it would tell a grid caller the archive holds one profile.
30886
+ * Empty on an `'unreadable'` row: nobody looked. */
30887
+ profilesWithFootage: array(string()).readonly()
30804
30888
  });
30805
30889
  /**
30806
30890
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -31090,7 +31174,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
31090
31174
  method(object({
31091
31175
  deviceId: number(),
31092
31176
  fromMs: number(),
31093
- toMs: number()
31177
+ toMs: number(),
31178
+ /**
31179
+ * Answer for THIS profile instead of the preferred one (D433). Absent
31180
+ * keeps the timeline's behaviour — one bar, one profile, one set of
31181
+ * reads. `profilesWithFootage` on the answer says what may be asked
31182
+ * for.
31183
+ */
31184
+ profile: string().optional()
31094
31185
  }), RecordingAvailabilitySchema, {
31095
31186
  kind: "query",
31096
31187
  auth: "protected"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-tuya",
3
- "version": "0.2.92",
3
+ "version": "0.2.94",
4
4
  "description": "Tuya / Smart Life device-provider addon for CamStack — account-onboarded (Tuya IoT cloud fetch of device localKeys) + LOCAL DP control via the @apocaliss92/nodetuya encrypted-LAN client, exposing switch / water-heater-family kettle entities",
5
5
  "keywords": [
6
6
  "camstack",