@awarevue/api-types 2.0.82 → 2.0.84

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 (131) hide show
  1. package/dist/alarm-automation.d.ts +21 -37
  2. package/dist/api/agent-protocol/protocol.d.ts +1000 -10986
  3. package/dist/api/agent-protocol/protocol.js +114 -57
  4. package/dist/api/commands/alarm.d.ts +40 -248
  5. package/dist/api/commands/all.d.ts +393 -4642
  6. package/dist/api/commands/camera-lift.d.ts +8 -32
  7. package/dist/api/commands/camera.d.ts +82 -373
  8. package/dist/api/commands/display.d.ts +21 -373
  9. package/dist/api/commands/door.d.ts +16 -64
  10. package/dist/api/commands/io-board.d.ts +4 -40
  11. package/dist/api/commands/nvr-exporter.d.ts +104 -1380
  12. package/dist/api/commands/nvr-recorder.d.ts +400 -5288
  13. package/dist/api/commands/pbx.d.ts +4 -56
  14. package/dist/api/commands/presence-tracker.d.ts +12 -128
  15. package/dist/api/commands/server.d.ts +114 -1382
  16. package/dist/api/commands/server.js +1 -1
  17. package/dist/api/error.d.ts +77 -443
  18. package/dist/api/error.js +1 -1
  19. package/dist/api/events/alarm.d.ts +20 -148
  20. package/dist/api/events/all.d.ts +74 -526
  21. package/dist/api/events/all.js +1 -1
  22. package/dist/api/events/camera.d.ts +46 -470
  23. package/dist/api/events/display.d.ts +1 -5
  24. package/dist/api/events/door.d.ts +34 -146
  25. package/dist/api/events/intercom-terminal.d.ts +22 -42
  26. package/dist/api/events/io-board.d.ts +2 -18
  27. package/dist/api/events/nvr-exporter.d.ts +4 -32
  28. package/dist/api/events/panic-button.d.ts +2 -10
  29. package/dist/api/events/presence-tracker.d.ts +4 -88
  30. package/dist/api/events/reader.d.ts +2 -22
  31. package/dist/api/events/server.d.ts +6 -34
  32. package/dist/api/mqtt/payloads.d.ts +4 -26
  33. package/dist/api/queries/all.d.ts +188 -1622
  34. package/dist/api/queries/nvr-analytics-server.d.ts +61 -373
  35. package/dist/api/queries/nvr-exporter.d.ts +9 -73
  36. package/dist/api/queries/nvr-recorder.d.ts +300 -2828
  37. package/dist/api/rest/access-rule.d.ts +10 -86
  38. package/dist/api/rest/agreement.d.ts +3 -18
  39. package/dist/api/rest/api-keys.d.ts +3 -17
  40. package/dist/api/rest/app.d.ts +3 -51
  41. package/dist/api/rest/auth.d.ts +3 -19
  42. package/dist/api/rest/automation.d.ts +11 -236
  43. package/dist/api/rest/bookmarks.d.ts +8 -56
  44. package/dist/api/rest/camera.d.ts +12 -70
  45. package/dist/api/rest/cast.d.ts +1 -7
  46. package/dist/api/rest/custom-field.d.ts +21 -24
  47. package/dist/api/rest/device-group.d.ts +8 -32
  48. package/dist/api/rest/device.d.ts +104 -176
  49. package/dist/api/rest/io-device.d.ts +7 -75
  50. package/dist/api/rest/io-device.js +2 -2
  51. package/dist/api/rest/layout.d.ts +4 -102
  52. package/dist/api/rest/macros.d.ts +6 -82
  53. package/dist/api/rest/media.d.ts +17 -141
  54. package/dist/api/rest/notifications.d.ts +7 -15
  55. package/dist/api/rest/person-agreement.d.ts +1 -9
  56. package/dist/api/rest/person-presence.d.ts +8 -50
  57. package/dist/api/rest/person-type.d.ts +6 -39
  58. package/dist/api/rest/person.d.ts +18 -96
  59. package/dist/api/rest/query.d.ts +5 -15
  60. package/dist/api/rest/schedule.d.ts +78 -216
  61. package/dist/api/rest/security-level.d.ts +6 -43
  62. package/dist/api/rest/template.d.ts +10 -20
  63. package/dist/api/rest/token-conversion.d.ts +11 -28
  64. package/dist/api/rest/user.d.ts +15 -97
  65. package/dist/api/rest/view.d.ts +24 -496
  66. package/dist/api/rest/webrtc-playback.d.ts +3 -25
  67. package/dist/api/rest/zone.d.ts +5 -21
  68. package/dist/api/ws/device-communication.d.ts +10 -62
  69. package/dist/api/ws/notifications.d.ts +7 -33
  70. package/dist/api/ws/progress.d.ts +10 -72
  71. package/dist/api/ws/web-rtc-signaling.d.ts +33 -279
  72. package/dist/objects/access-rule.d.ts +12 -132
  73. package/dist/objects/access-rule.js +1 -1
  74. package/dist/objects/agent-metadata.d.ts +36 -146
  75. package/dist/objects/agent-metadata.js +1 -2
  76. package/dist/objects/agreement.d.ts +1 -13
  77. package/dist/objects/all.d.ts +20 -1
  78. package/dist/objects/api-key.d.ts +1 -13
  79. package/dist/objects/automation-rule.d.ts +9 -168
  80. package/dist/objects/automation-rule.js +2 -2
  81. package/dist/objects/bookmark.d.ts +3 -33
  82. package/dist/objects/bookmark.js +1 -1
  83. package/dist/objects/credential.d.ts +13 -13
  84. package/dist/objects/credential.js +1 -1
  85. package/dist/objects/custom-field.d.ts +19 -15
  86. package/dist/objects/device/alarm.d.ts +1 -1
  87. package/dist/objects/device/any-device.d.ts +1333 -4451
  88. package/dist/objects/device/camera-lift.d.ts +1 -1
  89. package/dist/objects/device/camera.d.ts +29 -125
  90. package/dist/objects/device/camera.js +1 -1
  91. package/dist/objects/device/device-import.d.ts +307 -1735
  92. package/dist/objects/device/device-relation.d.ts +70 -58
  93. package/dist/objects/device/display.d.ts +1 -1
  94. package/dist/objects/device/door.d.ts +9 -14
  95. package/dist/objects/device/intercom-terminal.d.ts +10 -59
  96. package/dist/objects/device/io-board.d.ts +3 -9
  97. package/dist/objects/device/motion-sensor.d.ts +1 -1
  98. package/dist/objects/device/nvr-analytics-server.d.ts +2 -6
  99. package/dist/objects/device/nvr-exporter.d.ts +3 -9
  100. package/dist/objects/device/nvr-recorder.d.ts +16 -68
  101. package/dist/objects/device/panic-button.d.ts +1 -1
  102. package/dist/objects/device/pbx.d.ts +1 -5
  103. package/dist/objects/device/system.d.ts +1 -1
  104. package/dist/objects/device/system.js +1 -1
  105. package/dist/objects/device-group.d.ts +2 -16
  106. package/dist/objects/layout.d.ts +3 -75
  107. package/dist/objects/macro.d.ts +3 -59
  108. package/dist/objects/macro.js +2 -2
  109. package/dist/objects/notification.d.ts +6 -24
  110. package/dist/objects/notification.js +1 -1
  111. package/dist/objects/person-agreement.d.ts +1 -13
  112. package/dist/objects/person-presence.d.ts +11 -165
  113. package/dist/objects/person-type.d.ts +2 -22
  114. package/dist/objects/person.d.ts +21 -153
  115. package/dist/objects/person.js +3 -3
  116. package/dist/objects/role.d.ts +3 -15
  117. package/dist/objects/schedule.d.ts +152 -314
  118. package/dist/objects/schedule.js +1 -1
  119. package/dist/objects/security-level.d.ts +1 -21
  120. package/dist/objects/template.d.ts +9 -13
  121. package/dist/objects/token-conversion.d.ts +8 -18
  122. package/dist/objects/user.d.ts +2 -20
  123. package/dist/objects/view.d.ts +52 -682
  124. package/dist/objects/world-object.d.ts +1 -7
  125. package/dist/objects/zone.d.ts +5 -29
  126. package/dist/objects/zone.js +1 -1
  127. package/dist/package.json +3 -3
  128. package/dist/permissions.d.ts +1 -1
  129. package/dist/primitives.d.ts +113 -551
  130. package/dist/primitives.js +1 -1
  131. package/package.json +3 -3
