@awarevue/api-types 2.0.7 → 2.0.8

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.
@@ -259,11 +259,11 @@ export declare const sRecordingsByTimeRangeArgs: z.ZodObject<{
259
259
  }, {
260
260
  type: "nvr-analytics-server";
261
261
  }>, z.ZodObject<{
262
- type: z.ZodLiteral<"device-other">;
262
+ type: z.ZodLiteral<"system">;
263
263
  }, "strip", z.ZodTypeAny, {
264
- type: "device-other";
264
+ type: "system";
265
265
  }, {
266
- type: "device-other";
266
+ type: "system";
267
267
  }>]>>]>;
268
268
  timeFrom: z.ZodNumber;
269
269
  timeTo: z.ZodNumber;
@@ -346,7 +346,7 @@ export declare const sRecordingsByTimeRangeArgs: z.ZodObject<{
346
346
  } | {
347
347
  type: "nvr-analytics-server";
348
348
  } | {
349
- type: "device-other";
349
+ type: "system";
350
350
  }));
351
351
  timeFrom: number;
352
352
  timeTo: number;
@@ -429,7 +429,7 @@ export declare const sRecordingsByTimeRangeArgs: z.ZodObject<{
429
429
  } | {
430
430
  type: "nvr-analytics-server";
431
431
  } | {
432
- type: "device-other";
432
+ type: "system";
433
433
  }));
434
434
  timeFrom: number;
435
435
  timeTo: number;
@@ -701,11 +701,11 @@ export declare const sPreviewImageArgs: z.ZodObject<{
701
701
  }, {
702
702
  type: "nvr-analytics-server";
703
703
  }>, z.ZodObject<{
704
- type: z.ZodLiteral<"device-other">;
704
+ type: z.ZodLiteral<"system">;
705
705
  }, "strip", z.ZodTypeAny, {
706
- type: "device-other";
706
+ type: "system";
707
707
  }, {
708
- type: "device-other";
708
+ type: "system";
709
709
  }>]>>]>;
710
710
  time: z.ZodNumber;
711
711
  height: z.ZodNumber;
@@ -790,7 +790,7 @@ export declare const sPreviewImageArgs: z.ZodObject<{
790
790
  } | {
791
791
  type: "nvr-analytics-server";
792
792
  } | {
793
- type: "device-other";
793
+ type: "system";
794
794
  }));
795
795
  }, {
796
796
  time: number;
@@ -873,7 +873,7 @@ export declare const sPreviewImageArgs: z.ZodObject<{
873
873
  } | {
874
874
  type: "nvr-analytics-server";
875
875
  } | {
876
- type: "device-other";
876
+ type: "system";
877
877
  }));
878
878
  }>;
879
879
  export declare const sPreviewImageResponse: z.ZodNullable<z.ZodObject<{
@@ -1137,11 +1137,11 @@ export declare const sCameraLatestFrameArgs: z.ZodObject<{
1137
1137
  }, {
1138
1138
  type: "nvr-analytics-server";
1139
1139
  }>, z.ZodObject<{
1140
- type: z.ZodLiteral<"device-other">;
1140
+ type: z.ZodLiteral<"system">;
1141
1141
  }, "strip", z.ZodTypeAny, {
1142
- type: "device-other";
1142
+ type: "system";
1143
1143
  }, {
1144
- type: "device-other";
1144
+ type: "system";
1145
1145
  }>]>>]>;
1146
1146
  width: z.ZodNumber;
1147
1147
  height: z.ZodNumber;
@@ -1226,7 +1226,7 @@ export declare const sCameraLatestFrameArgs: z.ZodObject<{
1226
1226
  } | {
1227
1227
  type: "nvr-analytics-server";
1228
1228
  } | {
1229
- type: "device-other";
1229
+ type: "system";
1230
1230
  }));
1231
1231
  }, {
1232
1232
  height: number;
@@ -1309,7 +1309,7 @@ export declare const sCameraLatestFrameArgs: z.ZodObject<{
1309
1309
  } | {
1310
1310
  type: "nvr-analytics-server";
1311
1311
  } | {
1312
- type: "device-other";
1312
+ type: "system";
1313
1313
  }));
