@onesignal/node-onesignal 1.0.0-beta8 → 1.0.0-beta9

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 (182) hide show
  1. package/.github/workflows/Zapier.yml +29 -0
  2. package/CHANGELOG.md +15 -0
  3. package/DefaultApi.md +1139 -153
  4. package/README.md +148 -0
  5. package/apis/DefaultApi.ts +1344 -98
  6. package/dist/apis/DefaultApi.d.ts +39 -0
  7. package/dist/apis/DefaultApi.js +1491 -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/CreateSubscriptionRequestBody.d.ts +19 -0
  13. package/dist/models/CreateSubscriptionRequestBody.js +28 -0
  14. package/dist/models/CreateSubscriptionRequestBody.js.map +1 -0
  15. package/dist/models/CreateUserConflictResponse.d.ts +18 -0
  16. package/dist/models/CreateUserConflictResponse.js +22 -0
  17. package/dist/models/CreateUserConflictResponse.js.map +1 -0
  18. package/dist/models/CreateUserConflictResponseErrorsInner.d.ts +20 -0
  19. package/dist/models/CreateUserConflictResponseErrorsInner.js +34 -0
  20. package/dist/models/CreateUserConflictResponseErrorsInner.js.map +1 -0
  21. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.d.ts +17 -0
  22. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js +22 -0
  23. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js.map +1 -0
  24. package/dist/models/IdentifyUserConflictResponse.d.ts +18 -0
  25. package/dist/models/IdentifyUserConflictResponse.js +22 -0
  26. package/dist/models/IdentifyUserConflictResponse.js.map +1 -0
  27. package/dist/models/IdentifyUserConflictResponseErrorsInner.d.ts +18 -0
  28. package/dist/models/IdentifyUserConflictResponseErrorsInner.js +28 -0
  29. package/dist/models/IdentifyUserConflictResponseErrorsInner.js.map +1 -0
  30. package/dist/models/InlineResponse200.d.ts +19 -0
  31. package/dist/models/InlineResponse200.js +22 -0
  32. package/dist/models/InlineResponse200.js.map +1 -0
  33. package/dist/models/InlineResponse2003.d.ts +17 -0
  34. package/dist/models/InlineResponse2003.js +22 -0
  35. package/dist/models/InlineResponse2003.js.map +1 -0
  36. package/dist/models/InlineResponse201.d.ts +18 -0
  37. package/dist/models/InlineResponse201.js +22 -0
  38. package/dist/models/InlineResponse201.js.map +1 -0
  39. package/dist/models/InlineResponse202.d.ts +18 -0
  40. package/dist/models/InlineResponse202.js +22 -0
  41. package/dist/models/InlineResponse202.js.map +1 -0
  42. package/dist/models/Notification.d.ts +4 -0
  43. package/dist/models/Notification.js +12 -0
  44. package/dist/models/Notification.js.map +1 -1
  45. package/dist/models/NotificationTarget.d.ts +4 -0
  46. package/dist/models/NotificationTarget.js +12 -0
  47. package/dist/models/NotificationTarget.js.map +1 -1
  48. package/dist/models/NotificationWithMeta.d.ts +4 -0
  49. package/dist/models/NotificationWithMeta.js +12 -0
  50. package/dist/models/NotificationWithMeta.js.map +1 -1
  51. package/dist/models/ObjectSerializer.d.ts +21 -0
  52. package/dist/models/ObjectSerializer.js +69 -0
  53. package/dist/models/ObjectSerializer.js.map +1 -1
  54. package/dist/models/Player.d.ts +1 -1
  55. package/dist/models/Player.js +1 -1
  56. package/dist/models/Player.js.map +1 -1
  57. package/dist/models/PlayerNotificationTarget.d.ts +4 -0
  58. package/dist/models/PlayerNotificationTarget.js +12 -0
  59. package/dist/models/PlayerNotificationTarget.js.map +1 -1
  60. package/dist/models/PlayerNotificationTargetIncludeAliases.d.ts +17 -0
  61. package/dist/models/PlayerNotificationTargetIncludeAliases.js +22 -0
  62. package/dist/models/PlayerNotificationTargetIncludeAliases.js.map +1 -0
  63. package/dist/models/PropertiesDeltas.d.ts +21 -0
  64. package/dist/models/PropertiesDeltas.js +40 -0
  65. package/dist/models/PropertiesDeltas.js.map +1 -0
  66. package/dist/models/PropertiesObject.d.ts +30 -0
  67. package/dist/models/PropertiesObject.js +82 -0
  68. package/dist/models/PropertiesObject.js.map +1 -0
  69. package/dist/models/Purchase.d.ts +1 -1
  70. package/dist/models/Purchase.js +1 -1
  71. package/dist/models/SubscriptionObject.d.ts +34 -0
  72. package/dist/models/SubscriptionObject.js +118 -0
  73. package/dist/models/SubscriptionObject.js.map +1 -0
  74. package/dist/models/TransferSubscriptionRequestBody.d.ts +19 -0
  75. package/dist/models/TransferSubscriptionRequestBody.js +22 -0
  76. package/dist/models/TransferSubscriptionRequestBody.js.map +1 -0
  77. package/dist/models/UpdateSubscriptionRequestBody.d.ts +18 -0
  78. package/dist/models/UpdateSubscriptionRequestBody.js +22 -0
  79. package/dist/models/UpdateSubscriptionRequestBody.js.map +1 -0
  80. package/dist/models/UpdateUserRequest.d.ts +21 -0
  81. package/dist/models/UpdateUserRequest.js +34 -0
  82. package/dist/models/UpdateUserRequest.js.map +1 -0
  83. package/dist/models/User.d.ts +25 -0
  84. package/dist/models/User.js +40 -0
  85. package/dist/models/User.js.map +1 -0
  86. package/dist/models/UserIdentityRequestBody.d.ts +19 -0
  87. package/dist/models/UserIdentityRequestBody.js +22 -0
  88. package/dist/models/UserIdentityRequestBody.js.map +1 -0
  89. package/dist/models/UserIdentityResponse.d.ts +19 -0
  90. package/dist/models/UserIdentityResponse.js +22 -0
  91. package/dist/models/UserIdentityResponse.js.map +1 -0
  92. package/dist/models/UserSubscriptionOptions.d.ts +17 -0
  93. package/dist/models/UserSubscriptionOptions.js +22 -0
  94. package/dist/models/UserSubscriptionOptions.js.map +1 -0
  95. package/dist/models/all.d.ts +21 -0
  96. package/dist/models/all.js +21 -0
  97. package/dist/models/all.js.map +1 -1
  98. package/dist/types/ObjectParamAPI.d.ts +96 -0
  99. package/dist/types/ObjectParamAPI.js +42 -0
  100. package/dist/types/ObjectParamAPI.js.map +1 -1
  101. package/dist/types/ObservableAPI.d.ts +25 -0
  102. package/dist/types/ObservableAPI.js +383 -47
  103. package/dist/types/ObservableAPI.js.map +1 -1
  104. package/dist/types/PromiseAPI.d.ts +25 -0
  105. package/dist/types/PromiseAPI.js +56 -0
  106. package/dist/types/PromiseAPI.js.map +1 -1
  107. package/models/App.ts +1 -1
  108. package/models/BadRequestError.ts +1 -1
  109. package/models/BasicNotification.ts +17 -1
  110. package/models/BasicNotificationAllOf.ts +1 -1
  111. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
  112. package/models/BeginLiveActivityRequest.ts +1 -1
  113. package/models/Button.ts +1 -1
  114. package/models/CancelNotificationSuccessResponse.ts +1 -1
  115. package/models/CreateNotificationSuccessResponse.ts +1 -1
  116. package/models/CreatePlayerSuccessResponse.ts +1 -1
  117. package/models/CreateSegmentConflictResponse.ts +1 -1
  118. package/models/CreateSegmentSuccessResponse.ts +1 -1
  119. package/models/CreateSubscriptionRequestBody.ts +39 -0
  120. package/models/CreateUserConflictResponse.ts +32 -0
  121. package/models/CreateUserConflictResponseErrorsInner.ts +46 -0
  122. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +31 -0
  123. package/models/DeletePlayerNotFoundResponse.ts +1 -1
  124. package/models/DeletePlayerSuccessResponse.ts +1 -1
  125. package/models/DeleteSegmentNotFoundResponse.ts +1 -1
  126. package/models/DeleteSegmentSuccessResponse.ts +1 -1
  127. package/models/DeliveryData.ts +1 -1
  128. package/models/ExportPlayersRequestBody.ts +1 -1
  129. package/models/ExportPlayersSuccessResponse.ts +1 -1
  130. package/models/Filter.ts +1 -1
  131. package/models/FilterExpressions.ts +1 -1
  132. package/models/GetNotificationRequestBody.ts +1 -1
  133. package/models/IdentifyUserConflictResponse.ts +32 -0
  134. package/models/IdentifyUserConflictResponseErrorsInner.ts +38 -0
  135. package/models/InlineResponse200.ts +31 -0
  136. package/models/InlineResponse2003.ts +31 -0
  137. package/models/InlineResponse201.ts +32 -0
  138. package/models/InlineResponse202.ts +32 -0
  139. package/models/InvalidIdentifierError.ts +1 -1
  140. package/models/Notification.ts +17 -1
  141. package/models/Notification200Errors.ts +1 -1
  142. package/models/NotificationAllOf.ts +1 -1
  143. package/models/NotificationHistorySuccessResponse.ts +1 -1
  144. package/models/NotificationSlice.ts +1 -1
  145. package/models/NotificationTarget.ts +19 -1
  146. package/models/NotificationWithMeta.ts +17 -1
  147. package/models/NotificationWithMetaAllOf.ts +1 -1
  148. package/models/ObjectSerializer.ts +74 -5
  149. package/models/Operator.ts +1 -1
  150. package/models/OutcomeData.ts +1 -1
  151. package/models/OutcomesData.ts +1 -1
  152. package/models/PlatformDeliveryData.ts +1 -1
  153. package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
  154. package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
  155. package/models/Player.ts +3 -3
  156. package/models/PlayerNotificationTarget.ts +19 -1
  157. package/models/PlayerNotificationTargetIncludeAliases.ts +31 -0
  158. package/models/PlayerSlice.ts +1 -1
  159. package/models/PropertiesDeltas.ts +53 -0
  160. package/models/PropertiesObject.ts +102 -0
  161. package/models/Purchase.ts +3 -3
  162. package/models/Segment.ts +1 -1
  163. package/models/SegmentNotificationTarget.ts +1 -1
  164. package/models/StringMap.ts +1 -1
  165. package/models/SubscriptionObject.ts +146 -0
  166. package/models/TransferSubscriptionRequestBody.ts +31 -0
  167. package/models/UpdateLiveActivityRequest.ts +1 -1
  168. package/models/UpdateLiveActivitySuccessResponse.ts +1 -1
  169. package/models/UpdatePlayerSuccessResponse.ts +1 -1
  170. package/models/UpdatePlayerTagsRequestBody.ts +1 -1
  171. package/models/UpdatePlayerTagsSuccessResponse.ts +1 -1
  172. package/models/UpdateSubscriptionRequestBody.ts +32 -0
  173. package/models/UpdateUserRequest.ts +47 -0
  174. package/models/User.ts +55 -0
  175. package/models/UserIdentityRequestBody.ts +31 -0
  176. package/models/UserIdentityResponse.ts +31 -0
  177. package/models/UserSubscriptionOptions.ts +31 -0
  178. package/models/all.ts +21 -0
  179. package/package.json +2 -2
  180. package/types/ObjectParamAPI.ts +433 -0
  181. package/types/ObservableAPI.ts +372 -0
  182. package/types/PromiseAPI.ts +176 -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,787 @@ 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, subscriptionId, _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
