@numen-crypto/contract 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +69 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +292 -12
- package/dist/index.d.ts +292 -12
- package/dist/index.js +66 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -31,6 +31,8 @@ declare const MONEY_REGEX: RegExp;
|
|
|
31
31
|
declare const MoneyStringSchema: z.ZodString;
|
|
32
32
|
declare const PositiveMoneyStringSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
33
33
|
declare const UuidSchema: z.ZodString;
|
|
34
|
+
declare const PeriodSchema: z.ZodEnum<["week", "month", "year", "all"]>;
|
|
35
|
+
type Period = z.infer<typeof PeriodSchema>;
|
|
34
36
|
declare const ErrorResponseSchema: z.ZodObject<{
|
|
35
37
|
error: z.ZodObject<{
|
|
36
38
|
code: z.ZodString;
|
|
@@ -246,6 +248,8 @@ declare const TransactionSchema: z.ZodObject<{
|
|
|
246
248
|
type: z.ZodEnum<["DEPOSIT", "WITHDRAWAL", "BUY", "SELL", "COMMISSION", "BONUS", "ADJUSTMENT"]>;
|
|
247
249
|
asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
|
|
248
250
|
amount: z.ZodString;
|
|
251
|
+
price: z.ZodNullable<z.ZodString>;
|
|
252
|
+
quoteAmount: z.ZodNullable<z.ZodString>;
|
|
249
253
|
status: z.ZodEnum<["PENDING", "PROCESSING", "COMPLETED", "FAILED", "CANCELLED"]>;
|
|
250
254
|
reference: z.ZodNullable<z.ZodString>;
|
|
251
255
|
createdAt: z.ZodString;
|
|
@@ -256,6 +260,8 @@ declare const TransactionSchema: z.ZodObject<{
|
|
|
256
260
|
createdAt: string;
|
|
257
261
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
258
262
|
amount: string;
|
|
263
|
+
price: string | null;
|
|
264
|
+
quoteAmount: string | null;
|
|
259
265
|
reference: string | null;
|
|
260
266
|
}, {
|
|
261
267
|
type: "DEPOSIT" | "WITHDRAWAL" | "BUY" | "SELL" | "COMMISSION" | "BONUS" | "ADJUSTMENT";
|
|
@@ -264,6 +270,8 @@ declare const TransactionSchema: z.ZodObject<{
|
|
|
264
270
|
createdAt: string;
|
|
265
271
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
266
272
|
amount: string;
|
|
273
|
+
price: string | null;
|
|
274
|
+
quoteAmount: string | null;
|
|
267
275
|
reference: string | null;
|
|
268
276
|
}>;
|
|
269
277
|
type Transaction = z.infer<typeof TransactionSchema>;
|
|
@@ -292,53 +300,179 @@ type DepositAddress = z.infer<typeof DepositAddressSchema>;
|
|
|
292
300
|
declare const PartnerLevelSchema: z.ZodObject<{
|
|
293
301
|
level: z.ZodNumber;
|
|
294
302
|
partners: z.ZodNumber;
|
|
303
|
+
active: z.ZodNumber;
|
|
304
|
+
turnover: z.ZodString;
|
|
305
|
+
reward: z.ZodString;
|
|
295
306
|
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
active: number;
|
|
296
308
|
level: number;
|
|
297
309
|
partners: number;
|
|
310
|
+
turnover: string;
|
|
311
|
+
reward: string;
|
|
298
312
|
}, {
|
|
313
|
+
active: number;
|
|
299
314
|
level: number;
|
|
300
315
|
partners: number;
|
|
316
|
+
turnover: string;
|
|
317
|
+
reward: string;
|
|
301
318
|
}>;
|
|
302
319
|
type PartnerLevel = z.infer<typeof PartnerLevelSchema>;
|
|
303
320
|
declare const PartnersOverviewSchema: z.ZodObject<{
|
|
321
|
+
period: z.ZodEnum<["week", "month", "year", "all"]>;
|
|
304
322
|
referralCode: z.ZodString;
|
|
305
323
|
totalPartners: z.ZodNumber;
|
|
306
324
|
directPartners: z.ZodNumber;
|
|
307
325
|
networkTurnover: z.ZodString;
|
|
326
|
+
networkTurnoverChangePct: z.ZodNumber;
|
|
308
327
|
affiliateIncome: z.ZodString;
|
|
309
328
|
levels: z.ZodArray<z.ZodObject<{
|
|
310
329
|
level: z.ZodNumber;
|
|
311
330
|
partners: z.ZodNumber;
|
|
331
|
+
active: z.ZodNumber;
|
|
332
|
+
turnover: z.ZodString;
|
|
333
|
+
reward: z.ZodString;
|
|
312
334
|
}, "strip", z.ZodTypeAny, {
|
|
335
|
+
active: number;
|
|
313
336
|
level: number;
|
|
314
337
|
partners: number;
|
|
338
|
+
turnover: string;
|
|
339
|
+
reward: string;
|
|
315
340
|
}, {
|
|
341
|
+
active: number;
|
|
316
342
|
level: number;
|
|
317
343
|
partners: number;
|
|
344
|
+
turnover: string;
|
|
345
|
+
reward: string;
|
|
318
346
|
}>, "many">;
|
|
319
347
|
}, "strip", z.ZodTypeAny, {
|
|
348
|
+
period: "week" | "month" | "year" | "all";
|
|
320
349
|
referralCode: string;
|
|
321
350
|
totalPartners: number;
|
|
322
351
|
directPartners: number;
|
|
323
352
|
networkTurnover: string;
|
|
353
|
+
networkTurnoverChangePct: number;
|
|
324
354
|
affiliateIncome: string;
|
|
325
355
|
levels: {
|
|
356
|
+
active: number;
|
|
326
357
|
level: number;
|
|
327
358
|
partners: number;
|
|
359
|
+
turnover: string;
|
|
360
|
+
reward: string;
|
|
328
361
|
}[];
|
|
329
362
|
}, {
|
|
363
|
+
period: "week" | "month" | "year" | "all";
|
|
330
364
|
referralCode: string;
|
|
331
365
|
totalPartners: number;
|
|
332
366
|
directPartners: number;
|
|
333
367
|
networkTurnover: string;
|
|
368
|
+
networkTurnoverChangePct: number;
|
|
334
369
|
affiliateIncome: string;
|
|
335
370
|
levels: {
|
|
371
|
+
active: number;
|
|
336
372
|
level: number;
|
|
337
373
|
partners: number;
|
|
374
|
+
turnover: string;
|
|
375
|
+
reward: string;
|
|
338
376
|
}[];
|
|
339
377
|
}>;
|
|
340
378
|
type PartnersOverview = z.infer<typeof PartnersOverviewSchema>;
|
|
341
379
|
|
|
380
|
+
declare const PackageStatusSchema: z.ZodEnum<["active", "locked"]>;
|
|
381
|
+
type PackageStatus = z.infer<typeof PackageStatusSchema>;
|
|
382
|
+
declare const PackageSchema: z.ZodObject<{
|
|
383
|
+
id: z.ZodString;
|
|
384
|
+
tier: z.ZodNumber;
|
|
385
|
+
priceUsd: z.ZodString;
|
|
386
|
+
sellIntervalDays: z.ZodNumber;
|
|
387
|
+
status: z.ZodEnum<["active", "locked"]>;
|
|
388
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
389
|
+
}, "strip", z.ZodTypeAny, {
|
|
390
|
+
status: "active" | "locked";
|
|
391
|
+
id: string;
|
|
392
|
+
tier: number;
|
|
393
|
+
priceUsd: string;
|
|
394
|
+
sellIntervalDays: number;
|
|
395
|
+
badge: string | null;
|
|
396
|
+
}, {
|
|
397
|
+
status: "active" | "locked";
|
|
398
|
+
id: string;
|
|
399
|
+
tier: number;
|
|
400
|
+
priceUsd: string;
|
|
401
|
+
sellIntervalDays: number;
|
|
402
|
+
badge: string | null;
|
|
403
|
+
}>;
|
|
404
|
+
type Package = z.infer<typeof PackageSchema>;
|
|
405
|
+
declare const PackagesOverviewSchema: z.ZodObject<{
|
|
406
|
+
packages: z.ZodArray<z.ZodObject<{
|
|
407
|
+
id: z.ZodString;
|
|
408
|
+
tier: z.ZodNumber;
|
|
409
|
+
priceUsd: z.ZodString;
|
|
410
|
+
sellIntervalDays: z.ZodNumber;
|
|
411
|
+
status: z.ZodEnum<["active", "locked"]>;
|
|
412
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
413
|
+
}, "strip", z.ZodTypeAny, {
|
|
414
|
+
status: "active" | "locked";
|
|
415
|
+
id: string;
|
|
416
|
+
tier: number;
|
|
417
|
+
priceUsd: string;
|
|
418
|
+
sellIntervalDays: number;
|
|
419
|
+
badge: string | null;
|
|
420
|
+
}, {
|
|
421
|
+
status: "active" | "locked";
|
|
422
|
+
id: string;
|
|
423
|
+
tier: number;
|
|
424
|
+
priceUsd: string;
|
|
425
|
+
sellIntervalDays: number;
|
|
426
|
+
badge: string | null;
|
|
427
|
+
}>, "many">;
|
|
428
|
+
dailyLimit: z.ZodNumber;
|
|
429
|
+
dailyUsed: z.ZodNumber;
|
|
430
|
+
weeklyLimitUsd: z.ZodNullable<z.ZodString>;
|
|
431
|
+
weeklySpentUsd: z.ZodString;
|
|
432
|
+
minPriceUsd: z.ZodString;
|
|
433
|
+
maxPriceUsd: z.ZodString;
|
|
434
|
+
sellIntervalDays: z.ZodNullable<z.ZodNumber>;
|
|
435
|
+
nextSellAt: z.ZodNullable<z.ZodString>;
|
|
436
|
+
balanceUsdt: z.ZodString;
|
|
437
|
+
}, "strip", z.ZodTypeAny, {
|
|
438
|
+
sellIntervalDays: number | null;
|
|
439
|
+
packages: {
|
|
440
|
+
status: "active" | "locked";
|
|
441
|
+
id: string;
|
|
442
|
+
tier: number;
|
|
443
|
+
priceUsd: string;
|
|
444
|
+
sellIntervalDays: number;
|
|
445
|
+
badge: string | null;
|
|
446
|
+
}[];
|
|
447
|
+
dailyLimit: number;
|
|
448
|
+
dailyUsed: number;
|
|
449
|
+
weeklyLimitUsd: string | null;
|
|
450
|
+
weeklySpentUsd: string;
|
|
451
|
+
minPriceUsd: string;
|
|
452
|
+
maxPriceUsd: string;
|
|
453
|
+
nextSellAt: string | null;
|
|
454
|
+
balanceUsdt: string;
|
|
455
|
+
}, {
|
|
456
|
+
sellIntervalDays: number | null;
|
|
457
|
+
packages: {
|
|
458
|
+
status: "active" | "locked";
|
|
459
|
+
id: string;
|
|
460
|
+
tier: number;
|
|
461
|
+
priceUsd: string;
|
|
462
|
+
sellIntervalDays: number;
|
|
463
|
+
badge: string | null;
|
|
464
|
+
}[];
|
|
465
|
+
dailyLimit: number;
|
|
466
|
+
dailyUsed: number;
|
|
467
|
+
weeklyLimitUsd: string | null;
|
|
468
|
+
weeklySpentUsd: string;
|
|
469
|
+
minPriceUsd: string;
|
|
470
|
+
maxPriceUsd: string;
|
|
471
|
+
nextSellAt: string | null;
|
|
472
|
+
balanceUsdt: string;
|
|
473
|
+
}>;
|
|
474
|
+
type PackagesOverview = z.infer<typeof PackagesOverviewSchema>;
|
|
475
|
+
|
|
342
476
|
declare const RankDefSchema: z.ZodObject<{
|
|
343
477
|
name: z.ZodString;
|
|
344
478
|
order: z.ZodNumber;
|
|
@@ -1225,6 +1359,8 @@ declare namespace GetTransactionsCommand {
|
|
|
1225
1359
|
type: z.ZodEnum<["DEPOSIT", "WITHDRAWAL", "BUY", "SELL", "COMMISSION", "BONUS", "ADJUSTMENT"]>;
|
|
1226
1360
|
asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
|
|
1227
1361
|
amount: z.ZodString;
|
|
1362
|
+
price: z.ZodNullable<z.ZodString>;
|
|
1363
|
+
quoteAmount: z.ZodNullable<z.ZodString>;
|
|
1228
1364
|
status: z.ZodEnum<["PENDING", "PROCESSING", "COMPLETED", "FAILED", "CANCELLED"]>;
|
|
1229
1365
|
reference: z.ZodNullable<z.ZodString>;
|
|
1230
1366
|
createdAt: z.ZodString;
|
|
@@ -1235,6 +1371,8 @@ declare namespace GetTransactionsCommand {
|
|
|
1235
1371
|
createdAt: string;
|
|
1236
1372
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
1237
1373
|
amount: string;
|
|
1374
|
+
price: string | null;
|
|
1375
|
+
quoteAmount: string | null;
|
|
1238
1376
|
reference: string | null;
|
|
1239
1377
|
}, {
|
|
1240
1378
|
type: "DEPOSIT" | "WITHDRAWAL" | "BUY" | "SELL" | "COMMISSION" | "BONUS" | "ADJUSTMENT";
|
|
@@ -1243,6 +1381,8 @@ declare namespace GetTransactionsCommand {
|
|
|
1243
1381
|
createdAt: string;
|
|
1244
1382
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
1245
1383
|
amount: string;
|
|
1384
|
+
price: string | null;
|
|
1385
|
+
quoteAmount: string | null;
|
|
1246
1386
|
reference: string | null;
|
|
1247
1387
|
}>, "many">;
|
|
1248
1388
|
total: z.ZodNumber;
|
|
@@ -1258,6 +1398,8 @@ declare namespace GetTransactionsCommand {
|
|
|
1258
1398
|
createdAt: string;
|
|
1259
1399
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
1260
1400
|
amount: string;
|
|
1401
|
+
price: string | null;
|
|
1402
|
+
quoteAmount: string | null;
|
|
1261
1403
|
reference: string | null;
|
|
1262
1404
|
}[];
|
|
1263
1405
|
total: number;
|
|
@@ -1271,6 +1413,8 @@ declare namespace GetTransactionsCommand {
|
|
|
1271
1413
|
createdAt: string;
|
|
1272
1414
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
1273
1415
|
amount: string;
|
|
1416
|
+
price: string | null;
|
|
1417
|
+
quoteAmount: string | null;
|
|
1274
1418
|
reference: string | null;
|
|
1275
1419
|
}[];
|
|
1276
1420
|
total: number;
|
|
@@ -1849,46 +1993,178 @@ declare namespace ListTradesCommand {
|
|
|
1849
1993
|
|
|
1850
1994
|
declare namespace GetPartnersCommand {
|
|
1851
1995
|
const endpointDetails: EndpointDetails;
|
|
1852
|
-
const
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1996
|
+
const QuerySchema: z.ZodObject<{
|
|
1997
|
+
period: z.ZodDefault<z.ZodEnum<["week", "month", "year", "all"]>>;
|
|
1998
|
+
}, "strip", z.ZodTypeAny, {
|
|
1999
|
+
period: "week" | "month" | "year" | "all";
|
|
2000
|
+
}, {
|
|
2001
|
+
period?: "week" | "month" | "year" | "all" | undefined;
|
|
2002
|
+
}>;
|
|
2003
|
+
type Query = z.infer<typeof QuerySchema>;
|
|
2004
|
+
const ResponseSchema: z.ZodObject<{
|
|
2005
|
+
period: z.ZodEnum<["week", "month", "year", "all"]>;
|
|
2006
|
+
referralCode: z.ZodString;
|
|
2007
|
+
totalPartners: z.ZodNumber;
|
|
2008
|
+
directPartners: z.ZodNumber;
|
|
2009
|
+
networkTurnover: z.ZodString;
|
|
2010
|
+
networkTurnoverChangePct: z.ZodNumber;
|
|
2011
|
+
affiliateIncome: z.ZodString;
|
|
2012
|
+
levels: z.ZodArray<z.ZodObject<{
|
|
2013
|
+
level: z.ZodNumber;
|
|
2014
|
+
partners: z.ZodNumber;
|
|
2015
|
+
active: z.ZodNumber;
|
|
2016
|
+
turnover: z.ZodString;
|
|
2017
|
+
reward: z.ZodString;
|
|
2018
|
+
}, "strip", z.ZodTypeAny, {
|
|
2019
|
+
active: number;
|
|
1862
2020
|
level: number;
|
|
1863
2021
|
partners: number;
|
|
2022
|
+
turnover: string;
|
|
2023
|
+
reward: string;
|
|
1864
2024
|
}, {
|
|
2025
|
+
active: number;
|
|
1865
2026
|
level: number;
|
|
1866
2027
|
partners: number;
|
|
2028
|
+
turnover: string;
|
|
2029
|
+
reward: string;
|
|
1867
2030
|
}>, "many">;
|
|
1868
|
-
}, "strip",
|
|
2031
|
+
}, "strip", z.ZodTypeAny, {
|
|
2032
|
+
period: "week" | "month" | "year" | "all";
|
|
1869
2033
|
referralCode: string;
|
|
1870
2034
|
totalPartners: number;
|
|
1871
2035
|
directPartners: number;
|
|
1872
2036
|
networkTurnover: string;
|
|
2037
|
+
networkTurnoverChangePct: number;
|
|
1873
2038
|
affiliateIncome: string;
|
|
1874
2039
|
levels: {
|
|
2040
|
+
active: number;
|
|
1875
2041
|
level: number;
|
|
1876
2042
|
partners: number;
|
|
2043
|
+
turnover: string;
|
|
2044
|
+
reward: string;
|
|
1877
2045
|
}[];
|
|
1878
2046
|
}, {
|
|
2047
|
+
period: "week" | "month" | "year" | "all";
|
|
1879
2048
|
referralCode: string;
|
|
1880
2049
|
totalPartners: number;
|
|
1881
2050
|
directPartners: number;
|
|
1882
2051
|
networkTurnover: string;
|
|
2052
|
+
networkTurnoverChangePct: number;
|
|
1883
2053
|
affiliateIncome: string;
|
|
1884
2054
|
levels: {
|
|
2055
|
+
active: number;
|
|
1885
2056
|
level: number;
|
|
1886
2057
|
partners: number;
|
|
2058
|
+
turnover: string;
|
|
2059
|
+
reward: string;
|
|
1887
2060
|
}[];
|
|
1888
2061
|
}>;
|
|
1889
2062
|
type Response = PartnersOverview;
|
|
1890
2063
|
}
|
|
1891
2064
|
|
|
2065
|
+
declare namespace GetPackagesCommand {
|
|
2066
|
+
const endpointDetails: EndpointDetails;
|
|
2067
|
+
const ResponseSchema: zod.ZodObject<{
|
|
2068
|
+
packages: zod.ZodArray<zod.ZodObject<{
|
|
2069
|
+
id: zod.ZodString;
|
|
2070
|
+
tier: zod.ZodNumber;
|
|
2071
|
+
priceUsd: zod.ZodString;
|
|
2072
|
+
sellIntervalDays: zod.ZodNumber;
|
|
2073
|
+
status: zod.ZodEnum<["active", "locked"]>;
|
|
2074
|
+
badge: zod.ZodNullable<zod.ZodString>;
|
|
2075
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2076
|
+
status: "active" | "locked";
|
|
2077
|
+
id: string;
|
|
2078
|
+
tier: number;
|
|
2079
|
+
priceUsd: string;
|
|
2080
|
+
sellIntervalDays: number;
|
|
2081
|
+
badge: string | null;
|
|
2082
|
+
}, {
|
|
2083
|
+
status: "active" | "locked";
|
|
2084
|
+
id: string;
|
|
2085
|
+
tier: number;
|
|
2086
|
+
priceUsd: string;
|
|
2087
|
+
sellIntervalDays: number;
|
|
2088
|
+
badge: string | null;
|
|
2089
|
+
}>, "many">;
|
|
2090
|
+
dailyLimit: zod.ZodNumber;
|
|
2091
|
+
dailyUsed: zod.ZodNumber;
|
|
2092
|
+
weeklyLimitUsd: zod.ZodNullable<zod.ZodString>;
|
|
2093
|
+
weeklySpentUsd: zod.ZodString;
|
|
2094
|
+
minPriceUsd: zod.ZodString;
|
|
2095
|
+
maxPriceUsd: zod.ZodString;
|
|
2096
|
+
sellIntervalDays: zod.ZodNullable<zod.ZodNumber>;
|
|
2097
|
+
nextSellAt: zod.ZodNullable<zod.ZodString>;
|
|
2098
|
+
balanceUsdt: zod.ZodString;
|
|
2099
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2100
|
+
sellIntervalDays: number | null;
|
|
2101
|
+
packages: {
|
|
2102
|
+
status: "active" | "locked";
|
|
2103
|
+
id: string;
|
|
2104
|
+
tier: number;
|
|
2105
|
+
priceUsd: string;
|
|
2106
|
+
sellIntervalDays: number;
|
|
2107
|
+
badge: string | null;
|
|
2108
|
+
}[];
|
|
2109
|
+
dailyLimit: number;
|
|
2110
|
+
dailyUsed: number;
|
|
2111
|
+
weeklyLimitUsd: string | null;
|
|
2112
|
+
weeklySpentUsd: string;
|
|
2113
|
+
minPriceUsd: string;
|
|
2114
|
+
maxPriceUsd: string;
|
|
2115
|
+
nextSellAt: string | null;
|
|
2116
|
+
balanceUsdt: string;
|
|
2117
|
+
}, {
|
|
2118
|
+
sellIntervalDays: number | null;
|
|
2119
|
+
packages: {
|
|
2120
|
+
status: "active" | "locked";
|
|
2121
|
+
id: string;
|
|
2122
|
+
tier: number;
|
|
2123
|
+
priceUsd: string;
|
|
2124
|
+
sellIntervalDays: number;
|
|
2125
|
+
badge: string | null;
|
|
2126
|
+
}[];
|
|
2127
|
+
dailyLimit: number;
|
|
2128
|
+
dailyUsed: number;
|
|
2129
|
+
weeklyLimitUsd: string | null;
|
|
2130
|
+
weeklySpentUsd: string;
|
|
2131
|
+
minPriceUsd: string;
|
|
2132
|
+
maxPriceUsd: string;
|
|
2133
|
+
nextSellAt: string | null;
|
|
2134
|
+
balanceUsdt: string;
|
|
2135
|
+
}>;
|
|
2136
|
+
type Response = PackagesOverview;
|
|
2137
|
+
}
|
|
2138
|
+
|
|
2139
|
+
declare namespace BuyPackageCommand {
|
|
2140
|
+
const endpointDetails: EndpointDetails;
|
|
2141
|
+
const RequestSchema: z.ZodObject<{
|
|
2142
|
+
idempotencyKey: z.ZodString;
|
|
2143
|
+
}, "strip", z.ZodTypeAny, {
|
|
2144
|
+
idempotencyKey: string;
|
|
2145
|
+
}, {
|
|
2146
|
+
idempotencyKey: string;
|
|
2147
|
+
}>;
|
|
2148
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
2149
|
+
const ResponseSchema: z.ZodObject<{
|
|
2150
|
+
purchaseId: z.ZodString;
|
|
2151
|
+
priceUsd: z.ZodString;
|
|
2152
|
+
nmnAmount: z.ZodString;
|
|
2153
|
+
tokenPrice: z.ZodString;
|
|
2154
|
+
}, "strip", z.ZodTypeAny, {
|
|
2155
|
+
priceUsd: string;
|
|
2156
|
+
tokenPrice: string;
|
|
2157
|
+
nmnAmount: string;
|
|
2158
|
+
purchaseId: string;
|
|
2159
|
+
}, {
|
|
2160
|
+
priceUsd: string;
|
|
2161
|
+
tokenPrice: string;
|
|
2162
|
+
nmnAmount: string;
|
|
2163
|
+
purchaseId: string;
|
|
2164
|
+
}>;
|
|
2165
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
2166
|
+
}
|
|
2167
|
+
|
|
1892
2168
|
declare namespace GetRanksCommand {
|
|
1893
2169
|
const endpointDetails: EndpointDetails;
|
|
1894
2170
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -3507,6 +3783,10 @@ declare const REST_API: {
|
|
|
3507
3783
|
readonly PARTNERS: {
|
|
3508
3784
|
readonly OVERVIEW: "/partners";
|
|
3509
3785
|
};
|
|
3786
|
+
readonly PACKAGES: {
|
|
3787
|
+
readonly OVERVIEW: "/packages";
|
|
3788
|
+
readonly BUY: "/packages/:id/buy";
|
|
3789
|
+
};
|
|
3510
3790
|
readonly RANKS: {
|
|
3511
3791
|
readonly LIST: "/ranks";
|
|
3512
3792
|
};
|
|
@@ -3556,4 +3836,4 @@ declare const REST_API: {
|
|
|
3556
3836
|
declare const API_PREFIX = "/api";
|
|
3557
3837
|
declare const API_VERSION = "v1";
|
|
3558
3838
|
|
|
3559
|
-
export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, CancelOrderCommand, CancelWithdrawalCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, type HttpMethod, type IncomeOverview, IncomeOverviewSchema, type IncomePeriod, IncomePeriodSchema, type Leaderboard, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardPeriod, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, type LinkProvider, LinkProviderSchema, LinkTelegramCommand, type LinkedAccount, LinkedAccountSchema, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, PlaceOrderCommand, PositiveMoneyStringSchema, type PublicTrade, PublicTradeSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, type TicketAttachment, type TicketAttachmentInput, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, type TicketAuthorType, TicketAuthorTypeSchema, TicketBodySchema, type TicketCategory, TicketCategorySchema, type TicketDetail, TicketDetailSchema, type TicketMessage, TicketMessageSchema, type TicketStatus, TicketStatusSchema, type TicketSummary, TicketSummarySchema, type TokenPrice, TokenPriceSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, endpoint };
|
|
3839
|
+
export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CancelOrderCommand, CancelWithdrawalCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, type HttpMethod, type IncomeOverview, IncomeOverviewSchema, type IncomePeriod, IncomePeriodSchema, type Leaderboard, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardPeriod, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, type LinkProvider, LinkProviderSchema, LinkTelegramCommand, type LinkedAccount, LinkedAccountSchema, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, type Package, PackageSchema, type PackageStatus, PackageStatusSchema, type PackagesOverview, PackagesOverviewSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, type Period, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, type PublicTrade, PublicTradeSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, type TicketAttachment, type TicketAttachmentInput, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, type TicketAuthorType, TicketAuthorTypeSchema, TicketBodySchema, type TicketCategory, TicketCategorySchema, type TicketDetail, TicketDetailSchema, type TicketMessage, TicketMessageSchema, type TicketStatus, TicketStatusSchema, type TicketSummary, TicketSummarySchema, type TokenPrice, TokenPriceSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, endpoint };
|