@camstack/types 1.2.555 → 1.2.557

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.
Files changed (57) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/addon/fake-addon-context.d.ts +3 -0
  3. package/dist/addon.js +2 -2
  4. package/dist/addon.mjs +2 -2
  5. package/dist/audit/device-transition.d.ts +53 -0
  6. package/dist/automation/action.d.ts +24 -54
  7. package/dist/automation/draft/draft-json.d.ts +1 -1
  8. package/dist/automation/draft/index.d.ts +0 -1
  9. package/dist/automation/index.d.ts +3 -2
  10. package/dist/automation/normalize-units.d.ts +3 -3
  11. package/dist/automation/offered.d.ts +18 -0
  12. package/dist/automation/recipe.d.ts +1156 -2598
  13. package/dist/automation/scheduler.d.ts +48 -108
  14. package/dist/automation/step-runner.d.ts +7 -0
  15. package/dist/capabilities/action-source.cap.d.ts +12 -27
  16. package/dist/capabilities/actions.cap.d.ts +84 -189
  17. package/dist/capabilities/device-export.cap.d.ts +36 -1
  18. package/dist/capabilities/hero-layout.cap.d.ts +92 -0
  19. package/dist/capabilities/index.d.ts +3 -3
  20. package/dist/capabilities/notification-rules.cap.d.ts +237 -0
  21. package/dist/capabilities/osd-manager.cap.d.ts +96 -0
  22. package/dist/capabilities/remote.cap.d.ts +2 -2
  23. package/dist/capabilities/scene-monitor.cap.d.ts +1 -1
  24. package/dist/capabilities/schedulers.cap.d.ts +96 -216
  25. package/dist/client.d.ts +1 -1
  26. package/dist/client.js +96 -11
  27. package/dist/client.mjs +95 -12
  28. package/dist/device/cap-vocabulary/action-index.d.ts +32 -0
  29. package/dist/device/cap-vocabulary/index.d.ts +2 -2
  30. package/dist/device/device-do-actions.d.ts +3 -105
  31. package/dist/device/export-name.d.ts +65 -0
  32. package/dist/device/hero/hero-contribution-kit.d.ts +3 -0
  33. package/dist/device/hero/hero-fragment.d.ts +3 -0
  34. package/dist/device/hero/hero-measurement.d.ts +76 -0
  35. package/dist/device/hero/hero-model.d.ts +91 -0
  36. package/dist/device/hero/hero-row.d.ts +67 -1
  37. package/dist/device/hero/index.d.ts +1 -0
  38. package/dist/enums/event-category.d.ts +9 -0
  39. package/dist/enums.js +1 -1
  40. package/dist/enums.mjs +1 -1
  41. package/dist/{event-category-78tcBemo.mjs → event-category-Dv-Gcv1f.mjs} +9 -0
  42. package/dist/{event-category-BC4RRerT.js → event-category-Ps2LC8dN.js} +9 -0
  43. package/dist/generated/addon-api.d.ts +7 -0
  44. package/dist/generated/method-access-map.d.ts +1 -1
  45. package/dist/generated/system-proxy.d.ts +1 -1
  46. package/dist/index.d.ts +8 -7
  47. package/dist/index.js +2412 -2143
  48. package/dist/index.mjs +2374 -2127
  49. package/dist/notification/alarm-steps.d.ts +18 -0
  50. package/dist/notification/system-event-families.d.ts +5 -0
  51. package/dist/notification/system-event-filters.d.ts +1 -1
  52. package/dist/remote/remote-config.d.ts +5 -5
  53. package/dist/{sleep-4qch9WKa.js → sleep-1RkA30Y1.js} +102 -1
  54. package/dist/{sleep-Ba1dJYDo.mjs → sleep-DyIxjZZt.mjs} +79 -2
  55. package/dist/testing.js +3 -3
  56. package/dist/testing.mjs +3 -3
  57. package/package.json +1 -1
