camstreamerlib 4.0.0-beta.115 → 4.0.0-beta.117

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 (115) hide show
  1. package/cjs/CamStreamerAPI.d.ts +1235 -485
  2. package/cjs/CamStreamerAPI.js +4 -4
  3. package/cjs/VapixAPI.d.ts +1 -1
  4. package/cjs/errors/errors.d.ts +2 -2
  5. package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +8759 -2681
  6. package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +39 -55
  7. package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +197 -55
  8. package/cjs/types/CamStreamerAPI/facebookSchema.js +6 -10
  9. package/cjs/types/CamStreamerAPI/index.d.ts +1 -5
  10. package/cjs/types/CamStreamerAPI/index.js +1 -5
  11. package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +39 -39
  12. package/cjs/types/CamStreamerAPI/oldStreamSchema.js +1 -1
  13. package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +238 -341
  14. package/cjs/types/CamStreamerAPI/streamCommonTypes.js +92 -75
  15. package/cjs/types/CamStreamerAPI/streamsSchema.d.ts +7585 -0
  16. package/cjs/types/CamStreamerAPI/streamsSchema.js +63 -0
  17. package/cjs/types/CamStreamerAPI/windySchema.d.ts +173 -45
  18. package/cjs/types/CamStreamerAPI/windySchema.js +1 -1
  19. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +173 -54
  20. package/cjs/types/CamStreamerAPI/youtubeSchema.js +1 -4
  21. package/cjs/types/VapixAPI.d.ts +10 -10
  22. package/cjs/types/ws/CamStreamerEvents.d.ts +33 -33
  23. package/cjs/types/ws/CamStreamerEvents.js +3 -3
  24. package/esm/CamStreamerAPI.js +4 -4
  25. package/esm/types/CamStreamerAPI/CamStreamerAPI.js +22 -38
  26. package/esm/types/CamStreamerAPI/facebookSchema.js +5 -9
  27. package/esm/types/CamStreamerAPI/index.js +1 -5
  28. package/esm/types/CamStreamerAPI/oldStreamSchema.js +1 -1
  29. package/esm/types/CamStreamerAPI/streamCommonTypes.js +91 -74
  30. package/esm/types/CamStreamerAPI/streamsSchema.js +57 -0
  31. package/esm/types/CamStreamerAPI/windySchema.js +1 -1
  32. package/esm/types/CamStreamerAPI/youtubeSchema.js +1 -4
  33. package/esm/types/ws/CamStreamerEvents.js +3 -3
  34. package/package.json +1 -1
  35. package/types/CamStreamerAPI.d.ts +1235 -485
  36. package/types/VapixAPI.d.ts +1 -1
  37. package/types/errors/errors.d.ts +2 -2
  38. package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +8759 -2681
  39. package/types/types/CamStreamerAPI/facebookSchema.d.ts +197 -55
  40. package/types/types/CamStreamerAPI/index.d.ts +1 -5
  41. package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +39 -39
  42. package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +238 -341
  43. package/types/types/CamStreamerAPI/streamsSchema.d.ts +7585 -0
  44. package/types/types/CamStreamerAPI/windySchema.d.ts +173 -45
  45. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +173 -54
  46. package/types/types/VapixAPI.d.ts +10 -10
  47. package/types/types/ws/CamStreamerEvents.d.ts +33 -33
  48. package/cjs/types/CamStreamerAPI/churchSchema.d.ts +0 -293
  49. package/cjs/types/CamStreamerAPI/churchSchema.js +0 -11
  50. package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +0 -293
  51. package/cjs/types/CamStreamerAPI/daCastSchema.js +0 -11
  52. package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +0 -293
  53. package/cjs/types/CamStreamerAPI/dailymotionSchema.js +0 -11
  54. package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +0 -312
  55. package/cjs/types/CamStreamerAPI/gameChangerSchema.js +0 -11
  56. package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +0 -293
  57. package/cjs/types/CamStreamerAPI/hlsPullSchema.js +0 -11
  58. package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +0 -293
  59. package/cjs/types/CamStreamerAPI/hlsPushSchema.js +0 -11
  60. package/cjs/types/CamStreamerAPI/ibmSchema.d.ts +0 -293
  61. package/cjs/types/CamStreamerAPI/ibmSchema.js +0 -11
  62. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +0 -293
  63. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.js +0 -11
  64. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +0 -293
  65. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.js +0 -11
  66. package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +0 -314
  67. package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +0 -18
  68. package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +0 -619
  69. package/cjs/types/CamStreamerAPI/rtmpSchema.js +0 -19
  70. package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +0 -293
  71. package/cjs/types/CamStreamerAPI/sdCardSchema.js +0 -11
  72. package/cjs/types/CamStreamerAPI/srtSchema.d.ts +0 -293
  73. package/cjs/types/CamStreamerAPI/srtSchema.js +0 -11
  74. package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +0 -293
  75. package/cjs/types/CamStreamerAPI/twitchSchema.js +0 -11
  76. package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +0 -293
  77. package/cjs/types/CamStreamerAPI/vimeoSchema.js +0 -11
  78. package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +0 -293
  79. package/cjs/types/CamStreamerAPI/wowzaSchema.js +0 -11
  80. package/cjs/types/CamStreamerAPI/youtubeRtmpSchema.d.ts +0 -312
  81. package/cjs/types/CamStreamerAPI/youtubeRtmpSchema.js +0 -11
  82. package/esm/types/CamStreamerAPI/churchSchema.js +0 -5
  83. package/esm/types/CamStreamerAPI/daCastSchema.js +0 -5
  84. package/esm/types/CamStreamerAPI/dailymotionSchema.js +0 -5
  85. package/esm/types/CamStreamerAPI/gameChangerSchema.js +0 -5
  86. package/esm/types/CamStreamerAPI/hlsPullSchema.js +0 -5
  87. package/esm/types/CamStreamerAPI/hlsPushSchema.js +0 -5
  88. package/esm/types/CamStreamerAPI/ibmSchema.js +0 -5
  89. package/esm/types/CamStreamerAPI/microsoftAzureSchema.js +0 -5
  90. package/esm/types/CamStreamerAPI/microsoftStreamSchema.js +0 -5
  91. package/esm/types/CamStreamerAPI/mpegDvbSchema.js +0 -12
  92. package/esm/types/CamStreamerAPI/rtmpSchema.js +0 -13
  93. package/esm/types/CamStreamerAPI/sdCardSchema.js +0 -5
  94. package/esm/types/CamStreamerAPI/srtSchema.js +0 -5
  95. package/esm/types/CamStreamerAPI/twitchSchema.js +0 -5
  96. package/esm/types/CamStreamerAPI/vimeoSchema.js +0 -5
  97. package/esm/types/CamStreamerAPI/wowzaSchema.js +0 -5
  98. package/esm/types/CamStreamerAPI/youtubeRtmpSchema.js +0 -5
  99. package/types/types/CamStreamerAPI/churchSchema.d.ts +0 -293
  100. package/types/types/CamStreamerAPI/daCastSchema.d.ts +0 -293
  101. package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +0 -293
  102. package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +0 -312
  103. package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +0 -293
  104. package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +0 -293
  105. package/types/types/CamStreamerAPI/ibmSchema.d.ts +0 -293
  106. package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +0 -293
  107. package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +0 -293
  108. package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +0 -314
  109. package/types/types/CamStreamerAPI/rtmpSchema.d.ts +0 -619
  110. package/types/types/CamStreamerAPI/sdCardSchema.d.ts +0 -293
  111. package/types/types/CamStreamerAPI/srtSchema.d.ts +0 -293
  112. package/types/types/CamStreamerAPI/twitchSchema.d.ts +0 -293
  113. package/types/types/CamStreamerAPI/vimeoSchema.d.ts +0 -293
  114. package/types/types/CamStreamerAPI/wowzaSchema.d.ts +0 -293
  115. package/types/types/CamStreamerAPI/youtubeRtmpSchema.d.ts +0 -312
