@awarevue/api-types 2.0.46 → 2.0.48
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/rest/camera.d.ts +55 -0
- package/dist/api/rest/camera.js +24 -0
- package/dist/api/rest/index.d.ts +1 -0
- package/dist/api/rest/index.js +1 -0
- package/dist/api/ws/web-rtc-signaling.d.ts +3 -3
- package/dist/api/ws/web-rtc-signaling.js +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sAddCameraRq: z.ZodObject<{
|
|
3
|
+
displayName: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
displayName: string;
|
|
6
|
+
}, {
|
|
7
|
+
displayName: string;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const sAddCameraRs: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
id: string;
|
|
13
|
+
}, {
|
|
14
|
+
id: string;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const sAddCameraStreamRq: z.ZodObject<{
|
|
17
|
+
cameraId: z.ZodString;
|
|
18
|
+
displayName: z.ZodString;
|
|
19
|
+
rtspUrl: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
displayName: string;
|
|
22
|
+
rtspUrl: string | null;
|
|
23
|
+
cameraId: string;
|
|
24
|
+
}, {
|
|
25
|
+
displayName: string;
|
|
26
|
+
rtspUrl: string | null;
|
|
27
|
+
cameraId: string;
|
|
28
|
+
}>;
|
|
29
|
+
export declare const sAddCameraStreamRs: z.ZodObject<{
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
ffmpegCommandTemplate: z.ZodString;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
id: string;
|
|
34
|
+
ffmpegCommandTemplate: string;
|
|
35
|
+
}, {
|
|
36
|
+
id: string;
|
|
37
|
+
ffmpegCommandTemplate: string;
|
|
38
|
+
}>;
|
|
39
|
+
export declare const sDeleteCameraStreamRq: z.ZodObject<{
|
|
40
|
+
cameraId: z.ZodString;
|
|
41
|
+
streamId: z.ZodString;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
streamId: string;
|
|
44
|
+
cameraId: string;
|
|
45
|
+
}, {
|
|
46
|
+
streamId: string;
|
|
47
|
+
cameraId: string;
|
|
48
|
+
}>;
|
|
49
|
+
export declare const sDeleteCameraStreamRs: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
50
|
+
export type AddCameraRq = z.infer<typeof sAddCameraRq>;
|
|
51
|
+
export type AddCameraRs = z.infer<typeof sAddCameraRs>;
|
|
52
|
+
export type AddCameraStreamRq = z.infer<typeof sAddCameraStreamRq>;
|
|
53
|
+
export type AddCameraStreamRs = z.infer<typeof sAddCameraStreamRs>;
|
|
54
|
+
export type DeleteCameraStreamRq = z.infer<typeof sDeleteCameraStreamRq>;
|
|
55
|
+
export type DeleteCameraStreamRs = z.infer<typeof sDeleteCameraStreamRs>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sDeleteCameraStreamRs = exports.sDeleteCameraStreamRq = exports.sAddCameraStreamRs = exports.sAddCameraStreamRq = exports.sAddCameraRs = exports.sAddCameraRq = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.sAddCameraRq = zod_1.z.object({
|
|
6
|
+
displayName: zod_1.z.string().nonempty(),
|
|
7
|
+
});
|
|
8
|
+
exports.sAddCameraRs = zod_1.z.object({
|
|
9
|
+
id: zod_1.z.string().nonempty(),
|
|
10
|
+
});
|
|
11
|
+
exports.sAddCameraStreamRq = zod_1.z.object({
|
|
12
|
+
cameraId: zod_1.z.string().nonempty(),
|
|
13
|
+
displayName: zod_1.z.string().nonempty(),
|
|
14
|
+
rtspUrl: zod_1.z.string().nonempty().nullable(),
|
|
15
|
+
});
|
|
16
|
+
exports.sAddCameraStreamRs = zod_1.z.object({
|
|
17
|
+
id: zod_1.z.string().nonempty(),
|
|
18
|
+
ffmpegCommandTemplate: zod_1.z.string().nonempty(),
|
|
19
|
+
});
|
|
20
|
+
exports.sDeleteCameraStreamRq = zod_1.z.object({
|
|
21
|
+
cameraId: zod_1.z.string().nonempty(),
|
|
22
|
+
streamId: zod_1.z.string().nonempty(),
|
|
23
|
+
});
|
|
24
|
+
exports.sDeleteCameraStreamRs = zod_1.z.object({});
|
package/dist/api/rest/index.d.ts
CHANGED
package/dist/api/rest/index.js
CHANGED
|
@@ -340,7 +340,7 @@ export declare const sWebRtcReleaseSessionPayload: z.ZodObject<{
|
|
|
340
340
|
}>;
|
|
341
341
|
export type WebRtcReleaseSessionPayload = z.infer<typeof sWebRtcReleaseSessionPayload>;
|
|
342
342
|
export declare const sWebRtcErrorPayload: z.ZodObject<{
|
|
343
|
-
|
|
343
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
344
344
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
345
345
|
error: z.ZodObject<{
|
|
346
346
|
code: z.ZodString;
|
|
@@ -357,15 +357,15 @@ export declare const sWebRtcErrorPayload: z.ZodObject<{
|
|
|
357
357
|
code: string;
|
|
358
358
|
message: string;
|
|
359
359
|
};
|
|
360
|
+
requestId?: string | undefined;
|
|
360
361
|
sessionId?: string | undefined;
|
|
361
|
-
requesId?: string | undefined;
|
|
362
362
|
}, {
|
|
363
363
|
error: {
|
|
364
364
|
code: string;
|
|
365
365
|
message: string;
|
|
366
366
|
};
|
|
367
|
+
requestId?: string | undefined;
|
|
367
368
|
sessionId?: string | undefined;
|
|
368
|
-
requesId?: string | undefined;
|
|
369
369
|
}>;
|
|
370
370
|
export type WebRtcErrorPayload = z.infer<typeof sWebRtcErrorPayload>;
|
|
371
371
|
interface WebRtcEventMap {
|
|
@@ -73,7 +73,7 @@ exports.sWebRtcReleaseSessionPayload = zod_1.default.object({
|
|
|
73
73
|
from: zod_1.default.string().optional(),
|
|
74
74
|
});
|
|
75
75
|
exports.sWebRtcErrorPayload = zod_1.default.object({
|
|
76
|
-
|
|
76
|
+
requestId: zod_1.default.string().nonempty().optional(),
|
|
77
77
|
sessionId: zod_1.default.string().nonempty().optional(),
|
|
78
78
|
error: zod_1.default.object({
|
|
79
79
|
code: zod_1.default.string().nonempty(),
|
package/dist/package.json
CHANGED