feat(onebot): expose public contact profiles

Refs #615
This commit is contained in:
DrSmoothl committed 2026-11-02 08:06:27 +08:00
1 parent 2b63f375fc
commit 45c3a6841a
34 files changed
+2427 -211

No files matched your search

@@ -277,6 +277,26 @@ export interface OidbUserInfoResponseBody {
export interface OidbUserInfoResponse {
body?: pb<1, OidbUserInfoResponseBody>;
}
// Profile property 107 contains separate opened and closed privilege lists.
// The two icon URLs are independent fields, not a oneof.
export interface OidbProfilePrivilege {
type?: pb<1, int_32>;
level?: pb<4, int_32>;
flag?: pb<5, int_32>;
iconUrl?: pb<6, bytes>;
deluxeIconUrl?: pb<7, bytes>;
jumpUrl?: pb<8, bytes>;
isBig?: pb<9, int_32>;
}
export interface OidbProfilePrivilegeLists {
jumpUrl?: pb<2, bytes>;
open?: pb_repeated<3, OidbProfilePrivilege>;
closed?: pb_repeated<4, OidbProfilePrivilege>;
}
export interface OidbProfilePrivileges {
lists?: pb<3, OidbProfilePrivilegeLists>;
}
export interface AvatarInfo {
url?: pb<5, string>;
}
+7 -1
View File
@@ -32,10 +32,16 @@ export interface OidbEmpty {}
// Oidb.0xFD4_1 Friend list
export interface OidbFriendProperty {
code?: pb<1, uint_32>;
value?: pb<2, string>;
value?: pb<2, bytes>;
}
export interface OidbFriendNumberProperty {
key?: pb<1, uint_32>;
value?: pb<2, int_32>;
}
export interface OidbFriendLayer1 {
numberProperties?: pb_repeated<1, OidbFriendNumberProperty>;
properties?: pb_repeated<2, OidbFriendProperty>;
}