scrapebadger 0.1.9 → 0.3.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.
package/dist/index.d.cts CHANGED
@@ -1,5 +1,6 @@
1
- import { B as BaseClient, T as TwitterClient, S as ScrapeBadgerConfig } from './index-9Mu-b1MB.cjs';
2
- export { A as ApiResponse, C as CommunitiesClient, t as Community, r as CommunityBanner, u as CommunityMember, s as CommunityRule, g as CommunityTweetType, G as GeoClient, e as GeoSearchOptions, H as Hashtag, I as IteratorOptions, q as List, z as ListResponse, L as ListsClient, w as Location, M as Media, P as PaginatedResponse, a as PaginationOptions, y as Place, x as PlaceTrends, i as Poll, h as PollOption, Q as QueryType, R as ResolvedConfig, v as Trend, f as TrendCategory, d as TrendsClient, m as Tweet, l as TweetPlace, b as TweetsClient, j as Url, n as User, o as UserAbout, p as UserIds, k as UserMention, U as UsersClient, c as collectAll } from './index-9Mu-b1MB.cjs';
1
+ import { B as BaseClient, T as TwitterClient, S as ScrapeBadgerConfig } from './index-DQ_jDTcQ.cjs';
2
+ export { e as AccountRestrictedError, _ as ApiResponse, A as AuthenticationError, ae as BillingLog, af as BillingLogList, j as CommunitiesClient, J as Community, E as CommunityBanner, K as CommunityMember, F as CommunityRule, p as CommunityTweetType, C as ConflictError, ag as ConnectOptions, a6 as ConnectedEvent, a3 as CreateMonitorParams, ac as DeliveryLog, ad as DeliveryLogList, a9 as ErrorEvent, aj as FilterRuleCreate, ao as FilterRuleDeliveryLog, ap as FilterRuleDeliveryLogListResponse, am as FilterRuleListResponse, al as FilterRulePricingTier, aq as FilterRulePricingTiersResponse, ai as FilterRuleResponse, ah as FilterRuleStatus, ak as FilterRuleUpdate, an as FilterRuleValidateResponse, G as GeoClient, l as GeoSearchOptions, H as Hashtag, I as InsufficientCreditsError, g as IteratorOptions, D as List, $ as ListResponse, L as ListsClient, X as Location, M as Media, a0 as MonitorStatus, N as NotFoundError, P as PaginatedResponse, f as PaginationOptions, a7 as PingEvent, Z as Place, Y as PlaceTrends, r as Poll, q as PollOption, Q as QueryType, b as RateLimitError, R as ResolvedConfig, a as ScrapeBadgerError, c as ServerError, m as StreamClient, n as StreamEmitter, aa as StreamEvent, ab as StreamEventType, a1 as StreamMonitor, a2 as StreamMonitorList, a5 as StreamTweet, d as TimeoutError, O as Trend, o as TrendCategory, k as TrendsClient, w as Tweet, a8 as TweetEvent, u as TweetPlace, i as TweetsClient, a4 as UpdateMonitorParams, s as Url, x as User, y as UserAbout, z as UserIds, t as UserMention, U as UsersClient, V as ValidationError, W as WebSocketStreamError, h as collectAll, v as verifyWebhookSignature } from './index-DQ_jDTcQ.cjs';
3
+ import 'node:events';
3
4
 
