camstreamerlib 4.0.37 → 5.0.0-54e362c

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 (102) hide show
  1. package/README.md +21 -2
  2. package/cjs/CamOverlayAPI.d.ts +223 -208
  3. package/cjs/CamStreamerAPI.d.ts +330 -311
  4. package/cjs/CamStreamerAPI.js +1 -1
  5. package/cjs/CamSwitcherAPI.d.ts +31 -30
  6. package/cjs/CamSwitcherAPI.js +2 -0
  7. package/cjs/PlaneTrackerAPI.d.ts +101 -41
  8. package/cjs/VapixAPI.d.ts +31 -17
  9. package/cjs/VapixAPI.js +1 -1
  10. package/cjs/internal/versionCompare.d.ts +2 -2
  11. package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +477 -3812
  12. package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +2 -2
  13. package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +12 -67
  14. package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +40 -572
  15. package/cjs/types/CamOverlayAPI/htmlOverlaySchema.d.ts +6 -59
  16. package/cjs/types/CamOverlayAPI/htmlOverlaySchema.js +1 -1
  17. package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +6 -75
  18. package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +11 -74
  19. package/cjs/types/CamOverlayAPI/pipSchema.d.ts +12 -97
  20. package/cjs/types/CamOverlayAPI/pipSchema.js +2 -2
  21. package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +12 -71
  22. package/cjs/types/CamOverlayAPI/ptzCompassSchema.js +1 -1
  23. package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +8 -99
  24. package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +20 -254
  25. package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +5 -43
  26. package/cjs/types/CamOverlayAPI/serviceCommonTypes.d.ts +15 -94
  27. package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +5 -43
  28. package/cjs/types/CamScripterAPI.d.ts +11 -81
  29. package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +1409 -22709
  30. package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +32 -509
  31. package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +8 -143
  32. package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +32 -493
  33. package/cjs/types/CamStreamerAPI/streamsSchema.d.ts +425 -7786
  34. package/cjs/types/CamStreamerAPI/windySchema.d.ts +36 -476
  35. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +32 -487
  36. package/cjs/types/CamStreamerAPI/youtubeSchema.js +1 -1
  37. package/cjs/types/CamSwitcherAPI.d.ts +75 -700
  38. package/cjs/types/CamSwitcherAPI.js +1 -0
  39. package/cjs/types/GenetecAgent.d.ts +12 -132
  40. package/cjs/types/MilestoneAgent.d.ts +4 -46
  41. package/cjs/types/PlaneTrackerAPI.d.ts +265 -1205
  42. package/cjs/types/PlaneTrackerAPI.js +5 -5
  43. package/cjs/types/VapixAPI.d.ts +129 -1653
  44. package/cjs/types/VapixAPI.js +1 -1
  45. package/cjs/types/common.d.ts +11 -35
  46. package/cjs/types/common.js +1 -1
  47. package/cjs/types/ws/CamOverlayEvents.d.ts +9 -69
  48. package/cjs/types/ws/CamStreamerEvents.d.ts +19 -217
  49. package/cjs/types/ws/CamSwitcherEvents.d.ts +46 -452
  50. package/cjs/types/ws/PlaneTrackerEvents.d.ts +361 -3522
  51. package/cjs/types/ws/PlaneTrackerEvents.js +1 -1
  52. package/esm/CamStreamerAPI.js +1 -1
  53. package/esm/CamSwitcherAPI.js +2 -0
  54. package/esm/VapixAPI.js +1 -1
  55. package/esm/types/CamOverlayAPI/CamOverlayAPI.js +2 -2
  56. package/esm/types/CamOverlayAPI/htmlOverlaySchema.js +1 -1
  57. package/esm/types/CamOverlayAPI/pipSchema.js +2 -2
  58. package/esm/types/CamOverlayAPI/ptzCompassSchema.js +1 -1
  59. package/esm/types/CamStreamerAPI/youtubeSchema.js +1 -1
  60. package/esm/types/CamSwitcherAPI.js +1 -0
  61. package/esm/types/PlaneTrackerAPI.js +5 -5
  62. package/esm/types/VapixAPI.js +1 -1
  63. package/esm/types/common.js +1 -1
  64. package/esm/types/ws/PlaneTrackerEvents.js +1 -1
  65. package/package.json +107 -107
  66. package/types/CamOverlayAPI.d.ts +223 -208
  67. package/types/CamStreamerAPI.d.ts +330 -311
  68. package/types/CamSwitcherAPI.d.ts +31 -30
  69. package/types/PlaneTrackerAPI.d.ts +101 -41
  70. package/types/VapixAPI.d.ts +31 -17
  71. package/types/internal/versionCompare.d.ts +2 -2
  72. package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +477 -3812
  73. package/types/types/CamOverlayAPI/accuweatherSchema.d.ts +12 -67
  74. package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +40 -572
  75. package/types/types/CamOverlayAPI/htmlOverlaySchema.d.ts +6 -59
  76. package/types/types/CamOverlayAPI/imagesSchema.d.ts +6 -75
  77. package/types/types/CamOverlayAPI/infotickerSchema.d.ts +11 -74
  78. package/types/types/CamOverlayAPI/pipSchema.d.ts +12 -97
  79. package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +12 -71
  80. package/types/types/CamOverlayAPI/ptzSchema.d.ts +8 -99
  81. package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +20 -254
  82. package/types/types/CamOverlayAPI/screenSharingSchema.d.ts +5 -43
  83. package/types/types/CamOverlayAPI/serviceCommonTypes.d.ts +15 -94
  84. package/types/types/CamOverlayAPI/webCameraSharingSchema.d.ts +5 -43
  85. package/types/types/CamScripterAPI.d.ts +11 -81
  86. package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +1409 -22709
  87. package/types/types/CamStreamerAPI/facebookSchema.d.ts +32 -509
  88. package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +8 -143
  89. package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +32 -493
  90. package/types/types/CamStreamerAPI/streamsSchema.d.ts +425 -7786
  91. package/types/types/CamStreamerAPI/windySchema.d.ts +36 -476
  92. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +32 -487
  93. package/types/types/CamSwitcherAPI.d.ts +75 -700
  94. package/types/types/GenetecAgent.d.ts +12 -132
  95. package/types/types/MilestoneAgent.d.ts +4 -46
  96. package/types/types/PlaneTrackerAPI.d.ts +265 -1205
  97. package/types/types/VapixAPI.d.ts +129 -1653
  98. package/types/types/common.d.ts +11 -35
  99. package/types/types/ws/CamOverlayEvents.d.ts +9 -69
  100. package/types/types/ws/CamStreamerEvents.d.ts +19 -217
  101. package/types/types/ws/CamSwitcherEvents.d.ts +46 -452
  102. package/types/types/ws/PlaneTrackerEvents.d.ts +361 -3522