1314
1314
  }>;
1315
1315
  export declare const sCameraLatestFrameResponse: z.ZodNullable<z.ZodObject<{
@@ -1573,11 +1573,11 @@ export declare const nvrRecorderRequestSchemas: {
1573
1573
  }, {
1574
1574
  type: "nvr-analytics-server";
1575
1575
  }>, z.ZodObject<{
1576
- type: z.ZodLiteral<"device-other">;
1576
+ type: z.ZodLiteral<"system">;
1577
1577
  }, "strip", z.ZodTypeAny, {
1578
- type: "device-other";
1578
+ type: "system";
1579
1579
  }, {
1580
- type: "device-other";
1580
+ type: "system";
1581
1581
  }>]>>]>;
1582
1582
  timeFrom: z.ZodNumber;
1583
1583
  timeTo: z.ZodNumber;
@@ -1660,7 +1660,7 @@ export declare const nvrRecorderRequestSchemas: {
1660
1660
  } | {
1661
1661
  type: "nvr-analytics-server";
1662
1662
  } | {
1663
- type: "device-other";
1663
+ type: "system";
1664
1664
  }));
1665
1665
  timeFrom: number;
1666
1666
  timeTo: number;
@@ -1743,7 +1743,7 @@ export declare const nvrRecorderRequestSchemas: {
1743
1743
  } | {
1744
1744
  type: "nvr-analytics-server";
1745
1745
  } | {
1746
- type: "device-other";
1746
+ type: "system";
1747
1747
  }));
1748
1748
  timeFrom: number;
1749
1749
  timeTo: number;
@@ -1996,11 +1996,11 @@ export declare const nvrRecorderRequestSchemas: {
1996
1996
  }, {
1997
1997
  type: "nvr-analytics-server";
1998
1998
  }>, z.ZodObject<{
1999
- type: z.ZodLiteral<"device-other">;
1999
+ type: z.ZodLiteral<"system">;
2000
2000
  }, "strip", z.ZodTypeAny, {
2001
- type: "device-other";
2001
+ type: "system";
2002
2002
  }, {
2003
- type: "device-other";
2003
+ type: "system";
2004
2004
  }>]>>]>;
2005
2005
  time: z.ZodNumber;
2006
2006
  height: z.ZodNumber;
@@ -2085,7 +2085,7 @@ export declare const nvrRecorderRequestSchemas: {
2085
2085
  } | {
2086
2086
  type: "nvr-analytics-server";
2087
2087
  } | {
2088
- type: "device-other";
2088
+ type: "system";
2089
2089
  }));
2090
2090
  }, {
2091
2091
  time: number;
@@ -2168,7 +2168,7 @@ export declare const nvrRecorderRequestSchemas: {
2168
2168
  } | {
2169
2169
  type: "nvr-analytics-server";
2170
2170
  } | {
2171
- type: "device-other";
2171
+ type: "system";
2172
2172
  }));
2173
2173
  }>;
2174
2174
  readonly "cctv:latest-frame": z.ZodObject<{
@@ -2419,11 +2419,11 @@ export declare const nvrRecorderRequestSchemas: {
2419
2419
  }, {
2420
2420
  type: "nvr-analytics-server";
2421
2421
  }>, z.ZodObject<{
2422
- type: z.ZodLiteral<"device-other">;
2422
+ type: z.ZodLiteral<"system">;
2423
2423
  }, "strip", z.ZodTypeAny, {
2424
- type: "device-other";
2424
+ type: "system";
2425
2425
  }, {
2426
- type: "device-other";
2426
+ type: "system";
2427
2427
  }>]>>]>;
2428
2428
  width: z.ZodNumber;
2429
2429
  height: z.ZodNumber;
