Chun-Hung Tseng
4ab06a053b
Update go-proton-api version
2025-01-27 22:11:55 +00:00
Chun-Hung Tseng
09e1fe7778
Merge pull request #30 from major0/fix/proton-go-api-references
...
feat: leverage go's mod replace sanely
2025-01-27 22:46:47 +01:00
Mark Ferrell
04a533aec9
feat: leverage go's mod replace sanely
...
The Proton-API-Bridge should not be attempting to take over, nor
re-define, the existing proton-go-api interfaces. This is known has an
"unfriendly fork" and increases the overall complexity of maintaining
the Proton-API-Bridge.
All changes to the proton-go-api should be done as "friendly" as
possible, and should be submitted back upstream for inclusion. This
improves the functionality of the proton-go-api for more than just 1
project, and it reduces the long-term maintenance required for
Proton-API-Bridge.
To this end, Proton-API-Bridge should be written to always assume it is
using github.com/ProtonMail/proton-go-api and leverage the `replace`
operation in go.mod in order to leverage our "friendly fork" of
proton-go-api. I.e. the long-term goal should be to _not_ maintain a
fork of proton-go-api.
> Anything else would be uncivilized.
2025-01-16 05:38:50 -08:00
Chun-Hung Tseng
08abccbeb3
Merge pull request #28 from lawmurray/master
...
Save an API request by using XAttr in the Link object
2024-11-19 21:03:33 +01:00
Chun-Hung Tseng
2172bb8805
Merge pull request #27 from tomekit/master
...
Address SHA1 case issue
2024-09-22 18:12:12 +02:00
Lawrence Murray
a6d0537d37
Make use of XAttr included in the Link object, rather than getting it with an extra API request.
2024-09-18 21:15:49 +07:00
Tomasz Raganowicz
3bdb034e9c
Address SHA1 case issue. https://github.com/henrybear327/Proton-API-Bridge/issues/21 and https://github.com/rclone/rclone/issues/7345#issuecomment-1821463100
2024-05-05 21:12:02 +02:00
Chun-Hung Tseng
cd25c0345b
Create FUNDING.yml
2023-09-22 17:12:07 +08:00
Chun-Hung Tseng
f6671447d0
Merge pull request #19 from henrybear327/feat/add_version
...
Add library version string
v1.0.0
2023-09-10 19:53:13 +02:00
Chun-Hung Tseng
5a40ccff1d
Add lib version string
2023-09-10 10:06:22 +00:00
Chun-Hung Tseng
5bfa15b567
Merge pull request #13 from henrybear327/protondrive/fix_signature_verification_bug
...
Select the address key according to the email address recorded at Link
2023-09-08 14:59:33 +08:00
Chun-Hung Tseng
bc9415009f
Select the address key according to the email address recorded at Link
2023-09-08 08:51:06 +02:00
Chun-Hung Tseng
762502d1fb
Merge pull request #15 from henrybear327/feat/improve_error_messages
...
Improve 2FA and replacing existing draft error messages
2023-09-06 09:33:17 +08:00
Chun-Hung Tseng
264c05c839
Improve 2FA and replacing existing draft error messages
2023-09-06 03:32:30 +02:00
Chun-Hung Tseng
cd239be14b
Merge pull request #14 from henrybear327/feat/two_password_mode
...
Add two-password mode
2023-09-06 08:55:36 +08:00
Chun-Hung Tseng
d5bf0418ca
Add two-password mode
2023-09-06 02:54:59 +02:00
Chun-Hung Tseng
631e846856
Merge pull request #12 from henrybear327/fix/deref_nil_ptr
...
Fix de-referencing nil pointer bug in GetActiveRevisionAttrs
2023-09-06 05:32:40 +08:00
Chun-Hung Tseng
1261c687b6
Fix de-referencing nil pointer bug in GetActiveRevisionAttrs
2023-09-05 23:14:20 +02:00
Chun-Hung Tseng
2fa36bc924
Refactor the code
...
Un-expose the unnecessary methods
Update go mod
2023-08-02 17:30:57 +02:00
Chun-Hung Tseng
611ec433f8
Fix a bug for the users in 32-bit system that the User object won't be able to be parsed due to overflow as int is default to int32
2023-07-25 22:42:19 +02:00
Chun-Hung Tseng
aeabe60e01
Fix signing of SetContentKeyPacketAndSignature
2023-07-23 23:35:41 +02:00
Chun-Hung Tseng
e2f5412124
Fix RevisionXAttrCommon digests related logic
2023-07-23 08:25:17 +02:00
Chun-Hung Tseng
a33d554f70
Add mailing sending feature for Anson Chen :)
2023-07-18 23:27:23 +02:00
Chun-Hung Tseng
8d7db1ea7b
Implememt the file download seek support
...
Update to support more fields in RevisionXAttrCommon
2023-07-18 11:24:44 +02:00
Chun-Hung Tseng
733b3e5b6e
Reduce DOWNLOAD_BATCH_BLOCK_SIZE to 1 and explain the reason
2023-07-17 11:23:28 +02:00
Chun-Hung Tseng
0c3101417a
Fix integration test
2023-07-16 10:16:35 +02:00
Chun-Hung Tseng
acbb0db3d0
Parallel upload block with concurrency control
2023-07-16 09:28:15 +02:00
Chun-Hung Tseng
78268b452e
Parallel upload block (concurrency control in the next commit)
2023-07-16 06:42:26 +02:00
Chun-Hung Tseng
cedf21b695
Replace disableCaching with enableCaching
2023-07-16 06:06:16 +02:00
Chun-Hung Tseng
ad20ba8bd0
Refactor file download to return file ReadCloser, and also support
...
on-demand block decryption
2023-07-15 21:19:03 +02:00
Chun-Hung Tseng
d7a4545314
Implemented complete caching mechanism
2023-07-15 21:19:03 +02:00
Chun-Hung Tseng
34b79bffa4
Remove extra getLink call during file upload
2023-07-15 21:19:03 +02:00
Chun-Hung Tseng
4ae992cf98
Fix a bug in file upload, where the reader doesn't fully read till buffer full
2023-07-15 21:19:03 +02:00
Chun-Hung Tseng
db549cdb89
Add GetActiveRevisionAttrs
2023-07-15 21:19:03 +02:00
Chun-Hung Tseng
5719017050
Update the GetHashKey code
2023-07-15 21:19:02 +02:00
Chun-Hung Tseng
5e56932c15
Use CheckAvailableHashes for SearchByNameInActiveFolderByID
2023-07-15 21:19:02 +02:00
Chun-Hung Tseng
4924a926d6
Add insert kr to cache
2023-07-15 21:19:02 +02:00
Chun-Hung Tseng
d293198b51
Add insert link to cache
...
Add DisableLinkCaching config
2023-07-15 21:19:02 +02:00
Chun-Hung Tseng
e330ee8276
Refactor GetLink in preparation for caching
2023-07-15 21:19:02 +02:00
Chun-Hung Tseng
01d4a4ab08
Add authHandler and deAuthHandler to the ProtonDrive init function
2023-07-15 21:19:02 +02:00
Chun-Hung Tseng
db0f81b687
Update README
2023-07-15 21:19:02 +02:00
Chun-Hung Tseng
916abed02a
Fix file upload EOF bug
2023-07-15 21:19:02 +02:00
Chun-Hung Tseng
af49c9f19b
Rewritten file upload logic (esp. on failed upload handling and big-file upload)
2023-07-15 21:18:58 +02:00
Chun-Hung Tseng
e294306c44
Fix default MIME type bug
2023-07-12 13:14:53 +02:00
Chun-Hung Tseng
c46d7d26da
Return access credentials if it's a successful new login
2023-07-07 22:49:52 +02:00
Chun-Hung Tseng
d284d50b61
Refactor file upload
...
Use filename to detect MIME type
Update go modules
2023-07-06 14:56:07 +02:00
Chun-Hung Tseng
b675a36304
Add a new configuration option: UserAgent
2023-07-01 10:08:07 +02:00
Chun-Hung Tseng
a4e81165f9
Fix mainshareKR bug
2023-06-30 14:14:26 +02:00
Chun-Hung Tseng
208b70cfd4
Improve/refactor file upload - when the file draft exists
...
Add config option - ReplaceExistingDraft
Refactor and add integration tests
Update README and add notes for MIME parsing and progress bug
Improve returned errors
2023-06-30 14:02:15 +02:00
Chun-Hung Tseng
fef42081b3
Make AppVersion a configuration option
...
Refactor out NewClientWithRefresh in the login function
2023-06-29 22:23:52 +02:00