@onesignal/node-onesignal 2.1.0-beta1 → 5.0.0-alpha-02

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 (150) hide show
  1. package/DefaultApi.md +401 -778
  2. package/README.md +7 -7
  3. package/apis/DefaultApi.ts +671 -1316
  4. package/auth/auth.ts +14 -14
  5. package/configuration.ts +6 -6
  6. package/dist/apis/DefaultApi.d.ts +36 -63
  7. package/dist/apis/DefaultApi.js +654 -1212
  8. package/dist/apis/DefaultApi.js.map +1 -1
  9. package/dist/auth/auth.d.ts +6 -6
  10. package/dist/auth/auth.js +19 -19
  11. package/dist/auth/auth.js.map +1 -1
  12. package/dist/configuration.d.ts +2 -2
  13. package/dist/configuration.js +4 -4
  14. package/dist/configuration.js.map +1 -1
  15. package/dist/models/BasicNotification.d.ts +14 -12
  16. package/dist/models/BasicNotification.js +20 -20
  17. package/dist/models/BasicNotification.js.map +1 -1
  18. package/dist/models/BasicNotificationAllOf.d.ts +10 -8
  19. package/dist/models/BasicNotificationAllOf.js +17 -11
  20. package/dist/models/BasicNotificationAllOf.js.map +1 -1
  21. package/dist/models/CreateNotificationSuccessResponse.d.ts +1 -3
  22. package/dist/models/CreateNotificationSuccessResponse.js +1 -7
  23. package/dist/models/CreateNotificationSuccessResponse.js.map +1 -1
  24. package/dist/models/Filter.d.ts +6 -2
  25. package/dist/models/Filter.js +24 -0
  26. package/dist/models/Filter.js.map +1 -1
  27. package/dist/models/GenericError.d.ts +3 -2
  28. package/dist/models/GenericError.js +13 -1
  29. package/dist/models/GenericError.js.map +1 -1
  30. package/dist/models/InvalidIdentifierError.d.ts +1 -1
  31. package/dist/models/InvalidIdentifierError.js +2 -2
  32. package/dist/models/InvalidIdentifierError.js.map +1 -1
  33. package/dist/models/Notification.d.ts +14 -12
  34. package/dist/models/Notification.js +20 -20
  35. package/dist/models/Notification.js.map +1 -1
  36. package/dist/models/NotificationTarget.d.ts +4 -4
  37. package/dist/models/NotificationTarget.js +3 -9
  38. package/dist/models/NotificationTarget.js.map +1 -1
  39. package/dist/models/NotificationWithMeta.d.ts +14 -12
  40. package/dist/models/NotificationWithMeta.js +20 -20
  41. package/dist/models/NotificationWithMeta.js.map +1 -1
  42. package/dist/models/ObjectSerializer.d.ts +15 -32
  43. package/dist/models/ObjectSerializer.js +50 -102
  44. package/dist/models/ObjectSerializer.js.map +1 -1
  45. package/dist/models/Segment.d.ts +2 -2
  46. package/dist/models/Segment.js +1 -1
  47. package/dist/models/Segment.js.map +1 -1
  48. package/dist/models/TransferSubscriptionRequestBody.d.ts +1 -1
  49. package/dist/models/TransferSubscriptionRequestBody.js +1 -1
  50. package/dist/models/TransferSubscriptionRequestBody.js.map +1 -1
  51. package/dist/models/UpdateLiveActivityRequest.d.ts +8 -3
  52. package/dist/models/UpdateLiveActivityRequest.js +33 -3
  53. package/dist/models/UpdateLiveActivityRequest.js.map +1 -1
  54. package/dist/models/UpdateLiveActivitySuccessResponse.d.ts +1 -3
  55. package/dist/models/UpdateLiveActivitySuccessResponse.js +2 -8
  56. package/dist/models/UpdateLiveActivitySuccessResponse.js.map +1 -1
  57. package/dist/models/User.d.ts +3 -5
  58. package/dist/models/User.js +2 -8
  59. package/dist/models/User.js.map +1 -1
  60. package/dist/models/all.d.ts +15 -32
  61. package/dist/models/all.js +15 -32
  62. package/dist/models/all.js.map +1 -1
  63. package/dist/types/ObjectParamAPI.d.ts +52 -102
  64. package/dist/types/ObjectParamAPI.js +26 -47
  65. package/dist/types/ObjectParamAPI.js.map +1 -1
  66. package/dist/types/ObservableAPI.d.ts +25 -45
  67. package/dist/types/ObservableAPI.js +82 -250
  68. package/dist/types/ObservableAPI.js.map +1 -1
  69. package/dist/types/PromiseAPI.d.ts +25 -45
  70. package/dist/types/PromiseAPI.js +32 -60
  71. package/dist/types/PromiseAPI.js.map +1 -1
  72. package/models/App.ts +1 -1
  73. package/models/BasicNotification.ts +49 -46
  74. package/models/BasicNotificationAllOf.ts +34 -23
  75. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
  76. package/models/Button.ts +1 -1
  77. package/models/CreateNotificationSuccessResponse.ts +5 -13
  78. package/models/CreateSegmentConflictResponse.ts +1 -1
  79. package/models/CreateSegmentSuccessResponse.ts +1 -1
  80. package/models/CreateUserConflictResponse.ts +1 -1
  81. package/models/CreateUserConflictResponseErrorsInner.ts +1 -1
  82. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +1 -1
  83. package/models/DeliveryData.ts +1 -1
  84. package/models/ExportEventsSuccessResponse.ts +1 -1
  85. package/models/{ExportPlayersRequestBody.ts → ExportSubscriptionsRequestBody.ts} +3 -3
  86. package/models/{ExportPlayersSuccessResponse.ts → ExportSubscriptionsSuccessResponse.ts} +3 -3
  87. package/models/Filter.ts +45 -5
  88. package/models/FilterExpression.ts +120 -0
  89. package/models/GenericError.ts +17 -4
  90. package/models/GenericErrorErrorsInner.ts +1 -1
  91. package/models/{DeletePlayerSuccessResponse.ts → GenericSuccessBoolResponse.ts} +3 -3
  92. package/models/{GetNotificationRequestBody.ts → GetNotificationHistoryRequestBody.ts} +6 -6
  93. package/models/{PlayerSlice.ts → GetSegmentsSuccessResponse.ts} +20 -8
  94. package/models/InvalidIdentifierError.ts +6 -6
  95. package/models/{StringMap.ts → LanguageStringMap.ts} +3 -3
  96. package/models/Notification.ts +49 -46
  97. package/models/NotificationAllOf.ts +1 -1
  98. package/models/NotificationHistorySuccessResponse.ts +1 -1
  99. package/models/NotificationSlice.ts +1 -1
  100. package/models/NotificationTarget.ts +17 -25
  101. package/models/NotificationWithMeta.ts +49 -46
  102. package/models/NotificationWithMetaAllOf.ts +1 -1
  103. package/models/ObjectSerializer.ts +57 -109
  104. package/models/Operator.ts +1 -1
  105. package/models/OutcomeData.ts +1 -1
  106. package/models/OutcomesData.ts +1 -1
  107. package/models/PlatformDeliveryData.ts +1 -1
  108. package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
  109. package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
  110. package/models/{InlineResponse202.ts → PropertiesBody.ts} +3 -3
  111. package/models/PropertiesDeltas.ts +1 -1
  112. package/models/PropertiesObject.ts +1 -1
  113. package/models/Purchase.ts +1 -1
  114. package/models/{CreatePlayerSuccessResponse.ts → RateLimitError.ts} +10 -10
  115. package/models/RateLimiterError.ts +1 -1
  116. package/models/Segment.ts +4 -4
  117. package/models/SegmentData.ts +94 -0
  118. package/models/SegmentNotificationTarget.ts +1 -1
  119. package/models/{SubscriptionObject.ts → Subscription.ts} +6 -6
  120. package/models/{InlineResponse201.ts → SubscriptionBody.ts} +6 -6
  121. package/models/{PlayerNotificationTarget.ts → SubscriptionNotificationTarget.ts} +21 -29
  122. package/models/TransferSubscriptionRequestBody.ts +3 -3
  123. package/models/UpdateLiveActivityRequest.ts +56 -9
  124. package/models/UpdateLiveActivitySuccessResponse.ts +4 -12
  125. package/models/UpdateUserRequest.ts +1 -1
  126. package/models/User.ts +6 -14
  127. package/models/{InlineResponse200.ts → UserIdentityBody.ts} +5 -5
  128. package/models/{BeginLiveActivityRequest.ts → WebButton.ts} +23 -9
  129. package/models/all.ts +15 -32
  130. package/package.json +1 -1
  131. package/types/ObjectParamAPI.ts +161 -357
  132. package/types/ObservableAPI.ts +108 -301
  133. package/types/PromiseAPI.ts +89 -184
  134. package/models/CancelNotificationSuccessResponse.ts +0 -31
  135. package/models/CreateSubscriptionRequestBody.ts +0 -39
  136. package/models/DeletePlayerNotFoundResponse.ts +0 -31
  137. package/models/DeleteSegmentNotFoundResponse.ts +0 -31
  138. package/models/DeleteSegmentSuccessResponse.ts +0 -31
  139. package/models/FilterExpressions.ts +0 -80
  140. package/models/InlineResponse2003.ts +0 -31
  141. package/models/Notification200Errors.ts +0 -45
  142. package/models/Player.ts +0 -291
  143. package/models/PlayerNotificationTargetIncludeAliases.ts +0 -31
  144. package/models/UpdatePlayerSuccessResponse.ts +0 -31
  145. package/models/UpdatePlayerTagsRequestBody.ts +0 -34
  146. package/models/UpdatePlayerTagsSuccessResponse.ts +0 -31
  147. package/models/UpdateSubscriptionRequestBody.ts +0 -32
  148. package/models/UserIdentityRequestBody.ts +0 -31
  149. package/models/UserIdentityResponse.ts +0 -31
  150. package/models/UserSubscriptionOptions.ts +0 -31
@@ -62,36 +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
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
88
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
89
- "application/json"
90
- ]);
91
- requestContext.setHeaderParam("Content-Type", contentType);
92
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(beginLiveActivityRequest, "BeginLiveActivityRequest", ""), contentType);
93
- requestContext.setBody(serializedBody);
94
- authMethod = _config.authMethods["app_key"];
83
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
84
+ if (appId !== undefined) {
85
+ requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
86
+ }
87
+ authMethod = _config.authMethods["rest_api_key"];
95
88
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
96
89
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
97
90
  case 1:
@@ -109,29 +102,40 @@ var DefaultApiRequestFactory = (function (_super) {
109
102
  });
110
103
  });
111
104
  };
