@onesignal/node-onesignal 2.0.1-beta1 → 5.0.0-alpha-01

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 (308) hide show
  1. package/DefaultApi.md +452 -707
  2. package/apis/DefaultApi.ts +998 -1004
  3. package/auth/auth.ts +14 -14
  4. package/configuration.ts +6 -6
  5. package/dist/apis/DefaultApi.d.ts +39 -63
  6. package/dist/apis/DefaultApi.js +1149 -1022
  7. package/dist/apis/DefaultApi.js.map +1 -1
  8. package/dist/auth/auth.d.ts +6 -6
  9. package/dist/auth/auth.js +19 -19
  10. package/dist/auth/auth.js.map +1 -1
  11. package/dist/configuration.d.ts +2 -2
  12. package/dist/configuration.js +4 -4
  13. package/dist/configuration.js.map +1 -1
  14. package/dist/models/BasicNotification.d.ts +14 -12
  15. package/dist/models/BasicNotification.js +20 -20
  16. package/dist/models/BasicNotification.js.map +1 -1
  17. package/dist/models/BasicNotificationAllOf.d.ts +10 -8
  18. package/dist/models/BasicNotificationAllOf.js +17 -11
  19. package/dist/models/BasicNotificationAllOf.js.map +1 -1
  20. package/dist/models/CreateNotificationSuccessResponse.d.ts +1 -3
  21. package/dist/models/CreateNotificationSuccessResponse.js +1 -7
  22. package/dist/models/CreateNotificationSuccessResponse.js.map +1 -1
  23. package/dist/models/{ExportPlayersSuccessResponse.d.ts → ExportEventsSuccessResponse.d.ts} +1 -1
  24. package/dist/models/ExportEventsSuccessResponse.js +22 -0
  25. package/dist/models/ExportEventsSuccessResponse.js.map +1 -0
  26. package/dist/models/{ExportPlayersRequestBody.d.ts → ExportSubscriptionsRequestBody.d.ts} +1 -1
  27. package/dist/models/ExportSubscriptionsRequestBody.js +34 -0
  28. package/dist/models/ExportSubscriptionsRequestBody.js.map +1 -0
  29. package/dist/models/{DeletePlayerNotFoundResponse.d.ts → ExportSubscriptionsSuccessResponse.d.ts} +2 -2
  30. package/dist/models/ExportSubscriptionsSuccessResponse.js +22 -0
  31. package/dist/models/ExportSubscriptionsSuccessResponse.js.map +1 -0
  32. package/dist/models/Filter.d.ts +6 -2
  33. package/dist/models/Filter.js +24 -0
  34. package/dist/models/Filter.js.map +1 -1
  35. package/dist/models/FilterExpression.d.ts +27 -0
  36. package/dist/models/FilterExpression.js +70 -0
  37. package/dist/models/FilterExpression.js.map +1 -0
  38. package/dist/models/{CancelNotificationSuccessResponse.d.ts → GenericError.d.ts} +3 -1
  39. package/dist/models/GenericError.js +34 -0
  40. package/dist/models/GenericError.js.map +1 -0
  41. package/dist/models/{IdentifyUserConflictResponseErrorsInner.d.ts → GenericErrorErrorsInner.d.ts} +1 -1
  42. package/dist/models/GenericErrorErrorsInner.js +28 -0
  43. package/dist/models/GenericErrorErrorsInner.js.map +1 -0
  44. package/dist/models/{DeletePlayerSuccessResponse.d.ts → GenericSuccessBoolResponse.d.ts} +1 -1
  45. package/dist/models/GenericSuccessBoolResponse.js +22 -0
  46. package/dist/models/GenericSuccessBoolResponse.js.map +1 -0
  47. package/dist/models/{GetNotificationRequestBody.d.ts → GetNotificationHistoryRequestBody.d.ts} +3 -3
  48. package/dist/models/GetNotificationHistoryRequestBody.js +34 -0
  49. package/dist/models/GetNotificationHistoryRequestBody.js.map +1 -0
  50. package/dist/models/{PlayerSlice.d.ts → GetSegmentsSuccessResponse.d.ts} +3 -3
  51. package/dist/models/GetSegmentsSuccessResponse.js +40 -0
  52. package/dist/models/GetSegmentsSuccessResponse.js.map +1 -0
  53. package/dist/models/InvalidIdentifierError.d.ts +1 -1
  54. package/dist/models/InvalidIdentifierError.js +2 -2
  55. package/dist/models/InvalidIdentifierError.js.map +1 -1
  56. package/dist/models/{StringMap.d.ts → LanguageStringMap.d.ts} +1 -1
  57. package/dist/models/{StringMap.js → LanguageStringMap.js} +10 -10
  58. package/dist/models/LanguageStringMap.js.map +1 -0
  59. package/dist/models/Notification.d.ts +14 -12
  60. package/dist/models/Notification.js +20 -20
  61. package/dist/models/Notification.js.map +1 -1
  62. package/dist/models/NotificationTarget.d.ts +4 -4
  63. package/dist/models/NotificationTarget.js +3 -9
  64. package/dist/models/NotificationTarget.js.map +1 -1
  65. package/dist/models/NotificationWithMeta.d.ts +14 -12
  66. package/dist/models/NotificationWithMeta.js +20 -20
  67. package/dist/models/NotificationWithMeta.js.map +1 -1
  68. package/dist/models/ObjectSerializer.d.ts +17 -33
  69. package/dist/models/ObjectSerializer.js +56 -105
  70. package/dist/models/ObjectSerializer.js.map +1 -1
  71. package/dist/models/{InlineResponse202.d.ts → PropertiesBody.d.ts} +1 -1
  72. package/dist/models/PropertiesBody.js +22 -0
  73. package/dist/models/PropertiesBody.js.map +1 -0
  74. package/dist/models/{BadRequestError.d.ts → RateLimitError.d.ts} +2 -1
  75. package/dist/models/RateLimitError.js +28 -0
  76. package/dist/models/RateLimitError.js.map +1 -0
  77. package/dist/models/RateLimiterError.d.ts +18 -0
  78. package/dist/models/RateLimiterError.js +22 -0
  79. package/dist/models/RateLimiterError.js.map +1 -0
  80. package/dist/models/Segment.d.ts +2 -2
  81. package/dist/models/Segment.js +1 -1
  82. package/dist/models/Segment.js.map +1 -1
  83. package/dist/models/{CreatePlayerSuccessResponse.d.ts → SegmentData.d.ts} +7 -2
  84. package/dist/models/SegmentData.js +58 -0
  85. package/dist/models/SegmentData.js.map +1 -0
  86. package/dist/models/{SubscriptionObject.d.ts → Subscription.d.ts} +3 -3
  87. package/dist/models/{SubscriptionObject.js → Subscription.js} +11 -11
  88. package/dist/models/Subscription.js.map +1 -0
  89. package/dist/models/{BeginLiveActivityRequest.d.ts → SubscriptionBody.d.ts} +3 -3
  90. package/dist/models/SubscriptionBody.js +22 -0
  91. package/dist/models/SubscriptionBody.js.map +1 -0
  92. package/dist/models/{PlayerNotificationTarget.d.ts → SubscriptionNotificationTarget.d.ts} +7 -7
  93. package/dist/models/{PlayerNotificationTarget.js → SubscriptionNotificationTarget.js} +14 -20
  94. package/dist/models/SubscriptionNotificationTarget.js.map +1 -0
  95. package/dist/models/TransferSubscriptionRequestBody.d.ts +1 -1
  96. package/dist/models/TransferSubscriptionRequestBody.js +1 -1
  97. package/dist/models/TransferSubscriptionRequestBody.js.map +1 -1
  98. package/dist/models/UpdateLiveActivityRequest.d.ts +8 -3
  99. package/dist/models/UpdateLiveActivityRequest.js +33 -3
  100. package/dist/models/UpdateLiveActivityRequest.js.map +1 -1
  101. package/dist/models/UpdateLiveActivitySuccessResponse.d.ts +1 -3
  102. package/dist/models/UpdateLiveActivitySuccessResponse.js +2 -8
  103. package/dist/models/UpdateLiveActivitySuccessResponse.js.map +1 -1
  104. package/dist/models/User.d.ts +3 -5
  105. package/dist/models/User.js +2 -8
  106. package/dist/models/User.js.map +1 -1
  107. package/dist/models/{InlineResponse200.d.ts → UserIdentityBody.d.ts} +2 -2
  108. package/dist/models/UserIdentityBody.js +22 -0
  109. package/dist/models/UserIdentityBody.js.map +1 -0
  110. package/dist/models/{CreateNotificationBadRequestResponse.d.ts → WebButton.d.ts} +5 -2
  111. package/dist/models/WebButton.js +40 -0
  112. package/dist/models/WebButton.js.map +1 -0
  113. package/dist/models/all.d.ts +17 -33
  114. package/dist/models/all.js +17 -33
  115. package/dist/models/all.js.map +1 -1
  116. package/dist/servers.js +1 -1
  117. package/dist/servers.js.map +1 -1
  118. package/dist/types/ObjectParamAPI.d.ts +56 -100
  119. package/dist/types/ObjectParamAPI.js +28 -46
  120. package/dist/types/ObjectParamAPI.js.map +1 -1
  121. package/dist/types/ObservableAPI.d.ts +27 -45
  122. package/dist/types/ObservableAPI.js +82 -226
  123. package/dist/types/ObservableAPI.js.map +1 -1
  124. package/dist/types/PromiseAPI.d.ts +27 -45
  125. package/dist/types/PromiseAPI.js +34 -58
  126. package/dist/types/PromiseAPI.js.map +1 -1
  127. package/models/App.ts +1 -1
  128. package/models/BasicNotification.ts +49 -46
  129. package/models/BasicNotificationAllOf.ts +34 -23
  130. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
  131. package/models/Button.ts +1 -1
  132. package/models/CreateNotificationSuccessResponse.ts +5 -13
  133. package/models/CreateSegmentConflictResponse.ts +1 -1
  134. package/models/CreateSegmentSuccessResponse.ts +1 -1
  135. package/models/CreateUserConflictResponse.ts +1 -1
  136. package/models/CreateUserConflictResponseErrorsInner.ts +1 -1
  137. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +1 -1
  138. package/models/DeliveryData.ts +1 -1
  139. package/models/{ExportPlayersSuccessResponse.ts → ExportEventsSuccessResponse.ts} +3 -3
  140. package/models/{ExportPlayersRequestBody.ts → ExportSubscriptionsRequestBody.ts} +3 -3
  141. package/models/{CancelNotificationSuccessResponse.ts → ExportSubscriptionsSuccessResponse.ts} +7 -7
  142. package/models/Filter.ts +45 -5
  143. package/models/FilterExpression.ts +120 -0
  144. package/models/{CreateSegmentBadRequestResponse.ts → GenericError.ts} +14 -7
  145. package/models/{IdentifyUserConflictResponseErrorsInner.ts → GenericErrorErrorsInner.ts} +3 -3
  146. package/models/{DeletePlayerNotFoundResponse.ts → GenericSuccessBoolResponse.ts} +3 -3
  147. package/models/{GetNotificationRequestBody.ts → GetNotificationHistoryRequestBody.ts} +6 -6
  148. package/models/{PlayerSlice.ts → GetSegmentsSuccessResponse.ts} +20 -8
  149. package/models/InvalidIdentifierError.ts +6 -6
  150. package/models/{StringMap.ts → LanguageStringMap.ts} +3 -3
  151. package/models/Notification.ts +49 -46
  152. package/models/NotificationAllOf.ts +1 -1
  153. package/models/NotificationHistorySuccessResponse.ts +1 -1
  154. package/models/NotificationSlice.ts +1 -1
  155. package/models/NotificationTarget.ts +17 -25
  156. package/models/NotificationWithMeta.ts +49 -46
  157. package/models/NotificationWithMetaAllOf.ts +1 -1
  158. package/models/ObjectSerializer.ts +63 -112
  159. package/models/Operator.ts +1 -1
  160. package/models/OutcomeData.ts +1 -1
  161. package/models/OutcomesData.ts +1 -1
  162. package/models/PlatformDeliveryData.ts +1 -1
  163. package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
  164. package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
  165. package/models/{InlineResponse202.ts → PropertiesBody.ts} +3 -3
  166. package/models/PropertiesDeltas.ts +1 -1
  167. package/models/PropertiesObject.ts +1 -1
  168. package/models/Purchase.ts +1 -1
  169. package/models/{NotificationHistoryBadRequestResponse.ts → RateLimitError.ts} +10 -10
  170. package/models/{BadRequestError.ts → RateLimiterError.ts} +6 -5
  171. package/models/Segment.ts +4 -4
  172. package/models/SegmentData.ts +94 -0
  173. package/models/SegmentNotificationTarget.ts +1 -1
  174. package/models/{SubscriptionObject.ts → Subscription.ts} +6 -6
  175. package/models/{InlineResponse201.ts → SubscriptionBody.ts} +6 -6
  176. package/models/{PlayerNotificationTarget.ts → SubscriptionNotificationTarget.ts} +21 -29
  177. package/models/TransferSubscriptionRequestBody.ts +3 -3
  178. package/models/UpdateLiveActivityRequest.ts +56 -9
  179. package/models/UpdateLiveActivitySuccessResponse.ts +4 -12
  180. package/models/UpdateUserRequest.ts +1 -1
  181. package/models/User.ts +6 -14
  182. package/models/{InlineResponse200.ts → UserIdentityBody.ts} +5 -5
  183. package/models/{CreatePlayerSuccessResponse.ts → WebButton.ts} +24 -10
  184. package/models/all.ts +17 -33
  185. package/package.json +2 -2
  186. package/servers.ts +1 -1
  187. package/types/ObjectParamAPI.ts +174 -345
  188. package/types/ObservableAPI.ts +117 -284
  189. package/types/PromiseAPI.ts +97 -180
  190. package/dist/models/BadRequestError.js +0 -22
  191. package/dist/models/BadRequestError.js.map +0 -1
  192. package/dist/models/BeginLiveActivityRequest.js +0 -28
  193. package/dist/models/BeginLiveActivityRequest.js.map +0 -1
  194. package/dist/models/CancelNotificationSuccessResponse.js +0 -22
  195. package/dist/models/CancelNotificationSuccessResponse.js.map +0 -1
  196. package/dist/models/CreateNotificationBadRequestResponse.js +0 -22
  197. package/dist/models/CreateNotificationBadRequestResponse.js.map +0 -1
  198. package/dist/models/CreatePlayerSuccessResponse.js +0 -28
  199. package/dist/models/CreatePlayerSuccessResponse.js.map +0 -1
  200. package/dist/models/CreateSegmentBadRequestResponse.d.ts +0 -18
  201. package/dist/models/CreateSegmentBadRequestResponse.js +0 -28
  202. package/dist/models/CreateSegmentBadRequestResponse.js.map +0 -1
  203. package/dist/models/CreateSubscriptionRequestBody.d.ts +0 -19
  204. package/dist/models/CreateSubscriptionRequestBody.js +0 -28
  205. package/dist/models/CreateSubscriptionRequestBody.js.map +0 -1
  206. package/dist/models/DeletePlayerBadRequestResponse.d.ts +0 -17
  207. package/dist/models/DeletePlayerBadRequestResponse.js +0 -22
  208. package/dist/models/DeletePlayerBadRequestResponse.js.map +0 -1
  209. package/dist/models/DeletePlayerNotFoundResponse.js +0 -22
  210. package/dist/models/DeletePlayerNotFoundResponse.js.map +0 -1
  211. package/dist/models/DeletePlayerSuccessResponse.js +0 -22
  212. package/dist/models/DeletePlayerSuccessResponse.js.map +0 -1
  213. package/dist/models/DeleteSegmentBadRequestResponse.d.ts +0 -17
  214. package/dist/models/DeleteSegmentBadRequestResponse.js +0 -22
  215. package/dist/models/DeleteSegmentBadRequestResponse.js.map +0 -1
  216. package/dist/models/DeleteSegmentNotFoundResponse.d.ts +0 -17
  217. package/dist/models/DeleteSegmentNotFoundResponse.js +0 -22
  218. package/dist/models/DeleteSegmentNotFoundResponse.js.map +0 -1
  219. package/dist/models/DeleteSegmentSuccessResponse.d.ts +0 -17
  220. package/dist/models/DeleteSegmentSuccessResponse.js +0 -22
  221. package/dist/models/DeleteSegmentSuccessResponse.js.map +0 -1
  222. package/dist/models/ExportPlayersRequestBody.js +0 -34
  223. package/dist/models/ExportPlayersRequestBody.js.map +0 -1
  224. package/dist/models/ExportPlayersSuccessResponse.js +0 -22
  225. package/dist/models/ExportPlayersSuccessResponse.js.map +0 -1
  226. package/dist/models/FilterExpressions.d.ts +0 -23
  227. package/dist/models/FilterExpressions.js +0 -46
  228. package/dist/models/FilterExpressions.js.map +0 -1
  229. package/dist/models/FilterNotificationTarget.d.ts +0 -28
  230. package/dist/models/FilterNotificationTarget.js +0 -88
  231. package/dist/models/FilterNotificationTarget.js.map +0 -1
  232. package/dist/models/GetNotificationRequestBody.js +0 -34
  233. package/dist/models/GetNotificationRequestBody.js.map +0 -1
  234. package/dist/models/IdentifyUserConflictResponse.d.ts +0 -18
  235. package/dist/models/IdentifyUserConflictResponse.js +0 -22
  236. package/dist/models/IdentifyUserConflictResponse.js.map +0 -1
  237. package/dist/models/IdentifyUserConflictResponseErrorsInner.js +0 -28
  238. package/dist/models/IdentifyUserConflictResponseErrorsInner.js.map +0 -1
  239. package/dist/models/InlineResponse200.js +0 -22
  240. package/dist/models/InlineResponse200.js.map +0 -1
  241. package/dist/models/InlineResponse2003.d.ts +0 -17
  242. package/dist/models/InlineResponse2003.js +0 -22
  243. package/dist/models/InlineResponse2003.js.map +0 -1
  244. package/dist/models/InlineResponse201.d.ts +0 -18
  245. package/dist/models/InlineResponse201.js +0 -22
  246. package/dist/models/InlineResponse201.js.map +0 -1
  247. package/dist/models/InlineResponse202.js +0 -22
  248. package/dist/models/InlineResponse202.js.map +0 -1
  249. package/dist/models/Notification200Errors.d.ts +0 -18
  250. package/dist/models/Notification200Errors.js +0 -28
  251. package/dist/models/Notification200Errors.js.map +0 -1
  252. package/dist/models/NotificationHistoryBadRequestResponse.d.ts +0 -18
  253. package/dist/models/NotificationHistoryBadRequestResponse.js +0 -28
  254. package/dist/models/NotificationHistoryBadRequestResponse.js.map +0 -1
  255. package/dist/models/Player.d.ts +0 -43
  256. package/dist/models/Player.js +0 -178
  257. package/dist/models/Player.js.map +0 -1
  258. package/dist/models/PlayerNotificationTarget.js.map +0 -1
  259. package/dist/models/PlayerNotificationTargetIncludeAliases.d.ts +0 -17
  260. package/dist/models/PlayerNotificationTargetIncludeAliases.js +0 -22
  261. package/dist/models/PlayerNotificationTargetIncludeAliases.js.map +0 -1
  262. package/dist/models/PlayerSlice.js +0 -40
  263. package/dist/models/PlayerSlice.js.map +0 -1
  264. package/dist/models/StringMap.js.map +0 -1
  265. package/dist/models/SubscriptionObject.js.map +0 -1
  266. package/dist/models/UpdatePlayerSuccessResponse.d.ts +0 -17
  267. package/dist/models/UpdatePlayerSuccessResponse.js +0 -22
  268. package/dist/models/UpdatePlayerSuccessResponse.js.map +0 -1
  269. package/dist/models/UpdatePlayerTagsRequestBody.d.ts +0 -17
  270. package/dist/models/UpdatePlayerTagsRequestBody.js +0 -22
  271. package/dist/models/UpdatePlayerTagsRequestBody.js.map +0 -1
  272. package/dist/models/UpdatePlayerTagsSuccessResponse.d.ts +0 -17
  273. package/dist/models/UpdatePlayerTagsSuccessResponse.js +0 -22
  274. package/dist/models/UpdatePlayerTagsSuccessResponse.js.map +0 -1
  275. package/dist/models/UpdateSubscriptionRequestBody.d.ts +0 -18
  276. package/dist/models/UpdateSubscriptionRequestBody.js +0 -22
  277. package/dist/models/UpdateSubscriptionRequestBody.js.map +0 -1
  278. package/dist/models/UserIdentityRequestBody.d.ts +0 -19
  279. package/dist/models/UserIdentityRequestBody.js +0 -22
  280. package/dist/models/UserIdentityRequestBody.js.map +0 -1
  281. package/dist/models/UserIdentityResponse.d.ts +0 -19
  282. package/dist/models/UserIdentityResponse.js +0 -22
  283. package/dist/models/UserIdentityResponse.js.map +0 -1
  284. package/dist/models/UserSubscriptionOptions.d.ts +0 -17
  285. package/dist/models/UserSubscriptionOptions.js +0 -22
  286. package/dist/models/UserSubscriptionOptions.js.map +0 -1
  287. package/models/BeginLiveActivityRequest.ts +0 -38
  288. package/models/CreateNotificationBadRequestResponse.ts +0 -31
  289. package/models/CreateSubscriptionRequestBody.ts +0 -39
  290. package/models/DeletePlayerBadRequestResponse.ts +0 -31
  291. package/models/DeletePlayerSuccessResponse.ts +0 -31
  292. package/models/DeleteSegmentBadRequestResponse.ts +0 -31
  293. package/models/DeleteSegmentNotFoundResponse.ts +0 -31
  294. package/models/DeleteSegmentSuccessResponse.ts +0 -31
  295. package/models/FilterExpressions.ts +0 -80
  296. package/models/FilterNotificationTarget.ts +0 -144
  297. package/models/IdentifyUserConflictResponse.ts +0 -32
  298. package/models/InlineResponse2003.ts +0 -31
  299. package/models/Notification200Errors.ts +0 -45
  300. package/models/Player.ts +0 -291
  301. package/models/PlayerNotificationTargetIncludeAliases.ts +0 -31
  302. package/models/UpdatePlayerSuccessResponse.ts +0 -31
  303. package/models/UpdatePlayerTagsRequestBody.ts +0 -34
  304. package/models/UpdatePlayerTagsSuccessResponse.ts +0 -31
  305. package/models/UpdateSubscriptionRequestBody.ts +0 -32
  306. package/models/UserIdentityRequestBody.ts +0 -31
  307. package/models/UserIdentityResponse.ts +0 -31
  308. package/models/UserSubscriptionOptions.ts +0 -31
