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

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 (200) hide show
  1. package/.github/ISSUE_TEMPLATE/ask-question.yml +3 -3
  2. package/.github/ISSUE_TEMPLATE/bug-report.yml +2 -2
  3. package/.github/ISSUE_TEMPLATE/general-feedback.yml +3 -3
  4. package/.github/workflows/project.yml +17 -0
  5. package/DefaultApi.md +5 -5
  6. package/README.md +4 -4
  7. package/apis/DefaultApi.ts +40 -34
  8. package/auth/auth.ts +16 -16
  9. package/configuration.ts +5 -5
  10. package/dist/apis/DefaultApi.js +46 -39
  11. package/dist/apis/DefaultApi.js.map +1 -1
  12. package/dist/auth/auth.d.ts +4 -4
  13. package/dist/auth/auth.js +20 -20
  14. package/dist/auth/auth.js.map +1 -1
  15. package/dist/configuration.d.ts +1 -1
  16. package/dist/configuration.js +4 -4
  17. package/dist/configuration.js.map +1 -1
  18. package/dist/http/http.d.ts +1 -0
  19. package/dist/http/isomorphic-fetch.js +1 -2
  20. package/dist/http/isomorphic-fetch.js.map +1 -1
  21. package/dist/models/BasicNotification.d.ts +1 -0
  22. package/dist/models/BasicNotification.js +6 -0
  23. package/dist/models/BasicNotification.js.map +1 -1
  24. package/dist/models/BasicNotificationAllOf.d.ts +1 -0
  25. package/dist/models/BasicNotificationAllOf.js +6 -0
  26. package/dist/models/BasicNotificationAllOf.js.map +1 -1
  27. package/dist/models/BeginLiveActivityRequest.d.ts +18 -0
  28. package/dist/models/BeginLiveActivityRequest.js +28 -0
  29. package/dist/models/BeginLiveActivityRequest.js.map +1 -0
  30. package/dist/models/CancelNotificationSuccessResponse.d.ts +17 -0
  31. package/dist/models/CancelNotificationSuccessResponse.js +22 -0
  32. package/dist/models/CancelNotificationSuccessResponse.js.map +1 -0
  33. package/dist/models/CreatePlayerSuccessResponse.d.ts +18 -0
  34. package/dist/models/CreatePlayerSuccessResponse.js +28 -0
  35. package/dist/models/CreatePlayerSuccessResponse.js.map +1 -0
  36. package/dist/models/CreateSubscriptionRequestBody.d.ts +19 -0
  37. package/dist/models/CreateSubscriptionRequestBody.js +28 -0
  38. package/dist/models/CreateSubscriptionRequestBody.js.map +1 -0
  39. package/dist/models/DeletePlayerNotFoundResponse.d.ts +17 -0
  40. package/dist/models/DeletePlayerNotFoundResponse.js +22 -0
  41. package/dist/models/DeletePlayerNotFoundResponse.js.map +1 -0
  42. package/dist/models/DeletePlayerSuccessResponse.d.ts +17 -0
  43. package/dist/models/DeletePlayerSuccessResponse.js +22 -0
  44. package/dist/models/DeletePlayerSuccessResponse.js.map +1 -0
  45. package/dist/models/DeleteSegmentNotFoundResponse.d.ts +17 -0
  46. package/dist/models/DeleteSegmentNotFoundResponse.js +22 -0
  47. package/dist/models/DeleteSegmentNotFoundResponse.js.map +1 -0
  48. package/dist/models/DeleteSegmentSuccessResponse.d.ts +17 -0
  49. package/dist/models/DeleteSegmentSuccessResponse.js +22 -0
  50. package/dist/models/DeleteSegmentSuccessResponse.js.map +1 -0
  51. package/dist/models/ExportPlayersRequestBody.d.ts +19 -0
  52. package/dist/models/ExportPlayersRequestBody.js +34 -0
  53. package/dist/models/ExportPlayersRequestBody.js.map +1 -0
  54. package/dist/models/ExportPlayersSuccessResponse.d.ts +17 -0
  55. package/dist/models/ExportPlayersSuccessResponse.js +22 -0
  56. package/dist/models/ExportPlayersSuccessResponse.js.map +1 -0
  57. package/dist/models/FilterExpressions.d.ts +23 -0
  58. package/dist/models/FilterExpressions.js +46 -0
  59. package/dist/models/FilterExpressions.js.map +1 -0
  60. package/dist/models/GetNotificationRequestBody.d.ts +20 -0
  61. package/dist/models/GetNotificationRequestBody.js +34 -0
  62. package/dist/models/GetNotificationRequestBody.js.map +1 -0
  63. package/dist/models/InlineResponse200.d.ts +19 -0
  64. package/dist/models/InlineResponse200.js +22 -0
  65. package/dist/models/InlineResponse200.js.map +1 -0
  66. package/dist/models/InlineResponse2003.d.ts +17 -0
  67. package/dist/models/InlineResponse2003.js +22 -0
  68. package/dist/models/InlineResponse2003.js.map +1 -0
  69. package/dist/models/InlineResponse201.d.ts +18 -0
  70. package/dist/models/InlineResponse201.js +22 -0
  71. package/dist/models/InlineResponse201.js.map +1 -0
  72. package/dist/models/InlineResponse202.d.ts +18 -0
  73. package/dist/models/InlineResponse202.js +22 -0
  74. package/dist/models/InlineResponse202.js.map +1 -0
  75. package/dist/models/InvalidIdentifierError.d.ts +1 -1
  76. package/dist/models/InvalidIdentifierError.js +2 -2
  77. package/dist/models/InvalidIdentifierError.js.map +1 -1
  78. package/dist/models/Notification.d.ts +1 -0
  79. package/dist/models/Notification.js +6 -0
  80. package/dist/models/Notification.js.map +1 -1
  81. package/dist/models/Notification200Errors.d.ts +18 -0
  82. package/dist/models/Notification200Errors.js +28 -0
  83. package/dist/models/Notification200Errors.js.map +1 -0
  84. package/dist/models/NotificationWithMeta.d.ts +1 -0
  85. package/dist/models/NotificationWithMeta.js +6 -0
  86. package/dist/models/NotificationWithMeta.js.map +1 -1
  87. package/dist/models/ObjectSerializer.d.ts +0 -1
  88. package/dist/models/ObjectSerializer.js +0 -3
  89. package/dist/models/ObjectSerializer.js.map +1 -1
  90. package/dist/models/Player.d.ts +43 -0
  91. package/dist/models/Player.js +178 -0
  92. package/dist/models/Player.js.map +1 -0
  93. package/dist/models/PlayerNotificationTarget.d.ts +30 -0
  94. package/dist/models/PlayerNotificationTarget.js +88 -0
  95. package/dist/models/PlayerNotificationTarget.js.map +1 -0
  96. package/dist/models/PlayerNotificationTargetIncludeAliases.d.ts +17 -0
  97. package/dist/models/PlayerNotificationTargetIncludeAliases.js +22 -0
  98. package/dist/models/PlayerNotificationTargetIncludeAliases.js.map +1 -0
  99. package/dist/models/PlayerSlice.d.ts +21 -0
  100. package/dist/models/PlayerSlice.js +40 -0
  101. package/dist/models/PlayerSlice.js.map +1 -0
  102. package/dist/models/StringMap.d.ts +59 -0
  103. package/dist/models/StringMap.js +274 -0
  104. package/dist/models/StringMap.js.map +1 -0
  105. package/dist/models/SubscriptionObject.d.ts +34 -0
  106. package/dist/models/SubscriptionObject.js +118 -0
  107. package/dist/models/SubscriptionObject.js.map +1 -0
  108. package/dist/models/UpdatePlayerSuccessResponse.d.ts +17 -0
  109. package/dist/models/UpdatePlayerSuccessResponse.js +22 -0
  110. package/dist/models/UpdatePlayerSuccessResponse.js.map +1 -0
  111. package/dist/models/UpdatePlayerTagsRequestBody.d.ts +17 -0
  112. package/dist/models/UpdatePlayerTagsRequestBody.js +22 -0
  113. package/dist/models/UpdatePlayerTagsRequestBody.js.map +1 -0
  114. package/dist/models/UpdatePlayerTagsSuccessResponse.d.ts +17 -0
  115. package/dist/models/UpdatePlayerTagsSuccessResponse.js +22 -0
  116. package/dist/models/UpdatePlayerTagsSuccessResponse.js.map +1 -0
  117. package/dist/models/UpdateSubscriptionRequestBody.d.ts +18 -0
  118. package/dist/models/UpdateSubscriptionRequestBody.js +22 -0
  119. package/dist/models/UpdateSubscriptionRequestBody.js.map +1 -0
  120. package/dist/models/UserIdentityRequestBody.d.ts +19 -0
  121. package/dist/models/UserIdentityRequestBody.js +22 -0
  122. package/dist/models/UserIdentityRequestBody.js.map +1 -0
  123. package/dist/models/UserIdentityResponse.d.ts +19 -0
  124. package/dist/models/UserIdentityResponse.js +22 -0
  125. package/dist/models/UserIdentityResponse.js.map +1 -0
  126. package/dist/models/UserSubscriptionOptions.d.ts +17 -0
  127. package/dist/models/UserSubscriptionOptions.js +22 -0
  128. package/dist/models/UserSubscriptionOptions.js.map +1 -0
  129. package/dist/models/all.d.ts +0 -1
  130. package/dist/models/all.js +0 -1
  131. package/dist/models/all.js.map +1 -1
  132. package/dist/test.d.ts +1 -0
  133. package/dist/test.js +60 -0
  134. package/dist/test.js.map +1 -0
  135. package/dist/types/ObjectParamAPI.js.map +1 -1
  136. package/dist/types/ObservableAPI.js.map +1 -1
  137. package/dist/types/PromiseAPI.js.map +1 -1
  138. package/http/isomorphic-fetch.ts +0 -1
  139. package/models/App.ts +1 -1
  140. package/models/BasicNotification.ts +12 -2
  141. package/models/BasicNotificationAllOf.ts +12 -2
  142. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
  143. package/models/Button.ts +1 -1
  144. package/models/CreateNotificationSuccessResponse.ts +1 -1
  145. package/models/CreateSegmentConflictResponse.ts +1 -1
  146. package/models/CreateSegmentSuccessResponse.ts +1 -1
  147. package/models/CreateUserConflictResponse.ts +1 -1
  148. package/models/CreateUserConflictResponseErrorsInner.ts +1 -1
  149. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +1 -1
  150. package/models/DeliveryData.ts +1 -1
  151. package/models/ExportEventsSuccessResponse.ts +1 -1
  152. package/models/ExportSubscriptionsRequestBody.ts +1 -1
  153. package/models/ExportSubscriptionsSuccessResponse.ts +1 -1
  154. package/models/Filter.ts +1 -1
  155. package/models/FilterExpression.ts +1 -1
  156. package/models/GenericError.ts +1 -1
  157. package/models/GenericSuccessBoolResponse.ts +1 -1
  158. package/models/GetNotificationHistoryRequestBody.ts +1 -1
  159. package/models/GetSegmentsSuccessResponse.ts +1 -1
  160. package/models/LanguageStringMap.ts +1 -1
  161. package/models/Notification.ts +12 -2
  162. package/models/NotificationAllOf.ts +1 -1
  163. package/models/NotificationHistorySuccessResponse.ts +1 -1
  164. package/models/NotificationSlice.ts +1 -1
  165. package/models/NotificationTarget.ts +1 -1
  166. package/models/NotificationWithMeta.ts +12 -2
  167. package/models/NotificationWithMetaAllOf.ts +1 -1
  168. package/models/ObjectSerializer.ts +4 -7
  169. package/models/Operator.ts +1 -1
  170. package/models/OutcomeData.ts +1 -1
  171. package/models/OutcomesData.ts +1 -1
  172. package/models/PlatformDeliveryData.ts +1 -1
  173. package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
  174. package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
  175. package/models/PropertiesBody.ts +1 -1
  176. package/models/PropertiesDeltas.ts +1 -1
  177. package/models/PropertiesObject.ts +1 -1
  178. package/models/Purchase.ts +1 -1
  179. package/models/RateLimitError.ts +1 -1
  180. package/models/Segment.ts +1 -1
  181. package/models/SegmentData.ts +1 -1
  182. package/models/SegmentNotificationTarget.ts +1 -1
  183. package/models/Subscription.ts +1 -1
  184. package/models/SubscriptionBody.ts +1 -1
  185. package/models/SubscriptionNotificationTarget.ts +1 -1
  186. package/models/TransferSubscriptionRequestBody.ts +1 -1
  187. package/models/UpdateLiveActivityRequest.ts +1 -1
  188. package/models/UpdateLiveActivitySuccessResponse.ts +1 -1
  189. package/models/UpdateUserRequest.ts +1 -1
  190. package/models/User.ts +1 -1
  191. package/models/UserIdentityBody.ts +1 -1
  192. package/models/WebButton.ts +1 -1
  193. package/models/all.ts +0 -1
  194. package/onesignal-node-onesignal-5.1.0-beta1.tgz +0 -0
  195. package/package.json +2 -4
  196. package/types/ObjectParamAPI.ts +0 -1
  197. package/types/ObservableAPI.ts +0 -1
  198. package/types/PromiseAPI.ts +0 -1
  199. package/models/InvalidIdentifierError.ts +0 -44
  200. package/models/RateLimiterError.ts +0 -32
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
package/models/Filter.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -117,9 +117,13 @@ export class Notification {
117
117
  */
118
118
  'app_id': string;
119
119
  /**
120
- * Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
120
+ * [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
121
121
  */
122
122
  'external_id'?: string;
123
+ /**
124
+ * Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true
125
+ */
126
+ 'idempotency_key'?: string;
123
127
  'contents'?: LanguageStringMap;
124
128
  'headings'?: LanguageStringMap;
125
129
  'subtitle'?: LanguageStringMap;
@@ -595,6 +599,12 @@ export class Notification {
595
599
  "type": "string",
596
600
  "format": ""
597
601
  },
602
+ {
603
+ "name": "idempotency_key",
604
+ "baseName": "idempotency_key",
605
+ "type": "string",
606
+ "format": ""
607
+ },
598
608
  {
599
609
  "name": "contents",
600
610
  "baseName": "contents",
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -121,9 +121,13 @@ export class NotificationWithMeta {
121
121
  */
122
122
  'app_id': string;
123
123
  /**
124
- * Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
124
+ * [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
125
125
  */
126
126
  'external_id'?: string;
127
+ /**
128
+ * Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true
129
+ */
130
+ 'idempotency_key'?: string;
127
131
  'contents'?: LanguageStringMap;
128
132
  'headings'?: LanguageStringMap;
129
133
  'subtitle'?: LanguageStringMap;
@@ -633,6 +637,12 @@ export class NotificationWithMeta {
633
637
  "type": "string",
634
638
  "format": ""
635
639
  },
640
+ {
641
+ "name": "idempotency_key",
642
+ "baseName": "idempotency_key",
643
+ "type": "string",
644
+ "format": ""
645
+ },
636
646
  {
637
647
  "name": "contents",
638
648
  "baseName": "contents",
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -19,7 +19,6 @@ export * from './GenericError';
19
19
  export * from './GenericSuccessBoolResponse';
20
20
  export * from './GetNotificationHistoryRequestBody';
21
21
  export * from './GetSegmentsSuccessResponse';
22
- export * from './InvalidIdentifierError';
23
22
  export * from './LanguageStringMap';
24
23
  export * from './Notification';
25
24
  export * from './NotificationAllOf';
@@ -54,8 +53,8 @@ export * from './UserIdentityBody';
54
53
  export * from './WebButton';
55
54
 
56
55
  import { App , AppApnsEnvEnum } from './App';
57
- import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
58
- import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
56
+ import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
57
+ import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
59
58
  import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificationAllOfAndroidBackgroundLayout';
60
59
  import { Button } from './Button';
61
60
  import { CreateNotificationSuccessResponse } from './CreateNotificationSuccessResponse';
@@ -74,14 +73,13 @@ import { GenericError } from './GenericError';
74
73
  import { GenericSuccessBoolResponse } from './GenericSuccessBoolResponse';
75
74
  import { GetNotificationHistoryRequestBody, GetNotificationHistoryRequestBodyEventsEnum } from './GetNotificationHistoryRequestBody';
76
75
  import { GetSegmentsSuccessResponse } from './GetSegmentsSuccessResponse';
77
- import { InvalidIdentifierError } from './InvalidIdentifierError';
78
76
  import { LanguageStringMap } from './LanguageStringMap';
79
- import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
77
+ import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
80
78
  import { NotificationAllOf } from './NotificationAllOf';
81
79
  import { NotificationHistorySuccessResponse } from './NotificationHistorySuccessResponse';
82
80
  import { NotificationSlice } from './NotificationSlice';
83
81
  import { NotificationTarget , NotificationTargetTargetChannelEnum } from './NotificationTarget';
84
- import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
82
+ import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
85
83
  import { NotificationWithMetaAllOf } from './NotificationWithMetaAllOf';
86
84
  import { Operator, OperatorOperatorEnum } from './Operator';
87
85
  import { OutcomeData , OutcomeDataAggregationEnum } from './OutcomeData';
@@ -170,7 +168,6 @@ let typeMap: {[index: string]: any} = {
170
168
  "GenericSuccessBoolResponse": GenericSuccessBoolResponse,
171
169
  "GetNotificationHistoryRequestBody": GetNotificationHistoryRequestBody,
172
170
  "GetSegmentsSuccessResponse": GetSegmentsSuccessResponse,
173
- "InvalidIdentifierError": InvalidIdentifierError,
174
171
  "LanguageStringMap": LanguageStringMap,
175
172
  "Notification": Notification,
176
173
  "NotificationAllOf": NotificationAllOf,
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
package/models/Segment.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
package/models/User.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.0-alpha-01
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
package/models/all.ts CHANGED
@@ -19,7 +19,6 @@ export * from './GenericError'
19
19
  export * from './GenericSuccessBoolResponse'
20
20
  export * from './GetNotificationHistoryRequestBody'
21
21
  export * from './GetSegmentsSuccessResponse'
22
- export * from './InvalidIdentifierError'
23
22
  export * from './LanguageStringMap'
24
23
  export * from './Notification'
25
24
  export * from './NotificationAllOf'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesignal/node-onesignal",
3
- "version": "5.0.0-alpha-01",
3
+ "version": "5.1.0-beta1",
4
4
  "description": "OpenAPI client for @onesignal/node-onesignal",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -21,12 +21,10 @@
21
21
  "prepare": "npm run build"
22
22
  },
23
23
  "dependencies": {
24
- "@types/node": "^20.12.8",
25
- "@types/node-fetch": "^2.5.7",
24
+ "@types/node": "^22.15.30",
26
25
  "btoa": "^1.2.1",
27
26
  "es6-promise": "^4.2.4",
28
27
  "form-data": "^2.5.0",
29
- "node-fetch": "^2.6.0",
30
28
  "url-parse": "^1.4.3"
31
29
  },
32
30
  "devDependencies": {
@@ -23,7 +23,6 @@ import { GenericError } from '../models/GenericError';
23
23
  import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse';
24
24
  import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody';
25
25
  import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse';
26
- import { InvalidIdentifierError } from '../models/InvalidIdentifierError';
27
26
  import { LanguageStringMap } from '../models/LanguageStringMap';
28
27
  import { Notification } from '../models/Notification';
29
28
  import { NotificationAllOf } from '../models/NotificationAllOf';
@@ -24,7 +24,6 @@ import { GenericError } from '../models/GenericError';
24
24
  import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse';
25
25
  import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody';
26
26
  import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse';
27
- import { InvalidIdentifierError } from '../models/InvalidIdentifierError';
28
27
  import { LanguageStringMap } from '../models/LanguageStringMap';
29
28
  import { Notification } from '../models/Notification';
30
29
  import { NotificationAllOf } from '../models/NotificationAllOf';