camstreamerlib 4.0.36 → 5.0.0-20ab5c4

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 (138) hide show
  1. package/README.md +39 -2
  2. package/cjs/CamOverlayAPI.d.ts +204 -204
  3. package/cjs/CamStreamerAPI.d.ts +311 -311
  4. package/cjs/CamStreamerAPI.js +1 -1
  5. package/cjs/CamSwitcherAPI.d.ts +32 -31
  6. package/cjs/CamSwitcherAPI.js +2 -0
  7. package/cjs/PlaneTrackerAPI.d.ts +27 -27
  8. package/cjs/VapixAPI.d.ts +15 -15
  9. package/cjs/VapixAPI.js +2 -2
  10. package/cjs/bin/CreatePackage.js +17 -7
  11. package/cjs/errors/errors.d.ts +1 -1
  12. package/cjs/errors/errors.js +2 -2
  13. package/cjs/internal/transformers.d.ts +4 -4
  14. package/cjs/internal/utils.js +3 -3
  15. package/cjs/internal/versionCompare.d.ts +2 -2
  16. package/cjs/node/CamOverlayDrawingAPI.d.ts +0 -3
  17. package/cjs/node/CamOverlayPainter/Frame.d.ts +0 -1
  18. package/cjs/node/CamOverlayPainter/ResourceManager.d.ts +2 -2
  19. package/cjs/node/CamOverlayPainter/ResourceManager.js +17 -7
  20. package/cjs/node/CamScripterAPICameraEventsGenerator.d.ts +0 -1
  21. package/cjs/node/DefaultClient.d.ts +0 -2
  22. package/cjs/node/Digest.js +17 -7
  23. package/cjs/node/HttpRequestSender.d.ts +0 -2
  24. package/cjs/node/HttpRequestSender.test.js +17 -7
  25. package/cjs/node/HttpServer.d.ts +0 -2
  26. package/cjs/node/HttpServer.js +17 -7
  27. package/cjs/node/VapixEvents.js +1 -1
  28. package/cjs/node/WsClient.js +1 -1
  29. package/cjs/node/events/AxisCameraStationEvents.js +2 -1
  30. package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +320 -4097
  31. package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +2 -2
  32. package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +12 -67
  33. package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +40 -572
  34. package/cjs/types/CamOverlayAPI/htmlOverlaySchema.d.ts +6 -59
  35. package/cjs/types/CamOverlayAPI/htmlOverlaySchema.js +1 -1
  36. package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +6 -75
  37. package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +11 -74
  38. package/cjs/types/CamOverlayAPI/pipSchema.d.ts +12 -97
  39. package/cjs/types/CamOverlayAPI/pipSchema.js +2 -2
  40. package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +12 -71
  41. package/cjs/types/CamOverlayAPI/ptzCompassSchema.js +1 -1
  42. package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +8 -99
  43. package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +20 -254
  44. package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +5 -43
  45. package/cjs/types/CamOverlayAPI/serviceCommonTypes.d.ts +15 -94
  46. package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +5 -43
  47. package/cjs/types/CamScripterAPI.d.ts +11 -81
  48. package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +1095 -24193
  49. package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +32 -509
  50. package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +8 -143
  51. package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +32 -493
  52. package/cjs/types/CamStreamerAPI/streamsSchema.d.ts +425 -7786
  53. package/cjs/types/CamStreamerAPI/windySchema.d.ts +36 -476
  54. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +32 -487
  55. package/cjs/types/CamStreamerAPI/youtubeSchema.js +1 -1
  56. package/cjs/types/CamSwitcherAPI.d.ts +75 -700
  57. package/cjs/types/CamSwitcherAPI.js +1 -0
  58. package/cjs/types/GenetecAgent.d.ts +12 -132
  59. package/cjs/types/MilestoneAgent.d.ts +4 -46
  60. package/cjs/types/PlaneTrackerAPI.d.ts +266 -1188
  61. package/cjs/types/PlaneTrackerAPI.js +16 -6
  62. package/cjs/types/PlaneTrackerAPI.test.js +27 -0
  63. package/cjs/types/VapixAPI.d.ts +129 -1653
  64. package/cjs/types/VapixAPI.js +1 -1
  65. package/cjs/types/common.d.ts +11 -35
  66. package/cjs/types/common.js +1 -1
  67. package/cjs/types/ws/CamOverlayEvents.d.ts +9 -69
  68. package/cjs/types/ws/CamStreamerEvents.d.ts +19 -217
  69. package/cjs/types/ws/CamSwitcherEvents.d.ts +46 -452
  70. package/cjs/types/ws/PlaneTrackerEvents.d.ts +361 -3522
  71. package/cjs/types/ws/PlaneTrackerEvents.js +1 -1
  72. package/cjs/web/WsClient.js +1 -1
  73. package/esm/CamStreamerAPI.js +1 -1
  74. package/esm/CamSwitcherAPI.js +2 -0
  75. package/esm/VapixAPI.js +2 -2
  76. package/esm/errors/errors.js +2 -2
  77. package/esm/node/VapixEvents.js +1 -1
  78. package/esm/node/WsClient.js +1 -1
  79. package/esm/node/events/AxisCameraStationEvents.js +2 -1
  80. package/esm/types/CamOverlayAPI/CamOverlayAPI.js +2 -2
  81. package/esm/types/CamOverlayAPI/htmlOverlaySchema.js +1 -1
  82. package/esm/types/CamOverlayAPI/pipSchema.js +2 -2
  83. package/esm/types/CamOverlayAPI/ptzCompassSchema.js +1 -1
  84. package/esm/types/CamStreamerAPI/youtubeSchema.js +1 -1
  85. package/esm/types/CamSwitcherAPI.js +1 -0
  86. package/esm/types/PlaneTrackerAPI.js +16 -6
  87. package/esm/types/PlaneTrackerAPI.test.js +27 -0
  88. package/esm/types/VapixAPI.js +1 -1
  89. package/esm/types/common.js +1 -1
  90. package/esm/types/ws/PlaneTrackerEvents.js +1 -1
  91. package/esm/web/WsClient.js +1 -1
  92. package/package.json +106 -107
  93. package/types/CamOverlayAPI.d.ts +204 -204
  94. package/types/CamStreamerAPI.d.ts +311 -311
  95. package/types/CamSwitcherAPI.d.ts +32 -31
  96. package/types/PlaneTrackerAPI.d.ts +27 -27
  97. package/types/VapixAPI.d.ts +15 -15
  98. package/types/errors/errors.d.ts +1 -1
  99. package/types/internal/transformers.d.ts +4 -4
  100. package/types/internal/versionCompare.d.ts +2 -2
  101. package/types/node/CamOverlayDrawingAPI.d.ts +0 -3
  102. package/types/node/CamOverlayPainter/Frame.d.ts +0 -1
  103. package/types/node/CamOverlayPainter/ResourceManager.d.ts +2 -2
  104. package/types/node/CamScripterAPICameraEventsGenerator.d.ts +0 -1
  105. package/types/node/DefaultClient.d.ts +0 -2
  106. package/types/node/HttpRequestSender.d.ts +0 -2
  107. package/types/node/HttpServer.d.ts +0 -2
  108. package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +320 -4097
  109. package/types/types/CamOverlayAPI/accuweatherSchema.d.ts +12 -67
  110. package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +40 -572
  111. package/types/types/CamOverlayAPI/htmlOverlaySchema.d.ts +6 -59
  112. package/types/types/CamOverlayAPI/imagesSchema.d.ts +6 -75
  113. package/types/types/CamOverlayAPI/infotickerSchema.d.ts +11 -74
  114. package/types/types/CamOverlayAPI/pipSchema.d.ts +12 -97
  115. package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +12 -71
  116. package/types/types/CamOverlayAPI/ptzSchema.d.ts +8 -99
  117. package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +20 -254
  118. package/types/types/CamOverlayAPI/screenSharingSchema.d.ts +5 -43
  119. package/types/types/CamOverlayAPI/serviceCommonTypes.d.ts +15 -94
  120. package/types/types/CamOverlayAPI/webCameraSharingSchema.d.ts +5 -43
  121. package/types/types/CamScripterAPI.d.ts +11 -81
  122. package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +1095 -24193
  123. package/types/types/CamStreamerAPI/facebookSchema.d.ts +32 -509
  124. package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +8 -143
  125. package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +32 -493
  126. package/types/types/CamStreamerAPI/streamsSchema.d.ts +425 -7786
  127. package/types/types/CamStreamerAPI/windySchema.d.ts +36 -476
  128. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +32 -487
  129. package/types/types/CamSwitcherAPI.d.ts +75 -700
  130. package/types/types/GenetecAgent.d.ts +12 -132
  131. package/types/types/MilestoneAgent.d.ts +4 -46
  132. package/types/types/PlaneTrackerAPI.d.ts +266 -1188
  133. package/types/types/VapixAPI.d.ts +129 -1653
  134. package/types/types/common.d.ts +11 -35
  135. package/types/types/ws/CamOverlayEvents.d.ts +9 -69
  136. package/types/types/ws/CamStreamerEvents.d.ts +19 -217
  137. package/types/types/ws/CamSwitcherEvents.d.ts +46 -452
  138. package/types/types/ws/PlaneTrackerEvents.d.ts +361 -3522
