@metamask-previews/social-controllers 3.19.0-preview-9dfb538be → 3.20.0-preview-a2a3d82

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/dist/structs.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { FeedResponse } from './social-types.js';
2
- export { AuthorCommentStruct, CommentEngagementStruct, CommentReactionProfileStruct, } from './social-types.js';
2
+ export { AuthorCommentStruct, CommentEngagementStruct, CommentReactionProfileStruct, ProfileIdentityStruct, } from './social-types.js';
3
3
  export declare const SocialHandlesStruct: import("@metamask/superstruct").Struct<{
4
4
  twitter?: string | null | undefined;
5
5
  farcaster?: string | null | undefined;
@@ -12,11 +12,26 @@ export declare const SocialHandlesStruct: import("@metamask/superstruct").Struct
12
12
  lens: import("@metamask/superstruct").Struct<string | null | undefined, null>;
13
13
  }>;
14
14
  export declare const ProfileSummaryStruct: import("@metamask/superstruct").Struct<{
15
+ displayName?: string | null | undefined;
16
+ bio?: string | null | undefined;
17
+ createdAt?: string | null | undefined;
18
+ updatedAt?: string | null | undefined;
19
+ connectedToX?: boolean | null | undefined;
20
+ tradingPrivacy?: "private" | "public" | null | undefined;
15
21
  profileId: string;
16
22
  address: string;
17
23
  name: string;
18
24
  imageUrl?: string | null | undefined;
19
25
  }, {
26
+ displayName: import("@metamask/superstruct").Struct<string | null | undefined, null>;
27
+ bio: import("@metamask/superstruct").Struct<string | null | undefined, null>;
28
+ createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
29
+ updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
30
+ connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
31
+ tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
32
+ private: "private";
33
+ public: "public";
34
+ }>;
20
35
  profileId: import("@metamask/superstruct").Struct<string, null>;
21
36
  address: import("@metamask/superstruct").Struct<string, null>;
22
37
  name: import("@metamask/superstruct").Struct<string, null>;
