@mitumba/sdk 5.17.1 → 5.18.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.mjs CHANGED
@@ -2398,6 +2398,32 @@ var AdminModule = class {
2398
2398
  async reinstateReview(reviewId, options) {
2399
2399
  return this.client.post(`/admin/reviews/${reviewId}/reinstate`, void 0, options);
2400
2400
  }
2401
+ // ── Messaging safety reports ──
2402
+ /**
2403
+ * The messaging safety queue: reported conversations and messages, oldest first, 25 per page.
2404
+ * Each report carries the reported side's recent risk signals and a `priority` derived from them;
2405
+ * priority orders the queue and decides nothing. Requires `admin:read`.
2406
+ */
2407
+ async listMessageReports(params, options) {
2408
+ return this.client.get("/admin/message-reports", params, options);
2409
+ }
2410
+ /**
2411
+ * Open one report for review: the report, up to 100 messages of its thread as delivered, and the
2412
+ * unmasked original of the reported message when one exists and may be released. Requires
2413
+ * `audit:read` and a recent passkey sign-in (403 `reauthentication_required` otherwise). Opening a
2414
+ * report is recorded on the audit trail.
2415
+ */
2416
+ async getMessageReport(reportId, options) {
2417
+ return this.client.get(`/admin/message-reports/${encodeURIComponent(reportId)}`, void 0, options);
2418
+ }
2419
+ /**
2420
+ * Resolve an open report. `upheld` records a risk signal against the reported side. Requires
2421
+ * `listings:moderate`. Resolving with the same status and outcome again is a safe retry
2422
+ * (`deduplicated: true`); a different resolution of an already resolved report is 409.
2423
+ */
2424
+ async resolveMessageReport(reportId, input, options) {
2425
+ return this.client.post(`/admin/message-reports/${encodeURIComponent(reportId)}/resolve`, input, options);
2426
+ }
2401
2427
  // ── VAZI Moderation ──
2402
2428
  async listVaziOutfits(params, options) {
2403
2429
  return this.client.get("/admin/vazi/outfits", params, options);