@@ -5,553 +5,98 @@ export declare const youtubeSchema: z.ZodObject<{
5
5
  active: z.ZodBoolean;
6
6
  title: z.ZodString;
7
7
  callApi: z.ZodBoolean;
8
- trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
9
9
  type: z.ZodLiteral<"manual">;
10
10
  port: z.ZodOptional<z.ZodNumber>;
11
- }, "strip", z.ZodTypeAny, {
12
- type: "manual";
13
- port?: number | undefined;
14
- }, {
15
- type: "manual";
16
- port?: number | undefined;
17
- }>, z.ZodObject<{
11
+ }, z.core.$strip>, z.ZodObject<{
18
12
  type: z.ZodLiteral<"onetime">;
19
13
  startTime: z.ZodNumber;
20
14
  stopTime: z.ZodNumber;
21
15
  everActivated: z.ZodBoolean;
22
16
  prepareAheadS: z.ZodOptional<z.ZodNumber>;
23
- }, "strip", z.ZodTypeAny, {
24
- type: "onetime";
25
- startTime: number;
26
- stopTime: number;
27
- everActivated: boolean;
28
- prepareAheadS?: number | undefined;
29
- }, {
30
- type: "onetime";
31
- startTime: number;
32
- stopTime: number;
33
- everActivated: boolean;
34
- prepareAheadS?: number | undefined;
35
- }>, z.ZodObject<{
17
+ }, z.core.$strip>, z.ZodObject<{
36
18
  type: z.ZodLiteral<"recurrent">;
37
19
  schedule: z.ZodArray<z.ZodObject<{
38
20
  start: z.ZodObject<{
39
21
  day: z.ZodNumber;
40
22
  timeS: z.ZodNumber;
41
- }, "strip", z.ZodTypeAny, {
42
- day: number;
43
- timeS: number;
44
- }, {
45
- day: number;
46
- timeS: number;
47
- }>;
23
+ }, z.core.$strip>;
48
24
  stop: z.ZodObject<{
49
25
  day: z.ZodNumber;
50
26
  timeS: z.ZodNumber;
51
- }, "strip", z.ZodTypeAny, {
52
- day: number;
53
- timeS: number;
54
- }, {
55
- day: number;
56
- timeS: number;
57
- }>;
27
+ }, z.core.$strip>;
58
28
  isActive: z.ZodBoolean;
