@awarevue/api-types 1.1.15 → 2.0.2

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 (42) hide show
  1. package/dist/access-control/person-agreement.d.ts +2 -2
  2. package/dist/access-control/person.d.ts +4 -4
  3. package/dist/agent-communication/protocol.d.ts +108 -308
  4. package/dist/agent-communication/protocol.js +5 -8
  5. package/dist/agent-communication/queries.d.ts +1312 -1045
  6. package/dist/agent-communication/queries.js +11 -109
  7. package/dist/api/media.d.ts +6 -14
  8. package/dist/api/media.js +1 -4
  9. package/dist/device/alarm.d.ts +24 -24
  10. package/dist/device/any-device.d.ts +537 -269
  11. package/dist/device/any-device.js +22 -4
  12. package/dist/device/camera.d.ts +97 -0
  13. package/dist/device/camera.js +24 -1
  14. package/dist/device/index.d.ts +3 -1
  15. package/dist/device/index.js +3 -1
  16. package/dist/device/intercom-terminal.d.ts +4 -4
  17. package/dist/device/nvr-analytics-server.d.ts +307 -0
  18. package/dist/device/nvr-analytics-server.js +73 -0
  19. package/dist/device/nvr-exporter.d.ts +892 -0
  20. package/dist/device/nvr-exporter.js +77 -0
  21. package/dist/device/nvr-recorder.d.ts +2981 -0
  22. package/dist/device/nvr-recorder.js +47 -0
  23. package/dist/device/presence-tracker.d.ts +8 -8
  24. package/dist/device-event.d.ts +43 -19
  25. package/dist/device-event.js +5 -0
  26. package/dist/device-import.d.ts +123 -51
  27. package/dist/device-relation.d.ts +7 -7
  28. package/dist/device-relation.js +12 -0
  29. package/dist/index.d.ts +0 -1
  30. package/dist/index.js +0 -1
  31. package/dist/messages/web-rtc-signaling.d.ts +10 -10
  32. package/dist/package.json +1 -1
  33. package/dist/permissions.d.ts +3 -3
  34. package/dist/permissions.js +9 -1
  35. package/dist/primitives.d.ts +596 -0
  36. package/dist/primitives.js +13 -1
  37. package/dist/user.d.ts +16 -16
  38. package/package.json +1 -1
  39. package/dist/device/recorder.d.ts +0 -12
  40. package/dist/device/recorder.js +0 -9
  41. package/dist/export.d.ts +0 -30
  42. package/dist/export.js +0 -14
@@ -7,3 +7,599 @@ export declare const sZoneId: z.ZodString;
7
7
  export declare const sMacroId: z.ZodString;
8
8
  export declare const sDuration: z.ZodNumber;
9
9
  export declare const sUrl: z.ZodString;
