@camstack/types 1.2.267 → 1.2.268

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 (56) 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 +22 -0
  5. package/dist/capabilities/composer.cap.d.ts +99 -0
  6. package/dist/capabilities/consumables.cap.d.ts +79 -0
  7. package/dist/capabilities/core-blocks.cap.d.ts +1149 -91
  8. package/dist/capabilities/device-extension.cap.d.ts +12 -13
  9. package/dist/capabilities/device-state.cap.d.ts +186 -2
  10. package/dist/capabilities/index.d.ts +3 -3
  11. package/dist/composition/composition-graph.d.ts +42 -9
  12. package/dist/composition/composition-items.d.ts +25 -0
  13. package/dist/composition/composition-report.d.ts +93 -2
  14. package/dist/composition/composition.d.ts +154 -3
  15. package/dist/composition/customization-name.d.ts +6 -0
  16. package/dist/composition/evaluate-field.d.ts +12 -0
  17. package/dist/composition/examples.d.ts +33 -0
  18. package/dist/composition/field-kinds.d.ts +42 -0
  19. package/dist/composition/index.d.ts +1 -0
  20. package/dist/composition/plan-result.d.ts +16 -0
  21. package/dist/composition/state-fields.d.ts +6 -0
  22. package/dist/composition/validate-composition.d.ts +44 -9
  23. package/dist/composition-CPFIlFfw.mjs +1759 -0
  24. package/dist/composition-QlOB7QTG.js +2184 -0
  25. package/dist/device/device-context.d.ts +9 -0
  26. package/dist/device/device-runtime-state.d.ts +15 -1
  27. package/dist/device/index.d.ts +1 -1
  28. package/dist/device-extension/slot-descriptor.d.ts +8 -11
  29. package/dist/device-extension/slot-provider.d.ts +0 -2
  30. package/dist/enums/event-category.d.ts +25 -0
  31. package/dist/enums.js +1 -1
  32. package/dist/enums.mjs +1 -1
  33. package/dist/err-msg-DX6i_MY4.mjs +339 -0
  34. package/dist/err-msg-Dx2Kor0g.js +368 -0
  35. package/dist/{event-category-BVDXG4tB.mjs → event-category-C5xZWqz6.mjs} +31 -1
  36. package/dist/{event-category-BVfsrBYA.js → event-category-MbnB-6AN.js} +48 -0
  37. package/dist/generated/addon-api.d.ts +42 -0
  38. package/dist/generated/device-proxy.d.ts +1 -1
  39. package/dist/generated/method-access-map.d.ts +1 -1
  40. package/dist/generated/method-device-selectors.d.ts +2 -2
  41. package/dist/generated/system-proxy.d.ts +2 -2
  42. package/dist/index.d.ts +4 -3
  43. package/dist/index.js +1513 -1656
  44. package/dist/index.mjs +1208 -1384
  45. package/dist/interfaces/kernel-abstractions.d.ts +16 -0
  46. package/dist/interfaces/status-overlay.d.ts +42 -0
  47. package/dist/node.d.ts +1 -0
  48. package/dist/node.js +29 -8
  49. package/dist/node.mjs +23 -3
  50. package/dist/{sleep-8K9gue-H.js → sleep-BSzia-xT.js} +6 -352
  51. package/dist/{sleep-DC-wdyeS.mjs → sleep-jkRQgtSc.mjs} +7 -329
  52. package/package.json +1 -1
  53. package/dist/canonical-hash-CPK2Dy60.mjs +0 -715
  54. package/dist/canonical-hash-CSE4ioRi.js +0 -792
  55. package/dist/err-msg-COpsHMw2.js +0 -18
  56. 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. */
@@ -167,6 +170,36 @@ export declare const CoreBlockSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject
167
170
  kind: z.ZodLiteral<"code">;
168
171
  code: z.ZodString;
169
172
  }, z.core.$strip>], "kind">>;
173
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
174
+ label: z.ZodString;
175
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
176
+ source: z.ZodObject<{
177
+ addonId: z.ZodString;
178
+ stableId: z.ZodString;
179
+ }, z.core.$strip>;
180
+ cap: z.ZodString;
181
+ fieldPath: z.ZodString;
182
+ kind: z.ZodLiteral<"from">;
183
+ }, z.core.$strip>, z.ZodObject<{
184
+ kind: z.ZodLiteral<"expression">;
185
+ expr: z.ZodString;
186
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
187
+ source: z.ZodObject<{
188
+ addonId: z.ZodString;
189
+ stableId: z.ZodString;
190
+ }, z.core.$strip>;
191
+ cap: z.ZodString;
192
+ fieldPath: z.ZodString;
193
+ kind: z.ZodLiteral<"from">;
194
+ }, z.core.$strip>, z.ZodObject<{
195
+ kind: z.ZodLiteral<"literal">;
196
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
197
+ }, z.core.$strip>], "kind">>;
198
+ }, z.core.$strip>, z.ZodObject<{
199
+ kind: z.ZodLiteral<"code">;
200
+ code: z.ZodString;
201
+ }, z.core.$strip>], "kind">>;
202
+ }, z.core.$strip>>>;
170
203
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
171
204
  kind: z.ZodLiteral<"forward">;
172
205
  source: z.ZodObject<{
@@ -191,9 +224,16 @@ export declare const CoreBlockSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject
191
224
  }, z.core.$strip>], "kind">;
192
225
  export type CoreBlockSource = z.infer<typeof CoreBlockSourceSchema>;
193
226
  export type CoreBlockSourceKind = CoreBlockSource['kind'];
194
- /** The client-authored half of a composition block. No `code`, no placement (hub-only; Phase 7). */
227
+ /**
228
+ * The client-authored half of a composition block. No `code`, no placement (hub-only; Phase 7).
229
+ *
230
+ * `name`: REQUIRED for a `new` target — the block's name IS the device's name
231
+ * (D659). ABSENT for an `existing` target — a customization has no name of its
232
+ * own; the server derives one (`customizationBlockName`, D663) and refuses a
233
+ * client-sent name by name.
234
+ */
195
235
  export declare const CompositionBlockInputSchema: z.ZodObject<{
196
- name: z.ZodString;
236
+ name: z.ZodOptional<z.ZodString>;
197
237
  enabled: z.ZodBoolean;
198
238
  composition: z.ZodObject<{
199
239
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -237,6 +277,36 @@ export declare const CompositionBlockInputSchema: z.ZodObject<{
237
277
  kind: z.ZodLiteral<"code">;
238
278
  code: z.ZodString;
239
279
  }, z.core.$strip>], "kind">>;
280
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
281
+ label: z.ZodString;
282
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
283
+ source: z.ZodObject<{
284
+ addonId: z.ZodString;
285
+ stableId: z.ZodString;
286
+ }, z.core.$strip>;
287
+ cap: z.ZodString;
288
+ fieldPath: z.ZodString;
289
+ kind: z.ZodLiteral<"from">;
290
+ }, z.core.$strip>, z.ZodObject<{
291
+ kind: z.ZodLiteral<"expression">;
292
+ expr: z.ZodString;
293
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
294
+ source: z.ZodObject<{
295
+ addonId: z.ZodString;
296
+ stableId: z.ZodString;
297
+ }, z.core.$strip>;
298
+ cap: z.ZodString;
299
+ fieldPath: z.ZodString;
300
+ kind: z.ZodLiteral<"from">;
301
+ }, z.core.$strip>, z.ZodObject<{
302
+ kind: z.ZodLiteral<"literal">;
303
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
304
+ }, z.core.$strip>], "kind">>;
305
+ }, z.core.$strip>, z.ZodObject<{
306
+ kind: z.ZodLiteral<"code">;
307
+ code: z.ZodString;
308
+ }, z.core.$strip>], "kind">>;
309
+ }, z.core.$strip>>>;
240
310
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
241
311
  kind: z.ZodLiteral<"forward">;
242
312
  source: z.ZodObject<{
@@ -277,6 +347,7 @@ export declare const CoreBlockSchema: z.ZodObject<{
277
347
  failed: "failed";
278
348
  stopped: "stopped";
279
349
  starting: "starting";
350
+ degraded: "degraded";
280
351
  }>;
281
352
  lastError: z.ZodOptional<z.ZodString>;
282
353
  lastChangedAt: z.ZodNumber;
@@ -365,6 +436,36 @@ export declare const CoreBlockSchema: z.ZodObject<{
365
436
  kind: z.ZodLiteral<"code">;
366
437
  code: z.ZodString;
367
438
  }, z.core.$strip>], "kind">>;
439
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
440
+ label: z.ZodString;
441
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
442
+ source: z.ZodObject<{
443
+ addonId: z.ZodString;
444
+ stableId: z.ZodString;
445
+ }, z.core.$strip>;
446
+ cap: z.ZodString;
447
+ fieldPath: z.ZodString;
448
+ kind: z.ZodLiteral<"from">;
449
+ }, z.core.$strip>, z.ZodObject<{
450
+ kind: z.ZodLiteral<"expression">;
451
+ expr: z.ZodString;
452
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
453
+ source: z.ZodObject<{
454
+ addonId: z.ZodString;
455
+ stableId: z.ZodString;
456
+ }, z.core.$strip>;
457
+ cap: z.ZodString;
458
+ fieldPath: z.ZodString;
459
+ kind: z.ZodLiteral<"from">;
460
+ }, z.core.$strip>, z.ZodObject<{
461
+ kind: z.ZodLiteral<"literal">;
462
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
463
+ }, z.core.$strip>], "kind">>;
464
+ }, z.core.$strip>, z.ZodObject<{
465
+ kind: z.ZodLiteral<"code">;
466
+ code: z.ZodString;
467
+ }, z.core.$strip>], "kind">>;
468
+ }, z.core.$strip>>>;
368
469
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
369
470
  kind: z.ZodLiteral<"forward">;
