camstreamerlib 4.0.0-beta.63 → 4.0.0-beta.65

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 (75) hide show
  1. package/README.md +1 -0
  2. package/cjs/CamOverlayAPI.d.ts +867 -0
  3. package/cjs/CamScripterAPI.d.ts +46 -0
  4. package/cjs/CamStreamerAPI.d.ts +64 -0
  5. package/cjs/CamSwitcherAPI.d.ts +167 -0
  6. package/cjs/PlaneTrackerAPI.d.ts +229 -0
  7. package/cjs/VapixAPI.d.ts +118 -0
  8. package/cjs/bin/CreatePackage.d.ts +1 -0
  9. package/cjs/errors/errors.d.ts +91 -0
  10. package/cjs/index.d.ts +27 -0
  11. package/cjs/internal/ProxyClient.d.ts +10 -0
  12. package/cjs/internal/WsEvents.d.ts +37 -0
  13. package/cjs/internal/constants.d.ts +1 -0
  14. package/cjs/internal/transformers.d.ts +5 -0
  15. package/cjs/internal/types.d.ts +47 -0
  16. package/cjs/internal/utils.d.ts +13 -0
  17. package/cjs/internal/versionCompare.d.ts +6 -0
  18. package/cjs/node/CamOverlayDrawingAPI.d.ts +41 -0
  19. package/cjs/node/CamOverlayPainter/Frame.d.ts +67 -0
  20. package/cjs/node/CamOverlayPainter/Painter.d.ts +32 -0
  21. package/cjs/node/CamOverlayPainter/ResourceManager.d.ts +15 -0
  22. package/cjs/node/CamScripterAPICameraEventsGenerator.d.ts +31 -0
  23. package/cjs/node/DefaultClient.d.ts +16 -0
  24. package/cjs/node/Digest.d.ts +4 -0
  25. package/cjs/node/Digest.test.d.ts +1 -0
  26. package/cjs/node/HttpRequestSender.d.ts +29 -0
  27. package/cjs/node/HttpServer.d.ts +21 -0
  28. package/cjs/node/TimeZoneDaemon.d.ts +6 -0
  29. package/cjs/node/TimeZoneDaemon.js +29 -0
  30. package/cjs/node/VapixEvents.d.ts +16 -0
  31. package/cjs/node/WsClient.d.ts +30 -0
  32. package/cjs/node/events/AxisCameraStationEvents.d.ts +12 -0
  33. package/cjs/node/events/GenetecAgent.d.ts +16 -0
  34. package/cjs/node/index.d.ts +17 -0
  35. package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +4330 -0
  36. package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +84 -0
  37. package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +700 -0
  38. package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +95 -0
  39. package/cjs/types/CamOverlayAPI/index.d.ts +11 -0
  40. package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +96 -0
  41. package/cjs/types/CamOverlayAPI/pipSchema.d.ts +125 -0
  42. package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +96 -0
  43. package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +118 -0
  44. package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +357 -0
  45. package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +58 -0
  46. package/cjs/types/CamOverlayAPI/serviceCommonTypes.d.ts +145 -0
  47. package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +58 -0
  48. package/cjs/types/CamOverlayDrawingAPI.d.ts +48 -0
  49. package/cjs/types/CamOverlayPainter.d.ts +76 -0
  50. package/cjs/types/CamScripterAPI.d.ts +130 -0
  51. package/cjs/types/CamScripterAPICameraEventsGenerator.d.ts +45 -0
  52. package/cjs/types/CamStreamerAPI.d.ts +272 -0
  53. package/cjs/types/CamSwitcherAPI.d.ts +893 -0
  54. package/cjs/types/GenetecAgent.d.ts +174 -0
  55. package/cjs/types/PlaneTrackerAPI.d.ts +926 -0
  56. package/cjs/types/PlaneTrackerAPI.js +4 -1
  57. package/cjs/types/VapixAPI.d.ts +1865 -0
  58. package/cjs/types/VapixEvents.d.ts +15 -0
  59. package/cjs/types/common.d.ts +49 -0
  60. package/cjs/types/ws/CamOverlayEvents.d.ts +88 -0
  61. package/cjs/types/ws/CamStreamerEvents.d.ts +249 -0
  62. package/cjs/types/ws/CamSwitcherEvents.d.ts +568 -0
  63. package/cjs/types/ws/PlaneTrackerEvents.d.ts +1637 -0
  64. package/cjs/web/DefaultClient.d.ts +8 -0
  65. package/cjs/web/WsClient.d.ts +17 -0
  66. package/cjs/web/index.d.ts +2 -0
  67. package/cjs/ws/CamOverlayEvents.d.ts +8 -0
  68. package/cjs/ws/CamStreamerEvents.d.ts +8 -0
  69. package/cjs/ws/CamSwitcherEvents.d.ts +8 -0
  70. package/cjs/ws/PlaneTrackerEvents.d.ts +9 -0
  71. package/esm/node/TimeZoneDaemon.js +25 -0
  72. package/esm/types/PlaneTrackerAPI.js +3 -0
  73. package/package.json +1 -1
  74. package/types/node/TimeZoneDaemon.d.ts +6 -0
  75. package/types/types/PlaneTrackerAPI.d.ts +8 -0
