@tx5dr/contracts 1.2.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/CLAUDE.md +41 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +86 -0
- package/dist/index.js.map +1 -0
- package/dist/schema/__tests__/plugin-runtime-log.schema.test.d.ts +2 -0
- package/dist/schema/__tests__/plugin-runtime-log.schema.test.d.ts.map +1 -0
- package/dist/schema/__tests__/plugin-runtime-log.schema.test.js +78 -0
- package/dist/schema/__tests__/plugin-runtime-log.schema.test.js.map +1 -0
- package/dist/schema/ability.d.ts +85 -0
- package/dist/schema/ability.d.ts.map +1 -0
- package/dist/schema/ability.js +119 -0
- package/dist/schema/ability.js.map +1 -0
- package/dist/schema/api-response.schema.d.ts +1017 -0
- package/dist/schema/api-response.schema.d.ts.map +1 -0
- package/dist/schema/api-response.schema.js +137 -0
- package/dist/schema/api-response.schema.js.map +1 -0
- package/dist/schema/audio-sidecar.schema.d.ts +106 -0
- package/dist/schema/audio-sidecar.schema.d.ts.map +1 -0
- package/dist/schema/audio-sidecar.schema.js +47 -0
- package/dist/schema/audio-sidecar.schema.js.map +1 -0
- package/dist/schema/audio.schema.d.ts +227 -0
- package/dist/schema/audio.schema.d.ts.map +1 -0
- package/dist/schema/audio.schema.js +56 -0
- package/dist/schema/audio.schema.js.map +1 -0
- package/dist/schema/auth.schema.d.ts +738 -0
- package/dist/schema/auth.schema.d.ts.map +1 -0
- package/dist/schema/auth.schema.js +161 -0
- package/dist/schema/auth.schema.js.map +1 -0
- package/dist/schema/cycle.schema.d.ts +33 -0
- package/dist/schema/cycle.schema.d.ts.map +1 -0
- package/dist/schema/cycle.schema.js +23 -0
- package/dist/schema/cycle.schema.js.map +1 -0
- package/dist/schema/desktop-https.schema.d.ts +146 -0
- package/dist/schema/desktop-https.schema.d.ts.map +1 -0
- package/dist/schema/desktop-https.schema.js +31 -0
- package/dist/schema/desktop-https.schema.js.map +1 -0
- package/dist/schema/ft8.schema.d.ts +1107 -0
- package/dist/schema/ft8.schema.d.ts.map +1 -0
- package/dist/schema/ft8.schema.js +268 -0
- package/dist/schema/ft8.schema.js.map +1 -0
- package/dist/schema/hello.schema.d.ts +10 -0
- package/dist/schema/hello.schema.d.ts.map +1 -0
- package/dist/schema/hello.schema.js +5 -0
- package/dist/schema/hello.schema.js.map +1 -0
- package/dist/schema/logbook.schema.d.ts +1472 -0
- package/dist/schema/logbook.schema.d.ts.map +1 -0
- package/dist/schema/logbook.schema.js +256 -0
- package/dist/schema/logbook.schema.js.map +1 -0
- package/dist/schema/mode.schema.d.ts +130 -0
- package/dist/schema/mode.schema.d.ts.map +1 -0
- package/dist/schema/mode.schema.js +141 -0
- package/dist/schema/mode.schema.js.map +1 -0
- package/dist/schema/openwebrx.schema.d.ts +352 -0
- package/dist/schema/openwebrx.schema.d.ts.map +1 -0
- package/dist/schema/openwebrx.schema.js +139 -0
- package/dist/schema/openwebrx.schema.js.map +1 -0
- package/dist/schema/operator.schema.d.ts +883 -0
- package/dist/schema/operator.schema.d.ts.map +1 -0
- package/dist/schema/operator.schema.js +97 -0
- package/dist/schema/operator.schema.js.map +1 -0
- package/dist/schema/plugin.schema.d.ts +1579 -0
- package/dist/schema/plugin.schema.d.ts.map +1 -0
- package/dist/schema/plugin.schema.js +336 -0
- package/dist/schema/plugin.schema.js.map +1 -0
- package/dist/schema/process-monitor.schema.d.ts +282 -0
- package/dist/schema/process-monitor.schema.d.ts.map +1 -0
- package/dist/schema/process-monitor.schema.js +31 -0
- package/dist/schema/process-monitor.schema.js.map +1 -0
- package/dist/schema/pskreporter.schema.d.ts +185 -0
- package/dist/schema/pskreporter.schema.d.ts.map +1 -0
- package/dist/schema/pskreporter.schema.js +80 -0
- package/dist/schema/pskreporter.schema.js.map +1 -0
- package/dist/schema/qso.schema.d.ts +419 -0
- package/dist/schema/qso.schema.d.ts.map +1 -0
- package/dist/schema/qso.schema.js +137 -0
- package/dist/schema/qso.schema.js.map +1 -0
- package/dist/schema/radio-capability.schema.d.ts +625 -0
- package/dist/schema/radio-capability.schema.d.ts.map +1 -0
- package/dist/schema/radio-capability.schema.js +191 -0
- package/dist/schema/radio-capability.schema.js.map +1 -0
- package/dist/schema/radio-power-support.d.ts +45 -0
- package/dist/schema/radio-power-support.d.ts.map +1 -0
- package/dist/schema/radio-power-support.js +64 -0
- package/dist/schema/radio-power-support.js.map +1 -0
- package/dist/schema/radio-power.schema.d.ts +319 -0
- package/dist/schema/radio-power.schema.d.ts.map +1 -0
- package/dist/schema/radio-power.schema.js +87 -0
- package/dist/schema/radio-power.schema.js.map +1 -0
- package/dist/schema/radio-profile.schema.d.ts +2694 -0
- package/dist/schema/radio-profile.schema.d.ts.map +1 -0
- package/dist/schema/radio-profile.schema.js +71 -0
- package/dist/schema/radio-profile.schema.js.map +1 -0
- package/dist/schema/radio.schema.d.ts +1438 -0
- package/dist/schema/radio.schema.d.ts.map +1 -0
- package/dist/schema/radio.schema.js +314 -0
- package/dist/schema/radio.schema.js.map +1 -0
- package/dist/schema/realtime.schema.d.ts +1299 -0
- package/dist/schema/realtime.schema.d.ts.map +1 -0
- package/dist/schema/realtime.schema.js +184 -0
- package/dist/schema/realtime.schema.js.map +1 -0
- package/dist/schema/rigctld.schema.d.ts +151 -0
- package/dist/schema/rigctld.schema.d.ts.map +1 -0
- package/dist/schema/rigctld.schema.js +42 -0
- package/dist/schema/rigctld.schema.js.map +1 -0
- package/dist/schema/server-message-keys.d.ts +21 -0
- package/dist/schema/server-message-keys.d.ts.map +1 -0
- package/dist/schema/server-message-keys.js +22 -0
- package/dist/schema/server-message-keys.js.map +1 -0
- package/dist/schema/slot-info.schema.d.ts +696 -0
- package/dist/schema/slot-info.schema.d.ts.map +1 -0
- package/dist/schema/slot-info.schema.js +144 -0
- package/dist/schema/slot-info.schema.js.map +1 -0
- package/dist/schema/spectrum.schema.d.ts +716 -0
- package/dist/schema/spectrum.schema.d.ts.map +1 -0
- package/dist/schema/spectrum.schema.js +128 -0
- package/dist/schema/spectrum.schema.js.map +1 -0
- package/dist/schema/station-info.schema.d.ts +202 -0
- package/dist/schema/station-info.schema.d.ts.map +1 -0
- package/dist/schema/station-info.schema.js +32 -0
- package/dist/schema/station-info.schema.js.map +1 -0
- package/dist/schema/system.schema.d.ts +113 -0
- package/dist/schema/system.schema.d.ts.map +1 -0
- package/dist/schema/system.schema.js +95 -0
- package/dist/schema/system.schema.js.map +1 -0
- package/dist/schema/transmission.schema.d.ts +413 -0
- package/dist/schema/transmission.schema.d.ts.map +1 -0
- package/dist/schema/transmission.schema.js +78 -0
- package/dist/schema/transmission.schema.js.map +1 -0
- package/dist/schema/voice.schema.d.ts +38 -0
- package/dist/schema/voice.schema.d.ts.map +1 -0
- package/dist/schema/voice.schema.js +24 -0
- package/dist/schema/voice.schema.js.map +1 -0
- package/dist/schema/websocket.schema.d.ts +16916 -0
- package/dist/schema/websocket.schema.d.ts.map +1 -0
- package/dist/schema/websocket.schema.js +1050 -0
- package/dist/schema/websocket.schema.js.map +1 -0
- package/dist/utils/grid.d.ts +13 -0
- package/dist/utils/grid.d.ts.map +1 -0
- package/dist/utils/grid.js +71 -0
- package/dist/utils/grid.js.map +1 -0
- package/eslint.config.js +15 -0
- package/package.json +28 -0
- package/src/index.ts +152 -0
- package/src/schema/__tests__/plugin-runtime-log.schema.test.ts +90 -0
- package/src/schema/ability.ts +205 -0
- package/src/schema/api-response.schema.ts +187 -0
- package/src/schema/audio-sidecar.schema.ts +53 -0
- package/src/schema/audio.schema.ts +73 -0
- package/src/schema/auth.schema.ts +224 -0
- package/src/schema/cycle.schema.ts +25 -0
- package/src/schema/desktop-https.schema.ts +43 -0
- package/src/schema/ft8.schema.ts +362 -0
- package/src/schema/hello.schema.ts +7 -0
- package/src/schema/logbook.schema.ts +310 -0
- package/src/schema/mode.schema.ts +158 -0
- package/src/schema/openwebrx.schema.ts +160 -0
- package/src/schema/operator.schema.ts +112 -0
- package/src/schema/plugin.schema.ts +503 -0
- package/src/schema/process-monitor.schema.ts +41 -0
- package/src/schema/pskreporter.schema.ts +102 -0
- package/src/schema/qso.schema.ts +173 -0
- package/src/schema/radio-capability.schema.ts +244 -0
- package/src/schema/radio-power-support.ts +107 -0
- package/src/schema/radio-power.schema.ts +101 -0
- package/src/schema/radio-profile.schema.ts +91 -0
- package/src/schema/radio.schema.ts +385 -0
- package/src/schema/realtime.schema.ts +262 -0
- package/src/schema/rigctld.schema.ts +51 -0
- package/src/schema/server-message-keys.ts +26 -0
- package/src/schema/slot-info.schema.ts +162 -0
- package/src/schema/spectrum.schema.ts +166 -0
- package/src/schema/station-info.schema.ts +40 -0
- package/src/schema/system.schema.ts +121 -0
- package/src/schema/transmission.schema.ts +105 -0
- package/src/schema/voice.schema.ts +28 -0
- package/src/schema/websocket.schema.ts +1480 -0
- package/src/utils/grid.ts +94 -0
- package/test/mode-schema.test.ts +48 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Candidate-ranking policy used when choosing which station to answer first.
|
|
4
|
+
*
|
|
5
|
+
* - `balanced`: combine multiple heuristics without strongly favoring one.
|
|
6
|
+
* - `dxcc_first`: prioritize entities that advance DXCC goals.
|
|
7
|
+
* - `new_callsign_first`: prioritize callsigns not yet worked before.
|
|
8
|
+
*/
|
|
9
|
+
export declare const TargetSelectionPriorityModeSchema: z.ZodEnum<["balanced", "dxcc_first", "new_callsign_first"]>;
|
|
10
|
+
/**
|
|
11
|
+
* Current work status of a resolved DXCC entity in local logbook context.
|
|
12
|
+
*
|
|
13
|
+
* - `current`: active/current DXCC entity.
|
|
14
|
+
* - `deleted`: historically valid but deleted DXCC entity.
|
|
15
|
+
* - `none`: no DXCC entity could be associated.
|
|
16
|
+
* - `unknown`: resolution has not completed or confidence is insufficient.
|
|
17
|
+
*/
|
|
18
|
+
export declare const DxccStatusSchema: z.ZodEnum<["current", "deleted", "none", "unknown"]>;
|
|
19
|
+
export declare const DxccSourceSchema: z.ZodEnum<["resolver", "adif", "lotw", "manual_override"]>;
|
|
20
|
+
export declare const DxccConfidenceSchema: z.ZodEnum<["exception", "prefix", "heuristic", "manual", "unknown"]>;
|
|
21
|
+
export declare const SubdivisionConfidenceSchema: z.ZodEnum<["high", "low"]>;
|
|
22
|
+
export declare const OperatorConfigSchema: z.ZodObject<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
mode: z.ZodObject<{
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
slotMs: z.ZodNumber;
|
|
27
|
+
toleranceMs: z.ZodDefault<z.ZodNumber>;
|
|
28
|
+
windowTiming: z.ZodArray<z.ZodNumber, "many">;
|
|
29
|
+
transmitTiming: z.ZodNumber;
|
|
30
|
+
encodeAdvance: z.ZodDefault<z.ZodNumber>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
name: string;
|
|
33
|
+
slotMs: number;
|
|
34
|
+
toleranceMs: number;
|
|
35
|
+
windowTiming: number[];
|
|
36
|
+
transmitTiming: number;
|
|
37
|
+
encodeAdvance: number;
|
|
38
|
+
}, {
|
|
39
|
+
name: string;
|
|
40
|
+
slotMs: number;
|
|
41
|
+
windowTiming: number[];
|
|
42
|
+
transmitTiming: number;
|
|
43
|
+
toleranceMs?: number | undefined;
|
|
44
|
+
encodeAdvance?: number | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
myCallsign: z.ZodString;
|
|
47
|
+
myGrid: z.ZodString;
|
|
48
|
+
transmitCycles: z.ZodArray<z.ZodNumber, "many">;
|
|
49
|
+
autoReplyToCQ: z.ZodBoolean;
|
|
50
|
+
maxQSOTimeoutCycles: z.ZodNumber;
|
|
51
|
+
maxCallAttempts: z.ZodNumber;
|
|
52
|
+
frequency: z.ZodNumber;
|
|
53
|
+
autoResumeCQAfterFail: z.ZodDefault<z.ZodBoolean>;
|
|
54
|
+
autoResumeCQAfterSuccess: z.ZodDefault<z.ZodBoolean>;
|
|
55
|
+
replyToWorkedStations: z.ZodDefault<z.ZodBoolean>;
|
|
56
|
+
prioritizeNewCalls: z.ZodDefault<z.ZodBoolean>;
|
|
57
|
+
targetSelectionPriorityMode: z.ZodDefault<z.ZodEnum<["balanced", "dxcc_first", "new_callsign_first"]>>;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
id: string;
|
|
60
|
+
mode: {
|
|
61
|
+
name: string;
|
|
62
|
+
slotMs: number;
|
|
63
|
+
toleranceMs: number;
|
|
64
|
+
windowTiming: number[];
|
|
65
|
+
transmitTiming: number;
|
|
66
|
+
encodeAdvance: number;
|
|
67
|
+
};
|
|
68
|
+
myCallsign: string;
|
|
69
|
+
myGrid: string;
|
|
70
|
+
transmitCycles: number[];
|
|
71
|
+
autoReplyToCQ: boolean;
|
|
72
|
+
maxQSOTimeoutCycles: number;
|
|
73
|
+
maxCallAttempts: number;
|
|
74
|
+
frequency: number;
|
|
75
|
+
autoResumeCQAfterFail: boolean;
|
|
76
|
+
autoResumeCQAfterSuccess: boolean;
|
|
77
|
+
replyToWorkedStations: boolean;
|
|
78
|
+
prioritizeNewCalls: boolean;
|
|
79
|
+
targetSelectionPriorityMode: "balanced" | "dxcc_first" | "new_callsign_first";
|
|
80
|
+
}, {
|
|
81
|
+
id: string;
|
|
82
|
+
mode: {
|
|
83
|
+
name: string;
|
|
84
|
+
slotMs: number;
|
|
85
|
+
windowTiming: number[];
|
|
86
|
+
transmitTiming: number;
|
|
87
|
+
toleranceMs?: number | undefined;
|
|
88
|
+
encodeAdvance?: number | undefined;
|
|
89
|
+
};
|
|
90
|
+
myCallsign: string;
|
|
91
|
+
myGrid: string;
|
|
92
|
+
transmitCycles: number[];
|
|
93
|
+
autoReplyToCQ: boolean;
|
|
94
|
+
maxQSOTimeoutCycles: number;
|
|
95
|
+
maxCallAttempts: number;
|
|
96
|
+
frequency: number;
|
|
97
|
+
autoResumeCQAfterFail?: boolean | undefined;
|
|
98
|
+
autoResumeCQAfterSuccess?: boolean | undefined;
|
|
99
|
+
replyToWorkedStations?: boolean | undefined;
|
|
100
|
+
prioritizeNewCalls?: boolean | undefined;
|
|
101
|
+
targetSelectionPriorityMode?: "balanced" | "dxcc_first" | "new_callsign_first" | undefined;
|
|
102
|
+
}>;
|
|
103
|
+
export declare const QSOContextSchema: z.ZodObject<{
|
|
104
|
+
config: z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
mode: z.ZodObject<{
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
slotMs: z.ZodNumber;
|
|
109
|
+
toleranceMs: z.ZodDefault<z.ZodNumber>;
|
|
110
|
+
windowTiming: z.ZodArray<z.ZodNumber, "many">;
|
|
111
|
+
transmitTiming: z.ZodNumber;
|
|
112
|
+
encodeAdvance: z.ZodDefault<z.ZodNumber>;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
name: string;
|
|
115
|
+
slotMs: number;
|
|
116
|
+
toleranceMs: number;
|
|
117
|
+
windowTiming: number[];
|
|
118
|
+
transmitTiming: number;
|
|
119
|
+
encodeAdvance: number;
|
|
120
|
+
}, {
|
|
121
|
+
name: string;
|
|
122
|
+
slotMs: number;
|
|
123
|
+
windowTiming: number[];
|
|
124
|
+
transmitTiming: number;
|
|
125
|
+
toleranceMs?: number | undefined;
|
|
126
|
+
encodeAdvance?: number | undefined;
|
|
127
|
+
}>;
|
|
128
|
+
myCallsign: z.ZodString;
|
|
129
|
+
myGrid: z.ZodString;
|
|
130
|
+
transmitCycles: z.ZodArray<z.ZodNumber, "many">;
|
|
131
|
+
autoReplyToCQ: z.ZodBoolean;
|
|
132
|
+
maxQSOTimeoutCycles: z.ZodNumber;
|
|
133
|
+
maxCallAttempts: z.ZodNumber;
|
|
134
|
+
frequency: z.ZodNumber;
|
|
135
|
+
autoResumeCQAfterFail: z.ZodDefault<z.ZodBoolean>;
|
|
136
|
+
autoResumeCQAfterSuccess: z.ZodDefault<z.ZodBoolean>;
|
|
137
|
+
replyToWorkedStations: z.ZodDefault<z.ZodBoolean>;
|
|
138
|
+
prioritizeNewCalls: z.ZodDefault<z.ZodBoolean>;
|
|
139
|
+
targetSelectionPriorityMode: z.ZodDefault<z.ZodEnum<["balanced", "dxcc_first", "new_callsign_first"]>>;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
id: string;
|
|
142
|
+
mode: {
|
|
143
|
+
name: string;
|
|
144
|
+
slotMs: number;
|
|
145
|
+
toleranceMs: number;
|
|
146
|
+
windowTiming: number[];
|
|
147
|
+
transmitTiming: number;
|
|
148
|
+
encodeAdvance: number;
|
|
149
|
+
};
|
|
150
|
+
myCallsign: string;
|
|
151
|
+
myGrid: string;
|
|
152
|
+
transmitCycles: number[];
|
|
153
|
+
autoReplyToCQ: boolean;
|
|
154
|
+
maxQSOTimeoutCycles: number;
|
|
155
|
+
maxCallAttempts: number;
|
|
156
|
+
frequency: number;
|
|
157
|
+
autoResumeCQAfterFail: boolean;
|
|
158
|
+
autoResumeCQAfterSuccess: boolean;
|
|
159
|
+
replyToWorkedStations: boolean;
|
|
160
|
+
prioritizeNewCalls: boolean;
|
|
161
|
+
targetSelectionPriorityMode: "balanced" | "dxcc_first" | "new_callsign_first";
|
|
162
|
+
}, {
|
|
163
|
+
id: string;
|
|
164
|
+
mode: {
|
|
165
|
+
name: string;
|
|
166
|
+
slotMs: number;
|
|
167
|
+
windowTiming: number[];
|
|
168
|
+
transmitTiming: number;
|
|
169
|
+
toleranceMs?: number | undefined;
|
|
170
|
+
encodeAdvance?: number | undefined;
|
|
171
|
+
};
|
|
172
|
+
myCallsign: string;
|
|
173
|
+
myGrid: string;
|
|
174
|
+
transmitCycles: number[];
|
|
175
|
+
autoReplyToCQ: boolean;
|
|
176
|
+
maxQSOTimeoutCycles: number;
|
|
177
|
+
maxCallAttempts: number;
|
|
178
|
+
frequency: number;
|
|
179
|
+
autoResumeCQAfterFail?: boolean | undefined;
|
|
180
|
+
autoResumeCQAfterSuccess?: boolean | undefined;
|
|
181
|
+
replyToWorkedStations?: boolean | undefined;
|
|
182
|
+
prioritizeNewCalls?: boolean | undefined;
|
|
183
|
+
targetSelectionPriorityMode?: "balanced" | "dxcc_first" | "new_callsign_first" | undefined;
|
|
184
|
+
}>;
|
|
185
|
+
targetCallsign: z.ZodOptional<z.ZodString>;
|
|
186
|
+
targetGrid: z.ZodOptional<z.ZodString>;
|
|
187
|
+
reportSent: z.ZodOptional<z.ZodNumber>;
|
|
188
|
+
reportReceived: z.ZodOptional<z.ZodNumber>;
|
|
189
|
+
actualFrequency: z.ZodOptional<z.ZodNumber>;
|
|
190
|
+
}, "strip", z.ZodTypeAny, {
|
|
191
|
+
config: {
|
|
192
|
+
id: string;
|
|
193
|
+
mode: {
|
|
194
|
+
name: string;
|
|
195
|
+
slotMs: number;
|
|
196
|
+
toleranceMs: number;
|
|
197
|
+
windowTiming: number[];
|
|
198
|
+
transmitTiming: number;
|
|
199
|
+
encodeAdvance: number;
|
|
200
|
+
};
|
|
201
|
+
myCallsign: string;
|
|
202
|
+
myGrid: string;
|
|
203
|
+
transmitCycles: number[];
|
|
204
|
+
autoReplyToCQ: boolean;
|
|
205
|
+
maxQSOTimeoutCycles: number;
|
|
206
|
+
maxCallAttempts: number;
|
|
207
|
+
frequency: number;
|
|
208
|
+
autoResumeCQAfterFail: boolean;
|
|
209
|
+
autoResumeCQAfterSuccess: boolean;
|
|
210
|
+
replyToWorkedStations: boolean;
|
|
211
|
+
prioritizeNewCalls: boolean;
|
|
212
|
+
targetSelectionPriorityMode: "balanced" | "dxcc_first" | "new_callsign_first";
|
|
213
|
+
};
|
|
214
|
+
targetCallsign?: string | undefined;
|
|
215
|
+
targetGrid?: string | undefined;
|
|
216
|
+
reportSent?: number | undefined;
|
|
217
|
+
reportReceived?: number | undefined;
|
|
218
|
+
actualFrequency?: number | undefined;
|
|
219
|
+
}, {
|
|
220
|
+
config: {
|
|
221
|
+
id: string;
|
|
222
|
+
mode: {
|
|
223
|
+
name: string;
|
|
224
|
+
slotMs: number;
|
|
225
|
+
windowTiming: number[];
|
|
226
|
+
transmitTiming: number;
|
|
227
|
+
toleranceMs?: number | undefined;
|
|
228
|
+
encodeAdvance?: number | undefined;
|
|
229
|
+
};
|
|
230
|
+
myCallsign: string;
|
|
231
|
+
myGrid: string;
|
|
232
|
+
transmitCycles: number[];
|
|
233
|
+
autoReplyToCQ: boolean;
|
|
234
|
+
maxQSOTimeoutCycles: number;
|
|
235
|
+
maxCallAttempts: number;
|
|
236
|
+
frequency: number;
|
|
237
|
+
autoResumeCQAfterFail?: boolean | undefined;
|
|
238
|
+
autoResumeCQAfterSuccess?: boolean | undefined;
|
|
239
|
+
replyToWorkedStations?: boolean | undefined;
|
|
240
|
+
prioritizeNewCalls?: boolean | undefined;
|
|
241
|
+
targetSelectionPriorityMode?: "balanced" | "dxcc_first" | "new_callsign_first" | undefined;
|
|
242
|
+
};
|
|
243
|
+
targetCallsign?: string | undefined;
|
|
244
|
+
targetGrid?: string | undefined;
|
|
245
|
+
reportSent?: number | undefined;
|
|
246
|
+
reportReceived?: number | undefined;
|
|
247
|
+
actualFrequency?: number | undefined;
|
|
248
|
+
}>;
|
|
249
|
+
export declare const QslSentStatusSchema: z.ZodOptional<z.ZodEnum<["Y", "N", "R", "Q", "I"]>>;
|
|
250
|
+
export declare const QslReceivedStatusSchema: z.ZodOptional<z.ZodEnum<["Y", "N", "R", "I", "V"]>>;
|
|
251
|
+
export declare const QslSimpleStatusSchema: z.ZodOptional<z.ZodEnum<["Y", "N"]>>;
|
|
252
|
+
/**
|
|
253
|
+
* Canonical persisted QSO record used by TX-5DR logbooks and plugin hooks.
|
|
254
|
+
*
|
|
255
|
+
* The schema intentionally spans multiple layers of information:
|
|
256
|
+
* - core contact details such as callsign, grid, frequency and timestamps;
|
|
257
|
+
* - message-level exchange details such as reports and raw message history;
|
|
258
|
+
* - DXCC enrichment and review metadata;
|
|
259
|
+
* - LoTW / QRZ confirmation state;
|
|
260
|
+
* - station-location metadata used when exporting ADIF-like records.
|
|
261
|
+
*/
|
|
262
|
+
export declare const QSORecordSchema: z.ZodObject<{
|
|
263
|
+
id: z.ZodString;
|
|
264
|
+
callsign: z.ZodString;
|
|
265
|
+
grid: z.ZodOptional<z.ZodString>;
|
|
266
|
+
frequency: z.ZodNumber;
|
|
267
|
+
mode: z.ZodString;
|
|
268
|
+
submode: z.ZodOptional<z.ZodString>;
|
|
269
|
+
startTime: z.ZodNumber;
|
|
270
|
+
endTime: z.ZodOptional<z.ZodNumber>;
|
|
271
|
+
reportSent: z.ZodOptional<z.ZodString>;
|
|
272
|
+
reportReceived: z.ZodOptional<z.ZodString>;
|
|
273
|
+
messageHistory: z.ZodArray<z.ZodString, "many">;
|
|
274
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
275
|
+
myCallsign: z.ZodOptional<z.ZodString>;
|
|
276
|
+
myGrid: z.ZodOptional<z.ZodString>;
|
|
277
|
+
qth: z.ZodOptional<z.ZodString>;
|
|
278
|
+
dxccId: z.ZodOptional<z.ZodNumber>;
|
|
279
|
+
dxccEntity: z.ZodOptional<z.ZodString>;
|
|
280
|
+
dxccStatus: z.ZodOptional<z.ZodEnum<["current", "deleted", "none", "unknown"]>>;
|
|
281
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
282
|
+
cqZone: z.ZodOptional<z.ZodNumber>;
|
|
283
|
+
ituZone: z.ZodOptional<z.ZodNumber>;
|
|
284
|
+
dxccSource: z.ZodOptional<z.ZodEnum<["resolver", "adif", "lotw", "manual_override"]>>;
|
|
285
|
+
dxccConfidence: z.ZodOptional<z.ZodEnum<["exception", "prefix", "heuristic", "manual", "unknown"]>>;
|
|
286
|
+
dxccResolvedAt: z.ZodOptional<z.ZodNumber>;
|
|
287
|
+
dxccResolverVersion: z.ZodOptional<z.ZodString>;
|
|
288
|
+
dxccNeedsReview: z.ZodOptional<z.ZodBoolean>;
|
|
289
|
+
stationLocationId: z.ZodOptional<z.ZodString>;
|
|
290
|
+
myDxccId: z.ZodOptional<z.ZodNumber>;
|
|
291
|
+
myCqZone: z.ZodOptional<z.ZodNumber>;
|
|
292
|
+
myItuZone: z.ZodOptional<z.ZodNumber>;
|
|
293
|
+
myState: z.ZodOptional<z.ZodString>;
|
|
294
|
+
myCounty: z.ZodOptional<z.ZodString>;
|
|
295
|
+
myIota: z.ZodOptional<z.ZodString>;
|
|
296
|
+
lotwQslSent: z.ZodOptional<z.ZodEnum<["Y", "N", "R", "Q", "I"]>>;
|
|
297
|
+
lotwQslReceived: z.ZodOptional<z.ZodEnum<["Y", "N", "R", "I", "V"]>>;
|
|
298
|
+
lotwQslSentDate: z.ZodOptional<z.ZodNumber>;
|
|
299
|
+
lotwQslReceivedDate: z.ZodOptional<z.ZodNumber>;
|
|
300
|
+
qrzQslSent: z.ZodOptional<z.ZodEnum<["Y", "N"]>>;
|
|
301
|
+
qrzQslReceived: z.ZodOptional<z.ZodEnum<["Y", "N"]>>;
|
|
302
|
+
qrzQslSentDate: z.ZodOptional<z.ZodNumber>;
|
|
303
|
+
qrzQslReceivedDate: z.ZodOptional<z.ZodNumber>;
|
|
304
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
305
|
+
}, "strip", z.ZodTypeAny, {
|
|
306
|
+
id: string;
|
|
307
|
+
mode: string;
|
|
308
|
+
frequency: number;
|
|
309
|
+
callsign: string;
|
|
310
|
+
startTime: number;
|
|
311
|
+
messageHistory: string[];
|
|
312
|
+
myCallsign?: string | undefined;
|
|
313
|
+
myGrid?: string | undefined;
|
|
314
|
+
reportSent?: string | undefined;
|
|
315
|
+
reportReceived?: string | undefined;
|
|
316
|
+
grid?: string | undefined;
|
|
317
|
+
submode?: string | undefined;
|
|
318
|
+
endTime?: number | undefined;
|
|
319
|
+
comment?: string | undefined;
|
|
320
|
+
qth?: string | undefined;
|
|
321
|
+
dxccId?: number | undefined;
|
|
322
|
+
dxccEntity?: string | undefined;
|
|
323
|
+
dxccStatus?: "unknown" | "current" | "deleted" | "none" | undefined;
|
|
324
|
+
countryCode?: string | undefined;
|
|
325
|
+
cqZone?: number | undefined;
|
|
326
|
+
ituZone?: number | undefined;
|
|
327
|
+
dxccSource?: "resolver" | "adif" | "lotw" | "manual_override" | undefined;
|
|
328
|
+
dxccConfidence?: "unknown" | "exception" | "prefix" | "heuristic" | "manual" | undefined;
|
|
329
|
+
dxccResolvedAt?: number | undefined;
|
|
330
|
+
dxccResolverVersion?: string | undefined;
|
|
331
|
+
dxccNeedsReview?: boolean | undefined;
|
|
332
|
+
stationLocationId?: string | undefined;
|
|
333
|
+
myDxccId?: number | undefined;
|
|
334
|
+
myCqZone?: number | undefined;
|
|
335
|
+
myItuZone?: number | undefined;
|
|
336
|
+
myState?: string | undefined;
|
|
337
|
+
myCounty?: string | undefined;
|
|
338
|
+
myIota?: string | undefined;
|
|
339
|
+
lotwQslSent?: "Y" | "N" | "R" | "Q" | "I" | undefined;
|
|
340
|
+
lotwQslReceived?: "Y" | "N" | "R" | "I" | "V" | undefined;
|
|
341
|
+
lotwQslSentDate?: number | undefined;
|
|
342
|
+
lotwQslReceivedDate?: number | undefined;
|
|
343
|
+
qrzQslSent?: "Y" | "N" | undefined;
|
|
344
|
+
qrzQslReceived?: "Y" | "N" | undefined;
|
|
345
|
+
qrzQslSentDate?: number | undefined;
|
|
346
|
+
qrzQslReceivedDate?: number | undefined;
|
|
347
|
+
notes?: string | undefined;
|
|
348
|
+
}, {
|
|
349
|
+
id: string;
|
|
350
|
+
mode: string;
|
|
351
|
+
frequency: number;
|
|
352
|
+
callsign: string;
|
|
353
|
+
startTime: number;
|
|
354
|
+
messageHistory: string[];
|
|
355
|
+
myCallsign?: string | undefined;
|
|
356
|
+
myGrid?: string | undefined;
|
|
357
|
+
reportSent?: string | undefined;
|
|
358
|
+
reportReceived?: string | undefined;
|
|
359
|
+
grid?: string | undefined;
|
|
360
|
+
submode?: string | undefined;
|
|
361
|
+
endTime?: number | undefined;
|
|
362
|
+
comment?: string | undefined;
|
|
363
|
+
qth?: string | undefined;
|
|
364
|
+
dxccId?: number | undefined;
|
|
365
|
+
dxccEntity?: string | undefined;
|
|
366
|
+
dxccStatus?: "unknown" | "current" | "deleted" | "none" | undefined;
|
|
367
|
+
countryCode?: string | undefined;
|
|
368
|
+
cqZone?: number | undefined;
|
|
369
|
+
ituZone?: number | undefined;
|
|
370
|
+
dxccSource?: "resolver" | "adif" | "lotw" | "manual_override" | undefined;
|
|
371
|
+
dxccConfidence?: "unknown" | "exception" | "prefix" | "heuristic" | "manual" | undefined;
|
|
372
|
+
dxccResolvedAt?: number | undefined;
|
|
373
|
+
dxccResolverVersion?: string | undefined;
|
|
374
|
+
dxccNeedsReview?: boolean | undefined;
|
|
375
|
+
stationLocationId?: string | undefined;
|
|
376
|
+
myDxccId?: number | undefined;
|
|
377
|
+
myCqZone?: number | undefined;
|
|
378
|
+
myItuZone?: number | undefined;
|
|
379
|
+
myState?: string | undefined;
|
|
380
|
+
myCounty?: string | undefined;
|
|
381
|
+
myIota?: string | undefined;
|
|
382
|
+
lotwQslSent?: "Y" | "N" | "R" | "Q" | "I" | undefined;
|
|
383
|
+
lotwQslReceived?: "Y" | "N" | "R" | "I" | "V" | undefined;
|
|
384
|
+
lotwQslSentDate?: number | undefined;
|
|
385
|
+
lotwQslReceivedDate?: number | undefined;
|
|
386
|
+
qrzQslSent?: "Y" | "N" | undefined;
|
|
387
|
+
qrzQslReceived?: "Y" | "N" | undefined;
|
|
388
|
+
qrzQslSentDate?: number | undefined;
|
|
389
|
+
qrzQslReceivedDate?: number | undefined;
|
|
390
|
+
notes?: string | undefined;
|
|
391
|
+
}>;
|
|
392
|
+
export declare const StrategiesResultSchema: z.ZodObject<{
|
|
393
|
+
stop: z.ZodOptional<z.ZodBoolean>;
|
|
394
|
+
}, "strip", z.ZodTypeAny, {
|
|
395
|
+
stop?: boolean | undefined;
|
|
396
|
+
}, {
|
|
397
|
+
stop?: boolean | undefined;
|
|
398
|
+
}>;
|
|
399
|
+
export type OperatorConfig = z.infer<typeof OperatorConfigSchema>;
|
|
400
|
+
/**
|
|
401
|
+
* Candidate-ranking policy used when choosing which station to answer first.
|
|
402
|
+
*/
|
|
403
|
+
export type TargetSelectionPriorityMode = z.infer<typeof TargetSelectionPriorityModeSchema>;
|
|
404
|
+
/**
|
|
405
|
+
* Current work status of a resolved DXCC entity in local logbook context.
|
|
406
|
+
*/
|
|
407
|
+
export type DxccStatus = z.infer<typeof DxccStatusSchema>;
|
|
408
|
+
export type DxccSource = z.infer<typeof DxccSourceSchema>;
|
|
409
|
+
export type DxccConfidence = z.infer<typeof DxccConfidenceSchema>;
|
|
410
|
+
export type QSOContext = z.infer<typeof QSOContextSchema>;
|
|
411
|
+
/**
|
|
412
|
+
* Canonical persisted QSO record used by TX-5DR logbooks and plugin hooks.
|
|
413
|
+
*
|
|
414
|
+
* Plugin authors will most commonly encounter this in completion hooks and
|
|
415
|
+
* logbook queries.
|
|
416
|
+
*/
|
|
417
|
+
export type QSORecord = z.infer<typeof QSORecordSchema>;
|
|
418
|
+
export type StrategiesResult = z.infer<typeof StrategiesResultSchema>;
|
|
419
|
+
//# sourceMappingURL=qso.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qso.schema.d.ts","sourceRoot":"","sources":["../../src/schema/qso.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC,6DAI5C,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,sDAK3B,CAAC;AAEH,eAAO,MAAM,gBAAgB,4DAK3B,CAAC;AAEH,eAAO,MAAM,oBAAoB,sEAM/B,CAAC;AAEH,eAAO,MAAM,2BAA2B,4BAGtC,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe/B,C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B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ModeDescriptorSchema } from './mode.schema.js';
|
|
3
|
+
/**
|
|
4
|
+
* Candidate-ranking policy used when choosing which station to answer first.
|
|
5
|
+
*
|
|
6
|
+
* - `balanced`: combine multiple heuristics without strongly favoring one.
|
|
7
|
+
* - `dxcc_first`: prioritize entities that advance DXCC goals.
|
|
8
|
+
* - `new_callsign_first`: prioritize callsigns not yet worked before.
|
|
9
|
+
*/
|
|
10
|
+
export const TargetSelectionPriorityModeSchema = z.enum([
|
|
11
|
+
'balanced',
|
|
12
|
+
'dxcc_first',
|
|
13
|
+
'new_callsign_first',
|
|
14
|
+
]);
|
|
15
|
+
/**
|
|
16
|
+
* Current work status of a resolved DXCC entity in local logbook context.
|
|
17
|
+
*
|
|
18
|
+
* - `current`: active/current DXCC entity.
|
|
19
|
+
* - `deleted`: historically valid but deleted DXCC entity.
|
|
20
|
+
* - `none`: no DXCC entity could be associated.
|
|
21
|
+
* - `unknown`: resolution has not completed or confidence is insufficient.
|
|
22
|
+
*/
|
|
23
|
+
export const DxccStatusSchema = z.enum([
|
|
24
|
+
'current',
|
|
25
|
+
'deleted',
|
|
26
|
+
'none',
|
|
27
|
+
'unknown',
|
|
28
|
+
]);
|
|
29
|
+
export const DxccSourceSchema = z.enum([
|
|
30
|
+
'resolver',
|
|
31
|
+
'adif',
|
|
32
|
+
'lotw',
|
|
33
|
+
'manual_override',
|
|
34
|
+
]);
|
|
35
|
+
export const DxccConfidenceSchema = z.enum([
|
|
36
|
+
'exception',
|
|
37
|
+
'prefix',
|
|
38
|
+
'heuristic',
|
|
39
|
+
'manual',
|
|
40
|
+
'unknown',
|
|
41
|
+
]);
|
|
42
|
+
export const SubdivisionConfidenceSchema = z.enum([
|
|
43
|
+
'high',
|
|
44
|
+
'low',
|
|
45
|
+
]);
|
|
46
|
+
// 操作配置
|
|
47
|
+
export const OperatorConfigSchema = z.object({
|
|
48
|
+
id: z.string(),
|
|
49
|
+
mode: ModeDescriptorSchema,
|
|
50
|
+
myCallsign: z.string(),
|
|
51
|
+
myGrid: z.string(),
|
|
52
|
+
transmitCycles: z.array(z.number()),
|
|
53
|
+
autoReplyToCQ: z.boolean(),
|
|
54
|
+
maxQSOTimeoutCycles: z.number(),
|
|
55
|
+
maxCallAttempts: z.number(),
|
|
56
|
+
frequency: z.number(),
|
|
57
|
+
autoResumeCQAfterFail: z.boolean().default(false),
|
|
58
|
+
autoResumeCQAfterSuccess: z.boolean().default(false),
|
|
59
|
+
replyToWorkedStations: z.boolean().default(false),
|
|
60
|
+
prioritizeNewCalls: z.boolean().default(true),
|
|
61
|
+
targetSelectionPriorityMode: TargetSelectionPriorityModeSchema.default('dxcc_first'),
|
|
62
|
+
});
|
|
63
|
+
// QSO状态机上下文
|
|
64
|
+
export const QSOContextSchema = z.object({
|
|
65
|
+
config: OperatorConfigSchema,
|
|
66
|
+
targetCallsign: z.string().optional(),
|
|
67
|
+
targetGrid: z.string().optional(),
|
|
68
|
+
reportSent: z.number().optional(),
|
|
69
|
+
reportReceived: z.number().optional(),
|
|
70
|
+
actualFrequency: z.number().optional(), // 实际通联频率 (基础频率 + 偏移频率)
|
|
71
|
+
});
|
|
72
|
+
// QSL 确认状态枚举(参考 ADIF 3.1.4 规范)
|
|
73
|
+
export const QslSentStatusSchema = z.enum(['Y', 'N', 'R', 'Q', 'I']).optional(); // Y=yes, N=no, R=requested, Q=queued, I=invalid
|
|
74
|
+
export const QslReceivedStatusSchema = z.enum(['Y', 'N', 'R', 'I', 'V']).optional(); // Y=yes, V=validated
|
|
75
|
+
export const QslSimpleStatusSchema = z.enum(['Y', 'N']).optional();
|
|
76
|
+
/**
|
|
77
|
+
* Canonical persisted QSO record used by TX-5DR logbooks and plugin hooks.
|
|
78
|
+
*
|
|
79
|
+
* The schema intentionally spans multiple layers of information:
|
|
80
|
+
* - core contact details such as callsign, grid, frequency and timestamps;
|
|
81
|
+
* - message-level exchange details such as reports and raw message history;
|
|
82
|
+
* - DXCC enrichment and review metadata;
|
|
83
|
+
* - LoTW / QRZ confirmation state;
|
|
84
|
+
* - station-location metadata used when exporting ADIF-like records.
|
|
85
|
+
*/
|
|
86
|
+
export const QSORecordSchema = z.object({
|
|
87
|
+
id: z.string(),
|
|
88
|
+
callsign: z.string(), // 对方呼号
|
|
89
|
+
grid: z.string().optional(), // 对方网格定位
|
|
90
|
+
frequency: z.number(), // 频率
|
|
91
|
+
mode: z.string(), // 模式(FT8)
|
|
92
|
+
submode: z.string().optional(), // ADIF 子模式(如 FT4)
|
|
93
|
+
startTime: z.number(), // 开始时间
|
|
94
|
+
endTime: z.number().optional(), // 结束时间
|
|
95
|
+
reportSent: z.string().optional(), // 发送的信号报告
|
|
96
|
+
reportReceived: z.string().optional(), // 接收的信号报告
|
|
97
|
+
messageHistory: z.array(z.string()), // 内部消息历史(FT8 等数字模式)
|
|
98
|
+
comment: z.string().optional(), // 标准 ADIF COMMENT 字段
|
|
99
|
+
myCallsign: z.string().optional(), // 我的呼号(操作员呼号)
|
|
100
|
+
myGrid: z.string().optional(), // 我的网格定位(操作员网格)
|
|
101
|
+
qth: z.string().optional(), // 对方 QTH(地点,语音通联常用)
|
|
102
|
+
dxccId: z.number().int().positive().optional(),
|
|
103
|
+
dxccEntity: z.string().optional(),
|
|
104
|
+
dxccStatus: DxccStatusSchema.optional(),
|
|
105
|
+
countryCode: z.string().optional(),
|
|
106
|
+
cqZone: z.number().int().positive().optional(),
|
|
107
|
+
ituZone: z.number().int().positive().optional(),
|
|
108
|
+
dxccSource: DxccSourceSchema.optional(),
|
|
109
|
+
dxccConfidence: DxccConfidenceSchema.optional(),
|
|
110
|
+
dxccResolvedAt: z.number().optional(),
|
|
111
|
+
dxccResolverVersion: z.string().optional(),
|
|
112
|
+
dxccNeedsReview: z.boolean().optional(),
|
|
113
|
+
stationLocationId: z.string().optional(),
|
|
114
|
+
myDxccId: z.number().int().positive().optional(),
|
|
115
|
+
myCqZone: z.number().int().positive().optional(),
|
|
116
|
+
myItuZone: z.number().int().positive().optional(),
|
|
117
|
+
myState: z.string().optional(),
|
|
118
|
+
myCounty: z.string().optional(),
|
|
119
|
+
myIota: z.string().optional(),
|
|
120
|
+
// LoTW QSL 确认状态
|
|
121
|
+
lotwQslSent: QslSentStatusSchema,
|
|
122
|
+
lotwQslReceived: QslReceivedStatusSchema,
|
|
123
|
+
lotwQslSentDate: z.number().optional(), // 发送日期 (timestamp)
|
|
124
|
+
lotwQslReceivedDate: z.number().optional(), // 确认日期 (timestamp)
|
|
125
|
+
// QRZ QSL 确认状态
|
|
126
|
+
qrzQslSent: QslSimpleStatusSchema,
|
|
127
|
+
qrzQslReceived: QslSimpleStatusSchema,
|
|
128
|
+
qrzQslSentDate: z.number().optional(),
|
|
129
|
+
qrzQslReceivedDate: z.number().optional(),
|
|
130
|
+
// 附注(对应 ADIF NOTES 字段)
|
|
131
|
+
notes: z.string().optional(),
|
|
132
|
+
});
|
|
133
|
+
// 策略执行结果
|
|
134
|
+
export const StrategiesResultSchema = z.object({
|
|
135
|
+
stop: z.boolean().optional(),
|
|
136
|
+
});
|
|
137
|
+
//# sourceMappingURL=qso.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qso.schema.js","sourceRoot":"","sources":["../../src/schema/qso.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,IAAI,CAAC;IACtD,UAAU;IACV,YAAY;IACZ,oBAAoB;CACrB,CAAC,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC;IACrC,SAAS;IACT,S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