gs-x-parser 1.0.2 → 1.0.3
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/lib/dom.cjs +141 -0
- package/lib/dom.d.ts +30 -0
- package/lib/dom.mjs +158 -0
- package/lib/index.cjs +22 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.mjs +3 -0
- package/lib/listen-tweet-register.cjs +20 -0
- package/lib/listen-tweet-register.d.ts +10 -0
- package/lib/listen-tweet-register.mjs +22 -0
- package/lib/listen-tweet-start.cjs +68 -0
- package/lib/listen-tweet-start.d.ts +9 -0
- package/lib/listen-tweet-start.mjs +74 -0
- package/lib/listen-tweet-starter.cjs +71 -0
- package/lib/listen-tweet-starter.d.ts +5 -0
- package/lib/listen-tweet-starter.mjs +77 -0
- package/lib/type.cjs +9 -3
- package/lib/type.d.ts +606 -433
- package/lib/type.mjs +10 -2
- package/package.json +20 -2
package/lib/type.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IReactProps } from 'gs-dom/frs-probe';
|
|
2
|
+
|
|
3
|
+
declare const DomDisplayTypes: readonly ["Tweet", "defaultDisplayType", "FocalTweet", "MediaGrid", "User"];
|
|
4
|
+
type DomDisplayType = typeof DomDisplayTypes[number];
|
|
2
5
|
|
|
3
6
|
/**
|
|
4
7
|
* 类型常量和联合类型定义
|
|
@@ -350,6 +353,87 @@ declare enum IdPrefixes {
|
|
|
350
353
|
Trends = "trends-"
|
|
351
354
|
}
|
|
352
355
|
|
|
356
|
+
/**
|
|
357
|
+
* 用户基础类型,包含所有用户相关类型共有的字段
|
|
358
|
+
*/
|
|
359
|
+
interface IUserBase {
|
|
360
|
+
/** 用户名 */
|
|
361
|
+
name?: string;
|
|
362
|
+
/** 用户屏幕名称 */
|
|
363
|
+
screen_name?: string;
|
|
364
|
+
/** 位置 */
|
|
365
|
+
location?: string | null;
|
|
366
|
+
/** 个人简介 */
|
|
367
|
+
description?: string | null;
|
|
368
|
+
/** 个人网站 */
|
|
369
|
+
url?: string | null;
|
|
370
|
+
/** 实体 */
|
|
371
|
+
entities?: IUserEntities;
|
|
372
|
+
/** 粉丝数 */
|
|
373
|
+
followers_count?: number;
|
|
374
|
+
/** 关注数 */
|
|
375
|
+
friends_count?: number;
|
|
376
|
+
/** 列表数 */
|
|
377
|
+
listed_count?: number;
|
|
378
|
+
/** 创建时间 */
|
|
379
|
+
created_at?: string;
|
|
380
|
+
/** 收藏数 */
|
|
381
|
+
favourites_count?: number;
|
|
382
|
+
/** 推文数 */
|
|
383
|
+
statuses_count?: number;
|
|
384
|
+
/** 是否为翻译者 */
|
|
385
|
+
is_translator?: boolean;
|
|
386
|
+
/** 翻译者类型 */
|
|
387
|
+
translator_type?: string;
|
|
388
|
+
/** 头像URL */
|
|
389
|
+
profile_image_url_https?: string;
|
|
390
|
+
/** 是否默认个人资料 */
|
|
391
|
+
default_profile?: boolean;
|
|
392
|
+
/** 是否默认头像 */
|
|
393
|
+
default_profile_image?: boolean;
|
|
394
|
+
/** 是否可以直接消息 */
|
|
395
|
+
can_dm?: boolean | null;
|
|
396
|
+
/** 是否可以媒体标签 */
|
|
397
|
+
can_media_tag?: boolean;
|
|
398
|
+
/** 是否关注 */
|
|
399
|
+
following?: boolean | null;
|
|
400
|
+
/** 是否想要转发 */
|
|
401
|
+
want_retweets?: boolean;
|
|
402
|
+
/** 被限制的国家 */
|
|
403
|
+
withheld_in_countries?: string[];
|
|
404
|
+
/** 是否验证 */
|
|
405
|
+
verified?: boolean;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* 用户实体接口
|
|
409
|
+
*/
|
|
410
|
+
interface IUserEntities {
|
|
411
|
+
/** 描述实体 */
|
|
412
|
+
description?: IUserEntityUrls;
|
|
413
|
+
/** URL实体 */
|
|
414
|
+
url?: IUserEntityUrls;
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* 用户实体URL接口
|
|
418
|
+
*/
|
|
419
|
+
interface IUserEntityUrls {
|
|
420
|
+
/** URL实体数组 */
|
|
421
|
+
urls?: IUrlEntity[];
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* URL实体接口
|
|
425
|
+
*/
|
|
426
|
+
interface IUrlEntity {
|
|
427
|
+
/** 显示URL */
|
|
428
|
+
display_url?: string;
|
|
429
|
+
/** 展开URL */
|
|
430
|
+
expanded_url?: string;
|
|
431
|
+
/** URL */
|
|
432
|
+
url?: string;
|
|
433
|
+
/** 索引 */
|
|
434
|
+
indices?: number[];
|
|
435
|
+
}
|
|
436
|
+
|
|
353
437
|
/**
|
|
354
438
|
* 用户类型定义
|
|
355
439
|
*/
|
|
@@ -462,7 +546,7 @@ interface ITipjarSettings {
|
|
|
462
546
|
/**
|
|
463
547
|
* 遗留用户数据接口
|
|
464
548
|
*/
|
|
465
|
-
interface IUserLegacy extends IUserBase
|
|
549
|
+
interface IUserLegacy extends IUserBase {
|
|
466
550
|
/** 快速粉丝数 */
|
|
467
551
|
fast_followers_count?: number;
|
|
468
552
|
/** 是否有自定义时间线 */
|
|
@@ -625,123 +709,352 @@ interface IVerification {
|
|
|
625
709
|
}
|
|
626
710
|
|
|
627
711
|
/**
|
|
628
|
-
*
|
|
712
|
+
* 媒体相关类型定义
|
|
629
713
|
*/
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
|
|
637
|
-
/**
|
|
638
|
-
|
|
639
|
-
/**
|
|
640
|
-
|
|
641
|
-
/**
|
|
642
|
-
|
|
643
|
-
/**
|
|
644
|
-
|
|
645
|
-
/**
|
|
646
|
-
|
|
647
|
-
/**
|
|
648
|
-
|
|
649
|
-
/**
|
|
650
|
-
|
|
651
|
-
/**
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
|
|
655
|
-
/**
|
|
656
|
-
|
|
657
|
-
/**
|
|
658
|
-
|
|
659
|
-
/**
|
|
660
|
-
|
|
661
|
-
/**
|
|
662
|
-
|
|
663
|
-
/**
|
|
664
|
-
|
|
665
|
-
/**
|
|
666
|
-
|
|
667
|
-
/**
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
|
|
671
|
-
/**
|
|
672
|
-
|
|
673
|
-
/** 被限制的国家 */
|
|
674
|
-
withheld_in_countries?: string[];
|
|
675
|
-
/** 是否验证 */
|
|
676
|
-
verified?: boolean;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* 媒体实体接口
|
|
717
|
+
*/
|
|
718
|
+
interface IMediaEntity {
|
|
719
|
+
/** 显示URL */
|
|
720
|
+
display_url?: string;
|
|
721
|
+
/** 展开URL */
|
|
722
|
+
expanded_url?: string;
|
|
723
|
+
/** ID字符串 */
|
|
724
|
+
id_str?: string;
|
|
725
|
+
/** 索引 */
|
|
726
|
+
indices?: number[];
|
|
727
|
+
/** 媒体键 */
|
|
728
|
+
media_key?: string;
|
|
729
|
+
/** 媒体URL */
|
|
730
|
+
media_url_https?: string;
|
|
731
|
+
/** 类型 */
|
|
732
|
+
type?: string;
|
|
733
|
+
/** URL */
|
|
734
|
+
url?: string;
|
|
735
|
+
/** 额外媒体信息 */
|
|
736
|
+
additional_media_info?: IAdditionalMediaInfo;
|
|
737
|
+
/** 扩展媒体可用性 */
|
|
738
|
+
ext_media_availability?: IExtMediaAvailability;
|
|
739
|
+
/** 尺寸 */
|
|
740
|
+
sizes?: IMediaSizes;
|
|
741
|
+
/** 原始信息 */
|
|
742
|
+
original_info?: IOriginalInfo;
|
|
743
|
+
/** 允许下载状态 */
|
|
744
|
+
allow_download_status?: IAllowDownloadStatus;
|
|
745
|
+
/** 视频信息 */
|
|
746
|
+
video_info?: IVideoInfo;
|
|
747
|
+
/** 媒体结果 */
|
|
748
|
+
media_results?: IMediaResults;
|
|
749
|
+
/** 特性 */
|
|
750
|
+
features?: IMediaFeatures;
|
|
751
|
+
/** 扩展媒体颜色 */
|
|
752
|
+
ext_media_color?: IExtMediaColor;
|
|
753
|
+
/** 扩展替代文本 */
|
|
754
|
+
ext_alt_text?: string | null;
|
|
755
|
+
/** 扩展 */
|
|
756
|
+
ext?: IExtMedia;
|
|
677
757
|
}
|
|
678
758
|
/**
|
|
679
|
-
*
|
|
759
|
+
* 额外媒体信息接口
|
|
680
760
|
*/
|
|
681
|
-
interface
|
|
682
|
-
/**
|
|
683
|
-
|
|
684
|
-
/** URL实体 */
|
|
685
|
-
url?: IUserEntityUrls;
|
|
761
|
+
interface IAdditionalMediaInfo {
|
|
762
|
+
/** 是否可变现 */
|
|
763
|
+
monetizable?: boolean;
|
|
686
764
|
}
|
|
687
765
|
/**
|
|
688
|
-
*
|
|
766
|
+
* 扩展媒体可用性接口
|
|
689
767
|
*/
|
|
690
|
-
interface
|
|
691
|
-
/**
|
|
692
|
-
|
|
768
|
+
interface IExtMediaAvailability {
|
|
769
|
+
/** 状态 */
|
|
770
|
+
status?: string;
|
|
693
771
|
}
|
|
694
772
|
/**
|
|
695
|
-
*
|
|
773
|
+
* 媒体尺寸接口
|
|
696
774
|
*/
|
|
697
|
-
interface
|
|
698
|
-
/**
|
|
699
|
-
|
|
700
|
-
/**
|
|
701
|
-
|
|
702
|
-
/**
|
|
703
|
-
|
|
704
|
-
/**
|
|
705
|
-
|
|
775
|
+
interface IMediaSizes {
|
|
776
|
+
/** 大尺寸 */
|
|
777
|
+
large?: IMediaSize;
|
|
778
|
+
/** 中等尺寸 */
|
|
779
|
+
medium?: IMediaSize;
|
|
780
|
+
/** 小尺寸 */
|
|
781
|
+
small?: IMediaSize;
|
|
782
|
+
/** 缩略图 */
|
|
783
|
+
thumb?: IMediaSize;
|
|
706
784
|
}
|
|
707
|
-
|
|
708
785
|
/**
|
|
709
|
-
*
|
|
786
|
+
* 媒体尺寸接口
|
|
710
787
|
*/
|
|
711
|
-
|
|
788
|
+
interface IMediaSize {
|
|
789
|
+
/** 高度 */
|
|
790
|
+
h?: number;
|
|
791
|
+
/** 宽度 */
|
|
792
|
+
w?: number;
|
|
793
|
+
/** 调整大小方式 */
|
|
794
|
+
resize?: string;
|
|
795
|
+
}
|
|
712
796
|
/**
|
|
713
|
-
*
|
|
797
|
+
* 原始信息接口
|
|
714
798
|
*/
|
|
715
|
-
interface
|
|
716
|
-
/**
|
|
717
|
-
|
|
718
|
-
/**
|
|
719
|
-
|
|
720
|
-
/**
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
/**
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
799
|
+
interface IOriginalInfo {
|
|
800
|
+
/** 高度 */
|
|
801
|
+
height?: number;
|
|
802
|
+
/** 宽度 */
|
|
803
|
+
width?: number;
|
|
804
|
+
/** 焦点矩形 */
|
|
805
|
+
focus_rects?: IFocusRect[];
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* 焦点矩形接口
|
|
809
|
+
*/
|
|
810
|
+
interface IFocusRect {
|
|
811
|
+
/** X坐标 */
|
|
812
|
+
x?: number;
|
|
813
|
+
/** Y坐标 */
|
|
814
|
+
y?: number;
|
|
815
|
+
/** 宽度 */
|
|
816
|
+
w?: number;
|
|
817
|
+
/** 高度 */
|
|
818
|
+
h?: number;
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* 允许下载状态接口
|
|
822
|
+
*/
|
|
823
|
+
interface IAllowDownloadStatus {
|
|
824
|
+
/** 是否允许下载 */
|
|
825
|
+
allow_download?: boolean;
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* 视频信息接口
|
|
829
|
+
*/
|
|
830
|
+
interface IVideoInfo {
|
|
831
|
+
/** 宽高比 */
|
|
832
|
+
aspect_ratio?: number[];
|
|
833
|
+
/** 时长(毫秒) */
|
|
834
|
+
duration_millis?: number;
|
|
835
|
+
/** 视频变体 */
|
|
836
|
+
variants?: IVideoVariant[];
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* 视频变体接口
|
|
840
|
+
*/
|
|
841
|
+
interface IVideoVariant {
|
|
842
|
+
/** 比特率 */
|
|
843
|
+
bitrate?: number;
|
|
844
|
+
/** 内容类型 */
|
|
845
|
+
content_type?: string;
|
|
846
|
+
/** URL */
|
|
847
|
+
url?: string;
|
|
848
|
+
}
|
|
849
|
+
/**
|
|
850
|
+
* 媒体结果接口
|
|
851
|
+
*/
|
|
852
|
+
interface IMediaResults {
|
|
853
|
+
/** 结果 */
|
|
854
|
+
result?: IMediaResult;
|
|
855
|
+
}
|
|
856
|
+
/**
|
|
857
|
+
* 媒体结果接口
|
|
858
|
+
*/
|
|
859
|
+
interface IMediaResult {
|
|
860
|
+
/** 媒体键 */
|
|
861
|
+
media_key?: string;
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* 媒体特性接口
|
|
865
|
+
*/
|
|
866
|
+
interface IMediaFeatures {
|
|
867
|
+
/** 大尺寸 */
|
|
868
|
+
large?: IMediaFeature;
|
|
869
|
+
/** 中等尺寸 */
|
|
870
|
+
medium?: IMediaFeature;
|
|
871
|
+
/** 小尺寸 */
|
|
872
|
+
small?: IMediaFeature;
|
|
873
|
+
/** 原始尺寸 */
|
|
874
|
+
orig?: IMediaFeature;
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* 面部接口
|
|
878
|
+
*/
|
|
879
|
+
interface IFace {
|
|
880
|
+
/** 高度 */
|
|
881
|
+
h?: number;
|
|
882
|
+
/** 宽度 */
|
|
883
|
+
w?: number;
|
|
884
|
+
/** X坐标 */
|
|
885
|
+
x?: number;
|
|
886
|
+
/** Y坐标 */
|
|
887
|
+
y?: number;
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
* 媒体特性接口
|
|
891
|
+
*/
|
|
892
|
+
interface IMediaFeature {
|
|
893
|
+
/** 面部 */
|
|
894
|
+
faces?: IFace[];
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* 扩展媒体颜色接口
|
|
898
|
+
*/
|
|
899
|
+
interface IExtMediaColor {
|
|
900
|
+
/** 调色板 */
|
|
901
|
+
palette?: IColorPalette[];
|
|
902
|
+
}
|
|
903
|
+
/**
|
|
904
|
+
* 扩展媒体接口
|
|
905
|
+
*/
|
|
906
|
+
interface IExtMedia {
|
|
907
|
+
/** 媒体统计 */
|
|
908
|
+
mediaStats?: IMediaStats;
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* 媒体统计接口
|
|
912
|
+
*/
|
|
913
|
+
interface IMediaStats {
|
|
914
|
+
/** 统计数据 */
|
|
915
|
+
r?: any;
|
|
916
|
+
/** 生存时间 */
|
|
917
|
+
ttl?: number;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* 推文基础类型,包含所有推文相关类型共有的字段
|
|
922
|
+
*/
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* 推文基础接口
|
|
926
|
+
*/
|
|
927
|
+
interface ITweetBase {
|
|
928
|
+
/** 创建时间 */
|
|
929
|
+
created_at?: string;
|
|
930
|
+
/** ID字符串 */
|
|
931
|
+
id_str?: string;
|
|
932
|
+
/** 完整文本 */
|
|
933
|
+
full_text?: string;
|
|
934
|
+
/** 是否截断 */
|
|
935
|
+
truncated?: boolean;
|
|
936
|
+
/** 显示文本范围 */
|
|
937
|
+
display_text_range?: number[];
|
|
938
|
+
/** 实体 */
|
|
939
|
+
entities?: ITweetEntities;
|
|
940
|
+
/** 来源 */
|
|
941
|
+
source?: string;
|
|
942
|
+
/** 回复的状态ID字符串 */
|
|
943
|
+
in_reply_to_status_id_str?: string | null;
|
|
944
|
+
/** 回复的用户ID字符串 */
|
|
945
|
+
in_reply_to_user_id_str?: string | null;
|
|
946
|
+
/** 回复的屏幕名称 */
|
|
947
|
+
in_reply_to_screen_name?: string | null;
|
|
948
|
+
/** 地理信息 */
|
|
949
|
+
geo?: any | null;
|
|
950
|
+
/** 坐标 */
|
|
951
|
+
coordinates?: any | null;
|
|
952
|
+
/** 地点 */
|
|
953
|
+
place?: any | null;
|
|
954
|
+
/** 贡献者 */
|
|
955
|
+
contributors?: any | null;
|
|
956
|
+
/** 是否为引用状态 */
|
|
957
|
+
is_quote_status?: boolean;
|
|
958
|
+
/** 引用状态ID字符串 */
|
|
959
|
+
quoted_status_id_str?: string | null;
|
|
960
|
+
/** 转发状态ID字符串 */
|
|
961
|
+
retweeted_status_id_str?: string | null;
|
|
962
|
+
/** 转发数 */
|
|
963
|
+
retweet_count?: number;
|
|
964
|
+
/** 点赞数 */
|
|
965
|
+
favorite_count?: number;
|
|
966
|
+
/** 回复数 */
|
|
967
|
+
reply_count?: number;
|
|
968
|
+
/** 引用数 */
|
|
969
|
+
quote_count?: number;
|
|
970
|
+
/** 对话ID字符串 */
|
|
971
|
+
conversation_id_str?: string;
|
|
972
|
+
/** 是否已收藏 */
|
|
973
|
+
favorited?: boolean;
|
|
974
|
+
/** 是否已转发 */
|
|
975
|
+
retweeted?: boolean;
|
|
976
|
+
/** 是否敏感内容 */
|
|
977
|
+
possibly_sensitive?: boolean;
|
|
978
|
+
/** 语言 */
|
|
979
|
+
lang?: string;
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* 推文实体接口
|
|
983
|
+
*/
|
|
984
|
+
interface ITweetEntities {
|
|
985
|
+
/** 话题标签实体数组 */
|
|
986
|
+
hashtags?: IHashtagEntity[];
|
|
987
|
+
/** 媒体实体数组 */
|
|
988
|
+
media?: IMediaEntity[];
|
|
989
|
+
/** 符号实体数组 */
|
|
990
|
+
symbols?: any[];
|
|
991
|
+
/** 时间戳实体数组 */
|
|
992
|
+
timestamps?: any[];
|
|
993
|
+
/** URL实体数组 */
|
|
994
|
+
urls?: IUrlEntity[];
|
|
995
|
+
/** 用户提及实体数组 */
|
|
996
|
+
user_mentions?: IUserMentionEntity[];
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* 话题标签实体接口
|
|
1000
|
+
*/
|
|
1001
|
+
interface IHashtagEntity {
|
|
1002
|
+
/** 索引 */
|
|
1003
|
+
indices?: number[];
|
|
1004
|
+
/** 文本 */
|
|
1005
|
+
text?: string;
|
|
1006
|
+
}
|
|
1007
|
+
/**
|
|
1008
|
+
* 用户提及实体接口
|
|
1009
|
+
*/
|
|
1010
|
+
interface IUserMentionEntity {
|
|
1011
|
+
/** ID字符串 */
|
|
1012
|
+
id_str?: string;
|
|
1013
|
+
/** 名称 */
|
|
1014
|
+
name?: string;
|
|
1015
|
+
/** 屏幕名称 */
|
|
1016
|
+
screen_name?: string;
|
|
1017
|
+
/** 索引 */
|
|
1018
|
+
indices?: number[];
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* 推文类型定义
|
|
1023
|
+
*/
|
|
1024
|
+
|
|
1025
|
+
/**
|
|
1026
|
+
* 推文接口
|
|
1027
|
+
*/
|
|
1028
|
+
interface ITweet {
|
|
1029
|
+
/** 类型名称 */
|
|
1030
|
+
__typename: string;
|
|
1031
|
+
/** 推文REST ID */
|
|
1032
|
+
rest_id: string;
|
|
1033
|
+
/** 是否有birdwatch注释 */
|
|
1034
|
+
has_birdwatch_notes?: boolean;
|
|
1035
|
+
/** 核心数据 */
|
|
1036
|
+
core?: ITweetCore;
|
|
1037
|
+
/** 取消提及数据 */
|
|
1038
|
+
unmention_data?: Record<string, unknown>;
|
|
1039
|
+
/** 编辑控制 */
|
|
1040
|
+
edit_control?: IEditControl;
|
|
1041
|
+
/** Grok分析按钮 */
|
|
1042
|
+
grok_analysis_button?: boolean;
|
|
1043
|
+
/** Grok注释 */
|
|
1044
|
+
grok_annotations?: Record<string, unknown>;
|
|
1045
|
+
/** Grok翻译帖子可用性 */
|
|
1046
|
+
grok_translated_post_with_availability?: IGrokTranslatedPostWithAvailability;
|
|
1047
|
+
/** 之前的计数 */
|
|
1048
|
+
previous_counts?: IPreviousCounts;
|
|
1049
|
+
/** 是否可翻译 */
|
|
1050
|
+
is_translatable?: boolean;
|
|
1051
|
+
/** 视图 */
|
|
1052
|
+
views?: ITweetViews;
|
|
1053
|
+
/** 来源 */
|
|
1054
|
+
source?: string;
|
|
1055
|
+
/** 卡片 */
|
|
1056
|
+
card?: ICard;
|
|
1057
|
+
/** 遗留推文数据 */
|
|
745
1058
|
legacy?: ITweetLegacy;
|
|
746
1059
|
/** 快速推广资格 */
|
|
747
1060
|
quick_promote_eligibility?: IQuickPromoteEligibility;
|
|
@@ -839,7 +1152,7 @@ interface ITweetCore {
|
|
|
839
1152
|
*/
|
|
840
1153
|
interface IUserResults {
|
|
841
1154
|
/** 结果 */
|
|
842
|
-
result?: IUser
|
|
1155
|
+
result?: IUser;
|
|
843
1156
|
}
|
|
844
1157
|
/**
|
|
845
1158
|
* 编辑控制接口
|
|
@@ -898,7 +1211,7 @@ interface ITweetViews {
|
|
|
898
1211
|
/**
|
|
899
1212
|
* 遗留推文数据接口
|
|
900
1213
|
*/
|
|
901
|
-
interface ITweetLegacy extends ITweetBase
|
|
1214
|
+
interface ITweetLegacy extends ITweetBase {
|
|
902
1215
|
/** 书签数 */
|
|
903
1216
|
bookmark_count?: number;
|
|
904
1217
|
/** 是否已书签 */
|
|
@@ -917,7 +1230,7 @@ interface ITweetLegacy extends ITweetBase$1 {
|
|
|
917
1230
|
*/
|
|
918
1231
|
interface IExtendedEntities {
|
|
919
1232
|
/** 媒体实体数组 */
|
|
920
|
-
media?: IMediaEntity
|
|
1233
|
+
media?: IMediaEntity[];
|
|
921
1234
|
}
|
|
922
1235
|
/**
|
|
923
1236
|
* 快速推广资格接口
|
|
@@ -938,7 +1251,7 @@ interface IQuotedStatusResult {
|
|
|
938
1251
|
*/
|
|
939
1252
|
interface ISuperFollowsReplyUserResult {
|
|
940
1253
|
/** 结果 */
|
|
941
|
-
result?: IUser
|
|
1254
|
+
result?: IUser;
|
|
942
1255
|
}
|
|
943
1256
|
/**
|
|
944
1257
|
* 转发状态结果接口
|
|
@@ -1087,7 +1400,7 @@ interface IDevice {
|
|
|
1087
1400
|
*/
|
|
1088
1401
|
interface IUserRefResult {
|
|
1089
1402
|
/** 结果 */
|
|
1090
|
-
result?: IUser
|
|
1403
|
+
result?: IUser;
|
|
1091
1404
|
}
|
|
1092
1405
|
/**
|
|
1093
1406
|
* 用户值接口
|
|
@@ -1106,105 +1419,144 @@ interface IGrokTranslatedPostWithAvailability {
|
|
|
1106
1419
|
is_available?: boolean;
|
|
1107
1420
|
}
|
|
1108
1421
|
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1422
|
+
interface IContent {
|
|
1423
|
+
id?: string;
|
|
1424
|
+
prerollMetadata?: any;
|
|
1425
|
+
promotedMetadata?: any;
|
|
1426
|
+
displayType?: DomDisplayType;
|
|
1427
|
+
tweetContext?: any;
|
|
1428
|
+
socialContext?: any;
|
|
1429
|
+
innerTombstoneInfo?: any;
|
|
1430
|
+
forwardPivot?: any;
|
|
1431
|
+
hasModeratedReplies?: any;
|
|
1432
|
+
ruxContext?: any;
|
|
1433
|
+
conversation_annotation?: any;
|
|
1434
|
+
retweetedStatusId?: any;
|
|
1435
|
+
replyBadge?: any;
|
|
1436
|
+
highlights?: any;
|
|
1437
|
+
grok_translated_post?: any;
|
|
1438
|
+
count?: number;
|
|
1439
|
+
lastRevealedTimestamp?: number | null;
|
|
1440
|
+
tweet?: ITweet;
|
|
1441
|
+
}
|
|
1112
1442
|
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
/** 创建时间 */
|
|
1118
|
-
created_at?: string;
|
|
1119
|
-
/** ID字符串 */
|
|
1120
|
-
id_str?: string;
|
|
1121
|
-
/** 完整文本 */
|
|
1122
|
-
full_text?: string;
|
|
1123
|
-
/** 是否截断 */
|
|
1124
|
-
truncated?: boolean;
|
|
1125
|
-
/** 显示文本范围 */
|
|
1126
|
-
display_text_range?: number[];
|
|
1127
|
-
/** 实体 */
|
|
1128
|
-
entities?: ITweetEntities;
|
|
1129
|
-
/** 来源 */
|
|
1130
|
-
source?: string;
|
|
1131
|
-
/** 回复的状态ID字符串 */
|
|
1132
|
-
in_reply_to_status_id_str?: string | null;
|
|
1133
|
-
/** 回复的用户ID字符串 */
|
|
1134
|
-
in_reply_to_user_id_str?: string | null;
|
|
1135
|
-
/** 回复的屏幕名称 */
|
|
1136
|
-
in_reply_to_screen_name?: string | null;
|
|
1137
|
-
/** 地理信息 */
|
|
1138
|
-
geo?: any | null;
|
|
1139
|
-
/** 坐标 */
|
|
1140
|
-
coordinates?: any | null;
|
|
1141
|
-
/** 地点 */
|
|
1142
|
-
place?: any | null;
|
|
1143
|
-
/** 贡献者 */
|
|
1144
|
-
contributors?: any | null;
|
|
1145
|
-
/** 是否为引用状态 */
|
|
1146
|
-
is_quote_status?: boolean;
|
|
1147
|
-
/** 引用状态ID字符串 */
|
|
1148
|
-
quoted_status_id_str?: string | null;
|
|
1149
|
-
/** 转发状态ID字符串 */
|
|
1150
|
-
retweeted_status_id_str?: string | null;
|
|
1151
|
-
/** 转发数 */
|
|
1152
|
-
retweet_count?: number;
|
|
1153
|
-
/** 点赞数 */
|
|
1154
|
-
favorite_count?: number;
|
|
1155
|
-
/** 回复数 */
|
|
1156
|
-
reply_count?: number;
|
|
1157
|
-
/** 引用数 */
|
|
1158
|
-
quote_count?: number;
|
|
1159
|
-
/** 对话ID字符串 */
|
|
1160
|
-
conversation_id_str?: string;
|
|
1161
|
-
/** 是否已收藏 */
|
|
1162
|
-
favorited?: boolean;
|
|
1163
|
-
/** 是否已转发 */
|
|
1164
|
-
retweeted?: boolean;
|
|
1165
|
-
/** 是否敏感内容 */
|
|
1166
|
-
possibly_sensitive?: boolean;
|
|
1167
|
-
/** 语言 */
|
|
1168
|
-
lang?: string;
|
|
1443
|
+
interface IModuleMetadata {
|
|
1444
|
+
conversationMetadata?: any;
|
|
1445
|
+
gridCarouselMetadata?: any;
|
|
1446
|
+
verticalMetadata?: any;
|
|
1169
1447
|
}
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
/** 媒体实体数组 */
|
|
1177
|
-
media?: IMediaEntity$1[];
|
|
1178
|
-
/** 符号实体数组 */
|
|
1179
|
-
symbols?: any[];
|
|
1180
|
-
/** 时间戳实体数组 */
|
|
1181
|
-
timestamps?: any[];
|
|
1182
|
-
/** URL实体数组 */
|
|
1183
|
-
urls?: IUrlEntity$1[];
|
|
1184
|
-
/** 用户提及实体数组 */
|
|
1185
|
-
user_mentions?: IUserMentionEntity[];
|
|
1448
|
+
|
|
1449
|
+
interface IItemMetadata {
|
|
1450
|
+
clientEventInfo?: IClientEventInfo;
|
|
1451
|
+
feedbackInfo?: any;
|
|
1452
|
+
reactiveTriggers?: any;
|
|
1453
|
+
moduleMetadata?: IModuleMetadata;
|
|
1186
1454
|
}
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1455
|
+
|
|
1456
|
+
interface IDomEntry {
|
|
1457
|
+
type?: string;
|
|
1458
|
+
entryId?: string;
|
|
1459
|
+
sortIndex?: string;
|
|
1460
|
+
itemMetadata?: IItemMetadata;
|
|
1461
|
+
dispensable?: any;
|
|
1462
|
+
treeDisplay?: any;
|
|
1463
|
+
pill_group?: any;
|
|
1464
|
+
content?: any | IContent;
|
|
1465
|
+
shouldCountTowardsAdSpacing?: boolean | any;
|
|
1466
|
+
position?: number;
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
interface IItemData {
|
|
1470
|
+
type?: string;
|
|
1471
|
+
entryId?: string;
|
|
1472
|
+
content?: any;
|
|
1473
|
+
itemMetadata?: any;
|
|
1474
|
+
shouldCountTowardsAdSpacing?: any;
|
|
1475
|
+
sortIndex?: string;
|
|
1476
|
+
position?: number;
|
|
1195
1477
|
}
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1478
|
+
|
|
1479
|
+
interface IItem {
|
|
1480
|
+
id?: string;
|
|
1481
|
+
_renderer?: Function;
|
|
1482
|
+
canBeAnchor?: boolean;
|
|
1483
|
+
data?: IItemData;
|
|
1484
|
+
sortIndex?: string;
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
interface IModule {
|
|
1488
|
+
applyFeedbackAction?: Function;
|
|
1489
|
+
applyNewTweetsBarInstructions?: Function;
|
|
1490
|
+
applyReactionInstructions?: Function;
|
|
1491
|
+
clearActiveCover?: Function;
|
|
1492
|
+
clearAllEntries?: Function;
|
|
1493
|
+
clearDroppedAds?: Function;
|
|
1494
|
+
deleteTimeline?: Function;
|
|
1495
|
+
fetchBottom?: Function;
|
|
1496
|
+
fetchCursor?: Function;
|
|
1497
|
+
fetchGraphQLDarkRead?: Function;
|
|
1498
|
+
fetchInitial?: Function;
|
|
1499
|
+
fetchInitialOrTop?: Function;
|
|
1500
|
+
fetchTop?: Function;
|
|
1501
|
+
getCreationOptions?: Function;
|
|
1502
|
+
impressEntry?: Function;
|
|
1503
|
+
injectEntry?: Function;
|
|
1504
|
+
injectTimelineModuleEntry?: Function;
|
|
1505
|
+
markAllAsRead?: Function;
|
|
1506
|
+
markTopEntrySeen?: Function;
|
|
1507
|
+
perfKey?: string;
|
|
1508
|
+
pinEntry?: Function;
|
|
1509
|
+
processCallback?: Function;
|
|
1510
|
+
removeAlert?: Function;
|
|
1511
|
+
removeEntry?: Function;
|
|
1512
|
+
removeTweets?: Function;
|
|
1513
|
+
restoreInjections?: Function;
|
|
1514
|
+
restoreTimeline?: Function;
|
|
1515
|
+
scopeId?: any;
|
|
1516
|
+
selectActiveCover?: Function;
|
|
1517
|
+
selectAlert?: Function;
|
|
1518
|
+
selectBottomFetchStatus?: Function;
|
|
1519
|
+
selectCanRefresh?: Function;
|
|
1520
|
+
selectCursorFetchStatus?: Function;
|
|
1521
|
+
selectCursorFetchStatusByValue?: Function;
|
|
1522
|
+
selectDismissedEntries?: Function;
|
|
1523
|
+
selectDroppedAds?: Function;
|
|
1524
|
+
selectEntries?: Function;
|
|
1525
|
+
selectFeedbackActions?: Function;
|
|
1526
|
+
selectHasHoistedAnEntry?: Function;
|
|
1527
|
+
selectInitialFetchStatus?: Function;
|
|
1528
|
+
selectIsEmptyTimeline?: Function;
|
|
1529
|
+
selectIsUnread?: Function;
|
|
1530
|
+
selectMetadata?: Function;
|
|
1531
|
+
selectNewTweetsBar?: Function;
|
|
1532
|
+
selectPageConfiguration?: Function;
|
|
1533
|
+
selectPinnedEntry?: Function;
|
|
1534
|
+
selectPollingIntervalMs?: Function;
|
|
1535
|
+
selectTimeline?: Function;
|
|
1536
|
+
selectTopFetchStatus?: Function;
|
|
1537
|
+
selectTopUnreadCount?: Function;
|
|
1538
|
+
selectUnavailableReason?: Function;
|
|
1539
|
+
selectUnreadEntries?: Function;
|
|
1540
|
+
selectUnreadEntriesCount?: Function;
|
|
1541
|
+
timelineId?: string;
|
|
1542
|
+
timelineType?: any;
|
|
1543
|
+
undoFeedbackAction?: Function;
|
|
1544
|
+
unpinCurrentlyPinnedEntry?: Function;
|
|
1545
|
+
updateDismissCause?: Function;
|
|
1546
|
+
updateEntry?: Function;
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
interface IReactXCellDivProps extends IReactProps<IDomEntry, IItem, IReactXCellDivProps> {
|
|
1550
|
+
displayType?: DomDisplayType;
|
|
1551
|
+
module?: IModule;
|
|
1552
|
+
setAPI?: Function;
|
|
1553
|
+
children?: any;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
interface IGetTweetVideoIdResult {
|
|
1557
|
+
videoId?: string;
|
|
1558
|
+
tweetId?: string;
|
|
1559
|
+
index?: number;
|
|
1208
1560
|
}
|
|
1209
1561
|
|
|
1210
1562
|
interface ITimeline {
|
|
@@ -1284,7 +1636,7 @@ interface IFeedbackInfo {
|
|
|
1284
1636
|
feedbackKeys?: string[];
|
|
1285
1637
|
}
|
|
1286
1638
|
interface ITweetResults {
|
|
1287
|
-
result?: ITweet
|
|
1639
|
+
result?: ITweet;
|
|
1288
1640
|
}
|
|
1289
1641
|
interface ITimelineModuleItem {
|
|
1290
1642
|
entryId?: string;
|
|
@@ -1343,7 +1695,7 @@ interface IMessageEntities {
|
|
|
1343
1695
|
hashtags?: any[];
|
|
1344
1696
|
symbols?: any[];
|
|
1345
1697
|
user_mentions?: any[];
|
|
1346
|
-
urls?: IUrlEntity
|
|
1698
|
+
urls?: IUrlEntity[];
|
|
1347
1699
|
}
|
|
1348
1700
|
interface IAttachment {
|
|
1349
1701
|
photo?: IPhoto;
|
|
@@ -1358,17 +1710,17 @@ interface IPhoto {
|
|
|
1358
1710
|
display_url?: string;
|
|
1359
1711
|
expanded_url?: string;
|
|
1360
1712
|
type?: string;
|
|
1361
|
-
original_info?: IOriginalInfo
|
|
1362
|
-
sizes?: IMediaSizes
|
|
1713
|
+
original_info?: IOriginalInfo;
|
|
1714
|
+
sizes?: IMediaSizes;
|
|
1363
1715
|
features?: Record<string, unknown>;
|
|
1364
|
-
ext_media_color?: IExtMediaColor
|
|
1716
|
+
ext_media_color?: IExtMediaColor;
|
|
1365
1717
|
ext_alt_text?: string | null;
|
|
1366
1718
|
ext?: IExt;
|
|
1367
1719
|
audio_only?: boolean;
|
|
1368
1720
|
}
|
|
1369
1721
|
interface IExt {
|
|
1370
1722
|
mediaColor?: IMediaColor;
|
|
1371
|
-
mediaStats?: IMediaStats
|
|
1723
|
+
mediaStats?: IMediaStats;
|
|
1372
1724
|
altText?: IAltText;
|
|
1373
1725
|
}
|
|
1374
1726
|
interface IMediaColor {
|
|
@@ -1376,13 +1728,13 @@ interface IMediaColor {
|
|
|
1376
1728
|
ttl?: number;
|
|
1377
1729
|
}
|
|
1378
1730
|
interface IOk {
|
|
1379
|
-
palette?: IColorPalette
|
|
1731
|
+
palette?: IColorPalette[];
|
|
1380
1732
|
}
|
|
1381
1733
|
interface IAltText {
|
|
1382
1734
|
r?: string;
|
|
1383
1735
|
ttl?: number;
|
|
1384
1736
|
}
|
|
1385
|
-
interface IMessageUser extends IUserBase
|
|
1737
|
+
interface IMessageUser extends IUserBase {
|
|
1386
1738
|
id?: number;
|
|
1387
1739
|
id_str?: string;
|
|
1388
1740
|
protected?: boolean;
|
|
@@ -1412,7 +1764,7 @@ interface IMessageUser extends IUserBase$1 {
|
|
|
1412
1764
|
followed_by?: boolean;
|
|
1413
1765
|
}
|
|
1414
1766
|
interface IUrlEntities {
|
|
1415
|
-
urls?: IUrlEntity
|
|
1767
|
+
urls?: IUrlEntity[];
|
|
1416
1768
|
}
|
|
1417
1769
|
interface IConversation {
|
|
1418
1770
|
conversation_id?: string;
|
|
@@ -1493,7 +1845,7 @@ interface ICommunityTweetPinActionResult {
|
|
|
1493
1845
|
__isCommunityTweetPinActionResult?: string;
|
|
1494
1846
|
}
|
|
1495
1847
|
interface IUserResult {
|
|
1496
|
-
result?: IUser
|
|
1848
|
+
result?: IUser;
|
|
1497
1849
|
id?: string;
|
|
1498
1850
|
}
|
|
1499
1851
|
interface ICommunityInvitesResult {
|
|
@@ -1520,7 +1872,7 @@ interface IApiImage {
|
|
|
1520
1872
|
salient_rect?: ISalientRect;
|
|
1521
1873
|
}
|
|
1522
1874
|
interface IColorInfo {
|
|
1523
|
-
palette?: IColorPalette
|
|
1875
|
+
palette?: IColorPalette[];
|
|
1524
1876
|
}
|
|
1525
1877
|
interface ISalientRect {
|
|
1526
1878
|
left?: number;
|
|
@@ -1546,7 +1898,7 @@ interface IGlobalObjects {
|
|
|
1546
1898
|
users?: Record<string, IUserObject>;
|
|
1547
1899
|
tweets?: Record<string, ITweetObject>;
|
|
1548
1900
|
}
|
|
1549
|
-
interface IUserObject extends IUserBase
|
|
1901
|
+
interface IUserObject extends IUserBase {
|
|
1550
1902
|
id?: number;
|
|
1551
1903
|
id_str?: string;
|
|
1552
1904
|
protected?: boolean;
|
|
@@ -1576,7 +1928,7 @@ interface IUserObject extends IUserBase$1 {
|
|
|
1576
1928
|
ext_is_blue_verified?: boolean;
|
|
1577
1929
|
ext_highlighted_label?: Record<string, unknown>;
|
|
1578
1930
|
}
|
|
1579
|
-
interface ITweetObject extends ITweetBase
|
|
1931
|
+
interface ITweetObject extends ITweetBase {
|
|
1580
1932
|
id?: number;
|
|
1581
1933
|
in_reply_to_status_id?: number | null;
|
|
1582
1934
|
in_reply_to_user_id?: number | null;
|
|
@@ -1587,7 +1939,7 @@ interface ITweetObject extends ITweetBase$1 {
|
|
|
1587
1939
|
conversation_muted?: boolean;
|
|
1588
1940
|
card?: ITweetCard;
|
|
1589
1941
|
ext?: INotificationExt;
|
|
1590
|
-
extended_entities?: IExtendedEntities
|
|
1942
|
+
extended_entities?: IExtendedEntities;
|
|
1591
1943
|
}
|
|
1592
1944
|
interface IHashtag {
|
|
1593
1945
|
text?: string;
|
|
@@ -1601,7 +1953,7 @@ interface IUserMention {
|
|
|
1601
1953
|
indices?: number[];
|
|
1602
1954
|
}
|
|
1603
1955
|
interface INotificationMediaStats {
|
|
1604
|
-
r?: IOk
|
|
1956
|
+
r?: IOk;
|
|
1605
1957
|
ttl?: number;
|
|
1606
1958
|
}
|
|
1607
1959
|
interface IViewCount {
|
|
@@ -1611,223 +1963,14 @@ interface ITweetCard {
|
|
|
1611
1963
|
name?: string;
|
|
1612
1964
|
url?: string;
|
|
1613
1965
|
card_type_url?: string;
|
|
1614
|
-
binding_values?: Record<string, IBindingValue
|
|
1615
|
-
card_platform?: ICardPlatform
|
|
1966
|
+
binding_values?: Record<string, IBindingValue>;
|
|
1967
|
+
card_platform?: ICardPlatform;
|
|
1616
1968
|
}
|
|
1617
1969
|
interface INotificationExt {
|
|
1618
1970
|
superFollowMetadata?: ISuperFollowMetadata;
|
|
1619
1971
|
}
|
|
1620
1972
|
interface ISuperFollowMetadata {
|
|
1621
|
-
r?: IOk
|
|
1622
|
-
ttl?: number;
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
|
-
/**
|
|
1626
|
-
* 媒体相关类型定义
|
|
1627
|
-
*/
|
|
1628
|
-
|
|
1629
|
-
/**
|
|
1630
|
-
* 媒体实体接口
|
|
1631
|
-
*/
|
|
1632
|
-
interface IMediaEntity {
|
|
1633
|
-
/** 显示URL */
|
|
1634
|
-
display_url?: string;
|
|
1635
|
-
/** 展开URL */
|
|
1636
|
-
expanded_url?: string;
|
|
1637
|
-
/** ID字符串 */
|
|
1638
|
-
id_str?: string;
|
|
1639
|
-
/** 索引 */
|
|
1640
|
-
indices?: number[];
|
|
1641
|
-
/** 媒体键 */
|
|
1642
|
-
media_key?: string;
|
|
1643
|
-
/** 媒体URL */
|
|
1644
|
-
media_url_https?: string;
|
|
1645
|
-
/** 类型 */
|
|
1646
|
-
type?: string;
|
|
1647
|
-
/** URL */
|
|
1648
|
-
url?: string;
|
|
1649
|
-
/** 额外媒体信息 */
|
|
1650
|
-
additional_media_info?: IAdditionalMediaInfo;
|
|
1651
|
-
/** 扩展媒体可用性 */
|
|
1652
|
-
ext_media_availability?: IExtMediaAvailability;
|
|
1653
|
-
/** 尺寸 */
|
|
1654
|
-
sizes?: IMediaSizes;
|
|
1655
|
-
/** 原始信息 */
|
|
1656
|
-
original_info?: IOriginalInfo;
|
|
1657
|
-
/** 允许下载状态 */
|
|
1658
|
-
allow_download_status?: IAllowDownloadStatus;
|
|
1659
|
-
/** 视频信息 */
|
|
1660
|
-
video_info?: IVideoInfo;
|
|
1661
|
-
/** 媒体结果 */
|
|
1662
|
-
media_results?: IMediaResults;
|
|
1663
|
-
/** 特性 */
|
|
1664
|
-
features?: IMediaFeatures;
|
|
1665
|
-
/** 扩展媒体颜色 */
|
|
1666
|
-
ext_media_color?: IExtMediaColor;
|
|
1667
|
-
/** 扩展替代文本 */
|
|
1668
|
-
ext_alt_text?: string | null;
|
|
1669
|
-
/** 扩展 */
|
|
1670
|
-
ext?: IExtMedia;
|
|
1671
|
-
}
|
|
1672
|
-
/**
|
|
1673
|
-
* 额外媒体信息接口
|
|
1674
|
-
*/
|
|
1675
|
-
interface IAdditionalMediaInfo {
|
|
1676
|
-
/** 是否可变现 */
|
|
1677
|
-
monetizable?: boolean;
|
|
1678
|
-
}
|
|
1679
|
-
/**
|
|
1680
|
-
* 扩展媒体可用性接口
|
|
1681
|
-
*/
|
|
1682
|
-
interface IExtMediaAvailability {
|
|
1683
|
-
/** 状态 */
|
|
1684
|
-
status?: string;
|
|
1685
|
-
}
|
|
1686
|
-
/**
|
|
1687
|
-
* 媒体尺寸接口
|
|
1688
|
-
*/
|
|
1689
|
-
interface IMediaSizes {
|
|
1690
|
-
/** 大尺寸 */
|
|
1691
|
-
large?: IMediaSize;
|
|
1692
|
-
/** 中等尺寸 */
|
|
1693
|
-
medium?: IMediaSize;
|
|
1694
|
-
/** 小尺寸 */
|
|
1695
|
-
small?: IMediaSize;
|
|
1696
|
-
/** 缩略图 */
|
|
1697
|
-
thumb?: IMediaSize;
|
|
1698
|
-
}
|
|
1699
|
-
/**
|
|
1700
|
-
* 媒体尺寸接口
|
|
1701
|
-
*/
|
|
1702
|
-
interface IMediaSize {
|
|
1703
|
-
/** 高度 */
|
|
1704
|
-
h?: number;
|
|
1705
|
-
/** 宽度 */
|
|
1706
|
-
w?: number;
|
|
1707
|
-
/** 调整大小方式 */
|
|
1708
|
-
resize?: string;
|
|
1709
|
-
}
|
|
1710
|
-
/**
|
|
1711
|
-
* 原始信息接口
|
|
1712
|
-
*/
|
|
1713
|
-
interface IOriginalInfo {
|
|
1714
|
-
/** 高度 */
|
|
1715
|
-
height?: number;
|
|
1716
|
-
/** 宽度 */
|
|
1717
|
-
width?: number;
|
|
1718
|
-
/** 焦点矩形 */
|
|
1719
|
-
focus_rects?: IFocusRect[];
|
|
1720
|
-
}
|
|
1721
|
-
/**
|
|
1722
|
-
* 焦点矩形接口
|
|
1723
|
-
*/
|
|
1724
|
-
interface IFocusRect {
|
|
1725
|
-
/** X坐标 */
|
|
1726
|
-
x?: number;
|
|
1727
|
-
/** Y坐标 */
|
|
1728
|
-
y?: number;
|
|
1729
|
-
/** 宽度 */
|
|
1730
|
-
w?: number;
|
|
1731
|
-
/** 高度 */
|
|
1732
|
-
h?: number;
|
|
1733
|
-
}
|
|
1734
|
-
/**
|
|
1735
|
-
* 允许下载状态接口
|
|
1736
|
-
*/
|
|
1737
|
-
interface IAllowDownloadStatus {
|
|
1738
|
-
/** 是否允许下载 */
|
|
1739
|
-
allow_download?: boolean;
|
|
1740
|
-
}
|
|
1741
|
-
/**
|
|
1742
|
-
* 视频信息接口
|
|
1743
|
-
*/
|
|
1744
|
-
interface IVideoInfo {
|
|
1745
|
-
/** 宽高比 */
|
|
1746
|
-
aspect_ratio?: number[];
|
|
1747
|
-
/** 时长(毫秒) */
|
|
1748
|
-
duration_millis?: number;
|
|
1749
|
-
/** 视频变体 */
|
|
1750
|
-
variants?: IVideoVariant[];
|
|
1751
|
-
}
|
|
1752
|
-
/**
|
|
1753
|
-
* 视频变体接口
|
|
1754
|
-
*/
|
|
1755
|
-
interface IVideoVariant {
|
|
1756
|
-
/** 比特率 */
|
|
1757
|
-
bitrate?: number;
|
|
1758
|
-
/** 内容类型 */
|
|
1759
|
-
content_type?: string;
|
|
1760
|
-
/** URL */
|
|
1761
|
-
url?: string;
|
|
1762
|
-
}
|
|
1763
|
-
/**
|
|
1764
|
-
* 媒体结果接口
|
|
1765
|
-
*/
|
|
1766
|
-
interface IMediaResults {
|
|
1767
|
-
/** 结果 */
|
|
1768
|
-
result?: IMediaResult;
|
|
1769
|
-
}
|
|
1770
|
-
/**
|
|
1771
|
-
* 媒体结果接口
|
|
1772
|
-
*/
|
|
1773
|
-
interface IMediaResult {
|
|
1774
|
-
/** 媒体键 */
|
|
1775
|
-
media_key?: string;
|
|
1776
|
-
}
|
|
1777
|
-
/**
|
|
1778
|
-
* 媒体特性接口
|
|
1779
|
-
*/
|
|
1780
|
-
interface IMediaFeatures {
|
|
1781
|
-
/** 大尺寸 */
|
|
1782
|
-
large?: IMediaFeature;
|
|
1783
|
-
/** 中等尺寸 */
|
|
1784
|
-
medium?: IMediaFeature;
|
|
1785
|
-
/** 小尺寸 */
|
|
1786
|
-
small?: IMediaFeature;
|
|
1787
|
-
/** 原始尺寸 */
|
|
1788
|
-
orig?: IMediaFeature;
|
|
1789
|
-
}
|
|
1790
|
-
/**
|
|
1791
|
-
* 面部接口
|
|
1792
|
-
*/
|
|
1793
|
-
interface IFace {
|
|
1794
|
-
/** 高度 */
|
|
1795
|
-
h?: number;
|
|
1796
|
-
/** 宽度 */
|
|
1797
|
-
w?: number;
|
|
1798
|
-
/** X坐标 */
|
|
1799
|
-
x?: number;
|
|
1800
|
-
/** Y坐标 */
|
|
1801
|
-
y?: number;
|
|
1802
|
-
}
|
|
1803
|
-
/**
|
|
1804
|
-
* 媒体特性接口
|
|
1805
|
-
*/
|
|
1806
|
-
interface IMediaFeature {
|
|
1807
|
-
/** 面部 */
|
|
1808
|
-
faces?: IFace[];
|
|
1809
|
-
}
|
|
1810
|
-
/**
|
|
1811
|
-
* 扩展媒体颜色接口
|
|
1812
|
-
*/
|
|
1813
|
-
interface IExtMediaColor {
|
|
1814
|
-
/** 调色板 */
|
|
1815
|
-
palette?: IColorPalette$1[];
|
|
1816
|
-
}
|
|
1817
|
-
/**
|
|
1818
|
-
* 扩展媒体接口
|
|
1819
|
-
*/
|
|
1820
|
-
interface IExtMedia {
|
|
1821
|
-
/** 媒体统计 */
|
|
1822
|
-
mediaStats?: IMediaStats;
|
|
1823
|
-
}
|
|
1824
|
-
/**
|
|
1825
|
-
* 媒体统计接口
|
|
1826
|
-
*/
|
|
1827
|
-
interface IMediaStats {
|
|
1828
|
-
/** 统计数据 */
|
|
1829
|
-
r?: any;
|
|
1830
|
-
/** 生存时间 */
|
|
1973
|
+
r?: IOk;
|
|
1831
1974
|
ttl?: number;
|
|
1832
1975
|
}
|
|
1833
1976
|
|
|
@@ -2072,5 +2215,35 @@ interface ISimpleResult extends IResultBase<ISimpleTweet, ISimpleUser> {
|
|
|
2072
2215
|
interface IOriginalResult extends IResultBase<ITweet, IUser> {
|
|
2073
2216
|
}
|
|
2074
2217
|
|
|
2075
|
-
|
|
2076
|
-
|
|
2218
|
+
interface IListenTweetOption {
|
|
2219
|
+
enableVideoDetected?: boolean;
|
|
2220
|
+
enableTweetDetected?: boolean;
|
|
2221
|
+
enableUserDetected?: boolean;
|
|
2222
|
+
enableVideoRendered?: boolean;
|
|
2223
|
+
}
|
|
2224
|
+
|
|
2225
|
+
declare const enum ListenTweetEvents {
|
|
2226
|
+
/**
|
|
2227
|
+
* 发现视频
|
|
2228
|
+
*/
|
|
2229
|
+
VideoDetected = "__listen-tweet-video-detected",
|
|
2230
|
+
/**
|
|
2231
|
+
* 发现推文
|
|
2232
|
+
*/
|
|
2233
|
+
TweetDetected = "__listen-tweet-tweet-detected",
|
|
2234
|
+
/**
|
|
2235
|
+
* 发现用户
|
|
2236
|
+
*/
|
|
2237
|
+
UserDetected = "__listen-tweet-user-detected",
|
|
2238
|
+
/**
|
|
2239
|
+
* 推文渲染
|
|
2240
|
+
*/
|
|
2241
|
+
TweetRendered = "__listen-tweet-tweet-rendered",
|
|
2242
|
+
/**
|
|
2243
|
+
* 视频渲染
|
|
2244
|
+
*/
|
|
2245
|
+
VideoRendered = "__listen-tweet-video-rendered"
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2248
|
+
export { COMMUNITY_TYPENAMES, COMPONENT_VALUES, CONTENT_TYPES, CURSOR_TYPES, DISPLAY_TYPES, DomDisplayTypes, ELEMENT_TYPES, ELIGIBILITY_TYPES, INJECTION_TYPES, INSTRUCTION_TYPES, ITEM_TYPES, IdPrefixes, LEGACY_CARD_BINDING_KEY_TYPES, LEGACY_CARD_BINDING_VALUE_TYPES, ListenTweetEvents, MEDIA_TYPES, MESSAGE_INBOX_TIMELINE_INDEXES, NOTIFICATION_KEYS, TIMELINE_ENTRY_TYPES, TIMELINE_INSTRUCTION_TYPES, TIMELINE_ITEM_TYPENAMES, TIMELINE_ITEM_TYPES, TIMELINE_TYPENAMES, TRANSPARENT_GUIDE_DETAIL_TYPES, TWEET_DISPLAY_TYPES, TWEET_QUALITIES, TWEET_TYPENAMES, URL_TYPES, USER_DISPLAY_TYPES, USER_LABEL_TYPES, USER_TYPENAMES, VERIFIED_TYPES, VIDEO_CONTENT_TYPES, VIDEO_QUALITIES, VIEW_STATES };
|
|
2249
|
+
export type { CommunityTypename, ComponentValue, ContentType, CursorType, DisplayType, DomDisplayType, ElementType, EligibilityType, IAction, IAdditionalMediaInfo, IAffiliatesHighlightedLabel, IAllowDownloadStatus, IAltText, IApiImage, IAttachment, IAudience, IAvatar, IBadge, IBindingValue, IBindingValueContent, IButtonAction, ICard, ICardLegacy, ICardPlatform, IClientEventDetails, IClientEventInfo, IColorInfo, IColorPalette, IColorRGB, ICommunity, ICommunityActions, ICommunityDeleteActionResult, ICommunityInvitesResult, ICommunityJoinActionResult, ICommunityJoinRequestsResult, ICommunityLeaveActionResult, ICommunityMedia, ICommunityResult, ICommunityRule, ICommunityTweetPinActionResult, ICommunityUserDefaultModerationState, IContent, IConversation, IConversationDetails, IConversationMetadata, IConversationTimeline, IDevice, IDmPermissions, IDomEntry, IEditControl, IEditControlInitial, IEndpointCallback, IEntry, IExt, IExtMedia, IExtMediaAvailability, IExtMediaColor, IExtendedEntities, IFace, IFeedbackInfo, IFocusRect, IGetTweetVideoIdResult, IGlobalObjects, IGrokTranslatedPostWithAvailability, IHashtag, IHashtagEntity, IImageColorValue, IImageValue, IItem, IItemData, IItemMetadata, ILabel, IListenTweetOption, ILocation, IMediaColor, IMediaEntity, IMediaFeature, IMediaFeatures, IMediaPermissions, IMediaResult, IMediaResults, IMediaSize, IMediaSizes, IMediaStats, IMessage, IMessageData, IMessageEntities, IMessageUser, IMetadata, IModule, IModuleMetadata, INotificationExt, INotificationMediaStats, INotificationResponse, IOk, IOriginalInfo, IOriginalResult, IParticipant, IPhoto, IPlatform, IPreviousCounts, IPrivacy, IProfileBio, IQuickPromoteEligibility, IQuotedStatusPermalink, IQuotedStatusResult, IReactXCellDivProps, IRelationshipPerspectives, IResultBase, IRetweetedStatusResult, IRichText, ISalientRect, ISimpleGif, ISimpleMP4Video, ISimpleMedia, ISimpleMediaSize, ISimplePhoto, ISimpleResult, ISimpleTweet, ISimpleUrl, ISimpleUser, ISimpleVideo, ISocialContext, ISuperFollowMetadata, ISuperFollowsReplyUserResult, ITimeline, ITimelineClientEventDetails, ITimelineClientEventInfo, ITimelineContent, ITimelineConversationDetails, ITimelineEntry, ITimelineInstruction, ITimelineItemContent, ITimelineMessageContent, ITimelineModuleItem, ITimelineModuleItemContent, ITimelineTimelinesDetails, ITimelinesDetails, ITipjarSettings, ITweet, ITweetBase, ITweetCard, ITweetCore, ITweetEntities, ITweetLegacy, ITweetObject, ITweetResults, ITweetViews, ITweetVisibilityAnnotation, IUrl, IUrlEntities, IUrlEntity, IUser, IUserBase, IUserCategory, IUserCore, IUserEntities, IUserEntityUrls, IUserLegacy, IUserMention, IUserMentionEntity, IUserObject, IUserProfessional, IUserRefResult, IUserResult, IUserResults, IUserValue, IVerification, IVideoInfo, IVideoVariant, IViewCount, IViewerRelationship, IVisibilityResults, InjectionType, InstructionType, ItemType, LegacyCardBindingKeyType, LegacyCardBindingValueType, MediaType, MessageInboxTimelineIndex, NotificationKey, TimelineEntryType, TimelineInstructionType, TimelineItemType, TimelineItemTypename, TimelineTypename, TransparentGuideDetailType, TweetDisplayType, TweetQuality, TweetTypename, UrlType, UserDisplayType, UserLabelType, UserTypename, VerifiedType, VideoContentType, VideoQuality, ViewState };
|