@camstack/types 1.2.267 → 1.2.269

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 (69) hide show
  1. package/dist/addon.js +4 -4
  2. package/dist/addon.mjs +3 -3
  3. package/dist/capabilities/battery.cap.d.ts +17 -2
  4. package/dist/capabilities/capability-definition.d.ts +30 -1
  5. package/dist/capabilities/composer.cap.d.ts +105 -0
  6. package/dist/capabilities/consumables.cap.d.ts +79 -0
  7. package/dist/capabilities/core-blocks.cap.d.ts +1213 -104
  8. package/dist/capabilities/device-extension.cap.d.ts +12 -13
  9. package/dist/capabilities/device-manager.cap.d.ts +4 -4
  10. package/dist/capabilities/device-state.cap.d.ts +186 -2
  11. package/dist/capabilities/doorbell.cap.d.ts +4 -0
  12. package/dist/capabilities/index.d.ts +3 -3
  13. package/dist/capabilities/media-player.cap.d.ts +4 -4
  14. package/dist/capabilities/recording-archive.cap.d.ts +3 -3
  15. package/dist/catalogs/sensor-active-state.d.ts +25 -1
  16. package/dist/composition/composition-events.d.ts +42 -0
  17. package/dist/composition/composition-graph.d.ts +42 -9
  18. package/dist/composition/composition-items.d.ts +25 -0
  19. package/dist/composition/composition-report.d.ts +115 -12
  20. package/dist/composition/composition.d.ts +162 -3
  21. package/dist/composition/customization-name.d.ts +6 -0
  22. package/dist/composition/evaluate-field.d.ts +20 -0
  23. package/dist/composition/examples.d.ts +33 -0
  24. package/dist/composition/expression-kinds.d.ts +1 -0
  25. package/dist/composition/field-kinds.d.ts +42 -0
  26. package/dist/composition/index.d.ts +2 -0
  27. package/dist/composition/plan-result.d.ts +18 -0
  28. package/dist/composition/state-fields.d.ts +6 -0
  29. package/dist/composition/validate-composition.d.ts +44 -9
  30. package/dist/composition-BAH3n-zq.js +2582 -0
  31. package/dist/composition-D5BQywfe.mjs +2055 -0
  32. package/dist/device/device-context.d.ts +9 -0
  33. package/dist/device/device-runtime-state.d.ts +15 -1
  34. package/dist/device/index.d.ts +1 -1
  35. package/dist/device-extension/slot-descriptor.d.ts +8 -11
  36. package/dist/device-extension/slot-provider.d.ts +0 -2
  37. package/dist/enums/event-category.d.ts +25 -0
  38. package/dist/enums.js +1 -1
  39. package/dist/enums.mjs +1 -1
  40. package/dist/err-msg-DX6i_MY4.mjs +339 -0
  41. package/dist/err-msg-Dx2Kor0g.js +368 -0
  42. package/dist/{event-category-BVDXG4tB.mjs → event-category-C5xZWqz6.mjs} +31 -1
  43. package/dist/{event-category-BVfsrBYA.js → event-category-MbnB-6AN.js} +48 -0
  44. package/dist/expression/ast.d.ts +2 -0
  45. package/dist/expression/builtins.d.ts +9 -0
  46. package/dist/expression/evaluator.d.ts +8 -2
  47. package/dist/expression/expression-source.d.ts +26 -4
  48. package/dist/expression/index.d.ts +6 -6
  49. package/dist/generated/addon-api.d.ts +42 -0
  50. package/dist/generated/device-proxy.d.ts +1 -1
  51. package/dist/generated/method-access-map.d.ts +1 -1
  52. package/dist/generated/method-device-selectors.d.ts +2 -2
  53. package/dist/generated/system-proxy.d.ts +2 -2
  54. package/dist/index.d.ts +7 -6
  55. package/dist/index.js +1687 -1833
  56. package/dist/index.mjs +1359 -1550
  57. package/dist/interfaces/kernel-abstractions.d.ts +16 -0
  58. package/dist/interfaces/recording-config.d.ts +3 -3
  59. package/dist/interfaces/status-overlay.d.ts +42 -0
  60. package/dist/node.d.ts +1 -0
  61. package/dist/node.js +29 -8
  62. package/dist/node.mjs +23 -3
  63. package/dist/{sleep-8K9gue-H.js → sleep-Bg0IB7gg.js} +10 -367
  64. package/dist/{sleep-DC-wdyeS.mjs → sleep-E6eD4yQS.mjs} +11 -344
  65. package/package.json +1 -1
  66. package/dist/canonical-hash-CPK2Dy60.mjs +0 -715
  67. package/dist/canonical-hash-CSE4ioRi.js +0 -792
  68. package/dist/err-msg-COpsHMw2.js +0 -18
  69. package/dist/err-msg-IQTHeDzc.mjs +0 -13
@@ -58,12 +58,15 @@ export declare function coreBlockIdFromAddonId(addonId: string): string | null;
58
58
  export declare const CoreBlockPlacementSchema: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
59
59
  export type CoreBlockPlacement = z.infer<typeof CoreBlockPlacementSchema>;
60
60
  /** What a block's process is doing. Mirrors the addon runner's own lifecycle so
61
- * a failing block reads the same way a failing addon does. */
61
+ * a failing block reads the same way a failing addon does. `degraded` is a
62
+ * composition on an existing device with a field handed back to the native
63
+ * provider while its source is unavailable (S1b, D663); the error names it. */
62
64
  export declare const CoreBlockStatusSchema: z.ZodEnum<{
63
65
  running: "running";
64
66
  failed: "failed";
65
67
  stopped: "stopped";
66
68
  starting: "starting";
69
+ degraded: "degraded";
67
70
  }>;
68
71
  export type CoreBlockStatus = z.infer<typeof CoreBlockStatusSchema>;
69
72
  /** Client-authored fields. */
@@ -140,6 +143,7 @@ export declare const CoreBlockSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject
140
143
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
141
144
  kind: z.ZodLiteral<"fields">;
142
145
  cap: z.ZodString;
146
+ enabled: z.ZodOptional<z.ZodBoolean>;
143
147
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
144
148
  source: z.ZodObject<{
145
149
  addonId: z.ZodString;
@@ -167,6 +171,36 @@ export declare const CoreBlockSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject
167
171
  kind: z.ZodLiteral<"code">;
168
172
  code: z.ZodString;
169
173
  }, z.core.$strip>], "kind">>;
174
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
175
+ label: z.ZodString;
176
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
177
+ source: z.ZodObject<{
178
+ addonId: z.ZodString;
179
+ stableId: z.ZodString;
180
+ }, z.core.$strip>;
181
+ cap: z.ZodString;
182
+ fieldPath: z.ZodString;
183
+ kind: z.ZodLiteral<"from">;
184
+ }, z.core.$strip>, z.ZodObject<{
185
+ kind: z.ZodLiteral<"expression">;
186
+ expr: z.ZodString;
187
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
188
+ source: z.ZodObject<{
189
+ addonId: z.ZodString;
190
+ stableId: z.ZodString;
191
+ }, z.core.$strip>;
192
+ cap: z.ZodString;
193
+ fieldPath: z.ZodString;
194
+ kind: z.ZodLiteral<"from">;
195
+ }, z.core.$strip>, z.ZodObject<{
196
+ kind: z.ZodLiteral<"literal">;
197
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
198
+ }, z.core.$strip>], "kind">>;
199
+ }, z.core.$strip>, z.ZodObject<{
200
+ kind: z.ZodLiteral<"code">;
201
+ code: z.ZodString;
202
+ }, z.core.$strip>], "kind">>;
203
+ }, z.core.$strip>>>;
170
204
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
171
205
  kind: z.ZodLiteral<"forward">;
172
206
  source: z.ZodObject<{
@@ -182,6 +216,7 @@ export declare const CoreBlockSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject
182
216
  }, z.core.$strip>, z.ZodObject<{
183
217
  kind: z.ZodLiteral<"passthrough">;
184
218
  cap: z.ZodString;
219
+ enabled: z.ZodOptional<z.ZodBoolean>;
185
220
  source: z.ZodObject<{
186
221
  addonId: z.ZodString;
187
222
  stableId: z.ZodString;
@@ -191,9 +226,16 @@ export declare const CoreBlockSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject
191
226
  }, z.core.$strip>], "kind">;
192
227
  export type CoreBlockSource = z.infer<typeof CoreBlockSourceSchema>;
193
228
  export type CoreBlockSourceKind = CoreBlockSource['kind'];
194
- /** The client-authored half of a composition block. No `code`, no placement (hub-only; Phase 7). */
229
+ /**
230
+ * The client-authored half of a composition block. No `code`, no placement (hub-only; Phase 7).
231
+ *
232
+ * `name`: REQUIRED for a `new` target — the block's name IS the device's name
233
+ * (D659). ABSENT for an `existing` target — a customization has no name of its
234
+ * own; the server derives one (`customizationBlockName`, D663) and refuses a
235
+ * client-sent name by name.
236
+ */
195
237
  export declare const CompositionBlockInputSchema: z.ZodObject<{
196
- name: z.ZodString;
238
+ name: z.ZodOptional<z.ZodString>;
197
239
  enabled: z.ZodBoolean;
198
240
  composition: z.ZodObject<{
199
241
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -210,6 +252,7 @@ export declare const CompositionBlockInputSchema: z.ZodObject<{
210
252
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
211
253
  kind: z.ZodLiteral<"fields">;
212
254
  cap: z.ZodString;
255
+ enabled: z.ZodOptional<z.ZodBoolean>;
213
256
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
214
257
  source: z.ZodObject<{
215
258
  addonId: z.ZodString;
@@ -237,6 +280,36 @@ export declare const CompositionBlockInputSchema: z.ZodObject<{
237
280
  kind: z.ZodLiteral<"code">;
238
281
  code: z.ZodString;
239
282
  }, z.core.$strip>], "kind">>;
283
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
284
+ label: z.ZodString;
285
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
286
+ source: z.ZodObject<{
287
+ addonId: z.ZodString;
288
+ stableId: z.ZodString;
289
+ }, z.core.$strip>;
290
+ cap: z.ZodString;
291
+ fieldPath: z.ZodString;
292
+ kind: z.ZodLiteral<"from">;
293
+ }, z.core.$strip>, z.ZodObject<{
294
+ kind: z.ZodLiteral<"expression">;
295
+ expr: z.ZodString;
296
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
297
+ source: z.ZodObject<{
298
+ addonId: z.ZodString;
299
+ stableId: z.ZodString;
300
+ }, z.core.$strip>;
301
+ cap: z.ZodString;
302
+ fieldPath: z.ZodString;
303
+ kind: z.ZodLiteral<"from">;
304
+ }, z.core.$strip>, z.ZodObject<{
305
+ kind: z.ZodLiteral<"literal">;
306
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
307
+ }, z.core.$strip>], "kind">>;
308
+ }, z.core.$strip>, z.ZodObject<{
309
+ kind: z.ZodLiteral<"code">;
310
+ code: z.ZodString;
311
+ }, z.core.$strip>], "kind">>;
312
+ }, z.core.$strip>>>;
240
313
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
241
314
  kind: z.ZodLiteral<"forward">;
