@camstack/addon-export-google 0.1.56 → 0.1.58
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.
|
@@ -16408,6 +16408,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16408
16408
|
"addon-crash-loop",
|
|
16409
16409
|
"addon-update-available",
|
|
16410
16410
|
"server-update-available",
|
|
16411
|
+
"wrapper-update-available",
|
|
16411
16412
|
"alarm-triggered",
|
|
16412
16413
|
"alarm-armed",
|
|
16413
16414
|
"alarm-disarmed",
|
|
@@ -19829,7 +19830,17 @@ var EventDensityBucketSchema = object({
|
|
|
19829
19830
|
bucketStart: number(),
|
|
19830
19831
|
motion: number().int(),
|
|
19831
19832
|
object: number().int(),
|
|
19832
|
-
audio: number().int()
|
|
19833
|
+
audio: number().int(),
|
|
19834
|
+
/**
|
|
19835
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19836
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19837
|
+
*
|
|
19838
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19839
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19840
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19841
|
+
* the count-on-a-level-meter did.
|
|
19842
|
+
*/
|
|
19843
|
+
audioDbfs: number().optional()
|
|
19833
19844
|
});
|
|
19834
19845
|
/**
|
|
19835
19846
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -21930,6 +21941,53 @@ var ImageContractSchema = object({
|
|
|
21930
21941
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
21931
21942
|
message: string()
|
|
21932
21943
|
});
|
|
21944
|
+
/**
|
|
21945
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
21946
|
+
* produced it.
|
|
21947
|
+
*
|
|
21948
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
21949
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
21950
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
21951
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
21952
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
21953
|
+
*/
|
|
21954
|
+
var WrapperIdentitySchema = object({
|
|
21955
|
+
kind: _enum([
|
|
21956
|
+
"docker",
|
|
21957
|
+
"electron",
|
|
21958
|
+
"native",
|
|
21959
|
+
"contradictory",
|
|
21960
|
+
"unknown"
|
|
21961
|
+
]),
|
|
21962
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
21963
|
+
evidence: array(object({
|
|
21964
|
+
/** Which probe this row reports. */
|
|
21965
|
+
fact: _enum([
|
|
21966
|
+
"dockerenv-file",
|
|
21967
|
+
"proc-1-cgroup",
|
|
21968
|
+
"platform",
|
|
21969
|
+
"electron-app-version-env"
|
|
21970
|
+
]),
|
|
21971
|
+
/**
|
|
21972
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
21973
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
21974
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
21975
|
+
*/
|
|
21976
|
+
mode: _enum(["observed", "declared"]),
|
|
21977
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
21978
|
+
holds: boolean(),
|
|
21979
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
21980
|
+
detail: string()
|
|
21981
|
+
})),
|
|
21982
|
+
/**
|
|
21983
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
21984
|
+
* Electron app version it declared, or the baked seed closure that
|
|
21985
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
21986
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
21987
|
+
* known there.
|
|
21988
|
+
*/
|
|
21989
|
+
currentVersion: string().nullable()
|
|
21990
|
+
});
|
|
21933
21991
|
var ServerRollbackInfoSchema = object({
|
|
21934
21992
|
/** The version that failed (or was manually rolled back). */
|
|
21935
21993
|
fromVersion: string(),
|
|
@@ -21971,7 +22029,13 @@ var ServerPackageStatusSchema = object({
|
|
|
21971
22029
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
21972
22030
|
* version skew: an older provider's payload simply omits it.
|
|
21973
22031
|
*/
|
|
21974
|
-
imageContract: ImageContractSchema.optional()
|
|
22032
|
+
imageContract: ImageContractSchema.optional(),
|
|
22033
|
+
/**
|
|
22034
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
22035
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
22036
|
+
* absent wrapper is unknown — never `native`.
|
|
22037
|
+
*/
|
|
22038
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
21975
22039
|
});
|
|
21976
22040
|
var ServerUpdateCheckResultSchema = object({
|
|
21977
22041
|
packageName: string(),
|
|
@@ -28008,7 +28072,23 @@ var RecordingRangeSchema = object({
|
|
|
28008
28072
|
});
|
|
28009
28073
|
var RecordingAvailabilitySchema = object({
|
|
28010
28074
|
deviceId: number(),
|
|
28011
|
-
ranges: array(RecordingRangeSchema)
|
|
28075
|
+
ranges: array(RecordingRangeSchema),
|
|
28076
|
+
/**
|
|
28077
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
28078
|
+
* describes (D433).
|
|
28079
|
+
*
|
|
28080
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
28081
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
28082
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
28083
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
28084
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
28085
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
28086
|
+
* UI could not see it.
|
|
28087
|
+
*
|
|
28088
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
28089
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
28090
|
+
*/
|
|
28091
|
+
profilesWithFootage: array(string())
|
|
28012
28092
|
});
|
|
28013
28093
|
var RecordingDaysSchema = object({
|
|
28014
28094
|
deviceId: number(),
|
|
@@ -28034,7 +28114,11 @@ var RecordingDaysSchema = object({
|
|
|
28034
28114
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
28035
28115
|
deviceId: number(),
|
|
28036
28116
|
read: _enum(["read", "unreadable"]),
|
|
28037
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
28117
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
28118
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
28119
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
28120
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
28121
|
+
profilesWithFootage: array(string()).readonly()
|
|
28038
28122
|
});
|
|
28039
28123
|
/**
|
|
28040
28124
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -28324,7 +28408,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
28324
28408
|
method(object({
|
|
28325
28409
|
deviceId: number(),
|
|
28326
28410
|
fromMs: number(),
|
|
28327
|
-
toMs: number()
|
|
28411
|
+
toMs: number(),
|
|
28412
|
+
/**
|
|
28413
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28414
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28415
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28416
|
+
* for.
|
|
28417
|
+
*/
|
|
28418
|
+
profile: string().optional()
|
|
28328
28419
|
}), RecordingAvailabilitySchema, {
|
|
28329
28420
|
kind: "query",
|
|
28330
28421
|
auth: "protected"
|
|
@@ -16404,6 +16404,7 @@ var NcSystemEventKindSchema = _enum([
|
|
|
16404
16404
|
"addon-crash-loop",
|
|
16405
16405
|
"addon-update-available",
|
|
16406
16406
|
"server-update-available",
|
|
16407
|
+
"wrapper-update-available",
|
|
16407
16408
|
"alarm-triggered",
|
|
16408
16409
|
"alarm-armed",
|
|
16409
16410
|
"alarm-disarmed",
|
|
@@ -19825,7 +19826,17 @@ var EventDensityBucketSchema = object({
|
|
|
19825
19826
|
bucketStart: number(),
|
|
19826
19827
|
motion: number().int(),
|
|
19827
19828
|
object: number().int(),
|
|
19828
|
-
audio: number().int()
|
|
19829
|
+
audio: number().int(),
|
|
19830
|
+
/**
|
|
19831
|
+
* Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
|
|
19832
|
+
* as opposed to `audio`, which is their COUNT (D431).
|
|
19833
|
+
*
|
|
19834
|
+
* ABSENT when the bucket holds no audio event. Absence means "nothing was
|
|
19835
|
+
* measured", which is not the same claim as silence, and a lane that cannot
|
|
19836
|
+
* tell them apart paints a quiet hour at full scale — which is exactly what
|
|
19837
|
+
* the count-on-a-level-meter did.
|
|
19838
|
+
*/
|
|
19839
|
+
audioDbfs: number().optional()
|
|
19829
19840
|
});
|
|
19830
19841
|
/**
|
|
19831
19842
|
* One camera's row in a `getEventDensityBatch` answer.
|
|
@@ -21926,6 +21937,53 @@ var ImageContractSchema = object({
|
|
|
21926
21937
|
/** One operator-grade sentence: this node runs image X; the contract says Y. */
|
|
21927
21938
|
message: string()
|
|
21928
21939
|
});
|
|
21940
|
+
/**
|
|
21941
|
+
* The shell verdict (see {@link WrapperKindSchema}) with the proofs that
|
|
21942
|
+
* produced it.
|
|
21943
|
+
*
|
|
21944
|
+
* There is deliberately NO `canSelfUpdate` and no apply action: a wrapper
|
|
21945
|
+
* update is an ANNOUNCEMENT. The notification body carries the exact command
|
|
21946
|
+
* for a `docker` shell and says the app restarts into the new build for
|
|
21947
|
+
* `electron`, and that sentence is chosen from `kind` alone — a boolean
|
|
21948
|
+
* nothing reads is the defect this repo keeps paying for.
|
|
21949
|
+
*/
|
|
21950
|
+
var WrapperIdentitySchema = object({
|
|
21951
|
+
kind: _enum([
|
|
21952
|
+
"docker",
|
|
21953
|
+
"electron",
|
|
21954
|
+
"native",
|
|
21955
|
+
"contradictory",
|
|
21956
|
+
"unknown"
|
|
21957
|
+
]),
|
|
21958
|
+
/** Every probe that ran, in a stable order. Never empty. */
|
|
21959
|
+
evidence: array(object({
|
|
21960
|
+
/** Which probe this row reports. */
|
|
21961
|
+
fact: _enum([
|
|
21962
|
+
"dockerenv-file",
|
|
21963
|
+
"proc-1-cgroup",
|
|
21964
|
+
"platform",
|
|
21965
|
+
"electron-app-version-env"
|
|
21966
|
+
]),
|
|
21967
|
+
/**
|
|
21968
|
+
* `observed` — this process read it itself. `declared` — the shell told the
|
|
21969
|
+
* process and nothing here can check it. Only the Electron app version is
|
|
21970
|
+
* ever `declared`, and only because a child cannot see its parent.
|
|
21971
|
+
*/
|
|
21972
|
+
mode: _enum(["observed", "declared"]),
|
|
21973
|
+
/** Did the probe support the fact it names? A `false` row is still evidence. */
|
|
21974
|
+
holds: boolean(),
|
|
21975
|
+
/** What was actually read, verbatim enough for an operator to argue with. */
|
|
21976
|
+
detail: string()
|
|
21977
|
+
})),
|
|
21978
|
+
/**
|
|
21979
|
+
* The version of the SHELL, when the shell has one it can state: the
|
|
21980
|
+
* Electron app version it declared, or the baked seed closure that
|
|
21981
|
+
* fingerprints a container / app bundle. `null` for `contradictory` and
|
|
21982
|
+
* `unknown` — which version belongs to the shell is precisely what is not
|
|
21983
|
+
* known there.
|
|
21984
|
+
*/
|
|
21985
|
+
currentVersion: string().nullable()
|
|
21986
|
+
});
|
|
21929
21987
|
var ServerRollbackInfoSchema = object({
|
|
21930
21988
|
/** The version that failed (or was manually rolled back). */
|
|
21931
21989
|
fromVersion: string(),
|
|
@@ -21967,7 +22025,13 @@ var ServerPackageStatusSchema = object({
|
|
|
21967
22025
|
* Seed-vs-contract verdict (see {@link ImageContractSchema}). Optional for
|
|
21968
22026
|
* version skew: an older provider's payload simply omits it.
|
|
21969
22027
|
*/
|
|
21970
|
-
imageContract: ImageContractSchema.optional()
|
|
22028
|
+
imageContract: ImageContractSchema.optional(),
|
|
22029
|
+
/**
|
|
22030
|
+
* What this node runs INSIDE (see {@link WrapperIdentitySchema}). Optional
|
|
22031
|
+
* for version skew: an older provider's payload simply omits it, and an
|
|
22032
|
+
* absent wrapper is unknown — never `native`.
|
|
22033
|
+
*/
|
|
22034
|
+
wrapper: WrapperIdentitySchema.optional()
|
|
21971
22035
|
});
|
|
21972
22036
|
var ServerUpdateCheckResultSchema = object({
|
|
21973
22037
|
packageName: string(),
|
|
@@ -28004,7 +28068,23 @@ var RecordingRangeSchema = object({
|
|
|
28004
28068
|
});
|
|
28005
28069
|
var RecordingAvailabilitySchema = object({
|
|
28006
28070
|
deviceId: number(),
|
|
28007
|
-
ranges: array(RecordingRangeSchema)
|
|
28071
|
+
ranges: array(RecordingRangeSchema),
|
|
28072
|
+
/**
|
|
28073
|
+
* Every profile this camera has footage in — not only the one `ranges`
|
|
28074
|
+
* describes (D433).
|
|
28075
|
+
*
|
|
28076
|
+
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
28077
|
+
* and enumerating all of them triples the directory reads for a bar that
|
|
28078
|
+
* would look identical. But the answer used to say nothing about that, so a
|
|
28079
|
+
* caller asking "what can I export?" read the single preferred profile as
|
|
28080
|
+
* the only one that exists — on this deployment every camera records `high`
|
|
28081
|
+
* AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
|
|
28082
|
+
* UI could not see it.
|
|
28083
|
+
*
|
|
28084
|
+
* Cheap: it is the same shallow directory read the profile CHOICE already
|
|
28085
|
+
* makes. Ask for a specific profile's ranges with the `profile` input.
|
|
28086
|
+
*/
|
|
28087
|
+
profilesWithFootage: array(string())
|
|
28008
28088
|
});
|
|
28009
28089
|
var RecordingDaysSchema = object({
|
|
28010
28090
|
deviceId: number(),
|
|
@@ -28030,7 +28110,11 @@ var RecordingDaysSchema = object({
|
|
|
28030
28110
|
var RecordingAvailabilityForDeviceSchema = object({
|
|
28031
28111
|
deviceId: number(),
|
|
28032
28112
|
read: _enum(["read", "unreadable"]),
|
|
28033
|
-
ranges: array(RecordingRangeSchema).readonly()
|
|
28113
|
+
ranges: array(RecordingRangeSchema).readonly(),
|
|
28114
|
+
/** Same field, same meaning, as the singular answer (D433). A row that
|
|
28115
|
+
* dropped it would tell a grid caller the archive holds one profile.
|
|
28116
|
+
* Empty on an `'unreadable'` row: nobody looked. */
|
|
28117
|
+
profilesWithFootage: array(string()).readonly()
|
|
28034
28118
|
});
|
|
28035
28119
|
/**
|
|
28036
28120
|
* One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
|
|
@@ -28320,7 +28404,14 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
28320
28404
|
method(object({
|
|
28321
28405
|
deviceId: number(),
|
|
28322
28406
|
fromMs: number(),
|
|
28323
|
-
toMs: number()
|
|
28407
|
+
toMs: number(),
|
|
28408
|
+
/**
|
|
28409
|
+
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
28410
|
+
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
28411
|
+
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
28412
|
+
* for.
|
|
28413
|
+
*/
|
|
28414
|
+
profile: string().optional()
|
|
28324
28415
|
}), RecordingAvailabilitySchema, {
|
|
28325
28416
|
kind: "query",
|
|
28326
28417
|
auth: "protected"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-google",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.58",
|
|
4
4
|
"description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|