@numen-crypto/contract 0.6.0 → 0.8.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,46 @@ 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
+ requestedAmount: z.ZodNullable<z.ZodString>;
307
+ status: z.ZodEnum<["PENDING", "CONFIRMING", "CREDITED", "FAILED", "EXPIRED"]>;
308
+ txHash: z.ZodNullable<z.ZodString>;
309
+ confirmations: z.ZodNumber;
310
+ createdAt: z.ZodString;
311
+ creditedAt: z.ZodNullable<z.ZodString>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
314
+ id: string;
315
+ createdAt: string;
316
+ asset: string;
317
+ amount: string | null;
318
+ network: string;
319
+ address: string;
320
+ requestedAmount: string | null;
321
+ txHash: string | null;
322
+ confirmations: number;
323
+ creditedAt: string | null;
324
+ }, {
325
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
326
+ id: string;
327
+ createdAt: string;
328
+ asset: string;
329
+ amount: string | null;
330
+ network: string;
331
+ address: string;
332
+ requestedAmount: string | null;
333
+ txHash: string | null;
334
+ confirmations: number;
335
+ creditedAt: string | null;
336
+ }>;
337
+ type DepositEntry = z.infer<typeof DepositEntrySchema>;
298
338
  declare const DepositAddressSchema: z.ZodObject<{
299
339
  asset: z.ZodEnum<["USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
300
340
  network: z.ZodString;
@@ -305,14 +345,14 @@ declare const DepositAddressSchema: z.ZodObject<{
305
345
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
306
346
  network: string;
307
347
  address: string;
308
- minAmount: string;
309
348
  confirmations: number;
349
+ minAmount: string;
310
350
  }, {
311
351
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
312
352
  network: string;
313
353
  address: string;
314
- minAmount: string;
315
354
  confirmations: number;
355
+ minAmount: string;
316
356
  }>;
317
357
  type DepositAddress = z.infer<typeof DepositAddressSchema>;
318
358
 
@@ -1707,12 +1747,15 @@ declare namespace DepositAddressCommand {
1707
1747
  const RequestSchema: z.ZodObject<{
1708
1748
  asset: z.ZodEnum<["USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
1709
1749
  network: z.ZodString;
1750
+ amount: z.ZodOptional<z.ZodString>;
1710
1751
  }, "strip", z.ZodTypeAny, {
1711
1752
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1712
1753
  network: string;
1754
+ amount?: string | undefined;
1713
1755
  }, {
1714
1756
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1715
1757
  network: string;
1758
+ amount?: string | undefined;
1716
1759
  }>;
1717
1760
  type Request = z.infer<typeof RequestSchema>;
1718
1761
  const ResponseSchema: z.ZodObject<{
@@ -1725,14 +1768,86 @@ declare namespace DepositAddressCommand {
1725
1768
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1726
1769
  network: string;
1727
1770
  address: string;
1728
- minAmount: string;
1729
1771
  confirmations: number;
1772
+ minAmount: string;
1730
1773
  }, {
1731
1774
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1732
1775
  network: string;
1733
1776
  address: string;
1734
- minAmount: string;
1735
1777
  confirmations: number;
1778
+ minAmount: string;
1779
+ }>;
1780
+ type Response = z.infer<typeof ResponseSchema>;
1781
+ }
1782
+
1783
+ declare namespace ListDepositsCommand {
1784
+ const endpointDetails: EndpointDetails;
1785
+ const ResponseSchema: z.ZodObject<{
1786
+ deposits: z.ZodArray<z.ZodObject<{
1787
+ id: z.ZodString;
1788
+ asset: z.ZodString;
1789
+ network: z.ZodString;
1790
+ address: z.ZodString;
1791
+ amount: z.ZodNullable<z.ZodString>;
1792
+ requestedAmount: z.ZodNullable<z.ZodString>;
1793
+ status: z.ZodEnum<["PENDING", "CONFIRMING", "CREDITED", "FAILED", "EXPIRED"]>;
1794
+ txHash: z.ZodNullable<z.ZodString>;
1795
+ confirmations: z.ZodNumber;
1796
+ createdAt: z.ZodString;
1797
+ creditedAt: z.ZodNullable<z.ZodString>;
1798
+ }, "strip", z.ZodTypeAny, {
1799
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
1800
+ id: string;
1801
+ createdAt: string;
1802
+ asset: string;
1803
+ amount: string | null;
1804
+ network: string;
1805
+ address: string;
1806
+ requestedAmount: string | null;
1807
+ txHash: string | null;
1808
+ confirmations: number;
1809
+ creditedAt: string | null;
1810
+ }, {
1811
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
1812
+ id: string;
1813
+ createdAt: string;
1814
+ asset: string;
1815
+ amount: string | null;
1816
+ network: string;
1817
+ address: string;
1818
+ requestedAmount: string | null;
1819
+ txHash: string | null;
1820
+ confirmations: number;
1821
+ creditedAt: string | null;
1822
+ }>, "many">;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ deposits: {
1825
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
1826
+ id: string;
1827
+ createdAt: string;
1828
+ asset: string;
1829
+ amount: string | null;
1830
+ network: string;
1831
+ address: string;
1832
+ requestedAmount: string | null;
1833
+ txHash: string | null;
1834
+ confirmations: number;
1835
+ creditedAt: string | null;
1836
+ }[];
1837
+ }, {
1838
+ deposits: {
1839
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
1840
+ id: string;
1841
+ createdAt: string;
1842
+ asset: string;
1843
+ amount: string | null;
1844
+ network: string;
1845
+ address: string;
1846
+ requestedAmount: string | null;
1847
+ txHash: string | null;
1848
+ confirmations: number;
1849
+ creditedAt: string | null;
1850
+ }[];
1736
1851
  }>;
1737
1852
  type Response = z.infer<typeof ResponseSchema>;
1738
1853
  }
@@ -4183,6 +4298,7 @@ declare const REST_API: {
4183
4298
  readonly OVERVIEW: "/wallet";
4184
4299
  readonly TRANSACTIONS: "/wallet/transactions";
4185
4300
  readonly DEPOSIT_ADDRESS: "/wallet/deposit-address";
4301
+ readonly DEPOSITS: "/wallet/deposits";
4186
4302
  };
4187
4303
  readonly TOKEN: {
4188
4304
  readonly PRICE: "/token/price";
@@ -4257,4 +4373,4 @@ declare const REST_API: {
4257
4373
  declare const API_PREFIX = "/api";
4258
4374
  declare const API_VERSION = "v1";
4259
4375
 
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 };
4376
+ export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CancelOrderCommand, CancelWithdrawalCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositEntry, DepositEntrySchema, type DepositStatus, DepositStatusSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, ForgotPasswordCommand, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, type HttpMethod, type IncomeOverview, IncomeOverviewSchema, type IncomePeriod, IncomePeriodSchema, type Leaderboard, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardPeriod, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, type LinkProvider, LinkProviderSchema, LinkTelegramCommand, type LinkedAccount, LinkedAccountSchema, ListDepositsCommand, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, type Package, PackageSchema, type PackageStatus, PackageStatusSchema, type PackagesOverview, PackagesOverviewSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, type Period, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, type PublicTrade, PublicTradeSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, type Slide, type SlideButtonStyle, SlideButtonStyleSchema, type SlideKind, SlideKindSchema, type SlideLinkTarget, SlideLinkTargetSchema, SlideSchema, type SlidesResponse, SlidesResponseSchema, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, type TicketAttachment, type TicketAttachmentInput, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, type TicketAuthorType, TicketAuthorTypeSchema, TicketBodySchema, type TicketCategory, TicketCategorySchema, type TicketDetail, TicketDetailSchema, type TicketMessage, TicketMessageSchema, type TicketStatus, TicketStatusSchema, type TicketSummary, TicketSummarySchema, type TokenPrice, TokenPriceSchema, type TradeLimits, TradeLimitsSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, VerifyEmailCommand, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, assetDecimals, endpoint };
package/dist/index.d.ts CHANGED
@@ -295,6 +295,46 @@ 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
+ requestedAmount: z.ZodNullable<z.ZodString>;
307
+ status: z.ZodEnum<["PENDING", "CONFIRMING", "CREDITED", "FAILED", "EXPIRED"]>;
308
+ txHash: z.ZodNullable<z.ZodString>;
309
+ confirmations: z.ZodNumber;
310
+ createdAt: z.ZodString;
311
+ creditedAt: z.ZodNullable<z.ZodString>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
314
+ id: string;
315
+ createdAt: string;
316
+ asset: string;
317
+ amount: string | null;
318
+ network: string;
319
+ address: string;
320
+ requestedAmount: string | null;
321
+ txHash: string | null;
322
+ confirmations: number;
323
+ creditedAt: string | null;
324
+ }, {
325
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
326
+ id: string;
327
+ createdAt: string;
328
+ asset: string;
329
+ amount: string | null;
330
+ network: string;
331
+ address: string;
332
+ requestedAmount: string | null;
333
+ txHash: string | null;
334
+ confirmations: number;
335
+ creditedAt: string | null;
336
+ }>;
337
+ type DepositEntry = z.infer<typeof DepositEntrySchema>;
298
338
  declare const DepositAddressSchema: z.ZodObject<{
299
339
  asset: z.ZodEnum<["USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
300
340
  network: z.ZodString;
@@ -305,14 +345,14 @@ declare const DepositAddressSchema: z.ZodObject<{
305
345
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
306
346
  network: string;
307
347
  address: string;
308
- minAmount: string;
309
348
  confirmations: number;
349
+ minAmount: string;
310
350
  }, {
311
351
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
312
352
  network: string;
313
353
  address: string;
314
- minAmount: string;
315
354
  confirmations: number;
355
+ minAmount: string;
316
356
  }>;
317
357
  type DepositAddress = z.infer<typeof DepositAddressSchema>;
318
358
 
@@ -1707,12 +1747,15 @@ declare namespace DepositAddressCommand {
1707
1747
  const RequestSchema: z.ZodObject<{
1708
1748
  asset: z.ZodEnum<["USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
1709
1749
  network: z.ZodString;
1750
+ amount: z.ZodOptional<z.ZodString>;
1710
1751
  }, "strip", z.ZodTypeAny, {
1711
1752
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1712
1753
  network: string;
1754
+ amount?: string | undefined;
1713
1755
  }, {
1714
1756
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1715
1757
  network: string;
1758
+ amount?: string | undefined;
1716
1759
  }>;
1717
1760
  type Request = z.infer<typeof RequestSchema>;
1718
1761
  const ResponseSchema: z.ZodObject<{
@@ -1725,14 +1768,86 @@ declare namespace DepositAddressCommand {
1725
1768
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1726
1769
  network: string;
1727
1770
  address: string;
1728
- minAmount: string;
1729
1771
  confirmations: number;
1772
+ minAmount: string;
1730
1773
  }, {
1731
1774
  asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1732
1775
  network: string;
1733
1776
  address: string;
1734
- minAmount: string;
1735
1777
  confirmations: number;
1778
+ minAmount: string;
1779
+ }>;
1780
+ type Response = z.infer<typeof ResponseSchema>;
1781
+ }
1782
+
1783
+ declare namespace ListDepositsCommand {
1784
+ const endpointDetails: EndpointDetails;
1785
+ const ResponseSchema: z.ZodObject<{
1786
+ deposits: z.ZodArray<z.ZodObject<{
1787
+ id: z.ZodString;
1788
+ asset: z.ZodString;
1789
+ network: z.ZodString;
1790
+ address: z.ZodString;
1791
+ amount: z.ZodNullable<z.ZodString>;
1792
+ requestedAmount: z.ZodNullable<z.ZodString>;
1793
+ status: z.ZodEnum<["PENDING", "CONFIRMING", "CREDITED", "FAILED", "EXPIRED"]>;
1794
+ txHash: z.ZodNullable<z.ZodString>;
1795
+ confirmations: z.ZodNumber;
1796
+ createdAt: z.ZodString;
1797
+ creditedAt: z.ZodNullable<z.ZodString>;
1798
+ }, "strip", z.ZodTypeAny, {
1799
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
1800
+ id: string;
1801
+ createdAt: string;
1802
+ asset: string;
1803
+ amount: string | null;
1804
+ network: string;
1805
+ address: string;
1806
+ requestedAmount: string | null;
1807
+ txHash: string | null;
1808
+ confirmations: number;
1809
+ creditedAt: string | null;
1810
+ }, {
1811
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
1812
+ id: string;
1813
+ createdAt: string;
1814
+ asset: string;
1815
+ amount: string | null;
1816
+ network: string;
1817
+ address: string;
1818
+ requestedAmount: string | null;
1819
+ txHash: string | null;
1820
+ confirmations: number;
1821
+ creditedAt: string | null;
1822
+ }>, "many">;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ deposits: {
1825
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
1826
+ id: string;
1827
+ createdAt: string;
1828
+ asset: string;
1829
+ amount: string | null;
1830
+ network: string;
1831
+ address: string;
1832
+ requestedAmount: string | null;
1833
+ txHash: string | null;
1834
+ confirmations: number;
1835
+ creditedAt: string | null;
1836
+ }[];
1837
+ }, {
1838
+ deposits: {
1839
+ status: "PENDING" | "FAILED" | "CONFIRMING" | "CREDITED" | "EXPIRED";
1840
+ id: string;
1841
+ createdAt: string;
1842
+ asset: string;
1843
+ amount: string | null;
1844
+ network: string;
1845
+ address: string;
1846
+ requestedAmount: string | null;
1847
+ txHash: string | null;
1848
+ confirmations: number;
1849
+ creditedAt: string | null;
1850
+ }[];
1736
1851
  }>;
1737
1852
  type Response = z.infer<typeof ResponseSchema>;
1738
1853
  }
@@ -4183,6 +4298,7 @@ declare const REST_API: {
4183
4298
  readonly OVERVIEW: "/wallet";
4184
4299
  readonly TRANSACTIONS: "/wallet/transactions";
4185
4300
  readonly DEPOSIT_ADDRESS: "/wallet/deposit-address";
4301
+ readonly DEPOSITS: "/wallet/deposits";
4186
4302
  };
4187
4303
  readonly TOKEN: {
4188
4304
  readonly PRICE: "/token/price";
@@ -4257,4 +4373,4 @@ declare const REST_API: {
4257
4373
  declare const API_PREFIX = "/api";
4258
4374
  declare const API_VERSION = "v1";
4259
4375
 
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 };
4376
+ export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CancelOrderCommand, CancelWithdrawalCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositEntry, DepositEntrySchema, type DepositStatus, DepositStatusSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, ForgotPasswordCommand, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, type HttpMethod, type IncomeOverview, IncomeOverviewSchema, type IncomePeriod, IncomePeriodSchema, type Leaderboard, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardPeriod, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, type LinkProvider, LinkProviderSchema, LinkTelegramCommand, type LinkedAccount, LinkedAccountSchema, ListDepositsCommand, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, type Package, PackageSchema, type PackageStatus, PackageStatusSchema, type PackagesOverview, PackagesOverviewSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, type Period, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, type PublicTrade, PublicTradeSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, type Slide, type SlideButtonStyle, SlideButtonStyleSchema, type SlideKind, SlideKindSchema, type SlideLinkTarget, SlideLinkTargetSchema, SlideSchema, type SlidesResponse, SlidesResponseSchema, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, type TicketAttachment, type TicketAttachmentInput, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, type TicketAuthorType, TicketAuthorTypeSchema, TicketBodySchema, type TicketCategory, TicketCategorySchema, type TicketDetail, TicketDetailSchema, type TicketMessage, TicketMessageSchema, type TicketStatus, TicketStatusSchema, type TicketSummary, TicketSummarySchema, type TokenPrice, TokenPriceSchema, type TradeLimits, TradeLimitsSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, VerifyEmailCommand, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, assetDecimals, endpoint };
package/dist/index.js CHANGED
@@ -134,6 +134,20 @@ 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
+ requestedAmount: MoneyStringSchema.nullable(),
145
+ status: DepositStatusSchema,
146
+ txHash: z.string().nullable(),
147
+ confirmations: z.number().int().nonnegative(),
148
+ createdAt: z.string().datetime(),
149
+ creditedAt: z.string().datetime().nullable()
150
+ });
137
151
  var DepositAddressSchema = z.object({
138
152
  asset: DepositableAssetSchema,
139
153
  network: z.string(),
@@ -478,10 +492,22 @@ var DepositAddressCommand;
478
492
  );
479
493
  DepositAddressCommand2.RequestSchema = z.object({
480
494
  asset: DepositableAssetSchema,
481
- network: z.string().min(2).max(32)
495
+ network: z.string().min(2).max(32),
496
+ // What the user said they intend to send. Stored with the invoice so support and
497
+ // the holder both see a figure before any money moves.
498
+ amount: MoneyStringSchema.optional()
482
499
  });
483
500
  DepositAddressCommand2.ResponseSchema = DepositAddressSchema;
484
501
  })(DepositAddressCommand || (DepositAddressCommand = {}));
502
+ var ListDepositsCommand;
503
+ ((ListDepositsCommand2) => {
504
+ ListDepositsCommand2.endpointDetails = endpoint(
505
+ "GET",
506
+ "/wallet/deposits",
507
+ "Recent deposit invoices with their live status, so a waiting screen can turn into a receipt"
508
+ );
509
+ ListDepositsCommand2.ResponseSchema = z.object({ deposits: z.array(DepositEntrySchema) });
510
+ })(ListDepositsCommand || (ListDepositsCommand = {}));
485
511
 
486
512
  // src/commands/token/get-price.command.ts
487
513
  var GetTokenPriceCommand;
@@ -956,7 +982,8 @@ var REST_API = {
956
982
  WALLET: {
957
983
  OVERVIEW: "/wallet",
958
984
  TRANSACTIONS: "/wallet/transactions",
959
- DEPOSIT_ADDRESS: "/wallet/deposit-address"
985
+ DEPOSIT_ADDRESS: "/wallet/deposit-address",
986
+ DEPOSITS: "/wallet/deposits"
960
987
  },
961
988
  TOKEN: {
962
989
  PRICE: "/token/price",
@@ -1031,6 +1058,6 @@ var REST_API = {
1031
1058
  var API_PREFIX = "/api";
1032
1059
  var API_VERSION = "v1";
1033
1060
 
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 };
1061
+ export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, AssetBalanceSchema, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CancelOrderCommand, CancelWithdrawalCommand, ChartPeriodSchema, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, DailyBonusClaimResultSchema, DailyBonusDaySchema, DailyBonusStatusSchema, DepositAddressCommand, DepositAddressSchema, DepositEntrySchema, DepositStatusSchema, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, EarningsOverviewSchema, ErrorResponseSchema, FUNDING_ASSET, ForgotPasswordCommand, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, IncomeOverviewSchema, IncomePeriodSchema, LeaderboardEntrySchema, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, LinkProviderSchema, LinkTelegramCommand, LinkedAccountSchema, ListDepositsCommand, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, NotificationSchema, NotificationTypeSchema, OrderBookLevelSchema, OrderBookSchema, OrderSchema, OrderSideSchema, OrderStatusSchema, OrderTypeSchema, PackageSchema, PackageStatusSchema, PackagesOverviewSchema, PaginatedSchema, PaginationQuerySchema, PartnerAccrualSchema, PartnerLevelSchema, PartnersOverviewSchema, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, PublicTradeSchema, REST_API, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, SessionInfoSchema, SetupTotpCommand, SlideButtonStyleSchema, SlideKindSchema, SlideLinkTargetSchema, SlideSchema, SlidesResponseSchema, SwapCommand, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, TicketAuthorTypeSchema, TicketBodySchema, TicketCategorySchema, TicketDetailSchema, TicketMessageSchema, TicketStatusSchema, TicketSummarySchema, TokenPriceSchema, TradeLimitsSchema, TradeResultSchema, TransactionSchema, TransactionStatusSchema, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, UserProfileSchema, UserRankSchema, UserSettingsSchema, UserStatusSchema, UuidSchema, VerifyEmailCommand, WalletOverviewSchema, WithdrawalSchema, WithdrawalStatusSchema, assetDecimals, endpoint };
1035
1062
  //# sourceMappingURL=index.js.map
1036
1063
  //# sourceMappingURL=index.js.map