@camstack/types 1.2.46 → 1.2.47

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 (36) hide show
  1. package/dist/addon.js +4 -3
  2. package/dist/addon.mjs +4 -3
  3. package/dist/{fmp4-box-splitter-B53u9-Nu.mjs → canonical-hash-rO1sRmEK.mjs} +34 -34
  4. package/dist/capabilities/core-blocks.cap.d.ts +52 -0
  5. package/dist/capabilities/device-manager.cap.d.ts +11 -427
  6. package/dist/capabilities/index.d.ts +2 -2
  7. package/dist/capabilities/motion-detection.cap.d.ts +6 -1
  8. package/dist/capabilities/notification-rules.cap.d.ts +24 -24
  9. package/dist/capabilities/oauth-integration.cap.d.ts +4 -0
  10. package/dist/capabilities/osd-manager.cap.d.ts +12 -12
  11. package/dist/capabilities/pipeline-analytics.cap.d.ts +7 -1
  12. package/dist/capabilities/sso-bridge.cap.d.ts +3 -0
  13. package/dist/capabilities/stream-broker.cap.d.ts +1 -0
  14. package/dist/capabilities/user-management.cap.d.ts +3 -1
  15. package/dist/capabilities/videoclips.cap.d.ts +5 -0
  16. package/dist/device/declared-device.d.ts +197 -0
  17. package/dist/device/device-binding.d.ts +15 -9
  18. package/dist/device/device-management.d.ts +1 -83
  19. package/dist/device/index.d.ts +20 -19
  20. package/dist/expression/binding-source.d.ts +85 -0
  21. package/dist/expression/{link-expression.d.ts → expression-source.d.ts} +22 -13
  22. package/dist/expression/index.d.ts +17 -14
  23. package/dist/expression/limits.d.ts +1 -1
  24. package/dist/generated/addon-api.d.ts +7 -7
  25. package/dist/generated/device-proxy.d.ts +1 -1
  26. package/dist/generated/system-proxy.d.ts +1 -1
  27. package/dist/index.d.ts +9 -8
  28. package/dist/index.js +2322 -2057
  29. package/dist/index.mjs +2297 -2043
  30. package/dist/node.js +7 -7
  31. package/dist/node.mjs +1 -1
  32. package/dist/{sleep-BbYwFLG6.mjs → sleep-7WqNZVcL.mjs} +0 -1
  33. package/dist/{sleep-CyN9nHr_.js → sleep-ocMLM2o5.js} +0 -1
  34. package/package.json +1 -1
  35. package/dist/device/device-link-transform.d.ts +0 -5
  36. package/dist/{fmp4-box-splitter-BkWH7O3L.js → canonical-hash-DNV8S5ET.js} +33 -33
@@ -19,57 +19,6 @@
19
19
  import { z } from 'zod';
20
20
  import { DeviceType } from '../device/device-type.js';
21
21
  import { StreamSourceEntrySchema } from './schemas/streaming-shared.js';
22
- export declare const DeviceLinkSchema: z.ZodObject<{
23
- id: z.ZodString;
24
- source: z.ZodUnion<readonly [z.ZodObject<{
25
- kind: z.ZodOptional<z.ZodLiteral<"field">>;
26
- sourceKey: z.ZodString;
27
- cap: z.ZodString;
28
- fieldPath: z.ZodString;
29
- }, z.core.$strip>, z.ZodObject<{
30
- kind: z.ZodLiteral<"literal">;
31
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
32
- }, z.core.$strip>, z.ZodObject<{
33
- kind: z.ZodLiteral<"global">;
34
- sourceStableId: z.ZodString;
35
- cap: z.ZodString;
36
- fieldPath: z.ZodString;
37
- }, z.core.$strip>, z.ZodObject<{
38
- kind: z.ZodLiteral<"expression">;
39
- expr: z.ZodString;
40
- bindings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
41
- kind: z.ZodOptional<z.ZodLiteral<"field">>;
42
- sourceKey: z.ZodString;
43
- cap: z.ZodString;
44
- fieldPath: z.ZodString;
45
- }, z.core.$strip>, z.ZodObject<{
46
- kind: z.ZodLiteral<"literal">;
47
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
48
- }, z.core.$strip>, z.ZodObject<{
49
- kind: z.ZodLiteral<"global">;
50
- sourceStableId: z.ZodString;
51
- cap: z.ZodString;
52
- fieldPath: z.ZodString;
53
- }, z.core.$strip>]>>;
54
- }, z.core.$strip>]>;
55
- target: z.ZodObject<{
56
- cap: z.ZodString;
57
- fieldPath: z.ZodString;
58
- itemKey: z.ZodOptional<z.ZodString>;
59
- }, z.core.$strip>;
60
- transform: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
61
- kind: z.ZodLiteral<"identity">;
62
- }, z.core.$strip>, z.ZodObject<{
63
- kind: z.ZodLiteral<"enum-map">;
64
- mapping: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
65
- fallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
66
- }, z.core.$strip>, z.ZodObject<{
67
- kind: z.ZodLiteral<"linear">;
68
- scale: z.ZodNumber;
69
- offset: z.ZodNumber;
70
- clamp: z.ZodOptional<z.ZodReadonly<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
71
- }, z.core.$strip>], "kind">>;
72
- }, z.core.$strip>;
73
22
  /** Cap-wire shape of a per-cap display refinement — mirrors
74
23
  * `DeviceCapDisplayOverride` in `device-management.ts`. */