4
5
  /**
5
6
  * TypeScript types for web scraping API responses.
@@ -229,86 +230,4 @@ declare class ScrapeBadger {
229
230
  constructor(config?: Partial<ScrapeBadgerConfig>);
230
231
  }
231
232
 
232
- /**
233
- * Custom exceptions for the ScrapeBadger SDK.
234
- */
235
- /**
236
- * Base error class for all ScrapeBadger errors.
237
- */
238
- declare class ScrapeBadgerError extends Error {
239
- constructor(message: string);
240
- }
241
- /**
242
- * Raised when authentication fails (invalid or missing API key).
243
- */
244
- declare class AuthenticationError extends ScrapeBadgerError {
245
- constructor(message?: string);
246
- }
247
- /**
248
- * Raised when rate limit is exceeded.
249
- */
250
- declare class RateLimitError extends ScrapeBadgerError {
251
- /** Unix timestamp when the rate limit resets */
252
- readonly retryAfter: number | undefined;
253
- /** Maximum requests per minute for this tier */
254
- readonly limit: number | undefined;
255
- /** Remaining requests in the current window */
256
- readonly remaining: number | undefined;
257
- constructor(message?: string, options?: {
258
- retryAfter?: number;
259
- limit?: number;
260
- remaining?: number;
261
- });
262
- }
263
- /**
264
- * Raised when the requested resource is not found.
265
- */
266
- declare class NotFoundError extends ScrapeBadgerError {
267
- /** The resource type that was not found */
268
- readonly resourceType: string | undefined;
269
- /** The resource ID that was not found */
270
- readonly resourceId: string | undefined;
271
- constructor(message?: string, resourceType?: string, resourceId?: string);
272
- }
273
- /**
274
- * Raised when the request is invalid.
275
- */
276
- declare class ValidationError extends ScrapeBadgerError {
277
- /** Validation errors by field */
278
- readonly errors: Record<string, string[]> | undefined;
279
- constructor(message?: string, errors?: Record<string, string[]>);
280
- }
281
- /**
282
- * Raised when an internal server error occurs.
283
- */
284
- declare class ServerError extends ScrapeBadgerError {
285
- /** HTTP status code */
286
- readonly statusCode: number;
287
- constructor(message?: string, statusCode?: number);
288
- }
289
- /**
290
- * Raised when the request times out.
291
- */
292
- declare class TimeoutError extends ScrapeBadgerError {
293
- /** Timeout duration in milliseconds */
294
- readonly timeout: number;
295
- constructor(message: string | undefined, timeout: number);
296
- }
297
- /**
298
- * Raised when the account has insufficient credits.
299
- */
300
- declare class InsufficientCreditsError extends ScrapeBadgerError {
301
- /** Current credit balance */
302
- readonly creditsBalance: number | undefined;
303
- constructor(message?: string, creditsBalance?: number);
304
- }
305
- /**
306
- * Raised when the account is restricted.
307
- */
308
- declare class AccountRestrictedError extends ScrapeBadgerError {
309
- /** Reason for the restriction */
310
- readonly reason: string | undefined;
311
- constructor(message?: string, reason?: string);
312
- }
313
-
314
- export { AccountRestrictedError, AuthenticationError, type BatchOptions, type BatchResult, type ExtractOptions, type ExtractResult, InsufficientCreditsError, NotFoundError, RateLimitError, ScrapeBadger, ScrapeBadgerConfig, ScrapeBadgerError, type ScrapeOptions, type ScrapeResult, type ScreenshotOptions, type ScreenshotResult, ServerError, type SessionInfo, TimeoutError, TwitterClient, ValidationError, WebClient };
233
+ export { type BatchOptions, type BatchResult, type ExtractOptions, type ExtractResult, ScrapeBadger, ScrapeBadgerConfig, type ScrapeOptions, type ScrapeResult, type ScreenshotOptions, type ScreenshotResult, type SessionInfo, TwitterClient, WebClient };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { B as BaseClient, T as TwitterClient, S as ScrapeBadgerConfig } from './index-9Mu-b1MB.js';
2
- export { A as ApiResponse, C as CommunitiesClient, t as Community, r as CommunityBanner, u as CommunityMember, s as CommunityRule, g as CommunityTweetType, G as GeoClient, e as GeoSearchOptions, H as Hashtag, I as IteratorOptions, q as List, z as ListResponse, L as ListsClient, w as Location, M as Media, P as PaginatedResponse, a as PaginationOptions, y as Place, x as PlaceTrends, i as Poll, h as PollOption, Q as QueryType, R as ResolvedConfig, v as Trend, f as TrendCategory, d as TrendsClient, m as Tweet, l as TweetPlace, b as TweetsClient, j as Url, n as User, o as UserAbout, p as UserIds, k as UserMention, U as UsersClient, c as collectAll } from './index-9Mu-b1MB.js';
1
+ import { B as BaseClient, T as TwitterClient, S as ScrapeBadgerConfig } from './index-DQ_jDTcQ.js';
2
+ export { e as AccountRestrictedError, _ as ApiResponse, A as AuthenticationError, ae as BillingLog, af as BillingLogList, j as CommunitiesClient, J as Community, E as CommunityBanner, K as CommunityMember, F as CommunityRule, p as CommunityTweetType, C as ConflictError, ag as ConnectOptions, a6 as ConnectedEvent, a3 as CreateMonitorParams, ac as DeliveryLog, ad as DeliveryLogList, a9 as ErrorEvent, aj as FilterRuleCreate, ao as FilterRuleDeliveryLog, ap as FilterRuleDeliveryLogListResponse, am as FilterRuleListResponse, al as FilterRulePricingTier, aq as FilterRulePricingTiersResponse, ai as FilterRuleResponse, ah as FilterRuleStatus, ak as FilterRuleUpdate, an as FilterRuleValidateResponse, G as GeoClient, l as GeoSearchOptions, H as Hashtag, I as InsufficientCreditsError, g as IteratorOptions, D as List, $ as ListResponse, L as ListsClient, X as Location, M as Media, a0 as MonitorStatus, N as NotFoundError, P as PaginatedResponse, f as PaginationOptions, a7 as PingEvent, Z as Place, Y as PlaceTrends, r as Poll, q as PollOption, Q as QueryType, b as RateLimitError, R as ResolvedConfig, a as ScrapeBadgerError, c as ServerError, m as StreamClient, n as StreamEmitter, aa as StreamEvent, ab as StreamEventType, a1 as StreamMonitor, a2 as StreamMonitorList, a5 as StreamTweet, d as TimeoutError, O as Trend, o as TrendCategory, k as TrendsClient, w as Tweet, a8 as TweetEvent, u as TweetPlace, i as TweetsClient, a4 as UpdateMonitorParams, s as Url, x as User, y as UserAbout, z as UserIds, t as UserMention, U as UsersClient, V as ValidationError, W as WebSocketStreamError, h as collectAll, v as verifyWebhookSignature } from './index-DQ_jDTcQ.js';
3
+ import 'node:events';
3
4
 