112
- DefaultApiRequestFactory.prototype.cancelNotification = function (appId, notificationId, _options) {
105
+ DefaultApiRequestFactory.prototype.createAlias = function (appId, aliasLabel, aliasId, userIdentityBody, _options) {
113
106
  var _a, _b, _c;
114
107
  return __awaiter(this, void 0, void 0, function () {
115
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
108
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
116
109
  return __generator(this, function (_d) {
117
110
  switch (_d.label) {
118
111
  case 0:
119
112
  _config = _options || this.configuration;
120
113
  if (appId === null || appId === undefined) {
121
- throw new baseapi_1.RequiredError("DefaultApi", "cancelNotification", "appId");
114
+ throw new baseapi_1.RequiredError("DefaultApi", "createAlias", "appId");
122
115
  }
123
- if (notificationId === null || notificationId === undefined) {
124
- throw new baseapi_1.RequiredError("DefaultApi", "cancelNotification", "notificationId");
116
+ if (aliasLabel === null || aliasLabel === undefined) {
117
+ throw new baseapi_1.RequiredError("DefaultApi", "createAlias", "aliasLabel");
125
118
  }
126
- localVarPath = '/notifications/{notification_id}'
127
- .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
128
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
129
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
130
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
131
- if (appId !== undefined) {
132
- 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");
133
121
  }
134
- 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.1");
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"];
135
139
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
136
140
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
137
141
  case 1:
@@ -149,7 +153,7 @@ var DefaultApiRequestFactory = (function (_super) {
149
153
  });
150
154
  });
151
155
  };
152
- DefaultApiRequestFactory.prototype.createApp = function (app, _options) {
156
+ DefaultApiRequestFactory.prototype.createAliasBySubscription = function (appId, subscriptionId, userIdentityBody, _options) {
153
157
  var _a, _b, _c;
154
158
  return __awaiter(this, void 0, void 0, function () {
155
159
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -157,20 +161,28 @@ var DefaultApiRequestFactory = (function (_super) {
157
161
  switch (_d.label) {
158
162
  case 0:
159
163
  _config = _options || this.configuration;
160
- if (app === null || app === undefined) {
161
- throw new baseapi_1.RequiredError("DefaultApi", "createApp", "app");
164
+ if (appId === null || appId === undefined) {
165
+ throw new baseapi_1.RequiredError("DefaultApi", "createAliasBySubscription", "appId");
162
166
  }
163
- localVarPath = '/apps';
164
- 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);
165
177
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
166
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
178
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
167
179
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
168
180
  "application/json"
169
181
  ]);
170
182
  requestContext.setHeaderParam("Content-Type", contentType);
171
- 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);
172
184
  requestContext.setBody(serializedBody);
173
- authMethod = _config.authMethods["user_key"];
185
+ authMethod = _config.authMethods["rest_api_key"];
174
186
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
175
187
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
176
188
  case 1:
@@ -188,7 +200,7 @@ var DefaultApiRequestFactory = (function (_super) {
188
200
  });
189
201
  });
190
202
  };
191
- DefaultApiRequestFactory.prototype.createNotification = function (notification, _options) {
203
+ DefaultApiRequestFactory.prototype.createApp = function (app, _options) {
192
204
  var _a, _b, _c;
193
205
  return __awaiter(this, void 0, void 0, function () {
194
206
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -196,20 +208,20 @@ var DefaultApiRequestFactory = (function (_super) {
196
208
  switch (_d.label) {
197
209
  case 0:
198
210
  _config = _options || this.configuration;
199
- if (notification === null || notification === undefined) {
200
- throw new baseapi_1.RequiredError("DefaultApi", "createNotification", "notification");
211
+ if (app === null || app === undefined) {
212
+ throw new baseapi_1.RequiredError("DefaultApi", "createApp", "app");
201
213
  }
202
- localVarPath = '/notifications';
214
+ localVarPath = '/apps';
203
215
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
204
216
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
205
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
217
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
206
218
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
207
219
  "application/json"
208
220
  ]);
209
221
  requestContext.setHeaderParam("Content-Type", contentType);
210
- 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);
211
223
  requestContext.setBody(serializedBody);
212
- authMethod = _config.authMethods["app_key"];
224
+ authMethod = _config.authMethods["user_auth_key"];
213
225
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
214
226
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
215
227
  case 1:
@@ -227,7 +239,7 @@ var DefaultApiRequestFactory = (function (_super) {
227
239
  });
228
240
  });
229
241
  };
230
- DefaultApiRequestFactory.prototype.createPlayer = function (player, _options) {
242
+ DefaultApiRequestFactory.prototype.createNotification = function (notification, _options) {
231
243
  var _a, _b, _c;
232
244
  return __awaiter(this, void 0, void 0, function () {
233
245
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -235,20 +247,20 @@ var DefaultApiRequestFactory = (function (_super) {
235
247
  switch (_d.label) {
236
248
  case 0:
237
249
  _config = _options || this.configuration;
238
- if (player === null || player === undefined) {
239
- throw new baseapi_1.RequiredError("DefaultApi", "createPlayer", "player");
250
+ if (notification === null || notification === undefined) {
251
+ throw new baseapi_1.RequiredError("DefaultApi", "createNotification", "notification");
240
252
  }
241
- localVarPath = '/players';
253
+ localVarPath = '/notifications';
242
254
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
243
255
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
244
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
256
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
245
257
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
246
258
  "application/json"
247
259
  ]);
248
260
  requestContext.setHeaderParam("Content-Type", contentType);
249
- 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);
250
262
  requestContext.setBody(serializedBody);
251
- authMethod = _config.authMethods["app_key"];
263
+ authMethod = _config.authMethods["rest_api_key"];
252
264
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
253
265
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
254
266
  case 1:
@@ -266,7 +278,7 @@ var DefaultApiRequestFactory = (function (_super) {
266
278
  });
267
279
  });
268
280
  };
269
- DefaultApiRequestFactory.prototype.createSegments = function (appId, segment, _options) {
281
+ DefaultApiRequestFactory.prototype.createSegment = function (appId, segment, _options) {
270
282
  var _a, _b, _c;
271
283
  return __awaiter(this, void 0, void 0, function () {
272
284
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -275,20 +287,20 @@ var DefaultApiRequestFactory = (function (_super) {
275
287
  case 0:
276
288
  _config = _options || this.configuration;
277
289
  if (appId === null || appId === undefined) {
278
- throw new baseapi_1.RequiredError("DefaultApi", "createSegments", "appId");
290
+ throw new baseapi_1.RequiredError("DefaultApi", "createSegment", "appId");
279
291
  }
280
292
  localVarPath = '/apps/{app_id}/segments'
281
293
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
282
294
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
283
295
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
284
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
296
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
285
297
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
286
298
  "application/json"
287
299
  ]);
288
300
  requestContext.setHeaderParam("Content-Type", contentType);
289
301
  serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(segment, "Segment", ""), contentType);
290
302
  requestContext.setBody(serializedBody);
291
- authMethod = _config.authMethods["app_key"];
303
+ authMethod = _config.authMethods["rest_api_key"];
292
304
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
293
305
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
294
306
  case 1:
@@ -306,7 +318,7 @@ var DefaultApiRequestFactory = (function (_super) {
306
318
  });
307
319
  });
308
320
  };
309
- DefaultApiRequestFactory.prototype.createSubscription = function (appId, aliasLabel, aliasId, createSubscriptionRequestBody, _options) {
321
+ DefaultApiRequestFactory.prototype.createSubscription = function (appId, aliasLabel, aliasId, subscriptionBody, _options) {
310
322
  var _a, _b, _c;
311
323
  return __awaiter(this, void 0, void 0, function () {
312
324
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -323,8 +335,8 @@ var DefaultApiRequestFactory = (function (_super) {
323
335
  if (aliasId === null || aliasId === undefined) {
324
336
  throw new baseapi_1.RequiredError("DefaultApi", "createSubscription", "aliasId");
325
337
  }
326
- if (createSubscriptionRequestBody === null || createSubscriptionRequestBody === undefined) {
327
- throw new baseapi_1.RequiredError("DefaultApi", "createSubscription", "createSubscriptionRequestBody");
338
+ if (subscriptionBody === null || subscriptionBody === undefined) {
339
+ throw new baseapi_1.RequiredError("DefaultApi", "createSubscription", "subscriptionBody");
328
340
  }
329
341
  localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/subscriptions'
330
342
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
@@ -332,14 +344,14 @@ var DefaultApiRequestFactory = (function (_super) {
332
344
  .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
333
345
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
334
346
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
335
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
347
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
336
348
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
337
349
  "application/json"
338
350
  ]);
339
351
  requestContext.setHeaderParam("Content-Type", contentType);
340
- 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);
341
353
  requestContext.setBody(serializedBody);
342
- authMethod = _config.authMethods["app_key"];
354
+ authMethod = _config.authMethods["rest_api_key"];
343
355
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
344
356
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
345
357
  case 1:
@@ -375,14 +387,14 @@ var DefaultApiRequestFactory = (function (_super) {
375
387
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
376
388
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
377
389
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
378
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
390
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
379
391
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
380
392
  "application/json"
381
393
  ]);
382
394
  requestContext.setHeaderParam("Content-Type", contentType);
383
395
  serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(user, "User", ""), contentType);
384
396
  requestContext.setBody(serializedBody);
385
- authMethod = _config.authMethods["app_key"];
397
+ authMethod = _config.authMethods["rest_api_key"];
386
398
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
387
399
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
388
400
  case 1:
@@ -427,48 +439,8 @@ var DefaultApiRequestFactory = (function (_super) {
427
439
  .replace('{' + 'alias_label_to_delete' + '}', encodeURIComponent(String(aliasLabelToDelete)));
428
440
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
429
441
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
430
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
431
- authMethod = _config.authMethods["app_key"];
432
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
433
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
434
- case 1:
435
- _d.sent();
436
- _d.label = 2;
437
- case 2:
438
- 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);
439
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
440
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
441
- case 3:
442
- _d.sent();
443
- _d.label = 4;
444
- case 4: return [2, requestContext];
445
- }
446
- });
447
- });
448
- };
449
- DefaultApiRequestFactory.prototype.deletePlayer = function (appId, playerId, _options) {
450
- var _a, _b, _c;
451
- return __awaiter(this, void 0, void 0, function () {
452
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
453
- return __generator(this, function (_d) {
454
- switch (_d.label) {
455
- case 0:
456
- _config = _options || this.configuration;
457
- if (appId === null || appId === undefined) {
458
- throw new baseapi_1.RequiredError("DefaultApi", "deletePlayer", "appId");
459
- }
460
- if (playerId === null || playerId === undefined) {
461
- throw new baseapi_1.RequiredError("DefaultApi", "deletePlayer", "playerId");
462
- }
463
- localVarPath = '/players/{player_id}'
464
- .replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
465
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
466
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
467
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
468
- if (appId !== undefined) {
469
- requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
470
- }
471
- authMethod = _config.authMethods["app_key"];
442
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
443
+ authMethod = _config.authMethods["rest_api_key"];
472
444
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
473
445
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
474
446
  case 1:
@@ -486,7 +458,7 @@ var DefaultApiRequestFactory = (function (_super) {
486
458
  });
487
459
  });
488
460
  };
489
- DefaultApiRequestFactory.prototype.deleteSegments = function (appId, segmentId, _options) {
461
+ DefaultApiRequestFactory.prototype.deleteSegment = function (appId, segmentId, _options) {
490
462
  var _a, _b, _c;
491
463
  return __awaiter(this, void 0, void 0, function () {
492
464
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -495,18 +467,18 @@ var DefaultApiRequestFactory = (function (_super) {
495
467
  case 0:
496
468
  _config = _options || this.configuration;
497
469
  if (appId === null || appId === undefined) {
498
- throw new baseapi_1.RequiredError("DefaultApi", "deleteSegments", "appId");
470
+ throw new baseapi_1.RequiredError("DefaultApi", "deleteSegment", "appId");
499
471
  }
500
472
  if (segmentId === null || segmentId === undefined) {
501
- throw new baseapi_1.RequiredError("DefaultApi", "deleteSegments", "segmentId");
473
+ throw new baseapi_1.RequiredError("DefaultApi", "deleteSegment", "segmentId");
502
474
  }
503
475
  localVarPath = '/apps/{app_id}/segments/{segment_id}'
504
476
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
505
477
  .replace('{' + 'segment_id' + '}', encodeURIComponent(String(segmentId)));
506
478
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
507
479
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
508
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
509
- authMethod = _config.authMethods["app_key"];
480
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
481
+ authMethod = _config.authMethods["rest_api_key"];
510
482
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
511
483
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
512
484
  case 1:
@@ -543,8 +515,8 @@ var DefaultApiRequestFactory = (function (_super) {
543
515
  .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
544
516
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
545
517
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
546
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
547
- authMethod = _config.authMethods["app_key"];
518
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
519
+ authMethod = _config.authMethods["rest_api_key"];
548
520
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
549
521
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
550
522
  case 1:
@@ -585,50 +557,8 @@ var DefaultApiRequestFactory = (function (_super) {
585
557
  .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
586
558
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
587
559
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
588
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
589
- authMethod = _config.authMethods["app_key"];
590
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
591
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
592
- case 1:
593
- _d.sent();
594
- _d.label = 2;
595
- case 2:
596
- defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
597
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
598
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
599
- case 3:
600
- _d.sent();
601
- _d.label = 4;
602
- case 4: return [2, requestContext];
603
- }
604
- });
605
- });
606
- };
607
- DefaultApiRequestFactory.prototype.endLiveActivity = function (appId, activityId, subscriptionId, _options) {
608
- var _a, _b, _c;
609
- return __awaiter(this, void 0, void 0, function () {
610
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
611
- return __generator(this, function (_d) {
612
- switch (_d.label) {
613
- case 0:
614
- _config = _options || this.configuration;
615
- if (appId === null || appId === undefined) {
616
- throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "appId");
617
- }
618
- if (activityId === null || activityId === undefined) {
619
- throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "activityId");
620
- }
621
- if (subscriptionId === null || subscriptionId === undefined) {
622
- throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "subscriptionId");
623
- }
624
- localVarPath = '/apps/{app_id}/live_activities/{activity_id}/token/{subscription_id}'
625
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
626
- .replace('{' + 'activity_id' + '}', encodeURIComponent(String(activityId)))
627
- .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
628
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
629
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
630
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
631
- authMethod = _config.authMethods["app_key"];
560
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
561
+ authMethod = _config.authMethods["rest_api_key"];
632
562
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
633
563
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
634
564
  case 1:
@@ -664,11 +594,11 @@ var DefaultApiRequestFactory = (function (_super) {
664
594
  .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
665
595
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
666
596
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
667
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
597
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
668
598
  if (appId !== undefined) {
669
599
  requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
670
600
  }
671
- authMethod = _config.authMethods["app_key"];
601
+ authMethod = _config.authMethods["rest_api_key"];
672
602
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
673
603
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
674
604
  case 1:
@@ -686,7 +616,7 @@ var DefaultApiRequestFactory = (function (_super) {
686
616
  });
687
617
  });
688
618
  };
689
- DefaultApiRequestFactory.prototype.exportPlayers = function (appId, exportPlayersRequestBody, _options) {
619
+ DefaultApiRequestFactory.prototype.exportSubscriptions = function (appId, exportSubscriptionsRequestBody, _options) {
690
620
  var _a, _b, _c;
691
621
  return __awaiter(this, void 0, void 0, function () {
692
622
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -695,58 +625,20 @@ var DefaultApiRequestFactory = (function (_super) {
695
625
  case 0:
696
626
  _config = _options || this.configuration;
697
627
  if (appId === null || appId === undefined) {
698
- throw new baseapi_1.RequiredError("DefaultApi", "exportPlayers", "appId");
628
+ throw new baseapi_1.RequiredError("DefaultApi", "exportSubscriptions", "appId");
699
629
  }
700
630
  localVarPath = '/players/csv_export?app_id={app_id}'
701
631
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
702
632
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
703
633
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
704
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
634
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
705
635
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
706
636
  "application/json"
707
637
  ]);
708
638
  requestContext.setHeaderParam("Content-Type", contentType);
709
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(exportPlayersRequestBody, "ExportPlayersRequestBody", ""), contentType);
639
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(exportSubscriptionsRequestBody, "ExportSubscriptionsRequestBody", ""), contentType);
710
640
  requestContext.setBody(serializedBody);
711
- authMethod = _config.authMethods["app_key"];
712
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
713
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
714
- case 1:
715
- _d.sent();
716
- _d.label = 2;
717
- case 2:
718
- 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);
719
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
720
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
721
- case 3:
722
- _d.sent();
723
- _d.label = 4;
724
- case 4: return [2, requestContext];
725
- }
726
- });
727
- });
728
- };
729
- DefaultApiRequestFactory.prototype.fetchAliases = function (appId, subscriptionId, _options) {
730
- var _a, _b, _c;
731
- return __awaiter(this, void 0, void 0, function () {
732
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
733
- return __generator(this, function (_d) {
734
- switch (_d.label) {
735
- case 0:
736
- _config = _options || this.configuration;
737
- if (appId === null || appId === undefined) {
738
- throw new baseapi_1.RequiredError("DefaultApi", "fetchAliases", "appId");
739
- }
740
- if (subscriptionId === null || subscriptionId === undefined) {
741
- throw new baseapi_1.RequiredError("DefaultApi", "fetchAliases", "subscriptionId");
742
- }
743
- localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/user/identity'
744
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
745
- .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
746
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
747
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
748
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
749
- authMethod = _config.authMethods["app_key"];
641
+ authMethod = _config.authMethods["rest_api_key"];
750
642
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
751
643
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
752
644
  case 1:
@@ -764,7 +656,7 @@ var DefaultApiRequestFactory = (function (_super) {
764
656
  });
765
657
  });
766
658
  };
767
- DefaultApiRequestFactory.prototype.fetchUser = function (appId, aliasLabel, aliasId, _options) {
659
+ DefaultApiRequestFactory.prototype.getAliases = function (appId, aliasLabel, aliasId, _options) {
768
660
  var _a, _b, _c;
769
661
  return __awaiter(this, void 0, void 0, function () {
770
662
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -773,22 +665,22 @@ var DefaultApiRequestFactory = (function (_super) {
773
665
  case 0:
774
666
  _config = _options || this.configuration;
775
667
  if (appId === null || appId === undefined) {
776
- throw new baseapi_1.RequiredError("DefaultApi", "fetchUser", "appId");
668
+ throw new baseapi_1.RequiredError("DefaultApi", "getAliases", "appId");
777
669
  }
778
670
  if (aliasLabel === null || aliasLabel === undefined) {
779
- throw new baseapi_1.RequiredError("DefaultApi", "fetchUser", "aliasLabel");
671
+ throw new baseapi_1.RequiredError("DefaultApi", "getAliases", "aliasLabel");
780
672
  }
781
673
  if (aliasId === null || aliasId === undefined) {
782
- throw new baseapi_1.RequiredError("DefaultApi", "fetchUser", "aliasId");
674
+ throw new baseapi_1.RequiredError("DefaultApi", "getAliases", "aliasId");
783
675
  }
784
- localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}'
676
+ localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/identity'
785
677
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
786
678
  .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
787
679
  .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
788
680
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
789
681
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
790
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
791
- authMethod = _config.authMethods["app_key"];
682
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
683
+ authMethod = _config.authMethods["rest_api_key"];
792
684
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
793
685
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
794
686
  case 1:
@@ -806,7 +698,7 @@ var DefaultApiRequestFactory = (function (_super) {
806
698
  });
807
699
  });
808
700
  };
809
- DefaultApiRequestFactory.prototype.fetchUserIdentity = function (appId, aliasLabel, aliasId, _options) {
701
+ DefaultApiRequestFactory.prototype.getAliasesBySubscription = function (appId, subscriptionId, _options) {
810
702
  var _a, _b, _c;
811
703
  return __awaiter(this, void 0, void 0, function () {
812
704
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -815,22 +707,18 @@ var DefaultApiRequestFactory = (function (_super) {
815
707
  case 0:
816
708
  _config = _options || this.configuration;
817
709
  if (appId === null || appId === undefined) {
818
- throw new baseapi_1.RequiredError("DefaultApi", "fetchUserIdentity", "appId");
819
- }
820
- if (aliasLabel === null || aliasLabel === undefined) {
821
- throw new baseapi_1.RequiredError("DefaultApi", "fetchUserIdentity", "aliasLabel");
710
+ throw new baseapi_1.RequiredError("DefaultApi", "getAliasesBySubscription", "appId");
822
711
  }
823
- if (aliasId === null || aliasId === undefined) {
824
- throw new baseapi_1.RequiredError("DefaultApi", "fetchUserIdentity", "aliasId");
712
+ if (subscriptionId === null || subscriptionId === undefined) {
713
+ throw new baseapi_1.RequiredError("DefaultApi", "getAliasesBySubscription", "subscriptionId");
825
714
  }
826
- localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/identity'
715
+ localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/user/identity'
827
716
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
828
- .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
829
- .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
717
+ .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
830
718
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
831
719
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
832
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
833
- authMethod = _config.authMethods["app_key"];
720
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
721
+ authMethod = _config.authMethods["rest_api_key"];
834
722
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
835
723
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
836
724
  case 1:
@@ -863,8 +751,8 @@ var DefaultApiRequestFactory = (function (_super) {
863
751
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
864
752
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
865
753
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
866
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
867
- authMethod = _config.authMethods["user_key"];
754
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
755
+ authMethod = _config.authMethods["user_auth_key"];
868
756
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
869
757
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
870
758
  case 1:
@@ -893,46 +781,8 @@ var DefaultApiRequestFactory = (function (_super) {
893
781
  localVarPath = '/apps';
894
782
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
895
783
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
896
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
897
- authMethod = _config.authMethods["user_key"];
898
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
899
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
900
- case 1:
901
- _d.sent();
902
- _d.label = 2;
903
- case 2:
904
- 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);
905
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
906
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
907
- case 3:
908
- _d.sent();
909
- _d.label = 4;
910
- case 4: return [2, requestContext];
911
- }
912
- });
913
- });
914
- };
915
- DefaultApiRequestFactory.prototype.getEligibleIams = function (appId, subscriptionId, _options) {
916
- var _a, _b, _c;
917
- return __awaiter(this, void 0, void 0, function () {
918
- var _config, localVarPath, requestContext, authMethod, defaultAuth;
919
- return __generator(this, function (_d) {
920
- switch (_d.label) {
921
- case 0:
922
- _config = _options || this.configuration;
923
- if (appId === null || appId === undefined) {
924
- throw new baseapi_1.RequiredError("DefaultApi", "getEligibleIams", "appId");
925
- }
926
- if (subscriptionId === null || subscriptionId === undefined) {
927
- throw new baseapi_1.RequiredError("DefaultApi", "getEligibleIams", "subscriptionId");
928
- }
929
- localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/iams'
930
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
931
- .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
932
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
933
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
934
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
935
- authMethod = _config.authMethods["app_key"];
784
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
785
+ authMethod = _config.authMethods["user_auth_key"];
936
786
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
937
787
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
938
788
  case 1:
@@ -968,11 +818,11 @@ var DefaultApiRequestFactory = (function (_super) {
968
818
  .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
969
819
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
970
820
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
971
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
821
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
972
822
  if (appId !== undefined) {
973
823
  requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
974
824
  }
975
- authMethod = _config.authMethods["app_key"];
825
+ authMethod = _config.authMethods["rest_api_key"];
976
826
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
977
827
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
978
828
  case 1:
@@ -990,7 +840,7 @@ var DefaultApiRequestFactory = (function (_super) {
990
840
  });
991
841
  });
992
842
  };
993
- DefaultApiRequestFactory.prototype.getNotificationHistory = function (notificationId, getNotificationRequestBody, _options) {
843
+ DefaultApiRequestFactory.prototype.getNotificationHistory = function (notificationId, getNotificationHistoryRequestBody, _options) {
994
844
  var _a, _b, _c;
995
845
  return __awaiter(this, void 0, void 0, function () {
996
846
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -1001,21 +851,21 @@ var DefaultApiRequestFactory = (function (_super) {
1001
851
  if (notificationId === null || notificationId === undefined) {
1002
852
  throw new baseapi_1.RequiredError("DefaultApi", "getNotificationHistory", "notificationId");
1003
853
  }
1004
- if (getNotificationRequestBody === null || getNotificationRequestBody === undefined) {
1005
- throw new baseapi_1.RequiredError("DefaultApi", "getNotificationHistory", "getNotificationRequestBody");
854
+ if (getNotificationHistoryRequestBody === null || getNotificationHistoryRequestBody === undefined) {
855
+ throw new baseapi_1.RequiredError("DefaultApi", "getNotificationHistory", "getNotificationHistoryRequestBody");
1006
856
  }
1007
857
  localVarPath = '/notifications/{notification_id}/history'
1008
858
  .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
1009
859
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
1010
860
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1011
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
861
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
1012
862
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1013
863
  "application/json"
1014
864
  ]);
1015
865
  requestContext.setHeaderParam("Content-Type", contentType);
1016
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(getNotificationRequestBody, "GetNotificationRequestBody", ""), contentType);
866
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(getNotificationHistoryRequestBody, "GetNotificationHistoryRequestBody", ""), contentType);
1017
867
  requestContext.setBody(serializedBody);
1018
- authMethod = _config.authMethods["app_key"];
868
+ authMethod = _config.authMethods["rest_api_key"];
1019
869
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1020
870
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1021
871
  case 1:
@@ -1047,7 +897,7 @@ var DefaultApiRequestFactory = (function (_super) {
1047
897
  localVarPath = '/notifications';
1048
898
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1049
899
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1050
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
900
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
1051
901
  if (appId !== undefined) {
1052
902
  requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
1053
903
  }
@@ -1060,7 +910,7 @@ var DefaultApiRequestFactory = (function (_super) {
1060
910
  if (kind !== undefined) {
1061
911
  requestContext.setQueryParam("kind", ObjectSerializer_1.ObjectSerializer.serialize(kind, "0 | 1 | 3", ""));
1062
912
  }
1063
- authMethod = _config.authMethods["app_key"];
913
+ authMethod = _config.authMethods["rest_api_key"];
1064
914
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1065
915
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1066
916
  case 1:
@@ -1096,7 +946,7 @@ var DefaultApiRequestFactory = (function (_super) {
1096
946
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
1097
947
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1098
948
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1099
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
949
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
1100
950
  if (outcomeNames !== undefined) {
1101
951
  requestContext.setQueryParam("outcome_names", ObjectSerializer_1.ObjectSerializer.serialize(outcomeNames, "string", ""));
1102
952
  }
@@ -1112,7 +962,7 @@ var DefaultApiRequestFactory = (function (_super) {
1112
962
  if (outcomeAttribution !== undefined) {
1113
963
  requestContext.setQueryParam("outcome_attribution", ObjectSerializer_1.ObjectSerializer.serialize(outcomeAttribution, "string", ""));
1114
964
  }
1115
- authMethod = _config.authMethods["app_key"];
965
+ authMethod = _config.authMethods["rest_api_key"];
1116
966
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1117
967
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1118
968
  case 1:
@@ -1130,7 +980,7 @@ var DefaultApiRequestFactory = (function (_super) {
1130
980
  });
1131
981
  });
1132
982
  };
1133
- DefaultApiRequestFactory.prototype.getPlayer = function (appId, playerId, emailAuthHash, _options) {
983
+ DefaultApiRequestFactory.prototype.getSegments = function (appId, offset, limit, _options) {
1134
984
  var _a, _b, _c;
1135
985
  return __awaiter(this, void 0, void 0, function () {
1136
986
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -1139,23 +989,20 @@ var DefaultApiRequestFactory = (function (_super) {
1139
989
  case 0:
1140
990
  _config = _options || this.configuration;
1141
991
  if (appId === null || appId === undefined) {
1142
- throw new baseapi_1.RequiredError("DefaultApi", "getPlayer", "appId");
1143
- }
1144
- if (playerId === null || playerId === undefined) {
1145
- throw new baseapi_1.RequiredError("DefaultApi", "getPlayer", "playerId");
992
+ throw new baseapi_1.RequiredError("DefaultApi", "getSegments", "appId");
1146
993
  }
1147
- localVarPath = '/players/{player_id}'
1148
- .replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
994
+ localVarPath = '/apps/{app_id}/segments'
995
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
1149
996
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1150
997
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1151
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1152
- if (appId !== undefined) {
1153
- requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
998
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
999
+ if (offset !== undefined) {
1000
+ requestContext.setQueryParam("offset", ObjectSerializer_1.ObjectSerializer.serialize(offset, "number", ""));
1154
1001
  }
1155
- if (emailAuthHash !== undefined) {
1156
- requestContext.setQueryParam("email_auth_hash", ObjectSerializer_1.ObjectSerializer.serialize(emailAuthHash, "string", ""));
1002
+ if (limit !== undefined) {
1003
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
1157
1004
  }
1158
- authMethod = _config.authMethods["app_key"];
1005
+ authMethod = _config.authMethods["rest_api_key"];
1159
1006
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1160
1007
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1161
1008
  case 1:
@@ -1173,7 +1020,7 @@ var DefaultApiRequestFactory = (function (_super) {
1173
1020
  });
1174
1021
  });
1175
1022
  };
1176
- DefaultApiRequestFactory.prototype.getPlayers = function (appId, limit, offset, _options) {
1023
+ DefaultApiRequestFactory.prototype.getUser = function (appId, aliasLabel, aliasId, _options) {
1177
1024
  var _a, _b, _c;
1178
1025
  return __awaiter(this, void 0, void 0, function () {
1179
1026
  var _config, localVarPath, requestContext, authMethod, defaultAuth;
@@ -1182,22 +1029,22 @@ var DefaultApiRequestFactory = (function (_super) {
1182
1029
  case 0:
1183
1030
  _config = _options || this.configuration;
1184
1031
  if (appId === null || appId === undefined) {
1185
- throw new baseapi_1.RequiredError("DefaultApi", "getPlayers", "appId");
1186
- }
1187
- localVarPath = '/players';
1188
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1189
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1190
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1191
- if (appId !== undefined) {
1192
- requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
1032
+ throw new baseapi_1.RequiredError("DefaultApi", "getUser", "appId");
1193
1033
  }
1194
- if (limit !== undefined) {
1195
- requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
1034
+ if (aliasLabel === null || aliasLabel === undefined) {
1035
+ throw new baseapi_1.RequiredError("DefaultApi", "getUser", "aliasLabel");
1196
1036
  }
1197
- if (offset !== undefined) {
1198
- requestContext.setQueryParam("offset", ObjectSerializer_1.ObjectSerializer.serialize(offset, "number", ""));
1037
+ if (aliasId === null || aliasId === undefined) {
1038
+ throw new baseapi_1.RequiredError("DefaultApi", "getUser", "aliasId");
1199
1039
  }
1200
- authMethod = _config.authMethods["app_key"];
1040
+ localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}'
1041
+ .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1042
+ .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
1043
+ .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
1044
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1045
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1046
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
1047
+ authMethod = _config.authMethods["rest_api_key"];
1201
1048
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1202
1049
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1203
1050
  case 1:
@@ -1215,7 +1062,7 @@ var DefaultApiRequestFactory = (function (_super) {
1215
1062
  });
1216
1063
  });
1217
1064
  };
1218
- DefaultApiRequestFactory.prototype.identifyUserByAlias = function (appId, aliasLabel, aliasId, userIdentityRequestBody, _options) {
1065
+ DefaultApiRequestFactory.prototype.transferSubscription = function (appId, subscriptionId, transferSubscriptionRequestBody, _options) {
1219
1066
  var _a, _b, _c;
1220
1067
  return __awaiter(this, void 0, void 0, function () {
1221
1068
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -1224,78 +1071,27 @@ var DefaultApiRequestFactory = (function (_super) {
1224
1071
  case 0:
1225
1072
  _config = _options || this.configuration;
1226
1073
  if (appId === null || appId === undefined) {
1227
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "appId");
1228
- }
1229
- if (aliasLabel === null || aliasLabel === undefined) {
1230
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "aliasLabel");
1074
+ throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "appId");
1231
1075
  }
1232
- if (aliasId === null || aliasId === undefined) {
1233
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "aliasId");
1076
+ if (subscriptionId === null || subscriptionId === undefined) {
1077
+ throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "subscriptionId");
1234
1078
  }
1235
- if (userIdentityRequestBody === null || userIdentityRequestBody === undefined) {
1236
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "userIdentityRequestBody");
1079
+ if (transferSubscriptionRequestBody === null || transferSubscriptionRequestBody === undefined) {
1080
+ throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "transferSubscriptionRequestBody");
1237
1081
  }
1238
- localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/identity'
1239
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1240
- .replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
1241
- .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
1242
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1243
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1244
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1245
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1246
- "application/json"
1247
- ]);
1248
- requestContext.setHeaderParam("Content-Type", contentType);
1249
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(userIdentityRequestBody, "UserIdentityRequestBody", ""), contentType);
1250
- requestContext.setBody(serializedBody);
1251
- authMethod = _config.authMethods["app_key"];
1252
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1253
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1254
- case 1:
1255
- _d.sent();
1256
- _d.label = 2;
1257
- case 2:
1258
- 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);
1259
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1260
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1261
- case 3:
1262
- _d.sent();
1263
- _d.label = 4;
1264
- case 4: return [2, requestContext];
1265
- }
1266
- });
1267
- });
1268
- };
1269
- DefaultApiRequestFactory.prototype.identifyUserBySubscriptionId = function (appId, subscriptionId, userIdentityRequestBody, _options) {
1270
- var _a, _b, _c;
1271
- return __awaiter(this, void 0, void 0, function () {
1272
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1273
- return __generator(this, function (_d) {
1274
- switch (_d.label) {
1275
- case 0:
1276
- _config = _options || this.configuration;
1277
- if (appId === null || appId === undefined) {
1278
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserBySubscriptionId", "appId");
1279
- }
1280
- if (subscriptionId === null || subscriptionId === undefined) {
1281
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserBySubscriptionId", "subscriptionId");
1282
- }
1283
- if (userIdentityRequestBody === null || userIdentityRequestBody === undefined) {
1284
- throw new baseapi_1.RequiredError("DefaultApi", "identifyUserBySubscriptionId", "userIdentityRequestBody");
1285
- }
1286
- localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/user/identity'
1082
+ localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/owner'
1287
1083
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1288
1084
  .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
1289
1085
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1290
1086
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1291
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1087
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
1292
1088
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1293
1089
  "application/json"
1294
1090
  ]);
1295
1091
  requestContext.setHeaderParam("Content-Type", contentType);
1296
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(userIdentityRequestBody, "UserIdentityRequestBody", ""), contentType);
1092
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(transferSubscriptionRequestBody, "TransferSubscriptionRequestBody", ""), contentType);
1297
1093
  requestContext.setBody(serializedBody);
1298
- authMethod = _config.authMethods["app_key"];
1094
+ authMethod = _config.authMethods["rest_api_key"];
1299
1095
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1300
1096
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1301
1097
  case 1:
@@ -1313,36 +1109,33 @@ var DefaultApiRequestFactory = (function (_super) {
1313
1109
  });
1314
1110
  });
1315
1111
  };
1316
- DefaultApiRequestFactory.prototype.transferSubscription = function (appId, subscriptionId, transferSubscriptionRequestBody, _options) {
1112
+ DefaultApiRequestFactory.prototype.unsubscribeEmailWithToken = function (appId, notificationId, token, _options) {
1317
1113
  var _a, _b, _c;
1318
1114
  return __awaiter(this, void 0, void 0, function () {
1319
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1115
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
1320
1116
  return __generator(this, function (_d) {
1321
1117
  switch (_d.label) {
1322
1118
  case 0:
1323
1119
  _config = _options || this.configuration;
1324
1120
  if (appId === null || appId === undefined) {
1325
- throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "appId");
1121
+ throw new baseapi_1.RequiredError("DefaultApi", "unsubscribeEmailWithToken", "appId");
1326
1122
  }
1327
- if (subscriptionId === null || subscriptionId === undefined) {
1328
- throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "subscriptionId");
1123
+ if (notificationId === null || notificationId === undefined) {
1124
+ throw new baseapi_1.RequiredError("DefaultApi", "unsubscribeEmailWithToken", "notificationId");
1329
1125
  }
1330
- if (transferSubscriptionRequestBody === null || transferSubscriptionRequestBody === undefined) {
1331
- throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "transferSubscriptionRequestBody");
1126
+ if (token === null || token === undefined) {
1127
+ throw new baseapi_1.RequiredError("DefaultApi", "unsubscribeEmailWithToken", "token");
1332
1128
  }
1333
- localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/owner'
1129
+ localVarPath = '/apps/{app_id}/notifications/{notification_id}/unsubscribe'
1334
1130
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1335
- .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
1336
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1131
+ .replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
1132
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
1337
1133
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1338
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1339
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1340
- "application/json"
1341
- ]);
1342
- requestContext.setHeaderParam("Content-Type", contentType);
1343
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(transferSubscriptionRequestBody, "TransferSubscriptionRequestBody", ""), contentType);
1344
- requestContext.setBody(serializedBody);
1345
- authMethod = _config.authMethods["app_key"];
1134
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
1135
+ if (token !== undefined) {
1136
+ requestContext.setQueryParam("token", ObjectSerializer_1.ObjectSerializer.serialize(token, "string", ""));
1137
+ }
1138
+ authMethod = _config.authMethods["rest_api_key"];
1346
1139
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1347
1140
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1348
1141
  case 1:
@@ -1378,14 +1171,14 @@ var DefaultApiRequestFactory = (function (_super) {
1378
1171
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
1379
1172
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1380
1173
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1381
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1174
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
1382
1175
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1383
1176
  "application/json"
1384
1177
  ]);
1385
1178
  requestContext.setHeaderParam("Content-Type", contentType);
1386
1179
  serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(app, "App", ""), contentType);
1387
1180
  requestContext.setBody(serializedBody);
1388
- authMethod = _config.authMethods["user_key"];
1181
+ authMethod = _config.authMethods["user_auth_key"];
1389
1182
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1390
1183
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1391
1184
  case 1:
@@ -1425,101 +1218,14 @@ var DefaultApiRequestFactory = (function (_super) {
1425
1218
  .replace('{' + 'activity_id' + '}', encodeURIComponent(String(activityId)));
1426
1219
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
1427
1220
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1428
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1221
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
1429
1222
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1430
1223
  "application/json"
1431
1224
  ]);
1432
1225
  requestContext.setHeaderParam("Content-Type", contentType);
1433
1226
  serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateLiveActivityRequest, "UpdateLiveActivityRequest", ""), contentType);
1434
1227
  requestContext.setBody(serializedBody);
1435
- authMethod = _config.authMethods["app_key"];
1436
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1437
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1438
- case 1:
1439
- _d.sent();
1440
- _d.label = 2;
1441
- case 2:
1442
- 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);
1443
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1444
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1445
- case 3:
1446
- _d.sent();
1447
- _d.label = 4;
1448
- case 4: return [2, requestContext];
1449
- }
1450
- });
1451
- });
1452
- };
1453
- DefaultApiRequestFactory.prototype.updatePlayer = function (playerId, player, _options) {
1454
- var _a, _b, _c;
1455
- return __awaiter(this, void 0, void 0, function () {
1456
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1457
- return __generator(this, function (_d) {
1458
- switch (_d.label) {
1459
- case 0:
1460
- _config = _options || this.configuration;
1461
- if (playerId === null || playerId === undefined) {
1462
- throw new baseapi_1.RequiredError("DefaultApi", "updatePlayer", "playerId");
1463
- }
1464
- if (player === null || player === undefined) {
1465
- throw new baseapi_1.RequiredError("DefaultApi", "updatePlayer", "player");
1466
- }
1467
- localVarPath = '/players/{player_id}'
1468
- .replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
1469
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1470
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1471
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1472
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1473
- "application/json"
1474
- ]);
1475
- requestContext.setHeaderParam("Content-Type", contentType);
1476
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(player, "Player", ""), contentType);
1477
- requestContext.setBody(serializedBody);
1478
- authMethod = _config.authMethods["app_key"];
1479
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1480
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1481
- case 1:
1482
- _d.sent();
1483
- _d.label = 2;
1484
- case 2:
1485
- 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);
1486
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1487
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1488
- case 3:
1489
- _d.sent();
1490
- _d.label = 4;
1491
- case 4: return [2, requestContext];
1492
- }
1493
- });
1494
- });
1495
- };
1496
- DefaultApiRequestFactory.prototype.updatePlayerTags = function (appId, externalUserId, updatePlayerTagsRequestBody, _options) {
1497
- var _a, _b, _c;
1498
- return __awaiter(this, void 0, void 0, function () {
1499
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1500
- return __generator(this, function (_d) {
1501
- switch (_d.label) {
1502
- case 0:
1503
- _config = _options || this.configuration;
1504
- if (appId === null || appId === undefined) {
1505
- throw new baseapi_1.RequiredError("DefaultApi", "updatePlayerTags", "appId");
1506
- }
1507
- if (externalUserId === null || externalUserId === undefined) {
1508
- throw new baseapi_1.RequiredError("DefaultApi", "updatePlayerTags", "externalUserId");
1509
- }
1510
- localVarPath = '/apps/{app_id}/users/{external_user_id}'
1511
- .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1512
- .replace('{' + 'external_user_id' + '}', encodeURIComponent(String(externalUserId)));
1513
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1514
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1515
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1516
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1517
- "application/json"
1518
- ]);
1519
- requestContext.setHeaderParam("Content-Type", contentType);
1520
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updatePlayerTagsRequestBody, "UpdatePlayerTagsRequestBody", ""), contentType);
1521
- requestContext.setBody(serializedBody);
1522
- authMethod = _config.authMethods["app_key"];
1228
+ authMethod = _config.authMethods["rest_api_key"];
1523
1229
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1524
1230
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1525
1231
  case 1:
@@ -1537,7 +1243,7 @@ var DefaultApiRequestFactory = (function (_super) {
1537
1243
  });
1538
1244
  });
1539
1245
  };
1540
- DefaultApiRequestFactory.prototype.updateSubscription = function (appId, subscriptionId, updateSubscriptionRequestBody, _options) {
1246
+ DefaultApiRequestFactory.prototype.updateSubscription = function (appId, subscriptionId, subscriptionBody, _options) {
1541
1247
  var _a, _b, _c;
1542
1248
  return __awaiter(this, void 0, void 0, function () {
1543
1249
  var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
@@ -1551,22 +1257,22 @@ var DefaultApiRequestFactory = (function (_super) {
1551
1257
  if (subscriptionId === null || subscriptionId === undefined) {
1552
1258
  throw new baseapi_1.RequiredError("DefaultApi", "updateSubscription", "subscriptionId");
1553
1259
  }
1554
- if (updateSubscriptionRequestBody === null || updateSubscriptionRequestBody === undefined) {
1555
- throw new baseapi_1.RequiredError("DefaultApi", "updateSubscription", "updateSubscriptionRequestBody");
1260
+ if (subscriptionBody === null || subscriptionBody === undefined) {
1261
+ throw new baseapi_1.RequiredError("DefaultApi", "updateSubscription", "subscriptionBody");
1556
1262
  }
1557
1263
  localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}'
1558
1264
  .replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
1559
1265
  .replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
1560
1266
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1561
1267
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1562
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1268
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
1563
1269
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1564
1270
  "application/json"
1565
1271
  ]);
1566
1272
  requestContext.setHeaderParam("Content-Type", contentType);
1567
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateSubscriptionRequestBody, "UpdateSubscriptionRequestBody", ""), contentType);
1273
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(subscriptionBody, "SubscriptionBody", ""), contentType);
1568
1274
  requestContext.setBody(serializedBody);
1569
- authMethod = _config.authMethods["app_key"];
1275
+ authMethod = _config.authMethods["rest_api_key"];
1570
1276
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1571
1277
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1572
1278
  case 1:
@@ -1610,14 +1316,14 @@ var DefaultApiRequestFactory = (function (_super) {
1610
1316
  .replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
1611
1317
  requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
1612
1318
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1613
- requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=1.3.0");
1319
+ requestContext.setHeaderParam("OS-Usage-Data", "kind=sdk, sdk-name=onesignal-typescript, version=5.0.1");
1614
1320
  contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1615
1321
  "application/json"
1616
1322
  ]);
1617
1323
  requestContext.setHeaderParam("Content-Type", contentType);
1618
1324
  serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateUserRequest, "UpdateUserRequest", ""), contentType);
1619
1325
  requestContext.setBody(serializedBody);
1620
- authMethod = _config.authMethods["app_key"];
1326
+ authMethod = _config.authMethods["rest_api_key"];
1621
1327
  if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1622
1328
  return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1623
1329
  case 1:
@@ -1641,56 +1347,71 @@ exports.DefaultApiRequestFactory = DefaultApiRequestFactory;
1641
1347
  var DefaultApiResponseProcessor = (function () {
1642
1348
  function DefaultApiResponseProcessor() {
1643
1349
  }
1644
- DefaultApiResponseProcessor.prototype.beginLiveActivity = function (response) {
1350
+ DefaultApiResponseProcessor.prototype.cancelNotification = function (response) {
1645
1351
  return __awaiter(this, void 0, void 0, function () {
1646
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
1647
- return __generator(this, function (_q) {
1648
- switch (_q.label) {
1352
+ 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;
1353
+ return __generator(this, function (_y) {
1354
+ switch (_y.label) {
1649
1355
  case 0:
1650
1356
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1651
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
1652
- return [2];
1653
- }
1654
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
1357
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1655
1358
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1656
1359
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1657
1360
  return [4, response.body.text()];
1658
1361
  case 1:
1659
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
1660
- "GenericError", ""]);
1661
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1362
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
1363
+ "GenericSuccessBoolResponse", ""]);
1364
+ return [2, body];
1662
1365
  case 2:
1663
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 4];
1366
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
1664
1367
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1665
1368
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1666
1369
  return [4, response.body.text()];
1667
1370
  case 3:
1668
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
1669
- "RateLimiterError", ""]);
1670
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1371
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1372
+ "GenericError", ""]);
1373
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1671
1374
  case 4:
1672
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1375
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1673
1376
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1674
1377
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1675
1378
  return [4, response.body.text()];
1676
1379
  case 5:
1677
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
1678
- "void", ""]);
1679
- return [2, body];
1380
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
1381
+ "GenericError", ""]);
1382
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
1680
1383
  case 6:
1681
- _o = exception_1.ApiException.bind;
1682
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1384
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
1385
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1386
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1387
+ return [4, response.body.text()];
1388
+ case 7:
1389
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
1390
+ "RateLimitError", ""]);
1391
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1392
+ case 8:
1393
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
1394
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1395
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1396
+ return [4, response.body.text()];
1397
+ case 9:
1398
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
1399
+ "GenericSuccessBoolResponse", ""]);
1400
+ return [2, body];
1401
+ case 10:
1402
+ _w = exception_1.ApiException.bind;
1403
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1683
1404
  return [4, response.getBodyAsAny()];
1684
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1405
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
1685
1406
  }
1686
1407
  });
1687
1408
  });
1688
1409
  };
1689
- DefaultApiResponseProcessor.prototype.cancelNotification = function (response) {
1410
+ DefaultApiResponseProcessor.prototype.createAlias = function (response) {
1690
1411
  return __awaiter(this, void 0, void 0, function () {
1691
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1692
- return __generator(this, function (_u) {
1693
- switch (_u.label) {
1412
+ 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;
1413
+ return __generator(this, function (_2) {
1414
+ switch (_2.label) {
1694
1415
  case 0:
1695
1416
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1696
1417
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1698,8 +1419,8 @@ var DefaultApiResponseProcessor = (function () {
1698
1419
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1699
1420
  return [4, response.body.text()];
1700
1421
  case 1:
1701
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1702
- "CancelNotificationSuccessResponse", ""]);
1422
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1423
+ "UserIdentityBody", ""]);
1703
1424
  return [2, body];
1704
1425
  case 2:
1705
1426
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1707,41 +1428,59 @@ var DefaultApiResponseProcessor = (function () {
1707
1428
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1708
1429
  return [4, response.body.text()];
1709
1430
  case 3:
1710
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1431
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1711
1432
  "GenericError", ""]);
1712
1433
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1713
1434
  case 4:
1714
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
1435
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1715
1436
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1716
1437
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1717
1438
  return [4, response.body.text()];
1718
1439
  case 5:
1719
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1720
- "RateLimiterError", ""]);
1721
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1440
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1441
+ "GenericError", ""]);
1442
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
1722
1443
  case 6:
1723
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1444
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 8];
1724
1445
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1725
1446
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1726
1447
  return [4, response.body.text()];
1727
1448
  case 7:
1728
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1729
- "CancelNotificationSuccessResponse", ""]);
1730
- return [2, body];
1449
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1450
+ "GenericError", ""]);
1451
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
1731
1452
  case 8:
1732
- _s = exception_1.ApiException.bind;
1733
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1453
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 10];
1454
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1455
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1456
+ return [4, response.body.text()];
1457
+ case 9:
1458
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1459
+ "RateLimitError", ""]);
1460
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1461
+ case 10:
1462
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1463
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1464
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1465
+ return [4, response.body.text()];
1466
+ case 11:
1467
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1468
+ "UserIdentityBody", ""]);
1469
+ return [2, body];
1470
+ case 12:
1471
+ _0 = exception_1.ApiException.bind;
1472
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1734
1473
  return [4, response.getBodyAsAny()];
1735
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1474
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1736
1475
  }
1737
1476
  });
1738
1477
  });
