scrapebadger 0.42.0 → 0.43.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 +48 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -15891,6 +15891,15 @@ interface ChatGPTAskParams {
|
|
|
15891
15891
|
country?: string;
|
|
15892
15892
|
/** Whether ChatGPT should browse (default: "auto") */
|
|
15893
15893
|
web_search?: ChatGPTWebSearchMode;
|
|
15894
|
+
/**
|
|
15895
|
+
* Public http(s) URL of an image to attach. ChatGPT looks at the picture and
|
|
15896
|
+
* answers about it (JPEG/PNG/GIF/WEBP/BMP, up to 5 MB). An image ask takes
|
|
15897
|
+
* noticeably longer — allow 90-150s.
|
|
15898
|
+
*
|
|
15899
|
+
* ChatGPT will NOT generate an image: anonymous chatgpt.com gates that behind a
|
|
15900
|
+
* login.
|
|
15901
|
+
*/
|
|
15902
|
+
image_url?: string;
|
|
15894
15903
|
}
|
|
15895
15904
|
/** Parameters for the brand-visibility endpoint. */
|
|
15896
15905
|
interface ChatGPTBrandVisibilityParams {
|
|
@@ -15964,6 +15973,13 @@ interface ChatGPTSearchResult {
|
|
|
15964
15973
|
cited: boolean;
|
|
15965
15974
|
}
|
|
15966
15975
|
/** A ChatGPT answer with its sources. */
|
|
15976
|
+
/** An image the answer itself displayed. */
|
|
15977
|
+
interface MediaItem$1 {
|
|
15978
|
+
/** Image URL. */
|
|
15979
|
+
url: string;
|
|
15980
|
+
/** Alt text, when one was supplied. */
|
|
15981
|
+
title?: string | null;
|
|
15982
|
+
}
|
|
15967
15983
|
interface ChatGPTAskResponse {
|
|
15968
15984
|
/** The prompt that was sent */
|
|
15969
15985
|
prompt: string;
|
|
@@ -15977,6 +15993,11 @@ interface ChatGPTAskResponse {
|
|
|
15977
15993
|
search_results: ChatGPTSearchResult[];
|
|
15978
15994
|
/** Distinct domains across the sources */
|
|
15979
15995
|
source_domains: string[];
|
|
15996
|
+
/**
|
|
15997
|
+
* Images the answer displayed. Never a generated image — see
|
|
15998
|
+
* `image_url` on the params.
|
|
15999
|
+
*/
|
|
16000
|
+
images: MediaItem$1[];
|
|
15980
16001
|
/** Whether ChatGPT ACTUALLY browsed the web */
|
|
15981
16002
|
/** True when the render budget expired mid-answer; `answer` is partial. */
|
|
15982
16003
|
truncated: boolean;
|
|
@@ -16120,6 +16141,9 @@ declare class AskClient$1 {
|
|
|
16120
16141
|
* @param params.prompt - The prompt to send (max 4096 characters).
|
|
16121
16142
|
* @param params.country - ISO-3166 alpha-2 egress country (default: "US").
|
|
16122
16143
|
* @param params.web_search - "auto", "force", or "off" (default: "auto").
|
|
16144
|
+
* @param params.image_url - Public image URL to attach; ChatGPT answers about
|
|
16145
|
+
* the picture. It will NOT generate one — anonymous chatgpt.com requires a login
|
|
16146
|
+
* for that. Allow 90-150s for an image ask.
|
|
16123
16147
|
* @returns The answer, its citations, and the full retrieved search set.
|
|
16124
16148
|
*
|
|
16125
16149
|
* @example
|
|
@@ -16312,6 +16336,15 @@ interface GeminiAskParams {
|
|
|
16312
16336
|
country?: string;
|
|
16313
16337
|
/** Whether Gemini should ground with web search (default: "auto") */
|
|
16314
16338
|
web_search?: GeminiWebSearchMode;
|
|
16339
|
+
/**
|
|
16340
|
+
* Public http(s) URL of an image to attach. Gemini looks at the picture and
|
|
16341
|
+
* answers about it (JPEG/PNG/GIF/WEBP/BMP, up to 5 MB). An image ask takes
|
|
16342
|
+
* noticeably longer — allow 90-150s.
|
|
16343
|
+
*
|
|
16344
|
+
* Gemini will NOT generate an image: anonymous gemini.google.com gates that behind a
|
|
16345
|
+
* login.
|
|
16346
|
+
*/
|
|
16347
|
+
image_url?: string;
|
|
16315
16348
|
}
|
|
16316
16349
|
/** Parameters for the brand-visibility endpoint. */
|
|
16317
16350
|
interface GeminiBrandVisibilityParams {
|
|
@@ -16370,6 +16403,13 @@ interface GeminiSearchResult {
|
|
|
16370
16403
|
cited: boolean;
|
|
16371
16404
|
}
|
|
16372
16405
|
/** A Gemini answer with its sources. */
|
|
16406
|
+
/** An image the answer itself displayed. */
|
|
16407
|
+
interface MediaItem {
|
|
16408
|
+
/** Image URL. */
|
|
16409
|
+
url: string;
|
|
16410
|
+
/** Alt text, when one was supplied. */
|
|
16411
|
+
title?: string | null;
|
|
16412
|
+
}
|
|
16373
16413
|
interface GeminiAskResponse {
|
|
16374
16414
|
/** The prompt that was sent */
|
|
16375
16415
|
prompt: string;
|
|
@@ -16383,6 +16423,11 @@ interface GeminiAskResponse {
|
|
|
16383
16423
|
search_results: GeminiSearchResult[];
|
|
16384
16424
|
/** Distinct domains across the sources */
|
|
16385
16425
|
source_domains: string[];
|
|
16426
|
+
/**
|
|
16427
|
+
* Images the answer displayed. Never a generated image — see
|
|
16428
|
+
* `image_url` on the params.
|
|
16429
|
+
*/
|
|
16430
|
+
images: MediaItem[];
|
|
16386
16431
|
/** True when the render budget expired mid-answer; `answer` is partial. */
|
|
16387
16432
|
truncated: boolean;
|
|
16388
16433
|
/** Whether Gemini ACTUALLY grounded the answer with a web search */
|
|
@@ -16500,6 +16545,9 @@ declare class AskClient {
|
|
|
16500
16545
|
* @param params.prompt - The prompt to send (max 4096 characters).
|
|
16501
16546
|
* @param params.country - ISO-3166 alpha-2 egress country (default: "US").
|
|
16502
16547
|
* @param params.web_search - "auto", "force", or "off" (default: "auto").
|
|
16548
|
+
* @param params.image_url - Public image URL to attach; Gemini answers about
|
|
16549
|
+
* the picture. It will NOT generate one — anonymous gemini.google.com requires a login
|
|
16550
|
+
* for that. Allow 90-150s for an image ask.
|
|
16503
16551
|
* @returns The answer, its citations, and the full retrieved search set.
|
|
16504
16552
|
*
|
|
16505
16553
|
* @example
|
package/dist/index.d.ts
CHANGED
|
@@ -15891,6 +15891,15 @@ interface ChatGPTAskParams {
|
|
|
15891
15891
|
country?: string;
|
|
15892
15892
|
/** Whether ChatGPT should browse (default: "auto") */
|
|
15893
15893
|
web_search?: ChatGPTWebSearchMode;
|
|
15894
|
+
/**
|
|
15895
|
+
* Public http(s) URL of an image to attach. ChatGPT looks at the picture and
|
|
15896
|
+
* answers about it (JPEG/PNG/GIF/WEBP/BMP, up to 5 MB). An image ask takes
|
|
15897
|
+
* noticeably longer — allow 90-150s.
|
|
15898
|
+
*
|
|
15899
|
+
* ChatGPT will NOT generate an image: anonymous chatgpt.com gates that behind a
|
|
15900
|
+
* login.
|
|
15901
|
+
*/
|
|
15902
|
+
image_url?: string;
|
|
15894
15903
|
}
|
|
15895
15904
|
/** Parameters for the brand-visibility endpoint. */
|
|
15896
15905
|
interface ChatGPTBrandVisibilityParams {
|
|
@@ -15964,6 +15973,13 @@ interface ChatGPTSearchResult {
|
|
|
15964
15973
|
cited: boolean;
|
|
15965
15974
|
}
|
|
15966
15975
|
/** A ChatGPT answer with its sources. */
|
|
15976
|
+
/** An image the answer itself displayed. */
|
|
15977
|
+
interface MediaItem$1 {
|
|
15978
|
+
/** Image URL. */
|
|
15979
|
+
url: string;
|
|
15980
|
+
/** Alt text, when one was supplied. */
|
|
15981
|
+
title?: string | null;
|
|
15982
|
+
}
|
|
15967
15983
|
interface ChatGPTAskResponse {
|
|
15968
15984
|
/** The prompt that was sent */
|
|
15969
15985
|
prompt: string;
|
|
@@ -15977,6 +15993,11 @@ interface ChatGPTAskResponse {
|
|
|
15977
15993
|
search_results: ChatGPTSearchResult[];
|
|
15978
15994
|
/** Distinct domains across the sources */
|
|
15979
15995
|
source_domains: string[];
|
|
15996
|
+
/**
|
|
15997
|
+
* Images the answer displayed. Never a generated image — see
|
|
15998
|
+
* `image_url` on the params.
|
|
15999
|
+
*/
|
|
16000
|
+
images: MediaItem$1[];
|
|
15980
16001
|
/** Whether ChatGPT ACTUALLY browsed the web */
|
|
15981
16002
|
/** True when the render budget expired mid-answer; `answer` is partial. */
|
|
15982
16003
|
truncated: boolean;
|
|
@@ -16120,6 +16141,9 @@ declare class AskClient$1 {
|
|
|
16120
16141
|
* @param params.prompt - The prompt to send (max 4096 characters).
|
|
16121
16142
|
* @param params.country - ISO-3166 alpha-2 egress country (default: "US").
|
|
16122
16143
|
* @param params.web_search - "auto", "force", or "off" (default: "auto").
|
|
16144
|
+
* @param params.image_url - Public image URL to attach; ChatGPT answers about
|
|
16145
|
+
* the picture. It will NOT generate one — anonymous chatgpt.com requires a login
|
|
16146
|
+
* for that. Allow 90-150s for an image ask.
|
|
16123
16147
|
* @returns The answer, its citations, and the full retrieved search set.
|
|
16124
16148
|
*
|
|
16125
16149
|
* @example
|
|
@@ -16312,6 +16336,15 @@ interface GeminiAskParams {
|
|
|
16312
16336
|
country?: string;
|
|
16313
16337
|
/** Whether Gemini should ground with web search (default: "auto") */
|
|
16314
16338
|
web_search?: GeminiWebSearchMode;
|
|
16339
|
+
/**
|
|
16340
|
+
* Public http(s) URL of an image to attach. Gemini looks at the picture and
|
|
16341
|
+
* answers about it (JPEG/PNG/GIF/WEBP/BMP, up to 5 MB). An image ask takes
|
|
16342
|
+
* noticeably longer — allow 90-150s.
|
|
16343
|
+
*
|
|
16344
|
+
* Gemini will NOT generate an image: anonymous gemini.google.com gates that behind a
|
|
16345
|
+
* login.
|
|
16346
|
+
*/
|
|
16347
|
+
image_url?: string;
|
|
16315
16348
|
}
|
|
16316
16349
|
/** Parameters for the brand-visibility endpoint. */
|
|
16317
16350
|
interface GeminiBrandVisibilityParams {
|
|
@@ -16370,6 +16403,13 @@ interface GeminiSearchResult {
|
|
|
16370
16403
|
cited: boolean;
|
|
16371
16404
|
}
|
|
16372
16405
|
/** A Gemini answer with its sources. */
|
|
16406
|
+
/** An image the answer itself displayed. */
|
|
16407
|
+
interface MediaItem {
|
|
16408
|
+
/** Image URL. */
|
|
16409
|
+
url: string;
|
|
16410
|
+
/** Alt text, when one was supplied. */
|
|
16411
|
+
title?: string | null;
|
|
16412
|
+
}
|
|
16373
16413
|
interface GeminiAskResponse {
|
|
16374
16414
|
/** The prompt that was sent */
|
|
16375
16415
|
prompt: string;
|
|
@@ -16383,6 +16423,11 @@ interface GeminiAskResponse {
|
|
|
16383
16423
|
search_results: GeminiSearchResult[];
|
|
16384
16424
|
/** Distinct domains across the sources */
|
|
16385
16425
|
source_domains: string[];
|
|
16426
|
+
/**
|
|
16427
|
+
* Images the answer displayed. Never a generated image — see
|
|
16428
|
+
* `image_url` on the params.
|
|
16429
|
+
*/
|
|
16430
|
+
images: MediaItem[];
|
|
16386
16431
|
/** True when the render budget expired mid-answer; `answer` is partial. */
|
|
16387
16432
|
truncated: boolean;
|
|
16388
16433
|
/** Whether Gemini ACTUALLY grounded the answer with a web search */
|
|
@@ -16500,6 +16545,9 @@ declare class AskClient {
|
|
|
16500
16545
|
* @param params.prompt - The prompt to send (max 4096 characters).
|
|
16501
16546
|
* @param params.country - ISO-3166 alpha-2 egress country (default: "US").
|
|
16502
16547
|
* @param params.web_search - "auto", "force", or "off" (default: "auto").
|
|
16548
|
+
* @param params.image_url - Public image URL to attach; Gemini answers about
|
|
16549
|
+
* the picture. It will NOT generate one — anonymous gemini.google.com requires a login
|
|
16550
|
+
* for that. Allow 90-150s for an image ask.
|
|
16503
16551
|
* @returns The answer, its citations, and the full retrieved search set.
|
|
16504
16552
|
*
|
|
16505
16553
|
* @example
|
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.43.0";
|
|
13
13
|
|
|
14
14
|
// src/internal/exceptions.ts
|
|
15
15
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -8541,6 +8541,9 @@ var AskClient = class {
|
|
|
8541
8541
|
* @param params.prompt - The prompt to send (max 4096 characters).
|
|
8542
8542
|
* @param params.country - ISO-3166 alpha-2 egress country (default: "US").
|
|
8543
8543
|
* @param params.web_search - "auto", "force", or "off" (default: "auto").
|
|
8544
|
+
* @param params.image_url - Public image URL to attach; ChatGPT answers about
|
|
8545
|
+
* the picture. It will NOT generate one — anonymous chatgpt.com requires a login
|
|
8546
|
+
* for that. Allow 90-150s for an image ask.
|
|
8544
8547
|
* @returns The answer, its citations, and the full retrieved search set.
|
|
8545
8548
|
*
|
|
8546
8549
|
* @example
|
|
@@ -8561,7 +8564,8 @@ var AskClient = class {
|
|
|
8561
8564
|
params: {
|
|
8562
8565
|
prompt: params.prompt,
|
|
8563
8566
|
country: params.country,
|
|
8564
|
-
web_search: params.web_search
|
|
8567
|
+
web_search: params.web_search,
|
|
8568
|
+
image_url: params.image_url
|
|
8565
8569
|
}
|
|
8566
8570
|
});
|
|
8567
8571
|
}
|
|
@@ -8695,6 +8699,9 @@ var AskClient2 = class {
|
|
|
8695
8699
|
* @param params.prompt - The prompt to send (max 4096 characters).
|
|
8696
8700
|
* @param params.country - ISO-3166 alpha-2 egress country (default: "US").
|
|
8697
8701
|
* @param params.web_search - "auto", "force", or "off" (default: "auto").
|
|
8702
|
+
* @param params.image_url - Public image URL to attach; Gemini answers about
|
|
8703
|
+
* the picture. It will NOT generate one — anonymous gemini.google.com requires a login
|
|
8704
|
+
* for that. Allow 90-150s for an image ask.
|
|
8698
8705
|
* @returns The answer, its citations, and the full retrieved search set.
|
|
8699
8706
|
*
|
|
8700
8707
|
* @example
|
|
@@ -8715,7 +8722,8 @@ var AskClient2 = class {
|
|
|
8715
8722
|
params: {
|
|
8716
8723
|
prompt: params.prompt,
|
|
8717
8724
|
country: params.country,
|
|
8718
|
-
web_search: params.web_search
|
|
8725
|
+
web_search: params.web_search,
|
|
8726
|
+
image_url: params.image_url
|
|
8719
8727
|
}
|
|
8720
8728
|
});
|
|
8721
8729
|
}
|