55
66import type { BinaryReadOptions , FieldList , JsonReadOptions , JsonValue , PartialMessage , PlainMessage } from "@bufbuild/protobuf" ;
77import { Message , proto3 } from "@bufbuild/protobuf" ;
8- import { DataContainerId , IntentId , Locale , PhoneNumber , Signature , SolanaAccountId , UserId } from "../../common/v1/model_pb" ;
8+ import { ChatId , DataContainerId , IntentId , Locale , PhoneNumber , Signature , SolanaAccountId , UserId } from "../../common/v1/model_pb" ;
99import { PhoneLinkingToken } from "../../phone/v1/phone_verification_service_pb" ;
1010import { AirdropType , ExchangeData } from "../../transaction/v2/transaction_service_pb" ;
1111
@@ -1251,6 +1251,17 @@ export class TwitterUser extends Message<TwitterUser> {
12511251 */
12521252 isFriend = false ;
12531253
1254+ /**
1255+ * The ChatId used to communicate with this friend.
1256+ *
1257+ * This will always be set for authenticated users.
1258+ * If is_friend=false, this ChatId should be used when crafting
1259+ * the intent.
1260+ *
1261+ * @generated from field: code.common.v1.ChatId friend_chat_id = 11;
1262+ */
1263+ friendChatId ?: ChatId ;
1264+
12541265 constructor ( data ?: PartialMessage < TwitterUser > ) {
12551266 super ( ) ;
12561267 proto3 . util . initPartial ( data , this ) ;
@@ -1267,6 +1278,7 @@ export class TwitterUser extends Message<TwitterUser> {
12671278 { no : 6 , name : "follower_count" , kind : "scalar" , T : 13 /* ScalarType.UINT32 */ } ,
12681279 { no : 7 , name : "friendship_cost" , kind : "message" , T : ExchangeData } ,
12691280 { no : 10 , name : "is_friend" , kind : "scalar" , T : 8 /* ScalarType.BOOL */ } ,
1281+ { no : 11 , name : "friend_chat_id" , kind : "message" , T : ChatId } ,
12701282 ] ) ;
12711283
12721284 static fromBinary ( bytes : Uint8Array , options ?: Partial < BinaryReadOptions > ) : TwitterUser {
0 commit comments