@tx5dr/contracts 1.3.0 → 1.4.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.
@@ -22,14 +22,33 @@ export declare const ProcessCpuSchema: z.ZodObject<{
22
22
  user: z.ZodNumber;
23
23
  system: z.ZodNumber;
24
24
  total: z.ZodNumber;
25
+ capacity: z.ZodOptional<z.ZodNumber>;
26
+ normalizedTotal: z.ZodOptional<z.ZodNumber>;
25
27
  }, "strip", z.ZodTypeAny, {
26
28
  system: number;
27
29
  total: number;
28
30
  user: number;
31
+ capacity?: number | undefined;
32
+ normalizedTotal?: number | undefined;
29
33
  }, {
30
34
  system: number;
31
35
  total: number;
32
36
  user: number;
37
+ capacity?: number | undefined;
38
+ normalizedTotal?: number | undefined;
39
+ }>;
40
+ export declare const HostCpuSchema: z.ZodObject<{
41
+ logicalCores: z.ZodNumber;
42
+ availableParallelism: z.ZodNumber;
43
+ totalUsage: z.ZodOptional<z.ZodNumber>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ logicalCores: number;
46
+ availableParallelism: number;
47
+ totalUsage?: number | undefined;
48
+ }, {
49
+ logicalCores: number;
50
+ availableParallelism: number;
51
+ totalUsage?: number | undefined;
33
52
  }>;