59
- }, "strip", z.ZodTypeAny, {
60
- start: {
61
- day: number;
62
- timeS: number;
63
- };
64
- stop: {
65
- day: number;
66
- timeS: number;
67
- };
68
- isActive: boolean;
69
- }, {
70
- start: {
71
- day: number;
72
- timeS: number;
73
- };
74
- stop: {
75
- day: number;
76
- timeS: number;
77
- };
78
- isActive: boolean;
79
- }>, "many">;
29
+ }, z.core.$strip>>;
80
30
  prepareAheadS: z.ZodOptional<z.ZodNumber>;
81
- }, "strip", z.ZodTypeAny, {
82
- type: "recurrent";
83
- schedule: {
84
- start: {
85
- day: number;
86
- timeS: number;
87
- };
88
- stop: {
89
- day: number;
90
- timeS: number;
91
- };
92
- isActive: boolean;
93
- }[];
94
- prepareAheadS?: number | undefined;
95
- }, {
96
- type: "recurrent";
97
- schedule: {
98
- start: {
99
- day: number;
100
- timeS: number;
101
- };
102
- stop: {
103
- day: number;
104
- timeS: number;
105
- };
106
- isActive: boolean;
107
- }[];
108
- prepareAheadS?: number | undefined;
109
- }>]>;
31
+ }, z.core.$strip>], "type">;
110
32
  video: z.ZodObject<{
111
- output: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
33
+ output: z.ZodDiscriminatedUnion<[z.ZodObject<{
112
34
  type: z.ZodLiteral<"video">;
113
35
  url: z.ZodNullable<z.ZodString>;
114
36
  parameters: z.ZodString;
115
37
  saveToSdCard: z.ZodOptional<z.ZodObject<{
116
38
  ruleId: z.ZodString;
117
39
  configurationId: z.ZodString;
118
- }, "strip", z.ZodTypeAny, {
119
- ruleId: string;
120
- configurationId: string;
121
- }, {
122
- ruleId: string;
123
- configurationId: string;
124
- }>>;
125
- }, "strip", z.ZodTypeAny, {
126
- type: "video";
127
- url: string | null;
128
- parameters: string;
129
- saveToSdCard?: {
130
- ruleId: string;
131
- configurationId: string;
132
- } | undefined;
133
- }, {
134
- type: "video";
135
- url: string | null;
136
- parameters: string;
137
- saveToSdCard?: {
138
- ruleId: string;
139
- configurationId: string;
140
- } | undefined;
141
- }>, z.ZodObject<{
40
+ }, z.core.$strip>>;
41
+ }, z.core.$strip>, z.ZodObject<{
142
42
  type: z.ZodLiteral<"images">;
143
43
  url: z.ZodNullable<z.ZodString>;
144
44
  imageIntervalS: z.ZodNumber;
145
- }, "strip", z.ZodTypeAny, {
146
- type: "images";
147
- url: string | null;
148
- imageIntervalS: number;
149
- }, {
150
- type: "images";
151
- url: string | null;
152
- imageIntervalS: number;
153
- }>, z.ZodObject<{
45
+ }, z.core.$strip>, z.ZodObject<{
154
46
  type: z.ZodLiteral<"none">;
155
47
  saveToSdCard: z.ZodObject<{
156
48
  ruleId: z.ZodString;
157
49
  configurationId: z.ZodString;
158
- }, "strip", z.ZodTypeAny, {
159
- ruleId: string;
160
- configurationId: string;
161
- }, {
162
- ruleId: string;
163
- configurationId: string;
164
- }>;
165
- }, "strip", z.ZodTypeAny, {
166
- type: "none";
167
- saveToSdCard: {
168
- ruleId: string;
169
- configurationId: string;
170
- };
171
- }, {
172
- type: "none";
173
- saveToSdCard: {
174
- ruleId: string;
175
- configurationId: string;
176
- };
177
- }>]>;
178
- input: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
50
+ }, z.core.$strip>;
51
+ }, z.core.$strip>], "type">;
52
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
179
53
  type: z.ZodLiteral<"RTSP_URL">;
180
54
  url: z.ZodString;
181
55
  internalVapixParameters: z.ZodString;
