scrapebadger 0.76.1 → 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.
@@ -1,2 +1,2 @@
1
- export { a8 as ApiResponse, a4 as Article, ao as BillingLog, ap as BillingLogList, a7 as Broadcast, o as CommunitiesClient, _ as Community, Y as CommunityBanner, $ as CommunityMember, a5 as CommunityNote, Z as CommunityRule, w as CommunityTweetType, aq as ConnectOptions, ag as ConnectedEvent, ad as CreateMonitorParams, am as DeliveryLog, an as DeliveryLogList, aj as ErrorEvent, at as FilterRuleCreate, ay as FilterRuleDeliveryLog, az as FilterRuleDeliveryLogListResponse, aw as FilterRuleListResponse, av as FilterRulePricingTier, aA as FilterRulePricingTiersResponse, as as FilterRuleResponse, ar as FilterRuleStatus, au as FilterRuleUpdate, ax as FilterRuleValidateResponse, G as GeoClient, q as GeoSearchOptions, H as Hashtag, X as List, a9 as ListResponse, L as ListsClient, a1 as Location, M as Media, aa as MonitorStatus, ah as PingEvent, a3 as Place, a2 as PlaceTrends, y as Poll, x as PollOption, Q as QueryType, a6 as Space, t as SpacesClient, r as StreamClient, s as StreamEmitter, ak as StreamEvent, al as StreamEventType, ab as StreamMonitor, ac as StreamMonitorList, af as StreamTweet, a0 as Trend, u as TrendCategory, p as TrendsClient, F as Tweet, ai as TweetEvent, E as TweetPlace, n as TweetsClient, T as TwitterClient, ae as UpdateMonitorParams, z as Url, J as User, K as UserAbout, O as UserIds, D as UserMention, U as UsersClient, v as verifyWebhookSignature } from '../index-CQ1vFI8s.cjs';
1
+ export { a8 as ApiResponse, a4 as Article, ao as BillingLog, ap as BillingLogList, a7 as Broadcast, o as CommunitiesClient, _ as Community, Y as CommunityBanner, $ as CommunityMember, a5 as CommunityNote, Z as CommunityRule, w as CommunityTweetType, aq as ConnectOptions, ag as ConnectedEvent, ad as CreateMonitorParams, am as DeliveryLog, an as DeliveryLogList, aj as ErrorEvent, at as FilterRuleCreate, ay as FilterRuleDeliveryLog, az as FilterRuleDeliveryLogListResponse, aw as FilterRuleListResponse, av as FilterRulePricingTier, aA as FilterRulePricingTiersResponse, as as FilterRuleResponse, ar as FilterRuleStatus, au as FilterRuleUpdate, ax as FilterRuleValidateResponse, G as GeoClient, q as GeoSearchOptions, H as Hashtag, X as List, a9 as ListResponse, L as ListsClient, a1 as Location, M as Media, aa as MonitorStatus, ah as PingEvent, a3 as Place, a2 as PlaceTrends, y as Poll, x as PollOption, Q as QueryType, a6 as Space, t as SpacesClient, r as StreamClient, s as StreamEmitter, ak as StreamEvent, al as StreamEventType, ab as StreamMonitor, ac as StreamMonitorList, af as StreamTweet, a0 as Trend, u as TrendCategory, p as TrendsClient, F as Tweet, ai as TweetEvent, E as TweetPlace, n as TweetsClient, T as TwitterClient, ae as UpdateMonitorParams, z as Url, J as User, K as UserAbout, O as UserIds, D as UserMention, U as UsersClient, v as verifyWebhookSignature } from '../index-D029O2qo.cjs';
2
2
  import 'node:events';
