@onesignal/node-onesignal 1.0.0-beta8 → 2.0.0-beta1

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.
Files changed (184) hide show
  1. package/.github/workflows/Zapier.yml +34 -0
  2. package/CHANGELOG.md +15 -0
  3. package/DefaultApi.md +988 -3
  4. package/README.md +152 -24
  5. package/apis/DefaultApi.ts +1339 -98
  6. package/dist/apis/DefaultApi.d.ts +39 -0
  7. package/dist/apis/DefaultApi.js +1490 -408
  8. package/dist/apis/DefaultApi.js.map +1 -1
  9. package/dist/models/BasicNotification.d.ts +4 -0
  10. package/dist/models/BasicNotification.js +12 -0
  11. package/dist/models/BasicNotification.js.map +1 -1
  12. package/dist/models/CreateNotificationSuccessResponse.d.ts +2 -2
  13. package/dist/models/CreateSubscriptionRequestBody.d.ts +19 -0
  14. package/dist/models/CreateSubscriptionRequestBody.js +28 -0
  15. package/dist/models/CreateSubscriptionRequestBody.js.map +1 -0
  16. package/dist/models/CreateUserConflictResponse.d.ts +18 -0
  17. package/dist/models/CreateUserConflictResponse.js +22 -0
  18. package/dist/models/CreateUserConflictResponse.js.map +1 -0
  19. package/dist/models/CreateUserConflictResponseErrorsInner.d.ts +20 -0
  20. package/dist/models/CreateUserConflictResponseErrorsInner.js +34 -0
  21. package/dist/models/CreateUserConflictResponseErrorsInner.js.map +1 -0
  22. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.d.ts +17 -0
  23. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js +22 -0
  24. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js.map +1 -0
  25. package/dist/models/IdentifyUserConflictResponse.d.ts +18 -0
  26. package/dist/models/IdentifyUserConflictResponse.js +22 -0
  27. package/dist/models/IdentifyUserConflictResponse.js.map +1 -0
  28. package/dist/models/IdentifyUserConflictResponseErrorsInner.d.ts +18 -0
  29. package/dist/models/IdentifyUserConflictResponseErrorsInner.js +28 -0
  30. package/dist/models/IdentifyUserConflictResponseErrorsInner.js.map +1 -0
  31. package/dist/models/InlineResponse200.d.ts +19 -0
  32. package/dist/models/InlineResponse200.js +22 -0
  33. package/dist/models/InlineResponse200.js.map +1 -0
  34. package/dist/models/InlineResponse2003.d.ts +17 -0
  35. package/dist/models/InlineResponse2003.js +22 -0
  36. package/dist/models/InlineResponse2003.js.map +1 -0
  37. package/dist/models/InlineResponse201.d.ts +18 -0
  38. package/dist/models/InlineResponse201.js +22 -0
  39. package/dist/models/InlineResponse201.js.map +1 -0
  40. package/dist/models/InlineResponse202.d.ts +18 -0
  41. package/dist/models/InlineResponse202.js +22 -0
  42. package/dist/models/InlineResponse202.js.map +1 -0
  43. package/dist/models/Notification.d.ts +4 -0
  44. package/dist/models/Notification.js +12 -0
  45. package/dist/models/Notification.js.map +1 -1
  46. package/dist/models/NotificationTarget.d.ts +4 -0
  47. package/dist/models/NotificationTarget.js +12 -0
  48. package/dist/models/NotificationTarget.js.map +1 -1
  49. package/dist/models/NotificationWithMeta.d.ts +4 -0
  50. package/dist/models/NotificationWithMeta.js +12 -0
  51. package/dist/models/NotificationWithMeta.js.map +1 -1
  52. package/dist/models/ObjectSerializer.d.ts +21 -0
  53. package/dist/models/ObjectSerializer.js +69 -0
  54. package/dist/models/ObjectSerializer.js.map +1 -1
  55. package/dist/models/Player.d.ts +1 -1
  56. package/dist/models/Player.js +1 -1
  57. package/dist/models/Player.js.map +1 -1
  58. package/dist/models/PlayerNotificationTarget.d.ts +4 -0
  59. package/dist/models/PlayerNotificationTarget.js +12 -0
  60. package/dist/models/PlayerNotificationTarget.js.map +1 -1
  61. package/dist/models/PlayerNotificationTargetIncludeAliases.d.ts +17 -0
  62. package/dist/models/PlayerNotificationTargetIncludeAliases.js +22 -0
  63. package/dist/models/PlayerNotificationTargetIncludeAliases.js.map +1 -0
  64. package/dist/models/PropertiesDeltas.d.ts +20 -0
  65. package/dist/models/PropertiesDeltas.js +34 -0
  66. package/dist/models/PropertiesDeltas.js.map +1 -0
  67. package/dist/models/PropertiesObject.d.ts +30 -0
  68. package/dist/models/PropertiesObject.js +82 -0
  69. package/dist/models/PropertiesObject.js.map +1 -0
  70. package/dist/models/Purchase.d.ts +2 -1
  71. package/dist/models/Purchase.js +7 -1
  72. package/dist/models/Purchase.js.map +1 -1
  73. package/dist/models/SubscriptionObject.d.ts +34 -0
  74. package/dist/models/SubscriptionObject.js +118 -0
  75. package/dist/models/SubscriptionObject.js.map +1 -0
  76. package/dist/models/TransferSubscriptionRequestBody.d.ts +19 -0
  77. package/dist/models/TransferSubscriptionRequestBody.js +22 -0
  78. package/dist/models/TransferSubscriptionRequestBody.js.map +1 -0
  79. package/dist/models/UpdateSubscriptionRequestBody.d.ts +18 -0
  80. package/dist/models/UpdateSubscriptionRequestBody.js +22 -0
  81. package/dist/models/UpdateSubscriptionRequestBody.js.map +1 -0
  82. package/dist/models/UpdateUserRequest.d.ts +21 -0
  83. package/dist/models/UpdateUserRequest.js +34 -0
  84. package/dist/models/UpdateUserRequest.js.map +1 -0
  85. package/dist/models/User.d.ts +25 -0
  86. package/dist/models/User.js +40 -0
  87. package/dist/models/User.js.map +1 -0
  88. package/dist/models/UserIdentityRequestBody.d.ts +19 -0
  89. package/dist/models/UserIdentityRequestBody.js +22 -0
  90. package/dist/models/UserIdentityRequestBody.js.map +1 -0
  91. package/dist/models/UserIdentityResponse.d.ts +19 -0
  92. package/dist/models/UserIdentityResponse.js +22 -0
  93. package/dist/models/UserIdentityResponse.js.map +1 -0
  94. package/dist/models/UserSubscriptionOptions.d.ts +17 -0
  95. package/dist/models/UserSubscriptionOptions.js +22 -0
  96. package/dist/models/UserSubscriptionOptions.js.map +1 -0
  97. package/dist/models/all.d.ts +21 -0
  98. package/dist/models/all.js +21 -0
  99. package/dist/models/all.js.map +1 -1
  100. package/dist/types/ObjectParamAPI.d.ts +95 -0
  101. package/dist/types/ObjectParamAPI.js +42 -0
  102. package/dist/types/ObjectParamAPI.js.map +1 -1
  103. package/dist/types/ObservableAPI.d.ts +25 -0
  104. package/dist/types/ObservableAPI.js +383 -47
  105. package/dist/types/ObservableAPI.js.map +1 -1
  106. package/dist/types/PromiseAPI.d.ts +25 -0
  107. package/dist/types/PromiseAPI.js +56 -0
  108. package/dist/types/PromiseAPI.js.map +1 -1
  109. package/models/App.ts +1 -1
  110. package/models/BadRequestError.ts +1 -1
  111. package/models/BasicNotification.ts +17 -1
  112. package/models/BasicNotificationAllOf.ts +1 -1
  113. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
  114. package/models/BeginLiveActivityRequest.ts +1 -1
  115. package/models/Button.ts +1 -1
  116. package/models/CancelNotificationSuccessResponse.ts +1 -1
  117. package/models/CreateNotificationSuccessResponse.ts +3 -3
  118. package/models/CreatePlayerSuccessResponse.ts +1 -1
  119. package/models/CreateSegmentConflictResponse.ts +1 -1
  120. package/models/CreateSegmentSuccessResponse.ts +1 -1
  121. package/models/CreateSubscriptionRequestBody.ts +39 -0
  122. package/models/CreateUserConflictResponse.ts +32 -0
  123. package/models/CreateUserConflictResponseErrorsInner.ts +46 -0
  124. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +31 -0
  125. package/models/DeletePlayerNotFoundResponse.ts +1 -1
  126. package/models/DeletePlayerSuccessResponse.ts +1 -1
  127. package/models/DeleteSegmentNotFoundResponse.ts +1 -1
  128. package/models/DeleteSegmentSuccessResponse.ts +1 -1
  129. package/models/DeliveryData.ts +1 -1
  130. package/models/ExportPlayersRequestBody.ts +1 -1
  131. package/models/ExportPlayersSuccessResponse.ts +1 -1
  132. package/models/Filter.ts +1 -1
  133. package/models/FilterExpressions.ts +1 -1
  134. package/models/GetNotificationRequestBody.ts +1 -1
  135. package/models/IdentifyUserConflictResponse.ts +32 -0
  136. package/models/IdentifyUserConflictResponseErrorsInner.ts +38 -0
  137. package/models/InlineResponse200.ts +31 -0
  138. package/models/InlineResponse2003.ts +31 -0
  139. package/models/InlineResponse201.ts +32 -0
  140. package/models/InlineResponse202.ts +32 -0
  141. package/models/InvalidIdentifierError.ts +1 -1
  142. package/models/Notification.ts +17 -1
  143. package/models/Notification200Errors.ts +1 -1
  144. package/models/NotificationAllOf.ts +1 -1
  145. package/models/NotificationHistorySuccessResponse.ts +1 -1
  146. package/models/NotificationSlice.ts +1 -1
  147. package/models/NotificationTarget.ts +19 -1
  148. package/models/NotificationWithMeta.ts +17 -1
  149. package/models/NotificationWithMetaAllOf.ts +1 -1
  150. package/models/ObjectSerializer.ts +74 -5
  151. package/models/Operator.ts +1 -1
  152. package/models/OutcomeData.ts +1 -1
  153. package/models/OutcomesData.ts +1 -1
  154. package/models/PlatformDeliveryData.ts +1 -1
  155. package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
  156. package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
  157. package/models/Player.ts +3 -3
  158. package/models/PlayerNotificationTarget.ts +19 -1
  159. package/models/PlayerNotificationTargetIncludeAliases.ts +31 -0
  160. package/models/PlayerSlice.ts +1 -1
  161. package/models/PropertiesDeltas.ts +46 -0
  162. package/models/PropertiesObject.ts +102 -0
  163. package/models/Purchase.ts +10 -3
  164. package/models/Segment.ts +1 -1
  165. package/models/SegmentNotificationTarget.ts +1 -1
  166. package/models/StringMap.ts +1 -1
  167. package/models/SubscriptionObject.ts +146 -0
  168. package/models/TransferSubscriptionRequestBody.ts +31 -0
  169. package/models/UpdateLiveActivityRequest.ts +1 -1
  170. package/models/UpdateLiveActivitySuccessResponse.ts +1 -1
  171. package/models/UpdatePlayerSuccessResponse.ts +1 -1
  172. package/models/UpdatePlayerTagsRequestBody.ts +1 -1
  173. package/models/UpdatePlayerTagsSuccessResponse.ts +1 -1
  174. package/models/UpdateSubscriptionRequestBody.ts +32 -0
  175. package/models/UpdateUserRequest.ts +47 -0
  176. package/models/User.ts +55 -0
  177. package/models/UserIdentityRequestBody.ts +31 -0
  178. package/models/UserIdentityResponse.ts +31 -0
  179. package/models/UserSubscriptionOptions.ts +31 -0
  180. package/models/all.ts +21 -0
  181. package/package.json +2 -2
  182. package/types/ObjectParamAPI.ts +427 -0
  183. package/types/ObservableAPI.ts +371 -0
  184. package/types/PromiseAPI.ts +175 -0
@@ -300,27 +300,38 @@ var DefaultApiRequestFactory = (function (_super) {
300
300
  });
301
301
  });
302
302
  };
