camstreamerlib 4.0.36 → 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.
Files changed (110) hide show
  1. package/README.md +21 -2
  2. package/cjs/CamOverlayAPI.d.ts +223 -208
  3. package/cjs/CamStreamerAPI.d.ts +330 -311
  4. package/cjs/CamStreamerAPI.js +1 -1
  5. package/cjs/CamSwitcherAPI.d.ts +31 -30
  6. package/cjs/CamSwitcherAPI.js +2 -0
  7. package/cjs/PlaneTrackerAPI.d.ts +103 -40
  8. package/cjs/VapixAPI.d.ts +31 -17
  9. package/cjs/VapixAPI.js +1 -1
  10. package/cjs/errors/errors.d.ts +1 -1
  11. package/cjs/errors/errors.js +2 -2
  12. package/cjs/internal/versionCompare.d.ts +2 -2
  13. package/cjs/node/events/AxisCameraStationEvents.js +2 -1
  14. package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +477 -3812
  15. package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +2 -2
  16. package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +12 -67
  17. package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +40 -572
  18. package/cjs/types/CamOverlayAPI/htmlOverlaySchema.d.ts +6 -59
  19. package/cjs/types/CamOverlayAPI/htmlOverlaySchema.js +1 -1
  20. package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +6 -75
  21. package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +11 -74
  22. package/cjs/types/CamOverlayAPI/pipSchema.d.ts +12 -97
  23. package/cjs/types/CamOverlayAPI/pipSchema.js +2 -2
  24. package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +12 -71
  25. package/cjs/types/CamOverlayAPI/ptzCompassSchema.js +1 -1
  26. package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +8 -99
  27. package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +20 -254
  28. package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +5 -43
  29. package/cjs/types/CamOverlayAPI/serviceCommonTypes.d.ts +15 -94
  30. package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +5 -43
  31. package/cjs/types/CamScripterAPI.d.ts +11 -81
  32. package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +1409 -22709
  33. package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +32 -509
  34. package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +8 -143
  35. package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +32 -493
  36. package/cjs/types/CamStreamerAPI/streamsSchema.d.ts +425 -7786
  37. package/cjs/types/CamStreamerAPI/windySchema.d.ts +36 -476
  38. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +32 -487
  39. package/cjs/types/CamStreamerAPI/youtubeSchema.js +1 -1
  40. package/cjs/types/CamSwitcherAPI.d.ts +75 -700
  41. package/cjs/types/CamSwitcherAPI.js +1 -0
  42. package/cjs/types/GenetecAgent.d.ts +12 -132
  43. package/cjs/types/MilestoneAgent.d.ts +4 -46
  44. package/cjs/types/PlaneTrackerAPI.d.ts +266 -1188
  45. package/cjs/types/PlaneTrackerAPI.js +16 -6
  46. package/cjs/types/PlaneTrackerAPI.test.js +27 -0
  47. package/cjs/types/VapixAPI.d.ts +129 -1653
  48. package/cjs/types/VapixAPI.js +1 -1
  49. package/cjs/types/common.d.ts +11 -35
  50. package/cjs/types/common.js +1 -1
  51. package/cjs/types/ws/CamOverlayEvents.d.ts +9 -69
  52. package/cjs/types/ws/CamStreamerEvents.d.ts +19 -217
  53. package/cjs/types/ws/CamSwitcherEvents.d.ts +46 -452
  54. package/cjs/types/ws/PlaneTrackerEvents.d.ts +361 -3522
  55. package/cjs/types/ws/PlaneTrackerEvents.js +1 -1
  56. package/esm/CamStreamerAPI.js +1 -1
  57. package/esm/CamSwitcherAPI.js +2 -0
  58. package/esm/VapixAPI.js +1 -1
  59. package/esm/errors/errors.js +2 -2
  60. package/esm/node/events/AxisCameraStationEvents.js +2 -1
  61. package/esm/types/CamOverlayAPI/CamOverlayAPI.js +2 -2
  62. package/esm/types/CamOverlayAPI/htmlOverlaySchema.js +1 -1
  63. package/esm/types/CamOverlayAPI/pipSchema.js +2 -2
  64. package/esm/types/CamOverlayAPI/ptzCompassSchema.js +1 -1
  65. package/esm/types/CamStreamerAPI/youtubeSchema.js +1 -1
  66. package/esm/types/CamSwitcherAPI.js +1 -0
  67. package/esm/types/PlaneTrackerAPI.js +16 -6
  68. package/esm/types/PlaneTrackerAPI.test.js +27 -0
  69. package/esm/types/VapixAPI.js +1 -1
  70. package/esm/types/common.js +1 -1
  71. package/esm/types/ws/PlaneTrackerEvents.js +1 -1
  72. package/package.json +107 -107
  73. package/types/CamOverlayAPI.d.ts +223 -208
  74. package/types/CamStreamerAPI.d.ts +330 -311
  75. package/types/CamSwitcherAPI.d.ts +31 -30
  76. package/types/PlaneTrackerAPI.d.ts +103 -40
  77. package/types/VapixAPI.d.ts +31 -17
  78. package/types/errors/errors.d.ts +1 -1
  79. package/types/internal/versionCompare.d.ts +2 -2
  80. package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +477 -3812
  81. package/types/types/CamOverlayAPI/accuweatherSchema.d.ts +12 -67
  82. package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +40 -572
  83. package/types/types/CamOverlayAPI/htmlOverlaySchema.d.ts +6 -59
  84. package/types/types/CamOverlayAPI/imagesSchema.d.ts +6 -75
  85. package/types/types/CamOverlayAPI/infotickerSchema.d.ts +11 -74
  86. package/types/types/CamOverlayAPI/pipSchema.d.ts +12 -97
  87. package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +12 -71
  88. package/types/types/CamOverlayAPI/ptzSchema.d.ts +8 -99
  89. package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +20 -254
  90. package/types/types/CamOverlayAPI/screenSharingSchema.d.ts +5 -43
  91. package/types/types/CamOverlayAPI/serviceCommonTypes.d.ts +15 -94
  92. package/types/types/CamOverlayAPI/webCameraSharingSchema.d.ts +5 -43
  93. package/types/types/CamScripterAPI.d.ts +11 -81
  94. package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +1409 -22709
  95. package/types/types/CamStreamerAPI/facebookSchema.d.ts +32 -509
  96. package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +8 -143
  97. package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +32 -493
  98. package/types/types/CamStreamerAPI/streamsSchema.d.ts +425 -7786
  99. package/types/types/CamStreamerAPI/windySchema.d.ts +36 -476
  100. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +32 -487
  101. package/types/types/CamSwitcherAPI.d.ts +75 -700
  102. package/types/types/GenetecAgent.d.ts +12 -132
  103. package/types/types/MilestoneAgent.d.ts +4 -46
  104. package/types/types/PlaneTrackerAPI.d.ts +266 -1188
  105. package/types/types/VapixAPI.d.ts +129 -1653
  106. package/types/types/common.d.ts +11 -35
  107. package/types/types/ws/CamOverlayEvents.d.ts +9 -69
  108. package/types/types/ws/CamStreamerEvents.d.ts +19 -217
  109. package/types/types/ws/CamSwitcherEvents.d.ts +46 -452
  110. package/types/types/ws/PlaneTrackerEvents.d.ts +361 -3522
