@zoralabs/coins-sdk 0.2.11 → 0.3.0

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/actions/createCoin.d.ts +52 -21
  3. package/dist/actions/createCoin.d.ts.map +1 -1
  4. package/dist/api/create.d.ts +8 -0
  5. package/dist/api/create.d.ts.map +1 -0
  6. package/dist/api/index.d.ts +4 -0
  7. package/dist/api/index.d.ts.map +1 -1
  8. package/dist/api/pool-config.d.ts +5 -0
  9. package/dist/api/pool-config.d.ts.map +1 -0
  10. package/dist/client/sdk.gen.d.ts +194 -1
  11. package/dist/client/sdk.gen.d.ts.map +1 -1
  12. package/dist/client/types.gen.d.ts +567 -0
  13. package/dist/client/types.gen.d.ts.map +1 -1
  14. package/dist/index.cjs +416 -461
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.ts +2 -3
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +387 -432
  19. package/dist/index.js.map +1 -1
  20. package/dist/uploader/metadata.d.ts.map +1 -1
  21. package/dist/uploader/types.d.ts +4 -1
  22. package/dist/uploader/types.d.ts.map +1 -1
  23. package/dist/utils/rethrowDecodedRevert.d.ts +3 -0
  24. package/dist/utils/rethrowDecodedRevert.d.ts.map +1 -0
  25. package/package.json +1 -1
  26. package/src/actions/createCoin.ts +154 -112
  27. package/src/api/create.ts +24 -0
  28. package/src/api/index.ts +8 -0
  29. package/src/api/pool-config.ts +17 -0
  30. package/src/client/sdk.gen.ts +50 -0
  31. package/src/client/types.gen.ts +581 -0
  32. package/src/index.ts +4 -6
  33. package/src/uploader/metadata.ts +4 -1
  34. package/src/uploader/types.ts +4 -1
  35. package/src/utils/rethrowDecodedRevert.ts +50 -0
  36. package/dist/actions/getOnchainCoinDetails.d.ts +0 -32
  37. package/dist/actions/getOnchainCoinDetails.d.ts.map +0 -1
  38. package/dist/utils/getPrepurchaseHook.d.ts +0 -16
  39. package/dist/utils/getPrepurchaseHook.d.ts.map +0 -1
  40. package/src/actions/getOnchainCoinDetails.ts +0 -68
  41. package/src/utils/getPrepurchaseHook.ts +0 -59
@@ -161,6 +161,67 @@ export type GetCoinResponses = {
161
161
  small: string;
162
162
  };
163
163
  };
164
+ socialAccounts: {
165
+ instagram?: {
166
+ /**
167
+ * 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.
168
+ */
169
+ username?: string;
170
+ /**
171
+ * 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.
172
+ */
173
+ displayName?: string;
174
+ /**
175
+ * 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.
176
+ */
177
+ id?: string;
178
+ };
179
+ tiktok?: {
180
+ /**
181
+ * 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.
182
+ */
183
+ username?: string;
184
+ /**
185
+ * 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.
186
+ */
187
+ displayName?: string;
188
+ /**
189
+ * 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.
190
+ */
191
+ id?: string;
192
+ };
193
+ twitter?: {
194
+ /**
195
+ * 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.
196
+ */
197
+ username?: string;
198
+ /**
199
+ * 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.
200
+ */
201
+ displayName?: string;
202
+ /**
203
+ * 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.
204
+ */
205
+ id?: string;
206
+ };
207
+ farcaster?: {
208
+ /**
209
+ * 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.
210
+ */
211
+ username?: string;
212
+ /**
213
+ * 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.
214
+ */
215
+ displayName?: string;
216
+ /**
217
+ * 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.
218
+ */
219
+ id?: string;
220
+ };
221
+ };
222
+ creatorCoin?: {
223
+ address: string;
224
+ };
164
225
  };
