@numen-crypto/contract 0.2.3 → 0.2.5
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 +88 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +332 -1
- package/dist/index.d.ts +332 -1
- package/dist/index.js +81 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -377,6 +377,185 @@ declare const PartnersOverviewSchema: z.ZodObject<{
|
|
|
377
377
|
}>;
|
|
378
378
|
type PartnersOverview = z.infer<typeof PartnersOverviewSchema>;
|
|
379
379
|
|
|
380
|
+
declare const PackageStatusSchema: z.ZodEnum<["active", "locked"]>;
|
|
381
|
+
type PackageStatus = z.infer<typeof PackageStatusSchema>;
|
|
382
|
+
declare const PackageSchema: z.ZodObject<{
|
|
383
|
+
id: z.ZodString;
|
|
384
|
+
tier: z.ZodNumber;
|
|
385
|
+
priceUsd: z.ZodString;
|
|
386
|
+
sellIntervalDays: z.ZodNumber;
|
|
387
|
+
status: z.ZodEnum<["active", "locked"]>;
|
|
388
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
389
|
+
}, "strip", z.ZodTypeAny, {
|
|
390
|
+
status: "active" | "locked";
|
|
391
|
+
id: string;
|
|
392
|
+
tier: number;
|
|
393
|
+
priceUsd: string;
|
|
394
|
+
sellIntervalDays: number;
|
|
395
|
+
badge: string | null;
|
|
396
|
+
}, {
|
|
397
|
+
status: "active" | "locked";
|
|
398
|
+
id: string;
|
|
399
|
+
tier: number;
|
|
400
|
+
priceUsd: string;
|
|
401
|
+
sellIntervalDays: number;
|
|
402
|
+
badge: string | null;
|
|
403
|
+
}>;
|
|
404
|
+
type Package = z.infer<typeof PackageSchema>;
|
|
405
|
+
declare const PackagesOverviewSchema: z.ZodObject<{
|
|
406
|
+
packages: z.ZodArray<z.ZodObject<{
|
|
407
|
+
id: z.ZodString;
|
|
408
|
+
tier: z.ZodNumber;
|
|
409
|
+
priceUsd: z.ZodString;
|
|
410
|
+
sellIntervalDays: z.ZodNumber;
|
|
411
|
+
status: z.ZodEnum<["active", "locked"]>;
|
|
412
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
413
|
+
}, "strip", z.ZodTypeAny, {
|
|
414
|
+
status: "active" | "locked";
|
|
415
|
+
id: string;
|
|
416
|
+
tier: number;
|
|
417
|
+
priceUsd: string;
|
|
418
|
+
sellIntervalDays: number;
|
|
419
|
+
badge: string | null;
|
|
420
|
+
}, {
|
|
421
|
+
status: "active" | "locked";
|
|
422
|
+
id: string;
|
|
423
|
+
tier: number;
|
|
424
|
+
priceUsd: string;
|
|
425
|
+
sellIntervalDays: number;
|
|
426
|
+
badge: string | null;
|
|
427
|
+
}>, "many">;
|
|
428
|
+
dailyLimit: z.ZodNumber;
|
|
429
|
+
dailyUsed: z.ZodNumber;
|
|
430
|
+
weeklyLimitUsd: z.ZodNullable<z.ZodString>;
|
|
431
|
+
weeklySpentUsd: z.ZodString;
|
|
432
|
+
minPriceUsd: z.ZodString;
|
|
433
|
+
maxPriceUsd: z.ZodString;
|
|
434
|
+
sellIntervalDays: z.ZodNullable<z.ZodNumber>;
|
|
435
|
+
nextSellAt: z.ZodNullable<z.ZodString>;
|
|
436
|
+
balanceUsdt: z.ZodString;
|
|
437
|
+
}, "strip", z.ZodTypeAny, {
|
|
438
|
+
sellIntervalDays: number | null;
|
|
439
|
+
packages: {
|
|
440
|
+
status: "active" | "locked";
|
|
441
|
+
id: string;
|
|
442
|
+
tier: number;
|
|
443
|
+
priceUsd: string;
|
|
444
|
+
sellIntervalDays: number;
|
|
445
|
+
badge: string | null;
|
|
446
|
+
}[];
|
|
447
|
+
dailyLimit: number;
|
|
448
|
+
dailyUsed: number;
|
|
449
|
+
weeklyLimitUsd: string | null;
|
|
450
|
+
weeklySpentUsd: string;
|
|
451
|
+
minPriceUsd: string;
|
|
452
|
+
maxPriceUsd: string;
|
|
453
|
+
nextSellAt: string | null;
|
|
454
|
+
balanceUsdt: string;
|
|
455
|
+
}, {
|
|
456
|
+
sellIntervalDays: number | null;
|
|
457
|
+
packages: {
|
|
458
|
+
status: "active" | "locked";
|
|
459
|
+
id: string;
|
|
460
|
+
tier: number;
|
|
461
|
+
priceUsd: string;
|
|
462
|
+
sellIntervalDays: number;
|
|
463
|
+
badge: string | null;
|
|
464
|
+
}[];
|
|
465
|
+
dailyLimit: number;
|
|
466
|
+
dailyUsed: number;
|
|
467
|
+
weeklyLimitUsd: string | null;
|
|
468
|
+
weeklySpentUsd: string;
|
|
469
|
+
minPriceUsd: string;
|
|
470
|
+
maxPriceUsd: string;
|
|
471
|
+
nextSellAt: string | null;
|
|
472
|
+
balanceUsdt: string;
|
|
473
|
+
}>;
|
|
474
|
+
type PackagesOverview = z.infer<typeof PackagesOverviewSchema>;
|
|
475
|
+
|
|
476
|
+
declare const SlideKindSchema: z.ZodEnum<["image", "text"]>;
|
|
477
|
+
type SlideKind = z.infer<typeof SlideKindSchema>;
|
|
478
|
+
declare const SlideButtonStyleSchema: z.ZodEnum<["primary", "secondary", "outline", "ghost"]>;
|
|
479
|
+
type SlideButtonStyle = z.infer<typeof SlideButtonStyleSchema>;
|
|
480
|
+
declare const SlideLinkTargetSchema: z.ZodEnum<["_self", "_blank"]>;
|
|
481
|
+
type SlideLinkTarget = z.infer<typeof SlideLinkTargetSchema>;
|
|
482
|
+
declare const SlideSchema: z.ZodObject<{
|
|
483
|
+
id: z.ZodString;
|
|
484
|
+
kind: z.ZodEnum<["image", "text"]>;
|
|
485
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
486
|
+
tag: z.ZodNullable<z.ZodString>;
|
|
487
|
+
title: z.ZodNullable<z.ZodString>;
|
|
488
|
+
body: z.ZodNullable<z.ZodString>;
|
|
489
|
+
linkUrl: z.ZodNullable<z.ZodString>;
|
|
490
|
+
linkTarget: z.ZodEnum<["_self", "_blank"]>;
|
|
491
|
+
wholeSlideLink: z.ZodBoolean;
|
|
492
|
+
buttonLabel: z.ZodNullable<z.ZodString>;
|
|
493
|
+
buttonStyle: z.ZodNullable<z.ZodEnum<["primary", "secondary", "outline", "ghost"]>>;
|
|
494
|
+
}, "strip", z.ZodTypeAny, {
|
|
495
|
+
id: string;
|
|
496
|
+
kind: "image" | "text";
|
|
497
|
+
imageUrl: string | null;
|
|
498
|
+
tag: string | null;
|
|
499
|
+
title: string | null;
|
|
500
|
+
body: string | null;
|
|
501
|
+
linkUrl: string | null;
|
|
502
|
+
linkTarget: "_self" | "_blank";
|
|
503
|
+
wholeSlideLink: boolean;
|
|
504
|
+
buttonLabel: string | null;
|
|
505
|
+
buttonStyle: "primary" | "secondary" | "outline" | "ghost" | null;
|
|
506
|
+
}, {
|
|
507
|
+
id: string;
|
|
508
|
+
kind: "image" | "text";
|
|
509
|
+
imageUrl: string | null;
|
|
510
|
+
tag: string | null;
|
|
511
|
+
title: string | null;
|
|
512
|
+
body: string | null;
|
|
513
|
+
linkUrl: string | null;
|
|
514
|
+
linkTarget: "_self" | "_blank";
|
|
515
|
+
wholeSlideLink: boolean;
|
|
516
|
+
buttonLabel: string | null;
|
|
517
|
+
buttonStyle: "primary" | "secondary" | "outline" | "ghost" | null;
|
|
518
|
+
}>;
|
|
519
|
+
type Slide = z.infer<typeof SlideSchema>;
|
|
520
|
+
declare const SlidesResponseSchema: z.ZodArray<z.ZodObject<{
|
|
521
|
+
id: z.ZodString;
|
|
522
|
+
kind: z.ZodEnum<["image", "text"]>;
|
|
523
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
524
|
+
tag: z.ZodNullable<z.ZodString>;
|
|
525
|
+
title: z.ZodNullable<z.ZodString>;
|
|
526
|
+
body: z.ZodNullable<z.ZodString>;
|
|
527
|
+
linkUrl: z.ZodNullable<z.ZodString>;
|
|
528
|
+
linkTarget: z.ZodEnum<["_self", "_blank"]>;
|
|
529
|
+
wholeSlideLink: z.ZodBoolean;
|
|
530
|
+
buttonLabel: z.ZodNullable<z.ZodString>;
|
|
531
|
+
buttonStyle: z.ZodNullable<z.ZodEnum<["primary", "secondary", "outline", "ghost"]>>;
|
|
532
|
+
}, "strip", z.ZodTypeAny, {
|
|
533
|
+
id: string;
|
|
534
|
+
kind: "image" | "text";
|
|
535
|
+
imageUrl: string | null;
|
|
536
|
+
tag: string | null;
|
|
537
|
+
title: string | null;
|
|
538
|
+
body: string | null;
|
|
539
|
+
linkUrl: string | null;
|
|
540
|
+
linkTarget: "_self" | "_blank";
|
|
541
|
+
wholeSlideLink: boolean;
|
|
542
|
+
buttonLabel: string | null;
|
|
543
|
+
buttonStyle: "primary" | "secondary" | "outline" | "ghost" | null;
|
|
544
|
+
}, {
|
|
545
|
+
id: string;
|
|
546
|
+
kind: "image" | "text";
|
|
547
|
+
imageUrl: string | null;
|
|
548
|
+
tag: string | null;
|
|
549
|
+
title: string | null;
|
|
550
|
+
body: string | null;
|
|
551
|
+
linkUrl: string | null;
|
|
552
|
+
linkTarget: "_self" | "_blank";
|
|
553
|
+
wholeSlideLink: boolean;
|
|
554
|
+
buttonLabel: string | null;
|
|
555
|
+
buttonStyle: "primary" | "secondary" | "outline" | "ghost" | null;
|
|
556
|
+
}>, "many">;
|
|
557
|
+
type SlidesResponse = z.infer<typeof SlidesResponseSchema>;
|
|
558
|
+
|
|
380
559
|
declare const RankDefSchema: z.ZodObject<{
|
|
381
560
|
name: z.ZodString;
|
|
382
561
|
order: z.ZodNumber;
|
|
@@ -1966,6 +2145,151 @@ declare namespace GetPartnersCommand {
|
|
|
1966
2145
|
type Response = PartnersOverview;
|
|
1967
2146
|
}
|
|
1968
2147
|
|
|
2148
|
+
declare namespace GetPackagesCommand {
|
|
2149
|
+
const endpointDetails: EndpointDetails;
|
|
2150
|
+
const ResponseSchema: zod.ZodObject<{
|
|
2151
|
+
packages: zod.ZodArray<zod.ZodObject<{
|
|
2152
|
+
id: zod.ZodString;
|
|
2153
|
+
tier: zod.ZodNumber;
|
|
2154
|
+
priceUsd: zod.ZodString;
|
|
2155
|
+
sellIntervalDays: zod.ZodNumber;
|
|
2156
|
+
status: zod.ZodEnum<["active", "locked"]>;
|
|
2157
|
+
badge: zod.ZodNullable<zod.ZodString>;
|
|
2158
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2159
|
+
status: "active" | "locked";
|
|
2160
|
+
id: string;
|
|
2161
|
+
tier: number;
|
|
2162
|
+
priceUsd: string;
|
|
2163
|
+
sellIntervalDays: number;
|
|
2164
|
+
badge: string | null;
|
|
2165
|
+
}, {
|
|
2166
|
+
status: "active" | "locked";
|
|
2167
|
+
id: string;
|
|
2168
|
+
tier: number;
|
|
2169
|
+
priceUsd: string;
|
|
2170
|
+
sellIntervalDays: number;
|
|
2171
|
+
badge: string | null;
|
|
2172
|
+
}>, "many">;
|
|
2173
|
+
dailyLimit: zod.ZodNumber;
|
|
2174
|
+
dailyUsed: zod.ZodNumber;
|
|
2175
|
+
weeklyLimitUsd: zod.ZodNullable<zod.ZodString>;
|
|
2176
|
+
weeklySpentUsd: zod.ZodString;
|
|
2177
|
+
minPriceUsd: zod.ZodString;
|
|
2178
|
+
maxPriceUsd: zod.ZodString;
|
|
2179
|
+
sellIntervalDays: zod.ZodNullable<zod.ZodNumber>;
|
|
2180
|
+
nextSellAt: zod.ZodNullable<zod.ZodString>;
|
|
2181
|
+
balanceUsdt: zod.ZodString;
|
|
2182
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2183
|
+
sellIntervalDays: number | null;
|
|
2184
|
+
packages: {
|
|
2185
|
+
status: "active" | "locked";
|
|
2186
|
+
id: string;
|
|
2187
|
+
tier: number;
|
|
2188
|
+
priceUsd: string;
|
|
2189
|
+
sellIntervalDays: number;
|
|
2190
|
+
badge: string | null;
|
|
2191
|
+
}[];
|
|
2192
|
+
dailyLimit: number;
|
|
2193
|
+
dailyUsed: number;
|
|
2194
|
+
weeklyLimitUsd: string | null;
|
|
2195
|
+
weeklySpentUsd: string;
|
|
2196
|
+
minPriceUsd: string;
|
|
2197
|
+
maxPriceUsd: string;
|
|
2198
|
+
nextSellAt: string | null;
|
|
2199
|
+
balanceUsdt: string;
|
|
2200
|
+
}, {
|
|
2201
|
+
sellIntervalDays: number | null;
|
|
2202
|
+
packages: {
|
|
2203
|
+
status: "active" | "locked";
|
|
2204
|
+
id: string;
|
|
2205
|
+
tier: number;
|
|
2206
|
+
priceUsd: string;
|
|
2207
|
+
sellIntervalDays: number;
|
|
2208
|
+
badge: string | null;
|
|
2209
|
+
}[];
|
|
2210
|
+
dailyLimit: number;
|
|
2211
|
+
dailyUsed: number;
|
|
2212
|
+
weeklyLimitUsd: string | null;
|
|
2213
|
+
weeklySpentUsd: string;
|
|
2214
|
+
minPriceUsd: string;
|
|
2215
|
+
maxPriceUsd: string;
|
|
2216
|
+
nextSellAt: string | null;
|
|
2217
|
+
balanceUsdt: string;
|
|
2218
|
+
}>;
|
|
2219
|
+
type Response = PackagesOverview;
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
declare namespace BuyPackageCommand {
|
|
2223
|
+
const endpointDetails: EndpointDetails;
|
|
2224
|
+
const RequestSchema: z.ZodObject<{
|
|
2225
|
+
idempotencyKey: z.ZodString;
|
|
2226
|
+
}, "strip", z.ZodTypeAny, {
|
|
2227
|
+
idempotencyKey: string;
|
|
2228
|
+
}, {
|
|
2229
|
+
idempotencyKey: string;
|
|
2230
|
+
}>;
|
|
2231
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
2232
|
+
const ResponseSchema: z.ZodObject<{
|
|
2233
|
+
purchaseId: z.ZodString;
|
|
2234
|
+
priceUsd: z.ZodString;
|
|
2235
|
+
nmnAmount: z.ZodString;
|
|
2236
|
+
tokenPrice: z.ZodString;
|
|
2237
|
+
}, "strip", z.ZodTypeAny, {
|
|
2238
|
+
priceUsd: string;
|
|
2239
|
+
tokenPrice: string;
|
|
2240
|
+
nmnAmount: string;
|
|
2241
|
+
purchaseId: string;
|
|
2242
|
+
}, {
|
|
2243
|
+
priceUsd: string;
|
|
2244
|
+
tokenPrice: string;
|
|
2245
|
+
nmnAmount: string;
|
|
2246
|
+
purchaseId: string;
|
|
2247
|
+
}>;
|
|
2248
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
declare namespace GetSlidesCommand {
|
|
2252
|
+
const endpointDetails: EndpointDetails;
|
|
2253
|
+
const ResponseSchema: zod.ZodArray<zod.ZodObject<{
|
|
2254
|
+
id: zod.ZodString;
|
|
2255
|
+
kind: zod.ZodEnum<["image", "text"]>;
|
|
2256
|
+
imageUrl: zod.ZodNullable<zod.ZodString>;
|
|
2257
|
+
tag: zod.ZodNullable<zod.ZodString>;
|
|
2258
|
+
title: zod.ZodNullable<zod.ZodString>;
|
|
2259
|
+
body: zod.ZodNullable<zod.ZodString>;
|
|
2260
|
+
linkUrl: zod.ZodNullable<zod.ZodString>;
|
|
2261
|
+
linkTarget: zod.ZodEnum<["_self", "_blank"]>;
|
|
2262
|
+
wholeSlideLink: zod.ZodBoolean;
|
|
2263
|
+
buttonLabel: zod.ZodNullable<zod.ZodString>;
|
|
2264
|
+
buttonStyle: zod.ZodNullable<zod.ZodEnum<["primary", "secondary", "outline", "ghost"]>>;
|
|
2265
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2266
|
+
id: string;
|
|
2267
|
+
kind: "image" | "text";
|
|
2268
|
+
imageUrl: string | null;
|
|
2269
|
+
tag: string | null;
|
|
2270
|
+
title: string | null;
|
|
2271
|
+
body: string | null;
|
|
2272
|
+
linkUrl: string | null;
|
|
2273
|
+
linkTarget: "_self" | "_blank";
|
|
2274
|
+
wholeSlideLink: boolean;
|
|
2275
|
+
buttonLabel: string | null;
|
|
2276
|
+
buttonStyle: "primary" | "secondary" | "outline" | "ghost" | null;
|
|
2277
|
+
}, {
|
|
2278
|
+
id: string;
|
|
2279
|
+
kind: "image" | "text";
|
|
2280
|
+
imageUrl: string | null;
|
|
2281
|
+
tag: string | null;
|
|
2282
|
+
title: string | null;
|
|
2283
|
+
body: string | null;
|
|
2284
|
+
linkUrl: string | null;
|
|
2285
|
+
linkTarget: "_self" | "_blank";
|
|
2286
|
+
wholeSlideLink: boolean;
|
|
2287
|
+
buttonLabel: string | null;
|
|
2288
|
+
buttonStyle: "primary" | "secondary" | "outline" | "ghost" | null;
|
|
2289
|
+
}>, "many">;
|
|
2290
|
+
type Response = SlidesResponse;
|
|
2291
|
+
}
|
|
2292
|
+
|
|
1969
2293
|
declare namespace GetRanksCommand {
|
|
1970
2294
|
const endpointDetails: EndpointDetails;
|
|
1971
2295
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -3584,6 +3908,13 @@ declare const REST_API: {
|
|
|
3584
3908
|
readonly PARTNERS: {
|
|
3585
3909
|
readonly OVERVIEW: "/partners";
|
|
3586
3910
|
};
|
|
3911
|
+
readonly PACKAGES: {
|
|
3912
|
+
readonly OVERVIEW: "/packages";
|
|
3913
|
+
readonly BUY: "/packages/:id/buy";
|
|
3914
|
+
};
|
|
3915
|
+
readonly CONTENT: {
|
|
3916
|
+
readonly SLIDES: "/content/slides";
|
|
3917
|
+
};
|
|
3587
3918
|
readonly RANKS: {
|
|
3588
3919
|
readonly LIST: "/ranks";
|
|
3589
3920
|
};
|
|
@@ -3633,4 +3964,4 @@ declare const REST_API: {
|
|
|
3633
3964
|
declare const API_PREFIX = "/api";
|
|
3634
3965
|
declare const API_VERSION = "v1";
|
|
3635
3966
|
|
|
3636
|
-
export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, CancelOrderCommand, CancelWithdrawalCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, type HttpMethod, type IncomeOverview, IncomeOverviewSchema, type IncomePeriod, IncomePeriodSchema, type Leaderboard, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardPeriod, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, type LinkProvider, LinkProviderSchema, LinkTelegramCommand, type LinkedAccount, LinkedAccountSchema, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, type Period, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, type PublicTrade, PublicTradeSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, type TicketAttachment, type TicketAttachmentInput, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, type TicketAuthorType, TicketAuthorTypeSchema, TicketBodySchema, type TicketCategory, TicketCategorySchema, type TicketDetail, TicketDetailSchema, type TicketMessage, TicketMessageSchema, type TicketStatus, TicketStatusSchema, type TicketSummary, TicketSummarySchema, type TokenPrice, TokenPriceSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, endpoint };
|
|
3967
|
+
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, 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, 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, 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, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, endpoint };
|
package/dist/index.js
CHANGED
|
@@ -137,6 +137,44 @@ var PartnersOverviewSchema = z.object({
|
|
|
137
137
|
affiliateIncome: MoneyStringSchema,
|
|
138
138
|
levels: z.array(PartnerLevelSchema)
|
|
139
139
|
});
|
|
140
|
+
var PackageStatusSchema = z.enum(["active", "locked"]);
|
|
141
|
+
var PackageSchema = z.object({
|
|
142
|
+
id: z.string().uuid(),
|
|
143
|
+
tier: z.number().int().positive(),
|
|
144
|
+
priceUsd: MoneyStringSchema,
|
|
145
|
+
sellIntervalDays: z.number().int().positive(),
|
|
146
|
+
status: PackageStatusSchema,
|
|
147
|
+
badge: z.string().nullable()
|
|
148
|
+
});
|
|
149
|
+
var PackagesOverviewSchema = z.object({
|
|
150
|
+
packages: z.array(PackageSchema),
|
|
151
|
+
dailyLimit: z.number().int().nonnegative(),
|
|
152
|
+
dailyUsed: z.number().int().nonnegative(),
|
|
153
|
+
weeklyLimitUsd: MoneyStringSchema.nullable(),
|
|
154
|
+
weeklySpentUsd: MoneyStringSchema,
|
|
155
|
+
minPriceUsd: MoneyStringSchema,
|
|
156
|
+
maxPriceUsd: MoneyStringSchema,
|
|
157
|
+
sellIntervalDays: z.number().int().positive().nullable(),
|
|
158
|
+
nextSellAt: z.string().datetime().nullable(),
|
|
159
|
+
balanceUsdt: MoneyStringSchema
|
|
160
|
+
});
|
|
161
|
+
var SlideKindSchema = z.enum(["image", "text"]);
|
|
162
|
+
var SlideButtonStyleSchema = z.enum(["primary", "secondary", "outline", "ghost"]);
|
|
163
|
+
var SlideLinkTargetSchema = z.enum(["_self", "_blank"]);
|
|
164
|
+
var SlideSchema = z.object({
|
|
165
|
+
id: z.string().uuid(),
|
|
166
|
+
kind: SlideKindSchema,
|
|
167
|
+
imageUrl: z.string().url().nullable(),
|
|
168
|
+
tag: z.string().nullable(),
|
|
169
|
+
title: z.string().nullable(),
|
|
170
|
+
body: z.string().nullable(),
|
|
171
|
+
linkUrl: z.string().url().nullable(),
|
|
172
|
+
linkTarget: SlideLinkTargetSchema,
|
|
173
|
+
wholeSlideLink: z.boolean(),
|
|
174
|
+
buttonLabel: z.string().nullable(),
|
|
175
|
+
buttonStyle: SlideButtonStyleSchema.nullable()
|
|
176
|
+
});
|
|
177
|
+
var SlidesResponseSchema = z.array(SlideSchema);
|
|
140
178
|
var RankDefSchema = z.object({
|
|
141
179
|
name: z.string(),
|
|
142
180
|
order: z.number().int().nonnegative(),
|
|
@@ -485,6 +523,41 @@ var GetPartnersCommand;
|
|
|
485
523
|
});
|
|
486
524
|
GetPartnersCommand2.ResponseSchema = PartnersOverviewSchema;
|
|
487
525
|
})(GetPartnersCommand || (GetPartnersCommand = {}));
|
|
526
|
+
|
|
527
|
+
// src/commands/packages/get-packages.command.ts
|
|
528
|
+
var GetPackagesCommand;
|
|
529
|
+
((GetPackagesCommand2) => {
|
|
530
|
+
GetPackagesCommand2.endpointDetails = endpoint(
|
|
531
|
+
"GET",
|
|
532
|
+
"/packages",
|
|
533
|
+
"Participation packages with the user limits and sell cadence"
|
|
534
|
+
);
|
|
535
|
+
GetPackagesCommand2.ResponseSchema = PackagesOverviewSchema;
|
|
536
|
+
})(GetPackagesCommand || (GetPackagesCommand = {}));
|
|
537
|
+
var BuyPackageCommand;
|
|
538
|
+
((BuyPackageCommand2) => {
|
|
539
|
+
BuyPackageCommand2.endpointDetails = endpoint(
|
|
540
|
+
"POST",
|
|
541
|
+
"/packages/:id/buy",
|
|
542
|
+
"Buy a participation package: spends its USD price in USDT for NMN"
|
|
543
|
+
);
|
|
544
|
+
BuyPackageCommand2.RequestSchema = z.object({
|
|
545
|
+
idempotencyKey: z.string().min(8).max(255)
|
|
546
|
+
});
|
|
547
|
+
BuyPackageCommand2.ResponseSchema = z.object({
|
|
548
|
+
purchaseId: z.string().uuid(),
|
|
549
|
+
priceUsd: MoneyStringSchema,
|
|
550
|
+
nmnAmount: MoneyStringSchema,
|
|
551
|
+
tokenPrice: MoneyStringSchema
|
|
552
|
+
});
|
|
553
|
+
})(BuyPackageCommand || (BuyPackageCommand = {}));
|
|
554
|
+
|
|
555
|
+
// src/commands/content/get-slides.command.ts
|
|
556
|
+
var GetSlidesCommand;
|
|
557
|
+
((GetSlidesCommand2) => {
|
|
558
|
+
GetSlidesCommand2.endpointDetails = endpoint("GET", "/content/slides", "Active dashboard carousel slides in display order");
|
|
559
|
+
GetSlidesCommand2.ResponseSchema = SlidesResponseSchema;
|
|
560
|
+
})(GetSlidesCommand || (GetSlidesCommand = {}));
|
|
488
561
|
var GetRanksCommand;
|
|
489
562
|
((GetRanksCommand2) => {
|
|
490
563
|
GetRanksCommand2.endpointDetails = endpoint("GET", "/ranks", "List all rank tiers");
|
|
@@ -805,6 +878,13 @@ var REST_API = {
|
|
|
805
878
|
PARTNERS: {
|
|
806
879
|
OVERVIEW: "/partners"
|
|
807
880
|
},
|
|
881
|
+
PACKAGES: {
|
|
882
|
+
OVERVIEW: "/packages",
|
|
883
|
+
BUY: "/packages/:id/buy"
|
|
884
|
+
},
|
|
885
|
+
CONTENT: {
|
|
886
|
+
SLIDES: "/content/slides"
|
|
887
|
+
},
|
|
808
888
|
RANKS: {
|
|
809
889
|
LIST: "/ranks"
|
|
810
890
|
},
|
|
@@ -854,6 +934,6 @@ var REST_API = {
|
|
|
854
934
|
var API_PREFIX = "/api";
|
|
855
935
|
var API_VERSION = "v1";
|
|
856
936
|
|
|
857
|
-
export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, AssetBalanceSchema, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, CancelOrderCommand, CancelWithdrawalCommand, ChartPeriodSchema, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, DailyBonusClaimResultSchema, DailyBonusDaySchema, DailyBonusStatusSchema, DepositAddressCommand, DepositAddressSchema, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, EarningsOverviewSchema, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, IncomeOverviewSchema, IncomePeriodSchema, LeaderboardEntrySchema, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, LinkProviderSchema, LinkTelegramCommand, LinkedAccountSchema, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, MonthlyPricePointSchema, NotificationSchema, NotificationTypeSchema, OrderBookLevelSchema, OrderBookSchema, OrderSchema, OrderSideSchema, OrderStatusSchema, OrderTypeSchema, PaginatedSchema, PaginationQuerySchema, PartnerAccrualSchema, PartnerLevelSchema, PartnersOverviewSchema, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, PublicTradeSchema, REST_API, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, SessionInfoSchema, SetupTotpCommand, SwapCommand, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, TicketAuthorTypeSchema, TicketBodySchema, TicketCategorySchema, TicketDetailSchema, TicketMessageSchema, TicketStatusSchema, TicketSummarySchema, TokenPriceSchema, TradeResultSchema, TransactionSchema, TransactionStatusSchema, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UserProfileSchema, UserRankSchema, UserSettingsSchema, UserStatusSchema, UuidSchema, WalletOverviewSchema, WithdrawalSchema, WithdrawalStatusSchema, endpoint };
|
|
937
|
+
export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, AssetBalanceSchema, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CancelOrderCommand, CancelWithdrawalCommand, ChartPeriodSchema, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, DailyBonusClaimResultSchema, DailyBonusDaySchema, DailyBonusStatusSchema, DepositAddressCommand, DepositAddressSchema, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, EarningsOverviewSchema, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, 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, NotificationSchema, NotificationTypeSchema, OrderBookLevelSchema, OrderBookSchema, OrderSchema, OrderSideSchema, OrderStatusSchema, OrderTypeSchema, PackageSchema, PackageStatusSchema, PackagesOverviewSchema, PaginatedSchema, PaginationQuerySchema, PartnerAccrualSchema, PartnerLevelSchema, PartnersOverviewSchema, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, PublicTradeSchema, REST_API, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, SessionInfoSchema, SetupTotpCommand, 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, UserProfileSchema, UserRankSchema, UserSettingsSchema, UserStatusSchema, UuidSchema, WalletOverviewSchema, WithdrawalSchema, WithdrawalStatusSchema, endpoint };
|
|
858
938
|
//# sourceMappingURL=index.js.map
|
|
859
939
|
//# sourceMappingURL=index.js.map
|