@@ -1,329 +1,28 @@
1
1
  import { z } from 'zod';
2
- declare const scheduleSchema: z.ZodObject<{
3
- start: z.ZodObject<{
4
- day: z.ZodNumber;
5
- timeS: z.ZodNumber;
6
- }, "strip", z.ZodTypeAny, {
7
- day: number;
8
- timeS: number;
9
- }, {
10
- day: number;
11
- timeS: number;
12
- }>;
13
- stop: z.ZodObject<{
14
- day: z.ZodNumber;
15
- timeS: z.ZodNumber;
16
- }, "strip", z.ZodTypeAny, {
17
- day: number;
18
- timeS: number;
19
- }, {
20
- day: number;
21
- timeS: number;
22
- }>;
23
- isActive: z.ZodBoolean;
24
- }, "strip", z.ZodTypeAny, {
25
- start: {
26
- day: number;
27
- timeS: number;
28
- };
29
- stop: {
30
- day: number;
31
- timeS: number;
32
- };
33
- isActive: boolean;
34
- }, {
35
- start: {
36
- day: number;
37
- timeS: number;
38
- };
39
- stop: {
40
- day: number;
41
- timeS: number;
42
- };
43
- isActive: boolean;
44
- }>;
45
- export declare const streamTriggerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
46
- type: z.ZodLiteral<"manual">;
47
- ioPort: z.ZodNullable<z.ZodString>;
48
- }, "strip", z.ZodTypeAny, {
49
- type: "manual";
50
- ioPort: string | null;
51
- }, {
52
- type: "manual";
53
- ioPort: string | null;
54
- }>, z.ZodObject<{
55
- type: z.ZodLiteral<"onetime">;
56
- startTime: z.ZodNumber;
57
- stopTime: z.ZodNumber;
58
- ioPort: z.ZodNullable<z.ZodString>;
59
- }, "strip", z.ZodTypeAny, {
60
- type: "onetime";
61
- ioPort: string | null;
62
- startTime: number;
63
- stopTime: number;
64
- }, {
65
- type: "onetime";
66
- ioPort: string | null;
67
- startTime: number;
68
- stopTime: number;
69
- }>, z.ZodObject<{
70
- type: z.ZodLiteral<"recurrent">;
71
- schedule: z.ZodArray<z.ZodObject<{
72
- start: z.ZodObject<{
73
- day: z.ZodNumber;
74
- timeS: z.ZodNumber;
75
- }, "strip", z.ZodTypeAny, {
76
- day: number;
77
- timeS: number;
78
- }, {
79
- day: number;
80
- timeS: number;
81
- }>;
82
- stop: z.ZodObject<{
83
- day: z.ZodNumber;
84
- timeS: z.ZodNumber;
85
- }, "strip", z.ZodTypeAny, {
86
- day: number;
87
- timeS: number;
88
- }, {
89
- day: number;
90
- timeS: number;
91
- }>;
92
- isActive: z.ZodBoolean;
93
- }, "strip", z.ZodTypeAny, {
94
- start: {
95
- day: number;
96
- timeS: number;
97
- };
98
- stop: {
99
- day: number;
100
- timeS: number;
101
- };
102
- isActive: boolean;
103
- }, {
104
- start: {
105
- day: number;
106
- timeS: number;
107
- };
108
- stop: {
109
- day: number;
110
- timeS: number;
111
- };
112
- isActive: boolean;
113
- }>, "many">;
114
- }, "strip", z.ZodTypeAny, {
115
- type: "recurrent";
116
- schedule: {
117
- start: {
118
- day: number;
119
- timeS: number;
120
- };
121
- stop: {
122
- day: number;
123
- timeS: number;
124
- };
125
- isActive: boolean;
126
- }[];
127
- }, {
128
- type: "recurrent";
129
- schedule: {
130
- start: {
131
- day: number;
132
- timeS: number;
133
- };
134
- stop: {
135
- day: number;
136
- timeS: number;
137
- };
138
- isActive: boolean;
139
- }[];
140
- }>]>;
141
- export type TStreamTrigger = z.infer<typeof streamTriggerSchema>;
142
- export type TStreamTriggerType = TStreamTrigger['type'];
143
- export type TTriggerSchedule = z.infer<typeof scheduleSchema>;
144
- export declare const streamInputTypeSchema: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
145
- export type TStreamInputType = z.infer<typeof streamInputTypeSchema>;
146
- export declare const streamingProtocolTypeSchema: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
147
- export type TStreamingProtocolType = z.infer<typeof streamingProtocolTypeSchema>;
148
- export declare const videoCodecSchema: z.ZodUnion<[z.ZodLiteral<"h264">, z.ZodLiteral<"h265">, z.ZodLiteral<"av1">]>;
149
- export type TVideoCodec = z.infer<typeof videoCodecSchema>;
150
- export declare const overlaysSchema: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"text">, z.ZodLiteral<"image">, z.ZodLiteral<"application">, z.ZodLiteral<"">, z.ZodLiteral<"off">]>;
151
- export type TOverlays = z.infer<typeof overlaysSchema>;
152
- export declare const streamDelaySchema: z.ZodObject<{
153
- value: z.ZodNumber;
154
- unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
155
- }, "strip", z.ZodTypeAny, {
156
- value: number;
157
- unit: "seconds" | "minutes" | "hours";
158
- }, {
159
- value: number;
160
- unit: "seconds" | "minutes" | "hours";
161
- }>;
162
- export type TStreamDelay = z.infer<typeof streamDelaySchema>;
163
- export type TStreamDelayUnit = TStreamDelay['unit'];
164
- export declare const internalVapixParametersSchema: z.ZodObject<{
165
- bitrateMode: z.ZodUnion<[z.ZodLiteral<"VBR">, z.ZodLiteral<"MBR">, z.ZodLiteral<"ABR">]>;
166
- maximumBitRate: z.ZodNumber;
167
- retentionTime: z.ZodNumber;
168
- bitRateLimit: z.ZodNumber;
169
- } & {
170
- camera: z.ZodString;
171
- resolution: z.ZodString;
172
- fps: z.ZodNumber;
173
- compression: z.ZodNumber;
174
- govLength: z.ZodNumber;
175
- videoCodec: z.ZodUnion<[z.ZodLiteral<"h264">, z.ZodLiteral<"h265">, z.ZodLiteral<"av1">]>;
176
- h264Profile: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"high">, z.ZodLiteral<"main">, z.ZodLiteral<"baseline">]>>;
177
- audio: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
178
- nbrOfChannels: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
179
- overlays: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"text">, z.ZodLiteral<"image">, z.ZodLiteral<"application">, z.ZodLiteral<"">, z.ZodLiteral<"off">]>>;
180
- }, "strip", z.ZodTypeAny, {
181
- camera: string;
182
- resolution: string;
183
- compression: number;
184
- bitrateMode: "VBR" | "MBR" | "ABR";
185
- maximumBitRate: number;
186
- retentionTime: number;
187
- bitRateLimit: number;
188
- audio: 0 | 1;
189
- fps: number;
190
- govLength: number;
191
- videoCodec: "h264" | "h265" | "av1";
192
- overlays?: "" | "text" | "all" | "image" | "application" | "off" | undefined;
193
- h264Profile?: "high" | "main" | "baseline" | undefined;
194
- nbrOfChannels?: 1 | 2 | undefined;
195
- }, {
196
- camera: string;
197
- resolution: string;
198
- compression: number;
199
- bitrateMode: "VBR" | "MBR" | "ABR";
200
- maximumBitRate: number;
201
- retentionTime: number;
202
- bitRateLimit: number;
203
- audio: 0 | 1;
204
- fps: number;
205
- govLength: number;
206
- videoCodec: "h264" | "h265" | "av1";
207
- overlays?: "" | "text" | "all" | "image" | "application" | "off" | undefined;
208
- h264Profile?: "high" | "main" | "baseline" | undefined;
209
- nbrOfChannels?: 1 | 2 | undefined;
210
- }>;
211
- export type TInternalVapixParameters = z.infer<typeof internalVapixParametersSchema>;
212
- export declare const streamVideoSchema: z.ZodObject<{
213
- inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
214
- sourceUrl: z.ZodOptional<z.ZodString>;
215
- internalVapixParameters: z.ZodString;
216
- userVapixParameters: z.ZodString;
217
- streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
218
- streamDelay: z.ZodOptional<z.ZodObject<{
219
- value: z.ZodNumber;
220
- unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
221
- }, "strip", z.ZodTypeAny, {
222
- value: number;
223
- unit: "seconds" | "minutes" | "hours";
224
- }, {
225
- value: number;
226
- unit: "seconds" | "minutes" | "hours";
227
- }>>;
228
- }, "strip", z.ZodTypeAny, {
229
- inputType: "RTSP_URL" | "CSw" | "CRS";
230
- internalVapixParameters: string;
231
- userVapixParameters: string;
232
- streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
233
- sourceUrl?: string | undefined;
234
- streamDelay?: {
235
- value: number;
236
- unit: "seconds" | "minutes" | "hours";
237
- } | undefined;
238
- }, {
239
- inputType: "RTSP_URL" | "CSw" | "CRS";
240
- internalVapixParameters: string;
241
- userVapixParameters: string;
242
- streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
243
- sourceUrl?: string | undefined;
244
- streamDelay?: {
245
- value: number;
246
- unit: "seconds" | "minutes" | "hours";
247
- } | undefined;
248
- }>;
249
- export type TStreamVideo = z.infer<typeof streamVideoSchema>;
250
- export declare const streamAudioSchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
251
- source: z.ZodLiteral<"none">;
252
- }, "strip", z.ZodTypeAny, {
253
- source: "none";
254
- }, {
255
- source: "none";
256
- }>, z.ZodObject<{
257
- source: z.ZodLiteral<"microphone">;
258
- audioChannelNbr: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>;
259
- }, "strip", z.ZodTypeAny, {
260
- source: "microphone";
261
- audioChannelNbr: 1 | 2;
262
- }, {
263
- source: "microphone";
264
- audioChannelNbr: 1 | 2;
265
- }>, z.ZodObject<{
266
- source: z.ZodLiteral<"file">;
267
- fileName: z.ZodString;
268
- filePath: z.ZodString;
269
- }, "strip", z.ZodTypeAny, {
270
- source: "file";
271
- fileName: string;
272
- filePath: string;
273
- }, {
274
- source: "file";
275
- fileName: string;
276
- filePath: string;
277
- }>, z.ZodObject<{
278
- source: z.ZodLiteral<"url">;
279
- fileName: z.ZodString;
280
- fileUrl: z.ZodString;
281
- avSyncMsec: z.ZodNumber;
282
- }, "strip", z.ZodTypeAny, {
283
- source: "url";
284
- fileName: string;
285
- fileUrl: string;
286
- avSyncMsec: number;
287
- }, {
288
- source: "url";
289
- fileName: string;
290
- fileUrl: string;
291
- avSyncMsec: number;
292
- }>]>;
293
- export type TStreamAudio = z.infer<typeof streamAudioSchema>;
294
- export type TStreamAudioSource = TStreamAudio['source'];
295
- export type TAudioOfSource<T extends TStreamAudioSource> = {
296
- audio: Extract<TStreamAudio, {
297
- source: T;
298
- }>;
299
- };
300
2
  export declare const streamCommonSchema: z.ZodObject<{
301
- id: z.ZodNumber;
3
+ streamId: z.ZodString;
302
4
  enabled: z.ZodBoolean;
303
5
  active: z.ZodBoolean;
304
6
  title: z.ZodString;
305
7
  trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
306
8
  type: z.ZodLiteral<"manual">;
307
- ioPort: z.ZodNullable<z.ZodString>;
9
+ ioPort: z.ZodNullable<z.ZodNumber>;
308
10
  }, "strip", z.ZodTypeAny, {
309
11
  type: "manual";
310
- ioPort: string | null;
12
+ ioPort: number | null;
311
13
  }, {
312
14
  type: "manual";
313
- ioPort: string | null;
15
+ ioPort: number | null;
314
16
  }>, z.ZodObject<{
315
17
  type: z.ZodLiteral<"onetime">;
316
18
  startTime: z.ZodNumber;
317
19
  stopTime: z.ZodNumber;
318
- ioPort: z.ZodNullable<z.ZodString>;
319
20
  }, "strip", z.ZodTypeAny, {
320
21
  type: "onetime";
321
- ioPort: string | null;
322
22
  startTime: number;
323
23
  stopTime: number;
324
24
  }, {
325
25
  type: "onetime";
326
- ioPort: string | null;
327
26
  startTime: number;
328
27
  stopTime: number;
329
28
  }>, z.ZodObject<{
@@ -399,11 +98,57 @@ export declare const streamCommonSchema: z.ZodObject<{
399
98
  }[];
400
99
  }>]>;