165
226
  mediaContent?: {
166
227
  /**
@@ -780,6 +841,67 @@ export type GetCoinsResponses = {
780
841
  small: string;
781
842
  };
782
843
  };
844
+ socialAccounts: {
845
+ instagram?: {
846
+ /**
847
+ * 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.
848
+ */
849
+ username?: string;
850
+ /**
851
+ * 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.
852
+ */
853
+ displayName?: string;
854
+ /**
855
+ * 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.
856
+ */
857
+ id?: string;
858
+ };
859
+ tiktok?: {
860
+ /**
861
+ * 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.
862
+ */
863
+ username?: string;
864
+ /**
865
+ * 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.
866
+ */
867
+ displayName?: string;
868
+ /**
869
+ * 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.
870
+ */
871
+ id?: string;
872
+ };
873
+ twitter?: {
874
+ /**
875
+ * 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.
876
+ */
877
+ username?: string;
878
+ /**
879
+ * 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.
880
+ */
881
+ displayName?: string;
882
+ /**
883
+ * 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.
884
+ */
885
+ id?: string;
886
+ };
887
+ farcaster?: {
888
+ /**
889
+ * 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.
890
+ */
891
+ username?: string;
892
+ /**
893
+ * 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.
894
+ */
895
+ displayName?: string;
896
+ /**
897
+ * 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.
898
+ */
899
+ id?: string;
900
+ };
901
+ };
902
+ creatorCoin?: {
903
+ address: string;
904
+ };
783
905
  };
784
906
  mediaContent?: {
785
907
  /**
@@ -1071,6 +1193,67 @@ export type GetExploreResponses = {
1071
1193
  small: string;
1072
1194
  };
1073
1195
  };
1196
+ socialAccounts: {
1197
+ instagram?: {
1198
+ /**
1199
+ * 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.
1200
+ */
1201
+ username?: string;
1202
+ /**
1203
+ * 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.
1204
+ */
1205
+ displayName?: string;
1206
+ /**
1207
+ * 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.
1208
+ */
1209
+ id?: string;
1210
+ };
1211
+ tiktok?: {
1212
+ /**
1213
+ * 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.
1214
+ */
1215
+ username?: string;
1216
+ /**
1217
+ * 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.
1218
+ */
1219
+ displayName?: string;
1220
+ /**
1221
+ * 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.
1222
+ */
1223
+ id?: string;
1224
+ };
1225
+ twitter?: {
1226
+ /**
1227
+ * 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.
1228
+ */
1229
+ username?: string;
1230
+ /**
1231
+ * 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.
1232
+ */
1233
+ displayName?: string;
1234
+ /**
1235
+ * 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.
1236
+ */
1237
+ id?: string;
1238
+ };
1239
+ farcaster?: {
1240
+ /**
1241
+ * 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.
1242
+ */
1243
+ username?: string;
1244
+ /**
1245
+ * 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.
1246
+ */
1247
+ displayName?: string;
1248
+ /**
1249
+ * 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.
1250
+ */
1251
+ id?: string;
1252
+ };
1253
+ };
1254
+ creatorCoin?: {
1255
+ address: string;
1256
+ };
1074
1257
  };
1075
1258
  mediaContent?: {
1076
1259
  /**
@@ -1209,6 +1392,10 @@ export type GetProfileResponses = {
1209
1392
  * 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.
1210
1393
  */
1211
1394
  displayName?: string;
1395
+ /**
1396
+ * 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.
1397
+ */
1398
+ id?: string;
1212
1399
  };
1213
1400
  tiktok?: {
1214
1401
  /**
@@ -1219,6 +1406,10 @@ export type GetProfileResponses = {
1219
1406
  * 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.
1220
1407
  */
1221
1408
  displayName?: string;
1409
+ /**
1410
+ * 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.
1411
+ */
1412
+ id?: string;
1222
1413
  };
1223
1414
  twitter?: {
1224
1415
  /**
@@ -1229,6 +1420,10 @@ export type GetProfileResponses = {
1229
1420
  * 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.
1230
1421
  */
1231
1422
  displayName?: string;
1423
+ /**
1424
+ * 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.
1425
+ */
1426
+ id?: string;
1232
1427
  };
1233
1428
  farcaster?: {
1234
1429
  /**
@@ -1239,6 +1434,10 @@ export type GetProfileResponses = {
1239
1434
  * 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.
1240
1435
  */
1241
1436
  displayName?: string;
1437
+ /**
1438
+ * 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.
1439
+ */
1440
+ id?: string;
1242
1441
  };
