@awarevue/api-types 2.0.24 → 2.0.26

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 (139) hide show
  1. package/dist/_legacy/index.js +18 -2
  2. package/dist/_legacy/milestone.js +2 -1
  3. package/dist/_legacy/orchid.js +2 -1
  4. package/dist/alarm-automation.js +37 -26
  5. package/dist/api/agent-protocol/index.js +17 -1
  6. package/dist/api/agent-protocol/protocol.js +219 -212
  7. package/dist/api/commands/alarm.js +46 -43
  8. package/dist/api/commands/all.js +25 -22
  9. package/dist/api/commands/camera-lift.js +13 -10
  10. package/dist/api/commands/camera.js +65 -61
  11. package/dist/api/commands/display.js +27 -24
  12. package/dist/api/commands/door.js +21 -18
  13. package/dist/api/commands/index.js +28 -12
  14. package/dist/api/commands/intercom-terminal.js +2 -1
  15. package/dist/api/commands/io-board.js +11 -8
  16. package/dist/api/commands/nvr-exporter.js +20 -17
  17. package/dist/api/commands/pbx.js +13 -10
  18. package/dist/api/commands/presence-tracker.js +25 -22
  19. package/dist/api/commands/server.js +21 -18
  20. package/dist/api/error.js +93 -89
  21. package/dist/api/events/alarm.js +53 -50
  22. package/dist/api/events/all.js +57 -53
  23. package/dist/api/events/camera.js +68 -65
  24. package/dist/api/events/display.js +6 -3
  25. package/dist/api/events/door.js +60 -57
  26. package/dist/api/events/index.js +28 -12
  27. package/dist/api/events/intercom-terminal.js +16 -13
  28. package/dist/api/events/io-board.js +10 -7
  29. package/dist/api/events/nvr-exporter.js +14 -11
  30. package/dist/api/events/panic-button.js +8 -5
  31. package/dist/api/events/presence-tracker.js +29 -26
  32. package/dist/api/events/reader.js +11 -8
  33. package/dist/api/events/server.js +12 -9
  34. package/dist/api/index.js +25 -9
  35. package/dist/api/mqtt/index.js +17 -1
  36. package/dist/api/mqtt/payloads.js +15 -12
  37. package/dist/api/queries/all.js +23 -20
  38. package/dist/api/queries/camera.js +19 -16
  39. package/dist/api/queries/index.js +21 -5
  40. package/dist/api/queries/nvr-analytics-server.js +57 -54
  41. package/dist/api/queries/nvr-exporter.js +26 -23
  42. package/dist/api/queries/nvr-recorder.js +32 -29
  43. package/dist/api/rest/access-rule.js +14 -8
  44. package/dist/api/rest/agreement.js +6 -3
  45. package/dist/api/rest/alarm.js +2 -1
  46. package/dist/api/rest/api-keys.js +11 -8
  47. package/dist/api/rest/app.js +11 -8
  48. package/dist/api/rest/auth.js +12 -9
  49. package/dist/api/rest/automation.js +13 -10
  50. package/dist/api/rest/aware-config.js +2 -1
  51. package/dist/api/rest/bookmarks.js +17 -14
  52. package/dist/api/rest/cast.js +11 -5
  53. package/dist/api/rest/custom-field.js +6 -3
  54. package/dist/api/rest/device-event.js +2 -1
  55. package/dist/api/rest/device-group.js +19 -13
  56. package/dist/api/rest/file.js +2 -1
  57. package/dist/api/rest/index.js +50 -34
  58. package/dist/api/rest/io-device.js +21 -14
  59. package/dist/api/rest/layout.js +23 -17
  60. package/dist/api/rest/macros.js +6 -3
  61. package/dist/api/rest/media.js +55 -52
  62. package/dist/api/rest/module-config.js +2 -1
  63. package/dist/api/rest/notifications.js +11 -8
  64. package/dist/api/rest/person-agreement.js +11 -5
  65. package/dist/api/rest/person-presence.js +26 -23
  66. package/dist/api/rest/person-type.js +6 -3
  67. package/dist/api/rest/person.js +11 -5
  68. package/dist/api/rest/query.js +13 -8
  69. package/dist/api/rest/schedule.js +11 -8
  70. package/dist/api/rest/security-level.js +6 -3
  71. package/dist/api/rest/template.js +13 -10
  72. package/dist/api/rest/token-conversion.js +6 -3
  73. package/dist/api/rest/user.js +31 -28
  74. package/dist/api/rest/view.js +20 -14
  75. package/dist/api/rest/webrtc-playback.js +12 -6
  76. package/dist/api/rest/zone.js +14 -8
  77. package/dist/api/state/index.js +2 -1
  78. package/dist/api/ws/device-communication.js +46 -38
  79. package/dist/api/ws/index.js +21 -5
  80. package/dist/api/ws/notifications.js +17 -10
  81. package/dist/api/ws/progress.js +37 -30
  82. package/dist/api/ws/web-rtc-signaling.js +72 -65
  83. package/dist/api/ws/web-socket.js +5 -2
  84. package/dist/index.js +22 -6
  85. package/dist/objects/access-rule.js +32 -29
  86. package/dist/objects/agent-metadata.js +33 -30
  87. package/dist/objects/agreement.js +10 -7
  88. package/dist/objects/all.js +7 -4
  89. package/dist/objects/api-key.js +10 -7
  90. package/dist/objects/automation-rule.js +28 -25
  91. package/dist/objects/bookmark.js +14 -11
  92. package/dist/objects/credential.js +15 -9
  93. package/dist/objects/custom-field.js +11 -8
  94. package/dist/objects/device/alarm.js +6 -3
  95. package/dist/objects/device/any-device.js +206 -203
  96. package/dist/objects/device/camera-lift.js +6 -3
  97. package/dist/objects/device/camera.js +30 -27
  98. package/dist/objects/device/device-gateway.js +4 -1
  99. package/dist/objects/device/device-import.js +26 -23
  100. package/dist/objects/device/device-relation.js +16 -13
  101. package/dist/objects/device/display.js +6 -3
  102. package/dist/objects/device/door.js +10 -7
  103. package/dist/objects/device/index.js +38 -22
  104. package/dist/objects/device/intercom-operator.js +4 -1
  105. package/dist/objects/device/intercom-terminal.js +20 -17
  106. package/dist/objects/device/io-board.js +8 -5
  107. package/dist/objects/device/motion-sensor.js +6 -3
  108. package/dist/objects/device/nvr-analytics-server.js +8 -5
  109. package/dist/objects/device/nvr-exporter.js +9 -6
  110. package/dist/objects/device/nvr-recorder.js +8 -5
  111. package/dist/objects/device/panic-button.js +6 -3
  112. package/dist/objects/device/pbx.js +7 -4
  113. package/dist/objects/device/presence-tracker.js +4 -1
  114. package/dist/objects/device/reader.js +4 -1
  115. package/dist/objects/device/server.js +4 -1
  116. package/dist/objects/device/system.js +7 -4
  117. package/dist/objects/device-group.js +11 -8
  118. package/dist/objects/index.js +44 -28
  119. package/dist/objects/layout.js +23 -20
  120. package/dist/objects/macro.js +20 -17
  121. package/dist/objects/module-config.js +2 -1
  122. package/dist/objects/notification.js +15 -12
  123. package/dist/objects/person-agreement.js +10 -7
  124. package/dist/objects/person-presence.js +32 -29
  125. package/dist/objects/person-type.js +17 -11
  126. package/dist/objects/person.js +42 -39
  127. package/dist/objects/role.js +11 -8
  128. package/dist/objects/schedule.js +45 -39
  129. package/dist/objects/security-level.js +13 -10
  130. package/dist/objects/template.js +10 -7
  131. package/dist/objects/token-conversion.js +10 -7
  132. package/dist/objects/user.js +14 -11
  133. package/dist/objects/view.js +53 -50
  134. package/dist/objects/world-object.js +8 -5
  135. package/dist/objects/zone.js +16 -13
  136. package/dist/package.json +1 -1
  137. package/dist/permissions.js +149 -146
  138. package/dist/primitives.js +30 -27
  139. package/package.json +1 -1