401
100
  video: z.ZodObject<{
402
- inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
403
- sourceUrl: z.ZodOptional<z.ZodString>;
101
+ output: z.ZodDiscriminatedUnion<"callApi", [z.ZodObject<{
102
+ type: z.ZodUnion<[z.ZodLiteral<"video">, z.ZodLiteral<"images">]>;
103
+ callApi: z.ZodLiteral<false>;
104
+ url: z.ZodString;
105
+ }, "strip", z.ZodTypeAny, {
106
+ type: "video" | "images";
107
+ url: string;
108
+ callApi: false;
109
+ }, {
110
+ type: "video" | "images";
111
+ url: string;
112
+ callApi: false;
113
+ }>, z.ZodObject<{
114
+ type: z.ZodLiteral<"video">;
115
+ callApi: z.ZodLiteral<true>;
116
+ prepareAheadS: z.ZodNumber;
117
+ }, "strip", z.ZodTypeAny, {
118
+ type: "video";
119
+ callApi: true;
120
+ prepareAheadS: number;
121
+ }, {
122
+ type: "video";
123
+ callApi: true;
124
+ prepareAheadS: number;
125
+ }>]>;
126
+ outputParameters: z.ZodString;
127
+ input: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
128
+ type: z.ZodLiteral<"RTSP_URL">;
129
+ url: z.ZodString;
130
+ }, "strip", z.ZodTypeAny, {
131
+ type: "RTSP_URL";
132
+ url: string;
133
+ }, {
134
+ type: "RTSP_URL";
135
+ url: string;
136
+ }>, z.ZodObject<{
137
+ type: z.ZodLiteral<"CSw">;
138
+ }, "strip", z.ZodTypeAny, {
139
+ type: "CSw";
140
+ }, {
141
+ type: "CSw";
142
+ }>, z.ZodObject<{
143
+ type: z.ZodLiteral<"CRS">;
144
+ }, "strip", z.ZodTypeAny, {
145
+ type: "CRS";
146
+ }, {
147
+ type: "CRS";
148
+ }>]>;
149
+ streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
404
150
  internalVapixParameters: z.ZodString;