370
471
  source: z.ZodObject<{
@@ -402,11 +503,17 @@ export declare const CompositionStateReadSchema: z.ZodDiscriminatedUnion<[z.ZodO
402
503
  failed: "failed";
403
504
  stopped: "stopped";
404
505
  starting: "starting";
506
+ degraded: "degraded";
405
507
  }>;
406
508
  reason: z.ZodOptional<z.ZodString>;
407
509
  fields: z.ZodArray<z.ZodObject<{
408
510
  cap: z.ZodString;
409
511
  path: z.ZodString;
512
+ item: z.ZodOptional<z.ZodObject<{
513
+ arrayPath: z.ZodString;
514
+ key: z.ZodString;
515
+ label: z.ZodString;
516
+ }, z.core.$strip>>;
410
517
  state: z.ZodEnum<{
411
518
  unavailable: "unavailable";
412
519
  fresh: "fresh";
@@ -438,6 +545,7 @@ export declare const CompositionViewSchema: z.ZodObject<{
438
545
  failed: "failed";
439
546
  stopped: "stopped";
440
547
  starting: "starting";
548
+ degraded: "degraded";
441
549
  }>;
442
550
  lastError: z.ZodOptional<z.ZodString>;
443
551
  lastChangedAt: z.ZodNumber;
@@ -526,6 +634,36 @@ export declare const CompositionViewSchema: z.ZodObject<{
526
634
  kind: z.ZodLiteral<"code">;
527
635
  code: z.ZodString;
528
636
  }, z.core.$strip>], "kind">>;
637
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
638
+ label: z.ZodString;
639
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
640
+ source: z.ZodObject<{
641
+ addonId: z.ZodString;
642
+ stableId: z.ZodString;
643
+ }, z.core.$strip>;
644
+ cap: z.ZodString;
645
+ fieldPath: z.ZodString;
646
+ kind: z.ZodLiteral<"from">;
647
+ }, z.core.$strip>, z.ZodObject<{
648
+ kind: z.ZodLiteral<"expression">;
649
+ expr: z.ZodString;
650
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
651
+ source: z.ZodObject<{
652
+ addonId: z.ZodString;
653
+ stableId: z.ZodString;
654
+ }, z.core.$strip>;
655
+ cap: z.ZodString;
656
+ fieldPath: z.ZodString;
657
+ kind: z.ZodLiteral<"from">;
658
+ }, z.core.$strip>, z.ZodObject<{
659
+ kind: z.ZodLiteral<"literal">;
660
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
661
+ }, z.core.$strip>], "kind">>;
662
+ }, z.core.$strip>, z.ZodObject<{
663
+ kind: z.ZodLiteral<"code">;
664
+ code: z.ZodString;
665
+ }, z.core.$strip>], "kind">>;
666
+ }, z.core.$strip>>>;
529
667
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
530
668
  kind: z.ZodLiteral<"forward">;
531
669
  source: z.ZodObject<{
@@ -559,11 +697,17 @@ export declare const CompositionViewSchema: z.ZodObject<{
559
697
  failed: "failed";
560
698
  stopped: "stopped";
561
699
  starting: "starting";
700
+ degraded: "degraded";
562
701
  }>;
563
702
  reason: z.ZodOptional<z.ZodString>;
564
703
  fields: z.ZodArray<z.ZodObject<{
565
704
  cap: z.ZodString;
566
705
  path: z.ZodString;
706
+ item: z.ZodOptional<z.ZodObject<{
707
+ arrayPath: z.ZodString;
708
+ key: z.ZodString;
709
+ label: z.ZodString;
710
+ }, z.core.$strip>>;
567
711
  state: z.ZodEnum<{
568
712
  unavailable: "unavailable";
569
713
  fresh: "fresh";
@@ -597,6 +741,7 @@ export declare const CompositionListReadSchema: z.ZodDiscriminatedUnion<[z.ZodOb
597
741
  failed: "failed";
598
742
  stopped: "stopped";
599
743
  starting: "starting";
744
+ degraded: "degraded";
600
745
  }>;
601
746
  lastError: z.ZodOptional<z.ZodString>;
602
747
  lastChangedAt: z.ZodNumber;
@@ -685,6 +830,36 @@ export declare const CompositionListReadSchema: z.ZodDiscriminatedUnion<[z.ZodOb
685
830
  kind: z.ZodLiteral<"code">;
686
831
  code: z.ZodString;
687
832
  }, z.core.$strip>], "kind">>;
833
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
834
+ label: z.ZodString;
835
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
836
+ source: z.ZodObject<{
837
+ addonId: z.ZodString;
838
+ stableId: z.ZodString;
839
+ }, z.core.$strip>;
840
+ cap: z.ZodString;
841
+ fieldPath: z.ZodString;
842
+ kind: z.ZodLiteral<"from">;
843
+ }, z.core.$strip>, z.ZodObject<{
844
+ kind: z.ZodLiteral<"expression">;
845
+ expr: z.ZodString;
846
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
847
+ source: z.ZodObject<{
848
+ addonId: z.ZodString;
849
+ stableId: z.ZodString;
850
+ }, z.core.$strip>;
851
+ cap: z.ZodString;
852
+ fieldPath: z.ZodString;
853
+ kind: z.ZodLiteral<"from">;
854
+ }, z.core.$strip>, z.ZodObject<{
855
+ kind: z.ZodLiteral<"literal">;
856
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
857
+ }, z.core.$strip>], "kind">>;
858
+ }, z.core.$strip>, z.ZodObject<{
859
+ kind: z.ZodLiteral<"code">;
860
+ code: z.ZodString;
861
+ }, z.core.$strip>], "kind">>;
862
+ }, z.core.$strip>>>;
688
863
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
689
864
  kind: z.ZodLiteral<"forward">;
690
865
  source: z.ZodObject<{
@@ -718,11 +893,17 @@ export declare const CompositionListReadSchema: z.ZodDiscriminatedUnion<[z.ZodOb
718
893
  failed: "failed";
719
894
  stopped: "stopped";
720
895
  starting: "starting";
896
+ degraded: "degraded";
721
897
  }>;
722
898
  reason: z.ZodOptional<z.ZodString>;
723
899
  fields: z.ZodArray<z.ZodObject<{
724
900
  cap: z.ZodString;
725
901
  path: z.ZodString;
902
+ item: z.ZodOptional<z.ZodObject<{
903
+ arrayPath: z.ZodString;
904
+ key: z.ZodString;
905
+ label: z.ZodString;
906
+ }, z.core.$strip>>;
726
907
  state: z.ZodEnum<{
727
908
  unavailable: "unavailable";
728
909
  fresh: "fresh";
@@ -760,6 +941,7 @@ export declare const CompositionGetReadSchema: z.ZodDiscriminatedUnion<[z.ZodObj
760
941
  failed: "failed";
761
942
  stopped: "stopped";
762
943
  starting: "starting";
944
+ degraded: "degraded";
763
945
  }>;
764
946
  lastError: z.ZodOptional<z.ZodString>;
765
947
  lastChangedAt: z.ZodNumber;
@@ -848,6 +1030,36 @@ export declare const CompositionGetReadSchema: z.ZodDiscriminatedUnion<[z.ZodObj
848
1030
  kind: z.ZodLiteral<"code">;
849
1031
  code: z.ZodString;
850
1032
  }, z.core.$strip>], "kind">>;
1033
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1034
+ label: z.ZodString;
1035
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1036
+ source: z.ZodObject<{
1037
+ addonId: z.ZodString;
1038
+ stableId: z.ZodString;
1039
+ }, z.core.$strip>;
1040
+ cap: z.ZodString;
1041
+ fieldPath: z.ZodString;
1042
+ kind: z.ZodLiteral<"from">;
1043
+ }, z.core.$strip>, z.ZodObject<{
1044
+ kind: z.ZodLiteral<"expression">;
1045
+ expr: z.ZodString;
1046
+ bindings: 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<"literal">;
1056
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1057
+ }, z.core.$strip>], "kind">>;
1058
+ }, z.core.$strip>, z.ZodObject<{
1059
+ kind: z.ZodLiteral<"code">;
1060
+ code: z.ZodString;
1061
+ }, z.core.$strip>], "kind">>;
1062
+ }, z.core.$strip>>>;
851
1063
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
852
1064
  kind: z.ZodLiteral<"forward">;