34
53
  export declare const EventLoopDelaySchema: z.ZodObject<{
35
54
  mean: z.ZodNumber;
@@ -70,15 +89,34 @@ export declare const ProcessSnapshotSchema: z.ZodObject<{
70
89
  user: z.ZodNumber;
71
90
  system: z.ZodNumber;
72
91
  total: z.ZodNumber;
92
+ capacity: z.ZodOptional<z.ZodNumber>;
93
+ normalizedTotal: z.ZodOptional<z.ZodNumber>;
73
94
  }, "strip", z.ZodTypeAny, {
74
95
  system: number;
75
96
  total: number;
76
97
  user: number;
98
+ capacity?: number | undefined;
99
+ normalizedTotal?: number | undefined;
77
100
  }, {
78
101
  system: number;
79
102
  total: number;
80
103
  user: number;
104
+ capacity?: number | undefined;
105
+ normalizedTotal?: number | undefined;
81
106
  }>;
107
+ hostCpu: z.ZodOptional<z.ZodObject<{
108
+ logicalCores: z.ZodNumber;
109
+ availableParallelism: z.ZodNumber;
110
+ totalUsage: z.ZodOptional<z.ZodNumber>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ logicalCores: number;
113
+ availableParallelism: number;
114
+ totalUsage?: number | undefined;
115
+ }, {
116
+ logicalCores: number;
117
+ availableParallelism: number;
118
+ totalUsage?: number | undefined;
119
+ }>>;
82
120
  eventLoop: z.ZodObject<{
83
121
  mean: z.ZodNumber;
84
122
  p50: z.ZodNumber;
@@ -106,12 +144,19 @@ export declare const ProcessSnapshotSchema: z.ZodObject<{
106
144
  system: number;
107
145
  total: number;
108
146
  user: number;
147
+ capacity?: number | undefined;
148
+ normalizedTotal?: number | undefined;
109
149
  };
110
150
  eventLoop: {
111
151
  mean: number;
112
152
  p50: number;
113
153
  p99: number;
114
154
  };
155
+ hostCpu?: {
156
+ logicalCores: number;
157
+ availableParallelism: number;
158
+ totalUsage?: number | undefined;
159
+ } | undefined;
115
160
  }, {
116
161
  timestamp: number;
117
162
  uptimeSeconds: number;
@@ -126,12 +171,19 @@ export declare const ProcessSnapshotSchema: z.ZodObject<{
126
171
  system: number;
127
172
  total: number;
128
173
  user: number;
174
+ capacity?: number | undefined;
175
+ normalizedTotal?: number | undefined;
129
176
  };
130
177
  eventLoop: {
131
178
  mean: number;
132
179
  p50: number;
133
180
  p99: number;
134
181
  };
182
+ hostCpu?: {
183
+ logicalCores: number;
184
+ availableParallelism: number;
185
+ totalUsage?: number | undefined;
186
+ } | undefined;
135
187
  }>;
136
188
  export declare const ProcessSnapshotHistorySchema: z.ZodObject<{
137
189
  snapshots: z.ZodArray<z.ZodObject<{
@@ -160,15 +212,34 @@ export declare const ProcessSnapshotHistorySchema: z.ZodObject<{
160
212
  user: z.ZodNumber;
161
213
  system: z.ZodNumber;
162
214
  total: z.ZodNumber;
215
+ capacity: z.ZodOptional<z.ZodNumber>;
216
+ normalizedTotal: z.ZodOptional<z.ZodNumber>;
163
217
  }, "strip", z.ZodTypeAny, {
164
218
  system: number;
165
219
  total: number;
166
220
  user: number;
221
+ capacity?: number | undefined;
222
+ normalizedTotal?: number | undefined;
167
223
  }, {
168
224
  system: number;
169
225
  total: number;
170
226
  user: number;
227
+ capacity?: number | undefined;
228
+ normalizedTotal?: number | undefined;
171
229
  }>;
230
+ hostCpu: z.ZodOptional<z.ZodObject<{
231
+ logicalCores: z.ZodNumber;
232
+ availableParallelism: z.ZodNumber;
233
+ totalUsage: z.ZodOptional<z.ZodNumber>;
234
+ }, "strip", z.ZodTypeAny, {
235
+ logicalCores: number;
236
+ availableParallelism: number;
237
+ totalUsage?: number | undefined;
238
+ }, {
239
+ logicalCores: number;
240
+ availableParallelism: number;
241
+ totalUsage?: number | undefined;
242
+ }>>;
172
243
  eventLoop: z.ZodObject<{
173
244
  mean: z.ZodNumber;
174
245
  p50: z.ZodNumber;
@@ -196,12 +267,19 @@ export declare const ProcessSnapshotHistorySchema: z.ZodObject<{
196
267
  system: number;
197
268
  total: number;
198
269
  user: number;
270
+ capacity?: number | undefined;
271
+ normalizedTotal?: number | undefined;
199
272
  };
200
273
  eventLoop: {
201
274
  mean: number;
202
275
  p50: number;
203
276
  p99: number;
204
277
  };
278
+ hostCpu?: {
279
+ logicalCores: number;
280
+ availableParallelism: number;
281
+ totalUsage?: number | undefined;
282
+ } | undefined;
205
283
  }, {
206
284
  timestamp: number;
207
285
  uptimeSeconds: number;
@@ -216,12 +294,19 @@ export declare const ProcessSnapshotHistorySchema: z.ZodObject<{
216
294
  system: number;
217
295
  total: number;
218
296
  user: number;
297
+ capacity?: number | undefined;
298
+ normalizedTotal?: number | undefined;
219
299
  };
220
300
  eventLoop: {
221
301
  mean: number;
222
302
  p50: number;
223
303
  p99: number;
224
304
  };
305
+ hostCpu?: {
306
+ logicalCores: number;
307
+ availableParallelism: number;
308
+ totalUsage?: number | undefined;
309
+ } | undefined;
225
310
  }>, "many">;
226
311
  intervalMs: z.ZodNumber;
227
312
  maxHistory: z.ZodNumber;
@@ -240,12 +325,19 @@ export declare const ProcessSnapshotHistorySchema: z.ZodObject<{
240
325
  system: number;
241
326
  total: number;
242
327
  user: number;
328
+ capacity?: number | undefined;
329
+ normalizedTotal?: number | undefined;
243
330
  };
244
331
  eventLoop: {
245
332
  mean: number;
246
333
  p50: number;
247
334
  p99: number;
248
335
  };
336
+ hostCpu?: {
337
+ logicalCores: number;
338
+ availableParallelism: number;
339
+ totalUsage?: number | undefined;
340
+ } | undefined;
249
341
  }[];
250
342
  intervalMs: number;
251
343
  maxHistory: number;
@@ -264,18 +356,26 @@ export declare const ProcessSnapshotHistorySchema: z.ZodObject<{
264
356
  system: number;
265
357
  total: number;
266
358
  user: number;
359
+ capacity?: number | undefined;
360
+ normalizedTotal?: number | undefined;
267
361
  };
268
362
  eventLoop: {
269
363
  mean: number;
270
364
  p50: number;
271
365
  p99: number;
272
366
  };
367
+ hostCpu?: {
368
+ logicalCores: number;
369
+ availableParallelism: number;
370
+ totalUsage?: number | undefined;
371
+ } | undefined;
273
372
  }[];
274
373
  intervalMs: number;
275
374
  maxHistory: number;
276
375
  }>;
