glitch-javascript-sdk 2.8.1 → 2.8.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.
package/dist/cjs/index.js CHANGED
@@ -24885,6 +24885,14 @@ var TitlesRoute = /** @class */ (function () {
24885
24885
  listDeveloperPayouts: { url: '/titles/{title_id}/payouts', method: HTTP_METHODS.GET },
24886
24886
  viewDeveloperPayout: { url: '/titles/{title_id}/payouts/{payout_id}', method: HTTP_METHODS.GET },
24887
24887
  developerPayoutSummary: { url: '/titles/{title_id}/payouts/summary', method: HTTP_METHODS.GET },
24888
+ /**
24889
+ * The Aegis Handshake: Validates if a specific install/session is authorized to play.
24890
+ * POST /titles/{title_id}/installs/{install_id}/validate
24891
+ */
24892
+ validateInstall: {
24893
+ url: '/titles/{title_id}/installs/{install_id}/validate',
24894
+ method: HTTP_METHODS.POST
24895
+ },
24888
24896
  };
24889
24897
  return TitlesRoute;
24890
24898
  }());
@@ -25542,6 +25550,21 @@ var Titles = /** @class */ (function () {
25542
25550
  Titles.getDeveloperPayoutSummary = function (title_id) {
25543
25551
  return Requests.processRoute(TitlesRoute.routes.developerPayoutSummary, {}, { title_id: title_id });
25544
25552
  };
25553
+ /**
25554
+ * The Aegis Handshake: Verify if a player is allowed to play.
25555
+ *
25556
+ * This is used by the game engine (Unity/Unreal) to confirm that the
25557
+ * current session is valid and the user has a proper license.
25558
+ *
25559
+ * @see https://api.glitch.fun/api/documentation#/Aegis%20Security/validateGameSession
25560
+ *
25561
+ * @param title_id The UUID of the game title.
25562
+ * @param install_id The UUID of the specific install/session.
25563
+ * @returns AxiosPromise containing { valid: boolean, user_name: string, license_type: string }
25564
+ */
25565
+ Titles.validateInstall = function (title_id, install_id) {
25566
+ return Requests.processRoute(TitlesRoute.routes.validateInstall, {}, { title_id: title_id, install_id: install_id });
25567
+ };
25545
25568
  return Titles;
25546
25569
  }());
25547
25570