@onesignal/node-onesignal 2.0.1-beta1 → 2.1.0-beta1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/DefaultApi.md +128 -6
  2. package/apis/DefaultApi.ts +740 -95
  3. package/dist/apis/DefaultApi.d.ts +3 -0
  4. package/dist/apis/DefaultApi.js +1112 -420
  5. package/dist/apis/DefaultApi.js.map +1 -1
  6. package/dist/http/http.d.ts +1 -0
  7. package/dist/jest.config.d.ts +15 -0
  8. package/dist/jest.config.js +17 -0
  9. package/dist/jest.config.js.map +1 -0
  10. package/dist/models/{DeleteSegmentBadRequestResponse.d.ts → ExportEventsSuccessResponse.d.ts} +2 -2
  11. package/dist/models/ExportEventsSuccessResponse.js +22 -0
  12. package/dist/models/ExportEventsSuccessResponse.js.map +1 -0
  13. package/dist/models/ExportSubscriptionsRequestBody.d.ts +19 -0
  14. package/dist/models/ExportSubscriptionsRequestBody.js +34 -0
  15. package/dist/models/ExportSubscriptionsRequestBody.js.map +1 -0
  16. package/dist/models/{DeletePlayerBadRequestResponse.d.ts → ExportSubscriptionsSuccessResponse.d.ts} +2 -2
  17. package/dist/models/ExportSubscriptionsSuccessResponse.js +22 -0
  18. package/dist/models/ExportSubscriptionsSuccessResponse.js.map +1 -0
  19. package/dist/models/FilterExpression.d.ts +27 -0
  20. package/dist/models/FilterExpression.js +70 -0
  21. package/dist/models/FilterExpression.js.map +1 -0
  22. package/dist/models/GenericError.d.ts +18 -0
  23. package/dist/models/GenericError.js +22 -0
  24. package/dist/models/GenericError.js.map +1 -0
  25. package/dist/models/{IdentifyUserConflictResponseErrorsInner.d.ts → GenericErrorErrorsInner.d.ts} +1 -1
  26. package/dist/models/GenericErrorErrorsInner.js +28 -0
  27. package/dist/models/GenericErrorErrorsInner.js.map +1 -0
  28. package/dist/models/{CreateSegmentBadRequestResponse.d.ts → GenericSuccessBoolResponse.d.ts} +1 -2
  29. package/dist/models/GenericSuccessBoolResponse.js +22 -0
  30. package/dist/models/GenericSuccessBoolResponse.js.map +1 -0
  31. package/dist/models/GetNotificationHistoryRequestBody.d.ts +20 -0
  32. package/dist/models/GetNotificationHistoryRequestBody.js +34 -0
  33. package/dist/models/GetNotificationHistoryRequestBody.js.map +1 -0
  34. package/dist/models/GetSegmentsSuccessResponse.d.ts +21 -0
  35. package/dist/models/GetSegmentsSuccessResponse.js +40 -0
  36. package/dist/models/GetSegmentsSuccessResponse.js.map +1 -0
  37. package/dist/models/LanguageStringMap.d.ts +59 -0
  38. package/dist/models/LanguageStringMap.js +274 -0
  39. package/dist/models/LanguageStringMap.js.map +1 -0
  40. package/dist/models/ObjectSerializer.d.ts +4 -3
  41. package/dist/models/ObjectSerializer.js +12 -9
  42. package/dist/models/ObjectSerializer.js.map +1 -1
  43. package/dist/models/PropertiesBody.d.ts +18 -0
  44. package/dist/models/PropertiesBody.js +22 -0
  45. package/dist/models/PropertiesBody.js.map +1 -0
  46. package/dist/models/{BadRequestError.d.ts → RateLimitError.d.ts} +2 -1
  47. package/dist/models/RateLimitError.js +28 -0
  48. package/dist/models/RateLimitError.js.map +1 -0
  49. package/dist/models/RateLimiterError.d.ts +18 -0
  50. package/dist/models/RateLimiterError.js +22 -0
  51. package/dist/models/RateLimiterError.js.map +1 -0
  52. package/dist/models/SegmentData.d.ts +23 -0
  53. package/dist/models/SegmentData.js +58 -0
  54. package/dist/models/SegmentData.js.map +1 -0
  55. package/dist/models/Subscription.d.ts +34 -0
  56. package/dist/models/Subscription.js +118 -0
  57. package/dist/models/Subscription.js.map +1 -0
  58. package/dist/models/SubscriptionBody.d.ts +18 -0
  59. package/dist/models/SubscriptionBody.js +22 -0
  60. package/dist/models/SubscriptionBody.js.map +1 -0
  61. package/dist/models/SubscriptionNotificationTarget.d.ts +30 -0
  62. package/dist/models/SubscriptionNotificationTarget.js +82 -0
  63. package/dist/models/SubscriptionNotificationTarget.js.map +1 -0
  64. package/dist/models/{CreateNotificationBadRequestResponse.d.ts → UserIdentityBody.d.ts} +4 -2
  65. package/dist/models/UserIdentityBody.js +22 -0
  66. package/dist/models/UserIdentityBody.js.map +1 -0
  67. package/dist/models/WebButton.d.ts +20 -0
  68. package/dist/models/WebButton.js +40 -0
  69. package/dist/models/WebButton.js.map +1 -0
  70. package/dist/models/all.d.ts +4 -3
  71. package/dist/models/all.js +4 -3
  72. package/dist/models/all.js.map +1 -1
  73. package/dist/servers.js +1 -1
  74. package/dist/servers.js.map +1 -1
  75. package/dist/test/DefaultApi.test.d.ts +1 -0
  76. package/dist/test/DefaultApi.test.js +49 -0
  77. package/dist/test/DefaultApi.test.js.map +1 -0
  78. package/dist/types/ObjectParamAPI.d.ts +6 -0
  79. package/dist/types/ObjectParamAPI.js +3 -0
  80. package/dist/types/ObjectParamAPI.js.map +1 -1
  81. package/dist/types/ObservableAPI.d.ts +2 -0
  82. package/dist/types/ObservableAPI.js +89 -65
  83. package/dist/types/ObservableAPI.js.map +1 -1
  84. package/dist/types/PromiseAPI.d.ts +2 -0
  85. package/dist/types/PromiseAPI.js +4 -0
  86. package/dist/types/PromiseAPI.js.map +1 -1
  87. package/models/App.ts +1 -1
  88. package/models/BasicNotification.ts +1 -1
  89. package/models/BasicNotificationAllOf.ts +1 -1
  90. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
  91. package/models/BeginLiveActivityRequest.ts +1 -1
  92. package/models/Button.ts +1 -1
  93. package/models/CancelNotificationSuccessResponse.ts +1 -1
  94. package/models/CreateNotificationSuccessResponse.ts +1 -1
  95. package/models/CreatePlayerSuccessResponse.ts +1 -1
  96. package/models/CreateSegmentConflictResponse.ts +1 -1
  97. package/models/CreateSegmentSuccessResponse.ts +1 -1
  98. package/models/CreateSubscriptionRequestBody.ts +1 -1
  99. package/models/CreateUserConflictResponse.ts +1 -1
  100. package/models/CreateUserConflictResponseErrorsInner.ts +1 -1
  101. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +1 -1
  102. package/models/DeletePlayerNotFoundResponse.ts +1 -1
  103. package/models/DeletePlayerSuccessResponse.ts +1 -1
  104. package/models/DeleteSegmentNotFoundResponse.ts +1 -1
  105. package/models/DeleteSegmentSuccessResponse.ts +1 -1
  106. package/models/DeliveryData.ts +1 -1
  107. package/models/{DeletePlayerBadRequestResponse.ts → ExportEventsSuccessResponse.ts} +7 -7
  108. package/models/ExportPlayersRequestBody.ts +1 -1
  109. package/models/ExportPlayersSuccessResponse.ts +1 -1
  110. package/models/Filter.ts +1 -1
  111. package/models/FilterExpressions.ts +1 -1
  112. package/models/{CreateNotificationBadRequestResponse.ts → GenericError.ts} +6 -5
  113. package/models/{IdentifyUserConflictResponseErrorsInner.ts → GenericErrorErrorsInner.ts} +3 -3
  114. package/models/GetNotificationRequestBody.ts +1 -1
  115. package/models/InlineResponse200.ts +1 -1
  116. package/models/InlineResponse2003.ts +1 -1
  117. package/models/InlineResponse201.ts +1 -1
  118. package/models/InlineResponse202.ts +1 -1
  119. package/models/InvalidIdentifierError.ts +1 -1
  120. package/models/Notification.ts +1 -1
  121. package/models/Notification200Errors.ts +1 -1
  122. package/models/NotificationAllOf.ts +1 -1
  123. package/models/NotificationHistorySuccessResponse.ts +1 -1
  124. package/models/NotificationSlice.ts +1 -1
  125. package/models/NotificationTarget.ts +1 -1
  126. package/models/NotificationWithMeta.ts +1 -1
  127. package/models/NotificationWithMetaAllOf.ts +1 -1
  128. package/models/ObjectSerializer.ts +12 -9
  129. package/models/Operator.ts +1 -1
  130. package/models/OutcomeData.ts +1 -1
  131. package/models/OutcomesData.ts +1 -1
  132. package/models/PlatformDeliveryData.ts +1 -1
  133. package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
  134. package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
  135. package/models/Player.ts +1 -1
  136. package/models/PlayerNotificationTarget.ts +1 -1
  137. package/models/PlayerNotificationTargetIncludeAliases.ts +1 -1
  138. package/models/PlayerSlice.ts +1 -1
  139. package/models/PropertiesDeltas.ts +1 -1
  140. package/models/PropertiesObject.ts +1 -1
  141. package/models/Purchase.ts +1 -1
  142. package/models/{BadRequestError.ts → RateLimiterError.ts} +6 -5
  143. package/models/Segment.ts +1 -1
  144. package/models/SegmentNotificationTarget.ts +1 -1
  145. package/models/StringMap.ts +1 -1
  146. package/models/SubscriptionObject.ts +1 -1
  147. package/models/TransferSubscriptionRequestBody.ts +1 -1
  148. package/models/UpdateLiveActivityRequest.ts +1 -1
  149. package/models/UpdateLiveActivitySuccessResponse.ts +1 -1
  150. package/models/UpdatePlayerSuccessResponse.ts +1 -1
  151. package/models/UpdatePlayerTagsRequestBody.ts +1 -1
  152. package/models/UpdatePlayerTagsSuccessResponse.ts +1 -1
  153. package/models/UpdateSubscriptionRequestBody.ts +1 -1
  154. package/models/UpdateUserRequest.ts +1 -1
  155. package/models/User.ts +1 -1
  156. package/models/UserIdentityRequestBody.ts +1 -1
  157. package/models/UserIdentityResponse.ts +1 -1
  158. package/models/UserSubscriptionOptions.ts +1 -1
  159. package/models/all.ts +4 -3
  160. package/package.json +2 -2
  161. package/servers.ts +1 -1
  162. package/types/ObjectParamAPI.ts +29 -4
  163. package/types/ObservableAPI.ts +30 -4
  164. package/types/PromiseAPI.ts +16 -4
  165. package/dist/models/BadRequestError.js +0 -22
  166. package/dist/models/BadRequestError.js.map +0 -1
  167. package/dist/models/CreateNotificationBadRequestResponse.js +0 -22
  168. package/dist/models/CreateNotificationBadRequestResponse.js.map +0 -1
  169. package/dist/models/CreateSegmentBadRequestResponse.js +0 -28
  170. package/dist/models/CreateSegmentBadRequestResponse.js.map +0 -1
  171. package/dist/models/DeletePlayerBadRequestResponse.js +0 -22
  172. package/dist/models/DeletePlayerBadRequestResponse.js.map +0 -1
  173. package/dist/models/DeleteSegmentBadRequestResponse.js +0 -22
  174. package/dist/models/DeleteSegmentBadRequestResponse.js.map +0 -1
  175. package/dist/models/FilterNotificationTarget.d.ts +0 -28
  176. package/dist/models/FilterNotificationTarget.js +0 -88
  177. package/dist/models/FilterNotificationTarget.js.map +0 -1
  178. package/dist/models/IdentifyUserConflictResponse.d.ts +0 -18
  179. package/dist/models/IdentifyUserConflictResponse.js +0 -22
  180. package/dist/models/IdentifyUserConflictResponse.js.map +0 -1
  181. package/dist/models/IdentifyUserConflictResponseErrorsInner.js +0 -28
  182. package/dist/models/IdentifyUserConflictResponseErrorsInner.js.map +0 -1
  183. package/dist/models/NotificationHistoryBadRequestResponse.d.ts +0 -18
  184. package/dist/models/NotificationHistoryBadRequestResponse.js +0 -28
  185. package/dist/models/NotificationHistoryBadRequestResponse.js.map +0 -1
  186. package/models/CreateSegmentBadRequestResponse.ts +0 -38
  187. package/models/DeleteSegmentBadRequestResponse.ts +0 -31
  188. package/models/FilterNotificationTarget.ts +0 -144
  189. package/models/IdentifyUserConflictResponse.ts +0 -32
  190. package/models/NotificationHistoryBadRequestResponse.ts +0 -38