853
1065
  source: z.ZodObject<{
@@ -881,11 +1093,17 @@ export declare const CompositionGetReadSchema: z.ZodDiscriminatedUnion<[z.ZodObj
881
1093
  failed: "failed";
882
1094
  stopped: "stopped";
883
1095
  starting: "starting";
1096
+ degraded: "degraded";
884
1097
  }>;
885
1098
  reason: z.ZodOptional<z.ZodString>;
886
1099
  fields: z.ZodArray<z.ZodObject<{
887
1100
  cap: z.ZodString;
888
1101
  path: z.ZodString;
1102
+ item: z.ZodOptional<z.ZodObject<{
1103
+ arrayPath: z.ZodString;
1104
+ key: z.ZodString;
1105
+ label: z.ZodString;
1106
+ }, z.core.$strip>>;
889
1107
  state: z.ZodEnum<{
890
1108
  unavailable: "unavailable";
891
1109
  fresh: "fresh";
@@ -905,92 +1123,294 @@ export declare const CompositionGetReadSchema: z.ZodDiscriminatedUnion<[z.ZodObj
905
1123
  reason: z.ZodString;
906
1124
  }, z.core.$strip>], "state">;
907
1125
  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;
992
- stableId: z.ZodString;
993
- }, z.core.$strip>;
1126
+ /** The customization of one existing device, found by its TARGET, or `not-loaded` (D315). */
1127
+ export declare const CompositionCustomizationReadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1128
+ state: z.ZodLiteral<"loaded">;
1129
+ view: z.ZodNullable<z.ZodObject<{
1130
+ block: z.ZodObject<{
1131
+ name: z.ZodString;
1132
+ code: z.ZodString;
1133
+ enabled: z.ZodBoolean;
1134
+ placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
1135
+ integrationId: z.ZodOptional<z.ZodString>;
1136
+ id: z.ZodString;
1137
+ createdAt: z.ZodNumber;
1138
+ updatedAt: z.ZodNumber;
1139
+ createdBy: z.ZodString;
1140
+ status: z.ZodEnum<{
1141
+ running: "running";
1142
+ failed: "failed";
1143
+ stopped: "stopped";
1144
+ starting: "starting";
1145
+ degraded: "degraded";
1146
+ }>;
1147
+ lastError: z.ZodOptional<z.ZodString>;
1148
+ lastChangedAt: z.ZodNumber;
1149
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1150
+ kind: z.ZodLiteral<"code">;
1151
+ }, z.core.$strip>, z.ZodObject<{
1152
+ kind: z.ZodLiteral<"recipe">;
1153
+ recipe: z.ZodObject<{
1154
+ triggers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1155
+ kind: z.ZodLiteral<"device-state">;
1156
+ deviceId: z.ZodNumber;
1157
+ cap: z.ZodString;
1158
+ fieldPath: z.ZodString;
1159
+ becomes: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1160
+ edge: z.ZodOptional<z.ZodBoolean>;
1161
+ forMs: z.ZodOptional<z.ZodNumber>;
1162
+ debounceMs: z.ZodOptional<z.ZodNumber>;
1163
+ }, z.core.$strip>, z.ZodObject<{
1164
+ kind: z.ZodLiteral<"device-event">;
1165
+ category: z.ZodString;
1166
+ deviceId: z.ZodOptional<z.ZodNumber>;
1167
+ }, z.core.$strip>, z.ZodObject<{
1168
+ kind: z.ZodLiteral<"schedule">;
1169
+ cron: z.ZodString;
1170
+ }, z.core.$strip>, z.ZodObject<{
1171
+ kind: z.ZodLiteral<"manual">;
1172
+ }, z.core.$strip>], "kind">>;
1173
+ conditions: z.ZodOptional<z.ZodType<import("../index.js").AutomationCondition, unknown, z.core.$ZodTypeInternals<import("../index.js").AutomationCondition, unknown>>>;
1174
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1175
+ kind: z.ZodLiteral<"wait">;
1176
+ seconds: z.ZodNumber;
1177
+ }, z.core.$strip>, z.ZodObject<{
1178
+ kind: z.ZodLiteral<"cap">;
1179
+ deviceId: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1180
+ $var: z.ZodString;
1181
+ }, z.core.$strip>]>;
1182
+ cap: z.ZodString;
1183
+ method: z.ZodString;
1184
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1185
+ }, z.core.$strip>, z.ZodObject<{
1186
+ kind: z.ZodLiteral<"code">;
1187
+ code: z.ZodString;
1188
+ }, z.core.$strip>], "kind">>;
1189
+ }, z.core.$strip>;
1190
+ }, z.core.$strip>, z.ZodObject<{
1191
+ kind: z.ZodLiteral<"composition">;
1192
+ composition: z.ZodObject<{
1193
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1194
+ kind: z.ZodLiteral<"new">;
1195
+ type: z.ZodEnum<typeof import("../index.js").DeviceType>;
1196
+ role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
1197
+ }, z.core.$strip>, z.ZodObject<{
1198
+ kind: z.ZodLiteral<"existing">;
1199
+ device: z.ZodObject<{
1200
+ addonId: z.ZodString;
1201
+ stableId: z.ZodString;
1202
+ }, z.core.$strip>;
1203
+ }, z.core.$strip>], "kind">;
1204
+ features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1205
+ kind: z.ZodLiteral<"fields">;
1206
+ cap: z.ZodString;
1207
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1208
+ source: z.ZodObject<{
1209
+ addonId: z.ZodString;
1210
+ stableId: z.ZodString;
1211
+ }, z.core.$strip>;
1212
+ cap: z.ZodString;
1213
+ fieldPath: z.ZodString;
1214
+ kind: z.ZodLiteral<"from">;
1215
+ }, z.core.$strip>, z.ZodObject<{
1216
+ kind: z.ZodLiteral<"expression">;
1217
+ expr: z.ZodString;
1218
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1219
+ source: z.ZodObject<{
1220
+ addonId: z.ZodString;
1221
+ stableId: z.ZodString;
1222
+ }, z.core.$strip>;
1223
+ cap: z.ZodString;
1224
+ fieldPath: z.ZodString;
1225
+ kind: z.ZodLiteral<"from">;
1226
+ }, z.core.$strip>, z.ZodObject<{
1227
+ kind: z.ZodLiteral<"literal">;
1228
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1229
+ }, z.core.$strip>], "kind">>;
1230
+ }, z.core.$strip>, z.ZodObject<{
1231
+ kind: z.ZodLiteral<"code">;
1232
+ code: z.ZodString;
1233
+ }, z.core.$strip>], "kind">>;
1234
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1235
+ label: z.ZodString;
1236
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1237
+ source: z.ZodObject<{
1238
+ addonId: z.ZodString;
1239
+ stableId: z.ZodString;
1240
+ }, z.core.$strip>;
1241
+ cap: z.ZodString;
1242
+ fieldPath: z.ZodString;
1243
+ kind: z.ZodLiteral<"from">;
1244
+ }, z.core.$strip>, z.ZodObject<{
1245
+ kind: z.ZodLiteral<"expression">;
1246
+ expr: z.ZodString;
1247
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1248
+ source: z.ZodObject<{
1249
+ addonId: z.ZodString;
1250
+ stableId: z.ZodString;
1251
+ }, z.core.$strip>;
1252
+ cap: z.ZodString;
1253
+ fieldPath: z.ZodString;
1254
+ kind: z.ZodLiteral<"from">;
1255
+ }, z.core.$strip>, z.ZodObject<{
1256
+ kind: z.ZodLiteral<"literal">;
1257
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1258
+ }, z.core.$strip>], "kind">>;
1259
+ }, z.core.$strip>, z.ZodObject<{
1260
+ kind: z.ZodLiteral<"code">;
1261
+ code: z.ZodString;
1262
+ }, z.core.$strip>], "kind">>;
1263
+ }, z.core.$strip>>>;
1264
+ commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1265
+ kind: z.ZodLiteral<"forward">;
1266
+ source: z.ZodObject<{
1267
+ addonId: z.ZodString;
1268
+ stableId: z.ZodString;
1269
+ }, z.core.$strip>;
1270
+ cap: z.ZodString;
1271
+ method: z.ZodString;
1272
+ }, z.core.$strip>, z.ZodObject<{
1273
+ kind: z.ZodLiteral<"code">;
1274
+ code: z.ZodString;
1275
+ }, z.core.$strip>], "kind">>>;
1276
+ }, z.core.$strip>, z.ZodObject<{
1277
+ kind: z.ZodLiteral<"passthrough">;
1278
+ cap: z.ZodString;
1279
+ source: z.ZodObject<{
1280
+ addonId: z.ZodString;
1281
+ stableId: z.ZodString;
1282
+ }, z.core.$strip>;
1283
+ }, z.core.$strip>], "kind">>;
1284
+ }, z.core.$strip>;
1285
+ }, z.core.$strip>], "kind">>;
1286
+ }, z.core.$strip>;
1287
+ state: z.ZodDiscriminatedUnion<[z.ZodObject<{
1288
+ kind: z.ZodLiteral<"answered">;
1289
+ state: z.ZodNullable<z.ZodObject<{
1290
+ blockId: z.ZodString;
1291
+ deviceId: z.ZodNullable<z.ZodNumber>;
1292
+ status: z.ZodEnum<{
1293
+ running: "running";
1294
+ failed: "failed";
1295
+ stopped: "stopped";
1296
+ starting: "starting";
1297
+ degraded: "degraded";
1298
+ }>;
1299
+ reason: z.ZodOptional<z.ZodString>;
1300
+ fields: z.ZodArray<z.ZodObject<{
1301
+ cap: z.ZodString;
1302
+ path: z.ZodString;
1303
+ item: z.ZodOptional<z.ZodObject<{
1304
+ arrayPath: z.ZodString;
1305
+ key: z.ZodString;
1306
+ label: z.ZodString;
1307
+ }, z.core.$strip>>;
1308
+ state: z.ZodEnum<{
1309
+ unavailable: "unavailable";
1310
+ fresh: "fresh";
1311
+ stale: "stale";
1312
+ }>;
1313
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1314
+ reason: z.ZodOptional<z.ZodString>;
1315
+ }, z.core.$strip>>;
1316
+ }, z.core.$strip>>;
1317
+ }, z.core.$strip>, z.ZodObject<{
1318
+ kind: z.ZodLiteral<"unreachable">;
1319
+ error: z.ZodString;
1320
+ }, z.core.$strip>], "kind">;
1321
+ }, z.core.$strip>>;
1322
+ }, z.core.$strip>, z.ZodObject<{
1323
+ state: z.ZodLiteral<"not-loaded">;
1324
+ reason: z.ZodString;
1325
+ }, z.core.$strip>], "state">;
1326
+ export type CompositionCustomizationRead = z.infer<typeof CompositionCustomizationReadSchema>;
1327
+ /** What a compile attempt produced. */
1328
+ export declare const CoreBlockCompileResultSchema: z.ZodObject<{
1329
+ ok: z.ZodBoolean;
1330
+ error: z.ZodOptional<z.ZodString>;
1331
+ line: z.ZodOptional<z.ZodNumber>;
1332
+ column: z.ZodOptional<z.ZodNumber>;
1333
+ }, z.core.$strip>;
1334
+ export type CoreBlockCompileResult = z.infer<typeof CoreBlockCompileResultSchema>;
1335
+ export declare const coreBlocksCapability: {
1336
+ readonly name: "core-blocks";
1337
+ readonly scope: "system";
1338
+ readonly mode: "singleton";
1339
+ readonly methods: {
1340
+ readonly list: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
1341
+ blocks: z.ZodArray<z.ZodObject<{
1342
+ name: z.ZodString;
1343
+ code: z.ZodString;
1344
+ enabled: z.ZodBoolean;
1345
+ placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
1346
+ integrationId: z.ZodOptional<z.ZodString>;
1347
+ id: z.ZodString;
1348
+ createdAt: z.ZodNumber;
1349
+ updatedAt: z.ZodNumber;
1350
+ createdBy: z.ZodString;
1351
+ status: z.ZodEnum<{
1352
+ running: "running";
1353
+ failed: "failed";
1354
+ stopped: "stopped";
1355
+ starting: "starting";
1356
+ degraded: "degraded";
1357
+ }>;
1358
+ lastError: z.ZodOptional<z.ZodString>;
1359
+ lastChangedAt: z.ZodNumber;
1360
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1361
+ kind: z.ZodLiteral<"code">;
1362
+ }, z.core.$strip>, z.ZodObject<{
1363
+ kind: z.ZodLiteral<"recipe">;
1364
+ recipe: z.ZodObject<{
1365
+ triggers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1366
+ kind: z.ZodLiteral<"device-state">;
1367
+ deviceId: z.ZodNumber;
1368
+ cap: z.ZodString;
1369
+ fieldPath: z.ZodString;
1370
+ becomes: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1371
+ edge: z.ZodOptional<z.ZodBoolean>;
1372
+ forMs: z.ZodOptional<z.ZodNumber>;
1373
+ debounceMs: z.ZodOptional<z.ZodNumber>;
1374
+ }, z.core.$strip>, z.ZodObject<{
1375
+ kind: z.ZodLiteral<"device-event">;
1376
+ category: z.ZodString;
1377
+ deviceId: z.ZodOptional<z.ZodNumber>;
1378
+ }, z.core.$strip>, z.ZodObject<{
1379
+ kind: z.ZodLiteral<"schedule">;
1380
+ cron: z.ZodString;
1381
+ }, z.core.$strip>, z.ZodObject<{
1382
+ kind: z.ZodLiteral<"manual">;
1383
+ }, z.core.$strip>], "kind">>;
1384
+ conditions: z.ZodOptional<z.ZodType<import("../index.js").AutomationCondition, unknown, z.core.$ZodTypeInternals<import("../index.js").AutomationCondition, unknown>>>;
1385
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1386
+ kind: z.ZodLiteral<"wait">;
1387
+ seconds: z.ZodNumber;
1388
+ }, z.core.$strip>, z.ZodObject<{
1389
+ kind: z.ZodLiteral<"cap">;
1390
+ deviceId: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1391
+ $var: z.ZodString;
1392
+ }, z.core.$strip>]>;
1393
+ cap: z.ZodString;
1394
+ method: z.ZodString;
1395
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1396
+ }, z.core.$strip>, z.ZodObject<{
1397
+ kind: z.ZodLiteral<"code">;
1398
+ code: z.ZodString;
1399
+ }, z.core.$strip>], "kind">>;
1400
+ }, z.core.$strip>;
1401
+ }, z.core.$strip>, z.ZodObject<{
1402
+ kind: z.ZodLiteral<"composition">;
1403
+ composition: z.ZodObject<{
1404
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1405
+ kind: z.ZodLiteral<"new">;
1406
+ type: z.ZodEnum<typeof import("../index.js").DeviceType>;
1407
+ role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
1408
+ }, z.core.$strip>, z.ZodObject<{
1409
+ kind: z.ZodLiteral<"existing">;
1410
+ device: z.ZodObject<{
1411
+ addonId: z.ZodString;
1412
+ stableId: z.ZodString;
1413
+ }, z.core.$strip>;
994
1414
  }, z.core.$strip>], "kind">;