@@ -459,6 +474,12 @@ export declare const FeedItemStruct: import("@metamask/superstruct").Struct<{
459
474
  positionAmountWithLeverage?: number | null | undefined;
460
475
  flags?: string[] | null | undefined;
461
476
  actor: {
477
+ displayName?: string | null | undefined;
478
+ bio?: string | null | undefined;
479
+ createdAt?: string | null | undefined;
480
+ updatedAt?: string | null | undefined;
481
+ connectedToX?: boolean | null | undefined;
482
+ tradingPrivacy?: "private" | "public" | null | undefined;
462
483
  profileId: string;
463
484
  address: string;
464
485
  name: string;
@@ -709,6 +730,12 @@ export declare const FeedItemStruct: import("@metamask/superstruct").Struct<{
709
730
  positionAmountWithLeverage: import("@metamask/superstruct").Struct<number | null | undefined, null>;
710
731
  flags: import("@metamask/superstruct").Struct<string[] | null | undefined, import("@metamask/superstruct").Struct<string, null>>;
711
732
  actor: import("@metamask/superstruct").Struct<{
733
+ displayName?: string | null | undefined;
734
+ bio?: string | null | undefined;
735
+ createdAt?: string | null | undefined;
736
+ updatedAt?: string | null | undefined;
737
+ connectedToX?: boolean | null | undefined;
738
+ tradingPrivacy?: "private" | "public" | null | undefined;
712
739
  profileId: string;
713
740
  address: string;
714
741
  name: string;
@@ -720,6 +747,15 @@ export declare const FeedItemStruct: import("@metamask/superstruct").Struct<{
720
747
  tradeCount30d?: number | null | undefined;
721
748
  followerCount?: number | null | undefined;
722
749
  }, {
750
+ displayName: import("@metamask/superstruct").Struct<string | null | undefined, null>;
751
+ bio: import("@metamask/superstruct").Struct<string | null | undefined, null>;
752
+ createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
753
+ updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
754
+ connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
755
+ tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
756
+ private: "private";
757
+ public: "public";
758
+ }>;
723
759
  profileId: import("@metamask/superstruct").Struct<string, null>;
724
760
  address: import("@metamask/superstruct").Struct<string, null>;
725
761
  name: import("@metamask/superstruct").Struct<string, null>;
@@ -823,19 +859,32 @@ export declare const parseFeedResponse: (feedData: unknown, invalidMessage: stri
823
859
  export { normalizeRealtimeFeedItem, parseRealtimeFeedItem, } from './realtime-feed-item.js';
824
860
  export type { RealtimeFeedEventData } from './realtime-feed-item.js';
825
861
  export declare const TraderProfileStruct: import("@metamask/superstruct").Struct<{
862
+ displayName?: string | null | undefined;
863
+ bio?: string | null | undefined;
864
+ createdAt?: string | null | undefined;
865
+ updatedAt?: string | null | undefined;
866
+ connectedToX?: boolean | null | undefined;
867
+ tradingPrivacy?: "private" | "public" | null | undefined;
826
868
  profileId: string;
827
869
  address: string;
828
870
  allAddresses: string[];
829
871
  name: string;
830
872
  imageUrl?: string | null | undefined;
831
- createdAt?: string | null | undefined;
832
873
  }, {
874
+ displayName: import("@metamask/superstruct").Struct<string | null | undefined, null>;
875
+ bio: import("@metamask/superstruct").Struct<string | null | undefined, null>;
876
+ createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
877
+ updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
878
+ connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
879
+ tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
880
+ private: "private";
881
+ public: "public";
882
+ }>;
833
883
  profileId: import("@metamask/superstruct").Struct<string, null>;
834
884
  address: import("@metamask/superstruct").Struct<string, null>;
835
885
  allAddresses: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
836
886
  name: import("@metamask/superstruct").Struct<string, null>;
837
887
  imageUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
838
- createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
839
888
  }>;
840
889
  export declare const TraderStatsStruct: import("@metamask/superstruct").Struct<{
841
890
  pnl30d?: number | null | undefined;
@@ -886,12 +935,17 @@ export declare const CopytradedAllTimeStruct: import("@metamask/superstruct").St
886
935
  }>;
887
936
  export declare const TraderProfileResponseStruct: import("@metamask/superstruct").Struct<{
888
937
  profile: {
938
+ displayName?: string | null | undefined;
939
+ bio?: string | null | undefined;
940
+ createdAt?: string | null | undefined;
941
+ updatedAt?: string | null | undefined;
942
+ connectedToX?: boolean | null | undefined;
943
+ tradingPrivacy?: "private" | "public" | null | undefined;
889
944
  profileId: string;
890
945
  address: string;
891
946
  allAddresses: string[];
892
947
  name: string;
893
948
  imageUrl?: string | null | undefined;
894
- createdAt?: string | null | undefined;
895
949
  };
896
950
  stats: {
897
951
  pnl30d?: number | null | undefined;
@@ -929,19 +983,32 @@ export declare const TraderProfileResponseStruct: import("@metamask/superstruct"
929
983
  rankingTag?: "dolphin" | "shrimp" | "whale" | null | undefined;
930
984
  }, {
931
985
  profile: import("@metamask/superstruct").Struct<{
986
+ displayName?: string | null | undefined;
987
+ bio?: string | null | undefined;
988
+ createdAt?: string | null | undefined;
989
+ updatedAt?: string | null | undefined;
990
+ connectedToX?: boolean | null | undefined;
991
+ tradingPrivacy?: "private" | "public" | null | undefined;
932
992
  profileId: string;
933
993
  address: string;
934
994
  allAddresses: string[];
935
995
  name: string;
936
996
  imageUrl?: string | null | undefined;
937
- createdAt?: string | null | undefined;
938
997
  }, {
998
+ displayName: import("@metamask/superstruct").Struct<string | null | undefined, null>;
999
+ bio: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1000
+ createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1001
+ updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1002
+ connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
1003
+ tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
1004
+ private: "private";
1005
+ public: "public";
1006
+ }>;
939
1007
  profileId: import("@metamask/superstruct").Struct<string, null>;
940
1008
  address: import("@metamask/superstruct").Struct<string, null>;
941
1009
  allAddresses: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
942
1010
  name: import("@metamask/superstruct").Struct<string, null>;
943
1011
  imageUrl: import("@metamask/superstruct").Struct<string | null | undefined, null>;
944
- createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
945
1012
  }>;
946
1013
  stats: import("@metamask/superstruct").Struct<{
947
1014
  pnl30d?: number | null | undefined;
@@ -1018,6 +1085,12 @@ export declare const PaginationStruct: import("@metamask/superstruct").Struct<{
1018
1085
  }>;
1019
1086
  export declare const LeaderboardResponseStruct: import("@metamask/superstruct").Struct<{
1020
1087
  traders: {
1088
+ displayName?: string | null | undefined;
1089
+ bio?: string | null | undefined;
1090
+ createdAt?: string | null | undefined;
1091
+ updatedAt?: string | null | undefined;
1092
+ connectedToX?: boolean | null | undefined;
1093
+ tradingPrivacy?: "private" | "public" | null | undefined;
1021
1094
  rank: number;
1022
1095
  addresses: string[];
1023
1096
  profileId: string;
@@ -1044,6 +1117,12 @@ export declare const LeaderboardResponseStruct: import("@metamask/superstruct").
1044
1117
  }[];
1045
1118
  }, {
1046
1119
  traders: import("@metamask/superstruct").Struct<{
1120
+ displayName?: string | null | undefined;
1121
+ bio?: string | null | undefined;
1122
+ createdAt?: string | null | undefined;
1123
+ updatedAt?: string | null | undefined;
1124
+ connectedToX?: boolean | null | undefined;
1125
+ tradingPrivacy?: "private" | "public" | null | undefined;
1047
1126
  rank: number;
1048
1127
  addresses: string[];
1049
1128
  profileId: string;
@@ -1068,6 +1147,12 @@ export declare const LeaderboardResponseStruct: import("@metamask/superstruct").
1068
1147
  lens?: string | null | undefined;
1069
1148
  };
1070
1149
  }[], import("@metamask/superstruct").Struct<{
1150
+ displayName?: string | null | undefined;
1151
+ bio?: string | null | undefined;
1152
+ createdAt?: string | null | undefined;
1153
+ updatedAt?: string | null | undefined;
1154
+ connectedToX?: boolean | null | undefined;
1155
+ tradingPrivacy?: "private" | "public" | null | undefined;
1071
1156
  rank: number;
1072
1157
  addresses: string[];
1073
1158
  profileId: string;
@@ -1092,6 +1177,15 @@ export declare const LeaderboardResponseStruct: import("@metamask/superstruct").
1092
1177
  lens?: string | null | undefined;
1093
1178
  };
1094
1179
  }, {
1180
+ displayName: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1181
+ bio: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1182
+ createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1183
+ updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1184
+ connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
1185
+ tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
1186
+ private: "private";
1187
+ public: "public";
1188
+ }>;
1095
1189
  rank: import("@metamask/superstruct").Struct<number, null>;
1096
1190
  addresses: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
1097
1191
  profileId: import("@metamask/superstruct").Struct<string, null>;
@@ -1587,6 +1681,12 @@ export declare const PositionsResponseStruct: import("@metamask/superstruct").St
1587
1681
  }>;
1588
1682
  export declare const FollowersResponseStruct: import("@metamask/superstruct").Struct<{
1589
1683
  followers: {
1684
+ displayName?: string | null | undefined;
1685
+ bio?: string | null | undefined;
1686
+ createdAt?: string | null | undefined;
1687
+ updatedAt?: string | null | undefined;
1688
+ connectedToX?: boolean | null | undefined;
1689
+ tradingPrivacy?: "private" | "public" | null | undefined;
1590
1690
  profileId: string;
1591
1691
  address: string;
1592
1692
  name: string;
@@ -1595,16 +1695,37 @@ export declare const FollowersResponseStruct: import("@metamask/superstruct").St
1595
1695
  count: number;
1596
1696
  }, {
1597
1697
  followers: import("@metamask/superstruct").Struct<{
1698
+ displayName?: string | null | undefined;
1699
+ bio?: string | null | undefined;
1700
+ createdAt?: string | null | undefined;
1701
+ updatedAt?: string | null | undefined;
1702
+ connectedToX?: boolean | null | undefined;
1703
+ tradingPrivacy?: "private" | "public" | null | undefined;
1598
1704
  profileId: string;
1599
1705
  address: string;
1600
1706
  name: string;
1601
1707
  imageUrl?: string | null | undefined;
1602
1708
  }[], import("@metamask/superstruct").Struct<{
1709
+ displayName?: string | null | undefined;
1710
+ bio?: string | null | undefined;
1711
+ createdAt?: string | null | undefined;
1712
+ updatedAt?: string | null | undefined;
1713
+ connectedToX?: boolean | null | undefined;
1714
+ tradingPrivacy?: "private" | "public" | null | undefined;
1603
1715
  profileId: string;
1604
1716
  address: string;
1605
1717
  name: string;
1606
1718
  imageUrl?: string | null | undefined;
1607
1719
  }, {
1720
+ displayName: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1721
+ bio: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1722
+ createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1723
+ updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1724
+ connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
1725
+ tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
1726
+ private: "private";
1727
+ public: "public";
1728
+ }>;
1608
1729
  profileId: import("@metamask/superstruct").Struct<string, null>;
1609
1730
  address: import("@metamask/superstruct").Struct<string, null>;
1610
1731
  name: import("@metamask/superstruct").Struct<string, null>;
@@ -1614,6 +1735,12 @@ export declare const FollowersResponseStruct: import("@metamask/superstruct").St
1614
1735
  }>;
1615
1736
  export declare const FollowingResponseStruct: import("@metamask/superstruct").Struct<{
1616
1737
  following: {
1738
+ displayName?: string | null | undefined;
1739
+ bio?: string | null | undefined;
1740
+ createdAt?: string | null | undefined;
1741
+ updatedAt?: string | null | undefined;
1742
+ connectedToX?: boolean | null | undefined;
1743
+ tradingPrivacy?: "private" | "public" | null | undefined;
1617
1744
  profileId: string;
1618
1745
  address: string;
1619
1746
  name: string;
@@ -1622,16 +1749,37 @@ export declare const FollowingResponseStruct: import("@metamask/superstruct").St
1622
1749
  count: number;
1623
1750
  }, {
1624
1751
  following: import("@metamask/superstruct").Struct<{
1752
+ displayName?: string | null | undefined;
1753
+ bio?: string | null | undefined;
1754
+ createdAt?: string | null | undefined;
1755
+ updatedAt?: string | null | undefined;
1756
+ connectedToX?: boolean | null | undefined;
1757
+ tradingPrivacy?: "private" | "public" | null | undefined;
1625
1758
  profileId: string;
1626
1759
  address: string;
1627
1760
  name: string;
1628
1761
  imageUrl?: string | null | undefined;
1629
1762
  }[], import("@metamask/superstruct").Struct<{
1763
+ displayName?: string | null | undefined;
1764
+ bio?: string | null | undefined;
1765
+ createdAt?: string | null | undefined;
1766
+ updatedAt?: string | null | undefined;
1767
+ connectedToX?: boolean | null | undefined;
1768
+ tradingPrivacy?: "private" | "public" | null | undefined;
1630
1769
  profileId: string;
1631
1770
  address: string;
1632
1771
  name: string;
1633
1772
  imageUrl?: string | null | undefined;
1634
1773
  }, {
1774
+ displayName: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1775
+ bio: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1776
+ createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1777
+ updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1778
+ connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
1779
+ tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
1780
+ private: "private";
1781
+ public: "public";
1782
+ }>;
1635
1783
  profileId: import("@metamask/superstruct").Struct<string, null>;
1636
1784
  address: import("@metamask/superstruct").Struct<string, null>;
1637
1785
  name: import("@metamask/superstruct").Struct<string, null>;
@@ -1641,6 +1789,12 @@ export declare const FollowingResponseStruct: import("@metamask/superstruct").St
1641
1789
  }>;
1642
1790
  export declare const FollowResponseStruct: import("@metamask/superstruct").Struct<{
1643
1791
  followed: {
1792
+ displayName?: string | null | undefined;
1793
+ bio?: string | null | undefined;
1794
+ createdAt?: string | null | undefined;
1795
+ updatedAt?: string | null | undefined;
1796
+ connectedToX?: boolean | null | undefined;
1797
+ tradingPrivacy?: "private" | "public" | null | undefined;
1644
1798
  profileId: string;
1645
1799
  address: string;
1646
1800
  name: string;
@@ -1648,16 +1802,37 @@ export declare const FollowResponseStruct: import("@metamask/superstruct").Struc
1648
1802
  }[];
1649
1803
  }, {
1650
1804
  followed: import("@metamask/superstruct").Struct<{
1805
+ displayName?: string | null | undefined;
1806
+ bio?: string | null | undefined;
1807
+ createdAt?: string | null | undefined;
1808
+ updatedAt?: string | null | undefined;
1809
+ connectedToX?: boolean | null | undefined;
1810
+ tradingPrivacy?: "private" | "public" | null | undefined;
1651
1811
  profileId: string;
1652
1812
  address: string;
1653
1813
  name: string;
1654
1814
  imageUrl?: string | null | undefined;
1655
1815
  }[], import("@metamask/superstruct").Struct<{
1816
+ displayName?: string | null | undefined;
1817
+ bio?: string | null | undefined;
1818
+ createdAt?: string | null | undefined;
1819
+ updatedAt?: string | null | undefined;
1820
+ connectedToX?: boolean | null | undefined;
1821
+ tradingPrivacy?: "private" | "public" | null | undefined;
1656
1822
  profileId: string;
1657
1823
  address: string;
1658
1824
  name: string;
1659
1825
  imageUrl?: string | null | undefined;
1660
1826
  }, {
1827
+ displayName: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1828
+ bio: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1829
+ createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1830
+ updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1831
+ connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
1832
+ tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
1833
+ private: "private";
1834
+ public: "public";
1835
+ }>;
1661
1836
  profileId: import("@metamask/superstruct").Struct<string, null>;
1662
1837
  address: import("@metamask/superstruct").Struct<string, null>;
1663
1838
  name: import("@metamask/superstruct").Struct<string, null>;
@@ -1666,6 +1841,12 @@ export declare const FollowResponseStruct: import("@metamask/superstruct").Struc
1666
1841
  }>;
1667
1842
  export declare const UnfollowResponseStruct: import("@metamask/superstruct").Struct<{
1668
1843
  unfollowed: {
1844
+ displayName?: string | null | undefined;
1845
+ bio?: string | null | undefined;
1846
+ createdAt?: string | null | undefined;
1847
+ updatedAt?: string | null | undefined;
1848
+ connectedToX?: boolean | null | undefined;
1849
+ tradingPrivacy?: "private" | "public" | null | undefined;
1669
1850
  profileId: string;
1670
1851
  address: string;
1671
1852
  name: string;
@@ -1673,16 +1854,37 @@ export declare const UnfollowResponseStruct: import("@metamask/superstruct").Str
1673
1854
  }[];
1674
1855
  }, {
1675
1856
  unfollowed: import("@metamask/superstruct").Struct<{
1857
+ displayName?: string | null | undefined;
1858
+ bio?: string | null | undefined;
1859
+ createdAt?: string | null | undefined;
1860
+ updatedAt?: string | null | undefined;
1861
+ connectedToX?: boolean | null | undefined;
1862
+ tradingPrivacy?: "private" | "public" | null | undefined;
1676
1863
  profileId: string;
1677
1864
  address: string;
1678
1865
  name: string;
1679
1866
  imageUrl?: string | null | undefined;
1680
1867
  }[], import("@metamask/superstruct").Struct<{
1868
+ displayName?: string | null | undefined;
1869
+ bio?: string | null | undefined;
1870
+ createdAt?: string | null | undefined;
1871
+ updatedAt?: string | null | undefined;
1872
+ connectedToX?: boolean | null | undefined;
1873
+ tradingPrivacy?: "private" | "public" | null | undefined;
1681
1874
  profileId: string;
1682
1875
  address: string;
1683
1876
  name: string;
1684
1877
  imageUrl?: string | null | undefined;
1685
1878
  }, {
1879
+ displayName: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1880
+ bio: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1881
+ createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1882
+ updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1883
+ connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
1884
+ tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
1885
+ private: "private";
1886
+ public: "public";
1887
+ }>;
1686
1888
  profileId: import("@metamask/superstruct").Struct<string, null>;
1687
1889
  address: import("@metamask/superstruct").Struct<string, null>;
1688
1890
  name: import("@metamask/superstruct").Struct<string, null>;
@@ -1694,6 +1896,12 @@ export declare const BlockedProfilesResponseStruct: import("@metamask/superstruc
1694
1896
  blockedAt: number;
1695
1897
  reason: string | null;
1696
1898
  profile: {
1899
+ displayName?: string | null | undefined;
1900
+ bio?: string | null | undefined;
1901
+ createdAt?: string | null | undefined;
1902
+ updatedAt?: string | null | undefined;
1903
+ connectedToX?: boolean | null | undefined;
1904
+ tradingPrivacy?: "private" | "public" | null | undefined;
1697
1905
  profileId: string;
1698
1906
  address: string;
1699
1907
  name: string;
@@ -1706,6 +1914,12 @@ export declare const BlockedProfilesResponseStruct: import("@metamask/superstruc
1706
1914
  blockedAt: number;
1707
1915
  reason: string | null;
1708
1916
  profile: {
1917
+ displayName?: string | null | undefined;
1918
+ bio?: string | null | undefined;
1919
+ createdAt?: string | null | undefined;
1920
+ updatedAt?: string | null | undefined;
1921
+ connectedToX?: boolean | null | undefined;
1922
+ tradingPrivacy?: "private" | "public" | null | undefined;
1709
1923
  profileId: string;
1710
1924
  address: string;
1711
1925
  name: string;
@@ -1715,6 +1929,12 @@ export declare const BlockedProfilesResponseStruct: import("@metamask/superstruc
1715
1929
  blockedAt: number;
1716
1930
  reason: string | null;
1717
1931
  profile: {
1932
+ displayName?: string | null | undefined;
1933
+ bio?: string | null | undefined;
1934
+ createdAt?: string | null | undefined;
1935
+ updatedAt?: string | null | undefined;
1936
+ connectedToX?: boolean | null | undefined;
1937
+ tradingPrivacy?: "private" | "public" | null | undefined;
1718
1938
  profileId: string;
1719
1939
  address: string;
1720
1940
  name: string;
@@ -1724,11 +1944,26 @@ export declare const BlockedProfilesResponseStruct: import("@metamask/superstruc
1724
1944
  blockedAt: import("@metamask/superstruct").Struct<number, null>;
1725
1945
  reason: import("@metamask/superstruct").Struct<string | null, null>;
1726
1946
  profile: import("@metamask/superstruct").Struct<{
1947
+ displayName?: string | null | undefined;
1948
+ bio?: string | null | undefined;
1949
+ createdAt?: string | null | undefined;
1950
+ updatedAt?: string | null | undefined;
1951
+ connectedToX?: boolean | null | undefined;
1952
+ tradingPrivacy?: "private" | "public" | null | undefined;
1727
1953
  profileId: string;
1728
1954
  address: string;
1729
1955
  name: string;
1730
1956
  imageUrl?: string | null | undefined;
1731
1957
  }, {
1958
+ displayName: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1959
+ bio: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1960
+ createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1961
+ updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
1962
+ connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
1963
+ tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
1964
+ private: "private";
1965
+ public: "public";
1966
+ }>;
1732
1967
  profileId: import("@metamask/superstruct").Struct<string, null>;
1733
1968
  address: import("@metamask/superstruct").Struct<string, null>;
1734
1969
  name: import("@metamask/superstruct").Struct<string, null>;
@@ -1746,6 +1981,12 @@ export declare const BlockedContentResponseStruct: import("@metamask/superstruct
1746
1981
  text: string;
1747
1982
  createdAt: number;
1748
1983
  author: {
1984
+ displayName?: string | null | undefined;
1985
+ bio?: string | null | undefined;
1986
+ createdAt?: string | null | undefined;
1987
+ updatedAt?: string | null | undefined;
1988
+ connectedToX?: boolean | null | undefined;
1989
+ tradingPrivacy?: "private" | "public" | null | undefined;
1749
1990
  profileId: string;
1750
1991
  address: string;
1751
1992
  name: string;
@@ -1762,6 +2003,12 @@ export declare const BlockedContentResponseStruct: import("@metamask/superstruct
1762
2003
  text: string;
1763
2004
  createdAt: number;
1764
2005
  author: {
2006
+ displayName?: string | null | undefined;
2007
+ bio?: string | null | undefined;
2008
+ createdAt?: string | null | undefined;
2009
+ updatedAt?: string | null | undefined;
2010
+ connectedToX?: boolean | null | undefined;
2011
+ tradingPrivacy?: "private" | "public" | null | undefined;
1765
2012
  profileId: string;
1766
2013
  address: string;
1767
2014
  name: string;
@@ -1775,6 +2022,12 @@ export declare const BlockedContentResponseStruct: import("@metamask/superstruct
1775
2022
  text: string;
1776
2023
  createdAt: number;
1777
2024
  author: {
2025
+ displayName?: string | null | undefined;
2026
+ bio?: string | null | undefined;
2027
+ createdAt?: string | null | undefined;
2028
+ updatedAt?: string | null | undefined;
2029
+ connectedToX?: boolean | null | undefined;
2030
+ tradingPrivacy?: "private" | "public" | null | undefined;
1778
2031
  profileId: string;
1779
2032
  address: string;
1780
2033
  name: string;
@@ -1791,11 +2044,26 @@ export declare const BlockedContentResponseStruct: import("@metamask/superstruct
1791
2044
  text: import("@metamask/superstruct").Struct<string, null>;
1792
2045
  createdAt: import("@metamask/superstruct").Struct<number, null>;
1793
2046
  author: import("@metamask/superstruct").Struct<{
2047
+ displayName?: string | null | undefined;
2048
+ bio?: string | null | undefined;
2049
+ createdAt?: string | null | undefined;
2050
+ updatedAt?: string | null | undefined;
2051
+ connectedToX?: boolean | null | undefined;
2052
+ tradingPrivacy?: "private" | "public" | null | undefined;
1794
2053
  profileId: string;
1795
2054
  address: string;
1796
2055
  name: string;
1797
2056
  imageUrl?: string | null | undefined;
1798
2057
  } | null, {
2058
+ displayName: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2059
+ bio: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2060
+ createdAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2061
+ updatedAt: import("@metamask/superstruct").Struct<string | null | undefined, null>;
2062
+ connectedToX: import("@metamask/superstruct").Struct<boolean | null | undefined, null>;
2063
+ tradingPrivacy: import("@metamask/superstruct").Struct<"private" | "public" | null | undefined, {
2064
+ private: "private";
2065
+ public: "public";
2066
+ }>;
1799
2067
  profileId: import("@metamask/superstruct").Struct<string, null>;
1800
2068
  address: import("@metamask/superstruct").Struct<string, null>;
1801
2069
  name: import("@metamask/superstruct").Struct<string, null>;
@@ -1 +1 @@
1
- {"version":3,"file":"structs.d.ts","sourceRoot":"","sources":["../src/structs.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAY,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEhE,OAAO,EACL,mBAAmB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEjC,CAAC;AAQH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxC,CAAC;AAYH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGvC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;EAIzC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;EAGpC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;;;;EAGhC,CAAC"}
package/dist/structs.js CHANGED
@@ -1,17 +1,19 @@
1
1
  import { array, assign, boolean, enums, is, literal, nullable, number, optional, record, string, type as structType, union, } from '@metamask/superstruct';
2
- import { AuthorCommentStruct, CommentEngagementStruct, TRADER_RANKING_TAGS, TradeStruct, } from './social-types.js';
3
- export { AuthorCommentStruct, CommentEngagementStruct, CommentReactionProfileStruct, } from './social-types.js';
2
+ import { AuthorCommentStruct, CommentEngagementStruct, ProfileIdentityStruct, TRADER_RANKING_TAGS, TradeStruct, } from './social-types.js';
3
+ export { AuthorCommentStruct, CommentEngagementStruct, CommentReactionProfileStruct, ProfileIdentityStruct, } from './social-types.js';
4
4
  export const SocialHandlesStruct = structType({
5
5
  twitter: optional(nullable(string())),
6
6
  farcaster: optional(nullable(string())),
7
7
  ens: optional(nullable(string())),
8
8
  lens: optional(nullable(string())),
9
9
  });
10
+ const profileIdentityFields = ProfileIdentityStruct.schema;
10
11
  export const ProfileSummaryStruct = structType({
11
12
  profileId: string(),
12
13
  address: string(),
13
14
  name: string(),
14
15
  imageUrl: optional(nullable(string())),
16
+ ...profileIdentityFields,
15
17
  });
16
18
  const FeedActorStruct = assign(ProfileSummaryStruct, structType({
17
19
  winRate30d: optional(nullable(number())),
@@ -131,7 +133,7 @@ export const TraderProfileStruct = structType({
131
133
  allAddresses: array(string()),
132
134
  name: string(),
133
135
  imageUrl: optional(nullable(string())),
134
- createdAt: optional(nullable(string())),
136
+ ...profileIdentityFields,
135
137
  });
136
138
  export const TraderStatsStruct = structType({
137
139
  pnl30d: optional(nullable(number())),
@@ -191,6 +193,7 @@ const LeaderboardEntryStruct = structType({
191
193
  pnlPerChain: record(string(), number()),
192
194
  followerCount: number(),
193
195
  socialHandles: SocialHandlesStruct,
196
+ ...profileIdentityFields,
194
197
  });
195
198
  export const LeaderboardResponseStruct = structType({
196
199
  traders: array(LeaderboardEntryStruct),