@awarevue/api-types 2.0.12 → 2.0.14

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} +23 -25
  16. package/dist/{device-command.js → commands/all.js} +9 -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 -200
  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 +20 -2
  114. package/dist/primitives.js +19 -3
  115. package/dist/{agent-communication/queries.d.ts → queries/all.d.ts} +24 -22
  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
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.cameraResponseSchemas = exports.cameraRequestSchemas = exports.sRtspDataResponse = exports.sRtspDataArgs = exports.QUERY_RTSP_DATA = exports.cameraEventSchemasByKind = exports.sSceneEnded = exports.sSceneUpdated = exports.sSceneCreated = exports.sSceneData = exports.sObjectDetectionEnded = exports.sObjectDetectionUpdated = exports.sObjectDetectionStarted = exports.sObjectDetectionData = exports.sObjectLocator = exports.sBoxLocator = exports.sCameraPtzPresetSaved = exports.cameraCommands = exports.sCameraDisableDetectionCommand = exports.sCameraEnableDetectionCommand = exports.sCameraDisableCommand = exports.sCameraEnableCommand = exports.sCameraPtzEndMoveCommand = exports.sCameraPtzBeginMoveCommand = exports.sCameraPtzMoveCommand = exports.sPtzDirection = exports.sCameraPtzSetCommand = exports.sCameraPresetDeleteCommand = exports.sCameraPresetActivateCommand = exports.sCameraPresetSaveCommand = exports.sCameraPresetInfo = exports.isPtzParams = exports.sCameraSpecs = exports.sStreamInfo = exports.sWebRtcPlaybackSource = exports.CAMERA = void 0;
4
- const primitives_1 = require("../primitives");
3
+ exports.sCameraSpecs = exports.sStreamInfo = exports.sWebRtcPlaybackSource = exports.CAMERA = void 0;
5
4
  const zod_1 = require("zod");
6
5
  exports.CAMERA = 'camera';
7
6
  // SPECS
@@ -33,205 +32,3 @@ exports.sCameraSpecs = zod_1.z.object({
33
32
  streams: zod_1.z.array(exports.sStreamInfo),
34
33
  defaultStreamId: zod_1.z.string().nonempty(),
35
34
  });