995
1415
  features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
996
1416
  kind: z.ZodLiteral<"fields">;
@@ -1022,6 +1442,36 @@ export declare const coreBlocksCapability: {
1022
1442
  kind: z.ZodLiteral<"code">;
1023
1443
  code: z.ZodString;
1024
1444
  }, z.core.$strip>], "kind">>;
1445
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1446
+ label: z.ZodString;
1447
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1448
+ source: z.ZodObject<{
1449
+ addonId: z.ZodString;
1450
+ stableId: z.ZodString;
1451
+ }, z.core.$strip>;
1452
+ cap: z.ZodString;
1453
+ fieldPath: z.ZodString;
1454
+ kind: z.ZodLiteral<"from">;
1455
+ }, z.core.$strip>, z.ZodObject<{
1456
+ kind: z.ZodLiteral<"expression">;
1457
+ expr: z.ZodString;
1458
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1459
+ source: z.ZodObject<{
1460
+ addonId: z.ZodString;
1461
+ stableId: z.ZodString;
1462
+ }, z.core.$strip>;
1463
+ cap: z.ZodString;
1464
+ fieldPath: z.ZodString;
1465
+ kind: z.ZodLiteral<"from">;
1466
+ }, z.core.$strip>, z.ZodObject<{
1467
+ kind: z.ZodLiteral<"literal">;
1468
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1469
+ }, z.core.$strip>], "kind">>;
1470
+ }, z.core.$strip>, z.ZodObject<{
1471
+ kind: z.ZodLiteral<"code">;
1472
+ code: z.ZodString;
1473
+ }, z.core.$strip>], "kind">>;
1474
+ }, z.core.$strip>>>;
1025
1475
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1026
1476
  kind: z.ZodLiteral<"forward">;
1027
1477
  source: z.ZodObject<{
@@ -1064,6 +1514,7 @@ export declare const coreBlocksCapability: {
1064
1514
  failed: "failed";
1065
1515
  stopped: "stopped";
1066
1516
  starting: "starting";
1517
+ degraded: "degraded";
1067
1518
  }>;
1068
1519
  lastError: z.ZodOptional<z.ZodString>;
1069
1520
  lastChangedAt: z.ZodNumber;
@@ -1152,6 +1603,36 @@ export declare const coreBlocksCapability: {
1152
1603
  kind: z.ZodLiteral<"code">;
1153
1604
  code: z.ZodString;
1154
1605
  }, z.core.$strip>], "kind">>;
1606
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1607
+ label: z.ZodString;
1608
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1609
+ source: z.ZodObject<{
1610
+ addonId: z.ZodString;
1611
+ stableId: z.ZodString;
1612
+ }, z.core.$strip>;
1613
+ cap: z.ZodString;
1614
+ fieldPath: z.ZodString;
1615
+ kind: z.ZodLiteral<"from">;
1616
+ }, z.core.$strip>, z.ZodObject<{
1617
+ kind: z.ZodLiteral<"expression">;
1618
+ expr: z.ZodString;
1619
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1620
+ source: z.ZodObject<{
1621
+ addonId: z.ZodString;
1622
+ stableId: z.ZodString;
1623
+ }, z.core.$strip>;
1624
+ cap: z.ZodString;
1625
+ fieldPath: z.ZodString;
1626
+ kind: z.ZodLiteral<"from">;
1627
+ }, z.core.$strip>, z.ZodObject<{
1628
+ kind: z.ZodLiteral<"literal">;
1629
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1630
+ }, z.core.$strip>], "kind">>;
1631
+ }, z.core.$strip>, z.ZodObject<{
1632
+ kind: z.ZodLiteral<"code">;
1633
+ code: z.ZodString;
1634
+ }, z.core.$strip>], "kind">>;
1635
+ }, z.core.$strip>>>;
1155
1636
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1156
1637
  kind: z.ZodLiteral<"forward">;