@@ -84,6 +84,7 @@ var DefaultApiRequestFactory = (function (_super) {
84
84
  .replace('{' + 'activity_id' + '}', encodeURIComponent(String(activityId)));
85
85
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
86
86
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
87
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
87
88
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
88
89
  "application/json"
89
90
  ]);
@@ -126,6 +127,7 @@ var DefaultApiRequestFactory = (function (_super) {
126
127
  .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
127
128
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
128
129
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
130
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
129
131
  if (appId !== undefined) {
130
132
  requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
131
133
  }
@@ -161,6 +163,7 @@ var DefaultApiRequestFactory = (function (_super) {
161
163
  localVarPath = '/apps';
162
164
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
163
165
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
166
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
164
167
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
165
168
  "application/json"
166
169
  ]);
@@ -199,6 +202,7 @@ var DefaultApiRequestFactory = (function (_super) {
199
202
  localVarPath = '/notifications';
200
203
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
201
204
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
205
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
202
206
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
203
207
  "application/json"
204
208
  ]);
@@ -237,6 +241,7 @@ var DefaultApiRequestFactory = (function (_super) {
237
241
  localVarPath = '/players';
238
242
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
239
243
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
244
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
240
245
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
241
246
  "application/json"
242
247
  ]);
@@ -276,6 +281,7 @@ var DefaultApiRequestFactory = (function (_super) {
276
281
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
277
282
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
278
283
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
284
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
279
285
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
280
286
  "application/json"
281
287
  ]);
@@ -326,6 +332,7 @@ var DefaultApiRequestFactory = (function (_super) {
326
332
  .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
327
333
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
328
334
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
335
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
329
336
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
330
337
  "application/json"
331
338
  ]);
@@ -368,6 +375,7 @@ var DefaultApiRequestFactory = (function (_super) {
368
375
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
369
376
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
370
377
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
378
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
371
379
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
372
380
  "application/json"
373
381
  ]);
@@ -419,6 +427,7 @@ var DefaultApiRequestFactory = (function (_super) {
419
427
  .replace('{' + 'alias_label_to_delete' + '}', encodeURIComponent(String(aliasLabelToDelete)));
420
428
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
421
429
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
430
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
422
431
  authMethod = _config.authMethods["app_key"];
423
432
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
424
433
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -455,6 +464,7 @@ var DefaultApiRequestFactory = (function (_super) {
455
464
  .replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
456
465
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
457
466
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
467
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
458
468
  if (appId !== undefined) {
459
469
  requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
460
470
  }
@@ -495,6 +505,7 @@ var DefaultApiRequestFactory = (function (_super) {
495
505
  .replace('{' + 'segment_id' + '}', encodeURIComponent(String(segmentId)));
496
506
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
497
507
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
508
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
498
509
  authMethod = _config.authMethods["app_key"];
499
510
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
500
511
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -532,6 +543,7 @@ var DefaultApiRequestFactory = (function (_super) {
532
543
  .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
533
544
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
534
545
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
546
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
535
547
  authMethod = _config.authMethods["app_key"];
536
548
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
537
549
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -553,7 +565,7 @@ var DefaultApiRequestFactory = (function (_super) {
553
565
  DefaultApiRequestFactory.prototype.deleteUser = function (appId, aliasLabel, aliasId, _options) {
554
566
  var _a, _b, _c;
555
567
  return __awaiter(this, void 0, void 0, function () {
556
- var _config, localVarPath, requestContext, defaultAuth;
568
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
557
569
  return __generator(this, function (_d) {
558
570
  switch (_d.label) {
559
571
  case 0:
@@ -573,13 +585,21 @@ var DefaultApiRequestFactory = (function (_super) {
573
585
  .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
574
586
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
575
587
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
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))];
588
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
589
+ authMethod = _config.authMethods["app_key"];
590
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
591
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
579
592
  case 1:
580
593
  _d.sent();
581
594
  _d.label = 2;
582
- case 2: return [2, requestContext];
595
+ case 2:
596
+ 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);
597
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
598
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
599
+ case 3:
600
+ _d.sent();
601
+ _d.label = 4;
602
+ case 4: return [2, requestContext];
583
603
  }
584
604
  });
585
605
  });
@@ -607,6 +627,47 @@ var DefaultApiRequestFactory = (function (_super) {
607
627
  .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
608
628
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
609
629
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
630
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
631
+ authMethod = _config.authMethods["app_key"];
632
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
633
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
634
+ case 1:
635
+ _d.sent();
636
+ _d.label = 2;
637
+ case 2:
638
+ 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);
639
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
640
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
641
+ case 3:
642
+ _d.sent();
643
+ _d.label = 4;
644
+ case 4: return [2, requestContext];
645
+ }
646
+ });
647
+ });
648
+ };
649
+ DefaultApiRequestFactory.prototype.exportEvents = function (notificationId, appId, _options) {
650
+ var _a, _b, _c;
651
+ return __awaiter(this, void 0, void 0, function () {
652
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
653
+ return __generator(this, function (_d) {
654
+ switch (_d.label) {
655
+ case 0:
656
+ _config = _options || this.configuration;
657
+ if (notificationId === null || notificationId === undefined) {
658
+ throw new baseapi_1.RequiredError("DefaultApi", "exportEvents", "notificationId");
659
+ }
660
+ if (appId === null || appId === undefined) {
661
+ throw new baseapi_1.RequiredError("DefaultApi", "exportEvents", "appId");
662
+ }
663
+ localVarPath = '/notifications/{notification_id}/export_events?app_id={app_id}'
664
+ .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
665
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
666
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
667
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
668
+ if (appId !== undefined) {
669
+ requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
670
+ }
610
671
  authMethod = _config.authMethods["app_key"];
611
672
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
612
673
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -640,6 +701,7 @@ var DefaultApiRequestFactory = (function (_super) {
640
701
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
641
702
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
642
703
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
704
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
643
705
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
644
706
  "application/json"
645
707
  ]);
@@ -683,6 +745,7 @@ var DefaultApiRequestFactory = (function (_super) {
683
745
  .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
684
746
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
685
747
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
748
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
686
749
  authMethod = _config.authMethods["app_key"];
687
750
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
688
751
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -724,6 +787,7 @@ var DefaultApiRequestFactory = (function (_super) {
724
787
  .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
725
788
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
726
789
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
790
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
727
791
  authMethod = _config.authMethods["app_key"];
728
792
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
729
793
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -765,6 +829,7 @@ var DefaultApiRequestFactory = (function (_super) {
765
829
  .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
766
830
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
767
831
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
832
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
768
833
  authMethod = _config.authMethods["app_key"];
769
834
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
770
835
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -798,6 +863,7 @@ var DefaultApiRequestFactory = (function (_super) {
798
863
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
799
864
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
800
865
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
866
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
801
867
  authMethod = _config.authMethods["user_key"];
802
868
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
803
869
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -827,6 +893,7 @@ var DefaultApiRequestFactory = (function (_super) {
827
893
  localVarPath = '/apps';
828
894
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
829
895
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
896
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
830
897
  authMethod = _config.authMethods["user_key"];
831
898
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
832
899
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -864,6 +931,7 @@ var DefaultApiRequestFactory = (function (_super) {
864
931
  .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
865
932
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
866
933
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
934
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
867
935
  authMethod = _config.authMethods["app_key"];
868
936
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
869
937
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
@@ -900,6 +968,7 @@ var DefaultApiRequestFactory = (function (_super) {
900
968
  .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
901
969
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
902
970
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
971
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
903
972
  if (appId !== undefined) {
904
973
  requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
905
974
  }
@@ -939,6 +1008,7 @@ var DefaultApiRequestFactory = (function (_super) {
939
1008
  .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
940
1009
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
941
1010
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1011
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
942
1012
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
943
1013
  "application/json"
944
1014
  ]);
@@ -977,6 +1047,7 @@ var DefaultApiRequestFactory = (function (_super) {
977
1047
  localVarPath = '/notifications';
978
1048
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
979
1049
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1050
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
980
1051
  if (appId !== undefined) {
981
1052
  requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
982
1053
  }
@@ -1025,6 +1096,7 @@ var DefaultApiRequestFactory = (function (_super) {
1025
1096
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
1026
1097
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1027
1098
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1099
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1028
1100
  if (outcomeNames !== undefined) {
1029
1101
  requestContext.setQueryParam("outcome_names", ObjectSerializer_1.ObjectSerializer.serialize(outcomeNames, "string", ""));
1030
1102
  }
@@ -1076,6 +1148,7 @@ var DefaultApiRequestFactory = (function (_super) {
1076
1148
  .replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
1077
1149
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1078
1150
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1151
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1079
1152
  if (appId !== undefined) {
1080
1153
  requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
1081
1154
  }
@@ -1114,6 +1187,7 @@ var DefaultApiRequestFactory = (function (_super) {
1114
1187
  localVarPath = '/players';
1115
1188
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1116
1189
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1190
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1117
1191
  if (appId !== undefined) {
1118
1192
  requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
1119
1193
  }
@@ -1167,6 +1241,7 @@ var DefaultApiRequestFactory = (function (_super) {
1167
1241
  .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
1168
1242
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1169
1243
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1244
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1170
1245
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1171
1246
  "application/json"
1172
1247
  ]);
@@ -1213,6 +1288,7 @@ var DefaultApiRequestFactory = (function (_super) {
1213
1288
  .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
1214
1289
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1215
1290
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1291
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1216
1292
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1217
1293
  "application/json"
1218
1294
  ]);
@@ -1259,6 +1335,7 @@ var DefaultApiRequestFactory = (function (_super) {
1259
1335
  .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
1260
1336
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1261
1337
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1338
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1262
1339
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1263
1340
  "application/json"
1264
1341
  ]);
@@ -1301,6 +1378,7 @@ var DefaultApiRequestFactory = (function (_super) {
1301
1378
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
1302
1379
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1303
1380
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1381
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1304
1382
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1305
1383
  "application/json"
1306
1384
  ]);
@@ -1347,6 +1425,7 @@ var DefaultApiRequestFactory = (function (_super) {
1347
1425
  .replace('{' + 'activity_id' + '}', encodeURIComponent(String(activityId)));
1348
1426
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
1349
1427
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1428
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1350
1429
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1351
1430
  "application/json"
1352
1431
  ]);
@@ -1389,6 +1468,7 @@ var DefaultApiRequestFactory = (function (_super) {
1389
1468
  .replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
1390
1469
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1391
1470
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1471
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1392
1472
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1393
1473
  "application/json"
1394
1474
  ]);
@@ -1432,6 +1512,7 @@ var DefaultApiRequestFactory = (function (_super) {
1432
1512
  .replace('{' + 'external_user_id' + '}', encodeURIComponent(String(externalUserId)));
1433
1513
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1434
1514
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1515
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1435
1516
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1436
1517
  "application/json"
1437
1518
  ]);
@@ -1478,6 +1559,7 @@ var DefaultApiRequestFactory = (function (_super) {
1478
1559
  .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
1479
1560
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1480
1561
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1562
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1481
1563
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1482
1564
  "application/json"
1483
1565
  ]);
@@ -1528,6 +1610,7 @@ var DefaultApiRequestFactory = (function (_super) {
1528
1610
  .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
1529
1611
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1530
1612
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1613
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1531
1614
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1532
1615
  "application/json"
1533
1616
  ]);
@@ -1560,9 +1643,9 @@ var DefaultApiResponseProcessor = (function () {
1560
1643
  }
1561
1644
  DefaultApiResponseProcessor.prototype.beginLiveActivity = function (response) {
1562
1645
  return __awaiter(this, void 0, void 0, function () {
1563
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1564
- return __generator(this, function (_l) {
1565
- switch (_l.label) {
1646
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1647
+ return __generator(this, function (_q) {
1648
+ switch (_q.label) {
1566
1649
  case 0:
1567
1650
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1568
1651
  if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
@@ -1573,32 +1656,41 @@ var DefaultApiResponseProcessor = (function () {
1573
1656
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1574
1657
  return [4, response.body.text()];
1575
1658
  case 1:
1576
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1577
- "BadRequestError", ""]);
1659
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1660
+ "GenericError", ""]);
1578
1661
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1579
1662
  case 2:
1580
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1663
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 4];
1581
1664
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1582
1665
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1583
1666
  return [4, response.body.text()];
1584
1667
  case 3:
1585
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1668
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1669
+ "RateLimiterError", ""]);
1670
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1671
+ case 4:
1672
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1673
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1674
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1675
+ return [4, response.body.text()];
1676
+ case 5:
1677
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1586
1678
  "void", ""]);
1587
1679
  return [2, body];
1588
- case 4:
1589
- _j = exception_1.ApiException.bind;
1590
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1680
+ case 6:
1681
+ _o = exception_1.ApiException.bind;
1682
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1591
1683
  return [4, response.getBodyAsAny()];
1592
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1684
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1593
1685
  }
1594
1686
  });
1595
1687
  });
1596
1688
  };
1597
1689
  DefaultApiResponseProcessor.prototype.cancelNotification = function (response) {
1598
1690
  return __awaiter(this, void 0, void 0, function () {
1599
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1600
- return __generator(this, function (_q) {
1601
- switch (_q.label) {
1691
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1692
+ return __generator(this, function (_u) {
1693
+ switch (_u.label) {
1602
1694
  case 0:
1603
1695
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1604
1696
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1606,7 +1698,7 @@ var DefaultApiResponseProcessor = (function () {
1606
1698
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1607
1699
  return [4, response.body.text()];
1608
1700
  case 1:
1609
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1701
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1610
1702
  "CancelNotificationSuccessResponse", ""]);
1611
1703
  return [2, body];
1612
1704
  case 2:
@@ -1615,32 +1707,41 @@ var DefaultApiResponseProcessor = (function () {
1615
1707
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1616
1708
  return [4, response.body.text()];
1617
1709
  case 3:
1618
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1619
- "BadRequestError", ""]);
1710
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1711
+ "GenericError", ""]);
1620
1712
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1621
1713
  case 4:
1622
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1714
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
1623
1715
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1624
1716
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1625
1717
  return [4, response.body.text()];
1626
1718
  case 5:
1627
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1719
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1720
+ "RateLimiterError", ""]);
1721
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1722
+ case 6:
1723
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1724
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1725
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1726
+ return [4, response.body.text()];
1727
+ case 7:
1728
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1628
1729
  "CancelNotificationSuccessResponse", ""]);
1629
1730
  return [2, body];
1630
- case 6:
1631
- _o = exception_1.ApiException.bind;
1632
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1731
+ case 8:
1732
+ _s = exception_1.ApiException.bind;
1733
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1633
1734
  return [4, response.getBodyAsAny()];
1634
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1735
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1635
1736
  }
1636
1737
  });
1637
1738
  });
1638
1739
  };
1639
1740
  DefaultApiResponseProcessor.prototype.createApp = function (response) {
1640
1741
  return __awaiter(this, void 0, void 0, function () {
1641
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1642
- return __generator(this, function (_q) {
1643
- switch (_q.label) {
1742
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1743
+ return __generator(this, function (_u) {
1744
+ switch (_u.label) {
1644
1745
  case 0:
1645
1746
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1646
1747
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1648,7 +1749,7 @@ var DefaultApiResponseProcessor = (function () {
1648
1749
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1649
1750
  return [4, response.body.text()];
1650
1751
  case 1:
1651
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1752
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1652
1753
  "App", ""]);
1653
1754
  return [2, body];
1654
1755
  case 2:
@@ -1657,32 +1758,41 @@ var DefaultApiResponseProcessor = (function () {
1657
1758
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1658
1759
  return [4, response.body.text()];
1659
1760
  case 3:
1660
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1661
- "BadRequestError", ""]);
1761
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1762
+ "GenericError", ""]);
1662
1763
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1663
1764
  case 4:
1664
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1765
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
1665
1766
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1666
1767
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1667
1768
  return [4, response.body.text()];
1668
1769
  case 5:
1669
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1770
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1771
+ "RateLimiterError", ""]);
1772
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1773
+ case 6:
1774
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1775
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1776
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1777
+ return [4, response.body.text()];
1778
+ case 7:
1779
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1670
1780
  "App", ""]);
1671
1781
  return [2, body];
1672
- case 6:
1673
- _o = exception_1.ApiException.bind;
1674
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1782
+ case 8:
1783
+ _s = exception_1.ApiException.bind;
1784
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1675
1785
  return [4, response.getBodyAsAny()];
1676
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1786
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1677
1787
  }
1678
1788
  });
1679
1789
  });
1680
1790
  };
1681
1791
  DefaultApiResponseProcessor.prototype.createNotification = function (response) {
1682
1792
  return __awaiter(this, void 0, void 0, function () {
1683
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1684
- return __generator(this, function (_q) {
1685
- switch (_q.label) {
1793
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1794
+ return __generator(this, function (_u) {
1795
+ switch (_u.label) {
1686
1796
  case 0:
1687
1797
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1688
1798
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1690,7 +1800,7 @@ var DefaultApiResponseProcessor = (function () {
1690
1800
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1691
1801
  return [4, response.body.text()];
1692
1802
  case 1:
1693
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1803
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1694
1804
  "CreateNotificationSuccessResponse", ""]);
1695
1805
  return [2, body];
1696
1806
  case 2:
@@ -1699,32 +1809,41 @@ var DefaultApiResponseProcessor = (function () {
1699
1809
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1700
1810
  return [4, response.body.text()];
1701
1811
  case 3:
1702
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1703
- "BadRequestError", ""]);
1812
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1813
+ "GenericError", ""]);
1704
1814
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1705
1815
  case 4:
1706
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1816
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
1707
1817
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1708
1818
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1709
1819
  return [4, response.body.text()];
1710
1820
  case 5:
1711
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1821
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1822
+ "RateLimiterError", ""]);
1823
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1824
+ case 6:
1825
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1826
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1827
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1828
+ return [4, response.body.text()];
1829
+ case 7:
1830
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1712
1831
  "CreateNotificationSuccessResponse", ""]);
1713
1832
  return [2, body];
1714
- case 6:
1715
- _o = exception_1.ApiException.bind;
1716
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1833
+ case 8:
1834
+ _s = exception_1.ApiException.bind;
1835
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1717
1836
  return [4, response.getBodyAsAny()];
1718
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1837
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1719
1838
  }
1720
1839
  });
1721
1840
  });
1722
1841
  };
1723
1842
  DefaultApiResponseProcessor.prototype.createPlayer = function (response) {
1724
1843
  return __awaiter(this, void 0, void 0, function () {
1725
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1726
- return __generator(this, function (_q) {
1727
- switch (_q.label) {
1844
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
1845
+ return __generator(this, function (_y) {
1846
+ switch (_y.label) {
1728
1847
  case 0:
1729
1848
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1730
1849
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1732,7 +1851,7 @@ var DefaultApiResponseProcessor = (function () {
1732
1851
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1733
1852
  return [4, response.body.text()];
1734
1853
  case 1:
1735
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1854
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
1736
1855
  "CreatePlayerSuccessResponse", ""]);
1737
1856
  return [2, body];
1738
1857
  case 2:
@@ -1741,32 +1860,50 @@ var DefaultApiResponseProcessor = (function () {
1741
1860
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1742
1861
  return [4, response.body.text()];
1743
1862
  case 3:
1744
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1745
- "BadRequestError", ""]);
1863
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1864
+ "GenericError", ""]);
1746
1865
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1747
1866
  case 4:
1748
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1867
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
1749
1868
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1750
1869
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1751
1870
  return [4, response.body.text()];
1752
1871
  case 5:
1753
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1872
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
1873
+ "GenericError", ""]);
1874
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
1875
+ case 6:
1876
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
1877
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1878
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1879
+ return [4, response.body.text()];
1880
+ case 7:
1881
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
1882
+ "RateLimiterError", ""]);
1883
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1884
+ case 8:
1885
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
1886
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1887
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1888
+ return [4, response.body.text()];
1889
+ case 9:
1890
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
1754
1891
  "CreatePlayerSuccessResponse", ""]);
1755
1892
  return [2, body];
1756
- case 6:
1757
- _o = exception_1.ApiException.bind;
1758
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1893
+ case 10:
1894
+ _w = exception_1.ApiException.bind;
1895
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1759
1896
  return [4, response.getBodyAsAny()];
1760
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1897
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
1761
1898
  }
1762
1899
  });
1763
1900
  });
1764
1901
  };
1765
1902
  DefaultApiResponseProcessor.prototype.createSegments = function (response) {
1766
1903
  return __awaiter(this, void 0, void 0, function () {
1767
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1768
- return __generator(this, function (_u) {
1769
- switch (_u.label) {
1904
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
1905
+ return __generator(this, function (_y) {
1906
+ switch (_y.label) {
1770
1907
  case 0:
1771
1908
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1772
1909
  if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
@@ -1774,7 +1911,7 @@ var DefaultApiResponseProcessor = (function () {
1774
1911
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1775
1912
  return [4, response.body.text()];
1776
1913
  case 1:
1777
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1914
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
1778
1915
  "CreateSegmentSuccessResponse", ""]);
1779
1916
  return [2, body];
1780
1917
  case 2:
@@ -1783,8 +1920,8 @@ var DefaultApiResponseProcessor = (function () {
1783
1920
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1784
1921
  return [4, response.body.text()];
1785
1922
  case 3:
1786
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1787
- "BadRequestError", ""]);
1923
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1924
+ "GenericError", ""]);
1788
1925
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1789
1926
  case 4:
1790
1927
  if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
@@ -1792,32 +1929,41 @@ var DefaultApiResponseProcessor = (function () {
1792
1929
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1793
1930
  return [4, response.body.text()];
1794
1931
  case 5:
1795
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1932
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
1796
1933
  "CreateSegmentConflictResponse", ""]);
1797
1934
  throw new exception_1.ApiException(409, "Conflict", body, response.headers);
1798
1935
  case 6:
1799
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1936
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
1800
1937
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1801
1938
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1802
1939
  return [4, response.body.text()];
1803
1940
  case 7:
1804
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1941
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
1942
+ "RateLimiterError", ""]);
1943
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1944
+ case 8:
1945
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
1946
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1947
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1948
+ return [4, response.body.text()];
1949
+ case 9:
1950
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
1805
1951
  "CreateSegmentSuccessResponse", ""]);
1806
1952
  return [2, body];
1807
- case 8:
1808
- _s = exception_1.ApiException.bind;
1809
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1953
+ case 10:
1954
+ _w = exception_1.ApiException.bind;
1955
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1810
1956
  return [4, response.getBodyAsAny()];
1811
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1957
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
1812
1958
  }
1813
1959
  });
1814
1960
  });
1815
1961
  };
1816
1962
  DefaultApiResponseProcessor.prototype.createSubscription = function (response) {
1817
1963
  return __awaiter(this, void 0, void 0, function () {
1818
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1819
- return __generator(this, function (_q) {
1820
- switch (_q.label) {
1964
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, _0, _1;
1965
+ return __generator(this, function (_2) {
1966
+ switch (_2.label) {
1821
1967
  case 0:
1822
1968
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1823
1969
  if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
@@ -1825,7 +1971,7 @@ var DefaultApiResponseProcessor = (function () {
1825
1971
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1826
1972
  return [4, response.body.text()];
1827
1973
  case 1:
1828
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1974
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1829
1975
  "InlineResponse201", ""]);
1830
1976
  return [2, body];
1831
1977
  case 2:
@@ -1834,83 +1980,137 @@ var DefaultApiResponseProcessor = (function () {
1834
1980
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1835
1981
  return [4, response.body.text()];
1836
1982
  case 3:
1837
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1983
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1838
1984
  "InlineResponse201", ""]);
1839
1985
  return [2, body];
1840
1986
  case 4:
1841
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1987
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 6];
1842
1988
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1843
1989
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1844
1990
  return [4, response.body.text()];
1845
1991
  case 5:
1846
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1992
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1993
+ "GenericError", ""]);
1994
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1995
+ case 6:
1996
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 8];
1997
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1998
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1999
+ return [4, response.body.text()];
2000
+ case 7:
2001
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
2002
+ "GenericError", ""]);
2003
+ throw new exception_1.ApiException(409, "Operation is not permitted due to user having the maximum number of subscriptions assigned", body, response.headers);
2004
+ case 8:
2005
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 10];
2006
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2007
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2008
+ return [4, response.body.text()];
2009
+ case 9:
2010
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
2011
+ "RateLimiterError", ""]);
2012
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2013
+ case 10:
2014
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
2015
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
2016
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
2017
+ return [4, response.body.text()];
2018
+ case 11:
2019
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1847
2020
  "InlineResponse201", ""]);
1848
2021
  return [2, body];
1849
- case 6:
1850
- _o = exception_1.ApiException.bind;
1851
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2022
+ case 12:
2023
+ _0 = exception_1.ApiException.bind;
2024
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1852
2025
  return [4, response.getBodyAsAny()];
1853
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2026
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1854
2027
  }
1855
2028
  });
1856
2029
  });
1857
2030
  };
1858
2031
  DefaultApiResponseProcessor.prototype.createUser = function (response) {
1859
2032
  return __awaiter(this, void 0, void 0, function () {
1860
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1861
- return __generator(this, function (_u) {
1862
- switch (_u.label) {
2033
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, body, _0, _1, _2, _3, _4, _5;
2034
+ return __generator(this, function (_6) {
2035
+ switch (_6.label) {
1863
2036
  case 0:
1864
2037
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1865
- if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
2038
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1866
2039
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1867
2040
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1868
2041
  return [4, response.body.text()];
1869
2042
  case 1:
1870
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2043
+ body = _b.apply(_a, [_d.apply(_c, [_6.sent(), contentType]),
1871
2044
  "User", ""]);
1872
2045
  return [2, body];
1873
2046
  case 2:
1874
- if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 4];
2047
+ if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 4];
1875
2048
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1876
2049
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1877
2050
  return [4, response.body.text()];
1878
2051
  case 3:
1879
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2052
+ body = _f.apply(_e, [_h.apply(_g, [_6.sent(), contentType]),
1880
2053
  "User", ""]);
1881
2054
  return [2, body];
1882
2055
  case 4:
1883
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
2056
+ if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 6];
1884
2057
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1885
2058
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1886
2059
  return [4, response.body.text()];
1887
2060
  case 5:
1888
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1889
- "CreateUserConflictResponse", ""]);
1890
- throw new exception_1.ApiException(409, "Multiple User Identity Conflict", body, response.headers);
2061
+ body = _k.apply(_j, [_m.apply(_l, [_6.sent(), contentType]),
2062
+ "User", ""]);
2063
+ return [2, body];
1891
2064
  case 6:
1892
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2065
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 8];
1893
2066
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1894
2067
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1895
2068
  return [4, response.body.text()];
1896
2069
  case 7:
1897
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2070
+ body = _p.apply(_o, [_r.apply(_q, [_6.sent(), contentType]),
2071
+ "GenericError", ""]);
2072
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2073
+ case 8:
2074
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 10];
2075
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2076
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2077
+ return [4, response.body.text()];
2078
+ case 9:
2079
+ body = _t.apply(_s, [_v.apply(_u, [_6.sent(), contentType]),
2080
+ "CreateUserConflictResponse", ""]);
2081
+ throw new exception_1.ApiException(409, "Multiple User Identity Conflict", body, response.headers);
2082
+ case 10:
2083
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 12];
2084
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
2085
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
2086
+ return [4, response.body.text()];
2087
+ case 11:
2088
+ body = _x.apply(_w, [_z.apply(_y, [_6.sent(), contentType]),
2089
+ "RateLimiterError", ""]);
2090
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2091
+ case 12:
2092
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 14];
2093
+ _1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
2094
+ _3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
2095
+ return [4, response.body.text()];
2096
+ case 13:
2097
+ body = _1.apply(_0, [_3.apply(_2, [_6.sent(), contentType]),
1898
2098
  "User", ""]);
1899
2099
  return [2, body];
1900
- case 8:
1901
- _s = exception_1.ApiException.bind;
1902
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2100
+ case 14:
2101
+ _4 = exception_1.ApiException.bind;
2102
+ _5 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1903
2103
  return [4, response.getBodyAsAny()];
1904
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2104
+ case 15: throw new (_4.apply(exception_1.ApiException, _5.concat([_6.sent(), response.headers])))();
1905
2105
  }
1906
2106
  });
1907
2107
  });
1908
2108
  };
