camstreamerlib 4.0.0-beta.79 → 4.0.0-beta.80
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/CamStreamerAPI.d.ts +1 -8
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +4 -32
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +0 -3
- package/cjs/types/CamStreamerAPI/hlsSchema.d.ts +0 -3
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +3 -6
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +1 -1
- package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +0 -3
- package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +0 -3
- package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +0 -3
- package/cjs/types/CamStreamerAPI/streamCommonTypes.js +0 -1
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +0 -3
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +0 -3
- package/esm/types/CamStreamerAPI/mpegDvbSchema.js +1 -1
- package/esm/types/CamStreamerAPI/streamCommonTypes.js +0 -1
- package/package.json +1 -1
- package/types/CamStreamerAPI.d.ts +1 -8
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +4 -32
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +0 -3
- package/types/types/CamStreamerAPI/hlsSchema.d.ts +0 -3
- package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +3 -6
- package/types/types/CamStreamerAPI/rtmpSchema.d.ts +0 -3
- package/types/types/CamStreamerAPI/sdCardSchema.d.ts +0 -3
- package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +0 -3
- package/types/types/CamStreamerAPI/windySchema.d.ts +0 -3
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +0 -3
package/cjs/CamStreamerAPI.d.ts
CHANGED
|
@@ -16,20 +16,17 @@ export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
|
16
16
|
enabled: boolean;
|
|
17
17
|
active: boolean;
|
|
18
18
|
title: string;
|
|
19
|
-
order: number;
|
|
20
19
|
} | {
|
|
21
20
|
type: "hls";
|
|
22
21
|
enabled: boolean;
|
|
23
22
|
active: boolean;
|
|
24
23
|
title: string;
|
|
25
|
-
order: number;
|
|
26
24
|
} | {
|
|
27
25
|
type: "mpeg_dvb";
|
|
28
26
|
port: number;
|
|
29
27
|
enabled: boolean;
|
|
30
28
|
active: boolean;
|
|
31
29
|
title: string;
|
|
32
|
-
order: number;
|
|
33
30
|
ipAddress: string;
|
|
34
31
|
standard: "DVB" | "ATSC";
|
|
35
32
|
nullPacketsPaddingEnabled: boolean;
|
|
@@ -44,32 +41,28 @@ export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
|
44
41
|
serviceName: string;
|
|
45
42
|
triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
|
|
46
43
|
statusCameraLed: boolean;
|
|
47
|
-
statusCameraOutput:
|
|
44
|
+
statusCameraOutput: string;
|
|
48
45
|
saveToSdCard: boolean;
|
|
49
46
|
} | {
|
|
50
47
|
type: "rtmp";
|
|
51
48
|
enabled: boolean;
|
|
52
49
|
active: boolean;
|
|
53
50
|
title: string;
|
|
54
|
-
order: number;
|
|
55
51
|
} | {
|
|
56
52
|
type: "sd_card";
|
|
57
53
|
enabled: boolean;
|
|
58
54
|
active: boolean;
|
|
59
55
|
title: string;
|
|
60
|
-
order: number;
|
|
61
56
|
} | {
|
|
62
57
|
type: "windy";
|
|
63
58
|
enabled: boolean;
|
|
64
59
|
active: boolean;
|
|
65
60
|
title: string;
|
|
66
|
-
order: number;
|
|
67
61
|
} | {
|
|
68
62
|
type: "youtube";
|
|
69
63
|
enabled: boolean;
|
|
70
64
|
active: boolean;
|
|
71
65
|
title: string;
|
|
72
|
-
order: number;
|
|
73
66
|
}>;
|
|
74
67
|
setStream(streamId: number, streamData: Partial<TStream>, options?: THttpRequestOptions): Promise<void>;
|
|
75
68
|
isStreaming(streamId: number, options?: THttpRequestOptions): Promise<boolean>;
|
|
@@ -10,7 +10,6 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
10
10
|
enabled: z.ZodBoolean;
|
|
11
11
|
active: z.ZodBoolean;
|
|
12
12
|
title: z.ZodString;
|
|
13
|
-
order: z.ZodNumber;
|
|
14
13
|
} & {
|
|
15
14
|
type: z.ZodLiteral<"facebook">;
|
|
16
15
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -18,18 +17,15 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
18
17
|
enabled: boolean;
|
|
19
18
|
active: boolean;
|
|
20
19
|
title: string;
|
|
21
|
-
order: number;
|
|
22
20
|
}, {
|
|
23
21
|
type: "facebook";
|
|
24
22
|
enabled: boolean;
|
|
25
23
|
active: boolean;
|
|
26
24
|
title: string;
|
|
27
|
-
order: number;
|
|
28
25
|
}>, z.ZodObject<{
|
|
29
26
|
enabled: z.ZodBoolean;
|
|
30
27
|
active: z.ZodBoolean;
|
|
31
28
|
title: z.ZodString;
|
|
32
|
-
order: z.ZodNumber;
|
|
33
29
|
} & {
|
|
34
30
|
type: z.ZodLiteral<"hls">;
|
|
35
31
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -37,18 +33,15 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
37
33
|
enabled: boolean;
|
|
38
34
|
active: boolean;
|
|
39
35
|
title: string;
|
|
40
|
-
order: number;
|
|
41
36
|
}, {
|
|
42
37
|
type: "hls";
|
|
43
38
|
enabled: boolean;
|
|
44
39
|
active: boolean;
|
|
45
40
|
title: string;
|
|
46
|
-
order: number;
|
|
47
41
|
}>, z.ZodObject<{
|
|
48
42
|
enabled: z.ZodBoolean;
|
|
49
43
|
active: z.ZodBoolean;
|
|
50
44
|
title: z.ZodString;
|
|
51
|
-
order: z.ZodNumber;
|
|
52
45
|
} & {
|
|
53
46
|
type: z.ZodLiteral<"mpeg_dvb">;
|
|
54
47
|
ipAddress: z.ZodString;
|
|
@@ -66,7 +59,7 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
66
59
|
serviceName: z.ZodString;
|
|
67
60
|
triggerType: z.ZodEnum<["manual", "onetime", "recurrent", "io", "nonstop"]>;
|
|
68
61
|
statusCameraLed: z.ZodBoolean;
|
|
69
|
-
statusCameraOutput: z.
|
|
62
|
+
statusCameraOutput: z.ZodString;
|
|
70
63
|
saveToSdCard: z.ZodBoolean;
|
|
71
64
|
}, "strip", z.ZodTypeAny, {
|
|
72
65
|
type: "mpeg_dvb";
|
|
@@ -74,7 +67,6 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
74
67
|
enabled: boolean;
|
|
75
68
|
active: boolean;
|
|
76
69
|
title: string;
|
|
77
|
-
order: number;
|
|
78
70
|
ipAddress: string;
|
|
79
71
|
standard: "DVB" | "ATSC";
|
|
80
72
|
nullPacketsPaddingEnabled: boolean;
|
|
@@ -89,7 +81,7 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
89
81
|
serviceName: string;
|
|
90
82
|
triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
|
|
91
83
|
statusCameraLed: boolean;
|
|
92
|
-
statusCameraOutput:
|
|
84
|
+
statusCameraOutput: string;
|
|
93
85
|
saveToSdCard: boolean;
|
|
94
86
|
}, {
|
|
95
87
|
type: "mpeg_dvb";
|
|
@@ -97,7 +89,6 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
97
89
|
enabled: boolean;
|
|
98
90
|
active: boolean;
|
|
99
91
|
title: string;
|
|
100
|
-
order: number;
|
|
101
92
|
ipAddress: string;
|
|
102
93
|
standard: "DVB" | "ATSC";
|
|
103
94
|
nullPacketsPaddingEnabled: boolean;
|
|
@@ -112,13 +103,12 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
112
103
|
serviceName: string;
|
|
113
104
|
triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
|
|
114
105
|
statusCameraLed: boolean;
|
|
115
|
-
statusCameraOutput:
|
|
106
|
+
statusCameraOutput: string;
|
|
116
107
|
saveToSdCard: boolean;
|
|
117
108
|
}>, z.ZodObject<{
|
|
118
109
|
enabled: z.ZodBoolean;
|
|
119
110
|
active: z.ZodBoolean;
|
|
120
111
|
title: z.ZodString;
|
|
121
|
-
order: z.ZodNumber;
|
|
122
112
|
} & {
|
|
123
113
|
type: z.ZodLiteral<"rtmp">;
|
|
124
114
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -126,18 +116,15 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
126
116
|
enabled: boolean;
|
|
127
117
|
active: boolean;
|
|
128
118
|
title: string;
|
|
129
|
-
order: number;
|
|
130
119
|
}, {
|
|
131
120
|
type: "rtmp";
|
|
132
121
|
enabled: boolean;
|
|
133
122
|
active: boolean;
|
|
134
123
|
title: string;
|
|
135
|
-
order: number;
|
|
136
124
|
}>, z.ZodObject<{
|
|
137
125
|
enabled: z.ZodBoolean;
|
|
138
126
|
active: z.ZodBoolean;
|
|
139
127
|
title: z.ZodString;
|
|
140
|
-
order: z.ZodNumber;
|
|
141
128
|
} & {
|
|
142
129
|
type: z.ZodLiteral<"sd_card">;
|
|
143
130
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -145,18 +132,15 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
145
132
|
enabled: boolean;
|
|
146
133
|
active: boolean;
|
|
147
134
|
title: string;
|
|
148
|
-
order: number;
|
|
149
135
|
}, {
|
|
150
136
|
type: "sd_card";
|
|
151
137
|
enabled: boolean;
|
|
152
138
|
active: boolean;
|
|
153
139
|
title: string;
|
|
154
|
-
order: number;
|
|
155
140
|
}>, z.ZodObject<{
|
|
156
141
|
enabled: z.ZodBoolean;
|
|
157
142
|
active: z.ZodBoolean;
|
|
158
143
|
title: z.ZodString;
|
|
159
|
-
order: z.ZodNumber;
|
|
160
144
|
} & {
|
|
161
145
|
type: z.ZodLiteral<"windy">;
|
|
162
146
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -164,18 +148,15 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
164
148
|
enabled: boolean;
|
|
165
149
|
active: boolean;
|
|
166
150
|
title: string;
|
|
167
|
-
order: number;
|
|
168
151
|
}, {
|
|
169
152
|
type: "windy";
|
|
170
153
|
enabled: boolean;
|
|
171
154
|
active: boolean;
|
|
172
155
|
title: string;
|
|
173
|
-
order: number;
|
|
174
156
|
}>, z.ZodObject<{
|
|
175
157
|
enabled: z.ZodBoolean;
|
|
176
158
|
active: z.ZodBoolean;
|
|
177
159
|
title: z.ZodString;
|
|
178
|
-
order: z.ZodNumber;
|
|
179
160
|
} & {
|
|
180
161
|
type: z.ZodLiteral<"youtube">;
|
|
181
162
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -183,13 +164,11 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
183
164
|
enabled: boolean;
|
|
184
165
|
active: boolean;
|
|
185
166
|
title: string;
|
|
186
|
-
order: number;
|
|
187
167
|
}, {
|
|
188
168
|
type: "youtube";
|
|
189
169
|
enabled: boolean;
|
|
190
170
|
active: boolean;
|
|
191
171
|
title: string;
|
|
192
|
-
order: number;
|
|
193
172
|
}>]>;
|
|
194
173
|
export type TStream = z.infer<typeof streamSchema>;
|
|
195
174
|
export type TFacebookStream = z.infer<typeof facebookSchema>;
|
|
@@ -198,7 +177,6 @@ export declare const isFacebookStream: (stream: TStream) => stream is {
|
|
|
198
177
|
enabled: boolean;
|
|
199
178
|
active: boolean;
|
|
200
179
|
title: string;
|
|
201
|
-
order: number;
|
|
202
180
|
};
|
|
203
181
|
export type THlsStream = z.infer<typeof hlsSchema>;
|
|
204
182
|
export declare const isHlsStream: (stream: TStream) => stream is {
|
|
@@ -206,7 +184,6 @@ export declare const isHlsStream: (stream: TStream) => stream is {
|
|
|
206
184
|
enabled: boolean;
|
|
207
185
|
active: boolean;
|
|
208
186
|
title: string;
|
|
209
|
-
order: number;
|
|
210
187
|
};
|
|
211
188
|
export type TMpegDvbStream = z.infer<typeof mpegDvbSchema>;
|
|
212
189
|
export declare const isMpegDvbStream: (stream: TStream) => stream is {
|
|
@@ -215,7 +192,6 @@ export declare const isMpegDvbStream: (stream: TStream) => stream is {
|
|
|
215
192
|
enabled: boolean;
|
|
216
193
|
active: boolean;
|
|
217
194
|
title: string;
|
|
218
|
-
order: number;
|
|
219
195
|
ipAddress: string;
|
|
220
196
|
standard: "DVB" | "ATSC";
|
|
221
197
|
nullPacketsPaddingEnabled: boolean;
|
|
@@ -230,7 +206,7 @@ export declare const isMpegDvbStream: (stream: TStream) => stream is {
|
|
|
230
206
|
serviceName: string;
|
|
231
207
|
triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
|
|
232
208
|
statusCameraLed: boolean;
|
|
233
|
-
statusCameraOutput:
|
|
209
|
+
statusCameraOutput: string;
|
|
234
210
|
saveToSdCard: boolean;
|
|
235
211
|
};
|
|
236
212
|
export type TRtmpStream = z.infer<typeof rtmpSchema>;
|
|
@@ -239,7 +215,6 @@ export declare const isRtmpStream: (stream: TStream) => stream is {
|
|
|
239
215
|
enabled: boolean;
|
|
240
216
|
active: boolean;
|
|
241
217
|
title: string;
|
|
242
|
-
order: number;
|
|
243
218
|
};
|
|
244
219
|
export type TSdCardStream = z.infer<typeof sdCardSchema>;
|
|
245
220
|
export declare const isSdCardStream: (stream: TStream) => stream is {
|
|
@@ -247,7 +222,6 @@ export declare const isSdCardStream: (stream: TStream) => stream is {
|
|
|
247
222
|
enabled: boolean;
|
|
248
223
|
active: boolean;
|
|
249
224
|
title: string;
|
|
250
|
-
order: number;
|
|
251
225
|
};
|
|
252
226
|
export type TWindyStream = z.infer<typeof windySchema>;
|
|
253
227
|
export declare const isWindyStream: (stream: TStream) => stream is {
|
|
@@ -255,7 +229,6 @@ export declare const isWindyStream: (stream: TStream) => stream is {
|
|
|
255
229
|
enabled: boolean;
|
|
256
230
|
active: boolean;
|
|
257
231
|
title: string;
|
|
258
|
-
order: number;
|
|
259
232
|
};
|
|
260
233
|
export type TYouTubeStream = z.infer<typeof youtubeSchema>;
|
|
261
234
|
export declare const isYouTubeStream: (stream: TStream) => stream is {
|
|
@@ -263,5 +236,4 @@ export declare const isYouTubeStream: (stream: TStream) => stream is {
|
|
|
263
236
|
enabled: boolean;
|
|
264
237
|
active: boolean;
|
|
265
238
|
title: string;
|
|
266
|
-
order: number;
|
|
267
239
|
};
|
|
@@ -3,7 +3,6 @@ export declare const facebookSchema: z.ZodObject<{
|
|
|
3
3
|
enabled: z.ZodBoolean;
|
|
4
4
|
active: z.ZodBoolean;
|
|
5
5
|
title: z.ZodString;
|
|
6
|
-
order: z.ZodNumber;
|
|
7
6
|
} & {
|
|
8
7
|
type: z.ZodLiteral<"facebook">;
|
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11,11 +10,9 @@ export declare const facebookSchema: z.ZodObject<{
|
|
|
11
10
|
enabled: boolean;
|
|
12
11
|
active: boolean;
|
|
13
12
|
title: string;
|
|
14
|
-
order: number;
|
|
15
13
|
}, {
|
|
16
14
|
type: "facebook";
|
|
17
15
|
enabled: boolean;
|
|
18
16
|
active: boolean;
|
|
19
17
|
title: string;
|
|
20
|
-
order: number;
|
|
21
18
|
}>;
|
|
@@ -3,7 +3,6 @@ export declare const hlsSchema: z.ZodObject<{
|
|
|
3
3
|
enabled: z.ZodBoolean;
|
|
4
4
|
active: z.ZodBoolean;
|
|
5
5
|
title: z.ZodString;
|
|
6
|
-
order: z.ZodNumber;
|
|
7
6
|
} & {
|
|
8
7
|
type: z.ZodLiteral<"hls">;
|
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11,11 +10,9 @@ export declare const hlsSchema: z.ZodObject<{
|
|
|
11
10
|
enabled: boolean;
|
|
12
11
|
active: boolean;
|
|
13
12
|
title: string;
|
|
14
|
-
order: number;
|
|
15
13
|
}, {
|
|
16
14
|
type: "hls";
|
|
17
15
|
enabled: boolean;
|
|
18
16
|
active: boolean;
|
|
19
17
|
title: string;
|
|
20
|
-
order: number;
|
|
21
18
|
}>;
|
|
@@ -3,7 +3,6 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
3
3
|
enabled: z.ZodBoolean;
|
|
4
4
|
active: z.ZodBoolean;
|
|
5
5
|
title: z.ZodString;
|
|
6
|
-
order: z.ZodNumber;
|
|
7
6
|
} & {
|
|
8
7
|
type: z.ZodLiteral<"mpeg_dvb">;
|
|
9
8
|
ipAddress: z.ZodString;
|
|
@@ -21,7 +20,7 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
21
20
|
serviceName: z.ZodString;
|
|
22
21
|
triggerType: z.ZodEnum<["manual", "onetime", "recurrent", "io", "nonstop"]>;
|
|
23
22
|
statusCameraLed: z.ZodBoolean;
|
|
24
|
-
statusCameraOutput: z.
|
|
23
|
+
statusCameraOutput: z.ZodString;
|
|
25
24
|
saveToSdCard: z.ZodBoolean;
|
|
26
25
|
}, "strip", z.ZodTypeAny, {
|
|
27
26
|
type: "mpeg_dvb";
|
|
@@ -29,7 +28,6 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
29
28
|
enabled: boolean;
|
|
30
29
|
active: boolean;
|
|
31
30
|
title: string;
|
|
32
|
-
order: number;
|
|
33
31
|
ipAddress: string;
|
|
34
32
|
standard: "DVB" | "ATSC";
|
|
35
33
|
nullPacketsPaddingEnabled: boolean;
|
|
@@ -44,7 +42,7 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
44
42
|
serviceName: string;
|
|
45
43
|
triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
|
|
46
44
|
statusCameraLed: boolean;
|
|
47
|
-
statusCameraOutput:
|
|
45
|
+
statusCameraOutput: string;
|
|
48
46
|
saveToSdCard: boolean;
|
|
49
47
|
}, {
|
|
50
48
|
type: "mpeg_dvb";
|
|
@@ -52,7 +50,6 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
52
50
|
enabled: boolean;
|
|
53
51
|
active: boolean;
|
|
54
52
|
title: string;
|
|
55
|
-
order: number;
|
|
56
53
|
ipAddress: string;
|
|
57
54
|
standard: "DVB" | "ATSC";
|
|
58
55
|
nullPacketsPaddingEnabled: boolean;
|
|
@@ -67,6 +64,6 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
67
64
|
serviceName: string;
|
|
68
65
|
triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
|
|
69
66
|
statusCameraLed: boolean;
|
|
70
|
-
statusCameraOutput:
|
|
67
|
+
statusCameraOutput: string;
|
|
71
68
|
saveToSdCard: boolean;
|
|
72
69
|
}>;
|
|
@@ -23,6 +23,6 @@ exports.mpegDvbSchema = streamCommonTypes_1.streamCommonSchema.extend({
|
|
|
23
23
|
serviceName: zod_1.default.string(),
|
|
24
24
|
triggerType: zod_1.default.enum(['manual', 'onetime', 'recurrent', 'io', 'nonstop']),
|
|
25
25
|
statusCameraLed: zod_1.default.boolean(),
|
|
26
|
-
statusCameraOutput: zod_1.default.
|
|
26
|
+
statusCameraOutput: zod_1.default.string(),
|
|
27
27
|
saveToSdCard: zod_1.default.boolean(),
|
|
28
28
|
});
|
|
@@ -3,7 +3,6 @@ export declare const rtmpSchema: z.ZodObject<{
|
|
|
3
3
|
enabled: z.ZodBoolean;
|
|
4
4
|
active: z.ZodBoolean;
|
|
5
5
|
title: z.ZodString;
|
|
6
|
-
order: z.ZodNumber;
|
|
7
6
|
} & {
|
|
8
7
|
type: z.ZodLiteral<"rtmp">;
|
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11,11 +10,9 @@ export declare const rtmpSchema: z.ZodObject<{
|
|
|
11
10
|
enabled: boolean;
|
|
12
11
|
active: boolean;
|
|
13
12
|
title: string;
|
|
14
|
-
order: number;
|
|
15
13
|
}, {
|
|
16
14
|
type: "rtmp";
|
|
17
15
|
enabled: boolean;
|
|
18
16
|
active: boolean;
|
|
19
17
|
title: string;
|
|
20
|
-
order: number;
|
|
21
18
|
}>;
|
|
@@ -3,7 +3,6 @@ export declare const sdCardSchema: z.ZodObject<{
|
|
|
3
3
|
enabled: z.ZodBoolean;
|
|
4
4
|
active: z.ZodBoolean;
|
|
5
5
|
title: z.ZodString;
|
|
6
|
-
order: z.ZodNumber;
|
|
7
6
|
} & {
|
|
8
7
|
type: z.ZodLiteral<"sd_card">;
|
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11,11 +10,9 @@ export declare const sdCardSchema: z.ZodObject<{
|
|
|
11
10
|
enabled: boolean;
|
|
12
11
|
active: boolean;
|
|
13
12
|
title: string;
|
|
14
|
-
order: number;
|
|
15
13
|
}, {
|
|
16
14
|
type: "sd_card";
|
|
17
15
|
enabled: boolean;
|
|
18
16
|
active: boolean;
|
|
19
17
|
title: string;
|
|
20
|
-
order: number;
|
|
21
18
|
}>;
|
|
@@ -5,16 +5,13 @@ export declare const streamCommonSchema: z.ZodObject<{
|
|
|
5
5
|
enabled: z.ZodBoolean;
|
|
6
6
|
active: z.ZodBoolean;
|
|
7
7
|
title: z.ZodString;
|
|
8
|
-
order: z.ZodNumber;
|
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
|
10
9
|
enabled: boolean;
|
|
11
10
|
active: boolean;
|
|
12
11
|
title: string;
|
|
13
|
-
order: number;
|
|
14
12
|
}, {
|
|
15
13
|
enabled: boolean;
|
|
16
14
|
active: boolean;
|
|
17
15
|
title: string;
|
|
18
|
-
order: number;
|
|
19
16
|
}>;
|
|
20
17
|
export type TCommonStream = z.infer<typeof streamCommonSchema>;
|
|
@@ -3,7 +3,6 @@ export declare const windySchema: z.ZodObject<{
|
|
|
3
3
|
enabled: z.ZodBoolean;
|
|
4
4
|
active: z.ZodBoolean;
|
|
5
5
|
title: z.ZodString;
|
|
6
|
-
order: z.ZodNumber;
|
|
7
6
|
} & {
|
|
8
7
|
type: z.ZodLiteral<"windy">;
|
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11,11 +10,9 @@ export declare const windySchema: z.ZodObject<{
|
|
|
11
10
|
enabled: boolean;
|
|
12
11
|
active: boolean;
|
|
13
12
|
title: string;
|
|
14
|
-
order: number;
|
|
15
13
|
}, {
|
|
16
14
|
type: "windy";
|
|
17
15
|
enabled: boolean;
|
|
18
16
|
active: boolean;
|
|
19
17
|
title: string;
|
|
20
|
-
order: number;
|
|
21
18
|
}>;
|
|
@@ -3,7 +3,6 @@ export declare const youtubeSchema: z.ZodObject<{
|
|
|
3
3
|
enabled: z.ZodBoolean;
|
|
4
4
|
active: z.ZodBoolean;
|
|
5
5
|
title: z.ZodString;
|
|
6
|
-
order: z.ZodNumber;
|
|
7
6
|
} & {
|
|
8
7
|
type: z.ZodLiteral<"youtube">;
|
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11,11 +10,9 @@ export declare const youtubeSchema: z.ZodObject<{
|
|
|
11
10
|
enabled: boolean;
|
|
12
11
|
active: boolean;
|
|
13
12
|
title: string;
|
|
14
|
-
order: number;
|
|
15
13
|
}, {
|
|
16
14
|
type: "youtube";
|
|
17
15
|
enabled: boolean;
|
|
18
16
|
active: boolean;
|
|
19
17
|
title: string;
|
|
20
|
-
order: number;
|
|
21
18
|
}>;
|
|
@@ -17,6 +17,6 @@ export const mpegDvbSchema = streamCommonSchema.extend({
|
|
|
17
17
|
serviceName: z.string(),
|
|
18
18
|
triggerType: z.enum(['manual', 'onetime', 'recurrent', 'io', 'nonstop']),
|
|
19
19
|
statusCameraLed: z.boolean(),
|
|
20
|
-
statusCameraOutput: z.
|
|
20
|
+
statusCameraOutput: z.string(),
|
|
21
21
|
saveToSdCard: z.boolean(),
|
|
22
22
|
});
|
package/package.json
CHANGED
|
@@ -16,20 +16,17 @@ export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
|
16
16
|
enabled: boolean;
|
|
17
17
|
active: boolean;
|
|
18
18
|
title: string;
|
|
19
|
-
order: number;
|
|
20
19
|
} | {
|
|
21
20
|
type: "hls";
|
|
22
21
|
enabled: boolean;
|
|
23
22
|
active: boolean;
|
|
24
23
|
title: string;
|
|
25
|
-
order: number;
|
|
26
24
|
} | {
|
|
27
25
|
type: "mpeg_dvb";
|
|
28
26
|
port: number;
|
|
29
27
|
enabled: boolean;
|
|
30
28
|
active: boolean;
|
|
31
29
|
title: string;
|
|
32
|
-
order: number;
|
|
33
30
|
ipAddress: string;
|
|
34
31
|
standard: "DVB" | "ATSC";
|
|
35
32
|
nullPacketsPaddingEnabled: boolean;
|
|
@@ -44,32 +41,28 @@ export declare class CamStreamerAPI<Client extends IClient<TResponse, any>> {
|
|
|
44
41
|
serviceName: string;
|
|
45
42
|
triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
|
|
46
43
|
statusCameraLed: boolean;
|
|
47
|
-
statusCameraOutput:
|
|
44
|
+
statusCameraOutput: string;
|
|
48
45
|
saveToSdCard: boolean;
|
|
49
46
|
} | {
|
|
50
47
|
type: "rtmp";
|
|
51
48
|
enabled: boolean;
|
|
52
49
|
active: boolean;
|
|
53
50
|
title: string;
|
|
54
|
-
order: number;
|
|
55
51
|
} | {
|
|
56
52
|
type: "sd_card";
|
|
57
53
|
enabled: boolean;
|
|
58
54
|
active: boolean;
|
|
59
55
|
title: string;
|
|
60
|
-
order: number;
|
|
61
56
|
} | {
|
|
62
57
|
type: "windy";
|
|
63
58
|
enabled: boolean;
|
|
64
59
|
active: boolean;
|
|
65
60
|
title: string;
|
|
66
|
-
order: number;
|
|
67
61
|
} | {
|
|
68
62
|
type: "youtube";
|
|
69
63
|
enabled: boolean;
|
|
70
64
|
active: boolean;
|
|
71
65
|
title: string;
|
|
72
|
-
order: number;
|
|
73
66
|
}>;
|
|
74
67
|
setStream(streamId: number, streamData: Partial<TStream>, options?: THttpRequestOptions): Promise<void>;
|
|
75
68
|
isStreaming(streamId: number, options?: THttpRequestOptions): Promise<boolean>;
|
|
@@ -10,7 +10,6 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
10
10
|
enabled: z.ZodBoolean;
|
|
11
11
|
active: z.ZodBoolean;
|
|
12
12
|
title: z.ZodString;
|
|
13
|
-
order: z.ZodNumber;
|
|
14
13
|
} & {
|
|
15
14
|
type: z.ZodLiteral<"facebook">;
|
|
16
15
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -18,18 +17,15 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
18
17
|
enabled: boolean;
|
|
19
18
|
active: boolean;
|
|
20
19
|
title: string;
|
|
21
|
-
order: number;
|
|
22
20
|
}, {
|
|
23
21
|
type: "facebook";
|
|
24
22
|
enabled: boolean;
|
|
25
23
|
active: boolean;
|
|
26
24
|
title: string;
|
|
27
|
-
order: number;
|
|
28
25
|
}>, z.ZodObject<{
|
|
29
26
|
enabled: z.ZodBoolean;
|
|
30
27
|
active: z.ZodBoolean;
|
|
31
28
|
title: z.ZodString;
|
|
32
|
-
order: z.ZodNumber;
|
|
33
29
|
} & {
|
|
34
30
|
type: z.ZodLiteral<"hls">;
|
|
35
31
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -37,18 +33,15 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
37
33
|
enabled: boolean;
|
|
38
34
|
active: boolean;
|
|
39
35
|
title: string;
|
|
40
|
-
order: number;
|
|
41
36
|
}, {
|
|
42
37
|
type: "hls";
|
|
43
38
|
enabled: boolean;
|
|
44
39
|
active: boolean;
|
|
45
40
|
title: string;
|
|
46
|
-
order: number;
|
|
47
41
|
}>, z.ZodObject<{
|
|
48
42
|
enabled: z.ZodBoolean;
|
|
49
43
|
active: z.ZodBoolean;
|
|
50
44
|
title: z.ZodString;
|
|
51
|
-
order: z.ZodNumber;
|
|
52
45
|
} & {
|
|
53
46
|
type: z.ZodLiteral<"mpeg_dvb">;
|
|
54
47
|
ipAddress: z.ZodString;
|
|
@@ -66,7 +59,7 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
66
59
|
serviceName: z.ZodString;
|
|
67
60
|
triggerType: z.ZodEnum<["manual", "onetime", "recurrent", "io", "nonstop"]>;
|
|
68
61
|
statusCameraLed: z.ZodBoolean;
|
|
69
|
-
statusCameraOutput: z.
|
|
62
|
+
statusCameraOutput: z.ZodString;
|
|
70
63
|
saveToSdCard: z.ZodBoolean;
|
|
71
64
|
}, "strip", z.ZodTypeAny, {
|
|
72
65
|
type: "mpeg_dvb";
|
|
@@ -74,7 +67,6 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
74
67
|
enabled: boolean;
|
|
75
68
|
active: boolean;
|
|
76
69
|
title: string;
|
|
77
|
-
order: number;
|
|
78
70
|
ipAddress: string;
|
|
79
71
|
standard: "DVB" | "ATSC";
|
|
80
72
|
nullPacketsPaddingEnabled: boolean;
|
|
@@ -89,7 +81,7 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
89
81
|
serviceName: string;
|
|
90
82
|
triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
|
|
91
83
|
statusCameraLed: boolean;
|
|
92
|
-
statusCameraOutput:
|
|
84
|
+
statusCameraOutput: string;
|
|
93
85
|
saveToSdCard: boolean;
|
|
94
86
|
}, {
|
|
95
87
|
type: "mpeg_dvb";
|
|
@@ -97,7 +89,6 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
97
89
|
enabled: boolean;
|
|
98
90
|
active: boolean;
|
|
99
91
|
title: string;
|
|
100
|
-
order: number;
|
|
101
92
|
ipAddress: string;
|
|
102
93
|
standard: "DVB" | "ATSC";
|
|
103
94
|
nullPacketsPaddingEnabled: boolean;
|
|
@@ -112,13 +103,12 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
112
103
|
serviceName: string;
|
|
113
104
|
triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
|
|
114
105
|
statusCameraLed: boolean;
|
|
115
|
-
statusCameraOutput:
|
|
106
|
+
statusCameraOutput: string;
|
|
116
107
|
saveToSdCard: boolean;
|
|
117
108
|
}>, z.ZodObject<{
|
|
118
109
|
enabled: z.ZodBoolean;
|
|
119
110
|
active: z.ZodBoolean;
|
|
120
111
|
title: z.ZodString;
|
|
121
|
-
order: z.ZodNumber;
|
|
122
112
|
} & {
|
|
123
113
|
type: z.ZodLiteral<"rtmp">;
|
|
124
114
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -126,18 +116,15 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
126
116
|
enabled: boolean;
|
|
127
117
|
active: boolean;
|
|
128
118
|
title: string;
|
|
129
|
-
order: number;
|
|
130
119
|
}, {
|
|
131
120
|
type: "rtmp";
|
|
132
121
|
enabled: boolean;
|
|
133
122
|
active: boolean;
|
|
134
123
|
title: string;
|
|
135
|
-
order: number;
|
|
136
124
|
}>, z.ZodObject<{
|
|
137
125
|
enabled: z.ZodBoolean;
|
|
138
126
|
active: z.ZodBoolean;
|
|
139
127
|
title: z.ZodString;
|
|
140
|
-
order: z.ZodNumber;
|
|
141
128
|
} & {
|
|
142
129
|
type: z.ZodLiteral<"sd_card">;
|
|
143
130
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -145,18 +132,15 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
145
132
|
enabled: boolean;
|
|
146
133
|
active: boolean;
|
|
147
134
|
title: string;
|
|
148
|
-
order: number;
|
|
149
135
|
}, {
|
|
150
136
|
type: "sd_card";
|
|
151
137
|
enabled: boolean;
|
|
152
138
|
active: boolean;
|
|
153
139
|
title: string;
|
|
154
|
-
order: number;
|
|
155
140
|
}>, z.ZodObject<{
|
|
156
141
|
enabled: z.ZodBoolean;
|
|
157
142
|
active: z.ZodBoolean;
|
|
158
143
|
title: z.ZodString;
|
|
159
|
-
order: z.ZodNumber;
|
|
160
144
|
} & {
|
|
161
145
|
type: z.ZodLiteral<"windy">;
|
|
162
146
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -164,18 +148,15 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
164
148
|
enabled: boolean;
|
|
165
149
|
active: boolean;
|
|
166
150
|
title: string;
|
|
167
|
-
order: number;
|
|
168
151
|
}, {
|
|
169
152
|
type: "windy";
|
|
170
153
|
enabled: boolean;
|
|
171
154
|
active: boolean;
|
|
172
155
|
title: string;
|
|
173
|
-
order: number;
|
|
174
156
|
}>, z.ZodObject<{
|
|
175
157
|
enabled: z.ZodBoolean;
|
|
176
158
|
active: z.ZodBoolean;
|
|
177
159
|
title: z.ZodString;
|
|
178
|
-
order: z.ZodNumber;
|
|
179
160
|
} & {
|
|
180
161
|
type: z.ZodLiteral<"youtube">;
|
|
181
162
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -183,13 +164,11 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
183
164
|
enabled: boolean;
|
|
184
165
|
active: boolean;
|
|
185
166
|
title: string;
|
|
186
|
-
order: number;
|
|
187
167
|
}, {
|
|
188
168
|
type: "youtube";
|
|
189
169
|
enabled: boolean;
|
|
190
170
|
active: boolean;
|
|
191
171
|
title: string;
|
|
192
|
-
order: number;
|
|
193
172
|
}>]>;
|
|
194
173
|
export type TStream = z.infer<typeof streamSchema>;
|
|
195
174
|
export type TFacebookStream = z.infer<typeof facebookSchema>;
|
|
@@ -198,7 +177,6 @@ export declare const isFacebookStream: (stream: TStream) => stream is {
|
|
|
198
177
|
enabled: boolean;
|
|
199
178
|
active: boolean;
|
|
200
179
|
title: string;
|
|
201
|
-
order: number;
|
|
202
180
|
};
|
|
203
181
|
export type THlsStream = z.infer<typeof hlsSchema>;
|
|
204
182
|
export declare const isHlsStream: (stream: TStream) => stream is {
|
|
@@ -206,7 +184,6 @@ export declare const isHlsStream: (stream: TStream) => stream is {
|
|
|
206
184
|
enabled: boolean;
|
|
207
185
|
active: boolean;
|
|
208
186
|
title: string;
|
|
209
|
-
order: number;
|
|
210
187
|
};
|
|
211
188
|
export type TMpegDvbStream = z.infer<typeof mpegDvbSchema>;
|
|
212
189
|
export declare const isMpegDvbStream: (stream: TStream) => stream is {
|
|
@@ -215,7 +192,6 @@ export declare const isMpegDvbStream: (stream: TStream) => stream is {
|
|
|
215
192
|
enabled: boolean;
|
|
216
193
|
active: boolean;
|
|
217
194
|
title: string;
|
|
218
|
-
order: number;
|
|
219
195
|
ipAddress: string;
|
|
220
196
|
standard: "DVB" | "ATSC";
|
|
221
197
|
nullPacketsPaddingEnabled: boolean;
|
|
@@ -230,7 +206,7 @@ export declare const isMpegDvbStream: (stream: TStream) => stream is {
|
|
|
230
206
|
serviceName: string;
|
|
231
207
|
triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
|
|
232
208
|
statusCameraLed: boolean;
|
|
233
|
-
statusCameraOutput:
|
|
209
|
+
statusCameraOutput: string;
|
|
234
210
|
saveToSdCard: boolean;
|
|
235
211
|
};
|
|
236
212
|
export type TRtmpStream = z.infer<typeof rtmpSchema>;
|
|
@@ -239,7 +215,6 @@ export declare const isRtmpStream: (stream: TStream) => stream is {
|
|
|
239
215
|
enabled: boolean;
|
|
240
216
|
active: boolean;
|
|
241
217
|
title: string;
|
|
242
|
-
order: number;
|
|
243
218
|
};
|
|
244
219
|
export type TSdCardStream = z.infer<typeof sdCardSchema>;
|
|
245
220
|
export declare const isSdCardStream: (stream: TStream) => stream is {
|
|
@@ -247,7 +222,6 @@ export declare const isSdCardStream: (stream: TStream) => stream is {
|
|
|
247
222
|
enabled: boolean;
|
|
248
223
|
active: boolean;
|
|
249
224
|
title: string;
|
|
250
|
-
order: number;
|
|
251
225
|
};
|
|
252
226
|
export type TWindyStream = z.infer<typeof windySchema>;
|
|
253
227
|
export declare const isWindyStream: (stream: TStream) => stream is {
|
|
@@ -255,7 +229,6 @@ export declare const isWindyStream: (stream: TStream) => stream is {
|
|
|
255
229
|
enabled: boolean;
|
|
256
230
|
active: boolean;
|
|
257
231
|
title: string;
|
|
258
|
-
order: number;
|
|
259
232
|
};
|
|
260
233
|
export type TYouTubeStream = z.infer<typeof youtubeSchema>;
|
|
261
234
|
export declare const isYouTubeStream: (stream: TStream) => stream is {
|
|
@@ -263,5 +236,4 @@ export declare const isYouTubeStream: (stream: TStream) => stream is {
|
|
|
263
236
|
enabled: boolean;
|
|
264
237
|
active: boolean;
|
|
265
238
|
title: string;
|
|
266
|
-
order: number;
|
|
267
239
|
};
|
|
@@ -3,7 +3,6 @@ export declare const facebookSchema: z.ZodObject<{
|
|
|
3
3
|
enabled: z.ZodBoolean;
|
|
4
4
|
active: z.ZodBoolean;
|
|
5
5
|
title: z.ZodString;
|
|
6
|
-
order: z.ZodNumber;
|
|
7
6
|
} & {
|
|
8
7
|
type: z.ZodLiteral<"facebook">;
|
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11,11 +10,9 @@ export declare const facebookSchema: z.ZodObject<{
|
|
|
11
10
|
enabled: boolean;
|
|
12
11
|
active: boolean;
|
|
13
12
|
title: string;
|
|
14
|
-
order: number;
|
|
15
13
|
}, {
|
|
16
14
|
type: "facebook";
|
|
17
15
|
enabled: boolean;
|
|
18
16
|
active: boolean;
|
|
19
17
|
title: string;
|
|
20
|
-
order: number;
|
|
21
18
|
}>;
|
|
@@ -3,7 +3,6 @@ export declare const hlsSchema: z.ZodObject<{
|
|
|
3
3
|
enabled: z.ZodBoolean;
|
|
4
4
|
active: z.ZodBoolean;
|
|
5
5
|
title: z.ZodString;
|
|
6
|
-
order: z.ZodNumber;
|
|
7
6
|
} & {
|
|
8
7
|
type: z.ZodLiteral<"hls">;
|
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11,11 +10,9 @@ export declare const hlsSchema: z.ZodObject<{
|
|
|
11
10
|
enabled: boolean;
|
|
12
11
|
active: boolean;
|
|
13
12
|
title: string;
|
|
14
|
-
order: number;
|
|
15
13
|
}, {
|
|
16
14
|
type: "hls";
|
|
17
15
|
enabled: boolean;
|
|
18
16
|
active: boolean;
|
|
19
17
|
title: string;
|
|
20
|
-
order: number;
|
|
21
18
|
}>;
|
|
@@ -3,7 +3,6 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
3
3
|
enabled: z.ZodBoolean;
|
|
4
4
|
active: z.ZodBoolean;
|
|
5
5
|
title: z.ZodString;
|
|
6
|
-
order: z.ZodNumber;
|
|
7
6
|
} & {
|
|
8
7
|
type: z.ZodLiteral<"mpeg_dvb">;
|
|
9
8
|
ipAddress: z.ZodString;
|
|
@@ -21,7 +20,7 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
21
20
|
serviceName: z.ZodString;
|
|
22
21
|
triggerType: z.ZodEnum<["manual", "onetime", "recurrent", "io", "nonstop"]>;
|
|
23
22
|
statusCameraLed: z.ZodBoolean;
|
|
24
|
-
statusCameraOutput: z.
|
|
23
|
+
statusCameraOutput: z.ZodString;
|
|
25
24
|
saveToSdCard: z.ZodBoolean;
|
|
26
25
|
}, "strip", z.ZodTypeAny, {
|
|
27
26
|
type: "mpeg_dvb";
|
|
@@ -29,7 +28,6 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
29
28
|
enabled: boolean;
|
|
30
29
|
active: boolean;
|
|
31
30
|
title: string;
|
|
32
|
-
order: number;
|
|
33
31
|
ipAddress: string;
|
|
34
32
|
standard: "DVB" | "ATSC";
|
|
35
33
|
nullPacketsPaddingEnabled: boolean;
|
|
@@ -44,7 +42,7 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
44
42
|
serviceName: string;
|
|
45
43
|
triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
|
|
46
44
|
statusCameraLed: boolean;
|
|
47
|
-
statusCameraOutput:
|
|
45
|
+
statusCameraOutput: string;
|
|
48
46
|
saveToSdCard: boolean;
|
|
49
47
|
}, {
|
|
50
48
|
type: "mpeg_dvb";
|
|
@@ -52,7 +50,6 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
52
50
|
enabled: boolean;
|
|
53
51
|
active: boolean;
|
|
54
52
|
title: string;
|
|
55
|
-
order: number;
|
|
56
53
|
ipAddress: string;
|
|
57
54
|
standard: "DVB" | "ATSC";
|
|
58
55
|
nullPacketsPaddingEnabled: boolean;
|
|
@@ -67,6 +64,6 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
67
64
|
serviceName: string;
|
|
68
65
|
triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
|
|
69
66
|
statusCameraLed: boolean;
|
|
70
|
-
statusCameraOutput:
|
|
67
|
+
statusCameraOutput: string;
|
|
71
68
|
saveToSdCard: boolean;
|
|
72
69
|
}>;
|
|
@@ -3,7 +3,6 @@ export declare const rtmpSchema: z.ZodObject<{
|
|
|
3
3
|
enabled: z.ZodBoolean;
|
|
4
4
|
active: z.ZodBoolean;
|
|
5
5
|
title: z.ZodString;
|
|
6
|
-
order: z.ZodNumber;
|
|
7
6
|
} & {
|
|
8
7
|
type: z.ZodLiteral<"rtmp">;
|
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11,11 +10,9 @@ export declare const rtmpSchema: z.ZodObject<{
|
|
|
11
10
|
enabled: boolean;
|
|
12
11
|
active: boolean;
|
|
13
12
|
title: string;
|
|
14
|
-
order: number;
|
|
15
13
|
}, {
|
|
16
14
|
type: "rtmp";
|
|
17
15
|
enabled: boolean;
|
|
18
16
|
active: boolean;
|
|
19
17
|
title: string;
|
|
20
|
-
order: number;
|
|
21
18
|
}>;
|
|
@@ -3,7 +3,6 @@ export declare const sdCardSchema: z.ZodObject<{
|
|
|
3
3
|
enabled: z.ZodBoolean;
|
|
4
4
|
active: z.ZodBoolean;
|
|
5
5
|
title: z.ZodString;
|
|
6
|
-
order: z.ZodNumber;
|
|
7
6
|
} & {
|
|
8
7
|
type: z.ZodLiteral<"sd_card">;
|
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11,11 +10,9 @@ export declare const sdCardSchema: z.ZodObject<{
|
|
|
11
10
|
enabled: boolean;
|
|
12
11
|
active: boolean;
|
|
13
12
|
title: string;
|
|
14
|
-
order: number;
|
|
15
13
|
}, {
|
|
16
14
|
type: "sd_card";
|
|
17
15
|
enabled: boolean;
|
|
18
16
|
active: boolean;
|
|
19
17
|
title: string;
|
|
20
|
-
order: number;
|
|
21
18
|
}>;
|
|
@@ -5,16 +5,13 @@ export declare const streamCommonSchema: z.ZodObject<{
|
|
|
5
5
|
enabled: z.ZodBoolean;
|
|
6
6
|
active: z.ZodBoolean;
|
|
7
7
|
title: z.ZodString;
|
|
8
|
-
order: z.ZodNumber;
|
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
|
10
9
|
enabled: boolean;
|
|
11
10
|
active: boolean;
|
|
12
11
|
title: string;
|
|
13
|
-
order: number;
|
|
14
12
|
}, {
|
|
15
13
|
enabled: boolean;
|
|
16
14
|
active: boolean;
|
|
17
15
|
title: string;
|
|
18
|
-
order: number;
|
|
19
16
|
}>;
|
|
20
17
|
export type TCommonStream = z.infer<typeof streamCommonSchema>;
|
|
@@ -3,7 +3,6 @@ export declare const windySchema: z.ZodObject<{
|
|
|
3
3
|
enabled: z.ZodBoolean;
|
|
4
4
|
active: z.ZodBoolean;
|
|
5
5
|
title: z.ZodString;
|
|
6
|
-
order: z.ZodNumber;
|
|
7
6
|
} & {
|
|
8
7
|
type: z.ZodLiteral<"windy">;
|
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11,11 +10,9 @@ export declare const windySchema: z.ZodObject<{
|
|
|
11
10
|
enabled: boolean;
|
|
12
11
|
active: boolean;
|
|
13
12
|
title: string;
|
|
14
|
-
order: number;
|
|
15
13
|
}, {
|
|
16
14
|
type: "windy";
|
|
17
15
|
enabled: boolean;
|
|
18
16
|
active: boolean;
|
|
19
17
|
title: string;
|
|
20
|
-
order: number;
|
|
21
18
|
}>;
|
|
@@ -3,7 +3,6 @@ export declare const youtubeSchema: z.ZodObject<{
|
|
|
3
3
|
enabled: z.ZodBoolean;
|
|
4
4
|
active: z.ZodBoolean;
|
|
5
5
|
title: z.ZodString;
|
|
6
|
-
order: z.ZodNumber;
|
|
7
6
|
} & {
|
|
8
7
|
type: z.ZodLiteral<"youtube">;
|
|
9
8
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11,11 +10,9 @@ export declare const youtubeSchema: z.ZodObject<{
|
|
|
11
10
|
enabled: boolean;
|
|
12
11
|
active: boolean;
|
|
13
12
|
title: string;
|
|
14
|
-
order: number;
|
|
15
13
|
}, {
|
|
16
14
|
type: "youtube";
|
|
17
15
|
enabled: boolean;
|
|
18
16
|
active: boolean;
|
|
19
17
|
title: string;
|
|
20
|
-
order: number;
|
|
21
18
|
}>;
|