glitch-javascript-sdk 2.4.6 → 2.4.7

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.
@@ -429,5 +429,51 @@ declare class Titles {
429
429
  group_by: 'platform' | 'status' | 'event_type';
430
430
  unique_clicks?: boolean;
431
431
  }): AxiosPromise<Response<T>>;
432
+ /**
433
+ * Get a geographical distribution report for installs.
434
+ * @param params e.g., { group_by: 'country_code', start_date: '2025-01-01' }
435
+ */
436
+ static geoReport<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
437
+ /**
438
+ * List and filter raw game events (telemetry).
439
+ */
440
+ static listEvents<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
441
+ /**
442
+ * Record a single in-game action.
443
+ */
444
+ static createEvent<T>(title_id: string, data: object): AxiosPromise<Response<T>>;
445
+ /**
446
+ * Record multiple events in one request (Batching).
447
+ * @param data { events: Array<{game_install_id, step_key, action_key, metadata?}> }
448
+ */
449
+ static bulkCreateEvents<T>(title_id: string, data: {
450
+ events: object[];
451
+ }): AxiosPromise<Response<T>>;
452
+ /**
453
+ * Get a summary of actions per step.
454
+ */
455
+ static eventSummary<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
456
+ /**
457
+ * Get all unique step and action keys used in this title.
458
+ */
459
+ static eventDistinctKeys<T>(title_id: string): AxiosPromise<Response<T>>;
460
+ /**
461
+ * List all saved behavioral funnel definitions.
462
+ */
463
+ static listBehavioralFunnels<T>(title_id: string): AxiosPromise<Response<T>>;
464
+ /**
465
+ * Create and save a new behavioral funnel definition.
466
+ * @param data { name: string, description?: string, steps: string[] }
467
+ */
468
+ static createBehavioralFunnel<T>(title_id: string, data: object): AxiosPromise<Response<T>>;
469
+ /**
470
+ * Generate the drop-off report for a specific behavioral funnel.
471
+ * @param params { start_date?: string, end_date?: string }
472
+ */
473
+ static behavioralFunnelReport<T>(title_id: string, funnel_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
474
+ /**
475
+ * Delete a saved behavioral funnel definition.
476
+ */
477
+ static deleteBehavioralFunnel<T>(title_id: string, funnel_id: string): AxiosPromise<Response<T>>;
432
478
  }
433
479
  export default Titles;
package/dist/esm/index.js CHANGED
@@ -11501,6 +11501,18 @@ var TitlesRoute = /** @class */ (function () {
11501
11501
  generateLandingPageAiContent: { url: '/landing-pages/{landing_page_id}/generate-ai-content', method: HTTP_METHODS.POST },
11502
11502
  saveLandingPageTranslation: { url: '/landing-pages/{landing_page_id}/translations', method: HTTP_METHODS.POST },
11503
11503
  cohorts: { url: '/titles/{title_id}/installs/cohorts', method: HTTP_METHODS.GET },
11504
+ geoReport: { url: '/titles/{title_id}/installs/geo-report', method: HTTP_METHODS.GET },
11505
+ // Game Events (Behavioral Telemetry)
11506
+ listEvents: { url: '/titles/{title_id}/events', method: HTTP_METHODS.GET },
11507
+ createEvent: { url: '/titles/{title_id}/events', method: HTTP_METHODS.POST },
11508
+ bulkCreateEvents: { url: '/titles/{title_id}/events/bulk', method: HTTP_METHODS.POST },
11509
+ eventSummary: { url: '/titles/{title_id}/events/summary', method: HTTP_METHODS.GET },
11510
+ eventDistinctKeys: { url: '/titles/{title_id}/events/distinct-keys', method: HTTP_METHODS.GET },
11511
+ // Behavioral Funnels
11512
+ listBehavioralFunnels: { url: '/titles/{title_id}/behavioral-funnels', method: HTTP_METHODS.GET },
11513
+ createBehavioralFunnel: { url: '/titles/{title_id}/behavioral-funnels', method: HTTP_METHODS.POST },
11514
+ behavioralFunnelReport: { url: '/titles/{title_id}/behavioral-funnels/{funnel_id}/report', method: HTTP_METHODS.GET },
11515
+ deleteBehavioralFunnel: { url: '/titles/{title_id}/behavioral-funnels/{funnel_id}', method: HTTP_METHODS.DELETE },
11504
11516
  };
11505
11517
  return TitlesRoute;
11506
11518
  }());