405
151
  userVapixParameters: z.ZodString;
406
- streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
407
152
  streamDelay: z.ZodOptional<z.ZodObject<{
408
153
  value: z.ZodNumber;
409
154
  unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
@@ -415,51 +160,83 @@ export declare const streamCommonSchema: z.ZodObject<{
415
160
  unit: "seconds" | "minutes" | "hours";
416
161
  }>>;
417
162
  }, "strip", z.ZodTypeAny, {
418
- inputType: "RTSP_URL" | "CSw" | "CRS";
163
+ output: {
164
+ type: "video" | "images";
165
+ url: string;
166
+ callApi: false;
167
+ } | {
168
+ type: "video";
169
+ callApi: true;
170
+ prepareAheadS: number;
171
+ };
172
+ outputParameters: string;
173
+ input: {
174
+ type: "RTSP_URL";
175
+ url: string;
176
+ } | {
177
+ type: "CSw";
178
+ } | {
179
+ type: "CRS";
180
+ };
181
+ streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
419
182
  internalVapixParameters: string;
420
183
  userVapixParameters: string;
421
- streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
422
- sourceUrl?: string | undefined;
423
184
  streamDelay?: {
424
185
  value: number;
425
186
  unit: "seconds" | "minutes" | "hours";
426
187
  } | undefined;
427
188
  }, {
428
- inputType: "RTSP_URL" | "CSw" | "CRS";
189
+ output: {
190
+ type: "video" | "images";
191
+ url: string;
192
+ callApi: false;
193
+ } | {
194
+ type: "video";
195
+ callApi: true;
196
+ prepareAheadS: number;
197
+ };
198
+ outputParameters: string;
199
+ input: {
200
+ type: "RTSP_URL";
201
+ url: string;
202
+ } | {
203
+ type: "CSw";
204
+ } | {
205
+ type: "CRS";
206
+ };
207
+ streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
429
208
  internalVapixParameters: string;
430
209
  userVapixParameters: string;
431
- streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
432
- sourceUrl?: string | undefined;
433
210
  streamDelay?: {
434
211
  value: number;
435
212
  unit: "seconds" | "minutes" | "hours";
436
213
  } | undefined;
437
214
  }>;
