camstreamerlib 4.0.0-beta.96 → 4.0.0-beta.99

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 +4 -4
  2. package/cjs/CamStreamerAPI.d.ts +1483 -65
  3. package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +22 -22
  4. package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +12 -12
  5. package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +2 -2
  6. package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +11825 -2376
  7. package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +79 -7
  8. package/cjs/types/CamStreamerAPI/churchSchema.d.ts +275 -0
  9. package/cjs/types/CamStreamerAPI/churchSchema.js +11 -0
  10. package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +275 -0
  11. package/cjs/types/CamStreamerAPI/daCastSchema.js +11 -0
  12. package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +275 -0
  13. package/cjs/types/CamStreamerAPI/dailymotionSchema.js +11 -0
  14. package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +51 -5
  15. package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +275 -0
  16. package/cjs/types/CamStreamerAPI/gameChangerSchema.js +11 -0
  17. package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +275 -0
  18. package/cjs/types/CamStreamerAPI/hlsPullSchema.js +11 -0
  19. package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +275 -0
  20. package/cjs/types/CamStreamerAPI/hlsPushSchema.js +11 -0
  21. package/cjs/types/CamStreamerAPI/{hlsSchema.d.ts → ibmSchema.d.ts} +55 -9
  22. package/cjs/types/CamStreamerAPI/{hlsSchema.js → ibmSchema.js} +3 -3
  23. package/cjs/types/CamStreamerAPI/index.d.ts +0 -1
  24. package/cjs/types/CamStreamerAPI/index.js +0 -1
  25. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +275 -0
  26. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.js +11 -0
  27. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +275 -0
  28. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.js +11 -0
  29. package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +51 -5
  30. package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +12 -12
  31. package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +51 -5
  32. package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +51 -5
  33. package/{types/types/CamStreamerAPI/hlsSchema.d.ts → cjs/types/CamStreamerAPI/srtSchema.d.ts} +55 -9
  34. package/cjs/types/CamStreamerAPI/srtSchema.js +11 -0
  35. package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +88 -9
  36. package/cjs/types/CamStreamerAPI/streamCommonTypes.js +28 -3
  37. package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +275 -0
  38. package/cjs/types/CamStreamerAPI/twitchSchema.js +11 -0
  39. package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +275 -0
  40. package/cjs/types/CamStreamerAPI/vimeoSchema.js +11 -0
  41. package/cjs/types/CamStreamerAPI/windySchema.d.ts +51 -5
  42. package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +275 -0
  43. package/cjs/types/CamStreamerAPI/wowzaSchema.js +11 -0
  44. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +96 -5
  45. package/cjs/types/CamStreamerAPI/youtubeSchema.js +15 -0
  46. package/esm/types/CamStreamerAPI/CamStreamerAPI.js +65 -5
  47. package/esm/types/CamStreamerAPI/churchSchema.js +5 -0
  48. package/esm/types/CamStreamerAPI/daCastSchema.js +5 -0
  49. package/esm/types/CamStreamerAPI/dailymotionSchema.js +5 -0
  50. package/esm/types/CamStreamerAPI/gameChangerSchema.js +5 -0
  51. package/esm/types/CamStreamerAPI/hlsPullSchema.js +5 -0
  52. package/esm/types/CamStreamerAPI/hlsPushSchema.js +5 -0
  53. package/esm/types/CamStreamerAPI/{hlsSchema.js → ibmSchema.js} +2 -2
  54. package/esm/types/CamStreamerAPI/index.js +0 -1
  55. package/esm/types/CamStreamerAPI/microsoftAzureSchema.js +5 -0
  56. package/esm/types/CamStreamerAPI/microsoftStreamSchema.js +5 -0
  57. package/esm/types/CamStreamerAPI/srtSchema.js +5 -0
  58. package/esm/types/CamStreamerAPI/streamCommonTypes.js +27 -2
  59. package/esm/types/CamStreamerAPI/twitchSchema.js +5 -0
  60. package/esm/types/CamStreamerAPI/vimeoSchema.js +5 -0
  61. package/esm/types/CamStreamerAPI/wowzaSchema.js +5 -0
  62. package/esm/types/CamStreamerAPI/youtubeSchema.js +15 -0
  63. package/package.json +1 -1
  64. package/types/CamOverlayAPI.d.ts +4 -4
  65. package/types/CamStreamerAPI.d.ts +1483 -65
  66. package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +22 -22
  67. package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +12 -12
  68. package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +2 -2
  69. package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +11825 -2376
  70. package/types/types/CamStreamerAPI/churchSchema.d.ts +275 -0
  71. package/types/types/CamStreamerAPI/daCastSchema.d.ts +275 -0
  72. package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +275 -0
  73. package/types/types/CamStreamerAPI/facebookSchema.d.ts +51 -5
  74. package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +275 -0
  75. package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +275 -0
  76. package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +275 -0
  77. package/types/types/CamStreamerAPI/ibmSchema.d.ts +275 -0
  78. package/types/types/CamStreamerAPI/index.d.ts +0 -1
  79. package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +275 -0
  80. package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +275 -0
  81. package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +51 -5
  82. package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +12 -12
  83. package/types/types/CamStreamerAPI/rtmpSchema.d.ts +51 -5
  84. package/types/types/CamStreamerAPI/sdCardSchema.d.ts +51 -5
  85. package/types/types/CamStreamerAPI/srtSchema.d.ts +275 -0
  86. package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +88 -9
  87. package/types/types/CamStreamerAPI/twitchSchema.d.ts +275 -0
  88. package/types/types/CamStreamerAPI/vimeoSchema.d.ts +275 -0
  89. package/types/types/CamStreamerAPI/windySchema.d.ts +51 -5
  90. package/types/types/CamStreamerAPI/wowzaSchema.d.ts +275 -0
  91. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +96 -5
