@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,1412 @@
1
+ import { z } from 'zod';
2
+ import { DeviceDto } from './device';
3
+ import { DeviceRelationDto } from './device-relation';
4
+ export declare const sImportedDevice: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
5
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ tags?: string[] | undefined;
8
+ }, {
9
+ tags?: string[] | undefined;
10
+ }>, z.ZodObject<{
11
+ name: z.ZodString;
12
+ foreignRef: z.ZodString;
13
+ provider: z.ZodString;
14
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ name: string;
17
+ foreignRef: string;
18
+ provider: string;
19
+ providerMetadata: {} & {
20
+ [k: string]: unknown;
21
+ };
22
+ }, {
23
+ name: string;
24
+ foreignRef: string;
25
+ provider: string;
26
+ providerMetadata: {} & {
27
+ [k: string]: unknown;
28
+ };
29
+ }>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
30
+ type: z.ZodLiteral<"alarm">;
31
+ }, "strip", z.ZodTypeAny, {
32
+ type: "alarm";
33
+ }, {
34
+ type: "alarm";
35
+ }>, z.ZodObject<{
36
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
37
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
38
+ ptzCapable: z.ZodBoolean;
39
+ ptzPanSpeed: z.ZodNumber;
40
+ ptzTiltSpeed: z.ZodNumber;
41
+ ptzZoomSpeed: z.ZodNumber;
42
+ recordingCapable: z.ZodBoolean;
43
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
44
+ kind: z.ZodString;
45
+ }, "strip", z.ZodTypeAny, {
46
+ kind: string;
47
+ }, {
48
+ kind: string;
49
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
50
+ streams: z.ZodArray<z.ZodObject<{
51
+ id: z.ZodString;
52
+ displayName: z.ZodString;
53
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ id: string;
56
+ displayName: string;
57
+ externalPlayerUrl: string | null;
58
+ }, {
59
+ id: string;
60
+ displayName: string;
61
+ externalPlayerUrl: string | null;
62
+ }>, "many">;
63
+ defaultStreamId: z.ZodString;
64
+ } & {
65
+ type: z.ZodLiteral<"camera">;
66
+ }, "strip", z.ZodTypeAny, {
67
+ type: "camera";
68
+ streams: {
69
+ id: string;
70
+ displayName: string;
71
+ externalPlayerUrl: string | null;
72
+ }[];
73
+ lensType: "flat" | "fisheye";
74
+ mountPoint: "wall" | "ceiling" | "floor";
75
+ ptzCapable: boolean;
76
+ ptzPanSpeed: number;
77
+ ptzTiltSpeed: number;
78
+ ptzZoomSpeed: number;
79
+ recordingCapable: boolean;
80
+ webrtcPlaybackSource: ({
81
+ kind: string;
82
+ } & Record<string, unknown>) | null;
83
+ defaultStreamId: string;
84
+ }, {
85
+ type: "camera";
86
+ streams: {
87
+ id: string;
88
+ displayName: string;
89
+ externalPlayerUrl: string | null;
90
+ }[];
91
+ lensType: "flat" | "fisheye";
92
+ mountPoint: "wall" | "ceiling" | "floor";
93
+ ptzCapable: boolean;
94
+ ptzPanSpeed: number;
95
+ ptzTiltSpeed: number;
96
+ ptzZoomSpeed: number;
97
+ recordingCapable: boolean;
98
+ webrtcPlaybackSource: ({
99
+ kind: string;
100
+ } & Record<string, unknown>) | null;
101
+ defaultStreamId: string;
102
+ }>, z.ZodObject<{
103
+ type: z.ZodLiteral<"door">;
104
+ }, "strip", z.ZodTypeAny, {
105
+ type: "door";
106
+ }, {
107
+ type: "door";
108
+ }>, z.ZodObject<{
109
+ inputs: z.ZodArray<z.ZodString, "many">;
110
+ outputs: z.ZodArray<z.ZodString, "many">;
111
+ } & {
112
+ type: z.ZodLiteral<"io-board">;
113
+ }, "strip", z.ZodTypeAny, {
114
+ type: "io-board";
115
+ inputs: string[];
116
+ outputs: string[];
117
+ }, {
118
+ type: "io-board";
119
+ inputs: string[];
120
+ outputs: string[];
121
+ }>, z.ZodObject<{
122
+ type: z.ZodLiteral<"camera-lift">;
123
+ }, "strip", z.ZodTypeAny, {
124
+ type: "camera-lift";
125
+ }, {
126
+ type: "camera-lift";
127
+ }>, z.ZodObject<{
128
+ type: z.ZodLiteral<"motion-sensor">;
129
+ }, "strip", z.ZodTypeAny, {
130
+ type: "motion-sensor";
131
+ }, {
132
+ type: "motion-sensor";
133
+ }>, z.ZodObject<{
134
+ type: z.ZodLiteral<"panic-button">;
135
+ }, "strip", z.ZodTypeAny, {
136
+ type: "panic-button";
137
+ }, {
138
+ type: "panic-button";
139
+ }>, z.ZodObject<{
140
+ sipUri: z.ZodString;
141
+ sipUser: z.ZodString;
142
+ sipPassword: z.ZodString;
143
+ sipRealm: z.ZodString;
144
+ remoteExtension: z.ZodString;
145
+ } & {
146
+ type: z.ZodLiteral<"intercom-terminal">;
147
+ }, "strip", z.ZodTypeAny, {
148
+ type: "intercom-terminal";
149
+ sipUri: string;
150
+ sipUser: string;
151
+ sipPassword: string;
152
+ sipRealm: string;
153
+ remoteExtension: string;
154
+ }, {
155
+ type: "intercom-terminal";
156
+ sipUri: string;
157
+ sipUser: string;
158
+ sipPassword: string;
159
+ sipRealm: string;
160
+ remoteExtension: string;
161
+ }>, z.ZodObject<{
162
+ sipWsUrl: z.ZodString;
163
+ } & {
164
+ type: z.ZodLiteral<"pbx">;
165
+ }, "strip", z.ZodTypeAny, {
166
+ type: "pbx";
167
+ sipWsUrl: string;
168
+ }, {
169
+ type: "pbx";
170
+ sipWsUrl: string;
171
+ }>, z.ZodObject<{
172
+ type: z.ZodLiteral<"server">;
173
+ }, "strip", z.ZodTypeAny, {
174
+ type: "server";
175
+ }, {
176
+ type: "server";
177
+ }>, z.ZodObject<{
178
+ type: z.ZodLiteral<"intercom-operator">;
179
+ }, "strip", z.ZodTypeAny, {
180
+ type: "intercom-operator";
181
+ }, {
182
+ type: "intercom-operator";
183
+ }>, z.ZodObject<{
184
+ type: z.ZodLiteral<"device-gateway">;
185
+ }, "strip", z.ZodTypeAny, {
186
+ type: "device-gateway";
187
+ }, {
188
+ type: "device-gateway";
189
+ }>, z.ZodObject<{
190
+ type: z.ZodLiteral<"presence-tracker">;
191
+ }, "strip", z.ZodTypeAny, {
192
+ type: "presence-tracker";
193
+ }, {
194
+ type: "presence-tracker";
195
+ }>, z.ZodObject<{
196
+ type: z.ZodLiteral<"reader">;
197
+ }, "strip", z.ZodTypeAny, {
198
+ type: "reader";
199
+ }, {
200
+ type: "reader";
201
+ }>]>>;
202
+ export declare const sDuplicateDevice: z.ZodObject<{
203
+ name: z.ZodString;
204
+ refs: z.ZodArray<z.ZodString, "many">;
205
+ }, "strip", z.ZodTypeAny, {
206
+ name: string;
207
+ refs: string[];
208
+ }, {
209
+ name: string;
210
+ refs: string[];
211
+ }>;
212
+ export declare const sDeviceDiscoveryDto: z.ZodObject<{
213
+ devices: z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
214
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ tags?: string[] | undefined;
217
+ }, {
218
+ tags?: string[] | undefined;
219
+ }>, z.ZodObject<{
220
+ name: z.ZodString;
221
+ foreignRef: z.ZodString;
222
+ provider: z.ZodString;
223
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
224
+ }, "strip", z.ZodTypeAny, {
225
+ name: string;
226
+ foreignRef: string;
227
+ provider: string;
228
+ providerMetadata: {} & {
229
+ [k: string]: unknown;
230
+ };
231
+ }, {
232
+ name: string;
233
+ foreignRef: string;
234
+ provider: string;
235
+ providerMetadata: {} & {
236
+ [k: string]: unknown;
237
+ };
238
+ }>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
239
+ type: z.ZodLiteral<"alarm">;
240
+ }, "strip", z.ZodTypeAny, {
241
+ type: "alarm";
242
+ }, {
243
+ type: "alarm";
244
+ }>, z.ZodObject<{
245
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
246
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
247
+ ptzCapable: z.ZodBoolean;
248
+ ptzPanSpeed: z.ZodNumber;
249
+ ptzTiltSpeed: z.ZodNumber;
250
+ ptzZoomSpeed: z.ZodNumber;
251
+ recordingCapable: z.ZodBoolean;
252
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
253
+ kind: z.ZodString;
254
+ }, "strip", z.ZodTypeAny, {
255
+ kind: string;
256
+ }, {
257
+ kind: string;
258
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
259
+ streams: z.ZodArray<z.ZodObject<{
260
+ id: z.ZodString;
261
+ displayName: z.ZodString;
262
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ id: string;
265
+ displayName: string;
266
+ externalPlayerUrl: string | null;
267
+ }, {
268
+ id: string;
269
+ displayName: string;
270
+ externalPlayerUrl: string | null;
271
+ }>, "many">;
272
+ defaultStreamId: z.ZodString;
273
+ } & {
274
+ type: z.ZodLiteral<"camera">;
275
+ }, "strip", z.ZodTypeAny, {
276
+ type: "camera";
277
+ streams: {
278
+ id: string;
279
+ displayName: string;
280
+ externalPlayerUrl: string | null;
281
+ }[];
282
+ lensType: "flat" | "fisheye";
283
+ mountPoint: "wall" | "ceiling" | "floor";
284
+ ptzCapable: boolean;
285
+ ptzPanSpeed: number;
286
+ ptzTiltSpeed: number;
287
+ ptzZoomSpeed: number;
288
+ recordingCapable: boolean;
289
+ webrtcPlaybackSource: ({
290
+ kind: string;
291
+ } & Record<string, unknown>) | null;
292
+ defaultStreamId: string;
293
+ }, {
294
+ type: "camera";
295
+ streams: {
296
+ id: string;
297
+ displayName: string;
298
+ externalPlayerUrl: string | null;
299
+ }[];
300
+ lensType: "flat" | "fisheye";
301
+ mountPoint: "wall" | "ceiling" | "floor";
302
+ ptzCapable: boolean;
303
+ ptzPanSpeed: number;
304
+ ptzTiltSpeed: number;
305
+ ptzZoomSpeed: number;
306
+ recordingCapable: boolean;
307
+ webrtcPlaybackSource: ({
308
+ kind: string;
309
+ } & Record<string, unknown>) | null;
310
+ defaultStreamId: string;
311
+ }>, z.ZodObject<{
312
+ type: z.ZodLiteral<"door">;
313
+ }, "strip", z.ZodTypeAny, {
314
+ type: "door";
315
+ }, {
316
+ type: "door";
317
+ }>, z.ZodObject<{
318
+ inputs: z.ZodArray<z.ZodString, "many">;
319
+ outputs: z.ZodArray<z.ZodString, "many">;
320
+ } & {
321
+ type: z.ZodLiteral<"io-board">;
322
+ }, "strip", z.ZodTypeAny, {
323
+ type: "io-board";
324
+ inputs: string[];
325
+ outputs: string[];
326
+ }, {
327
+ type: "io-board";
328
+ inputs: string[];
329
+ outputs: string[];
330
+ }>, z.ZodObject<{
331
+ type: z.ZodLiteral<"camera-lift">;
332
+ }, "strip", z.ZodTypeAny, {
333
+ type: "camera-lift";
334
+ }, {
335
+ type: "camera-lift";
336
+ }>, z.ZodObject<{
337
+ type: z.ZodLiteral<"motion-sensor">;
338
+ }, "strip", z.ZodTypeAny, {
339
+ type: "motion-sensor";
340
+ }, {
341
+ type: "motion-sensor";
342
+ }>, z.ZodObject<{
343
+ type: z.ZodLiteral<"panic-button">;
344
+ }, "strip", z.ZodTypeAny, {
345
+ type: "panic-button";
346
+ }, {
347
+ type: "panic-button";
348
+ }>, z.ZodObject<{
349
+ sipUri: z.ZodString;
350
+ sipUser: z.ZodString;
351
+ sipPassword: z.ZodString;
352
+ sipRealm: z.ZodString;
353
+ remoteExtension: z.ZodString;
354
+ } & {
355
+ type: z.ZodLiteral<"intercom-terminal">;
356
+ }, "strip", z.ZodTypeAny, {
357
+ type: "intercom-terminal";
358
+ sipUri: string;
359
+ sipUser: string;
360
+ sipPassword: string;
361
+ sipRealm: string;
362
+ remoteExtension: string;
363
+ }, {
364
+ type: "intercom-terminal";
365
+ sipUri: string;
366
+ sipUser: string;
367
+ sipPassword: string;
368
+ sipRealm: string;
369
+ remoteExtension: string;
370
+ }>, z.ZodObject<{
371
+ sipWsUrl: z.ZodString;
372
+ } & {
373
+ type: z.ZodLiteral<"pbx">;
374
+ }, "strip", z.ZodTypeAny, {
375
+ type: "pbx";
376
+ sipWsUrl: string;
377
+ }, {
378
+ type: "pbx";
379
+ sipWsUrl: string;
380
+ }>, z.ZodObject<{
381
+ type: z.ZodLiteral<"server">;
382
+ }, "strip", z.ZodTypeAny, {
383
+ type: "server";
384
+ }, {
385
+ type: "server";
386
+ }>, z.ZodObject<{
387
+ type: z.ZodLiteral<"intercom-operator">;
388
+ }, "strip", z.ZodTypeAny, {
389
+ type: "intercom-operator";
390
+ }, {
391
+ type: "intercom-operator";
392
+ }>, z.ZodObject<{
393
+ type: z.ZodLiteral<"device-gateway">;
394
+ }, "strip", z.ZodTypeAny, {
395
+ type: "device-gateway";
396
+ }, {
397
+ type: "device-gateway";
398
+ }>, z.ZodObject<{
399
+ type: z.ZodLiteral<"presence-tracker">;
400
+ }, "strip", z.ZodTypeAny, {
401
+ type: "presence-tracker";
402
+ }, {
403
+ type: "presence-tracker";
404
+ }>, z.ZodObject<{
405
+ type: z.ZodLiteral<"reader">;
406
+ }, "strip", z.ZodTypeAny, {
407
+ type: "reader";
408
+ }, {
409
+ type: "reader";
410
+ }>]>>, "many">;
411
+ relations: z.ZodArray<z.ZodIntersection<z.ZodObject<{
412
+ leftId: z.ZodString;
413
+ rightId: z.ZodString;
414
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
415
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
416
+ leftId: z.ZodString;
417
+ rightId: z.ZodString;
418
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
419
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
420
+ leftId: z.ZodString;
421
+ rightId: z.ZodString;
422
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
423
+ }, z.ZodUnknown, "strip">>, z.ZodObject<{
424
+ provider: z.ZodString;
425
+ }, "strip", z.ZodTypeAny, {
426
+ provider: string;
427
+ }, {
428
+ provider: string;
429
+ }>>, "many">;
430
+ }, "strip", z.ZodTypeAny, {
431
+ devices: ({
432
+ tags?: string[] | undefined;
433
+ } & {
434
+ name: string;
435
+ foreignRef: string;
436
+ provider: string;
437
+ providerMetadata: {} & {
438
+ [k: string]: unknown;
439
+ };
440
+ } & ({
441
+ type: "alarm";
442
+ } | {
443
+ type: "camera";
444
+ streams: {
445
+ id: string;
446
+ displayName: string;
447
+ externalPlayerUrl: string | null;
448
+ }[];
449
+ lensType: "flat" | "fisheye";
450
+ mountPoint: "wall" | "ceiling" | "floor";
451
+ ptzCapable: boolean;
452
+ ptzPanSpeed: number;
453
+ ptzTiltSpeed: number;
454
+ ptzZoomSpeed: number;
455
+ recordingCapable: boolean;
456
+ webrtcPlaybackSource: ({
457
+ kind: string;
458
+ } & Record<string, unknown>) | null;
459
+ defaultStreamId: string;
460
+ } | {
461
+ type: "door";
462
+ } | {
463
+ type: "io-board";
464
+ inputs: string[];
465
+ outputs: string[];
466
+ } | {
467
+ type: "camera-lift";
468
+ } | {
469
+ type: "motion-sensor";
470
+ } | {
471
+ type: "panic-button";
472
+ } | {
473
+ type: "intercom-terminal";
474
+ sipUri: string;
475
+ sipUser: string;
476
+ sipPassword: string;
477
+ sipRealm: string;
478
+ remoteExtension: string;
479
+ } | {
480
+ type: "pbx";
481
+ sipWsUrl: string;
482
+ } | {
483
+ type: "server";
484
+ } | {
485
+ type: "intercom-operator";
486
+ } | {
487
+ type: "device-gateway";
488
+ } | {
489
+ type: "presence-tracker";
490
+ } | {
491
+ type: "reader";
492
+ }))[];
493
+ relations: ({
494
+ kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy";
495
+ leftId: string;
496
+ rightId: string;
497
+ } & {
498
+ [k: string]: unknown;
499
+ } & {
500
+ provider: string;
501
+ })[];
502
+ }, {
503
+ devices: ({
504
+ tags?: string[] | undefined;
505
+ } & {
506
+ name: string;
507
+ foreignRef: string;
508
+ provider: string;
509
+ providerMetadata: {} & {
510
+ [k: string]: unknown;
511
+ };
512
+ } & ({
513
+ type: "alarm";
514
+ } | {
515
+ type: "camera";
516
+ streams: {
517
+ id: string;
518
+ displayName: string;
519
+ externalPlayerUrl: string | null;
520
+ }[];
521
+ lensType: "flat" | "fisheye";
522
+ mountPoint: "wall" | "ceiling" | "floor";
523
+ ptzCapable: boolean;
524
+ ptzPanSpeed: number;
525
+ ptzTiltSpeed: number;
526
+ ptzZoomSpeed: number;
527
+ recordingCapable: boolean;
528
+ webrtcPlaybackSource: ({
529
+ kind: string;
530
+ } & Record<string, unknown>) | null;
531
+ defaultStreamId: string;
532
+ } | {
533
+ type: "door";
534
+ } | {
535
+ type: "io-board";
536
+ inputs: string[];
537
+ outputs: string[];
538
+ } | {
539
+ type: "camera-lift";
540
+ } | {
541
+ type: "motion-sensor";
542
+ } | {
543
+ type: "panic-button";
544
+ } | {
545
+ type: "intercom-terminal";
546
+ sipUri: string;
547
+ sipUser: string;
548
+ sipPassword: string;
549
+ sipRealm: string;
550
+ remoteExtension: string;
551
+ } | {
552
+ type: "pbx";
553
+ sipWsUrl: string;
554
+ } | {
555
+ type: "server";
556
+ } | {
557
+ type: "intercom-operator";
558
+ } | {
559
+ type: "device-gateway";
560
+ } | {
561
+ type: "presence-tracker";
562
+ } | {
563
+ type: "reader";
564
+ }))[];
565
+ relations: ({
566
+ kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy";
567
+ leftId: string;
568
+ rightId: string;
569
+ } & {
570
+ [k: string]: unknown;
571
+ } & {
572
+ provider: string;
573
+ })[];
574
+ }>;
575
+ export declare const sDeviceGetChangesDto: z.ZodObject<{
576
+ added: z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
577
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
578
+ }, "strip", z.ZodTypeAny, {
579
+ tags?: string[] | undefined;
580
+ }, {
581
+ tags?: string[] | undefined;
582
+ }>, z.ZodObject<{
583
+ name: z.ZodString;
584
+ foreignRef: z.ZodString;
585
+ provider: z.ZodString;
586
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
587
+ }, "strip", z.ZodTypeAny, {
588
+ name: string;
589
+ foreignRef: string;
590
+ provider: string;
591
+ providerMetadata: {} & {
592
+ [k: string]: unknown;
593
+ };
594
+ }, {
595
+ name: string;
596
+ foreignRef: string;
597
+ provider: string;
598
+ providerMetadata: {} & {
599
+ [k: string]: unknown;
600
+ };
601
+ }>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
602
+ type: z.ZodLiteral<"alarm">;
603
+ }, "strip", z.ZodTypeAny, {
604
+ type: "alarm";
605
+ }, {
606
+ type: "alarm";
607
+ }>, z.ZodObject<{
608
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
609
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
610
+ ptzCapable: z.ZodBoolean;
611
+ ptzPanSpeed: z.ZodNumber;
612
+ ptzTiltSpeed: z.ZodNumber;
613
+ ptzZoomSpeed: z.ZodNumber;
614
+ recordingCapable: z.ZodBoolean;
615
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
616
+ kind: z.ZodString;
617
+ }, "strip", z.ZodTypeAny, {
618
+ kind: string;
619
+ }, {
620
+ kind: string;
621
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
622
+ streams: z.ZodArray<z.ZodObject<{
623
+ id: z.ZodString;
624
+ displayName: z.ZodString;
625
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
626
+ }, "strip", z.ZodTypeAny, {
627
+ id: string;
628
+ displayName: string;
629
+ externalPlayerUrl: string | null;
630
+ }, {
631
+ id: string;
632
+ displayName: string;
633
+ externalPlayerUrl: string | null;
634
+ }>, "many">;
635
+ defaultStreamId: z.ZodString;
636
+ } & {
637
+ type: z.ZodLiteral<"camera">;
638
+ }, "strip", z.ZodTypeAny, {
639
+ type: "camera";
640
+ streams: {
641
+ id: string;
642
+ displayName: string;
643
+ externalPlayerUrl: string | null;
644
+ }[];
645
+ lensType: "flat" | "fisheye";
646
+ mountPoint: "wall" | "ceiling" | "floor";
647
+ ptzCapable: boolean;
648
+ ptzPanSpeed: number;
649
+ ptzTiltSpeed: number;
650
+ ptzZoomSpeed: number;
651
+ recordingCapable: boolean;
652
+ webrtcPlaybackSource: ({
653
+ kind: string;
654
+ } & Record<string, unknown>) | null;
655
+ defaultStreamId: string;
656
+ }, {
657
+ type: "camera";
658
+ streams: {
659
+ id: string;
660
+ displayName: string;
661
+ externalPlayerUrl: string | null;
662
+ }[];
663
+ lensType: "flat" | "fisheye";
664
+ mountPoint: "wall" | "ceiling" | "floor";
665
+ ptzCapable: boolean;
666
+ ptzPanSpeed: number;
667
+ ptzTiltSpeed: number;
668
+ ptzZoomSpeed: number;
669
+ recordingCapable: boolean;
670
+ webrtcPlaybackSource: ({
671
+ kind: string;
672
+ } & Record<string, unknown>) | null;
673
+ defaultStreamId: string;
674
+ }>, z.ZodObject<{
675
+ type: z.ZodLiteral<"door">;
676
+ }, "strip", z.ZodTypeAny, {
677
+ type: "door";
678
+ }, {
679
+ type: "door";
680
+ }>, z.ZodObject<{
681
+ inputs: z.ZodArray<z.ZodString, "many">;
682
+ outputs: z.ZodArray<z.ZodString, "many">;
683
+ } & {
684
+ type: z.ZodLiteral<"io-board">;
685
+ }, "strip", z.ZodTypeAny, {
686
+ type: "io-board";
687
+ inputs: string[];
688
+ outputs: string[];
689
+ }, {
690
+ type: "io-board";
691
+ inputs: string[];
692
+ outputs: string[];
693
+ }>, z.ZodObject<{
694
+ type: z.ZodLiteral<"camera-lift">;
695
+ }, "strip", z.ZodTypeAny, {
696
+ type: "camera-lift";
697
+ }, {
698
+ type: "camera-lift";
699
+ }>, z.ZodObject<{
700
+ type: z.ZodLiteral<"motion-sensor">;
701
+ }, "strip", z.ZodTypeAny, {
702
+ type: "motion-sensor";
703
+ }, {
704
+ type: "motion-sensor";
705
+ }>, z.ZodObject<{
706
+ type: z.ZodLiteral<"panic-button">;
707
+ }, "strip", z.ZodTypeAny, {
708
+ type: "panic-button";
709
+ }, {
710
+ type: "panic-button";
711
+ }>, z.ZodObject<{
712
+ sipUri: z.ZodString;
713
+ sipUser: z.ZodString;
714
+ sipPassword: z.ZodString;
715
+ sipRealm: z.ZodString;
716
+ remoteExtension: z.ZodString;
717
+ } & {
718
+ type: z.ZodLiteral<"intercom-terminal">;
719
+ }, "strip", z.ZodTypeAny, {
720
+ type: "intercom-terminal";
721
+ sipUri: string;
722
+ sipUser: string;
723
+ sipPassword: string;
724
+ sipRealm: string;
725
+ remoteExtension: string;
726
+ }, {
727
+ type: "intercom-terminal";
728
+ sipUri: string;
729
+ sipUser: string;
730
+ sipPassword: string;
731
+ sipRealm: string;
732
+ remoteExtension: string;
733
+ }>, z.ZodObject<{
734
+ sipWsUrl: z.ZodString;
735
+ } & {
736
+ type: z.ZodLiteral<"pbx">;
737
+ }, "strip", z.ZodTypeAny, {
738
+ type: "pbx";
739
+ sipWsUrl: string;
740
+ }, {
741
+ type: "pbx";
742
+ sipWsUrl: string;
743
+ }>, z.ZodObject<{
744
+ type: z.ZodLiteral<"server">;
745
+ }, "strip", z.ZodTypeAny, {
746
+ type: "server";
747
+ }, {
748
+ type: "server";
749
+ }>, z.ZodObject<{
750
+ type: z.ZodLiteral<"intercom-operator">;
751
+ }, "strip", z.ZodTypeAny, {
752
+ type: "intercom-operator";
753
+ }, {
754
+ type: "intercom-operator";
755
+ }>, z.ZodObject<{
756
+ type: z.ZodLiteral<"device-gateway">;
757
+ }, "strip", z.ZodTypeAny, {
758
+ type: "device-gateway";
759
+ }, {
760
+ type: "device-gateway";
761
+ }>, z.ZodObject<{
762
+ type: z.ZodLiteral<"presence-tracker">;
763
+ }, "strip", z.ZodTypeAny, {
764
+ type: "presence-tracker";
765
+ }, {
766
+ type: "presence-tracker";
767
+ }>, z.ZodObject<{
768
+ type: z.ZodLiteral<"reader">;
769
+ }, "strip", z.ZodTypeAny, {
770
+ type: "reader";
771
+ }, {
772
+ type: "reader";
773
+ }>]>>, "many">;
774
+ updated: z.ZodArray<z.ZodObject<{
775
+ id: z.ZodString;
776
+ provider: z.ZodString;
777
+ foreignRef: z.ZodString;
778
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
779
+ id: z.ZodString;
780
+ provider: z.ZodString;
781
+ foreignRef: z.ZodString;
782
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
783
+ id: z.ZodString;
784
+ provider: z.ZodString;
785
+ foreignRef: z.ZodString;
786
+ }, z.ZodUnknown, "strip">>, "many">;
787
+ removed: z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
788
+ type: z.ZodLiteral<"alarm">;
789
+ }, "strip", z.ZodTypeAny, {
790
+ type: "alarm";
791
+ }, {
792
+ type: "alarm";
793
+ }>, z.ZodObject<{
794
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
795
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
796
+ ptzCapable: z.ZodBoolean;
797
+ ptzPanSpeed: z.ZodNumber;
798
+ ptzTiltSpeed: z.ZodNumber;
799
+ ptzZoomSpeed: z.ZodNumber;
800
+ recordingCapable: z.ZodBoolean;
801
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
802
+ kind: z.ZodString;
803
+ }, "strip", z.ZodTypeAny, {
804
+ kind: string;
805
+ }, {
806
+ kind: string;
807
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
808
+ streams: z.ZodArray<z.ZodObject<{
809
+ id: z.ZodString;
810
+ displayName: z.ZodString;
811
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
812
+ }, "strip", z.ZodTypeAny, {
813
+ id: string;
814
+ displayName: string;
815
+ externalPlayerUrl: string | null;
816
+ }, {
817
+ id: string;
818
+ displayName: string;
819
+ externalPlayerUrl: string | null;
820
+ }>, "many">;
821
+ defaultStreamId: z.ZodString;
822
+ } & {
823
+ type: z.ZodLiteral<"camera">;
824
+ }, "strip", z.ZodTypeAny, {
825
+ type: "camera";
826
+ streams: {
827
+ id: string;
828
+ displayName: string;
829
+ externalPlayerUrl: string | null;
830
+ }[];
831
+ lensType: "flat" | "fisheye";
832
+ mountPoint: "wall" | "ceiling" | "floor";
833
+ ptzCapable: boolean;
834
+ ptzPanSpeed: number;
835
+ ptzTiltSpeed: number;
836
+ ptzZoomSpeed: number;
837
+ recordingCapable: boolean;
838
+ webrtcPlaybackSource: ({
839
+ kind: string;
840
+ } & Record<string, unknown>) | null;
841
+ defaultStreamId: string;
842
+ }, {
843
+ type: "camera";
844
+ streams: {
845
+ id: string;
846
+ displayName: string;
847
+ externalPlayerUrl: string | null;
848
+ }[];
849
+ lensType: "flat" | "fisheye";
850
+ mountPoint: "wall" | "ceiling" | "floor";
851
+ ptzCapable: boolean;
852
+ ptzPanSpeed: number;
853
+ ptzTiltSpeed: number;
854
+ ptzZoomSpeed: number;
855
+ recordingCapable: boolean;
856
+ webrtcPlaybackSource: ({
857
+ kind: string;
858
+ } & Record<string, unknown>) | null;
859
+ defaultStreamId: string;
860
+ }>, z.ZodObject<{
861
+ type: z.ZodLiteral<"door">;
862
+ }, "strip", z.ZodTypeAny, {
863
+ type: "door";
864
+ }, {
865
+ type: "door";
866
+ }>, z.ZodObject<{
867
+ inputs: z.ZodArray<z.ZodString, "many">;
868
+ outputs: z.ZodArray<z.ZodString, "many">;
869
+ } & {
870
+ type: z.ZodLiteral<"io-board">;
871
+ }, "strip", z.ZodTypeAny, {
872
+ type: "io-board";
873
+ inputs: string[];
874
+ outputs: string[];
875
+ }, {
876
+ type: "io-board";
877
+ inputs: string[];
878
+ outputs: string[];
879
+ }>, z.ZodObject<{
880
+ type: z.ZodLiteral<"camera-lift">;
881
+ }, "strip", z.ZodTypeAny, {
882
+ type: "camera-lift";
883
+ }, {
884
+ type: "camera-lift";
885
+ }>, z.ZodObject<{
886
+ type: z.ZodLiteral<"motion-sensor">;
887
+ }, "strip", z.ZodTypeAny, {
888
+ type: "motion-sensor";
889
+ }, {
890
+ type: "motion-sensor";
891
+ }>, z.ZodObject<{
892
+ type: z.ZodLiteral<"panic-button">;
893
+ }, "strip", z.ZodTypeAny, {
894
+ type: "panic-button";
895
+ }, {
896
+ type: "panic-button";
897
+ }>, z.ZodObject<{
898
+ sipUri: z.ZodString;
899
+ sipUser: z.ZodString;
900
+ sipPassword: z.ZodString;
901
+ sipRealm: z.ZodString;
902
+ remoteExtension: z.ZodString;
903
+ } & {
904
+ type: z.ZodLiteral<"intercom-terminal">;
905
+ }, "strip", z.ZodTypeAny, {
906
+ type: "intercom-terminal";
907
+ sipUri: string;
908
+ sipUser: string;
909
+ sipPassword: string;
910
+ sipRealm: string;
911
+ remoteExtension: string;
912
+ }, {
913
+ type: "intercom-terminal";
914
+ sipUri: string;
915
+ sipUser: string;
916
+ sipPassword: string;
917
+ sipRealm: string;
918
+ remoteExtension: string;
919
+ }>, z.ZodObject<{
920
+ sipWsUrl: z.ZodString;
921
+ } & {
922
+ type: z.ZodLiteral<"pbx">;
923
+ }, "strip", z.ZodTypeAny, {
924
+ type: "pbx";
925
+ sipWsUrl: string;
926
+ }, {
927
+ type: "pbx";
928
+ sipWsUrl: string;
929
+ }>, z.ZodObject<{
930
+ type: z.ZodLiteral<"server">;
931
+ }, "strip", z.ZodTypeAny, {
932
+ type: "server";
933
+ }, {
934
+ type: "server";
935
+ }>, z.ZodObject<{
936
+ type: z.ZodLiteral<"intercom-operator">;
937
+ }, "strip", z.ZodTypeAny, {
938
+ type: "intercom-operator";
939
+ }, {
940
+ type: "intercom-operator";
941
+ }>, z.ZodObject<{
942
+ type: z.ZodLiteral<"device-gateway">;
943
+ }, "strip", z.ZodTypeAny, {
944
+ type: "device-gateway";
945
+ }, {
946
+ type: "device-gateway";
947
+ }>, z.ZodObject<{
948
+ type: z.ZodLiteral<"presence-tracker">;
949
+ }, "strip", z.ZodTypeAny, {
950
+ type: "presence-tracker";
951
+ }, {
952
+ type: "presence-tracker";
953
+ }>, z.ZodObject<{
954
+ type: z.ZodLiteral<"reader">;
955
+ }, "strip", z.ZodTypeAny, {
956
+ type: "reader";
957
+ }, {
958
+ type: "reader";
959
+ }>]>, z.ZodObject<{
960
+ id: z.ZodString;
961
+ presets: z.ZodArray<z.ZodObject<{
962
+ id: z.ZodString;
963
+ name: z.ZodString;
964
+ params: z.ZodUnknown;
965
+ isDefault: z.ZodBoolean;
966
+ assignedRef: z.ZodNullable<z.ZodString>;
967
+ createdOn: z.ZodString;
968
+ lastModifiedOn: z.ZodString;
969
+ }, "strip", z.ZodTypeAny, {
970
+ name: string;
971
+ id: string;
972
+ createdOn: string;
973
+ lastModifiedOn: string;
974
+ isDefault: boolean;
975
+ assignedRef: string | null;
976
+ params?: unknown;
977
+ }, {
978
+ name: string;
979
+ id: string;
980
+ createdOn: string;
981
+ lastModifiedOn: string;
982
+ isDefault: boolean;
983
+ assignedRef: string | null;
984
+ params?: unknown;
985
+ }>, "many">;
986
+ notes: z.ZodNullable<z.ZodString>;
987
+ tags: z.ZodArray<z.ZodString, "many">;
988
+ relations: z.ZodArray<z.ZodObject<{
989
+ id: z.ZodString;
990
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
991
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
992
+ id: z.ZodString;
993
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
994
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
995
+ id: z.ZodString;
996
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
997
+ }, z.ZodUnknown, "strip">>, "many">;
998
+ groups: z.ZodArray<z.ZodString, "many">;
999
+ createdOn: z.ZodString;
1000
+ lastModifiedOn: z.ZodString;
1001
+ }, "strip", z.ZodTypeAny, {
1002
+ groups: string[];
1003
+ id: string;
1004
+ createdOn: string;
1005
+ lastModifiedOn: string;
1006
+ presets: {
1007
+ name: string;
1008
+ id: string;
1009
+ createdOn: string;
1010
+ lastModifiedOn: string;
1011
+ isDefault: boolean;
1012
+ assignedRef: string | null;
1013
+ params?: unknown;
1014
+ }[];
1015
+ notes: string | null;
1016
+ tags: string[];
1017
+ relations: z.objectOutputType<{
1018
+ id: z.ZodString;
1019
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1020
+ }, z.ZodUnknown, "strip">[];
1021
+ }, {
1022
+ groups: string[];
1023
+ id: string;
1024
+ createdOn: string;
1025
+ lastModifiedOn: string;
1026
+ presets: {
1027
+ name: string;
1028
+ id: string;
1029
+ createdOn: string;
1030
+ lastModifiedOn: string;
1031
+ isDefault: boolean;
1032
+ assignedRef: string | null;
1033
+ params?: unknown;
1034
+ }[];
1035
+ notes: string | null;
1036
+ tags: string[];
1037
+ relations: z.objectInputType<{
1038
+ id: z.ZodString;
1039
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1040
+ }, z.ZodUnknown, "strip">[];
1041
+ }>>, z.ZodObject<{
1042
+ name: z.ZodString;
1043
+ foreignRef: z.ZodString;
1044
+ provider: z.ZodString;
1045
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
1046
+ }, "strip", z.ZodTypeAny, {
1047
+ name: string;
1048
+ foreignRef: string;
1049
+ provider: string;
1050
+ providerMetadata: {} & {
1051
+ [k: string]: unknown;
1052
+ };
1053
+ }, {
1054
+ name: string;
1055
+ foreignRef: string;
1056
+ provider: string;
1057
+ providerMetadata: {} & {
1058
+ [k: string]: unknown;
1059
+ };
1060
+ }>>, "many">;
1061
+ relations: z.ZodArray<z.ZodObject<{
1062
+ leftId: z.ZodString;
1063
+ rightId: z.ZodString;
1064
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1065
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1066
+ leftId: z.ZodString;
1067
+ rightId: z.ZodString;
1068
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1069
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1070
+ leftId: z.ZodString;
1071
+ rightId: z.ZodString;
1072
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1073
+ }, z.ZodUnknown, "strip">>, "many">;
1074
+ duplicates: z.ZodArray<z.ZodObject<{
1075
+ name: z.ZodString;
1076
+ refs: z.ZodArray<z.ZodString, "many">;
1077
+ }, "strip", z.ZodTypeAny, {
1078
+ name: string;
1079
+ refs: string[];
1080
+ }, {
1081
+ name: string;
1082
+ refs: string[];
1083
+ }>, "many">;
1084
+ }, "strip", z.ZodTypeAny, {
1085
+ removed: ((({
1086
+ type: "alarm";
1087
+ } | {
1088
+ type: "camera";
1089
+ streams: {
1090
+ id: string;
1091
+ displayName: string;
1092
+ externalPlayerUrl: string | null;
1093
+ }[];
1094
+ lensType: "flat" | "fisheye";
1095
+ mountPoint: "wall" | "ceiling" | "floor";
1096
+ ptzCapable: boolean;
1097
+ ptzPanSpeed: number;
1098
+ ptzTiltSpeed: number;
1099
+ ptzZoomSpeed: number;
1100
+ recordingCapable: boolean;
1101
+ webrtcPlaybackSource: ({
1102
+ kind: string;
1103
+ } & Record<string, unknown>) | null;
1104
+ defaultStreamId: string;
1105
+ } | {
1106
+ type: "door";
1107
+ } | {
1108
+ type: "io-board";
1109
+ inputs: string[];
1110
+ outputs: string[];
1111
+ } | {
1112
+ type: "camera-lift";
1113
+ } | {
1114
+ type: "motion-sensor";
1115
+ } | {
1116
+ type: "panic-button";
1117
+ } | {
1118
+ type: "intercom-terminal";
1119
+ sipUri: string;
1120
+ sipUser: string;
1121
+ sipPassword: string;
1122
+ sipRealm: string;
1123
+ remoteExtension: string;
1124
+ } | {
1125
+ type: "pbx";
1126
+ sipWsUrl: string;
1127
+ } | {
1128
+ type: "server";
1129
+ } | {
1130
+ type: "intercom-operator";
1131
+ } | {
1132
+ type: "device-gateway";
1133
+ } | {
1134
+ type: "presence-tracker";
1135
+ } | {
1136
+ type: "reader";
1137
+ }) & {
1138
+ groups: string[];
1139
+ id: string;
1140
+ createdOn: string;
1141
+ lastModifiedOn: string;
1142
+ presets: {
1143
+ name: string;
1144
+ id: string;
1145
+ createdOn: string;
1146
+ lastModifiedOn: string;
1147
+ isDefault: boolean;
1148
+ assignedRef: string | null;
1149
+ params?: unknown;
1150
+ }[];
1151
+ notes: string | null;
1152
+ tags: string[];
1153
+ relations: z.objectOutputType<{
1154
+ id: z.ZodString;
1155
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1156
+ }, z.ZodUnknown, "strip">[];
1157
+ }) & {
1158
+ name: string;
1159
+ foreignRef: string;
1160
+ provider: string;
1161
+ providerMetadata: {} & {
1162
+ [k: string]: unknown;
1163
+ };
1164
+ })[];
1165
+ relations: z.objectOutputType<{
1166
+ leftId: z.ZodString;
1167
+ rightId: z.ZodString;
1168
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1169
+ }, z.ZodUnknown, "strip">[];
1170
+ added: ({
1171
+ tags?: string[] | undefined;
1172
+ } & {
1173
+ name: string;
1174
+ foreignRef: string;
1175
+ provider: string;
1176
+ providerMetadata: {} & {
1177
+ [k: string]: unknown;
1178
+ };
1179
+ } & ({
1180
+ type: "alarm";
1181
+ } | {
1182
+ type: "camera";
1183
+ streams: {
1184
+ id: string;
1185
+ displayName: string;
1186
+ externalPlayerUrl: string | null;
1187
+ }[];
1188
+ lensType: "flat" | "fisheye";
1189
+ mountPoint: "wall" | "ceiling" | "floor";
1190
+ ptzCapable: boolean;
1191
+ ptzPanSpeed: number;
1192
+ ptzTiltSpeed: number;
1193
+ ptzZoomSpeed: number;
1194
+ recordingCapable: boolean;
1195
+ webrtcPlaybackSource: ({
1196
+ kind: string;
1197
+ } & Record<string, unknown>) | null;
1198
+ defaultStreamId: string;
1199
+ } | {
1200
+ type: "door";
1201
+ } | {
1202
+ type: "io-board";
1203
+ inputs: string[];
1204
+ outputs: string[];
1205
+ } | {
1206
+ type: "camera-lift";
1207
+ } | {
1208
+ type: "motion-sensor";
1209
+ } | {
1210
+ type: "panic-button";
1211
+ } | {
1212
+ type: "intercom-terminal";
1213
+ sipUri: string;
1214
+ sipUser: string;
1215
+ sipPassword: string;
1216
+ sipRealm: string;
1217
+ remoteExtension: string;
1218
+ } | {
1219
+ type: "pbx";
1220
+ sipWsUrl: string;
1221
+ } | {
1222
+ type: "server";
1223
+ } | {
1224
+ type: "intercom-operator";
1225
+ } | {
1226
+ type: "device-gateway";
1227
+ } | {
1228
+ type: "presence-tracker";
1229
+ } | {
1230
+ type: "reader";
1231
+ }))[];
1232
+ updated: z.objectOutputType<{
1233
+ id: z.ZodString;
1234
+ provider: z.ZodString;
1235
+ foreignRef: z.ZodString;
1236
+ }, z.ZodUnknown, "strip">[];
1237
+ duplicates: {
1238
+ name: string;
1239
+ refs: string[];
1240
+ }[];
1241
+ }, {
1242
+ removed: ((({
1243
+ type: "alarm";
1244
+ } | {
1245
+ type: "camera";
1246
+ streams: {
1247
+ id: string;
1248
+ displayName: string;
1249
+ externalPlayerUrl: string | null;
1250
+ }[];
1251
+ lensType: "flat" | "fisheye";
1252
+ mountPoint: "wall" | "ceiling" | "floor";
1253
+ ptzCapable: boolean;
1254
+ ptzPanSpeed: number;
1255
+ ptzTiltSpeed: number;
1256
+ ptzZoomSpeed: number;
1257
+ recordingCapable: boolean;
1258
+ webrtcPlaybackSource: ({
1259
+ kind: string;
1260
+ } & Record<string, unknown>) | null;
1261
+ defaultStreamId: string;
1262
+ } | {
1263
+ type: "door";
1264
+ } | {
1265
+ type: "io-board";
1266
+ inputs: string[];
1267
+ outputs: string[];
1268
+ } | {
1269
+ type: "camera-lift";
1270
+ } | {
1271
+ type: "motion-sensor";
1272
+ } | {
1273
+ type: "panic-button";
1274
+ } | {
1275
+ type: "intercom-terminal";
1276
+ sipUri: string;
1277
+ sipUser: string;
1278
+ sipPassword: string;
1279
+ sipRealm: string;
1280
+ remoteExtension: string;
1281
+ } | {
1282
+ type: "pbx";
1283
+ sipWsUrl: string;
1284
+ } | {
1285
+ type: "server";
1286
+ } | {
1287
+ type: "intercom-operator";
1288
+ } | {
1289
+ type: "device-gateway";
1290
+ } | {
1291
+ type: "presence-tracker";
1292
+ } | {
1293
+ type: "reader";
1294
+ }) & {
1295
+ groups: string[];
1296
+ id: string;
1297
+ createdOn: string;
1298
+ lastModifiedOn: string;
1299
+ presets: {
1300
+ name: string;
1301
+ id: string;
1302
+ createdOn: string;
1303
+ lastModifiedOn: string;
1304
+ isDefault: boolean;
1305
+ assignedRef: string | null;
1306
+ params?: unknown;
1307
+ }[];
1308
+ notes: string | null;
1309
+ tags: string[];
1310
+ relations: z.objectInputType<{
1311
+ id: z.ZodString;
1312
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1313
+ }, z.ZodUnknown, "strip">[];
1314
+ }) & {
1315
+ name: string;
1316
+ foreignRef: string;
1317
+ provider: string;
1318
+ providerMetadata: {} & {
1319
+ [k: string]: unknown;
1320
+ };
1321
+ })[];
1322
+ relations: z.objectInputType<{
1323
+ leftId: z.ZodString;
1324
+ rightId: z.ZodString;
1325
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1326
+ }, z.ZodUnknown, "strip">[];
1327
+ added: ({
1328
+ tags?: string[] | undefined;
1329
+ } & {
1330
+ name: string;
1331
+ foreignRef: string;
1332
+ provider: string;
1333
+ providerMetadata: {} & {
1334
+ [k: string]: unknown;
1335
+ };
1336
+ } & ({
1337
+ type: "alarm";
1338
+ } | {
1339
+ type: "camera";
1340
+ streams: {
1341
+ id: string;
1342
+ displayName: string;
1343
+ externalPlayerUrl: string | null;
1344
+ }[];
1345
+ lensType: "flat" | "fisheye";
1346
+ mountPoint: "wall" | "ceiling" | "floor";
1347
+ ptzCapable: boolean;
1348
+ ptzPanSpeed: number;
1349
+ ptzTiltSpeed: number;
1350
+ ptzZoomSpeed: number;
1351
+ recordingCapable: boolean;
1352
+ webrtcPlaybackSource: ({
1353
+ kind: string;
1354
+ } & Record<string, unknown>) | null;
1355
+ defaultStreamId: string;
1356
+ } | {
1357
+ type: "door";
1358
+ } | {
1359
+ type: "io-board";
1360
+ inputs: string[];
1361
+ outputs: string[];
1362
+ } | {
1363
+ type: "camera-lift";
1364
+ } | {
1365
+ type: "motion-sensor";
1366
+ } | {
1367
+ type: "panic-button";
1368
+ } | {
1369
+ type: "intercom-terminal";
1370
+ sipUri: string;
1371
+ sipUser: string;
1372
+ sipPassword: string;
1373
+ sipRealm: string;
1374
+ remoteExtension: string;
1375
+ } | {
1376
+ type: "pbx";
1377
+ sipWsUrl: string;
1378
+ } | {
1379
+ type: "server";
1380
+ } | {
1381
+ type: "intercom-operator";
1382
+ } | {
1383
+ type: "device-gateway";
1384
+ } | {
1385
+ type: "presence-tracker";
1386
+ } | {
1387
+ type: "reader";
1388
+ }))[];
1389
+ updated: z.objectInputType<{
1390
+ id: z.ZodString;
1391
+ provider: z.ZodString;
1392
+ foreignRef: z.ZodString;
1393
+ }, z.ZodUnknown, "strip">[];
1394
+ duplicates: {
1395
+ name: string;
1396
+ refs: string[];
1397
+ }[];
1398
+ }>;
1399
+ export type ImportedDevice = z.infer<typeof sImportedDevice>;
1400
+ export type DuplicateDevice = z.infer<typeof sDuplicateDevice>;
1401
+ export type DeviceGetChangesDto = {
1402
+ added: ImportedDevice[];
1403
+ updated: ({
1404
+ id: string;
1405
+ provider: string;
1406
+ foreignRef: string;
1407
+ } & Partial<ImportedDevice>)[];
1408
+ removed: DeviceDto[];
1409
+ relations: DeviceRelationDto[];
1410
+ duplicates: DuplicateDevice[];
1411
+ };
1412
+ export type DeviceDiscoveryDto = z.infer<typeof sDeviceDiscoveryDto>;