36
- const isPtzParams = (params) => typeof params.pan === 'number' &&
37
- typeof params.tilt === 'number' &&
38
- typeof params.zoom === 'number';
39
- exports.isPtzParams = isPtzParams;
40
- // COMMANDS
41
- exports.sCameraPresetInfo = zod_1.z.object({
42
- name: zod_1.z.string().nonempty(),
43
- isDefault: zod_1.z.boolean(),
44
- values: zod_1.z.unknown(),
45
- });
46
- exports.sCameraPresetSaveCommand = zod_1.z.object({
47
- command: zod_1.z.literal('camera.preset-save'),
48
- params: zod_1.z.object({
49
- presetId: primitives_1.sPresetId,
50
- presetInfo: exports.sCameraPresetInfo,
51
- }),
52
- });
53
- exports.sCameraPresetActivateCommand = zod_1.z.object({
54
- command: zod_1.z.literal('camera.preset-activate'),
55
- params: zod_1.z.object({
56
- presetId: primitives_1.sPresetId,
57
- }),
58
- });
59
- exports.sCameraPresetDeleteCommand = zod_1.z.object({
60
- command: zod_1.z.literal('camera.preset-delete'),
61
- params: zod_1.z.object({
62
- presetId: primitives_1.sPresetId,
63
- assignedRef: zod_1.z.string().nullable(),
64
- }),
65
- });
66
- exports.sCameraPtzSetCommand = zod_1.z.object({
67
- command: zod_1.z.literal('camera.ptz-set'),
68
- params: zod_1.z.object({
69
- pan: zod_1.z.number(),
70
- tilt: zod_1.z.number(),
71
- zoom: zod_1.z.number(),
72
- }),
73
- });
74
- exports.sPtzDirection = zod_1.z.enum([
75
- 'Up',
76
- 'Down',
77
- 'Left',
78
- 'Right',
79
- 'ZoomIn',
80
- 'ZoomOut',
81
- 'UpLeft',
82
- 'UpRight',
83
- 'DownLeft',
84
- 'DownRight',
85
- ]);
86
- exports.sCameraPtzMoveCommand = zod_1.z.object({
87
- command: zod_1.z.literal('camera.ptz-move'),
88
- params: zod_1.z.object({
89
- direction: exports.sPtzDirection,
90
- }),
91
- });
92
- exports.sCameraPtzBeginMoveCommand = zod_1.z.object({
93
- command: zod_1.z.literal('camera.ptz-begin-move'),
94
- params: zod_1.z.object({
95
- pan: zod_1.z.number(),
96
- tilt: zod_1.z.number(),
97
- zoom: zod_1.z.number(),
98
- }),
99
- });
100
- exports.sCameraPtzEndMoveCommand = zod_1.z.object({
101
- command: zod_1.z.literal('camera.ptz-end-move'),
102
- params: zod_1.z.object({}),
103
- });
104
- exports.sCameraEnableCommand = zod_1.z.object({
105
- command: zod_1.z.literal('camera.enable'),
106
- params: zod_1.z.object({}),
107
- });
108
- exports.sCameraDisableCommand = zod_1.z.object({
109
- command: zod_1.z.literal('camera.disable'),
110
- params: zod_1.z.object({}),
111
- });
112
- exports.sCameraEnableDetectionCommand = zod_1.z.object({
113
- command: zod_1.z.literal('camera.enable-detection'),
114
- params: zod_1.z.object({}),
115
- });
116
- exports.sCameraDisableDetectionCommand = zod_1.z.object({
117
- command: zod_1.z.literal('camera.disable-detection'),
118
- params: zod_1.z.object({}),
119
- });
120
- exports.cameraCommands = {
121
- 'camera.ptz-set': exports.sCameraPtzSetCommand,
122
- 'camera.ptz-move': exports.sCameraPtzMoveCommand,
123
- 'camera.enable': exports.sCameraEnableCommand,
124
- 'camera.disable': exports.sCameraDisableCommand,
125
- 'camera.preset-save': exports.sCameraPresetSaveCommand,
126
- 'camera.preset-activate': exports.sCameraPresetActivateCommand,
127
- 'camera.preset-delete': exports.sCameraPresetDeleteCommand,
128
- 'camera.ptz-begin-move': exports.sCameraPtzBeginMoveCommand,
129
- 'camera.ptz-end-move': exports.sCameraPtzEndMoveCommand,
130
- 'camera.enable-detection': exports.sCameraEnableDetectionCommand,
131
- 'camera.disable-detection': exports.sCameraDisableDetectionCommand,
132
- };
133
- // EVENTS
134
- exports.sCameraPtzPresetSaved = zod_1.z.object({
135
- kind: zod_1.z.literal('ptz-preset-saved'),
136
- presetId: zod_1.z.string().nonempty(),
137
- presetInfo: exports.sCameraPresetInfo,
138
- assignedRef: zod_1.z.string().nullable(),
139
- });
140
- exports.sBoxLocator = zod_1.z.object({
141
- locatorKind: zod_1.z.literal('box'),
142
- x1: zod_1.z.number(),
143
- y1: zod_1.z.number(),
144
- x2: zod_1.z.number(),
145
- y2: zod_1.z.number(),
146
- });
147
- exports.sObjectLocator = exports.sBoxLocator;
148
- exports.sObjectDetectionData = zod_1.z
149
- .object({
150
- objectKind: zod_1.z.string().nullable(),
151
- probability: zod_1.z.number(),
152
- identifiedObjectId: zod_1.z.string().nullable(),
153
- frameTime: zod_1.z.number(),
154
- startTime: zod_1.z.number(),
155
- endTime: zod_1.z.number().nullable(),
156
- })
157
- .and(exports.sObjectLocator);
158
- exports.sObjectDetectionStarted = zod_1.z
159
- .object({
160
- kind: zod_1.z.literal('object-detection-started'),
161
- providerAssignedRef: zod_1.z.string().nonempty(),
162
- detectionProvider: zod_1.z.string().nonempty(),
163
- })
164
- .and(exports.sObjectDetectionData);
165
- exports.sObjectDetectionUpdated = zod_1.z
166
- .object({
167
- kind: zod_1.z.literal('object-detection-updated'),
168
- providerAssignedRef: zod_1.z.string().nonempty(),
169
- detectionProvider: zod_1.z.string().nonempty(),
170
- })
171
- .and(exports.sObjectDetectionData);
172
- exports.sObjectDetectionEnded = zod_1.z
173
- .object({
174
- kind: zod_1.z.literal('object-detection-ended'),
175
- providerAssignedRef: zod_1.z.string().nonempty(),
176
- detectionProvider: zod_1.z.string().nonempty(),
177
- })
178
- .and(exports.sObjectDetectionData);
179
- exports.sSceneData = zod_1.z.object({
180
- detections: zod_1.z.array(zod_1.z.string()),
181
- clipUrl: zod_1.z.string().optional(),
182
- startTime: zod_1.z.number(),
183
- endTime: zod_1.z.number().nullable(),
184
- });
185
- exports.sSceneCreated = zod_1.z
186
- .object({
187
- kind: zod_1.z.literal('scene-created'),
188
- providerAssignedRef: zod_1.z.string().nonempty(),
189
- detectionProvider: zod_1.z.string().nonempty(),
190
- })
191
- .and(exports.sSceneData);
192
- exports.sSceneUpdated = zod_1.z
193
- .object({
194
- kind: zod_1.z.literal('scene-updated'),
195
- providerAssignedRef: zod_1.z.string().nonempty(),
196
- detectionProvider: zod_1.z.string().nonempty(),
197
- })
198
- .and(exports.sSceneData);
199
- exports.sSceneEnded = zod_1.z
200
- .object({
201
- kind: zod_1.z.literal('scene-ended'),
202
- providerAssignedRef: zod_1.z.string().nonempty(),
203
- detectionProvider: zod_1.z.string().nonempty(),
204
- })
205
- .and(exports.sSceneData);
206
- exports.cameraEventSchemasByKind = {
207
- 'ptz-preset-saved': exports.sCameraPtzPresetSaved,
208
- 'object-detection-started': exports.sObjectDetectionStarted,
209
- 'object-detection-updated': exports.sObjectDetectionUpdated,
210
- 'object-detection-ended': exports.sObjectDetectionEnded,
211
- 'scene-created': exports.sSceneCreated,
212
- 'scene-updated': exports.sSceneUpdated,
213
- 'scene-ended': exports.sSceneEnded,
214
- };
215
- // QUERIES
216
- // -- RTSP DATA
217
- exports.QUERY_RTSP_DATA = 'cctv:rtsp-data';
218
- exports.sRtspDataArgs = zod_1.z.object({});
219
- exports.sRtspDataResponse = zod_1.z.object({
220
- cameraName: zod_1.z.string(),
221
- username: zod_1.z.string(),
222
- password: zod_1.z.string(),
223
- streams: zod_1.z.array(zod_1.z.object({
224
- streamId: zod_1.z.string(),
225
- displayName: zod_1.z.string(),
226
- resolution: zod_1.z.string().nullable(),
227
- rtspUrl: zod_1.z.string(),
228
- })),
229
- });
230
- // Dictionary of request schemas by query type
231
- exports.cameraRequestSchemas = {
232
- [exports.QUERY_RTSP_DATA]: exports.sRtspDataArgs,
233
- };
234
- // Dictionary of response schemas by query type
235
- exports.cameraResponseSchemas = {
236
- [exports.QUERY_RTSP_DATA]: exports.sRtspDataResponse,
237
- };
@@ -1,3 +1 @@
1
1
  export declare const DEVICE_GATEWAY = "device-gateway";
