scrapebadger 0.34.0 → 0.36.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.
@@ -2068,6 +2068,7 @@ var SpacesClient = class {
2068
2068
 
2069
2069
  // src/twitter/client.ts
2070
2070
  var TwitterClient = class {
2071
+ _gen;
2071
2072
  /** Client for tweet operations */
2072
2073
  tweets;
2073
2074
  /** Client for user operations */
@@ -2090,6 +2091,7 @@ var TwitterClient = class {
2090
2091
  * @param client - The base HTTP client for making requests.
2091
2092
  */
2092
2093
  constructor(client) {
2094
+ this._gen = client;
2093
2095
  this.tweets = new TweetsClient(client);
2094
2096
  this.users = new UsersClient(client);
2095
2097
  this.lists = new ListsClient(client);
@@ -2099,6 +2101,59 @@ var TwitterClient = class {
2099
2101
  this.stream = new StreamClient(client);
2100
2102
  this.spaces = new SpacesClient(client);
2101
2103
  }
2104
+ // --- generated by sdk/codegen/facade — do not edit ---
2105
+ /** Delete filter rule. Generated from the OpenAPI spec; returns the raw response object. */
2106
+ async deleteFilterRule(ruleId, body, params = {}) {
2107
+ return this._gen.request(`/v1/twitter/stream/filter-rules/${ruleId}`, {
2108
+ method: "DELETE",
2109
+ params,
2110
+ body
2111
+ });
2112
+ }
2113
+ /** Update filter rule. Generated from the OpenAPI spec; returns the raw response object. */
2114
+ async updateFilterRule(ruleId, body, params = {}) {
2115
+ return this._gen.request(`/v1/twitter/stream/filter-rules/${ruleId}`, {
2116
+ method: "PATCH",
2117
+ params,
2118
+ body
2119
+ });
2120
+ }
2121
+ /** Delete stream monitor. Generated from the OpenAPI spec; returns the raw response object. */
2122
+ async deleteStreamMonitor(monitorId, body, params = {}) {
2123
+ return this._gen.request(`/v1/twitter/stream/monitors/${monitorId}`, {
2124
+ method: "DELETE",
2125
+ params,
2126
+ body
2127
+ });
2128
+ }
2129
+ /** Update stream monitor. Generated from the OpenAPI spec; returns the raw response object. */
2130
+ async updateStreamMonitor(monitorId, body, params = {}) {
2131
+ return this._gen.request(`/v1/twitter/stream/monitors/${monitorId}`, {
2132
+ method: "PATCH",
2133
+ params,
2134
+ body
2135
+ });
2136
+ }
2137
+ /** List webhooks. Generated from the OpenAPI spec; returns the raw response object. */
2138
+ async listWebhooks(params = {}) {
2139
+ return this._gen.request("/v1/twitter/stream/webhooks", { params });
2140
+ }
2141
+ /** Configure webhook on a monitor. Generated from the OpenAPI spec; returns the raw response object. */
2142
+ async configureWebhookOnAMonitor(body, params = {}) {
2143
+ return this._gen.request("/v1/twitter/stream/webhooks", { method: "POST", params, body });
2144
+ }
2145
+ /** Test webhook delivery. Generated from the OpenAPI spec; returns the raw response object. */
2146
+ async testWebhookDelivery(body, params = {}) {
2147
+ return this._gen.request("/v1/twitter/stream/webhooks/test", { method: "POST", params, body });
2148
+ }
2149
+ /** Remove webhook from monitor. Generated from the OpenAPI spec; returns the raw response object. */
2150
+ async removeWebhookFromMonitor(webhookId, body, params = {}) {
2151
+ return this._gen.request(`/v1/twitter/stream/webhooks/${webhookId}`, {
2152
+ method: "DELETE",
2153
+ params,
2154
+ body
2155
+ });
2156
+ }
2102
2157
  };
2103
2158
 
2104
2159
  export { CommunitiesClient, GeoClient, ListsClient, SpacesClient, StreamClient, TrendsClient, TweetsClient, TwitterClient, UsersClient, verifyWebhookSignature };