@awarevue/api-types 2.0.12 → 2.0.14

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.
Files changed (135) hide show
  1. package/dist/access-control/access-rule.d.ts +6 -6
  2. package/dist/access-control/person.d.ts +6 -6
  3. package/dist/access-control/schedule.d.ts +2 -2
  4. package/dist/access-control/zone.d.ts +4 -4
  5. package/dist/agent-communication/index.d.ts +0 -1
  6. package/dist/agent-communication/index.js +0 -1
  7. package/dist/agent-communication/protocol.d.ts +170 -170
  8. package/dist/alarm-automation.d.ts +1 -1
  9. package/dist/api/alarm.d.ts +1 -1
  10. package/dist/api/media.d.ts +8 -8
  11. package/dist/bookmarks.d.ts +2 -2
  12. package/dist/cast.d.ts +2 -2
  13. package/dist/commands/alarm.d.ts +312 -0
  14. package/dist/commands/alarm.js +62 -0
  15. package/dist/{device-command.d.ts → commands/all.d.ts} +23 -25
  16. package/dist/{device-command.js → commands/all.js} +9 -9
  17. package/dist/commands/camera-lift.d.ts +46 -0
  18. package/dist/commands/camera-lift.js +17 -0
  19. package/dist/commands/camera.d.ts +478 -0
  20. package/dist/commands/camera.js +97 -0
  21. package/dist/commands/display.d.ts +431 -0
  22. package/dist/commands/display.js +37 -0
  23. package/dist/commands/door.d.ts +88 -0
  24. package/dist/commands/door.js +27 -0
  25. package/dist/commands/index.d.ts +12 -0
  26. package/dist/commands/index.js +28 -0
  27. package/dist/commands/intercom-terminal.d.ts +40 -0
  28. package/dist/{device/reader/commands.js → commands/intercom-terminal.js} +1 -0
  29. package/dist/commands/io-board.d.ts +55 -0
  30. package/dist/commands/io-board.js +15 -0
  31. package/dist/commands/nvr-exporter.d.ts +1262 -0
  32. package/dist/commands/nvr-exporter.js +26 -0
  33. package/dist/commands/pbx.d.ts +75 -0
  34. package/dist/commands/pbx.js +17 -0
  35. package/dist/commands/presence-tracker.d.ts +167 -0
  36. package/dist/commands/presence-tracker.js +33 -0
  37. package/dist/commands/server.d.ts +1272 -0
  38. package/dist/commands/server.js +27 -0
  39. package/dist/device/alarm.d.ts +0 -530
  40. package/dist/device/alarm.js +1 -110
  41. package/dist/device/any-device.d.ts +88 -88
  42. package/dist/device/camera-lift.d.ts +0 -45
  43. package/dist/device/camera-lift.js +1 -14
  44. package/dist/device/camera.d.ts +0 -1248
  45. package/dist/device/camera.js +1 -204
  46. package/dist/device/device-gateway.d.ts +0 -2
  47. package/dist/device/device-gateway.js +1 -0
  48. package/dist/device/display.d.ts +0 -438
  49. package/dist/device/display.js +1 -39
  50. package/dist/device/door.d.ts +0 -306
  51. package/dist/device/door.js +1 -82
  52. package/dist/device/index.d.ts +1 -1
  53. package/dist/device/index.js +1 -1
  54. package/dist/device/intercom-operator.js +0 -1
  55. package/dist/device/intercom-terminal.d.ts +0 -101
  56. package/dist/device/intercom-terminal.js +3 -55
  57. package/dist/device/io-board.d.ts +0 -84
  58. package/dist/device/io-board.js +1 -21
  59. package/dist/device/motion-sensor.js +0 -1
  60. package/dist/device/nvr-analytics-server.d.ts +0 -295
  61. package/dist/device/nvr-analytics-server.js +1 -65
  62. package/dist/device/nvr-exporter.d.ts +0 -1436
  63. package/dist/device/nvr-exporter.js +1 -72
  64. package/dist/device/nvr-recorder.d.ts +0 -2633
  65. package/dist/device/nvr-recorder.js +1 -39
  66. package/dist/device/panic-button.d.ts +0 -18
  67. package/dist/device/panic-button.js +1 -8
  68. package/dist/device/pbx.d.ts +0 -74
  69. package/dist/device/pbx.js +1 -16
  70. package/dist/device/presence-tracker.d.ts +0 -302
  71. package/dist/device/presence-tracker.js +1 -59
  72. package/dist/device/server.d.ts +0 -200
  73. package/dist/device/server.js +1 -37
  74. package/dist/device/system.d.ts +0 -42
  75. package/dist/device/system.js +1 -13
  76. package/dist/device-event.d.ts +1 -721
  77. package/dist/device-event.js +0 -110
  78. package/dist/device-group.d.ts +2 -2
  79. package/dist/device-import.d.ts +8 -8
  80. package/dist/events/alarm.d.ts +220 -0
  81. package/dist/events/alarm.js +55 -0
  82. package/dist/events/all.d.ts +700 -0
  83. package/dist/events/all.js +109 -0
  84. package/dist/events/camera.d.ts +661 -0
  85. package/dist/events/camera.js +87 -0
  86. package/dist/events/display.d.ts +9 -0
  87. package/dist/events/display.js +9 -0
  88. package/dist/events/door.d.ts +220 -0
  89. package/dist/events/door.js +62 -0
  90. package/dist/events/index.d.ts +12 -0
  91. package/dist/events/index.js +28 -0
  92. package/dist/events/intercom-terminal.d.ts +61 -0
  93. package/dist/events/intercom-terminal.js +19 -0
  94. package/dist/events/io-board.d.ts +31 -0
  95. package/dist/events/io-board.js +13 -0
  96. package/dist/events/nvr-exporter.d.ts +52 -0
  97. package/dist/events/nvr-exporter.js +21 -0
  98. package/dist/events/panic-button.d.ts +19 -0
  99. package/dist/events/panic-button.js +11 -0
  100. package/dist/events/presence-tracker.d.ts +136 -0
  101. package/dist/events/presence-tracker.js +33 -0
  102. package/dist/events/server.d.ts +65 -0
  103. package/dist/events/server.js +15 -0
  104. package/dist/index.d.ts +4 -1
  105. package/dist/index.js +4 -1
  106. package/dist/layout.d.ts +8 -8
  107. package/dist/macros.d.ts +14 -14
  108. package/dist/messages/device-communication.d.ts +2 -2
  109. package/dist/messages/notifications.d.ts +2 -2
  110. package/dist/messages/web-rtc-signaling.d.ts +10 -10
  111. package/dist/notifications.d.ts +4 -4
  112. package/dist/package.json +1 -1
  113. package/dist/primitives.d.ts +20 -2
  114. package/dist/primitives.js +19 -3
  115. package/dist/{agent-communication/queries.d.ts → queries/all.d.ts} +24 -22
  116. package/dist/queries/all.js +21 -0
  117. package/dist/queries/camera.d.ts +98 -0
  118. package/dist/queries/camera.js +27 -0
  119. package/dist/queries/index.d.ts +5 -0
  120. package/dist/{device/reader → queries}/index.js +5 -3
  121. package/dist/queries/nvr-analytics-server.d.ts +296 -0
  122. package/dist/queries/nvr-analytics-server.js +68 -0
  123. package/dist/queries/nvr-exporter.d.ts +125 -0
  124. package/dist/queries/nvr-exporter.js +36 -0
  125. package/dist/queries/nvr-recorder.d.ts +2634 -0
  126. package/dist/queries/nvr-recorder.js +42 -0
  127. package/dist/user.d.ts +4 -4
  128. package/package.json +1 -1
  129. package/dist/agent-communication/queries.js +0 -19
  130. package/dist/device/reader/commands.d.ts +0 -1
  131. package/dist/device/reader/index.d.ts +0 -3
  132. /package/dist/device/{reader/specs.d.ts → reader.d.ts} +0 -0
  133. /package/dist/device/{reader/specs.js → reader.js} +0 -0
  134. /package/dist/{device/reader/events.d.ts → events/reader.d.ts} +0 -0
  135. /package/dist/{device/reader/events.js → events/reader.js} +0 -0
