camstreamerlib 4.0.0-beta.97 → 4.0.1

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 (218) hide show
  1. package/README.md +44 -15
  2. package/cjs/CamOverlayAPI.d.ts +147 -109
  3. package/cjs/CamOverlayAPI.js +14 -63
  4. package/cjs/CamScripterAPI.d.ts +5 -8
  5. package/cjs/CamScripterAPI.js +11 -29
  6. package/cjs/CamStreamerAPI.d.ts +2745 -589
  7. package/cjs/CamStreamerAPI.js +68 -76
  8. package/cjs/CamSwitcherAPI.d.ts +23 -22
  9. package/cjs/CamSwitcherAPI.js +30 -88
  10. package/cjs/PlaneTrackerAPI.d.ts +28 -30
  11. package/cjs/PlaneTrackerAPI.js +20 -75
  12. package/cjs/VapixAPI.d.ts +36 -23
  13. package/cjs/VapixAPI.js +227 -106
  14. package/cjs/errors/errors.d.ts +11 -5
  15. package/cjs/errors/errors.js +5 -1
  16. package/cjs/index.d.ts +1 -0
  17. package/cjs/index.js +1 -0
  18. package/cjs/internal/BasicAPI.d.ts +15 -0
  19. package/cjs/internal/BasicAPI.js +93 -0
  20. package/cjs/internal/WsEvents.d.ts +1 -0
  21. package/cjs/internal/WsEvents.js +5 -0
  22. package/cjs/internal/constants.d.ts +1 -0
  23. package/cjs/internal/constants.js +2 -1
  24. package/cjs/internal/convertors.d.ts +6 -0
  25. package/cjs/internal/convertors.js +115 -0
  26. package/cjs/internal/transformers.js +8 -8
  27. package/cjs/internal/types.d.ts +3 -0
  28. package/cjs/internal/versionCompare.d.ts +2 -2
  29. package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +894 -374
  30. package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +54 -11
  31. package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +10 -10
  32. package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +40 -40
  33. package/cjs/types/CamOverlayAPI/htmlOverlaySchema.d.ts +81 -0
  34. package/cjs/types/CamOverlayAPI/htmlOverlaySchema.js +21 -0
  35. package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +10 -10
  36. package/cjs/types/CamOverlayAPI/index.d.ts +1 -0
  37. package/cjs/types/CamOverlayAPI/index.js +1 -0
  38. package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +8 -8
  39. package/cjs/types/CamOverlayAPI/pipSchema.d.ts +8 -8
  40. package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +10 -10
  41. package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +13 -13
  42. package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +18 -18
  43. package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +8 -8
  44. package/cjs/types/CamOverlayAPI/serviceCommonTypes.d.ts +17 -16
  45. package/cjs/types/CamOverlayAPI/serviceCommonTypes.js +6 -3
  46. package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +8 -8
  47. package/cjs/types/CamScripterAPI.d.ts +0 -11
  48. package/cjs/types/CamScripterAPI.js +1 -5
  49. package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +19642 -3073
  50. package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +126 -57
  51. package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +434 -52
  52. package/cjs/types/CamStreamerAPI/facebookSchema.js +13 -1
  53. package/cjs/types/CamStreamerAPI/index.d.ts +1 -3
  54. package/cjs/types/CamStreamerAPI/index.js +1 -3
  55. package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +47 -47
  56. package/cjs/types/CamStreamerAPI/oldStreamSchema.js +1 -1
  57. package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +430 -219
  58. package/cjs/types/CamStreamerAPI/streamCommonTypes.js +116 -58
  59. package/cjs/types/CamStreamerAPI/streamsSchema.d.ts +8812 -0
  60. package/cjs/types/CamStreamerAPI/streamsSchema.js +81 -0
  61. package/cjs/types/CamStreamerAPI/windySchema.d.ts +394 -52
  62. package/cjs/types/CamStreamerAPI/windySchema.js +9 -1
  63. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +402 -52
  64. package/cjs/types/CamStreamerAPI/youtubeSchema.js +12 -1
  65. package/cjs/types/CamSwitcherAPI.d.ts +96 -91
  66. package/cjs/types/CamSwitcherAPI.js +9 -9
  67. package/cjs/types/GenetecAgent.d.ts +2 -2
  68. package/cjs/types/PlaneTrackerAPI.d.ts +60 -47
  69. package/cjs/types/PlaneTrackerAPI.js +5 -2
  70. package/cjs/types/VapixAPI.d.ts +51 -32
  71. package/cjs/types/VapixAPI.js +10 -3
  72. package/cjs/types/common.d.ts +27 -0
  73. package/cjs/types/common.js +13 -1
  74. package/cjs/types/ws/CamStreamerEvents.d.ts +110 -77
  75. package/cjs/types/ws/CamStreamerEvents.js +11 -7
  76. package/cjs/types/ws/CamSwitcherEvents.d.ts +8 -8
  77. package/cjs/types/ws/PlaneTrackerEvents.d.ts +3 -3
  78. package/esm/CamOverlayAPI.js +16 -65
  79. package/esm/CamScripterAPI.js +9 -30
  80. package/esm/CamStreamerAPI.js +70 -78
  81. package/esm/CamSwitcherAPI.js +31 -89
  82. package/esm/PlaneTrackerAPI.js +21 -76
  83. package/esm/VapixAPI.js +228 -107
  84. package/esm/errors/errors.js +5 -1
  85. package/esm/index.js +1 -0
  86. package/esm/internal/BasicAPI.js +89 -0
  87. package/esm/internal/WsEvents.js +5 -0
  88. package/esm/internal/constants.js +1 -0
  89. package/esm/internal/convertors.js +108 -0
  90. package/esm/internal/transformers.js +1 -1
  91. package/esm/types/CamOverlayAPI/CamOverlayAPI.js +47 -10
  92. package/esm/types/CamOverlayAPI/htmlOverlaySchema.js +18 -0
  93. package/esm/types/CamOverlayAPI/index.js +1 -0
  94. package/esm/types/CamOverlayAPI/serviceCommonTypes.js +6 -3
  95. package/esm/types/CamScripterAPI.js +0 -4
  96. package/esm/types/CamStreamerAPI/CamStreamerAPI.js +109 -41
  97. package/esm/types/CamStreamerAPI/facebookSchema.js +13 -1
  98. package/esm/types/CamStreamerAPI/index.js +1 -3
  99. package/esm/types/CamStreamerAPI/oldStreamSchema.js +1 -1
  100. package/esm/types/CamStreamerAPI/streamCommonTypes.js +116 -58
  101. package/esm/types/CamStreamerAPI/streamsSchema.js +75 -0
  102. package/esm/types/CamStreamerAPI/windySchema.js +9 -1
  103. package/esm/types/CamStreamerAPI/youtubeSchema.js +12 -1
  104. package/esm/types/CamSwitcherAPI.js +8 -8
  105. package/esm/types/PlaneTrackerAPI.js +5 -2
  106. package/esm/types/VapixAPI.js +9 -2
  107. package/esm/types/common.js +12 -0
  108. package/esm/types/ws/CamStreamerEvents.js +11 -7
  109. package/package.json +4 -4
  110. package/types/CamOverlayAPI.d.ts +147 -109
  111. package/types/CamScripterAPI.d.ts +5 -8
  112. package/types/CamStreamerAPI.d.ts +2745 -589
  113. package/types/CamSwitcherAPI.d.ts +23 -22
  114. package/types/PlaneTrackerAPI.d.ts +28 -30
  115. package/types/VapixAPI.d.ts +36 -23
  116. package/types/errors/errors.d.ts +11 -5
  117. package/types/index.d.ts +1 -0
  118. package/types/internal/BasicAPI.d.ts +15 -0
  119. package/types/internal/WsEvents.d.ts +1 -0
  120. package/types/internal/constants.d.ts +1 -0
  121. package/types/internal/convertors.d.ts +6 -0
  122. package/types/internal/types.d.ts +3 -0
  123. package/types/internal/versionCompare.d.ts +2 -2
  124. package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +894 -374
  125. package/types/types/CamOverlayAPI/accuweatherSchema.d.ts +10 -10
  126. package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +40 -40
  127. package/types/types/CamOverlayAPI/htmlOverlaySchema.d.ts +81 -0
  128. package/types/types/CamOverlayAPI/imagesSchema.d.ts +10 -10
  129. package/types/types/CamOverlayAPI/index.d.ts +1 -0
  130. package/types/types/CamOverlayAPI/infotickerSchema.d.ts +8 -8
  131. package/types/types/CamOverlayAPI/pipSchema.d.ts +8 -8
  132. package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +10 -10
  133. package/types/types/CamOverlayAPI/ptzSchema.d.ts +13 -13
  134. package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +18 -18
  135. package/types/types/CamOverlayAPI/screenSharingSchema.d.ts +8 -8
  136. package/types/types/CamOverlayAPI/serviceCommonTypes.d.ts +17 -16
  137. package/types/types/CamOverlayAPI/webCameraSharingSchema.d.ts +8 -8
  138. package/types/types/CamScripterAPI.d.ts +0 -11
  139. package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +19642 -3073
  140. package/types/types/CamStreamerAPI/facebookSchema.d.ts +434 -52
  141. package/types/types/CamStreamerAPI/index.d.ts +1 -3
  142. package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +47 -47
  143. package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +430 -219
  144. package/types/types/CamStreamerAPI/streamsSchema.d.ts +8812 -0
  145. package/types/types/CamStreamerAPI/windySchema.d.ts +394 -52
  146. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +402 -52
  147. package/types/types/CamSwitcherAPI.d.ts +96 -91
  148. package/types/types/GenetecAgent.d.ts +2 -2
  149. package/types/types/PlaneTrackerAPI.d.ts +60 -47
  150. package/types/types/VapixAPI.d.ts +51 -32
  151. package/types/types/common.d.ts +27 -0
  152. package/types/types/ws/CamStreamerEvents.d.ts +110 -77
  153. package/types/types/ws/CamSwitcherEvents.d.ts +8 -8
  154. package/types/types/ws/PlaneTrackerEvents.d.ts +3 -3
  155. package/cjs/types/CamStreamerAPI/churchSchema.d.ts +0 -202
  156. package/cjs/types/CamStreamerAPI/churchSchema.js +0 -11
  157. package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +0 -202
  158. package/cjs/types/CamStreamerAPI/daCastSchema.js +0 -11
  159. package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +0 -202
  160. package/cjs/types/CamStreamerAPI/dailymotionSchema.js +0 -11
  161. package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +0 -202
  162. package/cjs/types/CamStreamerAPI/gameChangerSchema.js +0 -11
  163. package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +0 -202
  164. package/cjs/types/CamStreamerAPI/hlsPullSchema.js +0 -11
  165. package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +0 -202
  166. package/cjs/types/CamStreamerAPI/hlsPushSchema.js +0 -11
  167. package/cjs/types/CamStreamerAPI/ibmSchema.d.ts +0 -202
  168. package/cjs/types/CamStreamerAPI/ibmSchema.js +0 -11
  169. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +0 -202
  170. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.js +0 -11
  171. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +0 -202
  172. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.js +0 -11
  173. package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +0 -250
  174. package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +0 -27
  175. package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +0 -211
  176. package/cjs/types/CamStreamerAPI/rtmpSchema.js +0 -14
  177. package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +0 -202
  178. package/cjs/types/CamStreamerAPI/sdCardSchema.js +0 -11
  179. package/cjs/types/CamStreamerAPI/srtSchema.d.ts +0 -202
  180. package/cjs/types/CamStreamerAPI/srtSchema.js +0 -11
  181. package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +0 -202
  182. package/cjs/types/CamStreamerAPI/twitchSchema.js +0 -11
  183. package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +0 -202
  184. package/cjs/types/CamStreamerAPI/vimeoSchema.js +0 -11
  185. package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +0 -202
  186. package/cjs/types/CamStreamerAPI/wowzaSchema.js +0 -11
  187. package/esm/types/CamStreamerAPI/churchSchema.js +0 -5
  188. package/esm/types/CamStreamerAPI/daCastSchema.js +0 -5
  189. package/esm/types/CamStreamerAPI/dailymotionSchema.js +0 -5
  190. package/esm/types/CamStreamerAPI/gameChangerSchema.js +0 -5
  191. package/esm/types/CamStreamerAPI/hlsPullSchema.js +0 -5
  192. package/esm/types/CamStreamerAPI/hlsPushSchema.js +0 -5
  193. package/esm/types/CamStreamerAPI/ibmSchema.js +0 -5
  194. package/esm/types/CamStreamerAPI/microsoftAzureSchema.js +0 -5
  195. package/esm/types/CamStreamerAPI/microsoftStreamSchema.js +0 -5
  196. package/esm/types/CamStreamerAPI/mpegDvbSchema.js +0 -21
  197. package/esm/types/CamStreamerAPI/rtmpSchema.js +0 -8
  198. package/esm/types/CamStreamerAPI/sdCardSchema.js +0 -5
  199. package/esm/types/CamStreamerAPI/srtSchema.js +0 -5
  200. package/esm/types/CamStreamerAPI/twitchSchema.js +0 -5
  201. package/esm/types/CamStreamerAPI/vimeoSchema.js +0 -5
  202. package/esm/types/CamStreamerAPI/wowzaSchema.js +0 -5
  203. package/types/types/CamStreamerAPI/churchSchema.d.ts +0 -202
  204. package/types/types/CamStreamerAPI/daCastSchema.d.ts +0 -202
  205. package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +0 -202
  206. package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +0 -202
  207. package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +0 -202
  208. package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +0 -202
  209. package/types/types/CamStreamerAPI/ibmSchema.d.ts +0 -202
  210. package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +0 -202
  211. package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +0 -202
  212. package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +0 -250
  213. package/types/types/CamStreamerAPI/rtmpSchema.d.ts +0 -211
  214. package/types/types/CamStreamerAPI/sdCardSchema.d.ts +0 -202
  215. package/types/types/CamStreamerAPI/srtSchema.d.ts +0 -202
  216. package/types/types/CamStreamerAPI/twitchSchema.d.ts +0 -202
  217. package/types/types/CamStreamerAPI/vimeoSchema.d.ts +0 -202
  218. package/types/types/CamStreamerAPI/wowzaSchema.d.ts +0 -202
