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.
Files changed (61) hide show
  1. package/cjs/CamStreamerAPI.d.ts +442 -386
  2. package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +2911 -1971
  3. package/cjs/types/CamStreamerAPI/churchSchema.d.ts +56 -35
  4. package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +56 -35
  5. package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +56 -35
  6. package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +56 -35
  7. package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +75 -35
  8. package/cjs/types/CamStreamerAPI/gameChangerSchema.js +2 -2
  9. package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +56 -35
  10. package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +56 -35
  11. package/cjs/types/CamStreamerAPI/ibmSchema.d.ts +56 -35
  12. package/cjs/types/CamStreamerAPI/index.d.ts +1 -0
  13. package/cjs/types/CamStreamerAPI/index.js +1 -0
  14. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +56 -35
  15. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +56 -35
  16. package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +59 -38
  17. package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +1 -1
  18. package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +24 -24
  19. package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +372 -39
  20. package/cjs/types/CamStreamerAPI/rtmpSchema.js +9 -4
  21. package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +56 -35
  22. package/cjs/types/CamStreamerAPI/srtSchema.d.ts +56 -35
  23. package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +100 -44
  24. package/cjs/types/CamStreamerAPI/streamCommonTypes.js +11 -9
  25. package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +56 -35
  26. package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +56 -35
  27. package/cjs/types/CamStreamerAPI/windySchema.d.ts +56 -35
  28. package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +56 -35
  29. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +59 -38
  30. package/cjs/types/CamStreamerAPI/youtubeSchema.js +1 -1
  31. package/esm/types/CamStreamerAPI/gameChangerSchema.js +2 -2
  32. package/esm/types/CamStreamerAPI/index.js +1 -0
  33. package/esm/types/CamStreamerAPI/mpegDvbSchema.js +1 -1
  34. package/esm/types/CamStreamerAPI/rtmpSchema.js +8 -3
  35. package/esm/types/CamStreamerAPI/streamCommonTypes.js +10 -8
  36. package/esm/types/CamStreamerAPI/youtubeSchema.js +1 -1
  37. package/package.json +1 -1
  38. package/types/CamStreamerAPI.d.ts +442 -386
  39. package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +2911 -1971
  40. package/types/types/CamStreamerAPI/churchSchema.d.ts +56 -35
  41. package/types/types/CamStreamerAPI/daCastSchema.d.ts +56 -35
  42. package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +56 -35
  43. package/types/types/CamStreamerAPI/facebookSchema.d.ts +56 -35
  44. package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +75 -35
  45. package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +56 -35
  46. package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +56 -35
  47. package/types/types/CamStreamerAPI/ibmSchema.d.ts +56 -35
  48. package/types/types/CamStreamerAPI/index.d.ts +1 -0
  49. package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +56 -35
  50. package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +56 -35
  51. package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +59 -38
  52. package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +24 -24
  53. package/types/types/CamStreamerAPI/rtmpSchema.d.ts +372 -39
  54. package/types/types/CamStreamerAPI/sdCardSchema.d.ts +56 -35
  55. package/types/types/CamStreamerAPI/srtSchema.d.ts +56 -35
  56. package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +100 -44
  57. package/types/types/CamStreamerAPI/twitchSchema.d.ts +56 -35
  58. package/types/types/CamStreamerAPI/vimeoSchema.d.ts +56 -35
  59. package/types/types/CamStreamerAPI/windySchema.d.ts +56 -35
  60. package/types/types/CamStreamerAPI/wowzaSchema.d.ts +56 -35
  61. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +59 -38
@@ -97,23 +97,42 @@ export declare const srtSchema: z.ZodObject<{
97
97
  isActive: boolean;
98
98
  }[];
99
99
  }>]>;
100
- inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
101
- inputUrl: z.ZodString;
102
- internalVapixParameters: z.ZodString;
103
- userVapixParameters: z.ZodString;
104
- streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
105
- streamDelay: z.ZodObject<{
106
- enabled: z.ZodBoolean;
107
- timeS: z.ZodNumber;
108
- unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
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
- enabled: boolean;
111
- timeS: number;
112
- unit: "seconds" | "minutes" | "hours";
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
- enabled: boolean;
115
- timeS: number;
116
- unit: "seconds" | "minutes" | "hours";
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 srtSchema: 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 srtSchema: 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: "srt";
217
237
  audio: {
@@ -229,6 +249,17 @@ export declare const srtSchema: 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 srtSchema: 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
  }>;
@@ -149,16 +149,13 @@ export type TVideoCodec = z.infer<typeof videoCodecSchema>;
149
149
  export declare const overlaysSchema: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"text">, z.ZodLiteral<"image">, z.ZodLiteral<"application">, z.ZodLiteral<"">, z.ZodLiteral<"off">]>;
