glitch-javascript-sdk 1.6.9 → 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.
@@ -221,5 +221,16 @@ declare class Titles {
221
221
  static retentionSummary<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
222
222
  static activeRetentions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
223
223
  static retentionAnalysis<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
224
+ static distinctDimensions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
225
+ /**
226
+ * List sessions for a specific title, with optional filters and pagination.
227
+ * Returns a paginated list of sessions with start/end times, session_length, user info, etc.
228
+ */
229
+ static listSessions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
230
+ /**
231
+ * Get aggregated average session length data (daily/weekly/monthly) for a title.
232
+ * Optionally filter by platform/device_type/OS/version and group by one dimension.
233
+ */
234
+ static sessionsAverage<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
224
235
  }
225
236
  export default Titles;
package/dist/esm/index.js CHANGED
@@ -9641,6 +9641,15 @@ var TitlesRoute = /** @class */ (function () {
9641
9641
  retentionSummary: { url: '/titles/{title_id}/retentions/summary', method: HTTP_METHODS.GET },
9642
9642
  activeRetentions: { url: '/titles/{title_id}/retentions/active', method: HTTP_METHODS.GET },
9643
9643
  retentionAnalysis: { url: '/titles/{title_id}/retentions/analysis', method: HTTP_METHODS.GET },
9644
+ distinctDimensions: { url: '/titles/{title_id}/installs/distinctDimensions', method: HTTP_METHODS.GET },
9645
+ listSessions: {
9646
+ url: '/titles/{title_id}/installs/sessions',
9647
+ method: HTTP_METHODS.GET
9648
+ },
9649
+ sessionsAverage: {
9650
+ url: '/titles/{title_id}/installs/sessions/average',
9651
+ method: HTTP_METHODS.GET
9652
+ },
9644
9653
  };
9645
9654
  return TitlesRoute;
9646
9655
  }());
@@ -9927,6 +9936,23 @@ var Titles = /** @class */ (function () {
9927
9936
  Titles.retentionAnalysis = function (title_id, params) {
9928
9937
  return Requests.processRoute(TitlesRoute.routes.retentionAnalysis, {}, { title_id: title_id }, params);
9929
9938
  };
9939
+ Titles.distinctDimensions = function (title_id, params) {
9940
+ return Requests.processRoute(TitlesRoute.routes.distinctDimensions, {}, { title_id: title_id }, params);
9941
+ };
9942
+ /**
9943
+ * List sessions for a specific title, with optional filters and pagination.
9944
+ * Returns a paginated list of sessions with start/end times, session_length, user info, etc.
9945
+ */
9946
+ Titles.listSessions = function (title_id, params) {
9947
+ return Requests.processRoute(TitlesRoute.routes.listSessions, {}, { title_id: title_id }, params);
9948
+ };
9949
+ /**
9950
+ * Get aggregated average session length data (daily/weekly/monthly) for a title.
9951
+ * Optionally filter by platform/device_type/OS/version and group by one dimension.
9952
+ */
9953
+ Titles.sessionsAverage = function (title_id, params) {
9954
+ return Requests.processRoute(TitlesRoute.routes.sessionsAverage, {}, { title_id: title_id }, params);
9955
+ };
9930
9956
  return Titles;
9931
9957
  }());
9932
9958