@numen-crypto/contract 0.2.3 → 0.2.4

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
@@ -377,6 +377,102 @@ declare const PartnersOverviewSchema: z.ZodObject<{
377
377
  }>;
378
378
  type PartnersOverview = z.infer<typeof PartnersOverviewSchema>;
379
379
 
380
+ declare const PackageStatusSchema: z.ZodEnum<["active", "locked"]>;
381
+ type PackageStatus = z.infer<typeof PackageStatusSchema>;
382
+ declare const PackageSchema: z.ZodObject<{
383
+ id: z.ZodString;
384
+ tier: z.ZodNumber;
385
+ priceUsd: z.ZodString;
386
+ sellIntervalDays: z.ZodNumber;
387
+ status: z.ZodEnum<["active", "locked"]>;
388
+ badge: z.ZodNullable<z.ZodString>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ status: "active" | "locked";
391
+ id: string;
392
+ tier: number;
393
+ priceUsd: string;
394
+ sellIntervalDays: number;
395
+ badge: string | null;
396
+ }, {
397
+ status: "active" | "locked";
398
+ id: string;
399
+ tier: number;
400
+ priceUsd: string;
401
+ sellIntervalDays: number;
402
+ badge: string | null;
403
+ }>;
404
+ type Package = z.infer<typeof PackageSchema>;
405
+ declare const PackagesOverviewSchema: z.ZodObject<{
406
+ packages: z.ZodArray<z.ZodObject<{
407
+ id: z.ZodString;
408
+ tier: z.ZodNumber;
409
+ priceUsd: z.ZodString;
410
+ sellIntervalDays: z.ZodNumber;
411
+ status: z.ZodEnum<["active", "locked"]>;
412
+ badge: z.ZodNullable<z.ZodString>;
413
+ }, "strip", z.ZodTypeAny, {
414
+ status: "active" | "locked";
415
+ id: string;
416
+ tier: number;
417
+ priceUsd: string;
418
+ sellIntervalDays: number;
419
+ badge: string | null;
420
+ }, {
421
+ status: "active" | "locked";
422
+ id: string;
423
+ tier: number;
424
+ priceUsd: string;
425
+ sellIntervalDays: number;
426
+ badge: string | null;
427
+ }>, "many">;
428
+ dailyLimit: z.ZodNumber;
429
+ dailyUsed: z.ZodNumber;
430
+ weeklyLimitUsd: z.ZodNullable<z.ZodString>;
431
+ weeklySpentUsd: z.ZodString;
432
+ minPriceUsd: z.ZodString;
433
+ maxPriceUsd: z.ZodString;
434
+ sellIntervalDays: z.ZodNullable<z.ZodNumber>;
435
+ nextSellAt: z.ZodNullable<z.ZodString>;
436
+ balanceUsdt: z.ZodString;
437
+ }, "strip", z.ZodTypeAny, {
438
+ sellIntervalDays: number | null;
439
+ packages: {
440
+ status: "active" | "locked";
441
+ id: string;
442
+ tier: number;
443
+ priceUsd: string;
444
+ sellIntervalDays: number;
445
+ badge: string | null;
446
+ }[];
447
+ dailyLimit: number;
448
+ dailyUsed: number;
449
+ weeklyLimitUsd: string | null;
450
+ weeklySpentUsd: string;
451
+ minPriceUsd: string;
452
+ maxPriceUsd: string;
453
+ nextSellAt: string | null;
454
+ balanceUsdt: string;
455
+ }, {
456
+ sellIntervalDays: number | null;
457
+ packages: {
458
+ status: "active" | "locked";
459
+ id: string;
460
+ tier: number;
461
+ priceUsd: string;
462
+ sellIntervalDays: number;
463
+ badge: string | null;
464
+ }[];
465
+ dailyLimit: number;
466
+ dailyUsed: number;
467
+ weeklyLimitUsd: string | null;
468
+ weeklySpentUsd: string;
469
+ minPriceUsd: string;
470
+ maxPriceUsd: string;
471
+ nextSellAt: string | null;
472
+ balanceUsdt: string;
473
+ }>;
474
+ type PackagesOverview = z.infer<typeof PackagesOverviewSchema>;
475
+
380
476
  declare const RankDefSchema: z.ZodObject<{
381
477
  name: z.ZodString;
382
478
  order: z.ZodNumber;
@@ -1966,6 +2062,109 @@ declare namespace GetPartnersCommand {
1966
2062
  type Response = PartnersOverview;
1967
2063
  }
1968
2064
 
2065
+ declare namespace GetPackagesCommand {
2066
+ const endpointDetails: EndpointDetails;
2067
+ const ResponseSchema: zod.ZodObject<{
2068
+ packages: zod.ZodArray<zod.ZodObject<{
2069
+ id: zod.ZodString;
2070
+ tier: zod.ZodNumber;
2071
+ priceUsd: zod.ZodString;
2072
+ sellIntervalDays: zod.ZodNumber;
2073
+ status: zod.ZodEnum<["active", "locked"]>;
2074
+ badge: zod.ZodNullable<zod.ZodString>;
2075
+ }, "strip", zod.ZodTypeAny, {
2076
+ status: "active" | "locked";
2077
+ id: string;
2078
+ tier: number;
2079
+ priceUsd: string;
2080
+ sellIntervalDays: number;
2081
+ badge: string | null;
2082
+ }, {
2083
+ status: "active" | "locked";
2084
+ id: string;
2085
+ tier: number;
2086
+ priceUsd: string;
2087
+ sellIntervalDays: number;
2088
+ badge: string | null;
2089
+ }>, "many">;
2090
+ dailyLimit: zod.ZodNumber;
2091
+ dailyUsed: zod.ZodNumber;
2092
+ weeklyLimitUsd: zod.ZodNullable<zod.ZodString>;
2093
+ weeklySpentUsd: zod.ZodString;
2094
+ minPriceUsd: zod.ZodString;
2095
+ maxPriceUsd: zod.ZodString;
2096
+ sellIntervalDays: zod.ZodNullable<zod.ZodNumber>;
2097
+ nextSellAt: zod.ZodNullable<zod.ZodString>;
2098
+ balanceUsdt: zod.ZodString;
2099
+ }, "strip", zod.ZodTypeAny, {
2100
+ sellIntervalDays: number | null;
2101
+ packages: {
2102
+ status: "active" | "locked";
2103
+ id: string;
2104
+ tier: number;
2105
+ priceUsd: string;
2106
+ sellIntervalDays: number;
2107
+ badge: string | null;
2108
+ }[];
2109
+ dailyLimit: number;
2110
+ dailyUsed: number;
2111
+ weeklyLimitUsd: string | null;
2112
+ weeklySpentUsd: string;
2113
+ minPriceUsd: string;
2114
+ maxPriceUsd: string;
2115
+ nextSellAt: string | null;
2116
+ balanceUsdt: string;
2117
+ }, {
2118
+ sellIntervalDays: number | null;
2119
+ packages: {
2120
+ status: "active" | "locked";
2121
+ id: string;
2122
+ tier: number;
2123
+ priceUsd: string;
2124
+ sellIntervalDays: number;
2125
+ badge: string | null;
2126
+ }[];
2127
+ dailyLimit: number;
2128
+ dailyUsed: number;
2129
+ weeklyLimitUsd: string | null;
2130
+ weeklySpentUsd: string;
2131
+ minPriceUsd: string;
2132
+ maxPriceUsd: string;
2133
+ nextSellAt: string | null;
2134
+ balanceUsdt: string;
2135
+ }>;
2136
+ type Response = PackagesOverview;
2137
+ }
2138
+
2139
+ declare namespace BuyPackageCommand {
2140
+ const endpointDetails: EndpointDetails;
2141
+ const RequestSchema: z.ZodObject<{
2142
+ idempotencyKey: z.ZodString;
2143
+ }, "strip", z.ZodTypeAny, {
2144
+ idempotencyKey: string;
2145
+ }, {
2146
+ idempotencyKey: string;
2147
+ }>;
2148
+ type Request = z.infer<typeof RequestSchema>;
2149
+ const ResponseSchema: z.ZodObject<{
2150
+ purchaseId: z.ZodString;
2151
+ priceUsd: z.ZodString;
2152
+ nmnAmount: z.ZodString;
2153
+ tokenPrice: z.ZodString;
2154
+ }, "strip", z.ZodTypeAny, {
2155
+ priceUsd: string;
2156
+ tokenPrice: string;
2157
+ nmnAmount: string;
2158
+ purchaseId: string;
2159
+ }, {
2160
+ priceUsd: string;
2161
+ tokenPrice: string;
2162
+ nmnAmount: string;
2163
+ purchaseId: string;
2164
+ }>;
2165
+ type Response = z.infer<typeof ResponseSchema>;
2166
+ }
2167
+
1969
2168
  declare namespace GetRanksCommand {
1970
2169
  const endpointDetails: EndpointDetails;
1971
2170
  const ResponseSchema: z.ZodObject<{
@@ -3584,6 +3783,10 @@ declare const REST_API: {
3584
3783
  readonly PARTNERS: {
3585
3784
  readonly OVERVIEW: "/partners";
3586
3785
  };
3786
+ readonly PACKAGES: {
3787
+ readonly OVERVIEW: "/packages";
3788
+ readonly BUY: "/packages/:id/buy";
3789
+ };
3587
3790
  readonly RANKS: {
3588
3791
  readonly LIST: "/ranks";
3589
3792
  };
@@ -3633,4 +3836,4 @@ declare const REST_API: {
3633
3836
  declare const API_PREFIX = "/api";
3634
3837
  declare const API_VERSION = "v1";
3635
3838
 
3636
- export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, 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, 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, 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 };
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 };
package/dist/index.d.ts CHANGED
@@ -377,6 +377,102 @@ declare const PartnersOverviewSchema: z.ZodObject<{
377
377
  }>;
378
378
  type PartnersOverview = z.infer<typeof PartnersOverviewSchema>;
379
379
 
380
+ declare const PackageStatusSchema: z.ZodEnum<["active", "locked"]>;
381
+ type PackageStatus = z.infer<typeof PackageStatusSchema>;
382
+ declare const PackageSchema: z.ZodObject<{
383
+ id: z.ZodString;
384
+ tier: z.ZodNumber;
385
+ priceUsd: z.ZodString;
386
+ sellIntervalDays: z.ZodNumber;
387
+ status: z.ZodEnum<["active", "locked"]>;
388
+ badge: z.ZodNullable<z.ZodString>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ status: "active" | "locked";
391
+ id: string;
392
+ tier: number;
393
+ priceUsd: string;
394
+ sellIntervalDays: number;
395
+ badge: string | null;
396
+ }, {
397
+ status: "active" | "locked";
398
+ id: string;
399
+ tier: number;
400
+ priceUsd: string;
401
+ sellIntervalDays: number;
402
+ badge: string | null;
403
+ }>;
404
+ type Package = z.infer<typeof PackageSchema>;
405
+ declare const PackagesOverviewSchema: z.ZodObject<{
406
+ packages: z.ZodArray<z.ZodObject<{
407
+ id: z.ZodString;
408
+ tier: z.ZodNumber;
409
+ priceUsd: z.ZodString;
410
+ sellIntervalDays: z.ZodNumber;
411
+ status: z.ZodEnum<["active", "locked"]>;
412
+ badge: z.ZodNullable<z.ZodString>;
413
+ }, "strip", z.ZodTypeAny, {
414
+ status: "active" | "locked";
415
+ id: string;
416
+ tier: number;
417
+ priceUsd: string;
418
+ sellIntervalDays: number;
419
+ badge: string | null;
420
+ }, {
421
+ status: "active" | "locked";
422
+ id: string;
423
+ tier: number;
424
+ priceUsd: string;
425
+ sellIntervalDays: number;
426
+ badge: string | null;
427
+ }>, "many">;
428
+ dailyLimit: z.ZodNumber;
429
+ dailyUsed: z.ZodNumber;
430
+ weeklyLimitUsd: z.ZodNullable<z.ZodString>;
431
+ weeklySpentUsd: z.ZodString;
432
+ minPriceUsd: z.ZodString;
433
+ maxPriceUsd: z.ZodString;
434
+ sellIntervalDays: z.ZodNullable<z.ZodNumber>;
435
+ nextSellAt: z.ZodNullable<z.ZodString>;
436
+ balanceUsdt: z.ZodString;
437
+ }, "strip", z.ZodTypeAny, {
438
+ sellIntervalDays: number | null;
439
+ packages: {
440
+ status: "active" | "locked";
441
+ id: string;
442
+ tier: number;
443
+ priceUsd: string;
444
+ sellIntervalDays: number;
445
+ badge: string | null;
446
+ }[];
447
+ dailyLimit: number;
448
+ dailyUsed: number;
449
+ weeklyLimitUsd: string | null;
450
+ weeklySpentUsd: string;
451
+ minPriceUsd: string;
452
+ maxPriceUsd: string;
453
+ nextSellAt: string | null;
454
+ balanceUsdt: string;
455
+ }, {
456
+ sellIntervalDays: number | null;
457
+ packages: {
458
+ status: "active" | "locked";
459
+ id: string;
460
+ tier: number;
461
+ priceUsd: string;
462
+ sellIntervalDays: number;
463
+ badge: string | null;
464
+ }[];
465
+ dailyLimit: number;
466
+ dailyUsed: number;
467
+ weeklyLimitUsd: string | null;
468
+ weeklySpentUsd: string;
469
+ minPriceUsd: string;
470
+ maxPriceUsd: string;
471
+ nextSellAt: string | null;
472
+ balanceUsdt: string;
473
+ }>;
474
+ type PackagesOverview = z.infer<typeof PackagesOverviewSchema>;
475
+
380
476
  declare const RankDefSchema: z.ZodObject<{
381
477
  name: z.ZodString;
382
478
  order: z.ZodNumber;
@@ -1966,6 +2062,109 @@ declare namespace GetPartnersCommand {
1966
2062
  type Response = PartnersOverview;
1967
2063
  }
1968
2064
 
2065
+ declare namespace GetPackagesCommand {
2066
+ const endpointDetails: EndpointDetails;
2067
+ const ResponseSchema: zod.ZodObject<{
2068
+ packages: zod.ZodArray<zod.ZodObject<{
2069
+ id: zod.ZodString;
2070
+ tier: zod.ZodNumber;
2071
+ priceUsd: zod.ZodString;
2072
+ sellIntervalDays: zod.ZodNumber;
2073
+ status: zod.ZodEnum<["active", "locked"]>;
2074
+ badge: zod.ZodNullable<zod.ZodString>;
2075
+ }, "strip", zod.ZodTypeAny, {
2076
+ status: "active" | "locked";
2077
+ id: string;
2078
+ tier: number;
2079
+ priceUsd: string;
2080
+ sellIntervalDays: number;
2081
+ badge: string | null;
2082
+ }, {
2083
+ status: "active" | "locked";
2084
+ id: string;
2085
+ tier: number;
2086
+ priceUsd: string;
2087
+ sellIntervalDays: number;
2088
+ badge: string | null;
2089
+ }>, "many">;
2090
+ dailyLimit: zod.ZodNumber;
2091
+ dailyUsed: zod.ZodNumber;
2092
+ weeklyLimitUsd: zod.ZodNullable<zod.ZodString>;
2093
+ weeklySpentUsd: zod.ZodString;
2094
+ minPriceUsd: zod.ZodString;
2095
+ maxPriceUsd: zod.ZodString;
2096
+ sellIntervalDays: zod.ZodNullable<zod.ZodNumber>;
2097
+ nextSellAt: zod.ZodNullable<zod.ZodString>;
2098
+ balanceUsdt: zod.ZodString;
2099
+ }, "strip", zod.ZodTypeAny, {
2100
+ sellIntervalDays: number | null;
2101
+ packages: {
2102
+ status: "active" | "locked";
2103
+ id: string;
2104
+ tier: number;
2105
+ priceUsd: string;
2106
+ sellIntervalDays: number;
2107
+ badge: string | null;
2108
+ }[];
2109
+ dailyLimit: number;
2110
+ dailyUsed: number;
2111
+ weeklyLimitUsd: string | null;
2112
+ weeklySpentUsd: string;
2113
+ minPriceUsd: string;
2114
+ maxPriceUsd: string;
2115
+ nextSellAt: string | null;
2116
+ balanceUsdt: string;
2117
+ }, {
2118
+ sellIntervalDays: number | null;
2119
+ packages: {
2120
+ status: "active" | "locked";
2121
+ id: string;
2122
+ tier: number;
2123
+ priceUsd: string;
2124
+ sellIntervalDays: number;
2125
+ badge: string | null;
2126
+ }[];
2127
+ dailyLimit: number;
2128
+ dailyUsed: number;
2129
+ weeklyLimitUsd: string | null;
2130
+ weeklySpentUsd: string;
2131
+ minPriceUsd: string;
2132
+ maxPriceUsd: string;
2133
+ nextSellAt: string | null;
2134
+ balanceUsdt: string;
2135
+ }>;
2136
+ type Response = PackagesOverview;
2137
+ }
2138
+
2139
+ declare namespace BuyPackageCommand {
2140
+ const endpointDetails: EndpointDetails;
2141
+ const RequestSchema: z.ZodObject<{
2142
+ idempotencyKey: z.ZodString;
2143
+ }, "strip", z.ZodTypeAny, {
2144
+ idempotencyKey: string;
2145
+ }, {
2146
+ idempotencyKey: string;
2147
+ }>;
2148
+ type Request = z.infer<typeof RequestSchema>;
2149
+ const ResponseSchema: z.ZodObject<{
2150
+ purchaseId: z.ZodString;
2151
+ priceUsd: z.ZodString;
2152
+ nmnAmount: z.ZodString;
2153
+ tokenPrice: z.ZodString;
2154
+ }, "strip", z.ZodTypeAny, {
2155
+ priceUsd: string;
2156
+ tokenPrice: string;
2157
+ nmnAmount: string;
2158
+ purchaseId: string;
2159
+ }, {
2160
+ priceUsd: string;
2161
+ tokenPrice: string;
2162
+ nmnAmount: string;
2163
+ purchaseId: string;
2164
+ }>;
2165
+ type Response = z.infer<typeof ResponseSchema>;
2166
+ }
2167
+
1969
2168
  declare namespace GetRanksCommand {
1970
2169
  const endpointDetails: EndpointDetails;
1971
2170
  const ResponseSchema: z.ZodObject<{
@@ -3584,6 +3783,10 @@ declare const REST_API: {
3584
3783
  readonly PARTNERS: {
3585
3784
  readonly OVERVIEW: "/partners";
3586
3785
  };
3786
+ readonly PACKAGES: {
3787
+ readonly OVERVIEW: "/packages";
3788
+ readonly BUY: "/packages/:id/buy";
3789
+ };
3587
3790
  readonly RANKS: {
3588
3791
  readonly LIST: "/ranks";
3589
3792
  };
@@ -3633,4 +3836,4 @@ declare const REST_API: {
3633
3836
  declare const API_PREFIX = "/api";
3634
3837
  declare const API_VERSION = "v1";
3635
3838
 
3636
- export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, 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, 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, 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 };
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 };
package/dist/index.js CHANGED
@@ -137,6 +137,27 @@ var PartnersOverviewSchema = z.object({
137
137
  affiliateIncome: MoneyStringSchema,
138
138
  levels: z.array(PartnerLevelSchema)
139
139
  });
140
+ var PackageStatusSchema = z.enum(["active", "locked"]);
141
+ var PackageSchema = z.object({
142
+ id: z.string().uuid(),
143
+ tier: z.number().int().positive(),
144
+ priceUsd: MoneyStringSchema,
145
+ sellIntervalDays: z.number().int().positive(),
146
+ status: PackageStatusSchema,
147
+ badge: z.string().nullable()
148
+ });
149
+ var PackagesOverviewSchema = z.object({
150
+ packages: z.array(PackageSchema),
151
+ dailyLimit: z.number().int().nonnegative(),
152
+ dailyUsed: z.number().int().nonnegative(),
153
+ weeklyLimitUsd: MoneyStringSchema.nullable(),
154
+ weeklySpentUsd: MoneyStringSchema,
155
+ minPriceUsd: MoneyStringSchema,
156
+ maxPriceUsd: MoneyStringSchema,
157
+ sellIntervalDays: z.number().int().positive().nullable(),
158
+ nextSellAt: z.string().datetime().nullable(),
159
+ balanceUsdt: MoneyStringSchema
160
+ });
140
161
  var RankDefSchema = z.object({
141
162
  name: z.string(),
142
163
  order: z.number().int().nonnegative(),
@@ -485,6 +506,34 @@ var GetPartnersCommand;
485
506
  });
486
507
  GetPartnersCommand2.ResponseSchema = PartnersOverviewSchema;
487
508
  })(GetPartnersCommand || (GetPartnersCommand = {}));
509
+
510
+ // src/commands/packages/get-packages.command.ts
511
+ var GetPackagesCommand;
512
+ ((GetPackagesCommand2) => {
513
+ GetPackagesCommand2.endpointDetails = endpoint(
514
+ "GET",
515
+ "/packages",
516
+ "Participation packages with the user limits and sell cadence"
517
+ );
518
+ GetPackagesCommand2.ResponseSchema = PackagesOverviewSchema;
519
+ })(GetPackagesCommand || (GetPackagesCommand = {}));
520
+ var BuyPackageCommand;
521
+ ((BuyPackageCommand2) => {
522
+ BuyPackageCommand2.endpointDetails = endpoint(
523
+ "POST",
524
+ "/packages/:id/buy",
525
+ "Buy a participation package: spends its USD price in USDT for NMN"
526
+ );
527
+ BuyPackageCommand2.RequestSchema = z.object({
528
+ idempotencyKey: z.string().min(8).max(255)
529
+ });
530
+ BuyPackageCommand2.ResponseSchema = z.object({
531
+ purchaseId: z.string().uuid(),
532
+ priceUsd: MoneyStringSchema,
533
+ nmnAmount: MoneyStringSchema,
534
+ tokenPrice: MoneyStringSchema
535
+ });
536
+ })(BuyPackageCommand || (BuyPackageCommand = {}));
488
537
  var GetRanksCommand;
489
538
  ((GetRanksCommand2) => {
490
539
  GetRanksCommand2.endpointDetails = endpoint("GET", "/ranks", "List all rank tiers");
@@ -805,6 +854,10 @@ var REST_API = {
805
854
  PARTNERS: {
806
855
  OVERVIEW: "/partners"
807
856
  },
857
+ PACKAGES: {
858
+ OVERVIEW: "/packages",
859
+ BUY: "/packages/:id/buy"
860
+ },
808
861
  RANKS: {
809
862
  LIST: "/ranks"
810
863
  },
@@ -854,6 +907,6 @@ var REST_API = {
854
907
  var API_PREFIX = "/api";
855
908
  var API_VERSION = "v1";
856
909
 
857
- export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, AssetBalanceSchema, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, 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, 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, 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 };
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 };
858
911
  //# sourceMappingURL=index.js.map
859
912
  //# sourceMappingURL=index.js.map