@onesignal/node-onesignal 2.0.1-beta2 → 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 (268) hide show
  1. package/DefaultApi.md +401 -778
  2. package/apis/DefaultApi.ts +682 -1216
  3. package/auth/auth.ts +14 -14
  4. package/configuration.ts +6 -6
  5. package/dist/apis/DefaultApi.d.ts +36 -63
  6. package/dist/apis/DefaultApi.js +653 -1174
  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/{ExportPlayersRequestBody.d.ts → ExportSubscriptionsRequestBody.d.ts} +1 -1
  24. package/dist/models/ExportSubscriptionsRequestBody.js +34 -0
  25. package/dist/models/ExportSubscriptionsRequestBody.js.map +1 -0
  26. package/dist/models/{ExportPlayersSuccessResponse.d.ts → ExportSubscriptionsSuccessResponse.d.ts} +1 -1
  27. package/dist/models/ExportSubscriptionsSuccessResponse.js +22 -0
  28. package/dist/models/ExportSubscriptionsSuccessResponse.js.map +1 -0
  29. package/dist/models/Filter.d.ts +6 -2
  30. package/dist/models/Filter.js +24 -0
  31. package/dist/models/Filter.js.map +1 -1
  32. package/dist/models/FilterExpression.d.ts +27 -0
  33. package/dist/models/FilterExpression.js +70 -0
  34. package/dist/models/FilterExpression.js.map +1 -0
  35. package/dist/models/GenericError.d.ts +3 -2
  36. package/dist/models/GenericError.js +13 -1
  37. package/dist/models/GenericError.js.map +1 -1
  38. package/dist/models/{DeletePlayerSuccessResponse.d.ts → GenericSuccessBoolResponse.d.ts} +1 -1
  39. package/dist/models/GenericSuccessBoolResponse.js +22 -0
  40. package/dist/models/GenericSuccessBoolResponse.js.map +1 -0
  41. package/dist/models/{GetNotificationRequestBody.d.ts → GetNotificationHistoryRequestBody.d.ts} +3 -3
  42. package/dist/models/GetNotificationHistoryRequestBody.js +34 -0
  43. package/dist/models/GetNotificationHistoryRequestBody.js.map +1 -0
  44. package/dist/models/{PlayerSlice.d.ts → GetSegmentsSuccessResponse.d.ts} +3 -3
  45. package/dist/models/GetSegmentsSuccessResponse.js +40 -0
  46. package/dist/models/GetSegmentsSuccessResponse.js.map +1 -0
  47. package/dist/models/InvalidIdentifierError.d.ts +1 -1
  48. package/dist/models/InvalidIdentifierError.js +2 -2
  49. package/dist/models/InvalidIdentifierError.js.map +1 -1
  50. package/dist/models/{StringMap.d.ts → LanguageStringMap.d.ts} +1 -1
  51. package/dist/models/{StringMap.js → LanguageStringMap.js} +10 -10
  52. package/dist/models/LanguageStringMap.js.map +1 -0
  53. package/dist/models/Notification.d.ts +14 -12
  54. package/dist/models/Notification.js +20 -20
  55. package/dist/models/Notification.js.map +1 -1
  56. package/dist/models/NotificationTarget.d.ts +4 -4
  57. package/dist/models/NotificationTarget.js +3 -9
  58. package/dist/models/NotificationTarget.js.map +1 -1
  59. package/dist/models/NotificationWithMeta.d.ts +14 -12
  60. package/dist/models/NotificationWithMeta.js +20 -20
  61. package/dist/models/NotificationWithMeta.js.map +1 -1
  62. package/dist/models/ObjectSerializer.d.ts +15 -32
  63. package/dist/models/ObjectSerializer.js +50 -102
  64. package/dist/models/ObjectSerializer.js.map +1 -1
  65. package/dist/models/{InlineResponse202.d.ts → PropertiesBody.d.ts} +1 -1
  66. package/dist/models/PropertiesBody.js +22 -0
  67. package/dist/models/PropertiesBody.js.map +1 -0
  68. package/dist/models/{DeleteSegmentNotFoundResponse.d.ts → RateLimitError.d.ts} +3 -2
  69. package/dist/models/RateLimitError.js +28 -0
  70. package/dist/models/RateLimitError.js.map +1 -0
  71. package/dist/models/Segment.d.ts +2 -2
  72. package/dist/models/Segment.js +1 -1
  73. package/dist/models/Segment.js.map +1 -1
  74. package/dist/models/{CreateSubscriptionRequestBody.d.ts → SegmentData.d.ts} +8 -4
  75. package/dist/models/SegmentData.js +58 -0
  76. package/dist/models/SegmentData.js.map +1 -0
  77. package/dist/models/{SubscriptionObject.d.ts → Subscription.d.ts} +3 -3
  78. package/dist/models/{SubscriptionObject.js → Subscription.js} +11 -11
  79. package/dist/models/Subscription.js.map +1 -0
  80. package/dist/models/{CreatePlayerSuccessResponse.d.ts → SubscriptionBody.d.ts} +3 -3
  81. package/dist/models/SubscriptionBody.js +22 -0
  82. package/dist/models/SubscriptionBody.js.map +1 -0
  83. package/dist/models/{PlayerNotificationTarget.d.ts → SubscriptionNotificationTarget.d.ts} +7 -7
  84. package/dist/models/{PlayerNotificationTarget.js → SubscriptionNotificationTarget.js} +14 -20
  85. package/dist/models/SubscriptionNotificationTarget.js.map +1 -0
  86. package/dist/models/TransferSubscriptionRequestBody.d.ts +1 -1
  87. package/dist/models/TransferSubscriptionRequestBody.js +1 -1
  88. package/dist/models/TransferSubscriptionRequestBody.js.map +1 -1
  89. package/dist/models/UpdateLiveActivityRequest.d.ts +8 -3
  90. package/dist/models/UpdateLiveActivityRequest.js +33 -3
  91. package/dist/models/UpdateLiveActivityRequest.js.map +1 -1
  92. package/dist/models/UpdateLiveActivitySuccessResponse.d.ts +1 -3
  93. package/dist/models/UpdateLiveActivitySuccessResponse.js +2 -8
  94. package/dist/models/UpdateLiveActivitySuccessResponse.js.map +1 -1
  95. package/dist/models/User.d.ts +3 -5
  96. package/dist/models/User.js +2 -8
  97. package/dist/models/User.js.map +1 -1
  98. package/dist/models/{InlineResponse200.d.ts → UserIdentityBody.d.ts} +2 -2
  99. package/dist/models/UserIdentityBody.js +22 -0
  100. package/dist/models/UserIdentityBody.js.map +1 -0
  101. package/dist/models/{BeginLiveActivityRequest.d.ts → WebButton.d.ts} +5 -3
  102. package/dist/models/WebButton.js +40 -0
  103. package/dist/models/WebButton.js.map +1 -0
  104. package/dist/models/all.d.ts +15 -32
  105. package/dist/models/all.js +15 -32
  106. package/dist/models/all.js.map +1 -1
  107. package/dist/servers.js +1 -1
  108. package/dist/servers.js.map +1 -1
  109. package/dist/types/ObjectParamAPI.d.ts +52 -102
  110. package/dist/types/ObjectParamAPI.js +26 -47
  111. package/dist/types/ObjectParamAPI.js.map +1 -1
  112. package/dist/types/ObservableAPI.d.ts +25 -45
  113. package/dist/types/ObservableAPI.js +82 -250
  114. package/dist/types/ObservableAPI.js.map +1 -1
  115. package/dist/types/PromiseAPI.d.ts +25 -45
  116. package/dist/types/PromiseAPI.js +32 -60
  117. package/dist/types/PromiseAPI.js.map +1 -1
  118. package/models/App.ts +1 -1
  119. package/models/BasicNotification.ts +49 -46
  120. package/models/BasicNotificationAllOf.ts +34 -23
  121. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
  122. package/models/Button.ts +1 -1
  123. package/models/CreateNotificationSuccessResponse.ts +5 -13
  124. package/models/CreateSegmentConflictResponse.ts +1 -1
  125. package/models/CreateSegmentSuccessResponse.ts +1 -1
  126. package/models/CreateUserConflictResponse.ts +1 -1
  127. package/models/CreateUserConflictResponseErrorsInner.ts +1 -1
  128. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +1 -1
  129. package/models/DeliveryData.ts +1 -1
  130. package/models/ExportEventsSuccessResponse.ts +1 -1
  131. package/models/{ExportPlayersRequestBody.ts → ExportSubscriptionsRequestBody.ts} +3 -3
  132. package/models/{ExportPlayersSuccessResponse.ts → ExportSubscriptionsSuccessResponse.ts} +3 -3
  133. package/models/Filter.ts +45 -5
  134. package/models/FilterExpression.ts +120 -0
  135. package/models/GenericError.ts +17 -4
  136. package/models/{DeletePlayerSuccessResponse.ts → GenericSuccessBoolResponse.ts} +3 -3
  137. package/models/{GetNotificationRequestBody.ts → GetNotificationHistoryRequestBody.ts} +6 -6
  138. package/models/{PlayerSlice.ts → GetSegmentsSuccessResponse.ts} +20 -8
  139. package/models/InvalidIdentifierError.ts +6 -6
  140. package/models/{StringMap.ts → LanguageStringMap.ts} +3 -3
  141. package/models/Notification.ts +49 -46
  142. package/models/NotificationAllOf.ts +1 -1
  143. package/models/NotificationHistorySuccessResponse.ts +1 -1
  144. package/models/NotificationSlice.ts +1 -1
  145. package/models/NotificationTarget.ts +17 -25
  146. package/models/NotificationWithMeta.ts +49 -46
  147. package/models/NotificationWithMetaAllOf.ts +1 -1
  148. package/models/ObjectSerializer.ts +57 -109
  149. package/models/Operator.ts +1 -1
  150. package/models/OutcomeData.ts +1 -1
  151. package/models/OutcomesData.ts +1 -1
  152. package/models/PlatformDeliveryData.ts +1 -1
  153. package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
  154. package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
  155. package/models/{InlineResponse202.ts → PropertiesBody.ts} +3 -3
  156. package/models/PropertiesDeltas.ts +1 -1
  157. package/models/PropertiesObject.ts +1 -1
  158. package/models/Purchase.ts +1 -1
  159. package/models/{CreatePlayerSuccessResponse.ts → RateLimitError.ts} +10 -10
  160. package/models/Segment.ts +4 -4
  161. package/models/SegmentData.ts +94 -0
  162. package/models/SegmentNotificationTarget.ts +1 -1
  163. package/models/{SubscriptionObject.ts → Subscription.ts} +6 -6
  164. package/models/{InlineResponse201.ts → SubscriptionBody.ts} +6 -6
  165. package/models/{PlayerNotificationTarget.ts → SubscriptionNotificationTarget.ts} +21 -29
  166. package/models/TransferSubscriptionRequestBody.ts +3 -3
  167. package/models/UpdateLiveActivityRequest.ts +56 -9
  168. package/models/UpdateLiveActivitySuccessResponse.ts +4 -12
  169. package/models/UpdateUserRequest.ts +1 -1
  170. package/models/User.ts +6 -14
  171. package/models/{InlineResponse200.ts → UserIdentityBody.ts} +5 -5
  172. package/models/{BeginLiveActivityRequest.ts → WebButton.ts} +23 -9
  173. package/models/all.ts +15 -32
  174. package/package.json +2 -2
  175. package/servers.ts +1 -1
  176. package/types/ObjectParamAPI.ts +161 -357
  177. package/types/ObservableAPI.ts +108 -301
  178. package/types/PromiseAPI.ts +89 -184
  179. package/dist/models/BeginLiveActivityRequest.js +0 -28
  180. package/dist/models/BeginLiveActivityRequest.js.map +0 -1
  181. package/dist/models/CancelNotificationSuccessResponse.d.ts +0 -17
  182. package/dist/models/CancelNotificationSuccessResponse.js +0 -22
  183. package/dist/models/CancelNotificationSuccessResponse.js.map +0 -1
  184. package/dist/models/CreatePlayerSuccessResponse.js +0 -28
  185. package/dist/models/CreatePlayerSuccessResponse.js.map +0 -1
  186. package/dist/models/CreateSubscriptionRequestBody.js +0 -28
  187. package/dist/models/CreateSubscriptionRequestBody.js.map +0 -1
  188. package/dist/models/DeletePlayerNotFoundResponse.d.ts +0 -17
  189. package/dist/models/DeletePlayerNotFoundResponse.js +0 -22
  190. package/dist/models/DeletePlayerNotFoundResponse.js.map +0 -1
  191. package/dist/models/DeletePlayerSuccessResponse.js +0 -22
  192. package/dist/models/DeletePlayerSuccessResponse.js.map +0 -1
  193. package/dist/models/DeleteSegmentNotFoundResponse.js +0 -22
  194. package/dist/models/DeleteSegmentNotFoundResponse.js.map +0 -1
  195. package/dist/models/DeleteSegmentSuccessResponse.d.ts +0 -17
  196. package/dist/models/DeleteSegmentSuccessResponse.js +0 -22
  197. package/dist/models/DeleteSegmentSuccessResponse.js.map +0 -1
  198. package/dist/models/ExportPlayersRequestBody.js +0 -34
  199. package/dist/models/ExportPlayersRequestBody.js.map +0 -1
  200. package/dist/models/ExportPlayersSuccessResponse.js +0 -22
  201. package/dist/models/ExportPlayersSuccessResponse.js.map +0 -1
  202. package/dist/models/FilterExpressions.d.ts +0 -23
  203. package/dist/models/FilterExpressions.js +0 -46
  204. package/dist/models/FilterExpressions.js.map +0 -1
  205. package/dist/models/GetNotificationRequestBody.js +0 -34
  206. package/dist/models/GetNotificationRequestBody.js.map +0 -1
  207. package/dist/models/InlineResponse200.js +0 -22
  208. package/dist/models/InlineResponse200.js.map +0 -1
  209. package/dist/models/InlineResponse2003.d.ts +0 -17
  210. package/dist/models/InlineResponse2003.js +0 -22
  211. package/dist/models/InlineResponse2003.js.map +0 -1
  212. package/dist/models/InlineResponse201.d.ts +0 -18
  213. package/dist/models/InlineResponse201.js +0 -22
  214. package/dist/models/InlineResponse201.js.map +0 -1
  215. package/dist/models/InlineResponse202.js +0 -22
  216. package/dist/models/InlineResponse202.js.map +0 -1
  217. package/dist/models/Notification200Errors.d.ts +0 -18
  218. package/dist/models/Notification200Errors.js +0 -28
  219. package/dist/models/Notification200Errors.js.map +0 -1
  220. package/dist/models/Player.d.ts +0 -43
  221. package/dist/models/Player.js +0 -178
  222. package/dist/models/Player.js.map +0 -1
  223. package/dist/models/PlayerNotificationTarget.js.map +0 -1
  224. package/dist/models/PlayerNotificationTargetIncludeAliases.d.ts +0 -17
  225. package/dist/models/PlayerNotificationTargetIncludeAliases.js +0 -22
  226. package/dist/models/PlayerNotificationTargetIncludeAliases.js.map +0 -1
  227. package/dist/models/PlayerSlice.js +0 -40
  228. package/dist/models/PlayerSlice.js.map +0 -1
  229. package/dist/models/StringMap.js.map +0 -1
  230. package/dist/models/SubscriptionObject.js.map +0 -1
  231. package/dist/models/UpdatePlayerSuccessResponse.d.ts +0 -17
  232. package/dist/models/UpdatePlayerSuccessResponse.js +0 -22
  233. package/dist/models/UpdatePlayerSuccessResponse.js.map +0 -1
  234. package/dist/models/UpdatePlayerTagsRequestBody.d.ts +0 -17
  235. package/dist/models/UpdatePlayerTagsRequestBody.js +0 -22
  236. package/dist/models/UpdatePlayerTagsRequestBody.js.map +0 -1
  237. package/dist/models/UpdatePlayerTagsSuccessResponse.d.ts +0 -17
  238. package/dist/models/UpdatePlayerTagsSuccessResponse.js +0 -22
  239. package/dist/models/UpdatePlayerTagsSuccessResponse.js.map +0 -1
  240. package/dist/models/UpdateSubscriptionRequestBody.d.ts +0 -18
  241. package/dist/models/UpdateSubscriptionRequestBody.js +0 -22
  242. package/dist/models/UpdateSubscriptionRequestBody.js.map +0 -1
  243. package/dist/models/UserIdentityRequestBody.d.ts +0 -19
  244. package/dist/models/UserIdentityRequestBody.js +0 -22
  245. package/dist/models/UserIdentityRequestBody.js.map +0 -1
  246. package/dist/models/UserIdentityResponse.d.ts +0 -19
  247. package/dist/models/UserIdentityResponse.js +0 -22
  248. package/dist/models/UserIdentityResponse.js.map +0 -1
  249. package/dist/models/UserSubscriptionOptions.d.ts +0 -17
  250. package/dist/models/UserSubscriptionOptions.js +0 -22
  251. package/dist/models/UserSubscriptionOptions.js.map +0 -1
  252. package/models/CancelNotificationSuccessResponse.ts +0 -31
  253. package/models/CreateSubscriptionRequestBody.ts +0 -39
  254. package/models/DeletePlayerNotFoundResponse.ts +0 -31
  255. package/models/DeleteSegmentNotFoundResponse.ts +0 -31
  256. package/models/DeleteSegmentSuccessResponse.ts +0 -31
  257. package/models/FilterExpressions.ts +0 -80
  258. package/models/InlineResponse2003.ts +0 -31
  259. package/models/Notification200Errors.ts +0 -45
  260. package/models/Player.ts +0 -291
  261. package/models/PlayerNotificationTargetIncludeAliases.ts +0 -31
  262. package/models/UpdatePlayerSuccessResponse.ts +0 -31
  263. package/models/UpdatePlayerTagsRequestBody.ts +0 -34
  264. package/models/UpdatePlayerTagsSuccessResponse.ts +0 -31
  265. package/models/UpdateSubscriptionRequestBody.ts +0 -32
  266. package/models/UserIdentityRequestBody.ts +0 -31
  267. package/models/UserIdentityResponse.ts +0 -31
  268. 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,47 +569,6 @@ var DefaultApiRequestFactory = (function (_super) {
584
569
  });