242
315
  source: z.ZodObject<{
@@ -252,6 +325,7 @@ export declare const CompositionBlockInputSchema: z.ZodObject<{
252
325
  }, z.core.$strip>, z.ZodObject<{
253
326
  kind: z.ZodLiteral<"passthrough">;
254
327
  cap: z.ZodString;
328
+ enabled: z.ZodOptional<z.ZodBoolean>;
255
329
  source: z.ZodObject<{
256
330
  addonId: z.ZodString;
257
331
  stableId: z.ZodString;
@@ -277,6 +351,7 @@ export declare const CoreBlockSchema: z.ZodObject<{
277
351
  failed: "failed";
278
352
  stopped: "stopped";
279
353
  starting: "starting";
354
+ degraded: "degraded";
280
355
  }>;
281
356
  lastError: z.ZodOptional<z.ZodString>;
282
357
  lastChangedAt: z.ZodNumber;
@@ -338,6 +413,7 @@ export declare const CoreBlockSchema: z.ZodObject<{
338
413
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
339
414
  kind: z.ZodLiteral<"fields">;
340
415
  cap: z.ZodString;
416
+ enabled: z.ZodOptional<z.ZodBoolean>;
341
417
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
342
418
  source: z.ZodObject<{
343
419
  addonId: z.ZodString;
@@ -365,6 +441,36 @@ export declare const CoreBlockSchema: z.ZodObject<{
365
441
  kind: z.ZodLiteral<"code">;
366
442
  code: z.ZodString;
367
443
  }, z.core.$strip>], "kind">>;
444
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
445
+ label: z.ZodString;
446
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
447
+ source: z.ZodObject<{
448
+ addonId: z.ZodString;
449
+ stableId: z.ZodString;
450
+ }, z.core.$strip>;
451
+ cap: z.ZodString;
452
+ fieldPath: z.ZodString;
453
+ kind: z.ZodLiteral<"from">;
454
+ }, z.core.$strip>, z.ZodObject<{
455
+ kind: z.ZodLiteral<"expression">;
456
+ expr: z.ZodString;
457
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
458
+ source: z.ZodObject<{
459
+ addonId: z.ZodString;
460
+ stableId: z.ZodString;
461
+ }, z.core.$strip>;
462
+ cap: z.ZodString;
463
+ fieldPath: z.ZodString;
464
+ kind: z.ZodLiteral<"from">;
465
+ }, z.core.$strip>, z.ZodObject<{
466
+ kind: z.ZodLiteral<"literal">;
467
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
468
+ }, z.core.$strip>], "kind">>;
469
+ }, z.core.$strip>, z.ZodObject<{
470
+ kind: z.ZodLiteral<"code">;
471
+ code: z.ZodString;
472
+ }, z.core.$strip>], "kind">>;
473
+ }, z.core.$strip>>>;
368
474
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
369
475
  kind: z.ZodLiteral<"forward">;