1739
1478
  };
1740
- DefaultApiResponseProcessor.prototype.createApp = function (response) {
1479
+ DefaultApiResponseProcessor.prototype.createAliasBySubscription = function (response) {
1741
1480
  return __awaiter(this, void 0, void 0, function () {
1742
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1743
- return __generator(this, function (_u) {
1744
- switch (_u.label) {
1481
+ 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;
1482
+ return __generator(this, function (_2) {
1483
+ switch (_2.label) {
1745
1484
  case 0:
1746
1485
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1747
1486
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1749,8 +1488,8 @@ var DefaultApiResponseProcessor = (function () {
1749
1488
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1750
1489
  return [4, response.body.text()];
1751
1490
  case 1:
1752
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1753
- "App", ""]);
1491
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1492
+ "UserIdentityBody", ""]);
1754
1493
  return [2, body];
1755
1494
  case 2:
1756
1495
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1758,38 +1497,56 @@ var DefaultApiResponseProcessor = (function () {
1758
1497
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1759
1498
  return [4, response.body.text()];
1760
1499
  case 3:
1761
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1500
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1762
1501
  "GenericError", ""]);
1763
1502
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1764
1503
  case 4:
1765
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
1504
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1766
1505
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1767
1506
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1768
1507
  return [4, response.body.text()];
1769
1508
  case 5:
1770
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1771
- "RateLimiterError", ""]);
1772
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1509
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1510
+ "GenericError", ""]);
1511
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
1773
1512
  case 6:
1774
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1513
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 8];
1775
1514
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1776
1515
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1777
1516
  return [4, response.body.text()];
1778
1517
  case 7:
1779
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1780
- "App", ""]);
1781
- return [2, body];
1518
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1519
+ "GenericError", ""]);
1520
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
1782
1521
  case 8:
1783
- _s = exception_1.ApiException.bind;
1784
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1785
- return [4, response.getBodyAsAny()];
1786
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1787
- }
1788
- });
1789
- });
1790
- };
1791
- DefaultApiResponseProcessor.prototype.createNotification = function (response) {
1792
- return __awaiter(this, void 0, void 0, function () {
1522
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 10];
1523
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1524
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1525
+ return [4, response.body.text()];
1526
+ case 9:
1527
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1528
+ "RateLimitError", ""]);
1529
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1530
+ case 10:
1531
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1532
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1533
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1534
+ return [4, response.body.text()];
1535
+ case 11:
1536
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1537
+ "UserIdentityBody", ""]);
1538
+ return [2, body];
1539
+ case 12:
1540
+ _0 = exception_1.ApiException.bind;
1541
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1542
+ return [4, response.getBodyAsAny()];
1543
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1544
+ }
1545
+ });
1546
+ });
1547
+ };
1548
+ DefaultApiResponseProcessor.prototype.createApp = function (response) {
1549
+ return __awaiter(this, void 0, void 0, function () {
1793
1550
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1794
1551
  return __generator(this, function (_u) {
1795
1552
  switch (_u.label) {
@@ -1801,7 +1558,7 @@ var DefaultApiResponseProcessor = (function () {
1801
1558
  return [4, response.body.text()];
1802
1559
  case 1:
1803
1560
  body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1804
- "CreateNotificationSuccessResponse", ""]);
1561
+ "App", ""]);
1805
1562
  return [2, body];
1806
1563
  case 2:
1807
1564
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1819,7 +1576,7 @@ var DefaultApiResponseProcessor = (function () {
1819
1576
  return [4, response.body.text()];
1820
1577
  case 5:
1821
1578
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1822
- "RateLimiterError", ""]);
1579
+ "RateLimitError", ""]);
1823
1580
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1824
1581
  case 6:
1825
1582
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -1828,7 +1585,7 @@ var DefaultApiResponseProcessor = (function () {
1828
1585
  return [4, response.body.text()];
1829
1586
  case 7:
1830
1587
  body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1831
- "CreateNotificationSuccessResponse", ""]);
1588
+ "App", ""]);
1832
1589
  return [2, body];
