forked from wechaty/grpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroom.proto
149 lines (125 loc) · 4.14 KB
/
room.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
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";
import "google/protobuf/timestamp.proto";
import "wechaty/puppet/util.proto";
message RoomListRequest {}
message RoomListResponse {
repeated string ids = 1;
}
message RoomPayloadRequest {
string id = 1;
}
message RoomPayloadResponse {
string id = 1;
string topic = 2; // 群名称
string avatar = 3; // 群头像
string owner_id = 4; // 群主id
repeated string admin_ids = 5; // 群管理员id列表
repeated string member_ids = 6; // 群成员id列表
string handle = 7; // IM内部id,企微中为群的chat_id
string additional_info = 8;
string room_remark = 9;
bool external = 10;
google.protobuf.Timestamp create_time = 11;
}
message RoomAddRequest {
string id = 1;
string contact_id = 2; // 被邀请联系人id
bool invite_only = 3; // 不明确,目前没见到使用这个的地方
}
message RoomAddResponse {}
message RoomAvatarRequest {
string id = 1;
}
message RoomAvatarResponse {
string file_box = 1;
}
message RoomCreateRequest {
repeated string contact_ids = 1; // 初始群成员id
string topic = 2; // 群名称
}
message RoomCreateResponse {
string id = 1;
}
message RoomDelRequest {
string id = 1;
string contact_id = 2 [deprecated = true]; // Deprecated, will be removed after bot updated
repeated string contact_ids = 3;
}
message RoomDelResponse {}
message RoomQuitRequest {
string id = 1;
}
message RoomQuitResponse {}
message RoomTopicRequest {
string id = 1;
google.protobuf.StringValue topic_string_value_deprecated = 2 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
optional string topic = 3;
}
message RoomTopicResponse {
google.protobuf.StringValue topic_string_value_deprecated = 1 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
string topic = 2;
}
message RoomQRCodeRequest {
string id = 1;
}
message RoomQRCodeResponse {
string qrcode = 1;
}
message RoomParseDynamicQRCodeRequest {
string url = 1; // 群活码链接
}
message RoomParseDynamicQRCodeResponse {
string qrcode = 1; // 二维码url
string qrcode_image_url = 2; // 二维码图片url
string room_name = 3; // 群名称
}
message RoomAnnounceRequest { // 群公告
string id = 1;
google.protobuf.StringValue text_string_value_deprecated = 2 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
optional string text = 3;
}
message RoomAnnounceResponse {
google.protobuf.StringValue text_string_value_deprecated = 1 [deprecated = true]; // DEPRECATED, will be removed after Dec 31, 2022
string text = 2;
}
message RoomRemarkRequest {
string id = 1;
string remark = 2;
}
message RoomRemarkResponse {}
message RoomOwnerTransferRequest {
string id = 1;
string contact_id = 2;
}
message RoomOwnerTransferResponse {}
message RoomPermissionRequest {
string id = 1;
OptionalBoolean invite_confirm = 2;
OptionalBoolean admin_only_manage = 3;
OptionalBoolean admin_only_at_all = 4;
OptionalBoolean mute_all = 5;
OptionalBoolean forbid_room_topic_edit = 6;
OptionalBoolean disable_member_mutual_add = 7;
}
message RoomPermissionResponse {
OptionalBoolean invite_confirm = 1;
OptionalBoolean admin_only_manage = 2;
OptionalBoolean admin_only_at_all = 3;
OptionalBoolean mute_all = 4;
OptionalBoolean forbid_room_topic_edit = 5;
OptionalBoolean disable_member_mutual_add = 6;
}
message RoomAdminsRequest {
string id = 1;
repeated string contact_ids = 2;
}
message RoomAdminsResponse {}
message RoomDismissRequest {
string id = 1;
}
message RoomDismissResponse {}