camstreamerlib 4.0.0-beta.104 → 4.0.0-beta.106
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 +442 -386
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +2911 -1971
- package/cjs/types/CamStreamerAPI/churchSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +75 -35
- package/cjs/types/CamStreamerAPI/gameChangerSchema.js +2 -2
- package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/ibmSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/index.d.ts +1 -0
- package/cjs/types/CamStreamerAPI/index.js +1 -0
- package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +59 -38
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +1 -1
- package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +24 -24
- package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +372 -39
- package/cjs/types/CamStreamerAPI/rtmpSchema.js +9 -4
- package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/srtSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +100 -44
- package/cjs/types/CamStreamerAPI/streamCommonTypes.js +11 -9
- package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +56 -35
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +59 -38
- package/cjs/types/CamStreamerAPI/youtubeSchema.js +1 -1
- package/esm/types/CamStreamerAPI/gameChangerSchema.js +2 -2
- package/esm/types/CamStreamerAPI/index.js +1 -0
- package/esm/types/CamStreamerAPI/mpegDvbSchema.js +1 -1
- package/esm/types/CamStreamerAPI/rtmpSchema.js +8 -3
- package/esm/types/CamStreamerAPI/streamCommonTypes.js +10 -8
- package/esm/types/CamStreamerAPI/youtubeSchema.js +1 -1
- package/package.json +1 -1
- package/types/CamStreamerAPI.d.ts +442 -386
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +2911 -1971
- package/types/types/CamStreamerAPI/churchSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/daCastSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +75 -35
- package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/ibmSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/index.d.ts +1 -0
- package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +59 -38
- package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +24 -24
- package/types/types/CamStreamerAPI/rtmpSchema.d.ts +372 -39
- package/types/types/CamStreamerAPI/sdCardSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/srtSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +100 -44
- package/types/types/CamStreamerAPI/twitchSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/vimeoSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/windySchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/wowzaSchema.d.ts +56 -35
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +59 -38
|
@@ -1,4 +1,306 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
+
export declare const commonRtmpSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
enabled: z.ZodBoolean;
|
|
5
|
+
active: z.ZodBoolean;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
8
|
+
type: z.ZodLiteral<"manual">;
|
|
9
|
+
ioPort: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
type: "manual";
|
|
12
|
+
ioPort: string | null;
|
|
13
|
+
}, {
|
|
14
|
+
type: "manual";
|
|
15
|
+
ioPort: string | null;
|
|
16
|
+
}>, z.ZodObject<{
|
|
17
|
+
type: z.ZodLiteral<"onetime">;
|
|
18
|
+
startTime: z.ZodNumber;
|
|
19
|
+
stopTime: z.ZodNumber;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
type: "onetime";
|
|
22
|
+
startTime: number;
|
|
23
|
+
stopTime: number;
|
|
24
|
+
}, {
|
|
25
|
+
type: "onetime";
|
|
26
|
+
startTime: number;
|
|
27
|
+
stopTime: number;
|
|
28
|
+
}>, z.ZodObject<{
|
|
29
|
+
type: z.ZodLiteral<"recurrent">;
|
|
30
|
+
schedule: z.ZodArray<z.ZodObject<{
|
|
31
|
+
start: z.ZodObject<{
|
|
32
|
+
day: z.ZodNumber;
|
|
33
|
+
timeS: z.ZodNumber;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
day: number;
|
|
36
|
+
timeS: number;
|
|
37
|
+
}, {
|
|
38
|
+
day: number;
|
|
39
|
+
timeS: number;
|
|
40
|
+
}>;
|
|
41
|
+
stop: z.ZodObject<{
|
|
42
|
+
day: z.ZodNumber;
|
|
43
|
+
timeS: z.ZodNumber;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
day: number;
|
|
46
|
+
timeS: number;
|
|
47
|
+
}, {
|
|
48
|
+
day: number;
|
|
49
|
+
timeS: number;
|
|
50
|
+
}>;
|
|
51
|
+
isActive: z.ZodBoolean;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
start: {
|
|
54
|
+
day: number;
|
|
55
|
+
timeS: number;
|
|
56
|
+
};
|
|
57
|
+
stop: {
|
|
58
|
+
day: number;
|
|
59
|
+
timeS: number;
|
|
60
|
+
};
|
|
61
|
+
isActive: boolean;
|
|
62
|
+
}, {
|
|
63
|
+
start: {
|
|
64
|
+
day: number;
|
|
65
|
+
timeS: number;
|
|
66
|
+
};
|
|
67
|
+
stop: {
|
|
68
|
+
day: number;
|
|
69
|
+
timeS: number;
|
|
70
|
+
};
|
|
71
|
+
isActive: boolean;
|
|
72
|
+
}>, "many">;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
type: "recurrent";
|
|
75
|
+
schedule: {
|
|
76
|
+
start: {
|
|
77
|
+
day: number;
|
|
78
|
+
timeS: number;
|
|
79
|
+
};
|
|
80
|
+
stop: {
|
|
81
|
+
day: number;
|
|
82
|
+
timeS: number;
|
|
83
|
+
};
|
|
84
|
+
isActive: boolean;
|
|
85
|
+
}[];
|
|
86
|
+
}, {
|
|
87
|
+
type: "recurrent";
|
|
88
|
+
schedule: {
|
|
89
|
+
start: {
|
|
90
|
+
day: number;
|
|
91
|
+
timeS: number;
|
|
92
|
+
};
|
|
93
|
+
stop: {
|
|
94
|
+
day: number;
|
|
95
|
+
timeS: number;
|
|
96
|
+
};
|
|
97
|
+
isActive: boolean;
|
|
98
|
+
}[];
|
|
99
|
+
}>]>;
|
|
100
|
+
video: z.ZodObject<{
|
|
101
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
102
|
+
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
103
|
+
internalVapixParameters: z.ZodString;
|
|
104
|
+
userVapixParameters: z.ZodString;
|
|
105
|
+
streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
|
|
106
|
+
streamDelay: z.ZodOptional<z.ZodObject<{
|
|
107
|
+
value: z.ZodNumber;
|
|
108
|
+
unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
value: number;
|
|
111
|
+
unit: "seconds" | "minutes" | "hours";
|
|
112
|
+
}, {
|
|
113
|
+
value: number;
|
|
114
|
+
unit: "seconds" | "minutes" | "hours";
|
|
115
|
+
}>>;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
118
|
+
internalVapixParameters: string;
|
|
119
|
+
userVapixParameters: string;
|
|
120
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
121
|
+
sourceUrl?: string | undefined;
|
|
122
|
+
streamDelay?: {
|
|
123
|
+
value: number;
|
|
124
|
+
unit: "seconds" | "minutes" | "hours";
|
|
125
|
+
} | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
128
|
+
internalVapixParameters: string;
|
|
129
|
+
userVapixParameters: string;
|
|
130
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
131
|
+
sourceUrl?: string | undefined;
|
|
132
|
+
streamDelay?: {
|
|
133
|
+
value: number;
|
|
134
|
+
unit: "seconds" | "minutes" | "hours";
|
|
135
|
+
} | undefined;
|
|
136
|
+
}>;
|
|
137
|
+
audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
|
|
138
|
+
source: z.ZodLiteral<"none">;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
source: "none";
|
|
141
|
+
}, {
|
|
142
|
+
source: "none";
|
|
143
|
+
}>, z.ZodObject<{
|
|
144
|
+
source: z.ZodLiteral<"microphone">;
|
|
145
|
+
audioChannelNbr: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
source: "microphone";
|
|
148
|
+
audioChannelNbr: 1 | 2;
|
|
149
|
+
}, {
|
|
150
|
+
source: "microphone";
|
|
151
|
+
audioChannelNbr: 1 | 2;
|
|
152
|
+
}>, z.ZodObject<{
|
|
153
|
+
source: z.ZodLiteral<"file">;
|
|
154
|
+
fileName: z.ZodString;
|
|
155
|
+
filePath: z.ZodString;
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
source: "file";
|
|
158
|
+
fileName: string;
|
|
159
|
+
filePath: string;
|
|
160
|
+
}, {
|
|
161
|
+
source: "file";
|
|
162
|
+
fileName: string;
|
|
163
|
+
filePath: string;
|
|
164
|
+
}>, z.ZodObject<{
|
|
165
|
+
source: z.ZodLiteral<"url">;
|
|
166
|
+
fileName: z.ZodString;
|
|
167
|
+
fileUrl: z.ZodString;
|
|
168
|
+
avSyncMsec: z.ZodNumber;
|
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
|
170
|
+
source: "url";
|
|
171
|
+
fileName: string;
|
|
172
|
+
fileUrl: string;
|
|
173
|
+
avSyncMsec: number;
|
|
174
|
+
}, {
|
|
175
|
+
source: "url";
|
|
176
|
+
fileName: string;
|
|
177
|
+
fileUrl: string;
|
|
178
|
+
avSyncMsec: number;
|
|
179
|
+
}>]>;
|
|
180
|
+
} & {
|
|
181
|
+
outputUrl: z.ZodString;
|
|
182
|
+
streamKey: z.ZodString;
|
|
183
|
+
streamIdentifier: z.ZodOptional<z.ZodString>;
|
|
184
|
+
saveToSdCard: z.ZodBoolean;
|
|
185
|
+
statusCameraLed: z.ZodBoolean;
|
|
186
|
+
statusCameraOutput: z.ZodNullable<z.ZodString>;
|
|
187
|
+
}, "strip", z.ZodTypeAny, {
|
|
188
|
+
audio: {
|
|
189
|
+
source: "none";
|
|
190
|
+
} | {
|
|
191
|
+
source: "microphone";
|
|
192
|
+
audioChannelNbr: 1 | 2;
|
|
193
|
+
} | {
|
|
194
|
+
source: "file";
|
|
195
|
+
fileName: string;
|
|
196
|
+
filePath: string;
|
|
197
|
+
} | {
|
|
198
|
+
source: "url";
|
|
199
|
+
fileName: string;
|
|
200
|
+
fileUrl: string;
|
|
201
|
+
avSyncMsec: number;
|
|
202
|
+
};
|
|
203
|
+
video: {
|
|
204
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
205
|
+
internalVapixParameters: string;
|
|
206
|
+
userVapixParameters: string;
|
|
207
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
208
|
+
sourceUrl?: string | undefined;
|
|
209
|
+
streamDelay?: {
|
|
210
|
+
value: number;
|
|
211
|
+
unit: "seconds" | "minutes" | "hours";
|
|
212
|
+
} | undefined;
|
|
213
|
+
};
|
|
214
|
+
enabled: boolean;
|
|
215
|
+
id: number;
|
|
216
|
+
active: boolean;
|
|
217
|
+
title: string;
|
|
218
|
+
trigger: {
|
|
219
|
+
type: "manual";
|
|
220
|
+
ioPort: string | null;
|
|
221
|
+
} | {
|
|
222
|
+
type: "onetime";
|
|
223
|
+
startTime: number;
|
|
224
|
+
stopTime: number;
|
|
225
|
+
} | {
|
|
226
|
+
type: "recurrent";
|
|
227
|
+
schedule: {
|
|
228
|
+
start: {
|
|
229
|
+
day: number;
|
|
230
|
+
timeS: number;
|
|
231
|
+
};
|
|
232
|
+
stop: {
|
|
233
|
+
day: number;
|
|
234
|
+
timeS: number;
|
|
235
|
+
};
|
|
236
|
+
isActive: boolean;
|
|
237
|
+
}[];
|
|
238
|
+
};
|
|
239
|
+
statusCameraLed: boolean;
|
|
240
|
+
statusCameraOutput: string | null;
|
|
241
|
+
saveToSdCard: boolean;
|
|
242
|
+
outputUrl: string;
|
|
243
|
+
streamKey: string;
|
|
244
|
+
streamIdentifier?: string | undefined;
|
|
245
|
+
}, {
|
|
246
|
+
audio: {
|
|
247
|
+
source: "none";
|
|
248
|
+
} | {
|
|
249
|
+
source: "microphone";
|
|
250
|
+
audioChannelNbr: 1 | 2;
|
|
251
|
+
} | {
|
|
252
|
+
source: "file";
|
|
253
|
+
fileName: string;
|
|
254
|
+
filePath: string;
|
|
255
|
+
} | {
|
|
256
|
+
source: "url";
|
|
257
|
+
fileName: string;
|
|
258
|
+
fileUrl: string;
|
|
259
|
+
avSyncMsec: number;
|
|
260
|
+
};
|
|
261
|
+
video: {
|
|
262
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
263
|
+
internalVapixParameters: string;
|
|
264
|
+
userVapixParameters: string;
|
|
265
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
266
|
+
sourceUrl?: string | undefined;
|
|
267
|
+
streamDelay?: {
|
|
268
|
+
value: number;
|
|
269
|
+
unit: "seconds" | "minutes" | "hours";
|
|
270
|
+
} | undefined;
|
|
271
|
+
};
|
|
272
|
+
enabled: boolean;
|
|
273
|
+
id: number;
|
|
274
|
+
active: boolean;
|
|
275
|
+
title: string;
|
|
276
|
+
trigger: {
|
|
277
|
+
type: "manual";
|
|
278
|
+
ioPort: string | null;
|
|
279
|
+
} | {
|
|
280
|
+
type: "onetime";
|
|
281
|
+
startTime: number;
|
|
282
|
+
stopTime: number;
|
|
283
|
+
} | {
|
|
284
|
+
type: "recurrent";
|
|
285
|
+
schedule: {
|
|
286
|
+
start: {
|
|
287
|
+
day: number;
|
|
288
|
+
timeS: number;
|
|
289
|
+
};
|
|
290
|
+
stop: {
|
|
291
|
+
day: number;
|
|
292
|
+
timeS: number;
|
|
293
|
+
};
|
|
294
|
+
isActive: boolean;
|
|
295
|
+
}[];
|
|
296
|
+
};
|
|
297
|
+
statusCameraLed: boolean;
|
|
298
|
+
statusCameraOutput: string | null;
|
|
299
|
+
saveToSdCard: boolean;
|
|
300
|
+
outputUrl: string;
|
|
301
|
+
streamKey: string;
|
|
302
|
+
streamIdentifier?: string | undefined;
|
|
303
|
+
}>;
|
|
2
304
|
export declare const rtmpSchema: z.ZodObject<{
|
|
3
305
|
id: z.ZodNumber;
|
|
4
306
|
enabled: z.ZodBoolean;
|
|
@@ -97,23 +399,42 @@ export declare const rtmpSchema: z.ZodObject<{
|
|
|
97
399
|
isActive: boolean;
|
|
98
400
|
}[];
|
|
99
401
|
}>]>;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
402
|
+
video: z.ZodObject<{
|
|
403
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
404
|
+
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
405
|
+
internalVapixParameters: z.ZodString;
|
|
406
|
+
userVapixParameters: z.ZodString;
|
|
407
|
+
streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
|
|
408
|
+
streamDelay: z.ZodOptional<z.ZodObject<{
|
|
409
|
+
value: z.ZodNumber;
|
|
410
|
+
unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
|
|
411
|
+
}, "strip", z.ZodTypeAny, {
|
|
412
|
+
value: number;
|
|
413
|
+
unit: "seconds" | "minutes" | "hours";
|
|
414
|
+
}, {
|
|
415
|
+
value: number;
|
|
416
|
+
unit: "seconds" | "minutes" | "hours";
|
|
417
|
+
}>>;
|
|
109
418
|
}, "strip", z.ZodTypeAny, {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
419
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
420
|
+
internalVapixParameters: string;
|
|
421
|
+
userVapixParameters: string;
|
|
422
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
423
|
+
sourceUrl?: string | undefined;
|
|
424
|
+
streamDelay?: {
|
|
425
|
+
value: number;
|
|
426
|
+
unit: "seconds" | "minutes" | "hours";
|
|
427
|
+
} | undefined;
|
|
113
428
|
}, {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
429
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
430
|
+
internalVapixParameters: string;
|
|
431
|
+
userVapixParameters: string;
|
|
432
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
433
|
+
sourceUrl?: string | undefined;
|
|
434
|
+
streamDelay?: {
|
|
435
|
+
value: number;
|
|
436
|
+
unit: "seconds" | "minutes" | "hours";
|
|
437
|
+
} | undefined;
|
|
117
438
|
}>;
|
|
118
439
|
audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
|
|
119
440
|
source: z.ZodLiteral<"none">;
|
|
@@ -159,10 +480,14 @@ export declare const rtmpSchema: z.ZodObject<{
|
|
|
159
480
|
avSyncMsec: number;
|
|
160
481
|
}>]>;
|
|
161
482
|
} & {
|
|
162
|
-
|
|
163
|
-
rtmpUrl: z.ZodString;
|
|
483
|
+
outputUrl: z.ZodString;
|
|
164
484
|
streamKey: z.ZodString;
|
|
165
485
|
streamIdentifier: z.ZodOptional<z.ZodString>;
|
|
486
|
+
saveToSdCard: z.ZodBoolean;
|
|
487
|
+
statusCameraLed: z.ZodBoolean;
|
|
488
|
+
statusCameraOutput: z.ZodNullable<z.ZodString>;
|
|
489
|
+
} & {
|
|
490
|
+
type: z.ZodLiteral<"rtmp">;
|
|
166
491
|
}, "strip", z.ZodTypeAny, {
|
|
167
492
|
type: "rtmp";
|
|
168
493
|
audio: {
|
|
@@ -180,6 +505,17 @@ export declare const rtmpSchema: z.ZodObject<{
|
|
|
180
505
|
fileUrl: string;
|
|
181
506
|
avSyncMsec: number;
|
|
182
507
|
};
|
|
508
|
+
video: {
|
|
509
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
510
|
+
internalVapixParameters: string;
|
|
511
|
+
userVapixParameters: string;
|
|
512
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
513
|
+
sourceUrl?: string | undefined;
|
|
514
|
+
streamDelay?: {
|
|
515
|
+
value: number;
|
|
516
|
+
unit: "seconds" | "minutes" | "hours";
|
|
517
|
+
} | undefined;
|
|
518
|
+
};
|
|
183
519
|
enabled: boolean;
|
|
184
520
|
id: number;
|
|
185
521
|
active: boolean;
|
|
@@ -205,17 +541,10 @@ export declare const rtmpSchema: z.ZodObject<{
|
|
|
205
541
|
isActive: boolean;
|
|
206
542
|
}[];
|
|
207
543
|
};
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
213
|
-
streamDelay: {
|
|
214
|
-
enabled: boolean;
|
|
215
|
-
timeS: number;
|
|
216
|
-
unit: "seconds" | "minutes" | "hours";
|
|
217
|
-
};
|
|
218
|
-
rtmpUrl: string;
|
|
544
|
+
statusCameraLed: boolean;
|
|
545
|
+
statusCameraOutput: string | null;
|
|
546
|
+
saveToSdCard: boolean;
|
|
547
|
+
outputUrl: string;
|
|
219
548
|
streamKey: string;
|
|
220
549
|
streamIdentifier?: string | undefined;
|
|
221
550
|
}, {
|
|
@@ -235,6 +564,17 @@ export declare const rtmpSchema: z.ZodObject<{
|
|
|
235
564
|
fileUrl: string;
|
|
236
565
|
avSyncMsec: number;
|
|
237
566
|
};
|
|
567
|
+
video: {
|
|
568
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
569
|
+
internalVapixParameters: string;
|
|
570
|
+
userVapixParameters: string;
|
|
571
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
572
|
+
sourceUrl?: string | undefined;
|
|
573
|
+
streamDelay?: {
|
|
574
|
+
value: number;
|
|
575
|
+
unit: "seconds" | "minutes" | "hours";
|
|
576
|
+
} | undefined;
|
|
577
|
+
};
|
|
238
578
|
enabled: boolean;
|
|
239
579
|
id: number;
|
|
240
580
|
active: boolean;
|
|
@@ -260,17 +600,10 @@ export declare const rtmpSchema: z.ZodObject<{
|
|
|
260
600
|
isActive: boolean;
|
|
261
601
|
}[];
|
|
262
602
|
};
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
268
|
-
streamDelay: {
|
|
269
|
-
enabled: boolean;
|
|
270
|
-
timeS: number;
|
|
271
|
-
unit: "seconds" | "minutes" | "hours";
|
|
272
|
-
};
|
|
273
|
-
rtmpUrl: string;
|
|
603
|
+
statusCameraLed: boolean;
|
|
604
|
+
statusCameraOutput: string | null;
|
|
605
|
+
saveToSdCard: boolean;
|
|
606
|
+
outputUrl: string;
|
|
274
607
|
streamKey: string;
|
|
275
608
|
streamIdentifier?: string | undefined;
|
|
276
609
|
}>;
|
|
@@ -3,12 +3,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.rtmpSchema = void 0;
|
|
6
|
+
exports.rtmpSchema = exports.commonRtmpSchema = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
8
|
const streamCommonTypes_1 = require("./streamCommonTypes");
|
|
9
|
-
exports.
|
|
10
|
-
|
|
11
|
-
rtmpUrl: zod_1.default.string(),
|
|
9
|
+
exports.commonRtmpSchema = streamCommonTypes_1.streamCommonSchema.extend({
|
|
10
|
+
outputUrl: zod_1.default.string(),
|
|
12
11
|
streamKey: zod_1.default.string(),
|
|
13
12
|
streamIdentifier: zod_1.default.string().optional(),
|
|
13
|
+
saveToSdCard: zod_1.default.boolean(),
|
|
14
|
+
statusCameraLed: zod_1.default.boolean(),
|
|
15
|
+
statusCameraOutput: zod_1.default.string().nullable(),
|
|
16
|
+
});
|
|
17
|
+
exports.rtmpSchema = exports.commonRtmpSchema.extend({
|
|
18
|
+
type: zod_1.default.literal('rtmp'),
|
|
14
19
|
});
|
|
@@ -97,23 +97,42 @@ export declare const sdCardSchema: z.ZodObject<{
|
|
|
97
97
|
isActive: boolean;
|
|
98
98
|
}[];
|
|
99
99
|
}>]>;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
100
|
+
video: z.ZodObject<{
|
|
101
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
102
|
+
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
103
|
+
internalVapixParameters: z.ZodString;
|
|
104
|
+
userVapixParameters: z.ZodString;
|
|
105
|
+
streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
|
|
106
|
+
streamDelay: z.ZodOptional<z.ZodObject<{
|
|
107
|
+
value: z.ZodNumber;
|
|
108
|
+
unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
value: number;
|
|
111
|
+
unit: "seconds" | "minutes" | "hours";
|
|
112
|
+
}, {
|
|
113
|
+
value: number;
|
|
114
|
+
unit: "seconds" | "minutes" | "hours";
|
|
115
|
+
}>>;
|
|
109
116
|
}, "strip", z.ZodTypeAny, {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
117
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
118
|
+
internalVapixParameters: string;
|
|
119
|
+
userVapixParameters: string;
|
|
120
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
121
|
+
sourceUrl?: string | undefined;
|
|
122
|
+
streamDelay?: {
|
|
123
|
+
value: number;
|
|
124
|
+
unit: "seconds" | "minutes" | "hours";
|
|
125
|
+
} | undefined;
|
|
113
126
|
}, {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
127
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
128
|
+
internalVapixParameters: string;
|
|
129
|
+
userVapixParameters: string;
|
|
130
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
131
|
+
sourceUrl?: string | undefined;
|
|
132
|
+
streamDelay?: {
|
|
133
|
+
value: number;
|
|
134
|
+
unit: "seconds" | "minutes" | "hours";
|
|
135
|
+
} | undefined;
|
|
117
136
|
}>;
|
|
118
137
|
audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
|
|
119
138
|
source: z.ZodLiteral<"none">;
|
|
@@ -177,6 +196,17 @@ export declare const sdCardSchema: z.ZodObject<{
|
|
|
177
196
|
fileUrl: string;
|
|
178
197
|
avSyncMsec: number;
|
|
179
198
|
};
|
|
199
|
+
video: {
|
|
200
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
201
|
+
internalVapixParameters: string;
|
|
202
|
+
userVapixParameters: string;
|
|
203
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
204
|
+
sourceUrl?: string | undefined;
|
|
205
|
+
streamDelay?: {
|
|
206
|
+
value: number;
|
|
207
|
+
unit: "seconds" | "minutes" | "hours";
|
|
208
|
+
} | undefined;
|
|
209
|
+
};
|
|
180
210
|
enabled: boolean;
|
|
181
211
|
id: number;
|
|
182
212
|
active: boolean;
|
|
@@ -202,16 +232,6 @@ export declare const sdCardSchema: z.ZodObject<{
|
|
|
202
232
|
isActive: boolean;
|
|
203
233
|
}[];
|
|
204
234
|
};
|
|
205
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
206
|
-
inputUrl: string;
|
|
207
|
-
internalVapixParameters: string;
|
|
208
|
-
userVapixParameters: string;
|
|
209
|
-
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
210
|
-
streamDelay: {
|
|
211
|
-
enabled: boolean;
|
|
212
|
-
timeS: number;
|
|
213
|
-
unit: "seconds" | "minutes" | "hours";
|
|
214
|
-
};
|
|
215
235
|
}, {
|
|
216
236
|
type: "sd_card";
|
|
217
237
|
audio: {
|
|
@@ -229,6 +249,17 @@ export declare const sdCardSchema: z.ZodObject<{
|
|
|
229
249
|
fileUrl: string;
|
|
230
250
|
avSyncMsec: number;
|
|
231
251
|
};
|
|
252
|
+
video: {
|
|
253
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
254
|
+
internalVapixParameters: string;
|
|
255
|
+
userVapixParameters: string;
|
|
256
|
+
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
257
|
+
sourceUrl?: string | undefined;
|
|
258
|
+
streamDelay?: {
|
|
259
|
+
value: number;
|
|
260
|
+
unit: "seconds" | "minutes" | "hours";
|
|
261
|
+
} | undefined;
|
|
262
|
+
};
|
|
232
263
|
enabled: boolean;
|
|
233
264
|
id: number;
|
|
234
265
|
active: boolean;
|
|
@@ -254,14 +285,4 @@ export declare const sdCardSchema: z.ZodObject<{
|
|
|
254
285
|
isActive: boolean;
|
|
255
286
|
}[];
|
|
256
287
|
};
|
|
257
|
-
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
258
|
-
inputUrl: string;
|
|
259
|
-
internalVapixParameters: string;
|
|
260
|
-
userVapixParameters: string;
|
|
261
|
-
streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
|
|
262
|
-
streamDelay: {
|
|
263
|
-
enabled: boolean;
|
|
264
|
-
timeS: number;
|
|
265
|
-
unit: "seconds" | "minutes" | "hours";
|
|
266
|
-
};
|
|
267
288
|
}>;
|