370
476
  source: z.ZodObject<{
@@ -380,6 +486,7 @@ export declare const CoreBlockSchema: z.ZodObject<{
380
486
  }, z.core.$strip>, z.ZodObject<{
381
487
  kind: z.ZodLiteral<"passthrough">;
382
488
  cap: z.ZodString;
489
+ enabled: z.ZodOptional<z.ZodBoolean>;
383
490
  source: z.ZodObject<{
384
491
  addonId: z.ZodString;
385
492
  stableId: z.ZodString;
@@ -402,11 +509,17 @@ export declare const CompositionStateReadSchema: z.ZodDiscriminatedUnion<[z.ZodO
402
509
  failed: "failed";
403
510
  stopped: "stopped";
404
511
  starting: "starting";
512
+ degraded: "degraded";
405
513
  }>;
406
514
  reason: z.ZodOptional<z.ZodString>;
407
515
  fields: z.ZodArray<z.ZodObject<{
408
516
  cap: z.ZodString;
409
517
  path: z.ZodString;
518
+ item: z.ZodOptional<z.ZodObject<{
519
+ arrayPath: z.ZodString;
520
+ key: z.ZodString;
521
+ label: z.ZodString;
522
+ }, z.core.$strip>>;
410
523
  state: z.ZodEnum<{
411
524
  unavailable: "unavailable";
412
525
  fresh: "fresh";
@@ -438,6 +551,7 @@ export declare const CompositionViewSchema: z.ZodObject<{
438
551
  failed: "failed";
439
552
  stopped: "stopped";
440
553
  starting: "starting";
554
+ degraded: "degraded";
441
555
  }>;
442
556
  lastError: z.ZodOptional<z.ZodString>;
443
557
  lastChangedAt: z.ZodNumber;
@@ -499,6 +613,7 @@ export declare const CompositionViewSchema: z.ZodObject<{
499
613
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
500
614
  kind: z.ZodLiteral<"fields">;
501
615
  cap: z.ZodString;
616
+ enabled: z.ZodOptional<z.ZodBoolean>;
502
617
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
503
618
  source: z.ZodObject<{
504
619
  addonId: z.ZodString;
@@ -526,6 +641,36 @@ export declare const CompositionViewSchema: z.ZodObject<{
526
641
  kind: z.ZodLiteral<"code">;
527
642
  code: z.ZodString;
528
643
  }, z.core.$strip>], "kind">>;
644
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
645
+ label: z.ZodString;
646
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
647
+ source: z.ZodObject<{
648
+ addonId: z.ZodString;
649
+ stableId: z.ZodString;
650
+ }, z.core.$strip>;
651
+ cap: z.ZodString;
652
+ fieldPath: z.ZodString;
653
+ kind: z.ZodLiteral<"from">;
654
+ }, z.core.$strip>, z.ZodObject<{
655
+ kind: z.ZodLiteral<"expression">;
656
+ expr: z.ZodString;
657
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
658
+ source: z.ZodObject<{
659
+ addonId: z.ZodString;
660
+ stableId: z.ZodString;
661
+ }, z.core.$strip>;
662
+ cap: z.ZodString;
663
+ fieldPath: z.ZodString;
664
+ kind: z.ZodLiteral<"from">;
665
+ }, z.core.$strip>, z.ZodObject<{
666
+ kind: z.ZodLiteral<"literal">;
667
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
668
+ }, z.core.$strip>], "kind">>;
669
+ }, z.core.$strip>, z.ZodObject<{
670
+ kind: z.ZodLiteral<"code">;
671
+ code: z.ZodString;
672
+ }, z.core.$strip>], "kind">>;
673
+ }, z.core.$strip>>>;
529
674
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
530
675
  kind: z.ZodLiteral<"forward">;
531
676
  source: z.ZodObject<{
@@ -541,6 +686,7 @@ export declare const CompositionViewSchema: z.ZodObject<{
541
686
  }, z.core.$strip>, z.ZodObject<{
542
687
  kind: z.ZodLiteral<"passthrough">;
543
688
  cap: z.ZodString;
689
+ enabled: z.ZodOptional<z.ZodBoolean>;
544
690
  source: z.ZodObject<{
545
691
  addonId: z.ZodString;
546
692
  stableId: z.ZodString;
@@ -559,11 +705,17 @@ export declare const CompositionViewSchema: z.ZodObject<{
559
705
  failed: "failed";
560
706
  stopped: "stopped";
561
707
  starting: "starting";
708
+ degraded: "degraded";
562
709
  }>;
563
710
  reason: z.ZodOptional<z.ZodString>;
564
711
  fields: z.ZodArray<z.ZodObject<{
565
712
  cap: z.ZodString;
566
713
  path: z.ZodString;
714
+ item: z.ZodOptional<z.ZodObject<{
715
+ arrayPath: z.ZodString;
716
+ key: z.ZodString;
717
+ label: z.ZodString;
718
+ }, z.core.$strip>>;
567
719
  state: z.ZodEnum<{
568
720
  unavailable: "unavailable";
569
721
  fresh: "fresh";
@@ -597,6 +749,7 @@ export declare const CompositionListReadSchema: z.ZodDiscriminatedUnion<[z.ZodOb
597
749
  failed: "failed";
598
750
  stopped: "stopped";
599
751
  starting: "starting";
752
+ degraded: "degraded";
600
753
  }>;
601
754
  lastError: z.ZodOptional<z.ZodString>;
602
755
  lastChangedAt: z.ZodNumber;
@@ -658,6 +811,7 @@ export declare const CompositionListReadSchema: z.ZodDiscriminatedUnion<[z.ZodOb
658
811
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
659
812
  kind: z.ZodLiteral<"fields">;
660
813
  cap: z.ZodString;
814
+ enabled: z.ZodOptional<z.ZodBoolean>;
661
815
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
662
816
  source: z.ZodObject<{
663
817
  addonId: z.ZodString;
@@ -685,6 +839,36 @@ export declare const CompositionListReadSchema: z.ZodDiscriminatedUnion<[z.ZodOb
685
839
  kind: z.ZodLiteral<"code">;
686
840
  code: z.ZodString;
687
841
  }, z.core.$strip>], "kind">>;
842
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
843
+ label: z.ZodString;
844
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
845
+ source: z.ZodObject<{
846
+ addonId: z.ZodString;
847
+ stableId: z.ZodString;
848
+ }, z.core.$strip>;
849
+ cap: z.ZodString;
850
+ fieldPath: z.ZodString;
851
+ kind: z.ZodLiteral<"from">;
852
+ }, z.core.$strip>, z.ZodObject<{
853
+ kind: z.ZodLiteral<"expression">;
854
+ expr: z.ZodString;
855
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
856
+ source: z.ZodObject<{
857
+ addonId: z.ZodString;
858
+ stableId: z.ZodString;
859
+ }, z.core.$strip>;
860
+ cap: z.ZodString;
861
+ fieldPath: z.ZodString;
862
+ kind: z.ZodLiteral<"from">;
863
+ }, z.core.$strip>, z.ZodObject<{
864
+ kind: z.ZodLiteral<"literal">;
865
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
866
+ }, z.core.$strip>], "kind">>;
867
+ }, z.core.$strip>, z.ZodObject<{
868
+ kind: z.ZodLiteral<"code">;
869
+ code: z.ZodString;
870
+ }, z.core.$strip>], "kind">>;
871
+ }, z.core.$strip>>>;
688
872
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
689
873
  kind: z.ZodLiteral<"forward">;
690
874
  source: z.ZodObject<{
@@ -700,6 +884,7 @@ export declare const CompositionListReadSchema: z.ZodDiscriminatedUnion<[z.ZodOb
700
884
  }, z.core.$strip>, z.ZodObject<{
701
885
  kind: z.ZodLiteral<"passthrough">;
702
886
  cap: z.ZodString;
887
+ enabled: z.ZodOptional<z.ZodBoolean>;
703
888
  source: z.ZodObject<{
704
889
  addonId: z.ZodString;
705
890
  stableId: z.ZodString;
@@ -718,11 +903,17 @@ export declare const CompositionListReadSchema: z.ZodDiscriminatedUnion<[z.ZodOb
718
903
  failed: "failed";
719
904
  stopped: "stopped";
720
905
  starting: "starting";
906
+ degraded: "degraded";
721
907
  }>;
722
908
  reason: z.ZodOptional<z.ZodString>;
723
909
  fields: z.ZodArray<z.ZodObject<{
724
910
  cap: z.ZodString;
725
911
  path: z.ZodString;
912
+ item: z.ZodOptional<z.ZodObject<{
913
+ arrayPath: z.ZodString;
914
+ key: z.ZodString;
915
+ label: z.ZodString;
916
+ }, z.core.$strip>>;
726
917
  state: z.ZodEnum<{
727
918
  unavailable: "unavailable";
728
919
  fresh: "fresh";
@@ -760,6 +951,7 @@ export declare const CompositionGetReadSchema: z.ZodDiscriminatedUnion<[z.ZodObj
760
951
  failed: "failed";
761
952
  stopped: "stopped";
762
953
  starting: "starting";
954
+ degraded: "degraded";
763
955
  }>;
764
956
  lastError: z.ZodOptional<z.ZodString>;
765
957
  lastChangedAt: z.ZodNumber;
@@ -821,6 +1013,7 @@ export declare const CompositionGetReadSchema: z.ZodDiscriminatedUnion<[z.ZodObj
821
1013
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
822
1014
  kind: z.ZodLiteral<"fields">;
823
1015
  cap: z.ZodString;
1016
+ enabled: z.ZodOptional<z.ZodBoolean>;
824
1017
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
825
1018
  source: z.ZodObject<{
826
1019
  addonId: z.ZodString;
@@ -848,6 +1041,36 @@ export declare const CompositionGetReadSchema: z.ZodDiscriminatedUnion<[z.ZodObj
848
1041
  kind: z.ZodLiteral<"code">;
849
1042
  code: z.ZodString;
850
1043
  }, z.core.$strip>], "kind">>;
1044
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1045
+ label: z.ZodString;
1046
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1047
+ source: z.ZodObject<{
1048
+ addonId: z.ZodString;
1049
+ stableId: z.ZodString;
1050
+ }, z.core.$strip>;
1051
+ cap: z.ZodString;
1052
+ fieldPath: z.ZodString;
1053
+ kind: z.ZodLiteral<"from">;
1054
+ }, z.core.$strip>, z.ZodObject<{
1055
+ kind: z.ZodLiteral<"expression">;
1056
+ expr: z.ZodString;
1057
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1058
+ source: z.ZodObject<{
1059
+ addonId: z.ZodString;
1060
+ stableId: z.ZodString;
1061
+ }, z.core.$strip>;
1062
+ cap: z.ZodString;
1063
+ fieldPath: z.ZodString;
1064
+ kind: z.ZodLiteral<"from">;
1065
+ }, z.core.$strip>, z.ZodObject<{
1066
+ kind: z.ZodLiteral<"literal">;
1067
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1068
+ }, z.core.$strip>], "kind">>;
1069
+ }, z.core.$strip>, z.ZodObject<{
1070
+ kind: z.ZodLiteral<"code">;
1071
+ code: z.ZodString;
1072
+ }, z.core.$strip>], "kind">>;
1073
+ }, z.core.$strip>>>;
851
1074
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
852
1075
  kind: z.ZodLiteral<"forward">;
853
1076
  source: z.ZodObject<{
@@ -863,6 +1086,7 @@ export declare const CompositionGetReadSchema: z.ZodDiscriminatedUnion<[z.ZodObj
863
1086
  }, z.core.$strip>, z.ZodObject<{
864
1087
  kind: z.ZodLiteral<"passthrough">;
865
1088
  cap: z.ZodString;
1089
+ enabled: z.ZodOptional<z.ZodBoolean>;
866
1090
  source: z.ZodObject<{
867
1091
  addonId: z.ZodString;
868
1092
  stableId: z.ZodString;
@@ -881,11 +1105,17 @@ export declare const CompositionGetReadSchema: z.ZodDiscriminatedUnion<[z.ZodObj
881
1105
  failed: "failed";
882
1106
  stopped: "stopped";
883
1107
  starting: "starting";
1108
+ degraded: "degraded";
884
1109
  }>;
885
1110
  reason: z.ZodOptional<z.ZodString>;
886
1111
  fields: z.ZodArray<z.ZodObject<{
887
1112
  cap: z.ZodString;
888
1113
  path: z.ZodString;
1114
+ item: z.ZodOptional<z.ZodObject<{
1115
+ arrayPath: z.ZodString;
1116
+ key: z.ZodString;
1117
+ label: z.ZodString;
1118
+ }, z.core.$strip>>;
889
1119
  state: z.ZodEnum<{
890
1120
  unavailable: "unavailable";
891
1121
  fresh: "fresh";
@@ -905,96 +1135,301 @@ export declare const CompositionGetReadSchema: z.ZodDiscriminatedUnion<[z.ZodObj
905
1135
  reason: z.ZodString;
906
1136
  }, z.core.$strip>], "state">;
907
1137
  export type CompositionGetRead = z.infer<typeof CompositionGetReadSchema>;
908
- /** What a compile attempt produced. */
909
- export declare const CoreBlockCompileResultSchema: z.ZodObject<{
910
- ok: z.ZodBoolean;
911
- error: z.ZodOptional<z.ZodString>;
912
- line: z.ZodOptional<z.ZodNumber>;
913
- column: z.ZodOptional<z.ZodNumber>;
914
- }, z.core.$strip>;
915
- export type CoreBlockCompileResult = z.infer<typeof CoreBlockCompileResultSchema>;
916
- export declare const coreBlocksCapability: {
917
- readonly name: "core-blocks";
918
- readonly scope: "system";
919
- readonly mode: "singleton";
920
- readonly methods: {
921
- readonly list: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
922
- blocks: z.ZodArray<z.ZodObject<{
923
- name: z.ZodString;
924
- code: z.ZodString;
925
- enabled: z.ZodBoolean;
926
- placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
927
- integrationId: z.ZodOptional<z.ZodString>;
928
- id: z.ZodString;
929
- createdAt: z.ZodNumber;
930
- updatedAt: z.ZodNumber;
931
- createdBy: z.ZodString;
932
- status: z.ZodEnum<{
933
- running: "running";
934
- failed: "failed";
935
- stopped: "stopped";
936
- starting: "starting";
937
- }>;
938
- lastError: z.ZodOptional<z.ZodString>;
939
- lastChangedAt: z.ZodNumber;
940
- source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
941
- kind: z.ZodLiteral<"code">;
942
- }, z.core.$strip>, z.ZodObject<{
943
- kind: z.ZodLiteral<"recipe">;
944
- recipe: z.ZodObject<{
945
- triggers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
946
- kind: z.ZodLiteral<"device-state">;
947
- deviceId: z.ZodNumber;
948
- cap: z.ZodString;
949
- fieldPath: z.ZodString;
950
- becomes: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
951
- edge: z.ZodOptional<z.ZodBoolean>;
952
- forMs: z.ZodOptional<z.ZodNumber>;
953
- debounceMs: z.ZodOptional<z.ZodNumber>;
954
- }, z.core.$strip>, z.ZodObject<{
955
- kind: z.ZodLiteral<"device-event">;
956
- category: z.ZodString;
957
- deviceId: z.ZodOptional<z.ZodNumber>;
958
- }, z.core.$strip>, z.ZodObject<{
959
- kind: z.ZodLiteral<"schedule">;
960
- cron: z.ZodString;
961
- }, z.core.$strip>, z.ZodObject<{
962
- kind: z.ZodLiteral<"manual">;
963
- }, z.core.$strip>], "kind">>;
964
- conditions: z.ZodOptional<z.ZodType<import("../index.js").AutomationCondition, unknown, z.core.$ZodTypeInternals<import("../index.js").AutomationCondition, unknown>>>;
965
- actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
966
- kind: z.ZodLiteral<"wait">;
967
- seconds: z.ZodNumber;
968
- }, z.core.$strip>, z.ZodObject<{
969
- kind: z.ZodLiteral<"cap">;
970
- deviceId: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
971
- $var: z.ZodString;
972
- }, z.core.$strip>]>;
973
- cap: z.ZodString;
974
- method: z.ZodString;
975
- args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
976
- }, z.core.$strip>, z.ZodObject<{
977
- kind: z.ZodLiteral<"code">;
978
- code: z.ZodString;
979
- }, z.core.$strip>], "kind">>;
980
- }, z.core.$strip>;
981
- }, z.core.$strip>, z.ZodObject<{
982
- kind: z.ZodLiteral<"composition">;
983
- composition: z.ZodObject<{
984
- target: z.ZodDiscriminatedUnion<[z.ZodObject<{
985
- kind: z.ZodLiteral<"new">;
986
- type: z.ZodEnum<typeof import("../index.js").DeviceType>;
987
- role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
988
- }, z.core.$strip>, z.ZodObject<{
989
- kind: z.ZodLiteral<"existing">;
990
- device: z.ZodObject<{
991
- addonId: z.ZodString;
1138
+ /** The customization of one existing device, found by its TARGET, or `not-loaded` (D315). */
1139
+ export declare const CompositionCustomizationReadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1140
+ state: z.ZodLiteral<"loaded">;
1141
+ view: z.ZodNullable<z.ZodObject<{
1142
+ block: z.ZodObject<{
1143
+ name: z.ZodString;
1144
+ code: z.ZodString;
1145
+ enabled: z.ZodBoolean;
1146
+ placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
1147
+ integrationId: z.ZodOptional<z.ZodString>;
1148
+ id: z.ZodString;
1149
+ createdAt: z.ZodNumber;
1150
+ updatedAt: z.ZodNumber;
1151
+ createdBy: z.ZodString;
1152
+ status: z.ZodEnum<{
1153
+ running: "running";
1154
+ failed: "failed";
1155
+ stopped: "stopped";
1156
+ starting: "starting";
1157
+ degraded: "degraded";
1158
+ }>;
1159
+ lastError: z.ZodOptional<z.ZodString>;
1160
+ lastChangedAt: z.ZodNumber;
1161
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1162
+ kind: z.ZodLiteral<"code">;
1163
+ }, z.core.$strip>, z.ZodObject<{
1164
+ kind: z.ZodLiteral<"recipe">;
1165
+ recipe: z.ZodObject<{
1166
+ triggers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1167
+ kind: z.ZodLiteral<"device-state">;
1168
+ deviceId: z.ZodNumber;
1169
+ cap: z.ZodString;
1170
+ fieldPath: z.ZodString;
1171
+ becomes: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1172
+ edge: z.ZodOptional<z.ZodBoolean>;
1173
+ forMs: z.ZodOptional<z.ZodNumber>;
1174
+ debounceMs: z.ZodOptional<z.ZodNumber>;
1175
+ }, z.core.$strip>, z.ZodObject<{
1176
+ kind: z.ZodLiteral<"device-event">;
1177
+ category: z.ZodString;
1178
+ deviceId: z.ZodOptional<z.ZodNumber>;
1179
+ }, z.core.$strip>, z.ZodObject<{
1180
+ kind: z.ZodLiteral<"schedule">;
1181
+ cron: z.ZodString;
1182
+ }, z.core.$strip>, z.ZodObject<{
1183
+ kind: z.ZodLiteral<"manual">;
1184
+ }, z.core.$strip>], "kind">>;
1185
+ conditions: z.ZodOptional<z.ZodType<import("../index.js").AutomationCondition, unknown, z.core.$ZodTypeInternals<import("../index.js").AutomationCondition, unknown>>>;
1186
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1187
+ kind: z.ZodLiteral<"wait">;
1188
+ seconds: z.ZodNumber;
1189
+ }, z.core.$strip>, z.ZodObject<{
1190
+ kind: z.ZodLiteral<"cap">;
1191
+ deviceId: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1192
+ $var: z.ZodString;
1193
+ }, z.core.$strip>]>;
1194
+ cap: z.ZodString;
1195
+ method: z.ZodString;
1196
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1197
+ }, z.core.$strip>, z.ZodObject<{
1198
+ kind: z.ZodLiteral<"code">;
1199
+ code: z.ZodString;
1200
+ }, z.core.$strip>], "kind">>;
1201
+ }, z.core.$strip>;
1202
+ }, z.core.$strip>, z.ZodObject<{
1203
+ kind: z.ZodLiteral<"composition">;
1204
+ composition: z.ZodObject<{
1205
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1206
+ kind: z.ZodLiteral<"new">;
1207
+ type: z.ZodEnum<typeof import("../index.js").DeviceType>;
1208
+ role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
1209
+ }, z.core.$strip>, z.ZodObject<{
1210
+ kind: z.ZodLiteral<"existing">;
1211
+ device: z.ZodObject<{
1212
+ addonId: z.ZodString;
1213
+ stableId: z.ZodString;
1214
+ }, z.core.$strip>;
1215
+ }, z.core.$strip>], "kind">;
1216
+ features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1217
+ kind: z.ZodLiteral<"fields">;
1218
+ cap: z.ZodString;
1219
+ enabled: z.ZodOptional<z.ZodBoolean>;
1220
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1221
+ source: z.ZodObject<{
1222
+ addonId: z.ZodString;
1223
+ stableId: z.ZodString;
1224
+ }, z.core.$strip>;
1225
+ cap: z.ZodString;
1226
+ fieldPath: z.ZodString;
1227
+ kind: z.ZodLiteral<"from">;
1228
+ }, z.core.$strip>, z.ZodObject<{
1229
+ kind: z.ZodLiteral<"expression">;
1230
+ expr: z.ZodString;
1231
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1232
+ source: z.ZodObject<{
1233
+ addonId: z.ZodString;
1234
+ stableId: z.ZodString;
1235
+ }, z.core.$strip>;
1236
+ cap: z.ZodString;
1237
+ fieldPath: z.ZodString;
1238
+ kind: z.ZodLiteral<"from">;
1239
+ }, z.core.$strip>, z.ZodObject<{
1240
+ kind: z.ZodLiteral<"literal">;
1241
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1242
+ }, z.core.$strip>], "kind">>;
1243
+ }, z.core.$strip>, z.ZodObject<{
1244
+ kind: z.ZodLiteral<"code">;
1245
+ code: z.ZodString;
1246
+ }, z.core.$strip>], "kind">>;
1247
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1248
+ label: z.ZodString;
1249
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1250
+ source: z.ZodObject<{
1251
+ addonId: z.ZodString;
1252
+ stableId: z.ZodString;
1253
+ }, z.core.$strip>;
1254
+ cap: z.ZodString;
1255
+ fieldPath: z.ZodString;
1256
+ kind: z.ZodLiteral<"from">;
1257
+ }, z.core.$strip>, z.ZodObject<{
1258
+ kind: z.ZodLiteral<"expression">;
1259
+ expr: z.ZodString;
1260
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1261
+ source: z.ZodObject<{
1262
+ addonId: z.ZodString;
1263
+ stableId: z.ZodString;
1264
+ }, z.core.$strip>;
1265
+ cap: z.ZodString;
1266
+ fieldPath: z.ZodString;
1267
+ kind: z.ZodLiteral<"from">;
1268
+ }, z.core.$strip>, z.ZodObject<{
1269
+ kind: z.ZodLiteral<"literal">;
1270
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1271
+ }, z.core.$strip>], "kind">>;
1272
+ }, z.core.$strip>, z.ZodObject<{
1273
+ kind: z.ZodLiteral<"code">;
1274
+ code: z.ZodString;
1275
+ }, z.core.$strip>], "kind">>;
1276
+ }, z.core.$strip>>>;
1277
+ commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1278
+ kind: z.ZodLiteral<"forward">;
1279
+ source: z.ZodObject<{
1280
+ addonId: z.ZodString;
1281
+ stableId: z.ZodString;
1282
+ }, z.core.$strip>;
1283
+ cap: z.ZodString;
1284
+ method: z.ZodString;
1285
+ }, z.core.$strip>, z.ZodObject<{
1286
+ kind: z.ZodLiteral<"code">;
1287
+ code: z.ZodString;
1288
+ }, z.core.$strip>], "kind">>>;
1289
+ }, z.core.$strip>, z.ZodObject<{
1290
+ kind: z.ZodLiteral<"passthrough">;
1291
+ cap: z.ZodString;
1292
+ enabled: z.ZodOptional<z.ZodBoolean>;
1293
+ source: z.ZodObject<{
1294
+ addonId: z.ZodString;
1295
+ stableId: z.ZodString;
1296
+ }, z.core.$strip>;
1297
+ }, z.core.$strip>], "kind">>;
1298
+ }, z.core.$strip>;
1299
+ }, z.core.$strip>], "kind">>;
1300
+ }, z.core.$strip>;
1301
+ state: z.ZodDiscriminatedUnion<[z.ZodObject<{
1302
+ kind: z.ZodLiteral<"answered">;
1303
+ state: z.ZodNullable<z.ZodObject<{
1304
+ blockId: z.ZodString;
1305
+ deviceId: z.ZodNullable<z.ZodNumber>;
1306
+ status: z.ZodEnum<{
1307
+ running: "running";
1308
+ failed: "failed";
1309
+ stopped: "stopped";
1310
+ starting: "starting";
1311
+ degraded: "degraded";
1312
+ }>;
1313
+ reason: z.ZodOptional<z.ZodString>;
1314
+ fields: z.ZodArray<z.ZodObject<{
1315
+ cap: z.ZodString;
1316
+ path: z.ZodString;
1317
+ item: z.ZodOptional<z.ZodObject<{
1318
+ arrayPath: z.ZodString;
1319
+ key: z.ZodString;
1320
+ label: z.ZodString;
1321
+ }, z.core.$strip>>;
1322
+ state: z.ZodEnum<{
1323
+ unavailable: "unavailable";
1324
+ fresh: "fresh";
1325
+ stale: "stale";
1326
+ }>;
1327
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1328
+ reason: z.ZodOptional<z.ZodString>;
1329
+ }, z.core.$strip>>;
1330
+ }, z.core.$strip>>;
1331
+ }, z.core.$strip>, z.ZodObject<{
1332
+ kind: z.ZodLiteral<"unreachable">;
1333
+ error: z.ZodString;
1334
+ }, z.core.$strip>], "kind">;
1335
+ }, z.core.$strip>>;
1336
+ }, z.core.$strip>, z.ZodObject<{
1337
+ state: z.ZodLiteral<"not-loaded">;
1338
+ reason: z.ZodString;
1339
+ }, z.core.$strip>], "state">;
1340
+ export type CompositionCustomizationRead = z.infer<typeof CompositionCustomizationReadSchema>;
1341
+ /** What a compile attempt produced. */
1342
+ export declare const CoreBlockCompileResultSchema: z.ZodObject<{
1343
+ ok: z.ZodBoolean;
1344
+ error: z.ZodOptional<z.ZodString>;
1345
+ line: z.ZodOptional<z.ZodNumber>;
1346
+ column: z.ZodOptional<z.ZodNumber>;
1347
+ }, z.core.$strip>;
1348
+ export type CoreBlockCompileResult = z.infer<typeof CoreBlockCompileResultSchema>;
1349
+ export declare const coreBlocksCapability: {
1350
+ readonly name: "core-blocks";
1351
+ readonly scope: "system";
1352
+ readonly mode: "singleton";
1353
+ readonly methods: {
1354
+ readonly list: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
1355
+ blocks: z.ZodArray<z.ZodObject<{
1356
+ name: z.ZodString;
1357
+ code: z.ZodString;
1358
+ enabled: z.ZodBoolean;
1359
+ placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
1360
+ integrationId: z.ZodOptional<z.ZodString>;
1361
+ id: z.ZodString;
1362
+ createdAt: z.ZodNumber;
1363
+ updatedAt: z.ZodNumber;
1364
+ createdBy: z.ZodString;
1365
+ status: z.ZodEnum<{
1366
+ running: "running";
1367
+ failed: "failed";
1368
+ stopped: "stopped";
1369
+ starting: "starting";
1370
+ degraded: "degraded";
1371
+ }>;
1372
+ lastError: z.ZodOptional<z.ZodString>;
1373
+ lastChangedAt: z.ZodNumber;
1374
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1375
+ kind: z.ZodLiteral<"code">;
1376
+ }, z.core.$strip>, z.ZodObject<{
1377
+ kind: z.ZodLiteral<"recipe">;
1378
+ recipe: z.ZodObject<{
1379
+ triggers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1380
+ kind: z.ZodLiteral<"device-state">;
1381
+ deviceId: z.ZodNumber;
1382
+ cap: z.ZodString;
1383
+ fieldPath: z.ZodString;
1384
+ becomes: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1385
+ edge: z.ZodOptional<z.ZodBoolean>;
1386
+ forMs: z.ZodOptional<z.ZodNumber>;
1387
+ debounceMs: z.ZodOptional<z.ZodNumber>;
1388
+ }, z.core.$strip>, z.ZodObject<{
1389
+ kind: z.ZodLiteral<"device-event">;
1390
+ category: z.ZodString;
1391
+ deviceId: z.ZodOptional<z.ZodNumber>;
1392
+ }, z.core.$strip>, z.ZodObject<{
1393
+ kind: z.ZodLiteral<"schedule">;
1394
+ cron: z.ZodString;
1395
+ }, z.core.$strip>, z.ZodObject<{
1396
+ kind: z.ZodLiteral<"manual">;
1397
+ }, z.core.$strip>], "kind">>;
1398
+ conditions: z.ZodOptional<z.ZodType<import("../index.js").AutomationCondition, unknown, z.core.$ZodTypeInternals<import("../index.js").AutomationCondition, unknown>>>;
1399
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1400
+ kind: z.ZodLiteral<"wait">;
1401
+ seconds: z.ZodNumber;
1402
+ }, z.core.$strip>, z.ZodObject<{
1403
+ kind: z.ZodLiteral<"cap">;
1404
+ deviceId: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1405
+ $var: z.ZodString;
1406
+ }, z.core.$strip>]>;
1407
+ cap: z.ZodString;
1408
+ method: z.ZodString;
1409
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1410
+ }, z.core.$strip>, z.ZodObject<{
1411
+ kind: z.ZodLiteral<"code">;
1412
+ code: z.ZodString;
1413
+ }, z.core.$strip>], "kind">>;
1414
+ }, z.core.$strip>;
1415
+ }, z.core.$strip>, z.ZodObject<{
1416
+ kind: z.ZodLiteral<"composition">;
1417
+ composition: z.ZodObject<{
1418
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1419
+ kind: z.ZodLiteral<"new">;
1420
+ type: z.ZodEnum<typeof import("../index.js").DeviceType>;
1421
+ role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
1422
+ }, z.core.$strip>, z.ZodObject<{
1423
+ kind: z.ZodLiteral<"existing">;
1424
+ device: z.ZodObject<{
1425
+ addonId: z.ZodString;
992
1426
  stableId: z.ZodString;
993
1427
  }, z.core.$strip>;
994
1428
  }, z.core.$strip>], "kind">;