10
+ export declare const sFileResponse: z.ZodNullable<z.ZodObject<{
11
+ mimeType: z.ZodString;
12
+ data: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ data: string;
15
+ mimeType: string;
16
+ }, {
17
+ data: string;
18
+ mimeType: string;
19
+ }>>;
20
+ export declare const sAgentDeviceInfo: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
21
+ name: z.ZodString;
22
+ foreignRef: z.ZodString;
23
+ provider: z.ZodString;
24
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ name: string;
27
+ foreignRef: string;
28
+ provider: string;
29
+ providerMetadata: {} & {
30
+ [k: string]: unknown;
31
+ };
32
+ }, {
33
+ name: string;
34
+ foreignRef: string;
35
+ provider: string;
36
+ providerMetadata: {} & {
37
+ [k: string]: unknown;
38
+ };
39
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
40
+ type: z.ZodLiteral<"alarm">;
41
+ }, "strip", z.ZodTypeAny, {
42
+ type: "alarm";
43
+ }, {
44
+ type: "alarm";
45
+ }>, z.ZodObject<{
46
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
47
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
48
+ ptzCapable: z.ZodBoolean;
49
+ ptzPanSpeed: z.ZodNumber;
50
+ ptzTiltSpeed: z.ZodNumber;
51
+ ptzZoomSpeed: z.ZodNumber;
52
+ panMin: z.ZodNumber;
53
+ panMax: z.ZodNumber;
54
+ tiltMin: z.ZodNumber;
55
+ tiltMax: z.ZodNumber;
56
+ zoomMin: z.ZodNumber;
57
+ zoomMax: z.ZodNumber;
58
+ recordingCapable: z.ZodBoolean;
59
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
60
+ kind: z.ZodString;
61
+ }, "strip", z.ZodTypeAny, {
62
+ kind: string;
63
+ }, {
64
+ kind: string;
65
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
66
+ streams: z.ZodArray<z.ZodObject<{
67
+ id: z.ZodString;
68
+ displayName: z.ZodString;
69
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ id: string;
72
+ displayName: string;
73
+ externalPlayerUrl: string | null;
74
+ }, {
75
+ id: string;
76
+ displayName: string;
77
+ externalPlayerUrl: string | null;
78
+ }>, "many">;
79
+ defaultStreamId: z.ZodString;
80
+ } & {
81
+ type: z.ZodLiteral<"camera">;
82
+ }, "strip", z.ZodTypeAny, {
83
+ type: "camera";
84
+ streams: {
85
+ id: string;
86
+ displayName: string;
87
+ externalPlayerUrl: string | null;
88
+ }[];
89
+ lensType: "flat" | "fisheye";
90
+ mountPoint: "wall" | "ceiling" | "floor";
91
+ ptzCapable: boolean;
92
+ ptzPanSpeed: number;
93
+ ptzTiltSpeed: number;
94
+ ptzZoomSpeed: number;
95
+ panMin: number;
96
+ panMax: number;
97
+ tiltMin: number;
98
+ tiltMax: number;
99
+ zoomMin: number;
100
+ zoomMax: number;
101
+ recordingCapable: boolean;
102
+ webrtcPlaybackSource: ({
103
+ kind: string;
104
+ } & Record<string, unknown>) | null;
105
+ defaultStreamId: string;
106
+ }, {
107
+ type: "camera";
108
+ streams: {
109
+ id: string;
110
+ displayName: string;
111
+ externalPlayerUrl: string | null;
112
+ }[];
113
+ lensType: "flat" | "fisheye";
114
+ mountPoint: "wall" | "ceiling" | "floor";
115
+ ptzCapable: boolean;
116
+ ptzPanSpeed: number;
117
+ ptzTiltSpeed: number;
118
+ ptzZoomSpeed: number;
119
+ panMin: number;
120
+ panMax: number;
121
+ tiltMin: number;
122
+ tiltMax: number;
123
+ zoomMin: number;
124
+ zoomMax: number;
125
+ recordingCapable: boolean;
126
+ webrtcPlaybackSource: ({
127
+ kind: string;
128
+ } & Record<string, unknown>) | null;
129
+ defaultStreamId: string;
130
+ }>, z.ZodObject<{
131
+ canReportOpenState: z.ZodBoolean;
132
+ canReportLockState: z.ZodBoolean;
133
+ canControlLock: z.ZodBoolean;
134
+ canRelease: z.ZodBoolean;
135
+ } & {
136
+ type: z.ZodLiteral<"door">;
137
+ }, "strip", z.ZodTypeAny, {
138
+ type: "door";
139
+ canReportOpenState: boolean;
140
+ canReportLockState: boolean;
141
+ canControlLock: boolean;
142
+ canRelease: boolean;
143
+ }, {
144
+ type: "door";
145
+ canReportOpenState: boolean;
146
+ canReportLockState: boolean;
147
+ canControlLock: boolean;
148
+ canRelease: boolean;
149
+ }>, z.ZodObject<{
150
+ inputs: z.ZodArray<z.ZodString, "many">;
151
+ outputs: z.ZodArray<z.ZodString, "many">;
152
+ } & {
153
+ type: z.ZodLiteral<"io-board">;
154
+ }, "strip", z.ZodTypeAny, {
155
+ type: "io-board";
156
+ inputs: string[];
157
+ outputs: string[];
158
+ }, {
159
+ type: "io-board";
160
+ inputs: string[];
161
+ outputs: string[];
162
+ }>, z.ZodObject<{
163
+ type: z.ZodLiteral<"camera-lift">;
164
+ }, "strip", z.ZodTypeAny, {
165
+ type: "camera-lift";
166
+ }, {
167
+ type: "camera-lift";
168
+ }>, z.ZodObject<{
169
+ type: z.ZodLiteral<"motion-sensor">;
170
+ }, "strip", z.ZodTypeAny, {
171
+ type: "motion-sensor";
172
+ }, {
173
+ type: "motion-sensor";
174
+ }>, z.ZodObject<{
175
+ type: z.ZodLiteral<"panic-button">;
176
+ }, "strip", z.ZodTypeAny, {
177
+ type: "panic-button";
178
+ }, {
179
+ type: "panic-button";
180
+ }>, z.ZodObject<{
181
+ sipUri: z.ZodString;
182
+ sipUser: z.ZodString;
183
+ sipPassword: z.ZodString;
184
+ sipRealm: z.ZodString;
185
+ remoteExtension: z.ZodString;
186
+ } & {
187
+ type: z.ZodLiteral<"intercom-terminal">;
188
+ }, "strip", z.ZodTypeAny, {
189
+ type: "intercom-terminal";
190
+ sipUri: string;
191
+ sipUser: string;
192
+ sipPassword: string;
193
+ sipRealm: string;
194
+ remoteExtension: string;
195
+ }, {
196
+ type: "intercom-terminal";
197
+ sipUri: string;
198
+ sipUser: string;
199
+ sipPassword: string;
200
+ sipRealm: string;
201
+ remoteExtension: string;
202
+ }>, z.ZodObject<{
203
+ sipWsUrl: z.ZodString;
204
+ } & {
205
+ type: z.ZodLiteral<"pbx">;
206
+ }, "strip", z.ZodTypeAny, {
207
+ type: "pbx";
208
+ sipWsUrl: string;
209
+ }, {
210
+ type: "pbx";
211
+ sipWsUrl: string;
212
+ }>, z.ZodObject<{
213
+ type: z.ZodLiteral<"server">;
214
+ }, "strip", z.ZodTypeAny, {
215
+ type: "server";
216
+ }, {
217
+ type: "server";
218
+ }>, z.ZodObject<{
219
+ type: z.ZodLiteral<"intercom-operator">;
220
+ }, "strip", z.ZodTypeAny, {
221
+ type: "intercom-operator";
222
+ }, {
223
+ type: "intercom-operator";
224
+ }>, z.ZodObject<{
225
+ type: z.ZodLiteral<"device-gateway">;
226
+ }, "strip", z.ZodTypeAny, {
227
+ type: "device-gateway";
228
+ }, {
229
+ type: "device-gateway";
230
+ }>, z.ZodObject<{
231
+ type: z.ZodLiteral<"presence-tracker">;
232
+ }, "strip", z.ZodTypeAny, {
233
+ type: "presence-tracker";
234
+ }, {
235
+ type: "presence-tracker";
236
+ }>, z.ZodObject<{
237
+ type: z.ZodLiteral<"reader">;
238
+ }, "strip", z.ZodTypeAny, {
239
+ type: "reader";
240
+ }, {
241
+ type: "reader";
242
+ }>, z.ZodObject<{
243
+ type: z.ZodLiteral<"display">;
244
+ }, "strip", z.ZodTypeAny, {
245
+ type: "display";
246
+ }, {
247
+ type: "display";
248
+ }>, z.ZodObject<{
249
+ type: z.ZodLiteral<"nvr-recorder">;
250
+ }, "strip", z.ZodTypeAny, {
251
+ type: "nvr-recorder";
252
+ }, {
253
+ type: "nvr-recorder";
254
+ }>, z.ZodObject<{
255
+ type: z.ZodLiteral<"nvr-exporter">;
256
+ }, "strip", z.ZodTypeAny, {
257
+ type: "nvr-exporter";
258
+ }, {
259
+ type: "nvr-exporter";
260
+ }>, z.ZodObject<{
261
+ type: z.ZodLiteral<"nvr-analytics-server">;
262
+ }, "strip", z.ZodTypeAny, {
263
+ type: "nvr-analytics-server";
264
+ }, {
265
+ type: "nvr-analytics-server";
266
+ }>]>>, z.ZodObject<{
267
+ presets: z.ZodArray<z.ZodObject<{
268
+ id: z.ZodString;
269
+ name: z.ZodString;
270
+ params: z.ZodUnknown;
271
+ isDefault: z.ZodBoolean;
272
+ assignedRef: z.ZodNullable<z.ZodString>;
273
+ createdOn: z.ZodString;
274
+ lastModifiedOn: z.ZodString;
275
+ }, "strip", z.ZodTypeAny, {
276
+ name: string;
277
+ id: string;
278
+ isDefault: boolean;
279
+ assignedRef: string | null;
280
+ createdOn: string;
281
+ lastModifiedOn: string;
282
+ params?: unknown;
283
+ }, {
284
+ name: string;
285
+ id: string;
286
+ isDefault: boolean;
287
+ assignedRef: string | null;
288
+ createdOn: string;
289
+ lastModifiedOn: string;
290
+ params?: unknown;
291
+ }>, "many">;
292
+ }, "strip", z.ZodTypeAny, {
293
+ presets: {
294
+ name: string;
295
+ id: string;
296
+ isDefault: boolean;
297
+ assignedRef: string | null;
298
+ createdOn: string;
299
+ lastModifiedOn: string;
300
+ params?: unknown;
301
+ }[];
302
+ }, {
303
+ presets: {
304
+ name: string;
305
+ id: string;
306
+ isDefault: boolean;
307
+ assignedRef: string | null;
308
+ createdOn: string;
309
+ lastModifiedOn: string;
310
+ params?: unknown;
311
+ }[];
312
+ }>>;
313
+ export declare const sDeviceParam: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
314
+ name: z.ZodString;
315
+ foreignRef: z.ZodString;
316
+ provider: z.ZodString;
317
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
318
+ }, "strip", z.ZodTypeAny, {
319
+ name: string;
320
+ foreignRef: string;
321
+ provider: string;
322
+ providerMetadata: {} & {
323
+ [k: string]: unknown;
324
+ };
325
+ }, {
326
+ name: string;
327
+ foreignRef: string;
328
+ provider: string;
329
+ providerMetadata: {} & {
330
+ [k: string]: unknown;
331
+ };
332
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
333
+ type: z.ZodLiteral<"alarm">;
334
+ }, "strip", z.ZodTypeAny, {
335
+ type: "alarm";
336
+ }, {
337
+ type: "alarm";
338
+ }>, z.ZodObject<{
339
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
340
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
341
+ ptzCapable: z.ZodBoolean;
342
+ ptzPanSpeed: z.ZodNumber;
343
+ ptzTiltSpeed: z.ZodNumber;
344
+ ptzZoomSpeed: z.ZodNumber;
345
+ panMin: z.ZodNumber;
346
+ panMax: z.ZodNumber;
347
+ tiltMin: z.ZodNumber;
348
+ tiltMax: z.ZodNumber;
349
+ zoomMin: z.ZodNumber;
350
+ zoomMax: z.ZodNumber;
351
+ recordingCapable: z.ZodBoolean;
352
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
353
+ kind: z.ZodString;
354
+ }, "strip", z.ZodTypeAny, {
355
+ kind: string;
356
+ }, {
357
+ kind: string;
358
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
359
+ streams: z.ZodArray<z.ZodObject<{
360
+ id: z.ZodString;
361
+ displayName: z.ZodString;
362
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
363
+ }, "strip", z.ZodTypeAny, {
364
+ id: string;
365
+ displayName: string;
366
+ externalPlayerUrl: string | null;
367
+ }, {
368
+ id: string;
369
+ displayName: string;
370
+ externalPlayerUrl: string | null;
371
+ }>, "many">;
372
+ defaultStreamId: z.ZodString;
373
+ } & {
374
+ type: z.ZodLiteral<"camera">;
375
+ }, "strip", z.ZodTypeAny, {
376
+ type: "camera";
377
+ streams: {
378
+ id: string;
379
+ displayName: string;
380
+ externalPlayerUrl: string | null;
381
+ }[];
382
+ lensType: "flat" | "fisheye";
383
+ mountPoint: "wall" | "ceiling" | "floor";
384
+ ptzCapable: boolean;
385
+ ptzPanSpeed: number;
386
+ ptzTiltSpeed: number;
387
+ ptzZoomSpeed: number;
388
+ panMin: number;
389
+ panMax: number;
390
+ tiltMin: number;
391
+ tiltMax: number;
392
+ zoomMin: number;
393
+ zoomMax: number;
394
+ recordingCapable: boolean;
395
+ webrtcPlaybackSource: ({
396
+ kind: string;
397
+ } & Record<string, unknown>) | null;
398
+ defaultStreamId: string;
399
+ }, {
400
+ type: "camera";
401
+ streams: {
402
+ id: string;
403
+ displayName: string;
404
+ externalPlayerUrl: string | null;
405
+ }[];
406
+ lensType: "flat" | "fisheye";
407
+ mountPoint: "wall" | "ceiling" | "floor";
408
+ ptzCapable: boolean;
409
+ ptzPanSpeed: number;
410
+ ptzTiltSpeed: number;
411
+ ptzZoomSpeed: number;
412
+ panMin: number;
413
+ panMax: number;
414
+ tiltMin: number;
415
+ tiltMax: number;
416
+ zoomMin: number;
417
+ zoomMax: number;
418
+ recordingCapable: boolean;
419
+ webrtcPlaybackSource: ({
420
+ kind: string;
421
+ } & Record<string, unknown>) | null;
422
+ defaultStreamId: string;
423
+ }>, z.ZodObject<{
424
+ canReportOpenState: z.ZodBoolean;
425
+ canReportLockState: z.ZodBoolean;
426
+ canControlLock: z.ZodBoolean;
427
+ canRelease: z.ZodBoolean;
428
+ } & {
429
+ type: z.ZodLiteral<"door">;
430
+ }, "strip", z.ZodTypeAny, {
431
+ type: "door";
432
+ canReportOpenState: boolean;
433
+ canReportLockState: boolean;
434
+ canControlLock: boolean;
435
+ canRelease: boolean;
436
+ }, {
437
+ type: "door";
438
+ canReportOpenState: boolean;
439
+ canReportLockState: boolean;
440
+ canControlLock: boolean;
441
+ canRelease: boolean;
442
+ }>, z.ZodObject<{
443
+ inputs: z.ZodArray<z.ZodString, "many">;
444
+ outputs: z.ZodArray<z.ZodString, "many">;
445
+ } & {
446
+ type: z.ZodLiteral<"io-board">;
447
+ }, "strip", z.ZodTypeAny, {
448
+ type: "io-board";
449
+ inputs: string[];
450
+ outputs: string[];
451
+ }, {
452
+ type: "io-board";
453
+ inputs: string[];
454
+ outputs: string[];
455
+ }>, z.ZodObject<{
456
+ type: z.ZodLiteral<"camera-lift">;
457
+ }, "strip", z.ZodTypeAny, {
458
+ type: "camera-lift";
459
+ }, {
460
+ type: "camera-lift";
461
+ }>, z.ZodObject<{
462
+ type: z.ZodLiteral<"motion-sensor">;
463
+ }, "strip", z.ZodTypeAny, {
464
+ type: "motion-sensor";
465
+ }, {
466
+ type: "motion-sensor";
467
+ }>, z.ZodObject<{
468
+ type: z.ZodLiteral<"panic-button">;
469
+ }, "strip", z.ZodTypeAny, {
470
+ type: "panic-button";
471
+ }, {
472
+ type: "panic-button";
473
+ }>, z.ZodObject<{
474
+ sipUri: z.ZodString;
475
+ sipUser: z.ZodString;
476
+ sipPassword: z.ZodString;
477
+ sipRealm: z.ZodString;
478
+ remoteExtension: z.ZodString;
479
+ } & {
480
+ type: z.ZodLiteral<"intercom-terminal">;
481
+ }, "strip", z.ZodTypeAny, {
482
+ type: "intercom-terminal";
483
+ sipUri: string;
484
+ sipUser: string;
485
+ sipPassword: string;
486
+ sipRealm: string;
487
+ remoteExtension: string;
488
+ }, {
489
+ type: "intercom-terminal";
490
+ sipUri: string;
491
+ sipUser: string;
492
+ sipPassword: string;
493
+ sipRealm: string;
494
+ remoteExtension: string;
495
+ }>, z.ZodObject<{
496
+ sipWsUrl: z.ZodString;
497
+ } & {
498
+ type: z.ZodLiteral<"pbx">;
499
+ }, "strip", z.ZodTypeAny, {
500
+ type: "pbx";
501
+ sipWsUrl: string;
502
+ }, {
503
+ type: "pbx";
504
+ sipWsUrl: string;
505
+ }>, z.ZodObject<{
506
+ type: z.ZodLiteral<"server">;
507
+ }, "strip", z.ZodTypeAny, {
508
+ type: "server";
509
+ }, {
510
+ type: "server";
511
+ }>, z.ZodObject<{
512
+ type: z.ZodLiteral<"intercom-operator">;
513
+ }, "strip", z.ZodTypeAny, {
514
+ type: "intercom-operator";
515
+ }, {
516
+ type: "intercom-operator";
517
+ }>, z.ZodObject<{
518
+ type: z.ZodLiteral<"device-gateway">;
519
+ }, "strip", z.ZodTypeAny, {
520
+ type: "device-gateway";
521
+ }, {
522
+ type: "device-gateway";
523
+ }>, z.ZodObject<{
524
+ type: z.ZodLiteral<"presence-tracker">;
525
+ }, "strip", z.ZodTypeAny, {
526
+ type: "presence-tracker";
527
+ }, {
528
+ type: "presence-tracker";
529
+ }>, z.ZodObject<{
530
+ type: z.ZodLiteral<"reader">;
531
+ }, "strip", z.ZodTypeAny, {
532
+ type: "reader";
533
+ }, {
534
+ type: "reader";
535
+ }>, z.ZodObject<{
536
+ type: z.ZodLiteral<"display">;
537
+ }, "strip", z.ZodTypeAny, {
538
+ type: "display";
539
+ }, {
540
+ type: "display";
541
+ }>, z.ZodObject<{
542
+ type: z.ZodLiteral<"nvr-recorder">;
543
+ }, "strip", z.ZodTypeAny, {
544
+ type: "nvr-recorder";
545
+ }, {
546
+ type: "nvr-recorder";
547
+ }>, z.ZodObject<{
548
+ type: z.ZodLiteral<"nvr-exporter">;
549
+ }, "strip", z.ZodTypeAny, {
550
+ type: "nvr-exporter";
551
+ }, {
552
+ type: "nvr-exporter";
553
+ }>, z.ZodObject<{
554
+ type: z.ZodLiteral<"nvr-analytics-server">;
555
+ }, "strip", z.ZodTypeAny, {
556
+ type: "nvr-analytics-server";
557
+ }, {
558
+ type: "nvr-analytics-server";
559
+ }>]>>, z.ZodObject<{
560
+ presets: z.ZodArray<z.ZodObject<{
561
+ id: z.ZodString;
562
+ name: z.ZodString;
563
+ params: z.ZodUnknown;
564
+ isDefault: z.ZodBoolean;
565
+ assignedRef: z.ZodNullable<z.ZodString>;
566
+ createdOn: z.ZodString;
567
+ lastModifiedOn: z.ZodString;
568
+ }, "strip", z.ZodTypeAny, {
569
+ name: string;
570
+ id: string;
571
+ isDefault: boolean;
572
+ assignedRef: string | null;
573
+ createdOn: string;
574
+ lastModifiedOn: string;
575
+ params?: unknown;
576
+ }, {
577
+ name: string;
578
+ id: string;
579
+ isDefault: boolean;
580
+ assignedRef: string | null;
581
+ createdOn: string;
582
+ lastModifiedOn: string;
583
+ params?: unknown;
584
+ }>, "many">;
585
+ }, "strip", z.ZodTypeAny, {
586
+ presets: {
587
+ name: string;
588
+ id: string;
589
+ isDefault: boolean;
590
+ assignedRef: string | null;
591
+ createdOn: string;
592
+ lastModifiedOn: string;
593
+ params?: unknown;
594
+ }[];
595
+ }, {
596
+ presets: {
597
+ name: string;
598
+ id: string;
599
+ isDefault: boolean;
600
+ assignedRef: string | null;
601
+ createdOn: string;
602
+ lastModifiedOn: string;
603
+ params?: unknown;
604
+ }[];
605
+ }>>]>;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sUrl = exports.sDuration = exports.sMacroId = exports.sZoneId = exports.sPersonId = exports.sDeviceEvent = exports.sPresetId = exports.sDeviceId = void 0;
3
+ exports.sDeviceParam = exports.sAgentDeviceInfo = exports.sFileResponse = exports.sUrl = exports.sDuration = exports.sMacroId = exports.sZoneId = exports.sPersonId = exports.sDeviceEvent = exports.sPresetId = exports.sDeviceId = void 0;
4
4
  const zod_1 = require("zod");