@@ -0,0 +1,2634 @@
1
+ import { z } from 'zod';
2
+ export declare const QUERY_RECORDINGS_BY_TIME_RANGE = "cctv:recordings-by-time-range";
3
+ export declare const sRecordingsByTimeRangeArgs: z.ZodObject<{
4
+ device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
5
+ name: z.ZodString;
6
+ foreignRef: z.ZodString;
7
+ provider: z.ZodString;
8
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ name: string;
11
+ foreignRef: string;
12
+ provider: string;
13
+ providerMetadata: {} & {
14
+ [k: string]: unknown;
15
+ };
16
+ }, {
17
+ name: string;
18
+ foreignRef: string;
19
+ provider: string;
20
+ providerMetadata: {} & {
21
+ [k: string]: unknown;
22
+ };
23
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
24
+ type: z.ZodLiteral<"alarm">;
25
+ }, "strip", z.ZodTypeAny, {
26
+ type: "alarm";
27
+ }, {
28
+ type: "alarm";
29
+ }>, z.ZodObject<{
30
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
31
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
32
+ ptzCapable: z.ZodBoolean;
33
+ ptzPanSpeed: z.ZodNumber;
34
+ ptzTiltSpeed: z.ZodNumber;
35
+ ptzZoomSpeed: z.ZodNumber;
36
+ panMin: z.ZodNumber;
37
+ panMax: z.ZodNumber;
38
+ tiltMin: z.ZodNumber;
39
+ tiltMax: z.ZodNumber;
40
+ zoomMin: z.ZodNumber;
41
+ zoomMax: z.ZodNumber;
42
+ recordingCapable: z.ZodBoolean;
43
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
44
+ kind: z.ZodString;
45
+ }, "strip", z.ZodTypeAny, {
46
+ kind: string;
47
+ }, {
48
+ kind: string;
49
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
50
+ streams: z.ZodArray<z.ZodObject<{
51
+ id: z.ZodString;
52
+ displayName: z.ZodString;
53
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ id: string;
56
+ displayName: string;
57
+ externalPlayerUrl: string | null;
58
+ }, {
59
+ id: string;
60
+ displayName: string;
61
+ externalPlayerUrl: string | null;
62
+ }>, "many">;
63
+ defaultStreamId: z.ZodString;
64
+ } & {
65
+ type: z.ZodLiteral<"camera">;
66
+ }, "strip", z.ZodTypeAny, {
67
+ type: "camera";
68
+ streams: {
69
+ id: string;
70
+ displayName: string;
71
+ externalPlayerUrl: string | null;
72
+ }[];
73
+ lensType: "flat" | "fisheye";
74
+ mountPoint: "wall" | "ceiling" | "floor";
75
+ ptzCapable: boolean;
76
+ ptzPanSpeed: number;
77
+ ptzTiltSpeed: number;
78
+ ptzZoomSpeed: number;
79
+ panMin: number;
80
+ panMax: number;
81
+ tiltMin: number;
82
+ tiltMax: number;
83
+ zoomMin: number;
84
+ zoomMax: number;
85
+ recordingCapable: boolean;
86
+ webrtcPlaybackSource: ({
87
+ kind: string;
88
+ } & Record<string, unknown>) | null;
89
+ defaultStreamId: string;
90
+ }, {
91
+ type: "camera";
92
+ streams: {
93
+ id: string;
94
+ displayName: string;
95
+ externalPlayerUrl: string | null;
96
+ }[];
97
+ lensType: "flat" | "fisheye";
98
+ mountPoint: "wall" | "ceiling" | "floor";
99
+ ptzCapable: boolean;
100
+ ptzPanSpeed: number;
101
+ ptzTiltSpeed: number;
102
+ ptzZoomSpeed: number;
103
+ panMin: number;
104
+ panMax: number;
105
+ tiltMin: number;
106
+ tiltMax: number;
107
+ zoomMin: number;
108
+ zoomMax: number;
109
+ recordingCapable: boolean;
110
+ webrtcPlaybackSource: ({
111
+ kind: string;
112
+ } & Record<string, unknown>) | null;
113
+ defaultStreamId: string;
114
+ }>, z.ZodObject<{
115
+ canReportOpenState: z.ZodBoolean;
116
+ canReportLockState: z.ZodBoolean;
117
+ canControlLock: z.ZodBoolean;
118
+ canRelease: z.ZodBoolean;
119
+ } & {
120
+ type: z.ZodLiteral<"door">;
121
+ }, "strip", z.ZodTypeAny, {
122
+ type: "door";
123
+ canReportOpenState: boolean;
124
+ canReportLockState: boolean;
125
+ canControlLock: boolean;
126
+ canRelease: boolean;
127
+ }, {
128
+ type: "door";
129
+ canReportOpenState: boolean;
130
+ canReportLockState: boolean;
131
+ canControlLock: boolean;
132
+ canRelease: boolean;
133
+ }>, z.ZodObject<{
134
+ inputs: z.ZodArray<z.ZodString, "many">;
135
+ outputs: z.ZodArray<z.ZodString, "many">;
136
+ } & {
137
+ type: z.ZodLiteral<"io-board">;
138
+ }, "strip", z.ZodTypeAny, {
139
+ type: "io-board";
140
+ inputs: string[];
141
+ outputs: string[];
142
+ }, {
143
+ type: "io-board";
144
+ inputs: string[];
145
+ outputs: string[];
146
+ }>, z.ZodObject<{
147
+ type: z.ZodLiteral<"camera-lift">;
148
+ }, "strip", z.ZodTypeAny, {
149
+ type: "camera-lift";
150
+ }, {
151
+ type: "camera-lift";
152
+ }>, z.ZodObject<{
153
+ type: z.ZodLiteral<"motion-sensor">;
154
+ }, "strip", z.ZodTypeAny, {
155
+ type: "motion-sensor";
156
+ }, {
157
+ type: "motion-sensor";
158
+ }>, z.ZodObject<{
159
+ type: z.ZodLiteral<"panic-button">;
160
+ }, "strip", z.ZodTypeAny, {
161
+ type: "panic-button";
162
+ }, {
163
+ type: "panic-button";
164
+ }>, z.ZodObject<{
165
+ sipUri: z.ZodString;
166
+ sipUser: z.ZodString;
167
+ sipPassword: z.ZodString;
168
+ sipRealm: z.ZodString;
169
+ remoteExtension: z.ZodString;
170
+ } & {
171
+ type: z.ZodLiteral<"intercom-terminal">;
172
+ }, "strip", z.ZodTypeAny, {
173
+ type: "intercom-terminal";
174
+ sipUri: string;
175
+ sipUser: string;
176
+ sipPassword: string;
177
+ sipRealm: string;
178
+ remoteExtension: string;
179
+ }, {
180
+ type: "intercom-terminal";
181
+ sipUri: string;
182
+ sipUser: string;
183
+ sipPassword: string;
184
+ sipRealm: string;
185
+ remoteExtension: string;
186
+ }>, z.ZodObject<{
187
+ sipWsUrl: z.ZodString;
188
+ } & {
189
+ type: z.ZodLiteral<"pbx">;
190
+ }, "strip", z.ZodTypeAny, {
191
+ type: "pbx";
192
+ sipWsUrl: string;
193
+ }, {
194
+ type: "pbx";
195
+ sipWsUrl: string;
196
+ }>, z.ZodObject<{
197
+ type: z.ZodLiteral<"server">;
198
+ }, "strip", z.ZodTypeAny, {
199
+ type: "server";
200
+ }, {
201
+ type: "server";
202
+ }>, z.ZodObject<{
203
+ type: z.ZodLiteral<"intercom-operator">;
204
+ }, "strip", z.ZodTypeAny, {
205
+ type: "intercom-operator";
206
+ }, {
207
+ type: "intercom-operator";
208
+ }>, z.ZodObject<{
209
+ type: z.ZodLiteral<"device-gateway">;
210
+ }, "strip", z.ZodTypeAny, {
211
+ type: "device-gateway";
212
+ }, {
213
+ type: "device-gateway";
214
+ }>, z.ZodObject<{
215
+ type: z.ZodLiteral<"presence-tracker">;
216
+ }, "strip", z.ZodTypeAny, {
217
+ type: "presence-tracker";
218
+ }, {
219
+ type: "presence-tracker";
220
+ }>, z.ZodObject<{
221
+ type: z.ZodLiteral<"reader">;
222
+ }, "strip", z.ZodTypeAny, {
223
+ type: "reader";
224
+ }, {
225
+ type: "reader";
226
+ }>, z.ZodObject<{
227
+ type: z.ZodLiteral<"display">;
228
+ }, "strip", z.ZodTypeAny, {
229
+ type: "display";
230
+ }, {
231
+ type: "display";
232
+ }>, z.ZodObject<{
233
+ type: z.ZodLiteral<"nvr-recorder">;
234
+ }, "strip", z.ZodTypeAny, {
235
+ type: "nvr-recorder";
236
+ }, {
237
+ type: "nvr-recorder";
238
+ }>, z.ZodObject<{
239
+ type: z.ZodLiteral<"nvr-exporter">;
240
+ }, "strip", z.ZodTypeAny, {
241
+ type: "nvr-exporter";
242
+ }, {
243
+ type: "nvr-exporter";
244
+ }>, z.ZodObject<{
245
+ type: z.ZodLiteral<"nvr-analytics-server">;
246
+ }, "strip", z.ZodTypeAny, {
247
+ type: "nvr-analytics-server";
248
+ }, {
249
+ type: "nvr-analytics-server";
250
+ }>, z.ZodObject<{
251
+ type: z.ZodLiteral<"system">;
252
+ }, "strip", z.ZodTypeAny, {
253
+ type: "system";
254
+ }, {
255
+ type: "system";
256
+ }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
257
+ timeFrom: z.ZodNumber;
258
+ timeTo: z.ZodNumber;
259
+ }, "strip", z.ZodTypeAny, {
260
+ device: string | [string, string] | ({
261
+ name: string;
262
+ foreignRef: string;
263
+ provider: string;
264
+ providerMetadata: {} & {
265
+ [k: string]: unknown;
266
+ };
267
+ } & ({
268
+ type: "alarm";
269
+ } | {
270
+ type: "camera";
271
+ streams: {
272
+ id: string;
273
+ displayName: string;
274
+ externalPlayerUrl: string | null;
275
+ }[];
276
+ lensType: "flat" | "fisheye";
277
+ mountPoint: "wall" | "ceiling" | "floor";
278
+ ptzCapable: boolean;
279
+ ptzPanSpeed: number;
280
+ ptzTiltSpeed: number;
281
+ ptzZoomSpeed: number;
282
+ panMin: number;
283
+ panMax: number;
284
+ tiltMin: number;
285
+ tiltMax: number;
286
+ zoomMin: number;
287
+ zoomMax: number;
288
+ recordingCapable: boolean;
289
+ webrtcPlaybackSource: ({
290
+ kind: string;
291
+ } & Record<string, unknown>) | null;
292
+ defaultStreamId: string;
293
+ } | {
294
+ type: "door";
295
+ canReportOpenState: boolean;
296
+ canReportLockState: boolean;
297
+ canControlLock: boolean;
298
+ canRelease: boolean;
299
+ } | {
300
+ type: "io-board";
301
+ inputs: string[];
302
+ outputs: string[];
303
+ } | {
304
+ type: "camera-lift";
305
+ } | {
306
+ type: "motion-sensor";
307
+ } | {
308
+ type: "panic-button";
309
+ } | {
310
+ type: "intercom-terminal";
311
+ sipUri: string;
312
+ sipUser: string;
313
+ sipPassword: string;
314
+ sipRealm: string;
315
+ remoteExtension: string;
316
+ } | {
317
+ type: "pbx";
318
+ sipWsUrl: string;
319
+ } | {
320
+ type: "server";
321
+ } | {
322
+ type: "intercom-operator";
323
+ } | {
324
+ type: "device-gateway";
325
+ } | {
326
+ type: "presence-tracker";
327
+ } | {
328
+ type: "reader";
329
+ } | {
330
+ type: "display";
331
+ } | {
332
+ type: "nvr-recorder";
333
+ } | {
334
+ type: "nvr-exporter";
335
+ } | {
336
+ type: "nvr-analytics-server";
337
+ } | {
338
+ type: "system";
339
+ }));
340
+ timeFrom: number;
341
+ timeTo: number;
342
+ }, {
343
+ device: string | [string, string] | ({
344
+ name: string;
345
+ foreignRef: string;
346
+ provider: string;
347
+ providerMetadata: {} & {
348
+ [k: string]: unknown;
349
+ };
350
+ } & ({
351
+ type: "alarm";
352
+ } | {
353
+ type: "camera";
354
+ streams: {
355
+ id: string;
356
+ displayName: string;
357
+ externalPlayerUrl: string | null;
358
+ }[];
359
+ lensType: "flat" | "fisheye";
360
+ mountPoint: "wall" | "ceiling" | "floor";
361
+ ptzCapable: boolean;
362
+ ptzPanSpeed: number;
363
+ ptzTiltSpeed: number;
364
+ ptzZoomSpeed: number;
365
+ panMin: number;
366
+ panMax: number;
367
+ tiltMin: number;
368
+ tiltMax: number;
369
+ zoomMin: number;
370
+ zoomMax: number;
371
+ recordingCapable: boolean;
372
+ webrtcPlaybackSource: ({
373
+ kind: string;
374
+ } & Record<string, unknown>) | null;
375
+ defaultStreamId: string;
376
+ } | {
377
+ type: "door";
378
+ canReportOpenState: boolean;
379
+ canReportLockState: boolean;
380
+ canControlLock: boolean;
381
+ canRelease: boolean;
382
+ } | {
383
+ type: "io-board";
384
+ inputs: string[];
385
+ outputs: string[];
386
+ } | {
387
+ type: "camera-lift";
388
+ } | {
389
+ type: "motion-sensor";
390
+ } | {
391
+ type: "panic-button";
392
+ } | {
393
+ type: "intercom-terminal";
394
+ sipUri: string;
395
+ sipUser: string;
396
+ sipPassword: string;
397
+ sipRealm: string;
398
+ remoteExtension: string;
399
+ } | {
400
+ type: "pbx";
401
+ sipWsUrl: string;
402
+ } | {
403
+ type: "server";
404
+ } | {
405
+ type: "intercom-operator";
406
+ } | {
407
+ type: "device-gateway";
408
+ } | {
409
+ type: "presence-tracker";
410
+ } | {
411
+ type: "reader";
412
+ } | {
413
+ type: "display";
414
+ } | {
415
+ type: "nvr-recorder";
416
+ } | {
417
+ type: "nvr-exporter";
418
+ } | {
419
+ type: "nvr-analytics-server";
420
+ } | {
421
+ type: "system";
422
+ }));
423
+ timeFrom: number;
424
+ timeTo: number;
425
+ }>;
426
+ export declare const sRecordingsResponse: z.ZodArray<z.ZodObject<{
427
+ start: z.ZodNumber;
428
+ end: z.ZodNumber;
429
+ motion: z.ZodOptional<z.ZodNumber>;
430
+ objects: z.ZodOptional<z.ZodNumber>;
431
+ }, "strip", z.ZodTypeAny, {
432
+ end: number;
433
+ start: number;
434
+ motion?: number | undefined;
435
+ objects?: number | undefined;
436
+ }, {
437
+ end: number;
438
+ start: number;
439
+ motion?: number | undefined;
440
+ objects?: number | undefined;
441
+ }>, "many">;
442
+ export type RecordingsByTimeRangeArgs = z.infer<typeof sRecordingsByTimeRangeArgs>;
443
+ export type RecordingsResponse = z.infer<typeof sRecordingsResponse>;
444
+ export declare const QUERY_PREVIEW_IMAGE = "cctv:preview-image";
445
+ export declare const sPreviewImageArgs: z.ZodObject<{
446
+ device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
447
+ name: z.ZodString;
448
+ foreignRef: z.ZodString;
449
+ provider: z.ZodString;
450
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ name: string;
453
+ foreignRef: string;
454
+ provider: string;
455
+ providerMetadata: {} & {
456
+ [k: string]: unknown;
457
+ };
458
+ }, {
459
+ name: string;
460
+ foreignRef: string;
461
+ provider: string;
462
+ providerMetadata: {} & {
463
+ [k: string]: unknown;
464
+ };
465
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
466
+ type: z.ZodLiteral<"alarm">;
467
+ }, "strip", z.ZodTypeAny, {
468
+ type: "alarm";
469
+ }, {
470
+ type: "alarm";
471
+ }>, z.ZodObject<{
472
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
473
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
474
+ ptzCapable: z.ZodBoolean;
475
+ ptzPanSpeed: z.ZodNumber;
476
+ ptzTiltSpeed: z.ZodNumber;
477
+ ptzZoomSpeed: z.ZodNumber;
478
+ panMin: z.ZodNumber;
479
+ panMax: z.ZodNumber;
480
+ tiltMin: z.ZodNumber;
481
+ tiltMax: z.ZodNumber;
482
+ zoomMin: z.ZodNumber;
483
+ zoomMax: z.ZodNumber;
484
+ recordingCapable: z.ZodBoolean;
485
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
486
+ kind: z.ZodString;
487
+ }, "strip", z.ZodTypeAny, {
488
+ kind: string;
489
+ }, {
490
+ kind: string;
491
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
492
+ streams: z.ZodArray<z.ZodObject<{
493
+ id: z.ZodString;
494
+ displayName: z.ZodString;
495
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
496
+ }, "strip", z.ZodTypeAny, {
497
+ id: string;
498
+ displayName: string;
499
+ externalPlayerUrl: string | null;
500
+ }, {
501
+ id: string;
502
+ displayName: string;
503
+ externalPlayerUrl: string | null;
504
+ }>, "many">;
505
+ defaultStreamId: z.ZodString;
506
+ } & {
507
+ type: z.ZodLiteral<"camera">;
508
+ }, "strip", z.ZodTypeAny, {
509
+ type: "camera";
510
+ streams: {
511
+ id: string;
512
+ displayName: string;
513
+ externalPlayerUrl: string | null;
514
+ }[];
515
+ lensType: "flat" | "fisheye";
516
+ mountPoint: "wall" | "ceiling" | "floor";
517
+ ptzCapable: boolean;
518
+ ptzPanSpeed: number;
519
+ ptzTiltSpeed: number;
520
+ ptzZoomSpeed: number;
521
+ panMin: number;
522
+ panMax: number;
523
+ tiltMin: number;
524
+ tiltMax: number;
525
+ zoomMin: number;
526
+ zoomMax: number;
527
+ recordingCapable: boolean;
528
+ webrtcPlaybackSource: ({
529
+ kind: string;
530
+ } & Record<string, unknown>) | null;
531
+ defaultStreamId: string;
532
+ }, {
533
+ type: "camera";
534
+ streams: {
535
+ id: string;
536
+ displayName: string;
537
+ externalPlayerUrl: string | null;
538
+ }[];
539
+ lensType: "flat" | "fisheye";
540
+ mountPoint: "wall" | "ceiling" | "floor";
541
+ ptzCapable: boolean;
542
+ ptzPanSpeed: number;
543
+ ptzTiltSpeed: number;
544
+ ptzZoomSpeed: number;
545
+ panMin: number;
546
+ panMax: number;
547
+ tiltMin: number;
548
+ tiltMax: number;
549
+ zoomMin: number;
550
+ zoomMax: number;
551
+ recordingCapable: boolean;
552
+ webrtcPlaybackSource: ({
553
+ kind: string;
554
+ } & Record<string, unknown>) | null;
555
+ defaultStreamId: string;
556
+ }>, z.ZodObject<{
557
+ canReportOpenState: z.ZodBoolean;
558
+ canReportLockState: z.ZodBoolean;
559
+ canControlLock: z.ZodBoolean;
560
+ canRelease: z.ZodBoolean;
561
+ } & {
562
+ type: z.ZodLiteral<"door">;
563
+ }, "strip", z.ZodTypeAny, {
564
+ type: "door";
565
+ canReportOpenState: boolean;
566
+ canReportLockState: boolean;
567
+ canControlLock: boolean;
568
+ canRelease: boolean;
569
+ }, {
570
+ type: "door";
571
+ canReportOpenState: boolean;
572
+ canReportLockState: boolean;
573
+ canControlLock: boolean;
574
+ canRelease: boolean;
575
+ }>, z.ZodObject<{
576
+ inputs: z.ZodArray<z.ZodString, "many">;
577
+ outputs: z.ZodArray<z.ZodString, "many">;
578
+ } & {
579
+ type: z.ZodLiteral<"io-board">;
580
+ }, "strip", z.ZodTypeAny, {
581
+ type: "io-board";
582
+ inputs: string[];
583
+ outputs: string[];
584
+ }, {
585
+ type: "io-board";
586
+ inputs: string[];
587
+ outputs: string[];
588
+ }>, z.ZodObject<{
589
+ type: z.ZodLiteral<"camera-lift">;
590
+ }, "strip", z.ZodTypeAny, {
591
+ type: "camera-lift";
592
+ }, {
593
+ type: "camera-lift";
594
+ }>, z.ZodObject<{
595
+ type: z.ZodLiteral<"motion-sensor">;
596
+ }, "strip", z.ZodTypeAny, {
597
+ type: "motion-sensor";
598
+ }, {
599
+ type: "motion-sensor";
600
+ }>, z.ZodObject<{
601
+ type: z.ZodLiteral<"panic-button">;
602
+ }, "strip", z.ZodTypeAny, {
603
+ type: "panic-button";
604
+ }, {
605
+ type: "panic-button";
606
+ }>, z.ZodObject<{
607
+ sipUri: z.ZodString;
608
+ sipUser: z.ZodString;
609
+ sipPassword: z.ZodString;
610
+ sipRealm: z.ZodString;
611
+ remoteExtension: z.ZodString;
612
+ } & {
613
+ type: z.ZodLiteral<"intercom-terminal">;
614
+ }, "strip", z.ZodTypeAny, {
615
+ type: "intercom-terminal";
616
+ sipUri: string;
617
+ sipUser: string;
618
+ sipPassword: string;
619
+ sipRealm: string;
620
+ remoteExtension: string;
621
+ }, {
622
+ type: "intercom-terminal";
623
+ sipUri: string;
624
+ sipUser: string;
625
+ sipPassword: string;
626
+ sipRealm: string;
627
+ remoteExtension: string;
628
+ }>, z.ZodObject<{
629
+ sipWsUrl: z.ZodString;
630
+ } & {
631
+ type: z.ZodLiteral<"pbx">;
632
+ }, "strip", z.ZodTypeAny, {
633
+ type: "pbx";
634
+ sipWsUrl: string;
635
+ }, {
636
+ type: "pbx";
637
+ sipWsUrl: string;
638
+ }>, z.ZodObject<{
639
+ type: z.ZodLiteral<"server">;
640
+ }, "strip", z.ZodTypeAny, {
641
+ type: "server";
642
+ }, {
643
+ type: "server";
644
+ }>, z.ZodObject<{
645
+ type: z.ZodLiteral<"intercom-operator">;
646
+ }, "strip", z.ZodTypeAny, {
647
+ type: "intercom-operator";
648
+ }, {
649
+ type: "intercom-operator";
650
+ }>, z.ZodObject<{
651
+ type: z.ZodLiteral<"device-gateway">;
652
+ }, "strip", z.ZodTypeAny, {
653
+ type: "device-gateway";
654
+ }, {
655
+ type: "device-gateway";
656
+ }>, z.ZodObject<{
657
+ type: z.ZodLiteral<"presence-tracker">;
658
+ }, "strip", z.ZodTypeAny, {
659
+ type: "presence-tracker";
660
+ }, {
661
+ type: "presence-tracker";
662
+ }>, z.ZodObject<{
663
+ type: z.ZodLiteral<"reader">;
664
+ }, "strip", z.ZodTypeAny, {
665
+ type: "reader";
666
+ }, {
667
+ type: "reader";
668
+ }>, z.ZodObject<{
669
+ type: z.ZodLiteral<"display">;
670
+ }, "strip", z.ZodTypeAny, {
671
+ type: "display";
672
+ }, {
673
+ type: "display";
674
+ }>, z.ZodObject<{
675
+ type: z.ZodLiteral<"nvr-recorder">;
676
+ }, "strip", z.ZodTypeAny, {
677
+ type: "nvr-recorder";
678
+ }, {
679
+ type: "nvr-recorder";
680
+ }>, z.ZodObject<{
681
+ type: z.ZodLiteral<"nvr-exporter">;
682
+ }, "strip", z.ZodTypeAny, {
683
+ type: "nvr-exporter";
684
+ }, {
685
+ type: "nvr-exporter";
686
+ }>, z.ZodObject<{
687
+ type: z.ZodLiteral<"nvr-analytics-server">;
688
+ }, "strip", z.ZodTypeAny, {
689
+ type: "nvr-analytics-server";
690
+ }, {
691
+ type: "nvr-analytics-server";
692
+ }>, z.ZodObject<{
693
+ type: z.ZodLiteral<"system">;
694
+ }, "strip", z.ZodTypeAny, {
695
+ type: "system";
696
+ }, {
697
+ type: "system";
698
+ }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
699
+ time: z.ZodNumber;
700
+ height: z.ZodNumber;
701
+ }, "strip", z.ZodTypeAny, {
702
+ time: number;
703
+ height: number;
704
+ device: string | [string, string] | ({
705
+ name: string;
706
+ foreignRef: string;
707
+ provider: string;
708
+ providerMetadata: {} & {
709
+ [k: string]: unknown;
710
+ };
711
+ } & ({
712
+ type: "alarm";
713
+ } | {
714
+ type: "camera";
715
+ streams: {
716
+ id: string;
717
+ displayName: string;
718
+ externalPlayerUrl: string | null;
719
+ }[];
720
+ lensType: "flat" | "fisheye";
721
+ mountPoint: "wall" | "ceiling" | "floor";
722
+ ptzCapable: boolean;
723
+ ptzPanSpeed: number;
724
+ ptzTiltSpeed: number;
725
+ ptzZoomSpeed: number;
726
+ panMin: number;
727
+ panMax: number;
728
+ tiltMin: number;
729
+ tiltMax: number;
730
+ zoomMin: number;
731
+ zoomMax: number;
732
+ recordingCapable: boolean;
733
+ webrtcPlaybackSource: ({
734
+ kind: string;
735
+ } & Record<string, unknown>) | null;
736
+ defaultStreamId: string;
737
+ } | {
738
+ type: "door";
739
+ canReportOpenState: boolean;
740
+ canReportLockState: boolean;
741
+ canControlLock: boolean;
742
+ canRelease: boolean;
743
+ } | {
744
+ type: "io-board";
745
+ inputs: string[];
746
+ outputs: string[];
747
+ } | {
748
+ type: "camera-lift";
749
+ } | {
750
+ type: "motion-sensor";
751
+ } | {
752
+ type: "panic-button";
753
+ } | {
754
+ type: "intercom-terminal";
755
+ sipUri: string;
756
+ sipUser: string;
757
+ sipPassword: string;
758
+ sipRealm: string;
759
+ remoteExtension: string;
760
+ } | {
761
+ type: "pbx";
762
+ sipWsUrl: string;
763
+ } | {
764
+ type: "server";
765
+ } | {
766
+ type: "intercom-operator";
767
+ } | {
768
+ type: "device-gateway";
769
+ } | {
770
+ type: "presence-tracker";
771
+ } | {
772
+ type: "reader";
773
+ } | {
774
+ type: "display";
775
+ } | {
776
+ type: "nvr-recorder";
777
+ } | {
778
+ type: "nvr-exporter";
779
+ } | {
780
+ type: "nvr-analytics-server";
781
+ } | {
782
+ type: "system";
783
+ }));
784
+ }, {
785
+ time: number;
786
+ height: number;
787
+ device: string | [string, string] | ({
788
+ name: string;
789
+ foreignRef: string;
790
+ provider: string;
791
+ providerMetadata: {} & {
792
+ [k: string]: unknown;
793
+ };
794
+ } & ({
795
+ type: "alarm";
796
+ } | {
797
+ type: "camera";
798
+ streams: {
799
+ id: string;
800
+ displayName: string;
801
+ externalPlayerUrl: string | null;
802
+ }[];
803
+ lensType: "flat" | "fisheye";
804
+ mountPoint: "wall" | "ceiling" | "floor";
805
+ ptzCapable: boolean;
806
+ ptzPanSpeed: number;
807
+ ptzTiltSpeed: number;
808
+ ptzZoomSpeed: number;
809
+ panMin: number;
810
+ panMax: number;
811
+ tiltMin: number;
812
+ tiltMax: number;
813
+ zoomMin: number;
814
+ zoomMax: number;
815
+ recordingCapable: boolean;
816
+ webrtcPlaybackSource: ({
817
+ kind: string;
818
+ } & Record<string, unknown>) | null;
819
+ defaultStreamId: string;
820
+ } | {
821
+ type: "door";
822
+ canReportOpenState: boolean;
823
+ canReportLockState: boolean;
824
+ canControlLock: boolean;
825
+ canRelease: boolean;
826
+ } | {
827
+ type: "io-board";
828
+ inputs: string[];
829
+ outputs: string[];
830
+ } | {
831
+ type: "camera-lift";
832
+ } | {
833
+ type: "motion-sensor";
834
+ } | {
835
+ type: "panic-button";
836
+ } | {
837
+ type: "intercom-terminal";
838
+ sipUri: string;
839
+ sipUser: string;
840
+ sipPassword: string;
841
+ sipRealm: string;
842
+ remoteExtension: string;
843
+ } | {
844
+ type: "pbx";
845
+ sipWsUrl: string;
846
+ } | {
847
+ type: "server";
848
+ } | {
849
+ type: "intercom-operator";
850
+ } | {
851
+ type: "device-gateway";
852
+ } | {
853
+ type: "presence-tracker";
854
+ } | {
855
+ type: "reader";
856
+ } | {
857
+ type: "display";
858
+ } | {
859
+ type: "nvr-recorder";
860
+ } | {
861
+ type: "nvr-exporter";
862
+ } | {
863
+ type: "nvr-analytics-server";
864
+ } | {
865
+ type: "system";
866
+ }));
867
+ }>;
868
+ export declare const sPreviewImageResponse: z.ZodNullable<z.ZodObject<{
869
+ mimeType: z.ZodString;
870
+ data: z.ZodString;
871
+ }, "strip", z.ZodTypeAny, {
872
+ data: string;
873
+ mimeType: string;
874
+ }, {
875
+ data: string;
876
+ mimeType: string;
877
+ }>>;
878
+ export type PreviewImageArgs = z.infer<typeof sPreviewImageArgs>;
879
+ export type PreviewImageResponse = z.infer<typeof sPreviewImageResponse>;
880
+ export declare const QUERY_CAMERA_LATEST_FRAME = "cctv:latest-frame";
881
+ export declare const sCameraLatestFrameArgs: z.ZodObject<{
882
+ device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
883
+ name: z.ZodString;
884
+ foreignRef: z.ZodString;
885
+ provider: z.ZodString;
886
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
887
+ }, "strip", z.ZodTypeAny, {
888
+ name: string;
889
+ foreignRef: string;
890
+ provider: string;
891
+ providerMetadata: {} & {
892
+ [k: string]: unknown;
893
+ };
894
+ }, {
895
+ name: string;
896
+ foreignRef: string;
897
+ provider: string;
898
+ providerMetadata: {} & {
899
+ [k: string]: unknown;
900
+ };
901
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
902
+ type: z.ZodLiteral<"alarm">;
903
+ }, "strip", z.ZodTypeAny, {
904
+ type: "alarm";
905
+ }, {
906
+ type: "alarm";
907
+ }>, z.ZodObject<{
908
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
909
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
910
+ ptzCapable: z.ZodBoolean;
911
+ ptzPanSpeed: z.ZodNumber;
912
+ ptzTiltSpeed: z.ZodNumber;
913
+ ptzZoomSpeed: z.ZodNumber;
914
+ panMin: z.ZodNumber;
915
+ panMax: z.ZodNumber;
916
+ tiltMin: z.ZodNumber;
917
+ tiltMax: z.ZodNumber;
918
+ zoomMin: z.ZodNumber;
919
+ zoomMax: z.ZodNumber;
920
+ recordingCapable: z.ZodBoolean;
921
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
922
+ kind: z.ZodString;
923
+ }, "strip", z.ZodTypeAny, {
924
+ kind: string;
925
+ }, {
926
+ kind: string;
927
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
928
+ streams: z.ZodArray<z.ZodObject<{
929
+ id: z.ZodString;
930
+ displayName: z.ZodString;
931
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
932
+ }, "strip", z.ZodTypeAny, {
933
+ id: string;
934
+ displayName: string;
935
+ externalPlayerUrl: string | null;
936
+ }, {
937
+ id: string;
938
+ displayName: string;
939
+ externalPlayerUrl: string | null;
940
+ }>, "many">;
941
+ defaultStreamId: z.ZodString;
942
+ } & {
943
+ type: z.ZodLiteral<"camera">;
944
+ }, "strip", z.ZodTypeAny, {
945
+ type: "camera";
946
+ streams: {
947
+ id: string;
948
+ displayName: string;
949
+ externalPlayerUrl: string | null;
950
+ }[];
951
+ lensType: "flat" | "fisheye";
952
+ mountPoint: "wall" | "ceiling" | "floor";
953
+ ptzCapable: boolean;
954
+ ptzPanSpeed: number;
955
+ ptzTiltSpeed: number;
956
+ ptzZoomSpeed: number;
957
+ panMin: number;
958
+ panMax: number;
959
+ tiltMin: number;
960
+ tiltMax: number;
961
+ zoomMin: number;
962
+ zoomMax: number;
963
+ recordingCapable: boolean;
964
+ webrtcPlaybackSource: ({
965
+ kind: string;
966
+ } & Record<string, unknown>) | null;
967
+ defaultStreamId: string;
968
+ }, {
969
+ type: "camera";
970
+ streams: {
971
+ id: string;
972
+ displayName: string;
973
+ externalPlayerUrl: string | null;
974
+ }[];
975
+ lensType: "flat" | "fisheye";
976
+ mountPoint: "wall" | "ceiling" | "floor";
977
+ ptzCapable: boolean;
978
+ ptzPanSpeed: number;
979
+ ptzTiltSpeed: number;
980
+ ptzZoomSpeed: number;
981
+ panMin: number;
982
+ panMax: number;
983
+ tiltMin: number;
984
+ tiltMax: number;
985
+ zoomMin: number;
986
+ zoomMax: number;
987
+ recordingCapable: boolean;
988
+ webrtcPlaybackSource: ({
989
+ kind: string;
990
+ } & Record<string, unknown>) | null;
991
+ defaultStreamId: string;
992
+ }>, z.ZodObject<{
993
+ canReportOpenState: z.ZodBoolean;
994
+ canReportLockState: z.ZodBoolean;
995
+ canControlLock: z.ZodBoolean;
996
+ canRelease: z.ZodBoolean;
997
+ } & {
998
+ type: z.ZodLiteral<"door">;
999
+ }, "strip", z.ZodTypeAny, {
1000
+ type: "door";
1001
+ canReportOpenState: boolean;
1002
+ canReportLockState: boolean;
1003
+ canControlLock: boolean;
1004
+ canRelease: boolean;
1005
+ }, {
1006
+ type: "door";
1007
+ canReportOpenState: boolean;
1008
+ canReportLockState: boolean;
1009
+ canControlLock: boolean;
1010
+ canRelease: boolean;
1011
+ }>, z.ZodObject<{
1012
+ inputs: z.ZodArray<z.ZodString, "many">;
1013
+ outputs: z.ZodArray<z.ZodString, "many">;
1014
+ } & {
1015
+ type: z.ZodLiteral<"io-board">;
1016
+ }, "strip", z.ZodTypeAny, {
1017
+ type: "io-board";
1018
+ inputs: string[];
1019
+ outputs: string[];
1020
+ }, {
1021
+ type: "io-board";
1022
+ inputs: string[];
1023
+ outputs: string[];
1024
+ }>, z.ZodObject<{
1025
+ type: z.ZodLiteral<"camera-lift">;
1026
+ }, "strip", z.ZodTypeAny, {
1027
+ type: "camera-lift";
1028
+ }, {
1029
+ type: "camera-lift";
1030
+ }>, z.ZodObject<{
1031
+ type: z.ZodLiteral<"motion-sensor">;
1032
+ }, "strip", z.ZodTypeAny, {
1033
+ type: "motion-sensor";
1034
+ }, {
1035
+ type: "motion-sensor";
1036
+ }>, z.ZodObject<{
1037
+ type: z.ZodLiteral<"panic-button">;
1038
+ }, "strip", z.ZodTypeAny, {
1039
+ type: "panic-button";
1040
+ }, {
1041
+ type: "panic-button";
1042
+ }>, z.ZodObject<{
1043
+ sipUri: z.ZodString;
1044
+ sipUser: z.ZodString;
1045
+ sipPassword: z.ZodString;
1046
+ sipRealm: z.ZodString;
1047
+ remoteExtension: z.ZodString;
1048
+ } & {
1049
+ type: z.ZodLiteral<"intercom-terminal">;
1050
+ }, "strip", z.ZodTypeAny, {
1051
+ type: "intercom-terminal";
1052
+ sipUri: string;
1053
+ sipUser: string;
1054
+ sipPassword: string;
1055
+ sipRealm: string;
1056
+ remoteExtension: string;
1057
+ }, {
1058
+ type: "intercom-terminal";
1059
+ sipUri: string;
1060
+ sipUser: string;
1061
+ sipPassword: string;
1062
+ sipRealm: string;
1063
+ remoteExtension: string;
1064
+ }>, z.ZodObject<{
1065
+ sipWsUrl: z.ZodString;
1066
+ } & {
1067
+ type: z.ZodLiteral<"pbx">;
1068
+ }, "strip", z.ZodTypeAny, {
1069
+ type: "pbx";
1070
+ sipWsUrl: string;
1071
+ }, {
1072
+ type: "pbx";
1073
+ sipWsUrl: string;
1074
+ }>, z.ZodObject<{
1075
+ type: z.ZodLiteral<"server">;
1076
+ }, "strip", z.ZodTypeAny, {
1077
+ type: "server";
1078
+ }, {
1079
+ type: "server";
1080
+ }>, z.ZodObject<{
1081
+ type: z.ZodLiteral<"intercom-operator">;
1082
+ }, "strip", z.ZodTypeAny, {
1083
+ type: "intercom-operator";
1084
+ }, {
1085
+ type: "intercom-operator";
1086
+ }>, z.ZodObject<{
1087
+ type: z.ZodLiteral<"device-gateway">;
1088
+ }, "strip", z.ZodTypeAny, {
1089
+ type: "device-gateway";
1090
+ }, {
1091
+ type: "device-gateway";
1092
+ }>, z.ZodObject<{
1093
+ type: z.ZodLiteral<"presence-tracker">;
1094
+ }, "strip", z.ZodTypeAny, {
1095
+ type: "presence-tracker";
1096
+ }, {
1097
+ type: "presence-tracker";
1098
+ }>, z.ZodObject<{
1099
+ type: z.ZodLiteral<"reader">;
1100
+ }, "strip", z.ZodTypeAny, {
1101
+ type: "reader";
1102
+ }, {
1103
+ type: "reader";
1104
+ }>, z.ZodObject<{
1105
+ type: z.ZodLiteral<"display">;
1106
+ }, "strip", z.ZodTypeAny, {
1107
+ type: "display";
1108
+ }, {
1109
+ type: "display";
1110
+ }>, z.ZodObject<{
1111
+ type: z.ZodLiteral<"nvr-recorder">;
1112
+ }, "strip", z.ZodTypeAny, {
1113
+ type: "nvr-recorder";
1114
+ }, {
1115
+ type: "nvr-recorder";
1116
+ }>, z.ZodObject<{
1117
+ type: z.ZodLiteral<"nvr-exporter">;
1118
+ }, "strip", z.ZodTypeAny, {
1119
+ type: "nvr-exporter";
1120
+ }, {
1121
+ type: "nvr-exporter";
1122
+ }>, z.ZodObject<{
1123
+ type: z.ZodLiteral<"nvr-analytics-server">;
1124
+ }, "strip", z.ZodTypeAny, {
1125
+ type: "nvr-analytics-server";
1126
+ }, {
1127
+ type: "nvr-analytics-server";
1128
+ }>, z.ZodObject<{
1129
+ type: z.ZodLiteral<"system">;
1130
+ }, "strip", z.ZodTypeAny, {
1131
+ type: "system";
1132
+ }, {
1133
+ type: "system";
1134
+ }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
1135
+ width: z.ZodNumber;
1136
+ height: z.ZodNumber;
1137
+ }, "strip", z.ZodTypeAny, {
1138
+ height: number;
1139
+ width: number;
1140
+ device: string | [string, string] | ({
1141
+ name: string;
1142
+ foreignRef: string;
1143
+ provider: string;
1144
+ providerMetadata: {} & {
1145
+ [k: string]: unknown;
1146
+ };
1147
+ } & ({
1148
+ type: "alarm";
1149
+ } | {
1150
+ type: "camera";
1151
+ streams: {
1152
+ id: string;
1153
+ displayName: string;
1154
+ externalPlayerUrl: string | null;
1155
+ }[];
1156
+ lensType: "flat" | "fisheye";
1157
+ mountPoint: "wall" | "ceiling" | "floor";
1158
+ ptzCapable: boolean;
1159
+ ptzPanSpeed: number;
1160
+ ptzTiltSpeed: number;
1161
+ ptzZoomSpeed: number;
1162
+ panMin: number;
1163
+ panMax: number;
1164
+ tiltMin: number;
1165
+ tiltMax: number;
1166
+ zoomMin: number;
1167
+ zoomMax: number;
1168
+ recordingCapable: boolean;
1169
+ webrtcPlaybackSource: ({
1170
+ kind: string;
1171
+ } & Record<string, unknown>) | null;
1172
+ defaultStreamId: string;
1173
+ } | {
1174
+ type: "door";
1175
+ canReportOpenState: boolean;
1176
+ canReportLockState: boolean;
1177
+ canControlLock: boolean;
1178
+ canRelease: boolean;
1179
+ } | {
1180
+ type: "io-board";
1181
+ inputs: string[];
1182
+ outputs: string[];
1183
+ } | {
1184
+ type: "camera-lift";
1185
+ } | {
1186
+ type: "motion-sensor";
1187
+ } | {
1188
+ type: "panic-button";
1189
+ } | {
1190
+ type: "intercom-terminal";
1191
+ sipUri: string;
1192
+ sipUser: string;
1193
+ sipPassword: string;
1194
+ sipRealm: string;
1195
+ remoteExtension: string;
1196
+ } | {
1197
+ type: "pbx";
1198
+ sipWsUrl: string;
1199
+ } | {
1200
+ type: "server";
1201
+ } | {
1202
+ type: "intercom-operator";
1203
+ } | {
1204
+ type: "device-gateway";
1205
+ } | {
1206
+ type: "presence-tracker";
1207
+ } | {
1208
+ type: "reader";
1209
+ } | {
1210
+ type: "display";
1211
+ } | {
1212
+ type: "nvr-recorder";
1213
+ } | {
1214
+ type: "nvr-exporter";
1215
+ } | {
1216
+ type: "nvr-analytics-server";
1217
+ } | {
1218
+ type: "system";
1219
+ }));
1220
+ }, {
1221
+ height: number;
1222
+ width: number;
1223
+ device: string | [string, string] | ({
1224
+ name: string;
1225
+ foreignRef: string;
1226
+ provider: string;
1227
+ providerMetadata: {} & {
1228
+ [k: string]: unknown;
1229
+ };
1230
+ } & ({
1231
+ type: "alarm";
1232
+ } | {
1233
+ type: "camera";
1234
+ streams: {
1235
+ id: string;
1236
+ displayName: string;
1237
+ externalPlayerUrl: string | null;
1238
+ }[];
1239
+ lensType: "flat" | "fisheye";
1240
+ mountPoint: "wall" | "ceiling" | "floor";
1241
+ ptzCapable: boolean;
1242
+ ptzPanSpeed: number;
1243
+ ptzTiltSpeed: number;
1244
+ ptzZoomSpeed: number;
1245
+ panMin: number;
1246
+ panMax: number;
1247
+ tiltMin: number;
1248
+ tiltMax: number;
1249
+ zoomMin: number;
1250
+ zoomMax: number;
1251
+ recordingCapable: boolean;
1252
+ webrtcPlaybackSource: ({
1253
+ kind: string;
1254
+ } & Record<string, unknown>) | null;
1255
+ defaultStreamId: string;
1256
+ } | {
1257
+ type: "door";
1258
+ canReportOpenState: boolean;
1259
+ canReportLockState: boolean;
1260
+ canControlLock: boolean;
1261
+ canRelease: boolean;
1262
+ } | {
1263
+ type: "io-board";
1264
+ inputs: string[];
1265
+ outputs: string[];
1266
+ } | {
1267
+ type: "camera-lift";
1268
+ } | {
1269
+ type: "motion-sensor";
1270
+ } | {
1271
+ type: "panic-button";
1272
+ } | {
1273
+ type: "intercom-terminal";
1274
+ sipUri: string;
1275
+ sipUser: string;
1276
+ sipPassword: string;
1277
+ sipRealm: string;
1278
+ remoteExtension: string;
1279
+ } | {
1280
+ type: "pbx";
1281
+ sipWsUrl: string;
1282
+ } | {
1283
+ type: "server";
1284
+ } | {
1285
+ type: "intercom-operator";
1286
+ } | {
1287
+ type: "device-gateway";
1288
+ } | {
1289
+ type: "presence-tracker";
1290
+ } | {
1291
+ type: "reader";
1292
+ } | {
1293
+ type: "display";
1294
+ } | {
1295
+ type: "nvr-recorder";
1296
+ } | {
1297
+ type: "nvr-exporter";
1298
+ } | {
1299
+ type: "nvr-analytics-server";
1300
+ } | {
1301
+ type: "system";
1302
+ }));
1303
+ }>;
1304
+ export declare const sCameraLatestFrameResponse: z.ZodNullable<z.ZodObject<{
1305
+ mimeType: z.ZodString;
1306
+ data: z.ZodString;
1307
+ }, "strip", z.ZodTypeAny, {
1308
+ data: string;
1309
+ mimeType: string;
1310
+ }, {
1311
+ data: string;
1312
+ mimeType: string;
1313
+ }>>;
1314
+ export type CameraLatestFrameArgs = z.infer<typeof sCameraLatestFrameArgs>;
1315
+ export type CameraLatestFrameResponse = z.infer<typeof sCameraLatestFrameResponse>;
1316
+ export declare const nvrRecorderRequestSchemas: {
1317
+ readonly "cctv:recordings-by-time-range": z.ZodObject<{
1318
+ device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
1319
+ name: z.ZodString;
1320
+ foreignRef: z.ZodString;
1321
+ provider: z.ZodString;
1322
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
1323
+ }, "strip", z.ZodTypeAny, {
1324
+ name: string;
1325
+ foreignRef: string;
1326
+ provider: string;
1327
+ providerMetadata: {} & {
1328
+ [k: string]: unknown;
1329
+ };
1330
+ }, {
1331
+ name: string;
1332
+ foreignRef: string;
1333
+ provider: string;
1334
+ providerMetadata: {} & {
1335
+ [k: string]: unknown;
1336
+ };
1337
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1338
+ type: z.ZodLiteral<"alarm">;
1339
+ }, "strip", z.ZodTypeAny, {
1340
+ type: "alarm";
1341
+ }, {
1342
+ type: "alarm";
1343
+ }>, z.ZodObject<{
1344
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
1345
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
1346
+ ptzCapable: z.ZodBoolean;
1347
+ ptzPanSpeed: z.ZodNumber;
1348
+ ptzTiltSpeed: z.ZodNumber;
1349
+ ptzZoomSpeed: z.ZodNumber;
1350
+ panMin: z.ZodNumber;
1351
+ panMax: z.ZodNumber;
1352
+ tiltMin: z.ZodNumber;
1353
+ tiltMax: z.ZodNumber;
1354
+ zoomMin: z.ZodNumber;
1355
+ zoomMax: z.ZodNumber;
1356
+ recordingCapable: z.ZodBoolean;
1357
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
1358
+ kind: z.ZodString;
1359
+ }, "strip", z.ZodTypeAny, {
1360
+ kind: string;
1361
+ }, {
1362
+ kind: string;
1363
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1364
+ streams: z.ZodArray<z.ZodObject<{
1365
+ id: z.ZodString;
1366
+ displayName: z.ZodString;
1367
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
1368
+ }, "strip", z.ZodTypeAny, {
1369
+ id: string;
1370
+ displayName: string;
1371
+ externalPlayerUrl: string | null;
1372
+ }, {
1373
+ id: string;
1374
+ displayName: string;
1375
+ externalPlayerUrl: string | null;
1376
+ }>, "many">;
1377
+ defaultStreamId: z.ZodString;
1378
+ } & {
1379
+ type: z.ZodLiteral<"camera">;
1380
+ }, "strip", z.ZodTypeAny, {
1381
+ type: "camera";
1382
+ streams: {
1383
+ id: string;
1384
+ displayName: string;
1385
+ externalPlayerUrl: string | null;
1386
+ }[];
1387
+ lensType: "flat" | "fisheye";
1388
+ mountPoint: "wall" | "ceiling" | "floor";
1389
+ ptzCapable: boolean;
1390
+ ptzPanSpeed: number;
1391
+ ptzTiltSpeed: number;
1392
+ ptzZoomSpeed: number;
1393
+ panMin: number;
1394
+ panMax: number;
1395
+ tiltMin: number;
1396
+ tiltMax: number;
1397
+ zoomMin: number;
1398
+ zoomMax: number;
1399
+ recordingCapable: boolean;
1400
+ webrtcPlaybackSource: ({
1401
+ kind: string;
1402
+ } & Record<string, unknown>) | null;
1403
+ defaultStreamId: string;
1404
+ }, {
1405
+ type: "camera";
1406
+ streams: {
1407
+ id: string;
1408
+ displayName: string;
1409
+ externalPlayerUrl: string | null;
1410
+ }[];
1411
+ lensType: "flat" | "fisheye";
1412
+ mountPoint: "wall" | "ceiling" | "floor";
1413
+ ptzCapable: boolean;
1414
+ ptzPanSpeed: number;
1415
+ ptzTiltSpeed: number;
1416
+ ptzZoomSpeed: number;
1417
+ panMin: number;
1418
+ panMax: number;
1419
+ tiltMin: number;
1420
+ tiltMax: number;
1421
+ zoomMin: number;
1422
+ zoomMax: number;
1423
+ recordingCapable: boolean;
1424
+ webrtcPlaybackSource: ({
1425
+ kind: string;
1426
+ } & Record<string, unknown>) | null;
1427
+ defaultStreamId: string;
1428
+ }>, z.ZodObject<{
1429
+ canReportOpenState: z.ZodBoolean;
1430
+ canReportLockState: z.ZodBoolean;
1431
+ canControlLock: z.ZodBoolean;
1432
+ canRelease: z.ZodBoolean;
1433
+ } & {
1434
+ type: z.ZodLiteral<"door">;
1435
+ }, "strip", z.ZodTypeAny, {
1436
+ type: "door";
1437
+ canReportOpenState: boolean;
1438
+ canReportLockState: boolean;
1439
+ canControlLock: boolean;
1440
+ canRelease: boolean;
1441
+ }, {
1442
+ type: "door";
1443
+ canReportOpenState: boolean;
1444
+ canReportLockState: boolean;
1445
+ canControlLock: boolean;
1446
+ canRelease: boolean;
1447
+ }>, z.ZodObject<{
1448
+ inputs: z.ZodArray<z.ZodString, "many">;
1449
+ outputs: z.ZodArray<z.ZodString, "many">;
1450
+ } & {
1451
+ type: z.ZodLiteral<"io-board">;
1452
+ }, "strip", z.ZodTypeAny, {
1453
+ type: "io-board";
1454
+ inputs: string[];
1455
+ outputs: string[];
1456
+ }, {
1457
+ type: "io-board";
1458
+ inputs: string[];
1459
+ outputs: string[];
1460
+ }>, z.ZodObject<{
1461
+ type: z.ZodLiteral<"camera-lift">;
1462
+ }, "strip", z.ZodTypeAny, {
1463
+ type: "camera-lift";
1464
+ }, {
1465
+ type: "camera-lift";
1466
+ }>, z.ZodObject<{
1467
+ type: z.ZodLiteral<"motion-sensor">;
1468
+ }, "strip", z.ZodTypeAny, {
1469
+ type: "motion-sensor";
1470
+ }, {
1471
+ type: "motion-sensor";
1472
+ }>, z.ZodObject<{
1473
+ type: z.ZodLiteral<"panic-button">;
1474
+ }, "strip", z.ZodTypeAny, {
1475
+ type: "panic-button";
1476
+ }, {
1477
+ type: "panic-button";
1478
+ }>, z.ZodObject<{
1479
+ sipUri: z.ZodString;
1480
+ sipUser: z.ZodString;
1481
+ sipPassword: z.ZodString;
1482
+ sipRealm: z.ZodString;
1483
+ remoteExtension: z.ZodString;
1484
+ } & {
1485
+ type: z.ZodLiteral<"intercom-terminal">;
1486
+ }, "strip", z.ZodTypeAny, {
1487
+ type: "intercom-terminal";
1488
+ sipUri: string;
1489
+ sipUser: string;
1490
+ sipPassword: string;
1491
+ sipRealm: string;
1492
+ remoteExtension: string;
1493
+ }, {
1494
+ type: "intercom-terminal";
1495
+ sipUri: string;
1496
+ sipUser: string;
1497
+ sipPassword: string;
1498
+ sipRealm: string;
1499
+ remoteExtension: string;
1500
+ }>, z.ZodObject<{
1501
+ sipWsUrl: z.ZodString;
1502
+ } & {
1503
+ type: z.ZodLiteral<"pbx">;
1504
+ }, "strip", z.ZodTypeAny, {
1505
+ type: "pbx";
1506
+ sipWsUrl: string;
1507
+ }, {
1508
+ type: "pbx";
1509
+ sipWsUrl: string;
1510
+ }>, z.ZodObject<{
1511
+ type: z.ZodLiteral<"server">;
1512
+ }, "strip", z.ZodTypeAny, {
1513
+ type: "server";
1514
+ }, {
1515
+ type: "server";
1516
+ }>, z.ZodObject<{
1517
+ type: z.ZodLiteral<"intercom-operator">;
1518
+ }, "strip", z.ZodTypeAny, {
1519
+ type: "intercom-operator";
1520
+ }, {
1521
+ type: "intercom-operator";
1522
+ }>, z.ZodObject<{
1523
+ type: z.ZodLiteral<"device-gateway">;
1524
+ }, "strip", z.ZodTypeAny, {
1525
+ type: "device-gateway";
1526
+ }, {
1527
+ type: "device-gateway";
1528
+ }>, z.ZodObject<{
1529
+ type: z.ZodLiteral<"presence-tracker">;
1530
+ }, "strip", z.ZodTypeAny, {
1531
+ type: "presence-tracker";
1532
+ }, {
1533
+ type: "presence-tracker";
1534
+ }>, z.ZodObject<{
1535
+ type: z.ZodLiteral<"reader">;
1536
+ }, "strip", z.ZodTypeAny, {
1537
+ type: "reader";
1538
+ }, {
1539
+ type: "reader";
1540
+ }>, z.ZodObject<{
1541
+ type: z.ZodLiteral<"display">;
1542
+ }, "strip", z.ZodTypeAny, {
1543
+ type: "display";
1544
+ }, {
1545
+ type: "display";
1546
+ }>, z.ZodObject<{
1547
+ type: z.ZodLiteral<"nvr-recorder">;
1548
+ }, "strip", z.ZodTypeAny, {
1549
+ type: "nvr-recorder";
1550
+ }, {
1551
+ type: "nvr-recorder";
1552
+ }>, z.ZodObject<{
1553
+ type: z.ZodLiteral<"nvr-exporter">;
1554
+ }, "strip", z.ZodTypeAny, {
1555
+ type: "nvr-exporter";
1556
+ }, {
1557
+ type: "nvr-exporter";
1558
+ }>, z.ZodObject<{
1559
+ type: z.ZodLiteral<"nvr-analytics-server">;
1560
+ }, "strip", z.ZodTypeAny, {
1561
+ type: "nvr-analytics-server";
1562
+ }, {
1563
+ type: "nvr-analytics-server";
1564
+ }>, z.ZodObject<{
1565
+ type: z.ZodLiteral<"system">;
1566
+ }, "strip", z.ZodTypeAny, {
1567
+ type: "system";
1568
+ }, {
1569
+ type: "system";
1570
+ }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
1571
+ timeFrom: z.ZodNumber;
1572
+ timeTo: z.ZodNumber;
1573
+ }, "strip", z.ZodTypeAny, {
1574
+ device: string | [string, string] | ({
1575
+ name: string;
1576
+ foreignRef: string;
1577
+ provider: string;
1578
+ providerMetadata: {} & {
1579
+ [k: string]: unknown;
1580
+ };
1581
+ } & ({
1582
+ type: "alarm";
1583
+ } | {
1584
+ type: "camera";
1585
+ streams: {
1586
+ id: string;
1587
+ displayName: string;
1588
+ externalPlayerUrl: string | null;
1589
+ }[];
1590
+ lensType: "flat" | "fisheye";
1591
+ mountPoint: "wall" | "ceiling" | "floor";
1592
+ ptzCapable: boolean;
1593
+ ptzPanSpeed: number;
1594
+ ptzTiltSpeed: number;
1595
+ ptzZoomSpeed: number;
1596
+ panMin: number;
1597
+ panMax: number;
1598
+ tiltMin: number;
1599
+ tiltMax: number;
1600
+ zoomMin: number;
1601
+ zoomMax: number;
1602
+ recordingCapable: boolean;
1603
+ webrtcPlaybackSource: ({
1604
+ kind: string;
1605
+ } & Record<string, unknown>) | null;
1606
+ defaultStreamId: string;
1607
+ } | {
1608
+ type: "door";
1609
+ canReportOpenState: boolean;
1610
+ canReportLockState: boolean;
1611
+ canControlLock: boolean;
1612
+ canRelease: boolean;
1613
+ } | {
1614
+ type: "io-board";
1615
+ inputs: string[];
1616
+ outputs: string[];
1617
+ } | {
1618
+ type: "camera-lift";
1619
+ } | {
1620
+ type: "motion-sensor";
1621
+ } | {
1622
+ type: "panic-button";
1623
+ } | {
1624
+ type: "intercom-terminal";
1625
+ sipUri: string;
1626
+ sipUser: string;
1627
+ sipPassword: string;
1628
+ sipRealm: string;
1629
+ remoteExtension: string;
1630
+ } | {
1631
+ type: "pbx";
1632
+ sipWsUrl: string;
1633
+ } | {
1634
+ type: "server";
1635
+ } | {
1636
+ type: "intercom-operator";
1637
+ } | {
1638
+ type: "device-gateway";
1639
+ } | {
1640
+ type: "presence-tracker";
1641
+ } | {
1642
+ type: "reader";
1643
+ } | {
1644
+ type: "display";
1645
+ } | {
1646
+ type: "nvr-recorder";
1647
+ } | {
1648
+ type: "nvr-exporter";
1649
+ } | {
1650
+ type: "nvr-analytics-server";
1651
+ } | {
1652
+ type: "system";
1653
+ }));
1654
+ timeFrom: number;
1655
+ timeTo: number;
1656
+ }, {
1657
+ device: string | [string, string] | ({
1658
+ name: string;
1659
+ foreignRef: string;
1660
+ provider: string;
1661
+ providerMetadata: {} & {
1662
+ [k: string]: unknown;
1663
+ };
1664
+ } & ({
1665
+ type: "alarm";
1666
+ } | {
1667
+ type: "camera";
1668
+ streams: {
1669
+ id: string;
1670
+ displayName: string;
1671
+ externalPlayerUrl: string | null;
1672
+ }[];
1673
+ lensType: "flat" | "fisheye";
1674
+ mountPoint: "wall" | "ceiling" | "floor";
1675
+ ptzCapable: boolean;
1676
+ ptzPanSpeed: number;
1677
+ ptzTiltSpeed: number;
1678
+ ptzZoomSpeed: number;
1679
+ panMin: number;
1680
+ panMax: number;
1681
+ tiltMin: number;
1682
+ tiltMax: number;
1683
+ zoomMin: number;
1684
+ zoomMax: number;
1685
+ recordingCapable: boolean;
1686
+ webrtcPlaybackSource: ({
1687
+ kind: string;
1688
+ } & Record<string, unknown>) | null;
1689
+ defaultStreamId: string;
1690
+ } | {
1691
+ type: "door";
1692
+ canReportOpenState: boolean;
1693
+ canReportLockState: boolean;
1694
+ canControlLock: boolean;
1695
+ canRelease: boolean;
1696
+ } | {
1697
+ type: "io-board";
1698
+ inputs: string[];
1699
+ outputs: string[];
1700
+ } | {
1701
+ type: "camera-lift";
1702
+ } | {
1703
+ type: "motion-sensor";
1704
+ } | {
1705
+ type: "panic-button";
1706
+ } | {
1707
+ type: "intercom-terminal";
1708
+ sipUri: string;
1709
+ sipUser: string;
1710
+ sipPassword: string;
1711
+ sipRealm: string;
1712
+ remoteExtension: string;
1713
+ } | {
1714
+ type: "pbx";
1715
+ sipWsUrl: string;
1716
+ } | {
1717
+ type: "server";
1718
+ } | {
1719
+ type: "intercom-operator";
1720
+ } | {
1721
+ type: "device-gateway";
1722
+ } | {
1723
+ type: "presence-tracker";
1724
+ } | {
1725
+ type: "reader";
1726
+ } | {
1727
+ type: "display";
1728
+ } | {
1729
+ type: "nvr-recorder";
1730
+ } | {
1731
+ type: "nvr-exporter";
1732
+ } | {
1733
+ type: "nvr-analytics-server";
1734
+ } | {
1735
+ type: "system";
1736
+ }));
1737
+ timeFrom: number;
1738
+ timeTo: number;
1739
+ }>;
1740
+ readonly "cctv:preview-image": z.ZodObject<{
1741
+ device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
1742
+ name: z.ZodString;
1743
+ foreignRef: z.ZodString;
1744
+ provider: z.ZodString;
1745
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
1746
+ }, "strip", z.ZodTypeAny, {
1747
+ name: string;
1748
+ foreignRef: string;
1749
+ provider: string;
1750
+ providerMetadata: {} & {
1751
+ [k: string]: unknown;
1752
+ };
1753
+ }, {
1754
+ name: string;
1755
+ foreignRef: string;
1756
+ provider: string;
1757
+ providerMetadata: {} & {
1758
+ [k: string]: unknown;
1759
+ };
1760
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1761
+ type: z.ZodLiteral<"alarm">;
1762
+ }, "strip", z.ZodTypeAny, {
1763
+ type: "alarm";
1764
+ }, {
1765
+ type: "alarm";
1766
+ }>, z.ZodObject<{
1767
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
1768
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
1769
+ ptzCapable: z.ZodBoolean;
1770
+ ptzPanSpeed: z.ZodNumber;
1771
+ ptzTiltSpeed: z.ZodNumber;
1772
+ ptzZoomSpeed: z.ZodNumber;
1773
+ panMin: z.ZodNumber;
1774
+ panMax: z.ZodNumber;
1775
+ tiltMin: z.ZodNumber;
1776
+ tiltMax: z.ZodNumber;
1777
+ zoomMin: z.ZodNumber;
1778
+ zoomMax: z.ZodNumber;
1779
+ recordingCapable: z.ZodBoolean;
1780
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
1781
+ kind: z.ZodString;
1782
+ }, "strip", z.ZodTypeAny, {
1783
+ kind: string;
1784
+ }, {
1785
+ kind: string;
1786
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1787
+ streams: z.ZodArray<z.ZodObject<{
1788
+ id: z.ZodString;
1789
+ displayName: z.ZodString;
1790
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
1791
+ }, "strip", z.ZodTypeAny, {
1792
+ id: string;
1793
+ displayName: string;
1794
+ externalPlayerUrl: string | null;
1795
+ }, {
1796
+ id: string;
1797
+ displayName: string;
1798
+ externalPlayerUrl: string | null;
1799
+ }>, "many">;
1800
+ defaultStreamId: z.ZodString;
1801
+ } & {
1802
+ type: z.ZodLiteral<"camera">;
1803
+ }, "strip", z.ZodTypeAny, {
1804
+ type: "camera";
1805
+ streams: {
1806
+ id: string;
1807
+ displayName: string;
1808
+ externalPlayerUrl: string | null;
1809
+ }[];
1810
+ lensType: "flat" | "fisheye";
1811
+ mountPoint: "wall" | "ceiling" | "floor";
1812
+ ptzCapable: boolean;
1813
+ ptzPanSpeed: number;
1814
+ ptzTiltSpeed: number;
1815
+ ptzZoomSpeed: number;
1816
+ panMin: number;
1817
+ panMax: number;
1818
+ tiltMin: number;
1819
+ tiltMax: number;
1820
+ zoomMin: number;
1821
+ zoomMax: number;
1822
+ recordingCapable: boolean;
1823
+ webrtcPlaybackSource: ({
1824
+ kind: string;
1825
+ } & Record<string, unknown>) | null;
1826
+ defaultStreamId: string;
1827
+ }, {
1828
+ type: "camera";
1829
+ streams: {
1830
+ id: string;
1831
+ displayName: string;
1832
+ externalPlayerUrl: string | null;
1833
+ }[];
1834
+ lensType: "flat" | "fisheye";
1835
+ mountPoint: "wall" | "ceiling" | "floor";
1836
+ ptzCapable: boolean;
1837
+ ptzPanSpeed: number;
1838
+ ptzTiltSpeed: number;
1839
+ ptzZoomSpeed: number;
1840
+ panMin: number;
1841
+ panMax: number;
1842
+ tiltMin: number;
1843
+ tiltMax: number;
1844
+ zoomMin: number;
1845
+ zoomMax: number;
1846
+ recordingCapable: boolean;
1847
+ webrtcPlaybackSource: ({
1848
+ kind: string;
1849
+ } & Record<string, unknown>) | null;
1850
+ defaultStreamId: string;
1851
+ }>, z.ZodObject<{
1852
+ canReportOpenState: z.ZodBoolean;
1853
+ canReportLockState: z.ZodBoolean;
1854
+ canControlLock: z.ZodBoolean;
1855
+ canRelease: z.ZodBoolean;
1856
+ } & {
1857
+ type: z.ZodLiteral<"door">;
1858
+ }, "strip", z.ZodTypeAny, {
1859
+ type: "door";
1860
+ canReportOpenState: boolean;
1861
+ canReportLockState: boolean;
1862
+ canControlLock: boolean;
1863
+ canRelease: boolean;
1864
+ }, {
1865
+ type: "door";
1866
+ canReportOpenState: boolean;
1867
+ canReportLockState: boolean;
1868
+ canControlLock: boolean;
1869
+ canRelease: boolean;
1870
+ }>, z.ZodObject<{
1871
+ inputs: z.ZodArray<z.ZodString, "many">;
1872
+ outputs: z.ZodArray<z.ZodString, "many">;
1873
+ } & {
1874
+ type: z.ZodLiteral<"io-board">;
1875
+ }, "strip", z.ZodTypeAny, {
1876
+ type: "io-board";
1877
+ inputs: string[];
1878
+ outputs: string[];
1879
+ }, {
1880
+ type: "io-board";
1881
+ inputs: string[];
1882
+ outputs: string[];
1883
+ }>, z.ZodObject<{
1884
+ type: z.ZodLiteral<"camera-lift">;
1885
+ }, "strip", z.ZodTypeAny, {
1886
+ type: "camera-lift";
1887
+ }, {
1888
+ type: "camera-lift";
1889
+ }>, z.ZodObject<{
1890
+ type: z.ZodLiteral<"motion-sensor">;
1891
+ }, "strip", z.ZodTypeAny, {
1892
+ type: "motion-sensor";
1893
+ }, {
1894
+ type: "motion-sensor";
1895
+ }>, z.ZodObject<{
1896
+ type: z.ZodLiteral<"panic-button">;
1897
+ }, "strip", z.ZodTypeAny, {
1898
+ type: "panic-button";
1899
+ }, {
1900
+ type: "panic-button";
1901
+ }>, z.ZodObject<{
1902
+ sipUri: z.ZodString;
1903
+ sipUser: z.ZodString;
1904
+ sipPassword: z.ZodString;
1905
+ sipRealm: z.ZodString;
1906
+ remoteExtension: z.ZodString;
1907
+ } & {
1908
+ type: z.ZodLiteral<"intercom-terminal">;
1909
+ }, "strip", z.ZodTypeAny, {
1910
+ type: "intercom-terminal";
1911
+ sipUri: string;
1912
+ sipUser: string;
1913
+ sipPassword: string;
1914
+ sipRealm: string;
1915
+ remoteExtension: string;
1916
+ }, {
1917
+ type: "intercom-terminal";
1918
+ sipUri: string;
1919
+ sipUser: string;
1920
+ sipPassword: string;
1921
+ sipRealm: string;
1922
+ remoteExtension: string;
1923
+ }>, z.ZodObject<{
1924
+ sipWsUrl: z.ZodString;
1925
+ } & {
1926
+ type: z.ZodLiteral<"pbx">;
1927
+ }, "strip", z.ZodTypeAny, {
1928
+ type: "pbx";
1929
+ sipWsUrl: string;
1930
+ }, {
1931
+ type: "pbx";
1932
+ sipWsUrl: string;
1933
+ }>, z.ZodObject<{
1934
+ type: z.ZodLiteral<"server">;
1935
+ }, "strip", z.ZodTypeAny, {
1936
+ type: "server";
1937
+ }, {
1938
+ type: "server";
1939
+ }>, z.ZodObject<{
1940
+ type: z.ZodLiteral<"intercom-operator">;
1941
+ }, "strip", z.ZodTypeAny, {
1942
+ type: "intercom-operator";
1943
+ }, {
1944
+ type: "intercom-operator";
1945
+ }>, z.ZodObject<{
1946
+ type: z.ZodLiteral<"device-gateway">;
1947
+ }, "strip", z.ZodTypeAny, {
1948
+ type: "device-gateway";
1949
+ }, {
1950
+ type: "device-gateway";
1951
+ }>, z.ZodObject<{
1952
+ type: z.ZodLiteral<"presence-tracker">;
1953
+ }, "strip", z.ZodTypeAny, {
1954
+ type: "presence-tracker";
1955
+ }, {
1956
+ type: "presence-tracker";
1957
+ }>, z.ZodObject<{
1958
+ type: z.ZodLiteral<"reader">;
1959
+ }, "strip", z.ZodTypeAny, {
1960
+ type: "reader";
1961
+ }, {
1962
+ type: "reader";
1963
+ }>, z.ZodObject<{
1964
+ type: z.ZodLiteral<"display">;
1965
+ }, "strip", z.ZodTypeAny, {
1966
+ type: "display";
1967
+ }, {
1968
+ type: "display";
1969
+ }>, z.ZodObject<{
1970
+ type: z.ZodLiteral<"nvr-recorder">;
1971
+ }, "strip", z.ZodTypeAny, {
1972
+ type: "nvr-recorder";
1973
+ }, {
1974
+ type: "nvr-recorder";
1975
+ }>, z.ZodObject<{
1976
+ type: z.ZodLiteral<"nvr-exporter">;
1977
+ }, "strip", z.ZodTypeAny, {
1978
+ type: "nvr-exporter";
1979
+ }, {
1980
+ type: "nvr-exporter";
1981
+ }>, z.ZodObject<{
1982
+ type: z.ZodLiteral<"nvr-analytics-server">;
1983
+ }, "strip", z.ZodTypeAny, {
1984
+ type: "nvr-analytics-server";
1985
+ }, {
1986
+ type: "nvr-analytics-server";
1987
+ }>, z.ZodObject<{
1988
+ type: z.ZodLiteral<"system">;
1989
+ }, "strip", z.ZodTypeAny, {
1990
+ type: "system";
1991
+ }, {
1992
+ type: "system";
1993
+ }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
1994
+ time: z.ZodNumber;
1995
+ height: z.ZodNumber;
1996
+ }, "strip", z.ZodTypeAny, {
1997
+ time: number;
1998
+ height: number;
1999
+ device: string | [string, string] | ({
2000
+ name: string;
2001
+ foreignRef: string;
2002
+ provider: string;
2003
+ providerMetadata: {} & {
2004
+ [k: string]: unknown;
2005
+ };
2006
+ } & ({
2007
+ type: "alarm";
2008
+ } | {
2009
+ type: "camera";
2010
+ streams: {
2011
+ id: string;
2012
+ displayName: string;
2013
+ externalPlayerUrl: string | null;
2014
+ }[];
2015
+ lensType: "flat" | "fisheye";
2016
+ mountPoint: "wall" | "ceiling" | "floor";
2017
+ ptzCapable: boolean;
2018
+ ptzPanSpeed: number;
2019
+ ptzTiltSpeed: number;
2020
+ ptzZoomSpeed: number;
2021
+ panMin: number;
2022
+ panMax: number;
2023
+ tiltMin: number;
2024
+ tiltMax: number;
2025
+ zoomMin: number;
2026
+ zoomMax: number;
2027
+ recordingCapable: boolean;
2028
+ webrtcPlaybackSource: ({
2029
+ kind: string;
2030
+ } & Record<string, unknown>) | null;
2031
+ defaultStreamId: string;
2032
+ } | {
2033
+ type: "door";
2034
+ canReportOpenState: boolean;
2035
+ canReportLockState: boolean;
2036
+ canControlLock: boolean;
2037
+ canRelease: boolean;
2038
+ } | {
2039
+ type: "io-board";
2040
+ inputs: string[];
2041
+ outputs: string[];
2042
+ } | {
2043
+ type: "camera-lift";
2044
+ } | {
2045
+ type: "motion-sensor";
2046
+ } | {
2047
+ type: "panic-button";
2048
+ } | {
2049
+ type: "intercom-terminal";
2050
+ sipUri: string;
2051
+ sipUser: string;
2052
+ sipPassword: string;
2053
+ sipRealm: string;
2054
+ remoteExtension: string;
2055
+ } | {
2056
+ type: "pbx";
2057
+ sipWsUrl: string;
2058
+ } | {
2059
+ type: "server";
2060
+ } | {
2061
+ type: "intercom-operator";
2062
+ } | {
2063
+ type: "device-gateway";
2064
+ } | {
2065
+ type: "presence-tracker";
2066
+ } | {
2067
+ type: "reader";
2068
+ } | {
2069
+ type: "display";
2070
+ } | {
2071
+ type: "nvr-recorder";
2072
+ } | {
2073
+ type: "nvr-exporter";
2074
+ } | {
2075
+ type: "nvr-analytics-server";
2076
+ } | {
2077
+ type: "system";
2078
+ }));
2079
+ }, {
2080
+ time: number;
2081
+ height: number;
2082
+ device: string | [string, string] | ({
2083
+ name: string;
2084
+ foreignRef: string;
2085
+ provider: string;
2086
+ providerMetadata: {} & {
2087
+ [k: string]: unknown;
2088
+ };
2089
+ } & ({
2090
+ type: "alarm";
2091
+ } | {
2092
+ type: "camera";
2093
+ streams: {
2094
+ id: string;
2095
+ displayName: string;
2096
+ externalPlayerUrl: string | null;
2097
+ }[];
2098
+ lensType: "flat" | "fisheye";
2099
+ mountPoint: "wall" | "ceiling" | "floor";
2100
+ ptzCapable: boolean;
2101
+ ptzPanSpeed: number;
2102
+ ptzTiltSpeed: number;
2103
+ ptzZoomSpeed: number;
2104
+ panMin: number;
2105
+ panMax: number;
2106
+ tiltMin: number;
2107
+ tiltMax: number;
2108
+ zoomMin: number;
2109
+ zoomMax: number;
2110
+ recordingCapable: boolean;
2111
+ webrtcPlaybackSource: ({
2112
+ kind: string;
2113
+ } & Record<string, unknown>) | null;
2114
+ defaultStreamId: string;
2115
+ } | {
2116
+ type: "door";
2117
+ canReportOpenState: boolean;
2118
+ canReportLockState: boolean;
2119
+ canControlLock: boolean;
2120
+ canRelease: boolean;
2121
+ } | {
2122
+ type: "io-board";
2123
+ inputs: string[];
2124
+ outputs: string[];
2125
+ } | {
2126
+ type: "camera-lift";
2127
+ } | {
2128
+ type: "motion-sensor";
2129
+ } | {
2130
+ type: "panic-button";
2131
+ } | {
2132
+ type: "intercom-terminal";
2133
+ sipUri: string;
2134
+ sipUser: string;
2135
+ sipPassword: string;
2136
+ sipRealm: string;
2137
+ remoteExtension: string;
2138
+ } | {
2139
+ type: "pbx";
2140
+ sipWsUrl: string;
2141
+ } | {
2142
+ type: "server";
2143
+ } | {
2144
+ type: "intercom-operator";
2145
+ } | {
2146
+ type: "device-gateway";
2147
+ } | {
2148
+ type: "presence-tracker";
2149
+ } | {
2150
+ type: "reader";
2151
+ } | {
2152
+ type: "display";
2153
+ } | {
2154
+ type: "nvr-recorder";
2155
+ } | {
2156
+ type: "nvr-exporter";
2157
+ } | {
2158
+ type: "nvr-analytics-server";
2159
+ } | {
2160
+ type: "system";
2161
+ }));
2162
+ }>;
2163
+ readonly "cctv:latest-frame": z.ZodObject<{
2164
+ device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
2165
+ name: z.ZodString;
2166
+ foreignRef: z.ZodString;
2167
+ provider: z.ZodString;
2168
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
2169
+ }, "strip", z.ZodTypeAny, {
2170
+ name: string;
2171
+ foreignRef: string;
2172
+ provider: string;
2173
+ providerMetadata: {} & {
2174
+ [k: string]: unknown;
2175
+ };
2176
+ }, {
2177
+ name: string;
2178
+ foreignRef: string;
2179
+ provider: string;
2180
+ providerMetadata: {} & {
2181
+ [k: string]: unknown;
2182
+ };
2183
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2184
+ type: z.ZodLiteral<"alarm">;
2185
+ }, "strip", z.ZodTypeAny, {
2186
+ type: "alarm";
2187
+ }, {
2188
+ type: "alarm";
2189
+ }>, z.ZodObject<{
2190
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
2191
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
2192
+ ptzCapable: z.ZodBoolean;
2193
+ ptzPanSpeed: z.ZodNumber;
2194
+ ptzTiltSpeed: z.ZodNumber;
2195
+ ptzZoomSpeed: z.ZodNumber;
2196
+ panMin: z.ZodNumber;
2197
+ panMax: z.ZodNumber;
2198
+ tiltMin: z.ZodNumber;
2199
+ tiltMax: z.ZodNumber;
2200
+ zoomMin: z.ZodNumber;
2201
+ zoomMax: z.ZodNumber;
2202
+ recordingCapable: z.ZodBoolean;
2203
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
2204
+ kind: z.ZodString;
2205
+ }, "strip", z.ZodTypeAny, {
2206
+ kind: string;
2207
+ }, {
2208
+ kind: string;
2209
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2210
+ streams: z.ZodArray<z.ZodObject<{
2211
+ id: z.ZodString;
2212
+ displayName: z.ZodString;
2213
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
2214
+ }, "strip", z.ZodTypeAny, {
2215
+ id: string;
2216
+ displayName: string;
2217
+ externalPlayerUrl: string | null;
2218
+ }, {
2219
+ id: string;
2220
+ displayName: string;
2221
+ externalPlayerUrl: string | null;
2222
+ }>, "many">;
2223
+ defaultStreamId: z.ZodString;
2224
+ } & {
2225
+ type: z.ZodLiteral<"camera">;
2226
+ }, "strip", z.ZodTypeAny, {
2227
+ type: "camera";
2228
+ streams: {
2229
+ id: string;
2230
+ displayName: string;
2231
+ externalPlayerUrl: string | null;
2232
+ }[];
2233
+ lensType: "flat" | "fisheye";
2234
+ mountPoint: "wall" | "ceiling" | "floor";
2235
+ ptzCapable: boolean;
2236
+ ptzPanSpeed: number;
2237
+ ptzTiltSpeed: number;
2238
+ ptzZoomSpeed: number;
2239
+ panMin: number;
2240
+ panMax: number;
2241
+ tiltMin: number;
2242
+ tiltMax: number;
2243
+ zoomMin: number;
2244
+ zoomMax: number;
2245
+ recordingCapable: boolean;
2246
+ webrtcPlaybackSource: ({
2247
+ kind: string;
2248
+ } & Record<string, unknown>) | null;
2249
+ defaultStreamId: string;
2250
+ }, {
2251
+ type: "camera";
2252
+ streams: {
2253
+ id: string;
2254
+ displayName: string;
2255
+ externalPlayerUrl: string | null;
2256
+ }[];
2257
+ lensType: "flat" | "fisheye";
2258
+ mountPoint: "wall" | "ceiling" | "floor";
2259
+ ptzCapable: boolean;
2260
+ ptzPanSpeed: number;
2261
+ ptzTiltSpeed: number;
2262
+ ptzZoomSpeed: number;
2263
+ panMin: number;
2264
+ panMax: number;
2265
+ tiltMin: number;
2266
+ tiltMax: number;
2267
+ zoomMin: number;
2268
+ zoomMax: number;
2269
+ recordingCapable: boolean;
2270
+ webrtcPlaybackSource: ({
2271
+ kind: string;
2272
+ } & Record<string, unknown>) | null;
2273
+ defaultStreamId: string;
2274
+ }>, z.ZodObject<{
2275
+ canReportOpenState: z.ZodBoolean;
2276
+ canReportLockState: z.ZodBoolean;
2277
+ canControlLock: z.ZodBoolean;
2278
+ canRelease: z.ZodBoolean;
2279
+ } & {
2280
+ type: z.ZodLiteral<"door">;
2281
+ }, "strip", z.ZodTypeAny, {
2282
+ type: "door";
2283
+ canReportOpenState: boolean;
2284
+ canReportLockState: boolean;
2285
+ canControlLock: boolean;
2286
+ canRelease: boolean;
2287
+ }, {
2288
+ type: "door";
2289
+ canReportOpenState: boolean;
2290
+ canReportLockState: boolean;
2291
+ canControlLock: boolean;
2292
+ canRelease: boolean;
2293
+ }>, z.ZodObject<{
2294
+ inputs: z.ZodArray<z.ZodString, "many">;
2295
+ outputs: z.ZodArray<z.ZodString, "many">;
2296
+ } & {
2297
+ type: z.ZodLiteral<"io-board">;
2298
+ }, "strip", z.ZodTypeAny, {
2299
+ type: "io-board";
2300
+ inputs: string[];
2301
+ outputs: string[];
2302
+ }, {
2303
+ type: "io-board";
2304
+ inputs: string[];
2305
+ outputs: string[];
2306
+ }>, z.ZodObject<{
2307
+ type: z.ZodLiteral<"camera-lift">;
2308
+ }, "strip", z.ZodTypeAny, {
2309
+ type: "camera-lift";
2310
+ }, {
2311
+ type: "camera-lift";
2312
+ }>, z.ZodObject<{
2313
+ type: z.ZodLiteral<"motion-sensor">;
2314
+ }, "strip", z.ZodTypeAny, {
2315
+ type: "motion-sensor";
2316
+ }, {
2317
+ type: "motion-sensor";
2318
+ }>, z.ZodObject<{
2319
+ type: z.ZodLiteral<"panic-button">;
2320
+ }, "strip", z.ZodTypeAny, {
2321
+ type: "panic-button";
2322
+ }, {
2323
+ type: "panic-button";
2324
+ }>, z.ZodObject<{
2325
+ sipUri: z.ZodString;
2326
+ sipUser: z.ZodString;
2327
+ sipPassword: z.ZodString;
2328
+ sipRealm: z.ZodString;
2329
+ remoteExtension: z.ZodString;
2330
+ } & {
2331
+ type: z.ZodLiteral<"intercom-terminal">;
2332
+ }, "strip", z.ZodTypeAny, {
2333
+ type: "intercom-terminal";
2334
+ sipUri: string;
2335
+ sipUser: string;
2336
+ sipPassword: string;
2337
+ sipRealm: string;
2338
+ remoteExtension: string;
2339
+ }, {
2340
+ type: "intercom-terminal";
2341
+ sipUri: string;
2342
+ sipUser: string;
2343
+ sipPassword: string;
2344
+ sipRealm: string;
2345
+ remoteExtension: string;
2346
+ }>, z.ZodObject<{
2347
+ sipWsUrl: z.ZodString;
2348
+ } & {
2349
+ type: z.ZodLiteral<"pbx">;
2350
+ }, "strip", z.ZodTypeAny, {
2351
+ type: "pbx";
2352
+ sipWsUrl: string;
2353
+ }, {
2354
+ type: "pbx";
2355
+ sipWsUrl: string;
2356
+ }>, z.ZodObject<{
2357
+ type: z.ZodLiteral<"server">;
2358
+ }, "strip", z.ZodTypeAny, {
2359
+ type: "server";
2360
+ }, {
2361
+ type: "server";
2362
+ }>, z.ZodObject<{
2363
+ type: z.ZodLiteral<"intercom-operator">;
2364
+ }, "strip", z.ZodTypeAny, {
2365
+ type: "intercom-operator";
2366
+ }, {
2367
+ type: "intercom-operator";
2368
+ }>, z.ZodObject<{
2369
+ type: z.ZodLiteral<"device-gateway">;
2370
+ }, "strip", z.ZodTypeAny, {
2371
+ type: "device-gateway";
2372
+ }, {
2373
+ type: "device-gateway";
2374
+ }>, z.ZodObject<{
2375
+ type: z.ZodLiteral<"presence-tracker">;
2376
+ }, "strip", z.ZodTypeAny, {
2377
+ type: "presence-tracker";
2378
+ }, {
2379
+ type: "presence-tracker";
2380
+ }>, z.ZodObject<{
2381
+ type: z.ZodLiteral<"reader">;
2382
+ }, "strip", z.ZodTypeAny, {
2383
+ type: "reader";
2384
+ }, {
2385
+ type: "reader";
2386
+ }>, z.ZodObject<{
2387
+ type: z.ZodLiteral<"display">;
2388
+ }, "strip", z.ZodTypeAny, {
2389
+ type: "display";
2390
+ }, {
2391
+ type: "display";
2392
+ }>, z.ZodObject<{
2393
+ type: z.ZodLiteral<"nvr-recorder">;
2394
+ }, "strip", z.ZodTypeAny, {
2395
+ type: "nvr-recorder";
2396
+ }, {
2397
+ type: "nvr-recorder";
2398
+ }>, z.ZodObject<{
2399
+ type: z.ZodLiteral<"nvr-exporter">;
2400
+ }, "strip", z.ZodTypeAny, {
2401
+ type: "nvr-exporter";
2402
+ }, {
2403
+ type: "nvr-exporter";
2404
+ }>, z.ZodObject<{
2405
+ type: z.ZodLiteral<"nvr-analytics-server">;
2406
+ }, "strip", z.ZodTypeAny, {
2407
+ type: "nvr-analytics-server";
2408
+ }, {
2409
+ type: "nvr-analytics-server";
2410
+ }>, z.ZodObject<{
2411
+ type: z.ZodLiteral<"system">;
2412
+ }, "strip", z.ZodTypeAny, {
2413
+ type: "system";
2414
+ }, {
2415
+ type: "system";
2416
+ }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
2417
+ width: z.ZodNumber;
2418
+ height: z.ZodNumber;
2419
+ }, "strip", z.ZodTypeAny, {
2420
+ height: number;
2421
+ width: number;
2422
+ device: string | [string, string] | ({
2423
+ name: string;
2424
+ foreignRef: string;
2425
+ provider: string;
2426
+ providerMetadata: {} & {
2427
+ [k: string]: unknown;
2428
+ };
2429
+ } & ({
2430
+ type: "alarm";
2431
+ } | {
2432
+ type: "camera";
2433
+ streams: {
2434
+ id: string;
2435
+ displayName: string;
2436
+ externalPlayerUrl: string | null;
2437
+ }[];
2438
+ lensType: "flat" | "fisheye";
2439
+ mountPoint: "wall" | "ceiling" | "floor";
2440
+ ptzCapable: boolean;
2441
+ ptzPanSpeed: number;
2442
+ ptzTiltSpeed: number;
2443
+ ptzZoomSpeed: number;
2444
+ panMin: number;
2445
+ panMax: number;
2446
+ tiltMin: number;
2447
+ tiltMax: number;
2448
+ zoomMin: number;
2449
+ zoomMax: number;
2450
+ recordingCapable: boolean;
2451
+ webrtcPlaybackSource: ({
2452
+ kind: string;
2453
+ } & Record<string, unknown>) | null;
2454
+ defaultStreamId: string;
2455
+ } | {
2456
+ type: "door";
2457
+ canReportOpenState: boolean;
2458
+ canReportLockState: boolean;
2459
+ canControlLock: boolean;
2460
+ canRelease: boolean;
2461
+ } | {
2462
+ type: "io-board";
2463
+ inputs: string[];
2464
+ outputs: string[];
2465
+ } | {
2466
+ type: "camera-lift";
2467
+ } | {
2468
+ type: "motion-sensor";
2469
+ } | {
2470
+ type: "panic-button";
2471
+ } | {
2472
+ type: "intercom-terminal";
2473
+ sipUri: string;
2474
+ sipUser: string;
2475
+ sipPassword: string;
2476
+ sipRealm: string;
2477
+ remoteExtension: string;
2478
+ } | {
2479
+ type: "pbx";
2480
+ sipWsUrl: string;
2481
+ } | {
2482
+ type: "server";
2483
+ } | {
2484
+ type: "intercom-operator";
2485
+ } | {
2486
+ type: "device-gateway";
2487
+ } | {
2488
+ type: "presence-tracker";
2489
+ } | {
2490
+ type: "reader";
2491
+ } | {
2492
+ type: "display";
2493
+ } | {
2494
+ type: "nvr-recorder";
2495
+ } | {
2496
+ type: "nvr-exporter";
2497
+ } | {
2498
+ type: "nvr-analytics-server";
2499
+ } | {
2500
+ type: "system";
2501
+ }));
2502
+ }, {
2503
+ height: number;
2504
+ width: number;
2505
+ device: string | [string, string] | ({
2506
+ name: string;
2507
+ foreignRef: string;
2508
+ provider: string;
2509
+ providerMetadata: {} & {
2510
+ [k: string]: unknown;
2511
+ };
2512
+ } & ({
2513
+ type: "alarm";
2514
+ } | {
2515
+ type: "camera";
2516
+ streams: {
2517
+ id: string;
2518
+ displayName: string;
2519
+ externalPlayerUrl: string | null;
2520
+ }[];
2521
+ lensType: "flat" | "fisheye";
2522
+ mountPoint: "wall" | "ceiling" | "floor";
2523
+ ptzCapable: boolean;
2524
+ ptzPanSpeed: number;
2525
+ ptzTiltSpeed: number;
2526
+ ptzZoomSpeed: number;
2527
+ panMin: number;
2528
+ panMax: number;
2529
+ tiltMin: number;
2530
+ tiltMax: number;
2531
+ zoomMin: number;
2532
+ zoomMax: number;
2533
+ recordingCapable: boolean;
2534
+ webrtcPlaybackSource: ({
2535
+ kind: string;
2536
+ } & Record<string, unknown>) | null;
2537
+ defaultStreamId: string;
2538
+ } | {
2539
+ type: "door";
2540
+ canReportOpenState: boolean;
2541
+ canReportLockState: boolean;
2542
+ canControlLock: boolean;
2543
+ canRelease: boolean;
2544
+ } | {
2545
+ type: "io-board";
2546
+ inputs: string[];
2547
+ outputs: string[];
2548
+ } | {
2549
+ type: "camera-lift";
2550
+ } | {
2551
+ type: "motion-sensor";
2552
+ } | {
2553
+ type: "panic-button";
2554
+ } | {
2555
+ type: "intercom-terminal";
2556
+ sipUri: string;
2557
+ sipUser: string;
2558
+ sipPassword: string;
2559
+ sipRealm: string;
2560
+ remoteExtension: string;
2561
+ } | {
2562
+ type: "pbx";
2563
+ sipWsUrl: string;
2564
+ } | {
2565
+ type: "server";
2566
+ } | {
2567
+ type: "intercom-operator";
2568
+ } | {
2569
+ type: "device-gateway";
2570
+ } | {
2571
+ type: "presence-tracker";
2572
+ } | {
2573
+ type: "reader";
2574
+ } | {
2575
+ type: "display";
2576
+ } | {
2577
+ type: "nvr-recorder";
2578
+ } | {
2579
+ type: "nvr-exporter";
2580
+ } | {
2581
+ type: "nvr-analytics-server";
2582
+ } | {
2583
+ type: "system";
2584
+ }));
2585
+ }>;
2586
+ };
2587
+ export declare const nvrRecorderResponseSchemas: {
2588
+ readonly "cctv:recordings-by-time-range": z.ZodArray<z.ZodObject<{
2589
+ start: z.ZodNumber;
2590
+ end: z.ZodNumber;
2591
+ motion: z.ZodOptional<z.ZodNumber>;
2592
+ objects: z.ZodOptional<z.ZodNumber>;
2593
+ }, "strip", z.ZodTypeAny, {
2594
+ end: number;
2595
+ start: number;
2596
+ motion?: number | undefined;
2597
+ objects?: number | undefined;
2598
+ }, {
2599
+ end: number;
2600
+ start: number;
2601
+ motion?: number | undefined;
2602
+ objects?: number | undefined;
2603
+ }>, "many">;
2604
+ readonly "cctv:preview-image": z.ZodNullable<z.ZodObject<{
2605
+ mimeType: z.ZodString;
2606
+ data: z.ZodString;
2607
+ }, "strip", z.ZodTypeAny, {
2608
+ data: string;
2609
+ mimeType: string;
2610
+ }, {
2611
+ data: string;
2612
+ mimeType: string;
2613
+ }>>;
2614
+ readonly "cctv:latest-frame": z.ZodNullable<z.ZodObject<{
2615
+ mimeType: z.ZodString;
2616
+ data: z.ZodString;
2617
+ }, "strip", z.ZodTypeAny, {
2618
+ data: string;
2619
+ mimeType: string;
2620
+ }, {
2621
+ data: string;
2622
+ mimeType: string;
2623
+ }>>;
2624
+ };
2625
+ export type NvrRecorderQueryRequestMap = {
2626
+ [QUERY_RECORDINGS_BY_TIME_RANGE]: RecordingsByTimeRangeArgs;
2627
+ [QUERY_PREVIEW_IMAGE]: PreviewImageArgs;
2628
+ [QUERY_CAMERA_LATEST_FRAME]: CameraLatestFrameArgs;
2629
+ };
2630
+ export type NvrRecorderQueryResponseMap = {
2631
+ [QUERY_RECORDINGS_BY_TIME_RANGE]: RecordingsResponse;
2632
+ [QUERY_PREVIEW_IMAGE]: PreviewImageResponse;
2633
+ [QUERY_CAMERA_LATEST_FRAME]: CameraLatestFrameResponse;
2634
+ };