182
- }, "strip", z.ZodTypeAny, {
183
- type: "RTSP_URL";
184
- url: string;
185
- internalVapixParameters: string;
186
- }, {
187
- type: "RTSP_URL";
188
- url: string;
189
- internalVapixParameters: string;
190
- }>, z.ZodObject<{
56
+ }, z.core.$strip>, z.ZodObject<{
191
57
  type: z.ZodLiteral<"CSw">;
192
58
  internalVapixParameters: z.ZodString;
193
- }, "strip", z.ZodTypeAny, {
194
- type: "CSw";
195
- internalVapixParameters: string;
196
- }, {
197
- type: "CSw";
198
- internalVapixParameters: string;
199
- }>, z.ZodObject<{
59
+ }, z.core.$strip>, z.ZodObject<{
200
60
  type: z.ZodLiteral<"CRS">;
201
61
  internalVapixParameters: z.ZodString;
202
62
  userVapixParameters: z.ZodString;
203
- }, "strip", z.ZodTypeAny, {
204
- type: "CRS";
205
- internalVapixParameters: string;
206
- userVapixParameters: string;
207
- }, {
208
- type: "CRS";
209
- internalVapixParameters: string;
210
- userVapixParameters: string;
211
- }>]>;
63
+ }, z.core.$strip>], "type">;
212
64
  delayS: z.ZodOptional<z.ZodNumber>;
213
- }, "strip", z.ZodTypeAny, {
214
- output: {
215
- type: "video";
216
- url: string | null;
217
- parameters: string;
218
- saveToSdCard?: {
219
- ruleId: string;
220
- configurationId: string;
221
- } | undefined;
222
- } | {
223
- type: "images";
224
- url: string | null;
225
- imageIntervalS: number;
226
- } | {
227
- type: "none";
228
- saveToSdCard: {
229
- ruleId: string;
230
- configurationId: string;
231
- };
232
- };
233
- input: {
234
- type: "RTSP_URL";
235
- url: string;
236
- internalVapixParameters: string;
237
- } | {
238
- type: "CSw";
239
- internalVapixParameters: string;
240
- } | {
241
- type: "CRS";
242
- internalVapixParameters: string;
243
- userVapixParameters: string;
244
- };
245
- delayS?: number | undefined;
246
- }, {
247
- output: {
248
- type: "video";
249
- url: string | null;
250
- parameters: string;
251
- saveToSdCard?: {
252
- ruleId: string;
253
- configurationId: string;
254
- } | undefined;
255
- } | {
256
- type: "images";
257
- url: string | null;
258
- imageIntervalS: number;
259
- } | {
260
- type: "none";
261
- saveToSdCard: {
262
- ruleId: string;
263
- configurationId: string;
264
- };
265
- };
266
- input: {
267
- type: "RTSP_URL";
268
- url: string;
269
- internalVapixParameters: string;
270
- } | {
271
- type: "CSw";
272
- internalVapixParameters: string;
273
- } | {
274
- type: "CRS";
275
- internalVapixParameters: string;
276
- userVapixParameters: string;
277
- };
278
- delayS?: number | undefined;
279
- }>;
280
- audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
65
+ }, z.core.$strip>;
66
+ audio: z.ZodDiscriminatedUnion<[z.ZodObject<{
281
67
  source: z.ZodLiteral<"none">;
282
- }, "strip", z.ZodTypeAny, {
283
- source: "none";
284
- }, {
285
- source: "none";
286
- }>, z.ZodObject<{
68
+ }, z.core.$strip>, z.ZodObject<{
287
69
  source: z.ZodLiteral<"microphone">;
288
70
  audioChannelNbr: z.ZodNumber;
289
71
  forceStereo: z.ZodBoolean;
290
- }, "strip", z.ZodTypeAny, {
291
- source: "microphone";
292
- audioChannelNbr: number;
293
- forceStereo: boolean;
294
- }, {
295
- source: "microphone";
296
- audioChannelNbr: number;
297
- forceStereo: boolean;
298
- }>, z.ZodObject<{
72
+ }, z.core.$strip>, z.ZodObject<{
299
73
  source: z.ZodLiteral<"file">;
300
74
  name: z.ZodString;
301
75
  path: z.ZodString;
302
76
  forceStereo: z.ZodBoolean;
303
77
  loadAsNone: z.ZodOptional<z.ZodBoolean>;
304
- }, "strip", z.ZodTypeAny, {
305
- path: string;
306
- name: string;
307
- source: "file";
308
- forceStereo: boolean;
309
- loadAsNone?: boolean | undefined;
310
- }, {
311
- path: string;
312
- name: string;
313
- source: "file";
314
- forceStereo: boolean;
315
- loadAsNone?: boolean | undefined;
316
- }>, z.ZodObject<{
78
+ }, z.core.$strip>, z.ZodObject<{
317
79
  source: z.ZodLiteral<"url">;
318
80
  name: z.ZodString;
319
81
  url: z.ZodString;
320
82
  avSyncMsec: z.ZodNumber;
321
83
  forceStereo: z.ZodBoolean;
322
- }, "strip", z.ZodTypeAny, {
323
- name: string;
324
- url: string;
325
- source: "url";
326
- forceStereo: boolean;
327
- avSyncMsec: number;
328
- }, {
329
- name: string;
330
- url: string;
331
- source: "url";
332
- forceStereo: boolean;
333
- avSyncMsec: number;
334
- }>]>;
84
+ }, z.core.$strip>], "source">;
335
85
  status: z.ZodObject<{
336
86
  led: z.ZodBoolean;
337
87
  port: z.ZodOptional<z.ZodNumber>;
338
- }, "strip", z.ZodTypeAny, {
339
- led: boolean;
340
- port?: number | undefined;
341
- }, {
342
- led: boolean;
343
- port?: number | undefined;
344
- }>;
345
- } & {
88
+ }, z.core.$strip>;
346
89
  platform: z.ZodLiteral<"youtube">;