1243
1442
  };
1244
1443
  linkedWallets: {
@@ -1317,6 +1516,67 @@ export type GetProfileBalancesResponses = {
1317
1516
  small: string;
1318
1517
  };
1319
1518
  };
1519
+ socialAccounts: {
1520
+ instagram?: {
1521
+ /**
1522
+ * 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.
1523
+ */
1524
+ username?: string;
1525
+ /**
1526
+ * 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.
1527
+ */
1528
+ displayName?: string;
1529
+ /**
1530
+ * 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.
1531
+ */
1532
+ id?: string;
1533
+ };
1534
+ tiktok?: {
1535
+ /**
1536
+ * 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.
1537
+ */
1538
+ username?: string;
1539
+ /**
1540
+ * 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.
1541
+ */
1542
+ displayName?: string;
1543
+ /**
1544
+ * 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.
1545
+ */
1546
+ id?: string;
1547
+ };
1548
+ twitter?: {
1549
+ /**
1550
+ * 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.
1551
+ */
1552
+ username?: string;
1553
+ /**
1554
+ * 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.
1555
+ */
1556
+ displayName?: string;
1557
+ /**
1558
+ * 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.
1559
+ */
1560
+ id?: string;
1561
+ };
1562
+ farcaster?: {
1563
+ /**
1564
+ * 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.
1565
+ */
1566
+ username?: string;
1567
+ /**
1568
+ * 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.
1569
+ */
1570
+ displayName?: string;
1571
+ /**
1572
+ * 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.
1573
+ */
1574
+ id?: string;
1575
+ };
1576
+ };
1577
+ creatorCoin?: {
1578
+ address: string;
1579
+ };
1320
1580
  coinBalances: {
1321
1581
  /**
1322
1582
  * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
@@ -1435,6 +1695,67 @@ export type GetProfileBalancesResponses = {
1435
1695
  small: string;
1436
1696
  };
1437
1697
  };
1698
+ socialAccounts: {
1699
+ instagram?: {
1700
+ /**
1701
+ * 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.
1702
+ */
1703
+ username?: string;
1704
+ /**
1705
+ * 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.
1706
+ */
1707
+ displayName?: string;
1708
+ /**
1709
+ * 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.
1710
+ */
1711
+ id?: string;
1712
+ };
1713
+ tiktok?: {
1714
+ /**
1715
+ * 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.
1716
+ */
1717
+ username?: string;
1718
+ /**
1719
+ * 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.
1720
+ */
1721
+ displayName?: string;
1722
+ /**
1723
+ * 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.
1724
+ */
1725
+ id?: string;
1726
+ };
1727
+ twitter?: {
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
+ username?: 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
+ displayName?: 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
+ id?: string;
1740
+ };
1741
+ farcaster?: {
1742
+ /**
1743
+ * 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.
1744
+ */
1745
+ username?: string;
1746
+ /**
1747
+ * 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.
1748
+ */
1749
+ displayName?: string;
1750
+ /**
1751
+ * 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.
1752
+ */
1753
+ id?: string;
1754
+ };
1755
+ };
1756
+ creatorCoin?: {
1757
+ address: string;
1758
+ };
1438
1759
  };