585
570
  });
586
571
  };
587
- DefaultApiRequestFactory.prototype.endLiveActivity = function (appId, activityId, subscriptionId, _options) {
588
- var _a, _b, _c;
589
- return __awaiter(this, void 0, void 0, function () {
590
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
591
- return __generator(this, function (_d) {
592
- switch (_d.label) {
593
- case 0:
594
- _config = _options || this.configuration;
595
- if (appId === null || appId === undefined) {
596
- throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "appId");
597
- }
598
- if (activityId === null || activityId === undefined) {
599
- throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "activityId");
600
- }
601
- if (subscriptionId === null || subscriptionId === undefined) {
602
- throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "subscriptionId");
603
- }
604
- localVarPath = '/apps/{app_id}/live_activities/{activity_id}/token/{subscription_id}'
605
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
606
- .replace('{' + 'activity_id' + '}', encodeURIComponent(String(activityId)))
607
- .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
608
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
609
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
610
- authMethod = _config.authMethods["app_key"];
611
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
612
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
613
- case 1:
614
- _d.sent();
615
- _d.label = 2;
616
- case 2:
617
- 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);
618
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
619
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
620
- case 3:
621
- _d.sent();
622
- _d.label = 4;
623
- case 4: return [2, requestContext];
624
- }
625
- });
626
- });
627
- };
628
572
  DefaultApiRequestFactory.prototype.exportEvents = function (notificationId, appId, _options) {
629
573
  var _a, _b, _c;
630
574
  return __awaiter(this, void 0, void 0, function () {
@@ -643,10 +587,11 @@ var DefaultApiRequestFactory = (function (_super) {
643
587
  .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
644
588
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
645
589
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
590
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.0-alpha-01");
646
591
  if (appId !== undefined) {
647
592
  requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
648
593
  }
649
- authMethod = _config.authMethods["app_key"];
594
+ authMethod = _config.authMethods["rest_api_key"];
650
595
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
651
596
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
652
597
  case 1:
@@ -664,7 +609,7 @@ var DefaultApiRequestFactory = (function (_super) {
664
609
  });
665
610
  });
666
611
  };
667
- DefaultApiRequestFactory.prototype.exportPlayers = function (appId, exportPlayersRequestBody, _options) {
612
+ DefaultApiRequestFactory.prototype.exportSubscriptions = function (appId, exportSubscriptionsRequestBody, _options) {
668
613
  var _a, _b, _c;
669
614
  return __awaiter(this, void 0, void 0, function () {
670
615
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -673,56 +618,20 @@ var DefaultApiRequestFactory = (function (_super) {
673
618
  case 0:
674
619
  _config = _options || this.configuration;
675
620
  if (appId === null || appId === undefined) {
676
- throw new baseapi_1.RequiredError("DefaultApi", "exportPlayers", "appId");
621
+ throw new baseapi_1.RequiredError("DefaultApi", "exportSubscriptions", "appId");
677
622
  }
678
623
  localVarPath = '/players/csv_export?app_id={app_id}'
679
624
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
680
625
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
681
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");
682
628
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
683
629
  "application/json"
684
630
  ]);
685
631
  requestContext.setHeaderParam("Content-Type", contentType);
686
- 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);
687
633
  requestContext.setBody(serializedBody);
688
- authMethod = _config.authMethods["app_key"];
689
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
690
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
691
- case 1:
692
- _d.sent();
693
- _d.label = 2;
694
- case 2:
695
- 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);
696
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
697
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
698
- case 3:
699
- _d.sent();
700
- _d.label = 4;
701
- case 4: return [2, requestContext];
702
- }
703
- });
704
- });
705
- };
706
- DefaultApiRequestFactory.prototype.fetchAliases = function (appId, subscriptionId, _options) {
707
- var _a, _b, _c;
708
- return __awaiter(this, void 0, void 0, function () {
709
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
710
- return __generator(this, function (_d) {
711
- switch (_d.label) {
712
- case 0:
713
- _config = _options || this.configuration;
714
- if (appId === null || appId === undefined) {
715
- throw new baseapi_1.RequiredError("DefaultApi", "fetchAliases", "appId");
716
- }
717
- if (subscriptionId === null || subscriptionId === undefined) {
718
- throw new baseapi_1.RequiredError("DefaultApi", "fetchAliases", "subscriptionId");
719
- }
720
- localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/user/identity'
721
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
722
- .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
723
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
724
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
725
- authMethod = _config.authMethods["app_key"];
634
+ authMethod = _config.authMethods["rest_api_key"];
726
635
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
727
636
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
728
637
  case 1:
@@ -740,7 +649,7 @@ var DefaultApiRequestFactory = (function (_super) {
740
649
  });
741
650
  });
742
651
  };
743
- DefaultApiRequestFactory.prototype.fetchUser = function (appId, aliasLabel, aliasId, _options) {
652
+ DefaultApiRequestFactory.prototype.getAliases = function (appId, aliasLabel, aliasId, _options) {
744
653
  var _a, _b, _c;
745
654
  return __awaiter(this, void 0, void 0, function () {
746
655
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -749,21 +658,22 @@ var DefaultApiRequestFactory = (function (_super) {
749
658
  case 0:
750
659
  _config = _options || this.configuration;
751
660
  if (appId === null || appId === undefined) {
752
- throw new baseapi_1.RequiredError("DefaultApi", "fetchUser", "appId");
661
+ throw new baseapi_1.RequiredError("DefaultApi", "getAliases", "appId");
753
662
  }
754
663
  if (aliasLabel === null || aliasLabel === undefined) {
755
- throw new baseapi_1.RequiredError("DefaultApi", "fetchUser", "aliasLabel");
664
+ throw new baseapi_1.RequiredError("DefaultApi", "getAliases", "aliasLabel");
756
665
  }
757
666
  if (aliasId === null || aliasId === undefined) {
758
- throw new baseapi_1.RequiredError("DefaultApi", "fetchUser", "aliasId");
667
+ throw new baseapi_1.RequiredError("DefaultApi", "getAliases", "aliasId");
759
668
  }
760
- localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}'
669
+ localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/identity'
761
670
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
762
671
  .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
763
672
  .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
764
673
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
765
674
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
766
- 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"];
767
677
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
768
678
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
769
679
  case 1:
@@ -781,7 +691,7 @@ var DefaultApiRequestFactory = (function (_super) {
781
691
  });
782
692
  });
783
693
  };
784
- DefaultApiRequestFactory.prototype.fetchUserIdentity = function (appId, aliasLabel, aliasId, _options) {
694
+ DefaultApiRequestFactory.prototype.getAliasesBySubscription = function (appId, subscriptionId, _options) {
785
695
  var _a, _b, _c;
786
696
  return __awaiter(this, void 0, void 0, function () {
787
697
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -790,21 +700,18 @@ var DefaultApiRequestFactory = (function (_super) {
790
700
  case 0:
791
701
  _config = _options || this.configuration;
792
702
  if (appId === null || appId === undefined) {
793
- throw new baseapi_1.RequiredError("DefaultApi", "fetchUserIdentity", "appId");
794
- }
795
- if (aliasLabel === null || aliasLabel === undefined) {
796
- throw new baseapi_1.RequiredError("DefaultApi", "fetchUserIdentity", "aliasLabel");
703
+ throw new baseapi_1.RequiredError("DefaultApi", "getAliasesBySubscription", "appId");
797
704
  }
798
- if (aliasId === null || aliasId === undefined) {
799
- throw new baseapi_1.RequiredError("DefaultApi", "fetchUserIdentity", "aliasId");
705
+ if (subscriptionId === null || subscriptionId === undefined) {
706
+ throw new baseapi_1.RequiredError("DefaultApi", "getAliasesBySubscription", "subscriptionId");
800
707
  }
801
- localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/identity'
708
+ localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/user/identity'
802
709
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
803
- .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
804
- .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
710
+ .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
805
711
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
806
712
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
807
- 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"];
808
715
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
809
716
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
810
717
  case 1:
@@ -837,7 +744,8 @@ var DefaultApiRequestFactory = (function (_super) {
837
744
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
838
745
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
839
746
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
840
- 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"];
841
749
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
842
750
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
843
751
  case 1:
@@ -866,44 +774,8 @@ var DefaultApiRequestFactory = (function (_super) {
866
774
  localVarPath = '/apps';
867
775
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
868
776
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
869
- authMethod = _config.authMethods["user_key"];
870
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
871
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
872
- case 1:
873
- _d.sent();
874
- _d.label = 2;
875
- case 2:
876
- 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);
877
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
878
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
879
- case 3:
880
- _d.sent();
881
- _d.label = 4;
882
- case 4: return [2, requestContext];
883
- }
884
- });
885
- });
886
- };
887
- DefaultApiRequestFactory.prototype.getEligibleIams = function (appId, subscriptionId, _options) {
888
- var _a, _b, _c;
889
- return __awaiter(this, void 0, void 0, function () {
890
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
891
- return __generator(this, function (_d) {
892
- switch (_d.label) {
893
- case 0:
894
- _config = _options || this.configuration;
895
- if (appId === null || appId === undefined) {
896
- throw new baseapi_1.RequiredError("DefaultApi", "getEligibleIams", "appId");
897
- }
898
- if (subscriptionId === null || subscriptionId === undefined) {
899
- throw new baseapi_1.RequiredError("DefaultApi", "getEligibleIams", "subscriptionId");
900
- }
901
- localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/iams'
902
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
903
- .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
904
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
905
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
906
- 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"];
907
779
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
908
780
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
909
781
  case 1:
@@ -939,10 +811,11 @@ var DefaultApiRequestFactory = (function (_super) {
939
811
  .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
940
812
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
941
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");
942
815
  if (appId !== undefined) {
943
816
  requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
944
817
  }
945
- authMethod = _config.authMethods["app_key"];
818
+ authMethod = _config.authMethods["rest_api_key"];
946
819
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
947
820
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
948
821
  case 1:
@@ -960,7 +833,7 @@ var DefaultApiRequestFactory = (function (_super) {
960
833
  });
961
834
  });
962
835
  };
963
- DefaultApiRequestFactory.prototype.getNotificationHistory = function (notificationId, getNotificationRequestBody, _options) {
836
+ DefaultApiRequestFactory.prototype.getNotificationHistory = function (notificationId, getNotificationHistoryRequestBody, _options) {
964
837
  var _a, _b, _c;
965
838
  return __awaiter(this, void 0, void 0, function () {
966
839
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -971,20 +844,21 @@ var DefaultApiRequestFactory = (function (_super) {
971
844
  if (notificationId === null || notificationId === undefined) {
972
845
  throw new baseapi_1.RequiredError("DefaultApi", "getNotificationHistory", "notificationId");
973
846
  }
974
- if (getNotificationRequestBody === null || getNotificationRequestBody === undefined) {
975
- throw new baseapi_1.RequiredError("DefaultApi", "getNotificationHistory", "getNotificationRequestBody");
847
+ if (getNotificationHistoryRequestBody === null || getNotificationHistoryRequestBody === undefined) {
848
+ throw new baseapi_1.RequiredError("DefaultApi", "getNotificationHistory", "getNotificationHistoryRequestBody");
976
849
  }
977
850
  localVarPath = '/notifications/{notification_id}/history'
978
851
  .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
979
852
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
980
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");
981
855
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
982
856
  "application/json"
983
857
  ]);
984
858
  requestContext.setHeaderParam("Content-Type", contentType);
985
- 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);
986
860
  requestContext.setBody(serializedBody);
987
- authMethod = _config.authMethods["app_key"];
861
+ authMethod = _config.authMethods["rest_api_key"];
988
862
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
989
863
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
990
864
  case 1:
@@ -1016,6 +890,7 @@ var DefaultApiRequestFactory = (function (_super) {
1016
890
  localVarPath = '/notifications';
1017
891
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1018
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");
1019
894
  if (appId !== undefined) {
1020
895
  requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
1021
896
  }
@@ -1028,7 +903,7 @@ var DefaultApiRequestFactory = (function (_super) {
1028
903
  if (kind !== undefined) {
1029
904
  requestContext.setQueryParam("kind", ObjectSerializer_1.ObjectSerializer.serialize(kind, "0 | 1 | 3", ""));
1030
905
  }
1031
- authMethod = _config.authMethods["app_key"];
906
+ authMethod = _config.authMethods["rest_api_key"];
1032
907
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1033
908
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1034
909
  case 1:
@@ -1064,6 +939,7 @@ var DefaultApiRequestFactory = (function (_super) {
1064
939
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
1065
940
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1066
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");
1067
943
  if (outcomeNames !== undefined) {
1068
944
  requestContext.setQueryParam("outcome_names", ObjectSerializer_1.ObjectSerializer.serialize(outcomeNames, "string", ""));
1069
945
  }
@@ -1079,7 +955,7 @@ var DefaultApiRequestFactory = (function (_super) {
1079
955
  if (outcomeAttribution !== undefined) {
1080
956
  requestContext.setQueryParam("outcome_attribution", ObjectSerializer_1.ObjectSerializer.serialize(outcomeAttribution, "string", ""));
1081
957
  }
1082
- authMethod = _config.authMethods["app_key"];
958
+ authMethod = _config.authMethods["rest_api_key"];
1083
959
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1084
960
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1085
961
  case 1:
@@ -1097,7 +973,7 @@ var DefaultApiRequestFactory = (function (_super) {
1097
973
  });
1098
974
  });
1099
975
  };
1100
- DefaultApiRequestFactory.prototype.getPlayer = function (appId, playerId, emailAuthHash, _options) {
976
+ DefaultApiRequestFactory.prototype.getSegments = function (appId, offset, limit, _options) {
1101
977
  var _a, _b, _c;
1102
978
  return __awaiter(this, void 0, void 0, function () {
1103
979
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -1106,22 +982,20 @@ var DefaultApiRequestFactory = (function (_super) {
1106
982
  case 0:
1107
983
  _config = _options || this.configuration;
1108
984
  if (appId === null || appId === undefined) {
1109
- throw new baseapi_1.RequiredError("DefaultApi", "getPlayer", "appId");
1110
- }
1111
- if (playerId === null || playerId === undefined) {
1112
- throw new baseapi_1.RequiredError("DefaultApi", "getPlayer", "playerId");
985
+ throw new baseapi_1.RequiredError("DefaultApi", "getSegments", "appId");
1113
986
  }
1114
- localVarPath = '/players/{player_id}'
1115
- .replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
987
+ localVarPath = '/apps/{app_id}/segments'
988
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
1116
989
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1117
990
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1118
- if (appId !== undefined) {
1119
- 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", ""));
1120
994
  }
1121
- if (emailAuthHash !== undefined) {
1122
- 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", ""));
1123
997
  }
1124
- authMethod = _config.authMethods["app_key"];
998
+ authMethod = _config.authMethods["rest_api_key"];
1125
999
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1126
1000
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1127
1001
  case 1:
@@ -1139,7 +1013,7 @@ var DefaultApiRequestFactory = (function (_super) {
1139
1013
  });
1140
1014
  });
1141
1015
  };
1142
- DefaultApiRequestFactory.prototype.getPlayers = function (appId, limit, offset, _options) {
1016
+ DefaultApiRequestFactory.prototype.getUser = function (appId, aliasLabel, aliasId, _options) {
1143
1017
  var _a, _b, _c;
1144
1018
  return __awaiter(this, void 0, void 0, function () {
1145
1019
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -1148,21 +1022,22 @@ var DefaultApiRequestFactory = (function (_super) {
1148
1022
  case 0:
1149
1023
  _config = _options || this.configuration;
1150
1024
  if (appId === null || appId === undefined) {
1151
- throw new baseapi_1.RequiredError("DefaultApi", "getPlayers", "appId");
1152
- }
1153
- localVarPath = '/players';
1154
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1155
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1156
- if (appId !== undefined) {
1157
- requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
1025
+ throw new baseapi_1.RequiredError("DefaultApi", "getUser", "appId");
1158
1026
  }
1159
- if (limit !== undefined) {
1160
- requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
1027
+ if (aliasLabel === null || aliasLabel === undefined) {
1028
+ throw new baseapi_1.RequiredError("DefaultApi", "getUser", "aliasLabel");
1161
1029
  }
1162
- if (offset !== undefined) {
1163
- requestContext.setQueryParam("offset", ObjectSerializer_1.ObjectSerializer.serialize(offset, "number", ""));
1030
+ if (aliasId === null || aliasId === undefined) {
1031
+ throw new baseapi_1.RequiredError("DefaultApi", "getUser", "aliasId");
1164
1032
  }
1165
- 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"];
1166
1041
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1167
1042
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1168
1043
  case 1:
@@ -1180,7 +1055,7 @@ var DefaultApiRequestFactory = (function (_super) {
1180
1055
  });
1181
1056
  });
1182
1057
  };
1183
- DefaultApiRequestFactory.prototype.identifyUserByAlias = function (appId, aliasLabel, aliasId, userIdentityRequestBody, _options) {
1058
+ DefaultApiRequestFactory.prototype.transferSubscription = function (appId, subscriptionId, transferSubscriptionRequestBody, _options) {
1184
1059
  var _a, _b, _c;
1185
1060
  return __awaiter(this, void 0, void 0, function () {
1186
1061
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -1189,76 +1064,27 @@ var DefaultApiRequestFactory = (function (_super) {
1189
1064
  case 0:
1190
1065
  _config = _options || this.configuration;
1191
1066
  if (appId === null || appId === undefined) {
1192
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "appId");
1193
- }
1194
- if (aliasLabel === null || aliasLabel === undefined) {
1195
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "aliasLabel");
1067
+ throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "appId");
1196
1068
  }
1197
- if (aliasId === null || aliasId === undefined) {
1198
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "aliasId");
1069
+ if (subscriptionId === null || subscriptionId === undefined) {
1070
+ throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "subscriptionId");
1199
1071
  }
1200
- if (userIdentityRequestBody === null || userIdentityRequestBody === undefined) {
1201
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "userIdentityRequestBody");
1072
+ if (transferSubscriptionRequestBody === null || transferSubscriptionRequestBody === undefined) {
1073
+ throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "transferSubscriptionRequestBody");
1202
1074
  }
1203
- localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/identity'
1204
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1205
- .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
1206
- .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
1207
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1208
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1209
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1210
- "application/json"
1211
- ]);
1212
- requestContext.setHeaderParam("Content-Type", contentType);
1213
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(userIdentityRequestBody, "UserIdentityRequestBody", ""), contentType);
1214
- requestContext.setBody(serializedBody);
1215
- authMethod = _config.authMethods["app_key"];
1216
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1217
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1218
- case 1:
1219
- _d.sent();
1220
- _d.label = 2;
1221
- case 2:
1222
- 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);
1223
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1224
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1225
- case 3:
1226
- _d.sent();
1227
- _d.label = 4;
1228
- case 4: return [2, requestContext];
1229
- }
1230
- });
1231
- });
1232
- };
1233
- DefaultApiRequestFactory.prototype.identifyUserBySubscriptionId = function (appId, subscriptionId, userIdentityRequestBody, _options) {
1234
- var _a, _b, _c;
1235
- return __awaiter(this, void 0, void 0, function () {
1236
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1237
- return __generator(this, function (_d) {
1238
- switch (_d.label) {
1239
- case 0:
1240
- _config = _options || this.configuration;
1241
- if (appId === null || appId === undefined) {
1242
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserBySubscriptionId", "appId");
1243
- }
1244
- if (subscriptionId === null || subscriptionId === undefined) {
1245
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserBySubscriptionId", "subscriptionId");
1246
- }
1247
- if (userIdentityRequestBody === null || userIdentityRequestBody === undefined) {
1248
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserBySubscriptionId", "userIdentityRequestBody");
1249
- }
1250
- localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/user/identity'
1075
+ localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/owner'
1251
1076
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1252
1077
  .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
1253
1078
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1254
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");
1255
1081
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1256
1082
  "application/json"
1257
1083
  ]);
1258
1084
  requestContext.setHeaderParam("Content-Type", contentType);
1259
- 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);
1260
1086
  requestContext.setBody(serializedBody);
1261
- authMethod = _config.authMethods["app_key"];
1087
+ authMethod = _config.authMethods["rest_api_key"];
1262
1088
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1263
1089
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1264
1090
  case 1:
@@ -1276,35 +1102,33 @@ var DefaultApiRequestFactory = (function (_super) {
1276
1102
  });
1277
1103
  });
1278
1104
  };
1279
- DefaultApiRequestFactory.prototype.transferSubscription = function (appId, subscriptionId, transferSubscriptionRequestBody, _options) {
1105
+ DefaultApiRequestFactory.prototype.unsubscribeEmailWithToken = function (appId, notificationId, token, _options) {
1280
1106
  var _a, _b, _c;
1281
1107
  return __awaiter(this, void 0, void 0, function () {
1282
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1108
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
1283
1109
  return __generator(this, function (_d) {
1284
1110
  switch (_d.label) {
1285
1111
  case 0:
1286
1112
  _config = _options || this.configuration;
1287
1113
  if (appId === null || appId === undefined) {
1288
- throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "appId");
1114
+ throw new baseapi_1.RequiredError("DefaultApi", "unsubscribeEmailWithToken", "appId");
1289
1115
  }
1290
- if (subscriptionId === null || subscriptionId === undefined) {
1291
- throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "subscriptionId");
1116
+ if (notificationId === null || notificationId === undefined) {
1117
+ throw new baseapi_1.RequiredError("DefaultApi", "unsubscribeEmailWithToken", "notificationId");
1292
1118
  }
1293
- if (transferSubscriptionRequestBody === null || transferSubscriptionRequestBody === undefined) {
1294
- throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "transferSubscriptionRequestBody");
1119
+ if (token === null || token === undefined) {
1120
+ throw new baseapi_1.RequiredError("DefaultApi", "unsubscribeEmailWithToken", "token");
1295
1121
  }
1296
- localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/owner'
1122
+ localVarPath = '/apps/{app_id}/notifications/{notification_id}/unsubscribe'
1297
1123
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1298
- .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
1299
- 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);
1300
1126
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1301
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1302
- "application/json"
1303
- ]);
1304
- requestContext.setHeaderParam("Content-Type", contentType);
1305
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(transferSubscriptionRequestBody, "TransferSubscriptionRequestBody", ""), contentType);
1306
- requestContext.setBody(serializedBody);
1307
- 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"];
1308
1132
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1309
1133
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1310
1134
  case 1:
@@ -1340,13 +1164,14 @@ var DefaultApiRequestFactory = (function (_super) {
1340
1164
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
1341
1165
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1342
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");
1343
1168
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1344
1169
  "application/json"
1345
1170
  ]);
1346
1171
  requestContext.setHeaderParam("Content-Type", contentType);
1347
1172
  serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(app, "App", ""), contentType);
1348
1173
  requestContext.setBody(serializedBody);
1349
- authMethod = _config.authMethods["user_key"];
1174
+ authMethod = _config.authMethods["user_auth_key"];
1350
1175
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1351
1176
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1352
1177
  case 1:
@@ -1386,98 +1211,14 @@ var DefaultApiRequestFactory = (function (_super) {
1386
1211
  .replace('{' + 'activity_id' + '}', encodeURIComponent(String(activityId)));
1387
1212
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
1388
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");
1389
1215
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1390
1216
  "application/json"
1391
1217
  ]);
1392
1218
  requestContext.setHeaderParam("Content-Type", contentType);
1393
1219
  serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateLiveActivityRequest, "UpdateLiveActivityRequest", ""), contentType);
1394
1220
  requestContext.setBody(serializedBody);
1395
- authMethod = _config.authMethods["app_key"];
1396
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1397
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1398
- case 1:
1399
- _d.sent();
1400
- _d.label = 2;
1401
- case 2:
1402
- 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);
1403
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1404
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1405
- case 3:
1406
- _d.sent();
1407
- _d.label = 4;
1408
- case 4: return [2, requestContext];
1409
- }
1410
- });
1411
- });
1412
- };
1413
- DefaultApiRequestFactory.prototype.updatePlayer = function (playerId, player, _options) {
1414
- var _a, _b, _c;
1415
- return __awaiter(this, void 0, void 0, function () {
1416
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1417
- return __generator(this, function (_d) {
1418
- switch (_d.label) {
1419
- case 0:
1420
- _config = _options || this.configuration;
1421
- if (playerId === null || playerId === undefined) {
1422
- throw new baseapi_1.RequiredError("DefaultApi", "updatePlayer", "playerId");
1423
- }
1424
- if (player === null || player === undefined) {
1425
- throw new baseapi_1.RequiredError("DefaultApi", "updatePlayer", "player");
1426
- }
1427
- localVarPath = '/players/{player_id}'
1428
- .replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
1429
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1430
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1431
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1432
- "application/json"
1433
- ]);
1434
- requestContext.setHeaderParam("Content-Type", contentType);
1435
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(player, "Player", ""), contentType);
1436
- requestContext.setBody(serializedBody);
1437
- authMethod = _config.authMethods["app_key"];
1438
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1439
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1440
- case 1:
1441
- _d.sent();
1442
- _d.label = 2;
1443
- case 2:
1444
- 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);
1445
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1446
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1447
- case 3:
1448
- _d.sent();
1449
- _d.label = 4;
1450
- case 4: return [2, requestContext];
1451
- }
1452
- });
1453
- });
1454
- };
1455
- DefaultApiRequestFactory.prototype.updatePlayerTags = function (appId, externalUserId, updatePlayerTagsRequestBody, _options) {
1456
- var _a, _b, _c;
1457
- return __awaiter(this, void 0, void 0, function () {
1458
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1459
- return __generator(this, function (_d) {
1460
- switch (_d.label) {
1461
- case 0:
1462
- _config = _options || this.configuration;
1463
- if (appId === null || appId === undefined) {
1464
- throw new baseapi_1.RequiredError("DefaultApi", "updatePlayerTags", "appId");
1465
- }
1466
- if (externalUserId === null || externalUserId === undefined) {
1467
- throw new baseapi_1.RequiredError("DefaultApi", "updatePlayerTags", "externalUserId");
1468
- }
1469
- localVarPath = '/apps/{app_id}/users/{external_user_id}'
1470
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1471
- .replace('{' + 'external_user_id' + '}', encodeURIComponent(String(externalUserId)));
1472
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1473
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1474
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1475
- "application/json"
1476
- ]);
1477
- requestContext.setHeaderParam("Content-Type", contentType);
1478
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updatePlayerTagsRequestBody, "UpdatePlayerTagsRequestBody", ""), contentType);
1479
- requestContext.setBody(serializedBody);
1480
- authMethod = _config.authMethods["app_key"];
1221
+ authMethod = _config.authMethods["rest_api_key"];
1481
1222
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1482
1223
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1483
1224
  case 1:
@@ -1495,7 +1236,7 @@ var DefaultApiRequestFactory = (function (_super) {
1495
1236
  });
1496
1237
  });
1497
1238
  };
1498
- DefaultApiRequestFactory.prototype.updateSubscription = function (appId, subscriptionId, updateSubscriptionRequestBody, _options) {
1239
+ DefaultApiRequestFactory.prototype.updateSubscription = function (appId, subscriptionId, subscriptionBody, _options) {
1499
1240
  var _a, _b, _c;
1500
1241
  return __awaiter(this, void 0, void 0, function () {
1501
1242
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -1509,21 +1250,22 @@ var DefaultApiRequestFactory = (function (_super) {
1509
1250
  if (subscriptionId === null || subscriptionId === undefined) {
1510
1251
  throw new baseapi_1.RequiredError("DefaultApi", "updateSubscription", "subscriptionId");
1511
1252
  }
1512
- if (updateSubscriptionRequestBody === null || updateSubscriptionRequestBody === undefined) {
1513
- throw new baseapi_1.RequiredError("DefaultApi", "updateSubscription", "updateSubscriptionRequestBody");
1253
+ if (subscriptionBody === null || subscriptionBody === undefined) {
1254
+ throw new baseapi_1.RequiredError("DefaultApi", "updateSubscription", "subscriptionBody");
1514
1255
  }
1515
1256
  localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}'
1516
1257
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1517
1258
  .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
1518
1259
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1519
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");
1520
1262
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1521
1263
  "application/json"
1522
1264
  ]);
1523
1265
  requestContext.setHeaderParam("Content-Type", contentType);
1524
- 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);
1525
1267
  requestContext.setBody(serializedBody);
1526
- authMethod = _config.authMethods["app_key"];
1268
+ authMethod = _config.authMethods["rest_api_key"];
1527
1269
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1528
1270
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1529
1271
  case 1:
@@ -1567,13 +1309,14 @@ var DefaultApiRequestFactory = (function (_super) {
1567
1309
  .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
1568
1310
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1569
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");
1570
1313
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1571
1314
  "application/json"
1572
1315
  ]);
1573
1316
  requestContext.setHeaderParam("Content-Type", contentType);
1574
1317
  serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateUserRequest, "UpdateUserRequest", ""), contentType);
1575
1318
  requestContext.setBody(serializedBody);
1576
- authMethod = _config.authMethods["app_key"];
1319
+ authMethod = _config.authMethods["rest_api_key"];
1577
1320
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1578
1321
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1579
1322
  case 1:
@@ -1597,56 +1340,71 @@ exports.DefaultApiRequestFactory = DefaultApiRequestFactory;
1597
1340
  var DefaultApiResponseProcessor = (function () {
1598
1341
  function DefaultApiResponseProcessor() {
1599
1342
  }
1600
- DefaultApiResponseProcessor.prototype.beginLiveActivity = function (response) {
1343
+ DefaultApiResponseProcessor.prototype.cancelNotification = function (response) {
1601
1344
  return __awaiter(this, void 0, void 0, function () {
1602
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1603
- return __generator(this, function (_q) {
1604
- switch (_q.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) {
1605
1348
  case 0:
1606
1349
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1607
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
1608
- return [2];
1609
- }
1610
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
1350
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1611
1351
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1612
1352
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1613
1353
  return [4, response.body.text()];
1614
1354
  case 1:
1615
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1616
- "GenericError", ""]);
1617
- 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];
1618
1358
  case 2:
1619
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 4];
1359
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1620
1360
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1621
1361
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1622
1362
  return [4, response.body.text()];
1623
1363
  case 3:
1624
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1625
- "RateLimiterError", ""]);
1626
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
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);
1627
1367
  case 4:
1628
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1368
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1629
1369
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1630
1370
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1631
1371
  return [4, response.body.text()];
1632
1372
  case 5:
1633
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1634
- "void", ""]);
1635
- return [2, body];
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);
1636
1376
  case 6:
1637
- _o = exception_1.ApiException.bind;
1638
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
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!"];
1639
1397
  return [4, response.getBodyAsAny()];
1640
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1398
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
1641
1399
  }
1642
1400
  });
1643
1401
  });
1644
1402
  };
1645
- DefaultApiResponseProcessor.prototype.cancelNotification = function (response) {
1403
+ DefaultApiResponseProcessor.prototype.createAlias = function (response) {
1646
1404
  return __awaiter(this, void 0, void 0, function () {
1647
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1648
- return __generator(this, function (_u) {
1649
- switch (_u.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) {
1650
1408
  case 0:
1651
1409
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1652
1410
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1654,8 +1412,8 @@ var DefaultApiResponseProcessor = (function () {
1654
1412
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1655
1413
  return [4, response.body.text()];
1656
1414
  case 1:
1657
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1658
- "CancelNotificationSuccessResponse", ""]);
1415
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1416
+ "UserIdentityBody", ""]);
1659
1417
  return [2, body];
1660
1418
  case 2:
1661
1419
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1663,41 +1421,59 @@ var DefaultApiResponseProcessor = (function () {
1663
1421
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1664
1422
  return [4, response.body.text()];
1665
1423
  case 3:
1666
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1424
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1667
1425
  "GenericError", ""]);
1668
1426
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1669
1427
  case 4:
1670
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
1428
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1671
1429
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1672
1430
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1673
1431
  return [4, response.body.text()];
1674
1432
  case 5:
1675
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1676
- "RateLimiterError", ""]);
1677
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
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);
1678
1436
  case 6:
1679
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1437
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 8];
1680
1438
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1681
1439
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1682
1440
  return [4, response.body.text()];
1683
1441
  case 7:
1684
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1685
- "CancelNotificationSuccessResponse", ""]);
1686
- return [2, body];
1442
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1443
+ "GenericError", ""]);
1444
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
1687
1445
  case 8:
1688
- _s = exception_1.ApiException.bind;
1689
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
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!"];
1690
1466
  return [4, response.getBodyAsAny()];
1691
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1467
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1692
1468
  }
1693
1469
  });
1694
1470
  });
1695
1471
  };
1696
- DefaultApiResponseProcessor.prototype.createApp = function (response) {
1472
+ DefaultApiResponseProcessor.prototype.createAliasBySubscription = function (response) {
1697
1473
  return __awaiter(this, void 0, void 0, function () {
1698
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1699
- return __generator(this, function (_u) {
1700
- switch (_u.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) {
1701
1477
  case 0:
1702
1478
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1703
1479
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1705,8 +1481,8 @@ var DefaultApiResponseProcessor = (function () {
1705
1481
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1706
1482
  return [4, response.body.text()];
1707
1483
  case 1:
1708
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1709
- "App", ""]);
1484
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1485
+ "UserIdentityBody", ""]);
1710
1486
  return [2, body];
1711
1487
  case 2:
1712
1488
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1714,38 +1490,56 @@ var DefaultApiResponseProcessor = (function () {
1714
1490
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1715
1491
  return [4, response.body.text()];
1716
1492
  case 3:
1717
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1493
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1718
1494
  "GenericError", ""]);
1719
1495
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1720
1496
  case 4:
1721
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
1497
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1722
1498
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1723
1499
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1724
1500
  return [4, response.body.text()];
1725
1501
  case 5:
1726
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1727
- "RateLimiterError", ""]);
1728
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
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);
1729
1505
  case 6:
1730
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1506
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 8];
1731
1507
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1732
1508
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1733
1509
  return [4, response.body.text()];
1734
1510
  case 7:
1735
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1736
- "App", ""]);
1737
- return [2, body];
1511
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1512
+ "GenericError", ""]);
1513
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
1738
1514
  case 8:
1739
- _s = exception_1.ApiException.bind;
1740
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1741
- return [4, response.getBodyAsAny()];
1742
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1743
- }
1744
- });
1745
- });
1746
- };
1747
- DefaultApiResponseProcessor.prototype.createNotification = function (response) {
1748
- return __awaiter(this, void 0, void 0, function () {
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!"];
1535
+ return [4, response.getBodyAsAny()];
1536
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1537
+ }
1538
+ });
1539
+ });
1540
+ };
1541
+ DefaultApiResponseProcessor.prototype.createApp = function (response) {
1542
+ return __awaiter(this, void 0, void 0, function () {
1749
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;
1750
1544
  return __generator(this, function (_u) {
1751
1545
  switch (_u.label) {
@@ -1757,7 +1551,7 @@ var DefaultApiResponseProcessor = (function () {
1757
1551
  return [4, response.body.text()];
1758
1552
  case 1:
1759
1553
  body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1760
- "CreateNotificationSuccessResponse", ""]);
1554
+ "App", ""]);
1761
1555
  return [2, body];
1762
1556
  case 2:
1763
1557
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1775,7 +1569,7 @@ var DefaultApiResponseProcessor = (function () {
1775
1569
  return [4, response.body.text()];
1776
1570
  case 5:
1777
1571
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1778
- "RateLimiterError", ""]);
1572
+ "RateLimitError", ""]);
1779
1573
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1780
1574
  case 6:
1781
1575
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -1784,7 +1578,7 @@ var DefaultApiResponseProcessor = (function () {
1784
1578
  return [4, response.body.text()];
1785
1579
  case 7:
1786
1580
  body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1787
- "CreateNotificationSuccessResponse", ""]);
1581
+ "App", ""]);
1788
1582
  return [2, body];
