@camstack/addon-provider-tuya 0.2.22 → 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 +29 -3
- package/dist/addon.mjs +29 -3
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -27097,9 +27097,21 @@ var RecordingLocationUsageSchema = object({
|
|
|
27097
27097
|
* previously rendered as two identical "disks" with a nonsensical used
|
|
27098
27098
|
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
27099
27099
|
locationIds: array(string()).optional(),
|
|
27100
|
-
/**
|
|
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`. */
|
|
27101
27112
|
usedBytes: number(),
|
|
27102
|
-
/** 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). */
|
|
27103
27115
|
availableBytes: number().nullable(),
|
|
27104
27116
|
/** Total bytes of the location's volume; null when unknown. */
|
|
27105
27117
|
totalBytes: number().nullable()
|
|
@@ -27111,7 +27123,15 @@ var RecordingStorageUsageSchema = object({
|
|
|
27111
27123
|
nodeId: string(),
|
|
27112
27124
|
totalUsedBytes: number(),
|
|
27113
27125
|
devices: array(RecordingDeviceUsageSchema),
|
|
27114
|
-
|
|
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()
|
|
27115
27135
|
});
|
|
27116
27136
|
/**
|
|
27117
27137
|
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
@@ -37896,8 +37916,14 @@ Object.freeze({
|
|
|
37896
37916
|
"network-access": "ingress",
|
|
37897
37917
|
"smtp-provider": "email"
|
|
37898
37918
|
});
|
|
37919
|
+
/** Schema defaults — an untouched sub-field must author exactly these. */
|
|
37920
|
+
var NC_AUDIO_DEFAULTS = {
|
|
37921
|
+
hitPercent: 60,
|
|
37922
|
+
samplingSeconds: 10
|
|
37923
|
+
};
|
|
37899
37924
|
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
37900
37925
|
new Set(["devices", "classes"]);
|
|
37926
|
+
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
37901
37927
|
/**
|
|
37902
37928
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
37903
37929
|
*
|
package/dist/addon.mjs
CHANGED
|
@@ -27096,9 +27096,21 @@ var RecordingLocationUsageSchema = object({
|
|
|
27096
27096
|
* previously rendered as two identical "disks" with a nonsensical used
|
|
27097
27097
|
* split — hydrate attribution across aliases is arbitrary by nature. */
|
|
27098
27098
|
locationIds: array(string()).optional(),
|
|
27099
|
-
/**
|
|
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`. */
|
|
27100
27111
|
usedBytes: number(),
|
|
27101
|
-
/** 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). */
|
|
27102
27114
|
availableBytes: number().nullable(),
|
|
27103
27115
|
/** Total bytes of the location's volume; null when unknown. */
|
|
27104
27116
|
totalBytes: number().nullable()
|
|
@@ -27110,7 +27122,15 @@ var RecordingStorageUsageSchema = object({
|
|
|
27110
27122
|
nodeId: string(),
|
|
27111
27123
|
totalUsedBytes: number(),
|
|
27112
27124
|
devices: array(RecordingDeviceUsageSchema),
|
|
27113
|
-
|
|
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()
|
|
27114
27134
|
});
|
|
27115
27135
|
/**
|
|
27116
27136
|
* The OPERATOR-ARMED half of multi-location recordings (D116).
|
|
@@ -37895,8 +37915,14 @@ Object.freeze({
|
|
|
37895
37915
|
"network-access": "ingress",
|
|
37896
37916
|
"smtp-provider": "email"
|
|
37897
37917
|
});
|
|
37918
|
+
/** Schema defaults — an untouched sub-field must author exactly these. */
|
|
37919
|
+
var NC_AUDIO_DEFAULTS = {
|
|
37920
|
+
hitPercent: 60,
|
|
37921
|
+
samplingSeconds: 10
|
|
37922
|
+
};
|
|
37898
37923
|
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
37899
37924
|
new Set(["devices", "classes"]);
|
|
37925
|
+
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
37900
37926
|
/**
|
|
37901
37927
|
* TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
|
|
37902
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",
|