@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.cjs CHANGED
@@ -1148,14 +1148,16 @@ var ApiClient = class {
1148
1148
  return this.post("/v1/intents/create-collection", params);
1149
1149
  }
1150
1150
  /**
1151
- * Create a counter-offer intent. Requires seller Clerk JWT for auth.
1152
- * The seller proposes a new price in response to a buyer's active bid.
1151
+ * Create a counter-offer intent. The seller proposes a new price in response
1152
+ * to a buyer's active bid. clerkToken is optional — the endpoint authenticates
1153
+ * via the tenant API key; pass a Clerk JWT only if your backend requires it.
1153
1154
  */
1154
1155
  createCounterOfferIntent(params, clerkToken) {
1156
+ const extraHeaders = clerkToken ? { "Authorization": `Bearer ${clerkToken}` } : {};
1155
1157
  return this.request("/v1/intents/counter-offer", {
1156
1158
  method: "POST",
1157
1159
  body: JSON.stringify(params),
1158
- headers: { "Authorization": `Bearer ${clerkToken}` }
1160
+ headers: extraHeaders
1159
1161
  });
1160
1162
  }
1161
1163
  /**