@@ -10,7 +10,7 @@ export declare const mappingZonesCountdownSettingsSchema: z.ZodObject<{
10
10
  displaySeconds: z.ZodBoolean;
11
11
  idleText: z.ZodString;
12
12
  hideZeros: z.ZodBoolean;
13
- delimiter: z.ZodUnion<[z.ZodLiteral<"colon">, z.ZodLiteral<"letters">]>;
13
+ delimiter: z.ZodUnion<readonly [z.ZodLiteral<"colon">, z.ZodLiteral<"letters">]>;
14
14
  suffixSeconds: z.ZodString;
15
15
  suffixMinute: z.ZodString;
16
16
  suffixHour: z.ZodString;
@@ -18,130 +18,42 @@ export declare const mappingZonesCountdownSettingsSchema: z.ZodObject<{
18
18
  loop: z.ZodBoolean;
19
19
  loopPeriod: z.ZodNumber;
20
20
  waitingPeriod: z.ZodNumber;
21
- }, "strip", z.ZodTypeAny, {
22
- countdown: boolean;
23
- loop: boolean;
24
- startDate: number;
25
- targetDate: number;
26
- countup: boolean;
27
- displayDay: boolean;
28
- displayHour: boolean;
29
- displayMinute: boolean;
30
- displaySeconds: boolean;
31
- idleText: string;
32
- hideZeros: boolean;
33
- delimiter: "colon" | "letters";
34
- suffixSeconds: string;
35
- suffixMinute: string;
36
- suffixHour: string;
37
- suffixDay: string;
38
- loopPeriod: number;
39
- waitingPeriod: number;
40
- }, {
41
- countdown: boolean;
42
- loop: boolean;
43
- startDate: number;
44
- targetDate: number;
45
- countup: boolean;
46
- displayDay: boolean;
47
- displayHour: boolean;
48
- displayMinute: boolean;
49
- displaySeconds: boolean;
50
- idleText: string;
51
- hideZeros: boolean;
52
- delimiter: "colon" | "letters";
53
- suffixSeconds: string;
54
- suffixMinute: string;
55
- suffixHour: string;
56
- suffixDay: string;
57
- loopPeriod: number;
58
- waitingPeriod: number;
59
- }>;
60
- export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
21
+ }, z.core.$strip>;
22
+ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
61
23
  name: z.ZodString;
