camstreamerlib 4.0.0-beta.76 → 4.0.0-beta.78
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/cjs/CamOverlayAPI.d.ts +22 -22
- package/cjs/CamStreamerAPI.d.ts +47 -49
- package/cjs/CamStreamerAPI.js +36 -23
- package/cjs/PlaneTrackerAPI.d.ts +1 -3
- package/cjs/PlaneTrackerAPI.js +0 -7
- package/cjs/errors/errors.d.ts +7 -0
- package/cjs/errors/errors.js +12 -1
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +81 -81
- package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +4 -4
- package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +2 -2
- package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +6 -6
- package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +2 -2
- package/cjs/types/CamOverlayAPI/pipSchema.d.ts +2 -2
- package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +2 -2
- package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +2 -2
- package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +2 -2
- package/cjs/types/CamOverlayAPI/serviceCommonTypes.d.ts +6 -6
- package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +2 -2
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +199 -0
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +48 -0
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +21 -0
- package/cjs/types/CamStreamerAPI/facebookSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/hlsSchema.d.ts +21 -0
- package/cjs/types/CamStreamerAPI/hlsSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/index.d.ts +9 -0
- package/cjs/types/CamStreamerAPI/index.js +25 -0
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +21 -0
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +137 -0
- package/cjs/types/{CamStreamerAPI.js → CamStreamerAPI/oldStreamSchema.js} +3 -12
- package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +21 -0
- package/cjs/types/CamStreamerAPI/rtmpSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +21 -0
- package/cjs/types/CamStreamerAPI/sdCardSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +20 -0
- package/cjs/types/CamStreamerAPI/streamCommonTypes.js +19 -0
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +21 -0
- package/cjs/types/CamStreamerAPI/windySchema.js +11 -0
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +21 -0
- package/cjs/types/CamStreamerAPI/youtubeSchema.js +11 -0
- package/cjs/types/common.d.ts +1 -0
- package/cjs/types/common.js +2 -1
- package/cjs/types/ws/PlaneTrackerEvents.d.ts +3 -69
- package/cjs/types/ws/PlaneTrackerEvents.js +0 -11
- package/esm/CamStreamerAPI.js +37 -24
- package/esm/PlaneTrackerAPI.js +1 -8
- package/esm/errors/errors.js +10 -0
- package/esm/types/CamStreamerAPI/CamStreamerAPI.js +38 -0
- package/esm/types/CamStreamerAPI/facebookSchema.js +5 -0
- package/esm/types/CamStreamerAPI/hlsSchema.js +5 -0
- package/esm/types/CamStreamerAPI/index.js +9 -0
- package/esm/types/CamStreamerAPI/mpegDvbSchema.js +5 -0
- package/esm/types/{CamStreamerAPI.js → CamStreamerAPI/oldStreamSchema.js} +2 -11
- package/esm/types/CamStreamerAPI/rtmpSchema.js +5 -0
- package/esm/types/CamStreamerAPI/sdCardSchema.js +5 -0
- package/esm/types/CamStreamerAPI/streamCommonTypes.js +16 -0
- package/esm/types/CamStreamerAPI/windySchema.js +5 -0
- package/esm/types/CamStreamerAPI/youtubeSchema.js +5 -0
- package/esm/types/common.js +1 -0
- package/esm/types/ws/PlaneTrackerEvents.js +0 -11
- package/package.json +1 -1
- package/types/CamOverlayAPI.d.ts +22 -22
- package/types/CamStreamerAPI.d.ts +47 -49
- package/types/PlaneTrackerAPI.d.ts +1 -3
- package/types/errors/errors.d.ts +7 -0
- package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +81 -81
- package/types/types/CamOverlayAPI/accuweatherSchema.d.ts +4 -4
- package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +2 -2
- package/types/types/CamOverlayAPI/imagesSchema.d.ts +6 -6
- package/types/types/CamOverlayAPI/infotickerSchema.d.ts +2 -2
- package/types/types/CamOverlayAPI/pipSchema.d.ts +2 -2
- package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +2 -2
- package/types/types/CamOverlayAPI/ptzSchema.d.ts +2 -2
- package/types/types/CamOverlayAPI/screenSharingSchema.d.ts +2 -2
- package/types/types/CamOverlayAPI/serviceCommonTypes.d.ts +6 -6
- package/types/types/CamOverlayAPI/webCameraSharingSchema.d.ts +2 -2
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +199 -0
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +21 -0
- package/types/types/CamStreamerAPI/hlsSchema.d.ts +21 -0
- package/types/types/CamStreamerAPI/index.d.ts +9 -0
- package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +21 -0
- package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +137 -0
- package/types/types/CamStreamerAPI/rtmpSchema.d.ts +21 -0
- package/types/types/CamStreamerAPI/sdCardSchema.d.ts +21 -0
- package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +20 -0
- package/types/types/CamStreamerAPI/windySchema.d.ts +21 -0
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +21 -0
- package/types/types/common.d.ts +1 -0
- package/types/types/ws/PlaneTrackerEvents.d.ts +3 -69
- package/cjs/types/CamStreamerAPI.d.ts +0 -272
- package/types/types/CamStreamerAPI.d.ts +0 -272
|
@@ -33,7 +33,8 @@ export declare const accuweatherSchema: z.ZodObject<{
|
|
|
33
33
|
id: number;
|
|
34
34
|
width: number;
|
|
35
35
|
height: number;
|
|
36
|
-
|
|
36
|
+
title: string;
|
|
37
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
37
38
|
cameraList: number[];
|
|
38
39
|
customName: string;
|
|
39
40
|
pos_x: number;
|
|
@@ -44,7 +45,6 @@ export declare const accuweatherSchema: z.ZodObject<{
|
|
|
44
45
|
font: string;
|
|
45
46
|
location: string;
|
|
46
47
|
locationName: string;
|
|
47
|
-
title: string;
|
|
48
48
|
bgStartColor: "237,143,73,0.93" | "0,0,0,0.75" | "31,32,73,0.9" | "76,94,127,0.95";
|
|
49
49
|
bgEndColor: "0,0,0,0.75" | "234,181,89,0.93" | "73,96,213,0.9" | "140,150,168,0.95";
|
|
50
50
|
lang: "en-us" | "fr-fr" | "ja-jp" | "pt-pt" | "es-es" | "de-de" | "ko-kr" | "zh-hk" | "zh-cn" | "nl-nl" | "cs-cz" | "ru-ru" | "sv-se";
|
|
@@ -60,7 +60,8 @@ export declare const accuweatherSchema: z.ZodObject<{
|
|
|
60
60
|
id: number;
|
|
61
61
|
width: number;
|
|
62
62
|
height: number;
|
|
63
|
-
|
|
63
|
+
title: string;
|
|
64
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
64
65
|
cameraList: number[];
|
|
65
66
|
pos_x: number;
|
|
66
67
|
pos_y: number;
|
|
@@ -70,7 +71,6 @@ export declare const accuweatherSchema: z.ZodObject<{
|
|
|
70
71
|
font: string;
|
|
71
72
|
location: string;
|
|
72
73
|
locationName: string;
|
|
73
|
-
title: string;
|
|
74
74
|
bgStartColor: "237,143,73,0.93" | "0,0,0,0.75" | "31,32,73,0.9" | "76,94,127,0.95";
|
|
75
75
|
bgEndColor: "0,0,0,0.75" | "234,181,89,0.93" | "73,96,213,0.9" | "140,150,168,0.95";
|
|
76
76
|
lang: "en-us" | "fr-fr" | "ja-jp" | "pt-pt" | "es-es" | "de-de" | "ko-kr" | "zh-hk" | "zh-cn" | "nl-nl" | "cs-cz" | "ru-ru" | "sv-se";
|
|
@@ -529,7 +529,7 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
529
529
|
id: number;
|
|
530
530
|
width: number;
|
|
531
531
|
height: number;
|
|
532
|
-
automationType: "
|
|
532
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
533
533
|
cameraList: number[];
|
|
534
534
|
customName: string;
|
|
535
535
|
pos_x: number;
|
|
@@ -609,7 +609,7 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
609
609
|
id: number;
|
|
610
610
|
width: number;
|
|
611
611
|
height: number;
|
|
612
|
-
automationType: "
|
|
612
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
613
613
|
cameraList: number[];
|
|
614
614
|
pos_x: number;
|
|
615
615
|
pos_y: number;
|
|
@@ -25,20 +25,20 @@ export declare const imagesSchema: z.ZodObject<{
|
|
|
25
25
|
fps: z.ZodOptional<z.ZodNumber>;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
27
|
duration: number;
|
|
28
|
+
active: boolean;
|
|
28
29
|
pos_x: number;
|
|
29
30
|
pos_y: number;
|
|
30
31
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
31
|
-
active: boolean;
|
|
32
32
|
imgPath: string;
|
|
33
33
|
imgName: string;
|
|
34
34
|
scale: number;
|
|
35
35
|
fps?: number | undefined;
|
|
36
36
|
}, {
|
|
37
37
|
duration: number;
|
|
38
|
+
active: boolean;
|
|
38
39
|
pos_x: number;
|
|
39
40
|
pos_y: number;
|
|
40
41
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
41
|
-
active: boolean;
|
|
42
42
|
imgPath: string;
|
|
43
43
|
imgName: string;
|
|
44
44
|
scale: number;
|
|
@@ -50,15 +50,15 @@ export declare const imagesSchema: z.ZodObject<{
|
|
|
50
50
|
id: number;
|
|
51
51
|
width: number;
|
|
52
52
|
height: number;
|
|
53
|
-
automationType: "
|
|
53
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
54
54
|
cameraList: number[];
|
|
55
55
|
customName: string;
|
|
56
56
|
overlayList: {
|
|
57
57
|
duration: number;
|
|
58
|
+
active: boolean;
|
|
58
59
|
pos_x: number;
|
|
59
60
|
pos_y: number;
|
|
60
61
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
61
|
-
active: boolean;
|
|
62
62
|
imgPath: string;
|
|
63
63
|
imgName: string;
|
|
64
64
|
scale: number;
|
|
@@ -74,14 +74,14 @@ export declare const imagesSchema: z.ZodObject<{
|
|
|
74
74
|
id: number;
|
|
75
75
|
width: number;
|
|
76
76
|
height: number;
|
|
77
|
-
automationType: "
|
|
77
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
78
78
|
cameraList: number[];
|
|
79
79
|
overlayList: {
|
|
80
80
|
duration: number;
|
|
81
|
+
active: boolean;
|
|
81
82
|
pos_x: number;
|
|
82
83
|
pos_y: number;
|
|
83
84
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
84
|
-
active: boolean;
|
|
85
85
|
imgPath: string;
|
|
86
86
|
imgName: string;
|
|
87
87
|
scale: number;
|
|
@@ -38,7 +38,7 @@ export declare const infoTickerSchema: z.ZodObject<{
|
|
|
38
38
|
width: number;
|
|
39
39
|
height: number;
|
|
40
40
|
source: string;
|
|
41
|
-
automationType: "
|
|
41
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
42
42
|
cameraList: number[];
|
|
43
43
|
customName: string;
|
|
44
44
|
pos_y: number;
|
|
@@ -69,7 +69,7 @@ export declare const infoTickerSchema: z.ZodObject<{
|
|
|
69
69
|
width: number;
|
|
70
70
|
height: number;
|
|
71
71
|
source: string;
|
|
72
|
-
automationType: "
|
|
72
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
73
73
|
cameraList: number[];
|
|
74
74
|
pos_y: number;
|
|
75
75
|
coordSystem: "top" | "bottom";
|
|
@@ -54,7 +54,7 @@ export declare const pipSchema: z.ZodObject<{
|
|
|
54
54
|
width: number;
|
|
55
55
|
height: number;
|
|
56
56
|
fps: number;
|
|
57
|
-
automationType: "
|
|
57
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
58
58
|
cameraList: number[];
|
|
59
59
|
customName: string;
|
|
60
60
|
pos_x: number;
|
|
@@ -92,7 +92,7 @@ export declare const pipSchema: z.ZodObject<{
|
|
|
92
92
|
width: number;
|
|
93
93
|
height: number;
|
|
94
94
|
fps: number;
|
|
95
|
-
automationType: "
|
|
95
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
96
96
|
cameraList: number[];
|
|
97
97
|
pos_x: number;
|
|
98
98
|
pos_y: number;
|
|
@@ -38,7 +38,7 @@ export declare const ptzCompassSchema: z.ZodObject<{
|
|
|
38
38
|
id: number;
|
|
39
39
|
width: number;
|
|
40
40
|
height: number;
|
|
41
|
-
automationType: "
|
|
41
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
42
42
|
cameraList: number[];
|
|
43
43
|
customName: string;
|
|
44
44
|
pos_x: number;
|
|
@@ -69,7 +69,7 @@ export declare const ptzCompassSchema: z.ZodObject<{
|
|
|
69
69
|
id: number;
|
|
70
70
|
width: number;
|
|
71
71
|
height: number;
|
|
72
|
-
automationType: "
|
|
72
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
73
73
|
cameraList: number[];
|
|
74
74
|
pos_x: number;
|
|
75
75
|
pos_y: number;
|
|
@@ -71,7 +71,7 @@ export declare const ptzSchema: z.ZodObject<{
|
|
|
71
71
|
id: number;
|
|
72
72
|
width: number;
|
|
73
73
|
height: number;
|
|
74
|
-
automationType: "
|
|
74
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
75
75
|
cameraList: number[];
|
|
76
76
|
customName: string;
|
|
77
77
|
ptz_positions: Record<string, {
|
|
@@ -96,7 +96,7 @@ export declare const ptzSchema: z.ZodObject<{
|
|
|
96
96
|
id: number;
|
|
97
97
|
width: number;
|
|
98
98
|
height: number;
|
|
99
|
-
automationType: "
|
|
99
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
100
100
|
cameraList: number[];
|
|
101
101
|
ptz_positions: Record<string, {
|
|
102
102
|
overlayList: {
|
|
@@ -26,7 +26,7 @@ export declare const screenSharingSchema: z.ZodObject<{
|
|
|
26
26
|
width: number;
|
|
27
27
|
height: number;
|
|
28
28
|
fps: number;
|
|
29
|
-
automationType: "
|
|
29
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
30
30
|
cameraList: number[];
|
|
31
31
|
customName: string;
|
|
32
32
|
pos_x: number;
|
|
@@ -44,7 +44,7 @@ export declare const screenSharingSchema: z.ZodObject<{
|
|
|
44
44
|
width: number;
|
|
45
45
|
height: number;
|
|
46
46
|
fps: number;
|
|
47
|
-
automationType: "
|
|
47
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
48
48
|
cameraList: number[];
|
|
49
49
|
pos_x: number;
|
|
50
50
|
pos_y: number;
|
|
@@ -39,7 +39,7 @@ export declare const serviceCommonSchema: z.ZodObject<{
|
|
|
39
39
|
id: number;
|
|
40
40
|
width: number;
|
|
41
41
|
height: number;
|
|
42
|
-
automationType: "
|
|
42
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
43
43
|
cameraList: number[];
|
|
44
44
|
customName: string;
|
|
45
45
|
camera?: number | undefined;
|
|
@@ -51,7 +51,7 @@ export declare const serviceCommonSchema: z.ZodObject<{
|
|
|
51
51
|
id: number;
|
|
52
52
|
width: number;
|
|
53
53
|
height: number;
|
|
54
|
-
automationType: "
|
|
54
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
55
55
|
cameraList: number[];
|
|
56
56
|
camera?: number | undefined;
|
|
57
57
|
schedule?: string | undefined;
|
|
@@ -83,7 +83,7 @@ export declare const sharingSchema: z.ZodObject<{
|
|
|
83
83
|
width: number;
|
|
84
84
|
height: number;
|
|
85
85
|
fps: number;
|
|
86
|
-
automationType: "
|
|
86
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
87
87
|
cameraList: number[];
|
|
88
88
|
customName: string;
|
|
89
89
|
pos_x: number;
|
|
@@ -100,7 +100,7 @@ export declare const sharingSchema: z.ZodObject<{
|
|
|
100
100
|
width: number;
|
|
101
101
|
height: number;
|
|
102
102
|
fps: number;
|
|
103
|
-
automationType: "
|
|
103
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
104
104
|
cameraList: number[];
|
|
105
105
|
pos_x: number;
|
|
106
106
|
pos_y: number;
|
|
@@ -124,20 +124,20 @@ export declare const overlaySchema: z.ZodObject<{
|
|
|
124
124
|
fps: z.ZodOptional<z.ZodNumber>;
|
|
125
125
|
}, "strip", z.ZodTypeAny, {
|
|
126
126
|
duration: number;
|
|
127
|
+
active: boolean;
|
|
127
128
|
pos_x: number;
|
|
128
129
|
pos_y: number;
|
|
129
130
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
130
|
-
active: boolean;
|
|
131
131
|
imgPath: string;
|
|
132
132
|
imgName: string;
|
|
133
133
|
scale: number;
|
|
134
134
|
fps?: number | undefined;
|
|
135
135
|
}, {
|
|
136
136
|
duration: number;
|
|
137
|
+
active: boolean;
|
|
137
138
|
pos_x: number;
|
|
138
139
|
pos_y: number;
|
|
139
140
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
140
|
-
active: boolean;
|
|
141
141
|
imgPath: string;
|
|
142
142
|
imgName: string;
|
|
143
143
|
scale: number;
|
|
@@ -26,7 +26,7 @@ export declare const webCameraSharingSchema: z.ZodObject<{
|
|
|
26
26
|
width: number;
|
|
27
27
|
height: number;
|
|
28
28
|
fps: number;
|
|
29
|
-
automationType: "
|
|
29
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
30
30
|
cameraList: number[];
|
|
31
31
|
customName: string;
|
|
32
32
|
pos_x: number;
|
|
@@ -44,7 +44,7 @@ export declare const webCameraSharingSchema: z.ZodObject<{
|
|
|
44
44
|
width: number;
|
|
45
45
|
height: number;
|
|
46
46
|
fps: number;
|
|
47
|
-
automationType: "
|
|
47
|
+
automationType: "schedule" | "time" | "manual" | `input${number}`;
|
|
48
48
|
cameraList: number[];
|
|
49
49
|
pos_x: number;
|
|
50
50
|
pos_y: number;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { facebookSchema } from './facebookSchema';
|
|
3
|
+
import { hlsSchema } from './hlsSchema';
|
|
4
|
+
import { mpegDvbSchema } from './mpegDvbSchema';
|
|
5
|
+
import { rtmpSchema } from './rtmpSchema';
|
|
6
|
+
import { sdCardSchema } from './sdCardSchema';
|
|
7
|
+
import { windySchema } from './windySchema';
|
|
8
|
+
import { youtubeSchema } from './youtubeSchema';
|
|
9
|
+
export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
10
|
+
enabled: z.ZodBoolean;
|
|
11
|
+
active: z.ZodBoolean;
|
|
12
|
+
title: z.ZodString;
|
|
13
|
+
order: z.ZodNumber;
|
|
14
|
+
} & {
|
|
15
|
+
type: z.ZodLiteral<"facebook">;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
type: "facebook";
|
|
18
|
+
enabled: boolean;
|
|
19
|
+
active: boolean;
|
|
20
|
+
title: string;
|
|
21
|
+
order: number;
|
|
22
|
+
}, {
|
|
23
|
+
type: "facebook";
|
|
24
|
+
enabled: boolean;
|
|
25
|
+
active: boolean;
|
|
26
|
+
title: string;
|
|
27
|
+
order: number;
|
|
28
|
+
}>, z.ZodObject<{
|
|
29
|
+
enabled: z.ZodBoolean;
|
|
30
|
+
active: z.ZodBoolean;
|
|
31
|
+
title: z.ZodString;
|
|
32
|
+
order: z.ZodNumber;
|
|
33
|
+
} & {
|
|
34
|
+
type: z.ZodLiteral<"hls">;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
type: "hls";
|
|
37
|
+
enabled: boolean;
|
|
38
|
+
active: boolean;
|
|
39
|
+
title: string;
|
|
40
|
+
order: number;
|
|
41
|
+
}, {
|
|
42
|
+
type: "hls";
|
|
43
|
+
enabled: boolean;
|
|
44
|
+
active: boolean;
|
|
45
|
+
title: string;
|
|
46
|
+
order: number;
|
|
47
|
+
}>, z.ZodObject<{
|
|
48
|
+
enabled: z.ZodBoolean;
|
|
49
|
+
active: z.ZodBoolean;
|
|
50
|
+
title: z.ZodString;
|
|
51
|
+
order: z.ZodNumber;
|
|
52
|
+
} & {
|
|
53
|
+
type: z.ZodLiteral<"mpeg_dvb">;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
type: "mpeg_dvb";
|
|
56
|
+
enabled: boolean;
|
|
57
|
+
active: boolean;
|
|
58
|
+
title: string;
|
|
59
|
+
order: number;
|
|
60
|
+
}, {
|
|
61
|
+
type: "mpeg_dvb";
|
|
62
|
+
enabled: boolean;
|
|
63
|
+
active: boolean;
|
|
64
|
+
title: string;
|
|
65
|
+
order: number;
|
|
66
|
+
}>, z.ZodObject<{
|
|
67
|
+
enabled: z.ZodBoolean;
|
|
68
|
+
active: z.ZodBoolean;
|
|
69
|
+
title: z.ZodString;
|
|
70
|
+
order: z.ZodNumber;
|
|
71
|
+
} & {
|
|
72
|
+
type: z.ZodLiteral<"rtmp">;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
type: "rtmp";
|
|
75
|
+
enabled: boolean;
|
|
76
|
+
active: boolean;
|
|
77
|
+
title: string;
|
|
78
|
+
order: number;
|
|
79
|
+
}, {
|
|
80
|
+
type: "rtmp";
|
|
81
|
+
enabled: boolean;
|
|
82
|
+
active: boolean;
|
|
83
|
+
title: string;
|
|
84
|
+
order: number;
|
|
85
|
+
}>, z.ZodObject<{
|
|
86
|
+
enabled: z.ZodBoolean;
|
|
87
|
+
active: z.ZodBoolean;
|
|
88
|
+
title: z.ZodString;
|
|
89
|
+
order: z.ZodNumber;
|
|
90
|
+
} & {
|
|
91
|
+
type: z.ZodLiteral<"sd_card">;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
type: "sd_card";
|
|
94
|
+
enabled: boolean;
|
|
95
|
+
active: boolean;
|
|
96
|
+
title: string;
|
|
97
|
+
order: number;
|
|
98
|
+
}, {
|
|
99
|
+
type: "sd_card";
|
|
100
|
+
enabled: boolean;
|
|
101
|
+
active: boolean;
|
|
102
|
+
title: string;
|
|
103
|
+
order: number;
|
|
104
|
+
}>, z.ZodObject<{
|
|
105
|
+
enabled: z.ZodBoolean;
|
|
106
|
+
active: z.ZodBoolean;
|
|
107
|
+
title: z.ZodString;
|
|
108
|
+
order: z.ZodNumber;
|
|
109
|
+
} & {
|
|
110
|
+
type: z.ZodLiteral<"windy">;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
type: "windy";
|
|
113
|
+
enabled: boolean;
|
|
114
|
+
active: boolean;
|
|
115
|
+
title: string;
|
|
116
|
+
order: number;
|
|
117
|
+
}, {
|
|
118
|
+
type: "windy";
|
|
119
|
+
enabled: boolean;
|
|
120
|
+
active: boolean;
|
|
121
|
+
title: string;
|
|
122
|
+
order: number;
|
|
123
|
+
}>, z.ZodObject<{
|
|
124
|
+
enabled: z.ZodBoolean;
|
|
125
|
+
active: z.ZodBoolean;
|
|
126
|
+
title: z.ZodString;
|
|
127
|
+
order: z.ZodNumber;
|
|
128
|
+
} & {
|
|
129
|
+
type: z.ZodLiteral<"youtube">;
|
|
130
|
+
}, "strip", z.ZodTypeAny, {
|
|
131
|
+
type: "youtube";
|
|
132
|
+
enabled: boolean;
|
|
133
|
+
active: boolean;
|
|
134
|
+
title: string;
|
|
135
|
+
order: number;
|
|
136
|
+
}, {
|
|
137
|
+
type: "youtube";
|
|
138
|
+
enabled: boolean;
|
|
139
|
+
active: boolean;
|
|
140
|
+
title: string;
|
|
141
|
+
order: number;
|
|
142
|
+
}>]>;
|
|
143
|
+
export type TStream = z.infer<typeof streamSchema>;
|
|
144
|
+
export type TFacebookStream = z.infer<typeof facebookSchema>;
|
|
145
|
+
export declare const isFacebookStream: (stream: TStream) => stream is {
|
|
146
|
+
type: "facebook";
|
|
147
|
+
enabled: boolean;
|
|
148
|
+
active: boolean;
|
|
149
|
+
title: string;
|
|
150
|
+
order: number;
|
|
151
|
+
};
|
|
152
|
+
export type THlsStream = z.infer<typeof hlsSchema>;
|
|
153
|
+
export declare const isHlsStream: (stream: TStream) => stream is {
|
|
154
|
+
type: "hls";
|
|
155
|
+
enabled: boolean;
|
|
156
|
+
active: boolean;
|
|
157
|
+
title: string;
|
|
158
|
+
order: number;
|
|
159
|
+
};
|
|
160
|
+
export type TMpegDvbStream = z.infer<typeof mpegDvbSchema>;
|
|
161
|
+
export declare const isMpegDvbStream: (stream: TStream) => stream is {
|
|
162
|
+
type: "mpeg_dvb";
|
|
163
|
+
enabled: boolean;
|
|
164
|
+
active: boolean;
|
|
165
|
+
title: string;
|
|
166
|
+
order: number;
|
|
167
|
+
};
|
|
168
|
+
export type TRtmpStream = z.infer<typeof rtmpSchema>;
|
|
169
|
+
export declare const isRtmpStream: (stream: TStream) => stream is {
|
|
170
|
+
type: "rtmp";
|
|
171
|
+
enabled: boolean;
|
|
172
|
+
active: boolean;
|
|
173
|
+
title: string;
|
|
174
|
+
order: number;
|
|
175
|
+
};
|
|
176
|
+
export type TSdCardStream = z.infer<typeof sdCardSchema>;
|
|
177
|
+
export declare const isSdCardStream: (stream: TStream) => stream is {
|
|
178
|
+
type: "sd_card";
|
|
179
|
+
enabled: boolean;
|
|
180
|
+
active: boolean;
|
|
181
|
+
title: string;
|
|
182
|
+
order: number;
|
|
183
|
+
};
|
|
184
|
+
export type TWindyStream = z.infer<typeof windySchema>;
|
|
185
|
+
export declare const isWindyStream: (stream: TStream) => stream is {
|
|
186
|
+
type: "windy";
|
|
187
|
+
enabled: boolean;
|
|
188
|
+
active: boolean;
|
|
189
|
+
title: string;
|
|
190
|
+
order: number;
|
|
191
|
+
};
|
|
192
|
+
export type TYouTubeStream = z.infer<typeof youtubeSchema>;
|
|
193
|
+
export declare const isYouTubeStream: (stream: TStream) => stream is {
|
|
194
|
+
type: "youtube";
|
|
195
|
+
enabled: boolean;
|
|
196
|
+
active: boolean;
|
|
197
|
+
title: string;
|
|
198
|
+
order: number;
|
|
199
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const facebookSchema: z.ZodObject<{
|
|
3
|
+
enabled: z.ZodBoolean;
|
|
4
|
+
active: z.ZodBoolean;
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
order: z.ZodNumber;
|
|
7
|
+
} & {
|
|
8
|
+
type: z.ZodLiteral<"facebook">;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
type: "facebook";
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
active: boolean;
|
|
13
|
+
title: string;
|
|
14
|
+
order: number;
|
|
15
|
+
}, {
|
|
16
|
+
type: "facebook";
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
active: boolean;
|
|
19
|
+
title: string;
|
|
20
|
+
order: number;
|
|
21
|
+
}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const hlsSchema: z.ZodObject<{
|
|
3
|
+
enabled: z.ZodBoolean;
|
|
4
|
+
active: z.ZodBoolean;
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
order: z.ZodNumber;
|
|
7
|
+
} & {
|
|
8
|
+
type: z.ZodLiteral<"hls">;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
type: "hls";
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
active: boolean;
|
|
13
|
+
title: string;
|
|
14
|
+
order: number;
|
|
15
|
+
}, {
|
|
16
|
+
type: "hls";
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
active: boolean;
|
|
19
|
+
title: string;
|
|
20
|
+
order: number;
|
|
21
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './CamStreamerAPI';
|
|
2
|
+
export * from './streamCommonTypes';
|
|
3
|
+
export * from './facebookSchema';
|
|
4
|
+
export * from './hlsSchema';
|
|
5
|
+
export * from './mpegDvbSchema';
|
|
6
|
+
export * from './rtmpSchema';
|
|
7
|
+
export * from './sdCardSchema';
|
|
8
|
+
export * from './windySchema';
|
|
9
|
+
export * from './youtubeSchema';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const mpegDvbSchema: z.ZodObject<{
|
|
3
|
+
enabled: z.ZodBoolean;
|
|
4
|
+
active: z.ZodBoolean;
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
order: z.ZodNumber;
|
|
7
|
+
} & {
|
|
8
|
+
type: z.ZodLiteral<"mpeg_dvb">;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
type: "mpeg_dvb";
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
active: boolean;
|
|
13
|
+
title: string;
|
|
14
|
+
order: number;
|
|
15
|
+
}, {
|
|
16
|
+
type: "mpeg_dvb";
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
active: boolean;
|
|
19
|
+
title: string;
|
|
20
|
+
order: number;
|
|
21
|
+
}>;
|