@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.
@@ -84,6 +84,7 @@ export type GetCoinResponses = {
84
84
  */
85
85
  description: string;
86
86
  address: string;
87
+ coinType: "CREATOR" | "CONTENT" | "TREND";
87
88
  /**
88
89
  * 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.
89
90
  */
@@ -832,6 +833,7 @@ export type GetCoinsResponses = {
832
833
  */
833
834
  description: string;
834
835
  address: string;
836
+ coinType: "CREATOR" | "CONTENT" | "TREND";
835
837
  /**
836
838
  * 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.
837
839
  */
@@ -1149,12 +1151,97 @@ export type GetCoinsResponses = {
1149
1151
 
1150
1152
  export type GetCoinsResponse = GetCoinsResponses[keyof GetCoinsResponses];
1151
1153
 
1154
+ export type GetCoinsListData = {
1155
+ body?: never;
1156
+ path?: never;
1157
+ query?: {
1158
+ first?: number;
1159
+ after?: string;
1160
+ includeUSDCPrice?: boolean;
1161
+ };
1162
+ url: "/coinsList";
1163
+ };
1164
+
1165
+ export type GetCoinsListErrors = {
1166
+ /**
1167
+ * Bad request
1168
+ */
1169
+ 400: unknown;
1170
+ /**
1171
+ * Internal server error
1172
+ */
1173
+ 500: unknown;
1174
+ };
1175
+
1176
+ export type GetCoinsListResponses = {
1177
+ /**
1178
+ * Successful operation
1179
+ */
1180
+ 200: {
1181
+ coinsBasicInfo: {
1182
+ pageInfo: {
1183
+ /**
1184
+ * When paginating forwards, are there more items?
1185
+ */
1186
+ hasNextPage: boolean;
1187
+ /**
1188
+ * When paginating forwards, the cursor to continue.
1189
+ */
1190
+ endCursor?: string;
1191
+ };
1192
+ edges: Array<{
1193
+ node: {
1194
+ coinType: "CREATOR" | "CONTENT" | "TREND";
1195
+ /**
1196
+ * 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.
1197
+ */
1198
+ priceUsdc?: string;
1199
+ /**
1200
+ * 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.
1201
+ */
1202
+ entityName: string;
1203
+ /**
1204
+ * 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.
1205
+ */
1206
+ name?: string;
1207
+ /**
1208
+ * 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.
1209
+ */
1210
+ symbol?: string;
1211
+ /**
1212
+ * 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.
1213
+ */
1214
+ uri?: string;
1215
+ coinAddress: string;
1216
+ createdUserAddress: string;
1217
+ /**
1218
+ * Date with time (isoformat)
1219
+ */
1220
+ createdTimestamp: string;
1221
+ /**
1222
+ * The `Boolean` scalar type represents `true` or `false`.
1223
+ */
1224
+ platformBlocked: boolean;
1225
+ };
1226
+ }>;
1227
+ };
1228
+ };
1229
+ };
1230
+
1231
+ export type GetCoinsListResponse =
1232
+ GetCoinsListResponses[keyof GetCoinsListResponses];
1233
+
1152
1234
  export type GetContentCoinPoolConfigData = {
1153
1235
  body?: never;
1154
1236
  path?: never;
1155
1237
  query: {
1156
1238
  creatorIdentifier?: string;
1157
- currencyType: "ETH" | "ZORA" | "CREATOR_COIN" | "CREATOR_COIN_OR_ZORA";
1239
+ currencyType:
1240
+ | "ETH"
1241
+ | "ZORA"
1242
+ | "CREATOR_COIN"
1243
+ | "CREATOR_COIN_OR_ZORA"
1244
+ | "CUSTOM_COIN";
1158
1245
  };
1159
1246
  url: "/contentCoinPoolConfig";
1160
1247
  };
@@ -1277,7 +1364,9 @@ export type GetExploreData = {
1277
1364
  | "TOP_GAINERS"
1278
1365
  | "TOP_VOLUME_24H"
1279
1366
  | "MOST_VALUABLE"
1367
+ | "MOST_VALUABLE_TRENDS"
1280
1368
  | "NEW"
1369
+ | "NEW_TRENDS"
1281
1370
  | "OLD"
1282
1371
  | "LAST_TRADED"
1283
1372
  | "LAST_TRADED_UNIQUE"
@@ -1288,7 +1377,13 @@ export type GetExploreData = {
1288
1377
  | "FEATURED_CREATORS"
1289
1378
  | "TOP_VOLUME_CREATORS_24H"
1290
1379
  | "TOP_VOLUME_ALL_24H"
1291
- | "NEW_ALL";
1380
+ | "NEW_ALL"
1381
+ | "TRENDING_POSTS"
1382
+ | "TRENDING_TRENDS"
1383
+ | "TRENDING_CREATORS"
1384
+ | "TRENDING_ALL"
1385
+ | "TOP_VOLUME_TRENDS_24H"
1386
+ | "MOST_VALUABLE_ALL";
1292
1387
  count?: number;
1293
1388
  after?: string;
1294
1389
  };
@@ -1331,6 +1426,7 @@ export type GetExploreResponses = {
1331
1426
  */
1332
1427
  description: string;
1333
1428
  address: string;
1429
+ coinType: "CREATOR" | "CONTENT" | "TREND";
1334
1430
  /**
1335
1431
  * 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.
1336
1432
  */
@@ -1639,6 +1735,185 @@ export type GetFeaturedCreatorsResponses = {
1639
1735
  export type GetFeaturedCreatorsResponse =
1640
1736
  GetFeaturedCreatorsResponses[keyof GetFeaturedCreatorsResponses];
1641
1737
 
1738
+ export type GetLatestLiveStreamsData = {
1739
+ body?: never;
1740
+ path?: never;
1741
+ query?: {
1742
+ first?: number;
1743
+ after?: string;
1744
+ };
1745
+ url: "/latestLiveStreams";
1746
+ };
1747
+
1748
+ export type GetLatestLiveStreamsErrors = {
1749
+ /**
1750
+ * Bad request
1751
+ */
1752
+ 400: unknown;
1753
+ /**
1754
+ * Internal server error
1755
+ */
1756
+ 500: unknown;
1757
+ };
1758
+
1759
+ export type GetLatestLiveStreamsResponses = {
1760
+ /**
1761
+ * Successful operation
1762
+ */
1763
+ 200: {
1764
+ latestLiveStreams: {
1765
+ pageInfo: {
1766
+ /**
1767
+ * When paginating forwards, the cursor to continue.
1768
+ */
1769
+ endCursor?: string;
1770
+ /**
1771
+ * When paginating forwards, are there more items?
1772
+ */
1773
+ hasNextPage: boolean;
1774
+ };
1775
+ edges: Array<{
1776
+ node: {
1777
+ /**
1778
+ * The Globally Unique ID of this object
1779
+ */
1780
+ id: string;
1781
+ /**
1782
+ * The `Boolean` scalar type represents `true` or `false`.
1783
+ */
1784
+ isOnline: boolean;
1785
+ /**
1786
+ * The `Boolean` scalar type represents `true` or `false`.
1787
+ */
1788
+ isActive: boolean;
1789
+ /**
1790
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
1791
+ */
1792
+ concurrentViewers?: number;
1793
+ /**
1794
+ * 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.
1795
+ */
1796
+ staticThumbnailUrl?: string;
1797
+ /**
1798
+ * 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.
1799
+ */
1800
+ animatedThumbnailUrl?: string;
1801
+ creatorProfile?: {
1802
+ /**
1803
+ * The Globally Unique ID of this object
1804
+ */
1805
+ id: string;
1806
+ /**
1807
+ * Manually set username, or truncated wallet address if the profile isn't a GraphQLAccountProfile. For full wallet address, use the profile_id field instead.
1808
+ */
1809
+ handle: string;
1810
+ /**
1811
+ * The `Boolean` scalar type represents `true` or `false`.
1812
+ */
1813
+ platformBlocked: boolean;
1814
+ avatar?: {
1815
+ previewImage: {
1816
+ /**
1817
+ * 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.
1818
+ */
1819
+ blurhash?: string;
1820
+ /**
1821
+ * 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.
1822
+ */
1823
+ medium: string;
1824
+ /**
1825
+ * 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.
1826
+ */
1827
+ small: string;
1828
+ };
1829
+ };
1830
+ socialAccounts: {
1831
+ instagram?: {
1832
+ /**
1833
+ * 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.
1834
+ */
1835
+ username?: string;
1836
+ /**
1837
+ * 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.
1838
+ */
1839
+ displayName?: string;
1840
+ /**
1841
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
1842
+ */
1843
+ followerCount?: number;
1844
+ /**
1845
+ * 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.
1846
+ */
1847
+ id?: string;
1848
+ };
1849
+ tiktok?: {
1850
+ /**
1851
+ * 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.
1852
+ */
1853
+ username?: string;
1854
+ /**
1855
+ * 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.
1856
+ */
1857
+ displayName?: string;
1858
+ /**
1859
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
1860
+ */
1861
+ followerCount?: number;
1862
+ /**
1863
+ * 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.
1864
+ */
1865
+ id?: string;
1866
+ };
1867
+ twitter?: {
1868
+ /**
1869
+ * 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.
1870
+ */
1871
+ username?: string;
1872
+ /**
1873
+ * 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.
1874
+ */
1875
+ displayName?: string;
1876
+ /**
1877
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
1878
+ */
1879
+ followerCount?: number;
1880
+ /**
1881
+ * 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.
1882
+ */
1883
+ id?: string;
1884
+ };
1885
+ farcaster?: {
1886
+ /**
1887
+ * 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.
1888
+ */
1889
+ username?: string;
1890
+ /**
1891
+ * 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.
1892
+ */
1893
+ displayName?: string;
1894
+ /**
1895
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
1896
+ */
1897
+ followerCount?: number;
1898
+ /**
1899
+ * 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.
1900
+ */
1901
+ id?: string;
1902
+ };
1903
+ };
1904
+ creatorCoin?: {
1905
+ address: string;
1906
+ };
1907
+ };
1908
+ };
1909
+ }>;
1910
+ };
1911
+ };
1912
+ };
1913
+
1914
+ export type GetLatestLiveStreamsResponse =
1915
+ GetLatestLiveStreamsResponses[keyof GetLatestLiveStreamsResponses];
1916
+
1642
1917
  export type GetProfileData = {
1643
1918
  body?: never;
1644
1919
  path?: never;
@@ -1821,7 +2096,12 @@ export type GetProfileBalancesData = {
1821
2096
  identifier: string;
1822
2097
  count?: number;
1823
2098
  after?: string;
1824
- sortOption?: "BALANCE" | "MARKET_CAP" | "USD_VALUE" | "PRICE_CHANGE";
2099
+ sortOption?:
2100
+ | "BALANCE"
2101
+ | "MARKET_CAP"
2102
+ | "USD_VALUE"
2103
+ | "PRICE_CHANGE"
2104
+ | "MARKET_VALUE_USD";
1825
2105
  excludeHidden?: boolean;
1826
2106
  chainIds?: Array<number>;
1827
2107
  };
@@ -1983,6 +2263,7 @@ export type GetProfileBalancesResponses = {
1983
2263
  */
1984
2264
  description: string;
1985
2265
  address: string;
2266
+ coinType: "CREATOR" | "CONTENT" | "TREND";
1986
2267
  /**
1987
2268
  * 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.
1988
2269
  */
@@ -2387,6 +2668,7 @@ export type GetProfileCoinsResponses = {
2387
2668
  */
2388
2669
  description: string;
2389
2670
  address: string;
2671
+ coinType: "CREATOR" | "CONTENT" | "TREND";
2390
2672
  /**
2391
2673
  * 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.
2392
2674
  */
@@ -2969,6 +3251,185 @@ export type GetTokenInfoResponses = {
2969
3251
  export type GetTokenInfoResponse =
2970
3252
  GetTokenInfoResponses[keyof GetTokenInfoResponses];
2971
3253
 
3254
+ export type GetTopLiveStreamsData = {
3255
+ body?: never;
3256
+ path?: never;
3257
+ query?: {
3258
+ first?: number;
3259
+ after?: string;
3260
+ };
3261
+ url: "/topLiveStreams";
3262
+ };
3263
+
3264
+ export type GetTopLiveStreamsErrors = {
3265
+ /**
3266
+ * Bad request
3267
+ */
3268
+ 400: unknown;
3269
+ /**
3270
+ * Internal server error
3271
+ */
3272
+ 500: unknown;
3273
+ };
3274
+
3275
+ export type GetTopLiveStreamsResponses = {
3276
+ /**
3277
+ * Successful operation
3278
+ */
3279
+ 200: {
3280
+ topLiveStreams: {
3281
+ pageInfo: {
3282
+ /**
3283
+ * When paginating forwards, the cursor to continue.
3284
+ */
3285
+ endCursor?: string;
3286
+ /**
3287
+ * When paginating forwards, are there more items?
3288
+ */
3289
+ hasNextPage: boolean;
3290
+ };
3291
+ edges: Array<{
3292
+ node: {
3293
+ /**
3294
+ * The Globally Unique ID of this object
3295
+ */
3296
+ id: string;
3297
+ /**
3298
+ * The `Boolean` scalar type represents `true` or `false`.
3299
+ */
3300
+ isOnline: boolean;
3301
+ /**
3302
+ * The `Boolean` scalar type represents `true` or `false`.
3303
+ */
3304
+ isActive: boolean;
3305
+ /**
3306
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
3307
+ */
3308
+ concurrentViewers?: number;
3309
+ /**
3310
+ * 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.
3311
+ */
3312
+ staticThumbnailUrl?: string;
3313
+ /**
3314
+ * 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.
3315
+ */
3316
+ animatedThumbnailUrl?: string;
3317
+ creatorProfile?: {
3318
+ /**
3319
+ * The Globally Unique ID of this object
3320
+ */
3321
+ id: string;
3322
+ /**
3323
+ * Manually set username, or truncated wallet address if the profile isn't a GraphQLAccountProfile. For full wallet address, use the profile_id field instead.
3324
+ */
3325
+ handle: string;
3326
+ /**
3327
+ * The `Boolean` scalar type represents `true` or `false`.
3328
+ */
3329
+ platformBlocked: boolean;
3330
+ avatar?: {
3331
+ previewImage: {
3332
+ /**
3333
+ * 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.
3334
+ */
3335
+ blurhash?: string;
3336
+ /**
3337
+ * 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.
3338
+ */
3339
+ medium: string;
3340
+ /**
3341
+ * 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.
3342
+ */
3343
+ small: string;
3344
+ };
3345
+ };
3346
+ socialAccounts: {
3347
+ instagram?: {
3348
+ /**
3349
+ * 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.
3350
+ */
3351
+ username?: string;
3352
+ /**
3353
+ * 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.
3354
+ */
3355
+ displayName?: string;
3356
+ /**
3357
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
3358
+ */
3359
+ followerCount?: number;
3360
+ /**
3361
+ * 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.
3362
+ */
3363
+ id?: string;
3364
+ };
3365
+ tiktok?: {
3366
+ /**
3367
+ * 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.
3368
+ */
3369
+ username?: string;
3370
+ /**
3371
+ * 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.
3372
+ */
3373
+ displayName?: string;
3374
+ /**
3375
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
3376
+ */
3377
+ followerCount?: number;
3378
+ /**
3379
+ * 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.
3380
+ */
3381
+ id?: string;
3382
+ };
3383
+ twitter?: {
3384
+ /**
3385
+ * 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.
3386
+ */
3387
+ username?: string;
3388
+ /**
3389
+ * 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.
3390
+ */
3391
+ displayName?: string;
3392
+ /**
3393
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
3394
+ */
3395
+ followerCount?: number;
3396
+ /**
3397
+ * 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.
3398
+ */
3399
+ id?: string;
3400
+ };
3401
+ farcaster?: {
3402
+ /**
3403
+ * 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.
3404
+ */
3405
+ username?: string;
3406
+ /**
3407
+ * 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.
3408
+ */
3409
+ displayName?: string;
3410
+ /**
3411
+ * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
3412
+ */
3413
+ followerCount?: number;
3414
+ /**
3415
+ * 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.
3416
+ */
3417
+ id?: string;
3418
+ };
3419
+ };
3420
+ creatorCoin?: {
3421
+ address: string;
3422
+ };
3423
+ };
3424
+ };
3425
+ }>;
3426
+ };
3427
+ };
3428
+ };
3429
+
3430
+ export type GetTopLiveStreamsResponse =
3431
+ GetTopLiveStreamsResponses[keyof GetTopLiveStreamsResponses];
3432
+
2972
3433
  export type GetTraderLeaderboardData = {
2973
3434
  body?: never;
2974
3435
  path?: never;
@@ -3245,6 +3706,10 @@ export type PostCreateContentResponses = {
3245
3706
  * The currency that the coin will be backed by
3246
3707
  */
3247
3708
  backingCurrency?: string;
3709
+ /**
3710
+ * Whether smart wallet routing was used
3711
+ */
3712
+ usedSmartWalletRouting?: boolean;
3248
3713
  };
3249
3714
  };
3250
3715