@camstack/addon-pipeline-orchestrator 1.2.649 → 1.2.650
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/CHANGELOG.md +6 -0
- package/assets/viewer/.viewer-current-files.json +7 -7
- package/assets/viewer/.viewer-version +1 -1
- package/assets/viewer/_expo/static/js/web/{__common-396a28fba01e63198d4b72ed0d396bf8.js → __common-16000799f8aad8ffaf256c75b9afa645.js} +9 -9
- package/assets/viewer/_expo/static/js/web/{index-6f6ec76806f5c3e4ce2a9d3631dc15e9.js → index-eef76af4fa2e05a2ae699c3f1f8d633c.js} +1 -1
- package/assets/viewer/embed/assets/{MaskShapeCanvas-DI4BY7W2-Ynd3aORn.js → MaskShapeCanvas-DI4BY7W2-5oIY0ML7.js} +1 -1
- package/assets/viewer/embed/assets/{MotionZonesSettings-CiYjd-yl-ClMugBhH.js → MotionZonesSettings-CiYjd-yl-Ci-psSGC.js} +1 -1
- package/assets/viewer/embed/assets/{PrivacyMaskSettings-BmRdUrPp-BiD-lO_U.js → PrivacyMaskSettings-BmRdUrPp-CNeAIBZS.js} +1 -1
- package/assets/viewer/embed/assets/{SceneMonitorEditor-J4Ix_0tu-DX44hA2s.js → SceneMonitorEditor-J4Ix_0tu-CG7NFKIR.js} +1 -1
- package/assets/viewer/embed/assets/index-BwKOd5DV.js +117 -0
- package/assets/viewer/embed/index.html +1 -1
- package/assets/viewer/index.html +1 -1
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-C8ctG0w0.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-dKFxKTAX.mjs} +2 -2
- package/dist/{hostInit-CC_LpSaw.mjs → hostInit-O4OLEIvG.mjs} +2 -2
- package/dist/index.js +78 -54
- package/dist/index.mjs +78 -54
- package/dist/remoteEntry.js +1 -1
- package/package.json +2 -2
- package/assets/viewer/embed/assets/index-CPkL3Y4i.js +0 -117
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
6
|
<title>CamStack Embed</title>
|
|
7
|
-
<script type="module" crossorigin src="./assets/index-
|
|
7
|
+
<script type="module" crossorigin src="./assets/index-BwKOd5DV.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="./assets/index-D2D9lRvB.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
package/assets/viewer/index.html
CHANGED
|
@@ -77,6 +77,6 @@
|
|
|
77
77
|
</noscript>
|
|
78
78
|
<!-- The root element for your Expo app. -->
|
|
79
79
|
<div id="root"></div>
|
|
80
|
-
<script src="/viewer/camstack/_expo/static/js/web/__expo-metro-runtime-1f8f5d3ca6b7f58204d51e14506d73fb.js" defer></script><script src="/viewer/camstack/_expo/static/js/web/__common-
|
|
80
|
+
<script src="/viewer/camstack/_expo/static/js/web/__expo-metro-runtime-1f8f5d3ca6b7f58204d51e14506d73fb.js" defer></script><script src="/viewer/camstack/_expo/static/js/web/__common-16000799f8aad8ffaf256c75b9afa645.js" defer></script><script src="/viewer/camstack/_expo/static/js/web/index-eef76af4fa2e05a2ae699c3f1f8d633c.js" defer></script>
|
|
81
81
|
</body>
|
|
82
82
|
</html>
|
|
@@ -18,7 +18,7 @@ var e = {
|
|
|
18
18
|
},
|
|
19
19
|
"@camstack/types": {
|
|
20
20
|
name: "@camstack/types",
|
|
21
|
-
version: "1.2.
|
|
21
|
+
version: "1.2.466",
|
|
22
22
|
scope: ["default"],
|
|
23
23
|
loaded: !1,
|
|
24
24
|
from: "addon_pipeline_orchestrator_widgets",
|
|
@@ -33,7 +33,7 @@ var e = {
|
|
|
33
33
|
},
|
|
34
34
|
"@camstack/ui-library": {
|
|
35
35
|
name: "@camstack/ui-library",
|
|
36
|
-
version: "1.2.
|
|
36
|
+
version: "1.2.366",
|
|
37
37
|
scope: ["default"],
|
|
38
38
|
loaded: !1,
|
|
39
39
|
from: "addon_pipeline_orchestrator_widgets",
|
|
@@ -36,7 +36,7 @@ async function r() {
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"@camstack/types": {
|
|
39
|
-
version: "1.2.
|
|
39
|
+
version: "1.2.466",
|
|
40
40
|
scope: "default",
|
|
41
41
|
shareConfig: {
|
|
42
42
|
singleton: !0,
|
|
@@ -99,7 +99,7 @@ async function r() {
|
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
"@camstack/ui-library": {
|
|
102
|
-
version: "1.2.
|
|
102
|
+
version: "1.2.366",
|
|
103
103
|
scope: "default",
|
|
104
104
|
shareConfig: {
|
|
105
105
|
singleton: !0,
|
package/dist/index.js
CHANGED
|
@@ -12168,7 +12168,7 @@ function sleep(ms) {
|
|
|
12168
12168
|
return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
|
|
12169
12169
|
}
|
|
12170
12170
|
//#endregion
|
|
12171
|
-
//#region ../types/dist/composition-
|
|
12171
|
+
//#region ../types/dist/composition-BiKWlUCc.mjs
|
|
12172
12172
|
/**
|
|
12173
12173
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
12174
12174
|
*
|
|
@@ -13230,7 +13230,15 @@ var HelperSpecSchema = discriminatedUnion("kind", [
|
|
|
13230
13230
|
thresholdWatts: number().positive(),
|
|
13231
13231
|
startDwellMs: number().int().nonnegative(),
|
|
13232
13232
|
stopDwellMs: number().int().nonnegative(),
|
|
13233
|
-
member: HelperMemberSchema
|
|
13233
|
+
member: HelperMemberSchema,
|
|
13234
|
+
/**
|
|
13235
|
+
* The plug that powers the appliance (`switch.on`). Optional: when set, the
|
|
13236
|
+
* composition carries a `power-source` feature, so the hub can cut and restore
|
|
13237
|
+
* that plug (power-source link of a NEW-target composition).
|
|
13238
|
+
*/
|
|
13239
|
+
powerSwitch: HelperMemberSchema.optional(),
|
|
13240
|
+
/** How long a forced restart keeps the plug off; the cap's default when unset. */
|
|
13241
|
+
offSeconds: number().optional()
|
|
13234
13242
|
}),
|
|
13235
13243
|
object({
|
|
13236
13244
|
kind: literal("statistic"),
|
|
@@ -47259,6 +47267,49 @@ function actuator(input) {
|
|
|
47259
47267
|
};
|
|
47260
47268
|
}
|
|
47261
47269
|
new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
|
|
47270
|
+
var PowerSourceRefusalReasonSchema = _enum([
|
|
47271
|
+
"no-power-source",
|
|
47272
|
+
"switch-missing",
|
|
47273
|
+
"switch-offline",
|
|
47274
|
+
"switch-unknown",
|
|
47275
|
+
"restart-in-progress",
|
|
47276
|
+
"switch-call-failed"
|
|
47277
|
+
]);
|
|
47278
|
+
var PowerSourceActionResultSchema = discriminatedUnion("accepted", [object({ accepted: literal(true) }), object({
|
|
47279
|
+
accepted: literal(false),
|
|
47280
|
+
reason: PowerSourceRefusalReasonSchema,
|
|
47281
|
+
/** One line for the operator, naming the switch. */
|
|
47282
|
+
message: string()
|
|
47283
|
+
})]);
|
|
47284
|
+
var PowerSourceInfoSchema = object({
|
|
47285
|
+
/** False when the device has no power source linked; the rest is then empty. */
|
|
47286
|
+
linked: boolean(),
|
|
47287
|
+
switchDeviceId: number().nullable(),
|
|
47288
|
+
switchName: string().nullable(),
|
|
47289
|
+
/** The switch's on/off state, or null when it is unknown. Never false for unknown (D393). */
|
|
47290
|
+
switchOn: boolean().nullable(),
|
|
47291
|
+
switchOnline: boolean().nullable(),
|
|
47292
|
+
restartInProgress: boolean(),
|
|
47293
|
+
offSeconds: number().int()
|
|
47294
|
+
});
|
|
47295
|
+
object({
|
|
47296
|
+
/** Null while the switch has not reported: unknown is never `false` (D393). */
|
|
47297
|
+
switchOn: boolean().nullable(),
|
|
47298
|
+
offSeconds: number().int(),
|
|
47299
|
+
lastFetchedAt: number()
|
|
47300
|
+
});
|
|
47301
|
+
DeviceType.Gateway, DeviceType.Hub, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater;
|
|
47302
|
+
var deviceInput$1 = object({ deviceId: number().int().nonnegative() });
|
|
47303
|
+
systemMethod(deviceInput$1, PowerSourceInfoSchema, { auth: "admin" }), systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
47304
|
+
kind: "mutation",
|
|
47305
|
+
auth: "admin"
|
|
47306
|
+
}), systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
47307
|
+
kind: "mutation",
|
|
47308
|
+
auth: "admin"
|
|
47309
|
+
}), systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
47310
|
+
kind: "mutation",
|
|
47311
|
+
auth: "admin"
|
|
47312
|
+
});
|
|
47262
47313
|
DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
|
|
47263
47314
|
DeviceType.Camera;
|
|
47264
47315
|
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
@@ -53052,7 +53103,8 @@ var PALETTE_ENTRY_IDS = [
|
|
|
53052
53103
|
"switch",
|
|
53053
53104
|
"siren",
|
|
53054
53105
|
"button",
|
|
53055
|
-
"doorbell"
|
|
53106
|
+
"doorbell",
|
|
53107
|
+
"appliance-cycle"
|
|
53056
53108
|
];
|
|
53057
53109
|
var AUDIO_ENTRY_ID = "audio";
|
|
53058
53110
|
/** Six rungs, quiet → loud. The opaque end is the entry's hex. */
|
|
@@ -53224,7 +53276,8 @@ var CAMSTACK_HEX = {
|
|
|
53224
53276
|
switch: "#7a812a",
|
|
53225
53277
|
siren: "#ac5d7f",
|
|
53226
53278
|
button: "#b276cd",
|
|
53227
|
-
doorbell: "#0087ab"
|
|
53279
|
+
doorbell: "#0087ab",
|
|
53280
|
+
"appliance-cycle": "#2a8c8c"
|
|
53228
53281
|
};
|
|
53229
53282
|
var CAMSTACK_FALLBACK = [
|
|
53230
53283
|
"#b34dc7",
|
|
@@ -53289,7 +53342,8 @@ var HIGH_CONTRAST_HEX = {
|
|
|
53289
53342
|
switch: "#d05259",
|
|
53290
53343
|
siren: "#cd67b3",
|
|
53291
53344
|
button: "#c9746a",
|
|
53292
|
-
doorbell: "#338eeb"
|
|
53345
|
+
doorbell: "#338eeb",
|
|
53346
|
+
"appliance-cycle": "#00848a"
|
|
53293
53347
|
};
|
|
53294
53348
|
var HIGH_CONTRAST_FALLBACK = [
|
|
53295
53349
|
"#817f3b",
|
|
@@ -53354,7 +53408,8 @@ var OKABE_ITO_HEX = {
|
|
|
53354
53408
|
switch: "#ad2c4e",
|
|
53355
53409
|
siren: "#348e08",
|
|
53356
53410
|
button: "#d27303",
|
|
53357
|
-
doorbell: "#55770f"
|
|
53411
|
+
doorbell: "#55770f",
|
|
53412
|
+
"appliance-cycle": "#00737d"
|
|
53358
53413
|
};
|
|
53359
53414
|
var OKABE_ITO_FALLBACK = [
|
|
53360
53415
|
"#9a3784",
|
|
@@ -53730,6 +53785,7 @@ sub("switch", "control", "control", "switch", "Switch");
|
|
|
53730
53785
|
sub("siren", "control", "control", "siren", "Siren");
|
|
53731
53786
|
sub("button", "control", "control", "button", "Button");
|
|
53732
53787
|
sub("doorbell", "control", "control", "doorbell", "Doorbell");
|
|
53788
|
+
sub("appliance-cycle", "control", "control", "switch", "Appliance cycle");
|
|
53733
53789
|
for (const l of AUDIO_MACRO_LABELS) {
|
|
53734
53790
|
const kind = `audio-${l.id}`;
|
|
53735
53791
|
if (entries.has(kind)) continue;
|
|
@@ -63195,7 +63251,8 @@ var CAP_TO_KIND = {
|
|
|
63195
63251
|
cover: "cover",
|
|
63196
63252
|
switch: "switch",
|
|
63197
63253
|
button: "button",
|
|
63198
|
-
doorbell: "doorbell"
|
|
63254
|
+
doorbell: "doorbell",
|
|
63255
|
+
"running-state": "appliance-cycle"
|
|
63199
63256
|
};
|
|
63200
63257
|
function buildDescriptor(capName, kind) {
|
|
63201
63258
|
const t = EVENT_TAXONOMY[kind];
|
|
@@ -67144,19 +67201,19 @@ var RemoteSetConfigResultSchema = discriminatedUnion("status", [object({ status:
|
|
|
67144
67201
|
reason: _enum(["unknown-template", "not-a-media-player"]),
|
|
67145
67202
|
detail: string()
|
|
67146
67203
|
})]);
|
|
67147
|
-
var deviceInput
|
|
67204
|
+
var deviceInput = object({ deviceId: number().int().nonnegative() });
|
|
67148
67205
|
DeviceType.MediaPlayer;
|
|
67149
|
-
method(deviceInput
|
|
67206
|
+
method(deviceInput, RemoteConfigSchema, { auth: "admin" }), method(deviceInput.extend({ config: RemoteConfigSchema }), RemoteSetConfigResultSchema, {
|
|
67150
67207
|
kind: "mutation",
|
|
67151
67208
|
auth: "admin"
|
|
67152
|
-
}), method(deviceInput
|
|
67209
|
+
}), method(deviceInput, RemoteCommandListSchema, { auth: "protected" }), method(deviceInput.extend({
|
|
67153
67210
|
role: RemoteRoleSchema,
|
|
67154
67211
|
/** Sends in a row (volume steps). */
|
|
67155
67212
|
repeat: number().int().min(1).max(50).default(1)
|
|
67156
67213
|
}), RemoteSendResultSchema, {
|
|
67157
67214
|
kind: "mutation",
|
|
67158
67215
|
auth: "protected"
|
|
67159
|
-
}), method(deviceInput
|
|
67216
|
+
}), method(deviceInput.extend({
|
|
67160
67217
|
command: RemoteMediaCommandSchema,
|
|
67161
67218
|
muted: boolean().optional(),
|
|
67162
67219
|
source: string().optional(),
|
|
@@ -70077,49 +70134,6 @@ DeviceType.Lock, method(object({
|
|
|
70077
70134
|
kind: "mutation",
|
|
70078
70135
|
auth: "protected"
|
|
70079
70136
|
});
|
|
70080
|
-
var PowerSourceRefusalReasonSchema = _enum([
|
|
70081
|
-
"no-power-source",
|
|
70082
|
-
"switch-missing",
|
|
70083
|
-
"switch-offline",
|
|
70084
|
-
"switch-unknown",
|
|
70085
|
-
"restart-in-progress",
|
|
70086
|
-
"switch-call-failed"
|
|
70087
|
-
]);
|
|
70088
|
-
var PowerSourceActionResultSchema = discriminatedUnion("accepted", [object({ accepted: literal(true) }), object({
|
|
70089
|
-
accepted: literal(false),
|
|
70090
|
-
reason: PowerSourceRefusalReasonSchema,
|
|
70091
|
-
/** One line for the operator, naming the switch. */
|
|
70092
|
-
message: string()
|
|
70093
|
-
})]);
|
|
70094
|
-
var PowerSourceInfoSchema = object({
|
|
70095
|
-
/** False when the device has no power source linked; the rest is then empty. */
|
|
70096
|
-
linked: boolean(),
|
|
70097
|
-
switchDeviceId: number().nullable(),
|
|
70098
|
-
switchName: string().nullable(),
|
|
70099
|
-
/** The switch's on/off state, or null when it is unknown. Never false for unknown (D393). */
|
|
70100
|
-
switchOn: boolean().nullable(),
|
|
70101
|
-
switchOnline: boolean().nullable(),
|
|
70102
|
-
restartInProgress: boolean(),
|
|
70103
|
-
offSeconds: number().int()
|
|
70104
|
-
});
|
|
70105
|
-
object({
|
|
70106
|
-
/** Null while the switch has not reported: unknown is never `false` (D393). */
|
|
70107
|
-
switchOn: boolean().nullable(),
|
|
70108
|
-
offSeconds: number().int(),
|
|
70109
|
-
lastFetchedAt: number()
|
|
70110
|
-
});
|
|
70111
|
-
DeviceType.Gateway, DeviceType.Hub, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater;
|
|
70112
|
-
var deviceInput = object({ deviceId: number().int().nonnegative() });
|
|
70113
|
-
systemMethod(deviceInput, PowerSourceInfoSchema, { auth: "admin" }), systemMethod(deviceInput, PowerSourceActionResultSchema, {
|
|
70114
|
-
kind: "mutation",
|
|
70115
|
-
auth: "admin"
|
|
70116
|
-
}), systemMethod(deviceInput, PowerSourceActionResultSchema, {
|
|
70117
|
-
kind: "mutation",
|
|
70118
|
-
auth: "admin"
|
|
70119
|
-
}), systemMethod(deviceInput, PowerSourceActionResultSchema, {
|
|
70120
|
-
kind: "mutation",
|
|
70121
|
-
auth: "admin"
|
|
70122
|
-
});
|
|
70123
70137
|
object({
|
|
70124
70138
|
value: number().nullable().meta(readingMeta("device", { label: "Total" })),
|
|
70125
70139
|
lastFetchedAt: number()
|
|
@@ -91140,8 +91154,17 @@ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
|
91140
91154
|
*
|
|
91141
91155
|
* Pure, RN-safe: the viewer imports the support rule from here.
|
|
91142
91156
|
*/
|
|
91157
|
+
/**
|
|
91158
|
+
* Control caps that still have a raise and a clear an operator names: an
|
|
91159
|
+
* appliance cycle raises when it STARTS and clears when it FINISHES. Kept out
|
|
91160
|
+
* of `SOURCE_CAP_ACTIVE_FIELD` on purpose — that table also makes a device a
|
|
91161
|
+
* camera-sensor / recorder-trigger source, and a dishwasher is neither.
|
|
91162
|
+
*/
|
|
91163
|
+
var CYCLE_RAISED_FIELD_BY_CAP = { "running-state": "running" };
|
|
91143
91164
|
/** Event kind → the boolean field of its cap slice that means "raised". */
|
|
91144
91165
|
var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.entries(EVENT_KIND_BY_CAP).flatMap(([capName, descriptor]) => {
|
|
91166
|
+
const cycleField = CYCLE_RAISED_FIELD_BY_CAP[capName];
|
|
91167
|
+
if (cycleField !== void 0) return [[descriptor.kind, cycleField]];
|
|
91145
91168
|
const field = SOURCE_CAP_ACTIVE_FIELD[capName];
|
|
91146
91169
|
if (field === void 0 || descriptor.category !== "sensor") return [];
|
|
91147
91170
|
return [[descriptor.kind, field]];
|
|
@@ -91614,6 +91637,7 @@ new Set([
|
|
|
91614
91637
|
"siren",
|
|
91615
91638
|
"button",
|
|
91616
91639
|
"doorbell",
|
|
91640
|
+
"appliance-cycle",
|
|
91617
91641
|
"audio-speech",
|
|
91618
91642
|
"audio-scream",
|
|
91619
91643
|
"audio-crying",
|
package/dist/index.mjs
CHANGED
|
@@ -12140,7 +12140,7 @@ function sleep(ms) {
|
|
|
12140
12140
|
return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
|
|
12141
12141
|
}
|
|
12142
12142
|
//#endregion
|
|
12143
|
-
//#region ../types/dist/composition-
|
|
12143
|
+
//#region ../types/dist/composition-BiKWlUCc.mjs
|
|
12144
12144
|
/**
|
|
12145
12145
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
12146
12146
|
*
|
|
@@ -13202,7 +13202,15 @@ var HelperSpecSchema = discriminatedUnion("kind", [
|
|
|
13202
13202
|
thresholdWatts: number().positive(),
|
|
13203
13203
|
startDwellMs: number().int().nonnegative(),
|
|
13204
13204
|
stopDwellMs: number().int().nonnegative(),
|
|
13205
|
-
member: HelperMemberSchema
|
|
13205
|
+
member: HelperMemberSchema,
|
|
13206
|
+
/**
|
|
13207
|
+
* The plug that powers the appliance (`switch.on`). Optional: when set, the
|
|
13208
|
+
* composition carries a `power-source` feature, so the hub can cut and restore
|
|
13209
|
+
* that plug (power-source link of a NEW-target composition).
|
|
13210
|
+
*/
|
|
13211
|
+
powerSwitch: HelperMemberSchema.optional(),
|
|
13212
|
+
/** How long a forced restart keeps the plug off; the cap's default when unset. */
|
|
13213
|
+
offSeconds: number().optional()
|
|
13206
13214
|
}),
|
|
13207
13215
|
object({
|
|
13208
13216
|
kind: literal("statistic"),
|
|
@@ -47231,6 +47239,49 @@ function actuator(input) {
|
|
|
47231
47239
|
};
|
|
47232
47240
|
}
|
|
47233
47241
|
new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
|
|
47242
|
+
var PowerSourceRefusalReasonSchema = _enum([
|
|
47243
|
+
"no-power-source",
|
|
47244
|
+
"switch-missing",
|
|
47245
|
+
"switch-offline",
|
|
47246
|
+
"switch-unknown",
|
|
47247
|
+
"restart-in-progress",
|
|
47248
|
+
"switch-call-failed"
|
|
47249
|
+
]);
|
|
47250
|
+
var PowerSourceActionResultSchema = discriminatedUnion("accepted", [object({ accepted: literal(true) }), object({
|
|
47251
|
+
accepted: literal(false),
|
|
47252
|
+
reason: PowerSourceRefusalReasonSchema,
|
|
47253
|
+
/** One line for the operator, naming the switch. */
|
|
47254
|
+
message: string()
|
|
47255
|
+
})]);
|
|
47256
|
+
var PowerSourceInfoSchema = object({
|
|
47257
|
+
/** False when the device has no power source linked; the rest is then empty. */
|
|
47258
|
+
linked: boolean(),
|
|
47259
|
+
switchDeviceId: number().nullable(),
|
|
47260
|
+
switchName: string().nullable(),
|
|
47261
|
+
/** The switch's on/off state, or null when it is unknown. Never false for unknown (D393). */
|
|
47262
|
+
switchOn: boolean().nullable(),
|
|
47263
|
+
switchOnline: boolean().nullable(),
|
|
47264
|
+
restartInProgress: boolean(),
|
|
47265
|
+
offSeconds: number().int()
|
|
47266
|
+
});
|
|
47267
|
+
object({
|
|
47268
|
+
/** Null while the switch has not reported: unknown is never `false` (D393). */
|
|
47269
|
+
switchOn: boolean().nullable(),
|
|
47270
|
+
offSeconds: number().int(),
|
|
47271
|
+
lastFetchedAt: number()
|
|
47272
|
+
});
|
|
47273
|
+
DeviceType.Gateway, DeviceType.Hub, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater;
|
|
47274
|
+
var deviceInput$1 = object({ deviceId: number().int().nonnegative() });
|
|
47275
|
+
systemMethod(deviceInput$1, PowerSourceInfoSchema, { auth: "admin" }), systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
47276
|
+
kind: "mutation",
|
|
47277
|
+
auth: "admin"
|
|
47278
|
+
}), systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
47279
|
+
kind: "mutation",
|
|
47280
|
+
auth: "admin"
|
|
47281
|
+
}), systemMethod(deviceInput$1, PowerSourceActionResultSchema, {
|
|
47282
|
+
kind: "mutation",
|
|
47283
|
+
auth: "admin"
|
|
47284
|
+
});
|
|
47234
47285
|
DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
|
|
47235
47286
|
DeviceType.Camera;
|
|
47236
47287
|
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
@@ -53024,7 +53075,8 @@ var PALETTE_ENTRY_IDS = [
|
|
|
53024
53075
|
"switch",
|
|
53025
53076
|
"siren",
|
|
53026
53077
|
"button",
|
|
53027
|
-
"doorbell"
|
|
53078
|
+
"doorbell",
|
|
53079
|
+
"appliance-cycle"
|
|
53028
53080
|
];
|
|
53029
53081
|
var AUDIO_ENTRY_ID = "audio";
|
|
53030
53082
|
/** Six rungs, quiet → loud. The opaque end is the entry's hex. */
|
|
@@ -53196,7 +53248,8 @@ var CAMSTACK_HEX = {
|
|
|
53196
53248
|
switch: "#7a812a",
|
|
53197
53249
|
siren: "#ac5d7f",
|
|
53198
53250
|
button: "#b276cd",
|
|
53199
|
-
doorbell: "#0087ab"
|
|
53251
|
+
doorbell: "#0087ab",
|
|
53252
|
+
"appliance-cycle": "#2a8c8c"
|
|
53200
53253
|
};
|
|
53201
53254
|
var CAMSTACK_FALLBACK = [
|
|
53202
53255
|
"#b34dc7",
|
|
@@ -53261,7 +53314,8 @@ var HIGH_CONTRAST_HEX = {
|
|
|
53261
53314
|
switch: "#d05259",
|
|
53262
53315
|
siren: "#cd67b3",
|
|
53263
53316
|
button: "#c9746a",
|
|
53264
|
-
doorbell: "#338eeb"
|
|
53317
|
+
doorbell: "#338eeb",
|
|
53318
|
+
"appliance-cycle": "#00848a"
|
|
53265
53319
|
};
|
|
53266
53320
|
var HIGH_CONTRAST_FALLBACK = [
|
|
53267
53321
|
"#817f3b",
|
|
@@ -53326,7 +53380,8 @@ var OKABE_ITO_HEX = {
|
|
|
53326
53380
|
switch: "#ad2c4e",
|
|
53327
53381
|
siren: "#348e08",
|
|
53328
53382
|
button: "#d27303",
|
|
53329
|
-
doorbell: "#55770f"
|
|
53383
|
+
doorbell: "#55770f",
|
|
53384
|
+
"appliance-cycle": "#00737d"
|
|
53330
53385
|
};
|
|
53331
53386
|
var OKABE_ITO_FALLBACK = [
|
|
53332
53387
|
"#9a3784",
|
|
@@ -53702,6 +53757,7 @@ sub("switch", "control", "control", "switch", "Switch");
|
|
|
53702
53757
|
sub("siren", "control", "control", "siren", "Siren");
|
|
53703
53758
|
sub("button", "control", "control", "button", "Button");
|
|
53704
53759
|
sub("doorbell", "control", "control", "doorbell", "Doorbell");
|
|
53760
|
+
sub("appliance-cycle", "control", "control", "switch", "Appliance cycle");
|
|
53705
53761
|
for (const l of AUDIO_MACRO_LABELS) {
|
|
53706
53762
|
const kind = `audio-${l.id}`;
|
|
53707
53763
|
if (entries.has(kind)) continue;
|
|
@@ -63167,7 +63223,8 @@ var CAP_TO_KIND = {
|
|
|
63167
63223
|
cover: "cover",
|
|
63168
63224
|
switch: "switch",
|
|
63169
63225
|
button: "button",
|
|
63170
|
-
doorbell: "doorbell"
|
|
63226
|
+
doorbell: "doorbell",
|
|
63227
|
+
"running-state": "appliance-cycle"
|
|
63171
63228
|
};
|
|
63172
63229
|
function buildDescriptor(capName, kind) {
|
|
63173
63230
|
const t = EVENT_TAXONOMY[kind];
|
|
@@ -67116,19 +67173,19 @@ var RemoteSetConfigResultSchema = discriminatedUnion("status", [object({ status:
|
|
|
67116
67173
|
reason: _enum(["unknown-template", "not-a-media-player"]),
|
|
67117
67174
|
detail: string()
|
|
67118
67175
|
})]);
|
|
67119
|
-
var deviceInput
|
|
67176
|
+
var deviceInput = object({ deviceId: number().int().nonnegative() });
|
|
67120
67177
|
DeviceType.MediaPlayer;
|
|
67121
|
-
method(deviceInput
|
|
67178
|
+
method(deviceInput, RemoteConfigSchema, { auth: "admin" }), method(deviceInput.extend({ config: RemoteConfigSchema }), RemoteSetConfigResultSchema, {
|
|
67122
67179
|
kind: "mutation",
|
|
67123
67180
|
auth: "admin"
|
|
67124
|
-
}), method(deviceInput
|
|
67181
|
+
}), method(deviceInput, RemoteCommandListSchema, { auth: "protected" }), method(deviceInput.extend({
|
|
67125
67182
|
role: RemoteRoleSchema,
|
|
67126
67183
|
/** Sends in a row (volume steps). */
|
|
67127
67184
|
repeat: number().int().min(1).max(50).default(1)
|
|
67128
67185
|
}), RemoteSendResultSchema, {
|
|
67129
67186
|
kind: "mutation",
|
|
67130
67187
|
auth: "protected"
|
|
67131
|
-
}), method(deviceInput
|
|
67188
|
+
}), method(deviceInput.extend({
|
|
67132
67189
|
command: RemoteMediaCommandSchema,
|
|
67133
67190
|
muted: boolean().optional(),
|
|
67134
67191
|
source: string().optional(),
|
|
@@ -70049,49 +70106,6 @@ DeviceType.Lock, method(object({
|
|
|
70049
70106
|
kind: "mutation",
|
|
70050
70107
|
auth: "protected"
|
|
70051
70108
|
});
|
|
70052
|
-
var PowerSourceRefusalReasonSchema = _enum([
|
|
70053
|
-
"no-power-source",
|
|
70054
|
-
"switch-missing",
|
|
70055
|
-
"switch-offline",
|
|
70056
|
-
"switch-unknown",
|
|
70057
|
-
"restart-in-progress",
|
|
70058
|
-
"switch-call-failed"
|
|
70059
|
-
]);
|
|
70060
|
-
var PowerSourceActionResultSchema = discriminatedUnion("accepted", [object({ accepted: literal(true) }), object({
|
|
70061
|
-
accepted: literal(false),
|
|
70062
|
-
reason: PowerSourceRefusalReasonSchema,
|
|
70063
|
-
/** One line for the operator, naming the switch. */
|
|
70064
|
-
message: string()
|
|
70065
|
-
})]);
|
|
70066
|
-
var PowerSourceInfoSchema = object({
|
|
70067
|
-
/** False when the device has no power source linked; the rest is then empty. */
|
|
70068
|
-
linked: boolean(),
|
|
70069
|
-
switchDeviceId: number().nullable(),
|
|
70070
|
-
switchName: string().nullable(),
|
|
70071
|
-
/** The switch's on/off state, or null when it is unknown. Never false for unknown (D393). */
|
|
70072
|
-
switchOn: boolean().nullable(),
|
|
70073
|
-
switchOnline: boolean().nullable(),
|
|
70074
|
-
restartInProgress: boolean(),
|
|
70075
|
-
offSeconds: number().int()
|
|
70076
|
-
});
|
|
70077
|
-
object({
|
|
70078
|
-
/** Null while the switch has not reported: unknown is never `false` (D393). */
|
|
70079
|
-
switchOn: boolean().nullable(),
|
|
70080
|
-
offSeconds: number().int(),
|
|
70081
|
-
lastFetchedAt: number()
|
|
70082
|
-
});
|
|
70083
|
-
DeviceType.Gateway, DeviceType.Hub, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater;
|
|
70084
|
-
var deviceInput = object({ deviceId: number().int().nonnegative() });
|
|
70085
|
-
systemMethod(deviceInput, PowerSourceInfoSchema, { auth: "admin" }), systemMethod(deviceInput, PowerSourceActionResultSchema, {
|
|
70086
|
-
kind: "mutation",
|
|
70087
|
-
auth: "admin"
|
|
70088
|
-
}), systemMethod(deviceInput, PowerSourceActionResultSchema, {
|
|
70089
|
-
kind: "mutation",
|
|
70090
|
-
auth: "admin"
|
|
70091
|
-
}), systemMethod(deviceInput, PowerSourceActionResultSchema, {
|
|
70092
|
-
kind: "mutation",
|
|
70093
|
-
auth: "admin"
|
|
70094
|
-
});
|
|
70095
70109
|
object({
|
|
70096
70110
|
value: number().nullable().meta(readingMeta("device", { label: "Total" })),
|
|
70097
70111
|
lastFetchedAt: number()
|
|
@@ -91112,8 +91126,17 @@ NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
|
91112
91126
|
*
|
|
91113
91127
|
* Pure, RN-safe: the viewer imports the support rule from here.
|
|
91114
91128
|
*/
|
|
91129
|
+
/**
|
|
91130
|
+
* Control caps that still have a raise and a clear an operator names: an
|
|
91131
|
+
* appliance cycle raises when it STARTS and clears when it FINISHES. Kept out
|
|
91132
|
+
* of `SOURCE_CAP_ACTIVE_FIELD` on purpose — that table also makes a device a
|
|
91133
|
+
* camera-sensor / recorder-trigger source, and a dishwasher is neither.
|
|
91134
|
+
*/
|
|
91135
|
+
var CYCLE_RAISED_FIELD_BY_CAP = { "running-state": "running" };
|
|
91115
91136
|
/** Event kind → the boolean field of its cap slice that means "raised". */
|
|
91116
91137
|
var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.entries(EVENT_KIND_BY_CAP).flatMap(([capName, descriptor]) => {
|
|
91138
|
+
const cycleField = CYCLE_RAISED_FIELD_BY_CAP[capName];
|
|
91139
|
+
if (cycleField !== void 0) return [[descriptor.kind, cycleField]];
|
|
91117
91140
|
const field = SOURCE_CAP_ACTIVE_FIELD[capName];
|
|
91118
91141
|
if (field === void 0 || descriptor.category !== "sensor") return [];
|
|
91119
91142
|
return [[descriptor.kind, field]];
|
|
@@ -91586,6 +91609,7 @@ new Set([
|
|
|
91586
91609
|
"siren",
|
|
91587
91610
|
"button",
|
|
91588
91611
|
"doorbell",
|
|
91612
|
+
"appliance-cycle",
|
|
91589
91613
|
"audio-speech",
|
|
91590
91614
|
"audio-scream",
|
|
91591
91615
|
"audio-crying",
|
package/dist/remoteEntry.js
CHANGED
|
@@ -30,7 +30,7 @@ async function d(e) {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
async function f() {
|
|
33
|
-
return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-
|
|
33
|
+
return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-dKFxKTAX.mjs")).catch((e) => {
|
|
34
34
|
throw l = void 0, e;
|
|
35
35
|
}), l;
|
|
36
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-pipeline-orchestrator",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.650",
|
|
4
4
|
"description": "Hub-side camera-to-agent load balancer — tracks runner capacity and dispatches attachCamera calls to the optimal pipeline-runner instance",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
}
|
|
77
77
|
],
|
|
78
78
|
"requires": {
|
|
79
|
-
"server": ">=1.2.
|
|
79
|
+
"server": ">=1.2.726"
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"files": [
|