303
- DefaultApiRequestFactory.prototype.deletePlayer = function (appId, playerId, _options) {
303
+ DefaultApiRequestFactory.prototype.createSubscription = function (appId, aliasLabel, aliasId, createSubscriptionRequestBody, _options) {
304
304
  var _a, _b, _c;
305
305
  return __awaiter(this, void 0, void 0, function () {
306
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
306
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
307
307
  return __generator(this, function (_d) {
308
308
  switch (_d.label) {
309
309
  case 0:
310
310
  _config = _options || this.configuration;
311
311
  if (appId === null || appId === undefined) {
312
- throw new baseapi_1.RequiredError("DefaultApi", "deletePlayer", "appId");
312
+ throw new baseapi_1.RequiredError("DefaultApi", "createSubscription", "appId");
313
313
  }
314
- if (playerId === null || playerId === undefined) {
315
- throw new baseapi_1.RequiredError("DefaultApi", "deletePlayer", "playerId");
314
+ if (aliasLabel === null || aliasLabel === undefined) {
315
+ throw new baseapi_1.RequiredError("DefaultApi", "createSubscription", "aliasLabel");
316
316
  }
317
- localVarPath = '/players/{player_id}'
318
- .replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
319
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
320
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
321
- if (appId !== undefined) {
322
- requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
317
+ if (aliasId === null || aliasId === undefined) {
318
+ throw new baseapi_1.RequiredError("DefaultApi", "createSubscription", "aliasId");
323
319
  }
320
+ if (createSubscriptionRequestBody === null || createSubscriptionRequestBody === undefined) {
321
+ throw new baseapi_1.RequiredError("DefaultApi", "createSubscription", "createSubscriptionRequestBody");
322
+ }
323
+ localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/subscriptions'
324
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
325
+ .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
326
+ .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
327
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
328
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
329
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
330
+ "application/json"
331
+ ]);
332
+ requestContext.setHeaderParam("Content-Type", contentType);
333
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(createSubscriptionRequestBody, "CreateSubscriptionRequestBody", ""), contentType);
334
+ requestContext.setBody(serializedBody);
324
335
  authMethod = _config.authMethods["app_key"];
325
336
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
326
337
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -339,25 +350,30 @@ var DefaultApiRequestFactory = (function (_super) {
339
350
  });
340
351
  });
341
352
  };
342
- DefaultApiRequestFactory.prototype.deleteSegments = function (appId, segmentId, _options) {
353
+ DefaultApiRequestFactory.prototype.createUser = function (appId, user, _options) {
343
354
  var _a, _b, _c;
344
355
  return __awaiter(this, void 0, void 0, function () {
345
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
356
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
346
357
  return __generator(this, function (_d) {
347
358
  switch (_d.label) {
348
359
  case 0:
349
360
  _config = _options || this.configuration;
350
361
  if (appId === null || appId === undefined) {
351
- throw new baseapi_1.RequiredError("DefaultApi", "deleteSegments", "appId");
362
+ throw new baseapi_1.RequiredError("DefaultApi", "createUser", "appId");
352
363
  }
353
- if (segmentId === null || segmentId === undefined) {
354
- throw new baseapi_1.RequiredError("DefaultApi", "deleteSegments", "segmentId");
364
+ if (user === null || user === undefined) {
365
+ throw new baseapi_1.RequiredError("DefaultApi", "createUser", "user");
355
366
  }
356
- localVarPath = '/apps/{app_id}/segments/{segment_id}'
357
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
358
- .replace('{' + 'segment_id' + '}', encodeURIComponent(String(segmentId)));
359
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
367
+ localVarPath = '/apps/{app_id}/users'
368
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
369
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
360
370
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
371
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
372
+ "application/json"
373
+ ]);
374
+ requestContext.setHeaderParam("Content-Type", contentType);
375
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(user, "User", ""), contentType);
376
+ requestContext.setBody(serializedBody);
361
377
  authMethod = _config.authMethods["app_key"];
362
378
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
363
379
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -376,7 +392,7 @@ var DefaultApiRequestFactory = (function (_super) {
376
392
  });
377
393
  });
378
394
  };
379
- DefaultApiRequestFactory.prototype.endLiveActivity = function (appId, activityId, subscriptionId, _options) {
395
+ DefaultApiRequestFactory.prototype.deleteAlias = function (appId, aliasLabel, aliasId, aliasLabelToDelete, _options) {
380
396
  var _a, _b, _c;
381
397
  return __awaiter(this, void 0, void 0, function () {
382
398
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -385,18 +401,22 @@ var DefaultApiRequestFactory = (function (_super) {
385
401
  case 0:
386
402
  _config = _options || this.configuration;
387
403
  if (appId === null || appId === undefined) {
388
- throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "appId");
404
+ throw new baseapi_1.RequiredError("DefaultApi", "deleteAlias", "appId");
389
405
  }
390
- if (activityId === null || activityId === undefined) {
391
- throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "activityId");
406
+ if (aliasLabel === null || aliasLabel === undefined) {
407
+ throw new baseapi_1.RequiredError("DefaultApi", "deleteAlias", "aliasLabel");
392
408
  }
393
- if (subscriptionId === null || subscriptionId === undefined) {
394
- throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "subscriptionId");
409
+ if (aliasId === null || aliasId === undefined) {
410
+ throw new baseapi_1.RequiredError("DefaultApi", "deleteAlias", "aliasId");
395
411
  }
396
- localVarPath = '/apps/{app_id}/live_activities/{activity_id}/token/{subscription_id}'
412
+ if (aliasLabelToDelete === null || aliasLabelToDelete === undefined) {
413
+ throw new baseapi_1.RequiredError("DefaultApi", "deleteAlias", "aliasLabelToDelete");
414
+ }
415
+ localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/identity/{alias_label_to_delete}'
397
416
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
398
- .replace('{' + 'activity_id' + '}', encodeURIComponent(String(activityId)))
399
- .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
417
+ .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
418
+ .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)))
419
+ .replace('{' + 'alias_label_to_delete' + '}', encodeURIComponent(String(aliasLabelToDelete)));
400
420
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
401
421
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
402
422
  authMethod = _config.authMethods["app_key"];
@@ -417,27 +437,27 @@ var DefaultApiRequestFactory = (function (_super) {
417
437
  });
418
438
  });
419
439
  };
420
- DefaultApiRequestFactory.prototype.exportPlayers = function (appId, exportPlayersRequestBody, _options) {
440
+ DefaultApiRequestFactory.prototype.deletePlayer = function (appId, playerId, _options) {
421
441
  var _a, _b, _c;
422
442
  return __awaiter(this, void 0, void 0, function () {
423
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
443
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
424
444
  return __generator(this, function (_d) {
425
445
  switch (_d.label) {
426
446
  case 0:
427
447
  _config = _options || this.configuration;
428
448
  if (appId === null || appId === undefined) {
429
- throw new baseapi_1.RequiredError("DefaultApi", "exportPlayers", "appId");
449
+ throw new baseapi_1.RequiredError("DefaultApi", "deletePlayer", "appId");
430
450
  }
431
- localVarPath = '/players/csv_export?app_id={app_id}'
432
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
433
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
451
+ if (playerId === null || playerId === undefined) {
452
+ throw new baseapi_1.RequiredError("DefaultApi", "deletePlayer", "playerId");
453
+ }
454
+ localVarPath = '/players/{player_id}'
455
+ .replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
456
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
434
457
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
435
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
436
- "application/json"
437
- ]);
438
- requestContext.setHeaderParam("Content-Type", contentType);
439
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(exportPlayersRequestBody, "ExportPlayersRequestBody", ""), contentType);
440
- requestContext.setBody(serializedBody);
458
+ if (appId !== undefined) {
459
+ requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
460
+ }
441
461
  authMethod = _config.authMethods["app_key"];
442
462
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
443
463
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -456,7 +476,7 @@ var DefaultApiRequestFactory = (function (_super) {
456
476
  });
457
477
  });
458
478
  };
459
- DefaultApiRequestFactory.prototype.getApp = function (appId, _options) {
479
+ DefaultApiRequestFactory.prototype.deleteSegments = function (appId, segmentId, _options) {
460
480
  var _a, _b, _c;
461
481
  return __awaiter(this, void 0, void 0, function () {
462
482
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -465,13 +485,17 @@ var DefaultApiRequestFactory = (function (_super) {
465
485
  case 0:
466
486
  _config = _options || this.configuration;
467
487
  if (appId === null || appId === undefined) {
468
- throw new baseapi_1.RequiredError("DefaultApi", "getApp", "appId");
488
+ throw new baseapi_1.RequiredError("DefaultApi", "deleteSegments", "appId");
469
489
  }
470
- localVarPath = '/apps/{app_id}'
471
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
472
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
490
+ if (segmentId === null || segmentId === undefined) {
491
+ throw new baseapi_1.RequiredError("DefaultApi", "deleteSegments", "segmentId");
492
+ }
493
+ localVarPath = '/apps/{app_id}/segments/{segment_id}'
494
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
495
+ .replace('{' + 'segment_id' + '}', encodeURIComponent(String(segmentId)));
496
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
473
497
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
474
- authMethod = _config.authMethods["user_key"];
498
+ authMethod = _config.authMethods["app_key"];
475
499
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
476
500
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
477
501
  case 1:
@@ -489,7 +513,7 @@ var DefaultApiRequestFactory = (function (_super) {
489
513
  });
490
514
  });
491
515
  };
492
- DefaultApiRequestFactory.prototype.getApps = function (_options) {
516
+ DefaultApiRequestFactory.prototype.deleteSubscription = function (appId, subscriptionId, _options) {
493
517
  var _a, _b, _c;
494
518
  return __awaiter(this, void 0, void 0, function () {
495
519
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -497,10 +521,18 @@ var DefaultApiRequestFactory = (function (_super) {
497
521
  switch (_d.label) {
498
522
  case 0:
499
523
  _config = _options || this.configuration;
500
- localVarPath = '/apps';
501
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
524
+ if (appId === null || appId === undefined) {
525
+ throw new baseapi_1.RequiredError("DefaultApi", "deleteSubscription", "appId");
526
+ }
527
+ if (subscriptionId === null || subscriptionId === undefined) {
528
+ throw new baseapi_1.RequiredError("DefaultApi", "deleteSubscription", "subscriptionId");
529
+ }
530
+ localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}'
531
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
532
+ .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
533
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
502
534
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
503
- authMethod = _config.authMethods["user_key"];
535
+ authMethod = _config.authMethods["app_key"];
504
536
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
505
537
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
506
538
  case 1:
@@ -518,27 +550,63 @@ var DefaultApiRequestFactory = (function (_super) {
518
550
  });
519
551
  });
520
552
  };
521
- DefaultApiRequestFactory.prototype.getNotification = function (appId, notificationId, _options) {
553
+ DefaultApiRequestFactory.prototype.deleteUser = function (appId, aliasLabel, aliasId, _options) {
522
554
  var _a, _b, _c;
523
555
  return __awaiter(this, void 0, void 0, function () {
524
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
556
+ var _config, localVarPath, requestContext, defaultAuth;
525
557
  return __generator(this, function (_d) {
526
558
  switch (_d.label) {
527
559
  case 0:
528
560
  _config = _options || this.configuration;
529
561
  if (appId === null || appId === undefined) {
530
- throw new baseapi_1.RequiredError("DefaultApi", "getNotification", "appId");
562
+ throw new baseapi_1.RequiredError("DefaultApi", "deleteUser", "appId");
531
563
  }
532
- if (notificationId === null || notificationId === undefined) {
533
- throw new baseapi_1.RequiredError("DefaultApi", "getNotification", "notificationId");
564
+ if (aliasLabel === null || aliasLabel === undefined) {
565
+ throw new baseapi_1.RequiredError("DefaultApi", "deleteUser", "aliasLabel");
534
566
  }
535
- localVarPath = '/notifications/{notification_id}'
536
- .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
537
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
567
+ if (aliasId === null || aliasId === undefined) {
568
+ throw new baseapi_1.RequiredError("DefaultApi", "deleteUser", "aliasId");
569
+ }
570
+ localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}'
571
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
572
+ .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
573
+ .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
574
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
538
575
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
539
- if (appId !== undefined) {
540
- requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
576
+ defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
577
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 2];
578
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
579
+ case 1:
580
+ _d.sent();
581
+ _d.label = 2;
582
+ case 2: return [2, requestContext];
583
+ }
584
+ });
585
+ });
586
+ };
587
+ DefaultApiRequestFactory.prototype.endLiveActivity = function (appId, activityId, subscriptionId, _options) {
588
+ var _a, _b, _c;
589
+ return __awaiter(this, void 0, void 0, function () {
590
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
591
+ return __generator(this, function (_d) {
592
+ switch (_d.label) {
593
+ case 0:
594
+ _config = _options || this.configuration;
595
+ if (appId === null || appId === undefined) {
596
+ throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "appId");
597
+ }
598
+ if (activityId === null || activityId === undefined) {
599
+ throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "activityId");
600
+ }
601
+ if (subscriptionId === null || subscriptionId === undefined) {
602
+ throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "subscriptionId");
541
603
  }
604
+ localVarPath = '/apps/{app_id}/live_activities/{activity_id}/token/{subscription_id}'
605
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
606
+ .replace('{' + 'activity_id' + '}', encodeURIComponent(String(activityId)))
607
+ .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
608
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
609
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
542
610
  authMethod = _config.authMethods["app_key"];
543
611
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
544
612
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -557,7 +625,7 @@ var DefaultApiRequestFactory = (function (_super) {
557
625
  });
558
626
  });
559
627
  };
560
- DefaultApiRequestFactory.prototype.getNotificationHistory = function (notificationId, getNotificationRequestBody, _options) {
628
+ DefaultApiRequestFactory.prototype.exportPlayers = function (appId, exportPlayersRequestBody, _options) {
561
629
  var _a, _b, _c;
562
630
  return __awaiter(this, void 0, void 0, function () {
563
631
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -565,21 +633,18 @@ var DefaultApiRequestFactory = (function (_super) {
565
633
  switch (_d.label) {
566
634
  case 0:
567
635
  _config = _options || this.configuration;
568
- if (notificationId === null || notificationId === undefined) {
569
- throw new baseapi_1.RequiredError("DefaultApi", "getNotificationHistory", "notificationId");
570
- }
571
- if (getNotificationRequestBody === null || getNotificationRequestBody === undefined) {
572
- throw new baseapi_1.RequiredError("DefaultApi", "getNotificationHistory", "getNotificationRequestBody");
636
+ if (appId === null || appId === undefined) {
637
+ throw new baseapi_1.RequiredError("DefaultApi", "exportPlayers", "appId");
573
638
  }
574
- localVarPath = '/notifications/{notification_id}/history'
575
- .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
639
+ localVarPath = '/players/csv_export?app_id={app_id}'
640
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
576
641
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
577
642
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
578
643
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
579
644
  "application/json"
580
645
  ]);
581
646
  requestContext.setHeaderParam("Content-Type", contentType);
582
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(getNotificationRequestBody, "GetNotificationRequestBody", ""), contentType);
647
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(exportPlayersRequestBody, "ExportPlayersRequestBody", ""), contentType);
583
648
  requestContext.setBody(serializedBody);
584
649
  authMethod = _config.authMethods["app_key"];
585
650
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
@@ -599,7 +664,7 @@ var DefaultApiRequestFactory = (function (_super) {
599
664
  });
600
665
  });
601
666
  };
602
- DefaultApiRequestFactory.prototype.getNotifications = function (appId, limit, offset, kind, _options) {
667
+ DefaultApiRequestFactory.prototype.fetchAliases = function (appId, subscriptionId, _options) {
603
668
  var _a, _b, _c;
604
669
  return __awaiter(this, void 0, void 0, function () {
605
670
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -608,23 +673,16 @@ var DefaultApiRequestFactory = (function (_super) {
608
673
  case 0:
609
674
  _config = _options || this.configuration;
610
675
  if (appId === null || appId === undefined) {
611
- throw new baseapi_1.RequiredError("DefaultApi", "getNotifications", "appId");
676
+ throw new baseapi_1.RequiredError("DefaultApi", "fetchAliases", "appId");
612
677
  }
613
- localVarPath = '/notifications';
678
+ if (subscriptionId === null || subscriptionId === undefined) {
679
+ throw new baseapi_1.RequiredError("DefaultApi", "fetchAliases", "subscriptionId");
680
+ }
681
+ localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/user/identity'
682
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
683
+ .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
614
684
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
615
685
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
616
- if (appId !== undefined) {
617
- requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
618
- }
619
- if (limit !== undefined) {
620
- requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
621
- }
622
- if (offset !== undefined) {
623
- requestContext.setQueryParam("offset", ObjectSerializer_1.ObjectSerializer.serialize(offset, "number", ""));
624
- }
625
- if (kind !== undefined) {
626
- requestContext.setQueryParam("kind", ObjectSerializer_1.ObjectSerializer.serialize(kind, "0 | 1 | 3", ""));
627
- }
628
686
  authMethod = _config.authMethods["app_key"];
629
687
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
630
688
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -643,7 +701,7 @@ var DefaultApiRequestFactory = (function (_super) {
643
701
  });
644
702
  });
645
703
  };
646
- DefaultApiRequestFactory.prototype.getOutcomes = function (appId, outcomeNames, outcomeNames2, outcomeTimeRange, outcomePlatforms, outcomeAttribution, _options) {
704
+ DefaultApiRequestFactory.prototype.fetchUser = function (appId, aliasLabel, aliasId, _options) {
647
705
  var _a, _b, _c;
648
706
  return __awaiter(this, void 0, void 0, function () {
649
707
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -652,30 +710,20 @@ var DefaultApiRequestFactory = (function (_super) {
652
710
  case 0:
653
711
  _config = _options || this.configuration;
654
712
  if (appId === null || appId === undefined) {
655
- throw new baseapi_1.RequiredError("DefaultApi", "getOutcomes", "appId");
713
+ throw new baseapi_1.RequiredError("DefaultApi", "fetchUser", "appId");
656
714
  }
657
- if (outcomeNames === null || outcomeNames === undefined) {
658
- throw new baseapi_1.RequiredError("DefaultApi", "getOutcomes", "outcomeNames");
715
+ if (aliasLabel === null || aliasLabel === undefined) {
716
+ throw new baseapi_1.RequiredError("DefaultApi", "fetchUser", "aliasLabel");
659
717
  }
660
- localVarPath = '/apps/{app_id}/outcomes'
661
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
718
+ if (aliasId === null || aliasId === undefined) {
719
+ throw new baseapi_1.RequiredError("DefaultApi", "fetchUser", "aliasId");
720
+ }
721
+ localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}'
722
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
723
+ .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
724
+ .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
662
725
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
663
726
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
664
- if (outcomeNames !== undefined) {
665
- requestContext.setQueryParam("outcome_names", ObjectSerializer_1.ObjectSerializer.serialize(outcomeNames, "string", ""));
666
- }
667
- if (outcomeNames2 !== undefined) {
668
- requestContext.setQueryParam("outcome_names[]", ObjectSerializer_1.ObjectSerializer.serialize(outcomeNames2, "string", ""));
669
- }
670
- if (outcomeTimeRange !== undefined) {
671
- requestContext.setQueryParam("outcome_time_range", ObjectSerializer_1.ObjectSerializer.serialize(outcomeTimeRange, "string", ""));
672
- }
673
- if (outcomePlatforms !== undefined) {
674
- requestContext.setQueryParam("outcome_platforms", ObjectSerializer_1.ObjectSerializer.serialize(outcomePlatforms, "string", ""));
675
- }
676
- if (outcomeAttribution !== undefined) {
677
- requestContext.setQueryParam("outcome_attribution", ObjectSerializer_1.ObjectSerializer.serialize(outcomeAttribution, "string", ""));
678
- }
679
727
  authMethod = _config.authMethods["app_key"];
680
728
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
681
729
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -694,7 +742,7 @@ var DefaultApiRequestFactory = (function (_super) {
694
742
  });
695
743
  });
696
744
  };
697
- DefaultApiRequestFactory.prototype.getPlayer = function (appId, playerId, emailAuthHash, _options) {
745
+ DefaultApiRequestFactory.prototype.fetchUserIdentity = function (appId, aliasLabel, aliasId, _options) {
698
746
  var _a, _b, _c;
699
747
  return __awaiter(this, void 0, void 0, function () {
700
748
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -703,21 +751,20 @@ var DefaultApiRequestFactory = (function (_super) {
703
751
  case 0:
704
752
  _config = _options || this.configuration;
705
753
  if (appId === null || appId === undefined) {
706
- throw new baseapi_1.RequiredError("DefaultApi", "getPlayer", "appId");
754
+ throw new baseapi_1.RequiredError("DefaultApi", "fetchUserIdentity", "appId");
707
755
  }
708
- if (playerId === null || playerId === undefined) {
709
- throw new baseapi_1.RequiredError("DefaultApi", "getPlayer", "playerId");
756
+ if (aliasLabel === null || aliasLabel === undefined) {
757
+ throw new baseapi_1.RequiredError("DefaultApi", "fetchUserIdentity", "aliasLabel");
710
758
  }
711
- localVarPath = '/players/{player_id}'
712
- .replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
759
+ if (aliasId === null || aliasId === undefined) {
760
+ throw new baseapi_1.RequiredError("DefaultApi", "fetchUserIdentity", "aliasId");
761
+ }
762
+ localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/identity'
763
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
764
+ .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
765
+ .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
713
766
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
714
767
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
715
- if (appId !== undefined) {
716
- requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
717
- }
718
- if (emailAuthHash !== undefined) {
719
- requestContext.setQueryParam("email_auth_hash", ObjectSerializer_1.ObjectSerializer.serialize(emailAuthHash, "string", ""));
720
- }
721
768
  authMethod = _config.authMethods["app_key"];
722
769
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
723
770
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -736,7 +783,7 @@ var DefaultApiRequestFactory = (function (_super) {
736
783
  });
737
784
  });
738
785
  };
739
- DefaultApiRequestFactory.prototype.getPlayers = function (appId, limit, offset, _options) {
786
+ DefaultApiRequestFactory.prototype.getApp = function (appId, _options) {
740
787
  var _a, _b, _c;
741
788
  return __awaiter(this, void 0, void 0, function () {
742
789
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -745,21 +792,13 @@ var DefaultApiRequestFactory = (function (_super) {
745
792
  case 0:
746
793
  _config = _options || this.configuration;
747
794
  if (appId === null || appId === undefined) {
748
- throw new baseapi_1.RequiredError("DefaultApi", "getPlayers", "appId");
795
+ throw new baseapi_1.RequiredError("DefaultApi", "getApp", "appId");
749
796
  }
750
- localVarPath = '/players';
797
+ localVarPath = '/apps/{app_id}'
798
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
751
799
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
752
800
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
753
- if (appId !== undefined) {
754
- requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
755
- }
756
- if (limit !== undefined) {
757
- requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
758
- }
759
- if (offset !== undefined) {
760
- requestContext.setQueryParam("offset", ObjectSerializer_1.ObjectSerializer.serialize(offset, "number", ""));
761
- }
762
- authMethod = _config.authMethods["app_key"];
801
+ authMethod = _config.authMethods["user_key"];
763
802
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
764
803
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
765
804
  case 1:
@@ -777,30 +816,17 @@ var DefaultApiRequestFactory = (function (_super) {
777
816
  });
778
817
  });
779
818
  };
780
- DefaultApiRequestFactory.prototype.updateApp = function (appId, app, _options) {
819
+ DefaultApiRequestFactory.prototype.getApps = function (_options) {
781
820
  var _a, _b, _c;
782
821
  return __awaiter(this, void 0, void 0, function () {
783
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
822
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
784
823
  return __generator(this, function (_d) {
785
824
  switch (_d.label) {
786
825
  case 0:
787
826
  _config = _options || this.configuration;
788
- if (appId === null || appId === undefined) {
789
- throw new baseapi_1.RequiredError("DefaultApi", "updateApp", "appId");
790
- }
791
- if (app === null || app === undefined) {
792
- throw new baseapi_1.RequiredError("DefaultApi", "updateApp", "app");
793
- }
794
- localVarPath = '/apps/{app_id}'
795
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
796
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
827
+ localVarPath = '/apps';
828
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
797
829
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
798
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
799
- "application/json"
800
- ]);
801
- requestContext.setHeaderParam("Content-Type", contentType);
802
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(app, "App", ""), contentType);
803
- requestContext.setBody(serializedBody);
804
830
  authMethod = _config.authMethods["user_key"];
805
831
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
806
832
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -819,33 +845,105 @@ var DefaultApiRequestFactory = (function (_super) {
819
845
  });
820
846
  });
821
847
  };
822
- DefaultApiRequestFactory.prototype.updateLiveActivity = function (appId, activityId, updateLiveActivityRequest, _options) {
848
+ DefaultApiRequestFactory.prototype.getEligibleIams = function (appId, subscriptionId, _options) {
823
849
  var _a, _b, _c;
824
850
  return __awaiter(this, void 0, void 0, function () {
825
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
851
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
826
852
  return __generator(this, function (_d) {
827
853
  switch (_d.label) {
828
854
  case 0:
829
855
  _config = _options || this.configuration;
830
856
  if (appId === null || appId === undefined) {
831
- throw new baseapi_1.RequiredError("DefaultApi", "updateLiveActivity", "appId");
832
- }
833
- if (activityId === null || activityId === undefined) {
834
- throw new baseapi_1.RequiredError("DefaultApi", "updateLiveActivity", "activityId");
857
+ throw new baseapi_1.RequiredError("DefaultApi", "getEligibleIams", "appId");
835
858
  }
836
- if (updateLiveActivityRequest === null || updateLiveActivityRequest === undefined) {
837
- throw new baseapi_1.RequiredError("DefaultApi", "updateLiveActivity", "updateLiveActivityRequest");
859
+ if (subscriptionId === null || subscriptionId === undefined) {
860
+ throw new baseapi_1.RequiredError("DefaultApi", "getEligibleIams", "subscriptionId");
838
861
  }
839
- localVarPath = '/apps/{app_id}/live_activities/{activity_id}/notifications'
862
+ localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/iams'
840
863
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
841
- .replace('{' + 'activity_id' + '}', encodeURIComponent(String(activityId)));
864
+ .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
865
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
866
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
867
+ authMethod = _config.authMethods["app_key"];
868
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
869
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
870
+ case 1:
871
+ _d.sent();
872
+ _d.label = 2;
873
+ case 2:
874
+ defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
875
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
876
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
877
+ case 3:
878
+ _d.sent();
879
+ _d.label = 4;
880
+ case 4: return [2, requestContext];
881
+ }
882
+ });
883
+ });
884
+ };
885
+ DefaultApiRequestFactory.prototype.getNotification = function (appId, notificationId, _options) {
886
+ var _a, _b, _c;
887
+ return __awaiter(this, void 0, void 0, function () {
888
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
889
+ return __generator(this, function (_d) {
890
+ switch (_d.label) {
891
+ case 0:
892
+ _config = _options || this.configuration;
893
+ if (appId === null || appId === undefined) {
894
+ throw new baseapi_1.RequiredError("DefaultApi", "getNotification", "appId");
895
+ }
896
+ if (notificationId === null || notificationId === undefined) {
897
+ throw new baseapi_1.RequiredError("DefaultApi", "getNotification", "notificationId");
898
+ }
899
+ localVarPath = '/notifications/{notification_id}'
900
+ .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
901
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
902
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
903
+ if (appId !== undefined) {
904
+ requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
905
+ }
906
+ authMethod = _config.authMethods["app_key"];
907
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
908
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
909
+ case 1:
910
+ _d.sent();
911
+ _d.label = 2;
912
+ case 2:
913
+ defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
914
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
915
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
916
+ case 3:
917
+ _d.sent();
918
+ _d.label = 4;
919
+ case 4: return [2, requestContext];
920
+ }
921
+ });
922
+ });
923
+ };
924
+ DefaultApiRequestFactory.prototype.getNotificationHistory = function (notificationId, getNotificationRequestBody, _options) {
925
+ var _a, _b, _c;
926
+ return __awaiter(this, void 0, void 0, function () {
927
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
928
+ return __generator(this, function (_d) {
929
+ switch (_d.label) {
930
+ case 0:
931
+ _config = _options || this.configuration;
932
+ if (notificationId === null || notificationId === undefined) {
933
+ throw new baseapi_1.RequiredError("DefaultApi", "getNotificationHistory", "notificationId");
934
+ }
935
+ if (getNotificationRequestBody === null || getNotificationRequestBody === undefined) {
936
+ throw new baseapi_1.RequiredError("DefaultApi", "getNotificationHistory", "getNotificationRequestBody");
937
+ }
938
+ localVarPath = '/notifications/{notification_id}/history'
939
+ .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
842
940
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
843
941
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
844
942
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
845
943
  "application/json"
846
944
  ]);
847
945
  requestContext.setHeaderParam("Content-Type", contentType);
848
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateLiveActivityRequest, "UpdateLiveActivityRequest", ""), contentType);
946
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(getNotificationRequestBody, "GetNotificationRequestBody", ""), contentType);
849
947
  requestContext.setBody(serializedBody);
850
948
  authMethod = _config.authMethods["app_key"];
851
949
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
@@ -865,30 +963,125 @@ var DefaultApiRequestFactory = (function (_super) {
865
963
  });
866
964
  });
867
965
  };
868
- DefaultApiRequestFactory.prototype.updatePlayer = function (playerId, player, _options) {
966
+ DefaultApiRequestFactory.prototype.getNotifications = function (appId, limit, offset, kind, _options) {
869
967
  var _a, _b, _c;
870
968
  return __awaiter(this, void 0, void 0, function () {
871
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
969
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
872
970
  return __generator(this, function (_d) {
873
971
  switch (_d.label) {
874
972
  case 0:
875
973
  _config = _options || this.configuration;
876
- if (playerId === null || playerId === undefined) {
877
- throw new baseapi_1.RequiredError("DefaultApi", "updatePlayer", "playerId");
974
+ if (appId === null || appId === undefined) {
975
+ throw new baseapi_1.RequiredError("DefaultApi", "getNotifications", "appId");
878
976
  }
879
- if (player === null || player === undefined) {
880
- throw new baseapi_1.RequiredError("DefaultApi", "updatePlayer", "player");
977
+ localVarPath = '/notifications';
978
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
979
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
980
+ if (appId !== undefined) {
981
+ requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
982
+ }
983
+ if (limit !== undefined) {
984
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
985
+ }
986
+ if (offset !== undefined) {
987
+ requestContext.setQueryParam("offset", ObjectSerializer_1.ObjectSerializer.serialize(offset, "number", ""));
988
+ }
989
+ if (kind !== undefined) {
990
+ requestContext.setQueryParam("kind", ObjectSerializer_1.ObjectSerializer.serialize(kind, "0 | 1 | 3", ""));
991
+ }
992
+ authMethod = _config.authMethods["app_key"];
993
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
994
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
995
+ case 1:
996
+ _d.sent();
997
+ _d.label = 2;
998
+ case 2:
999
+ defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
1000
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1001
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1002
+ case 3:
1003
+ _d.sent();
1004
+ _d.label = 4;
1005
+ case 4: return [2, requestContext];
1006
+ }
1007
+ });
1008
+ });
1009
+ };
1010
+ DefaultApiRequestFactory.prototype.getOutcomes = function (appId, outcomeNames, outcomeNames2, outcomeTimeRange, outcomePlatforms, outcomeAttribution, _options) {
1011
+ var _a, _b, _c;
1012
+ return __awaiter(this, void 0, void 0, function () {
1013
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
1014
+ return __generator(this, function (_d) {
1015
+ switch (_d.label) {
1016
+ case 0:
1017
+ _config = _options || this.configuration;
1018
+ if (appId === null || appId === undefined) {
1019
+ throw new baseapi_1.RequiredError("DefaultApi", "getOutcomes", "appId");
1020
+ }
1021
+ if (outcomeNames === null || outcomeNames === undefined) {
1022
+ throw new baseapi_1.RequiredError("DefaultApi", "getOutcomes", "outcomeNames");
1023
+ }
1024
+ localVarPath = '/apps/{app_id}/outcomes'
1025
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
1026
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1027
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1028
+ if (outcomeNames !== undefined) {
1029
+ requestContext.setQueryParam("outcome_names", ObjectSerializer_1.ObjectSerializer.serialize(outcomeNames, "string", ""));
1030
+ }
1031
+ if (outcomeNames2 !== undefined) {
1032
+ requestContext.setQueryParam("outcome_names[]", ObjectSerializer_1.ObjectSerializer.serialize(outcomeNames2, "string", ""));
1033
+ }
1034
+ if (outcomeTimeRange !== undefined) {
1035
+ requestContext.setQueryParam("outcome_time_range", ObjectSerializer_1.ObjectSerializer.serialize(outcomeTimeRange, "string", ""));
1036
+ }
1037
+ if (outcomePlatforms !== undefined) {
1038
+ requestContext.setQueryParam("outcome_platforms", ObjectSerializer_1.ObjectSerializer.serialize(outcomePlatforms, "string", ""));
1039
+ }
1040
+ if (outcomeAttribution !== undefined) {
1041
+ requestContext.setQueryParam("outcome_attribution", ObjectSerializer_1.ObjectSerializer.serialize(outcomeAttribution, "string", ""));
1042
+ }
1043
+ authMethod = _config.authMethods["app_key"];
1044
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1045
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1046
+ case 1:
1047
+ _d.sent();
1048
+ _d.label = 2;
1049
+ case 2:
1050
+ defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
1051
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1052
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1053
+ case 3:
1054
+ _d.sent();
1055
+ _d.label = 4;
1056
+ case 4: return [2, requestContext];
1057
+ }
1058
+ });
1059
+ });
1060
+ };
1061
+ DefaultApiRequestFactory.prototype.getPlayer = function (appId, playerId, emailAuthHash, _options) {
1062
+ var _a, _b, _c;
1063
+ return __awaiter(this, void 0, void 0, function () {
1064
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
1065
+ return __generator(this, function (_d) {
1066
+ switch (_d.label) {
1067
+ case 0:
1068
+ _config = _options || this.configuration;
1069
+ if (appId === null || appId === undefined) {
1070
+ throw new baseapi_1.RequiredError("DefaultApi", "getPlayer", "appId");
1071
+ }
1072
+ if (playerId === null || playerId === undefined) {
1073
+ throw new baseapi_1.RequiredError("DefaultApi", "getPlayer", "playerId");
881
1074
  }
882
1075
  localVarPath = '/players/{player_id}'
883
1076
  .replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
884
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1077
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
885
1078
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
886
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
887
- "application/json"
888
- ]);
889
- requestContext.setHeaderParam("Content-Type", contentType);
890
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(player, "Player", ""), contentType);
891
- requestContext.setBody(serializedBody);
1079
+ if (appId !== undefined) {
1080
+ requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
1081
+ }
1082
+ if (emailAuthHash !== undefined) {
1083
+ requestContext.setQueryParam("email_auth_hash", ObjectSerializer_1.ObjectSerializer.serialize(emailAuthHash, "string", ""));
1084
+ }
892
1085
  authMethod = _config.authMethods["app_key"];
893
1086
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
894
1087
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -907,31 +1100,29 @@ var DefaultApiRequestFactory = (function (_super) {
907
1100
  });
908
1101
  });
909
1102
  };
910
- DefaultApiRequestFactory.prototype.updatePlayerTags = function (appId, externalUserId, updatePlayerTagsRequestBody, _options) {
1103
+ DefaultApiRequestFactory.prototype.getPlayers = function (appId, limit, offset, _options) {
911
1104
  var _a, _b, _c;
912
1105
  return __awaiter(this, void 0, void 0, function () {
913
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1106
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
914
1107
  return __generator(this, function (_d) {
915
1108
  switch (_d.label) {
916
1109
  case 0:
917
1110
  _config = _options || this.configuration;
918
1111
  if (appId === null || appId === undefined) {
919
- throw new baseapi_1.RequiredError("DefaultApi", "updatePlayerTags", "appId");
920
- }
921
- if (externalUserId === null || externalUserId === undefined) {
922
- throw new baseapi_1.RequiredError("DefaultApi", "updatePlayerTags", "externalUserId");
1112
+ throw new baseapi_1.RequiredError("DefaultApi", "getPlayers", "appId");
923
1113
  }
924
- localVarPath = '/apps/{app_id}/users/{external_user_id}'
925
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
926
- .replace('{' + 'external_user_id' + '}', encodeURIComponent(String(externalUserId)));
927
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1114
+ localVarPath = '/players';
1115
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
928
1116
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
929
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
930
- "application/json"
931
- ]);
932
- requestContext.setHeaderParam("Content-Type", contentType);
933
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updatePlayerTagsRequestBody, "UpdatePlayerTagsRequestBody", ""), contentType);
934
- requestContext.setBody(serializedBody);
1117
+ if (appId !== undefined) {
1118
+ requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
1119
+ }
1120
+ if (limit !== undefined) {
1121
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
1122
+ }
1123
+ if (offset !== undefined) {
1124
+ requestContext.setQueryParam("offset", ObjectSerializer_1.ObjectSerializer.serialize(offset, "number", ""));
1125
+ }
935
1126
  authMethod = _config.authMethods["app_key"];
936
1127
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
937
1128
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -950,30 +1141,786 @@ var DefaultApiRequestFactory = (function (_super) {
950
1141
  });
951
1142
  });
952
1143
  };
953
- return DefaultApiRequestFactory;
954
- }(baseapi_1.BaseAPIRequestFactory));
955
- exports.DefaultApiRequestFactory = DefaultApiRequestFactory;
956
- var DefaultApiResponseProcessor = (function () {
957
- function DefaultApiResponseProcessor() {
958
- }
959
- DefaultApiResponseProcessor.prototype.beginLiveActivity = function (response) {
1144
+ DefaultApiRequestFactory.prototype.identifyUserByAlias = function (appId, aliasLabel, aliasId, userIdentityRequestBody, _options) {
1145
+ var _a, _b, _c;
1146
+ return __awaiter(this, void 0, void 0, function () {
1147
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1148
+ return __generator(this, function (_d) {
1149
+ switch (_d.label) {
1150
+ case 0:
1151
+ _config = _options || this.configuration;
1152
+ if (appId === null || appId === undefined) {
1153
+ throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "appId");
1154
+ }
1155
+ if (aliasLabel === null || aliasLabel === undefined) {
1156
+ throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "aliasLabel");
1157
+ }
1158
+ if (aliasId === null || aliasId === undefined) {
1159
+ throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "aliasId");
1160
+ }
1161
+ if (userIdentityRequestBody === null || userIdentityRequestBody === undefined) {
1162
+ throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "userIdentityRequestBody");
1163
+ }
1164
+ localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/identity'
1165
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1166
+ .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
1167
+ .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
1168
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1169
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1170
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1171
+ "application/json"
1172
+ ]);
1173
+ requestContext.setHeaderParam("Content-Type", contentType);
1174
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(userIdentityRequestBody, "UserIdentityRequestBody", ""), contentType);
1175
+ requestContext.setBody(serializedBody);
1176
+ authMethod = _config.authMethods["app_key"];
1177
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1178
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1179
+ case 1:
1180
+ _d.sent();
1181
+ _d.label = 2;
1182
+ case 2:
1183
+ defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
1184
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1185
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1186
+ case 3:
1187
+ _d.sent();
1188
+ _d.label = 4;
1189
+ case 4: return [2, requestContext];
1190
+ }
1191
+ });
1192
+ });
1193
+ };
1194
+ DefaultApiRequestFactory.prototype.identifyUserBySubscriptionId = function (appId, subscriptionId, userIdentityRequestBody, _options) {
1195
+ var _a, _b, _c;
1196
+ return __awaiter(this, void 0, void 0, function () {
1197
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1198
+ return __generator(this, function (_d) {
1199
+ switch (_d.label) {
1200
+ case 0:
1201
+ _config = _options || this.configuration;
1202
+ if (appId === null || appId === undefined) {
1203
+ throw new baseapi_1.RequiredError("DefaultApi", "identifyUserBySubscriptionId", "appId");
1204
+ }
1205
+ if (subscriptionId === null || subscriptionId === undefined) {
1206
+ throw new baseapi_1.RequiredError("DefaultApi", "identifyUserBySubscriptionId", "subscriptionId");
1207
+ }
1208
+ if (userIdentityRequestBody === null || userIdentityRequestBody === undefined) {
1209
+ throw new baseapi_1.RequiredError("DefaultApi", "identifyUserBySubscriptionId", "userIdentityRequestBody");
1210
+ }
1211
+ localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/user/identity'
1212
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1213
+ .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
1214
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1215
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1216
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1217
+ "application/json"
1218
+ ]);
1219
+ requestContext.setHeaderParam("Content-Type", contentType);
1220
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(userIdentityRequestBody, "UserIdentityRequestBody", ""), contentType);
1221
+ requestContext.setBody(serializedBody);
1222
+ authMethod = _config.authMethods["app_key"];
1223
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1224
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1225
+ case 1:
1226
+ _d.sent();
1227
+ _d.label = 2;
1228
+ case 2:
1229
+ defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
1230
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1231
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1232
+ case 3:
1233
+ _d.sent();
1234
+ _d.label = 4;
1235
+ case 4: return [2, requestContext];
1236
+ }
1237
+ });
1238
+ });
1239
+ };
1240
+ DefaultApiRequestFactory.prototype.transferSubscription = function (appId, subscriptionId, transferSubscriptionRequestBody, _options) {
1241
+ var _a, _b, _c;
1242
+ return __awaiter(this, void 0, void 0, function () {
1243
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1244
+ return __generator(this, function (_d) {
1245
+ switch (_d.label) {
1246
+ case 0:
1247
+ _config = _options || this.configuration;
1248
+ if (appId === null || appId === undefined) {
1249
+ throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "appId");
1250
+ }
1251
+ if (subscriptionId === null || subscriptionId === undefined) {
1252
+ throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "subscriptionId");
1253
+ }
1254
+ if (transferSubscriptionRequestBody === null || transferSubscriptionRequestBody === undefined) {
1255
+ throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "transferSubscriptionRequestBody");
1256
+ }
1257
+ localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/owner'
1258
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1259
+ .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
1260
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1261
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1262
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1263
+ "application/json"
1264
+ ]);
1265
+ requestContext.setHeaderParam("Content-Type", contentType);
1266
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(transferSubscriptionRequestBody, "TransferSubscriptionRequestBody", ""), contentType);
1267
+ requestContext.setBody(serializedBody);
1268
+ authMethod = _config.authMethods["app_key"];
1269
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1270
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1271
+ case 1:
1272
+ _d.sent();
1273
+ _d.label = 2;
1274
+ case 2:
1275
+ defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
1276
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1277
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1278
+ case 3:
1279
+ _d.sent();
1280
+ _d.label = 4;
1281
+ case 4: return [2, requestContext];
1282
+ }
1283
+ });
1284
+ });
1285
+ };
1286
+ DefaultApiRequestFactory.prototype.updateApp = function (appId, app, _options) {
1287
+ var _a, _b, _c;
1288
+ return __awaiter(this, void 0, void 0, function () {
1289
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1290
+ return __generator(this, function (_d) {
1291
+ switch (_d.label) {
1292
+ case 0:
1293
+ _config = _options || this.configuration;
1294
+ if (appId === null || appId === undefined) {
1295
+ throw new baseapi_1.RequiredError("DefaultApi", "updateApp", "appId");
1296
+ }
1297
+ if (app === null || app === undefined) {
1298
+ throw new baseapi_1.RequiredError("DefaultApi", "updateApp", "app");
1299
+ }
1300
+ localVarPath = '/apps/{app_id}'
1301
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
1302
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1303
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1304
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1305
+ "application/json"
1306
+ ]);
1307
+ requestContext.setHeaderParam("Content-Type", contentType);
1308
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(app, "App", ""), contentType);
1309
+ requestContext.setBody(serializedBody);
1310
+ authMethod = _config.authMethods["user_key"];
1311
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1312
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1313
+ case 1:
1314
+ _d.sent();
1315
+ _d.label = 2;
1316
+ case 2:
1317
+ defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
1318
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1319
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1320
+ case 3:
1321
+ _d.sent();
1322
+ _d.label = 4;
1323
+ case 4: return [2, requestContext];
1324
+ }
1325
+ });
1326
+ });
1327
+ };
1328
+ DefaultApiRequestFactory.prototype.updateLiveActivity = function (appId, activityId, updateLiveActivityRequest, _options) {
1329
+ var _a, _b, _c;
1330
+ return __awaiter(this, void 0, void 0, function () {
1331
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1332
+ return __generator(this, function (_d) {
1333
+ switch (_d.label) {
1334
+ case 0:
1335
+ _config = _options || this.configuration;
1336
+ if (appId === null || appId === undefined) {
1337
+ throw new baseapi_1.RequiredError("DefaultApi", "updateLiveActivity", "appId");
1338
+ }
1339
+ if (activityId === null || activityId === undefined) {
1340
+ throw new baseapi_1.RequiredError("DefaultApi", "updateLiveActivity", "activityId");
1341
+ }
1342
+ if (updateLiveActivityRequest === null || updateLiveActivityRequest === undefined) {
1343
+ throw new baseapi_1.RequiredError("DefaultApi", "updateLiveActivity", "updateLiveActivityRequest");
1344
+ }
1345
+ localVarPath = '/apps/{app_id}/live_activities/{activity_id}/notifications'
1346
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1347
+ .replace('{' + 'activity_id' + '}', encodeURIComponent(String(activityId)));
1348
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
1349
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1350
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1351
+ "application/json"
1352
+ ]);
1353
+ requestContext.setHeaderParam("Content-Type", contentType);
1354
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateLiveActivityRequest, "UpdateLiveActivityRequest", ""), contentType);
1355
+ requestContext.setBody(serializedBody);
1356
+ authMethod = _config.authMethods["app_key"];
1357
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1358
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1359
+ case 1:
1360
+ _d.sent();
1361
+ _d.label = 2;
1362
+ case 2:
1363
+ defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
1364
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1365
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1366
+ case 3:
1367
+ _d.sent();
1368
+ _d.label = 4;
1369
+ case 4: return [2, requestContext];
1370
+ }
1371
+ });
1372
+ });
1373
+ };
1374
+ DefaultApiRequestFactory.prototype.updatePlayer = function (playerId, player, _options) {
1375
+ var _a, _b, _c;
1376
+ return __awaiter(this, void 0, void 0, function () {
1377
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1378
+ return __generator(this, function (_d) {
1379
+ switch (_d.label) {
1380
+ case 0:
1381
+ _config = _options || this.configuration;
1382
+ if (playerId === null || playerId === undefined) {
1383
+ throw new baseapi_1.RequiredError("DefaultApi", "updatePlayer", "playerId");
1384
+ }
1385
+ if (player === null || player === undefined) {
1386
+ throw new baseapi_1.RequiredError("DefaultApi", "updatePlayer", "player");
1387
+ }
1388
+ localVarPath = '/players/{player_id}'
1389
+ .replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
1390
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1391
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1392
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1393
+ "application/json"
1394
+ ]);
1395
+ requestContext.setHeaderParam("Content-Type", contentType);
1396
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(player, "Player", ""), contentType);
1397
+ requestContext.setBody(serializedBody);
1398
+ authMethod = _config.authMethods["app_key"];
1399
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1400
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1401
+ case 1:
1402
+ _d.sent();
1403
+ _d.label = 2;
1404
+ case 2:
1405
+ defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
1406
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1407
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1408
+ case 3:
1409
+ _d.sent();
1410
+ _d.label = 4;
1411
+ case 4: return [2, requestContext];
1412
+ }
1413
+ });
1414
+ });
1415
+ };
1416
+ DefaultApiRequestFactory.prototype.updatePlayerTags = function (appId, externalUserId, updatePlayerTagsRequestBody, _options) {
1417
+ var _a, _b, _c;
1418
+ return __awaiter(this, void 0, void 0, function () {
1419
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1420
+ return __generator(this, function (_d) {
1421
+ switch (_d.label) {
1422
+ case 0:
1423
+ _config = _options || this.configuration;
1424
+ if (appId === null || appId === undefined) {
1425
+ throw new baseapi_1.RequiredError("DefaultApi", "updatePlayerTags", "appId");
1426
+ }
1427
+ if (externalUserId === null || externalUserId === undefined) {
1428
+ throw new baseapi_1.RequiredError("DefaultApi", "updatePlayerTags", "externalUserId");
1429
+ }
1430
+ localVarPath = '/apps/{app_id}/users/{external_user_id}'
1431
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1432
+ .replace('{' + 'external_user_id' + '}', encodeURIComponent(String(externalUserId)));
1433
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1434
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1435
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1436
+ "application/json"
1437
+ ]);
1438
+ requestContext.setHeaderParam("Content-Type", contentType);
1439
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updatePlayerTagsRequestBody, "UpdatePlayerTagsRequestBody", ""), contentType);
1440
+ requestContext.setBody(serializedBody);
1441
+ authMethod = _config.authMethods["app_key"];
1442
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1443
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1444
+ case 1:
1445
+ _d.sent();
1446
+ _d.label = 2;
1447
+ case 2:
1448
+ defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
1449
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1450
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1451
+ case 3:
1452
+ _d.sent();
1453
+ _d.label = 4;
1454
+ case 4: return [2, requestContext];
1455
+ }
1456
+ });
1457
+ });
1458
+ };
1459
+ DefaultApiRequestFactory.prototype.updateSubscription = function (appId, subscriptionId, updateSubscriptionRequestBody, _options) {
1460
+ var _a, _b, _c;
1461
+ return __awaiter(this, void 0, void 0, function () {
1462
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1463
+ return __generator(this, function (_d) {
1464
+ switch (_d.label) {
1465
+ case 0:
1466
+ _config = _options || this.configuration;
1467
+ if (appId === null || appId === undefined) {
1468
+ throw new baseapi_1.RequiredError("DefaultApi", "updateSubscription", "appId");
1469
+ }
1470
+ if (subscriptionId === null || subscriptionId === undefined) {
1471
+ throw new baseapi_1.RequiredError("DefaultApi", "updateSubscription", "subscriptionId");
1472
+ }
1473
+ if (updateSubscriptionRequestBody === null || updateSubscriptionRequestBody === undefined) {
1474
+ throw new baseapi_1.RequiredError("DefaultApi", "updateSubscription", "updateSubscriptionRequestBody");
1475
+ }
1476
+ localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}'
1477
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1478
+ .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
1479
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1480
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1481
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1482
+ "application/json"
1483
+ ]);
1484
+ requestContext.setHeaderParam("Content-Type", contentType);
1485
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateSubscriptionRequestBody, "UpdateSubscriptionRequestBody", ""), contentType);
1486
+ requestContext.setBody(serializedBody);
1487
+ authMethod = _config.authMethods["app_key"];
1488
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1489
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1490
+ case 1:
1491
+ _d.sent();
1492
+ _d.label = 2;
1493
+ case 2:
1494
+ defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
1495
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1496
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1497
+ case 3:
1498
+ _d.sent();
1499
+ _d.label = 4;
1500
+ case 4: return [2, requestContext];
1501
+ }
1502
+ });
1503
+ });
1504
+ };
1505
+ DefaultApiRequestFactory.prototype.updateUser = function (appId, aliasLabel, aliasId, updateUserRequest, _options) {
1506
+ var _a, _b, _c;
1507
+ return __awaiter(this, void 0, void 0, function () {
1508
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1509
+ return __generator(this, function (_d) {
1510
+ switch (_d.label) {
1511
+ case 0:
1512
+ _config = _options || this.configuration;
1513
+ if (appId === null || appId === undefined) {
1514
+ throw new baseapi_1.RequiredError("DefaultApi", "updateUser", "appId");
1515
+ }
1516
+ if (aliasLabel === null || aliasLabel === undefined) {
1517
+ throw new baseapi_1.RequiredError("DefaultApi", "updateUser", "aliasLabel");
1518
+ }
1519
+ if (aliasId === null || aliasId === undefined) {
1520
+ throw new baseapi_1.RequiredError("DefaultApi", "updateUser", "aliasId");
1521
+ }
1522
+ if (updateUserRequest === null || updateUserRequest === undefined) {
1523
+ throw new baseapi_1.RequiredError("DefaultApi", "updateUser", "updateUserRequest");
1524
+ }
1525
+ localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}'
1526
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1527
+ .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
1528
+ .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
1529
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1530
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1531
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1532
+ "application/json"
1533
+ ]);
1534
+ requestContext.setHeaderParam("Content-Type", contentType);
1535
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateUserRequest, "UpdateUserRequest", ""), contentType);
1536
+ requestContext.setBody(serializedBody);
1537
+ authMethod = _config.authMethods["app_key"];
1538
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1539
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1540
+ case 1:
1541
+ _d.sent();
1542
+ _d.label = 2;
1543
+ case 2:
1544
+ defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
1545
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1546
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1547
+ case 3:
1548
+ _d.sent();
1549
+ _d.label = 4;
1550
+ case 4: return [2, requestContext];
1551
+ }
1552
+ });
1553
+ });
1554
+ };
1555
+ return DefaultApiRequestFactory;
1556
+ }(baseapi_1.BaseAPIRequestFactory));
1557
+ exports.DefaultApiRequestFactory = DefaultApiRequestFactory;
1558
+ var DefaultApiResponseProcessor = (function () {
1559
+ function DefaultApiResponseProcessor() {
1560
+ }
1561
+ DefaultApiResponseProcessor.prototype.beginLiveActivity = function (response) {
1562
+ return __awaiter(this, void 0, void 0, function () {
1563
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1564
+ return __generator(this, function (_l) {
1565
+ switch (_l.label) {
1566
+ case 0:
1567
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1568
+ if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
1569
+ return [2];
1570
+ }
1571
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
1572
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1573
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1574
+ return [4, response.body.text()];
1575
+ case 1:
1576
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1577
+ "BadRequestError", ""]);
1578
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1579
+ case 2:
1580
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1581
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1582
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1583
+ return [4, response.body.text()];
1584
+ case 3:
1585
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1586
+ "void", ""]);
1587
+ return [2, body];
1588
+ case 4:
1589
+ _j = exception_1.ApiException.bind;
1590
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1591
+ return [4, response.getBodyAsAny()];
1592
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1593
+ }
1594
+ });
1595
+ });
1596
+ };
1597
+ DefaultApiResponseProcessor.prototype.cancelNotification = function (response) {
1598
+ return __awaiter(this, void 0, void 0, function () {
1599
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1600
+ return __generator(this, function (_q) {
1601
+ switch (_q.label) {
1602
+ case 0:
1603
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1604
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1605
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1606
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1607
+ return [4, response.body.text()];
1608
+ case 1:
1609
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1610
+ "CancelNotificationSuccessResponse", ""]);
1611
+ return [2, body];
1612
+ case 2:
1613
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1614
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1615
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1616
+ return [4, response.body.text()];
1617
+ case 3:
1618
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1619
+ "BadRequestError", ""]);
1620
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1621
+ case 4:
1622
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1623
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1624
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1625
+ return [4, response.body.text()];
1626
+ case 5:
1627
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1628
+ "CancelNotificationSuccessResponse", ""]);
1629
+ return [2, body];
1630
+ case 6:
1631
+ _o = exception_1.ApiException.bind;
1632
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1633
+ return [4, response.getBodyAsAny()];
1634
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1635
+ }
1636
+ });
1637
+ });
1638
+ };
1639
+ DefaultApiResponseProcessor.prototype.createApp = function (response) {
1640
+ return __awaiter(this, void 0, void 0, function () {
1641
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1642
+ return __generator(this, function (_q) {
1643
+ switch (_q.label) {
1644
+ case 0:
1645
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1646
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1647
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1648
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1649
+ return [4, response.body.text()];
1650
+ case 1:
1651
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1652
+ "App", ""]);
1653
+ return [2, body];
1654
+ case 2:
1655
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1656
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1657
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1658
+ return [4, response.body.text()];
1659
+ case 3:
1660
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1661
+ "BadRequestError", ""]);
1662
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1663
+ case 4:
1664
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1665
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1666
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1667
+ return [4, response.body.text()];
1668
+ case 5:
1669
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1670
+ "App", ""]);
1671
+ return [2, body];
1672
+ case 6:
1673
+ _o = exception_1.ApiException.bind;
1674
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1675
+ return [4, response.getBodyAsAny()];
1676
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1677
+ }
1678
+ });
1679
+ });
1680
+ };
1681
+ DefaultApiResponseProcessor.prototype.createNotification = function (response) {
1682
+ return __awaiter(this, void 0, void 0, function () {
1683
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1684
+ return __generator(this, function (_q) {
1685
+ switch (_q.label) {
1686
+ case 0:
1687
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1688
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1689
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1690
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1691
+ return [4, response.body.text()];
1692
+ case 1:
1693
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1694
+ "CreateNotificationSuccessResponse", ""]);
1695
+ return [2, body];
1696
+ case 2:
1697
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1698
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1699
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1700
+ return [4, response.body.text()];
1701
+ case 3:
1702
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1703
+ "BadRequestError", ""]);
1704
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1705
+ case 4:
1706
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1707
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1708
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1709
+ return [4, response.body.text()];
1710
+ case 5:
1711
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1712
+ "CreateNotificationSuccessResponse", ""]);
1713
+ return [2, body];
1714
+ case 6:
1715
+ _o = exception_1.ApiException.bind;
1716
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1717
+ return [4, response.getBodyAsAny()];
1718
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1719
+ }
1720
+ });
1721
+ });
1722
+ };
1723
+ DefaultApiResponseProcessor.prototype.createPlayer = function (response) {
1724
+ return __awaiter(this, void 0, void 0, function () {
1725
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1726
+ return __generator(this, function (_q) {
1727
+ switch (_q.label) {
1728
+ case 0:
1729
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1730
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1731
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1732
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1733
+ return [4, response.body.text()];
1734
+ case 1:
1735
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1736
+ "CreatePlayerSuccessResponse", ""]);
1737
+ return [2, body];
1738
+ case 2:
1739
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1740
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1741
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1742
+ return [4, response.body.text()];
1743
+ case 3:
1744
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1745
+ "BadRequestError", ""]);
1746
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1747
+ case 4:
1748
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1749
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1750
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1751
+ return [4, response.body.text()];
1752
+ case 5:
1753
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1754
+ "CreatePlayerSuccessResponse", ""]);
1755
+ return [2, body];
1756
+ case 6:
1757
+ _o = exception_1.ApiException.bind;
1758
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1759
+ return [4, response.getBodyAsAny()];
1760
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1761
+ }
1762
+ });
1763
+ });
1764
+ };
1765
+ DefaultApiResponseProcessor.prototype.createSegments = function (response) {
1766
+ return __awaiter(this, void 0, void 0, function () {
1767
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1768
+ return __generator(this, function (_u) {
1769
+ switch (_u.label) {
1770
+ case 0:
1771
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1772
+ if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
1773
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1774
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1775
+ return [4, response.body.text()];
1776
+ case 1:
1777
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1778
+ "CreateSegmentSuccessResponse", ""]);
1779
+ return [2, body];
1780
+ case 2:
1781
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1782
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1783
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1784
+ return [4, response.body.text()];
1785
+ case 3:
1786
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1787
+ "BadRequestError", ""]);
1788
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1789
+ case 4:
1790
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
1791
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1792
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1793
+ return [4, response.body.text()];
1794
+ case 5:
1795
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1796
+ "CreateSegmentConflictResponse", ""]);
1797
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
1798
+ case 6:
1799
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1800
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1801
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1802
+ return [4, response.body.text()];
1803
+ case 7:
1804
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1805
+ "CreateSegmentSuccessResponse", ""]);
1806
+ return [2, body];
1807
+ case 8:
1808
+ _s = exception_1.ApiException.bind;
1809
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1810
+ return [4, response.getBodyAsAny()];
1811
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1812
+ }
1813
+ });
1814
+ });
1815
+ };
1816
+ DefaultApiResponseProcessor.prototype.createSubscription = function (response) {
1817
+ return __awaiter(this, void 0, void 0, function () {
1818
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1819
+ return __generator(this, function (_q) {
1820
+ switch (_q.label) {
1821
+ case 0:
1822
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1823
+ if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
1824
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1825
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1826
+ return [4, response.body.text()];
1827
+ case 1:
1828
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1829
+ "InlineResponse201", ""]);
1830
+ return [2, body];
1831
+ case 2:
1832
+ if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 4];
1833
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1834
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1835
+ return [4, response.body.text()];
1836
+ case 3:
1837
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1838
+ "InlineResponse201", ""]);
1839
+ return [2, body];
1840
+ case 4:
1841
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1842
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1843
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1844
+ return [4, response.body.text()];
1845
+ case 5:
1846
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1847
+ "InlineResponse201", ""]);
1848
+ return [2, body];
1849
+ case 6:
1850
+ _o = exception_1.ApiException.bind;
1851
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1852
+ return [4, response.getBodyAsAny()];
1853
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1854
+ }
1855
+ });
1856
+ });
1857
+ };
1858
+ DefaultApiResponseProcessor.prototype.createUser = function (response) {
1859
+ return __awaiter(this, void 0, void 0, function () {
1860
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1861
+ return __generator(this, function (_u) {
1862
+ switch (_u.label) {
1863
+ case 0:
1864
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1865
+ if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
1866
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1867
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1868
+ return [4, response.body.text()];
1869
+ case 1:
1870
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1871
+ "User", ""]);
1872
+ return [2, body];
1873
+ case 2:
1874
+ if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 4];
1875
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1876
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1877
+ return [4, response.body.text()];
1878
+ case 3:
1879
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1880
+ "User", ""]);
1881
+ return [2, body];
1882
+ case 4:
1883
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
1884
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1885
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1886
+ return [4, response.body.text()];
1887
+ case 5:
1888
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1889
+ "CreateUserConflictResponse", ""]);
1890
+ throw new exception_1.ApiException(409, "Multiple User Identity Conflict", body, response.headers);
1891
+ case 6:
1892
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1893
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1894
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1895
+ return [4, response.body.text()];
1896
+ case 7:
1897
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1898
+ "User", ""]);
1899
+ return [2, body];
1900
+ case 8:
1901
+ _s = exception_1.ApiException.bind;
1902
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1903
+ return [4, response.getBodyAsAny()];
1904
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1905
+ }
1906
+ });
1907
+ });
1908
+ };
1909
+ DefaultApiResponseProcessor.prototype.deleteAlias = function (response) {
960
1910
  return __awaiter(this, void 0, void 0, function () {
961
1911
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
962
1912
  return __generator(this, function (_l) {
963
1913
  switch (_l.label) {
964
1914
  case 0:
965
1915
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
966
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
967
- return [2];
968
- }
969
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
1916
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
970
1917
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
971
1918
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
972
1919
  return [4, response.body.text()];
973
1920
  case 1:
974
1921
  body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
975
- "BadRequestError", ""]);
976
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1922
+ "InlineResponse200", ""]);
1923
+ return [2, body];
977
1924
  case 2:
978
1925
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
979
1926
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
@@ -981,7 +1928,7 @@ var DefaultApiResponseProcessor = (function () {
981
1928
  return [4, response.body.text()];
982
1929
  case 3:
983
1930
  body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
984
- "void", ""]);
1931
+ "InlineResponse200", ""]);
985
1932
  return [2, body];
