@myagentroam/protocol 0.13.10 → 0.13.12

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,789 @@
1
+ import { z } from 'zod';
2
+ export declare const remoteDesktopModeSchema: z.ZodEnum<["VIEW", "CONTROL"]>;
3
+ /**
4
+ * The adapter supplies [a,b,c,d,tx,ty], mapping x'=a*x+c*y+tx and
5
+ * y'=b*x+d*y+ty; the browser must not infer it from devicePixelRatio.
6
+ */
7
+ export declare const remoteDesktopDescriptionSchema: z.ZodEffects<z.ZodObject<{
8
+ desktopGeneration: z.ZodString;
9
+ topologyRevision: z.ZodNumber;
10
+ framebuffer: z.ZodObject<{
11
+ width: z.ZodNumber;
12
+ height: z.ZodNumber;
13
+ }, "strict", z.ZodTypeAny, {
14
+ width: number;
15
+ height: number;
16
+ }, {
17
+ width: number;
18
+ height: number;
19
+ }>;
20
+ displays: z.ZodArray<z.ZodObject<{
21
+ displayId: z.ZodString;
22
+ name: z.ZodString;
23
+ primary: z.ZodBoolean;
24
+ nativeBounds: z.ZodObject<{
25
+ x: z.ZodNumber;
26
+ y: z.ZodNumber;
27
+ width: z.ZodNumber;
28
+ height: z.ZodNumber;
29
+ }, "strict", z.ZodTypeAny, {
30
+ x: number;
31
+ y: number;
32
+ width: number;
33
+ height: number;
34
+ }, {
35
+ x: number;
36
+ y: number;
37
+ width: number;
38
+ height: number;
39
+ }>;
40
+ framebufferBounds: z.ZodObject<{
41
+ x: z.ZodNumber;
42
+ y: z.ZodNumber;
43
+ width: z.ZodNumber;
44
+ height: z.ZodNumber;
45
+ }, "strict", z.ZodTypeAny, {
46
+ x: number;
47
+ y: number;
48
+ width: number;
49
+ height: number;
50
+ }, {
51
+ x: number;
52
+ y: number;
53
+ width: number;
54
+ height: number;
55
+ }>;
56
+ nativeToFramebuffer: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
57
+ }, "strict", z.ZodTypeAny, {
58
+ name: string;
59
+ displayId: string;
60
+ primary: boolean;
61
+ nativeBounds: {
62
+ x: number;
63
+ y: number;
64
+ width: number;
65
+ height: number;
66
+ };
67
+ framebufferBounds: {
68
+ x: number;
69
+ y: number;
70
+ width: number;
71
+ height: number;
72
+ };
73
+ nativeToFramebuffer: [number, number, number, number, number, number];
74
+ }, {
75
+ name: string;
76
+ displayId: string;
77
+ primary: boolean;
78
+ nativeBounds: {
79
+ x: number;
80
+ y: number;
81
+ width: number;
82
+ height: number;
83
+ };
84
+ framebufferBounds: {
85
+ x: number;
86
+ y: number;
87
+ width: number;
88
+ height: number;
89
+ };
90
+ nativeToFramebuffer: [number, number, number, number, number, number];
91
+ }>, "many">;
92
+ }, "strict", z.ZodTypeAny, {
93
+ desktopGeneration: string;
94
+ topologyRevision: number;
95
+ framebuffer: {
96
+ width: number;
97
+ height: number;
98
+ };
99
+ displays: {
100
+ name: string;
101
+ displayId: string;
102
+ primary: boolean;
103
+ nativeBounds: {
104
+ x: number;
105
+ y: number;
106
+ width: number;
107
+ height: number;
108
+ };
109
+ framebufferBounds: {
110
+ x: number;
111
+ y: number;
112
+ width: number;
113
+ height: number;
114
+ };
115
+ nativeToFramebuffer: [number, number, number, number, number, number];
116
+ }[];
117
+ }, {
118
+ desktopGeneration: string;
119
+ topologyRevision: number;
120
+ framebuffer: {
121
+ width: number;
122
+ height: number;
123
+ };
124
+ displays: {
125
+ name: string;
126
+ displayId: string;
127
+ primary: boolean;
128
+ nativeBounds: {
129
+ x: number;
130
+ y: number;
131
+ width: number;
132
+ height: number;
133
+ };
134
+ framebufferBounds: {
135
+ x: number;
136
+ y: number;
137
+ width: number;
138
+ height: number;
139
+ };
140
+ nativeToFramebuffer: [number, number, number, number, number, number];
141
+ }[];
142
+ }>, {
143
+ desktopGeneration: string;
144
+ topologyRevision: number;
145
+ framebuffer: {
146
+ width: number;
147
+ height: number;
148
+ };
149
+ displays: {
150
+ name: string;
151
+ displayId: string;
152
+ primary: boolean;
153
+ nativeBounds: {
154
+ x: number;
155
+ y: number;
156
+ width: number;
157
+ height: number;
158
+ };
159
+ framebufferBounds: {
160
+ x: number;
161
+ y: number;
162
+ width: number;
163
+ height: number;
164
+ };
165
+ nativeToFramebuffer: [number, number, number, number, number, number];
166
+ }[];
167
+ }, {
168
+ desktopGeneration: string;
169
+ topologyRevision: number;
170
+ framebuffer: {
171
+ width: number;
172
+ height: number;
173
+ };
174
+ displays: {
175
+ name: string;
176
+ displayId: string;
177
+ primary: boolean;
178
+ nativeBounds: {
179
+ x: number;
180
+ y: number;
181
+ width: number;
182
+ height: number;
183
+ };
184
+ framebufferBounds: {
185
+ x: number;
186
+ y: number;
187
+ width: number;
188
+ height: number;
189
+ };
190
+ nativeToFramebuffer: [number, number, number, number, number, number];
191
+ }[];
192
+ }>;
193
+ export type RemoteDesktopDescription = z.infer<typeof remoteDesktopDescriptionSchema>;
194
+ export declare const remoteDesktopCapabilitySchema: z.ZodDiscriminatedUnion<"available", [z.ZodObject<{
195
+ apiVersion: z.ZodLiteral<1>;
196
+ available: z.ZodLiteral<false>;
197
+ nodeGeneration: z.ZodString;
198
+ reasonCode: z.ZodString;
199
+ }, "strict", z.ZodTypeAny, {
200
+ apiVersion: 1;
201
+ nodeGeneration: string;
202
+ available: false;
203
+ reasonCode: string;
204
+ }, {
205
+ apiVersion: 1;
206
+ nodeGeneration: string;
207
+ available: false;
208
+ reasonCode: string;
209
+ }>, z.ZodObject<{
210
+ apiVersion: z.ZodLiteral<1>;
211
+ available: z.ZodLiteral<true>;
212
+ nodeGeneration: z.ZodString;
213
+ backend: z.ZodEnum<["TIGERVNC_X0", "ULTRAVNC", "MACVNC"]>;
214
+ supportsView: z.ZodLiteral<true>;
215
+ supportsControl: z.ZodBoolean;
216
+ supportsMultiDisplay: z.ZodBoolean;
217
+ supportsUnicodePaste: z.ZodBoolean;
218
+ transports: z.ZodEffects<z.ZodArray<z.ZodEnum<["DIRECT", "RELAY"]>, "many">, ("DIRECT" | "RELAY")[], ("DIRECT" | "RELAY")[]>;
219
+ }, "strict", z.ZodTypeAny, {
220
+ apiVersion: 1;
221
+ nodeGeneration: string;
222
+ available: true;
223
+ backend: "TIGERVNC_X0" | "ULTRAVNC" | "MACVNC";
224
+ supportsView: true;
225
+ supportsControl: boolean;
226
+ supportsMultiDisplay: boolean;
227
+ supportsUnicodePaste: boolean;
228
+ transports: ("DIRECT" | "RELAY")[];
229
+ }, {
230
+ apiVersion: 1;
231
+ nodeGeneration: string;
232
+ available: true;
233
+ backend: "TIGERVNC_X0" | "ULTRAVNC" | "MACVNC";
234
+ supportsView: true;
235
+ supportsControl: boolean;
236
+ supportsMultiDisplay: boolean;
237
+ supportsUnicodePaste: boolean;
238
+ transports: ("DIRECT" | "RELAY")[];
239
+ }>]>;
240
+ export type RemoteDesktopCapability = z.infer<typeof remoteDesktopCapabilitySchema>;
241
+ /** Authenticated page control messages, never an RFB data or input protocol. */
242
+ export declare const remoteDesktopDirectBrowserMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
243
+ type: z.ZodLiteral<"desktop.direct.prepare">;
244
+ requestId: z.ZodString;
245
+ nodeId: z.ZodString;
246
+ nodeGeneration: z.ZodString;
247
+ transportSessionId: z.ZodString;
248
+ desktopGeneration: z.ZodString;
249
+ topologyRevision: z.ZodNumber;
250
+ mode: z.ZodEnum<["VIEW", "CONTROL"]>;
251
+ }, "strict", z.ZodTypeAny, {
252
+ type: "desktop.direct.prepare";
253
+ requestId: string;
254
+ nodeId: string;
255
+ nodeGeneration: string;
256
+ transportSessionId: string;
257
+ mode: "VIEW" | "CONTROL";
258
+ desktopGeneration: string;
259
+ topologyRevision: number;
260
+ }, {
261
+ type: "desktop.direct.prepare";
262
+ requestId: string;
263
+ nodeId: string;
264
+ nodeGeneration: string;
265
+ transportSessionId: string;
266
+ mode: "VIEW" | "CONTROL";
267
+ desktopGeneration: string;
268
+ topologyRevision: number;
269
+ }>, z.ZodObject<{
270
+ type: z.ZodLiteral<"desktop.direct.heartbeat">;
271
+ attachmentId: z.ZodString;
272
+ }, "strict", z.ZodTypeAny, {
273
+ type: "desktop.direct.heartbeat";
274
+ attachmentId: string;
275
+ }, {
276
+ type: "desktop.direct.heartbeat";
277
+ attachmentId: string;
278
+ }>, z.ZodObject<{
279
+ type: z.ZodLiteral<"desktop.direct.cancel">;
280
+ attachmentId: z.ZodString;
281
+ }, "strict", z.ZodTypeAny, {
282
+ type: "desktop.direct.cancel";
283
+ attachmentId: string;
284
+ }, {
285
+ type: "desktop.direct.cancel";
286
+ attachmentId: string;
287
+ }>, z.ZodObject<{
288
+ type: z.ZodLiteral<"desktop.ready">;
289
+ attachmentId: z.ZodString;
290
+ }, "strict", z.ZodTypeAny, {
291
+ type: "desktop.ready";
292
+ attachmentId: string;
293
+ }, {
294
+ type: "desktop.ready";
295
+ attachmentId: string;
296
+ }>]>;
297
+ export type RemoteDesktopDirectBrowserMessage = z.infer<typeof remoteDesktopDirectBrowserMessageSchema>;
298
+ export declare const remoteDesktopDirectServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
299
+ type: z.ZodLiteral<"desktop.direct.prepared">;
300
+ requestId: z.ZodString;
301
+ attachmentId: z.ZodString;
302
+ grant: z.ZodString;
303
+ openExpiresAt: z.ZodNumber;
304
+ expiresAt: z.ZodNumber;
305
+ }, "strict", z.ZodTypeAny, {
306
+ type: "desktop.direct.prepared";
307
+ expiresAt: number;
308
+ requestId: string;
309
+ grant: string;
310
+ openExpiresAt: number;
311
+ attachmentId: string;
312
+ }, {
313
+ type: "desktop.direct.prepared";
314
+ expiresAt: number;
315
+ requestId: string;
316
+ grant: string;
317
+ openExpiresAt: number;
318
+ attachmentId: string;
319
+ }>, z.ZodObject<{
320
+ type: z.ZodLiteral<"desktop.direct.heartbeat">;
321
+ attachmentId: z.ZodString;
322
+ expiresAt: z.ZodNumber;
323
+ }, "strict", z.ZodTypeAny, {
324
+ type: "desktop.direct.heartbeat";
325
+ expiresAt: number;
326
+ attachmentId: string;
327
+ }, {
328
+ type: "desktop.direct.heartbeat";
329
+ expiresAt: number;
330
+ attachmentId: string;
331
+ }>, z.ZodObject<{
332
+ type: z.ZodLiteral<"desktop.direct.closed">;
333
+ attachmentId: z.ZodString;
334
+ code: z.ZodString;
335
+ }, "strict", z.ZodTypeAny, {
336
+ code: string;
337
+ type: "desktop.direct.closed";
338
+ attachmentId: string;
339
+ }, {
340
+ code: string;
341
+ type: "desktop.direct.closed";
342
+ attachmentId: string;
343
+ }>, z.ZodObject<{
344
+ type: z.ZodLiteral<"desktop.direct.settled">;
345
+ attachmentId: z.ZodString;
346
+ code: z.ZodString;
347
+ }, "strict", z.ZodTypeAny, {
348
+ code: string;
349
+ type: "desktop.direct.settled";
350
+ attachmentId: string;
351
+ }, {
352
+ code: string;
353
+ type: "desktop.direct.settled";
354
+ attachmentId: string;
355
+ }>, z.ZodObject<{
356
+ type: z.ZodLiteral<"desktop.direct.error">;
357
+ requestId: z.ZodOptional<z.ZodString>;
358
+ attachmentId: z.ZodOptional<z.ZodString>;
359
+ settled: z.ZodOptional<z.ZodLiteral<true>>;
360
+ code: z.ZodString;
361
+ message: z.ZodString;
362
+ }, "strict", z.ZodTypeAny, {
363
+ code: string;
364
+ message: string;
365
+ type: "desktop.direct.error";
366
+ requestId?: string | undefined;
367
+ attachmentId?: string | undefined;
368
+ settled?: true | undefined;
369
+ }, {
370
+ code: string;
371
+ message: string;
372
+ type: "desktop.direct.error";
373
+ requestId?: string | undefined;
374
+ attachmentId?: string | undefined;
375
+ settled?: true | undefined;
376
+ }>]>;
377
+ export type RemoteDesktopDirectServerMessage = z.infer<typeof remoteDesktopDirectServerMessageSchema>;
378
+ export declare const remoteDesktopDirectNodeCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
379
+ type: z.ZodLiteral<"desktop.direct.prepare">;
380
+ attachmentId: z.ZodString;
381
+ transportSessionId: z.ZodString;
382
+ workbenchConnectionId: z.ZodString;
383
+ nodeGeneration: z.ZodString;
384
+ desktopGeneration: z.ZodString;
385
+ topologyRevision: z.ZodNumber;
386
+ mode: z.ZodEnum<["VIEW", "CONTROL"]>;
387
+ grant: z.ZodString;
388
+ browserFingerprint: z.ZodString;
389
+ nodeFingerprint: z.ZodString;
390
+ openExpiresAt: z.ZodNumber;
391
+ expiresAt: z.ZodNumber;
392
+ }, "strict", z.ZodTypeAny, {
393
+ type: "desktop.direct.prepare";
394
+ expiresAt: number;
395
+ nodeGeneration: string;
396
+ transportSessionId: string;
397
+ grant: string;
398
+ openExpiresAt: number;
399
+ workbenchConnectionId: string;
400
+ browserFingerprint: string;
401
+ nodeFingerprint: string;
402
+ mode: "VIEW" | "CONTROL";
403
+ desktopGeneration: string;
404
+ topologyRevision: number;
405
+ attachmentId: string;
406
+ }, {
407
+ type: "desktop.direct.prepare";
408
+ expiresAt: number;
409
+ nodeGeneration: string;
410
+ transportSessionId: string;
411
+ grant: string;
412
+ openExpiresAt: number;
413
+ workbenchConnectionId: string;
414
+ browserFingerprint: string;
415
+ nodeFingerprint: string;
416
+ mode: "VIEW" | "CONTROL";
417
+ desktopGeneration: string;
418
+ topologyRevision: number;
419
+ attachmentId: string;
420
+ }>, z.ZodObject<{
421
+ type: z.ZodLiteral<"desktop.direct.heartbeat">;
422
+ attachmentId: z.ZodString;
423
+ expiresAt: z.ZodNumber;
424
+ }, "strict", z.ZodTypeAny, {
425
+ type: "desktop.direct.heartbeat";
426
+ expiresAt: number;
427
+ attachmentId: string;
428
+ }, {
429
+ type: "desktop.direct.heartbeat";
430
+ expiresAt: number;
431
+ attachmentId: string;
432
+ }>, z.ZodObject<{
433
+ type: z.ZodLiteral<"desktop.direct.cancel">;
434
+ attachmentId: z.ZodString;
435
+ code: z.ZodString;
436
+ }, "strict", z.ZodTypeAny, {
437
+ code: string;
438
+ type: "desktop.direct.cancel";
439
+ attachmentId: string;
440
+ }, {
441
+ code: string;
442
+ type: "desktop.direct.cancel";
443
+ attachmentId: string;
444
+ }>, z.ZodObject<{
445
+ type: z.ZodLiteral<"desktop.ready">;
446
+ attachmentId: z.ZodString;
447
+ }, "strict", z.ZodTypeAny, {
448
+ type: "desktop.ready";
449
+ attachmentId: string;
450
+ }, {
451
+ type: "desktop.ready";
452
+ attachmentId: string;
453
+ }>]>;
454
+ export type RemoteDesktopDirectNodeCommand = z.infer<typeof remoteDesktopDirectNodeCommandSchema>;
455
+ export declare const remoteDesktopDirectNodeEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
456
+ type: z.ZodLiteral<"desktop.direct.ready">;
457
+ attachmentId: z.ZodString;
458
+ nodeGeneration: z.ZodString;
459
+ phase: z.ZodEnum<["PREPARED", "OPEN", "ATTACHED", "ACTIVE"]>;
460
+ }, "strict", z.ZodTypeAny, {
461
+ type: "desktop.direct.ready";
462
+ nodeGeneration: string;
463
+ phase: "OPEN" | "PREPARED" | "ATTACHED" | "ACTIVE";
464
+ attachmentId: string;
465
+ }, {
466
+ type: "desktop.direct.ready";
467
+ nodeGeneration: string;
468
+ phase: "OPEN" | "PREPARED" | "ATTACHED" | "ACTIVE";
469
+ attachmentId: string;
470
+ }>, z.ZodObject<{
471
+ type: z.ZodLiteral<"desktop.direct.closed">;
472
+ attachmentId: z.ZodString;
473
+ nodeGeneration: z.ZodString;
474
+ code: z.ZodString;
475
+ }, "strict", z.ZodTypeAny, {
476
+ code: string;
477
+ type: "desktop.direct.closed";
478
+ nodeGeneration: string;
479
+ attachmentId: string;
480
+ }, {
481
+ code: string;
482
+ type: "desktop.direct.closed";
483
+ nodeGeneration: string;
484
+ attachmentId: string;
485
+ }>]>;
486
+ export type RemoteDesktopDirectNodeEvent = z.infer<typeof remoteDesktopDirectNodeEventSchema>;
487
+ /** Relay uses the same admission phases and RFB OPEN; its one-time data sockets are distinct. */
488
+ export declare const remoteDesktopRelayBrowserMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
489
+ type: z.ZodLiteral<"desktop.relay.prepare">;
490
+ requestId: z.ZodString;
491
+ nodeId: z.ZodString;
492
+ nodeGeneration: z.ZodString;
493
+ desktopGeneration: z.ZodString;
494
+ topologyRevision: z.ZodNumber;
495
+ mode: z.ZodEnum<["VIEW", "CONTROL"]>;
496
+ }, "strict", z.ZodTypeAny, {
497
+ type: "desktop.relay.prepare";
498
+ requestId: string;
499
+ nodeId: string;
500
+ nodeGeneration: string;
501
+ mode: "VIEW" | "CONTROL";
502
+ desktopGeneration: string;
503
+ topologyRevision: number;
504
+ }, {
505
+ type: "desktop.relay.prepare";
506
+ requestId: string;
507
+ nodeId: string;
508
+ nodeGeneration: string;
509
+ mode: "VIEW" | "CONTROL";
510
+ desktopGeneration: string;
511
+ topologyRevision: number;
512
+ }>, z.ZodObject<{
513
+ type: z.ZodLiteral<"desktop.relay.heartbeat">;
514
+ attachmentId: z.ZodString;
515
+ }, "strict", z.ZodTypeAny, {
516
+ type: "desktop.relay.heartbeat";
517
+ attachmentId: string;
518
+ }, {
519
+ type: "desktop.relay.heartbeat";
520
+ attachmentId: string;
521
+ }>, z.ZodObject<{
522
+ type: z.ZodLiteral<"desktop.relay.cancel">;
523
+ attachmentId: z.ZodString;
524
+ }, "strict", z.ZodTypeAny, {
525
+ type: "desktop.relay.cancel";
526
+ attachmentId: string;
527
+ }, {
528
+ type: "desktop.relay.cancel";
529
+ attachmentId: string;
530
+ }>, z.ZodObject<{
531
+ type: z.ZodLiteral<"desktop.ready">;
532
+ attachmentId: z.ZodString;
533
+ }, "strict", z.ZodTypeAny, {
534
+ type: "desktop.ready";
535
+ attachmentId: string;
536
+ }, {
537
+ type: "desktop.ready";
538
+ attachmentId: string;
539
+ }>]>;
540
+ export type RemoteDesktopRelayBrowserMessage = z.infer<typeof remoteDesktopRelayBrowserMessageSchema>;
541
+ export declare const remoteDesktopRelayServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
542
+ type: z.ZodLiteral<"desktop.relay.prepared">;
543
+ requestId: z.ZodString;
544
+ attachmentId: z.ZodString;
545
+ grant: z.ZodString;
546
+ ticket: z.ZodString;
547
+ openExpiresAt: z.ZodNumber;
548
+ expiresAt: z.ZodNumber;
549
+ }, "strict", z.ZodTypeAny, {
550
+ type: "desktop.relay.prepared";
551
+ expiresAt: number;
552
+ requestId: string;
553
+ grant: string;
554
+ openExpiresAt: number;
555
+ attachmentId: string;
556
+ ticket: string;
557
+ }, {
558
+ type: "desktop.relay.prepared";
559
+ expiresAt: number;
560
+ requestId: string;
561
+ grant: string;
562
+ openExpiresAt: number;
563
+ attachmentId: string;
564
+ ticket: string;
565
+ }>, z.ZodObject<{
566
+ type: z.ZodLiteral<"desktop.relay.heartbeat">;
567
+ attachmentId: z.ZodString;
568
+ expiresAt: z.ZodNumber;
569
+ }, "strict", z.ZodTypeAny, {
570
+ type: "desktop.relay.heartbeat";
571
+ expiresAt: number;
572
+ attachmentId: string;
573
+ }, {
574
+ type: "desktop.relay.heartbeat";
575
+ expiresAt: number;
576
+ attachmentId: string;
577
+ }>, z.ZodObject<{
578
+ type: z.ZodLiteral<"desktop.relay.closed">;
579
+ attachmentId: z.ZodString;
580
+ code: z.ZodString;
581
+ }, "strict", z.ZodTypeAny, {
582
+ code: string;
583
+ type: "desktop.relay.closed";
584
+ attachmentId: string;
585
+ }, {
586
+ code: string;
587
+ type: "desktop.relay.closed";
588
+ attachmentId: string;
589
+ }>, z.ZodObject<{
590
+ type: z.ZodLiteral<"desktop.relay.settled">;
591
+ attachmentId: z.ZodString;
592
+ code: z.ZodString;
593
+ }, "strict", z.ZodTypeAny, {
594
+ code: string;
595
+ type: "desktop.relay.settled";
596
+ attachmentId: string;
597
+ }, {
598
+ code: string;
599
+ type: "desktop.relay.settled";
600
+ attachmentId: string;
601
+ }>, z.ZodObject<{
602
+ type: z.ZodLiteral<"desktop.relay.error">;
603
+ requestId: z.ZodOptional<z.ZodString>;
604
+ attachmentId: z.ZodOptional<z.ZodString>;
605
+ settled: z.ZodOptional<z.ZodLiteral<true>>;
606
+ code: z.ZodString;
607
+ message: z.ZodString;
608
+ }, "strict", z.ZodTypeAny, {
609
+ code: string;
610
+ message: string;
611
+ type: "desktop.relay.error";
612
+ requestId?: string | undefined;
613
+ attachmentId?: string | undefined;
614
+ settled?: true | undefined;
615
+ }, {
616
+ code: string;
617
+ message: string;
618
+ type: "desktop.relay.error";
619
+ requestId?: string | undefined;
620
+ attachmentId?: string | undefined;
621
+ settled?: true | undefined;
622
+ }>]>;
623
+ export type RemoteDesktopRelayServerMessage = z.infer<typeof remoteDesktopRelayServerMessageSchema>;
624
+ export declare const remoteDesktopRelayNodeCommandSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
625
+ type: z.ZodLiteral<"desktop.relay.prepare">;
626
+ attachmentId: z.ZodString;
627
+ workbenchConnectionId: z.ZodString;
628
+ nodeGeneration: z.ZodString;
629
+ desktopGeneration: z.ZodString;
630
+ topologyRevision: z.ZodNumber;
631
+ mode: z.ZodEnum<["VIEW", "CONTROL"]>;
632
+ grant: z.ZodString;
633
+ ticket: z.ZodString;
634
+ openExpiresAt: z.ZodNumber;
635
+ expiresAt: z.ZodNumber;
636
+ }, "strict", z.ZodTypeAny, {
637
+ type: "desktop.relay.prepare";
638
+ expiresAt: number;
639
+ nodeGeneration: string;
640
+ grant: string;
641
+ openExpiresAt: number;
642
+ workbenchConnectionId: string;
643
+ mode: "VIEW" | "CONTROL";
644
+ desktopGeneration: string;
645
+ topologyRevision: number;
646
+ attachmentId: string;
647
+ ticket: string;
648
+ }, {
649
+ type: "desktop.relay.prepare";
650
+ expiresAt: number;
651
+ nodeGeneration: string;
652
+ grant: string;
653
+ openExpiresAt: number;
654
+ workbenchConnectionId: string;
655
+ mode: "VIEW" | "CONTROL";
656
+ desktopGeneration: string;
657
+ topologyRevision: number;
658
+ attachmentId: string;
659
+ ticket: string;
660
+ }>, z.ZodObject<{
661
+ type: z.ZodLiteral<"desktop.relay.heartbeat">;
662
+ attachmentId: z.ZodString;
663
+ expiresAt: z.ZodNumber;
664
+ }, "strict", z.ZodTypeAny, {
665
+ type: "desktop.relay.heartbeat";
666
+ expiresAt: number;
667
+ attachmentId: string;
668
+ }, {
669
+ type: "desktop.relay.heartbeat";
670
+ expiresAt: number;
671
+ attachmentId: string;
672
+ }>, z.ZodObject<{
673
+ type: z.ZodLiteral<"desktop.relay.cancel">;
674
+ attachmentId: z.ZodString;
675
+ code: z.ZodString;
676
+ }, "strict", z.ZodTypeAny, {
677
+ code: string;
678
+ type: "desktop.relay.cancel";
679
+ attachmentId: string;
680
+ }, {
681
+ code: string;
682
+ type: "desktop.relay.cancel";
683
+ attachmentId: string;
684
+ }>, z.ZodObject<{
685
+ type: z.ZodLiteral<"desktop.ready">;
686
+ attachmentId: z.ZodString;
687
+ }, "strict", z.ZodTypeAny, {
688
+ type: "desktop.ready";
689
+ attachmentId: string;
690
+ }, {
691
+ type: "desktop.ready";
692
+ attachmentId: string;
693
+ }>]>;
694
+ export type RemoteDesktopRelayNodeCommand = z.infer<typeof remoteDesktopRelayNodeCommandSchema>;
695
+ export declare const remoteDesktopRelayNodeEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
696
+ type: z.ZodLiteral<"desktop.relay.ready">;
697
+ attachmentId: z.ZodString;
698
+ nodeGeneration: z.ZodString;
699
+ phase: z.ZodEnum<["PREPARED", "OPEN", "ATTACHED", "ACTIVE"]>;
700
+ }, "strict", z.ZodTypeAny, {
701
+ type: "desktop.relay.ready";
702
+ nodeGeneration: string;
703
+ phase: "OPEN" | "PREPARED" | "ATTACHED" | "ACTIVE";
704
+ attachmentId: string;
705
+ }, {
706
+ type: "desktop.relay.ready";
707
+ nodeGeneration: string;
708
+ phase: "OPEN" | "PREPARED" | "ATTACHED" | "ACTIVE";
709
+ attachmentId: string;
710
+ }>, z.ZodObject<{
711
+ type: z.ZodLiteral<"desktop.relay.closed">;
712
+ attachmentId: z.ZodString;
713
+ nodeGeneration: z.ZodString;
714
+ code: z.ZodString;
715
+ }, "strict", z.ZodTypeAny, {
716
+ code: string;
717
+ type: "desktop.relay.closed";
718
+ nodeGeneration: string;
719
+ attachmentId: string;
720
+ }, {
721
+ code: string;
722
+ type: "desktop.relay.closed";
723
+ nodeGeneration: string;
724
+ attachmentId: string;
725
+ }>]>;
726
+ export type RemoteDesktopRelayNodeEvent = z.infer<typeof remoteDesktopRelayNodeEventSchema>;
727
+ /** Sent only as the first WebSocket message, never in a URL. */
728
+ export declare const remoteDesktopRelayBrowserAttachSchema: z.ZodObject<{
729
+ type: z.ZodLiteral<"desktop.relay.browser">;
730
+ attachmentId: z.ZodString;
731
+ workbenchConnectionId: z.ZodString;
732
+ ticket: z.ZodString;
733
+ }, "strict", z.ZodTypeAny, {
734
+ type: "desktop.relay.browser";
735
+ workbenchConnectionId: string;
736
+ attachmentId: string;
737
+ ticket: string;
738
+ }, {
739
+ type: "desktop.relay.browser";
740
+ workbenchConnectionId: string;
741
+ attachmentId: string;
742
+ ticket: string;
743
+ }>;
744
+ export declare const remoteDesktopRelayNodeAttachSchema: z.ZodObject<{
745
+ type: z.ZodLiteral<"desktop.relay.node">;
746
+ nodeId: z.ZodString;
747
+ nodeGeneration: z.ZodString;
748
+ attachmentId: z.ZodString;
749
+ ticket: z.ZodString;
750
+ credential: z.ZodString;
751
+ }, "strict", z.ZodTypeAny, {
752
+ type: "desktop.relay.node";
753
+ nodeId: string;
754
+ nodeGeneration: string;
755
+ attachmentId: string;
756
+ ticket: string;
757
+ credential: string;
758
+ }, {
759
+ type: "desktop.relay.node";
760
+ nodeId: string;
761
+ nodeGeneration: string;
762
+ attachmentId: string;
763
+ ticket: string;
764
+ credential: string;
765
+ }>;
766
+ /** Only this one-time authorization envelope precedes standard RFB bytes. */
767
+ export declare const remoteDesktopDirectOpenFrameSchema: z.ZodObject<{
768
+ type: z.ZodLiteral<"OPEN">;
769
+ attachmentId: z.ZodString;
770
+ grant: z.ZodString;
771
+ }, "strict", z.ZodTypeAny, {
772
+ type: "OPEN";
773
+ grant: string;
774
+ attachmentId: string;
775
+ }, {
776
+ type: "OPEN";
777
+ grant: string;
778
+ attachmentId: string;
779
+ }>;
780
+ export declare const remoteDesktopAttachedFrameSchema: z.ZodObject<{
781
+ type: z.ZodLiteral<"ATTACHED">;
782
+ attachmentId: z.ZodString;
783
+ }, "strict", z.ZodTypeAny, {
784
+ type: "ATTACHED";
785
+ attachmentId: string;
786
+ }, {
787
+ type: "ATTACHED";
788
+ attachmentId: string;
789
+ }>;