syntax = "proto3"; package wechaty.puppet; option go_package="github.com/wechaty/go-grpc/wechaty/puppet"; option java_package="io.github.wechaty.grpc.puppet"; option csharp_namespace = "github.wechaty.grpc.puppet"; import "google/protobuf/wrappers.proto"; enum ContactGender { CONTACT_GENDER_UNSPECIFIED = 0; CONTACT_GENDER_MALE = 1; CONTACT_GENDER_FEMALE = 2; } enum ContactType { CONTACT_TYPE_UNSPECIFIED = 0; CONTACT_TYPE_PERSONAL = 1; CONTACT_TYPE_OFFICIAL = 2; CONTACT_TYPE_CORPORATION = 3; } message ContactListRequest {} message ContactListResponse { repeated string ids = 1; } message ContactPayloadRequest { string id = 1; } message ContactPayloadResponse { string id = 1; ContactGender gender = 2; ContactType type = 3; string name = 4; string avatar = 5; string address = 6; string alias = 7; string city = 8; bool friend = 9; string province = 10; string signature = 11; bool star = 12; string weixin = 13; string corporation = 14; string title = 15; string description = 16; bool coworker = 17; repeated string phone = 18; } message ContactSelfQRCodeRequest {} message ContactSelfQRCodeResponse { string qrcode = 1; } message ContactSelfNameRequest { string name = 1; } message ContactSelfNameResponse {} message ContactSelfSignatureRequest { string signature = 1; } message ContactSelfSignatureResponse {} message ContactAliasRequest { string id = 1; // nullable google.protobuf.StringValue alias = 2; } message ContactAliasResponse { google.protobuf.StringValue alias = 1; } message ContactAvatarRequest { string id = 1; // nullable /** * Huan(202011) TODO: * 1. rename to file_box * 2. replace it by FileBoxChunk with stream support */ google.protobuf.StringValue filebox = 2; } message ContactAvatarResponse { /** * Huan(202011) TODO: * 1. rename to file_box * 2. replace it by FileBoxChunk with stream support */ google.protobuf.StringValue filebox = 1; } message ContactPhoneRequest { string contact_id = 1; repeated string phone_list = 2; } message ContactPhoneResponse { repeated string phone_list = 2; } message ContactCorporationRemarkRequest { string contact_id = 1; google.protobuf.StringValue corporation_remark = 2; } message ContactCorporationRemarkResponse {} message ContactDescriptionRequest { string contact_id = 1; google.protobuf.StringValue description = 2; } message ContactDescriptionResponse {}