@@ -155,6 +155,7 @@ export declare const OsdSlotBindingSchema: z.ZodObject<{
155
155
  "device-attention-resolved": "device-attention-resolved";
156
156
  "device-battery-low": "device-battery-low";
157
157
  "device-battery-normal": "device-battery-normal";
158
+ "device-command": "device-command";
158
159
  "device-consumable-low": "device-consumable-low";
159
160
  "device-consumable-normal": "device-consumable-normal";
160
161
  "device-disabled": "device-disabled";
@@ -190,6 +191,21 @@ export declare const OsdSlotBindingSchema: z.ZodObject<{
190
191
  excludeDeviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
191
192
  nodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
192
193
  packageNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
194
+ commandActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
195
+ commandOutcomes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
196
+ already: "already";
197
+ confirmed: "confirmed";
198
+ failed: "failed";
199
+ unconfirmed: "unconfirmed";
200
+ }>>>;
201
+ commandActorKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
202
+ action: "action";
203
+ addon: "addon";
204
+ composition: "composition";
205
+ node: "node";
206
+ scheduler: "scheduler";
207
+ user: "user";
208
+ }>>>;
193
209
  consumableLowPercent: z.ZodOptional<z.ZodNumber>;
194
210
  }, z.core.$strip>>;
195
211
  customZones: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -340,6 +356,7 @@ export declare const OsdSlotViewSchema: z.ZodObject<{
340
356
  "device-attention-resolved": "device-attention-resolved";
341
357
  "device-battery-low": "device-battery-low";
342
358
  "device-battery-normal": "device-battery-normal";
359
+ "device-command": "device-command";
343
360
  "device-consumable-low": "device-consumable-low";
344
361
  "device-consumable-normal": "device-consumable-normal";
345
362
  "device-disabled": "device-disabled";
@@ -375,6 +392,21 @@ export declare const OsdSlotViewSchema: z.ZodObject<{
375
392
  excludeDeviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
376
393
  nodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
377
394
  packageNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
395
+ commandActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
396
+ commandOutcomes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
397
+ already: "already";
398
+ confirmed: "confirmed";
399
+ failed: "failed";
400
+ unconfirmed: "unconfirmed";
401
+ }>>>;
402
+ commandActorKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
403
+ action: "action";
404
+ addon: "addon";
405
+ composition: "composition";
406
+ node: "node";
407
+ scheduler: "scheduler";
408
+ user: "user";
409
+ }>>>;
378
410
  consumableLowPercent: z.ZodOptional<z.ZodNumber>;
379
411
  }, z.core.$strip>>;
380
412
  customZones: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -581,6 +613,7 @@ export declare const osdManagerCapability: {
581
613
  "device-attention-resolved": "device-attention-resolved";
582
614
  "device-battery-low": "device-battery-low";
583
615
  "device-battery-normal": "device-battery-normal";
616
+ "device-command": "device-command";
584
617
  "device-consumable-low": "device-consumable-low";
585
618
  "device-consumable-normal": "device-consumable-normal";
586
619
  "device-disabled": "device-disabled";
@@ -616,6 +649,21 @@ export declare const osdManagerCapability: {
616
649
  excludeDeviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
617
650
  nodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
618
651
  packageNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
652
+ commandActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
653
+ commandOutcomes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
654
+ already: "already";
655
+ confirmed: "confirmed";
656
+ failed: "failed";
657
+ unconfirmed: "unconfirmed";
658
+ }>>>;
659
+ commandActorKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
660
+ action: "action";
661
+ addon: "addon";
662
+ composition: "composition";
663
+ node: "node";
664
+ scheduler: "scheduler";
665
+ user: "user";
666
+ }>>>;
619
667
  consumableLowPercent: z.ZodOptional<z.ZodNumber>;
620
668
  }, z.core.$strip>>;
621
669
  customZones: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -834,6 +882,7 @@ export declare const osdManagerCapability: {
834
882
  "device-attention-resolved": "device-attention-resolved";
835
883
  "device-battery-low": "device-battery-low";
836
884
  "device-battery-normal": "device-battery-normal";
885
+ "device-command": "device-command";
837
886
  "device-consumable-low": "device-consumable-low";
838
887
  "device-consumable-normal": "device-consumable-normal";
839
888
  "device-disabled": "device-disabled";
@@ -869,6 +918,21 @@ export declare const osdManagerCapability: {
869
918
  excludeDeviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
870
919
  nodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
871
920
  packageNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
921
+ commandActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
922
+ commandOutcomes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
923
+ already: "already";
924
+ confirmed: "confirmed";
925
+ failed: "failed";
926
+ unconfirmed: "unconfirmed";
927
+ }>>>;
928
+ commandActorKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
929
+ action: "action";
930
+ addon: "addon";
931
+ composition: "composition";
932
+ node: "node";
933
+ scheduler: "scheduler";
934
+ user: "user";
935
+ }>>>;
872
936
  consumableLowPercent: z.ZodOptional<z.ZodNumber>;