@@ -29,13 +29,13 @@ export declare const oldStringStreamSchema: z.ZodObject<{
29
29
  avSyncMsec: string;
30
30
  active: string;
31
31
  trigger: string;
32
- audioSource: string;
32
+ inputType: string;
33
33
  internalVapixParameters: string;
34
+ audioSource: string;
34
35
  userVapixParameters: string;
35
36
  outputParameters: string;
36
37
  outputType: string;
37
38
  mediaServerUrl: string;
38
- inputType: string;
39
39
  inputUrl: string;
40
40
  forceStereo: string;
41
41
  streamDelay: string;
@@ -51,13 +51,13 @@ export declare const oldStringStreamSchema: z.ZodObject<{
51
51
  avSyncMsec: string;
52
52
  active: string;
53
53
  trigger: string;
54
- audioSource: string;
54
+ inputType: string;
55
55
  internalVapixParameters: string;
56
+ audioSource: string;
56
57
  userVapixParameters: string;
57
58
  outputParameters: string;
58
59
  outputType: string;
59
60
  mediaServerUrl: string;
60
- inputType: string;
61
61
  inputUrl: string;
62
62
  forceStereo: string;
63
63
  streamDelay: string;
@@ -99,13 +99,13 @@ export declare const oldStringStreamSchemaWithId: z.ZodObject<{
99
99
  avSyncMsec: string;
100
100
  active: string;
101
101
  trigger: string;
102
- audioSource: string;
102
+ inputType: string;
103
103
  internalVapixParameters: string;
104
+ audioSource: string;
104
105
  userVapixParameters: string;
105
106
  outputParameters: string;
106
107
  outputType: string;
107
108
  mediaServerUrl: string;
108
- inputType: string;
109
109
  inputUrl: string;
110
110
  forceStereo: string;
111
111
  streamDelay: string;
@@ -122,13 +122,13 @@ export declare const oldStringStreamSchemaWithId: z.ZodObject<{
122
122
  avSyncMsec: string;
123
123
  active: string;
124
124
  trigger: string;
125
- audioSource: string;
125
+ inputType: string;
126
126
  internalVapixParameters: string;
127
+ audioSource: string;
127
128
  userVapixParameters: string;
128
129
  outputParameters: string;
129
130
  outputType: string;
130
131
  mediaServerUrl: string;
131
- inputType: string;
132
132
  inputUrl: string;
133
133
  forceStereo: string;
134
134
  streamDelay: string;
@@ -168,13 +168,13 @@ export declare const oldStreamSchema: z.ZodObject<{
168
168
  avSyncMsec: number;
169
169
  active: 0 | 1;
170
170
  trigger: string;
171
- audioSource: string;
171
+ inputType: "RTSP_URL" | "CSw" | "CRS";
172
172
  internalVapixParameters: string;
173
+ audioSource: string;
173
174
  userVapixParameters: string;
174
175
  outputParameters: string;
175
176
  outputType: "video" | "none" | "images";
176
177
  mediaServerUrl: string;
177
- inputType: "RTSP_URL" | "CSw" | "CRS";
178
178
  inputUrl: string;
179
179
  forceStereo: 0 | 1;
180
180
  streamDelay: number | null;
@@ -190,13 +190,13 @@ export declare const oldStreamSchema: z.ZodObject<{
190
190
  avSyncMsec: number;
191
191
  active: 0 | 1;
192
192
  trigger: string;
193
- audioSource: string;
193
+ inputType: "RTSP_URL" | "CSw" | "CRS";
194
194
  internalVapixParameters: string;
195
+ audioSource: string;
195
196
  userVapixParameters: string;
196
197
  outputParameters: string;
197
198
  outputType: "video" | "none" | "images";
198
199
  mediaServerUrl: string;
199
- inputType: "RTSP_URL" | "CSw" | "CRS";
200
200
  inputUrl: string;
201
201
  forceStereo: 0 | 1;
202
202
  streamDelay: number | null;
@@ -97,6 +97,32 @@ export declare const rtmpSchema: 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
+ 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>]>>;
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;
117
+ }, {
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;
125
+ }>;
100
126
  audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
101
127
  source: z.ZodLiteral<"none">;
102
128
  }, "strip", z.ZodTypeAny, {
@@ -105,13 +131,13 @@ export declare const rtmpSchema: z.ZodObject<{
105
131
  source: "none";
106
132
  }>, z.ZodObject<{
107
133
  source: z.ZodLiteral<"microphone">;
108
- channel: z.ZodNumber;
134
+ audioChannelNbr: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
109
135
  }, "strip", z.ZodTypeAny, {
110
- channel: number;
111
136
  source: "microphone";
137
+ audioChannelNbr: 0 | 1;
112
138
  }, {
113
- channel: number;
114
139
  source: "microphone";
140
+ audioChannelNbr: 0 | 1;
115
141
  }>, z.ZodObject<{
116
142
  source: z.ZodLiteral<"file">;
117
143
  fileName: z.ZodString;
@@ -150,8 +176,8 @@ export declare const rtmpSchema: z.ZodObject<{
150
176
  audio: {
151
177
  source: "none";
152
178
  } | {
153
- channel: number;
154
179
  source: "microphone";
180
+ audioChannelNbr: 0 | 1;
155
181
  } | {
156
182
  source: "file";
157
183
  fileName: string;
@@ -187,6 +213,16 @@ export declare const rtmpSchema: z.ZodObject<{
187
213
  isActive: boolean;
188
214
  }[];
189
215
  };
216
+ 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;
225
+ };
190
226
  rtmpUrl: string;
191
227
  streamKey: string;
192
228
  streamIdentifier?: string | undefined;
@@ -195,8 +231,8 @@ export declare const rtmpSchema: z.ZodObject<{
195
231
  audio: {
196
232
  source: "none";
197
233
  } | {
198
- channel: number;
199
234
  source: "microphone";
235
+ audioChannelNbr: 0 | 1;
200
236
  } | {
201
237
  source: "file";
202
238
  fileName: string;
@@ -232,6 +268,16 @@ export declare const rtmpSchema: z.ZodObject<{
232
268
  isActive: boolean;
233
269
  }[];
234
270
  };
271
+ 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;
280
+ };
235
281
  rtmpUrl: string;
236
282
  streamKey: string;
237
283
  streamIdentifier?: string | undefined;
@@ -97,6 +97,32 @@ export declare const sdCardSchema: 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
+ 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>]>>;
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;
117
+ }, {
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;
125
+ }>;
100
126
  audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
101
127
  source: z.ZodLiteral<"none">;
102
128
  }, "strip", z.ZodTypeAny, {
@@ -105,13 +131,13 @@ export declare const sdCardSchema: z.ZodObject<{
105
131
  source: "none";
106
132
  }>, z.ZodObject<{
107
133
  source: z.ZodLiteral<"microphone">;
108
- channel: z.ZodNumber;
134
+ audioChannelNbr: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
109
135
  }, "strip", z.ZodTypeAny, {
110
- channel: number;
111
136
  source: "microphone";
137
+ audioChannelNbr: 0 | 1;
112
138
  }, {
113
- channel: number;
114
139
  source: "microphone";
140
+ audioChannelNbr: 0 | 1;
115
141
  }>, z.ZodObject<{
116
142
  source: z.ZodLiteral<"file">;
117
143
  fileName: z.ZodString;
@@ -147,8 +173,8 @@ export declare const sdCardSchema: z.ZodObject<{
147
173
  audio: {
148
174
  source: "none";
149
175
  } | {
150
- channel: number;
151
176
  source: "microphone";
177
+ audioChannelNbr: 0 | 1;
152
178
  } | {
153
179
  source: "file";
154
180
  fileName: string;
@@ -184,13 +210,23 @@ export declare const sdCardSchema: z.ZodObject<{
184
210
  isActive: boolean;
185
211
  }[];
186
212
  };
213
+ 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;
222
+ };
187
223
  }, {
188
224
  type: "sd_card";
189
225
  audio: {
190
226
  source: "none";
191
227
  } | {
192
- channel: number;
193
228
  source: "microphone";
229
+ audioChannelNbr: 0 | 1;
194
230
  } | {
195
231
  source: "file";
196
232
  fileName: string;
@@ -226,4 +262,14 @@ export declare const sdCardSchema: z.ZodObject<{
226
262
  isActive: boolean;
227
263
  }[];
228
264
  };
265
+ 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;
274
+ };
229
275
  }>;
@@ -1,5 +1,5 @@
1
1
  import z from 'zod';
2
- export declare const hlsSchema: z.ZodObject<{
2
+ export declare const srtSchema: z.ZodObject<{
3
3
  id: z.ZodNumber;
4
4
  enabled: z.ZodBoolean;
5
5
  active: z.ZodBoolean;
@@ -97,6 +97,32 @@ export declare const hlsSchema: 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
+ 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>]>>;
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;
117
+ }, {
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;
125
+ }>;
100
126
  audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
101
127
  source: z.ZodLiteral<"none">;
102
128
  }, "strip", z.ZodTypeAny, {
@@ -105,13 +131,13 @@ export declare const hlsSchema: z.ZodObject<{
105
131
  source: "none";
106
132
  }>, z.ZodObject<{
107
133
  source: z.ZodLiteral<"microphone">;
108
- channel: z.ZodNumber;
134
+ audioChannelNbr: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
109
135
  }, "strip", z.ZodTypeAny, {
110
- channel: number;
111
136
  source: "microphone";
137
+ audioChannelNbr: 0 | 1;
112
138
  }, {
113
- channel: number;
114
139
  source: "microphone";
140
+ audioChannelNbr: 0 | 1;
115
141
  }>, z.ZodObject<{
116
142
  source: z.ZodLiteral<"file">;
117
143
  fileName: z.ZodString;
@@ -141,14 +167,14 @@ export declare const hlsSchema: z.ZodObject<{
141
167
  avSyncMsec: number;
142
168
  }>]>;
143
169
  } & {
144
- type: z.ZodLiteral<"hls">;
170
+ type: z.ZodLiteral<"srt">;
145
171
  }, "strip", z.ZodTypeAny, {
146
- type: "hls";
172
+ type: "srt";
147
173
  audio: {
148
174
  source: "none";
149
175
  } | {
150
- channel: number;
151
176
  source: "microphone";
177
+ audioChannelNbr: 0 | 1;
152
178
  } | {
153
179
  source: "file";
154
180
  fileName: string;
@@ -184,13 +210,23 @@ export declare const hlsSchema: z.ZodObject<{
184
210
  isActive: boolean;
185
211
  }[];
186
212
  };
213
+ 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;
222
+ };
187
223
  }, {
188
- type: "hls";
224
+ type: "srt";
189
225
  audio: {
190
226
  source: "none";
191
227
  } | {
192
- channel: number;
193
228
  source: "microphone";
229
+ audioChannelNbr: 0 | 1;
194
230
  } | {
195
231
  source: "file";
196
232
  fileName: string;
@@ -226,4 +262,14 @@ export declare const hlsSchema: z.ZodObject<{
226
262
  isActive: boolean;
227
263
  }[];
228
264
  };
265
+ 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;
274
+ };
229
275
  }>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.srtSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const streamCommonTypes_1 = require("./streamCommonTypes");