@@ -62,35 +62,29 @@ var DefaultApiRequestFactory = (function (_super) {
62
62
  function DefaultApiRequestFactory() {
63
63
  return _super !== null && _super.apply(this, arguments) || this;
64
64
  }
65
- DefaultApiRequestFactory.prototype.beginLiveActivity = function (appId, activityId, beginLiveActivityRequest, _options) {
65
+ DefaultApiRequestFactory.prototype.cancelNotification = function (appId, notificationId, _options) {
66
66
  var _a, _b, _c;
67
67
  return __awaiter(this, void 0, void 0, function () {
68
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
68
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
69
69
  return __generator(this, function (_d) {
70
70
  switch (_d.label) {
71
71
  case 0:
72
72
  _config = _options || this.configuration;
73
73
  if (appId === null || appId === undefined) {
74
- throw new baseapi_1.RequiredError("DefaultApi", "beginLiveActivity", "appId");
75
- }
76
- if (activityId === null || activityId === undefined) {
77
- throw new baseapi_1.RequiredError("DefaultApi", "beginLiveActivity", "activityId");
74
+ throw new baseapi_1.RequiredError("DefaultApi", "cancelNotification", "appId");
78
75
  }
79
- if (beginLiveActivityRequest === null || beginLiveActivityRequest === undefined) {
80
- throw new baseapi_1.RequiredError("DefaultApi", "beginLiveActivity", "beginLiveActivityRequest");
76
+ if (notificationId === null || notificationId === undefined) {
77
+ throw new baseapi_1.RequiredError("DefaultApi", "cancelNotification", "notificationId");
81
78
  }
82
- localVarPath = '/apps/{app_id}/live_activities/{activity_id}/token'
83
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
84
- .replace('{' + 'activity_id' + '}', encodeURIComponent(String(activityId)));
85
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
79
+ localVarPath = '/notifications/{notification_id}'
80
+ .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
81
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
86
82
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
87
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
88
- "application/json"
89
- ]);
90
- requestContext.setHeaderParam("Content-Type", contentType);
91
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(beginLiveActivityRequest, "BeginLiveActivityRequest", ""), contentType);
92
- requestContext.setBody(serializedBody);
93
- authMethod = _config.authMethods["app_key"];
83
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
84
+ if (appId !== undefined) {
85
+ requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
86
+ }
87
+ authMethod = _config.authMethods["rest_api_key"];
94
88
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
95
89
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
96
90
  case 1:
@@ -108,28 +102,40 @@ var DefaultApiRequestFactory = (function (_super) {
108
102
  });
109
103
  });
110
104
  };
111
- DefaultApiRequestFactory.prototype.cancelNotification = function (appId, notificationId, _options) {
105
+ DefaultApiRequestFactory.prototype.createAlias = function (appId, aliasLabel, aliasId, userIdentityBody, _options) {
112
106
  var _a, _b, _c;
113
107
  return __awaiter(this, void 0, void 0, function () {
114
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
108
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
115
109
  return __generator(this, function (_d) {
116
110
  switch (_d.label) {
117
111
  case 0:
118
112
  _config = _options || this.configuration;
119
113
  if (appId === null || appId === undefined) {
120
- throw new baseapi_1.RequiredError("DefaultApi", "cancelNotification", "appId");
114
+ throw new baseapi_1.RequiredError("DefaultApi", "createAlias", "appId");
121
115
  }
122
- if (notificationId === null || notificationId === undefined) {
123
- throw new baseapi_1.RequiredError("DefaultApi", "cancelNotification", "notificationId");
116
+ if (aliasLabel === null || aliasLabel === undefined) {
117
+ throw new baseapi_1.RequiredError("DefaultApi", "createAlias", "aliasLabel");
124
118
  }
125
- localVarPath = '/notifications/{notification_id}'
126
- .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
127
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
128
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
129
- if (appId !== undefined) {
130
- requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
119
+ if (aliasId === null || aliasId === undefined) {
120
+ throw new baseapi_1.RequiredError("DefaultApi", "createAlias", "aliasId");
131
121
  }
132
- authMethod = _config.authMethods["app_key"];
122
+ if (userIdentityBody === null || userIdentityBody === undefined) {
123
+ throw new baseapi_1.RequiredError("DefaultApi", "createAlias", "userIdentityBody");
124
+ }
125
+ localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/identity'
126
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
127
+ .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
128
+ .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
129
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
130
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
131
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
132
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
133
+ "application/json"
134
+ ]);
135
+ requestContext.setHeaderParam("Content-Type", contentType);
136
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(userIdentityBody, "UserIdentityBody", ""), contentType);
137
+ requestContext.setBody(serializedBody);
138
+ authMethod = _config.authMethods["rest_api_key"];
133
139
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
134
140
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
135
141
  case 1:
@@ -147,7 +153,7 @@ var DefaultApiRequestFactory = (function (_super) {
147
153
  });
148
154
  });
149
155
  };
150
- DefaultApiRequestFactory.prototype.createApp = function (app, _options) {
156
+ DefaultApiRequestFactory.prototype.createAliasBySubscription = function (appId, subscriptionId, userIdentityBody, _options) {
151
157
  var _a, _b, _c;
152
158
  return __awaiter(this, void 0, void 0, function () {
153
159
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -155,19 +161,28 @@ var DefaultApiRequestFactory = (function (_super) {
155
161
  switch (_d.label) {
156
162
  case 0:
157
163
  _config = _options || this.configuration;
158
- if (app === null || app === undefined) {
159
- throw new baseapi_1.RequiredError("DefaultApi", "createApp", "app");
164
+ if (appId === null || appId === undefined) {
165
+ throw new baseapi_1.RequiredError("DefaultApi", "createAliasBySubscription", "appId");
160
166
  }
161
- localVarPath = '/apps';
162
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
167
+ if (subscriptionId === null || subscriptionId === undefined) {
168
+ throw new baseapi_1.RequiredError("DefaultApi", "createAliasBySubscription", "subscriptionId");
169
+ }
170
+ if (userIdentityBody === null || userIdentityBody === undefined) {
171
+ throw new baseapi_1.RequiredError("DefaultApi", "createAliasBySubscription", "userIdentityBody");
172
+ }
173
+ localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/user/identity'
174
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
175
+ .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
176
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
163
177
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
178
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
164
179
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
165
180
  "application/json"
166
181
  ]);
167
182
  requestContext.setHeaderParam("Content-Type", contentType);
168
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(app, "App", ""), contentType);
183
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(userIdentityBody, "UserIdentityBody", ""), contentType);
169
184
  requestContext.setBody(serializedBody);
170
- authMethod = _config.authMethods["user_key"];
185
+ authMethod = _config.authMethods["rest_api_key"];
171
186
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
172
187
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
173
188
  case 1:
@@ -185,7 +200,7 @@ var DefaultApiRequestFactory = (function (_super) {
185
200
  });
186
201
  });
187
202
  };
188
- DefaultApiRequestFactory.prototype.createNotification = function (notification, _options) {
203
+ DefaultApiRequestFactory.prototype.createApp = function (app, _options) {
189
204
  var _a, _b, _c;
190
205
  return __awaiter(this, void 0, void 0, function () {
191
206
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -193,19 +208,20 @@ var DefaultApiRequestFactory = (function (_super) {
193
208
  switch (_d.label) {
194
209
  case 0:
195
210
  _config = _options || this.configuration;
196
- if (notification === null || notification === undefined) {
197
- throw new baseapi_1.RequiredError("DefaultApi", "createNotification", "notification");
211
+ if (app === null || app === undefined) {
212
+ throw new baseapi_1.RequiredError("DefaultApi", "createApp", "app");
198
213
  }
199
- localVarPath = '/notifications';
214
+ localVarPath = '/apps';
200
215
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
201
216
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
217
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
202
218
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
203
219
  "application/json"
204
220
  ]);
205
221
  requestContext.setHeaderParam("Content-Type", contentType);
206
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(notification, "Notification", ""), contentType);
222
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(app, "App", ""), contentType);
207
223
  requestContext.setBody(serializedBody);
208
- authMethod = _config.authMethods["app_key"];
224
+ authMethod = _config.authMethods["user_auth_key"];
209
225
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
210
226
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
211
227
  case 1:
@@ -223,7 +239,7 @@ var DefaultApiRequestFactory = (function (_super) {
223
239
  });
224
240
  });
225
241
  };
226
- DefaultApiRequestFactory.prototype.createPlayer = function (player, _options) {
242
+ DefaultApiRequestFactory.prototype.createNotification = function (notification, _options) {
227
243
  var _a, _b, _c;
228
244
  return __awaiter(this, void 0, void 0, function () {
229
245
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -231,19 +247,20 @@ var DefaultApiRequestFactory = (function (_super) {
231
247
  switch (_d.label) {
232
248
  case 0:
233
249
  _config = _options || this.configuration;
234
- if (player === null || player === undefined) {
235
- throw new baseapi_1.RequiredError("DefaultApi", "createPlayer", "player");
250
+ if (notification === null || notification === undefined) {
251
+ throw new baseapi_1.RequiredError("DefaultApi", "createNotification", "notification");
236
252
  }
237
- localVarPath = '/players';
253
+ localVarPath = '/notifications';
238
254
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
239
255
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
256
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
240
257
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
241
258
  "application/json"
242
259
  ]);
243
260
  requestContext.setHeaderParam("Content-Type", contentType);
244
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(player, "Player", ""), contentType);
261
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(notification, "Notification", ""), contentType);
245
262
  requestContext.setBody(serializedBody);
246
- authMethod = _config.authMethods["app_key"];
263
+ authMethod = _config.authMethods["rest_api_key"];
247
264
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
248
265
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
249
266
  case 1:
@@ -261,7 +278,7 @@ var DefaultApiRequestFactory = (function (_super) {
261
278
  });
262
279
  });
263
280
  };
264
- DefaultApiRequestFactory.prototype.createSegments = function (appId, segment, _options) {
281
+ DefaultApiRequestFactory.prototype.createSegment = function (appId, segment, _options) {
265
282
  var _a, _b, _c;
266
283
  return __awaiter(this, void 0, void 0, function () {
267
284
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -270,19 +287,20 @@ var DefaultApiRequestFactory = (function (_super) {
270
287
  case 0:
271
288
  _config = _options || this.configuration;
272
289
  if (appId === null || appId === undefined) {
273
- throw new baseapi_1.RequiredError("DefaultApi", "createSegments", "appId");
290
+ throw new baseapi_1.RequiredError("DefaultApi", "createSegment", "appId");
274
291
  }
275
292
  localVarPath = '/apps/{app_id}/segments'
276
293
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
277
294
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
278
295
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
296
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
279
297
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
280
298
  "application/json"
281
299
  ]);
282
300
  requestContext.setHeaderParam("Content-Type", contentType);
283
301
  serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(segment, "Segment", ""), contentType);
284
302
  requestContext.setBody(serializedBody);
285
- authMethod = _config.authMethods["app_key"];
303
+ authMethod = _config.authMethods["rest_api_key"];
286
304
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
287
305
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
288
306
  case 1:
@@ -300,7 +318,7 @@ var DefaultApiRequestFactory = (function (_super) {
300
318
  });
301
319
  });
302
320
  };
303
- DefaultApiRequestFactory.prototype.createSubscription = function (appId, aliasLabel, aliasId, createSubscriptionRequestBody, _options) {
321
+ DefaultApiRequestFactory.prototype.createSubscription = function (appId, aliasLabel, aliasId, subscriptionBody, _options) {
304
322
  var _a, _b, _c;
305
323
  return __awaiter(this, void 0, void 0, function () {
306
324
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -317,8 +335,8 @@ var DefaultApiRequestFactory = (function (_super) {
317
335
  if (aliasId === null || aliasId === undefined) {
318
336
  throw new baseapi_1.RequiredError("DefaultApi", "createSubscription", "aliasId");
319
337
  }
320
- if (createSubscriptionRequestBody === null || createSubscriptionRequestBody === undefined) {
321
- throw new baseapi_1.RequiredError("DefaultApi", "createSubscription", "createSubscriptionRequestBody");
338
+ if (subscriptionBody === null || subscriptionBody === undefined) {
339
+ throw new baseapi_1.RequiredError("DefaultApi", "createSubscription", "subscriptionBody");
322
340
  }
323
341
  localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/subscriptions'
324
342
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
@@ -326,13 +344,14 @@ var DefaultApiRequestFactory = (function (_super) {
326
344
  .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
327
345
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
328
346
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
347
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
329
348
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
330
349
  "application/json"
331
350
  ]);
332
351
  requestContext.setHeaderParam("Content-Type", contentType);
333
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(createSubscriptionRequestBody, "CreateSubscriptionRequestBody", ""), contentType);
352
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(subscriptionBody, "SubscriptionBody", ""), contentType);
334
353
  requestContext.setBody(serializedBody);
335
- authMethod = _config.authMethods["app_key"];
354
+ authMethod = _config.authMethods["rest_api_key"];
336
355
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
337
356
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
338
357
  case 1:
@@ -368,13 +387,14 @@ var DefaultApiRequestFactory = (function (_super) {
368
387
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
369
388
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
370
389
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
390
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
371
391
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
372
392
  "application/json"
373
393
  ]);
374
394
  requestContext.setHeaderParam("Content-Type", contentType);
375
395
  serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(user, "User", ""), contentType);
376
396
  requestContext.setBody(serializedBody);
377
- authMethod = _config.authMethods["app_key"];
397
+ authMethod = _config.authMethods["rest_api_key"];
378
398
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
379
399
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
380
400
  case 1:
@@ -419,46 +439,8 @@ var DefaultApiRequestFactory = (function (_super) {
419
439
  .replace('{' + 'alias_label_to_delete' + '}', encodeURIComponent(String(aliasLabelToDelete)));
420
440
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
421
441
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
422
- authMethod = _config.authMethods["app_key"];
423
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
424
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
425
- case 1:
426
- _d.sent();
427
- _d.label = 2;
428
- case 2:
429
- 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);
430
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
431
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
432
- case 3:
433
- _d.sent();
434
- _d.label = 4;
435
- case 4: return [2, requestContext];
436
- }
437
- });
438
- });
439
- };
440
- DefaultApiRequestFactory.prototype.deletePlayer = function (appId, playerId, _options) {
441
- var _a, _b, _c;
442
- return __awaiter(this, void 0, void 0, function () {
443
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
444
- return __generator(this, function (_d) {
445
- switch (_d.label) {
446
- case 0:
447
- _config = _options || this.configuration;
448
- if (appId === null || appId === undefined) {
449
- throw new baseapi_1.RequiredError("DefaultApi", "deletePlayer", "appId");
450
- }
451
- if (playerId === null || playerId === undefined) {
452
- throw new baseapi_1.RequiredError("DefaultApi", "deletePlayer", "playerId");
453
- }
454
- localVarPath = '/players/{player_id}'
455
- .replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
456
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
457
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
458
- if (appId !== undefined) {
459
- requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
460
- }
461
- authMethod = _config.authMethods["app_key"];
442
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
443
+ authMethod = _config.authMethods["rest_api_key"];
462
444
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
463
445
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
464
446
  case 1:
@@ -476,7 +458,7 @@ var DefaultApiRequestFactory = (function (_super) {
476
458
  });
477
459
  });
478
460
  };
479
- DefaultApiRequestFactory.prototype.deleteSegments = function (appId, segmentId, _options) {
461
+ DefaultApiRequestFactory.prototype.deleteSegment = function (appId, segmentId, _options) {
480
462
  var _a, _b, _c;
481
463
  return __awaiter(this, void 0, void 0, function () {
482
464
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -485,17 +467,18 @@ var DefaultApiRequestFactory = (function (_super) {
485
467
  case 0:
486
468
  _config = _options || this.configuration;
487
469
  if (appId === null || appId === undefined) {
488
- throw new baseapi_1.RequiredError("DefaultApi", "deleteSegments", "appId");
470
+ throw new baseapi_1.RequiredError("DefaultApi", "deleteSegment", "appId");
489
471
  }
490
472
  if (segmentId === null || segmentId === undefined) {
491
- throw new baseapi_1.RequiredError("DefaultApi", "deleteSegments", "segmentId");
473
+ throw new baseapi_1.RequiredError("DefaultApi", "deleteSegment", "segmentId");
492
474
  }
493
475
  localVarPath = '/apps/{app_id}/segments/{segment_id}'
494
476
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
495
477
  .replace('{' + 'segment_id' + '}', encodeURIComponent(String(segmentId)));
496
478
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
497
479
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
498
- authMethod = _config.authMethods["app_key"];
480
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
481
+ authMethod = _config.authMethods["rest_api_key"];
499
482
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
500
483
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
501
484
  case 1:
@@ -532,7 +515,8 @@ var DefaultApiRequestFactory = (function (_super) {
532
515
  .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
533
516
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
534
517
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
535
- authMethod = _config.authMethods["app_key"];
518
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
519
+ authMethod = _config.authMethods["rest_api_key"];
536
520
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
537
521
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
538
522
  case 1:
@@ -573,6 +557,7 @@ var DefaultApiRequestFactory = (function (_super) {
573
557
  .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
574
558
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
575
559
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
560
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
576
561
  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
562
  if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 2];
578
563
  return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
@@ -584,7 +569,7 @@ var DefaultApiRequestFactory = (function (_super) {
584
569
  });
585
570
  });
586
571
  };
587
- DefaultApiRequestFactory.prototype.endLiveActivity = function (appId, activityId, subscriptionId, _options) {
572
+ DefaultApiRequestFactory.prototype.exportEvents = function (notificationId, appId, _options) {
588
573
  var _a, _b, _c;
589
574
  return __awaiter(this, void 0, void 0, function () {
590
575
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -592,22 +577,21 @@ var DefaultApiRequestFactory = (function (_super) {
592
577
  switch (_d.label) {
593
578
  case 0:
594
579
  _config = _options || this.configuration;
595
- if (appId === null || appId === undefined) {
596
- throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "appId");
597
- }
598
- if (activityId === null || activityId === undefined) {
599
- throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "activityId");
580
+ if (notificationId === null || notificationId === undefined) {
581
+ throw new baseapi_1.RequiredError("DefaultApi", "exportEvents", "notificationId");
600
582
  }
601
- if (subscriptionId === null || subscriptionId === undefined) {
602
- throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "subscriptionId");
583
+ if (appId === null || appId === undefined) {
584
+ throw new baseapi_1.RequiredError("DefaultApi", "exportEvents", "appId");
603
585
  }
604
- localVarPath = '/apps/{app_id}/live_activities/{activity_id}/token/{subscription_id}'
605
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
606
- .replace('{' + 'activity_id' + '}', encodeURIComponent(String(activityId)))
607
- .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
608
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
586
+ localVarPath = '/notifications/{notification_id}/export_events?app_id={app_id}'
587
+ .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
588
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
609
589
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
610
- authMethod = _config.authMethods["app_key"];
590
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
591
+ if (appId !== undefined) {
592
+ requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
593
+ }
594
+ authMethod = _config.authMethods["rest_api_key"];
611
595
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
612
596
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
613
597
  case 1:
@@ -625,7 +609,7 @@ var DefaultApiRequestFactory = (function (_super) {
625
609
  });
626
610
  });
627
611
  };
628
- DefaultApiRequestFactory.prototype.exportPlayers = function (appId, exportPlayersRequestBody, _options) {
612
+ DefaultApiRequestFactory.prototype.exportSubscriptions = function (appId, exportSubscriptionsRequestBody, _options) {
629
613
  var _a, _b, _c;
630
614
  return __awaiter(this, void 0, void 0, function () {
631
615
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -634,56 +618,20 @@ var DefaultApiRequestFactory = (function (_super) {
634
618
  case 0:
635
619
  _config = _options || this.configuration;
636
620
  if (appId === null || appId === undefined) {
637
- throw new baseapi_1.RequiredError("DefaultApi", "exportPlayers", "appId");
621
+ throw new baseapi_1.RequiredError("DefaultApi", "exportSubscriptions", "appId");
638
622
  }
639
623
  localVarPath = '/players/csv_export?app_id={app_id}'
640
624
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
641
625
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
642
626
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
627
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
643
628
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
644
629
  "application/json"
645
630
  ]);
646
631
  requestContext.setHeaderParam("Content-Type", contentType);
647
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(exportPlayersRequestBody, "ExportPlayersRequestBody", ""), contentType);
632
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(exportSubscriptionsRequestBody, "ExportSubscriptionsRequestBody", ""), contentType);
648
633
  requestContext.setBody(serializedBody);
649
- authMethod = _config.authMethods["app_key"];
650
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
651
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
652
- case 1:
653
- _d.sent();
654
- _d.label = 2;
655
- case 2:
656
- 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);
657
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
658
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
659
- case 3:
660
- _d.sent();
661
- _d.label = 4;
662
- case 4: return [2, requestContext];
663
- }
664
- });
665
- });
666
- };
667
- DefaultApiRequestFactory.prototype.fetchAliases = function (appId, subscriptionId, _options) {
668
- var _a, _b, _c;
669
- return __awaiter(this, void 0, void 0, function () {
670
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
671
- return __generator(this, function (_d) {
672
- switch (_d.label) {
673
- case 0:
674
- _config = _options || this.configuration;
675
- if (appId === null || appId === undefined) {
676
- throw new baseapi_1.RequiredError("DefaultApi", "fetchAliases", "appId");
677
- }
678
- if (subscriptionId === null || subscriptionId === undefined) {
679
- throw new baseapi_1.RequiredError("DefaultApi", "fetchAliases", "subscriptionId");
680
- }
681
- localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/user/identity'
682
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
683
- .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
684
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
685
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
686
- authMethod = _config.authMethods["app_key"];
634
+ authMethod = _config.authMethods["rest_api_key"];
687
635
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
688
636
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
689
637
  case 1:
@@ -701,7 +649,7 @@ var DefaultApiRequestFactory = (function (_super) {
701
649
  });
702
650
  });
703
651
  };
704
- DefaultApiRequestFactory.prototype.fetchUser = function (appId, aliasLabel, aliasId, _options) {
652
+ DefaultApiRequestFactory.prototype.getAliases = function (appId, aliasLabel, aliasId, _options) {
705
653
  var _a, _b, _c;
706
654
  return __awaiter(this, void 0, void 0, function () {
707
655
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -710,21 +658,22 @@ var DefaultApiRequestFactory = (function (_super) {
710
658
  case 0:
711
659
  _config = _options || this.configuration;
712
660
  if (appId === null || appId === undefined) {
713
- throw new baseapi_1.RequiredError("DefaultApi", "fetchUser", "appId");
661
+ throw new baseapi_1.RequiredError("DefaultApi", "getAliases", "appId");
714
662
  }
715
663
  if (aliasLabel === null || aliasLabel === undefined) {
716
- throw new baseapi_1.RequiredError("DefaultApi", "fetchUser", "aliasLabel");
664
+ throw new baseapi_1.RequiredError("DefaultApi", "getAliases", "aliasLabel");
717
665
  }
718
666
  if (aliasId === null || aliasId === undefined) {
719
- throw new baseapi_1.RequiredError("DefaultApi", "fetchUser", "aliasId");
667
+ throw new baseapi_1.RequiredError("DefaultApi", "getAliases", "aliasId");
720
668
  }
721
- localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}'
669
+ localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/identity'
722
670
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
723
671
  .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
724
672
  .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
725
673
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
726
674
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
727
- authMethod = _config.authMethods["app_key"];
675
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
676
+ authMethod = _config.authMethods["rest_api_key"];
728
677
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
729
678
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
730
679
  case 1:
@@ -742,7 +691,7 @@ var DefaultApiRequestFactory = (function (_super) {
742
691
  });
743
692
  });
744
693
  };
745
- DefaultApiRequestFactory.prototype.fetchUserIdentity = function (appId, aliasLabel, aliasId, _options) {
694
+ DefaultApiRequestFactory.prototype.getAliasesBySubscription = function (appId, subscriptionId, _options) {
746
695
  var _a, _b, _c;
747
696
  return __awaiter(this, void 0, void 0, function () {
748
697
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -751,21 +700,18 @@ var DefaultApiRequestFactory = (function (_super) {
751
700
  case 0:
752
701
  _config = _options || this.configuration;
753
702
  if (appId === null || appId === undefined) {
754
- throw new baseapi_1.RequiredError("DefaultApi", "fetchUserIdentity", "appId");
755
- }
756
- if (aliasLabel === null || aliasLabel === undefined) {
757
- throw new baseapi_1.RequiredError("DefaultApi", "fetchUserIdentity", "aliasLabel");
703
+ throw new baseapi_1.RequiredError("DefaultApi", "getAliasesBySubscription", "appId");
758
704
  }
759
- if (aliasId === null || aliasId === undefined) {
760
- throw new baseapi_1.RequiredError("DefaultApi", "fetchUserIdentity", "aliasId");
705
+ if (subscriptionId === null || subscriptionId === undefined) {
706
+ throw new baseapi_1.RequiredError("DefaultApi", "getAliasesBySubscription", "subscriptionId");
761
707
  }
762
- localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/identity'
708
+ localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/user/identity'
763
709
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
764
- .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
765
- .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
710
+ .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
766
711
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
767
712
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
768
- authMethod = _config.authMethods["app_key"];
713
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
714
+ authMethod = _config.authMethods["rest_api_key"];
769
715
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
770
716
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
771
717
  case 1:
@@ -798,7 +744,8 @@ var DefaultApiRequestFactory = (function (_super) {
798
744
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
799
745
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
800
746
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
801
- authMethod = _config.authMethods["user_key"];
747
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
748
+ authMethod = _config.authMethods["user_auth_key"];
802
749
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
803
750
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
804
751
  case 1:
@@ -827,44 +774,8 @@ var DefaultApiRequestFactory = (function (_super) {
827
774
  localVarPath = '/apps';
828
775
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
829
776
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
830
- authMethod = _config.authMethods["user_key"];
831
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
832
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
833
- case 1:
834
- _d.sent();
835
- _d.label = 2;
836
- case 2:
837
- 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);
838
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
839
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
840
- case 3:
841
- _d.sent();
842
- _d.label = 4;
843
- case 4: return [2, requestContext];
844
- }
845
- });
846
- });
847
- };
848
- DefaultApiRequestFactory.prototype.getEligibleIams = function (appId, subscriptionId, _options) {
849
- var _a, _b, _c;
850
- return __awaiter(this, void 0, void 0, function () {
851
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
852
- return __generator(this, function (_d) {
853
- switch (_d.label) {
854
- case 0:
855
- _config = _options || this.configuration;
856
- if (appId === null || appId === undefined) {
857
- throw new baseapi_1.RequiredError("DefaultApi", "getEligibleIams", "appId");
858
- }
859
- if (subscriptionId === null || subscriptionId === undefined) {
860
- throw new baseapi_1.RequiredError("DefaultApi", "getEligibleIams", "subscriptionId");
861
- }
862
- localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/iams'
863
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
864
- .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
865
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
866
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
867
- authMethod = _config.authMethods["app_key"];
777
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
778
+ authMethod = _config.authMethods["user_auth_key"];
868
779
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
869
780
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
870
781
  case 1:
@@ -900,10 +811,11 @@ var DefaultApiRequestFactory = (function (_super) {
900
811
  .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
901
812
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
902
813
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
814
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
903
815
  if (appId !== undefined) {
904
816
  requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
905
817
  }
906
- authMethod = _config.authMethods["app_key"];
818
+ authMethod = _config.authMethods["rest_api_key"];
907
819
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
908
820
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
909
821
  case 1:
@@ -921,7 +833,7 @@ var DefaultApiRequestFactory = (function (_super) {
921
833
  });
922
834
  });
923
835
  };
924
- DefaultApiRequestFactory.prototype.getNotificationHistory = function (notificationId, getNotificationRequestBody, _options) {
836
+ DefaultApiRequestFactory.prototype.getNotificationHistory = function (notificationId, getNotificationHistoryRequestBody, _options) {
925
837
  var _a, _b, _c;
926
838
  return __awaiter(this, void 0, void 0, function () {
927
839
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -932,20 +844,21 @@ var DefaultApiRequestFactory = (function (_super) {
932
844
  if (notificationId === null || notificationId === undefined) {
933
845
  throw new baseapi_1.RequiredError("DefaultApi", "getNotificationHistory", "notificationId");
934
846
  }
935
- if (getNotificationRequestBody === null || getNotificationRequestBody === undefined) {
936
- throw new baseapi_1.RequiredError("DefaultApi", "getNotificationHistory", "getNotificationRequestBody");
847
+ if (getNotificationHistoryRequestBody === null || getNotificationHistoryRequestBody === undefined) {
848
+ throw new baseapi_1.RequiredError("DefaultApi", "getNotificationHistory", "getNotificationHistoryRequestBody");
937
849
  }
938
850
  localVarPath = '/notifications/{notification_id}/history'
939
851
  .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
940
852
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
941
853
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
854
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
942
855
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
943
856
  "application/json"
944
857
  ]);
945
858
  requestContext.setHeaderParam("Content-Type", contentType);
946
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(getNotificationRequestBody, "GetNotificationRequestBody", ""), contentType);
859
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(getNotificationHistoryRequestBody, "GetNotificationHistoryRequestBody", ""), contentType);
947
860
  requestContext.setBody(serializedBody);
948
- authMethod = _config.authMethods["app_key"];
861
+ authMethod = _config.authMethods["rest_api_key"];
949
862
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
950
863
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
951
864
  case 1:
@@ -977,6 +890,7 @@ var DefaultApiRequestFactory = (function (_super) {
977
890
  localVarPath = '/notifications';
978
891
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
979
892
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
893
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
980
894
  if (appId !== undefined) {
981
895
  requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
982
896
  }
@@ -989,7 +903,7 @@ var DefaultApiRequestFactory = (function (_super) {
989
903
  if (kind !== undefined) {
990
904
  requestContext.setQueryParam("kind", ObjectSerializer_1.ObjectSerializer.serialize(kind, "0 | 1 | 3", ""));
991
905
  }
992
- authMethod = _config.authMethods["app_key"];
906
+ authMethod = _config.authMethods["rest_api_key"];
993
907
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
994
908
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
995
909
  case 1:
@@ -1025,6 +939,7 @@ var DefaultApiRequestFactory = (function (_super) {
1025
939
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
1026
940
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1027
941
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
942
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
1028
943
  if (outcomeNames !== undefined) {
1029
944
  requestContext.setQueryParam("outcome_names", ObjectSerializer_1.ObjectSerializer.serialize(outcomeNames, "string", ""));
1030
945
  }
@@ -1040,7 +955,7 @@ var DefaultApiRequestFactory = (function (_super) {
1040
955
  if (outcomeAttribution !== undefined) {
1041
956
  requestContext.setQueryParam("outcome_attribution", ObjectSerializer_1.ObjectSerializer.serialize(outcomeAttribution, "string", ""));
1042
957
  }
1043
- authMethod = _config.authMethods["app_key"];
958
+ authMethod = _config.authMethods["rest_api_key"];
1044
959
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1045
960
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1046
961
  case 1:
@@ -1058,7 +973,7 @@ var DefaultApiRequestFactory = (function (_super) {
1058
973
  });
1059
974
  });
1060
975
  };
1061
- DefaultApiRequestFactory.prototype.getPlayer = function (appId, playerId, emailAuthHash, _options) {
976
+ DefaultApiRequestFactory.prototype.getSegments = function (appId, offset, limit, _options) {
1062
977
  var _a, _b, _c;
1063
978
  return __awaiter(this, void 0, void 0, function () {
1064
979
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -1067,22 +982,20 @@ var DefaultApiRequestFactory = (function (_super) {
1067
982
  case 0:
1068
983
  _config = _options || this.configuration;
1069
984
  if (appId === null || appId === undefined) {
1070
- throw new baseapi_1.RequiredError("DefaultApi", "getPlayer", "appId");
1071
- }
1072
- if (playerId === null || playerId === undefined) {
1073
- throw new baseapi_1.RequiredError("DefaultApi", "getPlayer", "playerId");
985
+ throw new baseapi_1.RequiredError("DefaultApi", "getSegments", "appId");
1074
986
  }
1075
- localVarPath = '/players/{player_id}'
1076
- .replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
987
+ localVarPath = '/apps/{app_id}/segments'
988
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
1077
989
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1078
990
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1079
- if (appId !== undefined) {
1080
- requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
991
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
992
+ if (offset !== undefined) {
993
+ requestContext.setQueryParam("offset", ObjectSerializer_1.ObjectSerializer.serialize(offset, "number", ""));
1081
994
  }
1082
- if (emailAuthHash !== undefined) {
1083
- requestContext.setQueryParam("email_auth_hash", ObjectSerializer_1.ObjectSerializer.serialize(emailAuthHash, "string", ""));
995
+ if (limit !== undefined) {
996
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
1084
997
  }
1085
- authMethod = _config.authMethods["app_key"];
998
+ authMethod = _config.authMethods["rest_api_key"];
1086
999
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1087
1000
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1088
1001
  case 1:
@@ -1100,7 +1013,7 @@ var DefaultApiRequestFactory = (function (_super) {
1100
1013
  });
1101
1014
  });
1102
1015
  };
1103
- DefaultApiRequestFactory.prototype.getPlayers = function (appId, limit, offset, _options) {
1016
+ DefaultApiRequestFactory.prototype.getUser = function (appId, aliasLabel, aliasId, _options) {
1104
1017
  var _a, _b, _c;
1105
1018
  return __awaiter(this, void 0, void 0, function () {
1106
1019
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -1109,21 +1022,22 @@ var DefaultApiRequestFactory = (function (_super) {
1109
1022
  case 0:
1110
1023
  _config = _options || this.configuration;
1111
1024
  if (appId === null || appId === undefined) {
1112
- throw new baseapi_1.RequiredError("DefaultApi", "getPlayers", "appId");
1025
+ throw new baseapi_1.RequiredError("DefaultApi", "getUser", "appId");
1113
1026
  }
1114
- localVarPath = '/players';
1115
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1116
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1117
- if (appId !== undefined) {
1118
- requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
1119
- }
1120
- if (limit !== undefined) {
1121
- requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
1027
+ if (aliasLabel === null || aliasLabel === undefined) {
1028
+ throw new baseapi_1.RequiredError("DefaultApi", "getUser", "aliasLabel");
1122
1029
  }
1123
- if (offset !== undefined) {
1124
- requestContext.setQueryParam("offset", ObjectSerializer_1.ObjectSerializer.serialize(offset, "number", ""));
1030
+ if (aliasId === null || aliasId === undefined) {
1031
+ throw new baseapi_1.RequiredError("DefaultApi", "getUser", "aliasId");
1125
1032
  }
1126
- authMethod = _config.authMethods["app_key"];
1033
+ localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}'
1034
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1035
+ .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
1036
+ .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
1037
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1038
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1039
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
1040
+ authMethod = _config.authMethods["rest_api_key"];
1127
1041
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1128
1042
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1129
1043
  case 1:
@@ -1141,7 +1055,7 @@ var DefaultApiRequestFactory = (function (_super) {
1141
1055
  });
1142
1056
  });
1143
1057
  };
1144
- DefaultApiRequestFactory.prototype.identifyUserByAlias = function (appId, aliasLabel, aliasId, userIdentityRequestBody, _options) {
1058
+ DefaultApiRequestFactory.prototype.transferSubscription = function (appId, subscriptionId, transferSubscriptionRequestBody, _options) {
1145
1059
  var _a, _b, _c;
1146
1060
  return __awaiter(this, void 0, void 0, function () {
1147
1061
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -1150,30 +1064,27 @@ var DefaultApiRequestFactory = (function (_super) {
1150
1064
  case 0:
1151
1065
  _config = _options || this.configuration;
1152
1066
  if (appId === null || appId === undefined) {
1153
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "appId");
1154
- }
1155
- if (aliasLabel === null || aliasLabel === undefined) {
1156
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "aliasLabel");
1067
+ throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "appId");
1157
1068
  }
1158
- if (aliasId === null || aliasId === undefined) {
1159
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "aliasId");
1069
+ if (subscriptionId === null || subscriptionId === undefined) {
1070
+ throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "subscriptionId");
1160
1071
  }
1161
- if (userIdentityRequestBody === null || userIdentityRequestBody === undefined) {
1162
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "userIdentityRequestBody");
1072
+ if (transferSubscriptionRequestBody === null || transferSubscriptionRequestBody === undefined) {
1073
+ throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "transferSubscriptionRequestBody");
1163
1074
  }
1164
- localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/identity'
1075
+ localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/owner'
1165
1076
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1166
- .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
1167
- .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
1077
+ .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
1168
1078
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1169
1079
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1080
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
1170
1081
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1171
1082
  "application/json"
1172
1083
  ]);
1173
1084
  requestContext.setHeaderParam("Content-Type", contentType);
1174
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(userIdentityRequestBody, "UserIdentityRequestBody", ""), contentType);
1085
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(transferSubscriptionRequestBody, "TransferSubscriptionRequestBody", ""), contentType);
1175
1086
  requestContext.setBody(serializedBody);
1176
- authMethod = _config.authMethods["app_key"];
1087
+ authMethod = _config.authMethods["rest_api_key"];
1177
1088
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1178
1089
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1179
1090
  case 1:
@@ -1191,81 +1102,33 @@ var DefaultApiRequestFactory = (function (_super) {
1191
1102
  });
1192
1103
  });
1193
1104
  };
1194
- DefaultApiRequestFactory.prototype.identifyUserBySubscriptionId = function (appId, subscriptionId, userIdentityRequestBody, _options) {
1105
+ DefaultApiRequestFactory.prototype.unsubscribeEmailWithToken = function (appId, notificationId, token, _options) {
1195
1106
  var _a, _b, _c;
1196
1107
  return __awaiter(this, void 0, void 0, function () {
1197
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1108
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
1198
1109
  return __generator(this, function (_d) {
1199
1110
  switch (_d.label) {
1200
1111
  case 0:
1201
1112
  _config = _options || this.configuration;
1202
1113
  if (appId === null || appId === undefined) {
1203
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserBySubscriptionId", "appId");
1114
+ throw new baseapi_1.RequiredError("DefaultApi", "unsubscribeEmailWithToken", "appId");
1204
1115
  }
1205
- if (subscriptionId === null || subscriptionId === undefined) {
1206
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserBySubscriptionId", "subscriptionId");
1116
+ if (notificationId === null || notificationId === undefined) {
1117
+ throw new baseapi_1.RequiredError("DefaultApi", "unsubscribeEmailWithToken", "notificationId");
1207
1118
  }
1208
- if (userIdentityRequestBody === null || userIdentityRequestBody === undefined) {
1209
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserBySubscriptionId", "userIdentityRequestBody");
1119
+ if (token === null || token === undefined) {
1120
+ throw new baseapi_1.RequiredError("DefaultApi", "unsubscribeEmailWithToken", "token");
1210
1121
  }
1211
- localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/user/identity'
1122
+ localVarPath = '/apps/{app_id}/notifications/{notification_id}/unsubscribe'
1212
1123
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1213
- .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
1214
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1124
+ .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
1125
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
1215
1126
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1216
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1217
- "application/json"
1218
- ]);
1219
- requestContext.setHeaderParam("Content-Type", contentType);
1220
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(userIdentityRequestBody, "UserIdentityRequestBody", ""), contentType);
1221
- requestContext.setBody(serializedBody);
1222
- authMethod = _config.authMethods["app_key"];
1223
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1224
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1225
- case 1:
1226
- _d.sent();
1227
- _d.label = 2;
1228
- case 2:
1229
- defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
1230
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1231
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1232
- case 3:
1233
- _d.sent();
1234
- _d.label = 4;
1235
- case 4: return [2, requestContext];
1236
- }
1237
- });
1238
- });
1239
- };
1240
- DefaultApiRequestFactory.prototype.transferSubscription = function (appId, subscriptionId, transferSubscriptionRequestBody, _options) {
1241
- var _a, _b, _c;
1242
- return __awaiter(this, void 0, void 0, function () {
1243
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1244
- return __generator(this, function (_d) {
1245
- switch (_d.label) {
1246
- case 0:
1247
- _config = _options || this.configuration;
1248
- if (appId === null || appId === undefined) {
1249
- throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "appId");
1250
- }
1251
- if (subscriptionId === null || subscriptionId === undefined) {
1252
- throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "subscriptionId");
1253
- }
1254
- if (transferSubscriptionRequestBody === null || transferSubscriptionRequestBody === undefined) {
1255
- throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "transferSubscriptionRequestBody");
1256
- }
1257
- localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/owner'
1258
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1259
- .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
1260
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1261
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1262
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1263
- "application/json"
1264
- ]);
1265
- requestContext.setHeaderParam("Content-Type", contentType);
1266
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(transferSubscriptionRequestBody, "TransferSubscriptionRequestBody", ""), contentType);
1267
- requestContext.setBody(serializedBody);
1268
- authMethod = _config.authMethods["app_key"];
1127
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
1128
+ if (token !== undefined) {
1129
+ requestContext.setQueryParam("token", ObjectSerializer_1.ObjectSerializer.serialize(token, "string", ""));
1130
+ }
1131
+ authMethod = _config.authMethods["rest_api_key"];
1269
1132
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1270
1133
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1271
1134
  case 1:
@@ -1301,13 +1164,14 @@ var DefaultApiRequestFactory = (function (_super) {
1301
1164
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
1302
1165
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1303
1166
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1167
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
1304
1168
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1305
1169
  "application/json"
1306
1170
  ]);
1307
1171
  requestContext.setHeaderParam("Content-Type", contentType);
1308
1172
  serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(app, "App", ""), contentType);
1309
1173
  requestContext.setBody(serializedBody);
1310
- authMethod = _config.authMethods["user_key"];
1174
+ authMethod = _config.authMethods["user_auth_key"];
1311
1175
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1312
1176
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1313
1177
  case 1:
@@ -1347,98 +1211,14 @@ var DefaultApiRequestFactory = (function (_super) {
1347
1211
  .replace('{' + 'activity_id' + '}', encodeURIComponent(String(activityId)));
1348
1212
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
1349
1213
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1214
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
1350
1215
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1351
1216
  "application/json"
1352
1217
  ]);
1353
1218
  requestContext.setHeaderParam("Content-Type", contentType);
1354
1219
  serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateLiveActivityRequest, "UpdateLiveActivityRequest", ""), contentType);
1355
1220
  requestContext.setBody(serializedBody);
1356
- authMethod = _config.authMethods["app_key"];
1357
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1358
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1359
- case 1:
1360
- _d.sent();
1361
- _d.label = 2;
1362
- case 2:
1363
- defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
1364
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1365
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1366
- case 3:
1367
- _d.sent();
1368
- _d.label = 4;
1369
- case 4: return [2, requestContext];
1370
- }
1371
- });
1372
- });
1373
- };
1374
- DefaultApiRequestFactory.prototype.updatePlayer = function (playerId, player, _options) {
1375
- var _a, _b, _c;
1376
- return __awaiter(this, void 0, void 0, function () {
1377
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1378
- return __generator(this, function (_d) {
1379
- switch (_d.label) {
1380
- case 0:
1381
- _config = _options || this.configuration;
1382
- if (playerId === null || playerId === undefined) {
1383
- throw new baseapi_1.RequiredError("DefaultApi", "updatePlayer", "playerId");
1384
- }
1385
- if (player === null || player === undefined) {
1386
- throw new baseapi_1.RequiredError("DefaultApi", "updatePlayer", "player");
1387
- }
1388
- localVarPath = '/players/{player_id}'
1389
- .replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
1390
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1391
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1392
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1393
- "application/json"
1394
- ]);
1395
- requestContext.setHeaderParam("Content-Type", contentType);
1396
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(player, "Player", ""), contentType);
1397
- requestContext.setBody(serializedBody);
1398
- authMethod = _config.authMethods["app_key"];
1399
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1400
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1401
- case 1:
1402
- _d.sent();
1403
- _d.label = 2;
1404
- case 2:
1405
- defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
1406
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1407
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1408
- case 3:
1409
- _d.sent();
1410
- _d.label = 4;
1411
- case 4: return [2, requestContext];
1412
- }
1413
- });
1414
- });
1415
- };
1416
- DefaultApiRequestFactory.prototype.updatePlayerTags = function (appId, externalUserId, updatePlayerTagsRequestBody, _options) {
1417
- var _a, _b, _c;
1418
- return __awaiter(this, void 0, void 0, function () {
1419
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1420
- return __generator(this, function (_d) {
1421
- switch (_d.label) {
1422
- case 0:
1423
- _config = _options || this.configuration;
1424
- if (appId === null || appId === undefined) {
1425
- throw new baseapi_1.RequiredError("DefaultApi", "updatePlayerTags", "appId");
1426
- }
1427
- if (externalUserId === null || externalUserId === undefined) {
1428
- throw new baseapi_1.RequiredError("DefaultApi", "updatePlayerTags", "externalUserId");
1429
- }
1430
- localVarPath = '/apps/{app_id}/users/{external_user_id}'
1431
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1432
- .replace('{' + 'external_user_id' + '}', encodeURIComponent(String(externalUserId)));
1433
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1434
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1435
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1436
- "application/json"
1437
- ]);
1438
- requestContext.setHeaderParam("Content-Type", contentType);
1439
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updatePlayerTagsRequestBody, "UpdatePlayerTagsRequestBody", ""), contentType);
1440
- requestContext.setBody(serializedBody);
1441
- authMethod = _config.authMethods["app_key"];
1221
+ authMethod = _config.authMethods["rest_api_key"];
1442
1222
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1443
1223
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1444
1224
  case 1:
@@ -1456,7 +1236,7 @@ var DefaultApiRequestFactory = (function (_super) {
1456
1236
  });
1457
1237
  });
1458
1238
  };
1459
- DefaultApiRequestFactory.prototype.updateSubscription = function (appId, subscriptionId, updateSubscriptionRequestBody, _options) {
1239
+ DefaultApiRequestFactory.prototype.updateSubscription = function (appId, subscriptionId, subscriptionBody, _options) {
1460
1240
  var _a, _b, _c;
1461
1241
  return __awaiter(this, void 0, void 0, function () {
1462
1242
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -1470,21 +1250,22 @@ var DefaultApiRequestFactory = (function (_super) {
1470
1250
  if (subscriptionId === null || subscriptionId === undefined) {
1471
1251
  throw new baseapi_1.RequiredError("DefaultApi", "updateSubscription", "subscriptionId");
1472
1252
  }
1473
- if (updateSubscriptionRequestBody === null || updateSubscriptionRequestBody === undefined) {
1474
- throw new baseapi_1.RequiredError("DefaultApi", "updateSubscription", "updateSubscriptionRequestBody");
1253
+ if (subscriptionBody === null || subscriptionBody === undefined) {
1254
+ throw new baseapi_1.RequiredError("DefaultApi", "updateSubscription", "subscriptionBody");
1475
1255
  }
1476
1256
  localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}'
1477
1257
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1478
1258
  .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
1479
1259
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1480
1260
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1261
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
1481
1262
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1482
1263
  "application/json"
1483
1264
  ]);
1484
1265
  requestContext.setHeaderParam("Content-Type", contentType);
1485
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateSubscriptionRequestBody, "UpdateSubscriptionRequestBody", ""), contentType);
1266
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(subscriptionBody, "SubscriptionBody", ""), contentType);
1486
1267
  requestContext.setBody(serializedBody);
1487
- authMethod = _config.authMethods["app_key"];
1268
+ authMethod = _config.authMethods["rest_api_key"];
1488
1269
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1489
1270
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1490
1271
  case 1:
@@ -1528,13 +1309,14 @@ var DefaultApiRequestFactory = (function (_super) {
1528
1309
  .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
1529
1310
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1530
1311
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1312
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
1531
1313
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1532
1314
  "application/json"
1533
1315
  ]);
1534
1316
  requestContext.setHeaderParam("Content-Type", contentType);
1535
1317
  serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateUserRequest, "UpdateUserRequest", ""), contentType);
1536
1318
  requestContext.setBody(serializedBody);
1537
- authMethod = _config.authMethods["app_key"];
1319
+ authMethod = _config.authMethods["rest_api_key"];
1538
1320
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1539
1321
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1540
1322
  case 1:
@@ -1558,47 +1340,71 @@ exports.DefaultApiRequestFactory = DefaultApiRequestFactory;
1558
1340
  var DefaultApiResponseProcessor = (function () {
1559
1341
  function DefaultApiResponseProcessor() {
1560
1342
  }
1561
- DefaultApiResponseProcessor.prototype.beginLiveActivity = function (response) {
1343
+ DefaultApiResponseProcessor.prototype.cancelNotification = function (response) {
1562
1344
  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) {
1345
+ 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;
1346
+ return __generator(this, function (_y) {
1347
+ switch (_y.label) {
1566
1348
  case 0:
1567
1349
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1568
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
1569
- return [2];
1570
- }
1571
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
1350
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1572
1351
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1573
1352
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1574
1353
  return [4, response.body.text()];
1575
1354
  case 1:
1576
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1577
- "BadRequestError", ""]);
1578
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1355
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
1356
+ "GenericSuccessBoolResponse", ""]);
1357
+ return [2, body];
1579
1358
  case 2:
1580
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1359
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1581
1360
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1582
1361
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1583
1362
  return [4, response.body.text()];
1584
1363
  case 3:
1585
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1586
- "void", ""]);
1587
- return [2, body];
1364
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1365
+ "GenericError", ""]);
1366
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1588
1367
  case 4:
1589
- _j = exception_1.ApiException.bind;
1590
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1368
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1369
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1370
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1371
+ return [4, response.body.text()];
1372
+ case 5:
1373
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
1374
+ "GenericError", ""]);
1375
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
1376
+ case 6:
1377
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
1378
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1379
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1380
+ return [4, response.body.text()];
1381
+ case 7:
1382
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
1383
+ "RateLimitError", ""]);
1384
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1385
+ case 8:
1386
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
1387
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1388
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1389
+ return [4, response.body.text()];
1390
+ case 9:
1391
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
1392
+ "GenericSuccessBoolResponse", ""]);
1393
+ return [2, body];
1394
+ case 10:
1395
+ _w = exception_1.ApiException.bind;
1396
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1591
1397
  return [4, response.getBodyAsAny()];
1592
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1398
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
1593
1399
  }
1594
1400
  });
1595
1401
  });
1596
1402
  };
1597
- DefaultApiResponseProcessor.prototype.cancelNotification = function (response) {
1403
+ DefaultApiResponseProcessor.prototype.createAlias = function (response) {
1598
1404
  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) {
1405
+ 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;
1406
+ return __generator(this, function (_2) {
1407
+ switch (_2.label) {
1602
1408
  case 0:
1603
1409
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1604
1410
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1606,8 +1412,8 @@ var DefaultApiResponseProcessor = (function () {
1606
1412
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1607
1413
  return [4, response.body.text()];
1608
1414
  case 1:
1609
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1610
- "CancelNotificationSuccessResponse", ""]);
1415
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1416
+ "UserIdentityBody", ""]);
1611
1417
  return [2, body];
1612
1418
  case 2:
1613
1419
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1615,32 +1421,59 @@ var DefaultApiResponseProcessor = (function () {
1615
1421
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1616
1422
  return [4, response.body.text()];
1617
1423
  case 3:
1618
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1619
- "BadRequestError", ""]);
1424
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1425
+ "GenericError", ""]);
1620
1426
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1621
1427
  case 4:
1622
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1428
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1623
1429
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1624
1430
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1625
1431
  return [4, response.body.text()];
1626
1432
  case 5:
1627
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1628
- "CancelNotificationSuccessResponse", ""]);
1629
- return [2, body];
1433
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1434
+ "GenericError", ""]);
1435
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
1630
1436
  case 6:
1631
- _o = exception_1.ApiException.bind;
1632
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1437
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 8];
1438
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1439
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1440
+ return [4, response.body.text()];
1441
+ case 7:
1442
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1443
+ "GenericError", ""]);
1444
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
1445
+ case 8:
1446
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 10];
1447
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1448
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1449
+ return [4, response.body.text()];
1450
+ case 9:
1451
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1452
+ "RateLimitError", ""]);
1453
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1454
+ case 10:
1455
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1456
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1457
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1458
+ return [4, response.body.text()];
1459
+ case 11:
1460
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1461
+ "UserIdentityBody", ""]);
1462
+ return [2, body];
1463
+ case 12:
1464
+ _0 = exception_1.ApiException.bind;
1465
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1633
1466
  return [4, response.getBodyAsAny()];
1634
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1467
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1635
1468
  }
1636
1469
  });
