@camstack/addon-notifiers 1.2.97 → 1.2.99
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 +57 -3
- package/dist/addon.mjs +57 -3
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -16330,6 +16330,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16330
16330
|
"addon-crash-loop",
|
|
16331
16331
|
"addon-update-available",
|
|
16332
16332
|
"server-update-available",
|
|
16333
|
+
"wrapper-update-available",
|
|
16333
16334
|
"alarm-triggered",
|
|
16334
16335
|
"alarm-armed",
|
|
16335
16336
|
"alarm-disarmed",
|
|
@@ -21846,6 +21847,53 @@ var ImageContractSchema = object({
|
|
|
21846
21847
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
21847
21848
|
message: string()
|
|
21848
21849
|
});
|
|
21850
|
+
/**
|
|
21851
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
21852
|
+
* produced it.
|
|
21853
|
+
*
|
|
21854
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
21855
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
21856
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
21857
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
21858
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
21859
|
+
*/
|
|
21860
|
+
var WrapperIdentitySchema = object({
|
|
21861
|
+
kind: _enum([
|
|
21862
|
+
"docker",
|
|
21863
|
+
"electron",
|
|
21864
|
+
"native",
|
|
21865
|
+
"contradictory",
|
|
21866
|
+
"unknown"
|
|
21867
|
+
]),
|
|
21868
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
21869
|
+
evidence: array(object({
|
|
21870
|
+
/** Which probe this row reports. */
|
|
21871
|
+
fact: _enum([
|
|
21872
|
+
"dockerenv-file",
|
|
21873
|
+
"proc-1-cgroup",
|
|
21874
|
+
"platform",
|
|
21875
|
+
"electron-app-version-env"
|
|
21876
|
+
]),
|
|
21877
|
+
/**
|
|
21878
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
21879
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
21880
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
21881
|
+
*/
|
|
21882
|
+
mode: _enum(["observed", "declared"]),
|
|
21883
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
21884
|
+
holds: boolean(),
|
|
21885
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
21886
|
+
detail: string()
|
|
21887
|
+
})),
|
|
21888
|
+
/**
|
|
21889
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
21890
|
+
* Electron app version it declared, or the baked seed closure that
|
|
21891
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
21892
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
21893
|
+
* known there.
|
|
21894
|
+
*/
|
|
21895
|
+
currentVersion: string().nullable()
|
|
21896
|
+
});
|
|
21849
21897
|
var ServerRollbackInfoSchema = object({
|
|
21850
21898
|
/** The version that failed (or was manually rolled back). */
|
|
21851
21899
|
fromVersion: string(),
|
|
@@ -21887,7 +21935,13 @@ var ServerPackageStatusSchema = object({
|
|
|
21887
21935
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
21888
21936
|
* version skew: an older provider's payload simply omits it.
|
|
21889
21937
|
*/
|
|
21890
|
-
imageContract: ImageContractSchema.optional()
|
|
21938
|
+
imageContract: ImageContractSchema.optional(),
|
|
21939
|
+
/**
|
|
21940
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
21941
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
21942
|
+
* absent wrapper is unknown — never `native`.
|
|
21943
|
+
*/
|
|
21944
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
21891
21945
|
});
|
|
21892
21946
|
var ServerUpdateCheckResultSchema = object({
|
|
21893
21947
|
packageName: string(),
|
|
@@ -24909,8 +24963,8 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
24909
24963
|
*
|
|
24910
24964
|
* An **empty array reads NOTHING** — `[]` is an empty page, never
|
|
24911
24965
|
* "every camera". A request for no devices is a request, not an
|
|
24912
|
-
* omission; same contract as `deviceManager.
|
|
24913
|
-
* `pipelineAnalytics.listRecentTracks`.
|
|
24966
|
+
* omission; same contract as `deviceManager.listAll`'s `deviceIds`
|
|
24967
|
+
* and `pipelineAnalytics.listRecentTracks`.
|
|
24914
24968
|
*
|
|
24915
24969
|
* Absent (`undefined`) is the omission, and keeps the cluster-wide view.
|
|
24916
24970
|
*/
|
package/dist/addon.mjs
CHANGED
|
@@ -16303,6 +16303,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16303
16303
|
"addon-crash-loop",
|
|
16304
16304
|
"addon-update-available",
|
|
16305
16305
|
"server-update-available",
|
|
16306
|
+
"wrapper-update-available",
|
|
16306
16307
|
"alarm-triggered",
|
|
16307
16308
|
"alarm-armed",
|
|
16308
16309
|
"alarm-disarmed",
|
|
@@ -21819,6 +21820,53 @@ var ImageContractSchema = object({
|
|
|
21819
21820
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
21820
21821
|
message: string()
|
|
21821
21822
|
});
|
|
21823
|
+
/**
|
|
21824
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
21825
|
+
* produced it.
|
|
21826
|
+
*
|
|
21827
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
21828
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
21829
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
21830
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
21831
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
21832
|
+
*/
|
|
21833
|
+
var WrapperIdentitySchema = object({
|
|
21834
|
+
kind: _enum([
|
|
21835
|
+
"docker",
|
|
21836
|
+
"electron",
|
|
21837
|
+
"native",
|
|
21838
|
+
"contradictory",
|
|
21839
|
+
"unknown"
|
|
21840
|
+
]),
|
|
21841
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
21842
|
+
evidence: array(object({
|
|
21843
|
+
/** Which probe this row reports. */
|
|
21844
|
+
fact: _enum([
|
|
21845
|
+
"dockerenv-file",
|
|
21846
|
+
"proc-1-cgroup",
|
|
21847
|
+
"platform",
|
|
21848
|
+
"electron-app-version-env"
|
|
21849
|
+
]),
|
|
21850
|
+
/**
|
|
21851
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
21852
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
21853
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
21854
|
+
*/
|
|
21855
|
+
mode: _enum(["observed", "declared"]),
|
|
21856
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
21857
|
+
holds: boolean(),
|
|
21858
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
21859
|
+
detail: string()
|
|
21860
|
+
})),
|
|
21861
|
+
/**
|
|
21862
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
21863
|
+
* Electron app version it declared, or the baked seed closure that
|
|
21864
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
21865
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
21866
|
+
* known there.
|
|
21867
|
+
*/
|
|
21868
|
+
currentVersion: string().nullable()
|
|
21869
|
+
});
|
|
21822
21870
|
var ServerRollbackInfoSchema = object({
|
|
21823
21871
|
/** The version that failed (or was manually rolled back). */
|
|
21824
21872
|
fromVersion: string(),
|
|
@@ -21860,7 +21908,13 @@ var ServerPackageStatusSchema = object({
|
|
|
21860
21908
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
21861
21909
|
* version skew: an older provider's payload simply omits it.
|
|
21862
21910
|
*/
|
|
21863
|
-
imageContract: ImageContractSchema.optional()
|
|
21911
|
+
imageContract: ImageContractSchema.optional(),
|
|
21912
|
+
/**
|
|
21913
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
21914
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
21915
|
+
* absent wrapper is unknown — never `native`.
|
|
21916
|
+
*/
|
|
21917
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
21864
21918
|
});
|
|
21865
21919
|
var ServerUpdateCheckResultSchema = object({
|
|
21866
21920
|
packageName: string(),
|
|
@@ -24882,8 +24936,8 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
|
|
|
24882
24936
|
*
|
|
24883
24937
|
* An **empty array reads NOTHING** — `[]` is an empty page, never
|
|
24884
24938
|
* "every camera". A request for no devices is a request, not an
|
|
24885
|
-
* omission; same contract as `deviceManager.
|
|
24886
|
-
* `pipelineAnalytics.listRecentTracks`.
|
|
24939
|
+
* omission; same contract as `deviceManager.listAll`'s `deviceIds`
|
|
24940
|
+
* and `pipelineAnalytics.listRecentTracks`.
|
|
24887
24941
|
*
|
|
24888
24942
|
* Absent (`undefined`) is the omission, and keeps the cluster-wide view.
|
|
24889
24943
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-notifiers",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.99",
|
|
4
4
|
"description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|