glitch-javascript-sdk 3.2.28 → 3.2.29

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/index.d.ts CHANGED
@@ -8101,6 +8101,17 @@ declare class TwitchReporting {
8101
8101
  * @returns promise
8102
8102
  */
8103
8103
  static getMostActiveGames<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
8104
+ /**
8105
+ * Discover the most active Twitch games with Steam/IGDB genre, category,
8106
+ * theme, live snapshot, and trend metrics.
8107
+ *
8108
+ * @see https://api.glitch.fun/api/documentation#/Twitch%20Reporting/discoverActiveTwitchGames
8109
+ *
8110
+ * @param params Optional query parameters (e.g., genres, categories, match_mode, trend_days, sort_by, limit).
8111
+ *
8112
+ * @returns promise
8113
+ */
8114
+ static discoverActiveGames<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
8104
8115
  /**
8105
8116
  * Get top streamers by performance (average or peak CCV).
8106
8117
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "3.2.28",
3
+ "version": "3.2.29",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -58,6 +58,20 @@ class TwitchReporting {
58
58
  return Requests.processRoute(TwitchReportingRoute.routes.getMostActiveGames, undefined, undefined, params);
59
59
  }
60
60
 
61
+ /**
62
+ * Discover the most active Twitch games with Steam/IGDB genre, category,
63
+ * theme, live snapshot, and trend metrics.
64
+ *
65
+ * @see https://api.glitch.fun/api/documentation#/Twitch%20Reporting/discoverActiveTwitchGames
66
+ *
67
+ * @param params Optional query parameters (e.g., genres, categories, match_mode, trend_days, sort_by, limit).
68
+ *
69
+ * @returns promise
70
+ */
71
+ public static discoverActiveGames<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
72
+ return Requests.processRoute(TwitchReportingRoute.routes.discoverActiveGames, undefined, undefined, params);
73
+ }
74
+
61
75
  /**
62
76
  * Get top streamers by performance (average or peak CCV).
63
77
  *
@@ -107,4 +121,4 @@ class TwitchReporting {
107
121
 
108
122
  }
109
123
 
110
- export default TwitchReporting;
124
+ export default TwitchReporting;
@@ -20,6 +20,10 @@ class TwitchReportingRoute {
20
20
  url: '/reporting/twitch/games/most-active',
21
21
  method: HTTP_METHODS.GET
22
22
  },
23
+ discoverActiveGames: {
24
+ url: '/reporting/twitch/games/discovery',
25
+ method: HTTP_METHODS.GET
26
+ },
23
27
  getTopStreamers: {
24
28
  url: '/reporting/twitch/streamers/top',
25
29
  method: HTTP_METHODS.GET
@@ -40,4 +44,4 @@ class TwitchReportingRoute {
40
44
 
41
45
  }
42
46
 
43
- export default TwitchReportingRoute;
47
+ export default TwitchReportingRoute;