1909
2109
  DefaultApiResponseProcessor.prototype.deleteAlias = function (response) {
1910
2110
  return __awaiter(this, void 0, void 0, function () {
1911
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1912
- return __generator(this, function (_l) {
1913
- switch (_l.label) {
2111
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
2112
+ return __generator(this, function (_y) {
2113
+ switch (_y.label) {
1914
2114
  case 0:
1915
2115
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1916
2116
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1918,32 +2118,59 @@ var DefaultApiResponseProcessor = (function () {
1918
2118
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1919
2119
  return [4, response.body.text()];
1920
2120
  case 1:
1921
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2121
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
1922
2122
  "InlineResponse200", ""]);
1923
2123
  return [2, body];
1924
2124
  case 2:
1925
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2125
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1926
2126
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1927
2127
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1928
2128
  return [4, response.body.text()];
1929
2129
  case 3:
1930
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2130
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2131
+ "GenericError", ""]);
2132
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2133
+ case 4:
2134
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
2135
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2136
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2137
+ return [4, response.body.text()];
2138
+ case 5:
2139
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2140
+ "GenericError", ""]);
2141
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2142
+ case 6:
2143
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2144
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2145
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2146
+ return [4, response.body.text()];
2147
+ case 7:
2148
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2149
+ "RateLimiterError", ""]);
2150
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2151
+ case 8:
2152
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2153
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2154
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2155
+ return [4, response.body.text()];
2156
+ case 9:
2157
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
1931
2158
  "InlineResponse200", ""]);
1932
2159
  return [2, body];
1933
- case 4:
1934
- _j = exception_1.ApiException.bind;
1935
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2160
+ case 10:
2161
+ _w = exception_1.ApiException.bind;
2162
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1936
2163
  return [4, response.getBodyAsAny()];
1937
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2164
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
1938
2165
  }
