glitch-javascript-sdk 1.7.0 → 1.7.1

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
@@ -22826,6 +22826,14 @@ var TitlesRoute = /** @class */ (function () {
22826
22826
  activeRetentions: { url: '/titles/{title_id}/retentions/active', method: HTTP_METHODS.GET },
22827
22827
  retentionAnalysis: { url: '/titles/{title_id}/retentions/analysis', method: HTTP_METHODS.GET },
22828
22828
  distinctDimensions: { url: '/titles/{title_id}/installs/distinctDimensions', method: HTTP_METHODS.GET },
22829
+ listSessions: {
22830
+ url: '/titles/{title_id}/installs/sessions',
22831
+ method: HTTP_METHODS.GET
22832
+ },
22833
+ sessionsAverage: {
22834
+ url: '/titles/{title_id}/installs/sessions/average',
22835
+ method: HTTP_METHODS.GET
22836
+ },
22829
22837
  };
22830
22838
  return TitlesRoute;
22831
22839
  }());
@@ -23115,6 +23123,20 @@ var Titles = /** @class */ (function () {
23115
23123
  Titles.distinctDimensions = function (title_id, params) {
23116
23124
  return Requests.processRoute(TitlesRoute.routes.distinctDimensions, {}, { title_id: title_id }, params);
23117
23125
  };
23126
+ /**
23127
+ * List sessions for a specific title, with optional filters and pagination.
23128
+ * Returns a paginated list of sessions with start/end times, session_length, user info, etc.
23129
+ */
23130
+ Titles.listSessions = function (title_id, params) {
23131
+ return Requests.processRoute(TitlesRoute.routes.listSessions, {}, { title_id: title_id }, params);
23132
+ };
23133
+ /**
23134
+ * Get aggregated average session length data (daily/weekly/monthly) for a title.
23135
+ * Optionally filter by platform/device_type/OS/version and group by one dimension.
23136
+ */
23137
+ Titles.sessionsAverage = function (title_id, params) {
23138
+ return Requests.processRoute(TitlesRoute.routes.sessionsAverage, {}, { title_id: title_id }, params);
23139
+ };
23118
23140
  return Titles;
23119
23141
  }());
23120
23142