995
1429
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
996
1430
  kind: z.ZodLiteral<"fields">;
997
1431
  cap: z.ZodString;
1432
+ enabled: z.ZodOptional<z.ZodBoolean>;
998
1433
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
999
1434
  source: z.ZodObject<{
1000
1435
  addonId: z.ZodString;
@@ -1015,13 +1450,43 @@ export declare const coreBlocksCapability: {
1015
1450
  fieldPath: z.ZodString;
1016
1451
  kind: z.ZodLiteral<"from">;
1017
1452
  }, z.core.$strip>, z.ZodObject<{
1018
- kind: z.ZodLiteral<"literal">;
1019
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1453
+ kind: z.ZodLiteral<"literal">;
1454
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1455
+ }, z.core.$strip>], "kind">>;
1456
+ }, z.core.$strip>, z.ZodObject<{
1457
+ kind: z.ZodLiteral<"code">;
1458
+ code: z.ZodString;
1459
+ }, z.core.$strip>], "kind">>;
1460
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1461
+ label: z.ZodString;
1462
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1463
+ source: z.ZodObject<{
1464
+ addonId: z.ZodString;
1465
+ stableId: z.ZodString;
1466
+ }, z.core.$strip>;
1467
+ cap: z.ZodString;
1468
+ fieldPath: z.ZodString;
1469
+ kind: z.ZodLiteral<"from">;
1470
+ }, z.core.$strip>, z.ZodObject<{
1471
+ kind: z.ZodLiteral<"expression">;
1472
+ expr: z.ZodString;
1473
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1474
+ source: z.ZodObject<{
1475
+ addonId: z.ZodString;
1476
+ stableId: z.ZodString;
1477
+ }, z.core.$strip>;
1478
+ cap: z.ZodString;
1479
+ fieldPath: z.ZodString;
1480
+ kind: z.ZodLiteral<"from">;
1481
+ }, z.core.$strip>, z.ZodObject<{
1482
+ kind: z.ZodLiteral<"literal">;
1483
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1484
+ }, z.core.$strip>], "kind">>;
1485
+ }, z.core.$strip>, z.ZodObject<{
1486
+ kind: z.ZodLiteral<"code">;
1487
+ code: z.ZodString;
1020
1488
  }, z.core.$strip>], "kind">>;
1021
- }, z.core.$strip>, z.ZodObject<{
1022
- kind: z.ZodLiteral<"code">;
1023
- code: z.ZodString;
1024
- }, z.core.$strip>], "kind">>;
1489
+ }, z.core.$strip>>>;
1025
1490
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1026
1491
  kind: z.ZodLiteral<"forward">;
1027
1492
  source: z.ZodObject<{
@@ -1037,6 +1502,7 @@ export declare const coreBlocksCapability: {
1037
1502
  }, z.core.$strip>, z.ZodObject<{
1038
1503
  kind: z.ZodLiteral<"passthrough">;
1039
1504
  cap: z.ZodString;
1505
+ enabled: z.ZodOptional<z.ZodBoolean>;
1040
1506
  source: z.ZodObject<{
1041
1507
  addonId: z.ZodString;
1042
1508
  stableId: z.ZodString;
@@ -1064,6 +1530,7 @@ export declare const coreBlocksCapability: {
1064
1530
  failed: "failed";
1065
1531
  stopped: "stopped";
1066
1532
  starting: "starting";
1533
+ degraded: "degraded";
1067
1534
  }>;
1068
1535
  lastError: z.ZodOptional<z.ZodString>;
1069
1536
  lastChangedAt: z.ZodNumber;
@@ -1125,6 +1592,7 @@ export declare const coreBlocksCapability: {
1125
1592
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1126
1593
  kind: z.ZodLiteral<"fields">;
1127
1594
  cap: z.ZodString;
1595
+ enabled: z.ZodOptional<z.ZodBoolean>;
1128
1596
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1129
1597
  source: z.ZodObject<{
1130
1598
  addonId: z.ZodString;
@@ -1152,6 +1620,36 @@ export declare const coreBlocksCapability: {
1152
1620
  kind: z.ZodLiteral<"code">;
1153
1621
  code: z.ZodString;
1154
1622
  }, z.core.$strip>], "kind">>;
1623
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1624
+ label: z.ZodString;
1625
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1626
+ source: z.ZodObject<{
1627
+ addonId: z.ZodString;
1628
+ stableId: z.ZodString;
1629
+ }, z.core.$strip>;
1630
+ cap: z.ZodString;
1631
+ fieldPath: z.ZodString;
1632
+ kind: z.ZodLiteral<"from">;
1633
+ }, z.core.$strip>, z.ZodObject<{
1634
+ kind: z.ZodLiteral<"expression">;
1635
+ expr: z.ZodString;
1636
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1637
+ source: z.ZodObject<{
1638
+ addonId: z.ZodString;
1639
+ stableId: z.ZodString;
1640
+ }, z.core.$strip>;
1641
+ cap: z.ZodString;
1642
+ fieldPath: z.ZodString;
1643
+ kind: z.ZodLiteral<"from">;
1644
+ }, z.core.$strip>, z.ZodObject<{
1645
+ kind: z.ZodLiteral<"literal">;
1646
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1647
+ }, z.core.$strip>], "kind">>;
1648
+ }, z.core.$strip>, z.ZodObject<{
1649
+ kind: z.ZodLiteral<"code">;
1650
+ code: z.ZodString;
1651
+ }, z.core.$strip>], "kind">>;
1652
+ }, z.core.$strip>>>;
1155
1653
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1156
1654
  kind: z.ZodLiteral<"forward">;
