scrapebadger 0.76.2 → 0.77.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.
@@ -1419,6 +1419,8 @@ function parseEvent(raw) {
1419
1419
  };
1420
1420
  }
1421
1421
  }
1422
+ var deliveryLogsWarned = false;
1423
+ var filterRuleLogsWarned = false;
1422
1424
  var StreamClient = class {
1423
1425
  client;
1424
1426
  constructor(client) {
@@ -1574,12 +1576,26 @@ var StreamClient = class {
1574
1576
  // Delivery and Billing Logs
1575
1577
  // ===========================================================================
1576
1578
  /**
1577
- * List tweet delivery logs.
1579
+ * Deprecated: ScrapeBadger no longer stores delivered tweets.
1578
1580
  *
1581
+ * `GET /v1/twitter/stream/logs` was removed from the API on 2026-11-09 and
1582
+ * answers 410 Gone (`delivery_logs_removed`), which this method throws as
1583
+ * `ScrapeBadgerError`. Each tweet is delivered to your webhook (or WebSocket)
1584
+ * only; keep your own log there. Kept only so existing code fails with a clear
1585
+ * error; it will be removed in a future release.
1586
+ *
1587
+ * @deprecated Delivered tweets are no longer stored; keep your own log at your webhook receiver.
1579
1588
  * @param options - Filter and pagination options.
1580
1589
  * @returns DeliveryLogList with pagination metadata.
1590
+ * @throws ScrapeBadgerError - Always (410 Gone `delivery_logs_removed`) against the current API.
1581
1591
  */
1582
1592
  async listDeliveryLogs(options) {
1593
+ if (!deliveryLogsWarned) {
1594
+ deliveryLogsWarned = true;
1595
+ console.warn(
1596
+ "[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."
1597
+ );
1598
+ }
1583
1599
  const params = {
1584
1600
  page: options?.page ?? 1,
1585
1601
  page_size: options?.pageSize ?? 20,
@@ -1756,8 +1772,16 @@ var StreamClient = class {
1756
1772
  );
1757
1773
  }
1758
1774
  /**
1759
- * List tweet delivery logs for a specific filter rule.
1775
+ * Deprecated: ScrapeBadger no longer stores delivered tweets.
1760
1776
  *
1777
+ * `GET /v1/twitter/stream/filter-rules/{id}/logs` was removed from the API on
1778
+ * 2026-11-09 and answers 410 Gone (`delivery_logs_removed`), which this method
1779
+ * throws as `ScrapeBadgerError`. Each tweet is delivered to your webhook only;
1780
+ * keep your own log there. Kept only so existing code fails with a clear error;
1781
+ * it will be removed in a future release.
1782
+ *
1783
+ * @deprecated Delivered tweets are no longer stored; keep your own log at your webhook receiver.
1784
+ * @throws ScrapeBadgerError - Always (410 Gone `delivery_logs_removed`) against the current API.
1761
1785
  * @param ruleId - UUID of the filter rule.
1762
1786
  * @param options - Filter and pagination options.
1763
1787
  * @returns FilterRuleDeliveryLogListResponse with pagination metadata.
@@ -1771,6 +1795,12 @@ var StreamClient = class {
1771
1795
  * ```
1772
1796
  */
1773
1797
  async listFilterRuleLogs(ruleId, options) {
1798
+ if (!filterRuleLogsWarned) {
1799
+ filterRuleLogsWarned = true;
1800
+ console.warn(
1801
+ "[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."
1802
+ );
1803
+ }
1774
1804
  const params = {
1775
1805
  limit: options?.limit ?? 20,
1776
1806
  offset: options?.offset ?? 0,