986
1933
  case 4:
987
1934
  _j = exception_1.ApiException.bind;
@@ -992,11 +1939,11 @@ var DefaultApiResponseProcessor = (function () {
992
1939
  });
993
1940
  });
994
1941
  };
995
- DefaultApiResponseProcessor.prototype.cancelNotification = function (response) {
1942
+ DefaultApiResponseProcessor.prototype.deletePlayer = function (response) {
996
1943
  return __awaiter(this, void 0, void 0, function () {
997
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
998
- return __generator(this, function (_q) {
999
- switch (_q.label) {
1944
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1945
+ return __generator(this, function (_u) {
1946
+ switch (_u.label) {
1000
1947
  case 0:
1001
1948
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1002
1949
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1004,8 +1951,8 @@ var DefaultApiResponseProcessor = (function () {
1004
1951
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1005
1952
  return [4, response.body.text()];
1006
1953
  case 1:
1007
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1008
- "CancelNotificationSuccessResponse", ""]);
1954
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1955
+ "DeletePlayerSuccessResponse", ""]);
1009
1956
  return [2, body];
1010
1957
  case 2:
1011
1958
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1013,32 +1960,41 @@ var DefaultApiResponseProcessor = (function () {
1013
1960
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1014
1961
  return [4, response.body.text()];
1015
1962
  case 3:
1016
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1963
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1017
1964
  "BadRequestError", ""]);
1018
1965
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1019
1966
  case 4:
1020
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1967
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1021
1968
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1022
1969
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1023
1970
  return [4, response.body.text()];
1024
1971
  case 5:
1025
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1026
- "CancelNotificationSuccessResponse", ""]);
1027
- return [2, body];
1972
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1973
+ "DeletePlayerNotFoundResponse", ""]);
1974
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
1028
1975
  case 6:
1029
- _o = exception_1.ApiException.bind;
1030
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1976
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1977
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1978
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1979
+ return [4, response.body.text()];
1980
+ case 7:
1981
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1982
+ "DeletePlayerSuccessResponse", ""]);
1983
+ return [2, body];
1984
+ case 8:
1985
+ _s = exception_1.ApiException.bind;
1986
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1031
1987
  return [4, response.getBodyAsAny()];
1032
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1988
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1033
1989
  }
1034
1990
  });