1939
2166
  });
1940
2167
  });
1941
2168
  };
1942
2169
  DefaultApiResponseProcessor.prototype.deletePlayer = function (response) {
1943
2170
  return __awaiter(this, void 0, void 0, function () {
1944
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1945
- return __generator(this, function (_u) {
1946
- switch (_u.label) {
2171
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
2172
+ return __generator(this, function (_y) {
2173
+ switch (_y.label) {
1947
2174
  case 0:
1948
2175
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1949
2176
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1951,7 +2178,7 @@ var DefaultApiResponseProcessor = (function () {
1951
2178
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1952
2179
  return [4, response.body.text()];
1953
2180
  case 1:
1954
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2181
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
1955
2182
  "DeletePlayerSuccessResponse", ""]);
1956
2183
  return [2, body];
1957
2184
  case 2:
@@ -1960,8 +2187,8 @@ var DefaultApiResponseProcessor = (function () {
1960
2187
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1961
2188
  return [4, response.body.text()];
1962
2189
  case 3:
1963
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1964
- "BadRequestError", ""]);
2190
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2191
+ "GenericError", ""]);
1965
2192
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1966
2193
  case 4:
1967
2194
  if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
@@ -1969,32 +2196,41 @@ var DefaultApiResponseProcessor = (function () {
1969
2196
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1970
2197
  return [4, response.body.text()];
1971
2198
  case 5:
1972
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2199
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
1973
2200
  "DeletePlayerNotFoundResponse", ""]);
1974
2201
  throw new exception_1.ApiException(404, "Not Found", body, response.headers);
1975
2202
  case 6:
1976
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2203
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
1977
2204
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1978
2205
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1979
2206
  return [4, response.body.text()];
1980
2207
  case 7:
1981
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2208
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2209
+ "RateLimiterError", ""]);
2210
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2211
+ case 8:
2212
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2213
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2214
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2215
+ return [4, response.body.text()];
2216
+ case 9:
2217
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
1982
2218
  "DeletePlayerSuccessResponse", ""]);
1983
2219
  return [2, body];
1984
- case 8:
1985
- _s = exception_1.ApiException.bind;
1986
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2220
+ case 10:
2221
+ _w = exception_1.ApiException.bind;
2222
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1987
2223
  return [4, response.getBodyAsAny()];
1988
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2224
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
1989
2225
  }
1990
2226
  });
1991
2227
  });
1992
2228
  };
1993
2229
  DefaultApiResponseProcessor.prototype.deleteSegments = function (response) {
1994
2230
  return __awaiter(this, void 0, void 0, function () {
1995
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1996
- return __generator(this, function (_u) {
1997
- switch (_u.label) {
2231
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
2232
+ return __generator(this, function (_y) {
2233
+ switch (_y.label) {
1998
2234
  case 0:
1999
2235
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2000
2236
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2002,7 +2238,7 @@ var DefaultApiResponseProcessor = (function () {
2002
2238
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2003
2239
  return [4, response.body.text()];
2004
2240
  case 1:
2005
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2241
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2006
2242
  "DeleteSegmentSuccessResponse", ""]);
2007
2243
  return [2, body];
2008
2244
  case 2:
@@ -2011,8 +2247,8 @@ var DefaultApiResponseProcessor = (function () {
2011
2247
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2012
2248
  return [4, response.body.text()];
2013
2249
  case 3:
2014
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2015
- "BadRequestError", ""]);
2250
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2251
+ "GenericError", ""]);
2016
2252
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2017
2253
  case 4:
2018
2254
  if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
@@ -2020,86 +2256,149 @@ var DefaultApiResponseProcessor = (function () {
2020
2256
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2021
2257
  return [4, response.body.text()];
2022
2258
  case 5:
2023
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2259
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2024
2260
  "DeleteSegmentNotFoundResponse", ""]);
2025
2261
  throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2026
2262
  case 6:
2027
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2263
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2028
2264
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2029
2265
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2030
2266
  return [4, response.body.text()];
2031
2267
  case 7:
2032
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2268
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2269
+ "RateLimiterError", ""]);
2270
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2271
+ case 8:
2272
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2273
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2274
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2275
+ return [4, response.body.text()];
2276
+ case 9:
2277
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2033
2278
  "DeleteSegmentSuccessResponse", ""]);
2034
2279
  return [2, body];
2035
- case 8:
2036
- _s = exception_1.ApiException.bind;
2037
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2280
+ case 10:
2281
+ _w = exception_1.ApiException.bind;
2282
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2038
2283
  return [4, response.getBodyAsAny()];
2039
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2284
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2040
2285
  }
2041
2286
  });
