@camstack/addon-provider-tuya 0.2.21 → 0.2.23
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 +37 -3
- package/dist/addon.mjs +37 -3
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -21059,6 +21059,14 @@ var ClipSchema = object({
|
|
|
21059
21059
|
endMs: number()
|
|
21060
21060
|
}),
|
|
21061
21061
|
/**
|
|
21062
|
+
* Distinct object classes attached to this visit (`person`, `car`, …),
|
|
21063
|
+
* dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
|
|
21064
|
+
* instead of the bare kind — "Object" tells the operator nothing a colour bar
|
|
21065
|
+
* did not. Absent (never empty) when the visit attached no classified object
|
|
21066
|
+
* event, so a motion/audio-only visit keeps its kind label.
|
|
21067
|
+
*/
|
|
21068
|
+
labels: array(string()).max(3).optional(),
|
|
21069
|
+
/**
|
|
21062
21070
|
* Lazy thumbnail URL, never inlined.
|
|
21063
21071
|
*
|
|
21064
21072
|
* Recording-derived clips (events-mode keep-window, and the prepared
|
|
@@ -27089,9 +27097,21 @@ var RecordingLocationUsageSchema = object({
|
|
|
27089
27097
|
* previously rendered as two identical "disks" with a nonsensical used
|
|
27090
27098
|
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
27091
27099
|
locationIds: array(string()).optional(),
|
|
27092
|
-
/**
|
|
27100
|
+
/**
|
|
27101
|
+
* Filesystem root of the physical volume this row accounts — the only
|
|
27102
|
+
* operator-legible identity when a location has no `displayName` yet, and
|
|
27103
|
+
* what a "which disk is full" alert has to name. OPTIONAL for the same
|
|
27104
|
+
* train-skew reason as `oldestMs`: a recorder that predates the field omits
|
|
27105
|
+
* it, and this schema must keep validating that older provider's payload.
|
|
27106
|
+
*/
|
|
27107
|
+
root: string().optional(),
|
|
27108
|
+
/** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
|
|
27109
|
+
* the footage's SHARE of the volume, not how full the volume is — the disk
|
|
27110
|
+
* also holds everything that is not recordings. Volume fill is
|
|
27111
|
+
* `(totalBytes - availableBytes) / totalBytes`. */
|
|
27093
27112
|
usedBytes: number(),
|
|
27094
|
-
/** Free bytes on the location's volume; null when capacity is unknown
|
|
27113
|
+
/** Free bytes on the location's volume; null when capacity is unknown
|
|
27114
|
+
* (remote/unstattable — the recorder logs the statfs failure with the root). */
|
|
27095
27115
|
availableBytes: number().nullable(),
|
|
27096
27116
|
/** Total bytes of the location's volume; null when unknown. */
|
|
27097
27117
|
totalBytes: number().nullable()
|
|
@@ -27103,7 +27123,15 @@ var RecordingStorageUsageSchema = object({
|
|
|
27103
27123
|
nodeId: string(),
|
|
27104
27124
|
totalUsedBytes: number(),
|
|
27105
27125
|
devices: array(RecordingDeviceUsageSchema),
|
|
27106
|
-
|
|
27126
|
+
/**
|
|
27127
|
+
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
27128
|
+
* of the payload without it: the hub serves this method through a BAKED
|
|
27129
|
+
* router, so a hub whose framework train predates a change to this array
|
|
27130
|
+
* strips it out of an answer a newer recorder happily produced. A UI that
|
|
27131
|
+
* dereferences it unconditionally crashes the whole Storage page over a
|
|
27132
|
+
* missing disk bar.
|
|
27133
|
+
*/
|
|
27134
|
+
locations: array(RecordingLocationUsageSchema).optional()
|
|
27107
27135
|
});
|
|
27108
27136
|
/**
|
|
27109
27137
|
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
@@ -37888,8 +37916,14 @@ Object.freeze({
|
|
|
37888
37916
|
"network-access": "ingress",
|
|
37889
37917
|
"smtp-provider": "email"
|
|
37890
37918
|
});
|
|
37919
|
+
/** Schema defaults — an untouched sub-field must author exactly these. */
|
|
37920
|
+
var NC_AUDIO_DEFAULTS = {
|
|
37921
|
+
hitPercent: 60,
|
|
37922
|
+
samplingSeconds: 10
|
|
37923
|
+
};
|
|
37891
37924
|
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
37892
37925
|
new Set(["devices", "classes"]);
|
|
37926
|
+
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
37893
37927
|
/**
|
|
37894
37928
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
37895
37929
|
*
|
package/dist/addon.mjs
CHANGED
|
@@ -21058,6 +21058,14 @@ var ClipSchema = object({
|
|
|
21058
21058
|
endMs: number()
|
|
21059
21059
|
}),
|
|
21060
21060
|
/**
|
|
21061
|
+
* Distinct object classes attached to this visit (`person`, `car`, …),
|
|
21062
|
+
* dominant first, capped at {@link MAX_CLIP_LABELS}. The ribbon renders these
|
|
21063
|
+
* instead of the bare kind — "Object" tells the operator nothing a colour bar
|
|
21064
|
+
* did not. Absent (never empty) when the visit attached no classified object
|
|
21065
|
+
* event, so a motion/audio-only visit keeps its kind label.
|
|
21066
|
+
*/
|
|
21067
|
+
labels: array(string()).max(3).optional(),
|
|
21068
|
+
/**
|
|
21061
21069
|
* Lazy thumbnail URL, never inlined.
|
|
21062
21070
|
*
|
|
21063
21071
|
* Recording-derived clips (events-mode keep-window, and the prepared
|
|
@@ -27088,9 +27096,21 @@ var RecordingLocationUsageSchema = object({
|
|
|
27088
27096
|
* previously rendered as two identical "disks" with a nonsensical used
|
|
27089
27097
|
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
27090
27098
|
locationIds: array(string()).optional(),
|
|
27091
|
-
/**
|
|
27099
|
+
/**
|
|
27100
|
+
* Filesystem root of the physical volume this row accounts — the only
|
|
27101
|
+
* operator-legible identity when a location has no `displayName` yet, and
|
|
27102
|
+
* what a "which disk is full" alert has to name. OPTIONAL for the same
|
|
27103
|
+
* train-skew reason as `oldestMs`: a recorder that predates the field omits
|
|
27104
|
+
* it, and this schema must keep validating that older provider's payload.
|
|
27105
|
+
*/
|
|
27106
|
+
root: string().optional(),
|
|
27107
|
+
/** Bytes of recordings stored on this PHYSICAL volume (all aliases). This is
|
|
27108
|
+
* the footage's SHARE of the volume, not how full the volume is — the disk
|
|
27109
|
+
* also holds everything that is not recordings. Volume fill is
|
|
27110
|
+
* `(totalBytes - availableBytes) / totalBytes`. */
|
|
27092
27111
|
usedBytes: number(),
|
|
27093
|
-
/** Free bytes on the location's volume; null when capacity is unknown
|
|
27112
|
+
/** Free bytes on the location's volume; null when capacity is unknown
|
|
27113
|
+
* (remote/unstattable — the recorder logs the statfs failure with the root). */
|
|
27094
27114
|
availableBytes: number().nullable(),
|
|
27095
27115
|
/** Total bytes of the location's volume; null when unknown. */
|
|
27096
27116
|
totalBytes: number().nullable()
|
|
@@ -27102,7 +27122,15 @@ var RecordingStorageUsageSchema = object({
|
|
|
27102
27122
|
nodeId: string(),
|
|
27103
27123
|
totalUsedBytes: number(),
|
|
27104
27124
|
devices: array(RecordingDeviceUsageSchema),
|
|
27105
|
-
|
|
27125
|
+
/**
|
|
27126
|
+
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
27127
|
+
* of the payload without it: the hub serves this method through a BAKED
|
|
27128
|
+
* router, so a hub whose framework train predates a change to this array
|
|
27129
|
+
* strips it out of an answer a newer recorder happily produced. A UI that
|
|
27130
|
+
* dereferences it unconditionally crashes the whole Storage page over a
|
|
27131
|
+
* missing disk bar.
|
|
27132
|
+
*/
|
|
27133
|
+
locations: array(RecordingLocationUsageSchema).optional()
|
|
27106
27134
|
});
|
|
27107
27135
|
/**
|
|
27108
27136
|
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
@@ -37887,8 +37915,14 @@ Object.freeze({
|
|
|
37887
37915
|
"network-access": "ingress",
|
|
37888
37916
|
"smtp-provider": "email"
|
|
37889
37917
|
});
|
|
37918
|
+
/** Schema defaults — an untouched sub-field must author exactly these. */
|
|
37919
|
+
var NC_AUDIO_DEFAULTS = {
|
|
37920
|
+
hitPercent: 60,
|
|
37921
|
+
samplingSeconds: 10
|
|
37922
|
+
};
|
|
37890
37923
|
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
37891
37924
|
new Set(["devices", "classes"]);
|
|
37925
|
+
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
37892
37926
|
/**
|
|
37893
37927
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
37894
37928
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-tuya",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.23",
|
|
4
4
|
"description": "Tuya / Smart Life device-provider addon for CamStack — account-onboarded (Tuya IoT cloud fetch of device localKeys) + LOCAL DP control via the @apocaliss92/nodetuya encrypted-LAN client, exposing switch / water-heater-family kettle entities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|