@xoxno/sdk-js 1.0.115 → 1.0.116

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,2575 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ import { xdr } from '@stellar/stellar-sdk';
4
+ import { ActivePerpAssetCtx, ActiveSpotAssetCtx, AggregatorSwapDto, AirdropDtoHydrated, AnalyticsMarketplaceUniqueUsers, AnalyticsVolumeDto, AnsweredQuestionWithDetails, AssetConfigRawDto, BageQRData, BarDto, BorrowArgs, ChatMessageDocHydrated, ChatMessagePaginated, CheckLikeStatusResponseDto, CollectionHoldersDto, CollectionHoldersExportDto, CollectionMintProfileDocHydrated, CollectionMintProfileDocWithStages, CollectionMintProfileFilter, CollectionMintProfilePaginated, CollectionOffersFilter, CollectionOwnerDto, CollectionPinnedStatusDto, CollectionProfileDoc, CollectionProfileEditDto, CollectionProfileFilter, CollectionProfilePaginated, CollectionRanksDTO, CollectionStatsDocHydrated, CollectionStatsFilter, CollectionStatsPaginated, CreatorDetailsDto, CreatorMarketingNotificationDto, CreatorProfileDoc, CreatorProfileDto, CreatorProfileEditDto, DelegationDataOutput, DiscountCodeValidationResponse, EventAcceptInvitation, EventCheckInQR, EventClaimInvitationDto, EventCountGroupedByCountry, EventGuestApproveDto, EventGuestExport, EventGuestFilter, EventGuestProfile, EventGuestProfileQuery, EventGuestRegistrationDto, EventInvitation, EventInvitationCreateDto, EventInvitationDoc, EventInvitationFilter, EventInvitationQuery, EventNotificationDto, EventProfile, EventProfileCreateDto, EventProfileEditDto, EventProfileFilter, EventProfileQuery, EventQuestionCreateDto, EventQuestionDoc, EventQuestionEditDto, EventReferralConfigCreateDto, EventReferralConfigDoc, EventReferralConfigEditDto, EventReferralConfigFilter, EventReferralConfigPaginated, EventReferralCreateDto, EventReferralDoc, EventReferralEditDto, EventReferralFilter, EventReferralPaginated, EventRegistrationResponseDto, EventStageProfileCreateDto, EventStageProfileDoc, EventStageProfileEditDto, EventTicketProfileCreateDto, EventTicketProfileDoc, EventTicketProfileEditDto, EventUserRole, EventUserRoleCreateDto, EventUserRoleDoc, EventUserRoleEditDto, EventVoucherCreateDto, EventVoucherDoc, EventVoucherEditDto, EventVoucherFilter, EventVoucherQuery, FilterQueryDto, FlashLoanArgs, FloorPriceDto, FollowCollectionDto, GlobalAnalyticsOverviewResponseDto, GlobalConversationSummaryDto, GlobalOfferPaginated, GlobalSearchResourcesPaginated, InterestRateModelDto, InventorySummaryDtoHydrated, L2BookPerpResponseSingle, LendingAccountPnl, LendingAccountProfile, LendingAccountSummary, LendingEModeCategoryProfile, LendingIndexesDto, LendingMarketAnalyticsGraph, LendingMarketAverageGraph, LendingMarketProfile, LendingMarketProfileFilter, LendingMarketProfileQuery, LendingNftAttributes, LendingOverallStats, LendingPositionStatus, LendingTokenPriceDto, LikeNftDto, LiquidateArgs, ListingsResponseDto, LoginAccessDto, LoginRequestDto, ManualCheckInDto, MarketOracleConfigInputDto, MarketParamsRawDto, MobileDeviceDoc, MobileDeviceRegistrationDto, MultiplyArgs, NativeWalletDto, NftActivityDocHydrated, NftActivityFilter, NftActivityPaginated, NftDocFilter, NftDocFull, NftDocHydrated, NftOfferDocFilter, NftOfferDocHydrated, NftOfferPaginated, NftPaginated, NotificationDoc, NotificationPaginated, NotificationPreferencesPostDto, NotificationSuccessResponseDto, OracleSourceConfigInputDto, OwnedCollectionsDto, OwnedServicesDto, PerpCoinExtended, PerpCoinExtendedSlim, PerpEvent, PerpLegalCheck, PerpOrderResponse, PerpSpotCoinExtended, PerpSpotCoinExtendedSlim, PinnedCollectionDto, PositionLimitsDto, ProtocolAprType, ProviderDto, PublicOnly, PushNotificationCountResponse, PushNotificationDoc, PushNotificationResponse, RateType, RepayArgs, RepayDebtWithCollateralArgs, SendChatMessageDto, SetEmailDto, SetPhoneDto, ShareholderDto, SignAcceptGlobalOfferDto, SignDataDto, SignMintDto, SignWithdrawDto, SoroswapQuoteResponseDto, StakingCreatorDoc, StakingEditDto, StakingExploreDtoHydrated, StakingPoolDoc, StakingSummary, StakingUserPoolNfts, StellarAggregatorQuoteRequestDto, StellarAggregatorQuoteResponseDto, StellarChallengeResponseDto, StellarLendingDecodedEvent, StellarTokenKind, SuccessDto, SuccessWithMessageDto, SupplyArgs, SwapCollateralArgs, SwapDebtArgs, SwapHopDto, SwapPathDto, SwapVenue, SwitchWalletDto, SymbolInfoDto, TicketCalculationRequestDto, TicketPricesResponse, TicketValidationResult, TokenDataDocHydrated, TradesPerpResponseSingle, TradesilvaniaSignature, TraitInfo, TransactionCostData, TransactionCreate, TransactionDetailed, TransactionProcessStatus, TransactionSendResult, UserAnalyticsDto, UserBillingDetails, UserBlockPaginated, UserConversationPaginated, UserFavoriteResponseDto, UserInfo, UserNetworkInfoDto, UserProfileDoc, UserProfileDto, UserProfileEditDto, UserSettingsDoc, UserStakingSummaryDto, UserStatsDto, UserTokenInventoryResponseDto, ValueFp, VerifyEmailDto, VolumeGraph, Web2UserDoc, Web2UserShardsDto, Web2WalletDto, WebSocketTokenDto, WithdrawArgs, XoxnoInfo, XoxnoLiquidStatsDto } from '@xoxno/types';
5
+ import { ActivityChain, KustoOrderDirection, LendingPositionOrderByColumn, OfferType, StakingStatus, TokenCategory, UserStatsOrderByColumn } from '@xoxno/types/enums';
6
+
7
+ export type SafeHeaders = Record<string, string> & {
8
+ authorization?: never;
9
+ Authorization?: never;
10
+ };
11
+ export type OurRequestInit = Omit<RequestInit, "body" | "headers"> & {
12
+ headers?: SafeHeaders;
13
+ debug?: boolean;
14
+ };
15
+ export declare enum Chain {
16
+ MAINNET = "1",
17
+ DEVNET = "D"
18
+ }
19
+ export declare class XOXNOClient {
20
+ apiUrl: string;
21
+ chain: Chain;
22
+ init: OurRequestInit;
23
+ config: {
24
+ mediaUrl: string;
25
+ gatewayUrl: string;
26
+ XO_SC: string;
27
+ FM_SC: string;
28
+ DR_SC: string;
29
+ KG_SC: string;
30
+ Staking_SC: string;
31
+ Manager_SC: string;
32
+ P2P_SC: string;
33
+ };
34
+ constructor({ chain, apiUrl, ...init }?: {
35
+ chain?: Chain;
36
+ apiUrl?: string;
37
+ } & OurRequestInit);
38
+ fetchWithTimeout: <T>(path: string, { params, ...options }?: RequestInit & {
39
+ debug?: boolean;
40
+ params?: Record<string, any>;
41
+ }) => Promise<T>;
42
+ }
43
+ export declare const isValidCollectionTicker: (ticker: string) => boolean;
44
+ export declare const isValidNftIdentifier: (identifier: string) => boolean;
45
+ declare const endpoints: {
46
+ readonly "/liquid/xoxno/rate": {
47
+ readonly input: {};
48
+ readonly output: RateType;
49
+ };
50
+ readonly "/liquid/xoxno/liquid-supply": {
51
+ readonly input: {};
52
+ readonly output: string;
53
+ };
54
+ readonly "/liquid/xoxno/staked": {
55
+ readonly input: {};
56
+ readonly output: string;
57
+ };
58
+ readonly "/user/login": {
59
+ readonly input: {};
60
+ readonly output: {};
61
+ readonly POST: {
62
+ readonly input: {};
63
+ readonly output: LoginAccessDto;
64
+ readonly body: LoginRequestDto;
65
+ };
66
+ };
67
+ readonly "/user/:address/network-account": {
68
+ readonly input: {};
69
+ readonly output: UserNetworkInfoDto;
70
+ };
71
+ readonly "/user/:address/token-inventory": {
72
+ readonly input: {};
73
+ readonly output: UserTokenInventoryResponseDto;
74
+ };
75
+ readonly "/user/network-account": {
76
+ readonly input: {};
77
+ readonly output: {};
78
+ readonly POST: {
79
+ readonly input: {};
80
+ readonly output: UserNetworkInfoDto[];
81
+ readonly body: string[];
82
+ };
83
+ };
84
+ readonly "/user/me/profile": {
85
+ readonly input: {};
86
+ readonly output: UserProfileDoc;
87
+ readonly securityMode: "requiredAny";
88
+ };
89
+ readonly "/user/:address/profile": {
90
+ readonly input: {};
91
+ readonly output: UserProfileDoc;
92
+ readonly PATCH: {
93
+ readonly input: {};
94
+ readonly output: UserProfileDoc;
95
+ readonly body: UserProfileEditDto;
96
+ readonly securityMode: "requiredAny";
97
+ };
98
+ };
99
+ readonly "/user/me": {
100
+ readonly input: {};
101
+ readonly output: UserProfileDto;
102
+ readonly securityMode: "requiredAny";
103
+ };
104
+ readonly "/user/me/settings": {
105
+ readonly input: {
106
+ unsubscribeToken: string;
107
+ };
108
+ readonly output: UserSettingsDoc;
109
+ readonly securityMode: "optionalAny";
110
+ };
111
+ readonly "/user/me/settings/notification-preferences": {
112
+ readonly input: {};
113
+ readonly output: {};
114
+ readonly PATCH: {
115
+ readonly input: {
116
+ unsubscribeToken?: string;
117
+ };
118
+ readonly output: UserSettingsDoc;
119
+ readonly body: NotificationPreferencesPostDto;
120
+ readonly securityMode: "optionalAny";
121
+ };
122
+ };
123
+ readonly "/user/me/settings/email": {
124
+ readonly input: {};
125
+ readonly output: {};
126
+ readonly PATCH: {
127
+ readonly input: {};
128
+ readonly output: UserSettingsDoc;
129
+ readonly body: SetEmailDto;
130
+ readonly securityMode: "requiredAny";
131
+ };
132
+ readonly DELETE: {
133
+ readonly input: {};
134
+ readonly output: UserSettingsDoc;
135
+ readonly body: {};
136
+ readonly securityMode: "requiredJwt";
137
+ };
138
+ };
139
+ readonly "/user/me/settings/phone": {
140
+ readonly input: {};
141
+ readonly output: {};
142
+ readonly PATCH: {
143
+ readonly input: {};
144
+ readonly output: UserSettingsDoc;
145
+ readonly body: SetPhoneDto;
146
+ readonly securityMode: "requiredAny";
147
+ };
148
+ };
149
+ readonly "/user/me/settings/billing": {
150
+ readonly input: {};
151
+ readonly output: {};
152
+ readonly PATCH: {
153
+ readonly input: {};
154
+ readonly output: UserSettingsDoc;
155
+ readonly body: UserBillingDetails;
156
+ readonly securityMode: "requiredAny";
157
+ };
158
+ };
159
+ readonly "/user/me/settings/verify-email": {
160
+ readonly input: {};
161
+ readonly output: {};
162
+ readonly POST: {
163
+ readonly input: {};
164
+ readonly output: UserSettingsDoc;
165
+ readonly body: VerifyEmailDto;
166
+ readonly securityMode: "requiredAny";
167
+ };
168
+ };
169
+ readonly "/user/buy/signature": {
170
+ readonly input: {};
171
+ readonly output: {};
172
+ readonly POST: {
173
+ readonly input: {};
174
+ readonly output: TradesilvaniaSignature;
175
+ readonly body: Record<string, string>;
176
+ readonly securityMode: "requiredAny";
177
+ };
178
+ };
179
+ readonly "/user/:address/upload-picture": {
180
+ readonly input: {};
181
+ readonly output: {};
182
+ readonly PUT: {
183
+ readonly input: {
184
+ referer?: string;
185
+ };
186
+ readonly output: UserProfileDoc;
187
+ readonly body: FormData;
188
+ readonly securityMode: "requiredAny";
189
+ };
190
+ };
191
+ readonly "/user/:address/upload-banner": {
192
+ readonly input: {};
193
+ readonly output: {};
194
+ readonly PUT: {
195
+ readonly input: {};
196
+ readonly output: UserProfileDoc;
197
+ readonly body: FormData;
198
+ readonly securityMode: "requiredAny";
199
+ };
200
+ };
201
+ readonly "/user/:address/reset-picture": {
202
+ readonly input: {};
203
+ readonly output: {};
204
+ readonly PUT: {
205
+ readonly input: {};
206
+ readonly output: UserProfileDoc;
207
+ readonly body: {};
208
+ readonly securityMode: "requiredAny";
209
+ };
210
+ };
211
+ readonly "/user/:address/reset-banner": {
212
+ readonly input: {};
213
+ readonly output: {};
214
+ readonly PUT: {
215
+ readonly input: {};
216
+ readonly output: UserProfileDoc;
217
+ readonly body: {};
218
+ readonly securityMode: "requiredAny";
219
+ };
220
+ };
221
+ readonly "/user/:tag/creator/is-registered": {
222
+ readonly input: {};
223
+ readonly output: SuccessDto;
224
+ };
225
+ readonly "/user/:address/creator/profile": {
226
+ readonly input: {};
227
+ readonly output: CreatorProfileDto;
228
+ readonly PATCH: {
229
+ readonly input: {};
230
+ readonly output: CreatorProfileDoc;
231
+ readonly body: CreatorProfileEditDto;
232
+ readonly securityMode: "requiredAny";
233
+ };
234
+ };
235
+ readonly "/user/:address/creator/upload-picture": {
236
+ readonly input: {};
237
+ readonly output: {};
238
+ readonly PUT: {
239
+ readonly input: {};
240
+ readonly output: CreatorProfileDoc;
241
+ readonly body: FormData;
242
+ readonly securityMode: "requiredAny";
243
+ };
244
+ };
245
+ readonly "/user/:address/creator/upload-banner": {
246
+ readonly input: {};
247
+ readonly output: {};
248
+ readonly PUT: {
249
+ readonly input: {};
250
+ readonly output: CreatorProfileDoc;
251
+ readonly body: FormData;
252
+ readonly securityMode: "requiredAny";
253
+ };
254
+ };
255
+ readonly "/user/:address/creator/reset-picture": {
256
+ readonly input: {};
257
+ readonly output: {};
258
+ readonly PUT: {
259
+ readonly input: {};
260
+ readonly output: CreatorProfileDoc;
261
+ readonly body: {};
262
+ readonly securityMode: "requiredAny";
263
+ };
264
+ };
265
+ readonly "/user/:address/creator/reset-banner": {
266
+ readonly input: {};
267
+ readonly output: {};
268
+ readonly PUT: {
269
+ readonly input: {};
270
+ readonly output: CreatorProfileDoc;
271
+ readonly body: {};
272
+ readonly securityMode: "requiredAny";
273
+ };
274
+ };
275
+ readonly "/user/:address/favorite/collections": {
276
+ readonly input: {
277
+ filter: PublicOnly<CollectionStatsFilter>;
278
+ };
279
+ readonly output: CollectionStatsPaginated;
280
+ };
281
+ readonly "/user/favorite/:favoriteId": {
282
+ readonly input: {};
283
+ readonly output: CheckLikeStatusResponseDto;
284
+ readonly securityMode: "requiredAny";
285
+ };
286
+ readonly "/user/:address/follow": {
287
+ readonly input: {};
288
+ readonly output: {};
289
+ readonly POST: {
290
+ readonly input: {};
291
+ readonly output: UserFavoriteResponseDto;
292
+ readonly body: {};
293
+ readonly securityMode: "requiredAny";
294
+ };
295
+ };
296
+ readonly "/user/:address/favorite/users": {
297
+ readonly input: {};
298
+ readonly output: string[];
299
+ };
300
+ readonly "/tokens": {
301
+ readonly input: {
302
+ identifier?: string[];
303
+ category?: TokenCategory[];
304
+ chain?: ActivityChain[];
305
+ };
306
+ readonly output: TokenDataDocHydrated[];
307
+ };
308
+ readonly "/tokens/swap": {
309
+ readonly input: {};
310
+ readonly output: TokenDataDocHydrated[];
311
+ };
312
+ readonly "/stellar/tokens": {
313
+ readonly input: {
314
+ network?: string[];
315
+ };
316
+ readonly output: TokenDataDocHydrated[];
317
+ };
318
+ readonly "/tokens/restricted": {
319
+ readonly input: {};
320
+ readonly output: string[];
321
+ };
322
+ readonly "/tokens/usd-price": {
323
+ readonly input: {
324
+ identifier?: string[];
325
+ cache?: boolean;
326
+ };
327
+ readonly output: Record<string, number>;
328
+ };
329
+ readonly "/tokens/egld/fiat-price": {
330
+ readonly input: {
331
+ value?: number;
332
+ fiatCurrencies?: string[];
333
+ };
334
+ readonly output: Record<string, number>;
335
+ };
336
+ readonly "/tokens/xoxno/info": {
337
+ readonly input: {};
338
+ readonly output: XoxnoInfo;
339
+ };
340
+ readonly "/liquid/xoxno/stats": {
341
+ readonly input: {};
342
+ readonly output: XoxnoLiquidStatsDto;
343
+ };
344
+ readonly "/liquid/egld/stats": {
345
+ readonly input: {};
346
+ readonly output: XoxnoLiquidStatsDto;
347
+ };
348
+ readonly "/liquid/sui/stats": {
349
+ readonly input: {};
350
+ readonly output: XoxnoLiquidStatsDto;
351
+ };
352
+ readonly "/analytics/marketplace-unique-users": {
353
+ readonly input: {
354
+ before: string;
355
+ after: string;
356
+ bin: string;
357
+ };
358
+ readonly output: AnalyticsMarketplaceUniqueUsers[];
359
+ };
360
+ readonly "/liquid/egld/rate": {
361
+ readonly input: {};
362
+ readonly output: RateType;
363
+ };
364
+ readonly "/liquid/egld/liquid-supply": {
365
+ readonly input: {};
366
+ readonly output: string;
367
+ };
368
+ readonly "/liquid/egld/staked": {
369
+ readonly input: {};
370
+ readonly output: string;
371
+ };
372
+ readonly "/liquid/egld/pending-fees": {
373
+ readonly input: {};
374
+ readonly output: string;
375
+ };
376
+ readonly "/liquid/egld/pending-undelegate": {
377
+ readonly input: {};
378
+ readonly output: string;
379
+ };
380
+ readonly "/liquid/egld/pending-delegate": {
381
+ readonly input: {};
382
+ readonly output: string;
383
+ };
384
+ readonly "/liquid/egld/execute-delegate": {
385
+ readonly input: {};
386
+ readonly output: string;
387
+ };
388
+ readonly "/liquid/egld/execute-undelegate": {
389
+ readonly input: {};
390
+ readonly output: string;
391
+ };
392
+ readonly "/liquid/egld/protocol-apr": {
393
+ readonly input: {};
394
+ readonly output: ProtocolAprType;
395
+ };
396
+ readonly "/liquid/egld/providers": {
397
+ readonly input: {};
398
+ readonly output: ProviderDto[];
399
+ };
400
+ readonly "/user/:address/delegation": {
401
+ readonly input: {};
402
+ readonly output: DelegationDataOutput[];
403
+ };
404
+ readonly "/lending/market/:token/profile": {
405
+ readonly input: {};
406
+ readonly output: LendingMarketProfile;
407
+ };
408
+ readonly "/lending/market/query": {
409
+ readonly input: {
410
+ filter: PublicOnly<LendingMarketProfileFilter>;
411
+ };
412
+ readonly output: LendingMarketProfileQuery;
413
+ };
414
+ readonly "/user/lending/:address": {
415
+ readonly input: {
416
+ token?: string;
417
+ };
418
+ readonly output: LendingAccountProfile[];
419
+ };
420
+ readonly "/lending/market/indexes": {
421
+ readonly input: {};
422
+ readonly output: Record<string, LendingIndexesDto>;
423
+ };
424
+ readonly "/user/lending/position/:identifier": {
425
+ readonly input: {};
426
+ readonly output: LendingAccountProfile[];
427
+ };
428
+ readonly "/lending/pnl": {
429
+ readonly input: {
430
+ identifiers: string[];
431
+ };
432
+ readonly output: LendingAccountPnl[];
433
+ };
434
+ readonly "/user/lending/pnl/:address": {
435
+ readonly input: {};
436
+ readonly output: LendingAccountPnl[];
437
+ };
438
+ readonly "/user/lending/summary/:identifier": {
439
+ readonly input: {};
440
+ readonly output: LendingAccountSummary;
441
+ };
442
+ readonly "/user/lending/image/:nonce": {
443
+ readonly input: {
444
+ isStatic: boolean;
445
+ chain?: ActivityChain[];
446
+ };
447
+ readonly output: string;
448
+ };
449
+ readonly "/lending/market/emode-categories": {
450
+ readonly input: {
451
+ categoryIds?: string[];
452
+ };
453
+ readonly output: LendingEModeCategoryProfile[];
454
+ };
455
+ readonly "/lending/market/:token/emode-categories": {
456
+ readonly input: {};
457
+ readonly output: LendingEModeCategoryProfile[];
458
+ };
459
+ readonly "/lending/market/:token/analytics": {
460
+ readonly input: {
461
+ startTime?: string;
462
+ endTime?: string;
463
+ bin?: string;
464
+ };
465
+ readonly output: LendingMarketAnalyticsGraph[];
466
+ };
467
+ readonly "/lending/market/:token/average": {
468
+ readonly input: {};
469
+ readonly output: LendingMarketAverageGraph[];
470
+ };
471
+ readonly "/lending/leaderboard": {
472
+ readonly input: {
473
+ skip?: number;
474
+ top?: number;
475
+ orderBy?: LendingPositionOrderByColumn;
476
+ orderDirection?: KustoOrderDirection;
477
+ token?: string;
478
+ chain?: ActivityChain[];
479
+ };
480
+ readonly output: LendingPositionStatus[];
481
+ };
482
+ readonly "/lending/leaderboard/liquidate": {
483
+ readonly input: {};
484
+ readonly output: LendingPositionStatus[];
485
+ };
486
+ readonly "/lending/leaderboard/clean-bad-debt": {
487
+ readonly input: {};
488
+ readonly output: LendingPositionStatus[];
489
+ };
490
+ readonly "/lending/stats": {
491
+ readonly input: {};
492
+ readonly output: LendingOverallStats;
493
+ };
494
+ readonly "/lending/market/prices": {
495
+ readonly input: {
496
+ returnAsUsd?: boolean;
497
+ };
498
+ readonly output: Record<string, number>;
499
+ };
500
+ readonly "/nft/query": {
501
+ readonly input: {
502
+ filter: PublicOnly<NftDocFilter>;
503
+ continuationToken?: string;
504
+ };
505
+ readonly output: NftPaginated & {
506
+ continuationToken?: string;
507
+ };
508
+ };
509
+ readonly "/nft/:identifier/like": {
510
+ readonly input: {};
511
+ readonly output: {};
512
+ readonly POST: {
513
+ readonly input: {};
514
+ readonly output: LikeNftDto;
515
+ readonly body: {};
516
+ readonly securityMode: "requiredAny";
517
+ };
518
+ };
519
+ readonly "/user/:address/inventory-summary": {
520
+ readonly input: {
521
+ activeAuction?: boolean;
522
+ };
523
+ readonly output: InventorySummaryDtoHydrated[];
524
+ };
525
+ readonly "/user/:address/offers": {
526
+ readonly input: {
527
+ skip?: number;
528
+ top?: number;
529
+ continuationToken?: string;
530
+ type?: OfferType;
531
+ };
532
+ readonly output: NftOfferPaginated & {
533
+ continuationToken?: string;
534
+ };
535
+ };
536
+ readonly "/nft/offer/query": {
537
+ readonly input: {
538
+ filter: PublicOnly<NftOfferDocFilter>;
539
+ continuationToken?: string;
540
+ };
541
+ readonly output: NftOfferPaginated & {
542
+ continuationToken?: string;
543
+ };
544
+ };
545
+ readonly "/nft/offer/:identifier": {
546
+ readonly input: {};
547
+ readonly output: NftOfferDocHydrated[];
548
+ };
549
+ readonly "/user/:address/favorite/nfts": {
550
+ readonly input: {
551
+ skip?: number;
552
+ top?: number;
553
+ continuationToken?: string;
554
+ };
555
+ readonly output: NftPaginated & {
556
+ continuationToken?: string;
557
+ };
558
+ };
559
+ readonly "/collection/:collection/attributes": {
560
+ readonly input: {};
561
+ readonly output: Record<string, ValueFp & Record<string, TraitInfo>>;
562
+ };
563
+ readonly "/nft/:identifier/offers": {
564
+ readonly input: {
565
+ skip?: number;
566
+ top?: number;
567
+ continuationToken?: string;
568
+ };
569
+ readonly output: NftOfferPaginated & {
570
+ continuationToken?: string;
571
+ };
572
+ };
573
+ readonly "/collection/:collection/ranks": {
574
+ readonly input: {};
575
+ readonly output: CollectionRanksDTO[];
576
+ };
577
+ readonly "/collection/:collection/listings": {
578
+ readonly input: {};
579
+ readonly output: ListingsResponseDto;
580
+ };
581
+ readonly "/nft/pinned": {
582
+ readonly input: {
583
+ chain: ActivityChain[];
584
+ };
585
+ readonly output: NftDocHydrated[];
586
+ };
587
+ readonly "/nft/sign-withdraw": {
588
+ readonly input: {};
589
+ readonly output: {};
590
+ readonly POST: {
591
+ readonly input: {};
592
+ readonly output: SignDataDto;
593
+ readonly body: SignWithdrawDto;
594
+ readonly securityMode: "requiredAny";
595
+ };
596
+ };
597
+ readonly "/collection/:collection/sign-offer": {
598
+ readonly input: {};
599
+ readonly output: {};
600
+ readonly POST: {
601
+ readonly input: {};
602
+ readonly output: SignDataDto;
603
+ readonly body: SignAcceptGlobalOfferDto;
604
+ readonly securityMode: "requiredAny";
605
+ };
606
+ };
607
+ readonly "/collection/:collection/sign-mint": {
608
+ readonly input: {};
609
+ readonly output: {};
610
+ readonly POST: {
611
+ readonly input: {};
612
+ readonly output: SignDataDto;
613
+ readonly body: SignMintDto;
614
+ readonly securityMode: "requiredAny";
615
+ };
616
+ };
617
+ readonly "/nft/:identifier": {
618
+ readonly input: {};
619
+ readonly output: NftDocFull;
620
+ };
621
+ readonly "/collection/:collection/profile": {
622
+ readonly input: {};
623
+ readonly output: CollectionProfileDoc;
624
+ readonly PATCH: {
625
+ readonly input: {};
626
+ readonly output: CollectionProfileDoc;
627
+ readonly body: CollectionProfileEditDto;
628
+ readonly securityMode: "requiredAny";
629
+ };
630
+ };
631
+ readonly "/collection/:collection/floor-price": {
632
+ readonly input: {
633
+ token?: string;
634
+ };
635
+ readonly output: FloorPriceDto;
636
+ };
637
+ readonly "/collection/floor-price": {
638
+ readonly input: {
639
+ collection?: string[];
640
+ };
641
+ readonly output: Record<string, number>;
642
+ };
643
+ readonly "/collection/pinned": {
644
+ readonly input: {
645
+ chain: ActivityChain[];
646
+ };
647
+ readonly output: PinnedCollectionDto[];
648
+ };
649
+ readonly "/collection/pinned-drops": {
650
+ readonly input: {
651
+ chain: ActivityChain[];
652
+ };
653
+ readonly output: CollectionMintProfileDocHydrated[];
654
+ };
655
+ readonly "/collection/:collection/pinned-drops": {
656
+ readonly input: {};
657
+ readonly output: CollectionPinnedStatusDto;
658
+ };
659
+ readonly "/collection/:collection/pinned": {
660
+ readonly input: {};
661
+ readonly output: CollectionPinnedStatusDto;
662
+ };
663
+ readonly "/collection/:collection/follow": {
664
+ readonly input: {};
665
+ readonly output: {};
666
+ readonly POST: {
667
+ readonly input: {};
668
+ readonly output: FollowCollectionDto;
669
+ readonly body: {};
670
+ readonly securityMode: "requiredAny";
671
+ };
672
+ };
673
+ readonly "/collection/query": {
674
+ readonly input: {
675
+ filter?: PublicOnly<CollectionProfileFilter>;
676
+ continuationToken?: string;
677
+ };
678
+ readonly output: CollectionProfilePaginated & {
679
+ continuationToken?: string;
680
+ };
681
+ };
682
+ readonly "/collection/drops/query": {
683
+ readonly input: {
684
+ filter?: PublicOnly<CollectionMintProfileFilter>;
685
+ continuationToken?: string;
686
+ };
687
+ readonly output: CollectionMintProfilePaginated & {
688
+ continuationToken?: string;
689
+ };
690
+ };
691
+ readonly "/collection/:collection/drop-info": {
692
+ readonly input: {};
693
+ readonly output: CollectionMintProfileDocWithStages;
694
+ readonly securityMode: "optionalAny";
695
+ };
696
+ readonly "/collection/:creatorTag/:collectionTag/drop-info": {
697
+ readonly input: {};
698
+ readonly output: CollectionMintProfileDocWithStages;
699
+ readonly securityMode: "optionalAny";
700
+ };
701
+ readonly "/collection/:collection/upload-picture": {
702
+ readonly input: {};
703
+ readonly output: {};
704
+ readonly PUT: {
705
+ readonly input: {};
706
+ readonly output: CollectionProfileDoc;
707
+ readonly body: FormData;
708
+ readonly securityMode: "requiredAny";
709
+ };
710
+ };
711
+ readonly "/collection/:collection/upload-banner": {
712
+ readonly input: {};
713
+ readonly output: {};
714
+ readonly PUT: {
715
+ readonly input: {};
716
+ readonly output: CollectionProfileDoc;
717
+ readonly body: FormData;
718
+ readonly securityMode: "requiredAny";
719
+ };
720
+ };
721
+ readonly "/collection/:collection/reset-picture": {
722
+ readonly input: {};
723
+ readonly output: {};
724
+ readonly PUT: {
725
+ readonly input: {};
726
+ readonly output: CollectionProfileDoc;
727
+ readonly body: {};
728
+ readonly securityMode: "requiredAny";
729
+ };
730
+ };
731
+ readonly "/collection/:collection/reset-banner": {
732
+ readonly input: {};
733
+ readonly output: {};
734
+ readonly PUT: {
735
+ readonly input: {};
736
+ readonly output: CollectionProfileDoc;
737
+ readonly body: {};
738
+ readonly securityMode: "requiredAny";
739
+ };
740
+ };
741
+ readonly "/collection/:collection/holders": {
742
+ readonly input: {};
743
+ readonly output: CollectionHoldersDto;
744
+ };
745
+ readonly "/collection/:collection/holders/export": {
746
+ readonly input: {};
747
+ readonly output: CollectionHoldersExportDto[];
748
+ };
749
+ readonly "/collection/:collection/owner": {
750
+ readonly input: {};
751
+ readonly output: CollectionOwnerDto;
752
+ };
753
+ readonly "/collection/:collection/stats": {
754
+ readonly input: {};
755
+ readonly output: CollectionStatsDocHydrated;
756
+ };
757
+ readonly "/collection/stats/query": {
758
+ readonly input: {
759
+ filter: PublicOnly<CollectionStatsFilter>;
760
+ continuationToken?: string;
761
+ };
762
+ readonly output: CollectionStatsPaginated & {
763
+ continuationToken?: string;
764
+ };
765
+ };
766
+ readonly "/collection/global-offer/query": {
767
+ readonly input: {
768
+ filter: PublicOnly<CollectionOffersFilter>;
769
+ continuationToken?: string;
770
+ };
771
+ readonly output: GlobalOfferPaginated & {
772
+ continuationToken?: string;
773
+ };
774
+ };
775
+ readonly "/user/:address/creator/listing": {
776
+ readonly input: {};
777
+ readonly output: CreatorDetailsDto;
778
+ };
779
+ readonly "/user/:address/creator/details": {
780
+ readonly input: {};
781
+ readonly output: CreatorDetailsDto;
782
+ };
783
+ readonly "/launchpad/:scAddress/shareholders/royalties": {
784
+ readonly input: {};
785
+ readonly output: ShareholderDto[];
786
+ };
787
+ readonly "/launchpad/:scAddress/shareholders/collection/:collectionTag": {
788
+ readonly input: {};
789
+ readonly output: ShareholderDto[];
790
+ };
791
+ readonly "/pool/:poolId/profile": {
792
+ readonly input: {};
793
+ readonly output: StakingSummary;
794
+ readonly PATCH: {
795
+ readonly input: {};
796
+ readonly output: StakingPoolDoc;
797
+ readonly body: StakingEditDto;
798
+ readonly securityMode: "requiredAny";
799
+ };
800
+ };
801
+ readonly "/pool/:poolId/whitelist": {
802
+ readonly input: {};
803
+ readonly output: NftDocHydrated[];
804
+ };
805
+ readonly "/pool/:poolId/upload-picture": {
806
+ readonly input: {};
807
+ readonly output: {};
808
+ readonly PUT: {
809
+ readonly input: {};
810
+ readonly output: StakingPoolDoc;
811
+ readonly body: FormData;
812
+ readonly securityMode: "requiredAny";
813
+ };
814
+ };
815
+ readonly "/user/:address/staking/available-pools": {
816
+ readonly input: {};
817
+ readonly output: StakingSummary[];
818
+ };
819
+ readonly "/user/:address/staking/owned-collections": {
820
+ readonly input: {};
821
+ readonly output: OwnedCollectionsDto;
822
+ };
823
+ readonly "/user/:address/staking/owned-pools": {
824
+ readonly input: {};
825
+ readonly output: StakingSummary[];
826
+ };
827
+ readonly "/user/:address/staking/summary": {
828
+ readonly input: {};
829
+ readonly output: UserStakingSummaryDto[];
830
+ };
831
+ readonly "/user/:address/staking/creator": {
832
+ readonly input: {};
833
+ readonly output: StakingCreatorDoc;
834
+ };
835
+ readonly "/user/:address/staking/collection/:collection": {
836
+ readonly input: {};
837
+ readonly output: StakingSummary[];
838
+ };
839
+ readonly "/user/:address/staking/pool/:poolId/nfts": {
840
+ readonly input: {
841
+ status?: StakingStatus;
842
+ };
843
+ readonly output: StakingUserPoolNfts;
844
+ };
845
+ readonly "/collection/:collection/staking/summary": {
846
+ readonly input: {};
847
+ readonly output: StakingSummary[];
848
+ readonly securityMode: "optionalAny";
849
+ };
850
+ readonly "/collection/:collection/staking/delegators": {
851
+ readonly input: {};
852
+ readonly output: string[];
853
+ };
854
+ readonly "/collection/staking/explore": {
855
+ readonly input: {};
856
+ readonly output: StakingExploreDtoHydrated[];
857
+ };
858
+ readonly "/user/:creatorTag/owned-services": {
859
+ readonly input: {};
860
+ readonly output: OwnedServicesDto;
861
+ };
862
+ readonly "/search": {
863
+ readonly input: {
864
+ filter: PublicOnly<FilterQueryDto>;
865
+ };
866
+ readonly output: GlobalSearchResourcesPaginated;
867
+ };
868
+ readonly "/user/search": {
869
+ readonly input: {
870
+ filter: PublicOnly<FilterQueryDto>;
871
+ };
872
+ readonly output: GlobalSearchResourcesPaginated;
873
+ };
874
+ readonly "/collection/search": {
875
+ readonly input: {
876
+ filter: PublicOnly<FilterQueryDto>;
877
+ };
878
+ readonly output: GlobalSearchResourcesPaginated;
879
+ };
880
+ readonly "/collection/drops/search": {
881
+ readonly input: {
882
+ filter: PublicOnly<FilterQueryDto>;
883
+ };
884
+ readonly output: CollectionMintProfilePaginated;
885
+ };
886
+ readonly "/nft/search/query": {
887
+ readonly input: {
888
+ filter: PublicOnly<NftDocFilter>;
889
+ };
890
+ readonly output: NftPaginated;
891
+ };
892
+ readonly "/lending/market-sc": {
893
+ readonly input: {};
894
+ readonly output: string[];
895
+ };
896
+ readonly "/lending/active-accounts": {
897
+ readonly input: {};
898
+ readonly output: number[];
899
+ };
900
+ readonly "/lending/account/:nonce/attributes": {
901
+ readonly input: {};
902
+ readonly output: LendingNftAttributes;
903
+ };
904
+ readonly "/lending/account/:nonce/positions": {
905
+ readonly input: {};
906
+ readonly output: LendingNftAttributes[];
907
+ };
908
+ readonly "/lending/market/:token/price/egld": {
909
+ readonly input: {};
910
+ readonly output: LendingTokenPriceDto;
911
+ };
912
+ readonly "/faucet": {
913
+ readonly input: {};
914
+ readonly output: {};
915
+ readonly POST: {
916
+ readonly input: {};
917
+ readonly output: SuccessDto;
918
+ readonly body: {};
919
+ readonly securityMode: "requiredAny";
920
+ };
921
+ };
922
+ readonly "/user/notifications": {
923
+ readonly input: {
924
+ skip?: number;
925
+ top?: number;
926
+ continuationToken?: string;
927
+ };
928
+ readonly output: NotificationPaginated & {
929
+ continuationToken?: string;
930
+ };
931
+ readonly securityMode: "requiredAny";
932
+ };
933
+ readonly "/user/notifications/unread-count": {
934
+ readonly input: {};
935
+ readonly output: PushNotificationCountResponse;
936
+ readonly securityMode: "requiredAny";
937
+ };
938
+ readonly "/user/notifications/clear": {
939
+ readonly input: {};
940
+ readonly output: {};
941
+ readonly DELETE: {
942
+ readonly input: {};
943
+ readonly output: SuccessDto;
944
+ readonly body: {};
945
+ readonly securityMode: "requiredAny";
946
+ };
947
+ };
948
+ readonly "/user/notifications/read": {
949
+ readonly input: {};
950
+ readonly output: {};
951
+ readonly PATCH: {
952
+ readonly input: {
953
+ id?: string;
954
+ };
955
+ readonly output: NotificationDoc | SuccessDto;
956
+ readonly body: {};
957
+ readonly securityMode: "requiredAny";
958
+ };
959
+ };
960
+ readonly "/mobile/device/register": {
961
+ readonly input: {};
962
+ readonly output: {};
963
+ readonly POST: {
964
+ readonly input: {};
965
+ readonly output: MobileDeviceDoc;
966
+ readonly body: MobileDeviceRegistrationDto;
967
+ readonly securityMode: "requiredWeb2";
968
+ };
969
+ };
970
+ readonly "/mobile/device/:deviceId": {
971
+ readonly input: {};
972
+ readonly output: MobileDeviceDoc;
973
+ readonly securityMode: "requiredWeb2";
974
+ readonly DELETE: {
975
+ readonly input: {};
976
+ readonly output: SuccessDto;
977
+ readonly body: {};
978
+ readonly securityMode: "requiredWeb2";
979
+ };
980
+ };
981
+ readonly "/mobile/history": {
982
+ readonly input: {
983
+ skip?: number;
984
+ top?: number;
985
+ continuationToken?: string;
986
+ };
987
+ readonly output: PushNotificationResponse & {
988
+ continuationToken?: string;
989
+ };
990
+ readonly securityMode: "requiredAny";
991
+ };
992
+ readonly "/mobile/history/unread-count": {
993
+ readonly input: {};
994
+ readonly output: PushNotificationCountResponse;
995
+ readonly securityMode: "requiredAny";
996
+ };
997
+ readonly "/mobile/history/:notificationId/read": {
998
+ readonly input: {};
999
+ readonly output: {};
1000
+ readonly PUT: {
1001
+ readonly input: {};
1002
+ readonly output: PushNotificationDoc;
1003
+ readonly body: {};
1004
+ readonly securityMode: "requiredAny";
1005
+ };
1006
+ };
1007
+ readonly "/mobile/history/read-all": {
1008
+ readonly input: {};
1009
+ readonly output: {};
1010
+ readonly PUT: {
1011
+ readonly input: {};
1012
+ readonly output: NotificationSuccessResponseDto;
1013
+ readonly body: {};
1014
+ readonly securityMode: "requiredAny";
1015
+ };
1016
+ };
1017
+ readonly "/mobile/history/clear-all": {
1018
+ readonly input: {};
1019
+ readonly output: {};
1020
+ readonly DELETE: {
1021
+ readonly input: {};
1022
+ readonly output: NotificationSuccessResponseDto;
1023
+ readonly body: {};
1024
+ readonly securityMode: "requiredAny";
1025
+ };
1026
+ };
1027
+ readonly "/mobile/history/clear-id/:notificationId": {
1028
+ readonly input: {};
1029
+ readonly output: {};
1030
+ readonly DELETE: {
1031
+ readonly input: {};
1032
+ readonly output: NotificationSuccessResponseDto;
1033
+ readonly body: {};
1034
+ readonly securityMode: "requiredAny";
1035
+ };
1036
+ };
1037
+ readonly "/eventNotifications/event/:eventId/update": {
1038
+ readonly input: {};
1039
+ readonly output: {};
1040
+ readonly POST: {
1041
+ readonly input: {};
1042
+ readonly output: NotificationSuccessResponseDto;
1043
+ readonly body: EventNotificationDto;
1044
+ readonly securityMode: "requiredAny";
1045
+ };
1046
+ };
1047
+ readonly "/eventNotifications/event/:eventId/reminder": {
1048
+ readonly input: {};
1049
+ readonly output: {};
1050
+ readonly POST: {
1051
+ readonly input: {};
1052
+ readonly output: NotificationSuccessResponseDto;
1053
+ readonly body: EventNotificationDto;
1054
+ readonly securityMode: "requiredAny";
1055
+ };
1056
+ };
1057
+ readonly "/eventNotifications/creator/marketing": {
1058
+ readonly input: {};
1059
+ readonly output: {};
1060
+ readonly POST: {
1061
+ readonly input: {};
1062
+ readonly output: NotificationSuccessResponseDto;
1063
+ readonly body: CreatorMarketingNotificationDto;
1064
+ readonly securityMode: "requiredAny";
1065
+ };
1066
+ };
1067
+ readonly "/eventNotifications/user/:userId/direct": {
1068
+ readonly input: {};
1069
+ readonly output: {};
1070
+ readonly POST: {
1071
+ readonly input: {};
1072
+ readonly output: NotificationSuccessResponseDto;
1073
+ readonly body: EventNotificationDto;
1074
+ readonly securityMode: "requiredAny";
1075
+ };
1076
+ };
1077
+ readonly "/user/stellar/challenge": {
1078
+ readonly input: {
1079
+ account: string;
1080
+ };
1081
+ readonly output: StellarChallengeResponseDto;
1082
+ };
1083
+ readonly "/user/native-token": {
1084
+ readonly input: {
1085
+ originalUrl?: string;
1086
+ extraInfo?: string;
1087
+ };
1088
+ readonly output: string;
1089
+ };
1090
+ readonly "/user/web2": {
1091
+ readonly input: {};
1092
+ readonly output: Web2UserDoc;
1093
+ readonly securityMode: "requiredWeb2";
1094
+ };
1095
+ readonly "/user/web2/session-cookie": {
1096
+ readonly input: {};
1097
+ readonly output: {};
1098
+ readonly POST: {
1099
+ readonly input: {};
1100
+ readonly output: SuccessWithMessageDto;
1101
+ readonly body: {};
1102
+ readonly securityMode: "requiredWeb2";
1103
+ };
1104
+ };
1105
+ readonly "/user/web2/wallet": {
1106
+ readonly input: {};
1107
+ readonly output: {};
1108
+ readonly POST: {
1109
+ readonly input: {};
1110
+ readonly output: Web2UserDoc;
1111
+ readonly body: NativeWalletDto;
1112
+ readonly securityMode: "requiredWeb2";
1113
+ };
1114
+ };
1115
+ readonly "/user/web2/wallet-switch": {
1116
+ readonly input: {};
1117
+ readonly output: {};
1118
+ readonly POST: {
1119
+ readonly input: {};
1120
+ readonly output: Web2UserDoc;
1121
+ readonly body: SwitchWalletDto;
1122
+ readonly securityMode: "requiredWeb2";
1123
+ };
1124
+ };
1125
+ readonly "/user/web2/wallet-link": {
1126
+ readonly input: {};
1127
+ readonly output: {};
1128
+ readonly POST: {
1129
+ readonly input: {};
1130
+ readonly output: Web2UserDoc;
1131
+ readonly body: Web2WalletDto;
1132
+ readonly securityMode: "requiredWeb2";
1133
+ };
1134
+ };
1135
+ readonly "/user/web2/:index/wallet-link": {
1136
+ readonly input: {};
1137
+ readonly output: {};
1138
+ readonly DELETE: {
1139
+ readonly input: {};
1140
+ readonly output: Web2UserDoc;
1141
+ readonly body: {};
1142
+ readonly securityMode: "requiredWeb2";
1143
+ };
1144
+ };
1145
+ readonly "/user/web2/shards": {
1146
+ readonly input: {};
1147
+ readonly output: Web2UserShardsDto;
1148
+ readonly securityMode: "requiredWeb2";
1149
+ };
1150
+ readonly "/activity/query": {
1151
+ readonly input: {
1152
+ filter: PublicOnly<NftActivityFilter>;
1153
+ continuationToken?: string;
1154
+ };
1155
+ readonly output: NftActivityPaginated & {
1156
+ continuationToken?: string;
1157
+ };
1158
+ };
1159
+ readonly "/activity/:identifier": {
1160
+ readonly input: {};
1161
+ readonly output: NftActivityDocHydrated;
1162
+ };
1163
+ readonly "/analytics/volume": {
1164
+ readonly input: {
1165
+ startTime?: string;
1166
+ endTime?: string;
1167
+ bin?: string;
1168
+ chain: ActivityChain[];
1169
+ };
1170
+ readonly output: VolumeGraph[];
1171
+ };
1172
+ readonly "/collection/:collection/analytics/volume": {
1173
+ readonly input: {
1174
+ startTime?: string;
1175
+ endTime?: string;
1176
+ bin?: string;
1177
+ };
1178
+ readonly output: AnalyticsVolumeDto[];
1179
+ };
1180
+ readonly "/user/:address/analytics/volume": {
1181
+ readonly input: {};
1182
+ readonly output: UserAnalyticsDto;
1183
+ };
1184
+ readonly "/analytics/overview": {
1185
+ readonly input: {
1186
+ chain: ActivityChain[];
1187
+ };
1188
+ readonly output: GlobalAnalyticsOverviewResponseDto;
1189
+ };
1190
+ readonly "/user/stats": {
1191
+ readonly input: {
1192
+ skip?: number;
1193
+ top?: number;
1194
+ orderBy?: UserStatsOrderByColumn;
1195
+ orderDirection?: KustoOrderDirection;
1196
+ };
1197
+ readonly output: UserStatsDto[];
1198
+ };
1199
+ readonly "/user/xoxno-drop": {
1200
+ readonly input: {
1201
+ skip?: number;
1202
+ top?: number;
1203
+ address?: string;
1204
+ };
1205
+ readonly output: AirdropDtoHydrated[];
1206
+ };
1207
+ readonly "/user/me/xoxno-drop": {
1208
+ readonly input: {};
1209
+ readonly output: AirdropDtoHydrated[];
1210
+ readonly securityMode: "requiredAny";
1211
+ };
1212
+ readonly "/transactions/:txHash": {
1213
+ readonly input: {
1214
+ withResults?: boolean;
1215
+ };
1216
+ readonly output: TransactionDetailed;
1217
+ };
1218
+ readonly "/transactions/:txHash/status": {
1219
+ readonly input: {};
1220
+ readonly output: TransactionProcessStatus;
1221
+ };
1222
+ readonly "/transaction/cost": {
1223
+ readonly input: {};
1224
+ readonly output: {};
1225
+ readonly POST: {
1226
+ readonly input: {};
1227
+ readonly output: TransactionCostData;
1228
+ readonly body: TransactionCreate;
1229
+ };
1230
+ };
1231
+ readonly "/transactions": {
1232
+ readonly input: {};
1233
+ readonly output: {};
1234
+ readonly POST: {
1235
+ readonly input: {};
1236
+ readonly output: TransactionSendResult;
1237
+ readonly body: TransactionCreate;
1238
+ };
1239
+ };
1240
+ readonly "/transactions/batch": {
1241
+ readonly input: {};
1242
+ readonly output: {};
1243
+ readonly POST: {
1244
+ readonly input: {
1245
+ isRelay?: boolean;
1246
+ };
1247
+ readonly output: TransactionSendResult[];
1248
+ readonly body: TransactionCreate[];
1249
+ };
1250
+ };
1251
+ readonly "/perp/exchange/acceptTerms": {
1252
+ readonly input: {};
1253
+ readonly output: {};
1254
+ readonly POST: {
1255
+ readonly input: {};
1256
+ readonly output: SuccessDto;
1257
+ readonly body: {};
1258
+ readonly securityMode: "requiredAny";
1259
+ };
1260
+ };
1261
+ readonly "/perp/exchange/sendAsset": {
1262
+ readonly input: {};
1263
+ readonly output: {};
1264
+ readonly POST: {
1265
+ readonly input: {};
1266
+ readonly output: SuccessDto;
1267
+ readonly body: {};
1268
+ readonly securityMode: "requiredAny";
1269
+ };
1270
+ };
1271
+ readonly "/perp/exchange/sendExternalAsset": {
1272
+ readonly input: {};
1273
+ readonly output: {};
1274
+ readonly POST: {
1275
+ readonly input: {};
1276
+ readonly output: SuccessDto;
1277
+ readonly body: {};
1278
+ readonly securityMode: "requiredAny";
1279
+ };
1280
+ };
1281
+ readonly "/perp/exchange/deposit": {
1282
+ readonly input: {};
1283
+ readonly output: {};
1284
+ readonly POST: {
1285
+ readonly input: {};
1286
+ readonly output: SuccessDto;
1287
+ readonly body: {};
1288
+ readonly securityMode: "requiredAny";
1289
+ };
1290
+ };
1291
+ readonly "/perp/exchange/withdraw": {
1292
+ readonly input: {};
1293
+ readonly output: {};
1294
+ readonly POST: {
1295
+ readonly input: {};
1296
+ readonly output: SuccessDto;
1297
+ readonly body: {};
1298
+ readonly securityMode: "requiredAny";
1299
+ };
1300
+ };
1301
+ readonly "/perp/exchange/order": {
1302
+ readonly input: {};
1303
+ readonly output: {};
1304
+ readonly POST: {
1305
+ readonly input: {};
1306
+ readonly output: PerpOrderResponse;
1307
+ readonly body: {};
1308
+ readonly securityMode: "requiredAny";
1309
+ };
1310
+ };
1311
+ readonly "/tradingview/bars/:symbol": {
1312
+ readonly input: {};
1313
+ readonly output: BarDto[];
1314
+ };
1315
+ readonly "/tradingview/coin/:symbol": {
1316
+ readonly input: {};
1317
+ readonly output: SymbolInfoDto[];
1318
+ };
1319
+ readonly "/perp/coin/:symbol": {
1320
+ readonly input: {};
1321
+ readonly output: PerpCoinExtended[];
1322
+ };
1323
+ readonly "/perp/coin/spot/:symbol": {
1324
+ readonly input: {};
1325
+ readonly output: PerpSpotCoinExtended[];
1326
+ };
1327
+ readonly "/perp/coins": {
1328
+ readonly input: {};
1329
+ readonly output: PerpCoinExtendedSlim[];
1330
+ };
1331
+ readonly "/perp/legal-check/:address": {
1332
+ readonly input: {};
1333
+ readonly output: PerpLegalCheck;
1334
+ };
1335
+ readonly "/perp/coins/spot": {
1336
+ readonly input: {};
1337
+ readonly output: PerpSpotCoinExtendedSlim[];
1338
+ };
1339
+ readonly "/perp/orderbook/:symbol": {
1340
+ readonly input: {};
1341
+ readonly output: L2BookPerpResponseSingle[];
1342
+ };
1343
+ readonly "/perp/trades/:symbol": {
1344
+ readonly input: {};
1345
+ readonly output: TradesPerpResponseSingle[];
1346
+ };
1347
+ readonly "/perp/stats/spot/:symbol": {
1348
+ readonly input: {};
1349
+ readonly output: ActiveSpotAssetCtx[];
1350
+ };
1351
+ readonly "/perp/stats/:symbol": {
1352
+ readonly input: {};
1353
+ readonly output: ActivePerpAssetCtx[];
1354
+ };
1355
+ readonly "/perp/subscribe": {
1356
+ readonly input: {};
1357
+ readonly output: {};
1358
+ readonly POST: {
1359
+ readonly input: {};
1360
+ readonly output: SuccessDto;
1361
+ readonly body: PerpEvent;
1362
+ };
1363
+ };
1364
+ readonly "/perp/unsubscribe": {
1365
+ readonly input: {};
1366
+ readonly output: {};
1367
+ readonly POST: {
1368
+ readonly input: {};
1369
+ readonly output: SuccessDto;
1370
+ readonly body: PerpEvent;
1371
+ };
1372
+ };
1373
+ readonly "/user/chat/message": {
1374
+ readonly input: {};
1375
+ readonly output: {};
1376
+ readonly POST: {
1377
+ readonly input: {};
1378
+ readonly output: ChatMessageDocHydrated;
1379
+ readonly body: SendChatMessageDto;
1380
+ readonly securityMode: "requiredAny";
1381
+ };
1382
+ };
1383
+ readonly "/user/chat/conversation": {
1384
+ readonly input: {
1385
+ skip?: number;
1386
+ top?: number;
1387
+ isGroupChat?: boolean;
1388
+ continuationToken?: string;
1389
+ };
1390
+ readonly output: UserConversationPaginated & {
1391
+ continuationToken?: string;
1392
+ };
1393
+ readonly securityMode: "requiredAny";
1394
+ };
1395
+ readonly "/user/chat/conversation/:conversationId": {
1396
+ readonly input: {
1397
+ skip?: number;
1398
+ top?: number;
1399
+ receiver: string;
1400
+ continuationToken?: string;
1401
+ };
1402
+ readonly output: ChatMessagePaginated & {
1403
+ continuationToken?: string;
1404
+ };
1405
+ readonly securityMode: "requiredAny";
1406
+ readonly DELETE: {
1407
+ readonly input: {};
1408
+ readonly output: SuccessDto;
1409
+ readonly body: {};
1410
+ readonly securityMode: "requiredAny";
1411
+ };
1412
+ };
1413
+ readonly "/user/chat/conversation-summary": {
1414
+ readonly input: {};
1415
+ readonly output: GlobalConversationSummaryDto;
1416
+ readonly securityMode: "requiredAny";
1417
+ };
1418
+ readonly "/user/chat/conversation/:conversationId/message/:messageId": {
1419
+ readonly input: {};
1420
+ readonly output: {};
1421
+ readonly DELETE: {
1422
+ readonly input: {
1423
+ deleteForAll?: boolean;
1424
+ };
1425
+ readonly output: SuccessDto;
1426
+ readonly body: {};
1427
+ readonly securityMode: "requiredAny";
1428
+ };
1429
+ };
1430
+ readonly "/user/chat/block": {
1431
+ readonly input: {
1432
+ skip?: number;
1433
+ top?: number;
1434
+ continuationToken?: string;
1435
+ };
1436
+ readonly output: UserBlockPaginated & {
1437
+ continuationToken?: string;
1438
+ };
1439
+ readonly securityMode: "requiredAny";
1440
+ };
1441
+ readonly "/user/chat/block/:address": {
1442
+ readonly input: {};
1443
+ readonly output: {};
1444
+ readonly POST: {
1445
+ readonly input: {};
1446
+ readonly output: SuccessDto;
1447
+ readonly body: {};
1448
+ readonly securityMode: "requiredAny";
1449
+ };
1450
+ };
1451
+ readonly "/user/chat/token": {
1452
+ readonly input: {};
1453
+ readonly output: {};
1454
+ readonly POST: {
1455
+ readonly input: {};
1456
+ readonly output: WebSocketTokenDto;
1457
+ readonly body: {};
1458
+ readonly securityMode: "requiredAny";
1459
+ };
1460
+ };
1461
+ readonly "/hatom/user/:address": {
1462
+ readonly input: {};
1463
+ readonly output: UserInfo;
1464
+ };
1465
+ readonly "/countries": {
1466
+ readonly input: {};
1467
+ readonly output: string[];
1468
+ };
1469
+ readonly "/event": {
1470
+ readonly input: {};
1471
+ readonly output: {};
1472
+ readonly POST: {
1473
+ readonly input: {};
1474
+ readonly output: EventProfile;
1475
+ readonly body: EventProfileCreateDto;
1476
+ readonly securityMode: "requiredAny";
1477
+ };
1478
+ };
1479
+ readonly "/event/:eventId": {
1480
+ readonly input: {};
1481
+ readonly output: EventProfile;
1482
+ readonly securityMode: "optionalAny";
1483
+ readonly PATCH: {
1484
+ readonly input: {};
1485
+ readonly output: EventProfile;
1486
+ readonly body: EventProfileEditDto;
1487
+ readonly securityMode: "requiredAny";
1488
+ };
1489
+ readonly DELETE: {
1490
+ readonly input: {};
1491
+ readonly output: SuccessDto;
1492
+ readonly body: {};
1493
+ readonly securityMode: "requiredAny";
1494
+ };
1495
+ };
1496
+ readonly "/event/profile/query": {
1497
+ readonly input: {
1498
+ filter: PublicOnly<EventProfileFilter>;
1499
+ };
1500
+ readonly output: EventProfileQuery;
1501
+ };
1502
+ readonly "/event/:eventId/profile": {
1503
+ readonly input: {};
1504
+ readonly output: {};
1505
+ readonly PUT: {
1506
+ readonly input: {};
1507
+ readonly output: EventProfile;
1508
+ readonly body: FormData;
1509
+ readonly securityMode: "requiredAny";
1510
+ };
1511
+ };
1512
+ readonly "/event/:eventId/background": {
1513
+ readonly input: {};
1514
+ readonly output: {};
1515
+ readonly PUT: {
1516
+ readonly input: {};
1517
+ readonly output: EventProfile;
1518
+ readonly body: FormData;
1519
+ readonly securityMode: "requiredAny";
1520
+ };
1521
+ };
1522
+ readonly "/event/:eventId/description": {
1523
+ readonly input: {};
1524
+ readonly output: {};
1525
+ readonly PUT: {
1526
+ readonly input: {};
1527
+ readonly output: EventProfile;
1528
+ readonly body: FormData;
1529
+ readonly securityMode: "requiredAny";
1530
+ };
1531
+ };
1532
+ readonly "/event/:eventId/description/image": {
1533
+ readonly input: {};
1534
+ readonly output: {};
1535
+ readonly PUT: {
1536
+ readonly input: {};
1537
+ readonly output: string;
1538
+ readonly body: FormData;
1539
+ readonly securityMode: "requiredAny";
1540
+ };
1541
+ };
1542
+ readonly "/event/:eventId/description/image/:imageId": {
1543
+ readonly input: {};
1544
+ readonly output: {};
1545
+ readonly DELETE: {
1546
+ readonly input: {};
1547
+ readonly output: SuccessDto;
1548
+ readonly body: {};
1549
+ readonly securityMode: "requiredAny";
1550
+ };
1551
+ };
1552
+ readonly "/event/:eventId/register": {
1553
+ readonly input: {};
1554
+ readonly output: {};
1555
+ readonly POST: {
1556
+ readonly input: {
1557
+ invitationId?: string;
1558
+ };
1559
+ readonly output: EventRegistrationResponseDto;
1560
+ readonly body: EventGuestRegistrationDto;
1561
+ readonly securityMode: "requiredAny";
1562
+ };
1563
+ };
1564
+ readonly "/event/:eventId/ticket": {
1565
+ readonly input: {};
1566
+ readonly output: EventTicketProfileDoc[];
1567
+ readonly POST: {
1568
+ readonly input: {};
1569
+ readonly output: EventTicketProfileDoc;
1570
+ readonly body: EventTicketProfileCreateDto;
1571
+ readonly securityMode: "requiredAny";
1572
+ };
1573
+ };
1574
+ readonly "/event/:eventId/ticket/:ticketId": {
1575
+ readonly input: {};
1576
+ readonly output: EventTicketProfileDoc;
1577
+ readonly PATCH: {
1578
+ readonly input: {};
1579
+ readonly output: EventTicketProfileDoc;
1580
+ readonly body: EventTicketProfileEditDto;
1581
+ readonly securityMode: "requiredAny";
1582
+ };
1583
+ readonly PUT: {
1584
+ readonly input: {};
1585
+ readonly output: EventTicketProfileDoc;
1586
+ readonly body: FormData;
1587
+ readonly securityMode: "requiredAny";
1588
+ };
1589
+ readonly POST: {
1590
+ readonly input: {};
1591
+ readonly output: SuccessDto;
1592
+ readonly body: {};
1593
+ };
1594
+ };
1595
+ readonly "/event/:eventId/stage": {
1596
+ readonly input: {
1597
+ isEnabled?: boolean;
1598
+ };
1599
+ readonly output: EventStageProfileDoc[];
1600
+ readonly POST: {
1601
+ readonly input: {};
1602
+ readonly output: EventStageProfileDoc;
1603
+ readonly body: EventStageProfileCreateDto;
1604
+ readonly securityMode: "requiredAny";
1605
+ };
1606
+ };
1607
+ readonly "/event/:eventId/stage/:stageId": {
1608
+ readonly input: {};
1609
+ readonly output: EventStageProfileDoc;
1610
+ readonly PATCH: {
1611
+ readonly input: {};
1612
+ readonly output: EventStageProfileDoc;
1613
+ readonly body: EventStageProfileEditDto;
1614
+ readonly securityMode: "requiredAny";
1615
+ };
1616
+ readonly DELETE: {
1617
+ readonly input: {};
1618
+ readonly output: SuccessDto;
1619
+ readonly body: {};
1620
+ readonly securityMode: "requiredAny";
1621
+ };
1622
+ };
1623
+ readonly "/event/:eventId/calculate-prices": {
1624
+ readonly input: {};
1625
+ readonly output: {};
1626
+ readonly POST: {
1627
+ readonly input: {};
1628
+ readonly output: TicketPricesResponse;
1629
+ readonly body: TicketCalculationRequestDto;
1630
+ };
1631
+ };
1632
+ readonly "/event/:eventId/validate-discount": {
1633
+ readonly input: {};
1634
+ readonly output: {};
1635
+ readonly POST: {
1636
+ readonly input: {};
1637
+ readonly output: DiscountCodeValidationResponse;
1638
+ readonly body: {};
1639
+ };
1640
+ };
1641
+ readonly "/user/:address/creator/events": {
1642
+ readonly input: {};
1643
+ readonly output: CreatorDetailsDto;
1644
+ readonly securityMode: "optionalAny";
1645
+ };
1646
+ readonly "/event/:eventId/invite": {
1647
+ readonly input: {};
1648
+ readonly output: {};
1649
+ readonly POST: {
1650
+ readonly input: {};
1651
+ readonly output: EventInvitationDoc[];
1652
+ readonly body: EventInvitationCreateDto[];
1653
+ readonly securityMode: "requiredAny";
1654
+ };
1655
+ };
1656
+ readonly "/event/:eventId/invite/query": {
1657
+ readonly input: {
1658
+ filter: PublicOnly<EventInvitationFilter>;
1659
+ };
1660
+ readonly output: EventInvitationQuery;
1661
+ readonly securityMode: "requiredAny";
1662
+ };
1663
+ readonly "/event/:eventId/invite/:inviteId": {
1664
+ readonly input: {};
1665
+ readonly output: EventInvitation;
1666
+ readonly POST: {
1667
+ readonly input: {};
1668
+ readonly output: EventAcceptInvitation;
1669
+ readonly body: EventClaimInvitationDto;
1670
+ readonly securityMode: "requiredAny";
1671
+ };
1672
+ readonly DELETE: {
1673
+ readonly input: {};
1674
+ readonly output: EventInvitationDoc;
1675
+ readonly body: {};
1676
+ readonly securityMode: "requiredAny";
1677
+ };
1678
+ };
1679
+ readonly "/event/:eventId/voucher/query": {
1680
+ readonly input: {
1681
+ filter: PublicOnly<EventVoucherFilter>;
1682
+ };
1683
+ readonly output: EventVoucherQuery;
1684
+ readonly securityMode: "requiredAny";
1685
+ };
1686
+ readonly "/event/:eventId/questions": {
1687
+ readonly input: {};
1688
+ readonly output: EventQuestionDoc[];
1689
+ readonly securityMode: "requiredAny";
1690
+ };
1691
+ readonly "/event/:eventId/question": {
1692
+ readonly input: {};
1693
+ readonly output: {};
1694
+ readonly POST: {
1695
+ readonly input: {};
1696
+ readonly output: EventQuestionDoc;
1697
+ readonly body: EventQuestionCreateDto;
1698
+ readonly securityMode: "requiredAny";
1699
+ };
1700
+ };
1701
+ readonly "/event/:eventId/question/:questionId": {
1702
+ readonly input: {};
1703
+ readonly output: {};
1704
+ readonly PATCH: {
1705
+ readonly input: {};
1706
+ readonly output: EventQuestionDoc;
1707
+ readonly body: EventQuestionEditDto;
1708
+ readonly securityMode: "requiredAny";
1709
+ };
1710
+ readonly DELETE: {
1711
+ readonly input: {};
1712
+ readonly output: SuccessDto;
1713
+ readonly body: {};
1714
+ readonly securityMode: "requiredAny";
1715
+ };
1716
+ };
1717
+ readonly "/event/:eventId/guest/query": {
1718
+ readonly input: {
1719
+ filter: PublicOnly<EventGuestFilter>;
1720
+ };
1721
+ readonly output: EventGuestProfileQuery;
1722
+ readonly securityMode: "requiredAny";
1723
+ };
1724
+ readonly "/event/:eventId/guest/:address": {
1725
+ readonly input: {};
1726
+ readonly output: EventGuestProfile;
1727
+ readonly securityMode: "requiredAny";
1728
+ };
1729
+ readonly "/event/:eventId/guest-export": {
1730
+ readonly input: {};
1731
+ readonly output: EventGuestExport[];
1732
+ readonly securityMode: "requiredAny";
1733
+ };
1734
+ readonly "/event/:eventId/role": {
1735
+ readonly input: {};
1736
+ readonly output: EventUserRole[];
1737
+ readonly POST: {
1738
+ readonly input: {};
1739
+ readonly output: EventUserRole;
1740
+ readonly body: EventUserRoleCreateDto;
1741
+ readonly securityMode: "requiredAny";
1742
+ };
1743
+ readonly PATCH: {
1744
+ readonly input: {};
1745
+ readonly output: EventUserRole;
1746
+ readonly body: EventUserRoleEditDto;
1747
+ readonly securityMode: "requiredAny";
1748
+ };
1749
+ readonly securityMode: "requiredAny";
1750
+ };
1751
+ readonly "/event/:eventId/role/:roleId": {
1752
+ readonly input: {};
1753
+ readonly output: EventUserRoleDoc;
1754
+ readonly DELETE: {
1755
+ readonly input: {};
1756
+ readonly output: SuccessDto;
1757
+ readonly body: {};
1758
+ readonly securityMode: "requiredAny";
1759
+ };
1760
+ readonly POST: {
1761
+ readonly input: {};
1762
+ readonly output: EventUserRoleDoc;
1763
+ readonly body: {};
1764
+ readonly securityMode: "requiredAny";
1765
+ };
1766
+ };
1767
+ readonly "/event/:eventId/guest": {
1768
+ readonly input: {};
1769
+ readonly output: {};
1770
+ readonly DELETE: {
1771
+ readonly input: {};
1772
+ readonly output: SuccessDto;
1773
+ readonly body: {};
1774
+ readonly securityMode: "requiredAny";
1775
+ };
1776
+ };
1777
+ readonly "/event/:eventId/roleOf/:address": {
1778
+ readonly input: {};
1779
+ readonly output: EventUserRoleDoc;
1780
+ readonly securityMode: "requiredAny";
1781
+ };
1782
+ readonly "/user/me/event": {
1783
+ readonly input: {
1784
+ extended: boolean;
1785
+ };
1786
+ readonly output: EventProfile[];
1787
+ readonly securityMode: "requiredAny";
1788
+ };
1789
+ readonly "/user/me/events/past": {
1790
+ readonly input: {};
1791
+ readonly output: EventProfile[];
1792
+ readonly securityMode: "requiredAny";
1793
+ };
1794
+ readonly "/user/me/events/hosted": {
1795
+ readonly input: {};
1796
+ readonly output: EventProfile[];
1797
+ readonly securityMode: "requiredAny";
1798
+ };
1799
+ readonly "/user/me/events/upcoming": {
1800
+ readonly input: {};
1801
+ readonly output: EventProfile[];
1802
+ readonly securityMode: "requiredAny";
1803
+ };
1804
+ readonly "/user/me/event/badge": {
1805
+ readonly input: {};
1806
+ readonly output: string;
1807
+ readonly securityMode: "requiredAny";
1808
+ };
1809
+ readonly "/user/me/event/badge/payload": {
1810
+ readonly input: {};
1811
+ readonly output: BageQRData;
1812
+ readonly securityMode: "requiredAny";
1813
+ };
1814
+ readonly "/event/:eventId/scan": {
1815
+ readonly input: {};
1816
+ readonly output: {};
1817
+ readonly POST: {
1818
+ readonly input: {};
1819
+ readonly output: TicketValidationResult;
1820
+ readonly body: EventCheckInQR;
1821
+ readonly securityMode: "requiredAny";
1822
+ };
1823
+ };
1824
+ readonly "/event/:eventId/voucher": {
1825
+ readonly input: {};
1826
+ readonly output: {};
1827
+ readonly POST: {
1828
+ readonly input: {};
1829
+ readonly output: EventVoucherDoc;
1830
+ readonly body: EventVoucherCreateDto;
1831
+ readonly securityMode: "requiredAny";
1832
+ };
1833
+ };
1834
+ readonly "/event/:eventId/voucher/:voucherCode": {
1835
+ readonly input: {};
1836
+ readonly output: {};
1837
+ readonly PATCH: {
1838
+ readonly input: {};
1839
+ readonly output: EventVoucherDoc;
1840
+ readonly body: EventVoucherEditDto;
1841
+ readonly securityMode: "requiredAny";
1842
+ };
1843
+ readonly DELETE: {
1844
+ readonly input: {};
1845
+ readonly output: EventVoucherDoc;
1846
+ readonly body: {};
1847
+ readonly securityMode: "requiredAny";
1848
+ };
1849
+ };
1850
+ readonly "/event/:eventId/manual-check-in": {
1851
+ readonly input: {};
1852
+ readonly output: {};
1853
+ readonly POST: {
1854
+ readonly input: {};
1855
+ readonly output: TicketValidationResult;
1856
+ readonly body: ManualCheckInDto;
1857
+ readonly securityMode: "requiredAny";
1858
+ };
1859
+ };
1860
+ readonly "/event/:eventId/answered-questions/:address": {
1861
+ readonly input: {};
1862
+ readonly output: AnsweredQuestionWithDetails[];
1863
+ readonly securityMode: "requiredAny";
1864
+ };
1865
+ readonly "/event/:eventId/guest/approve": {
1866
+ readonly input: {};
1867
+ readonly output: {};
1868
+ readonly PATCH: {
1869
+ readonly input: {};
1870
+ readonly output: EventGuestProfile[];
1871
+ readonly body: EventGuestApproveDto[];
1872
+ readonly securityMode: "requiredAny";
1873
+ };
1874
+ };
1875
+ readonly "/event/:eventId/google-pass/:address": {
1876
+ readonly input: {};
1877
+ readonly output: string[];
1878
+ };
1879
+ readonly "/event/profile/location": {
1880
+ readonly input: {};
1881
+ readonly output: EventCountGroupedByCountry[];
1882
+ };
1883
+ readonly "/event/:eventId/referral-config": {
1884
+ readonly input: {};
1885
+ readonly output: {};
1886
+ readonly POST: {
1887
+ readonly input: {};
1888
+ readonly output: EventReferralConfigDoc;
1889
+ readonly body: EventReferralConfigCreateDto;
1890
+ readonly securityMode: "requiredAny";
1891
+ };
1892
+ };
1893
+ readonly "/event/:eventId/referral-config/:configId": {
1894
+ readonly input: {};
1895
+ readonly output: {};
1896
+ readonly PATCH: {
1897
+ readonly input: {};
1898
+ readonly output: EventReferralConfigDoc;
1899
+ readonly body: EventReferralConfigEditDto;
1900
+ readonly securityMode: "requiredAny";
1901
+ };
1902
+ readonly DELETE: {
1903
+ readonly input: {};
1904
+ readonly output: EventReferralConfigDoc;
1905
+ readonly body: {};
1906
+ readonly securityMode: "requiredAny";
1907
+ };
1908
+ };
1909
+ readonly "/event/:eventId/referral-configs": {
1910
+ readonly input: {
1911
+ filter?: PublicOnly<EventReferralConfigFilter>;
1912
+ };
1913
+ readonly output: EventReferralConfigPaginated;
1914
+ readonly securityMode: "requiredAny";
1915
+ };
1916
+ readonly "/event/:eventId/referral": {
1917
+ readonly input: {};
1918
+ readonly output: {};
1919
+ readonly POST: {
1920
+ readonly input: {};
1921
+ readonly output: EventReferralDoc;
1922
+ readonly body: EventReferralCreateDto;
1923
+ readonly securityMode: "requiredAny";
1924
+ };
1925
+ };
1926
+ readonly "/event/:eventId/referral/:referralCode": {
1927
+ readonly input: {};
1928
+ readonly output: {};
1929
+ readonly PATCH: {
1930
+ readonly input: {};
1931
+ readonly output: EventReferralDoc;
1932
+ readonly body: EventReferralEditDto;
1933
+ readonly securityMode: "requiredAny";
1934
+ };
1935
+ readonly DELETE: {
1936
+ readonly input: {};
1937
+ readonly output: EventReferralDoc;
1938
+ readonly body: {};
1939
+ readonly securityMode: "requiredAny";
1940
+ };
1941
+ };
1942
+ readonly "/event/:eventId/referrals": {
1943
+ readonly input: {
1944
+ filter?: PublicOnly<EventReferralFilter>;
1945
+ };
1946
+ readonly output: EventReferralPaginated;
1947
+ readonly securityMode: "requiredAny";
1948
+ };
1949
+ readonly "/event/:eventId/referrals/self-serviced": {
1950
+ readonly input: {};
1951
+ readonly output: EventReferralDoc[];
1952
+ readonly securityMode: "requiredAny";
1953
+ };
1954
+ readonly "/event/:eventId/notify-attendees": {
1955
+ readonly input: {};
1956
+ readonly output: {};
1957
+ readonly POST: {
1958
+ readonly input: {};
1959
+ readonly output: SuccessWithMessageDto;
1960
+ readonly body: EventNotificationDto;
1961
+ readonly securityMode: "requiredAny";
1962
+ };
1963
+ };
1964
+ readonly "/notify/global-broadcast": {
1965
+ readonly input: {};
1966
+ readonly output: {};
1967
+ readonly POST: {
1968
+ readonly input: {};
1969
+ readonly output: SuccessWithMessageDto;
1970
+ readonly body: EventNotificationDto;
1971
+ readonly securityMode: "requiredAny";
1972
+ };
1973
+ };
1974
+ readonly "/stellar/aggregator/quote": {
1975
+ readonly input: {
1976
+ assetIn: string;
1977
+ assetOut: string;
1978
+ amount: string;
1979
+ tradeType: string;
1980
+ network: string;
1981
+ slippageBps?: number;
1982
+ parts?: number;
1983
+ maxHops?: number;
1984
+ };
1985
+ readonly output: SoroswapQuoteResponseDto;
1986
+ };
1987
+ };
1988
+ export type RemoveColon<S extends string> = S extends `:${infer R}` ? R : S;
1989
+ export type CamelCase<S extends string> = S extends `${infer Head}-${infer Tail}` ? `${Head}${CamelCase<Capitalize<Tail>>}` : S;
1990
+ export type IsEmptyObj<T> = keyof T extends never ? true : false;
1991
+ export type NeedsDefault<I, O, _Full> = IsEmptyObj<I> extends true ? IsEmptyObj<O> extends true ? false : true : true;
1992
+ export type CollectParams<S extends string> = S extends `${string}:${infer P}/${infer R}` ? {
1993
+ [K in P]: string;
1994
+ } & CollectParams<`/${R}`> : S extends `${string}:${infer P}` ? {
1995
+ [K in P]: string;
1996
+ } : {};
1997
+ export type RequireAtLeastOne<T> = {
1998
+ [K in keyof T]-?: {
1999
+ [P in K]-?: T[P];
2000
+ } & Omit<T, K>;
2001
+ }[keyof T] & T;
2002
+ export type BodyBag<VB, Defined extends boolean> = Defined extends true ? IsEmptyObj<VB> extends true ? {
2003
+ body?: never;
2004
+ } : {
2005
+ body: RequireAtLeastOne<VB>;
2006
+ } : {
2007
+ body?: RequireAtLeastOne<VB>;
2008
+ };
2009
+ export type SecurityModeOf<T> = T extends {
2010
+ securityMode: infer S;
2011
+ } ? S : undefined;
2012
+ export type AuthBag<M> = M extends "optionalAny" ? {
2013
+ auth?: string;
2014
+ } : M extends "requiredAny" | "requiredWeb2" | "requiredJwt" ? {
2015
+ auth: string;
2016
+ } : {
2017
+ auth?: never;
2018
+ };
2019
+ export type VerbExtras<Full, PBag> = {
2020
+ [Verb in keyof Full as Verb extends "input" | "body" | "output" | "securityMode" ? never : Verb]: Full[Verb] extends {
2021
+ input: infer VI;
2022
+ output: infer VO;
2023
+ } ? (args: VI & PBag & BodyBag<Full[Verb] extends {
2024
+ body: infer VB;
2025
+ } ? VB : never, "body" extends keyof Full[Verb] ? true : false> & AuthBag<SecurityModeOf<Full[Verb]>> & OurRequestInit) => Promise<VO> : never;
2026
+ };
2027
+ export type DropKey<T, K extends PropertyKey> = {
2028
+ [P in Exclude<keyof T, K>]: T[P];
2029
+ };
2030
+ export type RequiredKeys<T> = {
2031
+ [K in keyof T]-?: {} extends Pick<T, K> ? never : K;
2032
+ }[keyof T];
2033
+ export type HasRequiredKeys<T> = [
2034
+ RequiredKeys<T>
2035
+ ] extends [
2036
+ never
2037
+ ] ? false : true;
2038
+ export type PathToTree<P extends string, I, O, Full = {
2039
+ input: I;
2040
+ output: O;
2041
+ }, Root extends string = P, Bag extends object = CollectParams<Root>> = P extends `/${infer Head}/${infer Rest}` ? Head extends `:${infer Param}` ? {
2042
+ [K in CamelCase<Param>]: (value: string) => PathToTree<`/${Rest}`, I, O, Full, Root, DropKey<Bag, Param>>;
2043
+ } : {
2044
+ [K in CamelCase<Head>]: PathToTree<`/${Rest}`, I, O, Full, Root, Bag>;
2045
+ } : P extends `/:${infer Param}` ? {
2046
+ [K in CamelCase<Param>]: (value: string) => (NeedsDefault<I, O, Full> extends true ? HasRequiredKeys<DropKey<Bag, Param> & I & AuthBag<SecurityModeOf<Full>>> extends true ? (args: I & DropKey<Bag, Param> & AuthBag<SecurityModeOf<Full>> & OurRequestInit) => Promise<O> : (args?: I & DropKey<Bag, Param> & AuthBag<SecurityModeOf<Full>> & OurRequestInit) => Promise<O> : {}) & VerbExtras<Full, DropKey<Bag, Param>>;
2047
+ } : P extends `/${infer Leaf}` ? {
2048
+ [K in CamelCase<RemoveColon<Leaf>>]: (NeedsDefault<I, O, Full> extends true ? HasRequiredKeys<I & Bag & AuthBag<SecurityModeOf<Full>>> extends true ? (args: I & Bag & AuthBag<SecurityModeOf<Full>> & OurRequestInit) => Promise<O> : (args?: I & Bag & AuthBag<SecurityModeOf<Full>> & OurRequestInit) => Promise<O> : {}) & VerbExtras<Full, Bag>;
2049
+ } : never;
2050
+ export type AnyFn = (...a: any[]) => any;
2051
+ export type IsFn<T> = T extends AnyFn ? true : false;
2052
+ export type U2I<U> = (U extends any ? (k: U) => 0 : never) extends (k: infer I) => 0 ? I : never;
2053
+ export type UnionKeys<U> = U extends any ? keyof U : never;
2054
+ export type CollapseFnUnion<F> = (...a: Parameters<Extract<F, AnyFn>>) => U2I<F extends AnyFn ? ReturnType<F> : never>;
2055
+ export type ValuesForKey<U, K extends PropertyKey> = Exclude<U extends any ? (K extends keyof U ? U[K] : never) : never, never>;
2056
+ export type FnUnion<U> = Extract<U, AnyFn>;
2057
+ export type ObjUnion<U> = Exclude<U, AnyFn>;
2058
+ export type CollapseFnUnionOrNever<U> = [
2059
+ FnUnion<U>
2060
+ ] extends [
2061
+ never
2062
+ ] ? {} : CollapseFnUnion<FnUnion<U>>;
2063
+ export type MergeRec<U> = [
2064
+ U
2065
+ ] extends [
2066
+ object
2067
+ ] ? {
2068
+ [K in UnionKeys<ObjUnion<U>>]: MergeRec<ValuesForKey<ObjUnion<U>, K>>;
2069
+ } & CollapseFnUnionOrNever<U> : U;
2070
+ export type SimplifyDeep<T> = IsFn<T> extends true ? T : T extends object ? {
2071
+ [K in keyof T]: SimplifyDeep<T[K]>;
2072
+ } : T;
2073
+ export type SDKUnion = {
2074
+ [R in keyof typeof endpoints]: PathToTree<R, (typeof endpoints)[R]["input"], (typeof endpoints)[R]["output"], (typeof endpoints)[R]>;
2075
+ }[keyof typeof endpoints];
2076
+ export type SDK = SimplifyDeep<MergeRec<SDKUnion>>;
2077
+ /**
2078
+ * Stellar Soroban contract addresses + Soroban RPC + quote-server config
2079
+ * per network.
2080
+ *
2081
+ * Addresses are env-sourced so ops can rotate mainnet/testnet deployments
2082
+ * without a code change. Defaults fall back to empty strings so a missing
2083
+ * env surfaces as a clear "not configured" error at call time rather than
2084
+ * silently pointing at the wrong contract.
2085
+ */
2086
+ export type StellarNetwork = "mainnet" | "testnet";
2087
+ /**
2088
+ * Stellar lending controller contract addresses per network.
2089
+ * Env vars:
2090
+ * - STELLAR_LENDING_CONTROLLER_MAINNET
2091
+ * - STELLAR_LENDING_CONTROLLER_TESTNET
2092
+ */
2093
+ export declare const STELLAR_LENDING_CONTROLLER: Record<StellarNetwork, string>;
2094
+ /**
2095
+ * Stellar aggregator router contract addresses per network.
2096
+ * Targets `batch_execute(BatchSwap)` for direct (non-lending) swaps.
2097
+ * Env vars:
2098
+ * - STELLAR_AGGREGATOR_ROUTER_MAINNET
2099
+ * - STELLAR_AGGREGATOR_ROUTER_TESTNET
2100
+ */
2101
+ export declare const STELLAR_AGGREGATOR_ROUTER: Record<StellarNetwork, string>;
2102
+ /**
2103
+ * Default Soroban RPC URLs per network.
2104
+ * Overridable at runtime via the `sorobanRpcUrl` option on each builder.
2105
+ */
2106
+ export declare const STELLAR_SOROBAN_RPC_URL: Record<StellarNetwork, string>;
2107
+ /**
2108
+ * Stellar aggregator quote-server base URLs per network. The quote server
2109
+ * exposes `GET /api/v1/tokens` and `GET /api/v1/quote`.
2110
+ *
2111
+ * Env vars:
2112
+ * - STELLAR_QUOTE_URL_MAINNET
2113
+ * - STELLAR_QUOTE_URL_TESTNET
2114
+ */
2115
+ export declare const STELLAR_QUOTE_URL: Record<StellarNetwork, string>;
2116
+ /**
2117
+ * Stellar network passphrases (Soroban tx signing domain separator).
2118
+ * These are fixed by the Stellar network itself and must not be overridden.
2119
+ */
2120
+ export declare const STELLAR_NETWORK_PASSPHRASE: Record<StellarNetwork, string>;
2121
+ /**
2122
+ * Assert a controller address is configured for the target network.
2123
+ * Throws early with a clear message rather than building an XDR that
2124
+ * points at `""`.
2125
+ */
2126
+ export declare function getStellarLendingController(network: StellarNetwork): string;
2127
+ /**
2128
+ * Assert an aggregator router address is configured for the target network.
2129
+ * Used by `buildStellarBatchSwapTx` for direct user→router swaps.
2130
+ */
2131
+ export declare function getStellarAggregatorRouter(network: StellarNetwork): string;
2132
+ /**
2133
+ * Stellar `G...` public key of the caller (tx source account).
2134
+ */
2135
+ export type StellarAccountAddress = string;
2136
+ export interface StellarBuilderOptions {
2137
+ network: StellarNetwork;
2138
+ caller: StellarAccountAddress;
2139
+ /**
2140
+ * Current sequence number of the caller account, as a decimal string.
2141
+ * Callers fetch this from Soroban RPC (`server.getAccount(caller)`) before
2142
+ * building. Keeping it as an input (rather than fetching inside the builder)
2143
+ * makes builders sync-friendly, RPC-free, and deterministic for snapshot tests.
2144
+ */
2145
+ sourceSequence: string;
2146
+ /**
2147
+ * Override the controller contract address. Normally resolved from env via
2148
+ * `getStellarLendingController(network)` — override is for tests and
2149
+ * preview/staging deployments.
2150
+ */
2151
+ controllerAddress?: string;
2152
+ /** Base fee in stroops (default BASE_FEE = "100"). */
2153
+ fee?: string;
2154
+ /** Tx timeout in seconds (default 300). */
2155
+ timeoutSeconds?: number;
2156
+ }
2157
+ export interface BuiltStellarTx {
2158
+ /** Unsigned transaction XDR (base64) ready for wallet signing. */
2159
+ xdr: string;
2160
+ }
2161
+ /**
2162
+ * Input shape for the Stellar-specific `swap` payload carried on
2163
+ * `MultiplyArgs.steps`, `SwapDebtArgs.steps`, `SwapCollateralArgs.steps`,
2164
+ * `RepayDebtWithCollateralArgs.steps`.
2165
+ *
2166
+ * @xoxno/types declares `steps: unknown` on the Wave 0 DTOs so every chain
2167
+ * owns its own encoding. On Stellar, callers MUST pass an
2168
+ * `AggregatorSwapDto` which is serialised into the Soroban
2169
+ * `AggregatorSwap` struct from `rs-lending-xlm common/src/types.rs`:
2170
+ *
2171
+ * pub struct SwapHop {
2172
+ * pub fee_bps: u32,
2173
+ * pub pool: Address,
2174
+ * pub token_in: Address,
2175
+ * pub token_out: Address,
2176
+ * pub venue: SwapVenue, // tag-only enum
2177
+ * }
2178
+ * pub struct SwapPath {
2179
+ * pub amount_in: i128,
2180
+ * pub hops: Vec<SwapHop>,
2181
+ * pub min_amount_out: i128,
2182
+ * }
2183
+ * pub struct AggregatorSwap { // controller payload
2184
+ * pub paths: Vec<SwapPath>,
2185
+ * pub total_min_out: i128,
2186
+ * }
2187
+ *
2188
+ * The controller wraps `AggregatorSwap` in `BatchSwap` (filling
2189
+ * `sender = current_contract_address`) before forwarding to the router.
2190
+ *
2191
+ * Re-exported from this module so consumers can `import { StellarSwapStepsInput }`
2192
+ * and get the canonical typed shape without reaching into `@xoxno/types`.
2193
+ */
2194
+ export type StellarSwapStepsInput = AggregatorSwapDto;
2195
+ export type StellarSwapHopInput = SwapHopDto;
2196
+ export type StellarSwapPathInput = SwapPathDto;
2197
+ export type StellarSwapVenue = SwapVenue;
2198
+ /**
2199
+ * Assemble an unsigned XDR that invokes a single Soroban contract method.
2200
+ *
2201
+ * Uses a synthetic `Account(caller, sourceSequence)` — no RPC call. The
2202
+ * returned XDR still needs preparation (simulation to populate Soroban
2203
+ * footprint + auth entries + resource fees) before signing. The UI layer
2204
+ * does this via `rpc.Server.prepareTransaction`.
2205
+ */
2206
+ export declare function buildTx(opts: StellarBuilderOptions, method: string, params: xdr.ScVal[]): BuiltStellarTx;
2207
+ /**
2208
+ * supply(caller, account_id: u64, e_mode_category: u32, assets: Vec<(Address, i128)>)
2209
+ * @xoxno/types `SupplyArgs` is a single-asset shape; the Stellar contract
2210
+ * expects a batch — we wrap the single asset in a 1-element Vec.
2211
+ */
2212
+ export declare function buildStellarSupplyTx(opts: StellarBuilderOptions, args: SupplyArgs): BuiltStellarTx;
2213
+ /**
2214
+ * borrow(caller, account_id: u64, borrows: Vec<(Address, i128)>)
2215
+ */
2216
+ export declare function buildStellarBorrowTx(opts: StellarBuilderOptions, args: BorrowArgs): BuiltStellarTx;
2217
+ /**
2218
+ * withdraw(caller, account_id: u64, withdrawals: Vec<(Address, i128)>)
2219
+ */
2220
+ export declare function buildStellarWithdrawTx(opts: StellarBuilderOptions, args: WithdrawArgs): BuiltStellarTx;
2221
+ /**
2222
+ * repay(caller, account_id: u64, payments: Vec<(Address, i128)>)
2223
+ */
2224
+ export declare function buildStellarRepayTx(opts: StellarBuilderOptions, args: RepayArgs): BuiltStellarTx;
2225
+ /**
2226
+ * liquidate(liquidator, account_id: u64, debt_payments: Vec<(Address, i128)>)
2227
+ */
2228
+ export declare function buildStellarLiquidateTx(opts: StellarBuilderOptions, args: LiquidateArgs): BuiltStellarTx;
2229
+ /**
2230
+ * flash_loan(caller, asset, amount: i128, receiver, data: Bytes)
2231
+ */
2232
+ export declare function buildStellarFlashLoanTx(opts: StellarBuilderOptions, args: FlashLoanArgs): BuiltStellarTx;
2233
+ /**
2234
+ * multiply(caller, account_id, e_mode_category, collateral_token,
2235
+ * debt_to_flash_loan: i128, debt_token, mode: PositionMode,
2236
+ * swap: AggregatorSwap, initial_payment: Option<(Address, i128)>,
2237
+ * convert_swap: Option<AggregatorSwap>) -> u64
2238
+ *
2239
+ * `mode` is a repr(u32) `PositionMode` → encoded as `scvU32`. The two trailing
2240
+ * `Option`s seed an optional initial collateral payment and a secondary swap
2241
+ * converting it into the collateral token; both omit to Soroban `Void`.
2242
+ */
2243
+ export declare function buildStellarMultiplyTx(opts: StellarBuilderOptions, args: MultiplyArgs): BuiltStellarTx;
2244
+ /**
2245
+ * swap_debt(caller, account_id, existing_debt_token, new_debt_amount: i128,
2246
+ * new_debt_token, steps: SwapSteps)
2247
+ */
2248
+ export declare function buildStellarSwapDebtTx(opts: StellarBuilderOptions, args: SwapDebtArgs): BuiltStellarTx;
2249
+ /**
2250
+ * swap_collateral(caller, account_id, current_collateral, from_amount: i128,
2251
+ * new_collateral, steps: SwapSteps)
2252
+ */
2253
+ export declare function buildStellarSwapCollateralTx(opts: StellarBuilderOptions, args: SwapCollateralArgs): BuiltStellarTx;
2254
+ /**
2255
+ * repay_debt_with_collateral(caller, account_id, collateral_token,
2256
+ * collateral_amount: i128, debt_token,
2257
+ * steps: SwapSteps, close_position: bool)
2258
+ */
2259
+ export declare function buildStellarRepayDebtWithCollateralTx(opts: StellarBuilderOptions, args: RepayDebtWithCollateralArgs): BuiltStellarTx;
2260
+ /** `InterestRateModel` — 8 RAY rates + reserve factor bps. */
2261
+ export declare const encodeInterestRateModel: (m: InterestRateModelDto) => xdr.ScVal;
2262
+ /** `MarketParamsRaw` — `InterestRateModel` plus the pool asset identity. */
2263
+ export declare const encodeMarketParamsRaw: (p: MarketParamsRawDto) => xdr.ScVal;
2264
+ /** `AssetConfigRaw` — 17 risk/limit fields. */
2265
+ export declare const encodeAssetConfigRaw: (c: AssetConfigRawDto) => xdr.ScVal;
2266
+ /** `PositionLimits` — per-account supply/borrow position caps. */
2267
+ export declare const encodePositionLimits: (l: PositionLimitsDto) => xdr.ScVal;
2268
+ /** `OracleSourceConfigInput` data-enum — `Reflector(...)` | `RedStone(...)`. */
2269
+ export declare const encodeOracleSourceConfigInput: (src: OracleSourceConfigInputDto) => xdr.ScVal;
2270
+ /** `MarketOracleConfigInput` — strategy + primary/anchor sources + sanity bounds. */
2271
+ export declare const encodeMarketOracleConfigInput: (cfg: MarketOracleConfigInputDto) => xdr.ScVal;
2272
+ export interface RoleGrantArgs {
2273
+ account: string;
2274
+ role: string;
2275
+ }
2276
+ export interface TransferOwnershipArgs {
2277
+ newOwner: string;
2278
+ liveUntilLedger: number;
2279
+ }
2280
+ export interface EditAssetConfigArgs {
2281
+ asset: string;
2282
+ config: AssetConfigRawDto;
2283
+ }
2284
+ export interface EModeCategoryEditArgs {
2285
+ id: number;
2286
+ ltv: number;
2287
+ threshold: number;
2288
+ bonus: number;
2289
+ }
2290
+ export interface EModeAssetArgs {
2291
+ asset: string;
2292
+ categoryId: number;
2293
+ canCollateral: boolean;
2294
+ canBorrow: boolean;
2295
+ }
2296
+ export interface RemoveEModeAssetArgs {
2297
+ asset: string;
2298
+ categoryId: number;
2299
+ }
2300
+ export interface ConfigureMarketOracleArgs {
2301
+ asset: string;
2302
+ config: MarketOracleConfigInputDto;
2303
+ }
2304
+ export interface EditOracleToleranceArgs {
2305
+ asset: string;
2306
+ firstTolerance: number;
2307
+ lastTolerance: number;
2308
+ }
2309
+ export interface CreateLiquidityPoolArgs {
2310
+ asset: string;
2311
+ params: MarketParamsRawDto;
2312
+ config: AssetConfigRawDto;
2313
+ }
2314
+ export interface UpgradeLiquidityPoolParamsArgs {
2315
+ asset: string;
2316
+ params: InterestRateModelDto;
2317
+ }
2318
+ export interface UpgradeLiquidityPoolArgs {
2319
+ asset: string;
2320
+ wasmHash: string;
2321
+ }
2322
+ export interface RewardEntry {
2323
+ token: string;
2324
+ amount: string;
2325
+ }
2326
+ export interface UpdateAccountThresholdArgs {
2327
+ asset: string;
2328
+ hasRisks: boolean;
2329
+ accountNonces: number[];
2330
+ }
2331
+ /** upgrade(new_wasm_hash: BytesN<32>) */
2332
+ export declare function buildStellarUpgradeControllerTx(opts: StellarBuilderOptions, args: {
2333
+ wasmHash: string;
2334
+ }): BuiltStellarTx;
2335
+ /** migrate(new_version: u32) */
2336
+ export declare function buildStellarMigrateTx(opts: StellarBuilderOptions, args: {
2337
+ newVersion: number;
2338
+ }): BuiltStellarTx;
2339
+ /** pause() */
2340
+ export declare function buildStellarPauseTx(opts: StellarBuilderOptions): BuiltStellarTx;
2341
+ /** unpause() */
2342
+ export declare function buildStellarUnpauseTx(opts: StellarBuilderOptions): BuiltStellarTx;
2343
+ /** grant_role(account: Address, role: Symbol) */
2344
+ export declare function buildStellarGrantRoleTx(opts: StellarBuilderOptions, args: RoleGrantArgs): BuiltStellarTx;
2345
+ /** revoke_role(account: Address, role: Symbol) */
2346
+ export declare function buildStellarRevokeRoleTx(opts: StellarBuilderOptions, args: RoleGrantArgs): BuiltStellarTx;
2347
+ /** transfer_ownership(new_owner: Address, live_until_ledger: u32) */
2348
+ export declare function buildStellarTransferOwnershipTx(opts: StellarBuilderOptions, args: TransferOwnershipArgs): BuiltStellarTx;
2349
+ /** accept_ownership() */
2350
+ export declare function buildStellarAcceptOwnershipTx(opts: StellarBuilderOptions): BuiltStellarTx;
2351
+ /** set_aggregator(addr: Address) — #[only_owner] */
2352
+ export declare function buildStellarSetAggregatorTx(opts: StellarBuilderOptions, args: {
2353
+ aggregator: string;
2354
+ }): BuiltStellarTx;
2355
+ /** set_accumulator(addr: Address) — #[only_owner] */
2356
+ export declare function buildStellarSetAccumulatorTx(opts: StellarBuilderOptions, args: {
2357
+ accumulator: string;
2358
+ }): BuiltStellarTx;
2359
+ /** set_liquidity_pool_template(hash: BytesN<32>) — #[only_owner] */
2360
+ export declare function buildStellarSetLiquidityPoolTemplateTx(opts: StellarBuilderOptions, args: {
2361
+ wasmHash: string;
2362
+ }): BuiltStellarTx;
2363
+ /** edit_asset_config(asset: Address, cfg: AssetConfigRaw) — #[only_owner] */
2364
+ export declare function buildStellarEditAssetConfigTx(opts: StellarBuilderOptions, args: EditAssetConfigArgs): BuiltStellarTx;
2365
+ /** set_position_limits(limits: PositionLimits) — #[only_owner] */
2366
+ export declare function buildStellarSetPositionLimitsTx(opts: StellarBuilderOptions, args: PositionLimitsDto): BuiltStellarTx;
2367
+ /** add_e_mode_category(ltv: u32, threshold: u32, bonus: u32) -> u32 — #[only_owner] */
2368
+ export declare function buildStellarAddEModeCategoryTx(opts: StellarBuilderOptions, args: {
2369
+ ltv: number;
2370
+ threshold: number;
2371
+ bonus: number;
2372
+ }): BuiltStellarTx;
2373
+ /** edit_e_mode_category(id: u32, ltv: u32, threshold: u32, bonus: u32) — #[only_owner] */
2374
+ export declare function buildStellarEditEModeCategoryTx(opts: StellarBuilderOptions, args: EModeCategoryEditArgs): BuiltStellarTx;
2375
+ /** remove_e_mode_category(id: u32) — #[only_owner] */
2376
+ export declare function buildStellarRemoveEModeCategoryTx(opts: StellarBuilderOptions, args: {
2377
+ id: number;
2378
+ }): BuiltStellarTx;
2379
+ /** add_asset_to_e_mode_category(asset, category_id, can_collateral, can_borrow) — #[only_owner] */
2380
+ export declare function buildStellarAddAssetToEModeCategoryTx(opts: StellarBuilderOptions, args: EModeAssetArgs): BuiltStellarTx;
2381
+ /** edit_asset_in_e_mode_category(asset, category_id, can_collateral, can_borrow) — #[only_owner] */
2382
+ export declare function buildStellarEditAssetInEModeCategoryTx(opts: StellarBuilderOptions, args: EModeAssetArgs): BuiltStellarTx;
2383
+ /** remove_asset_from_e_mode(asset: Address, category_id: u32) — #[only_owner] */
2384
+ export declare function buildStellarRemoveAssetFromEModeTx(opts: StellarBuilderOptions, args: RemoveEModeAssetArgs): BuiltStellarTx;
2385
+ /** approve_token(token: Address) — #[only_owner] */
2386
+ export declare function buildStellarApproveTokenTx(opts: StellarBuilderOptions, args: {
2387
+ token: string;
2388
+ }): BuiltStellarTx;
2389
+ /** revoke_token(token: Address) — #[only_owner] */
2390
+ export declare function buildStellarRevokeTokenTx(opts: StellarBuilderOptions, args: {
2391
+ token: string;
2392
+ }): BuiltStellarTx;
2393
+ /** configure_market_oracle(caller, asset, cfg) — #[only_role(caller, "ORACLE")] */
2394
+ export declare function buildStellarConfigureMarketOracleTx(opts: StellarBuilderOptions, args: ConfigureMarketOracleArgs): BuiltStellarTx;
2395
+ /** edit_oracle_tolerance(caller, asset, first_tolerance, last_tolerance) — #[only_role(caller, "ORACLE")] */
2396
+ export declare function buildStellarEditOracleToleranceTx(opts: StellarBuilderOptions, args: EditOracleToleranceArgs): BuiltStellarTx;
2397
+ /** disable_token_oracle(caller, asset) — #[only_role(caller, "ORACLE")] */
2398
+ export declare function buildStellarDisableTokenOracleTx(opts: StellarBuilderOptions, args: {
2399
+ asset: string;
2400
+ }): BuiltStellarTx;
2401
+ /** update_indexes(caller, assets: Vec<Address>) — #[only_role(caller, "KEEPER")] */
2402
+ export declare function buildStellarUpdateIndexesTx(opts: StellarBuilderOptions, args: {
2403
+ assets: string[];
2404
+ }): BuiltStellarTx;
2405
+ /** renew_account(caller, account_id: u64) */
2406
+ export declare function buildStellarRenewAccountTx(opts: StellarBuilderOptions, args: {
2407
+ accountNonce: number;
2408
+ }): BuiltStellarTx;
2409
+ /** create_liquidity_pool(asset, params: MarketParamsRaw, config: AssetConfigRaw) -> Address — #[only_owner] */
2410
+ export declare function buildStellarCreateLiquidityPoolTx(opts: StellarBuilderOptions, args: CreateLiquidityPoolArgs): BuiltStellarTx;
2411
+ /** upgrade_liquidity_pool_params(asset, params: InterestRateModel) — #[only_owner] */
2412
+ export declare function buildStellarUpgradeLiquidityPoolParamsTx(opts: StellarBuilderOptions, args: UpgradeLiquidityPoolParamsArgs): BuiltStellarTx;
2413
+ /** upgrade_liquidity_pool(asset, new_wasm_hash: BytesN<32>) — #[only_owner] */
2414
+ export declare function buildStellarUpgradeLiquidityPoolTx(opts: StellarBuilderOptions, args: UpgradeLiquidityPoolArgs): BuiltStellarTx;
2415
+ /** claim_revenue(caller, assets: Vec<Address>) -> Vec<i128> — #[only_role(caller, "REVENUE")] */
2416
+ export declare function buildStellarClaimRevenueTx(opts: StellarBuilderOptions, args: {
2417
+ assets: string[];
2418
+ }): BuiltStellarTx;
2419
+ /** add_rewards(caller, rewards: Vec<(Address, i128)>) — #[only_role(caller, "REVENUE")] */
2420
+ export declare function buildStellarAddRewardsTx(opts: StellarBuilderOptions, args: {
2421
+ rewards: RewardEntry[];
2422
+ }): BuiltStellarTx;
2423
+ /** update_account_threshold(caller, asset, has_risks, account_ids: Vec<u64>) — #[only_role(caller, "KEEPER")] */
2424
+ export declare function buildStellarUpdateAccountThresholdTx(opts: StellarBuilderOptions, args: UpdateAccountThresholdArgs): BuiltStellarTx;
2425
+ /**
2426
+ * Serialize a live `xdr.ScVal` to base64 XDR for the string-only decoder API.
2427
+ * Use this if you hold parsed ScVals (e.g. from the high-level RPC client);
2428
+ * `.toXDR` is wire-format/structural, so it is safe across SDK copies.
2429
+ */
2430
+ export declare const toBase64Xdr: (scv: {
2431
+ toXDR(format: "base64"): string;
2432
+ }) => string;
2433
+ /** Build the `"<domain>:<action>"` dispatch key from the event topic ScVals. */
2434
+ export declare const stellarLendingDispatchKey: (topicsB64: readonly string[]) => string;
2435
+ /** Topic keys this SDK can decode (the 21 controller contractevents). */
2436
+ export declare const STELLAR_LENDING_TOPICS: readonly string[];
2437
+ /**
2438
+ * Decode a Stellar lending controller event from its base64-XDR topics and
2439
+ * data (exactly as Soroban RPC `getEvents` delivers them). Returns `null` for a
2440
+ * topic this SDK does not decode (e.g. access-control `role_granted` events),
2441
+ * so consumers can skip unknown events without throwing.
2442
+ */
2443
+ export declare function decodeStellarLendingEvent(topicsB64: readonly string[], dataB64: string): StellarLendingDecodedEvent | null;
2444
+ /**
2445
+ * Stellar lending activity-id derivation — the single owner of the inputs that
2446
+ * compose `NftActivityDoc.id` (`${txHash}-${eventIdentifier}-${eventOrder}`).
2447
+ *
2448
+ * Both indexing consumers (xoxno-api-v2, xoxno-az-functions) MUST derive these
2449
+ * inputs here so the activity ids they write to `NFT_ACTIVITY_DATA` are
2450
+ * byte-identical — the hard gate for consolidating activity indexing into a
2451
+ * single producer. Ported verbatim from api-v2's `stellar-lending-activity.mapper`.
2452
+ *
2453
+ * The activity-type string values mirror `@xoxno/types` `XoxnoLendingActivity`.
2454
+ * They are inlined (not imported) because `@xoxno/types` does not re-export its
2455
+ * enums on the top-level type surface and the SDK keeps that NestJS-coupled
2456
+ * module out of its runtime bundle.
2457
+ */
2458
+ /** Synthetic NFT collection ticker for Stellar lending accounts. */
2459
+ export declare const XOXNO_LENDING_STELLAR_TICKER = "XLENDXLM-a7c9f3";
2460
+ /**
2461
+ * A child delta's contribution to `eventOrder`: `base * STRIDE + childIndex`.
2462
+ * The stride bounds the number of child deltas per base event before two base
2463
+ * events could collide.
2464
+ */
2465
+ export declare const SYNTHETIC_EVENT_ORDER_STRIDE = 10000;
2466
+ /** `XoxnoLendingActivity` values used by the position activity mapping. */
2467
+ export type StellarLendingActivityType = "lendingUpdateAccountPosition" | "lendingLiquidateRepayDebt" | "lendingLiquidateSeizeCollateral" | "lendingUpdateAccountParameters";
2468
+ /**
2469
+ * Synthetic NFT identifier for a Stellar lending account, e.g.
2470
+ * `XLENDXLM-a7c9f3-2a` for account 42. The u64 account id is rendered as
2471
+ * even-length lowercase hex.
2472
+ */
2473
+ export declare function buildStellarLendingIdentifier(accountId: string): string;
2474
+ /**
2475
+ * Extract the base event order from a Soroban RPC event id (`<ledger>-<index>`).
2476
+ * Returns 0 when the id is malformed or has no index segment.
2477
+ */
2478
+ export declare function extractEventOrder(eventId: string): number;
2479
+ /**
2480
+ * Stable per-child ordering within one base event:
2481
+ * `baseEventOrder * 10_000 + childIndex`. Keeps multiple deltas emitted by a
2482
+ * single transaction deterministically ordered and collision-free.
2483
+ */
2484
+ export declare function syntheticEventOrder(baseEventOrder: number, childIndex?: number): number;
2485
+ /**
2486
+ * Map a position-delta `action` symbol to its `XoxnoLendingActivity` value.
2487
+ * The tag list is authoritative in `rs-lending-xlm common/src/events.rs`.
2488
+ */
2489
+ export declare function mapStellarPositionActivityType(action?: string): StellarLendingActivityType;
2490
+ /**
2491
+ * Resolved token entry returned by the quote server's tokens endpoint.
2492
+ * Mirrors the indexer's `TokenEntry` JSON exactly.
2493
+ */
2494
+ export interface StellarQuoteToken {
2495
+ /** Canonical token id. `C…` for Soroban contracts; `CODE:GISSUER…`
2496
+ * for Classic; `XLM` for native. */
2497
+ id: string;
2498
+ kind: StellarTokenKind;
2499
+ decimals: number;
2500
+ /** Soroban Asset Contract peer for Classic assets (null otherwise). */
2501
+ sacPeer: string | null;
2502
+ /** Classic asset code (for Classic / SAC entries; null for Soroban). */
2503
+ code: string | null;
2504
+ /** Number of pools touching this token in the current snapshot. */
2505
+ degree: number;
2506
+ }
2507
+ export interface StellarQuoteFetchOptions {
2508
+ /** Network selects which base URL to hit. */
2509
+ network: StellarNetwork;
2510
+ /** Override the resolved base URL (useful for tests / preview). */
2511
+ baseUrl?: string;
2512
+ /** Per-call fetch options (signal, headers, etc.). */
2513
+ fetchOptions?: RequestInit;
2514
+ }
2515
+ /**
2516
+ * Fetch a route quote from the Stellar aggregator quote server.
2517
+ *
2518
+ * Forward mode: pass `amountIn` to compute the maximum reachable
2519
+ * `amountOut`. Reverse mode: pass `amountOut` to compute the minimum
2520
+ * `amountIn` that delivers at least that output.
2521
+ *
2522
+ * Pass both `sender` (G-strkey) and `router` (C-strkey) to receive a
2523
+ * ready-to-sign envelope under `transaction.envelopeXdr`. The caller
2524
+ * must still run `simulateTransaction` to attach Soroban resource fees
2525
+ * before signing.
2526
+ */
2527
+ export declare function getStellarAggregatorQuote(request: StellarAggregatorQuoteRequestDto, opts: StellarQuoteFetchOptions): Promise<StellarAggregatorQuoteResponseDto>;
2528
+ /**
2529
+ * List tokens currently indexed by the quote server. Useful to populate
2530
+ * pickers or validate that a user-supplied token has on-chain liquidity.
2531
+ */
2532
+ export declare function getStellarQuoteTokens(opts: StellarQuoteFetchOptions): Promise<StellarQuoteToken[]>;
2533
+ export interface StellarBatchSwapBuilderOptions extends StellarBuilderOptions {
2534
+ /**
2535
+ * Override the resolved aggregator router contract address. Normally
2536
+ * resolved from `STELLAR_AGGREGATOR_ROUTER[network]`.
2537
+ */
2538
+ routerAddress?: string;
2539
+ /**
2540
+ * Total input amount the router will pull from `caller` once at the
2541
+ * start of `batch_execute` (i128 decimal string). Per-path
2542
+ * allocations are derived inside the router from each path's
2543
+ * `splitPpm`. For a quote-derived swap, pass `quote.amountIn`.
2544
+ */
2545
+ totalIn: string;
2546
+ /**
2547
+ * Referral identifier embedded into the BatchSwap. Defaults to `0`
2548
+ * (no referral / no fee — matches rs-aggregator MVX semantics).
2549
+ * Non-zero IDs MUST be registered on-chain via `add_referral` or the
2550
+ * router reverts at execution.
2551
+ */
2552
+ referralId?: number | string;
2553
+ }
2554
+ /**
2555
+ * Build an unsigned XDR for a direct user → aggregator router swap.
2556
+ *
2557
+ * The `swap` payload (paths + total-min-out) comes straight from the
2558
+ * quote server; map a `StellarAggregatorQuoteResponseDto` to
2559
+ * `AggregatorSwapDto` via `mapQuoteResponseToAggregatorSwap` before
2560
+ * calling this. `opts.totalIn` is the authoritative input amount.
2561
+ */
2562
+ export declare function buildStellarBatchSwapTx(opts: StellarBatchSwapBuilderOptions, swap: AggregatorSwapDto): BuiltStellarTx;
2563
+ /**
2564
+ * Translate a quote-server response into the controller-facing
2565
+ * `AggregatorSwapDto`. Each path's `splitPpm` comes straight from the
2566
+ * server; the single-path fallback (when `paths` is omitted) gets the
2567
+ * full 1_000_000 weight.
2568
+ *
2569
+ * Throws if `amountOutMin` is missing — the controller refuses
2570
+ * unbounded swaps so the SDK rejects them at the boundary.
2571
+ */
2572
+ export declare function mapQuoteResponseToAggregatorSwap(quote: StellarAggregatorQuoteResponseDto): AggregatorSwapDto;
2573
+ export declare function buildSdk(client: XOXNOClient): SDK;
2574
+
2575
+ export {};