@camstack/types 1.2.588 → 1.2.590
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 +13 -0
- package/dist/addon.js +4 -4
- package/dist/addon.mjs +4 -4
- package/dist/capabilities/alarm-panel.cap.d.ts +15 -7
- package/dist/capabilities/battery.cap.d.ts +7 -41
- package/dist/capabilities/capability-definition.d.ts +12 -0
- package/dist/capabilities/index.d.ts +5 -1
- package/dist/capabilities/lock-control.cap.d.ts +5 -2
- package/dist/capabilities/low-power-sleep.cap.d.ts +83 -0
- package/dist/capabilities/resync.cap.d.ts +40 -0
- package/dist/client.js +19 -11
- package/dist/client.mjs +19 -11
- package/dist/{composed-stable-id-BBL71oUQ.mjs → composed-stable-id-BNTaDZEh.mjs} +9 -13
- package/dist/{composed-stable-id-CVbyajE5.js → composed-stable-id-BdeYe5dD.js} +9 -13
- package/dist/device/device-feature-requirements.d.ts +3 -6
- package/dist/device/device-profile.d.ts +1 -1
- package/dist/device/device-type.d.ts +9 -13
- package/dist/device/low-power-sleep.d.ts +19 -0
- package/dist/device/resync-through-adoption.d.ts +12 -0
- package/dist/enums/event-category.d.ts +1 -1
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-CE_VCE2G.js → event-category-BKxXXxnV.js} +1 -1
- package/dist/{event-category-Hwx_JSCU.mjs → event-category-CY27-fF0.mjs} +1 -1
- package/dist/generated/addon-api.d.ts +113 -8
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-status-types.d.ts +3 -1
- package/dist/generated/cap-vocabulary.d.ts +1 -1
- package/dist/generated/capability-router-map.d.ts +8 -2
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +5 -0
- package/dist/generated/device-scoped-caps.d.ts +1 -1
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/generated/runtime-state-durability.d.ts +6 -1
- package/dist/{implemented-methods-ChtdIofW.js → implemented-methods-BarLh7tc.js} +1 -1
- package/dist/{implemented-methods-u7ddjc-_.mjs → implemented-methods-k3KProJd.mjs} +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +357 -82
- package/dist/index.mjs +342 -83
- package/dist/interfaces/event-bus.d.ts +1 -1
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/dist/schemas/api-catalog.d.ts +170 -0
- package/dist/{sleep-CsZJsb8n.js → sleep-BA_SIc0O.js} +51 -10
- package/dist/{sleep-D6Pih0Qt.mjs → sleep-BT1bLgPq.mjs} +51 -10
- package/package.json +1 -1
|
@@ -1453,7 +1453,7 @@ export interface EventCatalog {
|
|
|
1453
1453
|
};
|
|
1454
1454
|
};
|
|
1455
1455
|
/**
|
|
1456
|
-
* Emitted by the battery cap provider when `
|
|
1456
|
+
* Emitted by the battery cap provider when `wakeUp` enters the
|
|
1457
1457
|
* wake-in-progress window. Subscribers (stream-broker manager) flip
|
|
1458
1458
|
* the broker's placeholder reason to `'waking'` so encoded-path
|
|
1459
1459
|
* viewers see a labelled tile instead of the generic reconnecting
|
package/dist/node.js
CHANGED
|
@@ -21,8 +21,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
23
23
|
//#endregion
|
|
24
|
-
const require_composed_stable_id = require("./composed-stable-id-
|
|
25
|
-
const require_implemented_methods = require("./implemented-methods-
|
|
24
|
+
const require_composed_stable_id = require("./composed-stable-id-BdeYe5dD.js");
|
|
25
|
+
const require_implemented_methods = require("./implemented-methods-BarLh7tc.js");
|
|
26
26
|
let node_crypto = require("node:crypto");
|
|
27
27
|
let node_fs = require("node:fs");
|
|
28
28
|
node_fs = __toESM(node_fs);
|
package/dist/node.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as errMsg } from "./composed-stable-id-
|
|
2
|
-
import { a as CUSTOMIZATION_BLOCK_NAME_PREFIX, ar as getFfmpegDownloadUrl, er as FFMPEG_PATH_ENV, fr as buildFfmpegArgs, gr as isSoftwareDecode, ir as getFfmpegArtifact, nr as ffmpegBinaryName, or as canonicalHash, rr as FFMPEG_RELEASE, sr as Fmp4BoxSplitter, t as implementedMethodsOf, tr as chooseFfmpegBinary, z as compositionSourceKey } from "./implemented-methods-
|
|
1
|
+
import { s as errMsg } from "./composed-stable-id-BNTaDZEh.mjs";
|
|
2
|
+
import { a as CUSTOMIZATION_BLOCK_NAME_PREFIX, ar as getFfmpegDownloadUrl, er as FFMPEG_PATH_ENV, fr as buildFfmpegArgs, gr as isSoftwareDecode, ir as getFfmpegArtifact, nr as ffmpegBinaryName, or as canonicalHash, rr as FFMPEG_RELEASE, sr as Fmp4BoxSplitter, t as implementedMethodsOf, tr as chooseFfmpegBinary, z as compositionSourceKey } from "./implemented-methods-k3KProJd.mjs";
|
|
3
3
|
import { createHash, createHmac, randomUUID, timingSafeEqual } from "node:crypto";
|
|
4
4
|
import * as fs from "node:fs";
|
|
5
5
|
import { chmodSync, copyFileSync, createWriteStream, existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The wire shapes of `apiCatalog.*` — the API explorer's data (planning#595).
|
|
3
|
+
*
|
|
4
|
+
* One entry per tRPC method the hub serves, capability and core routes alike,
|
|
5
|
+
* read off the live router by the hub (never a hand-written list).
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
export declare const ApiProcedureKindSchema: z.ZodEnum<{
|
|
9
|
+
mutation: "mutation";
|
|
10
|
+
query: "query";
|
|
11
|
+
subscription: "subscription";
|
|
12
|
+
}>;
|
|
13
|
+
export type ApiProcedureKind = z.infer<typeof ApiProcedureKindSchema>;
|
|
14
|
+
/** The gate a method runs behind. */
|
|
15
|
+
export declare const ApiProcedureTierSchema: z.ZodEnum<{
|
|
16
|
+
admin: "admin";
|
|
17
|
+
protected: "protected";
|
|
18
|
+
public: "public";
|
|
19
|
+
}>;
|
|
20
|
+
export type ApiProcedureTier = z.infer<typeof ApiProcedureTierSchema>;
|
|
21
|
+
/** The token scope a capability route is matched against (its `METHOD_ACCESS_MAP` row). */
|
|
22
|
+
export declare const ApiCatalogScopeSchema: z.ZodObject<{
|
|
23
|
+
capName: z.ZodString;
|
|
24
|
+
capScope: z.ZodEnum<{
|
|
25
|
+
device: "device";
|
|
26
|
+
system: "system";
|
|
27
|
+
}>;
|
|
28
|
+
access: z.ZodEnum<{
|
|
29
|
+
create: "create";
|
|
30
|
+
delete: "delete";
|
|
31
|
+
view: "view";
|
|
32
|
+
}>;
|
|
33
|
+
role: z.ZodString;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type ApiCatalogScope = z.infer<typeof ApiCatalogScopeSchema>;
|
|
36
|
+
export declare const ApiCatalogEntrySchema: z.ZodObject<{
|
|
37
|
+
path: z.ZodString;
|
|
38
|
+
router: z.ZodString;
|
|
39
|
+
method: z.ZodString;
|
|
40
|
+
kind: z.ZodEnum<{
|
|
41
|
+
mutation: "mutation";
|
|
42
|
+
query: "query";
|
|
43
|
+
subscription: "subscription";
|
|
44
|
+
}>;
|
|
45
|
+
tier: z.ZodEnum<{
|
|
46
|
+
admin: "admin";
|
|
47
|
+
protected: "protected";
|
|
48
|
+
public: "public";
|
|
49
|
+
}>;
|
|
50
|
+
source: z.ZodEnum<{
|
|
51
|
+
capability: "capability";
|
|
52
|
+
core: "core";
|
|
53
|
+
}>;
|
|
54
|
+
scope: z.ZodNullable<z.ZodObject<{
|
|
55
|
+
capName: z.ZodString;
|
|
56
|
+
capScope: z.ZodEnum<{
|
|
57
|
+
device: "device";
|
|
58
|
+
system: "system";
|
|
59
|
+
}>;
|
|
60
|
+
access: z.ZodEnum<{
|
|
61
|
+
create: "create";
|
|
62
|
+
delete: "delete";
|
|
63
|
+
view: "view";
|
|
64
|
+
}>;
|
|
65
|
+
role: z.ZodString;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
hasInput: z.ZodBoolean;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
export type ApiCatalogEntry = z.infer<typeof ApiCatalogEntrySchema>;
|
|
70
|
+
/**
|
|
71
|
+
* May the CALLER call a method. The list has no input, so a method reached
|
|
72
|
+
* only through a device grant is `per-device`: the real call is allowed or
|
|
73
|
+
* refused on the device its input names.
|
|
74
|
+
*/
|
|
75
|
+
export declare const ApiCallableSchema: z.ZodEnum<{
|
|
76
|
+
no: "no";
|
|
77
|
+
"per-device": "per-device";
|
|
78
|
+
yes: "yes";
|
|
79
|
+
}>;
|
|
80
|
+
export type ApiCallable = z.infer<typeof ApiCallableSchema>;
|
|
81
|
+
export declare const ApiCatalogMethodSchema: z.ZodObject<{
|
|
82
|
+
path: z.ZodString;
|
|
83
|
+
router: z.ZodString;
|
|
84
|
+
method: z.ZodString;
|
|
85
|
+
kind: z.ZodEnum<{
|
|
86
|
+
mutation: "mutation";
|
|
87
|
+
query: "query";
|
|
88
|
+
subscription: "subscription";
|
|
89
|
+
}>;
|
|
90
|
+
tier: z.ZodEnum<{
|
|
91
|
+
admin: "admin";
|
|
92
|
+
protected: "protected";
|
|
93
|
+
public: "public";
|
|
94
|
+
}>;
|
|
95
|
+
source: z.ZodEnum<{
|
|
96
|
+
capability: "capability";
|
|
97
|
+
core: "core";
|
|
98
|
+
}>;
|
|
99
|
+
scope: z.ZodNullable<z.ZodObject<{
|
|
100
|
+
capName: z.ZodString;
|
|
101
|
+
capScope: z.ZodEnum<{
|
|
102
|
+
device: "device";
|
|
103
|
+
system: "system";
|
|
104
|
+
}>;
|
|
105
|
+
access: z.ZodEnum<{
|
|
106
|
+
create: "create";
|
|
107
|
+
delete: "delete";
|
|
108
|
+
view: "view";
|
|
109
|
+
}>;
|
|
110
|
+
role: z.ZodString;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
hasInput: z.ZodBoolean;
|
|
113
|
+
callable: z.ZodEnum<{
|
|
114
|
+
no: "no";
|
|
115
|
+
"per-device": "per-device";
|
|
116
|
+
yes: "yes";
|
|
117
|
+
}>;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
export type ApiCatalogMethod = z.infer<typeof ApiCatalogMethodSchema>;
|
|
120
|
+
export declare const ApiCatalogListOutputSchema: z.ZodObject<{
|
|
121
|
+
methods: z.ZodArray<z.ZodObject<{
|
|
122
|
+
path: z.ZodString;
|
|
123
|
+
router: z.ZodString;
|
|
124
|
+
method: z.ZodString;
|
|
125
|
+
kind: z.ZodEnum<{
|
|
126
|
+
mutation: "mutation";
|
|
127
|
+
query: "query";
|
|
128
|
+
subscription: "subscription";
|
|
129
|
+
}>;
|
|
130
|
+
tier: z.ZodEnum<{
|
|
131
|
+
admin: "admin";
|
|
132
|
+
protected: "protected";
|
|
133
|
+
public: "public";
|
|
134
|
+
}>;
|
|
135
|
+
source: z.ZodEnum<{
|
|
136
|
+
capability: "capability";
|
|
137
|
+
core: "core";
|
|
138
|
+
}>;
|
|
139
|
+
scope: z.ZodNullable<z.ZodObject<{
|
|
140
|
+
capName: z.ZodString;
|
|
141
|
+
capScope: z.ZodEnum<{
|
|
142
|
+
device: "device";
|
|
143
|
+
system: "system";
|
|
144
|
+
}>;
|
|
145
|
+
access: z.ZodEnum<{
|
|
146
|
+
create: "create";
|
|
147
|
+
delete: "delete";
|
|
148
|
+
view: "view";
|
|
149
|
+
}>;
|
|
150
|
+
role: z.ZodString;
|
|
151
|
+
}, z.core.$strip>>;
|
|
152
|
+
hasInput: z.ZodBoolean;
|
|
153
|
+
callable: z.ZodEnum<{
|
|
154
|
+
no: "no";
|
|
155
|
+
"per-device": "per-device";
|
|
156
|
+
yes: "yes";
|
|
157
|
+
}>;
|
|
158
|
+
}, z.core.$strip>>;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
export type ApiCatalogListOutput = z.infer<typeof ApiCatalogListOutputSchema>;
|
|
161
|
+
/** A JSON Schema document, as the explorer receives it. */
|
|
162
|
+
export declare const JsonSchemaDocumentSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
163
|
+
export type JsonSchemaDocument = z.infer<typeof JsonSchemaDocumentSchema>;
|
|
164
|
+
export declare const ApiCatalogInputSchemaOutputSchema: z.ZodObject<{
|
|
165
|
+
path: z.ZodString;
|
|
166
|
+
hasInput: z.ZodBoolean;
|
|
167
|
+
schema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
168
|
+
error: z.ZodNullable<z.ZodString>;
|
|
169
|
+
}, z.core.$strip>;
|
|
170
|
+
export type ApiCatalogInputSchemaOutput = z.infer<typeof ApiCatalogInputSchemaOutputSchema>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_event_category = require("./event-category-
|
|
2
|
-
const require_composed_stable_id = require("./composed-stable-id-
|
|
1
|
+
const require_event_category = require("./event-category-BKxXXxnV.js");
|
|
2
|
+
const require_composed_stable_id = require("./composed-stable-id-BdeYe5dD.js");
|
|
3
3
|
let zod = require("zod");
|
|
4
4
|
//#region src/audio/audio-chunk-format.ts
|
|
5
5
|
/**
|
|
@@ -7985,7 +7985,7 @@ var MODEL_FORMATS = [
|
|
|
7985
7985
|
//#region src/generated/cap-vocabulary.ts
|
|
7986
7986
|
/**
|
|
7987
7987
|
* THE cap vocabulary (D920), projected from the declarations of every
|
|
7988
|
-
* `*.cap.ts` (D1050):
|
|
7988
|
+
* `*.cap.ts` (D1050): 213 caps (111 device, 102 system).
|
|
7989
7989
|
* Device caps in their declared picker order, then system caps by name.
|
|
7990
7990
|
*/
|
|
7991
7991
|
var CAP_VOCABULARY = {
|
|
@@ -14669,6 +14669,14 @@ var CAP_VOCABULARY = {
|
|
|
14669
14669
|
icon: "refresh-cw"
|
|
14670
14670
|
}]
|
|
14671
14671
|
},
|
|
14672
|
+
"resync": {
|
|
14673
|
+
scope: "device",
|
|
14674
|
+
noun: {
|
|
14675
|
+
en: "Re-sync",
|
|
14676
|
+
it: "Risincronizzazione"
|
|
14677
|
+
},
|
|
14678
|
+
notOperatorFacing: { resync: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action" }
|
|
14679
|
+
},
|
|
14672
14680
|
"recording": {
|
|
14673
14681
|
scope: "device",
|
|
14674
14682
|
noun: {
|
|
@@ -16680,7 +16688,6 @@ var CAP_VOCABULARY = {
|
|
|
16680
16688
|
en: "Battery",
|
|
16681
16689
|
it: "Batteria"
|
|
16682
16690
|
},
|
|
16683
|
-
notOperatorFacing: { wakeForStream: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage" },
|
|
16684
16691
|
state: [
|
|
16685
16692
|
{
|
|
16686
16693
|
kind: "numeric",
|
|
@@ -16790,6 +16797,14 @@ var CAP_VOCABULARY = {
|
|
|
16790
16797
|
icon: "moon"
|
|
16791
16798
|
}]
|
|
16792
16799
|
},
|
|
16800
|
+
"low-power-sleep": {
|
|
16801
|
+
scope: "device",
|
|
16802
|
+
noun: {
|
|
16803
|
+
en: "Low-power sleep",
|
|
16804
|
+
it: "Sospensione a basso consumo"
|
|
16805
|
+
},
|
|
16806
|
+
notOperatorFacing: { wakeUp: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage" }
|
|
16807
|
+
},
|
|
16793
16808
|
"network-link": {
|
|
16794
16809
|
scope: "device",
|
|
16795
16810
|
noun: {
|
|
@@ -18176,6 +18191,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
18176
18191
|
"log-channels",
|
|
18177
18192
|
"log-destination",
|
|
18178
18193
|
"login-method",
|
|
18194
|
+
"low-power-sleep",
|
|
18179
18195
|
"media-player",
|
|
18180
18196
|
"mesh-network",
|
|
18181
18197
|
"meter",
|
|
@@ -18229,6 +18245,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
18229
18245
|
"records",
|
|
18230
18246
|
"remote",
|
|
18231
18247
|
"remote-layout-components",
|
|
18248
|
+
"resync",
|
|
18232
18249
|
"running-state",
|
|
18233
18250
|
"scene-monitor",
|
|
18234
18251
|
"schedulers",
|
|
@@ -18333,7 +18350,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
18333
18350
|
]
|
|
18334
18351
|
},
|
|
18335
18352
|
{
|
|
18336
|
-
"path": "
|
|
18353
|
+
"path": "codeRequired",
|
|
18337
18354
|
"valueType": "boolean"
|
|
18338
18355
|
}
|
|
18339
18356
|
],
|
|
@@ -19401,7 +19418,24 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
19401
19418
|
"jammed",
|
|
19402
19419
|
"door-open"
|
|
19403
19420
|
]
|
|
19421
|
+
}, {
|
|
19422
|
+
"path": "codeRequired",
|
|
19423
|
+
"valueType": "boolean"
|
|
19404
19424
|
}],
|
|
19425
|
+
"low-power-sleep": [
|
|
19426
|
+
{
|
|
19427
|
+
"path": "sleeping",
|
|
19428
|
+
"valueType": "boolean"
|
|
19429
|
+
},
|
|
19430
|
+
{
|
|
19431
|
+
"path": "lastContactAt",
|
|
19432
|
+
"valueType": "number"
|
|
19433
|
+
},
|
|
19434
|
+
{
|
|
19435
|
+
"path": "lastUpdated",
|
|
19436
|
+
"valueType": "number"
|
|
19437
|
+
}
|
|
19438
|
+
],
|
|
19405
19439
|
"media-player": [
|
|
19406
19440
|
{
|
|
19407
19441
|
"path": "state",
|
|
@@ -21051,10 +21085,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
21051
21085
|
trigger: (input, options) => dispatch("automation-control", "automationControl", "trigger", "mutation", input, void 0, options),
|
|
21052
21086
|
getStatus: (input, options) => dispatch("automation-control", "automationControl", "getStatus", "query", input, void 0, options)
|
|
21053
21087
|
};
|
|
21054
|
-
const batteryInterface = {
|
|
21055
|
-
wakeForStream: (input, options) => dispatch("battery", "battery", "wakeForStream", "mutation", input, void 0, options),
|
|
21056
|
-
getStatus: (input, options) => dispatch("battery", "battery", "getStatus", "query", input, void 0, options)
|
|
21057
|
-
};
|
|
21088
|
+
const batteryInterface = { getStatus: (input, options) => dispatch("battery", "battery", "getStatus", "query", input, void 0, options) };
|
|
21058
21089
|
const binaryInterface = { getStatus: (input, options) => dispatch("binary", "binary", "getStatus", "query", input, void 0, options) };
|
|
21059
21090
|
const brightnessInterface = {
|
|
21060
21091
|
setBrightness: (input, options) => dispatch("brightness", "brightness", "setBrightness", "mutation", input, void 0, options),
|
|
@@ -21258,6 +21289,10 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
21258
21289
|
open: (input, options) => dispatch("lock-control", "lockControl", "open", "mutation", input, void 0, options),
|
|
21259
21290
|
getStatus: (input, options) => dispatch("lock-control", "lockControl", "getStatus", "query", input, void 0, options)
|
|
21260
21291
|
};
|
|
21292
|
+
const lowPowerSleepInterface = {
|
|
21293
|
+
wakeUp: (input, options) => dispatch("low-power-sleep", "lowPowerSleep", "wakeUp", "mutation", input, void 0, options),
|
|
21294
|
+
getStatus: (input, options) => dispatch("low-power-sleep", "lowPowerSleep", "getStatus", "query", input, void 0, options)
|
|
21295
|
+
};
|
|
21261
21296
|
const mediaPlayerInterface = {
|
|
21262
21297
|
turnOn: (input, options) => dispatch("media-player", "mediaPlayer", "turnOn", "mutation", input, void 0, options),
|
|
21263
21298
|
turnOff: (input, options) => dispatch("media-player", "mediaPlayer", "turnOff", "mutation", input, void 0, options),
|
|
@@ -21499,6 +21534,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
21499
21534
|
getStatus: (input, options) => dispatch("recording-onboard", "recordingOnboard", "getStatus", "query", input, void 0, options)
|
|
21500
21535
|
};
|
|
21501
21536
|
const recordingSignalInterface = { getStatus: (input, options) => dispatch("recording-signal", "recordingSignal", "getStatus", "query", input, void 0, options) };
|
|
21537
|
+
const resyncInterface = { resync: (input, options) => dispatch("resync", "resync", "resync", "mutation", input, void 0, options) };
|
|
21502
21538
|
const runningStateInterface = { getStatus: (input, options) => dispatch("running-state", "runningState", "getStatus", "query", input, void 0, options) };
|
|
21503
21539
|
const sceneMonitorInterface = {
|
|
21504
21540
|
listScenes: (input, options) => dispatch("scene-monitor", "sceneMonitor", "listScenes", "query", input, void 0, options),
|
|
@@ -21856,6 +21892,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
21856
21892
|
irTransmitter: createSliceHandle(stateSource, binding.deviceId, "ir-transmitter"),
|
|
21857
21893
|
lawnMowerControl: createSliceHandle(stateSource, binding.deviceId, "lawn-mower-control"),
|
|
21858
21894
|
lockControl: createSliceHandle(stateSource, binding.deviceId, "lock-control"),
|
|
21895
|
+
lowPowerSleep: createSliceHandle(stateSource, binding.deviceId, "low-power-sleep"),
|
|
21859
21896
|
mediaPlayer: createSliceHandle(stateSource, binding.deviceId, "media-player"),
|
|
21860
21897
|
meter: createSliceHandle(stateSource, binding.deviceId, "meter"),
|
|
21861
21898
|
motion: createSliceHandle(stateSource, binding.deviceId, "motion"),
|
|
@@ -21957,6 +21994,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
21957
21994
|
...bound("ir-transmitter") ? { irTransmitter: irTransmitterInterface } : {},
|
|
21958
21995
|
...bound("lawn-mower-control") ? { lawnMowerControl: lawnMowerControlInterface } : {},
|
|
21959
21996
|
...bound("lock-control") ? { lockControl: lockControlInterface } : {},
|
|
21997
|
+
...bound("low-power-sleep") ? { lowPowerSleep: lowPowerSleepInterface } : {},
|
|
21960
21998
|
...bound("media-player") ? { mediaPlayer: mediaPlayerInterface } : {},
|
|
21961
21999
|
...bound("meter") ? { meter: meterInterface } : {},
|
|
21962
22000
|
...bound("motion") ? { motion: motionInterface } : {},
|
|
@@ -21984,6 +22022,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
21984
22022
|
...bound("recording") ? { recording: recordingInterface } : {},
|
|
21985
22023
|
...bound("recording-onboard") ? { recordingOnboard: recordingOnboardInterface } : {},
|
|
21986
22024
|
...bound("recording-signal") ? { recordingSignal: recordingSignalInterface } : {},
|
|
22025
|
+
...bound("resync") ? { resync: resyncInterface } : {},
|
|
21987
22026
|
...bound("running-state") ? { runningState: runningStateInterface } : {},
|
|
21988
22027
|
...bound("scene-monitor") ? { sceneMonitor: sceneMonitorInterface } : {},
|
|
21989
22028
|
...bound("script-runner") ? { scriptRunner: scriptRunnerInterface } : {},
|
|
@@ -22041,7 +22080,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
22041
22080
|
* can answer "may a rule actuate this?" without importing the schema barrel
|
|
22042
22081
|
* (~144MB RSS per runner, D28).
|
|
22043
22082
|
*
|
|
22044
|
-
* Coverage:
|
|
22083
|
+
* Coverage: 111 device-scoped capabilities.
|
|
22045
22084
|
*/
|
|
22046
22085
|
var DEVICE_SCOPED_CAPS = new Set([
|
|
22047
22086
|
"accessories",
|
|
@@ -22100,6 +22139,7 @@ var DEVICE_SCOPED_CAPS = new Set([
|
|
|
22100
22139
|
"ir-transmitter",
|
|
22101
22140
|
"lawn-mower-control",
|
|
22102
22141
|
"lock-control",
|
|
22142
|
+
"low-power-sleep",
|
|
22103
22143
|
"media-player",
|
|
22104
22144
|
"meter",
|
|
22105
22145
|
"motion",
|
|
@@ -22127,6 +22167,7 @@ var DEVICE_SCOPED_CAPS = new Set([
|
|
|
22127
22167
|
"recording",
|
|
22128
22168
|
"recording-onboard",
|
|
22129
22169
|
"recording-signal",
|
|
22170
|
+
"resync",
|
|
22130
22171
|
"running-state",
|
|
22131
22172
|
"scene-monitor",
|
|
22132
22173
|
"script-runner",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as EventCategory } from "./event-category-
|
|
2
|
-
import { a as DeviceType, i as DeviceRole, s as errMsg } from "./composed-stable-id-
|
|
1
|
+
import { t as EventCategory } from "./event-category-CY27-fF0.mjs";
|
|
2
|
+
import { a as DeviceType, i as DeviceRole, s as errMsg } from "./composed-stable-id-BNTaDZEh.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/audio/audio-chunk-format.ts
|
|
5
5
|
/**
|
|
@@ -7985,7 +7985,7 @@ var MODEL_FORMATS = [
|
|
|
7985
7985
|
//#region src/generated/cap-vocabulary.ts
|
|
7986
7986
|
/**
|
|
7987
7987
|
* THE cap vocabulary (D920), projected from the declarations of every
|
|
7988
|
-
* `*.cap.ts` (D1050):
|
|
7988
|
+
* `*.cap.ts` (D1050): 213 caps (111 device, 102 system).
|
|
7989
7989
|
* Device caps in their declared picker order, then system caps by name.
|
|
7990
7990
|
*/
|
|
7991
7991
|
var CAP_VOCABULARY = {
|
|
@@ -14669,6 +14669,14 @@ var CAP_VOCABULARY = {
|
|
|
14669
14669
|
icon: "refresh-cw"
|
|
14670
14670
|
}]
|
|
14671
14671
|
},
|
|
14672
|
+
"resync": {
|
|
14673
|
+
scope: "device",
|
|
14674
|
+
noun: {
|
|
14675
|
+
en: "Re-sync",
|
|
14676
|
+
it: "Risincronizzazione"
|
|
14677
|
+
},
|
|
14678
|
+
notOperatorFacing: { resync: "device adoption — re-aligning a device with its source is an onboarding step, not an automation action" }
|
|
14679
|
+
},
|
|
14672
14680
|
"recording": {
|
|
14673
14681
|
scope: "device",
|
|
14674
14682
|
noun: {
|
|
@@ -16680,7 +16688,6 @@ var CAP_VOCABULARY = {
|
|
|
16680
16688
|
en: "Battery",
|
|
16681
16689
|
it: "Batteria"
|
|
16682
16690
|
},
|
|
16683
|
-
notOperatorFacing: { wakeForStream: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage" },
|
|
16684
16691
|
state: [
|
|
16685
16692
|
{
|
|
16686
16693
|
kind: "numeric",
|
|
@@ -16790,6 +16797,14 @@ var CAP_VOCABULARY = {
|
|
|
16790
16797
|
icon: "moon"
|
|
16791
16798
|
}]
|
|
16792
16799
|
},
|
|
16800
|
+
"low-power-sleep": {
|
|
16801
|
+
scope: "device",
|
|
16802
|
+
noun: {
|
|
16803
|
+
en: "Low-power sleep",
|
|
16804
|
+
it: "Sospensione a basso consumo"
|
|
16805
|
+
},
|
|
16806
|
+
notOperatorFacing: { wakeUp: "a stream consumer wakes a sleeping camera to watch it; an automation that wants footage asks for the footage" }
|
|
16807
|
+
},
|
|
16793
16808
|
"network-link": {
|
|
16794
16809
|
scope: "device",
|
|
16795
16810
|
noun: {
|
|
@@ -18176,6 +18191,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
18176
18191
|
"log-channels",
|
|
18177
18192
|
"log-destination",
|
|
18178
18193
|
"login-method",
|
|
18194
|
+
"low-power-sleep",
|
|
18179
18195
|
"media-player",
|
|
18180
18196
|
"mesh-network",
|
|
18181
18197
|
"meter",
|
|
@@ -18229,6 +18245,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
18229
18245
|
"records",
|
|
18230
18246
|
"remote",
|
|
18231
18247
|
"remote-layout-components",
|
|
18248
|
+
"resync",
|
|
18232
18249
|
"running-state",
|
|
18233
18250
|
"scene-monitor",
|
|
18234
18251
|
"schedulers",
|
|
@@ -18333,7 +18350,7 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
18333
18350
|
]
|
|
18334
18351
|
},
|
|
18335
18352
|
{
|
|
18336
|
-
"path": "
|
|
18353
|
+
"path": "codeRequired",
|
|
18337
18354
|
"valueType": "boolean"
|
|
18338
18355
|
}
|
|
18339
18356
|
],
|
|
@@ -19401,7 +19418,24 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
19401
19418
|
"jammed",
|
|
19402
19419
|
"door-open"
|
|
19403
19420
|
]
|
|
19421
|
+
}, {
|
|
19422
|
+
"path": "codeRequired",
|
|
19423
|
+
"valueType": "boolean"
|
|
19404
19424
|
}],
|
|
19425
|
+
"low-power-sleep": [
|
|
19426
|
+
{
|
|
19427
|
+
"path": "sleeping",
|
|
19428
|
+
"valueType": "boolean"
|
|
19429
|
+
},
|
|
19430
|
+
{
|
|
19431
|
+
"path": "lastContactAt",
|
|
19432
|
+
"valueType": "number"
|
|
19433
|
+
},
|
|
19434
|
+
{
|
|
19435
|
+
"path": "lastUpdated",
|
|
19436
|
+
"valueType": "number"
|
|
19437
|
+
}
|
|
19438
|
+
],
|
|
19405
19439
|
"media-player": [
|
|
19406
19440
|
{
|
|
19407
19441
|
"path": "state",
|
|
@@ -21051,10 +21085,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
21051
21085
|
trigger: (input, options) => dispatch("automation-control", "automationControl", "trigger", "mutation", input, void 0, options),
|
|
21052
21086
|
getStatus: (input, options) => dispatch("automation-control", "automationControl", "getStatus", "query", input, void 0, options)
|
|
21053
21087
|
};
|
|
21054
|
-
const batteryInterface = {
|
|
21055
|
-
wakeForStream: (input, options) => dispatch("battery", "battery", "wakeForStream", "mutation", input, void 0, options),
|
|
21056
|
-
getStatus: (input, options) => dispatch("battery", "battery", "getStatus", "query", input, void 0, options)
|
|
21057
|
-
};
|
|
21088
|
+
const batteryInterface = { getStatus: (input, options) => dispatch("battery", "battery", "getStatus", "query", input, void 0, options) };
|
|
21058
21089
|
const binaryInterface = { getStatus: (input, options) => dispatch("binary", "binary", "getStatus", "query", input, void 0, options) };
|
|
21059
21090
|
const brightnessInterface = {
|
|
21060
21091
|
setBrightness: (input, options) => dispatch("brightness", "brightness", "setBrightness", "mutation", input, void 0, options),
|
|
@@ -21258,6 +21289,10 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
21258
21289
|
open: (input, options) => dispatch("lock-control", "lockControl", "open", "mutation", input, void 0, options),
|
|
21259
21290
|
getStatus: (input, options) => dispatch("lock-control", "lockControl", "getStatus", "query", input, void 0, options)
|
|
21260
21291
|
};
|
|
21292
|
+
const lowPowerSleepInterface = {
|
|
21293
|
+
wakeUp: (input, options) => dispatch("low-power-sleep", "lowPowerSleep", "wakeUp", "mutation", input, void 0, options),
|
|
21294
|
+
getStatus: (input, options) => dispatch("low-power-sleep", "lowPowerSleep", "getStatus", "query", input, void 0, options)
|
|
21295
|
+
};
|
|
21261
21296
|
const mediaPlayerInterface = {
|
|
21262
21297
|
turnOn: (input, options) => dispatch("media-player", "mediaPlayer", "turnOn", "mutation", input, void 0, options),
|
|
21263
21298
|
turnOff: (input, options) => dispatch("media-player", "mediaPlayer", "turnOff", "mutation", input, void 0, options),
|
|
@@ -21499,6 +21534,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
21499
21534
|
getStatus: (input, options) => dispatch("recording-onboard", "recordingOnboard", "getStatus", "query", input, void 0, options)
|
|
21500
21535
|
};
|
|
21501
21536
|
const recordingSignalInterface = { getStatus: (input, options) => dispatch("recording-signal", "recordingSignal", "getStatus", "query", input, void 0, options) };
|
|
21537
|
+
const resyncInterface = { resync: (input, options) => dispatch("resync", "resync", "resync", "mutation", input, void 0, options) };
|
|
21502
21538
|
const runningStateInterface = { getStatus: (input, options) => dispatch("running-state", "runningState", "getStatus", "query", input, void 0, options) };
|
|
21503
21539
|
const sceneMonitorInterface = {
|
|
21504
21540
|
listScenes: (input, options) => dispatch("scene-monitor", "sceneMonitor", "listScenes", "query", input, void 0, options),
|
|
@@ -21856,6 +21892,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
21856
21892
|
irTransmitter: createSliceHandle(stateSource, binding.deviceId, "ir-transmitter"),
|
|
21857
21893
|
lawnMowerControl: createSliceHandle(stateSource, binding.deviceId, "lawn-mower-control"),
|
|
21858
21894
|
lockControl: createSliceHandle(stateSource, binding.deviceId, "lock-control"),
|
|
21895
|
+
lowPowerSleep: createSliceHandle(stateSource, binding.deviceId, "low-power-sleep"),
|
|
21859
21896
|
mediaPlayer: createSliceHandle(stateSource, binding.deviceId, "media-player"),
|
|
21860
21897
|
meter: createSliceHandle(stateSource, binding.deviceId, "meter"),
|
|
21861
21898
|
motion: createSliceHandle(stateSource, binding.deviceId, "motion"),
|
|
@@ -21957,6 +21994,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
21957
21994
|
...bound("ir-transmitter") ? { irTransmitter: irTransmitterInterface } : {},
|
|
21958
21995
|
...bound("lawn-mower-control") ? { lawnMowerControl: lawnMowerControlInterface } : {},
|
|
21959
21996
|
...bound("lock-control") ? { lockControl: lockControlInterface } : {},
|
|
21997
|
+
...bound("low-power-sleep") ? { lowPowerSleep: lowPowerSleepInterface } : {},
|
|
21960
21998
|
...bound("media-player") ? { mediaPlayer: mediaPlayerInterface } : {},
|
|
21961
21999
|
...bound("meter") ? { meter: meterInterface } : {},
|
|
21962
22000
|
...bound("motion") ? { motion: motionInterface } : {},
|
|
@@ -21984,6 +22022,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
21984
22022
|
...bound("recording") ? { recording: recordingInterface } : {},
|
|
21985
22023
|
...bound("recording-onboard") ? { recordingOnboard: recordingOnboardInterface } : {},
|
|
21986
22024
|
...bound("recording-signal") ? { recordingSignal: recordingSignalInterface } : {},
|
|
22025
|
+
...bound("resync") ? { resync: resyncInterface } : {},
|
|
21987
22026
|
...bound("running-state") ? { runningState: runningStateInterface } : {},
|
|
21988
22027
|
...bound("scene-monitor") ? { sceneMonitor: sceneMonitorInterface } : {},
|
|
21989
22028
|
...bound("script-runner") ? { scriptRunner: scriptRunnerInterface } : {},
|
|
@@ -22041,7 +22080,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
22041
22080
|
* can answer "may a rule actuate this?" without importing the schema barrel
|
|
22042
22081
|
* (~144MB RSS per runner, D28).
|
|
22043
22082
|
*
|
|
22044
|
-
* Coverage:
|
|
22083
|
+
* Coverage: 111 device-scoped capabilities.
|
|
22045
22084
|
*/
|
|
22046
22085
|
var DEVICE_SCOPED_CAPS = new Set([
|
|
22047
22086
|
"accessories",
|
|
@@ -22100,6 +22139,7 @@ var DEVICE_SCOPED_CAPS = new Set([
|
|
|
22100
22139
|
"ir-transmitter",
|
|
22101
22140
|
"lawn-mower-control",
|
|
22102
22141
|
"lock-control",
|
|
22142
|
+
"low-power-sleep",
|
|
22103
22143
|
"media-player",
|
|
22104
22144
|
"meter",
|
|
22105
22145
|
"motion",
|
|
@@ -22127,6 +22167,7 @@ var DEVICE_SCOPED_CAPS = new Set([
|
|
|
22127
22167
|
"recording",
|
|
22128
22168
|
"recording-onboard",
|
|
22129
22169
|
"recording-signal",
|
|
22170
|
+
"resync",
|
|
22130
22171
|
"running-state",
|
|
22131
22172
|
"scene-monitor",
|
|
22132
22173
|
"script-runner",
|