@numen-crypto/contract 0.5.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.cjs +42 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +287 -29
- package/dist/index.d.ts +287 -29
- package/dist/index.js +40 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
|
@@ -421,6 +458,47 @@ declare const PackageSchema: z.ZodObject<{
|
|
|
421
458
|
badge: string | null;
|
|
422
459
|
}>;
|
|
423
460
|
type Package = z.infer<typeof PackageSchema>;
|
|
461
|
+
declare const TradeLimitsSchema: z.ZodObject<{
|
|
462
|
+
purchasedUsd: z.ZodString;
|
|
463
|
+
purchaseCapUsd: z.ZodNullable<z.ZodString>;
|
|
464
|
+
capRemainingUsd: z.ZodNullable<z.ZodString>;
|
|
465
|
+
purchasesToday: z.ZodNumber;
|
|
466
|
+
dailyPurchaseLimit: z.ZodNullable<z.ZodNumber>;
|
|
467
|
+
freezeDays: z.ZodNullable<z.ZodNumber>;
|
|
468
|
+
frozenNmn: z.ZodString;
|
|
469
|
+
sellableNmn: z.ZodString;
|
|
470
|
+
windowDays: z.ZodNullable<z.ZodNumber>;
|
|
471
|
+
windowUsd: z.ZodNullable<z.ZodString>;
|
|
472
|
+
windowRemainingUsd: z.ZodNullable<z.ZodString>;
|
|
473
|
+
windowOpensAt: z.ZodNullable<z.ZodString>;
|
|
474
|
+
}, "strip", z.ZodTypeAny, {
|
|
475
|
+
purchasedUsd: string;
|
|
476
|
+
purchaseCapUsd: string | null;
|
|
477
|
+
capRemainingUsd: string | null;
|
|
478
|
+
purchasesToday: number;
|
|
479
|
+
dailyPurchaseLimit: number | null;
|
|
480
|
+
freezeDays: number | null;
|
|
481
|
+
frozenNmn: string;
|
|
482
|
+
sellableNmn: string;
|
|
483
|
+
windowDays: number | null;
|
|
484
|
+
windowUsd: string | null;
|
|
485
|
+
windowRemainingUsd: string | null;
|
|
486
|
+
windowOpensAt: string | null;
|
|
487
|
+
}, {
|
|
488
|
+
purchasedUsd: string;
|
|
489
|
+
purchaseCapUsd: string | null;
|
|
490
|
+
capRemainingUsd: string | null;
|
|
491
|
+
purchasesToday: number;
|
|
492
|
+
dailyPurchaseLimit: number | null;
|
|
493
|
+
freezeDays: number | null;
|
|
494
|
+
frozenNmn: string;
|
|
495
|
+
sellableNmn: string;
|
|
496
|
+
windowDays: number | null;
|
|
497
|
+
windowUsd: string | null;
|
|
498
|
+
windowRemainingUsd: string | null;
|
|
499
|
+
windowOpensAt: string | null;
|
|
500
|
+
}>;
|
|
501
|
+
type TradeLimits = z.infer<typeof TradeLimitsSchema>;
|
|
424
502
|
declare const PackagesOverviewSchema: z.ZodObject<{
|
|
425
503
|
packages: z.ZodArray<z.ZodObject<{
|
|
426
504
|
id: z.ZodString;
|
|
@@ -444,10 +522,46 @@ declare const PackagesOverviewSchema: z.ZodObject<{
|
|
|
444
522
|
sellIntervalDays: number;
|
|
445
523
|
badge: string | null;
|
|
446
524
|
}>, "many">;
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
525
|
+
limits: z.ZodObject<{
|
|
526
|
+
purchasedUsd: z.ZodString;
|
|
527
|
+
purchaseCapUsd: z.ZodNullable<z.ZodString>;
|
|
528
|
+
capRemainingUsd: z.ZodNullable<z.ZodString>;
|
|
529
|
+
purchasesToday: z.ZodNumber;
|
|
530
|
+
dailyPurchaseLimit: z.ZodNullable<z.ZodNumber>;
|
|
531
|
+
freezeDays: z.ZodNullable<z.ZodNumber>;
|
|
532
|
+
frozenNmn: z.ZodString;
|
|
533
|
+
sellableNmn: z.ZodString;
|
|
534
|
+
windowDays: z.ZodNullable<z.ZodNumber>;
|
|
535
|
+
windowUsd: z.ZodNullable<z.ZodString>;
|
|
536
|
+
windowRemainingUsd: z.ZodNullable<z.ZodString>;
|
|
537
|
+
windowOpensAt: z.ZodNullable<z.ZodString>;
|
|
538
|
+
}, "strip", z.ZodTypeAny, {
|
|
539
|
+
purchasedUsd: string;
|
|
540
|
+
purchaseCapUsd: string | null;
|
|
541
|
+
capRemainingUsd: string | null;
|
|
542
|
+
purchasesToday: number;
|
|
543
|
+
dailyPurchaseLimit: number | null;
|
|
544
|
+
freezeDays: number | null;
|
|
545
|
+
frozenNmn: string;
|
|
546
|
+
sellableNmn: string;
|
|
547
|
+
windowDays: number | null;
|
|
548
|
+
windowUsd: string | null;
|
|
549
|
+
windowRemainingUsd: string | null;
|
|
550
|
+
windowOpensAt: string | null;
|
|
551
|
+
}, {
|
|
552
|
+
purchasedUsd: string;
|
|
553
|
+
purchaseCapUsd: string | null;
|
|
554
|
+
capRemainingUsd: string | null;
|
|
555
|
+
purchasesToday: number;
|
|
556
|
+
dailyPurchaseLimit: number | null;
|
|
557
|
+
freezeDays: number | null;
|
|
558
|
+
frozenNmn: string;
|
|
559
|
+
sellableNmn: string;
|
|
560
|
+
windowDays: number | null;
|
|
561
|
+
windowUsd: string | null;
|
|
562
|
+
windowRemainingUsd: string | null;
|
|
563
|
+
windowOpensAt: string | null;
|
|
564
|
+
}>;
|
|
451
565
|
minPriceUsd: z.ZodString;
|
|
452
566
|
maxPriceUsd: z.ZodString;
|
|
453
567
|
sellIntervalDays: z.ZodNullable<z.ZodNumber>;
|
|
@@ -463,10 +577,20 @@ declare const PackagesOverviewSchema: z.ZodObject<{
|
|
|
463
577
|
sellIntervalDays: number;
|
|
464
578
|
badge: string | null;
|
|
465
579
|
}[];
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
580
|
+
limits: {
|
|
581
|
+
purchasedUsd: string;
|
|
582
|
+
purchaseCapUsd: string | null;
|
|
583
|
+
capRemainingUsd: string | null;
|
|
584
|
+
purchasesToday: number;
|
|
585
|
+
dailyPurchaseLimit: number | null;
|
|
586
|
+
freezeDays: number | null;
|
|
587
|
+
frozenNmn: string;
|
|
588
|
+
sellableNmn: string;
|
|
589
|
+
windowDays: number | null;
|
|
590
|
+
windowUsd: string | null;
|
|
591
|
+
windowRemainingUsd: string | null;
|
|
592
|
+
windowOpensAt: string | null;
|
|
593
|
+
};
|
|
470
594
|
minPriceUsd: string;
|
|
471
595
|
maxPriceUsd: string;
|
|
472
596
|
nextSellAt: string | null;
|
|
@@ -481,10 +605,20 @@ declare const PackagesOverviewSchema: z.ZodObject<{
|
|
|
481
605
|
sellIntervalDays: number;
|
|
482
606
|
badge: string | null;
|
|
483
607
|
}[];
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
608
|
+
limits: {
|
|
609
|
+
purchasedUsd: string;
|
|
610
|
+
purchaseCapUsd: string | null;
|
|
611
|
+
capRemainingUsd: string | null;
|
|
612
|
+
purchasesToday: number;
|
|
613
|
+
dailyPurchaseLimit: number | null;
|
|
614
|
+
freezeDays: number | null;
|
|
615
|
+
frozenNmn: string;
|
|
616
|
+
sellableNmn: string;
|
|
617
|
+
windowDays: number | null;
|
|
618
|
+
windowUsd: string | null;
|
|
619
|
+
windowRemainingUsd: string | null;
|
|
620
|
+
windowOpensAt: string | null;
|
|
621
|
+
};
|
|
488
622
|
minPriceUsd: string;
|
|
489
623
|
maxPriceUsd: string;
|
|
490
624
|
nextSellAt: string | null;
|
|
@@ -1628,14 +1762,81 @@ declare namespace DepositAddressCommand {
|
|
|
1628
1762
|
asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
1629
1763
|
network: string;
|
|
1630
1764
|
address: string;
|
|
1631
|
-
minAmount: string;
|
|
1632
1765
|
confirmations: number;
|
|
1766
|
+
minAmount: string;
|
|
1633
1767
|
}, {
|
|
1634
1768
|
asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
1635
1769
|
network: string;
|
|
1636
1770
|
address: string;
|
|
1637
|
-
minAmount: string;
|
|
1638
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
|
+
}[];
|
|
1639
1840
|
}>;
|
|
1640
1841
|
type Response = z.infer<typeof ResponseSchema>;
|
|
1641
1842
|
}
|
|
@@ -2270,10 +2471,46 @@ declare namespace GetPackagesCommand {
|
|
|
2270
2471
|
sellIntervalDays: number;
|
|
2271
2472
|
badge: string | null;
|
|
2272
2473
|
}>, "many">;
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2474
|
+
limits: zod.ZodObject<{
|
|
2475
|
+
purchasedUsd: zod.ZodString;
|
|
2476
|
+
purchaseCapUsd: zod.ZodNullable<zod.ZodString>;
|
|
2477
|
+
capRemainingUsd: zod.ZodNullable<zod.ZodString>;
|
|
2478
|
+
purchasesToday: zod.ZodNumber;
|
|
2479
|
+
dailyPurchaseLimit: zod.ZodNullable<zod.ZodNumber>;
|
|
2480
|
+
freezeDays: zod.ZodNullable<zod.ZodNumber>;
|
|
2481
|
+
frozenNmn: zod.ZodString;
|
|
2482
|
+
sellableNmn: zod.ZodString;
|
|
2483
|
+
windowDays: zod.ZodNullable<zod.ZodNumber>;
|
|
2484
|
+
windowUsd: zod.ZodNullable<zod.ZodString>;
|
|
2485
|
+
windowRemainingUsd: zod.ZodNullable<zod.ZodString>;
|
|
2486
|
+
windowOpensAt: zod.ZodNullable<zod.ZodString>;
|
|
2487
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2488
|
+
purchasedUsd: string;
|
|
2489
|
+
purchaseCapUsd: string | null;
|
|
2490
|
+
capRemainingUsd: string | null;
|
|
2491
|
+
purchasesToday: number;
|
|
2492
|
+
dailyPurchaseLimit: number | null;
|
|
2493
|
+
freezeDays: number | null;
|
|
2494
|
+
frozenNmn: string;
|
|
2495
|
+
sellableNmn: string;
|
|
2496
|
+
windowDays: number | null;
|
|
2497
|
+
windowUsd: string | null;
|
|
2498
|
+
windowRemainingUsd: string | null;
|
|
2499
|
+
windowOpensAt: string | null;
|
|
2500
|
+
}, {
|
|
2501
|
+
purchasedUsd: string;
|
|
2502
|
+
purchaseCapUsd: string | null;
|
|
2503
|
+
capRemainingUsd: string | null;
|
|
2504
|
+
purchasesToday: number;
|
|
2505
|
+
dailyPurchaseLimit: number | null;
|
|
2506
|
+
freezeDays: number | null;
|
|
2507
|
+
frozenNmn: string;
|
|
2508
|
+
sellableNmn: string;
|
|
2509
|
+
windowDays: number | null;
|
|
2510
|
+
windowUsd: string | null;
|
|
2511
|
+
windowRemainingUsd: string | null;
|
|
2512
|
+
windowOpensAt: string | null;
|
|
2513
|
+
}>;
|
|
2277
2514
|
minPriceUsd: zod.ZodString;
|
|
2278
2515
|
maxPriceUsd: zod.ZodString;
|
|
2279
2516
|
sellIntervalDays: zod.ZodNullable<zod.ZodNumber>;
|
|
@@ -2289,10 +2526,20 @@ declare namespace GetPackagesCommand {
|
|
|
2289
2526
|
sellIntervalDays: number;
|
|
2290
2527
|
badge: string | null;
|
|
2291
2528
|
}[];
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2529
|
+
limits: {
|
|
2530
|
+
purchasedUsd: string;
|
|
2531
|
+
purchaseCapUsd: string | null;
|
|
2532
|
+
capRemainingUsd: string | null;
|
|
2533
|
+
purchasesToday: number;
|
|
2534
|
+
dailyPurchaseLimit: number | null;
|
|
2535
|
+
freezeDays: number | null;
|
|
2536
|
+
frozenNmn: string;
|
|
2537
|
+
sellableNmn: string;
|
|
2538
|
+
windowDays: number | null;
|
|
2539
|
+
windowUsd: string | null;
|
|
2540
|
+
windowRemainingUsd: string | null;
|
|
2541
|
+
windowOpensAt: string | null;
|
|
2542
|
+
};
|
|
2296
2543
|
minPriceUsd: string;
|
|
2297
2544
|
maxPriceUsd: string;
|
|
2298
2545
|
nextSellAt: string | null;
|
|
@@ -2307,10 +2554,20 @@ declare namespace GetPackagesCommand {
|
|
|
2307
2554
|
sellIntervalDays: number;
|
|
2308
2555
|
badge: string | null;
|
|
2309
2556
|
}[];
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2557
|
+
limits: {
|
|
2558
|
+
purchasedUsd: string;
|
|
2559
|
+
purchaseCapUsd: string | null;
|
|
2560
|
+
capRemainingUsd: string | null;
|
|
2561
|
+
purchasesToday: number;
|
|
2562
|
+
dailyPurchaseLimit: number | null;
|
|
2563
|
+
freezeDays: number | null;
|
|
2564
|
+
frozenNmn: string;
|
|
2565
|
+
sellableNmn: string;
|
|
2566
|
+
windowDays: number | null;
|
|
2567
|
+
windowUsd: string | null;
|
|
2568
|
+
windowRemainingUsd: string | null;
|
|
2569
|
+
windowOpensAt: string | null;
|
|
2570
|
+
};
|
|
2314
2571
|
minPriceUsd: string;
|
|
2315
2572
|
maxPriceUsd: string;
|
|
2316
2573
|
nextSellAt: string | null;
|
|
@@ -4030,6 +4287,7 @@ declare const REST_API: {
|
|
|
4030
4287
|
readonly OVERVIEW: "/wallet";
|
|
4031
4288
|
readonly TRANSACTIONS: "/wallet/transactions";
|
|
4032
4289
|
readonly DEPOSIT_ADDRESS: "/wallet/deposit-address";
|
|
4290
|
+
readonly DEPOSITS: "/wallet/deposits";
|
|
4033
4291
|
};
|
|
4034
4292
|
readonly TOKEN: {
|
|
4035
4293
|
readonly PRICE: "/token/price";
|
|
@@ -4104,4 +4362,4 @@ declare const REST_API: {
|
|
|
4104
4362
|
declare const API_PREFIX = "/api";
|
|
4105
4363
|
declare const API_VERSION = "v1";
|
|
4106
4364
|
|
|
4107
|
-
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 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(),
|
|
@@ -167,12 +180,23 @@ var PackageSchema = z.object({
|
|
|
167
180
|
status: PackageStatusSchema,
|
|
168
181
|
badge: z.string().nullable()
|
|
169
182
|
});
|
|
183
|
+
var TradeLimitsSchema = z.object({
|
|
184
|
+
purchasedUsd: MoneyStringSchema,
|
|
185
|
+
purchaseCapUsd: MoneyStringSchema.nullable(),
|
|
186
|
+
capRemainingUsd: MoneyStringSchema.nullable(),
|
|
187
|
+
purchasesToday: z.number().int().nonnegative(),
|
|
188
|
+
dailyPurchaseLimit: z.number().int().nonnegative().nullable(),
|
|
189
|
+
freezeDays: z.number().int().nonnegative().nullable(),
|
|
190
|
+
frozenNmn: MoneyStringSchema,
|
|
191
|
+
sellableNmn: MoneyStringSchema,
|
|
192
|
+
windowDays: z.number().int().nonnegative().nullable(),
|
|
193
|
+
windowUsd: MoneyStringSchema.nullable(),
|
|
194
|
+
windowRemainingUsd: MoneyStringSchema.nullable(),
|
|
195
|
+
windowOpensAt: z.string().datetime().nullable()
|
|
196
|
+
});
|
|
170
197
|
var PackagesOverviewSchema = z.object({
|
|
171
198
|
packages: z.array(PackageSchema),
|
|
172
|
-
|
|
173
|
-
dailyUsed: z.number().int().nonnegative(),
|
|
174
|
-
weeklyLimitUsd: MoneyStringSchema.nullable(),
|
|
175
|
-
weeklySpentUsd: MoneyStringSchema,
|
|
199
|
+
limits: TradeLimitsSchema,
|
|
176
200
|
minPriceUsd: MoneyStringSchema,
|
|
177
201
|
maxPriceUsd: MoneyStringSchema,
|
|
178
202
|
sellIntervalDays: z.number().int().positive().nullable(),
|
|
@@ -471,6 +495,15 @@ var DepositAddressCommand;
|
|
|
471
495
|
});
|
|
472
496
|
DepositAddressCommand2.ResponseSchema = DepositAddressSchema;
|
|
473
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 = {}));
|
|
474
507
|
|
|
475
508
|
// src/commands/token/get-price.command.ts
|
|
476
509
|
var GetTokenPriceCommand;
|
|
@@ -945,7 +978,8 @@ var REST_API = {
|
|
|
945
978
|
WALLET: {
|
|
946
979
|
OVERVIEW: "/wallet",
|
|
947
980
|
TRANSACTIONS: "/wallet/transactions",
|
|
948
|
-
DEPOSIT_ADDRESS: "/wallet/deposit-address"
|
|
981
|
+
DEPOSIT_ADDRESS: "/wallet/deposit-address",
|
|
982
|
+
DEPOSITS: "/wallet/deposits"
|
|
949
983
|
},
|
|
950
984
|
TOKEN: {
|
|
951
985
|
PRICE: "/token/price",
|
|
@@ -1020,6 +1054,6 @@ var REST_API = {
|
|
|
1020
1054
|
var API_PREFIX = "/api";
|
|
1021
1055
|
var API_VERSION = "v1";
|
|
1022
1056
|
|
|
1023
|
-
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, 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 };
|
|
1024
1058
|
//# sourceMappingURL=index.js.map
|
|
1025
1059
|
//# sourceMappingURL=index.js.map
|