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.
@@ -670,5 +670,20 @@ declare class Titles {
670
670
  limit?: number;
671
671
  device_id?: string;
672
672
  }): AxiosPromise<Response<T>>;
673
+ /**
674
+ * Get a curated, playable feed for the Swipe interface.
675
+ * This route ensures games have builds and images, and supports seeded randomization.
676
+ *
677
+ * @see https://api.glitch.fun/api/documentation#/Discovery/getSwipeFeed
678
+ *
679
+ * @param params Object of query params:
680
+ * - seed?: number (For consistent randomization)
681
+ * - genres?: string[] (Filter by genre names)
682
+ * - models?: string[] (premium, rental, subscription, free)
683
+ * - excluded_ids?: string[] (UUIDs to skip)
684
+ * - page?: number
685
+ * - per_page?: number
686
+ */
687
+ static swipeFeed<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
673
688
  }
674
689
  export default Titles;
package/dist/esm/index.js CHANGED
@@ -11981,6 +11981,11 @@ var TitlesRoute = /** @class */ (function () {
11981
11981
  communityActivity: { url: '/titles/activity/trending', method: HTTP_METHODS.GET },
11982
11982
  socialTrending: { url: '/titles/activity/social', method: HTTP_METHODS.GET },
11983
11983
  discoveryQueue: { url: '/titles/discovery/queue', method: HTTP_METHODS.GET },
11984
+ /**
11985
+ * Curated, playable feed for the Swipe interface.
11986
+ * GET /titles/discovery/swipe
11987
+ */
11988
+ swipeFeed: { url: '/titles/discovery/swipe', method: HTTP_METHODS.GET },
11984
11989
  };
11985
11990
  return TitlesRoute;
11986
11991
  }());
@@ -12863,6 +12868,23 @@ var Titles = /** @class */ (function () {
12863
12868
  Titles.getDiscoveryQueue = function (params) {
12864
12869
  return Requests.processRoute(TitlesRoute.routes.discoveryQueue, {}, {}, params);
12865
12870
  };
12871
+ /**
12872
+ * Get a curated, playable feed for the Swipe interface.
12873
+ * This route ensures games have builds and images, and supports seeded randomization.
12874
+ *
12875
+ * @see https://api.glitch.fun/api/documentation#/Discovery/getSwipeFeed
12876
+ *
12877
+ * @param params Object of query params:
12878
+ * - seed?: number (For consistent randomization)
12879
+ * - genres?: string[] (Filter by genre names)
12880
+ * - models?: string[] (premium, rental, subscription, free)
12881
+ * - excluded_ids?: string[] (UUIDs to skip)
12882
+ * - page?: number
12883
+ * - per_page?: number
12884
+ */
12885
+ Titles.swipeFeed = function (params) {
12886
+ return Requests.processRoute(TitlesRoute.routes.swipeFeed, {}, undefined, params);
12887
+ };
12866
12888
  return Titles;
12867
12889
  }());
12868
12890