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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/.github/workflows/Zapier.yml +29 -0
  2. package/CHANGELOG.md +15 -0
  3. package/DefaultApi.md +1139 -153
  4. package/README.md +148 -0
  5. package/apis/DefaultApi.ts +1344 -98
  6. package/dist/apis/DefaultApi.d.ts +39 -0
  7. package/dist/apis/DefaultApi.js +1491 -408
  8. package/dist/apis/DefaultApi.js.map +1 -1
  9. package/dist/models/BasicNotification.d.ts +4 -0
  10. package/dist/models/BasicNotification.js +12 -0
  11. package/dist/models/BasicNotification.js.map +1 -1
  12. package/dist/models/CreateSubscriptionRequestBody.d.ts +19 -0
  13. package/dist/models/CreateSubscriptionRequestBody.js +28 -0
  14. package/dist/models/CreateSubscriptionRequestBody.js.map +1 -0
  15. package/dist/models/CreateUserConflictResponse.d.ts +18 -0
  16. package/dist/models/CreateUserConflictResponse.js +22 -0
  17. package/dist/models/CreateUserConflictResponse.js.map +1 -0
  18. package/dist/models/CreateUserConflictResponseErrorsInner.d.ts +20 -0
  19. package/dist/models/CreateUserConflictResponseErrorsInner.js +34 -0
  20. package/dist/models/CreateUserConflictResponseErrorsInner.js.map +1 -0
  21. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.d.ts +17 -0
  22. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js +22 -0
  23. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js.map +1 -0
  24. package/dist/models/IdentifyUserConflictResponse.d.ts +18 -0
  25. package/dist/models/IdentifyUserConflictResponse.js +22 -0
  26. package/dist/models/IdentifyUserConflictResponse.js.map +1 -0
  27. package/dist/models/IdentifyUserConflictResponseErrorsInner.d.ts +18 -0
  28. package/dist/models/IdentifyUserConflictResponseErrorsInner.js +28 -0
  29. package/dist/models/IdentifyUserConflictResponseErrorsInner.js.map +1 -0
  30. package/dist/models/InlineResponse200.d.ts +19 -0
  31. package/dist/models/InlineResponse200.js +22 -0
  32. package/dist/models/InlineResponse200.js.map +1 -0
  33. package/dist/models/InlineResponse2003.d.ts +17 -0
  34. package/dist/models/InlineResponse2003.js +22 -0
  35. package/dist/models/InlineResponse2003.js.map +1 -0
  36. package/dist/models/InlineResponse201.d.ts +18 -0
  37. package/dist/models/InlineResponse201.js +22 -0
  38. package/dist/models/InlineResponse201.js.map +1 -0
  39. package/dist/models/InlineResponse202.d.ts +18 -0
  40. package/dist/models/InlineResponse202.js +22 -0
  41. package/dist/models/InlineResponse202.js.map +1 -0
  42. package/dist/models/Notification.d.ts +4 -0
  43. package/dist/models/Notification.js +12 -0
  44. package/dist/models/Notification.js.map +1 -1
  45. package/dist/models/NotificationTarget.d.ts +4 -0
  46. package/dist/models/NotificationTarget.js +12 -0
  47. package/dist/models/NotificationTarget.js.map +1 -1
  48. package/dist/models/NotificationWithMeta.d.ts +4 -0
  49. package/dist/models/NotificationWithMeta.js +12 -0
  50. package/dist/models/NotificationWithMeta.js.map +1 -1
  51. package/dist/models/ObjectSerializer.d.ts +21 -0
  52. package/dist/models/ObjectSerializer.js +69 -0
  53. package/dist/models/ObjectSerializer.js.map +1 -1
  54. package/dist/models/Player.d.ts +1 -1
  55. package/dist/models/Player.js +1 -1
  56. package/dist/models/Player.js.map +1 -1
  57. package/dist/models/PlayerNotificationTarget.d.ts +4 -0
  58. package/dist/models/PlayerNotificationTarget.js +12 -0
  59. package/dist/models/PlayerNotificationTarget.js.map +1 -1
  60. package/dist/models/PlayerNotificationTargetIncludeAliases.d.ts +17 -0
  61. package/dist/models/PlayerNotificationTargetIncludeAliases.js +22 -0
  62. package/dist/models/PlayerNotificationTargetIncludeAliases.js.map +1 -0
  63. package/dist/models/PropertiesDeltas.d.ts +21 -0
  64. package/dist/models/PropertiesDeltas.js +40 -0
  65. package/dist/models/PropertiesDeltas.js.map +1 -0
  66. package/dist/models/PropertiesObject.d.ts +30 -0
  67. package/dist/models/PropertiesObject.js +82 -0
  68. package/dist/models/PropertiesObject.js.map +1 -0
  69. package/dist/models/Purchase.d.ts +1 -1
  70. package/dist/models/Purchase.js +1 -1
  71. package/dist/models/SubscriptionObject.d.ts +34 -0
  72. package/dist/models/SubscriptionObject.js +118 -0
  73. package/dist/models/SubscriptionObject.js.map +1 -0
  74. package/dist/models/TransferSubscriptionRequestBody.d.ts +19 -0
  75. package/dist/models/TransferSubscriptionRequestBody.js +22 -0
  76. package/dist/models/TransferSubscriptionRequestBody.js.map +1 -0
  77. package/dist/models/UpdateSubscriptionRequestBody.d.ts +18 -0
  78. package/dist/models/UpdateSubscriptionRequestBody.js +22 -0
  79. package/dist/models/UpdateSubscriptionRequestBody.js.map +1 -0
  80. package/dist/models/UpdateUserRequest.d.ts +21 -0
  81. package/dist/models/UpdateUserRequest.js +34 -0
  82. package/dist/models/UpdateUserRequest.js.map +1 -0
  83. package/dist/models/User.d.ts +25 -0
  84. package/dist/models/User.js +40 -0
  85. package/dist/models/User.js.map +1 -0
  86. package/dist/models/UserIdentityRequestBody.d.ts +19 -0
  87. package/dist/models/UserIdentityRequestBody.js +22 -0
  88. package/dist/models/UserIdentityRequestBody.js.map +1 -0
  89. package/dist/models/UserIdentityResponse.d.ts +19 -0
  90. package/dist/models/UserIdentityResponse.js +22 -0
  91. package/dist/models/UserIdentityResponse.js.map +1 -0
  92. package/dist/models/UserSubscriptionOptions.d.ts +17 -0
  93. package/dist/models/UserSubscriptionOptions.js +22 -0
  94. package/dist/models/UserSubscriptionOptions.js.map +1 -0
  95. package/dist/models/all.d.ts +21 -0
  96. package/dist/models/all.js +21 -0
  97. package/dist/models/all.js.map +1 -1
  98. package/dist/types/ObjectParamAPI.d.ts +96 -0
  99. package/dist/types/ObjectParamAPI.js +42 -0
  100. package/dist/types/ObjectParamAPI.js.map +1 -1
  101. package/dist/types/ObservableAPI.d.ts +25 -0
  102. package/dist/types/ObservableAPI.js +383 -47
  103. package/dist/types/ObservableAPI.js.map +1 -1
  104. package/dist/types/PromiseAPI.d.ts +25 -0
  105. package/dist/types/PromiseAPI.js +56 -0
  106. package/dist/types/PromiseAPI.js.map +1 -1
  107. package/models/App.ts +1 -1
  108. package/models/BadRequestError.ts +1 -1
  109. package/models/BasicNotification.ts +17 -1
  110. package/models/BasicNotificationAllOf.ts +1 -1
  111. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
  112. package/models/BeginLiveActivityRequest.ts +1 -1
  113. package/models/Button.ts +1 -1
  114. package/models/CancelNotificationSuccessResponse.ts +1 -1
  115. package/models/CreateNotificationSuccessResponse.ts +1 -1
  116. package/models/CreatePlayerSuccessResponse.ts +1 -1
  117. package/models/CreateSegmentConflictResponse.ts +1 -1
  118. package/models/CreateSegmentSuccessResponse.ts +1 -1
  119. package/models/CreateSubscriptionRequestBody.ts +39 -0
  120. package/models/CreateUserConflictResponse.ts +32 -0
  121. package/models/CreateUserConflictResponseErrorsInner.ts +46 -0
  122. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +31 -0
  123. package/models/DeletePlayerNotFoundResponse.ts +1 -1
  124. package/models/DeletePlayerSuccessResponse.ts +1 -1
  125. package/models/DeleteSegmentNotFoundResponse.ts +1 -1
  126. package/models/DeleteSegmentSuccessResponse.ts +1 -1
  127. package/models/DeliveryData.ts +1 -1
  128. package/models/ExportPlayersRequestBody.ts +1 -1
  129. package/models/ExportPlayersSuccessResponse.ts +1 -1
  130. package/models/Filter.ts +1 -1
  131. package/models/FilterExpressions.ts +1 -1
  132. package/models/GetNotificationRequestBody.ts +1 -1
  133. package/models/IdentifyUserConflictResponse.ts +32 -0
  134. package/models/IdentifyUserConflictResponseErrorsInner.ts +38 -0
  135. package/models/InlineResponse200.ts +31 -0
  136. package/models/InlineResponse2003.ts +31 -0
  137. package/models/InlineResponse201.ts +32 -0
  138. package/models/InlineResponse202.ts +32 -0
  139. package/models/InvalidIdentifierError.ts +1 -1
  140. package/models/Notification.ts +17 -1
  141. package/models/Notification200Errors.ts +1 -1
  142. package/models/NotificationAllOf.ts +1 -1
  143. package/models/NotificationHistorySuccessResponse.ts +1 -1
  144. package/models/NotificationSlice.ts +1 -1
  145. package/models/NotificationTarget.ts +19 -1
  146. package/models/NotificationWithMeta.ts +17 -1
  147. package/models/NotificationWithMetaAllOf.ts +1 -1
  148. package/models/ObjectSerializer.ts +74 -5
  149. package/models/Operator.ts +1 -1
  150. package/models/OutcomeData.ts +1 -1
  151. package/models/OutcomesData.ts +1 -1
  152. package/models/PlatformDeliveryData.ts +1 -1
  153. package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
  154. package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
  155. package/models/Player.ts +3 -3
  156. package/models/PlayerNotificationTarget.ts +19 -1
  157. package/models/PlayerNotificationTargetIncludeAliases.ts +31 -0
  158. package/models/PlayerSlice.ts +1 -1
  159. package/models/PropertiesDeltas.ts +53 -0
  160. package/models/PropertiesObject.ts +102 -0
  161. package/models/Purchase.ts +3 -3
  162. package/models/Segment.ts +1 -1
  163. package/models/SegmentNotificationTarget.ts +1 -1
  164. package/models/StringMap.ts +1 -1
  165. package/models/SubscriptionObject.ts +146 -0
  166. package/models/TransferSubscriptionRequestBody.ts +31 -0
  167. package/models/UpdateLiveActivityRequest.ts +1 -1
  168. package/models/UpdateLiveActivitySuccessResponse.ts +1 -1
  169. package/models/UpdatePlayerSuccessResponse.ts +1 -1
  170. package/models/UpdatePlayerTagsRequestBody.ts +1 -1
  171. package/models/UpdatePlayerTagsSuccessResponse.ts +1 -1
  172. package/models/UpdateSubscriptionRequestBody.ts +32 -0
  173. package/models/UpdateUserRequest.ts +47 -0
  174. package/models/User.ts +55 -0
  175. package/models/UserIdentityRequestBody.ts +31 -0
  176. package/models/UserIdentityResponse.ts +31 -0
  177. package/models/UserSubscriptionOptions.ts +31 -0
  178. package/models/all.ts +21 -0
  179. package/package.json +2 -2
  180. package/types/ObjectParamAPI.ts +433 -0
  181. package/types/ObservableAPI.ts +372 -0
  182. package/types/PromiseAPI.ts +176 -0