62
24
  pos_x: z.ZodNumber;
63
25
  pos_y: z.ZodNumber;
64
26
  text: z.ZodOptional<z.ZodArray<z.ZodObject<{
65
27
  source: z.ZodString;
66
28
  active: z.ZodBoolean;
67
- }, "strip", z.ZodTypeAny, {
68
- active: boolean;
69
- source: string;
70
- }, {
71
- active: boolean;
72
- source: string;
73
- }>, "many">>;
29
+ }, z.core.$strip>>>;
74
30
  wrapText: z.ZodBoolean;
75
31
  textLines: z.ZodNumber;
76
32
  textWidth: z.ZodNumber;
77
- textAlign: z.ZodUnion<[z.ZodLiteral<"A_LEFT">, z.ZodLiteral<"A_CENTER">, z.ZodLiteral<"A_RIGHT">]>;
78
- textVerticalAlign: z.ZodUnion<[z.ZodLiteral<"VA_TOP">, z.ZodLiteral<"VA_CENTER">, z.ZodLiteral<"VA_BOTTOM">]>;
33
+ textAlign: z.ZodUnion<readonly [z.ZodLiteral<"A_LEFT">, z.ZodLiteral<"A_CENTER">, z.ZodLiteral<"A_RIGHT">]>;
34
+ textVerticalAlign: z.ZodUnion<readonly [z.ZodLiteral<"VA_TOP">, z.ZodLiteral<"VA_CENTER">, z.ZodLiteral<"VA_BOTTOM">]>;
79
35
  textColor: z.ZodString;
80
- font: z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodLiteral<"digital">, z.ZodType<string, z.ZodTypeDef, string>]>;
36
+ font: z.ZodUnion<readonly [z.ZodLiteral<"classic">, z.ZodLiteral<"digital">, z.ZodCustom<string, string>]>;
81
37
  fontSize: z.ZodNumber;
82
38
  switchingTime: z.ZodNumber;
83
- } & {
84
39
  type: z.ZodLiteral<"plain">;
85
- }, "strip", z.ZodTypeAny, {
86
- type: "plain";
87
- name: string;
88
- pos_x: number;
89
- pos_y: number;
90
- textColor: string;
91
- switchingTime: number;
92
- font: string;
93
- fontSize: number;
94
- wrapText: boolean;
95
- textLines: number;
96
- textWidth: number;
97
- textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
98
- textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
99
- text?: {
100
- active: boolean;
101
- source: string;
102
- }[] | undefined;
103
- }, {
104
- type: "plain";
105
- name: string;
106
- pos_x: number;
107
- pos_y: number;
108
- textColor: string;
109
- switchingTime: number;
110
- font: string;
111
- fontSize: number;
112
- wrapText: boolean;
113
- textLines: number;
114
- textWidth: number;
115
- textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
116
- textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
117
- text?: {
118
- active: boolean;
119
- source: string;
120
- }[] | undefined;
121
- }>, z.ZodObject<{
40
+ }, z.core.$strip>, z.ZodObject<{
122
41
  name: z.ZodString;
123
42
  pos_x: z.ZodNumber;
124
43
  pos_y: z.ZodNumber;
125
44
  text: z.ZodOptional<z.ZodArray<z.ZodObject<{
126
45
  source: z.ZodString;
127
46
  active: z.ZodBoolean;
128
- }, "strip", z.ZodTypeAny, {
129
- active: boolean;
130
- source: string;
131
- }, {
132
- active: boolean;
133
- source: string;
134
- }>, "many">>;
47
+ }, z.core.$strip>>>;
135
48
  wrapText: z.ZodBoolean;
136
49
  textLines: z.ZodNumber;
137
50
  textWidth: z.ZodNumber;
138
- textAlign: z.ZodUnion<[z.ZodLiteral<"A_LEFT">, z.ZodLiteral<"A_CENTER">, z.ZodLiteral<"A_RIGHT">]>;
139
- textVerticalAlign: z.ZodUnion<[z.ZodLiteral<"VA_TOP">, z.ZodLiteral<"VA_CENTER">, z.ZodLiteral<"VA_BOTTOM">]>;
51
+ textAlign: z.ZodUnion<readonly [z.ZodLiteral<"A_LEFT">, z.ZodLiteral<"A_CENTER">, z.ZodLiteral<"A_RIGHT">]>;
52
+ textVerticalAlign: z.ZodUnion<readonly [z.ZodLiteral<"VA_TOP">, z.ZodLiteral<"VA_CENTER">, z.ZodLiteral<"VA_BOTTOM">]>;
140
53
  textColor: z.ZodString;
