@iflyrpa/actions 1.2.28 → 1.2.29

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.
Files changed (64) hide show
  1. package/dist/actions/baijiahaoLogin/index.d.ts +5 -0
  2. package/dist/actions/baijiahaoLogin/rpa-server.d.ts +2 -0
  3. package/dist/actions/baijiahaoLogin/rpa.d.ts +2 -0
  4. package/dist/actions/baijiahaoPublish/index.d.ts +1 -0
  5. package/dist/actions/common/FansTool/index.d.ts +1 -1
  6. package/dist/actions/common/sessionCheck/index.d.ts +32 -8
  7. package/dist/actions/getBaijiaohaoConfig/index.d.ts +9 -7
  8. package/dist/actions/getXhsCollection/index.d.ts +17 -21
  9. package/dist/actions/getXhsGroup/index.d.ts +9 -7
  10. package/dist/actions/getXhsWebUnreadCount/index.d.ts +12 -0
  11. package/dist/actions/searchAccountInfo/getBjhInfo.d.ts +3 -2
  12. package/dist/actions/searchAccountInfo/getTTInfo.d.ts +3 -2
  13. package/dist/actions/searchAccountInfo/getWxInfo.d.ts +3 -2
  14. package/dist/actions/searchAccountInfo/getXhsInfo.d.ts +4 -3
  15. package/dist/actions/searchAccountInfo/index.d.ts +33 -6
  16. package/dist/actions/searchAccountInfo/types.d.ts +43 -38
  17. package/dist/actions/searchBjhUserArticle/index.d.ts +7 -0
  18. package/dist/actions/searchPublishInfo/handleBjhData.d.ts +4 -3
  19. package/dist/actions/searchPublishInfo/handleTTData.d.ts +3 -2
  20. package/dist/actions/searchPublishInfo/handleWXData.d.ts +4 -3
  21. package/dist/actions/searchPublishInfo/handleXhsData.d.ts +4 -3
  22. package/dist/actions/searchPublishInfo/index.d.ts +37 -14
  23. package/dist/actions/searchPublishInfo/types.d.ts +108 -47
  24. package/dist/actions/searchWeixinAccountCard/index.d.ts +18 -0
  25. package/dist/actions/searchWeixinUserArticle/index.d.ts +8 -0
  26. package/dist/actions/searchXhsWebConnections/index.d.ts +36 -0
  27. package/dist/actions/searchXhsWebLike/index.d.ts +73 -0
  28. package/dist/actions/searchXhsWebMentions/index.d.ts +72 -0
  29. package/dist/actions/searchXiaohongshuUserArticle/index.d.ts +7 -0
  30. package/dist/actions/toutiaoLogin/index.d.ts +5 -0
  31. package/dist/actions/toutiaoLogin/rpa-server.d.ts +2 -0
  32. package/dist/actions/toutiaoLogin/rpa.d.ts +2 -0
  33. package/dist/actions/toutiaoPublish/index.d.ts +1 -0
  34. package/dist/actions/weixinLogin/index.d.ts +5 -0
  35. package/dist/actions/weixinLogin/rpa-server.d.ts +2 -0
  36. package/dist/actions/weixinLogin/rpa.d.ts +2 -0
  37. package/dist/actions/weixinPublish/index.d.ts +2 -1
  38. package/dist/actions/xiaohongshuLogin/index.d.ts +5 -0
  39. package/dist/actions/xiaohongshuLogin/rpa-server.d.ts +2 -0
  40. package/dist/actions/xiaohongshuLogin/rpa.d.ts +2 -0
  41. package/dist/actions/xiaohongshuPublish/index.d.ts +101 -35
  42. package/dist/actions/xiaohongshuPublish/mock.d.ts +1 -1
  43. package/dist/actions/xiaohongshuPublish/rpa-server-mock.d.ts +2 -0
  44. package/dist/actions/xiaohongshuPublish/rpa-server.d.ts +2 -0
  45. package/dist/actions/xiaohongshuWebCommentAction/index.d.ts +14 -0
  46. package/dist/actions/xiaohongshuWebIntimacySearch/index.d.ts +13 -0
  47. package/dist/actions/xiaohongshuWebMsgRead/index.d.ts +12 -0
  48. package/dist/actions/xiaohongshuWebMsgReply/index.d.ts +47 -0
  49. package/dist/actions/xiaohongshuWebNoteFeed/index.d.ts +19 -0
  50. package/dist/actions/xiaohongshuWebRelationAction/index.d.ts +17 -0
  51. package/dist/actions/xiaohongshuWebSearch/index.d.ts +62 -0
  52. package/dist/bundle.js +20731 -8544
  53. package/dist/bundle.js.map +1 -1
  54. package/dist/index.d.ts +196 -20
  55. package/dist/index.js +11861 -5504
  56. package/dist/index.js.map +1 -1
  57. package/dist/index.mjs +10939 -4602
  58. package/dist/index.mjs.map +1 -1
  59. package/dist/types.d.ts +56 -15
  60. package/dist/utils/http.d.ts +7 -5
  61. package/dist/utils/index.d.ts +2 -2
  62. package/dist/utils/proxy.d.ts +8 -1
  63. package/dist/utils/xhsXsEncrypt.d.ts +201 -17
  64. package/package.json +6 -3