@@ -3,22 +3,8 @@ export declare const sRunMacroCommand: z.ZodObject<{
3
3
  command: z.ZodLiteral<"server.run-macro">;
4
4
  params: z.ZodObject<{
5
5
  macroId: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- macroId: string;
8
- }, {
9
- macroId: string;
10
- }>;
11
- }, "strip", z.ZodTypeAny, {
12
- params: {
13
- macroId: string;
14
- };
15
- command: "server.run-macro";
16
- }, {
17
- params: {
18
- macroId: string;
19
- };
20
- command: "server.run-macro";
21
- }>;
6
+ }, z.core.$strip>;
7
+ }, z.core.$strip>;
22
8
  export declare const sNotify: z.ZodObject<{
23
9
  command: z.ZodLiteral<"server.notify">;
24
10
  params: z.ZodObject<{
@@ -26,8 +12,7 @@ export declare const sNotify: z.ZodObject<{
26
12
  name: z.ZodString;
27
13
  foreignRef: z.ZodString;
28
14
  provider: z.ZodString;
29
- providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
30
- } & {
15
+ providerMetadata: z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>;
31
16
  presets: z.ZodArray<z.ZodObject<{
32
17
  id: z.ZodString;
33
18
  name: z.ZodString;
@@ -36,62 +21,10 @@ export declare const sNotify: z.ZodObject<{
36
21
  assignedRef: z.ZodNullable<z.ZodString>;
37
22
  createdOn: z.ZodString;
38
23
  lastModifiedOn: z.ZodString;
39
- }, "strip", z.ZodTypeAny, {
40
- id: string;
41
- name: string;
42
- createdOn: string;
43
- lastModifiedOn: string;
44
- isDefault: boolean;
45
- assignedRef: string | null;
46
- params?: unknown;
47
- }, {
48
- id: string;
49
- name: string;
50
- createdOn: string;
51
- lastModifiedOn: string;
52
- isDefault: boolean;
53
- assignedRef: string | null;
54
- params?: unknown;
55
- }>, "many">;
56
- }, "strip", z.ZodTypeAny, {
57
- name: string;
58
- foreignRef: string;
59
- presets: {
60
- id: string;
61
- name: string;
62
- createdOn: string;
63
- lastModifiedOn: string;
64
- isDefault: boolean;
65
- assignedRef: string | null;
66
- params?: unknown;
67
- }[];
68
- provider: string;
69
- providerMetadata: {} & {
70
- [k: string]: unknown;
71
- };
72
- }, {
73
- name: string;
74
- foreignRef: string;
75
- presets: {
76
- id: string;
77
- name: string;
78
- createdOn: string;
79
- lastModifiedOn: string;
80
- isDefault: boolean;
81
- assignedRef: string | null;
82
- params?: unknown;
83
- }[];
84
- provider: string;
85
- providerMetadata: {} & {
86
- [k: string]: unknown;
87
- };
88
- }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
89
26
  type: z.ZodLiteral<"alarm">;
90
- }, "strip", z.ZodTypeAny, {
91
- type: "alarm";
92
- }, {
93
- type: "alarm";
94
- }>, z.ZodObject<{
27
+ }, z.core.$strip>, z.ZodObject<{
95
28
  ptzCapable: z.ZodBoolean;
96
29
  ptzPanSpeed: z.ZodNumber;
97
30
  ptzTiltSpeed: z.ZodNumber;
@@ -109,660 +42,93 @@ export declare const sNotify: z.ZodObject<{
109
42
  rtspUrl: z.ZodNullable<z.ZodString>;
110
43
  width: z.ZodNullable<z.ZodNumber>;
111
44
  height: z.ZodNullable<z.ZodNumber>;
112
- lensType: z.ZodEnum<["flat", "fisheye"]>;
113
- mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
45
+ lensType: z.ZodEnum<{
46
+ flat: "flat";
47
+ fisheye: "fisheye";
48
+ }>;
49
+ mountPoint: z.ZodEnum<{
50
+ wall: "wall";
51
+ ceiling: "ceiling";
52
+ floor: "floor";
53
+ }>;
114
54
  webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
115
55
  kind: z.ZodString;
116
- }, "strip", z.ZodTypeAny, {
117
- kind: string;
118
- }, {
119
- kind: string;
120
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
121
- }, "strip", z.ZodTypeAny, {
122
- id: string;
123
- displayName: string;
124
- externalPlayerUrl: string | null;
125
- rtspUrl: string | null;
126
- width: number | null;
127
- height: number | null;
128
- lensType: "flat" | "fisheye";
129
- mountPoint: "wall" | "ceiling" | "floor";
130
- webrtcPlaybackSource: ({
131
- kind: string;
132
- } & Record<string, unknown>) | null;
133
- }, {
134
- id: string;
135
- displayName: string;
136
- externalPlayerUrl: string | null;
137
- rtspUrl: string | null;
138
- width: number | null;
139
- height: number | null;
140
- lensType: "flat" | "fisheye";
141
- mountPoint: "wall" | "ceiling" | "floor";
142
- webrtcPlaybackSource: ({
143
- kind: string;
144
- } & Record<string, unknown>) | null;
145
- }>, "many">;
56
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
57
+ }, z.core.$strip>>;
146
58
  defaultStreamId: z.ZodString;
147
59
  autoSwitchStreams: z.ZodBoolean;
148
- streamNaming: z.ZodEnum<["cameraStreamNo", "cameraStream", "stream"]>;
149
- } & {
60
+ streamNaming: z.ZodEnum<{
61
+ cameraStreamNo: "cameraStreamNo";
62
+ cameraStream: "cameraStream";
63
+ stream: "stream";
64
+ }>;
150
65
  type: z.ZodLiteral<"camera">;
151
- }, "strip", z.ZodTypeAny, {
152
- type: "camera";
153
- ptzCapable: boolean;
154
- ptzPanSpeed: number;
155
- ptzTiltSpeed: number;
156
- ptzZoomSpeed: number;
157
- panMin: number;
158
- panMax: number;
159
- tiltMin: number;
160
- tiltMax: number;
161
- zoomMin: number;
162
- zoomMax: number;
163
- streams: {
164
- id: string;
165
- displayName: string;
166
- externalPlayerUrl: string | null;
167
- rtspUrl: string | null;
168
- width: number | null;
169
- height: number | null;
170
- lensType: "flat" | "fisheye";
171
- mountPoint: "wall" | "ceiling" | "floor";
172
- webrtcPlaybackSource: ({
173
- kind: string;
174
- } & Record<string, unknown>) | null;
175
- }[];
176
- defaultStreamId: string;
177
- autoSwitchStreams: boolean;
178
- streamNaming: "cameraStreamNo" | "cameraStream" | "stream";
179
- }, {
180
- type: "camera";
181
- ptzCapable: boolean;
182
- ptzPanSpeed: number;
183
- ptzTiltSpeed: number;
184
- ptzZoomSpeed: number;
185
- panMin: number;
186
- panMax: number;
187
- tiltMin: number;
188
- tiltMax: number;
189
- zoomMin: number;
190
- zoomMax: number;
191
- streams: {
192
- id: string;
193
- displayName: string;
194
- externalPlayerUrl: string | null;
195
- rtspUrl: string | null;
196
- width: number | null;
197
- height: number | null;
198
- lensType: "flat" | "fisheye";
199
- mountPoint: "wall" | "ceiling" | "floor";
200
- webrtcPlaybackSource: ({
201
- kind: string;
202
- } & Record<string, unknown>) | null;
203
- }[];
204
- defaultStreamId: string;
205
- autoSwitchStreams: boolean;
206
- streamNaming: "cameraStreamNo" | "cameraStream" | "stream";
207
- }>, z.ZodObject<{
66
+ }, z.core.$strip>, z.ZodObject<{
208
67
  canReportOpenState: z.ZodBoolean;
209
68
  canReportLockState: z.ZodBoolean;
210
69
  canControlLock: z.ZodBoolean;
211
70
  canRelease: z.ZodBoolean;
212
- style: z.ZodOptional<z.ZodEnum<["single", "double", "sliding", "hatch", "roller", "window"]>>;
213
- } & {
71
+ style: z.ZodOptional<z.ZodEnum<{
72
+ single: "single";
73
+ double: "double";
74
+ sliding: "sliding";
75
+ hatch: "hatch";
76
+ roller: "roller";
77
+ window: "window";
78
+ }>>;
214
79
  type: z.ZodLiteral<"door">;
215
- }, "strip", z.ZodTypeAny, {
216
- type: "door";
217
- canReportOpenState: boolean;
218
- canReportLockState: boolean;
219
- canControlLock: boolean;
220
- canRelease: boolean;
221
- style?: "single" | "double" | "sliding" | "hatch" | "roller" | "window" | undefined;
222
- }, {
223
- type: "door";
224
- canReportOpenState: boolean;
225
- canReportLockState: boolean;
226
- canControlLock: boolean;
227
- canRelease: boolean;
228
- style?: "single" | "double" | "sliding" | "hatch" | "roller" | "window" | undefined;
229
- }>, z.ZodObject<{
230
- inputs: z.ZodArray<z.ZodString, "many">;
231
- outputs: z.ZodArray<z.ZodString, "many">;
232
- } & {
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ inputs: z.ZodArray<z.ZodString>;
82
+ outputs: z.ZodArray<z.ZodString>;
233
83
  type: z.ZodLiteral<"io-board">;
234
- }, "strip", z.ZodTypeAny, {
235
- type: "io-board";
236
- inputs: string[];
237
- outputs: string[];
238
- }, {
239
- type: "io-board";
240
- inputs: string[];
241
- outputs: string[];
242
- }>, z.ZodObject<{
84
+ }, z.core.$strip>, z.ZodObject<{
243
85
  type: z.ZodLiteral<"camera-lift">;
244
- }, "strip", z.ZodTypeAny, {
245
- type: "camera-lift";
246
- }, {
247
- type: "camera-lift";
248
- }>, z.ZodObject<{
86
+ }, z.core.$strip>, z.ZodObject<{
249
87
  type: z.ZodLiteral<"motion-sensor">;
250
- }, "strip", z.ZodTypeAny, {
251
- type: "motion-sensor";
252
- }, {
253
- type: "motion-sensor";
254
- }>, z.ZodObject<{
88
+ }, z.core.$strip>, z.ZodObject<{
255
89
  type: z.ZodLiteral<"panic-button">;
256
- }, "strip", z.ZodTypeAny, {
257
- type: "panic-button";
258
- }, {
259
- type: "panic-button";
260
- }>, z.ZodObject<{
90
+ }, z.core.$strip>, z.ZodObject<{
261
91
  sipUri: z.ZodString;
262
92
  sipUser: z.ZodString;
263
93
  sipPassword: z.ZodString;
264
94
  sipRealm: z.ZodString;
265
95
  remoteExtension: z.ZodString;
266
- } & {
267
96
  type: z.ZodLiteral<"intercom-terminal">;
268
- }, "strip", z.ZodTypeAny, {
269
- type: "intercom-terminal";
270
- sipUri: string;
271
- sipUser: string;
272
- sipPassword: string;
273
- sipRealm: string;
274
- remoteExtension: string;
275
- }, {
276
- type: "intercom-terminal";
277
- sipUri: string;
278
- sipUser: string;
279
- sipPassword: string;
280
- sipRealm: string;
281
- remoteExtension: string;
282
- }>, z.ZodObject<{
97
+ }, z.core.$strip>, z.ZodObject<{
283
98
  sipWsUrl: z.ZodString;
284
- } & {
285
99
  type: z.ZodLiteral<"pbx">;
286
- }, "strip", z.ZodTypeAny, {
287
- type: "pbx";
288
- sipWsUrl: string;
289
- }, {
290
- type: "pbx";
291
- sipWsUrl: string;
292
- }>, z.ZodObject<{
100
+ }, z.core.$strip>, z.ZodObject<{
293
101
  type: z.ZodLiteral<"server">;
294
- }, "strip", z.ZodTypeAny, {
295
- type: "server";
296
- }, {
297
- type: "server";
298
- }>, z.ZodObject<{
102
+ }, z.core.$strip>, z.ZodObject<{
299
103
  type: z.ZodLiteral<"intercom-operator">;
300
- }, "strip", z.ZodTypeAny, {
301
- type: "intercom-operator";
302
- }, {
303
- type: "intercom-operator";
304
- }>, z.ZodObject<{
104
+ }, z.core.$strip>, z.ZodObject<{
305
105
  type: z.ZodLiteral<"device-gateway">;
306
- }, "strip", z.ZodTypeAny, {
307
- type: "device-gateway";
308
- }, {
309
- type: "device-gateway";
310
- }>, z.ZodObject<{
106
+ }, z.core.$strip>, z.ZodObject<{
311
107
  type: z.ZodLiteral<"presence-tracker">;
312
- }, "strip", z.ZodTypeAny, {
313
- type: "presence-tracker";
314
- }, {
315
- type: "presence-tracker";
316
- }>, z.ZodObject<{
108
+ }, z.core.$strip>, z.ZodObject<{
317
109
  type: z.ZodLiteral<"reader">;
318
- }, "strip", z.ZodTypeAny, {
319
- type: "reader";
320
- }, {
321
- type: "reader";
322
- }>, z.ZodObject<{
110
+ }, z.core.$strip>, z.ZodObject<{
323
111
  type: z.ZodLiteral<"display">;
324
- }, "strip", z.ZodTypeAny, {
325
- type: "display";
326
- }, {
327
- type: "display";
328
- }>, z.ZodObject<{
112
+ }, z.core.$strip>, z.ZodObject<{
329
113
  type: z.ZodLiteral<"nvr-recorder">;
330
- }, "strip", z.ZodTypeAny, {
331
- type: "nvr-recorder";
332
- }, {
333
- type: "nvr-recorder";
334
- }>, z.ZodObject<{
114
+ }, z.core.$strip>, z.ZodObject<{
335
115
  type: z.ZodLiteral<"nvr-exporter">;
336
- }, "strip", z.ZodTypeAny, {
337
- type: "nvr-exporter";
338
- }, {
339
- type: "nvr-exporter";
340
- }>, z.ZodObject<{
116
+ }, z.core.$strip>, z.ZodObject<{
341
117
  type: z.ZodLiteral<"nvr-analytics-server">;
342
- }, "strip", z.ZodTypeAny, {
343
- type: "nvr-analytics-server";
344
- }, {
345
- type: "nvr-analytics-server";
346
- }>, z.ZodObject<{
118
+ }, z.core.$strip>, z.ZodObject<{
347
119
  type: z.ZodLiteral<"system">;
348
- }, "strip", z.ZodTypeAny, {
349
- type: "system";
350
- }, {
351
- type: "system";
352
- }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
120
+ }, z.core.$strip>], "type">>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
353
121
  message: z.ZodString;
