@tx5dr/contracts 1.7.12 → 2.0.0
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/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/schema/__tests__/android-operator-audio.schema.test.d.ts +2 -0
- package/dist/schema/__tests__/android-operator-audio.schema.test.d.ts.map +1 -0
- package/dist/schema/__tests__/android-operator-audio.schema.test.js +27 -0
- package/dist/schema/__tests__/android-operator-audio.schema.test.js.map +1 -0
- package/dist/schema/__tests__/assisted-queue.schema.test.d.ts +2 -0
- package/dist/schema/__tests__/assisted-queue.schema.test.d.ts.map +1 -0
- package/dist/schema/__tests__/assisted-queue.schema.test.js +113 -0
- package/dist/schema/__tests__/assisted-queue.schema.test.js.map +1 -0
- package/dist/schema/__tests__/audio-sidecar.schema.test.d.ts +2 -0
- package/dist/schema/__tests__/audio-sidecar.schema.test.d.ts.map +1 -0
- package/dist/schema/__tests__/audio-sidecar.schema.test.js +42 -0
- package/dist/schema/__tests__/audio-sidecar.schema.test.js.map +1 -0
- package/dist/schema/__tests__/audio.schema.test.js +92 -1
- package/dist/schema/__tests__/audio.schema.test.js.map +1 -1
- package/dist/schema/__tests__/diagnostics.schema.test.d.ts +2 -0
- package/dist/schema/__tests__/diagnostics.schema.test.d.ts.map +1 -0
- package/dist/schema/__tests__/diagnostics.schema.test.js +31 -0
- package/dist/schema/__tests__/diagnostics.schema.test.js.map +1 -0
- package/dist/schema/__tests__/logbook-health.schema.test.d.ts +2 -0
- package/dist/schema/__tests__/logbook-health.schema.test.d.ts.map +1 -0
- package/dist/schema/__tests__/logbook-health.schema.test.js +104 -0
- package/dist/schema/__tests__/logbook-health.schema.test.js.map +1 -0
- package/dist/schema/__tests__/observability.schema.test.d.ts +2 -0
- package/dist/schema/__tests__/observability.schema.test.d.ts.map +1 -0
- package/dist/schema/__tests__/observability.schema.test.js +12 -0
- package/dist/schema/__tests__/observability.schema.test.js.map +1 -0
- package/dist/schema/__tests__/operator.schema.test.js +9 -3
- package/dist/schema/__tests__/operator.schema.test.js.map +1 -1
- package/dist/schema/__tests__/plugin-market.schema.test.js +43 -1
- package/dist/schema/__tests__/plugin-market.schema.test.js.map +1 -1
- package/dist/schema/__tests__/radio-power-support.test.js +12 -0
- package/dist/schema/__tests__/radio-power-support.test.js.map +1 -1
- package/dist/schema/__tests__/radio-profile.schema.test.d.ts +2 -0
- package/dist/schema/__tests__/radio-profile.schema.test.d.ts.map +1 -0
- package/dist/schema/__tests__/radio-profile.schema.test.js +36 -0
- package/dist/schema/__tests__/radio-profile.schema.test.js.map +1 -0
- package/dist/schema/__tests__/radio.schema.test.js +41 -1
- package/dist/schema/__tests__/radio.schema.test.js.map +1 -1
- package/dist/schema/__tests__/realtime-settings.schema.test.js +2 -1
- package/dist/schema/__tests__/realtime-settings.schema.test.js.map +1 -1
- package/dist/schema/__tests__/remote-access.schema.test.d.ts +2 -0
- package/dist/schema/__tests__/remote-access.schema.test.d.ts.map +1 -0
- package/dist/schema/__tests__/remote-access.schema.test.js +18 -0
- package/dist/schema/__tests__/remote-access.schema.test.js.map +1 -0
- package/dist/schema/android-operator-audio.schema.d.ts +174 -0
- package/dist/schema/android-operator-audio.schema.d.ts.map +1 -0
- package/dist/schema/android-operator-audio.schema.js +38 -0
- package/dist/schema/android-operator-audio.schema.js.map +1 -0
- package/dist/schema/api-response.schema.d.ts +268 -44
- package/dist/schema/api-response.schema.d.ts.map +1 -1
- package/dist/schema/audio-sidecar.schema.d.ts +75 -0
- package/dist/schema/audio-sidecar.schema.d.ts.map +1 -1
- package/dist/schema/audio-sidecar.schema.js +32 -0
- package/dist/schema/audio-sidecar.schema.js.map +1 -1
- package/dist/schema/audio.schema.d.ts +4749 -3
- package/dist/schema/audio.schema.d.ts.map +1 -1
- package/dist/schema/audio.schema.js +101 -2
- package/dist/schema/audio.schema.js.map +1 -1
- package/dist/schema/auth.schema.d.ts +171 -12
- package/dist/schema/auth.schema.d.ts.map +1 -1
- package/dist/schema/auth.schema.js +65 -1
- package/dist/schema/auth.schema.js.map +1 -1
- package/dist/schema/cpu-profile.schema.d.ts +2 -2
- package/dist/schema/cw-decoder.schema.d.ts +74 -74
- package/dist/schema/cw-keyer.schema.d.ts +20 -14
- package/dist/schema/cw-keyer.schema.d.ts.map +1 -1
- package/dist/schema/cw-keyer.schema.js +3 -0
- package/dist/schema/cw-keyer.schema.js.map +1 -1
- package/dist/schema/desktop-https.schema.d.ts +6 -6
- package/dist/schema/device-ui.schema.d.ts +6 -6
- package/dist/schema/diagnostics.schema.d.ts +163 -0
- package/dist/schema/diagnostics.schema.d.ts.map +1 -0
- package/dist/schema/diagnostics.schema.js +46 -0
- package/dist/schema/diagnostics.schema.js.map +1 -0
- package/dist/schema/ft8.schema.d.ts +12 -2
- package/dist/schema/ft8.schema.d.ts.map +1 -1
- package/dist/schema/ft8.schema.js +8 -0
- package/dist/schema/ft8.schema.js.map +1 -1
- package/dist/schema/logbook.schema.d.ts +1940 -18
- package/dist/schema/logbook.schema.d.ts.map +1 -1
- package/dist/schema/logbook.schema.js +158 -1
- package/dist/schema/logbook.schema.js.map +1 -1
- package/dist/schema/mode.schema.d.ts +2 -6
- package/dist/schema/mode.schema.d.ts.map +1 -1
- package/dist/schema/mode.schema.js +2 -6
- package/dist/schema/mode.schema.js.map +1 -1
- package/dist/schema/observability.schema.d.ts +66 -0
- package/dist/schema/observability.schema.d.ts.map +1 -0
- package/dist/schema/observability.schema.js +20 -0
- package/dist/schema/observability.schema.js.map +1 -0
- package/dist/schema/operator.schema.d.ts +6 -6
- package/dist/schema/operator.schema.d.ts.map +1 -1
- package/dist/schema/operator.schema.js +6 -1
- package/dist/schema/operator.schema.js.map +1 -1
- package/dist/schema/plugin.schema.d.ts +258 -78
- package/dist/schema/plugin.schema.d.ts.map +1 -1
- package/dist/schema/plugin.schema.js +57 -2
- package/dist/schema/plugin.schema.js.map +1 -1
- package/dist/schema/process-monitor.schema.d.ts +132 -132
- package/dist/schema/pskreporter.schema.d.ts +1 -3
- package/dist/schema/pskreporter.schema.d.ts.map +1 -1
- package/dist/schema/pskreporter.schema.js +1 -3
- package/dist/schema/pskreporter.schema.js.map +1 -1
- package/dist/schema/qso.schema.d.ts +7 -0
- package/dist/schema/qso.schema.d.ts.map +1 -1
- package/dist/schema/qso.schema.js +7 -0
- package/dist/schema/qso.schema.js.map +1 -1
- package/dist/schema/radio-capability.schema.d.ts +31 -40
- package/dist/schema/radio-capability.schema.d.ts.map +1 -1
- package/dist/schema/radio-capability.schema.js +7 -15
- package/dist/schema/radio-capability.schema.js.map +1 -1
- package/dist/schema/radio-power-support.d.ts.map +1 -1
- package/dist/schema/radio-power-support.js +3 -0
- package/dist/schema/radio-power-support.js.map +1 -1
- package/dist/schema/radio-power.schema.d.ts +87 -13
- package/dist/schema/radio-power.schema.d.ts.map +1 -1
- package/dist/schema/radio-power.schema.js +15 -8
- package/dist/schema/radio-power.schema.js.map +1 -1
- package/dist/schema/radio-profile.schema.d.ts +1240 -97
- package/dist/schema/radio-profile.schema.d.ts.map +1 -1
- package/dist/schema/radio.schema.d.ts +271 -48
- package/dist/schema/radio.schema.d.ts.map +1 -1
- package/dist/schema/radio.schema.js +44 -5
- package/dist/schema/radio.schema.js.map +1 -1
- package/dist/schema/realtime.schema.d.ts +60 -52
- package/dist/schema/realtime.schema.d.ts.map +1 -1
- package/dist/schema/realtime.schema.js +9 -1
- package/dist/schema/realtime.schema.js.map +1 -1
- package/dist/schema/slot-info.schema.d.ts +15 -9
- package/dist/schema/slot-info.schema.d.ts.map +1 -1
- package/dist/schema/slot-info.schema.js +15 -9
- package/dist/schema/slot-info.schema.js.map +1 -1
- package/dist/schema/spectrum.schema.d.ts +12 -12
- package/dist/schema/station-info.schema.d.ts +5 -0
- package/dist/schema/station-info.schema.d.ts.map +1 -1
- package/dist/schema/station-info.schema.js +5 -0
- package/dist/schema/station-info.schema.js.map +1 -1
- package/dist/schema/system.schema.d.ts +56 -6
- package/dist/schema/system.schema.d.ts.map +1 -1
- package/dist/schema/system.schema.js +22 -0
- package/dist/schema/system.schema.js.map +1 -1
- package/dist/schema/transmission.schema.d.ts +1 -7
- package/dist/schema/transmission.schema.d.ts.map +1 -1
- package/dist/schema/transmission.schema.js +2 -7
- package/dist/schema/transmission.schema.js.map +1 -1
- package/dist/schema/voice-keyer.schema.d.ts +16 -16
- package/dist/schema/websocket.schema.d.ts +3582 -555
- package/dist/schema/websocket.schema.d.ts.map +1 -1
- package/dist/schema/websocket.schema.js +160 -3
- package/dist/schema/websocket.schema.js.map +1 -1
- package/package.json +6 -1
- package/src/index.ts +3 -0
- package/src/schema/__tests__/android-operator-audio.schema.test.ts +31 -0
- package/src/schema/__tests__/assisted-queue.schema.test.ts +121 -0
- package/src/schema/__tests__/audio-sidecar.schema.test.ts +48 -0
- package/src/schema/__tests__/audio.schema.test.ts +102 -0
- package/src/schema/__tests__/diagnostics.schema.test.ts +32 -0
- package/src/schema/__tests__/logbook-health.schema.test.ts +117 -0
- package/src/schema/__tests__/observability.schema.test.ts +15 -0
- package/src/schema/__tests__/operator.schema.test.ts +11 -3
- package/src/schema/__tests__/plugin-market.schema.test.ts +49 -0
- package/src/schema/__tests__/radio-power-support.test.ts +14 -0
- package/src/schema/__tests__/radio-profile.schema.test.ts +44 -0
- package/src/schema/__tests__/radio.schema.test.ts +49 -1
- package/src/schema/__tests__/realtime-settings.schema.test.ts +2 -1
- package/src/schema/__tests__/remote-access.schema.test.ts +22 -0
- package/src/schema/android-operator-audio.schema.ts +49 -0
- package/src/schema/audio-sidecar.schema.ts +35 -0
- package/src/schema/audio.schema.ts +115 -2
- package/src/schema/auth.schema.ts +79 -1
- package/src/schema/cw-keyer.schema.ts +5 -0
- package/src/schema/diagnostics.schema.ts +55 -0
- package/src/schema/ft8.schema.ts +8 -0
- package/src/schema/logbook.schema.ts +204 -1
- package/src/schema/mode.schema.ts +2 -6
- package/src/schema/observability.schema.ts +26 -0
- package/src/schema/operator.schema.ts +7 -1
- package/src/schema/plugin.schema.ts +67 -2
- package/src/schema/pskreporter.schema.ts +1 -3
- package/src/schema/qso.schema.ts +7 -0
- package/src/schema/radio-capability.schema.ts +7 -15
- package/src/schema/radio-power-support.ts +3 -0
- package/src/schema/radio-power.schema.ts +15 -8
- package/src/schema/radio.schema.ts +55 -5
- package/src/schema/realtime.schema.ts +9 -1
- package/src/schema/slot-info.schema.ts +16 -10
- package/src/schema/station-info.schema.ts +5 -0
- package/src/schema/system.schema.ts +29 -0
- package/src/schema/transmission.schema.ts +2 -7
- package/src/schema/websocket.schema.ts +223 -6
- package/test/radio-capability-schema.test.ts +44 -0
|
@@ -7,9 +7,7 @@ export declare const RepeaterShiftSchema: z.ZodEnum<["none", "minus", "plus"]>;
|
|
|
7
7
|
* 哑音类型
|
|
8
8
|
*/
|
|
9
9
|
export declare const ToneSquelchModeSchema: z.ZodEnum<["none", "ctcss", "dcs"]>;
|
|
10
|
-
/**
|
|
11
|
-
* 预设频率Schema
|
|
12
|
-
*/
|
|
10
|
+
/** Saved dial-frequency preset with band, digital mode and radio modulation. */
|
|
13
11
|
export declare const PresetFrequencySchema: z.ZodEffects<z.ZodObject<{
|
|
14
12
|
band: z.ZodString;
|
|
15
13
|
mode: z.ZodString;
|
|
@@ -293,11 +291,40 @@ export declare const IcomWlanConfigSchema: z.ZodObject<{
|
|
|
293
291
|
password?: string | undefined;
|
|
294
292
|
dataMode?: boolean | undefined;
|
|
295
293
|
}>;
|
|
294
|
+
/**
|
|
295
|
+
* TCI / SunSDR 连接配置Schema
|
|
296
|
+
*/
|
|
297
|
+
export declare const TciConfigSchema: z.ZodObject<{
|
|
298
|
+
host: z.ZodDefault<z.ZodString>;
|
|
299
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
300
|
+
receiver: z.ZodDefault<z.ZodNumber>;
|
|
301
|
+
trx: z.ZodDefault<z.ZodNumber>;
|
|
302
|
+
vfo: z.ZodDefault<z.ZodNumber>;
|
|
303
|
+
audioEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
304
|
+
audioSampleRate: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
305
|
+
}, "strip", z.ZodTypeAny, {
|
|
306
|
+
host: string;
|
|
307
|
+
port: number;
|
|
308
|
+
receiver: number;
|
|
309
|
+
trx: number;
|
|
310
|
+
vfo: number;
|
|
311
|
+
audioEnabled: boolean;
|
|
312
|
+
audioSampleRate: number;
|
|
313
|
+
}, {
|
|
314
|
+
host?: string | undefined;
|
|
315
|
+
port?: number | undefined;
|
|
316
|
+
receiver?: number | undefined;
|
|
317
|
+
trx?: number | undefined;
|
|
318
|
+
vfo?: number | undefined;
|
|
319
|
+
audioEnabled?: boolean | undefined;
|
|
320
|
+
audioSampleRate?: number | undefined;
|
|
321
|
+
}>;
|
|
296
322
|
/**
|
|
297
323
|
* 串口连接配置Schema
|
|
298
324
|
*/
|
|
299
325
|
export declare const SerialConnectionConfigSchema: z.ZodObject<{
|
|
300
326
|
path: z.ZodString;
|
|
327
|
+
serialNumber: z.ZodOptional<z.ZodString>;
|
|
301
328
|
rigModel: z.ZodNumber;
|
|
302
329
|
serialConfig: z.ZodOptional<z.ZodObject<{
|
|
303
330
|
data_bits: z.ZodOptional<z.ZodEnum<["5", "6", "7", "8"]>>;
|
|
@@ -340,6 +367,7 @@ export declare const SerialConnectionConfigSchema: z.ZodObject<{
|
|
|
340
367
|
}, "strip", z.ZodTypeAny, {
|
|
341
368
|
path: string;
|
|
342
369
|
rigModel: number;
|
|
370
|
+
serialNumber?: string | undefined;
|
|
343
371
|
serialConfig?: {
|
|
344
372
|
data_bits?: "5" | "6" | "7" | "8" | undefined;
|
|
345
373
|
stop_bits?: "1" | "2" | undefined;
|
|
@@ -357,6 +385,7 @@ export declare const SerialConnectionConfigSchema: z.ZodObject<{
|
|
|
357
385
|
}, {
|
|
358
386
|
path: string;
|
|
359
387
|
rigModel: number;
|
|
388
|
+
serialNumber?: string | undefined;
|
|
360
389
|
serialConfig?: {
|
|
361
390
|
data_bits?: "5" | "6" | "7" | "8" | undefined;
|
|
362
391
|
stop_bits?: "1" | "2" | undefined;
|
|
@@ -379,6 +408,14 @@ export declare const HamlibSpectrumConfigSchema: z.ZodObject<{
|
|
|
379
408
|
}, {
|
|
380
409
|
speed?: number | undefined;
|
|
381
410
|
}>;
|
|
411
|
+
/**
|
|
412
|
+
* FT8/FT4 数字模式切换频率时的电台 CAT 模式偏好。
|
|
413
|
+
*
|
|
414
|
+
* - none: 只切换频率,不主动设置电台模式
|
|
415
|
+
* - usb: 设置普通 USB
|
|
416
|
+
* - usb-data: 设置 USB-DATA / PKTUSB 类数据模式
|
|
417
|
+
*/
|
|
418
|
+
export declare const DigitalModeRadioModePreferenceSchema: z.ZodEnum<["none", "usb", "usb-data"]>;
|
|
382
419
|
/**
|
|
383
420
|
* PTT (Push-to-Talk) 方法Schema
|
|
384
421
|
*
|
|
@@ -388,6 +425,18 @@ export declare const HamlibSpectrumConfigSchema: z.ZodObject<{
|
|
|
388
425
|
* - rts: 通过 RS-232 RTS 引脚控制 PTT(适用于古老电台或外部功放)
|
|
389
426
|
*/
|
|
390
427
|
export declare const PttMethodSchema: z.ZodEnum<["cat", "vox", "dtr", "rts"]>;
|
|
428
|
+
/**
|
|
429
|
+
* 虚拟频差(Virtual Frequency Offset / "Fake It" Split)配置Schema
|
|
430
|
+
* 目标音频频率与滞回区间目前由服务端常量控制(~1500Hz),此处仅暴露开关,预留扩展位。
|
|
431
|
+
*/
|
|
432
|
+
export declare const FakeFrequencyConfigSchema: z.ZodObject<{
|
|
433
|
+
enabled: z.ZodBoolean;
|
|
434
|
+
}, "strip", z.ZodTypeAny, {
|
|
435
|
+
enabled: boolean;
|
|
436
|
+
}, {
|
|
437
|
+
enabled: boolean;
|
|
438
|
+
}>;
|
|
439
|
+
export type FakeFrequencyConfig = z.infer<typeof FakeFrequencyConfigSchema>;
|
|
391
440
|
/**
|
|
392
441
|
* Hamlib配置Schema - 嵌套对象结构
|
|
393
442
|
*
|
|
@@ -398,7 +447,7 @@ export declare const PttMethodSchema: z.ZodEnum<["cat", "vox", "dtr", "rts"]>;
|
|
|
398
447
|
* - 根据 type 字段读取对应的配置对象
|
|
399
448
|
*/
|
|
400
449
|
export declare const HamlibConfigSchema: z.ZodObject<{
|
|
401
|
-
type: z.ZodEnum<["none", "network", "serial", "icom-wlan"]>;
|
|
450
|
+
type: z.ZodEnum<["none", "network", "serial", "icom-wlan", "tci"]>;
|
|
402
451
|
network: z.ZodOptional<z.ZodObject<{
|
|
403
452
|
host: z.ZodString;
|
|
404
453
|
port: z.ZodNumber;
|
|
@@ -433,8 +482,34 @@ export declare const HamlibConfigSchema: z.ZodObject<{
|
|
|
433
482
|
password?: string | undefined;
|
|
434
483
|
dataMode?: boolean | undefined;
|
|
435
484
|
}>>;
|
|
485
|
+
tci: z.ZodOptional<z.ZodObject<{
|
|
486
|
+
host: z.ZodDefault<z.ZodString>;
|
|
487
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
488
|
+
receiver: z.ZodDefault<z.ZodNumber>;
|
|
489
|
+
trx: z.ZodDefault<z.ZodNumber>;
|
|
490
|
+
vfo: z.ZodDefault<z.ZodNumber>;
|
|
491
|
+
audioEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
492
|
+
audioSampleRate: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
493
|
+
}, "strip", z.ZodTypeAny, {
|
|
494
|
+
host: string;
|
|
495
|
+
port: number;
|
|
496
|
+
receiver: number;
|
|
497
|
+
trx: number;
|
|
498
|
+
vfo: number;
|
|
499
|
+
audioEnabled: boolean;
|
|
500
|
+
audioSampleRate: number;
|
|
501
|
+
}, {
|
|
502
|
+
host?: string | undefined;
|
|
503
|
+
port?: number | undefined;
|
|
504
|
+
receiver?: number | undefined;
|
|
505
|
+
trx?: number | undefined;
|
|
506
|
+
vfo?: number | undefined;
|
|
507
|
+
audioEnabled?: boolean | undefined;
|
|
508
|
+
audioSampleRate?: number | undefined;
|
|
509
|
+
}>>;
|
|
436
510
|
serial: z.ZodOptional<z.ZodObject<{
|
|
437
511
|
path: z.ZodString;
|
|
512
|
+
serialNumber: z.ZodOptional<z.ZodString>;
|
|
438
513
|
rigModel: z.ZodNumber;
|
|
439
514
|
serialConfig: z.ZodOptional<z.ZodObject<{
|
|
440
515
|
data_bits: z.ZodOptional<z.ZodEnum<["5", "6", "7", "8"]>>;
|
|
@@ -477,6 +552,7 @@ export declare const HamlibConfigSchema: z.ZodObject<{
|
|
|
477
552
|
}, "strip", z.ZodTypeAny, {
|
|
478
553
|
path: string;
|
|
479
554
|
rigModel: number;
|
|
555
|
+
serialNumber?: string | undefined;
|
|
480
556
|
serialConfig?: {
|
|
481
557
|
data_bits?: "5" | "6" | "7" | "8" | undefined;
|
|
482
558
|
stop_bits?: "1" | "2" | undefined;
|
|
@@ -494,6 +570,7 @@ export declare const HamlibConfigSchema: z.ZodObject<{
|
|
|
494
570
|
}, {
|
|
495
571
|
path: string;
|
|
496
572
|
rigModel: number;
|
|
573
|
+
serialNumber?: string | undefined;
|
|
497
574
|
serialConfig?: {
|
|
498
575
|
data_bits?: "5" | "6" | "7" | "8" | undefined;
|
|
499
576
|
stop_bits?: "1" | "2" | undefined;
|
|
@@ -516,13 +593,31 @@ export declare const HamlibConfigSchema: z.ZodObject<{
|
|
|
516
593
|
}, {
|
|
517
594
|
speed?: number | undefined;
|
|
518
595
|
}>>;
|
|
596
|
+
digitalModeRadioMode: z.ZodOptional<z.ZodEnum<["none", "usb", "usb-data"]>>;
|
|
519
597
|
transmitCompensationMs: z.ZodOptional<z.ZodNumber>;
|
|
598
|
+
fakeFrequency: z.ZodOptional<z.ZodObject<{
|
|
599
|
+
enabled: z.ZodBoolean;
|
|
600
|
+
}, "strip", z.ZodTypeAny, {
|
|
601
|
+
enabled: boolean;
|
|
602
|
+
}, {
|
|
603
|
+
enabled: boolean;
|
|
604
|
+
}>>;
|
|
520
605
|
pttMethod: z.ZodOptional<z.ZodEnum<["cat", "vox", "dtr", "rts"]>>;
|
|
521
606
|
pttPort: z.ZodOptional<z.ZodString>;
|
|
522
607
|
cwKeyPort: z.ZodOptional<z.ZodString>;
|
|
523
608
|
cwKeyMethod: z.ZodOptional<z.ZodEnum<["dtr", "rts"]>>;
|
|
609
|
+
cwKeyActiveLevel: z.ZodOptional<z.ZodEnum<["high", "low"]>>;
|
|
524
610
|
}, "strip", z.ZodTypeAny, {
|
|
525
|
-
type: "
|
|
611
|
+
type: "icom-wlan" | "tci" | "network" | "none" | "serial";
|
|
612
|
+
tci?: {
|
|
613
|
+
host: string;
|
|
614
|
+
port: number;
|
|
615
|
+
receiver: number;
|
|
616
|
+
trx: number;
|
|
617
|
+
vfo: number;
|
|
618
|
+
audioEnabled: boolean;
|
|
619
|
+
audioSampleRate: number;
|
|
620
|
+
} | undefined;
|
|
526
621
|
network?: {
|
|
527
622
|
host: string;
|
|
528
623
|
port: number;
|
|
@@ -530,6 +625,7 @@ export declare const HamlibConfigSchema: z.ZodObject<{
|
|
|
530
625
|
serial?: {
|
|
531
626
|
path: string;
|
|
532
627
|
rigModel: number;
|
|
628
|
+
serialNumber?: string | undefined;
|
|
533
629
|
serialConfig?: {
|
|
534
630
|
data_bits?: "5" | "6" | "7" | "8" | undefined;
|
|
535
631
|
stop_bits?: "1" | "2" | undefined;
|
|
@@ -555,13 +651,27 @@ export declare const HamlibConfigSchema: z.ZodObject<{
|
|
|
555
651
|
userName?: string | undefined;
|
|
556
652
|
password?: string | undefined;
|
|
557
653
|
} | undefined;
|
|
654
|
+
digitalModeRadioMode?: "usb" | "none" | "usb-data" | undefined;
|
|
558
655
|
transmitCompensationMs?: number | undefined;
|
|
559
|
-
|
|
656
|
+
fakeFrequency?: {
|
|
657
|
+
enabled: boolean;
|
|
658
|
+
} | undefined;
|
|
659
|
+
pttMethod?: "cat" | "dtr" | "rts" | "vox" | undefined;
|
|
560
660
|
pttPort?: string | undefined;
|
|
561
661
|
cwKeyPort?: string | undefined;
|
|
562
662
|
cwKeyMethod?: "dtr" | "rts" | undefined;
|
|
663
|
+
cwKeyActiveLevel?: "high" | "low" | undefined;
|
|
563
664
|
}, {
|
|
564
|
-
type: "
|
|
665
|
+
type: "icom-wlan" | "tci" | "network" | "none" | "serial";
|
|
666
|
+
tci?: {
|
|
667
|
+
host?: string | undefined;
|
|
668
|
+
port?: number | undefined;
|
|
669
|
+
receiver?: number | undefined;
|
|
670
|
+
trx?: number | undefined;
|
|
671
|
+
vfo?: number | undefined;
|
|
672
|
+
audioEnabled?: boolean | undefined;
|
|
673
|
+
audioSampleRate?: number | undefined;
|
|
674
|
+
} | undefined;
|
|
565
675
|
network?: {
|
|
566
676
|
host: string;
|
|
567
677
|
port: number;
|
|
@@ -569,6 +679,7 @@ export declare const HamlibConfigSchema: z.ZodObject<{
|
|
|
569
679
|
serial?: {
|
|
570
680
|
path: string;
|
|
571
681
|
rigModel: number;
|
|
682
|
+
serialNumber?: string | undefined;
|
|
572
683
|
serialConfig?: {
|
|
573
684
|
data_bits?: "5" | "6" | "7" | "8" | undefined;
|
|
574
685
|
stop_bits?: "1" | "2" | undefined;
|
|
@@ -594,11 +705,16 @@ export declare const HamlibConfigSchema: z.ZodObject<{
|
|
|
594
705
|
password?: string | undefined;
|
|
595
706
|
dataMode?: boolean | undefined;
|
|
596
707
|
} | undefined;
|
|
708
|
+
digitalModeRadioMode?: "usb" | "none" | "usb-data" | undefined;
|
|
597
709
|
transmitCompensationMs?: number | undefined;
|
|
598
|
-
|
|
710
|
+
fakeFrequency?: {
|
|
711
|
+
enabled: boolean;
|
|
712
|
+
} | undefined;
|
|
713
|
+
pttMethod?: "cat" | "dtr" | "rts" | "vox" | undefined;
|
|
599
714
|
pttPort?: string | undefined;
|
|
600
715
|
cwKeyPort?: string | undefined;
|
|
601
716
|
cwKeyMethod?: "dtr" | "rts" | undefined;
|
|
717
|
+
cwKeyActiveLevel?: "high" | "low" | undefined;
|
|
602
718
|
}>;
|
|
603
719
|
/**
|
|
604
720
|
* 电台配置响应Schema
|
|
@@ -606,7 +722,7 @@ export declare const HamlibConfigSchema: z.ZodObject<{
|
|
|
606
722
|
export declare const RadioConfigResponseSchema: z.ZodObject<{
|
|
607
723
|
success: z.ZodBoolean;
|
|
608
724
|
config: z.ZodObject<{
|
|
609
|
-
type: z.ZodEnum<["none", "network", "serial", "icom-wlan"]>;
|
|
725
|
+
type: z.ZodEnum<["none", "network", "serial", "icom-wlan", "tci"]>;
|
|
610
726
|
network: z.ZodOptional<z.ZodObject<{
|
|
611
727
|
host: z.ZodString;
|
|
612
728
|
port: z.ZodNumber;
|
|
@@ -641,8 +757,34 @@ export declare const RadioConfigResponseSchema: z.ZodObject<{
|
|
|
641
757
|
password?: string | undefined;
|
|
642
758
|
dataMode?: boolean | undefined;
|
|
643
759
|
}>>;
|
|
760
|
+
tci: z.ZodOptional<z.ZodObject<{
|
|
761
|
+
host: z.ZodDefault<z.ZodString>;
|
|
762
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
763
|
+
receiver: z.ZodDefault<z.ZodNumber>;
|
|
764
|
+
trx: z.ZodDefault<z.ZodNumber>;
|
|
765
|
+
vfo: z.ZodDefault<z.ZodNumber>;
|
|
766
|
+
audioEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
767
|
+
audioSampleRate: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
768
|
+
}, "strip", z.ZodTypeAny, {
|
|
769
|
+
host: string;
|
|
770
|
+
port: number;
|
|
771
|
+
receiver: number;
|
|
772
|
+
trx: number;
|
|
773
|
+
vfo: number;
|
|
774
|
+
audioEnabled: boolean;
|
|
775
|
+
audioSampleRate: number;
|
|
776
|
+
}, {
|
|
777
|
+
host?: string | undefined;
|
|
778
|
+
port?: number | undefined;
|
|
779
|
+
receiver?: number | undefined;
|
|
780
|
+
trx?: number | undefined;
|
|
781
|
+
vfo?: number | undefined;
|
|
782
|
+
audioEnabled?: boolean | undefined;
|
|
783
|
+
audioSampleRate?: number | undefined;
|
|
784
|
+
}>>;
|
|
644
785
|
serial: z.ZodOptional<z.ZodObject<{
|
|
645
786
|
path: z.ZodString;
|
|
787
|
+
serialNumber: z.ZodOptional<z.ZodString>;
|
|
646
788
|
rigModel: z.ZodNumber;
|
|
647
789
|
serialConfig: z.ZodOptional<z.ZodObject<{
|
|
648
790
|
data_bits: z.ZodOptional<z.ZodEnum<["5", "6", "7", "8"]>>;
|
|
@@ -685,6 +827,7 @@ export declare const RadioConfigResponseSchema: z.ZodObject<{
|
|
|
685
827
|
}, "strip", z.ZodTypeAny, {
|
|
686
828
|
path: string;
|
|
687
829
|
rigModel: number;
|
|
830
|
+
serialNumber?: string | undefined;
|
|
688
831
|
serialConfig?: {
|
|
689
832
|
data_bits?: "5" | "6" | "7" | "8" | undefined;
|
|
690
833
|
stop_bits?: "1" | "2" | undefined;
|
|
@@ -702,6 +845,7 @@ export declare const RadioConfigResponseSchema: z.ZodObject<{
|
|
|
702
845
|
}, {
|
|
703
846
|
path: string;
|
|
704
847
|
rigModel: number;
|
|
848
|
+
serialNumber?: string | undefined;
|
|
705
849
|
serialConfig?: {
|
|
706
850
|
data_bits?: "5" | "6" | "7" | "8" | undefined;
|
|
707
851
|
stop_bits?: "1" | "2" | undefined;
|
|
@@ -724,13 +868,31 @@ export declare const RadioConfigResponseSchema: z.ZodObject<{
|
|
|
724
868
|
}, {
|
|
725
869
|
speed?: number | undefined;
|
|
726
870
|
}>>;
|
|
871
|
+
digitalModeRadioMode: z.ZodOptional<z.ZodEnum<["none", "usb", "usb-data"]>>;
|
|
727
872
|
transmitCompensationMs: z.ZodOptional<z.ZodNumber>;
|
|
873
|
+
fakeFrequency: z.ZodOptional<z.ZodObject<{
|
|
874
|
+
enabled: z.ZodBoolean;
|
|
875
|
+
}, "strip", z.ZodTypeAny, {
|
|
876
|
+
enabled: boolean;
|
|
877
|
+
}, {
|
|
878
|
+
enabled: boolean;
|
|
879
|
+
}>>;
|
|
728
880
|
pttMethod: z.ZodOptional<z.ZodEnum<["cat", "vox", "dtr", "rts"]>>;
|
|
729
881
|
pttPort: z.ZodOptional<z.ZodString>;
|
|
730
882
|
cwKeyPort: z.ZodOptional<z.ZodString>;
|
|
731
883
|
cwKeyMethod: z.ZodOptional<z.ZodEnum<["dtr", "rts"]>>;
|
|
884
|
+
cwKeyActiveLevel: z.ZodOptional<z.ZodEnum<["high", "low"]>>;
|
|
732
885
|
}, "strip", z.ZodTypeAny, {
|
|
733
|
-
type: "
|
|
886
|
+
type: "icom-wlan" | "tci" | "network" | "none" | "serial";
|
|
887
|
+
tci?: {
|
|
888
|
+
host: string;
|
|
889
|
+
port: number;
|
|
890
|
+
receiver: number;
|
|
891
|
+
trx: number;
|
|
892
|
+
vfo: number;
|
|
893
|
+
audioEnabled: boolean;
|
|
894
|
+
audioSampleRate: number;
|
|
895
|
+
} | undefined;
|
|
734
896
|
network?: {
|
|
735
897
|
host: string;
|
|
736
898
|
port: number;
|
|
@@ -738,6 +900,7 @@ export declare const RadioConfigResponseSchema: z.ZodObject<{
|
|
|
738
900
|
serial?: {
|
|
739
901
|
path: string;
|
|
740
902
|
rigModel: number;
|
|
903
|
+
serialNumber?: string | undefined;
|
|
741
904
|
serialConfig?: {
|
|
742
905
|
data_bits?: "5" | "6" | "7" | "8" | undefined;
|
|
743
906
|
stop_bits?: "1" | "2" | undefined;
|
|
@@ -763,13 +926,27 @@ export declare const RadioConfigResponseSchema: z.ZodObject<{
|
|
|
763
926
|
userName?: string | undefined;
|
|
764
927
|
password?: string | undefined;
|
|
765
928
|
} | undefined;
|
|
929
|
+
digitalModeRadioMode?: "usb" | "none" | "usb-data" | undefined;
|
|
766
930
|
transmitCompensationMs?: number | undefined;
|
|
767
|
-
|
|
931
|
+
fakeFrequency?: {
|
|
932
|
+
enabled: boolean;
|
|
933
|
+
} | undefined;
|
|
934
|
+
pttMethod?: "cat" | "dtr" | "rts" | "vox" | undefined;
|
|
768
935
|
pttPort?: string | undefined;
|
|
769
936
|
cwKeyPort?: string | undefined;
|
|
770
937
|
cwKeyMethod?: "dtr" | "rts" | undefined;
|
|
938
|
+
cwKeyActiveLevel?: "high" | "low" | undefined;
|
|
771
939
|
}, {
|
|
772
|
-
type: "
|
|
940
|
+
type: "icom-wlan" | "tci" | "network" | "none" | "serial";
|
|
941
|
+
tci?: {
|
|
942
|
+
host?: string | undefined;
|
|
943
|
+
port?: number | undefined;
|
|
944
|
+
receiver?: number | undefined;
|
|
945
|
+
trx?: number | undefined;
|
|
946
|
+
vfo?: number | undefined;
|
|
947
|
+
audioEnabled?: boolean | undefined;
|
|
948
|
+
audioSampleRate?: number | undefined;
|
|
949
|
+
} | undefined;
|
|
773
950
|
network?: {
|
|
774
951
|
host: string;
|
|
775
952
|
port: number;
|
|
@@ -777,6 +954,7 @@ export declare const RadioConfigResponseSchema: z.ZodObject<{
|
|
|
777
954
|
serial?: {
|
|
778
955
|
path: string;
|
|
779
956
|
rigModel: number;
|
|
957
|
+
serialNumber?: string | undefined;
|
|
780
958
|
serialConfig?: {
|
|
781
959
|
data_bits?: "5" | "6" | "7" | "8" | undefined;
|
|
782
960
|
stop_bits?: "1" | "2" | undefined;
|
|
@@ -802,16 +980,30 @@ export declare const RadioConfigResponseSchema: z.ZodObject<{
|
|
|
802
980
|
password?: string | undefined;
|
|
803
981
|
dataMode?: boolean | undefined;
|
|
804
982
|
} | undefined;
|
|
983
|
+
digitalModeRadioMode?: "usb" | "none" | "usb-data" | undefined;
|
|
805
984
|
transmitCompensationMs?: number | undefined;
|
|
806
|
-
|
|
985
|
+
fakeFrequency?: {
|
|
986
|
+
enabled: boolean;
|
|
987
|
+
} | undefined;
|
|
988
|
+
pttMethod?: "cat" | "dtr" | "rts" | "vox" | undefined;
|
|
807
989
|
pttPort?: string | undefined;
|
|
808
990
|
cwKeyPort?: string | undefined;
|
|
809
991
|
cwKeyMethod?: "dtr" | "rts" | undefined;
|
|
992
|
+
cwKeyActiveLevel?: "high" | "low" | undefined;
|
|
810
993
|
}>;
|
|
811
994
|
}, "strip", z.ZodTypeAny, {
|
|
812
995
|
success: boolean;
|
|
813
996
|
config: {
|
|
814
|
-
type: "
|
|
997
|
+
type: "icom-wlan" | "tci" | "network" | "none" | "serial";
|
|
998
|
+
tci?: {
|
|
999
|
+
host: string;
|
|
1000
|
+
port: number;
|
|
1001
|
+
receiver: number;
|
|
1002
|
+
trx: number;
|
|
1003
|
+
vfo: number;
|
|
1004
|
+
audioEnabled: boolean;
|
|
1005
|
+
audioSampleRate: number;
|
|
1006
|
+
} | undefined;
|
|
815
1007
|
network?: {
|
|
816
1008
|
host: string;
|
|
817
1009
|
port: number;
|
|
@@ -819,6 +1011,7 @@ export declare const RadioConfigResponseSchema: z.ZodObject<{
|
|
|
819
1011
|
serial?: {
|
|
820
1012
|
path: string;
|
|
821
1013
|
rigModel: number;
|
|
1014
|
+
serialNumber?: string | undefined;
|
|
822
1015
|
serialConfig?: {
|
|
823
1016
|
data_bits?: "5" | "6" | "7" | "8" | undefined;
|
|
824
1017
|
stop_bits?: "1" | "2" | undefined;
|
|
@@ -844,16 +1037,30 @@ export declare const RadioConfigResponseSchema: z.ZodObject<{
|
|
|
844
1037
|
userName?: string | undefined;
|
|
845
1038
|
password?: string | undefined;
|
|
846
1039
|
} | undefined;
|
|
1040
|
+
digitalModeRadioMode?: "usb" | "none" | "usb-data" | undefined;
|
|
847
1041
|
transmitCompensationMs?: number | undefined;
|
|
848
|
-
|
|
1042
|
+
fakeFrequency?: {
|
|
1043
|
+
enabled: boolean;
|
|
1044
|
+
} | undefined;
|
|
1045
|
+
pttMethod?: "cat" | "dtr" | "rts" | "vox" | undefined;
|
|
849
1046
|
pttPort?: string | undefined;
|
|
850
1047
|
cwKeyPort?: string | undefined;
|
|
851
1048
|
cwKeyMethod?: "dtr" | "rts" | undefined;
|
|
1049
|
+
cwKeyActiveLevel?: "high" | "low" | undefined;
|
|
852
1050
|
};
|
|
853
1051
|
}, {
|
|
854
1052
|
success: boolean;
|
|
855
1053
|
config: {
|
|
856
|
-
type: "
|
|
1054
|
+
type: "icom-wlan" | "tci" | "network" | "none" | "serial";
|
|
1055
|
+
tci?: {
|
|
1056
|
+
host?: string | undefined;
|
|
1057
|
+
port?: number | undefined;
|
|
1058
|
+
receiver?: number | undefined;
|
|
1059
|
+
trx?: number | undefined;
|
|
1060
|
+
vfo?: number | undefined;
|
|
1061
|
+
audioEnabled?: boolean | undefined;
|
|
1062
|
+
audioSampleRate?: number | undefined;
|
|
1063
|
+
} | undefined;
|
|
857
1064
|
network?: {
|
|
858
1065
|
host: string;
|
|
859
1066
|
port: number;
|
|
@@ -861,6 +1068,7 @@ export declare const RadioConfigResponseSchema: z.ZodObject<{
|
|
|
861
1068
|
serial?: {
|
|
862
1069
|
path: string;
|
|
863
1070
|
rigModel: number;
|
|
1071
|
+
serialNumber?: string | undefined;
|
|
864
1072
|
serialConfig?: {
|
|
865
1073
|
data_bits?: "5" | "6" | "7" | "8" | undefined;
|
|
866
1074
|
stop_bits?: "1" | "2" | undefined;
|
|
@@ -886,11 +1094,16 @@ export declare const RadioConfigResponseSchema: z.ZodObject<{
|
|
|
886
1094
|
password?: string | undefined;
|
|
887
1095
|
dataMode?: boolean | undefined;
|
|
888
1096
|
} | undefined;
|
|
1097
|
+
digitalModeRadioMode?: "usb" | "none" | "usb-data" | undefined;
|
|
889
1098
|
transmitCompensationMs?: number | undefined;
|
|
890
|
-
|
|
1099
|
+
fakeFrequency?: {
|
|
1100
|
+
enabled: boolean;
|
|
1101
|
+
} | undefined;
|
|
1102
|
+
pttMethod?: "cat" | "dtr" | "rts" | "vox" | undefined;
|
|
891
1103
|
pttPort?: string | undefined;
|
|
892
1104
|
cwKeyPort?: string | undefined;
|
|
893
1105
|
cwKeyMethod?: "dtr" | "rts" | undefined;
|
|
1106
|
+
cwKeyActiveLevel?: "high" | "low" | undefined;
|
|
894
1107
|
};
|
|
895
1108
|
}>;
|
|
896
1109
|
/**
|
|
@@ -1050,7 +1263,7 @@ export declare const RadioInfoSchema: z.ZodObject<{
|
|
|
1050
1263
|
/** Hamlib 电台型号 ID (serial/network 模式使用,icom-wlan 模式可选) */
|
|
1051
1264
|
rigModel: z.ZodOptional<z.ZodNumber>;
|
|
1052
1265
|
/** 连接类型 */
|
|
1053
|
-
connectionType: z.ZodEnum<["serial", "network", "icom-wlan"]>;
|
|
1266
|
+
connectionType: z.ZodEnum<["serial", "network", "icom-wlan", "tci"]>;
|
|
1054
1267
|
/** 固件版本 (如果可获取) */
|
|
1055
1268
|
firmwareVersion: z.ZodOptional<z.ZodString>;
|
|
1056
1269
|
/** 序列号 (如果可获取) */
|
|
@@ -1058,23 +1271,24 @@ export declare const RadioInfoSchema: z.ZodObject<{
|
|
|
1058
1271
|
}, "strip", z.ZodTypeAny, {
|
|
1059
1272
|
manufacturer: string;
|
|
1060
1273
|
model: string;
|
|
1061
|
-
connectionType: "
|
|
1274
|
+
connectionType: "icom-wlan" | "tci" | "network" | "serial";
|
|
1275
|
+
serialNumber?: string | undefined;
|
|
1062
1276
|
rigModel?: number | undefined;
|
|
1063
1277
|
firmwareVersion?: string | undefined;
|
|
1064
|
-
serialNumber?: string | undefined;
|
|
1065
1278
|
}, {
|
|
1066
1279
|
manufacturer: string;
|
|
1067
1280
|
model: string;
|
|
1068
|
-
connectionType: "
|
|
1281
|
+
connectionType: "icom-wlan" | "tci" | "network" | "serial";
|
|
1282
|
+
serialNumber?: string | undefined;
|
|
1069
1283
|
rigModel?: number | undefined;
|
|
1070
1284
|
firmwareVersion?: string | undefined;
|
|
1071
|
-
serialNumber?: string | undefined;
|
|
1072
1285
|
}>;
|
|
1073
1286
|
/**
|
|
1074
1287
|
* 串口信息Schema
|
|
1075
1288
|
*/
|
|
1076
1289
|
export declare const SerialPortSchema: z.ZodObject<{
|
|
1077
1290
|
path: z.ZodString;
|
|
1291
|
+
friendlyName: z.ZodOptional<z.ZodString>;
|
|
1078
1292
|
manufacturer: z.ZodOptional<z.ZodString>;
|
|
1079
1293
|
serialNumber: z.ZodOptional<z.ZodString>;
|
|
1080
1294
|
pnpId: z.ZodOptional<z.ZodString>;
|
|
@@ -1083,20 +1297,22 @@ export declare const SerialPortSchema: z.ZodObject<{
|
|
|
1083
1297
|
vendorId: z.ZodOptional<z.ZodString>;
|
|
1084
1298
|
}, "strip", z.ZodTypeAny, {
|
|
1085
1299
|
path: string;
|
|
1086
|
-
|
|
1300
|
+
vendorId?: string | undefined;
|
|
1301
|
+
productId?: string | undefined;
|
|
1087
1302
|
serialNumber?: string | undefined;
|
|
1303
|
+
manufacturer?: string | undefined;
|
|
1304
|
+
friendlyName?: string | undefined;
|
|
1088
1305
|
pnpId?: string | undefined;
|
|
1089
1306
|
locationId?: string | undefined;
|
|
1090
|
-
productId?: string | undefined;
|
|
1091
|
-
vendorId?: string | undefined;
|
|
1092
1307
|
}, {
|
|
1093
1308
|
path: string;
|
|
1094
|
-
|
|
1309
|
+
vendorId?: string | undefined;
|
|
1310
|
+
productId?: string | undefined;
|
|
1095
1311
|
serialNumber?: string | undefined;
|
|
1312
|
+
manufacturer?: string | undefined;
|
|
1313
|
+
friendlyName?: string | undefined;
|
|
1096
1314
|
pnpId?: string | undefined;
|
|
1097
1315
|
locationId?: string | undefined;
|
|
1098
|
-
productId?: string | undefined;
|
|
1099
|
-
vendorId?: string | undefined;
|
|
1100
1316
|
}>;
|
|
1101
1317
|
/**
|
|
1102
1318
|
* 串口列表响应Schema
|
|
@@ -1104,6 +1320,7 @@ export declare const SerialPortSchema: z.ZodObject<{
|
|
|
1104
1320
|
export declare const SerialPortsResponseSchema: z.ZodObject<{
|
|
1105
1321
|
ports: z.ZodArray<z.ZodObject<{
|
|
1106
1322
|
path: z.ZodString;
|
|
1323
|
+
friendlyName: z.ZodOptional<z.ZodString>;
|
|
1107
1324
|
manufacturer: z.ZodOptional<z.ZodString>;
|
|
1108
1325
|
serialNumber: z.ZodOptional<z.ZodString>;
|
|
1109
1326
|
pnpId: z.ZodOptional<z.ZodString>;
|
|
@@ -1112,40 +1329,44 @@ export declare const SerialPortsResponseSchema: z.ZodObject<{
|
|
|
1112
1329
|
vendorId: z.ZodOptional<z.ZodString>;
|
|
1113
1330
|
}, "strip", z.ZodTypeAny, {
|
|
1114
1331
|
path: string;
|
|
1115
|
-
|
|
1332
|
+
vendorId?: string | undefined;
|
|
1333
|
+
productId?: string | undefined;
|
|
1116
1334
|
serialNumber?: string | undefined;
|
|
1335
|
+
manufacturer?: string | undefined;
|
|
1336
|
+
friendlyName?: string | undefined;
|
|
1117
1337
|
pnpId?: string | undefined;
|
|
1118
1338
|
locationId?: string | undefined;
|
|
1119
|
-
productId?: string | undefined;
|
|
1120
|
-
vendorId?: string | undefined;
|
|
1121
1339
|
}, {
|
|
1122
1340
|
path: string;
|
|
1123
|
-
|
|
1341
|
+
vendorId?: string | undefined;
|
|
1342
|
+
productId?: string | undefined;
|
|
1124
1343
|
serialNumber?: string | undefined;
|
|
1344
|
+
manufacturer?: string | undefined;
|
|
1345
|
+
friendlyName?: string | undefined;
|
|
1125
1346
|
pnpId?: string | undefined;
|
|
1126
1347
|
locationId?: string | undefined;
|
|
1127
|
-
productId?: string | undefined;
|
|
1128
|
-
vendorId?: string | undefined;
|
|
1129
1348
|
}>, "many">;
|
|
1130
1349
|
}, "strip", z.ZodTypeAny, {
|
|
1131
1350
|
ports: {
|
|
1132
1351
|
path: string;
|
|
1133
|
-
|
|
1352
|
+
vendorId?: string | undefined;
|
|
1353
|
+
productId?: string | undefined;
|
|
1134
1354
|
serialNumber?: string | undefined;
|
|
1355
|
+
manufacturer?: string | undefined;
|
|
1356
|
+
friendlyName?: string | undefined;
|
|
1135
1357
|
pnpId?: string | undefined;
|
|
1136
1358
|
locationId?: string | undefined;
|
|
1137
|
-
productId?: string | undefined;
|
|
1138
|
-
vendorId?: string | undefined;
|
|
1139
1359
|
}[];
|
|
1140
1360
|
}, {
|
|
1141
1361
|
ports: {
|
|
1142
1362
|
path: string;
|
|
1143
|
-
|
|
1363
|
+
vendorId?: string | undefined;
|
|
1364
|
+
productId?: string | undefined;
|
|
1144
1365
|
serialNumber?: string | undefined;
|
|
1366
|
+
manufacturer?: string | undefined;
|
|
1367
|
+
friendlyName?: string | undefined;
|
|
1145
1368
|
pnpId?: string | undefined;
|
|
1146
1369
|
locationId?: string | undefined;
|
|
1147
|
-
productId?: string | undefined;
|
|
1148
|
-
vendorId?: string | undefined;
|
|
1149
1370
|
}[];
|
|
1150
1371
|
}>;
|
|
1151
1372
|
/**
|
|
@@ -1197,12 +1418,12 @@ export declare const TunerStatusSchema: z.ZodObject<{
|
|
|
1197
1418
|
}, "strip", z.ZodTypeAny, {
|
|
1198
1419
|
active: boolean;
|
|
1199
1420
|
enabled: boolean;
|
|
1200
|
-
status?: "
|
|
1421
|
+
status?: "idle" | "failed" | "success" | "tuning" | undefined;
|
|
1201
1422
|
swr?: number | undefined;
|
|
1202
1423
|
}, {
|
|
1203
1424
|
active: boolean;
|
|
1204
1425
|
enabled: boolean;
|
|
1205
|
-
status?: "
|
|
1426
|
+
status?: "idle" | "failed" | "success" | "tuning" | undefined;
|
|
1206
1427
|
swr?: number | undefined;
|
|
1207
1428
|
}>;
|
|
1208
1429
|
/**
|
|
@@ -1227,19 +1448,19 @@ export declare const TunerCapabilitiesResponseSchema: z.ZodObject<{
|
|
|
1227
1448
|
hasManualTune: boolean;
|
|
1228
1449
|
}>;
|
|
1229
1450
|
}, "strip", z.ZodTypeAny, {
|
|
1230
|
-
success: boolean;
|
|
1231
1451
|
capabilities: {
|
|
1232
1452
|
supported: boolean;
|
|
1233
1453
|
hasSwitch: boolean;
|
|
1234
1454
|
hasManualTune: boolean;
|
|
1235
1455
|
};
|
|
1236
|
-
}, {
|
|
1237
1456
|
success: boolean;
|
|
1457
|
+
}, {
|
|
1238
1458
|
capabilities: {
|
|
1239
1459
|
supported: boolean;
|
|
1240
1460
|
hasSwitch: boolean;
|
|
1241
1461
|
hasManualTune: boolean;
|
|
1242
1462
|
};
|
|
1463
|
+
success: boolean;
|
|
1243
1464
|
}>;
|
|
1244
1465
|
/**
|
|
1245
1466
|
* 天调状态响应Schema
|
|
@@ -1258,19 +1479,19 @@ export declare const TunerStatusResponseSchema: z.ZodObject<{
|
|
|
1258
1479
|
}, "strip", z.ZodTypeAny, {
|
|
1259
1480
|
active: boolean;
|
|
1260
1481
|
enabled: boolean;
|
|
1261
|
-
status?: "
|
|
1482
|
+
status?: "idle" | "failed" | "success" | "tuning" | undefined;
|
|
1262
1483
|
swr?: number | undefined;
|
|
1263
1484
|
}, {
|
|
1264
1485
|
active: boolean;
|
|
1265
1486
|
enabled: boolean;
|
|
1266
|
-
status?: "
|
|
1487
|
+
status?: "idle" | "failed" | "success" | "tuning" | undefined;
|
|
1267
1488
|
swr?: number | undefined;
|
|
1268
1489
|
}>;
|
|
1269
1490
|
}, "strip", z.ZodTypeAny, {
|
|
1270
1491
|
status: {
|
|
1271
1492
|
active: boolean;
|
|
1272
1493
|
enabled: boolean;
|
|
1273
|
-
status?: "
|
|
1494
|
+
status?: "idle" | "failed" | "success" | "tuning" | undefined;
|
|
1274
1495
|
swr?: number | undefined;
|
|
1275
1496
|
};
|
|
1276
1497
|
success: boolean;
|
|
@@ -1278,7 +1499,7 @@ export declare const TunerStatusResponseSchema: z.ZodObject<{
|
|
|
1278
1499
|
status: {
|
|
1279
1500
|
active: boolean;
|
|
1280
1501
|
enabled: boolean;
|
|
1281
|
-
status?: "
|
|
1502
|
+
status?: "idle" | "failed" | "success" | "tuning" | undefined;
|
|
1282
1503
|
swr?: number | undefined;
|
|
1283
1504
|
};
|
|
1284
1505
|
success: boolean;
|
|
@@ -1573,8 +1794,10 @@ export type HamlibConfigFieldType = z.infer<typeof HamlibConfigFieldTypeSchema>;
|
|
|
1573
1794
|
export type HamlibConfigField = z.infer<typeof HamlibConfigFieldSchema>;
|
|
1574
1795
|
export type NetworkConfig = z.infer<typeof NetworkConfigSchema>;
|
|
1575
1796
|
export type IcomWlanConfig = z.infer<typeof IcomWlanConfigSchema>;
|
|
1797
|
+
export type TciConfig = z.infer<typeof TciConfigSchema>;
|
|
1576
1798
|
export type SerialConnectionConfig = z.infer<typeof SerialConnectionConfigSchema>;
|
|
1577
1799
|
export type HamlibSpectrumConfig = z.infer<typeof HamlibSpectrumConfigSchema>;
|
|
1800
|
+
export type DigitalModeRadioModePreference = z.infer<typeof DigitalModeRadioModePreferenceSchema>;
|
|
1578
1801
|
export type PttMethod = z.infer<typeof PttMethodSchema>;
|
|
1579
1802
|
export type HamlibConfig = z.infer<typeof HamlibConfigSchema>;
|
|
1580
1803
|
export type RadioConfigResponse = z.infer<typeof RadioConfigResponseSchema>;
|