2042
2287
  });
2043
2288
  };
2044
2289
  DefaultApiResponseProcessor.prototype.deleteSubscription = function (response) {
2045
2290
  return __awaiter(this, void 0, void 0, function () {
2046
- var contentType, body, _a, _b, _c, _d, _e, _f;
2047
- return __generator(this, function (_g) {
2048
- switch (_g.label) {
2291
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2292
+ return __generator(this, function (_u) {
2293
+ switch (_u.label) {
2049
2294
  case 0:
2050
2295
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2051
2296
  if ((0, util_1.isCodeInRange)("202", response.httpStatusCode)) {
2052
2297
  return [2];
2053
2298
  }
2054
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
2299
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
2055
2300
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2056
2301
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2057
2302
  return [4, response.body.text()];
2058
2303
  case 1:
2059
- body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
2304
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2305
+ "GenericError", ""]);
2306
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2307
+ case 2:
2308
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
2309
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2310
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2311
+ return [4, response.body.text()];
2312
+ case 3:
2313
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2314
+ "GenericError", ""]);
2315
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2316
+ case 4:
2317
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2318
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2319
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2320
+ return [4, response.body.text()];
2321
+ case 5:
2322
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2323
+ "RateLimiterError", ""]);
2324
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2325
+ case 6:
2326
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2327
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2328
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2329
+ return [4, response.body.text()];
2330
+ case 7:
2331
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2060
2332
  "void", ""]);
2061
2333
  return [2, body];
2062
- case 2:
2063
- _e = exception_1.ApiException.bind;
2064
- _f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2334
+ case 8:
2335
+ _s = exception_1.ApiException.bind;
2336
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2065
2337
  return [4, response.getBodyAsAny()];
2066
- case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
2338
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2067
2339
  }
2068
2340
  });
2069
2341
  });
2070
2342
  };
2071
2343
  DefaultApiResponseProcessor.prototype.deleteUser = function (response) {
2072
2344
  return __awaiter(this, void 0, void 0, function () {
2073
- var contentType, body, _a, _b, _c, _d, _e, _f;
2074
- return __generator(this, function (_g) {
2075
- switch (_g.label) {
2345
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2346
+ return __generator(this, function (_u) {
2347
+ switch (_u.label) {
2076
2348
  case 0:
2077
2349
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2078
2350
  if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
2079
2351
  return [2];
2080
2352
  }
2081
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
2353
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
2082
2354
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2083
2355
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2084
2356
  return [4, response.body.text()];
2085
2357
  case 1:
2086
- body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
2358
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2359
+ "GenericError", ""]);
2360
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2361
+ case 2:
2362
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
2363
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2364
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2365
+ return [4, response.body.text()];
2366
+ case 3:
2367
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2368
+ "GenericError", ""]);
2369
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2370
+ case 4:
2371
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2372
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2373
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2374
+ return [4, response.body.text()];
2375
+ case 5:
2376
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2377
+ "RateLimiterError", ""]);
2378
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2379
+ case 6:
2380
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2381
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2382
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2383
+ return [4, response.body.text()];
2384
+ case 7:
2385
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2087
2386
  "void", ""]);
2088
2387
  return [2, body];
2089
- case 2:
2090
- _e = exception_1.ApiException.bind;
2091
- _f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2388
+ case 8:
2389
+ _s = exception_1.ApiException.bind;
2390
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2092
2391
  return [4, response.getBodyAsAny()];
2093
- case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
2392
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2094
2393
  }
2095
2394
  });
2096
2395
  });
2097
2396
  };
2098
2397
  DefaultApiResponseProcessor.prototype.endLiveActivity = function (response) {
2099
2398
  return __awaiter(this, void 0, void 0, function () {
2100
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2101
- return __generator(this, function (_l) {
2102
- switch (_l.label) {
2399
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2400
+ return __generator(this, function (_q) {
2401
+ switch (_q.label) {
2103
2402
  case 0:
2104
2403
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2105
2404
  if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
@@ -2110,32 +2409,101 @@ var DefaultApiResponseProcessor = (function () {
2110
2409
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2111
2410
  return [4, response.body.text()];
2112
2411
  case 1:
2113
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2114
- "BadRequestError", ""]);
2412
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2413
+ "GenericError", ""]);
2115
2414
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2116
2415
  case 2:
2117
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2416
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 4];
2118
2417
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2119
2418
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2120
2419
  return [4, response.body.text()];
2121
2420
  case 3:
2122
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2421
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2422
+ "RateLimiterError", ""]);
2423
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2424
+ case 4:
2425
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2426
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2427
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2428
+ return [4, response.body.text()];
2429
+ case 5:
2430
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2123
2431
  "void", ""]);
2124
2432
  return [2, body];
2433
+ case 6:
2434
+ _o = exception_1.ApiException.bind;
2435
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2436
+ return [4, response.getBodyAsAny()];
2437
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2438
+ }
2439
+ });
2440
+ });
2441
+ };
2442
+ DefaultApiResponseProcessor.prototype.exportEvents = function (response) {
2443
+ return __awaiter(this, void 0, void 0, function () {
2444
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
2445
+ return __generator(this, function (_y) {
2446
+ switch (_y.label) {
2447
+ case 0:
2448
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2449
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2450
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2451
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2452
+ return [4, response.body.text()];
2453
+ case 1:
2454
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2455
+ "ExportEventsSuccessResponse", ""]);
2456
+ return [2, body];
2457
+ case 2:
2458
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2459
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2460
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2461
+ return [4, response.body.text()];
2462
+ case 3:
2463
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2464
+ "GenericError", ""]);
2465
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2125
2466
  case 4:
2126
- _j = exception_1.ApiException.bind;
2127
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2467
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2468
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2469
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2470
+ return [4, response.body.text()];
2471
+ case 5:
2472
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2473
+ "GenericError", ""]);
2474
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2475
+ case 6:
2476
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2477
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2478
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2479
+ return [4, response.body.text()];
2480
+ case 7:
2481
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2482
+ "RateLimiterError", ""]);
2483
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2484
+ case 8:
2485
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2486
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2487
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2488
+ return [4, response.body.text()];
2489
+ case 9:
2490
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2491
+ "ExportEventsSuccessResponse", ""]);
2492
+ return [2, body];
2493
+ case 10:
2494
+ _w = exception_1.ApiException.bind;
2495
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2128
2496
  return [4, response.getBodyAsAny()];
2129
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2497
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2130
2498
  }
2131
2499
  });
2132
2500
  });
2133
2501
  };
2134
2502
  DefaultApiResponseProcessor.prototype.exportPlayers = function (response) {
2135
2503
  return __awaiter(this, void 0, void 0, function () {
2136
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2137
- return __generator(this, function (_q) {
2138
- switch (_q.label) {
2504
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2505
+ return __generator(this, function (_u) {
2506
+ switch (_u.label) {
2139
2507
  case 0:
2140
2508
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2141
2509
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2143,7 +2511,7 @@ var DefaultApiResponseProcessor = (function () {
2143
2511
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2144
2512
  return [4, response.body.text()];
2145
2513
  case 1:
2146
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2514
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2147
2515
  "ExportPlayersSuccessResponse", ""]);
2148
2516
  return [2, body];
2149
2517
  case 2:
@@ -2152,32 +2520,41 @@ var DefaultApiResponseProcessor = (function () {
2152
2520
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2153
2521
  return [4, response.body.text()];
2154
2522
  case 3:
2155
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2156
- "BadRequestError", ""]);
2523
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2524
+ "GenericError", ""]);
2157
2525
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2158
2526
  case 4:
2159
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2527
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2160
2528
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2161
2529
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2162
2530
  return [4, response.body.text()];
2163
2531
  case 5:
2164
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2532
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2533
+ "RateLimiterError", ""]);
2534
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2535
+ case 6:
2536
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2537
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2538
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2539
+ return [4, response.body.text()];
2540
+ case 7:
2541
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2165
2542
  "ExportPlayersSuccessResponse", ""]);
2166
2543
  return [2, body];
2167
- case 6:
2168
- _o = exception_1.ApiException.bind;
2169
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2544
+ case 8:
2545
+ _s = exception_1.ApiException.bind;
2546
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2170
2547
  return [4, response.getBodyAsAny()];
2171
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2548
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2172
2549
  }
2173
2550
  });
2174
2551
  });
2175
2552
  };
2176
2553
  DefaultApiResponseProcessor.prototype.fetchAliases = function (response) {
2177
2554
  return __awaiter(this, void 0, void 0, function () {
2178
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2179
- return __generator(this, function (_l) {
2180
- switch (_l.label) {
2555
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2556
+ return __generator(this, function (_q) {
2557
+ switch (_q.label) {
2181
2558
  case 0:
2182
2559
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2183
2560
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2185,32 +2562,41 @@ var DefaultApiResponseProcessor = (function () {
2185
2562
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2186
2563
  return [4, response.body.text()];
2187
2564
  case 1:
2188
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2565
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2189
2566
  "UserIdentityResponse", ""]);
2190
2567
  return [2, body];
2191
2568
  case 2:
2192
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2569
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2193
2570
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2194
2571
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2195
2572
  return [4, response.body.text()];
2196
2573
  case 3:
2197
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2574
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2575
+ "GenericError", ""]);
2576
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2577
+ case 4:
2578
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2579
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2580
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2581
+ return [4, response.body.text()];
2582
+ case 5:
2583
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2198
2584
  "UserIdentityResponse", ""]);
2199
2585
  return [2, body];
2200
- case 4:
2201
- _j = exception_1.ApiException.bind;
2202
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2586
+ case 6:
2587
+ _o = exception_1.ApiException.bind;
2588
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2203
2589
  return [4, response.getBodyAsAny()];
2204
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2590
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2205
2591
  }
2206
2592
  });
2207
2593
  });
2208
2594
  };
2209
2595
  DefaultApiResponseProcessor.prototype.fetchUser = function (response) {
2210
2596
  return __awaiter(this, void 0, void 0, function () {
2211
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2212
- return __generator(this, function (_l) {
2213
- switch (_l.label) {
2597
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2598
+ return __generator(this, function (_u) {
2599
+ switch (_u.label) {
2214
2600
  case 0:
2215
2601
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2216
2602
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2218,32 +2604,50 @@ var DefaultApiResponseProcessor = (function () {
2218
2604
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2219
2605
  return [4, response.body.text()];
2220
2606
  case 1:
2221
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2607
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2222
2608
  "User", ""]);
2223
2609
  return [2, body];
2224
2610
  case 2:
2225
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2611
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2226
2612
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2227
2613
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2228
2614
  return [4, response.body.text()];
2229
2615
  case 3:
2230
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2616
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2617
+ "GenericError", ""]);
2618
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2619
+ case 4:
2620
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2621
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2622
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2623
+ return [4, response.body.text()];
2624
+ case 5:
2625
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2626
+ "RateLimiterError", ""]);
2627
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2628
+ case 6:
2629
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2630
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2631
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2632
+ return [4, response.body.text()];
2633
+ case 7:
2634
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2231
2635
  "User", ""]);
2232
2636
  return [2, body];
2233
- case 4:
2234
- _j = exception_1.ApiException.bind;
2235
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2637
+ case 8:
2638
+ _s = exception_1.ApiException.bind;
2639
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2236
2640
  return [4, response.getBodyAsAny()];
2237
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2641
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2238
2642
  }
2239
2643
  });
