This repository has been archived by the owner on Sep 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 279
/
user.d.ts
81 lines (56 loc) · 1.92 KB
/
user.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import { BaseResponseData, Media } from './request';
export interface UserProfileResponse extends BaseResponseData {
user: UserProfile;
}
export interface UserProfile extends CommonUserDetails {
/** The number of videos the user has uploaded */
aweme_count: number;
/** The number of videos the user has liked */
favoriting_count: number;
/** The number of users who follow this user */
follower_count: number;
/** The number of users this user follows */
following_count: number;
/** The total number of likes the user has received */
total_favorited: number;
}
export interface CommonUserDetails {
/** A large version of the user's avatar */
avatar_larger: Media;
/** A medium version of the user's avatar */
avatar_medium: Media;
/** A thumbnail version of the user's avatar */
avatar_thumb: Media;
/** The timestamp in seconds when the user's account was created */
create_time: number;
/** The badge name with a verified user (e.g. comedian, style guru) */
custom_verify: string;
/** 1 if you follow this user */
follow_status: number;
/** 1 if this user follows you */
follower_status: number;
/** The user's Instagram handle */
ins_id: string;
/** Indicates if the user has been crowned */
is_verified: boolean;
/** The user's profile name */
nickname: string;
/** A 2-letter country code representing the user's region, e.g. US */
region: string;
/** If the user is live, a string ID used to join their stream, else 0 */
room_id: string|number;
/** 1 if the user's profile is set to private */
secret: number;
/** The user's profile signature */
signature: string;
/** The user's Twitter handle */
twitter_id: string;
/** The user's ID */
uid: string;
/** The user's musername */
unique_id: string;
/** 1 if the user has been crowned */
verification_type: number;
/** The user's YouTube channel ID */
youtube_channel_id: string;
}