mcpscraper-sdk 0.51.0 → 0.52.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.js CHANGED
@@ -326,7 +326,8 @@ var MapsNamespace = class {
326
326
  }
327
327
  r;
328
328
  search(params, options = {}) {
329
- return this.r.call("POST", "/maps/search", params, {}, options);
329
+ const headers = options.idempotencyKey ? { "Idempotency-Key": options.idempotencyKey } : {};
330
+ return this.r.call("POST", "/maps/search", params, headers, options);
330
331
  }
331
332
  place(params, options = {}) {
332
333
  const headers = {
@@ -372,8 +373,17 @@ var DirectoryNamespace = class {
372
373
  this.r = r;
373
374
  }
374
375
  r;
375
- run(params) {
376
- return this.r.call("POST", "/directory/run", params);
376
+ run(params, options = {}) {
377
+ return this.r.call(
378
+ "POST",
379
+ "/directory/run",
380
+ params,
381
+ options.idempotencyKey ? { "Idempotency-Key": options.idempotencyKey } : {},
382
+ options
383
+ );
384
+ }
385
+ status(jobId, options = {}) {
386
+ return this.r.call("GET", `/directory/jobs/${encodeURIComponent(jobId)}`, void 0, {}, options);
377
387
  }
378
388
  };
379
389
  var SerpIntelligenceNamespace = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcpscraper-sdk",
3
- "version": "0.51.0",
3
+ "version": "0.52.0",
4
4
  "description": "Official Node.js client for all 364 mcpscraper.dev MCP tools and the REST API",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,7 +19,7 @@
19
19
  "README.md"
20
20
  ],
21
21
  "scripts": {
22
- "generate": "openapi-typescript ../../contracts/scraper.openapi.yaml -o src/schema.ts",
22
+ "generate": "openapi-typescript ../../contracts/scraper.openapi.generated.json -o src/schema.ts",
23
23
  "prepack": "npm run build",
24
24
  "build": "tsup src/index.ts --format esm,cjs --dts",
25
25
  "typecheck": "tsc --noEmit",