@awarevue/api-types 2.0.12 → 2.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/dist/access-control/access-rule.d.ts +6 -6
  2. package/dist/access-control/person.d.ts +6 -6
  3. package/dist/access-control/schedule.d.ts +2 -2
  4. package/dist/access-control/zone.d.ts +4 -4
  5. package/dist/agent-communication/index.d.ts +0 -1
  6. package/dist/agent-communication/index.js +0 -1
  7. package/dist/agent-communication/protocol.d.ts +170 -170
  8. package/dist/alarm-automation.d.ts +1 -1
  9. package/dist/api/alarm.d.ts +1 -1
  10. package/dist/api/media.d.ts +8 -8
  11. package/dist/bookmarks.d.ts +2 -2
  12. package/dist/cast.d.ts +2 -2
  13. package/dist/commands/alarm.d.ts +312 -0
  14. package/dist/commands/alarm.js +62 -0
  15. package/dist/{device-command.d.ts → commands/all.d.ts} +23 -25
  16. package/dist/{device-command.js → commands/all.js} +9 -9
  17. package/dist/commands/camera-lift.d.ts +46 -0
  18. package/dist/commands/camera-lift.js +17 -0
  19. package/dist/commands/camera.d.ts +478 -0
  20. package/dist/commands/camera.js +97 -0
  21. package/dist/commands/display.d.ts +431 -0
  22. package/dist/commands/display.js +37 -0
  23. package/dist/commands/door.d.ts +88 -0
  24. package/dist/commands/door.js +27 -0
  25. package/dist/commands/index.d.ts +12 -0
  26. package/dist/commands/index.js +28 -0
  27. package/dist/commands/intercom-terminal.d.ts +40 -0
  28. package/dist/{device/reader/commands.js → commands/intercom-terminal.js} +1 -0
  29. package/dist/commands/io-board.d.ts +55 -0
  30. package/dist/commands/io-board.js +15 -0
  31. package/dist/commands/nvr-exporter.d.ts +1262 -0
  32. package/dist/commands/nvr-exporter.js +26 -0
  33. package/dist/commands/pbx.d.ts +75 -0
  34. package/dist/commands/pbx.js +17 -0
  35. package/dist/commands/presence-tracker.d.ts +167 -0
  36. package/dist/commands/presence-tracker.js +33 -0
  37. package/dist/commands/server.d.ts +1272 -0
  38. package/dist/commands/server.js +27 -0
  39. package/dist/device/alarm.d.ts +0 -530
  40. package/dist/device/alarm.js +1 -110
  41. package/dist/device/any-device.d.ts +88 -88
  42. package/dist/device/camera-lift.d.ts +0 -45
  43. package/dist/device/camera-lift.js +1 -14
  44. package/dist/device/camera.d.ts +0 -1248
  45. package/dist/device/camera.js +1 -204
  46. package/dist/device/device-gateway.d.ts +0 -2
  47. package/dist/device/device-gateway.js +1 -0
  48. package/dist/device/display.d.ts +0 -438
  49. package/dist/device/display.js +1 -39
  50. package/dist/device/door.d.ts +0 -306
  51. package/dist/device/door.js +1 -82
  52. package/dist/device/index.d.ts +1 -1
  53. package/dist/device/index.js +1 -1
  54. package/dist/device/intercom-operator.js +0 -1
  55. package/dist/device/intercom-terminal.d.ts +0 -101
  56. package/dist/device/intercom-terminal.js +3 -55
  57. package/dist/device/io-board.d.ts +0 -84
  58. package/dist/device/io-board.js +1 -21
  59. package/dist/device/motion-sensor.js +0 -1
  60. package/dist/device/nvr-analytics-server.d.ts +0 -295
  61. package/dist/device/nvr-analytics-server.js +1 -65
  62. package/dist/device/nvr-exporter.d.ts +0 -1436
  63. package/dist/device/nvr-exporter.js +1 -72
  64. package/dist/device/nvr-recorder.d.ts +0 -2633
  65. package/dist/device/nvr-recorder.js +1 -39
  66. package/dist/device/panic-button.d.ts +0 -18
  67. package/dist/device/panic-button.js +1 -8
  68. package/dist/device/pbx.d.ts +0 -74
  69. package/dist/device/pbx.js +1 -16
  70. package/dist/device/presence-tracker.d.ts +0 -302
  71. package/dist/device/presence-tracker.js +1 -59
  72. package/dist/device/server.d.ts +0 -200
  73. package/dist/device/server.js +1 -37
  74. package/dist/device/system.d.ts +0 -42
  75. package/dist/device/system.js +1 -13
  76. package/dist/device-event.d.ts +1 -721
  77. package/dist/device-event.js +0 -110
  78. package/dist/device-group.d.ts +2 -2
  79. package/dist/device-import.d.ts +8 -8
  80. package/dist/events/alarm.d.ts +220 -0
  81. package/dist/events/alarm.js +55 -0
  82. package/dist/events/all.d.ts +700 -0
  83. package/dist/events/all.js +109 -0
  84. package/dist/events/camera.d.ts +661 -0
  85. package/dist/events/camera.js +87 -0
  86. package/dist/events/display.d.ts +9 -0
  87. package/dist/events/display.js +9 -0
  88. package/dist/events/door.d.ts +220 -0
  89. package/dist/events/door.js +62 -0
  90. package/dist/events/index.d.ts +12 -0
  91. package/dist/events/index.js +28 -0
  92. package/dist/events/intercom-terminal.d.ts +61 -0
  93. package/dist/events/intercom-terminal.js +19 -0
  94. package/dist/events/io-board.d.ts +31 -0
  95. package/dist/events/io-board.js +13 -0
  96. package/dist/events/nvr-exporter.d.ts +52 -0
  97. package/dist/events/nvr-exporter.js +21 -0
  98. package/dist/events/panic-button.d.ts +19 -0
  99. package/dist/events/panic-button.js +11 -0
  100. package/dist/events/presence-tracker.d.ts +136 -0
  101. package/dist/events/presence-tracker.js +33 -0
  102. package/dist/events/server.d.ts +65 -0
  103. package/dist/events/server.js +15 -0
  104. package/dist/index.d.ts +4 -1
  105. package/dist/index.js +4 -1
  106. package/dist/layout.d.ts +8 -8
  107. package/dist/macros.d.ts +14 -14
  108. package/dist/messages/device-communication.d.ts +2 -2
  109. package/dist/messages/notifications.d.ts +2 -2
  110. package/dist/messages/web-rtc-signaling.d.ts +10 -10
  111. package/dist/notifications.d.ts +4 -4
  112. package/dist/package.json +1 -1
  113. package/dist/primitives.d.ts +20 -2
  114. package/dist/primitives.js +19 -3
  115. package/dist/{agent-communication/queries.d.ts → queries/all.d.ts} +24 -22
  116. package/dist/queries/all.js +21 -0
  117. package/dist/queries/camera.d.ts +98 -0
  118. package/dist/queries/camera.js +27 -0
  119. package/dist/queries/index.d.ts +5 -0
  120. package/dist/{device/reader → queries}/index.js +5 -3
  121. package/dist/queries/nvr-analytics-server.d.ts +296 -0
  122. package/dist/queries/nvr-analytics-server.js +68 -0
  123. package/dist/queries/nvr-exporter.d.ts +125 -0
  124. package/dist/queries/nvr-exporter.js +36 -0
  125. package/dist/queries/nvr-recorder.d.ts +2634 -0
  126. package/dist/queries/nvr-recorder.js +42 -0
  127. package/dist/user.d.ts +4 -4
  128. package/package.json +1 -1
  129. package/dist/agent-communication/queries.js +0 -19
  130. package/dist/device/reader/commands.d.ts +0 -1
  131. package/dist/device/reader/index.d.ts +0 -3
  132. /package/dist/device/{reader/specs.d.ts → reader.d.ts} +0 -0
  133. /package/dist/device/{reader/specs.js → reader.js} +0 -0
  134. /package/dist/{device/reader/events.d.ts → events/reader.d.ts} +0 -0
  135. /package/dist/{device/reader/events.js → events/reader.js} +0 -0