75
24
  export declare const DeviceCapDisplayOverrideSchema: z.ZodObject<{
@@ -134,57 +83,6 @@ export declare const DeviceInfoSchema: z.ZodObject<{
134
83
  order: z.ZodOptional<z.ZodNumber>;
135
84
  collapsed: z.ZodOptional<z.ZodBoolean>;
136
85
  }, z.core.$strip>>>>;
137
- deviceLinks: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
138
- id: z.ZodString;
139
- source: z.ZodUnion<readonly [z.ZodObject<{
140
- kind: z.ZodOptional<z.ZodLiteral<"field">>;
141
- sourceKey: z.ZodString;
142
- cap: z.ZodString;
143
- fieldPath: z.ZodString;
144
- }, z.core.$strip>, z.ZodObject<{
145
- kind: z.ZodLiteral<"literal">;
146
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
147
- }, z.core.$strip>, z.ZodObject<{
148
- kind: z.ZodLiteral<"global">;
149
- sourceStableId: z.ZodString;
150
- cap: z.ZodString;
151
- fieldPath: z.ZodString;
152
- }, z.core.$strip>, z.ZodObject<{
153
- kind: z.ZodLiteral<"expression">;
154
- expr: z.ZodString;
155
- bindings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
156
- kind: z.ZodOptional<z.ZodLiteral<"field">>;
157
- sourceKey: z.ZodString;
158
- cap: z.ZodString;
159
- fieldPath: z.ZodString;
160
- }, z.core.$strip>, z.ZodObject<{
161
- kind: z.ZodLiteral<"literal">;
162
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
163
- }, z.core.$strip>, z.ZodObject<{
164
- kind: z.ZodLiteral<"global">;
165
- sourceStableId: z.ZodString;
166
- cap: z.ZodString;
167
- fieldPath: z.ZodString;
168
- }, z.core.$strip>]>>;
169
- }, z.core.$strip>]>;
170
- target: z.ZodObject<{
171
- cap: z.ZodString;
172
- fieldPath: z.ZodString;
173
- itemKey: z.ZodOptional<z.ZodString>;
174
- }, z.core.$strip>;
175
- transform: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
176
- kind: z.ZodLiteral<"identity">;
177
- }, z.core.$strip>, z.ZodObject<{
178
- kind: z.ZodLiteral<"enum-map">;
179
- mapping: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
180
- fallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
181
- }, z.core.$strip>, z.ZodObject<{
182
- kind: z.ZodLiteral<"linear">;
183
- scale: z.ZodNumber;
184
- offset: z.ZodNumber;
185
- clamp: z.ZodOptional<z.ZodReadonly<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
186
- }, z.core.$strip>], "kind">>;
187
- }, z.core.$strip>>>>;
188
86
  display: z.ZodOptional<z.ZodObject<{
189
87
  icon: z.ZodOptional<z.ZodString>;
190
88
  label: z.ZodOptional<z.ZodString>;
@@ -202,11 +100,11 @@ export declare const ConfigEntrySchema: z.ZodObject<{
202
100
  value: z.ZodUnknown;
203
101
  description: z.ZodOptional<z.ZodString>;
204
102
  }, z.core.$strip>;
205
- export declare const DeviceLinkModeSchema: z.ZodEnum<{
103
+ export declare const LinkedDevicesModeSchema: z.ZodEnum<{
206
104
  manual: "manual";
207
105
  auto: "auto";
208
106
  }>;
209
- export type DeviceLinkMode = z.infer<typeof DeviceLinkModeSchema>;
107
+ export type LinkedDevicesMode = z.infer<typeof LinkedDevicesModeSchema>;
210
108
  /** One resolved linked device — the compact projection consumers need. */
211
109
  export declare const LinkedDeviceSchema: z.ZodObject<{
212
110
  deviceId: z.ZodNumber;
@@ -257,57 +155,6 @@ export declare const DeviceMetaSchema: z.ZodObject<{
257
155
  order: z.ZodOptional<z.ZodNumber>;
258
156
  collapsed: z.ZodOptional<z.ZodBoolean>;
259
157
  }, z.core.$strip>>>>;
260
- deviceLinks: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
261
- id: z.ZodString;
262
- source: z.ZodUnion<readonly [z.ZodObject<{
263
- kind: z.ZodOptional<z.ZodLiteral<"field">>;
264
- sourceKey: z.ZodString;
265
- cap: z.ZodString;
266
- fieldPath: z.ZodString;
267
- }, z.core.$strip>, z.ZodObject<{
268
- kind: z.ZodLiteral<"literal">;
269
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
270
- }, z.core.$strip>, z.ZodObject<{
271
- kind: z.ZodLiteral<"global">;
272
- sourceStableId: z.ZodString;
273
- cap: z.ZodString;
274
- fieldPath: z.ZodString;
275
- }, z.core.$strip>, z.ZodObject<{
276
- kind: z.ZodLiteral<"expression">;
277
- expr: z.ZodString;
278
- bindings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
279
- kind: z.ZodOptional<z.ZodLiteral<"field">>;
280
- sourceKey: z.ZodString;
281
- cap: z.ZodString;
282
- fieldPath: z.ZodString;
283
- }, z.core.$strip>, z.ZodObject<{
284
- kind: z.ZodLiteral<"literal">;
285
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
286
- }, z.core.$strip>, z.ZodObject<{
287
- kind: z.ZodLiteral<"global">;
288
- sourceStableId: z.ZodString;
289
- cap: z.ZodString;
290
- fieldPath: z.ZodString;
291
- }, z.core.$strip>]>>;
292
- }, z.core.$strip>]>;
293
- target: z.ZodObject<{
294
- cap: z.ZodString;
295
- fieldPath: z.ZodString;
296
- itemKey: z.ZodOptional<z.ZodString>;
297
- }, z.core.$strip>;
298
- transform: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
299
- kind: z.ZodLiteral<"identity">;
300
- }, z.core.$strip>, z.ZodObject<{
301
- kind: z.ZodLiteral<"enum-map">;
302
- mapping: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
303
- fallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
304
- }, z.core.$strip>, z.ZodObject<{
305
- kind: z.ZodLiteral<"linear">;
306
- scale: z.ZodNumber;
307
- offset: z.ZodNumber;
308
- clamp: z.ZodOptional<z.ZodReadonly<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
309
- }, z.core.$strip>], "kind">>;
310
- }, z.core.$strip>>>>;
311
158
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
312
159
  display: z.ZodOptional<z.ZodObject<{
313
160
  icon: z.ZodOptional<z.ZodString>;
@@ -420,57 +267,6 @@ export declare const deviceManagerCapability: {
420
267
  order: z.ZodOptional<z.ZodNumber>;
421
268
  collapsed: z.ZodOptional<z.ZodBoolean>;
422
269
  }, z.core.$strip>>>>;
423
- deviceLinks: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
424
- id: z.ZodString;
425
- source: z.ZodUnion<readonly [z.ZodObject<{
426
- kind: z.ZodOptional<z.ZodLiteral<"field">>;
427
- sourceKey: z.ZodString;
428
- cap: z.ZodString;
429
- fieldPath: z.ZodString;
430
- }, z.core.$strip>, z.ZodObject<{
431
- kind: z.ZodLiteral<"literal">;
432
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
433
- }, z.core.$strip>, z.ZodObject<{
434
- kind: z.ZodLiteral<"global">;
435
- sourceStableId: z.ZodString;
436
- cap: z.ZodString;
437
- fieldPath: z.ZodString;
438
- }, z.core.$strip>, z.ZodObject<{
439
- kind: z.ZodLiteral<"expression">;
440
- expr: z.ZodString;
441
- bindings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
442
- kind: z.ZodOptional<z.ZodLiteral<"field">>;
443
- sourceKey: z.ZodString;
444
- cap: z.ZodString;
445
- fieldPath: z.ZodString;
446
- }, z.core.$strip>, z.ZodObject<{
447
- kind: z.ZodLiteral<"literal">;
448
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
449
- }, z.core.$strip>, z.ZodObject<{
450
- kind: z.ZodLiteral<"global">;
451
- sourceStableId: z.ZodString;
452
- cap: z.ZodString;
453
- fieldPath: z.ZodString;
454
- }, z.core.$strip>]>>;
455
- }, z.core.$strip>]>;
456
- target: z.ZodObject<{
457
- cap: z.ZodString;
458
- fieldPath: z.ZodString;
459
- itemKey: z.ZodOptional<z.ZodString>;
460
- }, z.core.$strip>;
461
- transform: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
462
- kind: z.ZodLiteral<"identity">;
463
- }, z.core.$strip>, z.ZodObject<{
464
- kind: z.ZodLiteral<"enum-map">;
465
- mapping: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
466
- fallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
467
- }, z.core.$strip>, z.ZodObject<{
468
- kind: z.ZodLiteral<"linear">;
469
- scale: z.ZodNumber;
470
- offset: z.ZodNumber;
471
- clamp: z.ZodOptional<z.ZodReadonly<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
472
- }, z.core.$strip>], "kind">>;
473
- }, z.core.$strip>>>>;
474
270
  role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
