camstreamerlib 4.0.0-beta.102 → 4.0.0-beta.104

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 (91) hide show
  1. package/cjs/CamOverlayAPI.d.ts +6 -6
  2. package/cjs/CamStreamerAPI.d.ts +308 -305
  3. package/cjs/CamStreamerAPI.js +12 -2
  4. package/cjs/CamSwitcherAPI.js +9 -63
  5. package/cjs/errors/errors.d.ts +4 -3
  6. package/cjs/errors/errors.js +3 -1
  7. package/cjs/index.d.ts +1 -0
  8. package/cjs/index.js +1 -0
  9. package/cjs/internal/constants.d.ts +1 -0
  10. package/cjs/internal/constants.js +2 -1
  11. package/cjs/internal/convertors.d.ts +6 -0
  12. package/cjs/internal/convertors.js +115 -0
  13. package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +21 -21
  14. package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +2 -2
  15. package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +4 -4
  16. package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +1672 -1976
  17. package/cjs/types/CamStreamerAPI/churchSchema.d.ts +30 -38
  18. package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +30 -38
  19. package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +30 -38
  20. package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +30 -38
  21. package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +30 -38
  22. package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +30 -38
  23. package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +30 -38
  24. package/cjs/types/CamStreamerAPI/ibmSchema.d.ts +30 -38
  25. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +30 -38
  26. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +30 -38
  27. package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +30 -38
  28. package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +18 -18
  29. package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +30 -38
  30. package/cjs/types/CamStreamerAPI/rtmpSchema.js +1 -1
  31. package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +30 -38
  32. package/cjs/types/CamStreamerAPI/srtSchema.d.ts +30 -38
  33. package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +91 -56
  34. package/cjs/types/CamStreamerAPI/streamCommonTypes.js +40 -9
  35. package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +30 -38
  36. package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +30 -38
  37. package/cjs/types/CamStreamerAPI/windySchema.d.ts +30 -38
  38. package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +30 -38
  39. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +30 -38
  40. package/cjs/types/CamSwitcherAPI.d.ts +8 -27
  41. package/cjs/types/CamSwitcherAPI.js +2 -9
  42. package/cjs/types/common.d.ts +19 -0
  43. package/cjs/types/common.js +8 -1
  44. package/cjs/types/ws/CamStreamerEvents.d.ts +44 -0
  45. package/cjs/types/ws/CamStreamerEvents.js +5 -0
  46. package/esm/CamStreamerAPI.js +12 -2
  47. package/esm/CamSwitcherAPI.js +8 -62
  48. package/esm/errors/errors.js +3 -1
  49. package/esm/index.js +1 -0
  50. package/esm/internal/constants.js +1 -0
  51. package/esm/internal/convertors.js +108 -0
  52. package/esm/types/CamStreamerAPI/rtmpSchema.js +1 -1
  53. package/esm/types/CamStreamerAPI/streamCommonTypes.js +40 -9
  54. package/esm/types/CamSwitcherAPI.js +1 -8
  55. package/esm/types/common.js +7 -0
  56. package/esm/types/ws/CamStreamerEvents.js +5 -0
  57. package/package.json +1 -1
  58. package/types/CamOverlayAPI.d.ts +6 -6
  59. package/types/CamStreamerAPI.d.ts +308 -305
  60. package/types/errors/errors.d.ts +4 -3
  61. package/types/index.d.ts +1 -0
  62. package/types/internal/constants.d.ts +1 -0
  63. package/types/internal/convertors.d.ts +6 -0
  64. package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +21 -21
  65. package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +2 -2
  66. package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +4 -4
  67. package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +1672 -1976
  68. package/types/types/CamStreamerAPI/churchSchema.d.ts +30 -38
  69. package/types/types/CamStreamerAPI/daCastSchema.d.ts +30 -38
  70. package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +30 -38
  71. package/types/types/CamStreamerAPI/facebookSchema.d.ts +30 -38
  72. package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +30 -38
  73. package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +30 -38
  74. package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +30 -38
  75. package/types/types/CamStreamerAPI/ibmSchema.d.ts +30 -38
  76. package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +30 -38
  77. package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +30 -38
  78. package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +30 -38
  79. package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +18 -18
  80. package/types/types/CamStreamerAPI/rtmpSchema.d.ts +30 -38
  81. package/types/types/CamStreamerAPI/sdCardSchema.d.ts +30 -38
  82. package/types/types/CamStreamerAPI/srtSchema.d.ts +30 -38
  83. package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +91 -56
  84. package/types/types/CamStreamerAPI/twitchSchema.d.ts +30 -38
  85. package/types/types/CamStreamerAPI/vimeoSchema.d.ts +30 -38
  86. package/types/types/CamStreamerAPI/windySchema.d.ts +30 -38
  87. package/types/types/CamStreamerAPI/wowzaSchema.d.ts +30 -38
  88. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +30 -38
  89. package/types/types/CamSwitcherAPI.d.ts +8 -27
  90. package/types/types/common.d.ts +19 -0
  91. package/types/types/ws/CamStreamerEvents.d.ts +44 -0
