@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
@@ -11,92 +11,8 @@ export declare const sIoBoardSpecs: z.ZodObject<{
11
11
  outputs: string[];
12
12
  }>;
13
13
  export type IoBoardSpecs = z.infer<typeof sIoBoardSpecs>;
14
- export declare const sIoBoardSetOutputCommand: z.ZodObject<{
15
- command: z.ZodLiteral<"io-board.set-output">;
16
- params: z.ZodObject<{
17
- output: z.ZodString;
18
- value: z.ZodBoolean;
19
- }, "strip", z.ZodTypeAny, {
20
- value: boolean;
21
- output: string;
22
- }, {
23
- value: boolean;
24
- output: string;
25
- }>;
26
- }, "strip", z.ZodTypeAny, {
27
- params: {
28
- value: boolean;
29
- output: string;
30
- };
31
- command: "io-board.set-output";
32
- }, {
33
- params: {
34
- value: boolean;
35
- output: string;
36
- };
37
- command: "io-board.set-output";
38
- }>;
39
- export declare const ioBoardCommands: {
40
- readonly 'io-board.set-output': z.ZodObject<{
41
- command: z.ZodLiteral<"io-board.set-output">;
42
- params: z.ZodObject<{
43
- output: z.ZodString;
44
- value: z.ZodBoolean;
45
- }, "strip", z.ZodTypeAny, {
46
- value: boolean;
47
- output: string;
48
- }, {
49
- value: boolean;
50
- output: string;
51
- }>;
52
- }, "strip", z.ZodTypeAny, {
53
- params: {
54
- value: boolean;
55
- output: string;
56
- };
57
- command: "io-board.set-output";
58
- }, {
59
- params: {
60
- value: boolean;
61
- output: string;
62
- };
63
- command: "io-board.set-output";
64
- }>;
65
- };
66
- export type IoBoardSetOutputCommand = z.infer<typeof sIoBoardSetOutputCommand>;
67
- export type IoBoardCommand = IoBoardSetOutputCommand;
68
14
  export interface IoBoardStateDto {
69
15
  connected: boolean;
70
16
  inputValues: Record<string, boolean>;
71
17
  outputValues: Record<string, boolean>;
72
18
  }
73
- export declare const sIoBoardInputChangedEvent: z.ZodObject<{
74
- kind: z.ZodLiteral<"io-board-input-changed">;
75
- inputName: z.ZodString;
76
- value: z.ZodBoolean;
77
- }, "strip", z.ZodTypeAny, {
78
- value: boolean;
79
- kind: "io-board-input-changed";
80
- inputName: string;
81
- }, {
82
- value: boolean;
83
- kind: "io-board-input-changed";
84
- inputName: string;
85
- }>;
86
- export declare const ioBoardEventSchemaByKind: {
87
- readonly 'io-board-input-changed': z.ZodObject<{
88
- kind: z.ZodLiteral<"io-board-input-changed">;
89
- inputName: z.ZodString;
90
- value: z.ZodBoolean;
91
- }, "strip", z.ZodTypeAny, {
92
- value: boolean;
93
- kind: "io-board-input-changed";
94
- inputName: string;
95
- }, {
96
- value: boolean;
97
- kind: "io-board-input-changed";
98
- inputName: string;
99
- }>;
100
- };
101
- export type IoBoardInputChangedEvent = z.infer<typeof sIoBoardInputChangedEvent>;
102
- export type IoBoardEvent = IoBoardInputChangedEvent;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ioBoardEventSchemaByKind = exports.sIoBoardInputChangedEvent = exports.ioBoardCommands = exports.sIoBoardSetOutputCommand = exports.sIoBoardSpecs = exports.IO_BOARD = void 0;
3
+ exports.sIoBoardSpecs = exports.IO_BOARD = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.IO_BOARD = 'io-board';
6
6
  // SPECS