141
- font: z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodLiteral<"digital">, z.ZodType<string, z.ZodTypeDef, string>]>;
54
+ font: z.ZodUnion<readonly [z.ZodLiteral<"classic">, z.ZodLiteral<"digital">, z.ZodCustom<string, string>]>;
142
55
  fontSize: z.ZodNumber;
143
56
  switchingTime: z.ZodNumber;
144
- } & {
145
57
  type: z.ZodLiteral<"countdown">;
146
58
  settings: z.ZodObject<{
147
59
  startDate: z.ZodNumber;
@@ -154,7 +66,7 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
154
66
  displaySeconds: z.ZodBoolean;
155
67
  idleText: z.ZodString;
156
68
  hideZeros: z.ZodBoolean;
157
- delimiter: z.ZodUnion<[z.ZodLiteral<"colon">, z.ZodLiteral<"letters">]>;
69
+ delimiter: z.ZodUnion<readonly [z.ZodLiteral<"colon">, z.ZodLiteral<"letters">]>;
158
70
  suffixSeconds: z.ZodString;
159
71
  suffixMinute: z.ZodString;
160
72
  suffixHour: z.ZodString;
@@ -162,231 +74,69 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
162
74
  loop: z.ZodBoolean;
163
75
  loopPeriod: z.ZodNumber;
164
76
  waitingPeriod: z.ZodNumber;
165
- }, "strip", z.ZodTypeAny, {
166
- countdown: boolean;
167
- loop: boolean;
168
- startDate: number;
169
- targetDate: number;
170
- countup: boolean;
171
- displayDay: boolean;
172
- displayHour: boolean;
173
- displayMinute: boolean;
174
- displaySeconds: boolean;
175
- idleText: string;
176
- hideZeros: boolean;
177
- delimiter: "colon" | "letters";
178
- suffixSeconds: string;
179
- suffixMinute: string;
180
- suffixHour: string;
181
- suffixDay: string;
182
- loopPeriod: number;
183
- waitingPeriod: number;
184
- }, {
185
- countdown: boolean;
186
- loop: boolean;
187
- startDate: number;
188
- targetDate: number;
189
- countup: boolean;
190
- displayDay: boolean;
191
- displayHour: boolean;
192
- displayMinute: boolean;
193
- displaySeconds: boolean;
194
- idleText: string;
195
- hideZeros: boolean;
196
- delimiter: "colon" | "letters";
197
- suffixSeconds: string;
198
- suffixMinute: string;
199
- suffixHour: string;
200
- suffixDay: string;
201
- loopPeriod: number;
202
- waitingPeriod: number;
203
- }>;
204
- }, "strip", z.ZodTypeAny, {
205
- type: "countdown";
206
- name: string;
207
- pos_x: number;
208
- pos_y: number;
209
- textColor: string;
210
- switchingTime: number;
211
- font: string;
212
- fontSize: number;
213
- wrapText: boolean;
214
- textLines: number;
215
- textWidth: number;
216
- textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
217
- textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
218
- settings: {
219
- countdown: boolean;
220
- loop: boolean;
221
- startDate: number;
222
- targetDate: number;
223
- countup: boolean;
224
- displayDay: boolean;
225
- displayHour: boolean;
226
- displayMinute: boolean;
227
- displaySeconds: boolean;
228
- idleText: string;
229
- hideZeros: boolean;
230
- delimiter: "colon" | "letters";
231
- suffixSeconds: string;
232
- suffixMinute: string;
233
- suffixHour: string;
234
- suffixDay: string;
235
- loopPeriod: number;
236
- waitingPeriod: number;
237
- };
238
- text?: {
239
- active: boolean;
240
- source: string;
241
- }[] | undefined;
242
- }, {
243
- type: "countdown";
244
- name: string;
245
- pos_x: number;
246
- pos_y: number;
247
- textColor: string;
248
- switchingTime: number;
249
- font: string;
250
- fontSize: number;
251
- wrapText: boolean;
252
- textLines: number;
253
- textWidth: number;
254
- textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
255
- textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
256
- settings: {
257
- countdown: boolean;
258
- loop: boolean;
259
- startDate: number;
260
- targetDate: number;
261
- countup: boolean;
262
- displayDay: boolean;
263
- displayHour: boolean;
264
- displayMinute: boolean;
265
- displaySeconds: boolean;
266
- idleText: string;
267
- hideZeros: boolean;
268
- delimiter: "colon" | "letters";
269
- suffixSeconds: string;
270
- suffixMinute: string;
271
- suffixHour: string;
272
- suffixDay: string;
273
- loopPeriod: number;
274
- waitingPeriod: number;
275
- };
276
- text?: {
277
- active: boolean;
278
- source: string;
279
- }[] | undefined;
280
- }>]>;
77
+ }, z.core.$strip>;
78
+ }, z.core.$strip>], "type">;
281
79
  export declare const customGraphicsSchema: z.ZodObject<{
282
80
  id: z.ZodNumber;
283
- enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
284
- automationType: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"time">, z.ZodLiteral<"manual">, z.ZodLiteral<"schedule">, z.ZodType<`input${number}`, z.ZodTypeDef, `input${number}`>]>>;
81
+ enabled: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>;
82
+ automationType: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"time">, z.ZodLiteral<"manual">, z.ZodLiteral<"schedule">, z.ZodCustom<`input${number}`, `input${number}`>]>>;
285
83
  invertInput: z.ZodOptional<z.ZodBoolean>;
