@tx5dr/contracts 1.7.0 → 1.7.2
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.d.ts +2 -0
- package/dist/schema/__tests__/audio.schema.test.d.ts.map +1 -0
- package/dist/schema/__tests__/audio.schema.test.js +126 -0
- package/dist/schema/__tests__/audio.schema.test.js.map +1 -0
- package/dist/schema/__tests__/plugin-runtime-log.schema.test.js +13 -1
- package/dist/schema/__tests__/plugin-runtime-log.schema.test.js.map +1 -1
- package/dist/schema/api-response.schema.d.ts +30 -30
- package/dist/schema/audio.schema.d.ts +1292 -0
- package/dist/schema/audio.schema.d.ts.map +1 -1
- package/dist/schema/audio.schema.js +33 -0
- package/dist/schema/audio.schema.js.map +1 -1
- package/dist/schema/cpu-profile.schema.d.ts +4 -4
- package/dist/schema/ft8.schema.d.ts +4 -4
- package/dist/schema/logbook.schema.d.ts +22 -0
- package/dist/schema/logbook.schema.d.ts.map +1 -1
- package/dist/schema/logbook.schema.js +8 -0
- package/dist/schema/logbook.schema.js.map +1 -1
- package/dist/schema/plugin.schema.d.ts +99 -22
- package/dist/schema/plugin.schema.d.ts.map +1 -1
- package/dist/schema/plugin.schema.js +5 -1
- package/dist/schema/plugin.schema.js.map +1 -1
- package/dist/schema/qso.schema.d.ts +2 -2
- package/dist/schema/radio-power.schema.d.ts +6 -6
- package/dist/schema/radio-profile.schema.d.ts +280 -108
- package/dist/schema/radio-profile.schema.d.ts.map +1 -1
- package/dist/schema/radio.schema.d.ts +18 -18
- package/dist/schema/realtime.schema.d.ts +22 -22
- package/dist/schema/slot-info.schema.d.ts +18 -18
- package/dist/schema/spectrum.schema.d.ts +6 -6
- package/dist/schema/system.schema.d.ts +11 -0
- package/dist/schema/system.schema.d.ts.map +1 -1
- package/dist/schema/system.schema.js +4 -0
- package/dist/schema/system.schema.js.map +1 -1
- package/dist/schema/transmission.schema.d.ts +8 -8
- package/dist/schema/update.schema.d.ts +62 -0
- package/dist/schema/update.schema.d.ts.map +1 -0
- package/dist/schema/update.schema.js +28 -0
- package/dist/schema/update.schema.js.map +1 -0
- package/dist/schema/websocket.schema.d.ts +468 -148
- package/dist/schema/websocket.schema.d.ts.map +1 -1
- package/dist/schema/websocket.schema.js +38 -0
- package/dist/schema/websocket.schema.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/schema/__tests__/audio.schema.test.ts +142 -0
- package/src/schema/__tests__/plugin-runtime-log.schema.test.ts +13 -1
- package/src/schema/audio.schema.ts +44 -1
- package/src/schema/logbook.schema.ts +8 -0
- package/src/schema/plugin.schema.ts +7 -1
- package/src/schema/system.schema.ts +6 -0
- package/src/schema/update.schema.ts +33 -0
- package/src/schema/websocket.schema.ts +52 -0
|
@@ -60,7 +60,7 @@ export declare const CallRequestSchema: z.ZodObject<{
|
|
|
60
60
|
grid?: string | undefined;
|
|
61
61
|
dxccId?: number | undefined;
|
|
62
62
|
dxccEntity?: string | undefined;
|
|
63
|
-
dxccStatus?: "unknown" | "
|
|
63
|
+
dxccStatus?: "unknown" | "none" | "current" | "deleted" | undefined;
|
|
64
64
|
isNewCallsign?: boolean | undefined;
|
|
65
65
|
isNewDxccEntity?: boolean | undefined;
|
|
66
66
|
isNewBandDxccEntity?: boolean | undefined;
|
|
@@ -74,7 +74,7 @@ export declare const CallRequestSchema: z.ZodObject<{
|
|
|
74
74
|
grid?: string | undefined;
|
|
75
75
|
dxccId?: number | undefined;
|
|
76
76
|
dxccEntity?: string | undefined;
|
|
77
|
-
dxccStatus?: "unknown" | "
|
|
77
|
+
dxccStatus?: "unknown" | "none" | "current" | "deleted" | undefined;
|
|
78
78
|
isNewCallsign?: boolean | undefined;
|
|
79
79
|
isNewDxccEntity?: boolean | undefined;
|
|
80
80
|
isNewBandDxccEntity?: boolean | undefined;
|
|
@@ -97,7 +97,7 @@ export declare const CallRequestSchema: z.ZodObject<{
|
|
|
97
97
|
grid?: string | undefined;
|
|
98
98
|
dxccId?: number | undefined;
|
|
99
99
|
dxccEntity?: string | undefined;
|
|
100
|
-
dxccStatus?: "unknown" | "
|
|
100
|
+
dxccStatus?: "unknown" | "none" | "current" | "deleted" | undefined;
|
|
101
101
|
isNewCallsign?: boolean | undefined;
|
|
102
102
|
isNewDxccEntity?: boolean | undefined;
|
|
103
103
|
isNewBandDxccEntity?: boolean | undefined;
|
|
@@ -119,7 +119,7 @@ export declare const CallRequestSchema: z.ZodObject<{
|
|
|
119
119
|
grid?: string | undefined;
|
|
120
120
|
dxccId?: number | undefined;
|
|
121
121
|
dxccEntity?: string | undefined;
|
|
122
|
-
dxccStatus?: "unknown" | "
|
|
122
|
+
dxccStatus?: "unknown" | "none" | "current" | "deleted" | undefined;
|
|
123
123
|
isNewCallsign?: boolean | undefined;
|
|
124
124
|
isNewDxccEntity?: boolean | undefined;
|
|
125
125
|
isNewBandDxccEntity?: boolean | undefined;
|
|
@@ -168,7 +168,7 @@ export declare const CallRequestSchema: z.ZodObject<{
|
|
|
168
168
|
grid?: string | undefined;
|
|
169
169
|
dxccId?: number | undefined;
|
|
170
170
|
dxccEntity?: string | undefined;
|
|
171
|
-
dxccStatus?: "unknown" | "
|
|
171
|
+
dxccStatus?: "unknown" | "none" | "current" | "deleted" | undefined;
|
|
172
172
|
isNewCallsign?: boolean | undefined;
|
|
173
173
|
isNewDxccEntity?: boolean | undefined;
|
|
174
174
|
isNewBandDxccEntity?: boolean | undefined;
|
|
@@ -201,7 +201,7 @@ export declare const CallRequestSchema: z.ZodObject<{
|
|
|
201
201
|
grid?: string | undefined;
|
|
202
202
|
dxccId?: number | undefined;
|
|
203
203
|
dxccEntity?: string | undefined;
|
|
204
|
-
dxccStatus?: "unknown" | "
|
|
204
|
+
dxccStatus?: "unknown" | "none" | "current" | "deleted" | undefined;
|
|
205
205
|
isNewCallsign?: boolean | undefined;
|
|
206
206
|
isNewDxccEntity?: boolean | undefined;
|
|
207
207
|
isNewBandDxccEntity?: boolean | undefined;
|
|
@@ -237,7 +237,7 @@ export declare const CallRequestSchema: z.ZodObject<{
|
|
|
237
237
|
grid?: string | undefined;
|
|
238
238
|
dxccId?: number | undefined;
|
|
239
239
|
dxccEntity?: string | undefined;
|
|
240
|
-
dxccStatus?: "unknown" | "
|
|
240
|
+
dxccStatus?: "unknown" | "none" | "current" | "deleted" | undefined;
|
|
241
241
|
isNewCallsign?: boolean | undefined;
|
|
242
242
|
isNewDxccEntity?: boolean | undefined;
|
|
243
243
|
isNewBandDxccEntity?: boolean | undefined;
|
|
@@ -273,7 +273,7 @@ export declare const CallRequestSchema: z.ZodObject<{
|
|
|
273
273
|
grid?: string | undefined;
|
|
274
274
|
dxccId?: number | undefined;
|
|
275
275
|
dxccEntity?: string | undefined;
|
|
276
|
-
dxccStatus?: "unknown" | "
|
|
276
|
+
dxccStatus?: "unknown" | "none" | "current" | "deleted" | undefined;
|
|
277
277
|
isNewCallsign?: boolean | undefined;
|
|
278
278
|
isNewDxccEntity?: boolean | undefined;
|
|
279
279
|
isNewBandDxccEntity?: boolean | undefined;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SystemUpdateTargetSchema: z.ZodEnum<["electron-app", "linux-server", "docker"]>;
|
|
3
|
+
export type SystemUpdateTarget = z.infer<typeof SystemUpdateTargetSchema>;
|
|
4
|
+
export declare const SystemUpdateChannelSchema: z.ZodEnum<["release", "nightly"]>;
|
|
5
|
+
export type SystemUpdateChannel = z.infer<typeof SystemUpdateChannelSchema>;
|
|
6
|
+
export declare const SystemUpdateStatusSchema: z.ZodObject<{
|
|
7
|
+
target: z.ZodEnum<["electron-app", "linux-server", "docker"]>;
|
|
8
|
+
distribution: z.ZodEnum<["electron", "docker", "linux-service", "generic-server", "web-dev"]>;
|
|
9
|
+
channel: z.ZodEnum<["release", "nightly"]>;
|
|
10
|
+
currentVersion: z.ZodString;
|
|
11
|
+
currentCommit: z.ZodNullable<z.ZodString>;
|
|
12
|
+
currentDigest: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
latestVersion: z.ZodNullable<z.ZodString>;
|
|
14
|
+
latestCommit: z.ZodNullable<z.ZodString>;
|
|
15
|
+
latestDigest: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
latestCommitTitle: z.ZodNullable<z.ZodString>;
|
|
17
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
18
|
+
releaseNotes: z.ZodNullable<z.ZodString>;
|
|
19
|
+
updateAvailable: z.ZodBoolean;
|
|
20
|
+
identity: z.ZodNullable<z.ZodString>;
|
|
21
|
+
websiteUrl: z.ZodString;
|
|
22
|
+
metadataSource: z.ZodNullable<z.ZodEnum<["oss", "github"]>>;
|
|
23
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
channel: "nightly" | "release";
|
|
26
|
+
distribution: "electron" | "docker" | "linux-service" | "generic-server" | "web-dev";
|
|
27
|
+
latestVersion: string | null;
|
|
28
|
+
publishedAt: string | null;
|
|
29
|
+
target: "docker" | "electron-app" | "linux-server";
|
|
30
|
+
errorMessage: string | null;
|
|
31
|
+
currentVersion: string;
|
|
32
|
+
currentCommit: string | null;
|
|
33
|
+
latestCommit: string | null;
|
|
34
|
+
latestCommitTitle: string | null;
|
|
35
|
+
releaseNotes: string | null;
|
|
36
|
+
updateAvailable: boolean;
|
|
37
|
+
identity: string | null;
|
|
38
|
+
websiteUrl: string;
|
|
39
|
+
metadataSource: "oss" | "github" | null;
|
|
40
|
+
currentDigest?: string | null | undefined;
|
|
41
|
+
latestDigest?: string | null | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
channel: "nightly" | "release";
|
|
44
|
+
distribution: "electron" | "docker" | "linux-service" | "generic-server" | "web-dev";
|
|
45
|
+
latestVersion: string | null;
|
|
46
|
+
publishedAt: string | null;
|
|
47
|
+
target: "docker" | "electron-app" | "linux-server";
|
|
48
|
+
errorMessage: string | null;
|
|
49
|
+
currentVersion: string;
|
|
50
|
+
currentCommit: string | null;
|
|
51
|
+
latestCommit: string | null;
|
|
52
|
+
latestCommitTitle: string | null;
|
|
53
|
+
releaseNotes: string | null;
|
|
54
|
+
updateAvailable: boolean;
|
|
55
|
+
identity: string | null;
|
|
56
|
+
websiteUrl: string;
|
|
57
|
+
metadataSource: "oss" | "github" | null;
|
|
58
|
+
currentDigest?: string | null | undefined;
|
|
59
|
+
latestDigest?: string | null | undefined;
|
|
60
|
+
}>;
|
|
61
|
+
export type SystemUpdateStatus = z.infer<typeof SystemUpdateStatusSchema>;
|
|
62
|
+
//# sourceMappingURL=update.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.schema.d.ts","sourceRoot":"","sources":["../../src/schema/update.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,wBAAwB,uDAInC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,yBAAyB,mCAAiC,CAAC;AACxE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PluginDistributionSchema } from './plugin.schema.js';
|
|
3
|
+
export const SystemUpdateTargetSchema = z.enum([
|
|
4
|
+
'electron-app',
|
|
5
|
+
'linux-server',
|
|
6
|
+
'docker',
|
|
7
|
+
]);
|
|
8
|
+
export const SystemUpdateChannelSchema = z.enum(['release', 'nightly']);
|
|
9
|
+
export const SystemUpdateStatusSchema = z.object({
|
|
10
|
+
target: SystemUpdateTargetSchema,
|
|
11
|
+
distribution: PluginDistributionSchema,
|
|
12
|
+
channel: SystemUpdateChannelSchema,
|
|
13
|
+
currentVersion: z.string(),
|
|
14
|
+
currentCommit: z.string().nullable(),
|
|
15
|
+
currentDigest: z.string().nullable().optional(),
|
|
16
|
+
latestVersion: z.string().nullable(),
|
|
17
|
+
latestCommit: z.string().nullable(),
|
|
18
|
+
latestDigest: z.string().nullable().optional(),
|
|
19
|
+
latestCommitTitle: z.string().nullable(),
|
|
20
|
+
publishedAt: z.string().nullable(),
|
|
21
|
+
releaseNotes: z.string().nullable(),
|
|
22
|
+
updateAvailable: z.boolean(),
|
|
23
|
+
identity: z.string().nullable(),
|
|
24
|
+
websiteUrl: z.string().url(),
|
|
25
|
+
metadataSource: z.enum(['oss', 'github']).nullable(),
|
|
26
|
+
errorMessage: z.string().nullable(),
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=update.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.schema.js","sourceRoot":"","sources":["../../src/schema/update.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7C,cAAc;IACd,cAAc;IACd,QAAQ;CACT,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;AAGxE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC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