@camstack/types 1.2.264 → 1.2.266

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 (35) hide show
  1. package/dist/automation/recipe.d.ts +1 -1
  2. package/dist/capabilities/composer.cap.d.ts +328 -0
  3. package/dist/capabilities/control.cap.d.ts +4 -4
  4. package/dist/capabilities/core-blocks.cap.d.ts +2339 -0
  5. package/dist/capabilities/custom-model-registry.cap.d.ts +4 -2
  6. package/dist/capabilities/day-night.cap.d.ts +8 -8
  7. package/dist/capabilities/device-extension.cap.d.ts +8 -8
  8. package/dist/capabilities/index.d.ts +4 -2
  9. package/dist/capabilities/model-convert.cap.d.ts +4 -3
  10. package/dist/capabilities/model-distributor.cap.d.ts +4 -2
  11. package/dist/capabilities/notification-rules.cap.d.ts +74 -74
  12. package/dist/capabilities/osd-manager.cap.d.ts +13 -13
  13. package/dist/capabilities/pipeline-executor.cap.d.ts +5 -0
  14. package/dist/composition/composition-graph.d.ts +36 -0
  15. package/dist/composition/composition-report.d.ts +264 -0
  16. package/dist/composition/composition.d.ts +362 -0
  17. package/dist/composition/evaluate-field.d.ts +63 -0
  18. package/dist/composition/examples.d.ts +10 -0
  19. package/dist/composition/expression-kinds.d.ts +36 -0
  20. package/dist/composition/index.d.ts +12 -0
  21. package/dist/composition/state-fields.d.ts +19 -0
  22. package/dist/composition/validate-composition.d.ts +46 -0
  23. package/dist/device/schema-fields.d.ts +3 -0
  24. package/dist/expression/builtins.d.ts +30 -2
  25. package/dist/generated/addon-api.d.ts +57 -0
  26. package/dist/generated/capability-router-map.d.ts +5 -2
  27. package/dist/generated/method-access-map.d.ts +1 -1
  28. package/dist/generated/system-proxy.d.ts +1 -1
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.js +1350 -80
  31. package/dist/index.mjs +1278 -81
  32. package/dist/notification/rule-kinds.d.ts +3 -2
  33. package/dist/types/models.d.ts +5 -3
  34. package/dist/types/pipeline-step.d.ts +6 -1
  35. package/package.json +1 -1
