@camstack/addon-provider-tuya 0.2.93 → 0.2.95

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",
@@ -22863,6 +22864,53 @@ var ImageContractSchema = object({
22863
22864
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22864
22865
  message: string()
22865
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
+ });
22866
22914
  var ServerRollbackInfoSchema = object({
22867
22915
  /** The version that failed (or was manually rolled back). */
22868
22916
  fromVersion: string(),
@@ -22904,7 +22952,13 @@ var ServerPackageStatusSchema = object({
22904
22952
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22905
22953
  * version skew: an older provider's payload simply omits it.
22906
22954
  */
22907
- 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()
22908
22962
  });
22909
22963
  var ServerUpdateCheckResultSchema = object({
22910
22964
  packageName: string(),
@@ -26664,8 +26718,8 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
26664
26718
  *
26665
26719
  * An **empty array reads NOTHING** — `[]` is an empty page, never
26666
26720
  * "every camera". A request for no devices is a request, not an
26667
- * omission; same contract as `deviceManager.listFleet` and
26668
- * `pipelineAnalytics.listRecentTracks`.
26721
+ * omission; same contract as `deviceManager.listAll`'s `deviceIds`
26722
+ * and `pipelineAnalytics.listRecentTracks`.
26669
26723
  *
26670
26724
  * Absent (`undefined`) is the omission, and keeps the cluster-wide view.
26671
26725
  */
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",
@@ -22862,6 +22863,53 @@ var ImageContractSchema = object({
22862
22863
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22863
22864
  message: string()
22864
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
+ });
22865
22913
  var ServerRollbackInfoSchema = object({
22866
22914
  /** The version that failed (or was manually rolled back). */
22867
22915
  fromVersion: string(),
@@ -22903,7 +22951,13 @@ var ServerPackageStatusSchema = object({
22903
22951
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22904
22952
  * version skew: an older provider's payload simply omits it.
22905
22953
  */
22906
- 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()
22907
22961
  });
22908
22962
  var ServerUpdateCheckResultSchema = object({
22909
22963
  packageName: string(),
@@ -26663,8 +26717,8 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
26663
26717
  *
26664
26718
  * An **empty array reads NOTHING** — `[]` is an empty page, never
26665
26719
  * "every camera". A request for no devices is a request, not an
26666
- * omission; same contract as `deviceManager.listFleet` and
26667
- * `pipelineAnalytics.listRecentTracks`.
26720
+ * omission; same contract as `deviceManager.listAll`'s `deviceIds`
26721
+ * and `pipelineAnalytics.listRecentTracks`.
26668
26722
  *
26669
26723
  * Absent (`undefined`) is the omission, and keeps the cluster-wide view.
26670
26724
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-tuya",
3
- "version": "0.2.93",
3
+ "version": "0.2.95",
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",