@numen-crypto/contract 0.6.0 → 0.7.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
@@ -295,6 +295,43 @@ declare const TransactionSchema: z.ZodObject<{
295
295
  }>;
296
296
  type Transaction = z.infer<typeof TransactionSchema>;
297
297
 
298
+ declare const DepositStatusSchema: z.ZodEnum<["PENDING", "CONFIRMING", "CREDITED", "FAILED", "EXPIRED"]>;
299
+ type DepositStatus = z.infer<typeof DepositStatusSchema>;
300
+ declare const DepositEntrySchema: z.ZodObject<{
301
+ id: z.ZodString;
302
+ asset: z.ZodString;
303
+ network: z.ZodString;
304
+ address: z.ZodString;
305
+ amount: z.ZodNullable<z.ZodString>;
306
+ status: z.ZodEnum<["PENDING", "CONFIRMING", "CREDITED", "FAILED", "EXPIRED"]>;
307
+ txHash: z.ZodNullable<z.ZodString>;
308
+ confirmations: z.ZodNumber;
309
+ createdAt: z.ZodString;
310
+ creditedAt: z.ZodNullable<z.ZodString>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
313
+ id: string;
314
+ createdAt: string;
315
+ asset: string;
316
+ amount: string | null;
317
+ network: string;
318
+ address: string;
319
+ txHash: string | null;
320
+ confirmations: number;
321
+ creditedAt: string | null;
322
+ }, {
323
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
324
+ id: string;
325
+ createdAt: string;
326
+ asset: string;
327
+ amount: string | null;
328
+ network: string;
329
+ address: string;
330
+ txHash: string | null;
331
+ confirmations: number;
332
+ creditedAt: string | null;
333
+ }>;
334
+ type DepositEntry = z.infer<typeof DepositEntrySchema>;
298
335
  declare const DepositAddressSchema: z.ZodObject<{
299
336
  asset: z.ZodEnum<["USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
300
337
  network: z.ZodString;
@@ -305,14 +342,14 @@ declare const DepositAddressSchema: z.ZodObject<{
305
342
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
306
343
  network: string;
307
344
  address: string;
308
- minAmount: string;
309
345
  confirmations: number;
346
+ minAmount: string;
310
347
  }, {
311
348
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
312
349
  network: string;
313
350
  address: string;
314
- minAmount: string;
315
351
  confirmations: number;
352
+ minAmount: string;
316
353
  }>;
317
354
  type DepositAddress = z.infer<typeof DepositAddressSchema>;
318
355
 
@@ -1725,14 +1762,81 @@ declare namespace DepositAddressCommand {
1725
1762
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1726
1763
  network: string;
1727
1764
  address: string;
1728
- minAmount: string;
1729
1765
  confirmations: number;
1766
+ minAmount: string;
1730
1767
  }, {
1731
1768
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1732
1769
  network: string;
1733
1770
  address: string;
1734
- minAmount: string;
1735
1771
  confirmations: number;
1772
+ minAmount: string;
1773
+ }>;
1774
+ type Response = z.infer<typeof ResponseSchema>;
1775
+ }
1776
+
1777
+ declare namespace ListDepositsCommand {
1778
+ const endpointDetails: EndpointDetails;
1779
+ const ResponseSchema: z.ZodObject<{
1780
+ deposits: z.ZodArray<z.ZodObject<{
1781
+ id: z.ZodString;
1782
+ asset: z.ZodString;
1783
+ network: z.ZodString;
1784
+ address: z.ZodString;
1785
+ amount: z.ZodNullable<z.ZodString>;
1786
+ status: z.ZodEnum<["PENDING", "CONFIRMING", "CREDITED", "FAILED", "EXPIRED"]>;
1787
+ txHash: z.ZodNullable<z.ZodString>;
1788
+ confirmations: z.ZodNumber;
1789
+ createdAt: z.ZodString;
1790
+ creditedAt: z.ZodNullable<z.ZodString>;
1791
+ }, "strip", z.ZodTypeAny, {
1792
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
1793
+ id: string;
1794
+ createdAt: string;
1795
+ asset: string;
1796
+ amount: string | null;
1797
+ network: string;
1798
+ address: string;
1799
+ txHash: string | null;
1800
+ confirmations: number;
1801
+ creditedAt: string | null;
1802
+ }, {
1803
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
1804
+ id: string;
1805
+ createdAt: string;
1806
+ asset: string;
1807
+ amount: string | null;
1808
+ network: string;
1809
+ address: string;
1810
+ txHash: string | null;
1811
+ confirmations: number;
1812
+ creditedAt: string | null;
1813
+ }>, "many">;
1814
+ }, "strip", z.ZodTypeAny, {
1815
+ deposits: {
1816
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
1817
+ id: string;
1818
+ createdAt: string;
1819
+ asset: string;
1820
+ amount: string | null;
1821
+ network: string;
1822
+ address: string;
1823
+ txHash: string | null;
1824
+ confirmations: number;
1825
+ creditedAt: string | null;
1826
+ }[];
1827
+ }, {
1828
+ deposits: {
1829
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
1830
+ id: string;
1831
+ createdAt: string;
1832
+ asset: string;
1833
+ amount: string | null;
1834
+ network: string;
1835
+ address: string;
1836
+ txHash: string | null;
1837
+ confirmations: number;
1838
+ creditedAt: string | null;
1839
+ }[];
1736
1840
  }>;
1737
1841
  type Response = z.infer<typeof ResponseSchema>;
1738
1842
  }
@@ -4183,6 +4287,7 @@ declare const REST_API: {
4183
4287
  readonly OVERVIEW: "/wallet";
4184
4288
  readonly TRANSACTIONS: "/wallet/transactions";
4185
4289
  readonly DEPOSIT_ADDRESS: "/wallet/deposit-address";
4290
+ readonly DEPOSITS: "/wallet/deposits";
4186
4291
  };
4187
4292
  readonly TOKEN: {
4188
4293
  readonly PRICE: "/token/price";
@@ -4257,4 +4362,4 @@ declare const REST_API: {
4257
4362
  declare const API_PREFIX = "/api";
4258
4363
  declare const API_VERSION = "v1";
4259
4364
 
4260
- 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, 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, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, type Package, PackageSchema, type PackageStatus, PackageStatusSchema, type PackagesOverview, PackagesOverviewSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, type Period, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, type PublicTrade, PublicTradeSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, type Slide, type SlideButtonStyle, SlideButtonStyleSchema, type SlideKind, SlideKindSchema, type SlideLinkTarget, SlideLinkTargetSchema, SlideSchema, type SlidesResponse, SlidesResponseSchema, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, type TicketAttachment, type TicketAttachmentInput, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, type TicketAuthorType, TicketAuthorTypeSchema, TicketBodySchema, type TicketCategory, TicketCategorySchema, type TicketDetail, TicketDetailSchema, type TicketMessage, TicketMessageSchema, type TicketStatus, TicketStatusSchema, type TicketSummary, TicketSummarySchema, type TokenPrice, TokenPriceSchema, type TradeLimits, TradeLimitsSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, VerifyEmailCommand, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, assetDecimals, endpoint };
4365
+ export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CancelOrderCommand, CancelWithdrawalCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositEntry, DepositEntrySchema, type DepositStatus, DepositStatusSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, ForgotPasswordCommand, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, type HttpMethod, type IncomeOverview, IncomeOverviewSchema, type IncomePeriod, IncomePeriodSchema, type Leaderboard, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardPeriod, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, type LinkProvider, LinkProviderSchema, LinkTelegramCommand, type LinkedAccount, LinkedAccountSchema, ListDepositsCommand, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, type Package, PackageSchema, type PackageStatus, PackageStatusSchema, type PackagesOverview, PackagesOverviewSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, type Period, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, type PublicTrade, PublicTradeSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, type Slide, type SlideButtonStyle, SlideButtonStyleSchema, type SlideKind, SlideKindSchema, type SlideLinkTarget, SlideLinkTargetSchema, SlideSchema, type SlidesResponse, SlidesResponseSchema, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, type TicketAttachment, type TicketAttachmentInput, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, type TicketAuthorType, TicketAuthorTypeSchema, TicketBodySchema, type TicketCategory, TicketCategorySchema, type TicketDetail, TicketDetailSchema, type TicketMessage, TicketMessageSchema, type TicketStatus, TicketStatusSchema, type TicketSummary, TicketSummarySchema, type TokenPrice, TokenPriceSchema, type TradeLimits, TradeLimitsSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, VerifyEmailCommand, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, assetDecimals, endpoint };
package/dist/index.d.ts CHANGED
@@ -295,6 +295,43 @@ declare const TransactionSchema: z.ZodObject<{
295
295
  }>;
296
296
  type Transaction = z.infer<typeof TransactionSchema>;
297
297
 
298
+ declare const DepositStatusSchema: z.ZodEnum<["PENDING", "CONFIRMING", "CREDITED", "FAILED", "EXPIRED"]>;
299
+ type DepositStatus = z.infer<typeof DepositStatusSchema>;
300
+ declare const DepositEntrySchema: z.ZodObject<{
301
+ id: z.ZodString;
302
+ asset: z.ZodString;
303
+ network: z.ZodString;
304
+ address: z.ZodString;
305
+ amount: z.ZodNullable<z.ZodString>;
306
+ status: z.ZodEnum<["PENDING", "CONFIRMING", "CREDITED", "FAILED", "EXPIRED"]>;
307
+ txHash: z.ZodNullable<z.ZodString>;
308
+ confirmations: z.ZodNumber;
309
+ createdAt: z.ZodString;
310
+ creditedAt: z.ZodNullable<z.ZodString>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
313
+ id: string;
314
+ createdAt: string;
315
+ asset: string;
316
+ amount: string | null;
317
+ network: string;
318
+ address: string;
319
+ txHash: string | null;
320
+ confirmations: number;
321
+ creditedAt: string | null;
322
+ }, {
323
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
324
+ id: string;
325
+ createdAt: string;
326
+ asset: string;
327
+ amount: string | null;
328
+ network: string;
329
+ address: string;
330
+ txHash: string | null;
331
+ confirmations: number;
332
+ creditedAt: string | null;
333
+ }>;
334
+ type DepositEntry = z.infer<typeof DepositEntrySchema>;
298
335
  declare const DepositAddressSchema: z.ZodObject<{
299
336
  asset: z.ZodEnum<["USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
300
337
  network: z.ZodString;
@@ -305,14 +342,14 @@ declare const DepositAddressSchema: z.ZodObject<{
305
342
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
306
343
  network: string;
307
344
  address: string;
308
- minAmount: string;
309
345
  confirmations: number;
346
+ minAmount: string;
310
347
  }, {
311
348
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
312
349
  network: string;
313
350
  address: string;
314
- minAmount: string;
315
351
  confirmations: number;
352
+ minAmount: string;
316
353
  }>;
317
354
  type DepositAddress = z.infer<typeof DepositAddressSchema>;
318
355
 
@@ -1725,14 +1762,81 @@ declare namespace DepositAddressCommand {
1725
1762
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1726
1763
  network: string;
1727
1764
  address: string;
1728
- minAmount: string;
1729
1765
  confirmations: number;
1766
+ minAmount: string;
1730
1767
  }, {
1731
1768
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1732
1769
  network: string;
1733
1770
  address: string;
1734
- minAmount: string;
1735
1771
  confirmations: number;
1772
+ minAmount: string;
1773
+ }>;
1774
+ type Response = z.infer<typeof ResponseSchema>;
1775
+ }
1776
+
1777
+ declare namespace ListDepositsCommand {
1778
+ const endpointDetails: EndpointDetails;
1779
+ const ResponseSchema: z.ZodObject<{
1780
+ deposits: z.ZodArray<z.ZodObject<{
1781
+ id: z.ZodString;
1782
+ asset: z.ZodString;
1783
+ network: z.ZodString;
1784
+ address: z.ZodString;
1785
+ amount: z.ZodNullable<z.ZodString>;
1786
+ status: z.ZodEnum<["PENDING", "CONFIRMING", "CREDITED", "FAILED", "EXPIRED"]>;
1787
+ txHash: z.ZodNullable<z.ZodString>;
1788
+ confirmations: z.ZodNumber;
1789
+ createdAt: z.ZodString;
1790
+ creditedAt: z.ZodNullable<z.ZodString>;
1791
+ }, "strip", z.ZodTypeAny, {
1792
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
1793
+ id: string;
1794
+ createdAt: string;
1795
+ asset: string;
1796
+ amount: string | null;
1797
+ network: string;
1798
+ address: string;
1799
+ txHash: string | null;
1800
+ confirmations: number;
1801
+ creditedAt: string | null;
1802
+ }, {
1803
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
1804
+ id: string;
1805
+ createdAt: string;
1806
+ asset: string;
1807
+ amount: string | null;
1808
+ network: string;
1809
+ address: string;
1810
+ txHash: string | null;
1811
+ confirmations: number;
1812
+ creditedAt: string | null;
1813
+ }>, "many">;
1814
+ }, "strip", z.ZodTypeAny, {
1815
+ deposits: {
1816
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
1817
+ id: string;
1818
+ createdAt: string;
1819
+ asset: string;
1820
+ amount: string | null;
1821
+ network: string;
1822
+ address: string;
1823
+ txHash: string | null;
1824
+ confirmations: number;
1825
+ creditedAt: string | null;
1826
+ }[];
1827
+ }, {
1828
+ deposits: {
1829
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
1830
+ id: string;
1831
+ createdAt: string;
1832
+ asset: string;
1833
+ amount: string | null;
1834
+ network: string;
1835
+ address: string;
1836
+ txHash: string | null;
1837
+ confirmations: number;
1838
+ creditedAt: string | null;
1839
+ }[];
1736
1840
  }>;
1737
1841
  type Response = z.infer<typeof ResponseSchema>;
1738
1842
  }
@@ -4183,6 +4287,7 @@ declare const REST_API: {
4183
4287
  readonly OVERVIEW: "/wallet";
4184
4288
  readonly TRANSACTIONS: "/wallet/transactions";
4185
4289
  readonly DEPOSIT_ADDRESS: "/wallet/deposit-address";
4290
+ readonly DEPOSITS: "/wallet/deposits";
4186
4291
  };
4187
4292
  readonly TOKEN: {
4188
4293
  readonly PRICE: "/token/price";
@@ -4257,4 +4362,4 @@ declare const REST_API: {
4257
4362
  declare const API_PREFIX = "/api";
4258
4363
  declare const API_VERSION = "v1";
4259
4364
 
4260
- 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, 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, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, type Package, PackageSchema, type PackageStatus, PackageStatusSchema, type PackagesOverview, PackagesOverviewSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, type Period, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, type PublicTrade, PublicTradeSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, type Slide, type SlideButtonStyle, SlideButtonStyleSchema, type SlideKind, SlideKindSchema, type SlideLinkTarget, SlideLinkTargetSchema, SlideSchema, type SlidesResponse, SlidesResponseSchema, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, type TicketAttachment, type TicketAttachmentInput, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, type TicketAuthorType, TicketAuthorTypeSchema, TicketBodySchema, type TicketCategory, TicketCategorySchema, type TicketDetail, TicketDetailSchema, type TicketMessage, TicketMessageSchema, type TicketStatus, TicketStatusSchema, type TicketSummary, TicketSummarySchema, type TokenPrice, TokenPriceSchema, type TradeLimits, TradeLimitsSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, VerifyEmailCommand, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, assetDecimals, endpoint };
4365
+ export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CancelOrderCommand, CancelWithdrawalCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositEntry, DepositEntrySchema, type DepositStatus, DepositStatusSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, ForgotPasswordCommand, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, type HttpMethod, type IncomeOverview, IncomeOverviewSchema, type IncomePeriod, IncomePeriodSchema, type Leaderboard, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardPeriod, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, type LinkProvider, LinkProviderSchema, LinkTelegramCommand, type LinkedAccount, LinkedAccountSchema, ListDepositsCommand, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, type Package, PackageSchema, type PackageStatus, PackageStatusSchema, type PackagesOverview, PackagesOverviewSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, type Period, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, type PublicTrade, PublicTradeSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, type Slide, type SlideButtonStyle, SlideButtonStyleSchema, type SlideKind, SlideKindSchema, type SlideLinkTarget, SlideLinkTargetSchema, SlideSchema, type SlidesResponse, SlidesResponseSchema, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, type TicketAttachment, type TicketAttachmentInput, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, type TicketAuthorType, TicketAuthorTypeSchema, TicketBodySchema, type TicketCategory, TicketCategorySchema, type TicketDetail, TicketDetailSchema, type TicketMessage, TicketMessageSchema, type TicketStatus, TicketStatusSchema, type TicketSummary, TicketSummarySchema, type TokenPrice, TokenPriceSchema, type TradeLimits, TradeLimitsSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, VerifyEmailCommand, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, assetDecimals, endpoint };
package/dist/index.js CHANGED
@@ -134,6 +134,19 @@ var TransactionSchema = z.object({
134
134
  reference: z.string().nullable(),
135
135
  createdAt: z.string().datetime()
136
136
  });
137
+ var DepositStatusSchema = z.enum(["PENDING", "CONFIRMING", "CREDITED", "FAILED", "EXPIRED"]);
138
+ var DepositEntrySchema = z.object({
139
+ id: z.string().uuid(),
140
+ asset: z.string(),
141
+ network: z.string(),
142
+ address: z.string(),
143
+ amount: MoneyStringSchema.nullable(),
144
+ status: DepositStatusSchema,
145
+ txHash: z.string().nullable(),
146
+ confirmations: z.number().int().nonnegative(),
147
+ createdAt: z.string().datetime(),
148
+ creditedAt: z.string().datetime().nullable()
149
+ });
137
150
  var DepositAddressSchema = z.object({
138
151
  asset: DepositableAssetSchema,
139
152
  network: z.string(),
@@ -482,6 +495,15 @@ var DepositAddressCommand;
482
495
  });
483
496
  DepositAddressCommand2.ResponseSchema = DepositAddressSchema;
484
497
  })(DepositAddressCommand || (DepositAddressCommand = {}));
