glitch-javascript-sdk 3.2.13 → 3.2.15

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
@@ -26455,6 +26455,15 @@ var FeedbackRoute = /** @class */ (function () {
26455
26455
  listFeedback: { url: '/feedback', method: HTTP_METHODS.GET },
26456
26456
  sendFeedback: { url: '/feedback', method: HTTP_METHODS.POST },
26457
26457
  viewFeedback: { url: '/feedback/{feedback_id}', method: HTTP_METHODS.GET },
26458
+ listSupportTickets: { url: '/support/tickets', method: HTTP_METHODS.GET },
26459
+ createSupportTicket: { url: '/support/tickets', method: HTTP_METHODS.POST },
26460
+ viewSupportTicket: { url: '/support/tickets/{feedback_id}', method: HTTP_METHODS.GET },
26461
+ replySupportTicket: { url: '/support/tickets/{feedback_id}/replies', method: HTTP_METHODS.POST },
26462
+ adminListFeedback: { url: '/admin/support/feedback', method: HTTP_METHODS.GET },
26463
+ adminViewFeedback: { url: '/admin/support/feedback/{feedback_id}', method: HTTP_METHODS.GET },
26464
+ adminUpdateFeedback: { url: '/admin/support/feedback/{feedback_id}', method: HTTP_METHODS.PUT },
26465
+ adminReplyFeedback: { url: '/admin/support/feedback/{feedback_id}/reply', method: HTTP_METHODS.POST },
26466
+ adminRewardFeedback: { url: '/admin/support/feedback/{feedback_id}/reward', method: HTTP_METHODS.POST },
26458
26467
  };
26459
26468
  return FeedbackRoute;
26460
26469
  }());