+ requestContext.setHeaderParam("subscription_id", ObjectSerializer_1.ObjectSerializer.serialize(subscriptionId, "string", ""));
1532
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1533
+ "application/json"
1534
+ ]);
1535
+ requestContext.setHeaderParam("Content-Type", contentType);
1536
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateUserRequest, "UpdateUserRequest", ""), contentType);
1537
+ requestContext.setBody(serializedBody);
1538
+ authMethod = _config.authMethods["app_key"];
1539
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1540
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1541
+ case 1:
1542
+ _d.sent();
1543
+ _d.label = 2;
1544
+ case 2:
1545
+ 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);
1546
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1547
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1548
+ case 3:
1549
+ _d.sent();
1550
+ _d.label = 4;
1551
+ case 4: return [2, requestContext];
1552
+ }
1553
+ });
1554
+ });
1555
+ };
1556
+ return DefaultApiRequestFactory;
1557
+ }(baseapi_1.BaseAPIRequestFactory));
1558
+ exports.DefaultApiRequestFactory = DefaultApiRequestFactory;
1559
+ var DefaultApiResponseProcessor = (function () {
1560
+ function DefaultApiResponseProcessor() {
1561
+ }
1562
+ DefaultApiResponseProcessor.prototype.beginLiveActivity = function (response) {
1563
+ return __awaiter(this, void 0, void 0, function () {
1564
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1565
+ return __generator(this, function (_l) {
1566
+ switch (_l.label) {
1567
+ case 0:
1568
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1569
+ if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
1570
+ return [2];
1571
+ }
1572
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
1573
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1574
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1575
+ return [4, response.body.text()];
1576
+ case 1:
1577
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1578
+ "BadRequestError", ""]);
1579
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1580
+ case 2:
1581
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1582
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1583
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1584
+ return [4, response.body.text()];
1585
+ case 3:
1586
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1587
+ "void", ""]);
1588
+ return [2, body];
1589
+ case 4:
1590
+ _j = exception_1.ApiException.bind;
1591
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1592
+ return [4, response.getBodyAsAny()];
1593
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1594
+ }
1595
+ });
1596
+ });
1597
+ };
1598
+ DefaultApiResponseProcessor.prototype.cancelNotification = function (response) {
1599
+ return __awaiter(this, void 0, void 0, function () {
1600
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1601
+ return __generator(this, function (_q) {
1602
+ switch (_q.label) {
1603
+ case 0:
1604
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1605
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1606
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1607
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1608
+ return [4, response.body.text()];
1609
+ case 1:
1610
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1611
+ "CancelNotificationSuccessResponse", ""]);
1612
+ return [2, body];
1613
+ case 2:
1614
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1615
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1616
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1617
+ return [4, response.body.text()];
1618
+ case 3:
1619
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1620
+ "BadRequestError", ""]);
1621
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1622
+ case 4:
1623
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1624
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1625
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1626
+ return [4, response.body.text()];
1627
+ case 5:
1628
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1629
+ "CancelNotificationSuccessResponse", ""]);
1630
+ return [2, body];
1631
+ case 6:
1632
+ _o = exception_1.ApiException.bind;
1633
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1634
+ return [4, response.getBodyAsAny()];
1635
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1636
+ }
1637
+ });
1638
+ });
1639
+ };
1640
+ DefaultApiResponseProcessor.prototype.createApp = function (response) {
1641
+ return __awaiter(this, void 0, void 0, function () {
1642
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1643
+ return __generator(this, function (_q) {
1644
+ switch (_q.label) {
1645
+ case 0:
1646
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1647
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1648
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1649
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1650
+ return [4, response.body.text()];
1651
+ case 1:
1652
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1653
+ "App", ""]);
1654
+ return [2, body];
1655
+ case 2:
1656
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1657
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1658
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1659
+ return [4, response.body.text()];
1660
+ case 3:
1661
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1662
+ "BadRequestError", ""]);
1663
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1664
+ case 4:
1665
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1666
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1667
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1668
+ return [4, response.body.text()];
1669
+ case 5:
1670
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1671
+ "App", ""]);
1672
+ return [2, body];
1673
+ case 6:
1674
+ _o = exception_1.ApiException.bind;
1675
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1676
+ return [4, response.getBodyAsAny()];
1677
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1678
+ }
1679
+ });
1680
+ });
1681
+ };
1682
+ DefaultApiResponseProcessor.prototype.createNotification = function (response) {
1683
+ return __awaiter(this, void 0, void 0, function () {
1684
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1685
+ return __generator(this, function (_q) {
1686
+ switch (_q.label) {
1687
+ case 0:
1688
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1689
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1690
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1691
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1692
+ return [4, response.body.text()];
1693
+ case 1:
1694
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1695
+ "CreateNotificationSuccessResponse", ""]);
1696
+ return [2, body];
1697
+ case 2:
1698
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1699
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1700
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1701
+ return [4, response.body.text()];
1702
+ case 3:
1703
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1704
+ "BadRequestError", ""]);
1705
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1706
+ case 4:
1707
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1708
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1709
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1710
+ return [4, response.body.text()];
1711
+ case 5:
1712
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1713
+ "CreateNotificationSuccessResponse", ""]);
1714
+ return [2, body];
1715
+ case 6:
1716
+ _o = exception_1.ApiException.bind;
1717
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1718
+ return [4, response.getBodyAsAny()];
1719
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1720
+ }
1721
+ });
1722
+ });
1723
+ };
1724
+ DefaultApiResponseProcessor.prototype.createPlayer = function (response) {
1725
+ return __awaiter(this, void 0, void 0, function () {
1726
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1727
+ return __generator(this, function (_q) {
1728
+ switch (_q.label) {
1729
+ case 0:
1730
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1731
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1732
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1733
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1734
+ return [4, response.body.text()];
1735
+ case 1:
1736
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1737
+ "CreatePlayerSuccessResponse", ""]);
1738
+ return [2, body];
1739
+ case 2:
1740
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1741
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1742
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1743
+ return [4, response.body.text()];
1744
+ case 3:
1745
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1746
+ "BadRequestError", ""]);
1747
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1748
+ case 4:
1749
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1750
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1751
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1752
+ return [4, response.body.text()];
1753
+ case 5:
1754
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1755
+ "CreatePlayerSuccessResponse", ""]);
1756
+ return [2, body];
1757
+ case 6:
1758
+ _o = exception_1.ApiException.bind;
1759
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1760
+ return [4, response.getBodyAsAny()];
1761
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1762
+ }
1763
+ });
1764
+ });
1765
+ };
1766
+ DefaultApiResponseProcessor.prototype.createSegments = function (response) {
1767
+ return __awaiter(this, void 0, void 0, function () {
1768
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1769
+ return __generator(this, function (_u) {
1770
+ switch (_u.label) {
1771
+ case 0:
1772
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1773
+ if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
1774
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1775
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1776
+ return [4, response.body.text()];
1777
+ case 1:
1778
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1779
+ "CreateSegmentSuccessResponse", ""]);
1780
+ return [2, body];
1781
+ case 2:
1782
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1783
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1784
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1785
+ return [4, response.body.text()];
1786
+ case 3:
1787
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1788
+ "BadRequestError", ""]);
1789
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1790
+ case 4:
1791
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
1792
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1793
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1794
+ return [4, response.body.text()];
1795
+ case 5:
1796
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1797
+ "CreateSegmentConflictResponse", ""]);
1798
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
1799
+ case 6:
1800
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1801
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1802
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1803
+ return [4, response.body.text()];
1804
+ case 7:
1805
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1806
+ "CreateSegmentSuccessResponse", ""]);
1807
+ return [2, body];
1808
+ case 8:
1809
+ _s = exception_1.ApiException.bind;
1810
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1811
+ return [4, response.getBodyAsAny()];
1812
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1813
+ }
1814
+ });
1815
+ });
1816
+ };
1817
+ DefaultApiResponseProcessor.prototype.createSubscription = function (response) {
1818
+ return __awaiter(this, void 0, void 0, function () {
1819
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1820
+ return __generator(this, function (_q) {
1821
+ switch (_q.label) {
1822
+ case 0:
1823
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1824
+ if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
1825
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1826
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1827
+ return [4, response.body.text()];
1828
+ case 1:
1829
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1830
+ "InlineResponse201", ""]);
1831
+ return [2, body];
1832
+ case 2:
1833
+ if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 4];
1834
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1835
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1836
+ return [4, response.body.text()];
1837
+ case 3:
1838
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1839
+ "InlineResponse201", ""]);
1840
+ return [2, body];
1841
+ case 4:
1842
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1843
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1844
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1845
+ return [4, response.body.text()];
1846
+ case 5:
1847
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1848
+ "InlineResponse201", ""]);
1849
+ return [2, body];
1850
+ case 6:
1851
+ _o = exception_1.ApiException.bind;
1852
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1853
+ return [4, response.getBodyAsAny()];
1854
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1855
+ }
1856
+ });
1857
+ });
1858
+ };
1859
+ DefaultApiResponseProcessor.prototype.createUser = function (response) {
1860
+ return __awaiter(this, void 0, void 0, function () {
1861
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1862
+ return __generator(this, function (_u) {
1863
+ switch (_u.label) {
1864
+ case 0:
1865
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1866
+ if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
1867
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1868
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1869
+ return [4, response.body.text()];
1870
+ case 1:
1871
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1872
+ "User", ""]);
1873
+ return [2, body];
1874
+ case 2:
1875
+ if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 4];
1876
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1877
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1878
+ return [4, response.body.text()];
1879
+ case 3:
1880
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1881
+ "User", ""]);
1882
+ return [2, body];
1883
+ case 4:
1884
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
1885
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1886
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1887
+ return [4, response.body.text()];
1888
+ case 5:
1889
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1890
+ "CreateUserConflictResponse", ""]);
1891
+ throw new exception_1.ApiException(409, "Multiple User Identity Conflict", body, response.headers);
1892
+ case 6:
1893
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1894
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1895
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1896
+ return [4, response.body.text()];
1897
+ case 7:
1898
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1899
+ "User", ""]);
1900
+ return [2, body];
1901
+ case 8:
1902
+ _s = exception_1.ApiException.bind;
1903
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1904
+ return [4, response.getBodyAsAny()];
1905
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1906
+ }
1907
+ });
1908
+ });
1909
+ };
1910
+ DefaultApiResponseProcessor.prototype.deleteAlias = function (response) {
960
1911
  return __awaiter(this, void 0, void 0, function () {
961
1912
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
962
1913
  return __generator(this, function (_l) {
963
1914
  switch (_l.label) {
964
1915
  case 0:
965
1916
  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];
1917
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
970
1918
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
971
1919
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
972
1920
  return [4, response.body.text()];
973
1921
  case 1:
974
1922
  body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
975
- "BadRequestError", ""]);
976
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1923
+ "InlineResponse200", ""]);
1924
+ return [2, body];
977
1925
  case 2:
978
1926
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
979
1927
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
@@ -981,7 +1929,7 @@ var DefaultApiResponseProcessor = (function () {
981
1929
  return [4, response.body.text()];
982
1930
  case 3:
983
1931
  body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
984
- "void", ""]);
1932
+ "InlineResponse200", ""]);
985
1933
  return [2, body];
