@awarevue/api-types 2.0.39 → 2.0.41
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.
- package/dist/api/agent-protocol/protocol.d.ts +204 -136
- package/dist/api/commands/all.d.ts +135 -92
- package/dist/api/commands/nvr-exporter.d.ts +140 -92
- package/dist/api/commands/nvr-exporter.js +1 -0
- package/dist/api/commands/server.d.ts +130 -92
- package/dist/api/queries/all.d.ts +153 -102
- package/dist/api/queries/nvr-recorder.d.ts +306 -204
- package/dist/api/rest/cast.d.ts +2 -2
- package/dist/api/rest/device.d.ts +18 -0
- package/dist/api/rest/device.js +3 -0
- package/dist/api/rest/media.d.ts +3 -0
- package/dist/api/rest/media.js +1 -0
- package/dist/api/rest/view.d.ts +82 -14
- package/dist/api/rest/webrtc-playback.d.ts +18 -3
- package/dist/api/rest/webrtc-playback.js +5 -1
- package/dist/objects/device/any-device.d.ts +111 -66
- package/dist/objects/device/camera.d.ts +59 -22
- package/dist/objects/device/camera.js +5 -4
- package/dist/objects/device/device-import.d.ts +190 -124
- package/dist/objects/view.d.ts +135 -21
- package/dist/objects/view.js +8 -4
- package/dist/package.json +1 -1
- package/dist/primitives.d.ts +74 -44
- package/package.json +1 -1
package/dist/api/rest/cast.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ export declare const sCastCamerasRequest: z.ZodArray<z.ZodObject<{
|
|
|
3
3
|
cameraId: z.ZodString;
|
|
4
4
|
streamId: z.ZodString;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
cameraId: string;
|
|
7
6
|
streamId: string;
|
|
8
|
-
}, {
|
|
9
7
|
cameraId: string;
|
|
8
|
+
}, {
|
|
10
9
|
streamId: string;
|
|
10
|
+
cameraId: string;
|
|
11
11
|
}>, "many">;
|
|
12
12
|
export type CastCamerasRequest = z.infer<typeof sCastCamerasRequest>;
|
|
@@ -96,16 +96,34 @@ export declare const sUpdateDeviceRequest: z.ZodObject<{
|
|
|
96
96
|
export declare const sOverrideDeviceSpecsRequest: z.ZodObject<{
|
|
97
97
|
id: z.ZodString;
|
|
98
98
|
specs: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
|
|
99
|
+
specUpdates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
100
|
+
path: z.ZodString;
|
|
101
|
+
value: z.ZodUnknown;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
path: string;
|
|
104
|
+
value?: unknown;
|
|
105
|
+
}, {
|
|
106
|
+
path: string;
|
|
107
|
+
value?: unknown;
|
|
108
|
+
}>, "many">>;
|
|
99
109
|
}, "strip", z.ZodTypeAny, {
|
|
100
110
|
id: string;
|
|
101
111
|
specs: {} & {
|
|
102
112
|
[k: string]: unknown;
|
|
103
113
|
};
|
|
114
|
+
specUpdates?: {
|
|
115
|
+
path: string;
|
|
116
|
+
value?: unknown;
|
|
117
|
+
}[] | undefined;
|
|
104
118
|
}, {
|
|
105
119
|
id: string;
|
|
106
120
|
specs: {} & {
|
|
107
121
|
[k: string]: unknown;
|
|
108
122
|
};
|
|
123
|
+
specUpdates?: {
|
|
124
|
+
path: string;
|
|
125
|
+
value?: unknown;
|
|
126
|
+
}[] | undefined;
|
|
109
127
|
}>;
|
|
110
128
|
export declare const sAddDevicePresetRequest: z.ZodObject<{
|
|
111
129
|
name: z.ZodString;
|
package/dist/api/rest/device.js
CHANGED
|
@@ -27,6 +27,9 @@ exports.sUpdateDeviceRequest = zod_1.z.object({
|
|
|
27
27
|
exports.sOverrideDeviceSpecsRequest = zod_1.z.object({
|
|
28
28
|
id: zod_1.z.string(),
|
|
29
29
|
specs: zod_1.z.object({}).catchall(zod_1.z.unknown()),
|
|
30
|
+
specUpdates: zod_1.z
|
|
31
|
+
.array(zod_1.z.object({ path: zod_1.z.string(), value: zod_1.z.unknown() }))
|
|
32
|
+
.optional(),
|
|
30
33
|
});
|
|
31
34
|
exports.sAddDevicePresetRequest = zod_1.z.object({
|
|
32
35
|
name: zod_1.z.string().nonempty(),
|
package/dist/api/rest/media.d.ts
CHANGED
|
@@ -2,16 +2,19 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const sCreateExportRequest: z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
4
|
deviceId: z.ZodString;
|
|
5
|
+
streamId: z.ZodString;
|
|
5
6
|
timeFrom: z.ZodNumber;
|
|
6
7
|
timeTo: z.ZodNumber;
|
|
7
8
|
}, "strip", z.ZodTypeAny, {
|
|
8
9
|
name: string;
|
|
9
10
|
deviceId: string;
|
|
11
|
+
streamId: string;
|
|
10
12
|
timeFrom: number;
|
|
11
13
|
timeTo: number;
|
|
12
14
|
}, {
|
|
13
15
|
name: string;
|
|
14
16
|
deviceId: string;
|
|
17
|
+
streamId: string;
|
|
15
18
|
timeFrom: number;
|
|
16
19
|
timeTo: number;
|
|
17
20
|
}>;
|
package/dist/api/rest/media.js
CHANGED
|
@@ -6,6 +6,7 @@ const query_1 = require("./query");
|
|
|
6
6
|
exports.sCreateExportRequest = zod_1.z.object({
|
|
7
7
|
name: zod_1.z.string().nonempty(),
|
|
8
8
|
deviceId: zod_1.z.string().nonempty(),
|
|
9
|
+
streamId: zod_1.z.string().nonempty(),
|
|
9
10
|
timeFrom: zod_1.z.number().nonnegative(),
|
|
10
11
|
timeTo: zod_1.z.number().nonnegative(),
|
|
11
12
|
});
|
package/dist/api/rest/view.d.ts
CHANGED
|
@@ -34,14 +34,17 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
34
34
|
area: z.ZodString;
|
|
35
35
|
type: z.ZodLiteral<"device">;
|
|
36
36
|
deviceId: z.ZodString;
|
|
37
|
+
streamId: z.ZodOptional<z.ZodString>;
|
|
37
38
|
}, "strip", z.ZodTypeAny, {
|
|
38
39
|
type: "device";
|
|
39
40
|
area: string;
|
|
40
41
|
deviceId: string;
|
|
42
|
+
streamId?: string | undefined;
|
|
41
43
|
}, {
|
|
42
44
|
type: "device";
|
|
43
45
|
area: string;
|
|
44
46
|
deviceId: string;
|
|
47
|
+
streamId?: string | undefined;
|
|
45
48
|
}>, z.ZodObject<{
|
|
46
49
|
area: z.ZodString;
|
|
47
50
|
type: z.ZodLiteral<"deviceCarousel">;
|
|
@@ -61,15 +64,30 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
61
64
|
area: z.ZodString;
|
|
62
65
|
type: z.ZodLiteral<"playbackTrack">;
|
|
63
66
|
controllerId: z.ZodString;
|
|
64
|
-
source: z.
|
|
67
|
+
source: z.ZodObject<{
|
|
68
|
+
deviceId: z.ZodString;
|
|
69
|
+
streamId: z.ZodString;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
deviceId: string;
|
|
72
|
+
streamId: string;
|
|
73
|
+
}, {
|
|
74
|
+
deviceId: string;
|
|
75
|
+
streamId: string;
|
|
76
|
+
}>;
|
|
65
77
|
}, "strip", z.ZodTypeAny, {
|
|
66
78
|
type: "playbackTrack";
|
|
67
|
-
source:
|
|
79
|
+
source: {
|
|
80
|
+
deviceId: string;
|
|
81
|
+
streamId: string;
|
|
82
|
+
};
|
|
68
83
|
area: string;
|
|
69
84
|
controllerId: string;
|
|
70
85
|
}, {
|
|
71
86
|
type: "playbackTrack";
|
|
72
|
-
source:
|
|
87
|
+
source: {
|
|
88
|
+
deviceId: string;
|
|
89
|
+
streamId: string;
|
|
90
|
+
};
|
|
73
91
|
area: string;
|
|
74
92
|
controllerId: string;
|
|
75
93
|
}>]>, "many">;
|
|
@@ -88,6 +106,7 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
88
106
|
type: "device";
|
|
89
107
|
area: string;
|
|
90
108
|
deviceId: string;
|
|
109
|
+
streamId?: string | undefined;
|
|
91
110
|
} | {
|
|
92
111
|
type: "deviceCarousel";
|
|
93
112
|
area: string;
|
|
@@ -95,7 +114,10 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
95
114
|
timeIntervalMs: number;
|
|
96
115
|
} | {
|
|
97
116
|
type: "playbackTrack";
|
|
98
|
-
source:
|
|
117
|
+
source: {
|
|
118
|
+
deviceId: string;
|
|
119
|
+
streamId: string;
|
|
120
|
+
};
|
|
99
121
|
area: string;
|
|
100
122
|
controllerId: string;
|
|
101
123
|
})[];
|
|
@@ -115,6 +137,7 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
115
137
|
type: "device";
|
|
116
138
|
area: string;
|
|
117
139
|
deviceId: string;
|
|
140
|
+
streamId?: string | undefined;
|
|
118
141
|
} | {
|
|
119
142
|
type: "deviceCarousel";
|
|
120
143
|
area: string;
|
|
@@ -122,7 +145,10 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
122
145
|
timeIntervalMs: number;
|
|
123
146
|
} | {
|
|
124
147
|
type: "playbackTrack";
|
|
125
|
-
source:
|
|
148
|
+
source: {
|
|
149
|
+
deviceId: string;
|
|
150
|
+
streamId: string;
|
|
151
|
+
};
|
|
126
152
|
area: string;
|
|
127
153
|
controllerId: string;
|
|
128
154
|
})[];
|
|
@@ -146,6 +172,7 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
146
172
|
type: "device";
|
|
147
173
|
area: string;
|
|
148
174
|
deviceId: string;
|
|
175
|
+
streamId?: string | undefined;
|
|
149
176
|
} | {
|
|
150
177
|
type: "deviceCarousel";
|
|
151
178
|
area: string;
|
|
@@ -153,7 +180,10 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
153
180
|
timeIntervalMs: number;
|
|
154
181
|
} | {
|
|
155
182
|
type: "playbackTrack";
|
|
156
|
-
source:
|
|
183
|
+
source: {
|
|
184
|
+
deviceId: string;
|
|
185
|
+
streamId: string;
|
|
186
|
+
};
|
|
157
187
|
area: string;
|
|
158
188
|
controllerId: string;
|
|
159
189
|
})[];
|
|
@@ -179,6 +209,7 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
179
209
|
type: "device";
|
|
180
210
|
area: string;
|
|
181
211
|
deviceId: string;
|
|
212
|
+
streamId?: string | undefined;
|
|
182
213
|
} | {
|
|
183
214
|
type: "deviceCarousel";
|
|
184
215
|
area: string;
|
|
@@ -186,7 +217,10 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
186
217
|
timeIntervalMs: number;
|
|
187
218
|
} | {
|
|
188
219
|
type: "playbackTrack";
|
|
189
|
-
source:
|
|
220
|
+
source: {
|
|
221
|
+
deviceId: string;
|
|
222
|
+
streamId: string;
|
|
223
|
+
};
|
|
190
224
|
area: string;
|
|
191
225
|
controllerId: string;
|
|
192
226
|
})[];
|
|
@@ -230,14 +264,17 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
230
264
|
area: z.ZodString;
|
|
231
265
|
type: z.ZodLiteral<"device">;
|
|
232
266
|
deviceId: z.ZodString;
|
|
267
|
+
streamId: z.ZodOptional<z.ZodString>;
|
|
233
268
|
}, "strip", z.ZodTypeAny, {
|
|
234
269
|
type: "device";
|
|
235
270
|
area: string;
|
|
236
271
|
deviceId: string;
|
|
272
|
+
streamId?: string | undefined;
|
|
237
273
|
}, {
|
|
238
274
|
type: "device";
|
|
239
275
|
area: string;
|
|
240
276
|
deviceId: string;
|
|
277
|
+
streamId?: string | undefined;
|
|
241
278
|
}>, z.ZodObject<{
|
|
242
279
|
area: z.ZodString;
|
|
243
280
|
type: z.ZodLiteral<"deviceCarousel">;
|
|
@@ -257,15 +294,30 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
257
294
|
area: z.ZodString;
|
|
258
295
|
type: z.ZodLiteral<"playbackTrack">;
|
|
259
296
|
controllerId: z.ZodString;
|
|
260
|
-
source: z.
|
|
297
|
+
source: z.ZodObject<{
|
|
298
|
+
deviceId: z.ZodString;
|
|
299
|
+
streamId: z.ZodString;
|
|
300
|
+
}, "strip", z.ZodTypeAny, {
|
|
301
|
+
deviceId: string;
|
|
302
|
+
streamId: string;
|
|
303
|
+
}, {
|
|
304
|
+
deviceId: string;
|
|
305
|
+
streamId: string;
|
|
306
|
+
}>;
|
|
261
307
|
}, "strip", z.ZodTypeAny, {
|
|
262
308
|
type: "playbackTrack";
|
|
263
|
-
source:
|
|
309
|
+
source: {
|
|
310
|
+
deviceId: string;
|
|
311
|
+
streamId: string;
|
|
312
|
+
};
|
|
264
313
|
area: string;
|
|
265
314
|
controllerId: string;
|
|
266
315
|
}, {
|
|
267
316
|
type: "playbackTrack";
|
|
268
|
-
source:
|
|
317
|
+
source: {
|
|
318
|
+
deviceId: string;
|
|
319
|
+
streamId: string;
|
|
320
|
+
};
|
|
269
321
|
area: string;
|
|
270
322
|
controllerId: string;
|
|
271
323
|
}>]>, "many">;
|
|
@@ -284,6 +336,7 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
284
336
|
type: "device";
|
|
285
337
|
area: string;
|
|
286
338
|
deviceId: string;
|
|
339
|
+
streamId?: string | undefined;
|
|
287
340
|
} | {
|
|
288
341
|
type: "deviceCarousel";
|
|
289
342
|
area: string;
|
|
@@ -291,7 +344,10 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
291
344
|
timeIntervalMs: number;
|
|
292
345
|
} | {
|
|
293
346
|
type: "playbackTrack";
|
|
294
|
-
source:
|
|
347
|
+
source: {
|
|
348
|
+
deviceId: string;
|
|
349
|
+
streamId: string;
|
|
350
|
+
};
|
|
295
351
|
area: string;
|
|
296
352
|
controllerId: string;
|
|
297
353
|
})[];
|
|
@@ -311,6 +367,7 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
311
367
|
type: "device";
|
|
312
368
|
area: string;
|
|
313
369
|
deviceId: string;
|
|
370
|
+
streamId?: string | undefined;
|
|
314
371
|
} | {
|
|
315
372
|
type: "deviceCarousel";
|
|
316
373
|
area: string;
|
|
@@ -318,7 +375,10 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
318
375
|
timeIntervalMs: number;
|
|
319
376
|
} | {
|
|
320
377
|
type: "playbackTrack";
|
|
321
|
-
source:
|
|
378
|
+
source: {
|
|
379
|
+
deviceId: string;
|
|
380
|
+
streamId: string;
|
|
381
|
+
};
|
|
322
382
|
area: string;
|
|
323
383
|
controllerId: string;
|
|
324
384
|
})[];
|
|
@@ -344,6 +404,7 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
344
404
|
type: "device";
|
|
345
405
|
area: string;
|
|
346
406
|
deviceId: string;
|
|
407
|
+
streamId?: string | undefined;
|
|
347
408
|
} | {
|
|
348
409
|
type: "deviceCarousel";
|
|
349
410
|
area: string;
|
|
@@ -351,7 +412,10 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
351
412
|
timeIntervalMs: number;
|
|
352
413
|
} | {
|
|
353
414
|
type: "playbackTrack";
|
|
354
|
-
source:
|
|
415
|
+
source: {
|
|
416
|
+
deviceId: string;
|
|
417
|
+
streamId: string;
|
|
418
|
+
};
|
|
355
419
|
area: string;
|
|
356
420
|
controllerId: string;
|
|
357
421
|
})[];
|
|
@@ -377,6 +441,7 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
377
441
|
type: "device";
|
|
378
442
|
area: string;
|
|
379
443
|
deviceId: string;
|
|
444
|
+
streamId?: string | undefined;
|
|
380
445
|
} | {
|
|
381
446
|
type: "deviceCarousel";
|
|
382
447
|
area: string;
|
|
@@ -384,7 +449,10 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
384
449
|
timeIntervalMs: number;
|
|
385
450
|
} | {
|
|
386
451
|
type: "playbackTrack";
|
|
387
|
-
source:
|
|
452
|
+
source: {
|
|
453
|
+
deviceId: string;
|
|
454
|
+
streamId: string;
|
|
455
|
+
};
|
|
388
456
|
area: string;
|
|
389
457
|
controllerId: string;
|
|
390
458
|
})[];
|
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
export declare const sCreatePlaybackControllerRequest: z.ZodObject<{
|
|
3
|
-
sources: z.ZodArray<z.
|
|
3
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
4
|
+
deviceId: z.ZodString;
|
|
5
|
+
streamId: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
deviceId: string;
|
|
8
|
+
streamId: string;
|
|
9
|
+
}, {
|
|
10
|
+
deviceId: string;
|
|
11
|
+
streamId: string;
|
|
12
|
+
}>, "many">;
|
|
4
13
|
initTime: z.ZodNumber;
|
|
5
14
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
sources:
|
|
15
|
+
sources: {
|
|
16
|
+
deviceId: string;
|
|
17
|
+
streamId: string;
|
|
18
|
+
}[];
|
|
7
19
|
initTime: number;
|
|
8
20
|
}, {
|
|
9
|
-
sources:
|
|
21
|
+
sources: {
|
|
22
|
+
deviceId: string;
|
|
23
|
+
streamId: string;
|
|
24
|
+
}[];
|
|
10
25
|
initTime: number;
|
|
11
26
|
}>;
|
|
12
27
|
export type CreatePlaybackControllerRequest = z.infer<typeof sCreatePlaybackControllerRequest>;
|
|
@@ -5,8 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.sCreatePlaybackControllerResponse = exports.sCreatePlaybackControllerRequest = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const playbackSource = zod_1.default.object({
|
|
9
|
+
deviceId: zod_1.default.string().nonempty(),
|
|
10
|
+
streamId: zod_1.default.string().nonempty(),
|
|
11
|
+
});
|
|
8
12
|
exports.sCreatePlaybackControllerRequest = zod_1.default.object({
|
|
9
|
-
sources: zod_1.default.array(
|
|
13
|
+
sources: zod_1.default.array(playbackSource),
|
|
10
14
|
initTime: zod_1.default.number().nonnegative(),
|
|
11
15
|
});
|
|
12
16
|
exports.sCreatePlaybackControllerResponse = zod_1.default.object({
|