873
937
  }, z.core.$strip>>;
874
938
  customZones: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1018,6 +1082,7 @@ export declare const osdManagerCapability: {
1018
1082
  "device-attention-resolved": "device-attention-resolved";
1019
1083
  "device-battery-low": "device-battery-low";
1020
1084
  "device-battery-normal": "device-battery-normal";
1085
+ "device-command": "device-command";
1021
1086
  "device-consumable-low": "device-consumable-low";
1022
1087
  "device-consumable-normal": "device-consumable-normal";
1023
1088
  "device-disabled": "device-disabled";
@@ -1053,6 +1118,21 @@ export declare const osdManagerCapability: {
1053
1118
  excludeDeviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1054
1119
  nodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1055
1120
  packageNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
1121
+ commandActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1122
+ commandOutcomes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1123
+ already: "already";
1124
+ confirmed: "confirmed";
1125
+ failed: "failed";
1126
+ unconfirmed: "unconfirmed";
1127
+ }>>>;
1128
+ commandActorKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1129
+ action: "action";
1130
+ addon: "addon";
1131
+ composition: "composition";
1132
+ node: "node";
1133
+ scheduler: "scheduler";
1134
+ user: "user";
1135
+ }>>>;
1056
1136
  consumableLowPercent: z.ZodOptional<z.ZodNumber>;
1057
1137
  }, z.core.$strip>>;
1058
1138
  customZones: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1246,6 +1326,7 @@ export declare const osdManagerCapability: {
1246
1326
  "device-attention-resolved": "device-attention-resolved";
1247
1327
  "device-battery-low": "device-battery-low";
1248
1328
  "device-battery-normal": "device-battery-normal";
1329
+ "device-command": "device-command";
1249
1330
  "device-consumable-low": "device-consumable-low";
1250
1331
  "device-consumable-normal": "device-consumable-normal";
1251
1332
  "device-disabled": "device-disabled";
@@ -1281,6 +1362,21 @@ export declare const osdManagerCapability: {
1281
1362
  excludeDeviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1282
1363
  nodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1283
1364
  packageNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
1365
+ commandActions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1366
+ commandOutcomes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1367
+ already: "already";
1368
+ confirmed: "confirmed";
1369
+ failed: "failed";
1370
+ unconfirmed: "unconfirmed";
1371
+ }>>>;
1372
+ commandActorKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1373
+ action: "action";
1374
+ addon: "addon";
1375
+ composition: "composition";
1376
+ node: "node";
1377
+ scheduler: "scheduler";
1378
+ user: "user";
1379
+ }>>>;
1284
1380
  consumableLowPercent: z.ZodOptional<z.ZodNumber>;
1285
1381
  }, z.core.$strip>>;
1286
1382
  customZones: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -187,8 +187,8 @@ export declare const remoteCapability: {
187
187
  defaultTransmitterId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
188
188
  bindings: z.ZodRecord<z.ZodString, z.ZodObject<{
189
189
  action: z.ZodObject<{
190
- deviceId: z.ZodNumber;
191
190
  kind: z.ZodLiteral<"cap">;
191
+ deviceId: z.ZodNumber;
192
192
  cap: z.ZodString;
193
193
  method: z.ZodString;
194
194
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -249,8 +249,8 @@ export declare const remoteCapability: {
249
249
  defaultTransmitterId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
250
250
  bindings: z.ZodRecord<z.ZodString, z.ZodObject<{
251
251
  action: z.ZodObject<{
252
- deviceId: z.ZodNumber;
253
252
  kind: z.ZodLiteral<"cap">;
253
+ deviceId: z.ZodNumber;
254
254
  cap: z.ZodString;
255
255
  method: z.ZodString;
256
256
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -915,7 +915,7 @@ export declare const sceneMonitorCapability: {
915
915
  * instead of failing silently weeks later.
916
916
  *
917
917
  * Reachable from three surfaces on this one mutation: the scene card, a
918
- * notification button (an `onTrigger` sequence with a `kind:'cap'` step —
918
+ * notification button (an `onTrigger` sequence with a `kind:'command'` step —
919
919
  * no new Notification-Center code at all), and tRPC for scripts.
920
920
  */
921
921
  readonly resetScene: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{