@@ -1,4 +1,7 @@
1
- import { z } from 'zod';
2
- export const DISPLAY = 'display';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sDisplaySpecs = exports.DISPLAY = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.DISPLAY = 'display';
3
6
  // SPECS
4
- export const sDisplaySpecs = z.object({});
7
+ exports.sDisplaySpecs = zod_1.z.object({});
@@ -1,9 +1,12 @@
1
- import { z } from 'zod';
2
- export const DOOR = 'door';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sDoorSpecs = exports.DOOR = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.DOOR = 'door';
3
6
  // SPECS
4
- export const sDoorSpecs = z.object({
5
- canReportOpenState: z.boolean(),
6
- canReportLockState: z.boolean(),
7
- canControlLock: z.boolean(),
8
- canRelease: z.boolean(),
7
+ exports.sDoorSpecs = zod_1.z.object({
8
+ canReportOpenState: zod_1.z.boolean(),
9
+ canReportLockState: zod_1.z.boolean(),
10
+ canControlLock: zod_1.z.boolean(),
11
+ canRelease: zod_1.z.boolean(),
9
12
  });
@@ -1,22 +1,38 @@
1
- export * from './camera';
2
- export * from './door';
3
- export * from './any-device';
4
- export * from './device-import';
5
- export * from './device-relation';
6
- export * from './reader';
7
- export * from './io-board';
8
- export * from './camera-lift';
9
- export * from './motion-sensor';
10
- export * from './intercom-operator';
11
- export * from './intercom-terminal';
12
- export * from './panic-button';
13
- export * from './pbx';
14
- export * from './server';
15
- export * from './alarm';
16
- export * from './device-gateway';
17
- export * from './presence-tracker';
18
- export * from './display';
19
- export * from './nvr-recorder';
20
- export * from './nvr-exporter';
21
- export * from './nvr-analytics-server';
22
- export * from './system';
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./camera"), exports);
18
+ __exportStar(require("./door"), exports);
19
+ __exportStar(require("./any-device"), exports);
20
+ __exportStar(require("./device-import"), exports);
21
+ __exportStar(require("./device-relation"), exports);
22
+ __exportStar(require("./reader"), exports);
23
+ __exportStar(require("./io-board"), exports);
24
+ __exportStar(require("./camera-lift"), exports);
25
+ __exportStar(require("./motion-sensor"), exports);
26
+ __exportStar(require("./intercom-operator"), exports);
27
+ __exportStar(require("./intercom-terminal"), exports);
28
+ __exportStar(require("./panic-button"), exports);
29
+ __exportStar(require("./pbx"), exports);
30
+ __exportStar(require("./server"), exports);
31
+ __exportStar(require("./alarm"), exports);
32
+ __exportStar(require("./device-gateway"), exports);
33
+ __exportStar(require("./presence-tracker"), exports);
34
+ __exportStar(require("./display"), exports);
35
+ __exportStar(require("./nvr-recorder"), exports);
36
+ __exportStar(require("./nvr-exporter"), exports);
37
+ __exportStar(require("./nvr-analytics-server"), exports);
38
+ __exportStar(require("./system"), exports);
@@ -1 +1,4 @@
1
- export const INTERCOM_OPERATOR = 'intercom-operator';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.INTERCOM_OPERATOR = void 0;
4
+ exports.INTERCOM_OPERATOR = 'intercom-operator';
@@ -1,23 +1,26 @@
1
- import { z } from 'zod';
2
- export const INTERCOM_TERMINAL = 'intercom-terminal';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sIntercomTerminalState = exports.sAddIntercomTerminal = exports.sIntercomTerminalSpecs = exports.INTERCOM_TERMINAL = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.INTERCOM_TERMINAL = 'intercom-terminal';
3
6
  // SPECS
4
- export const sIntercomTerminalSpecs = z.object({
5
- sipUri: z.string(),
6
- sipUser: z.string(),
7
- sipPassword: z.string(),
8
- sipRealm: z.string(),
9
- remoteExtension: z.string(),
7
+ exports.sIntercomTerminalSpecs = zod_1.z.object({
8
+ sipUri: zod_1.z.string(),
9
+ sipUser: zod_1.z.string(),
10
+ sipPassword: zod_1.z.string(),
11
+ sipRealm: zod_1.z.string(),
12
+ remoteExtension: zod_1.z.string(),
10
13
  });
11
- export const sAddIntercomTerminal = z.object({
12
- name: z.string(),
13
- foreignRef: z.string(),
14
- specs: sIntercomTerminalSpecs,
14
+ exports.sAddIntercomTerminal = zod_1.z.object({
15
+ name: zod_1.z.string(),
16
+ foreignRef: zod_1.z.string(),
17
+ specs: exports.sIntercomTerminalSpecs,
15
18
  });
16
19
  // STATE
17
- const sCallState = z.enum(['connecting', 'connected', 'ringing', 'terminated']);
18
- export const sIntercomTerminalState = z.object({
20
+ const sCallState = zod_1.z.enum(['connecting', 'connected', 'ringing', 'terminated']);
21
+ exports.sIntercomTerminalState = zod_1.z.object({
19
22
  callState: sCallState.nullable(),
20
- connected: z.boolean(),
21
- callId: z.string().nullable(),
22
- peer: z.string().nullable(),
23
+ connected: zod_1.z.boolean(),
24
+ callId: zod_1.z.string().nullable(),
25
+ peer: zod_1.z.string().nullable(),
23
26
  });
@@ -1,7 +1,10 @@
1
- import { z } from 'zod';
2
- export const IO_BOARD = 'io-board';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sIoBoardSpecs = exports.IO_BOARD = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.IO_BOARD = 'io-board';
3
6
  // SPECS
4
- export const sIoBoardSpecs = z.object({
5
- inputs: z.array(z.string().nonempty()),
6
- outputs: z.array(z.string().nonempty()),
7
+ exports.sIoBoardSpecs = zod_1.z.object({
8
+ inputs: zod_1.z.array(zod_1.z.string().nonempty()),
9
+ outputs: zod_1.z.array(zod_1.z.string().nonempty()),
7
10
  });
@@ -1,4 +1,7 @@
1
- import { z } from 'zod';
2
- export const MOTION_SENSOR = 'motion-sensor';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sMotionSensorSpecs = exports.MOTION_SENSOR = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.MOTION_SENSOR = 'motion-sensor';
3
6
  // SPECS
4
- export const sMotionSensorSpecs = z.object({});
7
+ exports.sMotionSensorSpecs = zod_1.z.object({});
@@ -1,6 +1,9 @@
1
- import { z } from 'zod';
2
- export const NVR_ANALYTICS_SERVER = 'nvr-analytics-server';
3
- export const sAnalyticsServerSpecs = z.object({});
4
- export const sAnalyticsServerStateDto = z.object({
5
- connected: z.boolean(),
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sAnalyticsServerStateDto = exports.sAnalyticsServerSpecs = exports.NVR_ANALYTICS_SERVER = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.NVR_ANALYTICS_SERVER = 'nvr-analytics-server';
6
+ exports.sAnalyticsServerSpecs = zod_1.z.object({});
7
+ exports.sAnalyticsServerStateDto = zod_1.z.object({
8
+ connected: zod_1.z.boolean(),
6
9
  });
@@ -1,7 +1,10 @@
1
- import { z } from 'zod';
2
- export const NVR_EXPORTER = 'nvr-exporter';
3
- export const sExporterSpecs = z.object({});
4
- export const sExporterStateDto = z.object({
5
- connected: z.boolean(),
6
- exportsInProgress: z.array(z.string().nonempty()),
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sExporterStateDto = exports.sExporterSpecs = exports.NVR_EXPORTER = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.NVR_EXPORTER = 'nvr-exporter';
6
+ exports.sExporterSpecs = zod_1.z.object({});
7
+ exports.sExporterStateDto = zod_1.z.object({
8
+ connected: zod_1.z.boolean(),
9
+ exportsInProgress: zod_1.z.array(zod_1.z.string().nonempty()),
7
10
  });
@@ -1,6 +1,9 @@
1
- import { z } from 'zod';
2
- export const NVR_RECORDER = 'nvr-recorder';
3
- export const sRecorderSpecs = z.object({});
4
- export const sRecorderStateDto = z.object({
5
- connected: z.boolean(),
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sRecorderStateDto = exports.sRecorderSpecs = exports.NVR_RECORDER = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.NVR_RECORDER = 'nvr-recorder';
6
+ exports.sRecorderSpecs = zod_1.z.object({});
7
+ exports.sRecorderStateDto = zod_1.z.object({
8
+ connected: zod_1.z.boolean(),
6
9
  });
@@ -1,4 +1,7 @@
1
- import { z } from 'zod';
2
- export const PANIC_BUTTON = 'panic-button';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sPanicButtonSpecs = exports.PANIC_BUTTON = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PANIC_BUTTON = 'panic-button';
3
6
  // SPECS
4
- export const sPanicButtonSpecs = z.object({});
7
+ exports.sPanicButtonSpecs = zod_1.z.object({});
@@ -1,6 +1,9 @@
1
- import { z } from 'zod';
2
- export const PBX = 'pbx';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sPbxSpecs = exports.PBX = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PBX = 'pbx';
3
6
  // SPECS
4
- export const sPbxSpecs = z.object({
5
- sipWsUrl: z.string(),
7
+ exports.sPbxSpecs = zod_1.z.object({
8
+ sipWsUrl: zod_1.z.string(),
6
9
  });
@@ -1 +1,4 @@
1
- export const PRESENCE_TRACKER = 'presence-tracker';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRESENCE_TRACKER = void 0;
4
+ exports.PRESENCE_TRACKER = 'presence-tracker';
@@ -1 +1,4 @@
1
- export const READER = 'reader';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.READER = void 0;
4
+ exports.READER = 'reader';
@@ -1 +1,4 @@
1
- export const SERVER = 'server';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SERVER = void 0;
4
+ exports.SERVER = 'server';
@@ -1,6 +1,9 @@
1
- import { z } from 'zod';
2
- export const SYSTEM = 'system';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sSystemDeviceStateDto = exports.sSystemDeviceSpecs = exports.SYSTEM = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.SYSTEM = 'system';
3
6
  // SPECS
4
- export const sSystemDeviceSpecs = z.object({});
7
+ exports.sSystemDeviceSpecs = zod_1.z.object({});
5
8
  // STATE
6
- export const sSystemDeviceStateDto = z.record(z.unknown());
9
+ exports.sSystemDeviceStateDto = zod_1.z.record(zod_1.z.unknown());
@@ -1,9 +1,12 @@
1
- import { z } from 'zod';
2
- export const sDeviceGroup = z.object({
3
- id: z.string(),
4
- code: z.string().nullable(),
5
- displayName: z.string(),
6
- createdOn: z.string(),
7
- lastModifiedOn: z.string(),
8
- devices: z.array(z.string().nonempty()),
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sDeviceGroup = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.sDeviceGroup = zod_1.z.object({
6
+ id: zod_1.z.string(),
7
+ code: zod_1.z.string().nullable(),
8
+ displayName: zod_1.z.string(),
9
+ createdOn: zod_1.z.string(),
10
+ lastModifiedOn: zod_1.z.string(),
11
+ devices: zod_1.z.array(zod_1.z.string().nonempty()),
9
12
  });
@@ -1,28 +1,44 @@
1
- export * from './access-rule';
2
- export * from './agreement';
3
- export * from './all';
4
- export * from './custom-field';
5
- export * from './token-conversion';
6
- export * from './api-key';
7
- export * from './automation-rule';
8
- export * from './device-group';
9
- export * from './layout';
10
- export * from './person';
11
- export * from './role';
12
- export * from './user';
13
- export * from './view';
14
- export * from './zone';
15
- export * from './bookmark';
16
- export * from './macro';
17
- export * from './person-presence';
18
- export * from './person-type';
19
- export * from './schedule';
20
- export * from './security-level';
21
- export * from './notification';
22
- export * from './credential';
23
- export * from './template';
24
- export * from './person-agreement';
25
- export * from './agent-metadata';
26
- export * from './world-object';
27
- export * from './device';
28
- export * from './module-config';
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./access-rule"), exports);
18
+ __exportStar(require("./agreement"), exports);
19
+ __exportStar(require("./all"), exports);
20
+ __exportStar(require("./custom-field"), exports);
21
+ __exportStar(require("./token-conversion"), exports);
22
+ __exportStar(require("./api-key"), exports);
23
+ __exportStar(require("./automation-rule"), exports);
24
+ __exportStar(require("./device-group"), exports);
25
+ __exportStar(require("./layout"), exports);
26
+ __exportStar(require("./person"), exports);
27
+ __exportStar(require("./role"), exports);
28
+ __exportStar(require("./user"), exports);
29
+ __exportStar(require("./view"), exports);
30
+ __exportStar(require("./zone"), exports);
31
+ __exportStar(require("./bookmark"), exports);
32
+ __exportStar(require("./macro"), exports);
33
+ __exportStar(require("./person-presence"), exports);
34
+ __exportStar(require("./person-type"), exports);
35
+ __exportStar(require("./schedule"), exports);
36
+ __exportStar(require("./security-level"), exports);
37
+ __exportStar(require("./notification"), exports);
38
+ __exportStar(require("./credential"), exports);
39
+ __exportStar(require("./template"), exports);
40
+ __exportStar(require("./person-agreement"), exports);
41
+ __exportStar(require("./agent-metadata"), exports);
42
+ __exportStar(require("./world-object"), exports);
43
+ __exportStar(require("./device"), exports);
44
+ __exportStar(require("./module-config"), exports);
@@ -1,22 +1,25 @@
1
- import { z } from 'zod';
2
- export const sLayoutDeviceDto = z.object({
3
- deviceId: z.string(),
4
- x: z.number(),
5
- y: z.number(),
6
- scale: z.number(),
7
- rotation: z.number(),
8
- fov: z.number(),
9
- far: z.number(),
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sLayoutDto = exports.sLayoutDeviceDto = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.sLayoutDeviceDto = zod_1.z.object({
6
+ deviceId: zod_1.z.string(),
7
+ x: zod_1.z.number(),
8
+ y: zod_1.z.number(),
9
+ scale: zod_1.z.number(),
10
+ rotation: zod_1.z.number(),
11
+ fov: zod_1.z.number(),
12
+ far: zod_1.z.number(),
10
13
  });
11
- export const sLayoutDto = z.object({
12
- id: z.string(),
13
- name: z.string(),
14
- thumbnailUrl: z.string(),
15
- imageUrl: z.string(),
16
- order: z.number(),
17
- isDefault: z.boolean(),
18
- devices: z.array(sLayoutDeviceDto),
19
- colorize: z.boolean(),
20
- createdOn: z.string(),
21
- lastModifiedOn: z.string(),
14
+ exports.sLayoutDto = zod_1.z.object({
15
+ id: zod_1.z.string(),
16
+ name: zod_1.z.string(),
17
+ thumbnailUrl: zod_1.z.string(),
18
+ imageUrl: zod_1.z.string(),
19
+ order: zod_1.z.number(),
20
+ isDefault: zod_1.z.boolean(),
21
+ devices: zod_1.z.array(exports.sLayoutDeviceDto),
22
+ colorize: zod_1.z.boolean(),
23
+ createdOn: zod_1.z.string(),
24
+ lastModifiedOn: zod_1.z.string(),
22
25
  });
@@ -1,22 +1,25 @@
1
- import { z } from 'zod';
2
- export const sMacroItemDto = z.object({
3
- id: z.string().nullable(),
4
- stepId: z.string().nonempty(),
5
- deviceId: z.string().uuid().nonempty(),
6
- command: z.string().nonempty(),
7
- params: z.record(z.unknown()),
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sMacroDto = exports.sMacroItemDto = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.sMacroItemDto = zod_1.z.object({
6
+ id: zod_1.z.string().nullable(),
7
+ stepId: zod_1.z.string().nonempty(),
8
+ deviceId: zod_1.z.string().uuid().nonempty(),
9
+ command: zod_1.z.string().nonempty(),
10
+ params: zod_1.z.record(zod_1.z.unknown()),
8
11
  });
9
- export const sMacroDto = z.object({
10
- id: z.string().nonempty(),
11
- displayName: z.string().nonempty(),
12
- code: z.string().nullable().describe('The code of the macro rule'),
13
- module: z
12
+ exports.sMacroDto = zod_1.z.object({
13
+ id: zod_1.z.string().nonempty(),
14
+ displayName: zod_1.z.string().nonempty(),
15
+ code: zod_1.z.string().nullable().describe('The code of the macro rule'),
16
+ module: zod_1.z
14
17
  .string()
15
18
  .nullable()
16
19
  .describe('The module the macro rule belongs to'),
17
- metadata: z.record(z.unknown()),
18
- createdOn: z.string(),
19
- lastModifiedOn: z.string(),
20
- createdBy: z.string().nullable(),
21
- items: z.array(sMacroItemDto),
20
+ metadata: zod_1.z.record(zod_1.z.unknown()),
21
+ createdOn: zod_1.z.string(),
22
+ lastModifiedOn: zod_1.z.string(),
23
+ createdBy: zod_1.z.string().nullable(),
24
+ items: zod_1.z.array(exports.sMacroItemDto),
22
25
  });
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +1,16 @@
1
- import { sDeviceId, sNotificationSeverity } from '../primitives';
2
- import { z } from 'zod';
3
- export const sNotificationDto = z.object({
4
- id: z.string().nonempty(),
5
- source: sDeviceId,
6
- message: z.string().nonempty(),
7
- severity: sNotificationSeverity,
8
- metadata: z.record(z.unknown()),
9
- notificationRef: z.string().nonempty().nullable(),
10
- createdOn: z.number().int().nonnegative(),
11
- acknowledgedBy: z.string().nonempty().nullable(),
12
- acknowledgedOn: z.number().int().nonnegative().nullable(),
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sNotificationDto = void 0;
4
+ const primitives_1 = require("../primitives");
5
+ const zod_1 = require("zod");
6
+ exports.sNotificationDto = zod_1.z.object({
7
+ id: zod_1.z.string().nonempty(),
8
+ source: primitives_1.sDeviceId,
9
+ message: zod_1.z.string().nonempty(),
10
+ severity: primitives_1.sNotificationSeverity,
11
+ metadata: zod_1.z.record(zod_1.z.unknown()),
12
+ notificationRef: zod_1.z.string().nonempty().nullable(),
13
+ createdOn: zod_1.z.number().int().nonnegative(),
14
+ acknowledgedBy: zod_1.z.string().nonempty().nullable(),
15
+ acknowledgedOn: zod_1.z.number().int().nonnegative().nullable(),
13
16
  });
@@ -1,8 +1,11 @@
1
- import { z } from 'zod';
2
- export const sPersonAgeementDto = z.object({
3
- personId: z.string(),
4
- agreementId: z.string(),
5
- agreementImage: z.string(),
6
- createdOn: z.string().date(),
7
- lastModifiedOn: z.string().date(),
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sPersonAgeementDto = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.sPersonAgeementDto = zod_1.z.object({
6
+ personId: zod_1.z.string(),
7
+ agreementId: zod_1.z.string(),
8
+ agreementImage: zod_1.z.string(),
9
+ createdOn: zod_1.z.string().date(),
10
+ lastModifiedOn: zod_1.z.string().date(),
8
11
  });
@@ -1,35 +1,38 @@
1
- import { z } from 'zod';
2
- export const sPresencePersonDto = z.object({
3
- id: z.string(),
4
- firstName: z.string(),
5
- lastName: z.string(),
6
- avatarId: z.string().nullable(),
7
- type: z.string().min(1).max(16),
8
- position: z.string().max(128).nullable(),
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sPersonPresenceActionDto = exports.sPersonPresenceDto = exports.sPresenceZoneDto = exports.sPresencePersonDto = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.sPresencePersonDto = zod_1.z.object({
6
+ id: zod_1.z.string(),
7
+ firstName: zod_1.z.string(),
8
+ lastName: zod_1.z.string(),
9
+ avatarId: zod_1.z.string().nullable(),
10
+ type: zod_1.z.string().min(1).max(16),
11
+ position: zod_1.z.string().max(128).nullable(),
9
12
  });
10
- export const sPresenceZoneDto = z.object({
11
- id: z.string(),
12
- displayName: z.string(),
13
- isGlobal: z
13
+ exports.sPresenceZoneDto = zod_1.z.object({
14
+ id: zod_1.z.string(),
15
+ displayName: zod_1.z.string(),
16
+ isGlobal: zod_1.z
14
17
  .boolean()
15
18
  .describe('Whether the zone is the designated global zone'),
16
19
  });
17
- export const sPersonPresenceDto = z.object({
18
- id: z.string(),
19
- person: sPresencePersonDto,
20
- zone: z.union([sPresenceZoneDto, z.string()]),
21
- online: z.boolean().nullable(),
22
- onLeave: z.boolean(),
23
- lastCheckInOn: z.number().nullable(),
24
- lastCheckOutOn: z.number().nullable(),
25
- securityChecked: z.boolean(),
20
+ exports.sPersonPresenceDto = zod_1.z.object({
21
+ id: zod_1.z.string(),
22
+ person: exports.sPresencePersonDto,
23
+ zone: zod_1.z.union([exports.sPresenceZoneDto, zod_1.z.string()]),
24
+ online: zod_1.z.boolean().nullable(),
25
+ onLeave: zod_1.z.boolean(),
26
+ lastCheckInOn: zod_1.z.number().nullable(),
27
+ lastCheckOutOn: zod_1.z.number().nullable(),
28
+ securityChecked: zod_1.z.boolean(),
26
29
  });
27
- export const sPersonPresenceActionDto = z.object({
28
- id: z.string(),
29
- person: z.union([sPresencePersonDto, z.string()]),
30
- zone: z.union([sPresenceZoneDto, z.string()]),
31
- timestamp: z.number(),
32
- checkInOrOut: z.boolean(),
33
- isLeave: z.boolean(),
34
- checkCompleted: z.boolean(),
30
+ exports.sPersonPresenceActionDto = zod_1.z.object({
31
+ id: zod_1.z.string(),
32
+ person: zod_1.z.union([exports.sPresencePersonDto, zod_1.z.string()]),
33
+ zone: zod_1.z.union([exports.sPresenceZoneDto, zod_1.z.string()]),
34
+ timestamp: zod_1.z.number(),
35
+ checkInOrOut: zod_1.z.boolean(),
36
+ isLeave: zod_1.z.boolean(),
37
+ checkCompleted: zod_1.z.boolean(),
35
38
  });