@@ -98,30 +98,22 @@ export declare const ibmSchema: z.ZodObject<{
98
98
  }[];
99
99
  }>]>;
100
100
  inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
101
- internalVapixParameters: z.ZodObject<{
102
- camera: z.ZodString;
103
- resolution: z.ZodOptional<z.ZodString>;
104
- compression: z.ZodOptional<z.ZodNumber>;
105
- fps: z.ZodOptional<z.ZodNumber>;
106
- videobitrate: z.ZodOptional<z.ZodNumber>;
107
- videomaxbitrate: z.ZodOptional<z.ZodNumber>;
108
- audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
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">]>;
109
109
  }, "strip", z.ZodTypeAny, {
110
- camera: string;
111
- resolution?: string | undefined;
112
- compression?: number | undefined;
113
- audio?: 0 | 1 | undefined;
114
- fps?: number | undefined;
115
- videobitrate?: number | undefined;
116
- videomaxbitrate?: number | undefined;
110
+ enabled: boolean;
111
+ timeS: number;
112
+ unit: "seconds" | "minutes" | "hours";
117
113
  }, {
118
- camera: string;
119
- resolution?: string | undefined;
120
- compression?: number | undefined;
121
- audio?: 0 | 1 | undefined;
122
- fps?: number | undefined;
123
- videobitrate?: number | undefined;
124
- videomaxbitrate?: number | undefined;
114
+ enabled: boolean;
115
+ timeS: number;
116
+ unit: "seconds" | "minutes" | "hours";
125
117
  }>;
126
118
  audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
127
119
  source: z.ZodLiteral<"none">;
@@ -211,14 +203,14 @@ export declare const ibmSchema: z.ZodObject<{
211
203
  }[];
212
204
  };
213
205
  inputType: "RTSP_URL" | "CSw" | "CRS";
214
- internalVapixParameters: {
215
- camera: string;
216
- resolution?: string | undefined;
217
- compression?: number | undefined;
218
- audio?: 0 | 1 | undefined;
219
- fps?: number | undefined;
220
- videobitrate?: number | undefined;
221
- videomaxbitrate?: number | undefined;
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";
222
214
  };
223
215
  }, {
224
216
  type: "ibm";
@@ -263,13 +255,13 @@ export declare const ibmSchema: z.ZodObject<{
263
255
  }[];
264
256
  };
265
257
  inputType: "RTSP_URL" | "CSw" | "CRS";
266
- internalVapixParameters: {
267
- camera: string;
268
- resolution?: string | undefined;
269
- compression?: number | undefined;
270
- audio?: 0 | 1 | undefined;
271
- fps?: number | undefined;
272
- videobitrate?: number | undefined;
273
- videomaxbitrate?: number | undefined;
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";
274
266
  };
275
267
  }>;
@@ -98,30 +98,22 @@ export declare const microsoftAzureSchema: z.ZodObject<{
98
98
  }[];
99
99
  }>]>;
100
100
  inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