1035
1991
  });
1036
1992
  };
1037
- DefaultApiResponseProcessor.prototype.createApp = function (response) {
1993
+ DefaultApiResponseProcessor.prototype.deleteSegments = function (response) {
1038
1994
  return __awaiter(this, void 0, void 0, function () {
1039
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1040
- return __generator(this, function (_q) {
1041
- switch (_q.label) {
1995
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1996
+ return __generator(this, function (_u) {
1997
+ switch (_u.label) {
1042
1998
  case 0:
1043
1999
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1044
2000
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1046,8 +2002,8 @@ var DefaultApiResponseProcessor = (function () {
1046
2002
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1047
2003
  return [4, response.body.text()];
1048
2004
  case 1:
1049
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1050
- "App", ""]);
2005
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2006
+ "DeleteSegmentSuccessResponse", ""]);
1051
2007
  return [2, body];
1052
2008
  case 2:
1053
2009
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1055,28 +2011,127 @@ var DefaultApiResponseProcessor = (function () {
1055
2011
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1056
2012
  return [4, response.body.text()];
1057
2013
  case 3:
1058
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2014
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1059
2015
  "BadRequestError", ""]);
1060
2016
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1061
2017
  case 4:
1062
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2018
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1063
2019
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1064
2020
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1065
2021
  return [4, response.body.text()];
1066
2022
  case 5:
1067
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1068
- "App", ""]);
1069
- return [2, body];
2023
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2024
+ "DeleteSegmentNotFoundResponse", ""]);
2025
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
1070
2026
  case 6:
1071
- _o = exception_1.ApiException.bind;
1072
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2027
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2028
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2029
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2030
+ return [4, response.body.text()];
2031
+ case 7:
2032
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2033
+ "DeleteSegmentSuccessResponse", ""]);
2034
+ return [2, body];
2035
+ case 8:
2036
+ _s = exception_1.ApiException.bind;
2037
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1073
2038
  return [4, response.getBodyAsAny()];
1074
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2039
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1075
2040
  }
1076
2041
  });
