@satrush/api 0.1.3 → 0.1.4

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
@@ -63,6 +63,7 @@ __export(index_exports, {
63
63
  zOneBtcVaultDto: () => zOneBtcVaultDto,
64
64
  zOneBtcVaultEntryDto: () => zOneBtcVaultEntryDto,
65
65
  zOneBtcVaultIterationDto: () => zOneBtcVaultIterationDto,
66
+ zPricesDto: () => zPricesDto,
66
67
  zProfileDto: () => zProfileDto,
67
68
  zPubkeyDto: () => zPubkeyDto,
68
69
  zPublicDeploymentDto: () => zPublicDeploymentDto,
@@ -1212,6 +1213,10 @@ var zOneBtcStateDto = z.enum([
1212
1213
  "settled",
1213
1214
  "complete"
1214
1215
  ]);
1216
+ var zPricesDto = z.object({
1217
+ btc: z.number(),
1218
+ sat: z.number()
1219
+ });
1215
1220
  var zPubkeyDto = z.string().regex(/^[1-9A-HJ-NP-Za-km-z]+$/);
1216
1221
  var zRoundStateDto = z.enum([
1217
1222
  "active",
@@ -1383,6 +1388,7 @@ var zBoardDto = z.object({
1383
1388
  z.null(),
1384
1389
  zRoundDto
1385
1390
  ])),
1391
+ prices: zPricesDto,
1386
1392
  roundDuration: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1387
1393
  roundId: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1388
1394
  satsVault: zSatsVaultDto,
@@ -1645,6 +1651,7 @@ async function unwrap(promise) {
1645
1651
  zOneBtcVaultDto,
1646
1652
  zOneBtcVaultEntryDto,
1647
1653
  zOneBtcVaultIterationDto,
1654
+ zPricesDto,
1648
1655
  zProfileDto,
1649
1656
  zPubkeyDto,
1650
1657
  zPublicDeploymentDto,
package/dist/index.d.cts CHANGED
@@ -340,6 +340,10 @@ type BoardDto = {
340
340
  */
341
341
  oneBtcVault: OneBtcVaultDto;
342
342
  previousRound?: null | RoundDto;
343
+ /**
344
+ * Live token prices.
345
+ */
346
+ prices: PricesDto;
343
347
  /**
344
348
  * Round duration in slots.
345
349
  */
@@ -576,6 +580,19 @@ type OneBtcVaultIterationDto = {
576
580
  totalTickets: U64Dto;
577
581
  winningTicket?: null | U64Dto;
578
582
  };
583
+ /**
584
+ * Live token prices observed by the service.
585
+ */
586
+ type PricesDto = {
587
+ /**
588
+ * cbBTC/USD price from Jupiter.
589
+ */
590
+ btc: number;
591
+ /**
592
+ * USD price of a single sats-vault share.
593
+ */
594
+ sat: number;
595
+ };
579
596
  /**
580
597
  * A user's profile: their miner account, currently-open deployments and vault
581
598
  * entries.
@@ -953,6 +970,13 @@ declare const zOneBtcStateDto: z.ZodEnum<{
953
970
  settled: "settled";
954
971
  complete: "complete";
955
972
  }>;
973
+ /**
974
+ * Live token prices observed by the service.
975
+ */
976
+ declare const zPricesDto: z.ZodObject<{
977
+ btc: z.ZodNumber;
978
+ sat: z.ZodNumber;
979
+ }, z.core.$strip>;
956
980
  /**
957
981
  * Pubkey represented as base58 string in JSON and OpenAPI.
958
982
  *
@@ -1329,6 +1353,10 @@ declare const zBoardDto: z.ZodObject<{
1329
1353
  winnersCount: z.ZodInt;
1330
1354
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
1331
1355
  }, z.core.$strip>]>>;
1356
+ prices: z.ZodObject<{
1357
+ btc: z.ZodNumber;
1358
+ sat: z.ZodNumber;
1359
+ }, z.core.$strip>;
1332
1360
  roundDuration: z.ZodInt;
1333
1361
  roundId: z.ZodInt;
1334
1362
  satsVault: z.ZodObject<{
@@ -1451,6 +1479,10 @@ declare const zSnapshotDto: z.ZodObject<{
1451
1479
  winnersCount: z.ZodInt;
1452
1480
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
1453
1481
  }, z.core.$strip>]>>;
1482
+ prices: z.ZodObject<{
1483
+ btc: z.ZodNumber;
1484
+ sat: z.ZodNumber;
1485
+ }, z.core.$strip>;
1454
1486
  roundDuration: z.ZodInt;
1455
1487
  roundId: z.ZodInt;
1456
1488
  satsVault: z.ZodObject<{
@@ -1605,6 +1637,10 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
1605
1637
  winnersCount: z.ZodInt;
1606
1638
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
1607
1639
  }, z.core.$strip>]>>;
1640
+ prices: z.ZodObject<{
1641
+ btc: z.ZodNumber;
1642
+ sat: z.ZodNumber;
1643
+ }, z.core.$strip>;
1608
1644
  roundDuration: z.ZodInt;
1609
1645
  roundId: z.ZodInt;
1610
1646
  satsVault: z.ZodObject<{
@@ -1765,6 +1801,10 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
1765
1801
  winnersCount: z.ZodInt;
1766
1802
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
1767
1803
  }, z.core.$strip>]>>;
1804
+ prices: z.ZodObject<{
1805
+ btc: z.ZodNumber;
1806
+ sat: z.ZodNumber;
1807
+ }, z.core.$strip>;
1768
1808
  roundDuration: z.ZodInt;
1769
1809
  roundId: z.ZodInt;
1770
1810
  satsVault: z.ZodObject<{
@@ -1970,6 +2010,10 @@ declare const zGetBoardResponse: z.ZodObject<{
1970
2010
  winnersCount: z.ZodInt;
1971
2011
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
1972
2012
  }, z.core.$strip>]>>;
2013
+ prices: z.ZodObject<{
2014
+ btc: z.ZodNumber;
2015
+ sat: z.ZodNumber;
2016
+ }, z.core.$strip>;
1973
2017
  roundDuration: z.ZodInt;
1974
2018
  roundId: z.ZodInt;
1975
2019
  satsVault: z.ZodObject<{
@@ -2125,6 +2169,10 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
2125
2169
  winnersCount: z.ZodInt;
2126
2170
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
2127
2171
  }, z.core.$strip>]>>;
2172
+ prices: z.ZodObject<{
2173
+ btc: z.ZodNumber;
2174
+ sat: z.ZodNumber;
2175
+ }, z.core.$strip>;
2128
2176
  roundDuration: z.ZodInt;
2129
2177
  roundId: z.ZodInt;
2130
2178
  satsVault: z.ZodObject<{
@@ -2238,4 +2286,4 @@ declare class SatrushBackendSdkError<TCause = unknown> extends Error {
2238
2286
  declare const satrushSdkErrorInterceptor: (error: unknown, response?: Response) => SatrushBackendSdkError<unknown>;
2239
2287
  declare const isSatrushSdkError: <TCause = unknown>(error: unknown) => error is SatrushBackendSdkError<TCause>;
2240
2288
 
2241
- export { type BadRequestErrorCodeErrorBody, type BoardDto, type ClientOptions, EpochStateDto, type EpochVaultDto, type EpochVaultEntryDto, type EpochVaultIterationDto, type EpochWinnerDto, type FieldError, type GetBoardData, type GetBoardError, type GetBoardErrors, type GetBoardResponse, type GetBoardResponseZodType, type GetBoardResponses, type GetConfigData, type GetConfigError, type GetConfigErrors, type GetConfigResponse, type GetConfigResponseZodType, type GetConfigResponses, type GetUserProfileData, type GetUserProfileError, type GetUserProfileErrors, type GetUserProfileResponse, type GetUserProfileResponseZodType, type GetUserProfileResponses, type I128Dto, type I64Dto, type InternalErrorCodeErrorBody, type MinerDto, NotificationEntity, OneBtcStateDto, type OneBtcVaultDto, type OneBtcVaultEntryDto, type OneBtcVaultIterationDto, type Options, type ProfileDto, type PubkeyDto, type PublicDeploymentDto, type RoundDto, RoundStateDto, SatrushBackendSdk, SatrushBackendSdkError, type SatrushConfigDto, type SatsVaultDto, type ServerSentEventsOptions, type ServerSentEventsResult, type SnapshotDto, type SseData, type SseError, type SseErrors, type SseResponse, type SseResponse2, type SseResponseSnapshot, type SseResponseZodType, type SseResponses, type StreamEvent, type StrikeJackpotDto, type TileStakeDto, type U128Dto, type U64Dto, type UserProfileApiError400Error, type UserProfileApiError400InvalidAddress, type ValidationErrorCodeErrorBody, type ValidationErrorCodeValidationDetailsErrorBody, createClient, createSseClient, isSatrushSdkError, satrushSdkErrorInterceptor, unwrap, zBadRequestErrorCodeErrorBody, zBoardDto, zEpochStateDto, zEpochVaultDto, zEpochVaultEntryDto, zEpochVaultIterationDto, zEpochWinnerDto, zFieldError, zGetBoardData, zGetBoardResponse, zGetConfigData, zGetConfigResponse, zGetUserProfileData, zGetUserProfileResponse, zI128Dto, zI64Dto, zInternalErrorCodeErrorBody, zMinerDto, zNotificationEntity, zOneBtcStateDto, zOneBtcVaultDto, zOneBtcVaultEntryDto, zOneBtcVaultIterationDto, zProfileDto, zPubkeyDto, zPublicDeploymentDto, zRoundDto, zRoundStateDto, zSatrushConfigDto, zSatsVaultDto, zSnapshotDto, zSseData, zSseResponse, zSseResponse2, zSseResponseSnapshot, zStrikeJackpotDto, zTileStakeDto, zU128Dto, zU64Dto, zUserProfileApiError400Error, zUserProfileApiError400InvalidAddress, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody };
2289
+ export { type BadRequestErrorCodeErrorBody, type BoardDto, type ClientOptions, EpochStateDto, type EpochVaultDto, type EpochVaultEntryDto, type EpochVaultIterationDto, type EpochWinnerDto, type FieldError, type GetBoardData, type GetBoardError, type GetBoardErrors, type GetBoardResponse, type GetBoardResponseZodType, type GetBoardResponses, type GetConfigData, type GetConfigError, type GetConfigErrors, type GetConfigResponse, type GetConfigResponseZodType, type GetConfigResponses, type GetUserProfileData, type GetUserProfileError, type GetUserProfileErrors, type GetUserProfileResponse, type GetUserProfileResponseZodType, type GetUserProfileResponses, type I128Dto, type I64Dto, type InternalErrorCodeErrorBody, type MinerDto, NotificationEntity, OneBtcStateDto, type OneBtcVaultDto, type OneBtcVaultEntryDto, type OneBtcVaultIterationDto, type Options, type PricesDto, type ProfileDto, type PubkeyDto, type PublicDeploymentDto, type RoundDto, RoundStateDto, SatrushBackendSdk, SatrushBackendSdkError, type SatrushConfigDto, type SatsVaultDto, type ServerSentEventsOptions, type ServerSentEventsResult, type SnapshotDto, type SseData, type SseError, type SseErrors, type SseResponse, type SseResponse2, type SseResponseSnapshot, type SseResponseZodType, type SseResponses, type StreamEvent, type StrikeJackpotDto, type TileStakeDto, type U128Dto, type U64Dto, type UserProfileApiError400Error, type UserProfileApiError400InvalidAddress, type ValidationErrorCodeErrorBody, type ValidationErrorCodeValidationDetailsErrorBody, createClient, createSseClient, isSatrushSdkError, satrushSdkErrorInterceptor, unwrap, zBadRequestErrorCodeErrorBody, zBoardDto, zEpochStateDto, zEpochVaultDto, zEpochVaultEntryDto, zEpochVaultIterationDto, zEpochWinnerDto, zFieldError, zGetBoardData, zGetBoardResponse, zGetConfigData, zGetConfigResponse, zGetUserProfileData, zGetUserProfileResponse, zI128Dto, zI64Dto, zInternalErrorCodeErrorBody, zMinerDto, zNotificationEntity, zOneBtcStateDto, zOneBtcVaultDto, zOneBtcVaultEntryDto, zOneBtcVaultIterationDto, zPricesDto, zProfileDto, zPubkeyDto, zPublicDeploymentDto, zRoundDto, zRoundStateDto, zSatrushConfigDto, zSatsVaultDto, zSnapshotDto, zSseData, zSseResponse, zSseResponse2, zSseResponseSnapshot, zStrikeJackpotDto, zTileStakeDto, zU128Dto, zU64Dto, zUserProfileApiError400Error, zUserProfileApiError400InvalidAddress, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody };
package/dist/index.d.ts CHANGED
@@ -340,6 +340,10 @@ type BoardDto = {
340
340
  */
341
341
  oneBtcVault: OneBtcVaultDto;
342
342
  previousRound?: null | RoundDto;
343
+ /**
344
+ * Live token prices.
345
+ */
346
+ prices: PricesDto;
343
347
  /**
344
348
  * Round duration in slots.
345
349
  */
@@ -576,6 +580,19 @@ type OneBtcVaultIterationDto = {
576
580
  totalTickets: U64Dto;
577
581
  winningTicket?: null | U64Dto;
578
582
  };
583
+ /**
584
+ * Live token prices observed by the service.
585
+ */
586
+ type PricesDto = {
587
+ /**
588
+ * cbBTC/USD price from Jupiter.
589
+ */
590
+ btc: number;
591
+ /**
592
+ * USD price of a single sats-vault share.
593
+ */
594
+ sat: number;
595
+ };
579
596
  /**
580
597
  * A user's profile: their miner account, currently-open deployments and vault
581
598
  * entries.
@@ -953,6 +970,13 @@ declare const zOneBtcStateDto: z.ZodEnum<{
953
970
  settled: "settled";
954
971
  complete: "complete";
955
972
  }>;
973
+ /**
974
+ * Live token prices observed by the service.
975
+ */
976
+ declare const zPricesDto: z.ZodObject<{
977
+ btc: z.ZodNumber;
978
+ sat: z.ZodNumber;
979
+ }, z.core.$strip>;
956
980
  /**
957
981
  * Pubkey represented as base58 string in JSON and OpenAPI.
958
982
  *
@@ -1329,6 +1353,10 @@ declare const zBoardDto: z.ZodObject<{
1329
1353
  winnersCount: z.ZodInt;
1330
1354
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
1331
1355
  }, z.core.$strip>]>>;
1356
+ prices: z.ZodObject<{
1357
+ btc: z.ZodNumber;
1358
+ sat: z.ZodNumber;
1359
+ }, z.core.$strip>;
1332
1360
  roundDuration: z.ZodInt;
1333
1361
  roundId: z.ZodInt;
1334
1362
  satsVault: z.ZodObject<{
@@ -1451,6 +1479,10 @@ declare const zSnapshotDto: z.ZodObject<{
1451
1479
  winnersCount: z.ZodInt;
1452
1480
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
1453
1481
  }, z.core.$strip>]>>;
1482
+ prices: z.ZodObject<{
1483
+ btc: z.ZodNumber;
1484
+ sat: z.ZodNumber;
1485
+ }, z.core.$strip>;
1454
1486
  roundDuration: z.ZodInt;
1455
1487
  roundId: z.ZodInt;
1456
1488
  satsVault: z.ZodObject<{
@@ -1605,6 +1637,10 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
1605
1637
  winnersCount: z.ZodInt;
1606
1638
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
1607
1639
  }, z.core.$strip>]>>;
1640
+ prices: z.ZodObject<{
1641
+ btc: z.ZodNumber;
1642
+ sat: z.ZodNumber;
1643
+ }, z.core.$strip>;
1608
1644
  roundDuration: z.ZodInt;
1609
1645
  roundId: z.ZodInt;
1610
1646
  satsVault: z.ZodObject<{
@@ -1765,6 +1801,10 @@ declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
1765
1801
  winnersCount: z.ZodInt;
1766
1802
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
1767
1803
  }, z.core.$strip>]>>;
1804
+ prices: z.ZodObject<{
1805
+ btc: z.ZodNumber;
1806
+ sat: z.ZodNumber;
1807
+ }, z.core.$strip>;
1768
1808
  roundDuration: z.ZodInt;
1769
1809
  roundId: z.ZodInt;
1770
1810
  satsVault: z.ZodObject<{
@@ -1970,6 +2010,10 @@ declare const zGetBoardResponse: z.ZodObject<{
1970
2010
  winnersCount: z.ZodInt;
1971
2011
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
1972
2012
  }, z.core.$strip>]>>;
2013
+ prices: z.ZodObject<{
2014
+ btc: z.ZodNumber;
2015
+ sat: z.ZodNumber;
2016
+ }, z.core.$strip>;
1973
2017
  roundDuration: z.ZodInt;
1974
2018
  roundId: z.ZodInt;
1975
2019
  satsVault: z.ZodObject<{
@@ -2125,6 +2169,10 @@ declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
2125
2169
  winnersCount: z.ZodInt;
2126
2170
  winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
2127
2171
  }, z.core.$strip>]>>;
2172
+ prices: z.ZodObject<{
2173
+ btc: z.ZodNumber;
2174
+ sat: z.ZodNumber;
2175
+ }, z.core.$strip>;
2128
2176
  roundDuration: z.ZodInt;
2129
2177
  roundId: z.ZodInt;
2130
2178
  satsVault: z.ZodObject<{
@@ -2238,4 +2286,4 @@ declare class SatrushBackendSdkError<TCause = unknown> extends Error {
2238
2286
  declare const satrushSdkErrorInterceptor: (error: unknown, response?: Response) => SatrushBackendSdkError<unknown>;
2239
2287
  declare const isSatrushSdkError: <TCause = unknown>(error: unknown) => error is SatrushBackendSdkError<TCause>;
2240
2288
 
2241
- export { type BadRequestErrorCodeErrorBody, type BoardDto, type ClientOptions, EpochStateDto, type EpochVaultDto, type EpochVaultEntryDto, type EpochVaultIterationDto, type EpochWinnerDto, type FieldError, type GetBoardData, type GetBoardError, type GetBoardErrors, type GetBoardResponse, type GetBoardResponseZodType, type GetBoardResponses, type GetConfigData, type GetConfigError, type GetConfigErrors, type GetConfigResponse, type GetConfigResponseZodType, type GetConfigResponses, type GetUserProfileData, type GetUserProfileError, type GetUserProfileErrors, type GetUserProfileResponse, type GetUserProfileResponseZodType, type GetUserProfileResponses, type I128Dto, type I64Dto, type InternalErrorCodeErrorBody, type MinerDto, NotificationEntity, OneBtcStateDto, type OneBtcVaultDto, type OneBtcVaultEntryDto, type OneBtcVaultIterationDto, type Options, type ProfileDto, type PubkeyDto, type PublicDeploymentDto, type RoundDto, RoundStateDto, SatrushBackendSdk, SatrushBackendSdkError, type SatrushConfigDto, type SatsVaultDto, type ServerSentEventsOptions, type ServerSentEventsResult, type SnapshotDto, type SseData, type SseError, type SseErrors, type SseResponse, type SseResponse2, type SseResponseSnapshot, type SseResponseZodType, type SseResponses, type StreamEvent, type StrikeJackpotDto, type TileStakeDto, type U128Dto, type U64Dto, type UserProfileApiError400Error, type UserProfileApiError400InvalidAddress, type ValidationErrorCodeErrorBody, type ValidationErrorCodeValidationDetailsErrorBody, createClient, createSseClient, isSatrushSdkError, satrushSdkErrorInterceptor, unwrap, zBadRequestErrorCodeErrorBody, zBoardDto, zEpochStateDto, zEpochVaultDto, zEpochVaultEntryDto, zEpochVaultIterationDto, zEpochWinnerDto, zFieldError, zGetBoardData, zGetBoardResponse, zGetConfigData, zGetConfigResponse, zGetUserProfileData, zGetUserProfileResponse, zI128Dto, zI64Dto, zInternalErrorCodeErrorBody, zMinerDto, zNotificationEntity, zOneBtcStateDto, zOneBtcVaultDto, zOneBtcVaultEntryDto, zOneBtcVaultIterationDto, zProfileDto, zPubkeyDto, zPublicDeploymentDto, zRoundDto, zRoundStateDto, zSatrushConfigDto, zSatsVaultDto, zSnapshotDto, zSseData, zSseResponse, zSseResponse2, zSseResponseSnapshot, zStrikeJackpotDto, zTileStakeDto, zU128Dto, zU64Dto, zUserProfileApiError400Error, zUserProfileApiError400InvalidAddress, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody };
2289
+ export { type BadRequestErrorCodeErrorBody, type BoardDto, type ClientOptions, EpochStateDto, type EpochVaultDto, type EpochVaultEntryDto, type EpochVaultIterationDto, type EpochWinnerDto, type FieldError, type GetBoardData, type GetBoardError, type GetBoardErrors, type GetBoardResponse, type GetBoardResponseZodType, type GetBoardResponses, type GetConfigData, type GetConfigError, type GetConfigErrors, type GetConfigResponse, type GetConfigResponseZodType, type GetConfigResponses, type GetUserProfileData, type GetUserProfileError, type GetUserProfileErrors, type GetUserProfileResponse, type GetUserProfileResponseZodType, type GetUserProfileResponses, type I128Dto, type I64Dto, type InternalErrorCodeErrorBody, type MinerDto, NotificationEntity, OneBtcStateDto, type OneBtcVaultDto, type OneBtcVaultEntryDto, type OneBtcVaultIterationDto, type Options, type PricesDto, type ProfileDto, type PubkeyDto, type PublicDeploymentDto, type RoundDto, RoundStateDto, SatrushBackendSdk, SatrushBackendSdkError, type SatrushConfigDto, type SatsVaultDto, type ServerSentEventsOptions, type ServerSentEventsResult, type SnapshotDto, type SseData, type SseError, type SseErrors, type SseResponse, type SseResponse2, type SseResponseSnapshot, type SseResponseZodType, type SseResponses, type StreamEvent, type StrikeJackpotDto, type TileStakeDto, type U128Dto, type U64Dto, type UserProfileApiError400Error, type UserProfileApiError400InvalidAddress, type ValidationErrorCodeErrorBody, type ValidationErrorCodeValidationDetailsErrorBody, createClient, createSseClient, isSatrushSdkError, satrushSdkErrorInterceptor, unwrap, zBadRequestErrorCodeErrorBody, zBoardDto, zEpochStateDto, zEpochVaultDto, zEpochVaultEntryDto, zEpochVaultIterationDto, zEpochWinnerDto, zFieldError, zGetBoardData, zGetBoardResponse, zGetConfigData, zGetConfigResponse, zGetUserProfileData, zGetUserProfileResponse, zI128Dto, zI64Dto, zInternalErrorCodeErrorBody, zMinerDto, zNotificationEntity, zOneBtcStateDto, zOneBtcVaultDto, zOneBtcVaultEntryDto, zOneBtcVaultIterationDto, zPricesDto, zProfileDto, zPubkeyDto, zPublicDeploymentDto, zRoundDto, zRoundStateDto, zSatrushConfigDto, zSatsVaultDto, zSnapshotDto, zSseData, zSseResponse, zSseResponse2, zSseResponseSnapshot, zStrikeJackpotDto, zTileStakeDto, zU128Dto, zU64Dto, zUserProfileApiError400Error, zUserProfileApiError400InvalidAddress, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody };
package/dist/index.js CHANGED
@@ -1124,6 +1124,10 @@ var zOneBtcStateDto = z.enum([
1124
1124
  "settled",
1125
1125
  "complete"
1126
1126
  ]);
1127
+ var zPricesDto = z.object({
1128
+ btc: z.number(),
1129
+ sat: z.number()
1130
+ });
1127
1131
  var zPubkeyDto = z.string().regex(/^[1-9A-HJ-NP-Za-km-z]+$/);
1128
1132
  var zRoundStateDto = z.enum([
1129
1133
  "active",
@@ -1295,6 +1299,7 @@ var zBoardDto = z.object({
1295
1299
  z.null(),
1296
1300
  zRoundDto
1297
1301
  ])),
1302
+ prices: zPricesDto,
1298
1303
  roundDuration: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1299
1304
  roundId: z.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1300
1305
  satsVault: zSatsVaultDto,
@@ -1556,6 +1561,7 @@ export {
1556
1561
  zOneBtcVaultDto,
1557
1562
  zOneBtcVaultEntryDto,
1558
1563
  zOneBtcVaultIterationDto,
1564
+ zPricesDto,
1559
1565
  zProfileDto,
1560
1566
  zPubkeyDto,
1561
1567
  zPublicDeploymentDto,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@satrush/api",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",