498
+ var ListDepositsCommand;
499
+ ((ListDepositsCommand2) => {
500
+ ListDepositsCommand2.endpointDetails = endpoint(
501
+ "GET",
502
+ "/wallet/deposits",
503
+ "Recent deposit invoices with their live status, so a waiting screen can turn into a receipt"
504
+ );
505
+ ListDepositsCommand2.ResponseSchema = z.object({ deposits: z.array(DepositEntrySchema) });
506
+ })(ListDepositsCommand || (ListDepositsCommand = {}));
485
507
 
486
508
  // src/commands/token/get-price.command.ts
487
509
  var GetTokenPriceCommand;
@@ -956,7 +978,8 @@ var REST_API = {
956
978
  WALLET: {
957
979
  OVERVIEW: "/wallet",
958
980
  TRANSACTIONS: "/wallet/transactions",
959
- DEPOSIT_ADDRESS: "/wallet/deposit-address"
981
+ DEPOSIT_ADDRESS: "/wallet/deposit-address",
982
+ DEPOSITS: "/wallet/deposits"
960
983
  },
961
984
  TOKEN: {
962
985
  PRICE: "/token/price",
@@ -1031,6 +1054,6 @@ var REST_API = {
1031
1054
  var API_PREFIX = "/api";
1032
1055
  var API_VERSION = "v1";
1033
1056
 
1034
- 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, 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, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, NotificationSchema, NotificationTypeSchema, OrderBookLevelSchema, OrderBookSchema, OrderSchema, OrderSideSchema, OrderStatusSchema, OrderTypeSchema, PackageSchema, PackageStatusSchema, PackagesOverviewSchema, PaginatedSchema, PaginationQuerySchema, PartnerAccrualSchema, PartnerLevelSchema, PartnersOverviewSchema, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, PublicTradeSchema, REST_API, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, SessionInfoSchema, SetupTotpCommand, SlideButtonStyleSchema, SlideKindSchema, SlideLinkTargetSchema, SlideSchema, SlidesResponseSchema, SwapCommand, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, TicketAuthorTypeSchema, TicketBodySchema, TicketCategorySchema, TicketDetailSchema, TicketMessageSchema, TicketStatusSchema, TicketSummarySchema, TokenPriceSchema, TradeLimitsSchema, TradeResultSchema, TransactionSchema, TransactionStatusSchema, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, UserProfileSchema, UserRankSchema, UserSettingsSchema, UserStatusSchema, UuidSchema, VerifyEmailCommand, WalletOverviewSchema, WithdrawalSchema, WithdrawalStatusSchema, assetDecimals, endpoint };
1057
+ export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, AssetBalanceSchema, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CancelOrderCommand, CancelWithdrawalCommand, ChartPeriodSchema, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, DailyBonusClaimResultSchema, DailyBonusDaySchema, DailyBonusStatusSchema, DepositAddressCommand, DepositAddressSchema, DepositEntrySchema, DepositStatusSchema, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, EarningsOverviewSchema, ErrorResponseSchema, FUNDING_ASSET, ForgotPasswordCommand, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, IncomeOverviewSchema, IncomePeriodSchema, LeaderboardEntrySchema, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, LinkProviderSchema, LinkTelegramCommand, LinkedAccountSchema, ListDepositsCommand, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, NotificationSchema, NotificationTypeSchema, OrderBookLevelSchema, OrderBookSchema, OrderSchema, OrderSideSchema, OrderStatusSchema, OrderTypeSchema, PackageSchema, PackageStatusSchema, PackagesOverviewSchema, PaginatedSchema, PaginationQuerySchema, PartnerAccrualSchema, PartnerLevelSchema, PartnersOverviewSchema, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, PublicTradeSchema, REST_API, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, SessionInfoSchema, SetupTotpCommand, SlideButtonStyleSchema, SlideKindSchema, SlideLinkTargetSchema, SlideSchema, SlidesResponseSchema, SwapCommand, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, TicketAuthorTypeSchema, TicketBodySchema, TicketCategorySchema, TicketDetailSchema, TicketMessageSchema, TicketStatusSchema, TicketSummarySchema, TokenPriceSchema, TradeLimitsSchema, TradeResultSchema, TransactionSchema, TransactionStatusSchema, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, UserProfileSchema, UserRankSchema, UserSettingsSchema, UserStatusSchema, UuidSchema, VerifyEmailCommand, WalletOverviewSchema, WithdrawalSchema, WithdrawalStatusSchema, assetDecimals, endpoint };
1035
1058
  //# sourceMappingURL=index.js.map
1036
1059
  //# sourceMappingURL=index.js.map