1789
1583
  case 8:
1790
1584
  _s = exception_1.ApiException.bind;
@@ -1795,11 +1589,11 @@ var DefaultApiResponseProcessor = (function () {
1795
1589
  });
1796
1590
  });
1797
1591
  };
1798
- DefaultApiResponseProcessor.prototype.createPlayer = function (response) {
1592
+ DefaultApiResponseProcessor.prototype.createNotification = function (response) {
1799
1593
  return __awaiter(this, void 0, void 0, function () {
1800
- 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;
1801
- return __generator(this, function (_y) {
1802
- switch (_y.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) {
1803
1597
  case 0:
1804
1598
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1805
1599
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1807,8 +1601,8 @@ var DefaultApiResponseProcessor = (function () {
1807
1601
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1808
1602
  return [4, response.body.text()];
1809
1603
  case 1:
1810
- body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
1811
- "CreatePlayerSuccessResponse", ""]);
1604
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1605
+ "CreateNotificationSuccessResponse", ""]);
1812
1606
  return [2, body];
1813
1607
  case 2:
1814
1608
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1816,46 +1610,37 @@ var DefaultApiResponseProcessor = (function () {
1816
1610
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1817
1611
  return [4, response.body.text()];
1818
1612
  case 3:
1819
- body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1613
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1820
1614
  "GenericError", ""]);
1821
1615
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1822
1616
  case 4:
1823
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
1617
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
1824
1618
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1825
1619
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1826
1620
  return [4, response.body.text()];
1827
1621
  case 5:
1828
- body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
1829
- "GenericError", ""]);
1830
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
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);
1831
1625
  case 6:
1832
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
1626
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1833
1627
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1834
1628
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1835
1629
  return [4, response.body.text()];
1836
1630
  case 7:
1837
- body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
1838
- "RateLimiterError", ""]);
1839
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1840
- case 8:
1841
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
1842
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1843
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1844
- return [4, response.body.text()];
1845
- case 9:
1846
- body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
1847
- "CreatePlayerSuccessResponse", ""]);
1631
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1632
+ "CreateNotificationSuccessResponse", ""]);
1848
1633
  return [2, body];
1849
- case 10:
1850
- _w = exception_1.ApiException.bind;
1851
- _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1634
+ case 8:
1635
+ _s = exception_1.ApiException.bind;
1636
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1852
1637
  return [4, response.getBodyAsAny()];
1853
- case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
1638
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1854
1639
  }
1855
1640
  });
1856
1641
  });
1857
1642
  };
1858
- DefaultApiResponseProcessor.prototype.createSegments = function (response) {
1643
+ DefaultApiResponseProcessor.prototype.createSegment = function (response) {
1859
1644
  return __awaiter(this, void 0, void 0, function () {
1860
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;
1861
1646
  return __generator(this, function (_y) {
@@ -1895,7 +1680,7 @@ var DefaultApiResponseProcessor = (function () {
1895
1680
  return [4, response.body.text()];
1896
1681
  case 7:
1897
1682
  body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
1898
- "RateLimiterError", ""]);
1683
+ "RateLimitError", ""]);
1899
1684
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1900
1685
  case 8:
1901
1686
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
@@ -1917,9 +1702,9 @@ var DefaultApiResponseProcessor = (function () {
1917
1702
  };
1918
1703
  DefaultApiResponseProcessor.prototype.createSubscription = function (response) {
1919
1704
  return __awaiter(this, void 0, void 0, function () {
1920
- 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;
1921
- return __generator(this, function (_2) {
1922
- switch (_2.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) {
1923
1708
  case 0:
1924
1709
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1925
1710
  if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
@@ -1927,8 +1712,8 @@ var DefaultApiResponseProcessor = (function () {
1927
1712
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1928
1713
  return [4, response.body.text()];
1929
1714
  case 1:
1930
- body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1931
- "InlineResponse201", ""]);
1715
+ body = _b.apply(_a, [_d.apply(_c, [_6.sent(), contentType]),
1716
+ "SubscriptionBody", ""]);
1932
1717
  return [2, body];
1933
1718
  case 2:
1934
1719
  if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 4];
@@ -1936,8 +1721,8 @@ var DefaultApiResponseProcessor = (function () {
1936
1721
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1937
1722
  return [4, response.body.text()];
1938
1723
  case 3:
1939
- body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1940
- "InlineResponse201", ""]);
1724
+ body = _f.apply(_e, [_h.apply(_g, [_6.sent(), contentType]),
1725
+ "SubscriptionBody", ""]);
1941
1726
  return [2, body];
1942
1727
  case 4:
1943
1728
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 6];
@@ -1945,41 +1730,50 @@ var DefaultApiResponseProcessor = (function () {
1945
1730
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1946
1731
  return [4, response.body.text()];
1947
1732
  case 5:
1948
- body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1733
+ body = _k.apply(_j, [_m.apply(_l, [_6.sent(), contentType]),
1949
1734
  "GenericError", ""]);
1950
1735
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1951
1736
  case 6:
1952
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 8];
1737
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 8];
1953
1738
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1954
1739
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1955
1740
  return [4, response.body.text()];
1956
1741
  case 7:
1957
- body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1742
+ body = _p.apply(_o, [_r.apply(_q, [_6.sent(), contentType]),
1958
1743
  "GenericError", ""]);
1959
- throw new exception_1.ApiException(409, "Operation is not permitted due to user having the maximum number of subscriptions assigned", body, response.headers);
1744
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
1960
1745
  case 8:
1961
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 10];
1746
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 10];
1962
1747
  _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1963
1748
  _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1964
1749
  return [4, response.body.text()];
1965
1750
  case 9:
1966
- body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1967
- "RateLimiterError", ""]);
1968
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
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);
1969
1754
  case 10:
1970
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1755
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 12];
1971
1756
  _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1972
1757
  _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1973
1758
  return [4, response.body.text()];
1974
1759
  case 11:
1975
- body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1976
- "InlineResponse201", ""]);
1977
- return [2, body];
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);
1978
1763
  case 12:
1979
- _0 = exception_1.ApiException.bind;
1980
- _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
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!"];
1981
1775
  return [4, response.getBodyAsAny()];
1982
- case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1776
+ case 15: throw new (_4.apply(exception_1.ApiException, _5.concat([_6.sent(), response.headers])))();
1983
1777
  }
1984
1778
  });
1985
1779
  });
@@ -2042,7 +1836,7 @@ var DefaultApiResponseProcessor = (function () {
2042
1836
  return [4, response.body.text()];
2043
1837
  case 11:
2044
1838
  body = _x.apply(_w, [_z.apply(_y, [_6.sent(), contentType]),
2045
- "RateLimiterError", ""]);
1839
+ "RateLimitError", ""]);
2046
1840
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2047
1841
  case 12:
2048
1842
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 14];
@@ -2064,69 +1858,9 @@ var DefaultApiResponseProcessor = (function () {
2064
1858
  };
2065
1859
  DefaultApiResponseProcessor.prototype.deleteAlias = function (response) {
2066
1860
  return __awaiter(this, void 0, void 0, function () {
2067
- 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;
2068
- return __generator(this, function (_y) {
2069
- switch (_y.label) {
2070
- case 0:
2071
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2072
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2073
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2074
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2075
- return [4, response.body.text()];
2076
- case 1:
2077
- body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2078
- "InlineResponse200", ""]);
2079
- return [2, body];
2080
- case 2:
2081
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2082
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2083
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2084
- return [4, response.body.text()];
2085
- case 3:
2086
- body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2087
- "GenericError", ""]);
2088
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2089
- case 4:
2090
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
2091
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2092
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2093
- return [4, response.body.text()];
2094
- case 5:
2095
- body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2096
- "GenericError", ""]);
2097
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2098
- case 6:
2099
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2100
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2101
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2102
- return [4, response.body.text()];
2103
- case 7:
2104
- body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2105
- "RateLimiterError", ""]);
2106
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2107
- case 8:
2108
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2109
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2110
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2111
- return [4, response.body.text()];
2112
- case 9:
2113
- body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2114
- "InlineResponse200", ""]);
2115
- return [2, body];
2116
- case 10:
2117
- _w = exception_1.ApiException.bind;
2118
- _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2119
- return [4, response.getBodyAsAny()];
2120
- case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2121
- }
2122
- });
2123
- });
2124
- };
2125
- DefaultApiResponseProcessor.prototype.deletePlayer = function (response) {
2126
- return __awaiter(this, void 0, void 0, function () {
2127
- 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;
2128
- return __generator(this, function (_y) {
2129
- switch (_y.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) {
2130
1864
  case 0:
2131
1865
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2132
1866
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2134,8 +1868,8 @@ var DefaultApiResponseProcessor = (function () {
2134
1868
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2135
1869
  return [4, response.body.text()];
2136
1870
  case 1:
2137
- body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2138
- "DeletePlayerSuccessResponse", ""]);
1871
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1872
+ "UserIdentityBody", ""]);
2139
1873
  return [2, body];
2140
1874
  case 2:
2141
1875
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2143,7 +1877,7 @@ var DefaultApiResponseProcessor = (function () {
2143
1877
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2144
1878
  return [4, response.body.text()];
2145
1879
  case 3:
2146
- body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1880
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
2147
1881
  "GenericError", ""]);
2148
1882
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2149
1883
  case 4:
@@ -2152,282 +1886,141 @@ var DefaultApiResponseProcessor = (function () {
2152
1886
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2153
1887
  return [4, response.body.text()];
2154
1888
  case 5:
2155
- body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2156
- "DeletePlayerNotFoundResponse", ""]);
2157
- throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2158
- case 6:
2159
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2160
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2161
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2162
- return [4, response.body.text()];
2163
- case 7:
2164
- body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2165
- "RateLimiterError", ""]);
2166
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2167
- case 8:
2168
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2169
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2170
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2171
- return [4, response.body.text()];
2172
- case 9:
2173
- body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2174
- "DeletePlayerSuccessResponse", ""]);
2175
- return [2, body];
2176
- case 10:
2177
- _w = exception_1.ApiException.bind;
2178
- _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2179
- return [4, response.getBodyAsAny()];
2180
- case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2181
- }
2182
- });
2183
- });
2184
- };
2185
- DefaultApiResponseProcessor.prototype.deleteSegments = function (response) {
2186
- return __awaiter(this, void 0, void 0, function () {
2187
- 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;
2188
- return __generator(this, function (_y) {
2189
- switch (_y.label) {
2190
- case 0:
2191
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2192
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2193
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2194
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2195
- return [4, response.body.text()];
2196
- case 1:
2197
- body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2198
- "DeleteSegmentSuccessResponse", ""]);
2199
- return [2, body];
2200
- case 2:
2201
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2202
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2203
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2204
- return [4, response.body.text()];
2205
- case 3:
2206
- body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1889
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
2207
1890
  "GenericError", ""]);
2208
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2209
- case 4:
2210
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2211
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2212
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2213
- return [4, response.body.text()];
2214
- case 5:
2215
- body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2216
- "DeleteSegmentNotFoundResponse", ""]);
2217
1891
  throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2218
1892
  case 6:
2219
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
1893
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 8];
2220
1894
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2221
1895
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2222
1896
  return [4, response.body.text()];
2223
1897
  case 7:
2224
- body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2225
- "RateLimiterError", ""]);
2226
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1898
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1899
+ "GenericError", ""]);
1900
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2227
1901
  case 8:
2228
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
1902
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 10];
2229
1903
  _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2230
1904
  _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2231
1905
  return [4, response.body.text()];
2232
1906
  case 9:
2233
- body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2234
- "DeleteSegmentSuccessResponse", ""]);
2235
- return [2, body];
2236
- case 10:
2237
- _w = exception_1.ApiException.bind;
2238
- _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2239
- return [4, response.getBodyAsAny()];
2240
- case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2241
- }
2242
- });
2243
- });
2244
- };
2245
- DefaultApiResponseProcessor.prototype.deleteSubscription = function (response) {
2246
- return __awaiter(this, void 0, void 0, function () {
2247
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2248
- return __generator(this, function (_u) {
2249
- switch (_u.label) {
2250
- case 0:
2251
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2252
- if ((0, util_1.isCodeInRange)("202", response.httpStatusCode)) {
2253
- return [2];
2254
- }
2255
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
2256
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2257
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2258
- return [4, response.body.text()];
2259
- case 1:
2260
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2261
- "GenericError", ""]);
2262
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2263
- case 2:
2264
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
2265
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2266
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2267
- return [4, response.body.text()];
2268
- case 3:
2269
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2270
- "GenericError", ""]);
2271
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2272
- case 4:
2273
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2274
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2275
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2276
- return [4, response.body.text()];
2277
- case 5:
2278
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2279
- "RateLimiterError", ""]);
2280
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2281
- case 6:
2282
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2283
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2284
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2285
- return [4, response.body.text()];
2286
- case 7:
2287
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2288
- "void", ""]);
2289
- return [2, body];
2290
- case 8:
2291
- _s = exception_1.ApiException.bind;
2292
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2293
- return [4, response.getBodyAsAny()];
2294
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2295
- }
2296
- });
2297
- });
2298
- };
2299
- DefaultApiResponseProcessor.prototype.deleteUser = function (response) {
2300
- return __awaiter(this, void 0, void 0, function () {
2301
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2302
- return __generator(this, function (_u) {
2303
- switch (_u.label) {
2304
- case 0:
2305
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2306
- if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
2307
- return [2];
2308
- }
2309
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
2310
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2311
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2312
- return [4, response.body.text()];
2313
- case 1:
2314
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2315
- "GenericError", ""]);
2316
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2317
- case 2:
2318
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
2319
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2320
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2321
- return [4, response.body.text()];
2322
- case 3:
2323
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2324
- "GenericError", ""]);
2325
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2326
- case 4:
2327
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2328
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2329
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2330
- return [4, response.body.text()];
2331
- case 5:
2332
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2333
- "RateLimiterError", ""]);
1907
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1908
+ "RateLimitError", ""]);
2334
1909
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2335
- case 6:
2336
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2337
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2338
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
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;
2339
1914
  return [4, response.body.text()];
