mcpscraper-sdk 0.31.1 → 0.32.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
@@ -141,6 +141,7 @@ import {
141
141
  CaptureNamespace,
142
142
  ChannelsNamespace,
143
143
  FactsNamespace,
144
+ FilesNamespace,
144
145
  GraphNamespace,
145
146
  LibraryNamespace,
146
147
  MemoryNamespace as MemoryToolNamespace,
@@ -392,11 +393,48 @@ var WorkflowsNamespace = class {
392
393
  return this.r.call("POST", `/workflows/schedules/${encodeURIComponent(id)}/run`);
393
394
  }
394
395
  };
396
+ var GmailNamespace = class {
397
+ constructor(r) {
398
+ this.r = r;
399
+ }
400
+ r;
401
+ searchMessages(params) {
402
+ return this.r.call("POST", "/api/gmail/messages/search", params);
403
+ }
404
+ getMessage(messageId, params) {
405
+ return this.r.call("POST", `/api/gmail/messages/${encodeURIComponent(messageId)}`, params);
406
+ }
407
+ getAttachment(params) {
408
+ return this.r.call("POST", "/api/gmail/attachments/get", params);
409
+ }
410
+ prepareSelection(params) {
411
+ return this.r.call("POST", "/api/gmail/selections", params);
412
+ }
413
+ exportSelection(selectionId, params) {
414
+ return this.r.call("POST", `/api/gmail/selections/${encodeURIComponent(selectionId)}/export`, params);
415
+ }
416
+ bulkManage(selectionId, params, options) {
417
+ return this.r.call("POST", `/api/gmail/selections/${encodeURIComponent(selectionId)}/manage`, params, { "Idempotency-Key": options.idempotencyKey });
418
+ }
419
+ bulkDelete(selectionId, params, options) {
420
+ return this.r.call("POST", `/api/gmail/selections/${encodeURIComponent(selectionId)}/delete`, params, { "Idempotency-Key": options.idempotencyKey });
421
+ }
422
+ prepareMemoryImport(params) {
423
+ return this.r.call("POST", "/api/gmail/imports/prepare", params);
424
+ }
425
+ importToMemory(importPlanId, options) {
426
+ return this.r.call("POST", `/api/gmail/imports/${encodeURIComponent(importPlanId)}/start`, void 0, { "Idempotency-Key": options.idempotencyKey });
427
+ }
428
+ importStatus(ingestId) {
429
+ return this.r.call("GET", `/api/gmail/imports/${encodeURIComponent(ingestId)}`);
430
+ }
431
+ };
395
432
  var MemoryTools = class {
396
433
  access;
397
434
  capture;
398
435
  channels;
399
436
  facts;
437
+ files;
400
438
  graph;
401
439
  library;
402
440
  memory;
@@ -413,6 +451,7 @@ var MemoryTools = class {
413
451
  this.capture = new CaptureNamespace(callTool);
414
452
  this.channels = new ChannelsNamespace(callTool);
415
453
  this.facts = new FactsNamespace(callTool);
454
+ this.files = new FilesNamespace(callTool);
416
455
  this.graph = new GraphNamespace(callTool);
417
456
  this.library = new LibraryNamespace(callTool);
418
457
  this.memory = new MemoryToolNamespace(callTool);
@@ -439,6 +478,7 @@ var ScraperClient = class {
439
478
  directory;
440
479
  serpIntelligence;
441
480
  workflows;
481
+ gmail;
442
482
  memoryTools;
443
483
  tools;
444
484
  constructor(options) {
@@ -456,6 +496,7 @@ var ScraperClient = class {
456
496
  this.directory = new DirectoryNamespace(this.r);
457
497
  this.serpIntelligence = new SerpIntelligenceNamespace(this.r);
458
498
  this.workflows = new WorkflowsNamespace(this.r);
499
+ this.gmail = new GmailNamespace(this.r);
459
500
  this.memoryTools = new MemoryTools(this.callMemoryTool.bind(this));
460
501
  this.tools = new McpToolsClient({
461
502
  apiKey: options.apiKey,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mcpscraper-sdk",
3
- "version": "0.31.1",
4
- "description": "Official Node.js client for all 259 mcpscraper.dev MCP tools and the REST API",
3
+ "version": "0.32.0",
4
+ "description": "Official Node.js client for all 325 mcpscraper.dev MCP tools and the REST API",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
@@ -32,7 +32,7 @@
32
32
  "seo-api"
33
33
  ],
34
34
  "dependencies": {
35
- "mcpscraper-memory-sdk": "^0.31.6"
35
+ "mcpscraper-memory-sdk": "^0.32.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "openapi-typescript": "^7.13.0"