1833
1590
  case 8:
1834
1591
  _s = exception_1.ApiException.bind;
@@ -1839,11 +1596,11 @@ var DefaultApiResponseProcessor = (function () {
1839
1596
  });
1840
1597
  });
1841
1598
  };
1842
- DefaultApiResponseProcessor.prototype.createPlayer = function (response) {
1599
+ DefaultApiResponseProcessor.prototype.createNotification = function (response) {
1843
1600
  return __awaiter(this, void 0, void 0, function () {
1844
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
1845
- return __generator(this, function (_y) {
1846
- switch (_y.label) {
1601
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1602
+ return __generator(this, function (_u) {
1603
+ switch (_u.label) {
1847
1604
  case 0:
1848
1605
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1849
1606
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -1851,8 +1608,8 @@ var DefaultApiResponseProcessor = (function () {
1851
1608
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1852
1609
  return [4, response.body.text()];
1853
1610
  case 1:
1854
- body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
1855
- "CreatePlayerSuccessResponse", ""]);
1611
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1612
+ "CreateNotificationSuccessResponse", ""]);
1856
1613
  return [2, body];
1857
1614
  case 2:
1858
1615
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -1860,46 +1617,37 @@ var DefaultApiResponseProcessor = (function () {
1860
1617
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1861
1618
  return [4, response.body.text()];
1862
1619
  case 3:
1863
- body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1620
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1864
1621
  "GenericError", ""]);
1865
1622
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1866
1623
  case 4:
1867
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
1624
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
1868
1625
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1869
1626
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1870
1627
  return [4, response.body.text()];
1871
1628
  case 5:
1872
- body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
1873
- "GenericError", ""]);
1874
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
1629
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1630
+ "RateLimitError", ""]);
1631
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1875
1632
  case 6:
1876
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
1633
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1877
1634
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1878
1635
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1879
1636
  return [4, response.body.text()];
1880
1637
  case 7:
1881
- body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
1882
- "RateLimiterError", ""]);
1883
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1884
- case 8:
1885
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
1886
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1887
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1888
- return [4, response.body.text()];
1889
- case 9:
1890
- body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
1891
- "CreatePlayerSuccessResponse", ""]);
1638
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1639
+ "CreateNotificationSuccessResponse", ""]);
1892
1640
  return [2, body];
1893
- case 10:
1894
- _w = exception_1.ApiException.bind;
1895
- _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1641
+ case 8:
1642
+ _s = exception_1.ApiException.bind;
1643
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1896
1644
  return [4, response.getBodyAsAny()];
1897
- case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
1645
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1898
1646
  }
1899
1647
  });
1900
1648
  });
1901
1649
  };
1902
- DefaultApiResponseProcessor.prototype.createSegments = function (response) {
1650
+ DefaultApiResponseProcessor.prototype.createSegment = function (response) {
1903
1651
  return __awaiter(this, void 0, void 0, function () {
1904
1652
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
1905
1653
  return __generator(this, function (_y) {
@@ -1939,7 +1687,7 @@ var DefaultApiResponseProcessor = (function () {
1939
1687
  return [4, response.body.text()];
1940
1688
  case 7:
1941
1689
  body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
1942
- "RateLimiterError", ""]);
1690
+ "RateLimitError", ""]);
1943
1691
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1944
1692
  case 8:
1945
1693
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
@@ -1961,9 +1709,9 @@ var DefaultApiResponseProcessor = (function () {
1961
1709
  };
1962
1710
  DefaultApiResponseProcessor.prototype.createSubscription = function (response) {
1963
1711
  return __awaiter(this, void 0, void 0, function () {
1964
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, _0, _1;
1965
- return __generator(this, function (_2) {
1966
- switch (_2.label) {
1712
+ 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;
1713
+ return __generator(this, function (_6) {
1714
+ switch (_6.label) {
1967
1715
  case 0:
1968
1716
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1969
1717
  if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
@@ -1971,8 +1719,8 @@ var DefaultApiResponseProcessor = (function () {
1971
1719
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1972
1720
  return [4, response.body.text()];
1973
1721
  case 1:
1974
- body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1975
- "InlineResponse201", ""]);
1722
+ body = _b.apply(_a, [_d.apply(_c, [_6.sent(), contentType]),
1723
+ "SubscriptionBody", ""]);
1976
1724
  return [2, body];
1977
1725
  case 2:
1978
1726
  if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 4];
@@ -1980,8 +1728,8 @@ var DefaultApiResponseProcessor = (function () {
1980
1728
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1981
1729
  return [4, response.body.text()];
1982
1730
  case 3:
1983
- body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1984
- "InlineResponse201", ""]);
1731
+ body = _f.apply(_e, [_h.apply(_g, [_6.sent(), contentType]),
1732
+ "SubscriptionBody", ""]);
1985
1733
  return [2, body];
1986
1734
  case 4:
1987
1735
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 6];
@@ -1989,41 +1737,50 @@ var DefaultApiResponseProcessor = (function () {
1989
1737
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1990
1738
  return [4, response.body.text()];
1991
1739
  case 5:
1992
- body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1740
+ body = _k.apply(_j, [_m.apply(_l, [_6.sent(), contentType]),
1993
1741
  "GenericError", ""]);
1994
1742
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1995
1743
  case 6:
1996
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 8];
1744
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 8];
1997
1745
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1998
1746
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1999
1747
  return [4, response.body.text()];
2000
1748
  case 7:
2001
- body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1749
+ body = _p.apply(_o, [_r.apply(_q, [_6.sent(), contentType]),
2002
1750
  "GenericError", ""]);
2003
- throw new exception_1.ApiException(409, "Operation is not permitted due to user having the maximum number of subscriptions assigned", body, response.headers);
1751
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2004
1752
  case 8:
2005
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 10];
1753
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 10];
2006
1754
  _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2007
1755
  _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2008
1756
  return [4, response.body.text()];
2009
1757
  case 9:
2010
- body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
2011
- "RateLimiterError", ""]);
2012
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1758
+ body = _t.apply(_s, [_v.apply(_u, [_6.sent(), contentType]),
1759
+ "GenericError", ""]);
1760
+ throw new exception_1.ApiException(409, "Operation is not permitted due to user having the maximum number of subscriptions assigned", body, response.headers);
2013
1761
  case 10:
2014
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1762
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 12];
2015
1763
  _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
2016
1764
  _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
2017
1765
  return [4, response.body.text()];
2018
1766
  case 11:
2019
- body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
2020
- "InlineResponse201", ""]);
2021
- return [2, body];
1767
+ body = _x.apply(_w, [_z.apply(_y, [_6.sent(), contentType]),
1768
+ "RateLimitError", ""]);
1769
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2022
1770
  case 12:
2023
- _0 = exception_1.ApiException.bind;
2024
- _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1771
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 14];
1772
+ _1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
1773
+ _3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
1774
+ return [4, response.body.text()];
1775
+ case 13:
1776
+ body = _1.apply(_0, [_3.apply(_2, [_6.sent(), contentType]),
1777
+ "SubscriptionBody", ""]);
1778
+ return [2, body];
1779
+ case 14:
1780
+ _4 = exception_1.ApiException.bind;
1781
+ _5 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2025
1782
  return [4, response.getBodyAsAny()];
2026
- case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1783
+ case 15: throw new (_4.apply(exception_1.ApiException, _5.concat([_6.sent(), response.headers])))();
2027
1784
  }
2028
1785
  });
2029
1786
  });
@@ -2086,7 +1843,7 @@ var DefaultApiResponseProcessor = (function () {
2086
1843
  return [4, response.body.text()];
2087
1844
  case 11:
2088
1845
  body = _x.apply(_w, [_z.apply(_y, [_6.sent(), contentType]),
2089
- "RateLimiterError", ""]);
1846
+ "RateLimitError", ""]);
2090
1847
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2091
1848
  case 12:
2092
1849
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 14];
@@ -2108,69 +1865,9 @@ var DefaultApiResponseProcessor = (function () {
2108
1865
  };
2109
1866
  DefaultApiResponseProcessor.prototype.deleteAlias = function (response) {
2110
1867
  return __awaiter(this, void 0, void 0, function () {
2111
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
2112
- return __generator(this, function (_y) {
2113
- switch (_y.label) {
2114
- case 0:
2115
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2116
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2117
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2118
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2119
- return [4, response.body.text()];
2120
- case 1:
2121
- body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2122
- "InlineResponse200", ""]);
2123
- return [2, body];
2124
- case 2:
2125
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2126
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2127
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2128
- return [4, response.body.text()];
2129
- case 3:
2130
- body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2131
- "GenericError", ""]);
2132
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2133
- case 4:
2134
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
2135
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2136
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2137
- return [4, response.body.text()];
2138
- case 5:
2139
- body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2140
- "GenericError", ""]);
2141
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2142
- case 6:
2143
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2144
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2145
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2146
- return [4, response.body.text()];
2147
- case 7:
2148
- body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2149
- "RateLimiterError", ""]);
2150
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2151
- case 8:
2152
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2153
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2154
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2155
- return [4, response.body.text()];
2156
- case 9:
2157
- body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2158
- "InlineResponse200", ""]);
2159
- return [2, body];
2160
- case 10:
2161
- _w = exception_1.ApiException.bind;
2162
- _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2163
- return [4, response.getBodyAsAny()];
2164
- case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2165
- }
2166
- });
2167
- });
2168
- };
2169
- DefaultApiResponseProcessor.prototype.deletePlayer = function (response) {
2170
- return __awaiter(this, void 0, void 0, function () {
2171
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
2172
- return __generator(this, function (_y) {
2173
- switch (_y.label) {
1868
+ 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;
1869
+ return __generator(this, function (_2) {
1870
+ switch (_2.label) {
2174
1871
  case 0:
2175
1872
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2176
1873
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2178,8 +1875,8 @@ var DefaultApiResponseProcessor = (function () {
2178
1875
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2179
1876
  return [4, response.body.text()];
2180
1877
  case 1:
2181
- body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2182
- "DeletePlayerSuccessResponse", ""]);
1878
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1879
+ "UserIdentityBody", ""]);
2183
1880
  return [2, body];
2184
1881
  case 2:
2185
1882
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2187,7 +1884,7 @@ var DefaultApiResponseProcessor = (function () {
2187
1884
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2188
1885
  return [4, response.body.text()];
2189
1886
  case 3:
2190
- body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1887
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
2191
1888
  "GenericError", ""]);
2192
1889
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2193
1890
  case 4:
@@ -2196,282 +1893,141 @@ var DefaultApiResponseProcessor = (function () {
2196
1893
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2197
1894
  return [4, response.body.text()];
2198
1895
  case 5:
2199
- body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2200
- "DeletePlayerNotFoundResponse", ""]);
2201
- throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2202
- case 6:
2203
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2204
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2205
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2206
- return [4, response.body.text()];
2207
- case 7:
2208
- body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2209
- "RateLimiterError", ""]);
2210
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2211
- case 8:
2212
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2213
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2214
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2215
- return [4, response.body.text()];
2216
- case 9:
2217
- body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2218
- "DeletePlayerSuccessResponse", ""]);
2219
- return [2, body];
2220
- case 10:
2221
- _w = exception_1.ApiException.bind;
2222
- _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2223
- return [4, response.getBodyAsAny()];
2224
- case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2225
- }
2226
- });
2227
- });
2228
- };
2229
- DefaultApiResponseProcessor.prototype.deleteSegments = function (response) {
2230
- return __awaiter(this, void 0, void 0, function () {
2231
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
2232
- return __generator(this, function (_y) {
2233
- switch (_y.label) {
2234
- case 0:
2235
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2236
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2237
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2238
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2239
- return [4, response.body.text()];
2240
- case 1:
2241
- body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2242
- "DeleteSegmentSuccessResponse", ""]);
2243
- return [2, body];
2244
- case 2:
2245
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2246
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2247
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2248
- return [4, response.body.text()];
2249
- case 3:
2250
- body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1896
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
2251
1897
  "GenericError", ""]);
2252
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2253
- case 4:
2254
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2255
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2256
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2257
- return [4, response.body.text()];
2258
- case 5:
2259
- body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2260
- "DeleteSegmentNotFoundResponse", ""]);
2261
1898
  throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2262
