glitch-javascript-sdk 3.2.13 → 3.2.14

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,10 @@
1
+ import Response from "../util/Response";
2
+ import { AxiosPromise } from "axios";
3
+ declare class AdminReports {
4
+ /**
5
+ * Returns aggregate site-admin reporting for user growth, churn, acquisition,
6
+ * engagement, and user-generated revenue.
7
+ */
8
+ static usersRevenue<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
9
+ }
10
+ export default AdminReports;
@@ -16,6 +16,14 @@ declare class Agents {
16
16
  * List game titles that can be managed in the Agents section.
17
17
  */
18
18
  static listTitles<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
19
+ /**
20
+ * List title-agent subscriptions linked to titles in a community.
21
+ */
22
+ static listCommunitySubscriptions<T>(community_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
23
+ /**
24
+ * Cancel a title-agent subscription linked to a community title.
25
+ */
26
+ static cancelCommunitySubscription<T>(community_id: string, stripe_subscription_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
19
27
  /**
20
28
  * Return the full Laravel API route catalog agents use for route-aware planning.
21
29
  */
@@ -48,6 +48,7 @@ import ServerOperations from "./ServerOperations";
48
48
  import Agents from "./Agents";
49
49
  import Mcp from "./Mcp";
50
50
  import PrDirectory from "./PrDirectory";
51
+ import AdminReports from "./AdminReports";
51
52
  export { Ads };
52
53
  export { AccessKeys };
53
54
  export { Auth };
@@ -98,3 +99,4 @@ export { ServerOperations };
98
99
  export { Agents };
99
100
  export { Mcp };
100
101
  export { PrDirectory };
102
+ export { AdminReports };
@@ -48,6 +48,7 @@ import { ServerOperations } from './api';
48
48
  import { Agents } from './api';
49
49
  import { Mcp } from './api';
50
50
  import { PrDirectory } from './api';
51
+ import { AdminReports } from './api';
51
52
  import Requests from "./util/Requests";
52
53
  import Parser from "./util/Parser";
53
54
  import Session from "./util/Session";
@@ -117,6 +118,7 @@ declare class Glitch {
117
118
  Agents: typeof Agents;
118
119
  Mcp: typeof Mcp;
119
120
  PrDirectory: typeof PrDirectory;
121
+ AdminReports: typeof AdminReports;
120
122
  };
121
123
  static util: {
122
124
  Requests: typeof Requests;
package/dist/esm/index.js CHANGED
@@ -19085,6 +19085,8 @@ var AgentsRoute = /** @class */ (function () {
19085
19085
  }
19086
19086
  AgentsRoute.routes = {
19087
19087
  listTitles: { url: "/agents/titles", method: HTTP_METHODS.GET },
19088
+ listCommunitySubscriptions: { url: "/agents/communities/{community_id}/subscriptions", method: HTTP_METHODS.GET },
19089
+ cancelCommunitySubscription: { url: "/agents/communities/{community_id}/subscriptions/{stripe_subscription_id}", method: HTTP_METHODS.DELETE },
19088
19090
  routeCatalog: { url: "/agents/routes/catalog", method: HTTP_METHODS.GET },
19089
19091
  workspace: { url: "/agents/titles/{title_id}/workspace", method: HTTP_METHODS.GET },
19090
19092
  listAgents: { url: "/agents/titles/{title_id}/agents", method: HTTP_METHODS.GET },
@@ -19130,6 +19132,18 @@ var Agents = /** @class */ (function () {
19130
19132
  Agents.listTitles = function (params) {
19131
19133
  return Requests.processRoute(AgentsRoute.routes.listTitles, {}, {}, params);
19132
19134
  };
19135
+ /**
19136
+ * List title-agent subscriptions linked to titles in a community.
19137
+ */
19138
+ Agents.listCommunitySubscriptions = function (community_id, params) {
19139
+ return Requests.processRoute(AgentsRoute.routes.listCommunitySubscriptions, {}, { community_id: community_id }, params);
19140
+ };
19141
+ /**
19142
+ * Cancel a title-agent subscription linked to a community title.
19143
+ */
19144
+ Agents.cancelCommunitySubscription = function (community_id, stripe_subscription_id, params) {
19145
+ return Requests.processRoute(AgentsRoute.routes.cancelCommunitySubscription, {}, { community_id: community_id, stripe_subscription_id: stripe_subscription_id }, params);
19146
+ };
19133
19147
  /**
19134
19148
  * Return the full Laravel API route catalog agents use for route-aware planning.
19135
19149
  */
@@ -19598,6 +19612,31 @@ var PrDirectory = /** @class */ (function () {
19598
19612
  return PrDirectory;
19599
19613
  }());
19600
19614
 
19615
+ var AdminReportsRoute = /** @class */ (function () {
19616
+ function AdminReportsRoute() {
19617
+ }
19618
+ AdminReportsRoute.routes = {
19619
+ usersRevenue: {
19620
+ url: '/admin/reports/users-revenue',
19621
+ method: HTTP_METHODS.GET
19622
+ },
19623
+ };
19624
+ return AdminReportsRoute;
19625
+ }());
19626
+
19627
+ var AdminReports = /** @class */ (function () {
19628
+ function AdminReports() {
19629
+ }
19630
+ /**
19631
+ * Returns aggregate site-admin reporting for user growth, churn, acquisition,
19632
+ * engagement, and user-generated revenue.
19633
+ */
19634
+ AdminReports.usersRevenue = function (params) {
19635
+ return Requests.processRoute(AdminReportsRoute.routes.usersRevenue, undefined, undefined, params);
19636
+ };
19637
+ return AdminReports;
19638
+ }());
19639
+
19601
19640
  var Parser = /** @class */ (function () {
19602
19641
  function Parser() {
19603
19642
  }
@@ -20144,6 +20183,7 @@ var Glitch = /** @class */ (function () {
20144
20183
  Agents: Agents,
20145
20184
  Mcp: Mcp,
20146
20185
  PrDirectory: PrDirectory,
20186
+ AdminReports: AdminReports,
20147
20187
  };
20148
20188
  Glitch.util = {
20149
20189
  Requests: Requests,