986
1934
  case 4:
987
1935
  _j = exception_1.ApiException.bind;
@@ -992,11 +1940,11 @@ var DefaultApiResponseProcessor = (function () {
992
1940
  });
993
1941
  });
994
1942
  };
995
- DefaultApiResponseProcessor.prototype.cancelNotification = function (response) {
1943
+ DefaultApiResponseProcessor.prototype.deletePlayer = function (response) {
996
1944
  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) {
1945
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1946
+ return __generator(this, function (_u) {
1947
+ switch (_u.label) {
1000
1948
  case 0:
1001
1949
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1002
1950
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1004,8 +1952,8 @@ var DefaultApiResponseProcessor = (function () {
1004
1952
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1005
1953
  return [4, response.body.text()];
1006
1954
  case 1:
1007
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1008
- "CancelNotificationSuccessResponse", ""]);
1955
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1956
+ "DeletePlayerSuccessResponse", ""]);
1009
1957
  return [2, body];
1010
1958
  case 2:
1011
1959
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1013,32 +1961,41 @@ var DefaultApiResponseProcessor = (function () {
1013
1961
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1014
1962
  return [4, response.body.text()];
1015
1963
  case 3:
1016
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1964
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1017
1965
  "BadRequestError", ""]);
1018
1966
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1019
1967
  case 4:
1020
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1968
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1021
1969
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1022
1970
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1023
1971
  return [4, response.body.text()];
1024
1972
  case 5:
1025
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1026
- "CancelNotificationSuccessResponse", ""]);
1027
- return [2, body];
1973
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1974
+ "DeletePlayerNotFoundResponse", ""]);
1975
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
1028
1976
  case 6:
1029
- _o = exception_1.ApiException.bind;
1030
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1977
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1978
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1979
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1980
+ return [4, response.body.text()];
1981
+ case 7:
1982
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1983
+ "DeletePlayerSuccessResponse", ""]);
1984
+ return [2, body];
1985
+ case 8:
1986
+ _s = exception_1.ApiException.bind;
1987
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1031
1988
  return [4, response.getBodyAsAny()];
1032
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1989
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1033
1990
  }
1034
1991
  });
1035
1992
  });
1036
1993
  };
1037
- DefaultApiResponseProcessor.prototype.createApp = function (response) {
1994
+ DefaultApiResponseProcessor.prototype.deleteSegments = function (response) {
1038
1995
  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) {
1996
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1997
+ return __generator(this, function (_u) {
1998
+ switch (_u.label) {
1042
1999
  case 0:
1043
2000
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1044
2001
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1046,8 +2003,8 @@ var DefaultApiResponseProcessor = (function () {
1046
2003
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1047
2004
  return [4, response.body.text()];
1048
2005
  case 1:
1049
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1050
- "App", ""]);
2006
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2007
+ "DeleteSegmentSuccessResponse", ""]);
1051
2008
  return [2, body];
1052
2009
  case 2:
1053
2010
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1055,28 +2012,127 @@ var DefaultApiResponseProcessor = (function () {
1055
2012
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1056
2013
  return [4, response.body.text()];
1057
2014
  case 3:
1058
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2015
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1059
2016
  "BadRequestError", ""]);
1060
2017
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1061
2018
  case 4:
1062
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2019
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1063
2020
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1064
2021
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1065
2022
  return [4, response.body.text()];
1066
2023
  case 5:
1067
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1068
- "App", ""]);
1069
- return [2, body];
2024
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2025
+ "DeleteSegmentNotFoundResponse", ""]);
2026
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
1070
2027
  case 6:
1071
- _o = exception_1.ApiException.bind;
1072
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2028
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2029
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2030
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2031
+ return [4, response.body.text()];
2032
+ case 7:
2033
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2034
+ "DeleteSegmentSuccessResponse", ""]);
2035
+ return [2, body];
2036
+ case 8:
2037
+ _s = exception_1.ApiException.bind;
2038
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1073
2039
  return [4, response.getBodyAsAny()];
1074
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2040
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1075
2041
  }
1076
2042
  });
