glitch-javascript-sdk 3.1.5 → 3.2.0

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.
@@ -0,0 +1,81 @@
1
+ import Response from "../util/Response";
2
+ import { AxiosPromise } from "axios";
3
+ declare class Agents {
4
+ /**
5
+ * List game titles that can be managed in the Agents section.
6
+ */
7
+ static listTitles<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
8
+ /**
9
+ * Return the full Laravel API route catalog agents use for route-aware planning.
10
+ */
11
+ static routeCatalog<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
12
+ /**
13
+ * Get a title-scoped agent workspace with setup, billing, counts, and route summary.
14
+ */
15
+ static workspace<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
16
+ /**
17
+ * List agents for a title.
18
+ */
19
+ static listAgents<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
20
+ /**
21
+ * Create an agent before payment. Runs/results remain gated until trial/subscription.
22
+ */
23
+ static createAgent<T>(title_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
24
+ /**
25
+ * View one agent.
26
+ */
27
+ static viewAgent<T>(title_id: string, agent_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
28
+ /**
29
+ * Update an agent's setup, policies, and guidance stop rules.
30
+ */
31
+ static updateAgent<T>(title_id: string, agent_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
32
+ /**
33
+ * Archive an agent.
34
+ */
35
+ static deleteAgent<T>(title_id: string, agent_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
36
+ /**
37
+ * Run an agent planning cycle. Returns 402 when trial/subscription is required.
38
+ */
39
+ static runAgent<T>(title_id: string, agent_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
40
+ /**
41
+ * List agent runs for a title.
42
+ */
43
+ static listRuns<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
44
+ /**
45
+ * List agent actions/approval queue for a title.
46
+ */
47
+ static listActions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
48
+ /**
49
+ * Approve an agent action.
50
+ */
51
+ static approveAction<T>(title_id: string, action_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
52
+ /**
53
+ * Reject an agent action.
54
+ */
55
+ static rejectAction<T>(title_id: string, action_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
56
+ /**
57
+ * Execute an approved safe action.
58
+ */
59
+ static executeAction<T>(title_id: string, action_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
60
+ /**
61
+ * List guidance requests where agents have stopped for developer direction.
62
+ */
63
+ static listGuidance<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
64
+ /**
65
+ * Answer a guidance request and write structured agent memory.
66
+ */
67
+ static answerGuidance<T>(title_id: string, guidance_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
68
+ /**
69
+ * List structured agent memories for a title.
70
+ */
71
+ static listMemories<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
72
+ /**
73
+ * Get results and outcome summary for title agents. Returns 402 until trial/subscription is active.
74
+ */
75
+ static results<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
76
+ /**
77
+ * Start a Stripe-backed agent trial/subscription after setup.
78
+ */
79
+ static startTrial<T>(title_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
80
+ }
81
+ export default Agents;
@@ -0,0 +1,35 @@
1
+ import Response from "../util/Response";
2
+ import { AxiosPromise } from "axios";
3
+ declare class RedditSubreddits {
4
+ /**
5
+ * Search indexed Reddit communities for game marketing research.
6
+ *
7
+ * @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/indexRedditSubreddits
8
+ */
9
+ static list<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
10
+ /**
11
+ * Get an analyzed subreddit record by display name.
12
+ *
13
+ * @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/showRedditSubreddit
14
+ */
15
+ static show<T>(subreddit: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
16
+ /**
17
+ * Match a game concept to relevant Reddit communities.
18
+ *
19
+ * @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/matchRedditSubreddits
20
+ */
21
+ static match<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
22
+ /**
23
+ * Admin-only ingestion of subreddit metadata and rules.
24
+ *
25
+ * @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/ingestRedditSubreddits
26
+ */
27
+ static ingest<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
28
+ /**
29
+ * Admin-only refresh for one subreddit.
30
+ *
31
+ * @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/refreshRedditSubreddit
32
+ */
33
+ static refresh<T>(subreddit: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
34
+ }
35
+ export default RedditSubreddits;
@@ -477,7 +477,7 @@ declare class Scheduler {
477
477
  */
478
478
  static deleteDestination<T>(scheduler_id: string, update_id: string, destination_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
479
479
  /**
480
- * Get AI-powered subreddit recommendations for a scheduler.
480
+ * Get subreddit recommendations for a scheduler.
481
481
  *
482
482
  * @see https://api.glitch.fun/api/documentation#/Scheduler/getSchedulerRedditRecommendations
483
483
  *
@@ -496,6 +496,22 @@ declare class Scheduler {
496
496
  * @returns promise
497
497
  */
498
498
  static generateRedditContent<T>(scheduler_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
499
+ /**
500
+ * Match the scheduler title to indexed Reddit communities.
501
+ *
502
+ * @param scheduler_id The ID of the promotion schedule.
503
+ * @param data Optional post context and filters.
504
+ * @returns promise
505
+ */
506
+ static getRedditSubredditMatches<T>(scheduler_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
507
+ /**
508
+ * Position a registered game for a subreddit and optionally prepare Reddit draft content.
509
+ *
510
+ * @param scheduler_id The ID of the promotion schedule.
511
+ * @param data The target subreddit and optional post context.
512
+ * @returns promise
513
+ */
514
+ static getRedditSubredditPositioning<T>(scheduler_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
499
515
  /**
500
516
  * Get all posts and comments for a scheduler.
501
517
  *
@@ -30,6 +30,7 @@ import Newsletters from "./Newsletters";
30
30
  import PlayTests from "./PlayTests";
31
31
  import Media from "./Media";
32
32
  import Scheduler from "./Scheduler";
33
+ import RedditSubreddits from "./RedditSubreddits";
33
34
  import Funnel from "./Funnel";
34
35
  import SocialStats from "./SocialStats";
35
36
  import Hashtags from "./Hashtags";
@@ -44,6 +45,7 @@ import Education from "./Education";
44
45
  import Crm from "./Crm";
45
46
  import Multiplayer from "./Multiplayer";
46
47
  import ServerOperations from "./ServerOperations";
48
+ import Agents from "./Agents";
47
49
  export { Ads };
48
50
  export { AccessKeys };
49
51
  export { Auth };
@@ -75,6 +77,7 @@ export { Newsletters };
75
77
  export { PlayTests };
76
78
  export { Media };
77
79
  export { Scheduler };
80
+ export { RedditSubreddits };
78
81
  export { Funnel };
79
82
  export { SocialStats };
80
83
  export { Hashtags };
@@ -90,3 +93,4 @@ export { Education };
90
93
  export { Crm };
91
94
  export { Multiplayer };
92
95
  export { ServerOperations };
96
+ export { Agents };
@@ -29,6 +29,7 @@ import { Newsletters } from "./api";
29
29
  import { PlayTests } from "./api";
30
30
  import { Media } from "./api";
31
31
  import { Scheduler } from "./api";
32
+ import { RedditSubreddits } from "./api";
32
33
  import { Funnel } from "./api";
33
34
  import { SocialStats } from "./api";
34
35
  import { Hashtags } from "./api";
@@ -44,6 +45,7 @@ import { Education } from './api';
44
45
  import { Crm } from './api';
45
46
  import { Multiplayer } from './api';
46
47
  import { ServerOperations } from './api';
48
+ import { Agents } from './api';
47
49
  import Requests from "./util/Requests";
48
50
  import Parser from "./util/Parser";
49
51
  import Session from "./util/Session";
@@ -95,6 +97,7 @@ declare class Glitch {
95
97
  PlayTests: typeof PlayTests;
96
98
  Media: typeof Media;
97
99
  Scheduler: typeof Scheduler;
100
+ RedditSubreddits: typeof RedditSubreddits;
98
101
  Funnel: typeof Funnel;
99
102
  SocialStats: typeof SocialStats;
100
103
  WebsiteAnalytics: typeof WebsiteAnalytics;
@@ -109,6 +112,7 @@ declare class Glitch {
109
112
  Crm: typeof Crm;
110
113
  Multiplayer: typeof Multiplayer;
111
114
  ServerOperations: typeof ServerOperations;
115
+ Agents: typeof Agents;
112
116
  };
113
117
  static util: {
114
118
  Requests: typeof Requests;
package/dist/esm/index.js CHANGED
@@ -15613,6 +15613,8 @@ var SchedulerRoute = /** @class */ (function () {
15613
15613
  },
15614
15614
  getRedditRecommendations: { url: '/schedulers/{scheduler_id}/reddit/recommendations', method: HTTP_METHODS.POST },
15615
15615
  generateRedditContent: { url: '/schedulers/{scheduler_id}/reddit/generateContent', method: HTTP_METHODS.POST },
15616
+ getRedditSubredditMatches: { url: '/schedulers/{scheduler_id}/reddit/subreddit-matches', method: HTTP_METHODS.POST },
15617
+ getRedditSubredditPositioning: { url: '/schedulers/{scheduler_id}/reddit/subreddit-positioning', method: HTTP_METHODS.POST },
15616
15618
  listDestinations: { url: '/schedulers/{scheduler_id}/updates/{update_id}/destinations', method: HTTP_METHODS.GET },
15617
15619
  createDestination: { url: '/schedulers/{scheduler_id}/updates/{update_id}/destinations', method: HTTP_METHODS.POST },
15618
15620
  getDestination: { url: '/schedulers/{scheduler_id}/updates/{update_id}/destinations/{destination_id}', method: HTTP_METHODS.GET },
@@ -16243,7 +16245,7 @@ var Scheduler = /** @class */ (function () {
16243
16245
  return Requests.processRoute(SchedulerRoute.routes.deleteDestination, {}, { scheduler_id: scheduler_id, update_id: update_id, destination_id: destination_id }, params);
16244
16246
  };
16245
16247
  /**
16246
- * Get AI-powered subreddit recommendations for a scheduler.
16248
+ * Get subreddit recommendations for a scheduler.
16247
16249
  *
16248
16250
  * @see https://api.glitch.fun/api/documentation#/Scheduler/getSchedulerRedditRecommendations
16249
16251
  *
@@ -16266,6 +16268,27 @@ var Scheduler = /** @class */ (function () {
16266
16268
  Scheduler.generateRedditContent = function (scheduler_id, data, params) {
16267
16269
  return Requests.processRoute(SchedulerRoute.routes.generateRedditContent, data, { scheduler_id: scheduler_id }, params);
16268
16270
  };
16271
+ /**
16272
+ * Match the scheduler title to indexed Reddit communities.
16273
+ *
16274
+ * @param scheduler_id The ID of the promotion schedule.
16275
+ * @param data Optional post context and filters.
16276
+ * @returns promise
16277
+ */
16278
+ Scheduler.getRedditSubredditMatches = function (scheduler_id, data, params) {
16279
+ if (data === void 0) { data = {}; }
16280
+ return Requests.processRoute(SchedulerRoute.routes.getRedditSubredditMatches, data, { scheduler_id: scheduler_id }, params);
16281
+ };
16282
+ /**
16283
+ * Position a registered game for a subreddit and optionally prepare Reddit draft content.
16284
+ *
16285
+ * @param scheduler_id The ID of the promotion schedule.
16286
+ * @param data The target subreddit and optional post context.
16287
+ * @returns promise
16288
+ */
16289
+ Scheduler.getRedditSubredditPositioning = function (scheduler_id, data, params) {
16290
+ return Requests.processRoute(SchedulerRoute.routes.getRedditSubredditPositioning, data, { scheduler_id: scheduler_id }, params);
16291
+ };
16269
16292
  /**
16270
16293
  * Get all posts and comments for a scheduler.
16271
16294
  *
@@ -16371,6 +16394,66 @@ var Scheduler = /** @class */ (function () {
16371
16394
  return Scheduler;
16372
16395
  }());
16373
16396
 
16397
+ var RedditSubredditsRoute = /** @class */ (function () {
16398
+ function RedditSubredditsRoute() {
16399
+ }
16400
+ RedditSubredditsRoute.routes = {
16401
+ list: { url: '/reddit/subreddits', method: HTTP_METHODS.GET },
16402
+ show: { url: '/reddit/subreddits/{subreddit}', method: HTTP_METHODS.GET },
16403
+ match: { url: '/reddit/subreddits/match', method: HTTP_METHODS.POST },
16404
+ ingest: { url: '/admin/reddit/subreddits/ingest', method: HTTP_METHODS.POST },
16405
+ refresh: { url: '/admin/reddit/subreddits/{subreddit}/refresh', method: HTTP_METHODS.POST },
16406
+ };
16407
+ return RedditSubredditsRoute;
16408
+ }());
16409
+
16410
+ var RedditSubreddits = /** @class */ (function () {
16411
+ function RedditSubreddits() {
16412
+ }
16413
+ /**
16414
+ * Search indexed Reddit communities for game marketing research.
16415
+ *
16416
+ * @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/indexRedditSubreddits
16417
+ */
16418
+ RedditSubreddits.list = function (params) {
16419
+ return Requests.processRoute(RedditSubredditsRoute.routes.list, undefined, undefined, params);
16420
+ };
16421
+ /**
16422
+ * Get an analyzed subreddit record by display name.
16423
+ *
16424
+ * @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/showRedditSubreddit
16425
+ */
16426
+ RedditSubreddits.show = function (subreddit, params) {
16427
+ return Requests.processRoute(RedditSubredditsRoute.routes.show, undefined, { subreddit: subreddit }, params);
16428
+ };
16429
+ /**
16430
+ * Match a game concept to relevant Reddit communities.
16431
+ *
16432
+ * @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/matchRedditSubreddits
16433
+ */
16434
+ RedditSubreddits.match = function (data, params) {
16435
+ return Requests.processRoute(RedditSubredditsRoute.routes.match, data, undefined, params);
16436
+ };
16437
+ /**
16438
+ * Admin-only ingestion of subreddit metadata and rules.
16439
+ *
16440
+ * @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/ingestRedditSubreddits
16441
+ */
16442
+ RedditSubreddits.ingest = function (data, params) {
16443
+ return Requests.processRoute(RedditSubredditsRoute.routes.ingest, data, undefined, params);
16444
+ };
16445
+ /**
16446
+ * Admin-only refresh for one subreddit.
16447
+ *
16448
+ * @see https://api.glitch.fun/api/documentation#/Reddit%20Subreddit%20Intelligence/refreshRedditSubreddit
16449
+ */
16450
+ RedditSubreddits.refresh = function (subreddit, data, params) {
16451
+ if (data === void 0) { data = {}; }
16452
+ return Requests.processRoute(RedditSubredditsRoute.routes.refresh, data, { subreddit: subreddit }, params);
16453
+ };
16454
+ return RedditSubreddits;
16455
+ }());
16456
+
16374
16457
  // src/routes/FunnelRoutes.tsx
16375
16458
  var FunnelRoutes = /** @class */ (function () {
16376
16459
  function FunnelRoutes() {
@@ -18799,6 +18882,153 @@ var ServerOperations = /** @class */ (function () {
18799
18882
  return ServerOperations;
18800
18883
  }());
18801
18884
 
18885
+ var AgentsRoute = /** @class */ (function () {
18886
+ function AgentsRoute() {
18887
+ }
18888
+ AgentsRoute.routes = {
18889
+ listTitles: { url: "/agents/titles", method: HTTP_METHODS.GET },
18890
+ routeCatalog: { url: "/agents/routes/catalog", method: HTTP_METHODS.GET },
18891
+ workspace: { url: "/agents/titles/{title_id}/workspace", method: HTTP_METHODS.GET },
18892
+ listAgents: { url: "/agents/titles/{title_id}/agents", method: HTTP_METHODS.GET },
18893
+ createAgent: { url: "/agents/titles/{title_id}/agents", method: HTTP_METHODS.POST },
18894
+ viewAgent: { url: "/agents/titles/{title_id}/agents/{agent_id}", method: HTTP_METHODS.GET },
18895
+ updateAgent: { url: "/agents/titles/{title_id}/agents/{agent_id}", method: HTTP_METHODS.PUT },
18896
+ deleteAgent: { url: "/agents/titles/{title_id}/agents/{agent_id}", method: HTTP_METHODS.DELETE },
18897
+ runAgent: { url: "/agents/titles/{title_id}/agents/{agent_id}/run", method: HTTP_METHODS.POST },
18898
+ listRuns: { url: "/agents/titles/{title_id}/runs", method: HTTP_METHODS.GET },
18899
+ listActions: { url: "/agents/titles/{title_id}/actions", method: HTTP_METHODS.GET },
18900
+ approveAction: { url: "/agents/titles/{title_id}/actions/{action_id}/approve", method: HTTP_METHODS.POST },
18901
+ rejectAction: { url: "/agents/titles/{title_id}/actions/{action_id}/reject", method: HTTP_METHODS.POST },
18902
+ executeAction: { url: "/agents/titles/{title_id}/actions/{action_id}/execute", method: HTTP_METHODS.POST },
18903
+ listGuidance: { url: "/agents/titles/{title_id}/guidance", method: HTTP_METHODS.GET },
18904
+ answerGuidance: { url: "/agents/titles/{title_id}/guidance/{guidance_id}/answer", method: HTTP_METHODS.POST },
18905
+ listMemories: { url: "/agents/titles/{title_id}/memories", method: HTTP_METHODS.GET },
18906
+ results: { url: "/agents/titles/{title_id}/results", method: HTTP_METHODS.GET },
18907
+ startTrial: { url: "/agents/titles/{title_id}/subscription/trial", method: HTTP_METHODS.POST },
18908
+ };
18909
+ return AgentsRoute;
18910
+ }());
18911
+
18912
+ var Agents = /** @class */ (function () {
18913
+ function Agents() {
18914
+ }
18915
+ /**
18916
+ * List game titles that can be managed in the Agents section.
18917
+ */
18918
+ Agents.listTitles = function (params) {
18919
+ return Requests.processRoute(AgentsRoute.routes.listTitles, {}, {}, params);
18920
+ };
18921
+ /**
18922
+ * Return the full Laravel API route catalog agents use for route-aware planning.
18923
+ */
18924
+ Agents.routeCatalog = function (params) {
18925
+ return Requests.processRoute(AgentsRoute.routes.routeCatalog, {}, {}, params);
18926
+ };
18927
+ /**
18928
+ * Get a title-scoped agent workspace with setup, billing, counts, and route summary.
18929
+ */
18930
+ Agents.workspace = function (title_id, params) {
18931
+ return Requests.processRoute(AgentsRoute.routes.workspace, {}, { title_id: title_id }, params);
18932
+ };
18933
+ /**
18934
+ * List agents for a title.
18935
+ */
18936
+ Agents.listAgents = function (title_id, params) {
18937
+ return Requests.processRoute(AgentsRoute.routes.listAgents, {}, { title_id: title_id }, params);
18938
+ };
18939
+ /**
18940
+ * Create an agent before payment. Runs/results remain gated until trial/subscription.
18941
+ */
18942
+ Agents.createAgent = function (title_id, data, params) {
18943
+ return Requests.processRoute(AgentsRoute.routes.createAgent, data, { title_id: title_id }, params);
18944
+ };
18945
+ /**
18946
+ * View one agent.
18947
+ */
18948
+ Agents.viewAgent = function (title_id, agent_id, params) {
18949
+ return Requests.processRoute(AgentsRoute.routes.viewAgent, {}, { title_id: title_id, agent_id: agent_id }, params);
18950
+ };
18951
+ /**
18952
+ * Update an agent's setup, policies, and guidance stop rules.
18953
+ */
18954
+ Agents.updateAgent = function (title_id, agent_id, data, params) {
18955
+ return Requests.processRoute(AgentsRoute.routes.updateAgent, data, { title_id: title_id, agent_id: agent_id }, params);
18956
+ };
18957
+ /**
18958
+ * Archive an agent.
18959
+ */
18960
+ Agents.deleteAgent = function (title_id, agent_id, params) {
18961
+ return Requests.processRoute(AgentsRoute.routes.deleteAgent, {}, { title_id: title_id, agent_id: agent_id }, params);
18962
+ };
18963
+ /**
18964
+ * Run an agent planning cycle. Returns 402 when trial/subscription is required.
18965
+ */
18966
+ Agents.runAgent = function (title_id, agent_id, data, params) {
18967
+ return Requests.processRoute(AgentsRoute.routes.runAgent, data, { title_id: title_id, agent_id: agent_id }, params);
18968
+ };
18969
+ /**
18970
+ * List agent runs for a title.
18971
+ */
18972
+ Agents.listRuns = function (title_id, params) {
18973
+ return Requests.processRoute(AgentsRoute.routes.listRuns, {}, { title_id: title_id }, params);
18974
+ };
18975
+ /**
18976
+ * List agent actions/approval queue for a title.
18977
+ */
18978
+ Agents.listActions = function (title_id, params) {
18979
+ return Requests.processRoute(AgentsRoute.routes.listActions, {}, { title_id: title_id }, params);
18980
+ };
18981
+ /**
18982
+ * Approve an agent action.
18983
+ */
18984
+ Agents.approveAction = function (title_id, action_id, data, params) {
18985
+ return Requests.processRoute(AgentsRoute.routes.approveAction, data || {}, { title_id: title_id, action_id: action_id }, params);
18986
+ };
18987
+ /**
18988
+ * Reject an agent action.
18989
+ */
18990
+ Agents.rejectAction = function (title_id, action_id, data, params) {
18991
+ return Requests.processRoute(AgentsRoute.routes.rejectAction, data || {}, { title_id: title_id, action_id: action_id }, params);
18992
+ };
18993
+ /**
18994
+ * Execute an approved safe action.
18995
+ */
18996
+ Agents.executeAction = function (title_id, action_id, data, params) {
18997
+ return Requests.processRoute(AgentsRoute.routes.executeAction, data || {}, { title_id: title_id, action_id: action_id }, params);
18998
+ };
18999
+ /**
19000
+ * List guidance requests where agents have stopped for developer direction.
19001
+ */
19002
+ Agents.listGuidance = function (title_id, params) {
19003
+ return Requests.processRoute(AgentsRoute.routes.listGuidance, {}, { title_id: title_id }, params);
19004
+ };
19005
+ /**
19006
+ * Answer a guidance request and write structured agent memory.
19007
+ */
19008
+ Agents.answerGuidance = function (title_id, guidance_id, data, params) {
19009
+ return Requests.processRoute(AgentsRoute.routes.answerGuidance, data, { title_id: title_id, guidance_id: guidance_id }, params);
19010
+ };
19011
+ /**
19012
+ * List structured agent memories for a title.
19013
+ */
19014
+ Agents.listMemories = function (title_id, params) {
19015
+ return Requests.processRoute(AgentsRoute.routes.listMemories, {}, { title_id: title_id }, params);
19016
+ };
19017
+ /**
19018
+ * Get results and outcome summary for title agents. Returns 402 until trial/subscription is active.
19019
+ */
19020
+ Agents.results = function (title_id, params) {
19021
+ return Requests.processRoute(AgentsRoute.routes.results, {}, { title_id: title_id }, params);
19022
+ };
19023
+ /**
19024
+ * Start a Stripe-backed agent trial/subscription after setup.
19025
+ */
19026
+ Agents.startTrial = function (title_id, data, params) {
19027
+ return Requests.processRoute(AgentsRoute.routes.startTrial, data, { title_id: title_id }, params);
19028
+ };
19029
+ return Agents;
19030
+ }());
19031
+
18802
19032
  var Parser = /** @class */ (function () {
18803
19033
  function Parser() {
18804
19034
  }
@@ -19327,6 +19557,7 @@ var Glitch = /** @class */ (function () {
19327
19557
  PlayTests: PlayTests,
19328
19558
  Media: Media,
19329
19559
  Scheduler: Scheduler,
19560
+ RedditSubreddits: RedditSubreddits,
19330
19561
  Funnel: Funnel,
19331
19562
  SocialStats: SocialStats,
19332
19563
  WebsiteAnalytics: WebsiteAnalytics,
@@ -19341,6 +19572,7 @@ var Glitch = /** @class */ (function () {
19341
19572
  Crm: Crm,
19342
19573
  Multiplayer: Multiplayer,
19343
19574
  ServerOperations: ServerOperations,
19575
+ Agents: Agents,
19344
19576
  };
19345
19577
  Glitch.util = {
19346
19578
  Requests: Requests,