9
+ exports.srtSchema = streamCommonTypes_1.streamCommonSchema.extend({
10
+ type: zod_1.default.literal('srt'),
11
+ });
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const streamTypeSchema: z.ZodUnion<[z.ZodLiteral<"youtube">, z.ZodLiteral<"facebook">, z.ZodLiteral<"sd_card">, z.ZodLiteral<"windy">, z.ZodLiteral<"mpeg_dvb">, z.ZodLiteral<"hls">, z.ZodLiteral<"rtmp">]>;
2
+ export declare const streamTypeSchema: z.ZodUnion<[z.ZodLiteral<"youtube">, z.ZodLiteral<"facebook">, z.ZodLiteral<"sd_card">, z.ZodLiteral<"windy">, z.ZodLiteral<"mpeg_dvb">, z.ZodLiteral<"rtmp">, z.ZodLiteral<"dailymotion">, z.ZodLiteral<"ibm">, z.ZodLiteral<"hls_pull">, z.ZodLiteral<"hls_push">, z.ZodLiteral<"wowza">, z.ZodLiteral<"microsoft_stream">, z.ZodLiteral<"microsoft_azure">, z.ZodLiteral<"vimeo">, z.ZodLiteral<"twitch">, z.ZodLiteral<"church">, z.ZodLiteral<"srt">, z.ZodLiteral<"da_cast">, z.ZodLiteral<"game_changer">]>;
3
3
  export type TStreamType = z.infer<typeof streamTypeSchema>;