@@ -14,6 +14,10 @@ import { CreateNotificationSuccessResponse } from '../models/CreateNotificationS
14
14
  import { CreatePlayerSuccessResponse } from '../models/CreatePlayerSuccessResponse';
15
15
  import { CreateSegmentConflictResponse } from '../models/CreateSegmentConflictResponse';
16
16
  import { CreateSegmentSuccessResponse } from '../models/CreateSegmentSuccessResponse';
17
+ import { CreateSubscriptionRequestBody } from '../models/CreateSubscriptionRequestBody';
18
+ import { CreateUserConflictResponse } from '../models/CreateUserConflictResponse';
19
+ import { CreateUserConflictResponseErrorsInner } from '../models/CreateUserConflictResponseErrorsInner';
20
+ import { CreateUserConflictResponseErrorsItemsMeta } from '../models/CreateUserConflictResponseErrorsItemsMeta';
17
21
  import { DeletePlayerNotFoundResponse } from '../models/DeletePlayerNotFoundResponse';
18
22
  import { DeletePlayerSuccessResponse } from '../models/DeletePlayerSuccessResponse';
19
23
  import { DeleteSegmentNotFoundResponse } from '../models/DeleteSegmentNotFoundResponse';
@@ -24,6 +28,12 @@ import { ExportPlayersSuccessResponse } from '../models/ExportPlayersSuccessResp
24
28
  import { Filter } from '../models/Filter';
