@mitumba/sdk 5.15.0 → 5.16.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
@@ -2469,6 +2469,22 @@ var AdminModule = class {
2469
2469
  async rotateOidcSigningKey(options) {
2470
2470
  return this.client.post("/auth/oidc/keys/rotate", void 0, options);
2471
2471
  }
2472
+ // ── Operations library ──
2473
+ /**
2474
+ * The library documents the caller may read: summaries only, never bodies. Any operator may call
2475
+ * this; each document's `audience` decides whether it is listed. `can_read_all` is true for a
2476
+ * caller holding `library:read_all`, who sees every document.
2477
+ */
2478
+ async listLibrary(options) {
2479
+ return this.client.get("/admin/library", void 0, options);
2480
+ }
2481
+ /**
2482
+ * One library document with its markdown body. A document the caller may not read is reported
2483
+ * exactly like one that does not exist (404).
2484
+ */
2485
+ async getLibraryDocument(slug, options) {
2486
+ return this.client.get(`/admin/library/${encodeURIComponent(slug)}`, void 0, options);
2487
+ }
2472
2488
  // ── Payout approval ──
2473
2489
  async listPayoutsAwaitingApproval(options) {
2474
2490
  return this.client.get("/admin/payouts/pending-approval", void 0, options);