@awarevue/api-types 2.0.13 → 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} +17 -19
  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 -1336
  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 +16 -0
  114. package/dist/primitives.js +13 -1
  115. package/dist/{agent-communication/queries.d.ts → queries/all.d.ts} +12 -10
  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
@@ -1,1279 +1,6 @@
1
- import { z } from 'zod';
2
1
  import { ModuleConfig, ModuleConfigMetadata } from '../module-config';
3
2
  import { AccessControlCapabilityReport } from '../agent-communication';
4
- import { ObjectKinds } from '../objects';
5
3
  export declare const SERVER = "server";
6
- export declare const sRunMacroCommand: z.ZodObject<{
7
- command: z.ZodLiteral<"server.run-macro">;
8
- params: z.ZodObject<{
9
- macroId: z.ZodString;
10
- }, "strip", z.ZodTypeAny, {
11
- macroId: string;
12
- }, {
13
- macroId: string;
14
- }>;
15
- }, "strip", z.ZodTypeAny, {
16
- params: {
17
- macroId: string;
18
- };
19
- command: "server.run-macro";
20
- }, {
21
- params: {
22
- macroId: string;
23
- };
24
- command: "server.run-macro";
25
- }>;
26
- export declare const sNotify: z.ZodObject<{
27
- command: z.ZodLiteral<"server.notify">;
28
- params: z.ZodObject<{
29
- source: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
30
- name: z.ZodString;
31
- foreignRef: z.ZodString;
32
- provider: z.ZodString;
33
- providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
34
- }, "strip", z.ZodTypeAny, {
35
- name: string;
36
- foreignRef: string;
37
- provider: string;
38
- providerMetadata: {} & {
39
- [k: string]: unknown;
40
- };
41
- }, {
42
- name: string;
43
- foreignRef: string;
44
- provider: string;
45
- providerMetadata: {} & {
46
- [k: string]: unknown;
47
- };
48
- }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
49
- type: z.ZodLiteral<"alarm">;
50
- }, "strip", z.ZodTypeAny, {
51
- type: "alarm";
52
- }, {
53
- type: "alarm";
54
- }>, z.ZodObject<{
55
- lensType: z.ZodEnum<["flat", "fisheye"]>;
56
- mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
57
- ptzCapable: z.ZodBoolean;
58
- ptzPanSpeed: z.ZodNumber;
59
- ptzTiltSpeed: z.ZodNumber;
60
- ptzZoomSpeed: z.ZodNumber;
61
- panMin: z.ZodNumber;
62
- panMax: z.ZodNumber;
63
- tiltMin: z.ZodNumber;
64
- tiltMax: z.ZodNumber;
65
- zoomMin: z.ZodNumber;
66
- zoomMax: z.ZodNumber;
67
- recordingCapable: z.ZodBoolean;
68
- webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
69
- kind: z.ZodString;
70
- }, "strip", z.ZodTypeAny, {
71
- kind: string;
72
- }, {
73
- kind: string;
74
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
75
- streams: z.ZodArray<z.ZodObject<{
76
- id: z.ZodString;
77
- displayName: z.ZodString;
78
- externalPlayerUrl: z.ZodNullable<z.ZodString>;
79
- }, "strip", z.ZodTypeAny, {
80
- id: string;
81
- displayName: string;
82
- externalPlayerUrl: string | null;
83
- }, {
84
- id: string;
85
- displayName: string;
86
- externalPlayerUrl: string | null;
87
- }>, "many">;
88
- defaultStreamId: z.ZodString;
89
- } & {
90
- type: z.ZodLiteral<"camera">;
91
- }, "strip", z.ZodTypeAny, {
92
- type: "camera";
93
- streams: {
94
- id: string;
95
- displayName: string;
96
- externalPlayerUrl: string | null;
97
- }[];
98
- lensType: "flat" | "fisheye";
99
- mountPoint: "wall" | "ceiling" | "floor";
100
- ptzCapable: boolean;
101
- ptzPanSpeed: number;
102
- ptzTiltSpeed: number;
103
- ptzZoomSpeed: number;
104
- panMin: number;
105
- panMax: number;
106
- tiltMin: number;
107
- tiltMax: number;
108
- zoomMin: number;
109
- zoomMax: number;
110
- recordingCapable: boolean;
111
- webrtcPlaybackSource: ({
112
- kind: string;
113
- } & Record<string, unknown>) | null;
114
- defaultStreamId: string;
115
- }, {
116
- type: "camera";
117
- streams: {
118
- id: string;
119
- displayName: string;
120
- externalPlayerUrl: string | null;
121
- }[];
122
- lensType: "flat" | "fisheye";
123
- mountPoint: "wall" | "ceiling" | "floor";
124
- ptzCapable: boolean;
125
- ptzPanSpeed: number;
126
- ptzTiltSpeed: number;
127
- ptzZoomSpeed: number;
128
- panMin: number;
129
- panMax: number;
130
- tiltMin: number;
131
- tiltMax: number;
132
- zoomMin: number;
133
- zoomMax: number;
134
- recordingCapable: boolean;
135
- webrtcPlaybackSource: ({
136
- kind: string;
137
- } & Record<string, unknown>) | null;
138
- defaultStreamId: string;
139
- }>, z.ZodObject<{
140
- canReportOpenState: z.ZodBoolean;
141
- canReportLockState: z.ZodBoolean;
142
- canControlLock: z.ZodBoolean;
143
- canRelease: z.ZodBoolean;
144
- } & {
145
- type: z.ZodLiteral<"door">;
146
- }, "strip", z.ZodTypeAny, {
147
- type: "door";
148
- canReportOpenState: boolean;
149
- canReportLockState: boolean;
150
- canControlLock: boolean;
151
- canRelease: boolean;
152
- }, {
153
- type: "door";
154
- canReportOpenState: boolean;
155
- canReportLockState: boolean;
156
- canControlLock: boolean;
157
- canRelease: boolean;
158
- }>, z.ZodObject<{
159
- inputs: z.ZodArray<z.ZodString, "many">;
160
- outputs: z.ZodArray<z.ZodString, "many">;
161
- } & {
162
- type: z.ZodLiteral<"io-board">;
163
- }, "strip", z.ZodTypeAny, {
164
- type: "io-board";
165
- inputs: string[];
166
- outputs: string[];
167
- }, {
168
- type: "io-board";
169
- inputs: string[];
170
- outputs: string[];
171
- }>, z.ZodObject<{
172
- type: z.ZodLiteral<"camera-lift">;
173
- }, "strip", z.ZodTypeAny, {
174
- type: "camera-lift";
175
- }, {
176
- type: "camera-lift";
177
- }>, z.ZodObject<{
178
- type: z.ZodLiteral<"motion-sensor">;
179
- }, "strip", z.ZodTypeAny, {
180
- type: "motion-sensor";
181
- }, {
182
- type: "motion-sensor";
183
- }>, z.ZodObject<{
184
- type: z.ZodLiteral<"panic-button">;
185
- }, "strip", z.ZodTypeAny, {
186
- type: "panic-button";
187
- }, {
188
- type: "panic-button";
189
- }>, z.ZodObject<{
190
- sipUri: z.ZodString;
191
- sipUser: z.ZodString;
192
- sipPassword: z.ZodString;
193
- sipRealm: z.ZodString;
194
- remoteExtension: z.ZodString;
195
- } & {
196
- type: z.ZodLiteral<"intercom-terminal">;
197
- }, "strip", z.ZodTypeAny, {
198
- type: "intercom-terminal";
199
- sipUri: string;
200
- sipUser: string;
201
- sipPassword: string;
202
- sipRealm: string;
203
- remoteExtension: string;
204
- }, {
205
- type: "intercom-terminal";
206
- sipUri: string;
207
- sipUser: string;
208
- sipPassword: string;
209
- sipRealm: string;
210
- remoteExtension: string;
211
- }>, z.ZodObject<{
212
- sipWsUrl: z.ZodString;
213
- } & {
214
- type: z.ZodLiteral<"pbx">;
215
- }, "strip", z.ZodTypeAny, {
216
- type: "pbx";
217
- sipWsUrl: string;
218
- }, {
219
- type: "pbx";
220
- sipWsUrl: string;
221
- }>, z.ZodObject<{
222
- type: z.ZodLiteral<"server">;
223
- }, "strip", z.ZodTypeAny, {
224
- type: "server";
225
- }, {
226
- type: "server";
227
- }>, z.ZodObject<{
228
- type: z.ZodLiteral<"intercom-operator">;
229
- }, "strip", z.ZodTypeAny, {
230
- type: "intercom-operator";
231
- }, {
232
- type: "intercom-operator";
233
- }>, z.ZodObject<{
234
- type: z.ZodLiteral<"device-gateway">;
235
- }, "strip", z.ZodTypeAny, {
236
- type: "device-gateway";
237
- }, {
238
- type: "device-gateway";
239
- }>, z.ZodObject<{
240
- type: z.ZodLiteral<"presence-tracker">;
241
- }, "strip", z.ZodTypeAny, {
242
- type: "presence-tracker";
243
- }, {
244
- type: "presence-tracker";
245
- }>, z.ZodObject<{
246
- type: z.ZodLiteral<"reader">;
247
- }, "strip", z.ZodTypeAny, {
248
- type: "reader";
249
- }, {
250
- type: "reader";
251
- }>, z.ZodObject<{
252
- type: z.ZodLiteral<"display">;
253
- }, "strip", z.ZodTypeAny, {
254
- type: "display";
255
- }, {
256
- type: "display";
257
- }>, z.ZodObject<{
258
- type: z.ZodLiteral<"nvr-recorder">;
259
- }, "strip", z.ZodTypeAny, {
260
- type: "nvr-recorder";
261
- }, {
262
- type: "nvr-recorder";
263
- }>, z.ZodObject<{
264
- type: z.ZodLiteral<"nvr-exporter">;
265
- }, "strip", z.ZodTypeAny, {
266
- type: "nvr-exporter";
267
- }, {
268
- type: "nvr-exporter";
269
- }>, z.ZodObject<{
270
- type: z.ZodLiteral<"nvr-analytics-server">;
271
- }, "strip", z.ZodTypeAny, {
272
- type: "nvr-analytics-server";
273
- }, {
274
- type: "nvr-analytics-server";
275
- }>, z.ZodObject<{
276
- type: z.ZodLiteral<"system">;
277
- }, "strip", z.ZodTypeAny, {
278
- type: "system";
279
- }, {
280
- type: "system";
281
- }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
282
- message: z.ZodString;
283
- severity: z.ZodEnum<["info", "warning", "critical"]>;
284
- metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
285
- notificationRef: z.ZodNullable<z.ZodString>;
286
- recipientId: z.ZodNullable<z.ZodString>;
287
- }, "strip", z.ZodTypeAny, {
288
- message: string;
289
- source: string | [string, string] | ({
290
- name: string;
291
- foreignRef: string;
292
- provider: string;
293
- providerMetadata: {} & {
294
- [k: string]: unknown;
295
- };
296
- } & ({
297
- type: "alarm";
298
- } | {
299
- type: "camera";
300
- streams: {
301
- id: string;
302
- displayName: string;
303
- externalPlayerUrl: string | null;
304
- }[];
305
- lensType: "flat" | "fisheye";
306
- mountPoint: "wall" | "ceiling" | "floor";
307
- ptzCapable: boolean;
308
- ptzPanSpeed: number;
309
- ptzTiltSpeed: number;
310
- ptzZoomSpeed: number;
311
- panMin: number;
312
- panMax: number;
313
- tiltMin: number;
314
- tiltMax: number;
315
- zoomMin: number;
316
- zoomMax: number;
317
- recordingCapable: boolean;
318
- webrtcPlaybackSource: ({
319
- kind: string;
320
- } & Record<string, unknown>) | null;
321
- defaultStreamId: string;
322
- } | {
323
- type: "door";
324
- canReportOpenState: boolean;
325
- canReportLockState: boolean;
326
- canControlLock: boolean;
327
- canRelease: boolean;
328
- } | {
329
- type: "io-board";
330
- inputs: string[];
331
- outputs: string[];
332
- } | {
333
- type: "camera-lift";
334
- } | {
335
- type: "motion-sensor";
336
- } | {
337
- type: "panic-button";
338
- } | {
339
- type: "intercom-terminal";
340
- sipUri: string;
341
- sipUser: string;
342
- sipPassword: string;
343
- sipRealm: string;
344
- remoteExtension: string;
345
- } | {
346
- type: "pbx";
347
- sipWsUrl: string;
348
- } | {
349
- type: "server";
350
- } | {
351
- type: "intercom-operator";
352
- } | {
353
- type: "device-gateway";
354
- } | {
355
- type: "presence-tracker";
356
- } | {
357
- type: "reader";
358
- } | {
359
- type: "display";
360
- } | {
361
- type: "nvr-recorder";
362
- } | {
363
- type: "nvr-exporter";
364
- } | {
365
- type: "nvr-analytics-server";
366
- } | {
367
- type: "system";
368
- }));
369
- metadata: Record<string, unknown>;
370
- notificationRef: string | null;
371
- severity: "info" | "warning" | "critical";
372
- recipientId: string | null;
373
- }, {
374
- message: string;
375
- source: string | [string, string] | ({
376
- name: string;
377
- foreignRef: string;
378
- provider: string;
379
- providerMetadata: {} & {
380
- [k: string]: unknown;
381
- };
382
- } & ({
383
- type: "alarm";
384
- } | {
385
- type: "camera";
386
- streams: {
387
- id: string;
388
- displayName: string;
389
- externalPlayerUrl: string | null;
390
- }[];
391
- lensType: "flat" | "fisheye";
392
- mountPoint: "wall" | "ceiling" | "floor";
393
- ptzCapable: boolean;
394
- ptzPanSpeed: number;
395
- ptzTiltSpeed: number;
396
- ptzZoomSpeed: number;
397
- panMin: number;
398
- panMax: number;
399
- tiltMin: number;
400
- tiltMax: number;
401
- zoomMin: number;
402
- zoomMax: number;
403
- recordingCapable: boolean;
404
- webrtcPlaybackSource: ({
405
- kind: string;
406
- } & Record<string, unknown>) | null;
407
- defaultStreamId: string;
408
- } | {
409
- type: "door";
410
- canReportOpenState: boolean;
411
- canReportLockState: boolean;
412
- canControlLock: boolean;
413
- canRelease: boolean;
414
- } | {
415
- type: "io-board";
416
- inputs: string[];
417
- outputs: string[];
418
- } | {
419
- type: "camera-lift";
420
- } | {
421
- type: "motion-sensor";
422
- } | {
423
- type: "panic-button";
424
- } | {
425
- type: "intercom-terminal";
426
- sipUri: string;
427
- sipUser: string;
428
- sipPassword: string;
429
- sipRealm: string;
430
- remoteExtension: string;
431
- } | {
432
- type: "pbx";
433
- sipWsUrl: string;
434
- } | {
435
- type: "server";
436
- } | {
437
- type: "intercom-operator";
438
- } | {
439
- type: "device-gateway";
440
- } | {
441
- type: "presence-tracker";
442
- } | {
443
- type: "reader";
444
- } | {
445
- type: "display";
446
- } | {
447
- type: "nvr-recorder";
448
- } | {
449
- type: "nvr-exporter";
450
- } | {
451
- type: "nvr-analytics-server";
452
- } | {
453
- type: "system";
454
- }));
455
- metadata: Record<string, unknown>;
456
- notificationRef: string | null;
457
- severity: "info" | "warning" | "critical";
458
- recipientId: string | null;
459
- }>;
460
- }, "strip", z.ZodTypeAny, {
461
- params: {
462
- message: string;
463
- source: string | [string, string] | ({
464
- name: string;
465
- foreignRef: string;
466
- provider: string;
467
- providerMetadata: {} & {
468
- [k: string]: unknown;
469
- };
470
- } & ({
471
- type: "alarm";
472
- } | {
473
- type: "camera";
474
- streams: {
475
- id: string;
476
- displayName: string;
477
- externalPlayerUrl: string | null;
478
- }[];
479
- lensType: "flat" | "fisheye";
480
- mountPoint: "wall" | "ceiling" | "floor";
481
- ptzCapable: boolean;
482
- ptzPanSpeed: number;
483
- ptzTiltSpeed: number;
484
- ptzZoomSpeed: number;
485
- panMin: number;
486
- panMax: number;
487
- tiltMin: number;
488
- tiltMax: number;
489
- zoomMin: number;
490
- zoomMax: number;
491
- recordingCapable: boolean;
492
- webrtcPlaybackSource: ({
493
- kind: string;
494
- } & Record<string, unknown>) | null;
495
- defaultStreamId: string;
496
- } | {
497
- type: "door";
498
- canReportOpenState: boolean;
499
- canReportLockState: boolean;
500
- canControlLock: boolean;
501
- canRelease: boolean;
502
- } | {
503
- type: "io-board";
504
- inputs: string[];
505
- outputs: string[];
506
- } | {
507
- type: "camera-lift";
508
- } | {
509
- type: "motion-sensor";
510
- } | {
511
- type: "panic-button";
512
- } | {
513
- type: "intercom-terminal";
514
- sipUri: string;
515
- sipUser: string;
516
- sipPassword: string;
517
- sipRealm: string;
518
- remoteExtension: string;
519
- } | {
520
- type: "pbx";
521
- sipWsUrl: string;
522
- } | {
523
- type: "server";
524
- } | {
525
- type: "intercom-operator";
526
- } | {
527
- type: "device-gateway";
528
- } | {
529
- type: "presence-tracker";
530
- } | {
531
- type: "reader";
532
- } | {
533
- type: "display";
534
- } | {
535
- type: "nvr-recorder";
536
- } | {
537
- type: "nvr-exporter";
538
- } | {
539
- type: "nvr-analytics-server";
540
- } | {
541
- type: "system";
542
- }));
543
- metadata: Record<string, unknown>;
544
- notificationRef: string | null;
545
- severity: "info" | "warning" | "critical";
546
- recipientId: string | null;
547
- };
548
- command: "server.notify";
549
- }, {
550
- params: {
551
- message: string;
552
- source: string | [string, string] | ({
553
- name: string;
554
- foreignRef: string;
555
- provider: string;
556
- providerMetadata: {} & {
557
- [k: string]: unknown;
558
- };
559
- } & ({
560
- type: "alarm";
561
- } | {
562
- type: "camera";
563
- streams: {
564
- id: string;
565
- displayName: string;
566
- externalPlayerUrl: string | null;
567
- }[];
568
- lensType: "flat" | "fisheye";
569
- mountPoint: "wall" | "ceiling" | "floor";
570
- ptzCapable: boolean;
571
- ptzPanSpeed: number;
572
- ptzTiltSpeed: number;
573
- ptzZoomSpeed: number;
574
- panMin: number;
575
- panMax: number;
576
- tiltMin: number;
577
- tiltMax: number;
578
- zoomMin: number;
579
- zoomMax: number;
580
- recordingCapable: boolean;
581
- webrtcPlaybackSource: ({
582
- kind: string;
583
- } & Record<string, unknown>) | null;
584
- defaultStreamId: string;
585
- } | {
586
- type: "door";
587
- canReportOpenState: boolean;
588
- canReportLockState: boolean;
589
- canControlLock: boolean;
590
- canRelease: boolean;
591
- } | {
592
- type: "io-board";
593
- inputs: string[];
594
- outputs: string[];
595
- } | {
596
- type: "camera-lift";
597
- } | {
598
- type: "motion-sensor";
599
- } | {
600
- type: "panic-button";
601
- } | {
602
- type: "intercom-terminal";
603
- sipUri: string;
604
- sipUser: string;
605
- sipPassword: string;
606
- sipRealm: string;
607
- remoteExtension: string;
608
- } | {
609
- type: "pbx";
610
- sipWsUrl: string;
611
- } | {
612
- type: "server";
613
- } | {
614
- type: "intercom-operator";
615
- } | {
616
- type: "device-gateway";
617
- } | {
618
- type: "presence-tracker";
619
- } | {
620
- type: "reader";
621
- } | {
622
- type: "display";
623
- } | {
624
- type: "nvr-recorder";
625
- } | {
626
- type: "nvr-exporter";
627
- } | {
628
- type: "nvr-analytics-server";
629
- } | {
630
- type: "system";
631
- }));
632
- metadata: Record<string, unknown>;
633
- notificationRef: string | null;
634
- severity: "info" | "warning" | "critical";
635
- recipientId: string | null;
636
- };
637
- command: "server.notify";
638
- }>;
639
- export type RunMacro = z.infer<typeof sRunMacroCommand>;
640
- export type Notify = z.infer<typeof sNotify>;
641
- export declare const serverCommands: {
642
- readonly 'server.run-macro': z.ZodObject<{
643
- command: z.ZodLiteral<"server.run-macro">;
644
- params: z.ZodObject<{
645
- macroId: z.ZodString;
646
- }, "strip", z.ZodTypeAny, {
647
- macroId: string;
648
- }, {
649
- macroId: string;
650
- }>;
651
- }, "strip", z.ZodTypeAny, {
652
- params: {
653
- macroId: string;
654
- };
655
- command: "server.run-macro";
656
- }, {
657
- params: {
658
- macroId: string;
659
- };
660
- command: "server.run-macro";
661
- }>;
662
- readonly 'server.notify': z.ZodObject<{
663
- command: z.ZodLiteral<"server.notify">;
664
- params: z.ZodObject<{
665
- source: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
666
- name: z.ZodString;
667
- foreignRef: z.ZodString;
668
- provider: z.ZodString;
669
- providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
670
- }, "strip", z.ZodTypeAny, {
671
- name: string;
672
- foreignRef: string;
673
- provider: string;
674
- providerMetadata: {} & {
675
- [k: string]: unknown;
676
- };
677
- }, {
678
- name: string;
679
- foreignRef: string;
680
- provider: string;
681
- providerMetadata: {} & {
682
- [k: string]: unknown;
683
- };
684
- }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
685
- type: z.ZodLiteral<"alarm">;
686
- }, "strip", z.ZodTypeAny, {
687
- type: "alarm";
688
- }, {
689
- type: "alarm";
690
- }>, z.ZodObject<{
691
- lensType: z.ZodEnum<["flat", "fisheye"]>;
692
- mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
693
- ptzCapable: z.ZodBoolean;
694
- ptzPanSpeed: z.ZodNumber;
695
- ptzTiltSpeed: z.ZodNumber;
696
- ptzZoomSpeed: z.ZodNumber;
697
- panMin: z.ZodNumber;
698
- panMax: z.ZodNumber;
699
- tiltMin: z.ZodNumber;
700
- tiltMax: z.ZodNumber;
701
- zoomMin: z.ZodNumber;
702
- zoomMax: z.ZodNumber;
703
- recordingCapable: z.ZodBoolean;
704
- webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
705
- kind: z.ZodString;
706
- }, "strip", z.ZodTypeAny, {
707
- kind: string;
708
- }, {
709
- kind: string;
710
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
711
- streams: z.ZodArray<z.ZodObject<{
712
- id: z.ZodString;
713
- displayName: z.ZodString;
714
- externalPlayerUrl: z.ZodNullable<z.ZodString>;
715
- }, "strip", z.ZodTypeAny, {
716
- id: string;
717
- displayName: string;
718
- externalPlayerUrl: string | null;
719
- }, {
720
- id: string;
721
- displayName: string;
722
- externalPlayerUrl: string | null;
723
- }>, "many">;
724
- defaultStreamId: z.ZodString;
725
- } & {
726
- type: z.ZodLiteral<"camera">;
727
- }, "strip", z.ZodTypeAny, {
728
- type: "camera";
729
- streams: {
730
- id: string;
731
- displayName: string;
732
- externalPlayerUrl: string | null;
733
- }[];
734
- lensType: "flat" | "fisheye";
735
- mountPoint: "wall" | "ceiling" | "floor";
736
- ptzCapable: boolean;
737
- ptzPanSpeed: number;
738
- ptzTiltSpeed: number;
739
- ptzZoomSpeed: number;
740
- panMin: number;
741
- panMax: number;
742
- tiltMin: number;
743
- tiltMax: number;
744
- zoomMin: number;
745
- zoomMax: number;
746
- recordingCapable: boolean;
747
- webrtcPlaybackSource: ({
748
- kind: string;
749
- } & Record<string, unknown>) | null;
750
- defaultStreamId: string;
751
- }, {
752
- type: "camera";
753
- streams: {
754
- id: string;
755
- displayName: string;
756
- externalPlayerUrl: string | null;
757
- }[];
758
- lensType: "flat" | "fisheye";
759
- mountPoint: "wall" | "ceiling" | "floor";
760
- ptzCapable: boolean;
761
- ptzPanSpeed: number;
762
- ptzTiltSpeed: number;
763
- ptzZoomSpeed: number;
764
- panMin: number;
765
- panMax: number;
766
- tiltMin: number;
767
- tiltMax: number;
768
- zoomMin: number;
769
- zoomMax: number;
770
- recordingCapable: boolean;
771
- webrtcPlaybackSource: ({
772
- kind: string;
773
- } & Record<string, unknown>) | null;
774
- defaultStreamId: string;
775
- }>, z.ZodObject<{
776
- canReportOpenState: z.ZodBoolean;
777
- canReportLockState: z.ZodBoolean;
778
- canControlLock: z.ZodBoolean;
779
- canRelease: z.ZodBoolean;
780
- } & {
781
- type: z.ZodLiteral<"door">;
782
- }, "strip", z.ZodTypeAny, {
783
- type: "door";
784
- canReportOpenState: boolean;
785
- canReportLockState: boolean;
786
- canControlLock: boolean;
787
- canRelease: boolean;
788
- }, {
789
- type: "door";
790
- canReportOpenState: boolean;
791
- canReportLockState: boolean;
792
- canControlLock: boolean;
793
- canRelease: boolean;
794
- }>, z.ZodObject<{
795
- inputs: z.ZodArray<z.ZodString, "many">;
796
- outputs: z.ZodArray<z.ZodString, "many">;
797
- } & {
798
- type: z.ZodLiteral<"io-board">;
799
- }, "strip", z.ZodTypeAny, {
800
- type: "io-board";
801
- inputs: string[];
802
- outputs: string[];
803
- }, {
804
- type: "io-board";
805
- inputs: string[];
806
- outputs: string[];
807
- }>, z.ZodObject<{
808
- type: z.ZodLiteral<"camera-lift">;
809
- }, "strip", z.ZodTypeAny, {
810
- type: "camera-lift";
811
- }, {
812
- type: "camera-lift";
813
- }>, z.ZodObject<{
814
- type: z.ZodLiteral<"motion-sensor">;
815
- }, "strip", z.ZodTypeAny, {
816
- type: "motion-sensor";
817
- }, {
818
- type: "motion-sensor";
819
- }>, z.ZodObject<{
820
- type: z.ZodLiteral<"panic-button">;
821
- }, "strip", z.ZodTypeAny, {
822
- type: "panic-button";
823
- }, {
824
- type: "panic-button";
825
- }>, z.ZodObject<{
826
- sipUri: z.ZodString;
827
- sipUser: z.ZodString;
828
- sipPassword: z.ZodString;
829
- sipRealm: z.ZodString;
830
- remoteExtension: z.ZodString;
831
- } & {
832
- type: z.ZodLiteral<"intercom-terminal">;
833
- }, "strip", z.ZodTypeAny, {
834
- type: "intercom-terminal";
835
- sipUri: string;
836
- sipUser: string;
837
- sipPassword: string;
838
- sipRealm: string;
839
- remoteExtension: string;
840
- }, {
841
- type: "intercom-terminal";
842
- sipUri: string;
843
- sipUser: string;
844
- sipPassword: string;
845
- sipRealm: string;
846
- remoteExtension: string;
847
- }>, z.ZodObject<{
848
- sipWsUrl: z.ZodString;
849
- } & {
850
- type: z.ZodLiteral<"pbx">;
851
- }, "strip", z.ZodTypeAny, {
852
- type: "pbx";
853
- sipWsUrl: string;
854
- }, {
855
- type: "pbx";
856
- sipWsUrl: string;
857
- }>, z.ZodObject<{
858
- type: z.ZodLiteral<"server">;
859
- }, "strip", z.ZodTypeAny, {
860
- type: "server";
861
- }, {
862
- type: "server";
863
- }>, z.ZodObject<{
864
- type: z.ZodLiteral<"intercom-operator">;
865
- }, "strip", z.ZodTypeAny, {
866
- type: "intercom-operator";
867
- }, {
868
- type: "intercom-operator";
869
- }>, z.ZodObject<{
870
- type: z.ZodLiteral<"device-gateway">;
871
- }, "strip", z.ZodTypeAny, {
872
- type: "device-gateway";
873
- }, {
874
- type: "device-gateway";
875
- }>, z.ZodObject<{
876
- type: z.ZodLiteral<"presence-tracker">;
877
- }, "strip", z.ZodTypeAny, {
878
- type: "presence-tracker";
879
- }, {
880
- type: "presence-tracker";
881
- }>, z.ZodObject<{
882
- type: z.ZodLiteral<"reader">;
883
- }, "strip", z.ZodTypeAny, {
884
- type: "reader";
885
- }, {
886
- type: "reader";
887
- }>, z.ZodObject<{
888
- type: z.ZodLiteral<"display">;
889
- }, "strip", z.ZodTypeAny, {
890
- type: "display";
891
- }, {
892
- type: "display";
893
- }>, z.ZodObject<{
894
- type: z.ZodLiteral<"nvr-recorder">;
895
- }, "strip", z.ZodTypeAny, {
896
- type: "nvr-recorder";
897
- }, {
898
- type: "nvr-recorder";
899
- }>, z.ZodObject<{
900
- type: z.ZodLiteral<"nvr-exporter">;
901
- }, "strip", z.ZodTypeAny, {
902
- type: "nvr-exporter";
903
- }, {
904
- type: "nvr-exporter";
905
- }>, z.ZodObject<{
906
- type: z.ZodLiteral<"nvr-analytics-server">;
907
- }, "strip", z.ZodTypeAny, {
908
- type: "nvr-analytics-server";
909
- }, {
910
- type: "nvr-analytics-server";
911
- }>, z.ZodObject<{
912
- type: z.ZodLiteral<"system">;
913
- }, "strip", z.ZodTypeAny, {
914
- type: "system";
915
- }, {
916
- type: "system";
917
- }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
918
- message: z.ZodString;
919
- severity: z.ZodEnum<["info", "warning", "critical"]>;
920
- metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
921
- notificationRef: z.ZodNullable<z.ZodString>;
922
- recipientId: z.ZodNullable<z.ZodString>;
923
- }, "strip", z.ZodTypeAny, {
924
- message: string;
925
- source: string | [string, string] | ({
926
- name: string;
927
- foreignRef: string;
928
- provider: string;
929
- providerMetadata: {} & {
930
- [k: string]: unknown;
931
- };
932
- } & ({
933
- type: "alarm";
934
- } | {
935
- type: "camera";
936
- streams: {
937
- id: string;
938
- displayName: string;
939
- externalPlayerUrl: string | null;
940
- }[];
941
- lensType: "flat" | "fisheye";
942
- mountPoint: "wall" | "ceiling" | "floor";
943
- ptzCapable: boolean;
944
- ptzPanSpeed: number;
945
- ptzTiltSpeed: number;
946
- ptzZoomSpeed: number;
947
- panMin: number;
948
- panMax: number;
949
- tiltMin: number;
950
- tiltMax: number;
951
- zoomMin: number;
952
- zoomMax: number;
953
- recordingCapable: boolean;
954
- webrtcPlaybackSource: ({
955
- kind: string;
956
- } & Record<string, unknown>) | null;
957
- defaultStreamId: string;
958
- } | {
959
- type: "door";
960
- canReportOpenState: boolean;
961
- canReportLockState: boolean;
962
- canControlLock: boolean;
963
- canRelease: boolean;
964
- } | {
965
- type: "io-board";
966
- inputs: string[];
967
- outputs: string[];
968
- } | {
969
- type: "camera-lift";
970
- } | {
971
- type: "motion-sensor";
972
- } | {
973
- type: "panic-button";
974
- } | {
975
- type: "intercom-terminal";
976
- sipUri: string;
977
- sipUser: string;
978
- sipPassword: string;
979
- sipRealm: string;
980
- remoteExtension: string;
981
- } | {
982
- type: "pbx";
983
- sipWsUrl: string;
984
- } | {
985
- type: "server";
986
- } | {
987
- type: "intercom-operator";
988
- } | {
989
- type: "device-gateway";
990
- } | {
991
- type: "presence-tracker";
992
- } | {
993
- type: "reader";
994
- } | {
995
- type: "display";
996
- } | {
997
- type: "nvr-recorder";
998
- } | {
999
- type: "nvr-exporter";
1000
- } | {
1001
- type: "nvr-analytics-server";
1002
- } | {
1003
- type: "system";
1004
- }));
1005
- metadata: Record<string, unknown>;
1006
- notificationRef: string | null;
1007
- severity: "info" | "warning" | "critical";
1008
- recipientId: string | null;
1009
- }, {
1010
- message: string;
1011
- source: string | [string, string] | ({
1012
- name: string;
1013
- foreignRef: string;
1014
- provider: string;
1015
- providerMetadata: {} & {
1016
- [k: string]: unknown;
1017
- };
1018
- } & ({
1019
- type: "alarm";
1020
- } | {
1021
- type: "camera";
1022
- streams: {
1023
- id: string;
1024
- displayName: string;
1025
- externalPlayerUrl: string | null;
1026
- }[];
1027
- lensType: "flat" | "fisheye";
1028
- mountPoint: "wall" | "ceiling" | "floor";
1029
- ptzCapable: boolean;
1030
- ptzPanSpeed: number;
1031
- ptzTiltSpeed: number;
1032
- ptzZoomSpeed: number;
1033
- panMin: number;
1034
- panMax: number;
1035
- tiltMin: number;
1036
- tiltMax: number;
1037
- zoomMin: number;
1038
- zoomMax: number;
1039
- recordingCapable: boolean;
1040
- webrtcPlaybackSource: ({
1041
- kind: string;
1042
- } & Record<string, unknown>) | null;
1043
- defaultStreamId: string;
1044
- } | {
1045
- type: "door";
1046
- canReportOpenState: boolean;
1047
- canReportLockState: boolean;
1048
- canControlLock: boolean;
1049
- canRelease: boolean;
1050
- } | {
1051
- type: "io-board";
1052
- inputs: string[];
1053
- outputs: string[];
1054
- } | {
1055
- type: "camera-lift";
1056
- } | {
1057
- type: "motion-sensor";
1058
- } | {
1059
- type: "panic-button";
1060
- } | {
1061
- type: "intercom-terminal";
1062
- sipUri: string;
1063
- sipUser: string;
1064
- sipPassword: string;
1065
- sipRealm: string;
1066
- remoteExtension: string;
1067
- } | {
1068
- type: "pbx";
1069
- sipWsUrl: string;
1070
- } | {
1071
- type: "server";
1072
- } | {
1073
- type: "intercom-operator";
1074
- } | {
1075
- type: "device-gateway";
1076
- } | {
1077
- type: "presence-tracker";
1078
- } | {
1079
- type: "reader";
1080
- } | {
1081
- type: "display";
1082
- } | {
1083
- type: "nvr-recorder";
1084
- } | {
1085
- type: "nvr-exporter";
1086
- } | {
1087
- type: "nvr-analytics-server";
1088
- } | {
1089
- type: "system";
1090
- }));
1091
- metadata: Record<string, unknown>;
1092
- notificationRef: string | null;
1093
- severity: "info" | "warning" | "critical";
1094
- recipientId: string | null;
1095
- }>;
1096
- }, "strip", z.ZodTypeAny, {
1097
- params: {
1098
- message: string;
1099
- source: string | [string, string] | ({
1100
- name: string;
1101
- foreignRef: string;
1102
- provider: string;
1103
- providerMetadata: {} & {
1104
- [k: string]: unknown;
1105
- };
1106
- } & ({
1107
- type: "alarm";
1108
- } | {
1109
- type: "camera";
1110
- streams: {
1111
- id: string;
1112
- displayName: string;
1113
- externalPlayerUrl: string | null;
1114
- }[];
1115
- lensType: "flat" | "fisheye";
1116
- mountPoint: "wall" | "ceiling" | "floor";
1117
- ptzCapable: boolean;
1118
- ptzPanSpeed: number;
1119
- ptzTiltSpeed: number;
1120
- ptzZoomSpeed: number;
1121
- panMin: number;
1122
- panMax: number;
1123
- tiltMin: number;
1124
- tiltMax: number;
1125
- zoomMin: number;
1126
- zoomMax: number;
1127
- recordingCapable: boolean;
1128
- webrtcPlaybackSource: ({
1129
- kind: string;
1130
- } & Record<string, unknown>) | null;
1131
- defaultStreamId: string;
1132
- } | {
1133
- type: "door";
1134
- canReportOpenState: boolean;
1135
- canReportLockState: boolean;
1136
- canControlLock: boolean;
1137
- canRelease: boolean;
1138
- } | {
1139
- type: "io-board";
1140
- inputs: string[];
1141
- outputs: string[];
1142
- } | {
1143
- type: "camera-lift";
1144
- } | {
1145
- type: "motion-sensor";
1146
- } | {
1147
- type: "panic-button";
1148
- } | {
1149
- type: "intercom-terminal";
1150
- sipUri: string;
1151
- sipUser: string;
1152
- sipPassword: string;
1153
- sipRealm: string;
1154
- remoteExtension: string;
1155
- } | {
1156
- type: "pbx";
1157
- sipWsUrl: string;
1158
- } | {
1159
- type: "server";
1160
- } | {
1161
- type: "intercom-operator";
1162
- } | {
1163
- type: "device-gateway";
1164
- } | {
1165
- type: "presence-tracker";
1166
- } | {
1167
- type: "reader";
1168
- } | {
1169
- type: "display";
1170
- } | {
1171
- type: "nvr-recorder";
1172
- } | {
1173
- type: "nvr-exporter";
1174
- } | {
1175
- type: "nvr-analytics-server";
1176
- } | {
1177
- type: "system";
1178
- }));
1179
- metadata: Record<string, unknown>;
1180
- notificationRef: string | null;
1181
- severity: "info" | "warning" | "critical";
1182
- recipientId: string | null;
1183
- };
1184
- command: "server.notify";
1185
- }, {
1186
- params: {
1187
- message: string;
1188
- source: string | [string, string] | ({
1189
- name: string;
1190
- foreignRef: string;
1191
- provider: string;
1192
- providerMetadata: {} & {
1193
- [k: string]: unknown;
1194
- };
1195
- } & ({
1196
- type: "alarm";
1197
- } | {
1198
- type: "camera";
1199
- streams: {
1200
- id: string;
1201
- displayName: string;
1202
- externalPlayerUrl: string | null;
1203
- }[];
1204
- lensType: "flat" | "fisheye";
1205
- mountPoint: "wall" | "ceiling" | "floor";
1206
- ptzCapable: boolean;
1207
- ptzPanSpeed: number;
1208
- ptzTiltSpeed: number;
1209
- ptzZoomSpeed: number;
1210
- panMin: number;
1211
- panMax: number;
1212
- tiltMin: number;
1213
- tiltMax: number;
1214
- zoomMin: number;
1215
- zoomMax: number;
1216
- recordingCapable: boolean;
1217
- webrtcPlaybackSource: ({
1218
- kind: string;
1219
- } & Record<string, unknown>) | null;
1220
- defaultStreamId: string;
1221
- } | {
1222
- type: "door";
1223
- canReportOpenState: boolean;
1224
- canReportLockState: boolean;
1225
- canControlLock: boolean;
1226
- canRelease: boolean;
1227
- } | {
1228
- type: "io-board";
1229
- inputs: string[];
1230
- outputs: string[];
1231
- } | {
1232
- type: "camera-lift";
1233
- } | {
1234
- type: "motion-sensor";
1235
- } | {
1236
- type: "panic-button";
1237
- } | {
1238
- type: "intercom-terminal";
1239
- sipUri: string;
1240
- sipUser: string;
1241
- sipPassword: string;
1242
- sipRealm: string;
1243
- remoteExtension: string;
1244
- } | {
1245
- type: "pbx";
1246
- sipWsUrl: string;
1247
- } | {
1248
- type: "server";
1249
- } | {
1250
- type: "intercom-operator";
1251
- } | {
1252
- type: "device-gateway";
1253
- } | {
1254
- type: "presence-tracker";
1255
- } | {
1256
- type: "reader";
1257
- } | {
1258
- type: "display";
1259
- } | {
1260
- type: "nvr-recorder";
1261
- } | {
1262
- type: "nvr-exporter";
1263
- } | {
1264
- type: "nvr-analytics-server";
1265
- } | {
1266
- type: "system";
1267
- }));
1268
- metadata: Record<string, unknown>;
1269
- notificationRef: string | null;
1270
- severity: "info" | "warning" | "critical";
1271
- recipientId: string | null;
1272
- };
1273
- command: "server.notify";
1274
- }>;
1275
- };
1276
- export type ServerCommand = RunMacro | Notify;
1277
4
  export type AccessControlProviderState = AccessControlCapabilityReport & {
1278
5
  syncInProgress: boolean;
1279
6
  lastSyncError: string | null;
@@ -1289,66 +16,3 @@ export type ServerState = {
1289
16
  accessControlProviders: Record<string, AccessControlProviderState>;
1290
17
  citadelMode: boolean;
1291
18
  };
1292
- export declare const sAgentStarted: z.ZodObject<{
1293
- kind: z.ZodLiteral<"agent-started">;
1294
- agent: z.ZodString;
1295
- providers: z.ZodArray<z.ZodString, "many">;
1296
- }, "strip", z.ZodTypeAny, {
1297
- kind: "agent-started";
1298
- providers: string[];
1299
- agent: string;
1300
- }, {
1301
- kind: "agent-started";
1302
- providers: string[];
1303
- agent: string;
1304
- }>;
1305
- export declare const sAgentStopped: z.ZodObject<{
1306
- kind: z.ZodLiteral<"agent-stopped">;
1307
- agent: z.ZodString;
1308
- providers: z.ZodArray<z.ZodString, "many">;
1309
- }, "strip", z.ZodTypeAny, {
1310
- kind: "agent-stopped";
1311
- providers: string[];
1312
- agent: string;
1313
- }, {
1314
- kind: "agent-stopped";
1315
- providers: string[];
1316
- agent: string;
1317
- }>;
1318
- export type AgentStarted = z.infer<typeof sAgentStarted>;
1319
- export type AgentStopped = z.infer<typeof sAgentStopped>;
1320
- export type ObjectCreated = {
1321
- [K in keyof ObjectKinds]: {
1322
- originator: string;
1323
- objectVersion: number;
1324
- objectKind: K;
1325
- data: ObjectKinds[K];
1326
- objectId: string;
1327
- kind: 'object-created';
1328
- userId?: string;
1329
- };
1330
- }[keyof ObjectKinds];
1331
- export type ObjectUpdated = {
1332
- [K in keyof ObjectKinds]: {
1333
- originator: string;
1334
- objectVersion: number;
1335
- objectKind: K;
1336
- original: ObjectKinds[K];
1337
- changes: Partial<ObjectKinds[K]>;
1338
- objectId: string;
1339
- kind: 'object-updated';
1340
- userId?: string;
1341
- };
1342
- }[keyof ObjectKinds];
1343
- export type ObjectDeleted = {
1344
- [K in keyof ObjectKinds]: {
1345
- originator: string;
1346
- objectVersion: number;
1347
- objectKind: K;
1348
- data: ObjectKinds[K];
1349
- objectId: string;
1350
- kind: 'object-deleted';
1351
- userId?: string;
1352
- };
1353
- }[keyof ObjectKinds];
1354
- export type ServerEvent = ObjectCreated | ObjectUpdated | ObjectDeleted | AgentStarted | AgentStopped;