feat(protocol): read current group admin settings
Group detail and ext-info can now return the join option, search flags, invite/permission/history bits, and robot-add switch so setters have a matching read path.
This commit is contained in:
13 files changed
+284
-2
No files matched your search
@@ -7,7 +7,7 @@
|
||||
// encoder emits. Presence of tag 29/30 IS the write signal, including 0.
|
||||
// Response: {1:groupCode, 2:result}.
|
||||
|
||||
import type { pb, pb_optional, int_32, uint_32 } from '@snowluma/proton';
|
||||
import type { pb, pb_optional, pb_repeated, int_32, uint_32, uint_64 } from '@snowluma/proton';
|
||||
|
||||
export interface OidbGroupExtBody {
|
||||
inviteRobotMemberSwitch?: pb_optional<29, uint_32>;
|
||||
@@ -25,3 +25,24 @@ export interface OidbModifyGroupExtResp {
|
||||
groupCode?: pb<1, uint_32>;
|
||||
result?: pb<2, int_32>;
|
||||
}
|
||||
|
||||
// OidbSvcTrpcTcp.0xef0_1 / getGroupExt0xEF0Info.
|
||||
// DoFetchGroupExtList request: {1:groupCodes, 2:GroupExtFilter}.
|
||||
// fillGroupExt0xEF0Filter writes filter tags 29/30 when those bits are set.
|
||||
// Response: repeated item{1:groupCode, 2:resultCode, 3:EXTInfo}.
|
||||
export interface OidbGroupExtFilter {
|
||||
inviteRobotMemberSwitch?: pb<29, uint_32>;
|
||||
inviteRobotMemberExamine?: pb<30, uint_32>;
|
||||
}
|
||||
export interface OidbGetGroupExtReq {
|
||||
groupCodes?: pb_repeated<1, uint_64>;
|
||||
filter?: pb<2, OidbGroupExtFilter>;
|
||||
}
|
||||
export interface OidbGetGroupExtItem {
|
||||
groupCode?: pb<1, uint_64>;
|
||||
resultCode?: pb<2, uint_32>;
|
||||
ext?: pb<3, OidbGroupExtBody>;
|
||||
}
|
||||
export interface OidbGetGroupExtResp {
|
||||
items?: pb_repeated<1, OidbGetGroupExtItem>;
|
||||
}
|
||||
Reference in new issue
Block a user