camstreamerlib 4.0.0-beta.101 → 4.0.0-beta.103

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