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 +8 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Agents.d.ts +5 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/package.json +1 -1
- package/src/api/Agents.ts +8 -0
- package/src/routes/AgentsRoute.ts +1 -0
package/dist/esm/api/Agents.d.ts
CHANGED
|
@@ -73,6 +73,11 @@ declare class Agents {
|
|
|
73
73
|
* Get results and outcome summary for title agents. Returns 402 until trial/subscription is active.
|
|
74
74
|
*/
|
|
75
75
|
static results<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
76
|
+
/**
|
|
77
|
+
* Get this title's agent usage against plan limits (agents used/included, monthly runs, and
|
|
78
|
+
* AI dollars spent vs the configured monthly AI budget). Powers usage meters and limit warnings.
|
|
79
|
+
*/
|
|
80
|
+
static usage<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
76
81
|
/**
|
|
77
82
|
* Start a Stripe-backed agent trial/subscription after setup.
|
|
78
83
|
*/
|
package/dist/esm/index.js
CHANGED
|
@@ -18904,6 +18904,7 @@ var AgentsRoute = /** @class */ (function () {
|
|
|
18904
18904
|
answerGuidance: { url: "/agents/titles/{title_id}/guidance/{guidance_id}/answer", method: HTTP_METHODS.POST },
|
|
18905
18905
|
listMemories: { url: "/agents/titles/{title_id}/memories", method: HTTP_METHODS.GET },
|
|
18906
18906
|
results: { url: "/agents/titles/{title_id}/results", method: HTTP_METHODS.GET },
|
|
18907
|
+
usage: { url: "/agents/titles/{title_id}/usage", method: HTTP_METHODS.GET },
|
|
18907
18908
|
startTrial: { url: "/agents/titles/{title_id}/subscription/trial", method: HTTP_METHODS.POST },
|
|
18908
18909
|
};
|
|
18909
18910
|
return AgentsRoute;
|
|
@@ -19020,6 +19021,13 @@ var Agents = /** @class */ (function () {
|
|
|
19020
19021
|
Agents.results = function (title_id, params) {
|
|
19021
19022
|
return Requests.processRoute(AgentsRoute.routes.results, {}, { title_id: title_id }, params);
|
|
19022
19023
|
};
|
|
19024
|
+
/**
|
|
19025
|
+
* Get this title's agent usage against plan limits (agents used/included, monthly runs, and
|
|
19026
|
+
* AI dollars spent vs the configured monthly AI budget). Powers usage meters and limit warnings.
|
|
19027
|
+
*/
|
|
19028
|
+
Agents.usage = function (title_id, params) {
|
|
19029
|
+
return Requests.processRoute(AgentsRoute.routes.usage, {}, { title_id: title_id }, params);
|
|
19030
|
+
};
|
|
19023
19031
|
/**
|
|
19024
19032
|
* Start a Stripe-backed agent trial/subscription after setup.
|
|
19025
19033
|
*/
|