68 Commits
Author SHA1 Message Date
nvrl 07f2f5abff chore(release) version bumped to 0.14.0 2026-12-01 11:12:03 +01:00
nvrl 7ddbdb0bf7 chore(release) version bumped to 0.13.0 2026-11-30 01:11:41 +01:00
nvrl 3d8260e7cb chore(release): 0.12.11 2026-11-29 12:42:39 +01:00
nvrl 9df2cf56cc chore(release): 0.12.10 2026-11-28 17:12:24 +01:00
nvrl 2bf83d28a3 chore(release): 0.12.9 2026-11-28 14:58:29 +01:00
nvrl 45d2c5326b perf(drive): read a folder's hash key once, and check a revision's base for free (0.12.8)
Every upload into a folder read the folder's link again for the key that
hashes its children's names. The key is now cached next to the folder's node
key and dropped with it on the folder's events.

upload_new_revision_over uploads a revision only over the revision the caller
expects. It answers Moved or Trashed, sending nothing, when the file moved on
or is in the trash. The check uses the read of the file's link the upload
needs for its keys, so a caller that read the file itself first can drop that
read.

The revision history live test told the superseded revisions apart by
creation time. Small revisions can land within one second, so it now tells
them apart by size.
2026-11-28 00:49:30 +01:00
nvrl e33cd81b5b feat(drive): return the sealed revision from uploads (0.12.7)
Add upload_file_replacing_draft_sealed and upload_new_revision_sealed.
They return a SealedUpload with the file's uid and the id of the
revision they sealed. Drive often does not list a node made a moment
ago, so reading the file back to learn the id often got nothing.

Sealing a revision now also drops the file's node from the entity
cache. Before, get_node kept reporting the replaced revision as active
until a Drive event invalidated it.
2026-11-25 15:07:40 +01:00
nvrl 4efc7b0bea fix(drive): treat HTTP 202 from empty_trash as success (0.12.6)
The server answers DELETE volumes/{vid}/trash with HTTP 202 and empties
the trash in the background. The generic response parser reports the
202 envelope as an error, so every successful empty came back as
"proton api error Unknown (http 202): Accepted". Accept it, the same
way restore_revision already does.
2026-11-22 12:55:09 +01:00
nvrl 1421bd87e3 fix(drive): page the trash with Page and PageSize
The trash listing sent its paging parameters in lower case, unlike every
other paged request, and asked for another page while pages came back
full. On a large trash it never finished, so callers timed out and never
saw most of it. Send Page and PageSize, and stop when a page brings no
link already seen, with a hard cap of 10 000 pages.

Add enumerate_trashed_nodes_light, which returns each trashed node with
the time it was trashed, and release 0.12.5.
2026-11-22 02:29:15 +01:00
nvrl 9291403092 feat(photos): find photos without a thumbnail
ProtonPhotosClient::find_missing_thumbnails reads link details in batches and
returns the photos that list no thumbnail, confirming each through its
revision. Nothing is downloaded. Photos-volume links carry their file
properties under the photo record, which is read as well.

Bumps the version to 0.12.4.
2026-11-21 21:20:55 +01:00
nvrl 9a70bcab5a perf(drive): fetch thumbnails in fewer round trips
download_thumbnail read the link, the revision's whole block list, the
thumbnail URL and the blob, one after another, for every thumbnail. The
thumbnail ids now come from the link details when the API lists them,
and the client remembers each file's content key and thumbnail ids for
up to 4096 files, so repeats, retries and preview fallbacks need only
the URL and the blob. Node events and failed fetches drop entries.

Release 0.12.3.
2026-11-21 14:29:30 +01:00
nvrl 1a425cb8d5 chore(VER) bumped to 0.12.2 2026-11-20 17:05:57 +01:00
nvrl 3fd5b53164 chore(VER) bumped to 0.12.1 2026-11-17 23:54:42 +01:00
nvrl 0522c3ca89 chore(VER) bumped to 0.12.0 2026-11-15 16:13:59 +01:00
nvrl 84039a1d51 chore(VER) bumped to 0.11.0 2026-11-05 17:17:36 +01:00
nvrl 7ac5b485d7 feat(drive)!: preserve modification time offsets
Port upstream 271f64e4. Folder creation and streaming file/revision
uploads retain the UTC offset and fractional seconds in encrypted
attributes. Downloaded claimed timestamps stay verbatim strings.

PhotoUploadMetadata has a separate last_modification_time; capture_time
no longer supplies it. Reconcile the remaining upstream commits and pin
to 05c91159.

