@kya-os/contracts 1.7.21 → 1.7.23

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.
@@ -0,0 +1,1480 @@
1
+ /**
2
+ * Molti Admin WebSocket Type Definitions & Schemas
3
+ *
4
+ * TypeScript interfaces and Zod schemas for the real-time admin WebSocket
5
+ * protocol. Replaces per-client HTTP polling with a single server-side
6
+ * poll loop that pushes state changes to all connected dashboard clients.
7
+ *
8
+ * @package @kya-os/contracts/molti
9
+ */
10
+ import { z } from "zod";
11
+ /** Normalized device record pushed via WebSocket */
12
+ export interface AdminWSDevice {
13
+ id: string;
14
+ name: string;
15
+ status: "pending" | "approved";
16
+ lastSeen: string;
17
+ ip?: string;
18
+ platform?: string;
19
+ clientId?: string;
20
+ clientMode?: string;
21
+ role?: string;
22
+ }
23
+ /** Normalized channel pairing record pushed via WebSocket */
24
+ export interface AdminWSPairing {
25
+ channel: string;
26
+ code: string;
27
+ userId?: string;
28
+ status?: string;
29
+ }
30
+ /** Gateway status snapshot */
31
+ export interface AdminWSGatewayStatus {
32
+ running: boolean;
33
+ pid: number | null;
34
+ port: number;
35
+ }
36
+ /** Full state snapshot (devices + pairings + gateway) */
37
+ export interface AdminWSFullState {
38
+ devices: AdminWSDevice[];
39
+ pairings: {
40
+ pending: AdminWSPairing[];
41
+ approved: AdminWSPairing[];
42
+ };
43
+ gateway: AdminWSGatewayStatus;
44
+ }
45
+ export interface AdminWSConnectedMessage {
46
+ type: "connected";
47
+ clientId: string;
48
+ }
49
+ export interface AdminWSFullStateMessage {
50
+ type: "state:full";
51
+ data: AdminWSFullState;
52
+ }
53
+ export interface AdminWSDevicesMessage {
54
+ type: "state:devices";
55
+ data: AdminWSDevice[];
56
+ }
57
+ export interface AdminWSPairingsMessage {
58
+ type: "state:pairings";
59
+ data: {
60
+ pending: AdminWSPairing[];
61
+ approved: AdminWSPairing[];
62
+ };
63
+ }
64
+ export interface AdminWSGatewayMessage {
65
+ type: "state:gateway";
66
+ data: AdminWSGatewayStatus;
67
+ }
68
+ export interface AdminWSPingMessage {
69
+ type: "ping";
70
+ ts: number;
71
+ }
72
+ export interface AdminWSErrorMessage {
73
+ type: "error";
74
+ code: string;
75
+ message: string;
76
+ }
77
+ /** Server → Client: Result of a command execution */
78
+ export interface AdminWSCommandResultMessage {
79
+ type: "command:result";
80
+ requestId: string;
81
+ success: boolean;
82
+ error?: string;
83
+ data?: unknown;
84
+ }
85
+ /** Union of all server → client messages */
86
+ export type AdminWSServerMessage = AdminWSConnectedMessage | AdminWSFullStateMessage | AdminWSDevicesMessage | AdminWSPairingsMessage | AdminWSGatewayMessage | AdminWSPingMessage | AdminWSErrorMessage | AdminWSCommandResultMessage;
87
+ export interface AdminWSPongMessage {
88
+ type: "pong";
89
+ }
90
+ export interface AdminWSRefreshMessage {
91
+ type: "refresh";
92
+ }
93
+ /** Client → Server: Approve a single pairing */
94
+ export interface AdminWSApprovePairingCommand {
95
+ type: "command:approve-pairing";
96
+ requestId: string;
97
+ pairingId: string;
98
+ channel: string;
99
+ code: string;
100
+ }
101
+ /** Client → Server: Approve a single device */
102
+ export interface AdminWSApproveDeviceCommand {
103
+ type: "command:approve-device";
104
+ requestId: string;
105
+ deviceId: string;
106
+ }
107
+ /** Client → Server: Approve all pending pairings */
108
+ export interface AdminWSApproveAllPairingsCommand {
109
+ type: "command:approve-pairings-all";
110
+ requestId: string;
111
+ }
112
+ /** Client → Server: Approve all pending devices */
113
+ export interface AdminWSApproveAllDevicesCommand {
114
+ type: "command:approve-devices-all";
115
+ requestId: string;
116
+ }
117
+ /** Client → Server command union */
118
+ export type AdminWSCommand = AdminWSApprovePairingCommand | AdminWSApproveDeviceCommand | AdminWSApproveAllPairingsCommand | AdminWSApproveAllDevicesCommand;
119
+ /** Union of all client → server messages */
120
+ export type AdminWSClientMessage = AdminWSPongMessage | AdminWSRefreshMessage | AdminWSCommand;
121
+ /** Response from POST /api/admin/ws/ticket */
122
+ export interface AdminWSTicketResponse {
123
+ ticket: string;
124
+ }
125
+ export declare const adminWSDeviceSchema: z.ZodObject<{
126
+ id: z.ZodString;
127
+ name: z.ZodString;
128
+ status: z.ZodEnum<["pending", "approved"]>;
129
+ lastSeen: z.ZodString;
130
+ ip: z.ZodOptional<z.ZodString>;
131
+ platform: z.ZodOptional<z.ZodString>;
132
+ clientId: z.ZodOptional<z.ZodString>;
133
+ clientMode: z.ZodOptional<z.ZodString>;
134
+ role: z.ZodOptional<z.ZodString>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ id: string;
137
+ name: string;
138
+ status: "pending" | "approved";
139
+ lastSeen: string;
140
+ ip?: string | undefined;
141
+ platform?: string | undefined;
142
+ clientId?: string | undefined;
143
+ clientMode?: string | undefined;
144
+ role?: string | undefined;
145
+ }, {
146
+ id: string;
147
+ name: string;
148
+ status: "pending" | "approved";
149
+ lastSeen: string;
150
+ ip?: string | undefined;
151
+ platform?: string | undefined;
152
+ clientId?: string | undefined;
153
+ clientMode?: string | undefined;
154
+ role?: string | undefined;
155
+ }>;
156
+ export declare const adminWSPairingSchema: z.ZodObject<{
157
+ channel: z.ZodString;
158
+ code: z.ZodString;
159
+ userId: z.ZodOptional<z.ZodString>;
160
+ status: z.ZodOptional<z.ZodString>;
161
+ }, "strip", z.ZodTypeAny, {
162
+ code: string;
163
+ channel: string;
164
+ status?: string | undefined;
165
+ userId?: string | undefined;
166
+ }, {
167
+ code: string;
168
+ channel: string;
169
+ status?: string | undefined;
170
+ userId?: string | undefined;
171
+ }>;
172
+ export declare const adminWSGatewayStatusSchema: z.ZodObject<{
173
+ running: z.ZodBoolean;
174
+ pid: z.ZodNullable<z.ZodNumber>;
175
+ port: z.ZodNumber;
176
+ }, "strip", z.ZodTypeAny, {
177
+ running: boolean;
178
+ pid: number | null;
179
+ port: number;
180
+ }, {
181
+ running: boolean;
182
+ pid: number | null;
183
+ port: number;
184
+ }>;
185
+ export declare const adminWSFullStateSchema: z.ZodObject<{
186
+ devices: z.ZodArray<z.ZodObject<{
187
+ id: z.ZodString;
188
+ name: z.ZodString;
189
+ status: z.ZodEnum<["pending", "approved"]>;
190
+ lastSeen: z.ZodString;
191
+ ip: z.ZodOptional<z.ZodString>;
192
+ platform: z.ZodOptional<z.ZodString>;
193
+ clientId: z.ZodOptional<z.ZodString>;
194
+ clientMode: z.ZodOptional<z.ZodString>;
195
+ role: z.ZodOptional<z.ZodString>;
196
+ }, "strip", z.ZodTypeAny, {
197
+ id: string;
198
+ name: string;
199
+ status: "pending" | "approved";
200
+ lastSeen: string;
201
+ ip?: string | undefined;
202
+ platform?: string | undefined;
203
+ clientId?: string | undefined;
204
+ clientMode?: string | undefined;
205
+ role?: string | undefined;
206
+ }, {
207
+ id: string;
208
+ name: string;
209
+ status: "pending" | "approved";
210
+ lastSeen: string;
211
+ ip?: string | undefined;
212
+ platform?: string | undefined;
213
+ clientId?: string | undefined;
214
+ clientMode?: string | undefined;
215
+ role?: string | undefined;
216
+ }>, "many">;
217
+ pairings: z.ZodObject<{
218
+ pending: z.ZodArray<z.ZodObject<{
219
+ channel: z.ZodString;
220
+ code: z.ZodString;
221
+ userId: z.ZodOptional<z.ZodString>;
222
+ status: z.ZodOptional<z.ZodString>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ code: string;
225
+ channel: string;
226
+ status?: string | undefined;
227
+ userId?: string | undefined;
228
+ }, {
229
+ code: string;
230
+ channel: string;
231
+ status?: string | undefined;
232
+ userId?: string | undefined;
233
+ }>, "many">;
234
+ approved: z.ZodArray<z.ZodObject<{
235
+ channel: z.ZodString;
236
+ code: z.ZodString;
237
+ userId: z.ZodOptional<z.ZodString>;
238
+ status: z.ZodOptional<z.ZodString>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ code: string;
241
+ channel: string;
242
+ status?: string | undefined;
243
+ userId?: string | undefined;
244
+ }, {
245
+ code: string;
246
+ channel: string;
247
+ status?: string | undefined;
248
+ userId?: string | undefined;
249
+ }>, "many">;
250
+ }, "strip", z.ZodTypeAny, {
251
+ pending: {
252
+ code: string;
253
+ channel: string;
254
+ status?: string | undefined;
255
+ userId?: string | undefined;
256
+ }[];
257
+ approved: {
258
+ code: string;
259
+ channel: string;
260
+ status?: string | undefined;
261
+ userId?: string | undefined;
262
+ }[];
263
+ }, {
264
+ pending: {
265
+ code: string;
266
+ channel: string;
267
+ status?: string | undefined;
268
+ userId?: string | undefined;
269
+ }[];
270
+ approved: {
271
+ code: string;
272
+ channel: string;
273
+ status?: string | undefined;
274
+ userId?: string | undefined;
275
+ }[];
276
+ }>;
277
+ gateway: z.ZodObject<{
278
+ running: z.ZodBoolean;
279
+ pid: z.ZodNullable<z.ZodNumber>;
280
+ port: z.ZodNumber;
281
+ }, "strip", z.ZodTypeAny, {
282
+ running: boolean;
283
+ pid: number | null;
284
+ port: number;
285
+ }, {
286
+ running: boolean;
287
+ pid: number | null;
288
+ port: number;
289
+ }>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ devices: {
292
+ id: string;
293
+ name: string;
294
+ status: "pending" | "approved";
295
+ lastSeen: string;
296
+ ip?: string | undefined;
297
+ platform?: string | undefined;
298
+ clientId?: string | undefined;
299
+ clientMode?: string | undefined;
300
+ role?: string | undefined;
301
+ }[];
302
+ pairings: {
303
+ pending: {
304
+ code: string;
305
+ channel: string;
306
+ status?: string | undefined;
307
+ userId?: string | undefined;
308
+ }[];
309
+ approved: {
310
+ code: string;
311
+ channel: string;
312
+ status?: string | undefined;
313
+ userId?: string | undefined;
314
+ }[];
315
+ };
316
+ gateway: {
317
+ running: boolean;
318
+ pid: number | null;
319
+ port: number;
320
+ };
321
+ }, {
322
+ devices: {
323
+ id: string;
324
+ name: string;
325
+ status: "pending" | "approved";
326
+ lastSeen: string;
327
+ ip?: string | undefined;
328
+ platform?: string | undefined;
329
+ clientId?: string | undefined;
330
+ clientMode?: string | undefined;
331
+ role?: string | undefined;
332
+ }[];
333
+ pairings: {
334
+ pending: {
335
+ code: string;
336
+ channel: string;
337
+ status?: string | undefined;
338
+ userId?: string | undefined;
339
+ }[];
340
+ approved: {
341
+ code: string;
342
+ channel: string;
343
+ status?: string | undefined;
344
+ userId?: string | undefined;
345
+ }[];
346
+ };
347
+ gateway: {
348
+ running: boolean;
349
+ pid: number | null;
350
+ port: number;
351
+ };
352
+ }>;
353
+ export declare const adminWSConnectedMessageSchema: z.ZodObject<{
354
+ type: z.ZodLiteral<"connected">;
355
+ clientId: z.ZodString;
356
+ }, "strip", z.ZodTypeAny, {
357
+ type: "connected";
358
+ clientId: string;
359
+ }, {
360
+ type: "connected";
361
+ clientId: string;
362
+ }>;
363
+ export declare const adminWSFullStateMessageSchema: z.ZodObject<{
364
+ type: z.ZodLiteral<"state:full">;
365
+ data: z.ZodObject<{
366
+ devices: z.ZodArray<z.ZodObject<{
367
+ id: z.ZodString;
368
+ name: z.ZodString;
369
+ status: z.ZodEnum<["pending", "approved"]>;
370
+ lastSeen: z.ZodString;
371
+ ip: z.ZodOptional<z.ZodString>;
372
+ platform: z.ZodOptional<z.ZodString>;
373
+ clientId: z.ZodOptional<z.ZodString>;
374
+ clientMode: z.ZodOptional<z.ZodString>;
375
+ role: z.ZodOptional<z.ZodString>;
376
+ }, "strip", z.ZodTypeAny, {
377
+ id: string;
378
+ name: string;
379
+ status: "pending" | "approved";
380
+ lastSeen: string;
381
+ ip?: string | undefined;
382
+ platform?: string | undefined;
383
+ clientId?: string | undefined;
384
+ clientMode?: string | undefined;
385
+ role?: string | undefined;
386
+ }, {
387
+ id: string;
388
+ name: string;
389
+ status: "pending" | "approved";
390
+ lastSeen: string;
391
+ ip?: string | undefined;
392
+ platform?: string | undefined;
393
+ clientId?: string | undefined;
394
+ clientMode?: string | undefined;
395
+ role?: string | undefined;
396
+ }>, "many">;
397
+ pairings: z.ZodObject<{
398
+ pending: z.ZodArray<z.ZodObject<{
399
+ channel: z.ZodString;
400
+ code: z.ZodString;
401
+ userId: z.ZodOptional<z.ZodString>;
402
+ status: z.ZodOptional<z.ZodString>;
403
+ }, "strip", z.ZodTypeAny, {
404
+ code: string;
405
+ channel: string;
406
+ status?: string | undefined;
407
+ userId?: string | undefined;
408
+ }, {
409
+ code: string;
410
+ channel: string;
411
+ status?: string | undefined;
412
+ userId?: string | undefined;
413
+ }>, "many">;
414
+ approved: z.ZodArray<z.ZodObject<{
415
+ channel: z.ZodString;
416
+ code: z.ZodString;
417
+ userId: z.ZodOptional<z.ZodString>;
418
+ status: z.ZodOptional<z.ZodString>;
419
+ }, "strip", z.ZodTypeAny, {
420
+ code: string;
421
+ channel: string;
422
+ status?: string | undefined;
423
+ userId?: string | undefined;
424
+ }, {
425
+ code: string;
426
+ channel: string;
427
+ status?: string | undefined;
428
+ userId?: string | undefined;
429
+ }>, "many">;
430
+ }, "strip", z.ZodTypeAny, {
431
+ pending: {
432
+ code: string;
433
+ channel: string;
434
+ status?: string | undefined;
435
+ userId?: string | undefined;
436
+ }[];
437
+ approved: {
438
+ code: string;
439
+ channel: string;
440
+ status?: string | undefined;
441
+ userId?: string | undefined;
442
+ }[];
443
+ }, {
444
+ pending: {
445
+ code: string;
446
+ channel: string;
447
+ status?: string | undefined;
448
+ userId?: string | undefined;
449
+ }[];
450
+ approved: {
451
+ code: string;
452
+ channel: string;
453
+ status?: string | undefined;
454
+ userId?: string | undefined;
455
+ }[];
456
+ }>;
457
+ gateway: z.ZodObject<{
458
+ running: z.ZodBoolean;
459
+ pid: z.ZodNullable<z.ZodNumber>;
460
+ port: z.ZodNumber;
461
+ }, "strip", z.ZodTypeAny, {
462
+ running: boolean;
463
+ pid: number | null;
464
+ port: number;
465
+ }, {
466
+ running: boolean;
467
+ pid: number | null;
468
+ port: number;
469
+ }>;
470
+ }, "strip", z.ZodTypeAny, {
471
+ devices: {
472
+ id: string;
473
+ name: string;
474
+ status: "pending" | "approved";
475
+ lastSeen: string;
476
+ ip?: string | undefined;
477
+ platform?: string | undefined;
478
+ clientId?: string | undefined;
479
+ clientMode?: string | undefined;
480
+ role?: string | undefined;
481
+ }[];
482
+ pairings: {
483
+ pending: {
484
+ code: string;
485
+ channel: string;
486
+ status?: string | undefined;
487
+ userId?: string | undefined;
488
+ }[];
489
+ approved: {
490
+ code: string;
491
+ channel: string;
492
+ status?: string | undefined;
493
+ userId?: string | undefined;
494
+ }[];
495
+ };
496
+ gateway: {
497
+ running: boolean;
498
+ pid: number | null;
499
+ port: number;
500
+ };
501
+ }, {
502
+ devices: {
503
+ id: string;
504
+ name: string;
505
+ status: "pending" | "approved";
506
+ lastSeen: string;
507
+ ip?: string | undefined;
508
+ platform?: string | undefined;
509
+ clientId?: string | undefined;
510
+ clientMode?: string | undefined;
511
+ role?: string | undefined;
512
+ }[];
513
+ pairings: {
514
+ pending: {
515
+ code: string;
516
+ channel: string;
517
+ status?: string | undefined;
518
+ userId?: string | undefined;
519
+ }[];
520
+ approved: {
521
+ code: string;
522
+ channel: string;
523
+ status?: string | undefined;
524
+ userId?: string | undefined;
525
+ }[];
526
+ };
527
+ gateway: {
528
+ running: boolean;
529
+ pid: number | null;
530
+ port: number;
531
+ };
532
+ }>;
533
+ }, "strip", z.ZodTypeAny, {
534
+ type: "state:full";
535
+ data: {
536
+ devices: {
537
+ id: string;
538
+ name: string;
539
+ status: "pending" | "approved";
540
+ lastSeen: string;
541
+ ip?: string | undefined;
542
+ platform?: string | undefined;
543
+ clientId?: string | undefined;
544
+ clientMode?: string | undefined;
545
+ role?: string | undefined;
546
+ }[];
547
+ pairings: {
548
+ pending: {
549
+ code: string;
550
+ channel: string;
551
+ status?: string | undefined;
552
+ userId?: string | undefined;
553
+ }[];
554
+ approved: {
555
+ code: string;
556
+ channel: string;
557
+ status?: string | undefined;
558
+ userId?: string | undefined;
559
+ }[];
560
+ };
561
+ gateway: {
562
+ running: boolean;
563
+ pid: number | null;
564
+ port: number;
565
+ };
566
+ };
567
+ }, {
568
+ type: "state:full";
569
+ data: {
570
+ devices: {
571
+ id: string;
572
+ name: string;
573
+ status: "pending" | "approved";
574
+ lastSeen: string;
575
+ ip?: string | undefined;
576
+ platform?: string | undefined;
577
+ clientId?: string | undefined;
578
+ clientMode?: string | undefined;
579
+ role?: string | undefined;
580
+ }[];
581
+ pairings: {
582
+ pending: {
583
+ code: string;
584
+ channel: string;
585
+ status?: string | undefined;
586
+ userId?: string | undefined;
587
+ }[];
588
+ approved: {
589
+ code: string;
590
+ channel: string;
591
+ status?: string | undefined;
592
+ userId?: string | undefined;
593
+ }[];
594
+ };
595
+ gateway: {
596
+ running: boolean;
597
+ pid: number | null;
598
+ port: number;
599
+ };
600
+ };
601
+ }>;
602
+ export declare const adminWSDevicesMessageSchema: z.ZodObject<{
603
+ type: z.ZodLiteral<"state:devices">;
604
+ data: z.ZodArray<z.ZodObject<{
605
+ id: z.ZodString;
606
+ name: z.ZodString;
607
+ status: z.ZodEnum<["pending", "approved"]>;
608
+ lastSeen: z.ZodString;
609
+ ip: z.ZodOptional<z.ZodString>;
610
+ platform: z.ZodOptional<z.ZodString>;
611
+ clientId: z.ZodOptional<z.ZodString>;
612
+ clientMode: z.ZodOptional<z.ZodString>;
613
+ role: z.ZodOptional<z.ZodString>;
614
+ }, "strip", z.ZodTypeAny, {
615
+ id: string;
616
+ name: string;
617
+ status: "pending" | "approved";
618
+ lastSeen: string;
619
+ ip?: string | undefined;
620
+ platform?: string | undefined;
621
+ clientId?: string | undefined;
622
+ clientMode?: string | undefined;
623
+ role?: string | undefined;
624
+ }, {
625
+ id: string;
626
+ name: string;
627
+ status: "pending" | "approved";
628
+ lastSeen: string;
629
+ ip?: string | undefined;
630
+ platform?: string | undefined;
631
+ clientId?: string | undefined;
632
+ clientMode?: string | undefined;
633
+ role?: string | undefined;
634
+ }>, "many">;
635
+ }, "strip", z.ZodTypeAny, {
636
+ type: "state:devices";
637
+ data: {
638
+ id: string;
639
+ name: string;
640
+ status: "pending" | "approved";
641
+ lastSeen: string;
642
+ ip?: string | undefined;
643
+ platform?: string | undefined;
644
+ clientId?: string | undefined;
645
+ clientMode?: string | undefined;
646
+ role?: string | undefined;
647
+ }[];
648
+ }, {
649
+ type: "state:devices";
650
+ data: {
651
+ id: string;
652
+ name: string;
653
+ status: "pending" | "approved";
654
+ lastSeen: string;
655
+ ip?: string | undefined;
656
+ platform?: string | undefined;
657
+ clientId?: string | undefined;
658
+ clientMode?: string | undefined;
659
+ role?: string | undefined;
660
+ }[];
661
+ }>;
662
+ export declare const adminWSPairingsMessageSchema: z.ZodObject<{
663
+ type: z.ZodLiteral<"state:pairings">;
664
+ data: z.ZodObject<{
665
+ pending: z.ZodArray<z.ZodObject<{
666
+ channel: z.ZodString;
667
+ code: z.ZodString;
668
+ userId: z.ZodOptional<z.ZodString>;
669
+ status: z.ZodOptional<z.ZodString>;
670
+ }, "strip", z.ZodTypeAny, {
671
+ code: string;
672
+ channel: string;
673
+ status?: string | undefined;
674
+ userId?: string | undefined;
675
+ }, {
676
+ code: string;
677
+ channel: string;
678
+ status?: string | undefined;
679
+ userId?: string | undefined;
680
+ }>, "many">;
681
+ approved: z.ZodArray<z.ZodObject<{
682
+ channel: z.ZodString;
683
+ code: z.ZodString;
684
+ userId: z.ZodOptional<z.ZodString>;
685
+ status: z.ZodOptional<z.ZodString>;
686
+ }, "strip", z.ZodTypeAny, {
687
+ code: string;
688
+ channel: string;
689
+ status?: string | undefined;
690
+ userId?: string | undefined;
691
+ }, {
692
+ code: string;
693
+ channel: string;
694
+ status?: string | undefined;
695
+ userId?: string | undefined;
696
+ }>, "many">;
697
+ }, "strip", z.ZodTypeAny, {
698
+ pending: {
699
+ code: string;
700
+ channel: string;
701
+ status?: string | undefined;
702
+ userId?: string | undefined;
703
+ }[];
704
+ approved: {
705
+ code: string;
706
+ channel: string;
707
+ status?: string | undefined;
708
+ userId?: string | undefined;
709
+ }[];
710
+ }, {
711
+ pending: {
712
+ code: string;
713
+ channel: string;
714
+ status?: string | undefined;
715
+ userId?: string | undefined;
716
+ }[];
717
+ approved: {
718
+ code: string;
719
+ channel: string;
720
+ status?: string | undefined;
721
+ userId?: string | undefined;
722
+ }[];
723
+ }>;
724
+ }, "strip", z.ZodTypeAny, {
725
+ type: "state:pairings";
726
+ data: {
727
+ pending: {
728
+ code: string;
729
+ channel: string;
730
+ status?: string | undefined;
731
+ userId?: string | undefined;
732
+ }[];
733
+ approved: {
734
+ code: string;
735
+ channel: string;
736
+ status?: string | undefined;
737
+ userId?: string | undefined;
738
+ }[];
739
+ };
740
+ }, {
741
+ type: "state:pairings";
742
+ data: {
743
+ pending: {
744
+ code: string;
745
+ channel: string;
746
+ status?: string | undefined;
747
+ userId?: string | undefined;
748
+ }[];
749
+ approved: {
750
+ code: string;
751
+ channel: string;
752
+ status?: string | undefined;
753
+ userId?: string | undefined;
754
+ }[];
755
+ };
756
+ }>;
757
+ export declare const adminWSGatewayMessageSchema: z.ZodObject<{
758
+ type: z.ZodLiteral<"state:gateway">;
759
+ data: z.ZodObject<{
760
+ running: z.ZodBoolean;
761
+ pid: z.ZodNullable<z.ZodNumber>;
762
+ port: z.ZodNumber;
763
+ }, "strip", z.ZodTypeAny, {
764
+ running: boolean;
765
+ pid: number | null;
766
+ port: number;
767
+ }, {
768
+ running: boolean;
769
+ pid: number | null;
770
+ port: number;
771
+ }>;
772
+ }, "strip", z.ZodTypeAny, {
773
+ type: "state:gateway";
774
+ data: {
775
+ running: boolean;
776
+ pid: number | null;
777
+ port: number;
778
+ };
779
+ }, {
780
+ type: "state:gateway";
781
+ data: {
782
+ running: boolean;
783
+ pid: number | null;
784
+ port: number;
785
+ };
786
+ }>;
787
+ export declare const adminWSPingMessageSchema: z.ZodObject<{
788
+ type: z.ZodLiteral<"ping">;
789
+ ts: z.ZodNumber;
790
+ }, "strip", z.ZodTypeAny, {
791
+ type: "ping";
792
+ ts: number;
793
+ }, {
794
+ type: "ping";
795
+ ts: number;
796
+ }>;
797
+ export declare const adminWSErrorMessageSchema: z.ZodObject<{
798
+ type: z.ZodLiteral<"error">;
799
+ code: z.ZodString;
800
+ message: z.ZodString;
801
+ }, "strip", z.ZodTypeAny, {
802
+ code: string;
803
+ message: string;
804
+ type: "error";
805
+ }, {
806
+ code: string;
807
+ message: string;
808
+ type: "error";
809
+ }>;
810
+ export declare const adminWSCommandResultMessageSchema: z.ZodObject<{
811
+ type: z.ZodLiteral<"command:result">;
812
+ requestId: z.ZodString;
813
+ success: z.ZodBoolean;
814
+ error: z.ZodOptional<z.ZodString>;
815
+ data: z.ZodOptional<z.ZodUnknown>;
816
+ }, "strip", z.ZodTypeAny, {
817
+ type: "command:result";
818
+ requestId: string;
819
+ success: boolean;
820
+ data?: unknown;
821
+ error?: string | undefined;
822
+ }, {
823
+ type: "command:result";
824
+ requestId: string;
825
+ success: boolean;
826
+ data?: unknown;
827
+ error?: string | undefined;
828
+ }>;
829
+ export declare const adminWSServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
830
+ type: z.ZodLiteral<"connected">;
831
+ clientId: z.ZodString;
832
+ }, "strip", z.ZodTypeAny, {
833
+ type: "connected";
834
+ clientId: string;
835
+ }, {
836
+ type: "connected";
837
+ clientId: string;
838
+ }>, z.ZodObject<{
839
+ type: z.ZodLiteral<"state:full">;
840
+ data: z.ZodObject<{
841
+ devices: z.ZodArray<z.ZodObject<{
842
+ id: z.ZodString;
843
+ name: z.ZodString;
844
+ status: z.ZodEnum<["pending", "approved"]>;
845
+ lastSeen: z.ZodString;
846
+ ip: z.ZodOptional<z.ZodString>;
847
+ platform: z.ZodOptional<z.ZodString>;
848
+ clientId: z.ZodOptional<z.ZodString>;
849
+ clientMode: z.ZodOptional<z.ZodString>;
850
+ role: z.ZodOptional<z.ZodString>;
851
+ }, "strip", z.ZodTypeAny, {
852
+ id: string;
853
+ name: string;
854
+ status: "pending" | "approved";
855
+ lastSeen: string;
856
+ ip?: string | undefined;
857
+ platform?: string | undefined;
858
+ clientId?: string | undefined;
859
+ clientMode?: string | undefined;
860
+ role?: string | undefined;
861
+ }, {
862
+ id: string;
863
+ name: string;
864
+ status: "pending" | "approved";
865
+ lastSeen: string;
866
+ ip?: string | undefined;
867
+ platform?: string | undefined;
868
+ clientId?: string | undefined;
869
+ clientMode?: string | undefined;
870
+ role?: string | undefined;
871
+ }>, "many">;
872
+ pairings: z.ZodObject<{
873
+ pending: z.ZodArray<z.ZodObject<{
874
+ channel: z.ZodString;
875
+ code: z.ZodString;
876
+ userId: z.ZodOptional<z.ZodString>;
877
+ status: z.ZodOptional<z.ZodString>;
878
+ }, "strip", z.ZodTypeAny, {
879
+ code: string;
880
+ channel: string;
881
+ status?: string | undefined;
882
+ userId?: string | undefined;
883
+ }, {
884
+ code: string;
885
+ channel: string;
886
+ status?: string | undefined;
887
+ userId?: string | undefined;
888
+ }>, "many">;
889
+ approved: z.ZodArray<z.ZodObject<{
890
+ channel: z.ZodString;
891
+ code: z.ZodString;
892
+ userId: z.ZodOptional<z.ZodString>;
893
+ status: z.ZodOptional<z.ZodString>;
894
+ }, "strip", z.ZodTypeAny, {
895
+ code: string;
896
+ channel: string;
897
+ status?: string | undefined;
898
+ userId?: string | undefined;
899
+ }, {
900
+ code: string;
901
+ channel: string;
902
+ status?: string | undefined;
903
+ userId?: string | undefined;
904
+ }>, "many">;
905
+ }, "strip", z.ZodTypeAny, {
906
+ pending: {
907
+ code: string;
908
+ channel: string;
909
+ status?: string | undefined;
910
+ userId?: string | undefined;
911
+ }[];
912
+ approved: {
913
+ code: string;
914
+ channel: string;
915
+ status?: string | undefined;
916
+ userId?: string | undefined;
917
+ }[];
918
+ }, {
919
+ pending: {
920
+ code: string;
921
+ channel: string;
922
+ status?: string | undefined;
923
+ userId?: string | undefined;
924
+ }[];
925
+ approved: {
926
+ code: string;
927
+ channel: string;
928
+ status?: string | undefined;
929
+ userId?: string | undefined;
930
+ }[];
931
+ }>;
932
+ gateway: z.ZodObject<{
933
+ running: z.ZodBoolean;
934
+ pid: z.ZodNullable<z.ZodNumber>;
935
+ port: z.ZodNumber;
936
+ }, "strip", z.ZodTypeAny, {
937
+ running: boolean;
938
+ pid: number | null;
939
+ port: number;
940
+ }, {
941
+ running: boolean;
942
+ pid: number | null;
943
+ port: number;
944
+ }>;
945
+ }, "strip", z.ZodTypeAny, {
946
+ devices: {
947
+ id: string;
948
+ name: string;
949
+ status: "pending" | "approved";
950
+ lastSeen: string;
951
+ ip?: string | undefined;
952
+ platform?: string | undefined;
953
+ clientId?: string | undefined;
954
+ clientMode?: string | undefined;
955
+ role?: string | undefined;
956
+ }[];
957
+ pairings: {
958
+ pending: {
959
+ code: string;
960
+ channel: string;
961
+ status?: string | undefined;
962
+ userId?: string | undefined;
963
+ }[];
964
+ approved: {
965
+ code: string;
966
+ channel: string;
967
+ status?: string | undefined;
968
+ userId?: string | undefined;
969
+ }[];
970
+ };
971
+ gateway: {
972
+ running: boolean;
973
+ pid: number | null;
974
+ port: number;
975
+ };
976
+ }, {
977
+ devices: {
978
+ id: string;
979
+ name: string;
980
+ status: "pending" | "approved";
981
+ lastSeen: string;
982
+ ip?: string | undefined;
983
+ platform?: string | undefined;
984
+ clientId?: string | undefined;
985
+ clientMode?: string | undefined;
986
+ role?: string | undefined;
987
+ }[];
988
+ pairings: {
989
+ pending: {
990
+ code: string;
991
+ channel: string;
992
+ status?: string | undefined;
993
+ userId?: string | undefined;
994
+ }[];
995
+ approved: {
996
+ code: string;
997
+ channel: string;
998
+ status?: string | undefined;
999
+ userId?: string | undefined;
1000
+ }[];
1001
+ };
1002
+ gateway: {
1003
+ running: boolean;
1004
+ pid: number | null;
1005
+ port: number;
1006
+ };
1007
+ }>;
1008
+ }, "strip", z.ZodTypeAny, {
1009
+ type: "state:full";
1010
+ data: {
1011
+ devices: {
1012
+ id: string;
1013
+ name: string;
1014
+ status: "pending" | "approved";
1015
+ lastSeen: string;
1016
+ ip?: string | undefined;
1017
+ platform?: string | undefined;
1018
+ clientId?: string | undefined;
1019
+ clientMode?: string | undefined;
1020
+ role?: string | undefined;
1021
+ }[];
1022
+ pairings: {
1023
+ pending: {
1024
+ code: string;
1025
+ channel: string;
1026
+ status?: string | undefined;
1027
+ userId?: string | undefined;
1028
+ }[];
1029
+ approved: {
1030
+ code: string;
1031
+ channel: string;
1032
+ status?: string | undefined;
1033
+ userId?: string | undefined;
1034
+ }[];
1035
+ };
1036
+ gateway: {
1037
+ running: boolean;
1038
+ pid: number | null;
1039
+ port: number;
1040
+ };
1041
+ };
1042
+ }, {
1043
+ type: "state:full";
1044
+ data: {
1045
+ devices: {
1046
+ id: string;
1047
+ name: string;
1048
+ status: "pending" | "approved";
1049
+ lastSeen: string;
1050
+ ip?: string | undefined;
1051
+ platform?: string | undefined;
1052
+ clientId?: string | undefined;
1053
+ clientMode?: string | undefined;
1054
+ role?: string | undefined;
1055
+ }[];
1056
+ pairings: {
1057
+ pending: {
1058
+ code: string;
1059
+ channel: string;
1060
+ status?: string | undefined;
1061
+ userId?: string | undefined;
1062
+ }[];
1063
+ approved: {
1064
+ code: string;
1065
+ channel: string;
1066
+ status?: string | undefined;
1067
+ userId?: string | undefined;
1068
+ }[];
1069
+ };
1070
+ gateway: {
1071
+ running: boolean;
1072
+ pid: number | null;
1073
+ port: number;
1074
+ };
1075
+ };
1076
+ }>, z.ZodObject<{
1077
+ type: z.ZodLiteral<"state:devices">;
1078
+ data: z.ZodArray<z.ZodObject<{
1079
+ id: z.ZodString;
1080
+ name: z.ZodString;
1081
+ status: z.ZodEnum<["pending", "approved"]>;
1082
+ lastSeen: z.ZodString;
1083
+ ip: z.ZodOptional<z.ZodString>;
1084
+ platform: z.ZodOptional<z.ZodString>;
1085
+ clientId: z.ZodOptional<z.ZodString>;
1086
+ clientMode: z.ZodOptional<z.ZodString>;
1087
+ role: z.ZodOptional<z.ZodString>;
1088
+ }, "strip", z.ZodTypeAny, {
1089
+ id: string;
1090
+ name: string;
1091
+ status: "pending" | "approved";
1092
+ lastSeen: string;
1093
+ ip?: string | undefined;
1094
+ platform?: string | undefined;
1095
+ clientId?: string | undefined;
1096
+ clientMode?: string | undefined;
1097
+ role?: string | undefined;
1098
+ }, {
1099
+ id: string;
1100
+ name: string;
1101
+ status: "pending" | "approved";
1102
+ lastSeen: string;
1103
+ ip?: string | undefined;
1104
+ platform?: string | undefined;
1105
+ clientId?: string | undefined;
1106
+ clientMode?: string | undefined;
1107
+ role?: string | undefined;
1108
+ }>, "many">;
1109
+ }, "strip", z.ZodTypeAny, {
1110
+ type: "state:devices";
1111
+ data: {
1112
+ id: string;
1113
+ name: string;
1114
+ status: "pending" | "approved";
1115
+ lastSeen: string;
1116
+ ip?: string | undefined;
1117
+ platform?: string | undefined;
1118
+ clientId?: string | undefined;
1119
+ clientMode?: string | undefined;
1120
+ role?: string | undefined;
1121
+ }[];
1122
+ }, {
1123
+ type: "state:devices";
1124
+ data: {
1125
+ id: string;
1126
+ name: string;
1127
+ status: "pending" | "approved";
1128
+ lastSeen: string;
1129
+ ip?: string | undefined;
1130
+ platform?: string | undefined;
1131
+ clientId?: string | undefined;
1132
+ clientMode?: string | undefined;
1133
+ role?: string | undefined;
1134
+ }[];
1135
+ }>, z.ZodObject<{
1136
+ type: z.ZodLiteral<"state:pairings">;
1137
+ data: z.ZodObject<{
1138
+ pending: z.ZodArray<z.ZodObject<{
1139
+ channel: z.ZodString;
1140
+ code: z.ZodString;
1141
+ userId: z.ZodOptional<z.ZodString>;
1142
+ status: z.ZodOptional<z.ZodString>;
1143
+ }, "strip", z.ZodTypeAny, {
1144
+ code: string;
1145
+ channel: string;
1146
+ status?: string | undefined;
1147
+ userId?: string | undefined;
1148
+ }, {
1149
+ code: string;
1150
+ channel: string;
1151
+ status?: string | undefined;
1152
+ userId?: string | undefined;
1153
+ }>, "many">;
1154
+ approved: z.ZodArray<z.ZodObject<{
1155
+ channel: z.ZodString;
1156
+ code: z.ZodString;
1157
+ userId: z.ZodOptional<z.ZodString>;
1158
+ status: z.ZodOptional<z.ZodString>;
1159
+ }, "strip", z.ZodTypeAny, {
1160
+ code: string;
1161
+ channel: string;
1162
+ status?: string | undefined;
1163
+ userId?: string | undefined;
1164
+ }, {
1165
+ code: string;
1166
+ channel: string;
1167
+ status?: string | undefined;
1168
+ userId?: string | undefined;
1169
+ }>, "many">;
1170
+ }, "strip", z.ZodTypeAny, {
1171
+ pending: {
1172
+ code: string;
1173
+ channel: string;
1174
+ status?: string | undefined;
1175
+ userId?: string | undefined;
1176
+ }[];
1177
+ approved: {
1178
+ code: string;
1179
+ channel: string;
1180
+ status?: string | undefined;
1181
+ userId?: string | undefined;
1182
+ }[];
1183
+ }, {
1184
+ pending: {
1185
+ code: string;
1186
+ channel: string;
1187
+ status?: string | undefined;
1188
+ userId?: string | undefined;
1189
+ }[];
1190
+ approved: {
1191
+ code: string;
1192
+ channel: string;
1193
+ status?: string | undefined;
1194
+ userId?: string | undefined;
1195
+ }[];
1196
+ }>;
1197
+ }, "strip", z.ZodTypeAny, {
1198
+ type: "state:pairings";
1199
+ data: {
1200
+ pending: {
1201
+ code: string;
1202
+ channel: string;
1203
+ status?: string | undefined;
1204
+ userId?: string | undefined;
1205
+ }[];
1206
+ approved: {
1207
+ code: string;
1208
+ channel: string;
1209
+ status?: string | undefined;
1210
+ userId?: string | undefined;
1211
+ }[];
1212
+ };
1213
+ }, {
1214
+ type: "state:pairings";
1215
+ data: {
1216
+ pending: {
1217
+ code: string;
1218
+ channel: string;
1219
+ status?: string | undefined;
1220
+ userId?: string | undefined;
1221
+ }[];
1222
+ approved: {
1223
+ code: string;
1224
+ channel: string;
1225
+ status?: string | undefined;
1226
+ userId?: string | undefined;
1227
+ }[];
1228
+ };
1229
+ }>, z.ZodObject<{
1230
+ type: z.ZodLiteral<"state:gateway">;
1231
+ data: z.ZodObject<{
1232
+ running: z.ZodBoolean;
1233
+ pid: z.ZodNullable<z.ZodNumber>;
1234
+ port: z.ZodNumber;
1235
+ }, "strip", z.ZodTypeAny, {
1236
+ running: boolean;
1237
+ pid: number | null;
1238
+ port: number;
1239
+ }, {
1240
+ running: boolean;
1241
+ pid: number | null;
1242
+ port: number;
1243
+ }>;
1244
+ }, "strip", z.ZodTypeAny, {
1245
+ type: "state:gateway";
1246
+ data: {
1247
+ running: boolean;
1248
+ pid: number | null;
1249
+ port: number;
1250
+ };
1251
+ }, {
1252
+ type: "state:gateway";
1253
+ data: {
1254
+ running: boolean;
1255
+ pid: number | null;
1256
+ port: number;
1257
+ };
1258
+ }>, z.ZodObject<{
1259
+ type: z.ZodLiteral<"ping">;
1260
+ ts: z.ZodNumber;
1261
+ }, "strip", z.ZodTypeAny, {
1262
+ type: "ping";
1263
+ ts: number;
1264
+ }, {
1265
+ type: "ping";
1266
+ ts: number;
1267
+ }>, z.ZodObject<{
1268
+ type: z.ZodLiteral<"error">;
1269
+ code: z.ZodString;
1270
+ message: z.ZodString;
1271
+ }, "strip", z.ZodTypeAny, {
1272
+ code: string;
1273
+ message: string;
1274
+ type: "error";
1275
+ }, {
1276
+ code: string;
1277
+ message: string;
1278
+ type: "error";
1279
+ }>, z.ZodObject<{
1280
+ type: z.ZodLiteral<"command:result">;
1281
+ requestId: z.ZodString;
1282
+ success: z.ZodBoolean;
1283
+ error: z.ZodOptional<z.ZodString>;
1284
+ data: z.ZodOptional<z.ZodUnknown>;
1285
+ }, "strip", z.ZodTypeAny, {
1286
+ type: "command:result";
1287
+ requestId: string;
1288
+ success: boolean;
1289
+ data?: unknown;
1290
+ error?: string | undefined;
1291
+ }, {
1292
+ type: "command:result";
1293
+ requestId: string;
1294
+ success: boolean;
1295
+ data?: unknown;
1296
+ error?: string | undefined;
1297
+ }>]>;
1298
+ export declare const adminWSPongMessageSchema: z.ZodObject<{
1299
+ type: z.ZodLiteral<"pong">;
1300
+ }, "strip", z.ZodTypeAny, {
1301
+ type: "pong";
1302
+ }, {
1303
+ type: "pong";
1304
+ }>;
1305
+ export declare const adminWSRefreshMessageSchema: z.ZodObject<{
1306
+ type: z.ZodLiteral<"refresh">;
1307
+ }, "strip", z.ZodTypeAny, {
1308
+ type: "refresh";
1309
+ }, {
1310
+ type: "refresh";
1311
+ }>;
1312
+ export declare const adminWSApprovePairingCommandSchema: z.ZodObject<{
1313
+ type: z.ZodLiteral<"command:approve-pairing">;
1314
+ requestId: z.ZodString;
1315
+ pairingId: z.ZodString;
1316
+ channel: z.ZodString;
1317
+ code: z.ZodString;
1318
+ }, "strip", z.ZodTypeAny, {
1319
+ code: string;
1320
+ type: "command:approve-pairing";
1321
+ channel: string;
1322
+ requestId: string;
1323
+ pairingId: string;
1324
+ }, {
1325
+ code: string;
1326
+ type: "command:approve-pairing";
1327
+ channel: string;
1328
+ requestId: string;
1329
+ pairingId: string;
1330
+ }>;
1331
+ export declare const adminWSApproveDeviceCommandSchema: z.ZodObject<{
1332
+ type: z.ZodLiteral<"command:approve-device">;
1333
+ requestId: z.ZodString;
1334
+ deviceId: z.ZodString;
1335
+ }, "strip", z.ZodTypeAny, {
1336
+ type: "command:approve-device";
1337
+ requestId: string;
1338
+ deviceId: string;
1339
+ }, {
1340
+ type: "command:approve-device";
1341
+ requestId: string;
1342
+ deviceId: string;
1343
+ }>;
1344
+ export declare const adminWSApproveAllPairingsCommandSchema: z.ZodObject<{
1345
+ type: z.ZodLiteral<"command:approve-pairings-all">;
1346
+ requestId: z.ZodString;
1347
+ }, "strip", z.ZodTypeAny, {
1348
+ type: "command:approve-pairings-all";
1349
+ requestId: string;
1350
+ }, {
1351
+ type: "command:approve-pairings-all";
1352
+ requestId: string;
1353
+ }>;
1354
+ export declare const adminWSApproveAllDevicesCommandSchema: z.ZodObject<{
1355
+ type: z.ZodLiteral<"command:approve-devices-all">;
1356
+ requestId: z.ZodString;
1357
+ }, "strip", z.ZodTypeAny, {
1358
+ type: "command:approve-devices-all";
1359
+ requestId: string;
1360
+ }, {
1361
+ type: "command:approve-devices-all";
1362
+ requestId: string;
1363
+ }>;
1364
+ export declare const adminWSCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1365
+ type: z.ZodLiteral<"command:approve-pairing">;
1366
+ requestId: z.ZodString;
1367
+ pairingId: z.ZodString;
1368
+ channel: z.ZodString;
1369
+ code: z.ZodString;
1370
+ }, "strip", z.ZodTypeAny, {
1371
+ code: string;
1372
+ type: "command:approve-pairing";
1373
+ channel: string;
1374
+ requestId: string;
1375
+ pairingId: string;
1376
+ }, {
1377
+ code: string;
1378
+ type: "command:approve-pairing";
1379
+ channel: string;
1380
+ requestId: string;
1381
+ pairingId: string;
1382
+ }>, z.ZodObject<{
1383
+ type: z.ZodLiteral<"command:approve-device">;
1384
+ requestId: z.ZodString;
1385
+ deviceId: z.ZodString;
1386
+ }, "strip", z.ZodTypeAny, {
1387
+ type: "command:approve-device";
1388
+ requestId: string;
1389
+ deviceId: string;
1390
+ }, {
1391
+ type: "command:approve-device";
1392
+ requestId: string;
1393
+ deviceId: string;
1394
+ }>, z.ZodObject<{
1395
+ type: z.ZodLiteral<"command:approve-pairings-all">;
1396
+ requestId: z.ZodString;
1397
+ }, "strip", z.ZodTypeAny, {
1398
+ type: "command:approve-pairings-all";
1399
+ requestId: string;
1400
+ }, {
1401
+ type: "command:approve-pairings-all";
1402
+ requestId: string;
1403
+ }>, z.ZodObject<{
1404
+ type: z.ZodLiteral<"command:approve-devices-all">;
1405
+ requestId: z.ZodString;
1406
+ }, "strip", z.ZodTypeAny, {
1407
+ type: "command:approve-devices-all";
1408
+ requestId: string;
1409
+ }, {
1410
+ type: "command:approve-devices-all";
1411
+ requestId: string;
1412
+ }>]>;
1413
+ export declare const adminWSClientMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1414
+ type: z.ZodLiteral<"pong">;
1415
+ }, "strip", z.ZodTypeAny, {
1416
+ type: "pong";
1417
+ }, {
1418
+ type: "pong";
1419
+ }>, z.ZodObject<{
1420
+ type: z.ZodLiteral<"refresh">;
1421
+ }, "strip", z.ZodTypeAny, {
1422
+ type: "refresh";
1423
+ }, {
1424
+ type: "refresh";
1425
+ }>, z.ZodObject<{
1426
+ type: z.ZodLiteral<"command:approve-pairing">;
1427
+ requestId: z.ZodString;
1428
+ pairingId: z.ZodString;
1429
+ channel: z.ZodString;
1430
+ code: z.ZodString;
1431
+ }, "strip", z.ZodTypeAny, {
1432
+ code: string;
1433
+ type: "command:approve-pairing";
1434
+ channel: string;
1435
+ requestId: string;
1436
+ pairingId: string;
1437
+ }, {
1438
+ code: string;
1439
+ type: "command:approve-pairing";
1440
+ channel: string;
1441
+ requestId: string;
1442
+ pairingId: string;
1443
+ }>, z.ZodObject<{
1444
+ type: z.ZodLiteral<"command:approve-device">;
1445
+ requestId: z.ZodString;
1446
+ deviceId: z.ZodString;
1447
+ }, "strip", z.ZodTypeAny, {
1448
+ type: "command:approve-device";
1449
+ requestId: string;
1450
+ deviceId: string;
1451
+ }, {
1452
+ type: "command:approve-device";
1453
+ requestId: string;
1454
+ deviceId: string;
1455
+ }>, z.ZodObject<{
1456
+ type: z.ZodLiteral<"command:approve-pairings-all">;
1457
+ requestId: z.ZodString;
1458
+ }, "strip", z.ZodTypeAny, {
1459
+ type: "command:approve-pairings-all";
1460
+ requestId: string;
1461
+ }, {
1462
+ type: "command:approve-pairings-all";
1463
+ requestId: string;
1464
+ }>, z.ZodObject<{
1465
+ type: z.ZodLiteral<"command:approve-devices-all">;
1466
+ requestId: z.ZodString;
1467
+ }, "strip", z.ZodTypeAny, {
1468
+ type: "command:approve-devices-all";
1469
+ requestId: string;
1470
+ }, {
1471
+ type: "command:approve-devices-all";
1472
+ requestId: string;
1473
+ }>]>;
1474
+ export declare const adminWSTicketResponseSchema: z.ZodObject<{
1475
+ ticket: z.ZodString;
1476
+ }, "strip", z.ZodTypeAny, {
1477
+ ticket: string;
1478
+ }, {
1479
+ ticket: string;
1480
+ }>;