Skip to content

Commit 52308b9

Browse files
author
PureCloud Jenkins
committed
10.1.0
1 parent f54d0c8 commit 52308b9

447 files changed

Lines changed: 1886 additions & 1797 deletions

File tree

Some content is hidden

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

build/APIData.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

build/docs/WebMessagingApi.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"GET /api/v2/webmessaging/messages": {
3+
"operationId": "getwebmessagingmessages",
4+
"functionName": "getWebmessagingMessages",
5+
"signature": "getWebmessagingMessages(pageSize, pageNumber)",
6+
"parameters": [
7+
{
8+
"name": "pageSize",
9+
"type": "Integer",
10+
"required": "false"
11+
},
12+
{
13+
"name": "pageNumber",
14+
"type": "Integer",
15+
"required": "false"
16+
}
17+
],
18+
"return": "WebMessagingMessageEntityList"
19+
}
20+
21+
}

build/docs/WebMessagingClient.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Full service operation to connect the WebSocket and configure the session
217217

218218

219219

220-
> void connect(deploymentId, origin, connectionTimeout)
220+
> void connect(deploymentId, origin, connectionTimeout, userAgent)
221221
222222
Establishes a connection to Genesys Cloud via a WebSocket
223223

@@ -226,9 +226,10 @@ Establishes a connection to Genesys Cloud via a WebSocket
226226

227227
| Name | Type | Description | Notes |
228228
| ------------- | ------------- | ------------- | ------------- |
229-
| **deploymentId** | **Optional<Integer>**| deploymentId to connect to |
230-
| **origin** | **String**| origin header to add |
231-
| **connectionTimeout** | **String**| connection timeout, in second, to use |
229+
| **deploymentId** | **Optional<String>**| deploymentId to connect to |
230+
| **origin** | **Optional<Integer>**| origin header to add |
231+
| **connectionTimeout** | **String**| connection timeout, in second, to use |
232+
| **userAgent** | **String**| user-agent string to be set in header connecting to the websocket. Optional, default of WebMessagingSdk-"version" will be used |
232233
{: class="table-striped"}
233234

234235

build/docs/releaseNotes.md

Lines changed: 3 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,12 @@
1-
Platform API version: 7322
1+
Platform API version: 7379
22

33

4-
# Major Changes (4 changes)
54

6-
**GenerateUrlError** (2 changes)
75

8-
* Required property name was added
9-
* Required property message was added
6+
# Major Changes (0 changes)
107

11-
**TooManyRequestsErrorMessage** (2 changes)
128

13-
* Required property name was added
14-
* Required property message was added
15-
16-
17-
# Minor Changes (9 changes)
18-
19-
**ConfigureAuthenticatedSessionRequest** (1 change)
20-
21-
* Optional property stepUp was added
22-
23-
**GetConfigurationRequest** (1 change)
24-
25-
* Model was added
26-
27-
**SessionResponse** (2 changes)
28-
29-
* Optional property clearedExistingSession was added
30-
* Optional property blockedExtensions was added
31-
32-
**GetConfigurationResponse** (1 change)
33-
34-
* Model was added
35-
36-
**GenerateUrlError** (1 change)
37-
38-
* Optional property stack was added
39-
40-
**TooManyRequestsErrorMessage** (1 change)
41-
42-
* Optional property stack was added
43-
44-
**ErrorMessage** (1 change)
45-
46-
* Model was added
47-
48-
**SessionClearedEvent** (1 change)
49-
50-
* Model was added
9+
# Minor Changes (0 changes)
5110

5211

5312
# Point Changes (0 changes)

build/pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
<plugin>
112112
<groupId>org.apache.maven.plugins</groupId>
113113
<artifactId>maven-source-plugin</artifactId>
114-
<version>3.2.1</version>
114+
<version>3.3.0</version>
115115
<executions>
116116
<execution>
117117
<id>attach-sources</id>
@@ -126,7 +126,7 @@
126126
<plugin>
127127
<groupId>org.apache.maven.plugins</groupId>
128128
<artifactId>maven-javadoc-plugin</artifactId>
129-
<version>3.5.0</version>
129+
<version>3.6.0</version>
130130
<configuration>
131131
<doclint>none</doclint>
132132
<failOnError>false</failOnError>
@@ -172,7 +172,7 @@
172172
<plugin>
173173
<groupId>org.codehaus.mojo</groupId>
174174
<artifactId>properties-maven-plugin</artifactId>
175-
<version>1.1.0</version>
175+
<version>1.2.0</version>
176176
<executions>
177177
<execution>
178178
<phase>initialize</phase>
@@ -195,12 +195,12 @@
195195
<dependency>
196196
<groupId>io.swagger</groupId>
197197
<artifactId>swagger-annotations</artifactId>
198-
<version>1.6.10</version>
198+
<version>1.6.11</version>
199199
</dependency>
200200
<dependency>
201201
<groupId>org.slf4j</groupId>
202202
<artifactId>slf4j-api</artifactId>
203-
<version>2.0.7</version>
203+
<version>2.0.9</version>
204204
</dependency>
205205
<!-- HTTP client: apache httpclient -->
206206
<dependency>