1077
2042
  });
1078
2043
  };
1079
- DefaultApiResponseProcessor.prototype.createNotification = function (response) {
2044
+ DefaultApiResponseProcessor.prototype.deleteSubscription = function (response) {
2045
+ return __awaiter(this, void 0, void 0, function () {
2046
+ var contentType, body, _a, _b, _c, _d, _e, _f;
2047
+ return __generator(this, function (_g) {
2048
+ switch (_g.label) {
2049
+ case 0:
2050
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2051
+ if ((0, util_1.isCodeInRange)("202", response.httpStatusCode)) {
2052
+ return [2];
2053
+ }
2054
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
2055
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2056
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2057
+ return [4, response.body.text()];
2058
+ case 1:
2059
+ body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
2060
+ "void", ""]);
2061
+ return [2, body];
2062
+ case 2:
2063
+ _e = exception_1.ApiException.bind;
2064
+ _f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2065
+ return [4, response.getBodyAsAny()];
2066
+ case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
2067
+ }
2068
+ });
2069
+ });
2070
+ };
2071
+ DefaultApiResponseProcessor.prototype.deleteUser = function (response) {
2072
+ return __awaiter(this, void 0, void 0, function () {
2073
+ var contentType, body, _a, _b, _c, _d, _e, _f;
2074
+ return __generator(this, function (_g) {
2075
+ switch (_g.label) {
2076
+ case 0:
2077
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2078
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
2079
+ return [2];
2080
+ }
2081
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
2082
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2083
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2084
+ return [4, response.body.text()];
2085
+ case 1:
2086
+ body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
2087
+ "void", ""]);
2088
+ return [2, body];
2089
+ case 2:
2090
+ _e = exception_1.ApiException.bind;
2091
+ _f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2092
+ return [4, response.getBodyAsAny()];
2093
+ case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
2094
+ }
2095
+ });
2096
+ });
2097
+ };
2098
+ DefaultApiResponseProcessor.prototype.endLiveActivity = function (response) {
2099
+ return __awaiter(this, void 0, void 0, function () {
2100
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2101
+ return __generator(this, function (_l) {
2102
+ switch (_l.label) {
2103
+ case 0:
2104
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2105
+ if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
2106
+ return [2];
2107
+ }
2108
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
2109
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2110
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2111
+ return [4, response.body.text()];
2112
+ case 1:
2113
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2114
+ "BadRequestError", ""]);
2115
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2116
+ case 2:
2117
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2118
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2119
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2120
+ return [4, response.body.text()];
2121
+ case 3:
2122
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2123
+ "void", ""]);
2124
+ return [2, body];
2125
+ case 4:
2126
+ _j = exception_1.ApiException.bind;
2127
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2128
+ return [4, response.getBodyAsAny()];
2129
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2130
+ }
2131
+ });
2132
+ });
2133
+ };
2134
+ DefaultApiResponseProcessor.prototype.exportPlayers = function (response) {
1080
2135
  return __awaiter(this, void 0, void 0, function () {
1081
2136
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1082
2137
  return __generator(this, function (_q) {
@@ -1089,7 +2144,7 @@ var DefaultApiResponseProcessor = (function () {
1089
2144
  return [4, response.body.text()];
1090
2145
  case 1:
1091
2146
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1092
- "CreateNotificationSuccessResponse", ""]);
2147
+ "ExportPlayersSuccessResponse", ""]);
1093
2148
  return [2, body];
1094
2149
  case 2:
1095
2150
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1107,7 +2162,7 @@ var DefaultApiResponseProcessor = (function () {
1107
2162
  return [4, response.body.text()];
1108
2163
  case 5:
1109
2164
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1110
- "CreateNotificationSuccessResponse", ""]);
2165
+ "ExportPlayersSuccessResponse", ""]);
1111
2166
  return [2, body];
1112
2167
  case 6:
1113
2168
  _o = exception_1.ApiException.bind;
@@ -1118,11 +2173,11 @@ var DefaultApiResponseProcessor = (function () {
1118
2173
  });
1119
2174
  });
