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/esm/api/Agents.d.ts
CHANGED
|
@@ -57,6 +57,11 @@ declare class Agents {
|
|
|
57
57
|
* List real-time user-visible events for an agent run.
|
|
58
58
|
*/
|
|
59
59
|
static listRunEvents<T>(title_id: string, run_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
60
|
+
/**
|
|
61
|
+
* Mark a queued or running agent run as being watched live so the UI can stream the loop
|
|
62
|
+
* and the backend can avoid sending delayed background summaries to active viewers.
|
|
63
|
+
*/
|
|
64
|
+
static heartbeatRun<T>(title_id: string, run_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
60
65
|
/**
|
|
61
66
|
* Request cancellation for a queued or running agent run.
|
|
62
67
|
*/
|
|
@@ -115,6 +120,14 @@ declare class Agents {
|
|
|
115
120
|
* Start a Stripe-backed agent trial/subscription after setup.
|
|
116
121
|
*/
|
|
117
122
|
static startTrial<T>(title_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
123
|
+
/**
|
|
124
|
+
* List social/ad schedulers. Useful when agent setup needs to attach to an existing workflow.
|
|
125
|
+
*/
|
|
126
|
+
static listSchedulers<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
127
|
+
/**
|
|
128
|
+
* Create a scheduler inline from an agent setup flow.
|
|
129
|
+
*/
|
|
130
|
+
static createScheduler<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
118
131
|
/**
|
|
119
132
|
* Cross-title agency cockpit: per-title agent status, billing/credits, and portfolio totals.
|
|
120
133
|
*/
|
package/dist/esm/index.js
CHANGED
|
@@ -18899,6 +18899,7 @@ var AgentsRoute = /** @class */ (function () {
|
|
|
18899
18899
|
listRuns: { url: "/agents/titles/{title_id}/runs", method: HTTP_METHODS.GET },
|
|
18900
18900
|
viewRun: { url: "/agents/titles/{title_id}/runs/{run_id}", method: HTTP_METHODS.GET },
|
|
18901
18901
|
listRunEvents: { url: "/agents/titles/{title_id}/runs/{run_id}/events", method: HTTP_METHODS.GET },
|
|
18902
|
+
heartbeatRun: { url: "/agents/titles/{title_id}/runs/{run_id}/heartbeat", method: HTTP_METHODS.POST },
|
|
18902
18903
|
cancelRun: { url: "/agents/titles/{title_id}/runs/{run_id}/cancel", method: HTTP_METHODS.POST },
|
|
18903
18904
|
interjectRun: { url: "/agents/titles/{title_id}/runs/{run_id}/interject", method: HTTP_METHODS.POST },
|
|
18904
18905
|
listActions: { url: "/agents/titles/{title_id}/actions", method: HTTP_METHODS.GET },
|
|
@@ -18913,6 +18914,8 @@ var AgentsRoute = /** @class */ (function () {
|
|
|
18913
18914
|
credits: { url: "/agents/titles/{title_id}/credits", method: HTTP_METHODS.GET },
|
|
18914
18915
|
purchaseCredits: { url: "/agents/titles/{title_id}/credits/purchase", method: HTTP_METHODS.POST },
|
|
18915
18916
|
startTrial: { url: "/agents/titles/{title_id}/subscription/trial", method: HTTP_METHODS.POST },
|
|
18917
|
+
listSchedulers: { url: "/schedulers", method: HTTP_METHODS.GET },
|
|
18918
|
+
createScheduler: { url: "/schedulers", method: HTTP_METHODS.POST },
|
|
18916
18919
|
agencyOverview: { url: "/agents/agency/overview", method: HTTP_METHODS.GET },
|
|
18917
18920
|
agencyInbox: { url: "/agents/agency/inbox", method: HTTP_METHODS.GET },
|
|
18918
18921
|
};
|
|
@@ -19009,6 +19012,13 @@ var Agents = /** @class */ (function () {
|
|
|
19009
19012
|
Agents.listRunEvents = function (title_id, run_id, params) {
|
|
19010
19013
|
return Requests.processRoute(AgentsRoute.routes.listRunEvents, {}, { title_id: title_id, run_id: run_id }, params);
|
|
19011
19014
|
};
|
|
19015
|
+
/**
|
|
19016
|
+
* Mark a queued or running agent run as being watched live so the UI can stream the loop
|
|
19017
|
+
* and the backend can avoid sending delayed background summaries to active viewers.
|
|
19018
|
+
*/
|
|
19019
|
+
Agents.heartbeatRun = function (title_id, run_id, data, params) {
|
|
19020
|
+
return Requests.processRoute(AgentsRoute.routes.heartbeatRun, data || {}, { title_id: title_id, run_id: run_id }, params);
|
|
19021
|
+
};
|
|
19012
19022
|
/**
|
|
19013
19023
|
* Request cancellation for a queued or running agent run.
|
|
19014
19024
|
*/
|
|
@@ -19095,6 +19105,18 @@ var Agents = /** @class */ (function () {
|
|
|
19095
19105
|
Agents.startTrial = function (title_id, data, params) {
|
|
19096
19106
|
return Requests.processRoute(AgentsRoute.routes.startTrial, data, { title_id: title_id }, params);
|
|
19097
19107
|
};
|
|
19108
|
+
/**
|
|
19109
|
+
* List social/ad schedulers. Useful when agent setup needs to attach to an existing workflow.
|
|
19110
|
+
*/
|
|
19111
|
+
Agents.listSchedulers = function (params) {
|
|
19112
|
+
return Requests.processRoute(AgentsRoute.routes.listSchedulers, {}, {}, params);
|
|
19113
|
+
};
|
|
19114
|
+
/**
|
|
19115
|
+
* Create a scheduler inline from an agent setup flow.
|
|
19116
|
+
*/
|
|
19117
|
+
Agents.createScheduler = function (data, params) {
|
|
19118
|
+
return Requests.processRoute(AgentsRoute.routes.createScheduler, data || {}, {}, params);
|
|
19119
|
+
};
|
|
19098
19120
|
/**
|
|
19099
19121
|
* Cross-title agency cockpit: per-title agent status, billing/credits, and portfolio totals.
|
|
19100
19122
|
*/
|