@aperture-browser/session-client 1.0.0-beta.3 → 1.0.0-beta.6

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.
@@ -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`. What is not granted is refused:
396
- * a client need not show it. Watching takes no grant.
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.
@@ -2174,6 +2182,8 @@ interface Features {
2174
2182
  readonly cdp: Grant;
2175
2183
  /** Write: attaching a tunnel. */
2176
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;
2177
2187
  }
2178
2188
  /** What a client may do before the session has told: nothing. */
2179
2189
  declare const NO_FEATURES: Features;
@@ -2391,7 +2401,7 @@ declare const fileRequestOf: (request: FileRequest$1) => FileRequest;
2391
2401
  declare const menuOf: (menu: Menu$1) => Menu;
2392
2402
  declare const statusOf: (status: VideoStatus$1) => VideoStatus;
2393
2403
  declare namespace http_d_exports {
2394
- 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 };
2395
2405
  }
2396
2406
  /** A file put into the session for its browser to take. */
2397
2407
  interface Uploaded {
@@ -2510,6 +2520,10 @@ interface UploadProgress {
2510
2520
  readonly loaded: number;
2511
2521
  readonly total: number;
2512
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;
2513
2527
  /** Every target of the session, oldest first. */
2514
2528
  declare const targets: (address: Address) => Effect.Effect<Target[], SessionError, never>;
2515
2529
  /** Gives a target its own viewport, as near to the one asked for as it can be given. */
@@ -2519,7 +2533,8 @@ declare const uploads: (address: Address) => Effect.Effect<Uploaded[], SessionEr
2519
2533
  /**
2520
2534
  * Puts a file into the session's uploads under its own name, in place of one there was.
2521
2535
  * Files get to the session's browser this way: they are put there, and the browser is
2522
- * 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.
2523
2538
  */
2524
2539
  declare const upload: (address: Address, file: File, onProgress?: ((progress: UploadProgress) => void) | undefined) => Effect.Effect<Uploaded, SessionError, never>;
2525
2540
  declare const removeUpload: (address: Address, name: string) => Effect.Effect<void, SessionError, never>;
@@ -2901,4 +2916,4 @@ declare class Session extends Session_base {}
2901
2916
  declare const layer: (options: ConnectOptions) => Layer.Layer<Session, never, never>;
2902
2917
  //#endregion
2903
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 };
2904
- //# sourceMappingURL=session-BEv4pkic.d.ts.map
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",
3
+ "version": "1.0.0-beta.6",
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.3",
36
+ "@aperture-browser/shared": "1.0.0-beta.6",
36
37
  "@bufbuild/protoc-gen-es": "2.17.0",
37
38
  "effect": "4.0.0",
38
39
  "publint": "0.3.24",