@@ -8,23 +8,3 @@ exports.sIoBoardSpecs = zod_1.z.object({
8
8
  inputs: zod_1.z.array(zod_1.z.string().nonempty()),
9
9
  outputs: zod_1.z.array(zod_1.z.string().nonempty()),
10
10
  });
11
- // COMMANDS
12
- exports.sIoBoardSetOutputCommand = zod_1.z.object({
13
- command: zod_1.z.literal('io-board.set-output'),
14
- params: zod_1.z.object({
15
- output: zod_1.z.string().nonempty(),
16
- value: zod_1.z.boolean(),
17
- }),
18
- });
19
- exports.ioBoardCommands = {
20
- 'io-board.set-output': exports.sIoBoardSetOutputCommand,
21
- };
22
- // EVENTS
23
- exports.sIoBoardInputChangedEvent = zod_1.z.object({
24
- kind: zod_1.z.literal('io-board-input-changed'),
25
- inputName: zod_1.z.string().nonempty(),
26
- value: zod_1.z.boolean(),
27
- });
28
- exports.ioBoardEventSchemaByKind = {
29
- 'io-board-input-changed': exports.sIoBoardInputChangedEvent,
30
- };
@@ -5,4 +5,3 @@ const zod_1 = require("zod");
5
5
  exports.MOTION_SENSOR = 'motion-sensor';
6
6
  // SPECS
7
7
  exports.sMotionSensorSpecs = zod_1.z.object({});
8
- // EVENTS
@@ -10,298 +10,3 @@ export declare const sAnalyticsServerStateDto: z.ZodObject<{
10
10
  connected: boolean;
11
11
  }>;
12
12
  export type AnalyticsServerStateDto = z.infer<typeof sAnalyticsServerStateDto>;
