@camstack/addon-export-alexa 1.2.98 → 1.2.100
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.
|
@@ -16437,6 +16437,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16437
16437
|
"addon-crash-loop",
|
|
16438
16438
|
"addon-update-available",
|
|
16439
16439
|
"server-update-available",
|
|
16440
|
+
"wrapper-update-available",
|
|
16440
16441
|
"alarm-triggered",
|
|
16441
16442
|
"alarm-armed",
|
|
16442
16443
|
"alarm-disarmed",
|
|
@@ -19858,7 +19859,17 @@ var EventDensityBucketSchema = object({
|
|
|
19858
19859
|
bucketStart: number(),
|
|
19859
19860
|
motion: number().int(),
|
|
19860
19861
|
object: number().int(),
|
|
19861
|
-
audio: number().int()
|
|
19862
|
+
audio: number().int(),
|
|
19863
|
+
/**
|
|
19864
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19865
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19866
|
+
*
|
|
19867
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19868
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19869
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19870
|
+
* the count-on-a-level-meter did.
|
|
19871
|
+
*/
|
|
19872
|
+
audioDbfs: number().optional()
|
|
19862
19873
|
});
|
|
19863
19874
|
/**
|
|
19864
19875
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -21959,6 +21970,53 @@ var ImageContractSchema = object({
|
|
|
21959
21970
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
21960
21971
|
message: string()
|
|
21961
21972
|
});
|
|
21973
|
+
/**
|
|
21974
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
21975
|
+
* produced it.
|
|
21976
|
+
*
|
|
21977
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
21978
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
21979
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
21980
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
21981
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
21982
|
+
*/
|
|
21983
|
+
var WrapperIdentitySchema = object({
|
|
21984
|
+
kind: _enum([
|
|
21985
|
+
"docker",
|
|
21986
|
+
"electron",
|
|
21987
|
+
"native",
|
|
21988
|
+
"contradictory",
|
|
21989
|
+
"unknown"
|
|
21990
|
+
]),
|
|
21991
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
21992
|
+
evidence: array(object({
|
|
21993
|
+
/** Which probe this row reports. */
|
|
21994
|
+
fact: _enum([
|
|
21995
|
+
"dockerenv-file",
|
|
21996
|
+
"proc-1-cgroup",
|
|
21997
|
+
"platform",
|
|
21998
|
+
"electron-app-version-env"
|
|
21999
|
+
]),
|
|
22000
|
+
/**
|
|
22001
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
22002
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
22003
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
22004
|
+
*/
|
|
22005
|
+
mode: _enum(["observed", "declared"]),
|
|
22006
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
22007
|
+
holds: boolean(),
|
|
22008
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
22009
|
+
detail: string()
|
|
22010
|
+
})),
|
|
22011
|
+
/**
|
|
22012
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
22013
|
+
* Electron app version it declared, or the baked seed closure that
|
|
22014
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
22015
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
22016
|
+
* known there.
|
|
22017
|
+
*/
|
|
22018
|
+
currentVersion: string().nullable()
|
|
22019
|
+
});
|
|
21962
22020
|
var ServerRollbackInfoSchema = object({
|
|
21963
22021
|
/** The version that failed (or was manually rolled back). */
|
|
21964
22022
|
fromVersion: string(),
|
|
@@ -22000,7 +22058,13 @@ var ServerPackageStatusSchema = object({
|
|
|
22000
22058
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
22001
22059
|
* version skew: an older provider's payload simply omits it.
|
|
22002
22060
|
*/
|
|
22003
|
-
imageContract: ImageContractSchema.optional()
|
|
22061
|
+
imageContract: ImageContractSchema.optional(),
|
|
22062
|
+
/**
|
|
22063
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
22064
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
22065
|
+
* absent wrapper is unknown — never `native`.
|
|
22066
|
+
*/
|
|
22067
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
22004
22068
|
});
|
|
22005
22069
|
var ServerUpdateCheckResultSchema = object({
|
|
22006
22070
|
packageName: string(),
|
|
@@ -28025,7 +28089,23 @@ var RecordingRangeSchema = object({
|
|
|
28025
28089
|
});
|
|
28026
28090
|
var RecordingAvailabilitySchema = object({
|
|
28027
28091
|
deviceId: number(),
|
|
28028
|
-
ranges: array(RecordingRangeSchema)
|
|
28092
|
+
ranges: array(RecordingRangeSchema),
|
|
28093
|
+
/**
|
|
28094
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
28095
|
+
* describes (D433).
|
|
28096
|
+
*
|
|
28097
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
28098
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
28099
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
28100
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
28101
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
28102
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
28103
|
+
* UI could not see it.
|
|
28104
|
+
*
|
|
28105
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
28106
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
28107
|
+
*/
|
|
28108
|
+
profilesWithFootage: array(string())
|
|
28029
28109
|
});
|
|
28030
28110
|
var RecordingDaysSchema = object({
|
|
28031
28111
|
deviceId: number(),
|
|
@@ -28051,7 +28131,11 @@ var RecordingDaysSchema = object({
|
|
|
28051
28131
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
28052
28132
|
deviceId: number(),
|
|
28053
28133
|
read: _enum(["read", "unreadable"]),
|
|
28054
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
28134
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
28135
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
28136
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
28137
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
28138
|
+
profilesWithFootage: array(string()).readonly()
|
|
28055
28139
|
});
|
|
28056
28140
|
/**
|
|
28057
28141
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -28341,7 +28425,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
28341
28425
|
method(object({
|
|
28342
28426
|
deviceId: number(),
|
|
28343
28427
|
fromMs: number(),
|
|
28344
|
-
toMs: number()
|
|
28428
|
+
toMs: number(),
|
|
28429
|
+
/**
|
|
28430
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28431
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28432
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28433
|
+
* for.
|
|
28434
|
+
*/
|
|
28435
|
+
profile: string().optional()
|
|
28345
28436
|
}), RecordingAvailabilitySchema, {
|
|
28346
28437
|
kind: "query",
|
|
28347
28438
|
auth: "protected"
|
|
@@ -16410,6 +16410,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16410
16410
|
"addon-crash-loop",
|
|
16411
16411
|
"addon-update-available",
|
|
16412
16412
|
"server-update-available",
|
|
16413
|
+
"wrapper-update-available",
|
|
16413
16414
|
"alarm-triggered",
|
|
16414
16415
|
"alarm-armed",
|
|
16415
16416
|
"alarm-disarmed",
|
|
@@ -19831,7 +19832,17 @@ var EventDensityBucketSchema = object({
|
|
|
19831
19832
|
bucketStart: number(),
|
|
19832
19833
|
motion: number().int(),
|
|
19833
19834
|
object: number().int(),
|
|
19834
|
-
audio: number().int()
|
|
19835
|
+
audio: number().int(),
|
|
19836
|
+
/**
|
|
19837
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19838
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19839
|
+
*
|
|
19840
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19841
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19842
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19843
|
+
* the count-on-a-level-meter did.
|
|
19844
|
+
*/
|
|
19845
|
+
audioDbfs: number().optional()
|
|
19835
19846
|
});
|
|
19836
19847
|
/**
|
|
19837
19848
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -21932,6 +21943,53 @@ var ImageContractSchema = object({
|
|
|
21932
21943
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
21933
21944
|
message: string()
|
|
21934
21945
|
});
|
|
21946
|
+
/**
|
|
21947
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
21948
|
+
* produced it.
|
|
21949
|
+
*
|
|
21950
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
21951
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
21952
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
21953
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
21954
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
21955
|
+
*/
|
|
21956
|
+
var WrapperIdentitySchema = object({
|
|
21957
|
+
kind: _enum([
|
|
21958
|
+
"docker",
|
|
21959
|
+
"electron",
|
|
21960
|
+
"native",
|
|
21961
|
+
"contradictory",
|
|
21962
|
+
"unknown"
|
|
21963
|
+
]),
|
|
21964
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
21965
|
+
evidence: array(object({
|
|
21966
|
+
/** Which probe this row reports. */
|
|
21967
|
+
fact: _enum([
|
|
21968
|
+
"dockerenv-file",
|
|
21969
|
+
"proc-1-cgroup",
|
|
21970
|
+
"platform",
|
|
21971
|
+
"electron-app-version-env"
|
|
21972
|
+
]),
|
|
21973
|
+
/**
|
|
21974
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
21975
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
21976
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
21977
|
+
*/
|
|
21978
|
+
mode: _enum(["observed", "declared"]),
|
|
21979
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
21980
|
+
holds: boolean(),
|
|
21981
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
21982
|
+
detail: string()
|
|
21983
|
+
})),
|
|
21984
|
+
/**
|
|
21985
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
21986
|
+
* Electron app version it declared, or the baked seed closure that
|
|
21987
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
21988
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
21989
|
+
* known there.
|
|
21990
|
+
*/
|
|
21991
|
+
currentVersion: string().nullable()
|
|
21992
|
+
});
|
|
21935
21993
|
var ServerRollbackInfoSchema = object({
|
|
21936
21994
|
/** The version that failed (or was manually rolled back). */
|
|
21937
21995
|
fromVersion: string(),
|
|
@@ -21973,7 +22031,13 @@ var ServerPackageStatusSchema = object({
|
|
|
21973
22031
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
21974
22032
|
* version skew: an older provider's payload simply omits it.
|
|
21975
22033
|
*/
|
|
21976
|
-
imageContract: ImageContractSchema.optional()
|
|
22034
|
+
imageContract: ImageContractSchema.optional(),
|
|
22035
|
+
/**
|
|
22036
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
22037
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
22038
|
+
* absent wrapper is unknown — never `native`.
|
|
22039
|
+
*/
|
|
22040
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
21977
22041
|
});
|
|
21978
22042
|
var ServerUpdateCheckResultSchema = object({
|
|
21979
22043
|
packageName: string(),
|
|
@@ -27998,7 +28062,23 @@ var RecordingRangeSchema = object({
|
|
|
27998
28062
|
});
|
|
27999
28063
|
var RecordingAvailabilitySchema = object({
|
|
28000
28064
|
deviceId: number(),
|
|
28001
|
-
ranges: array(RecordingRangeSchema)
|
|
28065
|
+
ranges: array(RecordingRangeSchema),
|
|
28066
|
+
/**
|
|
28067
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
28068
|
+
* describes (D433).
|
|
28069
|
+
*
|
|
28070
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
28071
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
28072
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
28073
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
28074
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
28075
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
28076
|
+
* UI could not see it.
|
|
28077
|
+
*
|
|
28078
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
28079
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
28080
|
+
*/
|
|
28081
|
+
profilesWithFootage: array(string())
|
|
28002
28082
|
});
|
|
28003
28083
|
var RecordingDaysSchema = object({
|
|
28004
28084
|
deviceId: number(),
|
|
@@ -28024,7 +28104,11 @@ var RecordingDaysSchema = object({
|
|
|
28024
28104
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
28025
28105
|
deviceId: number(),
|
|
28026
28106
|
read: _enum(["read", "unreadable"]),
|
|
28027
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
28107
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
28108
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
28109
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
28110
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
28111
|
+
profilesWithFootage: array(string()).readonly()
|
|
28028
28112
|
});
|
|
28029
28113
|
/**
|
|
28030
28114
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -28314,7 +28398,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
28314
28398
|
method(object({
|
|
28315
28399
|
deviceId: number(),
|
|
28316
28400
|
fromMs: number(),
|
|
28317
|
-
toMs: number()
|
|
28401
|
+
toMs: number(),
|
|
28402
|
+
/**
|
|
28403
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28404
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28405
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28406
|
+
* for.
|
|
28407
|
+
*/
|
|
28408
|
+
profile: string().optional()
|
|
28318
28409
|
}), RecordingAvailabilitySchema, {
|
|
28319
28410
|
kind: "query",
|
|
28320
28411
|
auth: "protected"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-alexa",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.100",
|
|
4
4
|
"description": "Alexa Smart Home Skill export — hub-side OAuth provider + directive handler. The companion AWS Lambda forwards Alexa directives to this addon's /addon/export-alexa/directive endpoint.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|