286
- cameraList: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
84
+ cameraList: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
287
85
  camera: z.ZodOptional<z.ZodNumber>;
288
86
  schedule: z.ZodOptional<z.ZodString>;
289
87
  customName: z.ZodDefault<z.ZodString>;
290
88
  zIndex: z.ZodOptional<z.ZodNumber>;
291
89
  width: z.ZodNumber;
292
90
  height: z.ZodNumber;
293
- } & {
294
91
  name: z.ZodLiteral<"customGraphics">;
295
92
  pos_x: z.ZodNumber;
296
93
  pos_y: z.ZodNumber;
297
- coordSystem: z.ZodUnion<[z.ZodLiteral<"top_left">, z.ZodLiteral<"top">, z.ZodLiteral<"top_right">, z.ZodLiteral<"left">, z.ZodLiteral<"center">, z.ZodLiteral<"right">, z.ZodLiteral<"bottom_left">, z.ZodLiteral<"bottom">, z.ZodLiteral<"bottom_right">]>;
298
- clockFormat: z.ZodUnion<[z.ZodLiteral<"12h">, z.ZodLiteral<"24h">]>;
299
- background: z.ZodEnum<["custom", "image"]>;
94
+ coordSystem: z.ZodUnion<readonly [z.ZodLiteral<"top_left">, z.ZodLiteral<"top">, z.ZodLiteral<"top_right">, z.ZodLiteral<"left">, z.ZodLiteral<"center">, z.ZodLiteral<"right">, z.ZodLiteral<"bottom_left">, z.ZodLiteral<"bottom">, z.ZodLiteral<"bottom_right">]>;
95
+ clockFormat: z.ZodUnion<readonly [z.ZodLiteral<"12h">, z.ZodLiteral<"24h">]>;
96
+ background: z.ZodEnum<{
97
+ custom: "custom";
98
+ image: "image";
99
+ }>;
300
100
  image: z.ZodString;
301
101
  customAreaColor: z.ZodString;
302
102
  customAreaWidth: z.ZodNumber;
303
103
  customAreaHeight: z.ZodNumber;
304
- customAreaCorners: z.ZodUnion<[z.ZodLiteral<"sharp">, z.ZodLiteral<"rounded">]>;
305
- mappingZones: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
104
+ customAreaCorners: z.ZodUnion<readonly [z.ZodLiteral<"sharp">, z.ZodLiteral<"rounded">]>;
105
+ mappingZones: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
306
106
  name: z.ZodString;
307
107
  pos_x: z.ZodNumber;
308
108
  pos_y: z.ZodNumber;
309
109
  text: z.ZodOptional<z.ZodArray<z.ZodObject<{
310
110
  source: z.ZodString;
311
111
  active: z.ZodBoolean;
312
- }, "strip", z.ZodTypeAny, {
313
- active: boolean;
314
- source: string;
315
- }, {
316
- active: boolean;
317
- source: string;
318
- }>, "many">>;
112
+ }, z.core.$strip>>>;
319
113
  wrapText: z.ZodBoolean;
320
114
  textLines: z.ZodNumber;
321
115
  textWidth: z.ZodNumber;
