-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.d.ts
100 lines (93 loc) · 2.04 KB
/
types.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
export type NeynarFrame = {
version: string;
image: string;
buttons: Array<{
index: number;
title: string;
}>;
post_url: string;
frames_url: string;
};
export type NeynarCastV2 = {
object: string;
hash: string;
thread_hash: string;
parent_hash: string | null;
parent_url: string | null;
root_parent_url: string | null;
parent_author: ParentAuthor | { fid: string | null };
author: {
object: string;
fid: number;
custody_address: string;
username: string;
display_name: string;
pfp_url: string;
profile: {
bio: {
text: string;
mentioned_profiles: any[];
};
};
follower_count: number;
following_count: number;
verifications: string[];
active_status: string;
};
text: string;
timestamp: string;
embeds: Array<{
cast_id?: { fid: number; hash: string };
url?: string;
}>;
frames?: Array<NeynarFrame>;
reactions: {
likes: Array<{ fid: number; fname: string }>;
recasts: Array<{ fid: number; fname: string }>;
};
replies: {
count: number;
};
mentioned_profiles: any[];
viewer_context?: {
liked: boolean;
recasted: boolean;
};
};
export type ParentAuthor = {
fid: number | null;
};
export type Author = {
object: string;
fid: number;
custody_address: string;
username: string;
display_name: string;
pfp_url: string | null;
profile: {
bio: Bio;
};
follower_count: number;
following_count: number;
verifications: string[];
active_status: string;
};
export type Bio = {
text: string | null;
mentioned_profiles: any[];
};
export type Embed = {
url?: string;
cast_id?: {
fid: number;
hash: string;
};
};
export type Reactions = {
likes: ReactionDetail[];
recasts: ReactionDetail[];
};
export type ReactionDetail = {
fid: number;
fname: string;
};