16 Commits

Author SHA1 Message Date
Chun-Hung Tseng
4ab06a053b Update go-proton-api version 2025-01-27 22:11:55 +00: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
bc9415009f Select the address key according to the email address recorded at Link 2023-09-08 08:51:06 +02: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
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
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
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
d284d50b61 Refactor file upload
Use filename to detect MIME type

Update go modules
2023-07-06 14:56: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
257ea3c1fe Initial commit 2023-06-29 00:05:18 +02:00