@highlightxyz/sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +28 -0
- package/lib/client.d.ts +10 -0
- package/lib/client.d.ts.map +1 -0
- package/lib/client.js +8 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +1 -0
- package/lib/v1/gen/client/client.gen.d.ts +3 -0
- package/lib/v1/gen/client/client.gen.d.ts.map +1 -0
- package/lib/v1/gen/client/client.gen.js +234 -0
- package/lib/v1/gen/client/index.d.ts +9 -0
- package/lib/v1/gen/client/index.d.ts.map +1 -0
- package/lib/v1/gen/client/index.js +6 -0
- package/lib/v1/gen/client/types.gen.d.ts +118 -0
- package/lib/v1/gen/client/types.gen.d.ts.map +1 -0
- package/lib/v1/gen/client/types.gen.js +2 -0
- package/lib/v1/gen/client/utils.gen.d.ts +34 -0
- package/lib/v1/gen/client/utils.gen.d.ts.map +1 -0
- package/lib/v1/gen/client/utils.gen.js +228 -0
- package/lib/v1/gen/client.gen.d.ts +13 -0
- package/lib/v1/gen/client.gen.d.ts.map +1 -0
- package/lib/v1/gen/client.gen.js +3 -0
- package/lib/v1/gen/core/auth.gen.d.ts +19 -0
- package/lib/v1/gen/core/auth.gen.d.ts.map +1 -0
- package/lib/v1/gen/core/auth.gen.js +14 -0
- package/lib/v1/gen/core/bodySerializer.gen.d.ts +26 -0
- package/lib/v1/gen/core/bodySerializer.gen.d.ts.map +1 -0
- package/lib/v1/gen/core/bodySerializer.gen.js +57 -0
- package/lib/v1/gen/core/params.gen.d.ts +44 -0
- package/lib/v1/gen/core/params.gen.d.ts.map +1 -0
- package/lib/v1/gen/core/params.gen.js +100 -0
- package/lib/v1/gen/core/pathSerializer.gen.d.ts +34 -0
- package/lib/v1/gen/core/pathSerializer.gen.d.ts.map +1 -0
- package/lib/v1/gen/core/pathSerializer.gen.js +106 -0
- package/lib/v1/gen/core/queryKeySerializer.gen.d.ts +19 -0
- package/lib/v1/gen/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/lib/v1/gen/core/queryKeySerializer.gen.js +92 -0
- package/lib/v1/gen/core/serverSentEvents.gen.d.ts +72 -0
- package/lib/v1/gen/core/serverSentEvents.gen.d.ts.map +1 -0
- package/lib/v1/gen/core/serverSentEvents.gen.js +133 -0
- package/lib/v1/gen/core/types.gen.d.ts +79 -0
- package/lib/v1/gen/core/types.gen.d.ts.map +1 -0
- package/lib/v1/gen/core/types.gen.js +2 -0
- package/lib/v1/gen/core/utils.gen.d.ts +20 -0
- package/lib/v1/gen/core/utils.gen.d.ts.map +1 -0
- package/lib/v1/gen/core/utils.gen.js +87 -0
- package/lib/v1/gen/sdk.gen.d.ts +689 -0
- package/lib/v1/gen/sdk.gen.d.ts.map +1 -0
- package/lib/v1/gen/sdk.gen.js +1116 -0
- package/lib/v1/gen/types.gen.d.ts +2960 -0
- package/lib/v1/gen/types.gen.d.ts.map +1 -0
- package/lib/v1/gen/types.gen.js +118 -0
- package/package.json +69 -0
|
@@ -0,0 +1,2960 @@
|
|
|
1
|
+
export type ClientOptions = {
|
|
2
|
+
baseUrl: `${string}://${string}` | (string & {});
|
|
3
|
+
};
|
|
4
|
+
export declare enum CollectionType {
|
|
5
|
+
OpenEdition = "OpenEdition",
|
|
6
|
+
LimitedEdition = "LimitedEdition",
|
|
7
|
+
OneOfOne = "OneOfOne",
|
|
8
|
+
Series = "Series",
|
|
9
|
+
GenerativeSeries = "GenerativeSeries"
|
|
10
|
+
}
|
|
11
|
+
export declare enum ContractStandard {
|
|
12
|
+
Erc721 = "ERC721",
|
|
13
|
+
Erc1155 = "ERC1155"
|
|
14
|
+
}
|
|
15
|
+
export declare enum GenerativeEditionType {
|
|
16
|
+
Limited = "Limited",
|
|
17
|
+
Open = "Open"
|
|
18
|
+
}
|
|
19
|
+
export declare enum CaptureSettingsTrigger {
|
|
20
|
+
Function = "Function",
|
|
21
|
+
Delay = "Delay"
|
|
22
|
+
}
|
|
23
|
+
export declare enum SelectorType {
|
|
24
|
+
Svg = "SVG",
|
|
25
|
+
Element = "ELEMENT"
|
|
26
|
+
}
|
|
27
|
+
export declare enum MediaKind {
|
|
28
|
+
File = "File",
|
|
29
|
+
Directory = "Directory"
|
|
30
|
+
}
|
|
31
|
+
export declare enum MediaScope {
|
|
32
|
+
Collection = "Collection",
|
|
33
|
+
User = "User"
|
|
34
|
+
}
|
|
35
|
+
export declare enum MediaProvenance {
|
|
36
|
+
UserUpload = "UserUpload",
|
|
37
|
+
SystemGenerated = "SystemGenerated"
|
|
38
|
+
}
|
|
39
|
+
export declare enum MediaAssetStatus {
|
|
40
|
+
Pending = "Pending",
|
|
41
|
+
Processing = "Processing",
|
|
42
|
+
Ready = "Ready",
|
|
43
|
+
Failed = "Failed"
|
|
44
|
+
}
|
|
45
|
+
export declare enum StorageProvider {
|
|
46
|
+
R2 = "R2",
|
|
47
|
+
Arweave = "Arweave",
|
|
48
|
+
S3 = "S3",
|
|
49
|
+
Ipfs = "IPFS"
|
|
50
|
+
}
|
|
51
|
+
export declare enum StorageRole {
|
|
52
|
+
Origin = "Origin",
|
|
53
|
+
Archive = "Archive",
|
|
54
|
+
Mirror = "Mirror"
|
|
55
|
+
}
|
|
56
|
+
export declare enum LocationStatus {
|
|
57
|
+
Pending = "Pending",
|
|
58
|
+
Succeeded = "Succeeded",
|
|
59
|
+
Failed = "Failed"
|
|
60
|
+
}
|
|
61
|
+
export type MediaStorageLocation = {
|
|
62
|
+
id: string;
|
|
63
|
+
mediaId: string;
|
|
64
|
+
provider: StorageProvider;
|
|
65
|
+
role: StorageRole;
|
|
66
|
+
reference: string;
|
|
67
|
+
status: LocationStatus;
|
|
68
|
+
attempts: number;
|
|
69
|
+
lastError: string | null;
|
|
70
|
+
syncedAt: string | null;
|
|
71
|
+
metadata: {
|
|
72
|
+
[key: string]: unknown;
|
|
73
|
+
} | null;
|
|
74
|
+
createdAt: string;
|
|
75
|
+
updatedAt: string;
|
|
76
|
+
};
|
|
77
|
+
export type MediaAsset = {
|
|
78
|
+
id: string;
|
|
79
|
+
accountId: string;
|
|
80
|
+
kind: MediaKind;
|
|
81
|
+
scope: MediaScope;
|
|
82
|
+
provenance: MediaProvenance;
|
|
83
|
+
status: MediaAssetStatus;
|
|
84
|
+
fileName: string;
|
|
85
|
+
mimeType: string | null;
|
|
86
|
+
fileSize: number | null;
|
|
87
|
+
contentHash: string | null;
|
|
88
|
+
parentId: string | null;
|
|
89
|
+
path: string | null;
|
|
90
|
+
uploadedAt: string | null;
|
|
91
|
+
locations: Array<MediaStorageLocation>;
|
|
92
|
+
url: string | null;
|
|
93
|
+
createdAt: string;
|
|
94
|
+
updatedAt: string;
|
|
95
|
+
};
|
|
96
|
+
export declare enum SaleType {
|
|
97
|
+
FixedPrice = "FIXED_PRICE",
|
|
98
|
+
DutchAuction = "DUTCH_AUCTION",
|
|
99
|
+
RankedAuction = "RANKED_AUCTION",
|
|
100
|
+
Custom = "CUSTOM"
|
|
101
|
+
}
|
|
102
|
+
export declare enum SaleAccessMode {
|
|
103
|
+
Public = "PUBLIC",
|
|
104
|
+
Gated = "GATED"
|
|
105
|
+
}
|
|
106
|
+
export declare enum SaleStatus {
|
|
107
|
+
Draft = "Draft",
|
|
108
|
+
Live = "Live"
|
|
109
|
+
}
|
|
110
|
+
export declare enum GateMatchMode {
|
|
111
|
+
All = "ALL",
|
|
112
|
+
Any = "ANY"
|
|
113
|
+
}
|
|
114
|
+
export declare enum GateConditionType {
|
|
115
|
+
Allowlist = "ALLOWLIST",
|
|
116
|
+
TokenOwnership = "TOKEN_OWNERSHIP",
|
|
117
|
+
SpecificToken = "SPECIFIC_TOKEN",
|
|
118
|
+
TokenAttribute = "TOKEN_ATTRIBUTE",
|
|
119
|
+
CurrencyBalance = "CURRENCY_BALANCE",
|
|
120
|
+
FarcasterFollow = "FARCASTER_FOLLOW"
|
|
121
|
+
}
|
|
122
|
+
export type MediaUploadInstructions = {
|
|
123
|
+
url: string;
|
|
124
|
+
method: "PUT";
|
|
125
|
+
headers: {
|
|
126
|
+
[key: string]: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
export type MediaUploadSession = {
|
|
130
|
+
media: MediaAsset;
|
|
131
|
+
upload: MediaUploadInstructions;
|
|
132
|
+
};
|
|
133
|
+
export type MediaChildrenList = {
|
|
134
|
+
items: Array<MediaAsset>;
|
|
135
|
+
nextCursor: string | null;
|
|
136
|
+
};
|
|
137
|
+
export type ApiKey = {
|
|
138
|
+
id: string;
|
|
139
|
+
accountId: string;
|
|
140
|
+
name: string;
|
|
141
|
+
prefix: string;
|
|
142
|
+
last4: string;
|
|
143
|
+
scopes: Array<string>;
|
|
144
|
+
lastUsedAt: string | null;
|
|
145
|
+
expiresAt: string | null;
|
|
146
|
+
revokedAt: string | null;
|
|
147
|
+
createdAt: string;
|
|
148
|
+
updatedAt: string;
|
|
149
|
+
};
|
|
150
|
+
export type ApiKeyCreateResponse = {
|
|
151
|
+
apiKey: ApiKey;
|
|
152
|
+
plaintextKey: string;
|
|
153
|
+
};
|
|
154
|
+
export type CollectionListData = {
|
|
155
|
+
body?: never;
|
|
156
|
+
path?: never;
|
|
157
|
+
query: {
|
|
158
|
+
page?: number;
|
|
159
|
+
limit?: number;
|
|
160
|
+
sortBy?: "CREATED_DATE" | "NAME";
|
|
161
|
+
sortDirection?: "ASC" | "DESC";
|
|
162
|
+
status?: "Draft" | "InProgress" | "Live" | "Migrated" | "Disabled";
|
|
163
|
+
blockchains: Array<number>;
|
|
164
|
+
testnet: boolean;
|
|
165
|
+
types: Array<"OpenEdition" | "LimitedEdition" | "OneOfOne" | "Series" | "GenerativeSeries">;
|
|
166
|
+
};
|
|
167
|
+
url: "/collection";
|
|
168
|
+
};
|
|
169
|
+
export type CollectionListErrors = {
|
|
170
|
+
/**
|
|
171
|
+
* Unauthorized
|
|
172
|
+
*/
|
|
173
|
+
401: unknown;
|
|
174
|
+
};
|
|
175
|
+
export type CollectionListResponses = {
|
|
176
|
+
/**
|
|
177
|
+
* List of collections
|
|
178
|
+
*/
|
|
179
|
+
200: {
|
|
180
|
+
items: Array<{
|
|
181
|
+
highlightId: string;
|
|
182
|
+
collectionId: string | null;
|
|
183
|
+
name: string;
|
|
184
|
+
description: string | null;
|
|
185
|
+
logoMediaId: string;
|
|
186
|
+
baseUriId: string | null;
|
|
187
|
+
royaltyAddress: string | null;
|
|
188
|
+
royaltyAmount: number | null;
|
|
189
|
+
tokenManager: string | null;
|
|
190
|
+
status: "Draft" | "InProgress" | "Live" | "Migrated" | "Disabled";
|
|
191
|
+
type: CollectionType;
|
|
192
|
+
contract: {
|
|
193
|
+
id: string;
|
|
194
|
+
chainId: number;
|
|
195
|
+
type: "GenerativeSeries" | "Series" | "MultipleEditions" | "MultipleEditionsDFS" | "SingleEdition" | "SingleEditionDFS" | "EditionsDFS1155";
|
|
196
|
+
standard: ContractStandard;
|
|
197
|
+
creatorAddress: string;
|
|
198
|
+
name: string;
|
|
199
|
+
address: string | null;
|
|
200
|
+
symbol: string;
|
|
201
|
+
contractUri: string | null;
|
|
202
|
+
status: "Draft" | "Deploying" | "Live";
|
|
203
|
+
createdAt: string;
|
|
204
|
+
updatedAt: string;
|
|
205
|
+
};
|
|
206
|
+
createdAt: string;
|
|
207
|
+
updatedAt: string;
|
|
208
|
+
archivedAt: string | null;
|
|
209
|
+
hidden: boolean | null;
|
|
210
|
+
disabled: boolean | null;
|
|
211
|
+
series: {
|
|
212
|
+
size: number;
|
|
213
|
+
isCollectorsChoice?: boolean;
|
|
214
|
+
assetsMediaId?: string;
|
|
215
|
+
} | null;
|
|
216
|
+
generative: {
|
|
217
|
+
size: number;
|
|
218
|
+
codeMediaId: string;
|
|
219
|
+
isCurated?: boolean;
|
|
220
|
+
isGpuRendering?: boolean;
|
|
221
|
+
editionType?: GenerativeEditionType;
|
|
222
|
+
allowedHashes?: Array<string>;
|
|
223
|
+
requiredParams?: Array<string>;
|
|
224
|
+
captureSettings?: {
|
|
225
|
+
trigger: CaptureSettingsTrigger;
|
|
226
|
+
delay?: number;
|
|
227
|
+
selector?: string;
|
|
228
|
+
selectorType?: SelectorType;
|
|
229
|
+
viewPortHeight?: number;
|
|
230
|
+
viewPortWidth?: number;
|
|
231
|
+
};
|
|
232
|
+
} | null;
|
|
233
|
+
edition: {
|
|
234
|
+
size: number;
|
|
235
|
+
name?: string;
|
|
236
|
+
description?: string;
|
|
237
|
+
imageMediaId?: string;
|
|
238
|
+
animationMediaId?: string;
|
|
239
|
+
imageMedia?: MediaAsset | null;
|
|
240
|
+
animationMedia?: MediaAsset | null;
|
|
241
|
+
attributes?: Array<{
|
|
242
|
+
traitType: string;
|
|
243
|
+
value: string;
|
|
244
|
+
}>;
|
|
245
|
+
} | null;
|
|
246
|
+
account: {
|
|
247
|
+
id: string;
|
|
248
|
+
displayName: string | null;
|
|
249
|
+
primaryAddress: string | null;
|
|
250
|
+
ensName: string | null;
|
|
251
|
+
};
|
|
252
|
+
stats: {
|
|
253
|
+
volume: string;
|
|
254
|
+
volumeUsd: string | null;
|
|
255
|
+
ownerCount: number;
|
|
256
|
+
tokenCount: number;
|
|
257
|
+
updatedAt: string;
|
|
258
|
+
} | null;
|
|
259
|
+
sales: Array<{
|
|
260
|
+
id: string;
|
|
261
|
+
collectionId: string;
|
|
262
|
+
name: string | null;
|
|
263
|
+
type: SaleType;
|
|
264
|
+
startAt: string;
|
|
265
|
+
endAt: string | null;
|
|
266
|
+
price: string;
|
|
267
|
+
currency: string;
|
|
268
|
+
maxPerTransaction: number;
|
|
269
|
+
maxPerWallet: number;
|
|
270
|
+
maxTotal: number;
|
|
271
|
+
paymentRecipient: string;
|
|
272
|
+
accessMode: SaleAccessMode;
|
|
273
|
+
gateId: string | null;
|
|
274
|
+
gasSponsored: boolean;
|
|
275
|
+
status: SaleStatus;
|
|
276
|
+
paused: boolean;
|
|
277
|
+
mechanicId: string | null;
|
|
278
|
+
typeConfig: unknown | null;
|
|
279
|
+
vectorId: string | null;
|
|
280
|
+
customMintFee: string | null;
|
|
281
|
+
collectorMessage: string | null;
|
|
282
|
+
createdAt: string;
|
|
283
|
+
updatedAt: string;
|
|
284
|
+
}>;
|
|
285
|
+
}>;
|
|
286
|
+
pageInfo: {
|
|
287
|
+
page: number;
|
|
288
|
+
limit: number;
|
|
289
|
+
totalCount: number;
|
|
290
|
+
totalPages: number;
|
|
291
|
+
hasNextPage: boolean;
|
|
292
|
+
hasPreviousPage: boolean;
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
export type CollectionListResponse = CollectionListResponses[keyof CollectionListResponses];
|
|
297
|
+
export type CollectionCreateData = {
|
|
298
|
+
body: {
|
|
299
|
+
name: string;
|
|
300
|
+
description: string;
|
|
301
|
+
contractId?: string;
|
|
302
|
+
contract?: {
|
|
303
|
+
chainId: number;
|
|
304
|
+
name: string;
|
|
305
|
+
symbol: string;
|
|
306
|
+
standard: ContractStandard;
|
|
307
|
+
};
|
|
308
|
+
logoMediaId: string;
|
|
309
|
+
image: string;
|
|
310
|
+
type: CollectionType;
|
|
311
|
+
royalty?: {
|
|
312
|
+
address: string;
|
|
313
|
+
amount: number;
|
|
314
|
+
};
|
|
315
|
+
tokenManager?: string;
|
|
316
|
+
};
|
|
317
|
+
path?: never;
|
|
318
|
+
query?: never;
|
|
319
|
+
url: "/collection";
|
|
320
|
+
};
|
|
321
|
+
export type CollectionCreateErrors = {
|
|
322
|
+
/**
|
|
323
|
+
* Invalid request
|
|
324
|
+
*/
|
|
325
|
+
400: unknown;
|
|
326
|
+
/**
|
|
327
|
+
* Unauthorized
|
|
328
|
+
*/
|
|
329
|
+
401: unknown;
|
|
330
|
+
/**
|
|
331
|
+
* Forbidden
|
|
332
|
+
*/
|
|
333
|
+
403: unknown;
|
|
334
|
+
/**
|
|
335
|
+
* Not found
|
|
336
|
+
*/
|
|
337
|
+
404: unknown;
|
|
338
|
+
};
|
|
339
|
+
export type CollectionCreateResponses = {
|
|
340
|
+
/**
|
|
341
|
+
* Created collection
|
|
342
|
+
*/
|
|
343
|
+
200: {
|
|
344
|
+
highlightId: string;
|
|
345
|
+
collectionId: string | null;
|
|
346
|
+
name: string;
|
|
347
|
+
description: string | null;
|
|
348
|
+
logoMediaId: string;
|
|
349
|
+
baseUriId: string | null;
|
|
350
|
+
royaltyAddress: string | null;
|
|
351
|
+
royaltyAmount: number | null;
|
|
352
|
+
tokenManager: string | null;
|
|
353
|
+
status: "Draft" | "InProgress" | "Live" | "Migrated" | "Disabled";
|
|
354
|
+
type: CollectionType;
|
|
355
|
+
contract: {
|
|
356
|
+
id: string;
|
|
357
|
+
chainId: number;
|
|
358
|
+
type: "GenerativeSeries" | "Series" | "MultipleEditions" | "MultipleEditionsDFS" | "SingleEdition" | "SingleEditionDFS" | "EditionsDFS1155";
|
|
359
|
+
standard: ContractStandard;
|
|
360
|
+
creatorAddress: string;
|
|
361
|
+
name: string;
|
|
362
|
+
address: string | null;
|
|
363
|
+
symbol: string;
|
|
364
|
+
contractUri: string | null;
|
|
365
|
+
status: "Draft" | "Deploying" | "Live";
|
|
366
|
+
createdAt: string;
|
|
367
|
+
updatedAt: string;
|
|
368
|
+
};
|
|
369
|
+
createdAt: string;
|
|
370
|
+
updatedAt: string;
|
|
371
|
+
archivedAt: string | null;
|
|
372
|
+
hidden: boolean | null;
|
|
373
|
+
disabled: boolean | null;
|
|
374
|
+
series: {
|
|
375
|
+
size: number;
|
|
376
|
+
isCollectorsChoice?: boolean;
|
|
377
|
+
assetsMediaId?: string;
|
|
378
|
+
} | null;
|
|
379
|
+
generative: {
|
|
380
|
+
size: number;
|
|
381
|
+
codeMediaId: string;
|
|
382
|
+
isCurated?: boolean;
|
|
383
|
+
isGpuRendering?: boolean;
|
|
384
|
+
editionType?: GenerativeEditionType;
|
|
385
|
+
allowedHashes?: Array<string>;
|
|
386
|
+
requiredParams?: Array<string>;
|
|
387
|
+
captureSettings?: {
|
|
388
|
+
trigger: CaptureSettingsTrigger;
|
|
389
|
+
delay?: number;
|
|
390
|
+
selector?: string;
|
|
391
|
+
selectorType?: SelectorType;
|
|
392
|
+
viewPortHeight?: number;
|
|
393
|
+
viewPortWidth?: number;
|
|
394
|
+
};
|
|
395
|
+
} | null;
|
|
396
|
+
edition: {
|
|
397
|
+
size: number;
|
|
398
|
+
name?: string;
|
|
399
|
+
description?: string;
|
|
400
|
+
imageMediaId?: string;
|
|
401
|
+
animationMediaId?: string;
|
|
402
|
+
imageMedia?: MediaAsset | null;
|
|
403
|
+
animationMedia?: MediaAsset | null;
|
|
404
|
+
attributes?: Array<{
|
|
405
|
+
traitType: string;
|
|
406
|
+
value: string;
|
|
407
|
+
}>;
|
|
408
|
+
} | null;
|
|
409
|
+
account: {
|
|
410
|
+
id: string;
|
|
411
|
+
displayName: string | null;
|
|
412
|
+
primaryAddress: string | null;
|
|
413
|
+
ensName: string | null;
|
|
414
|
+
};
|
|
415
|
+
stats: {
|
|
416
|
+
volume: string;
|
|
417
|
+
volumeUsd: string | null;
|
|
418
|
+
ownerCount: number;
|
|
419
|
+
tokenCount: number;
|
|
420
|
+
updatedAt: string;
|
|
421
|
+
} | null;
|
|
422
|
+
sales: Array<{
|
|
423
|
+
id: string;
|
|
424
|
+
collectionId: string;
|
|
425
|
+
name: string | null;
|
|
426
|
+
type: SaleType;
|
|
427
|
+
startAt: string;
|
|
428
|
+
endAt: string | null;
|
|
429
|
+
price: string;
|
|
430
|
+
currency: string;
|
|
431
|
+
maxPerTransaction: number;
|
|
432
|
+
maxPerWallet: number;
|
|
433
|
+
maxTotal: number;
|
|
434
|
+
paymentRecipient: string;
|
|
435
|
+
accessMode: SaleAccessMode;
|
|
436
|
+
gateId: string | null;
|
|
437
|
+
gasSponsored: boolean;
|
|
438
|
+
status: SaleStatus;
|
|
439
|
+
paused: boolean;
|
|
440
|
+
mechanicId: string | null;
|
|
441
|
+
typeConfig: unknown | null;
|
|
442
|
+
vectorId: string | null;
|
|
443
|
+
customMintFee: string | null;
|
|
444
|
+
collectorMessage: string | null;
|
|
445
|
+
createdAt: string;
|
|
446
|
+
updatedAt: string;
|
|
447
|
+
}>;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
export type CollectionCreateResponse = CollectionCreateResponses[keyof CollectionCreateResponses];
|
|
451
|
+
export type CollectionGetData = {
|
|
452
|
+
body?: never;
|
|
453
|
+
path: {
|
|
454
|
+
highlightId: string;
|
|
455
|
+
};
|
|
456
|
+
query?: never;
|
|
457
|
+
url: "/collection/{highlightId}";
|
|
458
|
+
};
|
|
459
|
+
export type CollectionGetErrors = {
|
|
460
|
+
/**
|
|
461
|
+
* Forbidden
|
|
462
|
+
*/
|
|
463
|
+
403: unknown;
|
|
464
|
+
/**
|
|
465
|
+
* Not found
|
|
466
|
+
*/
|
|
467
|
+
404: unknown;
|
|
468
|
+
};
|
|
469
|
+
export type CollectionGetResponses = {
|
|
470
|
+
/**
|
|
471
|
+
* Collection details
|
|
472
|
+
*/
|
|
473
|
+
200: {
|
|
474
|
+
highlightId: string;
|
|
475
|
+
collectionId: string | null;
|
|
476
|
+
name: string;
|
|
477
|
+
description: string | null;
|
|
478
|
+
logoMediaId: string;
|
|
479
|
+
baseUriId: string | null;
|
|
480
|
+
royaltyAddress: string | null;
|
|
481
|
+
royaltyAmount: number | null;
|
|
482
|
+
tokenManager: string | null;
|
|
483
|
+
status: "Draft" | "InProgress" | "Live" | "Migrated" | "Disabled";
|
|
484
|
+
type: CollectionType;
|
|
485
|
+
contract: {
|
|
486
|
+
id: string;
|
|
487
|
+
chainId: number;
|
|
488
|
+
type: "GenerativeSeries" | "Series" | "MultipleEditions" | "MultipleEditionsDFS" | "SingleEdition" | "SingleEditionDFS" | "EditionsDFS1155";
|
|
489
|
+
standard: ContractStandard;
|
|
490
|
+
creatorAddress: string;
|
|
491
|
+
name: string;
|
|
492
|
+
address: string | null;
|
|
493
|
+
symbol: string;
|
|
494
|
+
contractUri: string | null;
|
|
495
|
+
status: "Draft" | "Deploying" | "Live";
|
|
496
|
+
createdAt: string;
|
|
497
|
+
updatedAt: string;
|
|
498
|
+
};
|
|
499
|
+
createdAt: string;
|
|
500
|
+
updatedAt: string;
|
|
501
|
+
archivedAt: string | null;
|
|
502
|
+
hidden: boolean | null;
|
|
503
|
+
disabled: boolean | null;
|
|
504
|
+
series: {
|
|
505
|
+
size: number;
|
|
506
|
+
isCollectorsChoice?: boolean;
|
|
507
|
+
assetsMediaId?: string;
|
|
508
|
+
} | null;
|
|
509
|
+
generative: {
|
|
510
|
+
size: number;
|
|
511
|
+
codeMediaId: string;
|
|
512
|
+
isCurated?: boolean;
|
|
513
|
+
isGpuRendering?: boolean;
|
|
514
|
+
editionType?: GenerativeEditionType;
|
|
515
|
+
allowedHashes?: Array<string>;
|
|
516
|
+
requiredParams?: Array<string>;
|
|
517
|
+
captureSettings?: {
|
|
518
|
+
trigger: CaptureSettingsTrigger;
|
|
519
|
+
delay?: number;
|
|
520
|
+
selector?: string;
|
|
521
|
+
selectorType?: SelectorType;
|
|
522
|
+
viewPortHeight?: number;
|
|
523
|
+
viewPortWidth?: number;
|
|
524
|
+
};
|
|
525
|
+
} | null;
|
|
526
|
+
edition: {
|
|
527
|
+
size: number;
|
|
528
|
+
name?: string;
|
|
529
|
+
description?: string;
|
|
530
|
+
imageMediaId?: string;
|
|
531
|
+
animationMediaId?: string;
|
|
532
|
+
imageMedia?: MediaAsset | null;
|
|
533
|
+
animationMedia?: MediaAsset | null;
|
|
534
|
+
attributes?: Array<{
|
|
535
|
+
traitType: string;
|
|
536
|
+
value: string;
|
|
537
|
+
}>;
|
|
538
|
+
} | null;
|
|
539
|
+
account: {
|
|
540
|
+
id: string;
|
|
541
|
+
displayName: string | null;
|
|
542
|
+
primaryAddress: string | null;
|
|
543
|
+
ensName: string | null;
|
|
544
|
+
};
|
|
545
|
+
stats: {
|
|
546
|
+
volume: string;
|
|
547
|
+
volumeUsd: string | null;
|
|
548
|
+
ownerCount: number;
|
|
549
|
+
tokenCount: number;
|
|
550
|
+
updatedAt: string;
|
|
551
|
+
} | null;
|
|
552
|
+
sales: Array<{
|
|
553
|
+
id: string;
|
|
554
|
+
collectionId: string;
|
|
555
|
+
name: string | null;
|
|
556
|
+
type: SaleType;
|
|
557
|
+
startAt: string;
|
|
558
|
+
endAt: string | null;
|
|
559
|
+
price: string;
|
|
560
|
+
currency: string;
|
|
561
|
+
maxPerTransaction: number;
|
|
562
|
+
maxPerWallet: number;
|
|
563
|
+
maxTotal: number;
|
|
564
|
+
paymentRecipient: string;
|
|
565
|
+
accessMode: SaleAccessMode;
|
|
566
|
+
gateId: string | null;
|
|
567
|
+
gasSponsored: boolean;
|
|
568
|
+
status: SaleStatus;
|
|
569
|
+
paused: boolean;
|
|
570
|
+
mechanicId: string | null;
|
|
571
|
+
typeConfig: unknown | null;
|
|
572
|
+
vectorId: string | null;
|
|
573
|
+
customMintFee: string | null;
|
|
574
|
+
collectorMessage: string | null;
|
|
575
|
+
createdAt: string;
|
|
576
|
+
updatedAt: string;
|
|
577
|
+
}>;
|
|
578
|
+
};
|
|
579
|
+
};
|
|
580
|
+
export type CollectionGetResponse = CollectionGetResponses[keyof CollectionGetResponses];
|
|
581
|
+
export type CollectionFinalizeBaseUriData = {
|
|
582
|
+
body?: never;
|
|
583
|
+
path: {
|
|
584
|
+
highlightId: string;
|
|
585
|
+
};
|
|
586
|
+
query?: never;
|
|
587
|
+
url: "/collection/{highlightId}/finalize-base-uri";
|
|
588
|
+
};
|
|
589
|
+
export type CollectionFinalizeBaseUriErrors = {
|
|
590
|
+
/**
|
|
591
|
+
* Base URI not set or directory empty
|
|
592
|
+
*/
|
|
593
|
+
400: unknown;
|
|
594
|
+
/**
|
|
595
|
+
* Unauthorized
|
|
596
|
+
*/
|
|
597
|
+
401: unknown;
|
|
598
|
+
/**
|
|
599
|
+
* Not the owner
|
|
600
|
+
*/
|
|
601
|
+
403: unknown;
|
|
602
|
+
/**
|
|
603
|
+
* Collection not found
|
|
604
|
+
*/
|
|
605
|
+
404: unknown;
|
|
606
|
+
/**
|
|
607
|
+
* Archive provider unavailable
|
|
608
|
+
*/
|
|
609
|
+
503: unknown;
|
|
610
|
+
};
|
|
611
|
+
export type CollectionFinalizeBaseUriResponses = {
|
|
612
|
+
/**
|
|
613
|
+
* Collection with Archive location on base URI
|
|
614
|
+
*/
|
|
615
|
+
200: {
|
|
616
|
+
highlightId: string;
|
|
617
|
+
collectionId: string | null;
|
|
618
|
+
name: string;
|
|
619
|
+
description: string | null;
|
|
620
|
+
logoMediaId: string;
|
|
621
|
+
baseUriId: string | null;
|
|
622
|
+
royaltyAddress: string | null;
|
|
623
|
+
royaltyAmount: number | null;
|
|
624
|
+
tokenManager: string | null;
|
|
625
|
+
status: "Draft" | "InProgress" | "Live" | "Migrated" | "Disabled";
|
|
626
|
+
type: CollectionType;
|
|
627
|
+
contract: {
|
|
628
|
+
id: string;
|
|
629
|
+
chainId: number;
|
|
630
|
+
type: "GenerativeSeries" | "Series" | "MultipleEditions" | "MultipleEditionsDFS" | "SingleEdition" | "SingleEditionDFS" | "EditionsDFS1155";
|
|
631
|
+
standard: ContractStandard;
|
|
632
|
+
creatorAddress: string;
|
|
633
|
+
name: string;
|
|
634
|
+
address: string | null;
|
|
635
|
+
symbol: string;
|
|
636
|
+
contractUri: string | null;
|
|
637
|
+
status: "Draft" | "Deploying" | "Live";
|
|
638
|
+
createdAt: string;
|
|
639
|
+
updatedAt: string;
|
|
640
|
+
};
|
|
641
|
+
createdAt: string;
|
|
642
|
+
updatedAt: string;
|
|
643
|
+
archivedAt: string | null;
|
|
644
|
+
hidden: boolean | null;
|
|
645
|
+
disabled: boolean | null;
|
|
646
|
+
series: {
|
|
647
|
+
size: number;
|
|
648
|
+
isCollectorsChoice?: boolean;
|
|
649
|
+
assetsMediaId?: string;
|
|
650
|
+
} | null;
|
|
651
|
+
generative: {
|
|
652
|
+
size: number;
|
|
653
|
+
codeMediaId: string;
|
|
654
|
+
isCurated?: boolean;
|
|
655
|
+
isGpuRendering?: boolean;
|
|
656
|
+
editionType?: GenerativeEditionType;
|
|
657
|
+
allowedHashes?: Array<string>;
|
|
658
|
+
requiredParams?: Array<string>;
|
|
659
|
+
captureSettings?: {
|
|
660
|
+
trigger: CaptureSettingsTrigger;
|
|
661
|
+
delay?: number;
|
|
662
|
+
selector?: string;
|
|
663
|
+
selectorType?: SelectorType;
|
|
664
|
+
viewPortHeight?: number;
|
|
665
|
+
viewPortWidth?: number;
|
|
666
|
+
};
|
|
667
|
+
} | null;
|
|
668
|
+
edition: {
|
|
669
|
+
size: number;
|
|
670
|
+
name?: string;
|
|
671
|
+
description?: string;
|
|
672
|
+
imageMediaId?: string;
|
|
673
|
+
animationMediaId?: string;
|
|
674
|
+
imageMedia?: MediaAsset | null;
|
|
675
|
+
animationMedia?: MediaAsset | null;
|
|
676
|
+
attributes?: Array<{
|
|
677
|
+
traitType: string;
|
|
678
|
+
value: string;
|
|
679
|
+
}>;
|
|
680
|
+
} | null;
|
|
681
|
+
account: {
|
|
682
|
+
id: string;
|
|
683
|
+
displayName: string | null;
|
|
684
|
+
primaryAddress: string | null;
|
|
685
|
+
ensName: string | null;
|
|
686
|
+
};
|
|
687
|
+
stats: {
|
|
688
|
+
volume: string;
|
|
689
|
+
volumeUsd: string | null;
|
|
690
|
+
ownerCount: number;
|
|
691
|
+
tokenCount: number;
|
|
692
|
+
updatedAt: string;
|
|
693
|
+
} | null;
|
|
694
|
+
sales: Array<{
|
|
695
|
+
id: string;
|
|
696
|
+
collectionId: string;
|
|
697
|
+
name: string | null;
|
|
698
|
+
type: SaleType;
|
|
699
|
+
startAt: string;
|
|
700
|
+
endAt: string | null;
|
|
701
|
+
price: string;
|
|
702
|
+
currency: string;
|
|
703
|
+
maxPerTransaction: number;
|
|
704
|
+
maxPerWallet: number;
|
|
705
|
+
maxTotal: number;
|
|
706
|
+
paymentRecipient: string;
|
|
707
|
+
accessMode: SaleAccessMode;
|
|
708
|
+
gateId: string | null;
|
|
709
|
+
gasSponsored: boolean;
|
|
710
|
+
status: SaleStatus;
|
|
711
|
+
paused: boolean;
|
|
712
|
+
mechanicId: string | null;
|
|
713
|
+
typeConfig: unknown | null;
|
|
714
|
+
vectorId: string | null;
|
|
715
|
+
customMintFee: string | null;
|
|
716
|
+
collectorMessage: string | null;
|
|
717
|
+
createdAt: string;
|
|
718
|
+
updatedAt: string;
|
|
719
|
+
}>;
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
export type CollectionFinalizeBaseUriResponse = CollectionFinalizeBaseUriResponses[keyof CollectionFinalizeBaseUriResponses];
|
|
723
|
+
export type CollectionUpdateGenerativeDetailsData = {
|
|
724
|
+
body: {
|
|
725
|
+
generative: {
|
|
726
|
+
size: number;
|
|
727
|
+
codeMediaId: string;
|
|
728
|
+
isCurated?: boolean;
|
|
729
|
+
isGpuRendering?: boolean;
|
|
730
|
+
editionType?: GenerativeEditionType;
|
|
731
|
+
allowedHashes?: Array<string>;
|
|
732
|
+
requiredParams?: Array<string>;
|
|
733
|
+
captureSettings?: {
|
|
734
|
+
trigger: CaptureSettingsTrigger;
|
|
735
|
+
delay?: number;
|
|
736
|
+
selector?: string;
|
|
737
|
+
selectorType?: SelectorType;
|
|
738
|
+
viewPortHeight?: number;
|
|
739
|
+
viewPortWidth?: number;
|
|
740
|
+
};
|
|
741
|
+
};
|
|
742
|
+
};
|
|
743
|
+
path: {
|
|
744
|
+
highlightId: string;
|
|
745
|
+
};
|
|
746
|
+
query?: never;
|
|
747
|
+
url: "/collection/{highlightId}/details/generative";
|
|
748
|
+
};
|
|
749
|
+
export type CollectionUpdateGenerativeDetailsErrors = {
|
|
750
|
+
/**
|
|
751
|
+
* Invalid request
|
|
752
|
+
*/
|
|
753
|
+
400: unknown;
|
|
754
|
+
/**
|
|
755
|
+
* Unauthorized
|
|
756
|
+
*/
|
|
757
|
+
401: unknown;
|
|
758
|
+
/**
|
|
759
|
+
* Forbidden
|
|
760
|
+
*/
|
|
761
|
+
403: unknown;
|
|
762
|
+
/**
|
|
763
|
+
* Not found
|
|
764
|
+
*/
|
|
765
|
+
404: unknown;
|
|
766
|
+
};
|
|
767
|
+
export type CollectionUpdateGenerativeDetailsResponses = {
|
|
768
|
+
/**
|
|
769
|
+
* Updated generative draft details
|
|
770
|
+
*/
|
|
771
|
+
200: {
|
|
772
|
+
highlightId: string;
|
|
773
|
+
collectionId: string | null;
|
|
774
|
+
name: string;
|
|
775
|
+
description: string | null;
|
|
776
|
+
logoMediaId: string;
|
|
777
|
+
baseUriId: string | null;
|
|
778
|
+
royaltyAddress: string | null;
|
|
779
|
+
royaltyAmount: number | null;
|
|
780
|
+
tokenManager: string | null;
|
|
781
|
+
status: "Draft" | "InProgress" | "Live" | "Migrated" | "Disabled";
|
|
782
|
+
type: CollectionType;
|
|
783
|
+
contract: {
|
|
784
|
+
id: string;
|
|
785
|
+
chainId: number;
|
|
786
|
+
type: "GenerativeSeries" | "Series" | "MultipleEditions" | "MultipleEditionsDFS" | "SingleEdition" | "SingleEditionDFS" | "EditionsDFS1155";
|
|
787
|
+
standard: ContractStandard;
|
|
788
|
+
creatorAddress: string;
|
|
789
|
+
name: string;
|
|
790
|
+
address: string | null;
|
|
791
|
+
symbol: string;
|
|
792
|
+
contractUri: string | null;
|
|
793
|
+
status: "Draft" | "Deploying" | "Live";
|
|
794
|
+
createdAt: string;
|
|
795
|
+
updatedAt: string;
|
|
796
|
+
};
|
|
797
|
+
createdAt: string;
|
|
798
|
+
updatedAt: string;
|
|
799
|
+
archivedAt: string | null;
|
|
800
|
+
hidden: boolean | null;
|
|
801
|
+
disabled: boolean | null;
|
|
802
|
+
series: {
|
|
803
|
+
size: number;
|
|
804
|
+
isCollectorsChoice?: boolean;
|
|
805
|
+
assetsMediaId?: string;
|
|
806
|
+
} | null;
|
|
807
|
+
generative: {
|
|
808
|
+
size: number;
|
|
809
|
+
codeMediaId: string;
|
|
810
|
+
isCurated?: boolean;
|
|
811
|
+
isGpuRendering?: boolean;
|
|
812
|
+
editionType?: GenerativeEditionType;
|
|
813
|
+
allowedHashes?: Array<string>;
|
|
814
|
+
requiredParams?: Array<string>;
|
|
815
|
+
captureSettings?: {
|
|
816
|
+
trigger: CaptureSettingsTrigger;
|
|
817
|
+
delay?: number;
|
|
818
|
+
selector?: string;
|
|
819
|
+
selectorType?: SelectorType;
|
|
820
|
+
viewPortHeight?: number;
|
|
821
|
+
viewPortWidth?: number;
|
|
822
|
+
};
|
|
823
|
+
} | null;
|
|
824
|
+
edition: {
|
|
825
|
+
size: number;
|
|
826
|
+
name?: string;
|
|
827
|
+
description?: string;
|
|
828
|
+
imageMediaId?: string;
|
|
829
|
+
animationMediaId?: string;
|
|
830
|
+
imageMedia?: MediaAsset | null;
|
|
831
|
+
animationMedia?: MediaAsset | null;
|
|
832
|
+
attributes?: Array<{
|
|
833
|
+
traitType: string;
|
|
834
|
+
value: string;
|
|
835
|
+
}>;
|
|
836
|
+
} | null;
|
|
837
|
+
account: {
|
|
838
|
+
id: string;
|
|
839
|
+
displayName: string | null;
|
|
840
|
+
primaryAddress: string | null;
|
|
841
|
+
ensName: string | null;
|
|
842
|
+
};
|
|
843
|
+
stats: {
|
|
844
|
+
volume: string;
|
|
845
|
+
volumeUsd: string | null;
|
|
846
|
+
ownerCount: number;
|
|
847
|
+
tokenCount: number;
|
|
848
|
+
updatedAt: string;
|
|
849
|
+
} | null;
|
|
850
|
+
sales: Array<{
|
|
851
|
+
id: string;
|
|
852
|
+
collectionId: string;
|
|
853
|
+
name: string | null;
|
|
854
|
+
type: SaleType;
|
|
855
|
+
startAt: string;
|
|
856
|
+
endAt: string | null;
|
|
857
|
+
price: string;
|
|
858
|
+
currency: string;
|
|
859
|
+
maxPerTransaction: number;
|
|
860
|
+
maxPerWallet: number;
|
|
861
|
+
maxTotal: number;
|
|
862
|
+
paymentRecipient: string;
|
|
863
|
+
accessMode: SaleAccessMode;
|
|
864
|
+
gateId: string | null;
|
|
865
|
+
gasSponsored: boolean;
|
|
866
|
+
status: SaleStatus;
|
|
867
|
+
paused: boolean;
|
|
868
|
+
mechanicId: string | null;
|
|
869
|
+
typeConfig: unknown | null;
|
|
870
|
+
vectorId: string | null;
|
|
871
|
+
customMintFee: string | null;
|
|
872
|
+
collectorMessage: string | null;
|
|
873
|
+
createdAt: string;
|
|
874
|
+
updatedAt: string;
|
|
875
|
+
}>;
|
|
876
|
+
};
|
|
877
|
+
};
|
|
878
|
+
export type CollectionUpdateGenerativeDetailsResponse = CollectionUpdateGenerativeDetailsResponses[keyof CollectionUpdateGenerativeDetailsResponses];
|
|
879
|
+
export type CollectionUpdateSeriesDetailsData = {
|
|
880
|
+
body: {
|
|
881
|
+
series: {
|
|
882
|
+
size: number;
|
|
883
|
+
isCollectorsChoice?: boolean;
|
|
884
|
+
assetsMediaId?: string;
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
path: {
|
|
888
|
+
highlightId: string;
|
|
889
|
+
};
|
|
890
|
+
query?: never;
|
|
891
|
+
url: "/collection/{highlightId}/details/series";
|
|
892
|
+
};
|
|
893
|
+
export type CollectionUpdateSeriesDetailsErrors = {
|
|
894
|
+
/**
|
|
895
|
+
* Invalid request
|
|
896
|
+
*/
|
|
897
|
+
400: unknown;
|
|
898
|
+
/**
|
|
899
|
+
* Unauthorized
|
|
900
|
+
*/
|
|
901
|
+
401: unknown;
|
|
902
|
+
/**
|
|
903
|
+
* Forbidden
|
|
904
|
+
*/
|
|
905
|
+
403: unknown;
|
|
906
|
+
/**
|
|
907
|
+
* Not found
|
|
908
|
+
*/
|
|
909
|
+
404: unknown;
|
|
910
|
+
};
|
|
911
|
+
export type CollectionUpdateSeriesDetailsResponses = {
|
|
912
|
+
/**
|
|
913
|
+
* Updated series draft details
|
|
914
|
+
*/
|
|
915
|
+
200: {
|
|
916
|
+
highlightId: string;
|
|
917
|
+
collectionId: string | null;
|
|
918
|
+
name: string;
|
|
919
|
+
description: string | null;
|
|
920
|
+
logoMediaId: string;
|
|
921
|
+
baseUriId: string | null;
|
|
922
|
+
royaltyAddress: string | null;
|
|
923
|
+
royaltyAmount: number | null;
|
|
924
|
+
tokenManager: string | null;
|
|
925
|
+
status: "Draft" | "InProgress" | "Live" | "Migrated" | "Disabled";
|
|
926
|
+
type: CollectionType;
|
|
927
|
+
contract: {
|
|
928
|
+
id: string;
|
|
929
|
+
chainId: number;
|
|
930
|
+
type: "GenerativeSeries" | "Series" | "MultipleEditions" | "MultipleEditionsDFS" | "SingleEdition" | "SingleEditionDFS" | "EditionsDFS1155";
|
|
931
|
+
standard: ContractStandard;
|
|
932
|
+
creatorAddress: string;
|
|
933
|
+
name: string;
|
|
934
|
+
address: string | null;
|
|
935
|
+
symbol: string;
|
|
936
|
+
contractUri: string | null;
|
|
937
|
+
status: "Draft" | "Deploying" | "Live";
|
|
938
|
+
createdAt: string;
|
|
939
|
+
updatedAt: string;
|
|
940
|
+
};
|
|
941
|
+
createdAt: string;
|
|
942
|
+
updatedAt: string;
|
|
943
|
+
archivedAt: string | null;
|
|
944
|
+
hidden: boolean | null;
|
|
945
|
+
disabled: boolean | null;
|
|
946
|
+
series: {
|
|
947
|
+
size: number;
|
|
948
|
+
isCollectorsChoice?: boolean;
|
|
949
|
+
assetsMediaId?: string;
|
|
950
|
+
} | null;
|
|
951
|
+
generative: {
|
|
952
|
+
size: number;
|
|
953
|
+
codeMediaId: string;
|
|
954
|
+
isCurated?: boolean;
|
|
955
|
+
isGpuRendering?: boolean;
|
|
956
|
+
editionType?: GenerativeEditionType;
|
|
957
|
+
allowedHashes?: Array<string>;
|
|
958
|
+
requiredParams?: Array<string>;
|
|
959
|
+
captureSettings?: {
|
|
960
|
+
trigger: CaptureSettingsTrigger;
|
|
961
|
+
delay?: number;
|
|
962
|
+
selector?: string;
|
|
963
|
+
selectorType?: SelectorType;
|
|
964
|
+
viewPortHeight?: number;
|
|
965
|
+
viewPortWidth?: number;
|
|
966
|
+
};
|
|
967
|
+
} | null;
|
|
968
|
+
edition: {
|
|
969
|
+
size: number;
|
|
970
|
+
name?: string;
|
|
971
|
+
description?: string;
|
|
972
|
+
imageMediaId?: string;
|
|
973
|
+
animationMediaId?: string;
|
|
974
|
+
imageMedia?: MediaAsset | null;
|
|
975
|
+
animationMedia?: MediaAsset | null;
|
|
976
|
+
attributes?: Array<{
|
|
977
|
+
traitType: string;
|
|
978
|
+
value: string;
|
|
979
|
+
}>;
|
|
980
|
+
} | null;
|
|
981
|
+
account: {
|
|
982
|
+
id: string;
|
|
983
|
+
displayName: string | null;
|
|
984
|
+
primaryAddress: string | null;
|
|
985
|
+
ensName: string | null;
|
|
986
|
+
};
|
|
987
|
+
stats: {
|
|
988
|
+
volume: string;
|
|
989
|
+
volumeUsd: string | null;
|
|
990
|
+
ownerCount: number;
|
|
991
|
+
tokenCount: number;
|
|
992
|
+
updatedAt: string;
|
|
993
|
+
} | null;
|
|
994
|
+
sales: Array<{
|
|
995
|
+
id: string;
|
|
996
|
+
collectionId: string;
|
|
997
|
+
name: string | null;
|
|
998
|
+
type: SaleType;
|
|
999
|
+
startAt: string;
|
|
1000
|
+
endAt: string | null;
|
|
1001
|
+
price: string;
|
|
1002
|
+
currency: string;
|
|
1003
|
+
maxPerTransaction: number;
|
|
1004
|
+
maxPerWallet: number;
|
|
1005
|
+
maxTotal: number;
|
|
1006
|
+
paymentRecipient: string;
|
|
1007
|
+
accessMode: SaleAccessMode;
|
|
1008
|
+
gateId: string | null;
|
|
1009
|
+
gasSponsored: boolean;
|
|
1010
|
+
status: SaleStatus;
|
|
1011
|
+
paused: boolean;
|
|
1012
|
+
mechanicId: string | null;
|
|
1013
|
+
typeConfig: unknown | null;
|
|
1014
|
+
vectorId: string | null;
|
|
1015
|
+
customMintFee: string | null;
|
|
1016
|
+
collectorMessage: string | null;
|
|
1017
|
+
createdAt: string;
|
|
1018
|
+
updatedAt: string;
|
|
1019
|
+
}>;
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
export type CollectionUpdateSeriesDetailsResponse = CollectionUpdateSeriesDetailsResponses[keyof CollectionUpdateSeriesDetailsResponses];
|
|
1023
|
+
export type CollectionUpdateEditionDetailsData = {
|
|
1024
|
+
body: {
|
|
1025
|
+
edition: {
|
|
1026
|
+
size: number;
|
|
1027
|
+
name?: string;
|
|
1028
|
+
description?: string;
|
|
1029
|
+
imageMediaId: string;
|
|
1030
|
+
animationMediaId?: string | null;
|
|
1031
|
+
attributes?: Array<{
|
|
1032
|
+
traitType: string;
|
|
1033
|
+
value: string;
|
|
1034
|
+
}>;
|
|
1035
|
+
};
|
|
1036
|
+
};
|
|
1037
|
+
path: {
|
|
1038
|
+
highlightId: string;
|
|
1039
|
+
};
|
|
1040
|
+
query?: never;
|
|
1041
|
+
url: "/collection/{highlightId}/details/edition";
|
|
1042
|
+
};
|
|
1043
|
+
export type CollectionUpdateEditionDetailsErrors = {
|
|
1044
|
+
/**
|
|
1045
|
+
* Invalid request
|
|
1046
|
+
*/
|
|
1047
|
+
400: unknown;
|
|
1048
|
+
/**
|
|
1049
|
+
* Unauthorized
|
|
1050
|
+
*/
|
|
1051
|
+
401: unknown;
|
|
1052
|
+
/**
|
|
1053
|
+
* Forbidden
|
|
1054
|
+
*/
|
|
1055
|
+
403: unknown;
|
|
1056
|
+
/**
|
|
1057
|
+
* Not found
|
|
1058
|
+
*/
|
|
1059
|
+
404: unknown;
|
|
1060
|
+
};
|
|
1061
|
+
export type CollectionUpdateEditionDetailsResponses = {
|
|
1062
|
+
/**
|
|
1063
|
+
* Updated edition draft details
|
|
1064
|
+
*/
|
|
1065
|
+
200: {
|
|
1066
|
+
highlightId: string;
|
|
1067
|
+
collectionId: string | null;
|
|
1068
|
+
name: string;
|
|
1069
|
+
description: string | null;
|
|
1070
|
+
logoMediaId: string;
|
|
1071
|
+
baseUriId: string | null;
|
|
1072
|
+
royaltyAddress: string | null;
|
|
1073
|
+
royaltyAmount: number | null;
|
|
1074
|
+
tokenManager: string | null;
|
|
1075
|
+
status: "Draft" | "InProgress" | "Live" | "Migrated" | "Disabled";
|
|
1076
|
+
type: CollectionType;
|
|
1077
|
+
contract: {
|
|
1078
|
+
id: string;
|
|
1079
|
+
chainId: number;
|
|
1080
|
+
type: "GenerativeSeries" | "Series" | "MultipleEditions" | "MultipleEditionsDFS" | "SingleEdition" | "SingleEditionDFS" | "EditionsDFS1155";
|
|
1081
|
+
standard: ContractStandard;
|
|
1082
|
+
creatorAddress: string;
|
|
1083
|
+
name: string;
|
|
1084
|
+
address: string | null;
|
|
1085
|
+
symbol: string;
|
|
1086
|
+
contractUri: string | null;
|
|
1087
|
+
status: "Draft" | "Deploying" | "Live";
|
|
1088
|
+
createdAt: string;
|
|
1089
|
+
updatedAt: string;
|
|
1090
|
+
};
|
|
1091
|
+
createdAt: string;
|
|
1092
|
+
updatedAt: string;
|
|
1093
|
+
archivedAt: string | null;
|
|
1094
|
+
hidden: boolean | null;
|
|
1095
|
+
disabled: boolean | null;
|
|
1096
|
+
series: {
|
|
1097
|
+
size: number;
|
|
1098
|
+
isCollectorsChoice?: boolean;
|
|
1099
|
+
assetsMediaId?: string;
|
|
1100
|
+
} | null;
|
|
1101
|
+
generative: {
|
|
1102
|
+
size: number;
|
|
1103
|
+
codeMediaId: string;
|
|
1104
|
+
isCurated?: boolean;
|
|
1105
|
+
isGpuRendering?: boolean;
|
|
1106
|
+
editionType?: GenerativeEditionType;
|
|
1107
|
+
allowedHashes?: Array<string>;
|
|
1108
|
+
requiredParams?: Array<string>;
|
|
1109
|
+
captureSettings?: {
|
|
1110
|
+
trigger: CaptureSettingsTrigger;
|
|
1111
|
+
delay?: number;
|
|
1112
|
+
selector?: string;
|
|
1113
|
+
selectorType?: SelectorType;
|
|
1114
|
+
viewPortHeight?: number;
|
|
1115
|
+
viewPortWidth?: number;
|
|
1116
|
+
};
|
|
1117
|
+
} | null;
|
|
1118
|
+
edition: {
|
|
1119
|
+
size: number;
|
|
1120
|
+
name?: string;
|
|
1121
|
+
description?: string;
|
|
1122
|
+
imageMediaId?: string;
|
|
1123
|
+
animationMediaId?: string;
|
|
1124
|
+
imageMedia?: MediaAsset | null;
|
|
1125
|
+
animationMedia?: MediaAsset | null;
|
|
1126
|
+
attributes?: Array<{
|
|
1127
|
+
traitType: string;
|
|
1128
|
+
value: string;
|
|
1129
|
+
}>;
|
|
1130
|
+
} | null;
|
|
1131
|
+
account: {
|
|
1132
|
+
id: string;
|
|
1133
|
+
displayName: string | null;
|
|
1134
|
+
primaryAddress: string | null;
|
|
1135
|
+
ensName: string | null;
|
|
1136
|
+
};
|
|
1137
|
+
stats: {
|
|
1138
|
+
volume: string;
|
|
1139
|
+
volumeUsd: string | null;
|
|
1140
|
+
ownerCount: number;
|
|
1141
|
+
tokenCount: number;
|
|
1142
|
+
updatedAt: string;
|
|
1143
|
+
} | null;
|
|
1144
|
+
sales: Array<{
|
|
1145
|
+
id: string;
|
|
1146
|
+
collectionId: string;
|
|
1147
|
+
name: string | null;
|
|
1148
|
+
type: SaleType;
|
|
1149
|
+
startAt: string;
|
|
1150
|
+
endAt: string | null;
|
|
1151
|
+
price: string;
|
|
1152
|
+
currency: string;
|
|
1153
|
+
maxPerTransaction: number;
|
|
1154
|
+
maxPerWallet: number;
|
|
1155
|
+
maxTotal: number;
|
|
1156
|
+
paymentRecipient: string;
|
|
1157
|
+
accessMode: SaleAccessMode;
|
|
1158
|
+
gateId: string | null;
|
|
1159
|
+
gasSponsored: boolean;
|
|
1160
|
+
status: SaleStatus;
|
|
1161
|
+
paused: boolean;
|
|
1162
|
+
mechanicId: string | null;
|
|
1163
|
+
typeConfig: unknown | null;
|
|
1164
|
+
vectorId: string | null;
|
|
1165
|
+
customMintFee: string | null;
|
|
1166
|
+
collectorMessage: string | null;
|
|
1167
|
+
createdAt: string;
|
|
1168
|
+
updatedAt: string;
|
|
1169
|
+
}>;
|
|
1170
|
+
};
|
|
1171
|
+
};
|
|
1172
|
+
export type CollectionUpdateEditionDetailsResponse = CollectionUpdateEditionDetailsResponses[keyof CollectionUpdateEditionDetailsResponses];
|
|
1173
|
+
export type CollectionGetSalesData = {
|
|
1174
|
+
body?: never;
|
|
1175
|
+
path: {
|
|
1176
|
+
highlightId: string;
|
|
1177
|
+
};
|
|
1178
|
+
query?: never;
|
|
1179
|
+
url: "/collection/{highlightId}/sales";
|
|
1180
|
+
};
|
|
1181
|
+
export type CollectionGetSalesErrors = {
|
|
1182
|
+
/**
|
|
1183
|
+
* Unauthorized
|
|
1184
|
+
*/
|
|
1185
|
+
401: unknown;
|
|
1186
|
+
/**
|
|
1187
|
+
* Forbidden
|
|
1188
|
+
*/
|
|
1189
|
+
403: unknown;
|
|
1190
|
+
/**
|
|
1191
|
+
* Not found
|
|
1192
|
+
*/
|
|
1193
|
+
404: unknown;
|
|
1194
|
+
};
|
|
1195
|
+
export type CollectionGetSalesResponses = {
|
|
1196
|
+
/**
|
|
1197
|
+
* Collection sales
|
|
1198
|
+
*/
|
|
1199
|
+
200: Array<{
|
|
1200
|
+
id: string;
|
|
1201
|
+
collectionId: string;
|
|
1202
|
+
name: string | null;
|
|
1203
|
+
type: SaleType;
|
|
1204
|
+
startAt: string;
|
|
1205
|
+
endAt: string | null;
|
|
1206
|
+
price: string;
|
|
1207
|
+
currency: string;
|
|
1208
|
+
maxPerTransaction: number;
|
|
1209
|
+
maxPerWallet: number;
|
|
1210
|
+
maxTotal: number;
|
|
1211
|
+
paymentRecipient: string;
|
|
1212
|
+
accessMode: SaleAccessMode;
|
|
1213
|
+
gateId: string | null;
|
|
1214
|
+
gasSponsored: boolean;
|
|
1215
|
+
status: SaleStatus;
|
|
1216
|
+
paused: boolean;
|
|
1217
|
+
mechanicId: string | null;
|
|
1218
|
+
typeConfig: unknown | null;
|
|
1219
|
+
vectorId: string | null;
|
|
1220
|
+
customMintFee: string | null;
|
|
1221
|
+
collectorMessage: string | null;
|
|
1222
|
+
createdAt: string;
|
|
1223
|
+
updatedAt: string;
|
|
1224
|
+
}>;
|
|
1225
|
+
};
|
|
1226
|
+
export type CollectionGetSalesResponse = CollectionGetSalesResponses[keyof CollectionGetSalesResponses];
|
|
1227
|
+
export type CollectionAddSaleData = {
|
|
1228
|
+
body: {
|
|
1229
|
+
name?: string | null;
|
|
1230
|
+
type: SaleType;
|
|
1231
|
+
startAt: string;
|
|
1232
|
+
endAt?: string | null;
|
|
1233
|
+
price: string;
|
|
1234
|
+
currency: string;
|
|
1235
|
+
maxPerTransaction: number;
|
|
1236
|
+
maxPerWallet: number;
|
|
1237
|
+
maxTotal: number;
|
|
1238
|
+
paymentRecipient: string;
|
|
1239
|
+
accessMode?: SaleAccessMode;
|
|
1240
|
+
gateId?: string | null;
|
|
1241
|
+
gasSponsored?: boolean;
|
|
1242
|
+
mechanicId?: string | null;
|
|
1243
|
+
typeConfig?: unknown | null;
|
|
1244
|
+
collectorMessage?: string | null;
|
|
1245
|
+
customMintFee?: string | null;
|
|
1246
|
+
};
|
|
1247
|
+
path: {
|
|
1248
|
+
highlightId: string;
|
|
1249
|
+
};
|
|
1250
|
+
query?: never;
|
|
1251
|
+
url: "/collection/{highlightId}/sales";
|
|
1252
|
+
};
|
|
1253
|
+
export type CollectionAddSaleErrors = {
|
|
1254
|
+
/**
|
|
1255
|
+
* Invalid request
|
|
1256
|
+
*/
|
|
1257
|
+
400: unknown;
|
|
1258
|
+
/**
|
|
1259
|
+
* Unauthorized
|
|
1260
|
+
*/
|
|
1261
|
+
401: unknown;
|
|
1262
|
+
/**
|
|
1263
|
+
* Forbidden
|
|
1264
|
+
*/
|
|
1265
|
+
403: unknown;
|
|
1266
|
+
/**
|
|
1267
|
+
* Not found
|
|
1268
|
+
*/
|
|
1269
|
+
404: unknown;
|
|
1270
|
+
/**
|
|
1271
|
+
* Sale already exists
|
|
1272
|
+
*/
|
|
1273
|
+
409: unknown;
|
|
1274
|
+
};
|
|
1275
|
+
export type CollectionAddSaleResponses = {
|
|
1276
|
+
/**
|
|
1277
|
+
* Sale added
|
|
1278
|
+
*/
|
|
1279
|
+
200: {
|
|
1280
|
+
saleId: string;
|
|
1281
|
+
status: SaleStatus;
|
|
1282
|
+
contractExecution: {
|
|
1283
|
+
chainId: number;
|
|
1284
|
+
to: string | null;
|
|
1285
|
+
data: string;
|
|
1286
|
+
value: string;
|
|
1287
|
+
} | null;
|
|
1288
|
+
};
|
|
1289
|
+
};
|
|
1290
|
+
export type CollectionAddSaleResponse = CollectionAddSaleResponses[keyof CollectionAddSaleResponses];
|
|
1291
|
+
export type CollectionDeleteSaleData = {
|
|
1292
|
+
body?: never;
|
|
1293
|
+
path: {
|
|
1294
|
+
highlightId: string;
|
|
1295
|
+
saleId: string;
|
|
1296
|
+
};
|
|
1297
|
+
query?: never;
|
|
1298
|
+
url: "/collection/{highlightId}/sales/{saleId}";
|
|
1299
|
+
};
|
|
1300
|
+
export type CollectionDeleteSaleErrors = {
|
|
1301
|
+
/**
|
|
1302
|
+
* Invalid request
|
|
1303
|
+
*/
|
|
1304
|
+
400: unknown;
|
|
1305
|
+
/**
|
|
1306
|
+
* Unauthorized
|
|
1307
|
+
*/
|
|
1308
|
+
401: unknown;
|
|
1309
|
+
/**
|
|
1310
|
+
* Forbidden
|
|
1311
|
+
*/
|
|
1312
|
+
403: unknown;
|
|
1313
|
+
/**
|
|
1314
|
+
* Not found
|
|
1315
|
+
*/
|
|
1316
|
+
404: unknown;
|
|
1317
|
+
};
|
|
1318
|
+
export type CollectionDeleteSaleResponses = {
|
|
1319
|
+
/**
|
|
1320
|
+
* Sale deleted
|
|
1321
|
+
*/
|
|
1322
|
+
204: void;
|
|
1323
|
+
};
|
|
1324
|
+
export type CollectionDeleteSaleResponse = CollectionDeleteSaleResponses[keyof CollectionDeleteSaleResponses];
|
|
1325
|
+
export type CollectionUpdateSaleData = {
|
|
1326
|
+
body: {
|
|
1327
|
+
name?: string | null;
|
|
1328
|
+
startAt?: string;
|
|
1329
|
+
endAt?: string | null;
|
|
1330
|
+
price?: string;
|
|
1331
|
+
currency?: string;
|
|
1332
|
+
maxPerTransaction?: number;
|
|
1333
|
+
maxPerWallet?: number;
|
|
1334
|
+
maxTotal?: number;
|
|
1335
|
+
paymentRecipient?: string;
|
|
1336
|
+
paused?: boolean;
|
|
1337
|
+
collectorMessage?: string | null;
|
|
1338
|
+
customMintFee?: string | null;
|
|
1339
|
+
};
|
|
1340
|
+
path: {
|
|
1341
|
+
highlightId: string;
|
|
1342
|
+
saleId: string;
|
|
1343
|
+
};
|
|
1344
|
+
query?: never;
|
|
1345
|
+
url: "/collection/{highlightId}/sales/{saleId}";
|
|
1346
|
+
};
|
|
1347
|
+
export type CollectionUpdateSaleErrors = {
|
|
1348
|
+
/**
|
|
1349
|
+
* Invalid request
|
|
1350
|
+
*/
|
|
1351
|
+
400: unknown;
|
|
1352
|
+
/**
|
|
1353
|
+
* Unauthorized
|
|
1354
|
+
*/
|
|
1355
|
+
401: unknown;
|
|
1356
|
+
/**
|
|
1357
|
+
* Forbidden
|
|
1358
|
+
*/
|
|
1359
|
+
403: unknown;
|
|
1360
|
+
/**
|
|
1361
|
+
* Not found
|
|
1362
|
+
*/
|
|
1363
|
+
404: unknown;
|
|
1364
|
+
};
|
|
1365
|
+
export type CollectionUpdateSaleResponses = {
|
|
1366
|
+
/**
|
|
1367
|
+
* Sale updated
|
|
1368
|
+
*/
|
|
1369
|
+
200: {
|
|
1370
|
+
saleId: string;
|
|
1371
|
+
updatedAt: string;
|
|
1372
|
+
contractExecution: {
|
|
1373
|
+
chainId: number;
|
|
1374
|
+
to: string | null;
|
|
1375
|
+
data: string;
|
|
1376
|
+
value: string;
|
|
1377
|
+
} | null;
|
|
1378
|
+
};
|
|
1379
|
+
};
|
|
1380
|
+
export type CollectionUpdateSaleResponse = CollectionUpdateSaleResponses[keyof CollectionUpdateSaleResponses];
|
|
1381
|
+
export type CollectionClaimSaleData = {
|
|
1382
|
+
body: {
|
|
1383
|
+
saleId: string;
|
|
1384
|
+
amount: number;
|
|
1385
|
+
tokenIds?: Array<number>;
|
|
1386
|
+
};
|
|
1387
|
+
path: {
|
|
1388
|
+
highlightId: string;
|
|
1389
|
+
};
|
|
1390
|
+
query?: never;
|
|
1391
|
+
url: "/collection/{highlightId}/sales/claim";
|
|
1392
|
+
};
|
|
1393
|
+
export type CollectionClaimSaleErrors = {
|
|
1394
|
+
/**
|
|
1395
|
+
* Invalid request
|
|
1396
|
+
*/
|
|
1397
|
+
400: unknown;
|
|
1398
|
+
/**
|
|
1399
|
+
* Unauthorized
|
|
1400
|
+
*/
|
|
1401
|
+
401: unknown;
|
|
1402
|
+
/**
|
|
1403
|
+
* Not found
|
|
1404
|
+
*/
|
|
1405
|
+
404: unknown;
|
|
1406
|
+
/**
|
|
1407
|
+
* Internal server error
|
|
1408
|
+
*/
|
|
1409
|
+
500: unknown;
|
|
1410
|
+
};
|
|
1411
|
+
export type CollectionClaimSaleResponses = {
|
|
1412
|
+
/**
|
|
1413
|
+
* Claim transaction configuration
|
|
1414
|
+
*/
|
|
1415
|
+
200: {
|
|
1416
|
+
chainId: number;
|
|
1417
|
+
to: string | null;
|
|
1418
|
+
data: string;
|
|
1419
|
+
value: string;
|
|
1420
|
+
};
|
|
1421
|
+
};
|
|
1422
|
+
export type CollectionClaimSaleResponse = CollectionClaimSaleResponses[keyof CollectionClaimSaleResponses];
|
|
1423
|
+
export type CollectionBidSaleData = {
|
|
1424
|
+
body: {
|
|
1425
|
+
saleId: string;
|
|
1426
|
+
bidAmount: string;
|
|
1427
|
+
bidId?: number;
|
|
1428
|
+
};
|
|
1429
|
+
path: {
|
|
1430
|
+
highlightId: string;
|
|
1431
|
+
};
|
|
1432
|
+
query?: never;
|
|
1433
|
+
url: "/collection/{highlightId}/sales/bid";
|
|
1434
|
+
};
|
|
1435
|
+
export type CollectionBidSaleErrors = {
|
|
1436
|
+
/**
|
|
1437
|
+
* Invalid request
|
|
1438
|
+
*/
|
|
1439
|
+
400: unknown;
|
|
1440
|
+
/**
|
|
1441
|
+
* Unauthorized
|
|
1442
|
+
*/
|
|
1443
|
+
401: unknown;
|
|
1444
|
+
/**
|
|
1445
|
+
* Not found
|
|
1446
|
+
*/
|
|
1447
|
+
404: unknown;
|
|
1448
|
+
};
|
|
1449
|
+
export type CollectionBidSaleResponses = {
|
|
1450
|
+
/**
|
|
1451
|
+
* Bid transaction configuration
|
|
1452
|
+
*/
|
|
1453
|
+
200: {
|
|
1454
|
+
chainId: number;
|
|
1455
|
+
to: string | null;
|
|
1456
|
+
data: string;
|
|
1457
|
+
value: string;
|
|
1458
|
+
};
|
|
1459
|
+
};
|
|
1460
|
+
export type CollectionBidSaleResponse = CollectionBidSaleResponses[keyof CollectionBidSaleResponses];
|
|
1461
|
+
export type CollectionConfirmBidData = {
|
|
1462
|
+
body: {
|
|
1463
|
+
saleId: string;
|
|
1464
|
+
txHash: string;
|
|
1465
|
+
};
|
|
1466
|
+
path: {
|
|
1467
|
+
highlightId: string;
|
|
1468
|
+
};
|
|
1469
|
+
query?: never;
|
|
1470
|
+
url: "/collection/{highlightId}/sales/bid/confirm";
|
|
1471
|
+
};
|
|
1472
|
+
export type CollectionConfirmBidErrors = {
|
|
1473
|
+
/**
|
|
1474
|
+
* Invalid request
|
|
1475
|
+
*/
|
|
1476
|
+
400: unknown;
|
|
1477
|
+
/**
|
|
1478
|
+
* Unauthorized
|
|
1479
|
+
*/
|
|
1480
|
+
401: unknown;
|
|
1481
|
+
/**
|
|
1482
|
+
* Not found
|
|
1483
|
+
*/
|
|
1484
|
+
404: unknown;
|
|
1485
|
+
/**
|
|
1486
|
+
* Internal server error
|
|
1487
|
+
*/
|
|
1488
|
+
500: unknown;
|
|
1489
|
+
};
|
|
1490
|
+
export type CollectionConfirmBidResponses = {
|
|
1491
|
+
/**
|
|
1492
|
+
* Bid recorded
|
|
1493
|
+
*/
|
|
1494
|
+
200: {
|
|
1495
|
+
recorded: boolean;
|
|
1496
|
+
};
|
|
1497
|
+
};
|
|
1498
|
+
export type CollectionConfirmBidResponse = CollectionConfirmBidResponses[keyof CollectionConfirmBidResponses];
|
|
1499
|
+
export type CollectionConfirmSaleData = {
|
|
1500
|
+
body: {
|
|
1501
|
+
txHash: string;
|
|
1502
|
+
};
|
|
1503
|
+
path: {
|
|
1504
|
+
highlightId: string;
|
|
1505
|
+
saleId: string;
|
|
1506
|
+
};
|
|
1507
|
+
query?: never;
|
|
1508
|
+
url: "/collection/{highlightId}/sales/{saleId}/confirm";
|
|
1509
|
+
};
|
|
1510
|
+
export type CollectionConfirmSaleErrors = {
|
|
1511
|
+
/**
|
|
1512
|
+
* Invalid request
|
|
1513
|
+
*/
|
|
1514
|
+
400: unknown;
|
|
1515
|
+
/**
|
|
1516
|
+
* Unauthorized
|
|
1517
|
+
*/
|
|
1518
|
+
401: unknown;
|
|
1519
|
+
/**
|
|
1520
|
+
* Forbidden
|
|
1521
|
+
*/
|
|
1522
|
+
403: unknown;
|
|
1523
|
+
/**
|
|
1524
|
+
* Not found
|
|
1525
|
+
*/
|
|
1526
|
+
404: unknown;
|
|
1527
|
+
};
|
|
1528
|
+
export type CollectionConfirmSaleResponses = {
|
|
1529
|
+
/**
|
|
1530
|
+
* Sale confirmed
|
|
1531
|
+
*/
|
|
1532
|
+
200: {
|
|
1533
|
+
confirmed: boolean;
|
|
1534
|
+
};
|
|
1535
|
+
};
|
|
1536
|
+
export type CollectionConfirmSaleResponse = CollectionConfirmSaleResponses[keyof CollectionConfirmSaleResponses];
|
|
1537
|
+
export type CollectionDeployData = {
|
|
1538
|
+
body?: never;
|
|
1539
|
+
path: {
|
|
1540
|
+
highlightId: string;
|
|
1541
|
+
};
|
|
1542
|
+
query?: never;
|
|
1543
|
+
url: "/collection/{highlightId}/deploy";
|
|
1544
|
+
};
|
|
1545
|
+
export type CollectionDeployErrors = {
|
|
1546
|
+
/**
|
|
1547
|
+
* Invalid request
|
|
1548
|
+
*/
|
|
1549
|
+
400: unknown;
|
|
1550
|
+
/**
|
|
1551
|
+
* Unauthorized
|
|
1552
|
+
*/
|
|
1553
|
+
401: unknown;
|
|
1554
|
+
/**
|
|
1555
|
+
* Forbidden
|
|
1556
|
+
*/
|
|
1557
|
+
403: unknown;
|
|
1558
|
+
/**
|
|
1559
|
+
* Not found
|
|
1560
|
+
*/
|
|
1561
|
+
404: unknown;
|
|
1562
|
+
};
|
|
1563
|
+
export type CollectionDeployResponses = {
|
|
1564
|
+
/**
|
|
1565
|
+
* Deployment initiated
|
|
1566
|
+
*/
|
|
1567
|
+
200: {
|
|
1568
|
+
status: "Pending" | "InProgress" | "Completed" | "Failed";
|
|
1569
|
+
currentStep: "Validate" | "UploadMetadata" | "UploadCode" | "GenerateTransaction" | "AwaitTransaction" | "RecordTransaction";
|
|
1570
|
+
steps: Array<{
|
|
1571
|
+
step: string;
|
|
1572
|
+
status: string;
|
|
1573
|
+
error?: string;
|
|
1574
|
+
}>;
|
|
1575
|
+
contractConfig: {
|
|
1576
|
+
chainId: number;
|
|
1577
|
+
to: string | null;
|
|
1578
|
+
data: string;
|
|
1579
|
+
value: string;
|
|
1580
|
+
} | null;
|
|
1581
|
+
txHash: string | null;
|
|
1582
|
+
error: string | null;
|
|
1583
|
+
deploymentId: string;
|
|
1584
|
+
highlightId: string;
|
|
1585
|
+
};
|
|
1586
|
+
};
|
|
1587
|
+
export type CollectionDeployResponse = CollectionDeployResponses[keyof CollectionDeployResponses];
|
|
1588
|
+
export type CollectionDeployStatusData = {
|
|
1589
|
+
body?: never;
|
|
1590
|
+
path: {
|
|
1591
|
+
highlightId: string;
|
|
1592
|
+
};
|
|
1593
|
+
query?: never;
|
|
1594
|
+
url: "/collection/{highlightId}/deploy/status";
|
|
1595
|
+
};
|
|
1596
|
+
export type CollectionDeployStatusErrors = {
|
|
1597
|
+
/**
|
|
1598
|
+
* Unauthorized
|
|
1599
|
+
*/
|
|
1600
|
+
401: unknown;
|
|
1601
|
+
/**
|
|
1602
|
+
* Forbidden
|
|
1603
|
+
*/
|
|
1604
|
+
403: unknown;
|
|
1605
|
+
/**
|
|
1606
|
+
* Not found
|
|
1607
|
+
*/
|
|
1608
|
+
404: unknown;
|
|
1609
|
+
};
|
|
1610
|
+
export type CollectionDeployStatusResponses = {
|
|
1611
|
+
/**
|
|
1612
|
+
* Deployment status
|
|
1613
|
+
*/
|
|
1614
|
+
200: {
|
|
1615
|
+
status: "Pending" | "InProgress" | "Completed" | "Failed";
|
|
1616
|
+
currentStep: "Validate" | "UploadMetadata" | "UploadCode" | "GenerateTransaction" | "AwaitTransaction" | "RecordTransaction";
|
|
1617
|
+
steps: Array<{
|
|
1618
|
+
step: string;
|
|
1619
|
+
status: string;
|
|
1620
|
+
error?: string;
|
|
1621
|
+
}>;
|
|
1622
|
+
contractConfig: {
|
|
1623
|
+
chainId: number;
|
|
1624
|
+
to: string | null;
|
|
1625
|
+
data: string;
|
|
1626
|
+
value: string;
|
|
1627
|
+
} | null;
|
|
1628
|
+
txHash: string | null;
|
|
1629
|
+
error: string | null;
|
|
1630
|
+
deploymentId: string;
|
|
1631
|
+
highlightId: string;
|
|
1632
|
+
};
|
|
1633
|
+
};
|
|
1634
|
+
export type CollectionDeployStatusResponse = CollectionDeployStatusResponses[keyof CollectionDeployStatusResponses];
|
|
1635
|
+
export type CollectionDeployConfirmData = {
|
|
1636
|
+
body: {
|
|
1637
|
+
txHash: string;
|
|
1638
|
+
};
|
|
1639
|
+
path: {
|
|
1640
|
+
highlightId: string;
|
|
1641
|
+
};
|
|
1642
|
+
query?: never;
|
|
1643
|
+
url: "/collection/{highlightId}/deploy/confirm";
|
|
1644
|
+
};
|
|
1645
|
+
export type CollectionDeployConfirmErrors = {
|
|
1646
|
+
/**
|
|
1647
|
+
* Invalid request
|
|
1648
|
+
*/
|
|
1649
|
+
400: unknown;
|
|
1650
|
+
/**
|
|
1651
|
+
* Unauthorized
|
|
1652
|
+
*/
|
|
1653
|
+
401: unknown;
|
|
1654
|
+
/**
|
|
1655
|
+
* Forbidden
|
|
1656
|
+
*/
|
|
1657
|
+
403: unknown;
|
|
1658
|
+
/**
|
|
1659
|
+
* Not found
|
|
1660
|
+
*/
|
|
1661
|
+
404: unknown;
|
|
1662
|
+
};
|
|
1663
|
+
export type CollectionDeployConfirmResponses = {
|
|
1664
|
+
/**
|
|
1665
|
+
* Transaction confirmed
|
|
1666
|
+
*/
|
|
1667
|
+
200: {
|
|
1668
|
+
status: "Pending" | "InProgress" | "Completed" | "Failed";
|
|
1669
|
+
currentStep: "Validate" | "UploadMetadata" | "UploadCode" | "GenerateTransaction" | "AwaitTransaction" | "RecordTransaction";
|
|
1670
|
+
steps: Array<{
|
|
1671
|
+
step: string;
|
|
1672
|
+
status: string;
|
|
1673
|
+
error?: string;
|
|
1674
|
+
}>;
|
|
1675
|
+
contractConfig: {
|
|
1676
|
+
chainId: number;
|
|
1677
|
+
to: string | null;
|
|
1678
|
+
data: string;
|
|
1679
|
+
value: string;
|
|
1680
|
+
} | null;
|
|
1681
|
+
txHash: string | null;
|
|
1682
|
+
error: string | null;
|
|
1683
|
+
deploymentId: string;
|
|
1684
|
+
highlightId: string;
|
|
1685
|
+
};
|
|
1686
|
+
};
|
|
1687
|
+
export type CollectionDeployConfirmResponse = CollectionDeployConfirmResponses[keyof CollectionDeployConfirmResponses];
|
|
1688
|
+
export type TokenListData = {
|
|
1689
|
+
body?: never;
|
|
1690
|
+
path: {
|
|
1691
|
+
highlightId: string;
|
|
1692
|
+
};
|
|
1693
|
+
query?: {
|
|
1694
|
+
page?: number;
|
|
1695
|
+
limit?: number;
|
|
1696
|
+
sort?: "tokenId" | "name" | "mintedAt" | "createdAt";
|
|
1697
|
+
order?: "asc" | "desc";
|
|
1698
|
+
ownerAddress?: string;
|
|
1699
|
+
search?: string;
|
|
1700
|
+
};
|
|
1701
|
+
url: "/collection/{highlightId}/tokens";
|
|
1702
|
+
};
|
|
1703
|
+
export type TokenListErrors = {
|
|
1704
|
+
/**
|
|
1705
|
+
* Collection not found or not public
|
|
1706
|
+
*/
|
|
1707
|
+
404: unknown;
|
|
1708
|
+
};
|
|
1709
|
+
export type TokenListResponses = {
|
|
1710
|
+
/**
|
|
1711
|
+
* List of tokens
|
|
1712
|
+
*/
|
|
1713
|
+
200: {
|
|
1714
|
+
items: Array<{
|
|
1715
|
+
id: string;
|
|
1716
|
+
collectionId: string;
|
|
1717
|
+
tokenId: string;
|
|
1718
|
+
name: string | null;
|
|
1719
|
+
description: string | null;
|
|
1720
|
+
externalUrl: string | null;
|
|
1721
|
+
attributes: Array<{
|
|
1722
|
+
trait_type: string;
|
|
1723
|
+
value: string | number;
|
|
1724
|
+
display_type?: string;
|
|
1725
|
+
}> | null;
|
|
1726
|
+
properties: {
|
|
1727
|
+
[key: string]: unknown;
|
|
1728
|
+
} | null;
|
|
1729
|
+
imageMediaId: string | null;
|
|
1730
|
+
animationMediaId: string | null;
|
|
1731
|
+
mintedAt: string | null;
|
|
1732
|
+
createdAt: string;
|
|
1733
|
+
updatedAt: string;
|
|
1734
|
+
}>;
|
|
1735
|
+
pageInfo: {
|
|
1736
|
+
page: number;
|
|
1737
|
+
limit: number;
|
|
1738
|
+
totalCount: number;
|
|
1739
|
+
totalPages: number;
|
|
1740
|
+
hasNextPage: boolean;
|
|
1741
|
+
hasPreviousPage: boolean;
|
|
1742
|
+
};
|
|
1743
|
+
};
|
|
1744
|
+
};
|
|
1745
|
+
export type TokenListResponse = TokenListResponses[keyof TokenListResponses];
|
|
1746
|
+
export type TokenGetData = {
|
|
1747
|
+
body?: never;
|
|
1748
|
+
path: {
|
|
1749
|
+
highlightId: string;
|
|
1750
|
+
tokenId: string;
|
|
1751
|
+
};
|
|
1752
|
+
query?: never;
|
|
1753
|
+
url: "/collection/{highlightId}/tokens/{tokenId}";
|
|
1754
|
+
};
|
|
1755
|
+
export type TokenGetErrors = {
|
|
1756
|
+
/**
|
|
1757
|
+
* Token or collection not found
|
|
1758
|
+
*/
|
|
1759
|
+
404: unknown;
|
|
1760
|
+
};
|
|
1761
|
+
export type TokenGetResponses = {
|
|
1762
|
+
/**
|
|
1763
|
+
* Token details
|
|
1764
|
+
*/
|
|
1765
|
+
200: {
|
|
1766
|
+
id: string;
|
|
1767
|
+
collectionId: string;
|
|
1768
|
+
tokenId: string;
|
|
1769
|
+
name: string | null;
|
|
1770
|
+
description: string | null;
|
|
1771
|
+
externalUrl: string | null;
|
|
1772
|
+
attributes: Array<{
|
|
1773
|
+
trait_type: string;
|
|
1774
|
+
value: string | number;
|
|
1775
|
+
display_type?: string;
|
|
1776
|
+
}> | null;
|
|
1777
|
+
properties: {
|
|
1778
|
+
[key: string]: unknown;
|
|
1779
|
+
} | null;
|
|
1780
|
+
imageMediaId: string | null;
|
|
1781
|
+
animationMediaId: string | null;
|
|
1782
|
+
mintedAt: string | null;
|
|
1783
|
+
createdAt: string;
|
|
1784
|
+
updatedAt: string;
|
|
1785
|
+
};
|
|
1786
|
+
};
|
|
1787
|
+
export type TokenGetResponse = TokenGetResponses[keyof TokenGetResponses];
|
|
1788
|
+
export type ConfigChainsData = {
|
|
1789
|
+
body?: never;
|
|
1790
|
+
path?: never;
|
|
1791
|
+
query?: never;
|
|
1792
|
+
url: "/config/chains";
|
|
1793
|
+
};
|
|
1794
|
+
export type ConfigChainsResponses = {
|
|
1795
|
+
/**
|
|
1796
|
+
* List of supported chains
|
|
1797
|
+
*/
|
|
1798
|
+
200: {
|
|
1799
|
+
chains: Array<{
|
|
1800
|
+
chainId: number;
|
|
1801
|
+
name: string;
|
|
1802
|
+
network: string;
|
|
1803
|
+
testnet: boolean;
|
|
1804
|
+
mintFee: string;
|
|
1805
|
+
wrappedCurrency: {
|
|
1806
|
+
address: string;
|
|
1807
|
+
decimals: number;
|
|
1808
|
+
symbol: string;
|
|
1809
|
+
} | null;
|
|
1810
|
+
supportedFeatures: Array<string>;
|
|
1811
|
+
supportedCurrencies: Array<{
|
|
1812
|
+
address: string;
|
|
1813
|
+
decimals: number;
|
|
1814
|
+
symbol: string;
|
|
1815
|
+
type: string;
|
|
1816
|
+
mintFee: string;
|
|
1817
|
+
realTimePriceConversion: boolean;
|
|
1818
|
+
}>;
|
|
1819
|
+
}>;
|
|
1820
|
+
};
|
|
1821
|
+
};
|
|
1822
|
+
export type ConfigChainsResponse = ConfigChainsResponses[keyof ConfigChainsResponses];
|
|
1823
|
+
export type ConfigSystemContractData = {
|
|
1824
|
+
body?: never;
|
|
1825
|
+
path?: never;
|
|
1826
|
+
query: {
|
|
1827
|
+
chainId: number;
|
|
1828
|
+
type: "CollectionFactory" | "MintManager" | "AuctionManager" | "PermissionsRegistry" | "EditionsMetadataRenderer" | "NonTransferableTokenManager" | "ConsensualNonTransferableTokenManager" | "ConsensualNonTransferableTokenManager2" | "GenerativeSeriesImplementation" | "SeriesImplementation" | "MultipleEditionsImplementation" | "MultipleEditionsDFSImplementation" | "SingleEditionImplementation" | "SingleEditionDFSImplementation" | "MinimalForwarder" | "Observability" | "RandomSeriesImplementation" | "MintFeeOracle" | "GengineObservability" | "ReferralManager" | "RazorWorksImplementation" | "EditionsDFS1155Implementation" | "ObservabilityV2" | "BitstreamSeedManager";
|
|
1829
|
+
};
|
|
1830
|
+
url: "/config/system-contract";
|
|
1831
|
+
};
|
|
1832
|
+
export type ConfigSystemContractErrors = {
|
|
1833
|
+
/**
|
|
1834
|
+
* Invalid request
|
|
1835
|
+
*/
|
|
1836
|
+
400: unknown;
|
|
1837
|
+
/**
|
|
1838
|
+
* Configuration error
|
|
1839
|
+
*/
|
|
1840
|
+
500: unknown;
|
|
1841
|
+
};
|
|
1842
|
+
export type ConfigSystemContractResponses = {
|
|
1843
|
+
/**
|
|
1844
|
+
* System contract address
|
|
1845
|
+
*/
|
|
1846
|
+
200: {
|
|
1847
|
+
chainId: number;
|
|
1848
|
+
type: "CollectionFactory" | "MintManager" | "AuctionManager" | "PermissionsRegistry" | "EditionsMetadataRenderer" | "NonTransferableTokenManager" | "ConsensualNonTransferableTokenManager" | "ConsensualNonTransferableTokenManager2" | "GenerativeSeriesImplementation" | "SeriesImplementation" | "MultipleEditionsImplementation" | "MultipleEditionsDFSImplementation" | "SingleEditionImplementation" | "SingleEditionDFSImplementation" | "MinimalForwarder" | "Observability" | "RandomSeriesImplementation" | "MintFeeOracle" | "GengineObservability" | "ReferralManager" | "RazorWorksImplementation" | "EditionsDFS1155Implementation" | "ObservabilityV2" | "BitstreamSeedManager";
|
|
1849
|
+
address: string;
|
|
1850
|
+
};
|
|
1851
|
+
};
|
|
1852
|
+
export type ConfigSystemContractResponse = ConfigSystemContractResponses[keyof ConfigSystemContractResponses];
|
|
1853
|
+
export type ContractListData = {
|
|
1854
|
+
body?: never;
|
|
1855
|
+
path?: never;
|
|
1856
|
+
query?: {
|
|
1857
|
+
limit?: number;
|
|
1858
|
+
cursor?: string;
|
|
1859
|
+
};
|
|
1860
|
+
url: "/contract";
|
|
1861
|
+
};
|
|
1862
|
+
export type ContractListErrors = {
|
|
1863
|
+
/**
|
|
1864
|
+
* Unauthorized
|
|
1865
|
+
*/
|
|
1866
|
+
401: unknown;
|
|
1867
|
+
};
|
|
1868
|
+
export type ContractListResponses = {
|
|
1869
|
+
/**
|
|
1870
|
+
* List of contracts
|
|
1871
|
+
*/
|
|
1872
|
+
200: {
|
|
1873
|
+
items: Array<{
|
|
1874
|
+
id: string;
|
|
1875
|
+
chainId: number;
|
|
1876
|
+
type: "GenerativeSeries" | "Series" | "MultipleEditions" | "MultipleEditionsDFS" | "SingleEdition" | "SingleEditionDFS" | "EditionsDFS1155";
|
|
1877
|
+
standard: ContractStandard;
|
|
1878
|
+
creatorAddress: string;
|
|
1879
|
+
name: string;
|
|
1880
|
+
address: string | null;
|
|
1881
|
+
symbol: string;
|
|
1882
|
+
contractUri: string | null;
|
|
1883
|
+
status: "Draft" | "Deploying" | "Live";
|
|
1884
|
+
createdAt: string;
|
|
1885
|
+
updatedAt: string;
|
|
1886
|
+
}>;
|
|
1887
|
+
pageInfo: {
|
|
1888
|
+
endCursor: string | null;
|
|
1889
|
+
hasNextPage: boolean;
|
|
1890
|
+
};
|
|
1891
|
+
};
|
|
1892
|
+
};
|
|
1893
|
+
export type ContractListResponse = ContractListResponses[keyof ContractListResponses];
|
|
1894
|
+
export type ContractGetData = {
|
|
1895
|
+
body?: never;
|
|
1896
|
+
path: {
|
|
1897
|
+
contractId: string;
|
|
1898
|
+
};
|
|
1899
|
+
query?: never;
|
|
1900
|
+
url: "/contract/{contractId}";
|
|
1901
|
+
};
|
|
1902
|
+
export type ContractGetErrors = {
|
|
1903
|
+
/**
|
|
1904
|
+
* Unauthorized
|
|
1905
|
+
*/
|
|
1906
|
+
401: unknown;
|
|
1907
|
+
/**
|
|
1908
|
+
* Not found
|
|
1909
|
+
*/
|
|
1910
|
+
404: unknown;
|
|
1911
|
+
};
|
|
1912
|
+
export type ContractGetResponses = {
|
|
1913
|
+
/**
|
|
1914
|
+
* Contract details
|
|
1915
|
+
*/
|
|
1916
|
+
200: {
|
|
1917
|
+
id: string;
|
|
1918
|
+
chainId: number;
|
|
1919
|
+
type: "GenerativeSeries" | "Series" | "MultipleEditions" | "MultipleEditionsDFS" | "SingleEdition" | "SingleEditionDFS" | "EditionsDFS1155";
|
|
1920
|
+
standard: ContractStandard;
|
|
1921
|
+
creatorAddress: string;
|
|
1922
|
+
name: string;
|
|
1923
|
+
address: string | null;
|
|
1924
|
+
symbol: string;
|
|
1925
|
+
contractUri: string | null;
|
|
1926
|
+
status: "Draft" | "Deploying" | "Live";
|
|
1927
|
+
createdAt: string;
|
|
1928
|
+
updatedAt: string;
|
|
1929
|
+
};
|
|
1930
|
+
};
|
|
1931
|
+
export type ContractGetResponse = ContractGetResponses[keyof ContractGetResponses];
|
|
1932
|
+
export type GateListData = {
|
|
1933
|
+
body?: never;
|
|
1934
|
+
path?: never;
|
|
1935
|
+
query?: never;
|
|
1936
|
+
url: "/gate";
|
|
1937
|
+
};
|
|
1938
|
+
export type GateListErrors = {
|
|
1939
|
+
/**
|
|
1940
|
+
* Unauthorized
|
|
1941
|
+
*/
|
|
1942
|
+
401: unknown;
|
|
1943
|
+
};
|
|
1944
|
+
export type GateListResponses = {
|
|
1945
|
+
/**
|
|
1946
|
+
* List of gates
|
|
1947
|
+
*/
|
|
1948
|
+
200: Array<{
|
|
1949
|
+
id: string;
|
|
1950
|
+
name: string;
|
|
1951
|
+
matchMode: GateMatchMode;
|
|
1952
|
+
conditions: Array<{
|
|
1953
|
+
id: string;
|
|
1954
|
+
type: GateConditionType;
|
|
1955
|
+
position: number;
|
|
1956
|
+
config: unknown;
|
|
1957
|
+
createdAt: string;
|
|
1958
|
+
updatedAt: string;
|
|
1959
|
+
}>;
|
|
1960
|
+
createdAt: string;
|
|
1961
|
+
updatedAt: string;
|
|
1962
|
+
}>;
|
|
1963
|
+
};
|
|
1964
|
+
export type GateListResponse = GateListResponses[keyof GateListResponses];
|
|
1965
|
+
export type GateCreateData = {
|
|
1966
|
+
body: {
|
|
1967
|
+
name: string;
|
|
1968
|
+
matchMode?: GateMatchMode;
|
|
1969
|
+
conditions: Array<{
|
|
1970
|
+
type: "ALLOWLIST";
|
|
1971
|
+
config: {
|
|
1972
|
+
addresses: Array<string>;
|
|
1973
|
+
};
|
|
1974
|
+
} | {
|
|
1975
|
+
type: "TOKEN_OWNERSHIP";
|
|
1976
|
+
config: {
|
|
1977
|
+
contractAddress: string;
|
|
1978
|
+
chainId: number;
|
|
1979
|
+
minAmount?: number;
|
|
1980
|
+
};
|
|
1981
|
+
} | {
|
|
1982
|
+
type: "SPECIFIC_TOKEN";
|
|
1983
|
+
config: {
|
|
1984
|
+
contractAddress: string;
|
|
1985
|
+
chainId: number;
|
|
1986
|
+
tokenId: string;
|
|
1987
|
+
};
|
|
1988
|
+
} | {
|
|
1989
|
+
type: "TOKEN_ATTRIBUTE";
|
|
1990
|
+
config: {
|
|
1991
|
+
contractAddress: string;
|
|
1992
|
+
chainId: number;
|
|
1993
|
+
traitType: string;
|
|
1994
|
+
traitValue: string;
|
|
1995
|
+
};
|
|
1996
|
+
} | {
|
|
1997
|
+
type: "CURRENCY_BALANCE";
|
|
1998
|
+
config: {
|
|
1999
|
+
chainId: number;
|
|
2000
|
+
contractAddress?: string;
|
|
2001
|
+
minBalance: string;
|
|
2002
|
+
};
|
|
2003
|
+
} | {
|
|
2004
|
+
type: "FARCASTER_FOLLOW";
|
|
2005
|
+
config: {
|
|
2006
|
+
fid: number;
|
|
2007
|
+
};
|
|
2008
|
+
}>;
|
|
2009
|
+
};
|
|
2010
|
+
path?: never;
|
|
2011
|
+
query?: never;
|
|
2012
|
+
url: "/gate";
|
|
2013
|
+
};
|
|
2014
|
+
export type GateCreateErrors = {
|
|
2015
|
+
/**
|
|
2016
|
+
* Invalid request
|
|
2017
|
+
*/
|
|
2018
|
+
400: unknown;
|
|
2019
|
+
/**
|
|
2020
|
+
* Unauthorized
|
|
2021
|
+
*/
|
|
2022
|
+
401: unknown;
|
|
2023
|
+
};
|
|
2024
|
+
export type GateCreateResponses = {
|
|
2025
|
+
/**
|
|
2026
|
+
* Created gate
|
|
2027
|
+
*/
|
|
2028
|
+
200: {
|
|
2029
|
+
id: string;
|
|
2030
|
+
name: string;
|
|
2031
|
+
matchMode: GateMatchMode;
|
|
2032
|
+
conditions: Array<{
|
|
2033
|
+
id: string;
|
|
2034
|
+
type: GateConditionType;
|
|
2035
|
+
position: number;
|
|
2036
|
+
config: unknown;
|
|
2037
|
+
createdAt: string;
|
|
2038
|
+
updatedAt: string;
|
|
2039
|
+
}>;
|
|
2040
|
+
createdAt: string;
|
|
2041
|
+
updatedAt: string;
|
|
2042
|
+
};
|
|
2043
|
+
};
|
|
2044
|
+
export type GateCreateResponse = GateCreateResponses[keyof GateCreateResponses];
|
|
2045
|
+
export type GateRemoveData = {
|
|
2046
|
+
body?: never;
|
|
2047
|
+
path: {
|
|
2048
|
+
gateId: string;
|
|
2049
|
+
};
|
|
2050
|
+
query?: never;
|
|
2051
|
+
url: "/gate/{gateId}";
|
|
2052
|
+
};
|
|
2053
|
+
export type GateRemoveErrors = {
|
|
2054
|
+
/**
|
|
2055
|
+
* Unauthorized
|
|
2056
|
+
*/
|
|
2057
|
+
401: unknown;
|
|
2058
|
+
/**
|
|
2059
|
+
* Forbidden
|
|
2060
|
+
*/
|
|
2061
|
+
403: unknown;
|
|
2062
|
+
/**
|
|
2063
|
+
* Not found
|
|
2064
|
+
*/
|
|
2065
|
+
404: unknown;
|
|
2066
|
+
};
|
|
2067
|
+
export type GateRemoveResponses = {
|
|
2068
|
+
/**
|
|
2069
|
+
* Gate deleted
|
|
2070
|
+
*/
|
|
2071
|
+
200: {
|
|
2072
|
+
success: boolean;
|
|
2073
|
+
};
|
|
2074
|
+
};
|
|
2075
|
+
export type GateRemoveResponse = GateRemoveResponses[keyof GateRemoveResponses];
|
|
2076
|
+
export type GateGetData = {
|
|
2077
|
+
body?: never;
|
|
2078
|
+
path: {
|
|
2079
|
+
gateId: string;
|
|
2080
|
+
};
|
|
2081
|
+
query?: never;
|
|
2082
|
+
url: "/gate/{gateId}";
|
|
2083
|
+
};
|
|
2084
|
+
export type GateGetErrors = {
|
|
2085
|
+
/**
|
|
2086
|
+
* Unauthorized
|
|
2087
|
+
*/
|
|
2088
|
+
401: unknown;
|
|
2089
|
+
/**
|
|
2090
|
+
* Forbidden
|
|
2091
|
+
*/
|
|
2092
|
+
403: unknown;
|
|
2093
|
+
/**
|
|
2094
|
+
* Not found
|
|
2095
|
+
*/
|
|
2096
|
+
404: unknown;
|
|
2097
|
+
};
|
|
2098
|
+
export type GateGetResponses = {
|
|
2099
|
+
/**
|
|
2100
|
+
* Gate details
|
|
2101
|
+
*/
|
|
2102
|
+
200: {
|
|
2103
|
+
id: string;
|
|
2104
|
+
name: string;
|
|
2105
|
+
matchMode: GateMatchMode;
|
|
2106
|
+
conditions: Array<{
|
|
2107
|
+
id: string;
|
|
2108
|
+
type: GateConditionType;
|
|
2109
|
+
position: number;
|
|
2110
|
+
config: unknown;
|
|
2111
|
+
createdAt: string;
|
|
2112
|
+
updatedAt: string;
|
|
2113
|
+
}>;
|
|
2114
|
+
createdAt: string;
|
|
2115
|
+
updatedAt: string;
|
|
2116
|
+
};
|
|
2117
|
+
};
|
|
2118
|
+
export type GateGetResponse = GateGetResponses[keyof GateGetResponses];
|
|
2119
|
+
export type GateUpdateData = {
|
|
2120
|
+
body: {
|
|
2121
|
+
name?: string;
|
|
2122
|
+
matchMode?: GateMatchMode;
|
|
2123
|
+
conditions?: Array<{
|
|
2124
|
+
type: "ALLOWLIST";
|
|
2125
|
+
config: {
|
|
2126
|
+
addresses: Array<string>;
|
|
2127
|
+
};
|
|
2128
|
+
} | {
|
|
2129
|
+
type: "TOKEN_OWNERSHIP";
|
|
2130
|
+
config: {
|
|
2131
|
+
contractAddress: string;
|
|
2132
|
+
chainId: number;
|
|
2133
|
+
minAmount?: number;
|
|
2134
|
+
};
|
|
2135
|
+
} | {
|
|
2136
|
+
type: "SPECIFIC_TOKEN";
|
|
2137
|
+
config: {
|
|
2138
|
+
contractAddress: string;
|
|
2139
|
+
chainId: number;
|
|
2140
|
+
tokenId: string;
|
|
2141
|
+
};
|
|
2142
|
+
} | {
|
|
2143
|
+
type: "TOKEN_ATTRIBUTE";
|
|
2144
|
+
config: {
|
|
2145
|
+
contractAddress: string;
|
|
2146
|
+
chainId: number;
|
|
2147
|
+
traitType: string;
|
|
2148
|
+
traitValue: string;
|
|
2149
|
+
};
|
|
2150
|
+
} | {
|
|
2151
|
+
type: "CURRENCY_BALANCE";
|
|
2152
|
+
config: {
|
|
2153
|
+
chainId: number;
|
|
2154
|
+
contractAddress?: string;
|
|
2155
|
+
minBalance: string;
|
|
2156
|
+
};
|
|
2157
|
+
} | {
|
|
2158
|
+
type: "FARCASTER_FOLLOW";
|
|
2159
|
+
config: {
|
|
2160
|
+
fid: number;
|
|
2161
|
+
};
|
|
2162
|
+
}>;
|
|
2163
|
+
};
|
|
2164
|
+
path: {
|
|
2165
|
+
gateId: string;
|
|
2166
|
+
};
|
|
2167
|
+
query?: never;
|
|
2168
|
+
url: "/gate/{gateId}";
|
|
2169
|
+
};
|
|
2170
|
+
export type GateUpdateErrors = {
|
|
2171
|
+
/**
|
|
2172
|
+
* Invalid request
|
|
2173
|
+
*/
|
|
2174
|
+
400: unknown;
|
|
2175
|
+
/**
|
|
2176
|
+
* Unauthorized
|
|
2177
|
+
*/
|
|
2178
|
+
401: unknown;
|
|
2179
|
+
/**
|
|
2180
|
+
* Forbidden
|
|
2181
|
+
*/
|
|
2182
|
+
403: unknown;
|
|
2183
|
+
/**
|
|
2184
|
+
* Not found
|
|
2185
|
+
*/
|
|
2186
|
+
404: unknown;
|
|
2187
|
+
};
|
|
2188
|
+
export type GateUpdateResponses = {
|
|
2189
|
+
/**
|
|
2190
|
+
* Updated gate
|
|
2191
|
+
*/
|
|
2192
|
+
200: {
|
|
2193
|
+
id: string;
|
|
2194
|
+
name: string;
|
|
2195
|
+
matchMode: GateMatchMode;
|
|
2196
|
+
conditions: Array<{
|
|
2197
|
+
id: string;
|
|
2198
|
+
type: GateConditionType;
|
|
2199
|
+
position: number;
|
|
2200
|
+
config: unknown;
|
|
2201
|
+
createdAt: string;
|
|
2202
|
+
updatedAt: string;
|
|
2203
|
+
}>;
|
|
2204
|
+
createdAt: string;
|
|
2205
|
+
updatedAt: string;
|
|
2206
|
+
};
|
|
2207
|
+
};
|
|
2208
|
+
export type GateUpdateResponse = GateUpdateResponses[keyof GateUpdateResponses];
|
|
2209
|
+
export type PostIndexerChainsByChainIdActivateData = {
|
|
2210
|
+
body?: never;
|
|
2211
|
+
path: {
|
|
2212
|
+
chainId: number;
|
|
2213
|
+
};
|
|
2214
|
+
query?: never;
|
|
2215
|
+
url: "/indexer/chains/{chainId}/activate";
|
|
2216
|
+
};
|
|
2217
|
+
export type PostIndexerChainsByChainIdActivateResponses = {
|
|
2218
|
+
200: unknown;
|
|
2219
|
+
};
|
|
2220
|
+
export type PostIndexerChainsByChainIdResetData = {
|
|
2221
|
+
body: {
|
|
2222
|
+
blockNumber: number;
|
|
2223
|
+
};
|
|
2224
|
+
path: {
|
|
2225
|
+
chainId: number;
|
|
2226
|
+
};
|
|
2227
|
+
query?: never;
|
|
2228
|
+
url: "/indexer/chains/{chainId}/reset";
|
|
2229
|
+
};
|
|
2230
|
+
export type PostIndexerChainsByChainIdResetResponses = {
|
|
2231
|
+
200: unknown;
|
|
2232
|
+
};
|
|
2233
|
+
export type PostIndexerChainsByChainIdPollData = {
|
|
2234
|
+
body?: never;
|
|
2235
|
+
path: {
|
|
2236
|
+
chainId: number;
|
|
2237
|
+
};
|
|
2238
|
+
query?: never;
|
|
2239
|
+
url: "/indexer/chains/{chainId}/poll";
|
|
2240
|
+
};
|
|
2241
|
+
export type PostIndexerChainsByChainIdPollResponses = {
|
|
2242
|
+
200: unknown;
|
|
2243
|
+
};
|
|
2244
|
+
export type MechanicListData = {
|
|
2245
|
+
body?: never;
|
|
2246
|
+
path?: never;
|
|
2247
|
+
query?: {
|
|
2248
|
+
builtIn?: boolean | string;
|
|
2249
|
+
type?: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "GASLESS" | "CUSTOM";
|
|
2250
|
+
};
|
|
2251
|
+
url: "/mechanic";
|
|
2252
|
+
};
|
|
2253
|
+
export type MechanicListResponses = {
|
|
2254
|
+
/**
|
|
2255
|
+
* List of mechanics
|
|
2256
|
+
*/
|
|
2257
|
+
200: Array<{
|
|
2258
|
+
id: string;
|
|
2259
|
+
slug: string;
|
|
2260
|
+
name: string;
|
|
2261
|
+
type: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "GASLESS" | "CUSTOM";
|
|
2262
|
+
description: string | null;
|
|
2263
|
+
configSchema: unknown | null;
|
|
2264
|
+
encodingAbi: unknown | null;
|
|
2265
|
+
builtIn: boolean;
|
|
2266
|
+
createdBy: string | null;
|
|
2267
|
+
deployments: Array<{
|
|
2268
|
+
id: string;
|
|
2269
|
+
chainId: number;
|
|
2270
|
+
address: string;
|
|
2271
|
+
}>;
|
|
2272
|
+
createdAt: string;
|
|
2273
|
+
updatedAt: string;
|
|
2274
|
+
}>;
|
|
2275
|
+
};
|
|
2276
|
+
export type MechanicListResponse = MechanicListResponses[keyof MechanicListResponses];
|
|
2277
|
+
export type MechanicCreateData = {
|
|
2278
|
+
body: {
|
|
2279
|
+
slug: string;
|
|
2280
|
+
name: string;
|
|
2281
|
+
description?: string | null;
|
|
2282
|
+
configSchema?: unknown | null;
|
|
2283
|
+
encodingAbi?: unknown | null;
|
|
2284
|
+
};
|
|
2285
|
+
path?: never;
|
|
2286
|
+
query?: never;
|
|
2287
|
+
url: "/mechanic";
|
|
2288
|
+
};
|
|
2289
|
+
export type MechanicCreateErrors = {
|
|
2290
|
+
/**
|
|
2291
|
+
* Invalid request
|
|
2292
|
+
*/
|
|
2293
|
+
400: unknown;
|
|
2294
|
+
/**
|
|
2295
|
+
* Unauthorized
|
|
2296
|
+
*/
|
|
2297
|
+
401: unknown;
|
|
2298
|
+
};
|
|
2299
|
+
export type MechanicCreateResponses = {
|
|
2300
|
+
/**
|
|
2301
|
+
* Created mechanic
|
|
2302
|
+
*/
|
|
2303
|
+
200: {
|
|
2304
|
+
id: string;
|
|
2305
|
+
slug: string;
|
|
2306
|
+
name: string;
|
|
2307
|
+
type: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "GASLESS" | "CUSTOM";
|
|
2308
|
+
description: string | null;
|
|
2309
|
+
configSchema: unknown | null;
|
|
2310
|
+
encodingAbi: unknown | null;
|
|
2311
|
+
builtIn: boolean;
|
|
2312
|
+
createdBy: string | null;
|
|
2313
|
+
deployments: Array<{
|
|
2314
|
+
id: string;
|
|
2315
|
+
chainId: number;
|
|
2316
|
+
address: string;
|
|
2317
|
+
}>;
|
|
2318
|
+
createdAt: string;
|
|
2319
|
+
updatedAt: string;
|
|
2320
|
+
};
|
|
2321
|
+
};
|
|
2322
|
+
export type MechanicCreateResponse = MechanicCreateResponses[keyof MechanicCreateResponses];
|
|
2323
|
+
export type MechanicGetData = {
|
|
2324
|
+
body?: never;
|
|
2325
|
+
path: {
|
|
2326
|
+
mechanicId: string;
|
|
2327
|
+
};
|
|
2328
|
+
query?: never;
|
|
2329
|
+
url: "/mechanic/{mechanicId}";
|
|
2330
|
+
};
|
|
2331
|
+
export type MechanicGetErrors = {
|
|
2332
|
+
/**
|
|
2333
|
+
* Not found
|
|
2334
|
+
*/
|
|
2335
|
+
404: unknown;
|
|
2336
|
+
};
|
|
2337
|
+
export type MechanicGetResponses = {
|
|
2338
|
+
/**
|
|
2339
|
+
* Mechanic details
|
|
2340
|
+
*/
|
|
2341
|
+
200: {
|
|
2342
|
+
id: string;
|
|
2343
|
+
slug: string;
|
|
2344
|
+
name: string;
|
|
2345
|
+
type: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "GASLESS" | "CUSTOM";
|
|
2346
|
+
description: string | null;
|
|
2347
|
+
configSchema: unknown | null;
|
|
2348
|
+
encodingAbi: unknown | null;
|
|
2349
|
+
builtIn: boolean;
|
|
2350
|
+
createdBy: string | null;
|
|
2351
|
+
deployments: Array<{
|
|
2352
|
+
id: string;
|
|
2353
|
+
chainId: number;
|
|
2354
|
+
address: string;
|
|
2355
|
+
}>;
|
|
2356
|
+
createdAt: string;
|
|
2357
|
+
updatedAt: string;
|
|
2358
|
+
};
|
|
2359
|
+
};
|
|
2360
|
+
export type MechanicGetResponse = MechanicGetResponses[keyof MechanicGetResponses];
|
|
2361
|
+
export type MechanicUpdateData = {
|
|
2362
|
+
body: {
|
|
2363
|
+
name?: string;
|
|
2364
|
+
description?: string | null;
|
|
2365
|
+
configSchema?: unknown | null;
|
|
2366
|
+
encodingAbi?: unknown | null;
|
|
2367
|
+
};
|
|
2368
|
+
path: {
|
|
2369
|
+
mechanicId: string;
|
|
2370
|
+
};
|
|
2371
|
+
query?: never;
|
|
2372
|
+
url: "/mechanic/{mechanicId}";
|
|
2373
|
+
};
|
|
2374
|
+
export type MechanicUpdateErrors = {
|
|
2375
|
+
/**
|
|
2376
|
+
* Invalid request
|
|
2377
|
+
*/
|
|
2378
|
+
400: unknown;
|
|
2379
|
+
/**
|
|
2380
|
+
* Unauthorized
|
|
2381
|
+
*/
|
|
2382
|
+
401: unknown;
|
|
2383
|
+
/**
|
|
2384
|
+
* Forbidden
|
|
2385
|
+
*/
|
|
2386
|
+
403: unknown;
|
|
2387
|
+
/**
|
|
2388
|
+
* Not found
|
|
2389
|
+
*/
|
|
2390
|
+
404: unknown;
|
|
2391
|
+
};
|
|
2392
|
+
export type MechanicUpdateResponses = {
|
|
2393
|
+
/**
|
|
2394
|
+
* Updated mechanic
|
|
2395
|
+
*/
|
|
2396
|
+
200: {
|
|
2397
|
+
id: string;
|
|
2398
|
+
slug: string;
|
|
2399
|
+
name: string;
|
|
2400
|
+
type: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "GASLESS" | "CUSTOM";
|
|
2401
|
+
description: string | null;
|
|
2402
|
+
configSchema: unknown | null;
|
|
2403
|
+
encodingAbi: unknown | null;
|
|
2404
|
+
builtIn: boolean;
|
|
2405
|
+
createdBy: string | null;
|
|
2406
|
+
deployments: Array<{
|
|
2407
|
+
id: string;
|
|
2408
|
+
chainId: number;
|
|
2409
|
+
address: string;
|
|
2410
|
+
}>;
|
|
2411
|
+
createdAt: string;
|
|
2412
|
+
updatedAt: string;
|
|
2413
|
+
};
|
|
2414
|
+
};
|
|
2415
|
+
export type MechanicUpdateResponse = MechanicUpdateResponses[keyof MechanicUpdateResponses];
|
|
2416
|
+
export type MechanicRemoveDeploymentData = {
|
|
2417
|
+
body: {
|
|
2418
|
+
chainId: number;
|
|
2419
|
+
};
|
|
2420
|
+
path: {
|
|
2421
|
+
mechanicId: string;
|
|
2422
|
+
};
|
|
2423
|
+
query?: never;
|
|
2424
|
+
url: "/mechanic/{mechanicId}/deployment";
|
|
2425
|
+
};
|
|
2426
|
+
export type MechanicRemoveDeploymentErrors = {
|
|
2427
|
+
/**
|
|
2428
|
+
* Invalid request
|
|
2429
|
+
*/
|
|
2430
|
+
400: unknown;
|
|
2431
|
+
/**
|
|
2432
|
+
* Unauthorized
|
|
2433
|
+
*/
|
|
2434
|
+
401: unknown;
|
|
2435
|
+
/**
|
|
2436
|
+
* Forbidden
|
|
2437
|
+
*/
|
|
2438
|
+
403: unknown;
|
|
2439
|
+
/**
|
|
2440
|
+
* Not found
|
|
2441
|
+
*/
|
|
2442
|
+
404: unknown;
|
|
2443
|
+
};
|
|
2444
|
+
export type MechanicRemoveDeploymentResponses = {
|
|
2445
|
+
/**
|
|
2446
|
+
* Updated mechanic without the removed deployment
|
|
2447
|
+
*/
|
|
2448
|
+
200: {
|
|
2449
|
+
id: string;
|
|
2450
|
+
slug: string;
|
|
2451
|
+
name: string;
|
|
2452
|
+
type: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "GASLESS" | "CUSTOM";
|
|
2453
|
+
description: string | null;
|
|
2454
|
+
configSchema: unknown | null;
|
|
2455
|
+
encodingAbi: unknown | null;
|
|
2456
|
+
builtIn: boolean;
|
|
2457
|
+
createdBy: string | null;
|
|
2458
|
+
deployments: Array<{
|
|
2459
|
+
id: string;
|
|
2460
|
+
chainId: number;
|
|
2461
|
+
address: string;
|
|
2462
|
+
}>;
|
|
2463
|
+
createdAt: string;
|
|
2464
|
+
updatedAt: string;
|
|
2465
|
+
};
|
|
2466
|
+
};
|
|
2467
|
+
export type MechanicRemoveDeploymentResponse = MechanicRemoveDeploymentResponses[keyof MechanicRemoveDeploymentResponses];
|
|
2468
|
+
export type MechanicAddDeploymentData = {
|
|
2469
|
+
body: {
|
|
2470
|
+
chainId: number;
|
|
2471
|
+
address: string;
|
|
2472
|
+
};
|
|
2473
|
+
path: {
|
|
2474
|
+
mechanicId: string;
|
|
2475
|
+
};
|
|
2476
|
+
query?: never;
|
|
2477
|
+
url: "/mechanic/{mechanicId}/deployment";
|
|
2478
|
+
};
|
|
2479
|
+
export type MechanicAddDeploymentErrors = {
|
|
2480
|
+
/**
|
|
2481
|
+
* Invalid request
|
|
2482
|
+
*/
|
|
2483
|
+
400: unknown;
|
|
2484
|
+
/**
|
|
2485
|
+
* Unauthorized
|
|
2486
|
+
*/
|
|
2487
|
+
401: unknown;
|
|
2488
|
+
/**
|
|
2489
|
+
* Forbidden
|
|
2490
|
+
*/
|
|
2491
|
+
403: unknown;
|
|
2492
|
+
/**
|
|
2493
|
+
* Not found
|
|
2494
|
+
*/
|
|
2495
|
+
404: unknown;
|
|
2496
|
+
};
|
|
2497
|
+
export type MechanicAddDeploymentResponses = {
|
|
2498
|
+
/**
|
|
2499
|
+
* Updated mechanic with new deployment
|
|
2500
|
+
*/
|
|
2501
|
+
200: {
|
|
2502
|
+
id: string;
|
|
2503
|
+
slug: string;
|
|
2504
|
+
name: string;
|
|
2505
|
+
type: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "GASLESS" | "CUSTOM";
|
|
2506
|
+
description: string | null;
|
|
2507
|
+
configSchema: unknown | null;
|
|
2508
|
+
encodingAbi: unknown | null;
|
|
2509
|
+
builtIn: boolean;
|
|
2510
|
+
createdBy: string | null;
|
|
2511
|
+
deployments: Array<{
|
|
2512
|
+
id: string;
|
|
2513
|
+
chainId: number;
|
|
2514
|
+
address: string;
|
|
2515
|
+
}>;
|
|
2516
|
+
createdAt: string;
|
|
2517
|
+
updatedAt: string;
|
|
2518
|
+
};
|
|
2519
|
+
};
|
|
2520
|
+
export type MechanicAddDeploymentResponse = MechanicAddDeploymentResponses[keyof MechanicAddDeploymentResponses];
|
|
2521
|
+
export type MediaCreateUploadSessionData = {
|
|
2522
|
+
body: {
|
|
2523
|
+
kind: MediaKind;
|
|
2524
|
+
scope?: MediaScope;
|
|
2525
|
+
fileName: string;
|
|
2526
|
+
mimeType: string;
|
|
2527
|
+
fileSize: number;
|
|
2528
|
+
};
|
|
2529
|
+
path?: never;
|
|
2530
|
+
query?: never;
|
|
2531
|
+
url: "/media/upload-session";
|
|
2532
|
+
};
|
|
2533
|
+
export type MediaCreateUploadSessionErrors = {
|
|
2534
|
+
/**
|
|
2535
|
+
* Invalid request
|
|
2536
|
+
*/
|
|
2537
|
+
400: unknown;
|
|
2538
|
+
/**
|
|
2539
|
+
* Unauthorized
|
|
2540
|
+
*/
|
|
2541
|
+
401: unknown;
|
|
2542
|
+
/**
|
|
2543
|
+
* Forbidden
|
|
2544
|
+
*/
|
|
2545
|
+
403: unknown;
|
|
2546
|
+
/**
|
|
2547
|
+
* Storage unavailable
|
|
2548
|
+
*/
|
|
2549
|
+
503: unknown;
|
|
2550
|
+
};
|
|
2551
|
+
export type MediaCreateUploadSessionResponses = {
|
|
2552
|
+
/**
|
|
2553
|
+
* Upload session
|
|
2554
|
+
*/
|
|
2555
|
+
200: MediaUploadSession;
|
|
2556
|
+
};
|
|
2557
|
+
export type MediaCreateUploadSessionResponse = MediaCreateUploadSessionResponses[keyof MediaCreateUploadSessionResponses];
|
|
2558
|
+
export type MediaUploadData = {
|
|
2559
|
+
body?: never;
|
|
2560
|
+
path: {
|
|
2561
|
+
mediaId: string;
|
|
2562
|
+
};
|
|
2563
|
+
query?: never;
|
|
2564
|
+
url: "/media/{mediaId}/upload";
|
|
2565
|
+
};
|
|
2566
|
+
export type MediaUploadErrors = {
|
|
2567
|
+
/**
|
|
2568
|
+
* Invalid request
|
|
2569
|
+
*/
|
|
2570
|
+
400: unknown;
|
|
2571
|
+
/**
|
|
2572
|
+
* Unauthorized
|
|
2573
|
+
*/
|
|
2574
|
+
401: unknown;
|
|
2575
|
+
/**
|
|
2576
|
+
* Forbidden
|
|
2577
|
+
*/
|
|
2578
|
+
403: unknown;
|
|
2579
|
+
/**
|
|
2580
|
+
* Not found
|
|
2581
|
+
*/
|
|
2582
|
+
404: unknown;
|
|
2583
|
+
/**
|
|
2584
|
+
* Storage unavailable
|
|
2585
|
+
*/
|
|
2586
|
+
503: unknown;
|
|
2587
|
+
};
|
|
2588
|
+
export type MediaUploadResponses = {
|
|
2589
|
+
/**
|
|
2590
|
+
* Upload accepted and processed
|
|
2591
|
+
*/
|
|
2592
|
+
200: MediaAsset;
|
|
2593
|
+
};
|
|
2594
|
+
export type MediaUploadResponse = MediaUploadResponses[keyof MediaUploadResponses];
|
|
2595
|
+
export type MediaProcessData = {
|
|
2596
|
+
body?: never;
|
|
2597
|
+
path: {
|
|
2598
|
+
mediaId: string;
|
|
2599
|
+
};
|
|
2600
|
+
query?: never;
|
|
2601
|
+
url: "/media/{mediaId}/process";
|
|
2602
|
+
};
|
|
2603
|
+
export type MediaProcessErrors = {
|
|
2604
|
+
/**
|
|
2605
|
+
* Invalid request
|
|
2606
|
+
*/
|
|
2607
|
+
400: unknown;
|
|
2608
|
+
/**
|
|
2609
|
+
* Unauthorized
|
|
2610
|
+
*/
|
|
2611
|
+
401: unknown;
|
|
2612
|
+
/**
|
|
2613
|
+
* Forbidden
|
|
2614
|
+
*/
|
|
2615
|
+
403: unknown;
|
|
2616
|
+
/**
|
|
2617
|
+
* Media or uploaded object not found
|
|
2618
|
+
*/
|
|
2619
|
+
404: unknown;
|
|
2620
|
+
/**
|
|
2621
|
+
* Storage unavailable
|
|
2622
|
+
*/
|
|
2623
|
+
503: unknown;
|
|
2624
|
+
};
|
|
2625
|
+
export type MediaProcessResponses = {
|
|
2626
|
+
/**
|
|
2627
|
+
* Media asset with updated status
|
|
2628
|
+
*/
|
|
2629
|
+
200: MediaAsset;
|
|
2630
|
+
};
|
|
2631
|
+
export type MediaProcessResponse = MediaProcessResponses[keyof MediaProcessResponses];
|
|
2632
|
+
export type MediaListChildrenData = {
|
|
2633
|
+
body?: never;
|
|
2634
|
+
path: {
|
|
2635
|
+
mediaId: string;
|
|
2636
|
+
};
|
|
2637
|
+
query?: {
|
|
2638
|
+
cursor?: string;
|
|
2639
|
+
limit?: number;
|
|
2640
|
+
};
|
|
2641
|
+
url: "/media/{mediaId}/children";
|
|
2642
|
+
};
|
|
2643
|
+
export type MediaListChildrenErrors = {
|
|
2644
|
+
/**
|
|
2645
|
+
* Not a Directory
|
|
2646
|
+
*/
|
|
2647
|
+
400: unknown;
|
|
2648
|
+
/**
|
|
2649
|
+
* Unauthorized
|
|
2650
|
+
*/
|
|
2651
|
+
401: unknown;
|
|
2652
|
+
/**
|
|
2653
|
+
* Forbidden
|
|
2654
|
+
*/
|
|
2655
|
+
403: unknown;
|
|
2656
|
+
/**
|
|
2657
|
+
* Not found
|
|
2658
|
+
*/
|
|
2659
|
+
404: unknown;
|
|
2660
|
+
};
|
|
2661
|
+
export type MediaListChildrenResponses = {
|
|
2662
|
+
/**
|
|
2663
|
+
* Children page
|
|
2664
|
+
*/
|
|
2665
|
+
200: MediaChildrenList;
|
|
2666
|
+
};
|
|
2667
|
+
export type MediaListChildrenResponse = MediaListChildrenResponses[keyof MediaListChildrenResponses];
|
|
2668
|
+
export type MediaDeleteData = {
|
|
2669
|
+
body?: never;
|
|
2670
|
+
path: {
|
|
2671
|
+
mediaId: string;
|
|
2672
|
+
};
|
|
2673
|
+
query?: never;
|
|
2674
|
+
url: "/media/{mediaId}";
|
|
2675
|
+
};
|
|
2676
|
+
export type MediaDeleteErrors = {
|
|
2677
|
+
/**
|
|
2678
|
+
* Unauthorized
|
|
2679
|
+
*/
|
|
2680
|
+
401: unknown;
|
|
2681
|
+
/**
|
|
2682
|
+
* Forbidden
|
|
2683
|
+
*/
|
|
2684
|
+
403: unknown;
|
|
2685
|
+
/**
|
|
2686
|
+
* Not found
|
|
2687
|
+
*/
|
|
2688
|
+
404: unknown;
|
|
2689
|
+
/**
|
|
2690
|
+
* In use — cannot delete
|
|
2691
|
+
*/
|
|
2692
|
+
409: unknown;
|
|
2693
|
+
};
|
|
2694
|
+
export type MediaDeleteResponses = {
|
|
2695
|
+
/**
|
|
2696
|
+
* Deleted
|
|
2697
|
+
*/
|
|
2698
|
+
204: void;
|
|
2699
|
+
};
|
|
2700
|
+
export type MediaDeleteResponse = MediaDeleteResponses[keyof MediaDeleteResponses];
|
|
2701
|
+
export type MediaGetData = {
|
|
2702
|
+
body?: never;
|
|
2703
|
+
path: {
|
|
2704
|
+
mediaId: string;
|
|
2705
|
+
};
|
|
2706
|
+
query?: never;
|
|
2707
|
+
url: "/media/{mediaId}";
|
|
2708
|
+
};
|
|
2709
|
+
export type MediaGetErrors = {
|
|
2710
|
+
/**
|
|
2711
|
+
* Invalid request
|
|
2712
|
+
*/
|
|
2713
|
+
400: unknown;
|
|
2714
|
+
/**
|
|
2715
|
+
* Unauthorized
|
|
2716
|
+
*/
|
|
2717
|
+
401: unknown;
|
|
2718
|
+
/**
|
|
2719
|
+
* Forbidden
|
|
2720
|
+
*/
|
|
2721
|
+
403: unknown;
|
|
2722
|
+
/**
|
|
2723
|
+
* Not found
|
|
2724
|
+
*/
|
|
2725
|
+
404: unknown;
|
|
2726
|
+
};
|
|
2727
|
+
export type MediaGetResponses = {
|
|
2728
|
+
/**
|
|
2729
|
+
* Media asset
|
|
2730
|
+
*/
|
|
2731
|
+
200: MediaAsset;
|
|
2732
|
+
};
|
|
2733
|
+
export type MediaGetResponse = MediaGetResponses[keyof MediaGetResponses];
|
|
2734
|
+
export type MediaPublishData = {
|
|
2735
|
+
body?: never;
|
|
2736
|
+
path: {
|
|
2737
|
+
mediaId: string;
|
|
2738
|
+
};
|
|
2739
|
+
query?: never;
|
|
2740
|
+
url: "/media/{mediaId}/publish";
|
|
2741
|
+
};
|
|
2742
|
+
export type MediaPublishErrors = {
|
|
2743
|
+
/**
|
|
2744
|
+
* Invalid request
|
|
2745
|
+
*/
|
|
2746
|
+
400: unknown;
|
|
2747
|
+
/**
|
|
2748
|
+
* Unauthorized
|
|
2749
|
+
*/
|
|
2750
|
+
401: unknown;
|
|
2751
|
+
/**
|
|
2752
|
+
* Forbidden
|
|
2753
|
+
*/
|
|
2754
|
+
403: unknown;
|
|
2755
|
+
/**
|
|
2756
|
+
* Not found
|
|
2757
|
+
*/
|
|
2758
|
+
404: unknown;
|
|
2759
|
+
/**
|
|
2760
|
+
* Archive provider unavailable
|
|
2761
|
+
*/
|
|
2762
|
+
503: unknown;
|
|
2763
|
+
};
|
|
2764
|
+
export type MediaPublishResponses = {
|
|
2765
|
+
/**
|
|
2766
|
+
* Media with Archive location
|
|
2767
|
+
*/
|
|
2768
|
+
200: MediaAsset;
|
|
2769
|
+
};
|
|
2770
|
+
export type MediaPublishResponse = MediaPublishResponses[keyof MediaPublishResponses];
|
|
2771
|
+
export type MediaGetChildData = {
|
|
2772
|
+
body?: never;
|
|
2773
|
+
path: {
|
|
2774
|
+
mediaId: string;
|
|
2775
|
+
path: string;
|
|
2776
|
+
};
|
|
2777
|
+
query?: never;
|
|
2778
|
+
url: "/media/{mediaId}/children/{path}";
|
|
2779
|
+
};
|
|
2780
|
+
export type MediaGetChildErrors = {
|
|
2781
|
+
/**
|
|
2782
|
+
* Parent is not a Directory
|
|
2783
|
+
*/
|
|
2784
|
+
400: unknown;
|
|
2785
|
+
/**
|
|
2786
|
+
* Unauthorized
|
|
2787
|
+
*/
|
|
2788
|
+
401: unknown;
|
|
2789
|
+
/**
|
|
2790
|
+
* Forbidden
|
|
2791
|
+
*/
|
|
2792
|
+
403: unknown;
|
|
2793
|
+
/**
|
|
2794
|
+
* Child not found
|
|
2795
|
+
*/
|
|
2796
|
+
404: unknown;
|
|
2797
|
+
};
|
|
2798
|
+
export type MediaGetChildResponses = {
|
|
2799
|
+
/**
|
|
2800
|
+
* Child Entity
|
|
2801
|
+
*/
|
|
2802
|
+
200: MediaAsset;
|
|
2803
|
+
};
|
|
2804
|
+
export type MediaGetChildResponse = MediaGetChildResponses[keyof MediaGetChildResponses];
|
|
2805
|
+
export type UserSiweNonceData = {
|
|
2806
|
+
body?: never;
|
|
2807
|
+
path?: never;
|
|
2808
|
+
query?: never;
|
|
2809
|
+
url: "/user/signin/siwe/nonce";
|
|
2810
|
+
};
|
|
2811
|
+
export type UserSiweNonceErrors = {
|
|
2812
|
+
/**
|
|
2813
|
+
* SIWE configuration is missing
|
|
2814
|
+
*/
|
|
2815
|
+
500: unknown;
|
|
2816
|
+
};
|
|
2817
|
+
export type UserSiweNonceResponses = {
|
|
2818
|
+
/**
|
|
2819
|
+
* Issued nonce with issuedAt and expiresAt timestamps
|
|
2820
|
+
*/
|
|
2821
|
+
200: {
|
|
2822
|
+
nonce: string;
|
|
2823
|
+
issuedAt: string;
|
|
2824
|
+
expiresAt: string;
|
|
2825
|
+
};
|
|
2826
|
+
};
|
|
2827
|
+
export type UserSiweNonceResponse = UserSiweNonceResponses[keyof UserSiweNonceResponses];
|
|
2828
|
+
export type UserSigninData = {
|
|
2829
|
+
body: {
|
|
2830
|
+
providerType: "Privy";
|
|
2831
|
+
token: string;
|
|
2832
|
+
} | {
|
|
2833
|
+
providerType: "Siwe";
|
|
2834
|
+
message: string;
|
|
2835
|
+
signature: string;
|
|
2836
|
+
};
|
|
2837
|
+
path?: never;
|
|
2838
|
+
query?: never;
|
|
2839
|
+
url: "/user/signin";
|
|
2840
|
+
};
|
|
2841
|
+
export type UserSigninErrors = {
|
|
2842
|
+
/**
|
|
2843
|
+
* Server configuration error (JWT secret or SIWE config missing)
|
|
2844
|
+
*/
|
|
2845
|
+
500: unknown;
|
|
2846
|
+
};
|
|
2847
|
+
export type UserSigninResponses = {
|
|
2848
|
+
/**
|
|
2849
|
+
* Sign-in result
|
|
2850
|
+
*/
|
|
2851
|
+
200: {
|
|
2852
|
+
tokens: {
|
|
2853
|
+
accessToken: string;
|
|
2854
|
+
refreshToken: string;
|
|
2855
|
+
};
|
|
2856
|
+
user: {
|
|
2857
|
+
id: string;
|
|
2858
|
+
email: string | null;
|
|
2859
|
+
displayName: string | null;
|
|
2860
|
+
primaryAddress: string | null;
|
|
2861
|
+
};
|
|
2862
|
+
};
|
|
2863
|
+
};
|
|
2864
|
+
export type UserSigninResponse = UserSigninResponses[keyof UserSigninResponses];
|
|
2865
|
+
export type ApiKeyListData = {
|
|
2866
|
+
body?: never;
|
|
2867
|
+
path?: never;
|
|
2868
|
+
query?: never;
|
|
2869
|
+
url: "/user/api-keys";
|
|
2870
|
+
};
|
|
2871
|
+
export type ApiKeyListErrors = {
|
|
2872
|
+
/**
|
|
2873
|
+
* Unauthorized
|
|
2874
|
+
*/
|
|
2875
|
+
401: unknown;
|
|
2876
|
+
};
|
|
2877
|
+
export type ApiKeyListResponses = {
|
|
2878
|
+
/**
|
|
2879
|
+
* List of API keys
|
|
2880
|
+
*/
|
|
2881
|
+
200: Array<ApiKey>;
|
|
2882
|
+
};
|
|
2883
|
+
export type ApiKeyListResponse = ApiKeyListResponses[keyof ApiKeyListResponses];
|
|
2884
|
+
export type ApiKeyCreateData = {
|
|
2885
|
+
body: {
|
|
2886
|
+
name: string;
|
|
2887
|
+
expiresAt?: string;
|
|
2888
|
+
};
|
|
2889
|
+
path?: never;
|
|
2890
|
+
query?: never;
|
|
2891
|
+
url: "/user/api-keys";
|
|
2892
|
+
};
|
|
2893
|
+
export type ApiKeyCreateErrors = {
|
|
2894
|
+
/**
|
|
2895
|
+
* Invalid request
|
|
2896
|
+
*/
|
|
2897
|
+
400: unknown;
|
|
2898
|
+
/**
|
|
2899
|
+
* Unauthorized
|
|
2900
|
+
*/
|
|
2901
|
+
401: unknown;
|
|
2902
|
+
/**
|
|
2903
|
+
* Forbidden
|
|
2904
|
+
*/
|
|
2905
|
+
403: unknown;
|
|
2906
|
+
};
|
|
2907
|
+
export type ApiKeyCreateResponses = {
|
|
2908
|
+
/**
|
|
2909
|
+
* Created API key with one-time plaintext value
|
|
2910
|
+
*/
|
|
2911
|
+
200: ApiKeyCreateResponse;
|
|
2912
|
+
};
|
|
2913
|
+
export type ApiKeyCreateResponse2 = ApiKeyCreateResponses[keyof ApiKeyCreateResponses];
|
|
2914
|
+
export type ApiKeyRevokeData = {
|
|
2915
|
+
body?: never;
|
|
2916
|
+
path: {
|
|
2917
|
+
apiKeyId: string;
|
|
2918
|
+
};
|
|
2919
|
+
query?: never;
|
|
2920
|
+
url: "/user/api-keys/{apiKeyId}";
|
|
2921
|
+
};
|
|
2922
|
+
export type ApiKeyRevokeErrors = {
|
|
2923
|
+
/**
|
|
2924
|
+
* Unauthorized
|
|
2925
|
+
*/
|
|
2926
|
+
401: unknown;
|
|
2927
|
+
/**
|
|
2928
|
+
* Forbidden
|
|
2929
|
+
*/
|
|
2930
|
+
403: unknown;
|
|
2931
|
+
/**
|
|
2932
|
+
* Not found
|
|
2933
|
+
*/
|
|
2934
|
+
404: unknown;
|
|
2935
|
+
};
|
|
2936
|
+
export type ApiKeyRevokeResponses = {
|
|
2937
|
+
/**
|
|
2938
|
+
* Revoked API key
|
|
2939
|
+
*/
|
|
2940
|
+
200: {
|
|
2941
|
+
apiKey: ApiKey;
|
|
2942
|
+
};
|
|
2943
|
+
};
|
|
2944
|
+
export type ApiKeyRevokeResponse = ApiKeyRevokeResponses[keyof ApiKeyRevokeResponses];
|
|
2945
|
+
export type HealthGetData = {
|
|
2946
|
+
body?: never;
|
|
2947
|
+
path?: never;
|
|
2948
|
+
query?: never;
|
|
2949
|
+
url: "/health";
|
|
2950
|
+
};
|
|
2951
|
+
export type HealthGetResponses = {
|
|
2952
|
+
/**
|
|
2953
|
+
* Service health status
|
|
2954
|
+
*/
|
|
2955
|
+
200: {
|
|
2956
|
+
status: "healthy";
|
|
2957
|
+
};
|
|
2958
|
+
};
|
|
2959
|
+
export type HealthGetResponse = HealthGetResponses[keyof HealthGetResponses];
|
|
2960
|
+
//# sourceMappingURL=types.gen.d.ts.map
|