@highlightxyz/sdk 0.4.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/v1/gen/sdk.gen.d.ts +40 -11
- package/lib/v1/gen/sdk.gen.d.ts.map +1 -1
- package/lib/v1/gen/sdk.gen.js +68 -15
- package/lib/v1/gen/types.gen.d.ts +202 -106
- package/lib/v1/gen/types.gen.d.ts.map +1 -1
- package/lib/v1/gen/types.gen.js +30 -9
- package/package.json +1 -1
|
@@ -146,6 +146,38 @@ export declare enum SaleLifecycle {
|
|
|
146
146
|
Ended = "Ended",
|
|
147
147
|
Paused = "Paused"
|
|
148
148
|
}
|
|
149
|
+
export declare enum MintStatus {
|
|
150
|
+
Minting = "minting",
|
|
151
|
+
Upcoming = "upcoming",
|
|
152
|
+
Ended = "ended"
|
|
153
|
+
}
|
|
154
|
+
export type CollectionDiscoverItem = {
|
|
155
|
+
highlightId: string;
|
|
156
|
+
collectionId: string | null;
|
|
157
|
+
name: string;
|
|
158
|
+
type: CollectionType;
|
|
159
|
+
chainId: number;
|
|
160
|
+
imageMedia: MediaAsset | null;
|
|
161
|
+
creator: {
|
|
162
|
+
id: string;
|
|
163
|
+
displayName: string | null;
|
|
164
|
+
primaryAddress: string | null;
|
|
165
|
+
ensName: string | null;
|
|
166
|
+
};
|
|
167
|
+
price: string | null;
|
|
168
|
+
currency: SaleCurrency | null;
|
|
169
|
+
mintCount: number;
|
|
170
|
+
mintStatus: MintStatus | null;
|
|
171
|
+
};
|
|
172
|
+
export type CollectionDiscoverResponse = {
|
|
173
|
+
items: Array<CollectionDiscoverItem>;
|
|
174
|
+
total: number;
|
|
175
|
+
};
|
|
176
|
+
export declare enum CollectionDiscoverSort {
|
|
177
|
+
Trending = "trending",
|
|
178
|
+
Recent = "recent",
|
|
179
|
+
Minted = "minted"
|
|
180
|
+
}
|
|
149
181
|
export type CollectionTrendingItem = {
|
|
150
182
|
rank: number;
|
|
151
183
|
highlightId: string;
|
|
@@ -166,8 +198,40 @@ export type CollectionTrendingItem = {
|
|
|
166
198
|
export type CollectionTrendingResponse = {
|
|
167
199
|
items: Array<CollectionTrendingItem>;
|
|
168
200
|
};
|
|
201
|
+
export declare enum TokenStatus {
|
|
202
|
+
PendingReveal = "PendingReveal",
|
|
203
|
+
PendingIndex = "PendingIndex",
|
|
204
|
+
Ready = "Ready",
|
|
205
|
+
FailedReveal = "FailedReveal",
|
|
206
|
+
FailedIndex = "FailedIndex"
|
|
207
|
+
}
|
|
208
|
+
export type Token = {
|
|
209
|
+
id: string;
|
|
210
|
+
collectionId: string;
|
|
211
|
+
tokenId: string;
|
|
212
|
+
status: TokenStatus;
|
|
213
|
+
name: string | null;
|
|
214
|
+
description: string | null;
|
|
215
|
+
externalUrl: string | null;
|
|
216
|
+
attributes: Array<{
|
|
217
|
+
trait_type: string;
|
|
218
|
+
value: string | number;
|
|
219
|
+
display_type?: string;
|
|
220
|
+
}> | null;
|
|
221
|
+
properties: {
|
|
222
|
+
[key: string]: unknown;
|
|
223
|
+
} | null;
|
|
224
|
+
imageMediaId: string | null;
|
|
225
|
+
imageMedia: MediaAsset | null;
|
|
226
|
+
animationMediaId: string | null;
|
|
227
|
+
animationMedia: MediaAsset | null;
|
|
228
|
+
mintedAt: string | null;
|
|
229
|
+
createdAt: string;
|
|
230
|
+
updatedAt: string;
|
|
231
|
+
};
|
|
169
232
|
export type CollectionFeaturedItem = {
|
|
170
233
|
highlightId: string;
|
|
234
|
+
collectionId: string | null;
|
|
171
235
|
name: string;
|
|
172
236
|
imageMedia: MediaAsset | null;
|
|
173
237
|
creator: {
|
|
@@ -176,6 +240,11 @@ export type CollectionFeaturedItem = {
|
|
|
176
240
|
primaryAddress: string | null;
|
|
177
241
|
ensName: string | null;
|
|
178
242
|
};
|
|
243
|
+
chainId: number;
|
|
244
|
+
type: CollectionType;
|
|
245
|
+
price: string | null;
|
|
246
|
+
currency: SaleCurrency | null;
|
|
247
|
+
firstToken: Token | null;
|
|
179
248
|
note: string | null;
|
|
180
249
|
};
|
|
181
250
|
export type CollectionFeaturedResponse = {
|
|
@@ -434,13 +503,6 @@ export type DutchAuctionStanding = {
|
|
|
434
503
|
auctionInFPP: boolean;
|
|
435
504
|
viewer: DutchAuctionViewerStanding | null;
|
|
436
505
|
};
|
|
437
|
-
export declare enum TokenStatus {
|
|
438
|
-
PendingReveal = "PendingReveal",
|
|
439
|
-
PendingIndex = "PendingIndex",
|
|
440
|
-
Ready = "Ready",
|
|
441
|
-
FailedReveal = "FailedReveal",
|
|
442
|
-
FailedIndex = "FailedIndex"
|
|
443
|
-
}
|
|
444
506
|
export type TokenAttributeFacet = {
|
|
445
507
|
traitType: string;
|
|
446
508
|
values: Array<{
|
|
@@ -524,6 +586,16 @@ export type GateFarcasterUserPreview = {
|
|
|
524
586
|
displayName: string | null;
|
|
525
587
|
pfpUrl: string | null;
|
|
526
588
|
};
|
|
589
|
+
export type IndexerStatusChain = {
|
|
590
|
+
chainId: number;
|
|
591
|
+
chainName: string;
|
|
592
|
+
lastProcessedBlock: string;
|
|
593
|
+
lastBlockHash: string | null;
|
|
594
|
+
updatedAt: string;
|
|
595
|
+
};
|
|
596
|
+
export type IndexerStatusResponse = {
|
|
597
|
+
chains: Array<IndexerStatusChain>;
|
|
598
|
+
};
|
|
527
599
|
export type MediaChildrenList = {
|
|
528
600
|
items: Array<MediaAsset>;
|
|
529
601
|
nextCursor: string | null;
|
|
@@ -584,6 +656,31 @@ export type UserProfile = {
|
|
|
584
656
|
avatarMediaId: string | null;
|
|
585
657
|
avatarMedia: MediaAsset | null;
|
|
586
658
|
};
|
|
659
|
+
export type Artist = {
|
|
660
|
+
id: string;
|
|
661
|
+
displayName: string | null;
|
|
662
|
+
primaryAddress: string | null;
|
|
663
|
+
ensName: string | null;
|
|
664
|
+
bio: string | null;
|
|
665
|
+
avatarMedia: MediaAsset | null;
|
|
666
|
+
collectionCount: number;
|
|
667
|
+
hasLiveSale: boolean;
|
|
668
|
+
previewMedia: Array<MediaAsset>;
|
|
669
|
+
};
|
|
670
|
+
export type ArtistsResponse = {
|
|
671
|
+
items: Array<Artist>;
|
|
672
|
+
total: number;
|
|
673
|
+
};
|
|
674
|
+
export declare enum ArtistSort {
|
|
675
|
+
Collections = "collections",
|
|
676
|
+
Recent = "recent",
|
|
677
|
+
Az = "az"
|
|
678
|
+
}
|
|
679
|
+
export type ArtistSpotlight = {
|
|
680
|
+
artist: Artist;
|
|
681
|
+
note: string | null;
|
|
682
|
+
curated: boolean;
|
|
683
|
+
};
|
|
587
684
|
export type PublicUserProfile = {
|
|
588
685
|
primaryAddress: string;
|
|
589
686
|
walletAddresses: Array<string>;
|
|
@@ -760,7 +857,7 @@ export type CollectionListResponse = CollectionListResponses[keyof CollectionLis
|
|
|
760
857
|
export type CollectionCreateData = {
|
|
761
858
|
body: {
|
|
762
859
|
name: string;
|
|
763
|
-
description
|
|
860
|
+
description?: string;
|
|
764
861
|
contractId?: string;
|
|
765
862
|
contract?: {
|
|
766
863
|
chainId: number;
|
|
@@ -914,6 +1011,32 @@ export type CollectionCreateResponses = {
|
|
|
914
1011
|
};
|
|
915
1012
|
};
|
|
916
1013
|
export type CollectionCreateResponse = CollectionCreateResponses[keyof CollectionCreateResponses];
|
|
1014
|
+
export type CollectionDiscoverData = {
|
|
1015
|
+
body?: never;
|
|
1016
|
+
path?: never;
|
|
1017
|
+
query?: {
|
|
1018
|
+
type?: CollectionType;
|
|
1019
|
+
chainId?: number;
|
|
1020
|
+
sort?: CollectionDiscoverSort;
|
|
1021
|
+
limit?: number;
|
|
1022
|
+
offset?: number;
|
|
1023
|
+
};
|
|
1024
|
+
url: "/collection/discover";
|
|
1025
|
+
};
|
|
1026
|
+
export type CollectionDiscoverErrors = {
|
|
1027
|
+
/**
|
|
1028
|
+
* Invalid request
|
|
1029
|
+
*/
|
|
1030
|
+
400: ApiErrorResponse;
|
|
1031
|
+
};
|
|
1032
|
+
export type CollectionDiscoverError = CollectionDiscoverErrors[keyof CollectionDiscoverErrors];
|
|
1033
|
+
export type CollectionDiscoverResponses = {
|
|
1034
|
+
/**
|
|
1035
|
+
* Discovered collections
|
|
1036
|
+
*/
|
|
1037
|
+
200: CollectionDiscoverResponse;
|
|
1038
|
+
};
|
|
1039
|
+
export type CollectionDiscoverResponse2 = CollectionDiscoverResponses[keyof CollectionDiscoverResponses];
|
|
917
1040
|
export type CollectionTrendingData = {
|
|
918
1041
|
body?: never;
|
|
919
1042
|
path?: never;
|
|
@@ -2619,30 +2742,7 @@ export type TokenListResponses = {
|
|
|
2619
2742
|
* List of tokens
|
|
2620
2743
|
*/
|
|
2621
2744
|
200: {
|
|
2622
|
-
items: Array<
|
|
2623
|
-
id: string;
|
|
2624
|
-
collectionId: string;
|
|
2625
|
-
tokenId: string;
|
|
2626
|
-
status: TokenStatus;
|
|
2627
|
-
name: string | null;
|
|
2628
|
-
description: string | null;
|
|
2629
|
-
externalUrl: string | null;
|
|
2630
|
-
attributes: Array<{
|
|
2631
|
-
trait_type: string;
|
|
2632
|
-
value: string | number;
|
|
2633
|
-
display_type?: string;
|
|
2634
|
-
}> | null;
|
|
2635
|
-
properties: {
|
|
2636
|
-
[key: string]: unknown;
|
|
2637
|
-
} | null;
|
|
2638
|
-
imageMediaId: string | null;
|
|
2639
|
-
imageMedia: MediaAsset | null;
|
|
2640
|
-
animationMediaId: string | null;
|
|
2641
|
-
animationMedia: MediaAsset | null;
|
|
2642
|
-
mintedAt: string | null;
|
|
2643
|
-
createdAt: string;
|
|
2644
|
-
updatedAt: string;
|
|
2645
|
-
}>;
|
|
2745
|
+
items: Array<Token>;
|
|
2646
2746
|
pageInfo: {
|
|
2647
2747
|
page: number;
|
|
2648
2748
|
limit: number;
|
|
@@ -2698,30 +2798,7 @@ export type TokenGetResponses = {
|
|
|
2698
2798
|
/**
|
|
2699
2799
|
* Token details
|
|
2700
2800
|
*/
|
|
2701
|
-
200:
|
|
2702
|
-
id: string;
|
|
2703
|
-
collectionId: string;
|
|
2704
|
-
tokenId: string;
|
|
2705
|
-
status: TokenStatus;
|
|
2706
|
-
name: string | null;
|
|
2707
|
-
description: string | null;
|
|
2708
|
-
externalUrl: string | null;
|
|
2709
|
-
attributes: Array<{
|
|
2710
|
-
trait_type: string;
|
|
2711
|
-
value: string | number;
|
|
2712
|
-
display_type?: string;
|
|
2713
|
-
}> | null;
|
|
2714
|
-
properties: {
|
|
2715
|
-
[key: string]: unknown;
|
|
2716
|
-
} | null;
|
|
2717
|
-
imageMediaId: string | null;
|
|
2718
|
-
imageMedia: MediaAsset | null;
|
|
2719
|
-
animationMediaId: string | null;
|
|
2720
|
-
animationMedia: MediaAsset | null;
|
|
2721
|
-
mintedAt: string | null;
|
|
2722
|
-
createdAt: string;
|
|
2723
|
-
updatedAt: string;
|
|
2724
|
-
};
|
|
2801
|
+
200: Token;
|
|
2725
2802
|
};
|
|
2726
2803
|
export type TokenGetResponse = TokenGetResponses[keyof TokenGetResponses];
|
|
2727
2804
|
export type TokenListOwnersData = {
|
|
@@ -3416,6 +3493,26 @@ export type GatePreviewFarcasterResponses = {
|
|
|
3416
3493
|
200: GateFarcasterUserPreview;
|
|
3417
3494
|
};
|
|
3418
3495
|
export type GatePreviewFarcasterResponse = GatePreviewFarcasterResponses[keyof GatePreviewFarcasterResponses];
|
|
3496
|
+
export type GetIndexerStatusData = {
|
|
3497
|
+
body?: never;
|
|
3498
|
+
path?: never;
|
|
3499
|
+
query?: never;
|
|
3500
|
+
url: "/indexer/status";
|
|
3501
|
+
};
|
|
3502
|
+
export type GetIndexerStatusErrors = {
|
|
3503
|
+
/**
|
|
3504
|
+
* Unauthorized
|
|
3505
|
+
*/
|
|
3506
|
+
401: ApiErrorResponse;
|
|
3507
|
+
};
|
|
3508
|
+
export type GetIndexerStatusError = GetIndexerStatusErrors[keyof GetIndexerStatusErrors];
|
|
3509
|
+
export type GetIndexerStatusResponses = {
|
|
3510
|
+
/**
|
|
3511
|
+
* Per-chain indexer cursors
|
|
3512
|
+
*/
|
|
3513
|
+
200: IndexerStatusResponse;
|
|
3514
|
+
};
|
|
3515
|
+
export type GetIndexerStatusResponse = GetIndexerStatusResponses[keyof GetIndexerStatusResponses];
|
|
3419
3516
|
export type PostIndexerChainsByChainIdActivateData = {
|
|
3420
3517
|
body?: never;
|
|
3421
3518
|
path: {
|
|
@@ -3464,31 +3561,6 @@ export type PostIndexerChainsByChainIdResetResponses = {
|
|
|
3464
3561
|
*/
|
|
3465
3562
|
200: unknown;
|
|
3466
3563
|
};
|
|
3467
|
-
export type PostIndexerChainsByChainIdPollData = {
|
|
3468
|
-
body?: never;
|
|
3469
|
-
path: {
|
|
3470
|
-
chainId: number;
|
|
3471
|
-
};
|
|
3472
|
-
query?: never;
|
|
3473
|
-
url: "/indexer/chains/{chainId}/poll";
|
|
3474
|
-
};
|
|
3475
|
-
export type PostIndexerChainsByChainIdPollErrors = {
|
|
3476
|
-
/**
|
|
3477
|
-
* Unauthorized
|
|
3478
|
-
*/
|
|
3479
|
-
401: ApiErrorResponse;
|
|
3480
|
-
/**
|
|
3481
|
-
* Poll failed
|
|
3482
|
-
*/
|
|
3483
|
-
500: ApiErrorResponse;
|
|
3484
|
-
};
|
|
3485
|
-
export type PostIndexerChainsByChainIdPollError = PostIndexerChainsByChainIdPollErrors[keyof PostIndexerChainsByChainIdPollErrors];
|
|
3486
|
-
export type PostIndexerChainsByChainIdPollResponses = {
|
|
3487
|
-
/**
|
|
3488
|
-
* Poll completed
|
|
3489
|
-
*/
|
|
3490
|
-
200: unknown;
|
|
3491
|
-
};
|
|
3492
3564
|
export type MechanicListData = {
|
|
3493
3565
|
body?: never;
|
|
3494
3566
|
path?: never;
|
|
@@ -4040,7 +4112,7 @@ export type TxSubmitErrors = {
|
|
|
4040
4112
|
export type TxSubmitError = TxSubmitErrors[keyof TxSubmitErrors];
|
|
4041
4113
|
export type TxSubmitResponses = {
|
|
4042
4114
|
/**
|
|
4043
|
-
* Transaction accepted for
|
|
4115
|
+
* Transaction accepted for tracking
|
|
4044
4116
|
*/
|
|
4045
4117
|
202: TxStatusSnapshot;
|
|
4046
4118
|
};
|
|
@@ -4144,6 +4216,53 @@ export type ProfileUpdateResponses = {
|
|
|
4144
4216
|
200: UserProfile;
|
|
4145
4217
|
};
|
|
4146
4218
|
export type ProfileUpdateResponse = ProfileUpdateResponses[keyof ProfileUpdateResponses];
|
|
4219
|
+
export type ProfileArtistsData = {
|
|
4220
|
+
body?: never;
|
|
4221
|
+
path?: never;
|
|
4222
|
+
query?: {
|
|
4223
|
+
search?: string;
|
|
4224
|
+
sort?: ArtistSort;
|
|
4225
|
+
limit?: number;
|
|
4226
|
+
offset?: number;
|
|
4227
|
+
};
|
|
4228
|
+
url: "/user/artists";
|
|
4229
|
+
};
|
|
4230
|
+
export type ProfileArtistsErrors = {
|
|
4231
|
+
/**
|
|
4232
|
+
* Invalid request
|
|
4233
|
+
*/
|
|
4234
|
+
400: ApiErrorResponse;
|
|
4235
|
+
};
|
|
4236
|
+
export type ProfileArtistsError = ProfileArtistsErrors[keyof ProfileArtistsErrors];
|
|
4237
|
+
export type ProfileArtistsResponses = {
|
|
4238
|
+
/**
|
|
4239
|
+
* Ranked artist directory
|
|
4240
|
+
*/
|
|
4241
|
+
200: ArtistsResponse;
|
|
4242
|
+
};
|
|
4243
|
+
export type ProfileArtistsResponse = ProfileArtistsResponses[keyof ProfileArtistsResponses];
|
|
4244
|
+
export type ProfileArtistSpotlightData = {
|
|
4245
|
+
body?: never;
|
|
4246
|
+
path?: never;
|
|
4247
|
+
query?: {
|
|
4248
|
+
surface?: string;
|
|
4249
|
+
};
|
|
4250
|
+
url: "/user/artists/spotlight";
|
|
4251
|
+
};
|
|
4252
|
+
export type ProfileArtistSpotlightErrors = {
|
|
4253
|
+
/**
|
|
4254
|
+
* No artist to spotlight
|
|
4255
|
+
*/
|
|
4256
|
+
404: ApiErrorResponse;
|
|
4257
|
+
};
|
|
4258
|
+
export type ProfileArtistSpotlightError = ProfileArtistSpotlightErrors[keyof ProfileArtistSpotlightErrors];
|
|
4259
|
+
export type ProfileArtistSpotlightResponses = {
|
|
4260
|
+
/**
|
|
4261
|
+
* Spotlighted artist
|
|
4262
|
+
*/
|
|
4263
|
+
200: ArtistSpotlight;
|
|
4264
|
+
};
|
|
4265
|
+
export type ProfileArtistSpotlightResponse = ProfileArtistSpotlightResponses[keyof ProfileArtistSpotlightResponses];
|
|
4147
4266
|
export type ProfilePublicData = {
|
|
4148
4267
|
body?: never;
|
|
4149
4268
|
path: {
|
|
@@ -4193,30 +4312,7 @@ export type ProfileTokensResponses = {
|
|
|
4193
4312
|
* Paginated wallet token holdings
|
|
4194
4313
|
*/
|
|
4195
4314
|
200: {
|
|
4196
|
-
items: Array<
|
|
4197
|
-
id: string;
|
|
4198
|
-
collectionId: string;
|
|
4199
|
-
tokenId: string;
|
|
4200
|
-
status: TokenStatus;
|
|
4201
|
-
name: string | null;
|
|
4202
|
-
description: string | null;
|
|
4203
|
-
externalUrl: string | null;
|
|
4204
|
-
attributes: Array<{
|
|
4205
|
-
trait_type: string;
|
|
4206
|
-
value: string | number;
|
|
4207
|
-
display_type?: string;
|
|
4208
|
-
}> | null;
|
|
4209
|
-
properties: {
|
|
4210
|
-
[key: string]: unknown;
|
|
4211
|
-
} | null;
|
|
4212
|
-
imageMediaId: string | null;
|
|
4213
|
-
imageMedia: MediaAsset | null;
|
|
4214
|
-
animationMediaId: string | null;
|
|
4215
|
-
animationMedia: MediaAsset | null;
|
|
4216
|
-
mintedAt: string | null;
|
|
4217
|
-
createdAt: string;
|
|
4218
|
-
updatedAt: string;
|
|
4219
|
-
}>;
|
|
4315
|
+
items: Array<Token>;
|
|
4220
4316
|
pageInfo: {
|
|
4221
4317
|
page: number;
|
|
4222
4318
|
limit: number;
|