BREAKING CHANGE: modification-time inputs take Option<ModificationTime>
(DateTime<FixedOffset>) instead of epoch seconds. Photo metadata literals
need the new field or Default; set both times to preserve the former
capture-time fallback.
2026-11-05 17:17:13 +01:00
nvrl 48dd410e41 chore(VER) bumped to 0.10.1 2026-10-31 13:27:43 +01:00
nvrl 5c29ef88fc chore(VER) bumped to 0.10.0 2026-10-26 16:57:50 +01:00
nvrl 0194f87856 chore(VER) bumped to 0.9.2 2026-10-17 12:16:48 +02:00
nvrl 155bf23615 chore(VER) bumped to 0.9.1 2026-10-15 22:58:11 +02:00
nvrl eb0e5aaf57 chore(VER) bumped to 0.9.0 2026-10-15 19:50:35 +02:00
nvrl 9e4d2fb036 chore(VER) bumped to 0.8.3 2026-10-13 20:23:24 +02:00
nvrl 56d7b15115 chore(VER) bumped to 0.8.2 2026-10-09 11:45:49 +02:00
nvrl 2fbed3f959 chore(VER) bumped to 0.8.1 2026-10-08 15:03:28 +02:00
nvrl 325c326c49 feat(account): hold key passphrases as wiped secrets and report a locked account as KeysLocked
A wrong mailbox password surfaced as InvalidOperation("no active user key could
be unlocked"), which a caller could only recognise by its text. It is now
ProtonError::KeysLocked, and AccountClient::unlock() checks a secret with a
single core/v4/users request instead of loading every address.

Derived passphrases, the mailbox password and the cache encryption key were
plain Vec<u8>s, cloned freely and never wiped. They are Zeroizing now, and the
passphrase map is KeyPassphrases: wiped on drop, redacted in Debug, with
derive_secret() for a client that wants a key only an unlocked account can
reproduce. with_key_passphrases takes it.

Breaking: ProtonError gains a variant, key_passphrases() and
with_key_passphrases() change type, and derive_key_passphrase returns
Zeroizing<Vec<u8>>.
2026-10-07 02:24:51 +02:00
nvrl 909eefd06e chore(VER) bumped to 0.7.4 2026-10-06 23:49:58 +02:00
nvrl 7950eff337 chore(deps) upgraded dependencies 2026-10-06 14:10:09 +02:00
nvrl 771bc443fa chore(VER) bumped to 0.7.3 2026-10-06 13:59:12 +02:00
nvrl 1bd5fe8a07 chore(VER) bumped to 0.7.2 2026-10-01 18:07:46 +02:00
nvrl 4a0453c66f chore(VER) bumped to 0.7.1 2026-09-29 21:14:35 +02:00
nvrl ce491ba519 chore(deps) updated 2026-09-28 01:15:55 +02:00
nvrl 9036c35697 chore(VER) bumped to 0.7.0 2026-09-28 01:07:12 +02:00
nvrl f7054c3c3b chore(VER) bumped to 0.6.6 2026-09-23 03:15:25 +02:00
nvrl 1f76f33d49 chore(VER) bumped to 0.6.5 2026-09-19 14:05:22 +02:00
nvrl 4f129b778a chore(VER) bumped to 0.6.4 2026-09-15 15:07:21 +02:00
nvrl bf36bbdf74 chore(deps): bump lru to 0.18 and base64 to 0.23
lru < 0.16.3 has an IterMut Stacked Borrows violation (GHSA advisory
flagged by Dependabot on downstream proton-drive-linux).
2026-09-15 15:06:56 +02:00
nvrl 6f052e1912 chore(VER) bumped to 0.6.3 2026-09-15 13:54:33 +02:00
nvrl 81844cb9da chore(VER) bumped to 0.6.2 2026-08-28 12:00:05 +02:00
nvrl 61117fd7dc feature(photos) implemented dups, import from takeout 2026-08-18 01:30:45 +02:00
nvrl 0cf760362a fix(sdk) token mutex no longer spans the refresh 2026-08-16 18:53:29 +02:00
nvrl 9ec0582efe added chain with salts 2026-08-10 15:19:18 +02:00
nvrl 12bcf61424 version bump to 0.5.0 2026-08-10 14:11:38 +02:00
nvrl 4fe7f02ebb version 0.4.0 2026-08-03 00:18:39 +02:00
nvrl 5e1f7b56e0 version bump to 0.3.2 2026-07-31 19:34:01 +02:00
nvrl db66211a4d version bump 0.3.1 2026-07-28 20:11:54 +02:00
nvrl e0cbc15d21 version bump to 0.3.0 2026-07-28 18:36:23 +02:00
nvrl ea59994250 implemented revisions 2026-07-25 12:48:41 +02:00
nvrl b683e73c23 perf(drive): encrypt content blocks concurrently 2026-07-25 00:25:54 +02:00
nvrl 9dd535b374 improved performance, concurrent upload, version 0.2.0 2026-07-24 20:29:15 +02:00
nvrl 0777c071b6 version bump to 0.1.12 2026-07-22 03:03:59 +02:00