Add volume-scoped v2 drive link routes - #1
Draft
ClaudiuSchuster wants to merge 4 commits into
Draft
ClaudiuSchuster wants to merge 4 commits into
ClaudiuSchuster wants to merge 4 commits into
Conversation
Proton has deprecated the share-scoped /drive/shares/{shareID}/links*,
folders* and files* routes. Add the volume-scoped v2 replacements:
ID-based children listings with anchor pagination, batched metadata
fetching, draft file/folder/revision creation, revision handling, move,
checkAvailableHashes and volume trash operations. Draft deletion uses
the volume delete_multiple route the official Proton Drive SDK uses for
drafts, not the trashed-node route. The v2 wire types convert into the
existing Link model so callers keep their link handling.
Field-compatible v1 request structs are reused.
The /drive/blocks request accepts VolumeID as the replacement for the deprecated ShareID field. Send VolumeID when set and keep ShareID for callers that have not migrated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proton has deprecated the share-scoped
/drive/shares/{shareId}/links*,folders*andfiles*routes (removal announced within ~12 months, see the rclone forum notice).This adds the volume-scoped v2 replacements alongside the untouched v1 client:
More/AnchorIDanchor pagination andFoldersOnlysupportPOST /drive/v2/volumes/{volumeID}/links(100 IDs per request, matching the official SDK)checkAvailableHashes, volume trash and draft deletion (volumedelete_multiple, per the official SDK'sdeleteDraft)VolumeLinkDetailswire types converting v2 renames (NameHash,MediaType,RevisionID/EncryptedSize) into the existingLinkmodelBlockUploadReq.VolumeIDreplacing the deprecatedShareIDfieldReference contract:
ProtonDriveApps/sdkclient/js/src/internal/apiService/driveTypes.ts.Full engineering reference:
docs/PROTON_API_V2_MIGRATION.mdin oss-singularity/proton-drive-linux.Upstream contribution to rclone/go-proton-api is planned after live validation.