322
- textAlign: z.ZodUnion<[z.ZodLiteral<"A_LEFT">, z.ZodLiteral<"A_CENTER">, z.ZodLiteral<"A_RIGHT">]>;
323
- textVerticalAlign: z.ZodUnion<[z.ZodLiteral<"VA_TOP">, z.ZodLiteral<"VA_CENTER">, z.ZodLiteral<"VA_BOTTOM">]>;
116
+ textAlign: z.ZodUnion<readonly [z.ZodLiteral<"A_LEFT">, z.ZodLiteral<"A_CENTER">, z.ZodLiteral<"A_RIGHT">]>;
117
+ textVerticalAlign: z.ZodUnion<readonly [z.ZodLiteral<"VA_TOP">, z.ZodLiteral<"VA_CENTER">, z.ZodLiteral<"VA_BOTTOM">]>;
324
118
  textColor: z.ZodString;
325
- font: z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodLiteral<"digital">, z.ZodType<string, z.ZodTypeDef, string>]>;
119
+ font: z.ZodUnion<readonly [z.ZodLiteral<"classic">, z.ZodLiteral<"digital">, z.ZodCustom<string, string>]>;
326
120
  fontSize: z.ZodNumber;
327
121
  switchingTime: z.ZodNumber;
328
- } & {
329
122
  type: z.ZodLiteral<"plain">;
330
- }, "strip", z.ZodTypeAny, {
331
- type: "plain";
332
- name: string;
333
- pos_x: number;
334
- pos_y: number;
335
- textColor: string;
336
- switchingTime: number;
337
- font: string;
338
- fontSize: number;
339
- wrapText: boolean;
340
- textLines: number;
341
- textWidth: number;
342
- textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
343
- textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
344
- text?: {
345
- active: boolean;
346
- source: string;
347
- }[] | undefined;
348
- }, {
349
- type: "plain";
350
- name: string;
351
- pos_x: number;
352
- pos_y: number;
353
- textColor: string;
354
- switchingTime: number;
355
- font: string;
356
- fontSize: number;
357
- wrapText: boolean;
358
- textLines: number;
359
- textWidth: number;
360
- textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
361
- textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
362
- text?: {
363
- active: boolean;
364
- source: string;
365
- }[] | undefined;
366
- }>, z.ZodObject<{
123
+ }, z.core.$strip>, z.ZodObject<{
367
124
  name: z.ZodString;
368
125
  pos_x: z.ZodNumber;
369
126
  pos_y: z.ZodNumber;
370
127
  text: z.ZodOptional<z.ZodArray<z.ZodObject<{
371
128
  source: z.ZodString;
372
129
  active: z.ZodBoolean;
373
- }, "strip", z.ZodTypeAny, {
374
- active: boolean;
375
- source: string;
376
- }, {
377
- active: boolean;
378
- source: string;
379
- }>, "many">>;
130
+ }, z.core.$strip>>>;
380
131
  wrapText: z.ZodBoolean;
381
132
  textLines: z.ZodNumber;
382
133
  textWidth: z.ZodNumber;
383
- textAlign: z.ZodUnion<[z.ZodLiteral<"A_LEFT">, z.ZodLiteral<"A_CENTER">, z.ZodLiteral<"A_RIGHT">]>;
384
- textVerticalAlign: z.ZodUnion<[z.ZodLiteral<"VA_TOP">, z.ZodLiteral<"VA_CENTER">, z.ZodLiteral<"VA_BOTTOM">]>;
134
+ textAlign: z.ZodUnion<readonly [z.ZodLiteral<"A_LEFT">, z.ZodLiteral<"A_CENTER">, z.ZodLiteral<"A_RIGHT">]>;
135
+ textVerticalAlign: z.ZodUnion<readonly [z.ZodLiteral<"VA_TOP">, z.ZodLiteral<"VA_CENTER">, z.ZodLiteral<"VA_BOTTOM">]>;
385
136
  textColor: z.ZodString;
386
- font: z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodLiteral<"digital">, z.ZodType<string, z.ZodTypeDef, string>]>;
137
+ font: z.ZodUnion<readonly [z.ZodLiteral<"classic">, z.ZodLiteral<"digital">, z.ZodCustom<string, string>]>;
387
138
  fontSize: z.ZodNumber;
388
139
  switchingTime: z.ZodNumber;