@@ -10,58 +10,67 @@ declare const csEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10
10
  state: string;
11
11
  }>, z.ZodObject<{
12
12
  type: z.ZodLiteral<"StreamState">;
13
- streamID: z.ZodNumber;
14
- enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
15
- active: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
16
- automationState: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
17
- isStreaming: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
13
+ streamId: z.ZodString;
14
+ isStreaming: z.ZodBoolean;
15
+ active: z.ZodBoolean;
16
+ enabled: z.ZodBoolean;
18
17
  }, "strip", z.ZodTypeAny, {
19
18
  type: "StreamState";
20
- enabled: 0 | 1;
21
- active: 0 | 1;
22
- streamID: number;
23
- automationState: 0 | 1;
24
- isStreaming: 0 | 1;
19
+ streamId: string;
20
+ enabled: boolean;
21
+ active: boolean;
22
+ isStreaming: boolean;
25
23
  }, {
26
24
  type: "StreamState";
27
- enabled: 0 | 1;
28
- active: 0 | 1;
29
- streamID: number;
30
- automationState: 0 | 1;
31
- isStreaming: 0 | 1;
25
+ streamId: string;
26
+ enabled: boolean;
27
+ active: boolean;
28
+ isStreaming: boolean;
32
29
  }>, z.ZodObject<{
33
30
  type: z.ZodLiteral<"CS_API_SUCCESS">;
34
31
  apiCall: z.ZodString;
35
32
  message: z.ZodString;
36
- streamID: z.ZodString;
33
+ streamId: z.ZodString;
37
34
  }, "strip", z.ZodTypeAny, {
38
35
  message: string;
39
36
  type: "CS_API_SUCCESS";
40
- streamID: string;
37
+ streamId: string;
41
38
  apiCall: string;
42
39
  }, {
43
40
  message: string;
44
41
  type: "CS_API_SUCCESS";
45
- streamID: string;
42
+ streamId: string;
46
43
  apiCall: string;
47
44
  }>, z.ZodObject<{
48
45
  type: z.ZodLiteral<"CS_API_ERROR">;
49
46
  apiCall: z.ZodString;
50
47
  message: z.ZodString;
51
- streamID: z.ZodString;
48
+ streamId: z.ZodString;
52
49
  code: z.ZodString;
53
50
  }, "strip", z.ZodTypeAny, {
54
51
  code: string;
55
52
  message: string;
56
53
  type: "CS_API_ERROR";
57
- streamID: string;
54
+ streamId: string;
58
55
  apiCall: string;
59
56
  }, {
60
57
  code: string;
61
58
  message: string;
62
59
  type: "CS_API_ERROR";
63
- streamID: string;
60
+ streamId: string;
64
61
  apiCall: string;
62
+ }>, z.ZodObject<{
63
+ type: z.ZodLiteral<"PortChanged">;
64
+ port: z.ZodNumber;
65
+ value: z.ZodBoolean;
66
+ }, "strip", z.ZodTypeAny, {
67
+ value: boolean;
68
+ type: "PortChanged";
69
+ port: number;
70
+ }, {
71
+ value: boolean;
72
+ type: "PortChanged";
73
+ port: number;
65
74
  }>]>;
