@camstack/types 1.2.569 → 1.2.571
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 +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/error.cap.d.ts +135 -0
- package/dist/capabilities/index.d.ts +3 -1
- package/dist/capabilities/terminal-session.cap.d.ts +30 -4
- package/dist/client.js +14 -0
- package/dist/client.mjs +14 -0
- package/dist/device/base-device.d.ts +15 -0
- package/dist/device/device-error-episode.d.ts +24 -0
- package/dist/generated/addon-api.d.ts +21 -0
- 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 +5 -2
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +3 -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 +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +271 -5
- package/dist/index.mjs +264 -6
- package/dist/{sleep-DbhT0DWV.mjs → sleep-BnR9qGOv.mjs} +54 -2
- package/dist/{sleep-DR76P1OE.js → sleep-Cr2-wtyQ.js} +54 -2
- package/package.json +1 -1
|
@@ -7955,7 +7955,7 @@ var MODEL_FORMATS = [
|
|
|
7955
7955
|
//#region src/generated/cap-vocabulary.ts
|
|
7956
7956
|
/**
|
|
7957
7957
|
* THE cap vocabulary (D920), projected from the declarations of every
|
|
7958
|
-
* `*.cap.ts` (D1050):
|
|
7958
|
+
* `*.cap.ts` (D1050): 208 caps (107 device, 101 system).
|
|
7959
7959
|
* Device caps in their declared picker order, then system caps by name.
|
|
7960
7960
|
*/
|
|
7961
7961
|
var CAP_VOCABULARY = {
|
|
@@ -16241,6 +16241,30 @@ var CAP_VOCABULARY = {
|
|
|
16241
16241
|
icon: "wifi-off"
|
|
16242
16242
|
}]
|
|
16243
16243
|
},
|
|
16244
|
+
"error": {
|
|
16245
|
+
scope: "device",
|
|
16246
|
+
noun: {
|
|
16247
|
+
en: "Fault",
|
|
16248
|
+
it: "Guasto"
|
|
16249
|
+
},
|
|
16250
|
+
state: [{
|
|
16251
|
+
kind: "boolean",
|
|
16252
|
+
field: "active",
|
|
16253
|
+
label: {
|
|
16254
|
+
en: "Fault",
|
|
16255
|
+
it: "Guasto"
|
|
16256
|
+
},
|
|
16257
|
+
whenTrue: {
|
|
16258
|
+
en: "When {device} reports a fault",
|
|
16259
|
+
it: "Quando {device} segnala un guasto"
|
|
16260
|
+
},
|
|
16261
|
+
whenFalse: {
|
|
16262
|
+
en: "When the fault of {device} clears",
|
|
16263
|
+
it: "Quando il guasto di {device} si risolve"
|
|
16264
|
+
},
|
|
16265
|
+
icon: "triangle-alert"
|
|
16266
|
+
}]
|
|
16267
|
+
},
|
|
16244
16268
|
"doorbell": {
|
|
16245
16269
|
scope: "device",
|
|
16246
16270
|
noun: {
|
|
@@ -17401,6 +17425,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
17401
17425
|
"embedding-encoder",
|
|
17402
17426
|
"energy-system",
|
|
17403
17427
|
"enum-sensor",
|
|
17428
|
+
"error",
|
|
17404
17429
|
"event-emitter",
|
|
17405
17430
|
"face-gallery",
|
|
17406
17431
|
"failure-contribution",
|
|
@@ -18292,6 +18317,29 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
18292
18317
|
"path": "timestamp",
|
|
18293
18318
|
"valueType": "boolean"
|
|
18294
18319
|
}],
|
|
18320
|
+
"error": [
|
|
18321
|
+
{
|
|
18322
|
+
"path": "active",
|
|
18323
|
+
"valueType": "boolean"
|
|
18324
|
+
},
|
|
18325
|
+
{
|
|
18326
|
+
"path": "code",
|
|
18327
|
+
"valueType": "string"
|
|
18328
|
+
},
|
|
18329
|
+
{
|
|
18330
|
+
"path": "label",
|
|
18331
|
+
"valueType": "string"
|
|
18332
|
+
},
|
|
18333
|
+
{
|
|
18334
|
+
"path": "severity",
|
|
18335
|
+
"valueType": "enum",
|
|
18336
|
+
"enumValues": ["warning", "error"]
|
|
18337
|
+
},
|
|
18338
|
+
{
|
|
18339
|
+
"path": "since",
|
|
18340
|
+
"valueType": "number"
|
|
18341
|
+
}
|
|
18342
|
+
],
|
|
18295
18343
|
"event-emitter": [
|
|
18296
18344
|
{
|
|
18297
18345
|
"path": "lastEvent.deviceId",
|
|
@@ -20267,6 +20315,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
20267
20315
|
const doorbellInterface = { getStatus: (input) => dispatch("doorbell", "doorbell", "getStatus", "query", input) };
|
|
20268
20316
|
const energySystemInterface = { getStatus: (input) => dispatch("energy-system", "energySystem", "getStatus", "query", input) };
|
|
20269
20317
|
const enumSensorInterface = { getStatus: (input) => dispatch("enum-sensor", "enumSensor", "getStatus", "query", input) };
|
|
20318
|
+
const errorInterface = { getStatus: (input) => dispatch("error", "error", "getStatus", "query", input) };
|
|
20270
20319
|
const eventEmitterInterface = { getStatus: (input) => dispatch("event-emitter", "eventEmitter", "getStatus", "query", input) };
|
|
20271
20320
|
const fanControlInterface = {
|
|
20272
20321
|
setPercentage: (input) => dispatch("fan-control", "fanControl", "setPercentage", "mutation", input),
|
|
@@ -20896,6 +20945,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
20896
20945
|
doorbell: createSliceHandle(stateSource, binding.deviceId, "doorbell"),
|
|
20897
20946
|
energySystem: createSliceHandle(stateSource, binding.deviceId, "energy-system"),
|
|
20898
20947
|
enumSensor: createSliceHandle(stateSource, binding.deviceId, "enum-sensor"),
|
|
20948
|
+
error: createSliceHandle(stateSource, binding.deviceId, "error"),
|
|
20899
20949
|
eventEmitter: createSliceHandle(stateSource, binding.deviceId, "event-emitter"),
|
|
20900
20950
|
fanControl: createSliceHandle(stateSource, binding.deviceId, "fan-control"),
|
|
20901
20951
|
featureProbe: createSliceHandle(stateSource, binding.deviceId, "feature-probe"),
|
|
@@ -20993,6 +21043,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
20993
21043
|
...bound("doorbell") ? { doorbell: doorbellInterface } : {},
|
|
20994
21044
|
...bound("energy-system") ? { energySystem: energySystemInterface } : {},
|
|
20995
21045
|
...bound("enum-sensor") ? { enumSensor: enumSensorInterface } : {},
|
|
21046
|
+
...bound("error") ? { error: errorInterface } : {},
|
|
20996
21047
|
...bound("event-emitter") ? { eventEmitter: eventEmitterInterface } : {},
|
|
20997
21048
|
...bound("fan-control") ? { fanControl: fanControlInterface } : {},
|
|
20998
21049
|
...bound("feature-probe") ? { featureProbe: featureProbeInterface } : {},
|
|
@@ -21094,7 +21145,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
21094
21145
|
* can answer "may a rule actuate this?" without importing the schema barrel
|
|
21095
21146
|
* (~144MB RSS per runner, D28).
|
|
21096
21147
|
*
|
|
21097
|
-
* Coverage:
|
|
21148
|
+
* Coverage: 107 device-scoped capabilities.
|
|
21098
21149
|
*/
|
|
21099
21150
|
var DEVICE_SCOPED_CAPS = new Set([
|
|
21100
21151
|
"accessories",
|
|
@@ -21133,6 +21184,7 @@ var DEVICE_SCOPED_CAPS = new Set([
|
|
|
21133
21184
|
"doorbell",
|
|
21134
21185
|
"energy-system",
|
|
21135
21186
|
"enum-sensor",
|
|
21187
|
+
"error",
|
|
21136
21188
|
"event-emitter",
|
|
21137
21189
|
"fan-control",
|
|
21138
21190
|
"feature-probe",
|
|
@@ -7955,7 +7955,7 @@ var MODEL_FORMATS = [
|
|
|
7955
7955
|
//#region src/generated/cap-vocabulary.ts
|
|
7956
7956
|
/**
|
|
7957
7957
|
* THE cap vocabulary (D920), projected from the declarations of every
|
|
7958
|
-
* `*.cap.ts` (D1050):
|
|
7958
|
+
* `*.cap.ts` (D1050): 208 caps (107 device, 101 system).
|
|
7959
7959
|
* Device caps in their declared picker order, then system caps by name.
|
|
7960
7960
|
*/
|
|
7961
7961
|
var CAP_VOCABULARY = {
|
|
@@ -16241,6 +16241,30 @@ var CAP_VOCABULARY = {
|
|
|
16241
16241
|
icon: "wifi-off"
|
|
16242
16242
|
}]
|
|
16243
16243
|
},
|
|
16244
|
+
"error": {
|
|
16245
|
+
scope: "device",
|
|
16246
|
+
noun: {
|
|
16247
|
+
en: "Fault",
|
|
16248
|
+
it: "Guasto"
|
|
16249
|
+
},
|
|
16250
|
+
state: [{
|
|
16251
|
+
kind: "boolean",
|
|
16252
|
+
field: "active",
|
|
16253
|
+
label: {
|
|
16254
|
+
en: "Fault",
|
|
16255
|
+
it: "Guasto"
|
|
16256
|
+
},
|
|
16257
|
+
whenTrue: {
|
|
16258
|
+
en: "When {device} reports a fault",
|
|
16259
|
+
it: "Quando {device} segnala un guasto"
|
|
16260
|
+
},
|
|
16261
|
+
whenFalse: {
|
|
16262
|
+
en: "When the fault of {device} clears",
|
|
16263
|
+
it: "Quando il guasto di {device} si risolve"
|
|
16264
|
+
},
|
|
16265
|
+
icon: "triangle-alert"
|
|
16266
|
+
}]
|
|
16267
|
+
},
|
|
16244
16268
|
"doorbell": {
|
|
16245
16269
|
scope: "device",
|
|
16246
16270
|
noun: {
|
|
@@ -17401,6 +17425,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
17401
17425
|
"embedding-encoder",
|
|
17402
17426
|
"energy-system",
|
|
17403
17427
|
"enum-sensor",
|
|
17428
|
+
"error",
|
|
17404
17429
|
"event-emitter",
|
|
17405
17430
|
"face-gallery",
|
|
17406
17431
|
"failure-contribution",
|
|
@@ -18292,6 +18317,29 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
18292
18317
|
"path": "timestamp",
|
|
18293
18318
|
"valueType": "boolean"
|
|
18294
18319
|
}],
|
|
18320
|
+
"error": [
|
|
18321
|
+
{
|
|
18322
|
+
"path": "active",
|
|
18323
|
+
"valueType": "boolean"
|
|
18324
|
+
},
|
|
18325
|
+
{
|
|
18326
|
+
"path": "code",
|
|
18327
|
+
"valueType": "string"
|
|
18328
|
+
},
|
|
18329
|
+
{
|
|
18330
|
+
"path": "label",
|
|
18331
|
+
"valueType": "string"
|
|
18332
|
+
},
|
|
18333
|
+
{
|
|
18334
|
+
"path": "severity",
|
|
18335
|
+
"valueType": "enum",
|
|
18336
|
+
"enumValues": ["warning", "error"]
|
|
18337
|
+
},
|
|
18338
|
+
{
|
|
18339
|
+
"path": "since",
|
|
18340
|
+
"valueType": "number"
|
|
18341
|
+
}
|
|
18342
|
+
],
|
|
18295
18343
|
"event-emitter": [
|
|
18296
18344
|
{
|
|
18297
18345
|
"path": "lastEvent.deviceId",
|
|
@@ -20267,6 +20315,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
20267
20315
|
const doorbellInterface = { getStatus: (input) => dispatch("doorbell", "doorbell", "getStatus", "query", input) };
|
|
20268
20316
|
const energySystemInterface = { getStatus: (input) => dispatch("energy-system", "energySystem", "getStatus", "query", input) };
|
|
20269
20317
|
const enumSensorInterface = { getStatus: (input) => dispatch("enum-sensor", "enumSensor", "getStatus", "query", input) };
|
|
20318
|
+
const errorInterface = { getStatus: (input) => dispatch("error", "error", "getStatus", "query", input) };
|
|
20270
20319
|
const eventEmitterInterface = { getStatus: (input) => dispatch("event-emitter", "eventEmitter", "getStatus", "query", input) };
|
|
20271
20320
|
const fanControlInterface = {
|
|
20272
20321
|
setPercentage: (input) => dispatch("fan-control", "fanControl", "setPercentage", "mutation", input),
|
|
@@ -20896,6 +20945,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
20896
20945
|
doorbell: createSliceHandle(stateSource, binding.deviceId, "doorbell"),
|
|
20897
20946
|
energySystem: createSliceHandle(stateSource, binding.deviceId, "energy-system"),
|
|
20898
20947
|
enumSensor: createSliceHandle(stateSource, binding.deviceId, "enum-sensor"),
|
|
20948
|
+
error: createSliceHandle(stateSource, binding.deviceId, "error"),
|
|
20899
20949
|
eventEmitter: createSliceHandle(stateSource, binding.deviceId, "event-emitter"),
|
|
20900
20950
|
fanControl: createSliceHandle(stateSource, binding.deviceId, "fan-control"),
|
|
20901
20951
|
featureProbe: createSliceHandle(stateSource, binding.deviceId, "feature-probe"),
|
|
@@ -20993,6 +21043,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
20993
21043
|
...bound("doorbell") ? { doorbell: doorbellInterface } : {},
|
|
20994
21044
|
...bound("energy-system") ? { energySystem: energySystemInterface } : {},
|
|
20995
21045
|
...bound("enum-sensor") ? { enumSensor: enumSensorInterface } : {},
|
|
21046
|
+
...bound("error") ? { error: errorInterface } : {},
|
|
20996
21047
|
...bound("event-emitter") ? { eventEmitter: eventEmitterInterface } : {},
|
|
20997
21048
|
...bound("fan-control") ? { fanControl: fanControlInterface } : {},
|
|
20998
21049
|
...bound("feature-probe") ? { featureProbe: featureProbeInterface } : {},
|
|
@@ -21094,7 +21145,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
21094
21145
|
* can answer "may a rule actuate this?" without importing the schema barrel
|
|
21095
21146
|
* (~144MB RSS per runner, D28).
|
|
21096
21147
|
*
|
|
21097
|
-
* Coverage:
|
|
21148
|
+
* Coverage: 107 device-scoped capabilities.
|
|
21098
21149
|
*/
|
|
21099
21150
|
var DEVICE_SCOPED_CAPS = new Set([
|
|
21100
21151
|
"accessories",
|
|
@@ -21133,6 +21184,7 @@ var DEVICE_SCOPED_CAPS = new Set([
|
|
|
21133
21184
|
"doorbell",
|
|
21134
21185
|
"energy-system",
|
|
21135
21186
|
"enum-sensor",
|
|
21187
|
+
"error",
|
|
21136
21188
|
"event-emitter",
|
|
21137
21189
|
"fan-control",
|
|
21138
21190
|
"feature-probe",
|