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.
- package/dist/{index-CQ1vFI8s.d.cts → index-D029O2qo.d.cts} +18 -2
- package/dist/{index-CQ1vFI8s.d.ts → index-D029O2qo.d.ts} +18 -2
- package/dist/index.cjs +33 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +33 -3
- package/dist/index.mjs.map +1 -1
- package/dist/twitter/index.cjs +32 -2
- package/dist/twitter/index.cjs.map +1 -1
- package/dist/twitter/index.d.cts +1 -1
- package/dist/twitter/index.d.ts +1 -1
- package/dist/twitter/index.mjs +32 -2
- package/dist/twitter/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseClient, T as TwitterClient, S as ScrapeBadgerConfig } from './index-
|
|
2
|
-
export { f as AccountRestrictedError, a8 as ApiResponse, a4 as Article, A as AuthenticationError, ao as BillingLog, ap as BillingLogList, h as BlockKind, c as BlockedError, i as BlockingCaptcha, a7 as Broadcast, o as CommunitiesClient, _ as Community, Y as CommunityBanner, $ as CommunityMember, a5 as CommunityNote, Z as CommunityRule, w as CommunityTweetType, C as ConflictError, 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, g as IPNotAllowedError, I as InsufficientCreditsError, l as IteratorOptions, X as List, a9 as ListResponse, L as ListsClient, a1 as Location, M as Media, aa as MonitorStatus, N as NotFoundError, j as PaginatedResponse, k as PaginationOptions, P as PermissionDeniedError, ah as PingEvent, a3 as Place, a2 as PlaceTrends, y as Poll, x as PollOption, Q as QueryType, b as RateLimitError, R as ResolvedConfig, a as ScrapeBadgerError, d as ServerError, 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, e as TimeoutError, a0 as Trend, u as TrendCategory, p as TrendsClient, F as Tweet, ai as TweetEvent, E as TweetPlace, n as TweetsClient, ae as UpdateMonitorParams, z as Url, J as User, K as UserAbout, O as UserIds, D as UserMention, U as UsersClient, V as ValidationError, W as WebSocketStreamError, m as collectAll, v as verifyWebhookSignature } from './index-
|
|
1
|
+
import { B as BaseClient, T as TwitterClient, S as ScrapeBadgerConfig } from './index-D029O2qo.cjs';
|
|
2
|
+
export { f as AccountRestrictedError, a8 as ApiResponse, a4 as Article, A as AuthenticationError, ao as BillingLog, ap as BillingLogList, h as BlockKind, c as BlockedError, i as BlockingCaptcha, a7 as Broadcast, o as CommunitiesClient, _ as Community, Y as CommunityBanner, $ as CommunityMember, a5 as CommunityNote, Z as CommunityRule, w as CommunityTweetType, C as ConflictError, 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, g as IPNotAllowedError, I as InsufficientCreditsError, l as IteratorOptions, X as List, a9 as ListResponse, L as ListsClient, a1 as Location, M as Media, aa as MonitorStatus, N as NotFoundError, j as PaginatedResponse, k as PaginationOptions, P as PermissionDeniedError, ah as PingEvent, a3 as Place, a2 as PlaceTrends, y as Poll, x as PollOption, Q as QueryType, b as RateLimitError, R as ResolvedConfig, a as ScrapeBadgerError, d as ServerError, 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, e as TimeoutError, a0 as Trend, u as TrendCategory, p as TrendsClient, F as Tweet, ai as TweetEvent, E as TweetPlace, n as TweetsClient, ae as UpdateMonitorParams, z as Url, J as User, K as UserAbout, O as UserIds, D as UserMention, U as UsersClient, V as ValidationError, W as WebSocketStreamError, m as collectAll, v as verifyWebhookSignature } from './index-D029O2qo.cjs';
|
|
3
3
|
import 'node:events';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseClient, T as TwitterClient, S as ScrapeBadgerConfig } from './index-
|
|
2
|
-
export { f as AccountRestrictedError, a8 as ApiResponse, a4 as Article, A as AuthenticationError, ao as BillingLog, ap as BillingLogList, h as BlockKind, c as BlockedError, i as BlockingCaptcha, a7 as Broadcast, o as CommunitiesClient, _ as Community, Y as CommunityBanner, $ as CommunityMember, a5 as CommunityNote, Z as CommunityRule, w as CommunityTweetType, C as ConflictError, 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, g as IPNotAllowedError, I as InsufficientCreditsError, l as IteratorOptions, X as List, a9 as ListResponse, L as ListsClient, a1 as Location, M as Media, aa as MonitorStatus, N as NotFoundError, j as PaginatedResponse, k as PaginationOptions, P as PermissionDeniedError, ah as PingEvent, a3 as Place, a2 as PlaceTrends, y as Poll, x as PollOption, Q as QueryType, b as RateLimitError, R as ResolvedConfig, a as ScrapeBadgerError, d as ServerError, 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, e as TimeoutError, a0 as Trend, u as TrendCategory, p as TrendsClient, F as Tweet, ai as TweetEvent, E as TweetPlace, n as TweetsClient, ae as UpdateMonitorParams, z as Url, J as User, K as UserAbout, O as UserIds, D as UserMention, U as UsersClient, V as ValidationError, W as WebSocketStreamError, m as collectAll, v as verifyWebhookSignature } from './index-
|
|
1
|
+
import { B as BaseClient, T as TwitterClient, S as ScrapeBadgerConfig } from './index-D029O2qo.js';
|
|
2
|
+
export { f as AccountRestrictedError, a8 as ApiResponse, a4 as Article, A as AuthenticationError, ao as BillingLog, ap as BillingLogList, h as BlockKind, c as BlockedError, i as BlockingCaptcha, a7 as Broadcast, o as CommunitiesClient, _ as Community, Y as CommunityBanner, $ as CommunityMember, a5 as CommunityNote, Z as CommunityRule, w as CommunityTweetType, C as ConflictError, 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, g as IPNotAllowedError, I as InsufficientCreditsError, l as IteratorOptions, X as List, a9 as ListResponse, L as ListsClient, a1 as Location, M as Media, aa as MonitorStatus, N as NotFoundError, j as PaginatedResponse, k as PaginationOptions, P as PermissionDeniedError, ah as PingEvent, a3 as Place, a2 as PlaceTrends, y as Poll, x as PollOption, Q as QueryType, b as RateLimitError, R as ResolvedConfig, a as ScrapeBadgerError, d as ServerError, 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, e as TimeoutError, a0 as Trend, u as TrendCategory, p as TrendsClient, F as Tweet, ai as TweetEvent, E as TweetPlace, n as TweetsClient, ae as UpdateMonitorParams, z as Url, J as User, K as UserAbout, O as UserIds, D as UserMention, U as UsersClient, V as ValidationError, W as WebSocketStreamError, m as collectAll, v as verifyWebhookSignature } from './index-D029O2qo.js';
|
|
3
3
|
import 'node:events';
|
|
4
4
|
|
|
5
5
|
/**
|
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.76.
|
|
6
|
+
var SDK_VERSION = "0.76.3";
|
|
7
7
|
|
|
8
8
|
// src/internal/exceptions.ts
|
|
9
9
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -1866,6 +1866,8 @@ function parseEvent(raw) {
|
|
|
1866
1866
|
};
|
|
1867
1867
|
}
|
|
1868
1868
|
}
|
|
1869
|
+
var deliveryLogsWarned = false;
|
|
1870
|
+
var filterRuleLogsWarned = false;
|
|
1869
1871
|
var StreamClient = class {
|
|
1870
1872
|
client;
|
|
1871
1873
|
constructor(client) {
|
|
@@ -2021,12 +2023,26 @@ var StreamClient = class {
|
|
|
2021
2023
|
// Delivery and Billing Logs
|
|
2022
2024
|
// ===========================================================================
|
|
2023
2025
|
/**
|
|
2024
|
-
*
|
|
2026
|
+
* Deprecated: ScrapeBadger no longer stores delivered tweets.
|
|
2025
2027
|
*
|
|
2028
|
+
* `GET /v1/twitter/stream/logs` was removed from the API on 2026-11-09 and
|
|
2029
|
+
* answers 410 Gone (`delivery_logs_removed`), which this method throws as
|
|
2030
|
+
* `ScrapeBadgerError`. Each tweet is delivered to your webhook (or WebSocket)
|
|
2031
|
+
* only; keep your own log there. Kept only so existing code fails with a clear
|
|
2032
|
+
* error; it will be removed in a future release.
|
|
2033
|
+
*
|
|
2034
|
+
* @deprecated Delivered tweets are no longer stored; keep your own log at your webhook receiver.
|
|
2026
2035
|
* @param options - Filter and pagination options.
|
|
2027
2036
|
* @returns DeliveryLogList with pagination metadata.
|
|
2037
|
+
* @throws ScrapeBadgerError - Always (410 Gone `delivery_logs_removed`) against the current API.
|
|
2028
2038
|
*/
|
|
2029
2039
|
async listDeliveryLogs(options) {
|
|
2040
|
+
if (!deliveryLogsWarned) {
|
|
2041
|
+
deliveryLogsWarned = true;
|
|
2042
|
+
console.warn(
|
|
2043
|
+
"[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."
|
|
2044
|
+
);
|
|
2045
|
+
}
|
|
2030
2046
|
const params = {
|
|
2031
2047
|
page: options?.page ?? 1,
|
|
2032
2048
|
page_size: options?.pageSize ?? 20,
|
|
@@ -2203,8 +2219,16 @@ var StreamClient = class {
|
|
|
2203
2219
|
);
|
|
2204
2220
|
}
|
|
2205
2221
|
/**
|
|
2206
|
-
*
|
|
2222
|
+
* Deprecated: ScrapeBadger no longer stores delivered tweets.
|
|
2207
2223
|
*
|
|
2224
|
+
* `GET /v1/twitter/stream/filter-rules/{id}/logs` was removed from the API on
|
|
2225
|
+
* 2026-11-09 and answers 410 Gone (`delivery_logs_removed`), which this method
|
|
2226
|
+
* throws as `ScrapeBadgerError`. Each tweet is delivered to your webhook only;
|
|
2227
|
+
* keep your own log there. Kept only so existing code fails with a clear error;
|
|
2228
|
+
* it will be removed in a future release.
|
|
2229
|
+
*
|
|
2230
|
+
* @deprecated Delivered tweets are no longer stored; keep your own log at your webhook receiver.
|
|
2231
|
+
* @throws ScrapeBadgerError - Always (410 Gone `delivery_logs_removed`) against the current API.
|
|
2208
2232
|
* @param ruleId - UUID of the filter rule.
|
|
2209
2233
|
* @param options - Filter and pagination options.
|
|
2210
2234
|
* @returns FilterRuleDeliveryLogListResponse with pagination metadata.
|
|
@@ -2218,6 +2242,12 @@ var StreamClient = class {
|
|
|
2218
2242
|
* ```
|
|
2219
2243
|
*/
|
|
2220
2244
|
async listFilterRuleLogs(ruleId, options) {
|
|
2245
|
+
if (!filterRuleLogsWarned) {
|
|
2246
|
+
filterRuleLogsWarned = true;
|
|
2247
|
+
console.warn(
|
|
2248
|
+
"[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."
|
|
2249
|
+
);
|
|
2250
|
+
}
|
|
2221
2251
|
const params = {
|
|
2222
2252
|
limit: options?.limit ?? 20,
|
|
2223
2253
|
offset: options?.offset ?? 0,
|