@iflyrpa/actions 1.2.32 → 2.0.0-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 +3 -3
- package/dist/actions/baijiahaoPublish/index.d.ts +6 -0
- package/dist/actions/common/sessionCheck/index.d.ts +12 -0
- package/dist/actions/douyinGetCollection/index.d.ts +27 -0
- package/dist/actions/douyinGetCollection/schema.d.ts +33 -0
- package/dist/actions/douyinGetHot/index.d.ts +30 -0
- package/dist/actions/douyinGetHot/schema.d.ts +33 -0
- package/dist/actions/douyinGetLocation/index.d.ts +30 -0
- package/dist/actions/douyinGetLocation/schema.d.ts +33 -0
- package/dist/actions/douyinGetMusic/index.d.ts +33 -0
- package/dist/actions/douyinGetMusic/schema.d.ts +33 -0
- package/dist/actions/douyinGetMusicByCategory/index.d.ts +26 -0
- package/dist/actions/douyinGetMusicByCategory/schema.d.ts +34 -0
- package/dist/actions/douyinGetMusicCategory/index.d.ts +46 -0
- package/dist/actions/douyinGetMusicCategory/schema.d.ts +33 -0
- package/dist/actions/douyinGetTopics/index.d.ts +27 -0
- package/dist/actions/douyinGetTopics/schema.d.ts +33 -0
- package/dist/actions/douyinLogin/index.d.ts +3 -3
- package/dist/actions/douyinPublish/index.d.ts +102 -0
- package/dist/actions/douyinPublish/mock.d.ts +2 -0
- package/dist/actions/douyinPublish/rpa.d.ts +2 -0
- package/dist/actions/searchAccountInfo/index.d.ts +6 -0
- package/dist/actions/searchPublishInfo/index.d.ts +6 -0
- package/dist/actions/toutiaoLogin/index.d.ts +3 -3
- package/dist/actions/toutiaoPublish/index.d.ts +6 -0
- package/dist/actions/weixinLogin/index.d.ts +3 -3
- package/dist/actions/weixinPublish/index.d.ts +6 -0
- package/dist/actions/xiaohongshuLogin/index.d.ts +3 -3
- package/dist/actions/xiaohongshuPublish/index.d.ts +6 -0
- package/dist/actions/xiaohongshuWebSearch/index.d.ts +6 -0
- package/dist/bundle.js +2386 -619
- package/dist/bundle.js.map +1 -1
- package/dist/index.d.ts +49 -1
- package/dist/index.js +2378 -606
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2372 -588
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +15 -27
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommonAction } from "@iflyrpa/share";
|
|
2
|
-
import {
|
|
3
|
-
export type BaijiahaoLoginParams =
|
|
4
|
-
export type SteelAction = CommonAction<
|
|
2
|
+
import { ActiomCommonParams } from "../../types";
|
|
3
|
+
export type BaijiahaoLoginParams = ActiomCommonParams;
|
|
4
|
+
export type SteelAction = CommonAction<ActiomCommonParams, Record<string, unknown>>;
|
|
5
5
|
export declare const baijiahaoLogin: SteelAction;
|
|
@@ -2,6 +2,12 @@ import type { CommonAction } from "@iflyrpa/share";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { ActiomCommonParams } from "../../types";
|
|
4
4
|
export declare const BaijiahaoPublishParamsSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
7
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
8
|
+
width: z.ZodNumber;
|
|
9
|
+
height: z.ZodNumber;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
5
11
|
url: z.ZodOptional<z.ZodString>;
|
|
6
12
|
cookies: z.ZodArray<z.ZodObject<{
|
|
7
13
|
name: z.ZodString;
|
|
@@ -6,6 +6,12 @@ export declare const SessionCheckResultSchema: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
export type sessionCheckResult = z.infer<typeof SessionCheckResultSchema>;
|
|
8
8
|
export declare const WxBjhSessionParamsSchema: z.ZodObject<{
|
|
9
|
+
id: z.ZodOptional<z.ZodString>;
|
|
10
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
11
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
12
|
+
width: z.ZodNumber;
|
|
13
|
+
height: z.ZodNumber;
|
|
14
|
+
}, z.core.$strip>>>;
|
|
9
15
|
url: z.ZodOptional<z.ZodString>;
|
|
10
16
|
cookies: z.ZodArray<z.ZodObject<{
|
|
11
17
|
name: z.ZodString;
|
|
@@ -34,7 +40,13 @@ export type ttSessionCheck = CommonAction<ActiomCommonParams, sessionCheckResult
|
|
|
34
40
|
export type wxSessionCheck = CommonAction<WxBjhSessionParams, sessionCheckResult>;
|
|
35
41
|
export type xhsSessionCheck = CommonAction<ActiomCommonParams, sessionCheckResult>;
|
|
36
42
|
export type bjhSessionCheck = CommonAction<WxBjhSessionParams, sessionCheckResult>;
|
|
43
|
+
export type dySessionCheck = CommonAction<ActiomCommonParams, sessionCheckResult>;
|
|
37
44
|
export declare const TTSessionCheck: ttSessionCheck;
|
|
38
45
|
export declare const WxSessionCheck: wxSessionCheck;
|
|
39
46
|
export declare const XhsSessionCheck: xhsSessionCheck;
|
|
40
47
|
export declare const BjhSessionCheck: bjhSessionCheck;
|
|
48
|
+
/**
|
|
49
|
+
* 抖音创作者平台 Session 检查
|
|
50
|
+
* 通过调用创作者平台用户信息接口验证登录状态
|
|
51
|
+
*/
|
|
52
|
+
export declare const DySessionCheck: dySessionCheck;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { DouyinGetCollectionParamsSchema } from "./schema";
|
|
4
|
+
export type DouyinGetCollectionParams = z.infer<typeof DouyinGetCollectionParamsSchema>;
|
|
5
|
+
export { DouyinGetCollectionParamsSchema } from "./schema";
|
|
6
|
+
export interface Collection {
|
|
7
|
+
mix_id: string;
|
|
8
|
+
mix_name: string;
|
|
9
|
+
mix_desc: string;
|
|
10
|
+
cover_url: string;
|
|
11
|
+
video_count: number;
|
|
12
|
+
}
|
|
13
|
+
export interface DouyinCollectionResponse {
|
|
14
|
+
status_code: number;
|
|
15
|
+
status_msg: string;
|
|
16
|
+
mix_list?: Collection[];
|
|
17
|
+
total?: number;
|
|
18
|
+
data?: {
|
|
19
|
+
mix_list?: Collection[];
|
|
20
|
+
total?: number;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export type DouyinGetCollectionAction = CommonAction<DouyinGetCollectionParams, {
|
|
24
|
+
collections: Collection[];
|
|
25
|
+
total: number;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const douyinGetCollection: DouyinGetCollectionAction;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DouyinGetCollectionParamsSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
5
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6
|
+
width: z.ZodNumber;
|
|
7
|
+
height: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
cookies: z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
value: z.ZodString;
|
|
13
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
14
|
+
path: z.ZodOptional<z.ZodString>;
|
|
15
|
+
expires: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
19
|
+
actionType: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
mockApi: "mockApi";
|
|
21
|
+
rpa: "rpa";
|
|
22
|
+
server: "server";
|
|
23
|
+
}>>;
|
|
24
|
+
accountId: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
proxyLoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
localIP: z.ZodOptional<z.ZodString>;
|
|
27
|
+
huiwenToken: z.ZodOptional<z.ZodString>;
|
|
28
|
+
articleId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
saveType: z.ZodOptional<z.ZodString>;
|
|
30
|
+
keyword: z.ZodOptional<z.ZodString>;
|
|
31
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export type DouyinGetCollectionParams = z.infer<typeof DouyinGetCollectionParamsSchema>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { DouyinGetHotParamsSchema } from "./schema";
|
|
4
|
+
export type DouyinGetHotParams = z.infer<typeof DouyinGetHotParamsSchema>;
|
|
5
|
+
export { DouyinGetHotParamsSchema } from "./schema";
|
|
6
|
+
export interface Hot {
|
|
7
|
+
sentence_id: string;
|
|
8
|
+
group_id: string;
|
|
9
|
+
word: string;
|
|
10
|
+
hot_value: number;
|
|
11
|
+
word_cover: {
|
|
12
|
+
url_list: string[];
|
|
13
|
+
};
|
|
14
|
+
video_count: number;
|
|
15
|
+
word_type: number;
|
|
16
|
+
}
|
|
17
|
+
export interface DouyinHotResponse {
|
|
18
|
+
status_code: number;
|
|
19
|
+
status_msg: string;
|
|
20
|
+
sentences?: Hot[];
|
|
21
|
+
extra?: {
|
|
22
|
+
logid: string;
|
|
23
|
+
now: number;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export type DouyinGetHotAction = CommonAction<DouyinGetHotParams, {
|
|
27
|
+
hot: Hot[];
|
|
28
|
+
total: number;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const douyinGetHot: DouyinGetHotAction;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DouyinGetHotParamsSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
5
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6
|
+
width: z.ZodNumber;
|
|
7
|
+
height: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
cookies: z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
value: z.ZodString;
|
|
13
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
14
|
+
path: z.ZodOptional<z.ZodString>;
|
|
15
|
+
expires: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
19
|
+
actionType: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
mockApi: "mockApi";
|
|
21
|
+
rpa: "rpa";
|
|
22
|
+
server: "server";
|
|
23
|
+
}>>;
|
|
24
|
+
accountId: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
proxyLoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
localIP: z.ZodOptional<z.ZodString>;
|
|
27
|
+
huiwenToken: z.ZodOptional<z.ZodString>;
|
|
28
|
+
articleId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
saveType: z.ZodOptional<z.ZodString>;
|
|
30
|
+
query: z.ZodOptional<z.ZodString>;
|
|
31
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export type DouyinGetHotParams = z.infer<typeof DouyinGetHotParamsSchema>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { DouyinGetLocationParamsSchema } from "./schema";
|
|
4
|
+
export type DouyinGetLocationParams = z.infer<typeof DouyinGetLocationParamsSchema>;
|
|
5
|
+
export { DouyinGetLocationParamsSchema } from "./schema";
|
|
6
|
+
export interface Location {
|
|
7
|
+
poi_id: string;
|
|
8
|
+
poi_name: string;
|
|
9
|
+
poi_address: string;
|
|
10
|
+
longitude: number;
|
|
11
|
+
latitude: number;
|
|
12
|
+
distance: number;
|
|
13
|
+
city_name: string;
|
|
14
|
+
district_name: string;
|
|
15
|
+
}
|
|
16
|
+
export interface DouyinLocationResponse {
|
|
17
|
+
status_code: number;
|
|
18
|
+
status_msg: string;
|
|
19
|
+
poi_list?: Location[];
|
|
20
|
+
total?: number;
|
|
21
|
+
data?: {
|
|
22
|
+
poi_list?: Location[];
|
|
23
|
+
total?: number;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export type DouyinGetLocationAction = CommonAction<DouyinGetLocationParams, {
|
|
27
|
+
locations: Location[];
|
|
28
|
+
total: number;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const douyinGetLocation: DouyinGetLocationAction;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DouyinGetLocationParamsSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
5
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6
|
+
width: z.ZodNumber;
|
|
7
|
+
height: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
cookies: z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
value: z.ZodString;
|
|
13
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
14
|
+
path: z.ZodOptional<z.ZodString>;
|
|
15
|
+
expires: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
19
|
+
actionType: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
mockApi: "mockApi";
|
|
21
|
+
rpa: "rpa";
|
|
22
|
+
server: "server";
|
|
23
|
+
}>>;
|
|
24
|
+
accountId: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
proxyLoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
localIP: z.ZodOptional<z.ZodString>;
|
|
27
|
+
huiwenToken: z.ZodOptional<z.ZodString>;
|
|
28
|
+
articleId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
saveType: z.ZodOptional<z.ZodString>;
|
|
30
|
+
keyword: z.ZodOptional<z.ZodString>;
|
|
31
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export type DouyinGetLocationParams = z.infer<typeof DouyinGetLocationParamsSchema>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { DouyinGetMusicParamsSchema } from "./schema";
|
|
4
|
+
export type DouyinGetMusicParams = z.infer<typeof DouyinGetMusicParamsSchema>;
|
|
5
|
+
export { DouyinGetMusicParamsSchema } from "./schema";
|
|
6
|
+
export interface Music {
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
author: string;
|
|
10
|
+
duration: number;
|
|
11
|
+
url: string;
|
|
12
|
+
cover_url: string;
|
|
13
|
+
}
|
|
14
|
+
export interface DouyinMusicResponse {
|
|
15
|
+
status_code: number;
|
|
16
|
+
status_msg: string;
|
|
17
|
+
music?: Music[];
|
|
18
|
+
total?: number;
|
|
19
|
+
data?: {
|
|
20
|
+
music_list?: Music[];
|
|
21
|
+
total?: number;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface DouyinMusicAuthResponse {
|
|
25
|
+
status_code: number;
|
|
26
|
+
status_msg: string;
|
|
27
|
+
signature: string;
|
|
28
|
+
}
|
|
29
|
+
export type DouyinGetMusicAction = CommonAction<DouyinGetMusicParams, {
|
|
30
|
+
music: Music[];
|
|
31
|
+
total: number;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const douyinGetMusic: DouyinGetMusicAction;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DouyinGetMusicParamsSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
5
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6
|
+
width: z.ZodNumber;
|
|
7
|
+
height: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
cookies: z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
value: z.ZodString;
|
|
13
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
14
|
+
path: z.ZodOptional<z.ZodString>;
|
|
15
|
+
expires: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
19
|
+
actionType: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
mockApi: "mockApi";
|
|
21
|
+
rpa: "rpa";
|
|
22
|
+
server: "server";
|
|
23
|
+
}>>;
|
|
24
|
+
accountId: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
proxyLoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
localIP: z.ZodOptional<z.ZodString>;
|
|
27
|
+
huiwenToken: z.ZodOptional<z.ZodString>;
|
|
28
|
+
articleId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
saveType: z.ZodOptional<z.ZodString>;
|
|
30
|
+
keyword: z.ZodOptional<z.ZodString>;
|
|
31
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export type DouyinGetMusicParams = z.infer<typeof DouyinGetMusicParamsSchema>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { DouyinGetMusicByCategoryParamsSchema } from "./schema";
|
|
4
|
+
export type DouyinGetMusicByCategoryParams = z.infer<typeof DouyinGetMusicByCategoryParamsSchema>;
|
|
5
|
+
export { DouyinGetMusicByCategoryParamsSchema } from "./schema";
|
|
6
|
+
export interface Song {
|
|
7
|
+
cover_url: string;
|
|
8
|
+
duration: number;
|
|
9
|
+
music_author: string;
|
|
10
|
+
music_id: string;
|
|
11
|
+
music_name: string;
|
|
12
|
+
play_url: string;
|
|
13
|
+
user_count: number;
|
|
14
|
+
}
|
|
15
|
+
export interface DouyinCollectionResponse {
|
|
16
|
+
status_code: number;
|
|
17
|
+
status_msg: string;
|
|
18
|
+
songs?: Song[];
|
|
19
|
+
data?: {
|
|
20
|
+
songs?: Song[];
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export type DouyinGetMusicByCategoryAction = CommonAction<DouyinGetMusicByCategoryParams, {
|
|
24
|
+
songs: Song[];
|
|
25
|
+
}>;
|
|
26
|
+
export declare const douyinGetMusicByCategory: DouyinGetMusicByCategoryAction;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DouyinGetMusicByCategoryParamsSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
5
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6
|
+
width: z.ZodNumber;
|
|
7
|
+
height: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
cookies: z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
value: z.ZodString;
|
|
13
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
14
|
+
path: z.ZodOptional<z.ZodString>;
|
|
15
|
+
expires: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
19
|
+
actionType: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
mockApi: "mockApi";
|
|
21
|
+
rpa: "rpa";
|
|
22
|
+
server: "server";
|
|
23
|
+
}>>;
|
|
24
|
+
accountId: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
proxyLoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
localIP: z.ZodOptional<z.ZodString>;
|
|
27
|
+
huiwenToken: z.ZodOptional<z.ZodString>;
|
|
28
|
+
articleId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
saveType: z.ZodOptional<z.ZodString>;
|
|
30
|
+
category_id: z.ZodOptional<z.ZodString>;
|
|
31
|
+
type: z.ZodOptional<z.ZodString>;
|
|
32
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type DouyinGetMusicByCategoryParams = z.infer<typeof DouyinGetMusicByCategoryParamsSchema>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export declare const DouyinGetMusicCategoryParamsSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodOptional<z.ZodString>;
|
|
5
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
6
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
7
|
+
width: z.ZodNumber;
|
|
8
|
+
height: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>>>;
|
|
10
|
+
url: z.ZodOptional<z.ZodString>;
|
|
11
|
+
cookies: z.ZodArray<z.ZodObject<{
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
value: z.ZodString;
|
|
14
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
15
|
+
path: z.ZodOptional<z.ZodString>;
|
|
16
|
+
expires: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
20
|
+
actionType: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
mockApi: "mockApi";
|
|
22
|
+
rpa: "rpa";
|
|
23
|
+
server: "server";
|
|
24
|
+
}>>;
|
|
25
|
+
accountId: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
proxyLoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
localIP: z.ZodOptional<z.ZodString>;
|
|
28
|
+
huiwenToken: z.ZodOptional<z.ZodString>;
|
|
29
|
+
articleId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
saveType: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type DouyinGetMusicCategoryParams = z.infer<typeof DouyinGetMusicCategoryParamsSchema>;
|
|
33
|
+
export interface Category {
|
|
34
|
+
category_id: string;
|
|
35
|
+
category_name: string;
|
|
36
|
+
type: string;
|
|
37
|
+
}
|
|
38
|
+
export interface DouyinMusicCategoryResponse {
|
|
39
|
+
status_code: number;
|
|
40
|
+
status_msg: string;
|
|
41
|
+
categories?: Category[];
|
|
42
|
+
}
|
|
43
|
+
export type DouyinGetMusicCategoryAction = CommonAction<DouyinGetMusicCategoryParams, {
|
|
44
|
+
categorys: Category[];
|
|
45
|
+
}>;
|
|
46
|
+
export declare const douyinGetMusicCategory: DouyinGetMusicCategoryAction;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DouyinGetMusicParamsSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
5
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6
|
+
width: z.ZodNumber;
|
|
7
|
+
height: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
cookies: z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
value: z.ZodString;
|
|
13
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
14
|
+
path: z.ZodOptional<z.ZodString>;
|
|
15
|
+
expires: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
19
|
+
actionType: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
mockApi: "mockApi";
|
|
21
|
+
rpa: "rpa";
|
|
22
|
+
server: "server";
|
|
23
|
+
}>>;
|
|
24
|
+
accountId: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
proxyLoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
localIP: z.ZodOptional<z.ZodString>;
|
|
27
|
+
huiwenToken: z.ZodOptional<z.ZodString>;
|
|
28
|
+
articleId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
saveType: z.ZodOptional<z.ZodString>;
|
|
30
|
+
keyword: z.ZodOptional<z.ZodString>;
|
|
31
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export type DouyinGetMusicParams = z.infer<typeof DouyinGetMusicParamsSchema>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { DouyinGetTopicsParamsSchema } from "./schema";
|
|
4
|
+
export type DouyinGetTopicsParams = z.infer<typeof DouyinGetTopicsParamsSchema>;
|
|
5
|
+
export { DouyinGetTopicsParamsSchema } from "./schema";
|
|
6
|
+
export interface Topic {
|
|
7
|
+
group_id: string;
|
|
8
|
+
cid: string;
|
|
9
|
+
cha_name: string;
|
|
10
|
+
tag: number;
|
|
11
|
+
view_count: number;
|
|
12
|
+
}
|
|
13
|
+
export interface DouyinTopicsResponse {
|
|
14
|
+
status_code: number;
|
|
15
|
+
status_msg: string;
|
|
16
|
+
sug_list?: Topic[];
|
|
17
|
+
total?: number;
|
|
18
|
+
data?: {
|
|
19
|
+
sug_list?: Topic[];
|
|
20
|
+
total?: number;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export type DouyinGetTopicsAction = CommonAction<DouyinGetTopicsParams, {
|
|
24
|
+
topics: Topic[];
|
|
25
|
+
total: number;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const douyinGetTopics: DouyinGetTopicsAction;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DouyinGetTopicsParamsSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
5
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
6
|
+
width: z.ZodNumber;
|
|
7
|
+
height: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
cookies: z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
value: z.ZodString;
|
|
13
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
14
|
+
path: z.ZodOptional<z.ZodString>;
|
|
15
|
+
expires: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
19
|
+
actionType: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
mockApi: "mockApi";
|
|
21
|
+
rpa: "rpa";
|
|
22
|
+
server: "server";
|
|
23
|
+
}>>;
|
|
24
|
+
accountId: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
proxyLoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
localIP: z.ZodOptional<z.ZodString>;
|
|
27
|
+
huiwenToken: z.ZodOptional<z.ZodString>;
|
|
28
|
+
articleId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
saveType: z.ZodOptional<z.ZodString>;
|
|
30
|
+
keyword: z.ZodOptional<z.ZodString>;
|
|
31
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export type DouyinGetTopicsParams = z.infer<typeof DouyinGetTopicsParamsSchema>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommonAction } from "@iflyrpa/share";
|
|
2
|
-
import {
|
|
3
|
-
export type DouyinLoginParams =
|
|
4
|
-
export type SteelAction = CommonAction<
|
|
2
|
+
import { ActiomCommonParams } from "../../types";
|
|
3
|
+
export type DouyinLoginParams = ActiomCommonParams;
|
|
4
|
+
export type SteelAction = CommonAction<ActiomCommonParams, Record<string, unknown>>;
|
|
5
5
|
export declare const douyinLogin: SteelAction;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { CommonAction } from "@iflyrpa/share";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export declare const DouyinPublishParamsSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodOptional<z.ZodString>;
|
|
5
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
6
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
7
|
+
width: z.ZodNumber;
|
|
8
|
+
height: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>>>;
|
|
10
|
+
url: z.ZodOptional<z.ZodString>;
|
|
11
|
+
cookies: z.ZodArray<z.ZodObject<{
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
value: z.ZodString;
|
|
14
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
15
|
+
path: z.ZodOptional<z.ZodString>;
|
|
16
|
+
expires: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
20
|
+
actionType: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
mockApi: "mockApi";
|
|
22
|
+
rpa: "rpa";
|
|
23
|
+
server: "server";
|
|
24
|
+
}>>;
|
|
25
|
+
accountId: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
huiwenToken: z.ZodOptional<z.ZodString>;
|
|
27
|
+
articleId: z.ZodOptional<z.ZodString>;
|
|
28
|
+
saveType: z.ZodOptional<z.ZodString>;
|
|
29
|
+
banners: z.ZodArray<z.ZodString>;
|
|
30
|
+
title: z.ZodString;
|
|
31
|
+
content: z.ZodString;
|
|
32
|
+
coverImage: z.ZodOptional<z.ZodString>;
|
|
33
|
+
videoFile: z.ZodOptional<z.ZodString>;
|
|
34
|
+
address: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
latitude: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
longitude: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
selfDeclaration: z.ZodOptional<z.ZodCustom<{
|
|
41
|
+
type: "fictional-rendition";
|
|
42
|
+
} | {
|
|
43
|
+
type: "ai-generated";
|
|
44
|
+
} | {
|
|
45
|
+
type: "source-statement";
|
|
46
|
+
childType: "self-labeling" | "self-shooting" | "transshipment";
|
|
47
|
+
shootingLocation?: {
|
|
48
|
+
id: string;
|
|
49
|
+
name: string;
|
|
50
|
+
latitude?: number | undefined;
|
|
51
|
+
longitude?: number | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
shootingDate?: string | undefined;
|
|
54
|
+
sourceMedia?: string | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
type: "fictional-rendition";
|
|
57
|
+
} | {
|
|
58
|
+
type: "ai-generated";
|
|
59
|
+
} | {
|
|
60
|
+
type: "source-statement";
|
|
61
|
+
childType: "self-labeling" | "self-shooting" | "transshipment";
|
|
62
|
+
shootingLocation?: {
|
|
63
|
+
id: string;
|
|
64
|
+
name: string;
|
|
65
|
+
latitude?: number | undefined;
|
|
66
|
+
longitude?: number | undefined;
|
|
67
|
+
} | undefined;
|
|
68
|
+
shootingDate?: string | undefined;
|
|
69
|
+
sourceMedia?: string | undefined;
|
|
70
|
+
}>>;
|
|
71
|
+
topic: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
word: z.ZodString;
|
|
74
|
+
}, z.core.$strip>>>;
|
|
75
|
+
proxyLoc: z.ZodOptional<z.ZodString>;
|
|
76
|
+
localIP: z.ZodOptional<z.ZodString>;
|
|
77
|
+
visibleRange: z.ZodOptional<z.ZodEnum<{
|
|
78
|
+
1: "1";
|
|
79
|
+
2: "2";
|
|
80
|
+
3: "3";
|
|
81
|
+
}>>;
|
|
82
|
+
isImmediatelyPublish: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
+
scheduledPublish: z.ZodOptional<z.ZodString>;
|
|
84
|
+
isOriginal: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
allowCoProduce: z.ZodOptional<z.ZodBoolean>;
|
|
86
|
+
allowCopy: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
publishType: z.ZodOptional<z.ZodEnum<{
|
|
88
|
+
1: "1";
|
|
89
|
+
2: "2";
|
|
90
|
+
3: "3";
|
|
91
|
+
4: "4";
|
|
92
|
+
}>>;
|
|
93
|
+
publishAction: z.ZodOptional<z.ZodEnum<{
|
|
94
|
+
draft: "draft";
|
|
95
|
+
publish: "publish";
|
|
96
|
+
}>>;
|
|
97
|
+
isAiCoverImage: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
export type DouyinPublishParams = z.infer<typeof DouyinPublishParamsSchema>;
|
|
101
|
+
export type PublishAction = CommonAction<DouyinPublishParams, string>;
|
|
102
|
+
export declare const douyinPublish: PublishAction;
|
|
@@ -2,6 +2,12 @@ import { type CommonAction } from "@iflyrpa/share";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { bjhConfigData, ttConfigData, wxConfigData, xhsConfigData } from "./types";
|
|
4
4
|
export declare const SearchAccountInfoParamsSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
7
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
8
|
+
width: z.ZodNumber;
|
|
9
|
+
height: z.ZodNumber;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
5
11
|
url: z.ZodOptional<z.ZodString>;
|
|
6
12
|
cookies: z.ZodArray<z.ZodObject<{
|
|
7
13
|
name: z.ZodString;
|
|
@@ -2,6 +2,12 @@ import { type CommonAction } from "@iflyrpa/share";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import type { FetchArticlesData } from "./types";
|
|
4
4
|
export declare const FetchArticlesParamsSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
7
|
+
viewport: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
8
|
+
width: z.ZodNumber;
|
|
9
|
+
height: z.ZodNumber;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
5
11
|
url: z.ZodOptional<z.ZodString>;
|
|
6
12
|
cookies: z.ZodArray<z.ZodObject<{
|
|
7
13
|
name: z.ZodString;
|