@awarevue/api-types 1.0.1

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