The file ID.
Whether this branch is active/valid.
Version for the file, one-indexed.
Creates a new version of this file with contents in a type that is compatible with MatrixClient.uploadContent().
The name of the file.
The encrypted contents.
The encrypted file information.
Optional
additionalContent: IContentOptional event content fields to include in the message.
Promise which resolves to the file event's sent response.
Deletes the file from the tree, including all prior edits/versions.
Promise which resolves when complete.
Gets the event the file points to.
Promise which resolves to the file's event.
Gets information about the file needed to download it.
Information about the file.
Gets the name for this file.
The name, or "Unnamed File" if unknown.
Gets the file's version history, starting at this file.
Promise which resolves to the file's version history, with the first element being the current version and the last element being the first version.
Gets whether or not a file is locked.
True if locked, false otherwise.
Sets a file as locked or unlocked.
True to lock the file, false otherwise.
Promise which resolves when complete.
Sets the name for this file.
The new name for this file.
Promise which resolves when complete.
Represents a MSC3089 branch - a reference to a file (leaf) in the tree. Note that this is UNSTABLE and subject to breaking changes without notice.