66
75
  export declare const csEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
67
76
  type: z.ZodLiteral<"init">;
@@ -76,58 +85,67 @@ export declare const csEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
76
85
  state: string;
77
86
  }>, z.ZodObject<{
78
87
  type: z.ZodLiteral<"StreamState">;
79
- streamID: z.ZodNumber;
80
- enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
81
- active: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
82
- automationState: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
83
- isStreaming: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
88
+ streamId: z.ZodString;
89
+ isStreaming: z.ZodBoolean;
90
+ active: z.ZodBoolean;
91
+ enabled: z.ZodBoolean;
84
92
  }, "strip", z.ZodTypeAny, {
85
93
  type: "StreamState";
86
- enabled: 0 | 1;
87
- active: 0 | 1;
88
- streamID: number;
89
- automationState: 0 | 1;
90
- isStreaming: 0 | 1;
94
+ streamId: string;
95
+ enabled: boolean;
96
+ active: boolean;
97
+ isStreaming: boolean;
91
98
  }, {
92
99
  type: "StreamState";
93
- enabled: 0 | 1;
94
- active: 0 | 1;
95
- streamID: number;
96
- automationState: 0 | 1;
97
- isStreaming: 0 | 1;
100
+ streamId: string;
101
+ enabled: boolean;
102
+ active: boolean;
103
+ isStreaming: boolean;
98
104
  }>, z.ZodObject<{
99
105
  type: z.ZodLiteral<"CS_API_SUCCESS">;
100
106
  apiCall: z.ZodString;
101
107
  message: z.ZodString;
102
- streamID: z.ZodString;
108
+ streamId: z.ZodString;
103
109
  }, "strip", z.ZodTypeAny, {
104
110
  message: string;
105
111
  type: "CS_API_SUCCESS";
106
- streamID: string;
112
+ streamId: string;
107
113
  apiCall: string;
108
114
  }, {
109
115
  message: string;
110
116
  type: "CS_API_SUCCESS";
111
- streamID: string;
117
+ streamId: string;
112
118
  apiCall: string;
113
119
  }>, z.ZodObject<{
114
120
  type: z.ZodLiteral<"CS_API_ERROR">;
115
121
  apiCall: z.ZodString;
116
122
  message: z.ZodString;
117
- streamID: z.ZodString;
123
+ streamId: z.ZodString;
118
124
  code: z.ZodString;
119
125
  }, "strip", z.ZodTypeAny, {
120
126
  code: string;
121
127
  message: string;
122
128
  type: "CS_API_ERROR";
123
- streamID: string;
129
+ streamId: string;
124
130
  apiCall: string;
125
131
  }, {
126
132
  code: string;
127
133
  message: string;
128
134
  type: "CS_API_ERROR";
129
- streamID: string;
135
+ streamId: string;
130
136
  apiCall: string;
137
+ }>, z.ZodObject<{
138
+ type: z.ZodLiteral<"PortChanged">;
139
+ port: z.ZodNumber;
140
+ value: z.ZodBoolean;
141
+ }, "strip", z.ZodTypeAny, {
142
+ value: boolean;
143
+ type: "PortChanged";
144
+ port: number;
145
+ }, {
146
+ value: boolean;
147
+ type: "PortChanged";
148
+ port: number;
131
149
  }>]>;
