glitch-javascript-sdk 2.8.0 → 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 +35 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Newsletters.d.ts +9 -0
- package/dist/esm/api/Titles.d.ts +13 -0
- package/dist/esm/index.js +35 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +22 -0
- package/package.json +1 -1
- package/src/api/Newsletters.ts +11 -1
- package/src/api/Titles.ts +20 -0
- package/src/routes/NewslettersRoutes.ts +2 -0
- package/src/routes/TitlesRoute.ts +9 -0
|
@@ -92,5 +92,14 @@ declare class Newsletters {
|
|
|
92
92
|
* Permanently delete a subscriber from the system (Admin only).
|
|
93
93
|
*/
|
|
94
94
|
static deleteSubscriber<T>(id: string): AxiosPromise<Response<T>>;
|
|
95
|
+
/**
|
|
96
|
+
* Join the distribution platform waitlist for indie developers.
|
|
97
|
+
*
|
|
98
|
+
* @see https://api.glitch.fun/api/documentation#/Newsletters/joinDistributionWaitlist
|
|
99
|
+
*
|
|
100
|
+
* @param data { name: string, email: string, game: string, team_size: string, revenue_goal: string }
|
|
101
|
+
* @returns Promise
|
|
102
|
+
*/
|
|
103
|
+
static joinDistributionWaitlist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
95
104
|
}
|
|
96
105
|
export default Newsletters;
|
package/dist/esm/api/Titles.d.ts
CHANGED
|
@@ -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
|
|
|
@@ -14146,6 +14169,7 @@ var NewslettersRoutes = /** @class */ (function () {
|
|
|
14146
14169
|
viewSubscriber: { url: '/admin/newsletters/subscribers/{id}', method: HTTP_METHODS.GET },
|
|
14147
14170
|
updateSubscriber: { url: '/admin/newsletters/subscribers/{id}', method: HTTP_METHODS.PUT },
|
|
14148
14171
|
deleteSubscriber: { url: '/admin/newsletters/subscribers/{id}', method: HTTP_METHODS.DELETE },
|
|
14172
|
+
joinDistributionWaitlist: { url: '/newsletters/joinDistributionWaitlist', method: HTTP_METHODS.POST },
|
|
14149
14173
|
};
|
|
14150
14174
|
return NewslettersRoutes;
|
|
14151
14175
|
}());
|
|
@@ -14284,6 +14308,17 @@ var Newsletters = /** @class */ (function () {
|
|
|
14284
14308
|
Newsletters.deleteSubscriber = function (id) {
|
|
14285
14309
|
return Requests.processRoute(NewslettersRoutes.routes.deleteSubscriber, undefined, { id: id });
|
|
14286
14310
|
};
|
|
14311
|
+
/**
|
|
14312
|
+
* Join the distribution platform waitlist for indie developers.
|
|
14313
|
+
*
|
|
14314
|
+
* @see https://api.glitch.fun/api/documentation#/Newsletters/joinDistributionWaitlist
|
|
14315
|
+
*
|
|
14316
|
+
* @param data { name: string, email: string, game: string, team_size: string, revenue_goal: string }
|
|
14317
|
+
* @returns Promise
|
|
14318
|
+
*/
|
|
14319
|
+
Newsletters.joinDistributionWaitlist = function (data, params) {
|
|
14320
|
+
return Requests.processRoute(NewslettersRoutes.routes.joinDistributionWaitlist, data, undefined, params);
|
|
14321
|
+
};
|
|
14287
14322
|
return Newsletters;
|
|
14288
14323
|
}());
|
|
14289
14324
|
|