150
150
  export type TOverlays = z.infer<typeof overlaysSchema>;
151
151
  export declare const streamDelaySchema: z.ZodObject<{
152
- enabled: z.ZodBoolean;
153
- timeS: z.ZodNumber;
152
+ value: z.ZodNumber;
154
153
  unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
155
154
  }, "strip", z.ZodTypeAny, {
156
- enabled: boolean;
157
- timeS: number;
155
+ value: number;
158
156
  unit: "seconds" | "minutes" | "hours";
159
157
  }, {
160
- enabled: boolean;
161
- timeS: number;
158
+ value: number;
162
159
  unit: "seconds" | "minutes" | "hours";
163
160
  }>;
164
161
  export type TStreamDelay = z.infer<typeof streamDelaySchema>;
@@ -211,6 +208,44 @@ export declare const internalVapixParametersSchema: z.ZodObject<{
211
208
  nbrOfChannels?: 1 | 2 | undefined;
212
209
  }>;
213
210
  export type TInternalVapixParameters = z.infer<typeof internalVapixParametersSchema>;
211
+ export declare const streamVideoSchema: z.ZodObject<{
212
+ inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
213
+ sourceUrl: z.ZodOptional<z.ZodString>;
214
+ internalVapixParameters: z.ZodString;
215
+ userVapixParameters: z.ZodString;
216
+ streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
217
+ streamDelay: z.ZodOptional<z.ZodObject<{
218
+ value: z.ZodNumber;
219
+ unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ value: number;
222
+ unit: "seconds" | "minutes" | "hours";
223
+ }, {
224
+ value: number;
225
+ unit: "seconds" | "minutes" | "hours";
226
+ }>>;
227
+ }, "strip", z.ZodTypeAny, {
228
+ inputType: "RTSP_URL" | "CSw" | "CRS";
229
+ internalVapixParameters: string;
230
+ userVapixParameters: string;
231
+ streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
232
+ sourceUrl?: string | undefined;
233
+ streamDelay?: {
234
+ value: number;
235
+ unit: "seconds" | "minutes" | "hours";
236
+ } | undefined;
237
+ }, {
238
+ inputType: "RTSP_URL" | "CSw" | "CRS";
239
+ internalVapixParameters: string;
240
+ userVapixParameters: string;
241
+ streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
242
+ sourceUrl?: string | undefined;
243
+ streamDelay?: {
244
+ value: number;
245
+ unit: "seconds" | "minutes" | "hours";
246
+ } | undefined;
247
+ }>;
248
+ export type TStreamVideo = z.infer<typeof streamVideoSchema>;
214
249
  export declare const streamAudioSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
215
250
  source: z.ZodLiteral<"none">;
216
251
  }, "strip", z.ZodTypeAny, {
@@ -254,10 +289,10 @@ export declare const streamAudioSchema: z.ZodDiscriminatedUnion<"source", [z.Zod
254
289
  fileUrl: string;
255
290
  avSyncMsec: number;
256
291
  }>]>;
257
- export type TStreamAudioSchema = z.infer<typeof streamAudioSchema>;
258
- export type TStreamAudioSource = TStreamAudioSchema['source'];
292
+ export type TStreamAudio = z.infer<typeof streamAudioSchema>;
293
+ export type TStreamAudioSource = TStreamAudio['source'];
259
294
  export type TAudioOfSource<T extends TStreamAudioSource> = {
260
- audio: Extract<TStreamAudioSchema, {
295
+ audio: Extract<TStreamAudio, {
261
296
  source: T;
262
297
  }>;
263
298
  };
@@ -359,23 +394,42 @@ export declare const streamCommonSchema: z.ZodObject<{
359
394
  isActive: boolean;
360
395
  }[];
361
396
  }>]>;
