@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
package/dist/view.d.ts ADDED
@@ -0,0 +1,775 @@
1
+ import z from 'zod';
2
+ export declare const sLayoutArea: z.ZodObject<{
3
+ area: z.ZodString;
4
+ type: z.ZodLiteral<"layout">;
5
+ layoutId: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ type: "layout";
8
+ area: string;
9
+ layoutId: string;
10
+ }, {
11
+ type: "layout";
12
+ area: string;
13
+ layoutId: string;
14
+ }>;
15
+ export type LayoutArea = z.infer<typeof sLayoutArea>;
16
+ export declare const sLayoutSelectorArea: z.ZodObject<{
17
+ area: z.ZodString;
18
+ type: z.ZodLiteral<"layoutSelector">;
19
+ }, "strip", z.ZodTypeAny, {
20
+ type: "layoutSelector";
21
+ area: string;
22
+ }, {
23
+ type: "layoutSelector";
24
+ area: string;
25
+ }>;
26
+ export type LayoutSelectorArea = z.infer<typeof sLayoutSelectorArea>;
27
+ export declare const sDeviceArea: z.ZodObject<{
28
+ area: z.ZodString;
29
+ type: z.ZodLiteral<"device">;
30
+ deviceId: z.ZodString;
31
+ }, "strip", z.ZodTypeAny, {
32
+ type: "device";
33
+ area: string;
34
+ deviceId: string;
35
+ }, {
36
+ type: "device";
37
+ area: string;
38
+ deviceId: string;
39
+ }>;
40
+ export type DeviceArea = z.infer<typeof sDeviceArea>;
41
+ export declare const sDeviceCarouselArea: z.ZodObject<{
42
+ area: z.ZodString;
43
+ type: z.ZodLiteral<"deviceCarousel">;
44
+ deviceIds: z.ZodArray<z.ZodString, "many">;
45
+ timeIntervalMs: z.ZodNumber;
46
+ }, "strip", z.ZodTypeAny, {
47
+ type: "deviceCarousel";
48
+ area: string;
49
+ deviceIds: string[];
50
+ timeIntervalMs: number;
51
+ }, {
52
+ type: "deviceCarousel";
53
+ area: string;
54
+ deviceIds: string[];
55
+ timeIntervalMs: number;
56
+ }>;
57
+ export type DeviceCarouselArea = z.infer<typeof sDeviceCarouselArea>;
58
+ export type ViewAreaContents = LayoutArea | LayoutSelectorArea | DeviceArea | DeviceCarouselArea;
59
+ export declare const sViewAreaContents: z.ZodUnion<[z.ZodObject<{
60
+ area: z.ZodString;
61
+ type: z.ZodLiteral<"layout">;
62
+ layoutId: z.ZodString;
63
+ }, "strip", z.ZodTypeAny, {
64
+ type: "layout";
65
+ area: string;
66
+ layoutId: string;
67
+ }, {
68
+ type: "layout";
69
+ area: string;
70
+ layoutId: string;
71
+ }>, z.ZodObject<{
72
+ area: z.ZodString;
73
+ type: z.ZodLiteral<"layoutSelector">;
74
+ }, "strip", z.ZodTypeAny, {
75
+ type: "layoutSelector";
76
+ area: string;
77
+ }, {
78
+ type: "layoutSelector";
79
+ area: string;
80
+ }>, z.ZodObject<{
81
+ area: z.ZodString;
82
+ type: z.ZodLiteral<"device">;
83
+ deviceId: z.ZodString;
84
+ }, "strip", z.ZodTypeAny, {
85
+ type: "device";
86
+ area: string;
87
+ deviceId: string;
88
+ }, {
89
+ type: "device";
90
+ area: string;
91
+ deviceId: string;
92
+ }>, z.ZodObject<{
93
+ area: z.ZodString;
94
+ type: z.ZodLiteral<"deviceCarousel">;
95
+ deviceIds: z.ZodArray<z.ZodString, "many">;
96
+ timeIntervalMs: z.ZodNumber;
97
+ }, "strip", z.ZodTypeAny, {
98
+ type: "deviceCarousel";
99
+ area: string;
100
+ deviceIds: string[];
101
+ timeIntervalMs: number;
102
+ }, {
103
+ type: "deviceCarousel";
104
+ area: string;
105
+ deviceIds: string[];
106
+ timeIntervalMs: number;
107
+ }>]>;
108
+ export declare const sViewConfig: z.ZodObject<{
109
+ rows: z.ZodNumber;
110
+ columns: z.ZodNumber;
111
+ areas: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
112
+ hotspotArea: z.ZodOptional<z.ZodString>;
113
+ contents: z.ZodArray<z.ZodUnion<[z.ZodObject<{
114
+ area: z.ZodString;
115
+ type: z.ZodLiteral<"layout">;
116
+ layoutId: z.ZodString;
117
+ }, "strip", z.ZodTypeAny, {
118
+ type: "layout";
119
+ area: string;
120
+ layoutId: string;
121
+ }, {
122
+ type: "layout";
123
+ area: string;
124
+ layoutId: string;
125
+ }>, z.ZodObject<{
126
+ area: z.ZodString;
127
+ type: z.ZodLiteral<"layoutSelector">;
128
+ }, "strip", z.ZodTypeAny, {
129
+ type: "layoutSelector";
130
+ area: string;
131
+ }, {
132
+ type: "layoutSelector";
133
+ area: string;
134
+ }>, z.ZodObject<{
135
+ area: z.ZodString;
136
+ type: z.ZodLiteral<"device">;
137
+ deviceId: z.ZodString;
138
+ }, "strip", z.ZodTypeAny, {
139
+ type: "device";
140
+ area: string;
141
+ deviceId: string;
142
+ }, {
143
+ type: "device";
144
+ area: string;
145
+ deviceId: string;
146
+ }>, z.ZodObject<{
147
+ area: z.ZodString;
148
+ type: z.ZodLiteral<"deviceCarousel">;
149
+ deviceIds: z.ZodArray<z.ZodString, "many">;
150
+ timeIntervalMs: z.ZodNumber;
151
+ }, "strip", z.ZodTypeAny, {
152
+ type: "deviceCarousel";
153
+ area: string;
154
+ deviceIds: string[];
155
+ timeIntervalMs: number;
156
+ }, {
157
+ type: "deviceCarousel";
158
+ area: string;
159
+ deviceIds: string[];
160
+ timeIntervalMs: number;
161
+ }>]>, "many">;
162
+ }, "strip", z.ZodTypeAny, {
163
+ columns: number;
164
+ rows: number;
165
+ areas: string[][];
166
+ contents: ({
167
+ type: "layout";
168
+ area: string;
169
+ layoutId: string;
170
+ } | {
171
+ type: "layoutSelector";
172
+ area: string;
173
+ } | {
174
+ type: "device";
175
+ area: string;
176
+ deviceId: string;
177
+ } | {
178
+ type: "deviceCarousel";
179
+ area: string;
180
+ deviceIds: string[];
181
+ timeIntervalMs: number;
182
+ })[];
183
+ hotspotArea?: string | undefined;
184
+ }, {
185
+ columns: number;
186
+ rows: number;
187
+ areas: string[][];
188
+ contents: ({
189
+ type: "layout";
190
+ area: string;
191
+ layoutId: string;
192
+ } | {
193
+ type: "layoutSelector";
194
+ area: string;
195
+ } | {
196
+ type: "device";
197
+ area: string;
198
+ deviceId: string;
199
+ } | {
200
+ type: "deviceCarousel";
201
+ area: string;
202
+ deviceIds: string[];
203
+ timeIntervalMs: number;
204
+ })[];
205
+ hotspotArea?: string | undefined;
206
+ }>;
207
+ export declare const sAddViewRequest: z.ZodObject<{
208
+ name: z.ZodString;
209
+ order: z.ZodOptional<z.ZodNumber>;
210
+ isPublic: z.ZodBoolean;
211
+ isDefault: z.ZodOptional<z.ZodBoolean>;
212
+ config: z.ZodObject<{
213
+ rows: z.ZodNumber;
214
+ columns: z.ZodNumber;
215
+ areas: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
216
+ hotspotArea: z.ZodOptional<z.ZodString>;
217
+ contents: z.ZodArray<z.ZodUnion<[z.ZodObject<{
218
+ area: z.ZodString;
219
+ type: z.ZodLiteral<"layout">;
220
+ layoutId: z.ZodString;
221
+ }, "strip", z.ZodTypeAny, {
222
+ type: "layout";
223
+ area: string;
224
+ layoutId: string;
225
+ }, {
226
+ type: "layout";
227
+ area: string;
228
+ layoutId: string;
229
+ }>, z.ZodObject<{
230
+ area: z.ZodString;
231
+ type: z.ZodLiteral<"layoutSelector">;
232
+ }, "strip", z.ZodTypeAny, {
233
+ type: "layoutSelector";
234
+ area: string;
235
+ }, {
236
+ type: "layoutSelector";
237
+ area: string;
238
+ }>, z.ZodObject<{
239
+ area: z.ZodString;
240
+ type: z.ZodLiteral<"device">;
241
+ deviceId: z.ZodString;
242
+ }, "strip", z.ZodTypeAny, {
243
+ type: "device";
244
+ area: string;
245
+ deviceId: string;
246
+ }, {
247
+ type: "device";
248
+ area: string;
249
+ deviceId: string;
250
+ }>, z.ZodObject<{
251
+ area: z.ZodString;
252
+ type: z.ZodLiteral<"deviceCarousel">;
253
+ deviceIds: z.ZodArray<z.ZodString, "many">;
254
+ timeIntervalMs: z.ZodNumber;
255
+ }, "strip", z.ZodTypeAny, {
256
+ type: "deviceCarousel";
257
+ area: string;
258
+ deviceIds: string[];
259
+ timeIntervalMs: number;
260
+ }, {
261
+ type: "deviceCarousel";
262
+ area: string;
263
+ deviceIds: string[];
264
+ timeIntervalMs: number;
265
+ }>]>, "many">;
266
+ }, "strip", z.ZodTypeAny, {
267
+ columns: number;
268
+ rows: number;
269
+ areas: string[][];
270
+ contents: ({
271
+ type: "layout";
272
+ area: string;
273
+ layoutId: string;
274
+ } | {
275
+ type: "layoutSelector";
276
+ area: string;
277
+ } | {
278
+ type: "device";
279
+ area: string;
280
+ deviceId: string;
281
+ } | {
282
+ type: "deviceCarousel";
283
+ area: string;
284
+ deviceIds: string[];
285
+ timeIntervalMs: number;
286
+ })[];
287
+ hotspotArea?: string | undefined;
288
+ }, {
289
+ columns: number;
290
+ rows: number;
291
+ areas: string[][];
292
+ contents: ({
293
+ type: "layout";
294
+ area: string;
295
+ layoutId: string;
296
+ } | {
297
+ type: "layoutSelector";
298
+ area: string;
299
+ } | {
300
+ type: "device";
301
+ area: string;
302
+ deviceId: string;
303
+ } | {
304
+ type: "deviceCarousel";
305
+ area: string;
306
+ deviceIds: string[];
307
+ timeIntervalMs: number;
308
+ })[];
309
+ hotspotArea?: string | undefined;
310
+ }>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ name: string;
313
+ isPublic: boolean;
314
+ config: {
315
+ columns: number;
316
+ rows: number;
317
+ areas: string[][];
318
+ contents: ({
319
+ type: "layout";
320
+ area: string;
321
+ layoutId: string;
322
+ } | {
323
+ type: "layoutSelector";
324
+ area: string;
325
+ } | {
326
+ type: "device";
327
+ area: string;
328
+ deviceId: string;
329
+ } | {
330
+ type: "deviceCarousel";
331
+ area: string;
332
+ deviceIds: string[];
333
+ timeIntervalMs: number;
334
+ })[];
335
+ hotspotArea?: string | undefined;
336
+ };
337
+ order?: number | undefined;
338
+ isDefault?: boolean | undefined;
339
+ }, {
340
+ name: string;
341
+ isPublic: boolean;
342
+ config: {
343
+ columns: number;
344
+ rows: number;
345
+ areas: string[][];
346
+ contents: ({
347
+ type: "layout";
348
+ area: string;
349
+ layoutId: string;
350
+ } | {
351
+ type: "layoutSelector";
352
+ area: string;
353
+ } | {
354
+ type: "device";
355
+ area: string;
356
+ deviceId: string;
357
+ } | {
358
+ type: "deviceCarousel";
359
+ area: string;
360
+ deviceIds: string[];
361
+ timeIntervalMs: number;
362
+ })[];
363
+ hotspotArea?: string | undefined;
364
+ };
365
+ order?: number | undefined;
366
+ isDefault?: boolean | undefined;
367
+ }>;
368
+ export declare const sUpdateViewRequest: z.ZodObject<{
369
+ name: z.ZodOptional<z.ZodString>;
370
+ order: z.ZodOptional<z.ZodNumber>;
371
+ isPublic: z.ZodOptional<z.ZodBoolean>;
372
+ isDefault: z.ZodOptional<z.ZodBoolean>;
373
+ config: z.ZodOptional<z.ZodObject<{
374
+ rows: z.ZodNumber;
375
+ columns: z.ZodNumber;
376
+ areas: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
377
+ hotspotArea: z.ZodOptional<z.ZodString>;
378
+ contents: z.ZodArray<z.ZodUnion<[z.ZodObject<{
379
+ area: z.ZodString;
380
+ type: z.ZodLiteral<"layout">;
381
+ layoutId: z.ZodString;
382
+ }, "strip", z.ZodTypeAny, {
383
+ type: "layout";
384
+ area: string;
385
+ layoutId: string;
386
+ }, {
387
+ type: "layout";
388
+ area: string;
389
+ layoutId: string;
390
+ }>, z.ZodObject<{
391
+ area: z.ZodString;
392
+ type: z.ZodLiteral<"layoutSelector">;
393
+ }, "strip", z.ZodTypeAny, {
394
+ type: "layoutSelector";
395
+ area: string;
396
+ }, {
397
+ type: "layoutSelector";
398
+ area: string;
399
+ }>, z.ZodObject<{
400
+ area: z.ZodString;
401
+ type: z.ZodLiteral<"device">;
402
+ deviceId: z.ZodString;
403
+ }, "strip", z.ZodTypeAny, {
404
+ type: "device";
405
+ area: string;
406
+ deviceId: string;
407
+ }, {
408
+ type: "device";
409
+ area: string;
410
+ deviceId: string;
411
+ }>, z.ZodObject<{
412
+ area: z.ZodString;
413
+ type: z.ZodLiteral<"deviceCarousel">;
414
+ deviceIds: z.ZodArray<z.ZodString, "many">;
415
+ timeIntervalMs: z.ZodNumber;
416
+ }, "strip", z.ZodTypeAny, {
417
+ type: "deviceCarousel";
418
+ area: string;
419
+ deviceIds: string[];
420
+ timeIntervalMs: number;
421
+ }, {
422
+ type: "deviceCarousel";
423
+ area: string;
424
+ deviceIds: string[];
425
+ timeIntervalMs: number;
426
+ }>]>, "many">;
427
+ }, "strip", z.ZodTypeAny, {
428
+ columns: number;
429
+ rows: number;
430
+ areas: string[][];
431
+ contents: ({
432
+ type: "layout";
433
+ area: string;
434
+ layoutId: string;
435
+ } | {
436
+ type: "layoutSelector";
437
+ area: string;
438
+ } | {
439
+ type: "device";
440
+ area: string;
441
+ deviceId: string;
442
+ } | {
443
+ type: "deviceCarousel";
444
+ area: string;
445
+ deviceIds: string[];
446
+ timeIntervalMs: number;
447
+ })[];
448
+ hotspotArea?: string | undefined;
449
+ }, {
450
+ columns: number;
451
+ rows: number;
452
+ areas: string[][];
453
+ contents: ({
454
+ type: "layout";
455
+ area: string;
456
+ layoutId: string;
457
+ } | {
458
+ type: "layoutSelector";
459
+ area: string;
460
+ } | {
461
+ type: "device";
462
+ area: string;
463
+ deviceId: string;
464
+ } | {
465
+ type: "deviceCarousel";
466
+ area: string;
467
+ deviceIds: string[];
468
+ timeIntervalMs: number;
469
+ })[];
470
+ hotspotArea?: string | undefined;
471
+ }>>;
472
+ }, "strip", z.ZodTypeAny, {
473
+ name?: string | undefined;
474
+ order?: number | undefined;
475
+ isDefault?: boolean | undefined;
476
+ isPublic?: boolean | undefined;
477
+ config?: {
478
+ columns: number;
479
+ rows: number;
480
+ areas: string[][];
481
+ contents: ({
482
+ type: "layout";
483
+ area: string;
484
+ layoutId: string;
485
+ } | {
486
+ type: "layoutSelector";
487
+ area: string;
488
+ } | {
489
+ type: "device";
490
+ area: string;
491
+ deviceId: string;
492
+ } | {
493
+ type: "deviceCarousel";
494
+ area: string;
495
+ deviceIds: string[];
496
+ timeIntervalMs: number;
497
+ })[];
498
+ hotspotArea?: string | undefined;
499
+ } | undefined;
500
+ }, {
501
+ name?: string | undefined;
502
+ order?: number | undefined;
503
+ isDefault?: boolean | undefined;
504
+ isPublic?: boolean | undefined;
505
+ config?: {
506
+ columns: number;
507
+ rows: number;
508
+ areas: string[][];
509
+ contents: ({
510
+ type: "layout";
511
+ area: string;
512
+ layoutId: string;
513
+ } | {
514
+ type: "layoutSelector";
515
+ area: string;
516
+ } | {
517
+ type: "device";
518
+ area: string;
519
+ deviceId: string;
520
+ } | {
521
+ type: "deviceCarousel";
522
+ area: string;
523
+ deviceIds: string[];
524
+ timeIntervalMs: number;
525
+ })[];
526
+ hotspotArea?: string | undefined;
527
+ } | undefined;
528
+ }>;
529
+ export type ViewConfig = z.infer<typeof sViewConfig>;
530
+ export declare const sViewInfo: z.ZodIntersection<z.ZodObject<{
531
+ name: z.ZodString;
532
+ order: z.ZodNumber;
533
+ isPublic: z.ZodBoolean;
534
+ isDefault: z.ZodBoolean;
535
+ }, "strip", z.ZodTypeAny, {
536
+ name: string;
537
+ order: number;
538
+ isDefault: boolean;
539
+ isPublic: boolean;
540
+ }, {
541
+ name: string;
542
+ order: number;
543
+ isDefault: boolean;
544
+ isPublic: boolean;
545
+ }>, z.ZodObject<{
546
+ rows: z.ZodNumber;
547
+ columns: z.ZodNumber;
548
+ areas: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
549
+ hotspotArea: z.ZodOptional<z.ZodString>;
550
+ contents: z.ZodArray<z.ZodUnion<[z.ZodObject<{
551
+ area: z.ZodString;
552
+ type: z.ZodLiteral<"layout">;
553
+ layoutId: z.ZodString;
554
+ }, "strip", z.ZodTypeAny, {
555
+ type: "layout";
556
+ area: string;
557
+ layoutId: string;
558
+ }, {
559
+ type: "layout";
560
+ area: string;
561
+ layoutId: string;
562
+ }>, z.ZodObject<{
563
+ area: z.ZodString;
564
+ type: z.ZodLiteral<"layoutSelector">;
565
+ }, "strip", z.ZodTypeAny, {
566
+ type: "layoutSelector";
567
+ area: string;
568
+ }, {
569
+ type: "layoutSelector";
570
+ area: string;
571
+ }>, z.ZodObject<{
572
+ area: z.ZodString;
573
+ type: z.ZodLiteral<"device">;
574
+ deviceId: z.ZodString;
575
+ }, "strip", z.ZodTypeAny, {
576
+ type: "device";
577
+ area: string;
578
+ deviceId: string;
579
+ }, {
580
+ type: "device";
581
+ area: string;
582
+ deviceId: string;
583
+ }>, z.ZodObject<{
584
+ area: z.ZodString;
585
+ type: z.ZodLiteral<"deviceCarousel">;
586
+ deviceIds: z.ZodArray<z.ZodString, "many">;
587
+ timeIntervalMs: z.ZodNumber;
588
+ }, "strip", z.ZodTypeAny, {
589
+ type: "deviceCarousel";
590
+ area: string;
591
+ deviceIds: string[];
592
+ timeIntervalMs: number;
593
+ }, {
594
+ type: "deviceCarousel";
595
+ area: string;
596
+ deviceIds: string[];
597
+ timeIntervalMs: number;
598
+ }>]>, "many">;
599
+ }, "strip", z.ZodTypeAny, {
600
+ columns: number;
601
+ rows: number;
602
+ areas: string[][];
603
+ contents: ({
604
+ type: "layout";
605
+ area: string;
606
+ layoutId: string;
607
+ } | {
608
+ type: "layoutSelector";
609
+ area: string;
610
+ } | {
611
+ type: "device";
612
+ area: string;
613
+ deviceId: string;
614
+ } | {
615
+ type: "deviceCarousel";
616
+ area: string;
617
+ deviceIds: string[];
618
+ timeIntervalMs: number;
619
+ })[];
620
+ hotspotArea?: string | undefined;
621
+ }, {
622
+ columns: number;
623
+ rows: number;
624
+ areas: string[][];
625
+ contents: ({
626
+ type: "layout";
627
+ area: string;
628
+ layoutId: string;
629
+ } | {
630
+ type: "layoutSelector";
631
+ area: string;
632
+ } | {
633
+ type: "device";
634
+ area: string;
635
+ deviceId: string;
636
+ } | {
637
+ type: "deviceCarousel";
638
+ area: string;
639
+ deviceIds: string[];
640
+ timeIntervalMs: number;
641
+ })[];
642
+ hotspotArea?: string | undefined;
643
+ }>>;
644
+ export type ViewInfo = z.infer<typeof sViewInfo>;
645
+ export declare const sViewDto: z.ZodIntersection<z.ZodObject<{
646
+ id: z.ZodString;
647
+ name: z.ZodString;
648
+ order: z.ZodNumber;
649
+ isPublic: z.ZodBoolean;
650
+ isDefault: z.ZodBoolean;
651
+ createdBy: z.ZodString;
652
+ createdOn: z.ZodString;
653
+ lastModifiedOn: z.ZodString;
654
+ }, "strip", z.ZodTypeAny, {
655
+ name: string;
656
+ id: string;
657
+ order: number;
658
+ createdOn: string;
659
+ lastModifiedOn: string;
660
+ isDefault: boolean;
661
+ createdBy: string;
662
+ isPublic: boolean;
663
+ }, {
664
+ name: string;
665
+ id: string;
666
+ order: number;
667
+ createdOn: string;
668
+ lastModifiedOn: string;
669
+ isDefault: boolean;
670
+ createdBy: string;
671
+ isPublic: boolean;
672
+ }>, z.ZodObject<{
673
+ rows: z.ZodNumber;
674
+ columns: z.ZodNumber;
675
+ areas: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
676
+ hotspotArea: z.ZodOptional<z.ZodString>;
677
+ contents: z.ZodArray<z.ZodUnion<[z.ZodObject<{
678
+ area: z.ZodString;
679
+ type: z.ZodLiteral<"layout">;
680
+ layoutId: z.ZodString;
681
+ }, "strip", z.ZodTypeAny, {
682
+ type: "layout";
683
+ area: string;
684
+ layoutId: string;
685
+ }, {
686
+ type: "layout";
687
+ area: string;
688
+ layoutId: string;
689
+ }>, z.ZodObject<{
690
+ area: z.ZodString;
691
+ type: z.ZodLiteral<"layoutSelector">;
692
+ }, "strip", z.ZodTypeAny, {
693
+ type: "layoutSelector";
694
+ area: string;
695
+ }, {
696
+ type: "layoutSelector";
697
+ area: string;
698
+ }>, z.ZodObject<{
699
+ area: z.ZodString;
700
+ type: z.ZodLiteral<"device">;
701
+ deviceId: z.ZodString;
702
+ }, "strip", z.ZodTypeAny, {
703
+ type: "device";
704
+ area: string;
705
+ deviceId: string;
706
+ }, {
707
+ type: "device";
708
+ area: string;
709
+ deviceId: string;
710
+ }>, z.ZodObject<{
711
+ area: z.ZodString;
712
+ type: z.ZodLiteral<"deviceCarousel">;
713
+ deviceIds: z.ZodArray<z.ZodString, "many">;
714
+ timeIntervalMs: z.ZodNumber;
715
+ }, "strip", z.ZodTypeAny, {
716
+ type: "deviceCarousel";
717
+ area: string;
718
+ deviceIds: string[];
719
+ timeIntervalMs: number;
720
+ }, {
721
+ type: "deviceCarousel";
722
+ area: string;
723
+ deviceIds: string[];
724
+ timeIntervalMs: number;
725
+ }>]>, "many">;
726
+ }, "strip", z.ZodTypeAny, {
727
+ columns: number;
728
+ rows: number;
729
+ areas: string[][];
730
+ contents: ({
731
+ type: "layout";
732
+ area: string;
733
+ layoutId: string;
734
+ } | {
735
+ type: "layoutSelector";
736
+ area: string;
737
+ } | {
738
+ type: "device";
739
+ area: string;
740
+ deviceId: string;
741
+ } | {
742
+ type: "deviceCarousel";
743
+ area: string;
744
+ deviceIds: string[];
745
+ timeIntervalMs: number;
746
+ })[];
747
+ hotspotArea?: string | undefined;
748
+ }, {
749
+ columns: number;
750
+ rows: number;
751
+ areas: string[][];
752
+ contents: ({
753
+ type: "layout";
754
+ area: string;
755
+ layoutId: string;
756
+ } | {
757
+ type: "layoutSelector";
758
+ area: string;
759
+ } | {
760
+ type: "device";
761
+ area: string;
762
+ deviceId: string;
763
+ } | {
764
+ type: "deviceCarousel";
765
+ area: string;
766
+ deviceIds: string[];
767
+ timeIntervalMs: number;
768
+ })[];
769
+ hotspotArea?: string | undefined;
770
+ }>>;
771
+ export type ViewDto = z.infer<typeof sViewDto>;
772
+ export type AddViewRequest = z.infer<typeof sAddViewRequest>;
773
+ export type UpdateViewRequest = {
774
+ id: string;
775
+ } & z.infer<typeof sUpdateViewRequest>;