feat(sdk): expose group request query options
Add typed group, pending-state, and per-inbox limit options to group-system message queries while preserving existing call sites. Regenerate the shared action catalog so SDK and MCP consumers receive consistent validation rules and updated request-flag guidance.
This commit is contained in:
5 files changed
+58
-5
No files matched your search
@@ -132,8 +132,16 @@ export abstract class SnowLumaApiClient {
|
||||
return this.call('get_group_honor_info', params, options);
|
||||
}
|
||||
|
||||
getGroupSystemMessages(options?: RequestOptions) {
|
||||
return this.call('get_group_system_msg', {}, options);
|
||||
getGroupSystemMessages(options?: RequestOptions & {
|
||||
groupId?: number;
|
||||
onlyPending?: boolean;
|
||||
count?: number;
|
||||
}) {
|
||||
return this.call('get_group_system_msg', {
|
||||
group_id: options?.groupId,
|
||||
only_pending: options?.onlyPending,
|
||||
count: options?.count,
|
||||
}, options);
|
||||
}
|
||||
|
||||
setGroupKick(groupId: number, userId: number, options?: RequestOptions & { rejectAddRequest?: boolean }) {
|
||||
|
||||
@@ -18,6 +18,7 @@ import type {
|
||||
GetGroupFilesParams,
|
||||
GetGroupFileUrlParams,
|
||||
GetGroupHonorInfoParams,
|
||||
GetGroupSystemMsgParams,
|
||||
GetGroupInfoParams,
|
||||
GetGroupListParams,
|
||||
GetGroupMemberInfoParams,
|
||||
@@ -131,7 +132,7 @@ export interface SnowLumaActionMap {
|
||||
get_group_member_list: { params: GetGroupMemberListParams; data: JsonObject[] };
|
||||
get_group_member_info: { params: GetGroupMemberInfoParams; data: JsonObject };
|
||||
get_group_honor_info: { params: GetGroupHonorInfoParams; data: JsonValue };
|
||||
get_group_system_msg: { params: JsonObject; data: JsonObject[] };
|
||||
get_group_system_msg: { params: GetGroupSystemMsgParams; data: JsonObject[] };
|
||||
set_group_kick: { params: SetGroupKickParams; data: EmptyData };
|
||||
set_group_kick_members: { params: SetGroupKickMembersParams; data: EmptyData };
|
||||
set_group_ban: { params: SetGroupBanParams; data: EmptyData };
|
||||
|
||||
@@ -57,6 +57,12 @@ export interface GetGroupHonorInfoParams extends GroupIdParams {
|
||||
type?: 'talkative' | 'performer' | 'legend' | 'strong_newbie' | 'emotion' | 'all' | string;
|
||||
}
|
||||
|
||||
export interface GetGroupSystemMsgParams extends JsonObject {
|
||||
group_id?: number;
|
||||
only_pending?: boolean;
|
||||
count?: number;
|
||||
}
|
||||
|
||||
export interface DeleteFriendParams extends UserIdParams {
|
||||
block?: boolean;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user