475
271
  display: z.ZodOptional<z.ZodObject<{
476
272
  icon: z.ZodOptional<z.ZodString>;
@@ -543,63 +339,6 @@ export declare const deviceManagerCapability: {
543
339
  collapsed: z.ZodOptional<z.ZodBoolean>;
544
340
  }, z.core.$strip>>>;
545
341
  }, z.core.$strip>, z.ZodVoid, "mutation">;
546
- /** Set (or replace) the cross-device field wirings on a device's meta row.
547
- * Mirrors `setChildLayout`; persisted, projected, preserved across
548
- * re-register/restore. Idempotent. */
549
- readonly setDeviceLinks: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
550
- deviceId: z.ZodNumber;
551
- deviceLinks: z.ZodReadonly<z.ZodArray<z.ZodObject<{
552
- id: z.ZodString;
553
- source: z.ZodUnion<readonly [z.ZodObject<{
554
- kind: z.ZodOptional<z.ZodLiteral<"field">>;
555
- sourceKey: z.ZodString;
556
- cap: z.ZodString;
557
- fieldPath: z.ZodString;
558
- }, z.core.$strip>, z.ZodObject<{
559
- kind: z.ZodLiteral<"literal">;
560
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
561
- }, z.core.$strip>, z.ZodObject<{
562
- kind: z.ZodLiteral<"global">;
563
- sourceStableId: z.ZodString;
564
- cap: z.ZodString;
565
- fieldPath: z.ZodString;
566
- }, z.core.$strip>, z.ZodObject<{
567
- kind: z.ZodLiteral<"expression">;
568
- expr: z.ZodString;
569
- bindings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
570
- kind: z.ZodOptional<z.ZodLiteral<"field">>;
571
- sourceKey: z.ZodString;
572
- cap: z.ZodString;
573
- fieldPath: z.ZodString;
574
- }, z.core.$strip>, z.ZodObject<{
575
- kind: z.ZodLiteral<"literal">;
576
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
577
- }, z.core.$strip>, z.ZodObject<{
578
- kind: z.ZodLiteral<"global">;
579
- sourceStableId: z.ZodString;
580
- cap: z.ZodString;
581
- fieldPath: z.ZodString;
582
- }, z.core.$strip>]>>;
583
- }, z.core.$strip>]>;
584
- target: z.ZodObject<{
585
- cap: z.ZodString;
586
- fieldPath: z.ZodString;
587
- itemKey: z.ZodOptional<z.ZodString>;
588
- }, z.core.$strip>;
589
- transform: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
590
- kind: z.ZodLiteral<"identity">;
591
- }, z.core.$strip>, z.ZodObject<{
592
- kind: z.ZodLiteral<"enum-map">;
593
- mapping: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
594
- fallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
595
- }, z.core.$strip>, z.ZodObject<{
596
- kind: z.ZodLiteral<"linear">;
597
- scale: z.ZodNumber;
598
- offset: z.ZodNumber;
599
- clamp: z.ZodOptional<z.ZodReadonly<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
600
- }, z.core.$strip>], "kind">>;
601
- }, z.core.$strip>>>;
602
- }, z.core.$strip>, z.ZodVoid, "mutation">;
603
342
  /** Set (or clear) the per-device display override on the meta row. Mirrors
604
343
  * `setChildLayout` persistence; `null` clears the override entirely. The
605
344
  * override unit(s) are normalized (`normalizeUnit`) at write so the render
@@ -639,15 +378,15 @@ export declare const deviceManagerCapability: {
639
378
  icon: z.ZodOptional<z.ZodString>;
640
379
  }, z.core.$strip>>;
641
380
  }, z.core.$strip>, z.ZodVoid, "mutation">;
642
- /** List the wireable status-schema fields per cap bound to a device.
643
- * Powers the Wiring tab's field pickers. Caps without a status schema are
644
- * omitted. Item-array caps (`status.itemArray`, e.g. consumables) also
645
- * emit their per-item fields tagged `item: true` (a link targeting one
646
- * must carry a `target.itemKey`) plus the cap-level `itemArray`
647
- * descriptor. `includeSynthesizable: true` (TARGET pickers only) unions
648
- * in unbound device-scoped caps that declare `status.empty` and match
649
- * the device's type so the FIRST link to a synthesize-only cap
650
- * (consumables on an HA vacuum) can be authored. */
381
+ /** The per-cap catalog of readable status-schema fields for one device.
382
+ * This is the SOURCE PICKER it outlived the Wiring tab that first
383
+ * needed it (deleted 2026-08-08) and becomes the picker of a composition
384
+ * recipe: every field the old tab could target, a composed device can
385
+ * read. Caps without a status schema are omitted. Item-array caps
386
+ * (`status.itemArray`, e.g. consumables) also emit their per-item fields
387
+ * tagged `item: true` plus the cap-level `itemArray` descriptor.
388
+ * `includeSynthesizable: true` unions in unbound device-scoped caps that
389
+ * declare `status.empty` and match the device's type. */
651
390
  readonly getWireableFields: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