438
- audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
439
- source: z.ZodLiteral<"none">;
440
- }, "strip", z.ZodTypeAny, {
441
- source: "none";
442
- }, {
443
- source: "none";
444
- }>, z.ZodObject<{
215
+ audio: z.ZodNullable<z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
445
216
  source: z.ZodLiteral<"microphone">;
446
217
  audioChannelNbr: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>;
218
+ forceStereo: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
447
219
  }, "strip", z.ZodTypeAny, {
448
220
  source: "microphone";
449
221
  audioChannelNbr: 1 | 2;
222
+ forceStereo: 0 | 1;
450
223
  }, {
451
224
  source: "microphone";
452
225
  audioChannelNbr: 1 | 2;
226
+ forceStereo: 0 | 1;
453
227
  }>, z.ZodObject<{
454
228
  source: z.ZodLiteral<"file">;
455
229
  fileName: z.ZodString;
456
230
  filePath: z.ZodString;
231
+ forceStereo: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
457
232
  }, "strip", z.ZodTypeAny, {
458
233
  source: "file";
234
+ forceStereo: 0 | 1;
459
235
  fileName: string;
460
236
  filePath: string;
461
237
  }, {
462
238
  source: "file";
239
+ forceStereo: 0 | 1;
463
240
  fileName: string;
464
241
  filePath: string;
465
242
  }>, z.ZodObject<{
@@ -467,54 +244,87 @@ export declare const streamCommonSchema: z.ZodObject<{
467
244
  fileName: z.ZodString;
468
245
  fileUrl: z.ZodString;
469
246
  avSyncMsec: z.ZodNumber;
247
+ forceStereo: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
470
248
  }, "strip", z.ZodTypeAny, {
471
249
  source: "url";
250
+ forceStereo: 0 | 1;
472
251
  fileName: string;
473
252
  fileUrl: string;
474
253
  avSyncMsec: number;
475
254
  }, {
476
255
  source: "url";
256
+ forceStereo: 0 | 1;
477
257
  fileName: string;
478
258
  fileUrl: string;
479
259
  avSyncMsec: number;
480
- }>]>;
260
+ }>]>>;
261
+ status: z.ZodObject<{
262
+ led: z.ZodBoolean;
263
+ port: z.ZodNullable<z.ZodNumber>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ port: number | null;
266
+ led: boolean;
267
+ }, {
268
+ port: number | null;
269
+ led: boolean;
270
+ }>;
481
271
  }, "strip", z.ZodTypeAny, {
272
+ status: {
273
+ port: number | null;
274
+ led: boolean;
275
+ };
482
276
  audio: {
483
- source: "none";
484
- } | {
485
277
  source: "microphone";
486
278
  audioChannelNbr: 1 | 2;
279
+ forceStereo: 0 | 1;
487
280
  } | {
488
281
  source: "file";
282
+ forceStereo: 0 | 1;
489
283
  fileName: string;
490
284
  filePath: string;
491
285
  } | {
492
286
  source: "url";
287
+ forceStereo: 0 | 1;
493
288
  fileName: string;
494
289
  fileUrl: string;
495
290
  avSyncMsec: number;
496
- };
291
+ } | null;
497
292
  video: {
498
- inputType: "RTSP_URL" | "CSw" | "CRS";
293
+ output: {
294
+ type: "video" | "images";
295
+ url: string;
296
+ callApi: false;
297
+ } | {
298
+ type: "video";
299
+ callApi: true;
300
+ prepareAheadS: number;
301
+ };
302
+ outputParameters: string;
303
+ input: {
304
+ type: "RTSP_URL";
305
+ url: string;
306
+ } | {
307
+ type: "CSw";
308
+ } | {
309
+ type: "CRS";
310
+ };
311
+ streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
499
312
  internalVapixParameters: string;
500
313
  userVapixParameters: string;
501
- streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
502
- sourceUrl?: string | undefined;
503
314
  streamDelay?: {
504
315
  value: number;
505
316
  unit: "seconds" | "minutes" | "hours";
506
317
  } | undefined;
507
318
  };