25
29
  import { FilterExpressions } from '../models/FilterExpressions';
26
30
  import { GetNotificationRequestBody } from '../models/GetNotificationRequestBody';
31
+ import { IdentifyUserConflictResponse } from '../models/IdentifyUserConflictResponse';
32
+ import { IdentifyUserConflictResponseErrorsInner } from '../models/IdentifyUserConflictResponseErrorsInner';
33
+ import { InlineResponse200 } from '../models/InlineResponse200';
34
+ import { InlineResponse2003 } from '../models/InlineResponse2003';
35
+ import { InlineResponse201 } from '../models/InlineResponse201';
36
+ import { InlineResponse202 } from '../models/InlineResponse202';
27
37
  import { InvalidIdentifierError } from '../models/InvalidIdentifierError';
28
38
  import { Notification } from '../models/Notification';
29
39
  import { Notification200Errors } from '../models/Notification200Errors';
@@ -41,16 +51,27 @@ import { PlatformDeliveryDataEmailAllOf } from '../models/PlatformDeliveryDataEm
41
51
  import { PlatformDeliveryDataSmsAllOf } from '../models/PlatformDeliveryDataSmsAllOf';
42
52
  import { Player } from '../models/Player';
43
53
  import { PlayerNotificationTarget } from '../models/PlayerNotificationTarget';