347
90
  description: z.ZodOptional<z.ZodString>;
348
- playlists: z.ZodArray<z.ZodString, "many">;
349
- tags: z.ZodArray<z.ZodString, "many">;
350
- notificationEmails: z.ZodArray<z.ZodString, "many">;
351
- streamPrivacy: z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"unlisted">, z.ZodLiteral<"private">]>;
352
- latency: z.ZodUnion<[z.ZodLiteral<"normal">, z.ZodLiteral<"low">, z.ZodLiteral<"ultra_low">]>;
353
- afterEndStatus: z.ZodUnion<[z.ZodLiteral<"no_change">, z.ZodLiteral<"public">, z.ZodLiteral<"unlisted">, z.ZodLiteral<"private">]>;
91
+ playlists: z.ZodArray<z.ZodString>;
92
+ tags: z.ZodArray<z.ZodString>;
93
+ notificationEmails: z.ZodArray<z.ZodEmail>;
94
+ streamPrivacy: z.ZodUnion<readonly [z.ZodLiteral<"public">, z.ZodLiteral<"unlisted">, z.ZodLiteral<"private">]>;
95
+ latency: z.ZodUnion<readonly [z.ZodLiteral<"normal">, z.ZodLiteral<"low">, z.ZodLiteral<"ultra_low">]>;
96
+ afterEndStatus: z.ZodUnion<readonly [z.ZodLiteral<"no_change">, z.ZodLiteral<"public">, z.ZodLiteral<"unlisted">, z.ZodLiteral<"private">]>;
354
97
  dvr: z.ZodBoolean;
355
98
  hasWatchdogs: z.ZodBoolean;
356
99
  countdown: z.ZodOptional<z.ZodBoolean>;