2240
2644
  });
2241
2645
  };
2242
2646
  DefaultApiResponseProcessor.prototype.fetchUserIdentity = function (response) {
2243
2647
  return __awaiter(this, void 0, void 0, function () {
2244
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2245
- return __generator(this, function (_l) {
2246
- switch (_l.label) {
2648
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2649
+ return __generator(this, function (_u) {
2650
+ switch (_u.label) {
2247
2651
  case 0:
2248
2652
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2249
2653
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2251,32 +2655,50 @@ var DefaultApiResponseProcessor = (function () {
2251
2655
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2252
2656
  return [4, response.body.text()];
2253
2657
  case 1:
2254
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2658
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2255
2659
  "InlineResponse200", ""]);
2256
2660
  return [2, body];
2257
2661
  case 2:
2258
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2662
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2259
2663
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2260
2664
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2261
2665
  return [4, response.body.text()];
2262
2666
  case 3:
2263
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2667
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2668
+ "GenericError", ""]);
2669
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2670
+ case 4:
2671
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2672
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2673
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2674
+ return [4, response.body.text()];
2675
+ case 5:
2676
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2677
+ "RateLimiterError", ""]);
2678
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2679
+ case 6:
2680
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2681
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2682
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2683
+ return [4, response.body.text()];
2684
+ case 7:
2685
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2264
2686
  "InlineResponse200", ""]);
2265
2687
  return [2, body];
2266
- case 4:
2267
- _j = exception_1.ApiException.bind;
2268
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2688
+ case 8:
2689
+ _s = exception_1.ApiException.bind;
2690
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2269
2691
  return [4, response.getBodyAsAny()];
2270
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2692
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2271
2693
  }
2272
2694
  });
2273
2695
  });
2274
2696
  };
2275
2697
  DefaultApiResponseProcessor.prototype.getApp = function (response) {
2276
2698
  return __awaiter(this, void 0, void 0, function () {
2277
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2278
- return __generator(this, function (_q) {
2279
- switch (_q.label) {
2699
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2700
+ return __generator(this, function (_u) {
2701
+ switch (_u.label) {
2280
2702
  case 0:
2281
2703
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2282
2704
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2284,7 +2706,7 @@ var DefaultApiResponseProcessor = (function () {
2284
2706
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2285
2707
  return [4, response.body.text()];
2286
2708
  case 1:
2287
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2709
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2288
2710
  "App", ""]);
2289
2711
  return [2, body];
2290
2712
  case 2:
@@ -2293,32 +2715,41 @@ var DefaultApiResponseProcessor = (function () {
2293
2715
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2294
2716
  return [4, response.body.text()];
2295
2717
  case 3:
2296
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2297
- "BadRequestError", ""]);
2718
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2719
+ "GenericError", ""]);
2298
2720
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2299
2721
  case 4:
2300
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2722
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2301
2723
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2302
2724
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2303
2725
  return [4, response.body.text()];
2304
2726
  case 5:
2305
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2727
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2728
+ "RateLimiterError", ""]);
2729
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2730
+ case 6:
2731
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2732
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2733
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2734
+ return [4, response.body.text()];
2735
+ case 7:
2736
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2306
2737
  "App", ""]);
2307
2738
  return [2, body];
2308
- case 6:
2309
- _o = exception_1.ApiException.bind;
2310
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2739
+ case 8:
2740
+ _s = exception_1.ApiException.bind;
2741
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2311
2742
  return [4, response.getBodyAsAny()];
2312
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2743
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2313
2744
  }
2314
2745
  });
2315
2746
  });
2316
2747
  };
2317
2748
  DefaultApiResponseProcessor.prototype.getApps = function (response) {
2318
2749
  return __awaiter(this, void 0, void 0, function () {
2319
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2320
- return __generator(this, function (_q) {
2321
- switch (_q.label) {
2750
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2751
+ return __generator(this, function (_u) {
2752
+ switch (_u.label) {
2322
2753
  case 0:
2323
2754
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2324
2755
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2326,7 +2757,7 @@ var DefaultApiResponseProcessor = (function () {
2326
2757
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2327
2758
  return [4, response.body.text()];
2328
2759
  case 1:
2329
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2760
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2330
2761
  "Array<App>", ""]);
2331
2762
  return [2, body];
2332
2763
  case 2:
@@ -2335,32 +2766,41 @@ var DefaultApiResponseProcessor = (function () {
2335
2766
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2336
2767
  return [4, response.body.text()];
2337
2768
  case 3:
2338
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2339
- "BadRequestError", ""]);
2769
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2770
+ "GenericError", ""]);
2340
2771
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2341
2772
  case 4:
2342
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2773
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2343
2774
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2344
2775
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2345
2776
  return [4, response.body.text()];
2346
2777
  case 5:
2347
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2778
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2779
+ "RateLimiterError", ""]);
2780
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2781
+ case 6:
2782
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2783
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2784
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2785
+ return [4, response.body.text()];
2786
+ case 7:
2787
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2348
2788
  "Array<App>", ""]);
2349
2789
  return [2, body];
2350
- case 6:
2351
- _o = exception_1.ApiException.bind;
2352
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2790
+ case 8:
2791
+ _s = exception_1.ApiException.bind;
2792
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2353
2793
  return [4, response.getBodyAsAny()];
2354
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2794
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2355
2795
  }
2356
2796
  });
2357
2797
  });
2358
2798
  };
2359
2799
  DefaultApiResponseProcessor.prototype.getEligibleIams = function (response) {
2360
2800
  return __awaiter(this, void 0, void 0, function () {
2361
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2362
- return __generator(this, function (_l) {
2363
- switch (_l.label) {
2801
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2802
+ return __generator(this, function (_u) {
2803
+ switch (_u.label) {
2364
2804
  case 0:
2365
2805
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2366
2806
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2368,32 +2808,50 @@ var DefaultApiResponseProcessor = (function () {
2368
2808
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2369
2809
  return [4, response.body.text()];
2370
2810
  case 1:
2371
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2811
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2372
2812
  "InlineResponse2003", ""]);
2373
2813
  return [2, body];
2374
2814
  case 2:
2375
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2815
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2376
2816
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2377
2817
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2378
2818
  return [4, response.body.text()];
2379
2819
  case 3:
2380
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2820
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2821
+ "GenericError", ""]);
2822
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2823
+ case 4:
2824
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2825
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2826
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2827
+ return [4, response.body.text()];
2828
+ case 5:
2829
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2830
+ "RateLimiterError", ""]);
2831
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2832
+ case 6:
2833
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2834
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2835
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2836
+ return [4, response.body.text()];
2837
+ case 7:
2838
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2381
2839
  "InlineResponse2003", ""]);
2382
2840
  return [2, body];
2383
- case 4:
2384
- _j = exception_1.ApiException.bind;
2385
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2841
+ case 8:
2842
+ _s = exception_1.ApiException.bind;
2843
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2386
2844
  return [4, response.getBodyAsAny()];
2387
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2845
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2388
2846
  }
2389
2847
  });
2390
2848
  });
2391
2849
  };
2392
2850
  DefaultApiResponseProcessor.prototype.getNotification = function (response) {
2393
2851
  return __awaiter(this, void 0, void 0, function () {
2394
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2395
- return __generator(this, function (_q) {
2396
- switch (_q.label) {
2852
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2853
+ return __generator(this, function (_u) {
2854
+ switch (_u.label) {
2397
2855
  case 0:
2398
2856
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2399
2857
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2401,7 +2859,7 @@ var DefaultApiResponseProcessor = (function () {
2401
2859
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2402
2860
  return [4, response.body.text()];
2403
2861
  case 1:
2404
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2862
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2405
2863
  "NotificationWithMeta", ""]);
2406
2864
  return [2, body];
2407
2865
  case 2:
@@ -2410,32 +2868,41 @@ var DefaultApiResponseProcessor = (function () {
2410
2868
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2411
2869
  return [4, response.body.text()];
2412
2870
  case 3:
2413
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2414
- "BadRequestError", ""]);
2871
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2872
+ "GenericError", ""]);
2415
2873
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2416
2874
  case 4:
2417
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2875
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2418
2876
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2419
2877
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2420
2878
  return [4, response.body.text()];
2421
2879
  case 5:
2422
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2880
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2881
+ "RateLimiterError", ""]);
2882
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2883
+ case 6:
2884
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2885
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2886
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2887
+ return [4, response.body.text()];
2888
+ case 7:
2889
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2423
2890
  "NotificationWithMeta", ""]);
2424
2891
  return [2, body];
2425
- case 6:
2426
- _o = exception_1.ApiException.bind;
2427
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2892
+ case 8:
2893
+ _s = exception_1.ApiException.bind;
2894
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2428
2895
  return [4, response.getBodyAsAny()];
2429
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2896
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2430
2897
  }
2431
2898
  });
2432
2899
  });
2433
2900
  };
2434
2901
  DefaultApiResponseProcessor.prototype.getNotificationHistory = function (response) {
2435
2902
  return __awaiter(this, void 0, void 0, function () {
2436
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2437
- return __generator(this, function (_q) {
2438
- switch (_q.label) {
2903
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2904
+ return __generator(this, function (_u) {
2905
+ switch (_u.label) {
2439
2906
  case 0:
2440
2907
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2441
2908
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2443,7 +2910,7 @@ var DefaultApiResponseProcessor = (function () {
2443
2910
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2444
2911
  return [4, response.body.text()];
2445
2912
  case 1:
2446
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2913
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2447
2914
  "NotificationHistorySuccessResponse", ""]);
2448
2915
  return [2, body];
2449
2916
  case 2:
@@ -2452,32 +2919,41 @@ var DefaultApiResponseProcessor = (function () {
2452
2919
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2453
2920
  return [4, response.body.text()];
2454
2921
  case 3:
2455
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2456
- "BadRequestError", ""]);
2922
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2923
+ "GenericError", ""]);
2457
2924
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2458
2925
  case 4:
2459
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2926
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2460
2927
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2461
2928
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2462
2929
  return [4, response.body.text()];
2463
2930
  case 5:
2464
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2931
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2932
+ "RateLimiterError", ""]);
2933
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2934
+ case 6:
2935
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2936
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2937
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2938
+ return [4, response.body.text()];
2939
+ case 7:
2940
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2465
2941
  "NotificationHistorySuccessResponse", ""]);
2466
2942
  return [2, body];
2467
- case 6:
2468
- _o = exception_1.ApiException.bind;
2469
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2943
+ case 8:
2944
+ _s = exception_1.ApiException.bind;
2945
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2470
2946
  return [4, response.getBodyAsAny()];
2471
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2947
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2472
2948
  }
2473
2949
  });
2474
2950
  });
2475
2951
  };
2476
2952
  DefaultApiResponseProcessor.prototype.getNotifications = function (response) {
2477
2953
  return __awaiter(this, void 0, void 0, function () {
2478
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2479
- return __generator(this, function (_q) {
2480
- switch (_q.label) {
2954
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2955
+ return __generator(this, function (_u) {
2956
+ switch (_u.label) {
2481
2957
  case 0:
2482
2958
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2483
2959
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2485,7 +2961,7 @@ var DefaultApiResponseProcessor = (function () {
2485
2961
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2486
2962
  return [4, response.body.text()];
2487
2963
  case 1:
2488
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2964
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2489
2965
  "NotificationSlice", ""]);
2490
2966
  return [2, body];
2491
2967
  case 2:
@@ -2494,32 +2970,41 @@ var DefaultApiResponseProcessor = (function () {
2494
2970
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2495
2971
  return [4, response.body.text()];
2496
2972
  case 3:
2497
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2498
- "BadRequestError", ""]);
2973
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2974
+ "GenericError", ""]);
2499
2975
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2500
2976
  case 4:
2501
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2977
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2502
2978
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2503
2979
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2504
2980
  return [4, response.body.text()];
2505
2981
  case 5:
2506
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2982
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2983
+ "RateLimiterError", ""]);
2984
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2985
+ case 6:
2986
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2987
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2988
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2989
+ return [4, response.body.text()];
2990
+ case 7:
2991
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2507
2992
  "NotificationSlice", ""]);
2508
2993
  return [2, body];
2509
- case 6:
2510
- _o = exception_1.ApiException.bind;
2511
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2994
+ case 8:
2995
+ _s = exception_1.ApiException.bind;
2996
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2512
2997
  return [4, response.getBodyAsAny()];
2513
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2998
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2514
2999
  }
2515
3000
  });