354
- severity: z.ZodEnum<["info", "warning", "critical"]>;
122
+ severity: z.ZodEnum<{
123
+ info: "info";
124
+ warning: "warning";
125
+ critical: "critical";
126
+ }>;
355
127
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
356
128
  notificationRef: z.ZodNullable<z.ZodString>;
357
129
  recipientId: z.ZodNullable<z.ZodString>;
358
- }, "strip", z.ZodTypeAny, {
359
- message: string;
360
- metadata: Record<string, unknown>;
361
- source: string | ({
362
- name: string;
363
- foreignRef: string;
364
- presets: {
365
- id: string;
366
- name: string;
367
- createdOn: string;
368
- lastModifiedOn: string;
369
- isDefault: boolean;
370
- assignedRef: string | null;
371
- params?: unknown;
372
- }[];
373
- provider: string;
374
- providerMetadata: {} & {
375
- [k: string]: unknown;
376
- };
377
- } & ({
378
- type: "alarm";
379
- } | {
380
- type: "camera";
381
- ptzCapable: boolean;
382
- ptzPanSpeed: number;
383
- ptzTiltSpeed: number;
384
- ptzZoomSpeed: number;
385
- panMin: number;
386
- panMax: number;
387
- tiltMin: number;
388
- tiltMax: number;
389
- zoomMin: number;
390
- zoomMax: number;
391
- streams: {
392
- id: string;
393
- displayName: string;
394
- externalPlayerUrl: string | null;
395
- rtspUrl: string | null;
396
- width: number | null;
397
- height: number | null;
398
- lensType: "flat" | "fisheye";
399
- mountPoint: "wall" | "ceiling" | "floor";
400
- webrtcPlaybackSource: ({
401
- kind: string;
402
- } & Record<string, unknown>) | null;
403
- }[];
404
- defaultStreamId: string;
405
- autoSwitchStreams: boolean;
406
- streamNaming: "cameraStreamNo" | "cameraStream" | "stream";
407
- } | {
408
- type: "door";
409
- canReportOpenState: boolean;
410
- canReportLockState: boolean;
411
- canControlLock: boolean;
412
- canRelease: boolean;
413
- style?: "single" | "double" | "sliding" | "hatch" | "roller" | "window" | undefined;
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
- })) | [string, string];
455
- severity: "info" | "warning" | "critical";
456
- notificationRef: string | null;
457
- recipientId: string | null;
458
- }, {
459
- message: string;
460
- metadata: Record<string, unknown>;
461
- source: string | ({
462
- name: string;
463
- foreignRef: string;
464
- presets: {
465
- id: string;
466
- name: string;
467
- createdOn: string;
468
- lastModifiedOn: string;
469
- isDefault: boolean;
470
- assignedRef: string | null;
471
- params?: unknown;
472
- }[];
473
- provider: string;
474
- providerMetadata: {} & {
475
- [k: string]: unknown;
476
- };
477
- } & ({
478
- type: "alarm";
479
- } | {
480
- type: "camera";
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
- streams: {
492
- id: string;
493
- displayName: string;
494
- externalPlayerUrl: string | null;
495
- rtspUrl: string | null;
496
- width: number | null;
497
- height: number | null;
498
- lensType: "flat" | "fisheye";
499
- mountPoint: "wall" | "ceiling" | "floor";
500
- webrtcPlaybackSource: ({
501
- kind: string;
502
- } & Record<string, unknown>) | null;
503
- }[];
504
- defaultStreamId: string;
505
- autoSwitchStreams: boolean;
506
- streamNaming: "cameraStreamNo" | "cameraStream" | "stream";
507
- } | {
508
- type: "door";
509
- canReportOpenState: boolean;
510
- canReportLockState: boolean;
511
- canControlLock: boolean;
512
- canRelease: boolean;
513
- style?: "single" | "double" | "sliding" | "hatch" | "roller" | "window" | undefined;
514
- } | {
515
- type: "io-board";
516
- inputs: string[];
517
- outputs: string[];
518
- } | {
519
- type: "camera-lift";
520
- } | {
521
- type: "motion-sensor";
522
- } | {
523
- type: "panic-button";
524
- } | {
525
- type: "intercom-terminal";
526
- sipUri: string;
527
- sipUser: string;
528
- sipPassword: string;
529
- sipRealm: string;
530
- remoteExtension: string;
531
- } | {
532
- type: "pbx";
533
- sipWsUrl: string;
534
- } | {
535
- type: "server";
536
- } | {
537
- type: "intercom-operator";
538
- } | {
539
- type: "device-gateway";
540
- } | {
541
- type: "presence-tracker";
542
- } | {
543
- type: "reader";
544
- } | {
545
- type: "display";
546
- } | {
547
- type: "nvr-recorder";
548
- } | {
549
- type: "nvr-exporter";
550
- } | {
551
- type: "nvr-analytics-server";
552
- } | {
553
- type: "system";
554
- })) | [string, string];
555
- severity: "info" | "warning" | "critical";
556
- notificationRef: string | null;
557
- recipientId: string | null;
558
- }>;
559
- }, "strip", z.ZodTypeAny, {
560
- params: {
561
- message: string;
562
- metadata: Record<string, unknown>;
563
- source: string | ({
564
- name: string;
565
- foreignRef: string;
566
- presets: {
567
- id: string;
568
- name: string;
569
- createdOn: string;
570
- lastModifiedOn: string;
571
- isDefault: boolean;
572
- assignedRef: string | null;
573
- params?: unknown;
574
- }[];
575
- provider: string;
576
- providerMetadata: {} & {
577
- [k: string]: unknown;
578
- };
579
- } & ({
580
- type: "alarm";
581
- } | {
582
- type: "camera";
583
- ptzCapable: boolean;
584
- ptzPanSpeed: number;
585
- ptzTiltSpeed: number;
586
- ptzZoomSpeed: number;
587
- panMin: number;
588
- panMax: number;
589
- tiltMin: number;
590
- tiltMax: number;
591
- zoomMin: number;
592
- zoomMax: number;
593
- streams: {
594
- id: string;
595
- displayName: string;
596
- externalPlayerUrl: string | null;
597
- rtspUrl: string | null;
598
- width: number | null;
599
- height: number | null;
600
- lensType: "flat" | "fisheye";
601
- mountPoint: "wall" | "ceiling" | "floor";
602
- webrtcPlaybackSource: ({
603
- kind: string;
604
- } & Record<string, unknown>) | null;
605
- }[];
606
- defaultStreamId: string;
607
- autoSwitchStreams: boolean;
608
- streamNaming: "cameraStreamNo" | "cameraStream" | "stream";
609
- } | {
610
- type: "door";
611
- canReportOpenState: boolean;
612
- canReportLockState: boolean;
613
- canControlLock: boolean;
614
- canRelease: boolean;
615
- style?: "single" | "double" | "sliding" | "hatch" | "roller" | "window" | undefined;
616
- } | {
617
- type: "io-board";
618
- inputs: string[];
619
- outputs: string[];
620
- } | {
621
- type: "camera-lift";
622
- } | {
623
- type: "motion-sensor";
624
- } | {
625
- type: "panic-button";
626
- } | {
627
- type: "intercom-terminal";
628
- sipUri: string;
629
- sipUser: string;
630
- sipPassword: string;
631
- sipRealm: string;
632
- remoteExtension: string;
633
- } | {
634
- type: "pbx";
635
- sipWsUrl: string;
636
- } | {
637
- type: "server";
638
- } | {
639
- type: "intercom-operator";
640
- } | {
641
- type: "device-gateway";
642
- } | {
643
- type: "presence-tracker";
644
- } | {
645
- type: "reader";
646
- } | {
647
- type: "display";
648
- } | {
649
- type: "nvr-recorder";
650
- } | {
651
- type: "nvr-exporter";
652
- } | {
653
- type: "nvr-analytics-server";
654
- } | {
655
- type: "system";
656
- })) | [string, string];
657
- severity: "info" | "warning" | "critical";
658
- notificationRef: string | null;
659
- recipientId: string | null;
660
- };
661
- command: "server.notify";
662
- }, {
663
- params: {
664
- message: string;
665
- metadata: Record<string, unknown>;
666
- source: string | ({
667
- name: string;
668
- foreignRef: string;
669
- presets: {
670
- id: string;
671
- name: string;
672
- createdOn: string;
673
- lastModifiedOn: string;
674
- isDefault: boolean;
675
- assignedRef: string | null;
676
- params?: unknown;
677
- }[];
678
- provider: string;
679
- providerMetadata: {} & {
680
- [k: string]: unknown;
681
- };
682
- } & ({
683
- type: "alarm";
684
- } | {
685
- type: "camera";
686
- ptzCapable: boolean;
687
- ptzPanSpeed: number;
688
- ptzTiltSpeed: number;
689
- ptzZoomSpeed: number;
690
- panMin: number;
691
- panMax: number;
692
- tiltMin: number;
693
- tiltMax: number;
694
- zoomMin: number;
695
- zoomMax: number;
696
- streams: {
697
- id: string;
698
- displayName: string;
699
- externalPlayerUrl: string | null;
700
- rtspUrl: string | null;
701
- width: number | null;
702
- height: number | null;
703
- lensType: "flat" | "fisheye";
704
- mountPoint: "wall" | "ceiling" | "floor";
705
- webrtcPlaybackSource: ({
706
- kind: string;
707
- } & Record<string, unknown>) | null;
708
- }[];
709
- defaultStreamId: string;
710
- autoSwitchStreams: boolean;
711
- streamNaming: "cameraStreamNo" | "cameraStream" | "stream";
712
- } | {
713
- type: "door";
714
- canReportOpenState: boolean;
715
- canReportLockState: boolean;
716
- canControlLock: boolean;
717
- canRelease: boolean;
718
- style?: "single" | "double" | "sliding" | "hatch" | "roller" | "window" | undefined;
719
- } | {
720
- type: "io-board";
721
- inputs: string[];
722
- outputs: string[];
723
- } | {
724
- type: "camera-lift";
725
- } | {
726
- type: "motion-sensor";
727
- } | {
728
- type: "panic-button";
729
- } | {
730
- type: "intercom-terminal";
731
- sipUri: string;
732
- sipUser: string;
733
- sipPassword: string;
734
- sipRealm: string;
735
- remoteExtension: string;
736
- } | {
737
- type: "pbx";
738
- sipWsUrl: string;
739
- } | {
740
- type: "server";
741
- } | {
742
- type: "intercom-operator";
743
- } | {
744
- type: "device-gateway";
745
- } | {
746
- type: "presence-tracker";
747
- } | {
748
- type: "reader";
749
- } | {
750
- type: "display";
751
- } | {
752
- type: "nvr-recorder";
753
- } | {
754
- type: "nvr-exporter";
755
- } | {
756
- type: "nvr-analytics-server";
757
- } | {
758
- type: "system";
759
- })) | [string, string];
760
- severity: "info" | "warning" | "critical";
761
- notificationRef: string | null;
762
- recipientId: string | null;
763
- };
764
- command: "server.notify";
765
- }>;
130
+ }, z.core.$strip>;
131
+ }, z.core.$strip>;
766
132
  export type RunMacro = z.infer<typeof sRunMacroCommand>;