132
150
  }, "strip", z.ZodTypeAny, {
133
151
  type: "init";
@@ -136,22 +154,25 @@ export declare const csEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
136
154
  state: string;
137
155
  } | {
138
156
  type: "StreamState";
139
- enabled: 0 | 1;
140
- active: 0 | 1;
141
- streamID: number;
142
- automationState: 0 | 1;
143
- isStreaming: 0 | 1;
157
+ streamId: string;
158
+ enabled: boolean;
159
+ active: boolean;
160
+ isStreaming: boolean;
144
161
  } | {
145
162
  message: string;
146
163
  type: "CS_API_SUCCESS";
147
- streamID: string;
164
+ streamId: string;
148
165
  apiCall: string;
149
166
  } | {
150
167
  code: string;
151
168
  message: string;
152
169
  type: "CS_API_ERROR";
153
- streamID: string;
170
+ streamId: string;
154
171
  apiCall: string;
172
+ } | {
173
+ value: boolean;
174
+ type: "PortChanged";
175
+ port: number;
155
176
  };
156
177
  }, {
157
178
  type: "init";
@@ -160,22 +181,25 @@ export declare const csEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
160
181
  state: string;
161
182
  } | {
162
183
  type: "StreamState";
163
- enabled: 0 | 1;
164
- active: 0 | 1;
165
- streamID: number;
166
- automationState: 0 | 1;
167
- isStreaming: 0 | 1;
184
+ streamId: string;
185
+ enabled: boolean;
186
+ active: boolean;
187
+ isStreaming: boolean;
168
188
  } | {
169
189
  message: string;
170
190
  type: "CS_API_SUCCESS";
171
- streamID: string;
191
+ streamId: string;
172
192
  apiCall: string;
173
193
  } | {
174
194
  code: string;
175
195
  message: string;
176
196
  type: "CS_API_ERROR";
177
- streamID: string;
197
+ streamId: string;
178
198
  apiCall: string;
199
+ } | {
200
+ value: boolean;
201
+ type: "PortChanged";
202
+ port: number;
179
203
  };
