@onesignal/node-onesignal 2.0.1-beta2 → 2.2.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 (149) hide show
  1. package/DefaultApi.md +2 -2
  2. package/apis/DefaultApi.ts +117 -0
  3. package/auth/auth.ts +2 -2
  4. package/dist/apis/DefaultApi.js +49 -5
  5. package/dist/apis/DefaultApi.js.map +1 -1
  6. package/dist/auth/auth.js +2 -2
  7. package/dist/auth/auth.js.map +1 -1
  8. package/dist/http/http.d.ts +1 -0
  9. package/dist/jest.config.d.ts +15 -0
  10. package/dist/jest.config.js +17 -0
  11. package/dist/jest.config.js.map +1 -0
  12. package/dist/models/BasicNotification.d.ts +1 -0
  13. package/dist/models/BasicNotification.js +6 -0
  14. package/dist/models/BasicNotification.js.map +1 -1
  15. package/dist/models/BasicNotificationAllOf.d.ts +1 -0
  16. package/dist/models/BasicNotificationAllOf.js +6 -0
  17. package/dist/models/BasicNotificationAllOf.js.map +1 -1
  18. package/dist/models/ExportSubscriptionsRequestBody.d.ts +19 -0
  19. package/dist/models/ExportSubscriptionsRequestBody.js +34 -0
  20. package/dist/models/ExportSubscriptionsRequestBody.js.map +1 -0
  21. package/dist/models/ExportSubscriptionsSuccessResponse.d.ts +17 -0
  22. package/dist/models/ExportSubscriptionsSuccessResponse.js +22 -0
  23. package/dist/models/ExportSubscriptionsSuccessResponse.js.map +1 -0
  24. package/dist/models/FilterExpression.d.ts +27 -0
  25. package/dist/models/FilterExpression.js +70 -0
  26. package/dist/models/FilterExpression.js.map +1 -0
  27. package/dist/models/GenericSuccessBoolResponse.d.ts +17 -0
  28. package/dist/models/GenericSuccessBoolResponse.js +22 -0
  29. package/dist/models/GenericSuccessBoolResponse.js.map +1 -0
  30. package/dist/models/GetNotificationHistoryRequestBody.d.ts +20 -0
  31. package/dist/models/GetNotificationHistoryRequestBody.js +34 -0
  32. package/dist/models/GetNotificationHistoryRequestBody.js.map +1 -0
  33. package/dist/models/GetSegmentsSuccessResponse.d.ts +21 -0
  34. package/dist/models/GetSegmentsSuccessResponse.js +40 -0
  35. package/dist/models/GetSegmentsSuccessResponse.js.map +1 -0
  36. package/dist/models/LanguageStringMap.d.ts +59 -0
  37. package/dist/models/LanguageStringMap.js +274 -0
  38. package/dist/models/LanguageStringMap.js.map +1 -0
  39. package/dist/models/Notification.d.ts +1 -0
  40. package/dist/models/Notification.js +6 -0
  41. package/dist/models/Notification.js.map +1 -1
  42. package/dist/models/NotificationWithMeta.d.ts +1 -0
  43. package/dist/models/NotificationWithMeta.js +6 -0
  44. package/dist/models/NotificationWithMeta.js.map +1 -1
  45. package/dist/models/ObjectSerializer.js.map +1 -1
  46. package/dist/models/PropertiesBody.d.ts +18 -0
  47. package/dist/models/PropertiesBody.js +22 -0
  48. package/dist/models/PropertiesBody.js.map +1 -0
  49. package/dist/models/RateLimitError.d.ts +18 -0
  50. package/dist/models/RateLimitError.js +28 -0
  51. package/dist/models/RateLimitError.js.map +1 -0
  52. package/dist/models/SegmentData.d.ts +23 -0
  53. package/dist/models/SegmentData.js +58 -0
  54. package/dist/models/SegmentData.js.map +1 -0
  55. package/dist/models/Subscription.d.ts +34 -0
  56. package/dist/models/Subscription.js +118 -0
  57. package/dist/models/Subscription.js.map +1 -0
  58. package/dist/models/SubscriptionBody.d.ts +18 -0
  59. package/dist/models/SubscriptionBody.js +22 -0
  60. package/dist/models/SubscriptionBody.js.map +1 -0
  61. package/dist/models/SubscriptionNotificationTarget.d.ts +30 -0
  62. package/dist/models/SubscriptionNotificationTarget.js +82 -0
  63. package/dist/models/SubscriptionNotificationTarget.js.map +1 -0
  64. package/dist/models/UserIdentityBody.d.ts +19 -0
  65. package/dist/models/UserIdentityBody.js +22 -0
  66. package/dist/models/UserIdentityBody.js.map +1 -0
  67. package/dist/models/WebButton.d.ts +20 -0
  68. package/dist/models/WebButton.js +40 -0
  69. package/dist/models/WebButton.js.map +1 -0
  70. package/dist/servers.js +1 -1
  71. package/dist/servers.js.map +1 -1
  72. package/dist/test/DefaultApi.test.d.ts +1 -0
  73. package/dist/test/DefaultApi.test.js +49 -0
  74. package/dist/test/DefaultApi.test.js.map +1 -0
  75. package/models/App.ts +1 -1
  76. package/models/BasicNotification.ts +12 -2
  77. package/models/BasicNotificationAllOf.ts +12 -2
  78. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
  79. package/models/BeginLiveActivityRequest.ts +1 -1
  80. package/models/Button.ts +1 -1
  81. package/models/CancelNotificationSuccessResponse.ts +1 -1
  82. package/models/CreateNotificationSuccessResponse.ts +1 -1
  83. package/models/CreatePlayerSuccessResponse.ts +1 -1
  84. package/models/CreateSegmentConflictResponse.ts +1 -1
  85. package/models/CreateSegmentSuccessResponse.ts +1 -1
  86. package/models/CreateSubscriptionRequestBody.ts +1 -1
  87. package/models/CreateUserConflictResponse.ts +1 -1
  88. package/models/CreateUserConflictResponseErrorsInner.ts +1 -1
  89. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +1 -1
  90. package/models/DeletePlayerNotFoundResponse.ts +1 -1
  91. package/models/DeletePlayerSuccessResponse.ts +1 -1
  92. package/models/DeleteSegmentNotFoundResponse.ts +1 -1
  93. package/models/DeleteSegmentSuccessResponse.ts +1 -1
  94. package/models/DeliveryData.ts +1 -1
  95. package/models/ExportEventsSuccessResponse.ts +1 -1
  96. package/models/ExportPlayersRequestBody.ts +1 -1
  97. package/models/ExportPlayersSuccessResponse.ts +1 -1
  98. package/models/Filter.ts +1 -1
  99. package/models/FilterExpressions.ts +1 -1
  100. package/models/GenericError.ts +1 -1
  101. package/models/GenericErrorErrorsInner.ts +1 -1
  102. package/models/GetNotificationRequestBody.ts +1 -1
  103. package/models/InlineResponse200.ts +1 -1
  104. package/models/InlineResponse2003.ts +1 -1
  105. package/models/InlineResponse201.ts +1 -1
  106. package/models/InlineResponse202.ts +1 -1
  107. package/models/InvalidIdentifierError.ts +1 -1
  108. package/models/Notification.ts +12 -2
  109. package/models/Notification200Errors.ts +1 -1
  110. package/models/NotificationAllOf.ts +1 -1
  111. package/models/NotificationHistorySuccessResponse.ts +1 -1
  112. package/models/NotificationSlice.ts +1 -1
  113. package/models/NotificationTarget.ts +1 -1
  114. package/models/NotificationWithMeta.ts +12 -2
  115. package/models/NotificationWithMetaAllOf.ts +1 -1
  116. package/models/ObjectSerializer.ts +4 -4
  117. package/models/Operator.ts +1 -1
  118. package/models/OutcomeData.ts +1 -1
  119. package/models/OutcomesData.ts +1 -1
  120. package/models/PlatformDeliveryData.ts +1 -1
  121. package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
  122. package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
  123. package/models/Player.ts +1 -1
  124. package/models/PlayerNotificationTarget.ts +1 -1
  125. package/models/PlayerNotificationTargetIncludeAliases.ts +1 -1
  126. package/models/PlayerSlice.ts +1 -1
  127. package/models/PropertiesDeltas.ts +1 -1
  128. package/models/PropertiesObject.ts +1 -1
  129. package/models/Purchase.ts +1 -1
  130. package/models/RateLimiterError.ts +1 -1
  131. package/models/Segment.ts +1 -1
  132. package/models/SegmentNotificationTarget.ts +1 -1
  133. package/models/StringMap.ts +1 -1
  134. package/models/SubscriptionObject.ts +1 -1
  135. package/models/TransferSubscriptionRequestBody.ts +1 -1
  136. package/models/UpdateLiveActivityRequest.ts +1 -1
  137. package/models/UpdateLiveActivitySuccessResponse.ts +1 -1
  138. package/models/UpdatePlayerSuccessResponse.ts +1 -1
  139. package/models/UpdatePlayerTagsRequestBody.ts +1 -1
  140. package/models/UpdatePlayerTagsSuccessResponse.ts +1 -1
  141. package/models/UpdateSubscriptionRequestBody.ts +1 -1
  142. package/models/UpdateUserRequest.ts +1 -1
  143. package/models/User.ts +1 -1
  144. package/models/UserIdentityRequestBody.ts +1 -1
  145. package/models/UserIdentityResponse.ts +1 -1
  146. package/models/UserSubscriptionOptions.ts +1 -1
  147. package/onesignal-node-onesignal-2.2.0-beta1.tgz +0 -0
  148. package/package.json +2 -2
  149. package/servers.ts +1 -1
