@iflyrpa/actions 1.2.25-beta.1 → 1.2.25-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/baijiahaoLogin/index.d.ts +5 -0
- package/dist/actions/baijiahaoLogin/rpa-server.d.ts +2 -0
- package/dist/actions/baijiahaoLogin/rpa.d.ts +2 -0
- package/dist/actions/baijiahaoPublish/index.d.ts +1 -0
- package/dist/actions/common/sessionCheck/index.d.ts +56 -8
- package/dist/actions/getXhsCollection/index.d.ts +17 -15
- package/dist/actions/getXhsGroup/index.d.ts +9 -7
- package/dist/actions/getXhsWebUnreadCount/index.d.ts +12 -0
- package/dist/actions/searchAccountInfo/getBjhInfo.d.ts +2 -1
- package/dist/actions/searchAccountInfo/getTTInfo.d.ts +2 -1
- package/dist/actions/searchAccountInfo/getWxInfo.d.ts +2 -1
- package/dist/actions/searchAccountInfo/getXhsInfo.d.ts +4 -3
- package/dist/actions/searchAccountInfo/index.d.ts +56 -5
- package/dist/actions/searchAccountInfo/types.d.ts +43 -38
- package/dist/actions/searchBjhUserArticle/index.d.ts +7 -0
- package/dist/actions/searchPublishInfo/handleBjhData.d.ts +4 -3
- package/dist/actions/searchPublishInfo/handleTTData.d.ts +2 -1
- package/dist/actions/searchPublishInfo/handleWXData.d.ts +4 -3
- package/dist/actions/searchPublishInfo/handleXhsData.d.ts +4 -3
- package/dist/actions/searchPublishInfo/index.d.ts +61 -14
- package/dist/actions/searchPublishInfo/types.d.ts +108 -47
- package/dist/actions/searchWeixinAccountCard/index.d.ts +18 -0
- package/dist/actions/searchWeixinUserArticle/index.d.ts +8 -0
- package/dist/actions/searchXhsWebConnections/index.d.ts +36 -0
- package/dist/actions/searchXhsWebLike/index.d.ts +73 -0
- package/dist/actions/searchXhsWebMentions/index.d.ts +72 -0
- package/dist/actions/searchXiaohongshuUserArticle/index.d.ts +7 -0
- package/dist/actions/toutiaoLogin/index.d.ts +5 -0
- package/dist/actions/toutiaoLogin/rpa-server.d.ts +2 -0
- package/dist/actions/toutiaoLogin/rpa.d.ts +2 -0
- package/dist/actions/toutiaoPublish/index.d.ts +1 -0
- package/dist/actions/weixinLogin/index.d.ts +5 -0
- package/dist/actions/weixinLogin/rpa-server.d.ts +2 -0
- package/dist/actions/weixinLogin/rpa.d.ts +2 -0
- package/dist/actions/weixinPublish/index.d.ts +2 -1
- package/dist/actions/xiaohongshuLogin/index.d.ts +5 -0
- package/dist/actions/xiaohongshuLogin/rpa-server.d.ts +2 -0
- package/dist/actions/xiaohongshuLogin/rpa.d.ts +2 -0
- package/dist/actions/xiaohongshuLogin/utils.d.ts +1 -0
- package/dist/actions/xiaohongshuPublish/index.d.ts +129 -35
- package/dist/actions/xiaohongshuPublish/mock.d.ts +1 -1
- package/dist/actions/xiaohongshuPublish/rpa-server-mock.d.ts +2 -0
- package/dist/actions/xiaohongshuPublish/rpa-server.d.ts +2 -0
- package/dist/actions/xiaohongshuWebCommentAction/index.d.ts +14 -0
- package/dist/actions/xiaohongshuWebIntimacySearch/index.d.ts +13 -0
- package/dist/actions/xiaohongshuWebMsgRead/index.d.ts +12 -0
- package/dist/actions/xiaohongshuWebMsgReply/index.d.ts +47 -0
- package/dist/actions/xiaohongshuWebNoteFeed/index.d.ts +19 -0
- package/dist/actions/xiaohongshuWebRelationAction/index.d.ts +17 -0
- package/dist/actions/xiaohongshuWebSearch/index.d.ts +62 -0
- package/dist/bundle.js +22373 -8763
- package/dist/bundle.js.map +1 -1
- package/dist/index.d.ts +186 -15
- package/dist/index.js +11054 -3305
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11000 -3270
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +80 -15
- package/dist/utils/http.d.ts +8 -3
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/proxy.d.ts +8 -1
- package/dist/utils/xhsXsEncrypt.d.ts +201 -17
- package/dist/utils/xhs_ob/index.d.ts +5 -0
- package/dist/utils/xhs_ob/mnsvc2.d.ts +7 -0
- package/package.json +6 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,38 +1,175 @@
|
|
|
1
1
|
import type { AutomateTask, ResponseData } from "@iflyrpa/share";
|
|
2
2
|
import { type BaijiahaoPublishParams } from "./actions/baijiahaoPublish";
|
|
3
|
+
import { type GetWxFansSearchParams } from "./actions/common/FansTool";
|
|
3
4
|
import { type GetBaijiahaoActivityParams } from "./actions/getBaijiahaoActivity";
|
|
4
|
-
import { type GetToutiaoConfigParams } from "./actions/getToutiaoConfig";
|
|
5
5
|
import { type GetBaijiahaoConfigParams } from "./actions/getBaijiaohaoConfig";
|
|
6
|
-
import { type
|
|
6
|
+
import { type GetToutiaoConfigParams } from "./actions/getToutiaoConfig";
|
|
7
7
|
import { type SearchToutiaoLocationParams } from "./actions/searchToutiaoLocation";
|
|
8
|
+
import { type SearchToutiaoTopicListParams } from "./actions/searchToutiaoTopicList";
|
|
8
9
|
import { type SearchToutiaoUserIDParams } from "./actions/searchToutiaoUserID";
|
|
9
10
|
import { type searchXiaohongshuLocationParams } from "./actions/searchXiaohongshuLocation";
|
|
10
11
|
import { type SearchXiaohongshuTopicListParams } from "./actions/searchXiaohongshuTopicList";
|
|
11
12
|
import { type ToutiaoPublishParams } from "./actions/toutiaoPublish";
|
|
12
|
-
import { type
|
|
13
|
-
import { type
|
|
13
|
+
import { type WxBjhSessionParams } from "./actions/common/sessionCheck";
|
|
14
|
+
import { type GetWeixinCollectionParams } from "./actions/getWeixinCollection";
|
|
15
|
+
import { type GetWeixinConfigParams } from "./actions/getWeixinConfig";
|
|
14
16
|
import { type SearchAccountInfoParams } from "./actions/searchAccountInfo";
|
|
15
17
|
import { type SearchBjhTopicListParams } from "./actions/searchBjhTopicList";
|
|
16
18
|
import { type FetchArticlesParams } from "./actions/searchPublishInfo";
|
|
17
|
-
import { type GetWeixinConfigParams } from "./actions/getWeixinConfig";
|
|
18
|
-
import { type GetWeixinCollectionParams } from "./actions/getWeixinCollection";
|
|
19
19
|
import { type WeitoutiaoPublishParams } from "./actions/weitoutiaoPublish";
|
|
20
20
|
import { type WeixinPublishParams } from "./actions/weixinPublish";
|
|
21
21
|
import { type WeixinmpPublishParams } from "./actions/weixinmpPublish";
|
|
22
22
|
import { type XiaohongshuPublishParams } from "./actions/xiaohongshuPublish";
|
|
23
|
+
import { type BaijiahaoLoginParams } from "./actions/baijiahaoLogin";
|
|
24
|
+
import { type GetToutiaoCollectionParams } from "./actions/getToutiaoCollection";
|
|
25
|
+
import { type searchXhsWebIntimacyListParams } from "./actions/xiaohongshuWebIntimacySearch";
|
|
26
|
+
import { type searchBjhUserArticleParams } from "./actions/searchBjhUserArticle";
|
|
27
|
+
import { type searchWeixinAccountCardParams } from "./actions/searchWeixinAccountCard";
|
|
28
|
+
import { type searchWeixinUserArticleParams } from "./actions/searchWeixinUserArticle";
|
|
29
|
+
import { type searchXhsConnectionsParams } from "./actions/searchXhsWebConnections";
|
|
30
|
+
import { type searchXhsLikesParams } from "./actions/searchXhsWebLike";
|
|
31
|
+
import { type searchXhsMentionsParams } from "./actions/searchXhsWebMentions";
|
|
32
|
+
import { type searchXiaohongshuUserArticleParams } from "./actions/searchXiaohongshuUserArticle";
|
|
33
|
+
import { type ToutiaoLoginParams } from "./actions/toutiaoLogin";
|
|
34
|
+
import { type WeixinLoginParams } from "./actions/weixinLogin";
|
|
35
|
+
import { type XiaohongshuLoginParams } from "./actions/xiaohongshuLogin";
|
|
36
|
+
import { type xiaohongshuWebMsgReadParams } from "./actions/xiaohongshuWebMsgRead";
|
|
37
|
+
import { type xiaohongshuWebMsgReplyParams } from "./actions/xiaohongshuWebMsgReply";
|
|
38
|
+
import { type xiaohongshuWebRelationParams } from "./actions/xiaohongshuWebRelationAction";
|
|
23
39
|
import type { ActiomCommonParams } from "./types";
|
|
24
|
-
import {
|
|
40
|
+
import { type xiaohongshuWebNoteFeedParams } from "./actions/xiaohongshuWebNoteFeed";
|
|
41
|
+
import { type xiaohongshuWebCommentActionParams } from "./actions/xiaohongshuWebCommentAction";
|
|
42
|
+
import { type XhsWebSearchParams } from "./actions/xiaohongshuWebSearch";
|
|
25
43
|
export declare const BetaFlag = "HuiwenCanary";
|
|
26
44
|
export declare class Action {
|
|
27
45
|
private task;
|
|
28
46
|
constructor(task: AutomateTask);
|
|
29
47
|
private bindTask;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
48
|
+
xiaohongshuWebSearch(params: XhsWebSearchParams): Promise<ResponseData<Record<string, unknown>>>;
|
|
49
|
+
xiaohongshuWebCommentAction(params: xiaohongshuWebCommentActionParams): Promise<ResponseData<Record<string, never> | import("./actions/xiaohongshuWebCommentAction").ActionResponse>>;
|
|
50
|
+
xiaohongshuWebNoteFeed(params: xiaohongshuWebNoteFeedParams): Promise<ResponseData<Record<string, unknown> | import("./actions/xiaohongshuWebNoteFeed").FeedRespomseDetail[]>>;
|
|
51
|
+
xiaohongshuWebRelationAction(params: xiaohongshuWebRelationParams): Promise<ResponseData<Record<string, never> | import("./actions/xiaohongshuWebRelationAction").RelationDetail>>;
|
|
52
|
+
xiaohongshuWebMsgRead(params: xiaohongshuWebMsgReadParams): Promise<ResponseData<Record<string, never> | import("./actions/xiaohongshuWebMsgRead").ReadResponse>>;
|
|
53
|
+
xiaohongshuWebIntimacySearch(params: searchXhsWebIntimacyListParams): Promise<ResponseData<[] | import("./actions/xiaohongshuWebIntimacySearch").Intimacy[]>>;
|
|
54
|
+
xiaohongshuWebMsgReply(params: xiaohongshuWebMsgReplyParams): Promise<ResponseData<Record<string, never> | import("./actions/xiaohongshuWebMsgReply").ReplyDataDetail>>;
|
|
55
|
+
searchXhsWebConnections(params: searchXhsConnectionsParams): Promise<ResponseData<Record<string, unknown> | import("./actions/searchXhsWebConnections").ConnectionsDetail>>;
|
|
56
|
+
searchXhsWebLikes(params: searchXhsLikesParams): Promise<ResponseData<Record<string, unknown> | import("./actions/searchXhsWebLike").LikesDetail>>;
|
|
57
|
+
searchXhsWebMentions(params: searchXhsMentionsParams): Promise<ResponseData<Record<string, unknown> | import("./actions/searchXhsWebMentions").MentionsDetail>>;
|
|
58
|
+
getXhsUnreadCount(params: ActiomCommonParams): Promise<ResponseData<{
|
|
59
|
+
connections: number | null;
|
|
60
|
+
mentions: number | null;
|
|
61
|
+
unread_count: number | null;
|
|
62
|
+
likes: number | null;
|
|
63
|
+
}>>;
|
|
64
|
+
searchBjhUserArticle(params: searchBjhUserArticleParams): Promise<ResponseData<Record<string, unknown>[]>>;
|
|
65
|
+
searchXiaohongshuUserArticle(params: searchXiaohongshuUserArticleParams): Promise<ResponseData<Record<string, unknown>>>;
|
|
66
|
+
searchWeixinUserArticle(params: searchWeixinUserArticleParams): Promise<ResponseData<Record<string, unknown>[]>>;
|
|
67
|
+
searchWeixinAccountCard(params: searchWeixinAccountCardParams): Promise<ResponseData<import("./actions/searchWeixinAccountCard").WxAccountCardInfo[]>>;
|
|
68
|
+
WxLogin(params: WeixinLoginParams): Promise<ResponseData<Record<string, unknown>>>;
|
|
69
|
+
BaijiahaoLogin(params: BaijiahaoLoginParams): Promise<ResponseData<Record<string, unknown>>>;
|
|
70
|
+
ToutiaoLogin(params: ToutiaoLoginParams): Promise<ResponseData<Record<string, unknown>>>;
|
|
71
|
+
XhsLogin(params: XiaohongshuLoginParams): Promise<ResponseData<Record<string, unknown>>>;
|
|
72
|
+
FetchArticles(params: FetchArticlesParams): Promise<ResponseData<{
|
|
73
|
+
articleCell?: ({
|
|
74
|
+
title: string;
|
|
75
|
+
imageUrl: string;
|
|
76
|
+
createTime: number;
|
|
77
|
+
redirectUrl: string;
|
|
78
|
+
showNum: number;
|
|
79
|
+
readNum: number;
|
|
80
|
+
likeNum: number;
|
|
81
|
+
commentNum: number;
|
|
82
|
+
originalData?: unknown;
|
|
83
|
+
} | {
|
|
84
|
+
title: string;
|
|
85
|
+
imageUrl: string;
|
|
86
|
+
createTime: number;
|
|
87
|
+
redirectUrl: string;
|
|
88
|
+
readNum: number;
|
|
89
|
+
likeNum: number;
|
|
90
|
+
shareNum: number;
|
|
91
|
+
recommendNum: number;
|
|
92
|
+
originalData?: unknown;
|
|
93
|
+
} | {
|
|
94
|
+
title: string;
|
|
95
|
+
imageUrl: string;
|
|
96
|
+
createTime: number;
|
|
97
|
+
redirectUrl: string;
|
|
98
|
+
recommendNum: number;
|
|
99
|
+
collectNum: number;
|
|
100
|
+
readNum: number;
|
|
101
|
+
likeNum: number;
|
|
102
|
+
commentNum: number;
|
|
103
|
+
shareNum: number;
|
|
104
|
+
originalData?: unknown;
|
|
105
|
+
} | {
|
|
106
|
+
title: string;
|
|
107
|
+
imageUrl: string;
|
|
108
|
+
createTime: number;
|
|
109
|
+
redirectUrl: string;
|
|
110
|
+
readNum: number;
|
|
111
|
+
likeNum: number;
|
|
112
|
+
commentNum: number;
|
|
113
|
+
collectNum: number;
|
|
114
|
+
shareNum: number;
|
|
115
|
+
originalData?: unknown;
|
|
116
|
+
})[] | undefined;
|
|
117
|
+
pagination?: {
|
|
118
|
+
pageNum: number;
|
|
119
|
+
pageSize: number;
|
|
120
|
+
total?: number | undefined;
|
|
121
|
+
nextPage?: boolean | undefined;
|
|
122
|
+
lastPage?: number | undefined;
|
|
123
|
+
cursor?: number | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
} | Record<string, never>>>;
|
|
126
|
+
SearchAccountInfo(params: SearchAccountInfoParams): Promise<ResponseData<{
|
|
127
|
+
fansNum: number;
|
|
128
|
+
fansNumYesterday: number | null;
|
|
129
|
+
readNum: number;
|
|
130
|
+
incomeNum: number;
|
|
131
|
+
incomeNumYesterday: number | null;
|
|
132
|
+
showNumYesterday: number | null;
|
|
133
|
+
readNumYesterday: number | null;
|
|
134
|
+
likeNumYesterday: number | null;
|
|
135
|
+
commentNumYesterday: number | null;
|
|
136
|
+
} | {
|
|
137
|
+
fansNum: number;
|
|
138
|
+
favedNum: number;
|
|
139
|
+
watchNumLastWeek: number;
|
|
140
|
+
likeNumLastWeek: number;
|
|
141
|
+
collectNumLastWeek: number;
|
|
142
|
+
commentNumLastWeek: number;
|
|
143
|
+
fansNumLastWeek: number;
|
|
144
|
+
fansNumYesterday: number;
|
|
145
|
+
} | {
|
|
146
|
+
fansNum: number;
|
|
147
|
+
fansNumYesterday: number;
|
|
148
|
+
readNumYesterday: number;
|
|
149
|
+
shareNumYesterday: number;
|
|
150
|
+
} | {
|
|
151
|
+
fansNum: number;
|
|
152
|
+
fansNumYesterday: number | null;
|
|
153
|
+
readNum: number;
|
|
154
|
+
incomeNum: number;
|
|
155
|
+
incomeNumYesterday: number | null;
|
|
156
|
+
recommendNumYesterday: number | null;
|
|
157
|
+
readNumYesterday: number | null;
|
|
158
|
+
likeNumYesterday: number | null;
|
|
159
|
+
commentNumYesterday: number | null;
|
|
160
|
+
} | null>>;
|
|
161
|
+
TTSessionCheck(params: ActiomCommonParams): Promise<ResponseData<{
|
|
162
|
+
isValidSession: boolean;
|
|
163
|
+
}>>;
|
|
164
|
+
WxSessionCheck(params: WxBjhSessionParams): Promise<ResponseData<{
|
|
165
|
+
isValidSession: boolean;
|
|
166
|
+
}>>;
|
|
167
|
+
XhsSessionCheck(params: ActiomCommonParams): Promise<ResponseData<{
|
|
168
|
+
isValidSession: boolean;
|
|
169
|
+
}>>;
|
|
170
|
+
BjhSessionCheck(params: WxBjhSessionParams): Promise<ResponseData<{
|
|
171
|
+
isValidSession: boolean;
|
|
172
|
+
}>>;
|
|
36
173
|
searchToutiaoTopicList(params: SearchToutiaoTopicListParams): Promise<ResponseData<import("./types").Toutiao.Topic[]>>;
|
|
37
174
|
TTFansExport(params: ActiomCommonParams): Promise<ResponseData<import("./types").Toutiao.FansCount>>;
|
|
38
175
|
XhsFansExport(params: ActiomCommonParams): Promise<ResponseData<import("./types").Xiaohongshu.FansCount>>;
|
|
@@ -45,8 +182,28 @@ export declare class Action {
|
|
|
45
182
|
getToutiaoCollection(params: GetToutiaoCollectionParams): Promise<ResponseData<import("./actions/getToutiaoCollection").GetToutiaoCollectionResult[]>>;
|
|
46
183
|
getWeixinConfig(params: GetWeixinConfigParams): Promise<ResponseData<import("./actions/getWeixinConfig").ConfigData>>;
|
|
47
184
|
getWeixinCollection(params: GetWeixinCollectionParams): Promise<ResponseData<import("./actions/getWeixinCollection").CollectDetail[]>>;
|
|
48
|
-
getXhsCollection(params: ActiomCommonParams): Promise<ResponseData<
|
|
49
|
-
|
|
185
|
+
getXhsCollection(params: ActiomCommonParams): Promise<ResponseData<{
|
|
186
|
+
id: string;
|
|
187
|
+
name: string;
|
|
188
|
+
desc: string;
|
|
189
|
+
userId: string;
|
|
190
|
+
noteNum: number;
|
|
191
|
+
viewNum: number;
|
|
192
|
+
cursor: string;
|
|
193
|
+
enabled: boolean;
|
|
194
|
+
status: number;
|
|
195
|
+
createTime: number;
|
|
196
|
+
unreadCount: number;
|
|
197
|
+
coverImage: null;
|
|
198
|
+
deeplink: string;
|
|
199
|
+
}[]>>;
|
|
200
|
+
getXhsGroup(params: ActiomCommonParams): Promise<ResponseData<{
|
|
201
|
+
avatar: string;
|
|
202
|
+
desc: string;
|
|
203
|
+
group_id: string;
|
|
204
|
+
group_name: string;
|
|
205
|
+
linkable: boolean;
|
|
206
|
+
}[]>>;
|
|
50
207
|
getXhsHotTopic(params: ActiomCommonParams): Promise<ResponseData<import("./actions/getXhsHotTopic").HotTopicDetail[]>>;
|
|
51
208
|
getBaijiahaoConfig(params: GetBaijiahaoConfigParams): Promise<ResponseData<import("./actions/getBaijiaohaoConfig").ConfigData[]>>;
|
|
52
209
|
baijiahaoPublish(params: BaijiahaoPublishParams): Promise<ResponseData<string>>;
|
|
@@ -65,3 +222,17 @@ type MethodParams<T> = {
|
|
|
65
222
|
};
|
|
66
223
|
export type ActionMethodParams = MethodParams<ActionInstance>;
|
|
67
224
|
export { version } from "../package.json";
|
|
225
|
+
export { Http } from "./utils/http";
|
|
226
|
+
export { ProxyAgent } from './utils/proxy';
|
|
227
|
+
export { type ActiomCommonParams, ActionCommonParamsSchema } from "./types";
|
|
228
|
+
export { type WxBjhSessionParams, WxBjhSessionParamsSchema, SessionCheckResultSchema } from "./actions/common/sessionCheck";
|
|
229
|
+
export type { sessionCheckResult } from "./actions/common/sessionCheck";
|
|
230
|
+
export { XiaohongshuPublishParamsSchema, type XiaohongshuPublishParams } from "./actions/xiaohongshuPublish";
|
|
231
|
+
export { UnreadCountSchema, type UnreadCount } from "./actions/getXhsWebUnreadCount";
|
|
232
|
+
export { SearchAccountInfoParamsSchema, type SearchAccountInfoParams } from "./actions/searchAccountInfo";
|
|
233
|
+
export { bjhConfigDataSchema, wxConfigDataSchema, xhsConfigDataSchema, ttConfigDataSchema, type bjhConfigData, type wxConfigData, type xhsConfigData, type ttConfigData } from "./actions/searchAccountInfo/types";
|
|
234
|
+
export { FetchArticlesParamsSchema, type FetchArticlesParams } from "./actions/searchPublishInfo";
|
|
235
|
+
export { FetchArticlesDataSchema, type FetchArticlesData } from "./actions/searchPublishInfo/types";
|
|
236
|
+
export { CollectionDetailSchema, type CollectionDetail } from "./actions/getXhsCollection";
|
|
237
|
+
export { getFileState } from "./utils";
|
|
238
|
+
export { rpaAction_Server_Mock } from "./actions/xiaohongshuPublish/rpa-server-mock";
|