1899
  case 6:
2263
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
1900
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 8];
2264
1901
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2265
1902
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2266
1903
  return [4, response.body.text()];
2267
1904
  case 7:
2268
- body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2269
- "RateLimiterError", ""]);
2270
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1905
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1906
+ "GenericError", ""]);
1907
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2271
1908
  case 8:
2272
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
1909
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 10];
2273
1910
  _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2274
1911
  _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2275
1912
  return [4, response.body.text()];
2276
1913
  case 9:
2277
- body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2278
- "DeleteSegmentSuccessResponse", ""]);
2279
- return [2, body];
2280
- case 10:
2281
- _w = exception_1.ApiException.bind;
2282
- _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2283
- return [4, response.getBodyAsAny()];
2284
- case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2285
- }
2286
- });
2287
- });
2288
- };
2289
- DefaultApiResponseProcessor.prototype.deleteSubscription = function (response) {
2290
- return __awaiter(this, void 0, void 0, function () {
2291
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2292
- return __generator(this, function (_u) {
2293
- switch (_u.label) {
2294
- case 0:
2295
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2296
- if ((0, util_1.isCodeInRange)("202", response.httpStatusCode)) {
2297
- return [2];
2298
- }
2299
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
2300
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2301
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2302
- return [4, response.body.text()];
2303
- case 1:
2304
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2305
- "GenericError", ""]);
2306
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2307
- case 2:
2308
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
2309
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2310
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2311
- return [4, response.body.text()];
2312
- case 3:
2313
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2314
- "GenericError", ""]);
2315
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2316
- case 4:
2317
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2318
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2319
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2320
- return [4, response.body.text()];
2321
- case 5:
2322
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2323
- "RateLimiterError", ""]);
2324
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2325
- case 6:
2326
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2327
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2328
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2329
- return [4, response.body.text()];
2330
- case 7:
2331
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2332
- "void", ""]);
2333
- return [2, body];
2334
- case 8:
2335
- _s = exception_1.ApiException.bind;
2336
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2337
- return [4, response.getBodyAsAny()];
2338
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2339
- }
2340
- });
2341
- });
2342
- };
2343
- DefaultApiResponseProcessor.prototype.deleteUser = function (response) {
2344
- return __awaiter(this, void 0, void 0, function () {
2345
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2346
- return __generator(this, function (_u) {
2347
- switch (_u.label) {
2348
- case 0:
2349
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2350
- if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
2351
- return [2];
2352
- }
2353
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
2354
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2355
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2356
- return [4, response.body.text()];
2357
- case 1:
2358
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2359
- "GenericError", ""]);
2360
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2361
- case 2:
2362
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
2363
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2364
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2365
- return [4, response.body.text()];
2366
- case 3:
2367
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2368
- "GenericError", ""]);
2369
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2370
- case 4:
2371
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2372
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2373
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2374
- return [4, response.body.text()];
2375
- case 5:
2376
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2377
- "RateLimiterError", ""]);
1914
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1915
+ "RateLimitError", ""]);
2378
1916
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2379
- case 6:
2380
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2381
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2382
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1917
+ case 10:
1918
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1919
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1920
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
2383
1921
  return [4, response.body.text()];
2384
- case 7:
2385
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2386
- "void", ""]);
2387
- return [2, body];
2388
- case 8:
2389
- _s = exception_1.ApiException.bind;
2390
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1922
+ case 11:
1923
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1924
+ "UserIdentityBody", ""]);
1925
+ return [2, body];
1926
+ case 12:
1927
+ _0 = exception_1.ApiException.bind;
1928
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2391
1929
  return [4, response.getBodyAsAny()];
2392
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1930
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
2393
1931
  }
2394
1932
  });
2395
1933
  });
2396
1934
  };
2397
- DefaultApiResponseProcessor.prototype.endLiveActivity = function (response) {
1935
+ DefaultApiResponseProcessor.prototype.deleteSegment = function (response) {
2398
1936
  return __awaiter(this, void 0, void 0, function () {
2399
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2400
- return __generator(this, function (_q) {
2401
- switch (_q.label) {
1937
+ 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;
1938
+ return __generator(this, function (_y) {
1939
+ switch (_y.label) {
2402
1940
  case 0:
2403
1941
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2404
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
2405
- return [2];
2406
- }
2407
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
1942
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2408
1943
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2409
1944
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2410
1945
  return [4, response.body.text()];
2411
1946
  case 1:
2412
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2413
- "GenericError", ""]);
2414
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
1947
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
1948
+ "GenericSuccessBoolResponse", ""]);
1949
+ return [2, body];
2415
1950
  case 2:
2416
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 4];
1951
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2417
1952
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2418
1953
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2419
1954
  return [4, response.body.text()];
2420
1955
  case 3:
2421
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2422
- "RateLimiterError", ""]);
2423
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1956
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1957
+ "GenericError", ""]);
1958
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2424
1959
  case 4:
2425
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
1960
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2426
1961
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2427
1962
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2428
1963
  return [4, response.body.text()];
2429
1964
  case 5:
2430
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2431
- "void", ""]);
2432
- return [2, body];
1965
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
1966
+ "GenericSuccessBoolResponse", ""]);
1967
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2433
1968
  case 6:
2434
- _o = exception_1.ApiException.bind;
2435
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1969
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
1970
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1971
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1972
+ return [4, response.body.text()];
1973
+ case 7:
1974
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
1975
+ "RateLimitError", ""]);
1976
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
1977
+ case 8:
1978
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
1979
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1980
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1981
+ return [4, response.body.text()];
1982
+ case 9:
1983
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
1984
+ "GenericSuccessBoolResponse", ""]);
1985
+ return [2, body];
1986
+ case 10:
1987
+ _w = exception_1.ApiException.bind;
1988
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2436
1989
  return [4, response.getBodyAsAny()];
2437
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
1990
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2438
1991
  }
2439
1992
  });
2440
1993
  });
2441
1994
  };
2442
- DefaultApiResponseProcessor.prototype.exportEvents = function (response) {
1995
+ DefaultApiResponseProcessor.prototype.deleteSubscription = function (response) {
2443
1996
  return __awaiter(this, void 0, void 0, function () {
2444
1997
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
2445
1998
  return __generator(this, function (_y) {
2446
1999
  switch (_y.label) {
2447
2000
  case 0:
2448
2001
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2449
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2002
+ if ((0, util_1.isCodeInRange)("202", response.httpStatusCode)) {
2003
+ return [2];
2004
+ }
2005
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
2450
2006
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2451
2007
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2452
2008
  return [4, response.body.text()];
2453
2009
  case 1:
2454
2010
  body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2455
- "ExportEventsSuccessResponse", ""]);
2456
- return [2, body];
2011
+ "GenericError", ""]);
2012
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2457
2013
  case 2:
2458
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2014
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
2459
2015
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2460
2016
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2461
2017
  return [4, response.body.text()];
2462
2018
  case 3:
2463
2019
  body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2464
2020
  "GenericError", ""]);
2465
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2021
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2466
2022
  case 4:
2467
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2023
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
2468
2024
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2469
2025
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2470
2026
  return [4, response.body.text()];
2471
2027
  case 5:
2472
2028
  body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2473
2029
  "GenericError", ""]);
2474
- throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2030
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2475
2031
  case 6:
2476
2032
  if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2477
2033
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
@@ -2479,7 +2035,7 @@ var DefaultApiResponseProcessor = (function () {
2479
2035
  return [4, response.body.text()];
2480
2036
  case 7:
2481
2037
  body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2482
- "RateLimiterError", ""]);
2038
+ "RateLimitError", ""]);
2483
2039
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2484
2040
  case 8:
2485
2041
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
@@ -2488,7 +2044,7 @@ var DefaultApiResponseProcessor = (function () {
2488
2044
  return [4, response.body.text()];
2489
2045
  case 9:
2490
2046
  body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2491
- "ExportEventsSuccessResponse", ""]);
2047
+ "void", ""]);
2492
2048
  return [2, body];
2493
2049
  case 10:
2494
2050
  _w = exception_1.ApiException.bind;
@@ -2499,30 +2055,33 @@ var DefaultApiResponseProcessor = (function () {
2499
2055
  });
2500
2056
  });
2501
2057
  };
2502
- DefaultApiResponseProcessor.prototype.exportPlayers = function (response) {
2058
+ DefaultApiResponseProcessor.prototype.deleteUser = function (response) {
2503
2059
  return __awaiter(this, void 0, void 0, function () {
2504
2060
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2505
2061
  return __generator(this, function (_u) {
2506
2062
  switch (_u.label) {
2507
2063
  case 0:
2508
2064
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2509
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2065
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
2066
+ return [2];
2067
+ }
2068
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
2510
2069
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2511
2070
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2512
2071
  return [4, response.body.text()];
2513
2072
  case 1:
2514
2073
  body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2515
- "ExportPlayersSuccessResponse", ""]);
2516
- return [2, body];
2074
+ "GenericError", ""]);
2075
+ throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2517
2076
  case 2:
2518
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2077
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
2519
2078
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2520
2079
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2521
2080
  return [4, response.body.text()];
2522
2081
  case 3:
2523
2082
  body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2524
2083
  "GenericError", ""]);
2525
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2084
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2526
2085
  case 4:
2527
2086
  if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2528
2087
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
@@ -2530,7 +2089,7 @@ var DefaultApiResponseProcessor = (function () {
2530
2089
  return [4, response.body.text()];
2531
2090
  case 5:
2532
2091
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2533
- "RateLimiterError", ""]);
2092
+ "RateLimitError", ""]);
2534
2093
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2535
2094
  case 6:
2536
2095
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -2539,7 +2098,7 @@ var DefaultApiResponseProcessor = (function () {
2539
2098
  return [4, response.body.text()];
2540
2099
  case 7:
2541
2100
  body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2542
- "ExportPlayersSuccessResponse", ""]);
2101
+ "void", ""]);
2543
2102
  return [2, body];
2544
2103
  case 8:
2545
2104
  _s = exception_1.ApiException.bind;
@@ -2550,11 +2109,11 @@ var DefaultApiResponseProcessor = (function () {
2550
2109
  });
2551
2110
  });
2552
2111
  };
2553
- DefaultApiResponseProcessor.prototype.fetchAliases = function (response) {
2112
+ DefaultApiResponseProcessor.prototype.exportEvents = function (response) {
2554
2113
  return __awaiter(this, void 0, void 0, function () {
2555
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
2556
- return __generator(this, function (_q) {
2557
- switch (_q.label) {
2114
+ 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;
2115
+ return __generator(this, function (_y) {
2116
+ switch (_y.label) {
2558
2117
  case 0:
2559
2118
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2560
2119
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2562,8 +2121,8 @@ var DefaultApiResponseProcessor = (function () {
2562
2121
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2563
2122
  return [4, response.body.text()];
2564
2123
  case 1:
2565
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
2566
- "UserIdentityResponse", ""]);
2124
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2125
+ "ExportEventsSuccessResponse", ""]);
2567
2126
  return [2, body];
2568
2127
  case 2:
2569
2128
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2571,79 +2130,46 @@ var DefaultApiResponseProcessor = (function () {
2571
2130
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2572
2131
  return [4, response.body.text()];
2573
2132
  case 3:
2574
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
2133
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2575
2134
  "GenericError", ""]);
2576
2135
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2577
2136
  case 4:
2578
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
2137
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2579
2138
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2580
2139
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2581
2140
  return [4, response.body.text()];
2582
2141
  case 5:
2583
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
2584
- "UserIdentityResponse", ""]);
2585
- return [2, body];
2586
- case 6:
2587
- _o = exception_1.ApiException.bind;
2588
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2589
- return [4, response.getBodyAsAny()];
2590
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
2591
- }
2592
- });
2593
- });
2594
- };
2595
- DefaultApiResponseProcessor.prototype.fetchUser = function (response) {
2596
- return __awaiter(this, void 0, void 0, function () {
2597
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2598
- return __generator(this, function (_u) {
2599
- switch (_u.label) {
2600
- case 0:
2601
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2602
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2603
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2604
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2605
- return [4, response.body.text()];
2606
- case 1:
2607
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2608
- "User", ""]);
2609
- return [2, body];
2610
- case 2:
2611
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
2612
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2613
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2614
- return [4, response.body.text()];
2615
- case 3:
2616
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2142
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2617
2143
  "GenericError", ""]);
2618
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2619
- case 4:
2620
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2621
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2622
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2623
- return [4, response.body.text()];
2624
- case 5:
2625
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2626
- "RateLimiterError", ""]);
2627
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2144
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2628
2145
  case 6:
2629
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2146
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2630
2147
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2631
2148
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2632
2149
  return [4, response.body.text()];
2633
2150
  case 7:
2634
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2635
- "User", ""]);
2636
- return [2, body];
2151
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2152
+ "RateLimitError", ""]);
2153
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2637
2154
  case 8:
2638
- _s = exception_1.ApiException.bind;
2639
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2155
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2156
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2157
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2158
+ return [4, response.body.text()];
2159
+ case 9:
2160
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2161
+ "ExportEventsSuccessResponse", ""]);
2162
+ return [2, body];
2163
+ case 10:
2164
+ _w = exception_1.ApiException.bind;
2165
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2640
2166
  return [4, response.getBodyAsAny()];
2641
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2167
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2642
2168
  }
2643
2169
  });
2644
2170
  });
2645
2171
  };
2646
- DefaultApiResponseProcessor.prototype.fetchUserIdentity = function (response) {
2172
+ DefaultApiResponseProcessor.prototype.exportSubscriptions = function (response) {
2647
2173
  return __awaiter(this, void 0, void 0, function () {
2648
2174
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2649
2175
  return __generator(this, function (_u) {
@@ -2656,7 +2182,7 @@ var DefaultApiResponseProcessor = (function () {
2656
2182
  return [4, response.body.text()];
2657
2183
  case 1:
2658
2184
  body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2659
- "InlineResponse200", ""]);
2185
+ "ExportSubscriptionsSuccessResponse", ""]);
2660
2186
  return [2, body];
2661
2187
  case 2:
2662
2188
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2674,7 +2200,7 @@ var DefaultApiResponseProcessor = (function () {
2674
2200
  return [4, response.body.text()];
2675
2201
  case 5:
2676
2202
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2677
- "RateLimiterError", ""]);
2203
+ "RateLimitError", ""]);
2678
2204
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2679
2205
  case 6:
2680
2206
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -2683,7 +2209,7 @@ var DefaultApiResponseProcessor = (function () {
2683
2209
  return [4, response.body.text()];
2684
2210
  case 7:
2685
2211
  body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2686
- "InlineResponse200", ""]);
2212
+ "ExportSubscriptionsSuccessResponse", ""]);
2687
2213
  return [2, body];
2688
2214
  case 8:
2689
2215
  _s = exception_1.ApiException.bind;
@@ -2694,11 +2220,11 @@ var DefaultApiResponseProcessor = (function () {
2694
2220
  });
2695
2221
  });
2696
2222
  };
