glitch-javascript-sdk 1.8.3 → 1.8.5

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
@@ -22117,6 +22117,207 @@ var Events = /** @class */ (function () {
22117
22117
  return Events;
22118
22118
  }());
22119
22119
 
22120
+ var FingerprintingRoute = /** @class */ (function () {
22121
+ function FingerprintingRoute() {
22122
+ }
22123
+ FingerprintingRoute.routes = {
22124
+ listFingerprints: {
22125
+ url: '/reports/fingerprinting/fingerprints',
22126
+ method: HTTP_METHODS.GET
22127
+ },
22128
+ userJourneyReport: {
22129
+ url: '/reports/fingerprinting/user-journeys',
22130
+ method: HTTP_METHODS.GET
22131
+ },
22132
+ attributionReport: {
22133
+ url: '/reports/fingerprinting/attribution',
22134
+ method: HTTP_METHODS.GET
22135
+ },
22136
+ deviceClusterReport: {
22137
+ url: '/reports/fingerprinting/device-clusters',
22138
+ method: HTTP_METHODS.GET
22139
+ },
22140
+ identityClusterReport: {
22141
+ url: '/reports/fingerprinting/identity-clusters',
22142
+ method: HTTP_METHODS.GET
22143
+ },
22144
+ attributionFunnelReport: {
22145
+ url: '/reports/fingerprinting/attribution-funnel',
22146
+ method: HTTP_METHODS.GET
22147
+ },
22148
+ deviceEnvironmentReport: {
22149
+ url: '/reports/fingerprinting/device-environment',
22150
+ method: HTTP_METHODS.GET
22151
+ },
22152
+ uniqueReturningReport: {
22153
+ url: '/reports/fingerprinting/unique-returning',
22154
+ method: HTTP_METHODS.GET
22155
+ },
22156
+ fraudDetectionReport: {
22157
+ url: '/reports/fingerprinting/fraud-detection',
22158
+ method: HTTP_METHODS.GET
22159
+ },
22160
+ geolocationReport: {
22161
+ url: '/reports/fingerprinting/geolocation',
22162
+ method: HTTP_METHODS.GET
22163
+ }
22164
+ };
22165
+ return FingerprintingRoute;
22166
+ }());
22167
+
22168
+ var Fingerprinting = /** @class */ (function () {
22169
+ function Fingerprinting() {
22170
+ }
22171
+ /**
22172
+ * List identified user fingerprints with filtering options
22173
+ *
22174
+ * @param params Filtering options:
22175
+ * - title_id?: string - Filter by title ID
22176
+ * - device_id?: string - Filter by device ID
22177
+ * - user_install_id?: string - Filter by user install ID
22178
+ * - browser_fingerprint?: string - Filter by browser fingerprint hash
22179
+ * - device_fingerprint?: string - Filter by device fingerprint hash
22180
+ * - is_bot?: boolean - Filter by bot status
22181
+ * - start_date?: string - Start date (YYYY-MM-DD)
22182
+ * - end_date?: string - End date (YYYY-MM-DD)
22183
+ * - sort?: 'first_seen_at'|'last_seen_at'|'match_confidence' - Sort field
22184
+ * - order?: 'asc'|'desc' - Sort order
22185
+ * - per_page?: number - Items per page (max 100)
22186
+ * @returns Promise with paginated fingerprints data
22187
+ */
22188
+ Fingerprinting.listFingerprints = function (params) {
22189
+ return Requests.processRoute(FingerprintingRoute.routes.listFingerprints, {}, undefined, params);
22190
+ };
22191
+ /**
22192
+ * Get cross-platform user journey reports
22193
+ *
22194
+ * @param params Report options:
22195
+ * - title_id: string - Required title ID
22196
+ * - fingerprint_id?: string - Specific fingerprint ID to analyze
22197
+ * - start_date?: string - Start date (YYYY-MM-DD)
22198
+ * - end_date?: string - End date (YYYY-MM-DD)
22199
+ * - platform?: 'web'|'ios'|'android'|'steam'|'console' - Filter by platform
22200
+ * - event_type?: string - Filter by event type
22201
+ * - group_by?: 'day'|'week'|'month'|'year' - Grouping period
22202
+ * - include_paths?: boolean - Include journey paths in response
22203
+ * @returns Promise with user journey report data
22204
+ */
22205
+ Fingerprinting.userJourneyReport = function (params) {
22206
+ return Requests.processRoute(FingerprintingRoute.routes.userJourneyReport, {}, undefined, params);
22207
+ };
22208
+ /**
22209
+ * Get cross-platform attribution reports
22210
+ *
22211
+ * @param params Report options:
22212
+ * - title_id: string - Required title ID
22213
+ * - start_date?: string - Start date (YYYY-MM-DD)
22214
+ * - end_date?: string - End date (YYYY-MM-DD)
22215
+ * - conversion_event?: 'game_install'|'game_purchase'|'web_event' - Conversion event to analyze
22216
+ * - attribution_model?: 'first_touch'|'last_touch'|'linear'|'time_decay'|'position_based' - Attribution model
22217
+ * @returns Promise with attribution report data
22218
+ */
22219
+ Fingerprinting.attributionReport = function (params) {
22220
+ return Requests.processRoute(FingerprintingRoute.routes.attributionReport, {}, undefined, params);
22221
+ };
22222
+ /**
22223
+ * Get cross-device identity clusters
22224
+ *
22225
+ * @param params Report options:
22226
+ * - title_id: string - Required title ID
22227
+ * - start_date?: string - Start date (YYYY-MM-DD)
22228
+ * - end_date?: string - End date (YYYY-MM-DD)
22229
+ * - min_confidence?: number - Minimum match confidence score (0-100)
22230
+ * @returns Promise with device cluster report data
22231
+ */
22232
+ Fingerprinting.deviceClusterReport = function (params) {
22233
+ return Requests.processRoute(FingerprintingRoute.routes.deviceClusterReport, {}, undefined, params);
22234
+ };
22235
+ /**
22236
+ * Get combined identity clusters and user journey reports
22237
+ *
22238
+ * @param params Report options:
22239
+ * - title_id: string - Required title ID
22240
+ * - start_date?: string - Start date (YYYY-MM-DD)
22241
+ * - end_date?: string - End date (YYYY-MM-DD)
22242
+ * - min_confidence?: number - Minimum confidence score to include (0-100)
22243
+ * - platform?: string - Filter by platform
22244
+ * - include_journeys?: boolean - Include detailed journeys
22245
+ * @returns Promise with identity cluster report data
22246
+ */
22247
+ Fingerprinting.identityClusterReport = function (params) {
22248
+ return Requests.processRoute(FingerprintingRoute.routes.identityClusterReport, {}, undefined, params);
22249
+ };
22250
+ /**
22251
+ * Get combined attribution paths and conversion funnels
22252
+ *
22253
+ * @param params Report options:
22254
+ * - title_id: string - Required title ID
22255
+ * - start_date?: string - Start date (YYYY-MM-DD)
22256
+ * - end_date?: string - End date (YYYY-MM-DD)
22257
+ * - conversion_event?: string - Conversion event type
22258
+ * - attribution_model?: string - Attribution model
22259
+ * - funnel_steps?: string - Comma-separated funnel steps
22260
+ * @returns Promise with attribution and funnel report data
22261
+ */
22262
+ Fingerprinting.attributionFunnelReport = function (params) {
22263
+ return Requests.processRoute(FingerprintingRoute.routes.attributionFunnelReport, {}, undefined, params);
22264
+ };
22265
+ /**
22266
+ * Get device and environment breakdown reports
22267
+ *
22268
+ * @param params Report options:
22269
+ * - title_id: string - Required title ID
22270
+ * - start_date?: string - Start date (YYYY-MM-DD)
22271
+ * - end_date?: string - End date (YYYY-MM-DD)
22272
+ * - platform?: string - Filter by platform
22273
+ * - group_by?: 'device_type'|'os'|'browser'|'country_code' - Grouping field
22274
+ * @returns Promise with device and environment report data
22275
+ */
22276
+ Fingerprinting.deviceEnvironmentReport = function (params) {
22277
+ return Requests.processRoute(FingerprintingRoute.routes.deviceEnvironmentReport, {}, undefined, params);
22278
+ };
22279
+ /**
22280
+ * Get unique vs returning user metrics
22281
+ *
22282
+ * @param params Report options:
22283
+ * - title_id: string - Required title ID
22284
+ * - start_date?: string - Start date (YYYY-MM-DD)
22285
+ * - end_date?: string - End date (YYYY-MM-DD)
22286
+ * - retention_period?: number - Days to consider for retention
22287
+ * @returns Promise with retention metrics data
22288
+ */
22289
+ Fingerprinting.uniqueReturningReport = function (params) {
22290
+ return Requests.processRoute(FingerprintingRoute.routes.uniqueReturningReport, {}, undefined, params);
22291
+ };
22292
+ /**
22293
+ * Get fraud and bot detection metrics
22294
+ *
22295
+ * @param params Report options:
22296
+ * - title_id: string - Required title ID
22297
+ * - start_date?: string - Start date (YYYY-MM-DD)
22298
+ * - end_date?: string - End date (YYYY-MM-DD)
22299
+ * - min_confidence?: number - Minimum confidence score to flag (0-100)
22300
+ * @returns Promise with fraud detection data
22301
+ */
22302
+ Fingerprinting.fraudDetectionReport = function (params) {
22303
+ return Requests.processRoute(FingerprintingRoute.routes.fraudDetectionReport, {}, undefined, params);
22304
+ };
22305
+ /**
22306
+ * Get geolocation distribution of users
22307
+ *
22308
+ * @param params Report options:
22309
+ * - title_id: string - Required title ID
22310
+ * - start_date?: string - Start date (YYYY-MM-DD)
22311
+ * - end_date?: string - End date (YYYY-MM-DD)
22312
+ * - group_by?: 'country'|'region'|'city' - Grouping level
22313
+ * @returns Promise with geolocation report data
22314
+ */
22315
+ Fingerprinting.geolocationReport = function (params) {
22316
+ return Requests.processRoute(FingerprintingRoute.routes.geolocationReport, {}, undefined, params);
22317
+ };
22318
+ return Fingerprinting;
22319
+ }());
22320
+
22120
22321
  var TeamsRoute = /** @class */ (function () {
22121
22322
  function TeamsRoute() {
22122
22323
  }
@@ -23348,6 +23549,10 @@ var TitlesRoute = /** @class */ (function () {
23348
23549
  url: "/titles/{title_id}/utm",
23349
23550
  method: HTTP_METHODS.GET,
23350
23551
  },
23552
+ getWebTrackingToken: {
23553
+ url: "/titles/{title_id}/webTrackingToken",
23554
+ method: HTTP_METHODS.GET,
23555
+ },
23351
23556
  /**
23352
23557
  * 3) Analyze UTM data with optional group_by / dimension-based aggregates
23353
23558
  * GET /titles/{title_id}/utm/analysis
@@ -23687,6 +23892,18 @@ var Titles = /** @class */ (function () {
23687
23892
  Titles.getUtmAnalytics = function (title_id, params) {
23688
23893
  return Requests.processRoute(TitlesRoute.routes.getUtmAnalytics, {}, { title_id: title_id }, params);
23689
23894
  };
23895
+ /**
23896
+ * Get the web tracking token used for websites.
23897
+ *
23898
+ * GET /titles/{title_id}/webTrackingToken
23899
+ *
23900
+ * @param title_id The UUID of the title
23901
+ * @param params Optional query params:
23902
+ * @returns AxiosPromise
23903
+ */
23904
+ Titles.getWebTrackingToken = function (title_id, params) {
23905
+ return Requests.processRoute(TitlesRoute.routes.getWebTrackingToken, {}, { title_id: title_id }, params);
23906
+ };
23690
23907
  /**
23691
23908
  * Analyze UTM data with optional group_by (source, campaign, medium, device_type, etc.)
23692
23909
  *
@@ -26977,7 +27194,8 @@ var Glitch = /** @class */ (function () {
26977
27194
  Scheduler: Scheduler,
26978
27195
  Funnel: Funnel,
26979
27196
  SocialStats: SocialStats,
26980
- WebsiteAnalytics: WebsiteAnalytics
27197
+ WebsiteAnalytics: WebsiteAnalytics,
27198
+ Fingerprinting: Fingerprinting
26981
27199
  };
26982
27200
  Glitch.util = {
26983
27201
  Requests: Requests,