@awarevue/api-types 2.0.13 → 2.0.15

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