362
- inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
363
- inputUrl: z.ZodString;
364
- internalVapixParameters: z.ZodString;
365
- userVapixParameters: z.ZodString;
366
- streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
367
- streamDelay: z.ZodObject<{
368
- enabled: z.ZodBoolean;
369
- timeS: z.ZodNumber;
370
- unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
397
+ video: z.ZodObject<{
398
+ inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
399
+ sourceUrl: z.ZodOptional<z.ZodString>;
400
+ internalVapixParameters: z.ZodString;
401
+ userVapixParameters: z.ZodString;
402
+ streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
403
+ streamDelay: z.ZodOptional<z.ZodObject<{
404
+ value: z.ZodNumber;
405
+ unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
406
+ }, "strip", z.ZodTypeAny, {
407
+ value: number;
408
+ unit: "seconds" | "minutes" | "hours";
409
+ }, {
410
+ value: number;
411
+ unit: "seconds" | "minutes" | "hours";
412
+ }>>;
371
413
  }, "strip", z.ZodTypeAny, {
372
- enabled: boolean;
373
- timeS: number;
374
- unit: "seconds" | "minutes" | "hours";
414
+ inputType: "RTSP_URL" | "CSw" | "CRS";
415
+ internalVapixParameters: string;
416
+ userVapixParameters: string;
417
+ streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
418
+ sourceUrl?: string | undefined;
419
+ streamDelay?: {
420
+ value: number;
421
+ unit: "seconds" | "minutes" | "hours";
422
+ } | undefined;
375
423
  }, {
376
- enabled: boolean;
377
- timeS: number;
378
- unit: "seconds" | "minutes" | "hours";
424
+ inputType: "RTSP_URL" | "CSw" | "CRS";
425
+ internalVapixParameters: string;
426
+ userVapixParameters: string;
427
+ streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
428
+ sourceUrl?: string | undefined;
429
+ streamDelay?: {
430
+ value: number;
431
+ unit: "seconds" | "minutes" | "hours";
432
+ } | undefined;
379
433
  }>;
380
434
  audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
381
435
  source: z.ZodLiteral<"none">;
@@ -436,6 +490,17 @@ export declare const streamCommonSchema: z.ZodObject<{
436
490
  fileUrl: string;
437
491
  avSyncMsec: number;
438
492
  };
493
+ video: {
494
+ inputType: "RTSP_URL" | "CSw" | "CRS";
495
+ internalVapixParameters: string;
496
+ userVapixParameters: string;
497
+ streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
498
+ sourceUrl?: string | undefined;
499
+ streamDelay?: {
500
+ value: number;
501
+ unit: "seconds" | "minutes" | "hours";
502
+ } | undefined;
503
+ };
439
504
  enabled: boolean;
440
505
  id: number;
441
506
  active: boolean;
@@ -461,16 +526,6 @@ export declare const streamCommonSchema: z.ZodObject<{
461
526
  isActive: boolean;
462
527
  }[];
463
528
  };
464
- inputType: "RTSP_URL" | "CSw" | "CRS";
465
- inputUrl: string;
466
- internalVapixParameters: string;
467
- userVapixParameters: string;
468
- streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
469
- streamDelay: {
470
- enabled: boolean;
471
- timeS: number;
472
- unit: "seconds" | "minutes" | "hours";
473
- };
474
529
  }, {
475
530
  audio: {
476
531
  source: "none";
@@ -487,6 +542,17 @@ export declare const streamCommonSchema: z.ZodObject<{
487
542
  fileUrl: string;
488
543
  avSyncMsec: number;
489
544
  };
545
+ video: {
546
+ inputType: "RTSP_URL" | "CSw" | "CRS";
547
+ internalVapixParameters: string;
548
+ userVapixParameters: string;
549
+ streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
550
+ sourceUrl?: string | undefined;
551
+ streamDelay?: {
552
+ value: number;
553
+ unit: "seconds" | "minutes" | "hours";
554
+ } | undefined;
555
+ };
490
556
  enabled: boolean;
491
557
  id: number;
492
558
  active: boolean;
@@ -512,16 +578,6 @@ export declare const streamCommonSchema: z.ZodObject<{
512
578
  isActive: boolean;
513
579
  }[];
514
580
  };
515
- inputType: "RTSP_URL" | "CSw" | "CRS";
516
- inputUrl: string;
517
- internalVapixParameters: string;
518
- userVapixParameters: string;
519
- streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
520
- streamDelay: {
521
- enabled: boolean;
522
- timeS: number;
523
- unit: "seconds" | "minutes" | "hours";
524
- };
525
581
  }>;
526
582
  export type TCommonStream = z.infer<typeof streamCommonSchema>;