2340
- case 7:
2341
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2342
- "void", ""]);
2343
- return [2, body];
2344
- case 8:
2345
- _s = exception_1.ApiException.bind;
2346
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
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!"];
2347
1922
  return [4, response.getBodyAsAny()];
2348
- 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])))();
2349
1924
  }
2350
1925
  });
2351
1926
  });
2352
1927
  };
2353
- DefaultApiResponseProcessor.prototype.endLiveActivity = function (response) {
1928
+ DefaultApiResponseProcessor.prototype.deleteSegment = function (response) {
2354
1929
  return __awaiter(this, void 0, void 0, function () {
2355
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2356
- return __generator(this, function (_q) {
2357
- switch (_q.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) {
2358
1933
  case 0:
2359
1934
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2360
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
2361
- return [2];
2362
- }
2363
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
1935
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2364
1936
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2365
1937
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2366
1938
  return [4, response.body.text()];
2367
1939
  case 1:
2368
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2369
- "GenericError", ""]);
2370
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1940
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
1941
+ "GenericSuccessBoolResponse", ""]);
1942
+ return [2, body];
2371
1943
  case 2:
2372
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 4];
1944
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2373
1945
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2374
1946
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2375
1947
  return [4, response.body.text()];
2376
1948
  case 3:
2377
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2378
- "RateLimiterError", ""]);
2379
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1949
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1950
+ "GenericError", ""]);
1951
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2380
1952
  case 4:
2381
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1953
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2382
1954
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2383
1955
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2384
1956
  return [4, response.body.text()];
2385
1957
  case 5:
2386
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2387
- "void", ""]);
2388
- return [2, body];
1958
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
1959
+ "GenericSuccessBoolResponse", ""]);
1960
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2389
1961
  case 6:
2390
- _o = exception_1.ApiException.bind;
2391
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1962
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
1963
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1964
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1965
+ return [4, response.body.text()];
1966
+ case 7:
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);
1970
+ case 8:
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!"];
2392
1982
  return [4, response.getBodyAsAny()];
2393
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1983
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2394
1984
  }
2395
1985
  });
2396
1986
  });
2397
1987
  };
2398
- DefaultApiResponseProcessor.prototype.exportEvents = function (response) {
1988
+ DefaultApiResponseProcessor.prototype.deleteSubscription = function (response) {
2399
1989
  return __awaiter(this, void 0, void 0, function () {
2400
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;
2401
1991
  return __generator(this, function (_y) {
2402
1992
  switch (_y.label) {
2403
1993
  case 0:
2404
1994
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2405
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1995
+ if ((0, util_1.isCodeInRange)("202", response.httpStatusCode)) {
1996
+ return [2];
1997
+ }
1998
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
2406
1999
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2407
2000
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2408
2001
  return [4, response.body.text()];
2409
2002
  case 1:
2410
2003
  body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2411
- "ExportEventsSuccessResponse", ""]);
2412
- return [2, body];
2004
+ "GenericError", ""]);
2005
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2413
2006
  case 2:
2414
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2007
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
2415
2008
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2416
2009
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2417
2010
  return [4, response.body.text()];
2418
2011
  case 3:
2419
2012
  body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2420
2013
  "GenericError", ""]);
2421
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2014
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2422
2015
  case 4:
2423
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2016
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
2424
2017
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2425
2018
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2426
2019
  return [4, response.body.text()];
2427
2020
  case 5:
2428
2021
  body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2429
2022
  "GenericError", ""]);
2430
- throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2023
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2431
2024
  case 6:
2432
2025
  if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2433
2026
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
@@ -2435,7 +2028,7 @@ var DefaultApiResponseProcessor = (function () {
2435
2028
  return [4, response.body.text()];
2436
2029
  case 7:
2437
2030
  body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2438
- "RateLimiterError", ""]);
2031
+ "RateLimitError", ""]);
2439
2032
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2440
2033
  case 8:
2441
2034
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
@@ -2444,7 +2037,7 @@ var DefaultApiResponseProcessor = (function () {
2444
2037
  return [4, response.body.text()];
2445
2038
  case 9:
2446
2039
  body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2447
- "ExportEventsSuccessResponse", ""]);
2040
+ "void", ""]);
2448
2041
  return [2, body];
2449
2042
  case 10:
2450
2043
  _w = exception_1.ApiException.bind;
@@ -2455,30 +2048,33 @@ var DefaultApiResponseProcessor = (function () {
2455
2048
  });
2456
2049
  });
2457
2050
  };
2458
- DefaultApiResponseProcessor.prototype.exportPlayers = function (response) {
2051
+ DefaultApiResponseProcessor.prototype.deleteUser = function (response) {
2459
2052
  return __awaiter(this, void 0, void 0, function () {
2460
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;
2461
2054
  return __generator(this, function (_u) {
2462
2055
  switch (_u.label) {
2463
2056
  case 0:
2464
2057
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2465
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2058
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
2059
+ return [2];
2060
+ }
2061
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
2466
2062
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2467
2063
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2468
2064
  return [4, response.body.text()];
2469
2065
  case 1:
2470
2066
  body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2471
- "ExportPlayersSuccessResponse", ""]);
2472
- return [2, body];
2067
+ "GenericError", ""]);
2068
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2473
2069
  case 2:
2474
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2070
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
2475
2071
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2476
2072
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2477
2073
  return [4, response.body.text()];
2478
2074
  case 3:
2479
2075
  body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2480
2076
  "GenericError", ""]);
2481
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2077
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2482
2078
  case 4:
2483
2079
  if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2484
2080
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
@@ -2486,7 +2082,7 @@ var DefaultApiResponseProcessor = (function () {
2486
2082
  return [4, response.body.text()];
2487
2083
  case 5:
2488
2084
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2489
- "RateLimiterError", ""]);
2085
+ "RateLimitError", ""]);
2490
2086
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2491
2087
  case 6:
2492
2088
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -2495,7 +2091,7 @@ var DefaultApiResponseProcessor = (function () {
2495
2091
  return [4, response.body.text()];
2496
2092
  case 7:
2497
2093
  body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2498
- "ExportPlayersSuccessResponse", ""]);
2094
+ "void", ""]);
2499
2095
  return [2, body];
2500
2096
  case 8:
2501
2097
  _s = exception_1.ApiException.bind;
@@ -2506,11 +2102,11 @@ var DefaultApiResponseProcessor = (function () {
2506
2102
  });
2507
2103
  });
2508
2104
  };
2509
- DefaultApiResponseProcessor.prototype.fetchAliases = function (response) {
2105
+ DefaultApiResponseProcessor.prototype.exportEvents = function (response) {
2510
2106
  return __awaiter(this, void 0, void 0, function () {
2511
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2512
- return __generator(this, function (_q) {
2513
- 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) {
2514
2110
  case 0:
2515
2111
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2516
2112
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2518,8 +2114,8 @@ var DefaultApiResponseProcessor = (function () {
2518
2114
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2519
2115
  return [4, response.body.text()];
2520
2116
  case 1:
2521
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2522
- "UserIdentityResponse", ""]);
2117
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2118
+ "ExportEventsSuccessResponse", ""]);
2523
2119
  return [2, body];
2524
2120
  case 2:
2525
2121
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2527,79 +2123,46 @@ var DefaultApiResponseProcessor = (function () {
2527
2123
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2528
2124
  return [4, response.body.text()];
2529
2125
  case 3:
2530
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2126
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2531
2127
  "GenericError", ""]);
2532
2128
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2533
2129
  case 4:
2534
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2130
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2535
2131
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2536
2132
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2537
2133
  return [4, response.body.text()];
2538
2134
  case 5:
2539
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2540
- "UserIdentityResponse", ""]);
2541
- return [2, body];
2542
- case 6:
2543
- _o = exception_1.ApiException.bind;
2544
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2545
- return [4, response.getBodyAsAny()];
2546
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2547
- }
2548
- });
2549
- });
2550
- };
2551
- DefaultApiResponseProcessor.prototype.fetchUser = function (response) {
2552
- return __awaiter(this, void 0, void 0, function () {
2553
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2554
- return __generator(this, function (_u) {
2555
- switch (_u.label) {
2556
- case 0:
2557
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2558
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2559
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2560
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2561
- return [4, response.body.text()];
2562
- case 1:
2563
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2564
- "User", ""]);
2565
- return [2, body];
2566
- case 2:
2567
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2568
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2569
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2570
- return [4, response.body.text()];
2571
- case 3:
2572
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2135
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2573
2136
  "GenericError", ""]);
2574
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2575
- case 4:
2576
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2577
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2578
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2579
- return [4, response.body.text()];
2580
- case 5:
2581
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2582
- "RateLimiterError", ""]);
2583
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2137
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2584
2138
  case 6:
2585
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2139
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2586
2140
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2587
2141
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2588
2142
  return [4, response.body.text()];
2589
2143
  case 7:
2590
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2591
- "User", ""]);
2592
- return [2, body];
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);
2593
2147
  case 8:
2594
- _s = exception_1.ApiException.bind;
2595
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
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!"];
2596
2159
  return [4, response.getBodyAsAny()];
2597
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2160
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2598
2161
  }
2599
2162
  });
2600
2163
  });
2601
2164
  };
2602
- DefaultApiResponseProcessor.prototype.fetchUserIdentity = function (response) {
2165
+ DefaultApiResponseProcessor.prototype.exportSubscriptions = function (response) {
2603
2166
  return __awaiter(this, void 0, void 0, function () {
2604
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;
2605
2168
  return __generator(this, function (_u) {
@@ -2612,7 +2175,7 @@ var DefaultApiResponseProcessor = (function () {
2612
2175
  return [4, response.body.text()];
2613
2176
  case 1:
2614
2177
  body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2615
- "InlineResponse200", ""]);
2178
+ "ExportSubscriptionsSuccessResponse", ""]);
2616
2179
  return [2, body];
2617
2180
  case 2:
2618
2181
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2630,7 +2193,7 @@ var DefaultApiResponseProcessor = (function () {
2630
2193
  return [4, response.body.text()];
2631
2194
  case 5:
2632
2195
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2633
- "RateLimiterError", ""]);
2196
+ "RateLimitError", ""]);
2634
2197
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2635
2198
  case 6:
2636
2199
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -2639,7 +2202,7 @@ var DefaultApiResponseProcessor = (function () {
2639
2202
  return [4, response.body.text()];
2640
2203
  case 7:
2641
2204
  body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2642
- "InlineResponse200", ""]);
2205
+ "ExportSubscriptionsSuccessResponse", ""]);
2643
2206
  return [2, body];
2644
2207
  case 8:
2645
2208
  _s = exception_1.ApiException.bind;
@@ -2650,11 +2213,11 @@ var DefaultApiResponseProcessor = (function () {
2650
2213
  });
2651
2214
  });
2652
2215
  };
2653
- DefaultApiResponseProcessor.prototype.getApp = function (response) {
2216
+ DefaultApiResponseProcessor.prototype.getAliases = function (response) {
2654
2217
  return __awaiter(this, void 0, void 0, function () {
2655
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2656
- return __generator(this, function (_u) {
2657
- switch (_u.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) {
2658
2221
  case 0:
2659
2222
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2660
2223
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2662,8 +2225,8 @@ var DefaultApiResponseProcessor = (function () {
2662
2225
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2663
2226
  return [4, response.body.text()];
2664
2227
  case 1:
2665
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2666
- "App", ""]);
2228
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2229
+ "UserIdentityBody", ""]);
2667
2230
  return [2, body];
2668
2231
  case 2:
2669
2232
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2671,37 +2234,46 @@ var DefaultApiResponseProcessor = (function () {
2671
2234
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2672
2235
  return [4, response.body.text()];
2673
2236
  case 3:
2674
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2237
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2675
2238
  "GenericError", ""]);
2676
2239
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2677
2240
  case 4:
2678
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2241
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2679
2242
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2680
2243
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2681
2244
  return [4, response.body.text()];
2682
2245
  case 5:
2683
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2684
- "RateLimiterError", ""]);
2685
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
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);
2686
2249
  case 6:
2687
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2250
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2688
2251
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2689
2252
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2690
2253
  return [4, response.body.text()];
2691
2254
  case 7:
2692
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2693
- "App", ""]);
2694
- return [2, body];
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);
2695
2258
  case 8:
