camstreamerlib 4.0.0-beta.102 → 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 (91) hide show
  1. package/cjs/CamOverlayAPI.d.ts +6 -6
  2. package/cjs/CamStreamerAPI.d.ts +270 -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 +1501 -1976
  17. package/cjs/types/CamStreamerAPI/churchSchema.d.ts +27 -38
  18. package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +27 -38
  19. package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +27 -38
  20. package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +27 -38
  21. package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +27 -38
  22. package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +27 -38
  23. package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +27 -38
  24. package/cjs/types/CamStreamerAPI/ibmSchema.d.ts +27 -38
  25. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +27 -38
  26. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +27 -38
  27. package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +27 -38
  28. package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +12 -12
  29. package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +27 -38
  30. package/cjs/types/CamStreamerAPI/rtmpSchema.js +1 -1
  31. package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +27 -38
  32. package/cjs/types/CamStreamerAPI/srtSchema.d.ts +27 -38
  33. package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +88 -56
  34. package/cjs/types/CamStreamerAPI/streamCommonTypes.js +44 -9
  35. package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +27 -38
  36. package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +27 -38
  37. package/cjs/types/CamStreamerAPI/windySchema.d.ts +27 -38
  38. package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +27 -38
  39. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +27 -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 +44 -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 +270 -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 +1501 -1976
  68. package/types/types/CamStreamerAPI/churchSchema.d.ts +27 -38
  69. package/types/types/CamStreamerAPI/daCastSchema.d.ts +27 -38
  70. package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +27 -38
  71. package/types/types/CamStreamerAPI/facebookSchema.d.ts +27 -38
  72. package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +27 -38
  73. package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +27 -38
  74. package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +27 -38
  75. package/types/types/CamStreamerAPI/ibmSchema.d.ts +27 -38
  76. package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +27 -38
  77. package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +27 -38
  78. package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +27 -38
  79. package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +12 -12
  80. package/types/types/CamStreamerAPI/rtmpSchema.d.ts +27 -38
  81. package/types/types/CamStreamerAPI/sdCardSchema.d.ts +27 -38
  82. package/types/types/CamStreamerAPI/srtSchema.d.ts +27 -38
  83. package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +88 -56
  84. package/types/types/CamStreamerAPI/twitchSchema.d.ts +27 -38
  85. package/types/types/CamStreamerAPI/vimeoSchema.d.ts +27 -38
  86. package/types/types/CamStreamerAPI/windySchema.d.ts +27 -38
  87. package/types/types/CamStreamerAPI/wowzaSchema.d.ts +27 -38
  88. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +27 -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,21 @@ export declare const churchSchema: 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 churchSchema: 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: "church";
@@ -263,13 +253,12 @@ export declare const churchSchema: 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 daCastSchema: 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 daCastSchema: 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: "da_cast";
@@ -263,13 +253,12 @@ export declare const daCastSchema: 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 dailymotionSchema: 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 dailymotionSchema: 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: "dailymotion";
@@ -263,13 +253,12 @@ export declare const dailymotionSchema: 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 facebookSchema: 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 facebookSchema: 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: "facebook";
@@ -263,13 +253,12 @@ export declare const facebookSchema: 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 gameChangerSchema: 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 gameChangerSchema: 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: "game_changer";
@@ -263,13 +253,12 @@ export declare const gameChangerSchema: 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 hlsPullSchema: 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 hlsPullSchema: 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: "hls_pull";
@@ -263,13 +253,12 @@ export declare const hlsPullSchema: 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 hlsPushSchema: 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 hlsPushSchema: 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: "hls_push";
@@ -263,13 +253,12 @@ export declare const hlsPushSchema: 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
  }>;