@loafmarkets/shared-types 1.0.180 → 1.0.182
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.d.ts +148 -134
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +239 -153
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -32,9 +32,9 @@ export declare const orderBodySchema: z.ZodObject<{
|
|
|
32
32
|
timeInForce: z.ZodEnum<{
|
|
33
33
|
GTC: "GTC";
|
|
34
34
|
}>;
|
|
35
|
-
deadline: z.
|
|
35
|
+
deadline: z.ZodInt;
|
|
36
36
|
nonce: z.ZodString;
|
|
37
|
-
}, z.core.$
|
|
37
|
+
}, z.core.$strict>;
|
|
38
38
|
export type OrderRequestBody = z.infer<typeof orderBodySchema>;
|
|
39
39
|
export declare const mmOrderBodySchema: z.ZodObject<{
|
|
40
40
|
tokenName: z.ZodString;
|
|
@@ -51,10 +51,10 @@ export declare const mmOrderBodySchema: z.ZodObject<{
|
|
|
51
51
|
timeInForce: z.ZodEnum<{
|
|
52
52
|
GTC: "GTC";
|
|
53
53
|
}>;
|
|
54
|
-
deadline: z.
|
|
54
|
+
deadline: z.ZodInt;
|
|
55
55
|
nonce: z.ZodString;
|
|
56
56
|
signature: z.ZodString;
|
|
57
|
-
}, z.core.$
|
|
57
|
+
}, z.core.$strict>;
|
|
58
58
|
export type MmOrderRequestBody = z.infer<typeof mmOrderBodySchema>;
|
|
59
59
|
export interface OrderApiResponse {
|
|
60
60
|
success: boolean;
|
|
@@ -66,8 +66,8 @@ export interface OrderNonceResponse {
|
|
|
66
66
|
deadline: UnixTimestamp;
|
|
67
67
|
}
|
|
68
68
|
export declare const cancelOrderBodySchema: z.ZodObject<{
|
|
69
|
-
orderId: z.
|
|
70
|
-
}, z.core.$
|
|
69
|
+
orderId: z.ZodInt;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
71
|
export type CancelOrderRequestBody = z.infer<typeof cancelOrderBodySchema>;
|
|
72
72
|
export interface CancelOrderResponse {
|
|
73
73
|
success: boolean;
|
|
@@ -84,7 +84,7 @@ export interface CancelAllOrdersResponse {
|
|
|
84
84
|
}
|
|
85
85
|
export declare const approveTradingBodySchema: z.ZodObject<{
|
|
86
86
|
tokenName: z.ZodString;
|
|
87
|
-
}, z.core.$
|
|
87
|
+
}, z.core.$strict>;
|
|
88
88
|
export type ApproveTradingRequestBody = z.infer<typeof approveTradingBodySchema>;
|
|
89
89
|
export interface ApprovalSideResult {
|
|
90
90
|
/** True if the wallet already held a sufficient allowance (no on-chain tx sent). */
|
|
@@ -182,17 +182,17 @@ export declare const authHandleQuerySchema: z.ZodObject<{
|
|
|
182
182
|
export type AuthHandleQueryParams = z.infer<typeof authHandleQuerySchema>;
|
|
183
183
|
export declare const authPrivyTokenBodySchema: z.ZodObject<{
|
|
184
184
|
privyToken: z.ZodString;
|
|
185
|
-
}, z.core.$
|
|
185
|
+
}, z.core.$strict>;
|
|
186
186
|
export type AuthPrivyTokenRequestBody = z.infer<typeof authPrivyTokenBodySchema>;
|
|
187
187
|
export declare const authSignupBodySchema: z.ZodObject<{
|
|
188
188
|
privyToken: z.ZodString;
|
|
189
189
|
handle: z.ZodOptional<z.ZodString>;
|
|
190
190
|
referralCode: z.ZodOptional<z.ZodString>;
|
|
191
|
-
}, z.core.$
|
|
191
|
+
}, z.core.$strict>;
|
|
192
192
|
export type AuthSignupRequestBody = z.infer<typeof authSignupBodySchema>;
|
|
193
193
|
export declare const submitReferralCodeSchema: z.ZodObject<{
|
|
194
194
|
referralCode: z.ZodString;
|
|
195
|
-
}, z.core.$
|
|
195
|
+
}, z.core.$strict>;
|
|
196
196
|
export type SubmitReferralCodeRequestBody = z.infer<typeof submitReferralCodeSchema>;
|
|
197
197
|
export declare const authReferralValidateQuerySchema: z.ZodObject<{
|
|
198
198
|
code: z.ZodString;
|
|
@@ -203,28 +203,28 @@ export interface ReferralValidateResponse {
|
|
|
203
203
|
readonly refereeBoostPlaces: number;
|
|
204
204
|
}
|
|
205
205
|
export declare const adminCreateReferralCodeSchema: z.ZodObject<{
|
|
206
|
-
ownerUserId: z.ZodOptional<z.
|
|
207
|
-
maxUses: z.
|
|
206
|
+
ownerUserId: z.ZodOptional<z.ZodInt>;
|
|
207
|
+
maxUses: z.ZodInt;
|
|
208
208
|
code: z.ZodOptional<z.ZodString>;
|
|
209
|
-
}, z.core.$
|
|
209
|
+
}, z.core.$strict>;
|
|
210
210
|
export type AdminCreateReferralCodeRequestBody = z.infer<typeof adminCreateReferralCodeSchema>;
|
|
211
211
|
export declare const adminSetRefereeBoostSchema: z.ZodObject<{
|
|
212
212
|
code: z.ZodString;
|
|
213
|
-
refereeBoostPlaces: z.
|
|
214
|
-
}, z.core.$
|
|
213
|
+
refereeBoostPlaces: z.ZodInt;
|
|
214
|
+
}, z.core.$strict>;
|
|
215
215
|
export type AdminSetRefereeBoostRequestBody = z.infer<typeof adminSetRefereeBoostSchema>;
|
|
216
216
|
export declare const authCheckAccountBodySchema: z.ZodObject<{
|
|
217
217
|
email: z.ZodOptional<z.ZodEmail>;
|
|
218
218
|
walletAddress: z.ZodOptional<z.ZodString>;
|
|
219
|
-
}, z.core.$
|
|
219
|
+
}, z.core.$strict>;
|
|
220
220
|
export type AuthCheckAccountRequestBody = z.infer<typeof authCheckAccountBodySchema>;
|
|
221
221
|
export declare const authUpdateHandleBodySchema: z.ZodObject<{
|
|
222
222
|
handle: z.ZodString;
|
|
223
|
-
}, z.core.$
|
|
223
|
+
}, z.core.$strict>;
|
|
224
224
|
export type AuthUpdateHandleRequestBody = z.infer<typeof authUpdateHandleBodySchema>;
|
|
225
225
|
export declare const authLoginBodySchema: z.ZodObject<{
|
|
226
226
|
privyToken: z.ZodString;
|
|
227
|
-
}, z.core.$
|
|
227
|
+
}, z.core.$strict>;
|
|
228
228
|
export type AuthLoginRequestBody = AuthPrivyTokenRequestBody;
|
|
229
229
|
export interface KycTokenResponse {
|
|
230
230
|
readonly token: string;
|
|
@@ -243,7 +243,7 @@ export declare const wholesaleSubmitSchema: z.ZodObject<{
|
|
|
243
243
|
S761GA_EXPERIENCED: "S761GA_EXPERIENCED";
|
|
244
244
|
}>;
|
|
245
245
|
documentKey: z.ZodString;
|
|
246
|
-
}, z.core.$
|
|
246
|
+
}, z.core.$strict>;
|
|
247
247
|
export type WholesaleSubmitBody = z.infer<typeof wholesaleSubmitSchema>;
|
|
248
248
|
export interface WholesaleApplicationResponse {
|
|
249
249
|
readonly applicationId: number;
|
|
@@ -285,13 +285,13 @@ export interface AdminWholesaleApplicationItem {
|
|
|
285
285
|
readonly adminNotes: string | null;
|
|
286
286
|
}
|
|
287
287
|
export declare const adminReviewWholesaleSchema: z.ZodObject<{
|
|
288
|
-
applicationId: z.
|
|
288
|
+
applicationId: z.ZodInt;
|
|
289
289
|
decision: z.ZodEnum<{
|
|
290
290
|
REJECTED: "REJECTED";
|
|
291
291
|
VERIFIED: "VERIFIED";
|
|
292
292
|
}>;
|
|
293
293
|
adminNotes: z.ZodOptional<z.ZodString>;
|
|
294
|
-
}, z.core.$
|
|
294
|
+
}, z.core.$strict>;
|
|
295
295
|
export type AdminReviewWholesaleBody = z.infer<typeof adminReviewWholesaleSchema>;
|
|
296
296
|
export interface RampResponse {
|
|
297
297
|
readonly widgetUrl: string;
|
|
@@ -300,16 +300,16 @@ export declare const transferBaseBodySchema: z.ZodObject<{
|
|
|
300
300
|
toAddress: z.ZodString;
|
|
301
301
|
cryptoAmount: z.ZodNumber;
|
|
302
302
|
nonce: z.ZodString;
|
|
303
|
-
deadline: z.
|
|
304
|
-
}, z.core.$
|
|
303
|
+
deadline: z.ZodInt;
|
|
304
|
+
}, z.core.$strict>;
|
|
305
305
|
export type TransferRequestBody = z.infer<typeof transferBaseBodySchema>;
|
|
306
306
|
export declare const transferTransakBodySchema: z.ZodObject<{
|
|
307
307
|
toAddress: z.ZodString;
|
|
308
308
|
cryptoAmount: z.ZodNumber;
|
|
309
309
|
nonce: z.ZodString;
|
|
310
|
-
deadline: z.
|
|
310
|
+
deadline: z.ZodInt;
|
|
311
311
|
transakOrderId: z.ZodString;
|
|
312
|
-
}, z.core.$
|
|
312
|
+
}, z.core.$strict>;
|
|
313
313
|
export type TransakTransferRequestBody = z.infer<typeof transferTransakBodySchema>;
|
|
314
314
|
export interface TransferResponse {
|
|
315
315
|
readonly txHash: string;
|
|
@@ -580,12 +580,12 @@ export interface IpoPageResponse {
|
|
|
580
580
|
readonly recentOrders: readonly IpoRecentOrder[];
|
|
581
581
|
}
|
|
582
582
|
export declare const ipoSubscribeSchema: z.ZodObject<{
|
|
583
|
-
ipoId: z.
|
|
584
|
-
quantity: z.
|
|
585
|
-
deadline: z.
|
|
583
|
+
ipoId: z.ZodInt;
|
|
584
|
+
quantity: z.ZodInt;
|
|
585
|
+
deadline: z.ZodInt;
|
|
586
586
|
nonce: z.ZodString;
|
|
587
587
|
allowPartial: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
588
|
-
}, z.core.$
|
|
588
|
+
}, z.core.$strict>;
|
|
589
589
|
export type IpoSubscribeRequestBody = z.infer<typeof ipoSubscribeSchema>;
|
|
590
590
|
export interface IpoSubscribeResponse {
|
|
591
591
|
readonly success: boolean;
|
|
@@ -594,8 +594,8 @@ export interface IpoSubscribeResponse {
|
|
|
594
594
|
readonly errorMessage?: string;
|
|
595
595
|
}
|
|
596
596
|
export declare const approveIpoBodySchema: z.ZodObject<{
|
|
597
|
-
ipoId: z.
|
|
598
|
-
}, z.core.$
|
|
597
|
+
ipoId: z.ZodInt;
|
|
598
|
+
}, z.core.$strict>;
|
|
599
599
|
export type ApproveIpoRequestBody = z.infer<typeof approveIpoBodySchema>;
|
|
600
600
|
export interface ApproveIpoResponse {
|
|
601
601
|
readonly approved: true;
|
|
@@ -705,8 +705,8 @@ export declare const valuationSummaryQuerySchema: z.ZodObject<{
|
|
|
705
705
|
}>>;
|
|
706
706
|
}, z.core.$strip>;
|
|
707
707
|
export declare const valuationHistoryQuerySchema: z.ZodObject<{
|
|
708
|
-
startDate: z.ZodOptional<z.
|
|
709
|
-
endDate: z.ZodOptional<z.
|
|
708
|
+
startDate: z.ZodOptional<z.ZodISODate>;
|
|
709
|
+
endDate: z.ZodOptional<z.ZodISODate>;
|
|
710
710
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
711
711
|
order: z.ZodOptional<z.ZodEnum<{
|
|
712
712
|
asc: "asc";
|
|
@@ -848,15 +848,15 @@ export declare const adminCreatePropertyBodySchema: z.ZodObject<{
|
|
|
848
848
|
tokenName: z.ZodString;
|
|
849
849
|
ticker: z.ZodString;
|
|
850
850
|
assetName: z.ZodString;
|
|
851
|
-
totalTokens: z.
|
|
852
|
-
tokensIssued: z.
|
|
853
|
-
tradingStartsAt: z.
|
|
851
|
+
totalTokens: z.ZodInt;
|
|
852
|
+
tokensIssued: z.ZodInt;
|
|
853
|
+
tradingStartsAt: z.ZodInt;
|
|
854
854
|
rentalYieldPercentage: z.ZodNumber;
|
|
855
855
|
growth5Yr: z.ZodNumber;
|
|
856
856
|
isCompetition: z.ZodOptional<z.ZodBoolean>;
|
|
857
857
|
description: z.ZodString;
|
|
858
858
|
weeklyRent: z.ZodNumber;
|
|
859
|
-
headerImageUrl: z.
|
|
859
|
+
headerImageUrl: z.ZodURL;
|
|
860
860
|
ownership: z.ZodEnum<{
|
|
861
861
|
FREEHOLD: "FREEHOLD";
|
|
862
862
|
LEASEHOLD: "LEASEHOLD";
|
|
@@ -865,27 +865,27 @@ export declare const adminCreatePropertyBodySchema: z.ZodObject<{
|
|
|
865
865
|
garden: z.ZodBoolean;
|
|
866
866
|
gym: z.ZodBoolean;
|
|
867
867
|
zoning: z.ZodString;
|
|
868
|
-
levels: z.
|
|
868
|
+
levels: z.ZodInt;
|
|
869
869
|
daStatus: z.ZodString;
|
|
870
870
|
heritageStatus: z.ZodString;
|
|
871
871
|
developmentOptionality: z.ZodString;
|
|
872
|
-
suburbMedian: z.
|
|
872
|
+
suburbMedian: z.ZodInt;
|
|
873
873
|
propertyHistory: z.ZodArray<z.ZodObject<{
|
|
874
|
-
year: z.
|
|
874
|
+
year: z.ZodInt;
|
|
875
875
|
event: z.ZodString;
|
|
876
876
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
877
|
-
}, z.core.$
|
|
877
|
+
}, z.core.$strict>>;
|
|
878
878
|
documents: z.ZodArray<z.ZodObject<{
|
|
879
879
|
title: z.ZodString;
|
|
880
|
-
documentUrl: z.
|
|
881
|
-
}, z.core.$
|
|
880
|
+
documentUrl: z.ZodURL;
|
|
881
|
+
}, z.core.$strict>>;
|
|
882
882
|
images: z.ZodArray<z.ZodObject<{
|
|
883
|
-
imageUrl: z.
|
|
883
|
+
imageUrl: z.ZodURL;
|
|
884
884
|
title: z.ZodString;
|
|
885
885
|
subtitle: z.ZodString;
|
|
886
|
-
}, z.core.$
|
|
887
|
-
advisorImages: z.ZodArray<z.
|
|
888
|
-
videoUrl: z.
|
|
886
|
+
}, z.core.$strict>>;
|
|
887
|
+
advisorImages: z.ZodArray<z.ZodURL>;
|
|
888
|
+
videoUrl: z.ZodURL;
|
|
889
889
|
streetAddress: z.ZodString;
|
|
890
890
|
suburb: z.ZodString;
|
|
891
891
|
state: z.ZodString;
|
|
@@ -894,40 +894,40 @@ export declare const adminCreatePropertyBodySchema: z.ZodObject<{
|
|
|
894
894
|
latitude: z.ZodNumber;
|
|
895
895
|
longitude: z.ZodNumber;
|
|
896
896
|
propertyType: z.ZodString;
|
|
897
|
-
bedrooms: z.
|
|
898
|
-
bathrooms: z.
|
|
899
|
-
carSpaces: z.
|
|
900
|
-
garageSpaces: z.
|
|
897
|
+
bedrooms: z.ZodInt;
|
|
898
|
+
bathrooms: z.ZodInt;
|
|
899
|
+
carSpaces: z.ZodInt;
|
|
900
|
+
garageSpaces: z.ZodInt;
|
|
901
901
|
landSizeSqm: z.ZodNumber;
|
|
902
902
|
buildingSizeSqm: z.ZodNumber;
|
|
903
|
-
yearBuilt: z.
|
|
903
|
+
yearBuilt: z.ZodInt;
|
|
904
904
|
swimmingPool: z.ZodBoolean;
|
|
905
905
|
tennisCourt: z.ZodBoolean;
|
|
906
|
-
}, z.core.$
|
|
906
|
+
}, z.core.$strict>;
|
|
907
907
|
export type AdminCreatePropertyRequestBody = z.infer<typeof adminCreatePropertyBodySchema>;
|
|
908
908
|
export interface AdminCreatePropertyResponse {
|
|
909
909
|
readonly propertyId: number;
|
|
910
910
|
}
|
|
911
911
|
export declare const adminCreateIpoBodySchema: z.ZodObject<{
|
|
912
|
-
propertyId: z.
|
|
912
|
+
propertyId: z.ZodInt;
|
|
913
913
|
tokenPriceUsdl: z.ZodNumber;
|
|
914
914
|
supplyToSell: z.ZodNumber;
|
|
915
915
|
offeringValuation: z.ZodNumber;
|
|
916
|
-
feeBps: z.
|
|
917
|
-
contractStartTime: z.
|
|
918
|
-
publicStartTime: z.
|
|
919
|
-
endTime: z.
|
|
920
|
-
}, z.core.$
|
|
916
|
+
feeBps: z.ZodInt;
|
|
917
|
+
contractStartTime: z.ZodInt;
|
|
918
|
+
publicStartTime: z.ZodInt;
|
|
919
|
+
endTime: z.ZodInt;
|
|
920
|
+
}, z.core.$strict>;
|
|
921
921
|
export type AdminCreateIpoRequestBody = z.infer<typeof adminCreateIpoBodySchema>;
|
|
922
922
|
export interface AdminCreateIpoResponse {
|
|
923
923
|
readonly ipoId: number;
|
|
924
924
|
readonly propertyId: number;
|
|
925
925
|
}
|
|
926
926
|
export declare const adminDeployPropertyTokenBodySchema: z.ZodObject<{
|
|
927
|
-
propertyId: z.
|
|
927
|
+
propertyId: z.ZodInt;
|
|
928
928
|
transferTo: z.ZodOptional<z.ZodString>;
|
|
929
929
|
transferAmount: z.ZodDefault<z.ZodNumber>;
|
|
930
|
-
}, z.core.$
|
|
930
|
+
}, z.core.$strict>;
|
|
931
931
|
export type AdminDeployPropertyTokenRequestBody = z.infer<typeof adminDeployPropertyTokenBodySchema>;
|
|
932
932
|
export interface AdminDeployPropertyTokenResponse {
|
|
933
933
|
readonly tokenAddress: string;
|
|
@@ -936,11 +936,11 @@ export interface AdminDeployPropertyTokenResponse {
|
|
|
936
936
|
readonly propertyId: number;
|
|
937
937
|
}
|
|
938
938
|
export declare const adminMintPropertyTokenBodySchema: z.ZodObject<{
|
|
939
|
-
propertyId: z.
|
|
939
|
+
propertyId: z.ZodInt;
|
|
940
940
|
walletAddress: z.ZodString;
|
|
941
941
|
amount: z.ZodNumber;
|
|
942
942
|
entryPriceUsdl: z.ZodNumber;
|
|
943
|
-
}, z.core.$
|
|
943
|
+
}, z.core.$strict>;
|
|
944
944
|
export type AdminMintPropertyTokenRequestBody = z.infer<typeof adminMintPropertyTokenBodySchema>;
|
|
945
945
|
export interface AdminMintPropertyTokenResponse {
|
|
946
946
|
readonly tokenAddress: string;
|
|
@@ -955,7 +955,7 @@ export interface AdminMintPropertyTokenResponse {
|
|
|
955
955
|
export declare const adminMintPaymentTokenBodySchema: z.ZodObject<{
|
|
956
956
|
walletAddress: z.ZodString;
|
|
957
957
|
amount: z.ZodNumber;
|
|
958
|
-
}, z.core.$
|
|
958
|
+
}, z.core.$strict>;
|
|
959
959
|
export type AdminMintPaymentTokenRequestBody = z.infer<typeof adminMintPaymentTokenBodySchema>;
|
|
960
960
|
export interface AdminMintPaymentTokenResponse {
|
|
961
961
|
readonly tokenAddress: string;
|
|
@@ -965,10 +965,10 @@ export interface AdminMintPaymentTokenResponse {
|
|
|
965
965
|
readonly txHash: string;
|
|
966
966
|
}
|
|
967
967
|
export declare const adminDeploySaleBodySchema: z.ZodObject<{
|
|
968
|
-
ipoId: z.
|
|
968
|
+
ipoId: z.ZodInt;
|
|
969
969
|
maxPerWallet: z.ZodNumber;
|
|
970
970
|
fundsRecipient: z.ZodString;
|
|
971
|
-
}, z.core.$
|
|
971
|
+
}, z.core.$strict>;
|
|
972
972
|
export type AdminDeploySaleRequestBody = z.infer<typeof adminDeploySaleBodySchema>;
|
|
973
973
|
export interface AdminDeploySaleResponse {
|
|
974
974
|
readonly saleId: string;
|
|
@@ -978,9 +978,9 @@ export interface AdminDeploySaleResponse {
|
|
|
978
978
|
readonly propertyId: number;
|
|
979
979
|
}
|
|
980
980
|
export declare const adminSetSaleStatusBodySchema: z.ZodObject<{
|
|
981
|
-
ipoId: z.
|
|
982
|
-
newStatus: z.
|
|
983
|
-
}, z.core.$
|
|
981
|
+
ipoId: z.ZodInt;
|
|
982
|
+
newStatus: z.ZodInt;
|
|
983
|
+
}, z.core.$strict>;
|
|
984
984
|
export type AdminSetSaleStatusRequestBody = z.infer<typeof adminSetSaleStatusBodySchema>;
|
|
985
985
|
export interface AdminSetSaleStatusResponse {
|
|
986
986
|
readonly transactionHash: string;
|
|
@@ -999,7 +999,7 @@ export declare const adminUpdateIpoBodySchema: z.ZodObject<{
|
|
|
999
999
|
LIVE: "LIVE";
|
|
1000
1000
|
CLOSED: "CLOSED";
|
|
1001
1001
|
}>>;
|
|
1002
|
-
}, z.core.$
|
|
1002
|
+
}, z.core.$strict>;
|
|
1003
1003
|
export type AdminUpdateIpoRequestBody = z.infer<typeof adminUpdateIpoBodySchema>;
|
|
1004
1004
|
export interface AdminUpdateIpoResponse {
|
|
1005
1005
|
readonly ipoId: number;
|
|
@@ -1007,10 +1007,10 @@ export interface AdminUpdateIpoResponse {
|
|
|
1007
1007
|
readonly status: IpoStatus;
|
|
1008
1008
|
}
|
|
1009
1009
|
export declare const adminGraduateSaleBodySchema: z.ZodObject<{
|
|
1010
|
-
ipoId: z.
|
|
1010
|
+
ipoId: z.ZodInt;
|
|
1011
1011
|
useBatchMigration: z.ZodDefault<z.ZodBoolean>;
|
|
1012
|
-
batchSize: z.ZodDefault<z.
|
|
1013
|
-
}, z.core.$
|
|
1012
|
+
batchSize: z.ZodDefault<z.ZodInt>;
|
|
1013
|
+
}, z.core.$strict>;
|
|
1014
1014
|
export type AdminGraduateSaleRequestBody = z.infer<typeof adminGraduateSaleBodySchema>;
|
|
1015
1015
|
export interface AdminGraduateSaleResponse {
|
|
1016
1016
|
readonly migrationComplete: boolean;
|
|
@@ -1018,13 +1018,13 @@ export interface AdminGraduateSaleResponse {
|
|
|
1018
1018
|
readonly propertyId: number;
|
|
1019
1019
|
}
|
|
1020
1020
|
export declare const adminSetPropertyStatusBodySchema: z.ZodObject<{
|
|
1021
|
-
propertyId: z.
|
|
1021
|
+
propertyId: z.ZodInt;
|
|
1022
1022
|
newStatus: z.ZodEnum<{
|
|
1023
1023
|
PENDING: "PENDING";
|
|
1024
1024
|
LIVE: "LIVE";
|
|
1025
1025
|
DELISTED: "DELISTED";
|
|
1026
1026
|
}>;
|
|
1027
|
-
}, z.core.$
|
|
1027
|
+
}, z.core.$strict>;
|
|
1028
1028
|
export type AdminSetPropertyStatusRequestBody = z.infer<typeof adminSetPropertyStatusBodySchema>;
|
|
1029
1029
|
export interface AdminSetPropertyStatusResponse {
|
|
1030
1030
|
readonly propertyId: number;
|
|
@@ -1032,12 +1032,12 @@ export interface AdminSetPropertyStatusResponse {
|
|
|
1032
1032
|
readonly newStatus: PropertyStatus;
|
|
1033
1033
|
}
|
|
1034
1034
|
export declare const adminSetPropertyHaltBodySchema: z.ZodObject<{
|
|
1035
|
-
propertyId: z.
|
|
1035
|
+
propertyId: z.ZodInt;
|
|
1036
1036
|
status: z.ZodEnum<{
|
|
1037
1037
|
HALTED: "HALTED";
|
|
1038
1038
|
ACTIVE: "ACTIVE";
|
|
1039
1039
|
}>;
|
|
1040
|
-
}, z.core.$
|
|
1040
|
+
}, z.core.$strict>;
|
|
1041
1041
|
export type AdminSetPropertyHaltRequestBody = z.infer<typeof adminSetPropertyHaltBodySchema>;
|
|
1042
1042
|
export interface AdminSetPropertyHaltResponse {
|
|
1043
1043
|
readonly propertyId: number;
|
|
@@ -1046,7 +1046,7 @@ export interface AdminSetPropertyHaltResponse {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
export declare const adminRetryDepositConversionBodySchema: z.ZodObject<{
|
|
1048
1048
|
walletAddress: z.ZodString;
|
|
1049
|
-
}, z.core.$
|
|
1049
|
+
}, z.core.$strict>;
|
|
1050
1050
|
export type AdminRetryDepositConversionRequestBody = z.infer<typeof adminRetryDepositConversionBodySchema>;
|
|
1051
1051
|
export interface AdminRetryDepositConversionItem {
|
|
1052
1052
|
readonly depositId: number;
|
|
@@ -1067,10 +1067,10 @@ export declare const adminReconcileWalletBodySchema: z.ZodObject<{
|
|
|
1067
1067
|
USDL: "USDL";
|
|
1068
1068
|
PROPERTY: "PROPERTY";
|
|
1069
1069
|
}>>>;
|
|
1070
|
-
maxAbsCorrectionUsdl: z.ZodOptional<z.
|
|
1071
|
-
maxAbsCorrectionPropertyTokens: z.ZodOptional<z.
|
|
1070
|
+
maxAbsCorrectionUsdl: z.ZodOptional<z.ZodInt>;
|
|
1071
|
+
maxAbsCorrectionPropertyTokens: z.ZodOptional<z.ZodInt>;
|
|
1072
1072
|
walletAddress: z.ZodString;
|
|
1073
|
-
}, z.core.$
|
|
1073
|
+
}, z.core.$strict>;
|
|
1074
1074
|
export type AdminReconcileWalletRequestBody = z.infer<typeof adminReconcileWalletBodySchema>;
|
|
1075
1075
|
export declare const adminReconcileSweepBodySchema: z.ZodObject<{
|
|
1076
1076
|
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1078,17 +1078,17 @@ export declare const adminReconcileSweepBodySchema: z.ZodObject<{
|
|
|
1078
1078
|
USDL: "USDL";
|
|
1079
1079
|
PROPERTY: "PROPERTY";
|
|
1080
1080
|
}>>>;
|
|
1081
|
-
maxAbsCorrectionUsdl: z.ZodOptional<z.
|
|
1082
|
-
maxAbsCorrectionPropertyTokens: z.ZodOptional<z.
|
|
1083
|
-
}, z.core.$
|
|
1081
|
+
maxAbsCorrectionUsdl: z.ZodOptional<z.ZodInt>;
|
|
1082
|
+
maxAbsCorrectionPropertyTokens: z.ZodOptional<z.ZodInt>;
|
|
1083
|
+
}, z.core.$strict>;
|
|
1084
1084
|
export type AdminReconcileSweepRequestBody = z.infer<typeof adminReconcileSweepBodySchema>;
|
|
1085
1085
|
export declare const adminUpdateFeeTiersBodySchema: z.ZodObject<{
|
|
1086
1086
|
tiers: z.ZodArray<z.ZodObject<{
|
|
1087
|
-
minVolume14d: z.
|
|
1088
|
-
spotTakerFeeBps: z.
|
|
1089
|
-
spotMakerFeeBps: z.
|
|
1090
|
-
}, z.core.$
|
|
1091
|
-
}, z.core.$
|
|
1087
|
+
minVolume14d: z.ZodInt;
|
|
1088
|
+
spotTakerFeeBps: z.ZodInt;
|
|
1089
|
+
spotMakerFeeBps: z.ZodInt;
|
|
1090
|
+
}, z.core.$strict>>;
|
|
1091
|
+
}, z.core.$strict>;
|
|
1092
1092
|
export type AdminUpdateFeeTiersRequestBody = z.infer<typeof adminUpdateFeeTiersBodySchema>;
|
|
1093
1093
|
export interface FeeVolumeTier {
|
|
1094
1094
|
readonly minVolume14d: number;
|
|
@@ -1114,12 +1114,12 @@ export interface RuntimeSettings {
|
|
|
1114
1114
|
export type RuntimeSettingsOverrides = Partial<RuntimeSettings>;
|
|
1115
1115
|
export declare const runtimeSettingsOverridesSchema: z.ZodObject<{
|
|
1116
1116
|
priceBandEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1117
|
-
priceBandDefaultBps: z.ZodOptional<z.
|
|
1117
|
+
priceBandDefaultBps: z.ZodOptional<z.ZodInt>;
|
|
1118
1118
|
enableTradingFees: z.ZodOptional<z.ZodBoolean>;
|
|
1119
1119
|
enableLimitPriceDeviationCheck: z.ZodOptional<z.ZodBoolean>;
|
|
1120
|
-
maxLimitPriceDeviationBps: z.ZodOptional<z.
|
|
1121
|
-
maxSlippageBps: z.ZodOptional<z.
|
|
1122
|
-
rateLimitMaxRequests: z.ZodOptional<z.
|
|
1120
|
+
maxLimitPriceDeviationBps: z.ZodOptional<z.ZodInt>;
|
|
1121
|
+
maxSlippageBps: z.ZodOptional<z.ZodInt>;
|
|
1122
|
+
rateLimitMaxRequests: z.ZodOptional<z.ZodInt>;
|
|
1123
1123
|
tradingClosedStart: z.ZodOptional<z.ZodString>;
|
|
1124
1124
|
tradingClosedEnd: z.ZodOptional<z.ZodString>;
|
|
1125
1125
|
tradingClosedDays: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -1135,12 +1135,12 @@ export declare const runtimeSettingsOverridesSchema: z.ZodObject<{
|
|
|
1135
1135
|
}, z.core.$strip>;
|
|
1136
1136
|
export declare const adminUpdateRuntimeSettingsBodySchema: z.ZodObject<{
|
|
1137
1137
|
priceBandEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1138
|
-
priceBandDefaultBps: z.ZodOptional<z.ZodNullable<z.
|
|
1138
|
+
priceBandDefaultBps: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1139
1139
|
enableTradingFees: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1140
1140
|
enableLimitPriceDeviationCheck: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1141
|
-
maxLimitPriceDeviationBps: z.ZodOptional<z.ZodNullable<z.
|
|
1142
|
-
maxSlippageBps: z.ZodOptional<z.ZodNullable<z.
|
|
1143
|
-
rateLimitMaxRequests: z.ZodOptional<z.ZodNullable<z.
|
|
1141
|
+
maxLimitPriceDeviationBps: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1142
|
+
maxSlippageBps: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1143
|
+
rateLimitMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1144
1144
|
tradingClosedStart: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1145
1145
|
tradingClosedEnd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1146
1146
|
tradingClosedDays: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
@@ -1153,7 +1153,7 @@ export declare const adminUpdateRuntimeSettingsBodySchema: z.ZodObject<{
|
|
|
1153
1153
|
Sunday: "Sunday";
|
|
1154
1154
|
}>>>>;
|
|
1155
1155
|
tradingHalted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1156
|
-
}, z.core.$
|
|
1156
|
+
}, z.core.$strict>;
|
|
1157
1157
|
export type AdminUpdateRuntimeSettingsRequestBody = z.infer<typeof adminUpdateRuntimeSettingsBodySchema>;
|
|
1158
1158
|
export interface AdminRuntimeSettingsResponse {
|
|
1159
1159
|
readonly effective: RuntimeSettings;
|
|
@@ -1162,16 +1162,25 @@ export interface AdminRuntimeSettingsResponse {
|
|
|
1162
1162
|
}
|
|
1163
1163
|
export declare const adminSetTradingHaltBodySchema: z.ZodObject<{
|
|
1164
1164
|
halted: z.ZodBoolean;
|
|
1165
|
-
}, z.core.$
|
|
1165
|
+
}, z.core.$strict>;
|
|
1166
1166
|
export type AdminSetTradingHaltRequestBody = z.infer<typeof adminSetTradingHaltBodySchema>;
|
|
1167
1167
|
export interface AdminTradingHaltResponse {
|
|
1168
1168
|
readonly halted: boolean;
|
|
1169
1169
|
readonly overridden: boolean;
|
|
1170
1170
|
}
|
|
1171
|
+
export declare const adminUpdatePrivateClientBodySchema: z.ZodObject<{
|
|
1172
|
+
walletAddress: z.ZodString;
|
|
1173
|
+
isPrivateClient: z.ZodBoolean;
|
|
1174
|
+
}, z.core.$strict>;
|
|
1175
|
+
export type AdminUpdatePrivateClientRequestBody = z.infer<typeof adminUpdatePrivateClientBodySchema>;
|
|
1176
|
+
export declare const adminSyncIpoAllocationBodySchema: z.ZodObject<{
|
|
1177
|
+
ipoId: z.ZodInt;
|
|
1178
|
+
}, z.core.$strict>;
|
|
1179
|
+
export type AdminSyncIpoAllocationRequestBody = z.infer<typeof adminSyncIpoAllocationBodySchema>;
|
|
1171
1180
|
export declare const createApiKeyBodySchema: z.ZodObject<{
|
|
1172
1181
|
description: z.ZodOptional<z.ZodString>;
|
|
1173
|
-
expiresInDays: z.ZodDefault<z.
|
|
1174
|
-
}, z.core.$
|
|
1182
|
+
expiresInDays: z.ZodDefault<z.ZodInt>;
|
|
1183
|
+
}, z.core.$strict>;
|
|
1175
1184
|
export type CreateApiKeyRequestBody = z.infer<typeof createApiKeyBodySchema>;
|
|
1176
1185
|
export declare const revokeApiKeyParamsSchema: z.ZodObject<{
|
|
1177
1186
|
id: z.ZodCoercedNumber<unknown>;
|
|
@@ -1198,11 +1207,11 @@ export interface RevokeApiKeyResponse {
|
|
|
1198
1207
|
readonly success: true;
|
|
1199
1208
|
}
|
|
1200
1209
|
export declare const adminPreviewDistributionBodySchema: z.ZodObject<{
|
|
1201
|
-
propertyId: z.
|
|
1202
|
-
periodStart: z.
|
|
1203
|
-
periodEnd: z.
|
|
1210
|
+
propertyId: z.ZodInt;
|
|
1211
|
+
periodStart: z.ZodISODate;
|
|
1212
|
+
periodEnd: z.ZodISODate;
|
|
1204
1213
|
totalAmount: z.ZodNumber;
|
|
1205
|
-
}, z.core.$
|
|
1214
|
+
}, z.core.$strict>;
|
|
1206
1215
|
export type AdminPreviewDistributionRequestBody = z.infer<typeof adminPreviewDistributionBodySchema>;
|
|
1207
1216
|
export interface AdminPreviewDistributionHolder {
|
|
1208
1217
|
readonly walletAddress: string;
|
|
@@ -1217,11 +1226,11 @@ export interface AdminPreviewDistributionResponse {
|
|
|
1217
1226
|
readonly holders: readonly AdminPreviewDistributionHolder[];
|
|
1218
1227
|
}
|
|
1219
1228
|
export declare const adminExecuteDistributionBodySchema: z.ZodObject<{
|
|
1220
|
-
propertyId: z.
|
|
1221
|
-
periodStart: z.
|
|
1222
|
-
periodEnd: z.
|
|
1229
|
+
propertyId: z.ZodInt;
|
|
1230
|
+
periodStart: z.ZodISODate;
|
|
1231
|
+
periodEnd: z.ZodISODate;
|
|
1223
1232
|
totalAmount: z.ZodNumber;
|
|
1224
|
-
}, z.core.$
|
|
1233
|
+
}, z.core.$strict>;
|
|
1225
1234
|
export type AdminExecuteDistributionRequestBody = z.infer<typeof adminExecuteDistributionBodySchema>;
|
|
1226
1235
|
export interface AdminExecuteDistributionResponse {
|
|
1227
1236
|
readonly rentalDistributionId: number;
|
|
@@ -1253,9 +1262,9 @@ export interface AdminGetDistributionResponse {
|
|
|
1253
1262
|
readonly amountUnclaimed: number;
|
|
1254
1263
|
}
|
|
1255
1264
|
export declare const adminReclaimDistributionBodySchema: z.ZodObject<{
|
|
1256
|
-
rentalDistributionId: z.
|
|
1265
|
+
rentalDistributionId: z.ZodInt;
|
|
1257
1266
|
amount: z.ZodNumber;
|
|
1258
|
-
}, z.core.$
|
|
1267
|
+
}, z.core.$strict>;
|
|
1259
1268
|
export type AdminReclaimDistributionRequestBody = z.infer<typeof adminReclaimDistributionBodySchema>;
|
|
1260
1269
|
export interface AdminReclaimDistributionResponse {
|
|
1261
1270
|
readonly txHash: string;
|
|
@@ -1284,12 +1293,12 @@ export interface ClaimYieldResponse {
|
|
|
1284
1293
|
export declare const volumeMultiplierTierSchema: z.ZodObject<{
|
|
1285
1294
|
minVolume: z.ZodNumber;
|
|
1286
1295
|
multiplier: z.ZodNumber;
|
|
1287
|
-
}, z.core.$
|
|
1296
|
+
}, z.core.$strict>;
|
|
1288
1297
|
export type VolumeMultiplierTier = z.infer<typeof volumeMultiplierTierSchema>;
|
|
1289
1298
|
export declare const volumeMultiplierTiersSchema: z.ZodArray<z.ZodObject<{
|
|
1290
1299
|
minVolume: z.ZodNumber;
|
|
1291
1300
|
multiplier: z.ZodNumber;
|
|
1292
|
-
}, z.core.$
|
|
1301
|
+
}, z.core.$strict>>;
|
|
1293
1302
|
export type CompetitionRoundStatus = 'DRAFT' | 'PENDING' | 'PREPARED' | 'ACTIVE' | 'ENDING' | 'ENDED';
|
|
1294
1303
|
/**
|
|
1295
1304
|
* One prize-pool entry: how much the participant finishing at `place` receives
|
|
@@ -1297,40 +1306,40 @@ export type CompetitionRoundStatus = 'DRAFT' | 'PENDING' | 'PREPARED' | 'ACTIVE'
|
|
|
1297
1306
|
* display — the backend stores it verbatim and does NOT distribute prizes.
|
|
1298
1307
|
*/
|
|
1299
1308
|
export declare const prizePoolEntrySchema: z.ZodObject<{
|
|
1300
|
-
place: z.
|
|
1309
|
+
place: z.ZodInt;
|
|
1301
1310
|
amount: z.ZodNumber;
|
|
1302
|
-
}, z.core.$
|
|
1311
|
+
}, z.core.$strict>;
|
|
1303
1312
|
export type PrizePoolEntry = z.infer<typeof prizePoolEntrySchema>;
|
|
1304
1313
|
export declare const prizePoolSchema: z.ZodArray<z.ZodObject<{
|
|
1305
|
-
place: z.
|
|
1314
|
+
place: z.ZodInt;
|
|
1306
1315
|
amount: z.ZodNumber;
|
|
1307
|
-
}, z.core.$
|
|
1316
|
+
}, z.core.$strict>>;
|
|
1308
1317
|
/**
|
|
1309
1318
|
* Body for CREATING a competition round. The round is persisted in DRAFT
|
|
1310
1319
|
*/
|
|
1311
1320
|
export declare const adminCreateCompetitionRoundBodySchema: z.ZodObject<{
|
|
1312
1321
|
roundName: z.ZodString;
|
|
1313
1322
|
roundRules: z.ZodOptional<z.ZodString>;
|
|
1314
|
-
startsAt: z.ZodOptional<z.
|
|
1315
|
-
endsAt: z.ZodOptional<z.
|
|
1316
|
-
startingBalanceUsdl: z.
|
|
1317
|
-
participantBatchSize: z.
|
|
1318
|
-
priorityBoostPlaces: z.
|
|
1319
|
-
maxBoostsPerUser: z.
|
|
1320
|
-
maxRewardedReferrals: z.
|
|
1321
|
-
perReferralUsdlReward: z.
|
|
1323
|
+
startsAt: z.ZodOptional<z.ZodInt>;
|
|
1324
|
+
endsAt: z.ZodOptional<z.ZodInt>;
|
|
1325
|
+
startingBalanceUsdl: z.ZodInt;
|
|
1326
|
+
participantBatchSize: z.ZodInt;
|
|
1327
|
+
priorityBoostPlaces: z.ZodInt;
|
|
1328
|
+
maxBoostsPerUser: z.ZodInt;
|
|
1329
|
+
maxRewardedReferrals: z.ZodInt;
|
|
1330
|
+
perReferralUsdlReward: z.ZodInt;
|
|
1322
1331
|
volumeMultiplierTiers: z.ZodArray<z.ZodObject<{
|
|
1323
1332
|
minVolume: z.ZodNumber;
|
|
1324
1333
|
multiplier: z.ZodNumber;
|
|
1325
|
-
}, z.core.$
|
|
1334
|
+
}, z.core.$strict>>;
|
|
1326
1335
|
pnlMultiplier: z.ZodNumber;
|
|
1327
|
-
bottomCullPercent: z.ZodOptional<z.
|
|
1336
|
+
bottomCullPercent: z.ZodOptional<z.ZodInt>;
|
|
1328
1337
|
prizePool: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1329
|
-
place: z.
|
|
1338
|
+
place: z.ZodInt;
|
|
1330
1339
|
amount: z.ZodNumber;
|
|
1331
|
-
}, z.core.$
|
|
1332
|
-
newAssetPropertyId: z.ZodOptional<z.ZodNullable<z.
|
|
1333
|
-
}, z.core.$
|
|
1340
|
+
}, z.core.$strict>>>;
|
|
1341
|
+
newAssetPropertyId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1342
|
+
}, z.core.$strict>;
|
|
1334
1343
|
export type AdminCreateCompetitionRoundRequestBody = z.infer<typeof adminCreateCompetitionRoundBodySchema>;
|
|
1335
1344
|
/** Path param schema for round-scoped admin routes (`:roundId`). */
|
|
1336
1345
|
export declare const competitionRoundParamsSchema: z.ZodObject<{
|
|
@@ -1417,12 +1426,12 @@ export interface QueuePositionResponse {
|
|
|
1417
1426
|
* where their prize money should be sent. Provide EXACTLY ONE of:
|
|
1418
1427
|
* - `walletAddress` — an on-chain address, or
|
|
1419
1428
|
* - `email` — a contact email.
|
|
1420
|
-
*
|
|
1429
|
+
* Accepted ONCE per round: a second submission is rejected with 409.
|
|
1421
1430
|
*/
|
|
1422
1431
|
export declare const competitionPayoutDetailsBodySchema: z.ZodObject<{
|
|
1423
1432
|
walletAddress: z.ZodOptional<z.ZodString>;
|
|
1424
1433
|
email: z.ZodOptional<z.ZodEmail>;
|
|
1425
|
-
}, z.core.$
|
|
1434
|
+
}, z.core.$strict>;
|
|
1426
1435
|
export type CompetitionPayoutDetailsRequestBody = z.infer<typeof competitionPayoutDetailsBodySchema>;
|
|
1427
1436
|
/** Which destination a winner nominated. */
|
|
1428
1437
|
export type CompetitionPayoutType = 'WALLET' | 'EMAIL';
|
|
@@ -1434,7 +1443,12 @@ export interface CompetitionPayoutSubmission {
|
|
|
1434
1443
|
readonly submittedAt: number;
|
|
1435
1444
|
}
|
|
1436
1445
|
/**
|
|
1437
|
-
* Response for POST /api/competition/payout-details
|
|
1446
|
+
* Response for POST and GET /api/competition/payout-details.
|
|
1447
|
+
*
|
|
1448
|
+
* GET is the read-only "have I claimed yet?" check: `submission` non-null means the
|
|
1449
|
+
* prize is ALREADY claimed and a further POST will 409; null means still claimable.
|
|
1450
|
+
* Not being a winner (or no round having ended) is answered as a 200 with
|
|
1451
|
+
* `eligible: false`, not an error.
|
|
1438
1452
|
*/
|
|
1439
1453
|
export interface CompetitionPayoutDetailsResponse {
|
|
1440
1454
|
readonly eligible: boolean;
|