@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
@@ -236,11 +236,23 @@ export declare const sImportedDevice: z.ZodIntersection<z.ZodIntersection<z.ZodO
236
236
  }, {
237
237
  type: "display";
238
238
  }>, z.ZodObject<{
239
- type: z.ZodLiteral<"recorder">;
239
+ type: z.ZodLiteral<"nvr-recorder">;
240
240
  }, "strip", z.ZodTypeAny, {
241
- type: "recorder";
241
+ type: "nvr-recorder";
242
242
  }, {
243
- type: "recorder";
243
+ type: "nvr-recorder";
244
+ }>, z.ZodObject<{
245
+ type: z.ZodLiteral<"nvr-exporter">;
246
+ }, "strip", z.ZodTypeAny, {
247
+ type: "nvr-exporter";
248
+ }, {
249
+ type: "nvr-exporter";
250
+ }>, z.ZodObject<{
251
+ type: z.ZodLiteral<"nvr-analytics-server">;
252
+ }, "strip", z.ZodTypeAny, {
253
+ type: "nvr-analytics-server";
254
+ }, {
255
+ type: "nvr-analytics-server";
244
256
  }>]>>;
245
257
  export declare const sDuplicateDevice: z.ZodObject<{
246
258
  name: z.ZodString;
@@ -488,24 +500,36 @@ export declare const sDeviceDiscoveryDto: z.ZodObject<{
488
500
  }, {
489
501
  type: "display";
490
502
  }>, z.ZodObject<{
491
- type: z.ZodLiteral<"recorder">;
503
+ type: z.ZodLiteral<"nvr-recorder">;
504
+ }, "strip", z.ZodTypeAny, {
505
+ type: "nvr-recorder";
506
+ }, {
507
+ type: "nvr-recorder";
508
+ }>, z.ZodObject<{
509
+ type: z.ZodLiteral<"nvr-exporter">;
492
510
  }, "strip", z.ZodTypeAny, {
493
- type: "recorder";
511
+ type: "nvr-exporter";
494
512
  }, {
495
- type: "recorder";
513
+ type: "nvr-exporter";
514
+ }>, z.ZodObject<{
515
+ type: z.ZodLiteral<"nvr-analytics-server">;
516
+ }, "strip", z.ZodTypeAny, {
517
+ type: "nvr-analytics-server";
518
+ }, {
519
+ type: "nvr-analytics-server";
496
520
  }>]>>, "many">;
497
521
  relations: z.ZodArray<z.ZodIntersection<z.ZodObject<{
498
522
  leftId: z.ZodString;
499
523
  rightId: z.ZodString;
500
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
524
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
501
525
  }, "strip", z.ZodUnknown, z.objectOutputType<{
502
526
  leftId: z.ZodString;
503
527
  rightId: z.ZodString;
504
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
528
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
505
529
  }, z.ZodUnknown, "strip">, z.objectInputType<{
506
530
  leftId: z.ZodString;
507
531
  rightId: z.ZodString;
508
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
532
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
509
533
  }, z.ZodUnknown, "strip">>, z.ZodObject<{
510
534
  provider: z.ZodString;
511
535
  }, "strip", z.ZodTypeAny, {
@@ -588,10 +612,14 @@ export declare const sDeviceDiscoveryDto: z.ZodObject<{
588
612
  } | {
589
613
  type: "display";
590
614
  } | {
591
- type: "recorder";
615
+ type: "nvr-recorder";
616
+ } | {
617
+ type: "nvr-exporter";
618
+ } | {
619
+ type: "nvr-analytics-server";
592
620
  }))[];
593
621
  relations: ({
594
- kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy";
622
+ kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy" | "records" | "isRecordedBy" | "reads" | "isReadBy";
595
623
  leftId: string;
596
624
  rightId: string;
597
625
  } & {
@@ -674,10 +702,14 @@ export declare const sDeviceDiscoveryDto: z.ZodObject<{
674
702
  } | {
675
703
  type: "display";
676
704
  } | {
677
- type: "recorder";
705
+ type: "nvr-recorder";
706
+ } | {
707
+ type: "nvr-exporter";
708
+ } | {
709
+ type: "nvr-analytics-server";
678
710
  }))[];
679
711
  relations: ({
680
- kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy";
712
+ kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy" | "records" | "isRecordedBy" | "reads" | "isReadBy";
681
713
  leftId: string;
682
714
  rightId: string;
683
715
  } & {
@@ -922,11 +954,23 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
922
954
  }, {
923
955
  type: "display";
924
956
  }>, z.ZodObject<{
925
- type: z.ZodLiteral<"recorder">;
957
+ type: z.ZodLiteral<"nvr-recorder">;
958
+ }, "strip", z.ZodTypeAny, {
959
+ type: "nvr-recorder";
960
+ }, {
961
+ type: "nvr-recorder";
962
+ }>, z.ZodObject<{
963
+ type: z.ZodLiteral<"nvr-exporter">;
964
+ }, "strip", z.ZodTypeAny, {
965
+ type: "nvr-exporter";
966
+ }, {
967
+ type: "nvr-exporter";
968
+ }>, z.ZodObject<{
969
+ type: z.ZodLiteral<"nvr-analytics-server">;
926
970
  }, "strip", z.ZodTypeAny, {
927
- type: "recorder";
971
+ type: "nvr-analytics-server";
928
972
  }, {
929
- type: "recorder";
973
+ type: "nvr-analytics-server";
930
974
  }>]>>, "many">;