2696
- _s = exception_1.ApiException.bind;
2697
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
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!"];
2698
2270
  return [4, response.getBodyAsAny()];
2699
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2271
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2700
2272
  }
2701
2273
  });
2702
2274
  });
2703
2275
  };
2704
- DefaultApiResponseProcessor.prototype.getApps = function (response) {
2276
+ DefaultApiResponseProcessor.prototype.getAliasesBySubscription = function (response) {
2705
2277
  return __awaiter(this, void 0, void 0, function () {
2706
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;
2707
2279
  return __generator(this, function (_u) {
@@ -2714,7 +2286,7 @@ var DefaultApiResponseProcessor = (function () {
2714
2286
  return [4, response.body.text()];
2715
2287
  case 1:
2716
2288
  body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2717
- "Array<App>", ""]);
2289
+ "UserIdentityBody", ""]);
2718
2290
  return [2, body];
2719
2291
  case 2:
2720
2292
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2726,14 +2298,14 @@ var DefaultApiResponseProcessor = (function () {
2726
2298
  "GenericError", ""]);
2727
2299
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2728
2300
  case 4:
2729
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2301
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2730
2302
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2731
2303
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2732
2304
  return [4, response.body.text()];
2733
2305
  case 5:
2734
2306
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2735
- "RateLimiterError", ""]);
2736
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2307
+ "GenericError", ""]);
2308
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2737
2309
  case 6:
2738
2310
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2739
2311
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
@@ -2741,7 +2313,7 @@ var DefaultApiResponseProcessor = (function () {
2741
2313
  return [4, response.body.text()];
2742
2314
  case 7:
2743
2315
  body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2744
- "Array<App>", ""]);
2316
+ "UserIdentityBody", ""]);
2745
2317
  return [2, body];
2746
2318
  case 8:
2747
2319
  _s = exception_1.ApiException.bind;
@@ -2752,7 +2324,7 @@ var DefaultApiResponseProcessor = (function () {
2752
2324
  });
2753
2325
  });
2754
2326
  };
2755
- DefaultApiResponseProcessor.prototype.getEligibleIams = function (response) {
2327
+ DefaultApiResponseProcessor.prototype.getApp = function (response) {
2756
2328
  return __awaiter(this, void 0, void 0, function () {
2757
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;
2758
2330
  return __generator(this, function (_u) {
@@ -2765,7 +2337,7 @@ var DefaultApiResponseProcessor = (function () {
2765
2337
  return [4, response.body.text()];
2766
2338
  case 1:
2767
2339
  body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2768
- "InlineResponse2003", ""]);
2340
+ "App", ""]);
2769
2341
  return [2, body];
2770
2342
  case 2:
2771
2343
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2783,7 +2355,7 @@ var DefaultApiResponseProcessor = (function () {
2783
2355
  return [4, response.body.text()];
2784
2356
  case 5:
2785
2357
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2786
- "RateLimiterError", ""]);
2358
+ "RateLimitError", ""]);
2787
2359
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2788
2360
  case 6:
2789
2361
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -2792,7 +2364,7 @@ var DefaultApiResponseProcessor = (function () {
2792
2364
  return [4, response.body.text()];
2793
2365
  case 7:
2794
2366
  body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2795
- "InlineResponse2003", ""]);
2367
+ "App", ""]);
2796
2368
  return [2, body];
2797
2369
  case 8:
2798
2370
  _s = exception_1.ApiException.bind;
@@ -2803,7 +2375,7 @@ var DefaultApiResponseProcessor = (function () {
2803
2375
  });
2804
2376
  });
2805
2377
  };
2806
- DefaultApiResponseProcessor.prototype.getNotification = function (response) {
2378
+ DefaultApiResponseProcessor.prototype.getApps = function (response) {
2807
2379
  return __awaiter(this, void 0, void 0, function () {
2808
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;
2809
2381
  return __generator(this, function (_u) {
@@ -2816,7 +2388,7 @@ var DefaultApiResponseProcessor = (function () {
2816
2388
  return [4, response.body.text()];
2817
2389
  case 1:
2818
2390
  body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2819
- "NotificationWithMeta", ""]);
2391
+ "Array<App>", ""]);
2820
2392
  return [2, body];
2821
2393
  case 2:
2822
2394
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2834,7 +2406,7 @@ var DefaultApiResponseProcessor = (function () {
2834
2406
  return [4, response.body.text()];
2835
2407
  case 5:
2836
2408
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2837
- "RateLimiterError", ""]);
2409
+ "RateLimitError", ""]);
2838
2410
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2839
2411
  case 6:
2840
2412
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -2843,7 +2415,7 @@ var DefaultApiResponseProcessor = (function () {
2843
2415
  return [4, response.body.text()];
2844
2416
  case 7:
2845
2417
  body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2846
- "NotificationWithMeta", ""]);
2418
+ "Array<App>", ""]);
2847
2419
  return [2, body];
2848
2420
  case 8:
2849
2421
  _s = exception_1.ApiException.bind;
@@ -2854,11 +2426,11 @@ var DefaultApiResponseProcessor = (function () {
2854
2426
  });
2855
2427
  });
2856
2428
  };
2857
- DefaultApiResponseProcessor.prototype.getNotificationHistory = function (response) {
2429
+ DefaultApiResponseProcessor.prototype.getNotification = function (response) {
2858
2430
  return __awaiter(this, void 0, void 0, function () {
2859
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2860
- return __generator(this, function (_u) {
2861
- switch (_u.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) {
2862
2434
  case 0:
2863
2435
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2864
2436
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2866,8 +2438,8 @@ var DefaultApiResponseProcessor = (function () {
2866
2438
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2867
2439
  return [4, response.body.text()];
2868
2440
  case 1:
2869
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2870
- "NotificationHistorySuccessResponse", ""]);
2441
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2442
+ "NotificationWithMeta", ""]);
2871
2443
  return [2, body];
2872
2444
  case 2:
2873
2445
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2875,41 +2447,50 @@ var DefaultApiResponseProcessor = (function () {
2875
2447
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2876
2448
  return [4, response.body.text()];
2877
2449
  case 3:
2878
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2450
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2879
2451
  "GenericError", ""]);
2880
2452
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2881
2453
  case 4:
2882
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2454
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2883
2455
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2884
2456
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2885
2457
  return [4, response.body.text()];
2886
2458
  case 5:
2887
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2888
- "RateLimiterError", ""]);
2889
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
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);
2890
2462
  case 6:
2891
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2463
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2892
2464
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2893
2465
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2894
2466
  return [4, response.body.text()];
2895
2467
  case 7:
2896
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2897
- "NotificationHistorySuccessResponse", ""]);
2898
- return [2, body];
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);
2899
2471
  case 8:
2900
- _s = exception_1.ApiException.bind;
2901
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
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]),
2478
+ "NotificationWithMeta", ""]);
2479
+ return [2, body];
2480
+ case 10:
2481
+ _w = exception_1.ApiException.bind;
2482
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2902
2483
  return [4, response.getBodyAsAny()];
2903
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2484
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2904
2485
  }
2905
2486
  });
2906
2487
  });
2907
2488
  };
2908
- DefaultApiResponseProcessor.prototype.getNotifications = function (response) {
2489
+ DefaultApiResponseProcessor.prototype.getNotificationHistory = function (response) {
2909
2490
  return __awaiter(this, void 0, void 0, function () {
2910
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2911
- return __generator(this, function (_u) {
2912
- switch (_u.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) {
2913
2494
  case 0:
2914
2495
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2915
2496
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2917,8 +2498,8 @@ var DefaultApiResponseProcessor = (function () {
2917
2498
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2918
2499
  return [4, response.body.text()];
2919
2500
  case 1:
2920
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2921
- "NotificationSlice", ""]);
2501
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2502
+ "NotificationHistorySuccessResponse", ""]);
2922
2503
  return [2, body];
2923
2504
  case 2:
2924
2505
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2926,37 +2507,46 @@ var DefaultApiResponseProcessor = (function () {
2926
2507
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2927
2508
  return [4, response.body.text()];
2928
2509
  case 3:
2929
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2510
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2930
2511
  "GenericError", ""]);
2931
2512
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2932
2513
  case 4:
2933
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2514
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2934
2515
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2935
2516
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2936
2517
  return [4, response.body.text()];
2937
2518
  case 5:
2938
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2939
- "RateLimiterError", ""]);
2940
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
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);
2941
2522
  case 6:
2942
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2523
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2943
2524
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2944
2525
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2945
2526
  return [4, response.body.text()];
2946
2527
  case 7:
2947
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2948
- "NotificationSlice", ""]);
2949
- return [2, body];
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);
2950
2531
  case 8:
2951
- _s = exception_1.ApiException.bind;
2952
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
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]),
2538
+ "NotificationHistorySuccessResponse", ""]);
2539
+ return [2, body];
2540
+ case 10:
2541
+ _w = exception_1.ApiException.bind;
2542
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2953
2543
  return [4, response.getBodyAsAny()];
2954
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2544
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2955
2545
  }
2956
2546
  });
2957
2547
  });
2958
2548
  };
2959
- DefaultApiResponseProcessor.prototype.getOutcomes = function (response) {
2549
+ DefaultApiResponseProcessor.prototype.getNotifications = function (response) {
2960
2550
  return __awaiter(this, void 0, void 0, function () {
2961
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;
2962
2552
  return __generator(this, function (_u) {
@@ -2969,7 +2559,7 @@ var DefaultApiResponseProcessor = (function () {
2969
2559
  return [4, response.body.text()];
2970
2560
  case 1:
2971
2561
  body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2972
- "OutcomesData", ""]);
2562
+ "NotificationSlice", ""]);
2973
2563
  return [2, body];
2974
2564
  case 2:
2975
2565
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2987,7 +2577,7 @@ var DefaultApiResponseProcessor = (function () {
2987
2577
  return [4, response.body.text()];
2988
2578
  case 5:
2989
2579
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2990
- "RateLimiterError", ""]);
2580
+ "RateLimitError", ""]);
2991
2581
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2992
2582
  case 6:
2993
2583
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -2996,7 +2586,7 @@ var DefaultApiResponseProcessor = (function () {
2996
2586
  return [4, response.body.text()];
2997
2587
  case 7:
2998
2588
  body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2999
- "OutcomesData", ""]);
2589
+ "NotificationSlice", ""]);
3000
2590
  return [2, body];
3001
2591
  case 8:
3002
2592
  _s = exception_1.ApiException.bind;
@@ -3007,7 +2597,7 @@ var DefaultApiResponseProcessor = (function () {
3007
2597
  });
3008
2598
  });
3009
2599
  };
3010
- DefaultApiResponseProcessor.prototype.getPlayer = function (response) {
2600
+ DefaultApiResponseProcessor.prototype.getOutcomes = function (response) {
3011
2601
  return __awaiter(this, void 0, void 0, function () {
3012
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;
3013
2603
  return __generator(this, function (_u) {
@@ -3020,7 +2610,7 @@ var DefaultApiResponseProcessor = (function () {
3020
2610
  return [4, response.body.text()];
3021
2611
  case 1:
3022
2612
  body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
3023
- "Player", ""]);
2613
+ "OutcomesData", ""]);
3024
2614
  return [2, body];
3025
2615
  case 2:
3026
2616
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -3038,7 +2628,7 @@ var DefaultApiResponseProcessor = (function () {
3038
2628
  return [4, response.body.text()];
3039
2629
  case 5:
3040
2630
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
3041
- "RateLimiterError", ""]);
2631
+ "RateLimitError", ""]);
3042
2632
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3043
2633
  case 6:
3044
2634
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -3047,7 +2637,7 @@ var DefaultApiResponseProcessor = (function () {
3047
2637
  return [4, response.body.text()];
3048
2638
  case 7:
3049
2639
  body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
3050
- "Player", ""]);
2640
+ "OutcomesData", ""]);
3051
2641
  return [2, body];
3052
2642
  case 8:
3053
2643
  _s = exception_1.ApiException.bind;
@@ -3058,20 +2648,20 @@ var DefaultApiResponseProcessor = (function () {
3058
2648
  });
3059
2649
  });
3060
2650
  };
3061
- DefaultApiResponseProcessor.prototype.getPlayers = function (response) {
2651
+ DefaultApiResponseProcessor.prototype.getSegments = function (response) {
3062
2652
  return __awaiter(this, void 0, void 0, function () {
3063
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;
3064
2654
  return __generator(this, function (_u) {
3065
2655
  switch (_u.label) {
3066
2656
  case 0:
3067
2657
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
3068
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2658
+ if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
3069
2659
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
3070
2660
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
3071
2661
  return [4, response.body.text()];
3072
2662
  case 1:
3073
2663
  body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
3074
- "PlayerSlice", ""]);
2664
+ "GetSegmentsSuccessResponse", ""]);
3075
2665
  return [2, body];
3076
2666
  case 2:
3077
2667
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -3089,7 +2679,7 @@ var DefaultApiResponseProcessor = (function () {
3089
2679
  return [4, response.body.text()];
3090
2680
  case 5:
3091
2681
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
3092
- "RateLimiterError", ""]);
2682
+ "RateLimitError", ""]);
3093
2683
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3094
2684
  case 6:
3095
2685
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -3098,7 +2688,7 @@ var DefaultApiResponseProcessor = (function () {
3098
2688
  return [4, response.body.text()];
3099
2689
  case 7:
3100
2690
  body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
3101
- "PlayerSlice", ""]);
2691
+ "GetSegmentsSuccessResponse", ""]);
3102
2692
  return [2, body];