767
133
  export type Notify = z.infer<typeof sNotify>;
768
134
  export declare const serverCommands: {
@@ -770,22 +136,8 @@ export declare const serverCommands: {
770
136
  command: z.ZodLiteral<"server.run-macro">;
771
137
  params: z.ZodObject<{
772
138
  macroId: z.ZodString;
773
- }, "strip", z.ZodTypeAny, {
774
- macroId: string;
775
- }, {
776
- macroId: string;
777
- }>;
778
- }, "strip", z.ZodTypeAny, {
779
- params: {
780
- macroId: string;
781
- };
782
- command: "server.run-macro";
783
- }, {
784
- params: {
785
- macroId: string;
786
- };
787
- command: "server.run-macro";
788
- }>;
139
+ }, z.core.$strip>;
140
+ }, z.core.$strip>;
789
141
  readonly 'server.notify': z.ZodObject<{
790
142
  command: z.ZodLiteral<"server.notify">;
791
143
  params: z.ZodObject<{
@@ -793,8 +145,7 @@ export declare const serverCommands: {
793
145
  name: z.ZodString;
794
146
  foreignRef: z.ZodString;
795
147
  provider: z.ZodString;
796
- providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
797
- } & {
148
+ providerMetadata: z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>;
798
149
  presets: z.ZodArray<z.ZodObject<{
799
150
  id: z.ZodString;
800
151
  name: z.ZodString;
@@ -803,62 +154,10 @@ export declare const serverCommands: {
803
154
  assignedRef: z.ZodNullable<z.ZodString>;
804
155
  createdOn: z.ZodString;
805
156
  lastModifiedOn: z.ZodString;
806
- }, "strip", z.ZodTypeAny, {
807
- id: string;
808
- name: string;
809
- createdOn: string;
810
- lastModifiedOn: string;
811
- isDefault: boolean;
812
- assignedRef: string | null;
813
- params?: unknown;
814
- }, {
815
- id: string;
816
- name: string;
817
- createdOn: string;
818
- lastModifiedOn: string;
819
- isDefault: boolean;
820
- assignedRef: string | null;
821
- params?: unknown;
822
- }>, "many">;
823
- }, "strip", z.ZodTypeAny, {
824
- name: string;
825
- foreignRef: string;
826
- presets: {
827
- id: string;
828
- name: string;
829
- createdOn: string;
830
- lastModifiedOn: string;
831
- isDefault: boolean;
832
- assignedRef: string | null;
833
- params?: unknown;
834
- }[];
835
- provider: string;
836
- providerMetadata: {} & {
837
- [k: string]: unknown;
838
- };
839
- }, {
840
- name: string;
841
- foreignRef: string;
842
- presets: {
843
- id: string;
844
- name: string;
845
- createdOn: string;
846
- lastModifiedOn: string;
847
- isDefault: boolean;
848
- assignedRef: string | null;
849
- params?: unknown;
850
- }[];
851
- provider: string;
852
- providerMetadata: {} & {
853
- [k: string]: unknown;
854
- };
855
- }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
157
+ }, z.core.$strip>>;
158
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
856
159
  type: z.ZodLiteral<"alarm">;
857
- }, "strip", z.ZodTypeAny, {
858
- type: "alarm";
859
- }, {
860
- type: "alarm";
861
- }>, z.ZodObject<{
160
+ }, z.core.$strip>, z.ZodObject<{
862
161
  ptzCapable: z.ZodBoolean;
863
162
  ptzPanSpeed: z.ZodNumber;
864
163
  ptzTiltSpeed: z.ZodNumber;
@@ -876,659 +175,92 @@ export declare const serverCommands: {
876
175
  rtspUrl: z.ZodNullable<z.ZodString>;
877
176
  width: z.ZodNullable<z.ZodNumber>;
878
177
  height: z.ZodNullable<z.ZodNumber>;
879
- lensType: z.ZodEnum<["flat", "fisheye"]>;
880
- mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
178
+ lensType: z.ZodEnum<{
179
+ flat: "flat";
180
+ fisheye: "fisheye";
181
+ }>;
182
+ mountPoint: z.ZodEnum<{
183
+ wall: "wall";
184
+ ceiling: "ceiling";
185
+ floor: "floor";
186
+ }>;
881
187
  webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
882
188
  kind: z.ZodString;
883
- }, "strip", z.ZodTypeAny, {
884
- kind: string;
885
- }, {
886
- kind: string;
887
- }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
888
- }, "strip", z.ZodTypeAny, {
889
- id: string;
890
- displayName: string;
891
- externalPlayerUrl: string | null;
892
- rtspUrl: string | null;
893
- width: number | null;
894
- height: number | null;
895
- lensType: "flat" | "fisheye";
896
- mountPoint: "wall" | "ceiling" | "floor";
897
- webrtcPlaybackSource: ({
898
- kind: string;
899
- } & Record<string, unknown>) | null;
900
- }, {
901
- id: string;
902
- displayName: string;
903
- externalPlayerUrl: string | null;
904
- rtspUrl: string | null;
905
- width: number | null;
906
- height: number | null;
907
- lensType: "flat" | "fisheye";
908
- mountPoint: "wall" | "ceiling" | "floor";
909
- webrtcPlaybackSource: ({
910
- kind: string;
911
- } & Record<string, unknown>) | null;
912
- }>, "many">;
189
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
190
+ }, z.core.$strip>>;
913
191
  defaultStreamId: z.ZodString;
