glitch-javascript-sdk 2.8.4 → 2.8.5

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
@@ -24904,6 +24904,9 @@ var TitlesRoute = /** @class */ (function () {
24904
24904
  method: HTTP_METHODS.POST
24905
24905
  },
24906
24906
  listBuilds: { url: '/titles/{title_id}/deployments', method: HTTP_METHODS.GET },
24907
+ listSaves: { url: '/titles/{title_id}/installs/{install_id}/saves', method: HTTP_METHODS.GET },
24908
+ storeSave: { url: '/titles/{title_id}/installs/{install_id}/saves', method: HTTP_METHODS.POST },
24909
+ resolveSaveConflict: { url: '/titles/{title_id}/installs/{install_id}/saves/{save_id}/resolve', method: HTTP_METHODS.POST },
24907
24910
  };
24908
24911
  return TitlesRoute;
24909
24912
  }());
@@ -25583,6 +25586,24 @@ var Titles = /** @class */ (function () {
25583
25586
  Titles.listBuilds = function (title_id, params) {
25584
25587
  return Requests.processRoute(TitlesRoute.routes.listBuilds, {}, { title_id: title_id }, params);
25585
25588
  };
25589
+ /**
25590
+ * List all cloud save slots for the player associated with this install.
25591
+ */
25592
+ Titles.listSaves = function (title_id, install_id) {
25593
+ return Requests.processRoute(TitlesRoute.routes.listSaves, {}, { title_id: title_id, install_id: install_id });
25594
+ };
25595
+ /**
25596
+ * Upload game progress. The user is identified by the install_id.
25597
+ */
25598
+ Titles.storeSave = function (title_id, install_id, data) {
25599
+ return Requests.processRoute(TitlesRoute.routes.storeSave, data, { title_id: title_id, install_id: install_id });
25600
+ };
25601
+ /**
25602
+ * Resolve a conflict.
25603
+ */
25604
+ Titles.resolveSaveConflict = function (title_id, install_id, save_id, conflict_id, choice) {
25605
+ return Requests.processRoute(TitlesRoute.routes.resolveSaveConflict, { conflict_id: conflict_id, choice: choice }, { title_id: title_id, install_id: install_id, save_id: save_id });
25606
+ };
25586
25607
  return Titles;
25587
25608
  }());
25588
25609