1157
1655
  source: z.ZodObject<{
@@ -1167,6 +1665,7 @@ export declare const coreBlocksCapability: {
1167
1665
  }, z.core.$strip>, z.ZodObject<{
1168
1666
  kind: z.ZodLiteral<"passthrough">;
1169
1667
  cap: z.ZodString;
1668
+ enabled: z.ZodOptional<z.ZodBoolean>;
1170
1669
  source: z.ZodObject<{
1171
1670
  addonId: z.ZodString;
1172
1671
  stableId: z.ZodString;
@@ -1205,6 +1704,7 @@ export declare const coreBlocksCapability: {
1205
1704
  failed: "failed";
1206
1705
  stopped: "stopped";
1207
1706
  starting: "starting";
1707
+ degraded: "degraded";
1208
1708
  }>;
1209
1709
  lastError: z.ZodOptional<z.ZodString>;
1210
1710
  lastChangedAt: z.ZodNumber;
@@ -1266,6 +1766,7 @@ export declare const coreBlocksCapability: {
1266
1766
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1267
1767
  kind: z.ZodLiteral<"fields">;
1268
1768
  cap: z.ZodString;
1769
+ enabled: z.ZodOptional<z.ZodBoolean>;
1269
1770
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1270
1771
  source: z.ZodObject<{
1271
1772
  addonId: z.ZodString;
@@ -1293,6 +1794,36 @@ export declare const coreBlocksCapability: {
1293
1794
  kind: z.ZodLiteral<"code">;
1294
1795
  code: z.ZodString;
1295
1796
  }, z.core.$strip>], "kind">>;
1797
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1798
+ label: z.ZodString;
1799
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1800
+ source: z.ZodObject<{
1801
+ addonId: z.ZodString;
1802
+ stableId: z.ZodString;
1803
+ }, z.core.$strip>;
1804
+ cap: z.ZodString;
1805
+ fieldPath: z.ZodString;
1806
+ kind: z.ZodLiteral<"from">;
1807
+ }, z.core.$strip>, z.ZodObject<{
1808
+ kind: z.ZodLiteral<"expression">;
1809
+ expr: z.ZodString;
1810
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1811
+ source: z.ZodObject<{
1812
+ addonId: z.ZodString;
1813
+ stableId: z.ZodString;
1814
+ }, z.core.$strip>;
1815
+ cap: z.ZodString;
1816
+ fieldPath: z.ZodString;
1817
+ kind: z.ZodLiteral<"from">;
1818
+ }, z.core.$strip>, z.ZodObject<{
1819
+ kind: z.ZodLiteral<"literal">;
1820
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1821
+ }, z.core.$strip>], "kind">>;
1822
+ }, z.core.$strip>, z.ZodObject<{
1823
+ kind: z.ZodLiteral<"code">;
1824
+ code: z.ZodString;
1825
+ }, z.core.$strip>], "kind">>;
1826
+ }, z.core.$strip>>>;
1296
1827
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1297
1828
  kind: z.ZodLiteral<"forward">;
1298
1829
  source: z.ZodObject<{
@@ -1308,6 +1839,7 @@ export declare const coreBlocksCapability: {
1308
1839
  }, z.core.$strip>, z.ZodObject<{
1309
1840
  kind: z.ZodLiteral<"passthrough">;
1310
1841
  cap: z.ZodString;
1842
+ enabled: z.ZodOptional<z.ZodBoolean>;
1311
1843
  source: z.ZodObject<{
1312
1844
  addonId: z.ZodString;
1313
1845
  stableId: z.ZodString;
@@ -1344,6 +1876,7 @@ export declare const coreBlocksCapability: {
1344
1876
  failed: "failed";
1345
1877
  stopped: "stopped";
1346
1878
  starting: "starting";
1879
+ degraded: "degraded";
1347
1880
  }>;
1348
1881
  lastError: z.ZodOptional<z.ZodString>;
1349
1882
  lastChangedAt: z.ZodNumber;
@@ -1405,6 +1938,7 @@ export declare const coreBlocksCapability: {
1405
1938
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1406
1939
  kind: z.ZodLiteral<"fields">;
1407
1940
  cap: z.ZodString;
1941
+ enabled: z.ZodOptional<z.ZodBoolean>;
1408
1942
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1409
1943
  source: z.ZodObject<{
1410
1944
  addonId: z.ZodString;
@@ -1432,6 +1966,36 @@ export declare const coreBlocksCapability: {
1432
1966
  kind: z.ZodLiteral<"code">;
1433
1967
  code: z.ZodString;
1434
1968
  }, z.core.$strip>], "kind">>;
1969
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1970
+ label: z.ZodString;
1971
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1972
+ source: z.ZodObject<{
1973
+ addonId: z.ZodString;
1974
+ stableId: z.ZodString;
1975
+ }, z.core.$strip>;
1976
+ cap: z.ZodString;
1977
+ fieldPath: z.ZodString;
1978
+ kind: z.ZodLiteral<"from">;
1979
+ }, z.core.$strip>, z.ZodObject<{
1980
+ kind: z.ZodLiteral<"expression">;
1981
+ expr: z.ZodString;
1982
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1983
+ source: z.ZodObject<{
1984
+ addonId: z.ZodString;
1985
+ stableId: z.ZodString;
1986
+ }, z.core.$strip>;
1987
+ cap: z.ZodString;
1988
+ fieldPath: z.ZodString;
1989
+ kind: z.ZodLiteral<"from">;
1990
+ }, z.core.$strip>, z.ZodObject<{
1991
+ kind: z.ZodLiteral<"literal">;
1992
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1993
+ }, z.core.$strip>], "kind">>;
1994
+ }, z.core.$strip>, z.ZodObject<{
1995
+ kind: z.ZodLiteral<"code">;
1996
+ code: z.ZodString;
1997
+ }, z.core.$strip>], "kind">>;
1998
+ }, z.core.$strip>>>;
1435
1999
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1436
2000
  kind: z.ZodLiteral<"forward">;
1437
2001
  source: z.ZodObject<{
@@ -1447,6 +2011,7 @@ export declare const coreBlocksCapability: {
1447
2011
  }, z.core.$strip>, z.ZodObject<{
1448
2012
  kind: z.ZodLiteral<"passthrough">;
1449
2013
  cap: z.ZodString;
2014
+ enabled: z.ZodOptional<z.ZodBoolean>;
1450
2015
  source: z.ZodObject<{
1451
2016
  addonId: z.ZodString;
1452
2017
  stableId: z.ZodString;
@@ -1482,6 +2047,7 @@ export declare const coreBlocksCapability: {
1482
2047
  failed: "failed";
1483
2048
  stopped: "stopped";
1484
2049
  starting: "starting";
2050
+ degraded: "degraded";
1485
2051
  }>;
1486
2052
  lastError: z.ZodOptional<z.ZodString>;
1487
2053
  lastChangedAt: z.ZodNumber;
@@ -1543,6 +2109,7 @@ export declare const coreBlocksCapability: {
1543
2109
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1544
2110
  kind: z.ZodLiteral<"fields">;
1545
2111
  cap: z.ZodString;
2112
+ enabled: z.ZodOptional<z.ZodBoolean>;
1546
2113
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1547
2114
  source: z.ZodObject<{
1548
2115
  addonId: z.ZodString;
@@ -1570,6 +2137,36 @@ export declare const coreBlocksCapability: {
1570
2137
  kind: z.ZodLiteral<"code">;
1571
2138
  code: z.ZodString;
1572
2139
  }, z.core.$strip>], "kind">>;
2140
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2141
+ label: z.ZodString;
2142
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2143
+ source: z.ZodObject<{
2144
+ addonId: z.ZodString;
2145
+ stableId: z.ZodString;
2146
+ }, z.core.$strip>;
2147
+ cap: z.ZodString;
2148
+ fieldPath: z.ZodString;
2149
+ kind: z.ZodLiteral<"from">;
2150
+ }, z.core.$strip>, z.ZodObject<{
2151
+ kind: z.ZodLiteral<"expression">;
2152
+ expr: z.ZodString;
2153
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2154
+ source: z.ZodObject<{
2155
+ addonId: z.ZodString;
2156
+ stableId: z.ZodString;
2157
+ }, z.core.$strip>;
2158
+ cap: z.ZodString;
2159
+ fieldPath: z.ZodString;
2160
+ kind: z.ZodLiteral<"from">;
2161
+ }, z.core.$strip>, z.ZodObject<{
2162
+ kind: z.ZodLiteral<"literal">;
2163
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2164
+ }, z.core.$strip>], "kind">>;
2165
+ }, z.core.$strip>, z.ZodObject<{
2166
+ kind: z.ZodLiteral<"code">;
2167
+ code: z.ZodString;
2168
+ }, z.core.$strip>], "kind">>;
2169
+ }, z.core.$strip>>>;
1573
2170
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1574
2171
  kind: z.ZodLiteral<"forward">;
1575
2172
  source: z.ZodObject<{
@@ -1585,6 +2182,7 @@ export declare const coreBlocksCapability: {
1585
2182
  }, z.core.$strip>, z.ZodObject<{
1586
2183
  kind: z.ZodLiteral<"passthrough">;
1587
2184
  cap: z.ZodString;
2185
+ enabled: z.ZodOptional<z.ZodBoolean>;
1588
2186
  source: z.ZodObject<{
1589
2187
  addonId: z.ZodString;
1590
2188
  stableId: z.ZodString;
@@ -1625,6 +2223,7 @@ export declare const coreBlocksCapability: {
1625
2223
  failed: "failed";
1626
2224
  stopped: "stopped";
1627
2225
  starting: "starting";
2226
+ degraded: "degraded";
1628
2227
  }>;
1629
2228
  lastError: z.ZodOptional<z.ZodString>;
1630
2229
  lastChangedAt: z.ZodNumber;
@@ -1686,6 +2285,7 @@ export declare const coreBlocksCapability: {
1686
2285
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1687
2286
  kind: z.ZodLiteral<"fields">;
1688
2287
  cap: z.ZodString;
2288
+ enabled: z.ZodOptional<z.ZodBoolean>;
1689
2289
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1690
2290
  source: z.ZodObject<{
1691
2291
  addonId: z.ZodString;
@@ -1713,6 +2313,36 @@ export declare const coreBlocksCapability: {
1713
2313
  kind: z.ZodLiteral<"code">;
1714
2314
  code: z.ZodString;
1715
2315
  }, z.core.$strip>], "kind">>;
2316
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2317
+ label: z.ZodString;
2318
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2319
+ source: z.ZodObject<{
2320
+ addonId: z.ZodString;
2321
+ stableId: z.ZodString;
2322
+ }, z.core.$strip>;
2323
+ cap: z.ZodString;
2324
+ fieldPath: z.ZodString;
2325
+ kind: z.ZodLiteral<"from">;
2326
+ }, z.core.$strip>, z.ZodObject<{
2327
+ kind: z.ZodLiteral<"expression">;
2328
+ expr: z.ZodString;
2329
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2330
+ source: z.ZodObject<{
2331
+ addonId: z.ZodString;
2332
+ stableId: z.ZodString;
2333
+ }, z.core.$strip>;
2334
+ cap: z.ZodString;
2335
+ fieldPath: z.ZodString;
2336
+ kind: z.ZodLiteral<"from">;
2337
+ }, z.core.$strip>, z.ZodObject<{
2338
+ kind: z.ZodLiteral<"literal">;
2339
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2340
+ }, z.core.$strip>], "kind">>;
2341
+ }, z.core.$strip>, z.ZodObject<{
2342
+ kind: z.ZodLiteral<"code">;
2343
+ code: z.ZodString;
2344
+ }, z.core.$strip>], "kind">>;
2345
+ }, z.core.$strip>>>;
1716
2346
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1717
2347
  kind: z.ZodLiteral<"forward">;
