@aperture-browser/live-session 0.0.0-init.0 → 0.0.0-nightly.100.78b4e7ef6edc
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/README.md +6 -0
- package/dist/index.d.ts +389 -45
- package/dist/index.js +138 -52
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
|
-
import { ApiCredentials, IceServer } from "@aperture-browser/api-client";
|
|
3
|
+
import { ApiCredentials, DownloadedFile, IceServer } from "@aperture-browser/api-client";
|
|
4
|
+
import * as HttpClient from "effect/http/HttpClient";
|
|
4
5
|
|
|
5
6
|
//#region src/browser-input.d.ts
|
|
6
7
|
type BrowserInputMessage = {
|
|
@@ -131,6 +132,8 @@ declare const Target: Schema.Struct<{
|
|
|
131
132
|
readonly title: Schema.String;
|
|
132
133
|
readonly url: Schema.String;
|
|
133
134
|
readonly loading: Schema.Boolean;
|
|
135
|
+
readonly canGoBack: Schema.optionalKey<Schema.Boolean>;
|
|
136
|
+
readonly canGoForward: Schema.optionalKey<Schema.Boolean>;
|
|
134
137
|
readonly viewport: Schema.optionalKey<Schema.Struct<{
|
|
135
138
|
readonly width: Schema.Number;
|
|
136
139
|
readonly height: Schema.Number;
|
|
@@ -167,6 +170,8 @@ declare const Snapshot: Schema.Struct<{
|
|
|
167
170
|
readonly title: Schema.String;
|
|
168
171
|
readonly url: Schema.String;
|
|
169
172
|
readonly loading: Schema.Boolean;
|
|
173
|
+
readonly canGoBack: Schema.optionalKey<Schema.Boolean>;
|
|
174
|
+
readonly canGoForward: Schema.optionalKey<Schema.Boolean>;
|
|
170
175
|
readonly viewport: Schema.optionalKey<Schema.Struct<{
|
|
171
176
|
readonly width: Schema.Number;
|
|
172
177
|
readonly height: Schema.Number;
|
|
@@ -188,21 +193,53 @@ declare const Snapshot: Schema.Struct<{
|
|
|
188
193
|
readonly leaseMode: Schema.optionalKey<Schema.Literals<readonly ["implicit", "explicit"]>>;
|
|
189
194
|
readonly recovering: Schema.optionalKey<Schema.Boolean>;
|
|
190
195
|
}>>, never>;
|
|
191
|
-
readonly recordings: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Struct<{
|
|
196
|
+
readonly recordings: Schema.withDecodingDefaultKey<Schema.$Array<Schema.decodeTo<Schema.Struct<{
|
|
197
|
+
readonly relativePath: Schema.String;
|
|
192
198
|
readonly recordingId: Schema.String;
|
|
193
199
|
readonly mode: Schema.Literals<readonly ["tab", "viewer"]>;
|
|
194
200
|
readonly targetId: Schema.String;
|
|
195
201
|
readonly captureGeneration: Schema.Number;
|
|
196
202
|
readonly status: Schema.Literals<readonly ["starting", "running", "stopped", "failed"]>;
|
|
197
203
|
readonly stopReason: Schema.optionalKey<Schema.String>;
|
|
198
|
-
readonly
|
|
204
|
+
readonly sandboxPath: Schema.optionalKey<Schema.String>;
|
|
205
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
199
206
|
readonly startedAt: Schema.String;
|
|
200
207
|
readonly stoppedAt: Schema.optionalKey<Schema.String>;
|
|
201
208
|
readonly sizeBytes: Schema.optionalKey<Schema.Number>;
|
|
202
209
|
readonly fps: Schema.Number;
|
|
203
210
|
readonly bitrateKbps: Schema.Number;
|
|
204
211
|
readonly codec: Schema.String;
|
|
205
|
-
|
|
212
|
+
readonly editing: Schema.Boolean;
|
|
213
|
+
readonly editedRelativePath: Schema.optionalKey<Schema.String>;
|
|
214
|
+
readonly timelineRelativePath: Schema.optionalKey<Schema.String>;
|
|
215
|
+
readonly editError: Schema.optionalKey<Schema.Struct<{
|
|
216
|
+
readonly code: Schema.Literals<readonly ["ffmpeg_unavailable", "open_failed", "nothing_kept", "analysis_failed", "plan_failed", "render_failed", "timeout", "cancelled", "timeline_failed"]>;
|
|
217
|
+
readonly message: Schema.String;
|
|
218
|
+
}>>;
|
|
219
|
+
}>, Schema.Struct<{
|
|
220
|
+
readonly relativePath: Schema.optionalKey<Schema.String>;
|
|
221
|
+
readonly recordingId: Schema.String;
|
|
222
|
+
readonly mode: Schema.Literals<readonly ["tab", "viewer"]>;
|
|
223
|
+
readonly targetId: Schema.String;
|
|
224
|
+
readonly captureGeneration: Schema.Number;
|
|
225
|
+
readonly status: Schema.Literals<readonly ["starting", "running", "stopped", "failed"]>;
|
|
226
|
+
readonly stopReason: Schema.optionalKey<Schema.String>;
|
|
227
|
+
readonly sandboxPath: Schema.optionalKey<Schema.String>;
|
|
228
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
229
|
+
readonly startedAt: Schema.String;
|
|
230
|
+
readonly stoppedAt: Schema.optionalKey<Schema.String>;
|
|
231
|
+
readonly sizeBytes: Schema.optionalKey<Schema.Number>;
|
|
232
|
+
readonly fps: Schema.Number;
|
|
233
|
+
readonly bitrateKbps: Schema.Number;
|
|
234
|
+
readonly codec: Schema.String;
|
|
235
|
+
readonly editing: Schema.Boolean;
|
|
236
|
+
readonly editedRelativePath: Schema.optionalKey<Schema.String>;
|
|
237
|
+
readonly timelineRelativePath: Schema.optionalKey<Schema.String>;
|
|
238
|
+
readonly editError: Schema.optionalKey<Schema.Struct<{
|
|
239
|
+
readonly code: Schema.Literals<readonly ["ffmpeg_unavailable", "open_failed", "nothing_kept", "analysis_failed", "plan_failed", "render_failed", "timeout", "cancelled", "timeline_failed"]>;
|
|
240
|
+
readonly message: Schema.String;
|
|
241
|
+
}>>;
|
|
242
|
+
}>, never, never>>, never>;
|
|
206
243
|
readonly presentation: Schema.Struct<{
|
|
207
244
|
readonly quality: Schema.optionalKey<Schema.Struct<{
|
|
208
245
|
readonly profile: Schema.String;
|
|
@@ -219,29 +256,63 @@ declare const Snapshot: Schema.Struct<{
|
|
|
219
256
|
}>>;
|
|
220
257
|
readonly cursorVisible: Schema.Boolean;
|
|
221
258
|
}>;
|
|
259
|
+
readonly viewportOwnerClientId: Schema.optionalKey<Schema.String>;
|
|
260
|
+
readonly autoSize: Schema.optionalKey<Schema.Boolean>;
|
|
222
261
|
}>;
|
|
223
262
|
declare const CommandResult: Schema.Struct<{
|
|
224
|
-
readonly type: Schema.Literals<readonly ["target.select.result", "target.create.result", "target.close.result", "page.navigate.result", "page.history-back.result", "page.history-forward.result", "page.reload.result", "page.stop-loading.result", "viewport.set.result", "presentation.quality.set.result", "presentation.cursor.set.result", "recording.start.result", "recording.stop.result", "recording.cancel.result"]>;
|
|
263
|
+
readonly type: Schema.Literals<readonly ["target.select.result", "target.create.result", "target.close.result", "page.navigate.result", "page.history-back.result", "page.history-forward.result", "page.reload.result", "page.stop-loading.result", "viewport.set.result", "viewport.auto-size.set.result", "viewport.owner.claim.result", "presentation.quality.set.result", "presentation.cursor.set.result", "automation.pacing.set.result", "recording.start.result", "recording.stop.result", "recording.cancel.result"]>;
|
|
225
264
|
readonly requestId: Schema.String;
|
|
226
265
|
readonly ok: Schema.Boolean;
|
|
227
266
|
readonly code: Schema.optionalKey<Schema.String>;
|
|
228
267
|
readonly message: Schema.optionalKey<Schema.String>;
|
|
229
268
|
readonly targetId: Schema.optionalKey<Schema.String>;
|
|
230
|
-
readonly recording: Schema.optionalKey<Schema.Struct<{
|
|
269
|
+
readonly recording: Schema.optionalKey<Schema.decodeTo<Schema.Struct<{
|
|
270
|
+
readonly relativePath: Schema.String;
|
|
231
271
|
readonly recordingId: Schema.String;
|
|
232
272
|
readonly mode: Schema.Literals<readonly ["tab", "viewer"]>;
|
|
233
273
|
readonly targetId: Schema.String;
|
|
234
274
|
readonly captureGeneration: Schema.Number;
|
|
235
275
|
readonly status: Schema.Literals<readonly ["starting", "running", "stopped", "failed"]>;
|
|
236
276
|
readonly stopReason: Schema.optionalKey<Schema.String>;
|
|
237
|
-
readonly
|
|
277
|
+
readonly sandboxPath: Schema.optionalKey<Schema.String>;
|
|
278
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
238
279
|
readonly startedAt: Schema.String;
|
|
239
280
|
readonly stoppedAt: Schema.optionalKey<Schema.String>;
|
|
240
281
|
readonly sizeBytes: Schema.optionalKey<Schema.Number>;
|
|
241
282
|
readonly fps: Schema.Number;
|
|
242
283
|
readonly bitrateKbps: Schema.Number;
|
|
243
284
|
readonly codec: Schema.String;
|
|
244
|
-
|
|
285
|
+
readonly editing: Schema.Boolean;
|
|
286
|
+
readonly editedRelativePath: Schema.optionalKey<Schema.String>;
|
|
287
|
+
readonly timelineRelativePath: Schema.optionalKey<Schema.String>;
|
|
288
|
+
readonly editError: Schema.optionalKey<Schema.Struct<{
|
|
289
|
+
readonly code: Schema.Literals<readonly ["ffmpeg_unavailable", "open_failed", "nothing_kept", "analysis_failed", "plan_failed", "render_failed", "timeout", "cancelled", "timeline_failed"]>;
|
|
290
|
+
readonly message: Schema.String;
|
|
291
|
+
}>>;
|
|
292
|
+
}>, Schema.Struct<{
|
|
293
|
+
readonly relativePath: Schema.optionalKey<Schema.String>;
|
|
294
|
+
readonly recordingId: Schema.String;
|
|
295
|
+
readonly mode: Schema.Literals<readonly ["tab", "viewer"]>;
|
|
296
|
+
readonly targetId: Schema.String;
|
|
297
|
+
readonly captureGeneration: Schema.Number;
|
|
298
|
+
readonly status: Schema.Literals<readonly ["starting", "running", "stopped", "failed"]>;
|
|
299
|
+
readonly stopReason: Schema.optionalKey<Schema.String>;
|
|
300
|
+
readonly sandboxPath: Schema.optionalKey<Schema.String>;
|
|
301
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
302
|
+
readonly startedAt: Schema.String;
|
|
303
|
+
readonly stoppedAt: Schema.optionalKey<Schema.String>;
|
|
304
|
+
readonly sizeBytes: Schema.optionalKey<Schema.Number>;
|
|
305
|
+
readonly fps: Schema.Number;
|
|
306
|
+
readonly bitrateKbps: Schema.Number;
|
|
307
|
+
readonly codec: Schema.String;
|
|
308
|
+
readonly editing: Schema.Boolean;
|
|
309
|
+
readonly editedRelativePath: Schema.optionalKey<Schema.String>;
|
|
310
|
+
readonly timelineRelativePath: Schema.optionalKey<Schema.String>;
|
|
311
|
+
readonly editError: Schema.optionalKey<Schema.Struct<{
|
|
312
|
+
readonly code: Schema.Literals<readonly ["ffmpeg_unavailable", "open_failed", "nothing_kept", "analysis_failed", "plan_failed", "render_failed", "timeout", "cancelled", "timeline_failed"]>;
|
|
313
|
+
readonly message: Schema.String;
|
|
314
|
+
}>>;
|
|
315
|
+
}>, never, never>>;
|
|
245
316
|
readonly presentation: Schema.optionalKey<Schema.Struct<{
|
|
246
317
|
readonly quality: Schema.optionalKey<Schema.Struct<{
|
|
247
318
|
readonly profile: Schema.String;
|
|
@@ -274,6 +345,8 @@ declare const LiveSessionServerMessage: Schema.Union<readonly [Schema.Struct<{
|
|
|
274
345
|
readonly title: Schema.String;
|
|
275
346
|
readonly url: Schema.String;
|
|
276
347
|
readonly loading: Schema.Boolean;
|
|
348
|
+
readonly canGoBack: Schema.optionalKey<Schema.Boolean>;
|
|
349
|
+
readonly canGoForward: Schema.optionalKey<Schema.Boolean>;
|
|
277
350
|
readonly viewport: Schema.optionalKey<Schema.Struct<{
|
|
278
351
|
readonly width: Schema.Number;
|
|
279
352
|
readonly height: Schema.Number;
|
|
@@ -295,21 +368,53 @@ declare const LiveSessionServerMessage: Schema.Union<readonly [Schema.Struct<{
|
|
|
295
368
|
readonly leaseMode: Schema.optionalKey<Schema.Literals<readonly ["implicit", "explicit"]>>;
|
|
296
369
|
readonly recovering: Schema.optionalKey<Schema.Boolean>;
|
|
297
370
|
}>>, never>;
|
|
298
|
-
readonly recordings: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Struct<{
|
|
371
|
+
readonly recordings: Schema.withDecodingDefaultKey<Schema.$Array<Schema.decodeTo<Schema.Struct<{
|
|
372
|
+
readonly relativePath: Schema.String;
|
|
299
373
|
readonly recordingId: Schema.String;
|
|
300
374
|
readonly mode: Schema.Literals<readonly ["tab", "viewer"]>;
|
|
301
375
|
readonly targetId: Schema.String;
|
|
302
376
|
readonly captureGeneration: Schema.Number;
|
|
303
377
|
readonly status: Schema.Literals<readonly ["starting", "running", "stopped", "failed"]>;
|
|
304
378
|
readonly stopReason: Schema.optionalKey<Schema.String>;
|
|
305
|
-
readonly
|
|
379
|
+
readonly sandboxPath: Schema.optionalKey<Schema.String>;
|
|
380
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
306
381
|
readonly startedAt: Schema.String;
|
|
307
382
|
readonly stoppedAt: Schema.optionalKey<Schema.String>;
|
|
308
383
|
readonly sizeBytes: Schema.optionalKey<Schema.Number>;
|
|
309
384
|
readonly fps: Schema.Number;
|
|
310
385
|
readonly bitrateKbps: Schema.Number;
|
|
311
386
|
readonly codec: Schema.String;
|
|
312
|
-
|
|
387
|
+
readonly editing: Schema.Boolean;
|
|
388
|
+
readonly editedRelativePath: Schema.optionalKey<Schema.String>;
|
|
389
|
+
readonly timelineRelativePath: Schema.optionalKey<Schema.String>;
|
|
390
|
+
readonly editError: Schema.optionalKey<Schema.Struct<{
|
|
391
|
+
readonly code: Schema.Literals<readonly ["ffmpeg_unavailable", "open_failed", "nothing_kept", "analysis_failed", "plan_failed", "render_failed", "timeout", "cancelled", "timeline_failed"]>;
|
|
392
|
+
readonly message: Schema.String;
|
|
393
|
+
}>>;
|
|
394
|
+
}>, Schema.Struct<{
|
|
395
|
+
readonly relativePath: Schema.optionalKey<Schema.String>;
|
|
396
|
+
readonly recordingId: Schema.String;
|
|
397
|
+
readonly mode: Schema.Literals<readonly ["tab", "viewer"]>;
|
|
398
|
+
readonly targetId: Schema.String;
|
|
399
|
+
readonly captureGeneration: Schema.Number;
|
|
400
|
+
readonly status: Schema.Literals<readonly ["starting", "running", "stopped", "failed"]>;
|
|
401
|
+
readonly stopReason: Schema.optionalKey<Schema.String>;
|
|
402
|
+
readonly sandboxPath: Schema.optionalKey<Schema.String>;
|
|
403
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
404
|
+
readonly startedAt: Schema.String;
|
|
405
|
+
readonly stoppedAt: Schema.optionalKey<Schema.String>;
|
|
406
|
+
readonly sizeBytes: Schema.optionalKey<Schema.Number>;
|
|
407
|
+
readonly fps: Schema.Number;
|
|
408
|
+
readonly bitrateKbps: Schema.Number;
|
|
409
|
+
readonly codec: Schema.String;
|
|
410
|
+
readonly editing: Schema.Boolean;
|
|
411
|
+
readonly editedRelativePath: Schema.optionalKey<Schema.String>;
|
|
412
|
+
readonly timelineRelativePath: Schema.optionalKey<Schema.String>;
|
|
413
|
+
readonly editError: Schema.optionalKey<Schema.Struct<{
|
|
414
|
+
readonly code: Schema.Literals<readonly ["ffmpeg_unavailable", "open_failed", "nothing_kept", "analysis_failed", "plan_failed", "render_failed", "timeout", "cancelled", "timeline_failed"]>;
|
|
415
|
+
readonly message: Schema.String;
|
|
416
|
+
}>>;
|
|
417
|
+
}>, never, never>>, never>;
|
|
313
418
|
readonly presentation: Schema.Struct<{
|
|
314
419
|
readonly quality: Schema.optionalKey<Schema.Struct<{
|
|
315
420
|
readonly profile: Schema.String;
|
|
@@ -326,6 +431,8 @@ declare const LiveSessionServerMessage: Schema.Union<readonly [Schema.Struct<{
|
|
|
326
431
|
}>>;
|
|
327
432
|
readonly cursorVisible: Schema.Boolean;
|
|
328
433
|
}>;
|
|
434
|
+
readonly viewportOwnerClientId: Schema.optionalKey<Schema.String>;
|
|
435
|
+
readonly autoSize: Schema.optionalKey<Schema.Boolean>;
|
|
329
436
|
}>, Schema.Struct<{
|
|
330
437
|
readonly type: Schema.Literal<"presence.state">;
|
|
331
438
|
readonly participants: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Struct<{
|
|
@@ -343,6 +450,10 @@ declare const LiveSessionServerMessage: Schema.Union<readonly [Schema.Struct<{
|
|
|
343
450
|
readonly type: Schema.Literal<"input.state">;
|
|
344
451
|
readonly holderClientId: Schema.optionalKey<Schema.String>;
|
|
345
452
|
readonly mode: Schema.optionalKey<Schema.Literals<readonly ["implicit", "explicit"]>>;
|
|
453
|
+
}>, Schema.Struct<{
|
|
454
|
+
readonly type: Schema.Literal<"viewport.state">;
|
|
455
|
+
readonly viewportOwnerClientId: Schema.optionalKey<Schema.String>;
|
|
456
|
+
readonly autoSize: Schema.Boolean;
|
|
346
457
|
}>, Schema.Struct<{
|
|
347
458
|
readonly type: Schema.Literal<"presence.cursor">;
|
|
348
459
|
readonly clientId: Schema.String;
|
|
@@ -374,6 +485,8 @@ declare const LiveSessionServerMessage: Schema.Union<readonly [Schema.Struct<{
|
|
|
374
485
|
readonly title: Schema.String;
|
|
375
486
|
readonly url: Schema.String;
|
|
376
487
|
readonly loading: Schema.Boolean;
|
|
488
|
+
readonly canGoBack: Schema.optionalKey<Schema.Boolean>;
|
|
489
|
+
readonly canGoForward: Schema.optionalKey<Schema.Boolean>;
|
|
377
490
|
readonly viewport: Schema.optionalKey<Schema.Struct<{
|
|
378
491
|
readonly width: Schema.Number;
|
|
379
492
|
readonly height: Schema.Number;
|
|
@@ -386,21 +499,53 @@ declare const LiveSessionServerMessage: Schema.Union<readonly [Schema.Struct<{
|
|
|
386
499
|
}>>, never>;
|
|
387
500
|
}>, Schema.Struct<{
|
|
388
501
|
readonly type: Schema.Literal<"recordings.state">;
|
|
389
|
-
readonly recordings: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Struct<{
|
|
502
|
+
readonly recordings: Schema.withDecodingDefaultKey<Schema.$Array<Schema.decodeTo<Schema.Struct<{
|
|
503
|
+
readonly relativePath: Schema.String;
|
|
390
504
|
readonly recordingId: Schema.String;
|
|
391
505
|
readonly mode: Schema.Literals<readonly ["tab", "viewer"]>;
|
|
392
506
|
readonly targetId: Schema.String;
|
|
393
507
|
readonly captureGeneration: Schema.Number;
|
|
394
508
|
readonly status: Schema.Literals<readonly ["starting", "running", "stopped", "failed"]>;
|
|
395
509
|
readonly stopReason: Schema.optionalKey<Schema.String>;
|
|
396
|
-
readonly
|
|
510
|
+
readonly sandboxPath: Schema.optionalKey<Schema.String>;
|
|
511
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
397
512
|
readonly startedAt: Schema.String;
|
|
398
513
|
readonly stoppedAt: Schema.optionalKey<Schema.String>;
|
|
399
514
|
readonly sizeBytes: Schema.optionalKey<Schema.Number>;
|
|
400
515
|
readonly fps: Schema.Number;
|
|
401
516
|
readonly bitrateKbps: Schema.Number;
|
|
402
517
|
readonly codec: Schema.String;
|
|
403
|
-
|
|
518
|
+
readonly editing: Schema.Boolean;
|
|
519
|
+
readonly editedRelativePath: Schema.optionalKey<Schema.String>;
|
|
520
|
+
readonly timelineRelativePath: Schema.optionalKey<Schema.String>;
|
|
521
|
+
readonly editError: Schema.optionalKey<Schema.Struct<{
|
|
522
|
+
readonly code: Schema.Literals<readonly ["ffmpeg_unavailable", "open_failed", "nothing_kept", "analysis_failed", "plan_failed", "render_failed", "timeout", "cancelled", "timeline_failed"]>;
|
|
523
|
+
readonly message: Schema.String;
|
|
524
|
+
}>>;
|
|
525
|
+
}>, Schema.Struct<{
|
|
526
|
+
readonly relativePath: Schema.optionalKey<Schema.String>;
|
|
527
|
+
readonly recordingId: Schema.String;
|
|
528
|
+
readonly mode: Schema.Literals<readonly ["tab", "viewer"]>;
|
|
529
|
+
readonly targetId: Schema.String;
|
|
530
|
+
readonly captureGeneration: Schema.Number;
|
|
531
|
+
readonly status: Schema.Literals<readonly ["starting", "running", "stopped", "failed"]>;
|
|
532
|
+
readonly stopReason: Schema.optionalKey<Schema.String>;
|
|
533
|
+
readonly sandboxPath: Schema.optionalKey<Schema.String>;
|
|
534
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
535
|
+
readonly startedAt: Schema.String;
|
|
536
|
+
readonly stoppedAt: Schema.optionalKey<Schema.String>;
|
|
537
|
+
readonly sizeBytes: Schema.optionalKey<Schema.Number>;
|
|
538
|
+
readonly fps: Schema.Number;
|
|
539
|
+
readonly bitrateKbps: Schema.Number;
|
|
540
|
+
readonly codec: Schema.String;
|
|
541
|
+
readonly editing: Schema.Boolean;
|
|
542
|
+
readonly editedRelativePath: Schema.optionalKey<Schema.String>;
|
|
543
|
+
readonly timelineRelativePath: Schema.optionalKey<Schema.String>;
|
|
544
|
+
readonly editError: Schema.optionalKey<Schema.Struct<{
|
|
545
|
+
readonly code: Schema.Literals<readonly ["ffmpeg_unavailable", "open_failed", "nothing_kept", "analysis_failed", "plan_failed", "render_failed", "timeout", "cancelled", "timeline_failed"]>;
|
|
546
|
+
readonly message: Schema.String;
|
|
547
|
+
}>>;
|
|
548
|
+
}>, never, never>>, never>;
|
|
404
549
|
}>, Schema.Struct<{
|
|
405
550
|
readonly type: Schema.Literal<"presentation.state">;
|
|
406
551
|
readonly presentation: Schema.Struct<{
|
|
@@ -424,27 +569,59 @@ declare const LiveSessionServerMessage: Schema.Union<readonly [Schema.Struct<{
|
|
|
424
569
|
readonly code: Schema.String;
|
|
425
570
|
readonly message: Schema.String;
|
|
426
571
|
}>, Schema.Struct<{
|
|
427
|
-
readonly type: Schema.Literals<readonly ["target.select.result", "target.create.result", "target.close.result", "page.navigate.result", "page.history-back.result", "page.history-forward.result", "page.reload.result", "page.stop-loading.result", "viewport.set.result", "presentation.quality.set.result", "presentation.cursor.set.result", "recording.start.result", "recording.stop.result", "recording.cancel.result"]>;
|
|
572
|
+
readonly type: Schema.Literals<readonly ["target.select.result", "target.create.result", "target.close.result", "page.navigate.result", "page.history-back.result", "page.history-forward.result", "page.reload.result", "page.stop-loading.result", "viewport.set.result", "viewport.auto-size.set.result", "viewport.owner.claim.result", "presentation.quality.set.result", "presentation.cursor.set.result", "automation.pacing.set.result", "recording.start.result", "recording.stop.result", "recording.cancel.result"]>;
|
|
428
573
|
readonly requestId: Schema.String;
|
|
429
574
|
readonly ok: Schema.Boolean;
|
|
430
575
|
readonly code: Schema.optionalKey<Schema.String>;
|
|
431
576
|
readonly message: Schema.optionalKey<Schema.String>;
|
|
432
577
|
readonly targetId: Schema.optionalKey<Schema.String>;
|
|
433
|
-
readonly recording: Schema.optionalKey<Schema.Struct<{
|
|
578
|
+
readonly recording: Schema.optionalKey<Schema.decodeTo<Schema.Struct<{
|
|
579
|
+
readonly relativePath: Schema.String;
|
|
434
580
|
readonly recordingId: Schema.String;
|
|
435
581
|
readonly mode: Schema.Literals<readonly ["tab", "viewer"]>;
|
|
436
582
|
readonly targetId: Schema.String;
|
|
437
583
|
readonly captureGeneration: Schema.Number;
|
|
438
584
|
readonly status: Schema.Literals<readonly ["starting", "running", "stopped", "failed"]>;
|
|
439
585
|
readonly stopReason: Schema.optionalKey<Schema.String>;
|
|
440
|
-
readonly
|
|
586
|
+
readonly sandboxPath: Schema.optionalKey<Schema.String>;
|
|
587
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
441
588
|
readonly startedAt: Schema.String;
|
|
442
589
|
readonly stoppedAt: Schema.optionalKey<Schema.String>;
|
|
443
590
|
readonly sizeBytes: Schema.optionalKey<Schema.Number>;
|
|
444
591
|
readonly fps: Schema.Number;
|
|
445
592
|
readonly bitrateKbps: Schema.Number;
|
|
446
593
|
readonly codec: Schema.String;
|
|
447
|
-
|
|
594
|
+
readonly editing: Schema.Boolean;
|
|
595
|
+
readonly editedRelativePath: Schema.optionalKey<Schema.String>;
|
|
596
|
+
readonly timelineRelativePath: Schema.optionalKey<Schema.String>;
|
|
597
|
+
readonly editError: Schema.optionalKey<Schema.Struct<{
|
|
598
|
+
readonly code: Schema.Literals<readonly ["ffmpeg_unavailable", "open_failed", "nothing_kept", "analysis_failed", "plan_failed", "render_failed", "timeout", "cancelled", "timeline_failed"]>;
|
|
599
|
+
readonly message: Schema.String;
|
|
600
|
+
}>>;
|
|
601
|
+
}>, Schema.Struct<{
|
|
602
|
+
readonly relativePath: Schema.optionalKey<Schema.String>;
|
|
603
|
+
readonly recordingId: Schema.String;
|
|
604
|
+
readonly mode: Schema.Literals<readonly ["tab", "viewer"]>;
|
|
605
|
+
readonly targetId: Schema.String;
|
|
606
|
+
readonly captureGeneration: Schema.Number;
|
|
607
|
+
readonly status: Schema.Literals<readonly ["starting", "running", "stopped", "failed"]>;
|
|
608
|
+
readonly stopReason: Schema.optionalKey<Schema.String>;
|
|
609
|
+
readonly sandboxPath: Schema.optionalKey<Schema.String>;
|
|
610
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
611
|
+
readonly startedAt: Schema.String;
|
|
612
|
+
readonly stoppedAt: Schema.optionalKey<Schema.String>;
|
|
613
|
+
readonly sizeBytes: Schema.optionalKey<Schema.Number>;
|
|
614
|
+
readonly fps: Schema.Number;
|
|
615
|
+
readonly bitrateKbps: Schema.Number;
|
|
616
|
+
readonly codec: Schema.String;
|
|
617
|
+
readonly editing: Schema.Boolean;
|
|
618
|
+
readonly editedRelativePath: Schema.optionalKey<Schema.String>;
|
|
619
|
+
readonly timelineRelativePath: Schema.optionalKey<Schema.String>;
|
|
620
|
+
readonly editError: Schema.optionalKey<Schema.Struct<{
|
|
621
|
+
readonly code: Schema.Literals<readonly ["ffmpeg_unavailable", "open_failed", "nothing_kept", "analysis_failed", "plan_failed", "render_failed", "timeout", "cancelled", "timeline_failed"]>;
|
|
622
|
+
readonly message: Schema.String;
|
|
623
|
+
}>>;
|
|
624
|
+
}>, never, never>>;
|
|
448
625
|
readonly presentation: Schema.optionalKey<Schema.Struct<{
|
|
449
626
|
readonly quality: Schema.optionalKey<Schema.Struct<{
|
|
450
627
|
readonly profile: Schema.String;
|
|
@@ -464,26 +641,35 @@ declare const LiveSessionServerMessage: Schema.Union<readonly [Schema.Struct<{
|
|
|
464
641
|
}>]>;
|
|
465
642
|
/** Decodes one JSON text frame from the server, or returns undefined when it is invalid. */
|
|
466
643
|
declare const decodeServerMessage: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Option").Option<{
|
|
467
|
-
readonly type: "target.select.result" | "target.create.result" | "target.close.result" | "page.navigate.result" | "page.history-back.result" | "page.history-forward.result" | "page.reload.result" | "page.stop-loading.result" | "viewport.set.result" | "presentation.quality.set.result" | "presentation.cursor.set.result" | "recording.start.result" | "recording.stop.result" | "recording.cancel.result";
|
|
644
|
+
readonly type: "target.select.result" | "target.create.result" | "target.close.result" | "page.navigate.result" | "page.history-back.result" | "page.history-forward.result" | "page.reload.result" | "page.stop-loading.result" | "viewport.set.result" | "viewport.auto-size.set.result" | "viewport.owner.claim.result" | "presentation.quality.set.result" | "presentation.cursor.set.result" | "automation.pacing.set.result" | "recording.start.result" | "recording.stop.result" | "recording.cancel.result";
|
|
468
645
|
readonly requestId: string;
|
|
469
646
|
readonly ok: boolean;
|
|
647
|
+
readonly targetId?: string | undefined;
|
|
470
648
|
readonly message?: string | undefined;
|
|
471
649
|
readonly code?: string | undefined;
|
|
472
|
-
readonly targetId?: string | undefined;
|
|
473
650
|
readonly recording?: {
|
|
474
|
-
readonly targetId: string;
|
|
475
651
|
readonly mode: "tab" | "viewer";
|
|
476
|
-
readonly
|
|
652
|
+
readonly targetId: string;
|
|
653
|
+
readonly status: "running" | "starting" | "stopped" | "failed";
|
|
654
|
+
readonly relativePath: string;
|
|
477
655
|
readonly recordingId: string;
|
|
478
656
|
readonly captureGeneration: number;
|
|
479
|
-
readonly path: string;
|
|
480
657
|
readonly startedAt: string;
|
|
481
658
|
readonly fps: number;
|
|
482
659
|
readonly bitrateKbps: number;
|
|
483
660
|
readonly codec: string;
|
|
661
|
+
readonly editing: boolean;
|
|
484
662
|
readonly stopReason?: string | undefined;
|
|
663
|
+
readonly sandboxPath?: string | undefined;
|
|
664
|
+
readonly path?: string | undefined;
|
|
485
665
|
readonly stoppedAt?: string | undefined;
|
|
486
666
|
readonly sizeBytes?: number | undefined;
|
|
667
|
+
readonly editedRelativePath?: string | undefined;
|
|
668
|
+
readonly timelineRelativePath?: string | undefined;
|
|
669
|
+
readonly editError?: {
|
|
670
|
+
readonly code: "ffmpeg_unavailable" | "open_failed" | "nothing_kept" | "analysis_failed" | "plan_failed" | "render_failed" | "timeout" | "cancelled" | "timeline_failed";
|
|
671
|
+
readonly message: string;
|
|
672
|
+
} | undefined;
|
|
487
673
|
} | undefined;
|
|
488
674
|
readonly presentation?: {
|
|
489
675
|
readonly profiles: readonly {
|
|
@@ -522,10 +708,10 @@ declare const decodeServerMessage: (input: unknown, options?: import("effect/Sch
|
|
|
522
708
|
readonly role: "viewer" | "owner" | "editor";
|
|
523
709
|
readonly transport: "webrtc" | "websocket";
|
|
524
710
|
readonly targets: readonly {
|
|
711
|
+
readonly url: string;
|
|
712
|
+
readonly title: string;
|
|
525
713
|
readonly type: string;
|
|
526
714
|
readonly id: string;
|
|
527
|
-
readonly title: string;
|
|
528
|
-
readonly url: string;
|
|
529
715
|
readonly loading: boolean;
|
|
530
716
|
readonly viewport?: {
|
|
531
717
|
readonly width: number;
|
|
@@ -536,6 +722,8 @@ declare const decodeServerMessage: (input: unknown, options?: import("effect/Sch
|
|
|
536
722
|
readonly canvasHeight: number;
|
|
537
723
|
readonly deviceScaleFactor: number;
|
|
538
724
|
} | undefined;
|
|
725
|
+
readonly canGoBack?: boolean | undefined;
|
|
726
|
+
readonly canGoForward?: boolean | undefined;
|
|
539
727
|
}[];
|
|
540
728
|
readonly participants: readonly {
|
|
541
729
|
readonly role: "viewer" | "owner" | "editor" | "automation";
|
|
@@ -550,24 +738,35 @@ declare const decodeServerMessage: (input: unknown, options?: import("effect/Sch
|
|
|
550
738
|
}[];
|
|
551
739
|
readonly clientId: string;
|
|
552
740
|
readonly recordings: readonly {
|
|
553
|
-
readonly targetId: string;
|
|
554
741
|
readonly mode: "tab" | "viewer";
|
|
555
|
-
readonly
|
|
742
|
+
readonly targetId: string;
|
|
743
|
+
readonly status: "running" | "starting" | "stopped" | "failed";
|
|
744
|
+
readonly relativePath: string;
|
|
556
745
|
readonly recordingId: string;
|
|
557
746
|
readonly captureGeneration: number;
|
|
558
|
-
readonly path: string;
|
|
559
747
|
readonly startedAt: string;
|
|
560
748
|
readonly fps: number;
|
|
561
749
|
readonly bitrateKbps: number;
|
|
562
750
|
readonly codec: string;
|
|
751
|
+
readonly editing: boolean;
|
|
563
752
|
readonly stopReason?: string | undefined;
|
|
753
|
+
readonly sandboxPath?: string | undefined;
|
|
754
|
+
readonly path?: string | undefined;
|
|
564
755
|
readonly stoppedAt?: string | undefined;
|
|
565
756
|
readonly sizeBytes?: number | undefined;
|
|
757
|
+
readonly editedRelativePath?: string | undefined;
|
|
758
|
+
readonly timelineRelativePath?: string | undefined;
|
|
759
|
+
readonly editError?: {
|
|
760
|
+
readonly code: "ffmpeg_unavailable" | "open_failed" | "nothing_kept" | "analysis_failed" | "plan_failed" | "render_failed" | "timeout" | "cancelled" | "timeline_failed";
|
|
761
|
+
readonly message: string;
|
|
762
|
+
} | undefined;
|
|
566
763
|
}[];
|
|
567
764
|
readonly resumeSecret: string;
|
|
568
765
|
readonly mode?: "implicit" | "explicit" | undefined;
|
|
569
766
|
readonly holderClientId?: string | undefined;
|
|
570
767
|
readonly activeTargetId?: string | undefined;
|
|
768
|
+
readonly viewportOwnerClientId?: string | undefined;
|
|
769
|
+
readonly autoSize?: boolean | undefined;
|
|
571
770
|
} | {
|
|
572
771
|
readonly type: "presence.state";
|
|
573
772
|
readonly participants: readonly {
|
|
@@ -585,6 +784,10 @@ declare const decodeServerMessage: (input: unknown, options?: import("effect/Sch
|
|
|
585
784
|
readonly type: "input.state";
|
|
586
785
|
readonly mode?: "implicit" | "explicit" | undefined;
|
|
587
786
|
readonly holderClientId?: string | undefined;
|
|
787
|
+
} | {
|
|
788
|
+
readonly type: "viewport.state";
|
|
789
|
+
readonly autoSize: boolean;
|
|
790
|
+
readonly viewportOwnerClientId?: string | undefined;
|
|
588
791
|
} | {
|
|
589
792
|
readonly type: "presence.cursor";
|
|
590
793
|
readonly clientId: string;
|
|
@@ -597,9 +800,9 @@ declare const decodeServerMessage: (input: unknown, options?: import("effect/Sch
|
|
|
597
800
|
readonly clientId: string;
|
|
598
801
|
readonly realtimeCounter: number;
|
|
599
802
|
} | {
|
|
600
|
-
readonly type: "paint.point";
|
|
601
|
-
readonly targetId: string;
|
|
602
803
|
readonly width: number;
|
|
804
|
+
readonly targetId: string;
|
|
805
|
+
readonly type: "paint.point";
|
|
603
806
|
readonly clientId: string;
|
|
604
807
|
readonly x: number;
|
|
605
808
|
readonly y: number;
|
|
@@ -610,10 +813,10 @@ declare const decodeServerMessage: (input: unknown, options?: import("effect/Sch
|
|
|
610
813
|
} | {
|
|
611
814
|
readonly type: "targets.state";
|
|
612
815
|
readonly targets: readonly {
|
|
816
|
+
readonly url: string;
|
|
817
|
+
readonly title: string;
|
|
613
818
|
readonly type: string;
|
|
614
819
|
readonly id: string;
|
|
615
|
-
readonly title: string;
|
|
616
|
-
readonly url: string;
|
|
617
820
|
readonly loading: boolean;
|
|
618
821
|
readonly viewport?: {
|
|
619
822
|
readonly width: number;
|
|
@@ -624,24 +827,35 @@ declare const decodeServerMessage: (input: unknown, options?: import("effect/Sch
|
|
|
624
827
|
readonly canvasHeight: number;
|
|
625
828
|
readonly deviceScaleFactor: number;
|
|
626
829
|
} | undefined;
|
|
830
|
+
readonly canGoBack?: boolean | undefined;
|
|
831
|
+
readonly canGoForward?: boolean | undefined;
|
|
627
832
|
}[];
|
|
628
833
|
readonly activeTargetId?: string | undefined;
|
|
629
834
|
} | {
|
|
630
835
|
readonly type: "recordings.state";
|
|
631
836
|
readonly recordings: readonly {
|
|
632
|
-
readonly targetId: string;
|
|
633
837
|
readonly mode: "tab" | "viewer";
|
|
634
|
-
readonly
|
|
838
|
+
readonly targetId: string;
|
|
839
|
+
readonly status: "running" | "starting" | "stopped" | "failed";
|
|
840
|
+
readonly relativePath: string;
|
|
635
841
|
readonly recordingId: string;
|
|
636
842
|
readonly captureGeneration: number;
|
|
637
|
-
readonly path: string;
|
|
638
843
|
readonly startedAt: string;
|
|
639
844
|
readonly fps: number;
|
|
640
845
|
readonly bitrateKbps: number;
|
|
641
846
|
readonly codec: string;
|
|
847
|
+
readonly editing: boolean;
|
|
642
848
|
readonly stopReason?: string | undefined;
|
|
849
|
+
readonly sandboxPath?: string | undefined;
|
|
850
|
+
readonly path?: string | undefined;
|
|
643
851
|
readonly stoppedAt?: string | undefined;
|
|
644
852
|
readonly sizeBytes?: number | undefined;
|
|
853
|
+
readonly editedRelativePath?: string | undefined;
|
|
854
|
+
readonly timelineRelativePath?: string | undefined;
|
|
855
|
+
readonly editError?: {
|
|
856
|
+
readonly code: "ffmpeg_unavailable" | "open_failed" | "nothing_kept" | "analysis_failed" | "plan_failed" | "render_failed" | "timeout" | "cancelled" | "timeline_failed";
|
|
857
|
+
readonly message: string;
|
|
858
|
+
} | undefined;
|
|
645
859
|
}[];
|
|
646
860
|
} | {
|
|
647
861
|
readonly type: "presentation.state";
|
|
@@ -709,6 +923,124 @@ declare function mapClientToViewport(clientX: number, clientY: number, rect: DOM
|
|
|
709
923
|
x: number;
|
|
710
924
|
y: number;
|
|
711
925
|
} | null;
|
|
926
|
+
//#endregion
|
|
927
|
+
//#region src/access.d.ts
|
|
928
|
+
/** Where this browser connects, and who authenticates it. */
|
|
929
|
+
type SessionAccess = {
|
|
930
|
+
readonly kind: "direct";
|
|
931
|
+
readonly baseUrl?: string;
|
|
932
|
+
readonly sessionId: string;
|
|
933
|
+
readonly credentials: ApiCredentials;
|
|
934
|
+
} | {
|
|
935
|
+
readonly kind: "relay";
|
|
936
|
+
readonly baseUrl: string;
|
|
937
|
+
readonly sessionId: string;
|
|
938
|
+
};
|
|
939
|
+
/** Resolve all session endpoints under the same mount. */
|
|
940
|
+
declare function sessionURL(access: SessionAccess, route: string): URL;
|
|
941
|
+
declare function sessionWebSocketURL(access: SessionAccess, route: string): string;
|
|
942
|
+
declare function sessionProtocols(access: SessionAccess): string[];
|
|
943
|
+
declare const getSessionStatus: (access: SessionAccess) => Effect.Effect<{
|
|
944
|
+
readonly thumbnailAvailable: boolean;
|
|
945
|
+
readonly status: "running";
|
|
946
|
+
readonly source: "live";
|
|
947
|
+
readonly capturedAt: string;
|
|
948
|
+
readonly sessionId: string;
|
|
949
|
+
readonly cdpUrl: string;
|
|
950
|
+
readonly media: {
|
|
951
|
+
readonly mode: "auto" | "cdp";
|
|
952
|
+
readonly webrtcProducer: boolean;
|
|
953
|
+
readonly iceServers?: readonly {
|
|
954
|
+
readonly urls: readonly string[];
|
|
955
|
+
readonly username?: string | undefined;
|
|
956
|
+
readonly credential?: undefined | undefined;
|
|
957
|
+
}[] | undefined;
|
|
958
|
+
};
|
|
959
|
+
readonly pages: readonly {
|
|
960
|
+
readonly url: string;
|
|
961
|
+
readonly state: "pending" | "ready" | "unavailable" | "closed";
|
|
962
|
+
readonly targetId: string;
|
|
963
|
+
readonly title: string;
|
|
964
|
+
readonly thumbnailAvailable: boolean;
|
|
965
|
+
readonly viewport?: {
|
|
966
|
+
readonly width: number;
|
|
967
|
+
readonly height: number;
|
|
968
|
+
readonly deviceScaleFactor: number;
|
|
969
|
+
readonly contentWidth: number;
|
|
970
|
+
readonly contentHeight: number;
|
|
971
|
+
readonly canvasWidth: number;
|
|
972
|
+
readonly canvasHeight: number;
|
|
973
|
+
} | undefined;
|
|
974
|
+
}[];
|
|
975
|
+
readonly representativeTargetId?: string | undefined;
|
|
976
|
+
} | {
|
|
977
|
+
readonly thumbnailAvailable: boolean;
|
|
978
|
+
readonly status: "suspended";
|
|
979
|
+
readonly source: "persisted";
|
|
980
|
+
readonly capturedAt: string;
|
|
981
|
+
readonly sessionId: string;
|
|
982
|
+
readonly cdpUrl: string;
|
|
983
|
+
readonly media: {
|
|
984
|
+
readonly mode: "auto" | "cdp";
|
|
985
|
+
readonly webrtcProducer: boolean;
|
|
986
|
+
readonly iceServers?: readonly {
|
|
987
|
+
readonly urls: readonly string[];
|
|
988
|
+
readonly username?: string | undefined;
|
|
989
|
+
readonly credential?: undefined | undefined;
|
|
990
|
+
}[] | undefined;
|
|
991
|
+
};
|
|
992
|
+
readonly pages: readonly {
|
|
993
|
+
readonly url: string;
|
|
994
|
+
readonly state: "pending" | "ready" | "unavailable" | "closed";
|
|
995
|
+
readonly targetId: string;
|
|
996
|
+
readonly title: string;
|
|
997
|
+
readonly thumbnailAvailable: boolean;
|
|
998
|
+
readonly viewport?: {
|
|
999
|
+
readonly width: number;
|
|
1000
|
+
readonly height: number;
|
|
1001
|
+
readonly deviceScaleFactor: number;
|
|
1002
|
+
readonly contentWidth: number;
|
|
1003
|
+
readonly contentHeight: number;
|
|
1004
|
+
readonly canvasWidth: number;
|
|
1005
|
+
readonly canvasHeight: number;
|
|
1006
|
+
} | undefined;
|
|
1007
|
+
}[];
|
|
1008
|
+
readonly representativeTargetId?: string | undefined;
|
|
1009
|
+
} | {
|
|
1010
|
+
readonly status: "suspended";
|
|
1011
|
+
readonly source: "unavailable";
|
|
1012
|
+
readonly sessionId: string;
|
|
1013
|
+
readonly cdpUrl: string;
|
|
1014
|
+
readonly media: {
|
|
1015
|
+
readonly mode: "auto" | "cdp";
|
|
1016
|
+
readonly webrtcProducer: boolean;
|
|
1017
|
+
readonly iceServers?: readonly {
|
|
1018
|
+
readonly urls: readonly string[];
|
|
1019
|
+
readonly username?: string | undefined;
|
|
1020
|
+
readonly credential?: undefined | undefined;
|
|
1021
|
+
}[] | undefined;
|
|
1022
|
+
};
|
|
1023
|
+
readonly thumbnailAvailable: boolean;
|
|
1024
|
+
readonly pages: readonly {
|
|
1025
|
+
readonly url: string;
|
|
1026
|
+
readonly state: "pending" | "ready" | "unavailable" | "closed";
|
|
1027
|
+
readonly targetId: string;
|
|
1028
|
+
readonly title: string;
|
|
1029
|
+
readonly thumbnailAvailable: boolean;
|
|
1030
|
+
readonly viewport?: {
|
|
1031
|
+
readonly width: number;
|
|
1032
|
+
readonly height: number;
|
|
1033
|
+
readonly deviceScaleFactor: number;
|
|
1034
|
+
readonly contentWidth: number;
|
|
1035
|
+
readonly contentHeight: number;
|
|
1036
|
+
readonly canvasWidth: number;
|
|
1037
|
+
readonly canvasHeight: number;
|
|
1038
|
+
} | undefined;
|
|
1039
|
+
}[];
|
|
1040
|
+
}, import("@aperture-browser/api-client").ApiRequestError, HttpClient.HttpClient>;
|
|
1041
|
+
declare const downloadSessionRecording: (access: SessionAccess, recordingId: string) => Effect.Effect<DownloadedFile, import("@aperture-browser/api-client").ApiRequestError, HttpClient.HttpClient>;
|
|
1042
|
+
/** A JPEG of one tab, authorized through the relay, session access, or account API. */
|
|
1043
|
+
declare const getTargetThumbnail: (access: SessionAccess, targetId: string) => Effect.Effect<Blob, import("@aperture-browser/api-client").ApiRequestError, HttpClient.HttpClient>;
|
|
712
1044
|
declare namespace connection_d_exports {
|
|
713
1045
|
export { LiveSessionConnection, LiveSessionConnectionCallbacks, LiveSessionConnectionOptions, LiveSessionError, LiveSessionSnapshot, LiveSessionTransportKind, make };
|
|
714
1046
|
}
|
|
@@ -718,6 +1050,7 @@ declare const LiveSessionError_base: new <A extends Record<string, any> = {}>(ar
|
|
|
718
1050
|
/** A live session operation that could not complete. */
|
|
719
1051
|
declare class LiveSessionError extends LiveSessionError_base<{
|
|
720
1052
|
readonly message: string;
|
|
1053
|
+
readonly terminalReason?: "access_denied" | "session_unavailable";
|
|
721
1054
|
}> {}
|
|
722
1055
|
interface SessionHelloIdentity {
|
|
723
1056
|
name: string;
|
|
@@ -733,11 +1066,13 @@ interface LiveSessionConnectionCallbacks {
|
|
|
733
1066
|
onError: (message: string) => void;
|
|
734
1067
|
}
|
|
735
1068
|
interface LiveSessionConnectionOptions {
|
|
736
|
-
|
|
737
|
-
sessionId: string;
|
|
738
|
-
credentials: ApiCredentials;
|
|
739
|
-
sessionToken?: string;
|
|
1069
|
+
access: SessionAccess;
|
|
740
1070
|
identity: SessionHelloIdentity;
|
|
1071
|
+
/**
|
|
1072
|
+
* Reads the current auto-size preference for each hello. Sending it opts the client into
|
|
1073
|
+
* viewport ownership state; omit it to keep the pre-ownership protocol.
|
|
1074
|
+
*/
|
|
1075
|
+
autoSize?: () => boolean;
|
|
741
1076
|
iceServers: readonly IceServer[];
|
|
742
1077
|
webrtcSupported: boolean;
|
|
743
1078
|
callbacks: LiveSessionConnectionCallbacks;
|
|
@@ -763,26 +1098,35 @@ declare const make: (options: LiveSessionConnectionOptions) => Effect.Effect<{
|
|
|
763
1098
|
sendReliable: (message: Record<string, unknown>) => boolean;
|
|
764
1099
|
sendRealtime: (message: Record<string, unknown>) => boolean;
|
|
765
1100
|
command: (type: string, payload?: Record<string, unknown> | undefined) => Effect.Effect<{
|
|
766
|
-
readonly type: "target.select.result" | "target.create.result" | "target.close.result" | "page.navigate.result" | "page.history-back.result" | "page.history-forward.result" | "page.reload.result" | "page.stop-loading.result" | "viewport.set.result" | "presentation.quality.set.result" | "presentation.cursor.set.result" | "recording.start.result" | "recording.stop.result" | "recording.cancel.result";
|
|
1101
|
+
readonly type: "target.select.result" | "target.create.result" | "target.close.result" | "page.navigate.result" | "page.history-back.result" | "page.history-forward.result" | "page.reload.result" | "page.stop-loading.result" | "viewport.set.result" | "viewport.auto-size.set.result" | "viewport.owner.claim.result" | "presentation.quality.set.result" | "presentation.cursor.set.result" | "automation.pacing.set.result" | "recording.start.result" | "recording.stop.result" | "recording.cancel.result";
|
|
767
1102
|
readonly requestId: string;
|
|
768
1103
|
readonly ok: boolean;
|
|
1104
|
+
readonly targetId?: string | undefined;
|
|
769
1105
|
readonly message?: string | undefined;
|
|
770
1106
|
readonly code?: string | undefined;
|
|
771
|
-
readonly targetId?: string | undefined;
|
|
772
1107
|
readonly recording?: {
|
|
773
|
-
readonly targetId: string;
|
|
774
1108
|
readonly mode: "tab" | "viewer";
|
|
775
|
-
readonly
|
|
1109
|
+
readonly targetId: string;
|
|
1110
|
+
readonly status: "running" | "starting" | "stopped" | "failed";
|
|
1111
|
+
readonly relativePath: string;
|
|
776
1112
|
readonly recordingId: string;
|
|
777
1113
|
readonly captureGeneration: number;
|
|
778
|
-
readonly path: string;
|
|
779
1114
|
readonly startedAt: string;
|
|
780
1115
|
readonly fps: number;
|
|
781
1116
|
readonly bitrateKbps: number;
|
|
782
1117
|
readonly codec: string;
|
|
1118
|
+
readonly editing: boolean;
|
|
783
1119
|
readonly stopReason?: string | undefined;
|
|
1120
|
+
readonly sandboxPath?: string | undefined;
|
|
1121
|
+
readonly path?: string | undefined;
|
|
784
1122
|
readonly stoppedAt?: string | undefined;
|
|
785
1123
|
readonly sizeBytes?: number | undefined;
|
|
1124
|
+
readonly editedRelativePath?: string | undefined;
|
|
1125
|
+
readonly timelineRelativePath?: string | undefined;
|
|
1126
|
+
readonly editError?: {
|
|
1127
|
+
readonly code: "ffmpeg_unavailable" | "open_failed" | "nothing_kept" | "analysis_failed" | "plan_failed" | "render_failed" | "timeout" | "cancelled" | "timeline_failed";
|
|
1128
|
+
readonly message: string;
|
|
1129
|
+
} | undefined;
|
|
786
1130
|
} | undefined;
|
|
787
1131
|
readonly presentation?: {
|
|
788
1132
|
readonly profiles: readonly {
|
|
@@ -803,5 +1147,5 @@ declare const make: (options: LiveSessionConnectionOptions) => Effect.Effect<{
|
|
|
803
1147
|
}, LiveSessionError, never>;
|
|
804
1148
|
}, never, import("effect/Scope").Scope>;
|
|
805
1149
|
//#endregion
|
|
806
|
-
export { BrowserInputMessage, CollaborationCursor, CollaborationError, CollaborationLeaseMode, CollaborationPaintEvent, CollaborationPaintPhase, CollaborationPaintPoint, CollaborationParticipant, CollaborationPhase, CollaborationRole, DEFAULT_VIEWPORT, LIVE_SESSION_PROTOCOL, LiveSessionCommandResult, connection_d_exports as LiveSessionConnection, LiveSessionError, LiveSessionPresentation, LiveSessionPresentationQuality, LiveSessionRasterFrame, LiveSessionServerMessage, LiveSessionSnapshot, LiveSessionTarget, type LiveSessionTransportKind, RasterFrameHeader, RenderMetrics, STALE_FRAME_MS, VIEWPORT_DEVICE_SCALE_FACTORS, VIEWPORT_PRESETS, ViewportPreset, computeRenderMetrics, createViewportPreset, decodeServerMessage, evdevKeycodeByCode, formatViewportScale, isPrintableKey, keyboardInputMessage, keyboardModifiers, mapClientToViewport, shouldForwardBrowserShortcut, strictParseOptions, windowsVirtualKeyCodeForCodeOrKey };
|
|
1150
|
+
export { BrowserInputMessage, CollaborationCursor, CollaborationError, CollaborationLeaseMode, CollaborationPaintEvent, CollaborationPaintPhase, CollaborationPaintPoint, CollaborationParticipant, CollaborationPhase, CollaborationRole, DEFAULT_VIEWPORT, LIVE_SESSION_PROTOCOL, LiveSessionCommandResult, connection_d_exports as LiveSessionConnection, LiveSessionError, LiveSessionPresentation, LiveSessionPresentationQuality, LiveSessionRasterFrame, LiveSessionServerMessage, LiveSessionSnapshot, LiveSessionTarget, type LiveSessionTransportKind, RasterFrameHeader, RenderMetrics, STALE_FRAME_MS, SessionAccess, VIEWPORT_DEVICE_SCALE_FACTORS, VIEWPORT_PRESETS, ViewportPreset, computeRenderMetrics, createViewportPreset, decodeServerMessage, downloadSessionRecording, evdevKeycodeByCode, formatViewportScale, getSessionStatus, getTargetThumbnail, isPrintableKey, keyboardInputMessage, keyboardModifiers, mapClientToViewport, sessionProtocols, sessionURL, sessionWebSocketURL, shouldForwardBrowserShortcut, strictParseOptions, windowsVirtualKeyCodeForCodeOrKey };
|
|
807
1151
|
//# sourceMappingURL=index.d.ts.map
|