54
+ import { PlayerNotificationTargetIncludeAliases } from '../models/PlayerNotificationTargetIncludeAliases';
44
55
  import { PlayerSlice } from '../models/PlayerSlice';
56
+ import { PropertiesDeltas } from '../models/PropertiesDeltas';
57
+ import { PropertiesObject } from '../models/PropertiesObject';
45
58
  import { Purchase } from '../models/Purchase';
46
59
  import { Segment } from '../models/Segment';
47
60
  import { SegmentNotificationTarget } from '../models/SegmentNotificationTarget';
48
61
  import { StringMap } from '../models/StringMap';
62
+ import { SubscriptionObject } from '../models/SubscriptionObject';
63
+ import { TransferSubscriptionRequestBody } from '../models/TransferSubscriptionRequestBody';
49
64
  import { UpdateLiveActivityRequest } from '../models/UpdateLiveActivityRequest';
50
65
  import { UpdateLiveActivitySuccessResponse } from '../models/UpdateLiveActivitySuccessResponse';
51
66
  import { UpdatePlayerSuccessResponse } from '../models/UpdatePlayerSuccessResponse';
52
67
  import { UpdatePlayerTagsRequestBody } from '../models/UpdatePlayerTagsRequestBody';
53
68
  import { UpdatePlayerTagsSuccessResponse } from '../models/UpdatePlayerTagsSuccessResponse';
69
+ import { UpdateSubscriptionRequestBody } from '../models/UpdateSubscriptionRequestBody';
70
+ import { UpdateUserRequest } from '../models/UpdateUserRequest';
71
+ import { User } from '../models/User';
72
+ import { UserIdentityRequestBody } from '../models/UserIdentityRequestBody';
73
+ import { UserIdentityResponse } from '../models/UserIdentityResponse';
74
+ import { UserSubscriptionOptions } from '../models/UserSubscriptionOptions';
54
75
  import { ObservableDefaultApi } from './ObservableAPI';
55
76
 
56
77
  import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
@@ -129,6 +150,40 @@ export class PromiseDefaultApi {
129
150
  return result.toPromise();
130
151
  }
131
152
 
