@aperture-browser/session-client 1.0.0-beta.2 → 1.0.0-beta.5
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/dist/effect.d.ts +1 -1
- package/dist/effect.js +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{session-CSF1mk8K.js → session-DWuiTD4t.js} +130 -35
- package/dist/session-DWuiTD4t.js.map +1 -0
- package/dist/{session-Di6f5DYK.d.ts → session-Dy4rx4sJ.d.ts} +32 -5
- package/package.json +4 -3
- package/dist/session-CSF1mk8K.js.map +0 -1
|
@@ -392,8 +392,9 @@ type Paced = Message<"aperture.live.v1.Paced"> & {
|
|
|
392
392
|
declare const PacedSchema: GenMessage<Paced>;
|
|
393
393
|
/**
|
|
394
394
|
* What the client may do in the session, area by area: what whoever let it in gave it, of
|
|
395
|
-
* what the session offers at all. Sent first after `hello
|
|
396
|
-
* a client need not show it. Watching
|
|
395
|
+
* what the session offers at all. Sent first after `hello`, and again when the largest
|
|
396
|
+
* upload changes. What is not granted is refused: a client need not show it. Watching
|
|
397
|
+
* takes no grant.
|
|
397
398
|
*
|
|
398
399
|
* @generated from message aperture.live.v1.Features
|
|
399
400
|
*/
|
|
@@ -466,6 +467,13 @@ type Features$1 = Message<"aperture.live.v1.Features"> & {
|
|
|
466
467
|
* @generated from field: aperture.live.v1.Grant tunnel = 8;
|
|
467
468
|
*/
|
|
468
469
|
tunnel?: Grant$1 | undefined;
|
|
470
|
+
/**
|
|
471
|
+
* The largest file that is put into the session, in bytes; any size without. A larger
|
|
472
|
+
* one is refused before it is sent.
|
|
473
|
+
*
|
|
474
|
+
* @generated from field: optional uint64 upload_most = 12;
|
|
475
|
+
*/
|
|
476
|
+
uploadMost?: bigint | undefined;
|
|
469
477
|
};
|
|
470
478
|
/**
|
|
471
479
|
* Describes the message aperture.live.v1.Features.
|
|
@@ -529,6 +537,13 @@ type Hello = Message<"aperture.live.v1.Hello"> & {
|
|
|
529
537
|
* @generated from field: bool audio = 5;
|
|
530
538
|
*/
|
|
531
539
|
audio: boolean;
|
|
540
|
+
/**
|
|
541
|
+
* The tab the client watches first; the one watched last in the session when left out,
|
|
542
|
+
* or when the session has no such tab. A hello that comes again leaves the tab watched.
|
|
543
|
+
*
|
|
544
|
+
* @generated from field: optional uint32 tab = 6;
|
|
545
|
+
*/
|
|
546
|
+
tab?: number | undefined;
|
|
532
547
|
};
|
|
533
548
|
/**
|
|
534
549
|
* Describes the message aperture.live.v1.Hello.
|
|
@@ -2167,6 +2182,8 @@ interface Features {
|
|
|
2167
2182
|
readonly cdp: Grant;
|
|
2168
2183
|
/** Write: attaching a tunnel. */
|
|
2169
2184
|
readonly tunnel: Grant;
|
|
2185
|
+
/** The largest file that is put into the session, in bytes; any size where none. */
|
|
2186
|
+
readonly uploadMost: number | null;
|
|
2170
2187
|
}
|
|
2171
2188
|
/** What a client may do before the session has told: nothing. */
|
|
2172
2189
|
declare const NO_FEATURES: Features;
|
|
@@ -2384,7 +2401,7 @@ declare const fileRequestOf: (request: FileRequest$1) => FileRequest;
|
|
|
2384
2401
|
declare const menuOf: (menu: Menu$1) => Menu;
|
|
2385
2402
|
declare const statusOf: (status: VideoStatus$1) => VideoStatus;
|
|
2386
2403
|
declare namespace http_d_exports {
|
|
2387
|
-
export { DownloadedFile, EditRecording, Recording, RecordingAnnotation, RecordingBurst, RecordingEdit, RecordingOptions, Screenshot, StartRecording, StateCookie, StorageState, StorageStateAsked, UploadProgress, Uploaded, ViewportSize, annotateRecording, downloads, editRecording, exportStorageState, getPace, getRecording, importStorageState, listRecordings, listScreenshots, removeUpload, retargetRecording, setPace, setViewport, startRecording, stopRecording, takeScreenshot, targets, upload, uploads };
|
|
2404
|
+
export { DownloadedFile, EditRecording, Recording, RecordingAnnotation, RecordingBurst, RecordingEdit, RecordingOptions, Screenshot, StartRecording, StateCookie, StorageState, StorageStateAsked, UploadProgress, Uploaded, ViewportSize, annotateRecording, downloads, editRecording, exportStorageState, getPace, getRecording, importStorageState, listRecordings, listScreenshots, removeUpload, retargetRecording, setPace, setViewport, sizeWords, startRecording, stopRecording, takeScreenshot, targets, tooLarge, upload, uploads };
|
|
2388
2405
|
}
|
|
2389
2406
|
/** A file put into the session for its browser to take. */
|
|
2390
2407
|
interface Uploaded {
|
|
@@ -2503,6 +2520,10 @@ interface UploadProgress {
|
|
|
2503
2520
|
readonly loaded: number;
|
|
2504
2521
|
readonly total: number;
|
|
2505
2522
|
}
|
|
2523
|
+
/** A size as it is read in what tells of it: `1 GB`, `1.5 GB`, `512 MB`. */
|
|
2524
|
+
declare const sizeWords: (bytes: number) => string;
|
|
2525
|
+
/** A file larger than the session takes, refused before it is sent. */
|
|
2526
|
+
declare const tooLarge: (file: File, most: number | null) => SessionError | undefined;
|
|
2506
2527
|
/** Every target of the session, oldest first. */
|
|
2507
2528
|
declare const targets: (address: Address) => Effect.Effect<Target[], SessionError, never>;
|
|
2508
2529
|
/** Gives a target its own viewport, as near to the one asked for as it can be given. */
|
|
@@ -2512,7 +2533,8 @@ declare const uploads: (address: Address) => Effect.Effect<Uploaded[], SessionEr
|
|
|
2512
2533
|
/**
|
|
2513
2534
|
* Puts a file into the session's uploads under its own name, in place of one there was.
|
|
2514
2535
|
* Files get to the session's browser this way: they are put there, and the browser is
|
|
2515
|
-
* told where they are.
|
|
2536
|
+
* told where they are. A browser sends it a piece at a time, and goes on with a file it
|
|
2537
|
+
* did not finish; elsewhere it goes in one request.
|
|
2516
2538
|
*/
|
|
2517
2539
|
declare const upload: (address: Address, file: File, onProgress?: ((progress: UploadProgress) => void) | undefined) => Effect.Effect<Uploaded, SessionError, never>;
|
|
2518
2540
|
declare const removeUpload: (address: Address, name: string) => Effect.Effect<void, SessionError, never>;
|
|
@@ -2634,6 +2656,11 @@ interface Surfaces {
|
|
|
2634
2656
|
interface ConnectOptions extends Address {
|
|
2635
2657
|
/** The way the picture is to come at first; the best this browser can do when left out. */
|
|
2636
2658
|
readonly pixels?: PictureWay | undefined;
|
|
2659
|
+
/**
|
|
2660
|
+
* The tab to watch first; the one watched last in the session when left out, or when the
|
|
2661
|
+
* session has no such tab.
|
|
2662
|
+
*/
|
|
2663
|
+
readonly tab?: number | undefined;
|
|
2637
2664
|
}
|
|
2638
2665
|
/** Where the watched target's page is taken. */
|
|
2639
2666
|
type Destination = {
|
|
@@ -2889,4 +2916,4 @@ declare class Session extends Session_base {}
|
|
|
2889
2916
|
declare const layer: (options: ConnectOptions) => Layer.Layer<Session, never, never>;
|
|
2890
2917
|
//#endregion
|
|
2891
2918
|
export { PointerMark as $, ClipboardEvent as A, HeldTab as B, StorageStateAsked as C, statusOf as Ct, http_d_exports as D, SessionError as Dt, ViewportSize as E, live_pb_d_exports as Et, FORMATS as F, NO_FEATURES as G, LeaseAction as H, Failure as I, Pace as J, PAGE_MODES as K, Features as L, Connection as M, Download as N, ALONGS as O, Address as Ot, DownloadState as P, PictureWay as Q, FileRequest as R, StorageState as S, restoringOf as St, Uploaded as T, targetOf as Tt, Member as U, LEASE_ACTIONS as V, Menu as W, Picture as X, PageMode as Y, PictureSettings as Z, RecordingEdit as _, menuOf as _t, PictureChange as a, Snapshot as at, StartRecording as b, presenceOf as bt, SnapshotStore as c, Target as ct, Surfaces as d, VideoStatus as dt, Presence as et, KEYS as f, downloadOf as ft, RecordingBurst as g, formatOf as gt, RecordingAnnotation as h, fileRequestOf as ht, GoOptions as i, STROKE_PHASE as it, ClipboardForm as j, Along as k, layer as l, VideoFormat as lt, Recording as m, featuresOf as mt, Destination as n, Restoring as nt, Session as o, StrokePhase as ot, EditRecording as p, failureOf as pt, PIXELS as q, FitOptions as r, Role as rt, SessionService as s, StrokePoint as st, ConnectOptions as t, QUALITIES as tt, make as u, VideoQuality as ut, RecordingOptions as v, paceOf as vt, UploadProgress as w, strokeOf as wt, StateCookie as x, qualityOf as xt, Screenshot as y, pointerOf as yt, Grant as z };
|
|
2892
|
-
//# sourceMappingURL=session-
|
|
2919
|
+
//# sourceMappingURL=session-Dy4rx4sJ.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aperture-browser/session-client",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.5",
|
|
4
4
|
"description": "Framework-free client for one Aperture session: the live protocol, its picture and sound, browser input, and the session's HTTP routes.",
|
|
5
5
|
"homepage": "https://github.com/tarik02/aperture#readme",
|
|
6
6
|
"bugs": "https://github.com/tarik02/aperture/issues",
|
|
@@ -29,10 +29,11 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@bufbuild/protobuf": "2.17.0"
|
|
32
|
+
"@bufbuild/protobuf": "2.17.0",
|
|
33
|
+
"tus-js-client": "^4.3.1"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"@aperture-browser/shared": "1.0.0-beta.
|
|
36
|
+
"@aperture-browser/shared": "1.0.0-beta.5",
|
|
36
37
|
"@bufbuild/protoc-gen-es": "2.17.0",
|
|
37
38
|
"effect": "4.0.0",
|
|
38
39
|
"publint": "0.3.24",
|