@@ -12056,6 +12068,70 @@ var Titles = /** @class */ (function () {
12056
12068
  Titles.getAdConversionEventsReport = function (title_id, params) {
12057
12069
  return Requests.processRoute(TitlesRoute.routes.getAdConversionEventsReport, {}, { title_id: title_id }, params);
12058
12070
  };
12071
+ /**
12072
+ * Get a geographical distribution report for installs.
12073
+ * @param params e.g., { group_by: 'country_code', start_date: '2025-01-01' }
12074
+ */
12075
+ Titles.geoReport = function (title_id, params) {
12076
+ return Requests.processRoute(TitlesRoute.routes.geoReport, {}, { title_id: title_id }, params);
12077
+ };
12078
+ /**
12079
+ * List and filter raw game events (telemetry).
12080
+ */
12081
+ Titles.listEvents = function (title_id, params) {
12082
+ return Requests.processRoute(TitlesRoute.routes.listEvents, {}, { title_id: title_id }, params);
12083
+ };
12084
+ /**
12085
+ * Record a single in-game action.
12086
+ */
12087
+ Titles.createEvent = function (title_id, data) {
12088
+ return Requests.processRoute(TitlesRoute.routes.createEvent, data, { title_id: title_id });
12089
+ };
12090
+ /**
12091
+ * Record multiple events in one request (Batching).
12092
+ * @param data { events: Array<{game_install_id, step_key, action_key, metadata?}> }
12093
+ */
12094
+ Titles.bulkCreateEvents = function (title_id, data) {
12095
+ return Requests.processRoute(TitlesRoute.routes.bulkCreateEvents, data, { title_id: title_id });
12096
+ };
12097
+ /**
12098
+ * Get a summary of actions per step.
12099
+ */
12100
+ Titles.eventSummary = function (title_id, params) {
12101
+ return Requests.processRoute(TitlesRoute.routes.eventSummary, {}, { title_id: title_id }, params);
12102
+ };
12103
+ /**
12104
+ * Get all unique step and action keys used in this title.
12105
+ */
12106
+ Titles.eventDistinctKeys = function (title_id) {
12107
+ return Requests.processRoute(TitlesRoute.routes.eventDistinctKeys, {}, { title_id: title_id });
12108
+ };
12109
+ /**
12110
+ * List all saved behavioral funnel definitions.
12111
+ */
12112
+ Titles.listBehavioralFunnels = function (title_id) {
12113
+ return Requests.processRoute(TitlesRoute.routes.listBehavioralFunnels, {}, { title_id: title_id });
12114
+ };
12115
+ /**
12116
+ * Create and save a new behavioral funnel definition.
12117
+ * @param data { name: string, description?: string, steps: string[] }
12118
+ */
12119
+ Titles.createBehavioralFunnel = function (title_id, data) {
12120
+ return Requests.processRoute(TitlesRoute.routes.createBehavioralFunnel, data, { title_id: title_id });
12121
+ };
12122
+ /**
12123
+ * Generate the drop-off report for a specific behavioral funnel.
12124
+ * @param params { start_date?: string, end_date?: string }
12125
+ */
12126
+ Titles.behavioralFunnelReport = function (title_id, funnel_id, params) {
12127
+ return Requests.processRoute(TitlesRoute.routes.behavioralFunnelReport, {}, { title_id: title_id, funnel_id: funnel_id }, params);
12128
+ };
12129
+ /**
12130
+ * Delete a saved behavioral funnel definition.
12131
+ */
12132
+ Titles.deleteBehavioralFunnel = function (title_id, funnel_id) {
12133
+ return Requests.processRoute(TitlesRoute.routes.deleteBehavioralFunnel, {}, { title_id: title_id, funnel_id: funnel_id });
12134
+ };
12059
12135
  return Titles;
12060
12136
  }());
12061
12137