1637
1470
  });
1638
1471
  };
1639
- DefaultApiResponseProcessor.prototype.createApp = function (response) {
1472
+ DefaultApiResponseProcessor.prototype.createAliasBySubscription = function (response) {
1640
1473
  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) {
1474
+ 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;
1475
+ return __generator(this, function (_2) {
1476
+ switch (_2.label) {
1644
1477
  case 0:
1645
1478
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1646
1479
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1648,8 +1481,8 @@ var DefaultApiResponseProcessor = (function () {
1648
1481
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1649
1482
  return [4, response.body.text()];
1650
1483
  case 1:
1651
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1652
- "App", ""]);
1484
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1485
+ "UserIdentityBody", ""]);
1653
1486
  return [2, body];
1654
1487
  case 2:
1655
1488
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1657,32 +1490,59 @@ var DefaultApiResponseProcessor = (function () {
1657
1490
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1658
1491
  return [4, response.body.text()];
1659
1492
  case 3:
1660
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1661
- "BadRequestError", ""]);
1493
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1494
+ "GenericError", ""]);
1662
1495
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1663
1496
  case 4:
1664
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1497
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1665
1498
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1666
1499
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1667
1500
  return [4, response.body.text()];
1668
1501
  case 5:
1669
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1670
- "App", ""]);
1671
- return [2, body];
1502
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1503
+ "GenericError", ""]);
1504
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
1672
1505
  case 6:
1673
- _o = exception_1.ApiException.bind;
1674
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1506
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 8];
1507
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1508
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1509
+ return [4, response.body.text()];
1510
+ case 7:
1511
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1512
+ "GenericError", ""]);
1513
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
1514
+ case 8:
1515
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 10];
1516
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1517
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1518
+ return [4, response.body.text()];
1519
+ case 9:
1520
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1521
+ "RateLimitError", ""]);
1522
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1523
+ case 10:
1524
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1525
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1526
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1527
+ return [4, response.body.text()];
1528
+ case 11:
1529
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1530
+ "UserIdentityBody", ""]);
1531
+ return [2, body];
1532
+ case 12:
1533
+ _0 = exception_1.ApiException.bind;
1534
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1675
1535
  return [4, response.getBodyAsAny()];
1676
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1536
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1677
1537
  }
1678
1538
  });
1679
1539
  });
1680
1540
  };
1681
- DefaultApiResponseProcessor.prototype.createNotification = function (response) {
1541
+ DefaultApiResponseProcessor.prototype.createApp = function (response) {
1682
1542
  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) {
1543
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1544
+ return __generator(this, function (_u) {
1545
+ switch (_u.label) {
1686
1546
  case 0:
1687
1547
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1688
1548
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1690,8 +1550,8 @@ var DefaultApiResponseProcessor = (function () {
1690
1550
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1691
1551
  return [4, response.body.text()];
1692
1552
  case 1:
1693
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1694
- "CreateNotificationSuccessResponse", ""]);
1553
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1554
+ "App", ""]);
1695
1555
  return [2, body];
1696
1556
  case 2:
1697
1557
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1699,32 +1559,41 @@ var DefaultApiResponseProcessor = (function () {
1699
1559
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1700
1560
  return [4, response.body.text()];
1701
1561
  case 3:
1702
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1703
- "BadRequestError", ""]);
1562
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1563
+ "GenericError", ""]);
1704
1564
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1705
1565
  case 4:
1706
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1566
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
1707
1567
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1708
1568
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1709
1569
  return [4, response.body.text()];
1710
1570
  case 5:
1711
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1712
- "CreateNotificationSuccessResponse", ""]);
1713
- return [2, body];
1571
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1572
+ "RateLimitError", ""]);
1573
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1714
1574
  case 6:
1715
- _o = exception_1.ApiException.bind;
1716
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1575
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1576
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1577
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1578
+ return [4, response.body.text()];
1579
+ case 7:
1580
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1581
+ "App", ""]);
1582
+ return [2, body];
1583
+ case 8:
1584
+ _s = exception_1.ApiException.bind;
1585
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1717
1586
  return [4, response.getBodyAsAny()];
1718
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1587
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1719
1588
  }
1720
1589
  });
1721
1590
  });
1722
1591
  };
1723
- DefaultApiResponseProcessor.prototype.createPlayer = function (response) {
1592
+ DefaultApiResponseProcessor.prototype.createNotification = function (response) {
1724
1593
  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) {
1594
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1595
+ return __generator(this, function (_u) {
1596
+ switch (_u.label) {
1728
1597
  case 0:
1729
1598
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1730
1599
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1732,8 +1601,8 @@ var DefaultApiResponseProcessor = (function () {
1732
1601
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1733
1602
  return [4, response.body.text()];
1734
1603
  case 1:
1735
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1736
- "CreatePlayerSuccessResponse", ""]);
1604
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1605
+ "CreateNotificationSuccessResponse", ""]);
1737
1606
  return [2, body];
1738
1607
  case 2:
1739
1608
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1741,32 +1610,41 @@ var DefaultApiResponseProcessor = (function () {
1741
1610
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1742
1611
  return [4, response.body.text()];
1743
1612
  case 3:
1744
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1745
- "BadRequestError", ""]);
1613
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1614
+ "GenericError", ""]);
1746
1615
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1747
1616
  case 4:
1748
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1617
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
1749
1618
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1750
1619
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1751
1620
  return [4, response.body.text()];
1752
1621
  case 5:
1753
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1754
- "CreatePlayerSuccessResponse", ""]);
1755
- return [2, body];
1622
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1623
+ "RateLimitError", ""]);
1624
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1756
1625
  case 6:
1757
- _o = exception_1.ApiException.bind;
1758
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1626
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1627
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1628
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1629
+ return [4, response.body.text()];
1630
+ case 7:
1631
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1632
+ "CreateNotificationSuccessResponse", ""]);
1633
+ return [2, body];
1634
+ case 8:
1635
+ _s = exception_1.ApiException.bind;
1636
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1759
1637
  return [4, response.getBodyAsAny()];
1760
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1638
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1761
1639
  }
1762
1640
  });
1763
1641
  });
1764
1642
  };
1765
- DefaultApiResponseProcessor.prototype.createSegments = function (response) {
1643
+ DefaultApiResponseProcessor.prototype.createSegment = function (response) {
1766
1644
  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) {
1645
+ 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;
1646
+ return __generator(this, function (_y) {
1647
+ switch (_y.label) {
1770
1648
  case 0:
1771
1649
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1772
1650
  if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
@@ -1774,7 +1652,7 @@ var DefaultApiResponseProcessor = (function () {
1774
1652
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1775
1653
  return [4, response.body.text()];
1776
1654
  case 1:
1777
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1655
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
1778
1656
  "CreateSegmentSuccessResponse", ""]);
1779
1657
  return [2, body];
1780
1658
  case 2:
@@ -1783,8 +1661,8 @@ var DefaultApiResponseProcessor = (function () {
1783
1661
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1784
1662
  return [4, response.body.text()];
1785
1663
  case 3:
1786
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1787
- "BadRequestError", ""]);
1664
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1665
+ "GenericError", ""]);
1788
1666
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1789
1667
  case 4:
1790
1668
  if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
@@ -1792,32 +1670,41 @@ var DefaultApiResponseProcessor = (function () {
1792
1670
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1793
1671
  return [4, response.body.text()];
1794
1672
  case 5:
1795
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1673
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
1796
1674
  "CreateSegmentConflictResponse", ""]);
1797
1675
  throw new exception_1.ApiException(409, "Conflict", body, response.headers);
1798
1676
  case 6:
1799
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1677
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
1800
1678
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1801
1679
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1802
1680
  return [4, response.body.text()];
1803
1681
  case 7:
1804
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1682
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
1683
+ "RateLimitError", ""]);
1684
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1685
+ case 8:
1686
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
1687
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1688
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1689
+ return [4, response.body.text()];
1690
+ case 9:
1691
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
1805
1692
  "CreateSegmentSuccessResponse", ""]);
1806
1693
  return [2, body];
1807
- case 8:
1808
- _s = exception_1.ApiException.bind;
1809
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1694
+ case 10:
1695
+ _w = exception_1.ApiException.bind;
1696
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1810
1697
  return [4, response.getBodyAsAny()];
1811
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1698
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
1812
1699
  }
1813
1700
  });
1814
1701
  });
1815
1702
  };