180
204
  }>, z.ZodObject<{
181
205
  type: z.ZodLiteral<"authorization">;
@@ -188,58 +212,67 @@ export declare const csEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
188
212
  state: string;
189
213
  }>, z.ZodObject<{
190
214
  type: z.ZodLiteral<"StreamState">;
191
- streamID: z.ZodNumber;
192
- enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
193
- active: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
194
- automationState: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
195
- isStreaming: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
215
+ streamId: z.ZodString;
216
+ isStreaming: z.ZodBoolean;
217
+ active: z.ZodBoolean;
218
+ enabled: z.ZodBoolean;
196
219
  }, "strip", z.ZodTypeAny, {
197
220
  type: "StreamState";
198
- enabled: 0 | 1;
199
- active: 0 | 1;
200
- streamID: number;
201
- automationState: 0 | 1;
202
- isStreaming: 0 | 1;
221
+ streamId: string;
222
+ enabled: boolean;
223
+ active: boolean;
224
+ isStreaming: boolean;
203
225
  }, {
204
226
  type: "StreamState";
205
- enabled: 0 | 1;
206
- active: 0 | 1;
207
- streamID: number;
208
- automationState: 0 | 1;
209
- isStreaming: 0 | 1;
227
+ streamId: string;
228
+ enabled: boolean;
229
+ active: boolean;
230
+ isStreaming: boolean;
210
231
  }>, z.ZodObject<{
211
232
  type: z.ZodLiteral<"CS_API_SUCCESS">;
212
233
  apiCall: z.ZodString;
213
234
  message: z.ZodString;
214
- streamID: z.ZodString;
235
+ streamId: z.ZodString;
215
236
  }, "strip", z.ZodTypeAny, {
216
237
  message: string;
217
238
  type: "CS_API_SUCCESS";
218
- streamID: string;
239
+ streamId: string;
219
240
  apiCall: string;
220
241
  }, {
221
242
  message: string;
222
243
  type: "CS_API_SUCCESS";
223
- streamID: string;
244
+ streamId: string;
224
245
  apiCall: string;
225
246
  }>, z.ZodObject<{
226
247
  type: z.ZodLiteral<"CS_API_ERROR">;
227
248
  apiCall: z.ZodString;
228
249
  message: z.ZodString;
229
- streamID: z.ZodString;
250
+ streamId: z.ZodString;
230
251
  code: z.ZodString;
231
252
  }, "strip", z.ZodTypeAny, {
232
253
  code: string;
233
254
  message: string;
234
255
  type: "CS_API_ERROR";
235
- streamID: string;
256
+ streamId: string;
236
257
  apiCall: string;
237
258
  }, {
238
259
  code: string;
239
260
  message: string;
240
261
  type: "CS_API_ERROR";
241
- streamID: string;
262
+ streamId: string;
242
263
  apiCall: string;
264
+ }>, z.ZodObject<{
265
+ type: z.ZodLiteral<"PortChanged">;
266
+ port: z.ZodNumber;
267
+ value: z.ZodBoolean;
268
+ }, "strip", z.ZodTypeAny, {
269
+ value: boolean;
270
+ type: "PortChanged";
271
+ port: number;
272
+ }, {
273
+ value: boolean;
274
+ type: "PortChanged";
275
+ port: number;
243
276
  }>]>;
