@awarevue/api-types 2.0.39 → 2.0.41

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.
@@ -28,14 +28,17 @@ export declare const sDeviceArea: z.ZodObject<{
28
28
  area: z.ZodString;
29
29
  type: z.ZodLiteral<"device">;
30
30
  deviceId: z.ZodString;
31
+ streamId: z.ZodOptional<z.ZodString>;
31
32
  }, "strip", z.ZodTypeAny, {
32
33
  type: "device";
33
34
  area: string;
34
35
  deviceId: string;
36
+ streamId?: string | undefined;
35
37
  }, {
36
38
  type: "device";
37
39
  area: string;
38
40
  deviceId: string;
41
+ streamId?: string | undefined;
39
42
  }>;
40
43
  export type DeviceArea = z.infer<typeof sDeviceArea>;
41
44
  export declare const sDeviceCarouselArea: z.ZodObject<{
@@ -59,15 +62,30 @@ export declare const sPlaybackTrackArea: z.ZodObject<{
59
62
  area: z.ZodString;
60
63
  type: z.ZodLiteral<"playbackTrack">;
61
64
  controllerId: z.ZodString;
62
- source: z.ZodString;
65
+ source: z.ZodObject<{
66
+ deviceId: z.ZodString;
67
+ streamId: z.ZodString;
68
+ }, "strip", z.ZodTypeAny, {
69
+ deviceId: string;
70
+ streamId: string;
71
+ }, {
72
+ deviceId: string;
73
+ streamId: string;
74
+ }>;
63
75
  }, "strip", z.ZodTypeAny, {
64
76
  type: "playbackTrack";
65
- source: string;
77
+ source: {
78
+ deviceId: string;
79
+ streamId: string;
80
+ };
66
81
  area: string;
67
82
  controllerId: string;
68
83
  }, {
69
84
  type: "playbackTrack";
70
- source: string;
85
+ source: {
86
+ deviceId: string;
87
+ streamId: string;
88
+ };
71
89
  area: string;
72
90
  controllerId: string;
73
91
  }>;
@@ -98,14 +116,17 @@ export declare const sViewAreaContents: z.ZodUnion<[z.ZodObject<{
98
116
  area: z.ZodString;
99
117
  type: z.ZodLiteral<"device">;
100
118
  deviceId: z.ZodString;
119
+ streamId: z.ZodOptional<z.ZodString>;
101
120
  }, "strip", z.ZodTypeAny, {
102
121
  type: "device";
103
122
  area: string;
104
123
  deviceId: string;
124
+ streamId?: string | undefined;
105
125
  }, {
106
126
  type: "device";
107
127
  area: string;
108
128
  deviceId: string;
129
+ streamId?: string | undefined;
109
130
  }>, z.ZodObject<{
110
131
  area: z.ZodString;
111
132
  type: z.ZodLiteral<"deviceCarousel">;
@@ -125,15 +146,30 @@ export declare const sViewAreaContents: z.ZodUnion<[z.ZodObject<{
125
146
  area: z.ZodString;
126
147
  type: z.ZodLiteral<"playbackTrack">;
127
148
  controllerId: z.ZodString;
128
- source: z.ZodString;
149
+ source: z.ZodObject<{
150
+ deviceId: z.ZodString;
151
+ streamId: z.ZodString;
152
+ }, "strip", z.ZodTypeAny, {
153
+ deviceId: string;
154
+ streamId: string;
155
+ }, {
156
+ deviceId: string;
157
+ streamId: string;
158
+ }>;
129
159
  }, "strip", z.ZodTypeAny, {
130
160
  type: "playbackTrack";
131
- source: string;
161
+ source: {
162
+ deviceId: string;
163
+ streamId: string;
164
+ };
132
165
  area: string;
133
166
  controllerId: string;
134
167
  }, {
135
168
  type: "playbackTrack";
136
- source: string;
169
+ source: {
170
+ deviceId: string;
171
+ streamId: string;
172
+ };
137
173
  area: string;
138
174
  controllerId: string;
139
175
  }>]>;
@@ -167,14 +203,17 @@ export declare const sViewConfig: z.ZodObject<{
167
203
  area: z.ZodString;
168
204
  type: z.ZodLiteral<"device">;
169
205
  deviceId: z.ZodString;
206
+ streamId: z.ZodOptional<z.ZodString>;
170
207
  }, "strip", z.ZodTypeAny, {
171
208
  type: "device";
172
209
  area: string;
173
210
  deviceId: string;
211
+ streamId?: string | undefined;
174
212
  }, {
175
213
  type: "device";
176
214
  area: string;
177
215
  deviceId: string;
216
+ streamId?: string | undefined;
178
217
  }>, z.ZodObject<{
179
218
  area: z.ZodString;
180
219
  type: z.ZodLiteral<"deviceCarousel">;
@@ -194,15 +233,30 @@ export declare const sViewConfig: z.ZodObject<{
194
233
  area: z.ZodString;
195
234
  type: z.ZodLiteral<"playbackTrack">;
196
235
  controllerId: z.ZodString;
197
- source: z.ZodString;
236
+ source: z.ZodObject<{
237
+ deviceId: z.ZodString;
238
+ streamId: z.ZodString;
239
+ }, "strip", z.ZodTypeAny, {
240
+ deviceId: string;
241
+ streamId: string;
242
+ }, {
243
+ deviceId: string;
244
+ streamId: string;
245
+ }>;
198
246
  }, "strip", z.ZodTypeAny, {
199
247
  type: "playbackTrack";
200
- source: string;
248
+ source: {
249
+ deviceId: string;
250
+ streamId: string;
251
+ };
201
252
  area: string;
202
253
  controllerId: string;
203
254
  }, {
204
255
  type: "playbackTrack";
205
- source: string;
256
+ source: {
257
+ deviceId: string;
258
+ streamId: string;
259
+ };
206
260
  area: string;
207
261
  controllerId: string;
208
262
  }>]>, "many">;
@@ -221,6 +275,7 @@ export declare const sViewConfig: z.ZodObject<{
221
275
  type: "device";
222
276
  area: string;
223
277
  deviceId: string;
278
+ streamId?: string | undefined;
224
279
  } | {
225
280
  type: "deviceCarousel";
226
281
  area: string;
@@ -228,7 +283,10 @@ export declare const sViewConfig: z.ZodObject<{
228
283
  timeIntervalMs: number;
229
284
  } | {
230
285
  type: "playbackTrack";
231
- source: string;
286
+ source: {
287
+ deviceId: string;
288
+ streamId: string;
289
+ };
232
290
  area: string;
233
291
  controllerId: string;
234
292
  })[];
@@ -248,6 +306,7 @@ export declare const sViewConfig: z.ZodObject<{
248
306
  type: "device";
249
307
  area: string;
250
308
  deviceId: string;
309
+ streamId?: string | undefined;
251
310
  } | {
252
311
  type: "deviceCarousel";
253
312
  area: string;
@@ -255,7 +314,10 @@ export declare const sViewConfig: z.ZodObject<{
255
314
  timeIntervalMs: number;
256
315
  } | {
257
316
  type: "playbackTrack";
258
- source: string;
317
+ source: {
318
+ deviceId: string;
319
+ streamId: string;
320
+ };
259
321
  area: string;
260
322
  controllerId: string;
261
323
  })[];
@@ -307,14 +369,17 @@ export declare const sViewInfo: z.ZodIntersection<z.ZodObject<{
307
369
  area: z.ZodString;
308
370
  type: z.ZodLiteral<"device">;
309
371
  deviceId: z.ZodString;
372
+ streamId: z.ZodOptional<z.ZodString>;
310
373
  }, "strip", z.ZodTypeAny, {
311
374
  type: "device";
312
375
  area: string;
313
376
  deviceId: string;
377
+ streamId?: string | undefined;
314
378
  }, {
315
379
  type: "device";
316
380
  area: string;
317
381
  deviceId: string;
382
+ streamId?: string | undefined;
318
383
  }>, z.ZodObject<{
319
384
  area: z.ZodString;
320
385
  type: z.ZodLiteral<"deviceCarousel">;
@@ -334,15 +399,30 @@ export declare const sViewInfo: z.ZodIntersection<z.ZodObject<{
334
399
  area: z.ZodString;
335
400
  type: z.ZodLiteral<"playbackTrack">;
336
401
  controllerId: z.ZodString;
337
- source: z.ZodString;
402
+ source: z.ZodObject<{
403
+ deviceId: z.ZodString;
404
+ streamId: z.ZodString;
405
+ }, "strip", z.ZodTypeAny, {
406
+ deviceId: string;
407
+ streamId: string;
408
+ }, {
409
+ deviceId: string;
410
+ streamId: string;
411
+ }>;
338
412
  }, "strip", z.ZodTypeAny, {
339
413
  type: "playbackTrack";
340
- source: string;
414
+ source: {
415
+ deviceId: string;
416
+ streamId: string;
417
+ };
341
418
  area: string;
342
419
  controllerId: string;
343
420
  }, {
344
421
  type: "playbackTrack";
345
- source: string;
422
+ source: {
423
+ deviceId: string;
424
+ streamId: string;
425
+ };
346
426
  area: string;
347
427
  controllerId: string;
348
428
  }>]>, "many">;
@@ -361,6 +441,7 @@ export declare const sViewInfo: z.ZodIntersection<z.ZodObject<{
361
441
  type: "device";
362
442
  area: string;
363
443
  deviceId: string;
444
+ streamId?: string | undefined;
364
445
  } | {
365
446
  type: "deviceCarousel";
366
447
  area: string;
@@ -368,7 +449,10 @@ export declare const sViewInfo: z.ZodIntersection<z.ZodObject<{
368
449
  timeIntervalMs: number;
369
450
  } | {
370
451
  type: "playbackTrack";
371
- source: string;
452
+ source: {
453
+ deviceId: string;
454
+ streamId: string;
455
+ };
372
456
  area: string;
373
457
  controllerId: string;
374
458
  })[];
@@ -388,6 +472,7 @@ export declare const sViewInfo: z.ZodIntersection<z.ZodObject<{
388
472
  type: "device";
389
473
  area: string;
390
474
  deviceId: string;
475
+ streamId?: string | undefined;
391
476
  } | {
392
477
  type: "deviceCarousel";
393
478
  area: string;
@@ -395,7 +480,10 @@ export declare const sViewInfo: z.ZodIntersection<z.ZodObject<{
395
480
  timeIntervalMs: number;
396
481
  } | {
397
482
  type: "playbackTrack";
398
- source: string;
483
+ source: {
484
+ deviceId: string;
485
+ streamId: string;
486
+ };
399
487
  area: string;
400
488
  controllerId: string;
401
489
  })[];
@@ -459,14 +547,17 @@ export declare const sViewDto: z.ZodIntersection<z.ZodObject<{
459
547
  area: z.ZodString;
460
548
  type: z.ZodLiteral<"device">;
461
549
  deviceId: z.ZodString;
550
+ streamId: z.ZodOptional<z.ZodString>;
462
551
  }, "strip", z.ZodTypeAny, {
463
552
  type: "device";
464
553
  area: string;
465
554
  deviceId: string;
555
+ streamId?: string | undefined;
466
556
  }, {
467
557
  type: "device";
468
558
  area: string;
469
559
  deviceId: string;
560
+ streamId?: string | undefined;
470
561
  }>, z.ZodObject<{
471
562
  area: z.ZodString;
472
563
  type: z.ZodLiteral<"deviceCarousel">;
@@ -486,15 +577,30 @@ export declare const sViewDto: z.ZodIntersection<z.ZodObject<{
486
577
  area: z.ZodString;
487
578
  type: z.ZodLiteral<"playbackTrack">;
488
579
  controllerId: z.ZodString;
489
- source: z.ZodString;
580
+ source: z.ZodObject<{
581
+ deviceId: z.ZodString;
582
+ streamId: z.ZodString;
583
+ }, "strip", z.ZodTypeAny, {
584
+ deviceId: string;
585
+ streamId: string;
586
+ }, {
587
+ deviceId: string;
588
+ streamId: string;
589
+ }>;
490
590
  }, "strip", z.ZodTypeAny, {
491
591
  type: "playbackTrack";
492
- source: string;
592
+ source: {
593
+ deviceId: string;
594
+ streamId: string;
595
+ };
493
596
  area: string;
494
597
  controllerId: string;
495
598
  }, {
496
599
  type: "playbackTrack";
497
- source: string;
600
+ source: {
601
+ deviceId: string;
602
+ streamId: string;
603
+ };
498
604
  area: string;
499
605
  controllerId: string;
500
606
  }>]>, "many">;
@@ -513,6 +619,7 @@ export declare const sViewDto: z.ZodIntersection<z.ZodObject<{
513
619
  type: "device";
514
620
  area: string;
515
621
  deviceId: string;
622
+ streamId?: string | undefined;
516
623
  } | {
517
624
  type: "deviceCarousel";
518
625
  area: string;
@@ -520,7 +627,10 @@ export declare const sViewDto: z.ZodIntersection<z.ZodObject<{
520
627
  timeIntervalMs: number;
521
628
  } | {
522
629
  type: "playbackTrack";
523
- source: string;
630
+ source: {
631
+ deviceId: string;
632
+ streamId: string;
633
+ };
524
634
  area: string;
525
635
  controllerId: string;
526
636
  })[];
@@ -540,6 +650,7 @@ export declare const sViewDto: z.ZodIntersection<z.ZodObject<{
540
650
  type: "device";
541
651
  area: string;
542
652
  deviceId: string;
653
+ streamId?: string | undefined;
543
654
  } | {
544
655
  type: "deviceCarousel";
545
656
  area: string;
@@ -547,7 +658,10 @@ export declare const sViewDto: z.ZodIntersection<z.ZodObject<{
547
658
  timeIntervalMs: number;
548
659
  } | {
549
660
  type: "playbackTrack";
550
- source: string;
661
+ source: {
662
+ deviceId: string;
663
+ streamId: string;
664
+ };
551
665
  area: string;
552
666
  controllerId: string;
553
667
  })[];
@@ -15,6 +15,7 @@ exports.sDeviceArea = zod_1.z.object({
15
15
  area: zod_1.z.string().nonempty(),
16
16
  type: zod_1.z.literal('device'),
17
17
  deviceId: zod_1.z.string().nonempty(),
18
+ streamId: zod_1.z.string().nonempty().optional(),
18
19
  });
19
20
  exports.sDeviceCarouselArea = zod_1.z.object({
20
21
  area: zod_1.z.string().nonempty(),
@@ -26,10 +27,13 @@ exports.sPlaybackTrackArea = zod_1.z.object({
26
27
  area: zod_1.z.string().nonempty(),
27
28
  type: zod_1.z.literal('playbackTrack'),
28
29
  controllerId: zod_1.z.string().nonempty(),
29
- source: zod_1.z
30
- .string()
31
- .nonempty()
32
- .describe('The track within the controller. It is the device ID for the camera in the track.'),
30
+ source: zod_1.z.object({
31
+ deviceId: zod_1.z.string().nonempty(),
32
+ streamId: zod_1.z
33
+ .string()
34
+ .nonempty()
35
+ .describe('The track within the controller. It is the stream ID for the camera in the track.'),
36
+ }),
33
37
  });
34
38
  exports.sViewAreaContents = zod_1.z.union([
35
39
  exports.sLayoutArea,
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "2.0.39",
3
+ "version": "2.0.41",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -100,8 +100,6 @@ export declare const sAgentDeviceInfo: z.ZodIntersection<z.ZodObject<{
100
100
  }, {
101
101
  type: "alarm";
102
102
  }>, z.ZodObject<{
103
- lensType: z.ZodEnum<["flat", "fisheye"]>;
104
- mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
105
103
  ptzCapable: z.ZodBoolean;
106
104
  ptzPanSpeed: z.ZodNumber;
107
105
  ptzTiltSpeed: z.ZodNumber;
@@ -112,31 +110,46 @@ export declare const sAgentDeviceInfo: z.ZodIntersection<z.ZodObject<{
112
110
  tiltMax: z.ZodNumber;
113
111
  zoomMin: z.ZodNumber;
114
112
  zoomMax: z.ZodNumber;
115
- recordingCapable: z.ZodBoolean;
116
- webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
117
- kind: z.ZodString;
118
- }, "strip", z.ZodTypeAny, {
119
- kind: string;
120
- }, {
121
- kind: string;
122
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
123
113
  streams: z.ZodArray<z.ZodObject<{
124
114
  id: z.ZodString;
125
115
  displayName: z.ZodString;
126
116
  externalPlayerUrl: z.ZodNullable<z.ZodString>;
127
117
  rtspUrl: z.ZodString;
118
+ recordingCapable: z.ZodBoolean;
119
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
120
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
121
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
122
+ kind: z.ZodString;
123
+ }, "strip", z.ZodTypeAny, {
124
+ kind: string;
125
+ }, {
126
+ kind: string;
127
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
128
128
  }, "strip", z.ZodTypeAny, {
129
129
  id: string;
130
130
  displayName: string;
131
131
  externalPlayerUrl: string | null;
132
132
  rtspUrl: string;
133
+ recordingCapable: boolean;
134
+ lensType: "flat" | "fisheye";
135
+ mountPoint: "wall" | "ceiling" | "floor";
136
+ webrtcPlaybackSource: ({
137
+ kind: string;
138
+ } & Record<string, unknown>) | null;
133
139
  }, {
134
140
  id: string;
135
141
  displayName: string;
136
142
  externalPlayerUrl: string | null;
137
143
  rtspUrl: string;
144
+ recordingCapable: boolean;
145
+ lensType: "flat" | "fisheye";
146
+ mountPoint: "wall" | "ceiling" | "floor";
147
+ webrtcPlaybackSource: ({
148
+ kind: string;
149
+ } & Record<string, unknown>) | null;
138
150
  }>, "many">;
139
151
  defaultStreamId: z.ZodString;
152
+ streamNaming: z.ZodEnum<["cameraStreamNo", "cameraStream", "stream"]>;
140
153
  } & {
141
154
  type: z.ZodLiteral<"camera">;
142
155
  }, "strip", z.ZodTypeAny, {
@@ -146,9 +159,13 @@ export declare const sAgentDeviceInfo: z.ZodIntersection<z.ZodObject<{
146
159
  displayName: string;
147
160
  externalPlayerUrl: string | null;
148
161
  rtspUrl: string;
162
+ recordingCapable: boolean;
163
+ lensType: "flat" | "fisheye";
164
+ mountPoint: "wall" | "ceiling" | "floor";
165
+ webrtcPlaybackSource: ({
166
+ kind: string;
167
+ } & Record<string, unknown>) | null;
149
168
  }[];
150
- lensType: "flat" | "fisheye";
151
- mountPoint: "wall" | "ceiling" | "floor";
152
169
  ptzCapable: boolean;
153
170
  ptzPanSpeed: number;
154
171
  ptzTiltSpeed: number;
@@ -159,11 +176,8 @@ export declare const sAgentDeviceInfo: z.ZodIntersection<z.ZodObject<{
159
176
  tiltMax: number;
160
177
  zoomMin: number;
161
178
  zoomMax: number;
162
- recordingCapable: boolean;
163
- webrtcPlaybackSource: ({
164
- kind: string;
165
- } & Record<string, unknown>) | null;
166
179
  defaultStreamId: string;
180
+ streamNaming: "stream" | "cameraStreamNo" | "cameraStream";
167
181
  }, {
168
182
  type: "camera";
169
183
  streams: {
@@ -171,9 +185,13 @@ export declare const sAgentDeviceInfo: z.ZodIntersection<z.ZodObject<{
171
185
  displayName: string;
172
186
  externalPlayerUrl: string | null;
173
187
  rtspUrl: string;
188
+ recordingCapable: boolean;
189
+ lensType: "flat" | "fisheye";
190
+ mountPoint: "wall" | "ceiling" | "floor";
191
+ webrtcPlaybackSource: ({
192
+ kind: string;
193
+ } & Record<string, unknown>) | null;
174
194
  }[];
175
- lensType: "flat" | "fisheye";
176
- mountPoint: "wall" | "ceiling" | "floor";
177
195
  ptzCapable: boolean;
178
196
  ptzPanSpeed: number;
179
197
  ptzTiltSpeed: number;
@@ -184,11 +202,8 @@ export declare const sAgentDeviceInfo: z.ZodIntersection<z.ZodObject<{
184
202
  tiltMax: number;
185
203
  zoomMin: number;
186
204
  zoomMax: number;
187
- recordingCapable: boolean;
188
- webrtcPlaybackSource: ({
189
- kind: string;
190
- } & Record<string, unknown>) | null;
191
205
  defaultStreamId: string;
206
+ streamNaming: "stream" | "cameraStreamNo" | "cameraStream";
192
207
  }>, z.ZodObject<{
193
208
  canReportOpenState: z.ZodBoolean;
194
209
  canReportLockState: z.ZodBoolean;
@@ -407,8 +422,6 @@ export declare const sDeviceParam: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodInt
407
422
  }, {
408
423
  type: "alarm";
409
424
  }>, z.ZodObject<{
410
- lensType: z.ZodEnum<["flat", "fisheye"]>;
411
- mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
412
425
  ptzCapable: z.ZodBoolean;
413
426
  ptzPanSpeed: z.ZodNumber;
414
427
  ptzTiltSpeed: z.ZodNumber;
@@ -419,31 +432,46 @@ export declare const sDeviceParam: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodInt
419
432
  tiltMax: z.ZodNumber;
420
433
  zoomMin: z.ZodNumber;
421
434
  zoomMax: z.ZodNumber;
422
- recordingCapable: z.ZodBoolean;
423
- webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
424
- kind: z.ZodString;
425
- }, "strip", z.ZodTypeAny, {
426
- kind: string;
427
- }, {
428
- kind: string;
429
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
430
435
  streams: z.ZodArray<z.ZodObject<{
431
436
  id: z.ZodString;
432
437
  displayName: z.ZodString;
433
438
  externalPlayerUrl: z.ZodNullable<z.ZodString>;
434
439
  rtspUrl: z.ZodString;
440
+ recordingCapable: z.ZodBoolean;
441
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
442
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
443
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
444
+ kind: z.ZodString;
445
+ }, "strip", z.ZodTypeAny, {
446
+ kind: string;
447
+ }, {
448
+ kind: string;
449
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
435
450
  }, "strip", z.ZodTypeAny, {
436
451
  id: string;
437
452
  displayName: string;
438
453
  externalPlayerUrl: string | null;
439
454
  rtspUrl: string;
455
+ recordingCapable: boolean;
456
+ lensType: "flat" | "fisheye";
457
+ mountPoint: "wall" | "ceiling" | "floor";
458
+ webrtcPlaybackSource: ({
459
+ kind: string;
460
+ } & Record<string, unknown>) | null;
440
461
  }, {
441
462
  id: string;
442
463
  displayName: string;
443
464
  externalPlayerUrl: string | null;
444
465
  rtspUrl: string;
466
+ recordingCapable: boolean;
467
+ lensType: "flat" | "fisheye";
468
+ mountPoint: "wall" | "ceiling" | "floor";
469
+ webrtcPlaybackSource: ({
470
+ kind: string;
471
+ } & Record<string, unknown>) | null;
445
472
  }>, "many">;
446
473
  defaultStreamId: z.ZodString;
474
+ streamNaming: z.ZodEnum<["cameraStreamNo", "cameraStream", "stream"]>;
447
475
  } & {
448
476
  type: z.ZodLiteral<"camera">;
449
477
  }, "strip", z.ZodTypeAny, {
@@ -453,9 +481,13 @@ export declare const sDeviceParam: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodInt
453
481
  displayName: string;
454
482
  externalPlayerUrl: string | null;
455
483
  rtspUrl: string;
484
+ recordingCapable: boolean;
485
+ lensType: "flat" | "fisheye";
486
+ mountPoint: "wall" | "ceiling" | "floor";
487
+ webrtcPlaybackSource: ({
488
+ kind: string;
489
+ } & Record<string, unknown>) | null;
456
490
  }[];
457
- lensType: "flat" | "fisheye";
458
- mountPoint: "wall" | "ceiling" | "floor";
459
491
  ptzCapable: boolean;
460
492
  ptzPanSpeed: number;
461
493
  ptzTiltSpeed: number;
@@ -466,11 +498,8 @@ export declare const sDeviceParam: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodInt
466
498
  tiltMax: number;
467
499
  zoomMin: number;
468
500
  zoomMax: number;
469
- recordingCapable: boolean;
470
- webrtcPlaybackSource: ({
471
- kind: string;
472
- } & Record<string, unknown>) | null;
473
501
  defaultStreamId: string;
502
+ streamNaming: "stream" | "cameraStreamNo" | "cameraStream";
474
503
  }, {
475
504
  type: "camera";
476
505
  streams: {
@@ -478,9 +507,13 @@ export declare const sDeviceParam: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodInt
478
507
  displayName: string;
479
508
  externalPlayerUrl: string | null;
480
509
  rtspUrl: string;
510
+ recordingCapable: boolean;
511
+ lensType: "flat" | "fisheye";
512
+ mountPoint: "wall" | "ceiling" | "floor";
513
+ webrtcPlaybackSource: ({
514
+ kind: string;
515
+ } & Record<string, unknown>) | null;
481
516
  }[];
482
- lensType: "flat" | "fisheye";
483
- mountPoint: "wall" | "ceiling" | "floor";
484
517
  ptzCapable: boolean;
485
518
  ptzPanSpeed: number;
486
519
  ptzTiltSpeed: number;
@@ -491,11 +524,8 @@ export declare const sDeviceParam: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodInt
491
524
  tiltMax: number;
492
525
  zoomMin: number;
493
526
  zoomMax: number;
494
- recordingCapable: boolean;
495
- webrtcPlaybackSource: ({
496
- kind: string;
497
- } & Record<string, unknown>) | null;
498
527
  defaultStreamId: string;
528
+ streamNaming: "stream" | "cameraStreamNo" | "cameraStream";
499
529
  }>, z.ZodObject<{
500
530
  canReportOpenState: z.ZodBoolean;
501
531
  canReportLockState: z.ZodBoolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "2.0.39",
3
+ "version": "2.0.41",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",