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:
DrSmoothl committed 2026-08-17 19:06:03 +08:00
1 parent aec0c781b3
commit cfe61abce6
13 files changed
+284 -2

No files matched your search

@@ -346,6 +346,7 @@ export interface OidbGroupDetailFlags {
createTime?: pb<2, bool>;
maxMemberCount?: pb<5, bool>;
memberCount?: pb<6, bool>;
addType?: pb<7, bool>;
level?: pb<10, bool>;
name?: pb<15, string>;
noticePreview?: pb<16, string>;
@@ -362,6 +363,8 @@ export interface OidbGroupDetailFlags {
privilegeFlag?: pb<99, bool>;
/** Current complete groupFlagExt4 bitfield; needed for masked mutations. */
groupFlagExt4?: pb<101, bool>;
noFingerOpen?: pb<82, bool>;
noCodeFingerOpen?: pb<83, bool>;
}
export interface OidbGroupDetailConfig {
uin?: pb<1, uint_64>;
@@ -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>;
}
+7
View File
@@ -110,6 +110,9 @@ export interface OidbSvcTrpcTcp0x88D_0Results {
createTime?: pb<2, uint_64>;
maxMemberCount?: pb<5, uint_64>;
memberCount?: pb<6, uint_64>;
// DecodeSingleGroupDetailInfoByBaseFilter: tag 7 → 60205 addOption.
// SET uses a different message domain (0x89A settings tag 16).
addType?: pb<7, uint_32>;
level?: pb<10, uint_64>;
name?: pb<15, string>;
noticePreview?: pb<16, string>;
@@ -127,6 +130,10 @@ export interface OidbSvcTrpcTcp0x88D_0Results {
privilegeFlag?: pb<99, uint_32>;
/** Complete groupFlagExt4 bitfield (requested with detail flag tag 101). */
groupFlagExt4?: pb<101, uint_32>;
// DecodeSingleGroupDetailInfoByBaseFilter: tag 82 → 60282, tag 83 → 60283.
// SET counterparts are 0x89A settings 35/36. 0 = that search mode is open.
noFingerOpen?: pb<82, uint_32>;
noCodeFingerOpen?: pb<83, uint_32>;
}
export interface OidbSvcTrpcTcp0x88D_0ResponseGroupInfo {
uin?: pb<1, uint_64>;