@zoralabs/coins-sdk 0.4.3 → 0.4.7

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.
@@ -76,6 +76,7 @@ export type GetCoinResponses = {
76
76
  */
77
77
  description: string;
78
78
  address: string;
79
+ coinType: "CREATOR" | "CONTENT" | "TREND";
79
80
  /**
80
81
  * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
81
82
  */
@@ -805,6 +806,7 @@ export type GetCoinsResponses = {
805
806
  */
806
807
  description: string;
807
808
  address: string;
809
+ coinType: "CREATOR" | "CONTENT" | "TREND";
808
810
  /**
809
811
  * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
810
812
  */
@@ -1120,12 +1122,87 @@ export type GetCoinsResponses = {
1120
1122
  };
1121
1123
  };
1122
1124
  export type GetCoinsResponse = GetCoinsResponses[keyof GetCoinsResponses];
1125
+ export type GetCoinsListData = {
1126
+ body?: never;
1127
+ path?: never;
1128
+ query?: {
1129
+ first?: number;
1130
+ after?: string;
1131
+ includeUSDCPrice?: boolean;
1132
+ };
1133
+ url: "/coinsList";
1134
+ };
1135
+ export type GetCoinsListErrors = {
1136
+ /**
1137
+ * Bad request
1138
+ */
1139
+ 400: unknown;
1140
+ /**
1141
+ * Internal server error
1142
+ */
1143
+ 500: unknown;
1144
+ };
1145
+ export type GetCoinsListResponses = {
1146
+ /**
1147
+ * Successful operation
1148
+ */
1149
+ 200: {
1150
+ coinsBasicInfo: {
1151
+ pageInfo: {
1152
+ /**
1153
+ * When paginating forwards, are there more items?
1154
+ */
1155
+ hasNextPage: boolean;
1156
+ /**
1157
+ * When paginating forwards, the cursor to continue.
1158
+ */
1159
+ endCursor?: string;
1160
+ };
1161
+ edges: Array<{
1162
+ node: {
1163
+ coinType: "CREATOR" | "CONTENT" | "TREND";
1164
+ /**
1165
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1166
+ */
1167
+ priceUsdc?: string;
1168
+ /**
1169
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1170
+ */
1171
+ entityName: string;
1172
+ /**
1173
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1174
+ */
1175
+ name?: string;
1176
+ /**
1177
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1178
+ */
1179
+ symbol?: string;
1180
+ /**
1181
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1182
+ */
1183
+ uri?: string;
1184
+ coinAddress: string;
1185
+ createdUserAddress: string;
1186
+ /**
1187
+ * Date with time (isoformat)
1188
+ */
1189
+ createdTimestamp: string;
1190
+ /**
1191
+ * The `Boolean` scalar type represents `true` or `false`.
1192
+ */
1193
+ platformBlocked: boolean;
1194
+ };
1195
+ }>;
1196
+ };
1197
+ };
1198
+ };
1199
+ export type GetCoinsListResponse = GetCoinsListResponses[keyof GetCoinsListResponses];
1123
1200
  export type GetContentCoinPoolConfigData = {
1124
1201
  body?: never;
1125
1202
  path?: never;
1126
1203
  query: {
1127
1204
  creatorIdentifier?: string;
1128
- currencyType: "ETH" | "ZORA" | "CREATOR_COIN" | "CREATOR_COIN_OR_ZORA";
1205
+ currencyType: "ETH" | "ZORA" | "CREATOR_COIN" | "CREATOR_COIN_OR_ZORA" | "CUSTOM_COIN";
1129
1206
  };
1130
1207
  url: "/contentCoinPoolConfig";
1131
1208
  };
@@ -1229,7 +1306,7 @@ export type GetExploreData = {
1229
1306
  body?: never;
1230
1307
  path?: never;
1231
1308
  query: {
1232
- listType: "TOP_GAINERS" | "TOP_VOLUME_24H" | "MOST_VALUABLE" | "NEW" | "OLD" | "LAST_TRADED" | "LAST_TRADED_UNIQUE" | "FEATURED" | "FEATURED_VIDEOS" | "NEW_CREATORS" | "MOST_VALUABLE_CREATORS" | "FEATURED_CREATORS" | "TOP_VOLUME_CREATORS_24H" | "TOP_VOLUME_ALL_24H" | "NEW_ALL";
1309
+ listType: "TOP_GAINERS" | "TOP_VOLUME_24H" | "MOST_VALUABLE" | "MOST_VALUABLE_TRENDS" | "NEW" | "NEW_TRENDS" | "OLD" | "LAST_TRADED" | "LAST_TRADED_UNIQUE" | "FEATURED" | "FEATURED_VIDEOS" | "NEW_CREATORS" | "MOST_VALUABLE_CREATORS" | "FEATURED_CREATORS" | "TOP_VOLUME_CREATORS_24H" | "TOP_VOLUME_ALL_24H" | "NEW_ALL" | "TRENDING_POSTS" | "TRENDING_TRENDS" | "TRENDING_CREATORS" | "TRENDING_ALL" | "TOP_VOLUME_TRENDS_24H" | "MOST_VALUABLE_ALL";
1233
1310
  count?: number;
1234
1311
  after?: string;
1235
1312
  };
@@ -1270,6 +1347,7 @@ export type GetExploreResponses = {
1270
1347
  */
1271
1348
  description: string;
1272
1349
  address: string;
1350
+ coinType: "CREATOR" | "CONTENT" | "TREND";
1273
1351
  /**
1274
1352
  * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1275
1353
  */
@@ -1571,6 +1649,180 @@ export type GetFeaturedCreatorsResponses = {
1571
1649
  };
1572
1650
  };
1573
1651
  export type GetFeaturedCreatorsResponse = GetFeaturedCreatorsResponses[keyof GetFeaturedCreatorsResponses];
1652
+ export type GetLatestLiveStreamsData = {
1653
+ body?: never;
1654
+ path?: never;
1655
+ query?: {
1656
+ first?: number;
1657
+ after?: string;
1658
+ };
1659
+ url: "/latestLiveStreams";
1660
+ };
1661
+ export type GetLatestLiveStreamsErrors = {
1662
+ /**
1663
+ * Bad request
1664
+ */
1665
+ 400: unknown;
1666
+ /**
1667
+ * Internal server error
1668
+ */
1669
+ 500: unknown;
1670
+ };
1671
+ export type GetLatestLiveStreamsResponses = {
1672
+ /**
1673
+ * Successful operation
1674
+ */
1675
+ 200: {
1676
+ latestLiveStreams: {
1677
+ pageInfo: {
1678
+ /**
1679
+ * When paginating forwards, the cursor to continue.
1680
+ */
1681
+ endCursor?: string;
1682
+ /**
1683
+ * When paginating forwards, are there more items?
1684
+ */
1685
+ hasNextPage: boolean;
1686
+ };
1687
+ edges: Array<{
1688
+ node: {
1689
+ /**
1690
+ * The Globally Unique ID of this object
1691
+ */
1692
+ id: string;
1693
+ /**
1694
+ * The `Boolean` scalar type represents `true` or `false`.
1695
+ */
1696
+ isOnline: boolean;
1697
+ /**
1698
+ * The `Boolean` scalar type represents `true` or `false`.
1699
+ */
1700
+ isActive: boolean;
1701
+ /**
1702
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
1703
+ */
1704
+ concurrentViewers?: number;
1705
+ /**
1706
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1707
+ */
1708
+ staticThumbnailUrl?: string;
1709
+ /**
1710
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1711
+ */
1712
+ animatedThumbnailUrl?: string;
1713
+ creatorProfile?: {
1714
+ /**
1715
+ * The Globally Unique ID of this object
1716
+ */
1717
+ id: string;
1718
+ /**
1719
+ * Manually set username, or truncated wallet address if the profile isn't a GraphQLAccountProfile. For full wallet address, use the profile_id field instead.
1720
+ */
1721
+ handle: string;
1722
+ /**
1723
+ * The `Boolean` scalar type represents `true` or `false`.
1724
+ */
1725
+ platformBlocked: boolean;
1726
+ avatar?: {
1727
+ previewImage: {
1728
+ /**
1729
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1730
+ */
1731
+ blurhash?: string;
1732
+ /**
1733
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1734
+ */
1735
+ medium: string;
1736
+ /**
1737
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1738
+ */
1739
+ small: string;
1740
+ };
1741
+ };
1742
+ socialAccounts: {
1743
+ instagram?: {
1744
+ /**
1745
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1746
+ */
1747
+ username?: string;
1748
+ /**
1749
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1750
+ */
1751
+ displayName?: string;
1752
+ /**
1753
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
1754
+ */
1755
+ followerCount?: number;
1756
+ /**
1757
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1758
+ */
1759
+ id?: string;
1760
+ };
1761
+ tiktok?: {
1762
+ /**
1763
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1764
+ */
1765
+ username?: string;
1766
+ /**
1767
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1768
+ */
1769
+ displayName?: string;
1770
+ /**
1771
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
1772
+ */
1773
+ followerCount?: number;
1774
+ /**
1775
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1776
+ */
1777
+ id?: string;
1778
+ };
1779
+ twitter?: {
1780
+ /**
1781
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1782
+ */
1783
+ username?: string;
1784
+ /**
1785
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1786
+ */
1787
+ displayName?: string;
1788
+ /**
1789
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
1790
+ */
1791
+ followerCount?: number;
1792
+ /**
1793
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1794
+ */
1795
+ id?: string;
1796
+ };
1797
+ farcaster?: {
1798
+ /**
1799
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1800
+ */
1801
+ username?: string;
1802
+ /**
1803
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1804
+ */
1805
+ displayName?: string;
1806
+ /**
1807
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
1808
+ */
1809
+ followerCount?: number;
1810
+ /**
1811
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1812
+ */
1813
+ id?: string;
1814
+ };
1815
+ };
1816
+ creatorCoin?: {
1817
+ address: string;
1818
+ };
1819
+ };
1820
+ };
1821
+ }>;
1822
+ };
1823
+ };
1824
+ };
1825
+ export type GetLatestLiveStreamsResponse = GetLatestLiveStreamsResponses[keyof GetLatestLiveStreamsResponses];
1574
1826
  export type GetProfileData = {
1575
1827
  body?: never;
1576
1828
  path?: never;
@@ -1749,7 +2001,7 @@ export type GetProfileBalancesData = {
1749
2001
  identifier: string;
1750
2002
  count?: number;
1751
2003
  after?: string;
1752
- sortOption?: "BALANCE" | "MARKET_CAP" | "USD_VALUE" | "PRICE_CHANGE";
2004
+ sortOption?: "BALANCE" | "MARKET_CAP" | "USD_VALUE" | "PRICE_CHANGE" | "MARKET_VALUE_USD";
1753
2005
  excludeHidden?: boolean;
1754
2006
  chainIds?: Array<number>;
1755
2007
  };
@@ -1909,6 +2161,7 @@ export type GetProfileBalancesResponses = {
1909
2161
  */
1910
2162
  description: string;
1911
2163
  address: string;
2164
+ coinType: "CREATOR" | "CONTENT" | "TREND";
1912
2165
  /**
1913
2166
  * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
1914
2167
  */
@@ -2308,6 +2561,7 @@ export type GetProfileCoinsResponses = {
2308
2561
  */
2309
2562
  description: string;
2310
2563
  address: string;
2564
+ coinType: "CREATOR" | "CONTENT" | "TREND";
2311
2565
  /**
2312
2566
  * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
2313
2567
  */
@@ -2877,6 +3131,180 @@ export type GetTokenInfoResponses = {
2877
3131
  };
2878
3132
  };
2879
3133
  export type GetTokenInfoResponse = GetTokenInfoResponses[keyof GetTokenInfoResponses];
3134
+ export type GetTopLiveStreamsData = {
3135
+ body?: never;
3136
+ path?: never;
3137
+ query?: {
3138
+ first?: number;
3139
+ after?: string;
3140
+ };
3141
+ url: "/topLiveStreams";
3142
+ };
3143
+ export type GetTopLiveStreamsErrors = {
3144
+ /**
3145
+ * Bad request
3146
+ */
3147
+ 400: unknown;
3148
+ /**
3149
+ * Internal server error
3150
+ */
3151
+ 500: unknown;
3152
+ };
3153
+ export type GetTopLiveStreamsResponses = {
3154
+ /**
3155
+ * Successful operation
3156
+ */
3157
+ 200: {
3158
+ topLiveStreams: {
3159
+ pageInfo: {
3160
+ /**
3161
+ * When paginating forwards, the cursor to continue.
3162
+ */
3163
+ endCursor?: string;
3164
+ /**
3165
+ * When paginating forwards, are there more items?
3166
+ */
3167
+ hasNextPage: boolean;
3168
+ };
3169
+ edges: Array<{
3170
+ node: {
3171
+ /**
3172
+ * The Globally Unique ID of this object
3173
+ */
3174
+ id: string;
3175
+ /**
3176
+ * The `Boolean` scalar type represents `true` or `false`.
3177
+ */
3178
+ isOnline: boolean;
3179
+ /**
3180
+ * The `Boolean` scalar type represents `true` or `false`.
3181
+ */
3182
+ isActive: boolean;
3183
+ /**
3184
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
3185
+ */
3186
+ concurrentViewers?: number;
3187
+ /**
3188
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
3189
+ */
3190
+ staticThumbnailUrl?: string;
3191
+ /**
3192
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
3193
+ */
3194
+ animatedThumbnailUrl?: string;
3195
+ creatorProfile?: {
3196
+ /**
3197
+ * The Globally Unique ID of this object
3198
+ */
3199
+ id: string;
3200
+ /**
3201
+ * Manually set username, or truncated wallet address if the profile isn't a GraphQLAccountProfile. For full wallet address, use the profile_id field instead.
3202
+ */
3203
+ handle: string;
3204
+ /**
3205
+ * The `Boolean` scalar type represents `true` or `false`.
3206
+ */
3207
+ platformBlocked: boolean;
3208
+ avatar?: {
3209
+ previewImage: {
3210
+ /**
3211
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
3212
+ */
3213
+ blurhash?: string;
3214
+ /**
3215
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
3216
+ */
3217
+ medium: string;
3218
+ /**
3219
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
3220
+ */
3221
+ small: string;
3222
+ };
3223
+ };
3224
+ socialAccounts: {
3225
+ instagram?: {
3226
+ /**
3227
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
3228
+ */
3229
+ username?: string;
3230
+ /**
3231
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
3232
+ */
3233
+ displayName?: string;
3234
+ /**
3235
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
3236
+ */
3237
+ followerCount?: number;
3238
+ /**
3239
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
3240
+ */
3241
+ id?: string;
3242
+ };
3243
+ tiktok?: {
3244
+ /**
3245
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
3246
+ */
3247
+ username?: string;
3248
+ /**
3249
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
3250
+ */
3251
+ displayName?: string;
3252
+ /**
3253
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
3254
+ */
3255
+ followerCount?: number;
3256
+ /**
3257
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
3258
+ */
3259
+ id?: string;
3260
+ };
3261
+ twitter?: {
3262
+ /**
3263
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
3264
+ */
3265
+ username?: string;
3266
+ /**
3267
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
3268
+ */
3269
+ displayName?: string;
3270
+ /**
3271
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
3272
+ */
3273
+ followerCount?: number;
3274
+ /**
3275
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
3276
+ */
3277
+ id?: string;
3278
+ };
3279
+ farcaster?: {
3280
+ /**
3281
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
3282
+ */
3283
+ username?: string;
3284
+ /**
3285
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
3286
+ */
3287
+ displayName?: string;
3288
+ /**
3289
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
3290
+ */
3291
+ followerCount?: number;
3292
+ /**
3293
+ * The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
3294
+ */
3295
+ id?: string;
3296
+ };
3297
+ };
3298
+ creatorCoin?: {
3299
+ address: string;
3300
+ };
3301
+ };
3302
+ };
3303
+ }>;
3304
+ };
3305
+ };
3306
+ };
3307
+ export type GetTopLiveStreamsResponse = GetTopLiveStreamsResponses[keyof GetTopLiveStreamsResponses];
2880
3308
  export type GetTraderLeaderboardData = {
2881
3309
  body?: never;
2882
3310
  path?: never;
@@ -3139,6 +3567,10 @@ export type PostCreateContentResponses = {
3139
3567
  * The currency that the coin will be backed by
3140
3568
  */
3141
3569
  backingCurrency?: string;
3570
+ /**
3571
+ * Whether smart wallet routing was used
3572
+ */
3573
+ usedSmartWalletRouting?: boolean;
3142
3574
  };
3143
3575
  };
3144
3576
  export type PostCreateContentResponse = PostCreateContentResponses[keyof PostCreateContentResponses];