@@ -309,10 +309,10 @@ export declare const NcOccupancyConditionSchema: z.ZodObject<{
309
309
  zoneId: z.ZodOptional<z.ZodString>;
310
310
  className: z.ZodOptional<z.ZodString>;
311
311
  op: z.ZodDefault<z.ZodEnum<{
312
+ "<=": "<=";
313
+ ">=": ">=";
312
314
  "became-occupied": "became-occupied";
313
315
  "became-free": "became-free";
314
- ">=": ">=";
315
- "<=": "<=";
316
316
  }>>;
317
317
  count: z.ZodDefault<z.ZodNumber>;
318
318
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -770,10 +770,10 @@ export declare const NcConditionsSchema: z.ZodObject<{
770
770
  zoneId: z.ZodOptional<z.ZodString>;
771
771
  className: z.ZodOptional<z.ZodString>;
772
772
  op: z.ZodDefault<z.ZodEnum<{
773
+ "<=": "<=";
774
+ ">=": ">=";
773
775
  "became-occupied": "became-occupied";
774
776
  "became-free": "became-free";
775
- ">=": ">=";
776
- "<=": "<=";
777
777
  }>>;
778
778
  count: z.ZodDefault<z.ZodNumber>;
779
779
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -934,11 +934,11 @@ export declare const NC_CONFIRM_DEFAULT_MAX_IMAGE_PX = 448;
934
934
  /** Comparison the model's COUNT must satisfy for the notification to fire. */
935
935
  export declare const NcConfirmExpectSchema: z.ZodObject<{
936
936
  op: z.ZodEnum<{
937
- ">=": ">=";
937
+ "==": "==";
938
+ "<": "<";
938
939
  "<=": "<=";
939
940
  ">": ">";
940
- "<": "<";
941
- "==": "==";
941
+ ">=": ">=";
942
942
  }>;
943
943
  count: z.ZodNumber;
944
944
  }, z.core.$strip>;
@@ -967,11 +967,11 @@ export declare const NcConfirmSchema: z.ZodObject<{
967
967
  prompt: z.ZodOptional<z.ZodString>;
968
968
  expect: z.ZodOptional<z.ZodObject<{
969
969
  op: z.ZodEnum<{
970
- ">=": ">=";
970
+ "==": "==";
971
+ "<": "<";
971
972
  "<=": "<=";
972
973
  ">": ">";
973
- "<": "<";
974
- "==": "==";
974
+ ">=": ">=";
975
975
  }>;
976
976
  count: z.ZodNumber;
977
977
  }, z.core.$strip>>;
@@ -1113,10 +1113,10 @@ export declare const NcRuleInputSchema: z.ZodObject<{
1113
1113
  zoneId: z.ZodOptional<z.ZodString>;
1114
1114
  className: z.ZodOptional<z.ZodString>;
1115
1115
  op: z.ZodDefault<z.ZodEnum<{
1116
+ "<=": "<=";
1117
+ ">=": ">=";
1116
1118
  "became-occupied": "became-occupied";
1117
1119
  "became-free": "became-free";
1118
- ">=": ">=";
1119
- "<=": "<=";
1120
1120
  }>>;
1121
1121
  count: z.ZodDefault<z.ZodNumber>;
1122
1122
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -1254,11 +1254,11 @@ export declare const NcRuleInputSchema: z.ZodObject<{
1254
1254
  prompt: z.ZodOptional<z.ZodString>;
1255
1255
  expect: z.ZodOptional<z.ZodObject<{
1256
1256
  op: z.ZodEnum<{
1257
- ">=": ">=";
1257
+ "==": "==";
1258
+ "<": "<";
1258
1259
  "<=": "<=";
1259
1260
  ">": ">";
1260
- "<": "<";
1261
- "==": "==";
1261
+ ">=": ">=";
1262
1262
  }>;
1263
1263
  count: z.ZodNumber;
1264
1264
  }, z.core.$strip>>;
@@ -1375,11 +1375,11 @@ export declare const NcRulePatchSchema: z.ZodObject<{
1375
1375
  prompt: z.ZodOptional<z.ZodString>;
1376
1376
  expect: z.ZodOptional<z.ZodObject<{
1377
1377
  op: z.ZodEnum<{
1378
- ">=": ">=";
1378
+ "==": "==";
1379
+ "<": "<";
1379
1380
  "<=": "<=";
1380
1381
  ">": ">";
1381
- "<": "<";
1382
- "==": "==";
1382
+ ">=": ">=";
1383
1383
  }>;
1384
1384
  count: z.ZodNumber;
1385
1385
  }, z.core.$strip>>;
@@ -1513,10 +1513,10 @@ export declare const NcRulePatchSchema: z.ZodObject<{
1513
1513
  zoneId: z.ZodOptional<z.ZodString>;
1514
1514
  className: z.ZodOptional<z.ZodString>;
1515
1515
  op: z.ZodDefault<z.ZodEnum<{
1516
+ "<=": "<=";
1517
+ ">=": ">=";
1516
1518
  "became-occupied": "became-occupied";
1517
1519
  "became-free": "became-free";
1518
- ">=": ">=";
1519
- "<=": "<=";
1520
1520
  }>>;
1521
1521
  count: z.ZodDefault<z.ZodNumber>;
1522
1522
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -1690,11 +1690,11 @@ export declare const NcRuleUpdateInputSchema: z.ZodObject<{
1690
1690
  prompt: z.ZodOptional<z.ZodString>;
1691
1691
  expect: z.ZodOptional<z.ZodObject<{
1692
1692
  op: z.ZodEnum<{
1693
- ">=": ">=";
1693
+ "==": "==";
1694
+ "<": "<";
1694
1695
  "<=": "<=";
1695
1696
  ">": ">";
1696
- "<": "<";
1697
- "==": "==";
1697
+ ">=": ">=";
1698
1698
  }>;
1699
1699
  count: z.ZodNumber;
1700
1700
  }, z.core.$strip>>;
@@ -1828,10 +1828,10 @@ export declare const NcRuleUpdateInputSchema: z.ZodObject<{
1828
1828
  zoneId: z.ZodOptional<z.ZodString>;
1829
1829
  className: z.ZodOptional<z.ZodString>;
1830
1830
  op: z.ZodDefault<z.ZodEnum<{
1831
+ "<=": "<=";
1832
+ ">=": ">=";
1831
1833
  "became-occupied": "became-occupied";
1832
1834
  "became-free": "became-free";
1833
- ">=": ">=";
1834
- "<=": "<=";
1835
1835
  }>>;
1836
1836
  count: z.ZodDefault<z.ZodNumber>;
1837
1837
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -2029,10 +2029,10 @@ export declare const NcRuleSchema: z.ZodObject<{
2029
2029
  zoneId: z.ZodOptional<z.ZodString>;
2030
2030
  className: z.ZodOptional<z.ZodString>;
2031
2031
  op: z.ZodDefault<z.ZodEnum<{
2032
+ "<=": "<=";
2033
+ ">=": ">=";
2032
2034
  "became-occupied": "became-occupied";
2033
2035
  "became-free": "became-free";
2034
- ">=": ">=";
2035
- "<=": "<=";
2036
2036
  }>>;
2037
2037
  count: z.ZodDefault<z.ZodNumber>;
2038
2038
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -2170,11 +2170,11 @@ export declare const NcRuleSchema: z.ZodObject<{
2170
2170
  prompt: z.ZodOptional<z.ZodString>;
2171
2171
  expect: z.ZodOptional<z.ZodObject<{
2172
2172
  op: z.ZodEnum<{
2173
- ">=": ">=";
2173
+ "==": "==";
2174
+ "<": "<";
2174
2175
  "<=": "<=";
2175
2176
  ">": ">";
2176
- "<": "<";
2177
- "==": "==";
2177
+ ">=": ">=";
2178
2178
  }>;
2179
2179
  count: z.ZodNumber;
2180
2180
  }, z.core.$strip>>;
@@ -2246,8 +2246,8 @@ export declare const NcTestResultSchema: z.ZodObject<{
2246
2246
  label: z.ZodOptional<z.ZodString>;
2247
2247
  }, z.core.$strip>;
2248
2248
  export type NcTestResult = z.infer<typeof NcTestResultSchema>;
2249
- /** The rule kinds, as data. `NcRuleKind` in `notification/rule-kinds.ts` is the
2250
- * same union; the template-vars spec pins the two together. `mixed` is DERIVED
2249
+ /** The rule kinds, as data. `NcRuleKind` in `notification/rule-kinds.ts` is
2250
+ * `z.infer` of this schema — one shape, no twin. `mixed` is DERIVED
2251
2251
  * (a stored system rule whose kinds span families, D637) and never authored. */
2252
2252
  export declare const NcRuleKindSchema: z.ZodEnum<{
2253
2253
  sensor: "sensor";
@@ -2608,10 +2608,10 @@ export declare const NcConditionDescriptorSchema: z.ZodObject<{
2608
2608
  }>;
2609
2609
  operator: z.ZodEnum<{
2610
2610
  in: "in";
2611
+ gte: "gte";
2611
2612
  notIn: "notIn";
2612
2613
  anyOf: "anyOf";
2613
2614
  allOf: "allOf";
2614
- gte: "gte";
2615
2615
  fuzzyIn: "fuzzyIn";
2616
2616
  withinSchedule: "withinSchedule";
2617
2617
  }>;
@@ -3456,10 +3456,10 @@ export declare const notificationRulesCapability: {
3456
3456
  zoneId: z.ZodOptional<z.ZodString>;
3457
3457
  className: z.ZodOptional<z.ZodString>;
3458
3458
  op: z.ZodDefault<z.ZodEnum<{
3459
+ "<=": "<=";
3460
+ ">=": ">=";
3459
3461
  "became-occupied": "became-occupied";
3460
3462
  "became-free": "became-free";
3461
- ">=": ">=";
3462
- "<=": "<=";
3463
3463
  }>>;
3464
3464
  count: z.ZodDefault<z.ZodNumber>;
3465
3465
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -3597,11 +3597,11 @@ export declare const notificationRulesCapability: {
3597
3597
  prompt: z.ZodOptional<z.ZodString>;
3598
3598
  expect: z.ZodOptional<z.ZodObject<{
3599
3599
  op: z.ZodEnum<{
3600
- ">=": ">=";
3600
+ "==": "==";
3601
+ "<": "<";
3601
3602
  "<=": "<=";
3602
3603
  ">": ">";
3603
- "<": "<";
3604
- "==": "==";
3604
+ ">=": ">=";
3605
3605
  }>;
3606
3606
  count: z.ZodNumber;
3607
3607
  }, z.core.$strip>>;
@@ -3753,10 +3753,10 @@ export declare const notificationRulesCapability: {
3753
3753
  zoneId: z.ZodOptional<z.ZodString>;
3754
3754
  className: z.ZodOptional<z.ZodString>;
3755
3755
  op: z.ZodDefault<z.ZodEnum<{
3756
+ "<=": "<=";
3757
+ ">=": ">=";
3756
3758
  "became-occupied": "became-occupied";
3757
3759
  "became-free": "became-free";
3758
- ">=": ">=";
3759
- "<=": "<=";
3760
3760
  }>>;
3761
3761
  count: z.ZodDefault<z.ZodNumber>;
3762
3762
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -3894,11 +3894,11 @@ export declare const notificationRulesCapability: {
3894
3894
  prompt: z.ZodOptional<z.ZodString>;
3895
3895
  expect: z.ZodOptional<z.ZodObject<{
3896
3896
  op: z.ZodEnum<{
3897
- ">=": ">=";
3897
+ "==": "==";
3898
+ "<": "<";
3898
3899
  "<=": "<=";
3899
3900
  ">": ">";
3900
- "<": "<";
3901
- "==": "==";
3901
+ ">=": ">=";
3902
3902
  }>;
3903
3903
  count: z.ZodNumber;
3904
3904
  }, z.core.$strip>>;
@@ -4048,10 +4048,10 @@ export declare const notificationRulesCapability: {
4048
4048
  zoneId: z.ZodOptional<z.ZodString>;
4049
4049
  className: z.ZodOptional<z.ZodString>;
4050
4050
  op: z.ZodDefault<z.ZodEnum<{
4051
+ "<=": "<=";
4052
+ ">=": ">=";
4051
4053
  "became-occupied": "became-occupied";
4052
4054
  "became-free": "became-free";
4053
- ">=": ">=";
4054
- "<=": "<=";
4055
4055
  }>>;
4056
4056
  count: z.ZodDefault<z.ZodNumber>;
4057
4057
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -4189,11 +4189,11 @@ export declare const notificationRulesCapability: {
4189
4189
  prompt: z.ZodOptional<z.ZodString>;
4190
4190
  expect: z.ZodOptional<z.ZodObject<{
4191
4191
  op: z.ZodEnum<{
4192
- ">=": ">=";
4192
+ "==": "==";
4193
+ "<": "<";
4193
4194
  "<=": "<=";
4194
4195
  ">": ">";
4195
- "<": "<";
4196
- "==": "==";
4196
+ ">=": ">=";
4197
4197
  }>;
4198
4198
  count: z.ZodNumber;
4199
4199
  }, z.core.$strip>>;
@@ -4337,10 +4337,10 @@ export declare const notificationRulesCapability: {
4337
4337
  zoneId: z.ZodOptional<z.ZodString>;
4338
4338
  className: z.ZodOptional<z.ZodString>;
4339
4339
  op: z.ZodDefault<z.ZodEnum<{
4340
+ "<=": "<=";
4341
+ ">=": ">=";
4340
4342
  "became-occupied": "became-occupied";
4341
4343
  "became-free": "became-free";
4342
- ">=": ">=";
4343
- "<=": "<=";
4344
4344
  }>>;
4345
4345
  count: z.ZodDefault<z.ZodNumber>;
4346
4346
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -4478,11 +4478,11 @@ export declare const notificationRulesCapability: {
4478
4478
  prompt: z.ZodOptional<z.ZodString>;
4479
4479
  expect: z.ZodOptional<z.ZodObject<{
4480
4480
  op: z.ZodEnum<{
4481
- ">=": ">=";
4481
+ "==": "==";
4482
+ "<": "<";
4482
4483
  "<=": "<=";
4483
4484
  ">": ">";
4484
- "<": "<";
4485
- "==": "==";
4485
+ ">=": ">=";
4486
4486
  }>;
4487
4487
  count: z.ZodNumber;
4488
4488
  }, z.core.$strip>>;
@@ -4599,11 +4599,11 @@ export declare const notificationRulesCapability: {
4599
4599
  prompt: z.ZodOptional<z.ZodString>;
4600
4600
  expect: z.ZodOptional<z.ZodObject<{
4601
4601
  op: z.ZodEnum<{
4602
- ">=": ">=";
4602
+ "==": "==";
4603
+ "<": "<";
4603
4604
  "<=": "<=";
4604
4605
  ">": ">";
4605
- "<": "<";
4606
- "==": "==";
4606
+ ">=": ">=";
4607
4607
  }>;
4608
4608
  count: z.ZodNumber;
4609
4609
  }, z.core.$strip>>;
@@ -4737,10 +4737,10 @@ export declare const notificationRulesCapability: {
4737
4737
  zoneId: z.ZodOptional<z.ZodString>;
4738
4738
  className: z.ZodOptional<z.ZodString>;
4739
4739
  op: z.ZodDefault<z.ZodEnum<{
4740
+ "<=": "<=";
4741
+ ">=": ">=";
4740
4742
  "became-occupied": "became-occupied";
4741
4743
  "became-free": "became-free";
4742
- ">=": ">=";
4743
- "<=": "<=";
4744
4744
  }>>;
4745
4745
  count: z.ZodDefault<z.ZodNumber>;
4746
4746
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -4936,10 +4936,10 @@ export declare const notificationRulesCapability: {
4936
4936
  zoneId: z.ZodOptional<z.ZodString>;
4937
4937
  className: z.ZodOptional<z.ZodString>;
4938
4938
  op: z.ZodDefault<z.ZodEnum<{
4939
+ "<=": "<=";
4940
+ ">=": ">=";
4939
4941
  "became-occupied": "became-occupied";
4940
4942
  "became-free": "became-free";
4941
- ">=": ">=";
4942
- "<=": "<=";
4943
4943
  }>>;
4944
4944
  count: z.ZodDefault<z.ZodNumber>;
4945
4945
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -5077,11 +5077,11 @@ export declare const notificationRulesCapability: {
5077
5077
  prompt: z.ZodOptional<z.ZodString>;
5078
5078
  expect: z.ZodOptional<z.ZodObject<{
5079
5079
  op: z.ZodEnum<{
5080
- ">=": ">=";
5080
+ "==": "==";
5081
+ "<": "<";
5081
5082
  "<=": "<=";
5082
5083
  ">": ">";
5083
- "<": "<";
5084
- "==": "==";
5084
+ ">=": ">=";
5085
5085
  }>;
5086
5086
  count: z.ZodNumber;
5087
5087
  }, z.core.$strip>>;
@@ -5313,10 +5313,10 @@ export declare const notificationRulesCapability: {
5313
5313
  zoneId: z.ZodOptional<z.ZodString>;
5314
5314
  className: z.ZodOptional<z.ZodString>;
5315
5315
  op: z.ZodDefault<z.ZodEnum<{
5316
+ "<=": "<=";
5317
+ ">=": ">=";
5316
5318
  "became-occupied": "became-occupied";
5317
5319
  "became-free": "became-free";
5318
- ">=": ">=";
5319
- "<=": "<=";
5320
5320
  }>>;
5321
5321
  count: z.ZodDefault<z.ZodNumber>;
5322
5322
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -5454,11 +5454,11 @@ export declare const notificationRulesCapability: {
5454
5454
  prompt: z.ZodOptional<z.ZodString>;
5455
5455
  expect: z.ZodOptional<z.ZodObject<{
5456
5456
  op: z.ZodEnum<{
5457
- ">=": ">=";
5457
+ "==": "==";
5458
+ "<": "<";
5458
5459
  "<=": "<=";
5459
5460
  ">": ">";
5460
- "<": "<";
5461
- "==": "==";
5461
+ ">=": ">=";
5462
5462
  }>;
5463
5463
  count: z.ZodNumber;
5464
5464
  }, z.core.$strip>>;
@@ -5627,10 +5627,10 @@ export declare const notificationRulesCapability: {
5627
5627
  zoneId: z.ZodOptional<z.ZodString>;
5628
5628
  className: z.ZodOptional<z.ZodString>;
5629
5629
  op: z.ZodDefault<z.ZodEnum<{
5630
+ "<=": "<=";
5631
+ ">=": ">=";
5630
5632
  "became-occupied": "became-occupied";
5631
5633
  "became-free": "became-free";
5632
- ">=": ">=";
5633
- "<=": "<=";
5634
5634
  }>>;
5635
5635
  count: z.ZodDefault<z.ZodNumber>;
5636
5636
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -5768,11 +5768,11 @@ export declare const notificationRulesCapability: {
5768
5768
  prompt: z.ZodOptional<z.ZodString>;
5769
5769
  expect: z.ZodOptional<z.ZodObject<{
5770
5770
  op: z.ZodEnum<{
5771
- ">=": ">=";
5771
+ "==": "==";
5772
+ "<": "<";
5772
5773
  "<=": "<=";
5773
5774
  ">": ">";
5774
- "<": "<";
5775
- "==": "==";
5775
+ ">=": ">=";
5776
5776
  }>;
5777
5777
  count: z.ZodNumber;
5778
5778
  }, z.core.$strip>>;
@@ -5852,10 +5852,10 @@ export declare const notificationRulesCapability: {
5852
5852
  }>;
5853
5853
  operator: z.ZodEnum<{
5854
5854
  in: "in";
5855
+ gte: "gte";
5855
5856
  notIn: "notIn";
5856
5857
  anyOf: "anyOf";
5857
5858
  allOf: "allOf";
5858
- gte: "gte";
5859
5859
  fuzzyIn: "fuzzyIn";
5860
5860
  withinSchedule: "withinSchedule";
5861
5861
  }>;
@@ -207,10 +207,10 @@ export declare const OsdSlotBindingSchema: z.ZodObject<{
207
207
  zoneId: z.ZodOptional<z.ZodString>;
208
208
  className: z.ZodOptional<z.ZodString>;
209
209
  op: z.ZodDefault<z.ZodEnum<{
210
+ "<=": "<=";
211
+ ">=": ">=";
210
212
  "became-occupied": "became-occupied";
211
213
  "became-free": "became-free";
212
- ">=": ">=";
213
- "<=": "<=";
214
214
  }>>;
215
215
  count: z.ZodDefault<z.ZodNumber>;
216
216
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -392,10 +392,10 @@ export declare const OsdSlotViewSchema: z.ZodObject<{
392
392
  zoneId: z.ZodOptional<z.ZodString>;
393
393
  className: z.ZodOptional<z.ZodString>;
394
394
  op: z.ZodDefault<z.ZodEnum<{
395
+ "<=": "<=";
396
+ ">=": ">=";
395
397
  "became-occupied": "became-occupied";
396
398
  "became-free": "became-free";
397
- ">=": ">=";
398
- "<=": "<=";
399
399
  }>>;
400
400
  count: z.ZodDefault<z.ZodNumber>;
401
401
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -649,10 +649,10 @@ export declare const osdManagerCapability: {
649
649
  zoneId: z.ZodOptional<z.ZodString>;
650
650
  className: z.ZodOptional<z.ZodString>;
651
651
  op: z.ZodDefault<z.ZodEnum<{
652
+ "<=": "<=";
653
+ ">=": ">=";
652
654
  "became-occupied": "became-occupied";
653
655
  "became-free": "became-free";
654
- ">=": ">=";
655
- "<=": "<=";
656
656
  }>>;
657
657
  count: z.ZodDefault<z.ZodNumber>;
658
658
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -740,10 +740,10 @@ export declare const osdManagerCapability: {
740
740
  }>;
741
741
  operator: z.ZodEnum<{
742
742
  in: "in";
743
+ gte: "gte";
743
744
  notIn: "notIn";
744
745
  anyOf: "anyOf";
745
746
  allOf: "allOf";
746
- gte: "gte";
747
747
  fuzzyIn: "fuzzyIn";
748
748
  withinSchedule: "withinSchedule";
749
749
  }>;
@@ -925,10 +925,10 @@ export declare const osdManagerCapability: {
925
925
  zoneId: z.ZodOptional<z.ZodString>;
926
926
  className: z.ZodOptional<z.ZodString>;
927
927
  op: z.ZodDefault<z.ZodEnum<{
928
+ "<=": "<=";
929
+ ">=": ">=";
928
930
  "became-occupied": "became-occupied";
929
931
  "became-free": "became-free";
930
- ">=": ">=";
931
- "<=": "<=";
932
932
  }>>;
933
933
  count: z.ZodDefault<z.ZodNumber>;
934
934
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -1109,10 +1109,10 @@ export declare const osdManagerCapability: {
1109
1109
  zoneId: z.ZodOptional<z.ZodString>;
1110
1110
  className: z.ZodOptional<z.ZodString>;
1111
1111
  op: z.ZodDefault<z.ZodEnum<{
1112
+ "<=": "<=";
1113
+ ">=": ">=";
1112
1114
  "became-occupied": "became-occupied";
1113
1115
  "became-free": "became-free";
1114
- ">=": ">=";
1115
- "<=": "<=";
1116
1116
  }>>;
1117
1117
  count: z.ZodDefault<z.ZodNumber>;
1118
1118
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -1325,10 +1325,10 @@ export declare const osdManagerCapability: {
1325
1325
  zoneId: z.ZodOptional<z.ZodString>;
1326
1326
  className: z.ZodOptional<z.ZodString>;
1327
1327
  op: z.ZodDefault<z.ZodEnum<{
1328
+ "<=": "<=";
1329
+ ">=": ">=";
1328
1330
  "became-occupied": "became-occupied";
1329
1331
  "became-free": "became-free";
1330
- ">=": ">=";
1331
- "<=": "<=";
1332
1332
  }>>;
1333
1333
  count: z.ZodDefault<z.ZodNumber>;
1334
1334
  sustainSeconds: z.ZodDefault<z.ZodNumber>;
@@ -203,6 +203,7 @@ declare const PipelineModelOptionSchema: z.ZodObject<{
203
203
  frigate: "frigate";
204
204
  scrypted: "scrypted";
205
205
  }>>;
206
+ defaultConfidence: z.ZodOptional<z.ZodNumber>;
206
207
  }, z.core.$strip>;
207
208
  declare const PipelineAddonSchemaSchema: z.ZodObject<{
208
209
  id: z.ZodString;
@@ -250,6 +251,7 @@ declare const PipelineAddonSchemaSchema: z.ZodObject<{
250
251
  frigate: "frigate";
251
252
  scrypted: "scrypted";
252
253
  }>>;
254
+ defaultConfidence: z.ZodOptional<z.ZodNumber>;
253
255
  }, z.core.$strip>>>;
254
256
  defaultModelId: z.ZodString;
255
257
  defaultModelIdByFormat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -322,6 +324,7 @@ declare const PipelineSlotSchemaSchema: z.ZodObject<{
322
324
  frigate: "frigate";
323
325
  scrypted: "scrypted";
324
326
  }>>;
327
+ defaultConfidence: z.ZodOptional<z.ZodNumber>;
325
328
  }, z.core.$strip>>>;
326
329
  defaultModelId: z.ZodString;
327
330
  defaultModelIdByFormat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -430,6 +433,7 @@ declare const PipelineSchemaSchema: z.ZodObject<{
430
433
  frigate: "frigate";
431
434
  scrypted: "scrypted";
432
435
  }>>;
436
+ defaultConfidence: z.ZodOptional<z.ZodNumber>;
433
437
  }, z.core.$strip>>>;
434
438
  defaultModelId: z.ZodString;
435
439
  defaultModelIdByFormat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -784,6 +788,7 @@ export declare const pipelineExecutorCapability: {
784
788
  frigate: "frigate";
785
789
  scrypted: "scrypted";
786
790
  }>>;
791
+ defaultConfidence: z.ZodOptional<z.ZodNumber>;
787
792
  }, z.core.$strip>>>;
788
793
  defaultModelId: z.ZodString;
789
794
  defaultModelIdByFormat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * The field graph across every composition, and the cycles in it (D659).
3
+ *
4
+ * A node is ONE field of ONE device (`<addon>/<stableId>#<cap>.<field>`); an
5
+ * edge points from a composed field to each field it reads. A cycle, direct or
6
+ * through another composition, is refused at save by name (spec §2).
7
+ *
8
+ * The graph is built for ONE save: the CANDIDATE composition (the one being
9
+ * validated) plus every STORED composition. The candidate ALWAYS replaces any
10
+ * stored peer that targets the same device, regardless of where that stored
11
+ * peer sits in `stored` — whether a save introduces or removes a cycle must
12
+ * never depend on array order. Two DIFFERENT stored peers that (wrongly)
13
+ * target the same device are corrupted state, not a cycle to resolve by
14
+ * picking one silently; that is refused by name (D391).
15
+ *
16
+ * `findCompositionCycles` reports at least one cycle per cycle-SET (the DFS
17
+ * marks a node `done` after its first expansion) — enough to refuse a save,
18
+ * not to enumerate every elementary cycle through a shared node. A dotted
19
+ * `fieldPath` is matched only as an exact string: a write to `state.value` and
20
+ * a read of `state` would not connect (no nested field writes exist yet).
21
+ */
22
+ import { type Composition, type CompositionSourceRef } from './composition.js';
23
+ export interface CompositionPeer {
24
+ /** The device this composition writes: `composedDeviceRef(blockId)` for a new target. */
25
+ readonly target: CompositionSourceRef;
26
+ readonly composition: Composition;
27
+ }
28
+ export interface CompositionCycle {
29
+ /** Node keys, first and last equal. */
30
+ readonly path: readonly string[];
31
+ }
32
+ /** Two stored compositions both target the same device — refused by name, never silently resolved. */
33
+ export declare class CompositionGraphError extends Error {
34
+ }
35
+ export declare function compositionEdges(candidate: CompositionPeer, stored: readonly CompositionPeer[]): ReadonlyMap<string, readonly string[]>;
36
+ export declare function findCompositionCycles(candidate: CompositionPeer, stored: readonly CompositionPeer[]): readonly CompositionCycle[];