101
- internalVapixParameters: z.ZodObject<{
102
- camera: z.ZodString;
103
- resolution: z.ZodOptional<z.ZodString>;
104
- compression: z.ZodOptional<z.ZodNumber>;
105
- fps: z.ZodOptional<z.ZodNumber>;
106
- videobitrate: z.ZodOptional<z.ZodNumber>;
107
- videomaxbitrate: z.ZodOptional<z.ZodNumber>;
108
- audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
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">]>;
109
109
  }, "strip", z.ZodTypeAny, {
110
- camera: string;
111
- resolution?: string | undefined;
112
- compression?: number | undefined;
113
- audio?: 0 | 1 | undefined;
114
- fps?: number | undefined;
115
- videobitrate?: number | undefined;
116
- videomaxbitrate?: number | undefined;
110
+ enabled: boolean;
111
+ timeS: number;
112
+ unit: "seconds" | "minutes" | "hours";
117
113
  }, {
118
- camera: string;
119
- resolution?: string | undefined;
120
- compression?: number | undefined;
121
- audio?: 0 | 1 | undefined;
122
- fps?: number | undefined;
123
- videobitrate?: number | undefined;
124
- videomaxbitrate?: number | undefined;
114
+ enabled: boolean;
115
+ timeS: number;
116
+ unit: "seconds" | "minutes" | "hours";
125
117
  }>;
126
118
  audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
127
119
  source: z.ZodLiteral<"none">;
@@ -211,14 +203,14 @@ export declare const microsoftAzureSchema: z.ZodObject<{
211
203
  }[];
212
204
  };
213
205
  inputType: "RTSP_URL" | "CSw" | "CRS";
214
- internalVapixParameters: {
215
- camera: string;
216
- resolution?: string | undefined;
217
- compression?: number | undefined;
218
- audio?: 0 | 1 | undefined;
219
- fps?: number | undefined;
220
- videobitrate?: number | undefined;
221
- videomaxbitrate?: number | undefined;
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";
222
214
  };
223
215
  }, {
224
216
  type: "microsoft_azure";
@@ -263,13 +255,13 @@ export declare const microsoftAzureSchema: z.ZodObject<{
263
255
  }[];
264
256
  };
265
257
  inputType: "RTSP_URL" | "CSw" | "CRS";
266
- internalVapixParameters: {
267
- camera: string;
268
- resolution?: string | undefined;
269
- compression?: number | undefined;
270
- audio?: 0 | 1 | undefined;
271
- fps?: number | undefined;
272
- videobitrate?: number | undefined;
273
- videomaxbitrate?: number | undefined;
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";
274
266
  };
275
267
  }>;
@@ -98,30 +98,22 @@ export declare const microsoftStreamSchema: z.ZodObject<{
98
98
  }[];
99
99
  }>]>;
100
100
  inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
101
- internalVapixParameters: z.ZodObject<{
102
- camera: z.ZodString;
103
- resolution: z.ZodOptional<z.ZodString>;
104
- compression: z.ZodOptional<z.ZodNumber>;
105
- fps: z.ZodOptional<z.ZodNumber>;
106
- videobitrate: z.ZodOptional<z.ZodNumber>;
107
- videomaxbitrate: z.ZodOptional<z.ZodNumber>;
108
- audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
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">]>;
109
109
  }, "strip", z.ZodTypeAny, {
110
- camera: string;
111
- resolution?: string | undefined;
112
- compression?: number | undefined;
113
- audio?: 0 | 1 | undefined;
114
- fps?: number | undefined;
115
- videobitrate?: number | undefined;
116
- videomaxbitrate?: number | undefined;
110
+ enabled: boolean;
111
+ timeS: number;
112
+ unit: "seconds" | "minutes" | "hours";
117
113
  }, {
118
- camera: string;
119
- resolution?: string | undefined;
120
- compression?: number | undefined;
121
- audio?: 0 | 1 | undefined;
122
- fps?: number | undefined;
123
- videobitrate?: number | undefined;
124
- videomaxbitrate?: number | undefined;
114
+ enabled: boolean;
115
+ timeS: number;
116
+ unit: "seconds" | "minutes" | "hours";
125
117
  }>;
126
118
  audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
127
119
  source: z.ZodLiteral<"none">;