1120
2175
  };
1121
- DefaultApiResponseProcessor.prototype.createPlayer = function (response) {
2176
+ DefaultApiResponseProcessor.prototype.fetchAliases = function (response) {
1122
2177
  return __awaiter(this, void 0, void 0, function () {
1123
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1124
- return __generator(this, function (_q) {
1125
- switch (_q.label) {
2178
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2179
+ return __generator(this, function (_l) {
2180
+ switch (_l.label) {
1126
2181
  case 0:
1127
2182
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1128
2183
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1130,92 +2185,98 @@ var DefaultApiResponseProcessor = (function () {
1130
2185
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1131
2186
  return [4, response.body.text()];
1132
2187
  case 1:
1133
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1134
- "CreatePlayerSuccessResponse", ""]);
2188
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2189
+ "UserIdentityResponse", ""]);
1135
2190
  return [2, body];
1136
2191
  case 2:
1137
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2192
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1138
2193
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1139
2194
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1140
2195
  return [4, response.body.text()];
1141
2196
  case 3:
1142
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1143
- "BadRequestError", ""]);
1144
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1145
- case 4:
1146
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1147
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1148
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1149
- return [4, response.body.text()];
1150
- case 5:
1151
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1152
- "CreatePlayerSuccessResponse", ""]);
2197
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2198
+ "UserIdentityResponse", ""]);
1153
2199
  return [2, body];
1154
- case 6:
1155
- _o = exception_1.ApiException.bind;
1156
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2200
+ case 4:
2201
+ _j = exception_1.ApiException.bind;
2202
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1157
2203
  return [4, response.getBodyAsAny()];
1158
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2204
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1159
2205
  }
1160
2206
  });
