@camstack/addon-export-google 0.1.38 → 0.1.40
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/export-google.addon.js +47 -34
- package/dist/export-google.addon.mjs +47 -34
- package/package.json +1 -1
|
@@ -8042,17 +8042,29 @@ var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
|
8042
8042
|
/**
|
|
8043
8043
|
* DERIVED per-camera storage summary — the single field cheap consumers read
|
|
8044
8044
|
* (the viewer's status dot, the camera list) instead of walking `bands`:
|
|
8045
|
-
* - `off`
|
|
8046
|
-
* - `events`
|
|
8047
|
-
* - `continuous`
|
|
8048
|
-
*
|
|
8049
|
-
*
|
|
8050
|
-
*
|
|
8045
|
+
* - `off` — no band covers the camera (or it is disabled).
|
|
8046
|
+
* - `events` — every band records around triggers only.
|
|
8047
|
+
* - `continuous` — at least one band records continuously.
|
|
8048
|
+
* - `on-device-decision`— the DEVICE decides: recording runs for as long as the
|
|
8049
|
+
* camera raises its own `recording-signal` level (a robot that cleans). There
|
|
8050
|
+
* is no schedule to author, because there is no hour to program — see
|
|
8051
|
+
* {@link RecordingConfigSchema}`.deviceDecision`.
|
|
8052
|
+
*
|
|
8053
|
+
* NEVER authored: the recorder stamps it from the authoritative intent
|
|
8054
|
+
* (`bands` + `deviceDecision`) on every save (`activeModeForConfig`). Writing it
|
|
8055
|
+
* has no effect.
|
|
8056
|
+
*
|
|
8057
|
+
* `on-device-decision` is named for WHO decides, not for how the recording is
|
|
8058
|
+
* requested. `on-demand` was rejected: in this repo's vocabulary a "demand" is
|
|
8059
|
+
* something the operator makes (the live gate is the recorder's own "demand
|
|
8060
|
+
* window"), and a knob whose name suggests the operator starts it while the
|
|
8061
|
+
* device actually does is the D62 shape — a control nobody can predict.
|
|
8051
8062
|
*/
|
|
8052
8063
|
var RecordingStorageModeSchema = _enum([
|
|
8053
8064
|
"off",
|
|
8054
8065
|
"events",
|
|
8055
|
-
"continuous"
|
|
8066
|
+
"continuous",
|
|
8067
|
+
"on-device-decision"
|
|
8056
8068
|
]);
|
|
8057
8069
|
/**
|
|
8058
8070
|
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
@@ -8102,22 +8114,7 @@ var RecordingTriggersSchema = object({
|
|
|
8102
8114
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
8103
8115
|
* registrare.
|
|
8104
8116
|
*/
|
|
8105
|
-
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
8106
|
-
/**
|
|
8107
|
-
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
8108
|
-
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
8109
|
-
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
8110
|
-
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
8111
|
-
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
8112
|
-
*
|
|
8113
|
-
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
8114
|
-
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
8115
|
-
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
8116
|
-
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
8117
|
-
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
8118
|
-
* (`holdTrigger` / `releaseTrigger`).
|
|
8119
|
-
*/
|
|
8120
|
-
deviceSignal: boolean().optional()
|
|
8117
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
8121
8118
|
});
|
|
8122
8119
|
/**
|
|
8123
8120
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8201,8 +8198,29 @@ var RecordingConfigSchema = object({
|
|
|
8201
8198
|
* "off" is the absence of a covering band, never a band value.
|
|
8202
8199
|
*/
|
|
8203
8200
|
bands: array(RecordingBandSchema).default([]),
|
|
8201
|
+
/**
|
|
8202
|
+
* THE device-decided intent: record for as long as the camera itself raises
|
|
8203
|
+
* `recording-signal` (`active: true` while the device is in function — a
|
|
8204
|
+
* robot that cleans). AUTHORED, unlike `mode`, and the only authored
|
|
8205
|
+
* recording intent that is not a band.
|
|
8206
|
+
*
|
|
8207
|
+
* It carries NO schedule on purpose. A band is an HOUR, and this feature has
|
|
8208
|
+
* no hour to program: the device decides. What it costs the operator is one
|
|
8209
|
+
* flag — "this camera can record on its own" — and what it buys is the same
|
|
8210
|
+
* hold/release the recorder already implements (D371, `holdTrigger` /
|
|
8211
|
+
* `releaseTrigger`): the window opens on the rise, stays open for the whole
|
|
8212
|
+
* job however long it is, and closes one pad after the fall.
|
|
8213
|
+
*
|
|
8214
|
+
* EXCLUSIVE with `bands` (below): two authorities deciding when the same
|
|
8215
|
+
* camera records is the D62 failure. `off` remains `enabled: false`, so an
|
|
8216
|
+
* operator switching this camera off is REPORTED off, never as broken.
|
|
8217
|
+
*/
|
|
8218
|
+
deviceDecision: boolean().optional(),
|
|
8204
8219
|
retention: RecordingRetentionSchema.optional()
|
|
8205
|
-
}).strict()
|
|
8220
|
+
}).strict().refine((config) => config.deviceDecision !== true || config.bands.length === 0, {
|
|
8221
|
+
message: "deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands",
|
|
8222
|
+
path: ["bands"]
|
|
8223
|
+
});
|
|
8206
8224
|
/**
|
|
8207
8225
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
8208
8226
|
*
|
|
@@ -20939,11 +20957,7 @@ var CameraAudioStatusSchema = object({
|
|
|
20939
20957
|
});
|
|
20940
20958
|
/** Recording block — null when no recording cap is active for this device. */
|
|
20941
20959
|
var CameraRecordingStatusSchema = object({
|
|
20942
|
-
mode:
|
|
20943
|
-
"off",
|
|
20944
|
-
"continuous",
|
|
20945
|
-
"events"
|
|
20946
|
-
]),
|
|
20960
|
+
mode: RecordingStorageModeSchema,
|
|
20947
20961
|
active: boolean(),
|
|
20948
20962
|
storageBytes: number()
|
|
20949
20963
|
});
|
|
@@ -27361,11 +27375,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
27361
27375
|
var RecordingStatusSchema = object({
|
|
27362
27376
|
deviceId: number(),
|
|
27363
27377
|
enabled: boolean(),
|
|
27364
|
-
|
|
27365
|
-
|
|
27366
|
-
|
|
27367
|
-
|
|
27368
|
-
]),
|
|
27378
|
+
/** THE derived storage mode, from the one definition
|
|
27379
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
27380
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
27381
|
+
activeMode: RecordingStorageModeSchema,
|
|
27369
27382
|
nodeId: string(),
|
|
27370
27383
|
storageBytes: number()
|
|
27371
27384
|
});
|
|
@@ -8038,17 +8038,29 @@ var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
|
8038
8038
|
/**
|
|
8039
8039
|
* DERIVED per-camera storage summary — the single field cheap consumers read
|
|
8040
8040
|
* (the viewer's status dot, the camera list) instead of walking `bands`:
|
|
8041
|
-
* - `off`
|
|
8042
|
-
* - `events`
|
|
8043
|
-
* - `continuous`
|
|
8044
|
-
*
|
|
8045
|
-
*
|
|
8046
|
-
*
|
|
8041
|
+
* - `off` — no band covers the camera (or it is disabled).
|
|
8042
|
+
* - `events` — every band records around triggers only.
|
|
8043
|
+
* - `continuous` — at least one band records continuously.
|
|
8044
|
+
* - `on-device-decision`— the DEVICE decides: recording runs for as long as the
|
|
8045
|
+
* camera raises its own `recording-signal` level (a robot that cleans). There
|
|
8046
|
+
* is no schedule to author, because there is no hour to program — see
|
|
8047
|
+
* {@link RecordingConfigSchema}`.deviceDecision`.
|
|
8048
|
+
*
|
|
8049
|
+
* NEVER authored: the recorder stamps it from the authoritative intent
|
|
8050
|
+
* (`bands` + `deviceDecision`) on every save (`activeModeForConfig`). Writing it
|
|
8051
|
+
* has no effect.
|
|
8052
|
+
*
|
|
8053
|
+
* `on-device-decision` is named for WHO decides, not for how the recording is
|
|
8054
|
+
* requested. `on-demand` was rejected: in this repo's vocabulary a "demand" is
|
|
8055
|
+
* something the operator makes (the live gate is the recorder's own "demand
|
|
8056
|
+
* window"), and a knob whose name suggests the operator starts it while the
|
|
8057
|
+
* device actually does is the D62 shape — a control nobody can predict.
|
|
8047
8058
|
*/
|
|
8048
8059
|
var RecordingStorageModeSchema = _enum([
|
|
8049
8060
|
"off",
|
|
8050
8061
|
"events",
|
|
8051
|
-
"continuous"
|
|
8062
|
+
"continuous",
|
|
8063
|
+
"on-device-decision"
|
|
8052
8064
|
]);
|
|
8053
8065
|
/**
|
|
8054
8066
|
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
@@ -8098,22 +8110,7 @@ var RecordingTriggersSchema = object({
|
|
|
8098
8110
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
8099
8111
|
* registrare.
|
|
8100
8112
|
*/
|
|
8101
|
-
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
8102
|
-
/**
|
|
8103
|
-
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
8104
|
-
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
8105
|
-
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
8106
|
-
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
8107
|
-
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
8108
|
-
*
|
|
8109
|
-
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
8110
|
-
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
8111
|
-
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
8112
|
-
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
8113
|
-
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
8114
|
-
* (`holdTrigger` / `releaseTrigger`).
|
|
8115
|
-
*/
|
|
8116
|
-
deviceSignal: boolean().optional()
|
|
8113
|
+
sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
8117
8114
|
});
|
|
8118
8115
|
/**
|
|
8119
8116
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -8197,8 +8194,29 @@ var RecordingConfigSchema = object({
|
|
|
8197
8194
|
* "off" is the absence of a covering band, never a band value.
|
|
8198
8195
|
*/
|
|
8199
8196
|
bands: array(RecordingBandSchema).default([]),
|
|
8197
|
+
/**
|
|
8198
|
+
* THE device-decided intent: record for as long as the camera itself raises
|
|
8199
|
+
* `recording-signal` (`active: true` while the device is in function — a
|
|
8200
|
+
* robot that cleans). AUTHORED, unlike `mode`, and the only authored
|
|
8201
|
+
* recording intent that is not a band.
|
|
8202
|
+
*
|
|
8203
|
+
* It carries NO schedule on purpose. A band is an HOUR, and this feature has
|
|
8204
|
+
* no hour to program: the device decides. What it costs the operator is one
|
|
8205
|
+
* flag — "this camera can record on its own" — and what it buys is the same
|
|
8206
|
+
* hold/release the recorder already implements (D371, `holdTrigger` /
|
|
8207
|
+
* `releaseTrigger`): the window opens on the rise, stays open for the whole
|
|
8208
|
+
* job however long it is, and closes one pad after the fall.
|
|
8209
|
+
*
|
|
8210
|
+
* EXCLUSIVE with `bands` (below): two authorities deciding when the same
|
|
8211
|
+
* camera records is the D62 failure. `off` remains `enabled: false`, so an
|
|
8212
|
+
* operator switching this camera off is REPORTED off, never as broken.
|
|
8213
|
+
*/
|
|
8214
|
+
deviceDecision: boolean().optional(),
|
|
8200
8215
|
retention: RecordingRetentionSchema.optional()
|
|
8201
|
-
}).strict()
|
|
8216
|
+
}).strict().refine((config) => config.deviceDecision !== true || config.bands.length === 0, {
|
|
8217
|
+
message: "deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands",
|
|
8218
|
+
path: ["bands"]
|
|
8219
|
+
});
|
|
8202
8220
|
/**
|
|
8203
8221
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
8204
8222
|
*
|
|
@@ -20935,11 +20953,7 @@ var CameraAudioStatusSchema = object({
|
|
|
20935
20953
|
});
|
|
20936
20954
|
/** Recording block — null when no recording cap is active for this device. */
|
|
20937
20955
|
var CameraRecordingStatusSchema = object({
|
|
20938
|
-
mode:
|
|
20939
|
-
"off",
|
|
20940
|
-
"continuous",
|
|
20941
|
-
"events"
|
|
20942
|
-
]),
|
|
20956
|
+
mode: RecordingStorageModeSchema,
|
|
20943
20957
|
active: boolean(),
|
|
20944
20958
|
storageBytes: number()
|
|
20945
20959
|
});
|
|
@@ -27357,11 +27371,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
27357
27371
|
var RecordingStatusSchema = object({
|
|
27358
27372
|
deviceId: number(),
|
|
27359
27373
|
enabled: boolean(),
|
|
27360
|
-
|
|
27361
|
-
|
|
27362
|
-
|
|
27363
|
-
|
|
27364
|
-
]),
|
|
27374
|
+
/** THE derived storage mode, from the one definition
|
|
27375
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
27376
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
27377
|
+
activeMode: RecordingStorageModeSchema,
|
|
27365
27378
|
nodeId: string(),
|
|
27366
27379
|
storageBytes: number()
|
|
27367
27380
|
});
|
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.40",
|
|
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",
|