389
- } & {
390
140
  type: z.ZodLiteral<"countdown">;
391
141
  settings: z.ZodObject<{
392
142
  startDate: z.ZodNumber;
@@ -399,7 +149,7 @@ export declare const customGraphicsSchema: z.ZodObject<{
399
149
  displaySeconds: z.ZodBoolean;
400
150
  idleText: z.ZodString;
401
151
  hideZeros: z.ZodBoolean;
402
- delimiter: z.ZodUnion<[z.ZodLiteral<"colon">, z.ZodLiteral<"letters">]>;
152
+ delimiter: z.ZodUnion<readonly [z.ZodLiteral<"colon">, z.ZodLiteral<"letters">]>;
403
153
  suffixSeconds: z.ZodString;
404
154
  suffixMinute: z.ZodString;
405
155
  suffixHour: z.ZodString;
@@ -407,294 +157,12 @@ export declare const customGraphicsSchema: z.ZodObject<{
407
157
  loop: z.ZodBoolean;
408
158
  loopPeriod: z.ZodNumber;
409
159
  waitingPeriod: z.ZodNumber;
410
- }, "strip", z.ZodTypeAny, {
411
- countdown: boolean;
412
- loop: boolean;
413
- startDate: number;
414
- targetDate: number;
415
- countup: boolean;
416
- displayDay: boolean;
417
- displayHour: boolean;
418
- displayMinute: boolean;
419
- displaySeconds: boolean;
420
- idleText: string;
421
- hideZeros: boolean;
422
- delimiter: "colon" | "letters";
423
- suffixSeconds: string;
424
- suffixMinute: string;
425
- suffixHour: string;
426
- suffixDay: string;
427
- loopPeriod: number;
428
- waitingPeriod: number;
429
- }, {
430
- countdown: boolean;
431
- loop: boolean;
432
- startDate: number;
433
- targetDate: number;
434
- countup: boolean;
435
- displayDay: boolean;
436
- displayHour: boolean;
437
- displayMinute: boolean;
438
- displaySeconds: boolean;
439
- idleText: string;
440
- hideZeros: boolean;
441
- delimiter: "colon" | "letters";
442
- suffixSeconds: string;
443
- suffixMinute: string;
444
- suffixHour: string;
445
- suffixDay: string;
446
- loopPeriod: number;
447
- waitingPeriod: number;
448
- }>;
449
- }, "strip", z.ZodTypeAny, {
450
- type: "countdown";
451
- name: string;
452
- pos_x: number;
453
- pos_y: number;
454
- textColor: string;
455
- switchingTime: number;
456
- font: string;
457
- fontSize: number;
458
- wrapText: boolean;
459
- textLines: number;
460
- textWidth: number;
461
- textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
462
- textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
463
- settings: {
464
- countdown: boolean;
465
- loop: boolean;
466
- startDate: number;
467
- targetDate: number;
468
- countup: boolean;
469
- displayDay: boolean;
470
- displayHour: boolean;
471
- displayMinute: boolean;
472
- displaySeconds: boolean;
473
- idleText: string;
474
- hideZeros: boolean;
475
- delimiter: "colon" | "letters";
476
- suffixSeconds: string;
477
- suffixMinute: string;
478
- suffixHour: string;
479
- suffixDay: string;
480
- loopPeriod: number;
481
- waitingPeriod: number;
482
- };
483
- text?: {
484
- active: boolean;
485
- source: string;
486
- }[] | undefined;
487
- }, {
488
- type: "countdown";
489
- name: string;
490
- pos_x: number;
491
- pos_y: number;
492
- textColor: string;
493
- switchingTime: number;
494
- font: string;
495
- fontSize: number;
496
- wrapText: boolean;
497
- textLines: number;
498
- textWidth: number;
499
- textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
500
- textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
501
- settings: {
502
- countdown: boolean;
503
- loop: boolean;
504
- startDate: number;
505
- targetDate: number;
506
- countup: boolean;
507
- displayDay: boolean;
508
- displayHour: boolean;
509
- displayMinute: boolean;
510
- displaySeconds: boolean;
511
- idleText: string;
512
- hideZeros: boolean;
513
- delimiter: "colon" | "letters";
514
- suffixSeconds: string;
515
- suffixMinute: string;
516
- suffixHour: string;
517
- suffixDay: string;
518
- loopPeriod: number;
519
- waitingPeriod: number;
520
- };
521
- text?: {
522
- active: boolean;
523
- source: string;
524
- }[] | undefined;
525
- }>]>, "many">;
526
- }, "strip", z.ZodTypeAny, {
527
- name: "customGraphics";
528
- enabled: 0 | 1;
529
- image: string;
530
- id: number;
531
- automationType: "manual" | "schedule" | "time" | `input${number}`;
532
- cameraList: number[];
533
- customName: string;
534
- width: number;
535
- height: number;
536
- pos_x: number;
537
- pos_y: number;
538
- coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
539
- clockFormat: "12h" | "24h";
540
- background: "custom" | "image";
541
- customAreaColor: string;
542
- customAreaWidth: number;
543
- customAreaHeight: number;
544
- customAreaCorners: "sharp" | "rounded";
545
- mappingZones: ({
546
- type: "plain";
547
- name: string;
548
- pos_x: number;
549
- pos_y: number;
550
- textColor: string;
551
- switchingTime: number;
552
- font: string;
553
- fontSize: number;
554
- wrapText: boolean;
555
- textLines: number;
556
- textWidth: number;
557
- textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
558
- textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
559
- text?: {
560
- active: boolean;
561
- source: string;
562
- }[] | undefined;
563
- } | {
564
- type: "countdown";
565
- name: string;
566
- pos_x: number;
567
- pos_y: number;
568
- textColor: string;
569
- switchingTime: number;
570
- font: string;
571
- fontSize: number;
572
- wrapText: boolean;
573
- textLines: number;
574
- textWidth: number;
575
- textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
576
- textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
577
- settings: {
578
- countdown: boolean;
579
- loop: boolean;
580
- startDate: number;
581
- targetDate: number;
582
- countup: boolean;
583
- displayDay: boolean;
584
- displayHour: boolean;
585
- displayMinute: boolean;
586
- displaySeconds: boolean;
587
- idleText: string;
588
- hideZeros: boolean;
589
- delimiter: "colon" | "letters";
590
- suffixSeconds: string;
591
- suffixMinute: string;
592
- suffixHour: string;
593
- suffixDay: string;
594
- loopPeriod: number;
595
- waitingPeriod: number;
596
- };
597
- text?: {
598
- active: boolean;
599
- source: string;
600
- }[] | undefined;
601
- })[];
602
- camera?: number | undefined;
603
- schedule?: string | undefined;
604
- invertInput?: boolean | undefined;
605
- zIndex?: number | undefined;
606
- }, {
607
- name: "customGraphics";
608
- enabled: 0 | 1;
609
- image: string;
610
- id: number;
611
- width: number;
612
- height: number;
613
- pos_x: number;
614
- pos_y: number;
615
- coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
616
- clockFormat: "12h" | "24h";
617
- background: "custom" | "image";
618
- customAreaColor: string;
619
- customAreaWidth: number;
620
- customAreaHeight: number;
621
- customAreaCorners: "sharp" | "rounded";
622
- mappingZones: ({
623
- type: "plain";
624
- name: string;
625
- pos_x: number;
626
- pos_y: number;
627
- textColor: string;
628
- switchingTime: number;
629
- font: string;
630
- fontSize: number;
631
- wrapText: boolean;
632
- textLines: number;
633
- textWidth: number;
634
- textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
635
- textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
636
- text?: {
637
- active: boolean;
638
- source: string;
639
- }[] | undefined;
640
- } | {
641
- type: "countdown";
642
- name: string;
643
- pos_x: number;
644
- pos_y: number;
645
- textColor: string;
646
- switchingTime: number;
647
- font: string;
648
- fontSize: number;
649
- wrapText: boolean;
650
- textLines: number;
651
- textWidth: number;
652
- textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
653
- textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
654
- settings: {
655
- countdown: boolean;
656
- loop: boolean;
657
- startDate: number;
658
- targetDate: number;
659
- countup: boolean;
660
- displayDay: boolean;
661
- displayHour: boolean;
662
- displayMinute: boolean;
663
- displaySeconds: boolean;
664
- idleText: string;
665
- hideZeros: boolean;
666
- delimiter: "colon" | "letters";
667
- suffixSeconds: string;
668
- suffixMinute: string;
669
- suffixHour: string;
670
- suffixDay: string;
671
- loopPeriod: number;
672
- waitingPeriod: number;
673
- };
674
- text?: {
675
- active: boolean;
676
- source: string;
677
- }[] | undefined;
678
- })[];
679
- camera?: number | undefined;
680
- schedule?: string | undefined;
681
- automationType?: "manual" | "schedule" | "time" | `input${number}` | undefined;
682
- invertInput?: boolean | undefined;
683
- cameraList?: number[] | undefined;
684
- customName?: string | undefined;
685
- zIndex?: number | undefined;
686
- }>;
160
+ }, z.core.$strip>;
161
+ }, z.core.$strip>], "type">>;
162
+ }, z.core.$strip>;
687
163
  export declare const fieldSchema: z.ZodObject<{
688
164
  field_name: z.ZodString;
689
165
  text: z.ZodString;
690
166
  color: z.ZodOptional<z.ZodString>;
691
- }, "strip", z.ZodTypeAny, {
692
- text: string;
693
- field_name: string;
694
- color?: string | undefined;
695
- }, {
696
- text: string;
697
- field_name: string;
698
- color?: string | undefined;
699
- }>;
167
+ }, z.core.$strip>;
700
168
  export type TField = z.infer<typeof fieldSchema>;