931
975
  updated: z.ZodArray<z.ZodObject<{
932
976
  id: z.ZodString;
@@ -1151,11 +1195,23 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1151
1195
  }, {
1152
1196
  type: "display";
1153
1197
  }>, z.ZodObject<{
1154
- type: z.ZodLiteral<"recorder">;
1198
+ type: z.ZodLiteral<"nvr-recorder">;
1155
1199
  }, "strip", z.ZodTypeAny, {
1156
- type: "recorder";
1200
+ type: "nvr-recorder";
1157
1201
  }, {
1158
- type: "recorder";
1202
+ type: "nvr-recorder";
1203
+ }>, z.ZodObject<{
1204
+ type: z.ZodLiteral<"nvr-exporter">;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ type: "nvr-exporter";
1207
+ }, {
1208
+ type: "nvr-exporter";
1209
+ }>, z.ZodObject<{
1210
+ type: z.ZodLiteral<"nvr-analytics-server">;
1211
+ }, "strip", z.ZodTypeAny, {
1212
+ type: "nvr-analytics-server";
1213
+ }, {
1214
+ type: "nvr-analytics-server";
1159
1215
  }>]>, z.ZodObject<{
1160
1216
  id: z.ZodString;
1161
1217
  presets: z.ZodArray<z.ZodObject<{
@@ -1188,13 +1244,13 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1188
1244
  tags: z.ZodArray<z.ZodString, "many">;
1189
1245
  relations: z.ZodArray<z.ZodObject<{
1190
1246
  id: z.ZodString;
1191
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1247
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
1192
1248
  }, "strip", z.ZodUnknown, z.objectOutputType<{
1193
1249
  id: z.ZodString;
1194
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1250
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
1195
1251
  }, z.ZodUnknown, "strip">, z.objectInputType<{
1196
1252
  id: z.ZodString;
1197
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1253
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
1198
1254
  }, z.ZodUnknown, "strip">>, "many">;
1199
1255
  groups: z.ZodArray<z.ZodString, "many">;
1200
1256
  enabled: z.ZodBoolean;
@@ -1205,6 +1261,11 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1205
1261
  id: string;
1206
1262
  createdOn: string;
1207
1263
  lastModifiedOn: string;
1264
+ tags: string[];
1265
+ relations: z.objectOutputType<{
1266
+ id: z.ZodString;
1267
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
1268
+ }, z.ZodUnknown, "strip">[];
1208
1269
  presets: {
1209
1270
  name: string;
1210
1271
  id: string;
@@ -1216,17 +1277,17 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1216
1277
  }[];
1217
1278
  providerAssignedName: string;
1218
1279
  notes: string | null;
1219
- tags: string[];
1220
- relations: z.objectOutputType<{
1221
- id: z.ZodString;
1222
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1223
- }, z.ZodUnknown, "strip">[];
1224
1280
  enabled: boolean;
1225
1281
  }, {
1226
1282
  groups: string[];
1227
1283
  id: string;
1228
1284
  createdOn: string;
1229
1285
  lastModifiedOn: string;
1286
+ tags: string[];
1287
+ relations: z.objectInputType<{
1288
+ id: z.ZodString;
1289
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
1290
+ }, z.ZodUnknown, "strip">[];
1230
1291
  presets: {
1231
1292
  name: string;
1232
1293
  id: string;
@@ -1238,11 +1299,6 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1238
1299
  }[];
1239
1300
  providerAssignedName: string;
1240
1301
  notes: string | null;
1241
- tags: string[];
1242
- relations: z.objectInputType<{
1243
- id: z.ZodString;
1244
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1245
- }, z.ZodUnknown, "strip">[];
1246
1302
  enabled: boolean;
1247
1303
  }>>, z.ZodObject<{
1248
1304
  name: z.ZodString;
@@ -1267,15 +1323,15 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1267
1323
  relations: z.ZodArray<z.ZodObject<{
1268
1324
  leftId: z.ZodString;
1269
1325
  rightId: z.ZodString;
1270
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1326
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
1271
1327
  }, "strip", z.ZodUnknown, z.objectOutputType<{
1272
1328
  leftId: z.ZodString;
1273
1329
  rightId: z.ZodString;
1274
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1330
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
1275
1331
  }, z.ZodUnknown, "strip">, z.objectInputType<{
1276
1332
  leftId: z.ZodString;
1277
1333
  rightId: z.ZodString;
1278
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1334
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
1279
1335
  }, z.ZodUnknown, "strip">>, "many">;
1280
1336
  duplicates: z.ZodArray<z.ZodObject<{
1281
1337
  name: z.ZodString;
@@ -1353,12 +1409,21 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1353
1409
  } | {
1354
1410
  type: "display";
1355
1411
  } | {
1356
- type: "recorder";
1412
+ type: "nvr-recorder";
1413
+ } | {
1414
+ type: "nvr-exporter";
1415
+ } | {
1416
+ type: "nvr-analytics-server";
1357
1417
  }) & {
1358
1418
  groups: string[];
1359
1419
  id: string;
1360
1420
  createdOn: string;
1361
1421
  lastModifiedOn: string;
1422
+ tags: string[];
1423
+ relations: z.objectOutputType<{
1424
+ id: z.ZodString;
1425
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
1426
+ }, z.ZodUnknown, "strip">[];
1362
1427
  presets: {
1363
1428
  name: string;
1364
1429
  id: string;
@@ -1370,11 +1435,6 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1370
1435
  }[];
1371
1436
  providerAssignedName: string;
1372
1437
  notes: string | null;
1373
- tags: string[];
1374
- relations: z.objectOutputType<{
1375
- id: z.ZodString;
1376
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1377
- }, z.ZodUnknown, "strip">[];
1378
1438
  enabled: boolean;
1379
1439
  }) & {
1380
1440
  name: string;
@@ -1387,7 +1447,7 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1387
1447
  relations: z.objectOutputType<{
1388
1448
  leftId: z.ZodString;
1389
1449
  rightId: z.ZodString;
1390
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1450
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
1391
1451
  }, z.ZodUnknown, "strip">[];
1392
1452
  added: ({
1393
1453
  tags?: string[] | undefined;
@@ -1463,7 +1523,11 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1463
1523
  } | {
1464
1524
  type: "display";
1465
1525
  } | {
1466
- type: "recorder";
1526
+ type: "nvr-recorder";
1527
+ } | {
1528
+ type: "nvr-exporter";
1529
+ } | {
1530
+ type: "nvr-analytics-server";
1467
1531
  }))[];
