@withpica/mcp-sdk 3.26.0 → 3.28.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
@@ -2428,6 +2428,21 @@ class FeedbackResource extends BaseResource {
2428
2428
  async submit(params) {
2429
2429
  return this.request("POST", "/feedback", params);
2430
2430
  }
2431
+ /**
2432
+ * The caller's own reports in their organisation, newest first, with
2433
+ * what the PICA team did about each (status + the note written for
2434
+ * them), plus counts for the briefing. GET /api/feedback; never another
2435
+ * account's or organisation's reports.
2436
+ */
2437
+ async list(params) {
2438
+ const qs = new URLSearchParams();
2439
+ if (params?.status)
2440
+ qs.set("status", params.status);
2441
+ if (params?.limit !== undefined)
2442
+ qs.set("limit", String(params.limit));
2443
+ const query = qs.toString();
2444
+ return this.request("GET", `/feedback${query ? `?${query}` : ""}`);
2445
+ }
2431
2446
  }
2432
2447
  class BillingResource extends BaseResource {
2433
2448
  /**
@@ -4413,6 +4428,24 @@ class StatementsResource extends BaseResource {
4413
4428
  async ingestDocument(payload) {
4414
4429
  return this.request("POST", "/admin/statements/ingest-agent", payload);
4415
4430
  }
4431
+ /**
4432
+ * ADR-340: statement imports through the large-file path, as the owner's
4433
+ * statements page shows them (same view object).
4434
+ */
4435
+ async listImports(q = {}) {
4436
+ const sp = new URLSearchParams();
4437
+ if (q.limit != null)
4438
+ sp.set("limit", String(q.limit));
4439
+ if (q.offset != null)
4440
+ sp.set("offset", String(q.offset));
4441
+ if (q.document_id)
4442
+ sp.set("document_id", q.document_id);
4443
+ const qs = sp.toString();
4444
+ return this.request("GET", `/admin/statements/imports${qs ? `?${qs}` : ""}`);
4445
+ }
4446
+ async getImport(id) {
4447
+ return this.request("GET", `/admin/statements/imports/${encodeURIComponent(id)}`);
4448
+ }
4416
4449
  }
4417
4450
  class SelectionsResource extends BaseResource {
4418
4451
  async list(params) {