scrapebadger 0.76.2 → 0.76.3

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.
@@ -2832,10 +2832,18 @@ declare class StreamClient {
2832
2832
  */
2833
2833
  deleteMonitor(monitorId: string): Promise<void>;
2834
2834
  /**
2835
- * List tweet delivery logs.
2835
+ * Deprecated: ScrapeBadger no longer stores delivered tweets.
2836
2836
  *
2837
+ * `GET /v1/twitter/stream/logs` was removed from the API on 2026-11-09 and
2838
+ * answers 410 Gone (`delivery_logs_removed`), which this method throws as
2839
+ * `ScrapeBadgerError`. Each tweet is delivered to your webhook (or WebSocket)
2840
+ * only; keep your own log there. Kept only so existing code fails with a clear
2841
+ * error; it will be removed in a future release.
2842
+ *
2843
+ * @deprecated Delivered tweets are no longer stored; keep your own log at your webhook receiver.
2837
2844
  * @param options - Filter and pagination options.
2838
2845
  * @returns DeliveryLogList with pagination metadata.
2846
+ * @throws ScrapeBadgerError - Always (410 Gone `delivery_logs_removed`) against the current API.
2839
2847
  */
2840
2848
  listDeliveryLogs(options?: {
2841
2849
  monitorId?: string;
@@ -2958,8 +2966,16 @@ declare class StreamClient {
2958
2966
  */
2959
2967
  validateFilterRuleQuery(query: string): Promise<FilterRuleValidateResponse>;
2960
2968
  /**
2961
- * List tweet delivery logs for a specific filter rule.
2969
+ * Deprecated: ScrapeBadger no longer stores delivered tweets.
2970
+ *
2971
+ * `GET /v1/twitter/stream/filter-rules/{id}/logs` was removed from the API on
2972
+ * 2026-11-09 and answers 410 Gone (`delivery_logs_removed`), which this method
2973
+ * throws as `ScrapeBadgerError`. Each tweet is delivered to your webhook only;
2974
+ * keep your own log there. Kept only so existing code fails with a clear error;
2975
+ * it will be removed in a future release.
2962
2976
  *
2977
+ * @deprecated Delivered tweets are no longer stored; keep your own log at your webhook receiver.
2978
+ * @throws ScrapeBadgerError - Always (410 Gone `delivery_logs_removed`) against the current API.
2963
2979
  * @param ruleId - UUID of the filter rule.
2964
2980
  * @param options - Filter and pagination options.
2965
2981
  * @returns FilterRuleDeliveryLogListResponse with pagination metadata.
@@ -2832,10 +2832,18 @@ declare class StreamClient {
2832
2832
  */
2833
2833
  deleteMonitor(monitorId: string): Promise<void>;
2834
2834
  /**
2835
- * List tweet delivery logs.
2835
+ * Deprecated: ScrapeBadger no longer stores delivered tweets.
2836
2836
  *
2837
+ * `GET /v1/twitter/stream/logs` was removed from the API on 2026-11-09 and
2838
+ * answers 410 Gone (`delivery_logs_removed`), which this method throws as
2839
+ * `ScrapeBadgerError`. Each tweet is delivered to your webhook (or WebSocket)
2840
+ * only; keep your own log there. Kept only so existing code fails with a clear
2841
+ * error; it will be removed in a future release.
2842
+ *
2843
+ * @deprecated Delivered tweets are no longer stored; keep your own log at your webhook receiver.
2837
2844
  * @param options - Filter and pagination options.
2838
2845
  * @returns DeliveryLogList with pagination metadata.
2846
+ * @throws ScrapeBadgerError - Always (410 Gone `delivery_logs_removed`) against the current API.
2839
2847
  */
2840
2848
  listDeliveryLogs(options?: {
2841
2849
  monitorId?: string;
@@ -2958,8 +2966,16 @@ declare class StreamClient {
2958
2966
  */
2959
2967
  validateFilterRuleQuery(query: string): Promise<FilterRuleValidateResponse>;
2960
2968
  /**
2961
- * List tweet delivery logs for a specific filter rule.
2969
+ * Deprecated: ScrapeBadger no longer stores delivered tweets.
2970
+ *
2971
+ * `GET /v1/twitter/stream/filter-rules/{id}/logs` was removed from the API on
2972
+ * 2026-11-09 and answers 410 Gone (`delivery_logs_removed`), which this method
2973
+ * throws as `ScrapeBadgerError`. Each tweet is delivered to your webhook only;
2974
+ * keep your own log there. Kept only so existing code fails with a clear error;
2975
+ * it will be removed in a future release.
2962
2976
  *
2977
+ * @deprecated Delivered tweets are no longer stored; keep your own log at your webhook receiver.
2978
+ * @throws ScrapeBadgerError - Always (410 Gone `delivery_logs_removed`) against the current API.
2963
2979
  * @param ruleId - UUID of the filter rule.
2964
2980
  * @param options - Filter and pagination options.
2965
2981
  * @returns FilterRuleDeliveryLogListResponse with pagination metadata.
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.76.2";
12
+ var SDK_VERSION = "0.76.3";
13
13
 
14
14
  // src/internal/exceptions.ts
15
15
  var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
@@ -1872,6 +1872,8 @@ function parseEvent(raw) {
1872
1872
  };
1873
1873
  }
1874
1874
  }
1875
+ var deliveryLogsWarned = false;
1876
+ var filterRuleLogsWarned = false;
1875
1877
  var StreamClient = class {
1876
1878
  client;
1877
1879
  constructor(client) {
@@ -2027,12 +2029,26 @@ var StreamClient = class {
2027
2029
  // Delivery and Billing Logs
2028
2030
  // ===========================================================================
2029
2031
  /**
2030
- * List tweet delivery logs.
2032
+ * Deprecated: ScrapeBadger no longer stores delivered tweets.
2031
2033
  *
2034
+ * `GET /v1/twitter/stream/logs` was removed from the API on 2026-11-09 and
2035
+ * answers 410 Gone (`delivery_logs_removed`), which this method throws as
2036
+ * `ScrapeBadgerError`. Each tweet is delivered to your webhook (or WebSocket)
2037
+ * only; keep your own log there. Kept only so existing code fails with a clear
2038
+ * error; it will be removed in a future release.
2039
+ *
2040
+ * @deprecated Delivered tweets are no longer stored; keep your own log at your webhook receiver.
2032
2041
  * @param options - Filter and pagination options.
2033
2042
  * @returns DeliveryLogList with pagination metadata.
2043
+ * @throws ScrapeBadgerError - Always (410 Gone `delivery_logs_removed`) against the current API.
2034
2044
  */
2035
2045
  async listDeliveryLogs(options) {
2046
+ if (!deliveryLogsWarned) {
2047
+ deliveryLogsWarned = true;
2048
+ console.warn(
2049
+ "[scrapebadger] listDeliveryLogs() is deprecated: ScrapeBadger stopped storing delivered tweets on 2026-11-09 and GET /v1/twitter/stream/logs answers 410 Gone. Keep your own log at your webhook receiver."
2050
+ );
2051
+ }
2036
2052
  const params = {
2037
2053
  page: options?.page ?? 1,
2038
2054
  page_size: options?.pageSize ?? 20,
@@ -2209,8 +2225,16 @@ var StreamClient = class {
2209
2225
  );
2210
2226
  }
2211
2227
  /**
2212
- * List tweet delivery logs for a specific filter rule.
2228
+ * Deprecated: ScrapeBadger no longer stores delivered tweets.
2213
2229
  *
2230
+ * `GET /v1/twitter/stream/filter-rules/{id}/logs` was removed from the API on
2231
+ * 2026-11-09 and answers 410 Gone (`delivery_logs_removed`), which this method
2232
+ * throws as `ScrapeBadgerError`. Each tweet is delivered to your webhook only;
2233
+ * keep your own log there. Kept only so existing code fails with a clear error;
2234
+ * it will be removed in a future release.
2235
+ *
2236
+ * @deprecated Delivered tweets are no longer stored; keep your own log at your webhook receiver.
2237
+ * @throws ScrapeBadgerError - Always (410 Gone `delivery_logs_removed`) against the current API.
2214
2238
  * @param ruleId - UUID of the filter rule.
2215
2239
  * @param options - Filter and pagination options.
2216
2240
  * @returns FilterRuleDeliveryLogListResponse with pagination metadata.
@@ -2224,6 +2248,12 @@ var StreamClient = class {
2224
2248
  * ```
2225
2249
  */
2226
2250
  async listFilterRuleLogs(ruleId, options) {
2251
+ if (!filterRuleLogsWarned) {
2252
+ filterRuleLogsWarned = true;
2253
+ console.warn(
2254
+ "[scrapebadger] listFilterRuleLogs() is deprecated: ScrapeBadger stopped storing delivered tweets on 2026-11-09 and GET /v1/twitter/stream/filter-rules/{id}/logs answers 410 Gone. Keep your own log at your webhook receiver."
2255
+ );
2256
+ }
2227
2257
  const params = {
2228
2258
  limit: options?.limit ?? 20,
2229
2259
  offset: options?.offset ?? 0,