@@ -0,0 +1,568 @@
1
+ import { z } from 'zod';
2
+ declare const cswEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3
+ type: z.ZodLiteral<"authorization">;
4
+ state: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ type: "authorization";
7
+ state: string;
8
+ }, {
9
+ type: "authorization";
10
+ state: string;
11
+ }>, z.ZodObject<{
12
+ type: z.ZodLiteral<"PlaylistSwitch">;
13
+ playlist_name: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ type: "PlaylistSwitch";
16
+ playlist_name: string;
17
+ }, {
18
+ type: "PlaylistSwitch";
19
+ playlist_name: string;
20
+ }>, z.ZodObject<{
21
+ type: z.ZodLiteral<"StreamAvailable">;
22
+ stream_name: z.ZodString;
23
+ state: z.ZodBoolean;
24
+ }, "strip", z.ZodTypeAny, {
25
+ type: "StreamAvailable";
26
+ stream_name: string;
27
+ state: boolean;
28
+ }, {
29
+ type: "StreamAvailable";
30
+ stream_name: string;
31
+ state: boolean;
32
+ }>, z.ZodObject<{
33
+ type: z.ZodLiteral<"StreamSwitchAudio">;
34
+ stream_name: z.ZodOptional<z.ZodString>;
35
+ clip_name: z.ZodOptional<z.ZodString>;
36
+ master_audio: z.ZodBoolean;
37
+ }, "strip", z.ZodTypeAny, {
38
+ type: "StreamSwitchAudio";
39
+ master_audio: boolean;
40
+ stream_name?: string | undefined;
41
+ clip_name?: string | undefined;
42
+ }, {
43
+ type: "StreamSwitchAudio";
44
+ master_audio: boolean;
45
+ stream_name?: string | undefined;
46
+ clip_name?: string | undefined;
47
+ }>, z.ZodObject<{
48
+ type: z.ZodLiteral<"StreamSwitchVideoError">;
49
+ playlist_name: z.ZodString;
50
+ playlist_active_stream: z.ZodNumber;
51
+ stream_name: z.ZodOptional<z.ZodString>;
52
+ clip_name: z.ZodOptional<z.ZodString>;
53
+ info: z.ZodString;
54
+ }, "strip", z.ZodTypeAny, {
55
+ type: "StreamSwitchVideoError";
56
+ playlist_name: string;
57
+ playlist_active_stream: number;
58
+ info: string;
59
+ stream_name?: string | undefined;
60
+ clip_name?: string | undefined;
61
+ }, {
62
+ type: "StreamSwitchVideoError";
63
+ playlist_name: string;
64
+ playlist_active_stream: number;
65
+ info: string;
66
+ stream_name?: string | undefined;
67
+ clip_name?: string | undefined;
68
+ }>, z.ZodObject<{
69
+ type: z.ZodLiteral<"StreamSwitchAudioError">;
70
+ stream_name: z.ZodOptional<z.ZodString>;
71
+ clip_name: z.ZodOptional<z.ZodString>;
72
+ master_audio: z.ZodBoolean;
73
+ }, "strip", z.ZodTypeAny, {
74
+ type: "StreamSwitchAudioError";
75
+ master_audio: boolean;
76
+ stream_name?: string | undefined;
77
+ clip_name?: string | undefined;
78
+ }, {
79
+ type: "StreamSwitchAudioError";
80
+ master_audio: boolean;
81
+ stream_name?: string | undefined;
82
+ clip_name?: string | undefined;
83
+ }>, z.ZodObject<{
84
+ type: z.ZodLiteral<"StreamSwitchVideo">;
85
+ playlist_active_stream: z.ZodNumber;
86
+ stream_name: z.ZodOptional<z.ZodString>;
87
+ playlist_name: z.ZodOptional<z.ZodString>;
88
+ clip_name: z.ZodOptional<z.ZodString>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ type: "StreamSwitchVideo";
91
+ playlist_active_stream: number;
92
+ stream_name?: string | undefined;
93
+ clip_name?: string | undefined;
94
+ playlist_name?: string | undefined;
95
+ }, {
96
+ type: "StreamSwitchVideo";
97
+ playlist_active_stream: number;
98
+ stream_name?: string | undefined;
99
+ clip_name?: string | undefined;
100
+ playlist_name?: string | undefined;
101
+ }>, z.ZodObject<{
102
+ type: z.ZodLiteral<"PlaylistQueueChange">;
103
+ queue: z.ZodArray<z.ZodString, "many">;
104
+ }, "strip", z.ZodTypeAny, {
105
+ type: "PlaylistQueueChange";
106
+ queue: string[];
107
+ }, {
108
+ type: "PlaylistQueueChange";
109
+ queue: string[];
110
+ }>, z.ZodObject<{
111
+ type: z.ZodLiteral<"ClipUpload">;
112
+ clip_name: z.ZodOptional<z.ZodString>;
113
+ }, "strip", z.ZodTypeAny, {
114
+ type: "ClipUpload";
115
+ clip_name?: string | undefined;
116
+ }, {
117
+ type: "ClipUpload";
118
+ clip_name?: string | undefined;
119
+ }>, z.ZodObject<{
120
+ type: z.ZodLiteral<"SwitcherStop">;
121
+ default_playlist_id: z.ZodOptional<z.ZodString>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ type: "SwitcherStop";
124
+ default_playlist_id?: string | undefined;
125
+ }, {
126
+ type: "SwitcherStop";
127
+ default_playlist_id?: string | undefined;
128
+ }>, z.ZodObject<{
129
+ type: z.ZodLiteral<"SwitcherStart">;
130
+ default_playlist_id: z.ZodOptional<z.ZodString>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ type: "SwitcherStart";
133
+ default_playlist_id?: string | undefined;
134
+ }, {
135
+ type: "SwitcherStart";
136
+ default_playlist_id?: string | undefined;
137
+ }>, z.ZodObject<{
138
+ type: z.ZodLiteral<"MediaServerStarted">;
139
+ }, "strip", z.ZodTypeAny, {
140
+ type: "MediaServerStarted";
141
+ }, {
142
+ type: "MediaServerStarted";
143
+ }>, z.ZodObject<{
144
+ type: z.ZodLiteral<"ClipRemove">;
145
+ clip_name: z.ZodString;
146
+ }, "strip", z.ZodTypeAny, {
147
+ type: "ClipRemove";
148
+ clip_name: string;
149
+ }, {
150
+ type: "ClipRemove";
151
+ clip_name: string;
152
+ }>]>;
153
+ export declare const cswEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
154
+ type: z.ZodLiteral<"init">;
155
+ data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
156
+ type: z.ZodLiteral<"authorization">;
157
+ state: z.ZodString;
158
+ }, "strip", z.ZodTypeAny, {
159
+ type: "authorization";
160
+ state: string;
161
+ }, {
162
+ type: "authorization";
163
+ state: string;
164
+ }>, z.ZodObject<{
165
+ type: z.ZodLiteral<"PlaylistSwitch">;
166
+ playlist_name: z.ZodString;
167
+ }, "strip", z.ZodTypeAny, {
168
+ type: "PlaylistSwitch";
169
+ playlist_name: string;
170
+ }, {
171
+ type: "PlaylistSwitch";
172
+ playlist_name: string;
173
+ }>, z.ZodObject<{
174
+ type: z.ZodLiteral<"StreamAvailable">;
175
+ stream_name: z.ZodString;
176
+ state: z.ZodBoolean;
177
+ }, "strip", z.ZodTypeAny, {
178
+ type: "StreamAvailable";
179
+ stream_name: string;
180
+ state: boolean;
181
+ }, {
182
+ type: "StreamAvailable";
183
+ stream_name: string;
184
+ state: boolean;
185
+ }>, z.ZodObject<{
186
+ type: z.ZodLiteral<"StreamSwitchAudio">;
187
+ stream_name: z.ZodOptional<z.ZodString>;
188
+ clip_name: z.ZodOptional<z.ZodString>;
189
+ master_audio: z.ZodBoolean;
190
+ }, "strip", z.ZodTypeAny, {
191
+ type: "StreamSwitchAudio";
192
+ master_audio: boolean;
193
+ stream_name?: string | undefined;
194
+ clip_name?: string | undefined;
195
+ }, {
196
+ type: "StreamSwitchAudio";
197
+ master_audio: boolean;
198
+ stream_name?: string | undefined;
199
+ clip_name?: string | undefined;
200
+ }>, z.ZodObject<{
201
+ type: z.ZodLiteral<"StreamSwitchVideoError">;
202
+ playlist_name: z.ZodString;
203
+ playlist_active_stream: z.ZodNumber;
204
+ stream_name: z.ZodOptional<z.ZodString>;
205
+ clip_name: z.ZodOptional<z.ZodString>;
206
+ info: z.ZodString;
207
+ }, "strip", z.ZodTypeAny, {
208
+ type: "StreamSwitchVideoError";
209
+ playlist_name: string;
210
+ playlist_active_stream: number;
211
+ info: string;
212
+ stream_name?: string | undefined;
213
+ clip_name?: string | undefined;
214
+ }, {
215
+ type: "StreamSwitchVideoError";
216
+ playlist_name: string;
217
+ playlist_active_stream: number;
218
+ info: string;
219
+ stream_name?: string | undefined;
220
+ clip_name?: string | undefined;
221
+ }>, z.ZodObject<{
222
+ type: z.ZodLiteral<"StreamSwitchAudioError">;
223
+ stream_name: z.ZodOptional<z.ZodString>;
224
+ clip_name: z.ZodOptional<z.ZodString>;
225
+ master_audio: z.ZodBoolean;
226
+ }, "strip", z.ZodTypeAny, {
227
+ type: "StreamSwitchAudioError";
228
+ master_audio: boolean;
229
+ stream_name?: string | undefined;
230
+ clip_name?: string | undefined;
231
+ }, {
232
+ type: "StreamSwitchAudioError";
233
+ master_audio: boolean;
234
+ stream_name?: string | undefined;
235
+ clip_name?: string | undefined;
236
+ }>, z.ZodObject<{
237
+ type: z.ZodLiteral<"StreamSwitchVideo">;
238
+ playlist_active_stream: z.ZodNumber;
239
+ stream_name: z.ZodOptional<z.ZodString>;
240
+ playlist_name: z.ZodOptional<z.ZodString>;
241
+ clip_name: z.ZodOptional<z.ZodString>;
242
+ }, "strip", z.ZodTypeAny, {
243
+ type: "StreamSwitchVideo";
244
+ playlist_active_stream: number;
245
+ stream_name?: string | undefined;
246
+ clip_name?: string | undefined;
247
+ playlist_name?: string | undefined;
248
+ }, {
249
+ type: "StreamSwitchVideo";
250
+ playlist_active_stream: number;
251
+ stream_name?: string | undefined;
252
+ clip_name?: string | undefined;
253
+ playlist_name?: string | undefined;
254
+ }>, z.ZodObject<{
255
+ type: z.ZodLiteral<"PlaylistQueueChange">;
256
+ queue: z.ZodArray<z.ZodString, "many">;
257
+ }, "strip", z.ZodTypeAny, {
258
+ type: "PlaylistQueueChange";
259
+ queue: string[];
260
+ }, {
261
+ type: "PlaylistQueueChange";
262
+ queue: string[];
263
+ }>, z.ZodObject<{
264
+ type: z.ZodLiteral<"ClipUpload">;
265
+ clip_name: z.ZodOptional<z.ZodString>;
266
+ }, "strip", z.ZodTypeAny, {
267
+ type: "ClipUpload";
268
+ clip_name?: string | undefined;
269
+ }, {
270
+ type: "ClipUpload";
271
+ clip_name?: string | undefined;
272
+ }>, z.ZodObject<{
273
+ type: z.ZodLiteral<"SwitcherStop">;
274
+ default_playlist_id: z.ZodOptional<z.ZodString>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ type: "SwitcherStop";
277
+ default_playlist_id?: string | undefined;
278
+ }, {
279
+ type: "SwitcherStop";
280
+ default_playlist_id?: string | undefined;
281
+ }>, z.ZodObject<{
282
+ type: z.ZodLiteral<"SwitcherStart">;
283
+ default_playlist_id: z.ZodOptional<z.ZodString>;
284
+ }, "strip", z.ZodTypeAny, {
285
+ type: "SwitcherStart";
286
+ default_playlist_id?: string | undefined;
287
+ }, {
288
+ type: "SwitcherStart";
289
+ default_playlist_id?: string | undefined;
290
+ }>, z.ZodObject<{
291
+ type: z.ZodLiteral<"MediaServerStarted">;
292
+ }, "strip", z.ZodTypeAny, {
293
+ type: "MediaServerStarted";
294
+ }, {
295
+ type: "MediaServerStarted";
296
+ }>, z.ZodObject<{
297
+ type: z.ZodLiteral<"ClipRemove">;
298
+ clip_name: z.ZodString;
299
+ }, "strip", z.ZodTypeAny, {
300
+ type: "ClipRemove";
301
+ clip_name: string;
302
+ }, {
303
+ type: "ClipRemove";
304
+ clip_name: string;
305
+ }>]>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ type: "init";
308
+ data: {
309
+ type: "authorization";
310
+ state: string;
311
+ } | {
312
+ type: "PlaylistSwitch";
313
+ playlist_name: string;
314
+ } | {
315
+ type: "StreamAvailable";
316
+ stream_name: string;
317
+ state: boolean;
318
+ } | {
319
+ type: "StreamSwitchAudio";
320
+ master_audio: boolean;
321
+ stream_name?: string | undefined;
322
+ clip_name?: string | undefined;
323
+ } | {
324
+ type: "StreamSwitchVideoError";
325
+ playlist_name: string;
326
+ playlist_active_stream: number;
327
+ info: string;
328
+ stream_name?: string | undefined;
329
+ clip_name?: string | undefined;
330
+ } | {
331
+ type: "StreamSwitchAudioError";
332
+ master_audio: boolean;
333
+ stream_name?: string | undefined;
334
+ clip_name?: string | undefined;
335
+ } | {
336
+ type: "StreamSwitchVideo";
337
+ playlist_active_stream: number;
338
+ stream_name?: string | undefined;
339
+ clip_name?: string | undefined;
340
+ playlist_name?: string | undefined;
341
+ } | {
342
+ type: "PlaylistQueueChange";
343
+ queue: string[];
344
+ } | {
345
+ type: "ClipUpload";
346
+ clip_name?: string | undefined;
347
+ } | {
348
+ type: "SwitcherStop";
349
+ default_playlist_id?: string | undefined;
350
+ } | {
351
+ type: "SwitcherStart";
352
+ default_playlist_id?: string | undefined;
353
+ } | {
354
+ type: "MediaServerStarted";
355
+ } | {
356
+ type: "ClipRemove";
357
+ clip_name: string;
358
+ };
359
+ }, {
360
+ type: "init";
361
+ data: {
362
+ type: "authorization";
363
+ state: string;
364
+ } | {
365
+ type: "PlaylistSwitch";
366
+ playlist_name: string;
367
+ } | {
368
+ type: "StreamAvailable";
369
+ stream_name: string;
370
+ state: boolean;
371
+ } | {
372
+ type: "StreamSwitchAudio";
373
+ master_audio: boolean;
374
+ stream_name?: string | undefined;
375
+ clip_name?: string | undefined;
376
+ } | {
377
+ type: "StreamSwitchVideoError";
378
+ playlist_name: string;
379
+ playlist_active_stream: number;
380
+ info: string;
381
+ stream_name?: string | undefined;
382
+ clip_name?: string | undefined;
383
+ } | {
384
+ type: "StreamSwitchAudioError";
385
+ master_audio: boolean;
386
+ stream_name?: string | undefined;
387
+ clip_name?: string | undefined;
388
+ } | {
389
+ type: "StreamSwitchVideo";
390
+ playlist_active_stream: number;
391
+ stream_name?: string | undefined;
392
+ clip_name?: string | undefined;
393
+ playlist_name?: string | undefined;
394
+ } | {
395
+ type: "PlaylistQueueChange";
396
+ queue: string[];
397
+ } | {
398
+ type: "ClipUpload";
399
+ clip_name?: string | undefined;
400
+ } | {
401
+ type: "SwitcherStop";
402
+ default_playlist_id?: string | undefined;
403
+ } | {
404
+ type: "SwitcherStart";
405
+ default_playlist_id?: string | undefined;
406
+ } | {
407
+ type: "MediaServerStarted";
408
+ } | {
409
+ type: "ClipRemove";
410
+ clip_name: string;
411
+ };
412
+ }>, z.ZodObject<{
413
+ type: z.ZodLiteral<"authorization">;
414
+ state: z.ZodString;
415
+ }, "strip", z.ZodTypeAny, {
416
+ type: "authorization";
417
+ state: string;
418
+ }, {
419
+ type: "authorization";
420
+ state: string;
421
+ }>, z.ZodObject<{
422
+ type: z.ZodLiteral<"PlaylistSwitch">;
423
+ playlist_name: z.ZodString;
424
+ }, "strip", z.ZodTypeAny, {
425
+ type: "PlaylistSwitch";
426
+ playlist_name: string;
427
+ }, {
428
+ type: "PlaylistSwitch";
429
+ playlist_name: string;
430
+ }>, z.ZodObject<{
431
+ type: z.ZodLiteral<"StreamAvailable">;
432
+ stream_name: z.ZodString;
433
+ state: z.ZodBoolean;
434
+ }, "strip", z.ZodTypeAny, {
435
+ type: "StreamAvailable";
436
+ stream_name: string;
437
+ state: boolean;
438
+ }, {
439
+ type: "StreamAvailable";
440
+ stream_name: string;
441
+ state: boolean;
442
+ }>, z.ZodObject<{
443
+ type: z.ZodLiteral<"StreamSwitchAudio">;
444
+ stream_name: z.ZodOptional<z.ZodString>;
445
+ clip_name: z.ZodOptional<z.ZodString>;
446
+ master_audio: z.ZodBoolean;
447
+ }, "strip", z.ZodTypeAny, {
448
+ type: "StreamSwitchAudio";
449
+ master_audio: boolean;
450
+ stream_name?: string | undefined;
451
+ clip_name?: string | undefined;
452
+ }, {
453
+ type: "StreamSwitchAudio";
454
+ master_audio: boolean;
455
+ stream_name?: string | undefined;
456
+ clip_name?: string | undefined;
457
+ }>, z.ZodObject<{
458
+ type: z.ZodLiteral<"StreamSwitchVideoError">;
459
+ playlist_name: z.ZodString;
460
+ playlist_active_stream: z.ZodNumber;
461
+ stream_name: z.ZodOptional<z.ZodString>;
462
+ clip_name: z.ZodOptional<z.ZodString>;
463
+ info: z.ZodString;
464
+ }, "strip", z.ZodTypeAny, {
465
+ type: "StreamSwitchVideoError";
466
+ playlist_name: string;
467
+ playlist_active_stream: number;
468
+ info: string;
469
+ stream_name?: string | undefined;
470
+ clip_name?: string | undefined;
471
+ }, {
472
+ type: "StreamSwitchVideoError";
473
+ playlist_name: string;
474
+ playlist_active_stream: number;
475
+ info: string;
476
+ stream_name?: string | undefined;
477
+ clip_name?: string | undefined;
478
+ }>, z.ZodObject<{
479
+ type: z.ZodLiteral<"StreamSwitchAudioError">;
480
+ stream_name: z.ZodOptional<z.ZodString>;
481
+ clip_name: z.ZodOptional<z.ZodString>;
482
+ master_audio: z.ZodBoolean;
483
+ }, "strip", z.ZodTypeAny, {
484
+ type: "StreamSwitchAudioError";
485
+ master_audio: boolean;
486
+ stream_name?: string | undefined;
487
+ clip_name?: string | undefined;
488
+ }, {
489
+ type: "StreamSwitchAudioError";
490
+ master_audio: boolean;
491
+ stream_name?: string | undefined;
492
+ clip_name?: string | undefined;
493
+ }>, z.ZodObject<{
494
+ type: z.ZodLiteral<"StreamSwitchVideo">;
495
+ playlist_active_stream: z.ZodNumber;
496
+ stream_name: z.ZodOptional<z.ZodString>;
497
+ playlist_name: z.ZodOptional<z.ZodString>;
498
+ clip_name: z.ZodOptional<z.ZodString>;
499
+ }, "strip", z.ZodTypeAny, {
500
+ type: "StreamSwitchVideo";
501
+ playlist_active_stream: number;
502
+ stream_name?: string | undefined;
503
+ clip_name?: string | undefined;
504
+ playlist_name?: string | undefined;
505
+ }, {
506
+ type: "StreamSwitchVideo";
507
+ playlist_active_stream: number;
508
+ stream_name?: string | undefined;
509
+ clip_name?: string | undefined;
510
+ playlist_name?: string | undefined;
511
+ }>, z.ZodObject<{
512
+ type: z.ZodLiteral<"PlaylistQueueChange">;
513
+ queue: z.ZodArray<z.ZodString, "many">;
514
+ }, "strip", z.ZodTypeAny, {
515
+ type: "PlaylistQueueChange";
516
+ queue: string[];
517
+ }, {
518
+ type: "PlaylistQueueChange";
519
+ queue: string[];
520
+ }>, z.ZodObject<{
521
+ type: z.ZodLiteral<"ClipUpload">;
522
+ clip_name: z.ZodOptional<z.ZodString>;
523
+ }, "strip", z.ZodTypeAny, {
524
+ type: "ClipUpload";
525
+ clip_name?: string | undefined;
526
+ }, {
527
+ type: "ClipUpload";
528
+ clip_name?: string | undefined;
529
+ }>, z.ZodObject<{
530
+ type: z.ZodLiteral<"SwitcherStop">;
531
+ default_playlist_id: z.ZodOptional<z.ZodString>;
532
+ }, "strip", z.ZodTypeAny, {
533
+ type: "SwitcherStop";
534
+ default_playlist_id?: string | undefined;
535
+ }, {
536
+ type: "SwitcherStop";
537
+ default_playlist_id?: string | undefined;
538
+ }>, z.ZodObject<{
539
+ type: z.ZodLiteral<"SwitcherStart">;
540
+ default_playlist_id: z.ZodOptional<z.ZodString>;
541
+ }, "strip", z.ZodTypeAny, {
542
+ type: "SwitcherStart";
543
+ default_playlist_id?: string | undefined;
544
+ }, {
545
+ type: "SwitcherStart";
546
+ default_playlist_id?: string | undefined;
547
+ }>, z.ZodObject<{
548
+ type: z.ZodLiteral<"MediaServerStarted">;
549
+ }, "strip", z.ZodTypeAny, {
550
+ type: "MediaServerStarted";
551
+ }, {
552
+ type: "MediaServerStarted";
553
+ }>, z.ZodObject<{
554
+ type: z.ZodLiteral<"ClipRemove">;
555
+ clip_name: z.ZodString;
556
+ }, "strip", z.ZodTypeAny, {
557
+ type: "ClipRemove";
558
+ clip_name: string;
559
+ }, {
560
+ type: "ClipRemove";
561
+ clip_name: string;
562
+ }>]>;
563
+ export type TCamSwitcherEvent = z.infer<typeof cswEventsDataSchema>;
564
+ export type TCamSwitcherEventType = TCamSwitcherEvent['type'];
565
+ export type TCamSwitcherEventOfType<T extends TCamSwitcherEventType> = Extract<TCamSwitcherEvent, {
566
+ type: T;
567
+ }>;
568
+ export {};