508
319
  enabled: boolean;
509
- id: number;
320
+ streamId: string;
510
321
  active: boolean;
511
322
  title: string;
512
323
  trigger: {
513
324
  type: "manual";
514
- ioPort: string | null;
325
+ ioPort: number | null;
515
326
  } | {
516
327
  type: "onetime";
517
- ioPort: string | null;
518
328
  startTime: number;
519
329
  stopTime: number;
520
330
  } | {
@@ -532,42 +342,62 @@ export declare const streamCommonSchema: z.ZodObject<{
532
342
  }[];
533
343
  };
534
344
  }, {
345
+ status: {
346
+ port: number | null;
347
+ led: boolean;
348
+ };
535
349
  audio: {
536
- source: "none";
537
- } | {
538
350
  source: "microphone";
539
351
  audioChannelNbr: 1 | 2;
352
+ forceStereo: 0 | 1;
540
353
  } | {
541
354
  source: "file";
355
+ forceStereo: 0 | 1;
542
356
  fileName: string;
543
357
  filePath: string;
544
358
  } | {
545
359
  source: "url";
360
+ forceStereo: 0 | 1;
546
361
  fileName: string;
547
362
  fileUrl: string;
548
363
  avSyncMsec: number;
549
- };
364
+ } | null;
550
365
  video: {
551
- inputType: "RTSP_URL" | "CSw" | "CRS";
366
+ output: {
367
+ type: "video" | "images";
368
+ url: string;
369
+ callApi: false;
370
+ } | {
371
+ type: "video";
372
+ callApi: true;
373
+ prepareAheadS: number;
374
+ };
375
+ outputParameters: string;
376
+ input: {
377
+ type: "RTSP_URL";
378
+ url: string;
379
+ } | {
380
+ type: "CSw";
381
+ } | {
382
+ type: "CRS";
383
+ };
384
+ streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
552
385
  internalVapixParameters: string;
553
386
  userVapixParameters: string;
554
- streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
555
- sourceUrl?: string | undefined;
556
387
  streamDelay?: {
557
388
  value: number;
558
389
  unit: "seconds" | "minutes" | "hours";
559
390
  } | undefined;
560
391
  };