527
583
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.streamCommonSchema = exports.streamAudioSchema = exports.internalVapixParametersSchema = exports.streamDelaySchema = exports.overlaysSchema = exports.videoCodecSchema = exports.streamingProtocolTypeSchema = exports.streamInputTypeSchema = exports.streamTriggerSchema = exports.streamTypeSchema = void 0;
3
+ exports.streamCommonSchema = exports.streamAudioSchema = exports.streamVideoSchema = exports.internalVapixParametersSchema = exports.streamDelaySchema = exports.overlaysSchema = exports.videoCodecSchema = exports.streamingProtocolTypeSchema = exports.streamInputTypeSchema = exports.streamTriggerSchema = exports.streamTypeSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const common_1 = require("../common");
6
6
  exports.streamTypeSchema = zod_1.z.union([
@@ -58,8 +58,7 @@ exports.overlaysSchema = zod_1.z.union([
58
58
  zod_1.z.literal('off'),
59
59
  ]);
60
60
  exports.streamDelaySchema = zod_1.z.object({
61
- enabled: zod_1.z.boolean(),
62
- timeS: zod_1.z.number().int(),
61
+ value: zod_1.z.number().int(),
63
62
  unit: zod_1.z.union([zod_1.z.literal('seconds'), zod_1.z.literal('minutes'), zod_1.z.literal('hours')]),
64
63
  });
65
64
  exports.internalVapixParametersSchema = common_1.bitrateVapixParamsSchema.extend({
@@ -83,6 +82,14 @@ exports.internalVapixParametersSchema = common_1.bitrateVapixParamsSchema.extend
83
82
  ])
84
83
  .optional(),
85
84
  });
85
+ exports.streamVideoSchema = zod_1.z.object({
86
+ inputType: exports.streamInputTypeSchema,
87
+ sourceUrl: zod_1.z.string().optional(),
88
+ internalVapixParameters: zod_1.z.string(),
89
+ userVapixParameters: zod_1.z.string(),
90
+ streamingProtocol: exports.streamingProtocolTypeSchema,
91
+ streamDelay: exports.streamDelaySchema.optional(),
92
+ });
86
93
  exports.streamAudioSchema = zod_1.z.discriminatedUnion('source', [
87
94
  zod_1.z.object({
88
95
  source: zod_1.z.literal('none'),
@@ -106,11 +113,6 @@ exports.streamCommonSchema = zod_1.z.object({
106
113
  active: zod_1.z.boolean(),
107
114
  title: zod_1.z.string(),
108
115
  trigger: exports.streamTriggerSchema,
109
- inputType: exports.streamInputTypeSchema,
110
- inputUrl: zod_1.z.string(),
111
- internalVapixParameters: zod_1.z.string(),
112
- userVapixParameters: zod_1.z.string(),
113
- streamingProtocol: exports.streamingProtocolTypeSchema,
114
- streamDelay: exports.streamDelaySchema,
116
+ video: exports.streamVideoSchema,
115
117
  audio: exports.streamAudioSchema,
116
118
  });
@@ -97,23 +97,42 @@ export declare const twitchSchema: z.ZodObject<{
97
97
  isActive: boolean;
98
98
  }[];
99
99
  }>]>;
100
- inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
101
- inputUrl: z.ZodString;
102
- internalVapixParameters: z.ZodString;
103
- userVapixParameters: z.ZodString;
104
- streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
105
- streamDelay: z.ZodObject<{
106
- enabled: z.ZodBoolean;
107
- timeS: z.ZodNumber;
108
- unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
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
- enabled: boolean;
111
- timeS: number;
112
- unit: "seconds" | "minutes" | "hours";
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
- enabled: boolean;
115
- timeS: number;
116
- unit: "seconds" | "minutes" | "hours";
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 twitchSchema: 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 twitchSchema: 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: "twitch";
217
237
  audio: {
@@ -229,6 +249,17 @@ export declare const twitchSchema: 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 twitchSchema: 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
  }>;
@@ -97,23 +97,42 @@ export declare const vimeoSchema: z.ZodObject<{
97
97
  isActive: boolean;
98
98
  }[];
99
99
  }>]>;
100
- inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
101
- inputUrl: z.ZodString;
102
- internalVapixParameters: z.ZodString;
103
- userVapixParameters: z.ZodString;
104
- streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
105
- streamDelay: z.ZodObject<{
106
- enabled: z.ZodBoolean;
107
- timeS: z.ZodNumber;
108
- unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
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
- enabled: boolean;
111
- timeS: number;
112
- unit: "seconds" | "minutes" | "hours";
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
- enabled: boolean;
115
- timeS: number;
116
- unit: "seconds" | "minutes" | "hours";
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 vimeoSchema: 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 vimeoSchema: 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: "vimeo";
217
237
  audio: {
@@ -229,6 +249,17 @@ export declare const vimeoSchema: 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 vimeoSchema: 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
  }>;