@awarevue/api-types 2.0.82 → 2.0.83

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