github.com/status-im/status-go@v1.1.0/protocol/protobuf/profile_showcase.proto (about)

     1  syntax = "proto3";
     2  
     3  option go_package = "./;protobuf";
     4  package protobuf;
     5  
     6  // Profile showcase for a contact
     7  
     8  message ProfileShowcaseCommunity {
     9    string community_id = 1;
    10    uint32 order = 2;
    11    bytes grant = 3;
    12  }
    13  
    14  message ProfileShowcaseAccount {
    15    string address = 1;
    16    string name = 2;
    17    string color_id = 3;
    18    string emoji = 4;
    19    uint32 order = 5;
    20  }
    21  
    22  message ProfileShowcaseCollectible {
    23    string uid = 1 [deprecated = true];
    24    uint32 order = 2;
    25    string contract_address = 3;
    26    string community_id = 4 [deprecated = true];
    27    uint64 chain_id = 5;
    28    string token_id = 6;
    29    string account_address = 7 [deprecated = true];
    30  }
    31  
    32  message ProfileShowcaseVerifiedToken {
    33    string symbol = 1;
    34    uint32 order = 2;
    35  }
    36  
    37  message ProfileShowcaseUnverifiedToken {
    38    string contract_address = 1;
    39    uint32 order = 2;
    40    uint64 chain_id = 3;
    41    string community_id = 4 [deprecated = true];
    42  }
    43  
    44  message ProfileShowcaseSocialLink {
    45    string url = 1;
    46    uint32 order = 2;
    47    string text = 3;
    48  }
    49  
    50  message ProfileShowcaseEntries {
    51    repeated ProfileShowcaseCommunity communities = 1;
    52    repeated ProfileShowcaseAccount accounts = 2;
    53    repeated ProfileShowcaseCollectible collectibles = 3;
    54    repeated ProfileShowcaseVerifiedToken verified_tokens = 4;
    55    repeated ProfileShowcaseUnverifiedToken unverified_tokens = 5;
    56    repeated ProfileShowcaseSocialLink social_links = 6;
    57  }
    58  
    59  message ProfileShowcaseEntriesEncrypted {
    60    bytes encrypted_entries = 1;
    61    repeated bytes encryption_keys = 2;
    62  }
    63  
    64  message ProfileShowcase {
    65    ProfileShowcaseEntries for_everyone = 1;
    66    ProfileShowcaseEntriesEncrypted for_contacts = 2;
    67    ProfileShowcaseEntriesEncrypted for_id_verified_contacts = 3;
    68  }
    69  
    70  // Profile showcase preferences
    71  
    72  enum ProfileShowcaseVisibility {
    73    PROFILE_SHOWCASE_VISIBILITY_NO_ONE = 0;
    74    PROFILE_SHOWCASE_VISIBILITY_IDVERIFIED_CONTACTS = 1;
    75    PROFILE_SHOWCASE_VISIBILITY_CONTACTS = 2;
    76    PROFILE_SHOWCASE_VISIBILITY_EVERYONE = 3;
    77  }
    78  
    79  message ProfileShowcaseCommunityPreference {
    80    string community_id = 1;
    81    ProfileShowcaseVisibility showcase_visibility = 2;
    82    uint32 order = 3;
    83  }
    84  
    85  message ProfileShowcaseAccountPreference {
    86    string address = 1;
    87    string name = 2 [deprecated = true];
    88    string color_id = 3 [deprecated = true];
    89    string emoji = 4 [deprecated = true];
    90    ProfileShowcaseVisibility showcase_visibility = 5;
    91    uint32 order = 6;
    92  }
    93  
    94  message ProfileShowcaseCollectiblePreference {
    95    string contract_address = 1;
    96    uint64 chain_id = 2;
    97    string token_id = 3;
    98    string community_id = 4 [deprecated = true];
    99    string account_address = 5  [deprecated = true];
   100    ProfileShowcaseVisibility showcase_visibility = 6;
   101    uint32 order = 7;
   102  }
   103  
   104  message ProfileShowcaseVerifiedTokenPreference {
   105    string symbol = 1;
   106    ProfileShowcaseVisibility showcase_visibility = 2;
   107    uint32 order = 3;
   108  }
   109  
   110  message ProfileShowcaseUnverifiedTokenPreference {
   111    string contract_address = 1;
   112    uint64 chain_id = 2;
   113    string community_id = 3 [deprecated = true];
   114    ProfileShowcaseVisibility showcase_visibility = 4;
   115    uint32 order = 5;
   116  }
   117  
   118  message ProfileShowcaseSocialLinkPreference {
   119    string url = 1;
   120    string text = 2;
   121    uint32 order = 3;
   122    ProfileShowcaseVisibility showcase_visibility = 4;
   123  }
   124  
   125  message SyncProfileShowcasePreferences {
   126    uint64 clock = 1;
   127    repeated ProfileShowcaseCommunityPreference communities = 2;
   128    repeated ProfileShowcaseAccountPreference accounts = 3;
   129    repeated ProfileShowcaseCollectiblePreference collectibles = 4;
   130    repeated ProfileShowcaseVerifiedTokenPreference verified_tokens = 5;
   131    repeated ProfileShowcaseUnverifiedTokenPreference unverified_tokens = 6;
   132    repeated ProfileShowcaseSocialLinkPreference social_links = 7;
   133  }