mcpscraper-sdk 0.59.3 → 0.59.4

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/README.md CHANGED
@@ -239,4 +239,4 @@ Publication management: list owned subdomains with `commons_list_publications`,
239
239
 
240
240
  PAA job progress can include the optional `phase` and `observedAt` fields. They identify observed extraction work separately from worker renewal. Existing polling and request arguments remain compatible. See [the release notes](https://github.com/VilovietaSEO/mcpscraper-sdk/releases/tag/v0.59.1).
241
241
 
242
- Omit the Reddit trending window for an all-time search. Dated searches verify post or comment activity, including when comment text is omitted. See the [0.59.3 release notes](https://github.com/VilovietaSEO/mcpscraper-sdk/releases/tag/v0.59.3) for the compatible package versions.
242
+ Use Reddit Trends review mode to preview links, approve mode to fetch selected threads, or auto mode to search and fetch in one call. See the [0.59.4 release notes](https://github.com/VilovietaSEO/mcpscraper-sdk/releases/tag/v0.59.4) for the compatible package versions.
package/dist/index.d.cts CHANGED
@@ -603,7 +603,8 @@ interface paths {
603
603
  /**
604
604
  * Discover and rank Reddit discussions for a topic
605
605
  * @description Finds Reddit discussions for a topic or subreddit. Omit the window for an all-time search.
606
- * Dated searches verify the post or a captured comment timestamp, including for link-only results.
606
+ * Review mode previews links. Approve mode fetches only selected URLs from the review.
607
+ * Auto mode discovers and fetches threads immediately. Dated fetches verify post or comment timestamps.
607
608
  * Discovery, verified threads, and returned comment text are billed separately. Undated link-only
608
609
  * searches bill discovery only. An empty delivery refunds the discovery charge.
609
610
  */
@@ -2410,8 +2411,17 @@ interface components {
2410
2411
  sourceUrl?: string;
2411
2412
  };
2412
2413
  RedditTrendingRequest: {
2413
- /** @description Topic in plain words, e.g. "crm for small business". Not a URL. */
2414
- topic: string;
2414
+ /** @description Topic to search. Required for discovery. */
2415
+ topic?: string;
2416
+ /** @enum {string} */
2417
+ approvalMode?: "review" | "approve" | "auto";
2418
+ /**
2419
+ * Format: uuid
2420
+ * @description Required in approve mode.
2421
+ */
2422
+ reviewId?: string;
2423
+ /** @description Required in approve mode. Pass only URLs selected from the review. */
2424
+ approvedUrls?: string[];
2415
2425
  /** @description Bare subreddit name to scope the scan, e.g. "SEO" (no r/ prefix). Omit to scan all of Reddit. */
2416
2426
  subreddit?: string;
2417
2427
  /**
@@ -2438,6 +2448,16 @@ interface components {
2438
2448
  };
2439
2449
  RedditTrendingResponse: {
2440
2450
  topic?: string;
2451
+ review?: {
2452
+ /** Format: uuid */
2453
+ id: string;
2454
+ /** Format: date-time */
2455
+ expiresAt: string;
2456
+ /** @enum {string} */
2457
+ window?: "week" | "14d" | "month" | "year" | "all";
2458
+ includeComments?: boolean;
2459
+ maxCommentsPerThread?: number;
2460
+ };
2441
2461
  subreddit?: string | null;
2442
2462
  /** @description Resolved publication window: "7d", "14d", "30d", "365d" or "all". */
2443
2463
  window?: string;
@@ -2454,6 +2474,7 @@ interface components {
2454
2474
  commentCount?: number;
2455
2475
  engagementScore?: number;
2456
2476
  ageText?: string;
2477
+ postBody?: string;
2457
2478
  /**
2458
2479
  * Format: date-time
2459
2480
  * @description Observed publication timestamp when available.
@@ -4031,6 +4052,13 @@ interface operations {
4031
4052
  };
4032
4053
  400: components["responses"]["BadRequest"];
4033
4054
  402: components["responses"]["InsufficientBalance"];
4055
+ /** @description Review is unavailable or expired. */
4056
+ 404: {
4057
+ headers: {
4058
+ [name: string]: unknown;
4059
+ };
4060
+ content?: never;
4061
+ };
4034
4062
  429: components["responses"]["ConcurrencyLimitExceeded"];
4035
4063
  500: components["responses"]["ServerError"];
4036
4064
  };
package/dist/index.d.ts CHANGED
@@ -603,7 +603,8 @@ interface paths {
603
603
  /**
604
604
  * Discover and rank Reddit discussions for a topic
605
605
  * @description Finds Reddit discussions for a topic or subreddit. Omit the window for an all-time search.
606
- * Dated searches verify the post or a captured comment timestamp, including for link-only results.
606
+ * Review mode previews links. Approve mode fetches only selected URLs from the review.
607
+ * Auto mode discovers and fetches threads immediately. Dated fetches verify post or comment timestamps.
607
608
  * Discovery, verified threads, and returned comment text are billed separately. Undated link-only
608
609
  * searches bill discovery only. An empty delivery refunds the discovery charge.
609
610
  */
@@ -2410,8 +2411,17 @@ interface components {
2410
2411
  sourceUrl?: string;
2411
2412
  };
2412
2413
  RedditTrendingRequest: {
2413
- /** @description Topic in plain words, e.g. "crm for small business". Not a URL. */
2414
- topic: string;
2414
+ /** @description Topic to search. Required for discovery. */
2415
+ topic?: string;
2416
+ /** @enum {string} */
2417
+ approvalMode?: "review" | "approve" | "auto";
2418
+ /**
2419
+ * Format: uuid
2420
+ * @description Required in approve mode.
2421
+ */
2422
+ reviewId?: string;
2423
+ /** @description Required in approve mode. Pass only URLs selected from the review. */
2424
+ approvedUrls?: string[];
2415
2425
  /** @description Bare subreddit name to scope the scan, e.g. "SEO" (no r/ prefix). Omit to scan all of Reddit. */
2416
2426
  subreddit?: string;
2417
2427
  /**
@@ -2438,6 +2448,16 @@ interface components {
2438
2448
  };
2439
2449
  RedditTrendingResponse: {
2440
2450
  topic?: string;
2451
+ review?: {
2452
+ /** Format: uuid */
2453
+ id: string;
2454
+ /** Format: date-time */
2455
+ expiresAt: string;
2456
+ /** @enum {string} */
2457
+ window?: "week" | "14d" | "month" | "year" | "all";
2458
+ includeComments?: boolean;
2459
+ maxCommentsPerThread?: number;
2460
+ };
2441
2461
  subreddit?: string | null;
2442
2462
  /** @description Resolved publication window: "7d", "14d", "30d", "365d" or "all". */
2443
2463
  window?: string;
@@ -2454,6 +2474,7 @@ interface components {
2454
2474
  commentCount?: number;
2455
2475
  engagementScore?: number;
2456
2476
  ageText?: string;
2477
+ postBody?: string;
2457
2478
  /**
2458
2479
  * Format: date-time
2459
2480
  * @description Observed publication timestamp when available.
@@ -4031,6 +4052,13 @@ interface operations {
4031
4052
  };
4032
4053
  400: components["responses"]["BadRequest"];
4033
4054
  402: components["responses"]["InsufficientBalance"];
4055
+ /** @description Review is unavailable or expired. */
4056
+ 404: {
4057
+ headers: {
4058
+ [name: string]: unknown;
4059
+ };
4060
+ content?: never;
4061
+ };
4034
4062
  429: components["responses"]["ConcurrencyLimitExceeded"];
4035
4063
  500: components["responses"]["ServerError"];
4036
4064
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcpscraper-sdk",
3
- "version": "0.59.3",
3
+ "version": "0.59.4",
4
4
  "description": "Official Node.js client for all 352 mcpscraper.dev MCP tools and the REST API",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -32,7 +32,7 @@
32
32
  "seo-api"
33
33
  ],
34
34
  "dependencies": {
35
- "mcpscraper-memory-sdk": "^0.58.3"
35
+ "mcpscraper-memory-sdk": "^0.58.4"
36
36
  },
37
37
  "devDependencies": {
38
38
  "openapi-typescript": "^7.13.0"