@numen-crypto/contract 0.2.4 → 0.3.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
@@ -153,6 +153,17 @@ declare const DepositableAssetSchema: z.ZodEnum<["USDT", "BTC", "ETH", "BNB", "T
153
153
  type DepositableAsset = z.infer<typeof DepositableAssetSchema>;
154
154
  declare const TOKEN_ASSET: "NMN";
155
155
  declare const FUNDING_ASSET: "USDT";
156
+ declare const ASSET_DECIMALS: {
157
+ readonly NMN: 4;
158
+ readonly USDT: 2;
159
+ readonly BTC: 8;
160
+ readonly ETH: 8;
161
+ readonly BNB: 8;
162
+ readonly TRX: 6;
163
+ readonly SOL: 6;
164
+ };
165
+ declare const NMN_PRICE_DECIMALS = 8;
166
+ declare function assetDecimals(asset: AssetSymbol): number;
156
167
  declare const AssetBalanceSchema: z.ZodObject<{
157
168
  asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
158
169
  name: z.ZodString;
@@ -473,6 +484,89 @@ declare const PackagesOverviewSchema: z.ZodObject<{
473
484
  }>;
474
485
  type PackagesOverview = z.infer<typeof PackagesOverviewSchema>;
475
486
 
487
+ declare const SlideKindSchema: z.ZodEnum<["image", "text"]>;
488
+ type SlideKind = z.infer<typeof SlideKindSchema>;
489
+ declare const SlideButtonStyleSchema: z.ZodEnum<["primary", "secondary", "outline", "ghost"]>;
490
+ type SlideButtonStyle = z.infer<typeof SlideButtonStyleSchema>;
491
+ declare const SlideLinkTargetSchema: z.ZodEnum<["_self", "_blank"]>;
492
+ type SlideLinkTarget = z.infer<typeof SlideLinkTargetSchema>;
493
+ declare const SlideSchema: z.ZodObject<{
494
+ id: z.ZodString;
495
+ kind: z.ZodEnum<["image", "text"]>;
496
+ imageUrl: z.ZodNullable<z.ZodString>;
497
+ tag: z.ZodNullable<z.ZodString>;
498
+ title: z.ZodNullable<z.ZodString>;
499
+ body: z.ZodNullable<z.ZodString>;
500
+ linkUrl: z.ZodNullable<z.ZodString>;
501
+ linkTarget: z.ZodEnum<["_self", "_blank"]>;
502
+ wholeSlideLink: z.ZodBoolean;
503
+ buttonLabel: z.ZodNullable<z.ZodString>;
504
+ buttonStyle: z.ZodNullable<z.ZodEnum<["primary", "secondary", "outline", "ghost"]>>;
505
+ }, "strip", z.ZodTypeAny, {
506
+ id: string;
507
+ kind: "image" | "text";
508
+ imageUrl: string | null;
509
+ tag: string | null;
510
+ title: string | null;
511
+ body: string | null;
512
+ linkUrl: string | null;
513
+ linkTarget: "_self" | "_blank";
514
+ wholeSlideLink: boolean;
515
+ buttonLabel: string | null;
516
+ buttonStyle: "primary" | "secondary" | "outline" | "ghost" | null;
517
+ }, {
518
+ id: string;
519
+ kind: "image" | "text";
520
+ imageUrl: string | null;
521
+ tag: string | null;
522
+ title: string | null;
523
+ body: string | null;
524
+ linkUrl: string | null;
525
+ linkTarget: "_self" | "_blank";
526
+ wholeSlideLink: boolean;
527
+ buttonLabel: string | null;
528
+ buttonStyle: "primary" | "secondary" | "outline" | "ghost" | null;
529
+ }>;
530
+ type Slide = z.infer<typeof SlideSchema>;
531
+ declare const SlidesResponseSchema: z.ZodArray<z.ZodObject<{
532
+ id: z.ZodString;
533
+ kind: z.ZodEnum<["image", "text"]>;
534
+ imageUrl: z.ZodNullable<z.ZodString>;
535
+ tag: z.ZodNullable<z.ZodString>;
536
+ title: z.ZodNullable<z.ZodString>;
537
+ body: z.ZodNullable<z.ZodString>;
538
+ linkUrl: z.ZodNullable<z.ZodString>;
539
+ linkTarget: z.ZodEnum<["_self", "_blank"]>;
540
+ wholeSlideLink: z.ZodBoolean;
541
+ buttonLabel: z.ZodNullable<z.ZodString>;
542
+ buttonStyle: z.ZodNullable<z.ZodEnum<["primary", "secondary", "outline", "ghost"]>>;
543
+ }, "strip", z.ZodTypeAny, {
544
+ id: string;
545
+ kind: "image" | "text";
546
+ imageUrl: string | null;
547
+ tag: string | null;
548
+ title: string | null;
549
+ body: string | null;
550
+ linkUrl: string | null;
551
+ linkTarget: "_self" | "_blank";
552
+ wholeSlideLink: boolean;
553
+ buttonLabel: string | null;
554
+ buttonStyle: "primary" | "secondary" | "outline" | "ghost" | null;
555
+ }, {
556
+ id: string;
557
+ kind: "image" | "text";
558
+ imageUrl: string | null;
559
+ tag: string | null;
560
+ title: string | null;
561
+ body: string | null;
562
+ linkUrl: string | null;
563
+ linkTarget: "_self" | "_blank";
564
+ wholeSlideLink: boolean;
565
+ buttonLabel: string | null;
566
+ buttonStyle: "primary" | "secondary" | "outline" | "ghost" | null;
567
+ }>, "many">;
568
+ type SlidesResponse = z.infer<typeof SlidesResponseSchema>;
569
+
476
570
  declare const RankDefSchema: z.ZodObject<{
477
571
  name: z.ZodString;
478
572
  order: z.ZodNumber;
@@ -2165,6 +2259,48 @@ declare namespace BuyPackageCommand {
2165
2259
  type Response = z.infer<typeof ResponseSchema>;
2166
2260
  }
2167
2261
 
2262
+ declare namespace GetSlidesCommand {
2263
+ const endpointDetails: EndpointDetails;
2264
+ const ResponseSchema: zod.ZodArray<zod.ZodObject<{
2265
+ id: zod.ZodString;
2266
+ kind: zod.ZodEnum<["image", "text"]>;
2267
+ imageUrl: zod.ZodNullable<zod.ZodString>;
2268
+ tag: zod.ZodNullable<zod.ZodString>;
2269
+ title: zod.ZodNullable<zod.ZodString>;
2270
+ body: zod.ZodNullable<zod.ZodString>;
2271
+ linkUrl: zod.ZodNullable<zod.ZodString>;
2272
+ linkTarget: zod.ZodEnum<["_self", "_blank"]>;
2273
+ wholeSlideLink: zod.ZodBoolean;
2274
+ buttonLabel: zod.ZodNullable<zod.ZodString>;
2275
+ buttonStyle: zod.ZodNullable<zod.ZodEnum<["primary", "secondary", "outline", "ghost"]>>;
2276
+ }, "strip", zod.ZodTypeAny, {
2277
+ id: string;
2278
+ kind: "image" | "text";
2279
+ imageUrl: string | null;
2280
+ tag: string | null;
2281
+ title: string | null;
2282
+ body: string | null;
2283
+ linkUrl: string | null;
2284
+ linkTarget: "_self" | "_blank";
2285
+ wholeSlideLink: boolean;
2286
+ buttonLabel: string | null;
2287
+ buttonStyle: "primary" | "secondary" | "outline" | "ghost" | null;
2288
+ }, {
2289
+ id: string;
2290
+ kind: "image" | "text";
2291
+ imageUrl: string | null;
2292
+ tag: string | null;
2293
+ title: string | null;
2294
+ body: string | null;
2295
+ linkUrl: string | null;
2296
+ linkTarget: "_self" | "_blank";
2297
+ wholeSlideLink: boolean;
2298
+ buttonLabel: string | null;
2299
+ buttonStyle: "primary" | "secondary" | "outline" | "ghost" | null;
2300
+ }>, "many">;
2301
+ type Response = SlidesResponse;
2302
+ }
2303
+
2168
2304
  declare namespace GetRanksCommand {
2169
2305
  const endpointDetails: EndpointDetails;
2170
2306
  const ResponseSchema: z.ZodObject<{
@@ -3787,6 +3923,9 @@ declare const REST_API: {
3787
3923
  readonly OVERVIEW: "/packages";
3788
3924
  readonly BUY: "/packages/:id/buy";
3789
3925
  };
3926
+ readonly CONTENT: {
3927
+ readonly SLIDES: "/content/slides";
3928
+ };
3790
3929
  readonly RANKS: {
3791
3930
  readonly LIST: "/ranks";
3792
3931
  };
@@ -3836,4 +3975,4 @@ declare const REST_API: {
3836
3975
  declare const API_PREFIX = "/api";
3837
3976
  declare const API_VERSION = "v1";
3838
3977
 
3839
- export { API_PREFIX, API_VERSION, 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 DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, 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, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, 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, type SessionInfo, SessionInfoSchema, SetupTotpCommand, 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 TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, endpoint };
3978
+ 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 DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, 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, 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, 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 TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, assetDecimals, endpoint };
package/dist/index.d.ts CHANGED
@@ -153,6 +153,17 @@ declare const DepositableAssetSchema: z.ZodEnum<["USDT", "BTC", "ETH", "BNB", "T
153
153
  type DepositableAsset = z.infer<typeof DepositableAssetSchema>;
154
154
  declare const TOKEN_ASSET: "NMN";
155
155
  declare const FUNDING_ASSET: "USDT";
156
+ declare const ASSET_DECIMALS: {
157
+ readonly NMN: 4;
158
+ readonly USDT: 2;
159
+ readonly BTC: 8;
160
+ readonly ETH: 8;
161
+ readonly BNB: 8;
162
+ readonly TRX: 6;
163
+ readonly SOL: 6;
164
+ };
165
+ declare const NMN_PRICE_DECIMALS = 8;
166
+ declare function assetDecimals(asset: AssetSymbol): number;
156
167
  declare const AssetBalanceSchema: z.ZodObject<{
157
168
  asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
158
169
  name: z.ZodString;
@@ -473,6 +484,89 @@ declare const PackagesOverviewSchema: z.ZodObject<{
473
484
  }>;
474
485
  type PackagesOverview = z.infer<typeof PackagesOverviewSchema>;
475
486
 
487
+ declare const SlideKindSchema: z.ZodEnum<["image", "text"]>;
488
+ type SlideKind = z.infer<typeof SlideKindSchema>;
489
+ declare const SlideButtonStyleSchema: z.ZodEnum<["primary", "secondary", "outline", "ghost"]>;
490
+ type SlideButtonStyle = z.infer<typeof SlideButtonStyleSchema>;
491
+ declare const SlideLinkTargetSchema: z.ZodEnum<["_self", "_blank"]>;
492
+ type SlideLinkTarget = z.infer<typeof SlideLinkTargetSchema>;
493
+ declare const SlideSchema: z.ZodObject<{
494
+ id: z.ZodString;
495
+ kind: z.ZodEnum<["image", "text"]>;
496
+ imageUrl: z.ZodNullable<z.ZodString>;
497
+ tag: z.ZodNullable<z.ZodString>;
498
+ title: z.ZodNullable<z.ZodString>;
499
+ body: z.ZodNullable<z.ZodString>;
500
+ linkUrl: z.ZodNullable<z.ZodString>;
501
+ linkTarget: z.ZodEnum<["_self", "_blank"]>;
502
+ wholeSlideLink: z.ZodBoolean;
503
+ buttonLabel: z.ZodNullable<z.ZodString>;
504
+ buttonStyle: z.ZodNullable<z.ZodEnum<["primary", "secondary", "outline", "ghost"]>>;
505
+ }, "strip", z.ZodTypeAny, {
506
+ id: string;
507
+ kind: "image" | "text";
508
+ imageUrl: string | null;
509
+ tag: string | null;
510
+ title: string | null;
511
+ body: string | null;
512
+ linkUrl: string | null;
513
+ linkTarget: "_self" | "_blank";
514
+ wholeSlideLink: boolean;
515
+ buttonLabel: string | null;
516
+ buttonStyle: "primary" | "secondary" | "outline" | "ghost" | null;
517
+ }, {
518
+ id: string;
519
+ kind: "image" | "text";
520
+ imageUrl: string | null;
521
+ tag: string | null;
522
+ title: string | null;
523
+ body: string | null;
524
+ linkUrl: string | null;
525
+ linkTarget: "_self" | "_blank";
526
+ wholeSlideLink: boolean;
527
+ buttonLabel: string | null;
528
+ buttonStyle: "primary" | "secondary" | "outline" | "ghost" | null;
529
+ }>;
530
+ type Slide = z.infer<typeof SlideSchema>;
531
+ declare const SlidesResponseSchema: z.ZodArray<z.ZodObject<{
532
+ id: z.ZodString;
533
+ kind: z.ZodEnum<["image", "text"]>;
534
+ imageUrl: z.ZodNullable<z.ZodString>;
535
+ tag: z.ZodNullable<z.ZodString>;
536
+ title: z.ZodNullable<z.ZodString>;
537
+ body: z.ZodNullable<z.ZodString>;
538
+ linkUrl: z.ZodNullable<z.ZodString>;
539
+ linkTarget: z.ZodEnum<["_self", "_blank"]>;
540
+ wholeSlideLink: z.ZodBoolean;
541
+ buttonLabel: z.ZodNullable<z.ZodString>;
542
+ buttonStyle: z.ZodNullable<z.ZodEnum<["primary", "secondary", "outline", "ghost"]>>;
543
+ }, "strip", z.ZodTypeAny, {
544
+ id: string;
545
+ kind: "image" | "text";
546
+ imageUrl: string | null;
547
+ tag: string | null;
548
+ title: string | null;
549
+ body: string | null;
550
+ linkUrl: string | null;
551
+ linkTarget: "_self" | "_blank";
552
+ wholeSlideLink: boolean;
553
+ buttonLabel: string | null;
554
+ buttonStyle: "primary" | "secondary" | "outline" | "ghost" | null;
555
+ }, {
556
+ id: string;
557
+ kind: "image" | "text";
558
+ imageUrl: string | null;
559
+ tag: string | null;
560
+ title: string | null;
561
+ body: string | null;
562
+ linkUrl: string | null;
563
+ linkTarget: "_self" | "_blank";
564
+ wholeSlideLink: boolean;
565
+ buttonLabel: string | null;
566
+ buttonStyle: "primary" | "secondary" | "outline" | "ghost" | null;
567
+ }>, "many">;
568
+ type SlidesResponse = z.infer<typeof SlidesResponseSchema>;
569
+
476
570
  declare const RankDefSchema: z.ZodObject<{
477
571
  name: z.ZodString;
478
572
  order: z.ZodNumber;
@@ -2165,6 +2259,48 @@ declare namespace BuyPackageCommand {
2165
2259
  type Response = z.infer<typeof ResponseSchema>;
2166
2260
  }
2167
2261
 
2262
+ declare namespace GetSlidesCommand {
2263
+ const endpointDetails: EndpointDetails;
2264
+ const ResponseSchema: zod.ZodArray<zod.ZodObject<{
2265
+ id: zod.ZodString;
2266
+ kind: zod.ZodEnum<["image", "text"]>;
2267
+ imageUrl: zod.ZodNullable<zod.ZodString>;
2268
+ tag: zod.ZodNullable<zod.ZodString>;
2269
+ title: zod.ZodNullable<zod.ZodString>;
2270
+ body: zod.ZodNullable<zod.ZodString>;
2271
+ linkUrl: zod.ZodNullable<zod.ZodString>;
2272
+ linkTarget: zod.ZodEnum<["_self", "_blank"]>;
2273
+ wholeSlideLink: zod.ZodBoolean;
2274
+ buttonLabel: zod.ZodNullable<zod.ZodString>;
2275
+ buttonStyle: zod.ZodNullable<zod.ZodEnum<["primary", "secondary", "outline", "ghost"]>>;
2276
+ }, "strip", zod.ZodTypeAny, {
2277
+ id: string;
2278
+ kind: "image" | "text";
2279
+ imageUrl: string | null;
2280
+ tag: string | null;
2281
+ title: string | null;
2282
+ body: string | null;
2283
+ linkUrl: string | null;
2284
+ linkTarget: "_self" | "_blank";
2285
+ wholeSlideLink: boolean;
2286
+ buttonLabel: string | null;
2287
+ buttonStyle: "primary" | "secondary" | "outline" | "ghost" | null;
2288
+ }, {
2289
+ id: string;
2290
+ kind: "image" | "text";
2291
+ imageUrl: string | null;
2292
+ tag: string | null;
2293
+ title: string | null;
2294
+ body: string | null;
2295
+ linkUrl: string | null;
2296
+ linkTarget: "_self" | "_blank";
2297
+ wholeSlideLink: boolean;
2298
+ buttonLabel: string | null;
2299
+ buttonStyle: "primary" | "secondary" | "outline" | "ghost" | null;
2300
+ }>, "many">;
2301
+ type Response = SlidesResponse;
2302
+ }
2303
+
2168
2304
  declare namespace GetRanksCommand {
2169
2305
  const endpointDetails: EndpointDetails;
2170
2306
  const ResponseSchema: z.ZodObject<{
@@ -3787,6 +3923,9 @@ declare const REST_API: {
3787
3923
  readonly OVERVIEW: "/packages";
3788
3924
  readonly BUY: "/packages/:id/buy";
3789
3925
  };
3926
+ readonly CONTENT: {
3927
+ readonly SLIDES: "/content/slides";
3928
+ };
3790
3929
  readonly RANKS: {
3791
3930
  readonly LIST: "/ranks";
3792
3931
  };
@@ -3836,4 +3975,4 @@ declare const REST_API: {
3836
3975
  declare const API_PREFIX = "/api";
3837
3976
  declare const API_VERSION = "v1";
3838
3977
 
3839
- export { API_PREFIX, API_VERSION, 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 DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, 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, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, 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, type SessionInfo, SessionInfoSchema, SetupTotpCommand, 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 TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, endpoint };
3978
+ 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 DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, 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, 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, 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 TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, assetDecimals, endpoint };
package/dist/index.js CHANGED
@@ -78,6 +78,19 @@ var DEPOSITABLE_ASSETS = ["USDT", "BTC", "ETH", "BNB", "TRX", "SOL"];
78
78
  var DepositableAssetSchema = z.enum(DEPOSITABLE_ASSETS);
79
79
  var TOKEN_ASSET = "NMN";
80
80
  var FUNDING_ASSET = "USDT";
81
+ var ASSET_DECIMALS = {
82
+ NMN: 4,
83
+ USDT: 2,
84
+ BTC: 8,
85
+ ETH: 8,
86
+ BNB: 8,
87
+ TRX: 6,
88
+ SOL: 6
89
+ };
90
+ var NMN_PRICE_DECIMALS = 8;
91
+ function assetDecimals(asset) {
92
+ return ASSET_DECIMALS[asset];
93
+ }
81
94
  var AssetBalanceSchema = z.object({
82
95
  asset: AssetSymbolSchema,
83
96
  name: z.string(),
@@ -158,6 +171,23 @@ var PackagesOverviewSchema = z.object({
158
171
  nextSellAt: z.string().datetime().nullable(),
159
172
  balanceUsdt: MoneyStringSchema
160
173
  });
174
+ var SlideKindSchema = z.enum(["image", "text"]);
175
+ var SlideButtonStyleSchema = z.enum(["primary", "secondary", "outline", "ghost"]);
176
+ var SlideLinkTargetSchema = z.enum(["_self", "_blank"]);
177
+ var SlideSchema = z.object({
178
+ id: z.string().uuid(),
179
+ kind: SlideKindSchema,
180
+ imageUrl: z.string().url().nullable(),
181
+ tag: z.string().nullable(),
182
+ title: z.string().nullable(),
183
+ body: z.string().nullable(),
184
+ linkUrl: z.string().url().nullable(),
185
+ linkTarget: SlideLinkTargetSchema,
186
+ wholeSlideLink: z.boolean(),
187
+ buttonLabel: z.string().nullable(),
188
+ buttonStyle: SlideButtonStyleSchema.nullable()
189
+ });
190
+ var SlidesResponseSchema = z.array(SlideSchema);
161
191
  var RankDefSchema = z.object({
162
192
  name: z.string(),
163
193
  order: z.number().int().nonnegative(),
@@ -534,6 +564,13 @@ var BuyPackageCommand;
534
564
  tokenPrice: MoneyStringSchema
535
565
  });
536
566
  })(BuyPackageCommand || (BuyPackageCommand = {}));
567
+
568
+ // src/commands/content/get-slides.command.ts
569
+ var GetSlidesCommand;
570
+ ((GetSlidesCommand2) => {
571
+ GetSlidesCommand2.endpointDetails = endpoint("GET", "/content/slides", "Active dashboard carousel slides in display order");
572
+ GetSlidesCommand2.ResponseSchema = SlidesResponseSchema;
573
+ })(GetSlidesCommand || (GetSlidesCommand = {}));
537
574
  var GetRanksCommand;
538
575
  ((GetRanksCommand2) => {
539
576
  GetRanksCommand2.endpointDetails = endpoint("GET", "/ranks", "List all rank tiers");
@@ -858,6 +895,9 @@ var REST_API = {
858
895
  OVERVIEW: "/packages",
859
896
  BUY: "/packages/:id/buy"
860
897
  },
898
+ CONTENT: {
899
+ SLIDES: "/content/slides"
900
+ },
861
901
  RANKS: {
862
902
  LIST: "/ranks"
863
903
  },
@@ -907,6 +947,6 @@ var REST_API = {
907
947
  var API_PREFIX = "/api";
908
948
  var API_VERSION = "v1";
909
949
 
910
- export { API_PREFIX, API_VERSION, 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, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, EarningsOverviewSchema, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, IncomeOverviewSchema, IncomePeriodSchema, LeaderboardEntrySchema, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, LinkProviderSchema, LinkTelegramCommand, LinkedAccountSchema, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, MonthlyPricePointSchema, 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, SessionInfoSchema, SetupTotpCommand, SwapCommand, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, TicketAuthorTypeSchema, TicketBodySchema, TicketCategorySchema, TicketDetailSchema, TicketMessageSchema, TicketStatusSchema, TicketSummarySchema, TokenPriceSchema, TradeResultSchema, TransactionSchema, TransactionStatusSchema, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UserProfileSchema, UserRankSchema, UserSettingsSchema, UserStatusSchema, UuidSchema, WalletOverviewSchema, WithdrawalSchema, WithdrawalStatusSchema, endpoint };
950
+ 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, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, EarningsOverviewSchema, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, IncomeOverviewSchema, IncomePeriodSchema, LeaderboardEntrySchema, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, LinkProviderSchema, LinkTelegramCommand, LinkedAccountSchema, 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, SessionInfoSchema, SetupTotpCommand, SlideButtonStyleSchema, SlideKindSchema, SlideLinkTargetSchema, SlideSchema, SlidesResponseSchema, SwapCommand, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, TicketAuthorTypeSchema, TicketBodySchema, TicketCategorySchema, TicketDetailSchema, TicketMessageSchema, TicketStatusSchema, TicketSummarySchema, TokenPriceSchema, TradeResultSchema, TransactionSchema, TransactionStatusSchema, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UserProfileSchema, UserRankSchema, UserSettingsSchema, UserStatusSchema, UuidSchema, WalletOverviewSchema, WithdrawalSchema, WithdrawalStatusSchema, assetDecimals, endpoint };
911
951
  //# sourceMappingURL=index.js.map
912
952
  //# sourceMappingURL=index.js.map