glitch-javascript-sdk 2.9.2 → 2.9.4

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/cjs/index.js CHANGED
@@ -24920,6 +24920,9 @@ var TitlesRoute = /** @class */ (function () {
24920
24920
  getDeploymentUploadUrl: { url: '/titles/{title_id}/deployments/presigned-url', method: HTTP_METHODS.POST },
24921
24921
  confirmDeployment: { url: '/titles/{title_id}/deployments/confirm', method: HTTP_METHODS.POST },
24922
24922
  getPlaySession: { url: '/titles/{title_id}/play', method: HTTP_METHODS.GET },
24923
+ initiateMultipartUpload: { url: '/titles/{title_id}/deployments/multipart/initiate', method: HTTP_METHODS.POST },
24924
+ getMultipartUrls: { url: '/titles/{title_id}/deployments/multipart/urls', method: HTTP_METHODS.POST },
24925
+ completeMultipartUpload: { url: '/titles/{title_id}/deployments/multipart/complete', method: HTTP_METHODS.POST },
24923
24926
  // Aegis Payouts
24924
24927
  listDeveloperPayouts: { url: '/titles/{title_id}/payouts', method: HTTP_METHODS.GET },
24925
24928
  viewDeveloperPayout: { url: '/titles/{title_id}/payouts/{payout_id}', method: HTTP_METHODS.GET },
@@ -24966,6 +24969,14 @@ var TitlesRoute = /** @class */ (function () {
24966
24969
  url: '/titles/{title_id}/matchmaker/server',
24967
24970
  method: HTTP_METHODS.GET
24968
24971
  },
24972
+ matchmakerSessionHeartbeat: {
24973
+ url: '/titles/{title_id}/matchmaker/session/heartbeat',
24974
+ method: HTTP_METHODS.POST
24975
+ },
24976
+ matchmakerSessionRelease: {
24977
+ url: '/titles/{title_id}/matchmaker/session/release',
24978
+ method: HTTP_METHODS.POST
24979
+ },
24969
24980
  };
24970
24981
  return TitlesRoute;
24971
24982
  }());
@@ -25730,8 +25741,41 @@ var Titles = /** @class */ (function () {
25730
25741
  * @param title_id The UUID of the game title.
25731
25742
  * @returns AxiosPromise containing { signallingServer: string }
25732
25743
  */
25733
- Titles.getMatchmakerServer = function (title_id) {
25734
- return Requests.processRoute(TitlesRoute.routes.getMatchmakerServer, {}, { title_id: title_id });
25744
+ Titles.getMatchmakerServer = function (title_id, params) {
25745
+ return Requests.processRoute(TitlesRoute.routes.getMatchmakerServer, {}, { title_id: title_id }, params // ← passes as ?sessionId=xxx via Requests.get()
25746
+ );
25747
+ };
25748
+ /**
25749
+ * Send a session heartbeat to keep the dedicated instance claimed.
25750
+ * Called every 30s during active gameplay.
25751
+ */
25752
+ Titles.matchmakerSessionHeartbeat = function (title_id, data) {
25753
+ return Requests.processRoute(TitlesRoute.routes.matchmakerSessionHeartbeat, data, { title_id: title_id });
25754
+ };
25755
+ /**
25756
+ * Release the session (starts reclaim countdown).
25757
+ * Called on beforeunload or explicit navigation away.
25758
+ */
25759
+ Titles.matchmakerSessionRelease = function (title_id, data) {
25760
+ return Requests.processRoute(TitlesRoute.routes.matchmakerSessionRelease, data, { title_id: title_id });
25761
+ };
25762
+ /**
25763
+ * Initiates a resumable S3 multipart upload for large files.
25764
+ */
25765
+ Titles.initiateMultipartUpload = function (title_id, data) {
25766
+ return Requests.processRoute(TitlesRoute.routes.initiateMultipartUpload, data, { title_id: title_id });
25767
+ };
25768
+ /**
25769
+ * Get presigned URLs for specific chunk parts.
25770
+ */
25771
+ Titles.getMultipartUrls = function (title_id, data) {
25772
+ return Requests.processRoute(TitlesRoute.routes.getMultipartUrls, data, { title_id: title_id });
25773
+ };
25774
+ /**
25775
+ * Stitch together all uploaded chunks to complete the file in S3.
25776
+ */
25777
+ Titles.completeMultipartUpload = function (title_id, data) {
25778
+ return Requests.processRoute(TitlesRoute.routes.completeMultipartUpload, data, { title_id: title_id });
25735
25779
  };
25736
25780
  return Titles;
25737
25781
  }());
@@ -27536,6 +27580,7 @@ var NewslettersRoutes = /** @class */ (function () {
27536
27580
  updateSubscriber: { url: '/admin/newsletters/subscribers/{id}', method: HTTP_METHODS.PUT },
27537
27581
  deleteSubscriber: { url: '/admin/newsletters/subscribers/{id}', method: HTTP_METHODS.DELETE },
27538
27582
  joinDistributionWaitlist: { url: '/newsletters/joinDistributionWaitlist', method: HTTP_METHODS.POST },
27583
+ joinConsumerWaitlist: { url: '/newsletters/joinConsumerWaitlist', method: HTTP_METHODS.POST },
27539
27584
  };
27540
27585
  return NewslettersRoutes;
27541
27586
  }());
@@ -27685,6 +27730,14 @@ var Newsletters = /** @class */ (function () {
27685
27730
  Newsletters.joinDistributionWaitlist = function (data, params) {
27686
27731
  return Requests.processRoute(NewslettersRoutes.routes.joinDistributionWaitlist, data, undefined, params);
27687
27732
  };
27733
+ /**
27734
+ * Register for Consumer Early Access to the streaming platform.
27735
+ *
27736
+ * @param data { name, email }
27737
+ */
27738
+ Newsletters.joinConsumerWaitlist = function (data, params) {
27739
+ return Requests.processRoute(NewslettersRoutes.routes.joinConsumerWaitlist, data, undefined, params);
27740
+ };
27688
27741
  return Newsletters;
27689
27742
  }());
27690
27743