@camstack/types 1.2.569 → 1.2.570

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.
@@ -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): 207 caps (106 device, 101 system).
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: 106 device-scoped capabilities.
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): 207 caps (106 device, 101 system).
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: 106 device-scoped capabilities.
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.569",
3
+ "version": "1.2.570",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",