1077
2043
  });
1078
2044
  };
1079
- DefaultApiResponseProcessor.prototype.createNotification = function (response) {
2045
+ DefaultApiResponseProcessor.prototype.deleteSubscription = function (response) {
2046
+ return __awaiter(this, void 0, void 0, function () {
2047
+ var contentType, body, _a, _b, _c, _d, _e, _f;
2048
+ return __generator(this, function (_g) {
2049
+ switch (_g.label) {
2050
+ case 0:
2051
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2052
+ if ((0, util_1.isCodeInRange)("202", response.httpStatusCode)) {
2053
+ return [2];
2054
+ }
2055
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
2056
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2057
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2058
+ return [4, response.body.text()];
2059
+ case 1:
2060
+ body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
2061
+ "void", ""]);
2062
+ return [2, body];
2063
+ case 2:
2064
+ _e = exception_1.ApiException.bind;
2065
+ _f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2066
+ return [4, response.getBodyAsAny()];
2067
+ case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
2068
+ }
2069
+ });
2070
+ });
2071
+ };
2072
+ DefaultApiResponseProcessor.prototype.deleteUser = function (response) {
2073
+ return __awaiter(this, void 0, void 0, function () {
2074
+ var contentType, body, _a, _b, _c, _d, _e, _f;
2075
+ return __generator(this, function (_g) {
2076
+ switch (_g.label) {
2077
+ case 0:
2078
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2079
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
2080
+ return [2];
2081
+ }
2082
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
2083
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2084
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2085
+ return [4, response.body.text()];
2086
+ case 1:
2087
+ body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
2088
+ "void", ""]);
2089
+ return [2, body];
2090
+ case 2:
2091
+ _e = exception_1.ApiException.bind;
2092
+ _f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2093
+ return [4, response.getBodyAsAny()];
2094
+ case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
2095
+ }
2096
+ });
2097
+ });
2098
+ };
2099
+ DefaultApiResponseProcessor.prototype.endLiveActivity = function (response) {
2100
+ return __awaiter(this, void 0, void 0, function () {
2101
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2102
+ return __generator(this, function (_l) {
2103
+ switch (_l.label) {
2104
+ case 0:
2105
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2106
+ if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
2107
+ return [2];
2108
+ }
2109
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
2110
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2111
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2112
+ return [4, response.body.text()];
2113
+ case 1:
2114
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2115
+ "BadRequestError", ""]);
2116
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2117
+ case 2:
2118
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2119
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2120
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2121
+ return [4, response.body.text()];
2122
+ case 3:
2123
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2124
+ "void", ""]);
2125
+ return [2, body];
2126
+ case 4:
2127
+ _j = exception_1.ApiException.bind;
2128
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2129
+ return [4, response.getBodyAsAny()];
2130
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2131
+ }
2132
+ });
2133
+ });
2134
+ };
2135
+ DefaultApiResponseProcessor.prototype.exportPlayers = function (response) {
1080
2136
  return __awaiter(this, void 0, void 0, function () {
1081
2137
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1082
2138
  return __generator(this, function (_q) {
@@ -1089,7 +2145,7 @@ var DefaultApiResponseProcessor = (function () {
1089
2145
  return [4, response.body.text()];
1090
2146
  case 1:
1091
2147
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1092
- "CreateNotificationSuccessResponse", ""]);
2148
+ "ExportPlayersSuccessResponse", ""]);
1093
2149
  return [2, body];
1094
2150
  case 2:
1095
2151
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1107,7 +2163,7 @@ var DefaultApiResponseProcessor = (function () {
1107
2163
  return [4, response.body.text()];
1108
2164
  case 5:
1109
2165
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1110
- "CreateNotificationSuccessResponse", ""]);
2166
+ "ExportPlayersSuccessResponse", ""]);
1111
2167
  return [2, body];
1112
2168
  case 6:
1113
2169
  _o = exception_1.ApiException.bind;
@@ -1118,11 +2174,11 @@ var DefaultApiResponseProcessor = (function () {
1118
2174
  });
1119
2175
  });
1120
2176
  };
1121
- DefaultApiResponseProcessor.prototype.createPlayer = function (response) {
2177
+ DefaultApiResponseProcessor.prototype.fetchAliases = function (response) {
1122
2178
  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) {
2179
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2180
+ return __generator(this, function (_l) {
2181
+ switch (_l.label) {
1126
2182
  case 0:
1127
2183
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1128
2184
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1130,92 +2186,98 @@ var DefaultApiResponseProcessor = (function () {
1130
2186
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1131
2187
  return [4, response.body.text()];
1132
2188
  case 1:
1133
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1134
- "CreatePlayerSuccessResponse", ""]);
2189
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2190
+ "UserIdentityResponse", ""]);
1135
2191
  return [2, body];
1136
2192
  case 2:
1137
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2193
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1138
2194
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1139
2195
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1140
2196
  return [4, response.body.text()];
1141
2197
  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", ""]);
2198
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2199
+ "UserIdentityResponse", ""]);
1153
2200
  return [2, body];
1154
- case 6:
1155
- _o = exception_1.ApiException.bind;
1156
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2201
+ case 4:
2202
+ _j = exception_1.ApiException.bind;
2203
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1157
2204
  return [4, response.getBodyAsAny()];
1158
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2205
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1159
2206
  }
1160
2207
  });
1161
2208
  });
1162
2209
  };
1163
- DefaultApiResponseProcessor.prototype.createSegments = function (response) {
2210
+ DefaultApiResponseProcessor.prototype.fetchUser = function (response) {
1164
2211
  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) {
2212
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2213
+ return __generator(this, function (_l) {
2214
+ switch (_l.label) {
1168
2215
  case 0:
1169
2216
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1170
- if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
2217
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1171
2218
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1172
2219
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1173
2220
  return [4, response.body.text()];
1174
2221
  case 1:
1175
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1176
- "CreateSegmentSuccessResponse", ""]);
2222
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2223
+ "User", ""]);
1177
2224
  return [2, body];
1178
2225
  case 2:
1179
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2226
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1180
2227
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1181
2228
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1182
2229
  return [4, response.body.text()];
1183
2230
  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);
2231
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2232
+ "User", ""]);
2233
+ return [2, body];
1187
2234
  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;
2235
+ _j = exception_1.ApiException.bind;
2236
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2237
+ return [4, response.getBodyAsAny()];
2238
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2239
+ }
2240
+ });
2241
+ });
2242
+ };
2243
+ DefaultApiResponseProcessor.prototype.fetchUserIdentity = function (response) {
2244
+ return __awaiter(this, void 0, void 0, function () {
2245
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2246
+ return __generator(this, function (_l) {
2247
+ switch (_l.label) {
2248
+ case 0:
2249
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2250
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2251
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2252
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1191
2253
  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;
2254
+ case 1:
2255
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2256
+ "InlineResponse200", ""]);
2257
+ return [2, body];
2258
+ case 2:
2259
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2260
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2261
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1200
2262
  return [4, response.body.text()];
1201
- case 7:
1202
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1203
- "CreateSegmentSuccessResponse", ""]);
2263
+ case 3:
2264
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2265
+ "InlineResponse200", ""]);
1204
2266
  return [2, body];
