@camstack/addon-provider-amcrest 0.2.95 → 0.2.97

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
@@ -16465,6 +16465,7 @@ var NcSystemEventKindSchema = _enum([
16465
16465
  "addon-crash-loop",
16466
16466
  "addon-update-available",
16467
16467
  "server-update-available",
16468
+ "wrapper-update-available",
16468
16469
  "alarm-triggered",
16469
16470
  "alarm-armed",
16470
16471
  "alarm-disarmed",
@@ -22021,6 +22022,53 @@ var ImageContractSchema = object({
22021
22022
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22022
22023
  message: string()
22023
22024
  });
22025
+ /**
22026
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22027
+ * produced it.
22028
+ *
22029
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22030
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22031
+ * for a `docker` shell and says the app restarts into the new build for
22032
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22033
+ * nothing reads is the defect this repo keeps paying for.
22034
+ */
22035
+ var WrapperIdentitySchema = object({
22036
+ kind: _enum([
22037
+ "docker",
22038
+ "electron",
22039
+ "native",
22040
+ "contradictory",
22041
+ "unknown"
22042
+ ]),
22043
+ /** Every probe that ran, in a stable order. Never empty. */
22044
+ evidence: array(object({
22045
+ /** Which probe this row reports. */
22046
+ fact: _enum([
22047
+ "dockerenv-file",
22048
+ "proc-1-cgroup",
22049
+ "platform",
22050
+ "electron-app-version-env"
22051
+ ]),
22052
+ /**
22053
+ * `observed` — this process read it itself. `declared` — the shell told the
22054
+ * process and nothing here can check it. Only the Electron app version is
22055
+ * ever `declared`, and only because a child cannot see its parent.
22056
+ */
22057
+ mode: _enum(["observed", "declared"]),
22058
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22059
+ holds: boolean(),
22060
+ /** What was actually read, verbatim enough for an operator to argue with. */
22061
+ detail: string()
22062
+ })),
22063
+ /**
22064
+ * The version of the SHELL, when the shell has one it can state: the
22065
+ * Electron app version it declared, or the baked seed closure that
22066
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22067
+ * `unknown` — which version belongs to the shell is precisely what is not
22068
+ * known there.
22069
+ */
22070
+ currentVersion: string().nullable()
22071
+ });
22024
22072
  var ServerRollbackInfoSchema = object({
22025
22073
  /** The version that failed (or was manually rolled back). */
22026
22074
  fromVersion: string(),
@@ -22062,7 +22110,13 @@ var ServerPackageStatusSchema = object({
22062
22110
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22063
22111
  * version skew: an older provider's payload simply omits it.
22064
22112
  */
22065
- imageContract: ImageContractSchema.optional()
22113
+ imageContract: ImageContractSchema.optional(),
22114
+ /**
22115
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22116
+ * for version skew: an older provider's payload simply omits it, and an
22117
+ * absent wrapper is unknown — never `native`.
22118
+ */
22119
+ wrapper: WrapperIdentitySchema.optional()
22066
22120
  });
22067
22121
  var ServerUpdateCheckResultSchema = object({
22068
22122
  packageName: string(),
@@ -25918,8 +25972,8 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25918
25972
  *
25919
25973
  * An **empty array reads NOTHING** — `[]` is an empty page, never
25920
25974
  * "every camera". A request for no devices is a request, not an
25921
- * omission; same contract as `deviceManager.listFleet` and
25922
- * `pipelineAnalytics.listRecentTracks`.
25975
+ * omission; same contract as `deviceManager.listAll`'s `deviceIds`
25976
+ * and `pipelineAnalytics.listRecentTracks`.
25923
25977
  *
25924
25978
  * Absent (`undefined`) is the omission, and keeps the cluster-wide view.
25925
25979
  */
package/dist/addon.mjs CHANGED
@@ -16466,6 +16466,7 @@ var NcSystemEventKindSchema = _enum([
16466
16466
  "addon-crash-loop",
16467
16467
  "addon-update-available",
16468
16468
  "server-update-available",
16469
+ "wrapper-update-available",
16469
16470
  "alarm-triggered",
16470
16471
  "alarm-armed",
16471
16472
  "alarm-disarmed",
@@ -22022,6 +22023,53 @@ var ImageContractSchema = object({
22022
22023
  /** One operator-grade sentence: this node runs image X; the contract says Y. */
22023
22024
  message: string()
22024
22025
  });
22026
+ /**
22027
+ * The shell verdict (see {@link WrapperKindSchema}) with the proofs that
22028
+ * produced it.
22029
+ *
22030
+ * There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
22031
+ * update is an ANNOUNCEMENT. The notification body carries the exact command
22032
+ * for a `docker` shell and says the app restarts into the new build for
22033
+ * `electron`, and that sentence is chosen from `kind` alone — a boolean
22034
+ * nothing reads is the defect this repo keeps paying for.
22035
+ */
22036
+ var WrapperIdentitySchema = object({
22037
+ kind: _enum([
22038
+ "docker",
22039
+ "electron",
22040
+ "native",
22041
+ "contradictory",
22042
+ "unknown"
22043
+ ]),
22044
+ /** Every probe that ran, in a stable order. Never empty. */
22045
+ evidence: array(object({
22046
+ /** Which probe this row reports. */
22047
+ fact: _enum([
22048
+ "dockerenv-file",
22049
+ "proc-1-cgroup",
22050
+ "platform",
22051
+ "electron-app-version-env"
22052
+ ]),
22053
+ /**
22054
+ * `observed` — this process read it itself. `declared` — the shell told the
22055
+ * process and nothing here can check it. Only the Electron app version is
22056
+ * ever `declared`, and only because a child cannot see its parent.
22057
+ */
22058
+ mode: _enum(["observed", "declared"]),
22059
+ /** Did the probe support the fact it names? A `false` row is still evidence. */
22060
+ holds: boolean(),
22061
+ /** What was actually read, verbatim enough for an operator to argue with. */
22062
+ detail: string()
22063
+ })),
22064
+ /**
22065
+ * The version of the SHELL, when the shell has one it can state: the
22066
+ * Electron app version it declared, or the baked seed closure that
22067
+ * fingerprints a container / app bundle. `null` for `contradictory` and
22068
+ * `unknown` — which version belongs to the shell is precisely what is not
22069
+ * known there.
22070
+ */
22071
+ currentVersion: string().nullable()
22072
+ });
22025
22073
  var ServerRollbackInfoSchema = object({
22026
22074
  /** The version that failed (or was manually rolled back). */
22027
22075
  fromVersion: string(),
@@ -22063,7 +22111,13 @@ var ServerPackageStatusSchema = object({
22063
22111
  * Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
22064
22112
  * version skew: an older provider's payload simply omits it.
22065
22113
  */
22066
- imageContract: ImageContractSchema.optional()
22114
+ imageContract: ImageContractSchema.optional(),
22115
+ /**
22116
+ * What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
22117
+ * for version skew: an older provider's payload simply omits it, and an
22118
+ * absent wrapper is unknown — never `native`.
22119
+ */
22120
+ wrapper: WrapperIdentitySchema.optional()
22067
22121
  });
22068
22122
  var ServerUpdateCheckResultSchema = object({
22069
22123
  packageName: string(),
@@ -25919,8 +25973,8 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25919
25973
  *
25920
25974
  * An **empty array reads NOTHING** — `[]` is an empty page, never
25921
25975
  * "every camera". A request for no devices is a request, not an
25922
- * omission; same contract as `deviceManager.listFleet` and
25923
- * `pipelineAnalytics.listRecentTracks`.
25976
+ * omission; same contract as `deviceManager.listAll`'s `deviceIds`
25977
+ * and `pipelineAnalytics.listRecentTracks`.
25924
25978
  *
25925
25979
  * Absent (`undefined`) is the omission, and keeps the cluster-wide view.
25926
25980
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-amcrest",
3
- "version": "0.2.95",
3
+ "version": "0.2.97",
4
4
  "description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
5
5
  "keywords": [
6
6
  "camstack",