camstreamerlib 4.0.0-beta.53 → 4.0.0-beta.55

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.
@@ -59,8 +59,13 @@ exports.cameraSettingsSchema = zod_1.z.object({
59
59
  .object({
60
60
  nightSkyCalibrationEnabled: zod_1.z.boolean(),
61
61
  scheduleNightSkyCalibrationTimestamp: zod_1.z.number(),
62
+ focusCalibrationPoints: zod_1.z.string().default(''),
62
63
  })
63
- .default({ nightSkyCalibrationEnabled: false, scheduleNightSkyCalibrationTimestamp: 0 }),
64
+ .default({
65
+ nightSkyCalibrationEnabled: false,
66
+ scheduleNightSkyCalibrationTimestamp: 0,
67
+ focusCalibrationPoints: '',
68
+ }),
64
69
  cameraConfig: zod_1.z
65
70
  .object({
66
71
  maxZoomLevel: zod_1.z.number().optional(),
@@ -82,8 +87,9 @@ exports.cameraSettingsSchema = zod_1.z.object({
82
87
  .object({
83
88
  dayAperture: zod_1.z.number().nonnegative().min(0).max(100),
84
89
  nightAperture: zod_1.z.number().nonnegative().min(0).max(100),
90
+ maxGain: zod_1.z.number().nonnegative().min(0).max(100).default(100),
85
91
  })
86
- .default({ dayAperture: 50, nightAperture: 0 }),
92
+ .default({ dayAperture: 50, nightAperture: 0, maxGain: 100 }),
87
93
  airportConfig: zod_1.z
88
94
  .object({
89
95
  icao: zod_1.z.string().default(''),
@@ -100,6 +106,7 @@ exports.cameraSettingsSchema = zod_1.z.object({
100
106
  trackingConfig: zod_1.z
101
107
  .object({
102
108
  prioritizeEmergency: zod_1.z.boolean(),
109
+ trackingZoneWeightIncrease: zod_1.z.number().int().nonnegative().default(0),
103
110
  guardTourEnabled: zod_1.z.boolean().default(false),
104
111
  guardTourId: zod_1.z.number().int().nonnegative().default(0),
105
112
  })
@@ -296,6 +303,7 @@ exports.zonesSchema = zod_1.z.object({
296
303
  maxAltitudeAmsl: zod_1.z.number().optional(),
297
304
  minSpeedKmph: zod_1.z.number().optional(),
298
305
  maxSpeedKmph: zod_1.z.number().optional(),
306
+ flightDirection: zod_1.z.enum(['all', 'arrival', 'departure']).default('all'),
299
307
  weight: zod_1.z.number(),
300
308
  }))
301
309
  .default([]),
@@ -56,8 +56,13 @@ export const cameraSettingsSchema = z.object({
56
56
  .object({
57
57
  nightSkyCalibrationEnabled: z.boolean(),
58
58
  scheduleNightSkyCalibrationTimestamp: z.number(),
59
+ focusCalibrationPoints: z.string().default(''),
59
60
  })
60
- .default({ nightSkyCalibrationEnabled: false, scheduleNightSkyCalibrationTimestamp: 0 }),
61
+ .default({
62
+ nightSkyCalibrationEnabled: false,
63
+ scheduleNightSkyCalibrationTimestamp: 0,
64
+ focusCalibrationPoints: '',
65
+ }),
61
66
  cameraConfig: z
62
67
  .object({
63
68
  maxZoomLevel: z.number().optional(),
@@ -79,8 +84,9 @@ export const cameraSettingsSchema = z.object({
79
84
  .object({
80
85
  dayAperture: z.number().nonnegative().min(0).max(100),
81
86
  nightAperture: z.number().nonnegative().min(0).max(100),
87
+ maxGain: z.number().nonnegative().min(0).max(100).default(100),
82
88
  })
83
- .default({ dayAperture: 50, nightAperture: 0 }),
89
+ .default({ dayAperture: 50, nightAperture: 0, maxGain: 100 }),
84
90
  airportConfig: z
85
91
  .object({
86
92
  icao: z.string().default(''),
@@ -97,6 +103,7 @@ export const cameraSettingsSchema = z.object({
97
103
  trackingConfig: z
98
104
  .object({
99
105
  prioritizeEmergency: z.boolean(),
106
+ trackingZoneWeightIncrease: z.number().int().nonnegative().default(0),
100
107
  guardTourEnabled: z.boolean().default(false),
101
108
  guardTourId: z.number().int().nonnegative().default(0),
102
109
  })
@@ -293,6 +300,7 @@ export const zonesSchema = z.object({
293
300
  maxAltitudeAmsl: z.number().optional(),
294
301
  minSpeedKmph: z.number().optional(),
295
302
  maxSpeedKmph: z.number().optional(),
303
+ flightDirection: z.enum(['all', 'arrival', 'departure']).default('all'),
296
304
  weight: z.number(),
297
305
  }))
298
306
  .default([]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstreamerlib",
3
- "version": "4.0.0-beta.53",
3
+ "version": "4.0.0-beta.55",
4
4
  "description": "Helper library for CamStreamer ACAP applications.",
5
5
  "prettier": "@camstreamer/prettier-config",
6
6
  "engine": {
@@ -1,7 +1,6 @@
1
1
  import { ProxyClient } from './internal/ProxyClient';
2
2
  import { IClient, TResponse } from './internal/types';
3
- import { TCameraStorageType } from './types/CamScripterAPI';
4
- import { THttpRequestOptions, TProxyParams } from './types/common';
3
+ import { THttpRequestOptions, TProxyParams, TStorageType } from './types/common';
5
4
  export declare class CamScripterAPI<Client extends IClient<TResponse, any>> {
6
5
  private client;
7
6
  constructor(client: Client);
@@ -23,7 +22,7 @@ export declare class CamScripterAPI<Client extends IClient<TResponse, any>> {
23
22
  capacity_mb: number;
24
23
  }]>;
25
24
  getPackageList(options?: THttpRequestOptions): Promise<{
26
- storage: "INTERNAL" | "SD_CARD";
25
+ storage: "SD_CARD" | "INTERNAL";
27
26
  manifest: {
28
27
  package_name: string;
29
28
  package_menu_name: string;
@@ -34,14 +33,14 @@ export declare class CamScripterAPI<Client extends IClient<TResponse, any>> {
34
33
  required_camscripter_rbi_version?: string | undefined;
35
34
  };
36
35
  }[]>;
37
- installPackages(formData: Parameters<Client['post']>[0]['data'], storage: TCameraStorageType, options?: THttpRequestOptions): Promise<void>;
36
+ installPackages(formData: Parameters<Client['post']>[0]['data'], storage: TStorageType, options?: THttpRequestOptions): Promise<void>;
38
37
  uninstallPackage(packageId: string, options?: THttpRequestOptions): Promise<void>;
39
38
  importSettings(packageId: string, formData: Parameters<Client['post']>[0]['data'], options?: THttpRequestOptions): Promise<void>;
40
39
  exportSettings(packageId: string, formData: Parameters<Client['post']>[0]['data'], options?: THttpRequestOptions): Promise<void>;
41
40
  getNodejsStatus(options?: THttpRequestOptions): Promise<{
42
41
  node_state: "OK" | "NOT_INSTALLED" | "NOT_FOUND";
43
42
  }>;
44
- installNodejs(storage: TCameraStorageType, options?: THttpRequestOptions): Promise<void>;
43
+ installNodejs(storage: TStorageType, options?: THttpRequestOptions): Promise<void>;
45
44
  private _getJson;
46
45
  private _post;
47
46
  }
@@ -34,6 +34,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
34
34
  cameraCalibrationProcessConfig: {
35
35
  nightSkyCalibrationEnabled: boolean;
36
36
  scheduleNightSkyCalibrationTimestamp: number;
37
+ focusCalibrationPoints: string;
37
38
  };
38
39
  cameraConfig: {
39
40
  defaultCaptureSizeMeters: number;
@@ -47,6 +48,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
47
48
  imageConfig: {
48
49
  dayAperture: number;
49
50
  nightAperture: number;
51
+ maxGain: number;
50
52
  };
51
53
  airportConfig: {
52
54
  icao: string;
@@ -56,6 +58,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
56
58
  };
57
59
  trackingConfig: {
58
60
  prioritizeEmergency: boolean;
61
+ trackingZoneWeightIncrease: number;
59
62
  guardTourEnabled: boolean;
60
63
  guardTourId: number;
61
64
  };
@@ -207,6 +210,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
207
210
  lat: number;
208
211
  lon: number;
209
212
  }[]];
213
+ flightDirection: "all" | "arrival" | "departure";
210
214
  weight: number;
211
215
  name?: string | undefined;
212
216
  minAltitudeAmsl?: number | undefined;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export type TCameraStorageType = 'INTERNAL' | 'SD_CARD';
2
+ import { TStorageType } from './common';
3
3
  export declare const nodeStateSchema: z.ZodObject<{
4
4
  node_state: z.ZodUnion<[z.ZodLiteral<"OK">, z.ZodLiteral<"NOT_INSTALLED">, z.ZodLiteral<"NOT_FOUND">]>;
5
5
  }, "strip", z.ZodTypeAny, {
@@ -36,7 +36,7 @@ export declare const packageInfoListSchema: z.ZodArray<z.ZodObject<{
36
36
  required_camscripter_rbi_version?: string | undefined;
37
37
  }>;
38
38
  }, "strip", z.ZodTypeAny, {
39
- storage: "INTERNAL" | "SD_CARD";
39
+ storage: "SD_CARD" | "INTERNAL";
40
40
  manifest: {
41
41
  package_name: string;
42
42
  package_menu_name: string;
@@ -47,7 +47,7 @@ export declare const packageInfoListSchema: z.ZodArray<z.ZodObject<{
47
47
  required_camscripter_rbi_version?: string | undefined;
48
48
  };
49
49
  }, {
50
- storage: "INTERNAL" | "SD_CARD";
50
+ storage: "SD_CARD" | "INTERNAL";
51
51
  manifest: {
52
52
  package_name: string;
53
53
  package_menu_name: string;
@@ -104,7 +104,7 @@ export declare const cameraStorageSchema: z.ZodUnion<[z.ZodTuple<[z.ZodObject<{
104
104
  export type TCameraStorage = z.infer<typeof cameraStorageSchema>;
105
105
  export type TStorageParsedData = {
106
106
  size: number;
107
- storageType: TCameraStorageType;
107
+ storageType: TStorageType;
108
108
  }[];
109
109
  export declare const camscripterApiResponseSchema: z.ZodObject<{
110
110
  status: z.ZodNumber;
@@ -93,12 +93,15 @@ export declare const cameraSettingsSchema: z.ZodObject<{
93
93
  cameraCalibrationProcessConfig: z.ZodDefault<z.ZodObject<{
94
94
  nightSkyCalibrationEnabled: z.ZodBoolean;
95
95
  scheduleNightSkyCalibrationTimestamp: z.ZodNumber;
96
+ focusCalibrationPoints: z.ZodDefault<z.ZodString>;
96
97
  }, "strip", z.ZodTypeAny, {
97
98
  nightSkyCalibrationEnabled: boolean;
98
99
  scheduleNightSkyCalibrationTimestamp: number;
100
+ focusCalibrationPoints: string;
99
101
  }, {
100
102
  nightSkyCalibrationEnabled: boolean;
101
103
  scheduleNightSkyCalibrationTimestamp: number;
104
+ focusCalibrationPoints?: string | undefined;
102
105
  }>>;
103
106
  cameraConfig: z.ZodDefault<z.ZodObject<{
104
107
  maxZoomLevel: z.ZodOptional<z.ZodNumber>;
@@ -126,12 +129,15 @@ export declare const cameraSettingsSchema: z.ZodObject<{
126
129
  imageConfig: z.ZodDefault<z.ZodObject<{
127
130
  dayAperture: z.ZodNumber;
128
131
  nightAperture: z.ZodNumber;
132
+ maxGain: z.ZodDefault<z.ZodNumber>;
129
133
  }, "strip", z.ZodTypeAny, {
130
134
  dayAperture: number;
131
135
  nightAperture: number;
136
+ maxGain: number;
132
137
  }, {
133
138
  dayAperture: number;
134
139
  nightAperture: number;
140
+ maxGain?: number | undefined;
135
141
  }>>;
136
142
  airportConfig: z.ZodDefault<z.ZodObject<{
137
143
  icao: z.ZodDefault<z.ZodString>;
@@ -151,14 +157,17 @@ export declare const cameraSettingsSchema: z.ZodObject<{
151
157
  }>>;
152
158
  trackingConfig: z.ZodDefault<z.ZodObject<{
153
159
  prioritizeEmergency: z.ZodBoolean;
160
+ trackingZoneWeightIncrease: z.ZodDefault<z.ZodNumber>;
154
161
  guardTourEnabled: z.ZodDefault<z.ZodBoolean>;
155
162
  guardTourId: z.ZodDefault<z.ZodNumber>;
156
163
  }, "strip", z.ZodTypeAny, {
157
164
  prioritizeEmergency: boolean;
165
+ trackingZoneWeightIncrease: number;
158
166
  guardTourEnabled: boolean;
159
167
  guardTourId: number;
160
168
  }, {
161
169
  prioritizeEmergency: boolean;
170
+ trackingZoneWeightIncrease?: number | undefined;
162
171
  guardTourEnabled?: boolean | undefined;
163
172
  guardTourId?: number | undefined;
164
173
  }>>;
@@ -386,6 +395,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
386
395
  cameraCalibrationProcessConfig: {
387
396
  nightSkyCalibrationEnabled: boolean;
388
397
  scheduleNightSkyCalibrationTimestamp: number;
398
+ focusCalibrationPoints: string;
389
399
  };
390
400
  cameraConfig: {
391
401
  defaultCaptureSizeMeters: number;
@@ -399,6 +409,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
399
409
  imageConfig: {
400
410
  dayAperture: number;
401
411
  nightAperture: number;
412
+ maxGain: number;
402
413
  };
403
414
  airportConfig: {
404
415
  icao: string;
@@ -408,6 +419,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
408
419
  };
409
420
  trackingConfig: {
410
421
  prioritizeEmergency: boolean;
422
+ trackingZoneWeightIncrease: number;
411
423
  guardTourEnabled: boolean;
412
424
  guardTourId: number;
413
425
  };
@@ -501,6 +513,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
501
513
  cameraCalibrationProcessConfig?: {
502
514
  nightSkyCalibrationEnabled: boolean;
503
515
  scheduleNightSkyCalibrationTimestamp: number;
516
+ focusCalibrationPoints?: string | undefined;
504
517
  } | undefined;
505
518
  cameraConfig?: {
506
519
  maxZoomLevel?: number | undefined;
@@ -514,6 +527,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
514
527
  imageConfig?: {
515
528
  dayAperture: number;
516
529
  nightAperture: number;
530
+ maxGain?: number | undefined;
517
531
  } | undefined;
518
532
  airportConfig?: {
519
533
  centerLat: number;
@@ -523,6 +537,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
523
537
  } | undefined;
524
538
  trackingConfig?: {
525
539
  prioritizeEmergency: boolean;
540
+ trackingZoneWeightIncrease?: number | undefined;
526
541
  guardTourEnabled?: boolean | undefined;
527
542
  guardTourId?: number | undefined;
528
543
  } | undefined;
@@ -827,6 +842,7 @@ export declare const zonesSchema: z.ZodObject<{
827
842
  maxAltitudeAmsl: z.ZodOptional<z.ZodNumber>;
828
843
  minSpeedKmph: z.ZodOptional<z.ZodNumber>;
829
844
  maxSpeedKmph: z.ZodOptional<z.ZodNumber>;
845
+ flightDirection: z.ZodDefault<z.ZodEnum<["all", "arrival", "departure"]>>;
830
846
  weight: z.ZodNumber;
831
847
  }, "strip", z.ZodTypeAny, {
832
848
  enabled: boolean;
@@ -837,6 +853,7 @@ export declare const zonesSchema: z.ZodObject<{
837
853
  lat: number;
838
854
  lon: number;
839
855
  }[]];
856
+ flightDirection: "all" | "arrival" | "departure";
840
857
  weight: number;
841
858
  name?: string | undefined;
842
859
  minAltitudeAmsl?: number | undefined;
@@ -858,6 +875,7 @@ export declare const zonesSchema: z.ZodObject<{
858
875
  maxAltitudeAmsl?: number | undefined;
859
876
  minSpeedKmph?: number | undefined;
860
877
  maxSpeedKmph?: number | undefined;
878
+ flightDirection?: "all" | "arrival" | "departure" | undefined;
861
879
  }>, "many">>;
862
880
  }, "strip", z.ZodTypeAny, {
863
881
  zones: {
@@ -869,6 +887,7 @@ export declare const zonesSchema: z.ZodObject<{
869
887
  lat: number;
870
888
  lon: number;
871
889
  }[]];
890
+ flightDirection: "all" | "arrival" | "departure";
872
891
  weight: number;
873
892
  name?: string | undefined;
874
893
  minAltitudeAmsl?: number | undefined;
@@ -892,6 +911,7 @@ export declare const zonesSchema: z.ZodObject<{
892
911
  maxAltitudeAmsl?: number | undefined;
893
912
  minSpeedKmph?: number | undefined;
894
913
  maxSpeedKmph?: number | undefined;
914
+ flightDirection?: "all" | "arrival" | "departure" | undefined;
895
915
  }[] | undefined;
896
916
  }>;
897
917
  export type TZones = z.infer<typeof zonesSchema>;