@awarevue/api-types 2.0.13 → 2.0.15

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 (135) hide show
  1. package/dist/access-control/access-rule.d.ts +6 -6
  2. package/dist/access-control/person.d.ts +6 -6
  3. package/dist/access-control/schedule.d.ts +2 -2
  4. package/dist/access-control/zone.d.ts +4 -4
  5. package/dist/agent-communication/index.d.ts +0 -1
  6. package/dist/agent-communication/index.js +0 -1
  7. package/dist/agent-communication/protocol.d.ts +170 -170
  8. package/dist/alarm-automation.d.ts +1 -1
  9. package/dist/api/alarm.d.ts +1 -1
  10. package/dist/api/media.d.ts +8 -8
  11. package/dist/bookmarks.d.ts +2 -2
  12. package/dist/cast.d.ts +2 -2
  13. package/dist/commands/alarm.d.ts +312 -0
  14. package/dist/commands/alarm.js +62 -0
  15. package/dist/{device-command.d.ts → commands/all.d.ts} +650 -19
  16. package/dist/{device-command.js → commands/all.js} +11 -9
  17. package/dist/commands/camera-lift.d.ts +46 -0
  18. package/dist/commands/camera-lift.js +17 -0
  19. package/dist/commands/camera.d.ts +478 -0
  20. package/dist/commands/camera.js +97 -0
  21. package/dist/commands/display.d.ts +431 -0
  22. package/dist/commands/display.js +37 -0
  23. package/dist/commands/door.d.ts +88 -0
  24. package/dist/commands/door.js +27 -0
  25. package/dist/commands/index.d.ts +12 -0
  26. package/dist/commands/index.js +28 -0
  27. package/dist/commands/intercom-terminal.d.ts +40 -0
  28. package/dist/{device/reader/commands.js → commands/intercom-terminal.js} +1 -0
  29. package/dist/commands/io-board.d.ts +55 -0
  30. package/dist/commands/io-board.js +15 -0
  31. package/dist/commands/nvr-exporter.d.ts +1262 -0
  32. package/dist/commands/nvr-exporter.js +26 -0
  33. package/dist/commands/pbx.d.ts +75 -0
  34. package/dist/commands/pbx.js +17 -0
  35. package/dist/commands/presence-tracker.d.ts +167 -0
  36. package/dist/commands/presence-tracker.js +33 -0
  37. package/dist/commands/server.d.ts +1272 -0
  38. package/dist/commands/server.js +27 -0
  39. package/dist/device/alarm.d.ts +0 -530
  40. package/dist/device/alarm.js +1 -110
  41. package/dist/device/any-device.d.ts +88 -88
  42. package/dist/device/camera-lift.d.ts +0 -45
  43. package/dist/device/camera-lift.js +1 -14
  44. package/dist/device/camera.d.ts +0 -1248
  45. package/dist/device/camera.js +1 -204
  46. package/dist/device/device-gateway.d.ts +0 -2
  47. package/dist/device/device-gateway.js +1 -0
  48. package/dist/device/display.d.ts +0 -438
  49. package/dist/device/display.js +1 -39
  50. package/dist/device/door.d.ts +0 -306
  51. package/dist/device/door.js +1 -82
  52. package/dist/device/index.d.ts +1 -1
  53. package/dist/device/index.js +1 -1
  54. package/dist/device/intercom-operator.js +0 -1
  55. package/dist/device/intercom-terminal.d.ts +0 -101
  56. package/dist/device/intercom-terminal.js +3 -55
  57. package/dist/device/io-board.d.ts +0 -84
  58. package/dist/device/io-board.js +1 -21
  59. package/dist/device/motion-sensor.js +0 -1
  60. package/dist/device/nvr-analytics-server.d.ts +0 -295
  61. package/dist/device/nvr-analytics-server.js +1 -65
  62. package/dist/device/nvr-exporter.d.ts +0 -1436
  63. package/dist/device/nvr-exporter.js +1 -72
  64. package/dist/device/nvr-recorder.d.ts +0 -2633
  65. package/dist/device/nvr-recorder.js +1 -39
  66. package/dist/device/panic-button.d.ts +0 -18
  67. package/dist/device/panic-button.js +1 -8
  68. package/dist/device/pbx.d.ts +0 -74
  69. package/dist/device/pbx.js +1 -16
  70. package/dist/device/presence-tracker.d.ts +0 -302
  71. package/dist/device/presence-tracker.js +1 -59
  72. package/dist/device/server.d.ts +0 -1336
  73. package/dist/device/server.js +1 -37
  74. package/dist/device/system.d.ts +0 -42
  75. package/dist/device/system.js +1 -13
  76. package/dist/device-event.d.ts +1 -721
  77. package/dist/device-event.js +0 -110
  78. package/dist/device-group.d.ts +2 -2
  79. package/dist/device-import.d.ts +8 -8
  80. package/dist/events/alarm.d.ts +220 -0
  81. package/dist/events/alarm.js +55 -0
  82. package/dist/events/all.d.ts +700 -0
  83. package/dist/events/all.js +109 -0
  84. package/dist/events/camera.d.ts +661 -0
  85. package/dist/events/camera.js +87 -0
  86. package/dist/events/display.d.ts +9 -0
  87. package/dist/events/display.js +9 -0
  88. package/dist/events/door.d.ts +220 -0
  89. package/dist/events/door.js +62 -0
  90. package/dist/events/index.d.ts +12 -0
  91. package/dist/events/index.js +28 -0
  92. package/dist/events/intercom-terminal.d.ts +61 -0
  93. package/dist/events/intercom-terminal.js +19 -0
  94. package/dist/events/io-board.d.ts +31 -0
  95. package/dist/events/io-board.js +13 -0
  96. package/dist/events/nvr-exporter.d.ts +52 -0
  97. package/dist/events/nvr-exporter.js +21 -0
  98. package/dist/events/panic-button.d.ts +19 -0
  99. package/dist/events/panic-button.js +11 -0
  100. package/dist/events/presence-tracker.d.ts +136 -0
  101. package/dist/events/presence-tracker.js +33 -0
  102. package/dist/events/server.d.ts +65 -0
  103. package/dist/events/server.js +15 -0
  104. package/dist/index.d.ts +4 -1
  105. package/dist/index.js +4 -1
  106. package/dist/layout.d.ts +8 -8
  107. package/dist/macros.d.ts +14 -14
  108. package/dist/messages/device-communication.d.ts +2 -2
  109. package/dist/messages/notifications.d.ts +2 -2
  110. package/dist/messages/web-rtc-signaling.d.ts +10 -10
  111. package/dist/notifications.d.ts +4 -4
  112. package/dist/package.json +1 -1
  113. package/dist/primitives.d.ts +16 -0
  114. package/dist/primitives.js +13 -1
  115. package/dist/{agent-communication/queries.d.ts → queries/all.d.ts} +12 -10
  116. package/dist/queries/all.js +21 -0
  117. package/dist/queries/camera.d.ts +98 -0
  118. package/dist/queries/camera.js +27 -0
  119. package/dist/queries/index.d.ts +5 -0
  120. package/dist/{device/reader → queries}/index.js +5 -3
  121. package/dist/queries/nvr-analytics-server.d.ts +296 -0
  122. package/dist/queries/nvr-analytics-server.js +68 -0
  123. package/dist/queries/nvr-exporter.d.ts +125 -0
  124. package/dist/queries/nvr-exporter.js +36 -0
  125. package/dist/queries/nvr-recorder.d.ts +2634 -0
  126. package/dist/queries/nvr-recorder.js +42 -0
  127. package/dist/user.d.ts +4 -4
  128. package/package.json +1 -1
  129. package/dist/agent-communication/queries.js +0 -19
  130. package/dist/device/reader/commands.d.ts +0 -1
  131. package/dist/device/reader/index.d.ts +0 -3
  132. /package/dist/device/{reader/specs.d.ts → reader.d.ts} +0 -0
  133. /package/dist/device/{reader/specs.js → reader.js} +0 -0
  134. /package/dist/{device/reader/events.d.ts → events/reader.d.ts} +0 -0
  135. /package/dist/{device/reader/events.js → events/reader.js} +0 -0
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.nvrExporterCommandSchemas = exports.sDeleteExportCommand = exports.sStartExportCommand = void 0;
4
+ const primitives_1 = require("../primitives");
5
+ const zod_1 = require("zod");
6
+ // COMMANDS
7
+ exports.sStartExportCommand = zod_1.z.object({
8
+ command: zod_1.z.literal('nvr-exporter.start-export'),
9
+ params: zod_1.z.object({
10
+ requestId: zod_1.z.string().nonempty(),
11
+ device: primitives_1.sDeviceParam,
12
+ timeFrom: zod_1.z.number().int().nonnegative(),
13
+ timeTo: zod_1.z.number().int().nonnegative(),
14
+ name: zod_1.z.string().nonempty(),
15
+ }),
16
+ });
17
+ exports.sDeleteExportCommand = zod_1.z.object({
18
+ command: zod_1.z.literal('nvr-exporter.delete-export'),
19
+ params: zod_1.z.object({
20
+ exportId: zod_1.z.string().nonempty(),
21
+ }),
22
+ });
23
+ exports.nvrExporterCommandSchemas = {
24
+ 'nvr-exporter.start-export': exports.sStartExportCommand,
25
+ 'nvr-exporter.delete-export': exports.sDeleteExportCommand,
26
+ };
@@ -0,0 +1,75 @@
1
+ import { z } from 'zod';
2
+ export declare const sPbxCallCommand: z.ZodObject<{
3
+ command: z.ZodLiteral<"pbx.call">;
4
+ params: z.ZodObject<{
5
+ endpoint: z.ZodString;
6
+ soundFile: z.ZodString;
7
+ context: z.ZodOptional<z.ZodString>;
8
+ callerId: z.ZodOptional<z.ZodString>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ endpoint: string;
11
+ soundFile: string;
12
+ context?: string | undefined;
13
+ callerId?: string | undefined;
14
+ }, {
15
+ endpoint: string;
16
+ soundFile: string;
17
+ context?: string | undefined;
18
+ callerId?: string | undefined;
19
+ }>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ params: {
22
+ endpoint: string;
23
+ soundFile: string;
24
+ context?: string | undefined;
25
+ callerId?: string | undefined;
26
+ };
27
+ command: "pbx.call";
28
+ }, {
29
+ params: {
30
+ endpoint: string;
31
+ soundFile: string;
32
+ context?: string | undefined;
33
+ callerId?: string | undefined;
34
+ };
35
+ command: "pbx.call";
36
+ }>;
37
+ export declare const pbxCommands: {
38
+ readonly 'pbx.call': z.ZodObject<{
39
+ command: z.ZodLiteral<"pbx.call">;
40
+ params: z.ZodObject<{
41
+ endpoint: z.ZodString;
42
+ soundFile: z.ZodString;
43
+ context: z.ZodOptional<z.ZodString>;
44
+ callerId: z.ZodOptional<z.ZodString>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ endpoint: string;
47
+ soundFile: string;
48
+ context?: string | undefined;
49
+ callerId?: string | undefined;
50
+ }, {
51
+ endpoint: string;
52
+ soundFile: string;
53
+ context?: string | undefined;
54
+ callerId?: string | undefined;
55
+ }>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ params: {
58
+ endpoint: string;
59
+ soundFile: string;
60
+ context?: string | undefined;
61
+ callerId?: string | undefined;
62
+ };
63
+ command: "pbx.call";
64
+ }, {
65
+ params: {
66
+ endpoint: string;
67
+ soundFile: string;
68
+ context?: string | undefined;
69
+ callerId?: string | undefined;
70
+ };
71
+ command: "pbx.call";
72
+ }>;
73
+ };
74
+ export type PbxCallCommand = z.infer<typeof sPbxCallCommand>;
75
+ export type PbxCommand = PbxCallCommand;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pbxCommands = exports.sPbxCallCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ // COMMANDS
6
+ exports.sPbxCallCommand = zod_1.z.object({
7
+ command: zod_1.z.literal('pbx.call'),
8
+ params: zod_1.z.object({
9
+ endpoint: zod_1.z.string().nonempty(),
10
+ soundFile: zod_1.z.string().nonempty(),
11
+ context: zod_1.z.string().optional(),
12
+ callerId: zod_1.z.string().optional(),
13
+ }),
14
+ });
15
+ exports.pbxCommands = {
16
+ 'pbx.call': exports.sPbxCallCommand,
17
+ };
@@ -0,0 +1,167 @@
1
+ import { z } from 'zod';
2
+ export declare const sCheckInPersonCommand: z.ZodObject<{
3
+ command: z.ZodLiteral<"presence-tracker.check-in">;
4
+ params: z.ZodObject<{
5
+ personId: z.ZodString;
6
+ zoneId: z.ZodNullable<z.ZodString>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ personId: string;
9
+ zoneId: string | null;
10
+ }, {
11
+ personId: string;
12
+ zoneId: string | null;
13
+ }>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ params: {
16
+ personId: string;
17
+ zoneId: string | null;
18
+ };
19
+ command: "presence-tracker.check-in";
20
+ }, {
21
+ params: {
22
+ personId: string;
23
+ zoneId: string | null;
24
+ };
25
+ command: "presence-tracker.check-in";
26
+ }>;
27
+ export type CheckInPerson = z.infer<typeof sCheckInPersonCommand>;
28
+ export declare const sCheckOutPersonCommand: z.ZodObject<{
29
+ command: z.ZodLiteral<"presence-tracker.check-out">;
30
+ params: z.ZodObject<{
31
+ personId: z.ZodString;
32
+ zoneId: z.ZodNullable<z.ZodString>;
33
+ leave: z.ZodBoolean;
34
+ }, "strip", z.ZodTypeAny, {
35
+ personId: string;
36
+ zoneId: string | null;
37
+ leave: boolean;
38
+ }, {
39
+ personId: string;
40
+ zoneId: string | null;
41
+ leave: boolean;
42
+ }>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ params: {
45
+ personId: string;
46
+ zoneId: string | null;
47
+ leave: boolean;
48
+ };
49
+ command: "presence-tracker.check-out";
50
+ }, {
51
+ params: {
52
+ personId: string;
53
+ zoneId: string | null;
54
+ leave: boolean;
55
+ };
56
+ command: "presence-tracker.check-out";
57
+ }>;
58
+ export type CheckOutPerson = z.infer<typeof sCheckOutPersonCommand>;
59
+ export declare const sTogglePresenceCommand: z.ZodObject<{
60
+ command: z.ZodLiteral<"presence-tracker.toggle-presence">;
61
+ params: z.ZodObject<{
62
+ personId: z.ZodString;
63
+ zoneId: z.ZodNullable<z.ZodString>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ personId: string;
66
+ zoneId: string | null;
67
+ }, {
68
+ personId: string;
69
+ zoneId: string | null;
70
+ }>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ params: {
73
+ personId: string;
74
+ zoneId: string | null;
75
+ };
76
+ command: "presence-tracker.toggle-presence";
77
+ }, {
78
+ params: {
79
+ personId: string;
80
+ zoneId: string | null;
81
+ };
82
+ command: "presence-tracker.toggle-presence";
83
+ }>;
84
+ export type TogglePresence = z.infer<typeof sTogglePresenceCommand>;
85
+ export declare const presenceTrackerCommands: {
86
+ readonly 'presence-tracker.check-in': z.ZodObject<{
87
+ command: z.ZodLiteral<"presence-tracker.check-in">;
88
+ params: z.ZodObject<{
89
+ personId: z.ZodString;
90
+ zoneId: z.ZodNullable<z.ZodString>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ personId: string;
93
+ zoneId: string | null;
94
+ }, {
95
+ personId: string;
96
+ zoneId: string | null;
97
+ }>;
98
+ }, "strip", z.ZodTypeAny, {
99
+ params: {
100
+ personId: string;
101
+ zoneId: string | null;
102
+ };
103
+ command: "presence-tracker.check-in";
104
+ }, {
105
+ params: {
106
+ personId: string;
107
+ zoneId: string | null;
108
+ };
109
+ command: "presence-tracker.check-in";
110
+ }>;
111
+ readonly 'presence-tracker.check-out': z.ZodObject<{
112
+ command: z.ZodLiteral<"presence-tracker.check-out">;
113
+ params: z.ZodObject<{
114
+ personId: z.ZodString;
115
+ zoneId: z.ZodNullable<z.ZodString>;
116
+ leave: z.ZodBoolean;
117
+ }, "strip", z.ZodTypeAny, {
118
+ personId: string;
119
+ zoneId: string | null;
120
+ leave: boolean;
121
+ }, {
122
+ personId: string;
123
+ zoneId: string | null;
124
+ leave: boolean;
125
+ }>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ params: {
128
+ personId: string;
129
+ zoneId: string | null;
130
+ leave: boolean;
131
+ };
132
+ command: "presence-tracker.check-out";
133
+ }, {
134
+ params: {
135
+ personId: string;
136
+ zoneId: string | null;
137
+ leave: boolean;
138
+ };
139
+ command: "presence-tracker.check-out";
140
+ }>;
141
+ readonly 'presence-tracker.toggle-presence': z.ZodObject<{
142
+ command: z.ZodLiteral<"presence-tracker.toggle-presence">;
143
+ params: z.ZodObject<{
144
+ personId: z.ZodString;
145
+ zoneId: z.ZodNullable<z.ZodString>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ personId: string;
148
+ zoneId: string | null;
149
+ }, {
150
+ personId: string;
151
+ zoneId: string | null;
152
+ }>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ params: {
155
+ personId: string;
156
+ zoneId: string | null;
157
+ };
158
+ command: "presence-tracker.toggle-presence";
159
+ }, {
160
+ params: {
161
+ personId: string;
162
+ zoneId: string | null;
163
+ };
164
+ command: "presence-tracker.toggle-presence";
165
+ }>;
166
+ };
167
+ export type PresenceTrackerCommand = CheckInPerson | CheckOutPerson | TogglePresence;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.presenceTrackerCommands = exports.sTogglePresenceCommand = exports.sCheckOutPersonCommand = exports.sCheckInPersonCommand = void 0;
4
+ const primitives_1 = require("../primitives");
5
+ const zod_1 = require("zod");
6
+ // COMMANDS
7
+ exports.sCheckInPersonCommand = zod_1.z.object({
8
+ command: zod_1.z.literal('presence-tracker.check-in'),
9
+ params: zod_1.z.object({
10
+ personId: primitives_1.sPersonId,
11
+ zoneId: primitives_1.sZoneId.nullable(),
12
+ }),
13
+ });
14
+ exports.sCheckOutPersonCommand = zod_1.z.object({
15
+ command: zod_1.z.literal('presence-tracker.check-out'),
16
+ params: zod_1.z.object({
17
+ personId: primitives_1.sPersonId,
18
+ zoneId: primitives_1.sZoneId.nullable(),
19
+ leave: zod_1.z.boolean(),
20
+ }),
21
+ });
22
+ exports.sTogglePresenceCommand = zod_1.z.object({
23
+ command: zod_1.z.literal('presence-tracker.toggle-presence'),
24
+ params: zod_1.z.object({
25
+ personId: primitives_1.sPersonId,
26
+ zoneId: primitives_1.sZoneId.nullable(),
27
+ }),
28
+ });
29
+ exports.presenceTrackerCommands = {
30
+ 'presence-tracker.check-in': exports.sCheckInPersonCommand,
31
+ 'presence-tracker.check-out': exports.sCheckOutPersonCommand,
32
+ 'presence-tracker.toggle-presence': exports.sTogglePresenceCommand,
33
+ };