@@ -1,2 +1,2 @@
1
- export { a8 as ApiResponse, a4 as Article, ao as BillingLog, ap as BillingLogList, a7 as Broadcast, o as CommunitiesClient, _ as Community, Y as CommunityBanner, $ as CommunityMember, a5 as CommunityNote, Z as CommunityRule, w as CommunityTweetType, aq as ConnectOptions, ag as ConnectedEvent, ad as CreateMonitorParams, am as DeliveryLog, an as DeliveryLogList, aj as ErrorEvent, at as FilterRuleCreate, ay as FilterRuleDeliveryLog, az as FilterRuleDeliveryLogListResponse, aw as FilterRuleListResponse, av as FilterRulePricingTier, aA as FilterRulePricingTiersResponse, as as FilterRuleResponse, ar as FilterRuleStatus, au as FilterRuleUpdate, ax as FilterRuleValidateResponse, G as GeoClient, q as GeoSearchOptions, H as Hashtag, X as List, a9 as ListResponse, L as ListsClient, a1 as Location, M as Media, aa as MonitorStatus, ah as PingEvent, a3 as Place, a2 as PlaceTrends, y as Poll, x as PollOption, Q as QueryType, a6 as Space, t as SpacesClient, r as StreamClient, s as StreamEmitter, ak as StreamEvent, al as StreamEventType, ab as StreamMonitor, ac as StreamMonitorList, af as StreamTweet, a0 as Trend, u as TrendCategory, p as TrendsClient, F as Tweet, ai as TweetEvent, E as TweetPlace, n as TweetsClient, T as TwitterClient, ae as UpdateMonitorParams, z as Url, J as User, K as UserAbout, O as UserIds, D as UserMention, U as UsersClient, v as verifyWebhookSignature } from '../index-CQ1vFI8s.js';
1
+ export { a8 as ApiResponse, a4 as Article, ao as BillingLog, ap as BillingLogList, a7 as Broadcast, o as CommunitiesClient, _ as Community, Y as CommunityBanner, $ as CommunityMember, a5 as CommunityNote, Z as CommunityRule, w as CommunityTweetType, aq as ConnectOptions, ag as ConnectedEvent, ad as CreateMonitorParams, am as DeliveryLog, an as DeliveryLogList, aj as ErrorEvent, at as FilterRuleCreate, ay as FilterRuleDeliveryLog, az as FilterRuleDeliveryLogListResponse, aw as FilterRuleListResponse, av as FilterRulePricingTier, aA as FilterRulePricingTiersResponse, as as FilterRuleResponse, ar as FilterRuleStatus, au as FilterRuleUpdate, ax as FilterRuleValidateResponse, G as GeoClient, q as GeoSearchOptions, H as Hashtag, X as List, a9 as ListResponse, L as ListsClient, a1 as Location, M as Media, aa as MonitorStatus, ah as PingEvent, a3 as Place, a2 as PlaceTrends, y as Poll, x as PollOption, Q as QueryType, a6 as Space, t as SpacesClient, r as StreamClient, s as StreamEmitter, ak as StreamEvent, al as StreamEventType, ab as StreamMonitor, ac as StreamMonitorList, af as StreamTweet, a0 as Trend, u as TrendCategory, p as TrendsClient, F as Tweet, ai as TweetEvent, E as TweetPlace, n as TweetsClient, T as TwitterClient, ae as UpdateMonitorParams, z as Url, J as User, K as UserAbout, O as UserIds, D as UserMention, U as UsersClient, v as verifyWebhookSignature } from '../index-D029O2qo.js';
2
2
  import 'node:events';
@@ -1413,6 +1413,8 @@ function parseEvent(raw) {
1413
1413
  };
1414
1414
  }
1415
1415
  }
1416
+ var deliveryLogsWarned = false;
1417
+ var filterRuleLogsWarned = false;
1416
1418
  var StreamClient = class {
1417
1419
  client;
1418
1420
  constructor(client) {
@@ -1568,12 +1570,26 @@ var StreamClient = class {
1568
1570
  // Delivery and Billing Logs
1569
1571
  // ===========================================================================
1570
1572
  /**
1571
- * List tweet delivery logs.
1573
+ * Deprecated: ScrapeBadger no longer stores delivered tweets.
1572
1574
  *
1575
+ * `GET /v1/twitter/stream/logs` was removed from the API on 2026-11-09 and
1576
+ * answers 410 Gone (`delivery_logs_removed`), which this method throws as
1577
+ * `ScrapeBadgerError`. Each tweet is delivered to your webhook (or WebSocket)
1578
+ * only; keep your own log there. Kept only so existing code fails with a clear
1579
+ * error; it will be removed in a future release.
1580
+ *
1581
+ * @deprecated Delivered tweets are no longer stored; keep your own log at your webhook receiver.
1573
1582
  * @param options - Filter and pagination options.
1574
1583
  * @returns DeliveryLogList with pagination metadata.
1584
+ * @throws ScrapeBadgerError - Always (410 Gone `delivery_logs_removed`) against the current API.
1575
1585
  */
1576
1586
  async listDeliveryLogs(options) {
1587
+ if (!deliveryLogsWarned) {
1588
+ deliveryLogsWarned = true;
1589
+ console.warn(
1590
+ "[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."
1591
+ );
1592
+ }
1577
1593
  const params = {
1578
1594
  page: options?.page ?? 1,
1579
1595
  page_size: options?.pageSize ?? 20,
@@ -1750,8 +1766,16 @@ var StreamClient = class {
1750
1766
  );
1751
1767
  }
1752
1768
  /**
1753
- * List tweet delivery logs for a specific filter rule.
1769
+ * Deprecated: ScrapeBadger no longer stores delivered tweets.
1754
1770
  *
1771
+ * `GET /v1/twitter/stream/filter-rules/{id}/logs` was removed from the API on
1772
+ * 2026-11-09 and answers 410 Gone (`delivery_logs_removed`), which this method
1773
+ * throws as `ScrapeBadgerError`. Each tweet is delivered to your webhook only;
1774
+ * keep your own log there. Kept only so existing code fails with a clear error;
1775
+ * it will be removed in a future release.
1776
+ *
1777
+ * @deprecated Delivered tweets are no longer stored; keep your own log at your webhook receiver.
1778
+ * @throws ScrapeBadgerError - Always (410 Gone `delivery_logs_removed`) against the current API.
1755
1779
  * @param ruleId - UUID of the filter rule.
1756
1780
  * @param options - Filter and pagination options.
1757
1781
  * @returns FilterRuleDeliveryLogListResponse with pagination metadata.
@@ -1765,6 +1789,12 @@ var StreamClient = class {
1765
1789
  * ```
1766
1790
  */
1767
1791
  async listFilterRuleLogs(ruleId, options) {
1792
+ if (!filterRuleLogsWarned) {
1793
+ filterRuleLogsWarned = true;
1794
+ console.warn(
1795
+ "[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."
1796
+ );
1797
+ }
1768
1798
  const params = {
1769
1799
  limit: options?.limit ?? 20,
1770
1800
  offset: options?.offset ?? 0,