2697
- DefaultApiResponseProcessor.prototype.getApp = function (response) {
2223
+ DefaultApiResponseProcessor.prototype.getAliases = function (response) {
2698
2224
  return __awaiter(this, void 0, void 0, function () {
2699
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2700
- return __generator(this, function (_u) {
2701
- switch (_u.label) {
2225
+ 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;
2226
+ return __generator(this, function (_y) {
2227
+ switch (_y.label) {
2702
2228
  case 0:
2703
2229
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2704
2230
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2706,8 +2232,8 @@ var DefaultApiResponseProcessor = (function () {
2706
2232
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2707
2233
  return [4, response.body.text()];
2708
2234
  case 1:
2709
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2710
- "App", ""]);
2235
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2236
+ "UserIdentityBody", ""]);
2711
2237
  return [2, body];
2712
2238
  case 2:
2713
2239
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2715,37 +2241,46 @@ var DefaultApiResponseProcessor = (function () {
2715
2241
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2716
2242
  return [4, response.body.text()];
2717
2243
  case 3:
2718
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2244
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2719
2245
  "GenericError", ""]);
2720
2246
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2721
2247
  case 4:
2722
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2248
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2723
2249
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2724
2250
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2725
2251
  return [4, response.body.text()];
2726
2252
  case 5:
2727
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2728
- "RateLimiterError", ""]);
2729
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2253
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2254
+ "GenericError", ""]);
2255
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2730
2256
  case 6:
2731
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2257
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2732
2258
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2733
2259
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2734
2260
  return [4, response.body.text()];
2735
2261
  case 7:
2736
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2737
- "App", ""]);
2738
- return [2, body];
2262
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2263
+ "RateLimitError", ""]);
2264
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2739
2265
  case 8:
2740
- _s = exception_1.ApiException.bind;
2741
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2266
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2267
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2268
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2269
+ return [4, response.body.text()];
2270
+ case 9:
2271
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2272
+ "UserIdentityBody", ""]);
2273
+ return [2, body];
2274
+ case 10:
2275
+ _w = exception_1.ApiException.bind;
2276
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2742
2277
  return [4, response.getBodyAsAny()];
2743
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2278
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2744
2279
  }
2745
2280
  });
2746
2281
  });
2747
2282
  };
2748
- DefaultApiResponseProcessor.prototype.getApps = function (response) {
2283
+ DefaultApiResponseProcessor.prototype.getAliasesBySubscription = function (response) {
2749
2284
  return __awaiter(this, void 0, void 0, function () {
2750
2285
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2751
2286
  return __generator(this, function (_u) {
@@ -2758,7 +2293,7 @@ var DefaultApiResponseProcessor = (function () {
2758
2293
  return [4, response.body.text()];
2759
2294
  case 1:
2760
2295
  body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2761
- "Array<App>", ""]);
2296
+ "UserIdentityBody", ""]);
2762
2297
  return [2, body];
2763
2298
  case 2:
2764
2299
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2770,14 +2305,14 @@ var DefaultApiResponseProcessor = (function () {
2770
2305
  "GenericError", ""]);
2771
2306
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2772
2307
  case 4:
2773
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2308
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2774
2309
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2775
2310
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2776
2311
  return [4, response.body.text()];
2777
2312
  case 5:
2778
2313
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2779
- "RateLimiterError", ""]);
2780
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2314
+ "GenericError", ""]);
2315
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2781
2316
  case 6:
2782
2317
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2783
2318
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
@@ -2785,7 +2320,7 @@ var DefaultApiResponseProcessor = (function () {
2785
2320
  return [4, response.body.text()];
2786
2321
  case 7:
2787
2322
  body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2788
- "Array<App>", ""]);
2323
+ "UserIdentityBody", ""]);
2789
2324
  return [2, body];
2790
2325
  case 8:
2791
2326
  _s = exception_1.ApiException.bind;
@@ -2796,7 +2331,7 @@ var DefaultApiResponseProcessor = (function () {
2796
2331
  });
2797
2332
  });
2798
2333
  };
2799
- DefaultApiResponseProcessor.prototype.getEligibleIams = function (response) {
2334
+ DefaultApiResponseProcessor.prototype.getApp = function (response) {
2800
2335
  return __awaiter(this, void 0, void 0, function () {
2801
2336
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2802
2337
  return __generator(this, function (_u) {
@@ -2809,7 +2344,7 @@ var DefaultApiResponseProcessor = (function () {
2809
2344
  return [4, response.body.text()];
2810
2345
  case 1:
2811
2346
  body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2812
- "InlineResponse2003", ""]);
2347
+ "App", ""]);
2813
2348
  return [2, body];
2814
2349
  case 2:
2815
2350
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2827,7 +2362,7 @@ var DefaultApiResponseProcessor = (function () {
2827
2362
  return [4, response.body.text()];
2828
2363
  case 5:
2829
2364
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2830
- "RateLimiterError", ""]);
2365
+ "RateLimitError", ""]);
2831
2366
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2832
2367
  case 6:
2833
2368
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -2836,7 +2371,7 @@ var DefaultApiResponseProcessor = (function () {
2836
2371
  return [4, response.body.text()];
2837
2372
  case 7:
2838
2373
  body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2839
- "InlineResponse2003", ""]);
2374
+ "App", ""]);
2840
2375
  return [2, body];
2841
2376
  case 8:
2842
2377
  _s = exception_1.ApiException.bind;
@@ -2847,7 +2382,7 @@ var DefaultApiResponseProcessor = (function () {
2847
2382
  });
2848
2383
  });
2849
2384
  };
2850
- DefaultApiResponseProcessor.prototype.getNotification = function (response) {
2385
+ DefaultApiResponseProcessor.prototype.getApps = function (response) {
2851
2386
  return __awaiter(this, void 0, void 0, function () {
2852
2387
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2853
2388
  return __generator(this, function (_u) {
@@ -2860,7 +2395,7 @@ var DefaultApiResponseProcessor = (function () {
2860
2395
  return [4, response.body.text()];
2861
2396
  case 1:
2862
2397
  body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2863
- "NotificationWithMeta", ""]);
2398
+ "Array<App>", ""]);
2864
2399
  return [2, body];
2865
2400
  case 2:
2866
2401
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2878,7 +2413,7 @@ var DefaultApiResponseProcessor = (function () {
2878
2413
  return [4, response.body.text()];
2879
2414
  case 5:
2880
2415
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2881
- "RateLimiterError", ""]);
2416
+ "RateLimitError", ""]);
2882
2417
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2883
2418
  case 6:
2884
2419
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -2887,7 +2422,7 @@ var DefaultApiResponseProcessor = (function () {
2887
2422
  return [4, response.body.text()];
2888
2423
  case 7:
2889
2424
  body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2890
- "NotificationWithMeta", ""]);
2425
+ "Array<App>", ""]);
2891
2426
  return [2, body];
2892
2427
  case 8:
2893
2428
  _s = exception_1.ApiException.bind;
@@ -2898,11 +2433,11 @@ var DefaultApiResponseProcessor = (function () {
2898
2433
  });
2899
2434
  });
2900
2435
  };
2901
- DefaultApiResponseProcessor.prototype.getNotificationHistory = function (response) {
2436
+ DefaultApiResponseProcessor.prototype.getNotification = function (response) {
2902
2437
  return __awaiter(this, void 0, void 0, function () {
2903
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2904
- return __generator(this, function (_u) {
2905
- switch (_u.label) {
2438
+ 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;
2439
+ return __generator(this, function (_y) {
2440
+ switch (_y.label) {
2906
2441
  case 0:
2907
2442
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2908
2443
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2910,8 +2445,8 @@ var DefaultApiResponseProcessor = (function () {
2910
2445
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2911
2446
  return [4, response.body.text()];
2912
2447
  case 1:
2913
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2914
- "NotificationHistorySuccessResponse", ""]);
2448
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2449
+ "NotificationWithMeta", ""]);
2915
2450
  return [2, body];
2916
2451
  case 2:
2917
2452
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2919,41 +2454,50 @@ var DefaultApiResponseProcessor = (function () {
2919
2454
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2920
2455
  return [4, response.body.text()];
2921
2456
  case 3:
2922
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2457
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2923
2458
  "GenericError", ""]);
2924
2459
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2925
2460
  case 4:
2926
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2461
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2927
2462
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2928
2463
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2929
2464
  return [4, response.body.text()];
2930
2465
  case 5:
2931
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2932
- "RateLimiterError", ""]);
2933
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2466
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2467
+ "GenericError", ""]);
2468
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2934
2469
  case 6:
2935
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2470
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2936
2471
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2937
2472
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2938
2473
  return [4, response.body.text()];
2939
2474
  case 7:
2940
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2941
- "NotificationHistorySuccessResponse", ""]);
2942
- return [2, body];
2475
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2476
+ "RateLimitError", ""]);
2477
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2943
2478
  case 8:
2944
- _s = exception_1.ApiException.bind;
2945
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2479
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2480
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2481
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2482
+ return [4, response.body.text()];
2483
+ case 9:
2484
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2485
+ "NotificationWithMeta", ""]);
2486
+ return [2, body];
2487
+ case 10:
2488
+ _w = exception_1.ApiException.bind;
2489
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2946
2490
  return [4, response.getBodyAsAny()];
2947
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2491
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2948
2492
  }
2949
2493
  });
2950
2494
  });
2951
2495
  };
2952
- DefaultApiResponseProcessor.prototype.getNotifications = function (response) {
2496
+ DefaultApiResponseProcessor.prototype.getNotificationHistory = function (response) {
2953
2497
  return __awaiter(this, void 0, void 0, function () {
2954
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2955
- return __generator(this, function (_u) {
2956
- switch (_u.label) {
2498
+ 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;
2499
+ return __generator(this, function (_y) {
2500
+ switch (_y.label) {
2957
2501
  case 0:
2958
2502
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2959
2503
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -2961,8 +2505,8 @@ var DefaultApiResponseProcessor = (function () {
2961
2505
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2962
2506
  return [4, response.body.text()];
2963
2507
  case 1:
2964
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2965
- "NotificationSlice", ""]);
2508
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
2509
+ "NotificationHistorySuccessResponse", ""]);
2966
2510
  return [2, body];
2967
2511
  case 2:
2968
2512
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -2970,37 +2514,46 @@ var DefaultApiResponseProcessor = (function () {
2970
2514
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2971
2515
  return [4, response.body.text()];
2972
2516
  case 3:
2973
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
2517
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2974
2518
  "GenericError", ""]);
2975
2519
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
2976
2520
  case 4:
2977
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
2521
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
2978
2522
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
2979
2523
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
2980
2524
  return [4, response.body.text()];
2981
2525
  case 5:
2982
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2983
- "RateLimiterError", ""]);
2984
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2526
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2527
+ "GenericError", ""]);
2528
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
2985
2529
  case 6:
2986
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
2530
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2987
2531
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
2988
2532
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
2989
2533
  return [4, response.body.text()];
2990
2534
  case 7:
2991
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2992
- "NotificationSlice", ""]);
2993
- return [2, body];
2535
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
2536
+ "RateLimitError", ""]);
2537
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2994
2538
  case 8:
2995
- _s = exception_1.ApiException.bind;
2996
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2539
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2540
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
2541
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
2542
+ return [4, response.body.text()];
2543
+ case 9:
2544
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
2545
+ "NotificationHistorySuccessResponse", ""]);
2546
+ return [2, body];
2547
+ case 10:
2548
+ _w = exception_1.ApiException.bind;
2549
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2997
2550
  return [4, response.getBodyAsAny()];
2998
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
2551
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2999
2552
  }
3000
2553
  });
3001
2554
  });
3002
2555
  };
3003
- DefaultApiResponseProcessor.prototype.getOutcomes = function (response) {
2556
+ DefaultApiResponseProcessor.prototype.getNotifications = function (response) {
3004
2557
  return __awaiter(this, void 0, void 0, function () {
3005
2558
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
3006
2559
  return __generator(this, function (_u) {
@@ -3013,7 +2566,7 @@ var DefaultApiResponseProcessor = (function () {
3013
2566
  return [4, response.body.text()];
3014
2567
  case 1:
3015
2568
  body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
3016
- "OutcomesData", ""]);
2569
+ "NotificationSlice", ""]);
3017
2570
  return [2, body];
3018
2571
  case 2:
3019
2572
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -3031,7 +2584,7 @@ var DefaultApiResponseProcessor = (function () {
3031
2584
  return [4, response.body.text()];
3032
2585
  case 5:
3033
2586
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
3034
- "RateLimiterError", ""]);
2587
+ "RateLimitError", ""]);
3035
2588
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3036
2589
  case 6:
3037
2590
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -3040,7 +2593,7 @@ var DefaultApiResponseProcessor = (function () {
3040
2593
  return [4, response.body.text()];
3041
2594
  case 7:
3042
2595
  body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
3043
- "OutcomesData", ""]);
2596
+ "NotificationSlice", ""]);
3044
2597
  return [2, body];
3045
2598
  case 8:
3046
2599
  _s = exception_1.ApiException.bind;
@@ -3051,7 +2604,7 @@ var DefaultApiResponseProcessor = (function () {
3051
2604
  });
3052
2605
  });
3053
2606
  };
3054
- DefaultApiResponseProcessor.prototype.getPlayer = function (response) {
2607
+ DefaultApiResponseProcessor.prototype.getOutcomes = function (response) {
3055
2608
  return __awaiter(this, void 0, void 0, function () {
3056
2609
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
3057
2610
  return __generator(this, function (_u) {
@@ -3064,7 +2617,7 @@ var DefaultApiResponseProcessor = (function () {
3064
2617
  return [4, response.body.text()];
3065
2618
  case 1:
3066
2619
  body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
3067
- "Player", ""]);
2620
+ "OutcomesData", ""]);
3068
2621
  return [2, body];
3069
2622
  case 2:
3070
2623
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -3082,7 +2635,7 @@ var DefaultApiResponseProcessor = (function () {
3082
2635
  return [4, response.body.text()];
3083
2636
  case 5:
3084
2637
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
3085
- "RateLimiterError", ""]);
2638
+ "RateLimitError", ""]);
3086
2639
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3087
2640
  case 6:
3088
2641
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -3091,7 +2644,7 @@ var DefaultApiResponseProcessor = (function () {
3091
2644
  return [4, response.body.text()];
3092
2645
  case 7:
3093
2646
  body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
3094
- "Player", ""]);
2647
+ "OutcomesData", ""]);
3095
2648
  return [2, body];
3096
2649
  case 8:
3097
2650
  _s = exception_1.ApiException.bind;
@@ -3102,20 +2655,20 @@ var DefaultApiResponseProcessor = (function () {
3102
2655
  });
3103
2656
  });
3104
2657
  };
