camstreamerlib 4.0.26-b58d309 → 4.0.27-32edb97

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.
@@ -281,7 +281,7 @@ class CamSwitcherAPI extends BasicAPI_1.BasicAPI {
281
281
  }
282
282
  catch {
283
283
  try {
284
- return JSON.parse(decodeURIComponent(data[paramName] + ''));
284
+ return JSON.parse(decodeURIComponent((data[paramName] + '').replaceAll('\\', '')));
285
285
  }
286
286
  catch (e) {
287
287
  throw new errors_1.JsonParseError(paramName, data[paramName]);
@@ -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
  };
@@ -260,6 +261,8 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
260
261
  }[]];
261
262
  flightDirection: "all" | "arrival" | "departure";
262
263
  weight: number;
264
+ perimeter: "none" | "outer" | "inner";
265
+ trackingDomains: ("adsb" | "remoteId")[];
263
266
  name?: string | undefined;
264
267
  minAltitudeAmsl?: number | undefined;
265
268
  maxAltitudeAmsl?: number | undefined;
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 {
@@ -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;
@@ -1035,9 +1040,37 @@ export declare const priorityListSchema: z.ZodObject<{
1035
1040
  idValue: string;
1036
1041
  }[] | undefined;
1037
1042
  }>;
1043
+ export declare const friendlyListSchema: z.ZodObject<{
1044
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
1045
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
1046
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
1047
+ idValue: z.ZodString;
1048
+ }, "strip", z.ZodTypeAny, {
1049
+ domain: "adsb" | "remoteId";
1050
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1051
+ idValue: string;
1052
+ }, {
1053
+ domain: "adsb" | "remoteId";
1054
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1055
+ idValue: string;
1056
+ }>, "many">>;
1057
+ }, "strip", z.ZodTypeAny, {
1058
+ list: {
1059
+ domain: "adsb" | "remoteId";
1060
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1061
+ idValue: string;
1062
+ }[];
1063
+ }, {
1064
+ list?: {
1065
+ domain: "adsb" | "remoteId";
1066
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1067
+ idValue: string;
1068
+ }[] | undefined;
1069
+ }>;
1038
1070
  export type TWhiteList = z.infer<typeof whiteListSchema>;
1039
1071
  export type TBlackList = z.infer<typeof blackListSchema>;
1040
1072
  export type TPriorityList = z.infer<typeof priorityListSchema>;
1073
+ export type TFriendlyList = z.infer<typeof friendlyListSchema>;
1041
1074
  export declare const mapTypeSchema: z.ZodEnum<["roadmap", "satellite"]>;
1042
1075
  export type TMapType = z.infer<typeof mapTypeSchema>;
