camstreamerlib 4.0.0-beta.114 → 4.0.0-beta.116

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 +1155 -503
  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 +8086 -2769
  6. package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +39 -55
  7. package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +183 -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 +224 -341
  14. package/cjs/types/CamStreamerAPI/streamCommonTypes.js +89 -75
  15. package/cjs/types/CamStreamerAPI/streamsSchema.d.ts +7333 -0
  16. package/cjs/types/CamStreamerAPI/streamsSchema.js +63 -0
  17. package/cjs/types/CamStreamerAPI/windySchema.d.ts +159 -45
  18. package/cjs/types/CamStreamerAPI/windySchema.js +1 -1
  19. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +159 -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 +88 -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 +1155 -503
  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 +8086 -2769
  39. package/types/types/CamStreamerAPI/facebookSchema.d.ts +183 -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 +224 -341
  43. package/types/types/CamStreamerAPI/streamsSchema.d.ts +7333 -0
  44. package/types/types/CamStreamerAPI/windySchema.d.ts +159 -45
  45. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +159 -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 -341
  67. package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +0 -27
  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 -21
  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 -341
  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,51 @@ 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.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">]>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ type: "CSw" | "CRS";
140
+ }, {
141
+ type: "CSw" | "CRS";
142
+ }>]>;
143
+ streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
404
144
  internalVapixParameters: z.ZodString;
405
145
  userVapixParameters: z.ZodString;
406
- streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>;
407
146
  streamDelay: z.ZodOptional<z.ZodObject<{
408
147
  value: z.ZodNumber;
409
148
  unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>;
@@ -415,51 +154,79 @@ export declare const streamCommonSchema: z.ZodObject<{
415
154
  unit: "seconds" | "minutes" | "hours";
416
155
  }>>;
417
156
  }, "strip", z.ZodTypeAny, {
418
- inputType: "RTSP_URL" | "CSw" | "CRS";
157
+ output: {
158
+ type: "video" | "images";
159
+ url: string;
160
+ callApi: false;
161
+ } | {
162
+ type: "video";
163
+ callApi: true;
164
+ prepareAheadS: number;
165
+ };
166
+ outputParameters: string;
167
+ input: {
168
+ type: "RTSP_URL";
169
+ url: string;
170
+ } | {
171
+ type: "CSw" | "CRS";
172
+ };
173
+ streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
419
174
  internalVapixParameters: string;
420
175
  userVapixParameters: string;
421
- streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
422
- sourceUrl?: string | undefined;
423
176
  streamDelay?: {
424
177
  value: number;
425
178
  unit: "seconds" | "minutes" | "hours";
426
179
  } | undefined;
427
180
  }, {
428
- inputType: "RTSP_URL" | "CSw" | "CRS";
181
+ output: {
182
+ type: "video" | "images";
183
+ url: string;
184
+ callApi: false;
185
+ } | {
186
+ type: "video";
187
+ callApi: true;
188
+ prepareAheadS: number;
189
+ };
190
+ outputParameters: string;
191
+ input: {
192
+ type: "RTSP_URL";
193
+ url: string;
194
+ } | {
195
+ type: "CSw" | "CRS";
196
+ };
197
+ streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
429
198
  internalVapixParameters: string;
430
199
  userVapixParameters: string;
431
- streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
432
- sourceUrl?: string | undefined;
433
200
  streamDelay?: {
434
201
  value: number;
435
202
  unit: "seconds" | "minutes" | "hours";
436
203
  } | undefined;
437
204
  }>;
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<{
205
+ audio: z.ZodNullable<z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
445
206
  source: z.ZodLiteral<"microphone">;
446
207
  audioChannelNbr: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>;
208
+ forceStereo: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
447
209
  }, "strip", z.ZodTypeAny, {
448
210
  source: "microphone";
449
211
  audioChannelNbr: 1 | 2;
212
+ forceStereo: 0 | 1;
450
213
  }, {
451
214
  source: "microphone";
452
215
  audioChannelNbr: 1 | 2;
216
+ forceStereo: 0 | 1;
453
217
  }>, z.ZodObject<{
454
218
  source: z.ZodLiteral<"file">;
455
219
  fileName: z.ZodString;
456
220
  filePath: z.ZodString;
221
+ forceStereo: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
457
222
  }, "strip", z.ZodTypeAny, {
458
223
  source: "file";
224
+ forceStereo: 0 | 1;
459
225
  fileName: string;
460
226
  filePath: string;
461
227
  }, {
462
228
  source: "file";
229
+ forceStereo: 0 | 1;
463
230
  fileName: string;
464
231
  filePath: string;
465
232
  }>, z.ZodObject<{
@@ -467,54 +234,85 @@ export declare const streamCommonSchema: z.ZodObject<{
467
234
  fileName: z.ZodString;
468
235
  fileUrl: z.ZodString;
469
236
  avSyncMsec: z.ZodNumber;
237
+ forceStereo: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
470
238
  }, "strip", z.ZodTypeAny, {
471
239
  source: "url";
240
+ forceStereo: 0 | 1;
472
241
  fileName: string;
473
242
  fileUrl: string;
474
243
  avSyncMsec: number;
475
244
  }, {
476
245
  source: "url";
246
+ forceStereo: 0 | 1;
477
247
  fileName: string;
478
248
  fileUrl: string;
479
249
  avSyncMsec: number;
480
- }>]>;
250
+ }>]>>;
251
+ status: z.ZodObject<{
252
+ led: z.ZodBoolean;
253
+ port: z.ZodNullable<z.ZodNumber>;
254
+ }, "strip", z.ZodTypeAny, {
255
+ port: number | null;
256
+ led: boolean;
257
+ }, {
258
+ port: number | null;
259
+ led: boolean;
260
+ }>;
481
261
  }, "strip", z.ZodTypeAny, {
262
+ status: {
263
+ port: number | null;
264
+ led: boolean;
265
+ };
482
266
  audio: {
483
- source: "none";
484
- } | {
485
267
  source: "microphone";
486
268
  audioChannelNbr: 1 | 2;
269
+ forceStereo: 0 | 1;
487
270
  } | {
488
271
  source: "file";
272
+ forceStereo: 0 | 1;
489
273
  fileName: string;
490
274
  filePath: string;
491
275
  } | {
492
276
  source: "url";
277
+ forceStereo: 0 | 1;
493
278
  fileName: string;
494
279
  fileUrl: string;
495
280
  avSyncMsec: number;
496
- };
281
+ } | null;
497
282
  video: {
498
- inputType: "RTSP_URL" | "CSw" | "CRS";
283
+ output: {
284
+ type: "video" | "images";
285
+ url: string;
286
+ callApi: false;
287
+ } | {
288
+ type: "video";
289
+ callApi: true;
290
+ prepareAheadS: number;
291
+ };
292
+ outputParameters: string;
293
+ input: {
294
+ type: "RTSP_URL";
295
+ url: string;
296
+ } | {
297
+ type: "CSw" | "CRS";
298
+ };
299
+ streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
499
300
  internalVapixParameters: string;
500
301
  userVapixParameters: string;
501
- streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
502
- sourceUrl?: string | undefined;
503
302
  streamDelay?: {
504
303
  value: number;
505
304
  unit: "seconds" | "minutes" | "hours";
506
305
  } | undefined;
507
306
  };