@@ -0,0 +1,431 @@
1
+ import { z } from 'zod';
2
+ export declare const sDisplayTileItemCamera: z.ZodObject<{
3
+ type: z.ZodLiteral<"camera">;
4
+ name: z.ZodString;
5
+ username: z.ZodString;
6
+ password: z.ZodString;
7
+ streams: z.ZodArray<z.ZodObject<{
8
+ streamId: z.ZodString;
9
+ displayName: z.ZodString;
10
+ resolution: z.ZodNullable<z.ZodString>;
11
+ rtspUrl: z.ZodString;
12
+ }, "strip", z.ZodTypeAny, {
13
+ resolution: string | null;
14
+ displayName: string;
15
+ streamId: string;
16
+ rtspUrl: string;
17
+ }, {
18
+ resolution: string | null;
19
+ displayName: string;
20
+ streamId: string;
21
+ rtspUrl: string;
22
+ }>, "many">;
23
+ }, "strip", z.ZodTypeAny, {
24
+ name: string;
25
+ type: "camera";
26
+ streams: {
27
+ resolution: string | null;
28
+ displayName: string;
29
+ streamId: string;
30
+ rtspUrl: string;
31
+ }[];
32
+ username: string;
33
+ password: string;
34
+ }, {
35
+ name: string;
36
+ type: "camera";
37
+ streams: {
38
+ resolution: string | null;
39
+ displayName: string;
40
+ streamId: string;
41
+ rtspUrl: string;
42
+ }[];
43
+ username: string;
44
+ password: string;
45
+ }>;
46
+ export declare const sDisplayTileItemEmpty: z.ZodObject<{
47
+ type: z.ZodLiteral<"empty">;
48
+ }, "strip", z.ZodTypeAny, {
49
+ type: "empty";
50
+ }, {
51
+ type: "empty";
52
+ }>;
53
+ export declare const sDisplayTileItem: z.ZodUnion<[z.ZodObject<{
54
+ type: z.ZodLiteral<"camera">;
55
+ name: z.ZodString;
56
+ username: z.ZodString;
57
+ password: z.ZodString;
58
+ streams: z.ZodArray<z.ZodObject<{
59
+ streamId: z.ZodString;
60
+ displayName: z.ZodString;
61
+ resolution: z.ZodNullable<z.ZodString>;
62
+ rtspUrl: z.ZodString;
63
+ }, "strip", z.ZodTypeAny, {
64
+ resolution: string | null;
65
+ displayName: string;
66
+ streamId: string;
67
+ rtspUrl: string;
68
+ }, {
69
+ resolution: string | null;
70
+ displayName: string;
71
+ streamId: string;
72
+ rtspUrl: string;
73
+ }>, "many">;
74
+ }, "strip", z.ZodTypeAny, {
75
+ name: string;
76
+ type: "camera";
77
+ streams: {
78
+ resolution: string | null;
79
+ displayName: string;
80
+ streamId: string;
81
+ rtspUrl: string;
82
+ }[];
83
+ username: string;
84
+ password: string;
85
+ }, {
86
+ name: string;
87
+ type: "camera";
88
+ streams: {
89
+ resolution: string | null;
90
+ displayName: string;
91
+ streamId: string;
92
+ rtspUrl: string;
93
+ }[];
94
+ username: string;
95
+ password: string;
96
+ }>, z.ZodObject<{
97
+ type: z.ZodLiteral<"empty">;
98
+ }, "strip", z.ZodTypeAny, {
99
+ type: "empty";
100
+ }, {
101
+ type: "empty";
102
+ }>]>;
103
+ export type DisplayTileItemCamera = z.infer<typeof sDisplayTileItemCamera>;
104
+ export type DisplayTileItemEmpty = z.infer<typeof sDisplayTileItemEmpty>;
105
+ export type DisplayTileItem = z.infer<typeof sDisplayTileItem>;
106
+ export declare const sDisplaySetViewCommand: z.ZodObject<{
107
+ command: z.ZodLiteral<"display.set-view">;
108
+ params: z.ZodObject<{
109
+ tiles: z.ZodArray<z.ZodObject<{
110
+ items: z.ZodArray<z.ZodUnion<[z.ZodObject<{
111
+ type: z.ZodLiteral<"camera">;
112
+ name: z.ZodString;
113
+ username: z.ZodString;
114
+ password: z.ZodString;
115
+ streams: z.ZodArray<z.ZodObject<{
116
+ streamId: z.ZodString;
117
+ displayName: z.ZodString;
118
+ resolution: z.ZodNullable<z.ZodString>;
119
+ rtspUrl: z.ZodString;
120
+ }, "strip", z.ZodTypeAny, {
121
+ resolution: string | null;
122
+ displayName: string;
123
+ streamId: string;
124
+ rtspUrl: string;
125
+ }, {
126
+ resolution: string | null;
127
+ displayName: string;
128
+ streamId: string;
129
+ rtspUrl: string;
130
+ }>, "many">;
131
+ }, "strip", z.ZodTypeAny, {
132
+ name: string;
133
+ type: "camera";
134
+ streams: {
135
+ resolution: string | null;
136
+ displayName: string;
137
+ streamId: string;
138
+ rtspUrl: string;
139
+ }[];
140
+ username: string;
141
+ password: string;
142
+ }, {
143
+ name: string;
144
+ type: "camera";
145
+ streams: {
146
+ resolution: string | null;
147
+ displayName: string;
148
+ streamId: string;
149
+ rtspUrl: string;
150
+ }[];
151
+ username: string;
152
+ password: string;
153
+ }>, z.ZodObject<{
154
+ type: z.ZodLiteral<"empty">;
155
+ }, "strip", z.ZodTypeAny, {
156
+ type: "empty";
157
+ }, {
158
+ type: "empty";
159
+ }>]>, "many">;
160
+ }, "strip", z.ZodTypeAny, {
161
+ items: ({
162
+ name: string;
163
+ type: "camera";
164
+ streams: {
165
+ resolution: string | null;
166
+ displayName: string;
167
+ streamId: string;
168
+ rtspUrl: string;
169
+ }[];
170
+ username: string;
171
+ password: string;
172
+ } | {
173
+ type: "empty";
174
+ })[];
175
+ }, {
176
+ items: ({
177
+ name: string;
178
+ type: "camera";
179
+ streams: {
180
+ resolution: string | null;
181
+ displayName: string;
182
+ streamId: string;
183
+ rtspUrl: string;
184
+ }[];
185
+ username: string;
186
+ password: string;
187
+ } | {
188
+ type: "empty";
189
+ })[];
190
+ }>, "many">;
191
+ }, "strip", z.ZodTypeAny, {
192
+ tiles: {
193
+ items: ({
194
+ name: string;
195
+ type: "camera";
196
+ streams: {
197
+ resolution: string | null;
198
+ displayName: string;
199
+ streamId: string;
200
+ rtspUrl: string;
201
+ }[];
202
+ username: string;
203
+ password: string;
204
+ } | {
205
+ type: "empty";
206
+ })[];
207
+ }[];
208
+ }, {
209
+ tiles: {
210
+ items: ({
211
+ name: string;
212
+ type: "camera";
213
+ streams: {
214
+ resolution: string | null;
215
+ displayName: string;
216
+ streamId: string;
217
+ rtspUrl: string;
218
+ }[];
219
+ username: string;
220
+ password: string;
221
+ } | {
222
+ type: "empty";
223
+ })[];
224
+ }[];
225
+ }>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ params: {
228
+ tiles: {
229
+ items: ({
230
+ name: string;
231
+ type: "camera";
232
+ streams: {
233
+ resolution: string | null;
234
+ displayName: string;
235
+ streamId: string;
236
+ rtspUrl: string;
237
+ }[];
238
+ username: string;
239
+ password: string;
240
+ } | {
241
+ type: "empty";
242
+ })[];
243
+ }[];
244
+ };
245
+ command: "display.set-view";
246
+ }, {
247
+ params: {
248
+ tiles: {
249
+ items: ({
250
+ name: string;
251
+ type: "camera";
252
+ streams: {
253
+ resolution: string | null;
254
+ displayName: string;
255
+ streamId: string;
256
+ rtspUrl: string;
257
+ }[];
258
+ username: string;
259
+ password: string;
260
+ } | {
261
+ type: "empty";
262
+ })[];
263
+ }[];
264
+ };
265
+ command: "display.set-view";
266
+ }>;
267
+ export type DisplaySetViewCommand = z.infer<typeof sDisplaySetViewCommand>;
268
+ export declare const displayCommands: {
269
+ readonly 'display.set-view': z.ZodObject<{
270
+ command: z.ZodLiteral<"display.set-view">;
271
+ params: z.ZodObject<{
272
+ tiles: z.ZodArray<z.ZodObject<{
273
+ items: z.ZodArray<z.ZodUnion<[z.ZodObject<{
274
+ type: z.ZodLiteral<"camera">;
275
+ name: z.ZodString;
276
+ username: z.ZodString;
277
+ password: z.ZodString;
278
+ streams: z.ZodArray<z.ZodObject<{
279
+ streamId: z.ZodString;
280
+ displayName: z.ZodString;
281
+ resolution: z.ZodNullable<z.ZodString>;
282
+ rtspUrl: z.ZodString;
283
+ }, "strip", z.ZodTypeAny, {
284
+ resolution: string | null;
285
+ displayName: string;
286
+ streamId: string;
287
+ rtspUrl: string;
288
+ }, {
289
+ resolution: string | null;
290
+ displayName: string;
291
+ streamId: string;
292
+ rtspUrl: string;
293
+ }>, "many">;
294
+ }, "strip", z.ZodTypeAny, {
295
+ name: string;
296
+ type: "camera";
297
+ streams: {
298
+ resolution: string | null;
299
+ displayName: string;
300
+ streamId: string;
301
+ rtspUrl: string;
302
+ }[];
303
+ username: string;
304
+ password: string;
305
+ }, {
306
+ name: string;
307
+ type: "camera";
308
+ streams: {
309
+ resolution: string | null;
310
+ displayName: string;
311
+ streamId: string;
312
+ rtspUrl: string;
313
+ }[];
314
+ username: string;
315
+ password: string;
316
+ }>, z.ZodObject<{
317
+ type: z.ZodLiteral<"empty">;
318
+ }, "strip", z.ZodTypeAny, {
319
+ type: "empty";
320
+ }, {
321
+ type: "empty";
322
+ }>]>, "many">;
323
+ }, "strip", z.ZodTypeAny, {
324
+ items: ({
325
+ name: string;
326
+ type: "camera";
327
+ streams: {
328
+ resolution: string | null;
329
+ displayName: string;
330
+ streamId: string;
331
+ rtspUrl: string;
332
+ }[];
333
+ username: string;
334
+ password: string;
335
+ } | {
336
+ type: "empty";
337
+ })[];
338
+ }, {
339
+ items: ({
340
+ name: string;
341
+ type: "camera";
342
+ streams: {
343
+ resolution: string | null;
344
+ displayName: string;
345
+ streamId: string;
346
+ rtspUrl: string;
347
+ }[];
348
+ username: string;
349
+ password: string;
350
+ } | {
351
+ type: "empty";
352
+ })[];
353
+ }>, "many">;
354
+ }, "strip", z.ZodTypeAny, {
355
+ tiles: {
356
+ items: ({
357
+ name: string;
358
+ type: "camera";
359
+ streams: {
360
+ resolution: string | null;
361
+ displayName: string;
362
+ streamId: string;
363
+ rtspUrl: string;
364
+ }[];
365
+ username: string;
366
+ password: string;
367
+ } | {
368
+ type: "empty";
369
+ })[];
370
+ }[];
371
+ }, {
372
+ tiles: {
373
+ items: ({
374
+ name: string;
375
+ type: "camera";
376
+ streams: {
377
+ resolution: string | null;
378
+ displayName: string;
379
+ streamId: string;
380
+ rtspUrl: string;
381
+ }[];
382
+ username: string;
383
+ password: string;
384
+ } | {
385
+ type: "empty";
386
+ })[];
387
+ }[];
388
+ }>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ params: {
391
+ tiles: {
392
+ items: ({
393
+ name: string;
394
+ type: "camera";
395
+ streams: {
396
+ resolution: string | null;
397
+ displayName: string;
398
+ streamId: string;
399
+ rtspUrl: string;
400
+ }[];
401
+ username: string;
402
+ password: string;
403
+ } | {
404
+ type: "empty";
405
+ })[];
406
+ }[];
407
+ };
408
+ command: "display.set-view";
409
+ }, {
410
+ params: {
411
+ tiles: {
412
+ items: ({
413
+ name: string;
414
+ type: "camera";
415
+ streams: {
416
+ resolution: string | null;
417
+ displayName: string;
418
+ streamId: string;
419
+ rtspUrl: string;
420
+ }[];
421
+ username: string;
422
+ password: string;
423
+ } | {
424
+ type: "empty";
425
+ })[];
426
+ }[];
427
+ };
428
+ command: "display.set-view";
429
+ }>;
430
+ };
431
+ export type DisplayCommand = DisplaySetViewCommand;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.displayCommands = exports.sDisplaySetViewCommand = exports.sDisplayTileItem = exports.sDisplayTileItemEmpty = exports.sDisplayTileItemCamera = void 0;
4
+ const zod_1 = require("zod");
5
+ // COMMANDS
6
+ exports.sDisplayTileItemCamera = zod_1.z.object({
7
+ type: zod_1.z.literal('camera'),
8
+ name: zod_1.z.string().nonempty(),
9
+ username: zod_1.z.string().nonempty(),
10
+ password: zod_1.z.string().nonempty(),
11
+ streams: zod_1.z
12
+ .array(zod_1.z.object({
13
+ streamId: zod_1.z.string().nonempty(),
14
+ displayName: zod_1.z.string().nonempty(),
15
+ resolution: zod_1.z.string().nullable(),
16
+ rtspUrl: zod_1.z.string().nonempty(),
17
+ }))
18
+ .min(1),
19
+ });
20
+ exports.sDisplayTileItemEmpty = zod_1.z.object({
21
+ type: zod_1.z.literal('empty'),
22
+ });
23
+ exports.sDisplayTileItem = zod_1.z.union([
24
+ exports.sDisplayTileItemCamera,
25
+ exports.sDisplayTileItemEmpty,
26
+ ]);
27
+ exports.sDisplaySetViewCommand = zod_1.z.object({
28
+ command: zod_1.z.literal('display.set-view'),
29
+ params: zod_1.z.object({
30
+ tiles: zod_1.z.array(zod_1.z.object({
31
+ items: zod_1.z.array(exports.sDisplayTileItem),
32
+ })),
33
+ }),
34
+ });
35
+ exports.displayCommands = {
36
+ 'display.set-view': exports.sDisplaySetViewCommand,
37
+ };
@@ -0,0 +1,88 @@
1
+ import { z } from 'zod';
2
+ export declare const sDoorUnlockCommand: z.ZodObject<{
3
+ command: z.ZodLiteral<"door.unlock">;
4
+ params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ params: {};
7
+ command: "door.unlock";
8
+ }, {
9
+ params: {};
10
+ command: "door.unlock";
11
+ }>;
12
+ export type DoorUnlockCommand = z.infer<typeof sDoorUnlockCommand>;
13
+ export declare const sDoorLockCommand: z.ZodObject<{
14
+ command: z.ZodLiteral<"door.lock">;
15
+ params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ params: {};
18
+ command: "door.lock";
19
+ }, {
20
+ params: {};
21
+ command: "door.lock";
22
+ }>;
23
+ export type DoorLockCommand = z.infer<typeof sDoorLockCommand>;
24
+ export declare const sDoorReleaseCommand: z.ZodObject<{
25
+ command: z.ZodLiteral<"door.release">;
26
+ params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ params: {};
29
+ command: "door.release";
30
+ }, {
31
+ params: {};
32
+ command: "door.release";
33
+ }>;
34
+ export type DoorReleaseCommand = z.infer<typeof sDoorReleaseCommand>;
35
+ export declare const sDoorAlarmAckCommand: z.ZodObject<{
36
+ command: z.ZodLiteral<"door.alarm-ack">;
37
+ params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ params: {};
40
+ command: "door.alarm-ack";
41
+ }, {
42
+ params: {};
43
+ command: "door.alarm-ack";
44
+ }>;
45
+ export type DoorAlarmAckCommand = z.infer<typeof sDoorAlarmAckCommand>;
46
+ export declare const doorCommands: {
47
+ readonly 'door.unlock': z.ZodObject<{
48
+ command: z.ZodLiteral<"door.unlock">;
49
+ params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ params: {};
52
+ command: "door.unlock";
53
+ }, {
54
+ params: {};
55
+ command: "door.unlock";
56
+ }>;
57
+ readonly 'door.lock': z.ZodObject<{
58
+ command: z.ZodLiteral<"door.lock">;
59
+ params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ params: {};
62
+ command: "door.lock";
63
+ }, {
64
+ params: {};
65
+ command: "door.lock";
66
+ }>;
67
+ readonly 'door.release': z.ZodObject<{
68
+ command: z.ZodLiteral<"door.release">;
69
+ params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ params: {};
72
+ command: "door.release";
73
+ }, {
74
+ params: {};
75
+ command: "door.release";
76
+ }>;
77
+ readonly 'door.alarm-ack': z.ZodObject<{
78
+ command: z.ZodLiteral<"door.alarm-ack">;
79
+ params: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ params: {};
82
+ command: "door.alarm-ack";
83
+ }, {
84
+ params: {};
85
+ command: "door.alarm-ack";
86
+ }>;
87
+ };
88
+ export type DoorCommand = DoorUnlockCommand | DoorLockCommand | DoorReleaseCommand | DoorAlarmAckCommand;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.doorCommands = exports.sDoorAlarmAckCommand = exports.sDoorReleaseCommand = exports.sDoorLockCommand = exports.sDoorUnlockCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ // COMMANDS
6
+ exports.sDoorUnlockCommand = zod_1.z.object({
7
+ command: zod_1.z.literal('door.unlock'),
8
+ params: zod_1.z.object({}),
9
+ });
10
+ exports.sDoorLockCommand = zod_1.z.object({
11
+ command: zod_1.z.literal('door.lock'),
12
+ params: zod_1.z.object({}),
13
+ });
14
+ exports.sDoorReleaseCommand = zod_1.z.object({
15
+ command: zod_1.z.literal('door.release'),
16
+ params: zod_1.z.object({}),
17
+ });
18
+ exports.sDoorAlarmAckCommand = zod_1.z.object({
19
+ command: zod_1.z.literal('door.alarm-ack'),
20
+ params: zod_1.z.object({}),
21
+ });
22
+ exports.doorCommands = {
23
+ 'door.unlock': exports.sDoorUnlockCommand,
24
+ 'door.lock': exports.sDoorLockCommand,
25
+ 'door.release': exports.sDoorReleaseCommand,
26
+ 'door.alarm-ack': exports.sDoorAlarmAckCommand,
27
+ };
@@ -0,0 +1,12 @@
1
+ export * from './camera';
2
+ export * from './door';
3
+ export * from './io-board';
4
+ export * from './intercom-terminal';
5
+ export * from './server';
6
+ export * from './alarm';
7
+ export * from './presence-tracker';
8
+ export * from './display';
9
+ export * from './nvr-exporter';
10
+ export * from './camera-lift';
11
+ export * from './pbx';
12
+ export * from './all';
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./camera"), exports);
18
+ __exportStar(require("./door"), exports);
19
+ __exportStar(require("./io-board"), exports);
20
+ __exportStar(require("./intercom-terminal"), exports);
21
+ __exportStar(require("./server"), exports);
22
+ __exportStar(require("./alarm"), exports);
23
+ __exportStar(require("./presence-tracker"), exports);
24
+ __exportStar(require("./display"), exports);
25
+ __exportStar(require("./nvr-exporter"), exports);
26
+ __exportStar(require("./camera-lift"), exports);
27
+ __exportStar(require("./pbx"), exports);
28
+ __exportStar(require("./all"), exports);
@@ -0,0 +1,40 @@
1
+ export interface IntercomConnectCommand {
2
+ command: 'intercom-terminal.connect';
3
+ params: {
4
+ clientId: number;
5
+ };
6
+ }
7
+ export interface IntercomDisconnectCommand {
8
+ command: 'intercom-terminal.disconnect';
9
+ params: {
10
+ clientId: number;
11
+ };
12
+ }
13
+ export interface IntercomDialCommand {
14
+ command: 'intercom-terminal.dial';
15
+ params: {
16
+ callId: string;
17
+ offerSdp: string;
18
+ };
19
+ }
20
+ export interface IntercomCancelCallCommand {
21
+ command: 'intercom-terminal.cancel-call';
22
+ params: {
23
+ callId: string;
24
+ };
25
+ }
26
+ export interface IntercomAnswerCallCommand {
27
+ command: 'intercom-terminal.answer';
28
+ params: {
29
+ callId: string;
30
+ userAgentId: string;
31
+ answerSdp: string;
32
+ };
33
+ }
34
+ export interface IntercomHangUpCommand {
35
+ command: 'intercom-terminal.hang-up';
36
+ params: {
37
+ callId: string;
38
+ };
39
+ }
40
+ export type IntercomTerminalCommand = IntercomConnectCommand | IntercomDisconnectCommand | IntercomDialCommand | IntercomCancelCallCommand | IntercomAnswerCallCommand | IntercomHangUpCommand;
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
+ // COMMANDS
2
3
  Object.defineProperty(exports, "__esModule", { value: true });