@awarevue/api-types 2.0.95 → 2.0.96
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/dist/api/agent-protocol/protocol.d.ts +28 -0
- package/dist/api/commands/all.d.ts +42 -0
- package/dist/api/commands/nvr-exporter.d.ts +14 -0
- package/dist/api/commands/nvr-recorder.d.ts +56 -0
- package/dist/api/commands/server.d.ts +14 -0
- package/dist/api/queries/all.d.ts +21 -0
- package/dist/api/queries/nvr-recorder.d.ts +42 -0
- package/dist/objects/device/any-device.d.ts +28 -0
- package/dist/objects/device/any-device.js +33 -18
- package/dist/objects/device/device-import.d.ts +28 -0
- package/dist/package.json +1 -1
- package/dist/primitives.d.ts +14 -0
- package/package.json +1 -1
|
@@ -230,6 +230,13 @@ export declare const sRunCommandRq: z.ZodObject<{
|
|
|
230
230
|
}, z.core.$strip>, z.ZodObject<{
|
|
231
231
|
type: z.ZodLiteral<"presence-tracker">;
|
|
232
232
|
}, z.core.$strip>, z.ZodObject<{
|
|
233
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
234
|
+
card: "card";
|
|
235
|
+
pin: "pin";
|
|
236
|
+
fingerprint: "fingerprint";
|
|
237
|
+
face: "face";
|
|
238
|
+
retina: "retina";
|
|
239
|
+
}>>>;
|
|
233
240
|
type: z.ZodLiteral<"reader">;
|
|
234
241
|
}, z.core.$strip>, z.ZodObject<{
|
|
235
242
|
type: z.ZodLiteral<"display">;
|
|
@@ -351,6 +358,13 @@ export declare const sQueryRq: z.ZodObject<{
|
|
|
351
358
|
}, z.core.$strip>, z.ZodObject<{
|
|
352
359
|
type: z.ZodLiteral<"presence-tracker">;
|
|
353
360
|
}, z.core.$strip>, z.ZodObject<{
|
|
361
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
362
|
+
card: "card";
|
|
363
|
+
pin: "pin";
|
|
364
|
+
fingerprint: "fingerprint";
|
|
365
|
+
face: "face";
|
|
366
|
+
retina: "retina";
|
|
367
|
+
}>>>;
|
|
354
368
|
type: z.ZodLiteral<"reader">;
|
|
355
369
|
}, z.core.$strip>, z.ZodObject<{
|
|
356
370
|
type: z.ZodLiteral<"display">;
|
|
@@ -476,6 +490,13 @@ export declare const sPushFile: z.ZodObject<{
|
|
|
476
490
|
}, z.core.$strip>, z.ZodObject<{
|
|
477
491
|
type: z.ZodLiteral<"presence-tracker">;
|
|
478
492
|
}, z.core.$strip>, z.ZodObject<{
|
|
493
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
494
|
+
card: "card";
|
|
495
|
+
pin: "pin";
|
|
496
|
+
fingerprint: "fingerprint";
|
|
497
|
+
face: "face";
|
|
498
|
+
retina: "retina";
|
|
499
|
+
}>>>;
|
|
479
500
|
type: z.ZodLiteral<"reader">;
|
|
480
501
|
}, z.core.$strip>, z.ZodObject<{
|
|
481
502
|
type: z.ZodLiteral<"display">;
|
|
@@ -612,6 +633,13 @@ export declare const sGetAvailableDevicesRs: z.ZodObject<{
|
|
|
612
633
|
}, z.core.$strip>, z.ZodObject<{
|
|
613
634
|
type: z.ZodLiteral<"presence-tracker">;
|
|
614
635
|
}, z.core.$strip>, z.ZodObject<{
|
|
636
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
637
|
+
card: "card";
|
|
638
|
+
pin: "pin";
|
|
639
|
+
fingerprint: "fingerprint";
|
|
640
|
+
face: "face";
|
|
641
|
+
retina: "retina";
|
|
642
|
+
}>>>;
|
|
615
643
|
type: z.ZodLiteral<"reader">;
|
|
616
644
|
}, z.core.$strip>, z.ZodObject<{
|
|
617
645
|
type: z.ZodLiteral<"display">;
|
|
@@ -125,6 +125,13 @@ export declare const commandSchemas: {
|
|
|
125
125
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
126
126
|
type: import("zod").ZodLiteral<"presence-tracker">;
|
|
127
127
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
128
|
+
credentialTypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
129
|
+
card: "card";
|
|
130
|
+
pin: "pin";
|
|
131
|
+
fingerprint: "fingerprint";
|
|
132
|
+
face: "face";
|
|
133
|
+
retina: "retina";
|
|
134
|
+
}>>>;
|
|
128
135
|
type: import("zod").ZodLiteral<"reader">;
|
|
129
136
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
130
137
|
type: import("zod").ZodLiteral<"display">;
|
|
@@ -250,6 +257,13 @@ export declare const commandSchemas: {
|
|
|
250
257
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
251
258
|
type: import("zod").ZodLiteral<"presence-tracker">;
|
|
252
259
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
260
|
+
credentialTypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
261
|
+
card: "card";
|
|
262
|
+
pin: "pin";
|
|
263
|
+
fingerprint: "fingerprint";
|
|
264
|
+
face: "face";
|
|
265
|
+
retina: "retina";
|
|
266
|
+
}>>>;
|
|
253
267
|
type: import("zod").ZodLiteral<"reader">;
|
|
254
268
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
255
269
|
type: import("zod").ZodLiteral<"display">;
|
|
@@ -375,6 +389,13 @@ export declare const commandSchemas: {
|
|
|
375
389
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
376
390
|
type: import("zod").ZodLiteral<"presence-tracker">;
|
|
377
391
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
392
|
+
credentialTypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
393
|
+
card: "card";
|
|
394
|
+
pin: "pin";
|
|
395
|
+
fingerprint: "fingerprint";
|
|
396
|
+
face: "face";
|
|
397
|
+
retina: "retina";
|
|
398
|
+
}>>>;
|
|
378
399
|
type: import("zod").ZodLiteral<"reader">;
|
|
379
400
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
380
401
|
type: import("zod").ZodLiteral<"display">;
|
|
@@ -491,6 +512,13 @@ export declare const commandSchemas: {
|
|
|
491
512
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
492
513
|
type: import("zod").ZodLiteral<"presence-tracker">;
|
|
493
514
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
515
|
+
credentialTypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
516
|
+
card: "card";
|
|
517
|
+
pin: "pin";
|
|
518
|
+
fingerprint: "fingerprint";
|
|
519
|
+
face: "face";
|
|
520
|
+
retina: "retina";
|
|
521
|
+
}>>>;
|
|
494
522
|
type: import("zod").ZodLiteral<"reader">;
|
|
495
523
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
496
524
|
type: import("zod").ZodLiteral<"display">;
|
|
@@ -607,6 +635,13 @@ export declare const commandSchemas: {
|
|
|
607
635
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
608
636
|
type: import("zod").ZodLiteral<"presence-tracker">;
|
|
609
637
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
638
|
+
credentialTypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
639
|
+
card: "card";
|
|
640
|
+
pin: "pin";
|
|
641
|
+
fingerprint: "fingerprint";
|
|
642
|
+
face: "face";
|
|
643
|
+
retina: "retina";
|
|
644
|
+
}>>>;
|
|
610
645
|
type: import("zod").ZodLiteral<"reader">;
|
|
611
646
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
612
647
|
type: import("zod").ZodLiteral<"display">;
|
|
@@ -726,6 +761,13 @@ export declare const commandSchemas: {
|
|
|
726
761
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
727
762
|
type: import("zod").ZodLiteral<"presence-tracker">;
|
|
728
763
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
764
|
+
credentialTypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
765
|
+
card: "card";
|
|
766
|
+
pin: "pin";
|
|
767
|
+
fingerprint: "fingerprint";
|
|
768
|
+
face: "face";
|
|
769
|
+
retina: "retina";
|
|
770
|
+
}>>>;
|
|
729
771
|
type: import("zod").ZodLiteral<"reader">;
|
|
730
772
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
731
773
|
type: import("zod").ZodLiteral<"display">;
|
|
@@ -101,6 +101,13 @@ export declare const sStartExportCommand: z.ZodObject<{
|
|
|
101
101
|
}, z.core.$strip>, z.ZodObject<{
|
|
102
102
|
type: z.ZodLiteral<"presence-tracker">;
|
|
103
103
|
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
105
|
+
card: "card";
|
|
106
|
+
pin: "pin";
|
|
107
|
+
fingerprint: "fingerprint";
|
|
108
|
+
face: "face";
|
|
109
|
+
retina: "retina";
|
|
110
|
+
}>>>;
|
|
104
111
|
type: z.ZodLiteral<"reader">;
|
|
105
112
|
}, z.core.$strip>, z.ZodObject<{
|
|
106
113
|
type: z.ZodLiteral<"display">;
|
|
@@ -231,6 +238,13 @@ export declare const nvrExporterCommandSchemas: {
|
|
|
231
238
|
}, z.core.$strip>, z.ZodObject<{
|
|
232
239
|
type: z.ZodLiteral<"presence-tracker">;
|
|
233
240
|
}, z.core.$strip>, z.ZodObject<{
|
|
241
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
242
|
+
card: "card";
|
|
243
|
+
pin: "pin";
|
|
244
|
+
fingerprint: "fingerprint";
|
|
245
|
+
face: "face";
|
|
246
|
+
retina: "retina";
|
|
247
|
+
}>>>;
|
|
234
248
|
type: z.ZodLiteral<"reader">;
|
|
235
249
|
}, z.core.$strip>, z.ZodObject<{
|
|
236
250
|
type: z.ZodLiteral<"display">;
|
|
@@ -100,6 +100,13 @@ export declare const sMountStreamCommand: z.ZodObject<{
|
|
|
100
100
|
}, z.core.$strip>, z.ZodObject<{
|
|
101
101
|
type: z.ZodLiteral<"presence-tracker">;
|
|
102
102
|
}, z.core.$strip>, z.ZodObject<{
|
|
103
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
104
|
+
card: "card";
|
|
105
|
+
pin: "pin";
|
|
106
|
+
fingerprint: "fingerprint";
|
|
107
|
+
face: "face";
|
|
108
|
+
retina: "retina";
|
|
109
|
+
}>>>;
|
|
103
110
|
type: z.ZodLiteral<"reader">;
|
|
104
111
|
}, z.core.$strip>, z.ZodObject<{
|
|
105
112
|
type: z.ZodLiteral<"display">;
|
|
@@ -220,6 +227,13 @@ export declare const sUnmountStreamCommand: z.ZodObject<{
|
|
|
220
227
|
}, z.core.$strip>, z.ZodObject<{
|
|
221
228
|
type: z.ZodLiteral<"presence-tracker">;
|
|
222
229
|
}, z.core.$strip>, z.ZodObject<{
|
|
230
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
231
|
+
card: "card";
|
|
232
|
+
pin: "pin";
|
|
233
|
+
fingerprint: "fingerprint";
|
|
234
|
+
face: "face";
|
|
235
|
+
retina: "retina";
|
|
236
|
+
}>>>;
|
|
223
237
|
type: z.ZodLiteral<"reader">;
|
|
224
238
|
}, z.core.$strip>, z.ZodObject<{
|
|
225
239
|
type: z.ZodLiteral<"display">;
|
|
@@ -337,6 +351,13 @@ export declare const sStartRecordingCommand: z.ZodObject<{
|
|
|
337
351
|
}, z.core.$strip>, z.ZodObject<{
|
|
338
352
|
type: z.ZodLiteral<"presence-tracker">;
|
|
339
353
|
}, z.core.$strip>, z.ZodObject<{
|
|
354
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
355
|
+
card: "card";
|
|
356
|
+
pin: "pin";
|
|
357
|
+
fingerprint: "fingerprint";
|
|
358
|
+
face: "face";
|
|
359
|
+
retina: "retina";
|
|
360
|
+
}>>>;
|
|
340
361
|
type: z.ZodLiteral<"reader">;
|
|
341
362
|
}, z.core.$strip>, z.ZodObject<{
|
|
342
363
|
type: z.ZodLiteral<"display">;
|
|
@@ -454,6 +475,13 @@ export declare const sStopRecordingCommand: z.ZodObject<{
|
|
|
454
475
|
}, z.core.$strip>, z.ZodObject<{
|
|
455
476
|
type: z.ZodLiteral<"presence-tracker">;
|
|
456
477
|
}, z.core.$strip>, z.ZodObject<{
|
|
478
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
479
|
+
card: "card";
|
|
480
|
+
pin: "pin";
|
|
481
|
+
fingerprint: "fingerprint";
|
|
482
|
+
face: "face";
|
|
483
|
+
retina: "retina";
|
|
484
|
+
}>>>;
|
|
457
485
|
type: z.ZodLiteral<"reader">;
|
|
458
486
|
}, z.core.$strip>, z.ZodObject<{
|
|
459
487
|
type: z.ZodLiteral<"display">;
|
|
@@ -573,6 +601,13 @@ export declare const nvrRecorderCommandSchemas: {
|
|
|
573
601
|
}, z.core.$strip>, z.ZodObject<{
|
|
574
602
|
type: z.ZodLiteral<"presence-tracker">;
|
|
575
603
|
}, z.core.$strip>, z.ZodObject<{
|
|
604
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
605
|
+
card: "card";
|
|
606
|
+
pin: "pin";
|
|
607
|
+
fingerprint: "fingerprint";
|
|
608
|
+
face: "face";
|
|
609
|
+
retina: "retina";
|
|
610
|
+
}>>>;
|
|
576
611
|
type: z.ZodLiteral<"reader">;
|
|
577
612
|
}, z.core.$strip>, z.ZodObject<{
|
|
578
613
|
type: z.ZodLiteral<"display">;
|
|
@@ -689,6 +724,13 @@ export declare const nvrRecorderCommandSchemas: {
|
|
|
689
724
|
}, z.core.$strip>, z.ZodObject<{
|
|
690
725
|
type: z.ZodLiteral<"presence-tracker">;
|
|
691
726
|
}, z.core.$strip>, z.ZodObject<{
|
|
727
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
728
|
+
card: "card";
|
|
729
|
+
pin: "pin";
|
|
730
|
+
fingerprint: "fingerprint";
|
|
731
|
+
face: "face";
|
|
732
|
+
retina: "retina";
|
|
733
|
+
}>>>;
|
|
692
734
|
type: z.ZodLiteral<"reader">;
|
|
693
735
|
}, z.core.$strip>, z.ZodObject<{
|
|
694
736
|
type: z.ZodLiteral<"display">;
|
|
@@ -805,6 +847,13 @@ export declare const nvrRecorderCommandSchemas: {
|
|
|
805
847
|
}, z.core.$strip>, z.ZodObject<{
|
|
806
848
|
type: z.ZodLiteral<"presence-tracker">;
|
|
807
849
|
}, z.core.$strip>, z.ZodObject<{
|
|
850
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
851
|
+
card: "card";
|
|
852
|
+
pin: "pin";
|
|
853
|
+
fingerprint: "fingerprint";
|
|
854
|
+
face: "face";
|
|
855
|
+
retina: "retina";
|
|
856
|
+
}>>>;
|
|
808
857
|
type: z.ZodLiteral<"reader">;
|
|
809
858
|
}, z.core.$strip>, z.ZodObject<{
|
|
810
859
|
type: z.ZodLiteral<"display">;
|
|
@@ -924,6 +973,13 @@ export declare const nvrRecorderCommandSchemas: {
|
|
|
924
973
|
}, z.core.$strip>, z.ZodObject<{
|
|
925
974
|
type: z.ZodLiteral<"presence-tracker">;
|
|
926
975
|
}, z.core.$strip>, z.ZodObject<{
|
|
976
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
977
|
+
card: "card";
|
|
978
|
+
pin: "pin";
|
|
979
|
+
fingerprint: "fingerprint";
|
|
980
|
+
face: "face";
|
|
981
|
+
retina: "retina";
|
|
982
|
+
}>>>;
|
|
927
983
|
type: z.ZodLiteral<"reader">;
|
|
928
984
|
}, z.core.$strip>, z.ZodObject<{
|
|
929
985
|
type: z.ZodLiteral<"display">;
|
|
@@ -106,6 +106,13 @@ export declare const sNotify: z.ZodObject<{
|
|
|
106
106
|
}, z.core.$strip>, z.ZodObject<{
|
|
107
107
|
type: z.ZodLiteral<"presence-tracker">;
|
|
108
108
|
}, z.core.$strip>, z.ZodObject<{
|
|
109
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
110
|
+
card: "card";
|
|
111
|
+
pin: "pin";
|
|
112
|
+
fingerprint: "fingerprint";
|
|
113
|
+
face: "face";
|
|
114
|
+
retina: "retina";
|
|
115
|
+
}>>>;
|
|
109
116
|
type: z.ZodLiteral<"reader">;
|
|
110
117
|
}, z.core.$strip>, z.ZodObject<{
|
|
111
118
|
type: z.ZodLiteral<"display">;
|
|
@@ -239,6 +246,13 @@ export declare const serverCommands: {
|
|
|
239
246
|
}, z.core.$strip>, z.ZodObject<{
|
|
240
247
|
type: z.ZodLiteral<"presence-tracker">;
|
|
241
248
|
}, z.core.$strip>, z.ZodObject<{
|
|
249
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
250
|
+
card: "card";
|
|
251
|
+
pin: "pin";
|
|
252
|
+
fingerprint: "fingerprint";
|
|
253
|
+
face: "face";
|
|
254
|
+
retina: "retina";
|
|
255
|
+
}>>>;
|
|
242
256
|
type: z.ZodLiteral<"reader">;
|
|
243
257
|
}, z.core.$strip>, z.ZodObject<{
|
|
244
258
|
type: z.ZodLiteral<"display">;
|
|
@@ -167,6 +167,13 @@ export declare const requestSchemasByType: {
|
|
|
167
167
|
}, z.core.$strip>, z.ZodObject<{
|
|
168
168
|
type: z.ZodLiteral<"presence-tracker">;
|
|
169
169
|
}, z.core.$strip>, z.ZodObject<{
|
|
170
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
171
|
+
card: "card";
|
|
172
|
+
pin: "pin";
|
|
173
|
+
fingerprint: "fingerprint";
|
|
174
|
+
face: "face";
|
|
175
|
+
retina: "retina";
|
|
176
|
+
}>>>;
|
|
170
177
|
type: z.ZodLiteral<"reader">;
|
|
171
178
|
}, z.core.$strip>, z.ZodObject<{
|
|
172
179
|
type: z.ZodLiteral<"display">;
|
|
@@ -282,6 +289,13 @@ export declare const requestSchemasByType: {
|
|
|
282
289
|
}, z.core.$strip>, z.ZodObject<{
|
|
283
290
|
type: z.ZodLiteral<"presence-tracker">;
|
|
284
291
|
}, z.core.$strip>, z.ZodObject<{
|
|
292
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
293
|
+
card: "card";
|
|
294
|
+
pin: "pin";
|
|
295
|
+
fingerprint: "fingerprint";
|
|
296
|
+
face: "face";
|
|
297
|
+
retina: "retina";
|
|
298
|
+
}>>>;
|
|
285
299
|
type: z.ZodLiteral<"reader">;
|
|
286
300
|
}, z.core.$strip>, z.ZodObject<{
|
|
287
301
|
type: z.ZodLiteral<"display">;
|
|
@@ -397,6 +411,13 @@ export declare const requestSchemasByType: {
|
|
|
397
411
|
}, z.core.$strip>, z.ZodObject<{
|
|
398
412
|
type: z.ZodLiteral<"presence-tracker">;
|
|
399
413
|
}, z.core.$strip>, z.ZodObject<{
|
|
414
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
415
|
+
card: "card";
|
|
416
|
+
pin: "pin";
|
|
417
|
+
fingerprint: "fingerprint";
|
|
418
|
+
face: "face";
|
|
419
|
+
retina: "retina";
|
|
420
|
+
}>>>;
|
|
400
421
|
type: z.ZodLiteral<"reader">;
|
|
401
422
|
}, z.core.$strip>, z.ZodObject<{
|
|
402
423
|
type: z.ZodLiteral<"display">;
|
|
@@ -99,6 +99,13 @@ export declare const sRecordingsByTimeRangeArgs: z.ZodObject<{
|
|
|
99
99
|
}, z.core.$strip>, z.ZodObject<{
|
|
100
100
|
type: z.ZodLiteral<"presence-tracker">;
|
|
101
101
|
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
103
|
+
card: "card";
|
|
104
|
+
pin: "pin";
|
|
105
|
+
fingerprint: "fingerprint";
|
|
106
|
+
face: "face";
|
|
107
|
+
retina: "retina";
|
|
108
|
+
}>>>;
|
|
102
109
|
type: z.ZodLiteral<"reader">;
|
|
103
110
|
}, z.core.$strip>, z.ZodObject<{
|
|
104
111
|
type: z.ZodLiteral<"display">;
|
|
@@ -223,6 +230,13 @@ export declare const sPreviewImageArgs: z.ZodObject<{
|
|
|
223
230
|
}, z.core.$strip>, z.ZodObject<{
|
|
224
231
|
type: z.ZodLiteral<"presence-tracker">;
|
|
225
232
|
}, z.core.$strip>, z.ZodObject<{
|
|
233
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
234
|
+
card: "card";
|
|
235
|
+
pin: "pin";
|
|
236
|
+
fingerprint: "fingerprint";
|
|
237
|
+
face: "face";
|
|
238
|
+
retina: "retina";
|
|
239
|
+
}>>>;
|
|
226
240
|
type: z.ZodLiteral<"reader">;
|
|
227
241
|
}, z.core.$strip>, z.ZodObject<{
|
|
228
242
|
type: z.ZodLiteral<"display">;
|
|
@@ -345,6 +359,13 @@ export declare const sCameraLatestFrameArgs: z.ZodObject<{
|
|
|
345
359
|
}, z.core.$strip>, z.ZodObject<{
|
|
346
360
|
type: z.ZodLiteral<"presence-tracker">;
|
|
347
361
|
}, z.core.$strip>, z.ZodObject<{
|
|
362
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
363
|
+
card: "card";
|
|
364
|
+
pin: "pin";
|
|
365
|
+
fingerprint: "fingerprint";
|
|
366
|
+
face: "face";
|
|
367
|
+
retina: "retina";
|
|
368
|
+
}>>>;
|
|
348
369
|
type: z.ZodLiteral<"reader">;
|
|
349
370
|
}, z.core.$strip>, z.ZodObject<{
|
|
350
371
|
type: z.ZodLiteral<"display">;
|
|
@@ -467,6 +488,13 @@ export declare const nvrRecorderRequestSchemas: {
|
|
|
467
488
|
}, z.core.$strip>, z.ZodObject<{
|
|
468
489
|
type: z.ZodLiteral<"presence-tracker">;
|
|
469
490
|
}, z.core.$strip>, z.ZodObject<{
|
|
491
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
492
|
+
card: "card";
|
|
493
|
+
pin: "pin";
|
|
494
|
+
fingerprint: "fingerprint";
|
|
495
|
+
face: "face";
|
|
496
|
+
retina: "retina";
|
|
497
|
+
}>>>;
|
|
470
498
|
type: z.ZodLiteral<"reader">;
|
|
471
499
|
}, z.core.$strip>, z.ZodObject<{
|
|
472
500
|
type: z.ZodLiteral<"display">;
|
|
@@ -582,6 +610,13 @@ export declare const nvrRecorderRequestSchemas: {
|
|
|
582
610
|
}, z.core.$strip>, z.ZodObject<{
|
|
583
611
|
type: z.ZodLiteral<"presence-tracker">;
|
|
584
612
|
}, z.core.$strip>, z.ZodObject<{
|
|
613
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
614
|
+
card: "card";
|
|
615
|
+
pin: "pin";
|
|
616
|
+
fingerprint: "fingerprint";
|
|
617
|
+
face: "face";
|
|
618
|
+
retina: "retina";
|
|
619
|
+
}>>>;
|
|
585
620
|
type: z.ZodLiteral<"reader">;
|
|
586
621
|
}, z.core.$strip>, z.ZodObject<{
|
|
587
622
|
type: z.ZodLiteral<"display">;
|
|
@@ -697,6 +732,13 @@ export declare const nvrRecorderRequestSchemas: {
|
|
|
697
732
|
}, z.core.$strip>, z.ZodObject<{
|
|
698
733
|
type: z.ZodLiteral<"presence-tracker">;
|
|
699
734
|
}, z.core.$strip>, z.ZodObject<{
|
|
735
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
736
|
+
card: "card";
|
|
737
|
+
pin: "pin";
|
|
738
|
+
fingerprint: "fingerprint";
|
|
739
|
+
face: "face";
|
|
740
|
+
retina: "retina";
|
|
741
|
+
}>>>;
|
|
700
742
|
type: z.ZodLiteral<"reader">;
|
|
701
743
|
}, z.core.$strip>, z.ZodObject<{
|
|
702
744
|
type: z.ZodLiteral<"display">;
|
|
@@ -138,6 +138,13 @@ export declare const sAnyDeviceSpecs: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
138
138
|
}, z.core.$strip>, z.ZodObject<{
|
|
139
139
|
type: z.ZodLiteral<"presence-tracker">;
|
|
140
140
|
}, z.core.$strip>, z.ZodObject<{
|
|
141
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
142
|
+
card: "card";
|
|
143
|
+
pin: "pin";
|
|
144
|
+
fingerprint: "fingerprint";
|
|
145
|
+
face: "face";
|
|
146
|
+
retina: "retina";
|
|
147
|
+
}>>>;
|
|
141
148
|
type: z.ZodLiteral<"reader">;
|
|
142
149
|
}, z.core.$strip>, z.ZodObject<{
|
|
143
150
|
type: z.ZodLiteral<"display">;
|
|
@@ -293,6 +300,13 @@ export declare const sDeviceDto: z.ZodIntersection<z.ZodIntersection<z.ZodDiscri
|
|
|
293
300
|
}, z.core.$strip>, z.ZodObject<{
|
|
294
301
|
type: z.ZodLiteral<"presence-tracker">;
|
|
295
302
|
}, z.core.$strip>, z.ZodObject<{
|
|
303
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
304
|
+
card: "card";
|
|
305
|
+
pin: "pin";
|
|
306
|
+
fingerprint: "fingerprint";
|
|
307
|
+
face: "face";
|
|
308
|
+
retina: "retina";
|
|
309
|
+
}>>>;
|
|
296
310
|
type: z.ZodLiteral<"reader">;
|
|
297
311
|
}, z.core.$strip>, z.ZodObject<{
|
|
298
312
|
type: z.ZodLiteral<"display">;
|
|
@@ -502,6 +516,13 @@ export declare const sDoorDto: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
|
502
516
|
providerMetadata: z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>;
|
|
503
517
|
}, z.core.$strip>>;
|
|
504
518
|
export declare const sReaderDto: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
519
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
520
|
+
card: "card";
|
|
521
|
+
pin: "pin";
|
|
522
|
+
fingerprint: "fingerprint";
|
|
523
|
+
face: "face";
|
|
524
|
+
retina: "retina";
|
|
525
|
+
}>>>;
|
|
505
526
|
type: z.ZodLiteral<"reader">;
|
|
506
527
|
}, z.core.$strip>, z.ZodObject<{
|
|
507
528
|
id: z.ZodString;
|
|
@@ -1623,6 +1644,13 @@ export declare const deviceDtoSchemaMap: {
|
|
|
1623
1644
|
providerMetadata: z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>;
|
|
1624
1645
|
}, z.core.$strip>>;
|
|
1625
1646
|
readonly reader: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
1647
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1648
|
+
card: "card";
|
|
1649
|
+
pin: "pin";
|
|
1650
|
+
fingerprint: "fingerprint";
|
|
1651
|
+
face: "face";
|
|
1652
|
+
retina: "retina";
|
|
1653
|
+
}>>>;
|
|
1626
1654
|
type: z.ZodLiteral<"reader">;
|
|
1627
1655
|
}, z.core.$strip>, z.ZodObject<{
|
|
1628
1656
|
id: z.ZodString;
|
|
@@ -21,6 +21,7 @@ const nvr_recorder_1 = require("./nvr-recorder");
|
|
|
21
21
|
const nvr_exporter_1 = require("./nvr-exporter");
|
|
22
22
|
const nvr_analytics_server_1 = require("./nvr-analytics-server");
|
|
23
23
|
const system_1 = require("./system");
|
|
24
|
+
const reader_1 = require("./reader");
|
|
24
25
|
exports.DEVICE_TYPES = [
|
|
25
26
|
alarm_1.ALARM,
|
|
26
27
|
server_1.SERVER,
|
|
@@ -43,15 +44,25 @@ exports.DEVICE_TYPES = [
|
|
|
43
44
|
system_1.SYSTEM,
|
|
44
45
|
];
|
|
45
46
|
exports.sDeviceType = zod_1.z.enum(exports.DEVICE_TYPES);
|
|
46
|
-
const sAlarmSpecsWithType = alarm_1.sAlarmSpecs.
|
|
47
|
-
const sCameraSpecsWithType = camera_1.sCameraSpecs.
|
|
48
|
-
const sDoorSpecsWithType = door_1.sDoorSpecs.
|
|
49
|
-
const sIoBoardSpecsWithType = io_board_1.sIoBoardSpecs.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
const sAlarmSpecsWithType = alarm_1.sAlarmSpecs.extend({ type: zod_1.z.literal(alarm_1.ALARM) });
|
|
48
|
+
const sCameraSpecsWithType = camera_1.sCameraSpecs.extend({ type: zod_1.z.literal(camera_1.CAMERA) });
|
|
49
|
+
const sDoorSpecsWithType = door_1.sDoorSpecs.extend({ type: zod_1.z.literal(door_1.DOOR) });
|
|
50
|
+
const sIoBoardSpecsWithType = io_board_1.sIoBoardSpecs.extend({
|
|
51
|
+
type: zod_1.z.literal(io_board_1.IO_BOARD),
|
|
52
|
+
});
|
|
53
|
+
const sCameraLiftSpecsWithType = camera_lift_1.sCameraLiftSpecs.extend({
|
|
54
|
+
type: zod_1.z.literal(camera_lift_1.CAMERA_LIFT),
|
|
55
|
+
});
|
|
56
|
+
const sMotionSensorSpecsWithType = motion_sensor_1.sMotionSensorSpecs.extend({
|
|
57
|
+
type: zod_1.z.literal(motion_sensor_1.MOTION_SENSOR),
|
|
58
|
+
});
|
|
59
|
+
const sPanicButtonSpecsWithType = panic_button_1.sPanicButtonSpecs.extend({
|
|
60
|
+
type: zod_1.z.literal(panic_button_1.PANIC_BUTTON),
|
|
61
|
+
});
|
|
62
|
+
const sIntercomTerminalSpecsWithType = intercom_terminal_1.sIntercomTerminalSpecs.extend({
|
|
63
|
+
type: zod_1.z.literal(intercom_terminal_1.INTERCOM_TERMINAL),
|
|
64
|
+
});
|
|
65
|
+
const sPbxSpecsWithType = pbx_1.sPbxSpecs.extend({ type: zod_1.z.literal(pbx_1.PBX) });
|
|
55
66
|
const sServerSpecsWithType = zod_1.z.object({ type: zod_1.z.literal(server_1.SERVER) });
|
|
56
67
|
const sIntercomOperatorSpecsWithType = zod_1.z.object({
|
|
57
68
|
type: zod_1.z.literal(intercom_operator_1.INTERCOM_OPERATOR),
|
|
@@ -62,18 +73,22 @@ const sDeviceGatewaySpecsWithType = zod_1.z.object({
|
|
|
62
73
|
const sPresenceTrackerSpecsWithType = zod_1.z.object({
|
|
63
74
|
type: zod_1.z.literal(presence_tracker_1.PRESENCE_TRACKER),
|
|
64
75
|
});
|
|
65
|
-
const sReaderSpecsWithType =
|
|
76
|
+
const sReaderSpecsWithType = reader_1.sReaderSpecs.extend({
|
|
77
|
+
type: zod_1.z.literal('reader'),
|
|
78
|
+
});
|
|
66
79
|
exports.sDisplaySpecsWithType = zod_1.z.object({ type: zod_1.z.literal(display_1.DISPLAY) });
|
|
67
|
-
exports.sRecorderSpecsWithType = nvr_recorder_1.sRecorderSpecs.
|
|
68
|
-
|
|
80
|
+
exports.sRecorderSpecsWithType = nvr_recorder_1.sRecorderSpecs.extend({
|
|
81
|
+
type: zod_1.z.literal(nvr_recorder_1.NVR_RECORDER),
|
|
82
|
+
});
|
|
83
|
+
exports.sNvrExporterSpecsWithType = nvr_exporter_1.sExporterSpecs.extend({
|
|
69
84
|
type: zod_1.z.literal(nvr_exporter_1.NVR_EXPORTER),
|
|
70
|
-
})
|
|
71
|
-
exports.sNvrAnalyticsServerSpecsWithType = nvr_analytics_server_1.sAnalyticsServerSpecs.
|
|
85
|
+
});
|
|
86
|
+
exports.sNvrAnalyticsServerSpecsWithType = nvr_analytics_server_1.sAnalyticsServerSpecs.extend({
|
|
72
87
|
type: zod_1.z.literal(nvr_analytics_server_1.NVR_ANALYTICS_SERVER),
|
|
73
|
-
})
|
|
74
|
-
exports.sSystemDeviceSpecsWithType =
|
|
75
|
-
|
|
76
|
-
|
|
88
|
+
});
|
|
89
|
+
exports.sSystemDeviceSpecsWithType = system_1.sSystemDeviceSpecs.extend({
|
|
90
|
+
type: zod_1.z.literal(system_1.SYSTEM),
|
|
91
|
+
});
|
|
77
92
|
exports.sAnyDeviceSpecs = zod_1.z.discriminatedUnion('type', [
|
|
78
93
|
sAlarmSpecsWithType,
|
|
79
94
|
sCameraSpecsWithType,
|
|
@@ -91,6 +91,13 @@ export declare const sImportedDevice: z.ZodIntersection<z.ZodIntersection<z.ZodO
|
|
|
91
91
|
}, z.core.$strip>, z.ZodObject<{
|
|
92
92
|
type: z.ZodLiteral<"presence-tracker">;
|
|
93
93
|
}, z.core.$strip>, z.ZodObject<{
|
|
94
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
95
|
+
card: "card";
|
|
96
|
+
pin: "pin";
|
|
97
|
+
fingerprint: "fingerprint";
|
|
98
|
+
face: "face";
|
|
99
|
+
retina: "retina";
|
|
100
|
+
}>>>;
|
|
94
101
|
type: z.ZodLiteral<"reader">;
|
|
95
102
|
}, z.core.$strip>, z.ZodObject<{
|
|
96
103
|
type: z.ZodLiteral<"display">;
|
|
@@ -199,6 +206,13 @@ export declare const sDeviceDiscoveryDto: z.ZodObject<{
|
|
|
199
206
|
}, z.core.$strip>, z.ZodObject<{
|
|
200
207
|
type: z.ZodLiteral<"presence-tracker">;
|
|
201
208
|
}, z.core.$strip>, z.ZodObject<{
|
|
209
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
210
|
+
card: "card";
|
|
211
|
+
pin: "pin";
|
|
212
|
+
fingerprint: "fingerprint";
|
|
213
|
+
face: "face";
|
|
214
|
+
retina: "retina";
|
|
215
|
+
}>>>;
|
|
202
216
|
type: z.ZodLiteral<"reader">;
|
|
203
217
|
}, z.core.$strip>, z.ZodObject<{
|
|
204
218
|
type: z.ZodLiteral<"display">;
|
|
@@ -364,6 +378,13 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
|
|
|
364
378
|
}, z.core.$strip>, z.ZodObject<{
|
|
365
379
|
type: z.ZodLiteral<"presence-tracker">;
|
|
366
380
|
}, z.core.$strip>, z.ZodObject<{
|
|
381
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
382
|
+
card: "card";
|
|
383
|
+
pin: "pin";
|
|
384
|
+
fingerprint: "fingerprint";
|
|
385
|
+
face: "face";
|
|
386
|
+
retina: "retina";
|
|
387
|
+
}>>>;
|
|
367
388
|
type: z.ZodLiteral<"reader">;
|
|
368
389
|
}, z.core.$strip>, z.ZodObject<{
|
|
369
390
|
type: z.ZodLiteral<"display">;
|
|
@@ -465,6 +486,13 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
|
|
|
465
486
|
}, z.core.$strip>, z.ZodObject<{
|
|
466
487
|
type: z.ZodLiteral<"presence-tracker">;
|
|
467
488
|
}, z.core.$strip>, z.ZodObject<{
|
|
489
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
490
|
+
card: "card";
|
|
491
|
+
pin: "pin";
|
|
492
|
+
fingerprint: "fingerprint";
|
|
493
|
+
face: "face";
|
|
494
|
+
retina: "retina";
|
|
495
|
+
}>>>;
|
|
468
496
|
type: z.ZodLiteral<"reader">;
|
|
469
497
|
}, z.core.$strip>, z.ZodObject<{
|
|
470
498
|
type: z.ZodLiteral<"display">;
|
package/dist/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.0.
|
|
7
|
+
"version": "2.0.96",
|
|
8
8
|
"description": "Common types between backend, agent(s) and frontend(s)",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"types": "dist/index.d.ts",
|
package/dist/primitives.d.ts
CHANGED
|
@@ -123,6 +123,13 @@ export declare const sAgentDeviceInfo: z.ZodIntersection<z.ZodObject<{
|
|
|
123
123
|
}, z.core.$strip>, z.ZodObject<{
|
|
124
124
|
type: z.ZodLiteral<"presence-tracker">;
|
|
125
125
|
}, z.core.$strip>, z.ZodObject<{
|
|
126
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
127
|
+
card: "card";
|
|
128
|
+
pin: "pin";
|
|
129
|
+
fingerprint: "fingerprint";
|
|
130
|
+
face: "face";
|
|
131
|
+
retina: "retina";
|
|
132
|
+
}>>>;
|
|
126
133
|
type: z.ZodLiteral<"reader">;
|
|
127
134
|
}, z.core.$strip>, z.ZodObject<{
|
|
128
135
|
type: z.ZodLiteral<"display">;
|
|
@@ -235,6 +242,13 @@ export declare const sDeviceParam: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodInt
|
|
|
235
242
|
}, z.core.$strip>, z.ZodObject<{
|
|
236
243
|
type: z.ZodLiteral<"presence-tracker">;
|
|
237
244
|
}, z.core.$strip>, z.ZodObject<{
|
|
245
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
246
|
+
card: "card";
|
|
247
|
+
pin: "pin";
|
|
248
|
+
fingerprint: "fingerprint";
|
|
249
|
+
face: "face";
|
|
250
|
+
retina: "retina";
|
|
251
|
+
}>>>;
|
|
238
252
|
type: z.ZodLiteral<"reader">;
|
|
239
253
|
}, z.core.$strip>, z.ZodObject<{
|
|
240
254
|
type: z.ZodLiteral<"display">;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.0.
|
|
7
|
+
"version": "2.0.96",
|
|
8
8
|
"description": "Common types between backend, agent(s) and frontend(s)",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"types": "dist/index.d.ts",
|