1161
2207
  });
1162
2208
  };
1163
- DefaultApiResponseProcessor.prototype.createSegments = function (response) {
2209
+ DefaultApiResponseProcessor.prototype.fetchUser = function (response) {
1164
2210
  return __awaiter(this, void 0, void 0, function () {
1165
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1166
- return __generator(this, function (_u) {
1167
- switch (_u.label) {
2211
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2212
+ return __generator(this, function (_l) {
2213
+ switch (_l.label) {
1168
2214
  case 0:
1169
2215
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1170
- if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
2216
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1171
2217
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1172
2218
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1173
2219
  return [4, response.body.text()];
1174
2220
  case 1:
1175
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1176
- "CreateSegmentSuccessResponse", ""]);
2221
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2222
+ "User", ""]);
1177
2223
  return [2, body];
1178
2224
  case 2:
1179
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2225
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1180
2226
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1181
2227
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1182
2228
  return [4, response.body.text()];
1183
2229
  case 3:
1184
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1185
- "BadRequestError", ""]);
1186
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2230
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2231
+ "User", ""]);
2232
+ return [2, body];
1187
2233
  case 4:
1188
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
1189
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1190
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2234
+ _j = exception_1.ApiException.bind;
2235
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2236
+ return [4, response.getBodyAsAny()];
2237
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2238
+ }
2239
+ });
2240
+ });
2241
+ };
2242
+ DefaultApiResponseProcessor.prototype.fetchUserIdentity = function (response) {
2243
+ return __awaiter(this, void 0, void 0, function () {
2244
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2245
+ return __generator(this, function (_l) {
2246
+ switch (_l.label) {
2247
+ case 0:
2248
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2249
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2250
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2251
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1191
2252
  return [4, response.body.text()];
1192
- case 5:
1193
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1194
- "CreateSegmentConflictResponse", ""]);
1195
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
1196
- case 6:
1197
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1198
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1199
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2253
+ case 1:
2254
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2255
+ "InlineResponse200", ""]);
2256
+ return [2, body];
2257
+ case 2:
2258
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2259
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2260
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1200
2261
  return [4, response.body.text()];
1201
- case 7:
1202
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1203
- "CreateSegmentSuccessResponse", ""]);
2262
+ case 3:
2263
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2264
+ "InlineResponse200", ""]);
1204
2265
  return [2, body];
1205
- case 8:
1206
- _s = exception_1.ApiException.bind;
1207
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2266
+ case 4:
2267
+ _j = exception_1.ApiException.bind;
2268
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1208
2269
  return [4, response.getBodyAsAny()];
1209
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2270
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1210
2271
  }
1211
2272
  });
1212
2273
  });
1213
2274
  };
1214
- DefaultApiResponseProcessor.prototype.deletePlayer = function (response) {
2275
+ DefaultApiResponseProcessor.prototype.getApp = function (response) {
1215
2276
  return __awaiter(this, void 0, void 0, function () {
1216
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1217
- return __generator(this, function (_u) {
1218
- switch (_u.label) {
2277
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2278
+ return __generator(this, function (_q) {
2279
+ switch (_q.label) {
1219
2280
  case 0:
1220
2281
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1221
2282
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1223,8 +2284,8 @@ var DefaultApiResponseProcessor = (function () {
1223
2284
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1224
2285
  return [4, response.body.text()];
1225
2286
  case 1:
1226
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1227
- "DeletePlayerSuccessResponse", ""]);
2287
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2288
+ "App", ""]);
1228
2289
  return [2, body];
1229
2290
  case 2:
1230
2291
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1232,41 +2293,32 @@ var DefaultApiResponseProcessor = (function () {
1232
2293
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1233
2294
  return [4, response.body.text()];
1234
2295
  case 3:
1235
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2296
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1236
2297
  "BadRequestError", ""]);
1237
2298
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1238
2299
  case 4:
1239
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2300
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1240
2301
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1241
2302
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1242
2303
  return [4, response.body.text()];
1243
2304
  case 5:
1244
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1245
- "DeletePlayerNotFoundResponse", ""]);
1246
- throw new exception_1.ApiException(404, "Not Found", body, response.headers);
1247
- case 6:
1248
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1249
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1250
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1251
- return [4, response.body.text()];
1252
- case 7:
1253
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1254
- "DeletePlayerSuccessResponse", ""]);
2305
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2306
+ "App", ""]);
1255
2307
  return [2, body];
1256
- case 8:
1257
- _s = exception_1.ApiException.bind;
1258
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2308
+ case 6:
2309
+ _o = exception_1.ApiException.bind;
2310
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1259
2311
  return [4, response.getBodyAsAny()];
1260
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2312
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1261
2313
  }
1262
2314
  });
1263
2315
  });
1264
2316
  };
1265
- DefaultApiResponseProcessor.prototype.deleteSegments = function (response) {
2317
+ DefaultApiResponseProcessor.prototype.getApps = function (response) {
1266
2318
  return __awaiter(this, void 0, void 0, function () {
1267
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1268
- return __generator(this, function (_u) {
1269
- switch (_u.label) {
2319
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2320
+ return __generator(this, function (_q) {
2321
+ switch (_q.label) {
1270
2322
  case 0:
1271
2323
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1272
2324
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1274,8 +2326,8 @@ var DefaultApiResponseProcessor = (function () {
1274
2326
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1275
2327
  return [4, response.body.text()];
1276
2328
  case 1:
1277
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1278
- "DeleteSegmentSuccessResponse", ""]);
2329
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2330
+ "Array<App>", ""]);
1279
2331
  return [2, body];
1280
2332
  case 2:
1281
2333
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1283,54 +2335,42 @@ var DefaultApiResponseProcessor = (function () {
1283
2335
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1284
2336
  return [4, response.body.text()];
1285
2337
  case 3:
1286
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2338
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1287
2339
  "BadRequestError", ""]);
1288
2340
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1289
2341
  case 4:
1290
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2342
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1291
2343
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1292
2344
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1293
2345
  return [4, response.body.text()];
1294
2346
  case 5:
1295
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1296
- "DeleteSegmentNotFoundResponse", ""]);
1297
- throw new exception_1.ApiException(404, "Not Found", body, response.headers);
1298
- case 6:
1299
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1300
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1301
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1302
- return [4, response.body.text()];
1303
- case 7:
1304
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1305
- "DeleteSegmentSuccessResponse", ""]);
2347
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2348
+ "Array<App>", ""]);
1306
2349
  return [2, body];
1307
- case 8:
1308
- _s = exception_1.ApiException.bind;
1309
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2350
+ case 6:
2351
+ _o = exception_1.ApiException.bind;
2352
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1310
2353
  return [4, response.getBodyAsAny()];
1311
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2354
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1312
2355
  }
1313
2356
  });
1314
2357
  });
1315
2358
  };
1316
- DefaultApiResponseProcessor.prototype.endLiveActivity = function (response) {
2359
+ DefaultApiResponseProcessor.prototype.getEligibleIams = function (response) {
1317
2360
  return __awaiter(this, void 0, void 0, function () {
1318
2361
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1319
2362
  return __generator(this, function (_l) {
1320
2363
  switch (_l.label) {
1321
2364
  case 0:
1322
2365
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1323
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
1324
- return [2];
1325
- }
1326
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
2366
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1327
2367
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1328
2368
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1329
2369
  return [4, response.body.text()];
1330
2370
  case 1:
1331
2371
  body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1332
- "BadRequestError", ""]);
1333
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2372
+ "InlineResponse2003", ""]);
2373
+ return [2, body];
1334
2374
  case 2:
1335
2375
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1336
2376
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
@@ -1338,7 +2378,7 @@ var DefaultApiResponseProcessor = (function () {
1338
2378
  return [4, response.body.text()];
1339
2379
  case 3:
1340
2380
  body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1341
- "void", ""]);
2381
+ "InlineResponse2003", ""]);
1342
2382
  return [2, body];
1343
2383
  case 4:
1344
2384
  _j = exception_1.ApiException.bind;
@@ -1349,7 +2389,7 @@ var DefaultApiResponseProcessor = (function () {
1349
2389
  });
1350
2390
  });
1351
2391
  };
1352
- DefaultApiResponseProcessor.prototype.exportPlayers = function (response) {
2392
+ DefaultApiResponseProcessor.prototype.getNotification = function (response) {
1353
2393
  return __awaiter(this, void 0, void 0, function () {
1354
2394
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1355
2395
  return __generator(this, function (_q) {
@@ -1362,7 +2402,7 @@ var DefaultApiResponseProcessor = (function () {
1362
2402
  return [4, response.body.text()];
1363
2403
  case 1:
1364
2404
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1365
- "ExportPlayersSuccessResponse", ""]);
2405
+ "NotificationWithMeta", ""]);
1366
2406
  return [2, body];
1367
2407
  case 2:
1368
2408
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1380,7 +2420,7 @@ var DefaultApiResponseProcessor = (function () {
1380
2420
  return [4, response.body.text()];
1381
2421
  case 5:
1382
2422
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1383
- "ExportPlayersSuccessResponse", ""]);
2423
+ "NotificationWithMeta", ""]);
1384
2424
  return [2, body];
1385
2425
  case 6:
1386
2426
  _o = exception_1.ApiException.bind;
@@ -1391,7 +2431,7 @@ var DefaultApiResponseProcessor = (function () {
1391
2431
  });
1392
2432
  });
1393
2433
  };