build/props.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
props.name=web-messaging-sdk
2-
props.version=10.0.0
2+
props.version=10.1.0
33
props.description=A customer-side development kit for creating custom Genesys Cloud Web Messaging experiences
44
props.url=https://developer.mypurecloud.com/api/rest/client-libraries/webmessaging-java/

build/src/main/java/cloud/genesys/webmessaging/sdk/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ public static ApiClient defaultClient() {
604604
private Builder(ConnectorProperties properties) {
605605
this.properties = (properties != null) ? properties.copy() : new ConnectorProperties();
606606
withUserAgent(DEFAULT_USER_AGENT);
607-
withDefaultHeader("purecloud-sdk", "10.0.0");
607+
withDefaultHeader("purecloud-sdk", "10.1.0");
608608
}
609609

610610
public Builder withDefaultHeader(String header, String value) {

build/src/main/java/cloud/genesys/webmessaging/sdk/WebMessagingClient.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public void webSocketError(String reason) {
181181
}
182182

183183
public void connect(String deploymentId, String origin) {
184-
connect(deploymentId, origin, Optional.empty());
184+
connect(deploymentId, origin, Optional.empty(), Optional.empty());
185185
}
186186

187187

@@ -191,8 +191,9 @@ public void connect(String deploymentId, String origin) {
191191
* @param deploymentId deploymentId to connect to
192192
* @param origin origin header to add
193193
* @param connectionTimeout connection timeout, in second, to use
194+
* @param userAgent user-agent string to be set in header connecting to the websocket. Optional, default of WebMessagingSdk-"version" will be used
194195
*/
195-
public void connect(String deploymentId, String origin, Optional<Integer> connectionTimeout) {
196+
public void connect(String deploymentId, String origin, Optional<Integer> connectionTimeout, Optional<String> userAgent) {
196197
// Create listener
197198
Listener listener = new Listener() {
198199
@Override
@@ -233,7 +234,8 @@ public CompletionStage<?> onClose(WebSocket webSocket, int statusCode, String re
233234
.newHttpClient()
234235
.newWebSocketBuilder()
235236
.header("Origin", origin)
236-
.header("deploymentId", deploymentId);
237+
.header("deploymentId", deploymentId)
238+
.header("user-agent", userAgent.orElse("WebMessagingSDK-1.0.0"));
237239

238240
if (connectionTimeout.isPresent()) {
239241
builder.connectTimeout(Duration.ofSeconds(connectionTimeout.get()));

build/target/apidocs/allclasses-index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!DOCTYPE HTML>
22
<html lang="en">
33
<head>
4-
<!-- Generated by javadoc (17) on Thu Sep 07 18:59:51 UTC 2023 -->
5-
<title>All Classes and Interfaces (web-messaging-sdk 10.0.0 API)</title>
4+
<!-- Generated by javadoc (17) on Wed Oct 04 12:28:34 UTC 2023 -->
5+
<title>All Classes and Interfaces (web-messaging-sdk 10.1.0 API)</title>
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2023-09-07">
8+
<meta name="dc.created" content="2023-10-04">
99
<meta name="description" content="class index">
1010
<meta name="generator" content="javadoc/AllClassesIndexWriter">
1111
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">

build/target/apidocs/allpackages-index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!DOCTYPE HTML>
22
<html lang="en">
33
<head>
4-
<!-- Generated by javadoc (17) on Thu Sep 07 18:59:51 UTC 2023 -->
5-
<title>All Packages (web-messaging-sdk 10.0.0 API)</title>
4+
<!-- Generated by javadoc (17) on Wed Oct 04 12:28:34 UTC 2023 -->
5+
<title>All Packages (web-messaging-sdk 10.1.0 API)</title>
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2023-09-07">
8+
<meta name="dc.created" content="2023-10-04">
99
<meta name="description" content="package index">
1010
<meta name="generator" content="javadoc/AllPackagesIndexWriter">
1111
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">

0 commit comments

Comments
 (0)