@camstack/types 1.2.539 → 1.2.541
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.
- package/CHANGELOG.md +29 -0
- package/dist/addon.js +44 -12
- package/dist/addon.mjs +44 -12
- package/dist/capabilities/capability-definition.d.ts +4 -0
- package/dist/capabilities/climate-control.cap.d.ts +18 -6
- package/dist/capabilities/cluster-update.cap.d.ts +376 -0
- package/dist/capabilities/cover.cap.d.ts +9 -3
- package/dist/capabilities/device-manager.cap.d.ts +117 -0
- package/dist/capabilities/device-search.d.ts +168 -0
- package/dist/capabilities/fan-control.cap.d.ts +12 -4
- package/dist/capabilities/hero-layout.cap.d.ts +4 -0
- package/dist/capabilities/hub-address.d.ts +10 -0
- package/dist/capabilities/index.d.ts +8 -5
- package/dist/capabilities/lock-control.cap.d.ts +3 -1
- package/dist/capabilities/media-player.cap.d.ts +48 -16
- package/dist/capabilities/notification-output.cap.d.ts +40 -0
- package/dist/capabilities/notification-rules.cap.d.ts +366 -0
- package/dist/capabilities/osd-manager.cap.d.ts +40 -277
- package/dist/capabilities/valve.cap.d.ts +3 -1
- package/dist/client.d.ts +2 -1
- package/dist/client.js +94 -8
- package/dist/client.mjs +94 -9
- package/dist/{composed-stable-id-C3J6LxC9.js → composed-stable-id-BtaMj_W7.js} +4 -0
- package/dist/{composed-stable-id-DLcPInGv.mjs → composed-stable-id-jnvhwGoH.mjs} +4 -0
- package/dist/device/container-primary-child.d.ts +39 -4
- package/dist/device/device-binding.d.ts +6 -0
- package/dist/device/device-feature-requirements.d.ts +137 -0
- package/dist/device/device-management.d.ts +9 -0
- package/dist/device/device-type.d.ts +5 -1
- package/dist/device/hero/hero-model.d.ts +14 -0
- package/dist/device/implemented-methods.d.ts +6 -0
- package/dist/device/linked-device-resolve.d.ts +2 -0
- package/dist/expression/device-template.d.ts +31 -1
- package/dist/generated/addon-api.d.ts +50 -7
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/device-proxy.d.ts +2 -2
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/generated/system-proxy.d.ts +3 -1
- package/dist/{composition-BcVAbtBc.js → implemented-methods-C_iV6BiP.js} +17 -1
- package/dist/{composition-BFJq1Y88.mjs → implemented-methods-OitwyO1Y.mjs} +12 -2
- package/dist/index.d.ts +7 -3
- package/dist/index.js +1231 -444
- package/dist/index.mjs +944 -203
- package/dist/interfaces/addon.d.ts +7 -0
- package/dist/interfaces/event-bus.d.ts +2 -0
- package/dist/migrations/api/migration-api.v1.d.ts +11 -0
- package/dist/migrations/api/migration-api.v1.schema.d.ts +25 -0
- package/dist/node.d.ts +1 -0
- package/dist/node.js +26 -25
- package/dist/node.mjs +3 -3
- package/dist/notification/degrade-engine.d.ts +7 -1
- package/dist/notification/notification-fields.d.ts +69 -0
- package/dist/notification/timelapse-rule.d.ts +69 -0
- package/dist/{sleep-VrfKAAGN.mjs → sleep-Cw1uUXvl.mjs} +5 -2
- package/dist/{sleep-DgCXXFc3.js → sleep-PfAAmxV-.js} +5 -2
- package/package.json +1 -1
|
@@ -14,72 +14,27 @@ import { type InferProvider } from './capability-definition.js';
|
|
|
14
14
|
* fields into one overlay string (plugin catalog OSD Manager parity).
|
|
15
15
|
*/
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
unit: "unit";
|
|
29
|
-
value: "value";
|
|
30
|
-
"value+unit": "value+unit";
|
|
31
|
-
}>;
|
|
32
|
-
/** @deprecated Use `OsdTemplateTokenKind`. */
|
|
33
|
-
export type OsdTemplateFormat = z.infer<typeof OsdTemplateFormatSchema>;
|
|
34
|
-
/**
|
|
35
|
-
* How the operator reached the leaf device. `deviceId` is ALWAYS the
|
|
36
|
-
* OSD-supported leaf that is read; `containerId` is set when the pick
|
|
37
|
-
* went through a container (gateway) first.
|
|
38
|
-
*/
|
|
39
|
-
export declare const OsdTemplatePickSchema: z.ZodObject<{
|
|
40
|
-
containerId: z.ZodOptional<z.ZodNumber>;
|
|
41
|
-
deviceId: z.ZodNumber;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
export type OsdTemplatePick = z.infer<typeof OsdTemplatePickSchema>;
|
|
44
|
-
/**
|
|
45
|
-
* One named binding inside a multi-device template: device path + unit
|
|
46
|
-
* selection + precision. The parser expands `{alias}`, `{alias.value}`,
|
|
47
|
-
* `{alias.unit}`, or `{alias.full}` from the same binding — there is no
|
|
48
|
-
* per-binding format lock.
|
|
17
|
+
* The text of a named template: a device template (D1021) —
|
|
18
|
+
* `{{ camera.temperature | round(1) }}`, `{{ now | time('HH:mm') }}`,
|
|
19
|
+
* `{% if camera.motion %}MOTION{% endif %}` — rendered by the ONE hub renderer
|
|
20
|
+
* (`device-manager.renderDeviceTemplates`), never by this addon.
|
|
21
|
+
*
|
|
22
|
+
* Two names belong to the render rather than to a device:
|
|
23
|
+
* - `now` is the clock; `time('HH:mm')` prints it in the server's zone.
|
|
24
|
+
* - `camera` is the camera the overlay is on, so one template serves every
|
|
25
|
+
* camera. `camera.lastPerson` and `camera.lastPlate` are the most recent
|
|
26
|
+
* recognition persisted for it (empty text until there is one, with
|
|
27
|
+
* `| default('')`).
|
|
49
28
|
*/
|
|
50
|
-
export declare const
|
|
51
|
-
alias: z.ZodString;
|
|
52
|
-
pick: z.ZodObject<{
|
|
53
|
-
containerId: z.ZodOptional<z.ZodNumber>;
|
|
54
|
-
deviceId: z.ZodNumber;
|
|
55
|
-
}, z.core.$strip>;
|
|
56
|
-
capName: z.ZodString;
|
|
57
|
-
valuePath: z.ZodString;
|
|
58
|
-
displayUnit: z.ZodOptional<z.ZodString>;
|
|
59
|
-
maxDecimals: z.ZodDefault<z.ZodNumber>;
|
|
60
|
-
valueMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
61
|
-
}, z.core.$strip>;
|
|
62
|
-
export type OsdTemplateBinding = z.infer<typeof OsdTemplateBindingSchema>;
|
|
29
|
+
export declare const OSD_TEMPLATE_TEXT_MAX = 1024;
|
|
63
30
|
/**
|
|
64
|
-
* A named template:
|
|
65
|
-
*
|
|
31
|
+
* A named template: the unit of reuse. A slot points at one by id; editing it
|
|
32
|
+
* changes every slot that points at it, on every camera.
|
|
66
33
|
*/
|
|
67
34
|
export declare const OsdNamedTemplateSchema: z.ZodObject<{
|
|
68
35
|
id: z.ZodString;
|
|
69
36
|
name: z.ZodString;
|
|
70
|
-
|
|
71
|
-
alias: z.ZodString;
|
|
72
|
-
pick: z.ZodObject<{
|
|
73
|
-
containerId: z.ZodOptional<z.ZodNumber>;
|
|
74
|
-
deviceId: z.ZodNumber;
|
|
75
|
-
}, z.core.$strip>;
|
|
76
|
-
capName: z.ZodString;
|
|
77
|
-
valuePath: z.ZodString;
|
|
78
|
-
displayUnit: z.ZodOptional<z.ZodString>;
|
|
79
|
-
maxDecimals: z.ZodDefault<z.ZodNumber>;
|
|
80
|
-
valueMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
81
|
-
}, z.core.$strip>>>;
|
|
82
|
-
parser: z.ZodDefault<z.ZodString>;
|
|
37
|
+
text: z.ZodDefault<z.ZodString>;
|
|
83
38
|
}, z.core.$strip>;
|
|
84
39
|
export type OsdNamedTemplate = z.infer<typeof OsdNamedTemplateSchema>;
|
|
85
40
|
/** Where a slot's value comes from. */
|
|
@@ -88,22 +43,6 @@ export declare const OsdSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
88
43
|
}, z.core.$strip>, z.ZodObject<{
|
|
89
44
|
kind: z.ZodLiteral<"static">;
|
|
90
45
|
text: z.ZodString;
|
|
91
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
92
|
-
kind: z.ZodLiteral<"clock">;
|
|
93
|
-
pattern: z.ZodDefault<z.ZodString>;
|
|
94
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
95
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
-
kind: z.ZodLiteral<"device-state">;
|
|
97
|
-
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
98
|
-
capName: z.ZodString;
|
|
99
|
-
valuePath: z.ZodString;
|
|
100
|
-
displayUnit: z.ZodOptional<z.ZodString>;
|
|
101
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
-
kind: z.ZodLiteral<"latest-recognition">;
|
|
103
|
-
recognition: z.ZodEnum<{
|
|
104
|
-
person: "person";
|
|
105
|
-
plate: "plate";
|
|
106
|
-
}>;
|
|
107
46
|
}, z.core.$strip>, z.ZodObject<{
|
|
108
47
|
kind: z.ZodLiteral<"template">;
|
|
109
48
|
templateId: z.ZodString;
|
|
@@ -116,29 +55,10 @@ export declare const OsdSlotBindingSchema: z.ZodObject<{
|
|
|
116
55
|
}, z.core.$strip>, z.ZodObject<{
|
|
117
56
|
kind: z.ZodLiteral<"static">;
|
|
118
57
|
text: z.ZodString;
|
|
119
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
120
|
-
kind: z.ZodLiteral<"clock">;
|
|
121
|
-
pattern: z.ZodDefault<z.ZodString>;
|
|
122
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
123
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
124
|
-
kind: z.ZodLiteral<"device-state">;
|
|
125
|
-
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
126
|
-
capName: z.ZodString;
|
|
127
|
-
valuePath: z.ZodString;
|
|
128
|
-
displayUnit: z.ZodOptional<z.ZodString>;
|
|
129
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
130
|
-
kind: z.ZodLiteral<"latest-recognition">;
|
|
131
|
-
recognition: z.ZodEnum<{
|
|
132
|
-
person: "person";
|
|
133
|
-
plate: "plate";
|
|
134
|
-
}>;
|
|
135
58
|
}, z.core.$strip>, z.ZodObject<{
|
|
136
59
|
kind: z.ZodLiteral<"template">;
|
|
137
60
|
templateId: z.ZodString;
|
|
138
61
|
}, z.core.$strip>], "kind">;
|
|
139
|
-
template: z.ZodDefault<z.ZodString>;
|
|
140
|
-
maxDecimals: z.ZodDefault<z.ZodNumber>;
|
|
141
|
-
valueMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
142
62
|
schedule: z.ZodOptional<z.ZodObject<{
|
|
143
63
|
windows: z.ZodArray<z.ZodObject<{
|
|
144
64
|
days: z.ZodArray<z.ZodNumber>;
|
|
@@ -320,29 +240,10 @@ export declare const OsdSlotViewSchema: z.ZodObject<{
|
|
|
320
240
|
}, z.core.$strip>, z.ZodObject<{
|
|
321
241
|
kind: z.ZodLiteral<"static">;
|
|
322
242
|
text: z.ZodString;
|
|
323
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
324
|
-
kind: z.ZodLiteral<"clock">;
|
|
325
|
-
pattern: z.ZodDefault<z.ZodString>;
|
|
326
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
327
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
328
|
-
kind: z.ZodLiteral<"device-state">;
|
|
329
|
-
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
330
|
-
capName: z.ZodString;
|
|
331
|
-
valuePath: z.ZodString;
|
|
332
|
-
displayUnit: z.ZodOptional<z.ZodString>;
|
|
333
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
334
|
-
kind: z.ZodLiteral<"latest-recognition">;
|
|
335
|
-
recognition: z.ZodEnum<{
|
|
336
|
-
person: "person";
|
|
337
|
-
plate: "plate";
|
|
338
|
-
}>;
|
|
339
243
|
}, z.core.$strip>, z.ZodObject<{
|
|
340
244
|
kind: z.ZodLiteral<"template">;
|
|
341
245
|
templateId: z.ZodString;
|
|
342
246
|
}, z.core.$strip>], "kind">;
|
|
343
|
-
template: z.ZodDefault<z.ZodString>;
|
|
344
|
-
maxDecimals: z.ZodDefault<z.ZodNumber>;
|
|
345
|
-
valueMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
346
247
|
schedule: z.ZodOptional<z.ZodObject<{
|
|
347
248
|
windows: z.ZodArray<z.ZodObject<{
|
|
348
249
|
days: z.ZodArray<z.ZodNumber>;
|
|
@@ -538,33 +439,17 @@ export declare const OsdRenderResultSchema: z.ZodObject<{
|
|
|
538
439
|
reason: z.ZodOptional<z.ZodString>;
|
|
539
440
|
}, z.core.$strip>;
|
|
540
441
|
export type OsdRenderResult = z.infer<typeof OsdRenderResultSchema>;
|
|
541
|
-
export declare const OsdSourceValueTypeEnum: z.ZodEnum<{
|
|
542
|
-
boolean: "boolean";
|
|
543
|
-
enum: "enum";
|
|
544
|
-
number: "number";
|
|
545
|
-
string: "string";
|
|
546
|
-
}>;
|
|
547
|
-
export type OsdSourceValueType = z.infer<typeof OsdSourceValueTypeEnum>;
|
|
548
442
|
/**
|
|
549
|
-
*
|
|
550
|
-
*
|
|
551
|
-
*
|
|
443
|
+
* A template rendered for one camera without being saved: what the editor
|
|
444
|
+
* previews. `text` is what the overlay would carry; a refused render has a
|
|
445
|
+
* `reason` and an empty text.
|
|
552
446
|
*/
|
|
553
|
-
export declare const
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
valuePath: z.ZodString;
|
|
558
|
-
label: z.ZodString;
|
|
559
|
-
valueType: z.ZodEnum<{
|
|
560
|
-
boolean: "boolean";
|
|
561
|
-
enum: "enum";
|
|
562
|
-
number: "number";
|
|
563
|
-
string: "string";
|
|
564
|
-
}>;
|
|
565
|
-
enumValues: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
447
|
+
export declare const OsdTemplatePreviewSchema: z.ZodObject<{
|
|
448
|
+
ok: z.ZodBoolean;
|
|
449
|
+
text: z.ZodString;
|
|
450
|
+
notes: z.ZodArray<z.ZodString>;
|
|
566
451
|
}, z.core.$strip>;
|
|
567
|
-
export type
|
|
452
|
+
export type OsdTemplatePreview = z.infer<typeof OsdTemplatePreviewSchema>;
|
|
568
453
|
export declare const osdManagerCapability: {
|
|
569
454
|
readonly name: 'osd-manager';
|
|
570
455
|
readonly scope: 'system';
|
|
@@ -596,29 +481,10 @@ export declare const osdManagerCapability: {
|
|
|
596
481
|
}, z.core.$strip>, z.ZodObject<{
|
|
597
482
|
kind: z.ZodLiteral<"static">;
|
|
598
483
|
text: z.ZodString;
|
|
599
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
600
|
-
kind: z.ZodLiteral<"clock">;
|
|
601
|
-
pattern: z.ZodDefault<z.ZodString>;
|
|
602
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
603
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
604
|
-
kind: z.ZodLiteral<"device-state">;
|
|
605
|
-
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
606
|
-
capName: z.ZodString;
|
|
607
|
-
valuePath: z.ZodString;
|
|
608
|
-
displayUnit: z.ZodOptional<z.ZodString>;
|
|
609
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
610
|
-
kind: z.ZodLiteral<"latest-recognition">;
|
|
611
|
-
recognition: z.ZodEnum<{
|
|
612
|
-
person: "person";
|
|
613
|
-
plate: "plate";
|
|
614
|
-
}>;
|
|
615
484
|
}, z.core.$strip>, z.ZodObject<{
|
|
616
485
|
kind: z.ZodLiteral<"template">;
|
|
617
486
|
templateId: z.ZodString;
|
|
618
487
|
}, z.core.$strip>], "kind">;
|
|
619
|
-
template: z.ZodDefault<z.ZodString>;
|
|
620
|
-
maxDecimals: z.ZodDefault<z.ZodNumber>;
|
|
621
|
-
valueMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
622
488
|
schedule: z.ZodOptional<z.ZodObject<{
|
|
623
489
|
windows: z.ZodArray<z.ZodObject<{
|
|
624
490
|
days: z.ZodArray<z.ZodNumber>;
|
|
@@ -783,29 +649,6 @@ export declare const osdManagerCapability: {
|
|
|
783
649
|
}, z.core.$strip>>;
|
|
784
650
|
}, z.core.$strip>>;
|
|
785
651
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
786
|
-
/**
|
|
787
|
-
* Every value bindable on this camera: its own state leaves first,
|
|
788
|
-
* then every other device's. Derived from the cap definitions, so it
|
|
789
|
-
* cannot drift from what the resolver can actually read.
|
|
790
|
-
*/
|
|
791
|
-
readonly getSourceCatalog: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
792
|
-
deviceId: z.ZodNumber;
|
|
793
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
794
|
-
sources: z.ZodArray<z.ZodObject<{
|
|
795
|
-
deviceId: z.ZodNumber;
|
|
796
|
-
deviceName: z.ZodString;
|
|
797
|
-
capName: z.ZodString;
|
|
798
|
-
valuePath: z.ZodString;
|
|
799
|
-
label: z.ZodString;
|
|
800
|
-
valueType: z.ZodEnum<{
|
|
801
|
-
boolean: "boolean";
|
|
802
|
-
enum: "enum";
|
|
803
|
-
number: "number";
|
|
804
|
-
string: "string";
|
|
805
|
-
}>;
|
|
806
|
-
enumValues: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
807
|
-
}, z.core.$strip>>;
|
|
808
|
-
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
809
652
|
/**
|
|
810
653
|
* The condition ids this gate can answer, alongside the FULL notification
|
|
811
654
|
* condition catalog. Both, in one call, on purpose: an editor that showed
|
|
@@ -891,29 +734,10 @@ export declare const osdManagerCapability: {
|
|
|
891
734
|
}, z.core.$strip>, z.ZodObject<{
|
|
892
735
|
kind: z.ZodLiteral<"static">;
|
|
893
736
|
text: z.ZodString;
|
|
894
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
895
|
-
kind: z.ZodLiteral<"clock">;
|
|
896
|
-
pattern: z.ZodDefault<z.ZodString>;
|
|
897
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
898
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
899
|
-
kind: z.ZodLiteral<"device-state">;
|
|
900
|
-
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
901
|
-
capName: z.ZodString;
|
|
902
|
-
valuePath: z.ZodString;
|
|
903
|
-
displayUnit: z.ZodOptional<z.ZodString>;
|
|
904
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
905
|
-
kind: z.ZodLiteral<"latest-recognition">;
|
|
906
|
-
recognition: z.ZodEnum<{
|
|
907
|
-
person: "person";
|
|
908
|
-
plate: "plate";
|
|
909
|
-
}>;
|
|
910
737
|
}, z.core.$strip>, z.ZodObject<{
|
|
911
738
|
kind: z.ZodLiteral<"template">;
|
|
912
739
|
templateId: z.ZodString;
|
|
913
740
|
}, z.core.$strip>], "kind">;
|
|
914
|
-
template: z.ZodDefault<z.ZodString>;
|
|
915
|
-
maxDecimals: z.ZodDefault<z.ZodNumber>;
|
|
916
|
-
valueMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
917
741
|
schedule: z.ZodOptional<z.ZodObject<{
|
|
918
742
|
windows: z.ZodArray<z.ZodObject<{
|
|
919
743
|
days: z.ZodArray<z.ZodNumber>;
|
|
@@ -1094,29 +918,10 @@ export declare const osdManagerCapability: {
|
|
|
1094
918
|
}, z.core.$strip>, z.ZodObject<{
|
|
1095
919
|
kind: z.ZodLiteral<"static">;
|
|
1096
920
|
text: z.ZodString;
|
|
1097
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1098
|
-
kind: z.ZodLiteral<"clock">;
|
|
1099
|
-
pattern: z.ZodDefault<z.ZodString>;
|
|
1100
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
1101
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1102
|
-
kind: z.ZodLiteral<"device-state">;
|
|
1103
|
-
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
1104
|
-
capName: z.ZodString;
|
|
1105
|
-
valuePath: z.ZodString;
|
|
1106
|
-
displayUnit: z.ZodOptional<z.ZodString>;
|
|
1107
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1108
|
-
kind: z.ZodLiteral<"latest-recognition">;
|
|
1109
|
-
recognition: z.ZodEnum<{
|
|
1110
|
-
person: "person";
|
|
1111
|
-
plate: "plate";
|
|
1112
|
-
}>;
|
|
1113
921
|
}, z.core.$strip>, z.ZodObject<{
|
|
1114
922
|
kind: z.ZodLiteral<"template">;
|
|
1115
923
|
templateId: z.ZodString;
|
|
1116
924
|
}, z.core.$strip>], "kind">;
|
|
1117
|
-
template: z.ZodDefault<z.ZodString>;
|
|
1118
|
-
maxDecimals: z.ZodDefault<z.ZodNumber>;
|
|
1119
|
-
valueMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1120
925
|
schedule: z.ZodOptional<z.ZodObject<{
|
|
1121
926
|
windows: z.ZodArray<z.ZodObject<{
|
|
1122
927
|
days: z.ZodArray<z.ZodNumber>;
|
|
@@ -1341,29 +1146,10 @@ export declare const osdManagerCapability: {
|
|
|
1341
1146
|
}, z.core.$strip>, z.ZodObject<{
|
|
1342
1147
|
kind: z.ZodLiteral<"static">;
|
|
1343
1148
|
text: z.ZodString;
|
|
1344
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1345
|
-
kind: z.ZodLiteral<"clock">;
|
|
1346
|
-
pattern: z.ZodDefault<z.ZodString>;
|
|
1347
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
1348
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1349
|
-
kind: z.ZodLiteral<"device-state">;
|
|
1350
|
-
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
1351
|
-
capName: z.ZodString;
|
|
1352
|
-
valuePath: z.ZodString;
|
|
1353
|
-
displayUnit: z.ZodOptional<z.ZodString>;
|
|
1354
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1355
|
-
kind: z.ZodLiteral<"latest-recognition">;
|
|
1356
|
-
recognition: z.ZodEnum<{
|
|
1357
|
-
person: "person";
|
|
1358
|
-
plate: "plate";
|
|
1359
|
-
}>;
|
|
1360
1149
|
}, z.core.$strip>, z.ZodObject<{
|
|
1361
1150
|
kind: z.ZodLiteral<"template">;
|
|
1362
1151
|
templateId: z.ZodString;
|
|
1363
1152
|
}, z.core.$strip>], "kind">;
|
|
1364
|
-
template: z.ZodDefault<z.ZodString>;
|
|
1365
|
-
maxDecimals: z.ZodDefault<z.ZodNumber>;
|
|
1366
|
-
valueMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1367
1153
|
schedule: z.ZodOptional<z.ZodObject<{
|
|
1368
1154
|
windows: z.ZodArray<z.ZodObject<{
|
|
1369
1155
|
days: z.ZodArray<z.ZodNumber>;
|
|
@@ -1540,6 +1326,19 @@ export declare const osdManagerCapability: {
|
|
|
1540
1326
|
text: z.ZodString;
|
|
1541
1327
|
reason: z.ZodOptional<z.ZodString>;
|
|
1542
1328
|
}, z.core.$strip>, "mutation">;
|
|
1329
|
+
/**
|
|
1330
|
+
* Render a template text for a camera without saving it, with the same
|
|
1331
|
+
* context a slot gets (`camera`, `now`, the recognitions). The editor's
|
|
1332
|
+
* preview; no side effects.
|
|
1333
|
+
*/
|
|
1334
|
+
readonly previewTemplate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1335
|
+
deviceId: z.ZodNumber;
|
|
1336
|
+
text: z.ZodString;
|
|
1337
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1338
|
+
ok: z.ZodBoolean;
|
|
1339
|
+
text: z.ZodString;
|
|
1340
|
+
notes: z.ZodArray<z.ZodString>;
|
|
1341
|
+
}, z.core.$strip>, "mutation">;
|
|
1543
1342
|
/** Force a render pass over one camera now, instead of at the next tick. */
|
|
1544
1343
|
readonly renderDevice: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1545
1344
|
deviceId: z.ZodNumber;
|
|
@@ -1564,19 +1363,7 @@ export declare const osdManagerCapability: {
|
|
|
1564
1363
|
templates: z.ZodArray<z.ZodObject<{
|
|
1565
1364
|
id: z.ZodString;
|
|
1566
1365
|
name: z.ZodString;
|
|
1567
|
-
|
|
1568
|
-
alias: z.ZodString;
|
|
1569
|
-
pick: z.ZodObject<{
|
|
1570
|
-
containerId: z.ZodOptional<z.ZodNumber>;
|
|
1571
|
-
deviceId: z.ZodNumber;
|
|
1572
|
-
}, z.core.$strip>;
|
|
1573
|
-
capName: z.ZodString;
|
|
1574
|
-
valuePath: z.ZodString;
|
|
1575
|
-
displayUnit: z.ZodOptional<z.ZodString>;
|
|
1576
|
-
maxDecimals: z.ZodDefault<z.ZodNumber>;
|
|
1577
|
-
valueMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1578
|
-
}, z.core.$strip>>>;
|
|
1579
|
-
parser: z.ZodDefault<z.ZodString>;
|
|
1366
|
+
text: z.ZodDefault<z.ZodString>;
|
|
1580
1367
|
}, z.core.$strip>>;
|
|
1581
1368
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
1582
1369
|
/**
|
|
@@ -1587,40 +1374,16 @@ export declare const osdManagerCapability: {
|
|
|
1587
1374
|
template: z.ZodObject<{
|
|
1588
1375
|
id: z.ZodString;
|
|
1589
1376
|
name: z.ZodString;
|
|
1590
|
-
|
|
1591
|
-
alias: z.ZodString;
|
|
1592
|
-
pick: z.ZodObject<{
|
|
1593
|
-
containerId: z.ZodOptional<z.ZodNumber>;
|
|
1594
|
-
deviceId: z.ZodNumber;
|
|
1595
|
-
}, z.core.$strip>;
|
|
1596
|
-
capName: z.ZodString;
|
|
1597
|
-
valuePath: z.ZodString;
|
|
1598
|
-
displayUnit: z.ZodOptional<z.ZodString>;
|
|
1599
|
-
maxDecimals: z.ZodDefault<z.ZodNumber>;
|
|
1600
|
-
valueMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1601
|
-
}, z.core.$strip>>>;
|
|
1602
|
-
parser: z.ZodDefault<z.ZodString>;
|
|
1377
|
+
text: z.ZodDefault<z.ZodString>;
|
|
1603
1378
|
}, z.core.$strip>;
|
|
1604
1379
|
}, z.core.$strip>, z.ZodObject<{
|
|
1605
1380
|
template: z.ZodObject<{
|
|
1606
1381
|
id: z.ZodString;
|
|
1607
1382
|
name: z.ZodString;
|
|
1608
|
-
|
|
1609
|
-
alias: z.ZodString;
|
|
1610
|
-
pick: z.ZodObject<{
|
|
1611
|
-
containerId: z.ZodOptional<z.ZodNumber>;
|
|
1612
|
-
deviceId: z.ZodNumber;
|
|
1613
|
-
}, z.core.$strip>;
|
|
1614
|
-
capName: z.ZodString;
|
|
1615
|
-
valuePath: z.ZodString;
|
|
1616
|
-
displayUnit: z.ZodOptional<z.ZodString>;
|
|
1617
|
-
maxDecimals: z.ZodDefault<z.ZodNumber>;
|
|
1618
|
-
valueMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1619
|
-
}, z.core.$strip>>>;
|
|
1620
|
-
parser: z.ZodDefault<z.ZodString>;
|
|
1383
|
+
text: z.ZodDefault<z.ZodString>;
|
|
1621
1384
|
}, z.core.$strip>;
|
|
1622
1385
|
}, z.core.$strip>, "mutation">;
|
|
1623
|
-
/** Drop a named template.
|
|
1386
|
+
/** Drop a named template. Slots that still point at it render unreadable and keep their last text. */
|
|
1624
1387
|
readonly deleteTemplate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1625
1388
|
templateId: z.ZodString;
|
|
1626
1389
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -57,7 +57,9 @@ export declare const valveCapability: {
|
|
|
57
57
|
readonly setPosition: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
58
58
|
deviceId: z.ZodNumber;
|
|
59
59
|
position: z.ZodNumber;
|
|
60
|
-
}, z.core.$strip>, z.ZodVoid, "mutation"
|
|
60
|
+
}, z.core.$strip>, z.ZodVoid, "mutation"> & {
|
|
61
|
+
readonly providerOptional: true;
|
|
62
|
+
};
|
|
61
63
|
};
|
|
62
64
|
readonly status: {
|
|
63
65
|
readonly schema: z.ZodObject<{
|
package/dist/client.d.ts
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* value this entry does not export — a missing name here is `undefined` at
|
|
15
15
|
* runtime, not a build error.
|
|
16
16
|
*/
|
|
17
|
-
export { APPLE_SA_TO_MACRO, AUDIO_MACRO_LABELS, AlarmArmModeSchema, CLIP_BROKER_PACED_RATES, COCO_TO_MACRO, CamProfileSchema, ICON_CATEGORIES, ICON_ENTRIES, ICON_KEYS, ICON_VIEWER_MODULES, IconKeySchema, LOCATION_ICON_FALLBACK, REMOTE_CUSTOM_ROLE_ICON, REMOTE_ROLE_VOCABULARY, DEFINITIVE_DEVICE_REFUSALS, DEVICE_CERT_RENEW_WINDOW_DAYS, DEVICE_DEFINITIVE_REFUSALS_BEFORE_DELETE, DEVICE_REFRESH_REFUSAL_PREFIX, DEVICE_CERT_SIGNATURE, DEVICE_SIGNATURE_MESSAGE_VERSION, DEFAULT_TIMELAPSE_PREVIEW_TEXT, DeviceType, EVENTFUL_CAP_NAMES, EVENT_KIND_BY_CAP, EVENT_TAXONOMY, MACRO_LABELS, NC_ALARM_DELAY_MAX_SEC, NC_ALARM_SENSORS_MAX, NC_ALARM_SYSTEM_EVENT_KINDS, NC_ALARM_TRIGGERED_MAX_SEC, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_CAMERA_SCOPE_CAP_NAME, NC_CONSUMABLE_LOW_PERCENT_DEFAULT, NC_CONSUMABLE_LOW_PERCENT_MAX, NC_GROUPING_DEFAULT_SEC, NC_GROUPING_MAX_SEC, NC_GROUPING_MIN_SEC, NC_RULE_EDITOR_SECTION_ORDER, NC_RULE_KIND_SPECS, NC_SENSOR_TRANSITION_UNSUPPORTED_REASON, NC_SYSTEM_EVENT_FAMILY_FILTERS, NC_SYSTEM_EVENT_CLASS_SPECS, NC_SYSTEM_EVENT_KIND_GROUP_SPECS, NC_SYSTEM_EVENT_SUMMARY_FAMILIES, NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS, NC_TEMPLATE_VARS, NcAlarmConfigSchema, NcAlarmSensorsSchema, NcAlarmSettingsPatchSchema, NcHistoryEntrySchema, NcRuleLastRunsSchema, NodeDirectorySchema, RECORDING_EXPORT_MAX_READ_BYTES, RETRAIN_REVIEW_ADJUSTED_IOU, RETRAIN_REVIEW_MATCH_IOU, RETRAIN_REVIEW_STATUSES, RETRAIN_REVISION_CONFLICT, SystemMirror, TIMELAPSE_DENSE_FLOOR_SEC, TimelapseRuleSchema, YAMNET_TO_MACRO, alarmDeviceBlocksArming, alarmDeviceSecureOnArm, alarmPatchLanded, canonicalIconKey, buildDeviceEnrollmentLink, buildDeviceSignatureMessage, deviceRefusalFromMessage, isDefinitiveDeviceRefusal, classifyRetrainReview, conditionVisibleForKind, createSystemProxy, droppedConditionsForKind, iconCategoryLabel, iconEntry, iconsInCategory, isIconKey, isHeldBackTemplateVar, isSystemRuleKind, kindsForDiscriminator, locationIconKey, knownValues, nodePickerItems, parseDeviceEnrollmentLink, packagePickerItems, pickerForCondition, pickerForRuleClasses, parseRetrainRevisionConflict, remoteRoleIcon, remoteRoleLabel, remoteRoleLegend, resolveIconKey, resolveModeDelays, retrainBoxIou, retrainRevisionConflictMessage, ruleDeviceCompatCapNames, ruleEditorSectionsForKind, ruleGroupingApplies, ruleKindOf, ruleKindSpec, ruleSeedForSection, searchIcons, sensorTransitionNeverFires, sensorTransitionOffered, stateLabel, summarizeReview, systemEventClassesFor, systemEventClassKinds, systemEventDeliveryProblems, systemEventFilterAppliesToAnyKind, systemEventKindsOfFamily, systemFamilyOfKind, templateCarriesSummary, templateVarDeliveryApplies, templateVarKindApplies, templateVarSystemEventApplies, buildSubjectPath, isDrawableSubjectPath, projectSubjectPath, subjectPathSampleFromBox, subjectPathSvgPoints, expandSystemEventClasses, withSystemEventClasses, bundledCamstack, paintHex, paletteResultSchema, CONTAINER_PRIMARY_CHILD_RULES, resolveContainerPrimaryChild, } from './index.js';
|
|
17
|
+
export { APPLE_SA_TO_MACRO, AUDIO_MACRO_LABELS, AlarmArmModeSchema, CLIP_BROKER_PACED_RATES, COCO_TO_MACRO, CamProfileSchema, ICON_CATEGORIES, ICON_ENTRIES, ICON_KEYS, ICON_VIEWER_MODULES, IconKeySchema, LOCATION_ICON_FALLBACK, REMOTE_CUSTOM_ROLE_ICON, REMOTE_ROLE_VOCABULARY, DEFINITIVE_DEVICE_REFUSALS, DEVICE_CERT_RENEW_WINDOW_DAYS, DEVICE_DEFINITIVE_REFUSALS_BEFORE_DELETE, DEVICE_REFRESH_REFUSAL_PREFIX, DEVICE_CERT_SIGNATURE, DEVICE_SIGNATURE_MESSAGE_VERSION, DEFAULT_TIMELAPSE_PREVIEW_TEXT, DeviceType, EVENTFUL_CAP_NAMES, EVENT_KIND_BY_CAP, EVENT_TAXONOMY, MACRO_LABELS, NC_ALARM_DELAY_MAX_SEC, NC_ALARM_SENSORS_MAX, NC_ALARM_SYSTEM_EVENT_KINDS, NC_ALARM_TRIGGERED_MAX_SEC, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_CAMERA_SCOPE_CAP_NAME, NC_CONSUMABLE_LOW_PERCENT_DEFAULT, NC_CONSUMABLE_LOW_PERCENT_MAX, NC_GROUPING_DEFAULT_SEC, NC_GROUPING_MAX_SEC, NC_GROUPING_MIN_SEC, NC_RULE_EDITOR_SECTION_ORDER, NC_RULE_KIND_SPECS, NC_SENSOR_TRANSITION_UNSUPPORTED_REASON, NC_SYSTEM_EVENT_FAMILY_FILTERS, NC_SYSTEM_EVENT_CLASS_SPECS, NC_SYSTEM_EVENT_KIND_GROUP_SPECS, NC_SYSTEM_EVENT_SUMMARY_FAMILIES, NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS, NC_TEMPLATE_VARS, NcAlarmConfigSchema, NcAlarmSensorsSchema, NcAlarmSettingsPatchSchema, NcHistoryEntrySchema, NcRuleLastRunsSchema, NodeDirectorySchema, RECORDING_EXPORT_MAX_READ_BYTES, RETRAIN_REVIEW_ADJUSTED_IOU, RETRAIN_REVIEW_MATCH_IOU, RETRAIN_REVIEW_STATUSES, RETRAIN_REVISION_CONFLICT, SystemMirror, TIMELAPSE_DENSE_FLOOR_SEC, TimelapseRuleSchema, YAMNET_TO_MACRO, alarmDeviceBlocksArming, alarmDeviceSecureOnArm, alarmPatchLanded, canonicalIconKey, buildDeviceEnrollmentLink, buildDeviceSignatureMessage, deviceRefusalFromMessage, isDefinitiveDeviceRefusal, classifyRetrainReview, conditionVisibleForKind, createSystemProxy, droppedConditionsForKind, iconCategoryLabel, iconEntry, iconsInCategory, isIconKey, isHeldBackTemplateVar, isSystemRuleKind, kindsForDiscriminator, locationIconKey, knownValues, nodePickerItems, parseDeviceEnrollmentLink, packagePickerItems, pickerForCondition, pickerForRuleClasses, parseRetrainRevisionConflict, remoteRoleIcon, remoteRoleLabel, remoteRoleLegend, resolveIconKey, resolveModeDelays, retrainBoxIou, retrainRevisionConflictMessage, ruleDeviceCompatCapNames, ruleEditorSectionsForKind, ruleGroupingApplies, ruleKindOf, ruleKindSpec, ruleSeedForSection, searchIcons, sensorTransitionNeverFires, sensorTransitionOffered, stateLabel, summarizeReview, systemEventClassesFor, systemEventClassKinds, systemEventDeliveryProblems, systemEventFilterAppliesToAnyKind, systemEventKindsOfFamily, systemFamilyOfKind, templateCarriesSummary, templateVarDeliveryApplies, templateVarKindApplies, templateVarSystemEventApplies, buildSubjectPath, isDrawableSubjectPath, projectSubjectPath, subjectPathSampleFromBox, subjectPathSvgPoints, expandSystemEventClasses, withSystemEventClasses, bundledCamstack, paintHex, paletteResultSchema, CONTAINER_PRIMARY_CHILD_RULES, primaryChildPreferenceOf, resolveContainerPrimaryChild, } from './index.js';
|
|
18
|
+
export type { ContainerPrimaryChildPreference } from './index.js';
|
|
18
19
|
export type { PaletteReady, PaletteResult, PaletteEntryId, PalettePresetId } from './index.js';
|
|
19
20
|
export type { RemoteRoleVocabEntry, VocabLocale } from './index.js';
|