244
277
  export type TCamStreamerEvent = z.infer<typeof csEventsDataSchema>;
245
278
  export type TCamStreamerEventType = TCamStreamerEvent['type'];
@@ -23,12 +23,12 @@ declare const cswEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
23
23
  state: z.ZodBoolean;
24
24
  }, "strip", z.ZodTypeAny, {
25
25
  type: "StreamAvailable";
26
- stream_name: string;
27
26
  state: boolean;
27
+ stream_name: string;
28
28
  }, {
29
29
  type: "StreamAvailable";
30
- stream_name: string;
31
30
  state: boolean;
31
+ stream_name: string;
32
32
  }>, z.ZodObject<{
33
33
  type: z.ZodLiteral<"StreamSwitchAudio">;
34
34
  stream_name: z.ZodOptional<z.ZodString>;
@@ -176,12 +176,12 @@ export declare const cswEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
176
176
  state: z.ZodBoolean;
177
177
  }, "strip", z.ZodTypeAny, {
178
178
  type: "StreamAvailable";
179
- stream_name: string;
180
179
  state: boolean;
180
+ stream_name: string;
181
181
  }, {
182
182
  type: "StreamAvailable";
183
- stream_name: string;
184
183
  state: boolean;
184
+ stream_name: string;
185
185
  }>, z.ZodObject<{
186
186
  type: z.ZodLiteral<"StreamSwitchAudio">;
187
187
  stream_name: z.ZodOptional<z.ZodString>;
@@ -313,8 +313,8 @@ export declare const cswEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
313
313
  playlist_name: string;
314
314
  } | {
315
315
  type: "StreamAvailable";
316
- stream_name: string;
317
316
  state: boolean;
317
+ stream_name: string;
318
318
  } | {
319
319
  type: "StreamSwitchAudio";
320
320
  master_audio: boolean;
@@ -366,8 +366,8 @@ export declare const cswEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
366
366
  playlist_name: string;
367
367
  } | {
368
368
  type: "StreamAvailable";
369
- stream_name: string;
370
369
  state: boolean;
370
+ stream_name: string;
371
371
  } | {
372
372
  type: "StreamSwitchAudio";
373
373
  master_audio: boolean;
@@ -433,12 +433,12 @@ export declare const cswEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
433
433
  state: z.ZodBoolean;
434
434
  }, "strip", z.ZodTypeAny, {
435
435
  type: "StreamAvailable";
436
- stream_name: string;
437
436
  state: boolean;
437
+ stream_name: string;
438
438
  }, {
439
439
  type: "StreamAvailable";
440
- stream_name: string;
441
440
  state: boolean;
441
+ stream_name: string;
442
442
  }>, z.ZodObject<{
443
443
  type: z.ZodLiteral<"StreamSwitchAudio">;
444
444
  stream_name: z.ZodOptional<z.ZodString>;
@@ -419,11 +419,11 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
419
419
  userPriority: string;
420
420
  }>;