@@ -211,14 +203,14 @@ export declare const microsoftStreamSchema: z.ZodObject<{
211
203
  }[];
212
204
  };
213
205
  inputType: "RTSP_URL" | "CSw" | "CRS";
214
- internalVapixParameters: {
215
- camera: string;
216
- resolution?: string | undefined;
217
- compression?: number | undefined;
218
- audio?: 0 | 1 | undefined;
219
- fps?: number | undefined;
220
- videobitrate?: number | undefined;
221
- videomaxbitrate?: number | undefined;
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";
222
214
  };
223
215
  }, {
224
216
  type: "microsoft_stream";
@@ -263,13 +255,13 @@ export declare const microsoftStreamSchema: z.ZodObject<{
263
255
  }[];
264
256
  };
265
257
  inputType: "RTSP_URL" | "CSw" | "CRS";
266
- internalVapixParameters: {
267
- camera: string;
268
- resolution?: string | undefined;
269
- compression?: number | undefined;
270
- audio?: 0 | 1 | undefined;
271
- fps?: number | undefined;
272
- videobitrate?: number | undefined;
273
- videomaxbitrate?: number | undefined;
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";
274
266
  };
275
267
  }>;
@@ -98,30 +98,22 @@ export declare const mpegDvbSchema: z.ZodObject<{
98
98
  }[];
99
99
  }>]>;
100
100
  inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
101
- internalVapixParameters: z.ZodObject<{
102
- camera: z.ZodString;
103
- resolution: z.ZodOptional<z.ZodString>;
104
- compression: z.ZodOptional<z.ZodNumber>;
105
- fps: z.ZodOptional<z.ZodNumber>;
106
- videobitrate: z.ZodOptional<z.ZodNumber>;
107
- videomaxbitrate: z.ZodOptional<z.ZodNumber>;
108
- audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
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">]>;
109
109
  }, "strip", z.ZodTypeAny, {
110
- camera: string;
111
- resolution?: string | undefined;
112
- compression?: number | undefined;
113
- audio?: 0 | 1 | undefined;
114
- fps?: number | undefined;
115
- videobitrate?: number | undefined;
116
- videomaxbitrate?: number | undefined;
110
+ enabled: boolean;
111
+ timeS: number;
112
+ unit: "seconds" | "minutes" | "hours";
117
113
  }, {
118
- camera: string;
119
- resolution?: string | undefined;
120
- compression?: number | undefined;
121
- audio?: 0 | 1 | undefined;
122
- fps?: number | undefined;
123
- videobitrate?: number | undefined;
124
- videomaxbitrate?: number | undefined;
114
+ enabled: boolean;
115
+ timeS: number;
116
+ unit: "seconds" | "minutes" | "hours";
125
117
  }>;
126
118
  audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
127
119
  source: z.ZodLiteral<"none">;
@@ -228,14 +220,14 @@ export declare const mpegDvbSchema: z.ZodObject<{
228
220
  }[];
229
221
  };
230
222
  inputType: "RTSP_URL" | "CSw" | "CRS";
231
- internalVapixParameters: {
232
- camera: string;
233
- resolution?: string | undefined;
234
- compression?: number | undefined;
235
- audio?: 0 | 1 | undefined;
236
- fps?: number | undefined;
237
- videobitrate?: number | undefined;
238
- videomaxbitrate?: number | undefined;
223
+ inputUrl: string;
224
+ internalVapixParameters: string;
225
+ userVapixParameters: string;
226
+ streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
227
+ streamDelay: {
228
+ enabled: boolean;
229
+ timeS: number;
230
+ unit: "seconds" | "minutes" | "hours";
239
231
  };
240
232
  ipAddress: string;
241
233
  standard: "DVB" | "ATSC";
@@ -296,14 +288,14 @@ export declare const mpegDvbSchema: z.ZodObject<{
296
288
  }[];
297
289
  };
298
290
  inputType: "RTSP_URL" | "CSw" | "CRS";