1157
1638
  source: z.ZodObject<{
@@ -1205,6 +1686,7 @@ export declare const coreBlocksCapability: {
1205
1686
  failed: "failed";
1206
1687
  stopped: "stopped";
1207
1688
  starting: "starting";
1689
+ degraded: "degraded";
1208
1690
  }>;
1209
1691
  lastError: z.ZodOptional<z.ZodString>;
1210
1692
  lastChangedAt: z.ZodNumber;
@@ -1293,6 +1775,36 @@ export declare const coreBlocksCapability: {
1293
1775
  kind: z.ZodLiteral<"code">;
1294
1776
  code: z.ZodString;
1295
1777
  }, z.core.$strip>], "kind">>;
1778
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1779
+ label: z.ZodString;
1780
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1781
+ source: z.ZodObject<{
1782
+ addonId: z.ZodString;
1783
+ stableId: z.ZodString;
1784
+ }, z.core.$strip>;
1785
+ cap: z.ZodString;
1786
+ fieldPath: z.ZodString;
1787
+ kind: z.ZodLiteral<"from">;
1788
+ }, z.core.$strip>, z.ZodObject<{
1789
+ kind: z.ZodLiteral<"expression">;
1790
+ expr: z.ZodString;
1791
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1792
+ source: z.ZodObject<{
1793
+ addonId: z.ZodString;
1794
+ stableId: z.ZodString;
1795
+ }, z.core.$strip>;
1796
+ cap: z.ZodString;
1797
+ fieldPath: z.ZodString;
1798
+ kind: z.ZodLiteral<"from">;
1799
+ }, z.core.$strip>, z.ZodObject<{
1800
+ kind: z.ZodLiteral<"literal">;
1801
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1802
+ }, z.core.$strip>], "kind">>;
1803
+ }, z.core.$strip>, z.ZodObject<{
1804
+ kind: z.ZodLiteral<"code">;
1805
+ code: z.ZodString;
1806
+ }, z.core.$strip>], "kind">>;
1807
+ }, z.core.$strip>>>;
1296
1808
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1297
1809
  kind: z.ZodLiteral<"forward">;
1298
1810
  source: z.ZodObject<{
@@ -1344,6 +1856,7 @@ export declare const coreBlocksCapability: {
1344
1856
  failed: "failed";
1345
1857
  stopped: "stopped";
1346
1858
  starting: "starting";
1859
+ degraded: "degraded";
1347
1860
  }>;
1348
1861
  lastError: z.ZodOptional<z.ZodString>;
1349
1862
  lastChangedAt: z.ZodNumber;
@@ -1432,6 +1945,36 @@ export declare const coreBlocksCapability: {
1432
1945
  kind: z.ZodLiteral<"code">;
1433
1946
  code: z.ZodString;
1434
1947
  }, z.core.$strip>], "kind">>;
1948
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1949
+ label: z.ZodString;
1950
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1951
+ source: z.ZodObject<{
1952
+ addonId: z.ZodString;
1953
+ stableId: z.ZodString;
1954
+ }, z.core.$strip>;
1955
+ cap: z.ZodString;
1956
+ fieldPath: z.ZodString;
1957
+ kind: z.ZodLiteral<"from">;
1958
+ }, z.core.$strip>, z.ZodObject<{
1959
+ kind: z.ZodLiteral<"expression">;
1960
+ expr: z.ZodString;
1961
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1962
+ source: z.ZodObject<{
1963
+ addonId: z.ZodString;
1964
+ stableId: z.ZodString;
1965
+ }, z.core.$strip>;
1966
+ cap: z.ZodString;
1967
+ fieldPath: z.ZodString;
1968
+ kind: z.ZodLiteral<"from">;
1969
+ }, z.core.$strip>, z.ZodObject<{
1970
+ kind: z.ZodLiteral<"literal">;
1971
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1972
+ }, z.core.$strip>], "kind">>;
1973
+ }, z.core.$strip>, z.ZodObject<{
1974
+ kind: z.ZodLiteral<"code">;
1975
+ code: z.ZodString;
1976
+ }, z.core.$strip>], "kind">>;
1977
+ }, z.core.$strip>>>;
1435
1978
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1436
1979
  kind: z.ZodLiteral<"forward">;
1437
1980
  source: z.ZodObject<{
@@ -1482,6 +2025,7 @@ export declare const coreBlocksCapability: {
1482
2025
  failed: "failed";
1483
2026
  stopped: "stopped";
1484
2027
  starting: "starting";
2028
+ degraded: "degraded";
1485
2029
  }>;
1486
2030
  lastError: z.ZodOptional<z.ZodString>;
1487
2031
  lastChangedAt: z.ZodNumber;
@@ -1570,6 +2114,36 @@ export declare const coreBlocksCapability: {
1570
2114
  kind: z.ZodLiteral<"code">;
1571
2115
  code: z.ZodString;
1572
2116
  }, z.core.$strip>], "kind">>;
2117
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2118
+ label: z.ZodString;
2119
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2120
+ source: z.ZodObject<{
2121
+ addonId: z.ZodString;
2122
+ stableId: z.ZodString;
2123
+ }, z.core.$strip>;
2124
+ cap: z.ZodString;
2125
+ fieldPath: z.ZodString;
2126
+ kind: z.ZodLiteral<"from">;
2127
+ }, z.core.$strip>, z.ZodObject<{
2128
+ kind: z.ZodLiteral<"expression">;
2129
+ expr: z.ZodString;
2130
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2131
+ source: z.ZodObject<{
2132
+ addonId: z.ZodString;
2133
+ stableId: z.ZodString;
2134
+ }, z.core.$strip>;
2135
+ cap: z.ZodString;
2136
+ fieldPath: z.ZodString;
2137
+ kind: z.ZodLiteral<"from">;
2138
+ }, z.core.$strip>, z.ZodObject<{
2139
+ kind: z.ZodLiteral<"literal">;
2140
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2141
+ }, z.core.$strip>], "kind">>;
2142
+ }, z.core.$strip>, z.ZodObject<{
2143
+ kind: z.ZodLiteral<"code">;
2144
+ code: z.ZodString;
2145
+ }, z.core.$strip>], "kind">>;
2146
+ }, z.core.$strip>>>;
1573
2147
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1574
2148
  kind: z.ZodLiteral<"forward">;
1575
2149
  source: z.ZodObject<{
@@ -1625,6 +2199,7 @@ export declare const coreBlocksCapability: {
1625
2199
  failed: "failed";
1626
2200
  stopped: "stopped";
1627
2201
  starting: "starting";
2202
+ degraded: "degraded";
1628
2203
  }>;
1629
2204
  lastError: z.ZodOptional<z.ZodString>;
1630
2205
  lastChangedAt: z.ZodNumber;
@@ -1713,6 +2288,36 @@ export declare const coreBlocksCapability: {
1713
2288
  kind: z.ZodLiteral<"code">;
1714
2289
  code: z.ZodString;
1715
2290
  }, z.core.$strip>], "kind">>;
2291
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2292
+ label: z.ZodString;
2293
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2294
+ source: z.ZodObject<{
2295
+ addonId: z.ZodString;
2296
+ stableId: z.ZodString;
2297
+ }, z.core.$strip>;
2298
+ cap: z.ZodString;
2299
+ fieldPath: z.ZodString;
2300
+ kind: z.ZodLiteral<"from">;
2301
+ }, z.core.$strip>, z.ZodObject<{
2302
+ kind: z.ZodLiteral<"expression">;
2303
+ expr: z.ZodString;
2304
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2305
+ source: z.ZodObject<{
2306
+ addonId: z.ZodString;
2307
+ stableId: z.ZodString;
2308
+ }, z.core.$strip>;
2309
+ cap: z.ZodString;
2310
+ fieldPath: z.ZodString;
2311
+ kind: z.ZodLiteral<"from">;
2312
+ }, z.core.$strip>, z.ZodObject<{
2313
+ kind: z.ZodLiteral<"literal">;
2314
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2315
+ }, z.core.$strip>], "kind">>;
2316
+ }, z.core.$strip>, z.ZodObject<{
2317
+ kind: z.ZodLiteral<"code">;
2318
+ code: z.ZodString;
2319
+ }, z.core.$strip>], "kind">>;
2320
+ }, z.core.$strip>>>;
1716
2321
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1717
2322
  kind: z.ZodLiteral<"forward">;
