@arbidocs/sdk 0.4.108 → 0.4.109

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.cjs CHANGED
@@ -6731,6 +6731,22 @@ async function updateProfile(arbi, body) {
6731
6731
  );
6732
6732
  }
6733
6733
 
6734
+ // src/operations/firm.ts
6735
+ var firm_exports = {};
6736
+ __export(firm_exports, {
6737
+ getFirmPool: () => getFirmPool,
6738
+ topUpFirmPool: () => topUpFirmPool
6739
+ });
6740
+ async function getFirmPool(arbi) {
6741
+ return requireData(await arbi.fetch.GET("/v1/firm/pool"), "Failed to fetch the firm AI usage");
6742
+ }
6743
+ async function topUpFirmPool(arbi, aiAddons) {
6744
+ return requireData(
6745
+ await arbi.fetch.POST("/v1/firm/pool/topup", { body: { ai_addons: aiAddons } }),
6746
+ "Failed to add firm AI usage"
6747
+ );
6748
+ }
6749
+
6734
6750
  // src/operations/account.ts
6735
6751
  var account_exports = {};
6736
6752
  __export(account_exports, {
@@ -8311,6 +8327,13 @@ var Arbi = class {
8311
8327
  */
8312
8328
  me: () => getCurrentUser(this.requireClient())
8313
8329
  };
8330
+ // ── Firm ──────────────────────────────────────────────────────────────
8331
+ firm = {
8332
+ /** The firm's pooled monthly £ of AI usage (`has_pool` false where there is none). */
8333
+ pool: () => getFirmPool(this.requireClient()),
8334
+ /** Buy `aiAddons` renewing add-ons (+£10 of AI usage a month each) for the firm. Box admins only. */
8335
+ topUp: (aiAddons) => topUpFirmPool(this.requireClient(), aiAddons)
8336
+ };
8314
8337
  // ── Profile ───────────────────────────────────────────────────────────
8315
8338
  profile = {
8316
8339
  /** Update the display profile; pass only what changes (`''` clears family name or picture). */
@@ -10096,6 +10119,7 @@ exports.documentsNode = documents_node_exports;
10096
10119
  exports.facts = facts_exports;
10097
10120
  exports.files = files_exports;
10098
10121
  exports.filterSkills = filterSkills;
10122
+ exports.firm = firm_exports;
10099
10123
  exports.formatAgentStepLabel = formatAgentStepLabel;
10100
10124
  exports.formatFileSize = formatFileSize;
10101
10125
  exports.formatGbp = formatGbp;