1816
1703
  DefaultApiResponseProcessor.prototype.createSubscription = function (response) {
1817
1704
  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) {
1705
+ 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;
1706
+ return __generator(this, function (_6) {
1707
+ switch (_6.label) {
1821
1708
  case 0:
1822
1709
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1823
1710
  if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
@@ -1825,8 +1712,8 @@ var DefaultApiResponseProcessor = (function () {
1825
1712
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1826
1713
  return [4, response.body.text()];
1827
1714
  case 1:
1828
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1829
- "InlineResponse201", ""]);
1715
+ body = _b.apply(_a, [_d.apply(_c, [_6.sent(), contentType]),
1716
+ "SubscriptionBody", ""]);
1830
1717
  return [2, body];
1831
1718
  case 2:
1832
1719
  if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 4];
@@ -1834,83 +1721,146 @@ var DefaultApiResponseProcessor = (function () {
1834
1721
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1835
1722
  return [4, response.body.text()];
1836
1723
  case 3:
1837
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1838
- "InlineResponse201", ""]);
1724
+ body = _f.apply(_e, [_h.apply(_g, [_6.sent(), contentType]),
1725
+ "SubscriptionBody", ""]);
1839
1726
  return [2, body];
1840
1727
  case 4:
1841
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1728
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 6];
1842
1729
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1843
1730
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1844
1731
  return [4, response.body.text()];
1845
1732
  case 5:
1846
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1847
- "InlineResponse201", ""]);
1848
- return [2, body];
1733
+ body = _k.apply(_j, [_m.apply(_l, [_6.sent(), contentType]),
1734
+ "GenericError", ""]);
1735
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1849
1736
  case 6:
1850
- _o = exception_1.ApiException.bind;
1851
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1737
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 8];
1738
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1739
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1740
+ return [4, response.body.text()];
1741
+ case 7:
1742
+ body = _p.apply(_o, [_r.apply(_q, [_6.sent(), contentType]),
1743
+ "GenericError", ""]);
1744
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
1745
+ case 8:
1746
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 10];
1747
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1748
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1749
+ return [4, response.body.text()];
1750
+ case 9:
1751
+ body = _t.apply(_s, [_v.apply(_u, [_6.sent(), contentType]),
1752
+ "GenericError", ""]);
1753
+ throw new exception_1.ApiException(409, "Operation is not permitted due to user having the maximum number of subscriptions assigned", body, response.headers);
1754
+ case 10:
1755
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 12];
1756
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1757
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1758
+ return [4, response.body.text()];
1759
+ case 11:
1760
+ body = _x.apply(_w, [_z.apply(_y, [_6.sent(), contentType]),
1761
+ "RateLimitError", ""]);
1762
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1763
+ case 12:
1764
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 14];
1765
+ _1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
1766
+ _3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
1767
+ return [4, response.body.text()];
1768
+ case 13:
1769
+ body = _1.apply(_0, [_3.apply(_2, [_6.sent(), contentType]),
1770
+ "SubscriptionBody", ""]);
1771
+ return [2, body];
1772
+ case 14:
1773
+ _4 = exception_1.ApiException.bind;
1774
+ _5 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1852
1775
  return [4, response.getBodyAsAny()];
1853
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1776
+ case 15: throw new (_4.apply(exception_1.ApiException, _5.concat([_6.sent(), response.headers])))();
1854
1777
  }
1855
1778
  });
1856
1779
  });
1857
1780
  };
1858
1781
  DefaultApiResponseProcessor.prototype.createUser = function (response) {
1859
1782
  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) {
1783
+ 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;
1784
+ return __generator(this, function (_6) {
1785
+ switch (_6.label) {
1863
1786
  case 0:
1864
1787
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1865
- if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
1788
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1866
1789
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1867
1790
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1868
1791
  return [4, response.body.text()];
1869
1792
  case 1:
1870
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1793
+ body = _b.apply(_a, [_d.apply(_c, [_6.sent(), contentType]),
1871
1794
  "User", ""]);
1872
1795
  return [2, body];
1873
1796
  case 2:
1874
- if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 4];
1797
+ if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 4];
1875
1798
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1876
1799
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1877
1800
  return [4, response.body.text()];
1878
1801
  case 3:
1879
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1802
+ body = _f.apply(_e, [_h.apply(_g, [_6.sent(), contentType]),
1880
1803
  "User", ""]);
1881
1804
  return [2, body];
1882
1805
  case 4:
1883
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
1806
+ if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 6];
1884
1807
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1885
1808
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1886
1809
  return [4, response.body.text()];
1887
1810
  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);
1811
+ body = _k.apply(_j, [_m.apply(_l, [_6.sent(), contentType]),
1812
+ "User", ""]);
1813
+ return [2, body];
1891
1814
  case 6:
1892
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1815
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 8];
1893
1816
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1894
1817
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1895
1818
  return [4, response.body.text()];
1896
1819
  case 7:
1897
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1820
+ body = _p.apply(_o, [_r.apply(_q, [_6.sent(), contentType]),
1821
+ "GenericError", ""]);
1822
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1823
+ case 8:
1824
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 10];
1825
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1826
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1827
+ return [4, response.body.text()];
1828
+ case 9:
1829
+ body = _t.apply(_s, [_v.apply(_u, [_6.sent(), contentType]),
1830
+ "CreateUserConflictResponse", ""]);
1831
+ throw new exception_1.ApiException(409, "Multiple User Identity Conflict", body, response.headers);
1832
+ case 10:
1833
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 12];
1834
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1835
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1836
+ return [4, response.body.text()];
1837
+ case 11:
1838
+ body = _x.apply(_w, [_z.apply(_y, [_6.sent(), contentType]),
1839
+ "RateLimitError", ""]);
1840
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1841
+ case 12:
1842
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 14];
1843
+ _1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
1844
+ _3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
1845
+ return [4, response.body.text()];
1846
+ case 13:
1847
+ body = _1.apply(_0, [_3.apply(_2, [_6.sent(), contentType]),
1898
1848
  "User", ""]);
1899
1849
  return [2, body];
1900
- case 8:
1901
- _s = exception_1.ApiException.bind;
1902
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1850
+ case 14:
1851
+ _4 = exception_1.ApiException.bind;
1852
+ _5 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1903
1853
  return [4, response.getBodyAsAny()];
1904
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1854
+ case 15: throw new (_4.apply(exception_1.ApiException, _5.concat([_6.sent(), response.headers])))();
1905
1855
  }
1906
1856
  });
1907
1857
  });
1908
1858
  };
1909
1859
  DefaultApiResponseProcessor.prototype.deleteAlias = function (response) {
1910
1860
  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) {
1861
+ 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;
1862
+ return __generator(this, function (_2) {
1863
+ switch (_2.label) {
1914
1864
  case 0:
1915
1865
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1916
1866
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1918,83 +1868,68 @@ var DefaultApiResponseProcessor = (function () {
1918
1868
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1919
1869
  return [4, response.body.text()];
1920
1870
  case 1:
1921
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1922
- "InlineResponse200", ""]);
1871
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1872
+ "UserIdentityBody", ""]);
1923
1873
  return [2, body];
1924
1874
  case 2:
1925
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1875
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1926
1876
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1927
1877
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1928
1878
  return [4, response.body.text()];
1929
1879
  case 3:
1930
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1931
- "InlineResponse200", ""]);
1932
- return [2, body];
1933
- case 4:
1934
- _j = exception_1.ApiException.bind;
1935
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1936
- return [4, response.getBodyAsAny()];
1937
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1938
- }
1939
- });
1940
- });
1941
- };
1942
- DefaultApiResponseProcessor.prototype.deletePlayer = function (response) {
1943
- 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) {
1947
- case 0:
1948
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1949
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1950
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1951
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1952
- return [4, response.body.text()];
1953
- case 1:
1954
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1955
- "DeletePlayerSuccessResponse", ""]);
1956
- return [2, body];
1957
- case 2:
1958
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1959
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1960
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1961
- return [4, response.body.text()];
1962
- case 3:
1963
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1964
- "BadRequestError", ""]);
1965
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1880
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1881
+ "GenericError", ""]);
1882
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1966
1883
  case 4:
1967
1884
  if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1968
1885
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1969
1886
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1970
1887
  return [4, response.body.text()];
1971
1888
  case 5:
1972
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1973
- "DeletePlayerNotFoundResponse", ""]);
1889
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1890
+ "GenericError", ""]);
1974
1891
  throw new exception_1.ApiException(404, "Not Found", body, response.headers);
1975
1892
  case 6:
1976
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1893
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 8];
1977
1894
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1978
1895
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1979
1896
  return [4, response.body.text()];
1980
1897
  case 7:
1981
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1982
- "DeletePlayerSuccessResponse", ""]);
1983
- return [2, body];
1898
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1899
+ "GenericError", ""]);
1900
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
1984
1901
  case 8:
1985
- _s = exception_1.ApiException.bind;
1986
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1902
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 10];
1903
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1904
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1905
+ return [4, response.body.text()];
1906
+ case 9:
1907
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1908
+ "RateLimitError", ""]);
1909
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1910
+ case 10:
1911
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1912
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1913
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1914
+ return [4, response.body.text()];
1915
+ case 11:
1916
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1917
+ "UserIdentityBody", ""]);
1918
+ return [2, body];
1919
+ case 12:
1920
+ _0 = exception_1.ApiException.bind;
1921
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1987
1922
  return [4, response.getBodyAsAny()];
1988
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1923
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1989
1924
  }
1990
1925
  });
1991
1926
  });
1992
1927
  };
1993
- DefaultApiResponseProcessor.prototype.deleteSegments = function (response) {
1928
+ DefaultApiResponseProcessor.prototype.deleteSegment = function (response) {
1994
1929
  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) {
1930
+ 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;
1931
+ return __generator(this, function (_y) {
1932
+ switch (_y.label) {
1998
1933
  case 0:
1999
1934
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2000
1935
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2002,8 +1937,8 @@ var DefaultApiResponseProcessor = (function () {
2002
1937
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2003
1938
  return [4, response.body.text()];
2004
1939
  case 1:
2005
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2006
- "DeleteSegmentSuccessResponse", ""]);
1940
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
1941
+ "GenericSuccessBoolResponse", ""]);
2007
1942
  return [2, body];
2008
1943
  case 2:
2009
1944
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2011,8 +1946,8 @@ var DefaultApiResponseProcessor = (function () {
2011
1946
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2012
1947
  return [4, response.body.text()];
2013
1948
  case 3:
2014
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2015
- "BadRequestError", ""]);
1949
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1950
+ "GenericError", ""]);
2016
1951
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2017
1952
  case 4:
2018
1953
  if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
@@ -2020,89 +1955,107 @@ var DefaultApiResponseProcessor = (function () {
2020
1955
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2021
1956
  return [4, response.body.text()];
2022
1957
  case 5:
2023
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2024
- "DeleteSegmentNotFoundResponse", ""]);
1958
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
1959
+ "GenericSuccessBoolResponse", ""]);
2025
1960
  throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2026
1961
  case 6:
2027
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1962
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2028
1963
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2029
1964
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2030
1965
  return [4, response.body.text()];
2031
1966
  case 7:
2032
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2033
- "DeleteSegmentSuccessResponse", ""]);
2034
- return [2, body];
1967
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
1968
+ "RateLimitError", ""]);
1969
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2035
1970
  case 8:
2036
- _s = exception_1.ApiException.bind;
2037
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1971
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
1972
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1973
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1974
+ return [4, response.body.text()];
1975
+ case 9:
1976
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
1977
+ "GenericSuccessBoolResponse", ""]);
1978
+ return [2, body];
1979
+ case 10:
1980
+ _w = exception_1.ApiException.bind;
1981
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2038
1982
  return [4, response.getBodyAsAny()];
2039
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1983
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2040
1984
  }
2041
1985
  });
2042
1986
  });
2043
1987
  };
2044
1988
  DefaultApiResponseProcessor.prototype.deleteSubscription = function (response) {
2045
1989
  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) {
1990
+ 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;
1991
+ return __generator(this, function (_y) {
1992
+ switch (_y.label) {
2049
1993
  case 0:
2050
1994
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2051
1995
  if ((0, util_1.isCodeInRange)("202", response.httpStatusCode)) {
2052
1996
  return [2];
2053
1997
  }
2054
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
1998
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
2055
1999
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2056
2000
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2057
2001
  return [4, response.body.text()];
2058
2002
  case 1:
2059
- body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
2060
- "void", ""]);
2061
- return [2, body];
2003
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2004
+ "GenericError", ""]);
2005
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2062
2006
  case 2:
2063
- _e = exception_1.ApiException.bind;
2064
- _f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2065
- return [4, response.getBodyAsAny()];
2066
- case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
2067
- }
2068
- });
2069
- });
2070
- };
2071
- DefaultApiResponseProcessor.prototype.deleteUser = function (response) {
2072
- return __awaiter(this, void 0, void 0, function () {
2073
- var contentType, body, _a, _b, _c, _d, _e, _f;
2074
- return __generator(this, function (_g) {
2075
- switch (_g.label) {
2076
- case 0:
2077
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2078
- if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
2079
- return [2];
2080
- }
2081
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
2082
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2083
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2007
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
2008
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2009
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2084
2010
  return [4, response.body.text()];
2085
- case 1:
2086
- body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
2011
+ case 3:
2012
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2013
+ "GenericError", ""]);
2014
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2015
+ case 4:
2016
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
2017
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2018
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2019
+ return [4, response.body.text()];
2020
+ case 5:
2021
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2022
+ "GenericError", ""]);
2023
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2024
+ case 6:
2025
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2026
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2027
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2028
+ return [4, response.body.text()];
2029
+ case 7:
2030
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2031
+ "RateLimitError", ""]);
2032
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2033
+ case 8:
2034
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2035
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2036
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2037
+ return [4, response.body.text()];
2038
+ case 9:
2039
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2087
2040
  "void", ""]);
2088
2041
  return [2, body];
2089
- case 2:
2090
- _e = exception_1.ApiException.bind;
2091
- _f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2042
+ case 10:
2043
+ _w = exception_1.ApiException.bind;
2044
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2092
2045
  return [4, response.getBodyAsAny()];
2093
- case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
2046
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2094
2047
  }
2095
2048
  });
2096
2049
  });
2097
2050
  };
2098
- DefaultApiResponseProcessor.prototype.endLiveActivity = function (response) {
2051
+ DefaultApiResponseProcessor.prototype.deleteUser = function (response) {
2099
2052
  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) {
2053
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2054
+ return __generator(this, function (_u) {
2055
+ switch (_u.label) {
2103
2056
  case 0:
2104
2057
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2105
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
2058
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
2106
2059
  return [2];
2107
2060
  }
2108
2061
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
@@ -2110,32 +2063,50 @@ var DefaultApiResponseProcessor = (function () {
2110
2063
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2111
2064
  return [4, response.body.text()];
2112
2065
  case 1:
2113
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2114
- "BadRequestError", ""]);
2066
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2067
+ "GenericError", ""]);
2115
2068
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2116
2069
  case 2:
2117
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2070
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
2118
2071
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2119
2072
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2120
2073
  return [4, response.body.text()];
2121
2074
  case 3:
2122
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2075
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2076
+ "GenericError", ""]);
2077
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2078
+ case 4:
2079
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2080
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2081
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2082
+ return [4, response.body.text()];
2083
+ case 5:
2084
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2085
+ "RateLimitError", ""]);
2086
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2087
+ case 6:
2088
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2089
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2090
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2091
+ return [4, response.body.text()];
2092
+ case 7:
2093
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2123
2094
  "void", ""]);
2124
2095
  return [2, body];
2125
- case 4:
2126
- _j = exception_1.ApiException.bind;
2127
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2096
+ case 8:
2097
+ _s = exception_1.ApiException.bind;
2098
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2128
2099
  return [4, response.getBodyAsAny()];
2129
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2100
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2130
2101
  }
2131
2102
  });
2132
2103
  });
2133
2104
  };
2134
- DefaultApiResponseProcessor.prototype.exportPlayers = function (response) {
2105
+ DefaultApiResponseProcessor.prototype.exportEvents = function (response) {
2135
2106
  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) {
2107
+ 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;
2108
+ return __generator(this, function (_y) {
2109
+ switch (_y.label) {
2139
2110
  case 0:
2140
2111
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2141
2112
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2143,8 +2114,8 @@ var DefaultApiResponseProcessor = (function () {
2143
2114
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2144
2115
  return [4, response.body.text()];
2145
2116
  case 1:
2146
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2147
- "ExportPlayersSuccessResponse", ""]);
2117
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2118
+ "ExportEventsSuccessResponse", ""]);
2148
2119
  return [2, body];
2149
2120
  case 2:
2150
2121
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2152,32 +2123,50 @@ var DefaultApiResponseProcessor = (function () {
2152
2123
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2153
2124
  return [4, response.body.text()];
2154
2125
  case 3:
2155
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2156
- "BadRequestError", ""]);
2126
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2127
+ "GenericError", ""]);
2157
2128
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2158
2129
  case 4:
2159
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2130
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2160
2131
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2161
2132
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2162
2133
  return [4, response.body.text()];
2163
2134
  case 5:
2164
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2165
- "ExportPlayersSuccessResponse", ""]);
2166
- return [2, body];
2135
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2136
+ "GenericError", ""]);
2137
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2167
2138
  case 6:
2168
- _o = exception_1.ApiException.bind;
2169
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2139
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2140
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2141
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2142
+ return [4, response.body.text()];
2143
+ case 7:
2144
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2145
+ "RateLimitError", ""]);
2146
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2147
+ case 8:
2148
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2149
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2150
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2151
+ return [4, response.body.text()];
2152
+ case 9:
2153
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2154
+ "ExportEventsSuccessResponse", ""]);
2155
+ return [2, body];
2156
+ case 10:
2157
+ _w = exception_1.ApiException.bind;
2158
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2170
2159
  return [4, response.getBodyAsAny()];
2171
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2160
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2172
2161
  }
2173
2162
  });
2174
2163
  });
2175
2164
  };
2176
- DefaultApiResponseProcessor.prototype.fetchAliases = function (response) {
2165
+ DefaultApiResponseProcessor.prototype.exportSubscriptions = function (response) {
2177
2166
  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) {
2167
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2168
+ return __generator(this, function (_u) {
2169
+ switch (_u.label) {
2181
2170
  case 0:
2182
2171
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2183
2172
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2185,32 +2174,50 @@ var DefaultApiResponseProcessor = (function () {
2185
2174
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2186
2175
  return [4, response.body.text()];
2187
2176
  case 1:
2188
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2189
- "UserIdentityResponse", ""]);
2177
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2178
+ "ExportSubscriptionsSuccessResponse", ""]);
2190
2179
  return [2, body];
2191
2180
  case 2:
2192
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2181
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2193
2182
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2194
2183
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2195
2184
  return [4, response.body.text()];
2196
2185
  case 3:
2197
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2198
- "UserIdentityResponse", ""]);
2199
- return [2, body];
2186
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2187
+ "GenericError", ""]);
2188
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2200
2189
  case 4:
2201
- _j = exception_1.ApiException.bind;
2202
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2190
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2191
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2192
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2193
+ return [4, response.body.text()];
2194
+ case 5:
2195
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2196
+ "RateLimitError", ""]);
2197
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2198
+ case 6:
2199
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2200
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2201
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2202
+ return [4, response.body.text()];
2203
+ case 7:
2204
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2205
+ "ExportSubscriptionsSuccessResponse", ""]);
2206
+ return [2, body];
2207
+ case 8:
2208
+ _s = exception_1.ApiException.bind;
2209
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2203
2210
  return [4, response.getBodyAsAny()];
2204
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2211
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2205
2212
  }
2206
2213
  });
2207
2214
  });
2208
2215
  };
2209
- DefaultApiResponseProcessor.prototype.fetchUser = function (response) {
2216
+ DefaultApiResponseProcessor.prototype.getAliases = function (response) {
2210
2217
  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) {
2218
+ 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;
2219
+ return __generator(this, function (_y) {
2220
+ switch (_y.label) {
2214
2221
  case 0:
2215
2222
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2216
2223
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2218,32 +2225,59 @@ var DefaultApiResponseProcessor = (function () {
2218
2225
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2219
2226
  return [4, response.body.text()];
2220
2227
  case 1:
2221
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2222
- "User", ""]);
2228
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2229
+ "UserIdentityBody", ""]);
2223
2230
  return [2, body];
2224
2231
  case 2:
2225
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2232
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2226
2233
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2227
2234
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2228
2235
  return [4, response.body.text()];
2229
2236
  case 3:
2230
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2231
- "User", ""]);
2232
- return [2, body];
2237
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2238
+ "GenericError", ""]);
2239
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2233
2240
  case 4:
2234
- _j = exception_1.ApiException.bind;
2235
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2241
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2242
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2243
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2244
+ return [4, response.body.text()];
2245
+ case 5:
2246
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2247
+ "GenericError", ""]);
2248
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2249
+ case 6:
2250
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2251
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2252
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2253
+ return [4, response.body.text()];
2254
+ case 7:
2255
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2256
+ "RateLimitError", ""]);
2257
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2258
+ case 8:
2259
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2260
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2261
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2262
+ return [4, response.body.text()];
2263
+ case 9:
2264
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2265
+ "UserIdentityBody", ""]);
2266
+ return [2, body];
2267
+ case 10:
2268
+ _w = exception_1.ApiException.bind;
2269
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2236
2270
  return [4, response.getBodyAsAny()];
2237
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2271
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2238
2272
  }
2239
2273
  });
2240
2274
  });
2241
2275
  };
2242
- DefaultApiResponseProcessor.prototype.fetchUserIdentity = function (response) {
2276
+ DefaultApiResponseProcessor.prototype.getAliasesBySubscription = function (response) {
2243
2277
  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) {
2278
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2279
+ return __generator(this, function (_u) {
2280
+ switch (_u.label) {
2247
2281
  case 0:
2248
2282
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2249
2283
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2251,32 +2285,50 @@ var DefaultApiResponseProcessor = (function () {
2251
2285
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2252
2286
  return [4, response.body.text()];
2253
2287
  case 1:
2254
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2255
- "InlineResponse200", ""]);
2288
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2289
+ "UserIdentityBody", ""]);
2256
2290
  return [2, body];
2257
2291
  case 2:
2258
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2292
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2259
2293
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2260
2294
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2261
2295
  return [4, response.body.text()];
2262
2296
  case 3:
2263
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2264
- "InlineResponse200", ""]);
2265
- return [2, body];
2297
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2298
+ "GenericError", ""]);
2299
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2266
2300
  case 4:
2267
- _j = exception_1.ApiException.bind;
2268
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2301
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2302
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2303
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2304
+ return [4, response.body.text()];
2305
+ case 5:
2306
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2307
+ "GenericError", ""]);
2308
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2309
+ case 6:
2310
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2311
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2312
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2313
+ return [4, response.body.text()];
2314
+ case 7:
2315
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2316
+ "UserIdentityBody", ""]);
2317
+ return [2, body];
2318
+ case 8:
2319
+ _s = exception_1.ApiException.bind;
2320
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2269
2321
  return [4, response.getBodyAsAny()];
2270
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2322
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2271
2323
  }
2272
2324
  });
2273
2325
  });
2274
2326
  };
2275
2327
  DefaultApiResponseProcessor.prototype.getApp = function (response) {
2276
2328
  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) {
2329
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2330
+ return __generator(this, function (_u) {
2331
+ switch (_u.label) {
2280
2332
  case 0:
2281
2333
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2282
2334
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2284,7 +2336,7 @@ var DefaultApiResponseProcessor = (function () {
2284
2336
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2285
2337
  return [4, response.body.text()];
2286
2338
  case 1:
2287
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2339
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2288
2340
  "App", ""]);
2289
2341
  return [2, body];
2290
2342
  case 2:
@@ -2293,32 +2345,41 @@ var DefaultApiResponseProcessor = (function () {
2293
2345
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2294
2346
  return [4, response.body.text()];
2295
2347
  case 3:
2296
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2297
- "BadRequestError", ""]);
2348
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2349
+ "GenericError", ""]);
2298
2350
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2299
2351
  case 4:
2300
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2352
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2301
2353
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2302
2354
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2303
2355
  return [4, response.body.text()];
2304
2356
  case 5:
2305
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2357
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2358
+ "RateLimitError", ""]);
2359
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2360
+ case 6:
2361
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2362
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2363
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2364
+ return [4, response.body.text()];
2365
+ case 7:
2366
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2306
2367
  "App", ""]);
2307
2368
  return [2, body];
2308
- case 6:
2309
- _o = exception_1.ApiException.bind;
2310
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2369
+ case 8:
2370
+ _s = exception_1.ApiException.bind;
2371
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2311
2372
  return [4, response.getBodyAsAny()];
2312
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2373
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2313
2374
  }
2314
2375
  });
2315
2376
  });
2316
2377
  };
2317
2378
  DefaultApiResponseProcessor.prototype.getApps = function (response) {
2318
2379
  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) {
2380
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2381
+ return __generator(this, function (_u) {
2382
+ switch (_u.label) {
2322
2383
  case 0:
2323
2384
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2324
2385
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2326,7 +2387,7 @@ var DefaultApiResponseProcessor = (function () {
2326
2387
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2327
2388
  return [4, response.body.text()];
2328
2389
  case 1:
2329
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2390
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2330
2391
  "Array<App>", ""]);
2331
2392
  return [2, body];
2332
2393
  case 2:
@@ -2335,65 +2396,41 @@ var DefaultApiResponseProcessor = (function () {
2335
2396
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2336
2397
  return [4, response.body.text()];
2337
2398
  case 3:
2338
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2339
- "BadRequestError", ""]);
2399
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2400
+ "GenericError", ""]);
2340
2401
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2341
2402
  case 4:
2342
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2403
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2343
2404
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2344
2405
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2345
2406
  return [4, response.body.text()];
2346
2407
  case 5:
2347
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2348
- "Array<App>", ""]);
2349
- return [2, body];
2408
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2409
+ "RateLimitError", ""]);
2410
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2350
2411
  case 6:
2351
- _o = exception_1.ApiException.bind;
2352
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2353
- return [4, response.getBodyAsAny()];
2354
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2355
- }
2356
- });
2357
- });
2358
- };
2359
- DefaultApiResponseProcessor.prototype.getEligibleIams = function (response) {
2360
- 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) {
2364
- case 0:
2365
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2366
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2367
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2368
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2369
- return [4, response.body.text()];
2370
- case 1:
2371
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2372
- "InlineResponse2003", ""]);
2373
- return [2, body];
2374
- case 2:
2375
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2376
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2377
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2412
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2413
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2414
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2378
2415
  return [4, response.body.text()];
2379
- case 3:
2380
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2381
- "InlineResponse2003", ""]);
2416
+ case 7:
2417
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2418
+ "Array<App>", ""]);
2382
2419
  return [2, body];
2383
- case 4:
2384
- _j = exception_1.ApiException.bind;
2385
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2420
+ case 8:
2421
+ _s = exception_1.ApiException.bind;
2422
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2386
2423
  return [4, response.getBodyAsAny()];
2387
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2424
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2388
2425
  }
2389
2426
  });
2390
2427
  });
2391
2428
  };
2392
2429
  DefaultApiResponseProcessor.prototype.getNotification = function (response) {
2393
2430
  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) {
2431
+ 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;
2432
+ return __generator(this, function (_y) {
2433
+ switch (_y.label) {
2397
2434
  case 0:
2398
2435
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2399
2436
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2401,7 +2438,7 @@ var DefaultApiResponseProcessor = (function () {
2401
2438
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2402
2439
  return [4, response.body.text()];
2403
2440
  case 1:
2404
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2441
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2405
2442
  "NotificationWithMeta", ""]);
2406
2443
  return [2, body];
2407
2444
  case 2:
@@ -2410,32 +2447,50 @@ var DefaultApiResponseProcessor = (function () {
2410
2447
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2411
2448
  return [4, response.body.text()];
2412
2449
  case 3:
2413
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2414
- "BadRequestError", ""]);
2450
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2451
+ "GenericError", ""]);
2415
2452
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2416
2453
  case 4:
2417
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2454
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2418
2455
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2419
2456
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2420
2457
  return [4, response.body.text()];
2421
2458
  case 5:
2422
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2459
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2460
+ "GenericError", ""]);
2461
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2462
+ case 6:
2463
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2464
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2465
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2466
+ return [4, response.body.text()];
2467
+ case 7:
2468
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2469
+ "RateLimitError", ""]);
2470
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2471
+ case 8:
2472
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2473
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2474
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2475
+ return [4, response.body.text()];
2476
+ case 9:
2477
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2423
2478
  "NotificationWithMeta", ""]);
2424
2479
  return [2, body];
2425
- case 6:
2426
- _o = exception_1.ApiException.bind;
2427
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2480
+ case 10:
2481
+ _w = exception_1.ApiException.bind;
2482
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2428
2483
  return [4, response.getBodyAsAny()];
2429
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2484
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2430
2485
  }
2431
2486
  });
2432
2487
  });
2433
2488
  };
2434
2489
  DefaultApiResponseProcessor.prototype.getNotificationHistory = function (response) {
2435
2490
  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) {
2491
+ 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;
2492
+ return __generator(this, function (_y) {
2493
+ switch (_y.label) {
2439
2494
  case 0:
2440
2495
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2441
2496
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2443,7 +2498,7 @@ var DefaultApiResponseProcessor = (function () {
2443
2498
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2444
2499
  return [4, response.body.text()];
2445
2500
  case 1:
2446
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2501
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2447
2502
  "NotificationHistorySuccessResponse", ""]);
2448
2503
  return [2, body];
2449
2504
  case 2:
@@ -2452,32 +2507,50 @@ var DefaultApiResponseProcessor = (function () {
2452
2507
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2453
2508
  return [4, response.body.text()];
2454
2509
  case 3:
2455
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2456
- "BadRequestError", ""]);
2510
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2511
+ "GenericError", ""]);
2457
2512
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2458
2513
  case 4:
2459
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2514
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2460
2515
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2461
2516
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2462
2517
  return [4, response.body.text()];
2463
2518
  case 5:
2464
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2519
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2520
+ "GenericError", ""]);
2521
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2522
+ case 6:
2523
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2524
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2525
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2526
+ return [4, response.body.text()];
2527
+ case 7:
2528
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2529
+ "RateLimitError", ""]);
2530
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2531
+ case 8:
2532
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2533
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2534
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2535
+ return [4, response.body.text()];
2536
+ case 9:
2537
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2465
2538
  "NotificationHistorySuccessResponse", ""]);
2466
2539
  return [2, body];
2467
- case 6:
2468
- _o = exception_1.ApiException.bind;
2469
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2540
+ case 10:
2541
+ _w = exception_1.ApiException.bind;
2542
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2470
2543
  return [4, response.getBodyAsAny()];
2471
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2544
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2472
2545
  }
2473
2546
  });
2474
2547
  });
2475
2548
  };
2476
2549
  DefaultApiResponseProcessor.prototype.getNotifications = function (response) {
2477
2550
  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) {
2551
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2552
+ return __generator(this, function (_u) {
2553
+ switch (_u.label) {
2481
2554
  case 0:
2482
2555
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2483
2556
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2485,7 +2558,7 @@ var DefaultApiResponseProcessor = (function () {
2485
2558
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2486
2559
  return [4, response.body.text()];
2487
2560
  case 1:
2488
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2561
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2489
2562
  "NotificationSlice", ""]);
2490
2563
  return [2, body];
2491
2564
  case 2:
@@ -2494,32 +2567,41 @@ var DefaultApiResponseProcessor = (function () {
2494
2567
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2495
2568
  return [4, response.body.text()];
2496
2569
  case 3:
2497
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2498
- "BadRequestError", ""]);
2570
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2571
+ "GenericError", ""]);
2499
2572
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2500
2573
  case 4:
2501
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2574
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2502
2575
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2503
2576
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2504
2577
  return [4, response.body.text()];
2505
2578
  case 5:
2506
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2579
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2580
+ "RateLimitError", ""]);
2581
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2582
+ case 6:
2583
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2584
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2585
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2586
+ return [4, response.body.text()];
2587
+ case 7:
2588
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2507
2589
  "NotificationSlice", ""]);
2508
2590
  return [2, body];
2509
- case 6:
2510
- _o = exception_1.ApiException.bind;
2511
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2591
+ case 8:
2592
+ _s = exception_1.ApiException.bind;
2593
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2512
2594
  return [4, response.getBodyAsAny()];
2513
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2595
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2514
2596
  }
2515
2597
  });
2516
2598
  });
2517
2599
  };
2518
2600
  DefaultApiResponseProcessor.prototype.getOutcomes = function (response) {
2519
2601
  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) {
2602
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2603
+ return __generator(this, function (_u) {
2604
+ switch (_u.label) {
2523
2605
  case 0:
2524
2606
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2525
2607
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2527,7 +2609,7 @@ var DefaultApiResponseProcessor = (function () {
2527
2609
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2528
2610
  return [4, response.body.text()];
2529
2611
  case 1:
2530
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2612
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2531
2613
  "OutcomesData", ""]);
2532
2614
  return [2, body];
2533
2615
  case 2:
@@ -2536,41 +2618,50 @@ var DefaultApiResponseProcessor = (function () {
2536
2618
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2537
2619
  return [4, response.body.text()];
2538
2620
  case 3:
2539
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2540
- "BadRequestError", ""]);
2621
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2622
+ "GenericError", ""]);
2541
2623
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2542
2624
  case 4:
2543
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2625
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2544
2626
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2545
2627
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2546
2628
  return [4, response.body.text()];
2547
2629
  case 5:
2548
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2630
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2631
+ "RateLimitError", ""]);
2632
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2633
+ case 6:
2634
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2635
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2636
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2637
+ return [4, response.body.text()];
2638
+ case 7:
2639
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2549
2640
  "OutcomesData", ""]);
2550
2641
  return [2, body];
2551
- case 6:
2552
- _o = exception_1.ApiException.bind;
2553
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2642
+ case 8:
2643
+ _s = exception_1.ApiException.bind;
2644
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2554
2645
  return [4, response.getBodyAsAny()];
2555
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2646
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2556
2647
  }
2557
2648
  });
2558
2649
  });
2559
2650
  };
