feat(onebot): add Qzone profile read and update actions (#586)
Add actions to read a space name and description and update the current account profile. Preserve omitted fields and support explicit empty values, with matching SDK types, MCP discovery, documentation, and tests.
This commit is contained in:
16 files changed
+862
-3
No files matched your search
@@ -179,6 +179,7 @@ export const SNOWLUMA_ACTIONS = [
|
||||
'get_qzone_feeds',
|
||||
'get_qzone_msg_detail',
|
||||
'get_qzone_msg_list',
|
||||
'get_qzone_profile',
|
||||
'get_rkey_server',
|
||||
'get_share_link',
|
||||
'like_qzone',
|
||||
@@ -203,6 +204,7 @@ export const SNOWLUMA_ACTIONS = [
|
||||
'set_group_robot_add_option',
|
||||
'set_qzone_ban',
|
||||
'set_qzone_msg_right',
|
||||
'set_qzone_profile',
|
||||
'share_group_ex',
|
||||
'share_peer',
|
||||
'test_download_stream',
|
||||
|
||||
@@ -97,6 +97,7 @@ import type {
|
||||
GetQunAlbumListParams,
|
||||
GetQzoneFeedsParams,
|
||||
GetQzoneMsgListParams,
|
||||
GetQzoneProfileParams,
|
||||
GroupAlbumCommentParams,
|
||||
GroupAlbumMediaLikeParams,
|
||||
GroupAlbumMediaParams,
|
||||
@@ -115,6 +116,7 @@ import type {
|
||||
SetGroupRobotAddOptionParams,
|
||||
SetQzoneBanParams,
|
||||
SetQzoneMsgRightParams,
|
||||
SetQzoneProfileParams,
|
||||
SharePeerParams,
|
||||
TestDownloadStreamParams,
|
||||
UploadFileStreamParams,
|
||||
@@ -184,6 +186,7 @@ import type {
|
||||
QzoneFeedsResult,
|
||||
QzoneMsgListResult,
|
||||
QzonePublishResult,
|
||||
QzoneProfileResult,
|
||||
QzoneUpdateRightResult,
|
||||
RkeyServerResult,
|
||||
SendFlashMsgResult,
|
||||
@@ -396,6 +399,7 @@ export interface SnowLumaActionMap {
|
||||
get_qun_album_list: { params: GetQunAlbumListParams; data: QunAlbumListResult };
|
||||
get_qzone_feeds: { params: GetQzoneFeedsParams; data: QzoneFeedsResult };
|
||||
get_qzone_msg_list: { params: GetQzoneMsgListParams; data: QzoneMsgListResult };
|
||||
get_qzone_profile: { params: GetQzoneProfileParams; data: QzoneProfileResult };
|
||||
get_rkey_server: { params: JsonObject; data: RkeyServerResult };
|
||||
get_share_link: { params: FilesetIdParams; data: string };
|
||||
like_qzone: { params: LikeQzoneParams; data: EmptyData };
|
||||
@@ -423,6 +427,7 @@ export interface SnowLumaActionMap {
|
||||
set_group_robot_add_option: { params: SetGroupRobotAddOptionParams; data: EmptyData };
|
||||
set_qzone_ban: { params: SetQzoneBanParams; data: EmptyData };
|
||||
set_qzone_msg_right: { params: SetQzoneMsgRightParams; data: QzoneUpdateRightResult };
|
||||
set_qzone_profile: { params: SetQzoneProfileParams; data: EmptyData };
|
||||
share_group_ex: { params: ActionGroupIdParams; data: string };
|
||||
share_peer: { params: SharePeerParams; data: ArkShareResult };
|
||||
test_download_stream: { params: TestDownloadStreamParams; data: TestDownloadStreamResult };
|
||||
|
||||
@@ -577,6 +577,18 @@ export interface GetQzoneFeedsParams extends JsonObject {
|
||||
cursor?: string;
|
||||
}
|
||||
|
||||
export interface GetQzoneProfileParams extends JsonObject {
|
||||
/** Defaults to the current account's space. */
|
||||
target_uin?: ActionNumberInput;
|
||||
}
|
||||
|
||||
/** Updates the current account's space; omitted fields are preserved. */
|
||||
export type SetQzoneProfileParams = JsonObject &
|
||||
(
|
||||
| { name: ActionStringInput; description?: ActionStringInput }
|
||||
| { name?: ActionStringInput; description: ActionStringInput }
|
||||
);
|
||||
|
||||
export interface QzoneMsgIdParams extends JsonObject {
|
||||
tid: ActionStringInput;
|
||||
}
|
||||
|
||||
@@ -396,6 +396,11 @@ export interface QzoneMsgListResult extends JsonObject {
|
||||
msglist: QzoneEmotion[];
|
||||
}
|
||||
|
||||
export interface QzoneProfileResult extends JsonObject {
|
||||
name: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export interface QzoneFeed extends JsonObject {
|
||||
uin: number;
|
||||
nickname: string;
|
||||
|
||||
Reference in new issue
Block a user