1205
- case 8:
1206
- _s = exception_1.ApiException.bind;
1207
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2267
+ case 4:
2268
+ _j = exception_1.ApiException.bind;
2269
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1208
2270
  return [4, response.getBodyAsAny()];
1209
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2271
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1210
2272
  }
1211
2273
  });
1212
2274
  });
1213
2275
  };
1214
- DefaultApiResponseProcessor.prototype.deletePlayer = function (response) {
2276
+ DefaultApiResponseProcessor.prototype.getApp = function (response) {
1215
2277
  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) {
2278
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2279
+ return __generator(this, function (_q) {
2280
+ switch (_q.label) {
1219
2281
  case 0:
1220
2282
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1221
2283
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1223,8 +2285,8 @@ var DefaultApiResponseProcessor = (function () {
1223
2285
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1224
2286
  return [4, response.body.text()];
1225
2287
  case 1:
1226
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1227
- "DeletePlayerSuccessResponse", ""]);
2288
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2289
+ "App", ""]);
1228
2290
  return [2, body];
1229
2291
  case 2:
1230
2292
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1232,41 +2294,32 @@ var DefaultApiResponseProcessor = (function () {
1232
2294
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1233
2295
  return [4, response.body.text()];
1234
2296
  case 3:
1235
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2297
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1236
2298
  "BadRequestError", ""]);
1237
2299
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1238
2300
  case 4:
1239
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2301
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1240
2302
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1241
2303
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1242
2304
  return [4, response.body.text()];
1243
2305
  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", ""]);
2306
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2307
+ "App", ""]);
1255
2308
  return [2, body];
1256
- case 8:
1257
- _s = exception_1.ApiException.bind;
1258
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2309
+ case 6:
2310
+ _o = exception_1.ApiException.bind;
2311
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1259
2312
  return [4, response.getBodyAsAny()];
1260
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2313
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1261
2314
  }
1262
2315
  });
1263
2316
  });
1264
2317
  };
1265
- DefaultApiResponseProcessor.prototype.deleteSegments = function (response) {
2318
+ DefaultApiResponseProcessor.prototype.getApps = function (response) {
1266
2319
  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) {
2320
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2321
+ return __generator(this, function (_q) {
2322
+ switch (_q.label) {
1270
2323
  case 0:
1271
2324
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1272
2325
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1274,8 +2327,8 @@ var DefaultApiResponseProcessor = (function () {
1274
2327
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1275
2328
  return [4, response.body.text()];
1276
2329
  case 1:
1277
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1278
- "DeleteSegmentSuccessResponse", ""]);
2330
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2331
+ "Array<App>", ""]);
1279
2332
  return [2, body];
1280
2333
  case 2:
1281
2334
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1283,54 +2336,42 @@ var DefaultApiResponseProcessor = (function () {
1283
2336
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1284
2337
  return [4, response.body.text()];
1285
2338
  case 3:
1286
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2339
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1287
2340
  "BadRequestError", ""]);
1288
2341
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1289
2342
  case 4:
1290
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2343
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1291
2344
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1292
2345
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1293
2346
  return [4, response.body.text()];
1294
2347
  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", ""]);
2348
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2349
+ "Array<App>", ""]);
1306
2350
  return [2, body];
1307
- case 8:
1308
- _s = exception_1.ApiException.bind;
1309
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2351
+ case 6:
2352
+ _o = exception_1.ApiException.bind;
2353
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1310
2354
  return [4, response.getBodyAsAny()];
1311
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2355
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1312
2356
  }
1313
2357
  });
1314
2358
  });
1315
2359
  };
1316
- DefaultApiResponseProcessor.prototype.endLiveActivity = function (response) {
2360
+ DefaultApiResponseProcessor.prototype.getEligibleIams = function (response) {
1317
2361
  return __awaiter(this, void 0, void 0, function () {
1318
2362
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1319
2363
  return __generator(this, function (_l) {
1320
2364
  switch (_l.label) {
1321
2365
  case 0:
1322
2366
  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];
2367
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1327
2368
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1328
2369
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1329
2370
  return [4, response.body.text()];
1330
2371
  case 1:
1331
2372
  body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1332
- "BadRequestError", ""]);
1333
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2373
+ "InlineResponse2003", ""]);
2374
+ return [2, body];
1334
2375
  case 2:
1335
2376
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1336
2377
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
@@ -1338,7 +2379,7 @@ var DefaultApiResponseProcessor = (function () {
1338
2379
  return [4, response.body.text()];
1339
2380
  case 3:
1340
2381
  body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1341
- "void", ""]);
2382
+ "InlineResponse2003", ""]);
1342
2383
  return [2, body];
1343
2384
  case 4:
1344
2385
  _j = exception_1.ApiException.bind;
@@ -1349,7 +2390,7 @@ var DefaultApiResponseProcessor = (function () {
1349
2390
  });
1350
2391
  });
1351
2392
  };
1352
- DefaultApiResponseProcessor.prototype.exportPlayers = function (response) {
2393
+ DefaultApiResponseProcessor.prototype.getNotification = function (response) {
1353
2394
  return __awaiter(this, void 0, void 0, function () {
1354
2395
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1355
2396
  return __generator(this, function (_q) {
@@ -1362,7 +2403,7 @@ var DefaultApiResponseProcessor = (function () {
1362
2403
  return [4, response.body.text()];
1363
2404
  case 1:
1364
2405
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1365
- "ExportPlayersSuccessResponse", ""]);
2406
+ "NotificationWithMeta", ""]);
1366
2407
  return [2, body];
1367
2408
  case 2:
1368
2409
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1380,7 +2421,7 @@ var DefaultApiResponseProcessor = (function () {
1380
2421
  return [4, response.body.text()];
1381
2422
  case 5:
1382
2423
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1383
- "ExportPlayersSuccessResponse", ""]);
2424
+ "NotificationWithMeta", ""]);
1384
2425
  return [2, body];
1385
2426
  case 6:
1386
2427
  _o = exception_1.ApiException.bind;
@@ -1391,7 +2432,7 @@ var DefaultApiResponseProcessor = (function () {
1391
2432
  });
1392
2433
  });
1393
2434
  };