@@ -1,565 +1,159 @@
1
1
  import { z } from 'zod';
2
- declare const cswEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2
+ declare const cswEventsDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3
3
  type: z.ZodLiteral<"authorization">;
4
4
  state: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
6
- type: "authorization";
7
- state: string;
8
- }, {
9
- type: "authorization";
10
- state: string;
11
- }>, z.ZodObject<{
5
+ }, z.core.$strip>, z.ZodObject<{
12
6
  type: z.ZodLiteral<"PlaylistSwitch">;
13
7
  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<{
8
+ }, z.core.$strip>, z.ZodObject<{
21
9
  type: z.ZodLiteral<"StreamAvailable">;
22
10
  stream_name: z.ZodString;
23
11
  state: z.ZodBoolean;
24
- }, "strip", z.ZodTypeAny, {
25
- type: "StreamAvailable";
26
- state: boolean;
27
- stream_name: string;
28
- }, {
29
- type: "StreamAvailable";
30
- state: boolean;
31
- stream_name: string;
32
- }>, z.ZodObject<{
12
+ }, z.core.$strip>, z.ZodObject<{
33
13
  type: z.ZodLiteral<"StreamSwitchAudio">;
34
14
  stream_name: z.ZodOptional<z.ZodString>;
35
15
  clip_name: z.ZodOptional<z.ZodString>;
36
16
  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<{
17
+ }, z.core.$strip>, z.ZodObject<{
48
18
  type: z.ZodLiteral<"StreamSwitchVideoError">;
49
19
  playlist_name: z.ZodString;
50
20
  playlist_active_stream: z.ZodNumber;
51
21
  stream_name: z.ZodOptional<z.ZodString>;
52
22
  clip_name: z.ZodOptional<z.ZodString>;
53
23
  info: z.ZodString;
54
- }, "strip", z.ZodTypeAny, {
55
- type: "StreamSwitchVideoError";
56
- playlist_name: string;
57
- info: string;
58
- playlist_active_stream: number;
59
- stream_name?: string | undefined;
60
- clip_name?: string | undefined;
61
- }, {
62
- type: "StreamSwitchVideoError";
63
- playlist_name: string;
64
- info: string;
65
- playlist_active_stream: number;
66
- stream_name?: string | undefined;
67
- clip_name?: string | undefined;
68
- }>, z.ZodObject<{
24
+ }, z.core.$strip>, z.ZodObject<{
69
25
  type: z.ZodLiteral<"StreamSwitchAudioError">;
70
26
  stream_name: z.ZodOptional<z.ZodString>;
71
27
  clip_name: z.ZodOptional<z.ZodString>;
72
28
  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<{
29
+ }, z.core.$strip>, z.ZodObject<{
84
30
  type: z.ZodLiteral<"StreamSwitchVideo">;
85
31
  playlist_active_stream: z.ZodNumber;
86
32
  stream_name: z.ZodOptional<z.ZodString>;
87
33
  playlist_name: z.ZodOptional<z.ZodString>;
88
34
  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<{
35
+ }, z.core.$strip>, z.ZodObject<{
102
36
  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<{
37
+ queue: z.ZodArray<z.ZodString>;
38
+ }, z.core.$strip>, z.ZodObject<{
111
39
  type: z.ZodLiteral<"ClipUpload">;
112
40
  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<{
41
+ }, z.core.$strip>, z.ZodObject<{
120
42
  type: z.ZodLiteral<"SwitcherStop">;
121
43
  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<{
44
+ }, z.core.$strip>, z.ZodObject<{
129
45
  type: z.ZodLiteral<"SwitcherStart">;
130
46
  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<{
47
+ }, z.core.$strip>, z.ZodObject<{
138
48
  type: z.ZodLiteral<"MediaServerStarted">;
139
- }, "strip", z.ZodTypeAny, {
140
- type: "MediaServerStarted";
141
- }, {
142
- type: "MediaServerStarted";
143
- }>, z.ZodObject<{
49
+ }, z.core.$strip>, z.ZodObject<{
144
50
  type: z.ZodLiteral<"ClipRemove">;
145
51
  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<{
52
+ }, z.core.$strip>], "type">;
53
+ export declare const cswEventsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
154
54
  type: z.ZodLiteral<"init">;
155
- data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
55
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
156
56
  type: z.ZodLiteral<"authorization">;
157
57
  state: z.ZodString;
158
- }, "strip", z.ZodTypeAny, {
159
- type: "authorization";
160
- state: string;
161
- }, {
162
- type: "authorization";
163
- state: string;
164
- }>, z.ZodObject<{
58
+ }, z.core.$strip>, z.ZodObject<{
165
59
  type: z.ZodLiteral<"PlaylistSwitch">;
166
60
  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<{
61
+ }, z.core.$strip>, z.ZodObject<{
174
62
  type: z.ZodLiteral<"StreamAvailable">;
175
63
  stream_name: z.ZodString;
176
64
  state: z.ZodBoolean;
177
- }, "strip", z.ZodTypeAny, {
178
- type: "StreamAvailable";
179
- state: boolean;
180
- stream_name: string;
181
- }, {
182
- type: "StreamAvailable";
183
- state: boolean;
184
- stream_name: string;
185
- }>, z.ZodObject<{
65
+ }, z.core.$strip>, z.ZodObject<{
186
66
  type: z.ZodLiteral<"StreamSwitchAudio">;
187
67
  stream_name: z.ZodOptional<z.ZodString>;
188
68
  clip_name: z.ZodOptional<z.ZodString>;
189
69
  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<{
70
+ }, z.core.$strip>, z.ZodObject<{
201
71
  type: z.ZodLiteral<"StreamSwitchVideoError">;
202
72
  playlist_name: z.ZodString;
203
73
  playlist_active_stream: z.ZodNumber;
204
74
  stream_name: z.ZodOptional<z.ZodString>;
205
75
  clip_name: z.ZodOptional<z.ZodString>;
206
76
  info: z.ZodString;
207
- }, "strip", z.ZodTypeAny, {
208
- type: "StreamSwitchVideoError";
209
- playlist_name: string;
210
- info: string;
211
- playlist_active_stream: number;
212
- stream_name?: string | undefined;
213
- clip_name?: string | undefined;
214
- }, {
215
- type: "StreamSwitchVideoError";
216
- playlist_name: string;
217
- info: string;
218
- playlist_active_stream: number;
219
- stream_name?: string | undefined;
220
- clip_name?: string | undefined;
221
- }>, z.ZodObject<{
77
+ }, z.core.$strip>, z.ZodObject<{
222
78
  type: z.ZodLiteral<"StreamSwitchAudioError">;
223
79
  stream_name: z.ZodOptional<z.ZodString>;
224
80
  clip_name: z.ZodOptional<z.ZodString>;
225
81
  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<{
82
+ }, z.core.$strip>, z.ZodObject<{
237
83
  type: z.ZodLiteral<"StreamSwitchVideo">;
238
84
  playlist_active_stream: z.ZodNumber;
239
85
  stream_name: z.ZodOptional<z.ZodString>;
240
86
  playlist_name: z.ZodOptional<z.ZodString>;
241
87
  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<{
88
+ }, z.core.$strip>, z.ZodObject<{
255
89
  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<{
90
+ queue: z.ZodArray<z.ZodString>;
91
+ }, z.core.$strip>, z.ZodObject<{
264
92
  type: z.ZodLiteral<"ClipUpload">;
265
93
  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<{
94
+ }, z.core.$strip>, z.ZodObject<{
273
95
  type: z.ZodLiteral<"SwitcherStop">;
274
96
  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<{
97
+ }, z.core.$strip>, z.ZodObject<{
282
98
  type: z.ZodLiteral<"SwitcherStart">;
283
99
  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<{
100
+ }, z.core.$strip>, z.ZodObject<{
291
101
  type: z.ZodLiteral<"MediaServerStarted">;
292
- }, "strip", z.ZodTypeAny, {
293
- type: "MediaServerStarted";
294
- }, {
295
- type: "MediaServerStarted";
296
- }>, z.ZodObject<{
102
+ }, z.core.$strip>, z.ZodObject<{
297
103
  type: z.ZodLiteral<"ClipRemove">;
298
104
  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
- state: boolean;
317
- stream_name: string;
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
- info: string;
327
- playlist_active_stream: number;
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
- state: boolean;
370
- stream_name: string;
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
- info: string;
380
- playlist_active_stream: number;
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<{
105
+ }, z.core.$strip>], "type">;
106
+ }, z.core.$strip>, z.ZodObject<{
413
107
  type: z.ZodLiteral<"authorization">;
414
108
  state: z.ZodString;
415
- }, "strip", z.ZodTypeAny, {
416
- type: "authorization";
417
- state: string;
418
- }, {
419
- type: "authorization";
420
- state: string;
421
- }>, z.ZodObject<{
109
+ }, z.core.$strip>, z.ZodObject<{
422
110
  type: z.ZodLiteral<"PlaylistSwitch">;
423
111
  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<{
112
+ }, z.core.$strip>, z.ZodObject<{
431
113
  type: z.ZodLiteral<"StreamAvailable">;
432
114
  stream_name: z.ZodString;
433
115
  state: z.ZodBoolean;
434
- }, "strip", z.ZodTypeAny, {
435
- type: "StreamAvailable";
436
- state: boolean;
437
- stream_name: string;
438
- }, {
439
- type: "StreamAvailable";
440
- state: boolean;
441
- stream_name: string;
442
- }>, z.ZodObject<{
116
+ }, z.core.$strip>, z.ZodObject<{
443
117
  type: z.ZodLiteral<"StreamSwitchAudio">;
444
118
  stream_name: z.ZodOptional<z.ZodString>;
445
119
  clip_name: z.ZodOptional<z.ZodString>;
446
120
  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<{
121
+ }, z.core.$strip>, z.ZodObject<{
458
122
  type: z.ZodLiteral<"StreamSwitchVideoError">;
459
123
  playlist_name: z.ZodString;
460
124
  playlist_active_stream: z.ZodNumber;
461
125
  stream_name: z.ZodOptional<z.ZodString>;
462
126
  clip_name: z.ZodOptional<z.ZodString>;
463
127
  info: z.ZodString;
464
- }, "strip", z.ZodTypeAny, {
465
- type: "StreamSwitchVideoError";
466
- playlist_name: string;
467
- info: string;
468
- playlist_active_stream: number;
469
- stream_name?: string | undefined;
470
- clip_name?: string | undefined;
471
- }, {
472
- type: "StreamSwitchVideoError";
473
- playlist_name: string;
474
- info: string;
475
- playlist_active_stream: number;
476
- stream_name?: string | undefined;
477
- clip_name?: string | undefined;
478
- }>, z.ZodObject<{
128
+ }, z.core.$strip>, z.ZodObject<{
479
129
  type: z.ZodLiteral<"StreamSwitchAudioError">;
480
130
  stream_name: z.ZodOptional<z.ZodString>;
481
131
  clip_name: z.ZodOptional<z.ZodString>;
482
132
  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<{
133
+ }, z.core.$strip>, z.ZodObject<{
494
134
  type: z.ZodLiteral<"StreamSwitchVideo">;
495
135
  playlist_active_stream: z.ZodNumber;
496
136
  stream_name: z.ZodOptional<z.ZodString>;
497
137
  playlist_name: z.ZodOptional<z.ZodString>;
498
138
  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<{
139
+ }, z.core.$strip>, z.ZodObject<{
512
140
  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<{
141
+ queue: z.ZodArray<z.ZodString>;
142
+ }, z.core.$strip>, z.ZodObject<{
521
143
  type: z.ZodLiteral<"ClipUpload">;
522
144
  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<{
145
+ }, z.core.$strip>, z.ZodObject<{
530
146
  type: z.ZodLiteral<"SwitcherStop">;
531
147
  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<{
148
+ }, z.core.$strip>, z.ZodObject<{
539
149
  type: z.ZodLiteral<"SwitcherStart">;
540
150
  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<{
151
+ }, z.core.$strip>, z.ZodObject<{
548
152
  type: z.ZodLiteral<"MediaServerStarted">;
549
- }, "strip", z.ZodTypeAny, {
550
- type: "MediaServerStarted";
551
- }, {
552
- type: "MediaServerStarted";
553
- }>, z.ZodObject<{
153
+ }, z.core.$strip>, z.ZodObject<{
554
154
  type: z.ZodLiteral<"ClipRemove">;
555
155
  clip_name: z.ZodString;
556
- }, "strip", z.ZodTypeAny, {
557
- type: "ClipRemove";
558
- clip_name: string;
559
- }, {
560
- type: "ClipRemove";
561
- clip_name: string;
562
- }>]>;
156
+ }, z.core.$strip>], "type">;
563
157
  export type TCamSwitcherEvent = z.infer<typeof cswEventsDataSchema>;
564
158
  export type TCamSwitcherEventType = TCamSwitcherEvent['type'];
565
159
  export type TCamSwitcherEventOfType<T extends TCamSwitcherEventType> = Extract<TCamSwitcherEvent, {