camstreamerlib 4.0.0-beta.80 → 4.0.0-beta.82
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 +85 -3
- package/cjs/CamStreamerAPI.js +82 -35
- package/cjs/errors/errors.d.ts +7 -3
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +424 -0
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +28 -1
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +3 -0
- package/cjs/types/CamStreamerAPI/hlsSchema.d.ts +3 -0
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +3 -0
- package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +71 -0
- package/cjs/types/CamStreamerAPI/oldStreamSchema.js +4 -1
- package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +3 -0
- package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +3 -0
- package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +3 -0
- package/cjs/types/CamStreamerAPI/streamCommonTypes.js +1 -0
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +3 -0
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +3 -0
- package/esm/CamStreamerAPI.js +84 -37
- package/esm/types/CamStreamerAPI/CamStreamerAPI.js +27 -0
- package/esm/types/CamStreamerAPI/oldStreamSchema.js +3 -0
- package/esm/types/CamStreamerAPI/streamCommonTypes.js +1 -0
- package/package.json +1 -1
- package/types/CamStreamerAPI.d.ts +85 -3
- package/types/errors/errors.d.ts +7 -3
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +424 -0
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +3 -0
- package/types/types/CamStreamerAPI/hlsSchema.d.ts +3 -0
- package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +3 -0
- package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +71 -0
- package/types/types/CamStreamerAPI/rtmpSchema.d.ts +3 -0
- package/types/types/CamStreamerAPI/sdCardSchema.d.ts +3 -0
- package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +3 -0
- package/types/types/CamStreamerAPI/windySchema.d.ts +3 -0
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +3 -0
|
@@ -7,6 +7,7 @@ import { sdCardSchema } from './sdCardSchema';
|
|
|
7
7
|
import { windySchema } from './windySchema';
|
|
8
8
|
import { youtubeSchema } from './youtubeSchema';
|
|
9
9
|
export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
10
|
+
id: z.ZodNumber;
|
|
10
11
|
enabled: z.ZodBoolean;
|
|
11
12
|
active: z.ZodBoolean;
|
|
12
13
|
title: z.ZodString;
|
|
@@ -15,14 +16,17 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
15
16
|
}, "strip", z.ZodTypeAny, {
|
|
16
17
|
type: "facebook";
|
|
17
18
|
enabled: boolean;
|
|
19
|
+
id: number;
|
|
18
20
|
active: boolean;
|
|
19
21
|
title: string;
|
|
20
22
|
}, {
|
|
21
23
|
type: "facebook";
|
|
22
24
|
enabled: boolean;
|
|
25
|
+
id: number;
|
|
23
26
|
active: boolean;
|
|
24
27
|
title: string;
|
|
25
28
|
}>, z.ZodObject<{
|
|
29
|
+
id: z.ZodNumber;
|
|
26
30
|
enabled: z.ZodBoolean;
|
|
27
31
|
active: z.ZodBoolean;
|
|
28
32
|
title: z.ZodString;
|
|
@@ -31,14 +35,17 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
31
35
|
}, "strip", z.ZodTypeAny, {
|
|
32
36
|
type: "hls";
|
|
33
37
|
enabled: boolean;
|
|
38
|
+
id: number;
|
|
34
39
|
active: boolean;
|
|
35
40
|
title: string;
|
|
36
41
|
}, {
|
|
37
42
|
type: "hls";
|
|
38
43
|
enabled: boolean;
|
|
44
|
+
id: number;
|
|
39
45
|
active: boolean;
|
|
40
46
|
title: string;
|
|
41
47
|
}>, z.ZodObject<{
|
|
48
|
+
id: z.ZodNumber;
|
|
42
49
|
enabled: z.ZodBoolean;
|
|
43
50
|
active: z.ZodBoolean;
|
|
44
51
|
title: z.ZodString;
|
|
@@ -65,6 +72,7 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
65
72
|
type: "mpeg_dvb";
|
|
66
73
|
port: number;
|
|
67
74
|
enabled: boolean;
|
|
75
|
+
id: number;
|
|
68
76
|
active: boolean;
|
|
69
77
|
title: string;
|
|
70
78
|
ipAddress: string;
|
|
@@ -87,6 +95,7 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
87
95
|
type: "mpeg_dvb";
|
|
88
96
|
port: number;
|
|
89
97
|
enabled: boolean;
|
|
98
|
+
id: number;
|
|
90
99
|
active: boolean;
|
|
91
100
|
title: string;
|
|
92
101
|
ipAddress: string;
|
|
@@ -106,6 +115,7 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
106
115
|
statusCameraOutput: string;
|
|
107
116
|
saveToSdCard: boolean;
|
|
108
117
|
}>, z.ZodObject<{
|
|
118
|
+
id: z.ZodNumber;
|
|
109
119
|
enabled: z.ZodBoolean;
|
|
110
120
|
active: z.ZodBoolean;
|
|
111
121
|
title: z.ZodString;
|
|
@@ -114,14 +124,17 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
114
124
|
}, "strip", z.ZodTypeAny, {
|
|
115
125
|
type: "rtmp";
|
|
116
126
|
enabled: boolean;
|
|
127
|
+
id: number;
|
|
117
128
|
active: boolean;
|
|
118
129
|
title: string;
|
|
119
130
|
}, {
|
|
120
131
|
type: "rtmp";
|
|
121
132
|
enabled: boolean;
|
|
133
|
+
id: number;
|
|
122
134
|
active: boolean;
|
|
123
135
|
title: string;
|
|
124
136
|
}>, z.ZodObject<{
|
|
137
|
+
id: z.ZodNumber;
|
|
125
138
|
enabled: z.ZodBoolean;
|
|
126
139
|
active: z.ZodBoolean;
|
|
127
140
|
title: z.ZodString;
|
|
@@ -130,14 +143,17 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
130
143
|
}, "strip", z.ZodTypeAny, {
|
|
131
144
|
type: "sd_card";
|
|
132
145
|
enabled: boolean;
|
|
146
|
+
id: number;
|
|
133
147
|
active: boolean;
|
|
134
148
|
title: string;
|
|
135
149
|
}, {
|
|
136
150
|
type: "sd_card";
|
|
137
151
|
enabled: boolean;
|
|
152
|
+
id: number;
|
|
138
153
|
active: boolean;
|
|
139
154
|
title: string;
|
|
140
155
|
}>, z.ZodObject<{
|
|
156
|
+
id: z.ZodNumber;
|
|
141
157
|
enabled: z.ZodBoolean;
|
|
142
158
|
active: z.ZodBoolean;
|
|
143
159
|
title: z.ZodString;
|
|
@@ -146,14 +162,17 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
146
162
|
}, "strip", z.ZodTypeAny, {
|
|
147
163
|
type: "windy";
|
|
148
164
|
enabled: boolean;
|
|
165
|
+
id: number;
|
|
149
166
|
active: boolean;
|
|
150
167
|
title: string;
|
|
151
168
|
}, {
|
|
152
169
|
type: "windy";
|
|
153
170
|
enabled: boolean;
|
|
171
|
+
id: number;
|
|
154
172
|
active: boolean;
|
|
155
173
|
title: string;
|
|
156
174
|
}>, z.ZodObject<{
|
|
175
|
+
id: z.ZodNumber;
|
|
157
176
|
enabled: z.ZodBoolean;
|
|
158
177
|
active: z.ZodBoolean;
|
|
159
178
|
title: z.ZodString;
|
|
@@ -162,19 +181,332 @@ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
162
181
|
}, "strip", z.ZodTypeAny, {
|
|
163
182
|
type: "youtube";
|
|
164
183
|
enabled: boolean;
|
|
184
|
+
id: number;
|
|
165
185
|
active: boolean;
|
|
166
186
|
title: string;
|
|
167
187
|
}, {
|
|
168
188
|
type: "youtube";
|
|
169
189
|
enabled: boolean;
|
|
190
|
+
id: number;
|
|
170
191
|
active: boolean;
|
|
171
192
|
title: string;
|
|
172
193
|
}>]>;
|
|
173
194
|
export type TStream = z.infer<typeof streamSchema>;
|
|
195
|
+
export declare const streamListSchema: z.ZodObject<{
|
|
196
|
+
streamList: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
197
|
+
id: z.ZodNumber;
|
|
198
|
+
enabled: z.ZodBoolean;
|
|
199
|
+
active: z.ZodBoolean;
|
|
200
|
+
title: z.ZodString;
|
|
201
|
+
} & {
|
|
202
|
+
type: z.ZodLiteral<"facebook">;
|
|
203
|
+
}, "strip", z.ZodTypeAny, {
|
|
204
|
+
type: "facebook";
|
|
205
|
+
enabled: boolean;
|
|
206
|
+
id: number;
|
|
207
|
+
active: boolean;
|
|
208
|
+
title: string;
|
|
209
|
+
}, {
|
|
210
|
+
type: "facebook";
|
|
211
|
+
enabled: boolean;
|
|
212
|
+
id: number;
|
|
213
|
+
active: boolean;
|
|
214
|
+
title: string;
|
|
215
|
+
}>, z.ZodObject<{
|
|
216
|
+
id: z.ZodNumber;
|
|
217
|
+
enabled: z.ZodBoolean;
|
|
218
|
+
active: z.ZodBoolean;
|
|
219
|
+
title: z.ZodString;
|
|
220
|
+
} & {
|
|
221
|
+
type: z.ZodLiteral<"hls">;
|
|
222
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
type: "hls";
|
|
224
|
+
enabled: boolean;
|
|
225
|
+
id: number;
|
|
226
|
+
active: boolean;
|
|
227
|
+
title: string;
|
|
228
|
+
}, {
|
|
229
|
+
type: "hls";
|
|
230
|
+
enabled: boolean;
|
|
231
|
+
id: number;
|
|
232
|
+
active: boolean;
|
|
233
|
+
title: string;
|
|
234
|
+
}>, z.ZodObject<{
|
|
235
|
+
id: z.ZodNumber;
|
|
236
|
+
enabled: z.ZodBoolean;
|
|
237
|
+
active: z.ZodBoolean;
|
|
238
|
+
title: z.ZodString;
|
|
239
|
+
} & {
|
|
240
|
+
type: z.ZodLiteral<"mpeg_dvb">;
|
|
241
|
+
ipAddress: z.ZodString;
|
|
242
|
+
port: z.ZodNumber;
|
|
243
|
+
standard: z.ZodEnum<["DVB", "ATSC"]>;
|
|
244
|
+
nullPacketsPaddingEnabled: z.ZodBoolean;
|
|
245
|
+
nullPacketsPaddingKbps: z.ZodNumber;
|
|
246
|
+
videoPid: z.ZodNumber;
|
|
247
|
+
audioPid: z.ZodNumber;
|
|
248
|
+
mpegtsStreamId: z.ZodNumber;
|
|
249
|
+
pmtPid: z.ZodNumber;
|
|
250
|
+
pcrPid: z.ZodNumber;
|
|
251
|
+
pcrPeriodMs: z.ZodNumber;
|
|
252
|
+
providerName: z.ZodString;
|
|
253
|
+
serviceName: z.ZodString;
|
|
254
|
+
triggerType: z.ZodEnum<["manual", "onetime", "recurrent", "io", "nonstop"]>;
|
|
255
|
+
statusCameraLed: z.ZodBoolean;
|
|
256
|
+
statusCameraOutput: z.ZodString;
|
|
257
|
+
saveToSdCard: z.ZodBoolean;
|
|
258
|
+
}, "strip", z.ZodTypeAny, {
|
|
259
|
+
type: "mpeg_dvb";
|
|
260
|
+
port: number;
|
|
261
|
+
enabled: boolean;
|
|
262
|
+
id: number;
|
|
263
|
+
active: boolean;
|
|
264
|
+
title: string;
|
|
265
|
+
ipAddress: string;
|
|
266
|
+
standard: "DVB" | "ATSC";
|
|
267
|
+
nullPacketsPaddingEnabled: boolean;
|
|
268
|
+
nullPacketsPaddingKbps: number;
|
|
269
|
+
videoPid: number;
|
|
270
|
+
audioPid: number;
|
|
271
|
+
mpegtsStreamId: number;
|
|
272
|
+
pmtPid: number;
|
|
273
|
+
pcrPid: number;
|
|
274
|
+
pcrPeriodMs: number;
|
|
275
|
+
providerName: string;
|
|
276
|
+
serviceName: string;
|
|
277
|
+
triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
|
|
278
|
+
statusCameraLed: boolean;
|
|
279
|
+
statusCameraOutput: string;
|
|
280
|
+
saveToSdCard: boolean;
|
|
281
|
+
}, {
|
|
282
|
+
type: "mpeg_dvb";
|
|
283
|
+
port: number;
|
|
284
|
+
enabled: boolean;
|
|
285
|
+
id: number;
|
|
286
|
+
active: boolean;
|
|
287
|
+
title: string;
|
|
288
|
+
ipAddress: string;
|
|
289
|
+
standard: "DVB" | "ATSC";
|
|
290
|
+
nullPacketsPaddingEnabled: boolean;
|
|
291
|
+
nullPacketsPaddingKbps: number;
|
|
292
|
+
videoPid: number;
|
|
293
|
+
audioPid: number;
|
|
294
|
+
mpegtsStreamId: number;
|
|
295
|
+
pmtPid: number;
|
|
296
|
+
pcrPid: number;
|
|
297
|
+
pcrPeriodMs: number;
|
|
298
|
+
providerName: string;
|
|
299
|
+
serviceName: string;
|
|
300
|
+
triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
|
|
301
|
+
statusCameraLed: boolean;
|
|
302
|
+
statusCameraOutput: string;
|
|
303
|
+
saveToSdCard: boolean;
|
|
304
|
+
}>, z.ZodObject<{
|
|
305
|
+
id: z.ZodNumber;
|
|
306
|
+
enabled: z.ZodBoolean;
|
|
307
|
+
active: z.ZodBoolean;
|
|
308
|
+
title: z.ZodString;
|
|
309
|
+
} & {
|
|
310
|
+
type: z.ZodLiteral<"rtmp">;
|
|
311
|
+
}, "strip", z.ZodTypeAny, {
|
|
312
|
+
type: "rtmp";
|
|
313
|
+
enabled: boolean;
|
|
314
|
+
id: number;
|
|
315
|
+
active: boolean;
|
|
316
|
+
title: string;
|
|
317
|
+
}, {
|
|
318
|
+
type: "rtmp";
|
|
319
|
+
enabled: boolean;
|
|
320
|
+
id: number;
|
|
321
|
+
active: boolean;
|
|
322
|
+
title: string;
|
|
323
|
+
}>, z.ZodObject<{
|
|
324
|
+
id: z.ZodNumber;
|
|
325
|
+
enabled: z.ZodBoolean;
|
|
326
|
+
active: z.ZodBoolean;
|
|
327
|
+
title: z.ZodString;
|
|
328
|
+
} & {
|
|
329
|
+
type: z.ZodLiteral<"sd_card">;
|
|
330
|
+
}, "strip", z.ZodTypeAny, {
|
|
331
|
+
type: "sd_card";
|
|
332
|
+
enabled: boolean;
|
|
333
|
+
id: number;
|
|
334
|
+
active: boolean;
|
|
335
|
+
title: string;
|
|
336
|
+
}, {
|
|
337
|
+
type: "sd_card";
|
|
338
|
+
enabled: boolean;
|
|
339
|
+
id: number;
|
|
340
|
+
active: boolean;
|
|
341
|
+
title: string;
|
|
342
|
+
}>, z.ZodObject<{
|
|
343
|
+
id: z.ZodNumber;
|
|
344
|
+
enabled: z.ZodBoolean;
|
|
345
|
+
active: z.ZodBoolean;
|
|
346
|
+
title: z.ZodString;
|
|
347
|
+
} & {
|
|
348
|
+
type: z.ZodLiteral<"windy">;
|
|
349
|
+
}, "strip", z.ZodTypeAny, {
|
|
350
|
+
type: "windy";
|
|
351
|
+
enabled: boolean;
|
|
352
|
+
id: number;
|
|
353
|
+
active: boolean;
|
|
354
|
+
title: string;
|
|
355
|
+
}, {
|
|
356
|
+
type: "windy";
|
|
357
|
+
enabled: boolean;
|
|
358
|
+
id: number;
|
|
359
|
+
active: boolean;
|
|
360
|
+
title: string;
|
|
361
|
+
}>, z.ZodObject<{
|
|
362
|
+
id: z.ZodNumber;
|
|
363
|
+
enabled: z.ZodBoolean;
|
|
364
|
+
active: z.ZodBoolean;
|
|
365
|
+
title: z.ZodString;
|
|
366
|
+
} & {
|
|
367
|
+
type: z.ZodLiteral<"youtube">;
|
|
368
|
+
}, "strip", z.ZodTypeAny, {
|
|
369
|
+
type: "youtube";
|
|
370
|
+
enabled: boolean;
|
|
371
|
+
id: number;
|
|
372
|
+
active: boolean;
|
|
373
|
+
title: string;
|
|
374
|
+
}, {
|
|
375
|
+
type: "youtube";
|
|
376
|
+
enabled: boolean;
|
|
377
|
+
id: number;
|
|
378
|
+
active: boolean;
|
|
379
|
+
title: string;
|
|
380
|
+
}>]>, "many">;
|
|
381
|
+
}, "strip", z.ZodTypeAny, {
|
|
382
|
+
streamList: ({
|
|
383
|
+
type: "facebook";
|
|
384
|
+
enabled: boolean;
|
|
385
|
+
id: number;
|
|
386
|
+
active: boolean;
|
|
387
|
+
title: string;
|
|
388
|
+
} | {
|
|
389
|
+
type: "hls";
|
|
390
|
+
enabled: boolean;
|
|
391
|
+
id: number;
|
|
392
|
+
active: boolean;
|
|
393
|
+
title: string;
|
|
394
|
+
} | {
|
|
395
|
+
type: "mpeg_dvb";
|
|
396
|
+
port: number;
|
|
397
|
+
enabled: boolean;
|
|
398
|
+
id: number;
|
|
399
|
+
active: boolean;
|
|
400
|
+
title: string;
|
|
401
|
+
ipAddress: string;
|
|
402
|
+
standard: "DVB" | "ATSC";
|
|
403
|
+
nullPacketsPaddingEnabled: boolean;
|
|
404
|
+
nullPacketsPaddingKbps: number;
|
|
405
|
+
videoPid: number;
|
|
406
|
+
audioPid: number;
|
|
407
|
+
mpegtsStreamId: number;
|
|
408
|
+
pmtPid: number;
|
|
409
|
+
pcrPid: number;
|
|
410
|
+
pcrPeriodMs: number;
|
|
411
|
+
providerName: string;
|
|
412
|
+
serviceName: string;
|
|
413
|
+
triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
|
|
414
|
+
statusCameraLed: boolean;
|
|
415
|
+
statusCameraOutput: string;
|
|
416
|
+
saveToSdCard: boolean;
|
|
417
|
+
} | {
|
|
418
|
+
type: "rtmp";
|
|
419
|
+
enabled: boolean;
|
|
420
|
+
id: number;
|
|
421
|
+
active: boolean;
|
|
422
|
+
title: string;
|
|
423
|
+
} | {
|
|
424
|
+
type: "sd_card";
|
|
425
|
+
enabled: boolean;
|
|
426
|
+
id: number;
|
|
427
|
+
active: boolean;
|
|
428
|
+
title: string;
|
|
429
|
+
} | {
|
|
430
|
+
type: "windy";
|
|
431
|
+
enabled: boolean;
|
|
432
|
+
id: number;
|
|
433
|
+
active: boolean;
|
|
434
|
+
title: string;
|
|
435
|
+
} | {
|
|
436
|
+
type: "youtube";
|
|
437
|
+
enabled: boolean;
|
|
438
|
+
id: number;
|
|
439
|
+
active: boolean;
|
|
440
|
+
title: string;
|
|
441
|
+
})[];
|
|
442
|
+
}, {
|
|
443
|
+
streamList: ({
|
|
444
|
+
type: "facebook";
|
|
445
|
+
enabled: boolean;
|
|
446
|
+
id: number;
|
|
447
|
+
active: boolean;
|
|
448
|
+
title: string;
|
|
449
|
+
} | {
|
|
450
|
+
type: "hls";
|
|
451
|
+
enabled: boolean;
|
|
452
|
+
id: number;
|
|
453
|
+
active: boolean;
|
|
454
|
+
title: string;
|
|
455
|
+
} | {
|
|
456
|
+
type: "mpeg_dvb";
|
|
457
|
+
port: number;
|
|
458
|
+
enabled: boolean;
|
|
459
|
+
id: number;
|
|
460
|
+
active: boolean;
|
|
461
|
+
title: string;
|
|
462
|
+
ipAddress: string;
|
|
463
|
+
standard: "DVB" | "ATSC";
|
|
464
|
+
nullPacketsPaddingEnabled: boolean;
|
|
465
|
+
nullPacketsPaddingKbps: number;
|
|
466
|
+
videoPid: number;
|
|
467
|
+
audioPid: number;
|
|
468
|
+
mpegtsStreamId: number;
|
|
469
|
+
pmtPid: number;
|
|
470
|
+
pcrPid: number;
|
|
471
|
+
pcrPeriodMs: number;
|
|
472
|
+
providerName: string;
|
|
473
|
+
serviceName: string;
|
|
474
|
+
triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
|
|
475
|
+
statusCameraLed: boolean;
|
|
476
|
+
statusCameraOutput: string;
|
|
477
|
+
saveToSdCard: boolean;
|
|
478
|
+
} | {
|
|
479
|
+
type: "rtmp";
|
|
480
|
+
enabled: boolean;
|
|
481
|
+
id: number;
|
|
482
|
+
active: boolean;
|
|
483
|
+
title: string;
|
|
484
|
+
} | {
|
|
485
|
+
type: "sd_card";
|
|
486
|
+
enabled: boolean;
|
|
487
|
+
id: number;
|
|
488
|
+
active: boolean;
|
|
489
|
+
title: string;
|
|
490
|
+
} | {
|
|
491
|
+
type: "windy";
|
|
492
|
+
enabled: boolean;
|
|
493
|
+
id: number;
|
|
494
|
+
active: boolean;
|
|
495
|
+
title: string;
|
|
496
|
+
} | {
|
|
497
|
+
type: "youtube";
|
|
498
|
+
enabled: boolean;
|
|
499
|
+
id: number;
|
|
500
|
+
active: boolean;
|
|
501
|
+
title: string;
|
|
502
|
+
})[];
|
|
503
|
+
}>;
|
|
504
|
+
export type TStreamList = z.infer<typeof streamListSchema>;
|
|
174
505
|
export type TFacebookStream = z.infer<typeof facebookSchema>;
|
|
175
506
|
export declare const isFacebookStream: (stream: TStream) => stream is {
|
|
176
507
|
type: "facebook";
|
|
177
508
|
enabled: boolean;
|
|
509
|
+
id: number;
|
|
178
510
|
active: boolean;
|
|
179
511
|
title: string;
|
|
180
512
|
};
|
|
@@ -182,6 +514,7 @@ export type THlsStream = z.infer<typeof hlsSchema>;
|
|
|
182
514
|
export declare const isHlsStream: (stream: TStream) => stream is {
|
|
183
515
|
type: "hls";
|
|
184
516
|
enabled: boolean;
|
|
517
|
+
id: number;
|
|
185
518
|
active: boolean;
|
|
186
519
|
title: string;
|
|
187
520
|
};
|
|
@@ -190,6 +523,7 @@ export declare const isMpegDvbStream: (stream: TStream) => stream is {
|
|
|
190
523
|
type: "mpeg_dvb";
|
|
191
524
|
port: number;
|
|
192
525
|
enabled: boolean;
|
|
526
|
+
id: number;
|
|
193
527
|
active: boolean;
|
|
194
528
|
title: string;
|
|
195
529
|
ipAddress: string;
|
|
@@ -213,6 +547,7 @@ export type TRtmpStream = z.infer<typeof rtmpSchema>;
|
|
|
213
547
|
export declare const isRtmpStream: (stream: TStream) => stream is {
|
|
214
548
|
type: "rtmp";
|
|
215
549
|
enabled: boolean;
|
|
550
|
+
id: number;
|
|
216
551
|
active: boolean;
|
|
217
552
|
title: string;
|
|
218
553
|
};
|
|
@@ -220,6 +555,7 @@ export type TSdCardStream = z.infer<typeof sdCardSchema>;
|
|
|
220
555
|
export declare const isSdCardStream: (stream: TStream) => stream is {
|
|
221
556
|
type: "sd_card";
|
|
222
557
|
enabled: boolean;
|
|
558
|
+
id: number;
|
|
223
559
|
active: boolean;
|
|
224
560
|
title: string;
|
|
225
561
|
};
|
|
@@ -227,6 +563,7 @@ export type TWindyStream = z.infer<typeof windySchema>;
|
|
|
227
563
|
export declare const isWindyStream: (stream: TStream) => stream is {
|
|
228
564
|
type: "windy";
|
|
229
565
|
enabled: boolean;
|
|
566
|
+
id: number;
|
|
230
567
|
active: boolean;
|
|
231
568
|
title: string;
|
|
232
569
|
};
|
|
@@ -234,6 +571,93 @@ export type TYouTubeStream = z.infer<typeof youtubeSchema>;
|
|
|
234
571
|
export declare const isYouTubeStream: (stream: TStream) => stream is {
|
|
235
572
|
type: "youtube";
|
|
236
573
|
enabled: boolean;
|
|
574
|
+
id: number;
|
|
237
575
|
active: boolean;
|
|
238
576
|
title: string;
|
|
239
577
|
};
|
|
578
|
+
export declare enum AudioType {
|
|
579
|
+
MP3 = 0,
|
|
580
|
+
AAC = 1
|
|
581
|
+
}
|
|
582
|
+
export declare const audioFileStorageTypeSchema: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">, z.ZodLiteral<"url">]>;
|
|
583
|
+
export type TAudioFileStorageType = z.infer<typeof audioFileStorageTypeSchema>;
|
|
584
|
+
export type TLocalStorageType = 'local' | 'url';
|
|
585
|
+
export declare const storageListSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
586
|
+
type: z.ZodLiteral<"flash">;
|
|
587
|
+
flash: z.ZodString;
|
|
588
|
+
}, "strip", z.ZodTypeAny, {
|
|
589
|
+
type: "flash";
|
|
590
|
+
flash: string;
|
|
591
|
+
}, {
|
|
592
|
+
type: "flash";
|
|
593
|
+
flash: string;
|
|
594
|
+
}>, z.ZodObject<{
|
|
595
|
+
type: z.ZodLiteral<"SD0">;
|
|
596
|
+
SD0: z.ZodString;
|
|
597
|
+
}, "strip", z.ZodTypeAny, {
|
|
598
|
+
type: "SD0";
|
|
599
|
+
SD0: string;
|
|
600
|
+
}, {
|
|
601
|
+
type: "SD0";
|
|
602
|
+
SD0: string;
|
|
603
|
+
}>]>, "many">;
|
|
604
|
+
export type TStorageList = z.infer<typeof storageListSchema>;
|
|
605
|
+
export declare const audioFileSchema: z.ZodObject<{
|
|
606
|
+
name: z.ZodString;
|
|
607
|
+
path: z.ZodString;
|
|
608
|
+
storage: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">, z.ZodLiteral<"url">]>;
|
|
609
|
+
}, "strip", z.ZodTypeAny, {
|
|
610
|
+
path: string;
|
|
611
|
+
name: string;
|
|
612
|
+
storage: "url" | "flash" | "SD0";
|
|
613
|
+
}, {
|
|
614
|
+
path: string;
|
|
615
|
+
name: string;
|
|
616
|
+
storage: "url" | "flash" | "SD0";
|
|
617
|
+
}>;
|
|
618
|
+
export type TAudioFile = z.infer<typeof audioFileSchema>;
|
|
619
|
+
export declare const audioFileListSchema: z.ZodArray<z.ZodObject<{
|
|
620
|
+
name: z.ZodString;
|
|
621
|
+
path: z.ZodString;
|
|
622
|
+
storage: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">, z.ZodLiteral<"url">]>;
|
|
623
|
+
}, "strip", z.ZodTypeAny, {
|
|
624
|
+
path: string;
|
|
625
|
+
name: string;
|
|
626
|
+
storage: "url" | "flash" | "SD0";
|
|
627
|
+
}, {
|
|
628
|
+
path: string;
|
|
629
|
+
name: string;
|
|
630
|
+
storage: "url" | "flash" | "SD0";
|
|
631
|
+
}>, "many">;
|
|
632
|
+
export type TAudioFileList = z.infer<typeof audioFileListSchema>;
|
|
633
|
+
export declare const audioFileDataSchema: z.ZodObject<{
|
|
634
|
+
code: z.ZodNumber;
|
|
635
|
+
list: z.ZodArray<z.ZodObject<{
|
|
636
|
+
name: z.ZodString;
|
|
637
|
+
path: z.ZodString;
|
|
638
|
+
storage: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">, z.ZodLiteral<"url">]>;
|
|
639
|
+
}, "strip", z.ZodTypeAny, {
|
|
640
|
+
path: string;
|
|
641
|
+
name: string;
|
|
642
|
+
storage: "url" | "flash" | "SD0";
|
|
643
|
+
}, {
|
|
644
|
+
path: string;
|
|
645
|
+
name: string;
|
|
646
|
+
storage: "url" | "flash" | "SD0";
|
|
647
|
+
}>, "many">;
|
|
648
|
+
}, "strip", z.ZodTypeAny, {
|
|
649
|
+
code: number;
|
|
650
|
+
list: {
|
|
651
|
+
path: string;
|
|
652
|
+
name: string;
|
|
653
|
+
storage: "url" | "flash" | "SD0";
|
|
654
|
+
}[];
|
|
655
|
+
}, {
|
|
656
|
+
code: number;
|
|
657
|
+
list: {
|
|
658
|
+
path: string;
|
|
659
|
+
name: string;
|
|
660
|
+
storage: "url" | "flash" | "SD0";
|
|
661
|
+
}[];
|
|
662
|
+
}>;
|
|
663
|
+
export type TAudioFileData = z.infer<typeof audioFileDataSchema>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
export declare const facebookSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
3
4
|
enabled: z.ZodBoolean;
|
|
4
5
|
active: z.ZodBoolean;
|
|
5
6
|
title: z.ZodString;
|
|
@@ -8,11 +9,13 @@ export declare const facebookSchema: z.ZodObject<{
|
|
|
8
9
|
}, "strip", z.ZodTypeAny, {
|
|
9
10
|
type: "facebook";
|
|
10
11
|
enabled: boolean;
|
|
12
|
+
id: number;
|
|
11
13
|
active: boolean;
|
|
12
14
|
title: string;
|
|
13
15
|
}, {
|
|
14
16
|
type: "facebook";
|
|
15
17
|
enabled: boolean;
|
|
18
|
+
id: number;
|
|
16
19
|
active: boolean;
|
|
17
20
|
title: string;
|
|
18
21
|
}>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
export declare const hlsSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
3
4
|
enabled: z.ZodBoolean;
|
|
4
5
|
active: z.ZodBoolean;
|
|
5
6
|
title: z.ZodString;
|
|
@@ -8,11 +9,13 @@ export declare const hlsSchema: z.ZodObject<{
|
|
|
8
9
|
}, "strip", z.ZodTypeAny, {
|
|
9
10
|
type: "hls";
|
|
10
11
|
enabled: boolean;
|
|
12
|
+
id: number;
|
|
11
13
|
active: boolean;
|
|
12
14
|
title: string;
|
|
13
15
|
}, {
|
|
14
16
|
type: "hls";
|
|
15
17
|
enabled: boolean;
|
|
18
|
+
id: number;
|
|
16
19
|
active: boolean;
|
|
17
20
|
title: string;
|
|
18
21
|
}>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
export declare const mpegDvbSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
3
4
|
enabled: z.ZodBoolean;
|
|
4
5
|
active: z.ZodBoolean;
|
|
5
6
|
title: z.ZodString;
|
|
@@ -26,6 +27,7 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
26
27
|
type: "mpeg_dvb";
|
|
27
28
|
port: number;
|
|
28
29
|
enabled: boolean;
|
|
30
|
+
id: number;
|
|
29
31
|
active: boolean;
|
|
30
32
|
title: string;
|
|
31
33
|
ipAddress: string;
|
|
@@ -48,6 +50,7 @@ export declare const mpegDvbSchema: z.ZodObject<{
|
|
|
48
50
|
type: "mpeg_dvb";
|
|
49
51
|
port: number;
|
|
50
52
|
enabled: boolean;
|
|
53
|
+
id: number;
|
|
51
54
|
active: boolean;
|
|
52
55
|
title: string;
|
|
53
56
|
ipAddress: string;
|