914
192
  autoSwitchStreams: z.ZodBoolean;
915
- streamNaming: z.ZodEnum<["cameraStreamNo", "cameraStream", "stream"]>;
916
- } & {
193
+ streamNaming: z.ZodEnum<{
194
+ cameraStreamNo: "cameraStreamNo";
195
+ cameraStream: "cameraStream";
196
+ stream: "stream";
197
+ }>;
917
198
  type: z.ZodLiteral<"camera">;
918
- }, "strip", z.ZodTypeAny, {
919
- type: "camera";
920
- ptzCapable: boolean;
921
- ptzPanSpeed: number;
922
- ptzTiltSpeed: number;
923
- ptzZoomSpeed: number;
924
- panMin: number;
925
- panMax: number;
926
- tiltMin: number;
927
- tiltMax: number;
928
- zoomMin: number;
929
- zoomMax: number;
930
- streams: {
931
- id: string;
932
- displayName: string;
933
- externalPlayerUrl: string | null;
934
- rtspUrl: string | null;
935
- width: number | null;
936
- height: number | null;
937
- lensType: "flat" | "fisheye";
938
- mountPoint: "wall" | "ceiling" | "floor";
939
- webrtcPlaybackSource: ({
940
- kind: string;
941
- } & Record<string, unknown>) | null;
942
- }[];
943
- defaultStreamId: string;
944
- autoSwitchStreams: boolean;
945
- streamNaming: "cameraStreamNo" | "cameraStream" | "stream";
946
- }, {
947
- type: "camera";
948
- ptzCapable: boolean;
949
- ptzPanSpeed: number;
950
- ptzTiltSpeed: number;
951
- ptzZoomSpeed: number;
952
- panMin: number;
953
- panMax: number;
954
- tiltMin: number;
955
- tiltMax: number;
956
- zoomMin: number;
957
- zoomMax: number;
958
- streams: {
959
- id: string;
960
- displayName: string;
961
- externalPlayerUrl: string | null;
962
- rtspUrl: string | null;
963
- width: number | null;
964
- height: number | null;
965
- lensType: "flat" | "fisheye";
966
- mountPoint: "wall" | "ceiling" | "floor";
967
- webrtcPlaybackSource: ({
968
- kind: string;
969
- } & Record<string, unknown>) | null;
970
- }[];
971
- defaultStreamId: string;
972
- autoSwitchStreams: boolean;
973
- streamNaming: "cameraStreamNo" | "cameraStream" | "stream";
974
- }>, z.ZodObject<{
199
+ }, z.core.$strip>, z.ZodObject<{
975
200
  canReportOpenState: z.ZodBoolean;
976
201
  canReportLockState: z.ZodBoolean;
977
202
  canControlLock: z.ZodBoolean;
978
203
  canRelease: z.ZodBoolean;
979
- style: z.ZodOptional<z.ZodEnum<["single", "double", "sliding", "hatch", "roller", "window"]>>;
980
- } & {
204
+ style: z.ZodOptional<z.ZodEnum<{
205
+ single: "single";
206
+ double: "double";
207
+ sliding: "sliding";
208
+ hatch: "hatch";
209
+ roller: "roller";
210
+ window: "window";
211
+ }>>;
981
212
  type: z.ZodLiteral<"door">;
982
- }, "strip", z.ZodTypeAny, {
983
- type: "door";
984
- canReportOpenState: boolean;
985
- canReportLockState: boolean;
986
- canControlLock: boolean;
987
- canRelease: boolean;
988
- style?: "single" | "double" | "sliding" | "hatch" | "roller" | "window" | undefined;
989
- }, {
990
- type: "door";
991
- canReportOpenState: boolean;
992
- canReportLockState: boolean;
993
- canControlLock: boolean;
994
- canRelease: boolean;
995
- style?: "single" | "double" | "sliding" | "hatch" | "roller" | "window" | undefined;
996
- }>, z.ZodObject<{
997
- inputs: z.ZodArray<z.ZodString, "many">;
998
- outputs: z.ZodArray<z.ZodString, "many">;
999
- } & {
213
+ }, z.core.$strip>, z.ZodObject<{
214
+ inputs: z.ZodArray<z.ZodString>;
215
+ outputs: z.ZodArray<z.ZodString>;
1000
216
  type: z.ZodLiteral<"io-board">;
1001
- }, "strip", z.ZodTypeAny, {
1002
- type: "io-board";
1003
- inputs: string[];
1004
- outputs: string[];
1005
- }, {
1006
- type: "io-board";
1007
- inputs: string[];
1008
- outputs: string[];
1009
- }>, z.ZodObject<{
217
+ }, z.core.$strip>, z.ZodObject<{
1010
218
  type: z.ZodLiteral<"camera-lift">;
1011
- }, "strip", z.ZodTypeAny, {
1012
- type: "camera-lift";
1013
- }, {
1014
- type: "camera-lift";
1015
- }>, z.ZodObject<{
219
+ }, z.core.$strip>, z.ZodObject<{
1016
220
  type: z.ZodLiteral<"motion-sensor">;
1017
- }, "strip", z.ZodTypeAny, {
1018
- type: "motion-sensor";
1019
- }, {
1020
- type: "motion-sensor";
1021
- }>, z.ZodObject<{
221
+ }, z.core.$strip>, z.ZodObject<{
1022
222
  type: z.ZodLiteral<"panic-button">;
1023
- }, "strip", z.ZodTypeAny, {
1024
- type: "panic-button";
1025
- }, {
1026
- type: "panic-button";
1027
- }>, z.ZodObject<{
223
+ }, z.core.$strip>, z.ZodObject<{
1028
224
  sipUri: z.ZodString;
1029
225
  sipUser: z.ZodString;
1030
226
  sipPassword: z.ZodString;
1031
227
  sipRealm: z.ZodString;
1032
228
  remoteExtension: z.ZodString;
1033
- } & {
1034
229
  type: z.ZodLiteral<"intercom-terminal">;
1035
- }, "strip", z.ZodTypeAny, {
1036
- type: "intercom-terminal";
1037
- sipUri: string;
1038
- sipUser: string;
1039
- sipPassword: string;
1040
- sipRealm: string;
1041
- remoteExtension: string;
1042
- }, {
1043
- type: "intercom-terminal";
1044
- sipUri: string;
1045
- sipUser: string;
1046
- sipPassword: string;
1047
- sipRealm: string;
1048
- remoteExtension: string;
1049
- }>, z.ZodObject<{
230
+ }, z.core.$strip>, z.ZodObject<{
1050
231
  sipWsUrl: z.ZodString;
1051
- } & {
1052
232
  type: z.ZodLiteral<"pbx">;
1053
- }, "strip", z.ZodTypeAny, {
1054
- type: "pbx";
1055
- sipWsUrl: string;
1056
- }, {
1057
- type: "pbx";
1058
- sipWsUrl: string;
1059
- }>, z.ZodObject<{
233
+ }, z.core.$strip>, z.ZodObject<{
1060
234
  type: z.ZodLiteral<"server">;
1061
- }, "strip", z.ZodTypeAny, {
1062
- type: "server";
1063
- }, {
1064
- type: "server";
1065
- }>, z.ZodObject<{
235
+ }, z.core.$strip>, z.ZodObject<{
1066
236
  type: z.ZodLiteral<"intercom-operator">;
1067
- }, "strip", z.ZodTypeAny, {
1068
- type: "intercom-operator";
1069
- }, {
1070
- type: "intercom-operator";
1071
- }>, z.ZodObject<{
237
+ }, z.core.$strip>, z.ZodObject<{
1072
238
  type: z.ZodLiteral<"device-gateway">;
1073
- }, "strip", z.ZodTypeAny, {
1074
- type: "device-gateway";
1075
- }, {
1076
- type: "device-gateway";
1077
- }>, z.ZodObject<{
239
+ }, z.core.$strip>, z.ZodObject<{
1078
240
  type: z.ZodLiteral<"presence-tracker">;
1079
- }, "strip", z.ZodTypeAny, {
1080
- type: "presence-tracker";
1081
- }, {
1082
- type: "presence-tracker";
1083
- }>, z.ZodObject<{
241
+ }, z.core.$strip>, z.ZodObject<{
1084
242
  type: z.ZodLiteral<"reader">;
1085
- }, "strip", z.ZodTypeAny, {
1086
- type: "reader";
1087
- }, {
1088
- type: "reader";
1089
- }>, z.ZodObject<{
243
+ }, z.core.$strip>, z.ZodObject<{
1090
244
  type: z.ZodLiteral<"display">;
1091
- }, "strip", z.ZodTypeAny, {
1092
- type: "display";
1093
- }, {
1094
- type: "display";
1095
- }>, z.ZodObject<{
245
+ }, z.core.$strip>, z.ZodObject<{
1096
246
  type: z.ZodLiteral<"nvr-recorder">;
1097
- }, "strip", z.ZodTypeAny, {
1098
- type: "nvr-recorder";
1099
- }, {
1100
- type: "nvr-recorder";
1101
- }>, z.ZodObject<{
247
+ }, z.core.$strip>, z.ZodObject<{
1102
248
  type: z.ZodLiteral<"nvr-exporter">;
1103
- }, "strip", z.ZodTypeAny, {
1104
- type: "nvr-exporter";
1105
- }, {
1106
- type: "nvr-exporter";
1107
- }>, z.ZodObject<{
249
+ }, z.core.$strip>, z.ZodObject<{
1108
250
  type: z.ZodLiteral<"nvr-analytics-server">;
1109
- }, "strip", z.ZodTypeAny, {
1110
- type: "nvr-analytics-server";
1111
- }, {
1112
- type: "nvr-analytics-server";
1113
- }>, z.ZodObject<{
251
+ }, z.core.$strip>, z.ZodObject<{
1114
252
  type: z.ZodLiteral<"system">;
1115
- }, "strip", z.ZodTypeAny, {
1116
- type: "system";
1117
- }, {
1118
- type: "system";
1119
- }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
253
+ }, z.core.$strip>], "type">>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
1120
254
  message: z.ZodString;