2560
- DefaultApiResponseProcessor.prototype.getPlayer = function (response) {
2651
+ DefaultApiResponseProcessor.prototype.getSegments = function (response) {
2561
2652
  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) {
2653
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2654
+ return __generator(this, function (_u) {
2655
+ switch (_u.label) {
2565
2656
  case 0:
2566
2657
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2567
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2658
+ if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
2568
2659
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2569
2660
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2570
2661
  return [4, response.body.text()];
2571
2662
  case 1:
2572
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2573
- "Player", ""]);
2663
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2664
+ "GetSegmentsSuccessResponse", ""]);
2574
2665
  return [2, body];
2575
2666
  case 2:
2576
2667
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2578,32 +2669,41 @@ var DefaultApiResponseProcessor = (function () {
2578
2669
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2579
2670
  return [4, response.body.text()];
2580
2671
  case 3:
2581
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2582
- "BadRequestError", ""]);
2672
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2673
+ "GenericError", ""]);
2583
2674
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2584
2675
  case 4:
2585
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2676
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2586
2677
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2587
2678
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2588
2679
  return [4, response.body.text()];
2589
2680
  case 5:
2590
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2591
- "Player", ""]);
2592
- return [2, body];
2681
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2682
+ "RateLimitError", ""]);
2683
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2593
2684
  case 6:
2594
- _o = exception_1.ApiException.bind;
2595
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2685
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2686
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2687
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2688
+ return [4, response.body.text()];
2689
+ case 7:
2690
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2691
+ "GetSegmentsSuccessResponse", ""]);
2692
+ return [2, body];
2693
+ case 8:
2694
+ _s = exception_1.ApiException.bind;
2695
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2596
2696
  return [4, response.getBodyAsAny()];
2597
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2697
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2598
2698
  }
2599
2699
  });
2600
2700
  });
2601
2701
  };
2602
- DefaultApiResponseProcessor.prototype.getPlayers = function (response) {
2702
+ DefaultApiResponseProcessor.prototype.getUser = function (response) {
2603
2703
  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) {
2704
+ 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;
2705
+ return __generator(this, function (_y) {
2706
+ switch (_y.label) {
2607
2707
  case 0:
2608
2708
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2609
2709
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2611,8 +2711,8 @@ var DefaultApiResponseProcessor = (function () {
2611
2711
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2612
2712
  return [4, response.body.text()];
2613
2713
  case 1:
2614
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2615
- "PlayerSlice", ""]);
2714
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2715
+ "User", ""]);
2616
2716
  return [2, body];
2617
2717
  case 2:
2618
2718
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2620,32 +2720,50 @@ var DefaultApiResponseProcessor = (function () {
2620
2720
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2621
2721
  return [4, response.body.text()];
2622
2722
  case 3:
2623
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2624
- "BadRequestError", ""]);
2723
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2724
+ "GenericError", ""]);
2625
2725
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2626
2726
  case 4:
2627
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2727
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2628
2728
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2629
2729
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2630
2730
  return [4, response.body.text()];
2631
2731
  case 5:
2632
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2633
- "PlayerSlice", ""]);
2634
- return [2, body];
2732
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2733
+ "GenericError", ""]);
2734
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2635
2735
  case 6:
2636
- _o = exception_1.ApiException.bind;
2637
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2736
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2737
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2738
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2739
+ return [4, response.body.text()];
2740
+ case 7:
2741
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2742
+ "RateLimitError", ""]);
2743
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2744
+ case 8:
2745
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2746
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2747
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2748
+ return [4, response.body.text()];
2749
+ case 9:
2750
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2751
+ "User", ""]);
2752
+ return [2, body];
2753
+ case 10:
2754
+ _w = exception_1.ApiException.bind;
2755
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2638
2756
  return [4, response.getBodyAsAny()];
2639
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2757
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2640
2758
  }
2641
2759
  });
2642
2760
  });
2643
2761
  };
2644
- DefaultApiResponseProcessor.prototype.identifyUserByAlias = function (response) {
2762
+ DefaultApiResponseProcessor.prototype.transferSubscription = function (response) {
2645
2763
  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) {
2764
+ 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;
2765
+ return __generator(this, function (_2) {
2766
+ switch (_2.label) {
2649
2767
  case 0:
2650
2768
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2651
2769
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2653,116 +2771,119 @@ var DefaultApiResponseProcessor = (function () {
2653
2771
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2654
2772
  return [4, response.body.text()];
2655
2773
  case 1:
2656
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2657
- "InlineResponse200", ""]);
2774
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
2775
+ "UserIdentityBody", ""]);
2658
2776
  return [2, body];
2659
2777
  case 2:
2660
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
2778
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2661
2779
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2662
2780
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2663
2781
  return [4, response.body.text()];
2664
2782
  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);
2783
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
2784
+ "GenericError", ""]);
2785
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2668
2786
  case 4:
2669
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2787
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2670
2788
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2671
2789
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2672
2790
  return [4, response.body.text()];
2673
2791
  case 5:
2674
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2675
- "InlineResponse200", ""]);
2676
- return [2, body];
2792
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
2793
+ "GenericError", ""]);
2794
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2677
2795
  case 6:
2678
- _o = exception_1.ApiException.bind;
2679
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2796
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 8];
2797
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2798
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2799
+ return [4, response.body.text()];
2800
+ case 7:
2801
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
2802
+ "GenericError", ""]);
2803
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2804
+ case 8:
2805
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 10];
2806
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2807
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2808
+ return [4, response.body.text()];
2809
+ case 9:
2810
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
2811
+ "RateLimitError", ""]);
2812
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2813
+ case 10:
2814
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
2815
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
2816
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
2817
+ return [4, response.body.text()];
2818
+ case 11:
2819
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
2820
+ "UserIdentityBody", ""]);
2821
+ return [2, body];
2822
+ case 12:
2823
+ _0 = exception_1.ApiException.bind;
2824
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2680
2825
  return [4, response.getBodyAsAny()];
2681
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2826
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
2682
2827
  }
2683
2828
  });
2684
2829
  });
2685
2830
  };
2686
- DefaultApiResponseProcessor.prototype.identifyUserBySubscriptionId = function (response) {
2831
+ DefaultApiResponseProcessor.prototype.unsubscribeEmailWithToken = function (response) {
2687
2832
  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) {
2833
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2834
+ return __generator(this, function (_u) {
2835
+ switch (_u.label) {
2691
2836
  case 0:
2692
2837
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2693
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2838
+ if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 2];
2694
2839
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2695
2840
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2696
2841
  return [4, response.body.text()];
2697
2842
  case 1:
2698
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2699
- "UserIdentityResponse", ""]);
2843
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2844
+ "GenericSuccessBoolResponse", ""]);
2700
2845
  return [2, body];
2701
2846
  case 2:
2702
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
2847
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2703
2848
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2704
2849
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2705
2850
  return [4, response.body.text()];
2706
2851
  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);
2852
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2853
+ "GenericError", ""]);
2854
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2710
2855
  case 4:
2711
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2856
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2712
2857
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2713
2858
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2714
2859
  return [4, response.body.text()];
2715
2860
  case 5:
2716
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2717
- "UserIdentityResponse", ""]);
2718
- return [2, body];
2861
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2862
+ "RateLimitError", ""]);
2863
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2719
2864
  case 6:
2720
- _o = exception_1.ApiException.bind;
2721
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2722
- return [4, response.getBodyAsAny()];
2723
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2724
- }
2725
- });
2726
- });
2727
- };
2728
- DefaultApiResponseProcessor.prototype.transferSubscription = function (response) {
2729
- 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) {
2733
- case 0:
2734
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2735
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2736
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2737
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2738
- return [4, response.body.text()];
2739
- case 1:
2740
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2741
- "UserIdentityResponse", ""]);
2742
- return [2, body];
2743
- case 2:
2744
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2745
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2746
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2865
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2866
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2867
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2747
2868
  return [4, response.body.text()];
2748
- case 3:
2749
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2750
- "UserIdentityResponse", ""]);
2869
+ case 7:
2870
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2871
+ "GenericSuccessBoolResponse", ""]);
2751
2872
  return [2, body];
2752
- case 4:
2753
- _j = exception_1.ApiException.bind;
2754
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2873
+ case 8:
2874
+ _s = exception_1.ApiException.bind;
2875
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2755
2876
  return [4, response.getBodyAsAny()];
2756
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2877
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2757
2878
  }
2758
2879
  });
2759
2880
  });
2760
2881
  };
2761
2882
  DefaultApiResponseProcessor.prototype.updateApp = function (response) {
2762
2883
  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) {
2884
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2885
+ return __generator(this, function (_u) {
2886
+ switch (_u.label) {
2766
2887
  case 0:
2767
2888
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2768
2889
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2770,7 +2891,7 @@ var DefaultApiResponseProcessor = (function () {
2770
2891
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2771
2892
  return [4, response.body.text()];
2772
2893
  case 1:
2773
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2894
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2774
2895
  "App", ""]);
2775
2896
  return [2, body];
2776
2897
  case 2:
@@ -2779,32 +2900,41 @@ var DefaultApiResponseProcessor = (function () {
2779
2900
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2780
2901
  return [4, response.body.text()];
2781
2902
  case 3:
2782
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2783
- "BadRequestError", ""]);
2903
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2904
+ "GenericError", ""]);
2784
2905
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2785
2906
  case 4:
2786
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2907
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2787
2908
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2788
2909
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2789
2910
  return [4, response.body.text()];
2790
2911
  case 5:
2791
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2912
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2913
+ "RateLimitError", ""]);
2914
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2915
+ case 6:
2916
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2917
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2918
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2919
+ return [4, response.body.text()];
2920
+ case 7:
2921
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2792
2922
  "App", ""]);
2793
2923
  return [2, body];
2794
- case 6:
2795
- _o = exception_1.ApiException.bind;
2796
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2924
+ case 8:
2925
+ _s = exception_1.ApiException.bind;
2926
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2797
2927
  return [4, response.getBodyAsAny()];
2798
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2928
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2799
2929
  }
2800
2930
  });
2801
2931
  });
2802
2932
  };
2803
2933
  DefaultApiResponseProcessor.prototype.updateLiveActivity = function (response) {
2804
2934
  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) {
2935
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2936
+ return __generator(this, function (_u) {
2937
+ switch (_u.label) {
2808
2938
  case 0:
2809
2939
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2810
2940
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2812,7 +2942,7 @@ var DefaultApiResponseProcessor = (function () {
2812
2942
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2813
2943
  return [4, response.body.text()];
2814
2944
  case 1:
2815
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2945
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2816
2946
  "UpdateLiveActivitySuccessResponse", ""]);
2817
2947
  return [2, body];
2818
2948
  case 2:
@@ -2821,134 +2951,104 @@ var DefaultApiResponseProcessor = (function () {
2821
2951
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2822
2952
  return [4, response.body.text()];
2823
2953
  case 3:
2824
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2825
- "BadRequestError", ""]);
2954
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2955
+ "GenericError", ""]);
2826
2956
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2827
2957
  case 4:
2828
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2958
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2829
2959
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2830
2960
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2831
2961
  return [4, response.body.text()];
2832
2962
  case 5:
2833
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2963
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2964
+ "RateLimitError", ""]);
2965
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2966
+ case 6:
2967
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2968
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2969
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2970
+ return [4, response.body.text()];
2971
+ case 7:
2972
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2834
2973
  "UpdateLiveActivitySuccessResponse", ""]);
2835
2974
  return [2, body];
2836
- case 6:
2837
- _o = exception_1.ApiException.bind;
2838
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2975
+ case 8:
2976
+ _s = exception_1.ApiException.bind;
2977
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2839
2978
  return [4, response.getBodyAsAny()];
2840
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2979
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2841
2980
  }
2842
2981
  });
2843
2982
  });
2844
2983
  };
2845
- DefaultApiResponseProcessor.prototype.updatePlayer = function (response) {
2984
+ DefaultApiResponseProcessor.prototype.updateSubscription = function (response) {
2846
2985
  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) {
2986
+ 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;
2987
+ return __generator(this, function (_y) {
2988
+ switch (_y.label) {
2850
2989
  case 0:
2851
2990
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2852
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2991
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
2992
+ return [2];
2993
+ }
2994
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
2853
2995
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2854
2996
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2855
2997
  return [4, response.body.text()];
2856
2998
  case 1:
2857
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2858
- "UpdatePlayerSuccessResponse", ""]);
2859
- return [2, body];
2999
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
3000
+ "GenericError", ""]);
3001
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2860
3002
  case 2:
2861
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
3003
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
2862
3004
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2863
3005
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2864
3006
  return [4, response.body.text()];
2865
3007
  case 3:
2866
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2867
- "BadRequestError", ""]);
2868
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
3008
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
3009
+ "GenericError", ""]);
3010
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2869
3011
  case 4:
2870
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
3012
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
2871
3013
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2872
3014
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2873
3015
  return [4, response.body.text()];
2874
3016
  case 5:
2875
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2876
- "UpdatePlayerSuccessResponse", ""]);
2877
- return [2, body];
3017
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
3018
+ "GenericError", ""]);
3019
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2878
3020
  case 6:
2879
- _o = exception_1.ApiException.bind;
2880
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2881
- return [4, response.getBodyAsAny()];
2882
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2883
- }
2884
- });
2885
- });
2886
- };
2887
- DefaultApiResponseProcessor.prototype.updatePlayerTags = function (response) {
2888
- 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) {
2892
- case 0:
2893
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2894
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2895
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2896
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2897
- return [4, response.body.text()];
2898
- case 1:
2899
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2900
- "UpdatePlayerTagsSuccessResponse", ""]);
2901
- return [2, body];
2902
- case 2:
2903
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2904
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2905
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
3021
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
3022
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3023
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2906
3024
  return [4, response.body.text()];
2907
- case 3:
2908
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2909
- "UpdatePlayerTagsSuccessResponse", ""]);
2910
- return [2, body];
2911
- case 4:
2912
- _j = exception_1.ApiException.bind;
2913
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2914
- return [4, response.getBodyAsAny()];
2915
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2916
- }
2917
- });
2918
- });
2919
- };
2920
- DefaultApiResponseProcessor.prototype.updateSubscription = function (response) {
2921
- return __awaiter(this, void 0, void 0, function () {
2922
- var contentType, body, _a, _b, _c, _d, _e, _f;
2923
- return __generator(this, function (_g) {
2924
- switch (_g.label) {
2925
- case 0:
2926
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2927
- if ((0, util_1.isCodeInRange)("202", response.httpStatusCode)) {
2928
- return [2];
2929
- }
2930
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
2931
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2932
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
3025
+ case 7:
3026
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3027
+ "RateLimitError", ""]);
3028
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3029
+ case 8:
3030
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
3031
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
3032
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2933
3033
  return [4, response.body.text()];
2934
- case 1:
2935
- body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
3034
+ case 9:
3035
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2936
3036
  "void", ""]);
2937
3037
  return [2, body];
2938
- case 2:
2939
- _e = exception_1.ApiException.bind;
2940
- _f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3038
+ case 10:
3039
+ _w = exception_1.ApiException.bind;
3040
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2941
3041
  return [4, response.getBodyAsAny()];
2942
- case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
3042
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2943
3043
  }
2944
3044
  });
2945
3045
  });
2946
3046
  };
2947
3047
  DefaultApiResponseProcessor.prototype.updateUser = function (response) {
2948
3048
  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) {
3049
+ 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;
3050
+ return __generator(this, function (_y) {
3051
+ switch (_y.label) {
2952
3052
  case 0:
2953
3053
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2954
3054
  if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 2];
@@ -2956,23 +3056,50 @@ var DefaultApiResponseProcessor = (function () {
2956
3056
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2957
3057
  return [4, response.body.text()];
2958
3058
  case 1:
2959
- body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2960
- "InlineResponse202", ""]);
3059
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
3060
+ "PropertiesBody", ""]);
2961
3061
  return [2, body];
2962
3062
  case 2:
2963
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
3063
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2964
3064
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2965
3065
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2966
3066
  return [4, response.body.text()];
2967
3067
  case 3:
2968
- body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2969
- "InlineResponse202", ""]);
2970
- return [2, body];
3068
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
3069
+ "GenericError", ""]);
3070
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2971
3071
  case 4:
2972
- _j = exception_1.ApiException.bind;
2973
- _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3072
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
3073
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
3074
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
3075
+ return [4, response.body.text()];
3076
+ case 5:
3077
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
3078
+ "GenericError", ""]);
3079
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
3080
+ case 6:
3081
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
3082
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3083
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3084
+ return [4, response.body.text()];
3085
+ case 7:
3086
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3087
+ "RateLimitError", ""]);
3088
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3089
+ case 8:
3090
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
3091
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
3092
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
3093
+ return [4, response.body.text()];
3094
+ case 9:
3095
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
3096
+ "PropertiesBody", ""]);
3097
+ return [2, body];
3098
+ case 10:
3099
+ _w = exception_1.ApiException.bind;
3100
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2974
3101
  return [4, response.getBodyAsAny()];
2975
- case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
3102
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2976
3103
  }
2977
3104
  });
2978
3105
  });