4
4
  declare const scheduleSchema: z.ZodObject<{
5
5
  start: z.ZodObject<{
@@ -140,6 +140,34 @@ export declare const streamTriggerSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
140
140
  export type TStreamTrigger = z.infer<typeof streamTriggerSchema>;
141
141
  export type TStreamTriggerType = TStreamTrigger['type'];
142
142
  export type TTriggerSchedule = z.infer<typeof scheduleSchema>;
143
+ export declare const streamInputTypeSchema: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
144
+ export type TStreamInputType = z.infer<typeof streamInputTypeSchema>;
145
+ export declare const internalVapixParametersSchema: z.ZodObject<{
146
+ camera: z.ZodString;
147
+ resolution: z.ZodOptional<z.ZodString>;
148
+ compression: z.ZodOptional<z.ZodNumber>;
149
+ fps: z.ZodOptional<z.ZodNumber>;
150
+ videobitrate: z.ZodOptional<z.ZodNumber>;
151
+ videomaxbitrate: z.ZodOptional<z.ZodNumber>;
152
+ audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ camera: string;
155
+ resolution?: string | undefined;
156
+ compression?: number | undefined;
157
+ audio?: 0 | 1 | undefined;
158
+ fps?: number | undefined;
159
+ videobitrate?: number | undefined;
160
+ videomaxbitrate?: number | undefined;
161
+ }, {
162
+ camera: string;
163
+ resolution?: string | undefined;
164
+ compression?: number | undefined;
165
+ audio?: 0 | 1 | undefined;
166
+ fps?: number | undefined;
167
+ videobitrate?: number | undefined;
168
+ videomaxbitrate?: number | undefined;
169
+ }>;
170
+ export type TInternalVapixParameters = z.infer<typeof internalVapixParametersSchema>;
143
171
  export declare const streamAudioSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
144
172
  source: z.ZodLiteral<"none">;
145
173
  }, "strip", z.ZodTypeAny, {
@@ -148,13 +176,13 @@ export declare const streamAudioSchema: z.ZodDiscriminatedUnion<"source", [z.Zod
148
176
  source: "none";
149
177
  }>, z.ZodObject<{
150
178
  source: z.ZodLiteral<"microphone">;
151
- channel: z.ZodNumber;
179
+ audioChannelNbr: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
152
180
  }, "strip", z.ZodTypeAny, {
153
- channel: number;
154
181
  source: "microphone";
182
+ audioChannelNbr: 0 | 1;
155
183
  }, {
156
- channel: number;
157
184
  source: "microphone";
185
+ audioChannelNbr: 0 | 1;
158
186
  }>, z.ZodObject<{
159
187
  source: z.ZodLiteral<"file">;
160
188
  fileName: z.ZodString;
@@ -185,6 +213,11 @@ export declare const streamAudioSchema: z.ZodDiscriminatedUnion<"source", [z.Zod
185
213
  }>]>;
186
214
  export type TStreamAudioSchema = z.infer<typeof streamAudioSchema>;
187
215
  export type TStreamAudioSource = TStreamAudioSchema['source'];
216
+ export type TAudioOfSource<T extends TStreamAudioSource> = {
217
+ audio: Extract<TStreamAudioSchema, {
218
+ source: T;
219
+ }>;
220
+ };
188
221
  export declare const streamCommonSchema: z.ZodObject<{
189
222
  id: z.ZodNumber;
190
223
  enabled: z.ZodBoolean;
@@ -283,6 +316,32 @@ export declare const streamCommonSchema: z.ZodObject<{
283
316
  isActive: boolean;
284
317
  }[];
285
318
  }>]>;
319
+ inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
320
+ internalVapixParameters: z.ZodObject<{
321
+ camera: z.ZodString;
322
+ resolution: z.ZodOptional<z.ZodString>;
323
+ compression: z.ZodOptional<z.ZodNumber>;
324
+ fps: z.ZodOptional<z.ZodNumber>;
325
+ videobitrate: z.ZodOptional<z.ZodNumber>;
326
+ videomaxbitrate: z.ZodOptional<z.ZodNumber>;
327
+ audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
328
+ }, "strip", z.ZodTypeAny, {
329
+ camera: string;
330
+ resolution?: string | undefined;
331
+ compression?: number | undefined;
332
+ audio?: 0 | 1 | undefined;
333
+ fps?: number | undefined;
334
+ videobitrate?: number | undefined;
335
+ videomaxbitrate?: number | undefined;
336
+ }, {
337
+ camera: string;
338
+ resolution?: string | undefined;
339
+ compression?: number | undefined;
340
+ audio?: 0 | 1 | undefined;
341
+ fps?: number | undefined;
342
+ videobitrate?: number | undefined;
343
+ videomaxbitrate?: number | undefined;
344
+ }>;
286
345
  audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
287
346
  source: z.ZodLiteral<"none">;
288
347
  }, "strip", z.ZodTypeAny, {
@@ -291,13 +350,13 @@ export declare const streamCommonSchema: z.ZodObject<{
291
350
  source: "none";
292
351
  }>, z.ZodObject<{
293
352
  source: z.ZodLiteral<"microphone">;
294
- channel: z.ZodNumber;
353
+ audioChannelNbr: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
295
354
  }, "strip", z.ZodTypeAny, {
296
- channel: number;
297
355
  source: "microphone";
356
+ audioChannelNbr: 0 | 1;
298
357
  }, {
299
- channel: number;
300
358
  source: "microphone";
359
+ audioChannelNbr: 0 | 1;
301
360
  }>, z.ZodObject<{
302
361
  source: z.ZodLiteral<"file">;
303
362
  fileName: z.ZodString;
@@ -330,8 +389,8 @@ export declare const streamCommonSchema: z.ZodObject<{
330
389
  audio: {
331
390
  source: "none";
332
391
  } | {
333
- channel: number;
334
392
  source: "microphone";
393
+ audioChannelNbr: 0 | 1;
335
394
  } | {
336
395
  source: "file";
337
396
  fileName: string;
@@ -367,12 +426,22 @@ export declare const streamCommonSchema: z.ZodObject<{
367
426
  isActive: boolean;
368
427
  }[];
369
428
  };
429
+ inputType: "RTSP_URL" | "CSw" | "CRS";
430
+ internalVapixParameters: {
431
+ camera: string;
432
+ resolution?: string | undefined;
433
+ compression?: number | undefined;
434
+ audio?: 0 | 1 | undefined;
435
+ fps?: number | undefined;
436
+ videobitrate?: number | undefined;
437
+ videomaxbitrate?: number | undefined;
438
+ };
370
439
  }, {
371
440
  audio: {
372
441
  source: "none";
373
442
  } | {
374
- channel: number;
375
443
  source: "microphone";
444
+ audioChannelNbr: 0 | 1;
376
445
  } | {
377
446
  source: "file";
378
447
  fileName: string;
@@ -408,6 +477,16 @@ export declare const streamCommonSchema: z.ZodObject<{
408
477
  isActive: boolean;
409
478
  }[];
410
479
  };
480
+ inputType: "RTSP_URL" | "CSw" | "CRS";
481
+ internalVapixParameters: {
482
+ camera: string;
483
+ resolution?: string | undefined;
484
+ compression?: number | undefined;
485
+ audio?: 0 | 1 | undefined;
486
+ fps?: number | undefined;
487
+ videobitrate?: number | undefined;
488
+ videomaxbitrate?: number | undefined;
489
+ };
411
490
  }>;
412
491
  export type TCommonStream = z.infer<typeof streamCommonSchema>;
413
492
  export {};
@@ -1,15 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.streamCommonSchema = exports.streamAudioSchema = exports.streamTriggerSchema = exports.streamTypeSchema = void 0;
3
+ exports.streamCommonSchema = exports.streamAudioSchema = exports.internalVapixParametersSchema = exports.streamInputTypeSchema = exports.streamTriggerSchema = exports.streamTypeSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const common_1 = require("../common");
5
6
  exports.streamTypeSchema = zod_1.z.union([
6
7
  zod_1.z.literal('youtube'),
7
8
  zod_1.z.literal('facebook'),
8
9
  zod_1.z.literal('sd_card'),
9
10
  zod_1.z.literal('windy'),
10
11
  zod_1.z.literal('mpeg_dvb'),
11
- zod_1.z.literal('hls'),
12
12
  zod_1.z.literal('rtmp'),
13
+ zod_1.z.literal('dailymotion'),
14
+ zod_1.z.literal('ibm'),
15
+ zod_1.z.literal('hls_pull'),
16
+ zod_1.z.literal('hls_push'),
17
+ zod_1.z.literal('wowza'),
18
+ zod_1.z.literal('microsoft_stream'),
19
+ zod_1.z.literal('microsoft_azure'),
20
+ zod_1.z.literal('vimeo'),
21
+ zod_1.z.literal('twitch'),
22
+ zod_1.z.literal('church'),
23
+ zod_1.z.literal('srt'),
24
+ zod_1.z.literal('da_cast'),
25
+ zod_1.z.literal('game_changer'),
13
26
  ]);
14
27
  const scheduleSchema = zod_1.z.object({
15
28
  start: zod_1.z.object({
@@ -33,11 +46,21 @@ exports.streamTriggerSchema = zod_1.z.discriminatedUnion('type', [
33
46
  schedule: zod_1.z.array(scheduleSchema),
34
47
  }),
35
48
  ]);
49
+ exports.streamInputTypeSchema = zod_1.z.union([zod_1.z.literal('CSw'), zod_1.z.literal('CRS'), zod_1.z.literal('RTSP_URL')]);
50
+ exports.internalVapixParametersSchema = zod_1.z.object({
51
+ camera: zod_1.z.string(),
52
+ resolution: zod_1.z.string().optional(),
53
+ compression: zod_1.z.number().optional(),
54
+ fps: zod_1.z.number().int().optional(),
55
+ videobitrate: zod_1.z.number().int().optional(),
56
+ videomaxbitrate: zod_1.z.number().int().optional(),
57
+ audio: common_1.booleanSchema.optional(),
58
+ });
36
59
  exports.streamAudioSchema = zod_1.z.discriminatedUnion('source', [
37
60
  zod_1.z.object({
38
61
  source: zod_1.z.literal('none'),
39
62
  }),
40
- zod_1.z.object({ source: zod_1.z.literal('microphone'), channel: zod_1.z.number().int().min(0) }),
63
+ zod_1.z.object({ source: zod_1.z.literal('microphone'), audioChannelNbr: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]) }),
41
64
  zod_1.z.object({
42
65
  source: zod_1.z.literal('file'),
43
66
  fileName: zod_1.z.string(),
@@ -56,5 +79,7 @@ exports.streamCommonSchema = zod_1.z.object({
56
79
  active: zod_1.z.boolean(),
57
80
  title: zod_1.z.string(),
58
81
  trigger: exports.streamTriggerSchema,
82
+ inputType: exports.streamInputTypeSchema,
83
+ internalVapixParameters: exports.internalVapixParametersSchema,
59
84
  audio: exports.streamAudioSchema,
60
85
  });