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.d.cts CHANGED
@@ -2932,6 +2932,28 @@ declare class GooglePlayClient {
2932
2932
  searchApps(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
2933
2933
  }
2934
2934
 
2935
+ /**
2936
+ * Grok API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
2937
+ */
2938
+
2939
+ /** Client for all Grok API operations. (Generated from the OpenAPI spec.) */
2940
+ declare class GrokClient {
2941
+ private readonly client;
2942
+ constructor(client: BaseClient);
2943
+ /** Ask Grok a question. Generated from the OpenAPI spec; returns the raw response object. */
2944
+ askGrokAQuestion(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
2945
+ /** Ask Grok a question (POST). Generated from the OpenAPI spec; returns the raw response object. */
2946
+ askGrokAQuestionPost(body?: unknown, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
2947
+ /** Measure brand visibility in Grok. Generated from the OpenAPI spec; returns the raw response object. */
2948
+ measureBrandVisibilityInGrok(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
2949
+ /** Measure brand visibility in Grok (POST). Generated from the OpenAPI spec; returns the raw response object. */
2950
+ measureBrandVisibilityInGrokPost(body?: unknown, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
2951
+ /** Get a Grok conversation. Generated from the OpenAPI spec; returns the raw response object. */
2952
+ getAGrokConversation(conversationId: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
2953
+ /** List Grok assistant modes. Generated from the OpenAPI spec; returns the raw response object. */
2954
+ listGrokAssistantModes(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
2955
+ }
2956
+
2935
2957
  /**
2936
2958
  * Idealista API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
2937
2959
  */
@@ -20514,6 +20536,8 @@ declare class ScrapeBadger {
20514
20536
  readonly google: GoogleClient;
20515
20537
  /** Google_Play API client. (Generated from the OpenAPI spec.) */
20516
20538
  readonly google_play: GooglePlayClient;
20539
+ /** Grok API client. (Generated from the OpenAPI spec.) */
20540
+ readonly grok: GrokClient;
20517
20541
  /** Idealista API client. (Generated from the OpenAPI spec.) */
20518
20542
  readonly idealista: IdealistaClient;
20519
20543
  /** Reddit scraper API client */
package/dist/index.d.ts CHANGED
@@ -2932,6 +2932,28 @@ declare class GooglePlayClient {
2932
2932
  searchApps(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
2933
2933
  }
2934
2934
 
2935
+ /**
2936
+ * Grok API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
2937
+ */
2938
+
2939
+ /** Client for all Grok API operations. (Generated from the OpenAPI spec.) */
2940
+ declare class GrokClient {
2941
+ private readonly client;
2942
+ constructor(client: BaseClient);
2943
+ /** Ask Grok a question. Generated from the OpenAPI spec; returns the raw response object. */
2944
+ askGrokAQuestion(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
2945
+ /** Ask Grok a question (POST). Generated from the OpenAPI spec; returns the raw response object. */
2946
+ askGrokAQuestionPost(body?: unknown, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
2947
+ /** Measure brand visibility in Grok. Generated from the OpenAPI spec; returns the raw response object. */
2948
+ measureBrandVisibilityInGrok(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
2949
+ /** Measure brand visibility in Grok (POST). Generated from the OpenAPI spec; returns the raw response object. */
2950
+ measureBrandVisibilityInGrokPost(body?: unknown, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
2951
+ /** Get a Grok conversation. Generated from the OpenAPI spec; returns the raw response object. */
2952
+ getAGrokConversation(conversationId: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
2953
+ /** List Grok assistant modes. Generated from the OpenAPI spec; returns the raw response object. */
2954
+ listGrokAssistantModes(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
2955
+ }
2956
+
2935
2957
  /**
2936
2958
  * Idealista API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
2937
2959
  */
@@ -20514,6 +20536,8 @@ declare class ScrapeBadger {
20514
20536
  readonly google: GoogleClient;
20515
20537
  /** Google_Play API client. (Generated from the OpenAPI spec.) */
20516
20538
  readonly google_play: GooglePlayClient;
20539
+ /** Grok API client. (Generated from the OpenAPI spec.) */
20540
+ readonly grok: GrokClient;
20517
20541
  /** Idealista API client. (Generated from the OpenAPI spec.) */
20518
20542
  readonly idealista: IdealistaClient;
20519
20543
  /** Reddit scraper API client */
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.77.0";
6
+ var SDK_VERSION = "0.79.0";
7
7
 
8
8
  // src/internal/exceptions.ts
9
9
  var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
@@ -3839,6 +3839,38 @@ var GooglePlayClient = class {
3839
3839
  }
3840
3840
  };
3841
3841
 
3842
+ // src/grok/client.ts
3843
+ var GrokClient = class {
3844
+ client;
3845
+ constructor(client) {
3846
+ this.client = client;
3847
+ }
3848
+ /** Ask Grok a question. Generated from the OpenAPI spec; returns the raw response object. */
3849
+ async askGrokAQuestion(params = {}) {
3850
+ return this.client.request("/v1/grok/ask", { params });
3851
+ }
3852
+ /** Ask Grok a question (POST). Generated from the OpenAPI spec; returns the raw response object. */
3853
+ async askGrokAQuestionPost(body, params = {}) {
3854
+ return this.client.request("/v1/grok/ask", { method: "POST", params, body });
3855
+ }
3856
+ /** Measure brand visibility in Grok. Generated from the OpenAPI spec; returns the raw response object. */
3857
+ async measureBrandVisibilityInGrok(params = {}) {
3858
+ return this.client.request("/v1/grok/brand-visibility", { params });
3859
+ }
3860
+ /** Measure brand visibility in Grok (POST). Generated from the OpenAPI spec; returns the raw response object. */
3861
+ async measureBrandVisibilityInGrokPost(body, params = {}) {
3862
+ return this.client.request("/v1/grok/brand-visibility", { method: "POST", params, body });
3863
+ }
3864
+ /** Get a Grok conversation. Generated from the OpenAPI spec; returns the raw response object. */
3865
+ async getAGrokConversation(conversationId, params = {}) {
3866
+ return this.client.request(`/v1/grok/conversations/${conversationId}`, { params });
3867
+ }
3868
+ /** List Grok assistant modes. Generated from the OpenAPI spec; returns the raw response object. */
3869
+ async listGrokAssistantModes(params = {}) {
3870
+ return this.client.request("/v1/grok/models", { params });
3871
+ }
3872
+ };
3873
+
3842
3874
  // src/idealista/client.ts
3843
3875
  var IdealistaClient = class {
3844
3876
  client;
@@ -10771,6 +10803,8 @@ var ScrapeBadger = class {
10771
10803
  google;
10772
10804
  /** Google_Play API client. (Generated from the OpenAPI spec.) */
10773
10805
  google_play;
10806
+ /** Grok API client. (Generated from the OpenAPI spec.) */
10807
+ grok;
10774
10808
  /** Idealista API client. (Generated from the OpenAPI spec.) */
10775
10809
  idealista;
10776
10810
  /** Reddit scraper API client */
@@ -10911,6 +10945,7 @@ var ScrapeBadger = class {
10911
10945
  this.vinted = new VintedClient(this.baseClient);
10912
10946
  this.google = new GoogleClient(this.baseClient);
10913
10947
  this.google_play = new GooglePlayClient(this.baseClient);
10948
+ this.grok = new GrokClient(this.baseClient);
10914
10949
  this.idealista = new IdealistaClient(this.baseClient);
10915
10950
  this.reddit = new RedditClient(this.baseClient);
10916
10951
  this.apartments = new ApartmentsClient(this.baseClient);