14 Commits

Author SHA1 Message Date
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
bc9415009f Select the address key according to the email address recorded at Link 2023-09-08 08:51:06 +02:00
Chun-Hung Tseng
264c05c839 Improve 2FA and replacing existing draft error messages 2023-09-06 03:32:30 +02:00
Chun-Hung Tseng
d5bf0418ca Add two-password mode 2023-09-06 02:54:59 +02:00
Chun-Hung Tseng
acbb0db3d0 Parallel upload block with concurrency control 2023-07-16 09:28:15 +02:00
Chun-Hung Tseng
cedf21b695 Replace disableCaching with enableCaching 2023-07-16 06:06:16 +02:00
Chun-Hung Tseng
34b79bffa4 Remove extra getLink call during file upload 2023-07-15 21:19:03 +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
01d4a4ab08 Add authHandler and deAuthHandler to the ProtonDrive init function 2023-07-15 21:19:02 +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
b675a36304 Add a new configuration option: UserAgent 2023-07-01 10:08:07 +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
Chun-Hung Tseng
257ea3c1fe Initial commit 2023-06-29 00:05:18 +02:00