glitch-javascript-sdk 2.8.1 → 2.8.3
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 +41 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Titles.d.ts +13 -0
- package/dist/esm/api/WebsiteAnalytics.d.ts +11 -0
- package/dist/esm/index.js +41 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +24 -0
- package/package.json +1 -1
- package/src/api/Titles.ts +20 -0
- package/src/api/WebsiteAnalytics.ts +26 -7
- package/src/routes/TitlesRoute.ts +9 -0
- package/src/routes/WebsiteAnalyticsRoute.ts +9 -5
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
|
|
|
@@ -29068,7 +29091,11 @@ var WebsiteAnalyticsRoute = /** @class */ (function () {
|
|
|
29068
29091
|
journey: {
|
|
29069
29092
|
url: '/analytics/journey',
|
|
29070
29093
|
method: HTTP_METHODS.GET
|
|
29071
|
-
}
|
|
29094
|
+
},
|
|
29095
|
+
landingPageReport: {
|
|
29096
|
+
url: '/analytics/reports/landing-page',
|
|
29097
|
+
method: HTTP_METHODS.GET
|
|
29098
|
+
},
|
|
29072
29099
|
};
|
|
29073
29100
|
return WebsiteAnalyticsRoute;
|
|
29074
29101
|
}());
|
|
@@ -29309,6 +29336,19 @@ var WebsiteAnalytics = /** @class */ (function () {
|
|
|
29309
29336
|
{}, // no body data (GET request)
|
|
29310
29337
|
undefined, params);
|
|
29311
29338
|
};
|
|
29339
|
+
/**
|
|
29340
|
+
* Get a detailed marketing report for the game's landing page.
|
|
29341
|
+
* Includes scroll depth, video watch time distribution, and CTA performance.
|
|
29342
|
+
*
|
|
29343
|
+
* @param params
|
|
29344
|
+
* - title_id: string (Required)
|
|
29345
|
+
* - start_date?: string (YYYY-MM-DD)
|
|
29346
|
+
* - end_date?: string (YYYY-MM-DD)
|
|
29347
|
+
* - group_by?: 'country' | 'device'
|
|
29348
|
+
*/
|
|
29349
|
+
WebsiteAnalytics.landingPageReport = function (params) {
|
|
29350
|
+
return Requests.processRoute(WebsiteAnalyticsRoute.routes.landingPageReport, {}, undefined, params);
|
|
29351
|
+
};
|
|
29312
29352
|
return WebsiteAnalytics;
|
|
29313
29353
|
}());
|
|
29314
29354
|
|