@@ -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: 1.2.2
5
+ * API Version: 1.4.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -69,9 +69,13 @@ export class BasicNotificationAllOf {
69
69
  */
70
70
  'app_id'?: string;
71
71
  /**
72
- * 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
72
+ * [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
73
73
  */
74
74
  'external_id'?: string;
75
+ /**
76
+ * 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
77
+ */
78
+ 'idempotency_key'?: string;
75
79
  'contents'?: StringMap;
76
80
  'headings'?: StringMap;
77
81
  'subtitle'?: StringMap;
@@ -463,6 +467,12 @@ export class BasicNotificationAllOf {
463
467
  "type": "string",
464
468
  "format": ""
465
469
  },
470
+ {
471
+ "name": "idempotency_key",
472
+ "baseName": "idempotency_key",
473
+ "type": "string",
474
+ "format": ""
475
+ },
466
476
  {
467
477
  "name": "contents",
468
478
  "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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
package/models/Button.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -122,9 +122,13 @@ export class Notification {
122
122
  */
123
123
  'app_id': string;
124
124
  /**
125
- * 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
+ * [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
126
126
  */
127
127
  'external_id'?: string;
128
+ /**
129
+ * 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
130
+ */
131
+ 'idempotency_key'?: string;
128
132
  'contents'?: StringMap;
129
133
  'headings'?: StringMap;
130
134
  'subtitle'?: StringMap;
@@ -604,6 +608,12 @@ export class Notification {
604
608
  "type": "string",
605
609
  "format": ""
606
610
  },
611
+ {
612
+ "name": "idempotency_key",
613
+ "baseName": "idempotency_key",
614
+ "type": "string",
615
+ "format": ""
616
+ },
607
617
  {
608
618
  "name": "contents",
609
619
  "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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -126,9 +126,13 @@ export class NotificationWithMeta {
126
126
  */
127
127
  'app_id': string;
128
128
  /**
129
- * 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
129
+ * [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
130
130
  */
131
131
  'external_id'?: string;
132
+ /**
133
+ * 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
134
+ */
135
+ 'idempotency_key'?: string;
132
136
  'contents'?: StringMap;
133
137
  'headings'?: StringMap;
134
138
  'subtitle'?: StringMap;
@@ -642,6 +646,12 @@ export class NotificationWithMeta {
642
646
  "type": "string",
643
647
  "format": ""
644
648
  },
649
+ {
650
+ "name": "idempotency_key",
651
+ "baseName": "idempotency_key",
652
+ "type": "string",
653
+ "format": ""
654
+ },
645
655
  {
646
656
  "name": "contents",
647
657
  "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: 1.2.2
5
+ * API Version: 1.4.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -71,8 +71,8 @@ export * from './UserIdentityResponse';
71
71
  export * from './UserSubscriptionOptions';
72
72
 
73
73
  import { App , AppApnsEnvEnum } from './App';
74
- import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
75
- import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
74
+ import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
75
+ import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
76
76
  import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificationAllOfAndroidBackgroundLayout';
77
77
  import { BeginLiveActivityRequest } from './BeginLiveActivityRequest';
78
78
  import { Button } from './Button';
@@ -103,13 +103,13 @@ import { InlineResponse2003 } from './InlineResponse2003';
103
103
  import { InlineResponse201 } from './InlineResponse201';
104
104
  import { InlineResponse202 } from './InlineResponse202';
105
105
  import { InvalidIdentifierError } from './InvalidIdentifierError';
106
- import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
106
+ import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
107
107
  import { Notification200Errors } from './Notification200Errors';
108
108
  import { NotificationAllOf } from './NotificationAllOf';
109
109
  import { NotificationHistorySuccessResponse } from './NotificationHistorySuccessResponse';
110
110
  import { NotificationSlice } from './NotificationSlice';
111
111
  import { NotificationTarget , NotificationTargetTargetChannelEnum } from './NotificationTarget';
112
- import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
112
+ import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
113
113
  import { NotificationWithMetaAllOf } from './NotificationWithMetaAllOf';
114
114
  import { Operator, OperatorOperatorEnum } from './Operator';
115
115
  import { OutcomeData , OutcomeDataAggregationEnum } from './OutcomeData';
@@ -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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
package/models/Player.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.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: 1.2.2
5
+ * API Version: 1.4.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8