glitch-javascript-sdk 3.2.0 → 3.2.1

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/cjs/index.js CHANGED
@@ -30902,6 +30902,7 @@ var AgentsRoute = /** @class */ (function () {
30902
30902
  answerGuidance: { url: "/agents/titles/{title_id}/guidance/{guidance_id}/answer", method: HTTP_METHODS.POST },
30903
30903
  listMemories: { url: "/agents/titles/{title_id}/memories", method: HTTP_METHODS.GET },
30904
30904
  results: { url: "/agents/titles/{title_id}/results", method: HTTP_METHODS.GET },
30905
+ usage: { url: "/agents/titles/{title_id}/usage", method: HTTP_METHODS.GET },
30905
30906
  startTrial: { url: "/agents/titles/{title_id}/subscription/trial", method: HTTP_METHODS.POST },
30906
30907
  };
30907
30908
  return AgentsRoute;
@@ -31018,6 +31019,13 @@ var Agents = /** @class */ (function () {
31018
31019
  Agents.results = function (title_id, params) {
31019
31020
  return Requests.processRoute(AgentsRoute.routes.results, {}, { title_id: title_id }, params);
31020
31021
  };
31022
+ /**
31023
+ * Get this title's agent usage against plan limits (agents used/included, monthly runs, and
31024
+ * AI dollars spent vs the configured monthly AI budget). Powers usage meters and limit warnings.
31025
+ */
31026
+ Agents.usage = function (title_id, params) {
31027
+ return Requests.processRoute(AgentsRoute.routes.usage, {}, { title_id: title_id }, params);
31028
+ };
31021
31029
  /**
31022
31030
  * Start a Stripe-backed agent trial/subscription after setup.
31023
31031
  */