forked from szdc/tiktok-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfollow.d.ts
52 lines (42 loc) · 1.33 KB
/
follow.d.ts
1
2
3
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { CommonUserDetails } from './user';
import {
BaseResponseData,
ListRequestParams,
ListResponseData,
TimeOffsetRequestParams,
TimeOffsetResponseParams,
} from './request';
export interface FollowRequest extends BaseResponseData {
/** The id of the user to follow */
user_id: string;
/** 0 to unfollow, 1 to follow */
type: 0 | 1;
}
export interface FollowResponse extends BaseResponseData {
/** 0 if not following, 1 if following */
follow_status: 0 | 1;
/** 0 if not watching, 1 if watching */
watch_status: 0 | 1;
}
export interface ListReceivedFollowRequestsRequest extends ListRequestParams, TimeOffsetRequestParams {
}
export interface ListReceivedFollowRequestsResponse extends ListResponseData, TimeOffsetResponseParams {
/** A list of users who have requested to follow you */
request_users: CommonUserDetails[];
}
export interface ApproveFollowRequest {
/** The id of the user to approve */
from_user_id: string;
}
export interface ApproveFollowResponse extends BaseResponseData {
/** 0 if the user was successfully approved */
approve_status: number;
}
export interface RejectFollowRequest {
/** The id of the user to reject */
from_user_id: string;
}
export interface RejectFollowResponse extends BaseResponseData {
/** 0 if the user was successfully rejected */
reject_status: number;
}