@withpica/mcp-sdk 3.21.0 → 3.22.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
@@ -879,9 +879,15 @@ class IntegrityResource extends BaseResource {
879
879
  async waive(input) {
880
880
  return this.request("POST", "/admin/integrity/waivers", input);
881
881
  }
882
- /** PATCH /admin/integrity/waivers { waiver_id, revoke: true }. No un-revoke path. */
882
+ /**
883
+ * PATCH /admin/integrity/waivers { waiver_id, revoke: true }. No un-revoke
884
+ * path. A platform waiver answers with the work's re-scored `completeness`.
885
+ */
883
886
  async revokeWaiver(waiverId) {
884
- await this.request("PATCH", "/admin/integrity/waivers", { waiver_id: waiverId, revoke: true });
887
+ return this.request("PATCH", "/admin/integrity/waivers", {
888
+ waiver_id: waiverId,
889
+ revoke: true,
890
+ });
885
891
  }
886
892
  }
887
893
  class AudioFilesResource extends BaseResource {
@@ -3667,6 +3673,42 @@ class RightsResource extends BaseResource {
3667
3673
  async inspect(workId) {
3668
3674
  return this.request("GET", `/admin/works/${encodeURIComponent(workId)}/rights`);
3669
3675
  }
3676
+ /**
3677
+ * ADR-321 Phase 3 — GET /admin/rights-income. Statements: direct income
3678
+ * and what it WOULD pay (no money moves). Needs finance access.
3679
+ */
3680
+ async statements(params) {
3681
+ const qp = new URLSearchParams();
3682
+ if (params?.workId)
3683
+ qp.set("work_id", params.workId);
3684
+ if (params?.limit)
3685
+ qp.set("limit", String(params.limit));
3686
+ if (params?.before)
3687
+ qp.set("before", params.before);
3688
+ const qs = qp.toString();
3689
+ return this.request("GET", `/admin/rights-income${qs ? `?${qs}` : ""}`);
3690
+ }
3691
+ /** GET /admin/rights-income/{id} — one income event, recomputed now. */
3692
+ async statement(incomeId) {
3693
+ return this.request("GET", `/admin/rights-income/${encodeURIComponent(incomeId)}`);
3694
+ }
3695
+ /**
3696
+ * POST /admin/rights-income — record direct income. Body is
3697
+ * `{ work_id, side, recording_id?, income_type, fee_kind, currency,
3698
+ * amount: "1250.00", earned_on, description? }` or
3699
+ * `{ enquiry_id, side, recording_id?, earned_on }`.
3700
+ */
3701
+ async recordIncome(body) {
3702
+ return this.request("POST", "/admin/rights-income", body);
3703
+ }
3704
+ /** GET /admin/rights-statements/society?work_id= — society statements checked against the split. */
3705
+ async societyChecks(workId) {
3706
+ return this.request("GET", `/admin/rights-statements/society?work_id=${encodeURIComponent(workId)}`);
3707
+ }
3708
+ /** GET /admin/rights-statements/measures — the four measures (ADR-321 §7a). */
3709
+ async measures() {
3710
+ return this.request("GET", "/admin/rights-statements/measures");
3711
+ }
3670
3712
  }
3671
3713
  class RoyaltiesResource extends BaseResource {
3672
3714
  async payments(params) {