scrapebadger 0.68.0 → 0.69.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/dist/index.d.cts +37 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +36 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +36 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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.
|
|
6
|
+
var SDK_VERSION = "0.69.0";
|
|
7
7
|
|
|
8
8
|
// src/internal/exceptions.ts
|
|
9
9
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -10386,6 +10386,38 @@ var ChatGPTClient = class {
|
|
|
10386
10386
|
// --- END generated by sdk/codegen/facade ---
|
|
10387
10387
|
};
|
|
10388
10388
|
|
|
10389
|
+
// src/copilot/client.ts
|
|
10390
|
+
function toQuery2(params) {
|
|
10391
|
+
const { strictCountry, ...rest } = params;
|
|
10392
|
+
return strictCountry ? { ...rest, strict_country: true } : rest;
|
|
10393
|
+
}
|
|
10394
|
+
var CopilotClient = class {
|
|
10395
|
+
client;
|
|
10396
|
+
constructor(client) {
|
|
10397
|
+
this.client = client;
|
|
10398
|
+
}
|
|
10399
|
+
/** Ask Copilot a question. Generated from the OpenAPI spec; returns the raw response object. */
|
|
10400
|
+
async askCopilotAQuestion(params = {}) {
|
|
10401
|
+
return this.client.request("/v1/copilot/ask", { params: toQuery2(params) });
|
|
10402
|
+
}
|
|
10403
|
+
/** Ask Copilot a question (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
10404
|
+
async askCopilotAQuestionPost(body, params = {}) {
|
|
10405
|
+
return this.client.request("/v1/copilot/ask", { method: "POST", params, body });
|
|
10406
|
+
}
|
|
10407
|
+
/** Measure a brand's visibility in a Copilot answer. Generated from the OpenAPI spec; returns the raw response object. */
|
|
10408
|
+
async measureABrandSVisibilityInACopilotAnswer(params = {}) {
|
|
10409
|
+
return this.client.request("/v1/copilot/brand-visibility", { params: toQuery2(params) });
|
|
10410
|
+
}
|
|
10411
|
+
/** Measure a brand's visibility in a Copilot answer (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
10412
|
+
async measureABrandSVisibilityInACopilotAnswerPost(body, params = {}) {
|
|
10413
|
+
return this.client.request("/v1/copilot/brand-visibility", { method: "POST", params, body });
|
|
10414
|
+
}
|
|
10415
|
+
/** List Copilot markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
10416
|
+
async listCopilotMarkets(params = {}) {
|
|
10417
|
+
return this.client.request("/v1/copilot/markets", { params });
|
|
10418
|
+
}
|
|
10419
|
+
};
|
|
10420
|
+
|
|
10389
10421
|
// src/gemini/ask.ts
|
|
10390
10422
|
var AskClient2 = class {
|
|
10391
10423
|
client;
|
|
@@ -10606,6 +10638,8 @@ var ScrapeBadger = class {
|
|
|
10606
10638
|
linkedin;
|
|
10607
10639
|
/** ChatGPT scraper API client — ask, brand visibility, models (the real chatgpt.com, anonymous) */
|
|
10608
10640
|
chatgpt;
|
|
10641
|
+
/** Copilot scraper API client — ask, brand visibility, markets (Copilot Search in Bing, anonymous) */
|
|
10642
|
+
copilot;
|
|
10609
10643
|
/** Gemini scraper API client — ask, brand visibility (the real gemini.google.com, anonymous) */
|
|
10610
10644
|
gemini;
|
|
10611
10645
|
/**
|
|
@@ -10688,6 +10722,7 @@ var ScrapeBadger = class {
|
|
|
10688
10722
|
this.wallapop = new WallapopClient(this.baseClient);
|
|
10689
10723
|
this.linkedin = new LinkedInClient(this.baseClient);
|
|
10690
10724
|
this.chatgpt = new ChatGPTClient(this.baseClient);
|
|
10725
|
+
this.copilot = new CopilotClient(this.baseClient);
|
|
10691
10726
|
this.gemini = new GeminiClient(this.baseClient);
|
|
10692
10727
|
}
|
|
10693
10728
|
};
|