153
+ /**
154
+ * Creates a new Subscription under the User provided. Useful to add email addresses and SMS numbers to the User.
155
+ * @param appId
156
+ * @param aliasLabel
157
+ * @param aliasId
158
+ * @param createSubscriptionRequestBody
159
+ */
160
+ public createSubscription(appId: string, aliasLabel: string, aliasId: string, createSubscriptionRequestBody: CreateSubscriptionRequestBody, _options?: Configuration): Promise<InlineResponse201> {
161
+ const result = this.api.createSubscription(appId, aliasLabel, aliasId, createSubscriptionRequestBody, _options);
162
+ return result.toPromise();
163
+ }
164
+
165
+ /**
166
+ * Creates a User, optionally Subscriptions owned by the User as well as Aliases. Aliases provided in the payload will be used to look up an existing User.
167
+ * @param appId
168
+ * @param user
169
+ */
170
+ public createUser(appId: string, user: User, _options?: Configuration): Promise<User> {
171
+ const result = this.api.createUser(appId, user, _options);
172
+ return result.toPromise();
173
+ }
174
+
175
+ /**
176
+ * Deletes an alias by alias label
177
+ * @param appId
178
+ * @param aliasLabel
179
+ * @param aliasId
180
+ * @param aliasLabelToDelete
181
+ */
182
+ public deleteAlias(appId: string, aliasLabel: string, aliasId: string, aliasLabelToDelete: string, _options?: Configuration): Promise<InlineResponse200> {
183
+ const result = this.api.deleteAlias(appId, aliasLabel, aliasId, aliasLabelToDelete, _options);
184
+ return result.toPromise();
185
+ }
186
+
132
187
  /**
133
188
  * Delete player - Required: Used to delete a single, specific Player ID record from a specific OneSignal app.
134
189
  * Delete a user record
@@ -151,6 +206,27 @@ export class PromiseDefaultApi {
151
206
  return result.toPromise();
152
207
  }
153
208
 
209
+ /**
210
+ * Deletes the Subscription.
211
+ * @param appId
212
+ * @param subscriptionId
213
+ */
214
+ public deleteSubscription(appId: string, subscriptionId: string, _options?: Configuration): Promise<void> {
215
+ const result = this.api.deleteSubscription(appId, subscriptionId, _options);
216
+ return result.toPromise();
217
+ }
218
+
219
+ /**
220
+ * Removes the User identified by (:alias_label, :alias_id), and all Subscriptions and Aliases
221
+ * @param appId
222
+ * @param aliasLabel
223
+ * @param aliasId
224
+ */
225
+ public deleteUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<void> {
226
+ const result = this.api.deleteUser(appId, aliasLabel, aliasId, _options);
227
+ return result.toPromise();
228
+ }
229
+
154
230
  /**
155
231
  * Stops a Live Activity
156
232
  * Stop Live Activity
@@ -174,6 +250,38 @@ export class PromiseDefaultApi {
174
250
  return result.toPromise();
175
251
  }
176
252
 
253
+ /**
254
+ * Lists all Aliases for the User identified by :subscription_id.
255
+ * @param appId
256
+ * @param subscriptionId
257
+ */
258
+ public fetchAliases(appId: string, subscriptionId: string, _options?: Configuration): Promise<UserIdentityResponse> {
259
+ const result = this.api.fetchAliases(appId, subscriptionId, _options);
260
+ return result.toPromise();
261
+ }
262
+
263
+ /**
264
+ * Returns the User’s properties, Aliases, and Subscriptions.
265
+ * @param appId
266
+ * @param aliasLabel
267
+ * @param aliasId
268
+ */
269
+ public fetchUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<User> {
270
+ const result = this.api.fetchUser(appId, aliasLabel, aliasId, _options);
271
+ return result.toPromise();
272
+ }
273
+
274
+ /**
275
+ * Lists all Aliases for the User identified by (:alias_label, :alias_id).
276
+ * @param appId
277
+ * @param aliasLabel
278
+ * @param aliasId
279
+ */
280
+ public fetchUserIdentity(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<InlineResponse200> {
281
+ const result = this.api.fetchUserIdentity(appId, aliasLabel, aliasId, _options);
282
+ return result.toPromise();
283
+ }
284
+
177
285
  /**
178
286
  * View the details of a single OneSignal app
179
287
  * View an app
@@ -193,6 +301,16 @@ export class PromiseDefaultApi {
193
301
  return result.toPromise();
194
302
  }
195
303
 
304
+ /**
305
+ * Manifest of In-App Messages the Subscription is eligible to display by the SDK.
306
+ * @param appId
307
+ * @param subscriptionId
308
+ */
309
+ public getEligibleIams(appId: string, subscriptionId: string, _options?: Configuration): Promise<InlineResponse2003> {
310
+ const result = this.api.getEligibleIams(appId, subscriptionId, _options);
311
+ return result.toPromise();
312
+ }
313
+
196
314
  /**
197
315
  * View the details of a single notification and outcomes associated with it
198
316
  * View notification
@@ -267,6 +385,40 @@ export class PromiseDefaultApi {
267
385
  return result.toPromise();
268
386
  }
269
387
 
388
+ /**
389
+ * Upserts one or more Aliases to an existing User identified by (:alias_label, :alias_id).
390
+ * @param appId
391
+ * @param aliasLabel
392
+ * @param aliasId
393
+ * @param userIdentityRequestBody
394
+ */
395
+ public identifyUserByAlias(appId: string, aliasLabel: string, aliasId: string, userIdentityRequestBody: UserIdentityRequestBody, _options?: Configuration): Promise<InlineResponse200> {
396
+ const result = this.api.identifyUserByAlias(appId, aliasLabel, aliasId, userIdentityRequestBody, _options);
397
+ return result.toPromise();
398
+ }
399
+
400
+ /**
401
+ * Upserts one or more Aliases for the User identified by :subscription_id.
402
+ * @param appId
403
+ * @param subscriptionId
404
+ * @param userIdentityRequestBody
405
+ */
406
+ public identifyUserBySubscriptionId(appId: string, subscriptionId: string, userIdentityRequestBody: UserIdentityRequestBody, _options?: Configuration): Promise<UserIdentityResponse> {
407
+ const result = this.api.identifyUserBySubscriptionId(appId, subscriptionId, userIdentityRequestBody, _options);
408
+ return result.toPromise();
409
+ }
410
+
411
+ /**
412
+ * Transfers this Subscription to the User identified by the identity in the payload.
413
+ * @param appId
414
+ * @param subscriptionId
415
+ * @param transferSubscriptionRequestBody
416
+ */
417
+ public transferSubscription(appId: string, subscriptionId: string, transferSubscriptionRequestBody: TransferSubscriptionRequestBody, _options?: Configuration): Promise<UserIdentityResponse> {
418
+ const result = this.api.transferSubscription(appId, subscriptionId, transferSubscriptionRequestBody, _options);
419
+ return result.toPromise();
420
+ }
421
+
270
422
  /**
271
423
  * Updates the name or configuration settings of an existing OneSignal app
272
424
  * Update an app
@@ -313,6 +465,30 @@ export class PromiseDefaultApi {
313
465
  return result.toPromise();
314
466
  }
315
467
 
468
+ /**
469
+ * Updates an existing Subscription’s properties.
470
+ * @param appId
471
+ * @param subscriptionId
472
+ * @param updateSubscriptionRequestBody
473
+ */
474
+ public updateSubscription(appId: string, subscriptionId: string, updateSubscriptionRequestBody: UpdateSubscriptionRequestBody, _options?: Configuration): Promise<void> {
475
+ const result = this.api.updateSubscription(appId, subscriptionId, updateSubscriptionRequestBody, _options);
476
+ return result.toPromise();
477
+ }
478
+
479
+ /**
480
+ * Updates an existing User’s properties.
481
+ * @param appId
482
+ * @param aliasLabel
483
+ * @param aliasId
484
+ * @param updateUserRequest
485
+ * @param subscriptionId
486
+ */
487
+ public updateUser(appId: string, aliasLabel: string, aliasId: string, updateUserRequest: UpdateUserRequest, subscriptionId?: string, _options?: Configuration): Promise<InlineResponse202> {
488
+ const result = this.api.updateUser(appId, aliasLabel, aliasId, updateUserRequest, subscriptionId, _options);
489
+ return result.toPromise();
490
+ }
491
+
316
492
 
317
493
  }
318
494