@awarevue/api-types 2.0.11 → 2.0.13

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.
@@ -1,4 +1,14 @@
1
1
  import { z } from 'zod';
2
+ export declare const sMqttInboundCommand: z.ZodObject<{
3
+ command: z.ZodString;
4
+ params: z.ZodUnknown;
5
+ }, "strip", z.ZodTypeAny, {
6
+ command: string;
7
+ params?: unknown;
8
+ }, {
9
+ command: string;
10
+ params?: unknown;
11
+ }>;
2
12
  export declare const sMqttInboundStateUpdate: z.ZodObject<{
3
13
  timestamp: z.ZodNumber;
4
14
  mergeProps: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -25,5 +35,6 @@ export declare const sMqttInboundEvent: z.ZodObject<{
25
35
  eventForeignRef: string;
26
36
  event?: unknown;
27
37
  }>;
38
+ export type MqttInboundCommand = z.infer<typeof sMqttInboundCommand>;
28
39
  export type MqttInboundStateUpdate = z.infer<typeof sMqttInboundStateUpdate>;
29
40
  export type MqttInboundEvent = z.infer<typeof sMqttInboundEvent>;
@@ -1,8 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sMqttInboundEvent = exports.sMqttInboundStateUpdate = void 0;
3
+ exports.sMqttInboundEvent = exports.sMqttInboundStateUpdate = exports.sMqttInboundCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  // MQTT Payloads for agent communication
6
+ exports.sMqttInboundCommand = zod_1.z.object({
7
+ command: zod_1.z.string().nonempty(),
8
+ params: zod_1.z.unknown().describe('Command data'),
9
+ });
6
10
  exports.sMqttInboundStateUpdate = zod_1.z.object({
7
11
  timestamp: zod_1.z.number(),
8
12
  mergeProps: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
@@ -72,7 +72,7 @@ export declare const requestSchemasByType: {
72
72
  }>;
73
73
  readonly "cctv:get-exports": import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
74
74
  readonly "cctv:recordings-by-time-range": import("zod").ZodObject<{
75
- device: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodIntersection<import("zod").ZodObject<{
75
+ device: import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodIntersection<import("zod").ZodObject<{
76
76
  name: import("zod").ZodString;
77
77
  foreignRef: import("zod").ZodString;
78
78
  provider: import("zod").ZodString;
@@ -324,11 +324,11 @@ export declare const requestSchemasByType: {
324
324
  type: "system";
325
325
  }, {
326
326
  type: "system";
327
- }>]>>]>;
327
+ }>]>>]>, import("zod").ZodTuple<[import("zod").ZodString, import("zod").ZodString], null>]>;
328
328
  timeFrom: import("zod").ZodNumber;
329
329
  timeTo: import("zod").ZodNumber;