@@ -2508,7 +2508,7 @@ export declare const nvrRecorderRequestSchemas: {
2508
2508
  } | {
2509
2509
  type: "nvr-analytics-server";
2510
2510
  } | {
2511
- type: "device-other";
2511
+ type: "system";
2512
2512
  }));
2513
2513
  }, {
2514
2514
  height: number;
@@ -2591,7 +2591,7 @@ export declare const nvrRecorderRequestSchemas: {
2591
2591
  } | {
2592
2592
  type: "nvr-analytics-server";
2593
2593
  } | {
2594
- type: "device-other";
2594
+ type: "system";
2595
2595
  }));
2596
2596
  }>;
2597
2597
  };
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
- export declare const DEVICE_OTHER: "device-other";
3
- export declare const sDeviceOtherSpecs: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4
- export type DeviceOtherSpecs = z.infer<typeof sDeviceOtherSpecs>;
5
- export declare const sDeviceOtherStateDto: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6
- export type DeviceOtherStateDto = z.infer<typeof sDeviceOtherStateDto>;
2
+ export declare const SYSTEM: "system";
3
+ export declare const sSystemDeviceSpecs: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4
+ export type SystemDeviceSpecs = z.infer<typeof sSystemDeviceSpecs>;
5
+ export declare const sSystemDeviceStateDto: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6
+ export type SystemDeviceStateDto = z.infer<typeof sSystemDeviceStateDto>;
7
7
  export declare const sNotificationCreated: z.ZodObject<{
8
8
  kind: z.ZodLiteral<"notification-created">;
9
9
  notificationRef: z.ZodOptional<z.ZodString>;
@@ -23,7 +23,7 @@ export declare const sNotificationCreated: z.ZodObject<{
23
23
  metadata?: Record<string, unknown> | undefined;
24
24
  notificationRef?: string | undefined;
25
25
  }>;
26
- export declare const deviceOtherEventSchemasByKind: {
26
+ export declare const systemDeviceEventSchemasByKind: {
27
27
  readonly 'notification-created': z.ZodObject<{
28
28
  kind: z.ZodLiteral<"notification-created">;
29
29
  notificationRef: z.ZodOptional<z.ZodString>;
@@ -45,4 +45,4 @@ export declare const deviceOtherEventSchemasByKind: {
45
45
  }>;
46
46
  };
47
47
  export type NotificationCreated = z.infer<typeof sNotificationCreated>;
48
- export type DeviceOtherEvent = NotificationCreated;
48
+ export type SystemDeviceEvent = NotificationCreated;
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deviceOtherEventSchemasByKind = exports.sNotificationCreated = exports.sDeviceOtherStateDto = exports.sDeviceOtherSpecs = exports.DEVICE_OTHER = void 0;
3
+ exports.systemDeviceEventSchemasByKind = exports.sNotificationCreated = exports.sSystemDeviceStateDto = exports.sSystemDeviceSpecs = exports.SYSTEM = void 0;
4
4
  const primitives_1 = require("../primitives");
5
5
  const zod_1 = require("zod");
6
- exports.DEVICE_OTHER = 'device-other';
6
+ exports.SYSTEM = 'system';
7
7
  // SPECS
8
- exports.sDeviceOtherSpecs = zod_1.z.object({});
8
+ exports.sSystemDeviceSpecs = zod_1.z.object({});
9
9
  // STATE
10
- exports.sDeviceOtherStateDto = zod_1.z.record(zod_1.z.unknown());
10
+ exports.sSystemDeviceStateDto = zod_1.z.record(zod_1.z.unknown());
11
11
  // EVENTS
12
12
  exports.sNotificationCreated = zod_1.z.object({
13
13
  kind: zod_1.z.literal('notification-created'),
@@ -16,6 +16,6 @@ exports.sNotificationCreated = zod_1.z.object({
16
16
  message: zod_1.z.string().nonempty(),
17
17
  metadata: zod_1.z.record(zod_1.z.unknown()).optional(),
18
18
  });
19
- exports.deviceOtherEventSchemasByKind = {
19
+ exports.systemDeviceEventSchemasByKind = {
20
20
  'notification-created': exports.sNotificationCreated,
21
21
  };
@@ -271,11 +271,11 @@ export declare const commandSchemas: {
271
271
  }, {
272
272
  type: "nvr-analytics-server";
273
273
  }>, import("zod").ZodObject<{
274
- type: import("zod").ZodLiteral<"device-other">;
274
+ type: import("zod").ZodLiteral<"system">;
275
275
  }, "strip", import("zod").ZodTypeAny, {
276
- type: "device-other";
276
+ type: "system";
277
277
  }, {
278
- type: "device-other";
278
+ type: "system";
279
279
  }>]>>]>;
280
280
  timeFrom: import("zod").ZodNumber;
281
281
  timeTo: import("zod").ZodNumber;
@@ -361,7 +361,7 @@ export declare const commandSchemas: {
361
361
  } | {
362
362
  type: "nvr-analytics-server";
363
363
  } | {
364
- type: "device-other";
364
+ type: "system";
365
365
  }));
366
366
  timeFrom: number;
367
367
  timeTo: number;
@@ -446,7 +446,7 @@ export declare const commandSchemas: {
446
446
  } | {
447
447
  type: "nvr-analytics-server";
448
448
  } | {
449
- type: "device-other";
449
+ type: "system";
450
450
  }));
