glitch-javascript-sdk 2.8.4 → 2.8.6

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
@@ -18944,6 +18944,12 @@ var Config = /** @class */ (function () {
18944
18944
  this._baseUrlLocked = true;
18945
18945
  }
18946
18946
  };
18947
+ /**
18948
+ * Gets the base URL
18949
+ */
18950
+ Config.getBaseUrl = function () {
18951
+ return Config._baseUrl;
18952
+ };
18947
18953
  /**
18948
18954
  * Set the JSON Web Token (JWT) that will be passed to the API
18949
18955
  *
@@ -18953,6 +18959,12 @@ var Config = /** @class */ (function () {
18953
18959
  Config._authToken = authToken;
18954
18960
  Requests.setAuthToken(authToken);
18955
18961
  };
18962
+ /**
18963
+ * Gets the auth token
18964
+ */
18965
+ Config.getAuthToken = function () {
18966
+ return Config._authToken;
18967
+ };
18956
18968
  /**
18957
18969
  * Set the community to be associated with this config through
18958
18970
  *
@@ -18982,6 +18994,9 @@ var Config = /** @class */ (function () {
18982
18994
  this._rootDomain = formattedDomain;
18983
18995
  Storage.setRootDomain(formattedDomain);
18984
18996
  };
18997
+ /**
18998
+ * Gets the root domain
18999
+ */
18985
19000
  Config.getRootDomain = function () {
18986
19001
  return this._rootDomain;
18987
19002
  };
@@ -19015,6 +19030,12 @@ var Config = /** @class */ (function () {
19015
19030
  enumerable: false,
19016
19031
  configurable: true
19017
19032
  });
19033
+ /**
19034
+ * Checks if the base URL is locked
19035
+ */
19036
+ Config.isBaseUrlLocked = function () {
19037
+ return this._baseUrlLocked;
19038
+ };
19018
19039
  Config._baseUrlLocked = false;
19019
19040
  return Config;
19020
19041
  }());
@@ -24904,6 +24925,9 @@ var TitlesRoute = /** @class */ (function () {
24904
24925
  method: HTTP_METHODS.POST
24905
24926
  },
24906
24927
  listBuilds: { url: '/titles/{title_id}/deployments', method: HTTP_METHODS.GET },
24928
+ listSaves: { url: '/titles/{title_id}/installs/{install_id}/saves', method: HTTP_METHODS.GET },
24929
+ storeSave: { url: '/titles/{title_id}/installs/{install_id}/saves', method: HTTP_METHODS.POST },
24930
+ resolveSaveConflict: { url: '/titles/{title_id}/installs/{install_id}/saves/{save_id}/resolve', method: HTTP_METHODS.POST },
24907
24931
  };
24908
24932
  return TitlesRoute;
24909
24933
  }());
@@ -25583,6 +25607,24 @@ var Titles = /** @class */ (function () {
25583
25607
  Titles.listBuilds = function (title_id, params) {
25584
25608
  return Requests.processRoute(TitlesRoute.routes.listBuilds, {}, { title_id: title_id }, params);
25585
25609
  };
25610
+ /**
25611
+ * List all cloud save slots for the player associated with this install.
25612
+ */
25613
+ Titles.listSaves = function (title_id, install_id) {
25614
+ return Requests.processRoute(TitlesRoute.routes.listSaves, {}, { title_id: title_id, install_id: install_id });
25615
+ };
25616
+ /**
25617
+ * Upload game progress. The user is identified by the install_id.
25618
+ */
25619
+ Titles.storeSave = function (title_id, install_id, data) {
25620
+ return Requests.processRoute(TitlesRoute.routes.storeSave, data, { title_id: title_id, install_id: install_id });
25621
+ };
25622
+ /**
25623
+ * Resolve a conflict.
25624
+ */
25625
+ Titles.resolveSaveConflict = function (title_id, install_id, save_id, conflict_id, choice) {
25626
+ return Requests.processRoute(TitlesRoute.routes.resolveSaveConflict, { conflict_id: conflict_id, choice: choice }, { title_id: title_id, install_id: install_id, save_id: save_id });
25627
+ };
25586
25628
  return Titles;
25587
25629
  }());
25588
25630