@camstack/addon-provider-unifi 0.2.93 → 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
@@ -16470,6 +16470,7 @@ var NcSystemEventKindSchema = _enum([
16470
16470
  "addon-crash-loop",
16471
16471
  "addon-update-available",
16472
16472
  "server-update-available",
16473
+ "wrapper-update-available",
16473
16474
  "alarm-triggered",
16474
16475
  "alarm-armed",
16475
16476
  "alarm-disarmed",
@@ -22026,6 +22027,53 @@ var ImageContractSchema = object({
22026
22027
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22027
22028
  message: string()
22028
22029
  });
22030
+ /**
22031
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22032
+ * produced it.
22033
+ *
22034
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22035
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22036
+ * for a `docker` shell and says the app restarts into the new build for
22037
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22038
+ * nothing reads is the defect this repo keeps paying for.
22039
+ */
22040
+ var WrapperIdentitySchema = object({
22041
+ kind: _enum([
22042
+ "docker",
22043
+ "electron",
22044
+ "native",
22045
+ "contradictory",
22046
+ "unknown"
22047
+ ]),
22048
+ /** Every probe that ran, in a stable order. Never empty. */
22049
+ evidence: array(object({
22050
+ /** Which probe this row reports. */
22051
+ fact: _enum([
22052
+ "dockerenv-file",
22053
+ "proc-1-cgroup",
22054
+ "platform",
22055
+ "electron-app-version-env"
22056
+ ]),
22057
+ /**
22058
+ * `observed` — this process read it itself. `declared` — the shell told the
22059
+ * process and nothing here can check it. Only the Electron app version is
22060
+ * ever `declared`, and only because a child cannot see its parent.
22061
+ */
22062
+ mode: _enum(["observed", "declared"]),
22063
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22064
+ holds: boolean(),
22065
+ /** What was actually read, verbatim enough for an operator to argue with. */
22066
+ detail: string()
22067
+ })),
22068
+ /**
22069
+ * The version of the SHELL, when the shell has one it can state: the
22070
+ * Electron app version it declared, or the baked seed closure that
22071
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22072
+ * `unknown` — which version belongs to the shell is precisely what is not
22073
+ * known there.
22074
+ */
22075
+ currentVersion: string().nullable()
22076
+ });
22029
22077
  var ServerRollbackInfoSchema = object({
22030
22078
  /** The version that failed (or was manually rolled back). */
22031
22079
  fromVersion: string(),
@@ -22067,7 +22115,13 @@ var ServerPackageStatusSchema = object({
22067
22115
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22068
22116
  * version skew: an older provider's payload simply omits it.
22069
22117
  */
22070
- imageContract: ImageContractSchema.optional()
22118
+ imageContract: ImageContractSchema.optional(),
22119
+ /**
22120
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22121
+ * for version skew: an older provider's payload simply omits it, and an
22122
+ * absent wrapper is unknown — never `native`.
22123
+ */
22124
+ wrapper: WrapperIdentitySchema.optional()
22071
22125
  });
22072
22126
  var ServerUpdateCheckResultSchema = object({
22073
22127
  packageName: string(),
package/dist/addon.mjs CHANGED
@@ -16469,6 +16469,7 @@ var NcSystemEventKindSchema = _enum([
16469
16469
  "addon-crash-loop",
16470
16470
  "addon-update-available",
16471
16471
  "server-update-available",
16472
+ "wrapper-update-available",
16472
16473
  "alarm-triggered",
16473
16474
  "alarm-armed",
16474
16475
  "alarm-disarmed",
@@ -22025,6 +22026,53 @@ var ImageContractSchema = object({
22025
22026
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22026
22027
  message: string()
22027
22028
  });
22029
+ /**
22030
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22031
+ * produced it.
22032
+ *
22033
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22034
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22035
+ * for a `docker` shell and says the app restarts into the new build for
22036
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22037
+ * nothing reads is the defect this repo keeps paying for.
22038
+ */
22039
+ var WrapperIdentitySchema = object({
22040
+ kind: _enum([
22041
+ "docker",
22042
+ "electron",
22043
+ "native",
22044
+ "contradictory",
22045
+ "unknown"
22046
+ ]),
22047
+ /** Every probe that ran, in a stable order. Never empty. */
22048
+ evidence: array(object({
22049
+ /** Which probe this row reports. */
22050
+ fact: _enum([
22051
+ "dockerenv-file",
22052
+ "proc-1-cgroup",
22053
+ "platform",
22054
+ "electron-app-version-env"
22055
+ ]),
22056
+ /**
22057
+ * `observed` — this process read it itself. `declared` — the shell told the
22058
+ * process and nothing here can check it. Only the Electron app version is
22059
+ * ever `declared`, and only because a child cannot see its parent.
22060
+ */
22061
+ mode: _enum(["observed", "declared"]),
22062
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22063
+ holds: boolean(),
22064
+ /** What was actually read, verbatim enough for an operator to argue with. */
22065
+ detail: string()
22066
+ })),
22067
+ /**
22068
+ * The version of the SHELL, when the shell has one it can state: the
22069
+ * Electron app version it declared, or the baked seed closure that
22070
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22071
+ * `unknown` — which version belongs to the shell is precisely what is not
22072
+ * known there.
22073
+ */
22074
+ currentVersion: string().nullable()
22075
+ });
22028
22076
  var ServerRollbackInfoSchema = object({
22029
22077
  /** The version that failed (or was manually rolled back). */
22030
22078
  fromVersion: string(),
@@ -22066,7 +22114,13 @@ var ServerPackageStatusSchema = object({
22066
22114
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22067
22115
  * version skew: an older provider's payload simply omits it.
22068
22116
  */
22069
- imageContract: ImageContractSchema.optional()
22117
+ imageContract: ImageContractSchema.optional(),
22118
+ /**
22119
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22120
+ * for version skew: an older provider's payload simply omits it, and an
22121
+ * absent wrapper is unknown — never `native`.
22122
+ */
22123
+ wrapper: WrapperIdentitySchema.optional()
22070
22124
  });
22071
22125
  var ServerUpdateCheckResultSchema = object({
22072
22126
  packageName: string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-unifi",
3
- "version": "0.2.93",
3
+ "version": "0.2.94",
4
4
  "description": "UniFi Network controller device-provider addon for CamStack — local-controller infra switches/APs (as containers) + network-client presence. NO cameras/Protect.",
5
5
  "keywords": [
6
6
  "camstack",