508
307
  enabled: boolean;
509
- id: number;
308
+ streamId: string;
510
309
  active: boolean;
511
310
  title: string;
512
311
  trigger: {
513
312
  type: "manual";
514
- ioPort: string | null;
313
+ ioPort: number | null;
515
314
  } | {
516
315
  type: "onetime";
517
- ioPort: string | null;
518
316
  startTime: number;
519
317
  stopTime: number;
520
318
  } | {
@@ -532,42 +330,60 @@ export declare const streamCommonSchema: z.ZodObject<{
532
330
  }[];
533
331
  };
534
332
  }, {
333
+ status: {
334
+ port: number | null;
335
+ led: boolean;
336
+ };
535
337
  audio: {
536
- source: "none";
537
- } | {
538
338
  source: "microphone";
539
339
  audioChannelNbr: 1 | 2;
340
+ forceStereo: 0 | 1;
540
341
  } | {
541
342
  source: "file";
343
+ forceStereo: 0 | 1;
542
344
  fileName: string;
543
345
  filePath: string;
544
346
  } | {
545
347
  source: "url";
348
+ forceStereo: 0 | 1;
546
349
  fileName: string;
547
350
  fileUrl: string;
548
351
  avSyncMsec: number;
549
- };
352
+ } | null;
550
353
  video: {
551
- inputType: "RTSP_URL" | "CSw" | "CRS";
354
+ output: {
355
+ type: "video" | "images";
356
+ url: string;
357
+ callApi: false;
358
+ } | {
359
+ type: "video";
360
+ callApi: true;
361
+ prepareAheadS: number;
362
+ };
363
+ outputParameters: string;
364
+ input: {
365
+ type: "RTSP_URL";
366
+ url: string;
367
+ } | {
368
+ type: "CSw" | "CRS";
369
+ };
370
+ streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
552
371
  internalVapixParameters: string;
553
372
  userVapixParameters: string;
554
- streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH";
555
- sourceUrl?: string | undefined;
556
373
  streamDelay?: {
557
374
  value: number;
558
375
  unit: "seconds" | "minutes" | "hours";
559
376
  } | undefined;
560
377
  };