277
376
  export type ProcessMemory = z.infer<typeof ProcessMemorySchema>;
278
377
  export type ProcessCpu = z.infer<typeof ProcessCpuSchema>;
378
+ export type HostCpu = z.infer<typeof HostCpuSchema>;
279
379
  export type EventLoopDelay = z.infer<typeof EventLoopDelaySchema>;
280
380
  export type ProcessSnapshot = z.infer<typeof ProcessSnapshotSchema>;
281
381
  export type ProcessSnapshotHistory = z.infer<typeof ProcessSnapshotHistorySchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"process-monitor.schema.d.ts","sourceRoot":"","sources":["../../src/schema/process-monitor.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAI3B,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOhC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIvC,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -10,6 +10,13 @@ export const ProcessCpuSchema = z.object({
10
10
  user: z.number(),
11
11
  system: z.number(),
12
12
  total: z.number(),
13
+ capacity: z.number().positive().optional(),
14
+ normalizedTotal: z.number().optional(),
15
+ });
16
+ export const HostCpuSchema = z.object({
17
+ logicalCores: z.number().int().positive(),
18
+ availableParallelism: z.number().int().positive(),
19
+ totalUsage: z.number().optional(),
13
20
  });
14
21
  export const EventLoopDelaySchema = z.object({
15
22
  mean: z.number(),
@@ -21,6 +28,7 @@ export const ProcessSnapshotSchema = z.object({
21
28
  uptimeSeconds: z.number(),
22
29
  memory: ProcessMemorySchema,
23
30
  cpu: ProcessCpuSchema,
31
+ hostCpu: HostCpuSchema.optional(),
24
32
  eventLoop: EventLoopDelaySchema,
25
33
  });
26
34
  export const ProcessSnapshotHistorySchema = z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"process-monitor.schema.js","sourceRoot":"","sources":["../../src/schema/process-monitor.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,MAAM,EAAE,mBAAmB;IAC3B,GAAG,EAAE,gBAAgB;IACrB,SAAS,EAA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AAC,QAAQ,EAAE;IACjD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,MAAM,EAAE,mBAAmB;IAC3B,GAAG,EAAE,gBAAgB;IACrB,OAAO,EAAE,aAAa,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,oBAAoB;CAChC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC;IACzC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC"}
@@ -0,0 +1,164 @@
1
+ import { z } from 'zod';
2
+ export declare const VoiceKeyerSlotSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ index: z.ZodNumber;
5
+ label: z.ZodString;
6
+ hasAudio: z.ZodBoolean;
7
+ durationMs: z.ZodNumber;
8
+ updatedAt: z.ZodNullable<z.ZodNumber>;
9
+ repeatEnabled: z.ZodBoolean;
10
+ repeatIntervalSec: z.ZodNumber;
11
+ }, "strip", z.ZodTypeAny, {
12
+ id: string;
13
+ label: string;
14
+ updatedAt: number | null;
15
+ index: number;
16
+ hasAudio: boolean;
17
+ durationMs: number;
18
+ repeatEnabled: boolean;
19
+ repeatIntervalSec: number;
20
+ }, {
21
+ id: string;
22
+ label: string;
23
+ updatedAt: number | null;
24
+ index: number;
25
+ hasAudio: boolean;
26
+ durationMs: number;
27
+ repeatEnabled: boolean;
28
+ repeatIntervalSec: number;
29
+ }>;
30
+ export declare const VoiceKeyerPanelSchema: z.ZodObject<{
31
+ callsign: z.ZodString;
32
+ slotCount: z.ZodNumber;
33
+ maxSlotCount: z.ZodNumber;
34
+ slots: z.ZodArray<z.ZodObject<{
35
+ id: z.ZodString;
36
+ index: z.ZodNumber;
37
+ label: z.ZodString;
38
+ hasAudio: z.ZodBoolean;
39
+ durationMs: z.ZodNumber;
40
+ updatedAt: z.ZodNullable<z.ZodNumber>;
41
+ repeatEnabled: z.ZodBoolean;
42
+ repeatIntervalSec: z.ZodNumber;
43
+ }, "strip", z.ZodTypeAny, {
44
+ id: string;
45
+ label: string;
46
+ updatedAt: number | null;
47
+ index: number;
48
+ hasAudio: boolean;
49
+ durationMs: number;
50
+ repeatEnabled: boolean;
51
+ repeatIntervalSec: number;
52
+ }, {
53
+ id: string;
54
+ label: string;
55
+ updatedAt: number | null;
56
+ index: number;
57
+ hasAudio: boolean;
58
+ durationMs: number;
59
+ repeatEnabled: boolean;
60
+ repeatIntervalSec: number;
61
+ }>, "many">;
62
+ }, "strip", z.ZodTypeAny, {
63
+ callsign: string;
64
+ slotCount: number;
65
+ maxSlotCount: number;
66
+ slots: {
67
+ id: string;
68
+ label: string;
69
+ updatedAt: number | null;
70
+ index: number;
71
+ hasAudio: boolean;
72
+ durationMs: number;
73
+ repeatEnabled: boolean;
74
+ repeatIntervalSec: number;
75
+ }[];
76
+ }, {
77
+ callsign: string;
78
+ slotCount: number;
79
+ maxSlotCount: number;
80
+ slots: {
81
+ id: string;
82
+ label: string;
83
+ updatedAt: number | null;
84
+ index: number;
85
+ hasAudio: boolean;
86
+ durationMs: number;
87
+ repeatEnabled: boolean;
88
+ repeatIntervalSec: number;
89
+ }[];
90
+ }>;
91
+ export declare const VoiceKeyerStatusSchema: z.ZodObject<{
92
+ active: z.ZodBoolean;
93
+ callsign: z.ZodNullable<z.ZodString>;
94
+ slotId: z.ZodNullable<z.ZodString>;
95
+ mode: z.ZodEnum<["idle", "playing", "repeat-waiting", "stopping", "error"]>;
96
+ repeating: z.ZodBoolean;
97
+ startedBy: z.ZodNullable<z.ZodString>;
98
+ startedByLabel: z.ZodNullable<z.ZodString>;
99
+ nextRunAt: z.ZodNullable<z.ZodNumber>;
100
+ error: z.ZodNullable<z.ZodString>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ error: string | null;
103
+ mode: "error" | "idle" | "playing" | "repeat-waiting" | "stopping";
104
+ callsign: string | null;
105
+ slotId: string | null;
106
+ active: boolean;
107
+ repeating: boolean;
108
+ startedBy: string | null;
109
+ startedByLabel: string | null;
110
+ nextRunAt: number | null;
111
+ }, {
112
+ error: string | null;
113
+ mode: "error" | "idle" | "playing" | "repeat-waiting" | "stopping";
114
+ callsign: string | null;
115
+ slotId: string | null;
116
+ active: boolean;
117
+ repeating: boolean;
118
+ startedBy: string | null;
119
+ startedByLabel: string | null;
120
+ nextRunAt: number | null;
121
+ }>;
122
+ export declare const VoiceKeyerSlotUpdateSchema: z.ZodObject<{
123
+ label: z.ZodOptional<z.ZodString>;
124
+ repeatEnabled: z.ZodOptional<z.ZodBoolean>;
125
+ repeatIntervalSec: z.ZodOptional<z.ZodNumber>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ label?: string | undefined;
128
+ repeatEnabled?: boolean | undefined;
129
+ repeatIntervalSec?: number | undefined;
130
+ }, {
131
+ label?: string | undefined;
132
+ repeatEnabled?: boolean | undefined;
133
+ repeatIntervalSec?: number | undefined;
134
+ }>;
135
+ export declare const VoiceKeyerPanelUpdateSchema: z.ZodObject<{
136
+ slotCount: z.ZodNumber;
137
+ }, "strip", z.ZodTypeAny, {
138
+ slotCount: number;
139
+ }, {
140
+ slotCount: number;
141
+ }>;
142
+ export declare const VoiceKeyerPlayRequestSchema: z.ZodObject<{
143
+ callsign: z.ZodString;
144
+ slotId: z.ZodString;
145
+ repeat: z.ZodOptional<z.ZodBoolean>;
146
+ startImmediately: z.ZodOptional<z.ZodBoolean>;
147
+ }, "strip", z.ZodTypeAny, {
148
+ callsign: string;
149
+ slotId: string;
150
+ repeat?: boolean | undefined;
151
+ startImmediately?: boolean | undefined;
152
+ }, {
153
+ callsign: string;
154
+ slotId: string;
155
+ repeat?: boolean | undefined;
156
+ startImmediately?: boolean | undefined;
157
+ }>;
158
+ export type VoiceKeyerSlot = z.infer<typeof VoiceKeyerSlotSchema>;
159
+ export type VoiceKeyerPanel = z.infer<typeof VoiceKeyerPanelSchema>;
160
+ export type VoiceKeyerStatus = z.infer<typeof VoiceKeyerStatusSchema>;
161
+ export type VoiceKeyerSlotUpdate = z.infer<typeof VoiceKeyerSlotUpdateSchema>;
162
+ export type VoiceKeyerPanelUpdate = z.infer<typeof VoiceKeyerPanelUpdateSchema>;
163
+ export type VoiceKeyerPlayRequest = z.infer<typeof VoiceKeyerPlayRequestSchema>;
164
+ //# sourceMappingURL=voice-keyer.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voice-keyer.schema.d.ts","sourceRoot":"","sources":["../../src/schema/voice-keyer.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKhC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUjC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAIrC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;EAEtC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAKtC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { z } from 'zod';
2
+ export const VoiceKeyerSlotSchema = z.object({
3
+ id: z.string(),
4
+ index: z.number().int().min(1),
5
+ label: z.string(),
6
+ hasAudio: z.boolean(),
7
+ durationMs: z.number().int().nonnegative(),
8
+ updatedAt: z.number().nullable(),
9
+ repeatEnabled: z.boolean(),
10
+ repeatIntervalSec: z.number().int().min(1).max(300),
11
+ });
12
+ export const VoiceKeyerPanelSchema = z.object({
13
+ callsign: z.string(),
14
+ slotCount: z.number().int().min(3).max(12),
15
+ maxSlotCount: z.number().int().min(12),
16
+ slots: z.array(VoiceKeyerSlotSchema),
17
+ });
18
+ export const VoiceKeyerStatusSchema = z.object({
19
+ active: z.boolean(),
20
+ callsign: z.string().nullable(),
21
+ slotId: z.string().nullable(),
22
+ mode: z.enum(['idle', 'playing', 'repeat-waiting', 'stopping', 'error']),
23
+ repeating: z.boolean(),
24
+ startedBy: z.string().nullable(),
25
+ startedByLabel: z.string().nullable(),
26
+ nextRunAt: z.number().nullable(),
27
+ error: z.string().nullable(),
28
+ });
29
+ export const VoiceKeyerSlotUpdateSchema = z.object({
30
+ label: z.string().max(32).optional(),
31
+ repeatEnabled: z.boolean().optional(),
32
+ repeatIntervalSec: z.number().int().min(1).max(300).optional(),
33
+ });
34
+ export const VoiceKeyerPanelUpdateSchema = z.object({
35
+ slotCount: z.number().int().min(3).max(12),
36
+ });
37
+ export const VoiceKeyerPlayRequestSchema = z.object({
38
+ callsign: z.string(),
39
+ slotId: z.string(),
40
+ repeat: z.boolean().optional(),
41
+ startImmediately: z.boolean().optional(),
42
+ });
43
+ //# sourceMappingURL=voice-keyer.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voice-keyer.schema.js","sourceRoot":"","sources":["../../src/schema/voice-keyer.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE;IAC1B,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CACpD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAA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