1121
- severity: z.ZodEnum<["info", "warning", "critical"]>;
255
+ severity: z.ZodEnum<{
256
+ info: "info";
257
+ warning: "warning";
258
+ critical: "critical";
259
+ }>;
1122
260
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1123
261
  notificationRef: z.ZodNullable<z.ZodString>;
1124
262
  recipientId: z.ZodNullable<z.ZodString>;
1125
- }, "strip", z.ZodTypeAny, {
1126
- message: string;
1127
- metadata: Record<string, unknown>;
1128
- source: string | ({
1129
- name: string;
1130
- foreignRef: string;
1131
- presets: {
1132
- id: string;
1133
- name: string;
1134
- createdOn: string;
1135
- lastModifiedOn: string;
1136
- isDefault: boolean;
1137
- assignedRef: string | null;
1138
- params?: unknown;
1139
- }[];
1140
- provider: string;
1141
- providerMetadata: {} & {
1142
- [k: string]: unknown;
1143
- };
1144
- } & ({
1145
- type: "alarm";
1146
- } | {
1147
- type: "camera";
1148
- ptzCapable: boolean;
1149
- ptzPanSpeed: number;
1150
- ptzTiltSpeed: number;
1151
- ptzZoomSpeed: number;
1152
- panMin: number;
1153
- panMax: number;
1154
- tiltMin: number;
1155
- tiltMax: number;
1156
- zoomMin: number;
1157
- zoomMax: number;
1158
- streams: {
1159
- id: string;
1160
- displayName: string;
1161
- externalPlayerUrl: string | null;
1162
- rtspUrl: string | null;
1163
- width: number | null;
1164
- height: number | null;
1165
- lensType: "flat" | "fisheye";
1166
- mountPoint: "wall" | "ceiling" | "floor";
1167
- webrtcPlaybackSource: ({
1168
- kind: string;
1169
- } & Record<string, unknown>) | null;
1170
- }[];
1171
- defaultStreamId: string;
1172
- autoSwitchStreams: boolean;
1173
- streamNaming: "cameraStreamNo" | "cameraStream" | "stream";
1174
- } | {
1175
- type: "door";
1176
- canReportOpenState: boolean;
1177
- canReportLockState: boolean;
1178
- canControlLock: boolean;
1179
- canRelease: boolean;
1180
- style?: "single" | "double" | "sliding" | "hatch" | "roller" | "window" | undefined;
1181
- } | {
1182
- type: "io-board";
1183
- inputs: string[];
1184
- outputs: string[];
1185
- } | {
1186
- type: "camera-lift";
1187
- } | {
1188
- type: "motion-sensor";
1189
- } | {
1190
- type: "panic-button";
1191
- } | {
1192
- type: "intercom-terminal";
1193
- sipUri: string;
1194
- sipUser: string;
1195
- sipPassword: string;
1196
- sipRealm: string;
1197
- remoteExtension: string;
1198
- } | {
1199
- type: "pbx";
1200
- sipWsUrl: string;
1201
- } | {
1202
- type: "server";
1203
- } | {
1204
- type: "intercom-operator";
1205
- } | {
1206
- type: "device-gateway";
1207
- } | {
1208
- type: "presence-tracker";
1209
- } | {
1210
- type: "reader";
1211
- } | {
1212
- type: "display";
1213
- } | {
1214
- type: "nvr-recorder";
1215
- } | {
1216
- type: "nvr-exporter";
1217
- } | {
1218
- type: "nvr-analytics-server";
1219
- } | {
1220
- type: "system";
1221
- })) | [string, string];
1222
- severity: "info" | "warning" | "critical";
1223
- notificationRef: string | null;
1224
- recipientId: string | null;
1225
- }, {
1226
- message: string;
1227
- metadata: Record<string, unknown>;
1228
- source: string | ({
1229
- name: string;
1230
- foreignRef: string;
1231
- presets: {
1232
- id: string;
1233
- name: string;
1234
- createdOn: string;
1235
- lastModifiedOn: string;
1236
- isDefault: boolean;
1237
- assignedRef: string | null;
1238
- params?: unknown;
1239
- }[];
1240
- provider: string;
1241
- providerMetadata: {} & {
1242
- [k: string]: unknown;
1243
- };
1244
- } & ({
1245
- type: "alarm";
1246
- } | {
1247
- type: "camera";
1248
- ptzCapable: boolean;
1249
- ptzPanSpeed: number;
1250
- ptzTiltSpeed: number;
1251
- ptzZoomSpeed: number;
1252
- panMin: number;
1253
- panMax: number;
1254
- tiltMin: number;
1255
- tiltMax: number;
1256
- zoomMin: number;
1257
- zoomMax: number;
1258
- streams: {
1259
- id: string;
1260
- displayName: string;
1261
- externalPlayerUrl: string | null;
1262
- rtspUrl: string | null;
1263
- width: number | null;
1264
- height: number | null;
1265
- lensType: "flat" | "fisheye";
1266
- mountPoint: "wall" | "ceiling" | "floor";
1267
- webrtcPlaybackSource: ({
1268
- kind: string;
1269
- } & Record<string, unknown>) | null;
1270
- }[];
1271
- defaultStreamId: string;
1272
- autoSwitchStreams: boolean;
1273
- streamNaming: "cameraStreamNo" | "cameraStream" | "stream";
1274
- } | {
1275
- type: "door";
1276
- canReportOpenState: boolean;
1277
- canReportLockState: boolean;
1278
- canControlLock: boolean;
1279
- canRelease: boolean;
1280
- style?: "single" | "double" | "sliding" | "hatch" | "roller" | "window" | undefined;
1281
- } | {
1282
- type: "io-board";
1283
- inputs: string[];
1284
- outputs: string[];
1285
- } | {
1286
- type: "camera-lift";
1287
- } | {
1288
- type: "motion-sensor";
1289
- } | {
1290
- type: "panic-button";
1291
- } | {
1292
- type: "intercom-terminal";
1293
- sipUri: string;
1294
- sipUser: string;
1295
- sipPassword: string;
1296
- sipRealm: string;
1297
- remoteExtension: string;
1298
- } | {
1299
- type: "pbx";
1300
- sipWsUrl: string;
1301
- } | {
1302
- type: "server";
1303
- } | {
1304
- type: "intercom-operator";
1305
- } | {
1306
- type: "device-gateway";
1307
- } | {
1308
- type: "presence-tracker";
1309
- } | {
1310
- type: "reader";
1311
- } | {
1312
- type: "display";
1313
- } | {
1314
- type: "nvr-recorder";
1315
- } | {
1316
- type: "nvr-exporter";
1317
- } | {
1318
- type: "nvr-analytics-server";
1319
- } | {
1320
- type: "system";
1321
- })) | [string, string];
1322
- severity: "info" | "warning" | "critical";
1323
- notificationRef: string | null;
1324
- recipientId: string | null;
1325
- }>;
1326
- }, "strip", z.ZodTypeAny, {
1327
- params: {
1328
- message: string;
1329
- metadata: Record<string, unknown>;
1330
- source: string | ({
1331
- name: string;
1332
- foreignRef: string;
1333
- presets: {
1334
- id: string;
1335
- name: string;
1336
- createdOn: string;
1337
- lastModifiedOn: string;
1338
- isDefault: boolean;
1339
- assignedRef: string | null;
1340
- params?: unknown;
1341
- }[];
1342
- provider: string;
1343
- providerMetadata: {} & {
1344
- [k: string]: unknown;
1345
- };
1346
- } & ({
1347
- type: "alarm";
1348
- } | {
1349
- type: "camera";
1350
- ptzCapable: boolean;
1351
- ptzPanSpeed: number;
1352
- ptzTiltSpeed: number;
1353
- ptzZoomSpeed: number;
1354
- panMin: number;
1355
- panMax: number;
1356
- tiltMin: number;
1357
- tiltMax: number;
1358
- zoomMin: number;
1359
- zoomMax: number;
1360
- streams: {
1361
- id: string;
1362
- displayName: string;
1363
- externalPlayerUrl: string | null;
1364
- rtspUrl: string | null;
1365
- width: number | null;
1366
- height: number | null;
1367
- lensType: "flat" | "fisheye";
1368
- mountPoint: "wall" | "ceiling" | "floor";
1369
- webrtcPlaybackSource: ({
1370
- kind: string;
1371
- } & Record<string, unknown>) | null;
1372
- }[];
1373
- defaultStreamId: string;
1374
- autoSwitchStreams: boolean;
1375
- streamNaming: "cameraStreamNo" | "cameraStream" | "stream";
1376
- } | {
1377
- type: "door";
1378
- canReportOpenState: boolean;
1379
- canReportLockState: boolean;
1380
- canControlLock: boolean;
1381
- canRelease: boolean;
1382
- style?: "single" | "double" | "sliding" | "hatch" | "roller" | "window" | undefined;
1383
- } | {
1384
- type: "io-board";
1385
- inputs: string[];
1386
- outputs: string[];
1387
- } | {
1388
- type: "camera-lift";
1389
- } | {
1390
- type: "motion-sensor";
1391
- } | {
1392
- type: "panic-button";
1393
- } | {
1394
- type: "intercom-terminal";
1395
- sipUri: string;
1396
- sipUser: string;
1397
- sipPassword: string;
1398
- sipRealm: string;
1399
- remoteExtension: string;
1400
- } | {
1401
- type: "pbx";
1402
- sipWsUrl: string;
1403
- } | {
1404
- type: "server";
1405
- } | {
1406
- type: "intercom-operator";
1407
- } | {
1408
- type: "device-gateway";
1409
- } | {
1410
- type: "presence-tracker";
1411
- } | {
1412
- type: "reader";
1413
- } | {
1414
- type: "display";
1415
- } | {
1416
- type: "nvr-recorder";
1417
- } | {
1418
- type: "nvr-exporter";
1419
- } | {
1420
- type: "nvr-analytics-server";
1421
- } | {
1422
- type: "system";
1423
- })) | [string, string];
1424
- severity: "info" | "warning" | "critical";
1425
- notificationRef: string | null;
1426
- recipientId: string | null;
1427
- };
1428
- command: "server.notify";
1429
- }, {
1430
- params: {
1431
- message: string;
1432
- metadata: Record<string, unknown>;
1433
- source: string | ({
1434
- name: string;
1435
- foreignRef: string;
1436
- presets: {
1437
- id: string;
1438
- name: string;
1439
- createdOn: string;
1440
- lastModifiedOn: string;
1441
- isDefault: boolean;
1442
- assignedRef: string | null;
1443
- params?: unknown;
1444
- }[];
1445
- provider: string;
1446
- providerMetadata: {} & {
1447
- [k: string]: unknown;
1448
- };
1449
- } & ({
1450
- type: "alarm";
1451
- } | {
1452
- type: "camera";
1453
- ptzCapable: boolean;
1454
- ptzPanSpeed: number;
1455
- ptzTiltSpeed: number;
1456
- ptzZoomSpeed: number;
1457
- panMin: number;
1458
- panMax: number;
1459
- tiltMin: number;
1460
- tiltMax: number;
1461
- zoomMin: number;
1462
- zoomMax: number;
1463
- streams: {
1464
- id: string;
1465
- displayName: string;
1466
- externalPlayerUrl: string | null;
1467
- rtspUrl: string | null;
1468
- width: number | null;
1469
- height: number | null;
1470
- lensType: "flat" | "fisheye";
1471
- mountPoint: "wall" | "ceiling" | "floor";
1472
- webrtcPlaybackSource: ({
1473
- kind: string;
1474
- } & Record<string, unknown>) | null;
1475
- }[];
1476
- defaultStreamId: string;
1477
- autoSwitchStreams: boolean;
1478
- streamNaming: "cameraStreamNo" | "cameraStream" | "stream";
1479
- } | {
1480
- type: "door";
1481
- canReportOpenState: boolean;
1482
- canReportLockState: boolean;
1483
- canControlLock: boolean;
1484
- canRelease: boolean;
1485
- style?: "single" | "double" | "sliding" | "hatch" | "roller" | "window" | undefined;
1486
- } | {
1487
- type: "io-board";
1488
- inputs: string[];
1489
- outputs: string[];
1490
- } | {
1491
- type: "camera-lift";
1492
- } | {
1493
- type: "motion-sensor";
1494
- } | {
1495
- type: "panic-button";
1496
- } | {
1497
- type: "intercom-terminal";
1498
- sipUri: string;
1499
- sipUser: string;
1500
- sipPassword: string;
1501
- sipRealm: string;
1502
- remoteExtension: string;
1503
- } | {
1504
- type: "pbx";
1505
- sipWsUrl: string;
1506
- } | {
1507
- type: "server";
1508
- } | {
1509
- type: "intercom-operator";
1510
- } | {
1511
- type: "device-gateway";
1512
- } | {
1513
- type: "presence-tracker";
1514
- } | {
1515
- type: "reader";
1516
- } | {
1517
- type: "display";
1518
- } | {
1519
- type: "nvr-recorder";
1520
- } | {
1521
- type: "nvr-exporter";
1522
- } | {
1523
- type: "nvr-analytics-server";
1524
- } | {
1525
- type: "system";
1526
- })) | [string, string];
1527
- severity: "info" | "warning" | "critical";
1528
- notificationRef: string | null;
1529
- recipientId: string | null;
1530
- };
1531
- command: "server.notify";
1532
- }>;
263
+ }, z.core.$strip>;
264
+ }, z.core.$strip>;
1533
265
  };
1534
266
  export type ServerCommand = RunMacro | Notify;