561
378
  enabled: boolean;
562
- id: number;
379
+ streamId: string;
563
380
  active: boolean;
564
381
  title: string;
565
382
  trigger: {
566
383
  type: "manual";
567
- ioPort: string | null;
384
+ ioPort: number | null;
568
385
  } | {
569
386
  type: "onetime";
570
- ioPort: string | null;
571
387
  startTime: number;
572
388
  stopTime: number;
573
389
  } | {
@@ -586,4 +402,71 @@ export declare const streamCommonSchema: z.ZodObject<{
586
402
  };
587
403
  }>;
588
404
  export type TCommonStream = z.infer<typeof streamCommonSchema>;
589
- export {};
405
+ export type TStreamAudio = TCommonStream['audio'];
406
+ export type TStreamAudioSource = NonNullable<TStreamAudio>['source'];
407
+ export type TAudioOfSource<T extends TStreamAudioSource> = {
408
+ audio: Extract<TStreamAudio, {
409
+ source: T;
410
+ }>;
411
+ };
412
+ export type TStreamTrigger = TCommonStream['trigger'];
413
+ export type TStreamTriggerType = TStreamTrigger['type'];
414
+ export type TTriggerSchedule = Extract<TStreamTrigger, {
415
+ type: 'recurrent';
416
+ }>['schedule'];
417
+ export type TStreamVideo = TCommonStream['video'];
418
+ export type TStreamInputType = TStreamVideo['input']['type'];
419
+ export type TStreamOutputType = TStreamVideo['output']['type'];
420
+ export type TStreamingProtocolType = TStreamVideo['streamingProtocol'];
421
+ export type TStreamDelay = TStreamVideo['streamDelay'];
422
+ export type TStreamDelayUnit = NonNullable<TStreamDelay>['unit'];
423
+ export declare const internalVapixParametersSchema: z.ZodObject<{
424
+ bitrateMode: z.ZodUnion<[z.ZodLiteral<"VBR">, z.ZodLiteral<"MBR">, z.ZodLiteral<"ABR">]>;
425
+ maximumBitRate: z.ZodNumber;
426
+ retentionTime: z.ZodNumber;
427
+ bitRateLimit: z.ZodNumber;
428
+ } & {
429
+ camera: z.ZodString;
430
+ resolution: z.ZodString;
431
+ fps: z.ZodNumber;
432
+ compression: z.ZodNumber;
433
+ govLength: z.ZodNumber;
434
+ videoCodec: z.ZodUnion<[z.ZodLiteral<"h264">, z.ZodLiteral<"h265">, z.ZodLiteral<"av1">]>;
435
+ h264Profile: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"high">, z.ZodLiteral<"main">, z.ZodLiteral<"baseline">]>>;
436
+ audio: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
437
+ nbrOfChannels: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
438
+ overlays: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"text">, z.ZodLiteral<"image">, z.ZodLiteral<"application">, z.ZodLiteral<"">, z.ZodLiteral<"off">]>>;
439
+ }, "strip", z.ZodTypeAny, {
440
+ camera: string;
441
+ resolution: string;
442
+ compression: number;
443
+ bitrateMode: "VBR" | "MBR" | "ABR";
444
+ maximumBitRate: number;
445
+ retentionTime: number;
446
+ bitRateLimit: number;
447
+ audio: 0 | 1;
448
+ fps: number;
449
+ govLength: number;
450
+ videoCodec: "h264" | "h265" | "av1";
451
+ overlays?: "" | "text" | "all" | "image" | "application" | "off" | undefined;
452
+ h264Profile?: "high" | "main" | "baseline" | undefined;
453
+ nbrOfChannels?: 1 | 2 | undefined;
454
+ }, {
455
+ camera: string;
456
+ resolution: string;
457
+ compression: number;
458
+ bitrateMode: "VBR" | "MBR" | "ABR";
459
+ maximumBitRate: number;
460
+ retentionTime: number;
461
+ bitRateLimit: number;
462
+ audio: 0 | 1;
463
+ fps: number;
464
+ govLength: number;
465
+ videoCodec: "h264" | "h265" | "av1";
466
+ overlays?: "" | "text" | "all" | "image" | "application" | "off" | undefined;
467
+ h264Profile?: "high" | "main" | "baseline" | undefined;
468
+ nbrOfChannels?: 1 | 2 | undefined;
469
+ }>;
470
+ export type TInternalVapixParameters = z.infer<typeof internalVapixParametersSchema>;
471
+ export type TVideoCodec = TInternalVapixParameters['videoCodec'];
472
+ export type TOverlays = TInternalVapixParameters['overlays'];