2516
3001
  });
2517
3002
  };
2518
3003
  DefaultApiResponseProcessor.prototype.getOutcomes = function (response) {
2519
3004
  return __awaiter(this, void 0, void 0, function () {
2520
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2521
- return __generator(this, function (_q) {
2522
- switch (_q.label) {
3005
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
3006
+ return __generator(this, function (_u) {
3007
+ switch (_u.label) {
2523
3008
  case 0:
2524
3009
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2525
3010
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2527,7 +3012,7 @@ var DefaultApiResponseProcessor = (function () {
2527
3012
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2528
3013
  return [4, response.body.text()];
2529
3014
  case 1:
2530
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
3015
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2531
3016
  "OutcomesData", ""]);
2532
3017
  return [2, body];
2533
3018
  case 2:
@@ -2536,32 +3021,41 @@ var DefaultApiResponseProcessor = (function () {
2536
3021
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2537
3022
  return [4, response.body.text()];
2538
3023
  case 3:
2539
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2540
- "BadRequestError", ""]);
3024
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
3025
+ "GenericError", ""]);
2541
3026
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2542
3027
  case 4:
2543
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
3028
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2544
3029
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2545
3030
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2546
3031
  return [4, response.body.text()];
2547
3032
  case 5:
2548
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
3033
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
3034
+ "RateLimiterError", ""]);
3035
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3036
+ case 6:
3037
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
3038
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3039
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3040
+ return [4, response.body.text()];
3041
+ case 7:
3042
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2549
3043
  "OutcomesData", ""]);
2550
3044
  return [2, body];
2551
- case 6:
2552
- _o = exception_1.ApiException.bind;
2553
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3045
+ case 8:
3046
+ _s = exception_1.ApiException.bind;
3047
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2554
3048
  return [4, response.getBodyAsAny()];
2555
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
3049
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2556
3050
  }
2557
3051
  });
2558
3052
  });
2559
3053
  };
2560
3054
  DefaultApiResponseProcessor.prototype.getPlayer = function (response) {
2561
3055
  return __awaiter(this, void 0, void 0, function () {
2562
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2563
- return __generator(this, function (_q) {
2564
- switch (_q.label) {
3056
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
3057
+ return __generator(this, function (_u) {
3058
+ switch (_u.label) {
2565
3059
  case 0:
2566
3060
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2567
3061
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2569,7 +3063,7 @@ var DefaultApiResponseProcessor = (function () {
2569
3063
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2570
3064
  return [4, response.body.text()];
2571
3065
  case 1:
2572
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
3066
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2573
3067
  "Player", ""]);
2574
3068
  return [2, body];
2575
3069
  case 2:
@@ -2578,32 +3072,41 @@ var DefaultApiResponseProcessor = (function () {
2578
3072
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2579
3073
  return [4, response.body.text()];
2580
3074
  case 3:
2581
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2582
- "BadRequestError", ""]);
3075
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
3076
+ "GenericError", ""]);
2583
3077
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2584
3078
  case 4:
2585
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
3079
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2586
3080
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2587
3081
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2588
3082
  return [4, response.body.text()];
2589
3083
  case 5:
2590
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
3084
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
3085
+ "RateLimiterError", ""]);
3086
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3087
+ case 6:
3088
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
3089
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3090
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3091
+ return [4, response.body.text()];
3092
+ case 7:
3093
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2591
3094
  "Player", ""]);
2592
3095
  return [2, body];
2593
- case 6:
2594
- _o = exception_1.ApiException.bind;
2595
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3096
+ case 8:
3097
+ _s = exception_1.ApiException.bind;
3098
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2596
3099
  return [4, response.getBodyAsAny()];
2597
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
3100
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2598
3101
  }
2599
3102
  });
2600
3103
  });
2601
3104
  };
2602
3105
  DefaultApiResponseProcessor.prototype.getPlayers = function (response) {
2603
3106
  return __awaiter(this, void 0, void 0, function () {
2604
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2605
- return __generator(this, function (_q) {
2606
- switch (_q.label) {
3107
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
3108
+ return __generator(this, function (_u) {
3109
+ switch (_u.label) {
2607
3110
  case 0:
2608
3111
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2609
3112
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2611,7 +3114,7 @@ var DefaultApiResponseProcessor = (function () {
2611
3114
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2612
3115
  return [4, response.body.text()];
2613
3116
  case 1:
2614
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
3117
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2615
3118
  "PlayerSlice", ""]);
2616
3119
  return [2, body];
2617
3120
  case 2:
@@ -2620,32 +3123,41 @@ var DefaultApiResponseProcessor = (function () {
2620
3123
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2621
3124
  return [4, response.body.text()];
2622
3125
  case 3:
2623
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2624
- "BadRequestError", ""]);
3126
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
3127
+ "GenericError", ""]);
2625
3128
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2626
3129
  case 4:
2627
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
3130
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2628
3131
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2629
3132
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2630
3133
  return [4, response.body.text()];
2631
3134
  case 5:
2632
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
3135
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
3136
+ "RateLimiterError", ""]);
3137
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3138
+ case 6:
3139
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
3140
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3141
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3142
+ return [4, response.body.text()];
3143
+ case 7:
3144
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2633
3145
  "PlayerSlice", ""]);
2634
3146
  return [2, body];
2635
- case 6:
2636
- _o = exception_1.ApiException.bind;
2637
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3147
+ case 8:
3148
+ _s = exception_1.ApiException.bind;
3149
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2638
3150
  return [4, response.getBodyAsAny()];
2639
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
3151
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2640
3152
  }
2641
3153
  });
2642
3154
  });
2643
3155
  };
2644
3156
  DefaultApiResponseProcessor.prototype.identifyUserByAlias = function (response) {
2645
3157
  return __awaiter(this, void 0, void 0, function () {
2646
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2647
- return __generator(this, function (_q) {
2648
- switch (_q.label) {
3158
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
3159
+ return __generator(this, function (_y) {
3160
+ switch (_y.label) {
2649
3161
  case 0:
2650
3162
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2651
3163
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2653,41 +3165,59 @@ var DefaultApiResponseProcessor = (function () {
2653
3165
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2654
3166
  return [4, response.body.text()];
2655
3167
  case 1:
2656
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
3168
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2657
3169
  "InlineResponse200", ""]);
2658
3170
  return [2, body];
2659
3171
  case 2:
2660
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
3172
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2661
3173
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2662
3174
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2663
3175
  return [4, response.body.text()];
2664
3176
  case 3:
2665
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2666
- "IdentifyUserConflictResponse", ""]);
2667
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
3177
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
3178
+ "GenericError", ""]);
3179
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2668
3180
  case 4:
2669
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
3181
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
2670
3182
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2671
3183
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2672
3184
  return [4, response.body.text()];
2673
3185
  case 5:
2674
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
3186
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
3187
+ "GenericError", ""]);
3188
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
3189
+ case 6:
3190
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
3191
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3192
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3193
+ return [4, response.body.text()];
3194
+ case 7:
3195
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3196
+ "RateLimiterError", ""]);
3197
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3198
+ case 8:
3199
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
3200
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
3201
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
3202
+ return [4, response.body.text()];
3203
+ case 9:
3204
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2675
3205
  "InlineResponse200", ""]);
2676
3206
  return [2, body];
2677
- case 6:
2678
- _o = exception_1.ApiException.bind;
2679
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3207
+ case 10:
3208
+ _w = exception_1.ApiException.bind;
3209
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2680
3210
  return [4, response.getBodyAsAny()];
2681
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
3211
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2682
3212
  }
2683
3213
  });
2684
3214
  });
2685
3215
  };
2686
3216
  DefaultApiResponseProcessor.prototype.identifyUserBySubscriptionId = function (response) {
2687
3217
  return __awaiter(this, void 0, void 0, function () {
2688
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2689
- return __generator(this, function (_q) {
2690
- switch (_q.label) {
3218
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
3219
+ return __generator(this, function (_y) {
3220
+ switch (_y.label) {
2691
3221
  case 0:
2692
3222
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2693
3223
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2695,41 +3225,59 @@ var DefaultApiResponseProcessor = (function () {
2695
3225
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2696
3226
  return [4, response.body.text()];
2697
3227
  case 1:
2698
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
3228
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2699
3229
  "UserIdentityResponse", ""]);
2700
3230
  return [2, body];
2701
3231
  case 2:
2702
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
3232
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2703
3233
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2704
3234
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2705
3235
  return [4, response.body.text()];
2706
3236
  case 3:
2707
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2708
- "IdentifyUserConflictResponse", ""]);
2709
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
3237
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
3238
+ "GenericError", ""]);
3239
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2710
3240
  case 4:
2711
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
3241
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
2712
3242
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2713
3243
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2714
3244
  return [4, response.body.text()];
2715
3245
  case 5:
2716
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
3246
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
3247
+ "GenericError", ""]);
3248
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
3249
+ case 6:
3250
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
3251
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3252
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3253
+ return [4, response.body.text()];
3254
+ case 7:
3255
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3256
+ "RateLimiterError", ""]);
3257
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3258
+ case 8:
3259
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
3260
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
3261
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
3262
+ return [4, response.body.text()];
3263
+ case 9:
3264
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2717
3265
  "UserIdentityResponse", ""]);
2718
3266
  return [2, body];
2719
- case 6:
2720
- _o = exception_1.ApiException.bind;
2721
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3267
+ case 10:
3268
+ _w = exception_1.ApiException.bind;
3269
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2722
3270
  return [4, response.getBodyAsAny()];
2723
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
3271
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2724
3272
  }
2725
3273
  });
2726
3274
  });
2727
3275
  };
2728
3276
  DefaultApiResponseProcessor.prototype.transferSubscription = function (response) {
2729
3277
  return __awaiter(this, void 0, void 0, function () {
2730
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2731
- return __generator(this, function (_l) {
2732
- switch (_l.label) {
3278
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
3279
+ return __generator(this, function (_y) {
3280
+ switch (_y.label) {
2733
3281
  case 0:
2734
3282
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2735
3283
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2737,32 +3285,59 @@ var DefaultApiResponseProcessor = (function () {
2737
3285
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2738
3286
  return [4, response.body.text()];
2739
3287
  case 1:
2740
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
3288
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2741
3289
  "UserIdentityResponse", ""]);
2742
3290
  return [2, body];
2743
3291
  case 2:
2744
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
3292
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2745
3293
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2746
3294
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2747
3295
  return [4, response.body.text()];
2748
3296
  case 3:
2749
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
3297
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
3298
+ "GenericError", ""]);
3299
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
3300
+ case 4:
3301
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
3302
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
3303
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
3304
+ return [4, response.body.text()];
3305
+ case 5:
3306
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
3307
+ "GenericError", ""]);
3308
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
3309
+ case 6:
3310
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
3311
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3312
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3313
+ return [4, response.body.text()];
3314
+ case 7:
3315
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3316
+ "RateLimiterError", ""]);
3317
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3318
+ case 8:
3319
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
3320
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
3321
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
3322
+ return [4, response.body.text()];
3323
+ case 9:
3324
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2750
3325
  "UserIdentityResponse", ""]);
2751
3326
  return [2, body];
2752
- case 4:
2753
- _j = exception_1.ApiException.bind;
2754
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3327
+ case 10:
3328
+ _w = exception_1.ApiException.bind;
3329
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2755
3330
  return [4, response.getBodyAsAny()];
2756
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
3331
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2757
3332
  }
