camstreamerlib 4.0.28 → 4.0.30

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.
@@ -9,6 +9,7 @@ const CamSwitcherAPI_1 = require("./types/CamSwitcherAPI");
9
9
  const common_1 = require("./types/common");
10
10
  const VapixAPI_1 = require("./VapixAPI");
11
11
  const BasicAPI_1 = require("./internal/BasicAPI");
12
+ const helpers_1 = require("./helpers");
12
13
  const BASE_PATH = '/local/camswitcher/api';
13
14
  class CamSwitcherAPI extends BasicAPI_1.BasicAPI {
14
15
  CustomFormData;
@@ -273,20 +274,7 @@ class CamSwitcherAPI extends BasicAPI_1.BasicAPI {
273
274
  if (data[paramName] === undefined) {
274
275
  throw new errors_1.ParameterNotFoundError(paramName);
275
276
  }
276
- if (data[paramName] === '') {
277
- return {};
278
- }
279
- try {
280
- return JSON.parse(data[paramName] + '');
281
- }
282
- catch {
283
- try {
284
- return JSON.parse(decodeURIComponent((data[paramName] + '').replaceAll('\\', '')));
285
- }
286
- catch (e) {
287
- throw new errors_1.JsonParseError(paramName, data[paramName]);
288
- }
289
- }
277
+ return (0, helpers_1.jsonParseCameraParam)(data[paramName] + '', paramName);
290
278
  }
291
279
  async getUploadedFileList(clipName, storage, options) {
292
280
  const res = await this._getJson(`${BASE_PATH}/clip_files.cgi`, { clip_name: clipName, storage }, options);
@@ -40,6 +40,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
40
40
  cameraCalibrationProcessConfig: {
41
41
  nightSkyCalibrationEnabled: boolean;
42
42
  scheduleNightSkyCalibrationTimestamp: number;
43
+ nightSkyCalibrationRepeatCount: number;
43
44
  nightSkyCalibrationFocusValue: number;
44
45
  focusCalibrationPoints: string;
45
46
  };
package/cjs/VapixAPI.js CHANGED
@@ -76,13 +76,7 @@ class VapixAPI extends BasicAPI_1.BasicAPI {
76
76
  const jsonData = { apiVersion: '1.0', method: 'list' };
77
77
  const res = await this._postJsonEncoded(path, jsonData, undefined, options);
78
78
  const encoders = VapixAPI_1.audioSampleRatesResponseSchema.parse(await res.json()).data.encoders;
79
- const data = encoders.aac ?? encoders.AAC ?? [];
80
- return data.map((item) => {
81
- return {
82
- sampleRate: item.sample_rate,
83
- bitRates: item.bit_rates,
84
- };
85
- });
79
+ return encoders.aac ?? encoders.AAC ?? [];
86
80
  }
87
81
  async performAutofocus(options) {
88
82
  try {
@@ -0,0 +1 @@
1
+ export declare const jsonParseCameraParam: (param: string, paramName: string) => any;
package/cjs/helpers.js ADDED
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.jsonParseCameraParam = void 0;
4
+ const errors_1 = require("./errors/errors");
5
+ const jsonParseCameraParam = (param, paramName) => {
6
+ if (param === '') {
7
+ return {};
8
+ }
9
+ try {
10
+ return JSON.parse(param);
11
+ }
12
+ catch {
13
+ try {
14
+ return JSON.parse(decodeURIComponent(param.replaceAll('\\', '')));
15
+ }
16
+ catch (e) {
17
+ throw new errors_1.JsonParseError(paramName, param);
18
+ }
19
+ }
20
+ };
21
+ exports.jsonParseCameraParam = jsonParseCameraParam;
package/cjs/index.d.ts CHANGED
@@ -26,3 +26,4 @@ export { CamScripterAPI } from './CamScripterAPI';
26
26
  export * from './types/CamScripterAPI';
27
27
  export { VapixAPI } from './VapixAPI';
28
28
  export * from './types/VapixAPI';
29
+ export * from './helpers';
package/cjs/index.js CHANGED
@@ -53,3 +53,4 @@ __exportStar(require("./types/CamScripterAPI"), exports);
53
53
  var VapixAPI_1 = require("./VapixAPI");
54
54
  Object.defineProperty(exports, "VapixAPI", { enumerable: true, get: function () { return VapixAPI_1.VapixAPI; } });
55
55
  __exportStar(require("./types/VapixAPI"), exports);
56
+ __exportStar(require("./helpers"), exports);
@@ -77,7 +77,7 @@ const parseVideoOptionsToVapixParams = (firmWareVersion, video) => {
77
77
  const nbrOfChannels = video.nbrOfChannels ? (video.audio === 1 ? `&nbrOfChannels=${video.nbrOfChannels}` : '') : '';
78
78
  const audioParams = `audio=${video.audio}${nbrOfChannels}`;
79
79
  const videoCodecParams = video.videoCodec === 'h264'
80
- ? `videocodec=${video.videoCodec}&h264Profile=${video.h264Profile}`
80
+ ? `videocodec=${video.videoCodec}&h264profile=${video.h264Profile}`
81
81
  : `videocodec=${video.videoCodec}`;
82
82
  const videoParams = `camera=${video.camera}&resolution=${video.resolution}&fps=${video.fps}&compression=${video.compression}&videokeyframeinterval=${video.govLength}&${videoCodecParams}${overlaysParams}`;
83
83
  return [videoParams, bitrateParams, audioParams].join('&');
@@ -92,7 +92,7 @@ const parseVapixParamsToVideoOptions = (internalVapixParams) => {
92
92
  });
93
93
  let h264Profile = undefined;
94
94
  if (params['videocodec'] === 'h264') {
95
- h264Profile = (params['h264Profile'] ?? 'high');
95
+ h264Profile = (params['h264profile'] ?? params['h264Profile'] ?? 'high');
96
96
  }
97
97
  let nbrOfChannels = undefined;
98
98
  if (params['audio'] === '1') {
@@ -116,16 +116,19 @@ export declare const cameraSettingsSchema: z.ZodObject<{
116
116
  cameraCalibrationProcessConfig: z.ZodDefault<z.ZodObject<{
117
117
  nightSkyCalibrationEnabled: z.ZodBoolean;
118
118
  scheduleNightSkyCalibrationTimestamp: z.ZodNumber;
119
+ nightSkyCalibrationRepeatCount: z.ZodDefault<z.ZodNumber>;
119
120
  nightSkyCalibrationFocusValue: z.ZodDefault<z.ZodNumber>;
120
121
  focusCalibrationPoints: z.ZodDefault<z.ZodString>;
121
122
  }, "strip", z.ZodTypeAny, {
122
123
  nightSkyCalibrationEnabled: boolean;
123
124
  scheduleNightSkyCalibrationTimestamp: number;
125
+ nightSkyCalibrationRepeatCount: number;
124
126
  nightSkyCalibrationFocusValue: number;
125
127
  focusCalibrationPoints: string;
126
128
  }, {
127
129
  nightSkyCalibrationEnabled: boolean;
128
130
  scheduleNightSkyCalibrationTimestamp: number;
131
+ nightSkyCalibrationRepeatCount?: number | undefined;
129
132
  nightSkyCalibrationFocusValue?: number | undefined;
130
133
  focusCalibrationPoints?: string | undefined;
131
134
  }>>;
@@ -452,6 +455,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
452
455
  cameraCalibrationProcessConfig: {
453
456
  nightSkyCalibrationEnabled: boolean;
454
457
  scheduleNightSkyCalibrationTimestamp: number;
458
+ nightSkyCalibrationRepeatCount: number;
455
459
  nightSkyCalibrationFocusValue: number;
456
460
  focusCalibrationPoints: string;
457
461
  };
@@ -585,6 +589,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
585
589
  cameraCalibrationProcessConfig?: {
586
590
  nightSkyCalibrationEnabled: boolean;
587
591
  scheduleNightSkyCalibrationTimestamp: number;
592
+ nightSkyCalibrationRepeatCount?: number | undefined;
588
593
  nightSkyCalibrationFocusValue?: number | undefined;
589
594
  focusCalibrationPoints?: string | undefined;
590
595
  } | undefined;
@@ -73,12 +73,14 @@ exports.cameraSettingsSchema = zod_1.z.object({
73
73
  .object({
74
74
  nightSkyCalibrationEnabled: zod_1.z.boolean(),
75
75
  scheduleNightSkyCalibrationTimestamp: zod_1.z.number(),
76
+ nightSkyCalibrationRepeatCount: zod_1.z.number().int().min(1).max(6).default(1),
76
77
  nightSkyCalibrationFocusValue: zod_1.z.number().int().min(1).max(9999).default(9000),
77
78
  focusCalibrationPoints: zod_1.z.string().default(''),
78
79
  })
79
80
  .default({
80
81
  nightSkyCalibrationEnabled: false,
81
82
  scheduleNightSkyCalibrationTimestamp: 0,
83
+ nightSkyCalibrationRepeatCount: 1,
82
84
  nightSkyCalibrationFocusValue: 9000,
83
85
  focusCalibrationPoints: '',
84
86
  }),
@@ -133,7 +133,7 @@ export declare const guardTourSchema: z.ZodObject<{
133
133
  timeBetweenSequences?: unknown;
134
134
  }>;
135
135
  export type TGuardTour = z.infer<typeof guardTourSchema>;
136
- declare const audioSampleRatesOutSchema: z.ZodEffects<z.ZodObject<{
136
+ declare const audioSampleRatesSchema: z.ZodEffects<z.ZodObject<{
137
137
  sample_rate: z.ZodNumber;
138
138
  bit_rates: z.ZodArray<z.ZodNumber, "many">;
139
139
  }, "strip", z.ZodTypeAny, {
@@ -149,7 +149,7 @@ declare const audioSampleRatesOutSchema: z.ZodEffects<z.ZodObject<{
149
149
  sample_rate: number;
150
150
  bit_rates: number[];
151
151
  }>;
152
- export type TAudioSampleRates = z.infer<typeof audioSampleRatesOutSchema>;
152
+ export type TAudioSampleRates = z.infer<typeof audioSampleRatesSchema>;
153
153
  export declare const sdCardWatchedStatuses: readonly ["OK", "connected", "disconnected"];
154
154
  export declare const sdCardInfoSchema: z.ZodObject<{
155
155
  status: z.ZodEnum<["OK", "connected", "disconnected"]>;
@@ -1666,7 +1666,7 @@ export declare const timeZoneSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObj
1666
1666
  export declare const audioSampleRatesResponseSchema: z.ZodObject<{
1667
1667
  data: z.ZodObject<{
1668
1668
  encoders: z.ZodObject<{
1669
- aac: z.ZodOptional<z.ZodArray<z.ZodObject<{
1669
+ aac: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1670
1670
  sample_rate: z.ZodNumber;
1671
1671
  bit_rates: z.ZodArray<z.ZodNumber, "many">;
1672
1672
  }, "strip", z.ZodTypeAny, {
@@ -1675,8 +1675,14 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
1675
1675
  }, {
1676
1676
  sample_rate: number;
1677
1677
  bit_rates: number[];
1678
+ }>, {
1679
+ sampleRate: number;
1680
+ bitRates: number[];
1681
+ }, {
1682
+ sample_rate: number;
1683
+ bit_rates: number[];
1678
1684
  }>, "many">>;
1679
- AAC: z.ZodOptional<z.ZodArray<z.ZodObject<{
1685
+ AAC: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1680
1686
  sample_rate: z.ZodNumber;
1681
1687
  bit_rates: z.ZodArray<z.ZodNumber, "many">;
1682
1688
  }, "strip", z.ZodTypeAny, {
@@ -1685,15 +1691,21 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
1685
1691
  }, {
1686
1692
  sample_rate: number;
1687
1693
  bit_rates: number[];
1694
+ }>, {
1695
+ sampleRate: number;
1696
+ bitRates: number[];
1697
+ }, {
1698
+ sample_rate: number;
1699
+ bit_rates: number[];
1688
1700
  }>, "many">>;
1689
1701
  }, "strip", z.ZodTypeAny, {
1690
1702
  aac?: {
1691
- sample_rate: number;
1692
- bit_rates: number[];
1703
+ sampleRate: number;
1704
+ bitRates: number[];
1693
1705
  }[] | undefined;
1694
1706
  AAC?: {
1695
- sample_rate: number;
1696
- bit_rates: number[];
1707
+ sampleRate: number;
1708
+ bitRates: number[];
1697
1709
  }[] | undefined;
1698
1710
  }, {
1699
1711
  aac?: {
@@ -1708,12 +1720,12 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
1708
1720
  }, "strip", z.ZodTypeAny, {
1709
1721
  encoders: {
1710
1722
  aac?: {
1711
- sample_rate: number;
1712
- bit_rates: number[];
1723
+ sampleRate: number;
1724
+ bitRates: number[];
1713
1725
  }[] | undefined;
1714
1726
  AAC?: {
1715
- sample_rate: number;
1716
- bit_rates: number[];
1727
+ sampleRate: number;
1728
+ bitRates: number[];
1717
1729
  }[] | undefined;
1718
1730
  };
1719
1731
  }, {
@@ -1732,12 +1744,12 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
1732
1744
  data: {
1733
1745
  encoders: {
1734
1746
  aac?: {
1735
- sample_rate: number;
1736
- bit_rates: number[];
1747
+ sampleRate: number;
1748
+ bitRates: number[];
1737
1749
  }[] | undefined;
1738
1750
  AAC?: {
1739
- sample_rate: number;
1740
- bit_rates: number[];
1751
+ sampleRate: number;
1752
+ bitRates: number[];
1741
1753
  }[] | undefined;
1742
1754
  };
1743
1755
  };
@@ -53,11 +53,12 @@ exports.guardTourSchema = zod_1.z.object({
53
53
  waitTimeViewType: zod_1.z.unknown(),
54
54
  })),
55
55
  });
56
- const audioSampleRatesSchema = zod_1.z.object({
56
+ const audioSampleRatesSchema = zod_1.z
57
+ .object({
57
58
  sample_rate: zod_1.z.number(),
58
59
  bit_rates: zod_1.z.array(zod_1.z.number()),
59
- });
60
- const audioSampleRatesOutSchema = audioSampleRatesSchema.transform(transformers_1.toCamelCaseDeep);
60
+ })
61
+ .transform(transformers_1.toCamelCaseDeep);
61
62
  exports.sdCardWatchedStatuses = ['OK', 'connected', 'disconnected'];
62
63
  exports.sdCardInfoSchema = zod_1.z.object({
63
64
  status: zod_1.z.enum(exports.sdCardWatchedStatuses),
@@ -14,7 +14,7 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
14
14
  groundSpeed: z.ZodNumber;
15
15
  altitudeAMSL: z.ZodNumber;
16
16
  cameraDistance: z.ZodNumber;
17
- autoTrackingOrder: z.ZodNumber;
17
+ autoTrackingOrder: z.ZodNullable<z.ZodNumber>;
18
18
  whiteListed: z.ZodBoolean;
19
19
  blackListed: z.ZodBoolean;
20
20
  priorityListed: z.ZodBoolean;
@@ -39,7 +39,7 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
39
39
  groundSpeed: number;
40
40
  altitudeAMSL: number;
41
41
  cameraDistance: number;
42
- autoTrackingOrder: number;
42
+ autoTrackingOrder: number | null;
43
43
  whiteListed: boolean;
44
44
  blackListed: boolean;
45
45
  priorityListed: boolean;
@@ -65,7 +65,7 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
65
65
  groundSpeed: number;
66
66
  altitudeAMSL: number;
67
67
  cameraDistance: number;
68
- autoTrackingOrder: number;
68
+ autoTrackingOrder: number | null;
69
69
  whiteListed: boolean;
70
70
  blackListed: boolean;
71
71
  priorityListed: boolean;
@@ -200,7 +200,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
200
200
  groundSpeed: z.ZodNumber;
201
201
  altitudeAMSL: z.ZodNumber;
202
202
  cameraDistance: z.ZodNumber;
203
- autoTrackingOrder: z.ZodNumber;
203
+ autoTrackingOrder: z.ZodNullable<z.ZodNumber>;
204
204
  whiteListed: z.ZodBoolean;
205
205
  blackListed: z.ZodBoolean;
206
206
  priorityListed: z.ZodBoolean;
@@ -225,7 +225,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
225
225
  groundSpeed: number;
226
226
  altitudeAMSL: number;
227
227
  cameraDistance: number;
228
- autoTrackingOrder: number;
228
+ autoTrackingOrder: number | null;
229
229
  whiteListed: boolean;
230
230
  blackListed: boolean;
231
231
  priorityListed: boolean;
@@ -251,7 +251,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
251
251
  groundSpeed: number;
252
252
  altitudeAMSL: number;
253
253
  cameraDistance: number;
254
- autoTrackingOrder: number;
254
+ autoTrackingOrder: number | null;
255
255
  whiteListed: boolean;
256
256
  blackListed: boolean;
257
257
  priorityListed: boolean;
@@ -280,7 +280,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
280
280
  groundSpeed: number;
281
281
  altitudeAMSL: number;
282
282
  cameraDistance: number;
283
- autoTrackingOrder: number;
283
+ autoTrackingOrder: number | null;
284
284
  whiteListed: boolean;
285
285
  blackListed: boolean;
286
286
  priorityListed: boolean;
@@ -309,7 +309,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
309
309
  groundSpeed: number;
310
310
  altitudeAMSL: number;
311
311
  cameraDistance: number;
312
- autoTrackingOrder: number;
312
+ autoTrackingOrder: number | null;
313
313
  whiteListed: boolean;
314
314
  blackListed: boolean;
315
315
  priorityListed: boolean;
@@ -1349,7 +1349,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1349
1349
  groundSpeed: z.ZodNumber;
1350
1350
  altitudeAMSL: z.ZodNumber;
1351
1351
  cameraDistance: z.ZodNumber;
1352
- autoTrackingOrder: z.ZodNumber;
1352
+ autoTrackingOrder: z.ZodNullable<z.ZodNumber>;
1353
1353
  whiteListed: z.ZodBoolean;
1354
1354
  blackListed: z.ZodBoolean;
1355
1355
  priorityListed: z.ZodBoolean;
@@ -1374,7 +1374,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1374
1374
  groundSpeed: number;
1375
1375
  altitudeAMSL: number;
1376
1376
  cameraDistance: number;
1377
- autoTrackingOrder: number;
1377
+ autoTrackingOrder: number | null;
1378
1378
  whiteListed: boolean;
1379
1379
  blackListed: boolean;
1380
1380
  priorityListed: boolean;
@@ -1400,7 +1400,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1400
1400
  groundSpeed: number;
1401
1401
  altitudeAMSL: number;
1402
1402
  cameraDistance: number;
1403
- autoTrackingOrder: number;
1403
+ autoTrackingOrder: number | null;
1404
1404
  whiteListed: boolean;
1405
1405
  blackListed: boolean;
1406
1406
  priorityListed: boolean;
@@ -1429,7 +1429,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1429
1429
  groundSpeed: number;
1430
1430
  altitudeAMSL: number;
1431
1431
  cameraDistance: number;
1432
- autoTrackingOrder: number;
1432
+ autoTrackingOrder: number | null;
1433
1433
  whiteListed: boolean;
1434
1434
  blackListed: boolean;
1435
1435
  priorityListed: boolean;
@@ -1458,7 +1458,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1458
1458
  groundSpeed: number;
1459
1459
  altitudeAMSL: number;
1460
1460
  cameraDistance: number;
1461
- autoTrackingOrder: number;
1461
+ autoTrackingOrder: number | null;
1462
1462
  whiteListed: boolean;
1463
1463
  blackListed: boolean;
1464
1464
  priorityListed: boolean;
@@ -2464,7 +2464,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2464
2464
  groundSpeed: number;
2465
2465
  altitudeAMSL: number;
2466
2466
  cameraDistance: number;
2467
- autoTrackingOrder: number;
2467
+ autoTrackingOrder: number | null;
2468
2468
  whiteListed: boolean;
2469
2469
  blackListed: boolean;
2470
2470
  priorityListed: boolean;
@@ -2726,7 +2726,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2726
2726
  groundSpeed: number;
2727
2727
  altitudeAMSL: number;
2728
2728
  cameraDistance: number;
2729
- autoTrackingOrder: number;
2729
+ autoTrackingOrder: number | null;
2730
2730
  whiteListed: boolean;
2731
2731
  blackListed: boolean;
2732
2732
  priorityListed: boolean;
@@ -3020,7 +3020,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
3020
3020
  groundSpeed: z.ZodNumber;
3021
3021
  altitudeAMSL: z.ZodNumber;
3022
3022
  cameraDistance: z.ZodNumber;
3023
- autoTrackingOrder: z.ZodNumber;
3023
+ autoTrackingOrder: z.ZodNullable<z.ZodNumber>;
3024
3024
  whiteListed: z.ZodBoolean;
3025
3025
  blackListed: z.ZodBoolean;
3026
3026
  priorityListed: z.ZodBoolean;
@@ -3045,7 +3045,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
3045
3045
  groundSpeed: number;
3046
3046
  altitudeAMSL: number;
3047
3047
  cameraDistance: number;
3048
- autoTrackingOrder: number;
3048
+ autoTrackingOrder: number | null;
3049
3049
  whiteListed: boolean;
3050
3050
  blackListed: boolean;
3051
3051
  priorityListed: boolean;
@@ -3071,7 +3071,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
3071
3071
  groundSpeed: number;
3072
3072
  altitudeAMSL: number;
3073
3073
  cameraDistance: number;
3074
- autoTrackingOrder: number;
3074
+ autoTrackingOrder: number | null;
3075
3075
  whiteListed: boolean;
3076
3076
  blackListed: boolean;
3077
3077
  priorityListed: boolean;
@@ -3100,7 +3100,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
3100
3100
  groundSpeed: number;
3101
3101
  altitudeAMSL: number;
3102
3102
  cameraDistance: number;
3103
- autoTrackingOrder: number;
3103
+ autoTrackingOrder: number | null;
3104
3104
  whiteListed: boolean;
3105
3105
  blackListed: boolean;
3106
3106
  priorityListed: boolean;
@@ -3129,7 +3129,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
3129
3129
  groundSpeed: number;
3130
3130
  altitudeAMSL: number;
3131
3131
  cameraDistance: number;
3132
- autoTrackingOrder: number;
3132
+ autoTrackingOrder: number | null;
3133
3133
  whiteListed: boolean;
3134
3134
  blackListed: boolean;
3135
3135
  priorityListed: boolean;
@@ -18,7 +18,7 @@ const wsApiFlightDataSchema = zod_1.z.object({
18
18
  groundSpeed: zod_1.z.number(),
19
19
  altitudeAMSL: zod_1.z.number(),
20
20
  cameraDistance: zod_1.z.number(),
21
- autoTrackingOrder: zod_1.z.number(),
21
+ autoTrackingOrder: zod_1.z.number().nullable(),
22
22
  whiteListed: zod_1.z.boolean(),
23
23
  blackListed: zod_1.z.boolean(),
24
24
  priorityListed: zod_1.z.boolean(),
@@ -1,11 +1,12 @@
1
1
  import { z } from 'zod';
2
- import { AddNewClipError, JsonParseError, ParameterNotFoundError } from './errors/errors';
2
+ import { AddNewClipError, ParameterNotFoundError } from './errors/errors';
3
3
  import { parseBitrateOptionsToVapixParams, parseVapixParamsToBitrateOptions } from './internal/convertors';
4
4
  import { isClip, isNullish } from './internal/utils';
5
5
  import { storageInfoListSchema, outputInfoSchema, audioPushInfoSchema, clipListSchema, playlistQueueSchema, streamSaveLoadSchema, clipSaveLoadSchema, playlistSaveLoadSchema, trackerSaveLoadSchema, secondaryAudioSettingsSchema, globalAudioSettingsSchema, clipFilesListSchema, } from './types/CamSwitcherAPI';
6
6
  import { networkCameraListSchema, } from './types/common';
7
7
  import { VapixAPI } from './VapixAPI';
8
8
  import { BasicAPI } from './internal/BasicAPI';
9
+ import { jsonParseCameraParam } from './helpers';
9
10
  const BASE_PATH = '/local/camswitcher/api';
10
11
  export class CamSwitcherAPI extends BasicAPI {
11
12
  CustomFormData;
@@ -270,20 +271,7 @@ export class CamSwitcherAPI extends BasicAPI {
270
271
  if (data[paramName] === undefined) {
271
272
  throw new ParameterNotFoundError(paramName);
272
273
  }
273
- if (data[paramName] === '') {
274
- return {};
275
- }
276
- try {
277
- return JSON.parse(data[paramName] + '');
278
- }
279
- catch {
280
- try {
281
- return JSON.parse(decodeURIComponent((data[paramName] + '').replaceAll('\\', '')));
282
- }
283
- catch (e) {
284
- throw new JsonParseError(paramName, data[paramName]);
285
- }
286
- }
274
+ return jsonParseCameraParam(data[paramName] + '', paramName);
287
275
  }
288
276
  async getUploadedFileList(clipName, storage, options) {
289
277
  const res = await this._getJson(`${BASE_PATH}/clip_files.cgi`, { clip_name: clipName, storage }, options);
package/esm/VapixAPI.js CHANGED
@@ -73,13 +73,7 @@ export class VapixAPI extends BasicAPI {
73
73
  const jsonData = { apiVersion: '1.0', method: 'list' };
74
74
  const res = await this._postJsonEncoded(path, jsonData, undefined, options);
75
75
  const encoders = audioSampleRatesResponseSchema.parse(await res.json()).data.encoders;
76
- const data = encoders.aac ?? encoders.AAC ?? [];
77
- return data.map((item) => {
78
- return {
79
- sampleRate: item.sample_rate,
80
- bitRates: item.bit_rates,
81
- };
82
- });
76
+ return encoders.aac ?? encoders.AAC ?? [];
83
77
  }
84
78
  async performAutofocus(options) {
85
79
  try {
package/esm/helpers.js ADDED
@@ -0,0 +1,17 @@
1
+ import { JsonParseError } from './errors/errors';
2
+ export const jsonParseCameraParam = (param, paramName) => {
3
+ if (param === '') {
4
+ return {};
5
+ }
6
+ try {
7
+ return JSON.parse(param);
8
+ }
9
+ catch {
10
+ try {
11
+ return JSON.parse(decodeURIComponent(param.replaceAll('\\', '')));
12
+ }
13
+ catch (e) {
14
+ throw new JsonParseError(paramName, param);
15
+ }
16
+ }
17
+ };
package/esm/index.js CHANGED
@@ -26,3 +26,4 @@ export { CamScripterAPI } from './CamScripterAPI';
26
26
  export * from './types/CamScripterAPI';
27
27
  export { VapixAPI } from './VapixAPI';
28
28
  export * from './types/VapixAPI';
29
+ export * from './helpers';
@@ -72,7 +72,7 @@ export const parseVideoOptionsToVapixParams = (firmWareVersion, video) => {
72
72
  const nbrOfChannels = video.nbrOfChannels ? (video.audio === 1 ? `&nbrOfChannels=${video.nbrOfChannels}` : '') : '';
73
73
  const audioParams = `audio=${video.audio}${nbrOfChannels}`;
74
74
  const videoCodecParams = video.videoCodec === 'h264'
75
- ? `videocodec=${video.videoCodec}&h264Profile=${video.h264Profile}`
75
+ ? `videocodec=${video.videoCodec}&h264profile=${video.h264Profile}`
76
76
  : `videocodec=${video.videoCodec}`;
77
77
  const videoParams = `camera=${video.camera}&resolution=${video.resolution}&fps=${video.fps}&compression=${video.compression}&videokeyframeinterval=${video.govLength}&${videoCodecParams}${overlaysParams}`;
78
78
  return [videoParams, bitrateParams, audioParams].join('&');
@@ -86,7 +86,7 @@ export const parseVapixParamsToVideoOptions = (internalVapixParams) => {
86
86
  });
87
87
  let h264Profile = undefined;
88
88
  if (params['videocodec'] === 'h264') {
89
- h264Profile = (params['h264Profile'] ?? 'high');
89
+ h264Profile = (params['h264profile'] ?? params['h264Profile'] ?? 'high');
90
90
  }
91
91
  let nbrOfChannels = undefined;
92
92
  if (params['audio'] === '1') {
@@ -70,12 +70,14 @@ export const cameraSettingsSchema = z.object({
70
70
  .object({
71
71
  nightSkyCalibrationEnabled: z.boolean(),
72
72
  scheduleNightSkyCalibrationTimestamp: z.number(),
73
+ nightSkyCalibrationRepeatCount: z.number().int().min(1).max(6).default(1),
73
74
  nightSkyCalibrationFocusValue: z.number().int().min(1).max(9999).default(9000),
74
75
  focusCalibrationPoints: z.string().default(''),
75
76
  })
76
77
  .default({
77
78
  nightSkyCalibrationEnabled: false,
78
79
  scheduleNightSkyCalibrationTimestamp: 0,
80
+ nightSkyCalibrationRepeatCount: 1,
79
81
  nightSkyCalibrationFocusValue: 9000,
80
82
  focusCalibrationPoints: '',
81
83
  }),
@@ -50,11 +50,12 @@ export const guardTourSchema = z.object({
50
50
  waitTimeViewType: z.unknown(),
51
51
  })),
52
52
  });
53
- const audioSampleRatesSchema = z.object({
53
+ const audioSampleRatesSchema = z
54
+ .object({
54
55
  sample_rate: z.number(),
55
56
  bit_rates: z.array(z.number()),
56
- });
57
- const audioSampleRatesOutSchema = audioSampleRatesSchema.transform(toCamelCaseDeep);
57
+ })
58
+ .transform(toCamelCaseDeep);
58
59
  export const sdCardWatchedStatuses = ['OK', 'connected', 'disconnected'];
59
60
  export const sdCardInfoSchema = z.object({
60
61
  status: z.enum(sdCardWatchedStatuses),
@@ -15,7 +15,7 @@ const wsApiFlightDataSchema = z.object({
15
15
  groundSpeed: z.number(),
16
16
  altitudeAMSL: z.number(),
17
17
  cameraDistance: z.number(),
18
- autoTrackingOrder: z.number(),
18
+ autoTrackingOrder: z.number().nullable(),
19
19
  whiteListed: z.boolean(),
20
20
  blackListed: z.boolean(),
21
21
  priorityListed: z.boolean(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstreamerlib",
3
- "version": "4.0.28",
3
+ "version": "4.0.30",
4
4
  "description": "Helper library for CamStreamer ACAP applications.",
5
5
  "prettier": "@camstreamer/prettier-config",
6
6
  "engine": {
@@ -11,7 +11,7 @@
11
11
  "eventemitter2": "^5.0.1",
12
12
  "fast-xml-parser": "^5.3.6",
13
13
  "type-fest": "^4.41.0",
14
- "undici": "^6.27.0",
14
+ "undici": "^6.28.0",
15
15
  "ws": "^8.18.0",
16
16
  "zod": "^3.25.76"
17
17
  },
@@ -40,6 +40,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
40
40
  cameraCalibrationProcessConfig: {
41
41
  nightSkyCalibrationEnabled: boolean;
42
42
  scheduleNightSkyCalibrationTimestamp: number;
43
+ nightSkyCalibrationRepeatCount: number;
43
44
  nightSkyCalibrationFocusValue: number;
44
45
  focusCalibrationPoints: string;
45
46
  };
@@ -0,0 +1 @@
1
+ export declare const jsonParseCameraParam: (param: string, paramName: string) => any;
package/types/index.d.ts CHANGED
@@ -26,3 +26,4 @@ export { CamScripterAPI } from './CamScripterAPI';
26
26
  export * from './types/CamScripterAPI';
27
27
  export { VapixAPI } from './VapixAPI';
28
28
  export * from './types/VapixAPI';
29
+ export * from './helpers';
@@ -116,16 +116,19 @@ export declare const cameraSettingsSchema: z.ZodObject<{
116
116
  cameraCalibrationProcessConfig: z.ZodDefault<z.ZodObject<{
117
117
  nightSkyCalibrationEnabled: z.ZodBoolean;
118
118
  scheduleNightSkyCalibrationTimestamp: z.ZodNumber;
119
+ nightSkyCalibrationRepeatCount: z.ZodDefault<z.ZodNumber>;
119
120
  nightSkyCalibrationFocusValue: z.ZodDefault<z.ZodNumber>;
120
121
  focusCalibrationPoints: z.ZodDefault<z.ZodString>;
121
122
  }, "strip", z.ZodTypeAny, {
122
123
  nightSkyCalibrationEnabled: boolean;
123
124
  scheduleNightSkyCalibrationTimestamp: number;
125
+ nightSkyCalibrationRepeatCount: number;
124
126
  nightSkyCalibrationFocusValue: number;
125
127
  focusCalibrationPoints: string;
126
128
  }, {
127
129
  nightSkyCalibrationEnabled: boolean;
128
130
  scheduleNightSkyCalibrationTimestamp: number;
131
+ nightSkyCalibrationRepeatCount?: number | undefined;
129
132
  nightSkyCalibrationFocusValue?: number | undefined;
130
133
  focusCalibrationPoints?: string | undefined;
131
134
  }>>;
@@ -452,6 +455,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
452
455
  cameraCalibrationProcessConfig: {
453
456
  nightSkyCalibrationEnabled: boolean;
454
457
  scheduleNightSkyCalibrationTimestamp: number;
458
+ nightSkyCalibrationRepeatCount: number;
455
459
  nightSkyCalibrationFocusValue: number;
456
460
  focusCalibrationPoints: string;
457
461
  };
@@ -585,6 +589,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
585
589
  cameraCalibrationProcessConfig?: {
586
590
  nightSkyCalibrationEnabled: boolean;
587
591
  scheduleNightSkyCalibrationTimestamp: number;
592
+ nightSkyCalibrationRepeatCount?: number | undefined;
588
593
  nightSkyCalibrationFocusValue?: number | undefined;
589
594
  focusCalibrationPoints?: string | undefined;
590
595
  } | undefined;
@@ -133,7 +133,7 @@ export declare const guardTourSchema: z.ZodObject<{
133
133
  timeBetweenSequences?: unknown;
134
134
  }>;
135
135
  export type TGuardTour = z.infer<typeof guardTourSchema>;
136
- declare const audioSampleRatesOutSchema: z.ZodEffects<z.ZodObject<{
136
+ declare const audioSampleRatesSchema: z.ZodEffects<z.ZodObject<{
137
137
  sample_rate: z.ZodNumber;
138
138
  bit_rates: z.ZodArray<z.ZodNumber, "many">;
139
139
  }, "strip", z.ZodTypeAny, {
@@ -149,7 +149,7 @@ declare const audioSampleRatesOutSchema: z.ZodEffects<z.ZodObject<{
149
149
  sample_rate: number;
150
150
  bit_rates: number[];
151
151
  }>;
152
- export type TAudioSampleRates = z.infer<typeof audioSampleRatesOutSchema>;
152
+ export type TAudioSampleRates = z.infer<typeof audioSampleRatesSchema>;
153
153
  export declare const sdCardWatchedStatuses: readonly ["OK", "connected", "disconnected"];
154
154
  export declare const sdCardInfoSchema: z.ZodObject<{
155
155
  status: z.ZodEnum<["OK", "connected", "disconnected"]>;
@@ -1666,7 +1666,7 @@ export declare const timeZoneSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObj
1666
1666
  export declare const audioSampleRatesResponseSchema: z.ZodObject<{
1667
1667
  data: z.ZodObject<{
1668
1668
  encoders: z.ZodObject<{
1669
- aac: z.ZodOptional<z.ZodArray<z.ZodObject<{
1669
+ aac: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1670
1670
  sample_rate: z.ZodNumber;
1671
1671
  bit_rates: z.ZodArray<z.ZodNumber, "many">;
1672
1672
  }, "strip", z.ZodTypeAny, {
@@ -1675,8 +1675,14 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
1675
1675
  }, {
1676
1676
  sample_rate: number;
1677
1677
  bit_rates: number[];
1678
+ }>, {
1679
+ sampleRate: number;
1680
+ bitRates: number[];
1681
+ }, {
1682
+ sample_rate: number;
1683
+ bit_rates: number[];
1678
1684
  }>, "many">>;
1679
- AAC: z.ZodOptional<z.ZodArray<z.ZodObject<{
1685
+ AAC: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1680
1686
  sample_rate: z.ZodNumber;
1681
1687
  bit_rates: z.ZodArray<z.ZodNumber, "many">;
1682
1688
  }, "strip", z.ZodTypeAny, {
@@ -1685,15 +1691,21 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
1685
1691
  }, {
1686
1692
  sample_rate: number;
1687
1693
  bit_rates: number[];
1694
+ }>, {
1695
+ sampleRate: number;
1696
+ bitRates: number[];
1697
+ }, {
1698
+ sample_rate: number;
1699
+ bit_rates: number[];
1688
1700
  }>, "many">>;
1689
1701
  }, "strip", z.ZodTypeAny, {
1690
1702
  aac?: {
1691
- sample_rate: number;
1692
- bit_rates: number[];
1703
+ sampleRate: number;
1704
+ bitRates: number[];
1693
1705
  }[] | undefined;
1694
1706
  AAC?: {
1695
- sample_rate: number;
1696
- bit_rates: number[];
1707
+ sampleRate: number;
1708
+ bitRates: number[];
1697
1709
  }[] | undefined;
1698
1710
  }, {
1699
1711
  aac?: {
@@ -1708,12 +1720,12 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
1708
1720
  }, "strip", z.ZodTypeAny, {
1709
1721
  encoders: {
1710
1722
  aac?: {
1711
- sample_rate: number;
1712
- bit_rates: number[];
1723
+ sampleRate: number;
1724
+ bitRates: number[];
1713
1725
  }[] | undefined;
1714
1726
  AAC?: {
1715
- sample_rate: number;
1716
- bit_rates: number[];
1727
+ sampleRate: number;
1728
+ bitRates: number[];
1717
1729
  }[] | undefined;
1718
1730
  };
1719
1731
  }, {
@@ -1732,12 +1744,12 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
1732
1744
  data: {
1733
1745
  encoders: {
1734
1746
  aac?: {
1735
- sample_rate: number;
1736
- bit_rates: number[];
1747
+ sampleRate: number;
1748
+ bitRates: number[];
1737
1749
  }[] | undefined;
1738
1750
  AAC?: {
1739
- sample_rate: number;
1740
- bit_rates: number[];
1751
+ sampleRate: number;
1752
+ bitRates: number[];
1741
1753
  }[] | undefined;
1742
1754
  };
1743
1755
  };
@@ -14,7 +14,7 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
14
14
  groundSpeed: z.ZodNumber;
15
15
  altitudeAMSL: z.ZodNumber;
16
16
  cameraDistance: z.ZodNumber;
17
- autoTrackingOrder: z.ZodNumber;
17
+ autoTrackingOrder: z.ZodNullable<z.ZodNumber>;
18
18
  whiteListed: z.ZodBoolean;
19
19
  blackListed: z.ZodBoolean;
20
20
  priorityListed: z.ZodBoolean;
@@ -39,7 +39,7 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
39
39
  groundSpeed: number;
40
40
  altitudeAMSL: number;
41
41
  cameraDistance: number;
42
- autoTrackingOrder: number;
42
+ autoTrackingOrder: number | null;
43
43
  whiteListed: boolean;
44
44
  blackListed: boolean;
45
45
  priorityListed: boolean;
@@ -65,7 +65,7 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
65
65
  groundSpeed: number;
66
66
  altitudeAMSL: number;
67
67
  cameraDistance: number;
68
- autoTrackingOrder: number;
68
+ autoTrackingOrder: number | null;
69
69
  whiteListed: boolean;
70
70
  blackListed: boolean;
71
71
  priorityListed: boolean;
@@ -200,7 +200,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
200
200
  groundSpeed: z.ZodNumber;
201
201
  altitudeAMSL: z.ZodNumber;
202
202
  cameraDistance: z.ZodNumber;
203
- autoTrackingOrder: z.ZodNumber;
203
+ autoTrackingOrder: z.ZodNullable<z.ZodNumber>;
204
204
  whiteListed: z.ZodBoolean;
205
205
  blackListed: z.ZodBoolean;
206
206
  priorityListed: z.ZodBoolean;
@@ -225,7 +225,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
225
225
  groundSpeed: number;
226
226
  altitudeAMSL: number;
227
227
  cameraDistance: number;
228
- autoTrackingOrder: number;
228
+ autoTrackingOrder: number | null;
229
229
  whiteListed: boolean;
230
230
  blackListed: boolean;
231
231
  priorityListed: boolean;
@@ -251,7 +251,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
251
251
  groundSpeed: number;
252
252
  altitudeAMSL: number;
253
253
  cameraDistance: number;
254
- autoTrackingOrder: number;
254
+ autoTrackingOrder: number | null;
255
255
  whiteListed: boolean;
256
256
  blackListed: boolean;
257
257
  priorityListed: boolean;
@@ -280,7 +280,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
280
280
  groundSpeed: number;
281
281
  altitudeAMSL: number;
282
282
  cameraDistance: number;
283
- autoTrackingOrder: number;
283
+ autoTrackingOrder: number | null;
284
284
  whiteListed: boolean;
285
285
  blackListed: boolean;
286
286
  priorityListed: boolean;
@@ -309,7 +309,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
309
309
  groundSpeed: number;
310
310
  altitudeAMSL: number;
311
311
  cameraDistance: number;
312
- autoTrackingOrder: number;
312
+ autoTrackingOrder: number | null;
313
313
  whiteListed: boolean;
314
314
  blackListed: boolean;
315
315
  priorityListed: boolean;
@@ -1349,7 +1349,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1349
1349
  groundSpeed: z.ZodNumber;
1350
1350
  altitudeAMSL: z.ZodNumber;
1351
1351
  cameraDistance: z.ZodNumber;
1352
- autoTrackingOrder: z.ZodNumber;
1352
+ autoTrackingOrder: z.ZodNullable<z.ZodNumber>;
1353
1353
  whiteListed: z.ZodBoolean;
1354
1354
  blackListed: z.ZodBoolean;
1355
1355
  priorityListed: z.ZodBoolean;
@@ -1374,7 +1374,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1374
1374
  groundSpeed: number;
1375
1375
  altitudeAMSL: number;
1376
1376
  cameraDistance: number;
1377
- autoTrackingOrder: number;
1377
+ autoTrackingOrder: number | null;
1378
1378
  whiteListed: boolean;
1379
1379
  blackListed: boolean;
1380
1380
  priorityListed: boolean;
@@ -1400,7 +1400,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1400
1400
  groundSpeed: number;
1401
1401
  altitudeAMSL: number;
1402
1402
  cameraDistance: number;
1403
- autoTrackingOrder: number;
1403
+ autoTrackingOrder: number | null;
1404
1404
  whiteListed: boolean;
1405
1405
  blackListed: boolean;
1406
1406
  priorityListed: boolean;
@@ -1429,7 +1429,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1429
1429
  groundSpeed: number;
1430
1430
  altitudeAMSL: number;
1431
1431
  cameraDistance: number;
1432
- autoTrackingOrder: number;
1432
+ autoTrackingOrder: number | null;
1433
1433
  whiteListed: boolean;
1434
1434
  blackListed: boolean;
1435
1435
  priorityListed: boolean;
@@ -1458,7 +1458,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1458
1458
  groundSpeed: number;
1459
1459
  altitudeAMSL: number;
1460
1460
  cameraDistance: number;
1461
- autoTrackingOrder: number;
1461
+ autoTrackingOrder: number | null;
1462
1462
  whiteListed: boolean;
1463
1463
  blackListed: boolean;
1464
1464
  priorityListed: boolean;
@@ -2464,7 +2464,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2464
2464
  groundSpeed: number;
2465
2465
  altitudeAMSL: number;
2466
2466
  cameraDistance: number;
2467
- autoTrackingOrder: number;
2467
+ autoTrackingOrder: number | null;
2468
2468
  whiteListed: boolean;
2469
2469
  blackListed: boolean;
2470
2470
  priorityListed: boolean;
@@ -2726,7 +2726,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2726
2726
  groundSpeed: number;
2727
2727
  altitudeAMSL: number;
2728
2728
  cameraDistance: number;
2729
- autoTrackingOrder: number;
2729
+ autoTrackingOrder: number | null;
2730
2730
  whiteListed: boolean;
2731
2731
  blackListed: boolean;
2732
2732
  priorityListed: boolean;
@@ -3020,7 +3020,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
3020
3020
  groundSpeed: z.ZodNumber;
3021
3021
  altitudeAMSL: z.ZodNumber;
3022
3022
  cameraDistance: z.ZodNumber;
3023
- autoTrackingOrder: z.ZodNumber;
3023
+ autoTrackingOrder: z.ZodNullable<z.ZodNumber>;
3024
3024
  whiteListed: z.ZodBoolean;
3025
3025
  blackListed: z.ZodBoolean;
3026
3026
  priorityListed: z.ZodBoolean;
@@ -3045,7 +3045,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
3045
3045
  groundSpeed: number;
3046
3046
  altitudeAMSL: number;
3047
3047
  cameraDistance: number;
3048
- autoTrackingOrder: number;
3048
+ autoTrackingOrder: number | null;
3049
3049
  whiteListed: boolean;
3050
3050
  blackListed: boolean;
3051
3051
  priorityListed: boolean;
@@ -3071,7 +3071,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
3071
3071
  groundSpeed: number;
3072
3072
  altitudeAMSL: number;
3073
3073
  cameraDistance: number;
3074
- autoTrackingOrder: number;
3074
+ autoTrackingOrder: number | null;
3075
3075
  whiteListed: boolean;
3076
3076
  blackListed: boolean;
3077
3077
  priorityListed: boolean;
@@ -3100,7 +3100,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
3100
3100
  groundSpeed: number;
3101
3101
  altitudeAMSL: number;
3102
3102
  cameraDistance: number;
3103
- autoTrackingOrder: number;
3103
+ autoTrackingOrder: number | null;
3104
3104
  whiteListed: boolean;
3105
3105
  blackListed: boolean;
3106
3106
  priorityListed: boolean;
@@ -3129,7 +3129,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
3129
3129
  groundSpeed: number;
3130
3130
  altitudeAMSL: number;
3131
3131
  cameraDistance: number;
3132
- autoTrackingOrder: number;
3132
+ autoTrackingOrder: number | null;
3133
3133
  whiteListed: boolean;
3134
3134
  blackListed: boolean;
3135
3135
  priorityListed: boolean;