@@ -26482,6 +26491,48 @@ var Feedback = /** @class */ (function () {
26482
26491
  Feedback.viewFeedback = function (feedback_id, params) {
26483
26492
  return Requests.processRoute(FeedbackRoute.routes.viewFeedback, undefined, { feedback_id: feedback_id }, params);
26484
26493
  };
26494
+ /**
26495
+ * List support tickets owned by the logged-in user.
26496
+ */
26497
+ Feedback.listSupportTickets = function (params) {
26498
+ return Requests.processRoute(FeedbackRoute.routes.listSupportTickets, undefined, undefined, params);
26499
+ };
26500
+ /**
26501
+ * Create a support ticket for the logged-in user.
26502
+ */
26503
+ Feedback.createSupportTicket = function (data, params) {
26504
+ return Requests.processRoute(FeedbackRoute.routes.createSupportTicket, data, {}, params);
26505
+ };
26506
+ /**
26507
+ * View a support ticket owned by the logged-in user.
26508
+ */
26509
+ Feedback.viewSupportTicket = function (feedback_id, params) {
26510
+ return Requests.processRoute(FeedbackRoute.routes.viewSupportTicket, undefined, { feedback_id: feedback_id }, params);
26511
+ };
26512
+ /**
26513
+ * Reply to a support ticket owned by the logged-in user.
26514
+ */
26515
+ Feedback.replySupportTicket = function (feedback_id, data, params) {
26516
+ return Requests.processRoute(FeedbackRoute.routes.replySupportTicket, data, { feedback_id: feedback_id }, params);
26517
+ };
26518
+ /**
26519
+ * Admin support inbox covering support tickets and feedback.
26520
+ */
26521
+ Feedback.adminListFeedback = function (params) {
26522
+ return Requests.processRoute(FeedbackRoute.routes.adminListFeedback, undefined, undefined, params);
26523
+ };
26524
+ Feedback.adminViewFeedback = function (feedback_id, params) {
26525
+ return Requests.processRoute(FeedbackRoute.routes.adminViewFeedback, undefined, { feedback_id: feedback_id }, params);
26526
+ };
26527
+ Feedback.adminUpdateFeedback = function (feedback_id, data, params) {
26528
+ return Requests.processRoute(FeedbackRoute.routes.adminUpdateFeedback, data, { feedback_id: feedback_id }, params);
26529
+ };
26530
+ Feedback.adminReplyFeedback = function (feedback_id, data, params) {
26531
+ return Requests.processRoute(FeedbackRoute.routes.adminReplyFeedback, data, { feedback_id: feedback_id }, params);
26532
+ };
26533
+ Feedback.adminRewardFeedback = function (feedback_id, data, params) {
26534
+ return Requests.processRoute(FeedbackRoute.routes.adminRewardFeedback, data, { feedback_id: feedback_id }, params);
26535
+ };
26485
26536
  /**
26486
26537
  * Submit feedback.
26487
26538
  *
@@ -31083,6 +31134,8 @@ var AgentsRoute = /** @class */ (function () {
31083
31134
  }
31084
31135
  AgentsRoute.routes = {
31085
31136
  listTitles: { url: "/agents/titles", method: HTTP_METHODS.GET },
31137
+ listCommunitySubscriptions: { url: "/agents/communities/{community_id}/subscriptions", method: HTTP_METHODS.GET },
31138
+ cancelCommunitySubscription: { url: "/agents/communities/{community_id}/subscriptions/{stripe_subscription_id}", method: HTTP_METHODS.DELETE },
31086
31139
  routeCatalog: { url: "/agents/routes/catalog", method: HTTP_METHODS.GET },
31087
31140
  workspace: { url: "/agents/titles/{title_id}/workspace", method: HTTP_METHODS.GET },
31088
31141
  listAgents: { url: "/agents/titles/{title_id}/agents", method: HTTP_METHODS.GET },
@@ -31128,6 +31181,18 @@ var Agents = /** @class */ (function () {
31128
31181
  Agents.listTitles = function (params) {
31129
31182
  return Requests.processRoute(AgentsRoute.routes.listTitles, {}, {}, params);
31130
31183
  };
31184
+ /**
31185
+ * List title-agent subscriptions linked to titles in a community.
31186
+ */
31187
+ Agents.listCommunitySubscriptions = function (community_id, params) {
31188
+ return Requests.processRoute(AgentsRoute.routes.listCommunitySubscriptions, {}, { community_id: community_id }, params);
31189
+ };
31190
+ /**
31191
+ * Cancel a title-agent subscription linked to a community title.
31192
+ */
31193
+ Agents.cancelCommunitySubscription = function (community_id, stripe_subscription_id, params) {
31194
+ return Requests.processRoute(AgentsRoute.routes.cancelCommunitySubscription, {}, { community_id: community_id, stripe_subscription_id: stripe_subscription_id }, params);
31195
+ };
31131
31196
  /**
31132
31197
  * Return the full Laravel API route catalog agents use for route-aware planning.
31133
31198
  */
@@ -31596,6 +31661,31 @@ var PrDirectory = /** @class */ (function () {
31596
31661
  return PrDirectory;
31597
31662
  }());
31598
31663
 
31664
+ var AdminReportsRoute = /** @class */ (function () {
31665
+ function AdminReportsRoute() {
31666
+ }
31667
+ AdminReportsRoute.routes = {
31668
+ usersRevenue: {
31669
+ url: '/admin/reports/users-revenue',
31670
+ method: HTTP_METHODS.GET
31671
+ },
31672
+ };
31673
+ return AdminReportsRoute;
31674
+ }());
31675
+
31676
+ var AdminReports = /** @class */ (function () {
31677
+ function AdminReports() {
31678
+ }
31679
+ /**
31680
+ * Returns aggregate site-admin reporting for user growth, churn, acquisition,
31681
+ * engagement, and user-generated revenue.
31682
+ */
31683
+ AdminReports.usersRevenue = function (params) {
31684
+ return Requests.processRoute(AdminReportsRoute.routes.usersRevenue, undefined, undefined, params);
31685
+ };
31686
+ return AdminReports;
31687
+ }());
31688
+
31599
31689
  var Parser = /** @class */ (function () {
31600
31690
  function Parser() {
31601
31691
  }
@@ -32142,6 +32232,7 @@ var Glitch = /** @class */ (function () {
32142
32232
  Agents: Agents,
32143
32233
  Mcp: Mcp,
32144
32234
  PrDirectory: PrDirectory,
32235
+ AdminReports: AdminReports,
32145
32236
  };
32146
32237
  Glitch.util = {
32147
32238
  Requests: Requests,