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