@highlightxyz/sdk 0.2.0 → 0.4.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 CHANGED
@@ -4,6 +4,13 @@ import { HighlightClient } from "./v1/gen/sdk.gen.js";
4
4
  export { createClient, HighlightClient };
5
5
  export type { Client };
6
6
  export type HighlightClientConfig = Config & {
7
+ /**
8
+ * Highlight API key sent as a bearer token.
9
+ *
10
+ * This is a convenience alias for configuring `auth` and `security`
11
+ * explicitly. `auth` takes precedence when both are provided.
12
+ */
13
+ apiKey?: string;
7
14
  security?: ReadonlyArray<Auth>;
8
15
  };
9
16
  export declare function createHighlightClient(config?: HighlightClientConfig): HighlightClient;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AAEtC,OAAO,EAAE,YAAY,EAAE,KAAK,IAAI,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AACzC,YAAY,EAAE,MAAM,EAAE,CAAC;AAEvB,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG;IAC3C,QAAQ,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;CAChC,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,MAAM,CAAC,EAAE,qBAAqB,mBAGnE"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AAEtC,OAAO,EAAE,YAAY,EAAE,KAAK,IAAI,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AACzC,YAAY,EAAE,MAAM,EAAE,CAAC;AAEvB,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG;IAC3C;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;CAChC,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,MAAM,CAAC,EAAE,qBAAqB,mBAYnE"}
package/lib/client.js CHANGED
@@ -3,6 +3,14 @@ import { createClient } from "./v1/gen/client";
3
3
  import { HighlightClient } from "./v1/gen/sdk.gen.js";
4
4
  export { createClient, HighlightClient };
5
5
  export function createHighlightClient(config) {
6
- const client = createClient(config);
6
+ const resolvedConfig = {
7
+ ...config,
8
+ auth: config?.auth ?? config?.apiKey,
9
+ security: config?.security ??
10
+ (config?.auth || config?.apiKey
11
+ ? [{ type: "http", scheme: "bearer" }]
12
+ : undefined),
13
+ };
14
+ const client = createClient(resolvedConfig);
7
15
  return new HighlightClient({ client });
8
16
  }
@@ -1,5 +1,5 @@
1
1
  import { type Client, type Options as Options2, type TDataShape } from "./client";
