@medialane/sdk 0.5.0 → 0.5.2

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/dist/index.d.cts CHANGED
@@ -597,6 +597,8 @@ interface ConfirmSelfRemixParams {
597
597
  originalTokenId: string;
598
598
  remixContract: string;
599
599
  remixTokenId: string;
600
+ /** On-chain transaction hash of the mint tx */
601
+ txHash?: string;
600
602
  licenseType: string;
601
603
  commercial: boolean;
602
604
  derivatives: boolean;
@@ -762,10 +764,11 @@ declare class ApiClient {
762
764
  createMintIntent(params: CreateMintIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
763
765
  createCollectionIntent(params: CreateCollectionIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
764
766
  /**
765
- * Create a counter-offer intent. Requires seller Clerk JWT for auth.
766
- * The seller proposes a new price in response to a buyer's active bid.
767
+ * Create a counter-offer intent. The seller proposes a new price in response
768
+ * to a buyer's active bid. clerkToken is optional — the endpoint authenticates
769
+ * via the tenant API key; pass a Clerk JWT only if your backend requires it.
767
770
  */
768
- createCounterOfferIntent(params: CreateCounterOfferIntentParams, clerkToken: string): Promise<ApiResponse<ApiIntentCreated>>;
771
+ createCounterOfferIntent(params: CreateCounterOfferIntentParams, clerkToken?: string): Promise<ApiResponse<ApiIntentCreated>>;
769
772
  /**
770
773
  * Fetch counter-offers. Pass `originalOrderHash` (buyer view) or
771
774
  * `sellerAddress` (seller view) — at least one is required.
package/dist/index.d.ts CHANGED
@@ -597,6 +597,8 @@ interface ConfirmSelfRemixParams {
597
597
  originalTokenId: string;
598
598
  remixContract: string;
599
599
  remixTokenId: string;
600
+ /** On-chain transaction hash of the mint tx */
601
+ txHash?: string;
600
602
  licenseType: string;
601
603
  commercial: boolean;
602
604
  derivatives: boolean;
@@ -762,10 +764,11 @@ declare class ApiClient {
762
764
  createMintIntent(params: CreateMintIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
763
765
  createCollectionIntent(params: CreateCollectionIntentParams): Promise<ApiResponse<ApiIntentCreated>>;
764
766
  /**
765
- * Create a counter-offer intent. Requires seller Clerk JWT for auth.
766
- * The seller proposes a new price in response to a buyer's active bid.
767
+ * Create a counter-offer intent. The seller proposes a new price in response
768
+ * to a buyer's active bid. clerkToken is optional — the endpoint authenticates
769
+ * via the tenant API key; pass a Clerk JWT only if your backend requires it.
767
770
  */
768
- createCounterOfferIntent(params: CreateCounterOfferIntentParams, clerkToken: string): Promise<ApiResponse<ApiIntentCreated>>;
771
+ createCounterOfferIntent(params: CreateCounterOfferIntentParams, clerkToken?: string): Promise<ApiResponse<ApiIntentCreated>>;
769
772
  /**
770
773
  * Fetch counter-offers. Pass `originalOrderHash` (buyer view) or
771
774
  * `sellerAddress` (seller view) — at least one is required.
package/dist/index.js CHANGED
@@ -1146,14 +1146,16 @@ var ApiClient = class {
1146
1146
  return this.post("/v1/intents/create-collection", params);
1147
1147
  }
1148
1148
  /**
1149
- * Create a counter-offer intent. Requires seller Clerk JWT for auth.
1150
- * The seller proposes a new price in response to a buyer's active bid.
1149
+ * Create a counter-offer intent. The seller proposes a new price in response
1150
+ * to a buyer's active bid. clerkToken is optional — the endpoint authenticates
1151
+ * via the tenant API key; pass a Clerk JWT only if your backend requires it.
1151
1152
  */
1152
1153
  createCounterOfferIntent(params, clerkToken) {
1154
+ const extraHeaders = clerkToken ? { "Authorization": `Bearer ${clerkToken}` } : {};
1153
1155
  return this.request("/v1/intents/counter-offer", {
1154
1156
  method: "POST",
1155
1157
  body: JSON.stringify(params),
1156
- headers: { "Authorization": `Bearer ${clerkToken}` }
1158
+ headers: extraHeaders
1157
1159
  });
1158
1160
  }
1159
1161
  /**