3103
2693
  case 8:
3104
2694
  _s = exception_1.ApiException.bind;
@@ -3109,7 +2699,7 @@ var DefaultApiResponseProcessor = (function () {
3109
2699
  });
3110
2700
  });
3111
2701
  };
3112
- DefaultApiResponseProcessor.prototype.identifyUserByAlias = function (response) {
2702
+ DefaultApiResponseProcessor.prototype.getUser = function (response) {
3113
2703
  return __awaiter(this, void 0, void 0, function () {
3114
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;
3115
2705
  return __generator(this, function (_y) {
@@ -3122,7 +2712,7 @@ var DefaultApiResponseProcessor = (function () {
3122
2712
  return [4, response.body.text()];
3123
2713
  case 1:
3124
2714
  body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
3125
- "InlineResponse200", ""]);
2715
+ "User", ""]);
3126
2716
  return [2, body];
3127
2717
  case 2:
3128
2718
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -3134,14 +2724,14 @@ var DefaultApiResponseProcessor = (function () {
3134
2724
  "GenericError", ""]);
3135
2725
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
3136
2726
  case 4:
3137
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
2727
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
3138
2728
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
3139
2729
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
3140
2730
  return [4, response.body.text()];
3141
2731
  case 5:
3142
2732
  body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
3143
2733
  "GenericError", ""]);
3144
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2734
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
3145
2735
  case 6:
3146
2736
  if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
3147
2737
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
@@ -3149,7 +2739,7 @@ var DefaultApiResponseProcessor = (function () {
3149
2739
  return [4, response.body.text()];
3150
2740
  case 7:
3151
2741
  body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3152
- "RateLimiterError", ""]);
2742
+ "RateLimitError", ""]);
3153
2743
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3154
2744
  case 8:
3155
2745
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
@@ -3158,7 +2748,7 @@ var DefaultApiResponseProcessor = (function () {
3158
2748
  return [4, response.body.text()];
3159
2749
  case 9:
3160
2750
  body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
3161
- "InlineResponse200", ""]);
2751
+ "User", ""]);
3162
2752
  return [2, body];
3163
2753
  case 10:
3164
2754
  _w = exception_1.ApiException.bind;
@@ -3169,11 +2759,11 @@ var DefaultApiResponseProcessor = (function () {
3169
2759
  });
3170
2760
  });
3171
2761
  };
3172
- DefaultApiResponseProcessor.prototype.identifyUserBySubscriptionId = function (response) {
2762
+ DefaultApiResponseProcessor.prototype.transferSubscription = function (response) {
3173
2763
  return __awaiter(this, void 0, void 0, function () {
3174
- 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;
3175
- return __generator(this, function (_y) {
3176
- switch (_y.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) {
3177
2767
  case 0:
3178
2768
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
3179
2769
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -3181,8 +2771,8 @@ var DefaultApiResponseProcessor = (function () {
3181
2771
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
3182
2772
  return [4, response.body.text()];
3183
2773
  case 1:
3184
- body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
3185
- "UserIdentityResponse", ""]);
2774
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
2775
+ "UserIdentityBody", ""]);
3186
2776
  return [2, body];
3187
2777
  case 2:
3188
2778
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -3190,59 +2780,68 @@ var DefaultApiResponseProcessor = (function () {
3190
2780
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
3191
2781
  return [4, response.body.text()];
3192
2782
  case 3:
3193
- body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2783
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
3194
2784
  "GenericError", ""]);
3195
2785
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
3196
2786
  case 4:
3197
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
2787
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
3198
2788
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
3199
2789
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
3200
2790
  return [4, response.body.text()];
3201
2791
  case 5:
3202
- body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2792
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
3203
2793
  "GenericError", ""]);
3204
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2794
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
3205
2795
  case 6:
3206
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2796
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 8];
3207
2797
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3208
2798
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3209
2799
  return [4, response.body.text()];
3210
2800
  case 7:
3211
- body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3212
- "RateLimiterError", ""]);
3213
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2801
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
2802
+ "GenericError", ""]);
2803
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
3214
2804
  case 8:
3215
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2805
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 10];
3216
2806
  _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
3217
2807
  _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
3218
2808
  return [4, response.body.text()];
3219
2809
  case 9:
3220
- body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
3221
- "UserIdentityResponse", ""]);
3222
- return [2, body];
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);
3223
2813
  case 10:
3224
- _w = exception_1.ApiException.bind;
3225
- _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
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!"];
3226
2825
  return [4, response.getBodyAsAny()];
3227
- case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2826
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
3228
2827
  }
3229
2828
  });
3230
2829
  });
3231
2830
  };
3232
- DefaultApiResponseProcessor.prototype.transferSubscription = function (response) {
2831
+ DefaultApiResponseProcessor.prototype.unsubscribeEmailWithToken = function (response) {
3233
2832
  return __awaiter(this, void 0, void 0, function () {
3234
- 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;
3235
- return __generator(this, function (_y) {
3236
- switch (_y.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) {
3237
2836
  case 0:
3238
2837
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
3239
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2838
+ if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 2];
3240
2839
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
3241
2840
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
3242
2841
  return [4, response.body.text()];
3243
2842
  case 1:
3244
- body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
3245
- "UserIdentityResponse", ""]);
2843
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2844
+ "GenericSuccessBoolResponse", ""]);
3246
2845
  return [2, body];
3247
2846
  case 2:
3248
2847
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -3250,41 +2849,32 @@ var DefaultApiResponseProcessor = (function () {
3250
2849
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
3251
2850
  return [4, response.body.text()];
3252
2851
  case 3:
3253
- body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2852
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
3254
2853
  "GenericError", ""]);
3255
2854
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
3256
2855
  case 4:
3257
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
2856
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
3258
2857
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
3259
2858
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
3260
2859
  return [4, response.body.text()];
3261
2860
  case 5:
3262
- body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
3263
- "GenericError", ""]);
3264
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
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);
3265
2864
  case 6:
3266
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2865
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
3267
2866
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3268
2867
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3269
2868
  return [4, response.body.text()];
3270
2869
  case 7:
3271
- body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3272
- "RateLimiterError", ""]);
3273
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3274
- case 8:
3275
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
3276
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
3277
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
3278
- return [4, response.body.text()];
3279
- case 9:
3280
- body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
3281
- "UserIdentityResponse", ""]);
2870
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2871
+ "GenericSuccessBoolResponse", ""]);
3282
2872
  return [2, body];
3283
- case 10:
3284
- _w = exception_1.ApiException.bind;
3285
- _x = [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!"];
3286
2876
  return [4, response.getBodyAsAny()];
3287
- case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2877
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
3288
2878
  }
3289
2879
  });
3290
2880
  });
@@ -3320,7 +2910,7 @@ var DefaultApiResponseProcessor = (function () {
3320
2910
  return [4, response.body.text()];
3321
2911
  case 5:
3322
2912
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
3323
- "RateLimiterError", ""]);
2913
+ "RateLimitError", ""]);
3324
2914
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3325
2915
  case 6:
3326
2916
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -3371,7 +2961,7 @@ var DefaultApiResponseProcessor = (function () {
3371
2961
  return [4, response.body.text()];
3372
2962
  case 5:
3373
2963
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
3374
- "RateLimiterError", ""]);
2964
+ "RateLimitError", ""]);
3375
2965
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3376
2966
  case 6:
3377
2967
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -3391,90 +2981,33 @@ var DefaultApiResponseProcessor = (function () {
3391
2981
  });
3392
2982
  });
3393
2983
  };
3394
- DefaultApiResponseProcessor.prototype.updatePlayer = function (response) {
2984
+ DefaultApiResponseProcessor.prototype.updateSubscription = function (response) {
3395
2985
  return __awaiter(this, void 0, void 0, function () {
3396
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;
3397
2987
  return __generator(this, function (_y) {
3398
2988
  switch (_y.label) {
3399
2989
  case 0:
3400
2990
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
3401
- 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];
3402
2995
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
3403
2996
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
3404
2997
  return [4, response.body.text()];
3405
2998
  case 1:
3406
2999
  body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
3407
- "UpdatePlayerSuccessResponse", ""]);
3408
- return [2, body];
3409
- case 2:
3410
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
3411
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
3412
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
3413
- return [4, response.body.text()];
3414
- case 3:
3415
- body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
3416
3000
  "GenericError", ""]);
3417
3001
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
3418
- case 4:
3419
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
3420
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
3421
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
3422
- return [4, response.body.text()];
3423
- case 5:
3424
- body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
3425
- "GenericError", ""]);
3426
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
3427
- case 6:
3428
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
3429
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3430
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3431
- return [4, response.body.text()];
3432
- case 7:
3433
- body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3434
- "RateLimiterError", ""]);
3435
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3436
- case 8:
3437
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
3438
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
3439
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
3440
- return [4, response.body.text()];
3441
- case 9:
3442
- body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
3443
- "UpdatePlayerSuccessResponse", ""]);
3444
- return [2, body];
3445
- case 10:
3446
- _w = exception_1.ApiException.bind;
3447
- _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3448
- return [4, response.getBodyAsAny()];
3449
- case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
3450
- }
3451
- });
3452
- });
3453
- };
3454
- DefaultApiResponseProcessor.prototype.updatePlayerTags = function (response) {
3455
- return __awaiter(this, void 0, void 0, function () {
3456
- 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;
3457
- return __generator(this, function (_y) {
3458
- switch (_y.label) {
3459
- case 0:
3460
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
3461
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
3462
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
3463
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
3464
- return [4, response.body.text()];
3465
- case 1:
3466
- body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
3467
- "UpdatePlayerTagsSuccessResponse", ""]);
3468
- return [2, body];
3469
3002
  case 2:
3470
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
3003
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
3471
3004
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
3472
3005
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
3473
3006
  return [4, response.body.text()];
3474
3007
  case 3:
3475
3008
  body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
3476
3009
  "GenericError", ""]);
3477
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
3010
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
3478
3011
  case 4:
3479
3012
  if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
3480
3013
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
@@ -3491,7 +3024,7 @@ var DefaultApiResponseProcessor = (function () {
3491
3024
  return [4, response.body.text()];
3492
3025
  case 7:
3493
3026
  body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3494
- "RateLimiterError", ""]);
3027
+ "RateLimitError", ""]);
3495
3028
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3496
3029
  case 8:
3497
3030
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
@@ -3500,7 +3033,7 @@ var DefaultApiResponseProcessor = (function () {
3500
3033
  return [4, response.body.text()];
3501
3034
  case 9:
3502
3035
  body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
3503
- "UpdatePlayerTagsSuccessResponse", ""]);
3036
+ "void", ""]);
3504
3037
  return [2, body];
3505
3038
  case 10:
3506
3039
  _w = exception_1.ApiException.bind;
@@ -3511,60 +3044,6 @@ var DefaultApiResponseProcessor = (function () {
3511
3044
  });
3512
3045
  });
3513
3046
  };
3514
- DefaultApiResponseProcessor.prototype.updateSubscription = function (response) {
3515
- return __awaiter(this, void 0, void 0, function () {
3516
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
3517
- return __generator(this, function (_u) {
3518
- switch (_u.label) {
3519
- case 0:
3520
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
3521
- if ((0, util_1.isCodeInRange)("202", response.httpStatusCode)) {
3522
- return [2];
3523
- }
3524
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
3525
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
3526
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
3527
- return [4, response.body.text()];
3528
- case 1:
3529
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
3530
- "GenericError", ""]);
3531
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
3532
- case 2:
3533
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
3534
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
3535
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
3536
- return [4, response.body.text()];
3537
- case 3:
3538
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
3539
- "GenericError", ""]);
3540
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
3541
- case 4:
3542
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
3543
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
3544
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
3545
- return [4, response.body.text()];
3546
- case 5:
3547
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
3548
- "RateLimiterError", ""]);
3549
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3550
- case 6:
3551
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
3552
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3553
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3554
- return [4, response.body.text()];
3555
- case 7:
3556
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
3557
- "void", ""]);
3558
- return [2, body];
3559
- case 8:
3560
- _s = exception_1.ApiException.bind;
3561
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3562
- return [4, response.getBodyAsAny()];
3563
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
3564
- }
3565
- });
3566
- });
3567
- };
3568
3047
  DefaultApiResponseProcessor.prototype.updateUser = function (response) {
3569
3048
  return __awaiter(this, void 0, void 0, function () {
3570
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;
@@ -3578,7 +3057,7 @@ var DefaultApiResponseProcessor = (function () {
3578
3057
  return [4, response.body.text()];
3579
3058
  case 1:
3580
3059
  body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
3581
- "InlineResponse202", ""]);
3060
+ "PropertiesBody", ""]);
3582
3061
  return [2, body];
3583
3062
  case 2:
3584
3063
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -3605,7 +3084,7 @@ var DefaultApiResponseProcessor = (function () {
3605
3084
  return [4, response.body.text()];
3606
3085
  case 7:
3607
3086
  body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3608
- "RateLimiterError", ""]);
3087
+ "RateLimitError", ""]);
3609
3088
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3610
3089
  case 8:
3611
3090
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
@@ -3614,7 +3093,7 @@ var DefaultApiResponseProcessor = (function () {
3614
3093
  return [4, response.body.text()];
3615
3094
  case 9:
3616
3095
  body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
3617
- "InlineResponse202", ""]);
3096
+ "PropertiesBody", ""]);
3618
3097
  return [2, body];
3619
3098
  case 10:
3620
3099
  _w = exception_1.ApiException.bind;