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.d.cts
CHANGED
|
@@ -19617,6 +19617,41 @@ declare class ChatGPTClient {
|
|
|
19617
19617
|
measureABrandSVisibilityInAChatgptAnswerPost(body?: unknown, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
19618
19618
|
}
|
|
19619
19619
|
|
|
19620
|
+
/**
|
|
19621
|
+
* Copilot API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
19622
|
+
*/
|
|
19623
|
+
|
|
19624
|
+
/**
|
|
19625
|
+
* Query parameters for the Copilot GET methods.
|
|
19626
|
+
*
|
|
19627
|
+
* `country` is best-effort: when no exit there answers, the last retry may
|
|
19628
|
+
* answer from the US and the response `country` says so. Set
|
|
19629
|
+
* `strictCountry: true` to answer only from an exit in `country` (required
|
|
19630
|
+
* with it); when none answers in time the call fails with HTTP 503
|
|
19631
|
+
* `country_unavailable` and is not billed. `market` (e.g. `ja-JP`) defaults
|
|
19632
|
+
* to the market of `country`. On the POST forms, put `strict_country: true`
|
|
19633
|
+
* in the body.
|
|
19634
|
+
*/
|
|
19635
|
+
type CopilotParams = Record<string, string | number | boolean | undefined> & {
|
|
19636
|
+
/** Answer only from an exit in `country`, never another one. Sent only when true. */
|
|
19637
|
+
strictCountry?: boolean;
|
|
19638
|
+
};
|
|
19639
|
+
/** Client for all Copilot API operations. (Generated from the OpenAPI spec.) */
|
|
19640
|
+
declare class CopilotClient {
|
|
19641
|
+
private readonly client;
|
|
19642
|
+
constructor(client: BaseClient);
|
|
19643
|
+
/** Ask Copilot a question. Generated from the OpenAPI spec; returns the raw response object. */
|
|
19644
|
+
askCopilotAQuestion(params?: CopilotParams): Promise<Record<string, unknown>>;
|
|
19645
|
+
/** Ask Copilot a question (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
19646
|
+
askCopilotAQuestionPost(body?: unknown, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
19647
|
+
/** Measure a brand's visibility in a Copilot answer. Generated from the OpenAPI spec; returns the raw response object. */
|
|
19648
|
+
measureABrandSVisibilityInACopilotAnswer(params?: CopilotParams): Promise<Record<string, unknown>>;
|
|
19649
|
+
/** Measure a brand's visibility in a Copilot answer (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
19650
|
+
measureABrandSVisibilityInACopilotAnswerPost(body?: unknown, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
19651
|
+
/** List Copilot markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
19652
|
+
listCopilotMarkets(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
19653
|
+
}
|
|
19654
|
+
|
|
19620
19655
|
/**
|
|
19621
19656
|
* TypeScript types for the Gemini API.
|
|
19622
19657
|
*
|
|
@@ -20106,6 +20141,8 @@ declare class ScrapeBadger {
|
|
|
20106
20141
|
readonly linkedin: LinkedInClient;
|
|
20107
20142
|
/** ChatGPT scraper API client — ask, brand visibility, models (the real chatgpt.com, anonymous) */
|
|
20108
20143
|
readonly chatgpt: ChatGPTClient;
|
|
20144
|
+
/** Copilot scraper API client — ask, brand visibility, markets (Copilot Search in Bing, anonymous) */
|
|
20145
|
+
readonly copilot: CopilotClient;
|
|
20109
20146
|
/** Gemini scraper API client — ask, brand visibility (the real gemini.google.com, anonymous) */
|
|
20110
20147
|
readonly gemini: GeminiClient;
|
|
20111
20148
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -19617,6 +19617,41 @@ declare class ChatGPTClient {
|
|
|
19617
19617
|
measureABrandSVisibilityInAChatgptAnswerPost(body?: unknown, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
19618
19618
|
}
|
|
19619
19619
|
|
|
19620
|
+
/**
|
|
19621
|
+
* Copilot API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
19622
|
+
*/
|
|
19623
|
+
|
|
19624
|
+
/**
|
|
19625
|
+
* Query parameters for the Copilot GET methods.
|
|
19626
|
+
*
|
|
19627
|
+
* `country` is best-effort: when no exit there answers, the last retry may
|
|
19628
|
+
* answer from the US and the response `country` says so. Set
|
|
19629
|
+
* `strictCountry: true` to answer only from an exit in `country` (required
|
|
19630
|
+
* with it); when none answers in time the call fails with HTTP 503
|
|
19631
|
+
* `country_unavailable` and is not billed. `market` (e.g. `ja-JP`) defaults
|
|
19632
|
+
* to the market of `country`. On the POST forms, put `strict_country: true`
|
|
19633
|
+
* in the body.
|
|
19634
|
+
*/
|
|
19635
|
+
type CopilotParams = Record<string, string | number | boolean | undefined> & {
|
|
19636
|
+
/** Answer only from an exit in `country`, never another one. Sent only when true. */
|
|
19637
|
+
strictCountry?: boolean;
|
|
19638
|
+
};
|
|
19639
|
+
/** Client for all Copilot API operations. (Generated from the OpenAPI spec.) */
|
|
19640
|
+
declare class CopilotClient {
|
|
19641
|
+
private readonly client;
|
|
19642
|
+
constructor(client: BaseClient);
|
|
19643
|
+
/** Ask Copilot a question. Generated from the OpenAPI spec; returns the raw response object. */
|
|
19644
|
+
askCopilotAQuestion(params?: CopilotParams): Promise<Record<string, unknown>>;
|
|
19645
|
+
/** Ask Copilot a question (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
19646
|
+
askCopilotAQuestionPost(body?: unknown, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
19647
|
+
/** Measure a brand's visibility in a Copilot answer. Generated from the OpenAPI spec; returns the raw response object. */
|
|
19648
|
+
measureABrandSVisibilityInACopilotAnswer(params?: CopilotParams): Promise<Record<string, unknown>>;
|
|
19649
|
+
/** Measure a brand's visibility in a Copilot answer (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
19650
|
+
measureABrandSVisibilityInACopilotAnswerPost(body?: unknown, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
19651
|
+
/** List Copilot markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
19652
|
+
listCopilotMarkets(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
|
|
19653
|
+
}
|
|
19654
|
+
|
|
19620
19655
|
/**
|
|
19621
19656
|
* TypeScript types for the Gemini API.
|
|
19622
19657
|
*
|
|
@@ -20106,6 +20141,8 @@ declare class ScrapeBadger {
|
|
|
20106
20141
|
readonly linkedin: LinkedInClient;
|
|
20107
20142
|
/** ChatGPT scraper API client — ask, brand visibility, models (the real chatgpt.com, anonymous) */
|
|
20108
20143
|
readonly chatgpt: ChatGPTClient;
|
|
20144
|
+
/** Copilot scraper API client — ask, brand visibility, markets (Copilot Search in Bing, anonymous) */
|
|
20145
|
+
readonly copilot: CopilotClient;
|
|
20109
20146
|
/** Gemini scraper API client — ask, brand visibility (the real gemini.google.com, anonymous) */
|
|
20110
20147
|
readonly gemini: GeminiClient;
|
|
20111
20148
|
/**
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
9
9
|
var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
|
|
10
10
|
|
|
11
11
|
// src/internal/version.ts
|
|
12
|
-
var SDK_VERSION = "0.
|
|
12
|
+
var SDK_VERSION = "0.69.0";
|
|
13
13
|
|
|
14
14
|
// src/internal/exceptions.ts
|
|
15
15
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -10392,6 +10392,38 @@ var ChatGPTClient = class {
|
|
|
10392
10392
|
// --- END generated by sdk/codegen/facade ---
|
|
10393
10393
|
};
|
|
10394
10394
|
|
|
10395
|
+
// src/copilot/client.ts
|
|
10396
|
+
function toQuery2(params) {
|
|
10397
|
+
const { strictCountry, ...rest } = params;
|
|
10398
|
+
return strictCountry ? { ...rest, strict_country: true } : rest;
|
|
10399
|
+
}
|
|
10400
|
+
var CopilotClient = class {
|
|
10401
|
+
client;
|
|
10402
|
+
constructor(client) {
|
|
10403
|
+
this.client = client;
|
|
10404
|
+
}
|
|
10405
|
+
/** Ask Copilot a question. Generated from the OpenAPI spec; returns the raw response object. */
|
|
10406
|
+
async askCopilotAQuestion(params = {}) {
|
|
10407
|
+
return this.client.request("/v1/copilot/ask", { params: toQuery2(params) });
|
|
10408
|
+
}
|
|
10409
|
+
/** Ask Copilot a question (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
10410
|
+
async askCopilotAQuestionPost(body, params = {}) {
|
|
10411
|
+
return this.client.request("/v1/copilot/ask", { method: "POST", params, body });
|
|
10412
|
+
}
|
|
10413
|
+
/** Measure a brand's visibility in a Copilot answer. Generated from the OpenAPI spec; returns the raw response object. */
|
|
10414
|
+
async measureABrandSVisibilityInACopilotAnswer(params = {}) {
|
|
10415
|
+
return this.client.request("/v1/copilot/brand-visibility", { params: toQuery2(params) });
|
|
10416
|
+
}
|
|
10417
|
+
/** Measure a brand's visibility in a Copilot answer (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
10418
|
+
async measureABrandSVisibilityInACopilotAnswerPost(body, params = {}) {
|
|
10419
|
+
return this.client.request("/v1/copilot/brand-visibility", { method: "POST", params, body });
|
|
10420
|
+
}
|
|
10421
|
+
/** List Copilot markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
10422
|
+
async listCopilotMarkets(params = {}) {
|
|
10423
|
+
return this.client.request("/v1/copilot/markets", { params });
|
|
10424
|
+
}
|
|
10425
|
+
};
|
|
10426
|
+
|
|
10395
10427
|
// src/gemini/ask.ts
|
|
10396
10428
|
var AskClient2 = class {
|
|
10397
10429
|
client;
|
|
@@ -10612,6 +10644,8 @@ var ScrapeBadger = class {
|
|
|
10612
10644
|
linkedin;
|
|
10613
10645
|
/** ChatGPT scraper API client — ask, brand visibility, models (the real chatgpt.com, anonymous) */
|
|
10614
10646
|
chatgpt;
|
|
10647
|
+
/** Copilot scraper API client — ask, brand visibility, markets (Copilot Search in Bing, anonymous) */
|
|
10648
|
+
copilot;
|
|
10615
10649
|
/** Gemini scraper API client — ask, brand visibility (the real gemini.google.com, anonymous) */
|
|
10616
10650
|
gemini;
|
|
10617
10651
|
/**
|
|
@@ -10694,6 +10728,7 @@ var ScrapeBadger = class {
|
|
|
10694
10728
|
this.wallapop = new WallapopClient(this.baseClient);
|
|
10695
10729
|
this.linkedin = new LinkedInClient(this.baseClient);
|
|
10696
10730
|
this.chatgpt = new ChatGPTClient(this.baseClient);
|
|
10731
|
+
this.copilot = new CopilotClient(this.baseClient);
|
|
10697
10732
|
this.gemini = new GeminiClient(this.baseClient);
|
|
10698
10733
|
}
|
|
10699
10734
|
};
|