@loafmarkets/shared-types 1.0.195 → 2.0.0

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 CHANGED
@@ -16,8 +16,17 @@ export type WholesaleCriteria = 'NET_ASSETS' | 'GROSS_INCOME' | 'PROFESSIONAL_IN
16
16
  export type UnixTimestamp = number;
17
17
  export declare const ORDER_QUANTITY_MAX_DECIMALS: 1;
18
18
  export declare const ORDER_PRICE_MAX_DECIMALS: 2;
19
+ export declare const PG_INT_MAX: 2147483647;
20
+ export declare const ORDER_PRICE_MAX: 1000000000;
21
+ export declare const ORDER_QUANTITY_MAX: 1000000000;
22
+ export declare const ORDER_DEADLINE_MAX: 4102444800;
23
+ export declare const MAX_VALUATION_USD: 1000000000000;
19
24
  export declare const MAX_PRIZE_PLACES: 10;
25
+ export declare const MAX_SHORT_TEXT: 200;
26
+ export declare const MAX_ARRAY_ITEMS: 100;
27
+ export declare const ethAddressSchema: z.ZodString;
20
28
  export declare const tokenNameSchema: z.ZodString;
29
+ export declare function hasExcessDecimals(value: number, maxDecimals: number): boolean;
21
30
  export declare const orderBodySchema: z.ZodObject<{
22
31
  tokenName: z.ZodString;
23
32
  price: z.ZodNumber;
@@ -185,6 +194,8 @@ export declare const authPrivyTokenBodySchema: z.ZodObject<{
185
194
  privyToken: z.ZodString;
186
195
  }, z.core.$strict>;
187
196
  export type AuthPrivyTokenRequestBody = z.infer<typeof authPrivyTokenBodySchema>;
197
+ export declare const referralCodeRegex: RegExp;
198
+ export declare const referralCodeMessage = "Referral code may only contain letters, numbers, underscores, and dashes";
188
199
  export declare const authSignupBodySchema: z.ZodObject<{
189
200
  privyToken: z.ZodString;
190
201
  handle: z.ZodOptional<z.ZodString>;
@@ -203,17 +214,6 @@ export interface ReferralValidateResponse {
203
214
  readonly valid: boolean;
204
215
  readonly refereeBoostPlaces: number;
205
216
  }
206
- export declare const adminCreateReferralCodeSchema: z.ZodObject<{
207
- ownerUserId: z.ZodOptional<z.ZodInt>;
208
- maxUses: z.ZodInt;
209
- code: z.ZodOptional<z.ZodString>;
210
- }, z.core.$strict>;
211
- export type AdminCreateReferralCodeRequestBody = z.infer<typeof adminCreateReferralCodeSchema>;
212
- export declare const adminSetRefereeBoostSchema: z.ZodObject<{
213
- code: z.ZodString;
214
- refereeBoostPlaces: z.ZodInt;
215
- }, z.core.$strict>;
216
- export type AdminSetRefereeBoostRequestBody = z.infer<typeof adminSetRefereeBoostSchema>;
217
217
  export declare const authCheckAccountBodySchema: z.ZodObject<{
218
218
  email: z.ZodOptional<z.ZodEmail>;
219
219
  walletAddress: z.ZodOptional<z.ZodString>;
@@ -231,6 +231,7 @@ export interface KycTokenResponse {
231
231
  readonly token: string;
232
232
  readonly userId: string;
233
233
  }
234
+ export declare const wholesaleCriteriaValues: readonly ["NET_ASSETS", "GROSS_INCOME", "PROFESSIONAL_INVESTOR", "LARGE_BUSINESS", "S761GA_EXPERIENCED"];
234
235
  export interface WholesaleUploadUrlResponse {
235
236
  readonly uploadUrl: string;
236
237
  readonly documentKey: string;
@@ -255,46 +256,6 @@ export interface WholesaleApplicationResponse {
255
256
  readonly reviewedAt: number | null;
256
257
  readonly adminNotes: string | null;
257
258
  }
258
- export declare const adminWholesaleApplicationsQuerySchema: z.ZodObject<{
259
- id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
260
- userId: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
261
- handle: z.ZodOptional<z.ZodString>;
262
- walletAddress: z.ZodOptional<z.ZodString>;
263
- criteriaType: z.ZodOptional<z.ZodEnum<{
264
- NET_ASSETS: "NET_ASSETS";
265
- GROSS_INCOME: "GROSS_INCOME";
266
- PROFESSIONAL_INVESTOR: "PROFESSIONAL_INVESTOR";
267
- LARGE_BUSINESS: "LARGE_BUSINESS";
268
- S761GA_EXPERIENCED: "S761GA_EXPERIENCED";
269
- }>>;
270
- status: z.ZodOptional<z.ZodEnum<{
271
- REJECTED: "REJECTED";
272
- VERIFIED: "VERIFIED";
273
- SUBMITTED: "SUBMITTED";
274
- }>>;
275
- }, z.core.$strip>;
276
- export type AdminWholesaleApplicationsQuery = z.infer<typeof adminWholesaleApplicationsQuerySchema>;
277
- export interface AdminWholesaleApplicationItem {
278
- readonly applicationId: number;
279
- readonly userId: number;
280
- readonly handle: string | null;
281
- readonly walletAddress: string;
282
- readonly criteriaType: WholesaleCriteria;
283
- readonly documentUrl: string;
284
- readonly status: WholesaleStatus;
285
- readonly submittedAt: number;
286
- readonly reviewedAt: number | null;
287
- readonly adminNotes: string | null;
288
- }
289
- export declare const adminReviewWholesaleSchema: z.ZodObject<{
290
- applicationId: z.ZodInt;
291
- decision: z.ZodEnum<{
292
- REJECTED: "REJECTED";
293
- VERIFIED: "VERIFIED";
294
- }>;
295
- adminNotes: z.ZodOptional<z.ZodString>;
296
- }, z.core.$strict>;
297
- export type AdminReviewWholesaleBody = z.infer<typeof adminReviewWholesaleSchema>;
298
259
  export interface RampResponse {
299
260
  readonly widgetUrl: string;
300
261
  }
@@ -866,288 +827,11 @@ export interface AuthResultMessage extends BaseWebSocketMessage {
866
827
  userId?: number;
867
828
  }
868
829
  export type WebSocketMessage = ConnectionMessage | EchoMessage | TestMessage | ErrorMessage | OrderbookUpdateMessage | OrderStatusMessage | CandleUpdateMessage | TradesBatchMessage | PositionUpdateMessage | BalancesUpdateMessage | OrderUpdateMessage | TradeNewMessage | LifetimeVolumeUpdateMessage | TransferUpdateMessage | OfferingOrderUpdateMessage | MarkPriceMessage | LeaderboardUpdateMessage | VolumeUpdateMessage | PropertyHaltMessage | AuthMessage | AuthResultMessage | SubscribeMessage | UnsubscribeMessage | IpoAllocationUpdateMessage | SubscriptionConfirmMessage;
869
- export declare const adminCreatePropertyBodySchema: z.ZodObject<{
870
- tokenName: z.ZodString;
871
- ticker: z.ZodString;
872
- assetName: z.ZodString;
873
- totalTokens: z.ZodInt;
874
- tokensIssued: z.ZodInt;
875
- tradingStartsAt: z.ZodInt;
876
- rentalYieldPercentage: z.ZodNumber;
877
- growth5Yr: z.ZodNumber;
878
- isCompetition: z.ZodOptional<z.ZodBoolean>;
879
- description: z.ZodString;
880
- weeklyRent: z.ZodNumber;
881
- headerImageUrl: z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>;
882
- ownership: z.ZodEnum<{
883
- FREEHOLD: "FREEHOLD";
884
- LEASEHOLD: "LEASEHOLD";
885
- PUBLIC: "PUBLIC";
886
- PRIVATE: "PRIVATE";
887
- }>;
888
- garden: z.ZodBoolean;
889
- gym: z.ZodBoolean;
890
- zoning: z.ZodString;
891
- levels: z.ZodInt;
892
- daStatus: z.ZodString;
893
- heritageStatus: z.ZodString;
894
- developmentOptionality: z.ZodString;
895
- suburbMedian: z.ZodInt;
896
- propertyHistory: z.ZodArray<z.ZodObject<{
897
- year: z.ZodInt;
898
- event: z.ZodString;
899
- amount: z.ZodNullable<z.ZodNumber>;
900
- }, z.core.$strict>>;
901
- documents: z.ZodArray<z.ZodObject<{
902
- title: z.ZodString;
903
- documentUrl: z.ZodURL;
904
- }, z.core.$strict>>;
905
- images: z.ZodArray<z.ZodObject<{
906
- imageUrl: z.ZodURL;
907
- title: z.ZodString;
908
- subtitle: z.ZodString;
909
- }, z.core.$strict>>;
910
- advisorImages: z.ZodArray<z.ZodURL>;
911
- videoUrl: z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>;
912
- streetAddress: z.ZodString;
913
- suburb: z.ZodString;
914
- state: z.ZodString;
915
- postcode: z.ZodString;
916
- country: z.ZodString;
917
- latitude: z.ZodNumber;
918
- longitude: z.ZodNumber;
919
- propertyType: z.ZodString;
920
- bedrooms: z.ZodInt;
921
- bathrooms: z.ZodInt;
922
- carSpaces: z.ZodInt;
923
- garageSpaces: z.ZodInt;
924
- landSizeSqm: z.ZodNumber;
925
- buildingSizeSqm: z.ZodNumber;
926
- yearBuilt: z.ZodInt;
927
- swimmingPool: z.ZodBoolean;
928
- tennisCourt: z.ZodBoolean;
929
- }, z.core.$strict>;
930
- export type AdminCreatePropertyRequestBody = z.infer<typeof adminCreatePropertyBodySchema>;
931
- export interface AdminCreatePropertyResponse {
932
- readonly propertyId: number;
933
- }
934
- export declare const adminCreateIpoBodySchema: z.ZodObject<{
935
- propertyId: z.ZodInt;
936
- tokenPriceUsdl: z.ZodNumber;
937
- supplyToSell: z.ZodNumber;
938
- offeringValuation: z.ZodNumber;
939
- feeBps: z.ZodInt;
940
- contractStartTime: z.ZodInt;
941
- publicStartTime: z.ZodInt;
942
- endTime: z.ZodInt;
943
- }, z.core.$strict>;
944
- export type AdminCreateIpoRequestBody = z.infer<typeof adminCreateIpoBodySchema>;
945
- export interface AdminCreateIpoResponse {
946
- readonly ipoId: number;
947
- readonly propertyId: number;
948
- }
949
- export declare const adminDeployPropertyTokenBodySchema: z.ZodObject<{
950
- propertyId: z.ZodInt;
951
- transferTo: z.ZodOptional<z.ZodString>;
952
- transferAmount: z.ZodDefault<z.ZodNumber>;
953
- }, z.core.$strict>;
954
- export type AdminDeployPropertyTokenRequestBody = z.infer<typeof adminDeployPropertyTokenBodySchema>;
955
- export interface AdminDeployPropertyTokenResponse {
956
- readonly tokenAddress: string;
957
- readonly transactionHash: string;
958
- readonly transferTxHash: string | null;
959
- readonly propertyId: number;
960
- }
961
- export declare const adminMintPropertyTokenBodySchema: z.ZodObject<{
962
- propertyId: z.ZodInt;
963
- walletAddress: z.ZodString;
964
- amount: z.ZodNumber;
965
- entryPriceUsdl: z.ZodNumber;
966
- }, z.core.$strict>;
967
- export type AdminMintPropertyTokenRequestBody = z.infer<typeof adminMintPropertyTokenBodySchema>;
968
- export interface AdminMintPropertyTokenResponse {
969
- readonly tokenAddress: string;
970
- readonly transactionHash: string;
971
- readonly propertyId: number;
972
- readonly userId: number;
973
- readonly walletAddress: string;
974
- readonly amount: number;
975
- readonly newQuantity: number;
976
- readonly averageEntryPrice: number;
977
- }
978
- export declare const adminMintPaymentTokenBodySchema: z.ZodObject<{
979
- walletAddress: z.ZodString;
980
- amount: z.ZodNumber;
981
- }, z.core.$strict>;
982
- export type AdminMintPaymentTokenRequestBody = z.infer<typeof adminMintPaymentTokenBodySchema>;
983
- export interface AdminMintPaymentTokenResponse {
984
- readonly tokenAddress: string;
985
- readonly walletAddress: string;
986
- readonly userId: number;
987
- readonly amount: number;
988
- readonly txHash: string;
989
- }
990
- export declare const ADMIN_BATCH_MINT_MAX_RECIPIENTS: 250;
991
- export declare const adminBatchMintPaymentTokenBodySchema: z.ZodObject<{
992
- mints: z.ZodArray<z.ZodObject<{
993
- walletAddress: z.ZodString;
994
- amount: z.ZodNumber;
995
- }, z.core.$strict>>;
996
- }, z.core.$strict>;
997
- export type AdminBatchMintPaymentTokenRequestBody = z.infer<typeof adminBatchMintPaymentTokenBodySchema>;
998
- /**
999
- * Per-recipient outcome
1000
- */
1001
- export interface AdminBatchMintPaymentTokenResult {
1002
- readonly walletAddress: string;
1003
- readonly userId: number;
1004
- readonly amount: number;
1005
- readonly credited: boolean;
1006
- readonly error: string | null;
1007
- }
1008
- export interface AdminBatchMintPaymentTokenResponse {
1009
- readonly tokenAddress: string;
1010
- readonly txHash: string;
1011
- readonly recipientCount: number;
1012
- readonly totalAmount: number;
1013
- readonly creditedCount: number;
1014
- readonly failedCount: number;
1015
- readonly results: readonly AdminBatchMintPaymentTokenResult[];
1016
- }
1017
- export declare const adminDeploySaleBodySchema: z.ZodObject<{
1018
- ipoId: z.ZodInt;
1019
- maxPerWallet: z.ZodNumber;
1020
- fundsRecipient: z.ZodString;
1021
- }, z.core.$strict>;
1022
- export type AdminDeploySaleRequestBody = z.infer<typeof adminDeploySaleBodySchema>;
1023
- export interface AdminDeploySaleResponse {
1024
- readonly saleId: string;
1025
- readonly saleAddress: string;
1026
- readonly transactionHash: string;
1027
- readonly ipoId: number;
1028
- readonly propertyId: number;
1029
- }
1030
- export declare const adminSetSaleStatusBodySchema: z.ZodObject<{
1031
- ipoId: z.ZodInt;
1032
- newStatus: z.ZodInt;
1033
- }, z.core.$strict>;
1034
- export type AdminSetSaleStatusRequestBody = z.infer<typeof adminSetSaleStatusBodySchema>;
1035
- export interface AdminSetSaleStatusResponse {
1036
- readonly transactionHash: string;
1037
- readonly oldStatus: number;
1038
- readonly newStatus: number;
1039
- readonly ipoId: number;
1040
- }
1041
- export declare const adminUpdateIpoParamsSchema: z.ZodObject<{
1042
- ipoId: z.ZodCoercedNumber<unknown>;
1043
- }, z.core.$strip>;
1044
- export type AdminUpdateIpoRequestParams = z.infer<typeof adminUpdateIpoParamsSchema>;
1045
- export declare const adminUpdateIpoBodySchema: z.ZodObject<{
1046
- status: z.ZodOptional<z.ZodEnum<{
1047
- CANCELLED: "CANCELLED";
1048
- PENDING: "PENDING";
1049
- LIVE: "LIVE";
1050
- CLOSED: "CLOSED";
1051
- }>>;
1052
- }, z.core.$strict>;
1053
- export type AdminUpdateIpoRequestBody = z.infer<typeof adminUpdateIpoBodySchema>;
1054
- export interface AdminUpdateIpoResponse {
1055
- readonly ipoId: number;
1056
- readonly propertyId: number;
1057
- readonly status: IpoStatus;
1058
- }
1059
- export declare const adminGraduateSaleBodySchema: z.ZodObject<{
1060
- ipoId: z.ZodInt;
1061
- useBatchMigration: z.ZodDefault<z.ZodBoolean>;
1062
- batchSize: z.ZodDefault<z.ZodInt>;
1063
- }, z.core.$strict>;
1064
- export type AdminGraduateSaleRequestBody = z.infer<typeof adminGraduateSaleBodySchema>;
1065
- export interface AdminGraduateSaleResponse {
1066
- readonly migrationComplete: boolean;
1067
- readonly ipoId: number;
1068
- readonly propertyId: number;
1069
- }
1070
- export declare const adminSetPropertyStatusBodySchema: z.ZodObject<{
1071
- propertyId: z.ZodInt;
1072
- newStatus: z.ZodEnum<{
1073
- PENDING: "PENDING";
1074
- LIVE: "LIVE";
1075
- DELISTED: "DELISTED";
1076
- }>;
1077
- }, z.core.$strict>;
1078
- export type AdminSetPropertyStatusRequestBody = z.infer<typeof adminSetPropertyStatusBodySchema>;
1079
- export interface AdminSetPropertyStatusResponse {
1080
- readonly propertyId: number;
1081
- readonly oldStatus: PropertyStatus;
1082
- readonly newStatus: PropertyStatus;
1083
- }
1084
- export declare const adminSetPropertyHaltBodySchema: z.ZodObject<{
1085
- propertyId: z.ZodInt;
1086
- status: z.ZodEnum<{
1087
- HALTED: "HALTED";
1088
- ACTIVE: "ACTIVE";
1089
- }>;
1090
- }, z.core.$strict>;
1091
- export type AdminSetPropertyHaltRequestBody = z.infer<typeof adminSetPropertyHaltBodySchema>;
1092
- export interface AdminSetPropertyHaltResponse {
1093
- readonly propertyId: number;
1094
- readonly status: 'HALTED' | 'ACTIVE';
1095
- readonly noChange: boolean;
1096
- }
1097
- export declare const adminRetryDepositConversionBodySchema: z.ZodObject<{
1098
- walletAddress: z.ZodString;
1099
- }, z.core.$strict>;
1100
- export type AdminRetryDepositConversionRequestBody = z.infer<typeof adminRetryDepositConversionBodySchema>;
1101
- export interface AdminRetryDepositConversionItem {
1102
- readonly depositId: number;
1103
- readonly amount: number;
1104
- readonly blockchainTxHash: string;
1105
- readonly status: 'CONFIRMED' | 'REJECTED';
1106
- readonly conversionTxHash: string | null;
1107
- readonly errorMessage: string | null;
1108
- }
1109
- export interface AdminRetryDepositConversionResponse {
1110
- readonly walletAddress: string;
1111
- readonly userId: number;
1112
- readonly results: readonly AdminRetryDepositConversionItem[];
1113
- }
1114
- export declare const adminReconcileWalletBodySchema: z.ZodObject<{
1115
- dryRun: z.ZodOptional<z.ZodBoolean>;
1116
- assets: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1117
- USDL: "USDL";
1118
- PROPERTY: "PROPERTY";
1119
- }>>>;
1120
- maxAbsCorrectionUsdl: z.ZodOptional<z.ZodInt>;
1121
- maxAbsCorrectionPropertyTokens: z.ZodOptional<z.ZodInt>;
1122
- walletAddress: z.ZodString;
1123
- }, z.core.$strict>;
1124
- export type AdminReconcileWalletRequestBody = z.infer<typeof adminReconcileWalletBodySchema>;
1125
- export declare const adminReconcileSweepBodySchema: z.ZodObject<{
1126
- dryRun: z.ZodOptional<z.ZodBoolean>;
1127
- assets: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1128
- USDL: "USDL";
1129
- PROPERTY: "PROPERTY";
1130
- }>>>;
1131
- maxAbsCorrectionUsdl: z.ZodOptional<z.ZodInt>;
1132
- maxAbsCorrectionPropertyTokens: z.ZodOptional<z.ZodInt>;
1133
- }, z.core.$strict>;
1134
- export type AdminReconcileSweepRequestBody = z.infer<typeof adminReconcileSweepBodySchema>;
1135
- export declare const adminUpdateFeeTiersBodySchema: z.ZodObject<{
1136
- tiers: z.ZodArray<z.ZodObject<{
1137
- minVolume14d: z.ZodInt;
1138
- spotTakerFeeBps: z.ZodInt;
1139
- spotMakerFeeBps: z.ZodInt;
1140
- }, z.core.$strict>>;
1141
- }, z.core.$strict>;
1142
- export type AdminUpdateFeeTiersRequestBody = z.infer<typeof adminUpdateFeeTiersBodySchema>;
1143
830
  export interface FeeVolumeTier {
1144
831
  readonly minVolume14d: number;
1145
832
  readonly spotTakerFeeBps: number;
1146
833
  readonly spotMakerFeeBps: number;
1147
834
  }
1148
- export interface AdminUpdateFeeTiersResponse {
1149
- readonly tiers: readonly FeeVolumeTier[];
1150
- }
1151
835
  export interface RuntimeSettings {
1152
836
  readonly priceBandEnabled: boolean;
1153
837
  readonly priceBandDefaultBps: number;
@@ -1162,6 +846,27 @@ export interface RuntimeSettings {
1162
846
  readonly tradingHalted: boolean;
1163
847
  }
1164
848
  export type RuntimeSettingsOverrides = Partial<RuntimeSettings>;
849
+ export declare const runtimeSettingValueSchemas: {
850
+ readonly priceBandEnabled: z.ZodBoolean;
851
+ readonly priceBandDefaultBps: z.ZodInt;
852
+ readonly enableTradingFees: z.ZodBoolean;
853
+ readonly enableLimitPriceDeviationCheck: z.ZodBoolean;
854
+ readonly maxLimitPriceDeviationBps: z.ZodInt;
855
+ readonly maxSlippageBps: z.ZodInt;
856
+ readonly rateLimitMaxRequests: z.ZodInt;
857
+ readonly tradingClosedStart: z.ZodString;
858
+ readonly tradingClosedEnd: z.ZodString;
859
+ readonly tradingClosedDays: z.ZodArray<z.ZodEnum<{
860
+ Monday: "Monday";
861
+ Tuesday: "Tuesday";
862
+ Wednesday: "Wednesday";
863
+ Thursday: "Thursday";
864
+ Friday: "Friday";
865
+ Saturday: "Saturday";
866
+ Sunday: "Sunday";
867
+ }>>;
868
+ readonly tradingHalted: z.ZodBoolean;
869
+ };
1165
870
  export declare const runtimeSettingsOverridesSchema: z.ZodObject<{
1166
871
  priceBandEnabled: z.ZodOptional<z.ZodBoolean>;
1167
872
  priceBandDefaultBps: z.ZodOptional<z.ZodInt>;
@@ -1183,50 +888,6 @@ export declare const runtimeSettingsOverridesSchema: z.ZodObject<{
1183
888
  }>>>;
1184
889
  tradingHalted: z.ZodOptional<z.ZodBoolean>;
1185
890
  }, z.core.$strip>;
1186
- export declare const adminUpdateRuntimeSettingsBodySchema: z.ZodObject<{
1187
- priceBandEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1188
- priceBandDefaultBps: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1189
- enableTradingFees: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1190
- enableLimitPriceDeviationCheck: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1191
- maxLimitPriceDeviationBps: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1192
- maxSlippageBps: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1193
- rateLimitMaxRequests: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1194
- tradingClosedStart: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1195
- tradingClosedEnd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1196
- tradingClosedDays: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
1197
- Monday: "Monday";
1198
- Tuesday: "Tuesday";
1199
- Wednesday: "Wednesday";
1200
- Thursday: "Thursday";
1201
- Friday: "Friday";
1202
- Saturday: "Saturday";
1203
- Sunday: "Sunday";
1204
- }>>>>;
1205
- tradingHalted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1206
- }, z.core.$strict>;
1207
- export type AdminUpdateRuntimeSettingsRequestBody = z.infer<typeof adminUpdateRuntimeSettingsBodySchema>;
1208
- export interface AdminRuntimeSettingsResponse {
1209
- readonly effective: RuntimeSettings;
1210
- readonly overrides: RuntimeSettingsOverrides;
1211
- readonly defaults: RuntimeSettings;
1212
- }
1213
- export declare const adminSetTradingHaltBodySchema: z.ZodObject<{
1214
- halted: z.ZodBoolean;
1215
- }, z.core.$strict>;
1216
- export type AdminSetTradingHaltRequestBody = z.infer<typeof adminSetTradingHaltBodySchema>;
1217
- export interface AdminTradingHaltResponse {
1218
- readonly halted: boolean;
1219
- readonly overridden: boolean;
1220
- }
1221
- export declare const adminUpdatePrivateClientBodySchema: z.ZodObject<{
1222
- walletAddress: z.ZodString;
1223
- isPrivateClient: z.ZodBoolean;
1224
- }, z.core.$strict>;
1225
- export type AdminUpdatePrivateClientRequestBody = z.infer<typeof adminUpdatePrivateClientBodySchema>;
1226
- export declare const adminSyncIpoAllocationBodySchema: z.ZodObject<{
1227
- ipoId: z.ZodInt;
1228
- }, z.core.$strict>;
1229
- export type AdminSyncIpoAllocationRequestBody = z.infer<typeof adminSyncIpoAllocationBodySchema>;
1230
891
  export declare const createApiKeyBodySchema: z.ZodObject<{
1231
892
  description: z.ZodOptional<z.ZodString>;
1232
893
  expiresInDays: z.ZodDefault<z.ZodInt>;
@@ -1256,90 +917,6 @@ export interface ListApiKeysResponse {
1256
917
  export interface RevokeApiKeyResponse {
1257
918
  readonly success: true;
1258
919
  }
1259
- export declare const adminPreviewDistributionBodySchema: z.ZodObject<{
1260
- propertyId: z.ZodInt;
1261
- periodStart: z.ZodISODate;
1262
- periodEnd: z.ZodISODate;
1263
- totalAmount: z.ZodNumber;
1264
- }, z.core.$strict>;
1265
- export type AdminPreviewDistributionRequestBody = z.infer<typeof adminPreviewDistributionBodySchema>;
1266
- export interface AdminPreviewDistributionHolder {
1267
- readonly walletAddress: string;
1268
- readonly userId: number | null;
1269
- readonly balance: number;
1270
- readonly amount: number;
1271
- }
1272
- export interface AdminPreviewDistributionResponse {
1273
- readonly merkleRoot: string;
1274
- readonly totalAmount: number;
1275
- readonly snapshotBlockNumber: number;
1276
- readonly holders: readonly AdminPreviewDistributionHolder[];
1277
- }
1278
- export declare const adminExecuteDistributionBodySchema: z.ZodObject<{
1279
- propertyId: z.ZodInt;
1280
- periodStart: z.ZodISODate;
1281
- periodEnd: z.ZodISODate;
1282
- totalAmount: z.ZodNumber;
1283
- }, z.core.$strict>;
1284
- export type AdminExecuteDistributionRequestBody = z.infer<typeof adminExecuteDistributionBodySchema>;
1285
- export interface AdminExecuteDistributionResponse {
1286
- readonly rentalDistributionId: number;
1287
- readonly epoch: number;
1288
- readonly merkleRoot: string;
1289
- readonly setRootTxHash: string;
1290
- }
1291
- export declare const adminGetDistributionParamsSchema: z.ZodObject<{
1292
- id: z.ZodCoercedNumber<unknown>;
1293
- }, z.core.$strip>;
1294
- export type AdminGetDistributionParams = z.infer<typeof adminGetDistributionParamsSchema>;
1295
- export type RentalDistributionStatus = 'PROCESSING' | 'DISTRIBUTED';
1296
- export interface AdminGetDistributionResponse {
1297
- readonly rentalDistributionId: number;
1298
- readonly propertyId: number;
1299
- readonly tokenName: string;
1300
- readonly homeownerUserId: number;
1301
- readonly periodStart: string;
1302
- readonly periodEnd: string;
1303
- readonly totalAmount: number;
1304
- readonly status: RentalDistributionStatus;
1305
- readonly epoch: number;
1306
- readonly snapshotBlockNumber: number;
1307
- readonly merkleRoot: string;
1308
- readonly setRootTxHash: string;
1309
- readonly claimsTotal: number;
1310
- readonly claimsClaimed: number;
1311
- readonly amountClaimed: number;
1312
- readonly amountUnclaimed: number;
1313
- }
1314
- export declare const adminReclaimDistributionBodySchema: z.ZodObject<{
1315
- rentalDistributionId: z.ZodInt;
1316
- amount: z.ZodNumber;
1317
- }, z.core.$strict>;
1318
- export type AdminReclaimDistributionRequestBody = z.infer<typeof adminReclaimDistributionBodySchema>;
1319
- export interface AdminReclaimDistributionResponse {
1320
- readonly txHash: string;
1321
- }
1322
- export interface AvailableYieldItem {
1323
- readonly rentalDistributionId: number;
1324
- readonly propertyId: number;
1325
- readonly tokenName: string;
1326
- readonly ticker: string;
1327
- readonly periodStart: string;
1328
- readonly periodEnd: string;
1329
- readonly amount: number;
1330
- readonly epoch: number;
1331
- }
1332
- export interface AvailableYieldsResponse {
1333
- readonly yields: readonly AvailableYieldItem[];
1334
- }
1335
- export declare const claimYieldParamsSchema: z.ZodObject<{
1336
- rentalDistributionId: z.ZodCoercedNumber<unknown>;
1337
- }, z.core.$strip>;
1338
- export type ClaimYieldRequestParams = z.infer<typeof claimYieldParamsSchema>;
1339
- export interface ClaimYieldResponse {
1340
- readonly txHash: string;
1341
- readonly amount: number;
1342
- }
1343
920
  export declare const volumeMultiplierTierSchema: z.ZodObject<{
1344
921
  minVolume: z.ZodNumber;
1345
922
  multiplier: z.ZodNumber;
@@ -1364,33 +941,10 @@ export declare const prizePoolSchema: z.ZodArray<z.ZodObject<{
1364
941
  place: z.ZodInt;
1365
942
  amount: z.ZodNumber;
1366
943
  }, z.core.$strict>>;
1367
- /**
1368
- * Body for CREATING a competition round. The round is persisted in DRAFT
1369
- */
1370
- export declare const adminCreateCompetitionRoundBodySchema: z.ZodObject<{
1371
- roundName: z.ZodString;
1372
- roundRules: z.ZodOptional<z.ZodString>;
1373
- startsAt: z.ZodOptional<z.ZodInt>;
1374
- endsAt: z.ZodOptional<z.ZodInt>;
1375
- startingBalanceUsdl: z.ZodInt;
1376
- participantBatchSize: z.ZodInt;
1377
- priorityBoostPlaces: z.ZodInt;
1378
- maxBoostsPerUser: z.ZodInt;
1379
- maxRewardedReferrals: z.ZodInt;
1380
- perReferralUsdlReward: z.ZodInt;
1381
- volumeMultiplierTiers: z.ZodArray<z.ZodObject<{
1382
- minVolume: z.ZodNumber;
1383
- multiplier: z.ZodNumber;
1384
- }, z.core.$strict>>;
1385
- pnlMultiplier: z.ZodNumber;
1386
- bottomCullPercent: z.ZodOptional<z.ZodInt>;
1387
- prizePool: z.ZodOptional<z.ZodArray<z.ZodObject<{
1388
- place: z.ZodInt;
1389
- amount: z.ZodNumber;
1390
- }, z.core.$strict>>>;
1391
- newAssetPropertyId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1392
- }, z.core.$strict>;
1393
- export type AdminCreateCompetitionRoundRequestBody = z.infer<typeof adminCreateCompetitionRoundBodySchema>;
944
+ export declare const prizePoolInputSchema: z.ZodArray<z.ZodObject<{
945
+ place: z.ZodInt;
946
+ amount: z.ZodNumber;
947
+ }, z.core.$strict>>;
1394
948
  /** Path param schema for round-scoped admin routes (`:roundId`). */
1395
949
  export declare const competitionRoundParamsSchema: z.ZodObject<{
1396
950
  roundId: z.ZodCoercedNumber<unknown>;