451
451
  timeFrom: number;
452
452
  timeTo: number;
@@ -533,7 +533,7 @@ export declare const commandSchemas: {
533
533
  } | {
534
534
  type: "nvr-analytics-server";
535
535
  } | {
536
- type: "device-other";
536
+ type: "system";
537
537
  }));
538
538
  timeFrom: number;
539
539
  timeTo: number;
@@ -621,7 +621,7 @@ export declare const commandSchemas: {
621
621
  } | {
622
622
  type: "nvr-analytics-server";
623
623
  } | {
624
- type: "device-other";
624
+ type: "system";
625
625
  }));
626
626
  timeFrom: number;
627
627
  timeTo: number;
@@ -11,7 +11,7 @@ import { ReaderEvent } from './device/reader/index';
11
11
  import { ServerEvent } from './device/server';
12
12
  import { DeviceType } from './device/any-device';
13
13
  import { NvrExporterEvent } from './device/nvr-exporter';
14
- import { DeviceOtherEvent } from './device/other';
14
+ import { SystemDeviceEvent } from './device/system';
15
15
  export interface DeviceCommandTriggered {
16
16
  kind: 'device-command';
17
17
  userId?: string;
@@ -34,7 +34,7 @@ export interface DeviceDisconnectedEvent {
34
34
  kind: 'device-disconnected';
35
35
  clientId?: number;
36
36
  }
37
- export type AnyDeviceEvent = DeviceCommandTriggered | CameraEvent | DoorEvent | AlarmEvent | MotionDetectedEvent | ReaderEvent | PanicButtonEvent | DeviceConnectedEvent | DeviceDisconnectedEvent | IntercomTerminalEvent | ServerEvent | DeviceGatewayEvent | PresenceTrackerEvent | IoBoardEvent | NvrExporterEvent | DeviceOtherEvent;
37
+ export type AnyDeviceEvent = DeviceCommandTriggered | CameraEvent | DoorEvent | AlarmEvent | MotionDetectedEvent | ReaderEvent | PanicButtonEvent | DeviceConnectedEvent | DeviceDisconnectedEvent | IntercomTerminalEvent | ServerEvent | DeviceGatewayEvent | PresenceTrackerEvent | IoBoardEvent | NvrExporterEvent | SystemDeviceEvent;
38
38
  export declare const sEventHeader: z.ZodObject<{
39
39
  id: z.ZodString;
40
40
  timestamp: z.ZodNumber;
@@ -11,7 +11,7 @@ const panic_button_1 = require("./device/panic-button");
11
11
  const presence_tracker_1 = require("./device/presence-tracker");
12
12
  const index_1 = require("./device/reader/index");
13
13
  const nvr_exporter_1 = require("./device/nvr-exporter");
14
- const other_1 = require("./device/other");
14
+ const system_1 = require("./device/system");
15
15
  exports.sMotionDetected = zod_1.z.object({
16
16
  kind: zod_1.z.literal('motion-detected'),
17
17
  });
@@ -78,7 +78,7 @@ exports.eventSchemaByKind = {
78
78
  ...presence_tracker_1.presenceTrackerEventSchemaByKind,
79
79
  ...index_1.readerEventSchemaByKind,
80
80
  ...nvr_exporter_1.nvrExporterEventSchemasByKind,
81
- ...other_1.deviceOtherEventSchemasByKind,
81
+ ...system_1.systemDeviceEventSchemasByKind,
82
82
  'motion-detected': exports.sMotionDetected,
83
83
  };
84
84
  exports.eventsByDeviceType = {
@@ -254,11 +254,11 @@ export declare const sImportedDevice: z.ZodIntersection<z.ZodIntersection<z.ZodO
254
254
  }, {
255
255
  type: "nvr-analytics-server";
256
256
  }>, z.ZodObject<{
257
- type: z.ZodLiteral<"device-other">;
257
+ type: z.ZodLiteral<"system">;
258
258
  }, "strip", z.ZodTypeAny, {
259
- type: "device-other";
259
+ type: "system";
260
260
  }, {
261
- type: "device-other";
261
+ type: "system";
262
262
  }>]>>;
263
263
  export declare const sDuplicateDevice: z.ZodObject<{
264
264
  name: z.ZodString;
@@ -524,11 +524,11 @@ export declare const sDeviceDiscoveryDto: z.ZodObject<{
524
524
  }, {
525
525
  type: "nvr-analytics-server";
526
526
  }>, z.ZodObject<{
527
- type: z.ZodLiteral<"device-other">;
527
+ type: z.ZodLiteral<"system">;
528
528
  }, "strip", z.ZodTypeAny, {
529
- type: "device-other";
529
+ type: "system";
530
530
  }, {
531
- type: "device-other";
531
+ type: "system";
532
532
  }>]>>, "many">;
533
533
  relations: z.ZodArray<z.ZodIntersection<z.ZodObject<{
534
534
  leftId: z.ZodString;
@@ -630,7 +630,7 @@ export declare const sDeviceDiscoveryDto: z.ZodObject<{
630
630
  } | {
631
631
  type: "nvr-analytics-server";
632
632
  } | {
633
- type: "device-other";
633
+ type: "system";
634
634
  }))[];