2
- import { type ApiKeyCreateErrors, type ApiKeyCreateResponses, type ApiKeyListErrors, type ApiKeyListResponses, type ApiKeyRevokeErrors, type ApiKeyRevokeResponses, CaptureSettingsTrigger, type CollectionAddSaleErrors, type CollectionAddSaleResponses, type CollectionBidSaleErrors, type CollectionBidSaleResponses, type CollectionCancelEnglishAuctionErrors, type CollectionCancelEnglishAuctionResponses, type CollectionClaimAuctionEarningsErrors, type CollectionClaimAuctionEarningsResponses, type CollectionClaimSaleErrors, type CollectionClaimSaleResponses, type CollectionCreateErrors, type CollectionCreateResponses, type CollectionDeleteSaleErrors, type CollectionDeleteSaleResponses, type CollectionDeployCancelErrors, type CollectionDeployCancelResponses, type CollectionDeployErrors, type CollectionDeployResponses, type CollectionDeployStatusErrors, type CollectionDeployStatusResponses, type CollectionEnglishAuctionBidsErrors, type CollectionEnglishAuctionBidsResponses, type CollectionEnglishAuctionStandingErrors, type CollectionEnglishAuctionStandingResponses, type CollectionFeaturedErrors, type CollectionFeaturedResponses, type CollectionFinalizeBaseUriErrors, type CollectionFinalizeBaseUriResponses, type CollectionFulfillEnglishAuctionErrors, type CollectionFulfillEnglishAuctionResponses, type CollectionGetErrors, type CollectionGetResponses, type CollectionGetSalesErrors, type CollectionGetSalesResponses, type CollectionListErrors, type CollectionListPreviewsErrors, type CollectionListPreviewsResponses, type CollectionListResponses, type CollectionRankedAuctionStandingsErrors, type CollectionRankedAuctionStandingsResponses, type CollectionReclaimBidErrors, type CollectionReclaimBidResponses, type CollectionTrendingErrors, type CollectionTrendingResponses, CollectionType, type CollectionUpdateEditionDetailsErrors, type CollectionUpdateEditionDetailsResponses, type CollectionUpdateGenerativeDetailsErrors, type CollectionUpdateGenerativeDetailsResponses, type CollectionUpdateSaleErrors, type CollectionUpdateSaleResponses, type CollectionUpdateSeriesDetailsErrors, type CollectionUpdateSeriesDetailsResponses, type ConfigChainsResponses, type ConfigSystemContractErrors, type ConfigSystemContractResponses, type ContractGetErrors, type ContractGetResponses, type ContractListErrors, type ContractListResponses, ContractStandard, type GateCreateErrors, type GateCreateResponses, type GateGetErrors, type GateGetResponses, type GateListErrors, type GateListResponses, GateMatchMode, type GatePreviewAttributesErrors, type GatePreviewAttributesResponses, type GatePreviewCollectionErrors, type GatePreviewCollectionResponses, type GatePreviewCurrencyErrors, type GatePreviewCurrencyResponses, type GatePreviewFarcasterErrors, type GatePreviewFarcasterResponses, type GatePreviewTokenErrors, type GatePreviewTokenResponses, type GatePreviewTokensErrors, type GatePreviewTokensResponses, type GateRemoveErrors, type GateRemoveResponses, type GateUpdateErrors, type GateUpdateResponses, GenerativeEditionType, type HealthGetResponses, type MechanicAddDeploymentErrors, type MechanicAddDeploymentResponses, type MechanicCreateErrors, type MechanicCreateResponses, type MechanicGetErrors, type MechanicGetResponses, type MechanicListResponses, type MechanicRemoveDeploymentErrors, type MechanicRemoveDeploymentResponses, type MechanicUpdateErrors, type MechanicUpdateResponses, type MediaCreateUploadSessionErrors, type MediaCreateUploadSessionResponses, type MediaDeleteErrors, type MediaDeleteResponses, type MediaGetChildErrors, type MediaGetChildResponses, type MediaGetErrors, type MediaGetResponses, MediaKind, type MediaListChildrenErrors, type MediaListChildrenResponses, type MediaProcessErrors, type MediaProcessResponses, type MediaPublishErrors, type MediaPublishResponses, MediaScope, type MediaUploadErrors, type MediaUploadResponses, type PostIndexerChainsByChainIdActivateResponses, type PostIndexerChainsByChainIdPollResponses, type PostIndexerChainsByChainIdResetResponses, SaleAccessMode, SaleType, SelectorType, type TokenAttributeFacetsErrors, type TokenAttributeFacetsResponses, type TokenGetErrors, type TokenGetResponses, type TokenListErrors, type TokenListOwnersErrors, type TokenListOwnersResponses, type TokenListResponses, type TxStatusErrors, type TxStatusResponses, type TxSubmitErrors, type TxSubmitResponses, type UserSigninErrors, type UserSigninResponses, type UserSiweNonceErrors, type UserSiweNonceResponses } from "./types.gen";
2
+ import { type ApiKeyCreateErrors, type ApiKeyCreateResponses, type ApiKeyListErrors, type ApiKeyListResponses, type ApiKeyRevokeErrors, type ApiKeyRevokeResponses, CaptureSettingsTrigger, type CollectionAddSaleErrors, type CollectionAddSaleResponses, type CollectionArchiveBaseUriErrors, type CollectionArchiveBaseUriResponses, type CollectionBidSaleErrors, type CollectionBidSaleResponses, type CollectionCancelEnglishAuctionErrors, type CollectionCancelEnglishAuctionResponses, type CollectionClaimAuctionEarningsErrors, type CollectionClaimAuctionEarningsResponses, type CollectionClaimDutchRebateErrors, type CollectionClaimDutchRebateResponses, type CollectionClaimSaleErrors, type CollectionClaimSaleResponses, type CollectionCreateErrors, type CollectionCreateMediaUploadSessionErrors, type CollectionCreateMediaUploadSessionResponses, type CollectionCreateResponses, type CollectionDeleteSaleErrors, type CollectionDeleteSaleResponses, type CollectionDeployCancelErrors, type CollectionDeployCancelResponses, type CollectionDeployErrors, type CollectionDeployResponses, type CollectionDeployStatusErrors, type CollectionDeployStatusResponses, type CollectionDutchAuctionStandingErrors, type CollectionDutchAuctionStandingResponses, type CollectionEnglishAuctionBidsErrors, type CollectionEnglishAuctionBidsResponses, type CollectionEnglishAuctionStandingErrors, type CollectionEnglishAuctionStandingResponses, type CollectionFeaturedErrors, type CollectionFeaturedResponses, type CollectionFulfillEnglishAuctionErrors, type CollectionFulfillEnglishAuctionResponses, type CollectionGetErrors, type CollectionGetResponses, type CollectionGetSalesErrors, type CollectionGetSalesResponses, type CollectionListErrors, type CollectionListPreviewsErrors, type CollectionListPreviewsResponses, type CollectionListResponses, type CollectionRankedAuctionStandingsErrors, type CollectionRankedAuctionStandingsResponses, type CollectionReclaimBidErrors, type CollectionReclaimBidResponses, type CollectionTrendingErrors, type CollectionTrendingResponses, CollectionType, type CollectionUpdateEditionDetailsErrors, type CollectionUpdateEditionDetailsResponses, type CollectionUpdateGenerativeDetailsErrors, type CollectionUpdateGenerativeDetailsResponses, type CollectionUpdateMetadataErrors, type CollectionUpdateMetadataInput, type CollectionUpdateMetadataResponses, type CollectionUpdateSaleErrors, type CollectionUpdateSaleResponses, type CollectionUpdateSeriesDetailsErrors, type CollectionUpdateSeriesDetailsResponses, type ConfigChainsResponses, type ConfigMediaHostsResponses, type ConfigSystemContractErrors, type ConfigSystemContractResponses, type ContractGetErrors, type ContractGetResponses, type ContractListErrors, type ContractListResponses, ContractStandard, type GateCreateErrors, type GateCreateResponses, type GateGetErrors, type GateGetResponses, type GateListErrors, type GateListResponses, GateMatchMode, type GatePreviewAttributesErrors, type GatePreviewAttributesResponses, type GatePreviewCollectionErrors, type GatePreviewCollectionResponses, type GatePreviewCurrencyErrors, type GatePreviewCurrencyResponses, type GatePreviewFarcasterErrors, type GatePreviewFarcasterResponses, type GatePreviewTokenErrors, type GatePreviewTokenResponses, type GatePreviewTokensErrors, type GatePreviewTokensResponses, type GateRemoveErrors, type GateRemoveResponses, type GateUpdateErrors, type GateUpdateResponses, GenerativeEditionType, type HealthGetResponses, type MechanicAddDeploymentErrors, type MechanicAddDeploymentResponses, type MechanicCreateErrors, type MechanicCreateResponses, type MechanicGetErrors, type MechanicGetResponses, type MechanicListResponses, type MechanicRemoveDeploymentErrors, type MechanicRemoveDeploymentResponses, type MechanicUpdateErrors, type MechanicUpdateResponses, type MediaContentHash, type MediaDeleteErrors, type MediaDeleteResponses, type MediaFinalizeUploadErrors, type MediaFinalizeUploadResponses, type MediaGetChildErrors, type MediaGetChildResponses, type MediaGetErrors, type MediaGetResponses, type MediaListChildrenErrors, type MediaListChildrenResponses, type MediaPublishErrors, type MediaPublishResponses, MediaPurpose, type PostIndexerChainsByChainIdActivateErrors, type PostIndexerChainsByChainIdActivateResponses, type PostIndexerChainsByChainIdPollErrors, type PostIndexerChainsByChainIdPollResponses, type PostIndexerChainsByChainIdResetErrors, type PostIndexerChainsByChainIdResetResponses, type ProfileGetErrors, type ProfileGetResponses, type ProfilePublicErrors, type ProfilePublicResponses, type ProfileTokensErrors, type ProfileTokensResponses, type ProfileUpdateErrors, type ProfileUpdateResponses, SaleAccessMode, SaleType, SelectorType, type TokenAttributeFacetsErrors, type TokenAttributeFacetsResponses, type TokenGetErrors, type TokenGetResponses, type TokenListErrors, type TokenListOwnersErrors, type TokenListOwnersResponses, type TokenListResponses, type TokenRedriveRevealsErrors, type TokenRedriveRevealsResponses, type TxStatusErrors, type TxStatusResponses, type TxSubmitErrors, type TxSubmitResponses, type UserCreateMediaUploadSessionErrors, type UserCreateMediaUploadSessionResponses, type UserSigninErrors, type UserSigninResponses, type UserSiweNonceErrors, type UserSiweNonceResponses } from "./types.gen";
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -56,8 +56,6 @@ export declare class Collection extends HeyApiClient {
56
56
  symbol: string;
57
57
  standard: ContractStandard;
58
58
  };
