@tx5dr/contracts 1.7.2 → 1.7.3
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 +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/schema/__tests__/audio.schema.test.js +4 -0
- package/dist/schema/__tests__/audio.schema.test.js.map +1 -1
- package/dist/schema/__tests__/operator.schema.test.d.ts +2 -0
- package/dist/schema/__tests__/operator.schema.test.d.ts.map +1 -0
- package/dist/schema/__tests__/operator.schema.test.js +23 -0
- package/dist/schema/__tests__/operator.schema.test.js.map +1 -0
- package/dist/schema/__tests__/process-monitor.schema.test.d.ts +2 -0
- package/dist/schema/__tests__/process-monitor.schema.test.d.ts.map +1 -0
- package/dist/schema/__tests__/process-monitor.schema.test.js +139 -0
- package/dist/schema/__tests__/process-monitor.schema.test.js.map +1 -0
- package/dist/schema/api-response.schema.d.ts +2 -2
- package/dist/schema/audio.schema.d.ts +369 -0
- package/dist/schema/audio.schema.d.ts.map +1 -1
- package/dist/schema/audio.schema.js +3 -0
- package/dist/schema/audio.schema.js.map +1 -1
- package/dist/schema/logbook.schema.d.ts +2 -2
- package/dist/schema/operator.schema.d.ts +10 -10
- 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 +16 -16
- package/dist/schema/process-monitor.schema.d.ts +1373 -0
- package/dist/schema/process-monitor.schema.d.ts.map +1 -1
- package/dist/schema/process-monitor.schema.js +43 -0
- package/dist/schema/process-monitor.schema.js.map +1 -1
- package/dist/schema/radio-capability.schema.d.ts +6 -6
- package/dist/schema/radio.schema.d.ts +6 -6
- package/dist/schema/slot-info.schema.d.ts +136 -0
- package/dist/schema/slot-info.schema.d.ts.map +1 -1
- package/dist/schema/slot-info.schema.js +27 -2
- package/dist/schema/slot-info.schema.js.map +1 -1
- package/dist/schema/spectrum.schema.d.ts +24 -24
- package/dist/schema/voice-keyer.schema.d.ts +2 -2
- package/dist/schema/websocket.schema.d.ts +363 -139
- package/dist/schema/websocket.schema.d.ts.map +1 -1
- package/dist/schema/websocket.schema.js +4 -2
- package/dist/schema/websocket.schema.js.map +1 -1
- package/dist/utils/callsign.d.ts +2 -0
- package/dist/utils/callsign.d.ts.map +1 -0
- package/dist/utils/callsign.js +8 -0
- package/dist/utils/callsign.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/schema/__tests__/audio.schema.test.ts +4 -0
- package/src/schema/__tests__/operator.schema.test.ts +29 -0
- package/src/schema/__tests__/process-monitor.schema.test.ts +146 -0
- package/src/schema/audio.schema.ts +3 -0
- package/src/schema/operator.schema.ts +7 -1
- package/src/schema/process-monitor.schema.ts +51 -0
- package/src/schema/slot-info.schema.ts +33 -2
- package/src/schema/websocket.schema.ts +16 -2
- package/src/utils/callsign.ts +9 -0
- package/test/decode-request-schema.test.ts +48 -0
|
@@ -220,20 +220,20 @@ export declare const SpectrumSourceAvailabilitySchema: z.ZodObject<{
|
|
|
220
220
|
supportsWaterfall: z.ZodBoolean;
|
|
221
221
|
frequencyRangeMode: z.ZodEnum<["absolute", "baseband"]>;
|
|
222
222
|
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
available: boolean;
|
|
223
224
|
displayBinCount: number;
|
|
224
225
|
kind: "audio" | "radio-sdr" | "openwebrx-sdr";
|
|
225
226
|
supported: boolean;
|
|
226
|
-
available: boolean;
|
|
227
227
|
defaultSelected: boolean;
|
|
228
228
|
supportsWaterfall: boolean;
|
|
229
229
|
frequencyRangeMode: "baseband" | "absolute";
|
|
230
230
|
reason?: string | undefined;
|
|
231
231
|
sourceBinCount?: number | null | undefined;
|
|
232
232
|
}, {
|
|
233
|
+
available: boolean;
|
|
233
234
|
displayBinCount: number;
|
|
234
235
|
kind: "audio" | "radio-sdr" | "openwebrx-sdr";
|
|
235
236
|
supported: boolean;
|
|
236
|
-
available: boolean;
|
|
237
237
|
defaultSelected: boolean;
|
|
238
238
|
supportsWaterfall: boolean;
|
|
239
239
|
frequencyRangeMode: "baseband" | "absolute";
|
|
@@ -254,20 +254,20 @@ export declare const SpectrumCapabilitiesSchema: z.ZodObject<{
|
|
|
254
254
|
supportsWaterfall: z.ZodBoolean;
|
|
255
255
|
frequencyRangeMode: z.ZodEnum<["absolute", "baseband"]>;
|
|
256
256
|
}, "strip", z.ZodTypeAny, {
|
|
257
|
+
available: boolean;
|
|
257
258
|
displayBinCount: number;
|
|
258
259
|
kind: "audio" | "radio-sdr" | "openwebrx-sdr";
|
|
259
260
|
supported: boolean;
|
|
260
|
-
available: boolean;
|
|
261
261
|
defaultSelected: boolean;
|
|
262
262
|
supportsWaterfall: boolean;
|
|
263
263
|
frequencyRangeMode: "baseband" | "absolute";
|
|
264
264
|
reason?: string | undefined;
|
|
265
265
|
sourceBinCount?: number | null | undefined;
|
|
266
266
|
}, {
|
|
267
|
+
available: boolean;
|
|
267
268
|
displayBinCount: number;
|
|
268
269
|
kind: "audio" | "radio-sdr" | "openwebrx-sdr";
|
|
269
270
|
supported: boolean;
|
|
270
|
-
available: boolean;
|
|
271
271
|
defaultSelected: boolean;
|
|
272
272
|
supportsWaterfall: boolean;
|
|
273
273
|
frequencyRangeMode: "baseband" | "absolute";
|
|
@@ -278,10 +278,10 @@ export declare const SpectrumCapabilitiesSchema: z.ZodObject<{
|
|
|
278
278
|
profileId: string | null;
|
|
279
279
|
defaultKind: "audio" | "radio-sdr" | "openwebrx-sdr";
|
|
280
280
|
sources: {
|
|
281
|
+
available: boolean;
|
|
281
282
|
displayBinCount: number;
|
|
282
283
|
kind: "audio" | "radio-sdr" | "openwebrx-sdr";
|
|
283
284
|
supported: boolean;
|
|
284
|
-
available: boolean;
|
|
285
285
|
defaultSelected: boolean;
|
|
286
286
|
supportsWaterfall: boolean;
|
|
287
287
|
frequencyRangeMode: "baseband" | "absolute";
|
|
@@ -292,10 +292,10 @@ export declare const SpectrumCapabilitiesSchema: z.ZodObject<{
|
|
|
292
292
|
profileId: string | null;
|
|
293
293
|
defaultKind: "audio" | "radio-sdr" | "openwebrx-sdr";
|
|
294
294
|
sources: {
|
|
295
|
+
available: boolean;
|
|
295
296
|
displayBinCount: number;
|
|
296
297
|
kind: "audio" | "radio-sdr" | "openwebrx-sdr";
|
|
297
298
|
supported: boolean;
|
|
298
|
-
available: boolean;
|
|
299
299
|
defaultSelected: boolean;
|
|
300
300
|
supportsWaterfall: boolean;
|
|
301
301
|
frequencyRangeMode: "baseband" | "absolute";
|
|
@@ -319,19 +319,19 @@ export declare const SpectrumSessionControlSchema: z.ZodObject<{
|
|
|
319
319
|
pending: z.ZodBoolean;
|
|
320
320
|
}, "strip", z.ZodTypeAny, {
|
|
321
321
|
id: "zoom-step" | "digital-window-toggle" | "openwebrx-detail-toggle" | "viewport-zoom";
|
|
322
|
+
active: boolean;
|
|
322
323
|
kind: "server" | "local";
|
|
323
324
|
action: "in" | "out" | "toggle";
|
|
324
325
|
visible: boolean;
|
|
325
326
|
enabled: boolean;
|
|
326
|
-
active: boolean;
|
|
327
327
|
pending: boolean;
|
|
328
328
|
}, {
|
|
329
329
|
id: "zoom-step" | "digital-window-toggle" | "openwebrx-detail-toggle" | "viewport-zoom";
|
|
330
|
+
active: boolean;
|
|
330
331
|
kind: "server" | "local";
|
|
331
332
|
action: "in" | "out" | "toggle";
|
|
332
333
|
visible: boolean;
|
|
333
334
|
enabled: boolean;
|
|
334
|
-
active: boolean;
|
|
335
335
|
pending: boolean;
|
|
336
336
|
}>;
|
|
337
337
|
export type SpectrumSessionControl = z.infer<typeof SpectrumSessionControlSchema>;
|
|
@@ -361,14 +361,14 @@ export declare const SpectrumSessionPresetMarkerSchema: z.ZodObject<{
|
|
|
361
361
|
}, "strip", z.ZodTypeAny, {
|
|
362
362
|
id: string;
|
|
363
363
|
frequency: number;
|
|
364
|
-
label: string;
|
|
365
364
|
description: string | null;
|
|
365
|
+
label: string;
|
|
366
366
|
clickable: boolean;
|
|
367
367
|
}, {
|
|
368
368
|
id: string;
|
|
369
369
|
frequency: number;
|
|
370
|
-
label: string;
|
|
371
370
|
description: string | null;
|
|
371
|
+
label: string;
|
|
372
372
|
clickable: boolean;
|
|
373
373
|
}>;
|
|
374
374
|
export type SpectrumSessionPresetMarker = z.infer<typeof SpectrumSessionPresetMarkerSchema>;
|
|
@@ -390,14 +390,14 @@ export declare const SpectrumSessionInteractionStateSchema: z.ZodObject<{
|
|
|
390
390
|
}, "strip", z.ZodTypeAny, {
|
|
391
391
|
id: string;
|
|
392
392
|
frequency: number;
|
|
393
|
-
label: string;
|
|
394
393
|
description: string | null;
|
|
394
|
+
label: string;
|
|
395
395
|
clickable: boolean;
|
|
396
396
|
}, {
|
|
397
397
|
id: string;
|
|
398
398
|
frequency: number;
|
|
399
|
-
label: string;
|
|
400
399
|
description: string | null;
|
|
400
|
+
label: string;
|
|
401
401
|
clickable: boolean;
|
|
402
402
|
}>, "many">;
|
|
403
403
|
canDragVoiceOverlay: z.ZodBoolean;
|
|
@@ -419,8 +419,8 @@ export declare const SpectrumSessionInteractionStateSchema: z.ZodObject<{
|
|
|
419
419
|
presetMarkers: {
|
|
420
420
|
id: string;
|
|
421
421
|
frequency: number;
|
|
422
|
-
label: string;
|
|
423
422
|
description: string | null;
|
|
423
|
+
label: string;
|
|
424
424
|
clickable: boolean;
|
|
425
425
|
}[];
|
|
426
426
|
canDragVoiceOverlay: boolean;
|
|
@@ -442,8 +442,8 @@ export declare const SpectrumSessionInteractionStateSchema: z.ZodObject<{
|
|
|
442
442
|
presetMarkers: {
|
|
443
443
|
id: string;
|
|
444
444
|
frequency: number;
|
|
445
|
-
label: string;
|
|
446
445
|
description: string | null;
|
|
446
|
+
label: string;
|
|
447
447
|
clickable: boolean;
|
|
448
448
|
}[];
|
|
449
449
|
canDragVoiceOverlay: boolean;
|
|
@@ -509,14 +509,14 @@ export declare const SpectrumSessionStateSchema: z.ZodObject<{
|
|
|
509
509
|
}, "strip", z.ZodTypeAny, {
|
|
510
510
|
id: string;
|
|
511
511
|
frequency: number;
|
|
512
|
-
label: string;
|
|
513
512
|
description: string | null;
|
|
513
|
+
label: string;
|
|
514
514
|
clickable: boolean;
|
|
515
515
|
}, {
|
|
516
516
|
id: string;
|
|
517
517
|
frequency: number;
|
|
518
|
-
label: string;
|
|
519
518
|
description: string | null;
|
|
519
|
+
label: string;
|
|
520
520
|
clickable: boolean;
|
|
521
521
|
}>, "many">;
|
|
522
522
|
canDragVoiceOverlay: z.ZodBoolean;
|
|
@@ -538,8 +538,8 @@ export declare const SpectrumSessionStateSchema: z.ZodObject<{
|
|
|
538
538
|
presetMarkers: {
|
|
539
539
|
id: string;
|
|
540
540
|
frequency: number;
|
|
541
|
-
label: string;
|
|
542
541
|
description: string | null;
|
|
542
|
+
label: string;
|
|
543
543
|
clickable: boolean;
|
|
544
544
|
}[];
|
|
545
545
|
canDragVoiceOverlay: boolean;
|
|
@@ -561,8 +561,8 @@ export declare const SpectrumSessionStateSchema: z.ZodObject<{
|
|
|
561
561
|
presetMarkers: {
|
|
562
562
|
id: string;
|
|
563
563
|
frequency: number;
|
|
564
|
-
label: string;
|
|
565
564
|
description: string | null;
|
|
565
|
+
label: string;
|
|
566
566
|
clickable: boolean;
|
|
567
567
|
}[];
|
|
568
568
|
canDragVoiceOverlay: boolean;
|
|
@@ -583,19 +583,19 @@ export declare const SpectrumSessionStateSchema: z.ZodObject<{
|
|
|
583
583
|
pending: z.ZodBoolean;
|
|
584
584
|
}, "strip", z.ZodTypeAny, {
|
|
585
585
|
id: "zoom-step" | "digital-window-toggle" | "openwebrx-detail-toggle" | "viewport-zoom";
|
|
586
|
+
active: boolean;
|
|
586
587
|
kind: "server" | "local";
|
|
587
588
|
action: "in" | "out" | "toggle";
|
|
588
589
|
visible: boolean;
|
|
589
590
|
enabled: boolean;
|
|
590
|
-
active: boolean;
|
|
591
591
|
pending: boolean;
|
|
592
592
|
}, {
|
|
593
593
|
id: "zoom-step" | "digital-window-toggle" | "openwebrx-detail-toggle" | "viewport-zoom";
|
|
594
|
+
active: boolean;
|
|
594
595
|
kind: "server" | "local";
|
|
595
596
|
action: "in" | "out" | "toggle";
|
|
596
597
|
visible: boolean;
|
|
597
598
|
enabled: boolean;
|
|
598
|
-
active: boolean;
|
|
599
599
|
pending: boolean;
|
|
600
600
|
}>, "many">;
|
|
601
601
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -630,8 +630,8 @@ export declare const SpectrumSessionStateSchema: z.ZodObject<{
|
|
|
630
630
|
presetMarkers: {
|
|
631
631
|
id: string;
|
|
632
632
|
frequency: number;
|
|
633
|
-
label: string;
|
|
634
633
|
description: string | null;
|
|
634
|
+
label: string;
|
|
635
635
|
clickable: boolean;
|
|
636
636
|
}[];
|
|
637
637
|
canDragVoiceOverlay: boolean;
|
|
@@ -644,11 +644,11 @@ export declare const SpectrumSessionStateSchema: z.ZodObject<{
|
|
|
644
644
|
};
|
|
645
645
|
controls: {
|
|
646
646
|
id: "zoom-step" | "digital-window-toggle" | "openwebrx-detail-toggle" | "viewport-zoom";
|
|
647
|
+
active: boolean;
|
|
647
648
|
kind: "server" | "local";
|
|
648
649
|
action: "in" | "out" | "toggle";
|
|
649
650
|
visible: boolean;
|
|
650
651
|
enabled: boolean;
|
|
651
|
-
active: boolean;
|
|
652
652
|
pending: boolean;
|
|
653
653
|
}[];
|
|
654
654
|
}, {
|
|
@@ -683,8 +683,8 @@ export declare const SpectrumSessionStateSchema: z.ZodObject<{
|
|
|
683
683
|
presetMarkers: {
|
|
684
684
|
id: string;
|
|
685
685
|
frequency: number;
|
|
686
|
-
label: string;
|
|
687
686
|
description: string | null;
|
|
687
|
+
label: string;
|
|
688
688
|
clickable: boolean;
|
|
689
689
|
}[];
|
|
690
690
|
canDragVoiceOverlay: boolean;
|
|
@@ -697,11 +697,11 @@ export declare const SpectrumSessionStateSchema: z.ZodObject<{
|
|
|
697
697
|
};
|
|
698
698
|
controls: {
|
|
699
699
|
id: "zoom-step" | "digital-window-toggle" | "openwebrx-detail-toggle" | "viewport-zoom";
|
|
700
|
+
active: boolean;
|
|
700
701
|
kind: "server" | "local";
|
|
701
702
|
action: "in" | "out" | "toggle";
|
|
702
703
|
visible: boolean;
|
|
703
704
|
enabled: boolean;
|
|
704
|
-
active: boolean;
|
|
705
705
|
pending: boolean;
|
|
706
706
|
}[];
|
|
707
707
|
}>;
|
|
@@ -99,21 +99,21 @@ export declare const VoiceKeyerStatusSchema: z.ZodObject<{
|
|
|
99
99
|
nextRunAt: z.ZodNullable<z.ZodNumber>;
|
|
100
100
|
error: z.ZodNullable<z.ZodString>;
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
|
+
active: boolean;
|
|
102
103
|
error: string | null;
|
|
103
104
|
mode: "error" | "idle" | "playing" | "repeat-waiting" | "stopping";
|
|
104
105
|
callsign: string | null;
|
|
105
106
|
slotId: string | null;
|
|
106
|
-
active: boolean;
|
|
107
107
|
repeating: boolean;
|
|
108
108
|
startedBy: string | null;
|
|
109
109
|
startedByLabel: string | null;
|
|
110
110
|
nextRunAt: number | null;
|
|
111
111
|
}, {
|
|
112
|
+
active: boolean;
|
|
112
113
|
error: string | null;
|
|
113
114
|
mode: "error" | "idle" | "playing" | "repeat-waiting" | "stopping";
|
|
114
115
|
callsign: string | null;
|
|
115
116
|
slotId: string | null;
|
|
116
|
-
active: boolean;
|
|
117
117
|
repeating: boolean;
|
|
118
118
|
startedBy: string | null;
|
|
119
119
|
startedByLabel: string | null;
|