1718
2323
  source: z.ZodObject<{
@@ -1771,7 +2376,7 @@ export declare const coreBlocksCapability: {
1771
2376
  */
1772
2377
  readonly createComposition: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1773
2378
  block: z.ZodObject<{
1774
- name: z.ZodString;
2379
+ name: z.ZodOptional<z.ZodString>;
1775
2380
  enabled: z.ZodBoolean;
1776
2381
  composition: z.ZodObject<{
1777
2382
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1815,6 +2420,36 @@ export declare const coreBlocksCapability: {
1815
2420
  kind: z.ZodLiteral<"code">;
1816
2421
  code: z.ZodString;
1817
2422
  }, z.core.$strip>], "kind">>;
2423
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2424
+ label: z.ZodString;
2425
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2426
+ source: z.ZodObject<{
2427
+ addonId: z.ZodString;
2428
+ stableId: z.ZodString;
2429
+ }, z.core.$strip>;
2430
+ cap: z.ZodString;
2431
+ fieldPath: z.ZodString;
2432
+ kind: z.ZodLiteral<"from">;
2433
+ }, z.core.$strip>, z.ZodObject<{
2434
+ kind: z.ZodLiteral<"expression">;
2435
+ expr: z.ZodString;
2436
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2437
+ source: z.ZodObject<{
2438
+ addonId: z.ZodString;
2439
+ stableId: z.ZodString;
2440
+ }, z.core.$strip>;
2441
+ cap: z.ZodString;
2442
+ fieldPath: z.ZodString;
2443
+ kind: z.ZodLiteral<"from">;
2444
+ }, z.core.$strip>, z.ZodObject<{
2445
+ kind: z.ZodLiteral<"literal">;
2446
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2447
+ }, z.core.$strip>], "kind">>;
2448
+ }, z.core.$strip>, z.ZodObject<{
2449
+ kind: z.ZodLiteral<"code">;
2450
+ code: z.ZodString;
2451
+ }, z.core.$strip>], "kind">>;
2452
+ }, z.core.$strip>>>;
1818
2453
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1819
2454
  kind: z.ZodLiteral<"forward">;
1820
2455
  source: z.ZodObject<{
@@ -1853,6 +2488,7 @@ export declare const coreBlocksCapability: {
1853
2488
  failed: "failed";
1854
2489
  stopped: "stopped";
1855
2490
  starting: "starting";
2491
+ degraded: "degraded";
1856
2492
  }>;
1857
2493
  lastError: z.ZodOptional<z.ZodString>;
1858
2494
  lastChangedAt: z.ZodNumber;
@@ -1941,6 +2577,36 @@ export declare const coreBlocksCapability: {
1941
2577
  kind: z.ZodLiteral<"code">;
1942
2578
  code: z.ZodString;
1943
2579
  }, z.core.$strip>], "kind">>;
2580
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2581
+ label: z.ZodString;
2582
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2583
+ source: z.ZodObject<{
2584
+ addonId: z.ZodString;
2585
+ stableId: z.ZodString;
2586
+ }, z.core.$strip>;
2587
+ cap: z.ZodString;
2588
+ fieldPath: z.ZodString;
2589
+ kind: z.ZodLiteral<"from">;
2590
+ }, z.core.$strip>, z.ZodObject<{
2591
+ kind: z.ZodLiteral<"expression">;
2592
+ expr: z.ZodString;
2593
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2594
+ source: z.ZodObject<{
2595
+ addonId: z.ZodString;
2596
+ stableId: z.ZodString;
2597
+ }, z.core.$strip>;
2598
+ cap: z.ZodString;
2599
+ fieldPath: z.ZodString;
2600
+ kind: z.ZodLiteral<"from">;
2601
+ }, z.core.$strip>, z.ZodObject<{
2602
+ kind: z.ZodLiteral<"literal">;
2603
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2604
+ }, z.core.$strip>], "kind">>;
2605
+ }, z.core.$strip>, z.ZodObject<{
2606
+ kind: z.ZodLiteral<"code">;
2607
+ code: z.ZodString;
2608
+ }, z.core.$strip>], "kind">>;
2609
+ }, z.core.$strip>>>;
1944
2610
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1945
2611
  kind: z.ZodLiteral<"forward">;
1946
2612
  source: z.ZodObject<{
@@ -1976,7 +2642,7 @@ export declare const coreBlocksCapability: {
1976
2642
  blockId: z.ZodString;
1977
2643
  expectedUpdatedAt: z.ZodNumber;
1978
2644
  block: z.ZodObject<{
1979
- name: z.ZodOptional<z.ZodString>;
2645
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1980
2646
  enabled: z.ZodOptional<z.ZodBoolean>;
1981
2647
  composition: z.ZodOptional<z.ZodObject<{
1982
2648
  target: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2020,6 +2686,36 @@ export declare const coreBlocksCapability: {
2020
2686
  kind: z.ZodLiteral<"code">;
2021
2687
  code: z.ZodString;
2022
2688
  }, z.core.$strip>], "kind">>;
2689
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2690
+ label: z.ZodString;
2691
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2692
+ source: z.ZodObject<{
2693
+ addonId: z.ZodString;
2694
+ stableId: z.ZodString;
2695
+ }, z.core.$strip>;
2696
+ cap: z.ZodString;
2697
+ fieldPath: z.ZodString;
2698
+ kind: z.ZodLiteral<"from">;
2699
+ }, z.core.$strip>, z.ZodObject<{
2700
+ kind: z.ZodLiteral<"expression">;
2701
+ expr: z.ZodString;
2702
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2703
+ source: z.ZodObject<{
2704
+ addonId: z.ZodString;
2705
+ stableId: z.ZodString;
2706
+ }, z.core.$strip>;
2707
+ cap: z.ZodString;
2708
+ fieldPath: z.ZodString;
2709
+ kind: z.ZodLiteral<"from">;
2710
+ }, z.core.$strip>, z.ZodObject<{
2711
+ kind: z.ZodLiteral<"literal">;
2712
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2713
+ }, z.core.$strip>], "kind">>;
2714
+ }, z.core.$strip>, z.ZodObject<{
2715
+ kind: z.ZodLiteral<"code">;
2716
+ code: z.ZodString;
2717
+ }, z.core.$strip>], "kind">>;
2718
+ }, z.core.$strip>>>;
2023
2719
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2024
2720
  kind: z.ZodLiteral<"forward">;
2025
2721
  source: z.ZodObject<{
@@ -2058,6 +2754,7 @@ export declare const coreBlocksCapability: {
2058
2754
  failed: "failed";
2059
2755
  stopped: "stopped";
2060
2756
  starting: "starting";
2757
+ degraded: "degraded";
2061
2758
  }>;
2062
2759
  lastError: z.ZodOptional<z.ZodString>;
2063
2760
  lastChangedAt: z.ZodNumber;
@@ -2146,6 +2843,36 @@ export declare const coreBlocksCapability: {
2146
2843
  kind: z.ZodLiteral<"code">;
2147
2844
  code: z.ZodString;
2148
2845
  }, z.core.$strip>], "kind">>;
2846
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2847
+ label: z.ZodString;
2848
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2849
+ source: z.ZodObject<{
2850
+ addonId: z.ZodString;
2851
+ stableId: z.ZodString;
2852
+ }, z.core.$strip>;
2853
+ cap: z.ZodString;
2854
+ fieldPath: z.ZodString;
2855
+ kind: z.ZodLiteral<"from">;
2856
+ }, z.core.$strip>, z.ZodObject<{
2857
+ kind: z.ZodLiteral<"expression">;
2858
+ expr: z.ZodString;
2859
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2860
+ source: z.ZodObject<{
2861
+ addonId: z.ZodString;
2862
+ stableId: z.ZodString;
2863
+ }, z.core.$strip>;
2864
+ cap: z.ZodString;
2865
+ fieldPath: z.ZodString;
2866
+ kind: z.ZodLiteral<"from">;
2867
+ }, z.core.$strip>, z.ZodObject<{
2868
+ kind: z.ZodLiteral<"literal">;
2869
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
2870
+ }, z.core.$strip>], "kind">>;
2871
+ }, z.core.$strip>, z.ZodObject<{
2872
+ kind: z.ZodLiteral<"code">;
2873
+ code: z.ZodString;
2874
+ }, z.core.$strip>], "kind">>;
2875
+ }, z.core.$strip>>>;
2149
2876
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2150
2877
  kind: z.ZodLiteral<"forward">;
2151
2878
  source: z.ZodObject<{
@@ -2193,6 +2920,7 @@ export declare const coreBlocksCapability: {
2193
2920
  failed: "failed";
2194
2921
  stopped: "stopped";
2195
2922
  starting: "starting";
2923
+ degraded: "degraded";
2196
2924
  }>;
2197
2925
  lastError: z.ZodOptional<z.ZodString>;
2198
2926
  lastChangedAt: z.ZodNumber;
@@ -2281,6 +3009,36 @@ export declare const coreBlocksCapability: {
2281
3009
  kind: z.ZodLiteral<"code">;
2282
3010
  code: z.ZodString;
2283
3011
  }, z.core.$strip>], "kind">>;