1043
1076
  export declare const mapInfoSchema: z.ZodObject<{
@@ -1057,6 +1090,10 @@ export declare const mapInfoSchema: z.ZodObject<{
1057
1090
  tileSize: number;
1058
1091
  }>;
1059
1092
  export type TMapInfo = z.infer<typeof mapInfoSchema>;
1093
+ export declare const domainIdSchema: z.ZodEnum<["adsb", "remoteId"]>;
1094
+ export type TDomainId = z.infer<typeof domainIdSchema>;
1095
+ export declare const zonePerimeterSchema: z.ZodEnum<["none", "outer", "inner"]>;
1096
+ export type TZonePerimeter = z.infer<typeof zonePerimeterSchema>;
1060
1097
  export declare const zonesSchema: z.ZodObject<{
1061
1098
  zones: z.ZodDefault<z.ZodArray<z.ZodObject<{
1062
1099
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -1077,6 +1114,8 @@ export declare const zonesSchema: z.ZodObject<{
1077
1114
  maxSpeedKmph: z.ZodOptional<z.ZodNumber>;
1078
1115
  flightDirection: z.ZodDefault<z.ZodEnum<["all", "arrival", "departure"]>>;
1079
1116
  weight: z.ZodNumber;
1117
+ perimeter: z.ZodDefault<z.ZodEnum<["none", "outer", "inner"]>>;
1118
+ trackingDomains: z.ZodDefault<z.ZodArray<z.ZodEnum<["adsb", "remoteId"]>, "many">>;
1080
1119
  }, "strip", z.ZodTypeAny, {
1081
1120
  enabled: boolean;
1082
1121
  area: [{
@@ -1088,6 +1127,8 @@ export declare const zonesSchema: z.ZodObject<{
1088
1127
  }[]];
1089
1128
  flightDirection: "all" | "arrival" | "departure";
1090
1129
  weight: number;
1130
+ perimeter: "none" | "outer" | "inner";
1131
+ trackingDomains: ("adsb" | "remoteId")[];
1091
1132
  name?: string | undefined;
1092
1133
  minAltitudeAmsl?: number | undefined;
1093
1134
  maxAltitudeAmsl?: number | undefined;
@@ -1109,6 +1150,8 @@ export declare const zonesSchema: z.ZodObject<{
1109
1150
  minSpeedKmph?: number | undefined;
1110
1151
  maxSpeedKmph?: number | undefined;
1111
1152
  flightDirection?: "all" | "arrival" | "departure" | undefined;
1153
+ perimeter?: "none" | "outer" | "inner" | undefined;
1154
+ trackingDomains?: ("adsb" | "remoteId")[] | undefined;
1112
1155
  }>, "many">>;
1113
1156
  }, "strip", z.ZodTypeAny, {
1114
1157
  zones: {
@@ -1122,6 +1165,8 @@ export declare const zonesSchema: z.ZodObject<{
1122
1165
  }[]];
1123
1166
  flightDirection: "all" | "arrival" | "departure";
1124
1167
  weight: number;
1168
+ perimeter: "none" | "outer" | "inner";
1169
+ trackingDomains: ("adsb" | "remoteId")[];
1125
1170
  name?: string | undefined;
1126
1171
  minAltitudeAmsl?: number | undefined;
1127
1172
  maxAltitudeAmsl?: number | undefined;
@@ -1145,11 +1190,11 @@ export declare const zonesSchema: z.ZodObject<{
1145
1190
  minSpeedKmph?: number | undefined;
1146
1191
  maxSpeedKmph?: number | undefined;
1147
1192
  flightDirection?: "all" | "arrival" | "departure" | undefined;
1193
+ perimeter?: "none" | "outer" | "inner" | undefined;
1194
+ trackingDomains?: ("adsb" | "remoteId")[] | undefined;
1148
1195
  }[] | undefined;
1149
1196
  }>;
1150
1197
  export type TZones = z.infer<typeof zonesSchema>;
1151
- export declare const domainIdSchema: z.ZodEnum<["adsb", "remoteId"]>;
1152
- export type TDomainId = z.infer<typeof domainIdSchema>;
1153
1198
  declare const categoryIconSchema: z.ZodEnum<["small", "large", "heavy", "helicopter", "drone", "operator", "vehicle", "unknown"]>;
1154
1199
  export type TCategoryIcon = z.infer<typeof categoryIconSchema>;
1155
1200
  declare const categoryDescriptorSchema: z.ZodObject<{
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.REMOTE_ID_CATEGORY_IDS = exports.ADSB_CATEGORY_IDS = exports.domainListSchema = exports.domainIdSchema = exports.zonesSchema = exports.mapInfoSchema = exports.mapTypeSchema = exports.priorityListSchema = exports.blackListSchema = exports.whiteListSchema = exports.priorityListEntrySchema = exports.listEntrySchema = exports.listEntryIdTypeSchema = exports.listEntryDomainSchema = exports.flightInfoSchema = exports.trackingModeSchema = exports.getIcaoSchema = exports.serverSettingsSchema = exports.cameraSettingsSchema = exports.widgetSchema = exports.milestoneCameraListSchema = exports.connectionSchema = exports.wsAliasResponseSchema = void 0;
3
+ exports.REMOTE_ID_CATEGORY_IDS = exports.ADSB_CATEGORY_IDS = exports.domainListSchema = exports.zonesSchema = exports.zonePerimeterSchema = exports.domainIdSchema = exports.mapInfoSchema = exports.mapTypeSchema = exports.friendlyListSchema = exports.priorityListSchema = exports.blackListSchema = exports.whiteListSchema = exports.priorityListEntrySchema = exports.listEntrySchema = exports.listEntryIdTypeSchema = exports.listEntryDomainSchema = exports.flightInfoSchema = exports.trackingModeSchema = exports.getIcaoSchema = exports.serverSettingsSchema = exports.cameraSettingsSchema = exports.widgetSchema = exports.milestoneCameraListSchema = exports.connectionSchema = exports.wsAliasResponseSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.wsAliasResponseSchema = zod_1.z.object({
6
6
  alias: zod_1.z.string(),
@@ -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
  }),
@@ -342,6 +344,9 @@ exports.blackListSchema = zod_1.z.object({
342
344
  exports.priorityListSchema = zod_1.z.object({
343
345
  list: zod_1.z.array(exports.priorityListEntrySchema).default([]),
344
346
  });
347
+ exports.friendlyListSchema = zod_1.z.object({
348
+ list: zod_1.z.array(exports.listEntrySchema).default([]),
349
+ });
345
350
  exports.mapTypeSchema = zod_1.z.enum(['roadmap', 'satellite']);
346
351
  exports.mapInfoSchema = zod_1.z.object({
347
352
  minZoom: zod_1.z.number().nonnegative(),
@@ -349,6 +354,8 @@ exports.mapInfoSchema = zod_1.z.object({
349
354
  mapTypes: zod_1.z.array(exports.mapTypeSchema),
350
355
  tileSize: zod_1.z.number().nonnegative(),
351
356
  });
357
+ exports.domainIdSchema = zod_1.z.enum(['adsb', 'remoteId']);
358
+ exports.zonePerimeterSchema = zod_1.z.enum(['none', 'outer', 'inner']);
352
359
  exports.zonesSchema = zod_1.z.object({
353
360
  zones: zod_1.z
354
361
  .array(zod_1.z.object({
@@ -366,10 +373,11 @@ exports.zonesSchema = zod_1.z.object({
366
373
  maxSpeedKmph: zod_1.z.number().optional(),
367
374
  flightDirection: zod_1.z.enum(['all', 'arrival', 'departure']).default('all'),
368
375
  weight: zod_1.z.number(),
376
+ perimeter: exports.zonePerimeterSchema.default('none'),
377
+ trackingDomains: zod_1.z.array(exports.domainIdSchema).default(['adsb', 'remoteId']),
369
378
  }))
370
379
  .default([]),
371
380
  });
372
- exports.domainIdSchema = zod_1.z.enum(['adsb', 'remoteId']);
373
381
  const categoryIconSchema = zod_1.z.enum(['small', 'large', 'heavy', 'helicopter', 'drone', 'operator', 'vehicle', 'unknown']);
374
382
  const categoryDescriptorSchema = zod_1.z.object({
375
383
  categoryId: zod_1.z.string(),
@@ -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),