@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
 
55
76
  import { ObservableDefaultApi } from "./ObservableAPI";
56
77
  import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
@@ -133,6 +154,75 @@ export interface DefaultApiCreateSegmentsRequest {
133
154
  segment?: Segment
134
155
  }
135
156
 
157
+ export interface DefaultApiCreateSubscriptionRequest {
158
+ /**
159
+ *
160
+ * @type string
161
+ * @memberof DefaultApicreateSubscription
162
+ */
163
+ appId: string
164
+ /**
165
+ *
166
+ * @type string
167
+ * @memberof DefaultApicreateSubscription
168
+ */
169
+ aliasLabel: string
170
+ /**
171
+ *
172
+ * @type string
173
+ * @memberof DefaultApicreateSubscription
174
+ */
175
+ aliasId: string
176
+ /**
177
+ *
178
+ * @type CreateSubscriptionRequestBody
179
+ * @memberof DefaultApicreateSubscription
180
+ */
181
+ createSubscriptionRequestBody: CreateSubscriptionRequestBody
182
+ }
183
+
184
+ export interface DefaultApiCreateUserRequest {
185
+ /**
186
+ *
187
+ * @type string
188
+ * @memberof DefaultApicreateUser
189
+ */
190
+ appId: string
191
+ /**
192
+ *
193
+ * @type User
194
+ * @memberof DefaultApicreateUser
195
+ */
196
+ user: User
197
+ }
198
+
199
+ export interface DefaultApiDeleteAliasRequest {
200
+ /**
201
+ *
202
+ * @type string
203
+ * @memberof DefaultApideleteAlias
204
+ */
205
+ appId: string
206
+ /**
207
+ *
208
+ * @type string
209
+ * @memberof DefaultApideleteAlias
210
+ */
211
+ aliasLabel: string
212
+ /**
213
+ *
214
+ * @type string
215
+ * @memberof DefaultApideleteAlias
216
+ */
217
+ aliasId: string
218
+ /**
219
+ *
220
+ * @type string
221
+ * @memberof DefaultApideleteAlias
222
+ */
223
+ aliasLabelToDelete: string
224
+ }
225
+
136
226
  export interface DefaultApiDeletePlayerRequest {
137
227
  /**
138
228
  * The OneSignal App ID for your app. Available in Keys & IDs.
@@ -163,6 +253,42 @@ export interface DefaultApiDeleteSegmentsRequest {
163
253
  segmentId: string
164
254
  }
165
255
 
256
+ export interface DefaultApiDeleteSubscriptionRequest {
257
+ /**
258
+ *
259
+ * @type string
260
+ * @memberof DefaultApideleteSubscription
261
+ */
262
+ appId: string
263
+ /**
264
+ *
265
+ * @type string
266
+ * @memberof DefaultApideleteSubscription
267
+ */
268
+ subscriptionId: string
269
+ }
270
+
271
+ export interface DefaultApiDeleteUserRequest {
272
+ /**
273
+ *
274
+ * @type string
275
+ * @memberof DefaultApideleteUser
276
+ */
277
+ appId: string
278
+ /**
279
+ *
280
+ * @type string
281
+ * @memberof DefaultApideleteUser
282
+ */
283
+ aliasLabel: string
284
+ /**
285
+ *
286
+ * @type string
287
+ * @memberof DefaultApideleteUser
288
+ */
289
+ aliasId: string
290
+ }
291
+
166
292
  export interface DefaultApiEndLiveActivityRequest {
167
293
  /**
168
294
  * The OneSignal App ID for your app. Available in Keys & IDs.
@@ -199,6 +325,63 @@ export interface DefaultApiExportPlayersRequest {
199
325
  exportPlayersRequestBody?: ExportPlayersRequestBody
200
326
  }
201
327
 
328
+ export interface DefaultApiFetchAliasesRequest {
329
+ /**
330
+ *
331
+ * @type string
332
+ * @memberof DefaultApifetchAliases
333
+ */
334
+ appId: string
335
+ /**
336
+ *
337
+ * @type string
338
+ * @memberof DefaultApifetchAliases
339
+ */
340
+ subscriptionId: string
341
+ }
342
+
343
+ export interface DefaultApiFetchUserRequest {
344
+ /**
345
+ *
346
+ * @type string
347
+ * @memberof DefaultApifetchUser
348
+ */
349
+ appId: string
350
+ /**
351
+ *
352
+ * @type string
353
+ * @memberof DefaultApifetchUser
354
+ */
355
+ aliasLabel: string
356
+ /**
357
+ *
358
+ * @type string
359
+ * @memberof DefaultApifetchUser
360
+ */
361
+ aliasId: string
362
+ }
363
+
364
+ export interface DefaultApiFetchUserIdentityRequest {
365
+ /**
366
+ *
367
+ * @type string
368
+ * @memberof DefaultApifetchUserIdentity
369
+ */
370
+ appId: string
371
+ /**
372
+ *
373
+ * @type string
374
+ * @memberof DefaultApifetchUserIdentity
375
+ */
376
+ aliasLabel: string
377
+ /**
378
+ *
379
+ * @type string
380
+ * @memberof DefaultApifetchUserIdentity
381
+ */
382
+ aliasId: string
383
+ }
384
+
202
385
  export interface DefaultApiGetAppRequest {
203
386
  /**
204
387
  * An app id
@@ -211,6 +394,21 @@ export interface DefaultApiGetAppRequest {
211
394
  export interface DefaultApiGetAppsRequest {
212
395
  }
213
396
 
397
+ export interface DefaultApiGetEligibleIamsRequest {
398
+ /**
399
+ *
400
+ * @type string
401
+ * @memberof DefaultApigetEligibleIams
402
+ */
403
+ appId: string
404
+ /**
405
+ *
406
+ * @type string
407
+ * @memberof DefaultApigetEligibleIams
408
+ */
409
+ subscriptionId: string
410
+ }
411
+
214
412
  export interface DefaultApiGetNotificationRequest {
215
413
  /**
216
414
  *
@@ -349,6 +547,75 @@ export interface DefaultApiGetPlayersRequest {
349
547
  offset?: number
350
548
  }
351
549
 
550
+ export interface DefaultApiIdentifyUserByAliasRequest {
551
+ /**
552
+ *
553
+ * @type string
554
+ * @memberof DefaultApiidentifyUserByAlias
555
+ */
556
+ appId: string
557
+ /**
558
+ *
559
+ * @type string
560
+ * @memberof DefaultApiidentifyUserByAlias
561
+ */
562
+ aliasLabel: string
563
+ /**
564
+ *
565
+ * @type string
566
+ * @memberof DefaultApiidentifyUserByAlias
567
+ */
568
+ aliasId: string
569
+ /**
570
+ *
571
+ * @type UserIdentityRequestBody
572
+ * @memberof DefaultApiidentifyUserByAlias
573
+ */
574
+ userIdentityRequestBody: UserIdentityRequestBody
575
+ }
576
+
577
+ export interface DefaultApiIdentifyUserBySubscriptionIdRequest {
578
+ /**
579
+ *
580
+ * @type string
581
+ * @memberof DefaultApiidentifyUserBySubscriptionId
582
+ */
583
+ appId: string
584
+ /**
585
+ *
586
+ * @type string
587
+ * @memberof DefaultApiidentifyUserBySubscriptionId
588
+ */
589
+ subscriptionId: string
590
+ /**
591
+ *
592
+ * @type UserIdentityRequestBody
593
+ * @memberof DefaultApiidentifyUserBySubscriptionId
594
+ */
595
+ userIdentityRequestBody: UserIdentityRequestBody
596
+ }
597
+
598
+ export interface DefaultApiTransferSubscriptionRequest {
599
+ /**
600
+ *
601
+ * @type string
602
+ * @memberof DefaultApitransferSubscription
603
+ */
604
+ appId: string
605
+ /**
606
+ *
607
+ * @type string
608
+ * @memberof DefaultApitransferSubscription
609
+ */
610
+ subscriptionId: string
611
+ /**
612
+ *
613
+ * @type TransferSubscriptionRequestBody
614
+ * @memberof DefaultApitransferSubscription
615
+ */
616
+ transferSubscriptionRequestBody: TransferSubscriptionRequestBody
617
+ }
618
+
352
619
  export interface DefaultApiUpdateAppRequest {
353
620
  /**
354
621
  * An app id
@@ -421,6 +688,60 @@ export interface DefaultApiUpdatePlayerTagsRequest {
421
688
  updatePlayerTagsRequestBody?: UpdatePlayerTagsRequestBody
422
689
  }
423
690
 
691
+ export interface DefaultApiUpdateSubscriptionRequest {
692
+ /**
693
+ *
694
+ * @type string
695
+ * @memberof DefaultApiupdateSubscription
696
+ */
697
+ appId: string
698
+ /**
699
+ *
700
+ * @type string
701
+ * @memberof DefaultApiupdateSubscription
702
+ */
703
+ subscriptionId: string
704
+ /**
705
+ *
706
+ * @type UpdateSubscriptionRequestBody
707
+ * @memberof DefaultApiupdateSubscription
708
+ */
709
+ updateSubscriptionRequestBody: UpdateSubscriptionRequestBody
710
+ }
711
+
712
+ export interface DefaultApiUpdateUserRequest {
713
+ /**
714
+ *
715
+ * @type string
716
+ * @memberof DefaultApiupdateUser
717
+ */
718
+ appId: string
719
+ /**
720
+ *
721
+ * @type string
722
+ * @memberof DefaultApiupdateUser
723
+ */
724
+ aliasLabel: string
725
+ /**
726
+ *
727
+ * @type string
728
+ * @memberof DefaultApiupdateUser
729
+ */
730
+ aliasId: string
731
+ /**
732
+ *
733
+ * @type UpdateUserRequest
734
+ * @memberof DefaultApiupdateUser
735
+ */
736
+ updateUserRequest: UpdateUserRequest
737
+ /**
738
+ *
739
+ * @type string
740
+ * @memberof DefaultApiupdateUser
741
+ */
742
+ subscriptionId?: string
743
+ }
744
+
424
745
  export class ObjectDefaultApi {
425
746
  private api: ObservableDefaultApi
426
747
 
@@ -482,6 +803,30 @@ export class ObjectDefaultApi {
482
803
  return this.api.createSegments(param.appId, param.segment, options).toPromise();
483
804
  }
484
805
 
806
+ /**
807
+ * Creates a new Subscription under the User provided. Useful to add email addresses and SMS numbers to the User.
808
+ * @param param the request object
809
+ */
810
+ public createSubscription(param: DefaultApiCreateSubscriptionRequest, options?: Configuration): Promise<InlineResponse201> {
811
+ return this.api.createSubscription(param.appId, param.aliasLabel, param.aliasId, param.createSubscriptionRequestBody, options).toPromise();
812
+ }
813
+
814
+ /**
815
+ * 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.
816
+ * @param param the request object
817
+ */
818
+ public createUser(param: DefaultApiCreateUserRequest, options?: Configuration): Promise<User> {
819
+ return this.api.createUser(param.appId, param.user, options).toPromise();
820
+ }
821
+
822
+ /**
823
+ * Deletes an alias by alias label
824
+ * @param param the request object
825
+ */
826
+ public deleteAlias(param: DefaultApiDeleteAliasRequest, options?: Configuration): Promise<InlineResponse200> {
827
+ return this.api.deleteAlias(param.appId, param.aliasLabel, param.aliasId, param.aliasLabelToDelete, options).toPromise();
828
+ }
829
+
485
830
  /**
486
831
  * Delete player - Required: Used to delete a single, specific Player ID record from a specific OneSignal app.
487
832
  * Delete a user record
@@ -500,6 +845,22 @@ export class ObjectDefaultApi {
500
845
  return this.api.deleteSegments(param.appId, param.segmentId, options).toPromise();
501
846
  }
502
847
 
848
+ /**
849
+ * Deletes the Subscription.
850
+ * @param param the request object
851
+ */
852
+ public deleteSubscription(param: DefaultApiDeleteSubscriptionRequest, options?: Configuration): Promise<void> {
853
+ return this.api.deleteSubscription(param.appId, param.subscriptionId, options).toPromise();
854
+ }
855
+
856
+ /**
857
+ * Removes the User identified by (:alias_label, :alias_id), and all Subscriptions and Aliases
858
+ * @param param the request object
859
+ */
860
+ public deleteUser(param: DefaultApiDeleteUserRequest, options?: Configuration): Promise<void> {
861
+ return this.api.deleteUser(param.appId, param.aliasLabel, param.aliasId, options).toPromise();
862
+ }
863
+
503
864
  /**
504
865
  * Stops a Live Activity
505
866
  * Stop Live Activity
@@ -518,6 +879,30 @@ export class ObjectDefaultApi {
518
879
  return this.api.exportPlayers(param.appId, param.exportPlayersRequestBody, options).toPromise();
519
880
  }
520
881
 
882
+ /**
883
+ * Lists all Aliases for the User identified by :subscription_id.
884
+ * @param param the request object
885
+ */
886
+ public fetchAliases(param: DefaultApiFetchAliasesRequest, options?: Configuration): Promise<UserIdentityResponse> {
887
+ return this.api.fetchAliases(param.appId, param.subscriptionId, options).toPromise();
888
+ }
889
+
890
+ /**
891
+ * Returns the User’s properties, Aliases, and Subscriptions.
892
+ * @param param the request object
893
+ */
894
+ public fetchUser(param: DefaultApiFetchUserRequest, options?: Configuration): Promise<User> {
895
+ return this.api.fetchUser(param.appId, param.aliasLabel, param.aliasId, options).toPromise();
896
+ }
897
+
898
+ /**
899
+ * Lists all Aliases for the User identified by (:alias_label, :alias_id).
900
+ * @param param the request object
901
+ */
902
+ public fetchUserIdentity(param: DefaultApiFetchUserIdentityRequest, options?: Configuration): Promise<InlineResponse200> {
903
+ return this.api.fetchUserIdentity(param.appId, param.aliasLabel, param.aliasId, options).toPromise();
904
+ }
905
+
521
906
  /**
522
907
  * View the details of a single OneSignal app
523
908
  * View an app
@@ -536,6 +921,14 @@ export class ObjectDefaultApi {
536
921
  return this.api.getApps( options).toPromise();
537
922
  }
538
923
 
924
+ /**
925
+ * Manifest of In-App Messages the Subscription is eligible to display by the SDK.
926
+ * @param param the request object
927
+ */
928
+ public getEligibleIams(param: DefaultApiGetEligibleIamsRequest, options?: Configuration): Promise<InlineResponse2003> {
929
+ return this.api.getEligibleIams(param.appId, param.subscriptionId, options).toPromise();
930
+ }
931
+
539
932
  /**
540
933
  * View the details of a single notification and outcomes associated with it
541
934
  * View notification
@@ -590,6 +983,30 @@ export class ObjectDefaultApi {
590
983
  return this.api.getPlayers(param.appId, param.limit, param.offset, options).toPromise();
591
984
  }
592
985
 
986
+ /**
987
+ * Upserts one or more Aliases to an existing User identified by (:alias_label, :alias_id).
988
+ * @param param the request object
989
+ */
990
+ public identifyUserByAlias(param: DefaultApiIdentifyUserByAliasRequest, options?: Configuration): Promise<InlineResponse200> {
991
+ return this.api.identifyUserByAlias(param.appId, param.aliasLabel, param.aliasId, param.userIdentityRequestBody, options).toPromise();
992
+ }
993
+
994
+ /**
995
+ * Upserts one or more Aliases for the User identified by :subscription_id.
996
+ * @param param the request object
997
+ */
998
+ public identifyUserBySubscriptionId(param: DefaultApiIdentifyUserBySubscriptionIdRequest, options?: Configuration): Promise<UserIdentityResponse> {
999
+ return this.api.identifyUserBySubscriptionId(param.appId, param.subscriptionId, param.userIdentityRequestBody, options).toPromise();
1000
+ }
1001
+
1002
+ /**
1003
+ * Transfers this Subscription to the User identified by the identity in the payload.
1004
+ * @param param the request object
1005
+ */
1006
+ public transferSubscription(param: DefaultApiTransferSubscriptionRequest, options?: Configuration): Promise<UserIdentityResponse> {
1007
+ return this.api.transferSubscription(param.appId, param.subscriptionId, param.transferSubscriptionRequestBody, options).toPromise();
1008
+ }
1009
+
593
1010
  /**
594
1011
  * Updates the name or configuration settings of an existing OneSignal app
595
1012
  * Update an app
@@ -626,4 +1043,20 @@ export class ObjectDefaultApi {
626
1043
  return this.api.updatePlayerTags(param.appId, param.externalUserId, param.updatePlayerTagsRequestBody, options).toPromise();
627
1044
  }
628
1045
 
1046
+ /**
1047
+ * Updates an existing Subscription’s properties.
1048
+ * @param param the request object
1049
+ */
1050
+ public updateSubscription(param: DefaultApiUpdateSubscriptionRequest, options?: Configuration): Promise<void> {
1051
+ return this.api.updateSubscription(param.appId, param.subscriptionId, param.updateSubscriptionRequestBody, options).toPromise();
1052
+ }
1053
+
1054
+ /**
1055
+ * Updates an existing User’s properties.
1056
+ * @param param the request object
1057
+ */
1058
+ public updateUser(param: DefaultApiUpdateUserRequest, options?: Configuration): Promise<InlineResponse202> {
1059
+ return this.api.updateUser(param.appId, param.aliasLabel, param.aliasId, param.updateUserRequest, param.subscriptionId, options).toPromise();
1060
+ }
1061
+
629
1062
  }