1439
1760
  mediaContent?: {
1440
1761
  /**
@@ -1548,6 +1869,67 @@ export type GetProfileCoinsResponses = {
1548
1869
  small: string;
1549
1870
  };
1550
1871
  };
1872
+ socialAccounts: {
1873
+ instagram?: {
1874
+ /**
1875
+ * 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.
1876
+ */
1877
+ username?: string;
1878
+ /**
1879
+ * 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.
1880
+ */
1881
+ displayName?: string;
1882
+ /**
1883
+ * 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.
1884
+ */
1885
+ id?: string;
1886
+ };
1887
+ tiktok?: {
1888
+ /**
1889
+ * 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.
1890
+ */
1891
+ username?: string;
1892
+ /**
1893
+ * 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.
1894
+ */
1895
+ displayName?: string;
1896
+ /**
1897
+ * 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.
1898
+ */
1899
+ id?: string;
1900
+ };
1901
+ twitter?: {
1902
+ /**
1903
+ * 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.
1904
+ */
1905
+ username?: string;
1906
+ /**
1907
+ * 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.
1908
+ */
1909
+ displayName?: string;
1910
+ /**
1911
+ * 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.
1912
+ */
1913
+ id?: string;
1914
+ };
1915
+ farcaster?: {
1916
+ /**
1917
+ * 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.
1918
+ */
1919
+ username?: string;
1920
+ /**
1921
+ * 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.
1922
+ */
1923
+ displayName?: string;
1924
+ /**
1925
+ * 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.
1926
+ */
1927
+ id?: string;
1928
+ };
1929
+ };
1930
+ creatorCoin?: {
1931
+ address: string;
1932
+ };
1551
1933
  createdCoins?: {
1552
1934
  /**
1553
1935
  * The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
@@ -1657,6 +2039,67 @@ export type GetProfileCoinsResponses = {
1657
2039
  small: string;
1658
2040
  };
1659
2041
  };
2042
+ socialAccounts: {
2043
+ instagram?: {
2044
+ /**
2045
+ * 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.
2046
+ */
2047
+ username?: string;
2048
+ /**
2049
+ * 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.
2050
+ */
2051
+ displayName?: string;
2052
+ /**
2053
+ * 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.
2054
+ */
2055
+ id?: string;
2056
+ };
2057
+ tiktok?: {
2058
+ /**
2059
+ * 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.
2060
+ */
2061
+ username?: string;
2062
+ /**
2063
+ * 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.
2064
+ */
2065
+ displayName?: string;
2066
+ /**
2067
+ * 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.
2068
+ */
2069
+ id?: string;
2070
+ };
2071
+ twitter?: {
2072
+ /**
2073
+ * 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.
2074
+ */
2075
+ username?: string;
2076
+ /**
2077
+ * 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.
2078
+ */
2079
+ displayName?: string;
2080
+ /**
2081
+ * 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.
2082
+ */
2083
+ id?: string;
2084
+ };
2085
+ farcaster?: {
2086
+ /**
2087
+ * 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.
2088
+ */
2089
+ username?: string;
2090
+ /**
2091
+ * 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.
2092
+ */
2093
+ displayName?: string;
2094
+ /**
2095
+ * 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.
2096
+ */
2097
+ id?: string;
2098
+ };
2099
+ };
2100
+ creatorCoin?: {
2101
+ address: string;
2102
+ };
1660
2103
  };
