@awarevue/api-types 2.0.5 → 2.0.6
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/agent-communication/protocol.d.ts +18 -216
- package/dist/agent-communication/queries.d.ts +18 -216
- package/dist/device/nvr-exporter.d.ts +20 -192
- package/dist/device/nvr-recorder.d.ts +36 -432
- package/dist/device-command.d.ts +10 -96
- package/dist/package.json +1 -1
- package/dist/primitives.d.ts +4 -96
- package/dist/primitives.js +1 -1
- package/package.json +1 -1
package/dist/device-command.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare const commandSchemas: {
|
|
|
24
24
|
command: import("zod").ZodLiteral<"nvr-exporter.start-export">;
|
|
25
25
|
params: import("zod").ZodObject<{
|
|
26
26
|
requestId: import("zod").ZodString;
|
|
27
|
-
device: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodIntersection<import("zod").
|
|
27
|
+
device: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
28
28
|
name: import("zod").ZodString;
|
|
29
29
|
foreignRef: import("zod").ZodString;
|
|
30
30
|
provider: import("zod").ZodString;
|
|
@@ -270,60 +270,14 @@ export declare const commandSchemas: {
|
|
|
270
270
|
type: "nvr-analytics-server";
|
|
271
271
|
}, {
|
|
272
272
|
type: "nvr-analytics-server";
|
|
273
|
-
}>]
|
|
274
|
-
presets: import("zod").ZodArray<import("zod").ZodObject<{
|
|
275
|
-
id: import("zod").ZodString;
|
|
276
|
-
name: import("zod").ZodString;
|
|
277
|
-
params: import("zod").ZodUnknown;
|
|
278
|
-
isDefault: import("zod").ZodBoolean;
|
|
279
|
-
assignedRef: import("zod").ZodNullable<import("zod").ZodString>;
|
|
280
|
-
createdOn: import("zod").ZodString;
|
|
281
|
-
lastModifiedOn: import("zod").ZodString;
|
|
282
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
283
|
-
name: string;
|
|
284
|
-
id: string;
|
|
285
|
-
isDefault: boolean;
|
|
286
|
-
assignedRef: string | null;
|
|
287
|
-
createdOn: string;
|
|
288
|
-
lastModifiedOn: string;
|
|
289
|
-
params?: unknown;
|
|
290
|
-
}, {
|
|
291
|
-
name: string;
|
|
292
|
-
id: string;
|
|
293
|
-
isDefault: boolean;
|
|
294
|
-
assignedRef: string | null;
|
|
295
|
-
createdOn: string;
|
|
296
|
-
lastModifiedOn: string;
|
|
297
|
-
params?: unknown;
|
|
298
|
-
}>, "many">;
|
|
299
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
300
|
-
presets: {
|
|
301
|
-
name: string;
|
|
302
|
-
id: string;
|
|
303
|
-
isDefault: boolean;
|
|
304
|
-
assignedRef: string | null;
|
|
305
|
-
createdOn: string;
|
|
306
|
-
lastModifiedOn: string;
|
|
307
|
-
params?: unknown;
|
|
308
|
-
}[];
|
|
309
|
-
}, {
|
|
310
|
-
presets: {
|
|
311
|
-
name: string;
|
|
312
|
-
id: string;
|
|
313
|
-
isDefault: boolean;
|
|
314
|
-
assignedRef: string | null;
|
|
315
|
-
createdOn: string;
|
|
316
|
-
lastModifiedOn: string;
|
|
317
|
-
params?: unknown;
|
|
318
|
-
}[];
|
|
319
|
-
}>>]>;
|
|
273
|
+
}>]>>]>;
|
|
320
274
|
timeFrom: import("zod").ZodNumber;
|
|
321
275
|
timeTo: import("zod").ZodNumber;
|
|
322
276
|
name: import("zod").ZodString;
|
|
323
277
|
}, "strip", import("zod").ZodTypeAny, {
|
|
324
278
|
name: string;
|
|
325
279
|
requestId: string;
|
|
326
|
-
device: string | (
|
|
280
|
+
device: string | ({
|
|
327
281
|
name: string;
|
|
328
282
|
foreignRef: string;
|
|
329
283
|
provider: string;
|
|
@@ -400,23 +354,13 @@ export declare const commandSchemas: {
|
|
|
400
354
|
type: "nvr-exporter";
|
|
401
355
|
} | {
|
|
402
356
|
type: "nvr-analytics-server";
|
|
403
|
-
}))
|
|
404
|
-
presets: {
|
|
405
|
-
name: string;
|
|
406
|
-
id: string;
|
|
407
|
-
isDefault: boolean;
|
|
408
|
-
assignedRef: string | null;
|
|
409
|
-
createdOn: string;
|
|
410
|
-
lastModifiedOn: string;
|
|
411
|
-
params?: unknown;
|
|
412
|
-
}[];
|
|
413
|
-
});
|
|
357
|
+
}));
|
|
414
358
|
timeFrom: number;
|
|
415
359
|
timeTo: number;
|
|
416
360
|
}, {
|
|
417
361
|
name: string;
|
|
418
362
|
requestId: string;
|
|
419
|
-
device: string | (
|
|
363
|
+
device: string | ({
|
|
420
364
|
name: string;
|
|
421
365
|
foreignRef: string;
|
|
422
366
|
provider: string;
|
|
@@ -493,17 +437,7 @@ export declare const commandSchemas: {
|
|
|
493
437
|
type: "nvr-exporter";
|
|
494
438
|
} | {
|
|
495
439
|
type: "nvr-analytics-server";
|
|
496
|
-
}))
|
|
497
|
-
presets: {
|
|
498
|
-
name: string;
|
|
499
|
-
id: string;
|
|
500
|
-
isDefault: boolean;
|
|
501
|
-
assignedRef: string | null;
|
|
502
|
-
createdOn: string;
|
|
503
|
-
lastModifiedOn: string;
|
|
504
|
-
params?: unknown;
|
|
505
|
-
}[];
|
|
506
|
-
});
|
|
440
|
+
}));
|
|
507
441
|
timeFrom: number;
|
|
508
442
|
timeTo: number;
|
|
509
443
|
}>;
|
|
@@ -511,7 +445,7 @@ export declare const commandSchemas: {
|
|
|
511
445
|
params: {
|
|
512
446
|
name: string;
|
|
513
447
|
requestId: string;
|
|
514
|
-
device: string | (
|
|
448
|
+
device: string | ({
|
|
515
449
|
name: string;
|
|
516
450
|
foreignRef: string;
|
|
517
451
|
provider: string;
|
|
@@ -588,17 +522,7 @@ export declare const commandSchemas: {
|
|
|
588
522
|
type: "nvr-exporter";
|
|
589
523
|
} | {
|
|
590
524
|
type: "nvr-analytics-server";
|
|
591
|
-
}))
|
|
592
|
-
presets: {
|
|
593
|
-
name: string;
|
|
594
|
-
id: string;
|
|
595
|
-
isDefault: boolean;
|
|
596
|
-
assignedRef: string | null;
|
|
597
|
-
createdOn: string;
|
|
598
|
-
lastModifiedOn: string;
|
|
599
|
-
params?: unknown;
|
|
600
|
-
}[];
|
|
601
|
-
});
|
|
525
|
+
}));
|
|
602
526
|
timeFrom: number;
|
|
603
527
|
timeTo: number;
|
|
604
528
|
};
|
|
@@ -607,7 +531,7 @@ export declare const commandSchemas: {
|
|
|
607
531
|
params: {
|
|
608
532
|
name: string;
|
|
609
533
|
requestId: string;
|
|
610
|
-
device: string | (
|
|
534
|
+
device: string | ({
|
|
611
535
|
name: string;
|
|
612
536
|
foreignRef: string;
|
|
613
537
|
provider: string;
|
|
@@ -684,17 +608,7 @@ export declare const commandSchemas: {
|
|
|
684
608
|
type: "nvr-exporter";
|
|
685
609
|
} | {
|
|
686
610
|
type: "nvr-analytics-server";
|
|
687
|
-
}))
|
|
688
|
-
presets: {
|
|
689
|
-
name: string;
|
|
690
|
-
id: string;
|
|
691
|
-
isDefault: boolean;
|
|
692
|
-
assignedRef: string | null;
|
|
693
|
-
createdOn: string;
|
|
694
|
-
lastModifiedOn: string;
|
|
695
|
-
params?: unknown;
|
|
696
|
-
}[];
|
|
697
|
-
});
|
|
611
|
+
}));
|
|
698
612
|
timeFrom: number;
|
|
699
613
|
timeTo: number;
|
|
700
614
|
};
|
package/dist/package.json
CHANGED
package/dist/primitives.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare const sFileResponse: z.ZodNullable<z.ZodObject<{
|
|
|
17
17
|
data: string;
|
|
18
18
|
mimeType: string;
|
|
19
19
|
}>>;
|
|
20
|
-
export declare const sAgentDeviceInfo: z.ZodIntersection<z.
|
|
20
|
+
export declare const sAgentDeviceInfo: z.ZodIntersection<z.ZodObject<{
|
|
21
21
|
name: z.ZodString;
|
|
22
22
|
foreignRef: z.ZodString;
|
|
23
23
|
provider: z.ZodString;
|
|
@@ -263,54 +263,8 @@ export declare const sAgentDeviceInfo: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
263
263
|
type: "nvr-analytics-server";
|
|
264
264
|
}, {
|
|
265
265
|
type: "nvr-analytics-server";
|
|
266
|
-
}>]
|
|
267
|
-
|
|
268
|
-
id: z.ZodString;
|
|
269
|
-
name: z.ZodString;
|
|
270
|
-
params: z.ZodUnknown;
|
|
271
|
-
isDefault: z.ZodBoolean;
|
|
272
|
-
assignedRef: z.ZodNullable<z.ZodString>;
|
|
273
|
-
createdOn: z.ZodString;
|
|
274
|
-
lastModifiedOn: z.ZodString;
|
|
275
|
-
}, "strip", z.ZodTypeAny, {
|
|
276
|
-
name: string;
|
|
277
|
-
id: string;
|
|
278
|
-
isDefault: boolean;
|
|
279
|
-
assignedRef: string | null;
|
|
280
|
-
createdOn: string;
|
|
281
|
-
lastModifiedOn: string;
|
|
282
|
-
params?: unknown;
|
|
283
|
-
}, {
|
|
284
|
-
name: string;
|
|
285
|
-
id: string;
|
|
286
|
-
isDefault: boolean;
|
|
287
|
-
assignedRef: string | null;
|
|
288
|
-
createdOn: string;
|
|
289
|
-
lastModifiedOn: string;
|
|
290
|
-
params?: unknown;
|
|
291
|
-
}>, "many">;
|
|
292
|
-
}, "strip", z.ZodTypeAny, {
|
|
293
|
-
presets: {
|
|
294
|
-
name: string;
|
|
295
|
-
id: string;
|
|
296
|
-
isDefault: boolean;
|
|
297
|
-
assignedRef: string | null;
|
|
298
|
-
createdOn: string;
|
|
299
|
-
lastModifiedOn: string;
|
|
300
|
-
params?: unknown;
|
|
301
|
-
}[];
|
|
302
|
-
}, {
|
|
303
|
-
presets: {
|
|
304
|
-
name: string;
|
|
305
|
-
id: string;
|
|
306
|
-
isDefault: boolean;
|
|
307
|
-
assignedRef: string | null;
|
|
308
|
-
createdOn: string;
|
|
309
|
-
lastModifiedOn: string;
|
|
310
|
-
params?: unknown;
|
|
311
|
-
}[];
|
|
312
|
-
}>>;
|
|
313
|
-
export declare const sDeviceParam: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
266
|
+
}>]>>;
|
|
267
|
+
export declare const sDeviceParam: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
|
|
314
268
|
name: z.ZodString;
|
|
315
269
|
foreignRef: z.ZodString;
|
|
316
270
|
provider: z.ZodString;
|
|
@@ -556,50 +510,4 @@ export declare const sDeviceParam: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.
|
|
|
556
510
|
type: "nvr-analytics-server";
|
|
557
511
|
}, {
|
|
558
512
|
type: "nvr-analytics-server";
|
|
559
|
-
}>]
|
|
560
|
-
presets: z.ZodArray<z.ZodObject<{
|
|
561
|
-
id: z.ZodString;
|
|
562
|
-
name: z.ZodString;
|
|
563
|
-
params: z.ZodUnknown;
|
|
564
|
-
isDefault: z.ZodBoolean;
|
|
565
|
-
assignedRef: z.ZodNullable<z.ZodString>;
|
|
566
|
-
createdOn: z.ZodString;
|
|
567
|
-
lastModifiedOn: z.ZodString;
|
|
568
|
-
}, "strip", z.ZodTypeAny, {
|
|
569
|
-
name: string;
|
|
570
|
-
id: string;
|
|
571
|
-
isDefault: boolean;
|
|
572
|
-
assignedRef: string | null;
|
|
573
|
-
createdOn: string;
|
|
574
|
-
lastModifiedOn: string;
|
|
575
|
-
params?: unknown;
|
|
576
|
-
}, {
|
|
577
|
-
name: string;
|
|
578
|
-
id: string;
|
|
579
|
-
isDefault: boolean;
|
|
580
|
-
assignedRef: string | null;
|
|
581
|
-
createdOn: string;
|
|
582
|
-
lastModifiedOn: string;
|
|
583
|
-
params?: unknown;
|
|
584
|
-
}>, "many">;
|
|
585
|
-
}, "strip", z.ZodTypeAny, {
|
|
586
|
-
presets: {
|
|
587
|
-
name: string;
|
|
588
|
-
id: string;
|
|
589
|
-
isDefault: boolean;
|
|
590
|
-
assignedRef: string | null;
|
|
591
|
-
createdOn: string;
|
|
592
|
-
lastModifiedOn: string;
|
|
593
|
-
params?: unknown;
|
|
594
|
-
}[];
|
|
595
|
-
}, {
|
|
596
|
-
presets: {
|
|
597
|
-
name: string;
|
|
598
|
-
id: string;
|
|
599
|
-
isDefault: boolean;
|
|
600
|
-
assignedRef: string | null;
|
|
601
|
-
createdOn: string;
|
|
602
|
-
lastModifiedOn: string;
|
|
603
|
-
params?: unknown;
|
|
604
|
-
}[];
|
|
605
|
-
}>>]>;
|
|
513
|
+
}>]>>]>;
|
package/dist/primitives.js
CHANGED
|
@@ -18,7 +18,7 @@ exports.sFileResponse = zod_1.z
|
|
|
18
18
|
data: zod_1.z.string().nonempty(),
|
|
19
19
|
})
|
|
20
20
|
.nullable();
|
|
21
|
-
exports.sAgentDeviceInfo =
|
|
21
|
+
exports.sAgentDeviceInfo = zod_1.z.intersection(device_1.sForeignDeviceInfo, device_1.sAnyDeviceSpecs, zod_1.z.object({
|
|
22
22
|
presets: zod_1.z.array(device_1.sPresetDto),
|
|
23
23
|
}));
|
|
24
24
|
// reusable device argument. This schema can be checked at runtime to see if it's a device ID or full device info and substituted accordingly.
|