13
- export declare const QUERY_MEDIA_SEARCH = "cctv:media-search";
14
- export declare const sMediaSearchArgs: z.ZodObject<{
15
- devices: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
16
- limit: z.ZodOptional<z.ZodNumber>;
17
- q: z.ZodOptional<z.ZodString>;
18
- similarTo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
19
- label: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20
- timeFrom: z.ZodOptional<z.ZodNumber>;
21
- timeTo: z.ZodOptional<z.ZodNumber>;
22
- sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"time_asc">, z.ZodLiteral<"time_desc">]>>;
23
- }, "strip", z.ZodTypeAny, {
24
- label?: string[] | undefined;
25
- q?: string | undefined;
26
- devices?: any[] | undefined;
27
- limit?: number | undefined;
28
- timeFrom?: number | undefined;
29
- timeTo?: number | undefined;
30
- similarTo?: string | undefined;
31
- sortBy?: "time_asc" | "time_desc" | undefined;
32
- }, {
33
- label?: string[] | undefined;
34
- q?: string | undefined;
35
- devices?: any[] | undefined;
36
- limit?: number | undefined;
37
- timeFrom?: number | undefined;
38
- timeTo?: number | undefined;
39
- similarTo?: string | undefined;
40
- sortBy?: "time_asc" | "time_desc" | undefined;
41
- }>;
42
- export declare const sMediaSearchMatch: z.ZodObject<{
43
- relevance: z.ZodNumber;
44
- providerAssignedRef: z.ZodString;
45
- foreignRef: z.ZodString;
46
- provider: z.ZodString;
47
- probability: z.ZodNumber;
48
- objectKind: z.ZodString;
49
- startTime: z.ZodNumber;
50
- endTime: z.ZodNullable<z.ZodNumber>;
51
- }, "strip", z.ZodTypeAny, {
52
- endTime: number | null;
53
- startTime: number;
54
- objectKind: string;
55
- probability: number;
56
- providerAssignedRef: string;
57
- foreignRef: string;
58
- provider: string;
59
- relevance: number;
60
- }, {
61
- endTime: number | null;
62
- startTime: number;
63
- objectKind: string;
64
- probability: number;
65
- providerAssignedRef: string;
66
- foreignRef: string;
67
- provider: string;
68
- relevance: number;
69
- }>;
70
- export declare const sMediaSearchResponse: z.ZodArray<z.ZodObject<{
71
- relevance: z.ZodNumber;
72
- providerAssignedRef: z.ZodString;
73
- foreignRef: z.ZodString;
74
- provider: z.ZodString;
75
- probability: z.ZodNumber;
76
- objectKind: z.ZodString;
77
- startTime: z.ZodNumber;
78
- endTime: z.ZodNullable<z.ZodNumber>;
79
- }, "strip", z.ZodTypeAny, {
80
- endTime: number | null;
81
- startTime: number;
82
- objectKind: string;
83
- probability: number;
84
- providerAssignedRef: string;
85
- foreignRef: string;
86
- provider: string;
87
- relevance: number;
88
- }, {
89
- endTime: number | null;
90
- startTime: number;
91
- objectKind: string;
92
- probability: number;
93
- providerAssignedRef: string;
94
- foreignRef: string;
95
- provider: string;
96
- relevance: number;
97
- }>, "many">;
98
- export type MediaSearchArgs = z.infer<typeof sMediaSearchArgs>;
99
- export type MediaSearchMatch = z.infer<typeof sMediaSearchMatch>;
100
- export type MediaSearchResponse = z.infer<typeof sMediaSearchResponse>;
101
- export declare const QUERY_SCENE_PREVIEW_CLIP = "cctv:scene-preview-clip";
102
- export declare const sScenePreviewClipArgs: z.ZodObject<{
103
- providerAssignedRef: z.ZodString;
104
- }, "strip", z.ZodTypeAny, {
105
- providerAssignedRef: string;
106
- }, {
107
- providerAssignedRef: string;
108
- }>;
109
- export declare const sScenePreviewClipResponse: z.ZodNullable<z.ZodObject<{
110
- mimeType: z.ZodString;
111
- data: z.ZodString;
112
- }, "strip", z.ZodTypeAny, {
113
- data: string;
114
- mimeType: string;
115
- }, {
116
- data: string;
117
- mimeType: string;
118
- }>>;
119
- export type ScenePreviewClipArgs = z.infer<typeof sScenePreviewClipArgs>;
120
- export type ScenePreviewClipResponse = z.infer<typeof sScenePreviewClipResponse>;
121
- export declare const QUERY_OBJECT_SNAPSHOT = "cctv:object-snapshot";
122
- export declare const sObjectSnapshotArgs: z.ZodObject<{
123
- providerAssignedRef: z.ZodString;
124
- height: z.ZodOptional<z.ZodNumber>;
125
- quality: z.ZodOptional<z.ZodNumber>;
126
- crop: z.ZodBoolean;
127
- boxes: z.ZodBoolean;
128
- }, "strip", z.ZodTypeAny, {
129
- providerAssignedRef: string;
130
- crop: boolean;
131
- boxes: boolean;
132
- height?: number | undefined;
133
- quality?: number | undefined;
134
- }, {
135
- providerAssignedRef: string;
136
- crop: boolean;
137
- boxes: boolean;
138
- height?: number | undefined;
139
- quality?: number | undefined;
140
- }>;
141
- export declare const sObjectSnapshotResponse: z.ZodNullable<z.ZodObject<{
142
- mimeType: z.ZodString;
143
- data: z.ZodString;
144
- }, "strip", z.ZodTypeAny, {
145
- data: string;
146
- mimeType: string;
147
- }, {
148
- data: string;
149
- mimeType: string;
150
- }>>;
151
- export type ObjectSnapshotArgs = z.infer<typeof sObjectSnapshotArgs>;
152
- export type ObjectSnapshotResponse = z.infer<typeof sObjectSnapshotResponse>;
153
- export declare const QUERY_OBJECT_THUMBNAIL = "cctv:object-thumbnail";
154
- export declare const sObjectThumbnailArgs: z.ZodObject<{
155
- providerAssignedRef: z.ZodString;
156
- }, "strip", z.ZodTypeAny, {
157
- providerAssignedRef: string;
158
- }, {
159
- providerAssignedRef: string;
160
- }>;
161
- export declare const sObjectThumbnailResponse: z.ZodNullable<z.ZodObject<{
162
- mimeType: z.ZodString;
163
- data: z.ZodString;
164
- }, "strip", z.ZodTypeAny, {
165
- data: string;
166
- mimeType: string;
167
- }, {
168
- data: string;
169
- mimeType: string;
170
- }>>;
171
- export type ObjectThumbnailArgs = z.infer<typeof sObjectThumbnailArgs>;
172
- export type ObjectThumbnailResponse = z.infer<typeof sObjectThumbnailResponse>;
173
- export declare const nvrAnalyticsRequestSchemas: {
174
- readonly "cctv:media-search": z.ZodObject<{
175
- devices: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
176
- limit: z.ZodOptional<z.ZodNumber>;
177
- q: z.ZodOptional<z.ZodString>;
178
- similarTo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
179
- label: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
180
- timeFrom: z.ZodOptional<z.ZodNumber>;
181
- timeTo: z.ZodOptional<z.ZodNumber>;
182
- sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"time_asc">, z.ZodLiteral<"time_desc">]>>;
183
- }, "strip", z.ZodTypeAny, {
184
- label?: string[] | undefined;
185
- q?: string | undefined;
186
- devices?: any[] | undefined;
187
- limit?: number | undefined;
188
- timeFrom?: number | undefined;
189
- timeTo?: number | undefined;
190
- similarTo?: string | undefined;
191
- sortBy?: "time_asc" | "time_desc" | undefined;
192
- }, {
193
- label?: string[] | undefined;
194
- q?: string | undefined;
195
- devices?: any[] | undefined;
196
- limit?: number | undefined;
197
- timeFrom?: number | undefined;
198
- timeTo?: number | undefined;
199
- similarTo?: string | undefined;
200
- sortBy?: "time_asc" | "time_desc" | undefined;
201
- }>;
202
- readonly "cctv:scene-preview-clip": z.ZodObject<{
203
- providerAssignedRef: z.ZodString;
204
- }, "strip", z.ZodTypeAny, {
205
- providerAssignedRef: string;
206
- }, {
207
- providerAssignedRef: string;
208
- }>;
209
- readonly "cctv:object-snapshot": z.ZodObject<{
210
- providerAssignedRef: z.ZodString;
211
- height: z.ZodOptional<z.ZodNumber>;
212
- quality: z.ZodOptional<z.ZodNumber>;
213
- crop: z.ZodBoolean;
214
- boxes: z.ZodBoolean;
215
- }, "strip", z.ZodTypeAny, {
216
- providerAssignedRef: string;
217
- crop: boolean;
218
- boxes: boolean;
219
- height?: number | undefined;
220
- quality?: number | undefined;
221
- }, {
222
- providerAssignedRef: string;
223
- crop: boolean;
224
- boxes: boolean;
225
- height?: number | undefined;
226
- quality?: number | undefined;
227
- }>;
228
- readonly "cctv:object-thumbnail": z.ZodObject<{
229
- providerAssignedRef: z.ZodString;
230
- }, "strip", z.ZodTypeAny, {
231
- providerAssignedRef: string;
232
- }, {
233
- providerAssignedRef: string;
234
- }>;
235
- };
236
- export declare const nvrAnalyticsResponseSchemas: {
237
- readonly "cctv:media-search": z.ZodArray<z.ZodObject<{
238
- relevance: z.ZodNumber;
239
- providerAssignedRef: z.ZodString;
240
- foreignRef: z.ZodString;
241
- provider: z.ZodString;
242
- probability: z.ZodNumber;
243
- objectKind: z.ZodString;
244
- startTime: z.ZodNumber;
245
- endTime: z.ZodNullable<z.ZodNumber>;
246
- }, "strip", z.ZodTypeAny, {
247
- endTime: number | null;
248
- startTime: number;
249
- objectKind: string;
250
- probability: number;
251
- providerAssignedRef: string;
252
- foreignRef: string;
253
- provider: string;
254
- relevance: number;
255
- }, {
256
- endTime: number | null;
257
- startTime: number;
258
- objectKind: string;
259
- probability: number;
260
- providerAssignedRef: string;
261
- foreignRef: string;
262
- provider: string;
263
- relevance: number;
264
- }>, "many">;
265
- readonly "cctv:scene-preview-clip": z.ZodNullable<z.ZodObject<{
266
- mimeType: z.ZodString;
267
- data: z.ZodString;
268
- }, "strip", z.ZodTypeAny, {
269
- data: string;
270
- mimeType: string;
271
- }, {
272
- data: string;
273
- mimeType: string;
274
- }>>;
275
- readonly "cctv:object-snapshot": z.ZodNullable<z.ZodObject<{
276
- mimeType: z.ZodString;
277
- data: z.ZodString;
278
- }, "strip", z.ZodTypeAny, {
279
- data: string;
280
- mimeType: string;
281
- }, {
282
- data: string;
283
- mimeType: string;
284
- }>>;
285
- readonly "cctv:object-thumbnail": z.ZodNullable<z.ZodObject<{
286
- mimeType: z.ZodString;
287
- data: z.ZodString;
288
- }, "strip", z.ZodTypeAny, {
289
- data: string;
290
- mimeType: string;
291
- }, {
292
- data: string;
293
- mimeType: string;
294
- }>>;
295
- };
296
- export type NvrAnalyticsQueryRequestMap = {
297
- [QUERY_MEDIA_SEARCH]: MediaSearchArgs;
298
- [QUERY_SCENE_PREVIEW_CLIP]: ScenePreviewClipArgs;
299
- [QUERY_OBJECT_SNAPSHOT]: ObjectSnapshotArgs;
300
- [QUERY_OBJECT_THUMBNAIL]: ObjectThumbnailArgs;
301
- };
302
- export type NvrAnalyticsQueryResponseMap = {
303
- [QUERY_MEDIA_SEARCH]: MediaSearchResponse;
304
- [QUERY_SCENE_PREVIEW_CLIP]: ScenePreviewClipResponse;
305
- [QUERY_OBJECT_SNAPSHOT]: ObjectSnapshotResponse;
306
- [QUERY_OBJECT_THUMBNAIL]: ObjectThumbnailResponse;
307
- };
@@ -1,73 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.nvrAnalyticsResponseSchemas = exports.nvrAnalyticsRequestSchemas = exports.sObjectThumbnailResponse = exports.sObjectThumbnailArgs = exports.QUERY_OBJECT_THUMBNAIL = exports.sObjectSnapshotResponse = exports.sObjectSnapshotArgs = exports.QUERY_OBJECT_SNAPSHOT = exports.sScenePreviewClipResponse = exports.sScenePreviewClipArgs = exports.QUERY_SCENE_PREVIEW_CLIP = exports.sMediaSearchResponse = exports.sMediaSearchMatch = exports.sMediaSearchArgs = exports.QUERY_MEDIA_SEARCH = exports.sAnalyticsServerStateDto = exports.sAnalyticsServerSpecs = exports.NVR_ANALYTICS_SERVER = void 0;
3
+ exports.sAnalyticsServerStateDto = exports.sAnalyticsServerSpecs = exports.NVR_ANALYTICS_SERVER = void 0;
4
4
  const zod_1 = require("zod");
