camstreamerlib 4.0.0-beta.32 → 4.0.0-beta.34

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 (155) hide show
  1. package/cjs/CamOverlayAPI.js +2 -2
  2. package/cjs/CamStreamerAPI.js +54 -11
  3. package/cjs/CamSwitcherAPI.js +7 -7
  4. package/cjs/CamSwitcherEvents.js +4 -60
  5. package/cjs/PlaneTrackerAPI.js +52 -52
  6. package/cjs/VapixAPI.js +10 -7
  7. package/cjs/index.js +2 -11
  8. package/cjs/internal/ProxyClient.js +6 -6
  9. package/cjs/internal/WsEvents.js +72 -0
  10. package/cjs/node/DefaultClient.js +4 -4
  11. package/cjs/node/HttpRequestSender.js +1 -1
  12. package/cjs/node/WsClient.js +1 -1
  13. package/cjs/{events → node/events}/AxisCameraStationEvents.js +4 -4
  14. package/cjs/{events → node/events}/GenetecAgent.js +43 -32
  15. package/cjs/node/index.js +5 -8
  16. package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +14 -1
  17. package/cjs/types/CamOverlayAPI/scoreBoardSchema.js +127 -0
  18. package/cjs/types/CamStreamerAPI.js +30 -3
  19. package/esm/CamOverlayAPI.js +2 -2
  20. package/esm/CamStreamerAPI.js +53 -11
  21. package/esm/CamSwitcherAPI.js +7 -7
  22. package/esm/CamSwitcherEvents.js +5 -61
  23. package/esm/PlaneTrackerAPI.js +52 -52
  24. package/esm/VapixAPI.js +10 -7
  25. package/esm/index.js +1 -6
  26. package/esm/internal/ProxyClient.js +6 -6
  27. package/esm/internal/WsEvents.js +68 -0
  28. package/esm/node/DefaultClient.js +4 -4
  29. package/esm/node/HttpRequestSender.js +1 -1
  30. package/esm/node/WsClient.js +1 -1
  31. package/esm/{events → node/events}/AxisCameraStationEvents.js +3 -3
  32. package/esm/{events → node/events}/GenetecAgent.js +41 -30
  33. package/esm/node/index.js +5 -4
  34. package/esm/types/CamOverlayAPI/CamOverlayAPI.js +9 -0
  35. package/esm/types/CamOverlayAPI/scoreBoardSchema.js +124 -0
  36. package/esm/types/CamStreamerAPI.js +29 -2
  37. package/package.json +22 -2
  38. package/{cjs → types}/CamOverlayAPI.d.ts +3 -5
  39. package/{esm → types}/CamScripterAPI.d.ts +4 -4
  40. package/types/CamStreamerAPI.d.ts +48 -0
  41. package/{esm → types}/CamSwitcherAPI.d.ts +8 -8
  42. package/types/CamSwitcherEvents.d.ts +8 -0
  43. package/types/PlaneTrackerAPI.d.ts +43 -0
  44. package/{cjs → types}/VapixAPI.d.ts +11 -7
  45. package/{cjs → types}/index.d.ts +1 -6
  46. package/{esm → types}/internal/ProxyClient.d.ts +4 -4
  47. package/types/internal/WsEvents.d.ts +41 -0
  48. package/{esm → types}/internal/types.d.ts +12 -9
  49. package/{cjs → types}/node/DefaultClient.d.ts +6 -4
  50. package/{esm → types/node}/events/AxisCameraStationEvents.d.ts +4 -4
  51. package/{esm → types/node}/events/GenetecAgent.d.ts +14 -32
  52. package/types/node/index.d.ts +5 -0
  53. package/{cjs → types}/types/CamOverlayAPI/CamOverlayAPI.d.ts +1071 -7
  54. package/{esm → types}/types/CamOverlayAPI/infotickerSchema.d.ts +2 -2
  55. package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +357 -0
  56. package/types/types/CamStreamerAPI.d.ts +274 -0
  57. package/types/web/DefaultClient.d.ts +6 -0
  58. package/cjs/CamScripterAPI.d.ts +0 -37
  59. package/cjs/CamStreamerAPI.d.ts +0 -19
  60. package/cjs/CamSwitcherAPI.d.ts +0 -54
  61. package/cjs/CamSwitcherEvents.d.ts +0 -18
  62. package/cjs/PlaneTrackerAPI.d.ts +0 -43
  63. package/cjs/events/AxisCameraStationEvents.d.ts +0 -12
  64. package/cjs/events/GenetecAgent.d.ts +0 -177
  65. package/cjs/internal/ProxyClient.d.ts +0 -10
  66. package/cjs/internal/types.d.ts +0 -42
  67. package/cjs/node/index.d.ts +0 -4
  68. package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +0 -96
  69. package/cjs/types/CamStreamerAPI.d.ts +0 -150
  70. package/cjs/web/DefaultClient.d.ts +0 -6
  71. package/esm/CamOverlayAPI.d.ts +0 -41
  72. package/esm/CamOverlayDrawingAPI.d.ts +0 -41
  73. package/esm/CamOverlayPainter/Frame.d.ts +0 -67
  74. package/esm/CamOverlayPainter/Painter.d.ts +0 -43
  75. package/esm/CamOverlayPainter/ResourceManager.d.ts +0 -15
  76. package/esm/CamScripterAPICameraEventsGenerator.d.ts +0 -74
  77. package/esm/CamStreamerAPI.d.ts +0 -19
  78. package/esm/CamSwitcherEvents.d.ts +0 -18
  79. package/esm/CreatePackage.d.ts +0 -1
  80. package/esm/PlaneTrackerAPI.d.ts +0 -43
  81. package/esm/VapixAPI.d.ts +0 -80
  82. package/esm/VapixEvents.d.ts +0 -43
  83. package/esm/errors/errors.d.ts +0 -37
  84. package/esm/index.d.ts +0 -23
  85. package/esm/internal/Digest.d.ts +0 -4
  86. package/esm/internal/constants.d.ts +0 -1
  87. package/esm/internal/transformers.d.ts +0 -5
  88. package/esm/internal/utils.d.ts +0 -14
  89. package/esm/internal/versionCompare.d.ts +0 -6
  90. package/esm/node/DefaultClient.d.ts +0 -14
  91. package/esm/node/HttpRequestSender.d.ts +0 -29
  92. package/esm/node/HttpServer.d.ts +0 -21
  93. package/esm/node/WsClient.d.ts +0 -40
  94. package/esm/node/index.d.ts +0 -4
  95. package/esm/types/CamOverlayAPI/CamOverlayAPI.d.ts +0 -3260
  96. package/esm/types/CamOverlayAPI/accuweatherSchema.d.ts +0 -84
  97. package/esm/types/CamOverlayAPI/customGraphicsSchema.d.ts +0 -700
  98. package/esm/types/CamOverlayAPI/imagesSchema.d.ts +0 -95
  99. package/esm/types/CamOverlayAPI/index.d.ts +0 -11
  100. package/esm/types/CamOverlayAPI/pipSchema.d.ts +0 -125
  101. package/esm/types/CamOverlayAPI/ptzCompassSchema.d.ts +0 -93
  102. package/esm/types/CamOverlayAPI/ptzSchema.d.ts +0 -118
  103. package/esm/types/CamOverlayAPI/screenSharingSchema.d.ts +0 -58
  104. package/esm/types/CamOverlayAPI/webCameraSharingSchema.d.ts +0 -58
  105. package/esm/types/CamOverlayAPI/widgetCommonTypes.d.ts +0 -141
  106. package/esm/types/CamOverlayDrawingAPI.d.ts +0 -58
  107. package/esm/types/CamOverlayPainter.d.ts +0 -74
  108. package/esm/types/CamScripterAPI.d.ts +0 -132
  109. package/esm/types/CamStreamerAPI.d.ts +0 -150
  110. package/esm/types/CamSwitcherAPI.d.ts +0 -812
  111. package/esm/types/CamSwitcherEvents.d.ts +0 -568
  112. package/esm/types/PlaneTrackerAPI.d.ts +0 -8
  113. package/esm/types/VapixAPI.d.ts +0 -1819
  114. package/esm/types/common.d.ts +0 -46
  115. package/esm/web/DefaultClient.d.ts +0 -6
  116. package/esm/web/WsClient.d.ts +0 -13
  117. package/esm/web/index.d.ts +0 -2
  118. /package/cjs/{internal → node}/Digest.js +0 -0
  119. /package/esm/{internal → node}/Digest.js +0 -0
  120. /package/{cjs → types}/CamOverlayDrawingAPI.d.ts +0 -0
  121. /package/{cjs → types}/CamOverlayPainter/Frame.d.ts +0 -0
  122. /package/{cjs → types}/CamOverlayPainter/Painter.d.ts +0 -0
  123. /package/{cjs → types}/CamOverlayPainter/ResourceManager.d.ts +0 -0
  124. /package/{cjs → types}/CamScripterAPICameraEventsGenerator.d.ts +0 -0
  125. /package/{cjs → types}/CreatePackage.d.ts +0 -0
  126. /package/{cjs → types}/VapixEvents.d.ts +0 -0
  127. /package/{cjs → types}/errors/errors.d.ts +0 -0
  128. /package/{cjs → types}/internal/constants.d.ts +0 -0
  129. /package/{cjs → types}/internal/transformers.d.ts +0 -0
  130. /package/{cjs → types}/internal/utils.d.ts +0 -0
  131. /package/{cjs → types}/internal/versionCompare.d.ts +0 -0
  132. /package/{cjs/internal → types/node}/Digest.d.ts +0 -0
  133. /package/{cjs → types}/node/HttpRequestSender.d.ts +0 -0
  134. /package/{cjs → types}/node/HttpServer.d.ts +0 -0
  135. /package/{cjs → types}/node/WsClient.d.ts +0 -0
  136. /package/{cjs → types}/types/CamOverlayAPI/accuweatherSchema.d.ts +0 -0
  137. /package/{cjs → types}/types/CamOverlayAPI/customGraphicsSchema.d.ts +0 -0
  138. /package/{cjs → types}/types/CamOverlayAPI/imagesSchema.d.ts +0 -0
  139. /package/{cjs → types}/types/CamOverlayAPI/index.d.ts +0 -0
  140. /package/{cjs → types}/types/CamOverlayAPI/pipSchema.d.ts +0 -0
  141. /package/{cjs → types}/types/CamOverlayAPI/ptzCompassSchema.d.ts +0 -0
  142. /package/{cjs → types}/types/CamOverlayAPI/ptzSchema.d.ts +0 -0
  143. /package/{cjs → types}/types/CamOverlayAPI/screenSharingSchema.d.ts +0 -0
  144. /package/{cjs → types}/types/CamOverlayAPI/webCameraSharingSchema.d.ts +0 -0
  145. /package/{cjs → types}/types/CamOverlayAPI/widgetCommonTypes.d.ts +0 -0
  146. /package/{cjs → types}/types/CamOverlayDrawingAPI.d.ts +0 -0
  147. /package/{cjs → types}/types/CamOverlayPainter.d.ts +0 -0
  148. /package/{cjs → types}/types/CamScripterAPI.d.ts +0 -0
  149. /package/{cjs → types}/types/CamSwitcherAPI.d.ts +0 -0
  150. /package/{cjs → types}/types/CamSwitcherEvents.d.ts +0 -0
  151. /package/{cjs → types}/types/PlaneTrackerAPI.d.ts +0 -0
  152. /package/{cjs → types}/types/VapixAPI.d.ts +0 -0
  153. /package/{cjs → types}/types/common.d.ts +0 -0
  154. /package/{cjs → types}/web/WsClient.d.ts +0 -0
  155. /package/{cjs → types}/web/index.d.ts +0 -0
@@ -1,568 +0,0 @@
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 {};
@@ -1,8 +0,0 @@
1
- export type TImportDataType = 'MAP_DATA' | 'SERVER_DATA' | 'ALL';
2
- export type TExportDataType = 'NIGHT_SKY_CALIBRATION_DATA' | 'ALL';
3
- export type TApiUser = {
4
- userId: string;
5
- userName: string;
6
- userPriority: number;
7
- };
8
- export type ICAO = string;