2
- export type DeviceGatewayCommand = never;
3
- export type DeviceGatewayEvent = never;
@@ -2,3 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DEVICE_GATEWAY = void 0;
4
4
  exports.DEVICE_GATEWAY = 'device-gateway';
5
+ // SPECS
@@ -2,444 +2,6 @@ import { z } from 'zod';
2
2
  export declare const DISPLAY: "display";
3
3
  export declare const sDisplaySpecs: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4
4
  export type DisplaySpecs = z.infer<typeof sDisplaySpecs>;
5
- export declare const sDisplayTileItemCamera: z.ZodObject<{
6
- type: z.ZodLiteral<"camera">;
7
- name: z.ZodString;
8
- username: z.ZodString;
9
- password: z.ZodString;
10
- streams: z.ZodArray<z.ZodObject<{
11
- streamId: z.ZodString;
12
- displayName: z.ZodString;
13
- resolution: z.ZodNullable<z.ZodString>;
14
- rtspUrl: z.ZodString;
15
- }, "strip", z.ZodTypeAny, {
16
- resolution: string | null;
17
- displayName: string;
18
- streamId: string;
19
- rtspUrl: string;
20
- }, {
21
- resolution: string | null;
22
- displayName: string;
23
- streamId: string;
24
- rtspUrl: string;
25
- }>, "many">;
26
- }, "strip", z.ZodTypeAny, {
27
- name: string;
28
- type: "camera";
29
- streams: {
30
- resolution: string | null;
31
- displayName: string;
32
- streamId: string;
33
- rtspUrl: string;
34
- }[];
35
- username: string;
36
- password: string;
37
- }, {
38
- name: string;
39
- type: "camera";
40
- streams: {
41
- resolution: string | null;
42
- displayName: string;
43
- streamId: string;
44
- rtspUrl: string;
45
- }[];
46
- username: string;
47
- password: string;
48
- }>;
49
- export declare const sDisplayTileItemEmpty: z.ZodObject<{
50
- type: z.ZodLiteral<"empty">;
51
- }, "strip", z.ZodTypeAny, {
52
- type: "empty";
53
- }, {
54
- type: "empty";
55
- }>;
56
- export declare const sDisplayTileItem: z.ZodUnion<[z.ZodObject<{
57
- type: z.ZodLiteral<"camera">;
58
- name: z.ZodString;
59
- username: z.ZodString;
60
- password: z.ZodString;
61
- streams: z.ZodArray<z.ZodObject<{
62
- streamId: z.ZodString;
63
- displayName: z.ZodString;
64
- resolution: z.ZodNullable<z.ZodString>;
65
- rtspUrl: z.ZodString;
66
- }, "strip", z.ZodTypeAny, {
67
- resolution: string | null;
68
- displayName: string;
69
- streamId: string;
70
- rtspUrl: string;
71
- }, {
72
- resolution: string | null;
73
- displayName: string;
74
- streamId: string;
75
- rtspUrl: string;
76
- }>, "many">;
77
- }, "strip", z.ZodTypeAny, {
78
- name: string;
79
- type: "camera";
80
- streams: {
81
- resolution: string | null;
82
- displayName: string;
83
- streamId: string;
84
- rtspUrl: string;
85
- }[];
86
- username: string;
87
- password: string;
88
- }, {
89
- name: string;
90
- type: "camera";
91
- streams: {
92
- resolution: string | null;
93
- displayName: string;
94
- streamId: string;
95
- rtspUrl: string;
96
- }[];
97
- username: string;
98
- password: string;
99
- }>, z.ZodObject<{
100
- type: z.ZodLiteral<"empty">;
101
- }, "strip", z.ZodTypeAny, {
102
- type: "empty";
103
- }, {
104
- type: "empty";
105
- }>]>;
106
- export type DisplayTileItemCamera = z.infer<typeof sDisplayTileItemCamera>;
107
- export type DisplayTileItemEmpty = z.infer<typeof sDisplayTileItemEmpty>;
108
- export type DisplayTileItem = z.infer<typeof sDisplayTileItem>;
109
- export declare const sDisplaySetViewCommand: z.ZodObject<{
110
- command: z.ZodLiteral<"display.set-view">;
111
- params: z.ZodObject<{
112
- tiles: z.ZodArray<z.ZodObject<{
113
- items: z.ZodArray<z.ZodUnion<[z.ZodObject<{
114
- type: z.ZodLiteral<"camera">;
115
- name: z.ZodString;
116
- username: z.ZodString;
117
- password: z.ZodString;
118
- streams: z.ZodArray<z.ZodObject<{
119
- streamId: z.ZodString;
120
- displayName: z.ZodString;
121
- resolution: z.ZodNullable<z.ZodString>;
122
- rtspUrl: z.ZodString;
123
- }, "strip", z.ZodTypeAny, {
124
- resolution: string | null;
125
- displayName: string;
126
- streamId: string;
127
- rtspUrl: string;
128
- }, {
129
- resolution: string | null;
130
- displayName: string;
131
- streamId: string;
132
- rtspUrl: string;
133
- }>, "many">;
134
- }, "strip", z.ZodTypeAny, {
135
- name: string;
136
- type: "camera";
137
- streams: {
138
- resolution: string | null;
139
- displayName: string;
140
- streamId: string;
141
- rtspUrl: string;
142
- }[];
143
- username: string;
144
- password: string;
145
- }, {
146
- name: string;
147
- type: "camera";
148
- streams: {
149
- resolution: string | null;
150
- displayName: string;
151
- streamId: string;
152
- rtspUrl: string;
153
- }[];
154
- username: string;
155
- password: string;
156
- }>, z.ZodObject<{
157
- type: z.ZodLiteral<"empty">;
158
- }, "strip", z.ZodTypeAny, {
159
- type: "empty";
160
- }, {
161
- type: "empty";
162
- }>]>, "many">;
163
- }, "strip", z.ZodTypeAny, {
164
- items: ({
165
- name: string;
166
- type: "camera";
167
- streams: {
168
- resolution: string | null;
169
- displayName: string;
170
- streamId: string;
171
- rtspUrl: string;
172
- }[];
173
- username: string;
174
- password: string;
175
- } | {
176
- type: "empty";
177
- })[];
178
- }, {
179
- items: ({
180
- name: string;
181
- type: "camera";
182
- streams: {
183
- resolution: string | null;
184
- displayName: string;
185
- streamId: string;
186
- rtspUrl: string;
187
- }[];
188
- username: string;
189
- password: string;
190
- } | {
191
- type: "empty";
192
- })[];
193
- }>, "many">;
194
- }, "strip", z.ZodTypeAny, {
195
- tiles: {
196
- items: ({
197
- name: string;
198
- type: "camera";
199
- streams: {
200
- resolution: string | null;
201
- displayName: string;
202
- streamId: string;
203
- rtspUrl: string;
204
- }[];
205
- username: string;
206
- password: string;
207
- } | {
208
- type: "empty";
209
- })[];
210
- }[];
211
- }, {
212
- tiles: {
213
- items: ({
214
- name: string;
215
- type: "camera";
216
- streams: {
217
- resolution: string | null;
218
- displayName: string;
219
- streamId: string;
220
- rtspUrl: string;
221
- }[];
222
- username: string;
223
- password: string;
224
- } | {
225
- type: "empty";
226
- })[];
227
- }[];
228
- }>;
229
- }, "strip", z.ZodTypeAny, {
230
- params: {
231
- tiles: {
232
- items: ({
233
- name: string;
234
- type: "camera";
235
- streams: {
236
- resolution: string | null;
237
- displayName: string;
238
- streamId: string;
239
- rtspUrl: string;
240
- }[];
241
- username: string;
242
- password: string;
243
- } | {
244
- type: "empty";
245
- })[];
246
- }[];
247
- };
248
- command: "display.set-view";
249
- }, {
250
- params: {
251
- tiles: {
252
- items: ({
253
- name: string;
254
- type: "camera";
255
- streams: {
256
- resolution: string | null;
257
- displayName: string;
258
- streamId: string;
259
- rtspUrl: string;
260
- }[];
261
- username: string;
262
- password: string;
263
- } | {
264
- type: "empty";
265
- })[];
266
- }[];
267
- };
268
- command: "display.set-view";
269
- }>;
270
- export type DisplaySetViewCommand = z.infer<typeof sDisplaySetViewCommand>;
271
- export declare const displayCommands: {
272
- readonly 'display.set-view': z.ZodObject<{
273
- command: z.ZodLiteral<"display.set-view">;
274
- params: z.ZodObject<{
275
- tiles: z.ZodArray<z.ZodObject<{
276
- items: z.ZodArray<z.ZodUnion<[z.ZodObject<{
277
- type: z.ZodLiteral<"camera">;
278
- name: z.ZodString;
279
- username: z.ZodString;
280
- password: z.ZodString;
281
- streams: z.ZodArray<z.ZodObject<{
282
- streamId: z.ZodString;
283
- displayName: z.ZodString;
284
- resolution: z.ZodNullable<z.ZodString>;
285
- rtspUrl: z.ZodString;
286
- }, "strip", z.ZodTypeAny, {
287
- resolution: string | null;
288
- displayName: string;
289
- streamId: string;
290
- rtspUrl: string;
291
- }, {
292
- resolution: string | null;
293
- displayName: string;
294
- streamId: string;
295
- rtspUrl: string;
296
- }>, "many">;
297
- }, "strip", z.ZodTypeAny, {
298
- name: string;
299
- type: "camera";
300
- streams: {
301
- resolution: string | null;
302
- displayName: string;
303
- streamId: string;
304
- rtspUrl: string;
305
- }[];
306
- username: string;
307
- password: string;
308
- }, {
309
- name: string;
310
- type: "camera";
311
- streams: {
312
- resolution: string | null;
313
- displayName: string;
314
- streamId: string;
315
- rtspUrl: string;
316
- }[];
317
- username: string;
318
- password: string;
319
- }>, z.ZodObject<{
320
- type: z.ZodLiteral<"empty">;
321
- }, "strip", z.ZodTypeAny, {
322
- type: "empty";
323
- }, {
324
- type: "empty";
325
- }>]>, "many">;
326
- }, "strip", z.ZodTypeAny, {
327
- items: ({
328
- name: string;
329
- type: "camera";
330
- streams: {
331
- resolution: string | null;
332
- displayName: string;
333
- streamId: string;
334
- rtspUrl: string;
335
- }[];
336
- username: string;
337
- password: string;
338
- } | {
339
- type: "empty";
340
- })[];
341
- }, {
342
- items: ({
343
- name: string;
344
- type: "camera";
345
- streams: {
346
- resolution: string | null;
347
- displayName: string;
348
- streamId: string;
349
- rtspUrl: string;
350
- }[];
351
- username: string;
352
- password: string;
353
- } | {
354
- type: "empty";
355
- })[];
356
- }>, "many">;
357
- }, "strip", z.ZodTypeAny, {
358
- tiles: {
359
- items: ({
360
- name: string;
361
- type: "camera";
362
- streams: {
363
- resolution: string | null;
364
- displayName: string;
365
- streamId: string;
366
- rtspUrl: string;
367
- }[];
368
- username: string;
369
- password: string;
370
- } | {
371
- type: "empty";
372
- })[];
373
- }[];
374
- }, {
375
- tiles: {
376
- items: ({
377
- name: string;
378
- type: "camera";
379
- streams: {
380
- resolution: string | null;
381
- displayName: string;
382
- streamId: string;
383
- rtspUrl: string;
384
- }[];
385
- username: string;
386
- password: string;
387
- } | {
388
- type: "empty";
389
- })[];
390
- }[];
391
- }>;
392
- }, "strip", z.ZodTypeAny, {
393
- params: {
394
- tiles: {
395
- items: ({
396
- name: string;
397
- type: "camera";
398
- streams: {
399
- resolution: string | null;
400
- displayName: string;
401
- streamId: string;
402
- rtspUrl: string;
403
- }[];
404
- username: string;
405
- password: string;
406
- } | {
407
- type: "empty";
408
- })[];
409
- }[];
410
- };
411
- command: "display.set-view";
412
- }, {
413
- params: {
414
- tiles: {
415
- items: ({
416
- name: string;
417
- type: "camera";
418
- streams: {
419
- resolution: string | null;
420
- displayName: string;
421
- streamId: string;
422
- rtspUrl: string;
423
- }[];
424
- username: string;
425
- password: string;
426
- } | {
427
- type: "empty";
428
- })[];
429
- }[];
430
- };
431
- command: "display.set-view";
432
- }>;
433
- };
434
- export type DisplayCommand = DisplaySetViewCommand;
435
5
  export interface DisplayStateDto {
436
6
  connected: Record<string, boolean>;
437
7
  }
438
- export declare const sDisplayUnitOfflineEvent: z.ZodObject<{
439
- kind: z.ZodLiteral<"display-unit-offline">;
440
- }, "strip", z.ZodTypeAny, {
441
- kind: "display-unit-offline";
442
- }, {
443
- kind: "display-unit-offline";
444
- }>;
445
- export type DisplayUnitOfflineEvent = z.infer<typeof sDisplayUnitOfflineEvent>;