@@ -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;
@@ -0,0 +1,2 @@
1
+ import type { SteelAction } from "./index";
2
+ export declare const rpaServer: SteelAction;
@@ -0,0 +1,2 @@
1
+ import type { SteelAction } from "./index";
2
+ export declare const rpaAction: SteelAction;
@@ -6,6 +6,7 @@ export interface ToutiaoPublishParams extends ActiomCommonParams {
6
6
  title: string;
7
7
  content: string;
8
8
  proxyLoc?: string;
9
+ localIP?: string;
9
10
  huiwenToken?: string;
10
11
  settingInfo: {
11
12
  toutiaoCoverType: CoverType;
@@ -0,0 +1,5 @@
1
+ import { CommonAction } from "@iflyrpa/share";
2
+ import { ActionParams } from "../../types";
3
+ export type WeixinLoginParams = ActionParams;
4
+ export type SteelAction = CommonAction<ActionParams, Record<string, unknown>>;
5
+ export declare const weixinLogin: SteelAction;
@@ -0,0 +1,2 @@
1
+ import type { SteelAction } from "./index";
2
+ export declare const rpaServer: SteelAction;
@@ -0,0 +1,2 @@
1
+ import type { SteelAction } from "./index";
2
+ export declare const rpaAction: 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,2 @@
1
+ import type { SteelAction } from "./index";
2
+ export declare const rpaServer: SteelAction;
@@ -0,0 +1,2 @@
1
+ import type { SteelAction } from "./index";
2
+ export declare const rpaAction: SteelAction;
@@ -1,38 +1,104 @@
1
1
  import type { CommonAction } from "@iflyrpa/share";
2
- import type { ActiomCommonParams, Xiaohongshu } from "../../types";
3
- import { GroupDetail } from "../getXhsGroup";
4
- interface FictionalRendition {
5
- type: "fictional-rendition";
6
- }
7
- interface AIGenerated {
8
- type: "ai-generated";
9
- }
10
- interface SourceStatement {
11
- type: "source-statement";
12
- childType: "self-labeling" | "self-shooting" | "transshipment";
13
- shootingLocation?: Xiaohongshu.Location;
14
- shootingDate?: string;
15
- sourceMedia?: string;
16
- }
17
- type SelfDeclaration = FictionalRendition | AIGenerated | SourceStatement;
18
- export interface XiaohongshuPublishParams extends ActiomCommonParams {
19
- banners: string[];
20
- title: string;
21
- content: string;
22
- address?: Xiaohongshu.Location;
23
- selfDeclaration?: SelfDeclaration;
24
- topic?: Xiaohongshu.Topic[];
25
- proxyLoc?: string;
26
- huiwenToken?: string;
27
- visibleRange: "public" | "private" | "friends";
28
- isImmediatelyPublish?: boolean;
29
- scheduledPublish?: string;
30
- collectionId?: string;
31
- groupBind?: GroupDetail;
32
- noteCopyBind?: boolean;
33
- coProduceBind?: boolean;
34
- originalBind?: boolean;
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
+ name: z.ZodString;
8
+ value: z.ZodString;
9
+ domain: z.ZodOptional<z.ZodString>;
10
+ path: z.ZodOptional<z.ZodString>;
11
+ expires: z.ZodOptional<z.ZodNumber>;
12
+ httpOnly: z.ZodOptional<z.ZodBoolean>;
13
+ secure: z.ZodOptional<z.ZodBoolean>;
14
+ }, z.core.$catchall<z.ZodUnknown>>>;
15
+ actionType: z.ZodOptional<z.ZodEnum<{
16
+ mockApi: "mockApi";
17
+ rpa: "rpa";
18
+ server: "server";
19
+ }>>;
20
+ accountId: z.ZodOptional<z.ZodNumber>;
21
+ articleId: z.ZodOptional<z.ZodString>;
22
+ saveType: z.ZodOptional<z.ZodString>;
23
+ banners: z.ZodArray<z.ZodString>;
24
+ title: z.ZodString;
25
+ content: z.ZodString;
26
+ address: z.ZodOptional<z.ZodCustom<Xiaohongshu.Location, Xiaohongshu.Location>>;
27
+ selfDeclaration: z.ZodOptional<z.ZodCustom<{
28
+ type: "fictional-rendition";
29
+ } | {
30
+ type: "ai-generated";
31
+ } | {
32
+ type: "source-statement";
33
+ childType: "self-labeling" | "self-shooting" | "transshipment";
34
+ shootingLocation?: Xiaohongshu.Location | undefined;
35
+ shootingDate?: string | undefined;
36
+ sourceMedia?: string | undefined;
37
+ }, {
38
+ type: "fictional-rendition";
39
+ } | {
40
+ type: "ai-generated";
41
+ } | {
42
+ type: "source-statement";
43
+ childType: "self-labeling" | "self-shooting" | "transshipment";
44
+ shootingLocation?: Xiaohongshu.Location | undefined;
45
+ shootingDate?: string | undefined;
46
+ sourceMedia?: string | undefined;
47
+ }>>;
48
+ topic: z.ZodOptional<z.ZodArray<z.ZodCustom<Xiaohongshu.Topic, Xiaohongshu.Topic>>>;
49
+ proxyLoc: z.ZodOptional<z.ZodString>;
50
+ localIP: z.ZodOptional<z.ZodString>;
51
+ huiwenToken: z.ZodOptional<z.ZodString>;
52
+ visibleRange: z.ZodEnum<{
53
+ public: "public";
54
+ private: "private";
55
+ friends: "friends";
56
+ }>;
57
+ isImmediatelyPublish: z.ZodOptional<z.ZodBoolean>;
58
+ scheduledPublish: z.ZodOptional<z.ZodString>;
59
+ collectionId: z.ZodOptional<z.ZodString>;
60
+ collectionBind: z.ZodOptional<z.ZodCustom<{
61
+ id: string;
62
+ name: string;
63
+ icon: string;
64
+ note_num: number;
65
+ view_num: number;
66
+ paid: number;
67
+ type: number;
68
+ collected: boolean;
69
+ desc: string;
70
+ total_episodes: number;
71
+ create_time: number;
72
+ }, {
73
+ id: string;
74
+ name: string;
75
+ icon: string;
76
+ note_num: number;
77
+ view_num: number;
78
+ paid: number;
79
+ type: number;
80
+ collected: boolean;
81
+ desc: string;
82
+ total_episodes: number;
83
+ create_time: number;
84
+ }>>;
85
+ groupBind: z.ZodOptional<z.ZodCustom<{
86
+ avatar: string;
87
+ desc: string;
88
+ group_id: string;
89
+ group_name: string;
90
+ linkable: boolean;
91
+ }, {
92
+ avatar: string;
93
+ desc: string;
94
+ group_id: string;
95
+ group_name: string;
96
+ linkable: boolean;
97
+ }>>;
98
+ noteCopyBind: z.ZodOptional<z.ZodBoolean>;
99
+ coProduceBind: z.ZodOptional<z.ZodBoolean>;
100
+ originalBind: z.ZodOptional<z.ZodBoolean>;
101
+ }, z.core.$strip>;
102
+ export type XiaohongshuPublishParams = z.infer<typeof XiaohongshuPublishParamsSchema>;
36
103
  export type PublishAction = CommonAction<XiaohongshuPublishParams, string>;
37
104
  export declare const xiaohongshuPublish: PublishAction;
38
- export {};
@@ -1,2 +1,2 @@
1
- import { type PublishAction } from ".";
1
+ import type { PublishAction } from ".";
2
2
  export declare const mockAction: PublishAction;
@@ -0,0 +1,2 @@
1
+ import type { PublishAction } from ".";
2
+ export declare const rpaAction_Server_Mock: PublishAction;
@@ -0,0 +1,2 @@
1
+ import type { PublishAction } from "./index";
2
+ export declare const rpaAction_Server: 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;
@@ -0,0 +1,13 @@
1
+ import { type CommonAction } from "@iflyrpa/share";
2
+ import type { ActiomCommonParams } from "../../types";
3
+ export interface searchXhsWebIntimacyListParams extends ActiomCommonParams {
4
+ searchValue?: string;
5
+ }
6
+ export interface Intimacy {
7
+ images: string;
8
+ rid: string;
9
+ userid: string;
10
+ nickname: string;
11
+ }
12
+ export type PublishAction = CommonAction<searchXhsWebIntimacyListParams, Intimacy[] | []>;
13
+ export declare const xiaohongshuWebIntimacySearch: PublishAction;
@@ -0,0 +1,12 @@
1
+ import { type CommonAction } from "@iflyrpa/share";
2
+ import type { ActiomCommonParams } from "../../types";
3
+ export interface xiaohongshuWebMsgReadParams extends ActiomCommonParams {
4
+ type: "mentions" | "likes" | "connections";
5
+ }
6
+ export interface ReadResponse {
7
+ code: number;
8
+ success: boolean;
9
+ msg: string;
10
+ }
11
+ export type PublishAction = CommonAction<xiaohongshuWebMsgReadParams, ReadResponse | Record<string, never>>;
12
+ export declare const xiaohongshuWebMsgRead: PublishAction;
@@ -0,0 +1,47 @@
1
+ import { type CommonAction } from "@iflyrpa/share";
2
+ import type { ActiomCommonParams } from "../../types";
3
+ export interface xiaohongshuWebMsgReplyParams extends ActiomCommonParams {
4
+ at_users?: {
5
+ user_id: string;
6
+ nickname: string;
7
+ }[];
8
+ note_id: string;
9
+ target_comment_id: string;
10
+ content: string;
11
+ }
12
+ export interface ReplyResponse {
13
+ code: number;
14
+ success: boolean;
15
+ msg: string;
16
+ data: ReplyDataDetail;
17
+ }
18
+ export interface ReplyDataDetail {
19
+ time: number;
20
+ toast: string;
21
+ comment: {
22
+ id: string;
23
+ note_id: string;
24
+ status: number;
25
+ content: string;
26
+ liked: boolean;
27
+ like_count: string;
28
+ show_tags: string[];
29
+ ip_location: string;
30
+ target_comment: {
31
+ id: string;
32
+ user_info: {
33
+ user_id: string;
34
+ nickname: string;
35
+ image: string;
36
+ };
37
+ };
38
+ user_info: {
39
+ nickname: string;
40
+ image: string;
41
+ user_id: string;
42
+ };
43
+ create_time: number;
44
+ };
45
+ }
46
+ export type PublishAction = CommonAction<xiaohongshuWebMsgReplyParams, ReplyDataDetail | Record<string, never>>;
47
+ export declare const xiaohongshuWebMsgReply: PublishAction;
@@ -0,0 +1,19 @@
1
+ import { type CommonAction } from "@iflyrpa/share";
2
+ import type { ActiomCommonParams } from "../../types";
3
+ export interface xiaohongshuWebNoteFeedParams extends ActiomCommonParams {
4
+ source_note_id: string;
5
+ xsec_token: string;
6
+ }
7
+ export interface FeedResponse {
8
+ code: number;
9
+ success: boolean;
10
+ msg: string;
11
+ data: {
12
+ items: FeedRespomseDetail[];
13
+ } | null;
14
+ }
15
+ export interface FeedRespomseDetail {
16
+ note_card: Record<string, unknown>;
17
+ }
18
+ export type PublishAction = CommonAction<xiaohongshuWebNoteFeedParams, FeedRespomseDetail[] | Record<string, unknown>>;
19
+ export declare const xiaohongshuWebNoteFeed: PublishAction;
@@ -0,0 +1,17 @@
1
+ import { type CommonAction } from "@iflyrpa/share";
2
+ import type { ActiomCommonParams } from "../../types";
3
+ export interface xiaohongshuWebRelationParams extends ActiomCommonParams {
4
+ action: "follow" | "unfollow";
5
+ target_user_id: string;
6
+ }
7
+ export interface RelationResponse {
8
+ code: number;
9
+ success: boolean;
10
+ msg: string;
11
+ data: RelationDetail;
12
+ }
13
+ export interface RelationDetail {
14
+ fstatus: string | null;
15
+ }
16
+ export type PublishAction = CommonAction<xiaohongshuWebRelationParams, RelationDetail | Record<string, never>>;
17
+ export declare const xiaohongshuWebRelationAction: PublishAction;
@@ -0,0 +1,62 @@
1
+ import { type CommonAction } from "@iflyrpa/share";
2
+ import type { ActiomCommonParams } from "../../types";
3
+ export interface XhsWebSearchParams extends ActiomCommonParams {
4
+ keyword: string;
5
+ page: number;
6
+ page_size: number;
7
+ sort_type: "general" | "time_descending" | "popular_descending";
8
+ time_filter: "不限" | "一周内";
9
+ }
10
+ export interface SearchResponse {
11
+ code: number;
12
+ success: boolean;
13
+ msg: string;
14
+ data: {
15
+ has_more: boolean;
16
+ item: NoteDetail[];
17
+ };
18
+ }
19
+ export interface NoteDetail {
20
+ xsec_token: string;
21
+ id: string;
22
+ model_type: string;
23
+ note_card: {
24
+ type: string;
25
+ display_title: string;
26
+ user: {
27
+ nick_name: string;
28
+ avatar: string;
29
+ user_id: string;
30
+ nickname: string;
31
+ xsec_token: string;
32
+ };
33
+ interact_info: {
34
+ shared_count: string;
35
+ liked: boolean;
36
+ liked_count: string;
37
+ collected: boolean;
38
+ collected_count: string;
39
+ comment_count: string;
40
+ };
41
+ cover: {
42
+ height: number;
43
+ width: number;
44
+ url_default: string;
45
+ url_pre: string;
46
+ };
47
+ image_list: Array<{
48
+ height: number;
49
+ width: number;
50
+ info_list: Array<{
51
+ image_scene: string;
52
+ url: string;
53
+ }>;
54
+ }>;
55
+ corner_tag_info: Array<{
56
+ type: string;
57
+ text: string;
58
+ }>;
59
+ };
60
+ }
61
+ export type PublishAction = CommonAction<XhsWebSearchParams, Record<string, unknown>>;
62
+ export declare const xiaohongshuWebSearch: PublishAction;