@iflyrpa/actions 1.2.25-beta.0 → 1.2.25-beta.2
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/getToutiaoCollection/index.d.ts +40 -0
- 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 +22647 -9012
- package/dist/bundle.js.map +1 -1
- package/dist/index.d.ts +187 -14
- package/dist/index.js +11100 -3326
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11013 -3258
- 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
|
@@ -1,52 +1,113 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ToutiaoArticleSchema: z.ZodObject<{
|
|
3
|
+
title: z.ZodString;
|
|
4
|
+
imageUrl: z.ZodString;
|
|
5
|
+
createTime: z.ZodNumber;
|
|
6
|
+
redirectUrl: z.ZodString;
|
|
7
|
+
originalData: z.ZodOptional<z.ZodUnknown>;
|
|
8
|
+
showNum: z.ZodNumber;
|
|
9
|
+
readNum: z.ZodNumber;
|
|
10
|
+
likeNum: z.ZodNumber;
|
|
11
|
+
commentNum: z.ZodNumber;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type ToutiaoArticle = z.infer<typeof ToutiaoArticleSchema>;
|
|
14
|
+
export declare const WeixinArticleSchema: z.ZodObject<{
|
|
15
|
+
title: z.ZodString;
|
|
16
|
+
imageUrl: z.ZodString;
|
|
17
|
+
createTime: z.ZodNumber;
|
|
18
|
+
redirectUrl: z.ZodString;
|
|
19
|
+
originalData: z.ZodOptional<z.ZodUnknown>;
|
|
20
|
+
readNum: z.ZodNumber;
|
|
21
|
+
likeNum: z.ZodNumber;
|
|
22
|
+
shareNum: z.ZodNumber;
|
|
23
|
+
recommendNum: z.ZodNumber;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type WeixinArticle = z.infer<typeof WeixinArticleSchema>;
|
|
26
|
+
export declare const BaijiahaoArticleSchema: z.ZodObject<{
|
|
27
|
+
title: z.ZodString;
|
|
28
|
+
imageUrl: z.ZodString;
|
|
29
|
+
createTime: z.ZodNumber;
|
|
30
|
+
redirectUrl: z.ZodString;
|
|
31
|
+
originalData: z.ZodOptional<z.ZodUnknown>;
|
|
32
|
+
recommendNum: z.ZodNumber;
|
|
33
|
+
collectNum: z.ZodNumber;
|
|
34
|
+
readNum: z.ZodNumber;
|
|
35
|
+
likeNum: z.ZodNumber;
|
|
36
|
+
commentNum: z.ZodNumber;
|
|
37
|
+
shareNum: z.ZodNumber;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export type BaijiahaoArticle = z.infer<typeof BaijiahaoArticleSchema>;
|
|
40
|
+
export declare const XiaohongshuArticleSchema: z.ZodObject<{
|
|
41
|
+
title: z.ZodString;
|
|
42
|
+
imageUrl: z.ZodString;
|
|
43
|
+
createTime: z.ZodNumber;
|
|
44
|
+
redirectUrl: z.ZodString;
|
|
45
|
+
originalData: z.ZodOptional<z.ZodUnknown>;
|
|
46
|
+
readNum: z.ZodNumber;
|
|
47
|
+
likeNum: z.ZodNumber;
|
|
48
|
+
commentNum: z.ZodNumber;
|
|
49
|
+
collectNum: z.ZodNumber;
|
|
50
|
+
shareNum: z.ZodNumber;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export type XiaohongshuArticle = z.infer<typeof XiaohongshuArticleSchema>;
|
|
53
|
+
export declare const FetchArticlesDataSchema: z.ZodObject<{
|
|
54
|
+
articleCell: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
55
|
+
title: z.ZodString;
|
|
56
|
+
imageUrl: z.ZodString;
|
|
57
|
+
createTime: z.ZodNumber;
|
|
58
|
+
redirectUrl: z.ZodString;
|
|
59
|
+
originalData: z.ZodOptional<z.ZodUnknown>;
|
|
60
|
+
showNum: z.ZodNumber;
|
|
61
|
+
readNum: z.ZodNumber;
|
|
62
|
+
likeNum: z.ZodNumber;
|
|
63
|
+
commentNum: z.ZodNumber;
|
|
64
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
+
title: z.ZodString;
|
|
66
|
+
imageUrl: z.ZodString;
|
|
67
|
+
createTime: z.ZodNumber;
|
|
68
|
+
redirectUrl: z.ZodString;
|
|
69
|
+
originalData: z.ZodOptional<z.ZodUnknown>;
|
|
70
|
+
readNum: z.ZodNumber;
|
|
71
|
+
likeNum: z.ZodNumber;
|
|
72
|
+
shareNum: z.ZodNumber;
|
|
73
|
+
recommendNum: z.ZodNumber;
|
|
74
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
+
title: z.ZodString;
|
|
76
|
+
imageUrl: z.ZodString;
|
|
77
|
+
createTime: z.ZodNumber;
|
|
78
|
+
redirectUrl: z.ZodString;
|
|
79
|
+
originalData: z.ZodOptional<z.ZodUnknown>;
|
|
80
|
+
recommendNum: z.ZodNumber;
|
|
81
|
+
collectNum: z.ZodNumber;
|
|
82
|
+
readNum: z.ZodNumber;
|
|
83
|
+
likeNum: z.ZodNumber;
|
|
84
|
+
commentNum: z.ZodNumber;
|
|
85
|
+
shareNum: z.ZodNumber;
|
|
86
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
87
|
+
title: z.ZodString;
|
|
88
|
+
imageUrl: z.ZodString;
|
|
89
|
+
createTime: z.ZodNumber;
|
|
90
|
+
redirectUrl: z.ZodString;
|
|
91
|
+
originalData: z.ZodOptional<z.ZodUnknown>;
|
|
92
|
+
readNum: z.ZodNumber;
|
|
93
|
+
likeNum: z.ZodNumber;
|
|
94
|
+
commentNum: z.ZodNumber;
|
|
95
|
+
collectNum: z.ZodNumber;
|
|
96
|
+
shareNum: z.ZodNumber;
|
|
97
|
+
}, z.core.$strip>]>>>;
|
|
98
|
+
pagination: z.ZodOptional<z.ZodObject<{
|
|
99
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
nextPage: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
lastPage: z.ZodOptional<z.ZodNumber>;
|
|
102
|
+
cursor: z.ZodOptional<z.ZodNumber>;
|
|
103
|
+
pageNum: z.ZodNumber;
|
|
104
|
+
pageSize: z.ZodNumber;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
export type FetchArticlesData = z.infer<typeof FetchArticlesDataSchema>;
|
|
46
108
|
export interface FetchArticlesResponse {
|
|
47
109
|
code: number;
|
|
48
110
|
message: string;
|
|
49
|
-
data: FetchArticlesData |
|
|
111
|
+
data: FetchArticlesData | Record<string, never>;
|
|
50
112
|
}
|
|
51
113
|
export declare const errorResponse: (message: string, code?: number) => FetchArticlesResponse;
|
|
52
|
-
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import type { ActiomCommonParams } from "../../types";
|
|
3
|
+
export interface searchWeixinAccountCardParams extends ActiomCommonParams {
|
|
4
|
+
token: string | number;
|
|
5
|
+
searchValue: string;
|
|
6
|
+
pageNum: number;
|
|
7
|
+
}
|
|
8
|
+
export interface WxAccountCardInfo {
|
|
9
|
+
fakeid: string;
|
|
10
|
+
nickname: string;
|
|
11
|
+
alias: string;
|
|
12
|
+
round_head_img: string;
|
|
13
|
+
service_type: number;
|
|
14
|
+
signature: string;
|
|
15
|
+
verify_status: number;
|
|
16
|
+
}
|
|
17
|
+
export type PublishAction = CommonAction<searchWeixinAccountCardParams, WxAccountCardInfo[]>;
|
|
18
|
+
export declare const searchWeixinAccountCard: PublishAction;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import type { ActiomCommonParams } from "../../types";
|
|
3
|
+
export interface searchWeixinUserArticleParams extends ActiomCommonParams {
|
|
4
|
+
fakeId: string;
|
|
5
|
+
token: string | number;
|
|
6
|
+
}
|
|
7
|
+
export type PublishAction = CommonAction<searchWeixinUserArticleParams, Record<string, unknown>[]>;
|
|
8
|
+
export declare const searchWeixinUserArticle: PublishAction;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import type { ActiomCommonParams } from "../../types";
|
|
3
|
+
export interface searchXhsConnectionsParams extends ActiomCommonParams {
|
|
4
|
+
num: number;
|
|
5
|
+
cursor: string | null;
|
|
6
|
+
}
|
|
7
|
+
export interface ConnectionsResponse {
|
|
8
|
+
code: number;
|
|
9
|
+
success: boolean;
|
|
10
|
+
msg: string;
|
|
11
|
+
data: ConnectionsDetail;
|
|
12
|
+
}
|
|
13
|
+
export interface ConnectionsDetail {
|
|
14
|
+
message_list: {
|
|
15
|
+
title: string;
|
|
16
|
+
tag: string;
|
|
17
|
+
tag_type: string;
|
|
18
|
+
id: string;
|
|
19
|
+
type: string;
|
|
20
|
+
user: {
|
|
21
|
+
xsec_token: string;
|
|
22
|
+
userid: string;
|
|
23
|
+
nickname: string;
|
|
24
|
+
images: string;
|
|
25
|
+
fstatus: string;
|
|
26
|
+
red_official_verify_type: number;
|
|
27
|
+
};
|
|
28
|
+
time: number;
|
|
29
|
+
score: number;
|
|
30
|
+
track_type: string;
|
|
31
|
+
}[];
|
|
32
|
+
has_more: boolean;
|
|
33
|
+
strCursor: string;
|
|
34
|
+
}
|
|
35
|
+
export type PublishAction = CommonAction<searchXhsConnectionsParams, ConnectionsDetail | Record<string, unknown>>;
|
|
36
|
+
export declare const searchXhsWebConnections: PublishAction;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import type { ActiomCommonParams } from "../../types";
|
|
3
|
+
export interface searchXhsLikesParams extends ActiomCommonParams {
|
|
4
|
+
num: number;
|
|
5
|
+
cursor: string | null;
|
|
6
|
+
}
|
|
7
|
+
export interface LikesResponse {
|
|
8
|
+
code: number;
|
|
9
|
+
success: boolean;
|
|
10
|
+
msg: string;
|
|
11
|
+
data: LikesDetail;
|
|
12
|
+
}
|
|
13
|
+
export interface LikesDetail {
|
|
14
|
+
message_list: {
|
|
15
|
+
time: number;
|
|
16
|
+
user_info: {
|
|
17
|
+
fstatus: string;
|
|
18
|
+
red_official_verify_type: number;
|
|
19
|
+
xsec_token: string;
|
|
20
|
+
userid: string;
|
|
21
|
+
nickname: string;
|
|
22
|
+
image: string;
|
|
23
|
+
};
|
|
24
|
+
item_info: {
|
|
25
|
+
image: string;
|
|
26
|
+
status: number;
|
|
27
|
+
id: string;
|
|
28
|
+
content: string;
|
|
29
|
+
image_info: {
|
|
30
|
+
url: string;
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
};
|
|
34
|
+
illegal_info: {
|
|
35
|
+
illegal_status: string;
|
|
36
|
+
status: number;
|
|
37
|
+
desc: string;
|
|
38
|
+
};
|
|
39
|
+
link: string;
|
|
40
|
+
user_info: {
|
|
41
|
+
userid: string;
|
|
42
|
+
nickname: string;
|
|
43
|
+
image: string;
|
|
44
|
+
red_official_verify_type: number;
|
|
45
|
+
};
|
|
46
|
+
xsec_token: string;
|
|
47
|
+
type: string;
|
|
48
|
+
};
|
|
49
|
+
comment_info: {
|
|
50
|
+
illegal_info: {
|
|
51
|
+
status: number;
|
|
52
|
+
desc: string;
|
|
53
|
+
illegal_status: string;
|
|
54
|
+
};
|
|
55
|
+
status: number;
|
|
56
|
+
liked: boolean;
|
|
57
|
+
like_count: number;
|
|
58
|
+
id: string;
|
|
59
|
+
content: string;
|
|
60
|
+
};
|
|
61
|
+
liked: boolean;
|
|
62
|
+
time_flag: number;
|
|
63
|
+
type: string;
|
|
64
|
+
title: string;
|
|
65
|
+
score: number;
|
|
66
|
+
track_type: string;
|
|
67
|
+
id: string;
|
|
68
|
+
}[];
|
|
69
|
+
has_more: boolean;
|
|
70
|
+
strCursor: string;
|
|
71
|
+
}
|
|
72
|
+
export type PublishAction = CommonAction<searchXhsLikesParams, LikesDetail | Record<string, unknown>>;
|
|
73
|
+
export declare const searchXhsWebLikes: PublishAction;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import type { ActiomCommonParams } from "../../types";
|
|
3
|
+
export interface searchXhsMentionsParams extends ActiomCommonParams {
|
|
4
|
+
num: number;
|
|
5
|
+
cursor: string | null;
|
|
6
|
+
}
|
|
7
|
+
export interface MentionsResponse {
|
|
8
|
+
code: number;
|
|
9
|
+
success: boolean;
|
|
10
|
+
msg: string;
|
|
11
|
+
data: MentionsDetail;
|
|
12
|
+
}
|
|
13
|
+
export interface MentionsDetail {
|
|
14
|
+
message_list: {
|
|
15
|
+
title: string;
|
|
16
|
+
time: number;
|
|
17
|
+
comment_info: {
|
|
18
|
+
illegal_info: {
|
|
19
|
+
status: number;
|
|
20
|
+
desc: string;
|
|
21
|
+
illegal_status: string;
|
|
22
|
+
};
|
|
23
|
+
status: number;
|
|
24
|
+
liked: boolean;
|
|
25
|
+
like_count: number;
|
|
26
|
+
id: string;
|
|
27
|
+
content: string;
|
|
28
|
+
};
|
|
29
|
+
type: string;
|
|
30
|
+
score: number;
|
|
31
|
+
user_info: {
|
|
32
|
+
userid: string;
|
|
33
|
+
nickname: string;
|
|
34
|
+
image: string;
|
|
35
|
+
red_official_verify_type: number;
|
|
36
|
+
xsec_token: string;
|
|
37
|
+
};
|
|
38
|
+
item_info: {
|
|
39
|
+
type: string;
|
|
40
|
+
content: string;
|
|
41
|
+
image_info: {
|
|
42
|
+
width: number;
|
|
43
|
+
height: number;
|
|
44
|
+
url: string;
|
|
45
|
+
};
|
|
46
|
+
status: number;
|
|
47
|
+
id: string;
|
|
48
|
+
image: string;
|
|
49
|
+
illegal_info: {
|
|
50
|
+
status: number;
|
|
51
|
+
desc: string;
|
|
52
|
+
illegal_status: string;
|
|
53
|
+
};
|
|
54
|
+
link: string;
|
|
55
|
+
user_info: {
|
|
56
|
+
userid: string;
|
|
57
|
+
nickname: string;
|
|
58
|
+
image: string;
|
|
59
|
+
red_official_verify_type: number;
|
|
60
|
+
};
|
|
61
|
+
xsec_token: string;
|
|
62
|
+
};
|
|
63
|
+
track_type: string;
|
|
64
|
+
liked: boolean;
|
|
65
|
+
time_flag: number;
|
|
66
|
+
id: string;
|
|
67
|
+
}[];
|
|
68
|
+
has_more: boolean;
|
|
69
|
+
strCursor: string;
|
|
70
|
+
}
|
|
71
|
+
export type PublishAction = CommonAction<searchXhsMentionsParams, MentionsDetail | Record<string, unknown>>;
|
|
72
|
+
export declare const searchXhsWebMentions: PublishAction;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import type { ActiomCommonParams } from "../../types";
|
|
3
|
+
export interface searchXiaohongshuUserArticleParams extends ActiomCommonParams {
|
|
4
|
+
searchValue: string;
|
|
5
|
+
}
|
|
6
|
+
export type PublishAction = CommonAction<searchXiaohongshuUserArticleParams, Record<string, unknown>>;
|
|
7
|
+
export declare const searchXiaohongshuUserArticle: PublishAction;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import { ActionParams } from "../../types";
|
|
3
|
+
export type ToutiaoLoginParams = ActionParams;
|
|
4
|
+
export type SteelAction = CommonAction<ActionParams, Record<string, unknown>>;
|
|
5
|
+
export declare const toutiaoLogin: SteelAction;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CommonAction } from "@iflyrpa/share";
|
|
2
2
|
import type { ActiomCommonParams } from "../../types";
|
|
3
|
-
import { CollectDetail } from '../getWeixinCollection';
|
|
3
|
+
import type { CollectDetail } from '../getWeixinCollection';
|
|
4
4
|
export interface WxInteraction {
|
|
5
5
|
Type: "public" | "private" | "off";
|
|
6
6
|
Option?: {
|
|
@@ -20,6 +20,7 @@ export interface WeixinPublishParams extends ActiomCommonParams {
|
|
|
20
20
|
appMsgId?: string;
|
|
21
21
|
operation_seq?: string;
|
|
22
22
|
proxyLoc?: string;
|
|
23
|
+
localIP?: string;
|
|
23
24
|
huiwenToken?: string;
|
|
24
25
|
settingInfo: {
|
|
25
26
|
wxCover: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import { ActionParams } from "../../types";
|
|
3
|
+
export type XiaohongshuLoginParams = ActionParams;
|
|
4
|
+
export type SteelAction = CommonAction<ActionParams, Record<string, unknown>>;
|
|
5
|
+
export declare const xiaohongshuLogin: SteelAction;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function encode_mnsv2(mnsv2: string, platform: "Windows" | "Linux" | "PC", req_type: "object" | ""): string;
|
|
@@ -1,38 +1,132 @@
|
|
|
1
1
|
import type { CommonAction } from "@iflyrpa/share";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { type Xiaohongshu } from "../../types";
|
|
4
|
+
export declare const XiaohongshuPublishParamsSchema: z.ZodObject<{
|
|
5
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6
|
+
cookies: z.ZodArray<z.ZodObject<{
|
|
7
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
8
|
+
path: z.ZodOptional<z.ZodString>;
|
|
9
|
+
expires: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
session: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
value: z.ZodString;
|
|
15
|
+
url: z.ZodOptional<z.ZodString>;
|
|
16
|
+
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
Strict: "Strict";
|
|
18
|
+
Lax: "Lax";
|
|
19
|
+
None: "None";
|
|
20
|
+
}>>;
|
|
21
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
partitionKey: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
topLevelSite: z.ZodString;
|
|
24
|
+
hasCrossSiteAncestor: z.ZodBoolean;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
priority: z.ZodOptional<z.ZodEnum<{
|
|
27
|
+
Low: "Low";
|
|
28
|
+
Medium: "Medium";
|
|
29
|
+
High: "High";
|
|
30
|
+
}>>;
|
|
31
|
+
sameParty: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
sourceScheme: z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
Unset: "Unset";
|
|
34
|
+
NonSecure: "NonSecure";
|
|
35
|
+
Secure: "Secure";
|
|
36
|
+
}>>;
|
|
37
|
+
sourcePort: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
actionType: z.ZodOptional<z.ZodEnum<{
|
|
40
|
+
mockApi: "mockApi";
|
|
41
|
+
rpa: "rpa";
|
|
42
|
+
server: "server";
|
|
43
|
+
}>>;
|
|
44
|
+
accountId: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
articleId: z.ZodOptional<z.ZodString>;
|
|
46
|
+
saveType: z.ZodOptional<z.ZodString>;
|
|
47
|
+
banners: z.ZodArray<z.ZodString>;
|
|
48
|
+
title: z.ZodString;
|
|
49
|
+
content: z.ZodString;
|
|
50
|
+
address: z.ZodOptional<z.ZodCustom<Xiaohongshu.Location, Xiaohongshu.Location>>;
|
|
51
|
+
selfDeclaration: z.ZodOptional<z.ZodCustom<{
|
|
52
|
+
type: "fictional-rendition";
|
|
53
|
+
} | {
|
|
54
|
+
type: "ai-generated";
|
|
55
|
+
} | {
|
|
56
|
+
type: "source-statement";
|
|
57
|
+
childType: "self-labeling" | "self-shooting" | "transshipment";
|
|
58
|
+
shootingLocation?: Xiaohongshu.Location | undefined;
|
|
59
|
+
shootingDate?: string | undefined;
|
|
60
|
+
sourceMedia?: string | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
type: "fictional-rendition";
|
|
63
|
+
} | {
|
|
64
|
+
type: "ai-generated";
|
|
65
|
+
} | {
|
|
66
|
+
type: "source-statement";
|
|
67
|
+
childType: "self-labeling" | "self-shooting" | "transshipment";
|
|
68
|
+
shootingLocation?: Xiaohongshu.Location | undefined;
|
|
69
|
+
shootingDate?: string | undefined;
|
|
70
|
+
sourceMedia?: string | undefined;
|
|
71
|
+
}>>;
|
|
72
|
+
topic: z.ZodOptional<z.ZodArray<z.ZodCustom<Xiaohongshu.Topic, Xiaohongshu.Topic>>>;
|
|
73
|
+
proxyLoc: z.ZodOptional<z.ZodString>;
|
|
74
|
+
localIP: z.ZodOptional<z.ZodString>;
|
|
75
|
+
huiwenToken: z.ZodOptional<z.ZodString>;
|
|
76
|
+
visibleRange: z.ZodEnum<{
|
|
77
|
+
public: "public";
|
|
78
|
+
private: "private";
|
|
79
|
+
friends: "friends";
|
|
80
|
+
}>;
|
|
81
|
+
isImmediatelyPublish: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
+
scheduledPublish: z.ZodOptional<z.ZodString>;
|
|
83
|
+
collectionId: z.ZodOptional<z.ZodString>;
|
|
84
|
+
collectionBind: z.ZodOptional<z.ZodCustom<{
|
|
85
|
+
id: string;
|
|
86
|
+
name: string;
|
|
87
|
+
desc: string;
|
|
88
|
+
userId: string;
|
|
89
|
+
noteNum: number;
|
|
90
|
+
viewNum: number;
|
|
91
|
+
cursor: string;
|
|
92
|
+
enabled: boolean;
|
|
93
|
+
status: number;
|
|
94
|
+
createTime: number;
|
|
95
|
+
unreadCount: number;
|
|
96
|
+
coverImage: null;
|
|
97
|
+
deeplink: string;
|
|
98
|
+
}, {
|
|
99
|
+
id: string;
|
|
100
|
+
name: string;
|
|
101
|
+
desc: string;
|
|
102
|
+
userId: string;
|
|
103
|
+
noteNum: number;
|
|
104
|
+
viewNum: number;
|
|
105
|
+
cursor: string;
|
|
106
|
+
enabled: boolean;
|
|
107
|
+
status: number;
|
|
108
|
+
createTime: number;
|
|
109
|
+
unreadCount: number;
|
|
110
|
+
coverImage: null;
|
|
111
|
+
deeplink: string;
|
|
112
|
+
}>>;
|
|
113
|
+
groupBind: z.ZodOptional<z.ZodCustom<{
|
|
114
|
+
avatar: string;
|
|
115
|
+
desc: string;
|
|
116
|
+
group_id: string;
|
|
117
|
+
group_name: string;
|
|
118
|
+
linkable: boolean;
|
|
119
|
+
}, {
|
|
120
|
+
avatar: string;
|
|
121
|
+
desc: string;
|
|
122
|
+
group_id: string;
|
|
123
|
+
group_name: string;
|
|
124
|
+
linkable: boolean;
|
|
125
|
+
}>>;
|
|
126
|
+
noteCopyBind: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
+
coProduceBind: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
+
originalBind: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
export type XiaohongshuPublishParams = z.infer<typeof XiaohongshuPublishParamsSchema>;
|
|
36
131
|
export type PublishAction = CommonAction<XiaohongshuPublishParams, string>;
|
|
37
132
|
export declare const xiaohongshuPublish: PublishAction;
|
|
38
|
-
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { PublishAction } from ".";
|
|
2
2
|
export declare const mockAction: PublishAction;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import type { ActiomCommonParams } from "../../types";
|
|
3
|
+
export interface xiaohongshuWebCommentActionParams extends ActiomCommonParams {
|
|
4
|
+
note_id: string;
|
|
5
|
+
comment_id: string;
|
|
6
|
+
action: "like" | "dislike";
|
|
7
|
+
}
|
|
8
|
+
export interface ActionResponse {
|
|
9
|
+
code: number;
|
|
10
|
+
success: boolean;
|
|
11
|
+
msg: string;
|
|
12
|
+
}
|
|
13
|
+
export type PublishAction = CommonAction<xiaohongshuWebCommentActionParams, ActionResponse | Record<string, never>>;
|
|
14
|
+
export declare const xiaohongshuWebCommentAction: PublishAction;
|