59
- logoMediaId: string;
60
- image: string;
61
59
  type: CollectionType;
62
60
  royalty?: {
63
61
  address: string;
@@ -68,7 +66,7 @@ export declare class Collection extends HeyApiClient {
68
66
  /**
69
67
  * Trending collections
70
68
  *
71
- * Public leaderboard of collections ranked by units minted within a rolling time window (24h / 7d / 28d), computed live from the mint ledger.
69
+ * List live collections ranked by units minted in a 24-hour, 7-day, or 28-day rolling window.
72
70
  */
73
71
  trending<ThrowOnError extends boolean = false>(parameters?: {
74
72
  window?: "24h" | "7d" | "28d";
@@ -78,7 +76,7 @@ export declare class Collection extends HeyApiClient {
78
76
  /**
79
77
  * Featured collections
80
78
  *
81
- * Public curated showcase of collections for the home page, ordered by editorial position and paginated by cursor.
79
+ * List curated home-page collections in editorial order with cursor pagination.
82
80
  */
83
81
  featured<ThrowOnError extends boolean = false>(parameters?: {
84
82
  limit?: number;
@@ -87,7 +85,7 @@ export declare class Collection extends HeyApiClient {
87
85
  /**
88
86
  * Get collection
89
87
  *
90
- * Get a collection by its highlight ID, or by a contract reference of the form `<chain>:<contractAddress>[:<editionId>]` (chain slug or numeric chainId; editionId defaults to 0), e.g. `ethereum:0x0c3dd3c403b6B5c0CCe2a97F15820a4Eae347FE7:0`.
88
+ * Get a collection by `highlightId` or by `<chain>:<contractAddress>[:<editionId>]`. The chain can be a slug or numeric ID. `editionId` defaults to 0.
91
89
  */
92
90
  get<ThrowOnError extends boolean = false>(parameters: {
93
91
  highlightId: string | string;
@@ -95,20 +93,42 @@ export declare class Collection extends HeyApiClient {
95
93
  /**
96
94
  * List series previews
97
95
  *
98
- * List sample artwork for a series collection, resolved from its uploaded assets. Returns an empty list for non-series collections or when assets are not ready. Available for public collections without authentication.
96
+ * 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.
99
97
  */
100
98
  listPreviews<ThrowOnError extends boolean = false>(parameters: {
101
99
  highlightId: string;
102
100
  limit?: number;
103
101
  }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<CollectionListPreviewsResponses, CollectionListPreviewsErrors, ThrowOnError, "fields">;
104
102
  /**
105
- * Finalize collection base URI to Arweave
103
+ * Archive collection metadata to Arweave
106
104
  *
107
- * Publish the collection's token-metadata base URI Directory to Arweave. Call once the collection is complete (sellout or manual trigger) to freeze metadata permanently. Idempotent — safe to call if already archived.
105
+ * Archive the collection's current token-metadata directory snapshot to Arweave. The operation is archive-once, leaves the R2 directory appendable, and does not change the contract's base URI.
108
106
  */
109
- finalizeBaseUri<ThrowOnError extends boolean = false>(parameters: {
107
+ archiveBaseUri<ThrowOnError extends boolean = false>(parameters: {
110
108
  highlightId: string;
111
- }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<CollectionFinalizeBaseUriResponses, CollectionFinalizeBaseUriErrors, ThrowOnError, "fields">;
109
+ }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<CollectionArchiveBaseUriResponses, CollectionArchiveBaseUriErrors, ThrowOnError, "fields">;
110
+ /**
111
+ * Create a collection media upload session
112
+ *
113
+ * Start an upload for one of the collection media purposes and return an upload URL with the required request headers.
114
+ */
115
+ createMediaUploadSession<ThrowOnError extends boolean = false>(parameters: {
116
+ highlightId: string;
117
+ purpose: MediaPurpose;
118
+ fileName: string;
119
+ mimeType: string;
120
+ fileSize: number;
121
+ contentHash: MediaContentHash;
122
+ }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<CollectionCreateMediaUploadSessionResponses, CollectionCreateMediaUploadSessionErrors, ThrowOnError, "fields">;
123
+ /**
124
+ * Update collection display metadata
125
+ *
126
+ * Update a collection's name, description, and logo. Every field is optional; absent fields are left unchanged.
127
+ */
128
+ updateMetadata<ThrowOnError extends boolean = false>(parameters: {
129
+ highlightId: string;
130
+ collectionUpdateMetadataInput: CollectionUpdateMetadataInput;
131
+ }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<CollectionUpdateMetadataResponses, CollectionUpdateMetadataErrors, ThrowOnError, "fields">;
112
132
  /**
113
133
  * Update generative draft details
114
134
  *
@@ -150,7 +170,7 @@ export declare class Collection extends HeyApiClient {
150
170
  /**
151
171
  * Update edition details
152
172
  *
153
- * Update edition-specific details (name, description, image, animation, attributes). For a draft collection the change is saved directly. For a live collection it returns a `setEditionURI` transaction to sign — once confirmed on-chain, the backend re-derives the edition and refreshes every token.
173
+ * 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.
154
174
  */
155
175
  updateEditionDetails<ThrowOnError extends boolean = false>(parameters: {
156
176
  highlightId: string;
@@ -169,7 +189,7 @@ export declare class Collection extends HeyApiClient {
169
189
  /**
170
190
  * Get collection sales
171
191
  *
172
- * Get all sales for a collection.
192
+ * List the draft and live sales attached to a collection.
173
193
  */
174
194
  getSales<ThrowOnError extends boolean = false>(parameters: {
175
195
  highlightId: string;
@@ -177,7 +197,7 @@ export declare class Collection extends HeyApiClient {
177
197
  /**
178
198
  * Add a sale to a collection
179
199
  *
180
- * Add a new sale to a collection. Draft collections can have one sale at a time. For live collections, gated sales go live immediately; public sales return a contract execution for on-chain registration.
200
+ * 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.
181
201
  */
182
202
  addSale<ThrowOnError extends boolean = false>(parameters: {
183
203
  highlightId: string;
@@ -193,7 +213,6 @@ export declare class Collection extends HeyApiClient {
193
213
  paymentRecipient: string;
194
214
  accessMode?: SaleAccessMode;
195
215
  gateId?: string | null;
196
- gasSponsored?: boolean;
197
216
  mechanicId?: string | null;
198
217
  typeConfig?: unknown | null;
199
218
  collectorMessage?: string | null;
@@ -202,7 +221,7 @@ export declare class Collection extends HeyApiClient {
202
221
  /**
203
222
  * Delete a sale
204
223
  *
205
- * Delete a draft sale from a collection. Live sales cannot be deleted — use update to pause or set an end date instead.
224
+ * Delete a draft sale. A live sale cannot be deleted; pause it or set an end date.
206
225
  */
207
226
  deleteSale<ThrowOnError extends boolean = false>(parameters: {
208
227
  highlightId: string;
@@ -211,7 +230,7 @@ export declare class Collection extends HeyApiClient {
211
230
  /**
212
231
  * Update a sale
213
232
  *
214
- * Update an existing sale. Draft sales can be updated freely. Live public sales return a contract execution for on-chain updates when on-chain fields change.
233
+ * Update a sale. Draft and gated sales update off-chain. Supported changes to a live public sale return an on-chain vector-update transaction.
215
234
  */
216
235
  updateSale<ThrowOnError extends boolean = false>(parameters: {
217
236
  highlightId: string;
@@ -232,7 +251,7 @@ export declare class Collection extends HeyApiClient {
232
251
  /**
233
252
  * Claim collection sale
234
253
  *
235
- * Build a claim transaction configuration for a collector sale action.
254
+ * Build a collector's mint transaction for a fixed-price, Dutch, or ranked sale.
236
255
  */
237
256
  claimSale<ThrowOnError extends boolean = false>(parameters: {
238
257
  highlightId: string;
@@ -243,7 +262,7 @@ export declare class Collection extends HeyApiClient {
243
262
  /**
244
263
  * Bid on an auction sale
245
264
  *
246
- * Build a bid transaction configuration for an auction sale. For ranked auctions, places or updates an on-chain bid. For English auctions, returns an executor-signed bid claim plus the `AuctionManager.bid` call (with `value` = the bid amount); the optional `preferredNftRecipient` sets where the NFT is delivered if this bidder wins.
265
+ * Build a ranked- or English-auction bid transaction. For an English auction, `preferredNftRecipient` sets the wallet that receives the NFT if the bid wins.
247
266
  */
248
267
  bidSale<ThrowOnError extends boolean = false>(parameters: {
249
268
  highlightId: string;
@@ -255,7 +274,7 @@ export declare class Collection extends HeyApiClient {
255
274
  /**
256
275
  * Reclaim a non-winning ranked-auction bid
257
276
  *
258
- * Build a transaction to reclaim the funds locked in a non-winning ranked-auction bid after the auction has ended.
277
+ * Build a transaction that reclaims a non-winning ranked-auction bid after the auction ends.
259
278
  */
260
279
  reclaimBid<ThrowOnError extends boolean = false>(parameters: {
261
280
  highlightId: string;
@@ -265,7 +284,7 @@ export declare class Collection extends HeyApiClient {
265
284
  /**
266
285
  * Withdraw ranked-auction earnings
267
286
  *
268
- * Build a transaction to withdraw a ranked auction's cumulative earnings to the payment recipient after the auction has ended. Native-currency auctions only.
287
+ * Build a transaction that sends a completed ranked auction's native-currency earnings to its payment recipient.
269
288
  */
270
289
  claimAuctionEarnings<ThrowOnError extends boolean = false>(parameters: {
271
290
  highlightId: string;
@@ -274,7 +293,7 @@ export declare class Collection extends HeyApiClient {
274
293
  /**
275
294
  * Get ranked-auction live standings
276
295
  *
277
- * Public read-model for a ranked auction: the current clearing price and each bid's winning/losing status (provisional while live, frozen once settled). Includes the authenticated viewer's winning-bid count and tokens left to claim when a bearer token is supplied.
296
+ * 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.
278
297
  */
279
298
  rankedAuctionStandings<ThrowOnError extends boolean = false>(parameters: {
280
299
  highlightId: string;
@@ -283,7 +302,7 @@ export declare class Collection extends HeyApiClient {
283
302
  /**
284
303
  * Fulfill (settle) an English auction
285
304
  *
286
- * Build the permissionless `AuctionManager.fulfillAuction` transaction. After the auction's end time anyone may settle it: the contract delivers the escrowed NFT to the winner's preferred recipient and splits the proceeds (95% recipient / 5% platform).
305
+ * 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.
287
306
  */
288
307
  fulfillEnglishAuction<ThrowOnError extends boolean = false>(parameters: {
289
308
  highlightId: string;
@@ -292,7 +311,7 @@ export declare class Collection extends HeyApiClient {
292
311
  /**
293
312
  * Cancel an English auction
294
313
  *
295
- * Build the `AuctionManager.cancelAuctionOnChain` transaction. The contract enforces owner-only and that no reserve-meeting bid has landed; any escrowed NFT is returned to the owner. Creator only.
314
+ * Build the creator-only `AuctionManager.cancelAuctionOnChain` transaction. Cancellation fails after a bid meets the reserve. The contract returns any escrowed NFT to the owner.
296
315
  */
297
316
  cancelEnglishAuction<ThrowOnError extends boolean = false>(parameters: {
298
317
  highlightId: string;
@@ -301,7 +320,7 @@ export declare class Collection extends HeyApiClient {
301
320
  /**
302
321
  * Get English auction standings
303
322
  *
304
- * Public read-model for an English auction: lifecycle state, reserve, current highest bid/bidder, end time, escrowed token, and creator earnings — served from the chain-reconciled projection. Includes whether the authenticated viewer is the current highest bidder when a bearer token is supplied.
323
+ * 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.
305
324
  */
306
325
  englishAuctionStanding<ThrowOnError extends boolean = false>(parameters: {
307
326
  highlightId: string;
@@ -310,12 +329,30 @@ export declare class Collection extends HeyApiClient {
310
329
  /**
311
330
  * Get English auction bid history
312
331
  *
313
- * Public read-model: the English auction's bid history (newest first), sourced from the indexer's `Bid`-event ledger. Amounts are raw on-chain base units (wei) in the sale's currency.
332
+ * List an English auction's indexed bids from newest to oldest. Amounts use the currency's raw on-chain base unit.
314
333
  */
315
334
  englishAuctionBids<ThrowOnError extends boolean = false>(parameters: {
316
335
  highlightId: string;
317
336
  saleId: string;
318
337
  }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<CollectionEnglishAuctionBidsResponses, CollectionEnglishAuctionBidsErrors, ThrowOnError, "fields">;
338
+ /**
339
+ * Get Dutch auction standing
340
+ *
341
+ * Get a Dutch auction's descending price ladder, its clock, and its supply/escrow state. An authenticated response also includes the caller's purchase position and any rebate owed. Amounts use the currency's raw on-chain base unit.
342
+ */
343
+ dutchAuctionStanding<ThrowOnError extends boolean = false>(parameters: {
344
+ highlightId: string;
345
+ saleId: string;
346
+ }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<CollectionDutchAuctionStandingResponses, CollectionDutchAuctionStandingErrors, ThrowOnError, "fields">;
347
+ /**
348
+ * Claim a Dutch auction rebate
349
+ *
350
+ * Build a transaction that refunds the caller the difference between what they paid and the auction's final clearing price. Only available once the auction has reached its resting price or sold out.
351
+ */
352
+ claimDutchRebate<ThrowOnError extends boolean = false>(parameters: {
353
+ highlightId: string;
354
+ saleId: string;
355
+ }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<CollectionClaimDutchRebateResponses, CollectionClaimDutchRebateErrors, ThrowOnError, "fields">;
319
356
  /**
320
357
  * Initiate collection deployment
321
358
  *
@@ -335,7 +372,7 @@ export declare class Collection extends HeyApiClient {
335
372
  /**
336
373
  * Cancel a deployment
337
374
  *
338
- * Cancel a deployment that has not yet completed. Terminates the running workflow, deletes the deployment row, and rolls the collection back to Draft. On contracts shared with other collections the contract is left unchanged; otherwise it is reset to Draft. After cancelling, the collection can be re-deployed from scratch.
375
+ * 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.
339
376
  */
340
377
  deployCancel<ThrowOnError extends boolean = false>(parameters: {
341
378
  highlightId: string;
@@ -360,7 +397,7 @@ export declare class Token extends HeyApiClient {
360
397
  /**
361
398
  * List token attribute facets
362
399
  *
363
- * Get the trait/value facets with token counts for a collection — the data a filter sidebar renders. Available for public collections without authentication.
400
+ * List trait values and token counts for collection filters. Public collections do not require authentication.
364
401
  */
365
402
  attributeFacets<ThrowOnError extends boolean = false>(parameters: {
366
403
  highlightId: string;
@@ -383,6 +420,14 @@ export declare class Token extends HeyApiClient {
383
420
  highlightId: string;
384
421
  tokenId: string;
385
422
  }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<TokenListOwnersResponses, TokenListOwnersErrors, ThrowOnError, "fields">;
423
+ /**
424
+ * Re-drive stuck token reveals
425
+ *
426
+ * Reschedule failed and stale pending token reveals. Minted tokens restart from their original mint transaction. Imported tokens without transfer history rerun metadata indexing only.
427
+ */
428
+ redriveReveals<ThrowOnError extends boolean = false>(parameters: {
429
+ highlightId: string;
430
+ }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<TokenRedriveRevealsResponses, TokenRedriveRevealsErrors, ThrowOnError, "fields">;
386
431
  }
387
432
  export declare class Config extends HeyApiClient {
388
433
  /**
@@ -391,6 +436,12 @@ export declare class Config extends HeyApiClient {
391
436
  * Get the list of supported chains and their configuration.
392
437
  */
393
438
  chains<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client").RequestResult<ConfigChainsResponses, unknown, ThrowOnError, "fields">;
439
+ /**
440
+ * Get media delivery hosts
441
+ *
442
+ * Public hosts a client uses to build media URLs from a storage location's provider and reference.
443
+ */
444
+ mediaHosts<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client").RequestResult<ConfigMediaHostsResponses, unknown, ThrowOnError, "fields">;
394
445
  /**
395
446
  * Get system contract
396
447
  *
@@ -424,7 +475,7 @@ export declare class Gate extends HeyApiClient {
424
475
  /**
425
476
  * List gates
426
477
  *
427
- * List all gates for the authenticated user.
478
+ * List gates owned by the authenticated account.
428
479
  */
429
480
  list<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client").RequestResult<GateListResponses, GateListErrors, ThrowOnError, "fields">;
430
481
  /**
@@ -551,7 +602,7 @@ export declare class Gate extends HeyApiClient {
551
602
  /**
552
603
  * Preview a collection
553
604
  *
554
- * Resolve an NFT contract for the gate builder — a Highlight collection if we host it, otherwise external NFT data.
605
+ * Resolve an NFT contract for a gate builder. Returns a Highlight collection when available, otherwise external NFT data.
555
606
  */
556
607
  previewCollection<ThrowOnError extends boolean = false>(parameters: {
557
608
  chainId: number;
@@ -613,7 +664,7 @@ export declare class Mechanic extends HeyApiClient {
613
664
  */
614
665
  list<ThrowOnError extends boolean = false>(parameters?: {
615
666
  builtIn?: boolean | string;
616
- type?: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "GASLESS" | "CUSTOM";
667
+ type?: "SEED_BASED_MINT" | "DISCRETE_DUTCH_AUCTION" | "RANKED_AUCTION" | "CUSTOM";
617
668
  }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<MechanicListResponses, unknown, ThrowOnError, "fields">;
618
669
  /**
619
670
  * Create mechanic
@@ -659,7 +710,7 @@ export declare class Mechanic extends HeyApiClient {
659
710
  /**
660
711
  * Add mechanic deployment
661
712
  *
662
- * Register a mechanic contract deployment on a specific chain. Upserts if a deployment already exists for the chain.
713
+ * Register a mechanic's contract address on a chain. Replaces the address if that chain already has one.
663
714
  */
664
715
  addDeployment<ThrowOnError extends boolean = false>(parameters: {
665
716
  mechanicId: string;
@@ -669,37 +720,17 @@ export declare class Mechanic extends HeyApiClient {
669
720
  }
670
721
  export declare class Media extends HeyApiClient {
671
722
  /**
672
- * Create media upload session
673
- *
674
- * Create a media asset and return the worker upload URL the client should PUT bytes to. Call /:mediaId/process once the PUT completes.
675
- */
676
- createUploadSession<ThrowOnError extends boolean = false>(parameters: {
677
- kind: MediaKind;
678
- scope?: MediaScope;
679
- fileName: string;
680
- mimeType: string;
681
- fileSize: number;
682
- }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<MediaCreateUploadSessionResponses, MediaCreateUploadSessionErrors, ThrowOnError, "fields">;
683
- /**
684
- * Upload media bytes
685
- *
686
- * Stream the file body to the worker, which writes it to storage and immediately drives the asset through processing. File assets come back Ready; Directory assets come back Processing (zip extraction running). Call /:mediaId/process to retry a Failed Directory.
687
- */
688
- upload<ThrowOnError extends boolean = false>(parameters: {
689
- mediaId: string;
690
- }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<MediaUploadResponses, MediaUploadErrors, ThrowOnError, "fields">;
691
- /**
692
- * Process a media asset
723
+ * Finalize a direct media upload
693
724
  *
694
- * Drive the media asset toward Ready. Call after PUTting bytes to /:mediaId/upload to finalize the upload (File assets become Ready; Directory assets trigger zip extraction). Idempotent — assets that are already Ready or currently Processing are returned as-is. Failed Directory assets re-trigger extraction.
725
+ * Verify the exact object, size, content type, and R2 SHA-256 checksum before exposing it or starting directory extraction. Duplicate calls are idempotent.
695
726
  */
696
- process<ThrowOnError extends boolean = false>(parameters: {
727
+ finalizeUpload<ThrowOnError extends boolean = false>(parameters: {
697
728
  mediaId: string;
698
- }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<MediaProcessResponses, MediaProcessErrors, ThrowOnError, "fields">;
729
+ }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<MediaFinalizeUploadResponses, MediaFinalizeUploadErrors, ThrowOnError, "fields">;
699
730
  /**
700
- * List children of a Directory media asset
731
+ * List directory files
701
732
  *
702
- * Returns a paginated list of File children (e.g. per-token metadata or extracted archive files).
733
+ * List the extracted files in a directory with cursor pagination.
703
734
  */
704
735
  listChildren<ThrowOnError extends boolean = false>(parameters: {
705
736
  mediaId: string;
@@ -709,7 +740,7 @@ export declare class Media extends HeyApiClient {
709
740
  /**
710
741
  * Delete a media asset
711
742
  *
712
- * Delete the media asset and its R2 objects. Arweave archive locations remain on-chain (immutable) but are no longer referenced. Fails with 409 if still referenced by a collection contract or generative collection code.
743
+ * Delete a media record and its R2 objects. Referenced media returns 409. Immutable Arweave archives remain available.
713
744
  */
714
745
  delete<ThrowOnError extends boolean = false>(parameters: {
715
746
  mediaId: string;
@@ -725,15 +756,15 @@ export declare class Media extends HeyApiClient {
725
756
  /**
726
757
  * Publish media to archive
727
758
  *
728
- * Mirror the media asset to its immutable archive provider (Arweave). File media publishes the single blob; Directory media publishes a manifest of all children. Idempotent — returns early if already archived.
759
+ * Archive media to Arweave. Files publish one blob; directories publish their children and a manifest. The operation is idempotent.
729
760
  */
730
761
  publish<ThrowOnError extends boolean = false>(parameters: {
731
762
  mediaId: string;
732
763
  }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<MediaPublishResponses, MediaPublishErrors, ThrowOnError, "fields">;
733
764
  /**
734
- * Get a child File Entity by path
765
+ * Get a child file by path
735
766
  *
736
- * Returns the child File's full Entity (with locations and status). Use a location's `url` to fetch bytes directly from the storage provider.
767
+ * Get an extracted file by path, including its status and storage locations.
737
768
  */
738
769
  getChild<ThrowOnError extends boolean = false>(parameters: {
739
770
  mediaId: string;
@@ -742,9 +773,9 @@ export declare class Media extends HeyApiClient {
742
773
  }
743
774
  export declare class Tx extends HeyApiClient {
744
775
  /**
745
- * Get transaction finalization status
776
+ * Get transaction status
746
777
  *
747
- * Returns the current finalization status for a transaction: the set of domain milestones (e.g. collection going live, sale going live) it must complete, and whether each is done. Overall is `Ready` only when every expected milestone is done. Use the `/ws` variant for live push updates instead of polling.
778
+ * 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.
748
779
  */
749
780
  status<ThrowOnError extends boolean = false>(parameters: {
750
781
  chainId: number;
@@ -753,7 +784,7 @@ export declare class Tx extends HeyApiClient {
753
784
  /**
754
785
  * Submit a transaction for tracking
755
786
  *
756
- * Hand a broadcast transaction hash to the backend so it is processed end-to-end (collection/sale/bid/mint effects) and its finalization milestones become available. Returns the current status snapshot; subscribe to the `/ws` variant to await finalization.
787
+ * Submit a broadcast transaction hash for domain processing and milestone tracking. Returns the current snapshot; use the `/ws` route for live updates.
757
788
  */
758
789
  submit<ThrowOnError extends boolean = false>(parameters: {
759
790
  chainId: number;
@@ -764,15 +795,27 @@ export declare class Siwe extends HeyApiClient {
764
795
  /**
765
796
  * Issue a SIWE nonce
766
797
  *
767
- * Issues a single-use, short-lived nonce for use as the `nonce` field of a SIWE (EIP-4361) message.
798
+ * Issue a single-use, short-lived nonce for the `nonce` field of a SIWE (EIP-4361) message.
768
799
  */
769
800
  nonce<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client").RequestResult<UserSiweNonceResponses, UserSiweNonceErrors, ThrowOnError, "fields">;
770
801
  }
771
802
  export declare class User extends HeyApiClient {
772
803
  /**
773
- * Sign in user
804
+ * Create a user media upload session
805
+ *
806
+ * Start an upload for one of the user media purposes and return an upload URL with the required request headers.
807
+ */
808
+ createMediaUploadSession<ThrowOnError extends boolean = false>(parameters: {
809
+ purpose: MediaPurpose;
810
+ fileName: string;
811
+ mimeType: string;
812
+ fileSize: number;
813
+ contentHash: MediaContentHash;
814
+ }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<UserCreateMediaUploadSessionResponses, UserCreateMediaUploadSessionErrors, ThrowOnError, "fields">;
815
+ /**
816
+ * Sign in
774
817
  *
775
- * Sign in with a provider credential (Privy id_token or SIWE message + signature) and receive access/refresh tokens plus user.
818
+ * Exchange a Privy ID token or signed SIWE message for Highlight access and refresh tokens.
776
819
  */
777
820
  signin<ThrowOnError extends boolean = false>(parameters: {
778
821
  body: {
@@ -787,6 +830,47 @@ export declare class User extends HeyApiClient {
787
830
  private _siwe?;
788
831
  get siwe(): Siwe;
789
832
  }
833
+ export declare class Profile extends HeyApiClient {
834
+ /**
835
+ * Get authenticated profile
836
+ *
837
+ * Get the private profile for the authenticated account, including its email.
838
+ */
839
+ get<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client").RequestResult<ProfileGetResponses, ProfileGetErrors, ThrowOnError, "fields">;
840
+ /**
841
+ * Update authenticated profile
842
+ *
843
+ * Update private profile fields. Avatar media must be an owned, ready User-namespace image file.
844
+ */
845
+ update<ThrowOnError extends boolean = false>(parameters?: {
846
+ displayName?: string | null;
847
+ bio?: string | null;
848
+ website?: string | null;
849
+ avatarMediaId?: string | null;
850
+ }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<ProfileUpdateResponses, ProfileUpdateErrors, ThrowOnError, "fields">;
851
+ /**
852
+ * Get public profile
853
+ *
854
+ * Get a wallet's public profile. Valid wallet addresses without a registered account return an address-only fallback profile.
855
+ */
856
+ public<ThrowOnError extends boolean = false>(parameters: {
857
+ walletAddress: string;
858
+ }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<ProfilePublicResponses, ProfilePublicErrors, ThrowOnError, "fields">;
859
+ /**
860
+ * List public wallet tokens
861
+ *
862
+ * Get a wallet's token holdings across live collections. This is available for every valid EVM address, including addresses without a registered account.
863
+ */
864
+ tokens<ThrowOnError extends boolean = false>(parameters: {
865
+ walletAddress: string;
866
+ page?: number;
867
+ limit?: number;
868
+ sort?: "tokenId" | "name" | "mintedAt";
869
+ order?: "asc" | "desc";
870
+ collectionId?: string;
871
+ search?: string;
872
+ }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<ProfileTokensResponses, ProfileTokensErrors, ThrowOnError, "fields">;
873
+ }
790
874
  export declare class ApiKey extends HeyApiClient {
791
875
  /**
792
876
  * List API keys
@@ -826,16 +910,31 @@ export declare class HighlightClient extends HeyApiClient {
826
910
  client?: Client;
827
911
  key?: string;
828
912
  });
913
+ /**
914
+ * Activate a chain indexer
915
+ *
916
+ * Start or wake indexing for an enabled chain. Administrative use only.
917
+ */
829
918
  postIndexerChainsByChainIdActivate<ThrowOnError extends boolean = false>(parameters: {
830
919
  chainId: number;
831
- }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<PostIndexerChainsByChainIdActivateResponses, unknown, ThrowOnError, "fields">;
920
+ }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<PostIndexerChainsByChainIdActivateResponses, PostIndexerChainsByChainIdActivateErrors, ThrowOnError, "fields">;
921
+ /**
922
+ * Reset a chain indexer
923
+ *
924
+ * Move a chain's indexing cursor to a block so later polls reprocess from that point. Administrative use only.
925
+ */
832
926
  postIndexerChainsByChainIdReset<ThrowOnError extends boolean = false>(parameters: {
833
927
  chainId: number;
834
928
  blockNumber: number;
835
- }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<PostIndexerChainsByChainIdResetResponses, unknown, ThrowOnError, "fields">;
929
+ }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<PostIndexerChainsByChainIdResetResponses, PostIndexerChainsByChainIdResetErrors, ThrowOnError, "fields">;
930
+ /**
931
+ * Poll a chain indexer
932
+ *
933
+ * Run one indexing cycle for an enabled chain. Administrative use only.
934
+ */
836
935
  postIndexerChainsByChainIdPoll<ThrowOnError extends boolean = false>(parameters: {
837
936
  chainId: number;
838
- }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<PostIndexerChainsByChainIdPollResponses, unknown, ThrowOnError, "fields">;
937
+ }, options?: Options<never, ThrowOnError>): import("./client").RequestResult<PostIndexerChainsByChainIdPollResponses, PostIndexerChainsByChainIdPollErrors, ThrowOnError, "fields">;
839
938
  private _collection?;
840
939
  get collection(): Collection;
841
940
  private _token?;
@@ -854,6 +953,8 @@ export declare class HighlightClient extends HeyApiClient {
854
953
  get tx(): Tx;
855
954
  private _user?;
856
955
  get user(): User;
956
+ private _profile?;
957
+ get profile(): Profile;
857
958
  private _apiKey?;
858
959
  get apiKey(): ApiKey;
859
960
  private _health?;