@satrush/api 0.1.16 → 0.1.17

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.cjs CHANGED
@@ -1605,6 +1605,12 @@ var i64DtoSchemaResponseTransformer = (data) => {
1605
1605
  return data;
1606
1606
  };
1607
1607
  var minerDtoSchemaResponseTransformer = (data) => {
1608
+ data.affiliatePointsEarned = u64DtoSchemaResponseTransformer(data.affiliatePointsEarned);
1609
+ data.affiliatePointsSpent = u64DtoSchemaResponseTransformer(data.affiliatePointsSpent);
1610
+ if (data.grubstakeExpiresAt) {
1611
+ data.grubstakeExpiresAt = new Date(data.grubstakeExpiresAt);
1612
+ }
1613
+ data.grubstakeUsdAmount = u64DtoSchemaResponseTransformer(data.grubstakeUsdAmount);
1608
1614
  data.hashrateAmount = u64DtoSchemaResponseTransformer(data.hashrateAmount);
1609
1615
  data.totalBtcReceived = u64DtoSchemaResponseTransformer(data.totalBtcReceived);
1610
1616
  data.totalHashrateEarned = u64DtoSchemaResponseTransformer(data.totalHashrateEarned);
@@ -1812,6 +1818,7 @@ var zEpochIterationParticipantsApiError500Error = z.object({
1812
1818
  });
1813
1819
  var zEpochStateDto = z.enum([
1814
1820
  "open",
1821
+ "sealed",
1815
1822
  "settling",
1816
1823
  "settled",
1817
1824
  "complete"
@@ -1914,6 +1921,7 @@ var zOneBtcIterationParticipantsApiError500Error = z.object({
1914
1921
  });
1915
1922
  var zOneBtcStateDto = z.enum([
1916
1923
  "open",
1924
+ "sealed",
1917
1925
  "settled",
1918
1926
  "complete"
1919
1927
  ]);
@@ -2081,6 +2089,7 @@ var zEpochVaultEntryDto = z.object({
2081
2089
  var zEpochWinnerDto = z.object({
2082
2090
  authority: zPubkeyDto,
2083
2091
  claimed: z.boolean(),
2092
+ distributed: z.boolean(),
2084
2093
  tickets: zU64Dto
2085
2094
  });
2086
2095
  var zEpochVaultIterationDto = z.object({
@@ -2106,6 +2115,10 @@ var zEpochVaultIterationDto = z.object({
2106
2115
  z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2107
2116
  z.null()
2108
2117
  ])),
2118
+ winnersDistributed: z.optional(z.union([
2119
+ z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2120
+ z.null()
2121
+ ])),
2109
2122
  winnersSelected: z.optional(z.union([
2110
2123
  z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2111
2124
  z.null()
@@ -2217,6 +2230,10 @@ var zMinerDeploymentDto = z.object({
2217
2230
  deployment: zPubkeyDto,
2218
2231
  hashrateEarned: zU64Dto,
2219
2232
  isAutomation: z.boolean(),
2233
+ isGrubstakeFunded: z.optional(z.union([
2234
+ z.boolean(),
2235
+ z.null()
2236
+ ])),
2220
2237
  isReload: z.optional(z.union([
2221
2238
  z.boolean(),
2222
2239
  z.null()
@@ -2239,11 +2256,30 @@ var zMinerDeploymentDto = z.object({
2239
2256
  usdEarned: zU64Dto
2240
2257
  });
2241
2258
  var zMinerDto = z.object({
2259
+ affiliate: z.optional(z.union([
2260
+ z.null(),
2261
+ zPubkeyDto
2262
+ ])),
2263
+ affiliatePointsEarned: zU64Dto,
2264
+ affiliatePointsSpent: zU64Dto,
2265
+ affiliateRateBps: z.optional(z.union([
2266
+ z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2267
+ z.null()
2268
+ ])),
2242
2269
  authority: zPubkeyDto,
2243
2270
  currentStreakCount: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2271
+ grubstakeExpiresAt: z.optional(z.union([
2272
+ z.preprocess((value) => value instanceof Date ? value.toISOString() : value, z.iso.datetime()),
2273
+ z.null()
2274
+ ])),
2275
+ grubstakeUsdAmount: zU64Dto,
2244
2276
  hashrateAmount: zU64Dto,
2245
2277
  lastMinedRoundId: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2246
2278
  maxStreak: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2279
+ tag: z.optional(z.union([
2280
+ z.string(),
2281
+ z.null()
2282
+ ])),
2247
2283
  totalBtcReceived: zU64Dto,
2248
2284
  totalHashrateEarned: zU64Dto,
2249
2285
  totalRounds: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
@@ -2436,6 +2472,7 @@ var zOneBtcVaultDto = z.object({
2436
2472
  var zPublicAutomationDto = z.object({
2437
2473
  address: zPubkeyDto,
2438
2474
  executedDeployments: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2475
+ isGrubstakeFunded: z.boolean(),
2439
2476
  perRoundUsdAmount: zU64Dto,
2440
2477
  reload: z.boolean(),
2441
2478
  remainingDeployments: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
@@ -2478,6 +2515,10 @@ var zRoundDeploymentDto = z.object({
2478
2515
  deployment: zPubkeyDto,
2479
2516
  hashrateEarned: zU64Dto,
2480
2517
  isAutomation: z.boolean(),
2518
+ isGrubstakeFunded: z.optional(z.union([
2519
+ z.boolean(),
2520
+ z.null()
2521
+ ])),
2481
2522
  isWon: z.optional(z.union([
2482
2523
  z.boolean(),
2483
2524
  z.null()
@@ -3632,6 +3673,7 @@ var AutomationStrategyDto = {
3632
3673
  var ClaimTypeDto = { USD: "usd", SATS: "sats" };
3633
3674
  var EpochStateDto = {
3634
3675
  OPEN: "open",
3676
+ SEALED: "sealed",
3635
3677
  SETTLING: "settling",
3636
3678
  SETTLED: "settled",
3637
3679
  COMPLETE: "complete"
@@ -3648,6 +3690,7 @@ var LeaderboardSortDto = {
3648
3690
  var NotificationEntity = { STATE_SNAPSHOT: "state_snapshot" };
3649
3691
  var OneBtcStateDto = {
3650
3692
  OPEN: "open",
3693
+ SEALED: "sealed",
3651
3694
  SETTLED: "settled",
3652
3695
  COMPLETE: "complete"
3653
3696
  };