1718
2348
  source: z.ZodObject<{
@@ -1728,6 +2358,7 @@ export declare const coreBlocksCapability: {
1728
2358
  }, z.core.$strip>, z.ZodObject<{
1729
2359
  kind: z.ZodLiteral<"passthrough">;
1730
2360
  cap: z.ZodString;
2361
+ enabled: z.ZodOptional<z.ZodBoolean>;
1731
2362
  source: z.ZodObject<{
1732
2363
  addonId: z.ZodString;
1733
2364
  stableId: z.ZodString;
@@ -1771,7 +2402,7 @@ export declare const coreBlocksCapability: {
1771
2402
  */
1772
2403
  readonly createComposition: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1773
2404
  block: z.ZodObject<{
1774
- name: z.ZodString;
2405
+ name: z.ZodOptional<z.ZodString>;
1775
2406
  enabled: z.ZodBoolean;
1776
2407
  composition: z.ZodObject<{
1777
2408
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1788,6 +2419,7 @@ export declare const coreBlocksCapability: {
1788
2419
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1789
2420
  kind: z.ZodLiteral<"fields">;
1790
2421
  cap: z.ZodString;
2422
+ enabled: z.ZodOptional<z.ZodBoolean>;
1791
2423
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1792
2424
  source: z.ZodObject<{
1793
2425
  addonId: z.ZodString;
@@ -1815,6 +2447,36 @@ export declare const coreBlocksCapability: {
1815
2447
  kind: z.ZodLiteral<"code">;
1816
2448
  code: z.ZodString;
1817
2449
  }, z.core.$strip>], "kind">>;
2450
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2451
+ label: z.ZodString;
2452
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2453
+ source: z.ZodObject<{
2454
+ addonId: z.ZodString;
2455
+ stableId: z.ZodString;
2456
+ }, z.core.$strip>;
2457
+ cap: z.ZodString;
2458
+ fieldPath: z.ZodString;
2459
+ kind: z.ZodLiteral<"from">;
2460
+ }, z.core.$strip>, z.ZodObject<{
2461
+ kind: z.ZodLiteral<"expression">;
2462
+ expr: z.ZodString;
2463
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2464
+ source: z.ZodObject<{
2465
+ addonId: z.ZodString;
2466
+ stableId: z.ZodString;
2467
+ }, z.core.$strip>;
2468
+ cap: z.ZodString;
2469
+ fieldPath: z.ZodString;
2470
+ kind: z.ZodLiteral<"from">;
2471
+ }, z.core.$strip>, z.ZodObject<{
2472
+ kind: z.ZodLiteral<"literal">;
2473
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2474
+ }, z.core.$strip>], "kind">>;
2475
+ }, z.core.$strip>, z.ZodObject<{
2476
+ kind: z.ZodLiteral<"code">;
2477
+ code: z.ZodString;
2478
+ }, z.core.$strip>], "kind">>;
2479
+ }, z.core.$strip>>>;
1818
2480
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1819
2481
  kind: z.ZodLiteral<"forward">;
1820
2482
  source: z.ZodObject<{
@@ -1830,6 +2492,7 @@ export declare const coreBlocksCapability: {
1830
2492
  }, z.core.$strip>, z.ZodObject<{
1831
2493
  kind: z.ZodLiteral<"passthrough">;
1832
2494
  cap: z.ZodString;
2495
+ enabled: z.ZodOptional<z.ZodBoolean>;
1833
2496
  source: z.ZodObject<{
1834
2497
  addonId: z.ZodString;
1835
2498
  stableId: z.ZodString;
@@ -1853,6 +2516,7 @@ export declare const coreBlocksCapability: {
1853
2516
  failed: "failed";
1854
2517
  stopped: "stopped";
1855
2518
  starting: "starting";
2519
+ degraded: "degraded";
1856
2520
  }>;
1857
2521
  lastError: z.ZodOptional<z.ZodString>;
1858
2522
  lastChangedAt: z.ZodNumber;
@@ -1914,6 +2578,7 @@ export declare const coreBlocksCapability: {
1914
2578
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1915
2579
  kind: z.ZodLiteral<"fields">;
1916
2580
  cap: z.ZodString;
2581
+ enabled: z.ZodOptional<z.ZodBoolean>;
1917
2582
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1918
2583
  source: z.ZodObject<{
1919
2584
  addonId: z.ZodString;
@@ -1941,6 +2606,36 @@ export declare const coreBlocksCapability: {
1941
2606
  kind: z.ZodLiteral<"code">;
1942
2607
  code: z.ZodString;
1943
2608
  }, z.core.$strip>], "kind">>;
2609
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2610
+ label: z.ZodString;
2611
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2612
+ source: z.ZodObject<{
2613
+ addonId: z.ZodString;
2614
+ stableId: z.ZodString;
2615
+ }, z.core.$strip>;
2616
+ cap: z.ZodString;
2617
+ fieldPath: z.ZodString;
2618
+ kind: z.ZodLiteral<"from">;
2619
+ }, z.core.$strip>, z.ZodObject<{
2620
+ kind: z.ZodLiteral<"expression">;
2621
+ expr: z.ZodString;
2622
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2623
+ source: z.ZodObject<{
2624
+ addonId: z.ZodString;
2625
+ stableId: z.ZodString;
2626
+ }, z.core.$strip>;
2627
+ cap: z.ZodString;
2628
+ fieldPath: z.ZodString;
2629
+ kind: z.ZodLiteral<"from">;
2630
+ }, z.core.$strip>, z.ZodObject<{
2631
+ kind: z.ZodLiteral<"literal">;
2632
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2633
+ }, z.core.$strip>], "kind">>;
2634
+ }, z.core.$strip>, z.ZodObject<{
2635
+ kind: z.ZodLiteral<"code">;
2636
+ code: z.ZodString;
2637
+ }, z.core.$strip>], "kind">>;
2638
+ }, z.core.$strip>>>;
1944
2639
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1945
2640
  kind: z.ZodLiteral<"forward">;
1946
2641
  source: z.ZodObject<{
@@ -1956,6 +2651,7 @@ export declare const coreBlocksCapability: {
1956
2651
  }, z.core.$strip>, z.ZodObject<{
1957
2652
  kind: z.ZodLiteral<"passthrough">;
1958
2653
  cap: z.ZodString;
2654
+ enabled: z.ZodOptional<z.ZodBoolean>;
1959
2655
  source: z.ZodObject<{
1960
2656
  addonId: z.ZodString;
1961
2657
  stableId: z.ZodString;
@@ -1976,7 +2672,7 @@ export declare const coreBlocksCapability: {
1976
2672
  blockId: z.ZodString;
1977
2673
  expectedUpdatedAt: z.ZodNumber;
1978
2674
  block: z.ZodObject<{
1979
- name: z.ZodOptional<z.ZodString>;
2675
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1980
2676
  enabled: z.ZodOptional<z.ZodBoolean>;
1981
2677
  composition: z.ZodOptional<z.ZodObject<{
1982
2678
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1993,6 +2689,7 @@ export declare const coreBlocksCapability: {
1993
2689
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1994
2690
  kind: z.ZodLiteral<"fields">;
1995
2691
  cap: z.ZodString;
2692
+ enabled: z.ZodOptional<z.ZodBoolean>;
1996
2693
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1997
2694
  source: z.ZodObject<{
1998
2695
  addonId: z.ZodString;
@@ -2020,6 +2717,36 @@ export declare const coreBlocksCapability: {
2020
2717
  kind: z.ZodLiteral<"code">;
2021
2718
  code: z.ZodString;
2022
2719
  }, z.core.$strip>], "kind">>;
2720
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2721
+ label: z.ZodString;
2722
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2723
+ source: z.ZodObject<{
2724
+ addonId: z.ZodString;
2725
+ stableId: z.ZodString;
2726
+ }, z.core.$strip>;
2727
+ cap: z.ZodString;
2728
+ fieldPath: z.ZodString;
2729
+ kind: z.ZodLiteral<"from">;
2730
+ }, z.core.$strip>, z.ZodObject<{
2731
+ kind: z.ZodLiteral<"expression">;
2732
+ expr: z.ZodString;
2733
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2734
+ source: z.ZodObject<{
2735
+ addonId: z.ZodString;
2736
+ stableId: z.ZodString;
2737
+ }, z.core.$strip>;
2738
+ cap: z.ZodString;
2739
+ fieldPath: z.ZodString;
2740
+ kind: z.ZodLiteral<"from">;
2741
+ }, z.core.$strip>, z.ZodObject<{
2742
+ kind: z.ZodLiteral<"literal">;
2743
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2744
+ }, z.core.$strip>], "kind">>;
2745
+ }, z.core.$strip>, z.ZodObject<{
2746
+ kind: z.ZodLiteral<"code">;
2747
+ code: z.ZodString;
2748
+ }, z.core.$strip>], "kind">>;
2749
+ }, z.core.$strip>>>;
2023
2750
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2024
2751
  kind: z.ZodLiteral<"forward">;
2025
2752
  source: z.ZodObject<{
@@ -2035,6 +2762,7 @@ export declare const coreBlocksCapability: {
2035
2762
  }, z.core.$strip>, z.ZodObject<{
2036
2763
  kind: z.ZodLiteral<"passthrough">;
2037
2764
  cap: z.ZodString;
2765
+ enabled: z.ZodOptional<z.ZodBoolean>;
2038
2766
  source: z.ZodObject<{
2039
2767
  addonId: z.ZodString;
2040
2768
  stableId: z.ZodString;
@@ -2058,6 +2786,7 @@ export declare const coreBlocksCapability: {
2058
2786
  failed: "failed";
2059
2787
  stopped: "stopped";
2060
2788
  starting: "starting";
2789
+ degraded: "degraded";
2061
2790
  }>;
2062
2791
  lastError: z.ZodOptional<z.ZodString>;
2063
2792
  lastChangedAt: z.ZodNumber;
@@ -2119,6 +2848,7 @@ export declare const coreBlocksCapability: {
2119
2848
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2120
2849
  kind: z.ZodLiteral<"fields">;
2121
2850
  cap: z.ZodString;
2851
+ enabled: z.ZodOptional<z.ZodBoolean>;
2122
2852
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2123
2853
  source: z.ZodObject<{
2124
2854
  addonId: z.ZodString;
@@ -2139,13 +2869,43 @@ export declare const coreBlocksCapability: {
2139
2869
  fieldPath: z.ZodString;
2140
2870
  kind: z.ZodLiteral<"from">;
2141
2871
  }, z.core.$strip>, z.ZodObject<{
2142
- kind: z.ZodLiteral<"literal">;
2143
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2872
+ kind: z.ZodLiteral<"literal">;
2873
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2874
+ }, z.core.$strip>], "kind">>;
2875
+ }, z.core.$strip>, z.ZodObject<{
2876
+ kind: z.ZodLiteral<"code">;
2877
+ code: z.ZodString;
2878
+ }, z.core.$strip>], "kind">>;
2879
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2880
+ label: z.ZodString;
2881
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2882
+ source: z.ZodObject<{
2883
+ addonId: z.ZodString;
2884
+ stableId: z.ZodString;
2885
+ }, z.core.$strip>;
2886
+ cap: z.ZodString;
2887
+ fieldPath: z.ZodString;
2888
+ kind: z.ZodLiteral<"from">;
2889
+ }, z.core.$strip>, z.ZodObject<{
2890
+ kind: z.ZodLiteral<"expression">;
2891
+ expr: z.ZodString;
2892
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2893
+ source: z.ZodObject<{
2894
+ addonId: z.ZodString;
2895
+ stableId: z.ZodString;
2896
+ }, z.core.$strip>;
2897
+ cap: z.ZodString;
2898
+ fieldPath: z.ZodString;
2899
+ kind: z.ZodLiteral<"from">;
2900
+ }, z.core.$strip>, z.ZodObject<{
2901
+ kind: z.ZodLiteral<"literal">;
2902
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2903
+ }, z.core.$strip>], "kind">>;
2904
+ }, z.core.$strip>, z.ZodObject<{
2905
+ kind: z.ZodLiteral<"code">;
2906
+ code: z.ZodString;
2144
2907
  }, z.core.$strip>], "kind">>;
2145
- }, z.core.$strip>, z.ZodObject<{
2146
- kind: z.ZodLiteral<"code">;
2147
- code: z.ZodString;
2148
- }, z.core.$strip>], "kind">>;
2908
+ }, z.core.$strip>>>;
2149
2909
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2150
2910
  kind: z.ZodLiteral<"forward">;
