Skip to content

Commit 46ba07a

Browse files
author
OneSignal
committed
feat: add v2.2.0 package updates
1 parent 15763ad commit 46ba07a

File tree

97 files changed

+386
-240
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+386
-240
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# onesignal-java-client
22

33
OneSignal
4-
- API version: 1.3.0
5-
- Build date: 2025-01-16T19:49:36.601Z[Etc/UTC]
4+
- API version: 1.4.0
5+
- Build date: 2025-02-20T21:54:45.185Z[Etc/UTC]
66

77
A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
88

@@ -41,7 +41,7 @@ Add this dependency to your project's POM:
4141
<dependency>
4242
<groupId>org.openapitools</groupId>
4343
<artifactId>onesignal-java-client</artifactId>
44-
<version>1.3.0</version>
44+
<version>1.4.0</version>
4545
<scope>compile</scope>
4646
</dependency>
4747
```
@@ -57,7 +57,7 @@ Add this dependency to your project's build file:
5757
}
5858
5959
dependencies {
60-
implementation "org.openapitools:onesignal-java-client:1.3.0"
60+
implementation "org.openapitools:onesignal-java-client:1.4.0"
6161
}
6262
```
6363

@@ -71,7 +71,7 @@ mvn clean package
7171

7272
Then manually install the following JARs:
7373

74-
* `target/onesignal-java-client-1.3.0.jar`
74+
* `target/onesignal-java-client-1.4.0.jar`
7575
* `target/lib/*.jar`
7676

7777
## Getting Started

api/openapi.yaml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ info:
88
customer engagement strategies. Learn more at onesignal.com
99
termsOfService: https://onesignal.com/tos
1010
title: OneSignal
11-
version: 1.3.0
11+
version: 1.4.0
1212
servers:
1313
- url: https://api.onesignal.com
1414
paths:
@@ -3760,15 +3760,29 @@ components:
37603760
type: string
37613761
writeOnly: true
37623762
external_id:
3763+
deprecated: true
3764+
description: "[DEPRECATED] Correlation and idempotency key.\nA request received\
3765+
\ with this parameter will first look for another notification with the\
3766+
\ same external_id. If one exists, a notification will not be sent, and\
3767+
\ result of the previous operation will instead be returned. Therefore,\
3768+
\ if you plan on using this feature, it's important to use a good source\
3769+
\ of randomness to generate the UUID passed here.\nThis key is only idempotent\
3770+
\ for 30 days. After 30 days, the notification could be removed from our\
3771+
\ system and a notification with the same external_id will be sent again.\n\
3772+
\ See Idempotent Notification Requests for more details\nwriteOnly: true\n"
3773+
nullable: true
3774+
type: string
3775+
idempotency_key:
37633776
description: "Correlation and idempotency key.\nA request received with\
37643777
\ this parameter will first look for another notification with the same\
3765-
\ external_id. If one exists, a notification will not be sent, and result\
3766-
\ of the previous operation will instead be returned. Therefore, if you\
3767-
\ plan on using this feature, it's important to use a good source of randomness\
3768-
\ to generate the UUID passed here.\nThis key is only idempotent for 30\
3769-
\ days. After 30 days, the notification could be removed from our system\
3770-
\ and a notification with the same external_id will be sent again.\n \
3771-
\ See Idempotent Notification Requests for more details\nwriteOnly: true\n"
3778+
\ idempotency key. If one exists, a notification will not be sent, and\
3779+
\ result of the previous operation will instead be returned. Therefore,\
3780+
\ if you plan on using this feature, it's important to use a good source\
3781+
\ of randomness to generate the UUID passed here.\nThis key is only idempotent\
3782+
\ for 30 days. After 30 days, the notification could be removed from our\
3783+
\ system and a notification with the same idempotency key will be sent\
3784+
\ again.\n See Idempotent Notification Requests for more details\nwriteOnly:\
3785+
\ true\n"
37723786
nullable: true
37733787
type: string
37743788
contents:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'org.openapitools'
7-
version = '1.3.0'
7+
version = '1.4.0'
88

