chore: prepare v2.0.0 release
This commit is contained in:
1 parent
1001f55a06
commit
c15b2d857d
31 files changed
+965
-40
No files matched your search
@@ -78,6 +78,7 @@ import type {
|
||||
DeleteGroupFolderParams,
|
||||
SendPacketParams,
|
||||
SearchSysFacesParams,
|
||||
GetQzoneMsgDetailParams,
|
||||
} from './params';
|
||||
import type {
|
||||
CapabilityInfo,
|
||||
@@ -115,11 +116,13 @@ import type {
|
||||
SystemFaceCatalogInfo,
|
||||
SystemFaceInfo,
|
||||
SystemFaceSearchInfo,
|
||||
QzoneMsgDetailResult,
|
||||
} from './results';
|
||||
|
||||
export type ActionData = JsonValue;
|
||||
|
||||
export interface SnowLumaActionMap {
|
||||
get_qzone_msg_detail: { params: GetQzoneMsgDetailParams; data: QzoneMsgDetailResult };
|
||||
get_login_info: { params: JsonObject; data: LoginInfo };
|
||||
get_status: { params: JsonObject; data: StatusInfo };
|
||||
get_version_info: { params: JsonObject; data: VersionInfo };
|
||||
|
||||
@@ -423,3 +423,13 @@ export interface SendPacketParams extends JsonObject {
|
||||
data?: string;
|
||||
rsp?: boolean;
|
||||
}
|
||||
|
||||
export interface GetQzoneMsgDetailParams extends JsonObject {
|
||||
tid: string;
|
||||
/** Post owner; defaults to the current account. */
|
||||
target_uin?: number | string;
|
||||
/** Top-level comment offset (default 0). */
|
||||
pos?: number | string;
|
||||
/** Requested page size, 1–100 (default 20); Qzone may return fewer. */
|
||||
num?: number | string;
|
||||
}
|
||||
@@ -1,5 +1,28 @@
|
||||
import type { JsonArray, JsonObject, JsonValue } from './json';
|
||||
|
||||
export interface QzoneCommentReply {
|
||||
uin: number;
|
||||
name: string;
|
||||
/** Unix seconds. */
|
||||
time: number;
|
||||
content: string;
|
||||
/** Scoped to the post, or parent comment for replies. */
|
||||
comment_id: string;
|
||||
}
|
||||
|
||||
export interface QzoneComment extends QzoneCommentReply {
|
||||
/** Inline replies only; Qzone may omit further replies. */
|
||||
replies: QzoneCommentReply[];
|
||||
}
|
||||
|
||||
export interface QzoneMsgDetailResult {
|
||||
tid: string;
|
||||
content: string;
|
||||
/** Server-reported total, not the number of comments on this page. */
|
||||
comment_num: number;
|
||||
comments: QzoneComment[];
|
||||
}
|
||||
|
||||
export interface SendMessageResult {
|
||||
message_id: number;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user