2023-11-09 18:59:01 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
option go_package = "./;protobuf";
|
|
|
|
package protobuf;
|
|
|
|
|
2024-02-26 13:53:40 +00:00
|
|
|
// Profile showcase for a contact
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
message ProfileShowcaseCommunity {
|
|
|
|
string community_id = 1;
|
|
|
|
uint32 order = 2;
|
2024-02-15 19:13:12 +00:00
|
|
|
bytes grant = 3;
|
2023-11-09 18:59:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ProfileShowcaseAccount {
|
|
|
|
string address = 1;
|
|
|
|
string name = 2;
|
|
|
|
string color_id = 3;
|
|
|
|
string emoji = 4;
|
|
|
|
uint32 order = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ProfileShowcaseCollectible {
|
2024-01-25 16:48:27 +00:00
|
|
|
string uid = 1 [deprecated = true];
|
2023-11-09 18:59:01 +00:00
|
|
|
uint32 order = 2;
|
2024-01-25 16:48:27 +00:00
|
|
|
string contract_address = 3;
|
2024-03-08 16:20:23 +00:00
|
|
|
string community_id = 4 [deprecated = true];
|
2024-01-25 16:48:27 +00:00
|
|
|
uint64 chain_id = 5;
|
|
|
|
string token_id = 6;
|
2024-03-08 16:20:23 +00:00
|
|
|
string account_address = 7 [deprecated = true];
|
2023-11-09 18:59:01 +00:00
|
|
|
}
|
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
message ProfileShowcaseVerifiedToken {
|
2023-11-09 18:59:01 +00:00
|
|
|
string symbol = 1;
|
|
|
|
uint32 order = 2;
|
|
|
|
}
|
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
message ProfileShowcaseUnverifiedToken {
|
|
|
|
string contract_address = 1;
|
|
|
|
uint32 order = 2;
|
|
|
|
uint64 chain_id = 3;
|
2024-03-08 16:20:23 +00:00
|
|
|
string community_id = 4 [deprecated = true];
|
2024-01-25 16:48:27 +00:00
|
|
|
}
|
|
|
|
|
2024-02-26 13:53:40 +00:00
|
|
|
message ProfileShowcaseSocialLink {
|
|
|
|
string url = 1;
|
|
|
|
uint32 order = 2;
|
|
|
|
string text = 3;
|
|
|
|
}
|
|
|
|
|
2023-11-09 18:59:01 +00:00
|
|
|
message ProfileShowcaseEntries {
|
|
|
|
repeated ProfileShowcaseCommunity communities = 1;
|
|
|
|
repeated ProfileShowcaseAccount accounts = 2;
|
|
|
|
repeated ProfileShowcaseCollectible collectibles = 3;
|
2024-02-26 13:53:40 +00:00
|
|
|
repeated ProfileShowcaseVerifiedToken verified_tokens = 4;
|
|
|
|
repeated ProfileShowcaseUnverifiedToken unverified_tokens = 5;
|
|
|
|
repeated ProfileShowcaseSocialLink social_links = 6;
|
2023-11-09 18:59:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ProfileShowcaseEntriesEncrypted {
|
|
|
|
bytes encrypted_entries = 1;
|
|
|
|
repeated bytes encryption_keys = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ProfileShowcase {
|
|
|
|
ProfileShowcaseEntries for_everyone = 1;
|
|
|
|
ProfileShowcaseEntriesEncrypted for_contacts = 2;
|
|
|
|
ProfileShowcaseEntriesEncrypted for_id_verified_contacts = 3;
|
|
|
|
}
|
2024-02-17 18:07:20 +00:00
|
|
|
|
2024-02-26 13:53:40 +00:00
|
|
|
// Profile showcase preferences
|
2024-02-17 18:07:20 +00:00
|
|
|
|
|
|
|
enum ProfileShowcaseVisibility {
|
|
|
|
PROFILE_SHOWCASE_VISIBILITY_NO_ONE = 0;
|
|
|
|
PROFILE_SHOWCASE_VISIBILITY_IDVERIFIED_CONTACTS = 1;
|
|
|
|
PROFILE_SHOWCASE_VISIBILITY_CONTACTS = 2;
|
|
|
|
PROFILE_SHOWCASE_VISIBILITY_EVERYONE = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ProfileShowcaseCommunityPreference {
|
|
|
|
string community_id = 1;
|
|
|
|
ProfileShowcaseVisibility showcase_visibility = 2;
|
2024-02-26 13:53:40 +00:00
|
|
|
uint32 order = 3;
|
2024-02-17 18:07:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ProfileShowcaseAccountPreference {
|
|
|
|
string address = 1;
|
2024-03-08 16:20:23 +00:00
|
|
|
string name = 2 [deprecated = true];
|
|
|
|
string color_id = 3 [deprecated = true];
|
|
|
|
string emoji = 4 [deprecated = true];
|
2024-02-17 18:07:20 +00:00
|
|
|
ProfileShowcaseVisibility showcase_visibility = 5;
|
2024-02-26 13:53:40 +00:00
|
|
|
uint32 order = 6;
|
2024-02-17 18:07:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ProfileShowcaseCollectiblePreference {
|
|
|
|
string contract_address = 1;
|
|
|
|
uint64 chain_id = 2;
|
|
|
|
string token_id = 3;
|
2024-03-08 16:20:23 +00:00
|
|
|
string community_id = 4 [deprecated = true];
|
|
|
|
string account_address = 5 [deprecated = true];
|
2024-02-17 18:07:20 +00:00
|
|
|
ProfileShowcaseVisibility showcase_visibility = 6;
|
2024-02-26 13:53:40 +00:00
|
|
|
uint32 order = 7;
|
2024-02-17 18:07:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ProfileShowcaseVerifiedTokenPreference {
|
|
|
|
string symbol = 1;
|
|
|
|
ProfileShowcaseVisibility showcase_visibility = 2;
|
2024-02-26 13:53:40 +00:00
|
|
|
uint32 order = 3;
|
2024-02-17 18:07:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ProfileShowcaseUnverifiedTokenPreference {
|
|
|
|
string contract_address = 1;
|
|
|
|
uint64 chain_id = 2;
|
2024-03-08 16:20:23 +00:00
|
|
|
string community_id = 3 [deprecated = true];
|
2024-02-17 18:07:20 +00:00
|
|
|
ProfileShowcaseVisibility showcase_visibility = 4;
|
2024-02-26 13:53:40 +00:00
|
|
|
uint32 order = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ProfileShowcaseSocialLinkPreference {
|
|
|
|
string url = 1;
|
|
|
|
string text = 2;
|
|
|
|
uint32 order = 3;
|
|
|
|
ProfileShowcaseVisibility showcase_visibility = 4;
|
2024-02-17 18:07:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message SyncProfileShowcasePreferences {
|
|
|
|
uint64 clock = 1;
|
|
|
|
repeated ProfileShowcaseCommunityPreference communities = 2;
|
|
|
|
repeated ProfileShowcaseAccountPreference accounts = 3;
|
|
|
|
repeated ProfileShowcaseCollectiblePreference collectibles = 4;
|
|
|
|
repeated ProfileShowcaseVerifiedTokenPreference verified_tokens = 5;
|
|
|
|
repeated ProfileShowcaseUnverifiedTokenPreference unverified_tokens = 6;
|
2024-02-26 13:53:40 +00:00
|
|
|
repeated ProfileShowcaseSocialLinkPreference social_links = 7;
|
2024-02-17 18:07:20 +00:00
|
|
|
}
|