421
421
  postJsonBody: z.ZodObject<{
422
- mode: z.ZodUnion<[z.ZodLiteral<"MANUAL">, z.ZodLiteral<"AUTOMATIC">]>;
422
+ mode: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"MANUAL">, z.ZodLiteral<"AUTOMATIC">]>>;
423
423
  }, "strip", z.ZodTypeAny, {
424
424
  mode: "MANUAL" | "AUTOMATIC";
425
425
  }, {
426
- mode: "MANUAL" | "AUTOMATIC";
426
+ mode?: "MANUAL" | "AUTOMATIC" | undefined;
427
427
  }>;
428
428
  }, "strip", z.ZodTypeAny, {
429
429
  params: {
@@ -445,7 +445,7 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
445
445
  ip: string;
446
446
  cgi: PlaneTrackerUserActions.SET_TRACKING_MODE;
447
447
  postJsonBody: {
448
- mode: "MANUAL" | "AUTOMATIC";
448
+ mode?: "MANUAL" | "AUTOMATIC" | undefined;
449
449
  };
450
450
  }>, z.ZodObject<{
451
451
  cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_ZONES>;
@@ -1,202 +0,0 @@
1
- import z from 'zod';
2
- export declare const churchSchema: z.ZodObject<{
3
- id: z.ZodNumber;
4
- enabled: z.ZodBoolean;
5
- active: z.ZodBoolean;
6
- title: z.ZodString;
7
- trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8
- type: z.ZodLiteral<"manual">;
9
- ioPort: z.ZodNullable<z.ZodString>;
10
- }, "strip", z.ZodTypeAny, {
11
- type: "manual";
12
- ioPort: string | null;
13
- }, {
14
- type: "manual";
15
- ioPort: string | null;
16
- }>, z.ZodObject<{
17
- type: z.ZodLiteral<"onetime">;
18
- startTime: z.ZodNumber;
19
- stopTime: z.ZodNumber;
20
- }, "strip", z.ZodTypeAny, {
21
- type: "onetime";
22
- startTime: number;
23
- stopTime: number;
24
- }, {
25
- type: "onetime";
26
- startTime: number;
27
- stopTime: number;
28
- }>, z.ZodObject<{
29
- type: z.ZodLiteral<"recurrent">;
30
- schedule: z.ZodArray<z.ZodObject<{
31
- start: z.ZodObject<{
32
- day: z.ZodNumber;
33
- timeS: z.ZodNumber;
34
- }, "strip", z.ZodTypeAny, {
35
- day: number;
36
- timeS: number;
37
- }, {
38
- day: number;
39
- timeS: number;
40
- }>;
41
- stop: z.ZodObject<{
42
- day: z.ZodNumber;
43
- timeS: z.ZodNumber;
44
- }, "strip", z.ZodTypeAny, {
45
- day: number;
46
- timeS: number;
47
- }, {
48
- day: number;
49
- timeS: number;
50
- }>;
51
- isActive: z.ZodBoolean;
52
- }, "strip", z.ZodTypeAny, {
53
- start: {
54
- day: number;
55
- timeS: number;
56
- };
57
- stop: {
58
- day: number;
59
- timeS: number;
60
- };
61
- isActive: boolean;
62
- }, {
63
- start: {
64
- day: number;
65
- timeS: number;
66
- };
67
- stop: {
68
- day: number;
69
- timeS: number;
70
- };
71
- isActive: boolean;
72
- }>, "many">;
73
- }, "strip", z.ZodTypeAny, {
74
- type: "recurrent";
75
- schedule: {
76
- start: {
77
- day: number;
78
- timeS: number;
79
- };
80
- stop: {
81
- day: number;
82
- timeS: number;
83
- };
84
- isActive: boolean;
85
- }[];
86
- }, {
87
- type: "recurrent";
88
- schedule: {
89
- start: {
90
- day: number;
91
- timeS: number;
92
- };
93
- stop: {
94
- day: number;
95
- timeS: number;
96
- };
97
- isActive: boolean;
98
- }[];
99
- }>]>;
100
- inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
101
- internalVapixParameters: z.ZodObject<{
102
- camera: z.ZodString;
103
- resolution: z.ZodOptional<z.ZodString>;
104
- compression: z.ZodOptional<z.ZodNumber>;
105
- fps: z.ZodOptional<z.ZodNumber>;
106
- videobitrate: z.ZodOptional<z.ZodNumber>;
107
- videomaxbitrate: z.ZodOptional<z.ZodNumber>;
108
- audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
109
- }, "strip", z.ZodTypeAny, {
110
- camera: string;
111
- resolution?: string | undefined;
112
- compression?: number | undefined;
113
- audio?: 0 | 1 | undefined;
114
- fps?: number | undefined;
115
- videobitrate?: number | undefined;
116
- videomaxbitrate?: number | undefined;
117
- }, {
118
- camera: string;
119
- resolution?: string | undefined;
120
- compression?: number | undefined;
121
- audio?: 0 | 1 | undefined;
122
- fps?: number | undefined;
123
- videobitrate?: number | undefined;
124
- videomaxbitrate?: number | undefined;
125
- }>;
126
- } & {
127
- type: z.ZodLiteral<"church">;
128
- }, "strip", z.ZodTypeAny, {
129
- type: "church";
130
- enabled: boolean;
131
- id: number;
132
- active: boolean;
133
- title: string;
134
- trigger: {
135
- type: "manual";
136
- ioPort: string | null;
137
- } | {
138
- type: "onetime";
139
- startTime: number;
140
- stopTime: number;
141
- } | {
142
- type: "recurrent";
143
- schedule: {
144
- start: {
145
- day: number;
146
- timeS: number;
147
- };
148
- stop: {
149
- day: number;
150
- timeS: number;
151
- };
152
- isActive: boolean;
153
- }[];
154
- };
155
- inputType: "RTSP_URL" | "CSw" | "CRS";
156
- internalVapixParameters: {
157
- camera: string;
158
- resolution?: string | undefined;
159
- compression?: number | undefined;
160
- audio?: 0 | 1 | undefined;
161
- fps?: number | undefined;
162
- videobitrate?: number | undefined;
163
- videomaxbitrate?: number | undefined;
164
- };
165
- }, {
166
- type: "church";
167
- enabled: boolean;
168
- id: number;
169
- active: boolean;
170
- title: string;
171
- trigger: {
172
- type: "manual";
173
- ioPort: string | null;
174
- } | {
175
- type: "onetime";
176
- startTime: number;
177
- stopTime: number;
178
- } | {
179
- type: "recurrent";
180
- schedule: {
181
- start: {
182
- day: number;
183
- timeS: number;
184
- };
185
- stop: {
186
- day: number;
187
- timeS: number;
188
- };
189
- isActive: boolean;
190
- }[];
191
- };
192
- inputType: "RTSP_URL" | "CSw" | "CRS";
193
- internalVapixParameters: {
194
- camera: string;
195
- resolution?: string | undefined;
196
- compression?: number | undefined;
197
- audio?: 0 | 1 | undefined;
198
- fps?: number | undefined;
199
- videobitrate?: number | undefined;
200
- videomaxbitrate?: number | undefined;
201
- };
202
- }>;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.churchSchema = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- const streamCommonTypes_1 = require("./streamCommonTypes");
9
- exports.churchSchema = streamCommonTypes_1.streamCommonSchema.extend({
10
- type: zod_1.default.literal('church'),
11
- });