@aperture-browser/session-client 0.0.0-stage → 1.0.0-beta.1

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,2892 @@
1
+ import * as Effect from "effect/Effect";
2
+ import * as Scope from "effect/Scope";
3
+ import * as Context from "effect/Context";
4
+ import * as Layer from "effect/Layer";
5
+ import * as Stream from "effect/Stream";
6
+ import * as Schema from "effect/Schema";
7
+ import { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
8
+ import { Message } from "@bufbuild/protobuf";
9
+
10
+ //#region src/address.d.ts
11
+ interface Address {
12
+ /** The session's base, e.g. `http://host:7900/` or `http://host:7900/sessions/<id>`. */
13
+ readonly url: string;
14
+ readonly token?: string | undefined;
15
+ /** The operator's display name. */
16
+ readonly name?: string | undefined;
17
+ }
18
+ //#endregion
19
+ //#region src/errors.d.ts
20
+ declare const SessionError_base: Schema.Class<SessionError, Schema.TaggedStruct<"SessionError", {
21
+ readonly message: Schema.String; /** The HTTP status the session answered with, when it answered. */
22
+ readonly status: Schema.optional<Schema.Number>;
23
+ readonly cause: Schema.optional<Schema.Defect>;
24
+ }>, import("effect/Cause").YieldableError>;
25
+ /** A request to the session that could not be made, or that the session refused. */
26
+ declare class SessionError extends SessionError_base {}
27
+ declare namespace live_pb_d_exports {
28
+ export { Along$1 as Along, AlongSchema, Asked, AskedSchema, AudioFrame, AudioFrameSchema, ClientMessage, ClientMessageSchema, Clipboard, ClipboardSchema, Clipboard_Form, Clipboard_FormSchema, Close, CloseSchema, CopyPicture, CopyPictureSchema, Cursor, CursorSchema, Cursor_Hidden, Cursor_HiddenSchema, Device, DeviceSchema, Download$1 as Download, DownloadSchema, DownloadState$1 as DownloadState, DownloadStateSchema, Downloads, DownloadsSchema, Draw, DrawSchema, Drop, DropSchema, Failed, FailedSchema, Features$1 as Features, FeaturesSchema, FileRequest$1 as FileRequest, FileRequestSchema, FileRequests, FileRequestsSchema, FilesChosen, FilesChosenSchema, Follow, FollowSchema, Go, GoSchema, Grant$1 as Grant, GrantSchema, HeldTab$1 as HeldTab, HeldTabSchema, Hello, HelloSchema, Key, KeySchema, Lease, LeaseAction$1 as LeaseAction, LeaseActionSchema, LeaseSchema, Member$1 as Member, MemberSchema, Menu$1 as Menu, MenuSchema, MouseButton, MouseButtonSchema, Pace$1 as Pace, PaceSchema, Paced, PacedSchema, PageMode$1 as PageMode, PageModeSchema, Pixels, PixelsSchema, Point, PointSchema, Pointer, PointerButton, PointerButtonSchema, PointerLeave, PointerLeaveSchema, PointerMotion, PointerMotionSchema, PointerSchema, PointerScroll, PointerScrollSchema, Pointing, PointingSchema, Presence$1 as Presence, PresenceSchema, Restoring$1 as Restoring, RestoringSchema, Role$1 as Role, RoleSchema, RtcAnswer, RtcAnswerSchema, RtcOffer, RtcOfferSchema, RtcRefused, RtcRefusedSchema, Select, SelectSchema, Selected, SelectedSchema, ServerMessage, ServerMessageSchema, SetMode, SetModeSchema, Stroke, StrokePhase$1 as StrokePhase, StrokePhaseSchema, StrokeSchema, Target$1 as Target, TargetSchema, Targets, TargetsSchema, Text, TextSchema, Tile, TileSchema, VideoFormat$1 as VideoFormat, VideoFormatSchema, VideoFrame, VideoFrameSchema, VideoQuality$1 as VideoQuality, VideoQualitySchema, VideoShown, VideoShownSchema, VideoStatus$1 as VideoStatus, VideoStatusSchema, Viewport, ViewportSchema, file_aperture_live_v1_live };
29
+ }
30
+ /**
31
+ * Describes the file aperture/live/v1/live.proto.
32
+ */
33
+ declare const file_aperture_live_v1_live: GenFile;
34
+ /**
35
+ * @generated from message aperture.live.v1.ClientMessage
36
+ */
37
+ type ClientMessage = Message<"aperture.live.v1.ClientMessage"> & {
38
+ /**
39
+ * @generated from oneof aperture.live.v1.ClientMessage.message
40
+ */
41
+ message: {
42
+ /**
43
+ * The tab the client's video shows and its input goes to. Until the first one, the
44
+ * session picks the newest.
45
+ *
46
+ * @generated from field: aperture.live.v1.Select select = 1;
47
+ */
48
+ value: Select;
49
+ case: "select";
50
+ } | {
51
+ /**
52
+ * @generated from field: aperture.live.v1.PointerMotion pointer_motion = 2;
53
+ */
54
+ value: PointerMotion;
55
+ case: "pointerMotion";
56
+ } | {
57
+ /**
58
+ * @generated from field: aperture.live.v1.PointerButton pointer_button = 3;
59
+ */
60
+ value: PointerButton;
61
+ case: "pointerButton";
62
+ } | {
63
+ /**
64
+ * @generated from field: aperture.live.v1.PointerScroll pointer_scroll = 4;
65
+ */
66
+ value: PointerScroll;
67
+ case: "pointerScroll";
68
+ } | {
69
+ /**
70
+ * @generated from field: aperture.live.v1.PointerLeave pointer_leave = 5;
71
+ */
72
+ value: PointerLeave;
73
+ case: "pointerLeave";
74
+ } | {
75
+ /**
76
+ * @generated from field: aperture.live.v1.Key key = 6;
77
+ */
78
+ value: Key;
79
+ case: "key";
80
+ } | {
81
+ /**
82
+ * @generated from field: aperture.live.v1.Text text = 7;
83
+ */
84
+ value: Text;
85
+ case: "text";
86
+ } | {
87
+ /**
88
+ * @generated from field: aperture.live.v1.Viewport viewport = 8;
89
+ */
90
+ value: Viewport;
91
+ case: "viewport";
92
+ } | {
93
+ /**
94
+ * @generated from field: aperture.live.v1.Hello hello = 9;
95
+ */
96
+ value: Hello;
97
+ case: "hello";
98
+ } | {
99
+ /**
100
+ * @generated from field: aperture.live.v1.RtcOffer rtc_offer = 10;
101
+ */
102
+ value: RtcOffer;
103
+ case: "rtcOffer";
104
+ } | {
105
+ /**
106
+ * @generated from field: aperture.live.v1.VideoShown video_shown = 11;
107
+ */
108
+ value: VideoShown;
109
+ case: "videoShown";
110
+ } | {
111
+ /**
112
+ * Puts content on the session's clipboard, for a paste there to take: a client that
113
+ * pastes sends what it has, then the keys that paste.
114
+ *
115
+ * @generated from field: aperture.live.v1.Clipboard clipboard = 12;
116
+ */
117
+ value: Clipboard;
118
+ case: "clipboard";
119
+ } | {
120
+ /**
121
+ * @generated from field: aperture.live.v1.Drop drop = 13;
122
+ */
123
+ value: Drop;
124
+ case: "drop";
125
+ } | {
126
+ /**
127
+ * @generated from field: aperture.live.v1.FilesChosen files_chosen = 14;
128
+ */
129
+ value: FilesChosen;
130
+ case: "filesChosen";
131
+ } | {
132
+ /**
133
+ * @generated from field: aperture.live.v1.Lease lease = 15;
134
+ */
135
+ value: Lease;
136
+ case: "lease";
137
+ } | {
138
+ /**
139
+ * @generated from field: aperture.live.v1.Go go = 16;
140
+ */
141
+ value: Go;
142
+ case: "go";
143
+ } | {
144
+ /**
145
+ * @generated from field: aperture.live.v1.CopyPicture copy_picture = 17;
146
+ */
147
+ value: CopyPicture;
148
+ case: "copyPicture";
149
+ } | {
150
+ /**
151
+ * @generated from field: aperture.live.v1.Close close = 18;
152
+ */
153
+ value: Close;
154
+ case: "close";
155
+ } | {
156
+ /**
157
+ * @generated from field: aperture.live.v1.Follow follow = 19;
158
+ */
159
+ value: Follow;
160
+ case: "follow";
161
+ } | {
162
+ /**
163
+ * @generated from field: aperture.live.v1.Draw draw = 20;
164
+ */
165
+ value: Draw;
166
+ case: "draw";
167
+ } | {
168
+ /**
169
+ * @generated from field: aperture.live.v1.Pointing pointing = 21;
170
+ */
171
+ value: Pointing;
172
+ case: "pointing";
173
+ } | {
174
+ /**
175
+ * @generated from field: aperture.live.v1.Device device = 22;
176
+ */
177
+ value: Device;
178
+ case: "device";
179
+ } | {
180
+ /**
181
+ * @generated from field: aperture.live.v1.SetMode set_mode = 23;
182
+ */
183
+ value: SetMode;
184
+ case: "setMode";
185
+ } | {
186
+ case: undefined;
187
+ value?: undefined;
188
+ };
189
+ };
190
+ /**
191
+ * Describes the message aperture.live.v1.ClientMessage.
192
+ * Use `create(ClientMessageSchema)` to create a new message.
193
+ */
194
+ declare const ClientMessageSchema: GenMessage<ClientMessage>;
195
+ /**
196
+ * @generated from message aperture.live.v1.ServerMessage
197
+ */
198
+ type ServerMessage = Message<"aperture.live.v1.ServerMessage"> & {
199
+ /**
200
+ * @generated from oneof aperture.live.v1.ServerMessage.message
201
+ */
202
+ message: {
203
+ /**
204
+ * @generated from field: aperture.live.v1.Targets targets = 1;
205
+ */
206
+ value: Targets;
207
+ case: "targets";
208
+ } | {
209
+ /**
210
+ * @generated from field: aperture.live.v1.Selected selected = 2;
211
+ */
212
+ value: Selected;
213
+ case: "selected";
214
+ } | {
215
+ /**
216
+ * @generated from field: aperture.live.v1.Cursor cursor = 3;
217
+ */
218
+ value: Cursor;
219
+ case: "cursor";
220
+ } | {
221
+ /**
222
+ * @generated from field: aperture.live.v1.RtcAnswer rtc_answer = 4;
223
+ */
224
+ value: RtcAnswer;
225
+ case: "rtcAnswer";
226
+ } | {
227
+ /**
228
+ * @generated from field: aperture.live.v1.Tile tile = 5;
229
+ */
230
+ value: Tile;
231
+ case: "tile";
232
+ } | {
233
+ /**
234
+ * @generated from field: aperture.live.v1.RtcRefused rtc_refused = 6;
235
+ */
236
+ value: RtcRefused;
237
+ case: "rtcRefused";
238
+ } | {
239
+ /**
240
+ * @generated from field: aperture.live.v1.VideoFrame video_frame = 7;
241
+ */
242
+ value: VideoFrame;
243
+ case: "videoFrame";
244
+ } | {
245
+ /**
246
+ * @generated from field: aperture.live.v1.VideoStatus video_status = 8;
247
+ */
248
+ value: VideoStatus$1;
249
+ case: "videoStatus";
250
+ } | {
251
+ /**
252
+ * Something was copied in the session.
253
+ *
254
+ * @generated from field: aperture.live.v1.Clipboard clipboard = 9;
255
+ */
256
+ value: Clipboard;
257
+ case: "clipboard";
258
+ } | {
259
+ /**
260
+ * @generated from field: aperture.live.v1.Downloads downloads = 10;
261
+ */
262
+ value: Downloads;
263
+ case: "downloads";
264
+ } | {
265
+ /**
266
+ * @generated from field: aperture.live.v1.FileRequests file_requests = 11;
267
+ */
268
+ value: FileRequests;
269
+ case: "fileRequests";
270
+ } | {
271
+ /**
272
+ * @generated from field: aperture.live.v1.Presence presence = 12;
273
+ */
274
+ value: Presence$1;
275
+ case: "presence";
276
+ } | {
277
+ /**
278
+ * @generated from field: aperture.live.v1.Menu menu = 13;
279
+ */
280
+ value: Menu$1;
281
+ case: "menu";
282
+ } | {
283
+ /**
284
+ * @generated from field: aperture.live.v1.AudioFrame audio = 14;
285
+ */
286
+ value: AudioFrame;
287
+ case: "audio";
288
+ } | {
289
+ /**
290
+ * @generated from field: aperture.live.v1.Features features = 15;
291
+ */
292
+ value: Features$1;
293
+ case: "features";
294
+ } | {
295
+ /**
296
+ * @generated from field: aperture.live.v1.Failed failed = 16;
297
+ */
298
+ value: Failed;
299
+ case: "failed";
300
+ } | {
301
+ /**
302
+ * @generated from field: aperture.live.v1.Pointer pointer = 17;
303
+ */
304
+ value: Pointer;
305
+ case: "pointer";
306
+ } | {
307
+ /**
308
+ * @generated from field: aperture.live.v1.Stroke stroke = 18;
309
+ */
310
+ value: Stroke;
311
+ case: "stroke";
312
+ } | {
313
+ /**
314
+ * @generated from field: aperture.live.v1.Paced paced = 19;
315
+ */
316
+ value: Paced;
317
+ case: "paced";
318
+ } | {
319
+ /**
320
+ * @generated from field: aperture.live.v1.Restoring restoring = 20;
321
+ */
322
+ value: Restoring$1;
323
+ case: "restoring";
324
+ } | {
325
+ case: undefined;
326
+ value?: undefined;
327
+ };
328
+ };
329
+ /**
330
+ * Describes the message aperture.live.v1.ServerMessage.
331
+ * Use `create(ServerMessageSchema)` to create a new message.
332
+ */
333
+ declare const ServerMessageSchema: GenMessage<ServerMessage>;
334
+ /**
335
+ * Whether the session is being given what its browser starts with: the storage state it
336
+ * was created with, or one that is put into it. Told once the client said `hello`, and
337
+ * again whenever it changes. While it is underway the session takes no input and changes
338
+ * no tabs for anyone: its pages are not yet what they are to be.
339
+ *
340
+ * @generated from message aperture.live.v1.Restoring
341
+ */
342
+ type Restoring$1 = Message<"aperture.live.v1.Restoring"> & {
343
+ /**
344
+ * @generated from field: bool underway = 1;
345
+ */
346
+ underway: boolean;
347
+ /**
348
+ * What is put in, which is none of each until the state has come.
349
+ *
350
+ * @generated from field: uint32 tabs = 2;
351
+ */
352
+ tabs: number;
353
+ /**
354
+ * @generated from field: uint32 cookies = 3;
355
+ */
356
+ cookies: number;
357
+ /**
358
+ * @generated from field: uint32 origins = 4;
359
+ */
360
+ origins: number;
361
+ /**
362
+ * Why the state the session was to start with was not taken: the session is not what
363
+ * was asked for, and ends.
364
+ *
365
+ * @generated from field: optional string failure = 5;
366
+ */
367
+ failure?: string | undefined;
368
+ };
369
+ /**
370
+ * Describes the message aperture.live.v1.Restoring.
371
+ * Use `create(RestoringSchema)` to create a new message.
372
+ */
373
+ declare const RestoringSchema: GenMessage<Restoring$1>;
374
+ /**
375
+ * How the session's automation moves the pointer in a tab that is being recorded. It is
376
+ * the session's, the same for every recording and whoever watches: told once the client
377
+ * said `hello`, and again whenever it is set, which the session's `/pace` route and its
378
+ * `pace` tool do. A tab nothing records gets the automation's input at once.
379
+ *
380
+ * @generated from message aperture.live.v1.Paced
381
+ */
382
+ type Paced = Message<"aperture.live.v1.Paced"> & {
383
+ /**
384
+ * @generated from field: aperture.live.v1.Pace pace = 1;
385
+ */
386
+ pace: Pace$1;
387
+ };
388
+ /**
389
+ * Describes the message aperture.live.v1.Paced.
390
+ * Use `create(PacedSchema)` to create a new message.
391
+ */
392
+ declare const PacedSchema: GenMessage<Paced>;
393
+ /**
394
+ * What the client may do in the session, area by area: what whoever let it in gave it, of
395
+ * what the session offers at all. Sent first after `hello`. What is not granted is refused:
396
+ * a client need not show it. Watching takes no grant.
397
+ *
398
+ * @generated from message aperture.live.v1.Features
399
+ */
400
+ type Features$1 = Message<"aperture.live.v1.Features"> & {
401
+ /**
402
+ * Write: the pointer, the keyboard and what is dropped go into the tab the client holds.
403
+ *
404
+ * @generated from field: aperture.live.v1.Grant input = 9;
405
+ */
406
+ input?: Grant$1 | undefined;
407
+ /**
408
+ * Write: `go`, `close` and `viewport` are taken.
409
+ *
410
+ * @generated from field: aperture.live.v1.Grant tabs = 10;
411
+ */
412
+ tabs?: Grant$1 | undefined;
413
+ /**
414
+ * Write: a tab is taken from whoever holds it, without asking.
415
+ *
416
+ * @generated from field: aperture.live.v1.Grant lease = 11;
417
+ */
418
+ lease?: Grant$1 | undefined;
419
+ /**
420
+ * Read: targets tell which of them sound, and `audio` comes where asked for.
421
+ *
422
+ * @generated from field: aperture.live.v1.Grant sound = 1;
423
+ */
424
+ sound?: Grant$1 | undefined;
425
+ /**
426
+ * Read: files that were put into the session are listed. Write: files are taken (see
427
+ * `uploads` beside the session socket), and pages that ask for files are answered.
428
+ *
429
+ * @generated from field: aperture.live.v1.Grant uploads = 2;
430
+ */
431
+ uploads?: Grant$1 | undefined;
432
+ /**
433
+ * Read: what the session's browser downloaded is told in `downloads`, and fetched.
434
+ *
435
+ * @generated from field: aperture.live.v1.Grant downloads = 3;
436
+ */
437
+ downloads?: Grant$1 | undefined;
438
+ /**
439
+ * Read: recordings and screenshots are listed and fetched. Write: they are made.
440
+ *
441
+ * @generated from field: aperture.live.v1.Grant recordings = 4;
442
+ */
443
+ recordings?: Grant$1 | undefined;
444
+ /**
445
+ * Read: what is copied in the session is told in `clipboard`, and `copy_picture` is
446
+ * taken. Write: a client's `clipboard` is taken.
447
+ *
448
+ * @generated from field: aperture.live.v1.Grant clipboard = 5;
449
+ */
450
+ clipboard?: Grant$1 | undefined;
451
+ /**
452
+ * Write: the session's automation, at `mcp` beside the session socket.
453
+ *
454
+ * @generated from field: aperture.live.v1.Grant mcp = 6;
455
+ */
456
+ mcp?: Grant$1 | undefined;
457
+ /**
458
+ * Write: its browser's DevTools endpoint, at `cdp`.
459
+ *
460
+ * @generated from field: aperture.live.v1.Grant cdp = 7;
461
+ */
462
+ cdp?: Grant$1 | undefined;
463
+ /**
464
+ * Write: a tunnel, at `tunnel`.
465
+ *
466
+ * @generated from field: aperture.live.v1.Grant tunnel = 8;
467
+ */
468
+ tunnel?: Grant$1 | undefined;
469
+ };
470
+ /**
471
+ * Describes the message aperture.live.v1.Features.
472
+ * Use `create(FeaturesSchema)` to create a new message.
473
+ */
474
+ declare const FeaturesSchema: GenMessage<Features$1>;
475
+ /**
476
+ * @generated from message aperture.live.v1.Grant
477
+ */
478
+ type Grant$1 = Message<"aperture.live.v1.Grant"> & {
479
+ /**
480
+ * @generated from field: bool read = 1;
481
+ */
482
+ read: boolean;
483
+ /**
484
+ * @generated from field: bool write = 2;
485
+ */
486
+ write: boolean;
487
+ };
488
+ /**
489
+ * Describes the message aperture.live.v1.Grant.
490
+ * Use `create(GrantSchema)` to create a new message.
491
+ */
492
+ declare const GrantSchema: GenMessage<Grant$1>;
493
+ /**
494
+ * The client's first message. The session answers with what it offers, its targets, the
495
+ * target the client watches, and the cursor.
496
+ *
497
+ * @generated from message aperture.live.v1.Hello
498
+ */
499
+ type Hello = Message<"aperture.live.v1.Hello"> & {
500
+ /**
501
+ * @generated from field: aperture.live.v1.Pixels pixels = 1;
502
+ */
503
+ pixels: Pixels;
504
+ /**
505
+ * The forms of video the client would have, the one it would rather have first. The
506
+ * session sends the first one it makes: as frames whichever that is, over WebRTC the
507
+ * first one the connection also takes. `VIDEO_FORMAT_H264` when left out, and when none
508
+ * of them can be had.
509
+ *
510
+ * @generated from field: repeated aperture.live.v1.VideoFormat formats = 2;
511
+ */
512
+ formats: VideoFormat$1[];
513
+ /**
514
+ * The quality of the video, whatever the link carries; the session picks when left out.
515
+ *
516
+ * @generated from field: aperture.live.v1.VideoQuality quality = 3;
517
+ */
518
+ quality: VideoQuality$1;
519
+ /**
520
+ * Frames a second at most, 1 to 60; as many as the quality has when left out.
521
+ *
522
+ * @generated from field: optional uint32 fps = 4;
523
+ */
524
+ fps?: number | undefined;
525
+ /**
526
+ * The client takes the session's sound on the session socket, as `audio`. A client
527
+ * with a WebRTC connection takes it there instead, on an audio track it offers.
528
+ *
529
+ * @generated from field: bool audio = 5;
530
+ */
531
+ audio: boolean;
532
+ };
533
+ /**
534
+ * Describes the message aperture.live.v1.Hello.
535
+ * Use `create(HelloSchema)` to create a new message.
536
+ */
537
+ declare const HelloSchema: GenMessage<Hello>;
538
+ /**
539
+ * The video the client gets from now on, over WebRTC or as frames. Sent when it starts
540
+ * and whenever it changes.
541
+ *
542
+ * @generated from message aperture.live.v1.VideoStatus
543
+ */
544
+ type VideoStatus$1 = Message<"aperture.live.v1.VideoStatus"> & {
545
+ /**
546
+ * @generated from field: aperture.live.v1.VideoFormat format = 1;
547
+ */
548
+ format: VideoFormat$1;
549
+ /**
550
+ * @generated from field: aperture.live.v1.VideoQuality quality = 2;
551
+ */
552
+ quality: VideoQuality$1;
553
+ /**
554
+ * Frames a second at most.
555
+ *
556
+ * @generated from field: uint32 fps = 3;
557
+ */
558
+ fps: number;
559
+ };
560
+ /**
561
+ * Describes the message aperture.live.v1.VideoStatus.
562
+ * Use `create(VideoStatusSchema)` to create a new message.
563
+ */
564
+ declare const VideoStatusSchema: GenMessage<VideoStatus$1>;
565
+ /**
566
+ * The session's sound: what its browser plays, all its pages together, as Opus packets of
567
+ * 20 ms, 48 kHz, stereo. Packets a client is too slow for are left out.
568
+ *
569
+ * @generated from message aperture.live.v1.AudioFrame
570
+ */
571
+ type AudioFrame = Message<"aperture.live.v1.AudioFrame"> & {
572
+ /**
573
+ * Where in the sound the packet starts.
574
+ *
575
+ * @generated from field: uint64 time_us = 1;
576
+ */
577
+ timeUs: bigint;
578
+ /**
579
+ * @generated from field: bytes data = 2;
580
+ */
581
+ data: Uint8Array;
582
+ };
583
+ /**
584
+ * Describes the message aperture.live.v1.AudioFrame.
585
+ * Use `create(AudioFrameSchema)` to create a new message.
586
+ */
587
+ declare const AudioFrameSchema: GenMessage<AudioFrame>;
588
+ /**
589
+ * The client showed the video frame stamped `time_us`, or let it go undecoded. A client
590
+ * that takes frames sends this for each: frames it does not report as shown count as
591
+ * waiting in front of its link, and with too much waiting the session holds frames back.
592
+ *
593
+ * @generated from message aperture.live.v1.VideoShown
594
+ */
595
+ type VideoShown = Message<"aperture.live.v1.VideoShown"> & {
596
+ /**
597
+ * @generated from field: uint64 time_us = 1;
598
+ */
599
+ timeUs: bigint;
600
+ };
601
+ /**
602
+ * Describes the message aperture.live.v1.VideoShown.
603
+ * Use `create(VideoShownSchema)` to create a new message.
604
+ */
605
+ declare const VideoShownSchema: GenMessage<VideoShown>;
606
+ /**
607
+ * A WebRTC offer, as SDP, with a video track for the session to send on.
608
+ *
609
+ * @generated from message aperture.live.v1.RtcOffer
610
+ */
611
+ type RtcOffer = Message<"aperture.live.v1.RtcOffer"> & {
612
+ /**
613
+ * @generated from field: string sdp = 1;
614
+ */
615
+ sdp: string;
616
+ };
617
+ /**
618
+ * Describes the message aperture.live.v1.RtcOffer.
619
+ * Use `create(RtcOfferSchema)` to create a new message.
620
+ */
621
+ declare const RtcOfferSchema: GenMessage<RtcOffer>;
622
+ /**
623
+ * @generated from message aperture.live.v1.RtcAnswer
624
+ */
625
+ type RtcAnswer = Message<"aperture.live.v1.RtcAnswer"> & {
626
+ /**
627
+ * @generated from field: string sdp = 1;
628
+ */
629
+ sdp: string;
630
+ };
631
+ /**
632
+ * Describes the message aperture.live.v1.RtcAnswer.
633
+ * Use `create(RtcAnswerSchema)` to create a new message.
634
+ */
635
+ declare const RtcAnswerSchema: GenMessage<RtcAnswer>;
636
+ /**
637
+ * The session could not make the WebRTC connection the client offered. The session socket
638
+ * goes on; the client may take its pixels another way.
639
+ *
640
+ * @generated from message aperture.live.v1.RtcRefused
641
+ */
642
+ type RtcRefused = Message<"aperture.live.v1.RtcRefused"> & {
643
+ /**
644
+ * @generated from field: string reason = 1;
645
+ */
646
+ reason: string;
647
+ };
648
+ /**
649
+ * Describes the message aperture.live.v1.RtcRefused.
650
+ * Use `create(RtcRefusedSchema)` to create a new message.
651
+ */
652
+ declare const RtcRefusedSchema: GenMessage<RtcRefused>;
653
+ /**
654
+ * A frame of the watched target's video, as its format has frames: an access unit in
655
+ * Annex B form of H.264 and H.265, a frame of VP9, a temporal unit of AV1. The first
656
+ * one a client gets of a target is a keyframe, and so is the first one after frames were
657
+ * held back and the first one of another quality.
658
+ *
659
+ * @generated from message aperture.live.v1.VideoFrame
660
+ */
661
+ type VideoFrame = Message<"aperture.live.v1.VideoFrame"> & {
662
+ /**
663
+ * The tab it is a frame of.
664
+ *
665
+ * @generated from field: uint32 tab = 1;
666
+ */
667
+ tab: number;
668
+ /**
669
+ * @generated from field: bool keyframe = 2;
670
+ */
671
+ keyframe: boolean;
672
+ /**
673
+ * When the frame was drawn, in microseconds on the session's clock.
674
+ *
675
+ * @generated from field: uint64 time_us = 3;
676
+ */
677
+ timeUs: bigint;
678
+ /**
679
+ * @generated from field: bytes data = 4;
680
+ */
681
+ data: Uint8Array;
682
+ /**
683
+ * @generated from field: aperture.live.v1.VideoFormat format = 5;
684
+ */
685
+ format: VideoFormat$1;
686
+ /**
687
+ * The picture's size in pixels.
688
+ *
689
+ * @generated from field: uint32 width = 6;
690
+ */
691
+ width: number;
692
+ /**
693
+ * @generated from field: uint32 height = 7;
694
+ */
695
+ height: number;
696
+ };
697
+ /**
698
+ * Describes the message aperture.live.v1.VideoFrame.
699
+ * Use `create(VideoFrameSchema)` to create a new message.
700
+ */
701
+ declare const VideoFrameSchema: GenMessage<VideoFrame>;
702
+ /**
703
+ * A part of the watched target's picture that changed, as a PNG image; the whole picture
704
+ * when the client starts watching the target and when its size changes. Tiles of one
705
+ * change follow each other.
706
+ *
707
+ * @generated from message aperture.live.v1.Tile
708
+ */
709
+ type Tile = Message<"aperture.live.v1.Tile"> & {
710
+ /**
711
+ * The tab it is a part of the picture of.
712
+ *
713
+ * @generated from field: uint32 tab = 1;
714
+ */
715
+ tab: number;
716
+ /**
717
+ * @generated from field: uint32 x = 2;
718
+ */
719
+ x: number;
720
+ /**
721
+ * @generated from field: uint32 y = 3;
722
+ */
723
+ y: number;
724
+ /**
725
+ * The whole picture's size in pixels.
726
+ *
727
+ * @generated from field: uint32 width = 4;
728
+ */
729
+ width: number;
730
+ /**
731
+ * @generated from field: uint32 height = 5;
732
+ */
733
+ height: number;
734
+ /**
735
+ * @generated from field: bytes png = 6;
736
+ */
737
+ png: Uint8Array;
738
+ };
739
+ /**
740
+ * Describes the message aperture.live.v1.Tile.
741
+ * Use `create(TileSchema)` to create a new message.
742
+ */
743
+ declare const TileSchema: GenMessage<Tile>;
744
+ /**
745
+ * @generated from message aperture.live.v1.Select
746
+ */
747
+ type Select = Message<"aperture.live.v1.Select"> & {
748
+ /**
749
+ * @generated from field: uint32 tab = 1;
750
+ */
751
+ tab: number;
752
+ };
753
+ /**
754
+ * Describes the message aperture.live.v1.Select.
755
+ * Use `create(SelectSchema)` to create a new message.
756
+ */
757
+ declare const SelectSchema: GenMessage<Select>;
758
+ /**
759
+ * Positions are in the selected target's logical pixels, from its top-left corner.
760
+ *
761
+ * @generated from message aperture.live.v1.PointerMotion
762
+ */
763
+ type PointerMotion = Message<"aperture.live.v1.PointerMotion"> & {
764
+ /**
765
+ * @generated from field: double x = 1;
766
+ */
767
+ x: number;
768
+ /**
769
+ * @generated from field: double y = 2;
770
+ */
771
+ y: number;
772
+ };
773
+ /**
774
+ * Describes the message aperture.live.v1.PointerMotion.
775
+ * Use `create(PointerMotionSchema)` to create a new message.
776
+ */
777
+ declare const PointerMotionSchema: GenMessage<PointerMotion>;
778
+ /**
779
+ * @generated from message aperture.live.v1.PointerButton
780
+ */
781
+ type PointerButton = Message<"aperture.live.v1.PointerButton"> & {
782
+ /**
783
+ * @generated from field: double x = 1;
784
+ */
785
+ x: number;
786
+ /**
787
+ * @generated from field: double y = 2;
788
+ */
789
+ y: number;
790
+ /**
791
+ * @generated from field: aperture.live.v1.MouseButton button = 3;
792
+ */
793
+ button: MouseButton;
794
+ /**
795
+ * @generated from field: bool pressed = 4;
796
+ */
797
+ pressed: boolean;
798
+ };
799
+ /**
800
+ * Describes the message aperture.live.v1.PointerButton.
801
+ * Use `create(PointerButtonSchema)` to create a new message.
802
+ */
803
+ declare const PointerButtonSchema: GenMessage<PointerButton>;
804
+ /**
805
+ * @generated from message aperture.live.v1.PointerScroll
806
+ */
807
+ type PointerScroll = Message<"aperture.live.v1.PointerScroll"> & {
808
+ /**
809
+ * @generated from field: double x = 1;
810
+ */
811
+ x: number;
812
+ /**
813
+ * @generated from field: double y = 2;
814
+ */
815
+ y: number;
816
+ /**
817
+ * Wheel notches, positive right and down.
818
+ *
819
+ * @generated from field: double dx = 3;
820
+ */
821
+ dx: number;
822
+ /**
823
+ * @generated from field: double dy = 4;
824
+ */
825
+ dy: number;
826
+ };
827
+ /**
828
+ * Describes the message aperture.live.v1.PointerScroll.
829
+ * Use `create(PointerScrollSchema)` to create a new message.
830
+ */
831
+ declare const PointerScrollSchema: GenMessage<PointerScroll>;
832
+ /**
833
+ * @generated from message aperture.live.v1.PointerLeave
834
+ */
835
+ type PointerLeave = Message<"aperture.live.v1.PointerLeave"> & {};
836
+ /**
837
+ * Describes the message aperture.live.v1.PointerLeave.
838
+ * Use `create(PointerLeaveSchema)` to create a new message.
839
+ */
840
+ declare const PointerLeaveSchema: GenMessage<PointerLeave>;
841
+ /**
842
+ * @generated from message aperture.live.v1.Key
843
+ */
844
+ type Key = Message<"aperture.live.v1.Key"> & {
845
+ /**
846
+ * The physical key, as its Linux evdev code.
847
+ *
848
+ * @generated from field: uint32 code = 1;
849
+ */
850
+ code: number;
851
+ /**
852
+ * @generated from field: bool pressed = 2;
853
+ */
854
+ pressed: boolean;
855
+ };
856
+ /**
857
+ * Describes the message aperture.live.v1.Key.
858
+ * Use `create(KeySchema)` to create a new message.
859
+ */
860
+ declare const KeySchema: GenMessage<Key>;
861
+ /**
862
+ * Text as it is, whatever keyboard it takes to write: what a phone's keyboard or an input
863
+ * method entered, or a key of a layout the session's keyboard does not have. A field that
864
+ * takes text gets it whole; elsewhere it is typed key by key, without the characters the
865
+ * session's keyboard has no key for. A line break is the Enter key and a tab the Tab key.
866
+ *
867
+ * @generated from message aperture.live.v1.Text
868
+ */
869
+ type Text = Message<"aperture.live.v1.Text"> & {
870
+ /**
871
+ * @generated from field: string text = 1;
872
+ */
873
+ text: string;
874
+ /**
875
+ * The text is still being composed, as with an input method: the field shows it as
876
+ * such, in place of what was being composed before. Text that is not composing ends the
877
+ * composing and stays; empty, it only ends it.
878
+ *
879
+ * @generated from field: bool composing = 2;
880
+ */
881
+ composing: boolean;
882
+ };
883
+ /**
884
+ * Describes the message aperture.live.v1.Text.
885
+ * Use `create(TextSchema)` to create a new message.
886
+ */
887
+ declare const TextSchema: GenMessage<Text>;
888
+ /**
889
+ * What the session's browser downloaded since the session started, oldest first; the
890
+ * last hundred of them. Sent in answer to `hello` and whenever it changes. A file is
891
+ * fetched from the session's files, as `files/downloads/{name}` beside the session socket.
892
+ *
893
+ * @generated from message aperture.live.v1.Downloads
894
+ */
895
+ type Downloads = Message<"aperture.live.v1.Downloads"> & {
896
+ /**
897
+ * @generated from field: repeated aperture.live.v1.Download downloads = 1;
898
+ */
899
+ downloads: Download$1[];
900
+ };
901
+ /**
902
+ * Describes the message aperture.live.v1.Downloads.
903
+ * Use `create(DownloadsSchema)` to create a new message.
904
+ */
905
+ declare const DownloadsSchema: GenMessage<Downloads>;
906
+ /**
907
+ * @generated from message aperture.live.v1.Download
908
+ */
909
+ type Download$1 = Message<"aperture.live.v1.Download"> & {
910
+ /**
911
+ * @generated from field: string id = 1;
912
+ */
913
+ id: string;
914
+ /**
915
+ * The file's name: the one the page suggested until the browser has saved it, which may
916
+ * be under another.
917
+ *
918
+ * @generated from field: string name = 2;
919
+ */
920
+ name: string;
921
+ /**
922
+ * @generated from field: string url = 3;
923
+ */
924
+ url: string;
925
+ /**
926
+ * @generated from field: uint64 received_bytes = 4;
927
+ */
928
+ receivedBytes: bigint;
929
+ /**
930
+ * Left out while the page does not say.
931
+ *
932
+ * @generated from field: optional uint64 total_bytes = 5;
933
+ */
934
+ totalBytes?: bigint | undefined;
935
+ /**
936
+ * @generated from field: aperture.live.v1.DownloadState state = 6;
937
+ */
938
+ state: DownloadState$1;
939
+ };
940
+ /**
941
+ * Describes the message aperture.live.v1.Download.
942
+ * Use `create(DownloadSchema)` to create a new message.
943
+ */
944
+ declare const DownloadSchema: GenMessage<Download$1>;
945
+ /**
946
+ * Who is in the session and who drives which tab. Sent in answer to `hello` and whenever
947
+ * it changes.
948
+ *
949
+ * Input is a tab's. Who gives a tab input holds it, and others' input to it is left out
950
+ * until the holder gave it none for five seconds. A person's input takes a tab from the
951
+ * session's automation at once. A client that may only watch gives
952
+ * none at all. The session has one keyboard and one pointer: those who hold different
953
+ * tabs take turns at them, key by key.
954
+ *
955
+ * @generated from message aperture.live.v1.Presence
956
+ */
957
+ type Presence$1 = Message<"aperture.live.v1.Presence"> & {
958
+ /**
959
+ * The member this client is.
960
+ *
961
+ * @generated from field: uint64 you = 1;
962
+ */
963
+ you: bigint;
964
+ /**
965
+ * @generated from field: repeated aperture.live.v1.Member members = 2;
966
+ */
967
+ members: Member$1[];
968
+ /**
969
+ * @generated from field: repeated aperture.live.v1.HeldTab held = 3;
970
+ */
971
+ held: HeldTab$1[];
972
+ };
973
+ /**
974
+ * Describes the message aperture.live.v1.Presence.
975
+ * Use `create(PresenceSchema)` to create a new message.
976
+ */
977
+ declare const PresenceSchema: GenMessage<Presence$1>;
978
+ /**
979
+ * @generated from message aperture.live.v1.Member
980
+ */
981
+ type Member$1 = Message<"aperture.live.v1.Member"> & {
982
+ /**
983
+ * @generated from field: uint64 id = 1;
984
+ */
985
+ id: bigint;
986
+ /**
987
+ * @generated from field: string name = 2;
988
+ */
989
+ name: string;
990
+ /**
991
+ * @generated from field: aperture.live.v1.Role role = 3;
992
+ */
993
+ role: Role$1;
994
+ /**
995
+ * The tab the member watches.
996
+ *
997
+ * @generated from field: optional uint32 tab = 4;
998
+ */
999
+ tab?: number | undefined;
1000
+ /**
1001
+ * The session's automation rather than a person.
1002
+ *
1003
+ * @generated from field: bool agent = 5;
1004
+ */
1005
+ agent: boolean;
1006
+ /**
1007
+ * The member this one follows: it watches the tab that member watches.
1008
+ *
1009
+ * @generated from field: optional uint64 follows = 6;
1010
+ */
1011
+ follows?: bigint | undefined;
1012
+ };
1013
+ /**
1014
+ * Describes the message aperture.live.v1.Member.
1015
+ * Use `create(MemberSchema)` to create a new message.
1016
+ */
1017
+ declare const MemberSchema: GenMessage<Member$1>;
1018
+ /**
1019
+ * Follows a member: the client watches the tab the member watches, also when the member
1020
+ * goes to another, until the client selects a tab itself or the member leaves. Without
1021
+ * `member`, follows nobody. A member is not followed around a circle of followers.
1022
+ *
1023
+ * @generated from message aperture.live.v1.Follow
1024
+ */
1025
+ type Follow = Message<"aperture.live.v1.Follow"> & {
1026
+ /**
1027
+ * @generated from field: optional uint64 member = 1;
1028
+ */
1029
+ member?: bigint | undefined;
1030
+ };
1031
+ /**
1032
+ * Describes the message aperture.live.v1.Follow.
1033
+ * Use `create(FollowSchema)` to create a new message.
1034
+ */
1035
+ declare const FollowSchema: GenMessage<Follow>;
1036
+ /**
1037
+ * Where another member's pointer is on the tab the client watches, in the tab's logical
1038
+ * pixels. It gives no input by being there: this is for seeing where someone points.
1039
+ * Whoever watches the tab is told, a few dozen times a second at most, and nobody is told
1040
+ * again what they missed.
1041
+ *
1042
+ * @generated from message aperture.live.v1.Pointer
1043
+ */
1044
+ type Pointer = Message<"aperture.live.v1.Pointer"> & {
1045
+ /**
1046
+ * @generated from field: uint64 member = 1;
1047
+ */
1048
+ member: bigint;
1049
+ /**
1050
+ * None once the pointer left the tab's picture.
1051
+ *
1052
+ * @generated from field: optional aperture.live.v1.Point at = 2;
1053
+ */
1054
+ at?: Point | undefined;
1055
+ };
1056
+ /**
1057
+ * Describes the message aperture.live.v1.Pointer.
1058
+ * Use `create(PointerSchema)` to create a new message.
1059
+ */
1060
+ declare const PointerSchema: GenMessage<Pointer>;
1061
+ /**
1062
+ * @generated from message aperture.live.v1.Point
1063
+ */
1064
+ type Point = Message<"aperture.live.v1.Point"> & {
1065
+ /**
1066
+ * @generated from field: double x = 1;
1067
+ */
1068
+ x: number;
1069
+ /**
1070
+ * @generated from field: double y = 2;
1071
+ */
1072
+ y: number;
1073
+ };
1074
+ /**
1075
+ * Describes the message aperture.live.v1.Point.
1076
+ * Use `create(PointSchema)` to create a new message.
1077
+ */
1078
+ declare const PointSchema: GenMessage<Point>;
1079
+ /**
1080
+ * Where the client's pointer is over the tab it watches while what it does there is no
1081
+ * input, as while it draws: the others see it as they see a pointer that gives input.
1082
+ *
1083
+ * @generated from message aperture.live.v1.Pointing
1084
+ */
1085
+ type Pointing = Message<"aperture.live.v1.Pointing"> & {
1086
+ /**
1087
+ * None once the pointer left the tab's picture.
1088
+ *
1089
+ * @generated from field: optional aperture.live.v1.Point at = 1;
1090
+ */
1091
+ at?: Point | undefined;
1092
+ };
1093
+ /**
1094
+ * Describes the message aperture.live.v1.Pointing.
1095
+ * Use `create(PointingSchema)` to create a new message.
1096
+ */
1097
+ declare const PointingSchema: GenMessage<Pointing>;
1098
+ /**
1099
+ * A point of a stroke the client draws over the tab it watches, in the tab's logical
1100
+ * pixels. A stroke is a mark for the others to see: it is no input, it is part of nothing
1101
+ * the session keeps, and those who watch the tab let it fade once it ended. Anyone in the
1102
+ * session draws, also who may only watch.
1103
+ *
1104
+ * @generated from message aperture.live.v1.Draw
1105
+ */
1106
+ type Draw = Message<"aperture.live.v1.Draw"> & {
1107
+ /**
1108
+ * Which of the client's strokes the point is of.
1109
+ *
1110
+ * @generated from field: uint32 stroke = 1;
1111
+ */
1112
+ stroke: number;
1113
+ /**
1114
+ * @generated from field: aperture.live.v1.StrokePhase phase = 2;
1115
+ */
1116
+ phase: StrokePhase$1;
1117
+ /**
1118
+ * @generated from field: double x = 3;
1119
+ */
1120
+ x: number;
1121
+ /**
1122
+ * @generated from field: double y = 4;
1123
+ */
1124
+ y: number;
1125
+ };
1126
+ /**
1127
+ * Describes the message aperture.live.v1.Draw.
1128
+ * Use `create(DrawSchema)` to create a new message.
1129
+ */
1130
+ declare const DrawSchema: GenMessage<Draw>;
1131
+ /**
1132
+ * A point of a stroke another member draws over the tab the client watches.
1133
+ *
1134
+ * @generated from message aperture.live.v1.Stroke
1135
+ */
1136
+ type Stroke = Message<"aperture.live.v1.Stroke"> & {
1137
+ /**
1138
+ * @generated from field: uint64 member = 1;
1139
+ */
1140
+ member: bigint;
1141
+ /**
1142
+ * @generated from field: uint32 stroke = 2;
1143
+ */
1144
+ stroke: number;
1145
+ /**
1146
+ * @generated from field: aperture.live.v1.StrokePhase phase = 3;
1147
+ */
1148
+ phase: StrokePhase$1;
1149
+ /**
1150
+ * @generated from field: double x = 4;
1151
+ */
1152
+ x: number;
1153
+ /**
1154
+ * @generated from field: double y = 5;
1155
+ */
1156
+ y: number;
1157
+ };
1158
+ /**
1159
+ * Describes the message aperture.live.v1.Stroke.
1160
+ * Use `create(StrokeSchema)` to create a new message.
1161
+ */
1162
+ declare const StrokeSchema: GenMessage<Stroke>;
1163
+ /**
1164
+ * @generated from message aperture.live.v1.HeldTab
1165
+ */
1166
+ type HeldTab$1 = Message<"aperture.live.v1.HeldTab"> & {
1167
+ /**
1168
+ * @generated from field: uint32 tab = 1;
1169
+ */
1170
+ tab: number;
1171
+ /**
1172
+ * The member who holds it.
1173
+ *
1174
+ * @generated from field: uint64 holder = 2;
1175
+ */
1176
+ holder: bigint;
1177
+ /**
1178
+ * The member who asks the holder for it.
1179
+ *
1180
+ * @generated from field: optional uint64 asked_by = 3;
1181
+ */
1182
+ askedBy?: bigint | undefined;
1183
+ };
1184
+ /**
1185
+ * Describes the message aperture.live.v1.HeldTab.
1186
+ * Use `create(HeldTabSchema)` to create a new message.
1187
+ */
1188
+ declare const HeldTabSchema: GenMessage<HeldTab$1>;
1189
+ /**
1190
+ * About the tab the client watches.
1191
+ *
1192
+ * @generated from message aperture.live.v1.Lease
1193
+ */
1194
+ type Lease = Message<"aperture.live.v1.Lease"> & {
1195
+ /**
1196
+ * @generated from field: aperture.live.v1.LeaseAction action = 1;
1197
+ */
1198
+ action: LeaseAction$1;
1199
+ };
1200
+ /**
1201
+ * Describes the message aperture.live.v1.Lease.
1202
+ * Use `create(LeaseSchema)` to create a new message.
1203
+ */
1204
+ declare const LeaseSchema: GenMessage<Lease>;
1205
+ /**
1206
+ * The watched target's page was asked for its menu, as by a right click, and showed none
1207
+ * of its own: the browser shows none either. What the menu would be of is told, for the
1208
+ * client to show one. Sent to the client that drives the target's tab.
1209
+ *
1210
+ * @generated from message aperture.live.v1.Menu
1211
+ */
1212
+ type Menu$1 = Message<"aperture.live.v1.Menu"> & {
1213
+ /**
1214
+ * The link under the pointer.
1215
+ *
1216
+ * @generated from field: optional string link = 1;
1217
+ */
1218
+ link?: string | undefined;
1219
+ /**
1220
+ * The picture under the pointer.
1221
+ *
1222
+ * @generated from field: optional string image = 2;
1223
+ */
1224
+ image?: string | undefined;
1225
+ /**
1226
+ * The text that is selected.
1227
+ *
1228
+ * @generated from field: optional string text = 3;
1229
+ */
1230
+ text?: string | undefined;
1231
+ /**
1232
+ * There is a field to write into under the pointer.
1233
+ *
1234
+ * @generated from field: bool editable = 4;
1235
+ */
1236
+ editable: boolean;
1237
+ };
1238
+ /**
1239
+ * Describes the message aperture.live.v1.Menu.
1240
+ * Use `create(MenuSchema)` to create a new message.
1241
+ */
1242
+ declare const MenuSchema: GenMessage<Menu$1>;
1243
+ /**
1244
+ * Takes the watched target's page elsewhere.
1245
+ *
1246
+ * @generated from message aperture.live.v1.Go
1247
+ */
1248
+ type Go = Message<"aperture.live.v1.Go"> & {
1249
+ /**
1250
+ * @generated from oneof aperture.live.v1.Go.to
1251
+ */
1252
+ to: {
1253
+ /**
1254
+ * A page on the web; or nothing, with `new_tab`, for an empty new tab.
1255
+ *
1256
+ * @generated from field: string url = 1;
1257
+ */
1258
+ value: string;
1259
+ case: "url";
1260
+ } | {
1261
+ /**
1262
+ * @generated from field: aperture.live.v1.Along along = 2;
1263
+ */
1264
+ value: Along$1;
1265
+ case: "along";
1266
+ } | {
1267
+ case: undefined;
1268
+ value?: undefined;
1269
+ };
1270
+ /**
1271
+ * The page opens in a new tab rather than in the target's.
1272
+ *
1273
+ * @generated from field: bool new_tab = 3;
1274
+ */
1275
+ newTab: boolean;
1276
+ };
1277
+ /**
1278
+ * Describes the message aperture.live.v1.Go.
1279
+ * Use `create(GoSchema)` to create a new message.
1280
+ */
1281
+ declare const GoSchema: GenMessage<Go>;
1282
+ /**
1283
+ * Closes a target's tab, for a client that may give it input: one nobody else holds.
1284
+ *
1285
+ * @generated from message aperture.live.v1.Close
1286
+ */
1287
+ type Close = Message<"aperture.live.v1.Close"> & {
1288
+ /**
1289
+ * @generated from field: uint32 tab = 1;
1290
+ */
1291
+ tab: number;
1292
+ };
1293
+ /**
1294
+ * Describes the message aperture.live.v1.Close.
1295
+ * Use `create(CloseSchema)` to create a new message.
1296
+ */
1297
+ declare const CloseSchema: GenMessage<Close>;
1298
+ /**
1299
+ * Something a client asked for was not done. What is done is not answered: it shows in
1300
+ * what the session tells anyway.
1301
+ *
1302
+ * @generated from message aperture.live.v1.Failed
1303
+ */
1304
+ type Failed = Message<"aperture.live.v1.Failed"> & {
1305
+ /**
1306
+ * @generated from field: aperture.live.v1.Asked asked = 1;
1307
+ */
1308
+ asked: Asked;
1309
+ /**
1310
+ * Why, for a person to read.
1311
+ *
1312
+ * @generated from field: string reason = 2;
1313
+ */
1314
+ reason: string;
1315
+ };
1316
+ /**
1317
+ * Describes the message aperture.live.v1.Failed.
1318
+ * Use `create(FailedSchema)` to create a new message.
1319
+ */
1320
+ declare const FailedSchema: GenMessage<Failed>;
1321
+ /**
1322
+ * What the client is used from. A client says so after `hello`, and again when it changes.
1323
+ *
1324
+ * @generated from message aperture.live.v1.Device
1325
+ */
1326
+ type Device = Message<"aperture.live.v1.Device"> & {
1327
+ /**
1328
+ * A phone: a finger points at it, and its screen is narrow. A tab whose mode is
1329
+ * `PAGE_MODE_AUTO` shows its pages as on a phone while a client that is one holds it.
1330
+ *
1331
+ * @generated from field: bool phone = 1;
1332
+ */
1333
+ phone: boolean;
1334
+ };
1335
+ /**
1336
+ * Describes the message aperture.live.v1.Device.
1337
+ * Use `create(DeviceSchema)` to create a new message.
1338
+ */
1339
+ declare const DeviceSchema: GenMessage<Device>;
1340
+ /**
1341
+ * Sets the mode of the tab the client watches, for a client that holds it. Where that
1342
+ * changes how the tab's pages are shown, the page is loaded again, as it is then.
1343
+ *
1344
+ * @generated from message aperture.live.v1.SetMode
1345
+ */
1346
+ type SetMode = Message<"aperture.live.v1.SetMode"> & {
1347
+ /**
1348
+ * @generated from field: aperture.live.v1.PageMode mode = 1;
1349
+ */
1350
+ mode: PageMode$1;
1351
+ };
1352
+ /**
1353
+ * Describes the message aperture.live.v1.SetMode.
1354
+ * Use `create(SetModeSchema)` to create a new message.
1355
+ */
1356
+ declare const SetModeSchema: GenMessage<SetMode>;
1357
+ /**
1358
+ * Asks for a picture the watched target's page shows. The session answers with
1359
+ * `clipboard`, the picture in the form the page has it, such as `image/jpeg`.
1360
+ *
1361
+ * @generated from message aperture.live.v1.CopyPicture
1362
+ */
1363
+ type CopyPicture = Message<"aperture.live.v1.CopyPicture"> & {
1364
+ /**
1365
+ * @generated from field: string url = 1;
1366
+ */
1367
+ url: string;
1368
+ };
1369
+ /**
1370
+ * Describes the message aperture.live.v1.CopyPicture.
1371
+ * Use `create(CopyPictureSchema)` to create a new message.
1372
+ */
1373
+ declare const CopyPictureSchema: GenMessage<CopyPicture>;
1374
+ /**
1375
+ * The pages that ask for files and have no answer yet, as a page does when a file input
1376
+ * is clicked: the browser shows no dialog of its own. Sent in answer to `hello` and
1377
+ * whenever it changes. A request ends with its answer or with its page.
1378
+ *
1379
+ * @generated from message aperture.live.v1.FileRequests
1380
+ */
1381
+ type FileRequests = Message<"aperture.live.v1.FileRequests"> & {
1382
+ /**
1383
+ * @generated from field: repeated aperture.live.v1.FileRequest requests = 1;
1384
+ */
1385
+ requests: FileRequest$1[];
1386
+ };
1387
+ /**
1388
+ * Describes the message aperture.live.v1.FileRequests.
1389
+ * Use `create(FileRequestsSchema)` to create a new message.
1390
+ */
1391
+ declare const FileRequestsSchema: GenMessage<FileRequests>;
1392
+ /**
1393
+ * @generated from message aperture.live.v1.FileRequest
1394
+ */
1395
+ type FileRequest$1 = Message<"aperture.live.v1.FileRequest"> & {
1396
+ /**
1397
+ * @generated from field: uint64 id = 1;
1398
+ */
1399
+ id: bigint;
1400
+ /**
1401
+ * The tab whose page asks.
1402
+ *
1403
+ * @generated from field: uint32 tab = 2;
1404
+ */
1405
+ tab: number;
1406
+ /**
1407
+ * The page takes more than one file.
1408
+ *
1409
+ * @generated from field: bool multiple = 3;
1410
+ */
1411
+ multiple: boolean;
1412
+ };
1413
+ /**
1414
+ * Describes the message aperture.live.v1.FileRequest.
1415
+ * Use `create(FileRequestSchema)` to create a new message.
1416
+ */
1417
+ declare const FileRequestSchema: GenMessage<FileRequest$1>;
1418
+ /**
1419
+ * Answers a page's request for files with files a client put into the session first (see
1420
+ * `uploads` beside the session socket), by their names there. With none the page is left
1421
+ * without, as when a dialog is dismissed.
1422
+ *
1423
+ * @generated from message aperture.live.v1.FilesChosen
1424
+ */
1425
+ type FilesChosen = Message<"aperture.live.v1.FilesChosen"> & {
1426
+ /**
1427
+ * @generated from field: uint64 id = 1;
1428
+ */
1429
+ id: bigint;
1430
+ /**
1431
+ * @generated from field: repeated string files = 2;
1432
+ */
1433
+ files: string[];
1434
+ };
1435
+ /**
1436
+ * Describes the message aperture.live.v1.FilesChosen.
1437
+ * Use `create(FilesChosenSchema)` to create a new message.
1438
+ */
1439
+ declare const FilesChosenSchema: GenMessage<FilesChosen>;
1440
+ /**
1441
+ * Drops content onto the watched target at a position, as one who dragged it there would:
1442
+ * text, a picture, or files, which a client puts into the session first (see `uploads`
1443
+ * beside the session socket) and names here.
1444
+ *
1445
+ * @generated from message aperture.live.v1.Drop
1446
+ */
1447
+ type Drop = Message<"aperture.live.v1.Drop"> & {
1448
+ /**
1449
+ * In the target's logical pixels.
1450
+ *
1451
+ * @generated from field: double x = 1;
1452
+ */
1453
+ x: number;
1454
+ /**
1455
+ * @generated from field: double y = 2;
1456
+ */
1457
+ y: number;
1458
+ /**
1459
+ * @generated from field: aperture.live.v1.Clipboard content = 3;
1460
+ */
1461
+ content?: Clipboard | undefined;
1462
+ };
1463
+ /**
1464
+ * Describes the message aperture.live.v1.Drop.
1465
+ * Use `create(DropSchema)` to create a new message.
1466
+ */
1467
+ declare const DropSchema: GenMessage<Drop>;
1468
+ /**
1469
+ * Content that is copied or dragged: the same content in each form it is had in, at most
1470
+ * 8 MiB of them together.
1471
+ *
1472
+ * @generated from message aperture.live.v1.Clipboard
1473
+ */
1474
+ type Clipboard = Message<"aperture.live.v1.Clipboard"> & {
1475
+ /**
1476
+ * @generated from field: repeated aperture.live.v1.Clipboard.Form forms = 1;
1477
+ */
1478
+ forms: Clipboard_Form[];
1479
+ };
1480
+ /**
1481
+ * Describes the message aperture.live.v1.Clipboard.
1482
+ * Use `create(ClipboardSchema)` to create a new message.
1483
+ */
1484
+ declare const ClipboardSchema: GenMessage<Clipboard>;
1485
+ /**
1486
+ * @generated from message aperture.live.v1.Clipboard.Form
1487
+ */
1488
+ type Clipboard_Form = Message<"aperture.live.v1.Clipboard.Form"> & {
1489
+ /**
1490
+ * The form's MIME type. `text/plain` is text, as UTF-8; `text/html` is marked-up text;
1491
+ * `image/png` is a picture; `text/uri-list` is files of the session, as the lines of
1492
+ * their `file://` URIs, which a session takes of its own files only. Other forms are
1493
+ * left out.
1494
+ *
1495
+ * @generated from field: string type = 1;
1496
+ */
1497
+ type: string;
1498
+ /**
1499
+ * @generated from field: bytes data = 2;
1500
+ */
1501
+ data: Uint8Array;
1502
+ };
1503
+ /**
1504
+ * Describes the message aperture.live.v1.Clipboard.Form.
1505
+ * Use `create(Clipboard_FormSchema)` to create a new message.
1506
+ */
1507
+ declare const Clipboard_FormSchema: GenMessage<Clipboard_Form>;
1508
+ /**
1509
+ * The viewport of the target the client watches: the size its page gets, in logical (CSS)
1510
+ * pixels, and how many pixels the page draws to each of them (its `devicePixelRatio`).
1511
+ * It is the target's: every client that watches it sees it. A target starts with the
1512
+ * session's. The session gives the nearest it can: a side of 64 to 4096, a scale of 0.5
1513
+ * to 4, and no more than 4096 pixels a side; `targets` tells what it gave. A page shown
1514
+ * as on a desktop is no narrower than the browser makes a window, 500; one shown as on a
1515
+ * phone is.
1516
+ *
1517
+ * @generated from message aperture.live.v1.Viewport
1518
+ */
1519
+ type Viewport = Message<"aperture.live.v1.Viewport"> & {
1520
+ /**
1521
+ * @generated from field: uint32 width = 1;
1522
+ */
1523
+ width: number;
1524
+ /**
1525
+ * @generated from field: uint32 height = 2;
1526
+ */
1527
+ height: number;
1528
+ /**
1529
+ * The target keeps its scale when left out.
1530
+ *
1531
+ * @generated from field: optional double scale = 3;
1532
+ */
1533
+ scale?: number | undefined;
1534
+ };
1535
+ /**
1536
+ * Describes the message aperture.live.v1.Viewport.
1537
+ * Use `create(ViewportSchema)` to create a new message.
1538
+ */
1539
+ declare const ViewportSchema: GenMessage<Viewport>;
1540
+ /**
1541
+ * A browser target: a page of the session's browser, shown in a window of its own. It is
1542
+ * named by its tab's number, here and wherever else a client or the session names one.
1543
+ *
1544
+ * @generated from message aperture.live.v1.Target
1545
+ */
1546
+ type Target$1 = Message<"aperture.live.v1.Target"> & {
1547
+ /**
1548
+ * The page's DevTools target id, for whoever speaks DevTools to the browser. It lasts
1549
+ * as long as the page does in one run of the session.
1550
+ *
1551
+ * @generated from field: string id = 1;
1552
+ */
1553
+ id: string;
1554
+ /**
1555
+ * @generated from field: string title = 2;
1556
+ */
1557
+ title: string;
1558
+ /**
1559
+ * @generated from field: string url = 3;
1560
+ */
1561
+ url: string;
1562
+ /**
1563
+ * In logical pixels, which pointer positions are in.
1564
+ *
1565
+ * @generated from field: uint32 width = 4;
1566
+ */
1567
+ width: number;
1568
+ /**
1569
+ * @generated from field: uint32 height = 5;
1570
+ */
1571
+ height: number;
1572
+ /**
1573
+ * Pixels to a logical pixel: the target's picture is `width` x `height` times this.
1574
+ *
1575
+ * @generated from field: double scale = 6;
1576
+ */
1577
+ scale: number;
1578
+ /**
1579
+ * The tab's number, which no other tab of the session gets. It stays the tab's when
1580
+ * the session is suspended and resumed, which the target's id does not.
1581
+ *
1582
+ * @generated from field: uint32 tab = 7;
1583
+ */
1584
+ tab: number;
1585
+ /**
1586
+ * The tab plays sound now. Never where the session's sound is off.
1587
+ *
1588
+ * @generated from field: bool sounds = 8;
1589
+ */
1590
+ sounds: boolean;
1591
+ /**
1592
+ * The page's history has somewhere to go back to, and forward.
1593
+ *
1594
+ * @generated from field: bool goes_back = 9;
1595
+ */
1596
+ goesBack: boolean;
1597
+ /**
1598
+ * @generated from field: bool goes_forward = 10;
1599
+ */
1600
+ goesForward: boolean;
1601
+ /**
1602
+ * How the tab's pages are shown, as it was set.
1603
+ *
1604
+ * @generated from field: aperture.live.v1.PageMode mode = 11;
1605
+ */
1606
+ mode: PageMode$1;
1607
+ /**
1608
+ * The tab's pages are shown as on a phone now: what `mode` comes to.
1609
+ *
1610
+ * @generated from field: bool mobile = 12;
1611
+ */
1612
+ mobile: boolean;
1613
+ };
1614
+ /**
1615
+ * Describes the message aperture.live.v1.Target.
1616
+ * Use `create(TargetSchema)` to create a new message.
1617
+ */
1618
+ declare const TargetSchema: GenMessage<Target$1>;
1619
+ /**
1620
+ * Every target of the session, oldest first. Sent after `hello` and whenever a target
1621
+ * opens, closes or changes.
1622
+ *
1623
+ * @generated from message aperture.live.v1.Targets
1624
+ */
1625
+ type Targets = Message<"aperture.live.v1.Targets"> & {
1626
+ /**
1627
+ * @generated from field: repeated aperture.live.v1.Target targets = 1;
1628
+ */
1629
+ targets: Target$1[];
1630
+ };
1631
+ /**
1632
+ * Describes the message aperture.live.v1.Targets.
1633
+ * Use `create(TargetsSchema)` to create a new message.
1634
+ */
1635
+ declare const TargetsSchema: GenMessage<Targets>;
1636
+ /**
1637
+ * The tab the client's video shows from now on; none when the session has no target.
1638
+ *
1639
+ * @generated from message aperture.live.v1.Selected
1640
+ */
1641
+ type Selected = Message<"aperture.live.v1.Selected"> & {
1642
+ /**
1643
+ * @generated from field: optional uint32 tab = 1;
1644
+ */
1645
+ tab?: number | undefined;
1646
+ };
1647
+ /**
1648
+ * Describes the message aperture.live.v1.Selected.
1649
+ * Use `create(SelectedSchema)` to create a new message.
1650
+ */
1651
+ declare const SelectedSchema: GenMessage<Selected>;
1652
+ /**
1653
+ * @generated from message aperture.live.v1.Cursor
1654
+ */
1655
+ type Cursor = Message<"aperture.live.v1.Cursor"> & {
1656
+ /**
1657
+ * @generated from oneof aperture.live.v1.Cursor.cursor
1658
+ */
1659
+ cursor: {
1660
+ /**
1661
+ * A CSS cursor name.
1662
+ *
1663
+ * @generated from field: string named = 1;
1664
+ */
1665
+ value: string;
1666
+ case: "named";
1667
+ } | {
1668
+ /**
1669
+ * @generated from field: aperture.live.v1.Cursor.Hidden hidden = 2;
1670
+ */
1671
+ value: Cursor_Hidden;
1672
+ case: "hidden";
1673
+ } | {
1674
+ case: undefined;
1675
+ value?: undefined;
1676
+ };
1677
+ };
1678
+ /**
1679
+ * Describes the message aperture.live.v1.Cursor.
1680
+ * Use `create(CursorSchema)` to create a new message.
1681
+ */
1682
+ declare const CursorSchema: GenMessage<Cursor>;
1683
+ /**
1684
+ * @generated from message aperture.live.v1.Cursor.Hidden
1685
+ */
1686
+ type Cursor_Hidden = Message<"aperture.live.v1.Cursor.Hidden"> & {};
1687
+ /**
1688
+ * Describes the message aperture.live.v1.Cursor.Hidden.
1689
+ * Use `create(Cursor_HiddenSchema)` to create a new message.
1690
+ */
1691
+ declare const Cursor_HiddenSchema: GenMessage<Cursor_Hidden>;
1692
+ /**
1693
+ * @generated from enum aperture.live.v1.Pace
1694
+ */
1695
+ declare enum Pace$1 {
1696
+ /**
1697
+ * @generated from enum value: PACE_UNSPECIFIED = 0;
1698
+ */
1699
+ UNSPECIFIED = 0,
1700
+ /**
1701
+ * The pointer jumps to each action.
1702
+ *
1703
+ * @generated from enum value: PACE_INSTANT = 1;
1704
+ */
1705
+ INSTANT = 1,
1706
+ /**
1707
+ * The pointer travels there, quickly but so that the eye can follow, and text is typed
1708
+ * out.
1709
+ *
1710
+ * @generated from enum value: PACE_FAST = 2;
1711
+ */
1712
+ FAST = 2,
1713
+ /**
1714
+ * Unhurried travel, for demos.
1715
+ *
1716
+ * @generated from enum value: PACE_SLOW = 3;
1717
+ */
1718
+ SLOW = 3
1719
+ }
1720
+ /**
1721
+ * Describes the enum aperture.live.v1.Pace.
1722
+ */
1723
+ declare const PaceSchema: GenEnum<Pace$1>;
1724
+ /**
1725
+ * The form a target's video takes.
1726
+ *
1727
+ * @generated from enum aperture.live.v1.VideoFormat
1728
+ */
1729
+ declare enum VideoFormat$1 {
1730
+ /**
1731
+ * @generated from enum value: VIDEO_FORMAT_UNSPECIFIED = 0;
1732
+ */
1733
+ UNSPECIFIED = 0,
1734
+ /**
1735
+ * H.264 constrained baseline, 4:2:0. Everything decodes it; colored text loses detail.
1736
+ *
1737
+ * @generated from enum value: VIDEO_FORMAT_H264 = 1;
1738
+ */
1739
+ H264 = 1,
1740
+ /**
1741
+ * H.264 High 4:4:4, in BT.709: color as sharp as light. For frames on the session
1742
+ * socket, where the client's decoder takes it; WebRTC does not carry it.
1743
+ *
1744
+ * @generated from enum value: VIDEO_FORMAT_FULL_CHROMA = 2;
1745
+ */
1746
+ FULL_CHROMA = 2,
1747
+ /**
1748
+ * H.265 Main, 4:2:0: fewer bits than H.264 for the same picture.
1749
+ *
1750
+ * @generated from enum value: VIDEO_FORMAT_H265 = 3;
1751
+ */
1752
+ H265 = 3,
1753
+ /**
1754
+ * VP9 profile 0, 4:2:0.
1755
+ *
1756
+ * @generated from enum value: VIDEO_FORMAT_VP9 = 4;
1757
+ */
1758
+ VP9 = 4,
1759
+ /**
1760
+ * VP9 profile 1, 4:4:4: color as sharp as light, also over WebRTC.
1761
+ *
1762
+ * @generated from enum value: VIDEO_FORMAT_VP9_FULL_CHROMA = 5;
1763
+ */
1764
+ VP9_FULL_CHROMA = 5,
1765
+ /**
1766
+ * AV1 main, 4:2:0.
1767
+ *
1768
+ * @generated from enum value: VIDEO_FORMAT_AV1 = 6;
1769
+ */
1770
+ AV1 = 6
1771
+ }
1772
+ /**
1773
+ * Describes the enum aperture.live.v1.VideoFormat.
1774
+ */
1775
+ declare const VideoFormatSchema: GenEnum<VideoFormat$1>;
1776
+ /**
1777
+ * How much a target's video costs the client's link. The session picks it, by what the
1778
+ * link carries, and changes it as that changes: over WebRTC by the connection's own
1779
+ * estimate, on the session socket by how late the client shows frames (`video_shown`).
1780
+ *
1781
+ * @generated from enum aperture.live.v1.VideoQuality
1782
+ */
1783
+ declare enum VideoQuality$1 {
1784
+ /**
1785
+ * @generated from enum value: VIDEO_QUALITY_UNSPECIFIED = 0;
1786
+ */
1787
+ UNSPECIFIED = 0,
1788
+ /**
1789
+ * Up to 0.7 Mbit/s, 15 frames a second. Bitrates are for a picture of 1280x720 pixels;
1790
+ * larger ones get more.
1791
+ *
1792
+ * @generated from enum value: VIDEO_QUALITY_LOW = 1;
1793
+ */
1794
+ LOW = 1,
1795
+ /**
1796
+ * Up to 2.5 Mbit/s, 30 frames a second.
1797
+ *
1798
+ * @generated from enum value: VIDEO_QUALITY_MEDIUM = 2;
1799
+ */
1800
+ MEDIUM = 2,
1801
+ /**
1802
+ * A constant quality whatever it takes, 60 frames a second.
1803
+ *
1804
+ * @generated from enum value: VIDEO_QUALITY_FULL = 3;
1805
+ */
1806
+ FULL = 3
1807
+ }
1808
+ /**
1809
+ * Describes the enum aperture.live.v1.VideoQuality.
1810
+ */
1811
+ declare const VideoQualitySchema: GenEnum<VideoQuality$1>;
1812
+ /**
1813
+ * How the pixels of the watched target reach a client.
1814
+ *
1815
+ * @generated from enum aperture.live.v1.Pixels
1816
+ */
1817
+ declare enum Pixels {
1818
+ /**
1819
+ * None: the client only controls, or has yet to say.
1820
+ *
1821
+ * @generated from enum value: PIXELS_UNSPECIFIED = 0;
1822
+ */
1823
+ UNSPECIFIED = 0,
1824
+ /**
1825
+ * Video over WebRTC, once the client has offered a connection.
1826
+ *
1827
+ * @generated from enum value: PIXELS_VIDEO = 1;
1828
+ */
1829
+ VIDEO = 1,
1830
+ /**
1831
+ * Tiles on the session socket.
1832
+ *
1833
+ * @generated from enum value: PIXELS_TILES = 2;
1834
+ */
1835
+ TILES = 2,
1836
+ /**
1837
+ * Video frames on the session socket.
1838
+ *
1839
+ * @generated from enum value: PIXELS_FRAMES = 3;
1840
+ */
1841
+ FRAMES = 3
1842
+ }
1843
+ /**
1844
+ * Describes the enum aperture.live.v1.Pixels.
1845
+ */
1846
+ declare const PixelsSchema: GenEnum<Pixels>;
1847
+ /**
1848
+ * @generated from enum aperture.live.v1.MouseButton
1849
+ */
1850
+ declare enum MouseButton {
1851
+ /**
1852
+ * @generated from enum value: MOUSE_BUTTON_UNSPECIFIED = 0;
1853
+ */
1854
+ UNSPECIFIED = 0,
1855
+ /**
1856
+ * @generated from enum value: MOUSE_BUTTON_LEFT = 1;
1857
+ */
1858
+ LEFT = 1,
1859
+ /**
1860
+ * @generated from enum value: MOUSE_BUTTON_RIGHT = 2;
1861
+ */
1862
+ RIGHT = 2,
1863
+ /**
1864
+ * @generated from enum value: MOUSE_BUTTON_MIDDLE = 3;
1865
+ */
1866
+ MIDDLE = 3,
1867
+ /**
1868
+ * @generated from enum value: MOUSE_BUTTON_BACK = 4;
1869
+ */
1870
+ BACK = 4,
1871
+ /**
1872
+ * @generated from enum value: MOUSE_BUTTON_FORWARD = 5;
1873
+ */
1874
+ FORWARD = 5
1875
+ }
1876
+ /**
1877
+ * Describes the enum aperture.live.v1.MouseButton.
1878
+ */
1879
+ declare const MouseButtonSchema: GenEnum<MouseButton>;
1880
+ /**
1881
+ * @generated from enum aperture.live.v1.DownloadState
1882
+ */
1883
+ declare enum DownloadState$1 {
1884
+ /**
1885
+ * @generated from enum value: DOWNLOAD_STATE_UNSPECIFIED = 0;
1886
+ */
1887
+ UNSPECIFIED = 0,
1888
+ /**
1889
+ * @generated from enum value: DOWNLOAD_STATE_RUNNING = 1;
1890
+ */
1891
+ RUNNING = 1,
1892
+ /**
1893
+ * @generated from enum value: DOWNLOAD_STATE_DONE = 2;
1894
+ */
1895
+ DONE = 2,
1896
+ /**
1897
+ * @generated from enum value: DOWNLOAD_STATE_FAILED = 3;
1898
+ */
1899
+ FAILED = 3
1900
+ }
1901
+ /**
1902
+ * Describes the enum aperture.live.v1.DownloadState.
1903
+ */
1904
+ declare const DownloadStateSchema: GenEnum<DownloadState$1>;
1905
+ /**
1906
+ * @generated from enum aperture.live.v1.StrokePhase
1907
+ */
1908
+ declare enum StrokePhase$1 {
1909
+ /**
1910
+ * @generated from enum value: STROKE_PHASE_UNSPECIFIED = 0;
1911
+ */
1912
+ UNSPECIFIED = 0,
1913
+ /**
1914
+ * @generated from enum value: STROKE_PHASE_START = 1;
1915
+ */
1916
+ START = 1,
1917
+ /**
1918
+ * @generated from enum value: STROKE_PHASE_MOVE = 2;
1919
+ */
1920
+ MOVE = 2,
1921
+ /**
1922
+ * @generated from enum value: STROKE_PHASE_END = 3;
1923
+ */
1924
+ END = 3
1925
+ }
1926
+ /**
1927
+ * Describes the enum aperture.live.v1.StrokePhase.
1928
+ */
1929
+ declare const StrokePhaseSchema: GenEnum<StrokePhase$1>;
1930
+ /**
1931
+ * @generated from enum aperture.live.v1.Role
1932
+ */
1933
+ declare enum Role$1 {
1934
+ /**
1935
+ * @generated from enum value: ROLE_UNSPECIFIED = 0;
1936
+ */
1937
+ UNSPECIFIED = 0,
1938
+ /**
1939
+ * Watches.
1940
+ *
1941
+ * @generated from enum value: ROLE_VIEW = 1;
1942
+ */
1943
+ VIEW = 1,
1944
+ /**
1945
+ * Gives input.
1946
+ *
1947
+ * @generated from enum value: ROLE_CONTROL = 2;
1948
+ */
1949
+ CONTROL = 2,
1950
+ /**
1951
+ * Takes a tab from whoever holds it.
1952
+ *
1953
+ * @generated from enum value: ROLE_ADMIN = 3;
1954
+ */
1955
+ ADMIN = 3
1956
+ }
1957
+ /**
1958
+ * Describes the enum aperture.live.v1.Role.
1959
+ */
1960
+ declare const RoleSchema: GenEnum<Role$1>;
1961
+ /**
1962
+ * @generated from enum aperture.live.v1.LeaseAction
1963
+ */
1964
+ declare enum LeaseAction$1 {
1965
+ /**
1966
+ * @generated from enum value: LEASE_ACTION_UNSPECIFIED = 0;
1967
+ */
1968
+ UNSPECIFIED = 0,
1969
+ /**
1970
+ * Asks for the tab. One nobody holds is the client's at once, and so is any an admin
1971
+ * asks for. Another holder is asked, and the tab is the client's when the holder allows
1972
+ * it or does not answer for ten seconds.
1973
+ *
1974
+ * @generated from enum value: LEASE_ACTION_TAKE = 1;
1975
+ */
1976
+ TAKE = 1,
1977
+ /**
1978
+ * Lets go of the tab the client holds.
1979
+ *
1980
+ * @generated from enum value: LEASE_ACTION_RELEASE = 2;
1981
+ */
1982
+ RELEASE = 2,
1983
+ /**
1984
+ * Answers the member who asks for the tab the client holds.
1985
+ *
1986
+ * @generated from enum value: LEASE_ACTION_ALLOW = 3;
1987
+ */
1988
+ ALLOW = 3,
1989
+ /**
1990
+ * @generated from enum value: LEASE_ACTION_KEEP = 4;
1991
+ */
1992
+ KEEP = 4
1993
+ }
1994
+ /**
1995
+ * Describes the enum aperture.live.v1.LeaseAction.
1996
+ */
1997
+ declare const LeaseActionSchema: GenEnum<LeaseAction$1>;
1998
+ /**
1999
+ * Where along a page's history.
2000
+ *
2001
+ * @generated from enum aperture.live.v1.Along
2002
+ */
2003
+ declare enum Along$1 {
2004
+ /**
2005
+ * @generated from enum value: ALONG_UNSPECIFIED = 0;
2006
+ */
2007
+ UNSPECIFIED = 0,
2008
+ /**
2009
+ * @generated from enum value: ALONG_BACK = 1;
2010
+ */
2011
+ BACK = 1,
2012
+ /**
2013
+ * @generated from enum value: ALONG_FORWARD = 2;
2014
+ */
2015
+ FORWARD = 2,
2016
+ /**
2017
+ * @generated from enum value: ALONG_RELOAD = 3;
2018
+ */
2019
+ RELOAD = 3
2020
+ }
2021
+ /**
2022
+ * Describes the enum aperture.live.v1.Along.
2023
+ */
2024
+ declare const AlongSchema: GenEnum<Along$1>;
2025
+ /**
2026
+ * @generated from enum aperture.live.v1.Asked
2027
+ */
2028
+ declare enum Asked {
2029
+ /**
2030
+ * @generated from enum value: ASKED_UNSPECIFIED = 0;
2031
+ */
2032
+ UNSPECIFIED = 0,
2033
+ /**
2034
+ * @generated from enum value: ASKED_GO = 1;
2035
+ */
2036
+ GO = 1,
2037
+ /**
2038
+ * @generated from enum value: ASKED_CLOSE = 2;
2039
+ */
2040
+ CLOSE = 2,
2041
+ /**
2042
+ * @generated from enum value: ASKED_COPY_PICTURE = 3;
2043
+ */
2044
+ COPY_PICTURE = 3,
2045
+ /**
2046
+ * @generated from enum value: ASKED_FILES_CHOSEN = 4;
2047
+ */
2048
+ FILES_CHOSEN = 4,
2049
+ /**
2050
+ * @generated from enum value: ASKED_FOLLOW = 5;
2051
+ */
2052
+ FOLLOW = 5,
2053
+ /**
2054
+ * @generated from enum value: ASKED_SET_MODE = 6;
2055
+ */
2056
+ SET_MODE = 6
2057
+ }
2058
+ /**
2059
+ * Describes the enum aperture.live.v1.Asked.
2060
+ */
2061
+ declare const AskedSchema: GenEnum<Asked>;
2062
+ /**
2063
+ * How a tab's pages are shown.
2064
+ *
2065
+ * @generated from enum aperture.live.v1.PageMode
2066
+ */
2067
+ declare enum PageMode$1 {
2068
+ /**
2069
+ * @generated from enum value: PAGE_MODE_UNSPECIFIED = 0;
2070
+ */
2071
+ UNSPECIFIED = 0,
2072
+ /**
2073
+ * As on what its holder uses: as on a phone once a client that is a phone holds the
2074
+ * tab, and as on a desktop once one that is none does. Watching changes nothing, and
2075
+ * neither does the session's automation, which has no device: the tab stays as it was.
2076
+ * A page that is there when this changes is left as it loaded; the pages that load
2077
+ * after are asked for as the tab is by then.
2078
+ *
2079
+ * @generated from enum value: PAGE_MODE_AUTO = 1;
2080
+ */
2081
+ AUTO = 1,
2082
+ /**
2083
+ * @generated from enum value: PAGE_MODE_DESKTOP = 2;
2084
+ */
2085
+ DESKTOP = 2,
2086
+ /**
2087
+ * As on a phone: a phone's user agent and client hints, touch in place of a mouse, and
2088
+ * a viewport pages lay themselves out for as for a phone's.
2089
+ *
2090
+ * @generated from enum value: PAGE_MODE_MOBILE = 3;
2091
+ */
2092
+ MOBILE = 3
2093
+ }
2094
+ /**
2095
+ * Describes the enum aperture.live.v1.PageMode.
2096
+ */
2097
+ declare const PageModeSchema: GenEnum<PageMode$1>;
2098
+ //#endregion
2099
+ //#region src/model.d.ts
2100
+ /** How the picture of the watched target reaches the client. */
2101
+ type PictureWay = "video" | "frames" | "tiles";
2102
+ /** The form a target's video takes; see `VideoFormat` in the protocol. */
2103
+ type VideoFormat = "h264" | "full-chroma" | "h265" | "vp9" | "vp9-full-chroma" | "av1";
2104
+ /** How much the video costs the link; see `VideoQuality` in the protocol. */
2105
+ type VideoQuality = "low" | "medium" | "full";
2106
+ type Role = "view" | "control" | "admin";
2107
+ type DownloadState = "running" | "done" | "failed";
2108
+ type Along = "back" | "forward" | "reload";
2109
+ type LeaseAction = "take" | "release" | "allow" | "keep";
2110
+ /**
2111
+ * How a tab's pages are shown: as on a desktop, as on a phone, or as on what its holder
2112
+ * uses, which is a phone's once someone holds the tab from one.
2113
+ */
2114
+ type PageMode = "auto" | "desktop" | "mobile";
2115
+ /** A page of the session's browser. */
2116
+ interface Target {
2117
+ /** Lasts as long as the page does in one run of the session. */
2118
+ readonly id: string;
2119
+ /** The tab's number, which stays the tab's when the session is suspended and resumed. */
2120
+ readonly tab: number;
2121
+ readonly title: string;
2122
+ readonly url: string;
2123
+ /** In logical pixels, which pointer positions are in. */
2124
+ readonly width: number;
2125
+ readonly height: number;
2126
+ /** Pixels to a logical pixel. */
2127
+ readonly scale: number;
2128
+ /** How the tab's pages are shown, as it was set. */
2129
+ readonly mode: PageMode;
2130
+ /** The tab's pages are shown as on a phone now: what the mode comes to. */
2131
+ readonly mobile: boolean;
2132
+ /** The tab plays sound now. */
2133
+ readonly sounds: boolean;
2134
+ /** The page's history has somewhere to go back to, and forward. */
2135
+ readonly goesBack: boolean;
2136
+ readonly goesForward: boolean;
2137
+ }
2138
+ /** What this client may do in one area of the session. */
2139
+ interface Grant {
2140
+ readonly read: boolean;
2141
+ readonly write: boolean;
2142
+ }
2143
+ /**
2144
+ * What this client may do in the session, area by area: what whoever let it in gave it, of
2145
+ * what the session offers at all. Watching takes no grant.
2146
+ */
2147
+ interface Features {
2148
+ /** Write: giving the watched tab input. */
2149
+ readonly input: Grant;
2150
+ /** Write: opening, closing and navigating tabs, and giving them another size. */
2151
+ readonly tabs: Grant;
2152
+ /** Write: taking a tab from whoever holds it, without asking. */
2153
+ readonly lease: Grant;
2154
+ /** Read: hearing tabs. */
2155
+ readonly sound: Grant;
2156
+ /** Read: what is copied in the session. Write: pasting into it. */
2157
+ readonly clipboard: Grant;
2158
+ /** Read: the files put into the session. Write: putting them, and answering pages. */
2159
+ readonly uploads: Grant;
2160
+ /** Read: what the session's browser downloaded. */
2161
+ readonly downloads: Grant;
2162
+ /** Read: recordings and screenshots. Write: making them. */
2163
+ readonly recordings: Grant;
2164
+ /** Write: the automation endpoint. */
2165
+ readonly mcp: Grant;
2166
+ /** Write: the DevTools endpoint. */
2167
+ readonly cdp: Grant;
2168
+ /** Write: attaching a tunnel. */
2169
+ readonly tunnel: Grant;
2170
+ }
2171
+ /** What a client may do before the session has told: nothing. */
2172
+ declare const NO_FEATURES: Features;
2173
+ declare const featuresOf: (features: Features$1) => Features;
2174
+ /** How the session's automation moves the pointer in a tab that is being recorded. */
2175
+ type Pace = "instant" | "fast" | "slow";
2176
+ /**
2177
+ * A storage state being put into the session's browser: so many tabs, cookies and origins,
2178
+ * which is none of each until the state has come. While it is underway the session takes
2179
+ * no input and changes no tabs. With `failure`, the state the session was to start with
2180
+ * was not taken, and the session ends.
2181
+ */
2182
+ interface Restoring {
2183
+ readonly tabs: number;
2184
+ readonly cookies: number;
2185
+ readonly origins: number;
2186
+ readonly failure: string | undefined;
2187
+ }
2188
+ declare const restoringOf: (told: Restoring$1) => Restoring | undefined;
2189
+ declare const paceOf: (pace: Pace$1) => Pace;
2190
+ interface Member {
2191
+ readonly id: number;
2192
+ readonly name: string;
2193
+ readonly role: Role | undefined;
2194
+ /** The tab the member watches. */
2195
+ readonly tab: number | undefined;
2196
+ /** The session's automation rather than a person. */
2197
+ readonly agent: boolean;
2198
+ /** The member this one follows: it watches the tab that member watches. */
2199
+ readonly follows: number | undefined;
2200
+ }
2201
+ /** Where another member's pointer is on the watched tab, in the tab's logical pixels. */
2202
+ interface PointerMark {
2203
+ readonly member: number;
2204
+ /** None once the pointer left the tab's picture. */
2205
+ readonly at: {
2206
+ readonly x: number;
2207
+ readonly y: number;
2208
+ } | undefined;
2209
+ }
2210
+ type StrokePhase = "start" | "move" | "end";
2211
+ /** A point of a stroke another member draws over the watched tab. */
2212
+ interface StrokePoint {
2213
+ readonly member: number;
2214
+ /** Which of the member's strokes the point is of. */
2215
+ readonly stroke: number;
2216
+ readonly phase: StrokePhase;
2217
+ readonly x: number;
2218
+ readonly y: number;
2219
+ }
2220
+ interface HeldTab {
2221
+ readonly tab: number;
2222
+ /** The member who holds it. */
2223
+ readonly holder: number;
2224
+ /** The member who asks the holder for it. */
2225
+ readonly askedBy: number | undefined;
2226
+ }
2227
+ /** Who is in the session and who drives which tab. */
2228
+ interface Presence {
2229
+ /** The member this client is. */
2230
+ readonly you: number;
2231
+ readonly members: readonly Member[];
2232
+ readonly held: readonly HeldTab[];
2233
+ }
2234
+ interface Download {
2235
+ readonly id: string;
2236
+ /** The file's name below `downloads/` of the session's files. */
2237
+ readonly name: string;
2238
+ readonly url: string;
2239
+ readonly receivedBytes: number;
2240
+ /** Left out while the page does not say. */
2241
+ readonly totalBytes: number | undefined;
2242
+ readonly state: DownloadState | undefined;
2243
+ }
2244
+ /** A page that asks for files and has no answer yet. */
2245
+ interface FileRequest {
2246
+ readonly id: number;
2247
+ /** The tab whose page asks. */
2248
+ readonly tab: number;
2249
+ readonly multiple: boolean;
2250
+ }
2251
+ /** What a right click in the session was on, when the page showed no menu of its own. */
2252
+ interface Menu {
2253
+ readonly link: string | undefined;
2254
+ readonly image: string | undefined;
2255
+ /** The text that is selected. */
2256
+ readonly text: string | undefined;
2257
+ /** There is a field to write into under the pointer. */
2258
+ readonly editable: boolean;
2259
+ }
2260
+ /** One form of content that is copied or dragged, by its MIME type. */
2261
+ interface ClipboardForm {
2262
+ readonly type: string;
2263
+ readonly data: Uint8Array;
2264
+ }
2265
+ /** Something was copied in the session. */
2266
+ interface ClipboardEvent {
2267
+ readonly forms: readonly ClipboardForm[];
2268
+ /** Whether this browser's clipboard took it; where it did not, a click has to. */
2269
+ readonly written: boolean;
2270
+ }
2271
+ /** Something this client asked for over the session socket was not done. */
2272
+ interface Failure {
2273
+ readonly asked: "go" | "close" | "copyPicture" | "chooseFiles" | "follow" | "setMode" | undefined;
2274
+ /** Why, as the session says it. */
2275
+ readonly reason: string;
2276
+ }
2277
+ interface VideoStatus {
2278
+ readonly format: VideoFormat | undefined;
2279
+ readonly quality: VideoQuality | undefined;
2280
+ /** Frames a second at most. */
2281
+ readonly fps: number;
2282
+ }
2283
+ interface PictureSettings {
2284
+ readonly format?: VideoFormat;
2285
+ readonly quality?: VideoQuality;
2286
+ readonly fps?: number;
2287
+ }
2288
+ interface Picture {
2289
+ readonly way: PictureWay;
2290
+ /** What this browser can do, best first. */
2291
+ readonly ways: readonly PictureWay[];
2292
+ /** What the session says it sends. */
2293
+ readonly status: VideoStatus | undefined;
2294
+ /** What this browser can decode the current way. */
2295
+ readonly formats: readonly VideoFormat[];
2296
+ readonly settings: PictureSettings;
2297
+ /** The state of the WebRTC connection while the picture comes as video. */
2298
+ readonly rtc: RTCPeerConnectionState | undefined;
2299
+ }
2300
+ interface Connection {
2301
+ readonly state: "connecting" | "open" | "closed";
2302
+ readonly reason?: string;
2303
+ }
2304
+ interface Snapshot {
2305
+ readonly connection: Connection;
2306
+ readonly targets: readonly Target[];
2307
+ /** The tab that is watched, by its number. */
2308
+ readonly selected: number | undefined;
2309
+ readonly presence: Presence | undefined;
2310
+ readonly downloads: readonly Download[];
2311
+ readonly fileRequests: readonly FileRequest[];
2312
+ /** A CSS cursor value. */
2313
+ readonly cursor: string;
2314
+ readonly picture: Picture;
2315
+ /** Nothing is granted until the session has told. */
2316
+ readonly features: Features;
2317
+ /** How the session's automation moves the pointer in a tab that is being recorded. */
2318
+ readonly pace: Pace;
2319
+ /**
2320
+ * The session is being given what its browser starts with, or was not: nothing where
2321
+ * it is what it was asked to be.
2322
+ */
2323
+ readonly restoring: Restoring | undefined;
2324
+ /** The numbers of the tabs that are muted here; the others are heard while watched. */
2325
+ readonly muted: readonly number[];
2326
+ /** The session's right-click report, at the client coordinates of the click. */
2327
+ readonly menu: (Menu & {
2328
+ readonly x: number;
2329
+ readonly y: number;
2330
+ }) | undefined;
2331
+ /** The watched target's viewport follows the attached stage's size. */
2332
+ readonly fit: boolean;
2333
+ /**
2334
+ * This client is used from a phone: a finger points at it and its window is narrow. A
2335
+ * tab whose mode is `auto` is shown as on a phone once this client holds it.
2336
+ */
2337
+ readonly phone: boolean;
2338
+ }
2339
+ declare const FORMATS: {
2340
+ readonly h264: VideoFormat$1.H264;
2341
+ readonly "full-chroma": VideoFormat$1.FULL_CHROMA;
2342
+ readonly h265: VideoFormat$1.H265;
2343
+ readonly vp9: VideoFormat$1.VP9;
2344
+ readonly "vp9-full-chroma": VideoFormat$1.VP9_FULL_CHROMA;
2345
+ readonly av1: VideoFormat$1.AV1;
2346
+ };
2347
+ declare const QUALITIES: {
2348
+ readonly low: VideoQuality$1.LOW;
2349
+ readonly medium: VideoQuality$1.MEDIUM;
2350
+ readonly full: VideoQuality$1.FULL;
2351
+ };
2352
+ declare const PIXELS: {
2353
+ readonly video: Pixels.VIDEO;
2354
+ readonly frames: Pixels.FRAMES;
2355
+ readonly tiles: Pixels.TILES;
2356
+ };
2357
+ declare const ALONGS: {
2358
+ readonly back: Along$1.BACK;
2359
+ readonly forward: Along$1.FORWARD;
2360
+ readonly reload: Along$1.RELOAD;
2361
+ };
2362
+ declare const LEASE_ACTIONS: {
2363
+ readonly take: LeaseAction$1.TAKE;
2364
+ readonly release: LeaseAction$1.RELEASE;
2365
+ readonly allow: LeaseAction$1.ALLOW;
2366
+ readonly keep: LeaseAction$1.KEEP;
2367
+ };
2368
+ declare const PAGE_MODES: {
2369
+ readonly auto: PageMode$1.AUTO;
2370
+ readonly desktop: PageMode$1.DESKTOP;
2371
+ readonly mobile: PageMode$1.MOBILE;
2372
+ };
2373
+ declare const STROKE_PHASE: Record<StrokePhase, StrokePhase$1>;
2374
+ declare const pointerOf: (pointer: Pointer) => PointerMark;
2375
+ /** None for a point of a phase this client does not know. */
2376
+ declare const strokeOf: (stroke: Stroke) => StrokePoint | undefined;
2377
+ declare const failureOf: (failed: Failed) => Failure;
2378
+ declare const formatOf: (format: VideoFormat$1) => "h264" | "full-chroma" | "h265" | "vp9" | "vp9-full-chroma" | "av1" | undefined;
2379
+ declare const qualityOf: (quality: VideoQuality$1) => "low" | "medium" | "full" | undefined;
2380
+ declare const targetOf: (target: Target$1) => Target;
2381
+ declare const presenceOf: (presence: Presence$1) => Presence;
2382
+ declare const downloadOf: (download: Download$1) => Download;
2383
+ declare const fileRequestOf: (request: FileRequest$1) => FileRequest;
2384
+ declare const menuOf: (menu: Menu$1) => Menu;
2385
+ declare const statusOf: (status: VideoStatus$1) => VideoStatus;
2386
+ declare namespace http_d_exports {
2387
+ export { DownloadedFile, EditRecording, Recording, RecordingAnnotation, RecordingBurst, RecordingEdit, RecordingOptions, Screenshot, StartRecording, StateCookie, StorageState, StorageStateAsked, UploadProgress, Uploaded, ViewportSize, annotateRecording, downloads, editRecording, exportStorageState, getPace, getRecording, importStorageState, listRecordings, listScreenshots, removeUpload, retargetRecording, setPace, setViewport, startRecording, stopRecording, takeScreenshot, targets, upload, uploads };
2388
+ }
2389
+ /** A file put into the session for its browser to take. */
2390
+ interface Uploaded {
2391
+ readonly name: string;
2392
+ readonly size: number;
2393
+ /** Where the file is, for the browser as for the session's tools. */
2394
+ readonly path: string;
2395
+ }
2396
+ /** A download as the session's `downloads` route tells it. */
2397
+ interface DownloadedFile {
2398
+ readonly id: string;
2399
+ readonly name: string;
2400
+ readonly url: string;
2401
+ readonly received: number;
2402
+ /** None while the page does not say. */
2403
+ readonly total: number | null;
2404
+ readonly state: "running" | "done" | "failed";
2405
+ }
2406
+ interface ViewportSize {
2407
+ readonly width: number;
2408
+ readonly height: number;
2409
+ /** The target keeps its scale when left out. */
2410
+ readonly scale?: number | undefined;
2411
+ }
2412
+ /** The size of a burst around a tool call, see `RecordingOptions.capture`. */
2413
+ interface RecordingBurst {
2414
+ readonly lead_ms: number;
2415
+ readonly tail_ms: number;
2416
+ /** The tail goes on until the picture has stood still for this long. */
2417
+ readonly settle_ms: number;
2418
+ readonly max_tail_ms: number;
2419
+ }
2420
+ /**
2421
+ * How an edit of a recording is made: said as the recording stops, and again for every edit
2422
+ * that is made of it after.
2423
+ */
2424
+ interface RecordingOptions {
2425
+ /** `bursts` keeps only the stretches around what the automation did. */
2426
+ readonly capture: "continuous" | "bursts";
2427
+ /** Shortens the stretches in which nothing happens. Not with `bursts`. */
2428
+ readonly idle: "cut" | "speed" | null;
2429
+ /** Marks clicks with a ripple. */
2430
+ readonly ripple: boolean;
2431
+ readonly burst: RecordingBurst;
2432
+ /** The share of the picture that must change for something to have happened: 0 to 1. */
2433
+ readonly motion_threshold: number;
2434
+ /** The edited video's frames a second: 1 to 60, which is the most the raw video has. */
2435
+ readonly fps: number;
2436
+ }
2437
+ /** What is said of an edit; what is left out is as the session has it by default. */
2438
+ interface EditRecording extends Partial<Omit<RecordingOptions, "burst">> {
2439
+ readonly burst?: Partial<RecordingBurst>;
2440
+ }
2441
+ interface StartRecording {
2442
+ /** The tab to record; the newest one when left out. */
2443
+ readonly tab?: number;
2444
+ /** Go on with whichever tab the session's automation acts on. */
2445
+ readonly follow?: boolean;
2446
+ }
2447
+ interface RecordingEdit {
2448
+ readonly state: "editing" | "finished" | "failed";
2449
+ /** What it is made with: what the recording was stopped or last edited again with. */
2450
+ readonly options: RecordingOptions;
2451
+ /** When it was made, which tells one edit of a recording from the one before. */
2452
+ readonly made_at_ms: number | null;
2453
+ /** The edited video's file, relative to the session's files, once it is made. */
2454
+ readonly file: string | null;
2455
+ /** What happened, where in the raw video and where in the edited one. */
2456
+ readonly timeline: string | null;
2457
+ readonly failure: string | null;
2458
+ }
2459
+ interface Recording {
2460
+ readonly id: string;
2461
+ /** The tab it is of. */
2462
+ readonly tab: number;
2463
+ /** The target it is of, which is no target of a later run of the session. */
2464
+ readonly target: string;
2465
+ /** The page's title and address as the recording began. */
2466
+ readonly title: string;
2467
+ readonly url: string;
2468
+ /** The raw video's file, relative to the session's files. */
2469
+ readonly file: string;
2470
+ /** The journal's file, relative to the session's files. */
2471
+ readonly journal: string;
2472
+ /** A small picture of the target as the recording began, relative to the session's files. */
2473
+ readonly preview: string | null;
2474
+ readonly journal_dropped: number;
2475
+ readonly state: "recording" | "finished" | "failed";
2476
+ readonly started_at_ms: number;
2477
+ /** Set once the recording ended. */
2478
+ readonly duration_ms: number | null;
2479
+ readonly bytes: number | null;
2480
+ readonly failure: string | null;
2481
+ /** It goes on with whichever tab the session's automation acts on. */
2482
+ readonly follow: boolean;
2483
+ /** The edit, once the recording stopped; none where the session cannot make one. */
2484
+ readonly edit: RecordingEdit | null;
2485
+ }
2486
+ /** A picture of a target, kept in the session's files. */
2487
+ interface Screenshot {
2488
+ readonly id: string;
2489
+ /** The page's title and address as it was taken. */
2490
+ readonly title: string;
2491
+ readonly url: string;
2492
+ /** The picture's size in pixels. */
2493
+ readonly width: number;
2494
+ readonly height: number;
2495
+ /** The picture's file, relative to the session's files. */
2496
+ readonly file: string;
2497
+ /** The same picture, small. */
2498
+ readonly preview: string;
2499
+ readonly bytes: number;
2500
+ readonly taken_at_ms: number;
2501
+ }
2502
+ interface UploadProgress {
2503
+ readonly loaded: number;
2504
+ readonly total: number;
2505
+ }
2506
+ /** Every target of the session, oldest first. */
2507
+ declare const targets: (address: Address) => Effect.Effect<Target[], SessionError, never>;
2508
+ /** Gives a target its own viewport, as near to the one asked for as it can be given. */
2509
+ declare const setViewport: (address: Address, tab: number, viewport: ViewportSize) => Effect.Effect<void, SessionError, never>;
2510
+ declare const downloads: (address: Address) => Effect.Effect<DownloadedFile[], SessionError, never>;
2511
+ declare const uploads: (address: Address) => Effect.Effect<Uploaded[], SessionError, never>;
2512
+ /**
2513
+ * Puts a file into the session's uploads under its own name, in place of one there was.
2514
+ * Files get to the session's browser this way: they are put there, and the browser is
2515
+ * told where they are.
2516
+ */
2517
+ declare const upload: (address: Address, file: File, onProgress?: ((progress: UploadProgress) => void) | undefined) => Effect.Effect<Uploaded, SessionError, never>;
2518
+ declare const removeUpload: (address: Address, name: string) => Effect.Effect<void, SessionError, never>;
2519
+ declare const listRecordings: (address: Address) => Effect.Effect<Recording[], SessionError, never>;
2520
+ declare const getRecording: (address: Address, id: string) => Effect.Effect<Recording, SessionError, never>;
2521
+ declare const startRecording: (address: Address, options?: StartRecording | undefined) => Effect.Effect<Recording, SessionError, never>;
2522
+ /** Stops a recording. Its edit is made after, with `options`. */
2523
+ declare const stopRecording: (address: Address, id: string, options?: EditRecording | undefined) => Effect.Effect<Recording, SessionError, never>;
2524
+ /**
2525
+ * Makes the edit of a stopped recording again, of the same raw video and with `options`. It
2526
+ * takes the place of the edit there is once it is made. Refused while an edit of the
2527
+ * recording is being made, and for a recording whose raw video is gone.
2528
+ */
2529
+ declare const editRecording: (address: Address, id: string, options?: EditRecording | undefined) => Effect.Effect<Recording, SessionError, never>;
2530
+ declare const getPace: (address: Address) => Effect.Effect<Pace, SessionError, never>;
2531
+ /** Sets the session's pace, for every recording and whoever watches. */
2532
+ declare const setPace: (address: Address, pace: Pace) => Effect.Effect<Pace, SessionError, never>;
2533
+ /** Has a running recording go on with another tab, in the same video. */
2534
+ declare const retargetRecording: (address: Address, id: string, tab: number) => Effect.Effect<Recording, SessionError, never>;
2535
+ /** What a running recording's edit is told to show. */
2536
+ type RecordingAnnotation = {
2537
+ readonly kind: "caption";
2538
+ readonly text: string;
2539
+ readonly duration_ms?: number;
2540
+ } | {
2541
+ readonly kind: "focus";
2542
+ readonly zoom: number;
2543
+ readonly rect?: {
2544
+ readonly x: number;
2545
+ readonly y: number;
2546
+ readonly width: number;
2547
+ readonly height: number;
2548
+ };
2549
+ readonly selector?: string;
2550
+ readonly pointer?: boolean; /** Zooms out after this long; until `reset_focus` when left out. */
2551
+ readonly duration_ms?: number;
2552
+ } | {
2553
+ readonly kind: "reset_focus";
2554
+ } | {
2555
+ readonly kind: "attention";
2556
+ readonly x?: number;
2557
+ readonly y?: number;
2558
+ readonly selector?: string;
2559
+ readonly radius?: number;
2560
+ readonly loops?: number;
2561
+ readonly duration_ms?: number;
2562
+ };
2563
+ /** Adds an annotation to a running recording: the one named, or the only one that runs. */
2564
+ declare const annotateRecording: (address: Address, annotation: RecordingAnnotation, id?: string | undefined) => Effect.Effect<void, SessionError, never>;
2565
+ /** A cookie of the session's browser. */
2566
+ interface StateCookie {
2567
+ readonly name: string;
2568
+ readonly value: string;
2569
+ readonly domain: string;
2570
+ /** It goes to this host alone, not to the hosts below it. */
2571
+ readonly hostOnly?: boolean;
2572
+ readonly path: string;
2573
+ /** Seconds since the epoch; a cookie without it ends with the browser. */
2574
+ readonly expires?: number;
2575
+ readonly httpOnly?: boolean;
2576
+ readonly secure?: boolean;
2577
+ readonly sameSite?: string;
2578
+ readonly partitionKey?: unknown;
2579
+ }
2580
+ /**
2581
+ * What the session's browser keeps for the sites it visits: cookies, local storage and,
2582
+ * where they were asked for, the origins' IndexedDB databases.
2583
+ */
2584
+ interface StorageState {
2585
+ readonly cookies?: readonly StateCookie[];
2586
+ readonly origins?: readonly {
2587
+ readonly origin: string;
2588
+ readonly localStorage?: readonly {
2589
+ readonly name: string;
2590
+ readonly value: string;
2591
+ }[]; /** The origin's databases, as the session wrote them down. */
2592
+ readonly indexedDB?: readonly unknown[];
2593
+ }[];
2594
+ }
2595
+ /** Which of it an export gives. */
2596
+ interface StorageStateAsked {
2597
+ /** The origins of the pages the tabs show, or the origins named. */
2598
+ readonly origins?: "open-tabs" | readonly string[];
2599
+ /** The cookies the browser would send to those origins, or all it has. */
2600
+ readonly cookies?: "matching" | "all";
2601
+ /** The origins' IndexedDB databases as well, where many sites keep who is signed in. */
2602
+ readonly indexed_db?: boolean;
2603
+ }
2604
+ /** Takes cookies and the storage of origins out of the session's browser. */
2605
+ declare const exportStorageState: (address: Address, asked?: StorageStateAsked | undefined) => Effect.Effect<StorageState, SessionError, never>;
2606
+ /**
2607
+ * Puts cookies and the storage of origins into the session's browser: the cookies beside
2608
+ * those there are, each origin's local storage in place of what the origin had, and each
2609
+ * of its databases in place of the origin's one of that name.
2610
+ */
2611
+ declare const importStorageState: (address: Address, state: StorageState) => Effect.Effect<void, SessionError, never>;
2612
+ declare const listScreenshots: (address: Address) => Effect.Effect<Screenshot[], SessionError, never>;
2613
+ /** Takes a screenshot of a tab, the newest one when none is named, and keeps it. */
2614
+ declare const takeScreenshot: (address: Address, tab?: number | undefined) => Effect.Effect<Screenshot, SessionError, never>;
2615
+ //#endregion
2616
+ //#region src/keys.d.ts
2617
+ /** `KeyboardEvent.code` to Linux evdev key codes. */
2618
+ declare const KEYS: Readonly<Record<string, number>>;
2619
+ //#endregion
2620
+ //#region src/input.d.ts
2621
+ /** The elements a session is shown in and takes input from. */
2622
+ interface Surfaces {
2623
+ /** Shows the picture while it comes as video. */
2624
+ readonly video: HTMLVideoElement;
2625
+ /** Shows the picture while it comes as frames or as tiles. */
2626
+ readonly canvas: HTMLCanvasElement;
2627
+ /** Takes the keyboard without showing: what is typed into it goes to the session. */
2628
+ readonly keys: HTMLTextAreaElement;
2629
+ /** What the picture is laid out in, whose size a fitted viewport follows. */
2630
+ readonly stage: HTMLElement;
2631
+ }
2632
+ //#endregion
2633
+ //#region src/session.d.ts
2634
+ interface ConnectOptions extends Address {
2635
+ /** The way the picture is to come at first; the best this browser can do when left out. */
2636
+ readonly pixels?: PictureWay | undefined;
2637
+ }
2638
+ /** Where the watched target's page is taken. */
2639
+ type Destination = {
2640
+ readonly url: string;
2641
+ } | {
2642
+ readonly along: Along;
2643
+ };
2644
+ interface GoOptions {
2645
+ /** The page opens in a new tab rather than in the target's. */
2646
+ readonly newTab?: boolean | undefined;
2647
+ }
2648
+ /**
2649
+ * A change of how the picture comes. A key that is left out keeps what it has; one that
2650
+ * is there and undefined leaves the choice to the session again.
2651
+ */
2652
+ interface PictureChange extends PictureSettings {
2653
+ readonly way?: PictureWay;
2654
+ }
2655
+ /** The snapshot as a store, as `useSyncExternalStore` takes one. */
2656
+ interface SnapshotStore {
2657
+ /** Referentially stable until something changes. */
2658
+ readonly get: () => Snapshot;
2659
+ readonly subscribe: (listener: () => void) => () => void;
2660
+ }
2661
+ interface FitOptions {
2662
+ /**
2663
+ * Fit only once the tab is this member's to size: it holds the tab, or nobody holds it
2664
+ * and nobody else watches it. Without it the fitting is the member's own doing and takes
2665
+ * the tab as any input does.
2666
+ */
2667
+ readonly whenFree?: boolean;
2668
+ }
2669
+ interface SessionService {
2670
+ readonly store: SnapshotStore;
2671
+ readonly snapshot: Effect.Effect<Snapshot>;
2672
+ /** The snapshot as it is, then every snapshot after it. */
2673
+ readonly changes: Stream.Stream<Snapshot>;
2674
+ /** What is copied in the session, after this browser's clipboard was offered it. */
2675
+ readonly clipboard: Stream.Stream<ClipboardEvent>;
2676
+ readonly onClipboard: (listener: (event: ClipboardEvent) => void) => () => void;
2677
+ /** What this client asked for and the session did not do. */
2678
+ readonly failures: Stream.Stream<Failure>;
2679
+ readonly onFailure: (listener: (failure: Failure) => void) => () => void;
2680
+ /**
2681
+ * A finger moved the watched tab's page, by this much of the target's pixels each time:
2682
+ * down the page where `y` is more than nothing. It tells what the finger did, whether
2683
+ * or not the page had anywhere to go.
2684
+ */
2685
+ readonly onDragged: (listener: (by: {
2686
+ readonly x: number;
2687
+ readonly y: number;
2688
+ }) => void) => () => void;
2689
+ /** Where the other members' pointers are on the watched tab, as they move. */
2690
+ readonly onPointer: (listener: (pointer: PointerMark) => void) => () => void;
2691
+ /** The strokes the other members draw over the watched tab, point by point. */
2692
+ readonly onStroke: (listener: (point: StrokePoint) => void) => () => void;
2693
+ /**
2694
+ * Follows a member to whichever tab it watches, until this client selects a tab itself;
2695
+ * nobody when left out.
2696
+ */
2697
+ readonly follow: (member?: number) => Effect.Effect<void>;
2698
+ /**
2699
+ * Shows the others a point of a stroke over the watched tab, in the tab's logical
2700
+ * pixels. The client numbers its strokes.
2701
+ */
2702
+ readonly draw: (stroke: number, phase: StrokePhase, at: {
2703
+ readonly x: number;
2704
+ readonly y: number;
2705
+ }) => Effect.Effect<void>;
2706
+ /**
2707
+ * Shows the others where this client's pointer is over the watched tab while it gives
2708
+ * the tab no input, as while it draws; nowhere when left out.
2709
+ */
2710
+ readonly point: (at?: {
2711
+ readonly x: number;
2712
+ readonly y: number;
2713
+ }) => Effect.Effect<void>;
2714
+ readonly select: (tab: number) => Effect.Effect<void>;
2715
+ readonly go: (to: Destination, options?: GoOptions) => Effect.Effect<void>;
2716
+ readonly newTab: Effect.Effect<void>;
2717
+ readonly closeTab: (tab: number) => Effect.Effect<void>;
2718
+ /**
2719
+ * `fit` has the watched target's viewport follow the attached stage's size. With
2720
+ * `whenFree` the fitting waits its turn, see [`FitOptions`].
2721
+ */
2722
+ readonly setViewport: (viewport: ViewportSize | "fit", options?: FitOptions) => Effect.Effect<void>;
2723
+ /** Gives the watched target another scale and leaves its size, fitted or not, as it is. */
2724
+ readonly setScale: (scale: number) => Effect.Effect<void>;
2725
+ /** Sets how the watched tab's pages are shown, for a member that holds the tab. */
2726
+ readonly setMode: (mode: PageMode) => Effect.Effect<void>;
2727
+ readonly setPicture: (change: PictureChange) => Effect.Effect<void>;
2728
+ /**
2729
+ * Mutes a tab for this client, or lets it be heard again. A tab is heard while it is
2730
+ * watched, once the browser lets a page play sound: after the first click or key.
2731
+ */
2732
+ readonly setMuted: (tab: number, muted: boolean) => Effect.Effect<void>;
2733
+ readonly lease: (action: LeaseAction) => Effect.Effect<void>;
2734
+ /**
2735
+ * Shows the picture in the surfaces and takes their input, until the scope closes. One
2736
+ * set of surfaces at a time.
2737
+ */
2738
+ readonly attach: (surfaces: Surfaces) => Effect.Effect<void, never, Scope.Scope>;
2739
+ /** Gives the keyboard to the session, as a click on the picture does. */
2740
+ readonly focus: Effect.Effect<void>;
2741
+ readonly dismissMenu: Effect.Effect<void>;
2742
+ /** Asks for a picture the watched page shows; it comes as what the session copied. */
2743
+ readonly copyPicture: (url: string) => Effect.Effect<void>;
2744
+ /** Puts content on the session's clipboard, for a paste there to take. */
2745
+ readonly writeClipboard: (forms: readonly ClipboardForm[]) => Effect.Effect<void>;
2746
+ /**
2747
+ * Pastes into the session: the forms given, or what this browser's clipboard has where
2748
+ * a page may read it. False when there was nothing to paste.
2749
+ */
2750
+ readonly paste: (forms?: readonly ClipboardForm[]) => Effect.Effect<boolean>;
2751
+ /** Copies what is selected in the session; it comes as what the session copied. */
2752
+ readonly copySelection: Effect.Effect<void>;
2753
+ readonly selectAll: Effect.Effect<void>;
2754
+ /**
2755
+ * Puts content on this browser's clipboard from a click, for what the session copied
2756
+ * and the clipboard did not take by itself: text is copied, a picture opens to be
2757
+ * copied by hand.
2758
+ */
2759
+ readonly copyHere: (forms: readonly ClipboardForm[]) => Effect.Effect<boolean>;
2760
+ readonly upload: (file: File, onProgress?: (progress: UploadProgress) => void) => Effect.Effect<Uploaded, SessionError>;
2761
+ readonly uploads: Effect.Effect<Uploaded[], SessionError>;
2762
+ readonly removeUpload: (name: string) => Effect.Effect<void, SessionError>;
2763
+ /** Answers a page's request for files with uploads, by name; with none it is dismissed. */
2764
+ readonly chooseFiles: (request: number, names: readonly string[]) => Effect.Effect<void>;
2765
+ /** An authenticated URL of one of the session's files, such as `downloads/<name>`. */
2766
+ readonly fileUrl: (path: string) => string;
2767
+ /** The target as it looks now; `width` asks for a smaller picture, that many pixels wide. */
2768
+ readonly screenshotUrl: (tab: number, width?: number) => string;
2769
+ /** The target as it looked a moment ago, small: for a list of the tabs. */
2770
+ readonly previewUrl: (tab: number) => string;
2771
+ /**
2772
+ * The icon of the target's page, which the session fetches as its browser does anything
2773
+ * else of the page: the page's site is told nothing of who watches. None for a page
2774
+ * that is not of the web.
2775
+ */
2776
+ readonly faviconUrl: (target: Target) => string | undefined;
2777
+ readonly recordings: {
2778
+ readonly list: Effect.Effect<Recording[], SessionError>;
2779
+ readonly get: (id: string) => Effect.Effect<Recording, SessionError>;
2780
+ readonly start: (options?: StartRecording) => Effect.Effect<Recording, SessionError>; /** Stops a recording; its edit is made with `options`. */
2781
+ readonly stop: (id: string, options?: EditRecording) => Effect.Effect<Recording, SessionError>; /** Makes the edit of a stopped recording again, with other options. */
2782
+ readonly edit: (id: string, options?: EditRecording) => Effect.Effect<Recording, SessionError>; /** Has a running recording go on with another tab. */
2783
+ readonly retarget: (id: string, tab: number) => Effect.Effect<Recording, SessionError>; /** Adds an annotation to the recording named, or to the only one that runs. */
2784
+ readonly annotate: (annotation: RecordingAnnotation, id?: string) => Effect.Effect<void, SessionError>;
2785
+ };
2786
+ /** The cookies and local storage of the session's browser, for whoever runs the session. */
2787
+ readonly storageState: {
2788
+ readonly export: (asked?: StorageStateAsked) => Effect.Effect<StorageState, SessionError>;
2789
+ readonly import: (state: StorageState) => Effect.Effect<void, SessionError>;
2790
+ };
2791
+ /**
2792
+ * How the session's automation moves the pointer in what is recorded. The snapshot's
2793
+ * `pace` tells it as it is set, by anyone.
2794
+ */
2795
+ readonly pace: {
2796
+ readonly get: Effect.Effect<Pace, SessionError>;
2797
+ readonly set: (pace: Pace) => Effect.Effect<Pace, SessionError>;
2798
+ };
2799
+ readonly screenshots: {
2800
+ readonly list: Effect.Effect<Screenshot[], SessionError>; /** Takes one of a target, the newest when none is named, and keeps it in the files. */
2801
+ readonly take: (tab?: number) => Effect.Effect<Screenshot, SessionError>;
2802
+ };
2803
+ }
2804
+ /**
2805
+ * Connects to a session. Closing the scope unwires what is attached, ends the picture's
2806
+ * WebRTC connection and decoder, then the sound, then the session socket.
2807
+ */
2808
+ declare const make: (options: ConnectOptions) => Effect.Effect<{
2809
+ store: {
2810
+ get: () => Snapshot;
2811
+ subscribe: (listener: (value: unknown) => void) => () => void;
2812
+ };
2813
+ snapshot: Effect.Effect<Snapshot, never, never>;
2814
+ changes: Stream.Stream<Snapshot, never, never>;
2815
+ clipboard: Stream.Stream<ClipboardEvent, never, never>;
2816
+ onClipboard: (listener: (value: ClipboardEvent) => void) => () => void;
2817
+ failures: Stream.Stream<Failure, never, never>;
2818
+ onFailure: (listener: (value: Failure) => void) => () => void;
2819
+ onDragged: (listener: (value: {
2820
+ readonly x: number;
2821
+ readonly y: number;
2822
+ }) => void) => () => void;
2823
+ onPointer: (listener: (value: PointerMark) => void) => () => void;
2824
+ onStroke: (listener: (value: StrokePoint) => void) => () => void;
2825
+ follow: (member: number | undefined) => Effect.Effect<void, never, never>;
2826
+ draw: (stroke: number, phase: StrokePhase, at: {
2827
+ readonly x: number;
2828
+ readonly y: number;
2829
+ }) => Effect.Effect<void, never, never>;
2830
+ point: (at: {
2831
+ readonly x: number;
2832
+ readonly y: number;
2833
+ } | undefined) => Effect.Effect<void, never, never>;
2834
+ select: (tab: number) => Effect.Effect<void, never, never>;
2835
+ go: (to: Destination, {
2836
+ newTab
2837
+ }?: GoOptions | undefined) => Effect.Effect<void, never, never>;
2838
+ newTab: Effect.Effect<void, never, never>;
2839
+ closeTab: (tab: number) => Effect.Effect<void, never, never>;
2840
+ setViewport: (viewport: ViewportSize | "fit", options: FitOptions | undefined) => Effect.Effect<void, never, never>;
2841
+ setScale: (scale: number) => Effect.Effect<void, never, never>;
2842
+ setMode: (mode: PageMode) => Effect.Effect<void, never, never>;
2843
+ setPicture: (change: PictureChange) => Effect.Effect<void, never, never>;
2844
+ setMuted: (tab: number, muted: boolean) => Effect.Effect<void, never, never>;
2845
+ lease: (action: LeaseAction) => Effect.Effect<void, never, never>;
2846
+ attach: (surfaces: Surfaces) => Effect.Effect<void, never, Scope.Scope>;
2847
+ focus: Effect.Effect<void | undefined, never, never>;
2848
+ dismissMenu: Effect.Effect<void, never, never>;
2849
+ copyPicture: (url: string) => Effect.Effect<void, never, never>;
2850
+ writeClipboard: (forms: readonly ClipboardForm[]) => Effect.Effect<void, never, never>;
2851
+ paste: (given?: readonly ClipboardForm[] | undefined) => Effect.Effect<boolean, never, never>;
2852
+ copySelection: Effect.Effect<void, never, never>;
2853
+ selectAll: Effect.Effect<void, never, never>;
2854
+ copyHere: (forms: readonly ClipboardForm[]) => Effect.Effect<boolean, never, never>;
2855
+ upload: (file: File, onProgress: ((progress: UploadProgress) => void) | undefined) => Effect.Effect<Uploaded, SessionError, never>;
2856
+ uploads: Effect.Effect<Uploaded[], SessionError, never>;
2857
+ removeUpload: (name: string) => Effect.Effect<void, SessionError, never>;
2858
+ chooseFiles: (request: number, names: readonly string[]) => Effect.Effect<void, never, never>;
2859
+ fileUrl: (path: string) => string;
2860
+ screenshotUrl: (tab: number, width: number | undefined) => string;
2861
+ previewUrl: (tab: number) => string;
2862
+ faviconUrl: (target: Target) => string | undefined;
2863
+ recordings: {
2864
+ list: Effect.Effect<Recording[], SessionError, never>;
2865
+ get: (id: string) => Effect.Effect<Recording, SessionError, never>;
2866
+ start: (started: StartRecording | undefined) => Effect.Effect<Recording, SessionError, never>;
2867
+ stop: (id: string, options: EditRecording | undefined) => Effect.Effect<Recording, SessionError, never>;
2868
+ edit: (id: string, options: EditRecording | undefined) => Effect.Effect<Recording, SessionError, never>;
2869
+ retarget: (id: string, tab: number) => Effect.Effect<Recording, SessionError, never>;
2870
+ annotate: (annotation: RecordingAnnotation, id: string | undefined) => Effect.Effect<void, SessionError, never>;
2871
+ };
2872
+ storageState: {
2873
+ export: (asked: StorageStateAsked | undefined) => Effect.Effect<StorageState, SessionError, never>;
2874
+ import: (state: StorageState) => Effect.Effect<void, SessionError, never>;
2875
+ };
2876
+ pace: {
2877
+ get: Effect.Effect<Pace, SessionError, never>;
2878
+ set: (pace: Pace) => Effect.Effect<Pace, SessionError, never>;
2879
+ };
2880
+ screenshots: {
2881
+ list: Effect.Effect<Screenshot[], SessionError, never>;
2882
+ take: (tab: number | undefined) => Effect.Effect<Screenshot, SessionError, never>;
2883
+ };
2884
+ }, never, Scope.Scope>;
2885
+ declare const Session_base: Context.ServiceClass<Session, "@aperture-browser/session-client/Session", SessionService>;
2886
+ /** One session's client, for programs that pass it along as a service. */
2887
+ declare class Session extends Session_base {}
2888
+ /** Connects to a session for as long as the layer lives. */
2889
+ declare const layer: (options: ConnectOptions) => Layer.Layer<Session, never, never>;
2890
+ //#endregion
2891
+ export { PointerMark as $, ClipboardEvent as A, HeldTab as B, StorageStateAsked as C, statusOf as Ct, http_d_exports as D, SessionError as Dt, ViewportSize as E, live_pb_d_exports as Et, FORMATS as F, NO_FEATURES as G, LeaseAction as H, Failure as I, Pace as J, PAGE_MODES as K, Features as L, Connection as M, Download as N, ALONGS as O, Address as Ot, DownloadState as P, PictureWay as Q, FileRequest as R, StorageState as S, restoringOf as St, Uploaded as T, targetOf as Tt, Member as U, LEASE_ACTIONS as V, Menu as W, Picture as X, PageMode as Y, PictureSettings as Z, RecordingEdit as _, menuOf as _t, PictureChange as a, Snapshot as at, StartRecording as b, presenceOf as bt, SnapshotStore as c, Target as ct, Surfaces as d, VideoStatus as dt, Presence as et, KEYS as f, downloadOf as ft, RecordingBurst as g, formatOf as gt, RecordingAnnotation as h, fileRequestOf as ht, GoOptions as i, STROKE_PHASE as it, ClipboardForm as j, Along as k, layer as l, VideoFormat as lt, Recording as m, featuresOf as mt, Destination as n, Restoring as nt, Session as o, StrokePhase as ot, EditRecording as p, failureOf as pt, PIXELS as q, FitOptions as r, Role as rt, SessionService as s, StrokePoint as st, ConnectOptions as t, QUALITIES as tt, make as u, VideoQuality as ut, RecordingOptions as v, paceOf as vt, UploadProgress as w, strokeOf as wt, StateCookie as x, qualityOf as xt, Screenshot as y, pointerOf as yt, Grant as z };
2892
+ //# sourceMappingURL=session-Di6f5DYK.d.ts.map