635
635
  relations: ({
636
636
  kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy" | "records" | "isRecordedBy" | "reads" | "isReadBy";
@@ -722,7 +722,7 @@ export declare const sDeviceDiscoveryDto: z.ZodObject<{
722
722
  } | {
723
723
  type: "nvr-analytics-server";
724
724
  } | {
725
- type: "device-other";
725
+ type: "system";
726
726
  }))[];
727
727
  relations: ({
728
728
  kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy" | "records" | "isRecordedBy" | "reads" | "isReadBy";
@@ -988,11 +988,11 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
988
988
  }, {
989
989
  type: "nvr-analytics-server";
990
990
  }>, z.ZodObject<{
991
- type: z.ZodLiteral<"device-other">;
991
+ type: z.ZodLiteral<"system">;
992
992
  }, "strip", z.ZodTypeAny, {
993
- type: "device-other";
993
+ type: "system";
994
994
  }, {
995
- type: "device-other";
995
+ type: "system";
996
996
  }>]>>, "many">;
997
997
  updated: z.ZodArray<z.ZodObject<{
998
998
  id: z.ZodString;
@@ -1235,11 +1235,11 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1235
1235
  }, {
1236
1236
  type: "nvr-analytics-server";
1237
1237
  }>, z.ZodObject<{
1238
- type: z.ZodLiteral<"device-other">;
1238
+ type: z.ZodLiteral<"system">;
1239
1239
  }, "strip", z.ZodTypeAny, {
1240
- type: "device-other";
1240
+ type: "system";
1241
1241
  }, {
1242
- type: "device-other";
1242
+ type: "system";
1243
1243
  }>]>, z.ZodObject<{
1244
1244
  id: z.ZodString;
1245
1245
  presets: z.ZodArray<z.ZodObject<{
@@ -1443,7 +1443,7 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1443
1443
  } | {
1444
1444
  type: "nvr-analytics-server";
1445
1445
  } | {
1446
- type: "device-other";
1446
+ type: "system";
1447
1447
  }) & {
1448
1448
  groups: string[];
1449
1449
  id: string;
@@ -1559,7 +1559,7 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1559
1559
  } | {
1560
1560
  type: "nvr-analytics-server";
1561
1561
  } | {
1562
- type: "device-other";
1562
+ type: "system";
1563
1563
  }))[];
