@awarevue/api-types 2.0.38 → 2.0.40
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/app.d.ts +44 -0
- package/dist/api/rest/app.js +8 -1
- 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 +68 -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 +114 -21
- package/dist/objects/view.js +7 -4
- package/dist/package.json +1 -1
- package/dist/primitives.d.ts +74 -44
- package/package.json +1 -1
package/dist/api/rest/app.d.ts
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const sPasswordPolicy: z.ZodObject<{
|
|
3
|
+
minLength: z.ZodDefault<z.ZodNumber>;
|
|
4
|
+
minSpecialChars: z.ZodDefault<z.ZodNumber>;
|
|
5
|
+
minDifferentCase: z.ZodDefault<z.ZodNumber>;
|
|
6
|
+
minDigits: z.ZodDefault<z.ZodNumber>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
minLength: number;
|
|
9
|
+
minSpecialChars: number;
|
|
10
|
+
minDifferentCase: number;
|
|
11
|
+
minDigits: number;
|
|
12
|
+
}, {
|
|
13
|
+
minLength?: number | undefined;
|
|
14
|
+
minSpecialChars?: number | undefined;
|
|
15
|
+
minDifferentCase?: number | undefined;
|
|
16
|
+
minDigits?: number | undefined;
|
|
17
|
+
}>;
|
|
2
18
|
export declare const sAppInfo: z.ZodObject<{
|
|
3
19
|
version: z.ZodString;
|
|
4
20
|
releaseDate: z.ZodString;
|
|
@@ -6,6 +22,22 @@ export declare const sAppInfo: z.ZodObject<{
|
|
|
6
22
|
alarmDeviceId: z.ZodString;
|
|
7
23
|
globalZoneId: z.ZodString;
|
|
8
24
|
presenceTrackerId: z.ZodString;
|
|
25
|
+
passwordPolicy: z.ZodObject<{
|
|
26
|
+
minLength: z.ZodDefault<z.ZodNumber>;
|
|
27
|
+
minSpecialChars: z.ZodDefault<z.ZodNumber>;
|
|
28
|
+
minDifferentCase: z.ZodDefault<z.ZodNumber>;
|
|
29
|
+
minDigits: z.ZodDefault<z.ZodNumber>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
minLength: number;
|
|
32
|
+
minSpecialChars: number;
|
|
33
|
+
minDifferentCase: number;
|
|
34
|
+
minDigits: number;
|
|
35
|
+
}, {
|
|
36
|
+
minLength?: number | undefined;
|
|
37
|
+
minSpecialChars?: number | undefined;
|
|
38
|
+
minDifferentCase?: number | undefined;
|
|
39
|
+
minDigits?: number | undefined;
|
|
40
|
+
}>;
|
|
9
41
|
}, "strip", z.ZodTypeAny, {
|
|
10
42
|
version: string;
|
|
11
43
|
releaseDate: string;
|
|
@@ -13,6 +45,12 @@ export declare const sAppInfo: z.ZodObject<{
|
|
|
13
45
|
alarmDeviceId: string;
|
|
14
46
|
globalZoneId: string;
|
|
15
47
|
presenceTrackerId: string;
|
|
48
|
+
passwordPolicy: {
|
|
49
|
+
minLength: number;
|
|
50
|
+
minSpecialChars: number;
|
|
51
|
+
minDifferentCase: number;
|
|
52
|
+
minDigits: number;
|
|
53
|
+
};
|
|
16
54
|
}, {
|
|
17
55
|
version: string;
|
|
18
56
|
releaseDate: string;
|
|
@@ -20,5 +58,11 @@ export declare const sAppInfo: z.ZodObject<{
|
|
|
20
58
|
alarmDeviceId: string;
|
|
21
59
|
globalZoneId: string;
|
|
22
60
|
presenceTrackerId: string;
|
|
61
|
+
passwordPolicy: {
|
|
62
|
+
minLength?: number | undefined;
|
|
63
|
+
minSpecialChars?: number | undefined;
|
|
64
|
+
minDifferentCase?: number | undefined;
|
|
65
|
+
minDigits?: number | undefined;
|
|
66
|
+
};
|
|
23
67
|
}>;
|
|
24
68
|
export type AppInfo = z.infer<typeof sAppInfo>;
|
package/dist/api/rest/app.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sAppInfo = void 0;
|
|
3
|
+
exports.sAppInfo = exports.sPasswordPolicy = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
exports.sPasswordPolicy = zod_1.z.object({
|
|
6
|
+
minLength: zod_1.z.number().min(0).default(4),
|
|
7
|
+
minSpecialChars: zod_1.z.number().min(0).default(0),
|
|
8
|
+
minDifferentCase: zod_1.z.number().min(0).default(0),
|
|
9
|
+
minDigits: zod_1.z.number().min(0).default(0),
|
|
10
|
+
});
|
|
5
11
|
exports.sAppInfo = zod_1.z.object({
|
|
6
12
|
version: zod_1.z.string(),
|
|
7
13
|
releaseDate: zod_1.z.string(),
|
|
@@ -9,4 +15,5 @@ exports.sAppInfo = zod_1.z.object({
|
|
|
9
15
|
alarmDeviceId: zod_1.z.string(),
|
|
10
16
|
globalZoneId: zod_1.z.string(),
|
|
11
17
|
presenceTrackerId: zod_1.z.string(),
|
|
18
|
+
passwordPolicy: exports.sPasswordPolicy,
|
|
12
19
|
});
|
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
|
@@ -61,15 +61,30 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
61
61
|
area: z.ZodString;
|
|
62
62
|
type: z.ZodLiteral<"playbackTrack">;
|
|
63
63
|
controllerId: z.ZodString;
|
|
64
|
-
source: z.
|
|
64
|
+
source: z.ZodObject<{
|
|
65
|
+
deviceId: z.ZodString;
|
|
66
|
+
streamId: z.ZodString;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
deviceId: string;
|
|
69
|
+
streamId: string;
|
|
70
|
+
}, {
|
|
71
|
+
deviceId: string;
|
|
72
|
+
streamId: string;
|
|
73
|
+
}>;
|
|
65
74
|
}, "strip", z.ZodTypeAny, {
|
|
66
75
|
type: "playbackTrack";
|
|
67
|
-
source:
|
|
76
|
+
source: {
|
|
77
|
+
deviceId: string;
|
|
78
|
+
streamId: string;
|
|
79
|
+
};
|
|
68
80
|
area: string;
|
|
69
81
|
controllerId: string;
|
|
70
82
|
}, {
|
|
71
83
|
type: "playbackTrack";
|
|
72
|
-
source:
|
|
84
|
+
source: {
|
|
85
|
+
deviceId: string;
|
|
86
|
+
streamId: string;
|
|
87
|
+
};
|
|
73
88
|
area: string;
|
|
74
89
|
controllerId: string;
|
|
75
90
|
}>]>, "many">;
|
|
@@ -95,7 +110,10 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
95
110
|
timeIntervalMs: number;
|
|
96
111
|
} | {
|
|
97
112
|
type: "playbackTrack";
|
|
98
|
-
source:
|
|
113
|
+
source: {
|
|
114
|
+
deviceId: string;
|
|
115
|
+
streamId: string;
|
|
116
|
+
};
|
|
99
117
|
area: string;
|
|
100
118
|
controllerId: string;
|
|
101
119
|
})[];
|
|
@@ -122,7 +140,10 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
122
140
|
timeIntervalMs: number;
|
|
123
141
|
} | {
|
|
124
142
|
type: "playbackTrack";
|
|
125
|
-
source:
|
|
143
|
+
source: {
|
|
144
|
+
deviceId: string;
|
|
145
|
+
streamId: string;
|
|
146
|
+
};
|
|
126
147
|
area: string;
|
|
127
148
|
controllerId: string;
|
|
128
149
|
})[];
|
|
@@ -153,7 +174,10 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
153
174
|
timeIntervalMs: number;
|
|
154
175
|
} | {
|
|
155
176
|
type: "playbackTrack";
|
|
156
|
-
source:
|
|
177
|
+
source: {
|
|
178
|
+
deviceId: string;
|
|
179
|
+
streamId: string;
|
|
180
|
+
};
|
|
157
181
|
area: string;
|
|
158
182
|
controllerId: string;
|
|
159
183
|
})[];
|
|
@@ -186,7 +210,10 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
186
210
|
timeIntervalMs: number;
|
|
187
211
|
} | {
|
|
188
212
|
type: "playbackTrack";
|
|
189
|
-
source:
|
|
213
|
+
source: {
|
|
214
|
+
deviceId: string;
|
|
215
|
+
streamId: string;
|
|
216
|
+
};
|
|
190
217
|
area: string;
|
|
191
218
|
controllerId: string;
|
|
192
219
|
})[];
|
|
@@ -257,15 +284,30 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
257
284
|
area: z.ZodString;
|
|
258
285
|
type: z.ZodLiteral<"playbackTrack">;
|
|
259
286
|
controllerId: z.ZodString;
|
|
260
|
-
source: z.
|
|
287
|
+
source: z.ZodObject<{
|
|
288
|
+
deviceId: z.ZodString;
|
|
289
|
+
streamId: z.ZodString;
|
|
290
|
+
}, "strip", z.ZodTypeAny, {
|
|
291
|
+
deviceId: string;
|
|
292
|
+
streamId: string;
|
|
293
|
+
}, {
|
|
294
|
+
deviceId: string;
|
|
295
|
+
streamId: string;
|
|
296
|
+
}>;
|
|
261
297
|
}, "strip", z.ZodTypeAny, {
|
|
262
298
|
type: "playbackTrack";
|
|
263
|
-
source:
|
|
299
|
+
source: {
|
|
300
|
+
deviceId: string;
|
|
301
|
+
streamId: string;
|
|
302
|
+
};
|
|
264
303
|
area: string;
|
|
265
304
|
controllerId: string;
|
|
266
305
|
}, {
|
|
267
306
|
type: "playbackTrack";
|
|
268
|
-
source:
|
|
307
|
+
source: {
|
|
308
|
+
deviceId: string;
|
|
309
|
+
streamId: string;
|
|
310
|
+
};
|
|
269
311
|
area: string;
|
|
270
312
|
controllerId: string;
|
|
271
313
|
}>]>, "many">;
|
|
@@ -291,7 +333,10 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
291
333
|
timeIntervalMs: number;
|
|
292
334
|
} | {
|
|
293
335
|
type: "playbackTrack";
|
|
294
|
-
source:
|
|
336
|
+
source: {
|
|
337
|
+
deviceId: string;
|
|
338
|
+
streamId: string;
|
|
339
|
+
};
|
|
295
340
|
area: string;
|
|
296
341
|
controllerId: string;
|
|
297
342
|
})[];
|
|
@@ -318,7 +363,10 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
318
363
|
timeIntervalMs: number;
|
|
319
364
|
} | {
|
|
320
365
|
type: "playbackTrack";
|
|
321
|
-
source:
|
|
366
|
+
source: {
|
|
367
|
+
deviceId: string;
|
|
368
|
+
streamId: string;
|
|
369
|
+
};
|
|
322
370
|
area: string;
|
|
323
371
|
controllerId: string;
|
|
324
372
|
})[];
|
|
@@ -351,7 +399,10 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
351
399
|
timeIntervalMs: number;
|
|
352
400
|
} | {
|
|
353
401
|
type: "playbackTrack";
|
|
354
|
-
source:
|
|
402
|
+
source: {
|
|
403
|
+
deviceId: string;
|
|
404
|
+
streamId: string;
|
|
405
|
+
};
|
|
355
406
|
area: string;
|
|
356
407
|
controllerId: string;
|
|
357
408
|
})[];
|
|
@@ -384,7 +435,10 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
384
435
|
timeIntervalMs: number;
|
|
385
436
|
} | {
|
|
386
437
|
type: "playbackTrack";
|
|
387
|
-
source:
|
|
438
|
+
source: {
|
|
439
|
+
deviceId: string;
|
|
440
|
+
streamId: string;
|
|
441
|
+
};
|
|
388
442
|
area: string;
|
|
389
443
|
controllerId: string;
|
|
390
444
|
})[];
|
|
@@ -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({
|