1394
- DefaultApiResponseProcessor.prototype.getApp = function (response) {
2434
+ DefaultApiResponseProcessor.prototype.getNotificationHistory = function (response) {
1395
2435
  return __awaiter(this, void 0, void 0, function () {
1396
2436
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1397
2437
  return __generator(this, function (_q) {
@@ -1404,7 +2444,7 @@ var DefaultApiResponseProcessor = (function () {
1404
2444
  return [4, response.body.text()];
1405
2445
  case 1:
1406
2446
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1407
- "App", ""]);
2447
+ "NotificationHistorySuccessResponse", ""]);
1408
2448
  return [2, body];
1409
2449
  case 2:
1410
2450
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1422,7 +2462,7 @@ var DefaultApiResponseProcessor = (function () {
1422
2462
  return [4, response.body.text()];
1423
2463
  case 5:
1424
2464
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1425
- "App", ""]);
2465
+ "NotificationHistorySuccessResponse", ""]);
1426
2466
  return [2, body];
1427
2467
  case 6:
1428
2468
  _o = exception_1.ApiException.bind;
@@ -1433,7 +2473,7 @@ var DefaultApiResponseProcessor = (function () {
1433
2473
  });
1434
2474
  });
1435
2475
  };
1436
- DefaultApiResponseProcessor.prototype.getApps = function (response) {
2476
+ DefaultApiResponseProcessor.prototype.getNotifications = function (response) {
1437
2477
  return __awaiter(this, void 0, void 0, function () {
1438
2478
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1439
2479
  return __generator(this, function (_q) {
@@ -1446,7 +2486,7 @@ var DefaultApiResponseProcessor = (function () {
1446
2486
  return [4, response.body.text()];
1447
2487
  case 1:
1448
2488
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1449
- "Array<App>", ""]);
2489
+ "NotificationSlice", ""]);
1450
2490
  return [2, body];
1451
2491
  case 2:
1452
2492
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1464,7 +2504,7 @@ var DefaultApiResponseProcessor = (function () {
1464
2504
  return [4, response.body.text()];
1465
2505
  case 5:
1466
2506
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1467
- "Array<App>", ""]);
2507
+ "NotificationSlice", ""]);
1468
2508
  return [2, body];
1469
2509
  case 6:
1470
2510
  _o = exception_1.ApiException.bind;
@@ -1475,7 +2515,7 @@ var DefaultApiResponseProcessor = (function () {
1475
2515
  });
1476
2516
  });
1477
2517
  };
1478
- DefaultApiResponseProcessor.prototype.getNotification = function (response) {
2518
+ DefaultApiResponseProcessor.prototype.getOutcomes = function (response) {
1479
2519
  return __awaiter(this, void 0, void 0, function () {
1480
2520
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1481
2521
  return __generator(this, function (_q) {
@@ -1488,7 +2528,7 @@ var DefaultApiResponseProcessor = (function () {
1488
2528
  return [4, response.body.text()];
1489
2529
  case 1:
1490
2530
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1491
- "NotificationWithMeta", ""]);
2531
+ "OutcomesData", ""]);
1492
2532
  return [2, body];
1493
2533
  case 2:
1494
2534
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1506,7 +2546,7 @@ var DefaultApiResponseProcessor = (function () {
1506
2546
  return [4, response.body.text()];
1507
2547
  case 5:
1508
2548
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1509
- "NotificationWithMeta", ""]);
2549
+ "OutcomesData", ""]);
1510
2550
  return [2, body];
1511
2551
  case 6:
1512
2552
  _o = exception_1.ApiException.bind;
@@ -1517,7 +2557,7 @@ var DefaultApiResponseProcessor = (function () {
1517
2557
  });
1518
2558
  });
1519
2559
  };
1520
- DefaultApiResponseProcessor.prototype.getNotificationHistory = function (response) {
2560
+ DefaultApiResponseProcessor.prototype.getPlayer = function (response) {
1521
2561
  return __awaiter(this, void 0, void 0, function () {
1522
2562
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1523
2563
  return __generator(this, function (_q) {
@@ -1530,7 +2570,7 @@ var DefaultApiResponseProcessor = (function () {
1530
2570
  return [4, response.body.text()];
1531
2571
  case 1:
1532
2572
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1533
- "NotificationHistorySuccessResponse", ""]);
2573
+ "Player", ""]);
1534
2574
  return [2, body];
1535
2575
  case 2:
1536
2576
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1548,7 +2588,7 @@ var DefaultApiResponseProcessor = (function () {
1548
2588
  return [4, response.body.text()];
1549
2589
  case 5:
1550
2590
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1551
- "NotificationHistorySuccessResponse", ""]);
2591
+ "Player", ""]);
1552
2592
  return [2, body];
1553
2593
  case 6:
1554
2594
  _o = exception_1.ApiException.bind;
@@ -1559,7 +2599,7 @@ var DefaultApiResponseProcessor = (function () {
1559
2599
  });
1560
2600
  });
1561
2601
  };
1562
- DefaultApiResponseProcessor.prototype.getNotifications = function (response) {
2602
+ DefaultApiResponseProcessor.prototype.getPlayers = function (response) {
1563
2603
  return __awaiter(this, void 0, void 0, function () {
1564
2604
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1565
2605
  return __generator(this, function (_q) {
@@ -1572,7 +2612,7 @@ var DefaultApiResponseProcessor = (function () {
1572
2612
  return [4, response.body.text()];
1573
2613
  case 1:
1574
2614
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1575
- "NotificationSlice", ""]);
2615
+ "PlayerSlice", ""]);
1576
2616
  return [2, body];
1577
2617
  case 2:
1578
2618
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1590,7 +2630,7 @@ var DefaultApiResponseProcessor = (function () {
1590
2630
  return [4, response.body.text()];
1591
2631
  case 5:
1592
2632
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1593
- "NotificationSlice", ""]);
2633
+ "PlayerSlice", ""]);
1594
2634
  return [2, body];
1595
2635
  case 6:
1596
2636
  _o = exception_1.ApiException.bind;
@@ -1601,7 +2641,7 @@ var DefaultApiResponseProcessor = (function () {
1601
2641
  });
1602
2642
  });
1603
2643
  };
1604
- DefaultApiResponseProcessor.prototype.getOutcomes = function (response) {
2644
+ DefaultApiResponseProcessor.prototype.identifyUserByAlias = function (response) {
1605
2645
  return __awaiter(this, void 0, void 0, function () {
1606
2646
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1607
2647
  return __generator(this, function (_q) {
@@ -1614,17 +2654,17 @@ var DefaultApiResponseProcessor = (function () {
1614
2654
  return [4, response.body.text()];
1615
2655
  case 1:
1616
2656
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1617
- "OutcomesData", ""]);
2657
+ "InlineResponse200", ""]);
1618
2658
  return [2, body];
1619
2659
  case 2:
1620
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2660
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
1621
2661
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1622
2662
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1623
2663
  return [4, response.body.text()];
1624
2664
  case 3:
1625
2665
  body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1626
- "BadRequestError", ""]);
1627
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2666
+ "IdentifyUserConflictResponse", ""]);
2667
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
1628
2668
  case 4:
1629
2669
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1630
2670
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
@@ -1632,7 +2672,7 @@ var DefaultApiResponseProcessor = (function () {
1632
2672
  return [4, response.body.text()];
1633
2673
  case 5:
1634
2674
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1635
- "OutcomesData", ""]);
2675
+ "InlineResponse200", ""]);
1636
2676
  return [2, body];
1637
2677
  case 6:
1638
2678
  _o = exception_1.ApiException.bind;
@@ -1643,7 +2683,7 @@ var DefaultApiResponseProcessor = (function () {
1643
2683
  });
1644
2684
  });
1645
2685
  };
1646
- DefaultApiResponseProcessor.prototype.getPlayer = function (response) {
2686
+ DefaultApiResponseProcessor.prototype.identifyUserBySubscriptionId = function (response) {
1647
2687
  return __awaiter(this, void 0, void 0, function () {
1648
2688
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1649
2689
  return __generator(this, function (_q) {
@@ -1656,17 +2696,17 @@ var DefaultApiResponseProcessor = (function () {
1656
2696
  return [4, response.body.text()];
1657
2697
  case 1:
1658
2698
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1659
- "Player", ""]);
2699
+ "UserIdentityResponse", ""]);
1660
2700
  return [2, body];
1661
2701
  case 2:
1662
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2702
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
1663
2703
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1664
2704
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1665
2705
  return [4, response.body.text()];
1666
2706
  case 3:
1667
2707
  body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1668
- "BadRequestError", ""]);
1669
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2708
+ "IdentifyUserConflictResponse", ""]);
2709
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
1670
2710
  case 4:
1671
2711
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1672
2712
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
@@ -1674,7 +2714,7 @@ var DefaultApiResponseProcessor = (function () {
1674
2714
  return [4, response.body.text()];
1675
2715
  case 5:
1676
2716
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1677
- "Player", ""]);
2717
+ "UserIdentityResponse", ""]);
1678
2718
  return [2, body];
1679
2719
  case 6:
1680
2720
  _o = exception_1.ApiException.bind;
@@ -1685,11 +2725,11 @@ var DefaultApiResponseProcessor = (function () {
1685
2725
  });
1686
2726
  });
1687
2727
  };
1688
- DefaultApiResponseProcessor.prototype.getPlayers = function (response) {
2728
+ DefaultApiResponseProcessor.prototype.transferSubscription = function (response) {
1689
2729
  return __awaiter(this, void 0, void 0, function () {
1690
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1691
- return __generator(this, function (_q) {
1692
- switch (_q.label) {
2730
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2731
+ return __generator(this, function (_l) {
2732
+ switch (_l.label) {
1693
2733
  case 0:
1694
2734
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1695
2735
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1697,32 +2737,23 @@ var DefaultApiResponseProcessor = (function () {
1697
2737
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1698
2738
  return [4, response.body.text()];
1699
2739
  case 1:
1700
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1701
- "PlayerSlice", ""]);
2740
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2741
+ "UserIdentityResponse", ""]);
1702
2742
  return [2, body];
1703
2743
  case 2:
1704
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2744
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1705
2745
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1706
2746
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1707
2747
  return [4, response.body.text()];
1708
2748
  case 3:
1709
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1710
- "BadRequestError", ""]);
1711
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1712
- case 4:
1713
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1714
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1715
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1716
- return [4, response.body.text()];
1717
- case 5:
1718
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1719
- "PlayerSlice", ""]);
2749
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2750
+ "UserIdentityResponse", ""]);
1720
2751
  return [2, body];
1721
- case 6:
1722
- _o = exception_1.ApiException.bind;
1723
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2752
+ case 4:
2753
+ _j = exception_1.ApiException.bind;
2754
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1724
2755
  return [4, response.getBodyAsAny()];
1725
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2756
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1726
2757
  }
1727
2758
  });
1728
2759
  });
@@ -1855,9 +2886,9 @@ var DefaultApiResponseProcessor = (function () {
1855
2886
  };
1856
2887
  DefaultApiResponseProcessor.prototype.updatePlayerTags = function (response) {
1857
2888
  return __awaiter(this, void 0, void 0, function () {
1858
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1859
- return __generator(this, function (_q) {
1860
- switch (_q.label) {
2889
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2890
+ return __generator(this, function (_l) {
2891
+ switch (_l.label) {
1861
2892
  case 0:
1862
2893
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1863
2894
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1865,32 +2896,83 @@ var DefaultApiResponseProcessor = (function () {
1865
2896
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1866
2897
  return [4, response.body.text()];
1867
2898
  case 1:
1868
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2899
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1869
2900
  "UpdatePlayerTagsSuccessResponse", ""]);
1870
2901
  return [2, body];
1871
2902
  case 2:
1872
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2903
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1873
2904
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1874
2905
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1875
2906
  return [4, response.body.text()];
1876
2907
  case 3:
1877
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1878
- "BadRequestError", ""]);
1879
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2908
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2909
+ "UpdatePlayerTagsSuccessResponse", ""]);
2910
+ return [2, body];
1880
2911
  case 4:
1881
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1882
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1883
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2912
+ _j = exception_1.ApiException.bind;
2913
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2914
+ return [4, response.getBodyAsAny()];
2915
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2916
+ }
2917
+ });
2918
+ });
2919
+ };
2920
+ DefaultApiResponseProcessor.prototype.updateSubscription = function (response) {
2921
+ return __awaiter(this, void 0, void 0, function () {
2922
+ var contentType, body, _a, _b, _c, _d, _e, _f;
2923
+ return __generator(this, function (_g) {
2924
+ switch (_g.label) {
2925
+ case 0:
2926
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2927
+ if ((0, util_1.isCodeInRange)("202", response.httpStatusCode)) {
2928
+ return [2];
2929
+ }
2930
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
2931
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2932
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1884
2933
  return [4, response.body.text()];
1885
- case 5:
1886
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1887
- "UpdatePlayerTagsSuccessResponse", ""]);
2934
+ case 1:
2935
+ body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
2936
+ "void", ""]);
1888
2937
  return [2, body];
1889
- case 6:
1890
- _o = exception_1.ApiException.bind;
1891
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2938
+ case 2:
2939
+ _e = exception_1.ApiException.bind;
2940
+ _f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1892
2941
  return [4, response.getBodyAsAny()];
1893
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2942
+ case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
2943
+ }
2944
+ });
2945
+ });
2946
+ };
2947
+ DefaultApiResponseProcessor.prototype.updateUser = function (response) {
2948
+ return __awaiter(this, void 0, void 0, function () {
2949
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2950
+ return __generator(this, function (_l) {
2951
+ switch (_l.label) {
2952
+ case 0:
2953
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2954
+ if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 2];
2955
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2956
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2957
+ return [4, response.body.text()];
2958
+ case 1:
2959
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2960
+ "InlineResponse202", ""]);
2961
+ return [2, body];
2962
+ case 2:
2963
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2964
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2965
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2966
+ return [4, response.body.text()];
2967
+ case 3:
2968
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2969
+ "InlineResponse202", ""]);
2970
+ return [2, body];
2971
+ case 4:
2972
+ _j = exception_1.ApiException.bind;
2973
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2974
+ return [4, response.getBodyAsAny()];
2975
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1894
2976
  }
1895
2977
  });
1896
2978
  });