357
- streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS">]>;
358
- }, "strip", z.ZodTypeAny, {
359
- status: {
360
- led: boolean;
361
- port?: number | undefined;
362
- };
363
- streamId: string;
364
- enabled: boolean;
365
- active: boolean;
366
- title: string;
367
- callApi: boolean;
368
- trigger: {
369
- type: "manual";
370
- port?: number | undefined;
371
- } | {
372
- type: "onetime";
373
- startTime: number;
374
- stopTime: number;
375
- everActivated: boolean;
376
- prepareAheadS?: number | undefined;
377
- } | {
378
- type: "recurrent";
379
- schedule: {
380
- start: {
381
- day: number;
382
- timeS: number;
383
- };
384
- stop: {
385
- day: number;
386
- timeS: number;
387
- };
388
- isActive: boolean;
389
- }[];
390
- prepareAheadS?: number | undefined;
391
- };
392
- video: {
393
- output: {
394
- type: "video";
395
- url: string | null;
396
- parameters: string;
397
- saveToSdCard?: {
398
- ruleId: string;
399
- configurationId: string;
400
- } | undefined;
401
- } | {
402
- type: "images";
403
- url: string | null;
404
- imageIntervalS: number;
405
- } | {
406
- type: "none";
407
- saveToSdCard: {
408
- ruleId: string;
409
- configurationId: string;
410
- };
411
- };
412
- input: {
413
- type: "RTSP_URL";
414
- url: string;
415
- internalVapixParameters: string;
416
- } | {
417
- type: "CSw";
418
- internalVapixParameters: string;
419
- } | {
420
- type: "CRS";
421
- internalVapixParameters: string;
422
- userVapixParameters: string;
423
- };
424
- delayS?: number | undefined;
425
- };
426
- audio: {
427
- source: "none";
428
- } | {
429
- source: "microphone";
430
- audioChannelNbr: number;
431
- forceStereo: boolean;
432
- } | {
433
- path: string;
434
- name: string;
435
- source: "file";
436
- forceStereo: boolean;
437
- loadAsNone?: boolean | undefined;
438
- } | {
439
- name: string;
440
- url: string;
441
- source: "url";
442
- forceStereo: boolean;
443
- avSyncMsec: number;
444
- };
445
- streamPrivacy: "public" | "unlisted" | "private";
446
- platform: "youtube";
447
- playlists: string[];
448
- tags: string[];
449
- notificationEmails: string[];
450
- latency: "normal" | "low" | "ultra_low";
451
- afterEndStatus: "public" | "unlisted" | "private" | "no_change";
452
- dvr: boolean;
453
- hasWatchdogs: boolean;
454
- streamingProtocol: "RTMP" | "RTMPS" | "HLS";
455
- description?: string | undefined;
456
- countdown?: boolean | undefined;
457
- }, {
458
- status: {
459
- led: boolean;
460
- port?: number | undefined;
461
- };
462
- streamId: string;
463
- enabled: boolean;
464
- active: boolean;
465
- title: string;
466
- callApi: boolean;
467
- trigger: {
468
- type: "manual";
469
- port?: number | undefined;
470
- } | {
471
- type: "onetime";
472
- startTime: number;
473
- stopTime: number;
474
- everActivated: boolean;
475
- prepareAheadS?: number | undefined;
476
- } | {
477
- type: "recurrent";
478
- schedule: {
479
- start: {
480
- day: number;
481
- timeS: number;
482
- };
483
- stop: {
484
- day: number;
485
- timeS: number;
486
- };
487
- isActive: boolean;
488
- }[];
489
- prepareAheadS?: number | undefined;
490
- };
491
- video: {
492
- output: {
493
- type: "video";
494
- url: string | null;
495
- parameters: string;
496
- saveToSdCard?: {
497
- ruleId: string;
498
- configurationId: string;
499
- } | undefined;
500
- } | {
501
- type: "images";
502
- url: string | null;
503
- imageIntervalS: number;
504
- } | {
505
- type: "none";
506
- saveToSdCard: {
507
- ruleId: string;
508
- configurationId: string;
509
- };
510
- };
511
- input: {
512
- type: "RTSP_URL";
513
- url: string;
514
- internalVapixParameters: string;
515
- } | {
516
- type: "CSw";
517
- internalVapixParameters: string;
518
- } | {
519
- type: "CRS";
520
- internalVapixParameters: string;
521
- userVapixParameters: string;
522
- };
523
- delayS?: number | undefined;
524
- };
525
- audio: {
526
- source: "none";
527
- } | {
528
- source: "microphone";
529
- audioChannelNbr: number;
530
- forceStereo: boolean;
531
- } | {
532
- path: string;
533
- name: string;
534
- source: "file";
535
- forceStereo: boolean;
536
- loadAsNone?: boolean | undefined;
537
- } | {
538
- name: string;
539
- url: string;
540
- source: "url";
541
- forceStereo: boolean;
542
- avSyncMsec: number;
543
- };
544
- streamPrivacy: "public" | "unlisted" | "private";
545
- platform: "youtube";
546
- playlists: string[];
547
- tags: string[];
548
- notificationEmails: string[];
549
- latency: "normal" | "low" | "ultra_low";
550
- afterEndStatus: "public" | "unlisted" | "private" | "no_change";
551
- dvr: boolean;
552
- hasWatchdogs: boolean;
553
- streamingProtocol: "RTMP" | "RTMPS" | "HLS";
554
- description?: string | undefined;
555
- countdown?: boolean | undefined;
556
- }>;
100
+ streamingProtocol: z.ZodUnion<readonly [z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS">]>;
101
+ }, z.core.$strip>;
557
102
  export type TYouTubeStreamingProtocolType = z.infer<typeof youtubeSchema>['streamingProtocol'];