scavio 0.26.1 → 0.26.3

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/README.md CHANGED
@@ -294,7 +294,7 @@ SERP (knowledge graph, AI overview, People Also Ask) use `google.search`.
294
294
  Send the prompt a buyer would ask and get the answer the assistant gives: the
295
295
  full Markdown answer, the pages it cites, the web searches it ran (ChatGPT) and
296
296
  the products it recommended. Both return the same shape under `data`, so one
297
- parser tracks which brands each assistant recommends. ChatGPT costs 1 credit and
297
+ parser tracks which brands each assistant recommends. ChatGPT costs 2 credits and
298
298
  Gemini 5 credits per answered prompt; a failed prompt is not charged. Answers take 10-40 seconds, so both
299
299
  methods raise the request timeout to 120s when the client's is shorter.
300
300
 
@@ -534,7 +534,9 @@ await client.mercadolibre.bestSellers({ country: "mx", category_id: "MLM1055" })
534
534
  A query reaches about 2,000 results (42 pages of 48), so slice by price range,
535
535
  condition or seller to go further. Units sold are lower bounds
536
536
  (`sold_quantity_min`, e.g. "+1000 vendidos"), not exact counts, and sort is
537
- relevance or price only. Mercado Libre may narrow a query to a category, brand
537
+ relevance or price only. Search rows carry `brand`, `rating` and `review_count`
538
+ for organic listings; most sponsored rows return `review_count: null`.
539
+ Mercado Libre may narrow a query to a category, brand
538
540
  or line on its own, and Brazil and Argentina may auto-apply a "new" condition;
539
541
  `auto_applied_filters` lists what it applied. `product` returns only the
540
542
  buy-box seller. Reviews translated into the site's language keep
package/dist/index.cjs CHANGED
@@ -235,7 +235,7 @@ function parseRetryAfter(header) {
235
235
  var BASE_URL = "https://api.scavio.dev";
236
236
  var DEFAULT_TIMEOUT = 3e4;
237
237
  var DEFAULT_MAX_RETRIES = 2;
238
- var SDK_VERSION = true ? "0.26.1" : "0.0.0";
238
+ var SDK_VERSION = true ? "0.26.3" : "0.0.0";
239
239
  var USER_AGENT = `scavio-js/${SDK_VERSION}`;
240
240
  function isServerRuntime() {
241
241
  const g = globalThis;
@@ -2623,7 +2623,7 @@ var CostcoNamespace = class {
2623
2623
  * `warehouse_id` to add that warehouse's in-store price and stock to every
2624
2624
  * result.
2625
2625
  *
2626
- * Costs 1 credit.
2626
+ * Costs 2 credits for the US, 1 elsewhere.
2627
2627
  */
2628
2628
  async search(options) {
2629
2629
  return this.client._post("/api/v1/costco/search", options);
@@ -2632,7 +2632,7 @@ var CostcoNamespace = class {
2632
2632
  * Products in a Costco category, with the same sort, filters and
2633
2633
  * per-warehouse pricing as search().
2634
2634
  *
2635
- * Costs 1 credit.
2635
+ * Costs 2 credits for the US, 1 for Canada.
2636
2636
  */
2637
2637
  async category(options) {
2638
2638
  return this.client._post("/api/v1/costco/category", options);
@@ -2719,7 +2719,7 @@ var CostcoNamespace = class {
2719
2719
  * favorites, online-only and everything on sale, with the same filters and
2720
2720
  * optional per-warehouse pricing as search().
2721
2721
  *
2722
- * Costs 1 credit.
2722
+ * Costs 2 credits for the US, 1 for Canada.
2723
2723
  */
2724
2724
  async deals(options) {
2725
2725
  return this.client._post("/api/v1/costco/deals", options);
@@ -2731,7 +2731,7 @@ var CostcoNamespace = class {
2731
2731
  * buys on request. The codes are the member-community decode; Costco does
2732
2732
  * not publish them. Only items Costco lists online are covered.
2733
2733
  *
2734
- * Costs 1 credit.
2734
+ * Costs 2 credits for the US (any `pages` value), 1 for Canada.
2735
2735
  */
2736
2736
  async clearance(options) {
2737
2737
  return this.client._post("/api/v1/costco/clearance", options);
@@ -2831,7 +2831,7 @@ var ChatgptNamespace = class {
2831
2831
  * answer, every page it cites (title, publisher, date), the web searches it
2832
2832
  * ran and the products it recommended. Built for AI visibility monitoring.
2833
2833
  *
2834
- * Costs 1 credit per answered prompt; failed prompts are not charged.
2834
+ * Costs 2 credits per answered prompt; failed prompts are not charged.
2835
2835
  */
2836
2836
  async prompt(options) {
2837
2837
  return this.client._post("/api/v1/chatgpt/prompt", options, void 0, AI_PROMPT_TIMEOUT);