3012
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3013
+ label: z.ZodString;
3014
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3015
+ source: z.ZodObject<{
3016
+ addonId: z.ZodString;
3017
+ stableId: z.ZodString;
3018
+ }, z.core.$strip>;
3019
+ cap: z.ZodString;
3020
+ fieldPath: z.ZodString;
3021
+ kind: z.ZodLiteral<"from">;
3022
+ }, z.core.$strip>, z.ZodObject<{
3023
+ kind: z.ZodLiteral<"expression">;
3024
+ expr: z.ZodString;
3025
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3026
+ source: z.ZodObject<{
3027
+ addonId: z.ZodString;
3028
+ stableId: z.ZodString;
3029
+ }, z.core.$strip>;
3030
+ cap: z.ZodString;
3031
+ fieldPath: z.ZodString;
3032
+ kind: z.ZodLiteral<"from">;
3033
+ }, z.core.$strip>, z.ZodObject<{
3034
+ kind: z.ZodLiteral<"literal">;
3035
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3036
+ }, z.core.$strip>], "kind">>;
3037
+ }, z.core.$strip>, z.ZodObject<{
3038
+ kind: z.ZodLiteral<"code">;
3039
+ code: z.ZodString;
3040
+ }, z.core.$strip>], "kind">>;
3041
+ }, z.core.$strip>>>;
2284
3042
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2285
3043
  kind: z.ZodLiteral<"forward">;
2286
3044
  source: z.ZodObject<{
@@ -2314,11 +3072,17 @@ export declare const coreBlocksCapability: {
2314
3072
  failed: "failed";
2315
3073
  stopped: "stopped";
2316
3074
  starting: "starting";
3075
+ degraded: "degraded";
2317
3076
  }>;
2318
3077
  reason: z.ZodOptional<z.ZodString>;
2319
3078
  fields: z.ZodArray<z.ZodObject<{
2320
3079
  cap: z.ZodString;
2321
3080
  path: z.ZodString;
3081
+ item: z.ZodOptional<z.ZodObject<{
3082
+ arrayPath: z.ZodString;
3083
+ key: z.ZodString;
3084
+ label: z.ZodString;
3085
+ }, z.core.$strip>>;
2322
3086
  state: z.ZodEnum<{
2323
3087
  unavailable: "unavailable";
2324
3088
  fresh: "fresh";
@@ -2355,6 +3119,213 @@ export declare const coreBlocksCapability: {
2355
3119
  failed: "failed";
2356
3120
  stopped: "stopped";
2357
3121
  starting: "starting";
3122
+ degraded: "degraded";
3123
+ }>;
3124
+ lastError: z.ZodOptional<z.ZodString>;
3125
+ lastChangedAt: z.ZodNumber;
3126
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3127
+ kind: z.ZodLiteral<"code">;
3128
+ }, z.core.$strip>, z.ZodObject<{
3129
+ kind: z.ZodLiteral<"recipe">;
3130
+ recipe: z.ZodObject<{
3131
+ triggers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3132
+ kind: z.ZodLiteral<"device-state">;
3133
+ deviceId: z.ZodNumber;
3134
+ cap: z.ZodString;
3135
+ fieldPath: z.ZodString;
3136
+ becomes: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3137
+ edge: z.ZodOptional<z.ZodBoolean>;
3138
+ forMs: z.ZodOptional<z.ZodNumber>;
3139
+ debounceMs: z.ZodOptional<z.ZodNumber>;
3140
+ }, z.core.$strip>, z.ZodObject<{
3141
+ kind: z.ZodLiteral<"device-event">;
3142
+ category: z.ZodString;
3143
+ deviceId: z.ZodOptional<z.ZodNumber>;
3144
+ }, z.core.$strip>, z.ZodObject<{
3145
+ kind: z.ZodLiteral<"schedule">;
3146
+ cron: z.ZodString;
3147
+ }, z.core.$strip>, z.ZodObject<{
3148
+ kind: z.ZodLiteral<"manual">;
3149
+ }, z.core.$strip>], "kind">>;
3150
+ conditions: z.ZodOptional<z.ZodType<import("../index.js").AutomationCondition, unknown, z.core.$ZodTypeInternals<import("../index.js").AutomationCondition, unknown>>>;
3151
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3152
+ kind: z.ZodLiteral<"wait">;
3153
+ seconds: z.ZodNumber;
3154
+ }, z.core.$strip>, z.ZodObject<{
3155
+ kind: z.ZodLiteral<"cap">;
3156
+ deviceId: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3157
+ $var: z.ZodString;
3158
+ }, z.core.$strip>]>;
3159
+ cap: z.ZodString;
3160
+ method: z.ZodString;
3161
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3162
+ }, z.core.$strip>, z.ZodObject<{
3163
+ kind: z.ZodLiteral<"code">;
3164
+ code: z.ZodString;
3165
+ }, z.core.$strip>], "kind">>;
3166
+ }, z.core.$strip>;
3167
+ }, z.core.$strip>, z.ZodObject<{
3168
+ kind: z.ZodLiteral<"composition">;
3169
+ composition: z.ZodObject<{
3170
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
3171
+ kind: z.ZodLiteral<"new">;
3172
+ type: z.ZodEnum<typeof import("../index.js").DeviceType>;
3173
+ role: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceRole>>;
3174
+ }, z.core.$strip>, z.ZodObject<{
3175
+ kind: z.ZodLiteral<"existing">;
3176
+ device: z.ZodObject<{
3177
+ addonId: z.ZodString;
3178
+ stableId: z.ZodString;
3179
+ }, z.core.$strip>;
3180
+ }, z.core.$strip>], "kind">;
3181
+ features: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3182
+ kind: z.ZodLiteral<"fields">;
3183
+ cap: z.ZodString;
3184
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3185
+ source: z.ZodObject<{
3186
+ addonId: z.ZodString;
3187
+ stableId: z.ZodString;
3188
+ }, z.core.$strip>;
3189
+ cap: z.ZodString;
3190
+ fieldPath: z.ZodString;
3191
+ kind: z.ZodLiteral<"from">;
3192
+ }, z.core.$strip>, z.ZodObject<{
3193
+ kind: z.ZodLiteral<"expression">;
3194
+ expr: z.ZodString;
3195
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3196
+ source: z.ZodObject<{
3197
+ addonId: z.ZodString;
3198
+ stableId: z.ZodString;
3199
+ }, z.core.$strip>;
3200
+ cap: z.ZodString;
3201
+ fieldPath: z.ZodString;
3202
+ kind: z.ZodLiteral<"from">;
3203
+ }, z.core.$strip>, z.ZodObject<{
3204
+ kind: z.ZodLiteral<"literal">;
3205
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3206
+ }, z.core.$strip>], "kind">>;
3207
+ }, z.core.$strip>, z.ZodObject<{
3208
+ kind: z.ZodLiteral<"code">;
3209
+ code: z.ZodString;
3210
+ }, z.core.$strip>], "kind">>;
3211
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3212
+ label: z.ZodString;
3213
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3214
+ source: z.ZodObject<{
3215
+ addonId: z.ZodString;
3216
+ stableId: z.ZodString;
3217
+ }, z.core.$strip>;
3218
+ cap: z.ZodString;
3219
+ fieldPath: z.ZodString;
3220
+ kind: z.ZodLiteral<"from">;
3221
+ }, z.core.$strip>, z.ZodObject<{
3222
+ kind: z.ZodLiteral<"expression">;
3223
+ expr: z.ZodString;
3224
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3225
+ source: z.ZodObject<{
3226
+ addonId: z.ZodString;
3227
+ stableId: z.ZodString;
3228
+ }, z.core.$strip>;
3229
+ cap: z.ZodString;
3230
+ fieldPath: z.ZodString;
3231
+ kind: z.ZodLiteral<"from">;
3232
+ }, z.core.$strip>, z.ZodObject<{
3233
+ kind: z.ZodLiteral<"literal">;
3234
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3235
+ }, z.core.$strip>], "kind">>;
3236
+ }, z.core.$strip>, z.ZodObject<{
3237
+ kind: z.ZodLiteral<"code">;
3238
+ code: z.ZodString;
3239
+ }, z.core.$strip>], "kind">>;
3240
+ }, z.core.$strip>>>;
3241
+ commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3242
+ kind: z.ZodLiteral<"forward">;
3243
+ source: z.ZodObject<{
3244
+ addonId: z.ZodString;
3245
+ stableId: z.ZodString;
3246
+ }, z.core.$strip>;
3247
+ cap: z.ZodString;
3248
+ method: z.ZodString;
3249
+ }, z.core.$strip>, z.ZodObject<{
3250
+ kind: z.ZodLiteral<"code">;
3251
+ code: z.ZodString;
3252
+ }, z.core.$strip>], "kind">>>;
3253
+ }, z.core.$strip>, z.ZodObject<{
3254
+ kind: z.ZodLiteral<"passthrough">;
3255
+ cap: z.ZodString;
3256
+ source: z.ZodObject<{
3257
+ addonId: z.ZodString;
3258
+ stableId: z.ZodString;
3259
+ }, z.core.$strip>;
3260
+ }, z.core.$strip>], "kind">>;
3261
+ }, z.core.$strip>;
3262
+ }, z.core.$strip>], "kind">>;
3263
+ }, z.core.$strip>;
3264
+ state: z.ZodDiscriminatedUnion<[z.ZodObject<{
3265
+ kind: z.ZodLiteral<"answered">;
3266
+ state: z.ZodNullable<z.ZodObject<{
3267
+ blockId: z.ZodString;
3268
+ deviceId: z.ZodNullable<z.ZodNumber>;
3269
+ status: z.ZodEnum<{
3270
+ running: "running";
3271
+ failed: "failed";
3272
+ stopped: "stopped";
3273
+ starting: "starting";
3274
+ degraded: "degraded";
3275
+ }>;
3276
+ reason: z.ZodOptional<z.ZodString>;
3277
+ fields: z.ZodArray<z.ZodObject<{
3278
+ cap: z.ZodString;
3279
+ path: z.ZodString;
3280
+ item: z.ZodOptional<z.ZodObject<{
3281
+ arrayPath: z.ZodString;
3282
+ key: z.ZodString;
3283
+ label: z.ZodString;
3284
+ }, z.core.$strip>>;
3285
+ state: z.ZodEnum<{
3286
+ unavailable: "unavailable";
3287
+ fresh: "fresh";
3288
+ stale: "stale";
3289
+ }>;
3290
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3291
+ reason: z.ZodOptional<z.ZodString>;
3292
+ }, z.core.$strip>>;
3293
+ }, z.core.$strip>>;
3294
+ }, z.core.$strip>, z.ZodObject<{
3295
+ kind: z.ZodLiteral<"unreachable">;
3296
+ error: z.ZodString;
3297
+ }, z.core.$strip>], "kind">;
3298
+ }, z.core.$strip>>;
3299
+ }, z.core.$strip>, z.ZodObject<{
3300
+ state: z.ZodLiteral<"not-loaded">;
3301
+ reason: z.ZodString;
3302
+ }, z.core.$strip>], "state">, import("./capability-definition.js").CapabilityMethodKind>;
3303
+ /**
3304
+ * The composition that customizes an existing device (D663), found by its
3305
+ * TARGET — never by the block's derived name. One per device at most.
3306
+ */
3307
+ readonly getCustomization: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
3308
+ addonId: z.ZodString;
3309
+ stableId: z.ZodString;
3310
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3311
+ state: z.ZodLiteral<"loaded">;
3312
+ view: z.ZodNullable<z.ZodObject<{
3313
+ block: z.ZodObject<{
3314
+ name: z.ZodString;
3315
+ code: z.ZodString;
3316
+ enabled: z.ZodBoolean;
3317
+ placement: z.ZodUnion<readonly [z.ZodLiteral<"hub">, z.ZodString]>;
3318
+ integrationId: z.ZodOptional<z.ZodString>;
3319
+ id: z.ZodString;
3320
+ createdAt: z.ZodNumber;
3321
+ updatedAt: z.ZodNumber;
3322
+ createdBy: z.ZodString;
3323
+ status: z.ZodEnum<{
3324
+ running: "running";
3325
+ failed: "failed";
3326
+ stopped: "stopped";
3327
+ starting: "starting";
3328
+ degraded: "degraded";
2358
3329
  }>;
2359
3330
  lastError: z.ZodOptional<z.ZodString>;
2360
3331
  lastChangedAt: z.ZodNumber;
@@ -2443,6 +3414,36 @@ export declare const coreBlocksCapability: {
2443
3414
  kind: z.ZodLiteral<"code">;
2444
3415
  code: z.ZodString;
2445
3416
  }, z.core.$strip>], "kind">>;
3417
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3418
+ label: z.ZodString;
3419
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3420
+ source: z.ZodObject<{
3421
+ addonId: z.ZodString;
3422
+ stableId: z.ZodString;
3423
+ }, z.core.$strip>;
3424
+ cap: z.ZodString;
3425
+ fieldPath: z.ZodString;
3426
+ kind: z.ZodLiteral<"from">;
3427
+ }, z.core.$strip>, z.ZodObject<{
3428
+ kind: z.ZodLiteral<"expression">;
3429
+ expr: z.ZodString;
3430
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3431
+ source: z.ZodObject<{
3432
+ addonId: z.ZodString;
3433
+ stableId: z.ZodString;
3434
+ }, z.core.$strip>;
3435
+ cap: z.ZodString;
3436
+ fieldPath: z.ZodString;
3437
+ kind: z.ZodLiteral<"from">;
3438
+ }, z.core.$strip>, z.ZodObject<{
3439
+ kind: z.ZodLiteral<"literal">;
3440
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3441
+ }, z.core.$strip>], "kind">>;
3442
+ }, z.core.$strip>, z.ZodObject<{
3443
+ kind: z.ZodLiteral<"code">;
3444
+ code: z.ZodString;
3445
+ }, z.core.$strip>], "kind">>;
3446
+ }, z.core.$strip>>>;
2446
3447
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2447
3448
  kind: z.ZodLiteral<"forward">;
