@numen-crypto/contract 0.1.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.
@@ -0,0 +1,2448 @@
1
+ import * as zod from 'zod';
2
+ import { z } from 'zod';
3
+
4
+ declare const ERROR_CODE: {
5
+ readonly VALIDATION: "VALIDATION";
6
+ readonly NOT_FOUND: "NOT_FOUND";
7
+ readonly CONFLICT: "CONFLICT";
8
+ readonly UNAUTHORIZED: "UNAUTHORIZED";
9
+ readonly FORBIDDEN: "FORBIDDEN";
10
+ readonly RATE_LIMITED: "RATE_LIMITED";
11
+ readonly INTERNAL: "INTERNAL";
12
+ readonly EMAIL_TAKEN: "EMAIL_TAKEN";
13
+ readonly REFERRER_NOT_FOUND: "REFERRER_NOT_FOUND";
14
+ readonly INVALID_CREDENTIALS: "INVALID_CREDENTIALS";
15
+ readonly SESSION_INVALID: "SESSION_INVALID";
16
+ readonly SESSION_EXPIRED: "SESSION_EXPIRED";
17
+ readonly TOTP_REQUIRED: "TOTP_REQUIRED";
18
+ readonly TOTP_ALREADY_ENABLED: "TOTP_ALREADY_ENABLED";
19
+ readonly INSUFFICIENT_BALANCE: "INSUFFICIENT_BALANCE";
20
+ readonly PURCHASE_LIMIT_EXCEEDED: "PURCHASE_LIMIT_EXCEEDED";
21
+ readonly SALE_PHASE_INACTIVE: "SALE_PHASE_INACTIVE";
22
+ readonly WITHDRAWAL_COOLOFF: "WITHDRAWAL_COOLOFF";
23
+ readonly BONUS_ALREADY_CLAIMED: "BONUS_ALREADY_CLAIMED";
24
+ readonly LINK_PROVIDER_DISABLED: "LINK_PROVIDER_DISABLED";
25
+ readonly LINK_VERIFICATION_FAILED: "LINK_VERIFICATION_FAILED";
26
+ readonly LINK_ALREADY_USED: "LINK_ALREADY_USED";
27
+ };
28
+ type ErrorCode = (typeof ERROR_CODE)[keyof typeof ERROR_CODE];
29
+
30
+ declare const MONEY_REGEX: RegExp;
31
+ declare const MoneyStringSchema: z.ZodString;
32
+ declare const PositiveMoneyStringSchema: z.ZodEffects<z.ZodString, string, string>;
33
+ declare const UuidSchema: z.ZodString;
34
+ declare const ErrorResponseSchema: z.ZodObject<{
35
+ error: z.ZodObject<{
36
+ code: z.ZodString;
37
+ message: z.ZodString;
38
+ }, "strip", z.ZodTypeAny, {
39
+ code: string;
40
+ message: string;
41
+ }, {
42
+ code: string;
43
+ message: string;
44
+ }>;
45
+ requestId: z.ZodOptional<z.ZodString>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ error: {
48
+ code: string;
49
+ message: string;
50
+ };
51
+ requestId?: string | undefined;
52
+ }, {
53
+ error: {
54
+ code: string;
55
+ message: string;
56
+ };
57
+ requestId?: string | undefined;
58
+ }>;
59
+ type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
60
+ declare const PaginationQuerySchema: z.ZodObject<{
61
+ page: z.ZodDefault<z.ZodNumber>;
62
+ pageSize: z.ZodDefault<z.ZodNumber>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ page: number;
65
+ pageSize: number;
66
+ }, {
67
+ page?: number | undefined;
68
+ pageSize?: number | undefined;
69
+ }>;
70
+ type PaginationQuery = z.infer<typeof PaginationQuerySchema>;
71
+ declare function PaginatedSchema<T extends z.ZodTypeAny>(item: T): z.ZodObject<{
72
+ items: z.ZodArray<T, "many">;
73
+ total: z.ZodNumber;
74
+ page: z.ZodNumber;
75
+ pageSize: z.ZodNumber;
76
+ }, "strip", z.ZodTypeAny, {
77
+ page: number;
78
+ pageSize: number;
79
+ items: T["_output"][];
80
+ total: number;
81
+ }, {
82
+ page: number;
83
+ pageSize: number;
84
+ items: T["_input"][];
85
+ total: number;
86
+ }>;
87
+
88
+ declare const UserStatusSchema: z.ZodEnum<["pending", "active", "suspended", "deleted"]>;
89
+ type UserStatus = z.infer<typeof UserStatusSchema>;
90
+ declare const UserProfileSchema: z.ZodObject<{
91
+ id: z.ZodString;
92
+ email: z.ZodString;
93
+ displayName: z.ZodNullable<z.ZodString>;
94
+ avatarUrl: z.ZodNullable<z.ZodString>;
95
+ referrerId: z.ZodNullable<z.ZodString>;
96
+ rankId: z.ZodNullable<z.ZodString>;
97
+ status: z.ZodEnum<["pending", "active", "suspended", "deleted"]>;
98
+ totpEnabled: z.ZodBoolean;
99
+ createdAt: z.ZodString;
100
+ }, "strip", z.ZodTypeAny, {
101
+ status: "pending" | "active" | "suspended" | "deleted";
102
+ id: string;
103
+ email: string;
104
+ displayName: string | null;
105
+ avatarUrl: string | null;
106
+ referrerId: string | null;
107
+ rankId: string | null;
108
+ totpEnabled: boolean;
109
+ createdAt: string;
110
+ }, {
111
+ status: "pending" | "active" | "suspended" | "deleted";
112
+ id: string;
113
+ email: string;
114
+ displayName: string | null;
115
+ avatarUrl: string | null;
116
+ referrerId: string | null;
117
+ rankId: string | null;
118
+ totpEnabled: boolean;
119
+ createdAt: string;
120
+ }>;
121
+ type UserProfile = z.infer<typeof UserProfileSchema>;
122
+ declare const SessionInfoSchema: z.ZodObject<{
123
+ id: z.ZodString;
124
+ ip: z.ZodNullable<z.ZodString>;
125
+ userAgent: z.ZodNullable<z.ZodString>;
126
+ createdAt: z.ZodString;
127
+ lastSeenAt: z.ZodString;
128
+ current: z.ZodBoolean;
129
+ }, "strip", z.ZodTypeAny, {
130
+ id: string;
131
+ createdAt: string;
132
+ ip: string | null;
133
+ userAgent: string | null;
134
+ lastSeenAt: string;
135
+ current: boolean;
136
+ }, {
137
+ id: string;
138
+ createdAt: string;
139
+ ip: string | null;
140
+ userAgent: string | null;
141
+ lastSeenAt: string;
142
+ current: boolean;
143
+ }>;
144
+ type SessionInfo = z.infer<typeof SessionInfoSchema>;
145
+
146
+ /** All assets that can appear as a wallet balance. NMN is internal-only. */
147
+ declare const ASSET_SYMBOLS: readonly ["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"];
148
+ declare const AssetSymbolSchema: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
149
+ type AssetSymbol = z.infer<typeof AssetSymbolSchema>;
150
+ /**
151
+ * Assets that can be deposited/withdrawn on-chain via SHKeeper.
152
+ * NMN is excluded — it only exists inside the platform and is acquired via swap.
153
+ */
154
+ declare const DEPOSITABLE_ASSETS: readonly ["USDT", "BTC", "ETH", "BNB", "TRX", "SOL"];
155
+ declare const DepositableAssetSchema: z.ZodEnum<["USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
156
+ type DepositableAsset = z.infer<typeof DepositableAssetSchema>;
157
+ /** The internal token and the funding stablecoin. */
158
+ declare const TOKEN_ASSET: "NMN";
159
+ declare const FUNDING_ASSET: "USDT";
160
+ declare const AssetBalanceSchema: z.ZodObject<{
161
+ asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
162
+ name: z.ZodString;
163
+ networks: z.ZodArray<z.ZodString, "many">;
164
+ depositable: z.ZodBoolean;
165
+ available: z.ZodString;
166
+ locked: z.ZodString;
167
+ usdValue: z.ZodString;
168
+ isZero: z.ZodBoolean;
169
+ }, "strip", z.ZodTypeAny, {
170
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
171
+ name: string;
172
+ networks: string[];
173
+ depositable: boolean;
174
+ available: string;
175
+ locked: string;
176
+ usdValue: string;
177
+ isZero: boolean;
178
+ }, {
179
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
180
+ name: string;
181
+ networks: string[];
182
+ depositable: boolean;
183
+ available: string;
184
+ locked: string;
185
+ usdValue: string;
186
+ isZero: boolean;
187
+ }>;
188
+ type AssetBalance = z.infer<typeof AssetBalanceSchema>;
189
+ declare const WalletOverviewSchema: z.ZodObject<{
190
+ totalUsd: z.ZodString;
191
+ assets: z.ZodArray<z.ZodObject<{
192
+ asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
193
+ name: z.ZodString;
194
+ networks: z.ZodArray<z.ZodString, "many">;
195
+ depositable: z.ZodBoolean;
196
+ available: z.ZodString;
197
+ locked: z.ZodString;
198
+ usdValue: z.ZodString;
199
+ isZero: z.ZodBoolean;
200
+ }, "strip", z.ZodTypeAny, {
201
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
202
+ name: string;
203
+ networks: string[];
204
+ depositable: boolean;
205
+ available: string;
206
+ locked: string;
207
+ usdValue: string;
208
+ isZero: boolean;
209
+ }, {
210
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
211
+ name: string;
212
+ networks: string[];
213
+ depositable: boolean;
214
+ available: string;
215
+ locked: string;
216
+ usdValue: string;
217
+ isZero: boolean;
218
+ }>, "many">;
219
+ }, "strip", z.ZodTypeAny, {
220
+ totalUsd: string;
221
+ assets: {
222
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
223
+ name: string;
224
+ networks: string[];
225
+ depositable: boolean;
226
+ available: string;
227
+ locked: string;
228
+ usdValue: string;
229
+ isZero: boolean;
230
+ }[];
231
+ }, {
232
+ totalUsd: string;
233
+ assets: {
234
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
235
+ name: string;
236
+ networks: string[];
237
+ depositable: boolean;
238
+ available: string;
239
+ locked: string;
240
+ usdValue: string;
241
+ isZero: boolean;
242
+ }[];
243
+ }>;
244
+ type WalletOverview = z.infer<typeof WalletOverviewSchema>;
245
+
246
+ declare const TransactionTypeSchema: z.ZodEnum<["DEPOSIT", "WITHDRAWAL", "BUY", "SELL", "COMMISSION", "BONUS", "ADJUSTMENT"]>;
247
+ type TransactionType = z.infer<typeof TransactionTypeSchema>;
248
+ declare const TransactionStatusSchema: z.ZodEnum<["PENDING", "PROCESSING", "COMPLETED", "FAILED", "CANCELLED"]>;
249
+ type TransactionStatus = z.infer<typeof TransactionStatusSchema>;
250
+ declare const TransactionSchema: z.ZodObject<{
251
+ id: z.ZodString;
252
+ type: z.ZodEnum<["DEPOSIT", "WITHDRAWAL", "BUY", "SELL", "COMMISSION", "BONUS", "ADJUSTMENT"]>;
253
+ asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
254
+ amount: z.ZodString;
255
+ status: z.ZodEnum<["PENDING", "PROCESSING", "COMPLETED", "FAILED", "CANCELLED"]>;
256
+ reference: z.ZodNullable<z.ZodString>;
257
+ createdAt: z.ZodString;
258
+ }, "strip", z.ZodTypeAny, {
259
+ type: "DEPOSIT" | "WITHDRAWAL" | "BUY" | "SELL" | "COMMISSION" | "BONUS" | "ADJUSTMENT";
260
+ status: "PENDING" | "PROCESSING" | "COMPLETED" | "FAILED" | "CANCELLED";
261
+ id: string;
262
+ createdAt: string;
263
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
264
+ amount: string;
265
+ reference: string | null;
266
+ }, {
267
+ type: "DEPOSIT" | "WITHDRAWAL" | "BUY" | "SELL" | "COMMISSION" | "BONUS" | "ADJUSTMENT";
268
+ status: "PENDING" | "PROCESSING" | "COMPLETED" | "FAILED" | "CANCELLED";
269
+ id: string;
270
+ createdAt: string;
271
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
272
+ amount: string;
273
+ reference: string | null;
274
+ }>;
275
+ type Transaction = z.infer<typeof TransactionSchema>;
276
+
277
+ declare const DepositAddressSchema: z.ZodObject<{
278
+ asset: z.ZodEnum<["USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
279
+ network: z.ZodString;
280
+ address: z.ZodString;
281
+ minAmount: z.ZodString;
282
+ confirmations: z.ZodNumber;
283
+ }, "strip", z.ZodTypeAny, {
284
+ asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
285
+ network: string;
286
+ address: string;
287
+ minAmount: string;
288
+ confirmations: number;
289
+ }, {
290
+ asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
291
+ network: string;
292
+ address: string;
293
+ minAmount: string;
294
+ confirmations: number;
295
+ }>;
296
+ type DepositAddress = z.infer<typeof DepositAddressSchema>;
297
+
298
+ declare const PartnerLevelSchema: z.ZodObject<{
299
+ level: z.ZodNumber;
300
+ partners: z.ZodNumber;
301
+ }, "strip", z.ZodTypeAny, {
302
+ level: number;
303
+ partners: number;
304
+ }, {
305
+ level: number;
306
+ partners: number;
307
+ }>;
308
+ type PartnerLevel = z.infer<typeof PartnerLevelSchema>;
309
+ declare const PartnersOverviewSchema: z.ZodObject<{
310
+ referralCode: z.ZodString;
311
+ totalPartners: z.ZodNumber;
312
+ directPartners: z.ZodNumber;
313
+ networkTurnover: z.ZodString;
314
+ affiliateIncome: z.ZodString;
315
+ levels: z.ZodArray<z.ZodObject<{
316
+ level: z.ZodNumber;
317
+ partners: z.ZodNumber;
318
+ }, "strip", z.ZodTypeAny, {
319
+ level: number;
320
+ partners: number;
321
+ }, {
322
+ level: number;
323
+ partners: number;
324
+ }>, "many">;
325
+ }, "strip", z.ZodTypeAny, {
326
+ referralCode: string;
327
+ totalPartners: number;
328
+ directPartners: number;
329
+ networkTurnover: string;
330
+ affiliateIncome: string;
331
+ levels: {
332
+ level: number;
333
+ partners: number;
334
+ }[];
335
+ }, {
336
+ referralCode: string;
337
+ totalPartners: number;
338
+ directPartners: number;
339
+ networkTurnover: string;
340
+ affiliateIncome: string;
341
+ levels: {
342
+ level: number;
343
+ partners: number;
344
+ }[];
345
+ }>;
346
+ type PartnersOverview = z.infer<typeof PartnersOverviewSchema>;
347
+
348
+ declare const RankDefSchema: z.ZodObject<{
349
+ name: z.ZodString;
350
+ order: z.ZodNumber;
351
+ minTurnover: z.ZodString;
352
+ }, "strip", z.ZodTypeAny, {
353
+ name: string;
354
+ order: number;
355
+ minTurnover: string;
356
+ }, {
357
+ name: string;
358
+ order: number;
359
+ minTurnover: string;
360
+ }>;
361
+ type RankDef = z.infer<typeof RankDefSchema>;
362
+ declare const UserRankSchema: z.ZodObject<{
363
+ name: z.ZodString;
364
+ order: z.ZodNumber;
365
+ minTurnover: z.ZodString;
366
+ nextName: z.ZodNullable<z.ZodString>;
367
+ nextMinTurnover: z.ZodNullable<z.ZodString>;
368
+ progressPct: z.ZodString;
369
+ }, "strip", z.ZodTypeAny, {
370
+ name: string;
371
+ order: number;
372
+ minTurnover: string;
373
+ nextName: string | null;
374
+ nextMinTurnover: string | null;
375
+ progressPct: string;
376
+ }, {
377
+ name: string;
378
+ order: number;
379
+ minTurnover: string;
380
+ nextName: string | null;
381
+ nextMinTurnover: string | null;
382
+ progressPct: string;
383
+ }>;
384
+ type UserRank = z.infer<typeof UserRankSchema>;
385
+
386
+ declare const EarningsOverviewSchema: z.ZodObject<{
387
+ tokenBalance: z.ZodString;
388
+ tokenPrice: z.ZodString;
389
+ tokenValueUsd: z.ZodString;
390
+ affiliateIncome: z.ZodString;
391
+ networkTurnover: z.ZodString;
392
+ rank: z.ZodObject<{
393
+ name: z.ZodString;
394
+ order: z.ZodNumber;
395
+ minTurnover: z.ZodString;
396
+ nextName: z.ZodNullable<z.ZodString>;
397
+ nextMinTurnover: z.ZodNullable<z.ZodString>;
398
+ progressPct: z.ZodString;
399
+ }, "strip", z.ZodTypeAny, {
400
+ name: string;
401
+ order: number;
402
+ minTurnover: string;
403
+ nextName: string | null;
404
+ nextMinTurnover: string | null;
405
+ progressPct: string;
406
+ }, {
407
+ name: string;
408
+ order: number;
409
+ minTurnover: string;
410
+ nextName: string | null;
411
+ nextMinTurnover: string | null;
412
+ progressPct: string;
413
+ }>;
414
+ }, "strip", z.ZodTypeAny, {
415
+ networkTurnover: string;
416
+ affiliateIncome: string;
417
+ tokenBalance: string;
418
+ tokenPrice: string;
419
+ tokenValueUsd: string;
420
+ rank: {
421
+ name: string;
422
+ order: number;
423
+ minTurnover: string;
424
+ nextName: string | null;
425
+ nextMinTurnover: string | null;
426
+ progressPct: string;
427
+ };
428
+ }, {
429
+ networkTurnover: string;
430
+ affiliateIncome: string;
431
+ tokenBalance: string;
432
+ tokenPrice: string;
433
+ tokenValueUsd: string;
434
+ rank: {
435
+ name: string;
436
+ order: number;
437
+ minTurnover: string;
438
+ nextName: string | null;
439
+ nextMinTurnover: string | null;
440
+ progressPct: string;
441
+ };
442
+ }>;
443
+ type EarningsOverview = z.infer<typeof EarningsOverviewSchema>;
444
+
445
+ declare const UserSettingsSchema: z.ZodObject<{
446
+ notifyTrades: z.ZodBoolean;
447
+ notifyByEmail: z.ZodBoolean;
448
+ withdrawalEmailConfirm: z.ZodBoolean;
449
+ }, "strip", z.ZodTypeAny, {
450
+ notifyTrades: boolean;
451
+ notifyByEmail: boolean;
452
+ withdrawalEmailConfirm: boolean;
453
+ }, {
454
+ notifyTrades: boolean;
455
+ notifyByEmail: boolean;
456
+ withdrawalEmailConfirm: boolean;
457
+ }>;
458
+ type UserSettings = z.infer<typeof UserSettingsSchema>;
459
+
460
+ declare const DailyBonusDaySchema: z.ZodObject<{
461
+ dayIndex: z.ZodNumber;
462
+ rewardNmn: z.ZodString;
463
+ surprise: z.ZodBoolean;
464
+ }, "strip", z.ZodTypeAny, {
465
+ dayIndex: number;
466
+ rewardNmn: string;
467
+ surprise: boolean;
468
+ }, {
469
+ dayIndex: number;
470
+ rewardNmn: string;
471
+ surprise: boolean;
472
+ }>;
473
+ type DailyBonusDay = z.infer<typeof DailyBonusDaySchema>;
474
+ declare const DailyBonusStatusSchema: z.ZodObject<{
475
+ currentStreak: z.ZodNumber;
476
+ cycleLength: z.ZodNumber;
477
+ claimableToday: z.ZodBoolean;
478
+ todayDayIndex: z.ZodNumber;
479
+ nextRewardNmn: z.ZodString;
480
+ days: z.ZodArray<z.ZodObject<{
481
+ dayIndex: z.ZodNumber;
482
+ rewardNmn: z.ZodString;
483
+ surprise: z.ZodBoolean;
484
+ }, "strip", z.ZodTypeAny, {
485
+ dayIndex: number;
486
+ rewardNmn: string;
487
+ surprise: boolean;
488
+ }, {
489
+ dayIndex: number;
490
+ rewardNmn: string;
491
+ surprise: boolean;
492
+ }>, "many">;
493
+ }, "strip", z.ZodTypeAny, {
494
+ currentStreak: number;
495
+ cycleLength: number;
496
+ claimableToday: boolean;
497
+ todayDayIndex: number;
498
+ nextRewardNmn: string;
499
+ days: {
500
+ dayIndex: number;
501
+ rewardNmn: string;
502
+ surprise: boolean;
503
+ }[];
504
+ }, {
505
+ currentStreak: number;
506
+ cycleLength: number;
507
+ claimableToday: boolean;
508
+ todayDayIndex: number;
509
+ nextRewardNmn: string;
510
+ days: {
511
+ dayIndex: number;
512
+ rewardNmn: string;
513
+ surprise: boolean;
514
+ }[];
515
+ }>;
516
+ type DailyBonusStatus = z.infer<typeof DailyBonusStatusSchema>;
517
+ declare const DailyBonusClaimResultSchema: z.ZodObject<{
518
+ claimed: z.ZodBoolean;
519
+ dayIndex: z.ZodNumber;
520
+ rewardNmn: z.ZodString;
521
+ currentStreak: z.ZodNumber;
522
+ }, "strip", z.ZodTypeAny, {
523
+ dayIndex: number;
524
+ rewardNmn: string;
525
+ currentStreak: number;
526
+ claimed: boolean;
527
+ }, {
528
+ dayIndex: number;
529
+ rewardNmn: string;
530
+ currentStreak: number;
531
+ claimed: boolean;
532
+ }>;
533
+ type DailyBonusClaimResult = z.infer<typeof DailyBonusClaimResultSchema>;
534
+
535
+ declare const NotificationTypeSchema: z.ZodEnum<["TRADE_EXECUTED", "DEPOSIT_CREDITED", "COMMISSION_ACCRUED", "WITHDRAWAL_SENT", "BONUS_CLAIMED", "SYSTEM"]>;
536
+ type NotificationType = z.infer<typeof NotificationTypeSchema>;
537
+ declare const NotificationSchema: z.ZodObject<{
538
+ id: z.ZodString;
539
+ type: z.ZodEnum<["TRADE_EXECUTED", "DEPOSIT_CREDITED", "COMMISSION_ACCRUED", "WITHDRAWAL_SENT", "BONUS_CLAIMED", "SYSTEM"]>;
540
+ title: z.ZodString;
541
+ body: z.ZodString;
542
+ read: z.ZodBoolean;
543
+ meta: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
544
+ createdAt: z.ZodString;
545
+ }, "strip", z.ZodTypeAny, {
546
+ type: "TRADE_EXECUTED" | "DEPOSIT_CREDITED" | "COMMISSION_ACCRUED" | "WITHDRAWAL_SENT" | "BONUS_CLAIMED" | "SYSTEM";
547
+ id: string;
548
+ createdAt: string;
549
+ title: string;
550
+ body: string;
551
+ read: boolean;
552
+ meta: Record<string, unknown> | null;
553
+ }, {
554
+ type: "TRADE_EXECUTED" | "DEPOSIT_CREDITED" | "COMMISSION_ACCRUED" | "WITHDRAWAL_SENT" | "BONUS_CLAIMED" | "SYSTEM";
555
+ id: string;
556
+ createdAt: string;
557
+ title: string;
558
+ body: string;
559
+ read: boolean;
560
+ meta: Record<string, unknown> | null;
561
+ }>;
562
+ type Notification = z.infer<typeof NotificationSchema>;
563
+
564
+ declare const LeaderboardPeriodSchema: z.ZodEnum<["week", "month", "year", "all"]>;
565
+ type LeaderboardPeriod = z.infer<typeof LeaderboardPeriodSchema>;
566
+ declare const LeaderboardEntrySchema: z.ZodObject<{
567
+ rank: z.ZodNumber;
568
+ userId: z.ZodString;
569
+ displayName: z.ZodString;
570
+ line: z.ZodNullable<z.ZodNumber>;
571
+ partners: z.ZodNumber;
572
+ turnoverUsd: z.ZodString;
573
+ changePct: z.ZodNumber;
574
+ isSelf: z.ZodBoolean;
575
+ }, "strip", z.ZodTypeAny, {
576
+ displayName: string;
577
+ partners: number;
578
+ rank: number;
579
+ userId: string;
580
+ line: number | null;
581
+ turnoverUsd: string;
582
+ changePct: number;
583
+ isSelf: boolean;
584
+ }, {
585
+ displayName: string;
586
+ partners: number;
587
+ rank: number;
588
+ userId: string;
589
+ line: number | null;
590
+ turnoverUsd: string;
591
+ changePct: number;
592
+ isSelf: boolean;
593
+ }>;
594
+ type LeaderboardEntry = z.infer<typeof LeaderboardEntrySchema>;
595
+ declare const LeaderboardSchema: z.ZodObject<{
596
+ period: z.ZodEnum<["week", "month", "year", "all"]>;
597
+ items: z.ZodArray<z.ZodObject<{
598
+ rank: z.ZodNumber;
599
+ userId: z.ZodString;
600
+ displayName: z.ZodString;
601
+ line: z.ZodNullable<z.ZodNumber>;
602
+ partners: z.ZodNumber;
603
+ turnoverUsd: z.ZodString;
604
+ changePct: z.ZodNumber;
605
+ isSelf: z.ZodBoolean;
606
+ }, "strip", z.ZodTypeAny, {
607
+ displayName: string;
608
+ partners: number;
609
+ rank: number;
610
+ userId: string;
611
+ line: number | null;
612
+ turnoverUsd: string;
613
+ changePct: number;
614
+ isSelf: boolean;
615
+ }, {
616
+ displayName: string;
617
+ partners: number;
618
+ rank: number;
619
+ userId: string;
620
+ line: number | null;
621
+ turnoverUsd: string;
622
+ changePct: number;
623
+ isSelf: boolean;
624
+ }>, "many">;
625
+ self: z.ZodNullable<z.ZodObject<{
626
+ rank: z.ZodNumber;
627
+ userId: z.ZodString;
628
+ displayName: z.ZodString;
629
+ line: z.ZodNullable<z.ZodNumber>;
630
+ partners: z.ZodNumber;
631
+ turnoverUsd: z.ZodString;
632
+ changePct: z.ZodNumber;
633
+ isSelf: z.ZodBoolean;
634
+ }, "strip", z.ZodTypeAny, {
635
+ displayName: string;
636
+ partners: number;
637
+ rank: number;
638
+ userId: string;
639
+ line: number | null;
640
+ turnoverUsd: string;
641
+ changePct: number;
642
+ isSelf: boolean;
643
+ }, {
644
+ displayName: string;
645
+ partners: number;
646
+ rank: number;
647
+ userId: string;
648
+ line: number | null;
649
+ turnoverUsd: string;
650
+ changePct: number;
651
+ isSelf: boolean;
652
+ }>>;
653
+ }, "strip", z.ZodTypeAny, {
654
+ items: {
655
+ displayName: string;
656
+ partners: number;
657
+ rank: number;
658
+ userId: string;
659
+ line: number | null;
660
+ turnoverUsd: string;
661
+ changePct: number;
662
+ isSelf: boolean;
663
+ }[];
664
+ period: "week" | "month" | "year" | "all";
665
+ self: {
666
+ displayName: string;
667
+ partners: number;
668
+ rank: number;
669
+ userId: string;
670
+ line: number | null;
671
+ turnoverUsd: string;
672
+ changePct: number;
673
+ isSelf: boolean;
674
+ } | null;
675
+ }, {
676
+ items: {
677
+ displayName: string;
678
+ partners: number;
679
+ rank: number;
680
+ userId: string;
681
+ line: number | null;
682
+ turnoverUsd: string;
683
+ changePct: number;
684
+ isSelf: boolean;
685
+ }[];
686
+ period: "week" | "month" | "year" | "all";
687
+ self: {
688
+ displayName: string;
689
+ partners: number;
690
+ rank: number;
691
+ userId: string;
692
+ line: number | null;
693
+ turnoverUsd: string;
694
+ changePct: number;
695
+ isSelf: boolean;
696
+ } | null;
697
+ }>;
698
+ type Leaderboard = z.infer<typeof LeaderboardSchema>;
699
+
700
+ declare const LinkProviderSchema: z.ZodEnum<["telegram", "google"]>;
701
+ type LinkProvider = z.infer<typeof LinkProviderSchema>;
702
+ declare const LinkedAccountSchema: z.ZodObject<{
703
+ provider: z.ZodEnum<["telegram", "google"]>;
704
+ providerUserId: z.ZodString;
705
+ displayName: z.ZodNullable<z.ZodString>;
706
+ linkedAt: z.ZodString;
707
+ }, "strip", z.ZodTypeAny, {
708
+ displayName: string | null;
709
+ provider: "telegram" | "google";
710
+ providerUserId: string;
711
+ linkedAt: string;
712
+ }, {
713
+ displayName: string | null;
714
+ provider: "telegram" | "google";
715
+ providerUserId: string;
716
+ linkedAt: string;
717
+ }>;
718
+ type LinkedAccount = z.infer<typeof LinkedAccountSchema>;
719
+
720
+ declare const IncomePeriodSchema: z.ZodEnum<["week", "month", "year", "all"]>;
721
+ type IncomePeriod = z.infer<typeof IncomePeriodSchema>;
722
+ declare const PartnerAccrualSchema: z.ZodObject<{
723
+ id: z.ZodString;
724
+ level: z.ZodNumber;
725
+ sourceUserId: z.ZodString;
726
+ sourceName: z.ZodString;
727
+ amountUsd: z.ZodString;
728
+ createdAt: z.ZodString;
729
+ }, "strip", z.ZodTypeAny, {
730
+ id: string;
731
+ createdAt: string;
732
+ level: number;
733
+ sourceUserId: string;
734
+ sourceName: string;
735
+ amountUsd: string;
736
+ }, {
737
+ id: string;
738
+ createdAt: string;
739
+ level: number;
740
+ sourceUserId: string;
741
+ sourceName: string;
742
+ amountUsd: string;
743
+ }>;
744
+ type PartnerAccrual = z.infer<typeof PartnerAccrualSchema>;
745
+ declare const MonthlyPricePointSchema: z.ZodObject<{
746
+ month: z.ZodString;
747
+ fromPrice: z.ZodString;
748
+ toPrice: z.ZodString;
749
+ holdingGrowthUsd: z.ZodString;
750
+ }, "strip", z.ZodTypeAny, {
751
+ month: string;
752
+ fromPrice: string;
753
+ toPrice: string;
754
+ holdingGrowthUsd: string;
755
+ }, {
756
+ month: string;
757
+ fromPrice: string;
758
+ toPrice: string;
759
+ holdingGrowthUsd: string;
760
+ }>;
761
+ type MonthlyPricePoint = z.infer<typeof MonthlyPricePointSchema>;
762
+ declare const IncomeOverviewSchema: z.ZodObject<{
763
+ period: z.ZodEnum<["week", "month", "year", "all"]>;
764
+ tokenGrowthIncomeUsd: z.ZodString;
765
+ tokenGrowthPct: z.ZodNumber;
766
+ affiliateIncomeNmn: z.ZodString;
767
+ affiliateIncomeUsd: z.ZodString;
768
+ totalEarnedUsd: z.ZodString;
769
+ partnerAccruals: z.ZodArray<z.ZodObject<{
770
+ id: z.ZodString;
771
+ level: z.ZodNumber;
772
+ sourceUserId: z.ZodString;
773
+ sourceName: z.ZodString;
774
+ amountUsd: z.ZodString;
775
+ createdAt: z.ZodString;
776
+ }, "strip", z.ZodTypeAny, {
777
+ id: string;
778
+ createdAt: string;
779
+ level: number;
780
+ sourceUserId: string;
781
+ sourceName: string;
782
+ amountUsd: string;
783
+ }, {
784
+ id: string;
785
+ createdAt: string;
786
+ level: number;
787
+ sourceUserId: string;
788
+ sourceName: string;
789
+ amountUsd: string;
790
+ }>, "many">;
791
+ monthlyPrice: z.ZodArray<z.ZodObject<{
792
+ month: z.ZodString;
793
+ fromPrice: z.ZodString;
794
+ toPrice: z.ZodString;
795
+ holdingGrowthUsd: z.ZodString;
796
+ }, "strip", z.ZodTypeAny, {
797
+ month: string;
798
+ fromPrice: string;
799
+ toPrice: string;
800
+ holdingGrowthUsd: string;
801
+ }, {
802
+ month: string;
803
+ fromPrice: string;
804
+ toPrice: string;
805
+ holdingGrowthUsd: string;
806
+ }>, "many">;
807
+ }, "strip", z.ZodTypeAny, {
808
+ period: "week" | "month" | "year" | "all";
809
+ tokenGrowthIncomeUsd: string;
810
+ tokenGrowthPct: number;
811
+ affiliateIncomeNmn: string;
812
+ affiliateIncomeUsd: string;
813
+ totalEarnedUsd: string;
814
+ partnerAccruals: {
815
+ id: string;
816
+ createdAt: string;
817
+ level: number;
818
+ sourceUserId: string;
819
+ sourceName: string;
820
+ amountUsd: string;
821
+ }[];
822
+ monthlyPrice: {
823
+ month: string;
824
+ fromPrice: string;
825
+ toPrice: string;
826
+ holdingGrowthUsd: string;
827
+ }[];
828
+ }, {
829
+ period: "week" | "month" | "year" | "all";
830
+ tokenGrowthIncomeUsd: string;
831
+ tokenGrowthPct: number;
832
+ affiliateIncomeNmn: string;
833
+ affiliateIncomeUsd: string;
834
+ totalEarnedUsd: string;
835
+ partnerAccruals: {
836
+ id: string;
837
+ createdAt: string;
838
+ level: number;
839
+ sourceUserId: string;
840
+ sourceName: string;
841
+ amountUsd: string;
842
+ }[];
843
+ monthlyPrice: {
844
+ month: string;
845
+ fromPrice: string;
846
+ toPrice: string;
847
+ holdingGrowthUsd: string;
848
+ }[];
849
+ }>;
850
+ type IncomeOverview = z.infer<typeof IncomeOverviewSchema>;
851
+
852
+ declare const WithdrawalStatusSchema: z.ZodEnum<["AWAITING_CONFIRM", "AWAITING_COOLOFF", "QUEUED", "SENT", "CONFIRMED", "FAILED", "CANCELLED"]>;
853
+ type WithdrawalStatus = z.infer<typeof WithdrawalStatusSchema>;
854
+ declare const WithdrawalSchema: z.ZodObject<{
855
+ id: z.ZodString;
856
+ asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
857
+ amount: z.ZodString;
858
+ address: z.ZodString;
859
+ status: z.ZodEnum<["AWAITING_CONFIRM", "AWAITING_COOLOFF", "QUEUED", "SENT", "CONFIRMED", "FAILED", "CANCELLED"]>;
860
+ createdAt: z.ZodString;
861
+ }, "strip", z.ZodTypeAny, {
862
+ status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
863
+ id: string;
864
+ createdAt: string;
865
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
866
+ amount: string;
867
+ address: string;
868
+ }, {
869
+ status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
870
+ id: string;
871
+ createdAt: string;
872
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
873
+ amount: string;
874
+ address: string;
875
+ }>;
876
+ type Withdrawal = z.infer<typeof WithdrawalSchema>;
877
+
878
+ declare const TokenPriceSchema: z.ZodObject<{
879
+ price: z.ZodString;
880
+ change24hPct: z.ZodString;
881
+ tradeIndex: z.ZodNumber;
882
+ updatedAt: z.ZodString;
883
+ }, "strip", z.ZodTypeAny, {
884
+ price: string;
885
+ change24hPct: string;
886
+ tradeIndex: number;
887
+ updatedAt: string;
888
+ }, {
889
+ price: string;
890
+ change24hPct: string;
891
+ tradeIndex: number;
892
+ updatedAt: string;
893
+ }>;
894
+ type TokenPrice = z.infer<typeof TokenPriceSchema>;
895
+ declare const ChartPeriodSchema: z.ZodEnum<["day", "week", "month", "year"]>;
896
+ type ChartPeriod = z.infer<typeof ChartPeriodSchema>;
897
+ declare const ChartPointSchema: z.ZodObject<{
898
+ t: z.ZodString;
899
+ price: z.ZodString;
900
+ }, "strip", z.ZodTypeAny, {
901
+ price: string;
902
+ t: string;
903
+ }, {
904
+ price: string;
905
+ t: string;
906
+ }>;
907
+ type ChartPoint = z.infer<typeof ChartPointSchema>;
908
+ declare const SwapSideSchema: z.ZodEnum<["BUY", "SELL"]>;
909
+ type SwapSide = z.infer<typeof SwapSideSchema>;
910
+ declare const TradeResultSchema: z.ZodObject<{
911
+ tradeId: z.ZodString;
912
+ side: z.ZodEnum<["BUY", "SELL"]>;
913
+ usdtAmount: z.ZodString;
914
+ nmnAmount: z.ZodString;
915
+ price: z.ZodString;
916
+ feeUsdt: z.ZodString;
917
+ }, "strip", z.ZodTypeAny, {
918
+ price: string;
919
+ tradeId: string;
920
+ side: "BUY" | "SELL";
921
+ usdtAmount: string;
922
+ nmnAmount: string;
923
+ feeUsdt: string;
924
+ }, {
925
+ price: string;
926
+ tradeId: string;
927
+ side: "BUY" | "SELL";
928
+ usdtAmount: string;
929
+ nmnAmount: string;
930
+ feeUsdt: string;
931
+ }>;
932
+ type TradeResult = z.infer<typeof TradeResultSchema>;
933
+
934
+ type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
935
+ interface EndpointDetails {
936
+ readonly method: HttpMethod;
937
+ readonly path: string;
938
+ readonly summary: string;
939
+ }
940
+ declare function endpoint(method: HttpMethod, path: string, summary: string): EndpointDetails;
941
+
942
+ declare namespace RegisterCommand {
943
+ const endpointDetails: EndpointDetails;
944
+ const RequestSchema: z.ZodObject<{
945
+ email: z.ZodString;
946
+ password: z.ZodString;
947
+ referralCode: z.ZodOptional<z.ZodString>;
948
+ }, "strip", z.ZodTypeAny, {
949
+ email: string;
950
+ password: string;
951
+ referralCode?: string | undefined;
952
+ }, {
953
+ email: string;
954
+ password: string;
955
+ referralCode?: string | undefined;
956
+ }>;
957
+ type Request = z.infer<typeof RequestSchema>;
958
+ const ResponseSchema: z.ZodObject<{
959
+ userId: z.ZodString;
960
+ }, "strip", z.ZodTypeAny, {
961
+ userId: string;
962
+ }, {
963
+ userId: string;
964
+ }>;
965
+ type Response = z.infer<typeof ResponseSchema>;
966
+ }
967
+
968
+ declare namespace LoginCommand {
969
+ const endpointDetails: EndpointDetails;
970
+ const RequestSchema: z.ZodObject<{
971
+ email: z.ZodString;
972
+ password: z.ZodString;
973
+ totp: z.ZodOptional<z.ZodString>;
974
+ }, "strip", z.ZodTypeAny, {
975
+ email: string;
976
+ password: string;
977
+ totp?: string | undefined;
978
+ }, {
979
+ email: string;
980
+ password: string;
981
+ totp?: string | undefined;
982
+ }>;
983
+ type Request = z.infer<typeof RequestSchema>;
984
+ const ResponseSchema: z.ZodObject<{
985
+ user: z.ZodObject<{
986
+ id: z.ZodString;
987
+ email: z.ZodString;
988
+ displayName: z.ZodNullable<z.ZodString>;
989
+ avatarUrl: z.ZodNullable<z.ZodString>;
990
+ referrerId: z.ZodNullable<z.ZodString>;
991
+ rankId: z.ZodNullable<z.ZodString>;
992
+ status: z.ZodEnum<["pending", "active", "suspended", "deleted"]>;
993
+ totpEnabled: z.ZodBoolean;
994
+ createdAt: z.ZodString;
995
+ }, "strip", z.ZodTypeAny, {
996
+ status: "pending" | "active" | "suspended" | "deleted";
997
+ id: string;
998
+ email: string;
999
+ displayName: string | null;
1000
+ avatarUrl: string | null;
1001
+ referrerId: string | null;
1002
+ rankId: string | null;
1003
+ totpEnabled: boolean;
1004
+ createdAt: string;
1005
+ }, {
1006
+ status: "pending" | "active" | "suspended" | "deleted";
1007
+ id: string;
1008
+ email: string;
1009
+ displayName: string | null;
1010
+ avatarUrl: string | null;
1011
+ referrerId: string | null;
1012
+ rankId: string | null;
1013
+ totpEnabled: boolean;
1014
+ createdAt: string;
1015
+ }>;
1016
+ }, "strip", z.ZodTypeAny, {
1017
+ user: {
1018
+ status: "pending" | "active" | "suspended" | "deleted";
1019
+ id: string;
1020
+ email: string;
1021
+ displayName: string | null;
1022
+ avatarUrl: string | null;
1023
+ referrerId: string | null;
1024
+ rankId: string | null;
1025
+ totpEnabled: boolean;
1026
+ createdAt: string;
1027
+ };
1028
+ }, {
1029
+ user: {
1030
+ status: "pending" | "active" | "suspended" | "deleted";
1031
+ id: string;
1032
+ email: string;
1033
+ displayName: string | null;
1034
+ avatarUrl: string | null;
1035
+ referrerId: string | null;
1036
+ rankId: string | null;
1037
+ totpEnabled: boolean;
1038
+ createdAt: string;
1039
+ };
1040
+ }>;
1041
+ type Response = z.infer<typeof ResponseSchema>;
1042
+ }
1043
+
1044
+ declare namespace LogoutCommand {
1045
+ const endpointDetails: EndpointDetails;
1046
+ const RequestSchema: z.ZodObject<{
1047
+ allDevices: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1048
+ }, "strip", z.ZodTypeAny, {
1049
+ allDevices: boolean;
1050
+ }, {
1051
+ allDevices?: boolean | undefined;
1052
+ }>;
1053
+ type Request = z.infer<typeof RequestSchema>;
1054
+ const ResponseSchema: z.ZodVoid;
1055
+ type Response = z.infer<typeof ResponseSchema>;
1056
+ }
1057
+
1058
+ declare namespace MeCommand {
1059
+ const endpointDetails: EndpointDetails;
1060
+ const ResponseSchema: z.ZodObject<{
1061
+ user: z.ZodObject<{
1062
+ id: z.ZodString;
1063
+ email: z.ZodString;
1064
+ displayName: z.ZodNullable<z.ZodString>;
1065
+ avatarUrl: z.ZodNullable<z.ZodString>;
1066
+ referrerId: z.ZodNullable<z.ZodString>;
1067
+ rankId: z.ZodNullable<z.ZodString>;
1068
+ status: z.ZodEnum<["pending", "active", "suspended", "deleted"]>;
1069
+ totpEnabled: z.ZodBoolean;
1070
+ createdAt: z.ZodString;
1071
+ }, "strip", z.ZodTypeAny, {
1072
+ status: "pending" | "active" | "suspended" | "deleted";
1073
+ id: string;
1074
+ email: string;
1075
+ displayName: string | null;
1076
+ avatarUrl: string | null;
1077
+ referrerId: string | null;
1078
+ rankId: string | null;
1079
+ totpEnabled: boolean;
1080
+ createdAt: string;
1081
+ }, {
1082
+ status: "pending" | "active" | "suspended" | "deleted";
1083
+ id: string;
1084
+ email: string;
1085
+ displayName: string | null;
1086
+ avatarUrl: string | null;
1087
+ referrerId: string | null;
1088
+ rankId: string | null;
1089
+ totpEnabled: boolean;
1090
+ createdAt: string;
1091
+ }>;
1092
+ }, "strip", z.ZodTypeAny, {
1093
+ user: {
1094
+ status: "pending" | "active" | "suspended" | "deleted";
1095
+ id: string;
1096
+ email: string;
1097
+ displayName: string | null;
1098
+ avatarUrl: string | null;
1099
+ referrerId: string | null;
1100
+ rankId: string | null;
1101
+ totpEnabled: boolean;
1102
+ createdAt: string;
1103
+ };
1104
+ }, {
1105
+ user: {
1106
+ status: "pending" | "active" | "suspended" | "deleted";
1107
+ id: string;
1108
+ email: string;
1109
+ displayName: string | null;
1110
+ avatarUrl: string | null;
1111
+ referrerId: string | null;
1112
+ rankId: string | null;
1113
+ totpEnabled: boolean;
1114
+ createdAt: string;
1115
+ };
1116
+ }>;
1117
+ type Response = z.infer<typeof ResponseSchema>;
1118
+ }
1119
+
1120
+ declare namespace SetupTotpCommand {
1121
+ const endpointDetails: EndpointDetails;
1122
+ const ResponseSchema: z.ZodObject<{
1123
+ secret: z.ZodString;
1124
+ otpauthUrl: z.ZodString;
1125
+ }, "strip", z.ZodTypeAny, {
1126
+ secret: string;
1127
+ otpauthUrl: string;
1128
+ }, {
1129
+ secret: string;
1130
+ otpauthUrl: string;
1131
+ }>;
1132
+ type Response = z.infer<typeof ResponseSchema>;
1133
+ }
1134
+ declare namespace ConfirmTotpCommand {
1135
+ const endpointDetails: EndpointDetails;
1136
+ const RequestSchema: z.ZodObject<{
1137
+ secret: z.ZodString;
1138
+ otp: z.ZodString;
1139
+ }, "strip", z.ZodTypeAny, {
1140
+ secret: string;
1141
+ otp: string;
1142
+ }, {
1143
+ secret: string;
1144
+ otp: string;
1145
+ }>;
1146
+ type Request = z.infer<typeof RequestSchema>;
1147
+ const ResponseSchema: z.ZodVoid;
1148
+ type Response = z.infer<typeof ResponseSchema>;
1149
+ }
1150
+
1151
+ declare namespace GetWalletCommand {
1152
+ const endpointDetails: EndpointDetails;
1153
+ const ResponseSchema: zod.ZodObject<{
1154
+ totalUsd: zod.ZodString;
1155
+ assets: zod.ZodArray<zod.ZodObject<{
1156
+ asset: zod.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
1157
+ name: zod.ZodString;
1158
+ networks: zod.ZodArray<zod.ZodString, "many">;
1159
+ depositable: zod.ZodBoolean;
1160
+ available: zod.ZodString;
1161
+ locked: zod.ZodString;
1162
+ usdValue: zod.ZodString;
1163
+ isZero: zod.ZodBoolean;
1164
+ }, "strip", zod.ZodTypeAny, {
1165
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1166
+ name: string;
1167
+ networks: string[];
1168
+ depositable: boolean;
1169
+ available: string;
1170
+ locked: string;
1171
+ usdValue: string;
1172
+ isZero: boolean;
1173
+ }, {
1174
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1175
+ name: string;
1176
+ networks: string[];
1177
+ depositable: boolean;
1178
+ available: string;
1179
+ locked: string;
1180
+ usdValue: string;
1181
+ isZero: boolean;
1182
+ }>, "many">;
1183
+ }, "strip", zod.ZodTypeAny, {
1184
+ totalUsd: string;
1185
+ assets: {
1186
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1187
+ name: string;
1188
+ networks: string[];
1189
+ depositable: boolean;
1190
+ available: string;
1191
+ locked: string;
1192
+ usdValue: string;
1193
+ isZero: boolean;
1194
+ }[];
1195
+ }, {
1196
+ totalUsd: string;
1197
+ assets: {
1198
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1199
+ name: string;
1200
+ networks: string[];
1201
+ depositable: boolean;
1202
+ available: string;
1203
+ locked: string;
1204
+ usdValue: string;
1205
+ isZero: boolean;
1206
+ }[];
1207
+ }>;
1208
+ type Response = WalletOverview;
1209
+ }
1210
+
1211
+ declare namespace GetTransactionsCommand {
1212
+ const endpointDetails: EndpointDetails;
1213
+ const QuerySchema: z.ZodObject<{
1214
+ page: z.ZodDefault<z.ZodNumber>;
1215
+ pageSize: z.ZodDefault<z.ZodNumber>;
1216
+ } & {
1217
+ type: z.ZodOptional<z.ZodEnum<["DEPOSIT", "WITHDRAWAL", "BUY", "SELL", "COMMISSION", "BONUS", "ADJUSTMENT"]>>;
1218
+ }, "strip", z.ZodTypeAny, {
1219
+ page: number;
1220
+ pageSize: number;
1221
+ type?: "DEPOSIT" | "WITHDRAWAL" | "BUY" | "SELL" | "COMMISSION" | "BONUS" | "ADJUSTMENT" | undefined;
1222
+ }, {
1223
+ type?: "DEPOSIT" | "WITHDRAWAL" | "BUY" | "SELL" | "COMMISSION" | "BONUS" | "ADJUSTMENT" | undefined;
1224
+ page?: number | undefined;
1225
+ pageSize?: number | undefined;
1226
+ }>;
1227
+ type Query = z.infer<typeof QuerySchema>;
1228
+ const ResponseSchema: z.ZodObject<{
1229
+ items: z.ZodArray<z.ZodObject<{
1230
+ id: z.ZodString;
1231
+ type: z.ZodEnum<["DEPOSIT", "WITHDRAWAL", "BUY", "SELL", "COMMISSION", "BONUS", "ADJUSTMENT"]>;
1232
+ asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
1233
+ amount: z.ZodString;
1234
+ status: z.ZodEnum<["PENDING", "PROCESSING", "COMPLETED", "FAILED", "CANCELLED"]>;
1235
+ reference: z.ZodNullable<z.ZodString>;
1236
+ createdAt: z.ZodString;
1237
+ }, "strip", z.ZodTypeAny, {
1238
+ type: "DEPOSIT" | "WITHDRAWAL" | "BUY" | "SELL" | "COMMISSION" | "BONUS" | "ADJUSTMENT";
1239
+ status: "PENDING" | "PROCESSING" | "COMPLETED" | "FAILED" | "CANCELLED";
1240
+ id: string;
1241
+ createdAt: string;
1242
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1243
+ amount: string;
1244
+ reference: string | null;
1245
+ }, {
1246
+ type: "DEPOSIT" | "WITHDRAWAL" | "BUY" | "SELL" | "COMMISSION" | "BONUS" | "ADJUSTMENT";
1247
+ status: "PENDING" | "PROCESSING" | "COMPLETED" | "FAILED" | "CANCELLED";
1248
+ id: string;
1249
+ createdAt: string;
1250
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1251
+ amount: string;
1252
+ reference: string | null;
1253
+ }>, "many">;
1254
+ total: z.ZodNumber;
1255
+ page: z.ZodNumber;
1256
+ pageSize: z.ZodNumber;
1257
+ }, "strip", z.ZodTypeAny, {
1258
+ page: number;
1259
+ pageSize: number;
1260
+ items: {
1261
+ type: "DEPOSIT" | "WITHDRAWAL" | "BUY" | "SELL" | "COMMISSION" | "BONUS" | "ADJUSTMENT";
1262
+ status: "PENDING" | "PROCESSING" | "COMPLETED" | "FAILED" | "CANCELLED";
1263
+ id: string;
1264
+ createdAt: string;
1265
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1266
+ amount: string;
1267
+ reference: string | null;
1268
+ }[];
1269
+ total: number;
1270
+ }, {
1271
+ page: number;
1272
+ pageSize: number;
1273
+ items: {
1274
+ type: "DEPOSIT" | "WITHDRAWAL" | "BUY" | "SELL" | "COMMISSION" | "BONUS" | "ADJUSTMENT";
1275
+ status: "PENDING" | "PROCESSING" | "COMPLETED" | "FAILED" | "CANCELLED";
1276
+ id: string;
1277
+ createdAt: string;
1278
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1279
+ amount: string;
1280
+ reference: string | null;
1281
+ }[];
1282
+ total: number;
1283
+ }>;
1284
+ type Response = z.infer<typeof ResponseSchema>;
1285
+ }
1286
+
1287
+ declare namespace DepositAddressCommand {
1288
+ const endpointDetails: EndpointDetails;
1289
+ const RequestSchema: z.ZodObject<{
1290
+ asset: z.ZodEnum<["USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
1291
+ network: z.ZodString;
1292
+ }, "strip", z.ZodTypeAny, {
1293
+ asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1294
+ network: string;
1295
+ }, {
1296
+ asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1297
+ network: string;
1298
+ }>;
1299
+ type Request = z.infer<typeof RequestSchema>;
1300
+ const ResponseSchema: z.ZodObject<{
1301
+ asset: z.ZodEnum<["USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
1302
+ network: z.ZodString;
1303
+ address: z.ZodString;
1304
+ minAmount: z.ZodString;
1305
+ confirmations: z.ZodNumber;
1306
+ }, "strip", z.ZodTypeAny, {
1307
+ asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1308
+ network: string;
1309
+ address: string;
1310
+ minAmount: string;
1311
+ confirmations: number;
1312
+ }, {
1313
+ asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1314
+ network: string;
1315
+ address: string;
1316
+ minAmount: string;
1317
+ confirmations: number;
1318
+ }>;
1319
+ type Response = z.infer<typeof ResponseSchema>;
1320
+ }
1321
+
1322
+ declare namespace GetTokenPriceCommand {
1323
+ const endpointDetails: EndpointDetails;
1324
+ const ResponseSchema: zod.ZodObject<{
1325
+ price: zod.ZodString;
1326
+ change24hPct: zod.ZodString;
1327
+ tradeIndex: zod.ZodNumber;
1328
+ updatedAt: zod.ZodString;
1329
+ }, "strip", zod.ZodTypeAny, {
1330
+ price: string;
1331
+ change24hPct: string;
1332
+ tradeIndex: number;
1333
+ updatedAt: string;
1334
+ }, {
1335
+ price: string;
1336
+ change24hPct: string;
1337
+ tradeIndex: number;
1338
+ updatedAt: string;
1339
+ }>;
1340
+ type Response = TokenPrice;
1341
+ }
1342
+
1343
+ declare namespace GetTokenChartCommand {
1344
+ const endpointDetails: EndpointDetails;
1345
+ const QuerySchema: z.ZodObject<{
1346
+ period: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year"]>>;
1347
+ }, "strip", z.ZodTypeAny, {
1348
+ period: "week" | "month" | "year" | "day";
1349
+ }, {
1350
+ period?: "week" | "month" | "year" | "day" | undefined;
1351
+ }>;
1352
+ type Query = z.infer<typeof QuerySchema>;
1353
+ const ResponseSchema: z.ZodObject<{
1354
+ period: z.ZodEnum<["day", "week", "month", "year"]>;
1355
+ points: z.ZodArray<z.ZodObject<{
1356
+ t: z.ZodString;
1357
+ price: z.ZodString;
1358
+ }, "strip", z.ZodTypeAny, {
1359
+ price: string;
1360
+ t: string;
1361
+ }, {
1362
+ price: string;
1363
+ t: string;
1364
+ }>, "many">;
1365
+ }, "strip", z.ZodTypeAny, {
1366
+ period: "week" | "month" | "year" | "day";
1367
+ points: {
1368
+ price: string;
1369
+ t: string;
1370
+ }[];
1371
+ }, {
1372
+ period: "week" | "month" | "year" | "day";
1373
+ points: {
1374
+ price: string;
1375
+ t: string;
1376
+ }[];
1377
+ }>;
1378
+ type Response = z.infer<typeof ResponseSchema>;
1379
+ }
1380
+
1381
+ declare namespace SwapCommand {
1382
+ const endpointDetails: EndpointDetails;
1383
+ /**
1384
+ * For BUY, `amount` is the USDT spent. For SELL, `amount` is the NMN sold.
1385
+ * `maxPrice` (optional) — slippage guard; reject if the live price exceeds it.
1386
+ */
1387
+ const RequestSchema: z.ZodObject<{
1388
+ side: z.ZodEnum<["BUY", "SELL"]>;
1389
+ amount: z.ZodEffects<z.ZodString, string, string>;
1390
+ maxPrice: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1391
+ idempotencyKey: z.ZodString;
1392
+ }, "strip", z.ZodTypeAny, {
1393
+ amount: string;
1394
+ side: "BUY" | "SELL";
1395
+ idempotencyKey: string;
1396
+ maxPrice?: string | undefined;
1397
+ }, {
1398
+ amount: string;
1399
+ side: "BUY" | "SELL";
1400
+ idempotencyKey: string;
1401
+ maxPrice?: string | undefined;
1402
+ }>;
1403
+ type Request = z.infer<typeof RequestSchema>;
1404
+ const ResponseSchema: z.ZodObject<{
1405
+ tradeId: z.ZodString;
1406
+ side: z.ZodEnum<["BUY", "SELL"]>;
1407
+ usdtAmount: z.ZodString;
1408
+ nmnAmount: z.ZodString;
1409
+ price: z.ZodString;
1410
+ feeUsdt: z.ZodString;
1411
+ }, "strip", z.ZodTypeAny, {
1412
+ price: string;
1413
+ tradeId: string;
1414
+ side: "BUY" | "SELL";
1415
+ usdtAmount: string;
1416
+ nmnAmount: string;
1417
+ feeUsdt: string;
1418
+ }, {
1419
+ price: string;
1420
+ tradeId: string;
1421
+ side: "BUY" | "SELL";
1422
+ usdtAmount: string;
1423
+ nmnAmount: string;
1424
+ feeUsdt: string;
1425
+ }>;
1426
+ type Response = z.infer<typeof ResponseSchema>;
1427
+ }
1428
+
1429
+ declare namespace GetPartnersCommand {
1430
+ const endpointDetails: EndpointDetails;
1431
+ const ResponseSchema: zod.ZodObject<{
1432
+ referralCode: zod.ZodString;
1433
+ totalPartners: zod.ZodNumber;
1434
+ directPartners: zod.ZodNumber;
1435
+ networkTurnover: zod.ZodString;
1436
+ affiliateIncome: zod.ZodString;
1437
+ levels: zod.ZodArray<zod.ZodObject<{
1438
+ level: zod.ZodNumber;
1439
+ partners: zod.ZodNumber;
1440
+ }, "strip", zod.ZodTypeAny, {
1441
+ level: number;
1442
+ partners: number;
1443
+ }, {
1444
+ level: number;
1445
+ partners: number;
1446
+ }>, "many">;
1447
+ }, "strip", zod.ZodTypeAny, {
1448
+ referralCode: string;
1449
+ totalPartners: number;
1450
+ directPartners: number;
1451
+ networkTurnover: string;
1452
+ affiliateIncome: string;
1453
+ levels: {
1454
+ level: number;
1455
+ partners: number;
1456
+ }[];
1457
+ }, {
1458
+ referralCode: string;
1459
+ totalPartners: number;
1460
+ directPartners: number;
1461
+ networkTurnover: string;
1462
+ affiliateIncome: string;
1463
+ levels: {
1464
+ level: number;
1465
+ partners: number;
1466
+ }[];
1467
+ }>;
1468
+ type Response = PartnersOverview;
1469
+ }
1470
+
1471
+ declare namespace GetRanksCommand {
1472
+ const endpointDetails: EndpointDetails;
1473
+ const ResponseSchema: z.ZodObject<{
1474
+ ranks: z.ZodArray<z.ZodObject<{
1475
+ name: z.ZodString;
1476
+ order: z.ZodNumber;
1477
+ minTurnover: z.ZodString;
1478
+ }, "strip", z.ZodTypeAny, {
1479
+ name: string;
1480
+ order: number;
1481
+ minTurnover: string;
1482
+ }, {
1483
+ name: string;
1484
+ order: number;
1485
+ minTurnover: string;
1486
+ }>, "many">;
1487
+ }, "strip", z.ZodTypeAny, {
1488
+ ranks: {
1489
+ name: string;
1490
+ order: number;
1491
+ minTurnover: string;
1492
+ }[];
1493
+ }, {
1494
+ ranks: {
1495
+ name: string;
1496
+ order: number;
1497
+ minTurnover: string;
1498
+ }[];
1499
+ }>;
1500
+ type Response = z.infer<typeof ResponseSchema>;
1501
+ }
1502
+
1503
+ declare namespace GetEarningsCommand {
1504
+ const endpointDetails: EndpointDetails;
1505
+ const ResponseSchema: zod.ZodObject<{
1506
+ tokenBalance: zod.ZodString;
1507
+ tokenPrice: zod.ZodString;
1508
+ tokenValueUsd: zod.ZodString;
1509
+ affiliateIncome: zod.ZodString;
1510
+ networkTurnover: zod.ZodString;
1511
+ rank: zod.ZodObject<{
1512
+ name: zod.ZodString;
1513
+ order: zod.ZodNumber;
1514
+ minTurnover: zod.ZodString;
1515
+ nextName: zod.ZodNullable<zod.ZodString>;
1516
+ nextMinTurnover: zod.ZodNullable<zod.ZodString>;
1517
+ progressPct: zod.ZodString;
1518
+ }, "strip", zod.ZodTypeAny, {
1519
+ name: string;
1520
+ order: number;
1521
+ minTurnover: string;
1522
+ nextName: string | null;
1523
+ nextMinTurnover: string | null;
1524
+ progressPct: string;
1525
+ }, {
1526
+ name: string;
1527
+ order: number;
1528
+ minTurnover: string;
1529
+ nextName: string | null;
1530
+ nextMinTurnover: string | null;
1531
+ progressPct: string;
1532
+ }>;
1533
+ }, "strip", zod.ZodTypeAny, {
1534
+ networkTurnover: string;
1535
+ affiliateIncome: string;
1536
+ tokenBalance: string;
1537
+ tokenPrice: string;
1538
+ tokenValueUsd: string;
1539
+ rank: {
1540
+ name: string;
1541
+ order: number;
1542
+ minTurnover: string;
1543
+ nextName: string | null;
1544
+ nextMinTurnover: string | null;
1545
+ progressPct: string;
1546
+ };
1547
+ }, {
1548
+ networkTurnover: string;
1549
+ affiliateIncome: string;
1550
+ tokenBalance: string;
1551
+ tokenPrice: string;
1552
+ tokenValueUsd: string;
1553
+ rank: {
1554
+ name: string;
1555
+ order: number;
1556
+ minTurnover: string;
1557
+ nextName: string | null;
1558
+ nextMinTurnover: string | null;
1559
+ progressPct: string;
1560
+ };
1561
+ }>;
1562
+ type Response = EarningsOverview;
1563
+ }
1564
+
1565
+ declare namespace RequestWithdrawalCommand {
1566
+ const endpointDetails: EndpointDetails;
1567
+ const RequestSchema: z.ZodObject<{
1568
+ asset: z.ZodEnum<["USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
1569
+ amount: z.ZodEffects<z.ZodString, string, string>;
1570
+ address: z.ZodString;
1571
+ totp: z.ZodOptional<z.ZodString>;
1572
+ idempotencyKey: z.ZodString;
1573
+ }, "strip", z.ZodTypeAny, {
1574
+ asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1575
+ amount: string;
1576
+ address: string;
1577
+ idempotencyKey: string;
1578
+ totp?: string | undefined;
1579
+ }, {
1580
+ asset: "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1581
+ amount: string;
1582
+ address: string;
1583
+ idempotencyKey: string;
1584
+ totp?: string | undefined;
1585
+ }>;
1586
+ type Request = z.infer<typeof RequestSchema>;
1587
+ const ResponseSchema: z.ZodObject<{
1588
+ withdrawalId: z.ZodString;
1589
+ status: z.ZodEnum<["AWAITING_CONFIRM", "AWAITING_COOLOFF", "QUEUED", "SENT", "CONFIRMED", "FAILED", "CANCELLED"]>;
1590
+ }, "strip", z.ZodTypeAny, {
1591
+ status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
1592
+ withdrawalId: string;
1593
+ }, {
1594
+ status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
1595
+ withdrawalId: string;
1596
+ }>;
1597
+ type Response = z.infer<typeof ResponseSchema>;
1598
+ }
1599
+ declare namespace ListWithdrawalsCommand {
1600
+ const endpointDetails: EndpointDetails;
1601
+ const ResponseSchema: z.ZodObject<{
1602
+ items: z.ZodArray<z.ZodObject<{
1603
+ id: z.ZodString;
1604
+ asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
1605
+ amount: z.ZodString;
1606
+ address: z.ZodString;
1607
+ status: z.ZodEnum<["AWAITING_CONFIRM", "AWAITING_COOLOFF", "QUEUED", "SENT", "CONFIRMED", "FAILED", "CANCELLED"]>;
1608
+ createdAt: z.ZodString;
1609
+ }, "strip", z.ZodTypeAny, {
1610
+ status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
1611
+ id: string;
1612
+ createdAt: string;
1613
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1614
+ amount: string;
1615
+ address: string;
1616
+ }, {
1617
+ status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
1618
+ id: string;
1619
+ createdAt: string;
1620
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1621
+ amount: string;
1622
+ address: string;
1623
+ }>, "many">;
1624
+ }, "strip", z.ZodTypeAny, {
1625
+ items: {
1626
+ status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
1627
+ id: string;
1628
+ createdAt: string;
1629
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1630
+ amount: string;
1631
+ address: string;
1632
+ }[];
1633
+ }, {
1634
+ items: {
1635
+ status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
1636
+ id: string;
1637
+ createdAt: string;
1638
+ asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1639
+ amount: string;
1640
+ address: string;
1641
+ }[];
1642
+ }>;
1643
+ type Response = z.infer<typeof ResponseSchema>;
1644
+ }
1645
+ declare namespace CancelWithdrawalCommand {
1646
+ const endpointDetails: EndpointDetails;
1647
+ const ResponseSchema: z.ZodObject<{
1648
+ status: z.ZodEnum<["AWAITING_CONFIRM", "AWAITING_COOLOFF", "QUEUED", "SENT", "CONFIRMED", "FAILED", "CANCELLED"]>;
1649
+ }, "strip", z.ZodTypeAny, {
1650
+ status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
1651
+ }, {
1652
+ status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
1653
+ }>;
1654
+ type Response = z.infer<typeof ResponseSchema>;
1655
+ }
1656
+ declare namespace ConfirmWithdrawalCommand {
1657
+ const endpointDetails: EndpointDetails;
1658
+ const RequestSchema: z.ZodObject<{
1659
+ token: z.ZodString;
1660
+ }, "strip", z.ZodTypeAny, {
1661
+ token: string;
1662
+ }, {
1663
+ token: string;
1664
+ }>;
1665
+ type Request = z.infer<typeof RequestSchema>;
1666
+ const ResponseSchema: z.ZodObject<{
1667
+ status: z.ZodEnum<["AWAITING_CONFIRM", "AWAITING_COOLOFF", "QUEUED", "SENT", "CONFIRMED", "FAILED", "CANCELLED"]>;
1668
+ }, "strip", z.ZodTypeAny, {
1669
+ status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
1670
+ }, {
1671
+ status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
1672
+ }>;
1673
+ type Response = z.infer<typeof ResponseSchema>;
1674
+ }
1675
+
1676
+ declare const AVATAR_CONTENT_TYPES: readonly ["image/png", "image/jpeg", "image/webp", "image/gif"];
1677
+ declare const AvatarContentTypeSchema: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
1678
+ declare namespace RequestEmailChangeCommand {
1679
+ const endpointDetails: EndpointDetails;
1680
+ const RequestSchema: z.ZodObject<{
1681
+ newEmail: z.ZodString;
1682
+ }, "strip", z.ZodTypeAny, {
1683
+ newEmail: string;
1684
+ }, {
1685
+ newEmail: string;
1686
+ }>;
1687
+ type Request = z.infer<typeof RequestSchema>;
1688
+ const ResponseSchema: z.ZodObject<{
1689
+ sent: z.ZodBoolean;
1690
+ }, "strip", z.ZodTypeAny, {
1691
+ sent: boolean;
1692
+ }, {
1693
+ sent: boolean;
1694
+ }>;
1695
+ type Response = z.infer<typeof ResponseSchema>;
1696
+ }
1697
+ declare namespace ConfirmEmailChangeCommand {
1698
+ const endpointDetails: EndpointDetails;
1699
+ const RequestSchema: z.ZodObject<{
1700
+ code: z.ZodString;
1701
+ }, "strip", z.ZodTypeAny, {
1702
+ code: string;
1703
+ }, {
1704
+ code: string;
1705
+ }>;
1706
+ type Request = z.infer<typeof RequestSchema>;
1707
+ const ResponseSchema: z.ZodObject<{
1708
+ email: z.ZodString;
1709
+ }, "strip", z.ZodTypeAny, {
1710
+ email: string;
1711
+ }, {
1712
+ email: string;
1713
+ }>;
1714
+ type Response = z.infer<typeof ResponseSchema>;
1715
+ }
1716
+ declare namespace DisableTotpCommand {
1717
+ const endpointDetails: EndpointDetails;
1718
+ const RequestSchema: z.ZodObject<{
1719
+ totp: z.ZodString;
1720
+ }, "strip", z.ZodTypeAny, {
1721
+ totp: string;
1722
+ }, {
1723
+ totp: string;
1724
+ }>;
1725
+ type Request = z.infer<typeof RequestSchema>;
1726
+ const ResponseSchema: z.ZodVoid;
1727
+ type Response = z.infer<typeof ResponseSchema>;
1728
+ }
1729
+ declare namespace UpdateProfileCommand {
1730
+ const endpointDetails: EndpointDetails;
1731
+ const RequestSchema: z.ZodEffects<z.ZodObject<{
1732
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1733
+ avatarKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1734
+ }, "strip", z.ZodTypeAny, {
1735
+ displayName?: string | null | undefined;
1736
+ avatarKey?: string | null | undefined;
1737
+ }, {
1738
+ displayName?: string | null | undefined;
1739
+ avatarKey?: string | null | undefined;
1740
+ }>, {
1741
+ displayName?: string | null | undefined;
1742
+ avatarKey?: string | null | undefined;
1743
+ }, {
1744
+ displayName?: string | null | undefined;
1745
+ avatarKey?: string | null | undefined;
1746
+ }>;
1747
+ type Request = z.infer<typeof RequestSchema>;
1748
+ const ResponseSchema: z.ZodObject<{
1749
+ id: z.ZodString;
1750
+ email: z.ZodString;
1751
+ displayName: z.ZodNullable<z.ZodString>;
1752
+ avatarUrl: z.ZodNullable<z.ZodString>;
1753
+ referrerId: z.ZodNullable<z.ZodString>;
1754
+ rankId: z.ZodNullable<z.ZodString>;
1755
+ status: z.ZodEnum<["pending", "active", "suspended", "deleted"]>;
1756
+ totpEnabled: z.ZodBoolean;
1757
+ createdAt: z.ZodString;
1758
+ }, "strip", z.ZodTypeAny, {
1759
+ status: "pending" | "active" | "suspended" | "deleted";
1760
+ id: string;
1761
+ email: string;
1762
+ displayName: string | null;
1763
+ avatarUrl: string | null;
1764
+ referrerId: string | null;
1765
+ rankId: string | null;
1766
+ totpEnabled: boolean;
1767
+ createdAt: string;
1768
+ }, {
1769
+ status: "pending" | "active" | "suspended" | "deleted";
1770
+ id: string;
1771
+ email: string;
1772
+ displayName: string | null;
1773
+ avatarUrl: string | null;
1774
+ referrerId: string | null;
1775
+ rankId: string | null;
1776
+ totpEnabled: boolean;
1777
+ createdAt: string;
1778
+ }>;
1779
+ type Response = z.infer<typeof ResponseSchema>;
1780
+ }
1781
+ declare namespace AvatarUploadUrlCommand {
1782
+ const endpointDetails: EndpointDetails;
1783
+ const RequestSchema: z.ZodObject<{
1784
+ contentType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
1785
+ }, "strip", z.ZodTypeAny, {
1786
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
1787
+ }, {
1788
+ contentType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
1789
+ }>;
1790
+ type Request = z.infer<typeof RequestSchema>;
1791
+ const ResponseSchema: z.ZodObject<{
1792
+ key: z.ZodString;
1793
+ uploadUrl: z.ZodString;
1794
+ publicUrl: z.ZodString;
1795
+ expiresInSec: z.ZodNumber;
1796
+ maxBytes: z.ZodNumber;
1797
+ }, "strip", z.ZodTypeAny, {
1798
+ key: string;
1799
+ uploadUrl: string;
1800
+ publicUrl: string;
1801
+ expiresInSec: number;
1802
+ maxBytes: number;
1803
+ }, {
1804
+ key: string;
1805
+ uploadUrl: string;
1806
+ publicUrl: string;
1807
+ expiresInSec: number;
1808
+ maxBytes: number;
1809
+ }>;
1810
+ type Response = z.infer<typeof ResponseSchema>;
1811
+ }
1812
+ declare namespace GetSettingsCommand {
1813
+ const endpointDetails: EndpointDetails;
1814
+ const ResponseSchema: z.ZodObject<{
1815
+ notifyTrades: z.ZodBoolean;
1816
+ notifyByEmail: z.ZodBoolean;
1817
+ withdrawalEmailConfirm: z.ZodBoolean;
1818
+ }, "strip", z.ZodTypeAny, {
1819
+ notifyTrades: boolean;
1820
+ notifyByEmail: boolean;
1821
+ withdrawalEmailConfirm: boolean;
1822
+ }, {
1823
+ notifyTrades: boolean;
1824
+ notifyByEmail: boolean;
1825
+ withdrawalEmailConfirm: boolean;
1826
+ }>;
1827
+ type Response = z.infer<typeof ResponseSchema>;
1828
+ }
1829
+ declare namespace UpdateSettingsCommand {
1830
+ const endpointDetails: EndpointDetails;
1831
+ const RequestSchema: z.ZodEffects<z.ZodObject<{
1832
+ notifyTrades: z.ZodOptional<z.ZodBoolean>;
1833
+ notifyByEmail: z.ZodOptional<z.ZodBoolean>;
1834
+ withdrawalEmailConfirm: z.ZodOptional<z.ZodBoolean>;
1835
+ }, "strip", z.ZodTypeAny, {
1836
+ notifyTrades?: boolean | undefined;
1837
+ notifyByEmail?: boolean | undefined;
1838
+ withdrawalEmailConfirm?: boolean | undefined;
1839
+ }, {
1840
+ notifyTrades?: boolean | undefined;
1841
+ notifyByEmail?: boolean | undefined;
1842
+ withdrawalEmailConfirm?: boolean | undefined;
1843
+ }>, {
1844
+ notifyTrades?: boolean | undefined;
1845
+ notifyByEmail?: boolean | undefined;
1846
+ withdrawalEmailConfirm?: boolean | undefined;
1847
+ }, {
1848
+ notifyTrades?: boolean | undefined;
1849
+ notifyByEmail?: boolean | undefined;
1850
+ withdrawalEmailConfirm?: boolean | undefined;
1851
+ }>;
1852
+ type Request = z.infer<typeof RequestSchema>;
1853
+ const ResponseSchema: z.ZodObject<{
1854
+ notifyTrades: z.ZodBoolean;
1855
+ notifyByEmail: z.ZodBoolean;
1856
+ withdrawalEmailConfirm: z.ZodBoolean;
1857
+ }, "strip", z.ZodTypeAny, {
1858
+ notifyTrades: boolean;
1859
+ notifyByEmail: boolean;
1860
+ withdrawalEmailConfirm: boolean;
1861
+ }, {
1862
+ notifyTrades: boolean;
1863
+ notifyByEmail: boolean;
1864
+ withdrawalEmailConfirm: boolean;
1865
+ }>;
1866
+ type Response = z.infer<typeof ResponseSchema>;
1867
+ }
1868
+
1869
+ declare namespace GetDailyBonusCommand {
1870
+ const endpointDetails: EndpointDetails;
1871
+ const ResponseSchema: z.ZodObject<{
1872
+ currentStreak: z.ZodNumber;
1873
+ cycleLength: z.ZodNumber;
1874
+ claimableToday: z.ZodBoolean;
1875
+ todayDayIndex: z.ZodNumber;
1876
+ nextRewardNmn: z.ZodString;
1877
+ days: z.ZodArray<z.ZodObject<{
1878
+ dayIndex: z.ZodNumber;
1879
+ rewardNmn: z.ZodString;
1880
+ surprise: z.ZodBoolean;
1881
+ }, "strip", z.ZodTypeAny, {
1882
+ dayIndex: number;
1883
+ rewardNmn: string;
1884
+ surprise: boolean;
1885
+ }, {
1886
+ dayIndex: number;
1887
+ rewardNmn: string;
1888
+ surprise: boolean;
1889
+ }>, "many">;
1890
+ }, "strip", z.ZodTypeAny, {
1891
+ currentStreak: number;
1892
+ cycleLength: number;
1893
+ claimableToday: boolean;
1894
+ todayDayIndex: number;
1895
+ nextRewardNmn: string;
1896
+ days: {
1897
+ dayIndex: number;
1898
+ rewardNmn: string;
1899
+ surprise: boolean;
1900
+ }[];
1901
+ }, {
1902
+ currentStreak: number;
1903
+ cycleLength: number;
1904
+ claimableToday: boolean;
1905
+ todayDayIndex: number;
1906
+ nextRewardNmn: string;
1907
+ days: {
1908
+ dayIndex: number;
1909
+ rewardNmn: string;
1910
+ surprise: boolean;
1911
+ }[];
1912
+ }>;
1913
+ type Response = z.infer<typeof ResponseSchema>;
1914
+ }
1915
+ declare namespace ClaimDailyBonusCommand {
1916
+ const endpointDetails: EndpointDetails;
1917
+ const ResponseSchema: z.ZodObject<{
1918
+ claimed: z.ZodBoolean;
1919
+ dayIndex: z.ZodNumber;
1920
+ rewardNmn: z.ZodString;
1921
+ currentStreak: z.ZodNumber;
1922
+ }, "strip", z.ZodTypeAny, {
1923
+ dayIndex: number;
1924
+ rewardNmn: string;
1925
+ currentStreak: number;
1926
+ claimed: boolean;
1927
+ }, {
1928
+ dayIndex: number;
1929
+ rewardNmn: string;
1930
+ currentStreak: number;
1931
+ claimed: boolean;
1932
+ }>;
1933
+ type Response = z.infer<typeof ResponseSchema>;
1934
+ }
1935
+
1936
+ declare namespace GetLeaderboardCommand {
1937
+ const endpointDetails: EndpointDetails;
1938
+ const QuerySchema: z.ZodObject<{
1939
+ period: z.ZodDefault<z.ZodEnum<["week", "month", "year", "all"]>>;
1940
+ limit: z.ZodDefault<z.ZodNumber>;
1941
+ }, "strip", z.ZodTypeAny, {
1942
+ period: "week" | "month" | "year" | "all";
1943
+ limit: number;
1944
+ }, {
1945
+ period?: "week" | "month" | "year" | "all" | undefined;
1946
+ limit?: number | undefined;
1947
+ }>;
1948
+ type Query = z.infer<typeof QuerySchema>;
1949
+ const ResponseSchema: z.ZodObject<{
1950
+ period: z.ZodEnum<["week", "month", "year", "all"]>;
1951
+ items: z.ZodArray<z.ZodObject<{
1952
+ rank: z.ZodNumber;
1953
+ userId: z.ZodString;
1954
+ displayName: z.ZodString;
1955
+ line: z.ZodNullable<z.ZodNumber>;
1956
+ partners: z.ZodNumber;
1957
+ turnoverUsd: z.ZodString;
1958
+ changePct: z.ZodNumber;
1959
+ isSelf: z.ZodBoolean;
1960
+ }, "strip", z.ZodTypeAny, {
1961
+ displayName: string;
1962
+ partners: number;
1963
+ rank: number;
1964
+ userId: string;
1965
+ line: number | null;
1966
+ turnoverUsd: string;
1967
+ changePct: number;
1968
+ isSelf: boolean;
1969
+ }, {
1970
+ displayName: string;
1971
+ partners: number;
1972
+ rank: number;
1973
+ userId: string;
1974
+ line: number | null;
1975
+ turnoverUsd: string;
1976
+ changePct: number;
1977
+ isSelf: boolean;
1978
+ }>, "many">;
1979
+ self: z.ZodNullable<z.ZodObject<{
1980
+ rank: z.ZodNumber;
1981
+ userId: z.ZodString;
1982
+ displayName: z.ZodString;
1983
+ line: z.ZodNullable<z.ZodNumber>;
1984
+ partners: z.ZodNumber;
1985
+ turnoverUsd: z.ZodString;
1986
+ changePct: z.ZodNumber;
1987
+ isSelf: z.ZodBoolean;
1988
+ }, "strip", z.ZodTypeAny, {
1989
+ displayName: string;
1990
+ partners: number;
1991
+ rank: number;
1992
+ userId: string;
1993
+ line: number | null;
1994
+ turnoverUsd: string;
1995
+ changePct: number;
1996
+ isSelf: boolean;
1997
+ }, {
1998
+ displayName: string;
1999
+ partners: number;
2000
+ rank: number;
2001
+ userId: string;
2002
+ line: number | null;
2003
+ turnoverUsd: string;
2004
+ changePct: number;
2005
+ isSelf: boolean;
2006
+ }>>;
2007
+ }, "strip", z.ZodTypeAny, {
2008
+ items: {
2009
+ displayName: string;
2010
+ partners: number;
2011
+ rank: number;
2012
+ userId: string;
2013
+ line: number | null;
2014
+ turnoverUsd: string;
2015
+ changePct: number;
2016
+ isSelf: boolean;
2017
+ }[];
2018
+ period: "week" | "month" | "year" | "all";
2019
+ self: {
2020
+ displayName: string;
2021
+ partners: number;
2022
+ rank: number;
2023
+ userId: string;
2024
+ line: number | null;
2025
+ turnoverUsd: string;
2026
+ changePct: number;
2027
+ isSelf: boolean;
2028
+ } | null;
2029
+ }, {
2030
+ items: {
2031
+ displayName: string;
2032
+ partners: number;
2033
+ rank: number;
2034
+ userId: string;
2035
+ line: number | null;
2036
+ turnoverUsd: string;
2037
+ changePct: number;
2038
+ isSelf: boolean;
2039
+ }[];
2040
+ period: "week" | "month" | "year" | "all";
2041
+ self: {
2042
+ displayName: string;
2043
+ partners: number;
2044
+ rank: number;
2045
+ userId: string;
2046
+ line: number | null;
2047
+ turnoverUsd: string;
2048
+ changePct: number;
2049
+ isSelf: boolean;
2050
+ } | null;
2051
+ }>;
2052
+ type Response = z.infer<typeof ResponseSchema>;
2053
+ }
2054
+
2055
+ declare namespace GetIncomeCommand {
2056
+ const endpointDetails: EndpointDetails;
2057
+ const QuerySchema: z.ZodObject<{
2058
+ period: z.ZodDefault<z.ZodEnum<["week", "month", "year", "all"]>>;
2059
+ }, "strip", z.ZodTypeAny, {
2060
+ period: "week" | "month" | "year" | "all";
2061
+ }, {
2062
+ period?: "week" | "month" | "year" | "all" | undefined;
2063
+ }>;
2064
+ type Query = z.infer<typeof QuerySchema>;
2065
+ const ResponseSchema: z.ZodObject<{
2066
+ period: z.ZodEnum<["week", "month", "year", "all"]>;
2067
+ tokenGrowthIncomeUsd: z.ZodString;
2068
+ tokenGrowthPct: z.ZodNumber;
2069
+ affiliateIncomeNmn: z.ZodString;
2070
+ affiliateIncomeUsd: z.ZodString;
2071
+ totalEarnedUsd: z.ZodString;
2072
+ partnerAccruals: z.ZodArray<z.ZodObject<{
2073
+ id: z.ZodString;
2074
+ level: z.ZodNumber;
2075
+ sourceUserId: z.ZodString;
2076
+ sourceName: z.ZodString;
2077
+ amountUsd: z.ZodString;
2078
+ createdAt: z.ZodString;
2079
+ }, "strip", z.ZodTypeAny, {
2080
+ id: string;
2081
+ createdAt: string;
2082
+ level: number;
2083
+ sourceUserId: string;
2084
+ sourceName: string;
2085
+ amountUsd: string;
2086
+ }, {
2087
+ id: string;
2088
+ createdAt: string;
2089
+ level: number;
2090
+ sourceUserId: string;
2091
+ sourceName: string;
2092
+ amountUsd: string;
2093
+ }>, "many">;
2094
+ monthlyPrice: z.ZodArray<z.ZodObject<{
2095
+ month: z.ZodString;
2096
+ fromPrice: z.ZodString;
2097
+ toPrice: z.ZodString;
2098
+ holdingGrowthUsd: z.ZodString;
2099
+ }, "strip", z.ZodTypeAny, {
2100
+ month: string;
2101
+ fromPrice: string;
2102
+ toPrice: string;
2103
+ holdingGrowthUsd: string;
2104
+ }, {
2105
+ month: string;
2106
+ fromPrice: string;
2107
+ toPrice: string;
2108
+ holdingGrowthUsd: string;
2109
+ }>, "many">;
2110
+ }, "strip", z.ZodTypeAny, {
2111
+ period: "week" | "month" | "year" | "all";
2112
+ tokenGrowthIncomeUsd: string;
2113
+ tokenGrowthPct: number;
2114
+ affiliateIncomeNmn: string;
2115
+ affiliateIncomeUsd: string;
2116
+ totalEarnedUsd: string;
2117
+ partnerAccruals: {
2118
+ id: string;
2119
+ createdAt: string;
2120
+ level: number;
2121
+ sourceUserId: string;
2122
+ sourceName: string;
2123
+ amountUsd: string;
2124
+ }[];
2125
+ monthlyPrice: {
2126
+ month: string;
2127
+ fromPrice: string;
2128
+ toPrice: string;
2129
+ holdingGrowthUsd: string;
2130
+ }[];
2131
+ }, {
2132
+ period: "week" | "month" | "year" | "all";
2133
+ tokenGrowthIncomeUsd: string;
2134
+ tokenGrowthPct: number;
2135
+ affiliateIncomeNmn: string;
2136
+ affiliateIncomeUsd: string;
2137
+ totalEarnedUsd: string;
2138
+ partnerAccruals: {
2139
+ id: string;
2140
+ createdAt: string;
2141
+ level: number;
2142
+ sourceUserId: string;
2143
+ sourceName: string;
2144
+ amountUsd: string;
2145
+ }[];
2146
+ monthlyPrice: {
2147
+ month: string;
2148
+ fromPrice: string;
2149
+ toPrice: string;
2150
+ holdingGrowthUsd: string;
2151
+ }[];
2152
+ }>;
2153
+ type Response = z.infer<typeof ResponseSchema>;
2154
+ }
2155
+
2156
+ declare namespace ListNotificationsCommand {
2157
+ const endpointDetails: EndpointDetails;
2158
+ const QuerySchema: z.ZodObject<{
2159
+ page: z.ZodDefault<z.ZodNumber>;
2160
+ pageSize: z.ZodDefault<z.ZodNumber>;
2161
+ } & {
2162
+ unreadOnly: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>, boolean, string | boolean | undefined>;
2163
+ }, "strip", z.ZodTypeAny, {
2164
+ page: number;
2165
+ pageSize: number;
2166
+ unreadOnly: boolean;
2167
+ }, {
2168
+ page?: number | undefined;
2169
+ pageSize?: number | undefined;
2170
+ unreadOnly?: string | boolean | undefined;
2171
+ }>;
2172
+ type Query = z.infer<typeof QuerySchema>;
2173
+ const ResponseSchema: z.ZodObject<{
2174
+ items: z.ZodArray<z.ZodObject<{
2175
+ id: z.ZodString;
2176
+ type: z.ZodEnum<["TRADE_EXECUTED", "DEPOSIT_CREDITED", "COMMISSION_ACCRUED", "WITHDRAWAL_SENT", "BONUS_CLAIMED", "SYSTEM"]>;
2177
+ title: z.ZodString;
2178
+ body: z.ZodString;
2179
+ read: z.ZodBoolean;
2180
+ meta: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2181
+ createdAt: z.ZodString;
2182
+ }, "strip", z.ZodTypeAny, {
2183
+ type: "TRADE_EXECUTED" | "DEPOSIT_CREDITED" | "COMMISSION_ACCRUED" | "WITHDRAWAL_SENT" | "BONUS_CLAIMED" | "SYSTEM";
2184
+ id: string;
2185
+ createdAt: string;
2186
+ title: string;
2187
+ body: string;
2188
+ read: boolean;
2189
+ meta: Record<string, unknown> | null;
2190
+ }, {
2191
+ type: "TRADE_EXECUTED" | "DEPOSIT_CREDITED" | "COMMISSION_ACCRUED" | "WITHDRAWAL_SENT" | "BONUS_CLAIMED" | "SYSTEM";
2192
+ id: string;
2193
+ createdAt: string;
2194
+ title: string;
2195
+ body: string;
2196
+ read: boolean;
2197
+ meta: Record<string, unknown> | null;
2198
+ }>, "many">;
2199
+ total: z.ZodNumber;
2200
+ page: z.ZodNumber;
2201
+ pageSize: z.ZodNumber;
2202
+ } & {
2203
+ unread: z.ZodNumber;
2204
+ }, "strip", z.ZodTypeAny, {
2205
+ page: number;
2206
+ pageSize: number;
2207
+ items: {
2208
+ type: "TRADE_EXECUTED" | "DEPOSIT_CREDITED" | "COMMISSION_ACCRUED" | "WITHDRAWAL_SENT" | "BONUS_CLAIMED" | "SYSTEM";
2209
+ id: string;
2210
+ createdAt: string;
2211
+ title: string;
2212
+ body: string;
2213
+ read: boolean;
2214
+ meta: Record<string, unknown> | null;
2215
+ }[];
2216
+ total: number;
2217
+ unread: number;
2218
+ }, {
2219
+ page: number;
2220
+ pageSize: number;
2221
+ items: {
2222
+ type: "TRADE_EXECUTED" | "DEPOSIT_CREDITED" | "COMMISSION_ACCRUED" | "WITHDRAWAL_SENT" | "BONUS_CLAIMED" | "SYSTEM";
2223
+ id: string;
2224
+ createdAt: string;
2225
+ title: string;
2226
+ body: string;
2227
+ read: boolean;
2228
+ meta: Record<string, unknown> | null;
2229
+ }[];
2230
+ total: number;
2231
+ unread: number;
2232
+ }>;
2233
+ type Response = z.infer<typeof ResponseSchema>;
2234
+ }
2235
+ declare namespace MarkNotificationsReadCommand {
2236
+ const endpointDetails: EndpointDetails;
2237
+ const RequestSchema: z.ZodObject<{
2238
+ ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2239
+ all: z.ZodOptional<z.ZodBoolean>;
2240
+ }, "strip", z.ZodTypeAny, {
2241
+ all?: boolean | undefined;
2242
+ ids?: string[] | undefined;
2243
+ }, {
2244
+ all?: boolean | undefined;
2245
+ ids?: string[] | undefined;
2246
+ }>;
2247
+ type Request = z.infer<typeof RequestSchema>;
2248
+ const ResponseSchema: z.ZodObject<{
2249
+ updated: z.ZodNumber;
2250
+ }, "strip", z.ZodTypeAny, {
2251
+ updated: number;
2252
+ }, {
2253
+ updated: number;
2254
+ }>;
2255
+ type Response = z.infer<typeof ResponseSchema>;
2256
+ }
2257
+
2258
+ declare namespace ListLinkedAccountsCommand {
2259
+ const endpointDetails: EndpointDetails;
2260
+ const ResponseSchema: z.ZodObject<{
2261
+ items: z.ZodArray<z.ZodObject<{
2262
+ provider: z.ZodEnum<["telegram", "google"]>;
2263
+ providerUserId: z.ZodString;
2264
+ displayName: z.ZodNullable<z.ZodString>;
2265
+ linkedAt: z.ZodString;
2266
+ }, "strip", z.ZodTypeAny, {
2267
+ displayName: string | null;
2268
+ provider: "telegram" | "google";
2269
+ providerUserId: string;
2270
+ linkedAt: string;
2271
+ }, {
2272
+ displayName: string | null;
2273
+ provider: "telegram" | "google";
2274
+ providerUserId: string;
2275
+ linkedAt: string;
2276
+ }>, "many">;
2277
+ }, "strip", z.ZodTypeAny, {
2278
+ items: {
2279
+ displayName: string | null;
2280
+ provider: "telegram" | "google";
2281
+ providerUserId: string;
2282
+ linkedAt: string;
2283
+ }[];
2284
+ }, {
2285
+ items: {
2286
+ displayName: string | null;
2287
+ provider: "telegram" | "google";
2288
+ providerUserId: string;
2289
+ linkedAt: string;
2290
+ }[];
2291
+ }>;
2292
+ type Response = z.infer<typeof ResponseSchema>;
2293
+ }
2294
+ declare namespace LinkTelegramCommand {
2295
+ const endpointDetails: EndpointDetails;
2296
+ const RequestSchema: z.ZodObject<{
2297
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
2298
+ auth_date: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
2299
+ hash: z.ZodString;
2300
+ first_name: z.ZodOptional<z.ZodString>;
2301
+ last_name: z.ZodOptional<z.ZodString>;
2302
+ username: z.ZodOptional<z.ZodString>;
2303
+ photo_url: z.ZodOptional<z.ZodString>;
2304
+ }, "strip", z.ZodTypeAny, {
2305
+ id: string | number;
2306
+ auth_date: string | number;
2307
+ hash: string;
2308
+ first_name?: string | undefined;
2309
+ last_name?: string | undefined;
2310
+ username?: string | undefined;
2311
+ photo_url?: string | undefined;
2312
+ }, {
2313
+ id: string | number;
2314
+ auth_date: string | number;
2315
+ hash: string;
2316
+ first_name?: string | undefined;
2317
+ last_name?: string | undefined;
2318
+ username?: string | undefined;
2319
+ photo_url?: string | undefined;
2320
+ }>;
2321
+ type Request = z.infer<typeof RequestSchema>;
2322
+ const ResponseSchema: z.ZodObject<{
2323
+ provider: z.ZodEnum<["telegram", "google"]>;
2324
+ providerUserId: z.ZodString;
2325
+ displayName: z.ZodNullable<z.ZodString>;
2326
+ linkedAt: z.ZodString;
2327
+ }, "strip", z.ZodTypeAny, {
2328
+ displayName: string | null;
2329
+ provider: "telegram" | "google";
2330
+ providerUserId: string;
2331
+ linkedAt: string;
2332
+ }, {
2333
+ displayName: string | null;
2334
+ provider: "telegram" | "google";
2335
+ providerUserId: string;
2336
+ linkedAt: string;
2337
+ }>;
2338
+ type Response = z.infer<typeof ResponseSchema>;
2339
+ }
2340
+ declare namespace LinkGoogleCommand {
2341
+ const endpointDetails: EndpointDetails;
2342
+ const RequestSchema: z.ZodObject<{
2343
+ idToken: z.ZodString;
2344
+ }, "strip", z.ZodTypeAny, {
2345
+ idToken: string;
2346
+ }, {
2347
+ idToken: string;
2348
+ }>;
2349
+ type Request = z.infer<typeof RequestSchema>;
2350
+ const ResponseSchema: z.ZodObject<{
2351
+ provider: z.ZodEnum<["telegram", "google"]>;
2352
+ providerUserId: z.ZodString;
2353
+ displayName: z.ZodNullable<z.ZodString>;
2354
+ linkedAt: z.ZodString;
2355
+ }, "strip", z.ZodTypeAny, {
2356
+ displayName: string | null;
2357
+ provider: "telegram" | "google";
2358
+ providerUserId: string;
2359
+ linkedAt: string;
2360
+ }, {
2361
+ displayName: string | null;
2362
+ provider: "telegram" | "google";
2363
+ providerUserId: string;
2364
+ linkedAt: string;
2365
+ }>;
2366
+ type Response = z.infer<typeof ResponseSchema>;
2367
+ }
2368
+ declare namespace UnlinkAccountCommand {
2369
+ const endpointDetails: EndpointDetails;
2370
+ const ParamsSchema: z.ZodObject<{
2371
+ provider: z.ZodEnum<["telegram", "google"]>;
2372
+ }, "strip", z.ZodTypeAny, {
2373
+ provider: "telegram" | "google";
2374
+ }, {
2375
+ provider: "telegram" | "google";
2376
+ }>;
2377
+ type Params = z.infer<typeof ParamsSchema>;
2378
+ const ResponseSchema: z.ZodVoid;
2379
+ type Response = z.infer<typeof ResponseSchema>;
2380
+ }
2381
+
2382
+ declare const REST_API: {
2383
+ readonly AUTH: {
2384
+ readonly REGISTER: "/auth/register";
2385
+ readonly LOGIN: "/auth/login";
2386
+ readonly LOGOUT: "/auth/logout";
2387
+ readonly ME: "/auth/me";
2388
+ readonly TOTP_SETUP: "/auth/totp/setup";
2389
+ readonly TOTP_CONFIRM: "/auth/totp/confirm";
2390
+ };
2391
+ readonly WALLET: {
2392
+ readonly OVERVIEW: "/wallet";
2393
+ readonly TRANSACTIONS: "/wallet/transactions";
2394
+ readonly DEPOSIT_ADDRESS: "/wallet/deposit-address";
2395
+ };
2396
+ readonly TOKEN: {
2397
+ readonly PRICE: "/token/price";
2398
+ readonly CHART: "/token/chart";
2399
+ };
2400
+ readonly SWAP: {
2401
+ readonly EXECUTE: "/swap";
2402
+ };
2403
+ readonly PARTNERS: {
2404
+ readonly OVERVIEW: "/partners";
2405
+ };
2406
+ readonly RANKS: {
2407
+ readonly LIST: "/ranks";
2408
+ };
2409
+ readonly EARNINGS: {
2410
+ readonly OVERVIEW: "/earnings";
2411
+ };
2412
+ readonly WITHDRAWALS: {
2413
+ readonly REQUEST: "/withdrawals";
2414
+ readonly LIST: "/withdrawals";
2415
+ readonly CANCEL: "/withdrawals/:id/cancel";
2416
+ readonly CONFIRM: "/withdrawals/:id/confirm";
2417
+ };
2418
+ readonly SETTINGS: {
2419
+ readonly EMAIL_REQUEST: "/settings/email/request";
2420
+ readonly EMAIL_CONFIRM: "/settings/email/confirm";
2421
+ readonly TOTP_DISABLE: "/auth/totp/disable";
2422
+ readonly PROFILE: "/settings/profile";
2423
+ readonly AVATAR_UPLOAD_URL: "/settings/avatar/upload-url";
2424
+ readonly PREFERENCES: "/settings";
2425
+ readonly LINKS: "/settings/links";
2426
+ readonly LINK_TELEGRAM: "/settings/link/telegram";
2427
+ readonly LINK_GOOGLE: "/settings/link/google";
2428
+ readonly UNLINK: "/settings/link/:provider";
2429
+ };
2430
+ readonly BONUS: {
2431
+ readonly DAILY: "/bonus/daily";
2432
+ readonly DAILY_CLAIM: "/bonus/daily/claim";
2433
+ };
2434
+ readonly LEADERBOARD: {
2435
+ readonly OVERVIEW: "/leaderboard";
2436
+ };
2437
+ readonly INCOME: {
2438
+ readonly OVERVIEW: "/income";
2439
+ };
2440
+ readonly NOTIFICATIONS: {
2441
+ readonly LIST: "/notifications";
2442
+ readonly READ: "/notifications/read";
2443
+ };
2444
+ };
2445
+ declare const API_PREFIX = "/api";
2446
+ declare const API_VERSION = "v1";
2447
+
2448
+ export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, CancelWithdrawalCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, 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, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, 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, ListNotificationsCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, PositiveMoneyStringSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, SwapCommand, type SwapSide, SwapSideSchema, TOKEN_ASSET, 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 };