@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
@@ -0,0 +1,700 @@
1
+ import { z } from 'zod';
2
+ import { AlarmEvent } from './alarm';
3
+ import { CameraEvent } from './camera';
4
+ import { DoorEvent } from './door';
5
+ import { IntercomTerminalEvent } from './intercom-terminal';
6
+ import { IoBoardEvent } from './io-board';
7
+ import { PanicButtonEvent } from './panic-button';
8
+ import { PresenceTrackerEvent } from './presence-tracker';
9
+ import { ReaderEvent } from './reader';
10
+ import { ServerEvent } from './server';
11
+ import { NvrExporterEvent } from './nvr-exporter';
12
+ import { DeviceType } from '../device';
13
+ export interface DeviceCommandTriggered {
14
+ kind: 'device-command';
15
+ userId?: string;
16
+ command: string;
17
+ args: object;
18
+ }
19
+ export declare const sMotionDetected: z.ZodObject<{
20
+ kind: z.ZodLiteral<"motion-detected">;
21
+ }, "strip", z.ZodTypeAny, {
22
+ kind: "motion-detected";
23
+ }, {
24
+ kind: "motion-detected";
25
+ }>;
26
+ export type MotionDetectedEvent = z.infer<typeof sMotionDetected>;
27
+ export interface DeviceConnectedEvent {
28
+ kind: 'device-connected';
29
+ clientId?: number;
30
+ }
31
+ export interface DeviceDisconnectedEvent {
32
+ kind: 'device-disconnected';
33
+ clientId?: number;
34
+ }
35
+ export type AnyDeviceEvent = DeviceCommandTriggered | CameraEvent | DoorEvent | AlarmEvent | MotionDetectedEvent | ReaderEvent | PanicButtonEvent | DeviceConnectedEvent | DeviceDisconnectedEvent | IntercomTerminalEvent | ServerEvent | PresenceTrackerEvent | IoBoardEvent | NvrExporterEvent;
36
+ export declare const sEventHeader: z.ZodObject<{
37
+ id: z.ZodString;
38
+ timestamp: z.ZodNumber;
39
+ deviceId: z.ZodString;
40
+ observedBy: z.ZodOptional<z.ZodString>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ id: string;
43
+ deviceId: string;
44
+ timestamp: number;
45
+ observedBy?: string | undefined;
46
+ }, {
47
+ id: string;
48
+ deviceId: string;
49
+ timestamp: number;
50
+ observedBy?: string | undefined;
51
+ }>;
52
+ type EventHeader = z.infer<typeof sEventHeader>;
53
+ export type DeviceEvent<TEvent extends AnyDeviceEvent = AnyDeviceEvent> = EventHeader & TEvent;
54
+ export declare const eventKindLabels: Record<DeviceEvent['kind'], string>;
55
+ export declare const eventSchemaByKind: {
56
+ 'motion-detected': z.ZodObject<{
57
+ kind: z.ZodLiteral<"motion-detected">;
58
+ }, "strip", z.ZodTypeAny, {
59
+ kind: "motion-detected";
60
+ }, {
61
+ kind: "motion-detected";
62
+ }>;
63
+ 'nvr-export-started': z.ZodObject<{
64
+ kind: z.ZodLiteral<"nvr-export-started">;
65
+ exportId: z.ZodString;
66
+ requestId: z.ZodString;
67
+ }, "strip", z.ZodTypeAny, {
68
+ kind: "nvr-export-started";
69
+ requestId: string;
70
+ exportId: string;
71
+ }, {
72
+ kind: "nvr-export-started";
73
+ requestId: string;
74
+ exportId: string;
75
+ }>;
76
+ 'nvr-export-deleted': z.ZodObject<{
77
+ kind: z.ZodLiteral<"nvr-export-deleted">;
78
+ exportId: z.ZodString;
79
+ }, "strip", z.ZodTypeAny, {
80
+ kind: "nvr-export-deleted";
81
+ exportId: string;
82
+ }, {
83
+ kind: "nvr-export-deleted";
84
+ exportId: string;
85
+ }>;
86
+ 'reader-auth': z.ZodObject<{
87
+ kind: z.ZodLiteral<"reader-auth">;
88
+ token: z.ZodNullable<z.ZodString>;
89
+ personId: z.ZodOptional<z.ZodString>;
90
+ allowed: z.ZodBoolean;
91
+ }, "strip", z.ZodTypeAny, {
92
+ kind: "reader-auth";
93
+ token: string | null;
94
+ allowed: boolean;
95
+ personId?: string | undefined;
96
+ }, {
97
+ kind: "reader-auth";
98
+ token: string | null;
99
+ allowed: boolean;
100
+ personId?: string | undefined;
101
+ }>;
102
+ 'person-in': z.ZodObject<{
103
+ kind: z.ZodLiteral<"person-in">;
104
+ personId: z.ZodString;
105
+ personFirstName: z.ZodString;
106
+ personLastName: z.ZodString;
107
+ personAvatarId: z.ZodNullable<z.ZodString>;
108
+ personType: z.ZodString;
109
+ personPosition: z.ZodNullable<z.ZodString>;
110
+ zoneId: z.ZodNullable<z.ZodString>;
111
+ securityChecked: z.ZodBoolean;
112
+ }, "strip", z.ZodTypeAny, {
113
+ kind: "person-in";
114
+ personId: string;
115
+ securityChecked: boolean;
116
+ zoneId: string | null;
117
+ personType: string;
118
+ personFirstName: string;
119
+ personLastName: string;
120
+ personAvatarId: string | null;
121
+ personPosition: string | null;
122
+ }, {
123
+ kind: "person-in";
124
+ personId: string;
125
+ securityChecked: boolean;
126
+ zoneId: string | null;
127
+ personType: string;
128
+ personFirstName: string;
129
+ personLastName: string;
130
+ personAvatarId: string | null;
131
+ personPosition: string | null;
132
+ }>;
133
+ 'person-out': z.ZodObject<{
134
+ kind: z.ZodLiteral<"person-out">;
135
+ personId: z.ZodString;
136
+ personFirstName: z.ZodString;
137
+ personLastName: z.ZodString;
138
+ personAvatarId: z.ZodNullable<z.ZodString>;
139
+ personType: z.ZodString;
140
+ personPosition: z.ZodNullable<z.ZodString>;
141
+ isLeave: z.ZodBoolean;
142
+ zoneId: z.ZodNullable<z.ZodString>;
143
+ securityChecked: z.ZodBoolean;
144
+ }, "strip", z.ZodTypeAny, {
145
+ kind: "person-out";
146
+ personId: string;
147
+ securityChecked: boolean;
148
+ isLeave: boolean;
149
+ zoneId: string | null;
150
+ personType: string;
151
+ personFirstName: string;
152
+ personLastName: string;
153
+ personAvatarId: string | null;
154
+ personPosition: string | null;
155
+ }, {
156
+ kind: "person-out";
157
+ personId: string;
158
+ securityChecked: boolean;
159
+ isLeave: boolean;
160
+ zoneId: string | null;
161
+ personType: string;
162
+ personFirstName: string;
163
+ personLastName: string;
164
+ personAvatarId: string | null;
165
+ personPosition: string | null;
166
+ }>;
167
+ 'panic-button-pressed': z.ZodObject<{
168
+ kind: z.ZodLiteral<"panic-button-pressed">;
169
+ }, "strip", z.ZodTypeAny, {
170
+ kind: "panic-button-pressed";
171
+ }, {
172
+ kind: "panic-button-pressed";
173
+ }>;
174
+ 'io-board-input-changed': z.ZodObject<{
175
+ kind: z.ZodLiteral<"io-board-input-changed">;
176
+ inputName: z.ZodString;
177
+ value: z.ZodBoolean;
178
+ }, "strip", z.ZodTypeAny, {
179
+ value: boolean;
180
+ kind: "io-board-input-changed";
181
+ inputName: string;
182
+ }, {
183
+ value: boolean;
184
+ kind: "io-board-input-changed";
185
+ inputName: string;
186
+ }>;
187
+ 'call-state-changed': z.ZodObject<{
188
+ kind: z.ZodLiteral<"call-state-changed">;
189
+ userId: z.ZodOptional<z.ZodString>;
190
+ callId: z.ZodString;
191
+ state: z.ZodEnum<["connecting", "connected", "ringing", "terminated"]>;
192
+ peer: z.ZodOptional<z.ZodString>;
193
+ sipAccount: z.ZodOptional<z.ZodString>;
194
+ sipCallId: z.ZodOptional<z.ZodString>;
195
+ direction: z.ZodEnum<["incoming", "outgoing"]>;
196
+ }, "strip", z.ZodTypeAny, {
197
+ state: "connected" | "connecting" | "ringing" | "terminated";
198
+ direction: "incoming" | "outgoing";
199
+ kind: "call-state-changed";
200
+ callId: string;
201
+ peer?: string | undefined;
202
+ userId?: string | undefined;
203
+ sipAccount?: string | undefined;
204
+ sipCallId?: string | undefined;
205
+ }, {
206
+ state: "connected" | "connecting" | "ringing" | "terminated";
207
+ direction: "incoming" | "outgoing";
208
+ kind: "call-state-changed";
209
+ callId: string;
210
+ peer?: string | undefined;
211
+ userId?: string | undefined;
212
+ sipAccount?: string | undefined;
213
+ sipCallId?: string | undefined;
214
+ }>;
215
+ 'door-access': z.ZodObject<{
216
+ kind: z.ZodLiteral<"door-access">;
217
+ personId: z.ZodOptional<z.ZodString>;
218
+ token: z.ZodNullable<z.ZodString>;
219
+ tokenType: z.ZodNullable<z.ZodEnum<["card", "pin", "fingerprint"]>>;
220
+ allowed: z.ZodBoolean;
221
+ doorExit: z.ZodBoolean;
222
+ description: z.ZodString;
223
+ }, "strip", z.ZodTypeAny, {
224
+ description: string;
225
+ kind: "door-access";
226
+ token: string | null;
227
+ tokenType: "card" | "pin" | "fingerprint" | null;
228
+ allowed: boolean;
229
+ doorExit: boolean;
230
+ personId?: string | undefined;
231
+ }, {
232
+ description: string;
233
+ kind: "door-access";
234
+ token: string | null;
235
+ tokenType: "card" | "pin" | "fingerprint" | null;
236
+ allowed: boolean;
237
+ doorExit: boolean;
238
+ personId?: string | undefined;
239
+ }>;
240
+ 'door-opened': z.ZodObject<{
241
+ kind: z.ZodLiteral<"door-opened">;
242
+ }, "strip", z.ZodTypeAny, {
243
+ kind: "door-opened";
244
+ }, {
245
+ kind: "door-opened";
246
+ }>;
247
+ 'door-closed': z.ZodObject<{
248
+ kind: z.ZodLiteral<"door-closed">;
249
+ }, "strip", z.ZodTypeAny, {
250
+ kind: "door-closed";
251
+ }, {
252
+ kind: "door-closed";
253
+ }>;
254
+ 'door-force': z.ZodObject<{
255
+ kind: z.ZodLiteral<"door-force">;
256
+ }, "strip", z.ZodTypeAny, {
257
+ kind: "door-force";
258
+ }, {
259
+ kind: "door-force";
260
+ }>;
261
+ 'door-tamper': z.ZodObject<{
262
+ kind: z.ZodLiteral<"door-tamper">;
263
+ }, "strip", z.ZodTypeAny, {
264
+ kind: "door-tamper";
265
+ }, {
266
+ kind: "door-tamper";
267
+ }>;
268
+ 'door-left-open': z.ZodObject<{
269
+ kind: z.ZodLiteral<"door-left-open">;
270
+ }, "strip", z.ZodTypeAny, {
271
+ kind: "door-left-open";
272
+ }, {
273
+ kind: "door-left-open";
274
+ }>;
275
+ 'door-relock': z.ZodObject<{
276
+ kind: z.ZodLiteral<"door-relock">;
277
+ }, "strip", z.ZodTypeAny, {
278
+ kind: "door-relock";
279
+ }, {
280
+ kind: "door-relock";
281
+ }>;
282
+ 'door-mains-failed': z.ZodObject<{
283
+ kind: z.ZodLiteral<"door-mains-failed">;
284
+ }, "strip", z.ZodTypeAny, {
285
+ kind: "door-mains-failed";
286
+ }, {
287
+ kind: "door-mains-failed";
288
+ }>;
289
+ 'door-acu-not-responding': z.ZodObject<{
290
+ kind: z.ZodLiteral<"door-acu-not-responding">;
291
+ }, "strip", z.ZodTypeAny, {
292
+ kind: "door-acu-not-responding";
293
+ }, {
294
+ kind: "door-acu-not-responding";
295
+ }>;
296
+ 'door-mains-restored': z.ZodObject<{
297
+ kind: z.ZodLiteral<"door-mains-restored">;
298
+ }, "strip", z.ZodTypeAny, {
299
+ kind: "door-mains-restored";
300
+ }, {
301
+ kind: "door-mains-restored";
302
+ }>;
303
+ 'door-acu-online': z.ZodObject<{
304
+ kind: z.ZodLiteral<"door-acu-online">;
305
+ }, "strip", z.ZodTypeAny, {
306
+ kind: "door-acu-online";
307
+ }, {
308
+ kind: "door-acu-online";
309
+ }>;
310
+ 'door-tamper-restored': z.ZodObject<{
311
+ kind: z.ZodLiteral<"door-tamper-restored">;
312
+ }, "strip", z.ZodTypeAny, {
313
+ kind: "door-tamper-restored";
314
+ }, {
315
+ kind: "door-tamper-restored";
316
+ }>;
317
+ 'ptz-preset-saved': z.ZodObject<{
318
+ kind: z.ZodLiteral<"ptz-preset-saved">;
319
+ presetId: z.ZodString;
320
+ presetInfo: z.ZodObject<{
321
+ name: z.ZodString;
322
+ isDefault: z.ZodBoolean;
323
+ values: z.ZodUnknown;
324
+ }, "strip", z.ZodTypeAny, {
325
+ name: string;
326
+ isDefault: boolean;
327
+ values?: unknown;
328
+ }, {
329
+ name: string;
330
+ isDefault: boolean;
331
+ values?: unknown;
332
+ }>;
333
+ assignedRef: z.ZodNullable<z.ZodString>;
334
+ }, "strip", z.ZodTypeAny, {
335
+ kind: "ptz-preset-saved";
336
+ assignedRef: string | null;
337
+ presetId: string;
338
+ presetInfo: {
339
+ name: string;
340
+ isDefault: boolean;
341
+ values?: unknown;
342
+ };
343
+ }, {
344
+ kind: "ptz-preset-saved";
345
+ assignedRef: string | null;
346
+ presetId: string;
347
+ presetInfo: {
348
+ name: string;
349
+ isDefault: boolean;
350
+ values?: unknown;
351
+ };
352
+ }>;
353
+ 'object-detection-started': z.ZodIntersection<z.ZodObject<{
354
+ kind: z.ZodLiteral<"object-detection-started">;
355
+ providerAssignedRef: z.ZodString;
356
+ detectionProvider: z.ZodString;
357
+ }, "strip", z.ZodTypeAny, {
358
+ kind: "object-detection-started";
359
+ providerAssignedRef: string;
360
+ detectionProvider: string;
361
+ }, {
362
+ kind: "object-detection-started";
363
+ providerAssignedRef: string;
364
+ detectionProvider: string;
365
+ }>, z.ZodIntersection<z.ZodObject<{
366
+ objectKind: z.ZodNullable<z.ZodString>;
367
+ probability: z.ZodNumber;
368
+ identifiedObjectId: z.ZodNullable<z.ZodString>;
369
+ frameTime: z.ZodNumber;
370
+ startTime: z.ZodNumber;
371
+ endTime: z.ZodNullable<z.ZodNumber>;
372
+ }, "strip", z.ZodTypeAny, {
373
+ endTime: number | null;
374
+ startTime: number;
375
+ objectKind: string | null;
376
+ probability: number;
377
+ identifiedObjectId: string | null;
378
+ frameTime: number;
379
+ }, {
380
+ endTime: number | null;
381
+ startTime: number;
382
+ objectKind: string | null;
383
+ probability: number;
384
+ identifiedObjectId: string | null;
385
+ frameTime: number;
386
+ }>, z.ZodObject<{
387
+ locatorKind: z.ZodLiteral<"box">;
388
+ x1: z.ZodNumber;
389
+ y1: z.ZodNumber;
390
+ x2: z.ZodNumber;
391
+ y2: z.ZodNumber;
392
+ }, "strip", z.ZodTypeAny, {
393
+ locatorKind: "box";
394
+ x1: number;
395
+ y1: number;
396
+ x2: number;
397
+ y2: number;
398
+ }, {
399
+ locatorKind: "box";
400
+ x1: number;
401
+ y1: number;
402
+ x2: number;
403
+ y2: number;
404
+ }>>>;
405
+ 'object-detection-updated': z.ZodIntersection<z.ZodObject<{
406
+ kind: z.ZodLiteral<"object-detection-updated">;
407
+ providerAssignedRef: z.ZodString;
408
+ detectionProvider: z.ZodString;
409
+ }, "strip", z.ZodTypeAny, {
410
+ kind: "object-detection-updated";
411
+ providerAssignedRef: string;
412
+ detectionProvider: string;
413
+ }, {
414
+ kind: "object-detection-updated";
415
+ providerAssignedRef: string;
416
+ detectionProvider: string;
417
+ }>, z.ZodIntersection<z.ZodObject<{
418
+ objectKind: z.ZodNullable<z.ZodString>;
419
+ probability: z.ZodNumber;
420
+ identifiedObjectId: z.ZodNullable<z.ZodString>;
421
+ frameTime: z.ZodNumber;
422
+ startTime: z.ZodNumber;
423
+ endTime: z.ZodNullable<z.ZodNumber>;
424
+ }, "strip", z.ZodTypeAny, {
425
+ endTime: number | null;
426
+ startTime: number;
427
+ objectKind: string | null;
428
+ probability: number;
429
+ identifiedObjectId: string | null;
430
+ frameTime: number;
431
+ }, {
432
+ endTime: number | null;
433
+ startTime: number;
434
+ objectKind: string | null;
435
+ probability: number;
436
+ identifiedObjectId: string | null;
437
+ frameTime: number;
438
+ }>, z.ZodObject<{
439
+ locatorKind: z.ZodLiteral<"box">;
440
+ x1: z.ZodNumber;
441
+ y1: z.ZodNumber;
442
+ x2: z.ZodNumber;
443
+ y2: z.ZodNumber;
444
+ }, "strip", z.ZodTypeAny, {
445
+ locatorKind: "box";
446
+ x1: number;
447
+ y1: number;
448
+ x2: number;
449
+ y2: number;
450
+ }, {
451
+ locatorKind: "box";
452
+ x1: number;
453
+ y1: number;
454
+ x2: number;
455
+ y2: number;
456
+ }>>>;
457
+ 'object-detection-ended': z.ZodIntersection<z.ZodObject<{
458
+ kind: z.ZodLiteral<"object-detection-ended">;
459
+ providerAssignedRef: z.ZodString;
460
+ detectionProvider: z.ZodString;
461
+ }, "strip", z.ZodTypeAny, {
462
+ kind: "object-detection-ended";
463
+ providerAssignedRef: string;
464
+ detectionProvider: string;
465
+ }, {
466
+ kind: "object-detection-ended";
467
+ providerAssignedRef: string;
468
+ detectionProvider: string;
469
+ }>, z.ZodIntersection<z.ZodObject<{
470
+ objectKind: z.ZodNullable<z.ZodString>;
471
+ probability: z.ZodNumber;
472
+ identifiedObjectId: z.ZodNullable<z.ZodString>;
473
+ frameTime: z.ZodNumber;
474
+ startTime: z.ZodNumber;
475
+ endTime: z.ZodNullable<z.ZodNumber>;
476
+ }, "strip", z.ZodTypeAny, {
477
+ endTime: number | null;
478
+ startTime: number;
479
+ objectKind: string | null;
480
+ probability: number;
481
+ identifiedObjectId: string | null;
482
+ frameTime: number;
483
+ }, {
484
+ endTime: number | null;
485
+ startTime: number;
486
+ objectKind: string | null;
487
+ probability: number;
488
+ identifiedObjectId: string | null;
489
+ frameTime: number;
490
+ }>, z.ZodObject<{
491
+ locatorKind: z.ZodLiteral<"box">;
492
+ x1: z.ZodNumber;
493
+ y1: z.ZodNumber;
494
+ x2: z.ZodNumber;
495
+ y2: z.ZodNumber;
496
+ }, "strip", z.ZodTypeAny, {
497
+ locatorKind: "box";
498
+ x1: number;
499
+ y1: number;
500
+ x2: number;
501
+ y2: number;
502
+ }, {
503
+ locatorKind: "box";
504
+ x1: number;
505
+ y1: number;
506
+ x2: number;
507
+ y2: number;
508
+ }>>>;
509
+ 'scene-created': z.ZodIntersection<z.ZodObject<{
510
+ kind: z.ZodLiteral<"scene-created">;
511
+ providerAssignedRef: z.ZodString;
512
+ detectionProvider: z.ZodString;
513
+ }, "strip", z.ZodTypeAny, {
514
+ kind: "scene-created";
515
+ providerAssignedRef: string;
516
+ detectionProvider: string;
517
+ }, {
518
+ kind: "scene-created";
519
+ providerAssignedRef: string;
520
+ detectionProvider: string;
521
+ }>, z.ZodObject<{
522
+ detections: z.ZodArray<z.ZodString, "many">;
523
+ clipUrl: z.ZodOptional<z.ZodString>;
524
+ startTime: z.ZodNumber;
525
+ endTime: z.ZodNullable<z.ZodNumber>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ endTime: number | null;
528
+ startTime: number;
529
+ detections: string[];
530
+ clipUrl?: string | undefined;
531
+ }, {
532
+ endTime: number | null;
533
+ startTime: number;
534
+ detections: string[];
535
+ clipUrl?: string | undefined;
536
+ }>>;
537
+ 'scene-updated': z.ZodIntersection<z.ZodObject<{
538
+ kind: z.ZodLiteral<"scene-updated">;
539
+ providerAssignedRef: z.ZodString;
540
+ detectionProvider: z.ZodString;
541
+ }, "strip", z.ZodTypeAny, {
542
+ kind: "scene-updated";
543
+ providerAssignedRef: string;
544
+ detectionProvider: string;
545
+ }, {
546
+ kind: "scene-updated";
547
+ providerAssignedRef: string;
548
+ detectionProvider: string;
549
+ }>, z.ZodObject<{
550
+ detections: z.ZodArray<z.ZodString, "many">;
551
+ clipUrl: z.ZodOptional<z.ZodString>;
552
+ startTime: z.ZodNumber;
553
+ endTime: z.ZodNullable<z.ZodNumber>;
554
+ }, "strip", z.ZodTypeAny, {
555
+ endTime: number | null;
556
+ startTime: number;
557
+ detections: string[];
558
+ clipUrl?: string | undefined;
559
+ }, {
560
+ endTime: number | null;
561
+ startTime: number;
562
+ detections: string[];
563
+ clipUrl?: string | undefined;
564
+ }>>;
565
+ 'scene-ended': z.ZodIntersection<z.ZodObject<{
566
+ kind: z.ZodLiteral<"scene-ended">;
567
+ providerAssignedRef: z.ZodString;
568
+ detectionProvider: z.ZodString;
569
+ }, "strip", z.ZodTypeAny, {
570
+ kind: "scene-ended";
571
+ providerAssignedRef: string;
572
+ detectionProvider: string;
573
+ }, {
574
+ kind: "scene-ended";
575
+ providerAssignedRef: string;
576
+ detectionProvider: string;
577
+ }>, z.ZodObject<{
578
+ detections: z.ZodArray<z.ZodString, "many">;
579
+ clipUrl: z.ZodOptional<z.ZodString>;
580
+ startTime: z.ZodNumber;
581
+ endTime: z.ZodNullable<z.ZodNumber>;
582
+ }, "strip", z.ZodTypeAny, {
583
+ endTime: number | null;
584
+ startTime: number;
585
+ detections: string[];
586
+ clipUrl?: string | undefined;
587
+ }, {
588
+ endTime: number | null;
589
+ startTime: number;
590
+ detections: string[];
591
+ clipUrl?: string | undefined;
592
+ }>>;
593
+ 'alarm-triggered': z.ZodObject<{
594
+ kind: z.ZodLiteral<"alarm-triggered">;
595
+ alarmId: z.ZodString;
596
+ }, "strip", z.ZodTypeAny, {
597
+ kind: "alarm-triggered";
598
+ alarmId: string;
599
+ }, {
600
+ kind: "alarm-triggered";
601
+ alarmId: string;
602
+ }>;
603
+ 'alarm-acknowledged': z.ZodObject<{
604
+ kind: z.ZodLiteral<"alarm-acknowledged">;
605
+ alarmId: z.ZodString;
606
+ userId: z.ZodOptional<z.ZodString>;
607
+ personId: z.ZodOptional<z.ZodString>;
608
+ }, "strip", z.ZodTypeAny, {
609
+ kind: "alarm-acknowledged";
610
+ alarmId: string;
611
+ personId?: string | undefined;
612
+ userId?: string | undefined;
613
+ }, {
614
+ kind: "alarm-acknowledged";
615
+ alarmId: string;
616
+ personId?: string | undefined;
617
+ userId?: string | undefined;
618
+ }>;
619
+ 'alarm-armed-all': z.ZodObject<{
620
+ kind: z.ZodLiteral<"alarm-armed-all">;
621
+ userId: z.ZodOptional<z.ZodString>;
622
+ personId: z.ZodOptional<z.ZodString>;
623
+ }, "strip", z.ZodTypeAny, {
624
+ kind: "alarm-armed-all";
625
+ personId?: string | undefined;
626
+ userId?: string | undefined;
627
+ }, {
628
+ kind: "alarm-armed-all";
629
+ personId?: string | undefined;
630
+ userId?: string | undefined;
631
+ }>;
632
+ 'alarm-disarmed-all': z.ZodObject<{
633
+ kind: z.ZodLiteral<"alarm-disarmed-all">;
634
+ userId: z.ZodOptional<z.ZodString>;
635
+ personId: z.ZodOptional<z.ZodString>;
636
+ }, "strip", z.ZodTypeAny, {
637
+ kind: "alarm-disarmed-all";
638
+ personId?: string | undefined;
639
+ userId?: string | undefined;
640
+ }, {
641
+ kind: "alarm-disarmed-all";
642
+ personId?: string | undefined;
643
+ userId?: string | undefined;
644
+ }>;
645
+ 'alarm-armed': z.ZodObject<{
646
+ kind: z.ZodLiteral<"alarm-armed">;
647
+ subjects: z.ZodArray<z.ZodString, "many">;
648
+ userId: z.ZodOptional<z.ZodString>;
649
+ personId: z.ZodOptional<z.ZodString>;
650
+ }, "strip", z.ZodTypeAny, {
651
+ kind: "alarm-armed";
652
+ subjects: string[];
653
+ personId?: string | undefined;
654
+ userId?: string | undefined;
655
+ }, {
656
+ kind: "alarm-armed";
657
+ subjects: string[];
658
+ personId?: string | undefined;
659
+ userId?: string | undefined;
660
+ }>;
661
+ 'alarm-disarmed': z.ZodObject<{
662
+ kind: z.ZodLiteral<"alarm-disarmed">;
663
+ subjects: z.ZodArray<z.ZodString, "many">;
664
+ userId: z.ZodOptional<z.ZodString>;
665
+ personId: z.ZodOptional<z.ZodString>;
666
+ }, "strip", z.ZodTypeAny, {
667
+ kind: "alarm-disarmed";
668
+ subjects: string[];
669
+ personId?: string | undefined;
670
+ userId?: string | undefined;
671
+ }, {
672
+ kind: "alarm-disarmed";
673
+ subjects: string[];
674
+ personId?: string | undefined;
675
+ userId?: string | undefined;
676
+ }>;
677
+ 'alarm-arm-released': z.ZodObject<{
678
+ kind: z.ZodLiteral<"alarm-arm-released">;
679
+ userId: z.ZodOptional<z.ZodString>;
680
+ personId: z.ZodOptional<z.ZodString>;
681
+ }, "strip", z.ZodTypeAny, {
682
+ kind: "alarm-arm-released";
683
+ personId?: string | undefined;
684
+ userId?: string | undefined;
685
+ }, {
686
+ kind: "alarm-arm-released";
687
+ personId?: string | undefined;
688
+ userId?: string | undefined;
689
+ }>;
690
+ 'alarm-rearmed': z.ZodObject<{
691
+ kind: z.ZodLiteral<"alarm-rearmed">;
692
+ }, "strip", z.ZodTypeAny, {
693
+ kind: "alarm-rearmed";
694
+ }, {
695
+ kind: "alarm-rearmed";
696
+ }>;
697
+ };
698
+ export declare const eventsByDeviceType: Partial<Record<DeviceType, DeviceEvent['kind'][]>>;
699
+ export declare const isDeviceEvent: (event: unknown) => event is AnyDeviceEvent;
700
+ export {};