2151
2911
  source: z.ZodObject<{
@@ -2161,6 +2921,7 @@ export declare const coreBlocksCapability: {
2161
2921
  }, z.core.$strip>, z.ZodObject<{
2162
2922
  kind: z.ZodLiteral<"passthrough">;
2163
2923
  cap: z.ZodString;
2924
+ enabled: z.ZodOptional<z.ZodBoolean>;
2164
2925
  source: z.ZodObject<{
2165
2926
  addonId: z.ZodString;
2166
2927
  stableId: z.ZodString;
@@ -2193,6 +2954,7 @@ export declare const coreBlocksCapability: {
2193
2954
  failed: "failed";
2194
2955
  stopped: "stopped";
2195
2956
  starting: "starting";
2957
+ degraded: "degraded";
2196
2958
  }>;
2197
2959
  lastError: z.ZodOptional<z.ZodString>;
2198
2960
  lastChangedAt: z.ZodNumber;
@@ -2254,6 +3016,7 @@ export declare const coreBlocksCapability: {
2254
3016
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2255
3017
  kind: z.ZodLiteral<"fields">;
2256
3018
  cap: z.ZodString;
3019
+ enabled: z.ZodOptional<z.ZodBoolean>;
2257
3020
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2258
3021
  source: z.ZodObject<{
2259
3022
  addonId: z.ZodString;
@@ -2281,6 +3044,36 @@ export declare const coreBlocksCapability: {
2281
3044
  kind: z.ZodLiteral<"code">;
2282
3045
  code: z.ZodString;
2283
3046
  }, z.core.$strip>], "kind">>;
3047
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3048
+ label: z.ZodString;
3049
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3050
+ source: z.ZodObject<{
3051
+ addonId: z.ZodString;
3052
+ stableId: z.ZodString;
3053
+ }, z.core.$strip>;
3054
+ cap: z.ZodString;
3055
+ fieldPath: z.ZodString;
3056
+ kind: z.ZodLiteral<"from">;
3057
+ }, z.core.$strip>, z.ZodObject<{
3058
+ kind: z.ZodLiteral<"expression">;
3059
+ expr: z.ZodString;
3060
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3061
+ source: z.ZodObject<{
3062
+ addonId: z.ZodString;
3063
+ stableId: z.ZodString;
3064
+ }, z.core.$strip>;
3065
+ cap: z.ZodString;
3066
+ fieldPath: z.ZodString;
3067
+ kind: z.ZodLiteral<"from">;
3068
+ }, z.core.$strip>, z.ZodObject<{
3069
+ kind: z.ZodLiteral<"literal">;
3070
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3071
+ }, z.core.$strip>], "kind">>;
3072
+ }, z.core.$strip>, z.ZodObject<{
3073
+ kind: z.ZodLiteral<"code">;
3074
+ code: z.ZodString;
3075
+ }, z.core.$strip>], "kind">>;
3076
+ }, z.core.$strip>>>;
2284
3077
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2285
3078
  kind: z.ZodLiteral<"forward">;
2286
3079
  source: z.ZodObject<{
@@ -2296,6 +3089,7 @@ export declare const coreBlocksCapability: {
2296
3089
  }, z.core.$strip>, z.ZodObject<{
2297
3090
  kind: z.ZodLiteral<"passthrough">;
2298
3091
  cap: z.ZodString;
3092
+ enabled: z.ZodOptional<z.ZodBoolean>;
2299
3093
  source: z.ZodObject<{
2300
3094
  addonId: z.ZodString;
2301
3095
  stableId: z.ZodString;
@@ -2314,11 +3108,17 @@ export declare const coreBlocksCapability: {
2314
3108
  failed: "failed";
2315
3109
  stopped: "stopped";
2316
3110
  starting: "starting";
3111
+ degraded: "degraded";
2317
3112
  }>;
2318
3113
  reason: z.ZodOptional<z.ZodString>;
2319
3114
  fields: z.ZodArray<z.ZodObject<{
2320
3115
  cap: z.ZodString;
2321
3116
  path: z.ZodString;
3117
+ item: z.ZodOptional<z.ZodObject<{
3118
+ arrayPath: z.ZodString;
3119
+ key: z.ZodString;
3120
+ label: z.ZodString;
3121
+ }, z.core.$strip>>;
2322
3122
  state: z.ZodEnum<{
2323
3123
  unavailable: "unavailable";
2324
3124
  fresh: "fresh";
@@ -2355,6 +3155,215 @@ export declare const coreBlocksCapability: {
2355
3155
  failed: "failed";
2356
3156
  stopped: "stopped";
2357
3157
  starting: "starting";
3158
+ degraded: "degraded";
3159
+ }>;
3160
+ lastError: z.ZodOptional<z.ZodString>;
3161
+ lastChangedAt: z.ZodNumber;
3162
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3163
+ kind: z.ZodLiteral<"code">;
3164
+ }, z.core.$strip>, z.ZodObject<{
3165
+ kind: z.ZodLiteral<"recipe">;
3166
+ recipe: z.ZodObject<{
3167
+ triggers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3168
+ kind: z.ZodLiteral<"device-state">;
3169
+ deviceId: z.ZodNumber;
3170
+ cap: z.ZodString;
3171
+ fieldPath: z.ZodString;
3172
+ becomes: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3173
+ edge: z.ZodOptional<z.ZodBoolean>;
3174
+ forMs: z.ZodOptional<z.ZodNumber>;
3175
+ debounceMs: z.ZodOptional<z.ZodNumber>;
3176
+ }, z.core.$strip>, z.ZodObject<{
3177
+ kind: z.ZodLiteral<"device-event">;
3178
+ category: z.ZodString;
3179
+ deviceId: z.ZodOptional<z.ZodNumber>;
3180
+ }, z.core.$strip>, z.ZodObject<{
3181
+ kind: z.ZodLiteral<"schedule">;
3182
+ cron: z.ZodString;
3183
+ }, z.core.$strip>, z.ZodObject<{
3184
+ kind: z.ZodLiteral<"manual">;
3185
+ }, z.core.$strip>], "kind">>;
3186
+ conditions: z.ZodOptional<z.ZodType<import("../index.js").AutomationCondition, unknown, z.core.$ZodTypeInternals<import("../index.js").AutomationCondition, unknown>>>;
3187
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3188
+ kind: z.ZodLiteral<"wait">;
3189
+ seconds: z.ZodNumber;
3190
+ }, z.core.$strip>, z.ZodObject<{
3191
+ kind: z.ZodLiteral<"cap">;
3192
+ deviceId: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3193
+ $var: z.ZodString;
3194
+ }, z.core.$strip>]>;
3195
+ cap: z.ZodString;
3196
+ method: z.ZodString;
3197
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3198
+ }, z.core.$strip>, z.ZodObject<{
3199
+ kind: z.ZodLiteral<"code">;
3200
+ code: z.ZodString;
3201
+ }, z.core.$strip>], "kind">>;
3202
+ }, z.core.$strip>;
3203
+ }, z.core.$strip>, z.ZodObject<{
3204
+ kind: z.ZodLiteral<"composition">;
3205
+ composition: z.ZodObject<{
3206
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
3207
+ kind: z.ZodLiteral<"new">;
3208
+ type: z.ZodEnum<typeof import("../index.js").DeviceType>;
3209
+ role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
3210
+ }, z.core.$strip>, z.ZodObject<{
3211
+ kind: z.ZodLiteral<"existing">;
3212
+ device: z.ZodObject<{
3213
+ addonId: z.ZodString;
3214
+ stableId: z.ZodString;
3215
+ }, z.core.$strip>;
3216
+ }, z.core.$strip>], "kind">;
3217
+ features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3218
+ kind: z.ZodLiteral<"fields">;
3219
+ cap: z.ZodString;
3220
+ enabled: z.ZodOptional<z.ZodBoolean>;
3221
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3222
+ source: z.ZodObject<{
3223
+ addonId: z.ZodString;
3224
+ stableId: z.ZodString;
3225
+ }, z.core.$strip>;
3226
+ cap: z.ZodString;
3227
+ fieldPath: z.ZodString;
3228
+ kind: z.ZodLiteral<"from">;
3229
+ }, z.core.$strip>, z.ZodObject<{
3230
+ kind: z.ZodLiteral<"expression">;
3231
+ expr: z.ZodString;
3232
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3233
+ source: z.ZodObject<{
3234
+ addonId: z.ZodString;
3235
+ stableId: z.ZodString;
3236
+ }, z.core.$strip>;
3237
+ cap: z.ZodString;
3238
+ fieldPath: z.ZodString;
3239
+ kind: z.ZodLiteral<"from">;
3240
+ }, z.core.$strip>, z.ZodObject<{
3241
+ kind: z.ZodLiteral<"literal">;
3242
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3243
+ }, z.core.$strip>], "kind">>;
3244
+ }, z.core.$strip>, z.ZodObject<{
3245
+ kind: z.ZodLiteral<"code">;
3246
+ code: z.ZodString;
3247
+ }, z.core.$strip>], "kind">>;
3248
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3249
+ label: z.ZodString;
3250
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3251
+ source: z.ZodObject<{
3252
+ addonId: z.ZodString;
3253
+ stableId: z.ZodString;
3254
+ }, z.core.$strip>;
3255
+ cap: z.ZodString;
3256
+ fieldPath: z.ZodString;
3257
+ kind: z.ZodLiteral<"from">;
3258
+ }, z.core.$strip>, z.ZodObject<{
3259
+ kind: z.ZodLiteral<"expression">;
3260
+ expr: z.ZodString;
3261
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3262
+ source: z.ZodObject<{
3263
+ addonId: z.ZodString;
3264
+ stableId: z.ZodString;
3265
+ }, z.core.$strip>;
3266
+ cap: z.ZodString;
3267
+ fieldPath: z.ZodString;
3268
+ kind: z.ZodLiteral<"from">;
3269
+ }, z.core.$strip>, z.ZodObject<{
3270
+ kind: z.ZodLiteral<"literal">;
3271
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3272
+ }, z.core.$strip>], "kind">>;
3273
+ }, z.core.$strip>, z.ZodObject<{
3274
+ kind: z.ZodLiteral<"code">;
3275
+ code: z.ZodString;
3276
+ }, z.core.$strip>], "kind">>;
3277
+ }, z.core.$strip>>>;
3278
+ commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3279
+ kind: z.ZodLiteral<"forward">;
3280
+ source: z.ZodObject<{
3281
+ addonId: z.ZodString;
3282
+ stableId: z.ZodString;
3283
+ }, z.core.$strip>;
3284
+ cap: z.ZodString;
3285
+ method: z.ZodString;
3286
+ }, z.core.$strip>, z.ZodObject<{
3287
+ kind: z.ZodLiteral<"code">;
3288
+ code: z.ZodString;
3289
+ }, z.core.$strip>], "kind">>>;
3290
+ }, z.core.$strip>, z.ZodObject<{
3291
+ kind: z.ZodLiteral<"passthrough">;
3292
+ cap: z.ZodString;
3293
+ enabled: z.ZodOptional<z.ZodBoolean>;
3294
+ source: z.ZodObject<{
3295
+ addonId: z.ZodString;
3296
+ stableId: z.ZodString;
3297
+ }, z.core.$strip>;
3298
+ }, z.core.$strip>], "kind">>;
3299
+ }, z.core.$strip>;
3300
+ }, z.core.$strip>], "kind">>;
3301
+ }, z.core.$strip>;
3302
+ state: z.ZodDiscriminatedUnion<[z.ZodObject<{
3303
+ kind: z.ZodLiteral<"answered">;
3304
+ state: z.ZodNullable<z.ZodObject<{
3305
+ blockId: z.ZodString;
3306
+ deviceId: z.ZodNullable<z.ZodNumber>;
3307
+ status: z.ZodEnum<{
3308
+ running: "running";
3309
+ failed: "failed";
3310
+ stopped: "stopped";
3311
+ starting: "starting";
3312
+ degraded: "degraded";
3313
+ }>;
3314
+ reason: z.ZodOptional<z.ZodString>;
3315
+ fields: z.ZodArray<z.ZodObject<{
3316
+ cap: z.ZodString;
3317
+ path: z.ZodString;
3318
+ item: z.ZodOptional<z.ZodObject<{
3319
+ arrayPath: z.ZodString;
3320
+ key: z.ZodString;
3321
+ label: z.ZodString;
3322
+ }, z.core.$strip>>;
3323
+ state: z.ZodEnum<{
3324
+ unavailable: "unavailable";
3325
+ fresh: "fresh";
3326
+ stale: "stale";
3327
+ }>;
3328
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3329
+ reason: z.ZodOptional<z.ZodString>;
3330
+ }, z.core.$strip>>;
3331
+ }, z.core.$strip>>;
3332
+ }, z.core.$strip>, z.ZodObject<{
3333
+ kind: z.ZodLiteral<"unreachable">;
3334
+ error: z.ZodString;
3335
+ }, z.core.$strip>], "kind">;
3336
+ }, z.core.$strip>>;
3337
+ }, z.core.$strip>, z.ZodObject<{
3338
+ state: z.ZodLiteral<"not-loaded">;
3339
+ reason: z.ZodString;
3340
+ }, z.core.$strip>], "state">, import("./capability-definition.js").CapabilityMethodKind>;
3341
+ /**
3342
+ * The composition that customizes an existing device (D663), found by its
3343
+ * TARGET — never by the block's derived name. One per device at most.
3344
+ */
3345
+ readonly getCustomization: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
3346
+ addonId: z.ZodString;
3347
+ stableId: z.ZodString;
3348
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3349
+ state: z.ZodLiteral<"loaded">;
3350
+ view: z.ZodNullable<z.ZodObject<{
3351
+ block: z.ZodObject<{
3352
+ name: z.ZodString;
3353
+ code: z.ZodString;
3354
+ enabled: z.ZodBoolean;
3355
+ placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
3356
+ integrationId: z.ZodOptional<z.ZodString>;
3357
+ id: z.ZodString;
3358
+ createdAt: z.ZodNumber;
3359
+ updatedAt: z.ZodNumber;
3360
+ createdBy: z.ZodString;
3361
+ status: z.ZodEnum<{
3362
+ running: "running";
3363
+ failed: "failed";
3364
+ stopped: "stopped";
3365
+ starting: "starting";
3366
+ degraded: "degraded";
2358
3367
  }>;
2359
3368
  lastError: z.ZodOptional<z.ZodString>;
2360
3369
  lastChangedAt: z.ZodNumber;
@@ -2416,6 +3425,7 @@ export declare const coreBlocksCapability: {
2416
3425
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2417
3426
  kind: z.ZodLiteral<"fields">;
2418
3427
  cap: z.ZodString;
3428
+ enabled: z.ZodOptional<z.ZodBoolean>;
2419
3429
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2420
3430
  source: z.ZodObject<{
2421
3431
  addonId: z.ZodString;
@@ -2443,6 +3453,36 @@ export declare const coreBlocksCapability: {
2443
3453
  kind: z.ZodLiteral<"code">;
2444
3454
  code: z.ZodString;
2445
3455
  }, z.core.$strip>], "kind">>;
3456
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3457
+ label: z.ZodString;
3458
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3459
+ source: z.ZodObject<{
3460
+ addonId: z.ZodString;
3461
+ stableId: z.ZodString;
3462
+ }, z.core.$strip>;
3463
+ cap: z.ZodString;
3464
+ fieldPath: z.ZodString;
3465
+ kind: z.ZodLiteral<"from">;
3466
+ }, z.core.$strip>, z.ZodObject<{
3467
+ kind: z.ZodLiteral<"expression">;
3468
+ expr: z.ZodString;
3469
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3470
+ source: z.ZodObject<{
3471
+ addonId: z.ZodString;
3472
+ stableId: z.ZodString;
3473
+ }, z.core.$strip>;
3474
+ cap: z.ZodString;
3475
+ fieldPath: z.ZodString;
3476
+ kind: z.ZodLiteral<"from">;
3477
+ }, z.core.$strip>, z.ZodObject<{
3478
+ kind: z.ZodLiteral<"literal">;
3479
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3480
+ }, z.core.$strip>], "kind">>;
3481
+ }, z.core.$strip>, z.ZodObject<{
3482
+ kind: z.ZodLiteral<"code">;
3483
+ code: z.ZodString;
3484
+ }, z.core.$strip>], "kind">>;
3485
+ }, z.core.$strip>>>;
2446
3486
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2447
3487
  kind: z.ZodLiteral<"forward">;
