feat(qzone): add homepage feeds and share cards
Read accessible Qzone homepage posts and generate their original share cards. Return sharing notices so callers can confirm visibility before sending through the existing message actions. Include SDK contracts, action discovery, documentation, and regression coverage. Fixes #609
This commit is contained in:
15 files changed
+944
-4
No files matched your search
@@ -184,6 +184,7 @@ export const SNOWLUMA_ACTIONS = [
|
||||
'get_msg_emoji_likes',
|
||||
'get_qun_album_list',
|
||||
'get_qzone_feeds',
|
||||
'get_qzone_home_feeds',
|
||||
'get_qzone_msg_detail',
|
||||
'get_qzone_msg_list',
|
||||
'get_qzone_profile',
|
||||
@@ -192,6 +193,7 @@ export const SNOWLUMA_ACTIONS = [
|
||||
'get_qzone_public_feed_detail',
|
||||
'get_qzone_public_feeds',
|
||||
'get_qzone_public_replies',
|
||||
'get_qzone_share_ark',
|
||||
'get_rkey_server',
|
||||
'get_share_link',
|
||||
'like_qzone',
|
||||
|
||||
@@ -103,6 +103,8 @@ import type {
|
||||
GetQzoneMsgListParams,
|
||||
GetQzoneProfileParams,
|
||||
GetQzonePublicFeedsParams,
|
||||
GetQzoneHomeFeedsParams,
|
||||
GetQzoneShareArkParams,
|
||||
GetQzonePublicCommentsParams,
|
||||
GetQzonePublicRepliesParams,
|
||||
GroupAlbumCommentParams,
|
||||
@@ -203,6 +205,7 @@ import type {
|
||||
QzonePublishResult,
|
||||
QzoneProfileResult,
|
||||
QzonePublicFeedsPage,
|
||||
QzoneShareArkResult,
|
||||
QzoneUpdateRightResult,
|
||||
RkeyServerResult,
|
||||
SendFlashMsgResult,
|
||||
@@ -424,6 +427,8 @@ export interface SnowLumaActionMap {
|
||||
get_qzone_profile: { params: GetQzoneProfileParams; data: QzoneProfileResult };
|
||||
get_qzone_public_capabilities: { params: JsonObject; data: JsonObject };
|
||||
get_qzone_public_feeds: { params: GetQzonePublicFeedsParams; data: QzonePublicFeedsPage };
|
||||
get_qzone_home_feeds: { params: GetQzoneHomeFeedsParams; data: QzonePublicFeedsPage };
|
||||
get_qzone_share_ark: { params: GetQzoneShareArkParams; data: QzoneShareArkResult };
|
||||
get_qzone_public_feed_detail: { params: QzonePublicFeedParams; data: JsonObject };
|
||||
get_qzone_public_comments: { params: GetQzonePublicCommentsParams; data: JsonObject };
|
||||
get_qzone_public_replies: { params: GetQzonePublicRepliesParams; data: JsonObject };
|
||||
|
||||
@@ -627,6 +627,17 @@ export interface GetQzonePublicFeedsParams extends JsonObject {
|
||||
cursor?: string;
|
||||
}
|
||||
|
||||
export interface GetQzoneHomeFeedsParams extends JsonObject {
|
||||
target_uin?: ActionNumberInput;
|
||||
/** Continuation for the same account and target homepage. */
|
||||
cursor?: string;
|
||||
}
|
||||
|
||||
export interface GetQzoneShareArkParams extends JsonObject {
|
||||
/** Original feed from get_qzone_home_feeds or get_qzone_public_feeds. */
|
||||
feed: JsonObject;
|
||||
}
|
||||
|
||||
export interface QzonePublicFeedParams extends JsonObject {
|
||||
/** The original feed cells returned in get_qzone_public_feeds.feeds. */
|
||||
feed: JsonObject;
|
||||
|
||||
@@ -422,6 +422,14 @@ export interface QzonePublicFeedsPage extends JsonObject {
|
||||
next_cursor: string | null;
|
||||
}
|
||||
|
||||
export interface QzoneShareArkResult extends JsonObject {
|
||||
/** Preserve this string when sending a JSON message. */
|
||||
ark: string;
|
||||
/** Display notice and obtain confirmation before sending when true. */
|
||||
requires_confirmation: boolean;
|
||||
notice: string | null;
|
||||
}
|
||||
|
||||
export interface QzoneFeed extends JsonObject {
|
||||
uin: number;
|
||||
nickname: string;
|
||||
|
||||
Reference in new issue
Block a user