@numen-crypto/contract 0.10.0 → 0.12.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.cts CHANGED
@@ -850,8 +850,6 @@ declare const DailyBonusStatusSchema: z.ZodObject<{
850
850
  claimableToday: z.ZodBoolean;
851
851
  todayDayIndex: z.ZodNumber;
852
852
  nextRewardNmn: z.ZodString;
853
- surpriseMinNmn: z.ZodString;
854
- surpriseMaxNmn: z.ZodString;
855
853
  days: z.ZodArray<z.ZodObject<{
856
854
  dayIndex: z.ZodNumber;
857
855
  rewardNmn: z.ZodString;
@@ -874,8 +872,6 @@ declare const DailyBonusStatusSchema: z.ZodObject<{
874
872
  claimableToday: boolean;
875
873
  todayDayIndex: number;
876
874
  nextRewardNmn: string;
877
- surpriseMinNmn: string;
878
- surpriseMaxNmn: string;
879
875
  days: {
880
876
  dayIndex: number;
881
877
  rewardNmn: string;
@@ -888,8 +884,6 @@ declare const DailyBonusStatusSchema: z.ZodObject<{
888
884
  claimableToday: boolean;
889
885
  todayDayIndex: number;
890
886
  nextRewardNmn: string;
891
- surpriseMinNmn: string;
892
- surpriseMaxNmn: string;
893
887
  days: {
894
888
  dayIndex: number;
895
889
  rewardNmn: string;
@@ -2987,6 +2981,50 @@ declare namespace ConfirmEmailChangeCommand {
2987
2981
  }>;
2988
2982
  type Response = z.infer<typeof ResponseSchema>;
2989
2983
  }
2984
+ declare namespace RequestPasswordChangeCommand {
2985
+ const endpointDetails: EndpointDetails;
2986
+ const RequestSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
2987
+ type Request = z.infer<typeof RequestSchema>;
2988
+ const ResponseSchema: z.ZodObject<{
2989
+ method: z.ZodEnum<["totp", "email"]>;
2990
+ sent: z.ZodBoolean;
2991
+ }, "strip", z.ZodTypeAny, {
2992
+ sent: boolean;
2993
+ method: "email" | "totp";
2994
+ }, {
2995
+ sent: boolean;
2996
+ method: "email" | "totp";
2997
+ }>;
2998
+ type Response = z.infer<typeof ResponseSchema>;
2999
+ }
3000
+ declare namespace ChangePasswordCommand {
3001
+ const endpointDetails: EndpointDetails;
3002
+ const RequestSchema: z.ZodObject<{
3003
+ currentPassword: z.ZodString;
3004
+ newPassword: z.ZodString;
3005
+ totp: z.ZodOptional<z.ZodString>;
3006
+ code: z.ZodOptional<z.ZodString>;
3007
+ }, "strip", z.ZodTypeAny, {
3008
+ currentPassword: string;
3009
+ newPassword: string;
3010
+ code?: string | undefined;
3011
+ totp?: string | undefined;
3012
+ }, {
3013
+ currentPassword: string;
3014
+ newPassword: string;
3015
+ code?: string | undefined;
3016
+ totp?: string | undefined;
3017
+ }>;
3018
+ type Request = z.infer<typeof RequestSchema>;
3019
+ const ResponseSchema: z.ZodObject<{
3020
+ changed: z.ZodBoolean;
3021
+ }, "strip", z.ZodTypeAny, {
3022
+ changed: boolean;
3023
+ }, {
3024
+ changed: boolean;
3025
+ }>;
3026
+ type Response = z.infer<typeof ResponseSchema>;
3027
+ }
2990
3028
  declare namespace DisableTotpCommand {
2991
3029
  const endpointDetails: EndpointDetails;
2992
3030
  const RequestSchema: z.ZodObject<{
@@ -3148,8 +3186,6 @@ declare namespace GetDailyBonusCommand {
3148
3186
  claimableToday: z.ZodBoolean;
3149
3187
  todayDayIndex: z.ZodNumber;
3150
3188
  nextRewardNmn: z.ZodString;
3151
- surpriseMinNmn: z.ZodString;
3152
- surpriseMaxNmn: z.ZodString;
3153
3189
  days: z.ZodArray<z.ZodObject<{
3154
3190
  dayIndex: z.ZodNumber;
3155
3191
  rewardNmn: z.ZodString;
@@ -3172,8 +3208,6 @@ declare namespace GetDailyBonusCommand {
3172
3208
  claimableToday: boolean;
3173
3209
  todayDayIndex: number;
3174
3210
  nextRewardNmn: string;
3175
- surpriseMinNmn: string;
3176
- surpriseMaxNmn: string;
3177
3211
  days: {
3178
3212
  dayIndex: number;
3179
3213
  rewardNmn: string;
@@ -3186,8 +3220,6 @@ declare namespace GetDailyBonusCommand {
3186
3220
  claimableToday: boolean;
3187
3221
  todayDayIndex: number;
3188
3222
  nextRewardNmn: string;
3189
- surpriseMinNmn: string;
3190
- surpriseMaxNmn: string;
3191
3223
  days: {
3192
3224
  dayIndex: number;
3193
3225
  rewardNmn: string;
@@ -4400,6 +4432,8 @@ declare const REST_API: {
4400
4432
  readonly SETTINGS: {
4401
4433
  readonly EMAIL_REQUEST: "/settings/email/request";
4402
4434
  readonly EMAIL_CONFIRM: "/settings/email/confirm";
4435
+ readonly PASSWORD_REQUEST: "/settings/password/request";
4436
+ readonly PASSWORD_CHANGE: "/settings/password";
4403
4437
  readonly TOTP_DISABLE: "/auth/totp/disable";
4404
4438
  readonly PROFILE: "/settings/profile";
4405
4439
  readonly AVATAR_UPLOAD_URL: "/settings/avatar/upload-url";
@@ -4434,4 +4468,4 @@ declare const REST_API: {
4434
4468
  declare const API_PREFIX = "/api";
4435
4469
  declare const API_VERSION = "v1";
4436
4470
 
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 };
4471
+ export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CancelOrderCommand, CancelWithdrawalCommand, CaptchaPolicyCommand, ChangePasswordCommand, 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, RequestPasswordChangeCommand, 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
@@ -850,8 +850,6 @@ declare const DailyBonusStatusSchema: z.ZodObject<{
850
850
  claimableToday: z.ZodBoolean;
851
851
  todayDayIndex: z.ZodNumber;
852
852
  nextRewardNmn: z.ZodString;
853
- surpriseMinNmn: z.ZodString;
854
- surpriseMaxNmn: z.ZodString;
855
853
  days: z.ZodArray<z.ZodObject<{
856
854
  dayIndex: z.ZodNumber;
857
855
  rewardNmn: z.ZodString;
@@ -874,8 +872,6 @@ declare const DailyBonusStatusSchema: z.ZodObject<{
874
872
  claimableToday: boolean;
875
873
  todayDayIndex: number;
876
874
  nextRewardNmn: string;
877
- surpriseMinNmn: string;
878
- surpriseMaxNmn: string;
879
875
  days: {
880
876
  dayIndex: number;
881
877
  rewardNmn: string;
@@ -888,8 +884,6 @@ declare const DailyBonusStatusSchema: z.ZodObject<{
888
884
  claimableToday: boolean;
889
885
  todayDayIndex: number;
890
886
  nextRewardNmn: string;
891
- surpriseMinNmn: string;
892
- surpriseMaxNmn: string;
893
887
  days: {
894
888
  dayIndex: number;
895
889
  rewardNmn: string;
@@ -2987,6 +2981,50 @@ declare namespace ConfirmEmailChangeCommand {
2987
2981
  }>;
2988
2982
  type Response = z.infer<typeof ResponseSchema>;
2989
2983
  }
2984
+ declare namespace RequestPasswordChangeCommand {
2985
+ const endpointDetails: EndpointDetails;
2986
+ const RequestSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
2987
+ type Request = z.infer<typeof RequestSchema>;
2988
+ const ResponseSchema: z.ZodObject<{
2989
+ method: z.ZodEnum<["totp", "email"]>;
2990
+ sent: z.ZodBoolean;
2991
+ }, "strip", z.ZodTypeAny, {
2992
+ sent: boolean;
2993
+ method: "email" | "totp";
2994
+ }, {
2995
+ sent: boolean;
2996
+ method: "email" | "totp";
2997
+ }>;
2998
+ type Response = z.infer<typeof ResponseSchema>;
2999
+ }
3000
+ declare namespace ChangePasswordCommand {
3001
+ const endpointDetails: EndpointDetails;
3002
+ const RequestSchema: z.ZodObject<{
3003
+ currentPassword: z.ZodString;
3004
+ newPassword: z.ZodString;
3005
+ totp: z.ZodOptional<z.ZodString>;
3006
+ code: z.ZodOptional<z.ZodString>;
3007
+ }, "strip", z.ZodTypeAny, {
3008
+ currentPassword: string;
3009
+ newPassword: string;
3010
+ code?: string | undefined;
3011
+ totp?: string | undefined;
3012
+ }, {
3013
+ currentPassword: string;
3014
+ newPassword: string;
3015
+ code?: string | undefined;
3016
+ totp?: string | undefined;
3017
+ }>;
3018
+ type Request = z.infer<typeof RequestSchema>;
3019
+ const ResponseSchema: z.ZodObject<{
3020
+ changed: z.ZodBoolean;
3021
+ }, "strip", z.ZodTypeAny, {
3022
+ changed: boolean;
3023
+ }, {
3024
+ changed: boolean;
3025
+ }>;
3026
+ type Response = z.infer<typeof ResponseSchema>;
3027
+ }
2990
3028
  declare namespace DisableTotpCommand {
2991
3029
  const endpointDetails: EndpointDetails;
2992
3030
  const RequestSchema: z.ZodObject<{
@@ -3148,8 +3186,6 @@ declare namespace GetDailyBonusCommand {
3148
3186
  claimableToday: z.ZodBoolean;
3149
3187
  todayDayIndex: z.ZodNumber;
3150
3188
  nextRewardNmn: z.ZodString;
3151
- surpriseMinNmn: z.ZodString;
3152
- surpriseMaxNmn: z.ZodString;
3153
3189
  days: z.ZodArray<z.ZodObject<{
3154
3190
  dayIndex: z.ZodNumber;
3155
3191
  rewardNmn: z.ZodString;
@@ -3172,8 +3208,6 @@ declare namespace GetDailyBonusCommand {
3172
3208
  claimableToday: boolean;
3173
3209
  todayDayIndex: number;
3174
3210
  nextRewardNmn: string;
3175
- surpriseMinNmn: string;
3176
- surpriseMaxNmn: string;
3177
3211
  days: {
3178
3212
  dayIndex: number;
3179
3213
  rewardNmn: string;
@@ -3186,8 +3220,6 @@ declare namespace GetDailyBonusCommand {
3186
3220
  claimableToday: boolean;
3187
3221
  todayDayIndex: number;
3188
3222
  nextRewardNmn: string;
3189
- surpriseMinNmn: string;
3190
- surpriseMaxNmn: string;
3191
3223
  days: {
3192
3224
  dayIndex: number;
3193
3225
  rewardNmn: string;
@@ -4400,6 +4432,8 @@ declare const REST_API: {
4400
4432
  readonly SETTINGS: {
4401
4433
  readonly EMAIL_REQUEST: "/settings/email/request";
4402
4434
  readonly EMAIL_CONFIRM: "/settings/email/confirm";
4435
+ readonly PASSWORD_REQUEST: "/settings/password/request";
4436
+ readonly PASSWORD_CHANGE: "/settings/password";
4403
4437
  readonly TOTP_DISABLE: "/auth/totp/disable";
4404
4438
  readonly PROFILE: "/settings/profile";
4405
4439
  readonly AVATAR_UPLOAD_URL: "/settings/avatar/upload-url";
@@ -4434,4 +4468,4 @@ declare const REST_API: {
4434
4468
  declare const API_PREFIX = "/api";
4435
4469
  declare const API_VERSION = "v1";
4436
4470
 
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 };
4471
+ export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CancelOrderCommand, CancelWithdrawalCommand, CaptchaPolicyCommand, ChangePasswordCommand, 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, RequestPasswordChangeCommand, 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
@@ -262,8 +262,6 @@ var DailyBonusStatusSchema = z.object({
262
262
  claimableToday: z.boolean(),
263
263
  todayDayIndex: z.number().int().min(1),
264
264
  nextRewardNmn: MoneyStringSchema,
265
- surpriseMinNmn: MoneyStringSchema,
266
- surpriseMaxNmn: MoneyStringSchema,
267
265
  days: z.array(DailyBonusDaySchema)
268
266
  });
269
267
  var DailyBonusClaimResultSchema = z.object({
@@ -477,7 +475,11 @@ var ResetPasswordCommand;
477
475
  var ThreatLevelSchema = z.enum(["calm", "elevated", "high", "attack"]);
478
476
  var CaptchaPolicyCommand;
479
477
  ((CaptchaPolicyCommand2) => {
480
- CaptchaPolicyCommand2.endpointDetails = endpoint("GET", "/auth/captcha-policy", "Whether the auth forms must show a captcha");
478
+ CaptchaPolicyCommand2.endpointDetails = endpoint(
479
+ "GET",
480
+ "/auth/captcha-policy",
481
+ "Whether the auth forms must show a captcha"
482
+ );
481
483
  CaptchaPolicyCommand2.ResponseSchema = z.object({
482
484
  provider: z.enum(["turnstile", "none"]),
483
485
  siteKey: z.string().nullable(),
@@ -771,6 +773,30 @@ var ConfirmEmailChangeCommand;
771
773
  });
772
774
  ConfirmEmailChangeCommand2.ResponseSchema = z.object({ email: z.string().email() });
773
775
  })(ConfirmEmailChangeCommand || (ConfirmEmailChangeCommand = {}));
776
+ var RequestPasswordChangeCommand;
777
+ ((RequestPasswordChangeCommand2) => {
778
+ RequestPasswordChangeCommand2.endpointDetails = endpoint(
779
+ "POST",
780
+ "/settings/password/request",
781
+ "Start a password change and learn which second factor is required"
782
+ );
783
+ RequestPasswordChangeCommand2.RequestSchema = z.object({});
784
+ RequestPasswordChangeCommand2.ResponseSchema = z.object({
785
+ method: z.enum(["totp", "email"]),
786
+ sent: z.boolean()
787
+ });
788
+ })(RequestPasswordChangeCommand || (RequestPasswordChangeCommand = {}));
789
+ var ChangePasswordCommand;
790
+ ((ChangePasswordCommand2) => {
791
+ ChangePasswordCommand2.endpointDetails = endpoint("POST", "/settings/password", "Change the password of the signed-in user");
792
+ ChangePasswordCommand2.RequestSchema = z.object({
793
+ currentPassword: z.string().min(8).max(128),
794
+ newPassword: z.string().min(8).max(128),
795
+ totp: z.string().regex(/^\d{6}$/).optional(),
796
+ code: z.string().regex(/^\d{6}$/).optional()
797
+ });
798
+ ChangePasswordCommand2.ResponseSchema = z.object({ changed: z.boolean() });
799
+ })(ChangePasswordCommand || (ChangePasswordCommand = {}));
774
800
  var DisableTotpCommand;
775
801
  ((DisableTotpCommand2) => {
776
802
  DisableTotpCommand2.endpointDetails = endpoint("POST", "/auth/totp/disable", "Disable TOTP two-factor auth");
@@ -1045,6 +1071,8 @@ var REST_API = {
1045
1071
  SETTINGS: {
1046
1072
  EMAIL_REQUEST: "/settings/email/request",
1047
1073
  EMAIL_CONFIRM: "/settings/email/confirm",
1074
+ PASSWORD_REQUEST: "/settings/password/request",
1075
+ PASSWORD_CHANGE: "/settings/password",
1048
1076
  TOTP_DISABLE: "/auth/totp/disable",
1049
1077
  PROFILE: "/settings/profile",
1050
1078
  AVATAR_UPLOAD_URL: "/settings/avatar/upload-url",
@@ -1079,6 +1107,6 @@ var REST_API = {
1079
1107
  var API_PREFIX = "/api";
1080
1108
  var API_VERSION = "v1";
1081
1109
 
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 };
1110
+ export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, AssetBalanceSchema, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CancelOrderCommand, CancelWithdrawalCommand, CaptchaPolicyCommand, ChangePasswordCommand, 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, RequestPasswordChangeCommand, 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 };
1083
1111
  //# sourceMappingURL=index.js.map
1084
1112
  //# sourceMappingURL=index.js.map