2448
3488
  source: z.ZodObject<{
@@ -2458,6 +3498,7 @@ export declare const coreBlocksCapability: {
2458
3498
  }, z.core.$strip>, z.ZodObject<{
2459
3499
  kind: z.ZodLiteral<"passthrough">;
2460
3500
  cap: z.ZodString;
3501
+ enabled: z.ZodOptional<z.ZodBoolean>;
2461
3502
  source: z.ZodObject<{
2462
3503
  addonId: z.ZodString;
2463
3504
  stableId: z.ZodString;
@@ -2476,11 +3517,17 @@ export declare const coreBlocksCapability: {
2476
3517
  failed: "failed";
2477
3518
  stopped: "stopped";
2478
3519
  starting: "starting";
3520
+ degraded: "degraded";
2479
3521
  }>;
2480
3522
  reason: z.ZodOptional<z.ZodString>;
2481
3523
  fields: z.ZodArray<z.ZodObject<{
2482
3524
  cap: z.ZodString;
2483
3525
  path: z.ZodString;
3526
+ item: z.ZodOptional<z.ZodObject<{
3527
+ arrayPath: z.ZodString;
3528
+ key: z.ZodString;
3529
+ label: z.ZodString;
3530
+ }, z.core.$strip>>;
2484
3531
  state: z.ZodEnum<{
2485
3532
  unavailable: "unavailable";
2486
3533
  fresh: "fresh";
@@ -2519,6 +3566,7 @@ export declare const coreBlocksCapability: {
2519
3566
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2520
3567
  kind: z.ZodLiteral<"fields">;
2521
3568
  cap: z.ZodString;
3569
+ enabled: z.ZodOptional<z.ZodBoolean>;
2522
3570
  fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2523
3571
  source: z.ZodObject<{
2524
3572
  addonId: z.ZodString;
@@ -2546,6 +3594,36 @@ export declare const coreBlocksCapability: {
2546
3594
  kind: z.ZodLiteral<"code">;
2547
3595
  code: z.ZodString;
2548
3596
  }, z.core.$strip>], "kind">>;
3597
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3598
+ label: z.ZodString;
3599
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3600
+ source: z.ZodObject<{
3601
+ addonId: z.ZodString;
3602
+ stableId: z.ZodString;
3603
+ }, z.core.$strip>;
3604
+ cap: z.ZodString;
3605
+ fieldPath: z.ZodString;
3606
+ kind: z.ZodLiteral<"from">;
3607
+ }, z.core.$strip>, z.ZodObject<{
3608
+ kind: z.ZodLiteral<"expression">;
3609
+ expr: z.ZodString;
3610
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3611
+ source: z.ZodObject<{
3612
+ addonId: z.ZodString;
3613
+ stableId: z.ZodString;
3614
+ }, z.core.$strip>;
3615
+ cap: z.ZodString;
3616
+ fieldPath: z.ZodString;
3617
+ kind: z.ZodLiteral<"from">;
3618
+ }, z.core.$strip>, z.ZodObject<{
3619
+ kind: z.ZodLiteral<"literal">;
3620
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3621
+ }, z.core.$strip>], "kind">>;
3622
+ }, z.core.$strip>, z.ZodObject<{
3623
+ kind: z.ZodLiteral<"code">;
3624
+ code: z.ZodString;
3625
+ }, z.core.$strip>], "kind">>;
3626
+ }, z.core.$strip>>>;
2549
3627
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2550
3628
  kind: z.ZodLiteral<"forward">;
2551
3629
  source: z.ZodObject<{
@@ -2561,6 +3639,7 @@ export declare const coreBlocksCapability: {
2561
3639
  }, z.core.$strip>, z.ZodObject<{
2562
3640
  kind: z.ZodLiteral<"passthrough">;
2563
3641
  cap: z.ZodString;
3642
+ enabled: z.ZodOptional<z.ZodBoolean>;
2564
3643
  source: z.ZodObject<{
2565
3644
  addonId: z.ZodString;
2566
3645
  stableId: z.ZodString;
@@ -2573,15 +3652,15 @@ export declare const coreBlocksCapability: {
2573
3652
  problems: z.ZodArray<z.ZodObject<{
2574
3653
  code: z.ZodEnum<{
2575
3654
  "source-missing": "source-missing";
3655
+ "unknown-field": "unknown-field";
3656
+ "kind-mismatch": "kind-mismatch";
3657
+ "not-composable": "not-composable";
2576
3658
  "reserved-variant": "reserved-variant";
2577
3659
  "unknown-capability": "unknown-capability";
2578
- "not-composable": "not-composable";
2579
3660
  "wrong-device-type": "wrong-device-type";
2580
3661
  "has-commands": "has-commands";
2581
- "unknown-field": "unknown-field";
2582
3662
  "nested-field": "nested-field";
2583
3663
  "missing-field": "missing-field";
2584
- "kind-mismatch": "kind-mismatch";
2585
3664
  "may-be-null": "may-be-null";
2586
3665
  "source-unreadable": "source-unreadable";
2587
3666
  "source-capability-missing": "source-capability-missing";
@@ -2589,6 +3668,11 @@ export declare const coreBlocksCapability: {
2589
3668
  "expression-invalid": "expression-invalid";
2590
3669
  cycle: "cycle";
2591
3670
  "duplicate-target": "duplicate-target";
3671
+ "not-item-array": "not-item-array";
3672
+ "item-field-reserved": "item-field-reserved";
3673
+ "target-missing": "target-missing";
3674
+ "target-unreadable": "target-unreadable";
3675
+ "not-replaceable": "not-replaceable";
2592
3676
  }>;
2593
3677
  path: z.ZodString;
2594
3678
  message: z.ZodString;
@@ -2596,6 +3680,11 @@ export declare const coreBlocksCapability: {
2596
3680
  fields: z.ZodArray<z.ZodObject<{
2597
3681
  cap: z.ZodString;
2598
3682
  path: z.ZodString;
3683
+ item: z.ZodOptional<z.ZodObject<{
3684
+ arrayPath: z.ZodString;
3685
+ key: z.ZodString;
3686
+ label: z.ZodString;
3687
+ }, z.core.$strip>>;
2599
3688
  featureIndex: z.ZodNumber;
2600
3689
  kind: z.ZodEnum<{
2601
3690
  string: "string";
@@ -2607,12 +3696,15 @@ export declare const coreBlocksCapability: {
2607
3696
  required: z.ZodBoolean;
2608
3697
  unavailable: z.ZodEnum<{
2609
3698
  null: "null";
3699
+ unknown: "unknown";
2610
3700
  offline: "offline";
3701
+ release: "release";
2611
3702
  }>;
2612
3703
  role: z.ZodEnum<{
2613
3704
  derived: "derived";
2614
3705
  clock: "clock";
2615
3706
  constant: "constant";
3707
+ accumulator: "accumulator";
2616
3708
  }>;
2617
3709
  source: z.ZodDiscriminatedUnion<[z.ZodObject<{
2618
3710
  source: z.ZodObject<{
@@ -2650,6 +3742,23 @@ export declare const coreBlocksCapability: {
2650
3742
  fieldPath: z.ZodString;
2651
3743
  }, z.core.$strip>>;
2652
3744
  }, z.core.$strip>>;
3745
+ features: z.ZodArray<z.ZodObject<{
3746
+ featureIndex: z.ZodNumber;
3747
+ cap: z.ZodString;
3748
+ mode: z.ZodEnum<{
3749
+ new: "new";
3750
+ replace: "replace";
3751
+ add: "add";
3752
+ }>;
3753
+ }, z.core.$strip>>;
3754
+ events: z.ZodArray<z.ZodObject<{
3755
+ featureIndex: z.ZodNumber;
3756
+ cap: z.ZodString;
3757
+ eventName: z.ZodString;
3758
+ category: z.ZodEnum<typeof import("../index.js").EventCategory>;
3759
+ stateField: z.ZodString;
3760
+ fieldKey: z.ZodString;
3761
+ }, z.core.$strip>>;
2653
3762
  }, z.core.$strip>, "mutation">;
2654
3763
  };
2655
3764
  };