2758
3333
  });
2759
3334
  });
2760
3335
  };
2761
3336
  DefaultApiResponseProcessor.prototype.updateApp = function (response) {
2762
3337
  return __awaiter(this, void 0, void 0, function () {
2763
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2764
- return __generator(this, function (_q) {
2765
- switch (_q.label) {
3338
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
3339
+ return __generator(this, function (_u) {
3340
+ switch (_u.label) {
2766
3341
  case 0:
2767
3342
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2768
3343
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2770,7 +3345,7 @@ var DefaultApiResponseProcessor = (function () {
2770
3345
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2771
3346
  return [4, response.body.text()];
2772
3347
  case 1:
2773
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
3348
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2774
3349
  "App", ""]);
2775
3350
  return [2, body];
2776
3351
  case 2:
@@ -2779,32 +3354,41 @@ var DefaultApiResponseProcessor = (function () {
2779
3354
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2780
3355
  return [4, response.body.text()];
2781
3356
  case 3:
2782
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2783
- "BadRequestError", ""]);
3357
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
3358
+ "GenericError", ""]);
2784
3359
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2785
3360
  case 4:
2786
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
3361
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2787
3362
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2788
3363
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2789
3364
  return [4, response.body.text()];
2790
3365
  case 5:
2791
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
3366
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
3367
+ "RateLimiterError", ""]);
3368
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3369
+ case 6:
3370
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
3371
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3372
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3373
+ return [4, response.body.text()];
3374
+ case 7:
3375
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2792
3376
  "App", ""]);
2793
3377
  return [2, body];
2794
- case 6:
2795
- _o = exception_1.ApiException.bind;
2796
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3378
+ case 8:
3379
+ _s = exception_1.ApiException.bind;
3380
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2797
3381
  return [4, response.getBodyAsAny()];
2798
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
3382
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2799
3383
  }
2800
3384
  });
2801
3385
  });
2802
3386
  };
2803
3387
  DefaultApiResponseProcessor.prototype.updateLiveActivity = function (response) {
2804
3388
  return __awaiter(this, void 0, void 0, function () {
2805
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2806
- return __generator(this, function (_q) {
2807
- switch (_q.label) {
3389
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
3390
+ return __generator(this, function (_u) {
3391
+ switch (_u.label) {
2808
3392
  case 0:
2809
3393
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2810
3394
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2812,7 +3396,7 @@ var DefaultApiResponseProcessor = (function () {
2812
3396
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2813
3397
  return [4, response.body.text()];
2814
3398
  case 1:
2815
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
3399
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2816
3400
  "UpdateLiveActivitySuccessResponse", ""]);
2817
3401
  return [2, body];
2818
3402
  case 2:
@@ -2821,32 +3405,41 @@ var DefaultApiResponseProcessor = (function () {
2821
3405
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2822
3406
  return [4, response.body.text()];
2823
3407
  case 3:
2824
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2825
- "BadRequestError", ""]);
3408
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
3409
+ "GenericError", ""]);
2826
3410
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2827
3411
  case 4:
2828
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
3412
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2829
3413
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2830
3414
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2831
3415
  return [4, response.body.text()];
2832
3416
  case 5:
2833
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
3417
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
3418
+ "RateLimiterError", ""]);
3419
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3420
+ case 6:
3421
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
3422
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3423
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3424
+ return [4, response.body.text()];
3425
+ case 7:
3426
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2834
3427
  "UpdateLiveActivitySuccessResponse", ""]);
2835
3428
  return [2, body];
2836
- case 6:
2837
- _o = exception_1.ApiException.bind;
2838
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3429
+ case 8:
3430
+ _s = exception_1.ApiException.bind;
3431
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2839
3432
  return [4, response.getBodyAsAny()];
2840
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
3433
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2841
3434
  }
2842
3435
  });
2843
3436
  });
2844
3437
  };
2845
3438
  DefaultApiResponseProcessor.prototype.updatePlayer = function (response) {
2846
3439
  return __awaiter(this, void 0, void 0, function () {
2847
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2848
- return __generator(this, function (_q) {
2849
- switch (_q.label) {
3440
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
3441
+ return __generator(this, function (_y) {
3442
+ switch (_y.label) {
2850
3443
  case 0:
2851
3444
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2852
3445
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2854,7 +3447,7 @@ var DefaultApiResponseProcessor = (function () {
2854
3447
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2855
3448
  return [4, response.body.text()];
2856
3449
  case 1:
2857
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
3450
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2858
3451
  "UpdatePlayerSuccessResponse", ""]);
2859
3452
  return [2, body];
2860
3453
  case 2:
@@ -2863,32 +3456,50 @@ var DefaultApiResponseProcessor = (function () {
2863
3456
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2864
3457
  return [4, response.body.text()];
2865
3458
  case 3:
2866
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2867
- "BadRequestError", ""]);
3459
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
3460
+ "GenericError", ""]);
2868
3461
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2869
3462
  case 4:
2870
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
3463
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
2871
3464
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2872
3465
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2873
3466
  return [4, response.body.text()];
2874
3467
  case 5:
2875
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
3468
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
3469
+ "GenericError", ""]);
3470
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
3471
+ case 6:
3472
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
3473
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3474
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3475
+ return [4, response.body.text()];
3476
+ case 7:
3477
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3478
+ "RateLimiterError", ""]);
3479
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3480
+ case 8:
3481
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
3482
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
3483
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
3484
+ return [4, response.body.text()];
3485
+ case 9:
3486
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2876
3487
  "UpdatePlayerSuccessResponse", ""]);
2877
3488
  return [2, body];
2878
- case 6:
2879
- _o = exception_1.ApiException.bind;
2880
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3489
+ case 10:
3490
+ _w = exception_1.ApiException.bind;
3491
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2881
3492
  return [4, response.getBodyAsAny()];
2882
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
3493
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2883
3494
  }
2884
3495
  });
2885
3496
  });
2886
3497
  };
2887
3498
  DefaultApiResponseProcessor.prototype.updatePlayerTags = function (response) {
2888
3499
  return __awaiter(this, void 0, void 0, function () {
2889
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2890
- return __generator(this, function (_l) {
2891
- switch (_l.label) {
3500
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
3501
+ return __generator(this, function (_y) {
3502
+ switch (_y.label) {
2892
3503
  case 0:
2893
3504
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2894
3505
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2896,59 +3507,113 @@ var DefaultApiResponseProcessor = (function () {
2896
3507
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2897
3508
  return [4, response.body.text()];
2898
3509
  case 1:
2899
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
3510
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2900
3511
  "UpdatePlayerTagsSuccessResponse", ""]);
2901
3512
  return [2, body];
2902
3513
  case 2:
2903
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
3514
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2904
3515
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2905
3516
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2906
3517
  return [4, response.body.text()];
2907
3518
  case 3:
2908
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
3519
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
3520
+ "GenericError", ""]);
3521
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
3522
+ case 4:
3523
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
3524
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
3525
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
3526
+ return [4, response.body.text()];
3527
+ case 5:
3528
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
3529
+ "GenericError", ""]);
3530
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
3531
+ case 6:
3532
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
3533
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3534
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3535
+ return [4, response.body.text()];
3536
+ case 7:
3537
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3538
+ "RateLimiterError", ""]);
3539
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3540
+ case 8:
3541
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
3542
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
3543
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
3544
+ return [4, response.body.text()];
3545
+ case 9:
3546
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2909
3547
  "UpdatePlayerTagsSuccessResponse", ""]);
2910
3548
  return [2, body];
2911
- case 4:
2912
- _j = exception_1.ApiException.bind;
2913
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3549
+ case 10:
3550
+ _w = exception_1.ApiException.bind;
3551
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2914
3552
  return [4, response.getBodyAsAny()];
2915
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
3553
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2916
3554
  }
2917
3555
  });
2918
3556
  });
2919
3557
  };
2920
3558
  DefaultApiResponseProcessor.prototype.updateSubscription = function (response) {
2921
3559
  return __awaiter(this, void 0, void 0, function () {
2922
- var contentType, body, _a, _b, _c, _d, _e, _f;
2923
- return __generator(this, function (_g) {
2924
- switch (_g.label) {
3560
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
3561
+ return __generator(this, function (_u) {
3562
+ switch (_u.label) {
2925
3563
  case 0:
2926
3564
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2927
3565
  if ((0, util_1.isCodeInRange)("202", response.httpStatusCode)) {
2928
3566
  return [2];
2929
3567
  }
2930
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
3568
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
2931
3569
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2932
3570
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2933
3571
  return [4, response.body.text()];
2934
3572
  case 1:
2935
- body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
3573
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
3574
+ "GenericError", ""]);
3575
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
3576
+ case 2:
3577
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
3578
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
3579
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
3580
+ return [4, response.body.text()];
3581
+ case 3:
3582
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
3583
+ "GenericError", ""]);
3584
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
3585
+ case 4:
3586
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
3587
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
3588
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
3589
+ return [4, response.body.text()];
3590
+ case 5:
3591
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
3592
+ "RateLimiterError", ""]);
3593
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3594
+ case 6:
3595
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
3596
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3597
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3598
+ return [4, response.body.text()];
3599
+ case 7:
3600
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2936
3601
  "void", ""]);
2937
3602
  return [2, body];
2938
- case 2:
2939
- _e = exception_1.ApiException.bind;
2940
- _f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3603
+ case 8:
3604
+ _s = exception_1.ApiException.bind;
3605
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2941
3606
  return [4, response.getBodyAsAny()];
2942
- case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
3607
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2943
3608
  }
2944
3609
  });
2945
3610
  });
2946
3611
  };
2947
3612
  DefaultApiResponseProcessor.prototype.updateUser = function (response) {
2948
3613
  return __awaiter(this, void 0, void 0, function () {
2949
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2950
- return __generator(this, function (_l) {
2951
- switch (_l.label) {
3614
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
3615
+ return __generator(this, function (_y) {
3616
+ switch (_y.label) {
2952
3617
  case 0:
2953
3618
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2954
3619
  if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 2];
@@ -2956,23 +3621,50 @@ var DefaultApiResponseProcessor = (function () {
2956
3621
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2957
3622
  return [4, response.body.text()];
2958
3623
  case 1:
2959
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
3624
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2960
3625
  "InlineResponse202", ""]);
2961
3626
  return [2, body];
2962
3627
  case 2:
2963
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
3628
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2964
3629
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2965
3630
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2966
3631
  return [4, response.body.text()];
2967
3632
  case 3:
2968
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
3633
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
3634
+ "GenericError", ""]);
3635
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
3636
+ case 4:
3637
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
3638
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
3639
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
3640
+ return [4, response.body.text()];
3641
+ case 5:
3642
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
3643
+ "GenericError", ""]);
3644
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
3645
+ case 6:
3646
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
3647
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3648
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3649
+ return [4, response.body.text()];
3650
+ case 7:
3651
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3652
+ "RateLimiterError", ""]);
3653
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3654
+ case 8:
3655
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
3656
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
3657
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
3658
+ return [4, response.body.text()];
3659
+ case 9:
3660
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2969
3661
  "InlineResponse202", ""]);
2970
3662
  return [2, body];
2971
- case 4:
2972
- _j = exception_1.ApiException.bind;
2973
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3663
+ case 10:
3664
+ _w = exception_1.ApiException.bind;
3665
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2974
3666
  return [4, response.getBodyAsAny()];
2975
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
3667
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2976
3668
  }
2977
3669
  });
2978
3670
  });