@iflyrpa/actions 4.0.4 → 4.0.5

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.
@@ -1,6 +1,6 @@
1
1
  import { type CommonAction } from "@iflyrpa/share";
2
2
  import { z } from "zod";
3
- import { bjhConfigData, douyinConfigData, shipinhaoConfigData, ttConfigData, wxConfigData, xhsConfigData } from "./types";
3
+ import { bjhConfigData, ttConfigData, wxConfigData, xhsConfigData } from "./types";
4
4
  export declare const SearchAccountInfoParamsSchema: z.ZodObject<{
5
5
  id: z.ZodOptional<z.ZodString>;
6
6
  userAgent: z.ZodOptional<z.ZodString>;
@@ -38,12 +38,10 @@ export declare const SearchAccountInfoParamsSchema: z.ZodObject<{
38
38
  token: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
39
39
  platform: z.ZodEnum<{
40
40
  baijiahao: "baijiahao";
41
- douyin: "douyin";
42
41
  toutiao: "toutiao";
43
42
  xiaohongshu: "xiaohongshu";
44
43
  weixin: "weixin";
45
- shipinhao: "shipinhao";
46
44
  }>;
47
45
  }, z.core.$strip>;
48
46
  export type SearchAccountInfoParams = z.infer<typeof SearchAccountInfoParamsSchema>;
49
- export declare const SearchAccountInfo: CommonAction<SearchAccountInfoParams, ttConfigData | xhsConfigData | wxConfigData | bjhConfigData | douyinConfigData | shipinhaoConfigData | null>;
47
+ export declare const SearchAccountInfo: CommonAction<SearchAccountInfoParams, ttConfigData | xhsConfigData | wxConfigData | bjhConfigData | null>;
@@ -41,28 +41,8 @@ export declare const bjhConfigDataSchema: z.ZodObject<{
41
41
  commentNumYesterday: z.ZodNullable<z.ZodNumber>;
42
42
  }, z.core.$strip>;
43
43
  export type bjhConfigData = z.infer<typeof bjhConfigDataSchema>;
44
- export declare const douyinConfigDataSchema: z.ZodObject<{
45
- fansNum: z.ZodNumber;
46
- favedNum: z.ZodNumber;
47
- fansNumLastWeek: z.ZodNumber;
48
- watchNumLastWeek: z.ZodNumber;
49
- likeNumLastWeek: z.ZodNumber;
50
- commentNumLastWeek: z.ZodNumber;
51
- shareNumLastWeek: z.ZodNumber;
52
- visitNumLastWeek: z.ZodNumber;
53
- }, z.core.$strip>;
54
- export type douyinConfigData = z.infer<typeof douyinConfigDataSchema>;
55
- export declare const shipinhaoConfigDataSchema: z.ZodObject<{
56
- fansNum: z.ZodNumber;
57
- feedsCount: z.ZodNumber;
58
- fansNumYesterday: z.ZodNullable<z.ZodNumber>;
59
- playNumYesterday: z.ZodNullable<z.ZodNumber>;
60
- likeNumYesterday: z.ZodNullable<z.ZodNumber>;
61
- commentNumYesterday: z.ZodNullable<z.ZodNumber>;
62
- }, z.core.$strip>;
63
- export type shipinhaoConfigData = z.infer<typeof shipinhaoConfigDataSchema>;
64
44
  export interface SearchAccountInfoResponse {
65
45
  code: number;
66
46
  message: string;
67
- data: ttConfigData | xhsConfigData | wxConfigData | bjhConfigData | douyinConfigData | shipinhaoConfigData | null;
47
+ data: ttConfigData | xhsConfigData | wxConfigData | bjhConfigData | null;
68
48
  }
@@ -45,13 +45,6 @@ export declare const FetchArticlesParamsSchema: z.ZodObject<{
45
45
  cursor: z.ZodOptional<z.ZodNumber>;
46
46
  lastPage: z.ZodOptional<z.ZodNumber>;
47
47
  containsArticle: z.ZodOptional<z.ZodBoolean>;
48
- status: z.ZodOptional<z.ZodNumber>;
49
- includeAccount: z.ZodOptional<z.ZodBoolean>;
50
- postType: z.ZodOptional<z.ZodEnum<{
51
- article: "article";
52
- video: "video";
53
- all: "all";
54
- }>>;
55
48
  }, z.core.$strip>;
56
49
  export type FetchArticlesParams = z.infer<typeof FetchArticlesParamsSchema>;
57
50
  export declare const FetchArticles: CommonAction<FetchArticlesParams, FetchArticlesData | Record<string, never>>;
@@ -50,41 +50,6 @@ export declare const XiaohongshuArticleSchema: z.ZodObject<{
50
50
  shareNum: z.ZodNumber;
51
51
  }, z.core.$strip>;
52
52
  export type XiaohongshuArticle = z.infer<typeof XiaohongshuArticleSchema>;
53
- export declare const DouyinArticleSchema: z.ZodObject<{
54
- title: z.ZodString;
55
- imageUrl: z.ZodString;
56
- createTime: z.ZodNumber;
57
- redirectUrl: z.ZodString;
58
- originalData: z.ZodOptional<z.ZodUnknown>;
59
- playNum: z.ZodNumber;
60
- likeNum: z.ZodNumber;
61
- commentNum: z.ZodNumber;
62
- shareNum: z.ZodNumber;
63
- collectNum: z.ZodNumber;
64
- awemeId: z.ZodString;
65
- awemeType: z.ZodNumber;
66
- duration: z.ZodOptional<z.ZodNumber>;
67
- status: z.ZodString;
68
- publicUrl: z.ZodString;
69
- }, z.core.$strip>;
70
- export type DouyinArticle = z.infer<typeof DouyinArticleSchema>;
71
- export declare const ShipinhaoArticleSchema: z.ZodObject<{
72
- title: z.ZodString;
73
- imageUrl: z.ZodString;
74
- createTime: z.ZodNumber;
75
- redirectUrl: z.ZodString;
76
- originalData: z.ZodOptional<z.ZodUnknown>;
77
- readNum: z.ZodNumber;
78
- likeNum: z.ZodNumber;
79
- commentNum: z.ZodNumber;
80
- forwardNum: z.ZodNumber;
81
- favNum: z.ZodNumber;
82
- objectId: z.ZodString;
83
- postType: z.ZodString;
84
- postStatus: z.ZodNumber;
85
- effectiveTime: z.ZodOptional<z.ZodNumber>;
86
- }, z.core.$strip>;
87
- export type ShipinhaoArticle = z.infer<typeof ShipinhaoArticleSchema>;
88
53
  export declare const FetchArticlesDataSchema: z.ZodObject<{
89
54
  articleCell: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
90
55
  title: z.ZodString;
@@ -129,37 +94,6 @@ export declare const FetchArticlesDataSchema: z.ZodObject<{
129
94
  commentNum: z.ZodNumber;
130
95
  collectNum: z.ZodNumber;
131
96
  shareNum: z.ZodNumber;
132
- }, z.core.$strip>, z.ZodObject<{
133
- title: z.ZodString;
134
- imageUrl: z.ZodString;
135
- createTime: z.ZodNumber;
136
- redirectUrl: z.ZodString;
137
- originalData: z.ZodOptional<z.ZodUnknown>;
138
- playNum: z.ZodNumber;
139
- likeNum: z.ZodNumber;
140
- commentNum: z.ZodNumber;
141
- shareNum: z.ZodNumber;
142
- collectNum: z.ZodNumber;
143
- awemeId: z.ZodString;
144
- awemeType: z.ZodNumber;
145
- duration: z.ZodOptional<z.ZodNumber>;
146
- status: z.ZodString;
147
- publicUrl: z.ZodString;
148
- }, z.core.$strip>, z.ZodObject<{
149
- title: z.ZodString;
150
- imageUrl: z.ZodString;
151
- createTime: z.ZodNumber;
152
- redirectUrl: z.ZodString;
153
- originalData: z.ZodOptional<z.ZodUnknown>;
154
- readNum: z.ZodNumber;
155
- likeNum: z.ZodNumber;
156
- commentNum: z.ZodNumber;
157
- forwardNum: z.ZodNumber;
158
- favNum: z.ZodNumber;
159
- objectId: z.ZodString;
160
- postType: z.ZodString;
161
- postStatus: z.ZodNumber;
162
- effectiveTime: z.ZodOptional<z.ZodNumber>;
163
97
  }, z.core.$strip>]>>>;
164
98
  timerPublish: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
165
99
  title: z.ZodString;
@@ -204,37 +138,6 @@ export declare const FetchArticlesDataSchema: z.ZodObject<{
204
138
  commentNum: z.ZodNumber;
205
139
  collectNum: z.ZodNumber;
206
140
  shareNum: z.ZodNumber;
207
- }, z.core.$strip>, z.ZodObject<{
208
- title: z.ZodString;
209
- imageUrl: z.ZodString;
210
- createTime: z.ZodNumber;
211
- redirectUrl: z.ZodString;
212
- originalData: z.ZodOptional<z.ZodUnknown>;
213
- playNum: z.ZodNumber;
214
- likeNum: z.ZodNumber;
215
- commentNum: z.ZodNumber;
216
- shareNum: z.ZodNumber;
217
- collectNum: z.ZodNumber;
218
- awemeId: z.ZodString;
219
- awemeType: z.ZodNumber;
220
- duration: z.ZodOptional<z.ZodNumber>;
221
- status: z.ZodString;
222
- publicUrl: z.ZodString;
223
- }, z.core.$strip>, z.ZodObject<{
224
- title: z.ZodString;
225
- imageUrl: z.ZodString;
226
- createTime: z.ZodNumber;
227
- redirectUrl: z.ZodString;
228
- originalData: z.ZodOptional<z.ZodUnknown>;
229
- readNum: z.ZodNumber;
230
- likeNum: z.ZodNumber;
231
- commentNum: z.ZodNumber;
232
- forwardNum: z.ZodNumber;
233
- favNum: z.ZodNumber;
234
- objectId: z.ZodString;
235
- postType: z.ZodString;
236
- postStatus: z.ZodNumber;
237
- effectiveTime: z.ZodOptional<z.ZodNumber>;
238
141
  }, z.core.$strip>]>>>;
