camstreamerlib 4.0.27-c8f267f → 4.0.28
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.
- package/cjs/PlaneTrackerAPI.d.ts +0 -1
- package/cjs/VapixAPI.js +7 -1
- package/cjs/types/PlaneTrackerAPI.d.ts +0 -5
- package/cjs/types/PlaneTrackerAPI.js +0 -2
- package/cjs/types/VapixAPI.d.ts +16 -28
- package/cjs/types/VapixAPI.js +3 -4
- package/cjs/types/ws/PlaneTrackerEvents.d.ts +281 -20
- package/cjs/types/ws/PlaneTrackerEvents.js +9 -1
- package/esm/VapixAPI.js +7 -1
- package/esm/types/PlaneTrackerAPI.js +0 -2
- package/esm/types/VapixAPI.js +3 -4
- package/esm/types/ws/PlaneTrackerEvents.js +10 -2
- package/package.json +103 -103
- package/types/PlaneTrackerAPI.d.ts +0 -1
- package/types/types/PlaneTrackerAPI.d.ts +0 -5
- package/types/types/VapixAPI.d.ts +16 -28
- package/types/types/ws/PlaneTrackerEvents.d.ts +281 -20
|
@@ -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(),
|
|
22
22
|
whiteListed: zod_1.z.boolean(),
|
|
23
23
|
blackListed: zod_1.z.boolean(),
|
|
24
24
|
priorityListed: zod_1.z.boolean(),
|
|
@@ -56,6 +56,7 @@ var EUserActions;
|
|
|
56
56
|
EUserActions["SET_PRIORITY_LIST"] = "setPriorityList.cgi";
|
|
57
57
|
EUserActions["SET_BLACK_LIST"] = "setBlackList.cgi";
|
|
58
58
|
EUserActions["SET_WHITE_LIST"] = "setWhiteList.cgi";
|
|
59
|
+
EUserActions["SET_FRIENDLY_LIST"] = "setFriendlyList.cgi";
|
|
59
60
|
EUserActions["GO_TO_COORDINATES"] = "goToCoordinates.cgi";
|
|
60
61
|
EUserActions["SET_TRACKING_MODE"] = "setTrackingMode.cgi";
|
|
61
62
|
EUserActions["SET_ZONES"] = "setZones.cgi";
|
|
@@ -123,6 +124,13 @@ const eventsDataSchema = zod_1.z.union([
|
|
|
123
124
|
params: userSchema,
|
|
124
125
|
postJsonBody: PlaneTrackerAPI_1.whiteListSchema,
|
|
125
126
|
}),
|
|
127
|
+
zod_1.z.object({
|
|
128
|
+
type: zod_1.z.literal('USER_ACTION'),
|
|
129
|
+
cgi: zod_1.z.literal(EUserActions.SET_FRIENDLY_LIST),
|
|
130
|
+
ip: zod_1.z.string(),
|
|
131
|
+
params: userSchema,
|
|
132
|
+
postJsonBody: PlaneTrackerAPI_1.friendlyListSchema,
|
|
133
|
+
}),
|
|
126
134
|
zod_1.z.object({
|
|
127
135
|
type: zod_1.z.literal('USER_ACTION'),
|
|
128
136
|
cgi: zod_1.z.literal(EUserActions.GO_TO_COORDINATES),
|
package/esm/VapixAPI.js
CHANGED
|
@@ -73,7 +73,13 @@ 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
|
-
|
|
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
|
+
});
|
|
77
83
|
}
|
|
78
84
|
async performAutofocus(options) {
|
|
79
85
|
try {
|
|
@@ -70,14 +70,12 @@ 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),
|
|
74
73
|
nightSkyCalibrationFocusValue: z.number().int().min(1).max(9999).default(9000),
|
|
75
74
|
focusCalibrationPoints: z.string().default(''),
|
|
76
75
|
})
|
|
77
76
|
.default({
|
|
78
77
|
nightSkyCalibrationEnabled: false,
|
|
79
78
|
scheduleNightSkyCalibrationTimestamp: 0,
|
|
80
|
-
nightSkyCalibrationRepeatCount: 1,
|
|
81
79
|
nightSkyCalibrationFocusValue: 9000,
|
|
82
80
|
focusCalibrationPoints: '',
|
|
83
81
|
}),
|
package/esm/types/VapixAPI.js
CHANGED
|
@@ -50,12 +50,11 @@ export const guardTourSchema = z.object({
|
|
|
50
50
|
waitTimeViewType: z.unknown(),
|
|
51
51
|
})),
|
|
52
52
|
});
|
|
53
|
-
const audioSampleRatesSchema = z
|
|
54
|
-
.object({
|
|
53
|
+
const audioSampleRatesSchema = z.object({
|
|
55
54
|
sample_rate: z.number(),
|
|
56
55
|
bit_rates: z.array(z.number()),
|
|
57
|
-
})
|
|
58
|
-
|
|
56
|
+
});
|
|
57
|
+
const audioSampleRatesOutSchema = audioSampleRatesSchema.transform(toCamelCaseDeep);
|
|
59
58
|
export const sdCardWatchedStatuses = ['OK', 'connected', 'disconnected'];
|
|
60
59
|
export const sdCardInfoSchema = z.object({
|
|
61
60
|
status: z.enum(sdCardWatchedStatuses),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { blackListSchema, priorityListSchema, trackingModeSchema, whiteListSchema, zonesSchema, domainIdSchema, } from '../PlaneTrackerAPI';
|
|
2
|
+
import { blackListSchema, friendlyListSchema, priorityListSchema, trackingModeSchema, whiteListSchema, zonesSchema, domainIdSchema, } from '../PlaneTrackerAPI';
|
|
3
3
|
const wsApiFlightDataSchema = z.object({
|
|
4
4
|
targetId: z.string(),
|
|
5
5
|
icao: z.string(),
|
|
@@ -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(),
|
|
19
19
|
whiteListed: z.boolean(),
|
|
20
20
|
blackListed: z.boolean(),
|
|
21
21
|
priorityListed: z.boolean(),
|
|
@@ -53,6 +53,7 @@ export var EUserActions;
|
|
|
53
53
|
EUserActions["SET_PRIORITY_LIST"] = "setPriorityList.cgi";
|
|
54
54
|
EUserActions["SET_BLACK_LIST"] = "setBlackList.cgi";
|
|
55
55
|
EUserActions["SET_WHITE_LIST"] = "setWhiteList.cgi";
|
|
56
|
+
EUserActions["SET_FRIENDLY_LIST"] = "setFriendlyList.cgi";
|
|
56
57
|
EUserActions["GO_TO_COORDINATES"] = "goToCoordinates.cgi";
|
|
57
58
|
EUserActions["SET_TRACKING_MODE"] = "setTrackingMode.cgi";
|
|
58
59
|
EUserActions["SET_ZONES"] = "setZones.cgi";
|
|
@@ -120,6 +121,13 @@ const eventsDataSchema = z.union([
|
|
|
120
121
|
params: userSchema,
|
|
121
122
|
postJsonBody: whiteListSchema,
|
|
122
123
|
}),
|
|
124
|
+
z.object({
|
|
125
|
+
type: z.literal('USER_ACTION'),
|
|
126
|
+
cgi: z.literal(EUserActions.SET_FRIENDLY_LIST),
|
|
127
|
+
ip: z.string(),
|
|
128
|
+
params: userSchema,
|
|
129
|
+
postJsonBody: friendlyListSchema,
|
|
130
|
+
}),
|
|
123
131
|
z.object({
|
|
124
132
|
type: z.literal('USER_ACTION'),
|
|
125
133
|
cgi: z.literal(EUserActions.GO_TO_COORDINATES),
|
package/package.json
CHANGED
|
@@ -1,110 +1,110 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"adm-zip": "^0.6.0",
|
|
11
|
-
"eventemitter2": "^5.0.1",
|
|
12
|
-
"fast-xml-parser": "^5.3.6",
|
|
13
|
-
"type-fest": "^4.41.0",
|
|
14
|
-
"undici": "^6.28.0",
|
|
15
|
-
"ws": "^8.18.0",
|
|
16
|
-
"zod": "^3.25.76"
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@camstreamer/eslint-config": "^1.0.2",
|
|
20
|
-
"@camstreamer/prettier-config": "^2.0.4",
|
|
21
|
-
"@types/adm-zip": "^0.5.5",
|
|
22
|
-
"@types/jest": "^28.0.0",
|
|
23
|
-
"@types/node": "^18.19.127",
|
|
24
|
-
"@types/ws": "^8.5.10",
|
|
25
|
-
"@typescript-eslint/eslint-plugin": "^6.8.0",
|
|
26
|
-
"@typescript-eslint/parser": "^6.8.0",
|
|
27
|
-
"eslint": "^8.51.0",
|
|
28
|
-
"eslint-plugin-deprecation": "^2.0.0",
|
|
29
|
-
"eslint-plugin-unused-imports": "^3.0.0",
|
|
30
|
-
"jest": "^28.1.3",
|
|
31
|
-
"npm-run-all": "^4.1.5",
|
|
32
|
-
"prettier": "^2.7.1",
|
|
33
|
-
"ts-jest": "^28.0.0",
|
|
34
|
-
"ts-node": "^10.7.0",
|
|
35
|
-
"typescript": "5.3.3"
|
|
36
|
-
},
|
|
37
|
-
"overrides": {
|
|
38
|
-
"js-yaml": "^4.2.0"
|
|
39
|
-
},
|
|
40
|
-
"scripts": {
|
|
41
|
-
"clean": "rimraf dist/*",
|
|
42
|
-
"build": "npm-run-all clean build:cjs build:esm copyPackage",
|
|
43
|
-
"build:cjs": "tsc --project tsconfig.cjs.json",
|
|
44
|
-
"build:esm": "tsc --project tsconfig.esm.json",
|
|
45
|
-
"copyPackage": "cp -f LICENSE dist/ && cp -f README.md dist/ && cp -f package.json dist/",
|
|
46
|
-
"publishPackage": "./publish.sh",
|
|
47
|
-
"lint": "eslint \"src/**/*.ts\"",
|
|
48
|
-
"lint:fix": "eslint \"src/**/*.ts\" --fix",
|
|
49
|
-
"pretty": "prettier --write \"./{{src,doc}/**/*.{ts,tsx,md},README.md}\"",
|
|
50
|
-
"pretty:check": "prettier --check \"./{{src,doc}/**/*.{ts,tsx,md},README.md}\"",
|
|
51
|
-
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
52
|
-
"audit": "npm audit --audit-level=high"
|
|
53
|
-
},
|
|
54
|
-
"files": [
|
|
55
|
-
"/**/*.js",
|
|
56
|
-
"/**/*.ts"
|
|
57
|
-
],
|
|
58
|
-
"main": "./cjs/index.js",
|
|
59
|
-
"module": "./esm/index.js",
|
|
60
|
-
"types": "types/index.d.ts",
|
|
61
|
-
"exports": {
|
|
62
|
-
".": {
|
|
63
|
-
"import": "./esm/index.js",
|
|
64
|
-
"require": "./cjs/index.js",
|
|
65
|
-
"types": "./types/index.d.ts"
|
|
2
|
+
"name": "camstreamerlib",
|
|
3
|
+
"version": "4.0.28",
|
|
4
|
+
"description": "Helper library for CamStreamer ACAP applications.",
|
|
5
|
+
"prettier": "@camstreamer/prettier-config",
|
|
6
|
+
"engine": {
|
|
7
|
+
"node": ">=18.0.0"
|
|
66
8
|
},
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"adm-zip": "^0.6.0",
|
|
11
|
+
"eventemitter2": "^5.0.1",
|
|
12
|
+
"fast-xml-parser": "^5.3.6",
|
|
13
|
+
"type-fest": "^4.41.0",
|
|
14
|
+
"undici": "^6.27.0",
|
|
15
|
+
"ws": "^8.18.0",
|
|
16
|
+
"zod": "^3.25.76"
|
|
71
17
|
},
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@camstreamer/eslint-config": "^1.0.2",
|
|
20
|
+
"@camstreamer/prettier-config": "^2.0.4",
|
|
21
|
+
"@types/adm-zip": "^0.5.5",
|
|
22
|
+
"@types/jest": "^28.0.0",
|
|
23
|
+
"@types/node": "^18.19.127",
|
|
24
|
+
"@types/ws": "^8.5.10",
|
|
25
|
+
"@typescript-eslint/eslint-plugin": "^6.8.0",
|
|
26
|
+
"@typescript-eslint/parser": "^6.8.0",
|
|
27
|
+
"eslint": "^8.51.0",
|
|
28
|
+
"eslint-plugin-deprecation": "^2.0.0",
|
|
29
|
+
"eslint-plugin-unused-imports": "^3.0.0",
|
|
30
|
+
"jest": "^28.1.3",
|
|
31
|
+
"npm-run-all": "^4.1.5",
|
|
32
|
+
"prettier": "^2.7.1",
|
|
33
|
+
"ts-jest": "^28.0.0",
|
|
34
|
+
"ts-node": "^10.7.0",
|
|
35
|
+
"typescript": "5.3.3"
|
|
76
36
|
},
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
"require": "./cjs/index.js",
|
|
80
|
-
"types": "./types/index.d.ts"
|
|
37
|
+
"overrides": {
|
|
38
|
+
"js-yaml": "^4.2.0"
|
|
81
39
|
},
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
40
|
+
"scripts": {
|
|
41
|
+
"clean": "rimraf dist/*",
|
|
42
|
+
"build": "npm-run-all clean build:cjs build:esm copyPackage",
|
|
43
|
+
"build:cjs": "tsc --project tsconfig.cjs.json",
|
|
44
|
+
"build:esm": "tsc --project tsconfig.esm.json",
|
|
45
|
+
"copyPackage": "cp -f LICENSE dist/ && cp -f README.md dist/ && cp -f package.json dist/",
|
|
46
|
+
"publishPackage": "./publish.sh",
|
|
47
|
+
"lint": "eslint \"src/**/*.ts\"",
|
|
48
|
+
"lint:fix": "eslint \"src/**/*.ts\" --fix",
|
|
49
|
+
"pretty": "prettier --write \"./{{src,doc}/**/*.{ts,tsx,md},README.md}\"",
|
|
50
|
+
"pretty:check": "prettier --check \"./{{src,doc}/**/*.{ts,tsx,md},README.md}\"",
|
|
51
|
+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
52
|
+
"audit": "npm audit --audit-level=high"
|
|
86
53
|
},
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
54
|
+
"files": [
|
|
55
|
+
"/**/*.js",
|
|
56
|
+
"/**/*.ts"
|
|
57
|
+
],
|
|
58
|
+
"main": "./cjs/index.js",
|
|
59
|
+
"module": "./esm/index.js",
|
|
60
|
+
"types": "types/index.d.ts",
|
|
61
|
+
"exports": {
|
|
62
|
+
".": {
|
|
63
|
+
"import": "./esm/index.js",
|
|
64
|
+
"require": "./cjs/index.js",
|
|
65
|
+
"types": "./types/index.d.ts"
|
|
66
|
+
},
|
|
67
|
+
"./web": {
|
|
68
|
+
"import": "./esm/web/index.js",
|
|
69
|
+
"require": "./cjs/web/index.js",
|
|
70
|
+
"types": "./types/web/index.d.ts"
|
|
71
|
+
},
|
|
72
|
+
"./node": {
|
|
73
|
+
"import": "./esm/node/index.js",
|
|
74
|
+
"require": "./cjs/node/index.js",
|
|
75
|
+
"types": "./types/node/index.d.ts"
|
|
76
|
+
},
|
|
77
|
+
"./cjs/index": {
|
|
78
|
+
"import": "./esm/index.js",
|
|
79
|
+
"require": "./cjs/index.js",
|
|
80
|
+
"types": "./types/index.d.ts"
|
|
81
|
+
},
|
|
82
|
+
"./cjs/node": {
|
|
83
|
+
"import": "./esm/node/index.js",
|
|
84
|
+
"require": "./cjs/node/index.js",
|
|
85
|
+
"types": "./types/node/index.js"
|
|
86
|
+
},
|
|
87
|
+
"./cjs/node/index": {
|
|
88
|
+
"import": "./esm/node/index.js",
|
|
89
|
+
"require": "./cjs/node/index.js",
|
|
90
|
+
"types": "./types/node/index.js"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"repository": {
|
|
94
|
+
"type": "git",
|
|
95
|
+
"url": "git+https://github.com/CamStreamer/CamStreamerLib.git"
|
|
96
|
+
},
|
|
97
|
+
"keywords": [
|
|
98
|
+
"CamStreamer",
|
|
99
|
+
"CamOverlay",
|
|
100
|
+
"CamScripter",
|
|
101
|
+
"Camera",
|
|
102
|
+
"Axis"
|
|
103
|
+
],
|
|
104
|
+
"author": "CamStreamer s.r.o",
|
|
105
|
+
"license": "ISC",
|
|
106
|
+
"bugs": {
|
|
107
|
+
"url": "https://github.com/CamStreamer/CamStreamerLib/issues"
|
|
108
|
+
},
|
|
109
|
+
"homepage": "https://github.com/CamStreamer/CamStreamerLib#readme"
|
|
110
110
|
}
|
|
@@ -40,7 +40,6 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
40
40
|
cameraCalibrationProcessConfig: {
|
|
41
41
|
nightSkyCalibrationEnabled: boolean;
|
|
42
42
|
scheduleNightSkyCalibrationTimestamp: number;
|
|
43
|
-
nightSkyCalibrationRepeatCount: number;
|
|
44
43
|
nightSkyCalibrationFocusValue: number;
|
|
45
44
|
focusCalibrationPoints: string;
|
|
46
45
|
};
|
|
@@ -116,19 +116,16 @@ 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>;
|
|
120
119
|
nightSkyCalibrationFocusValue: z.ZodDefault<z.ZodNumber>;
|
|
121
120
|
focusCalibrationPoints: z.ZodDefault<z.ZodString>;
|
|
122
121
|
}, "strip", z.ZodTypeAny, {
|
|
123
122
|
nightSkyCalibrationEnabled: boolean;
|
|
124
123
|
scheduleNightSkyCalibrationTimestamp: number;
|
|
125
|
-
nightSkyCalibrationRepeatCount: number;
|
|
126
124
|
nightSkyCalibrationFocusValue: number;
|
|
127
125
|
focusCalibrationPoints: string;
|
|
128
126
|
}, {
|
|
129
127
|
nightSkyCalibrationEnabled: boolean;
|
|
130
128
|
scheduleNightSkyCalibrationTimestamp: number;
|
|
131
|
-
nightSkyCalibrationRepeatCount?: number | undefined;
|
|
132
129
|
nightSkyCalibrationFocusValue?: number | undefined;
|
|
133
130
|
focusCalibrationPoints?: string | undefined;
|
|
134
131
|
}>>;
|
|
@@ -455,7 +452,6 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
455
452
|
cameraCalibrationProcessConfig: {
|
|
456
453
|
nightSkyCalibrationEnabled: boolean;
|
|
457
454
|
scheduleNightSkyCalibrationTimestamp: number;
|
|
458
|
-
nightSkyCalibrationRepeatCount: number;
|
|
459
455
|
nightSkyCalibrationFocusValue: number;
|
|
460
456
|
focusCalibrationPoints: string;
|
|
461
457
|
};
|
|
@@ -589,7 +585,6 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
589
585
|
cameraCalibrationProcessConfig?: {
|
|
590
586
|
nightSkyCalibrationEnabled: boolean;
|
|
591
587
|
scheduleNightSkyCalibrationTimestamp: number;
|
|
592
|
-
nightSkyCalibrationRepeatCount?: number | undefined;
|
|
593
588
|
nightSkyCalibrationFocusValue?: number | undefined;
|
|
594
589
|
focusCalibrationPoints?: string | undefined;
|
|
595
590
|
} | 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
|
|
136
|
+
declare const audioSampleRatesOutSchema: 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 audioSampleRatesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
149
149
|
sample_rate: number;
|
|
150
150
|
bit_rates: number[];
|
|
151
151
|
}>;
|
|
152
|
-
export type TAudioSampleRates = z.infer<typeof
|
|
152
|
+
export type TAudioSampleRates = z.infer<typeof audioSampleRatesOutSchema>;
|
|
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.
|
|
1669
|
+
aac: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1670
1670
|
sample_rate: z.ZodNumber;
|
|
1671
1671
|
bit_rates: z.ZodArray<z.ZodNumber, "many">;
|
|
1672
1672
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1675,14 +1675,8 @@ 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[];
|
|
1684
1678
|
}>, "many">>;
|
|
1685
|
-
AAC: z.ZodOptional<z.ZodArray<z.
|
|
1679
|
+
AAC: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1686
1680
|
sample_rate: z.ZodNumber;
|
|
1687
1681
|
bit_rates: z.ZodArray<z.ZodNumber, "many">;
|
|
1688
1682
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1691,21 +1685,15 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
|
|
|
1691
1685
|
}, {
|
|
1692
1686
|
sample_rate: number;
|
|
1693
1687
|
bit_rates: number[];
|
|
1694
|
-
}>, {
|
|
1695
|
-
sampleRate: number;
|
|
1696
|
-
bitRates: number[];
|
|
1697
|
-
}, {
|
|
1698
|
-
sample_rate: number;
|
|
1699
|
-
bit_rates: number[];
|
|
1700
1688
|
}>, "many">>;
|
|
1701
1689
|
}, "strip", z.ZodTypeAny, {
|
|
1702
1690
|
aac?: {
|
|
1703
|
-
|
|
1704
|
-
|
|
1691
|
+
sample_rate: number;
|
|
1692
|
+
bit_rates: number[];
|
|
1705
1693
|
}[] | undefined;
|
|
1706
1694
|
AAC?: {
|
|
1707
|
-
|
|
1708
|
-
|
|
1695
|
+
sample_rate: number;
|
|
1696
|
+
bit_rates: number[];
|
|
1709
1697
|
}[] | undefined;
|
|
1710
1698
|
}, {
|
|
1711
1699
|
aac?: {
|
|
@@ -1720,12 +1708,12 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
|
|
|
1720
1708
|
}, "strip", z.ZodTypeAny, {
|
|
1721
1709
|
encoders: {
|
|
1722
1710
|
aac?: {
|
|
1723
|
-
|
|
1724
|
-
|
|
1711
|
+
sample_rate: number;
|
|
1712
|
+
bit_rates: number[];
|
|
1725
1713
|
}[] | undefined;
|
|
1726
1714
|
AAC?: {
|
|
1727
|
-
|
|
1728
|
-
|
|
1715
|
+
sample_rate: number;
|
|
1716
|
+
bit_rates: number[];
|
|
1729
1717
|
}[] | undefined;
|
|
1730
1718
|
};
|
|
1731
1719
|
}, {
|
|
@@ -1744,12 +1732,12 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
|
|
|
1744
1732
|
data: {
|
|
1745
1733
|
encoders: {
|
|
1746
1734
|
aac?: {
|
|
1747
|
-
|
|
1748
|
-
|
|
1735
|
+
sample_rate: number;
|
|
1736
|
+
bit_rates: number[];
|
|
1749
1737
|
}[] | undefined;
|
|
1750
1738
|
AAC?: {
|
|
1751
|
-
|
|
1752
|
-
|
|
1739
|
+
sample_rate: number;
|
|
1740
|
+
bit_rates: number[];
|
|
1753
1741
|
}[] | undefined;
|
|
1754
1742
|
};
|
|
1755
1743
|
};
|