1468
1532
  updated: z.objectOutputType<{
1469
1533
  id: z.ZodString;
@@ -1540,12 +1604,21 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1540
1604
  } | {
1541
1605
  type: "display";
1542
1606
  } | {
1543
- type: "recorder";
1607
+ type: "nvr-recorder";
1608
+ } | {
1609
+ type: "nvr-exporter";
1610
+ } | {
1611
+ type: "nvr-analytics-server";
1544
1612
  }) & {
1545
1613
  groups: string[];
1546
1614
  id: string;
1547
1615
  createdOn: string;
1548
1616
  lastModifiedOn: string;
1617
+ tags: string[];
1618
+ relations: z.objectInputType<{
1619
+ id: z.ZodString;
1620
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
1621
+ }, z.ZodUnknown, "strip">[];
1549
1622
  presets: {
1550
1623
  name: string;
1551
1624
  id: string;
@@ -1557,11 +1630,6 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1557
1630
  }[];
1558
1631
  providerAssignedName: string;
1559
1632
  notes: string | null;
1560
- tags: string[];
1561
- relations: z.objectInputType<{
1562
- id: z.ZodString;
1563
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1564
- }, z.ZodUnknown, "strip">[];
1565
1633
  enabled: boolean;
1566
1634
  }) & {
1567
1635
  name: string;
@@ -1574,7 +1642,7 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1574
1642
  relations: z.objectInputType<{
1575
1643
  leftId: z.ZodString;
1576
1644
  rightId: z.ZodString;
1577
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
1645
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
1578
1646
  }, z.ZodUnknown, "strip">[];
1579
1647
  added: ({
1580
1648
  tags?: string[] | undefined;
@@ -1650,7 +1718,11 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1650
1718
  } | {
1651
1719
  type: "display";
1652
1720
  } | {
1653
- type: "recorder";
1721
+ type: "nvr-recorder";
1722
+ } | {
1723
+ type: "nvr-exporter";
1724
+ } | {
1725
+ type: "nvr-analytics-server";
1654
1726
  }))[];