1564
1564
  updated: z.objectOutputType<{
1565
1565
  id: z.ZodString;
@@ -1642,7 +1642,7 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1642
1642
  } | {
1643
1643
  type: "nvr-analytics-server";
1644
1644
  } | {
1645
- type: "device-other";
1645
+ type: "system";
1646
1646
  }) & {
1647
1647
  groups: string[];
1648
1648
  id: string;
@@ -1758,7 +1758,7 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
1758
1758
  } | {
1759
1759
  type: "nvr-analytics-server";
1760
1760
  } | {
1761
- type: "device-other";
1761
+ type: "system";
1762
1762
  }))[];
1763
1763
  updated: z.objectInputType<{
1764
1764
  id: z.ZodString;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
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:nvr-recorder"> | z.ZodLiteral<"device:nvr-exporter"> | z.ZodLiteral<"device:nvr-analytics-server"> | z.ZodLiteral<"device:device-other">)[], 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<"device:system">)[], 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:nvr-recorder" | "device:nvr-exporter" | "device:nvr-analytics-server" | "device:device-other" | "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" | "device:device-other" | "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" | "device:system" | "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" | "device:system" | "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>;
@@ -25,9 +25,7 @@ const deviceTypePermissions = {
25
25
  'nvr-analytics-server': zod_1.z
26
26
  .literal('device:nvr-analytics-server')
27
27
  .describe('View NVR analytics servers'),
28
- 'device-other': zod_1.z
29
- .literal('device:device-other')
30
- .describe('View other devices'),
28
+ system: zod_1.z.literal('device:system').describe('View system devices'),
31
29
  };
32
30
  const sDeviceTypePermissions = Object.values(deviceTypePermissions);
33
31
  exports.sPermissionId = zod_1.z.union([
@@ -264,11 +264,11 @@ export declare const sAgentDeviceInfo: z.ZodIntersection<z.ZodObject<{
264
264
  }, {
265
265
  type: "nvr-analytics-server";
266
266
  }>, z.ZodObject<{
267
- type: z.ZodLiteral<"device-other">;
267
+ type: z.ZodLiteral<"system">;
268
268
  }, "strip", z.ZodTypeAny, {
269
- type: "device-other";
269
+ type: "system";
270
270
  }, {
271
- type: "device-other";
271
+ type: "system";
272
272
  }>]>>;
273
273
  export declare const sDeviceParam: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
274
274
  name: z.ZodString;
@@ -517,11 +517,11 @@ export declare const sDeviceParam: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.
517
517
  }, {
518
518
  type: "nvr-analytics-server";
519
519
  }>, z.ZodObject<{
520
- type: z.ZodLiteral<"device-other">;
520
+ type: z.ZodLiteral<"system">;
521
521
  }, "strip", z.ZodTypeAny, {
522
- type: "device-other";
522
+ type: "system";
523
523
  }, {
524
- type: "device-other";
524
+ type: "system";
525
525
  }>]>>]>;
526
526
  export declare const sNotificationSeverity: z.ZodEnum<["info", "warning", "critical"]>;
527
527
  export type NotificationSeverity = z.infer<typeof sNotificationSeverity>;