scrapebadger 0.78.0 → 0.79.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.cjs +36 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.mjs +36 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
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.79.0";
|
|
13
13
|
|
|
14
14
|
// src/internal/exceptions.ts
|
|
15
15
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -3845,6 +3845,38 @@ var GooglePlayClient = class {
|
|
|
3845
3845
|
}
|
|
3846
3846
|
};
|
|
3847
3847
|
|
|
3848
|
+
// src/grok/client.ts
|
|
3849
|
+
var GrokClient = class {
|
|
3850
|
+
client;
|
|
3851
|
+
constructor(client) {
|
|
3852
|
+
this.client = client;
|
|
3853
|
+
}
|
|
3854
|
+
/** Ask Grok a question. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3855
|
+
async askGrokAQuestion(params = {}) {
|
|
3856
|
+
return this.client.request("/v1/grok/ask", { params });
|
|
3857
|
+
}
|
|
3858
|
+
/** Ask Grok a question (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
3859
|
+
async askGrokAQuestionPost(body, params = {}) {
|
|
3860
|
+
return this.client.request("/v1/grok/ask", { method: "POST", params, body });
|
|
3861
|
+
}
|
|
3862
|
+
/** Measure brand visibility in Grok. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3863
|
+
async measureBrandVisibilityInGrok(params = {}) {
|
|
3864
|
+
return this.client.request("/v1/grok/brand-visibility", { params });
|
|
3865
|
+
}
|
|
3866
|
+
/** Measure brand visibility in Grok (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
3867
|
+
async measureBrandVisibilityInGrokPost(body, params = {}) {
|
|
3868
|
+
return this.client.request("/v1/grok/brand-visibility", { method: "POST", params, body });
|
|
3869
|
+
}
|
|
3870
|
+
/** Get a Grok conversation. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3871
|
+
async getAGrokConversation(conversationId, params = {}) {
|
|
3872
|
+
return this.client.request(`/v1/grok/conversations/${conversationId}`, { params });
|
|
3873
|
+
}
|
|
3874
|
+
/** List Grok assistant modes. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3875
|
+
async listGrokAssistantModes(params = {}) {
|
|
3876
|
+
return this.client.request("/v1/grok/models", { params });
|
|
3877
|
+
}
|
|
3878
|
+
};
|
|
3879
|
+
|
|
3848
3880
|
// src/idealista/client.ts
|
|
3849
3881
|
var IdealistaClient = class {
|
|
3850
3882
|
client;
|
|
@@ -10777,6 +10809,8 @@ var ScrapeBadger = class {
|
|
|
10777
10809
|
google;
|
|
10778
10810
|
/** Google_Play API client. (Generated from the OpenAPI spec.) */
|
|
10779
10811
|
google_play;
|
|
10812
|
+
/** Grok API client. (Generated from the OpenAPI spec.) */
|
|
10813
|
+
grok;
|
|
10780
10814
|
/** Idealista API client. (Generated from the OpenAPI spec.) */
|
|
10781
10815
|
idealista;
|
|
10782
10816
|
/** Reddit scraper API client */
|
|
@@ -10917,6 +10951,7 @@ var ScrapeBadger = class {
|
|
|
10917
10951
|
this.vinted = new VintedClient(this.baseClient);
|
|
10918
10952
|
this.google = new GoogleClient(this.baseClient);
|
|
10919
10953
|
this.google_play = new GooglePlayClient(this.baseClient);
|
|
10954
|
+
this.grok = new GrokClient(this.baseClient);
|
|
10920
10955
|
this.idealista = new IdealistaClient(this.baseClient);
|
|
10921
10956
|
this.reddit = new RedditClient(this.baseClient);
|
|
10922
10957
|
this.apartments = new ApartmentsClient(this.baseClient);
|