4
5
  /**
5
6
  * TypeScript types for web scraping API responses.
@@ -229,86 +230,4 @@ declare class ScrapeBadger {
229
230
  constructor(config?: Partial<ScrapeBadgerConfig>);
230
231
  }
231
232
 
232
- /**
233
- * Custom exceptions for the ScrapeBadger SDK.
234
- */
235
- /**
236
- * Base error class for all ScrapeBadger errors.
237
- */
238
- declare class ScrapeBadgerError extends Error {
239
- constructor(message: string);
240
- }
241
- /**
242
- * Raised when authentication fails (invalid or missing API key).
243
- */
244
- declare class AuthenticationError extends ScrapeBadgerError {
245
- constructor(message?: string);
246
- }
247
- /**
248
- * Raised when rate limit is exceeded.
249
- */
250
- declare class RateLimitError extends ScrapeBadgerError {
251
- /** Unix timestamp when the rate limit resets */
252
- readonly retryAfter: number | undefined;
253
- /** Maximum requests per minute for this tier */
254
- readonly limit: number | undefined;
255
- /** Remaining requests in the current window */
256
- readonly remaining: number | undefined;
257
- constructor(message?: string, options?: {
258
- retryAfter?: number;
259
- limit?: number;
260
- remaining?: number;
261
- });
262
- }
263
- /**
264
- * Raised when the requested resource is not found.
265
- */
266
- declare class NotFoundError extends ScrapeBadgerError {
267
- /** The resource type that was not found */
268
- readonly resourceType: string | undefined;
269
- /** The resource ID that was not found */
270
- readonly resourceId: string | undefined;
271
- constructor(message?: string, resourceType?: string, resourceId?: string);
272
- }
273
- /**
274
- * Raised when the request is invalid.
275
- */
276
- declare class ValidationError extends ScrapeBadgerError {
277
- /** Validation errors by field */
278
- readonly errors: Record<string, string[]> | undefined;
279
- constructor(message?: string, errors?: Record<string, string[]>);
280
- }
281
- /**
282
- * Raised when an internal server error occurs.
283
- */
284
- declare class ServerError extends ScrapeBadgerError {
285
- /** HTTP status code */
286
- readonly statusCode: number;
287
- constructor(message?: string, statusCode?: number);
288
- }
289
- /**
290
- * Raised when the request times out.
291
- */
292
- declare class TimeoutError extends ScrapeBadgerError {
293
- /** Timeout duration in milliseconds */
294
- readonly timeout: number;
295
- constructor(message: string | undefined, timeout: number);
296
- }
297
- /**
298
- * Raised when the account has insufficient credits.
299
- */
300
- declare class InsufficientCreditsError extends ScrapeBadgerError {
301
- /** Current credit balance */
302
- readonly creditsBalance: number | undefined;
303
- constructor(message?: string, creditsBalance?: number);
304
- }
305
- /**
306
- * Raised when the account is restricted.
307
- */
308
- declare class AccountRestrictedError extends ScrapeBadgerError {
309
- /** Reason for the restriction */
310
- readonly reason: string | undefined;
311
- constructor(message?: string, reason?: string);
312
- }
313
-
314
- export { AccountRestrictedError, AuthenticationError, type BatchOptions, type BatchResult, type ExtractOptions, type ExtractResult, InsufficientCreditsError, NotFoundError, RateLimitError, ScrapeBadger, ScrapeBadgerConfig, ScrapeBadgerError, type ScrapeOptions, type ScrapeResult, type ScreenshotOptions, type ScreenshotResult, ServerError, type SessionInfo, TimeoutError, TwitterClient, ValidationError, WebClient };
233
+ export { type BatchOptions, type BatchResult, type ExtractOptions, type ExtractResult, ScrapeBadger, ScrapeBadgerConfig, type ScrapeOptions, type ScrapeResult, type ScreenshotOptions, type ScreenshotResult, type SessionInfo, TwitterClient, WebClient };