glitch-javascript-sdk 3.0.6 → 3.0.7

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
@@ -4592,6 +4592,21 @@ declare class Titles {
4592
4592
  limit?: number;
4593
4593
  device_id?: string;
4594
4594
  }): AxiosPromise<Response<T>>;
4595
+ /**
4596
+ * Get a curated, playable feed for the Swipe interface.
4597
+ * This route ensures games have builds and images, and supports seeded randomization.
4598
+ *
4599
+ * @see https://api.glitch.fun/api/documentation#/Discovery/getSwipeFeed
4600
+ *
4601
+ * @param params Object of query params:
4602
+ * - seed?: number (For consistent randomization)
4603
+ * - genres?: string[] (Filter by genre names)
4604
+ * - models?: string[] (premium, rental, subscription, free)
4605
+ * - excluded_ids?: string[] (UUIDs to skip)
4606
+ * - page?: number
4607
+ * - per_page?: number
4608
+ */
4609
+ static swipeFeed<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
4595
4610
  }
4596
4611
 
4597
4612
  declare class Campaigns {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
package/src/api/Titles.ts CHANGED
@@ -1253,6 +1253,24 @@ class Titles {
1253
1253
  public static getDiscoveryQueue<T>(params?: { limit?: number, device_id?: string }): AxiosPromise<Response<T>> {
1254
1254
  return Requests.processRoute(TitlesRoute.routes.discoveryQueue, {}, {}, params);
1255
1255
  }
1256
+
1257
+ /**
1258
+ * Get a curated, playable feed for the Swipe interface.
1259
+ * This route ensures games have builds and images, and supports seeded randomization.
1260
+ *
1261
+ * @see https://api.glitch.fun/api/documentation#/Discovery/getSwipeFeed
1262
+ *
1263
+ * @param params Object of query params:
1264
+ * - seed?: number (For consistent randomization)
1265
+ * - genres?: string[] (Filter by genre names)
1266
+ * - models?: string[] (premium, rental, subscription, free)
1267
+ * - excluded_ids?: string[] (UUIDs to skip)
1268
+ * - page?: number
1269
+ * - per_page?: number
1270
+ */
1271
+ public static swipeFeed<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
1272
+ return Requests.processRoute(TitlesRoute.routes.swipeFeed, {}, undefined, params);
1273
+ }
1256
1274
  }
1257
1275
 
1258
1276
  export default Titles;
@@ -282,6 +282,12 @@ class TitlesRoute {
282
282
  socialTrending: { url: '/titles/activity/social', method: HTTP_METHODS.GET },
283
283
  discoveryQueue: { url: '/titles/discovery/queue', method: HTTP_METHODS.GET },
284
284
 
285
+ /**
286
+ * Curated, playable feed for the Swipe interface.
287
+ * GET /titles/discovery/swipe
288
+ */
289
+ swipeFeed: { url: '/titles/discovery/swipe', method: HTTP_METHODS.GET },
290
+
285
291
  };
286
292
 
287
293
  }