239
142
  pagination: z.ZodOptional<z.ZodObject<{
240
143
  total: z.ZodOptional<z.ZodNumber>;
@@ -7,9 +7,6 @@ interface UploadConfig {
7
7
  concurrentLimit?: number;
8
8
  singleFileSize?: number;
9
9
  http?: Http;
10
- timeout?: number;
11
- retries?: number;
12
- retryDelay?: number;
13
10
  }
14
11
  /**
15
12
  * 上传进度回调
@@ -29,7 +26,6 @@ export declare class VideoChannelUploader {
29
26
  private concurrentLimit;
30
27
  private singleFileSize;
31
28
  private http;
32
- private reqOptions;
33
29
  private uploadTaskId;
34
30
  private partInfo;
35
31
  private md5;
@@ -11,8 +11,8 @@ export interface WxInteraction {
11
11
  import { z } from "zod";
12
12
  export declare const WxInteractionSchema: z.ZodObject<{
13
13
  Type: z.ZodEnum<{
14
- private: "private";
15
14
  public: "public";
15
+ private: "private";
16
16
  off: "off";
17
17
  }>;
18
18
  Option: z.ZodOptional<z.ZodObject<{
@@ -88,8 +88,8 @@ export declare const WeixinPublishParamsSchema: z.ZodObject<{
88
88
  wxCreationSource: z.ZodOptional<z.ZodArray<z.ZodString>>;
89
89
  wxInteraction: z.ZodOptional<z.ZodObject<{
90
90
  Type: z.ZodEnum<{
91
- private: "private";
92
91
  public: "public";
92
+ private: "private";
93
93
  off: "off";
94
94
  }>;
95
95
  Option: z.ZodOptional<z.ZodObject<{
@@ -62,8 +62,8 @@ export declare const XiaohongshuPublishParamsSchema: z.ZodObject<{
62
62
  localIP: z.ZodOptional<z.ZodString>;
63
63
  huiwenToken: z.ZodOptional<z.ZodString>;
64
64
  visibleRange: z.ZodEnum<{
65
- private: "private";
66
65
  public: "public";
66
+ private: "private";
67
67
  friends: "friends";
68
68
  }>;
69
69
  isImmediatelyPublish: z.ZodOptional<z.ZodBoolean>;