mirror of
https://github.com/status-im/status-go.git
synced 2025-01-10 06:36:32 +00:00
511d6bfc54
* feat(share-links): Add protobuf and encode/decode url data methods * feat(new-links-format): Adds generators for new links format * feat: add parsing for new links format * feat: add messenger-level pubkey serialization and tests * feat: fix and test CreateCommunityURLWithChatKey * feat: impl and test parseCommunityURLWithChatKey * feat: fix and test CreateCommunityURLWithData * feat: impl and test parseCommunityURLWithData (not working) * feat: UrlDataResponse as response share urls api * feat: impl& tested ShareCommunityChannelURLWithChatKey * feat: impl & tested ParseCommunityChannelURLWithChatKey * fix: bring urls to new format * feat: add regexp for community channel urls * feat: impl & test contact urls with chatKey, Ens and data * fix: encodeDataURL/encodeDataURL patch from Samyoul * fix: fix unmarshalling protobufs * fix: fix minor issues, temporary comment TestParseUserURLWithENS * fix: allow url to contain extra `#` in the signature * fix: check signatures with SigToPub * chore: lint fixes * fix: encode the signature * feat: Check provided channelID is Uuid * fix(share-community-url): Remove if community encrypted scope * fix: review fixes * fix: use proto.Unmarshal instead of json.Marshal * feat(share-urls): Adds TagsIndices to community data * feat: support tag indices to community url data --------- Co-authored-by: Boris Melnik <borismelnik@status.im>
39 lines
736 B
Protocol Buffer
39 lines
736 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
option go_package = "./;protobuf";
|
|
package protobuf;
|
|
|
|
message Community {
|
|
string display_name = 1;
|
|
string description = 2;
|
|
uint32 members_count = 3;
|
|
string color = 4;
|
|
repeated uint32 tag_indices = 5;
|
|
}
|
|
|
|
message Channel {
|
|
string display_name = 1;
|
|
string description = 2;
|
|
string emoji = 3;
|
|
string color = 4;
|
|
Community community = 5;
|
|
string uuid = 6;
|
|
}
|
|
|
|
message User {
|
|
string display_name = 1;
|
|
string description = 2;
|
|
string color = 3;
|
|
}
|
|
|
|
message URLData {
|
|
// Community, Channel, or User
|
|
bytes content = 1;
|
|
}
|
|
|
|
// Field on CommunityDescription, CommunityChat and ContactCodeAdvertisement
|
|
message URLParams {
|
|
string encoded_url_data = 1;
|
|
// Signature of encoded URL data
|
|
string encoded_signature = 2;
|
|
} |