@numen-crypto/contract 0.8.0 → 0.10.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.cjs +26 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +62 -1
- package/dist/index.d.ts +62 -1
- package/dist/index.js +26 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -19,6 +19,9 @@ declare const ERROR_CODE: {
|
|
|
19
19
|
readonly EMAIL_NOT_VERIFIED: "EMAIL_NOT_VERIFIED";
|
|
20
20
|
readonly EMAIL_ALREADY_VERIFIED: "EMAIL_ALREADY_VERIFIED";
|
|
21
21
|
readonly TOKEN_INVALID: "TOKEN_INVALID";
|
|
22
|
+
readonly TOTP_INVALID: "TOTP_INVALID";
|
|
23
|
+
readonly CAPTCHA_REQUIRED: "CAPTCHA_REQUIRED";
|
|
24
|
+
readonly CAPTCHA_INVALID: "CAPTCHA_INVALID";
|
|
22
25
|
readonly INSUFFICIENT_BALANCE: "INSUFFICIENT_BALANCE";
|
|
23
26
|
readonly PURCHASE_LIMIT_EXCEEDED: "PURCHASE_LIMIT_EXCEEDED";
|
|
24
27
|
readonly PURCHASE_CAP_EXCEEDED: "PURCHASE_CAP_EXCEEDED";
|
|
@@ -828,14 +831,17 @@ declare const DailyBonusDaySchema: z.ZodObject<{
|
|
|
828
831
|
dayIndex: z.ZodNumber;
|
|
829
832
|
rewardNmn: z.ZodString;
|
|
830
833
|
surprise: z.ZodBoolean;
|
|
834
|
+
claimedNmn: z.ZodNullable<z.ZodString>;
|
|
831
835
|
}, "strip", z.ZodTypeAny, {
|
|
832
836
|
dayIndex: number;
|
|
833
837
|
rewardNmn: string;
|
|
834
838
|
surprise: boolean;
|
|
839
|
+
claimedNmn: string | null;
|
|
835
840
|
}, {
|
|
836
841
|
dayIndex: number;
|
|
837
842
|
rewardNmn: string;
|
|
838
843
|
surprise: boolean;
|
|
844
|
+
claimedNmn: string | null;
|
|
839
845
|
}>;
|
|
840
846
|
type DailyBonusDay = z.infer<typeof DailyBonusDaySchema>;
|
|
841
847
|
declare const DailyBonusStatusSchema: z.ZodObject<{
|
|
@@ -844,18 +850,23 @@ declare const DailyBonusStatusSchema: z.ZodObject<{
|
|
|
844
850
|
claimableToday: z.ZodBoolean;
|
|
845
851
|
todayDayIndex: z.ZodNumber;
|
|
846
852
|
nextRewardNmn: z.ZodString;
|
|
853
|
+
surpriseMinNmn: z.ZodString;
|
|
854
|
+
surpriseMaxNmn: z.ZodString;
|
|
847
855
|
days: z.ZodArray<z.ZodObject<{
|
|
848
856
|
dayIndex: z.ZodNumber;
|
|
849
857
|
rewardNmn: z.ZodString;
|
|
850
858
|
surprise: z.ZodBoolean;
|
|
859
|
+
claimedNmn: z.ZodNullable<z.ZodString>;
|
|
851
860
|
}, "strip", z.ZodTypeAny, {
|
|
852
861
|
dayIndex: number;
|
|
853
862
|
rewardNmn: string;
|
|
854
863
|
surprise: boolean;
|
|
864
|
+
claimedNmn: string | null;
|
|
855
865
|
}, {
|
|
856
866
|
dayIndex: number;
|
|
857
867
|
rewardNmn: string;
|
|
858
868
|
surprise: boolean;
|
|
869
|
+
claimedNmn: string | null;
|
|
859
870
|
}>, "many">;
|
|
860
871
|
}, "strip", z.ZodTypeAny, {
|
|
861
872
|
currentStreak: number;
|
|
@@ -863,10 +874,13 @@ declare const DailyBonusStatusSchema: z.ZodObject<{
|
|
|
863
874
|
claimableToday: boolean;
|
|
864
875
|
todayDayIndex: number;
|
|
865
876
|
nextRewardNmn: string;
|
|
877
|
+
surpriseMinNmn: string;
|
|
878
|
+
surpriseMaxNmn: string;
|
|
866
879
|
days: {
|
|
867
880
|
dayIndex: number;
|
|
868
881
|
rewardNmn: string;
|
|
869
882
|
surprise: boolean;
|
|
883
|
+
claimedNmn: string | null;
|
|
870
884
|
}[];
|
|
871
885
|
}, {
|
|
872
886
|
currentStreak: number;
|
|
@@ -874,10 +888,13 @@ declare const DailyBonusStatusSchema: z.ZodObject<{
|
|
|
874
888
|
claimableToday: boolean;
|
|
875
889
|
todayDayIndex: number;
|
|
876
890
|
nextRewardNmn: string;
|
|
891
|
+
surpriseMinNmn: string;
|
|
892
|
+
surpriseMaxNmn: string;
|
|
877
893
|
days: {
|
|
878
894
|
dayIndex: number;
|
|
879
895
|
rewardNmn: string;
|
|
880
896
|
surprise: boolean;
|
|
897
|
+
claimedNmn: string | null;
|
|
881
898
|
}[];
|
|
882
899
|
}>;
|
|
883
900
|
type DailyBonusStatus = z.infer<typeof DailyBonusStatusSchema>;
|
|
@@ -1312,14 +1329,17 @@ declare namespace RegisterCommand {
|
|
|
1312
1329
|
email: z.ZodString;
|
|
1313
1330
|
password: z.ZodString;
|
|
1314
1331
|
referralCode: z.ZodOptional<z.ZodString>;
|
|
1332
|
+
captchaToken: z.ZodOptional<z.ZodString>;
|
|
1315
1333
|
}, "strip", z.ZodTypeAny, {
|
|
1316
1334
|
email: string;
|
|
1317
1335
|
password: string;
|
|
1318
1336
|
referralCode?: string | undefined;
|
|
1337
|
+
captchaToken?: string | undefined;
|
|
1319
1338
|
}, {
|
|
1320
1339
|
email: string;
|
|
1321
1340
|
password: string;
|
|
1322
1341
|
referralCode?: string | undefined;
|
|
1342
|
+
captchaToken?: string | undefined;
|
|
1323
1343
|
}>;
|
|
1324
1344
|
type Request = z.infer<typeof RequestSchema>;
|
|
1325
1345
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -1338,13 +1358,16 @@ declare namespace LoginCommand {
|
|
|
1338
1358
|
email: z.ZodString;
|
|
1339
1359
|
password: z.ZodString;
|
|
1340
1360
|
totp: z.ZodOptional<z.ZodString>;
|
|
1361
|
+
captchaToken: z.ZodOptional<z.ZodString>;
|
|
1341
1362
|
}, "strip", z.ZodTypeAny, {
|
|
1342
1363
|
email: string;
|
|
1343
1364
|
password: string;
|
|
1365
|
+
captchaToken?: string | undefined;
|
|
1344
1366
|
totp?: string | undefined;
|
|
1345
1367
|
}, {
|
|
1346
1368
|
email: string;
|
|
1347
1369
|
password: string;
|
|
1370
|
+
captchaToken?: string | undefined;
|
|
1348
1371
|
totp?: string | undefined;
|
|
1349
1372
|
}>;
|
|
1350
1373
|
type Request = z.infer<typeof RequestSchema>;
|
|
@@ -1596,6 +1619,32 @@ declare namespace ResetPasswordCommand {
|
|
|
1596
1619
|
type Response = z.infer<typeof ResponseSchema>;
|
|
1597
1620
|
}
|
|
1598
1621
|
|
|
1622
|
+
declare const ThreatLevelSchema: z.ZodEnum<["calm", "elevated", "high", "attack"]>;
|
|
1623
|
+
type ThreatLevel = z.infer<typeof ThreatLevelSchema>;
|
|
1624
|
+
declare namespace CaptchaPolicyCommand {
|
|
1625
|
+
const endpointDetails: EndpointDetails;
|
|
1626
|
+
const ResponseSchema: z.ZodObject<{
|
|
1627
|
+
provider: z.ZodEnum<["turnstile", "none"]>;
|
|
1628
|
+
siteKey: z.ZodNullable<z.ZodString>;
|
|
1629
|
+
register: z.ZodBoolean;
|
|
1630
|
+
login: z.ZodBoolean;
|
|
1631
|
+
level: z.ZodEnum<["calm", "elevated", "high", "attack"]>;
|
|
1632
|
+
}, "strip", z.ZodTypeAny, {
|
|
1633
|
+
level: "calm" | "elevated" | "high" | "attack";
|
|
1634
|
+
provider: "turnstile" | "none";
|
|
1635
|
+
siteKey: string | null;
|
|
1636
|
+
register: boolean;
|
|
1637
|
+
login: boolean;
|
|
1638
|
+
}, {
|
|
1639
|
+
level: "calm" | "elevated" | "high" | "attack";
|
|
1640
|
+
provider: "turnstile" | "none";
|
|
1641
|
+
siteKey: string | null;
|
|
1642
|
+
register: boolean;
|
|
1643
|
+
login: boolean;
|
|
1644
|
+
}>;
|
|
1645
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1599
1648
|
declare namespace GetWalletCommand {
|
|
1600
1649
|
const endpointDetails: EndpointDetails;
|
|
1601
1650
|
const ResponseSchema: zod.ZodObject<{
|
|
@@ -3099,18 +3148,23 @@ declare namespace GetDailyBonusCommand {
|
|
|
3099
3148
|
claimableToday: z.ZodBoolean;
|
|
3100
3149
|
todayDayIndex: z.ZodNumber;
|
|
3101
3150
|
nextRewardNmn: z.ZodString;
|
|
3151
|
+
surpriseMinNmn: z.ZodString;
|
|
3152
|
+
surpriseMaxNmn: z.ZodString;
|
|
3102
3153
|
days: z.ZodArray<z.ZodObject<{
|
|
3103
3154
|
dayIndex: z.ZodNumber;
|
|
3104
3155
|
rewardNmn: z.ZodString;
|
|
3105
3156
|
surprise: z.ZodBoolean;
|
|
3157
|
+
claimedNmn: z.ZodNullable<z.ZodString>;
|
|
3106
3158
|
}, "strip", z.ZodTypeAny, {
|
|
3107
3159
|
dayIndex: number;
|
|
3108
3160
|
rewardNmn: string;
|
|
3109
3161
|
surprise: boolean;
|
|
3162
|
+
claimedNmn: string | null;
|
|
3110
3163
|
}, {
|
|
3111
3164
|
dayIndex: number;
|
|
3112
3165
|
rewardNmn: string;
|
|
3113
3166
|
surprise: boolean;
|
|
3167
|
+
claimedNmn: string | null;
|
|
3114
3168
|
}>, "many">;
|
|
3115
3169
|
}, "strip", z.ZodTypeAny, {
|
|
3116
3170
|
currentStreak: number;
|
|
@@ -3118,10 +3172,13 @@ declare namespace GetDailyBonusCommand {
|
|
|
3118
3172
|
claimableToday: boolean;
|
|
3119
3173
|
todayDayIndex: number;
|
|
3120
3174
|
nextRewardNmn: string;
|
|
3175
|
+
surpriseMinNmn: string;
|
|
3176
|
+
surpriseMaxNmn: string;
|
|
3121
3177
|
days: {
|
|
3122
3178
|
dayIndex: number;
|
|
3123
3179
|
rewardNmn: string;
|
|
3124
3180
|
surprise: boolean;
|
|
3181
|
+
claimedNmn: string | null;
|
|
3125
3182
|
}[];
|
|
3126
3183
|
}, {
|
|
3127
3184
|
currentStreak: number;
|
|
@@ -3129,10 +3186,13 @@ declare namespace GetDailyBonusCommand {
|
|
|
3129
3186
|
claimableToday: boolean;
|
|
3130
3187
|
todayDayIndex: number;
|
|
3131
3188
|
nextRewardNmn: string;
|
|
3189
|
+
surpriseMinNmn: string;
|
|
3190
|
+
surpriseMaxNmn: string;
|
|
3132
3191
|
days: {
|
|
3133
3192
|
dayIndex: number;
|
|
3134
3193
|
rewardNmn: string;
|
|
3135
3194
|
surprise: boolean;
|
|
3195
|
+
claimedNmn: string | null;
|
|
3136
3196
|
}[];
|
|
3137
3197
|
}>;
|
|
3138
3198
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -4293,6 +4353,7 @@ declare const REST_API: {
|
|
|
4293
4353
|
readonly RESEND_VERIFICATION: "/auth/verify-email/resend";
|
|
4294
4354
|
readonly FORGOT_PASSWORD: "/auth/password/forgot";
|
|
4295
4355
|
readonly RESET_PASSWORD: "/auth/password/reset";
|
|
4356
|
+
readonly CAPTCHA_POLICY: "/auth/captcha-policy";
|
|
4296
4357
|
};
|
|
4297
4358
|
readonly WALLET: {
|
|
4298
4359
|
readonly OVERVIEW: "/wallet";
|
|
@@ -4373,4 +4434,4 @@ declare const REST_API: {
|
|
|
4373
4434
|
declare const API_PREFIX = "/api";
|
|
4374
4435
|
declare const API_VERSION = "v1";
|
|
4375
4436
|
|
|
4376
|
-
export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CancelOrderCommand, CancelWithdrawalCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositEntry, DepositEntrySchema, type DepositStatus, DepositStatusSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, ForgotPasswordCommand, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, type HttpMethod, type IncomeOverview, IncomeOverviewSchema, type IncomePeriod, IncomePeriodSchema, type Leaderboard, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardPeriod, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, type LinkProvider, LinkProviderSchema, LinkTelegramCommand, type LinkedAccount, LinkedAccountSchema, ListDepositsCommand, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, type Package, PackageSchema, type PackageStatus, PackageStatusSchema, type PackagesOverview, PackagesOverviewSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, type Period, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, type PublicTrade, PublicTradeSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, type Slide, type SlideButtonStyle, SlideButtonStyleSchema, type SlideKind, SlideKindSchema, type SlideLinkTarget, SlideLinkTargetSchema, SlideSchema, type SlidesResponse, SlidesResponseSchema, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, type TicketAttachment, type TicketAttachmentInput, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, type TicketAuthorType, TicketAuthorTypeSchema, TicketBodySchema, type TicketCategory, TicketCategorySchema, type TicketDetail, TicketDetailSchema, type TicketMessage, TicketMessageSchema, type TicketStatus, TicketStatusSchema, type TicketSummary, TicketSummarySchema, type TokenPrice, TokenPriceSchema, type TradeLimits, TradeLimitsSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, VerifyEmailCommand, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, assetDecimals, endpoint };
|
|
4437
|
+
export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CancelOrderCommand, CancelWithdrawalCommand, CaptchaPolicyCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositEntry, DepositEntrySchema, type DepositStatus, DepositStatusSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, ForgotPasswordCommand, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, type HttpMethod, type IncomeOverview, IncomeOverviewSchema, type IncomePeriod, IncomePeriodSchema, type Leaderboard, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardPeriod, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, type LinkProvider, LinkProviderSchema, LinkTelegramCommand, type LinkedAccount, LinkedAccountSchema, ListDepositsCommand, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, type Package, PackageSchema, type PackageStatus, PackageStatusSchema, type PackagesOverview, PackagesOverviewSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, type Period, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, type PublicTrade, PublicTradeSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, type Slide, type SlideButtonStyle, SlideButtonStyleSchema, type SlideKind, SlideKindSchema, type SlideLinkTarget, SlideLinkTargetSchema, SlideSchema, type SlidesResponse, SlidesResponseSchema, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, type ThreatLevel, ThreatLevelSchema, type TicketAttachment, type TicketAttachmentInput, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, type TicketAuthorType, TicketAuthorTypeSchema, TicketBodySchema, type TicketCategory, TicketCategorySchema, type TicketDetail, TicketDetailSchema, type TicketMessage, TicketMessageSchema, type TicketStatus, TicketStatusSchema, type TicketSummary, TicketSummarySchema, type TokenPrice, TokenPriceSchema, type TradeLimits, TradeLimitsSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, VerifyEmailCommand, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, assetDecimals, endpoint };
|
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,9 @@ declare const ERROR_CODE: {
|
|
|
19
19
|
readonly EMAIL_NOT_VERIFIED: "EMAIL_NOT_VERIFIED";
|
|
20
20
|
readonly EMAIL_ALREADY_VERIFIED: "EMAIL_ALREADY_VERIFIED";
|
|
21
21
|
readonly TOKEN_INVALID: "TOKEN_INVALID";
|
|
22
|
+
readonly TOTP_INVALID: "TOTP_INVALID";
|
|
23
|
+
readonly CAPTCHA_REQUIRED: "CAPTCHA_REQUIRED";
|
|
24
|
+
readonly CAPTCHA_INVALID: "CAPTCHA_INVALID";
|
|
22
25
|
readonly INSUFFICIENT_BALANCE: "INSUFFICIENT_BALANCE";
|
|
23
26
|
readonly PURCHASE_LIMIT_EXCEEDED: "PURCHASE_LIMIT_EXCEEDED";
|
|
24
27
|
readonly PURCHASE_CAP_EXCEEDED: "PURCHASE_CAP_EXCEEDED";
|
|
@@ -828,14 +831,17 @@ declare const DailyBonusDaySchema: z.ZodObject<{
|
|
|
828
831
|
dayIndex: z.ZodNumber;
|
|
829
832
|
rewardNmn: z.ZodString;
|
|
830
833
|
surprise: z.ZodBoolean;
|
|
834
|
+
claimedNmn: z.ZodNullable<z.ZodString>;
|
|
831
835
|
}, "strip", z.ZodTypeAny, {
|
|
832
836
|
dayIndex: number;
|
|
833
837
|
rewardNmn: string;
|
|
834
838
|
surprise: boolean;
|
|
839
|
+
claimedNmn: string | null;
|
|
835
840
|
}, {
|
|
836
841
|
dayIndex: number;
|
|
837
842
|
rewardNmn: string;
|
|
838
843
|
surprise: boolean;
|
|
844
|
+
claimedNmn: string | null;
|
|
839
845
|
}>;
|
|
840
846
|
type DailyBonusDay = z.infer<typeof DailyBonusDaySchema>;
|
|
841
847
|
declare const DailyBonusStatusSchema: z.ZodObject<{
|
|
@@ -844,18 +850,23 @@ declare const DailyBonusStatusSchema: z.ZodObject<{
|
|
|
844
850
|
claimableToday: z.ZodBoolean;
|
|
845
851
|
todayDayIndex: z.ZodNumber;
|
|
846
852
|
nextRewardNmn: z.ZodString;
|
|
853
|
+
surpriseMinNmn: z.ZodString;
|
|
854
|
+
surpriseMaxNmn: z.ZodString;
|
|
847
855
|
days: z.ZodArray<z.ZodObject<{
|
|
848
856
|
dayIndex: z.ZodNumber;
|
|
849
857
|
rewardNmn: z.ZodString;
|
|
850
858
|
surprise: z.ZodBoolean;
|
|
859
|
+
claimedNmn: z.ZodNullable<z.ZodString>;
|
|
851
860
|
}, "strip", z.ZodTypeAny, {
|
|
852
861
|
dayIndex: number;
|
|
853
862
|
rewardNmn: string;
|
|
854
863
|
surprise: boolean;
|
|
864
|
+
claimedNmn: string | null;
|
|
855
865
|
}, {
|
|
856
866
|
dayIndex: number;
|
|
857
867
|
rewardNmn: string;
|
|
858
868
|
surprise: boolean;
|
|
869
|
+
claimedNmn: string | null;
|
|
859
870
|
}>, "many">;
|
|
860
871
|
}, "strip", z.ZodTypeAny, {
|
|
861
872
|
currentStreak: number;
|
|
@@ -863,10 +874,13 @@ declare const DailyBonusStatusSchema: z.ZodObject<{
|
|
|
863
874
|
claimableToday: boolean;
|
|
864
875
|
todayDayIndex: number;
|
|
865
876
|
nextRewardNmn: string;
|
|
877
|
+
surpriseMinNmn: string;
|
|
878
|
+
surpriseMaxNmn: string;
|
|
866
879
|
days: {
|
|
867
880
|
dayIndex: number;
|
|
868
881
|
rewardNmn: string;
|
|
869
882
|
surprise: boolean;
|
|
883
|
+
claimedNmn: string | null;
|
|
870
884
|
}[];
|
|
871
885
|
}, {
|
|
872
886
|
currentStreak: number;
|
|
@@ -874,10 +888,13 @@ declare const DailyBonusStatusSchema: z.ZodObject<{
|
|
|
874
888
|
claimableToday: boolean;
|
|
875
889
|
todayDayIndex: number;
|
|
876
890
|
nextRewardNmn: string;
|
|
891
|
+
surpriseMinNmn: string;
|
|
892
|
+
surpriseMaxNmn: string;
|
|
877
893
|
days: {
|
|
878
894
|
dayIndex: number;
|
|
879
895
|
rewardNmn: string;
|
|
880
896
|
surprise: boolean;
|
|
897
|
+
claimedNmn: string | null;
|
|
881
898
|
}[];
|
|
882
899
|
}>;
|
|
883
900
|
type DailyBonusStatus = z.infer<typeof DailyBonusStatusSchema>;
|
|
@@ -1312,14 +1329,17 @@ declare namespace RegisterCommand {
|
|
|
1312
1329
|
email: z.ZodString;
|
|
1313
1330
|
password: z.ZodString;
|
|
1314
1331
|
referralCode: z.ZodOptional<z.ZodString>;
|
|
1332
|
+
captchaToken: z.ZodOptional<z.ZodString>;
|
|
1315
1333
|
}, "strip", z.ZodTypeAny, {
|
|
1316
1334
|
email: string;
|
|
1317
1335
|
password: string;
|
|
1318
1336
|
referralCode?: string | undefined;
|
|
1337
|
+
captchaToken?: string | undefined;
|
|
1319
1338
|
}, {
|
|
1320
1339
|
email: string;
|
|
1321
1340
|
password: string;
|
|
1322
1341
|
referralCode?: string | undefined;
|
|
1342
|
+
captchaToken?: string | undefined;
|
|
1323
1343
|
}>;
|
|
1324
1344
|
type Request = z.infer<typeof RequestSchema>;
|
|
1325
1345
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -1338,13 +1358,16 @@ declare namespace LoginCommand {
|
|
|
1338
1358
|
email: z.ZodString;
|
|
1339
1359
|
password: z.ZodString;
|
|
1340
1360
|
totp: z.ZodOptional<z.ZodString>;
|
|
1361
|
+
captchaToken: z.ZodOptional<z.ZodString>;
|
|
1341
1362
|
}, "strip", z.ZodTypeAny, {
|
|
1342
1363
|
email: string;
|
|
1343
1364
|
password: string;
|
|
1365
|
+
captchaToken?: string | undefined;
|
|
1344
1366
|
totp?: string | undefined;
|
|
1345
1367
|
}, {
|
|
1346
1368
|
email: string;
|
|
1347
1369
|
password: string;
|
|
1370
|
+
captchaToken?: string | undefined;
|
|
1348
1371
|
totp?: string | undefined;
|
|
1349
1372
|
}>;
|
|
1350
1373
|
type Request = z.infer<typeof RequestSchema>;
|
|
@@ -1596,6 +1619,32 @@ declare namespace ResetPasswordCommand {
|
|
|
1596
1619
|
type Response = z.infer<typeof ResponseSchema>;
|
|
1597
1620
|
}
|
|
1598
1621
|
|
|
1622
|
+
declare const ThreatLevelSchema: z.ZodEnum<["calm", "elevated", "high", "attack"]>;
|
|
1623
|
+
type ThreatLevel = z.infer<typeof ThreatLevelSchema>;
|
|
1624
|
+
declare namespace CaptchaPolicyCommand {
|
|
1625
|
+
const endpointDetails: EndpointDetails;
|
|
1626
|
+
const ResponseSchema: z.ZodObject<{
|
|
1627
|
+
provider: z.ZodEnum<["turnstile", "none"]>;
|
|
1628
|
+
siteKey: z.ZodNullable<z.ZodString>;
|
|
1629
|
+
register: z.ZodBoolean;
|
|
1630
|
+
login: z.ZodBoolean;
|
|
1631
|
+
level: z.ZodEnum<["calm", "elevated", "high", "attack"]>;
|
|
1632
|
+
}, "strip", z.ZodTypeAny, {
|
|
1633
|
+
level: "calm" | "elevated" | "high" | "attack";
|
|
1634
|
+
provider: "turnstile" | "none";
|
|
1635
|
+
siteKey: string | null;
|
|
1636
|
+
register: boolean;
|
|
1637
|
+
login: boolean;
|
|
1638
|
+
}, {
|
|
1639
|
+
level: "calm" | "elevated" | "high" | "attack";
|
|
1640
|
+
provider: "turnstile" | "none";
|
|
1641
|
+
siteKey: string | null;
|
|
1642
|
+
register: boolean;
|
|
1643
|
+
login: boolean;
|
|
1644
|
+
}>;
|
|
1645
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1599
1648
|
declare namespace GetWalletCommand {
|
|
1600
1649
|
const endpointDetails: EndpointDetails;
|
|
1601
1650
|
const ResponseSchema: zod.ZodObject<{
|
|
@@ -3099,18 +3148,23 @@ declare namespace GetDailyBonusCommand {
|
|
|
3099
3148
|
claimableToday: z.ZodBoolean;
|
|
3100
3149
|
todayDayIndex: z.ZodNumber;
|
|
3101
3150
|
nextRewardNmn: z.ZodString;
|
|
3151
|
+
surpriseMinNmn: z.ZodString;
|
|
3152
|
+
surpriseMaxNmn: z.ZodString;
|
|
3102
3153
|
days: z.ZodArray<z.ZodObject<{
|
|
3103
3154
|
dayIndex: z.ZodNumber;
|
|
3104
3155
|
rewardNmn: z.ZodString;
|
|
3105
3156
|
surprise: z.ZodBoolean;
|
|
3157
|
+
claimedNmn: z.ZodNullable<z.ZodString>;
|
|
3106
3158
|
}, "strip", z.ZodTypeAny, {
|
|
3107
3159
|
dayIndex: number;
|
|
3108
3160
|
rewardNmn: string;
|
|
3109
3161
|
surprise: boolean;
|
|
3162
|
+
claimedNmn: string | null;
|
|
3110
3163
|
}, {
|
|
3111
3164
|
dayIndex: number;
|
|
3112
3165
|
rewardNmn: string;
|
|
3113
3166
|
surprise: boolean;
|
|
3167
|
+
claimedNmn: string | null;
|
|
3114
3168
|
}>, "many">;
|
|
3115
3169
|
}, "strip", z.ZodTypeAny, {
|
|
3116
3170
|
currentStreak: number;
|
|
@@ -3118,10 +3172,13 @@ declare namespace GetDailyBonusCommand {
|
|
|
3118
3172
|
claimableToday: boolean;
|
|
3119
3173
|
todayDayIndex: number;
|
|
3120
3174
|
nextRewardNmn: string;
|
|
3175
|
+
surpriseMinNmn: string;
|
|
3176
|
+
surpriseMaxNmn: string;
|
|
3121
3177
|
days: {
|
|
3122
3178
|
dayIndex: number;
|
|
3123
3179
|
rewardNmn: string;
|
|
3124
3180
|
surprise: boolean;
|
|
3181
|
+
claimedNmn: string | null;
|
|
3125
3182
|
}[];
|
|
3126
3183
|
}, {
|
|
3127
3184
|
currentStreak: number;
|
|
@@ -3129,10 +3186,13 @@ declare namespace GetDailyBonusCommand {
|
|
|
3129
3186
|
claimableToday: boolean;
|
|
3130
3187
|
todayDayIndex: number;
|
|
3131
3188
|
nextRewardNmn: string;
|
|
3189
|
+
surpriseMinNmn: string;
|
|
3190
|
+
surpriseMaxNmn: string;
|
|
3132
3191
|
days: {
|
|
3133
3192
|
dayIndex: number;
|
|
3134
3193
|
rewardNmn: string;
|
|
3135
3194
|
surprise: boolean;
|
|
3195
|
+
claimedNmn: string | null;
|
|
3136
3196
|
}[];
|
|
3137
3197
|
}>;
|
|
3138
3198
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -4293,6 +4353,7 @@ declare const REST_API: {
|
|
|
4293
4353
|
readonly RESEND_VERIFICATION: "/auth/verify-email/resend";
|
|
4294
4354
|
readonly FORGOT_PASSWORD: "/auth/password/forgot";
|
|
4295
4355
|
readonly RESET_PASSWORD: "/auth/password/reset";
|
|
4356
|
+
readonly CAPTCHA_POLICY: "/auth/captcha-policy";
|
|
4296
4357
|
};
|
|
4297
4358
|
readonly WALLET: {
|
|
4298
4359
|
readonly OVERVIEW: "/wallet";
|
|
@@ -4373,4 +4434,4 @@ declare const REST_API: {
|
|
|
4373
4434
|
declare const API_PREFIX = "/api";
|
|
4374
4435
|
declare const API_VERSION = "v1";
|
|
4375
4436
|
|
|
4376
|
-
export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CancelOrderCommand, CancelWithdrawalCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositEntry, DepositEntrySchema, type DepositStatus, DepositStatusSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, ForgotPasswordCommand, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, type HttpMethod, type IncomeOverview, IncomeOverviewSchema, type IncomePeriod, IncomePeriodSchema, type Leaderboard, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardPeriod, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, type LinkProvider, LinkProviderSchema, LinkTelegramCommand, type LinkedAccount, LinkedAccountSchema, ListDepositsCommand, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, type Package, PackageSchema, type PackageStatus, PackageStatusSchema, type PackagesOverview, PackagesOverviewSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, type Period, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, type PublicTrade, PublicTradeSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, type Slide, type SlideButtonStyle, SlideButtonStyleSchema, type SlideKind, SlideKindSchema, type SlideLinkTarget, SlideLinkTargetSchema, SlideSchema, type SlidesResponse, SlidesResponseSchema, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, type TicketAttachment, type TicketAttachmentInput, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, type TicketAuthorType, TicketAuthorTypeSchema, TicketBodySchema, type TicketCategory, TicketCategorySchema, type TicketDetail, TicketDetailSchema, type TicketMessage, TicketMessageSchema, type TicketStatus, TicketStatusSchema, type TicketSummary, TicketSummarySchema, type TokenPrice, TokenPriceSchema, type TradeLimits, TradeLimitsSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, VerifyEmailCommand, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, assetDecimals, endpoint };
|
|
4437
|
+
export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CancelOrderCommand, CancelWithdrawalCommand, CaptchaPolicyCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositEntry, DepositEntrySchema, type DepositStatus, DepositStatusSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, ForgotPasswordCommand, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, type HttpMethod, type IncomeOverview, IncomeOverviewSchema, type IncomePeriod, IncomePeriodSchema, type Leaderboard, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardPeriod, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, type LinkProvider, LinkProviderSchema, LinkTelegramCommand, type LinkedAccount, LinkedAccountSchema, ListDepositsCommand, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, type Package, PackageSchema, type PackageStatus, PackageStatusSchema, type PackagesOverview, PackagesOverviewSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, type Period, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, type PublicTrade, PublicTradeSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, type Slide, type SlideButtonStyle, SlideButtonStyleSchema, type SlideKind, SlideKindSchema, type SlideLinkTarget, SlideLinkTargetSchema, SlideSchema, type SlidesResponse, SlidesResponseSchema, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, type ThreatLevel, ThreatLevelSchema, type TicketAttachment, type TicketAttachmentInput, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, type TicketAuthorType, TicketAuthorTypeSchema, TicketBodySchema, type TicketCategory, TicketCategorySchema, type TicketDetail, TicketDetailSchema, type TicketMessage, TicketMessageSchema, type TicketStatus, TicketStatusSchema, type TicketSummary, TicketSummarySchema, type TokenPrice, TokenPriceSchema, type TradeLimits, TradeLimitsSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, VerifyEmailCommand, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, assetDecimals, endpoint };
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,9 @@ var ERROR_CODE = {
|
|
|
19
19
|
EMAIL_NOT_VERIFIED: "EMAIL_NOT_VERIFIED",
|
|
20
20
|
EMAIL_ALREADY_VERIFIED: "EMAIL_ALREADY_VERIFIED",
|
|
21
21
|
TOKEN_INVALID: "TOKEN_INVALID",
|
|
22
|
+
TOTP_INVALID: "TOTP_INVALID",
|
|
23
|
+
CAPTCHA_REQUIRED: "CAPTCHA_REQUIRED",
|
|
24
|
+
CAPTCHA_INVALID: "CAPTCHA_INVALID",
|
|
22
25
|
INSUFFICIENT_BALANCE: "INSUFFICIENT_BALANCE",
|
|
23
26
|
PURCHASE_LIMIT_EXCEEDED: "PURCHASE_LIMIT_EXCEEDED",
|
|
24
27
|
PURCHASE_CAP_EXCEEDED: "PURCHASE_CAP_EXCEEDED",
|
|
@@ -250,7 +253,8 @@ var UserSettingsSchema = z.object({
|
|
|
250
253
|
var DailyBonusDaySchema = z.object({
|
|
251
254
|
dayIndex: z.number().int().min(1),
|
|
252
255
|
rewardNmn: MoneyStringSchema,
|
|
253
|
-
surprise: z.boolean()
|
|
256
|
+
surprise: z.boolean(),
|
|
257
|
+
claimedNmn: MoneyStringSchema.nullable()
|
|
254
258
|
});
|
|
255
259
|
var DailyBonusStatusSchema = z.object({
|
|
256
260
|
currentStreak: z.number().int().nonnegative(),
|
|
@@ -258,6 +262,8 @@ var DailyBonusStatusSchema = z.object({
|
|
|
258
262
|
claimableToday: z.boolean(),
|
|
259
263
|
todayDayIndex: z.number().int().min(1),
|
|
260
264
|
nextRewardNmn: MoneyStringSchema,
|
|
265
|
+
surpriseMinNmn: MoneyStringSchema,
|
|
266
|
+
surpriseMaxNmn: MoneyStringSchema,
|
|
261
267
|
days: z.array(DailyBonusDaySchema)
|
|
262
268
|
});
|
|
263
269
|
var DailyBonusClaimResultSchema = z.object({
|
|
@@ -379,7 +385,8 @@ var RegisterCommand;
|
|
|
379
385
|
RegisterCommand2.RequestSchema = z.object({
|
|
380
386
|
email: z.string().email().max(254),
|
|
381
387
|
password: z.string().min(8).max(128),
|
|
382
|
-
referralCode: z.string().min(4).max(64).optional()
|
|
388
|
+
referralCode: z.string().min(4).max(64).optional(),
|
|
389
|
+
captchaToken: z.string().max(4096).optional()
|
|
383
390
|
});
|
|
384
391
|
RegisterCommand2.ResponseSchema = z.object({
|
|
385
392
|
userId: z.string().uuid()
|
|
@@ -391,7 +398,8 @@ var LoginCommand;
|
|
|
391
398
|
LoginCommand2.RequestSchema = z.object({
|
|
392
399
|
email: z.string().email().max(254),
|
|
393
400
|
password: z.string().min(1).max(128),
|
|
394
|
-
totp: z.string().regex(/^\d{6}$/).optional()
|
|
401
|
+
totp: z.string().regex(/^\d{6}$/).optional(),
|
|
402
|
+
captchaToken: z.string().max(4096).optional()
|
|
395
403
|
});
|
|
396
404
|
LoginCommand2.ResponseSchema = z.object({
|
|
397
405
|
user: UserProfileSchema
|
|
@@ -466,6 +474,18 @@ var ResetPasswordCommand;
|
|
|
466
474
|
});
|
|
467
475
|
ResetPasswordCommand2.ResponseSchema = z.object({ reset: z.boolean() });
|
|
468
476
|
})(ResetPasswordCommand || (ResetPasswordCommand = {}));
|
|
477
|
+
var ThreatLevelSchema = z.enum(["calm", "elevated", "high", "attack"]);
|
|
478
|
+
var CaptchaPolicyCommand;
|
|
479
|
+
((CaptchaPolicyCommand2) => {
|
|
480
|
+
CaptchaPolicyCommand2.endpointDetails = endpoint("GET", "/auth/captcha-policy", "Whether the auth forms must show a captcha");
|
|
481
|
+
CaptchaPolicyCommand2.ResponseSchema = z.object({
|
|
482
|
+
provider: z.enum(["turnstile", "none"]),
|
|
483
|
+
siteKey: z.string().nullable(),
|
|
484
|
+
register: z.boolean(),
|
|
485
|
+
login: z.boolean(),
|
|
486
|
+
level: ThreatLevelSchema
|
|
487
|
+
});
|
|
488
|
+
})(CaptchaPolicyCommand || (CaptchaPolicyCommand = {}));
|
|
469
489
|
|
|
470
490
|
// src/commands/wallet/get-wallet.command.ts
|
|
471
491
|
var GetWalletCommand;
|
|
@@ -977,7 +997,8 @@ var REST_API = {
|
|
|
977
997
|
VERIFY_EMAIL: "/auth/verify-email",
|
|
978
998
|
RESEND_VERIFICATION: "/auth/verify-email/resend",
|
|
979
999
|
FORGOT_PASSWORD: "/auth/password/forgot",
|
|
980
|
-
RESET_PASSWORD: "/auth/password/reset"
|
|
1000
|
+
RESET_PASSWORD: "/auth/password/reset",
|
|
1001
|
+
CAPTCHA_POLICY: "/auth/captcha-policy"
|
|
981
1002
|
},
|
|
982
1003
|
WALLET: {
|
|
983
1004
|
OVERVIEW: "/wallet",
|
|
@@ -1058,6 +1079,6 @@ var REST_API = {
|
|
|
1058
1079
|
var API_PREFIX = "/api";
|
|
1059
1080
|
var API_VERSION = "v1";
|
|
1060
1081
|
|
|
1061
|
-
export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, AssetBalanceSchema, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CancelOrderCommand, CancelWithdrawalCommand, ChartPeriodSchema, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, DailyBonusClaimResultSchema, DailyBonusDaySchema, DailyBonusStatusSchema, DepositAddressCommand, DepositAddressSchema, DepositEntrySchema, DepositStatusSchema, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, EarningsOverviewSchema, ErrorResponseSchema, FUNDING_ASSET, ForgotPasswordCommand, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, IncomeOverviewSchema, IncomePeriodSchema, LeaderboardEntrySchema, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, LinkProviderSchema, LinkTelegramCommand, LinkedAccountSchema, ListDepositsCommand, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, NotificationSchema, NotificationTypeSchema, OrderBookLevelSchema, OrderBookSchema, OrderSchema, OrderSideSchema, OrderStatusSchema, OrderTypeSchema, PackageSchema, PackageStatusSchema, PackagesOverviewSchema, PaginatedSchema, PaginationQuerySchema, PartnerAccrualSchema, PartnerLevelSchema, PartnersOverviewSchema, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, PublicTradeSchema, REST_API, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, SessionInfoSchema, SetupTotpCommand, SlideButtonStyleSchema, SlideKindSchema, SlideLinkTargetSchema, SlideSchema, SlidesResponseSchema, SwapCommand, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, TicketAuthorTypeSchema, TicketBodySchema, TicketCategorySchema, TicketDetailSchema, TicketMessageSchema, TicketStatusSchema, TicketSummarySchema, TokenPriceSchema, TradeLimitsSchema, TradeResultSchema, TransactionSchema, TransactionStatusSchema, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, UserProfileSchema, UserRankSchema, UserSettingsSchema, UserStatusSchema, UuidSchema, VerifyEmailCommand, WalletOverviewSchema, WithdrawalSchema, WithdrawalStatusSchema, assetDecimals, endpoint };
|
|
1082
|
+
export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, AssetBalanceSchema, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CancelOrderCommand, CancelWithdrawalCommand, CaptchaPolicyCommand, ChartPeriodSchema, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, DailyBonusClaimResultSchema, DailyBonusDaySchema, DailyBonusStatusSchema, DepositAddressCommand, DepositAddressSchema, DepositEntrySchema, DepositStatusSchema, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, EarningsOverviewSchema, ErrorResponseSchema, FUNDING_ASSET, ForgotPasswordCommand, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, IncomeOverviewSchema, IncomePeriodSchema, LeaderboardEntrySchema, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, LinkProviderSchema, LinkTelegramCommand, LinkedAccountSchema, ListDepositsCommand, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, NotificationSchema, NotificationTypeSchema, OrderBookLevelSchema, OrderBookSchema, OrderSchema, OrderSideSchema, OrderStatusSchema, OrderTypeSchema, PackageSchema, PackageStatusSchema, PackagesOverviewSchema, PaginatedSchema, PaginationQuerySchema, PartnerAccrualSchema, PartnerLevelSchema, PartnersOverviewSchema, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, PublicTradeSchema, REST_API, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, SessionInfoSchema, SetupTotpCommand, SlideButtonStyleSchema, SlideKindSchema, SlideLinkTargetSchema, SlideSchema, SlidesResponseSchema, SwapCommand, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, ThreatLevelSchema, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, TicketAuthorTypeSchema, TicketBodySchema, TicketCategorySchema, TicketDetailSchema, TicketMessageSchema, TicketStatusSchema, TicketSummarySchema, TokenPriceSchema, TradeLimitsSchema, TradeResultSchema, TransactionSchema, TransactionStatusSchema, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, UserProfileSchema, UserRankSchema, UserSettingsSchema, UserStatusSchema, UuidSchema, VerifyEmailCommand, WalletOverviewSchema, WithdrawalSchema, WithdrawalStatusSchema, assetDecimals, endpoint };
|
|
1062
1083
|
//# sourceMappingURL=index.js.map
|
|
1063
1084
|
//# sourceMappingURL=index.js.map
|