glitch-javascript-sdk 3.2.3 → 3.2.4
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 +22 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Agents.d.ts +13 -0
- package/dist/esm/index.js +22 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +13 -0
- package/package.json +1 -1
- package/src/api/Agents.ts +22 -0
- package/src/routes/AgentsRoute.ts +3 -0
package/dist/cjs/index.js
CHANGED
|
@@ -30897,6 +30897,7 @@ var AgentsRoute = /** @class */ (function () {
|
|
|
30897
30897
|
listRuns: { url: "/agents/titles/{title_id}/runs", method: HTTP_METHODS.GET },
|
|
30898
30898
|
viewRun: { url: "/agents/titles/{title_id}/runs/{run_id}", method: HTTP_METHODS.GET },
|
|
30899
30899
|
listRunEvents: { url: "/agents/titles/{title_id}/runs/{run_id}/events", method: HTTP_METHODS.GET },
|
|
30900
|
+
heartbeatRun: { url: "/agents/titles/{title_id}/runs/{run_id}/heartbeat", method: HTTP_METHODS.POST },
|
|
30900
30901
|
cancelRun: { url: "/agents/titles/{title_id}/runs/{run_id}/cancel", method: HTTP_METHODS.POST },
|
|
30901
30902
|
interjectRun: { url: "/agents/titles/{title_id}/runs/{run_id}/interject", method: HTTP_METHODS.POST },
|
|
30902
30903
|
listActions: { url: "/agents/titles/{title_id}/actions", method: HTTP_METHODS.GET },
|
|
@@ -30911,6 +30912,8 @@ var AgentsRoute = /** @class */ (function () {
|
|
|
30911
30912
|
credits: { url: "/agents/titles/{title_id}/credits", method: HTTP_METHODS.GET },
|
|
30912
30913
|
purchaseCredits: { url: "/agents/titles/{title_id}/credits/purchase", method: HTTP_METHODS.POST },
|
|
30913
30914
|
startTrial: { url: "/agents/titles/{title_id}/subscription/trial", method: HTTP_METHODS.POST },
|
|
30915
|
+
listSchedulers: { url: "/schedulers", method: HTTP_METHODS.GET },
|
|
30916
|
+
createScheduler: { url: "/schedulers", method: HTTP_METHODS.POST },
|
|
30914
30917
|
agencyOverview: { url: "/agents/agency/overview", method: HTTP_METHODS.GET },
|
|
30915
30918
|
agencyInbox: { url: "/agents/agency/inbox", method: HTTP_METHODS.GET },
|
|
30916
30919
|
};
|
|
@@ -31007,6 +31010,13 @@ var Agents = /** @class */ (function () {
|
|
|
31007
31010
|
Agents.listRunEvents = function (title_id, run_id, params) {
|
|
31008
31011
|
return Requests.processRoute(AgentsRoute.routes.listRunEvents, {}, { title_id: title_id, run_id: run_id }, params);
|
|
31009
31012
|
};
|
|
31013
|
+
/**
|
|
31014
|
+
* Mark a queued or running agent run as being watched live so the UI can stream the loop
|
|
31015
|
+
* and the backend can avoid sending delayed background summaries to active viewers.
|
|
31016
|
+
*/
|
|
31017
|
+
Agents.heartbeatRun = function (title_id, run_id, data, params) {
|
|
31018
|
+
return Requests.processRoute(AgentsRoute.routes.heartbeatRun, data || {}, { title_id: title_id, run_id: run_id }, params);
|
|
31019
|
+
};
|
|
31010
31020
|
/**
|
|
31011
31021
|
* Request cancellation for a queued or running agent run.
|
|
31012
31022
|
*/
|
|
@@ -31093,6 +31103,18 @@ var Agents = /** @class */ (function () {
|
|
|
31093
31103
|
Agents.startTrial = function (title_id, data, params) {
|
|
31094
31104
|
return Requests.processRoute(AgentsRoute.routes.startTrial, data, { title_id: title_id }, params);
|
|
31095
31105
|
};
|
|
31106
|
+
/**
|
|
31107
|
+
* List social/ad schedulers. Useful when agent setup needs to attach to an existing workflow.
|
|
31108
|
+
*/
|
|
31109
|
+
Agents.listSchedulers = function (params) {
|
|
31110
|
+
return Requests.processRoute(AgentsRoute.routes.listSchedulers, {}, {}, params);
|
|
31111
|
+
};
|
|
31112
|
+
/**
|
|
31113
|
+
* Create a scheduler inline from an agent setup flow.
|
|
31114
|
+
*/
|
|
31115
|
+
Agents.createScheduler = function (data, params) {
|
|
31116
|
+
return Requests.processRoute(AgentsRoute.routes.createScheduler, data || {}, {}, params);
|
|
31117
|
+
};
|
|
31096
31118
|
/**
|
|
31097
31119
|
* Cross-title agency cockpit: per-title agent status, billing/credits, and portfolio totals.
|
|
31098
31120
|
*/
|