2448
3449
  source: z.ZodObject<{
@@ -2476,11 +3477,17 @@ export declare const coreBlocksCapability: {
2476
3477
  failed: "failed";
2477
3478
  stopped: "stopped";
2478
3479
  starting: "starting";
3480
+ degraded: "degraded";
2479
3481
  }>;
2480
3482
  reason: z.ZodOptional<z.ZodString>;
2481
3483
  fields: z.ZodArray<z.ZodObject<{
2482
3484
  cap: z.ZodString;
2483
3485
  path: z.ZodString;
3486
+ item: z.ZodOptional<z.ZodObject<{
3487
+ arrayPath: z.ZodString;
3488
+ key: z.ZodString;
3489
+ label: z.ZodString;
3490
+ }, z.core.$strip>>;
2484
3491
  state: z.ZodEnum<{
2485
3492
  unavailable: "unavailable";
2486
3493
  fresh: "fresh";
@@ -2546,6 +3553,36 @@ export declare const coreBlocksCapability: {
2546
3553
  kind: z.ZodLiteral<"code">;
2547
3554
  code: z.ZodString;
2548
3555
  }, z.core.$strip>], "kind">>;
3556
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3557
+ label: z.ZodString;
3558
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3559
+ source: z.ZodObject<{
3560
+ addonId: z.ZodString;
3561
+ stableId: z.ZodString;
3562
+ }, z.core.$strip>;
3563
+ cap: z.ZodString;
3564
+ fieldPath: z.ZodString;
3565
+ kind: z.ZodLiteral<"from">;
3566
+ }, z.core.$strip>, z.ZodObject<{
3567
+ kind: z.ZodLiteral<"expression">;
3568
+ expr: z.ZodString;
3569
+ bindings: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3570
+ source: z.ZodObject<{
3571
+ addonId: z.ZodString;
3572
+ stableId: z.ZodString;
3573
+ }, z.core.$strip>;
3574
+ cap: z.ZodString;
3575
+ fieldPath: z.ZodString;
3576
+ kind: z.ZodLiteral<"from">;
3577
+ }, z.core.$strip>, z.ZodObject<{
3578
+ kind: z.ZodLiteral<"literal">;
3579
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3580
+ }, z.core.$strip>], "kind">>;
3581
+ }, z.core.$strip>, z.ZodObject<{
3582
+ kind: z.ZodLiteral<"code">;
3583
+ code: z.ZodString;
3584
+ }, z.core.$strip>], "kind">>;
3585
+ }, z.core.$strip>>>;
2549
3586
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2550
3587
  kind: z.ZodLiteral<"forward">;
2551
3588
  source: z.ZodObject<{
@@ -2589,6 +3626,11 @@ export declare const coreBlocksCapability: {
2589
3626
  "expression-invalid": "expression-invalid";
2590
3627
  cycle: "cycle";
2591
3628
  "duplicate-target": "duplicate-target";
3629
+ "not-item-array": "not-item-array";
3630
+ "item-field-reserved": "item-field-reserved";
3631
+ "target-missing": "target-missing";
3632
+ "target-unreadable": "target-unreadable";
3633
+ "not-replaceable": "not-replaceable";
2592
3634
  }>;
2593
3635
  path: z.ZodString;
2594
3636
  message: z.ZodString;
@@ -2596,6 +3638,11 @@ export declare const coreBlocksCapability: {
2596
3638
  fields: z.ZodArray<z.ZodObject<{
2597
3639
  cap: z.ZodString;
2598
3640
  path: z.ZodString;
3641
+ item: z.ZodOptional<z.ZodObject<{
3642
+ arrayPath: z.ZodString;
3643
+ key: z.ZodString;
3644
+ label: z.ZodString;
3645
+ }, z.core.$strip>>;
2599
3646
  featureIndex: z.ZodNumber;
2600
3647
  kind: z.ZodEnum<{
2601
3648
  string: "string";
@@ -2607,7 +3654,9 @@ export declare const coreBlocksCapability: {
2607
3654
  required: z.ZodBoolean;
2608
3655
  unavailable: z.ZodEnum<{
2609
3656
  null: "null";
3657
+ unknown: "unknown";
2610
3658
  offline: "offline";
3659
+ release: "release";
2611
3660
  }>;
2612
3661
  role: z.ZodEnum<{
2613
3662
  derived: "derived";
@@ -2650,6 +3699,15 @@ export declare const coreBlocksCapability: {
2650
3699
  fieldPath: z.ZodString;
2651
3700
  }, z.core.$strip>>;
2652
3701
  }, z.core.$strip>>;
3702
+ features: z.ZodArray<z.ZodObject<{
3703
+ featureIndex: z.ZodNumber;
3704
+ cap: z.ZodString;
3705
+ mode: z.ZodEnum<{
3706
+ new: "new";
3707
+ replace: "replace";
3708
+ add: "add";
3709
+ }>;
3710
+ }, z.core.$strip>>;
2653
3711
  }, z.core.$strip>, "mutation">;
2654
3712
  };
2655
3713
  };