299
- internalVapixParameters: {
300
- camera: string;
301
- resolution?: string | undefined;
302
- compression?: number | undefined;
303
- audio?: 0 | 1 | undefined;
304
- fps?: number | undefined;
305
- videobitrate?: number | undefined;
306
- videomaxbitrate?: number | undefined;
291
+ inputUrl: string;
292
+ internalVapixParameters: string;
293
+ userVapixParameters: string;
294
+ streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
295
+ streamDelay: {
296
+ enabled: boolean;
297
+ timeS: number;
298
+ unit: "seconds" | "minutes" | "hours";
307
299
  };
308
300
  ipAddress: string;
309
301
  standard: "DVB" | "ATSC";
@@ -30,15 +30,15 @@ export declare const oldStringStreamSchema: z.ZodObject<{
30
30
  active: string;
31
31
  trigger: string;
32
32
  inputType: string;
33
+ inputUrl: string;
33
34
  internalVapixParameters: string;
34
- audioSource: string;
35
35
  userVapixParameters: string;
36
+ streamDelay: string;
37
+ audioSource: string;
36
38
  outputParameters: string;
37
39
  outputType: string;
38
40
  mediaServerUrl: string;
39
- inputUrl: string;
40
41
  forceStereo: string;
41
- streamDelay: string;
42
42
  statusLed: string;
43
43
  statusPort: string;
44
44
  callApi: string;
@@ -52,15 +52,15 @@ export declare const oldStringStreamSchema: z.ZodObject<{
52
52
  active: string;
53
53
  trigger: string;
54
54
  inputType: string;
55
+ inputUrl: string;
55
56
  internalVapixParameters: string;
56
- audioSource: string;
57
57
  userVapixParameters: string;
58
+ streamDelay: string;
59
+ audioSource: string;
58
60
  outputParameters: string;
59
61
  outputType: string;
60
62
  mediaServerUrl: string;
61
- inputUrl: string;
62
63
  forceStereo: string;
63
- streamDelay: string;
64
64
  statusLed: string;
65
65
  statusPort: string;
66
66
  callApi: string;
@@ -100,15 +100,15 @@ export declare const oldStringStreamSchemaWithId: z.ZodObject<{
100
100
  active: string;
101
101
  trigger: string;
102
102
  inputType: string;
103
+ inputUrl: string;
103
104
  internalVapixParameters: string;
104
- audioSource: string;
105
105
  userVapixParameters: string;
106
+ streamDelay: string;
107
+ audioSource: string;
106
108
  outputParameters: string;
107
109
  outputType: string;
108
110
  mediaServerUrl: string;
109
- inputUrl: string;
110
111
  forceStereo: string;
111
- streamDelay: string;
112
112
  statusLed: string;
113
113
  statusPort: string;
114
114
  callApi: string;
@@ -123,15 +123,15 @@ export declare const oldStringStreamSchemaWithId: z.ZodObject<{
123
123
  active: string;
124
124
  trigger: string;
125
125
  inputType: string;
126
+ inputUrl: string;
126
127
  internalVapixParameters: string;
127
- audioSource: string;
128
128
  userVapixParameters: string;
129
+ streamDelay: string;
130
+ audioSource: string;
129
131
  outputParameters: string;
130
132
  outputType: string;
131
133
  mediaServerUrl: string;
132
- inputUrl: string;
133
134
  forceStereo: string;
134
- streamDelay: string;
135
135
  statusLed: string;
136
136
  statusPort: string;
137
137
  callApi: string;
@@ -169,15 +169,15 @@ export declare const oldStreamSchema: z.ZodObject<{
169
169
  active: 0 | 1;
170
170
  trigger: string;
171
171
  inputType: "RTSP_URL" | "CSw" | "CRS";
172
+ inputUrl: string;
172
173
  internalVapixParameters: string;
173
- audioSource: string;
174
174
  userVapixParameters: string;
175
+ streamDelay: number | null;
176
+ audioSource: string;
175
177
  outputParameters: string;
176
178
  outputType: "video" | "none" | "images";
177
179
  mediaServerUrl: string;
178
- inputUrl: string;
179
180
  forceStereo: 0 | 1;
180
- streamDelay: number | null;
181
181
  statusLed: number;
182
182
  statusPort: string;
183
183
  callApi: number;
@@ -191,15 +191,15 @@ export declare const oldStreamSchema: z.ZodObject<{
191
191
  active: 0 | 1;
192
192
  trigger: string;
193
193
  inputType: "RTSP_URL" | "CSw" | "CRS";
194
+ inputUrl: string;
194
195
  internalVapixParameters: string;
195
- audioSource: string;
196
196
  userVapixParameters: string;
197
+ streamDelay: number | null;
198
+ audioSource: string;
197
199
  outputParameters: string;
198
200
  outputType: "video" | "none" | "images";
199
201
  mediaServerUrl: string;
200
- inputUrl: string;
201
202
  forceStereo: 0 | 1;
202
- streamDelay: number | null;
203
203
  statusLed: number;
204
204
  statusPort: string;
205
205
  callApi: number;
@@ -98,30 +98,22 @@ export declare const rtmpSchema: z.ZodObject<{
98
98
  }[];
99
99
  }>]>;
100
100
  inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
101
- internalVapixParameters: z.ZodObject<{
102
- camera: z.ZodString;
103
- resolution: z.ZodOptional<z.ZodString>;
104
- compression: z.ZodOptional<z.ZodNumber>;
105
- fps: z.ZodOptional<z.ZodNumber>;
106
- videobitrate: z.ZodOptional<z.ZodNumber>;
107
- videomaxbitrate: z.ZodOptional<z.ZodNumber>;
108
- audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
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">]>;
109
109
  }, "strip", z.ZodTypeAny, {
110
- camera: string;
111
- resolution?: string | undefined;
112
- compression?: number | undefined;
113
- audio?: 0 | 1 | undefined;
114
- fps?: number | undefined;
115
- videobitrate?: number | undefined;
116
- videomaxbitrate?: number | undefined;
110
+ enabled: boolean;
111
+ timeS: number;
112
+ unit: "seconds" | "minutes" | "hours";
117
113
  }, {
118
- camera: string;
119
- resolution?: string | undefined;
120
- compression?: number | undefined;
121
- audio?: 0 | 1 | undefined;
122
- fps?: number | undefined;
123
- videobitrate?: number | undefined;
124
- videomaxbitrate?: number | undefined;
114
+ enabled: boolean;
115
+ timeS: number;
116
+ unit: "seconds" | "minutes" | "hours";
125
117
  }>;
126
118
  audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
127
119
  source: z.ZodLiteral<"none">;
@@ -214,14 +206,14 @@ export declare const rtmpSchema: z.ZodObject<{
214
206
  }[];
215
207
  };
216
208
  inputType: "RTSP_URL" | "CSw" | "CRS";
217
- internalVapixParameters: {
218
- camera: string;
219
- resolution?: string | undefined;
220
- compression?: number | undefined;
221
- audio?: 0 | 1 | undefined;
222
- fps?: number | undefined;
223
- videobitrate?: number | undefined;
224
- videomaxbitrate?: number | undefined;
209
+ inputUrl: string;
210
+ internalVapixParameters: string;
211
+ userVapixParameters: string;
212
+ streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
213
+ streamDelay: {
214
+ enabled: boolean;
215
+ timeS: number;
216
+ unit: "seconds" | "minutes" | "hours";
225
217
  };
226
218
  rtmpUrl: string;
227
219
  streamKey: string;
@@ -269,14 +261,14 @@ export declare const rtmpSchema: z.ZodObject<{
269
261
  }[];
270
262
  };
271
263
  inputType: "RTSP_URL" | "CSw" | "CRS";
272
- internalVapixParameters: {
273
- camera: string;
274
- resolution?: string | undefined;
275
- compression?: number | undefined;
276
- audio?: 0 | 1 | undefined;
277
- fps?: number | undefined;
278
- videobitrate?: number | undefined;
279
- videomaxbitrate?: number | undefined;
264
+ inputUrl: string;
265
+ internalVapixParameters: string;
266
+ userVapixParameters: string;
267
+ streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
268
+ streamDelay: {
269
+ enabled: boolean;
270
+ timeS: number;
271
+ unit: "seconds" | "minutes" | "hours";
280
272
  };
281
273
  rtmpUrl: string;
282
274
  streamKey: string;