1655
1727
  updated: z.objectInputType<{
1656
1728
  id: z.ZodString;
@@ -1,27 +1,27 @@
1
1
  import { z } from 'zod';
2
- export declare const sDeviceRelationKind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
2
+ export declare const sDeviceRelationKind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
3
3
  export declare const sDeviceRelationDto: z.ZodObject<{
4
4
  leftId: z.ZodString;
5
5
  rightId: z.ZodString;
6
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
6
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
7
7
  }, "strip", z.ZodUnknown, z.objectOutputType<{
8
8
  leftId: z.ZodString;
9
9
  rightId: z.ZodString;
10
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
10
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
11
11
  }, z.ZodUnknown, "strip">, z.objectInputType<{
12
12
  leftId: z.ZodString;
13
13
  rightId: z.ZodString;
14
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
14
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
15
15
  }, z.ZodUnknown, "strip">>;
16
16
  export declare const sDeviceRelationSide: z.ZodObject<{
17
17
  id: z.ZodString;
18
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
18
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
19
19
  }, "strip", z.ZodUnknown, z.objectOutputType<{
20
20
  id: z.ZodString;
21
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
21
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
22
22
  }, z.ZodUnknown, "strip">, z.objectInputType<{
23
23
  id: z.ZodString;
24
- kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy"]>;
24
+ kind: z.ZodEnum<["attachedTo", "parent", "child", "holds", "isHeldBy", "observes", "isObservedBy", "sendsInputTo", "receivesInputFrom", "sendsOutputTo", "receivesOutputFrom", "unlocks", "isUnlockedBy", "controls", "isControlledBy", "records", "isRecordedBy", "reads", "isReadBy"]>;
25
25
  }, z.ZodUnknown, "strip">>;
26
26
  export type DeviceRelationKind = z.infer<typeof sDeviceRelationKind>;
27
27
  export declare const relationKinds: Record<DeviceRelationKind, DeviceRelationKind>;
@@ -18,6 +18,10 @@ exports.sDeviceRelationKind = zod_1.z.enum([
18
18
  'isUnlockedBy',
19
19
  'controls',
20
20
  'isControlledBy',
21
+ 'records',
22
+ 'isRecordedBy',
23
+ 'reads',
24
+ 'isReadBy',
21
25
  ]);
22
26
  exports.sDeviceRelationDto = zod_1.z
23
27
  .object({
@@ -48,6 +52,10 @@ exports.relationKinds = {
48
52
  isUnlockedBy: 'isUnlockedBy',
49
53
  controls: 'controls',
50
54
  isControlledBy: 'isControlledBy',
55
+ records: 'records',
56
+ isRecordedBy: 'isRecordedBy',
57
+ reads: 'reads',
58
+ isReadBy: 'isReadBy',
51
59
  };
52
60
  exports.inverseRelationKinds = {
53
61
  attachedTo: 'attachedTo',
@@ -65,4 +73,8 @@ exports.inverseRelationKinds = {
65
73
  isUnlockedBy: 'unlocks',
66
74
  controls: 'isControlledBy',
67
75
  isControlledBy: 'controls',
76
+ records: 'isRecordedBy',
77
+ isRecordedBy: 'records',
78
+ reads: 'isReadBy',
79
+ isReadBy: 'reads',
68
80
  };
package/dist/index.d.ts CHANGED
@@ -35,4 +35,3 @@ export * from './bookmarks';
35
35
  export * from './objects';
36
36
  export * from './primitives';
37
37
  export * from './api-keys';
38
- export * from './export';
package/dist/index.js CHANGED
@@ -51,4 +51,3 @@ __exportStar(require("./bookmarks"), exports);
51
51
  __exportStar(require("./objects"), exports);
52
52
  __exportStar(require("./primitives"), exports);
53
53
  __exportStar(require("./api-keys"), exports);
54
- __exportStar(require("./export"), exports);
@@ -17,11 +17,11 @@ export declare const sWebRtcLiveServiceParams: z.ZodObject<{
17
17
  deviceId: z.ZodString;
18
18
  streamId: z.ZodString;
19
19
  }, "strip", z.ZodTypeAny, {
20
- deviceId: string;
21
20
  streamId: string;
22
- }, {
23
21
  deviceId: string;
22
+ }, {
24
23
  streamId: string;
24
+ deviceId: string;
25
25
  }>;
26
26
  export type WebRtcLiveServiceParams = z.infer<typeof sWebRtcLiveServiceParams>;
27
27
  export declare const sWebRtcPlaybackParams: z.ZodObject<{
@@ -57,23 +57,23 @@ export declare const sWebRtcServiceDescription: z.ZodUnion<[z.ZodObject<{
57
57
  deviceId: z.ZodString;
58
58
  streamId: z.ZodString;
59
59
  }, "strip", z.ZodTypeAny, {
60
- deviceId: string;
61
60
  streamId: string;
62
- }, {
63
61
  deviceId: string;
62
+ }, {
64
63
  streamId: string;
64
+ deviceId: string;
65
65
  }>;
66
66
  }, "strip", z.ZodTypeAny, {
67
67
  service: "live";
68
68
  serviceParams: {
69
- deviceId: string;
70
69
  streamId: string;
70
+ deviceId: string;
71
71
  };
72
72
  }, {
73
73
  service: "live";
74
74
  serviceParams: {
75
- deviceId: string;
76
75
  streamId: string;
76
+ deviceId: string;
77
77
  };
78
78
  }>, z.ZodObject<{
79
79
  service: z.ZodLiteral<"playback">;
@@ -145,23 +145,23 @@ export declare const sWebRtcNewSessionPayload: z.ZodIntersection<z.ZodUnion<[z.Z
145
145
  deviceId: z.ZodString;
146
146
  streamId: z.ZodString;
147
147
  }, "strip", z.ZodTypeAny, {
148
- deviceId: string;
149
148
  streamId: string;
150
- }, {
151
149
  deviceId: string;
150
+ }, {
152
151
  streamId: string;
152
+ deviceId: string;
153
153
  }>;
154
154
  }, "strip", z.ZodTypeAny, {
155
155
  service: "live";
156
156
  serviceParams: {
157
- deviceId: string;
158
157
  streamId: string;
158
+ deviceId: string;
159
159
  };
160
160
  }, {
161
161
  service: "live";
162
162
  serviceParams: {
163
- deviceId: string;
164
163
  streamId: string;
164
+ deviceId: string;
165
165
  };
166
166
  }>, z.ZodObject<{
167
167
  service: z.ZodLiteral<"playback">;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.1.15",
3
+ "version": "2.0.2",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- export declare const sPermissionId: z.ZodUnion<[z.ZodLiteral<"layout:read">, z.ZodLiteral<"layout:update">, z.ZodLiteral<"layout:delete">, z.ZodLiteral<"layout:create">, z.ZodLiteral<"camera:live">, z.ZodLiteral<"camera:playback">, z.ZodLiteral<"camera:playback-export">, z.ZodLiteral<"camera:ptz">, z.ZodLiteral<"camera:privacy-mode">, z.ZodLiteral<"camera:assign">, z.ZodLiteral<"camera:detection">, z.ZodLiteral<"preset:read">, z.ZodLiteral<"preset:update">, z.ZodLiteral<"preset:delete">, z.ZodLiteral<"preset:create">, z.ZodLiteral<"door:release">, z.ZodLiteral<"door:lock">, z.ZodLiteral<"camera-lift:activate">, z.ZodLiteral<"io-board:activate">, z.ZodLiteral<"public-view:read">, z.ZodLiteral<"public-view:update">, z.ZodLiteral<"public-view:delete">, z.ZodLiteral<"public-view:create">, z.ZodLiteral<"private-view:read">, z.ZodLiteral<"private-view:update">, z.ZodLiteral<"private-view:delete">, z.ZodLiteral<"private-view:create">, z.ZodLiteral<"person:read">, z.ZodLiteral<"person:update">, z.ZodLiteral<"person:delete">, z.ZodLiteral<"person:create">, z.ZodLiteral<"person:assign">, z.ZodLiteral<"person:print">, z.ZodLiteral<"door-group:read">, z.ZodLiteral<"door-group:update">, z.ZodLiteral<"door-group:delete">, z.ZodLiteral<"door-group:create">, z.ZodLiteral<"access-rule:read">, z.ZodLiteral<"access-rule:update">, z.ZodLiteral<"access-rule:delete">, z.ZodLiteral<"access-rule:create">, z.ZodLiteral<"schedule:read">, z.ZodLiteral<"schedule:update">, z.ZodLiteral<"schedule:delete">, z.ZodLiteral<"schedule:create">, z.ZodLiteral<"presence:read">, z.ZodLiteral<"presence:update">, z.ZodLiteral<"presence:update-reader">, z.ZodLiteral<"factory:read">, z.ZodLiteral<"factory:update">, z.ZodLiteral<"factory:delete">, z.ZodLiteral<"factory:create">, z.ZodLiteral<"event:read">, z.ZodLiteral<"event:purge">, z.ZodLiteral<"alarm:read">, z.ZodLiteral<"alarm:acknowlede">, z.ZodLiteral<"alarm:arm">, z.ZodLiteral<"alarm:trigger">, z.ZodLiteral<"alarm:bypass">, z.ZodLiteral<"user:read">, z.ZodLiteral<"user:change-password">, z.ZodLiteral<"user:change-username">, z.ZodLiteral<"user:change-name">, z.ZodLiteral<"user:change-email">, z.ZodLiteral<"user:activate">, z.ZodLiteral<"user:delete">, z.ZodLiteral<"user:change-roles">, z.ZodLiteral<"user:create">, z.ZodLiteral<"role:read">, z.ZodLiteral<"role:create">, z.ZodLiteral<"role:delete">, z.ZodLiteral<"role:update">, z.ZodLiteral<"module:read">, z.ZodLiteral<"module:update">, z.ZodLiteral<"module:enable">, z.ZodLiteral<"device:discover">, z.ZodLiteral<"device:import">, z.ZodLiteral<"device:override-specs">, z.ZodLiteral<"device:notes">, z.ZodLiteral<"device:alarms">, z.ZodLiteral<"device:adjacent-cameras">, z.ZodLiteral<"automation:read">, z.ZodLiteral<"automation:update">, z.ZodLiteral<"automation:delete">, z.ZodLiteral<"automation:create">, z.ZodLiteral<"device-group:read">, z.ZodLiteral<"device-group:update">, z.ZodLiteral<"device-group:delete">, z.ZodLiteral<"device-group:create">, z.ZodLiteral<"macro:read">, z.ZodLiteral<"macro:update">, z.ZodLiteral<"macro:delete">, z.ZodLiteral<"macro:create">, z.ZodLiteral<"macro:run">, z.ZodLiteral<"template:read">, z.ZodLiteral<"template:update">, z.ZodLiteral<"template:delete">, z.ZodLiteral<"template:create">, z.ZodLiteral<"custom-field:read">, z.ZodLiteral<"custom-field:update">, z.ZodLiteral<"custom-field:delete">, z.ZodLiteral<"custom-field:create">, z.ZodLiteral<"media:read">, z.ZodLiteral<"about:read">, z.ZodLiteral<"intercom:read">, z.ZodLiteral<"display:read">, ...(z.ZodLiteral<"device:camera"> | z.ZodLiteral<"device:door"> | z.ZodLiteral<"device:motion-sensor"> | z.ZodLiteral<"device:panic-button"> | z.ZodLiteral<"device:intercom-terminal"> | z.ZodLiteral<"device:display"> | z.ZodLiteral<"device:recorder">)[], z.ZodLiteral<"security-level:read">, z.ZodLiteral<"security-level:update">, z.ZodLiteral<"security-level:delete">, z.ZodLiteral<"security-level:create">, z.ZodLiteral<"citadel-mode:toggle">, z.ZodLiteral<"token-conversion:read">, z.ZodLiteral<"token-conversion:update">, z.ZodLiteral<"token-conversion:delete">, z.ZodLiteral<"token-conversion:create">, z.ZodLiteral<"bookmark:read">, z.ZodLiteral<"bookmark:create">, z.ZodLiteral<"bookmark:update">, z.ZodLiteral<"bookmark:delete">, z.ZodLiteral<"access-path:read">, z.ZodLiteral<"access-path:create">, z.ZodLiteral<"access-path:update">, z.ZodLiteral<"access-path:delete">, z.ZodLiteral<"person-type:create">, z.ZodLiteral<"person-type:update">, z.ZodLiteral<"person-type:delete">, z.ZodLiteral<"agreement:create">, z.ZodLiteral<"agreement:update">, z.ZodLiteral<"agreement:delete">, z.ZodLiteral<"api-key:create">, z.ZodLiteral<"api-key:revoke">]>;
2
+ export declare const sPermissionId: z.ZodUnion<[z.ZodLiteral<"layout:read">, z.ZodLiteral<"layout:update">, z.ZodLiteral<"layout:delete">, z.ZodLiteral<"layout:create">, z.ZodLiteral<"camera:live">, z.ZodLiteral<"camera:playback">, z.ZodLiteral<"camera:playback-export">, z.ZodLiteral<"camera:ptz">, z.ZodLiteral<"camera:privacy-mode">, z.ZodLiteral<"camera:assign">, z.ZodLiteral<"camera:detection">, z.ZodLiteral<"preset:read">, z.ZodLiteral<"preset:update">, z.ZodLiteral<"preset:delete">, z.ZodLiteral<"preset:create">, z.ZodLiteral<"door:release">, z.ZodLiteral<"door:lock">, z.ZodLiteral<"camera-lift:activate">, z.ZodLiteral<"io-board:activate">, z.ZodLiteral<"public-view:read">, z.ZodLiteral<"public-view:update">, z.ZodLiteral<"public-view:delete">, z.ZodLiteral<"public-view:create">, z.ZodLiteral<"private-view:read">, z.ZodLiteral<"private-view:update">, z.ZodLiteral<"private-view:delete">, z.ZodLiteral<"private-view:create">, z.ZodLiteral<"person:read">, z.ZodLiteral<"person:update">, z.ZodLiteral<"person:delete">, z.ZodLiteral<"person:create">, z.ZodLiteral<"person:assign">, z.ZodLiteral<"person:print">, z.ZodLiteral<"door-group:read">, z.ZodLiteral<"door-group:update">, z.ZodLiteral<"door-group:delete">, z.ZodLiteral<"door-group:create">, z.ZodLiteral<"access-rule:read">, z.ZodLiteral<"access-rule:update">, z.ZodLiteral<"access-rule:delete">, z.ZodLiteral<"access-rule:create">, z.ZodLiteral<"schedule:read">, z.ZodLiteral<"schedule:update">, z.ZodLiteral<"schedule:delete">, z.ZodLiteral<"schedule:create">, z.ZodLiteral<"presence:read">, z.ZodLiteral<"presence:update">, z.ZodLiteral<"presence:update-reader">, z.ZodLiteral<"factory:read">, z.ZodLiteral<"factory:update">, z.ZodLiteral<"factory:delete">, z.ZodLiteral<"factory:create">, z.ZodLiteral<"event:read">, z.ZodLiteral<"event:purge">, z.ZodLiteral<"alarm:read">, z.ZodLiteral<"alarm:acknowlede">, z.ZodLiteral<"alarm:arm">, z.ZodLiteral<"alarm:trigger">, z.ZodLiteral<"alarm:bypass">, z.ZodLiteral<"user:read">, z.ZodLiteral<"user:change-password">, z.ZodLiteral<"user:change-username">, z.ZodLiteral<"user:change-name">, z.ZodLiteral<"user:change-email">, z.ZodLiteral<"user:activate">, z.ZodLiteral<"user:delete">, z.ZodLiteral<"user:change-roles">, z.ZodLiteral<"user:create">, z.ZodLiteral<"role:read">, z.ZodLiteral<"role:create">, z.ZodLiteral<"role:delete">, z.ZodLiteral<"role:update">, z.ZodLiteral<"module:read">, z.ZodLiteral<"module:update">, z.ZodLiteral<"module:enable">, z.ZodLiteral<"device:discover">, z.ZodLiteral<"device:import">, z.ZodLiteral<"device:override-specs">, z.ZodLiteral<"device:notes">, z.ZodLiteral<"device:alarms">, z.ZodLiteral<"device:adjacent-cameras">, z.ZodLiteral<"automation:read">, z.ZodLiteral<"automation:update">, z.ZodLiteral<"automation:delete">, z.ZodLiteral<"automation:create">, z.ZodLiteral<"device-group:read">, z.ZodLiteral<"device-group:update">, z.ZodLiteral<"device-group:delete">, z.ZodLiteral<"device-group:create">, z.ZodLiteral<"macro:read">, z.ZodLiteral<"macro:update">, z.ZodLiteral<"macro:delete">, z.ZodLiteral<"macro:create">, z.ZodLiteral<"macro:run">, z.ZodLiteral<"template:read">, z.ZodLiteral<"template:update">, z.ZodLiteral<"template:delete">, z.ZodLiteral<"template:create">, z.ZodLiteral<"custom-field:read">, z.ZodLiteral<"custom-field:update">, z.ZodLiteral<"custom-field:delete">, z.ZodLiteral<"custom-field:create">, z.ZodLiteral<"media:read">, z.ZodLiteral<"about:read">, z.ZodLiteral<"intercom:read">, z.ZodLiteral<"display:read">, ...(z.ZodLiteral<"device:camera"> | z.ZodLiteral<"device:door"> | z.ZodLiteral<"device:motion-sensor"> | z.ZodLiteral<"device:panic-button"> | z.ZodLiteral<"device:intercom-terminal"> | z.ZodLiteral<"device:display"> | z.ZodLiteral<"device:nvr-recorder"> | z.ZodLiteral<"device:nvr-exporter"> | z.ZodLiteral<"device:nvr-analytics-server">)[], z.ZodLiteral<"security-level:read">, z.ZodLiteral<"security-level:update">, z.ZodLiteral<"security-level:delete">, z.ZodLiteral<"security-level:create">, z.ZodLiteral<"citadel-mode:toggle">, z.ZodLiteral<"token-conversion:read">, z.ZodLiteral<"token-conversion:update">, z.ZodLiteral<"token-conversion:delete">, z.ZodLiteral<"token-conversion:create">, z.ZodLiteral<"bookmark:read">, z.ZodLiteral<"bookmark:create">, z.ZodLiteral<"bookmark:update">, z.ZodLiteral<"bookmark:delete">, z.ZodLiteral<"access-path:read">, z.ZodLiteral<"access-path:create">, z.ZodLiteral<"access-path:update">, z.ZodLiteral<"access-path:delete">, z.ZodLiteral<"person-type:create">, z.ZodLiteral<"person-type:update">, z.ZodLiteral<"person-type:delete">, z.ZodLiteral<"agreement:create">, z.ZodLiteral<"agreement:update">, z.ZodLiteral<"agreement:delete">, z.ZodLiteral<"api-key:create">, z.ZodLiteral<"api-key:revoke">]>;
3
3
  export type PermissionArea = 'layout' | 'camera' | 'preset' | 'door' | 'public-view' | 'private-view' | 'person' | 'door-group' | 'access-rule' | 'schedule' | 'presence' | 'factory' | 'event' | 'alarm' | 'user' | 'role' | 'device' | 'module' | 'automation' | 'device-group' | 'macro' | 'template' | 'custom-field' | 'media' | 'about' | 'intercom' | 'device' | 'display' | 'security-level' | 'citadel-mode' | 'token-conversion' | 'bookmark' | 'access-path' | 'person-type' | 'agreement' | 'api-key';
4
- export declare const permissions: Record<"device:camera" | "device:door" | "device:motion-sensor" | "device:panic-button" | "device:intercom-terminal" | "device:display" | "device:recorder" | "layout:read" | "layout:update" | "layout:delete" | "layout:create" | "camera:live" | "camera:playback" | "camera:playback-export" | "camera:ptz" | "camera:privacy-mode" | "camera:assign" | "camera:detection" | "preset:read" | "preset:update" | "preset:delete" | "preset:create" | "door:release" | "door:lock" | "camera-lift:activate" | "io-board:activate" | "public-view:read" | "public-view:update" | "public-view:delete" | "public-view:create" | "private-view:read" | "private-view:update" | "private-view:delete" | "private-view:create" | "person:read" | "person:update" | "person:delete" | "person:create" | "person:assign" | "person:print" | "door-group:read" | "door-group:update" | "door-group:delete" | "door-group:create" | "access-rule:read" | "access-rule:update" | "access-rule:delete" | "access-rule:create" | "schedule:read" | "schedule:update" | "schedule:delete" | "schedule:create" | "presence:read" | "presence:update" | "presence:update-reader" | "factory:read" | "factory:update" | "factory:delete" | "factory:create" | "event:read" | "event:purge" | "alarm:read" | "alarm:acknowlede" | "alarm:arm" | "alarm:trigger" | "alarm:bypass" | "user:read" | "user:change-password" | "user:change-username" | "user:change-name" | "user:change-email" | "user:activate" | "user:delete" | "user:change-roles" | "user:create" | "role:read" | "role:create" | "role:delete" | "role:update" | "module:read" | "module:update" | "module:enable" | "device:discover" | "device:import" | "device:override-specs" | "device:notes" | "device:alarms" | "device:adjacent-cameras" | "automation:read" | "automation:update" | "automation:delete" | "automation:create" | "device-group:read" | "device-group:update" | "device-group:delete" | "device-group:create" | "macro:read" | "macro:update" | "macro:delete" | "macro:create" | "macro:run" | "template:read" | "template:update" | "template:delete" | "template:create" | "custom-field:read" | "custom-field:update" | "custom-field:delete" | "custom-field:create" | "media:read" | "about:read" | "intercom:read" | "display:read" | "security-level:read" | "security-level:update" | "security-level:delete" | "security-level:create" | "citadel-mode:toggle" | "token-conversion:read" | "token-conversion:update" | "token-conversion:delete" | "token-conversion:create" | "bookmark:read" | "bookmark:create" | "bookmark:update" | "bookmark:delete" | "access-path:read" | "access-path:create" | "access-path:update" | "access-path:delete" | "person-type:create" | "person-type:update" | "person-type:delete" | "agreement:create" | "agreement:update" | "agreement:delete" | "api-key:create" | "api-key:revoke", string>;
5
- export declare const permissionsArray: ("device:camera" | "device:door" | "device:motion-sensor" | "device:panic-button" | "device:intercom-terminal" | "device:display" | "device:recorder" | "layout:read" | "layout:update" | "layout:delete" | "layout:create" | "camera:live" | "camera:playback" | "camera:playback-export" | "camera:ptz" | "camera:privacy-mode" | "camera:assign" | "camera:detection" | "preset:read" | "preset:update" | "preset:delete" | "preset:create" | "door:release" | "door:lock" | "camera-lift:activate" | "io-board:activate" | "public-view:read" | "public-view:update" | "public-view:delete" | "public-view:create" | "private-view:read" | "private-view:update" | "private-view:delete" | "private-view:create" | "person:read" | "person:update" | "person:delete" | "person:create" | "person:assign" | "person:print" | "door-group:read" | "door-group:update" | "door-group:delete" | "door-group:create" | "access-rule:read" | "access-rule:update" | "access-rule:delete" | "access-rule:create" | "schedule:read" | "schedule:update" | "schedule:delete" | "schedule:create" | "presence:read" | "presence:update" | "presence:update-reader" | "factory:read" | "factory:update" | "factory:delete" | "factory:create" | "event:read" | "event:purge" | "alarm:read" | "alarm:acknowlede" | "alarm:arm" | "alarm:trigger" | "alarm:bypass" | "user:read" | "user:change-password" | "user:change-username" | "user:change-name" | "user:change-email" | "user:activate" | "user:delete" | "user:change-roles" | "user:create" | "role:read" | "role:create" | "role:delete" | "role:update" | "module:read" | "module:update" | "module:enable" | "device:discover" | "device:import" | "device:override-specs" | "device:notes" | "device:alarms" | "device:adjacent-cameras" | "automation:read" | "automation:update" | "automation:delete" | "automation:create" | "device-group:read" | "device-group:update" | "device-group:delete" | "device-group:create" | "macro:read" | "macro:update" | "macro:delete" | "macro:create" | "macro:run" | "template:read" | "template:update" | "template:delete" | "template:create" | "custom-field:read" | "custom-field:update" | "custom-field:delete" | "custom-field:create" | "media:read" | "about:read" | "intercom:read" | "display:read" | "security-level:read" | "security-level:update" | "security-level:delete" | "security-level:create" | "citadel-mode:toggle" | "token-conversion:read" | "token-conversion:update" | "token-conversion:delete" | "token-conversion:create" | "bookmark:read" | "bookmark:create" | "bookmark:update" | "bookmark:delete" | "access-path:read" | "access-path:create" | "access-path:update" | "access-path:delete" | "person-type:create" | "person-type:update" | "person-type:delete" | "agreement:create" | "agreement:update" | "agreement:delete" | "api-key:create" | "api-key:revoke")[];
4
+ export declare const permissions: Record<"device:camera" | "device:door" | "device:motion-sensor" | "device:panic-button" | "device:intercom-terminal" | "device:display" | "device:nvr-recorder" | "device:nvr-exporter" | "device:nvr-analytics-server" | "layout:read" | "layout:update" | "layout:delete" | "layout:create" | "camera:live" | "camera:playback" | "camera:playback-export" | "camera:ptz" | "camera:privacy-mode" | "camera:assign" | "camera:detection" | "preset:read" | "preset:update" | "preset:delete" | "preset:create" | "door:release" | "door:lock" | "camera-lift:activate" | "io-board:activate" | "public-view:read" | "public-view:update" | "public-view:delete" | "public-view:create" | "private-view:read" | "private-view:update" | "private-view:delete" | "private-view:create" | "person:read" | "person:update" | "person:delete" | "person:create" | "person:assign" | "person:print" | "door-group:read" | "door-group:update" | "door-group:delete" | "door-group:create" | "access-rule:read" | "access-rule:update" | "access-rule:delete" | "access-rule:create" | "schedule:read" | "schedule:update" | "schedule:delete" | "schedule:create" | "presence:read" | "presence:update" | "presence:update-reader" | "factory:read" | "factory:update" | "factory:delete" | "factory:create" | "event:read" | "event:purge" | "alarm:read" | "alarm:acknowlede" | "alarm:arm" | "alarm:trigger" | "alarm:bypass" | "user:read" | "user:change-password" | "user:change-username" | "user:change-name" | "user:change-email" | "user:activate" | "user:delete" | "user:change-roles" | "user:create" | "role:read" | "role:create" | "role:delete" | "role:update" | "module:read" | "module:update" | "module:enable" | "device:discover" | "device:import" | "device:override-specs" | "device:notes" | "device:alarms" | "device:adjacent-cameras" | "automation:read" | "automation:update" | "automation:delete" | "automation:create" | "device-group:read" | "device-group:update" | "device-group:delete" | "device-group:create" | "macro:read" | "macro:update" | "macro:delete" | "macro:create" | "macro:run" | "template:read" | "template:update" | "template:delete" | "template:create" | "custom-field:read" | "custom-field:update" | "custom-field:delete" | "custom-field:create" | "media:read" | "about:read" | "intercom:read" | "display:read" | "security-level:read" | "security-level:update" | "security-level:delete" | "security-level:create" | "citadel-mode:toggle" | "token-conversion:read" | "token-conversion:update" | "token-conversion:delete" | "token-conversion:create" | "bookmark:read" | "bookmark:create" | "bookmark:update" | "bookmark:delete" | "access-path:read" | "access-path:create" | "access-path:update" | "access-path:delete" | "person-type:create" | "person-type:update" | "person-type:delete" | "agreement:create" | "agreement:update" | "agreement:delete" | "api-key:create" | "api-key:revoke", string>;
5
+ export declare const permissionsArray: ("device:camera" | "device:door" | "device:motion-sensor" | "device:panic-button" | "device:intercom-terminal" | "device:display" | "device:nvr-recorder" | "device:nvr-exporter" | "device:nvr-analytics-server" | "layout:read" | "layout:update" | "layout:delete" | "layout:create" | "camera:live" | "camera:playback" | "camera:playback-export" | "camera:ptz" | "camera:privacy-mode" | "camera:assign" | "camera:detection" | "preset:read" | "preset:update" | "preset:delete" | "preset:create" | "door:release" | "door:lock" | "camera-lift:activate" | "io-board:activate" | "public-view:read" | "public-view:update" | "public-view:delete" | "public-view:create" | "private-view:read" | "private-view:update" | "private-view:delete" | "private-view:create" | "person:read" | "person:update" | "person:delete" | "person:create" | "person:assign" | "person:print" | "door-group:read" | "door-group:update" | "door-group:delete" | "door-group:create" | "access-rule:read" | "access-rule:update" | "access-rule:delete" | "access-rule:create" | "schedule:read" | "schedule:update" | "schedule:delete" | "schedule:create" | "presence:read" | "presence:update" | "presence:update-reader" | "factory:read" | "factory:update" | "factory:delete" | "factory:create" | "event:read" | "event:purge" | "alarm:read" | "alarm:acknowlede" | "alarm:arm" | "alarm:trigger" | "alarm:bypass" | "user:read" | "user:change-password" | "user:change-username" | "user:change-name" | "user:change-email" | "user:activate" | "user:delete" | "user:change-roles" | "user:create" | "role:read" | "role:create" | "role:delete" | "role:update" | "module:read" | "module:update" | "module:enable" | "device:discover" | "device:import" | "device:override-specs" | "device:notes" | "device:alarms" | "device:adjacent-cameras" | "automation:read" | "automation:update" | "automation:delete" | "automation:create" | "device-group:read" | "device-group:update" | "device-group:delete" | "device-group:create" | "macro:read" | "macro:update" | "macro:delete" | "macro:create" | "macro:run" | "template:read" | "template:update" | "template:delete" | "template:create" | "custom-field:read" | "custom-field:update" | "custom-field:delete" | "custom-field:create" | "media:read" | "about:read" | "intercom:read" | "display:read" | "security-level:read" | "security-level:update" | "security-level:delete" | "security-level:create" | "citadel-mode:toggle" | "token-conversion:read" | "token-conversion:update" | "token-conversion:delete" | "token-conversion:create" | "bookmark:read" | "bookmark:create" | "bookmark:update" | "bookmark:delete" | "access-path:read" | "access-path:create" | "access-path:update" | "access-path:delete" | "person-type:create" | "person-type:update" | "person-type:delete" | "agreement:create" | "agreement:update" | "agreement:delete" | "api-key:create" | "api-key:revoke")[];
6
6
  export type PermissionId = z.infer<typeof sPermissionId>;
@@ -16,7 +16,15 @@ const deviceTypePermissions = {
16
16
  .literal('device:intercom-terminal')
17
17
  .describe('View intercom terminals'),
18
18
  display: zod_1.z.literal('device:display').describe('View displays'),
19
- recorder: zod_1.z.literal('device:recorder').describe('View recorders'),
19
+ 'nvr-recorder': zod_1.z
20
+ .literal('device:nvr-recorder')
21
+ .describe('View NVR recorders'),
22
+ 'nvr-exporter': zod_1.z
23
+ .literal('device:nvr-exporter')
24
+ .describe('View NVR exporters'),
25
+ 'nvr-analytics-server': zod_1.z
26
+ .literal('device:nvr-analytics-server')
27
+ .describe('View NVR analytics servers'),
20
28
  };
21
29
  const sDeviceTypePermissions = Object.values(deviceTypePermissions);
22
30
  exports.sPermissionId = zod_1.z.union([