glitch-javascript-sdk 2.9.1 → 2.9.2

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.
@@ -579,5 +579,13 @@ declare class Titles {
579
579
  * @param status The new status ('ready', 'inactive', or 'failed').
580
580
  */
581
581
  static updateBuildStatus<T>(title_id: string, build_id: string, status: string): AxiosPromise<Response<T>>;
582
+ /**
583
+ * Proxies a request through the backend to the matchmaker.
584
+ * This avoids HTTPS -> HTTP mixed content blocks.
585
+ *
586
+ * @param title_id The UUID of the game title.
587
+ * @returns AxiosPromise containing { signallingServer: string }
588
+ */
589
+ static getMatchmakerServer<T>(title_id: string): AxiosPromise<Response<T>>;
582
590
  }
583
591
  export default Titles;
package/dist/esm/index.js CHANGED
@@ -11777,6 +11777,11 @@ var TitlesRoute = /** @class */ (function () {
11777
11777
  method: HTTP_METHODS.GET
11778
11778
  },
11779
11779
  updateBuildStatus: { url: '/titles/{title_id}/deployments/{build_id}/status', method: HTTP_METHODS.PUT },
11780
+ // Inside the routes object in TitlesRoute.ts
11781
+ getMatchmakerServer: {
11782
+ url: '/titles/{title_id}/matchmaker/server',
11783
+ method: HTTP_METHODS.GET
11784
+ },
11780
11785
  };
11781
11786
  return TitlesRoute;
11782
11787
  }());
@@ -12534,6 +12539,16 @@ var Titles = /** @class */ (function () {
12534
12539
  Titles.updateBuildStatus = function (title_id, build_id, status) {
12535
12540
  return Requests.processRoute(TitlesRoute.routes.updateBuildStatus, { status: status }, { title_id: title_id, build_id: build_id });
12536
12541
  };
12542
+ /**
12543
+ * Proxies a request through the backend to the matchmaker.
12544
+ * This avoids HTTPS -> HTTP mixed content blocks.
12545
+ *
12546
+ * @param title_id The UUID of the game title.
12547
+ * @returns AxiosPromise containing { signallingServer: string }
12548
+ */
12549
+ Titles.getMatchmakerServer = function (title_id) {
12550
+ return Requests.processRoute(TitlesRoute.routes.getMatchmakerServer, {}, { title_id: title_id });
12551
+ };
12537
12552
  return Titles;
12538
12553
  }());
12539
12554