1394
- DefaultApiResponseProcessor.prototype.getApp = function (response) {
2435
+ DefaultApiResponseProcessor.prototype.getNotificationHistory = function (response) {
1395
2436
  return __awaiter(this, void 0, void 0, function () {
1396
2437
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1397
2438
  return __generator(this, function (_q) {
@@ -1404,7 +2445,7 @@ var DefaultApiResponseProcessor = (function () {
1404
2445
  return [4, response.body.text()];
1405
2446
  case 1:
1406
2447
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1407
- "App", ""]);
2448
+ "NotificationHistorySuccessResponse", ""]);
1408
2449
  return [2, body];
1409
2450
  case 2:
1410
2451
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1422,7 +2463,7 @@ var DefaultApiResponseProcessor = (function () {
1422
2463
  return [4, response.body.text()];
1423
2464
  case 5:
1424
2465
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1425
- "App", ""]);
2466
+ "NotificationHistorySuccessResponse", ""]);
1426
2467
  return [2, body];
1427
2468
  case 6:
1428
2469
  _o = exception_1.ApiException.bind;
@@ -1433,7 +2474,7 @@ var DefaultApiResponseProcessor = (function () {
1433
2474
  });
1434
2475
  });
1435
2476
  };
1436
- DefaultApiResponseProcessor.prototype.getApps = function (response) {
2477
+ DefaultApiResponseProcessor.prototype.getNotifications = function (response) {
1437
2478
  return __awaiter(this, void 0, void 0, function () {
1438
2479
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1439
2480
  return __generator(this, function (_q) {
@@ -1446,7 +2487,7 @@ var DefaultApiResponseProcessor = (function () {
1446
2487
  return [4, response.body.text()];
1447
2488
  case 1:
1448
2489
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1449
- "Array<App>", ""]);
2490
+ "NotificationSlice", ""]);
1450
2491
  return [2, body];
1451
2492
  case 2:
1452
2493
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1464,7 +2505,7 @@ var DefaultApiResponseProcessor = (function () {
1464
2505
  return [4, response.body.text()];
1465
2506
  case 5:
1466
2507
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1467
- "Array<App>", ""]);
2508
+ "NotificationSlice", ""]);
1468
2509
  return [2, body];
1469
2510
  case 6:
1470
2511
  _o = exception_1.ApiException.bind;
@@ -1475,7 +2516,7 @@ var DefaultApiResponseProcessor = (function () {
1475
2516
  });
1476
2517
  });
1477
2518
  };
1478
- DefaultApiResponseProcessor.prototype.getNotification = function (response) {
2519
+ DefaultApiResponseProcessor.prototype.getOutcomes = function (response) {
1479
2520
  return __awaiter(this, void 0, void 0, function () {
1480
2521
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1481
2522
  return __generator(this, function (_q) {
@@ -1488,7 +2529,7 @@ var DefaultApiResponseProcessor = (function () {
1488
2529
  return [4, response.body.text()];
1489
2530
  case 1:
1490
2531
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1491
- "NotificationWithMeta", ""]);
2532
+ "OutcomesData", ""]);
1492
2533
  return [2, body];
1493
2534
  case 2:
1494
2535
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1506,7 +2547,7 @@ var DefaultApiResponseProcessor = (function () {
1506
2547
  return [4, response.body.text()];
1507
2548
  case 5:
1508
2549
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1509
- "NotificationWithMeta", ""]);
2550
+ "OutcomesData", ""]);
1510
2551
  return [2, body];
1511
2552
  case 6:
1512
2553
  _o = exception_1.ApiException.bind;
@@ -1517,7 +2558,7 @@ var DefaultApiResponseProcessor = (function () {
1517
2558
  });
1518
2559
  });
1519
2560
  };
1520
- DefaultApiResponseProcessor.prototype.getNotificationHistory = function (response) {
2561
+ DefaultApiResponseProcessor.prototype.getPlayer = function (response) {
1521
2562
  return __awaiter(this, void 0, void 0, function () {
1522
2563
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1523
2564
  return __generator(this, function (_q) {
@@ -1530,7 +2571,7 @@ var DefaultApiResponseProcessor = (function () {
1530
2571
  return [4, response.body.text()];
1531
2572
  case 1:
1532
2573
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1533
- "NotificationHistorySuccessResponse", ""]);
2574
+ "Player", ""]);
1534
2575
  return [2, body];
1535
2576
  case 2:
1536
2577
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1548,7 +2589,7 @@ var DefaultApiResponseProcessor = (function () {
1548
2589
  return [4, response.body.text()];
1549
2590
  case 5:
1550
2591
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1551
- "NotificationHistorySuccessResponse", ""]);
2592
+ "Player", ""]);
1552
2593
  return [2, body];
1553
2594
  case 6:
1554
2595
  _o = exception_1.ApiException.bind;
@@ -1559,7 +2600,7 @@ var DefaultApiResponseProcessor = (function () {
1559
2600
  });
1560
2601
  });
1561
2602
  };
1562
- DefaultApiResponseProcessor.prototype.getNotifications = function (response) {
2603
+ DefaultApiResponseProcessor.prototype.getPlayers = function (response) {
1563
2604
  return __awaiter(this, void 0, void 0, function () {
1564
2605
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1565
2606
  return __generator(this, function (_q) {
@@ -1572,7 +2613,7 @@ var DefaultApiResponseProcessor = (function () {
1572
2613
  return [4, response.body.text()];
1573
2614
  case 1:
1574
2615
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1575
- "NotificationSlice", ""]);
2616
+ "PlayerSlice", ""]);
1576
2617
  return [2, body];
1577
2618
  case 2:
1578
2619
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1590,7 +2631,7 @@ var DefaultApiResponseProcessor = (function () {
1590
2631
  return [4, response.body.text()];
1591
2632
  case 5:
1592
2633
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1593
- "NotificationSlice", ""]);
2634
+ "PlayerSlice", ""]);
1594
2635
  return [2, body];
1595
2636
  case 6:
1596
2637
  _o = exception_1.ApiException.bind;
@@ -1601,7 +2642,7 @@ var DefaultApiResponseProcessor = (function () {
1601
2642
  });
1602
2643
  });
1603
2644
  };
1604
- DefaultApiResponseProcessor.prototype.getOutcomes = function (response) {
2645
+ DefaultApiResponseProcessor.prototype.identifyUserByAlias = function (response) {
1605
2646
  return __awaiter(this, void 0, void 0, function () {
1606
2647
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1607
2648
  return __generator(this, function (_q) {
@@ -1614,17 +2655,17 @@ var DefaultApiResponseProcessor = (function () {
1614
2655
  return [4, response.body.text()];
1615
2656
  case 1:
1616
2657
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1617
- "OutcomesData", ""]);
2658
+ "InlineResponse200", ""]);
1618
2659
  return [2, body];
1619
2660
  case 2:
1620
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2661
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
1621
2662
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1622
2663
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1623
2664
  return [4, response.body.text()];
1624
2665
  case 3:
1625
2666
  body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1626
- "BadRequestError", ""]);
1627
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2667
+ "IdentifyUserConflictResponse", ""]);
2668
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
1628
2669
  case 4:
1629
2670
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1630
2671
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
@@ -1632,7 +2673,7 @@ var DefaultApiResponseProcessor = (function () {
1632
2673
  return [4, response.body.text()];
1633
2674
  case 5:
1634
2675
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1635
- "OutcomesData", ""]);
2676
+ "InlineResponse200", ""]);
1636
2677
  return [2, body];
1637
2678
  case 6:
1638
2679
  _o = exception_1.ApiException.bind;
@@ -1643,7 +2684,7 @@ var DefaultApiResponseProcessor = (function () {
1643
2684
  });
1644
2685
  });
1645
2686
  };
1646
- DefaultApiResponseProcessor.prototype.getPlayer = function (response) {
2687
+ DefaultApiResponseProcessor.prototype.identifyUserBySubscriptionId = function (response) {
1647
2688
  return __awaiter(this, void 0, void 0, function () {
1648
2689
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1649
2690
  return __generator(this, function (_q) {
@@ -1656,17 +2697,17 @@ var DefaultApiResponseProcessor = (function () {
1656
2697
  return [4, response.body.text()];
1657
2698
  case 1:
1658
2699
  body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1659
- "Player", ""]);
2700
+ "UserIdentityResponse", ""]);
1660
2701
  return [2, body];
1661
2702
  case 2:
1662
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2703
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
1663
2704
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1664
2705
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1665
2706
  return [4, response.body.text()];
1666
2707
  case 3:
1667
2708
  body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1668
- "BadRequestError", ""]);
1669
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2709
+ "IdentifyUserConflictResponse", ""]);
2710
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
1670
2711
  case 4:
1671
2712
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1672
2713
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
@@ -1674,7 +2715,7 @@ var DefaultApiResponseProcessor = (function () {
1674
2715
  return [4, response.body.text()];
1675
2716
  case 5:
1676
2717
  body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1677
- "Player", ""]);
2718
+ "UserIdentityResponse", ""]);
1678
2719
  return [2, body];
1679
2720
  case 6:
1680
2721
  _o = exception_1.ApiException.bind;
@@ -1685,11 +2726,11 @@ var DefaultApiResponseProcessor = (function () {
1685
2726
  });
1686
2727
  });
1687
2728
  };
1688
- DefaultApiResponseProcessor.prototype.getPlayers = function (response) {
2729
+ DefaultApiResponseProcessor.prototype.transferSubscription = function (response) {
1689
2730
  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) {
2731
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2732
+ return __generator(this, function (_l) {
2733
+ switch (_l.label) {
1693
2734
  case 0:
1694
2735
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1695
2736
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1697,32 +2738,23 @@ var DefaultApiResponseProcessor = (function () {
1697
2738
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1698
2739
  return [4, response.body.text()];
1699
2740
  case 1:
1700
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1701
- "PlayerSlice", ""]);
2741
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2742
+ "UserIdentityResponse", ""]);
1702
2743
  return [2, body];
1703
2744
  case 2:
1704
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2745
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1705
2746
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1706
2747
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1707
2748
  return [4, response.body.text()];
1708
2749
  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", ""]);
2750
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2751
+ "UserIdentityResponse", ""]);
1720
2752
  return [2, body];
1721
- case 6:
1722
- _o = exception_1.ApiException.bind;
1723
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2753
+ case 4:
2754
+ _j = exception_1.ApiException.bind;
2755
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1724
2756
  return [4, response.getBodyAsAny()];
1725
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2757
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1726
2758
  }
1727
2759
  });
1728
2760
  });
@@ -1855,9 +2887,9 @@ var DefaultApiResponseProcessor = (function () {
1855
2887
  };
1856
2888
  DefaultApiResponseProcessor.prototype.updatePlayerTags = function (response) {
1857
2889
  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) {
2890
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2891
+ return __generator(this, function (_l) {
2892
+ switch (_l.label) {
1861
2893
  case 0:
1862
2894
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1863
2895
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1865,32 +2897,83 @@ var DefaultApiResponseProcessor = (function () {
1865
2897
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1866
2898
  return [4, response.body.text()];
1867
2899
  case 1:
1868
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2900
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1869
2901
  "UpdatePlayerTagsSuccessResponse", ""]);
1870
2902
  return [2, body];
1871
2903
  case 2:
1872
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2904
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1873
2905
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1874
2906
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1875
2907
  return [4, response.body.text()];
1876
2908
  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);
2909
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2910
+ "UpdatePlayerTagsSuccessResponse", ""]);
2911
+ return [2, body];
1880
2912
  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;
2913
+ _j = exception_1.ApiException.bind;
2914
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2915
+ return [4, response.getBodyAsAny()];
2916
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2917
+ }
2918
+ });
2919
+ });
2920
+ };
2921
+ DefaultApiResponseProcessor.prototype.updateSubscription = function (response) {
2922
+ return __awaiter(this, void 0, void 0, function () {
2923
+ var contentType, body, _a, _b, _c, _d, _e, _f;
2924
+ return __generator(this, function (_g) {
2925
+ switch (_g.label) {
2926
+ case 0:
2927
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2928
+ if ((0, util_1.isCodeInRange)("202", response.httpStatusCode)) {
2929
+ return [2];
2930
+ }
2931
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
2932
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2933
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1884
2934
  return [4, response.body.text()];
1885
- case 5:
1886
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1887
- "UpdatePlayerTagsSuccessResponse", ""]);
2935
+ case 1:
2936
+ body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
2937
+ "void", ""]);
1888
2938
  return [2, body];
1889
- case 6:
1890
- _o = exception_1.ApiException.bind;
1891
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2939
+ case 2:
2940
+ _e = exception_1.ApiException.bind;
2941
+ _f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1892
2942
  return [4, response.getBodyAsAny()];
1893
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2943
+ case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
2944
+ }
2945
+ });
2946
+ });
2947
+ };
2948
+ DefaultApiResponseProcessor.prototype.updateUser = function (response) {
2949
+ return __awaiter(this, void 0, void 0, function () {
2950
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2951
+ return __generator(this, function (_l) {
2952
+ switch (_l.label) {
2953
+ case 0:
2954
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2955
+ if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 2];
2956
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2957
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2958
+ return [4, response.body.text()];
2959
+ case 1:
2960
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2961
+ "InlineResponse202", ""]);
2962
+ return [2, body];
2963
+ case 2:
2964
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2965
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2966
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2967
+ return [4, response.body.text()];
2968
+ case 3:
2969
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2970
+ "InlineResponse202", ""]);
2971
+ return [2, body];
2972
+ case 4:
2973
+ _j = exception_1.ApiException.bind;
2974
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2975
+ return [4, response.getBodyAsAny()];
2976
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1894
2977
  }
1895
2978
  });
1896
2979
  });