@@ -69,6 +69,29 @@ export const EdgeMediaToCaption = t.type({
69
69
) ,
70
70
} ) ;
71
71
72
+ const EdgeSidecarToChildren = t . type ( {
73
+ edges : t . array (
74
+ t . type ( {
75
+ node : t . type ( {
76
+ __typename : t . string ,
77
+ id : t . string ,
78
+ shortcode : t . union ( [ t . string , t . undefined ] ) ,
79
+ dimensions : Dimensions ,
80
+ gating_info : t . union ( [ t . null , t . undefined ] ) ,
81
+ fact_check_information : t . union ( [ t . null , t . undefined ] ) ,
82
+ media_preview : t . union ( [ t . undefined , t . string , t . null ] ) ,
83
+ display_url : t . string ,
84
+ display_resources : DisplayResources ,
85
+ accessibility_caption : t . union ( [ t . string , t . undefined , t . null ] ) ,
86
+ is_video : t . boolean ,
87
+ video_url : t . union ( [ t . string , t . undefined ] ) ,
88
+ tracking_token : t . string ,
89
+ edge_media_to_tagged_user : EdgeMediaToCaption ,
90
+ } ) ,
91
+ } ) ,
92
+ ) ,
93
+ } ) ;
94
+
72
95
export const EdgeMediaToComment = t . type ( {
73
96
count : t . number ,
74
97
} ) ;
@@ -90,6 +113,7 @@ export const PostNode = t.type({
90
113
edge_media_to_comment : EdgeMediaToComment ,
91
114
taken_at_timestamp : t . number ,
92
115
fact_check_information : t . union ( [ t . null , t . undefined ] ) ,
116
+ fact_check_overall_rating : t . union ( [ t . undefined , t . null ] ) ,
93
117
dimensions : Dimensions ,
94
118
display_url : t . string ,
95
119
edge_liked_by : t . union ( [ EdgeMediaToComment , t . undefined ] ) ,
@@ -121,7 +145,7 @@ export const PostNode = t.type({
121
145
viewer_has_saved_to_collection : t . union ( [ t . boolean , t . undefined ] ) ,
122
146
viewer_in_photo_of_you : t . union ( [ t . boolean , t . undefined ] ) ,
123
147
viewer_can_reshare : t . union ( [ t . boolean , t . undefined ] ) ,
124
- edge_sidecar_to_children : t . union ( [ EdgeMediaToCaption , t . undefined ] ) ,
148
+ edge_sidecar_to_children : t . union ( [ EdgeSidecarToChildren , t . undefined ] ) ,
125
149
} ) ;
126
150
127
151
export const CommentNode = t . type ( {
@@ -181,7 +205,7 @@ export const ShortcodeMedia = t.type({
181
205
dimensions : Dimensions ,
182
206
gating_info : t . union ( [ GatingInfo , t . null , t . undefined ] ) ,
183
207
fact_check_information : t . null ,
184
- fact_check_overall_rating : t . null ,
208
+ fact_check_overall_rating : t . union ( [ t . undefined , t . null ] ) ,
185
209
media_preview : t . union ( [ t . string , t . null ] ) ,
186
210
display_url : t . string ,
187
211
display_resources : DisplayResources ,
@@ -211,7 +235,7 @@ export const ShortcodeMedia = t.type({
211
235
owner : ShortcodeMediaOwner ,
212
236
is_ad : t . boolean ,
213
237
edge_web_media_to_related_media : EdgeMediaToCaption ,
214
- edge_sidecar_to_children : t . union ( [ EdgeMediaToCaption , t . undefined ] ) ,
238
+ edge_sidecar_to_children : t . union ( [ EdgeSidecarToChildren , t . undefined ] ) ,
215
239
dash_info : t . union ( [
216
240
t . undefined ,
217
241
t . type ( {
0 commit comments