@satrush/api 0.1.1 → 0.1.2
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 +122 -42
- package/dist/index.d.cts +420 -1
- package/dist/index.d.ts +420 -1
- package/dist/index.js +115 -42
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -390,6 +390,10 @@ type MinerDto = {
|
|
|
390
390
|
*/
|
|
391
391
|
unclaimedUsdAmount: U64Dto;
|
|
392
392
|
};
|
|
393
|
+
declare const NotificationEntity: {
|
|
394
|
+
readonly STATE_SNAPSHOT: "state_snapshot";
|
|
395
|
+
};
|
|
396
|
+
type NotificationEntity = typeof NotificationEntity[keyof typeof NotificationEntity];
|
|
393
397
|
/**
|
|
394
398
|
* A user's profile: their miner account and currently-open deployments.
|
|
395
399
|
*/
|
|
@@ -496,6 +500,17 @@ type SatrushConfigDto = {
|
|
|
496
500
|
*/
|
|
497
501
|
usdMint: PubkeyDto;
|
|
498
502
|
};
|
|
503
|
+
type SnapshotDto = {
|
|
504
|
+
board: BoardDto;
|
|
505
|
+
entity: NotificationEntity;
|
|
506
|
+
profile?: null | ProfileDto;
|
|
507
|
+
};
|
|
508
|
+
type SseResponse = {
|
|
509
|
+
entity: 'state_snapshot';
|
|
510
|
+
} & SseResponseSnapshot;
|
|
511
|
+
type SseResponseSnapshot = SnapshotDto & {
|
|
512
|
+
entity: 'state_snapshot';
|
|
513
|
+
};
|
|
499
514
|
/**
|
|
500
515
|
* Strike jackpot balances tracked on the board.
|
|
501
516
|
*/
|
|
@@ -584,6 +599,34 @@ type GetConfigResponses = {
|
|
|
584
599
|
};
|
|
585
600
|
};
|
|
586
601
|
type GetConfigResponse = GetConfigResponses[keyof GetConfigResponses];
|
|
602
|
+
type SseData = {
|
|
603
|
+
body?: never;
|
|
604
|
+
path?: never;
|
|
605
|
+
query?: {
|
|
606
|
+
/**
|
|
607
|
+
* Wallet address (base58); when set, snapshots for this client also carry
|
|
608
|
+
* that wallet's profile.
|
|
609
|
+
*/
|
|
610
|
+
wallet?: string;
|
|
611
|
+
};
|
|
612
|
+
url: '/v1/streams/sse';
|
|
613
|
+
};
|
|
614
|
+
type SseErrors = {
|
|
615
|
+
400: BadRequestErrorCodeErrorBody;
|
|
616
|
+
422: ValidationErrorCodeErrorBody;
|
|
617
|
+
/**
|
|
618
|
+
* Internal error
|
|
619
|
+
*/
|
|
620
|
+
500: unknown;
|
|
621
|
+
};
|
|
622
|
+
type SseError = SseErrors[keyof SseErrors];
|
|
623
|
+
type SseResponses = {
|
|
624
|
+
/**
|
|
625
|
+
* Server-Sent Events stream
|
|
626
|
+
*/
|
|
627
|
+
200: SseResponse;
|
|
628
|
+
};
|
|
629
|
+
type SseResponse2 = SseResponses[keyof SseResponses];
|
|
587
630
|
type GetUserProfileData = {
|
|
588
631
|
body?: never;
|
|
589
632
|
path: {
|
|
@@ -647,6 +690,12 @@ declare class SatrushBackendSdk extends HeyApiClient {
|
|
|
647
690
|
* Request config
|
|
648
691
|
*/
|
|
649
692
|
getConfig<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<GetConfigResponses, GetConfigErrors, ThrowOnError, "fields">;
|
|
693
|
+
/**
|
|
694
|
+
* Subscribe for SSE stream
|
|
695
|
+
*/
|
|
696
|
+
sse<ThrowOnError extends boolean = false>(parameters?: {
|
|
697
|
+
wallet?: string;
|
|
698
|
+
}, options?: Options<never, ThrowOnError>): Promise<ServerSentEventsResult<SseResponses, SseErrors>>;
|
|
650
699
|
/**
|
|
651
700
|
* Request user profile
|
|
652
701
|
*/
|
|
@@ -679,6 +728,9 @@ declare const zInternalErrorCodeErrorBody: z.ZodObject<{
|
|
|
679
728
|
internal_error: "internal_error";
|
|
680
729
|
}>;
|
|
681
730
|
}, z.core.$strip>;
|
|
731
|
+
declare const zNotificationEntity: z.ZodEnum<{
|
|
732
|
+
state_snapshot: "state_snapshot";
|
|
733
|
+
}>;
|
|
682
734
|
/**
|
|
683
735
|
* Pubkey represented as base58 string in JSON and OpenAPI.
|
|
684
736
|
*
|
|
@@ -868,6 +920,271 @@ declare const zBoardDto: z.ZodObject<{
|
|
|
868
920
|
usdAmount: z.ZodCoercedBigInt<unknown>;
|
|
869
921
|
}, z.core.$strip>;
|
|
870
922
|
}, z.core.$strip>;
|
|
923
|
+
declare const zSnapshotDto: z.ZodObject<{
|
|
924
|
+
board: z.ZodObject<{
|
|
925
|
+
activeRound: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
926
|
+
address: z.ZodString;
|
|
927
|
+
deployedBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
928
|
+
deployedPendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
929
|
+
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
930
|
+
deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
|
|
931
|
+
id: z.ZodInt;
|
|
932
|
+
minersCount: z.ZodInt;
|
|
933
|
+
revealedMinersCount: z.ZodInt;
|
|
934
|
+
settledMinersCount: z.ZodInt;
|
|
935
|
+
state: z.ZodEnum<{
|
|
936
|
+
active: "active";
|
|
937
|
+
revealed: "revealed";
|
|
938
|
+
settled: "settled";
|
|
939
|
+
finished: "finished";
|
|
940
|
+
}>;
|
|
941
|
+
strikeBonusBtc: z.ZodCoercedBigInt<unknown>;
|
|
942
|
+
strikeBonusUsd: z.ZodCoercedBigInt<unknown>;
|
|
943
|
+
tileStakes: z.ZodArray<z.ZodObject<{
|
|
944
|
+
deployCount: z.ZodInt;
|
|
945
|
+
stake: z.ZodCoercedBigInt<unknown>;
|
|
946
|
+
}, z.core.$strip>>;
|
|
947
|
+
winnersCount: z.ZodInt;
|
|
948
|
+
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
949
|
+
}, z.core.$strip>]>>;
|
|
950
|
+
address: z.ZodString;
|
|
951
|
+
currentSlot: z.ZodCoercedBigInt<unknown>;
|
|
952
|
+
endSlot: z.ZodCoercedBigInt<unknown>;
|
|
953
|
+
previousRound: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
954
|
+
address: z.ZodString;
|
|
955
|
+
deployedBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
956
|
+
deployedPendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
957
|
+
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
958
|
+
deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
|
|
959
|
+
id: z.ZodInt;
|
|
960
|
+
minersCount: z.ZodInt;
|
|
961
|
+
revealedMinersCount: z.ZodInt;
|
|
962
|
+
settledMinersCount: z.ZodInt;
|
|
963
|
+
state: z.ZodEnum<{
|
|
964
|
+
active: "active";
|
|
965
|
+
revealed: "revealed";
|
|
966
|
+
settled: "settled";
|
|
967
|
+
finished: "finished";
|
|
968
|
+
}>;
|
|
969
|
+
strikeBonusBtc: z.ZodCoercedBigInt<unknown>;
|
|
970
|
+
strikeBonusUsd: z.ZodCoercedBigInt<unknown>;
|
|
971
|
+
tileStakes: z.ZodArray<z.ZodObject<{
|
|
972
|
+
deployCount: z.ZodInt;
|
|
973
|
+
stake: z.ZodCoercedBigInt<unknown>;
|
|
974
|
+
}, z.core.$strip>>;
|
|
975
|
+
winnersCount: z.ZodInt;
|
|
976
|
+
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
977
|
+
}, z.core.$strip>]>>;
|
|
978
|
+
roundDuration: z.ZodInt;
|
|
979
|
+
roundId: z.ZodInt;
|
|
980
|
+
startSlot: z.ZodCoercedBigInt<unknown>;
|
|
981
|
+
strike: z.ZodObject<{
|
|
982
|
+
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
983
|
+
lastTriggerRoundId: z.ZodInt;
|
|
984
|
+
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
985
|
+
usdAmount: z.ZodCoercedBigInt<unknown>;
|
|
986
|
+
}, z.core.$strip>;
|
|
987
|
+
}, z.core.$strip>;
|
|
988
|
+
entity: z.ZodEnum<{
|
|
989
|
+
state_snapshot: "state_snapshot";
|
|
990
|
+
}>;
|
|
991
|
+
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
992
|
+
deployments: z.ZodArray<z.ZodObject<{
|
|
993
|
+
address: z.ZodString;
|
|
994
|
+
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
995
|
+
roundId: z.ZodInt;
|
|
996
|
+
selectionMask: z.ZodInt;
|
|
997
|
+
}, z.core.$strip>>;
|
|
998
|
+
miner: z.ZodObject<{
|
|
999
|
+
authority: z.ZodString;
|
|
1000
|
+
currentStreakCount: z.ZodInt;
|
|
1001
|
+
hashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
1002
|
+
lastMinedRoundId: z.ZodInt;
|
|
1003
|
+
unclaimedBtcShares: z.ZodCoercedBigInt<unknown>;
|
|
1004
|
+
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1005
|
+
}, z.core.$strip>;
|
|
1006
|
+
}, z.core.$strip>]>>;
|
|
1007
|
+
}, z.core.$strip>;
|
|
1008
|
+
declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
|
|
1009
|
+
board: z.ZodObject<{
|
|
1010
|
+
activeRound: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1011
|
+
address: z.ZodString;
|
|
1012
|
+
deployedBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
1013
|
+
deployedPendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1014
|
+
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1015
|
+
deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
|
|
1016
|
+
id: z.ZodInt;
|
|
1017
|
+
minersCount: z.ZodInt;
|
|
1018
|
+
revealedMinersCount: z.ZodInt;
|
|
1019
|
+
settledMinersCount: z.ZodInt;
|
|
1020
|
+
state: z.ZodEnum<{
|
|
1021
|
+
active: "active";
|
|
1022
|
+
revealed: "revealed";
|
|
1023
|
+
settled: "settled";
|
|
1024
|
+
finished: "finished";
|
|
1025
|
+
}>;
|
|
1026
|
+
strikeBonusBtc: z.ZodCoercedBigInt<unknown>;
|
|
1027
|
+
strikeBonusUsd: z.ZodCoercedBigInt<unknown>;
|
|
1028
|
+
tileStakes: z.ZodArray<z.ZodObject<{
|
|
1029
|
+
deployCount: z.ZodInt;
|
|
1030
|
+
stake: z.ZodCoercedBigInt<unknown>;
|
|
1031
|
+
}, z.core.$strip>>;
|
|
1032
|
+
winnersCount: z.ZodInt;
|
|
1033
|
+
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1034
|
+
}, z.core.$strip>]>>;
|
|
1035
|
+
address: z.ZodString;
|
|
1036
|
+
currentSlot: z.ZodCoercedBigInt<unknown>;
|
|
1037
|
+
endSlot: z.ZodCoercedBigInt<unknown>;
|
|
1038
|
+
previousRound: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1039
|
+
address: z.ZodString;
|
|
1040
|
+
deployedBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
1041
|
+
deployedPendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1042
|
+
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1043
|
+
deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
|
|
1044
|
+
id: z.ZodInt;
|
|
1045
|
+
minersCount: z.ZodInt;
|
|
1046
|
+
revealedMinersCount: z.ZodInt;
|
|
1047
|
+
settledMinersCount: z.ZodInt;
|
|
1048
|
+
state: z.ZodEnum<{
|
|
1049
|
+
active: "active";
|
|
1050
|
+
revealed: "revealed";
|
|
1051
|
+
settled: "settled";
|
|
1052
|
+
finished: "finished";
|
|
1053
|
+
}>;
|
|
1054
|
+
strikeBonusBtc: z.ZodCoercedBigInt<unknown>;
|
|
1055
|
+
strikeBonusUsd: z.ZodCoercedBigInt<unknown>;
|
|
1056
|
+
tileStakes: z.ZodArray<z.ZodObject<{
|
|
1057
|
+
deployCount: z.ZodInt;
|
|
1058
|
+
stake: z.ZodCoercedBigInt<unknown>;
|
|
1059
|
+
}, z.core.$strip>>;
|
|
1060
|
+
winnersCount: z.ZodInt;
|
|
1061
|
+
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1062
|
+
}, z.core.$strip>]>>;
|
|
1063
|
+
roundDuration: z.ZodInt;
|
|
1064
|
+
roundId: z.ZodInt;
|
|
1065
|
+
startSlot: z.ZodCoercedBigInt<unknown>;
|
|
1066
|
+
strike: z.ZodObject<{
|
|
1067
|
+
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
1068
|
+
lastTriggerRoundId: z.ZodInt;
|
|
1069
|
+
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1070
|
+
usdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1071
|
+
}, z.core.$strip>;
|
|
1072
|
+
}, z.core.$strip>;
|
|
1073
|
+
entity: z.ZodEnum<{
|
|
1074
|
+
state_snapshot: "state_snapshot";
|
|
1075
|
+
}>;
|
|
1076
|
+
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1077
|
+
deployments: z.ZodArray<z.ZodObject<{
|
|
1078
|
+
address: z.ZodString;
|
|
1079
|
+
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1080
|
+
roundId: z.ZodInt;
|
|
1081
|
+
selectionMask: z.ZodInt;
|
|
1082
|
+
}, z.core.$strip>>;
|
|
1083
|
+
miner: z.ZodObject<{
|
|
1084
|
+
authority: z.ZodString;
|
|
1085
|
+
currentStreakCount: z.ZodInt;
|
|
1086
|
+
hashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
1087
|
+
lastMinedRoundId: z.ZodInt;
|
|
1088
|
+
unclaimedBtcShares: z.ZodCoercedBigInt<unknown>;
|
|
1089
|
+
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1090
|
+
}, z.core.$strip>;
|
|
1091
|
+
}, z.core.$strip>]>>;
|
|
1092
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1093
|
+
entity: z.ZodEnum<{
|
|
1094
|
+
state_snapshot: "state_snapshot";
|
|
1095
|
+
}>;
|
|
1096
|
+
}, z.core.$strip>>;
|
|
1097
|
+
declare const zSseResponse: z.ZodIntersection<z.ZodObject<{
|
|
1098
|
+
entity: z.ZodLiteral<"state_snapshot">;
|
|
1099
|
+
}, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
|
|
1100
|
+
board: z.ZodObject<{
|
|
1101
|
+
activeRound: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1102
|
+
address: z.ZodString;
|
|
1103
|
+
deployedBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
1104
|
+
deployedPendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1105
|
+
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1106
|
+
deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
|
|
1107
|
+
id: z.ZodInt;
|
|
1108
|
+
minersCount: z.ZodInt;
|
|
1109
|
+
revealedMinersCount: z.ZodInt;
|
|
1110
|
+
settledMinersCount: z.ZodInt;
|
|
1111
|
+
state: z.ZodEnum<{
|
|
1112
|
+
active: "active";
|
|
1113
|
+
revealed: "revealed";
|
|
1114
|
+
settled: "settled";
|
|
1115
|
+
finished: "finished";
|
|
1116
|
+
}>;
|
|
1117
|
+
strikeBonusBtc: z.ZodCoercedBigInt<unknown>;
|
|
1118
|
+
strikeBonusUsd: z.ZodCoercedBigInt<unknown>;
|
|
1119
|
+
tileStakes: z.ZodArray<z.ZodObject<{
|
|
1120
|
+
deployCount: z.ZodInt;
|
|
1121
|
+
stake: z.ZodCoercedBigInt<unknown>;
|
|
1122
|
+
}, z.core.$strip>>;
|
|
1123
|
+
winnersCount: z.ZodInt;
|
|
1124
|
+
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1125
|
+
}, z.core.$strip>]>>;
|
|
1126
|
+
address: z.ZodString;
|
|
1127
|
+
currentSlot: z.ZodCoercedBigInt<unknown>;
|
|
1128
|
+
endSlot: z.ZodCoercedBigInt<unknown>;
|
|
1129
|
+
previousRound: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1130
|
+
address: z.ZodString;
|
|
1131
|
+
deployedBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
1132
|
+
deployedPendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1133
|
+
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1134
|
+
deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
|
|
1135
|
+
id: z.ZodInt;
|
|
1136
|
+
minersCount: z.ZodInt;
|
|
1137
|
+
revealedMinersCount: z.ZodInt;
|
|
1138
|
+
settledMinersCount: z.ZodInt;
|
|
1139
|
+
state: z.ZodEnum<{
|
|
1140
|
+
active: "active";
|
|
1141
|
+
revealed: "revealed";
|
|
1142
|
+
settled: "settled";
|
|
1143
|
+
finished: "finished";
|
|
1144
|
+
}>;
|
|
1145
|
+
strikeBonusBtc: z.ZodCoercedBigInt<unknown>;
|
|
1146
|
+
strikeBonusUsd: z.ZodCoercedBigInt<unknown>;
|
|
1147
|
+
tileStakes: z.ZodArray<z.ZodObject<{
|
|
1148
|
+
deployCount: z.ZodInt;
|
|
1149
|
+
stake: z.ZodCoercedBigInt<unknown>;
|
|
1150
|
+
}, z.core.$strip>>;
|
|
1151
|
+
winnersCount: z.ZodInt;
|
|
1152
|
+
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1153
|
+
}, z.core.$strip>]>>;
|
|
1154
|
+
roundDuration: z.ZodInt;
|
|
1155
|
+
roundId: z.ZodInt;
|
|
1156
|
+
startSlot: z.ZodCoercedBigInt<unknown>;
|
|
1157
|
+
strike: z.ZodObject<{
|
|
1158
|
+
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
1159
|
+
lastTriggerRoundId: z.ZodInt;
|
|
1160
|
+
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1161
|
+
usdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1162
|
+
}, z.core.$strip>;
|
|
1163
|
+
}, z.core.$strip>;
|
|
1164
|
+
entity: z.ZodEnum<{
|
|
1165
|
+
state_snapshot: "state_snapshot";
|
|
1166
|
+
}>;
|
|
1167
|
+
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1168
|
+
deployments: z.ZodArray<z.ZodObject<{
|
|
1169
|
+
address: z.ZodString;
|
|
1170
|
+
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1171
|
+
roundId: z.ZodInt;
|
|
1172
|
+
selectionMask: z.ZodInt;
|
|
1173
|
+
}, z.core.$strip>>;
|
|
1174
|
+
miner: z.ZodObject<{
|
|
1175
|
+
authority: z.ZodString;
|
|
1176
|
+
currentStreakCount: z.ZodInt;
|
|
1177
|
+
hashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
1178
|
+
lastMinedRoundId: z.ZodInt;
|
|
1179
|
+
unclaimedBtcShares: z.ZodCoercedBigInt<unknown>;
|
|
1180
|
+
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1181
|
+
}, z.core.$strip>;
|
|
1182
|
+
}, z.core.$strip>]>>;
|
|
1183
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1184
|
+
entity: z.ZodEnum<{
|
|
1185
|
+
state_snapshot: "state_snapshot";
|
|
1186
|
+
}>;
|
|
1187
|
+
}, z.core.$strip>>>;
|
|
871
1188
|
declare const zUserProfileApiError400InvalidAddress: z.ZodObject<{
|
|
872
1189
|
code: z.ZodEnum<{
|
|
873
1190
|
invalid_address: "invalid_address";
|
|
@@ -1001,6 +1318,108 @@ declare const zGetConfigResponse: z.ZodObject<{
|
|
|
1001
1318
|
}, z.core.$strip>;
|
|
1002
1319
|
}, z.core.$strip>;
|
|
1003
1320
|
type GetConfigResponseZodType = z.infer<typeof zGetConfigResponse>;
|
|
1321
|
+
declare const zSseData: z.ZodObject<{
|
|
1322
|
+
body: z.ZodOptional<z.ZodNever>;
|
|
1323
|
+
path: z.ZodOptional<z.ZodNever>;
|
|
1324
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
1325
|
+
wallet: z.ZodOptional<z.ZodString>;
|
|
1326
|
+
}, z.core.$strip>>;
|
|
1327
|
+
}, z.core.$strip>;
|
|
1328
|
+
/**
|
|
1329
|
+
* Server-Sent Events stream
|
|
1330
|
+
*/
|
|
1331
|
+
declare const zSseResponse2: z.ZodIntersection<z.ZodObject<{
|
|
1332
|
+
entity: z.ZodLiteral<"state_snapshot">;
|
|
1333
|
+
}, z.core.$strip>, z.ZodIntersection<z.ZodObject<{
|
|
1334
|
+
board: z.ZodObject<{
|
|
1335
|
+
activeRound: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1336
|
+
address: z.ZodString;
|
|
1337
|
+
deployedBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
1338
|
+
deployedPendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1339
|
+
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1340
|
+
deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
|
|
1341
|
+
id: z.ZodInt;
|
|
1342
|
+
minersCount: z.ZodInt;
|
|
1343
|
+
revealedMinersCount: z.ZodInt;
|
|
1344
|
+
settledMinersCount: z.ZodInt;
|
|
1345
|
+
state: z.ZodEnum<{
|
|
1346
|
+
active: "active";
|
|
1347
|
+
revealed: "revealed";
|
|
1348
|
+
settled: "settled";
|
|
1349
|
+
finished: "finished";
|
|
1350
|
+
}>;
|
|
1351
|
+
strikeBonusBtc: z.ZodCoercedBigInt<unknown>;
|
|
1352
|
+
strikeBonusUsd: z.ZodCoercedBigInt<unknown>;
|
|
1353
|
+
tileStakes: z.ZodArray<z.ZodObject<{
|
|
1354
|
+
deployCount: z.ZodInt;
|
|
1355
|
+
stake: z.ZodCoercedBigInt<unknown>;
|
|
1356
|
+
}, z.core.$strip>>;
|
|
1357
|
+
winnersCount: z.ZodInt;
|
|
1358
|
+
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1359
|
+
}, z.core.$strip>]>>;
|
|
1360
|
+
address: z.ZodString;
|
|
1361
|
+
currentSlot: z.ZodCoercedBigInt<unknown>;
|
|
1362
|
+
endSlot: z.ZodCoercedBigInt<unknown>;
|
|
1363
|
+
previousRound: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1364
|
+
address: z.ZodString;
|
|
1365
|
+
deployedBtcAmount: z.ZodCoercedBigInt<unknown>;
|
|
1366
|
+
deployedPendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1367
|
+
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1368
|
+
deployedUsdOnWinningTileAmount: z.ZodCoercedBigInt<unknown>;
|
|
1369
|
+
id: z.ZodInt;
|
|
1370
|
+
minersCount: z.ZodInt;
|
|
1371
|
+
revealedMinersCount: z.ZodInt;
|
|
1372
|
+
settledMinersCount: z.ZodInt;
|
|
1373
|
+
state: z.ZodEnum<{
|
|
1374
|
+
active: "active";
|
|
1375
|
+
revealed: "revealed";
|
|
1376
|
+
settled: "settled";
|
|
1377
|
+
finished: "finished";
|
|
1378
|
+
}>;
|
|
1379
|
+
strikeBonusBtc: z.ZodCoercedBigInt<unknown>;
|
|
1380
|
+
strikeBonusUsd: z.ZodCoercedBigInt<unknown>;
|
|
1381
|
+
tileStakes: z.ZodArray<z.ZodObject<{
|
|
1382
|
+
deployCount: z.ZodInt;
|
|
1383
|
+
stake: z.ZodCoercedBigInt<unknown>;
|
|
1384
|
+
}, z.core.$strip>>;
|
|
1385
|
+
winnersCount: z.ZodInt;
|
|
1386
|
+
winningTile: z.ZodOptional<z.ZodUnion<readonly [z.ZodInt, z.ZodNull]>>;
|
|
1387
|
+
}, z.core.$strip>]>>;
|
|
1388
|
+
roundDuration: z.ZodInt;
|
|
1389
|
+
roundId: z.ZodInt;
|
|
1390
|
+
startSlot: z.ZodCoercedBigInt<unknown>;
|
|
1391
|
+
strike: z.ZodObject<{
|
|
1392
|
+
btcAmount: z.ZodCoercedBigInt<unknown>;
|
|
1393
|
+
lastTriggerRoundId: z.ZodInt;
|
|
1394
|
+
pendingUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1395
|
+
usdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1396
|
+
}, z.core.$strip>;
|
|
1397
|
+
}, z.core.$strip>;
|
|
1398
|
+
entity: z.ZodEnum<{
|
|
1399
|
+
state_snapshot: "state_snapshot";
|
|
1400
|
+
}>;
|
|
1401
|
+
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
1402
|
+
deployments: z.ZodArray<z.ZodObject<{
|
|
1403
|
+
address: z.ZodString;
|
|
1404
|
+
deployedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1405
|
+
roundId: z.ZodInt;
|
|
1406
|
+
selectionMask: z.ZodInt;
|
|
1407
|
+
}, z.core.$strip>>;
|
|
1408
|
+
miner: z.ZodObject<{
|
|
1409
|
+
authority: z.ZodString;
|
|
1410
|
+
currentStreakCount: z.ZodInt;
|
|
1411
|
+
hashrateAmount: z.ZodCoercedBigInt<unknown>;
|
|
1412
|
+
lastMinedRoundId: z.ZodInt;
|
|
1413
|
+
unclaimedBtcShares: z.ZodCoercedBigInt<unknown>;
|
|
1414
|
+
unclaimedUsdAmount: z.ZodCoercedBigInt<unknown>;
|
|
1415
|
+
}, z.core.$strip>;
|
|
1416
|
+
}, z.core.$strip>]>>;
|
|
1417
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1418
|
+
entity: z.ZodEnum<{
|
|
1419
|
+
state_snapshot: "state_snapshot";
|
|
1420
|
+
}>;
|
|
1421
|
+
}, z.core.$strip>>>;
|
|
1422
|
+
type SseResponseZodType = z.infer<typeof zSseResponse2>;
|
|
1004
1423
|
declare const zGetUserProfileData: z.ZodObject<{
|
|
1005
1424
|
body: z.ZodOptional<z.ZodNever>;
|
|
1006
1425
|
path: z.ZodObject<{
|
|
@@ -1050,4 +1469,4 @@ declare class SatrushBackendSdkError<TCause = unknown> extends Error {
|
|
|
1050
1469
|
declare const satrushSdkErrorInterceptor: (error: unknown, response?: Response) => SatrushBackendSdkError<unknown>;
|
|
1051
1470
|
declare const isSatrushSdkError: <TCause = unknown>(error: unknown) => error is SatrushBackendSdkError<TCause>;
|
|
1052
1471
|
|
|
1053
|
-
export { type BadRequestErrorCodeErrorBody, type BoardDto, type ClientOptions, 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, type Options, type ProfileDto, type PubkeyDto, type PublicDeploymentDto, type RoundDto, RoundStateDto, SatrushBackendSdk, SatrushBackendSdkError, type SatrushConfigDto, type ServerSentEventsOptions, type ServerSentEventsResult, 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, zFieldError, zGetBoardData, zGetBoardResponse, zGetConfigData, zGetConfigResponse, zGetUserProfileData, zGetUserProfileResponse, zI128Dto, zI64Dto, zInternalErrorCodeErrorBody, zMinerDto, zProfileDto, zPubkeyDto, zPublicDeploymentDto, zRoundDto, zRoundStateDto, zSatrushConfigDto, zStrikeJackpotDto, zTileStakeDto, zU128Dto, zU64Dto, zUserProfileApiError400Error, zUserProfileApiError400InvalidAddress, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody };
|
|
1472
|
+
export { type BadRequestErrorCodeErrorBody, type BoardDto, type ClientOptions, 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, type Options, type ProfileDto, type PubkeyDto, type PublicDeploymentDto, type RoundDto, RoundStateDto, SatrushBackendSdk, SatrushBackendSdkError, type SatrushConfigDto, 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, zFieldError, zGetBoardData, zGetBoardResponse, zGetConfigData, zGetConfigResponse, zGetUserProfileData, zGetUserProfileResponse, zI128Dto, zI64Dto, zInternalErrorCodeErrorBody, zMinerDto, zNotificationEntity, zProfileDto, zPubkeyDto, zPublicDeploymentDto, zRoundDto, zRoundStateDto, zSatrushConfigDto, zSnapshotDto, zSseData, zSseResponse, zSseResponse2, zSseResponseSnapshot, zStrikeJackpotDto, zTileStakeDto, zU128Dto, zU64Dto, zUserProfileApiError400Error, zUserProfileApiError400InvalidAddress, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody };
|