99
buildscript {
1010
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "org.openapitools",
44
name := "onesignal-java-client",
5-
version := "1.3.0",
5+
version := "1.4.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/BasicNotification.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
|**isChrome** | **Boolean** | This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps &amp; Extensions. Indicates whether to send to all devices registered under your app&#39;s Google Chrome Apps &amp; Extension platform. | [optional] |
3838
|**channelForExternalUserIds** | **String** | Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \&quot;push\&quot; to indicate you are sending a push notification or the string \&quot;email\&quot;for sending emails or \&quot;sms\&quot;for sending SMS. | [optional] |
3939
|**appId** | **String** | Required: Your OneSignal Application ID, which can be found in Keys &amp; IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434. | |
40-
|**externalId** | **String** | 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&#39;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 | [optional] |
40+
|**externalId** | **String** | [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&#39;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 | [optional] |
41+
|**idempotencyKey** | **String** | 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&#39;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 | [optional] |
4142
|**contents** | [**StringMap**](StringMap.md) | | [optional] |
4243
|**headings** | [**StringMap**](StringMap.md) | | [optional] |
4344
|**subtitle** | [**StringMap**](StringMap.md) | | [optional] |

docs/BasicNotificationAllOf.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
|**isChrome** | **Boolean** | This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps &amp; Extensions. Indicates whether to send to all devices registered under your app&#39;s Google Chrome Apps &amp; Extension platform. | [optional] |
2424
|**channelForExternalUserIds** | **String** | Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \&quot;push\&quot; to indicate you are sending a push notification or the string \&quot;email\&quot;for sending emails or \&quot;sms\&quot;for sending SMS. | [optional] |
2525
|**appId** | **String** | Required: Your OneSignal Application ID, which can be found in Keys &amp; IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434. | [optional] |
26-
|**externalId** | **String** | 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&#39;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 | [optional] |
26+
|**externalId** | **String** | [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&#39;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 | [optional] |
27+
|**idempotencyKey** | **String** | 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&#39;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 | [optional] |
2728
|**contents** | [**StringMap**](StringMap.md) | | [optional] |
2829
|**headings** | [**StringMap**](StringMap.md) | | [optional] |
2930
|**subtitle** | [**StringMap**](StringMap.md) | | [optional] |

docs/Notification.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
|**isChrome** | **Boolean** | This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps &amp; Extensions. Indicates whether to send to all devices registered under your app&#39;s Google Chrome Apps &amp; Extension platform. | [optional] |
3838
|**channelForExternalUserIds** | **String** | Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \&quot;push\&quot; to indicate you are sending a push notification or the string \&quot;email\&quot;for sending emails or \&quot;sms\&quot;for sending SMS. | [optional] |
3939
|**appId** | **String** | Required: Your OneSignal Application ID, which can be found in Keys &amp; IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434. | |
40-
|**externalId** | **String** | 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&#39;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 | [optional] |
40+
|**externalId** | **String** | [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&#39;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 | [optional] |
41+
|**idempotencyKey** | **String** | 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&#39;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 | [optional] |
4142
|**contents** | [**StringMap**](StringMap.md) | | [optional] |
4243
|**headings** | [**StringMap**](StringMap.md) | | [optional] |
4344
|**subtitle** | [**StringMap**](StringMap.md) | | [optional] |

docs/NotificationWithMeta.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
|**isChrome** | **Boolean** | This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps &amp; Extensions. Indicates whether to send to all devices registered under your app&#39;s Google Chrome Apps &amp; Extension platform. | [optional] |
3838
|**channelForExternalUserIds** | **String** | Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \&quot;push\&quot; to indicate you are sending a push notification or the string \&quot;email\&quot;for sending emails or \&quot;sms\&quot;for sending SMS. | [optional] |
3939
|**appId** | **String** | Required: Your OneSignal Application ID, which can be found in Keys &amp; IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434. | |
40-
|**externalId** | **String** | 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&#39;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 | [optional] |
40+
|**externalId** | **String** | [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&#39;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 | [optional] |
41+
|**idempotencyKey** | **String** | 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&#39;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 | [optional] |
4142
|**contents** | [**StringMap**](StringMap.md) | | [optional] |
4243
|**headings** | [**StringMap**](StringMap.md) | | [optional] |
4344
|**subtitle** | [**StringMap**](StringMap.md) | | [optional] |

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>onesignal-java-client</artifactId>
66
<packaging>jar</packaging>
77
<name>onesignal-java-client</name>
8-
<version>1.3.0</version>
8+
<version>1.4.0</version>
99
<url>https://github.com/openapitools/openapi-generator</url>
1010
<description>OpenAPI Java</description>
1111
<scm>

src/main/java/com/onesignal/client/ApiCallback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OneSignal
33
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
44
*
5-
* The version of the OpenAPI document: 1.3.0
5+
* The version of the OpenAPI document: 1.4.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/com/onesignal/client/ApiClient.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* OneSignal
33
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
44
*
5-
* The version of the OpenAPI document: 1.3.0
5+
* The version of the OpenAPI document: 1.4.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -90,8 +90,8 @@ public ApiClient() {
9090
initHttpClient();
9191

9292
// Setup authentications (key: authentication name, value: authentication).
93-
authentications.put("app_key", new HttpBearerAuth("bearer"));
94-
authentications.put("user_key", new HttpBearerAuth("bearer"));
93+
authentications.put("app_key", new HttpBearerAuth("Key"));
94+
authentications.put("user_key", new HttpBearerAuth("Key"));
9595
// Prevent the authentications from being modified.
9696
authentications = Collections.unmodifiableMap(authentications);
9797
}
@@ -107,8 +107,8 @@ public ApiClient(OkHttpClient client) {
107107
httpClient = client;
108108

109109
// Setup authentications (key: authentication name, value: authentication).
110-
authentications.put("app_key", new HttpBearerAuth("bearer"));
111-
authentications.put("user_key", new HttpBearerAuth("bearer"));
110+
authentications.put("app_key", new HttpBearerAuth("Key"));
111+
authentications.put("user_key", new HttpBearerAuth("Key"));
112112
// Prevent the authentications from being modified.
113113
authentications = Collections.unmodifiableMap(authentications);
114114
}
@@ -133,7 +133,7 @@ private void init() {
133133
json = new JSON();
134134

135135
// Set default User-Agent.
136-
setUserAgent("OpenAPI-Generator/1.3.0/java");
136+
setUserAgent("OpenAPI-Generator/1.4.0/java");
137137

138138
authentications = new HashMap<String, Authentication>();
139139
}

0 commit comments

Comments
 (0)