@highlightxyz/sdk 0.3.0 → 0.5.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.
@@ -12,9 +12,11 @@ export declare enum MediaKind {
12
12
  File = "File",
13
13
  Directory = "Directory"
14
14
  }
15
- export declare enum MediaScope {
15
+ export declare enum MediaNamespace {
16
16
  Collection = "Collection",
17
- User = "User"
17
+ User = "User",
18
+ Contract = "Contract",
19
+ System = "System"
18
20
  }
19
21
  export declare enum MediaProvenance {
20
22
  UserUpload = "UserUpload",
@@ -49,7 +51,6 @@ export type MediaStorageLocation = {
49
51
  provider: StorageProvider;
50
52
  role: StorageRole;
51
53
  reference: string;
52
- url: string | null;
53
54
  status: LocationStatus;
54
55
  attempts: number;
55
56
  lastError: string | null;
@@ -64,10 +65,10 @@ export type MediaAsset = {
64
65
  id: string;
65
66
  accountId: string;
66
67
  kind: MediaKind;
67
- scope: MediaScope;
68
+ namespace: MediaNamespace;
68
69
  provenance: MediaProvenance;
69
70
  status: MediaAssetStatus;
70
- fileName: string;
71
+ fileName: string | null;
71
72
  mimeType: string | null;
72
73
  fileSize: number | null;
73
74
  contentHash: string | null;
@@ -78,11 +79,6 @@ export type MediaAsset = {
78
79
  createdAt: string;
79
80
  updatedAt: string;
80
81
  };
81
- export declare enum RevealStrategy {
82
- Noop = "Noop",
83
- PreAssigned = "PreAssigned",
84
- Generative = "Generative"
85
- }
86
82
  export declare enum CollectionSource {
87
83
  Internal = "Internal",
88
84
  External = "External"
@@ -170,6 +166,37 @@ export type CollectionTrendingItem = {
170
166
  export type CollectionTrendingResponse = {
171
167
  items: Array<CollectionTrendingItem>;
172
168
  };
169
+ export declare enum TokenStatus {
170
+ PendingReveal = "PendingReveal",
171
+ PendingIndex = "PendingIndex",
172
+ Ready = "Ready",
173
+ FailedReveal = "FailedReveal",
174
+ FailedIndex = "FailedIndex"
175
+ }
176
+ export type Token = {
177
+ id: string;
178
+ collectionId: string;
179
+ tokenId: string;
180
+ status: TokenStatus;
181
+ name: string | null;
182
+ description: string | null;
183
+ externalUrl: string | null;
184
+ attributes: Array<{
185
+ trait_type: string;
186
+ value: string | number;
187
+ display_type?: string;
188
+ }> | null;
189
+ properties: {
190
+ [key: string]: unknown;
191
+ } | null;
192
+ imageMediaId: string | null;
193
+ imageMedia: MediaAsset | null;
194
+ animationMediaId: string | null;
195
+ animationMedia: MediaAsset | null;
196
+ mintedAt: string | null;
197
+ createdAt: string;
198
+ updatedAt: string;
199
+ };
173
200
  export type CollectionFeaturedItem = {
174
201
  highlightId: string;
175
202
  name: string;
@@ -180,6 +207,7 @@ export type CollectionFeaturedItem = {
180
207
  primaryAddress: string | null;
181
208
  ensName: string | null;
182
209
  };
210
+ firstToken: Token | null;
183
211
  note: string | null;
184
212
  };
185
213
  export type CollectionFeaturedResponse = {
@@ -190,7 +218,9 @@ export type SeriesPreviewEntry = {
190
218
  metadataId: number;
191
219
  name: string | null;
192
220
  description: string | null;
221
+ image: MediaAsset | null;
193
222
  imageUrl: string | null;
223
+ animation: MediaAsset | null;
194
224
  animationUrl: string | null;
195
225
  attributes: Array<{
196
226
  traitType: string;
@@ -200,6 +230,33 @@ export type SeriesPreviewEntry = {
200
230
  export type SeriesPreviewsResponse = {
201
231
  items: Array<SeriesPreviewEntry>;
202
232
  };
233
+ export type MediaUploadInstructions = {
234
+ url: string;
235
+ method: "PUT";
236
+ headers: {
237
+ [key: string]: string;
238
+ };
239
+ expiresAt: string;
240
+ };
241
+ export type MediaUploadSession = {
242
+ media: MediaAsset;
243
+ uploadMediaId: string;
244
+ upload: MediaUploadInstructions;
245
+ };
246
+ export declare enum MediaPurpose {
247
+ CollectionLogo = "CollectionLogo",
248
+ EditionImage = "EditionImage",
249
+ EditionAnimation = "EditionAnimation",
250
+ SeriesAssets = "SeriesAssets",
251
+ GenerativeCode = "GenerativeCode",
252
+ UserAvatar = "UserAvatar"
253
+ }
254
+ export type MediaContentHash = string;
255
+ export type CollectionUpdateMetadataInput = {
256
+ name?: string;
257
+ description?: string | null;
258
+ logoMediaId?: string;
259
+ };
203
260
  export type EditionContractExecution = {
204
261
  chainId: number;
205
262
  to: string | null;
@@ -212,14 +269,13 @@ export type EditionUpdateResponse = {
212
269
  collectionId: string | null;
213
270
  name: string;
214
271
  description: string | null;
215
- logoMediaId: string;
216
- logoMedia: MediaAsset;
272
+ logoMediaId: string | null;
273
+ logoMedia: MediaAsset | null;
217
274
  baseUriId: string | null;
218
275
  royaltyAddress: string | null;
219
276
  royaltyAmount: number | null;
220
277
  tokenManager: string | null;
221
278
  status: "Draft" | "InProgress" | "Live" | "Migrated" | "Disabled" | "Archived";
222
- revealStrategy: RevealStrategy;
223
279
  source: CollectionSource;
224
280
  type: CollectionType;
225
281
  contract: {
@@ -232,6 +288,7 @@ export type EditionUpdateResponse = {
232
288
  address: string | null;
233
289
  symbol: string;
234
290
  contractUri: string | null;
291
+ contractMetadataMediaId: string | null;
235
292
  status: "Draft" | "Deploying" | "Live";
236
293
  createdAt: string;
237
294
  updatedAt: string;
@@ -269,6 +326,7 @@ export type EditionUpdateResponse = {
269
326
  description?: string;
270
327
  imageMediaId?: string;
271
328
  animationMediaId?: string;
329
+ metadataMediaId?: string;
272
330
  imageMedia?: MediaAsset | null;
273
331
  animationMedia?: MediaAsset | null;
274
332
  attributes?: Array<{
@@ -303,7 +361,6 @@ export type EditionUpdateResponse = {
303
361
  paymentRecipient: string;
304
362
  accessMode: SaleAccessMode;
305
363
  gateId: string | null;
306
- gasSponsored: boolean;
307
364
  status: SaleStatus;
308
365
  paused: boolean;
309
366
  mechanicId: string | null;
@@ -330,6 +387,8 @@ export type RankedAuctionViewerStanding = {
330
387
  numWinningBids: number;
331
388
  numClaimed: number;
332
389
  tokensLeftToClaim: number;
390
+ numBids: number;
391
+ rebateAmount: string;
333
392
  };
334
393
  export type RankedAuctionStandings = {
335
394
  saleId: string;
@@ -338,6 +397,9 @@ export type RankedAuctionStandings = {
338
397
  currency: SaleCurrency;
339
398
  maxWinners: number;
340
399
  totalBids: number;
400
+ endTimestamp: number;
401
+ rebatesEnabled: boolean;
402
+ maxBidsPerWallet: number;
341
403
  bids: Array<RankedAuctionStandingBid>;
342
404
  viewer: RankedAuctionViewerStanding | null;
343
405
  };
@@ -361,6 +423,9 @@ export type EnglishAuctionStanding = {
361
423
  creatorEarnings: string;
362
424
  platformBps: number;
363
425
  totalBids: number;
426
+ minBidIncrementBps: number;
427
+ bufferSeconds: number;
428
+ maxClaimsPerAccount: number;
364
429
  viewer: EnglishAuctionViewerStanding | null;
365
430
  };
366
431
  export type EnglishAuctionBidEntry = {
@@ -376,13 +441,31 @@ export type EnglishAuctionBidHistory = {
376
441
  currency: SaleCurrency;
377
442
  bids: Array<EnglishAuctionBidEntry>;
378
443
  };
379
- export declare enum TokenStatus {
380
- PendingReveal = "PendingReveal",
381
- PendingIndex = "PendingIndex",
382
- Ready = "Ready",
383
- FailedReveal = "FailedReveal",
384
- FailedIndex = "FailedIndex"
385
- }
444
+ export type DutchAuctionViewerStanding = {
445
+ address: string;
446
+ numTokensBought: number;
447
+ numRebates: number;
448
+ totalPosted: string;
449
+ rebateAmount: string;
450
+ rebateClaimable: boolean;
451
+ };
452
+ export type DutchAuctionStanding = {
453
+ saleId: string;
454
+ currency: SaleCurrency;
455
+ prices: Array<string>;
456
+ startTimestamp: number;
457
+ endTimestamp: number;
458
+ periodDuration: number;
459
+ clearingPrice: string;
460
+ currentSupply: number;
461
+ totalSales: string;
462
+ escrowedFunds: string;
463
+ fundsFinalized: boolean;
464
+ fundsWithdrawn: boolean;
465
+ auctionExhausted: boolean;
466
+ auctionInFPP: boolean;
467
+ viewer: DutchAuctionViewerStanding | null;
468
+ };
386
469
  export type TokenAttributeFacet = {
387
470
  traitType: string;
388
471
  values: Array<{
@@ -401,10 +484,17 @@ export type TokenOwnersResponse = {
401
484
  export type TokenRedriveSummary = {
402
485
  candidates: number;
403
486
  scheduled: number;
404
- indexOnly: number;
487
+ fromChain: number;
405
488
  skippedRecent: number;
406
489
  failed: number;
407
490
  };
491
+ export type MediaHostsResponse = {
492
+ assets: string;
493
+ metadata: string;
494
+ legacyAssets: string;
495
+ arweaveGateway: string;
496
+ ipfsGateway: string;
497
+ };
408
498
  export declare enum GateMatchMode {
409
499
  All = "ALL",
410
500
  Any = "ANY"
@@ -459,16 +549,15 @@ export type GateFarcasterUserPreview = {
459
549
  displayName: string | null;
460
550
  pfpUrl: string | null;
461
551
  };
462
- export type MediaUploadInstructions = {
463
- url: string;
464
- method: "PUT";
465
- headers: {
466
- [key: string]: string;
467
- };
552
+ export type IndexerStatusChain = {
553
+ chainId: number;
554
+ chainName: string;
555
+ lastProcessedBlock: string;
556
+ lastBlockHash: string | null;
557
+ updatedAt: string;
468
558
  };
469
- export type MediaUploadSession = {
470
- media: MediaAsset;
471
- upload: MediaUploadInstructions;
559
+ export type IndexerStatusResponse = {
560
+ chains: Array<IndexerStatusChain>;
472
561
  };
473
562
  export type MediaChildrenList = {
474
563
  items: Array<MediaAsset>;
@@ -587,14 +676,13 @@ export type CollectionListResponses = {
587
676
  collectionId: string | null;
588
677
  name: string;
589
678
  description: string | null;
590
- logoMediaId: string;
591
- logoMedia: MediaAsset;
679
+ logoMediaId: string | null;
680
+ logoMedia: MediaAsset | null;
592
681
  baseUriId: string | null;
593
682
  royaltyAddress: string | null;
594
683
  royaltyAmount: number | null;
595
684
  tokenManager: string | null;
596
685
  status: "Draft" | "InProgress" | "Live" | "Migrated" | "Disabled" | "Archived";
597
- revealStrategy: RevealStrategy;
598
686
  source: CollectionSource;
599
687
  type: CollectionType;
600
688
  contract: {
@@ -607,6 +695,7 @@ export type CollectionListResponses = {
607
695
  address: string | null;
608
696
  symbol: string;
609
697
  contractUri: string | null;
698
+ contractMetadataMediaId: string | null;
610
699
  status: "Draft" | "Deploying" | "Live";
611
700
  createdAt: string;
612
701
  updatedAt: string;
@@ -644,6 +733,7 @@ export type CollectionListResponses = {
644
733
  description?: string;
645
734
  imageMediaId?: string;
646
735
  animationMediaId?: string;
736
+ metadataMediaId?: string;
647
737
  imageMedia?: MediaAsset | null;
648
738
  animationMedia?: MediaAsset | null;
649
739
  attributes?: Array<{
@@ -678,7 +768,6 @@ export type CollectionListResponses = {
678
768
  paymentRecipient: string;
679
769
  accessMode: SaleAccessMode;
680
770
  gateId: string | null;
681
- gasSponsored: boolean;
682
771
  status: SaleStatus;
683
772
  paused: boolean;
684
773
  mechanicId: string | null;
@@ -714,8 +803,6 @@ export type CollectionCreateData = {
714
803
  symbol: string;
715
804
  standard: ContractStandard;
716
805
  };
717
- logoMediaId: string;
718
- image: string;
719
806
  type: CollectionType;
720
807
  royalty?: {
721
808
  address: string;
@@ -755,14 +842,13 @@ export type CollectionCreateResponses = {
755
842
  collectionId: string | null;
756
843
  name: string;
757
844
  description: string | null;
758
- logoMediaId: string;
759
- logoMedia: MediaAsset;
845
+ logoMediaId: string | null;
846
+ logoMedia: MediaAsset | null;
760
847
  baseUriId: string | null;
761
848
  royaltyAddress: string | null;
762
849
  royaltyAmount: number | null;
763
850
  tokenManager: string | null;
764
851
  status: "Draft" | "InProgress" | "Live" | "Migrated" | "Disabled" | "Archived";
765
- revealStrategy: RevealStrategy;
766
852
  source: CollectionSource;
767
853
  type: CollectionType;
768
854
  contract: {
@@ -775,6 +861,7 @@ export type CollectionCreateResponses = {
775
861
  address: string | null;
776
862
  symbol: string;
777
863
  contractUri: string | null;
864
+ contractMetadataMediaId: string | null;
778
865
  status: "Draft" | "Deploying" | "Live";
779
866
  createdAt: string;
780
867
  updatedAt: string;
@@ -812,6 +899,7 @@ export type CollectionCreateResponses = {
812
899
  description?: string;
813
900
  imageMediaId?: string;
814
901
  animationMediaId?: string;
902
+ metadataMediaId?: string;
815
903
  imageMedia?: MediaAsset | null;
816
904
  animationMedia?: MediaAsset | null;
817
905
  attributes?: Array<{
@@ -846,7 +934,6 @@ export type CollectionCreateResponses = {
846
934
  paymentRecipient: string;
847
935
  accessMode: SaleAccessMode;
848
936
  gateId: string | null;
849
- gasSponsored: boolean;
850
937
  status: SaleStatus;
851
938
  paused: boolean;
852
939
  mechanicId: string | null;
@@ -937,14 +1024,13 @@ export type CollectionGetResponses = {
937
1024
  collectionId: string | null;
938
1025
  name: string;
939
1026
  description: string | null;
940
- logoMediaId: string;
941
- logoMedia: MediaAsset;
1027
+ logoMediaId: string | null;
1028
+ logoMedia: MediaAsset | null;
942
1029
  baseUriId: string | null;
943
1030
  royaltyAddress: string | null;
944
1031
  royaltyAmount: number | null;
945
1032
  tokenManager: string | null;
946
1033
  status: "Draft" | "InProgress" | "Live" | "Migrated" | "Disabled" | "Archived";
947
- revealStrategy: RevealStrategy;
948
1034
  source: CollectionSource;
949
1035
  type: CollectionType;
950
1036
  contract: {
@@ -957,6 +1043,7 @@ export type CollectionGetResponses = {
957
1043
  address: string | null;
958
1044
  symbol: string;
959
1045
  contractUri: string | null;
1046
+ contractMetadataMediaId: string | null;
960
1047
  status: "Draft" | "Deploying" | "Live";
961
1048
  createdAt: string;
962
1049
  updatedAt: string;
@@ -994,6 +1081,7 @@ export type CollectionGetResponses = {
994
1081
  description?: string;
995
1082
  imageMediaId?: string;
996
1083
  animationMediaId?: string;
1084
+ metadataMediaId?: string;
997
1085
  imageMedia?: MediaAsset | null;
998
1086
  animationMedia?: MediaAsset | null;
999
1087
  attributes?: Array<{
@@ -1028,7 +1116,6 @@ export type CollectionGetResponses = {
1028
1116
  paymentRecipient: string;
1029
1117
  accessMode: SaleAccessMode;
1030
1118
  gateId: string | null;
1031
- gasSponsored: boolean;
1032
1119
  status: SaleStatus;
1033
1120
  paused: boolean;
1034
1121
  mechanicId: string | null;
@@ -1072,15 +1159,15 @@ export type CollectionListPreviewsResponses = {
1072
1159
  200: SeriesPreviewsResponse;
1073
1160
  };
1074
1161
  export type CollectionListPreviewsResponse = CollectionListPreviewsResponses[keyof CollectionListPreviewsResponses];
1075
- export type CollectionFinalizeBaseUriData = {
1162
+ export type CollectionArchiveBaseUriData = {
1076
1163
  body?: never;
1077
1164
  path: {
1078
1165
  highlightId: string;
1079
1166
  };
1080
1167
  query?: never;
1081
- url: "/collection/{highlightId}/finalize-base-uri";
1168
+ url: "/collection/{highlightId}/archive-base-uri";
1082
1169
  };
1083
- export type CollectionFinalizeBaseUriErrors = {
1170
+ export type CollectionArchiveBaseUriErrors = {
1084
1171
  /**
1085
1172
  * Base URI not set or directory empty
1086
1173
  */
@@ -1097,13 +1184,17 @@ export type CollectionFinalizeBaseUriErrors = {
1097
1184
  * Collection not found
1098
1185
  */
1099
1186
  404: ApiErrorResponse;
1187
+ /**
1188
+ * Metadata bytes conflict with stored Media content
1189
+ */
1190
+ 409: ApiErrorResponse;
1100
1191
  /**
1101
1192
  * Archive provider unavailable
1102
1193
  */
1103
1194
  503: ApiErrorResponse;
1104
1195
  };
1105
- export type CollectionFinalizeBaseUriError = CollectionFinalizeBaseUriErrors[keyof CollectionFinalizeBaseUriErrors];
1106
- export type CollectionFinalizeBaseUriResponses = {
1196
+ export type CollectionArchiveBaseUriError = CollectionArchiveBaseUriErrors[keyof CollectionArchiveBaseUriErrors];
1197
+ export type CollectionArchiveBaseUriResponses = {
1107
1198
  /**
1108
1199
  * Collection with Archive location on base URI
1109
1200
  */
@@ -1112,14 +1203,13 @@ export type CollectionFinalizeBaseUriResponses = {
1112
1203
  collectionId: string | null;
1113
1204
  name: string;
1114
1205
  description: string | null;
1115
- logoMediaId: string;
1116
- logoMedia: MediaAsset;
1206
+ logoMediaId: string | null;
1207
+ logoMedia: MediaAsset | null;
1117
1208
  baseUriId: string | null;
1118
1209
  royaltyAddress: string | null;
1119
1210
  royaltyAmount: number | null;
1120
1211
  tokenManager: string | null;
1121
1212
  status: "Draft" | "InProgress" | "Live" | "Migrated" | "Disabled" | "Archived";
1122
- revealStrategy: RevealStrategy;
1123
1213
  source: CollectionSource;
1124
1214
  type: CollectionType;
1125
1215
  contract: {
@@ -1132,6 +1222,7 @@ export type CollectionFinalizeBaseUriResponses = {
1132
1222
  address: string | null;
1133
1223
  symbol: string;
1134
1224
  contractUri: string | null;
1225
+ contractMetadataMediaId: string | null;
1135
1226
  status: "Draft" | "Deploying" | "Live";
1136
1227
  createdAt: string;
1137
1228
  updatedAt: string;
@@ -1169,6 +1260,7 @@ export type CollectionFinalizeBaseUriResponses = {
1169
1260
  description?: string;
1170
1261
  imageMediaId?: string;
1171
1262
  animationMediaId?: string;
1263
+ metadataMediaId?: string;
1172
1264
  imageMedia?: MediaAsset | null;
1173
1265
  animationMedia?: MediaAsset | null;
1174
1266
  attributes?: Array<{
@@ -1203,7 +1295,6 @@ export type CollectionFinalizeBaseUriResponses = {
1203
1295
  paymentRecipient: string;
1204
1296
  accessMode: SaleAccessMode;
1205
1297
  gateId: string | null;
1206
- gasSponsored: boolean;
1207
1298
  status: SaleStatus;
1208
1299
  paused: boolean;
1209
1300
  mechanicId: string | null;
@@ -1218,7 +1309,198 @@ export type CollectionFinalizeBaseUriResponses = {
1218
1309
  }>;
1219
1310
  };
1220
1311
  };
1221
- export type CollectionFinalizeBaseUriResponse = CollectionFinalizeBaseUriResponses[keyof CollectionFinalizeBaseUriResponses];
1312
+ export type CollectionArchiveBaseUriResponse = CollectionArchiveBaseUriResponses[keyof CollectionArchiveBaseUriResponses];
1313
+ export type CollectionCreateMediaUploadSessionData = {
1314
+ body: {
1315
+ purpose: MediaPurpose;
1316
+ fileName: string;
1317
+ mimeType: string;
1318
+ fileSize: number;
1319
+ contentHash: MediaContentHash;
1320
+ };
1321
+ path: {
1322
+ highlightId: string;
1323
+ };
1324
+ query?: never;
1325
+ url: "/collection/{highlightId}/media/upload-session";
1326
+ };
1327
+ export type CollectionCreateMediaUploadSessionErrors = {
1328
+ /**
1329
+ * Invalid request, unsupported content type, or file too large
1330
+ */
1331
+ 400: ApiErrorResponse;
1332
+ /**
1333
+ * Unauthorized
1334
+ */
1335
+ 401: ApiErrorResponse;
1336
+ /**
1337
+ * Forbidden
1338
+ */
1339
+ 403: ApiErrorResponse;
1340
+ /**
1341
+ * Collection not found
1342
+ */
1343
+ 404: ApiErrorResponse;
1344
+ /**
1345
+ * R2 upload signing is not configured
1346
+ */
1347
+ 500: ApiErrorResponse;
1348
+ /**
1349
+ * Storage unavailable
1350
+ */
1351
+ 503: ApiErrorResponse;
1352
+ };
1353
+ export type CollectionCreateMediaUploadSessionError = CollectionCreateMediaUploadSessionErrors[keyof CollectionCreateMediaUploadSessionErrors];
1354
+ export type CollectionCreateMediaUploadSessionResponses = {
1355
+ /**
1356
+ * Upload session
1357
+ */
1358
+ 200: MediaUploadSession;
1359
+ };
1360
+ export type CollectionCreateMediaUploadSessionResponse = CollectionCreateMediaUploadSessionResponses[keyof CollectionCreateMediaUploadSessionResponses];
1361
+ export type CollectionUpdateMetadataData = {
1362
+ body: CollectionUpdateMetadataInput;
1363
+ path: {
1364
+ highlightId: string;
1365
+ };
1366
+ query?: never;
1367
+ url: "/collection/{highlightId}/metadata";
1368
+ };
1369
+ export type CollectionUpdateMetadataErrors = {
1370
+ /**
1371
+ * Invalid request
1372
+ */
1373
+ 400: ApiErrorResponse;
1374
+ /**
1375
+ * Unauthorized
1376
+ */
1377
+ 401: ApiErrorResponse;
1378
+ /**
1379
+ * Forbidden
1380
+ */
1381
+ 403: ApiErrorResponse;
1382
+ /**
1383
+ * Not found
1384
+ */
1385
+ 404: ApiErrorResponse;
1386
+ };
1387
+ export type CollectionUpdateMetadataError = CollectionUpdateMetadataErrors[keyof CollectionUpdateMetadataErrors];
1388
+ export type CollectionUpdateMetadataResponses = {
1389
+ /**
1390
+ * Updated collection
1391
+ */
1392
+ 200: {
1393
+ highlightId: string;
1394
+ collectionId: string | null;
1395
+ name: string;
1396
+ description: string | null;
1397
+ logoMediaId: string | null;
1398
+ logoMedia: MediaAsset | null;
1399
+ baseUriId: string | null;
1400
+ royaltyAddress: string | null;
1401
+ royaltyAmount: number | null;
1402
+ tokenManager: string | null;
1403
+ status: "Draft" | "InProgress" | "Live" | "Migrated" | "Disabled" | "Archived";
1404
+ source: CollectionSource;
1405
+ type: CollectionType;
1406
+ contract: {
1407
+ id: string;
1408
+ chainId: number;
1409
+ type: "GenerativeSeries" | "Series" | "MultipleEditions" | "MultipleEditionsDFS" | "SingleEdition" | "SingleEditionDFS" | "EditionsDFS1155";
1410
+ standard: ContractStandard;
1411
+ creatorAddress: string;
1412
+ name: string;
1413
+ address: string | null;
1414
+ symbol: string;
1415
+ contractUri: string | null;
1416
+ contractMetadataMediaId: string | null;
1417
+ status: "Draft" | "Deploying" | "Live";
1418
+ createdAt: string;
1419
+ updatedAt: string;
1420
+ };
1421
+ createdAt: string;
1422
+ updatedAt: string;
1423
+ series: {
1424
+ size: number;
1425
+ isCollectorsChoice?: boolean;
1426
+ assetsMediaId?: string;
1427
+ assetsMedia?: MediaAsset | null;
1428
+ } | null;
1429
+ generative: {
1430
+ size: number;
1431
+ codeMediaId: string;
1432
+ codeMedia: MediaAsset;
1433
+ isCurated?: boolean;
1434
+ isGpuRendering?: boolean;
1435
+ editionType?: GenerativeEditionType;
1436
+ allowedHashes?: Array<string>;
1437
+ requiredParams?: Array<string>;
1438
+ captureSettings?: {
1439
+ trigger: CaptureSettingsTrigger;
1440
+ delay?: number;
1441
+ selector?: string;
1442
+ selectorType?: SelectorType;
1443
+ viewPortHeight?: number;
1444
+ viewPortWidth?: number;
1445
+ };
1446
+ } | null;
1447
+ edition: {
1448
+ editionId: string;
1449
+ size: number;
1450
+ name?: string;
1451
+ description?: string;
1452
+ imageMediaId?: string;
1453
+ animationMediaId?: string;
1454
+ metadataMediaId?: string;
1455
+ imageMedia?: MediaAsset | null;
1456
+ animationMedia?: MediaAsset | null;
1457
+ attributes?: Array<{
1458
+ traitType: string;
1459
+ value: string;
1460
+ }>;
1461
+ } | null;
1462
+ account: {
1463
+ id: string;
1464
+ displayName: string | null;
1465
+ primaryAddress: string | null;
1466
+ ensName: string | null;
1467
+ };
1468
+ stats: {
1469
+ ownerCount: number;
1470
+ tokenCount: number;
1471
+ volumeByCurrency: Array<CollectionCurrencyVolume>;
1472
+ updatedAt: string;
1473
+ } | null;
1474
+ sales: Array<{
1475
+ id: string;
1476
+ collectionId: string;
1477
+ name: string | null;
1478
+ type: SaleType;
1479
+ startAt: string;
1480
+ endAt: string | null;
1481
+ price: string;
1482
+ currency: SaleCurrency;
1483
+ maxPerTransaction: number;
1484
+ maxPerWallet: number;
1485
+ maxTotal: number;
1486
+ paymentRecipient: string;
1487
+ accessMode: SaleAccessMode;
1488
+ gateId: string | null;
1489
+ status: SaleStatus;
1490
+ paused: boolean;
1491
+ mechanicId: string | null;
1492
+ typeConfig: unknown | null;
1493
+ vectorId: string | null;
1494
+ customMintFee: string | null;
1495
+ collectorMessage: string | null;
1496
+ createdAt: string;
1497
+ updatedAt: string;
1498
+ stats: SaleStats | null;
1499
+ lifecycle: SaleLifecycle;
1500
+ }>;
1501
+ };
1502
+ };
1503
+ export type CollectionUpdateMetadataResponse = CollectionUpdateMetadataResponses[keyof CollectionUpdateMetadataResponses];
1222
1504
  export type CollectionUpdateGenerativeDetailsData = {
1223
1505
  body: {
1224
1506
  generative: {
@@ -1273,14 +1555,13 @@ export type CollectionUpdateGenerativeDetailsResponses = {
1273
1555
  collectionId: string | null;
1274
1556
  name: string;
1275
1557
  description: string | null;
1276
- logoMediaId: string;
1277
- logoMedia: MediaAsset;
1558
+ logoMediaId: string | null;
1559
+ logoMedia: MediaAsset | null;
1278
1560
  baseUriId: string | null;
1279
1561
  royaltyAddress: string | null;
1280
1562
  royaltyAmount: number | null;
1281
1563
  tokenManager: string | null;
1282
1564
  status: "Draft" | "InProgress" | "Live" | "Migrated" | "Disabled" | "Archived";
1283
- revealStrategy: RevealStrategy;
1284
1565
  source: CollectionSource;
1285
1566
  type: CollectionType;
1286
1567
  contract: {
@@ -1293,6 +1574,7 @@ export type CollectionUpdateGenerativeDetailsResponses = {
1293
1574
  address: string | null;
1294
1575
  symbol: string;
1295
1576
  contractUri: string | null;
1577
+ contractMetadataMediaId: string | null;
1296
1578
  status: "Draft" | "Deploying" | "Live";
1297
1579
  createdAt: string;
1298
1580
  updatedAt: string;
@@ -1330,6 +1612,7 @@ export type CollectionUpdateGenerativeDetailsResponses = {
1330
1612
  description?: string;
1331
1613
  imageMediaId?: string;
1332
1614
  animationMediaId?: string;
1615
+ metadataMediaId?: string;
1333
1616
  imageMedia?: MediaAsset | null;
1334
1617
  animationMedia?: MediaAsset | null;
1335
1618
  attributes?: Array<{
@@ -1364,7 +1647,6 @@ export type CollectionUpdateGenerativeDetailsResponses = {
1364
1647
  paymentRecipient: string;
1365
1648
  accessMode: SaleAccessMode;
1366
1649
  gateId: string | null;
1367
- gasSponsored: boolean;
1368
1650
  status: SaleStatus;
1369
1651
  paused: boolean;
1370
1652
  mechanicId: string | null;
@@ -1422,14 +1704,13 @@ export type CollectionUpdateSeriesDetailsResponses = {
1422
1704
  collectionId: string | null;
1423
1705
  name: string;
1424
1706
  description: string | null;
1425
- logoMediaId: string;
1426
- logoMedia: MediaAsset;
1707
+ logoMediaId: string | null;
1708
+ logoMedia: MediaAsset | null;
1427
1709
  baseUriId: string | null;
1428
1710
  royaltyAddress: string | null;
1429
1711
  royaltyAmount: number | null;
1430
1712
  tokenManager: string | null;
1431
1713
  status: "Draft" | "InProgress" | "Live" | "Migrated" | "Disabled" | "Archived";
1432
- revealStrategy: RevealStrategy;
1433
1714
  source: CollectionSource;
1434
1715
  type: CollectionType;
1435
1716
  contract: {
@@ -1442,6 +1723,7 @@ export type CollectionUpdateSeriesDetailsResponses = {
1442
1723
  address: string | null;
1443
1724
  symbol: string;
1444
1725
  contractUri: string | null;
1726
+ contractMetadataMediaId: string | null;
1445
1727
  status: "Draft" | "Deploying" | "Live";
1446
1728
  createdAt: string;
1447
1729
  updatedAt: string;
@@ -1479,6 +1761,7 @@ export type CollectionUpdateSeriesDetailsResponses = {
1479
1761
  description?: string;
1480
1762
  imageMediaId?: string;
1481
1763
  animationMediaId?: string;
1764
+ metadataMediaId?: string;
1482
1765
  imageMedia?: MediaAsset | null;
1483
1766
  animationMedia?: MediaAsset | null;
1484
1767
  attributes?: Array<{
@@ -1513,7 +1796,6 @@ export type CollectionUpdateSeriesDetailsResponses = {
1513
1796
  paymentRecipient: string;
1514
1797
  accessMode: SaleAccessMode;
1515
1798
  gateId: string | null;
1516
- gasSponsored: boolean;
1517
1799
  status: SaleStatus;
1518
1800
  paused: boolean;
1519
1801
  mechanicId: string | null;
@@ -1621,7 +1903,6 @@ export type CollectionGetSalesResponses = {
1621
1903
  paymentRecipient: string;
1622
1904
  accessMode: SaleAccessMode;
1623
1905
  gateId: string | null;
1624
- gasSponsored: boolean;
1625
1906
  status: SaleStatus;
1626
1907
  paused: boolean;
1627
1908
  mechanicId: string | null;
@@ -1650,7 +1931,6 @@ export type CollectionAddSaleData = {
1650
1931
  paymentRecipient: string;
1651
1932
  accessMode?: SaleAccessMode;
1652
1933
  gateId?: string | null;
1653
- gasSponsored?: boolean;
1654
1934
  mechanicId?: string | null;
1655
1935
  typeConfig?: unknown | null;
1656
1936
  collectorMessage?: string | null;
@@ -2130,6 +2410,78 @@ export type CollectionEnglishAuctionBidsResponses = {
2130
2410
  200: EnglishAuctionBidHistory;
2131
2411
  };
2132
2412
  export type CollectionEnglishAuctionBidsResponse = CollectionEnglishAuctionBidsResponses[keyof CollectionEnglishAuctionBidsResponses];
2413
+ export type CollectionDutchAuctionStandingData = {
2414
+ body?: never;
2415
+ path: {
2416
+ highlightId: string;
2417
+ saleId: string;
2418
+ };
2419
+ query?: never;
2420
+ url: "/collection/{highlightId}/sales/{saleId}/dutch";
2421
+ };
2422
+ export type CollectionDutchAuctionStandingErrors = {
2423
+ /**
2424
+ * Invalid request
2425
+ */
2426
+ 400: ApiErrorResponse;
2427
+ /**
2428
+ * Not found
2429
+ */
2430
+ 404: ApiErrorResponse;
2431
+ };
2432
+ export type CollectionDutchAuctionStandingError = CollectionDutchAuctionStandingErrors[keyof CollectionDutchAuctionStandingErrors];
2433
+ export type CollectionDutchAuctionStandingResponses = {
2434
+ /**
2435
+ * Dutch auction standing
2436
+ */
2437
+ 200: DutchAuctionStanding;
2438
+ };
2439
+ export type CollectionDutchAuctionStandingResponse = CollectionDutchAuctionStandingResponses[keyof CollectionDutchAuctionStandingResponses];
2440
+ export type CollectionClaimDutchRebateData = {
2441
+ body: {
2442
+ saleId: string;
2443
+ };
2444
+ path: {
2445
+ highlightId: string;
2446
+ };
2447
+ query?: never;
2448
+ url: "/collection/{highlightId}/sales/dutch/rebate";
2449
+ };
2450
+ export type CollectionClaimDutchRebateErrors = {
2451
+ /**
2452
+ * Invalid request
2453
+ */
2454
+ 400: ApiErrorResponse;
2455
+ /**
2456
+ * Unauthorized
2457
+ */
2458
+ 401: ApiErrorResponse;
2459
+ /**
2460
+ * Not found
2461
+ */
2462
+ 404: ApiErrorResponse;
2463
+ /**
2464
+ * No rebate owed
2465
+ */
2466
+ 409: ApiErrorResponse;
2467
+ /**
2468
+ * Internal server error
2469
+ */
2470
+ 500: ApiErrorResponse;
2471
+ };
2472
+ export type CollectionClaimDutchRebateError = CollectionClaimDutchRebateErrors[keyof CollectionClaimDutchRebateErrors];
2473
+ export type CollectionClaimDutchRebateResponses = {
2474
+ /**
2475
+ * Rebate transaction configuration
2476
+ */
2477
+ 200: {
2478
+ chainId: number;
2479
+ to: string | null;
2480
+ data: string;
2481
+ value: string;
2482
+ };
2483
+ };
2484
+ export type CollectionClaimDutchRebateResponse = CollectionClaimDutchRebateResponses[keyof CollectionClaimDutchRebateResponses];
2133
2485
  export type CollectionDeployData = {
2134
2486
  body?: never;
2135
2487
  path: {
@@ -2302,30 +2654,7 @@ export type TokenListResponses = {
2302
2654
  * List of tokens
2303
2655
  */
2304
2656
  200: {
2305
- items: Array<{
2306
- id: string;
2307
- collectionId: string;
2308
- tokenId: string;
2309
- status: TokenStatus;
2310
- name: string | null;
2311
- description: string | null;
2312
- externalUrl: string | null;
2313
- attributes: Array<{
2314
- trait_type: string;
2315
- value: string | number;
2316
- display_type?: string;
2317
- }> | null;
2318
- properties: {
2319
- [key: string]: unknown;
2320
- } | null;
2321
- imageMediaId: string | null;
2322
- imageMedia: MediaAsset | null;
2323
- animationMediaId: string | null;
2324
- animationMedia: MediaAsset | null;
2325
- mintedAt: string | null;
2326
- createdAt: string;
2327
- updatedAt: string;
2328
- }>;
2657
+ items: Array<Token>;
2329
2658
  pageInfo: {
2330
2659
  page: number;
2331
2660
  limit: number;
@@ -2381,30 +2710,7 @@ export type TokenGetResponses = {
2381
2710
  /**
2382
2711
  * Token details
2383
2712
  */
2384
- 200: {
2385
- id: string;
2386
- collectionId: string;
2387
- tokenId: string;
2388
- status: TokenStatus;
2389
- name: string | null;
2390
- description: string | null;
2391
- externalUrl: string | null;
2392
- attributes: Array<{
2393
- trait_type: string;
2394
- value: string | number;
2395
- display_type?: string;
2396
- }> | null;
2397
- properties: {
2398
- [key: string]: unknown;
2399
- } | null;
2400
- imageMediaId: string | null;
2401
- imageMedia: MediaAsset | null;
2402
- animationMediaId: string | null;
2403
- animationMedia: MediaAsset | null;
2404
- mintedAt: string | null;
2405
- createdAt: string;
2406
- updatedAt: string;
2407
- };
2713
+ 200: Token;
2408
2714
  };
2409
2715
  export type TokenGetResponse = TokenGetResponses[keyof TokenGetResponses];
2410
2716
  export type TokenListOwnersData = {
@@ -2486,6 +2792,19 @@ export type ConfigChainsResponses = {
2486
2792
  };
2487
2793
  };
2488
2794
  export type ConfigChainsResponse = ConfigChainsResponses[keyof ConfigChainsResponses];
2795
+ export type ConfigMediaHostsData = {
2796
+ body?: never;
2797
+ path?: never;
2798
+ query?: never;
2799
+ url: "/config/media-hosts";
2800
+ };
2801
+ export type ConfigMediaHostsResponses = {
2802
+ /**
2803
+ * Media delivery hosts
2804
+ */
2805
+ 200: MediaHostsResponse;
2806
+ };
2807
+ export type ConfigMediaHostsResponse = ConfigMediaHostsResponses[keyof ConfigMediaHostsResponses];
2489
2808
  export type ConfigSystemContractData = {
2490
2809
  body?: never;
2491
2810
  path?: never;
@@ -2548,6 +2867,7 @@ export type ContractListResponses = {
2548
2867
  address: string | null;
2549
2868
  symbol: string;
2550
2869
  contractUri: string | null;
2870
+ contractMetadataMediaId: string | null;
2551
2871
  status: "Draft" | "Deploying" | "Live";
2552
2872
  createdAt: string;
2553
2873
  updatedAt: string;
@@ -2592,6 +2912,7 @@ export type ContractGetResponses = {
2592
2912
  address: string | null;
2593
2913
  symbol: string;
2594
2914
  contractUri: string | null;
2915
+ contractMetadataMediaId: string | null;
2595
2916
  status: "Draft" | "Deploying" | "Live";
2596
2917
  createdAt: string;
2597
2918
  updatedAt: string;
@@ -3084,6 +3405,26 @@ export type GatePreviewFarcasterResponses = {
3084
3405
  200: GateFarcasterUserPreview;
3085
3406
  };
3086
3407
  export type GatePreviewFarcasterResponse = GatePreviewFarcasterResponses[keyof GatePreviewFarcasterResponses];
3408
+ export type GetIndexerStatusData = {
3409
+ body?: never;
3410
+ path?: never;
3411
+ query?: never;
3412
+ url: "/indexer/status";
3413
+ };
3414
+ export type GetIndexerStatusErrors = {
3415
+ /**
3416
+ * Unauthorized
3417
+ */
3418
+ 401: ApiErrorResponse;
3419
+ };
3420
+ export type GetIndexerStatusError = GetIndexerStatusErrors[keyof GetIndexerStatusErrors];
3421
+ export type GetIndexerStatusResponses = {
3422
+ /**
3423
+ * Per-chain indexer cursors
3424
+ */
3425
+ 200: IndexerStatusResponse;
3426
+ };
3427
+ export type GetIndexerStatusResponse = GetIndexerStatusResponses[keyof GetIndexerStatusResponses];
3087
3428
  export type PostIndexerChainsByChainIdActivateData = {
3088
3429
  body?: never;
3089
3430
  path: {
@@ -3132,37 +3473,12 @@ export type PostIndexerChainsByChainIdResetResponses = {
3132
3473
  */
3133
3474
  200: unknown;
3134
3475
  };
3135
- export type PostIndexerChainsByChainIdPollData = {
3136
- body?: never;
3137
- path: {
3138
- chainId: number;
3139
- };
3140
- query?: never;
3141
- url: "/indexer/chains/{chainId}/poll";
3142
- };
3143
- export type PostIndexerChainsByChainIdPollErrors = {
3144
- /**
3145
- * Unauthorized
3146
- */
3147
- 401: ApiErrorResponse;
3148
- /**
3149
- * Poll failed
3150
- */
3151
- 500: ApiErrorResponse;
3152
- };
3153
- export type PostIndexerChainsByChainIdPollError = PostIndexerChainsByChainIdPollErrors[keyof PostIndexerChainsByChainIdPollErrors];
3154
- export type PostIndexerChainsByChainIdPollResponses = {
3155
- /**
3156
- * Poll completed
3157
- */
3158
- 200: unknown;
3159
- };
3160
3476
  export type MechanicListData = {
3161
3477
  body?: never;
3162
3478
  path?: never;
3163
3479
  query?: {
3164
3480
  builtIn?: boolean | string;
3165
- type?: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "GASLESS" | "CUSTOM";
3481
+ type?: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "CUSTOM";
3166
3482
  };
3167
3483
  url: "/mechanic";
3168
3484
  };
@@ -3174,7 +3490,7 @@ export type MechanicListResponses = {
3174
3490
  id: string;
3175
3491
  slug: string;
3176
3492
  name: string;
3177
- type: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "GASLESS" | "CUSTOM";
3493
+ type: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "CUSTOM";
3178
3494
  description: string | null;
3179
3495
  configSchema: unknown | null;
3180
3496
  encodingAbi: unknown | null;
@@ -3221,7 +3537,7 @@ export type MechanicCreateResponses = {
3221
3537
  id: string;
3222
3538
  slug: string;
3223
3539
  name: string;
3224
- type: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "GASLESS" | "CUSTOM";
3540
+ type: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "CUSTOM";
3225
3541
  description: string | null;
3226
3542
  configSchema: unknown | null;
3227
3543
  encodingAbi: unknown | null;
@@ -3260,7 +3576,7 @@ export type MechanicGetResponses = {
3260
3576
  id: string;
3261
3577
  slug: string;
3262
3578
  name: string;
3263
- type: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "GASLESS" | "CUSTOM";
3579
+ type: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "CUSTOM";
3264
3580
  description: string | null;
3265
3581
  configSchema: unknown | null;
3266
3582
  encodingAbi: unknown | null;
@@ -3316,7 +3632,7 @@ export type MechanicUpdateResponses = {
3316
3632
  id: string;
3317
3633
  slug: string;
3318
3634
  name: string;
3319
- type: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "GASLESS" | "CUSTOM";
3635
+ type: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "CUSTOM";
3320
3636
  description: string | null;
3321
3637
  configSchema: unknown | null;
3322
3638
  encodingAbi: unknown | null;
@@ -3369,7 +3685,7 @@ export type MechanicRemoveDeploymentResponses = {
3369
3685
  id: string;
3370
3686
  slug: string;
3371
3687
  name: string;
3372
- type: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "GASLESS" | "CUSTOM";
3688
+ type: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "CUSTOM";
3373
3689
  description: string | null;
3374
3690
  configSchema: unknown | null;
3375
3691
  encodingAbi: unknown | null;
@@ -3423,7 +3739,7 @@ export type MechanicAddDeploymentResponses = {
3423
3739
  id: string;
3424
3740
  slug: string;
3425
3741
  name: string;
3426
- type: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "GASLESS" | "CUSTOM";
3742
+ type: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "CUSTOM";
3427
3743
  description: string | null;
3428
3744
  configSchema: unknown | null;
3429
3745
  encodingAbi: unknown | null;
@@ -3439,53 +3755,15 @@ export type MechanicAddDeploymentResponses = {
3439
3755
  };
3440
3756
  };
3441
3757
  export type MechanicAddDeploymentResponse = MechanicAddDeploymentResponses[keyof MechanicAddDeploymentResponses];
3442
- export type MediaCreateUploadSessionData = {
3443
- body: {
3444
- kind: MediaKind;
3445
- scope?: MediaScope;
3446
- fileName: string;
3447
- mimeType: string;
3448
- fileSize: number;
3449
- };
3450
- path?: never;
3451
- query?: never;
3452
- url: "/media/upload-session";
3453
- };
3454
- export type MediaCreateUploadSessionErrors = {
3455
- /**
3456
- * Invalid request
3457
- */
3458
- 400: ApiErrorResponse;
3459
- /**
3460
- * Unauthorized
3461
- */
3462
- 401: ApiErrorResponse;
3463
- /**
3464
- * Forbidden
3465
- */
3466
- 403: ApiErrorResponse;
3467
- /**
3468
- * Storage unavailable
3469
- */
3470
- 503: ApiErrorResponse;
3471
- };
3472
- export type MediaCreateUploadSessionError = MediaCreateUploadSessionErrors[keyof MediaCreateUploadSessionErrors];
3473
- export type MediaCreateUploadSessionResponses = {
3474
- /**
3475
- * Upload session
3476
- */
3477
- 200: MediaUploadSession;
3478
- };
3479
- export type MediaCreateUploadSessionResponse = MediaCreateUploadSessionResponses[keyof MediaCreateUploadSessionResponses];
3480
- export type MediaUploadData = {
3758
+ export type MediaFinalizeUploadData = {
3481
3759
  body?: never;
3482
3760
  path: {
3483
3761
  mediaId: string;
3484
3762
  };
3485
3763
  query?: never;
3486
- url: "/media/{mediaId}/upload";
3764
+ url: "/media/{mediaId}/finalize";
3487
3765
  };
3488
- export type MediaUploadErrors = {
3766
+ export type MediaFinalizeUploadErrors = {
3489
3767
  /**
3490
3768
  * Invalid request
3491
3769
  */
@@ -3499,60 +3777,30 @@ export type MediaUploadErrors = {
3499
3777
  */
3500
3778
  403: ApiErrorResponse;
3501
3779
  /**
3502
- * Not found
3780
+ * Media or uploaded object not found
3503
3781
  */
3504
3782
  404: ApiErrorResponse;
3505
3783
  /**
3506
- * Storage unavailable
3507
- */
3508
- 503: ApiErrorResponse;
3509
- };
3510
- export type MediaUploadError = MediaUploadErrors[keyof MediaUploadErrors];
3511
- export type MediaUploadResponses = {
3512
- /**
3513
- * Upload accepted and processed
3514
- */
3515
- 200: MediaAsset;
3516
- };
3517
- export type MediaUploadResponse = MediaUploadResponses[keyof MediaUploadResponses];
3518
- export type MediaProcessData = {
3519
- body?: never;
3520
- path: {
3521
- mediaId: string;
3522
- };
3523
- query?: never;
3524
- url: "/media/{mediaId}/process";
3525
- };
3526
- export type MediaProcessErrors = {
3527
- /**
3528
- * Invalid request
3529
- */
3530
- 400: ApiErrorResponse;
3531
- /**
3532
- * Unauthorized
3533
- */
3534
- 401: ApiErrorResponse;
3535
- /**
3536
- * Forbidden
3784
+ * Uploaded object does not match its session
3537
3785
  */
3538
- 403: ApiErrorResponse;
3786
+ 409: ApiErrorResponse;
3539
3787
  /**
3540
- * Media or uploaded object not found
3788
+ * Unexpected storage reference
3541
3789
  */
3542
- 404: ApiErrorResponse;
3790
+ 500: ApiErrorResponse;
3543
3791
  /**
3544
3792
  * Storage unavailable
3545
3793
  */
3546
3794
  503: ApiErrorResponse;
3547
3795
  };
3548
- export type MediaProcessError = MediaProcessErrors[keyof MediaProcessErrors];
3549
- export type MediaProcessResponses = {
3796
+ export type MediaFinalizeUploadError = MediaFinalizeUploadErrors[keyof MediaFinalizeUploadErrors];
3797
+ export type MediaFinalizeUploadResponses = {
3550
3798
  /**
3551
- * Media asset with updated status
3799
+ * Finalized media asset
3552
3800
  */
3553
3801
  200: MediaAsset;
3554
3802
  };
3555
- export type MediaProcessResponse = MediaProcessResponses[keyof MediaProcessResponses];
3803
+ export type MediaFinalizeUploadResponse = MediaFinalizeUploadResponses[keyof MediaFinalizeUploadResponses];
3556
3804
  export type MediaListChildrenData = {
3557
3805
  body?: never;
3558
3806
  path: {
@@ -3683,6 +3931,10 @@ export type MediaPublishErrors = {
3683
3931
  * Not found
3684
3932
  */
3685
3933
  404: ApiErrorResponse;
3934
+ /**
3935
+ * Origin bytes conflict with immutable Media content
3936
+ */
3937
+ 409: ApiErrorResponse;
3686
3938
  /**
3687
3939
  * Archive provider unavailable
3688
3940
  */
@@ -3772,11 +4024,49 @@ export type TxSubmitErrors = {
3772
4024
  export type TxSubmitError = TxSubmitErrors[keyof TxSubmitErrors];
3773
4025
  export type TxSubmitResponses = {
3774
4026
  /**
3775
- * Transaction accepted for processing
4027
+ * Transaction accepted for tracking
3776
4028
  */
3777
4029
  202: TxStatusSnapshot;
3778
4030
  };
3779
4031
  export type TxSubmitResponse = TxSubmitResponses[keyof TxSubmitResponses];
4032
+ export type UserCreateMediaUploadSessionData = {
4033
+ body: {
4034
+ purpose: MediaPurpose;
4035
+ fileName: string;
4036
+ mimeType: string;
4037
+ fileSize: number;
4038
+ contentHash: MediaContentHash;
4039
+ };
4040
+ path?: never;
4041
+ query?: never;
4042
+ url: "/user/media/upload-session";
4043
+ };
4044
+ export type UserCreateMediaUploadSessionErrors = {
4045
+ /**
4046
+ * Invalid request, unsupported content type, or file too large
4047
+ */
4048
+ 400: ApiErrorResponse;
4049
+ /**
4050
+ * Unauthorized
4051
+ */
4052
+ 401: ApiErrorResponse;
4053
+ /**
4054
+ * R2 upload signing is not configured
4055
+ */
4056
+ 500: ApiErrorResponse;
4057
+ /**
4058
+ * Storage unavailable
4059
+ */
4060
+ 503: ApiErrorResponse;
4061
+ };
4062
+ export type UserCreateMediaUploadSessionError = UserCreateMediaUploadSessionErrors[keyof UserCreateMediaUploadSessionErrors];
4063
+ export type UserCreateMediaUploadSessionResponses = {
4064
+ /**
4065
+ * Upload session
4066
+ */
4067
+ 200: MediaUploadSession;
4068
+ };
4069
+ export type UserCreateMediaUploadSessionResponse = UserCreateMediaUploadSessionResponses[keyof UserCreateMediaUploadSessionResponses];
3780
4070
  export type ProfileGetData = {
3781
4071
  body?: never;
3782
4072
  path?: never;
@@ -3887,30 +4177,7 @@ export type ProfileTokensResponses = {
3887
4177
  * Paginated wallet token holdings
3888
4178
  */
3889
4179
  200: {
3890
- items: Array<{
3891
- id: string;
3892
- collectionId: string;
3893
- tokenId: string;
3894
- status: TokenStatus;
3895
- name: string | null;
3896
- description: string | null;
3897
- externalUrl: string | null;
3898
- attributes: Array<{
3899
- trait_type: string;
3900
- value: string | number;
3901
- display_type?: string;
3902
- }> | null;
3903
- properties: {
3904
- [key: string]: unknown;
3905
- } | null;
3906
- imageMediaId: string | null;
3907
- imageMedia: MediaAsset | null;
3908
- animationMediaId: string | null;
3909
- animationMedia: MediaAsset | null;
3910
- mintedAt: string | null;
3911
- createdAt: string;
3912
- updatedAt: string;
3913
- }>;
4180
+ items: Array<Token>;
3914
4181
  pageInfo: {
3915
4182
  page: number;
3916
4183
  limit: number;