Skip to main content

Module drive

Module drive 

Source

Structs§

File
FileDates
Partial<{ accessDate, createDate }> in the TypeScript SDK.
FileMeta
The meta argument of fromAccessCode.

Enums§

DriveAuthorization

Functions§

folder
from_access_code
Build a streaming File addressed by a per-file access code. Bytes are pulled on demand via download() (the Access-Code path). Used to hydrate chat message FILE parts returned by the server (each carries its own code), so members stream file bytes uniformly without a host-drive path.
from_bytes
Build an in-memory File from raw bytes (not yet uploaded). path is the Drive destination (e.g. tmp/${uuid}-${name}); the display name is the last path segment. The file is offline until an explicit upload().
list
parse_stream
Split a Drive style response into its parts. With Encoding-Size above 1 the body is a --BOUNDARY separated multipart and this returns every part.
pull
remove
wrap
Builds an in-memory file from bytes the caller already holds (the browser SDK takes a File). An empty content_type is inferred from the name.

Type Aliases§

Progress
Progress callback, called with a fraction from 0 to 1.