60 Commits
Author SHA1 Message Date
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
nvrl 684ecb2abb updated deps 2026-07-20 00:07:08 +02:00
nvrl 75a615dd28 added re captcha flow 2026-07-19 23:14:25 +02:00
nvrl 8c44768010 version bump 2026-07-19 19:40:27 +02:00
nvrl ac9bfc48b0 fixed orphaned docs 2026-07-19 14:27:34 +02:00
nvrl f75ecb04b6 event manager, concurrency, optimizations 2026-07-17 22:30:32 +02:00
nvrl 0a15a8c86e revision handler, parallel block download + gzip 2026-07-17 15:57:00 +02:00
nvrl 75f707719f fast node walk without decrypt + fixed crypto dub bug 2026-07-16 16:40:42 +02:00
nvrl 64f977edb3 feature (devices+sharing) + upgraded rand and aeds 2026-07-15 19:34:40 +02:00