330
330
  }, "strip", import("zod").ZodTypeAny, {
331
- device: string | ({
331
+ device: string | [string, string] | ({
332
332
  name: string;
333
333
  foreignRef: string;
334
334
  provider: string;
@@ -411,7 +411,7 @@ export declare const requestSchemasByType: {
411
411
  timeFrom: number;
412
412
  timeTo: number;
413
413
  }, {
414
- device: string | ({
414
+ device: string | [string, string] | ({
415
415
  name: string;
416
416
  foreignRef: string;
417
417
  provider: string;
@@ -495,7 +495,7 @@ export declare const requestSchemasByType: {
495
495
  timeTo: number;
496
496
  }>;
497
497
  readonly "cctv:preview-image": import("zod").ZodObject<{
498
- device: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodIntersection<import("zod").ZodObject<{
498
+ device: import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodIntersection<import("zod").ZodObject<{
499
499
  name: import("zod").ZodString;
500
500
  foreignRef: import("zod").ZodString;
501
501
  provider: import("zod").ZodString;
@@ -747,13 +747,13 @@ export declare const requestSchemasByType: {
747
747
  type: "system";
748
748
  }, {
749
749
  type: "system";
750
- }>]>>]>;
750
+ }>]>>]>, import("zod").ZodTuple<[import("zod").ZodString, import("zod").ZodString], null>]>;
751
751
  time: import("zod").ZodNumber;
752
752
  height: import("zod").ZodNumber;
753
753
  }, "strip", import("zod").ZodTypeAny, {
754
754
  time: number;
755
755
  height: number;
756
- device: string | ({
756
+ device: string | [string, string] | ({
757
757
  name: string;
758
758
  foreignRef: string;
759
759
  provider: string;
@@ -836,7 +836,7 @@ export declare const requestSchemasByType: {
836
836
  }, {
837
837
  time: number;
838
838
  height: number;
839
- device: string | ({
839
+ device: string | [string, string] | ({
840
840
  name: string;
841
841
  foreignRef: string;
842
842
  provider: string;
@@ -918,7 +918,7 @@ export declare const requestSchemasByType: {
918
918
  }));
919
919
  }>;
920
920
  readonly "cctv:latest-frame": import("zod").ZodObject<{
921
- device: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodIntersection<import("zod").ZodObject<{
921
+ device: import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodIntersection<import("zod").ZodObject<{
922
922
  name: import("zod").ZodString;
923
923
  foreignRef: import("zod").ZodString;
924
924
  provider: import("zod").ZodString;
@@ -1170,13 +1170,13 @@ export declare const requestSchemasByType: {
1170
1170
  type: "system";
1171
1171
  }, {
1172
1172
  type: "system";
1173
- }>]>>]>;
1173
+ }>]>>]>, import("zod").ZodTuple<[import("zod").ZodString, import("zod").ZodString], null>]>;
1174
1174
  width: import("zod").ZodNumber;
1175
1175
  height: import("zod").ZodNumber;
1176
1176
  }, "strip", import("zod").ZodTypeAny, {
1177
1177
  height: number;
1178
1178
  width: number;
1179
- device: string | ({
1179
+ device: string | [string, string] | ({
1180
1180
  name: string;
1181
1181
  foreignRef: string;
1182
1182
  provider: string;
@@ -1259,7 +1259,7 @@ export declare const requestSchemasByType: {
1259
1259
  }, {
1260
1260
  height: number;
1261
1261
  width: number;
1262
- device: string | ({
1262
+ device: string | [string, string] | ({
1263
1263
  name: string;
1264
1264
  foreignRef: string;
1265
1265
  provider: string;
@@ -17,7 +17,7 @@ export declare const sStartExportCommand: z.ZodObject<{
17
17
  command: z.ZodLiteral<"nvr-exporter.start-export">;
18
18
  params: z.ZodObject<{
19
19
  requestId: z.ZodString;
20
- device: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
20
+ device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
21
21
  name: z.ZodString;
22
22
  foreignRef: z.ZodString;
23
23
  provider: z.ZodString;
@@ -269,14 +269,14 @@ export declare const sStartExportCommand: z.ZodObject<{
269
269
  type: "system";
270
270
  }, {
271
271
  type: "system";
272
- }>]>>]>;
272
+ }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
273
273
  timeFrom: z.ZodNumber;
274
274
  timeTo: z.ZodNumber;
275
275
  name: z.ZodString;
276
276
  }, "strip", z.ZodTypeAny, {
277
277
  name: string;
278
278
  requestId: string;
279
- device: string | ({
279
+ device: string | [string, string] | ({
280
280
  name: string;
281
281
  foreignRef: string;
282
282
  provider: string;
@@ -361,7 +361,7 @@ export declare const sStartExportCommand: z.ZodObject<{
361
361
  }, {
362
362
  name: string;
363
363
  requestId: string;
364
- device: string | ({
364
+ device: string | [string, string] | ({
365
365
  name: string;
366
366
  foreignRef: string;
367
367
  provider: string;
@@ -448,7 +448,7 @@ export declare const sStartExportCommand: z.ZodObject<{
448
448
  params: {
449
449
  name: string;
450
450
  requestId: string;
451
- device: string | ({
451
+ device: string | [string, string] | ({
452
452
  name: string;
453
453
  foreignRef: string;
454
454
  provider: string;
@@ -536,7 +536,7 @@ export declare const sStartExportCommand: z.ZodObject<{
536
536
  params: {
537
537
  name: string;
538
538
  requestId: string;
539
- device: string | ({
539
+ device: string | [string, string] | ({
540
540
  name: string;
541
541
  foreignRef: string;
542
542
  provider: string;
@@ -649,7 +649,7 @@ export declare const nvrExporterCommandSchemas: {
649
649
  command: z.ZodLiteral<"nvr-exporter.start-export">;
650
650
  params: z.ZodObject<{
651
651
  requestId: z.ZodString;
652
- device: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
652
+ device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
653
653
  name: z.ZodString;
654
654
  foreignRef: z.ZodString;
655
655
  provider: z.ZodString;
@@ -901,14 +901,14 @@ export declare const nvrExporterCommandSchemas: {
901
901
  type: "system";
902
902
  }, {
903
903
  type: "system";
904
- }>]>>]>;
904
+ }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
905
905
  timeFrom: z.ZodNumber;
906
906
  timeTo: z.ZodNumber;
907
907
  name: z.ZodString;
908
908
  }, "strip", z.ZodTypeAny, {
909
909
  name: string;
910
910
  requestId: string;
911
- device: string | ({
911
+ device: string | [string, string] | ({
912
912
  name: string;
913
913
  foreignRef: string;
914
914
  provider: string;
@@ -993,7 +993,7 @@ export declare const nvrExporterCommandSchemas: {
993
993
  }, {
994
994
  name: string;
995
995
  requestId: string;
996
- device: string | ({
996
+ device: string | [string, string] | ({
997
997
  name: string;
998
998
  foreignRef: string;
999
999
  provider: string;
@@ -1080,7 +1080,7 @@ export declare const nvrExporterCommandSchemas: {
1080
1080
  params: {
1081
1081
  name: string;
1082
1082
  requestId: string;
1083
- device: string | ({
1083
+ device: string | [string, string] | ({
1084
1084
  name: string;
1085
1085
  foreignRef: string;
1086
1086
  provider: string;
@@ -1168,7 +1168,7 @@ export declare const nvrExporterCommandSchemas: {
1168
1168
  params: {
1169
1169
  name: string;
1170
1170
  requestId: string;
1171
- device: string | ({
1171
+ device: string | [string, string] | ({
1172
1172
  name: string;
1173
1173
  foreignRef: string;
1174
1174
  provider: string;
@@ -12,7 +12,7 @@ export declare const sRecorderStateDto: z.ZodObject<{
12
12
  export type RecorderStateDto = z.infer<typeof sRecorderStateDto>;
13
13
  export declare const QUERY_RECORDINGS_BY_TIME_RANGE = "cctv:recordings-by-time-range";
14
14
  export declare const sRecordingsByTimeRangeArgs: z.ZodObject<{
15
- device: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
15
+ device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
16
16
  name: z.ZodString;
17
17
  foreignRef: z.ZodString;
18
18
  provider: z.ZodString;
@@ -264,11 +264,11 @@ export declare const sRecordingsByTimeRangeArgs: z.ZodObject<{
264
264
  type: "system";
265
265
  }, {
266
266
  type: "system";
267
- }>]>>]>;
267
+ }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
268
268
  timeFrom: z.ZodNumber;
269
269
  timeTo: z.ZodNumber;
270
270
  }, "strip", z.ZodTypeAny, {
271
- device: string | ({
271
+ device: string | [string, string] | ({
272
272
  name: string;
273
273
  foreignRef: string;
274
274
  provider: string;
@@ -351,7 +351,7 @@ export declare const sRecordingsByTimeRangeArgs: z.ZodObject<{
351
351
  timeFrom: number;
352
352
  timeTo: number;
353
353
  }, {
354
- device: string | ({
354
+ device: string | [string, string] | ({
355
355
  name: string;
356
356
  foreignRef: string;
357
357
  provider: string;
@@ -454,7 +454,7 @@ export type RecordingsByTimeRangeArgs = z.infer<typeof sRecordingsByTimeRangeArg
454
454
  export type RecordingsResponse = z.infer<typeof sRecordingsResponse>;
455
455
  export declare const QUERY_PREVIEW_IMAGE = "cctv:preview-image";
456
456
  export declare const sPreviewImageArgs: z.ZodObject<{
457
- device: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
457
+ device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
458
458
  name: z.ZodString;
459
459
  foreignRef: z.ZodString;
460
460
  provider: z.ZodString;
@@ -706,13 +706,13 @@ export declare const sPreviewImageArgs: z.ZodObject<{
706
706
  type: "system";
707
707
  }, {
708
708
  type: "system";
709
- }>]>>]>;
709
+ }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
710
710
  time: z.ZodNumber;
711
711
  height: z.ZodNumber;
712
712
  }, "strip", z.ZodTypeAny, {
713
713
  time: number;
714
714
  height: number;
715
- device: string | ({
715
+ device: string | [string, string] | ({
716
716
  name: string;
717
717
  foreignRef: string;
718
718
  provider: string;
@@ -795,7 +795,7 @@ export declare const sPreviewImageArgs: z.ZodObject<{
795
795
  }, {
796
796
  time: number;
797
797
  height: number;
798
- device: string | ({
798
+ device: string | [string, string] | ({
799
799
  name: string;
800
800
  foreignRef: string;
801
801
  provider: string;
@@ -890,7 +890,7 @@ export type PreviewImageArgs = z.infer<typeof sPreviewImageArgs>;
890
890
  export type PreviewImageResponse = z.infer<typeof sPreviewImageResponse>;
891
891
  export declare const QUERY_CAMERA_LATEST_FRAME = "cctv:latest-frame";
892
892
  export declare const sCameraLatestFrameArgs: z.ZodObject<{
893
- device: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
893
+ device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
894
894
  name: z.ZodString;
895
895
  foreignRef: z.ZodString;
896
896
  provider: z.ZodString;
@@ -1142,13 +1142,13 @@ export declare const sCameraLatestFrameArgs: z.ZodObject<{
1142
1142
  type: "system";
1143
1143
  }, {
1144
1144
  type: "system";
1145
- }>]>>]>;
1145
+ }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
1146
1146
  width: z.ZodNumber;
1147
1147
  height: z.ZodNumber;
1148
1148
  }, "strip", z.ZodTypeAny, {
1149
1149
  height: number;
1150
1150
  width: number;
1151
- device: string | ({
1151
+ device: string | [string, string] | ({
1152
1152
  name: string;
1153
1153
  foreignRef: string;
1154
1154
  provider: string;
@@ -1231,7 +1231,7 @@ export declare const sCameraLatestFrameArgs: z.ZodObject<{
1231
1231
  }, {
1232
1232
  height: number;
1233
1233
  width: number;
1234
- device: string | ({
1234
+ device: string | [string, string] | ({
1235
1235
  name: string;
1236
1236
  foreignRef: string;
1237
1237
  provider: string;
@@ -1326,7 +1326,7 @@ export type CameraLatestFrameArgs = z.infer<typeof sCameraLatestFrameArgs>;
1326
1326
  export type CameraLatestFrameResponse = z.infer<typeof sCameraLatestFrameResponse>;
1327
1327
  export declare const nvrRecorderRequestSchemas: {
1328
1328
  readonly "cctv:recordings-by-time-range": z.ZodObject<{
1329
- device: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
1329
+ device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
1330
1330
  name: z.ZodString;
1331
1331
  foreignRef: z.ZodString;
1332
1332
  provider: z.ZodString;
@@ -1578,11 +1578,11 @@ export declare const nvrRecorderRequestSchemas: {
1578
1578
  type: "system";
1579
1579
  }, {
1580
1580
  type: "system";
1581
- }>]>>]>;
1581
+ }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
1582
1582
  timeFrom: z.ZodNumber;
1583
1583
  timeTo: z.ZodNumber;
1584
1584
  }, "strip", z.ZodTypeAny, {
1585
- device: string | ({
1585
+ device: string | [string, string] | ({
1586
1586
  name: string;
1587
1587
  foreignRef: string;
1588
1588
  provider: string;
@@ -1665,7 +1665,7 @@ export declare const nvrRecorderRequestSchemas: {
1665
1665
  timeFrom: number;
1666
1666
  timeTo: number;
1667
1667
  }, {
1668
- device: string | ({
1668
+ device: string | [string, string] | ({
1669
1669
  name: string;
1670
1670
  foreignRef: string;
1671
1671
  provider: string;
@@ -1749,7 +1749,7 @@ export declare const nvrRecorderRequestSchemas: {
1749
1749
  timeTo: number;
1750
1750
  }>;
1751
1751
  readonly "cctv:preview-image": z.ZodObject<{
1752
- device: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
1752
+ device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
1753
1753
  name: z.ZodString;
1754
1754
  foreignRef: z.ZodString;
1755
1755
  provider: z.ZodString;
@@ -2001,13 +2001,13 @@ export declare const nvrRecorderRequestSchemas: {
2001
2001
  type: "system";
2002
2002
  }, {
2003
2003
  type: "system";
2004
- }>]>>]>;
2004
+ }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
2005
2005
  time: z.ZodNumber;
2006
2006
  height: z.ZodNumber;
2007
2007
  }, "strip", z.ZodTypeAny, {
2008
2008
  time: number;
2009
2009
  height: number;
2010
- device: string | ({
2010
+ device: string | [string, string] | ({
2011
2011
  name: string;
2012
2012
  foreignRef: string;
2013
2013
  provider: string;
@@ -2090,7 +2090,7 @@ export declare const nvrRecorderRequestSchemas: {
2090
2090
  }, {
2091
2091
  time: number;
2092
2092
  height: number;
2093
- device: string | ({
2093
+ device: string | [string, string] | ({
2094
2094
  name: string;
2095
2095
  foreignRef: string;
2096
2096
  provider: string;
@@ -2172,7 +2172,7 @@ export declare const nvrRecorderRequestSchemas: {
2172
2172
  }));
2173
2173
  }>;
2174
2174
  readonly "cctv:latest-frame": z.ZodObject<{
2175
- device: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
2175
+ device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
2176
2176
  name: z.ZodString;
2177
2177
  foreignRef: z.ZodString;
2178
2178
  provider: z.ZodString;
@@ -2424,13 +2424,13 @@ export declare const nvrRecorderRequestSchemas: {
2424
2424
  type: "system";
2425
2425
  }, {
2426
2426
  type: "system";
2427
- }>]>>]>;
2427
+ }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
2428
2428
  width: z.ZodNumber;
2429
2429
  height: z.ZodNumber;
2430
2430
  }, "strip", z.ZodTypeAny, {
2431
2431
  height: number;
2432
2432
  width: number;
2433
- device: string | ({
2433
+ device: string | [string, string] | ({
2434
2434
  name: string;
2435
2435
  foreignRef: string;
2436
2436
  provider: string;
@@ -2513,7 +2513,7 @@ export declare const nvrRecorderRequestSchemas: {
2513
2513
  }, {
2514
2514
  height: number;
2515
2515
  width: number;
2516
- device: string | ({
2516
+ device: string | [string, string] | ({
2517
2517
  name: string;
2518
2518
  foreignRef: string;
2519
2519
  provider: string;