1661
2104
  mediaContent?: {
1662
2105
  /**
@@ -1786,6 +2229,7 @@ export type GetProfileCoinsResponses = {
1786
2229
  export type GetProfileCoinsResponse = GetProfileCoinsResponses[keyof GetProfileCoinsResponses];
1787
2230
  export type PostQuoteData = {
1788
2231
  body?: {
2232
+ referrer?: string;
1789
2233
  signatures?: Array<{
1790
2234
  permit: {
1791
2235
  details: {
@@ -1870,6 +2314,129 @@ export type PostQuoteResponses = {
1870
2314
  };
1871
2315
  };
1872
2316
  export type PostQuoteResponse = PostQuoteResponses[keyof PostQuoteResponses];
2317
+ export type GetCreateContentPoolConfigData = {
2318
+ body?: never;
2319
+ path?: never;
2320
+ query?: {
2321
+ starting_market_cap?: "HIGH" | "LOW";
2322
+ currency?: "CREATOR_COIN" | "ZORA" | "ETH" | "CREATOR_COIN_OR_ZORA";
2323
+ creator_identifier?: string;
2324
+ chain_id?: string;
2325
+ };
2326
+ url: "/create/content/pool-config";
2327
+ };
2328
+ export type GetCreateContentPoolConfigErrors = {
2329
+ /**
2330
+ * Invalid backing currency address
2331
+ */
2332
+ 400: {
2333
+ error: string;
2334
+ };
2335
+ };
2336
+ export type GetCreateContentPoolConfigError = GetCreateContentPoolConfigErrors[keyof GetCreateContentPoolConfigErrors];
2337
+ export type GetCreateContentPoolConfigResponses = {
2338
+ /**
2339
+ * Content pool configuration
2340
+ */
2341
+ 200: {
2342
+ /**
2343
+ * Encoded pool configuration as hex string
2344
+ */
2345
+ poolConfig: string;
2346
+ };
2347
+ };
2348
+ export type GetCreateContentPoolConfigResponse = GetCreateContentPoolConfigResponses[keyof GetCreateContentPoolConfigResponses];
2349
+ export type PostCreateContentData = {
2350
+ body?: {
2351
+ /**
2352
+ * EOA address of the content creator. Auto-included in the owners set and used as default payout recipient if none is specified.
2353
+ */
2354
+ creator: string;
2355
+ /**
2356
+ * Human-readable name for the content coin.
2357
+ */
2358
+ name: string;
2359
+ /**
2360
+ * Ticker symbol for the content coin (e.g. ZORA).
2361
+ */
2362
+ symbol: string;
2363
+ /**
2364
+ * Metadata configuration for the content coin.
2365
+ */
2366
+ metadata: {
2367
+ /**
2368
+ * Metadata type. Only RAW_URI is supported.
2369
+ */
2370
+ type: "RAW_URI";
2371
+ /**
2372
+ * IPFS or HTTPS URI pointing to the metadata JSON (e.g. ipfs://... or https://...).
2373
+ */
2374
+ uri: string;
2375
+ };
2376
+ /**
2377
+ * Backing currency selection for the pool.
2378
+ */
2379
+ currency: "CREATOR_COIN" | "ZORA" | "ETH" | "CREATOR_COIN_OR_ZORA";
2380
+ /**
2381
+ * Target EVM chain ID. Supported: Base mainnet and Base Sepolia. Defaults to Base mainnet.
2382
+ */
2383
+ chainId?: number;
2384
+ /**
2385
+ * Initial market cap tier for the pool configuration.
2386
+ */
2387
+ startingMarketCap?: "LOW" | "HIGH";
2388
+ /**
2389
+ * Optional platform referrer address for attribution. Use zero address if not applicable.
2390
+ */
2391
+ platformReferrer?: string;
2392
+ /**
2393
+ * Optional additional owner addresses to include. Each owner has full admin access to the coin. The creator address is automatically included.
2394
+ */
2395
+ additionalOwners?: Array<string>;
2396
+ /**
2397
+ * Optional address to receive payouts/fees. Defaults to the creator if omitted.
2398
+ */
2399
+ payoutRecipientOverride?: string;
2400
+ /**
2401
+ * Optional smart wallet routing. Defaults to AUTO if omitted.
2402
+ */
2403
+ smartWalletRouting?: "AUTO" | "DISABLE";
2404
+ };
2405
+ path?: never;
2406
+ query?: never;
2407
+ url: "/create/content";
2408
+ };
2409
+ export type PostCreateContentErrors = {
2410
+ /**
2411
+ * Invalid request parameters
2412
+ */
2413
+ 400: {
2414
+ error: string;
2415
+ };
2416
+ };
2417
+ export type PostCreateContentError = PostCreateContentErrors[keyof PostCreateContentErrors];
2418
+ export type PostCreateContentResponses = {
2419
+ /**
2420
+ * Content coin creation parameters
2421
+ */
2422
+ 200: {
2423
+ calls?: Array<{
2424
+ /**
2425
+ * Encoded function call data
2426
+ */
2427
+ to: string;
2428
+ /**
2429
+ * Target contract address
2430
+ */
2431
+ data: string;
2432
+ /**
2433
+ * ETH value to send
2434
+ */
2435
+ value: string;
2436
+ }>;
2437
+ };
2438
+ };
2439
+ export type PostCreateContentResponse = PostCreateContentResponses[keyof PostCreateContentResponses];
1873
2440
  export type ClientOptions = {
1874
2441
  baseUrl: "https://api-sdk.zora.engineering/" | "https://api-sdk-staging.zora.engineering/" | "http://localhost:8787/" | (string & {});
1875
2442
  };