@satrush/api 0.1.13 → 0.1.14

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/index.js CHANGED
@@ -984,6 +984,9 @@ var epochVaultIterationDtoSchemaResponseTransformer = (data) => {
984
984
  return data;
985
985
  };
986
986
  var epochVaultDtoSchemaResponseTransformer = (data) => {
987
+ data.activePendingUsdAmount = u64DtoSchemaResponseTransformer(data.activePendingUsdAmount);
988
+ data.activePoolBtcAmount = u64DtoSchemaResponseTransformer(data.activePoolBtcAmount);
989
+ data.activePoolUsdAmount = u64DtoSchemaResponseTransformer(data.activePoolUsdAmount);
987
990
  if (data.currentIteration) {
988
991
  data.currentIteration = epochVaultIterationDtoSchemaResponseTransformer(data.currentIteration);
989
992
  }
@@ -1030,6 +1033,8 @@ var strikeJackpotDtoSchemaResponseTransformer = (data) => {
1030
1033
  data.lastTriggerAt = new Date(data.lastTriggerAt);
1031
1034
  }
1032
1035
  data.pendingUsdAmount = u64DtoSchemaResponseTransformer(data.pendingUsdAmount);
1036
+ data.poolBtcAmount = u64DtoSchemaResponseTransformer(data.poolBtcAmount);
1037
+ data.poolUsdAmount = u64DtoSchemaResponseTransformer(data.poolUsdAmount);
1033
1038
  data.usdAmount = u64DtoSchemaResponseTransformer(data.usdAmount);
1034
1039
  return data;
1035
1040
  };
@@ -1084,6 +1089,53 @@ var getEpochHistoryResponseTransformer = async (data) => {
1084
1089
  data.data = data.data.map((item) => epochIterationHistoryDtoSchemaResponseTransformer(item));
1085
1090
  return data;
1086
1091
  };