5
+ const device_1 = require("./device");
5
6
  exports.sDeviceId = zod_1.z.string().uuid().nonempty();
6
7
  exports.sPresetId = zod_1.z.string().uuid().nonempty();
7
8
  exports.sDeviceEvent = zod_1.z.record(zod_1.z.unknown());
@@ -11,3 +12,14 @@ exports.sMacroId = zod_1.z.string().uuid().nonempty();
11
12
  // general
12
13
  exports.sDuration = zod_1.z.number().min(0).describe('Duration in milliseconds');
13
14
  exports.sUrl = zod_1.z.string().url().describe('A valid URL');
15
+ exports.sFileResponse = zod_1.z
16
+ .object({
17
+ mimeType: zod_1.z.string().nonempty(),
18
+ data: zod_1.z.string().nonempty(),
19
+ })
20
+ .nullable();
21
+ exports.sAgentDeviceInfo = device_1.sForeignDeviceInfo.and(device_1.sAnyDeviceSpecs).and(zod_1.z.object({
22
+ presets: zod_1.z.array(device_1.sPresetDto),
23
+ }));
24
+ // reusable device argument. This schema can be checked at runtime to see if it's a device ID or full device info and substituted accordingly.
25
+ exports.sDeviceParam = exports.sDeviceId.or(exports.sAgentDeviceInfo);