3105
- DefaultApiResponseProcessor.prototype.getPlayers = function (response) {
2658
+ DefaultApiResponseProcessor.prototype.getSegments = function (response) {
3106
2659
  return __awaiter(this, void 0, void 0, function () {
3107
2660
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
3108
2661
  return __generator(this, function (_u) {
3109
2662
  switch (_u.label) {
3110
2663
  case 0:
3111
2664
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
3112
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2665
+ if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
3113
2666
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
3114
2667
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
3115
2668
  return [4, response.body.text()];
3116
2669
  case 1:
3117
2670
  body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
3118
- "PlayerSlice", ""]);
2671
+ "GetSegmentsSuccessResponse", ""]);
3119
2672
  return [2, body];
3120
2673
  case 2:
3121
2674
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -3133,7 +2686,7 @@ var DefaultApiResponseProcessor = (function () {
3133
2686
  return [4, response.body.text()];
3134
2687
  case 5:
3135
2688
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
3136
- "RateLimiterError", ""]);
2689
+ "RateLimitError", ""]);
3137
2690
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3138
2691
  case 6:
3139
2692
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -3142,7 +2695,7 @@ var DefaultApiResponseProcessor = (function () {
3142
2695
  return [4, response.body.text()];
3143
2696
  case 7:
3144
2697
  body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
3145
- "PlayerSlice", ""]);
2698
+ "GetSegmentsSuccessResponse", ""]);
3146
2699
  return [2, body];
3147
2700
  case 8:
3148
2701
  _s = exception_1.ApiException.bind;
@@ -3153,7 +2706,7 @@ var DefaultApiResponseProcessor = (function () {
3153
2706
  });
3154
2707
  });
3155
2708
  };
3156
- DefaultApiResponseProcessor.prototype.identifyUserByAlias = function (response) {
2709
+ DefaultApiResponseProcessor.prototype.getUser = function (response) {
3157
2710
  return __awaiter(this, void 0, void 0, function () {
3158
2711
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
3159
2712
  return __generator(this, function (_y) {
@@ -3166,7 +2719,7 @@ var DefaultApiResponseProcessor = (function () {
3166
2719
  return [4, response.body.text()];
3167
2720
  case 1:
3168
2721
  body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
3169
- "InlineResponse200", ""]);
2722
+ "User", ""]);
3170
2723
  return [2, body];
3171
2724
  case 2:
3172
2725
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -3178,14 +2731,14 @@ var DefaultApiResponseProcessor = (function () {
3178
2731
  "GenericError", ""]);
3179
2732
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
3180
2733
  case 4:
3181
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
2734
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
3182
2735
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
3183
2736
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
3184
2737
  return [4, response.body.text()];
3185
2738
  case 5:
3186
2739
  body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
3187
2740
  "GenericError", ""]);
3188
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2741
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
3189
2742
  case 6:
3190
2743
  if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
3191
2744
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
@@ -3193,7 +2746,7 @@ var DefaultApiResponseProcessor = (function () {
3193
2746
  return [4, response.body.text()];
3194
2747
  case 7:
3195
2748
  body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3196
- "RateLimiterError", ""]);
2749
+ "RateLimitError", ""]);
3197
2750
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3198
2751
  case 8:
3199
2752
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
@@ -3202,7 +2755,7 @@ var DefaultApiResponseProcessor = (function () {
3202
2755
  return [4, response.body.text()];
3203
2756
  case 9:
3204
2757
  body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
3205
- "InlineResponse200", ""]);
2758
+ "User", ""]);
3206
2759
  return [2, body];
3207
2760
  case 10:
3208
2761
  _w = exception_1.ApiException.bind;
@@ -3213,11 +2766,11 @@ var DefaultApiResponseProcessor = (function () {
3213
2766
  });
3214
2767
  });
3215
2768
  };
3216
- DefaultApiResponseProcessor.prototype.identifyUserBySubscriptionId = function (response) {
2769
+ DefaultApiResponseProcessor.prototype.transferSubscription = function (response) {
3217
2770
  return __awaiter(this, void 0, void 0, function () {
3218
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
3219
- return __generator(this, function (_y) {
3220
- switch (_y.label) {
2771
+ 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;
2772
+ return __generator(this, function (_2) {
2773
+ switch (_2.label) {
3221
2774
  case 0:
3222
2775
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
3223
2776
  if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
@@ -3225,8 +2778,8 @@ var DefaultApiResponseProcessor = (function () {
3225
2778
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
3226
2779
  return [4, response.body.text()];
3227
2780
  case 1:
3228
- body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
3229
- "UserIdentityResponse", ""]);
2781
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
2782
+ "UserIdentityBody", ""]);
3230
2783
  return [2, body];
3231
2784
  case 2:
3232
2785
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -3234,59 +2787,68 @@ var DefaultApiResponseProcessor = (function () {
3234
2787
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
3235
2788
  return [4, response.body.text()];
3236
2789
  case 3:
3237
- body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2790
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
3238
2791
  "GenericError", ""]);
3239
2792
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
3240
2793
  case 4:
3241
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
2794
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
3242
2795
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
3243
2796
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
3244
2797
  return [4, response.body.text()];
3245
2798
  case 5:
3246
- body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
2799
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
3247
2800
  "GenericError", ""]);
3248
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2801
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
3249
2802
  case 6:
3250
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2803
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 8];
3251
2804
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3252
2805
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3253
2806
  return [4, response.body.text()];
3254
2807
  case 7:
3255
- body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3256
- "RateLimiterError", ""]);
3257
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
2808
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
2809
+ "GenericError", ""]);
2810
+ throw new exception_1.ApiException(409, "Conflict", body, response.headers);
3258
2811
  case 8:
3259
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
2812
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 10];
3260
2813
  _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
3261
2814
  _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
3262
2815
  return [4, response.body.text()];
3263
2816
  case 9:
3264
- body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
3265
- "UserIdentityResponse", ""]);
3266
- return [2, body];
2817
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
2818
+ "RateLimitError", ""]);
2819
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3267
2820
  case 10:
3268
- _w = exception_1.ApiException.bind;
3269
- _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2821
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
2822
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
2823
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
2824
+ return [4, response.body.text()];
2825
+ case 11:
2826
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
2827
+ "UserIdentityBody", ""]);
2828
+ return [2, body];
2829
+ case 12:
2830
+ _0 = exception_1.ApiException.bind;
2831
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3270
2832
  return [4, response.getBodyAsAny()];
3271
- case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2833
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
3272
2834
  }
3273
2835
  });
3274
2836
  });
3275
2837
  };
3276
- DefaultApiResponseProcessor.prototype.transferSubscription = function (response) {
2838
+ DefaultApiResponseProcessor.prototype.unsubscribeEmailWithToken = function (response) {
3277
2839
  return __awaiter(this, void 0, void 0, function () {
3278
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
3279
- return __generator(this, function (_y) {
3280
- switch (_y.label) {
2840
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
2841
+ return __generator(this, function (_u) {
2842
+ switch (_u.label) {
3281
2843
  case 0:
3282
2844
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
3283
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2845
+ if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 2];
3284
2846
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
3285
2847
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
3286
2848
  return [4, response.body.text()];
3287
2849
  case 1:
3288
- body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
3289
- "UserIdentityResponse", ""]);
2850
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
2851
+ "GenericSuccessBoolResponse", ""]);
3290
2852
  return [2, body];
3291
2853
  case 2:
3292
2854
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -3294,41 +2856,32 @@ var DefaultApiResponseProcessor = (function () {
3294
2856
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
3295
2857
  return [4, response.body.text()];
3296
2858
  case 3:
3297
- body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
2859
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
3298
2860
  "GenericError", ""]);
3299
2861
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
3300
2862
  case 4:
3301
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
2863
+ if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
3302
2864
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
3303
2865
  _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
3304
2866
  return [4, response.body.text()];
3305
2867
  case 5:
3306
- body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
3307
- "GenericError", ""]);
3308
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
2868
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
2869
+ "RateLimitError", ""]);
2870
+ throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3309
2871
  case 6:
3310
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
2872
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
3311
2873
  _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3312
2874
  _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3313
2875
  return [4, response.body.text()];
3314
2876
  case 7:
3315
- body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3316
- "RateLimiterError", ""]);
3317
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3318
- case 8:
3319
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
3320
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
3321
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
3322
- return [4, response.body.text()];
3323
- case 9:
3324
- body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
3325
- "UserIdentityResponse", ""]);
2877
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
2878
+ "GenericSuccessBoolResponse", ""]);
3326
2879
  return [2, body];
3327
- case 10:
3328
- _w = exception_1.ApiException.bind;
3329
- _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2880
+ case 8:
2881
+ _s = exception_1.ApiException.bind;
2882
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3330
2883
  return [4, response.getBodyAsAny()];
3331
- case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
2884
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
3332
2885
  }
3333
2886
  });
3334
2887
  });
@@ -3364,7 +2917,7 @@ var DefaultApiResponseProcessor = (function () {
3364
2917
  return [4, response.body.text()];
3365
2918
  case 5:
3366
2919
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
3367
- "RateLimiterError", ""]);
2920
+ "RateLimitError", ""]);
3368
2921
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3369
2922
  case 6:
3370
2923
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -3415,7 +2968,7 @@ var DefaultApiResponseProcessor = (function () {
3415
2968
  return [4, response.body.text()];
3416
2969
  case 5:
3417
2970
  body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
3418
- "RateLimiterError", ""]);
2971
+ "RateLimitError", ""]);
3419
2972
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3420
2973
  case 6:
3421
2974
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
@@ -3435,90 +2988,33 @@ var DefaultApiResponseProcessor = (function () {
3435
2988
  });
3436
2989
  });
3437
2990
  };
3438
- DefaultApiResponseProcessor.prototype.updatePlayer = function (response) {
2991
+ DefaultApiResponseProcessor.prototype.updateSubscription = function (response) {
3439
2992
  return __awaiter(this, void 0, void 0, function () {
3440
2993
  var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
3441
2994
  return __generator(this, function (_y) {
3442
2995
  switch (_y.label) {
3443
2996
  case 0:
3444
2997
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
3445
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2998
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
2999
+ return [2];
3000
+ }
3001
+ if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
3446
3002
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
3447
3003
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
3448
3004
  return [4, response.body.text()];
3449
3005
  case 1:
3450
3006
  body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
3451
- "UpdatePlayerSuccessResponse", ""]);
3452
- return [2, body];
3453
- case 2:
3454
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
3455
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
3456
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
3457
- return [4, response.body.text()];
3458
- case 3:
3459
- body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
3460
3007
  "GenericError", ""]);
3461
3008
  throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
3462
- case 4:
3463
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
3464
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
3465
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
3466
- return [4, response.body.text()];
3467
- case 5:
3468
- body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
3469
- "GenericError", ""]);
3470
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
3471
- case 6:
3472
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
3473
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3474
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3475
- return [4, response.body.text()];
3476
- case 7:
3477
- body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3478
- "RateLimiterError", ""]);
3479
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3480
- case 8:
3481
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
3482
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
3483
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
3484
- return [4, response.body.text()];
3485
- case 9:
3486
- body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
3487
- "UpdatePlayerSuccessResponse", ""]);
3488
- return [2, body];
3489
- case 10:
3490
- _w = exception_1.ApiException.bind;
3491
- _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3492
- return [4, response.getBodyAsAny()];
3493
- case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
3494
- }
3495
- });
3496
- });
3497
- };
3498
- DefaultApiResponseProcessor.prototype.updatePlayerTags = function (response) {
3499
- return __awaiter(this, void 0, void 0, function () {
3500
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
3501
- return __generator(this, function (_y) {
3502
- switch (_y.label) {
3503
- case 0:
3504
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
3505
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
3506
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
3507
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
3508
- return [4, response.body.text()];
3509
- case 1:
3510
- body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
3511
- "UpdatePlayerTagsSuccessResponse", ""]);
3512
- return [2, body];
3513
3009
  case 2:
3514
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
3010
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
3515
3011
  _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
3516
3012
  _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
3517
3013
  return [4, response.body.text()];
3518
3014
  case 3:
3519
3015
  body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
3520
3016
  "GenericError", ""]);
3521
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
3017
+ throw new exception_1.ApiException(404, "Not Found", body, response.headers);
3522
3018
  case 4:
3523
3019
  if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
3524
3020
  _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
@@ -3535,7 +3031,7 @@ var DefaultApiResponseProcessor = (function () {
3535
3031
  return [4, response.body.text()];
3536
3032
  case 7:
3537
3033
  body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3538
- "RateLimiterError", ""]);
3034
+ "RateLimitError", ""]);
3539
3035
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3540
3036
  case 8:
3541
3037
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
@@ -3544,7 +3040,7 @@ var DefaultApiResponseProcessor = (function () {
3544
3040
  return [4, response.body.text()];
3545
3041
  case 9:
3546
3042
  body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
3547
- "UpdatePlayerTagsSuccessResponse", ""]);
3043
+ "void", ""]);
3548
3044
  return [2, body];
3549
3045
  case 10:
3550
3046
  _w = exception_1.ApiException.bind;
@@ -3555,60 +3051,6 @@ var DefaultApiResponseProcessor = (function () {
3555
3051
  });
3556
3052
  });
3557
3053
  };
3558
- DefaultApiResponseProcessor.prototype.updateSubscription = function (response) {
3559
- return __awaiter(this, void 0, void 0, function () {
3560
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
3561
- return __generator(this, function (_u) {
3562
- switch (_u.label) {
3563
- case 0:
3564
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
3565
- if ((0, util_1.isCodeInRange)("202", response.httpStatusCode)) {
3566
- return [2];
3567
- }
3568
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
3569
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
3570
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
3571
- return [4, response.body.text()];
3572
- case 1:
3573
- body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
3574
- "GenericError", ""]);
3575
- throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
3576
- case 2:
3577
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
3578
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
3579
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
3580
- return [4, response.body.text()];
3581
- case 3:
3582
- body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
3583
- "GenericError", ""]);
3584
- throw new exception_1.ApiException(409, "Conflict", body, response.headers);
3585
- case 4:
3586
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
3587
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
3588
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
3589
- return [4, response.body.text()];
3590
- case 5:
3591
- body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
3592
- "RateLimiterError", ""]);
3593
- throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3594
- case 6:
3595
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
3596
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
3597
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
3598
- return [4, response.body.text()];
3599
- case 7:
3600
- body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
3601
- "void", ""]);
3602
- return [2, body];
3603
- case 8:
3604
- _s = exception_1.ApiException.bind;
3605
- _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
3606
- return [4, response.getBodyAsAny()];
3607
- case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
3608
- }
3609
- });
3610
- });
3611
- };
3612
3054
  DefaultApiResponseProcessor.prototype.updateUser = function (response) {
3613
3055
  return __awaiter(this, void 0, void 0, function () {
3614
3056
  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;
@@ -3622,7 +3064,7 @@ var DefaultApiResponseProcessor = (function () {
3622
3064
  return [4, response.body.text()];
3623
3065
  case 1:
3624
3066
  body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
3625
- "InlineResponse202", ""]);
3067
+ "PropertiesBody", ""]);
3626
3068
  return [2, body];
3627
3069
  case 2:
3628
3070
  if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
@@ -3649,7 +3091,7 @@ var DefaultApiResponseProcessor = (function () {
3649
3091
  return [4, response.body.text()];
3650
3092
  case 7:
3651
3093
  body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
3652
- "RateLimiterError", ""]);
3094
+ "RateLimitError", ""]);
3653
3095
  throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
3654
3096
  case 8:
3655
3097
  if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
@@ -3658,7 +3100,7 @@ var DefaultApiResponseProcessor = (function () {
3658
3100
  return [4, response.body.text()];
3659
3101
  case 9:
3660
3102
  body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
3661
- "InlineResponse202", ""]);
3103
+ "PropertiesBody", ""]);
3662
3104
  return [2, body];
3663
3105
  case 10:
3664
3106
  _w = exception_1.ApiException.bind;