5
- const primitives_1 = require("../primitives");
6
- const api_1 = require("../api");
7
5
  exports.NVR_ANALYTICS_SERVER = 'nvr-analytics-server';
8
6
  exports.sAnalyticsServerSpecs = zod_1.z.object({});
9
7
  exports.sAnalyticsServerStateDto = zod_1.z.object({
10
8
  connected: zod_1.z.boolean(),
11
9
  });
12
- // QUERIES
13
- // -- Media Search
14
- exports.QUERY_MEDIA_SEARCH = 'cctv:media-search';
15
- exports.sMediaSearchArgs = zod_1.z
16
- .object({
17
- devices: zod_1.z.array(zod_1.z.any()).optional(),
18
- limit: zod_1.z.number().nonnegative(),
19
- q: zod_1.z.string(),
20
- similarTo: zod_1.z.string().optional(),
21
- label: zod_1.z.array(zod_1.z.string().nonempty()),
22
- timeFrom: zod_1.z.number().nonnegative(),
23
- timeTo: zod_1.z.number().nonnegative(),
24
- sortBy: api_1.sSortOptions,
25
- })
26
- .partial();
27
- exports.sMediaSearchMatch = zod_1.z.object({
28
- relevance: zod_1.z.number(),
29
- providerAssignedRef: zod_1.z.string(),
30
- foreignRef: zod_1.z.string(),
31
- provider: zod_1.z.string(),
32
- probability: zod_1.z.number(),
33
- objectKind: zod_1.z.string(),
34
- startTime: zod_1.z.number(),
35
- endTime: zod_1.z.number().nullable(),
36
- });
37
- exports.sMediaSearchResponse = zod_1.z.array(exports.sMediaSearchMatch);
38
- // -- Scene Preview Clip
39
- exports.QUERY_SCENE_PREVIEW_CLIP = 'cctv:scene-preview-clip';
40
- exports.sScenePreviewClipArgs = zod_1.z.object({
41
- providerAssignedRef: zod_1.z.string(),
42
- });
43
- exports.sScenePreviewClipResponse = primitives_1.sFileResponse;
44
- // -- Object Snapshot
45
- exports.QUERY_OBJECT_SNAPSHOT = 'cctv:object-snapshot';
46
- exports.sObjectSnapshotArgs = zod_1.z.object({
47
- providerAssignedRef: zod_1.z.string(),
48
- height: zod_1.z.number().optional(),
49
- quality: zod_1.z.number().optional(),
50
- crop: zod_1.z.boolean(),
51
- boxes: zod_1.z.boolean(),
52
- });
53
- exports.sObjectSnapshotResponse = primitives_1.sFileResponse;
54
- // -- Object Thumbnail
55
- exports.QUERY_OBJECT_THUMBNAIL = 'cctv:object-thumbnail';
56
- exports.sObjectThumbnailArgs = zod_1.z.object({
57
- providerAssignedRef: zod_1.z.string(),
58
- });
59
- exports.sObjectThumbnailResponse = primitives_1.sFileResponse;
60
- // Dictionary of request schemas by query type
61
- exports.nvrAnalyticsRequestSchemas = {
62
- [exports.QUERY_MEDIA_SEARCH]: exports.sMediaSearchArgs,
63
- [exports.QUERY_SCENE_PREVIEW_CLIP]: exports.sScenePreviewClipArgs,
64
- [exports.QUERY_OBJECT_SNAPSHOT]: exports.sObjectSnapshotArgs,
65
- [exports.QUERY_OBJECT_THUMBNAIL]: exports.sObjectThumbnailArgs,
66
- };
67
- // Dictionary of response schemas by query type
68
- exports.nvrAnalyticsResponseSchemas = {
69
- [exports.QUERY_MEDIA_SEARCH]: exports.sMediaSearchResponse,
70
- [exports.QUERY_SCENE_PREVIEW_CLIP]: exports.sScenePreviewClipResponse,
71
- [exports.QUERY_OBJECT_SNAPSHOT]: exports.sObjectSnapshotResponse,
72
- [exports.QUERY_OBJECT_THUMBNAIL]: exports.sObjectThumbnailResponse,
73
- };