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.
- 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 +49 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +66 -3
- package/dist/index.d.ts +66 -3
- package/dist/index.mjs +49 -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
|
@@ -2832,10 +2832,18 @@ declare class StreamClient {
|
|
|
2832
2832
|
*/
|
|
2833
2833
|
deleteMonitor(monitorId: string): Promise<void>;
|
|
2834
2834
|
/**
|
|
2835
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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.
|
|
12
|
+
var SDK_VERSION = "0.77.0";
|
|
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
|
-
*
|
|
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
|
-
*
|
|
2228
|
+
* Deprecated: ScrapeBadger no longer stores delivered tweets.
|
|
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.
|
|
2213
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,
|
|
@@ -3233,6 +3263,22 @@ var AiModeClient = class {
|
|
|
3233
3263
|
* comparison `table` blocks and lists), a flat `references` list, a
|
|
3234
3264
|
* compact `markdown` rendering and — unless `include_html: false` —
|
|
3235
3265
|
* the raw `answer_html` body.
|
|
3266
|
+
*
|
|
3267
|
+
* Pass one of `location`, `uule` or `lat` + `lon` to answer "near me"
|
|
3268
|
+
* and local questions as if the user were in that place (city or
|
|
3269
|
+
* district), wherever the request exits from. With `location` and no
|
|
3270
|
+
* `gl`, `gl` becomes the location's country. Located answers carry a
|
|
3271
|
+
* `location` echo.
|
|
3272
|
+
*
|
|
3273
|
+
* @example
|
|
3274
|
+
* ```typescript
|
|
3275
|
+
* const answer = await client.google.aiMode.search({
|
|
3276
|
+
* q: "best coffee near me",
|
|
3277
|
+
* location: "Wonju-si,Gangwon-do,South Korea",
|
|
3278
|
+
* hl: "ko",
|
|
3279
|
+
* });
|
|
3280
|
+
* console.log(answer.location?.resolved, answer.country); // ..., "kr"
|
|
3281
|
+
* ```
|
|
3236
3282
|
*/
|
|
3237
3283
|
async search(params) {
|
|
3238
3284
|
return this.client.request("/v1/google/ai-mode/search", {
|