1092
+ var epochIterationWinnerDtoSchemaResponseTransformer = (data) => {
1093
+ if (data.claimedAt) {
1094
+ data.claimedAt = new Date(data.claimedAt);
1095
+ }
1096
+ data.tickets = u64DtoSchemaResponseTransformer(data.tickets);
1097
+ data.wonBtcAmount = u64DtoSchemaResponseTransformer(data.wonBtcAmount);
1098
+ data.wonUsdAmount = u64DtoSchemaResponseTransformer(data.wonUsdAmount);
1099
+ return data;
1100
+ };
1101
+ var epochIterationDetailsDtoSchemaResponseTransformer = (data) => {
1102
+ if (data.endedAt) {
1103
+ data.endedAt = new Date(data.endedAt);
1104
+ }
1105
+ data.poolBtcAmount = u64DtoSchemaResponseTransformer(data.poolBtcAmount);
1106
+ data.poolUsdAmount = u64DtoSchemaResponseTransformer(data.poolUsdAmount);
1107
+ data.startedAt = new Date(data.startedAt);
1108
+ data.totalTickets = u64DtoSchemaResponseTransformer(data.totalTickets);
1109
+ if (data.triggeredAt) {
1110
+ data.triggeredAt = new Date(data.triggeredAt);
1111
+ }
1112
+ if (data.winners) {
1113
+ data.winners = data.winners.map((item) => epochIterationWinnerDtoSchemaResponseTransformer(item));
1114
+ }
1115
+ return data;
1116
+ };
1117
+ var getEpochIterationResponseTransformer = async (data) => {
1118
+ data.data = epochIterationDetailsDtoSchemaResponseTransformer(data.data);
1119
+ return data;
1120
+ };
1121
+ var epochIterationParticipantDtoSchemaResponseTransformer = (data) => {
1122
+ if (data.claimedAt) {
1123
+ data.claimedAt = new Date(data.claimedAt);
1124
+ }
1125
+ data.createdAt = new Date(data.createdAt);
1126
+ data.tickets = u64DtoSchemaResponseTransformer(data.tickets);
1127
+ if (data.wonBtcAmount) {
1128
+ data.wonBtcAmount = u64DtoSchemaResponseTransformer(data.wonBtcAmount);
1129
+ }
1130
+ if (data.wonUsdAmount) {
1131
+ data.wonUsdAmount = u64DtoSchemaResponseTransformer(data.wonUsdAmount);
1132
+ }
1133
+ return data;
1134
+ };
1135
+ var getEpochIterationParticipantsResponseTransformer = async (data) => {
1136
+ data.data = data.data.map((item) => epochIterationParticipantDtoSchemaResponseTransformer(item));
1137
+ return data;
1138
+ };
1087
1139
  var epochWinnerHistoryDtoSchemaResponseTransformer = (data) => {
1088
1140
  if (data.settledAt) {
1089
1141
  data.settledAt = new Date(data.settledAt);
@@ -1127,12 +1179,54 @@ var oneBtcIterationHistoryDtoSchemaResponseTransformer = (data) => {
1127
1179
  }
1128
1180
  data.startedAt = new Date(data.startedAt);
1129
1181
  data.totalTickets = u64DtoSchemaResponseTransformer(data.totalTickets);
1182
+ if (data.winnerTickets) {
1183
+ data.winnerTickets = u64DtoSchemaResponseTransformer(data.winnerTickets);
1184
+ }
1130
1185
  return data;
1131
1186
  };
1132
1187
  var getOneBtcHistoryResponseTransformer = async (data) => {
1133
1188
  data.data = data.data.map((item) => oneBtcIterationHistoryDtoSchemaResponseTransformer(item));
1134
1189
  return data;
1135
1190
  };
1191
+ var oneBtcIterationWinnerDtoSchemaResponseTransformer = (data) => {
1192
+ if (data.claimedAt) {
1193
+ data.claimedAt = new Date(data.claimedAt);
1194
+ }
1195
+ if (data.tickets) {
1196
+ data.tickets = u64DtoSchemaResponseTransformer(data.tickets);
1197
+ }
1198
+ return data;
1199
+ };
1200
+ var oneBtcIterationDetailsDtoSchemaResponseTransformer = (data) => {
1201
+ if (data.endedAt) {
1202
+ data.endedAt = new Date(data.endedAt);
1203
+ }
1204
+ if (data.settledAt) {
1205
+ data.settledAt = new Date(data.settledAt);
1206
+ }
1207
+ data.startedAt = new Date(data.startedAt);
1208
+ data.totalTickets = u64DtoSchemaResponseTransformer(data.totalTickets);
1209
+ if (data.winner) {
1210
+ data.winner = oneBtcIterationWinnerDtoSchemaResponseTransformer(data.winner);
1211
+ }
1212
+ return data;
1213
+ };
1214
+ var getOneBtcIterationResponseTransformer = async (data) => {
1215
+ data.data = oneBtcIterationDetailsDtoSchemaResponseTransformer(data.data);
1216
+ return data;
1217
+ };
1218
+ var oneBtcIterationParticipantDtoSchemaResponseTransformer = (data) => {
1219
+ if (data.claimedAt) {
1220
+ data.claimedAt = new Date(data.claimedAt);
1221
+ }
1222
+ data.firstEntryAt = new Date(data.firstEntryAt);
1223
+ data.tickets = u64DtoSchemaResponseTransformer(data.tickets);
1224
+ return data;
1225
+ };
1226
+ var getOneBtcIterationParticipantsResponseTransformer = async (data) => {
1227
+ data.data = data.data.map((item) => oneBtcIterationParticipantDtoSchemaResponseTransformer(item));
1228
+ return data;
1229
+ };
1136
1230
  var roundHistoryDtoSchemaResponseTransformer = (data) => {
1137
1231
  if (data.settledAt) {
1138
1232
  data.settledAt = new Date(data.settledAt);
@@ -1373,6 +1467,33 @@ var zEpochHistoryApiError400Error = z.union([
1373
1467
  var zEpochHistoryApiError500Error = z.object({
1374
1468
  code: z.enum(["internal"])
1375
1469
  });
1470
+ var zEpochIterationApiError404Error = z.object({
1471
+ code: z.enum(["not_found"])
1472
+ });
1473
+ var zEpochIterationApiError500Error = z.object({
1474
+ code: z.enum(["internal"])
1475
+ });
1476
+ var zEpochIterationParticipantsApiError400InvalidRange = z.object({
1477
+ code: z.enum(["invalid_range"])
1478
+ });
1479
+ var zEpochIterationParticipantsApiError400Error = z.union([
1480
+ z.object({
1481
+ code: z.literal("invalid_range")
1482
+ }).and(zEpochIterationParticipantsApiError400InvalidRange),
1483
+ z.object({
1484
+ code: z.union([
1485
+ z.literal("invalid_body"),
1486
+ z.literal("invalid_path"),
1487
+ z.literal("invalid_query")
1488
+ ])
1489
+ }).and(zBadRequestErrorCodeErrorBody)
1490
+ ]);
1491
+ var zEpochIterationParticipantsApiError404Error = z.object({
1492
+ code: z.enum(["not_found"])
1493
+ });
1494
+ var zEpochIterationParticipantsApiError500Error = z.object({
1495
+ code: z.enum(["internal"])
1496
+ });
1376
1497
  var zEpochStateDto = z.enum([
1377
1498
  "open",
1378
1499
  "settling",
@@ -1432,6 +1553,33 @@ var zOneBtcHistoryApiError400Error = z.union([
1432
1553
  var zOneBtcHistoryApiError500Error = z.object({
1433
1554
  code: z.enum(["internal"])
1434
1555
  });
1556
+ var zOneBtcIterationApiError404Error = z.object({
1557
+ code: z.enum(["not_found"])
1558
+ });
1559
+ var zOneBtcIterationApiError500Error = z.object({
1560
+ code: z.enum(["internal"])
1561
+ });
1562
+ var zOneBtcIterationParticipantsApiError400InvalidRange = z.object({
1563
+ code: z.enum(["invalid_range"])
1564
+ });
1565
+ var zOneBtcIterationParticipantsApiError400Error = z.union([
1566
+ z.object({
1567
+ code: z.literal("invalid_range")
1568
+ }).and(zOneBtcIterationParticipantsApiError400InvalidRange),
1569
+ z.object({
1570
+ code: z.union([
1571
+ z.literal("invalid_body"),
1572
+ z.literal("invalid_path"),
1573
+ z.literal("invalid_query")
1574
+ ])
1575
+ }).and(zBadRequestErrorCodeErrorBody)
1576
+ ]);
1577
+ var zOneBtcIterationParticipantsApiError404Error = z.object({
1578
+ code: z.enum(["not_found"])
1579
+ });
1580
+ var zOneBtcIterationParticipantsApiError500Error = z.object({
1581
+ code: z.enum(["internal"])
1582
+ });
1435
1583
  var zOneBtcStateDto = z.enum([
1436
1584
  "open",
1437
1585
  "settled",
@@ -1499,6 +1647,10 @@ var zEpochIterationHistoryDto = z.object({
1499
1647
  ])),
1500
1648
  id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1501
1649
  poolBtcAmount: zU64Dto,
1650
+ poolCombinedUsdAmount: z.optional(z.union([
1651
+ z.number(),
1652
+ z.null()
1653
+ ])),
1502
1654
  poolUsdAmount: zU64Dto,
1503
1655
  startedAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1504
1656
  totalParticipants: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
@@ -1508,6 +1660,80 @@ var zEpochIterationHistoryDto = z.object({
1508
1660
  z.null()
1509
1661
  ]))
1510
1662
  });
1663
+ var zEpochIterationParticipantDto = z.object({
1664
+ authority: zPubkeyDto,
1665
+ claimedAt: z.optional(z.union([
1666
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1667
+ z.null()
1668
+ ])),
1669
+ createdAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1670
+ id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1671
+ isWon: z.optional(z.union([
1672
+ z.boolean(),
1673
+ z.null()
1674
+ ])),
1675
+ rank: z.optional(z.union([
1676
+ z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1677
+ z.null()
1678
+ ])),
1679
+ tickets: zU64Dto,
1680
+ wonBtcAmount: z.optional(z.union([
1681
+ z.null(),
1682
+ zU64Dto
1683
+ ])),
1684
+ wonCombinedUsdAmount: z.optional(z.union([
1685
+ z.number(),
1686
+ z.null()
1687
+ ])),
1688
+ wonUsdAmount: z.optional(z.union([
1689
+ z.null(),
1690
+ zU64Dto
1691
+ ]))
1692
+ });
1693
+ var zEpochIterationWinnerDto = z.object({
1694
+ authority: zPubkeyDto,
1695
+ claimedAt: z.optional(z.union([
1696
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1697
+ z.null()
1698
+ ])),
1699
+ rank: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1700
+ tickets: zU64Dto,
1701
+ wonBtcAmount: zU64Dto,
1702
+ wonCombinedUsdAmount: z.optional(z.union([
1703
+ z.number(),
1704
+ z.null()
1705
+ ])),
1706
+ wonUsdAmount: zU64Dto
1707
+ });
1708
+ var zEpochIterationDetailsDto = z.object({
1709
+ address: zPubkeyDto,
1710
+ btcPrice: z.optional(z.union([
1711
+ z.number(),
1712
+ z.null()
1713
+ ])),
1714
+ endedAt: z.optional(z.union([
1715
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1716
+ z.null()
1717
+ ])),
1718
+ id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1719
+ poolBtcAmount: zU64Dto,
1720
+ poolCombinedUsdAmount: z.optional(z.union([
1721
+ z.number(),
1722
+ z.null()
1723
+ ])),
1724
+ poolUsdAmount: zU64Dto,
1725
+ startedAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1726
+ totalParticipants: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1727
+ totalTickets: zU64Dto,
1728
+ triggeredAt: z.optional(z.union([
1729
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1730
+ z.null()
1731
+ ])),
1732
+ winners: z.optional(z.union([
1733
+ z.array(zEpochIterationWinnerDto),
1734
+ z.null()
1735
+ ]))
1736
+ });
1511
1737
  var zEpochVaultEntryDto = z.object({
1512
1738
  address: zPubkeyDto,
1513
1739
  iterationId: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
@@ -1548,6 +1774,10 @@ var zEpochVaultIterationDto = z.object({
1548
1774
  ]))
1549
1775
  });
1550
1776
  var zEpochVaultDto = z.object({
1777
+ activePendingUsdAmount: zU64Dto,
1778
+ activePoolBtcAmount: zU64Dto,
1779
+ activePoolCombinedUsdAmount: z.number(),
1780
+ activePoolUsdAmount: zU64Dto,
1551
1781
  address: zPubkeyDto,
1552
1782
  currentIteration: z.optional(z.union([
1553
1783
  z.null(),
@@ -1624,6 +1854,10 @@ var zMinerDeploymentDto = z.object({
1624
1854
  z.null(),
1625
1855
  zU64Dto
1626
1856
  ])),
1857
+ btcEarnedUsd: z.optional(z.union([
1858
+ z.number(),
1859
+ z.null()
1860
+ ])),
1627
1861
  deployedAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
1628
1862
  deployedUsdAmount: zU64Dto,
1629
1863
  deployment: zPubkeyDto,
@@ -1698,6 +1932,10 @@ var zMinerEpochEntryDto = z.object({
1698
1932
  z.null(),
1699
1933
  zU64Dto
1700
1934
  ])),
1935
+ wonCombinedUsdAmount: z.optional(z.union([
1936
+ z.number(),
1937
+ z.null()
1938
+ ])),
1701
1939
  wonUsdAmount: z.optional(z.union([
1702
1940
  z.null(),
1703
1941
  zU64Dto
@@ -1750,6 +1988,62 @@ var zOneBtcIterationHistoryDto = z.object({
1750
1988
  winner: z.optional(z.union([
1751
1989
  z.null(),
1752
1990
  zPubkeyDto
1991
+ ])),
1992
+ winnerTickets: z.optional(z.union([
1993
+ z.null(),
1994
+ zU64Dto
1995
+ ]))
1996
+ });
1997
+ var zOneBtcIterationParticipantDto = z.object({
1998
+ authority: zPubkeyDto,
1999
+ claimedAt: z.optional(z.union([
2000
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
2001
+ z.null()
2002
+ ])),
2003
+ firstEntryAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
2004
+ id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2005
+ isWon: z.optional(z.union([
2006
+ z.boolean(),
2007
+ z.null()
2008
+ ])),
2009
+ tickets: zU64Dto
2010
+ });
2011
+ var zOneBtcIterationWinnerDto = z.object({
2012
+ authority: zPubkeyDto,
2013
+ claimedAt: z.optional(z.union([
2014
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
2015
+ z.null()
2016
+ ])),
2017
+ tickets: z.optional(z.union([
2018
+ z.null(),
2019
+ zU64Dto
2020
+ ]))
2021
+ });
2022
+ var zOneBtcIterationDetailsDto = z.object({
2023
+ address: zPubkeyDto,
2024
+ btcPrice: z.optional(z.union([
2025
+ z.number(),
2026
+ z.null()
2027
+ ])),
2028
+ endedAt: z.optional(z.union([
2029
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
2030
+ z.null()
2031
+ ])),
2032
+ id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2033
+ settledAt: z.optional(z.union([
2034
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
2035
+ z.null()
2036
+ ])),
2037
+ startedAt: z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
2038
+ totalParticipants: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2039
+ totalTickets: zU64Dto,
2040
+ usdAmount: z.optional(z.union([
2041
+ z.number(),
2042
+ z.null()
2043
+ ])),
2044
+ winner: z.optional(z.union([
2045
+ z.null(),
2046
+ zOneBtcIterationWinnerDto
1753
2047
  ]))
1754
2048
  });
1755
2049
  var zOneBtcVaultEntryDto = z.object({
@@ -1839,6 +2133,10 @@ var zRoundHistoryDto = z.object({
1839
2133
  z.null(),
1840
2134
  zU64Dto
1841
2135
  ])),
2136
+ strikeBonusCombinedUsd: z.optional(z.union([
2137
+ z.number(),
2138
+ z.null()
2139
+ ])),
1842
2140
  strikeBonusUsd: z.optional(z.union([
1843
2141
  z.null(),
1844
2142
  zU64Dto
@@ -1872,6 +2170,10 @@ var zRoundHistoryDto = z.object({
1872
2170
  z.null(),
1873
2171
  zU64Dto
1874
2172
  ])),
2173
+ totalPotCombinedUsd: z.optional(z.union([
2174
+ z.number(),
2175
+ z.null()
2176
+ ])),
1875
2177
  totalPotUsd: z.optional(z.union([
1876
2178
  z.null(),
1877
2179
  zU64Dto
@@ -1916,6 +2218,9 @@ var zStrikeJackpotDto = z.object({
1916
2218
  ])),
1917
2219
  lastTriggerRoundId: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1918
2220
  pendingUsdAmount: zU64Dto,
2221
+ poolBtcAmount: zU64Dto,
2222
+ poolCombinedUsdAmount: z.number(),
2223
+ poolUsdAmount: zU64Dto,
1919
2224
  usdAmount: zU64Dto
1920
2225
  });
1921
2226
  var zTileStakeDto = z.object({
@@ -1925,6 +2230,7 @@ var zTileStakeDto = z.object({
1925
2230
  var zRoundDto = z.object({
1926
2231
  address: zPubkeyDto,
1927
2232
  deployedBtcAmount: zU64Dto,
2233
+ deployedCombinedUsdAmount: z.number(),
1928
2234
  deployedPendingUsdAmount: zU64Dto,
1929
2235
  deployedUsdAmount: zU64Dto,
1930
2236
  deployedUsdOnWinningTileAmount: zU64Dto,
@@ -2169,6 +2475,30 @@ var zGetEpochHistoryData = z.object({
2169
2475
  var zGetEpochHistoryResponse = z.object({
2170
2476
  data: z.array(zEpochIterationHistoryDto)
2171
2477
  });
2478
+ var zGetEpochIterationData = z.object({
2479
+ body: z.optional(z.never()),
2480
+ path: z.object({
2481
+ id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
2482
+ }),
2483
+ query: z.optional(z.never())
2484
+ });
2485
+ var zGetEpochIterationResponse = z.object({
2486
+ data: zEpochIterationDetailsDto
2487
+ });
2488
+ var zGetEpochIterationParticipantsData = z.object({
2489
+ body: z.optional(z.never()),
2490
+ path: z.object({
2491
+ id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
2492
+ }),
2493
+ query: z.optional(z.object({
2494
+ before: z.optional(z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
2495
+ after: z.optional(z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
2496
+ limit: z.optional(z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }))
2497
+ }))
2498
+ });
2499
+ var zGetEpochIterationParticipantsResponse = z.object({
2500
+ data: z.array(zEpochIterationParticipantDto)
2501
+ });
2172
2502
  var zGetEpochWinnersData = z.object({
2173
2503
  body: z.optional(z.never()),
2174
2504
  path: z.optional(z.never()),
@@ -2217,6 +2547,30 @@ var zGetOneBtcHistoryData = z.object({
2217
2547
  var zGetOneBtcHistoryResponse = z.object({
2218
2548
  data: z.array(zOneBtcIterationHistoryDto)
2219
2549
  });
2550
+ var zGetOneBtcIterationData = z.object({
2551
+ body: z.optional(z.never()),
2552
+ path: z.object({
2553
+ id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
2554
+ }),
2555
+ query: z.optional(z.never())
2556
+ });
2557
+ var zGetOneBtcIterationResponse = z.object({
2558
+ data: zOneBtcIterationDetailsDto
2559
+ });
2560
+ var zGetOneBtcIterationParticipantsData = z.object({
2561
+ body: z.optional(z.never()),
2562
+ path: z.object({
2563
+ id: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
2564
+ }),
2565
+ query: z.optional(z.object({
2566
+ before: z.optional(z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
2567
+ after: z.optional(z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
2568
+ limit: z.optional(z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }))
2569
+ }))
2570
+ });
2571
+ var zGetOneBtcIterationParticipantsResponse = z.object({
2572
+ data: z.array(zOneBtcIterationParticipantDto)
2573
+ });
2220
2574
  var zGetRoundsData = z.object({
2221
2575
  body: z.optional(z.never()),
2222
2576
  path: z.optional(z.never()),
@@ -2390,6 +2744,39 @@ var SatrushBackendSdk = class _SatrushBackendSdk extends HeyApiClient {
2390
2744
  ...params
2391
2745
  });
2392
2746
  }
2747
+ /**
2748
+ * Request Epoch Vault iteration details
2749
+ */
2750
+ getEpochIteration(parameters, options) {
2751
+ const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
2752
+ return (options?.client ?? this.client).get({
2753
+ requestValidator: async (data) => await zGetEpochIterationData.parseAsync(data),
2754
+ responseTransformer: getEpochIterationResponseTransformer,
2755
+ responseValidator: async (data) => await zGetEpochIterationResponse.parseAsync(data),
2756
+ url: "/v1/epoch/iterations/{id}",
2757
+ ...options,
2758
+ ...params
2759
+ });
2760
+ }
2761
+ /**
2762
+ * Request Epoch Vault iteration participants
2763
+ */
2764
+ getEpochIterationParticipants(parameters, options) {
2765
+ const params = buildClientParams([parameters], [{ args: [
2766
+ { in: "path", key: "id" },
2767
+ { in: "query", key: "before" },
2768
+ { in: "query", key: "after" },
2769
+ { in: "query", key: "limit" }
2770
+ ] }]);
2771
+ return (options?.client ?? this.client).get({
2772
+ requestValidator: async (data) => await zGetEpochIterationParticipantsData.parseAsync(data),
2773
+ responseTransformer: getEpochIterationParticipantsResponseTransformer,
2774
+ responseValidator: async (data) => await zGetEpochIterationParticipantsResponse.parseAsync(data),
2775
+ url: "/v1/epoch/iterations/{id}/participants",
2776
+ ...options,
2777
+ ...params
2778
+ });
2779
+ }
2393
2780
  /**
2394
2781
  * Request Epoch Vault winners
2395
2782
  */
@@ -2462,6 +2849,39 @@ var SatrushBackendSdk = class _SatrushBackendSdk extends HeyApiClient {
2462
2849
  ...params
2463
2850
  });
2464
2851
  }
2852
+ /**
2853
+ * Request 1 BTC Vault iteration details
2854
+ */
2855
+ getOneBtcIteration(parameters, options) {
2856
+ const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
2857
+ return (options?.client ?? this.client).get({
2858
+ requestValidator: async (data) => await zGetOneBtcIterationData.parseAsync(data),
2859
+ responseTransformer: getOneBtcIterationResponseTransformer,
2860
+ responseValidator: async (data) => await zGetOneBtcIterationResponse.parseAsync(data),
2861
+ url: "/v1/one-btc/iterations/{id}",
2862
+ ...options,
2863
+ ...params
2864
+ });
2865
+ }
2866
+ /**
2867
+ * Request 1 BTC Vault iteration participants
2868
+ */
2869
+ getOneBtcIterationParticipants(parameters, options) {
2870
+ const params = buildClientParams([parameters], [{ args: [
2871
+ { in: "path", key: "id" },
2872
+ { in: "query", key: "before" },
2873
+ { in: "query", key: "after" },
2874
+ { in: "query", key: "limit" }
2875
+ ] }]);
2876
+ return (options?.client ?? this.client).get({
2877
+ requestValidator: async (data) => await zGetOneBtcIterationParticipantsData.parseAsync(data),
2878
+ responseTransformer: getOneBtcIterationParticipantsResponseTransformer,
2879
+ responseValidator: async (data) => await zGetOneBtcIterationParticipantsResponse.parseAsync(data),
2880
+ url: "/v1/one-btc/iterations/{id}/participants",
2881
+ ...options,
2882
+ ...params
2883
+ });
2884
+ }
2465
2885
  /**
2466
2886
  * Request rounds history
2467
2887
  */
@@ -2709,7 +3129,16 @@ export {
2709
3129
  zEpochHistoryApiError400Error,
2710
3130
  zEpochHistoryApiError400InvalidRange,
2711
3131
  zEpochHistoryApiError500Error,
3132
+ zEpochIterationApiError404Error,
3133
+ zEpochIterationApiError500Error,
3134
+ zEpochIterationDetailsDto,
2712
3135
  zEpochIterationHistoryDto,
3136
+ zEpochIterationParticipantDto,
3137
+ zEpochIterationParticipantsApiError400Error,
3138
+ zEpochIterationParticipantsApiError400InvalidRange,
3139
+ zEpochIterationParticipantsApiError404Error,
3140
+ zEpochIterationParticipantsApiError500Error,
3141
+ zEpochIterationWinnerDto,
2713
3142
  zEpochStateDto,
2714
3143
  zEpochVaultDto,
2715
3144
  zEpochVaultEntryDto,
@@ -2727,12 +3156,20 @@ export {
2727
3156
  zGetConfigResponse,
2728
3157
  zGetEpochHistoryData,
2729
3158
  zGetEpochHistoryResponse,
3159
+ zGetEpochIterationData,
3160
+ zGetEpochIterationParticipantsData,
3161
+ zGetEpochIterationParticipantsResponse,
3162
+ zGetEpochIterationResponse,
2730
3163
  zGetEpochWinnersData,
2731
3164
  zGetEpochWinnersResponse,
2732
3165
  zGetHashrateEarnedLeaderboardData,
2733
3166
  zGetHashrateEarnedLeaderboardResponse,
2734
3167
  zGetOneBtcHistoryData,
2735
3168
  zGetOneBtcHistoryResponse,
3169
+ zGetOneBtcIterationData,
3170
+ zGetOneBtcIterationParticipantsData,
3171
+ zGetOneBtcIterationParticipantsResponse,
3172
+ zGetOneBtcIterationResponse,
2736
3173
  zGetRoundsData,
2737
3174
  zGetRoundsPlayedLeaderboardData,
2738
3175
  zGetRoundsPlayedLeaderboardResponse,
@@ -2766,7 +3203,16 @@ export {
2766
3203
  zOneBtcHistoryApiError400Error,
2767
3204
  zOneBtcHistoryApiError400InvalidRange,
2768
3205
  zOneBtcHistoryApiError500Error,
3206
+ zOneBtcIterationApiError404Error,
3207
+ zOneBtcIterationApiError500Error,
3208
+ zOneBtcIterationDetailsDto,
2769
3209
  zOneBtcIterationHistoryDto,
3210
+ zOneBtcIterationParticipantDto,
3211
+ zOneBtcIterationParticipantsApiError400Error,
3212
+ zOneBtcIterationParticipantsApiError400InvalidRange,
3213
+ zOneBtcIterationParticipantsApiError404Error,
3214
+ zOneBtcIterationParticipantsApiError500Error,
3215
+ zOneBtcIterationWinnerDto,
2770
3216
  zOneBtcStateDto,
2771
3217
  zOneBtcVaultDto,
2772
3218
  zOneBtcVaultEntryDto,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@satrush/api",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",