652
391
  deviceId: z.ZodNumber;
653
392
  includeSynthesizable: z.ZodOptional<z.ZodBoolean>;
@@ -796,57 +535,6 @@ export declare const deviceManagerCapability: {
796
535
  order: z.ZodOptional<z.ZodNumber>;
797
536
  collapsed: z.ZodOptional<z.ZodBoolean>;
798
537
  }, z.core.$strip>>>>;
799
- deviceLinks: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
800
- id: z.ZodString;
801
- source: z.ZodUnion<readonly [z.ZodObject<{
802
- kind: z.ZodOptional<z.ZodLiteral<"field">>;
803
- sourceKey: z.ZodString;
804
- cap: z.ZodString;
805
- fieldPath: z.ZodString;
806
- }, z.core.$strip>, z.ZodObject<{
807
- kind: z.ZodLiteral<"literal">;
808
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
809
- }, z.core.$strip>, z.ZodObject<{
810
- kind: z.ZodLiteral<"global">;
811
- sourceStableId: z.ZodString;
812
- cap: z.ZodString;
813
- fieldPath: z.ZodString;
814
- }, z.core.$strip>, z.ZodObject<{
815
- kind: z.ZodLiteral<"expression">;
816
- expr: z.ZodString;
817
- bindings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
818
- kind: z.ZodOptional<z.ZodLiteral<"field">>;
819
- sourceKey: z.ZodString;
820
- cap: z.ZodString;
821
- fieldPath: z.ZodString;
822
- }, z.core.$strip>, z.ZodObject<{
823
- kind: z.ZodLiteral<"literal">;
824
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
825
- }, z.core.$strip>, z.ZodObject<{
826
- kind: z.ZodLiteral<"global">;
827
- sourceStableId: z.ZodString;
828
- cap: z.ZodString;
829
- fieldPath: z.ZodString;
830
- }, z.core.$strip>]>>;
831
- }, z.core.$strip>]>;
832
- target: z.ZodObject<{
833
- cap: z.ZodString;
834
- fieldPath: z.ZodString;
835
- itemKey: z.ZodOptional<z.ZodString>;
836
- }, z.core.$strip>;
837
- transform: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
838
- kind: z.ZodLiteral<"identity">;
839
- }, z.core.$strip>, z.ZodObject<{
840
- kind: z.ZodLiteral<"enum-map">;
841
- mapping: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
842
- fallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
843
- }, z.core.$strip>, z.ZodObject<{
844
- kind: z.ZodLiteral<"linear">;
845
- scale: z.ZodNumber;
846
- offset: z.ZodNumber;
847
- clamp: z.ZodOptional<z.ZodReadonly<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
848
- }, z.core.$strip>], "kind">>;
849
- }, z.core.$strip>>>>;
850
538
  display: z.ZodOptional<z.ZodObject<{
851
539
  icon: z.ZodOptional<z.ZodString>;
852
540
  label: z.ZodOptional<z.ZodString>;
@@ -893,57 +581,6 @@ export declare const deviceManagerCapability: {
893
581
  order: z.ZodOptional<z.ZodNumber>;
894
582
  collapsed: z.ZodOptional<z.ZodBoolean>;
895
583
  }, z.core.$strip>>>>;
896
- deviceLinks: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
897
- id: z.ZodString;
898
- source: z.ZodUnion<readonly [z.ZodObject<{
899
- kind: z.ZodOptional<z.ZodLiteral<"field">>;
900
- sourceKey: z.ZodString;
901
- cap: z.ZodString;
902
- fieldPath: z.ZodString;
903
- }, z.core.$strip>, z.ZodObject<{
904
- kind: z.ZodLiteral<"literal">;
905
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
906
- }, z.core.$strip>, z.ZodObject<{
907
- kind: z.ZodLiteral<"global">;
908
- sourceStableId: z.ZodString;
909
- cap: z.ZodString;
910
- fieldPath: z.ZodString;
911
- }, z.core.$strip>, z.ZodObject<{
912
- kind: z.ZodLiteral<"expression">;
913
- expr: z.ZodString;
914
- bindings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
915
- kind: z.ZodOptional<z.ZodLiteral<"field">>;
916
- sourceKey: z.ZodString;
917
- cap: z.ZodString;
918
- fieldPath: z.ZodString;
919
- }, z.core.$strip>, z.ZodObject<{
920
- kind: z.ZodLiteral<"literal">;
921
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
922
- }, z.core.$strip>, z.ZodObject<{
923
- kind: z.ZodLiteral<"global">;
924
- sourceStableId: z.ZodString;
925
- cap: z.ZodString;
926
- fieldPath: z.ZodString;
927
- }, z.core.$strip>]>>;
928
- }, z.core.$strip>]>;
929
- target: z.ZodObject<{
930
- cap: z.ZodString;
931
- fieldPath: z.ZodString;
932
- itemKey: z.ZodOptional<z.ZodString>;
933
- }, z.core.$strip>;
934
- transform: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
935
- kind: z.ZodLiteral<"identity">;
936
- }, z.core.$strip>, z.ZodObject<{
937
- kind: z.ZodLiteral<"enum-map">;
938
- mapping: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
939
- fallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
940
- }, z.core.$strip>, z.ZodObject<{
941
- kind: z.ZodLiteral<"linear">;
942
- scale: z.ZodNumber;
943
- offset: z.ZodNumber;
944
- clamp: z.ZodOptional<z.ZodReadonly<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
945
- }, z.core.$strip>], "kind">>;
946
- }, z.core.$strip>>>>;
947
584
  display: z.ZodOptional<z.ZodObject<{
948
585
  icon: z.ZodOptional<z.ZodString>;
949
586
  label: z.ZodOptional<z.ZodString>;
@@ -990,57 +627,6 @@ export declare const deviceManagerCapability: {
990
627
  order: z.ZodOptional<z.ZodNumber>;
991
628
  collapsed: z.ZodOptional<z.ZodBoolean>;
992
629
  }, z.core.$strip>>>>;
993
- deviceLinks: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
994
- id: z.ZodString;
995
- source: z.ZodUnion<readonly [z.ZodObject<{
996
- kind: z.ZodOptional<z.ZodLiteral<"field">>;
997
- sourceKey: z.ZodString;
998
- cap: z.ZodString;
999
- fieldPath: z.ZodString;
1000
- }, z.core.$strip>, z.ZodObject<{
1001
- kind: z.ZodLiteral<"literal">;
1002
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1003
- }, z.core.$strip>, z.ZodObject<{
1004
- kind: z.ZodLiteral<"global">;
1005
- sourceStableId: z.ZodString;
1006
- cap: z.ZodString;
1007
- fieldPath: z.ZodString;
1008
- }, z.core.$strip>, z.ZodObject<{
1009
- kind: z.ZodLiteral<"expression">;
1010
- expr: z.ZodString;
1011
- bindings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
1012
- kind: z.ZodOptional<z.ZodLiteral<"field">>;
1013
- sourceKey: z.ZodString;
1014
- cap: z.ZodString;
1015
- fieldPath: z.ZodString;
1016
- }, z.core.$strip>, z.ZodObject<{
1017
- kind: z.ZodLiteral<"literal">;
1018
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
1019
- }, z.core.$strip>, z.ZodObject<{
1020
- kind: z.ZodLiteral<"global">;
1021
- sourceStableId: z.ZodString;
1022
- cap: z.ZodString;
1023
- fieldPath: z.ZodString;
1024
- }, z.core.$strip>]>>;
1025
- }, z.core.$strip>]>;
1026
- target: z.ZodObject<{
1027
- cap: z.ZodString;
1028
- fieldPath: z.ZodString;
1029
- itemKey: z.ZodOptional<z.ZodString>;
1030
- }, z.core.$strip>;
1031
- transform: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1032
- kind: z.ZodLiteral<"identity">;
1033
- }, z.core.$strip>, z.ZodObject<{
1034
- kind: z.ZodLiteral<"enum-map">;
1035
- mapping: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1036
- fallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1037
- }, z.core.$strip>, z.ZodObject<{
1038
- kind: z.ZodLiteral<"linear">;
1039
- scale: z.ZodNumber;
1040
- offset: z.ZodNumber;
1041
- clamp: z.ZodOptional<z.ZodReadonly<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1042
- }, z.core.$strip>], "kind">>;
1043
- }, z.core.$strip>>>>;
1044
630
  display: z.ZodOptional<z.ZodObject<{
1045
631
  icon: z.ZodOptional<z.ZodString>;
1046
632
  label: z.ZodOptional<z.ZodString>;
@@ -1186,7 +772,6 @@ export declare const deviceManagerCapability: {
1186
772
  capName: z.ZodString;
1187
773
  kind: z.ZodEnum<{
1188
774
  native: "native";
1189
- linked: "linked";
1190
775
  wrapped: "wrapped";
1191
776
  }>;
1192
777
  providerAddonId: z.ZodString;
@@ -1208,7 +793,6 @@ export declare const deviceManagerCapability: {
1208
793
  capName: z.ZodString;
1209
794
  kind: z.ZodEnum<{
1210
795
  native: "native";
1211
- linked: "linked";
1212
796
  wrapped: "wrapped";
1213
797
  }>;
1214
798
  providerAddonId: z.ZodString;
@@ -38,7 +38,7 @@ export { cameraStreamsCapability, type ICameraStreamsProvider, type PickedCamStr
38
38
  export { extractNestedAddonId, isArrayOutputSchema, isCollectionArrayMethod, isObjectInput, isVoidInput, kebabToCamel, looseSchema, objectInputDeclaresAddonId, procedureAuthKey, } from './cap-router-predicates.js';
39
39
  export type { CapabilityDefinition, CapabilityEventSchema, CapabilityMethodAuth, CapabilityMethodCaller, CapabilityMethodKind, CapabilityMethodOptions, CapabilityMethodSchema, CapabilityMountHint, CapabilityMountKind, CapabilityStatusItemArray, CapabilityStatusKind, CapabilityStatusSchema, CapCaller, DeviceConfigDerivedFormUi, DeviceConfigSpec, DeviceConfigUiSpec, DeviceConfigWidgetUi, DeviceSettingsContribution, InferDeviceProxyCap, InferEvents, InferName, InferNativeProvider, InferProvider, InferRuntimeState, ProviderKind, UiContribution, UiContributionKind, UiContributionRemote, } from './capability-definition.js';
40
40
  export { DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, event, expandCapMethods, isDeviceConfigCap, method, resolveCapMount, } from './capability-definition.js';
41
- export { type CoreBlock, type CoreBlockCompileResult, CoreBlockCompileResultSchema, type CoreBlockInput, CoreBlockInputSchema, type CoreBlockPlacement, CoreBlockPlacementSchema, CoreBlockSchema, type CoreBlockStatus, CoreBlockStatusSchema, coreBlocksCapability, type ICoreBlocksProvider, } from './core-blocks.cap.js';
41
+ export { CORE_BLOCK_ADDON_PREFIX, type CoreBlock, type CoreBlockCompileResult, CoreBlockCompileResultSchema, type CoreBlockInput, CoreBlockInputSchema, type CoreBlockPlacement, CoreBlockPlacementSchema, CoreBlockSchema, type CoreBlockStatus, CoreBlockStatusSchema, coreBlockAddonId, coreBlockIdFromAddonId, coreBlocksCapability, type ICoreBlocksProvider, } from './core-blocks.cap.js';
42
42
  export * from './custom-actions.js';
43
43
  export type { CustomModelDescriptor, ICustomModelRegistryProvider, } from './custom-model-registry.cap.js';
44
44
  export { CustomModelDescriptorSchema, customModelRegistryCapability, } from './custom-model-registry.cap.js';
@@ -50,7 +50,7 @@ export { AdoptInputSchema as AdoptionAdoptInputSchema, type AdoptionFilter, Adop
50
50
  export type { IDeviceExportProvider } from './device-export.cap.js';
51
51
  export { DeviceExportStatusSchema, deviceExportCapability, ExportSetupFieldSchema, ExportSetupSchema, ExposedDeviceSchema, ExposeInputSchema as DeviceExportExposeInputSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, } from './device-export.cap.js';
52
52
  export type { DeviceInfo, DeviceManagerApplyInitialMetaInput } from './device-manager.cap.js';
53
- export { ConfigEntrySchema, DeviceInfoSchema, type DeviceLinkMode, DeviceLinkModeSchema, deviceManagerCapability, type IDeviceManagerProvider, type LinkedDevice, LinkedDeviceSchema, } from './device-manager.cap.js';
53
+ export { ConfigEntrySchema, DeviceInfoSchema, deviceManagerCapability, type IDeviceManagerProvider, type LinkedDevice, LinkedDeviceSchema, type LinkedDevicesMode, LinkedDevicesModeSchema, } from './device-manager.cap.js';
54
54
  export { DiscoveredDeviceSchema, deviceProviderCapability, ProviderStatusSchema, } from './device-provider.cap.js';
55
55
  export { deviceStateCapability } from './device-state.cap.js';
56
56
  export type { IEmbeddingEncoderProvider } from './embedding-encoder.cap.js';
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { DeviceType } from '../device/device-type.js';
2
3
  import { type InferProvider } from './capability-definition.js';
3
4
  declare const MotionRegionSchema: z.ZodObject<{
4
5
  bbox: z.ZodObject<{
@@ -43,6 +44,10 @@ export declare const motionDetectionCapability: {
43
44
  readonly mode: "singleton";
44
45
  readonly kind: "wrapper";
45
46
  readonly defaultActive: true;
47
+ /** Frame-differencing motion analysis over a video stream — only a camera
48
+ * produces the frames. Read by the `defaultActive` auto-bind in
49
+ * `device-manager.getBindings` to decide which devices it may claim. */
50
+ readonly deviceTypes: readonly [DeviceType.Camera];
46
51
  readonly exposesDeviceSettings: true;
47
52
  readonly methods: {
48
53
  readonly analyze: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
@@ -123,4 +128,4 @@ export declare const motionDetectionCapability: {
123
128
  export type IMotionDetectionProvider = InferProvider<typeof motionDetectionCapability>;
124
129
  export type MotionRegion = z.infer<typeof MotionRegionSchema>;
125
130
  export type MotionAnalysisResult = z.infer<typeof MotionAnalysisResultSchema>;
126
- export { MotionRegionSchema, MotionAnalysisResultSchema };
131
+ export { MotionAnalysisResultSchema, MotionRegionSchema };