glitch-javascript-sdk 3.2.3 → 3.2.5

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
@@ -28399,6 +28399,7 @@ var RedditSubredditsRoute = /** @class */ (function () {
28399
28399
  list: { url: '/reddit/subreddits', method: HTTP_METHODS.GET },
28400
28400
  show: { url: '/reddit/subreddits/{subreddit}', method: HTTP_METHODS.GET },
28401
28401
  match: { url: '/reddit/subreddits/match', method: HTTP_METHODS.POST },
28402
+ matchTitle: { url: '/titles/{title_id}/reddit/subreddit-matches', method: HTTP_METHODS.POST },
28402
28403
  ingest: { url: '/admin/reddit/subreddits/ingest', method: HTTP_METHODS.POST },
28403
28404
  refresh: { url: '/admin/reddit/subreddits/{subreddit}/refresh', method: HTTP_METHODS.POST },
28404
28405
  };
@@ -28432,6 +28433,15 @@ var RedditSubreddits = /** @class */ (function () {
28432
28433
  RedditSubreddits.match = function (data, params) {
28433
28434
  return Requests.processRoute(RedditSubredditsRoute.routes.match, data, undefined, params);
28434
28435
  };
28436
+ /**
28437
+ * Match one of the authenticated user's administered titles to Reddit communities.
28438
+ *
28439
+ * @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/titleRedditSubredditMatches
28440
+ */
28441
+ RedditSubreddits.matchTitle = function (title_id, data, params) {
28442
+ if (data === void 0) { data = {}; }
28443
+ return Requests.processRoute(RedditSubredditsRoute.routes.matchTitle, data, { title_id: title_id }, params);
28444
+ };
28435
28445
  /**
28436
28446
  * Admin-only ingestion of subreddit metadata and rules.
28437
28447
  *
@@ -30897,6 +30907,7 @@ var AgentsRoute = /** @class */ (function () {
30897
30907
  listRuns: { url: "/agents/titles/{title_id}/runs", method: HTTP_METHODS.GET },
30898
30908
  viewRun: { url: "/agents/titles/{title_id}/runs/{run_id}", method: HTTP_METHODS.GET },
30899
30909
  listRunEvents: { url: "/agents/titles/{title_id}/runs/{run_id}/events", method: HTTP_METHODS.GET },
30910
+ heartbeatRun: { url: "/agents/titles/{title_id}/runs/{run_id}/heartbeat", method: HTTP_METHODS.POST },
30900
30911
  cancelRun: { url: "/agents/titles/{title_id}/runs/{run_id}/cancel", method: HTTP_METHODS.POST },
30901
30912
  interjectRun: { url: "/agents/titles/{title_id}/runs/{run_id}/interject", method: HTTP_METHODS.POST },
30902
30913
  listActions: { url: "/agents/titles/{title_id}/actions", method: HTTP_METHODS.GET },
@@ -30911,6 +30922,8 @@ var AgentsRoute = /** @class */ (function () {
30911
30922
  credits: { url: "/agents/titles/{title_id}/credits", method: HTTP_METHODS.GET },
30912
30923
  purchaseCredits: { url: "/agents/titles/{title_id}/credits/purchase", method: HTTP_METHODS.POST },
30913
30924
  startTrial: { url: "/agents/titles/{title_id}/subscription/trial", method: HTTP_METHODS.POST },
30925
+ listSchedulers: { url: "/schedulers", method: HTTP_METHODS.GET },
30926
+ createScheduler: { url: "/schedulers", method: HTTP_METHODS.POST },
30914
30927
  agencyOverview: { url: "/agents/agency/overview", method: HTTP_METHODS.GET },
30915
30928
  agencyInbox: { url: "/agents/agency/inbox", method: HTTP_METHODS.GET },
30916
30929
  };
@@ -31007,6 +31020,13 @@ var Agents = /** @class */ (function () {
31007
31020
  Agents.listRunEvents = function (title_id, run_id, params) {
31008
31021
  return Requests.processRoute(AgentsRoute.routes.listRunEvents, {}, { title_id: title_id, run_id: run_id }, params);
31009
31022
  };
31023
+ /**
31024
+ * Mark a queued or running agent run as being watched live so the UI can stream the loop
31025
+ * and the backend can avoid sending delayed background summaries to active viewers.
31026
+ */
31027
+ Agents.heartbeatRun = function (title_id, run_id, data, params) {
31028
+ return Requests.processRoute(AgentsRoute.routes.heartbeatRun, data || {}, { title_id: title_id, run_id: run_id }, params);
31029
+ };
31010
31030
  /**
31011
31031
  * Request cancellation for a queued or running agent run.
31012
31032
  */
@@ -31093,6 +31113,18 @@ var Agents = /** @class */ (function () {
31093
31113
  Agents.startTrial = function (title_id, data, params) {
31094
31114
  return Requests.processRoute(AgentsRoute.routes.startTrial, data, { title_id: title_id }, params);
31095
31115
  };
31116
+ /**
31117
+ * List social/ad schedulers. Useful when agent setup needs to attach to an existing workflow.
31118
+ */
31119
+ Agents.listSchedulers = function (params) {
31120
+ return Requests.processRoute(AgentsRoute.routes.listSchedulers, {}, {}, params);
31121
+ };
31122
+ /**
31123
+ * Create a scheduler inline from an agent setup flow.
31124
+ */
31125
+ Agents.createScheduler = function (data, params) {
31126
+ return Requests.processRoute(AgentsRoute.routes.createScheduler, data || {}, {}, params);
31127
+ };
31096
31128
  /**
31097
31129
  * Cross-title agency cockpit: per-title agent status, billing/credits, and portfolio totals.
31098
31130
  */