561
392
  enabled: boolean;
562
- id: number;
393
+ streamId: string;
563
394
  active: boolean;
564
395
  title: string;
565
396
  trigger: {
566
397
  type: "manual";
567
- ioPort: string | null;
398
+ ioPort: number | null;
568
399
  } | {
569
400
  type: "onetime";
570
- ioPort: string | null;
571
401
  startTime: number;
572
402
  stopTime: number;
573
403
  } | {
@@ -586,4 +416,71 @@ export declare const streamCommonSchema: z.ZodObject<{
586
416
  };
587
417
  }>;
588
418
  export type TCommonStream = z.infer<typeof streamCommonSchema>;
589
- export {};
419
+ export type TStreamAudio = TCommonStream['audio'];
420
+ export type TStreamAudioSource = NonNullable<TStreamAudio>['source'];
421
+ export type TAudioOfSource<T extends TStreamAudioSource> = {
422
+ audio: Extract<TStreamAudio, {
423
+ source: T;
424
+ }>;
425
+ };
426
+ export type TStreamTrigger = TCommonStream['trigger'];
427
+ export type TStreamTriggerType = TStreamTrigger['type'];
428
+ export type TTriggerSchedule = Extract<TStreamTrigger, {
429
+ type: 'recurrent';
430
+ }>['schedule'];
431
+ export type TStreamVideo = TCommonStream['video'];
432
+ export type TStreamInputType = TStreamVideo['input']['type'];
433
+ export type TStreamOutputType = TStreamVideo['output']['type'];
434
+ export type TStreamingProtocolType = TStreamVideo['streamingProtocol'];
435
+ export type TStreamDelay = TStreamVideo['streamDelay'];
436
+ export type TStreamDelayUnit = NonNullable<TStreamDelay>['unit'];
437
+ export declare const internalVapixParametersSchema: z.ZodObject<{
438
+ bitrateMode: z.ZodUnion<[z.ZodLiteral<"VBR">, z.ZodLiteral<"MBR">, z.ZodLiteral<"ABR">]>;
439
+ maximumBitRate: z.ZodNumber;
440
+ retentionTime: z.ZodNumber;
441
+ bitRateLimit: z.ZodNumber;
442
+ } & {
443
+ camera: z.ZodString;
444
+ resolution: z.ZodString;
445
+ fps: z.ZodNumber;
446
+ compression: z.ZodNumber;
447
+ govLength: z.ZodNumber;
448
+ videoCodec: z.ZodUnion<[z.ZodLiteral<"h264">, z.ZodLiteral<"h265">, z.ZodLiteral<"av1">]>;
449
+ h264Profile: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"high">, z.ZodLiteral<"main">, z.ZodLiteral<"baseline">]>>;
450
+ audio: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
451
+ nbrOfChannels: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
452
+ overlays: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"text">, z.ZodLiteral<"image">, z.ZodLiteral<"application">, z.ZodLiteral<"">, z.ZodLiteral<"off">]>>;
453
+ }, "strip", z.ZodTypeAny, {
454
+ camera: string;
455
+ resolution: string;
456
+ compression: number;
457
+ bitrateMode: "VBR" | "MBR" | "ABR";
458
+ maximumBitRate: number;
459
+ retentionTime: number;
460
+ bitRateLimit: number;
461
+ audio: 0 | 1;
462
+ fps: number;
463
+ govLength: number;
464
+ videoCodec: "h264" | "h265" | "av1";
465
+ overlays?: "" | "text" | "all" | "image" | "application" | "off" | undefined;
466
+ h264Profile?: "high" | "main" | "baseline" | undefined;
467
+ nbrOfChannels?: 1 | 2 | undefined;
468
+ }, {
469
+ camera: string;
470
+ resolution: string;
471
+ compression: number;
472
+ bitrateMode: "VBR" | "MBR" | "ABR";
473
+ maximumBitRate: number;
474
+ retentionTime: number;
475
+ bitRateLimit: number;
476
+ audio: 0 | 1;
477
+ fps: number;
478
+ govLength: number;
479
+ videoCodec: "h264" | "h265" | "av1";
480
+ overlays?: "" | "text" | "all" | "image" | "application" | "off" | undefined;
481
+ h264Profile?: "high" | "main" | "baseline" | undefined;
482
+ nbrOfChannels?: 1 | 2 | undefined;
483
+ }>;
484
+ export type TInternalVapixParameters = z.infer<typeof internalVapixParametersSchema>;
485
+ export type TVideoCodec = TInternalVapixParameters['videoCodec'];
486
+ export type TOverlays = TInternalVapixParameters['overlays'];