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.
- package/README.md +21 -2
- package/cjs/CamOverlayAPI.d.ts +223 -208
- package/cjs/CamStreamerAPI.d.ts +330 -311
- package/cjs/CamStreamerAPI.js +1 -1
- package/cjs/CamSwitcherAPI.d.ts +31 -30
- package/cjs/CamSwitcherAPI.js +2 -0
- package/cjs/PlaneTrackerAPI.d.ts +101 -41
- package/cjs/VapixAPI.d.ts +31 -17
- package/cjs/VapixAPI.js +1 -1
- package/cjs/internal/versionCompare.d.ts +2 -2
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +477 -3812
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +2 -2
- package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +12 -67
- package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +40 -572
- package/cjs/types/CamOverlayAPI/htmlOverlaySchema.d.ts +6 -59
- package/cjs/types/CamOverlayAPI/htmlOverlaySchema.js +1 -1
- package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +6 -75
- package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +11 -74
- package/cjs/types/CamOverlayAPI/pipSchema.d.ts +12 -97
- package/cjs/types/CamOverlayAPI/pipSchema.js +2 -2
- package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +12 -71
- package/cjs/types/CamOverlayAPI/ptzCompassSchema.js +1 -1
- package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +8 -99
- package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +20 -254
- package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +5 -43
- package/cjs/types/CamOverlayAPI/serviceCommonTypes.d.ts +15 -94
- package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +5 -43
- package/cjs/types/CamScripterAPI.d.ts +11 -81
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +1409 -22709
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +32 -509
- package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +8 -143
- package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +32 -493
- package/cjs/types/CamStreamerAPI/streamsSchema.d.ts +425 -7786
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +36 -476
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +32 -487
- package/cjs/types/CamStreamerAPI/youtubeSchema.js +1 -1
- package/cjs/types/CamSwitcherAPI.d.ts +75 -700
- package/cjs/types/CamSwitcherAPI.js +1 -0
- package/cjs/types/GenetecAgent.d.ts +12 -132
- package/cjs/types/MilestoneAgent.d.ts +4 -46
- package/cjs/types/PlaneTrackerAPI.d.ts +265 -1205
- package/cjs/types/PlaneTrackerAPI.js +5 -5
- package/cjs/types/VapixAPI.d.ts +129 -1653
- package/cjs/types/VapixAPI.js +1 -1
- package/cjs/types/common.d.ts +11 -35
- package/cjs/types/common.js +1 -1
- package/cjs/types/ws/CamOverlayEvents.d.ts +9 -69
- package/cjs/types/ws/CamStreamerEvents.d.ts +19 -217
- package/cjs/types/ws/CamSwitcherEvents.d.ts +46 -452
- package/cjs/types/ws/PlaneTrackerEvents.d.ts +361 -3522
- package/cjs/types/ws/PlaneTrackerEvents.js +1 -1
- package/esm/CamStreamerAPI.js +1 -1
- package/esm/CamSwitcherAPI.js +2 -0
- package/esm/VapixAPI.js +1 -1
- package/esm/types/CamOverlayAPI/CamOverlayAPI.js +2 -2
- package/esm/types/CamOverlayAPI/htmlOverlaySchema.js +1 -1
- package/esm/types/CamOverlayAPI/pipSchema.js +2 -2
- package/esm/types/CamOverlayAPI/ptzCompassSchema.js +1 -1
- package/esm/types/CamStreamerAPI/youtubeSchema.js +1 -1
- package/esm/types/CamSwitcherAPI.js +1 -0
- package/esm/types/PlaneTrackerAPI.js +5 -5
- package/esm/types/VapixAPI.js +1 -1
- package/esm/types/common.js +1 -1
- package/esm/types/ws/PlaneTrackerEvents.js +1 -1
- package/package.json +107 -107
- package/types/CamOverlayAPI.d.ts +223 -208
- package/types/CamStreamerAPI.d.ts +330 -311
- package/types/CamSwitcherAPI.d.ts +31 -30
- package/types/PlaneTrackerAPI.d.ts +101 -41
- package/types/VapixAPI.d.ts +31 -17
- package/types/internal/versionCompare.d.ts +2 -2
- package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +477 -3812
- package/types/types/CamOverlayAPI/accuweatherSchema.d.ts +12 -67
- package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +40 -572
- package/types/types/CamOverlayAPI/htmlOverlaySchema.d.ts +6 -59
- package/types/types/CamOverlayAPI/imagesSchema.d.ts +6 -75
- package/types/types/CamOverlayAPI/infotickerSchema.d.ts +11 -74
- package/types/types/CamOverlayAPI/pipSchema.d.ts +12 -97
- package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +12 -71
- package/types/types/CamOverlayAPI/ptzSchema.d.ts +8 -99
- package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +20 -254
- package/types/types/CamOverlayAPI/screenSharingSchema.d.ts +5 -43
- package/types/types/CamOverlayAPI/serviceCommonTypes.d.ts +15 -94
- package/types/types/CamOverlayAPI/webCameraSharingSchema.d.ts +5 -43
- package/types/types/CamScripterAPI.d.ts +11 -81
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +1409 -22709
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +32 -509
- package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +8 -143
- package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +32 -493
- package/types/types/CamStreamerAPI/streamsSchema.d.ts +425 -7786
- package/types/types/CamStreamerAPI/windySchema.d.ts +36 -476
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +32 -487
- package/types/types/CamSwitcherAPI.d.ts +75 -700
- package/types/types/GenetecAgent.d.ts +12 -132
- package/types/types/MilestoneAgent.d.ts +4 -46
- package/types/types/PlaneTrackerAPI.d.ts +265 -1205
- package/types/types/VapixAPI.d.ts +129 -1653
- package/types/types/common.d.ts +11 -35
- package/types/types/ws/CamOverlayEvents.d.ts +9 -69
- package/types/types/ws/CamStreamerEvents.d.ts +19 -217
- package/types/types/ws/CamSwitcherEvents.d.ts +46 -452
- 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<
|
|
2
|
+
declare const cswEventsDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
3
|
type: z.ZodLiteral<"authorization">;
|
|
4
4
|
state: z.ZodString;
|
|
5
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
|
104
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
147
|
-
|
|
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<
|
|
55
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
156
56
|
type: z.ZodLiteral<"authorization">;
|
|
157
57
|
state: z.ZodString;
|
|
158
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
|
257
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
300
|
-
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
|
514
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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, {
|