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.
@@ -501,5 +501,18 @@ declare class Titles {
501
501
  * Get the total earnings and playtime summary for a title.
502
502
  */
503
503
  static getDeveloperPayoutSummary<T>(title_id: string): AxiosPromise<Response<T>>;
504
+ /**
505
+ * The Aegis Handshake: Verify if a player is allowed to play.
506
+ *
507
+ * This is used by the game engine (Unity/Unreal) to confirm that the
508
+ * current session is valid and the user has a proper license.
509
+ *
510
+ * @see https://api.glitch.fun/api/documentation#/Aegis%20Security/validateGameSession
511
+ *
512
+ * @param title_id The UUID of the game title.
513
+ * @param install_id The UUID of the specific install/session.
514
+ * @returns AxiosPromise containing { valid: boolean, user_name: string, license_type: string }
515
+ */
516
+ static validateInstall<T>(title_id: string, install_id: string): AxiosPromise<Response<T>>;
504
517
  }
505
518
  export default Titles;
package/dist/esm/index.js CHANGED
@@ -11701,6 +11701,14 @@ var TitlesRoute = /** @class */ (function () {
11701
11701
  listDeveloperPayouts: { url: '/titles/{title_id}/payouts', method: HTTP_METHODS.GET },
11702
11702
  viewDeveloperPayout: { url: '/titles/{title_id}/payouts/{payout_id}', method: HTTP_METHODS.GET },
11703
11703
  developerPayoutSummary: { url: '/titles/{title_id}/payouts/summary', method: HTTP_METHODS.GET },
11704
+ /**
11705
+ * The Aegis Handshake: Validates if a specific install/session is authorized to play.
11706
+ * POST /titles/{title_id}/installs/{install_id}/validate
11707
+ */
11708
+ validateInstall: {
11709
+ url: '/titles/{title_id}/installs/{install_id}/validate',
11710
+ method: HTTP_METHODS.POST
11711
+ },
11704
11712
  };
11705
11713
  return TitlesRoute;
11706
11714
  }());
@@ -12358,6 +12366,21 @@ var Titles = /** @class */ (function () {
12358
12366
  Titles.getDeveloperPayoutSummary = function (title_id) {
12359
12367
  return Requests.processRoute(TitlesRoute.routes.developerPayoutSummary, {}, { title_id: title_id });
12360
12368
  };
12369
+ /**
12370
+ * The Aegis Handshake: Verify if a player is allowed to play.
12371
+ *
12372
+ * This is used by the game engine (Unity/Unreal) to confirm that the
12373
+ * current session is valid and the user has a proper license.
12374
+ *
12375
+ * @see https://api.glitch.fun/api/documentation#/Aegis%20Security/validateGameSession
12376
+ *
12377
+ * @param title_id The UUID of the game title.
12378
+ * @param install_id The UUID of the specific install/session.
12379
+ * @returns AxiosPromise containing { valid: boolean, user_name: string, license_type: string }
12380
+ */
12381
+ Titles.validateInstall = function (title_id, install_id) {
12382
+ return Requests.processRoute(TitlesRoute.routes.validateInstall, {}, { title_id: title_id, install_id: install_id });
12383
+ };
12361
12384
  return Titles;
12362
12385
  }());
12363
12386