@highlightxyz/sdk 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.d.ts +7 -0
- package/lib/client.d.ts.map +1 -1
- package/lib/client.js +9 -1
- package/lib/v1/gen/sdk.gen.d.ts +110 -44
- package/lib/v1/gen/sdk.gen.d.ts.map +1 -1
- package/lib/v1/gen/sdk.gen.js +147 -40
- package/lib/v1/gen/types.gen.d.ts +504 -192
- package/lib/v1/gen/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/v1/gen/sdk.gen.js
CHANGED
|
@@ -84,7 +84,7 @@ export class Collection extends HeyApiClient {
|
|
|
84
84
|
/**
|
|
85
85
|
* Trending collections
|
|
86
86
|
*
|
|
87
|
-
*
|
|
87
|
+
* List live collections ranked by units minted in a 24-hour, 7-day, or 28-day rolling window.
|
|
88
88
|
*/
|
|
89
89
|
trending(parameters, options) {
|
|
90
90
|
const params = buildClientParams([parameters], [
|
|
@@ -105,7 +105,7 @@ export class Collection extends HeyApiClient {
|
|
|
105
105
|
/**
|
|
106
106
|
* Featured collections
|
|
107
107
|
*
|
|
108
|
-
*
|
|
108
|
+
* List curated home-page collections in editorial order with cursor pagination.
|
|
109
109
|
*/
|
|
110
110
|
featured(parameters, options) {
|
|
111
111
|
const params = buildClientParams([parameters], [
|
|
@@ -125,7 +125,7 @@ export class Collection extends HeyApiClient {
|
|
|
125
125
|
/**
|
|
126
126
|
* Get collection
|
|
127
127
|
*
|
|
128
|
-
* Get a collection by
|
|
128
|
+
* Get a collection by `highlightId` or by `<chain>:<contractAddress>[:<editionId>]`. The chain can be a slug or numeric ID. `editionId` defaults to 0.
|
|
129
129
|
*/
|
|
130
130
|
get(parameters, options) {
|
|
131
131
|
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "highlightId" }] }]);
|
|
@@ -138,7 +138,7 @@ export class Collection extends HeyApiClient {
|
|
|
138
138
|
/**
|
|
139
139
|
* List series previews
|
|
140
140
|
*
|
|
141
|
-
* List sample artwork
|
|
141
|
+
* List sample artwork from a series collection's uploaded assets. Returns an empty list for other collection types or when the assets are not ready. Public collections do not require authentication.
|
|
142
142
|
*/
|
|
143
143
|
listPreviews(parameters, options) {
|
|
144
144
|
const params = buildClientParams([parameters], [
|
|
@@ -156,9 +156,9 @@ export class Collection extends HeyApiClient {
|
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
/**
|
|
159
|
-
*
|
|
159
|
+
* Archive collection metadata to Arweave
|
|
160
160
|
*
|
|
161
|
-
*
|
|
161
|
+
* Archive the collection's token-metadata directory to Arweave. The operation is idempotent and does not change the contract's base URI.
|
|
162
162
|
*/
|
|
163
163
|
finalizeBaseUri(parameters, options) {
|
|
164
164
|
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "highlightId" }] }]);
|
|
@@ -221,7 +221,7 @@ export class Collection extends HeyApiClient {
|
|
|
221
221
|
/**
|
|
222
222
|
* Update edition details
|
|
223
223
|
*
|
|
224
|
-
* Update edition
|
|
224
|
+
* Update an edition's name, description, image, animation, or attributes. Draft changes are saved directly. Live changes return a `setEditionURI` transaction to sign. After confirmation, the backend re-derives the edition and refreshes every token.
|
|
225
225
|
*/
|
|
226
226
|
updateEditionDetails(parameters, options) {
|
|
227
227
|
const params = buildClientParams([parameters], [
|
|
@@ -246,7 +246,7 @@ export class Collection extends HeyApiClient {
|
|
|
246
246
|
/**
|
|
247
247
|
* Get collection sales
|
|
248
248
|
*
|
|
249
|
-
*
|
|
249
|
+
* List the draft and live sales attached to a collection.
|
|
250
250
|
*/
|
|
251
251
|
getSales(parameters, options) {
|
|
252
252
|
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "highlightId" }] }]);
|
|
@@ -259,7 +259,7 @@ export class Collection extends HeyApiClient {
|
|
|
259
259
|
/**
|
|
260
260
|
* Add a sale to a collection
|
|
261
261
|
*
|
|
262
|
-
* Add a
|
|
262
|
+
* Add a sale. A draft collection can have one sale at a time. On a live collection, a gated sale activates immediately and a public sale returns a vector-registration transaction.
|
|
263
263
|
*/
|
|
264
264
|
addSale(parameters, options) {
|
|
265
265
|
const params = buildClientParams([parameters], [
|
|
@@ -300,7 +300,7 @@ export class Collection extends HeyApiClient {
|
|
|
300
300
|
/**
|
|
301
301
|
* Delete a sale
|
|
302
302
|
*
|
|
303
|
-
* Delete a draft sale
|
|
303
|
+
* Delete a draft sale. A live sale cannot be deleted; pause it or set an end date.
|
|
304
304
|
*/
|
|
305
305
|
deleteSale(parameters, options) {
|
|
306
306
|
const params = buildClientParams([parameters], [
|
|
@@ -320,7 +320,7 @@ export class Collection extends HeyApiClient {
|
|
|
320
320
|
/**
|
|
321
321
|
* Update a sale
|
|
322
322
|
*
|
|
323
|
-
* Update
|
|
323
|
+
* Update a sale. Draft and gated sales update off-chain. Supported changes to a live public sale return an on-chain vector-update transaction.
|
|
324
324
|
*/
|
|
325
325
|
updateSale(parameters, options) {
|
|
326
326
|
const params = buildClientParams([parameters], [
|
|
@@ -357,7 +357,7 @@ export class Collection extends HeyApiClient {
|
|
|
357
357
|
/**
|
|
358
358
|
* Claim collection sale
|
|
359
359
|
*
|
|
360
|
-
* Build a
|
|
360
|
+
* Build a collector's mint transaction for a fixed-price, Dutch, or ranked sale.
|
|
361
361
|
*/
|
|
362
362
|
claimSale(parameters, options) {
|
|
363
363
|
const params = buildClientParams([parameters], [
|
|
@@ -384,7 +384,7 @@ export class Collection extends HeyApiClient {
|
|
|
384
384
|
/**
|
|
385
385
|
* Bid on an auction sale
|
|
386
386
|
*
|
|
387
|
-
* Build a
|
|
387
|
+
* Build a ranked- or English-auction bid transaction. For an English auction, `preferredNftRecipient` sets the wallet that receives the NFT if the bid wins.
|
|
388
388
|
*/
|
|
389
389
|
bidSale(parameters, options) {
|
|
390
390
|
const params = buildClientParams([parameters], [
|
|
@@ -412,7 +412,7 @@ export class Collection extends HeyApiClient {
|
|
|
412
412
|
/**
|
|
413
413
|
* Reclaim a non-winning ranked-auction bid
|
|
414
414
|
*
|
|
415
|
-
* Build a transaction
|
|
415
|
+
* Build a transaction that reclaims a non-winning ranked-auction bid after the auction ends.
|
|
416
416
|
*/
|
|
417
417
|
reclaimBid(parameters, options) {
|
|
418
418
|
const params = buildClientParams([parameters], [
|
|
@@ -438,7 +438,7 @@ export class Collection extends HeyApiClient {
|
|
|
438
438
|
/**
|
|
439
439
|
* Withdraw ranked-auction earnings
|
|
440
440
|
*
|
|
441
|
-
* Build a transaction
|
|
441
|
+
* Build a transaction that sends a completed ranked auction's native-currency earnings to its payment recipient.
|
|
442
442
|
*/
|
|
443
443
|
claimAuctionEarnings(parameters, options) {
|
|
444
444
|
const params = buildClientParams([parameters], [
|
|
@@ -463,7 +463,7 @@ export class Collection extends HeyApiClient {
|
|
|
463
463
|
/**
|
|
464
464
|
* Get ranked-auction live standings
|
|
465
465
|
*
|
|
466
|
-
*
|
|
466
|
+
* Get a ranked auction's clearing price and bid standings. Results are provisional before settlement. An authenticated response also includes the caller's winning bids and unclaimed tokens.
|
|
467
467
|
*/
|
|
468
468
|
rankedAuctionStandings(parameters, options) {
|
|
469
469
|
const params = buildClientParams([parameters], [
|
|
@@ -483,7 +483,7 @@ export class Collection extends HeyApiClient {
|
|
|
483
483
|
/**
|
|
484
484
|
* Fulfill (settle) an English auction
|
|
485
485
|
*
|
|
486
|
-
* Build
|
|
486
|
+
* Build an `AuctionManager.fulfillAuction` transaction after the auction ends. Any authenticated caller can settle; the contract sends the NFT to the winner's preferred recipient and splits the proceeds.
|
|
487
487
|
*/
|
|
488
488
|
fulfillEnglishAuction(parameters, options) {
|
|
489
489
|
const params = buildClientParams([parameters], [
|
|
@@ -508,7 +508,7 @@ export class Collection extends HeyApiClient {
|
|
|
508
508
|
/**
|
|
509
509
|
* Cancel an English auction
|
|
510
510
|
*
|
|
511
|
-
* Build the `AuctionManager.cancelAuctionOnChain` transaction.
|
|
511
|
+
* Build the creator-only `AuctionManager.cancelAuctionOnChain` transaction. Cancellation fails after a bid meets the reserve. The contract returns any escrowed NFT to the owner.
|
|
512
512
|
*/
|
|
513
513
|
cancelEnglishAuction(parameters, options) {
|
|
514
514
|
const params = buildClientParams([parameters], [
|
|
@@ -533,7 +533,7 @@ export class Collection extends HeyApiClient {
|
|
|
533
533
|
/**
|
|
534
534
|
* Get English auction standings
|
|
535
535
|
*
|
|
536
|
-
*
|
|
536
|
+
* Get an English auction's status, reserve, highest bid and bidder, end time, escrowed token, and creator earnings. An authenticated response indicates whether the caller is the highest bidder.
|
|
537
537
|
*/
|
|
538
538
|
englishAuctionStanding(parameters, options) {
|
|
539
539
|
const params = buildClientParams([parameters], [
|
|
@@ -553,7 +553,7 @@ export class Collection extends HeyApiClient {
|
|
|
553
553
|
/**
|
|
554
554
|
* Get English auction bid history
|
|
555
555
|
*
|
|
556
|
-
*
|
|
556
|
+
* List an English auction's indexed bids from newest to oldest. Amounts use the currency's raw on-chain base unit.
|
|
557
557
|
*/
|
|
558
558
|
englishAuctionBids(parameters, options) {
|
|
559
559
|
const params = buildClientParams([parameters], [
|
|
@@ -599,7 +599,7 @@ export class Collection extends HeyApiClient {
|
|
|
599
599
|
/**
|
|
600
600
|
* Cancel a deployment
|
|
601
601
|
*
|
|
602
|
-
* Cancel
|
|
602
|
+
* Cancel an incomplete deployment and return the collection to Draft. A shared contract keeps its current status; a non-shared contract returns to Draft. The collection can then be deployed again.
|
|
603
603
|
*/
|
|
604
604
|
deployCancel(parameters, options) {
|
|
605
605
|
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "highlightId" }] }]);
|
|
@@ -640,7 +640,7 @@ export class Token extends HeyApiClient {
|
|
|
640
640
|
/**
|
|
641
641
|
* List token attribute facets
|
|
642
642
|
*
|
|
643
|
-
*
|
|
643
|
+
* List trait values and token counts for collection filters. Public collections do not require authentication.
|
|
644
644
|
*/
|
|
645
645
|
attributeFacets(parameters, options) {
|
|
646
646
|
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "highlightId" }] }]);
|
|
@@ -690,6 +690,19 @@ export class Token extends HeyApiClient {
|
|
|
690
690
|
...params,
|
|
691
691
|
});
|
|
692
692
|
}
|
|
693
|
+
/**
|
|
694
|
+
* Re-drive stuck token reveals
|
|
695
|
+
*
|
|
696
|
+
* Reschedule failed and stale pending token reveals. Minted tokens restart from their original mint transaction. Imported tokens without transfer history rerun metadata indexing only.
|
|
697
|
+
*/
|
|
698
|
+
redriveReveals(parameters, options) {
|
|
699
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "highlightId" }] }]);
|
|
700
|
+
return (options?.client ?? this.client).post({
|
|
701
|
+
url: "/collection/{highlightId}/tokens/redrive-reveals",
|
|
702
|
+
...options,
|
|
703
|
+
...params,
|
|
704
|
+
});
|
|
705
|
+
}
|
|
693
706
|
}
|
|
694
707
|
export class Config extends HeyApiClient {
|
|
695
708
|
/**
|
|
@@ -763,7 +776,7 @@ export class Gate extends HeyApiClient {
|
|
|
763
776
|
/**
|
|
764
777
|
* List gates
|
|
765
778
|
*
|
|
766
|
-
* List
|
|
779
|
+
* List gates owned by the authenticated account.
|
|
767
780
|
*/
|
|
768
781
|
list(options) {
|
|
769
782
|
return (options?.client ?? this.client).get({
|
|
@@ -853,7 +866,7 @@ export class Gate extends HeyApiClient {
|
|
|
853
866
|
/**
|
|
854
867
|
* Preview a collection
|
|
855
868
|
*
|
|
856
|
-
* Resolve an NFT contract for
|
|
869
|
+
* Resolve an NFT contract for a gate builder. Returns a Highlight collection when available, otherwise external NFT data.
|
|
857
870
|
*/
|
|
858
871
|
previewCollection(parameters, options) {
|
|
859
872
|
const params = buildClientParams([parameters], [
|
|
@@ -1085,7 +1098,7 @@ export class Mechanic extends HeyApiClient {
|
|
|
1085
1098
|
/**
|
|
1086
1099
|
* Add mechanic deployment
|
|
1087
1100
|
*
|
|
1088
|
-
* Register a mechanic contract
|
|
1101
|
+
* Register a mechanic's contract address on a chain. Replaces the address if that chain already has one.
|
|
1089
1102
|
*/
|
|
1090
1103
|
addDeployment(parameters, options) {
|
|
1091
1104
|
const params = buildClientParams([parameters], [
|
|
@@ -1113,7 +1126,7 @@ export class Media extends HeyApiClient {
|
|
|
1113
1126
|
/**
|
|
1114
1127
|
* Create media upload session
|
|
1115
1128
|
*
|
|
1116
|
-
* Create a media asset and return
|
|
1129
|
+
* Create a pending media asset and return an upload URL with the required request headers.
|
|
1117
1130
|
*/
|
|
1118
1131
|
createUploadSession(parameters, options) {
|
|
1119
1132
|
const params = buildClientParams([parameters], [
|
|
@@ -1141,7 +1154,7 @@ export class Media extends HeyApiClient {
|
|
|
1141
1154
|
/**
|
|
1142
1155
|
* Upload media bytes
|
|
1143
1156
|
*
|
|
1144
|
-
*
|
|
1157
|
+
* Write the request body to storage and start processing. Files return Ready; directories return Processing while extraction runs.
|
|
1145
1158
|
*/
|
|
1146
1159
|
upload(parameters, options) {
|
|
1147
1160
|
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "mediaId" }] }]);
|
|
@@ -1154,7 +1167,7 @@ export class Media extends HeyApiClient {
|
|
|
1154
1167
|
/**
|
|
1155
1168
|
* Process a media asset
|
|
1156
1169
|
*
|
|
1157
|
-
*
|
|
1170
|
+
* Retry processing for a failed directory. The operation is idempotent and leaves Ready or Processing assets unchanged.
|
|
1158
1171
|
*/
|
|
1159
1172
|
process(parameters, options) {
|
|
1160
1173
|
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "mediaId" }] }]);
|
|
@@ -1165,9 +1178,9 @@ export class Media extends HeyApiClient {
|
|
|
1165
1178
|
});
|
|
1166
1179
|
}
|
|
1167
1180
|
/**
|
|
1168
|
-
* List
|
|
1181
|
+
* List directory files
|
|
1169
1182
|
*
|
|
1170
|
-
*
|
|
1183
|
+
* List the extracted files in a directory with cursor pagination.
|
|
1171
1184
|
*/
|
|
1172
1185
|
listChildren(parameters, options) {
|
|
1173
1186
|
const params = buildClientParams([parameters], [
|
|
@@ -1188,7 +1201,7 @@ export class Media extends HeyApiClient {
|
|
|
1188
1201
|
/**
|
|
1189
1202
|
* Delete a media asset
|
|
1190
1203
|
*
|
|
1191
|
-
* Delete
|
|
1204
|
+
* Delete a media record and its R2 objects. An immutable Arweave archive remains available. Returns 409 when a contract or generative collection still references the media.
|
|
1192
1205
|
*/
|
|
1193
1206
|
delete(parameters, options) {
|
|
1194
1207
|
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "mediaId" }] }]);
|
|
@@ -1214,7 +1227,7 @@ export class Media extends HeyApiClient {
|
|
|
1214
1227
|
/**
|
|
1215
1228
|
* Publish media to archive
|
|
1216
1229
|
*
|
|
1217
|
-
*
|
|
1230
|
+
* Archive media to Arweave. Files publish one blob; directories publish their children and a manifest. The operation is idempotent.
|
|
1218
1231
|
*/
|
|
1219
1232
|
publish(parameters, options) {
|
|
1220
1233
|
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "mediaId" }] }]);
|
|
@@ -1225,9 +1238,9 @@ export class Media extends HeyApiClient {
|
|
|
1225
1238
|
});
|
|
1226
1239
|
}
|
|
1227
1240
|
/**
|
|
1228
|
-
* Get a child
|
|
1241
|
+
* Get a child file by path
|
|
1229
1242
|
*
|
|
1230
|
-
*
|
|
1243
|
+
* Get an extracted file by path, including its status and storage locations.
|
|
1231
1244
|
*/
|
|
1232
1245
|
getChild(parameters, options) {
|
|
1233
1246
|
const params = buildClientParams([parameters], [
|
|
@@ -1247,9 +1260,9 @@ export class Media extends HeyApiClient {
|
|
|
1247
1260
|
}
|
|
1248
1261
|
export class Tx extends HeyApiClient {
|
|
1249
1262
|
/**
|
|
1250
|
-
* Get transaction
|
|
1263
|
+
* Get transaction status
|
|
1251
1264
|
*
|
|
1252
|
-
*
|
|
1265
|
+
* Get the transaction's domain milestones and their status. The overall status reaches Ready after all expected milestones finish. Use the `/ws` route for live updates.
|
|
1253
1266
|
*/
|
|
1254
1267
|
status(parameters, options) {
|
|
1255
1268
|
const params = buildClientParams([parameters], [
|
|
@@ -1269,7 +1282,7 @@ export class Tx extends HeyApiClient {
|
|
|
1269
1282
|
/**
|
|
1270
1283
|
* Submit a transaction for tracking
|
|
1271
1284
|
*
|
|
1272
|
-
*
|
|
1285
|
+
* Submit a broadcast transaction hash for domain processing and milestone tracking. Returns the current snapshot; use the `/ws` route for live updates.
|
|
1273
1286
|
*/
|
|
1274
1287
|
submit(parameters, options) {
|
|
1275
1288
|
const params = buildClientParams([parameters], [
|
|
@@ -1287,11 +1300,86 @@ export class Tx extends HeyApiClient {
|
|
|
1287
1300
|
});
|
|
1288
1301
|
}
|
|
1289
1302
|
}
|
|
1303
|
+
export class Profile extends HeyApiClient {
|
|
1304
|
+
/**
|
|
1305
|
+
* Get authenticated profile
|
|
1306
|
+
*
|
|
1307
|
+
* Get the private profile for the authenticated account, including its email.
|
|
1308
|
+
*/
|
|
1309
|
+
get(options) {
|
|
1310
|
+
return (options?.client ?? this.client).get({ url: "/user/profile", ...options });
|
|
1311
|
+
}
|
|
1312
|
+
/**
|
|
1313
|
+
* Update authenticated profile
|
|
1314
|
+
*
|
|
1315
|
+
* Update private profile fields. Avatar media must be an owned, ready User-scope image file.
|
|
1316
|
+
*/
|
|
1317
|
+
update(parameters, options) {
|
|
1318
|
+
const params = buildClientParams([parameters], [
|
|
1319
|
+
{
|
|
1320
|
+
args: [
|
|
1321
|
+
{ in: "body", key: "displayName" },
|
|
1322
|
+
{ in: "body", key: "bio" },
|
|
1323
|
+
{ in: "body", key: "website" },
|
|
1324
|
+
{ in: "body", key: "avatarMediaId" },
|
|
1325
|
+
],
|
|
1326
|
+
},
|
|
1327
|
+
]);
|
|
1328
|
+
return (options?.client ?? this.client).patch({
|
|
1329
|
+
url: "/user/profile",
|
|
1330
|
+
...options,
|
|
1331
|
+
...params,
|
|
1332
|
+
headers: {
|
|
1333
|
+
"Content-Type": "application/json",
|
|
1334
|
+
...options?.headers,
|
|
1335
|
+
...params.headers,
|
|
1336
|
+
},
|
|
1337
|
+
});
|
|
1338
|
+
}
|
|
1339
|
+
/**
|
|
1340
|
+
* Get public profile
|
|
1341
|
+
*
|
|
1342
|
+
* Get a wallet's public profile. Valid wallet addresses without a registered account return an address-only fallback profile.
|
|
1343
|
+
*/
|
|
1344
|
+
public(parameters, options) {
|
|
1345
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "walletAddress" }] }]);
|
|
1346
|
+
return (options?.client ?? this.client).get({
|
|
1347
|
+
url: "/user/{walletAddress}/profile",
|
|
1348
|
+
...options,
|
|
1349
|
+
...params,
|
|
1350
|
+
});
|
|
1351
|
+
}
|
|
1352
|
+
/**
|
|
1353
|
+
* List public wallet tokens
|
|
1354
|
+
*
|
|
1355
|
+
* Get a wallet's token holdings across live collections. This is available for every valid EVM address, including addresses without a registered account.
|
|
1356
|
+
*/
|
|
1357
|
+
tokens(parameters, options) {
|
|
1358
|
+
const params = buildClientParams([parameters], [
|
|
1359
|
+
{
|
|
1360
|
+
args: [
|
|
1361
|
+
{ in: "path", key: "walletAddress" },
|
|
1362
|
+
{ in: "query", key: "page" },
|
|
1363
|
+
{ in: "query", key: "limit" },
|
|
1364
|
+
{ in: "query", key: "sort" },
|
|
1365
|
+
{ in: "query", key: "order" },
|
|
1366
|
+
{ in: "query", key: "collectionId" },
|
|
1367
|
+
{ in: "query", key: "search" },
|
|
1368
|
+
],
|
|
1369
|
+
},
|
|
1370
|
+
]);
|
|
1371
|
+
return (options?.client ?? this.client).get({
|
|
1372
|
+
url: "/user/{walletAddress}/tokens",
|
|
1373
|
+
...options,
|
|
1374
|
+
...params,
|
|
1375
|
+
});
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1290
1378
|
export class Siwe extends HeyApiClient {
|
|
1291
1379
|
/**
|
|
1292
1380
|
* Issue a SIWE nonce
|
|
1293
1381
|
*
|
|
1294
|
-
*
|
|
1382
|
+
* Issue a single-use, short-lived nonce for the `nonce` field of a SIWE (EIP-4361) message.
|
|
1295
1383
|
*/
|
|
1296
1384
|
nonce(options) {
|
|
1297
1385
|
return (options?.client ?? this.client).post({ url: "/user/signin/siwe/nonce", ...options });
|
|
@@ -1299,9 +1387,9 @@ export class Siwe extends HeyApiClient {
|
|
|
1299
1387
|
}
|
|
1300
1388
|
export class User extends HeyApiClient {
|
|
1301
1389
|
/**
|
|
1302
|
-
* Sign in
|
|
1390
|
+
* Sign in
|
|
1303
1391
|
*
|
|
1304
|
-
*
|
|
1392
|
+
* Exchange a Privy ID token or signed SIWE message for Highlight access and refresh tokens.
|
|
1305
1393
|
*/
|
|
1306
1394
|
signin(parameters, options) {
|
|
1307
1395
|
const params = buildClientParams([parameters], [{ args: [{ key: "body", map: "body" }] }]);
|
|
@@ -1388,6 +1476,11 @@ export class HighlightClient extends HeyApiClient {
|
|
|
1388
1476
|
super(args);
|
|
1389
1477
|
HighlightClient.__registry.set(this, args?.key);
|
|
1390
1478
|
}
|
|
1479
|
+
/**
|
|
1480
|
+
* Activate a chain indexer
|
|
1481
|
+
*
|
|
1482
|
+
* Start or wake indexing for an enabled chain. Administrative use only.
|
|
1483
|
+
*/
|
|
1391
1484
|
postIndexerChainsByChainIdActivate(parameters, options) {
|
|
1392
1485
|
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "chainId" }] }]);
|
|
1393
1486
|
return (options?.client ?? this.client).post({
|
|
@@ -1396,6 +1489,11 @@ export class HighlightClient extends HeyApiClient {
|
|
|
1396
1489
|
...params,
|
|
1397
1490
|
});
|
|
1398
1491
|
}
|
|
1492
|
+
/**
|
|
1493
|
+
* Reset a chain indexer
|
|
1494
|
+
*
|
|
1495
|
+
* Move a chain's indexing cursor to a block so later polls reprocess from that point. Administrative use only.
|
|
1496
|
+
*/
|
|
1399
1497
|
postIndexerChainsByChainIdReset(parameters, options) {
|
|
1400
1498
|
const params = buildClientParams([parameters], [
|
|
1401
1499
|
{
|
|
@@ -1416,6 +1514,11 @@ export class HighlightClient extends HeyApiClient {
|
|
|
1416
1514
|
},
|
|
1417
1515
|
});
|
|
1418
1516
|
}
|
|
1517
|
+
/**
|
|
1518
|
+
* Poll a chain indexer
|
|
1519
|
+
*
|
|
1520
|
+
* Run one indexing cycle for an enabled chain. Administrative use only.
|
|
1521
|
+
*/
|
|
1419
1522
|
postIndexerChainsByChainIdPoll(parameters, options) {
|
|
1420
1523
|
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "chainId" }] }]);
|
|
1421
1524
|
return (options?.client ?? this.client).post({
|
|
@@ -1456,6 +1559,10 @@ export class HighlightClient extends HeyApiClient {
|
|
|
1456
1559
|
get tx() {
|
|
1457
1560
|
return (this._tx ??= new Tx({ client: this.client }));
|
|
1458
1561
|
}
|
|
1562
|
+
_profile;
|
|
1563
|
+
get profile() {
|
|
1564
|
+
return (this._profile ??= new Profile({ client: this.client }));
|
|
1565
|
+
}
|
|
1459
1566
|
_user;
|
|
1460
1567
|
get user() {
|
|
1461
1568
|
return (this._user ??= new User({ client: this.client }));
|