scrapebadger 0.68.0 → 0.69.1

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.mjs CHANGED
@@ -3,7 +3,7 @@ import { EventEmitter } from 'events';
3
3
  import WebSocket from 'ws';
4
4
 
5
5
  // src/internal/version.ts
6
- var SDK_VERSION = "0.67.0";
6
+ var SDK_VERSION = "0.69.1";
7
7
 
8
8
  // src/internal/exceptions.ts
9
9
  var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
@@ -6246,6 +6246,13 @@ var SearchClient8 = class {
6246
6246
  * Pass `query`, `seller` or both. `seller` alone pages through everything
6247
6247
  * that seller sold, e.g. `completed({ seller: "musicmagpie", domain: "co.uk" })`.
6248
6248
  *
6249
+ * Results are ordered by `ended_at` (when eBay last closed the listing out,
6250
+ * UTC), newest first. eBay applies no other time order to sold listings:
6251
+ * `best_match`, `ending_soonest` and `newly_listed` all return this one; the
6252
+ * two price sorts do reorder. One listing is one result, however many units
6253
+ * it sold. eBay's replicas disagree slightly, so a page walk can repeat or
6254
+ * miss a listing; de-duplicate on `item_id`.
6255
+ *
6249
6256
  * @param params - Search parameters including query, seller, filters, and pagination.
6250
6257
  * @returns Search results (with `sold: true`), facets, and pagination.
6251
6258
  */
@@ -10386,6 +10393,38 @@ var ChatGPTClient = class {
10386
10393
  // --- END generated by sdk/codegen/facade ---
10387
10394
  };
10388
10395
 
10396
+ // src/copilot/client.ts
10397
+ function toQuery2(params) {
10398
+ const { strictCountry, ...rest } = params;
10399
+ return strictCountry ? { ...rest, strict_country: true } : rest;
10400
+ }
10401
+ var CopilotClient = class {
10402
+ client;
10403
+ constructor(client) {
10404
+ this.client = client;
10405
+ }
10406
+ /** Ask Copilot a question. Generated from the OpenAPI spec; returns the raw response object. */
10407
+ async askCopilotAQuestion(params = {}) {
10408
+ return this.client.request("/v1/copilot/ask", { params: toQuery2(params) });
10409
+ }
10410
+ /** Ask Copilot a question (POST). Generated from the OpenAPI spec; returns the raw response object. */
10411
+ async askCopilotAQuestionPost(body, params = {}) {
10412
+ return this.client.request("/v1/copilot/ask", { method: "POST", params, body });
10413
+ }
10414
+ /** Measure a brand's visibility in a Copilot answer. Generated from the OpenAPI spec; returns the raw response object. */
10415
+ async measureABrandSVisibilityInACopilotAnswer(params = {}) {
10416
+ return this.client.request("/v1/copilot/brand-visibility", { params: toQuery2(params) });
10417
+ }
10418
+ /** Measure a brand's visibility in a Copilot answer (POST). Generated from the OpenAPI spec; returns the raw response object. */
10419
+ async measureABrandSVisibilityInACopilotAnswerPost(body, params = {}) {
10420
+ return this.client.request("/v1/copilot/brand-visibility", { method: "POST", params, body });
10421
+ }
10422
+ /** List Copilot markets. Generated from the OpenAPI spec; returns the raw response object. */
10423
+ async listCopilotMarkets(params = {}) {
10424
+ return this.client.request("/v1/copilot/markets", { params });
10425
+ }
10426
+ };
10427
+
10389
10428
  // src/gemini/ask.ts
10390
10429
  var AskClient2 = class {
10391
10430
  client;
@@ -10606,6 +10645,8 @@ var ScrapeBadger = class {
10606
10645
  linkedin;
10607
10646
  /** ChatGPT scraper API client — ask, brand visibility, models (the real chatgpt.com, anonymous) */
10608
10647
  chatgpt;
10648
+ /** Copilot scraper API client — ask, brand visibility, markets (Copilot Search in Bing, anonymous) */
10649
+ copilot;
10609
10650
  /** Gemini scraper API client — ask, brand visibility (the real gemini.google.com, anonymous) */
10610
10651
  gemini;
10611
10652
  /**
@@ -10688,6 +10729,7 @@ var ScrapeBadger = class {
10688
10729
  this.wallapop = new WallapopClient(this.baseClient);
10689
10730
  this.linkedin = new LinkedInClient(this.baseClient);
10690
10731
  this.chatgpt = new ChatGPTClient(this.baseClient);
10732
+ this.copilot = new CopilotClient(this.baseClient);
10691
10733
  this.gemini = new GeminiClient(this.baseClient);
10692
10734
  }
10693
10735
  };