camstreamerlib 4.0.35-2475d16 → 4.0.35-38dd1fb

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.
@@ -161,6 +161,7 @@ export declare class CamSwitcherAPI<Client extends IClient<TResponse, any>> exte
161
161
  bitrateVapixParams?: string | null | undefined;
162
162
  audioSampleRate?: number | undefined;
163
163
  audioChannelCount?: 1 | 2 | undefined;
164
+ audioBitrate?: number | undefined;
164
165
  } | undefined>;
165
166
  getGlobalAudioSettings(options?: THttpRequestOptions): Promise<{
166
167
  type: "source" | "fromSource";
@@ -156,6 +156,7 @@ class CamSwitcherAPI extends BasicAPI_1.BasicAPI {
156
156
  audio: {
157
157
  sampleRate: data.audioSampleRate,
158
158
  channelCount: data.audioChannelCount,
159
+ bitrate: data.audioBitrate,
159
160
  },
160
161
  keyboard: data.keyboard,
161
162
  };
@@ -207,6 +208,7 @@ class CamSwitcherAPI extends BasicAPI_1.BasicAPI {
207
208
  const settings = {
208
209
  audioSampleRate: saveData.audio?.sampleRate,
209
210
  audioChannelCount: saveData.audio?.channelCount,
211
+ audioBitrate: saveData.audio?.bitrate,
210
212
  keyboard: saveData.keyboard,
211
213
  fps: saveData.video.fps,
212
214
  resolution: saveData.video.resolution,
@@ -45,8 +45,23 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
45
45
  focusCalibrationPoints: string;
46
46
  };
47
47
  cameraConfig: {
48
- defaultCaptureSizeMeters: number;
49
- captureSizeExtensionMeters: number;
48
+ aircraft: {
49
+ defaultCaptureSizeMeters: number;
50
+ captureSizeExtensionMeters: number;
51
+ };
52
+ drone: {
53
+ defaultCaptureSizeMeters: number;
54
+ captureSizeExtensionMeters: number;
55
+ };
56
+ } | {
57
+ aircraft: {
58
+ defaultCaptureSizeMeters: number;
59
+ captureSizeExtensionMeters: number;
60
+ };
61
+ drone: {
62
+ defaultCaptureSizeMeters: number;
63
+ captureSizeExtensionMeters: number;
64
+ };
50
65
  };
51
66
  stream: {
52
67
  width: number;
@@ -99,11 +114,29 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
99
114
  priority: number;
100
115
  };
101
116
  identificationLabel: {
102
- firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
103
- secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
104
- thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
105
- fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
106
- opacity: number;
117
+ aircraft: {
118
+ firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
119
+ secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
120
+ thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
121
+ fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
122
+ opacity: number;
123
+ };
124
+ drone: {
125
+ firstRow: "blank" | "remote_id";
126
+ opacity: number;
127
+ };
128
+ } | {
129
+ aircraft: {
130
+ firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
131
+ secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
132
+ thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
133
+ fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
134
+ opacity: number;
135
+ };
136
+ drone: {
137
+ firstRow: "blank" | "remote_id";
138
+ opacity: number;
139
+ };
107
140
  };
108
141
  acs: {
109
142
  ip: string;
@@ -181,11 +214,11 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
181
214
  importAppSettings(dataType: TImportDataType, formData: Parameters<Client['post']>[0]['data'], options?: THttpRequestOptions): Promise<void>;
182
215
  getDomainList(options?: THttpRequestOptions): Promise<Partial<Record<"adsb" | "remoteId", {
183
216
  uiName: string;
184
- icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
217
+ icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
185
218
  categoryList: {
186
219
  categoryId: string;
187
220
  uiName: string;
188
- icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
221
+ icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
189
222
  }[];
190
223
  }>>>;
191
224
  fetchFlightInfo(targetId: string, options?: THttpRequestOptions): Promise<{
package/cjs/VapixAPI.js CHANGED
@@ -565,21 +565,17 @@ class VapixAPI extends BasicAPI_1.BasicAPI {
565
565
  allowBooleanAttributes: true,
566
566
  });
567
567
  const result = parser.parse(xml);
568
- const rawApps = result.reply.application ?? [];
569
- const apps = Array.isArray(rawApps) ? rawApps : [rawApps];
570
- const appList = [];
571
- for (const app of apps) {
572
- const parsedApp = VapixAPI_1.applicationSchema.safeParse(app);
573
- if (!parsedApp.success) {
574
- console.debug('Skipping invalid application entry:', app, parsedApp.error.issues);
575
- continue;
576
- }
577
- appList.push({
578
- ...parsedApp.data,
579
- appId: VapixAPI_1.ALL_APP_IDS.find((id) => id.toLowerCase() === parsedApp.data.Name.toLowerCase()) ?? null,
580
- });
581
- }
582
- return appList;
568
+ let apps = result.reply.application ?? [];
569
+ if (!Array.isArray(apps)) {
570
+ apps = [apps];
571
+ }
572
+ const appList = apps.map((app) => {
573
+ return {
574
+ ...app,
575
+ appId: VapixAPI_1.ALL_APP_IDS.find((id) => id.toLowerCase() === app.Name.toLowerCase()) ?? null,
576
+ };
577
+ });
578
+ return VapixAPI_1.applicationListSchema.parse(appList);
583
579
  }
584
580
  async startApplication(applicationId, options) {
585
581
  const agent = this.getClient(options?.proxyParams);
@@ -785,6 +785,7 @@ export declare const cameraOptionsSchema: z.ZodObject<{
785
785
  bitrateVapixParams: z.ZodOptional<z.ZodNullable<z.ZodString>>;
786
786
  audioSampleRate: z.ZodOptional<z.ZodNumber>;
787
787
  audioChannelCount: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
788
+ audioBitrate: z.ZodOptional<z.ZodNumber>;
788
789
  keyboard: z.ZodOptional<z.ZodObject<{
789
790
  fromSource: z.ZodNullable<z.ZodString>;
790
791
  none: z.ZodNullable<z.ZodString>;
@@ -812,6 +813,7 @@ export declare const cameraOptionsSchema: z.ZodObject<{
812
813
  bitrateVapixParams?: string | null | undefined;
813
814
  audioSampleRate?: number | undefined;
814
815
  audioChannelCount?: 1 | 2 | undefined;
816
+ audioBitrate?: number | undefined;
815
817
  }, {
816
818
  resolution?: string | undefined;
817
819
  compression?: number | undefined;
@@ -829,6 +831,7 @@ export declare const cameraOptionsSchema: z.ZodObject<{
829
831
  bitrateVapixParams?: string | null | undefined;
830
832
  audioSampleRate?: number | undefined;
831
833
  audioChannelCount?: 1 | 2 | undefined;
834
+ audioBitrate?: number | undefined;
832
835
  }>;
833
836
  export type TCameraOptions = z.infer<typeof cameraOptionsSchema>;
834
837
  export declare const globalAudioSettingsTypeSchema: z.ZodUnion<[z.ZodLiteral<"fromSource">, z.ZodLiteral<"source">]>;
@@ -145,6 +145,7 @@ exports.cameraOptionsSchema = common_1.bitrateVapixParamsSchema
145
145
  bitrateVapixParams: zod_1.z.string().nullable(),
146
146
  audioSampleRate: zod_1.z.number(),
147
147
  audioChannelCount: common_1.audioChannelCountSchema,
148
+ audioBitrate: zod_1.z.number().int().nonnegative(),
148
149
  keyboard: zod_1.z.object({
149
150
  fromSource: common_1.keyboardShortcutSchema,
150
151
  none: common_1.keyboardShortcutSchema,
@@ -56,6 +56,8 @@ export declare const widgetSchema: z.ZodObject<{
56
56
  }>;
57
57
  declare const labelOptionsSchema: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
58
58
  export type TLabelOption = z.infer<typeof labelOptionsSchema>;
59
+ declare const droneLabelOptionsSchema: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"remote_id">]>;
60
+ export type TDroneLabelOption = z.infer<typeof droneLabelOptionsSchema>;
59
61
  export declare const cameraSettingsSchema: z.ZodObject<{
60
62
  units: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"metric">, z.ZodLiteral<"imperial">]>>;
61
63
  adsbSource: z.ZodDefault<z.ZodObject<{
@@ -119,16 +121,67 @@ export declare const cameraSettingsSchema: z.ZodObject<{
119
121
  nightSkyCalibrationFocusValue?: number | undefined;
120
122
  focusCalibrationPoints?: string | undefined;
121
123
  }>>;
122
- cameraConfig: z.ZodDefault<z.ZodObject<{
124
+ cameraConfig: z.ZodDefault<z.ZodUnion<[z.ZodObject<{
125
+ aircraft: z.ZodObject<{
126
+ defaultCaptureSizeMeters: z.ZodNumber;
127
+ captureSizeExtensionMeters: z.ZodNumber;
128
+ }, "strip", z.ZodTypeAny, {
129
+ defaultCaptureSizeMeters: number;
130
+ captureSizeExtensionMeters: number;
131
+ }, {
132
+ defaultCaptureSizeMeters: number;
133
+ captureSizeExtensionMeters: number;
134
+ }>;
135
+ drone: z.ZodDefault<z.ZodObject<{
136
+ defaultCaptureSizeMeters: z.ZodNumber;
137
+ captureSizeExtensionMeters: z.ZodNumber;
138
+ }, "strip", z.ZodTypeAny, {
139
+ defaultCaptureSizeMeters: number;
140
+ captureSizeExtensionMeters: number;
141
+ }, {
142
+ defaultCaptureSizeMeters: number;
143
+ captureSizeExtensionMeters: number;
144
+ }>>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ aircraft: {
147
+ defaultCaptureSizeMeters: number;
148
+ captureSizeExtensionMeters: number;
149
+ };
150
+ drone: {
151
+ defaultCaptureSizeMeters: number;
152
+ captureSizeExtensionMeters: number;
153
+ };
154
+ }, {
155
+ aircraft: {
156
+ defaultCaptureSizeMeters: number;
157
+ captureSizeExtensionMeters: number;
158
+ };
159
+ drone?: {
160
+ defaultCaptureSizeMeters: number;
161
+ captureSizeExtensionMeters: number;
162
+ } | undefined;
163
+ }>, z.ZodEffects<z.ZodObject<{
123
164
  defaultCaptureSizeMeters: z.ZodDefault<z.ZodNumber>;
124
165
  captureSizeExtensionMeters: z.ZodDefault<z.ZodNumber>;
125
- }, "strip", z.ZodTypeAny, {
166
+ }, "strict", z.ZodTypeAny, {
126
167
  defaultCaptureSizeMeters: number;
127
168
  captureSizeExtensionMeters: number;
128
169
  }, {
129
170
  defaultCaptureSizeMeters?: number | undefined;
130
171
  captureSizeExtensionMeters?: number | undefined;
131
- }>>;
172
+ }>, {
173
+ aircraft: {
174
+ defaultCaptureSizeMeters: number;
175
+ captureSizeExtensionMeters: number;
176
+ };
177
+ drone: {
178
+ defaultCaptureSizeMeters: number;
179
+ captureSizeExtensionMeters: number;
180
+ };
181
+ }, {
182
+ defaultCaptureSizeMeters?: number | undefined;
183
+ captureSizeExtensionMeters?: number | undefined;
184
+ }>]>>;
132
185
  stream: z.ZodDefault<z.ZodObject<{
133
186
  width: z.ZodNumber;
134
187
  height: z.ZodNumber;
@@ -334,7 +387,61 @@ export declare const cameraSettingsSchema: z.ZodObject<{
334
387
  port?: number | undefined;
335
388
  priority?: number | undefined;
336
389
  }>>;
337
- identificationLabel: z.ZodDefault<z.ZodObject<{
390
+ identificationLabel: z.ZodDefault<z.ZodUnion<[z.ZodObject<{
391
+ aircraft: z.ZodObject<{
392
+ firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
393
+ secondRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
394
+ thirdRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
395
+ fourthRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
396
+ opacity: z.ZodNumber;
397
+ }, "strip", z.ZodTypeAny, {
398
+ firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
399
+ secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
400
+ thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
401
+ fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
402
+ opacity: number;
403
+ }, {
404
+ firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
405
+ secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
406
+ thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
407
+ fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
408
+ opacity: number;
409
+ }>;
410
+ drone: z.ZodDefault<z.ZodObject<{
411
+ firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"remote_id">]>;
412
+ opacity: z.ZodNumber;
413
+ }, "strip", z.ZodTypeAny, {
414
+ firstRow: "blank" | "remote_id";
415
+ opacity: number;
416
+ }, {
417
+ firstRow: "blank" | "remote_id";
418
+ opacity: number;
419
+ }>>;
420
+ }, "strip", z.ZodTypeAny, {
421
+ aircraft: {
422
+ firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
423
+ secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
424
+ thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
425
+ fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
426
+ opacity: number;
427
+ };
428
+ drone: {
429
+ firstRow: "blank" | "remote_id";
430
+ opacity: number;
431
+ };
432
+ }, {
433
+ aircraft: {
434
+ firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
435
+ secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
436
+ thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
437
+ fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
438
+ opacity: number;
439
+ };
440
+ drone?: {
441
+ firstRow: "blank" | "remote_id";
442
+ opacity: number;
443
+ } | undefined;
444
+ }>, z.ZodEffects<z.ZodObject<{
338
445
  firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
339
446
  secondRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
340
447
  thirdRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
@@ -352,7 +459,25 @@ export declare const cameraSettingsSchema: z.ZodObject<{
352
459
  thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
353
460
  fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
354
461
  opacity: number;
355
- }>>;
462
+ }>, {
463
+ aircraft: {
464
+ firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
465
+ secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
466
+ thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
467
+ fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
468
+ opacity: number;
469
+ };
470
+ drone: {
471
+ firstRow: "blank" | "remote_id";
472
+ opacity: number;
473
+ };
474
+ }, {
475
+ firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
476
+ secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
477
+ thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
478
+ fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
479
+ opacity: number;
480
+ }>]>>;
356
481
  acs: z.ZodDefault<z.ZodObject<{
357
482
  protocol: z.ZodUnion<[z.ZodLiteral<"http">, z.ZodLiteral<"https">, z.ZodLiteral<"https_insecure">]>;
358
483
  ip: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
@@ -447,8 +572,23 @@ export declare const cameraSettingsSchema: z.ZodObject<{
447
572
  focusCalibrationPoints: string;
448
573
  };
449
574
  cameraConfig: {
450
- defaultCaptureSizeMeters: number;
451
- captureSizeExtensionMeters: number;
575
+ aircraft: {
576
+ defaultCaptureSizeMeters: number;
577
+ captureSizeExtensionMeters: number;
578
+ };
579
+ drone: {
580
+ defaultCaptureSizeMeters: number;
581
+ captureSizeExtensionMeters: number;
582
+ };
583
+ } | {
584
+ aircraft: {
585
+ defaultCaptureSizeMeters: number;
586
+ captureSizeExtensionMeters: number;
587
+ };
588
+ drone: {
589
+ defaultCaptureSizeMeters: number;
590
+ captureSizeExtensionMeters: number;
591
+ };
452
592
  };
453
593
  stream: {
454
594
  width: number;
@@ -501,11 +641,29 @@ export declare const cameraSettingsSchema: z.ZodObject<{
501
641
  priority: number;
502
642
  };
503
643
  identificationLabel: {
504
- firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
505
- secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
506
- thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
507
- fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
508
- opacity: number;
644
+ aircraft: {
645
+ firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
646
+ secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
647
+ thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
648
+ fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
649
+ opacity: number;
650
+ };
651
+ drone: {
652
+ firstRow: "blank" | "remote_id";
653
+ opacity: number;
654
+ };
655
+ } | {
656
+ aircraft: {
657
+ firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
658
+ secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
659
+ thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
660
+ fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
661
+ opacity: number;
662
+ };
663
+ drone: {
664
+ firstRow: "blank" | "remote_id";
665
+ opacity: number;
666
+ };
509
667
  };
510
668
  acs: {
511
669
  ip: string;
@@ -581,6 +739,15 @@ export declare const cameraSettingsSchema: z.ZodObject<{
581
739
  focusCalibrationPoints?: string | undefined;
582
740
  } | undefined;
583
741
  cameraConfig?: {
742
+ aircraft: {
743
+ defaultCaptureSizeMeters: number;
744
+ captureSizeExtensionMeters: number;
745
+ };
746
+ drone?: {
747
+ defaultCaptureSizeMeters: number;
748
+ captureSizeExtensionMeters: number;
749
+ } | undefined;
750
+ } | {
584
751
  defaultCaptureSizeMeters?: number | undefined;
585
752
  captureSizeExtensionMeters?: number | undefined;
586
753
  } | undefined;
@@ -664,6 +831,18 @@ export declare const cameraSettingsSchema: z.ZodObject<{
664
831
  thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
665
832
  fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
666
833
  opacity: number;
834
+ } | {
835
+ aircraft: {
836
+ firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
837
+ secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
838
+ thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
839
+ fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
840
+ opacity: number;
841
+ };
842
+ drone?: {
843
+ firstRow: "blank" | "remote_id";
844
+ opacity: number;
845
+ } | undefined;
667
846
  } | undefined;
668
847
  acs?: {
669
848
  ip: string;
@@ -1196,11 +1375,11 @@ declare const categoryDescriptorSchema: z.ZodObject<{
1196
1375
  }, "strip", z.ZodTypeAny, {
1197
1376
  categoryId: string;
1198
1377
  uiName: string;
1199
- icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
1378
+ icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
1200
1379
  }, {
1201
1380
  categoryId: string;
1202
1381
  uiName: string;
1203
- icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
1382
+ icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
1204
1383
  }>;
1205
1384
  export type TCategoryDescriptor = z.infer<typeof categoryDescriptorSchema>;
1206
1385
  declare const domainDescriptorSchema: z.ZodObject<{
@@ -1213,27 +1392,27 @@ declare const domainDescriptorSchema: z.ZodObject<{
1213
1392
  }, "strip", z.ZodTypeAny, {
1214
1393
  categoryId: string;
1215
1394
  uiName: string;
1216
- icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
1395
+ icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
1217
1396
  }, {
1218
1397
  categoryId: string;
1219
1398
  uiName: string;
1220
- icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
1399
+ icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
1221
1400
  }>, "many">;
1222
1401
  }, "strip", z.ZodTypeAny, {
1223
1402
  uiName: string;
1224
- icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
1403
+ icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
1225
1404
  categoryList: {
1226
1405
  categoryId: string;
1227
1406
  uiName: string;
1228
- icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
1407
+ icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
1229
1408
  }[];
1230
1409
  }, {
1231
1410
  uiName: string;
1232
- icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
1411
+ icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
1233
1412
  categoryList: {
1234
1413
  categoryId: string;
1235
1414
  uiName: string;
1236
- icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
1415
+ icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
1237
1416
  }[];
1238
1417
  }>;
1239
1418
  export type TDomainDescriptor = z.infer<typeof domainDescriptorSchema>;
@@ -1247,27 +1426,27 @@ export declare const domainListSchema: z.ZodRecord<z.ZodEnum<["adsb", "remoteId"
1247
1426
  }, "strip", z.ZodTypeAny, {
1248
1427
  categoryId: string;
1249
1428
  uiName: string;
1250
- icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
1429
+ icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
1251
1430
  }, {
1252
1431
  categoryId: string;
1253
1432
  uiName: string;
1254
- icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
1433
+ icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
1255
1434
  }>, "many">;
1256
1435
  }, "strip", z.ZodTypeAny, {
1257
1436
  uiName: string;
1258
- icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
1437
+ icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
1259
1438
  categoryList: {
1260
1439
  categoryId: string;
1261
1440
  uiName: string;
1262
- icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
1441
+ icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
1263
1442
  }[];
1264
1443
  }, {
1265
1444
  uiName: string;
1266
- icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
1445
+ icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
1267
1446
  categoryList: {
1268
1447
  categoryId: string;
1269
1448
  uiName: string;
1270
- icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
1449
+ icon: "unknown" | "small" | "drone" | "large" | "heavy" | "helicopter" | "operator" | "vehicle";
1271
1450
  }[];
1272
1451
  }>>;
1273
1452
  export type TDomainList = z.infer<typeof domainListSchema>;
@@ -35,13 +35,59 @@ const labelOptionsSchema = zod_1.z.union([
35
35
  zod_1.z.literal('flight_number'),
36
36
  zod_1.z.literal('icao'),
37
37
  ]);
38
- const identificationLabelSchema = zod_1.z.object({
38
+ const aircraftIdentificationLabelSchema = zod_1.z.object({
39
39
  firstRow: labelOptionsSchema,
40
40
  secondRow: labelOptionsSchema,
41
41
  thirdRow: labelOptionsSchema,
42
42
  fourthRow: labelOptionsSchema,
43
- opacity: zod_1.z.number().positive(),
43
+ opacity: zod_1.z.number().nonnegative(),
44
44
  });
45
+ const droneLabelOptionsSchema = zod_1.z.union([zod_1.z.literal('blank'), zod_1.z.literal('remote_id')]);
46
+ const droneIdentificationLabelSchema = zod_1.z.object({
47
+ firstRow: droneLabelOptionsSchema,
48
+ opacity: zod_1.z.number().nonnegative(),
49
+ });
50
+ const DEFAULT_DRONE_IDENTIFICATION_LABEL = {
51
+ firstRow: 'remote_id',
52
+ opacity: 30,
53
+ };
54
+ const identificationLabelSchema = zod_1.z.union([
55
+ zod_1.z.object({
56
+ aircraft: aircraftIdentificationLabelSchema,
57
+ drone: droneIdentificationLabelSchema.default(DEFAULT_DRONE_IDENTIFICATION_LABEL),
58
+ }),
59
+ aircraftIdentificationLabelSchema.transform((aircraft) => ({
60
+ aircraft,
61
+ drone: { ...DEFAULT_DRONE_IDENTIFICATION_LABEL },
62
+ })),
63
+ ]);
64
+ const captureConfigSchema = zod_1.z.object({
65
+ defaultCaptureSizeMeters: zod_1.z.number().positive(),
66
+ captureSizeExtensionMeters: zod_1.z.number().positive(),
67
+ });
68
+ const DEFAULT_CAPTURE_CONFIG = {
69
+ defaultCaptureSizeMeters: 120,
70
+ captureSizeExtensionMeters: 80,
71
+ };
72
+ const cameraConfigSchema = zod_1.z.union([
73
+ zod_1.z.object({
74
+ aircraft: captureConfigSchema,
75
+ drone: captureConfigSchema.default(() => ({ ...DEFAULT_CAPTURE_CONFIG })),
76
+ }),
77
+ zod_1.z
78
+ .object({
79
+ defaultCaptureSizeMeters: zod_1.z.number().positive().default(DEFAULT_CAPTURE_CONFIG.defaultCaptureSizeMeters),
80
+ captureSizeExtensionMeters: zod_1.z
81
+ .number()
82
+ .positive()
83
+ .default(DEFAULT_CAPTURE_CONFIG.captureSizeExtensionMeters),
84
+ })
85
+ .strict()
86
+ .transform((captureConfig) => ({
87
+ aircraft: captureConfig,
88
+ drone: { ...captureConfig },
89
+ })),
90
+ ]);
45
91
  exports.cameraSettingsSchema = zod_1.z.object({
46
92
  units: zod_1.z.union([zod_1.z.literal('metric'), zod_1.z.literal('imperial')]).default('imperial'),
47
93
  adsbSource: zod_1.z
@@ -79,15 +125,10 @@ exports.cameraSettingsSchema = zod_1.z.object({
79
125
  nightSkyCalibrationFocusValue: 9000,
80
126
  focusCalibrationPoints: '',
81
127
  }),
82
- cameraConfig: zod_1.z
83
- .object({
84
- defaultCaptureSizeMeters: zod_1.z.number().positive().default(120),
85
- captureSizeExtensionMeters: zod_1.z.number().positive().default(80),
86
- })
87
- .default({
88
- defaultCaptureSizeMeters: 120,
89
- captureSizeExtensionMeters: 80,
90
- }),
128
+ cameraConfig: cameraConfigSchema.default(() => ({
129
+ aircraft: { ...DEFAULT_CAPTURE_CONFIG },
130
+ drone: { ...DEFAULT_CAPTURE_CONFIG },
131
+ })),
91
132
  stream: zod_1.z
92
133
  .object({
93
134
  width: zod_1.z.number().positive(),
@@ -198,11 +239,14 @@ exports.cameraSettingsSchema = zod_1.z.object({
198
239
  port: 80,
199
240
  }),
200
241
  identificationLabel: identificationLabelSchema.default({
201
- firstRow: 'registration',
202
- secondRow: 'blank',
203
- thirdRow: 'blank',
204
- fourthRow: 'blank',
205
- opacity: 30,
242
+ aircraft: {
243
+ firstRow: 'icao',
244
+ secondRow: 'call_sign',
245
+ thirdRow: 'blank',
246
+ fourthRow: 'blank',
247
+ opacity: 30,
248
+ },
249
+ drone: DEFAULT_DRONE_IDENTIFICATION_LABEL,
206
250
  }),
207
251
  acs: exports.connectionSchema
208
252
  .extend({