Skip to content

Commit

Permalink
9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PureCloud Jenkins committed Mar 8, 2023
1 parent a26a6b7 commit 7407ff3
Show file tree
Hide file tree
Showing 452 changed files with 5,527 additions and 2,717 deletions.
6 changes: 6 additions & 0 deletions build/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
README.md
docs/Action.md
docs/AdditionalIDType.md
docs/AllowedMedia.md
docs/AttachmentDeletedResponse.md
docs/BaseChannelMetadata.md
docs/BaseContentAttachment.md
Expand Down Expand Up @@ -55,6 +56,8 @@ docs/EventPresenceType.md
docs/EventType.md
docs/EventTyping.md
docs/EventTypingType.md
docs/FileType.md
docs/FileUploadMode.md
docs/GenerateDownloadUrlRequest.md
docs/GenerateUploadUrlRequest.md
docs/GenerateUrlError.md
Expand Down Expand Up @@ -142,6 +145,7 @@ src/main/java/cloud/genesys/webmessaging/sdk/auth/Authentication.java
src/main/java/cloud/genesys/webmessaging/sdk/auth/OAuth.java
src/main/java/cloud/genesys/webmessaging/sdk/model/Action.java
src/main/java/cloud/genesys/webmessaging/sdk/model/AdditionalIDType.java
src/main/java/cloud/genesys/webmessaging/sdk/model/AllowedMedia.java
src/main/java/cloud/genesys/webmessaging/sdk/model/AttachmentDeletedResponse.java
src/main/java/cloud/genesys/webmessaging/sdk/model/BaseChannelMetadata.java
src/main/java/cloud/genesys/webmessaging/sdk/model/BaseContentAttachment.java
Expand Down Expand Up @@ -194,6 +198,8 @@ src/main/java/cloud/genesys/webmessaging/sdk/model/EventPresenceType.java
src/main/java/cloud/genesys/webmessaging/sdk/model/EventType.java
src/main/java/cloud/genesys/webmessaging/sdk/model/EventTyping.java
src/main/java/cloud/genesys/webmessaging/sdk/model/EventTypingType.java
src/main/java/cloud/genesys/webmessaging/sdk/model/FileType.java
src/main/java/cloud/genesys/webmessaging/sdk/model/FileUploadMode.java
src/main/java/cloud/genesys/webmessaging/sdk/model/GenerateDownloadUrlRequest.java
src/main/java/cloud/genesys/webmessaging/sdk/model/GenerateUploadUrlRequest.java
src/main/java/cloud/genesys/webmessaging/sdk/model/GenerateUrlError.java
Expand Down
15 changes: 15 additions & 0 deletions build/docs/AllowedMedia.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: AllowedMedia
---
## AllowedMedia


## Properties

| Name | Type | Description | Notes |
| ------------ | ------------- | ------------- | ------------- |
| **inbound** | <!----><!---->[**FileUploadMode**](FileUploadMode.html)<!----> | | |
{: class="table table-striped"}



1 change: 1 addition & 0 deletions build/docs/CloseSessionRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: CloseSessionRequest
| ------------ | ------------- | ------------- | ------------- |
| **action** | <!----><!---->[**RequestTypeCloseSession**](RequestTypeCloseSession.html)<!----> | | |
| **token** | <!----><!---->**String**<!----> | | |
| **closeAllConnections** | <!----><!---->**Boolean**<!----> | | |
{: class="table table-striped"}


Expand Down
15 changes: 15 additions & 0 deletions build/docs/FileType.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: FileType
---
## FileType


## Properties

| Name | Type | Description | Notes |
| ------------ | ------------- | ------------- | ------------- |
| **type** | <!----><!---->**String**<!----> | | |
{: class="table table-striped"}



16 changes: 16 additions & 0 deletions build/docs/FileUploadMode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: FileUploadMode
---
## FileUploadMode


## Properties

| Name | Type | Description | Notes |
| ------------ | ------------- | ------------- | ------------- |
| **fileTypes** | <!----><!---->[**List&lt;FileType&gt;**](FileType.html)<!----> | | |
| **maxFileSizeKB** | <!----><!---->**Double**<!----> | | |
{: class="table table-striped"}



1 change: 1 addition & 0 deletions build/docs/SessionResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ title: SessionResponse
| **connected** | <!----><!---->**Boolean**<!----> | | |
| **newSession** | <!----><!---->**Boolean**<!----> | | [optional] |
| **readOnly** | <!----><!---->**Boolean**<!----> | | [optional] |
| **allowedMedia** | <!----><!---->[**AllowedMedia**](AllowedMedia.html)<!----> | | [optional] |
{: class="table table-striped"}


Expand Down
1 change: 1 addition & 0 deletions build/docs/StructuredMessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ title: StructuredMessage
| **channel** | <!----><!---->[**BaseMessagingChannel**](BaseMessagingChannel.html)<!----> | | [optional] |
| **content** | <!----><!---->[**List&lt;BaseMessagingContent&gt;**](BaseMessagingContent.html)<!----> | | [optional] |
| **metadata** | <!----><!---->**Map&lt;String, String&gt;**<!----> | | [optional] |
| **events** | <!----><!---->[**List&lt;MessageEvent&gt;**](MessageEvent.html)<!----> | | [optional] |
{: class="table table-striped"}


Expand Down
86 changes: 77 additions & 9 deletions build/docs/WebMessagingClient.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ title: WebMessagingClient

| Method | Description |
| ------------- | ------------- |
| [**hasPresenceEvents**](WebMessagingClient.html#hasPresenceEvents1) | Inspect a StructuredMessage, looking for Presence events ({@link EventType#PRESENCE} )
|
| [**hasTypingEvents**](WebMessagingClient.html#hasTypingEvents1) | Inspect a StructuredMessage, looking for Typing events ({@link EventType#TYPING} )
|
| [**hasEvents**](WebMessagingClient.html#hasEvents1) | Inspect a StructuredMessage, looking for a type of event ({@link EventType} ) |
| [**WebMessagingClient**](WebMessagingClient.html#WebMessagingClient1) | Creates a new Web Messaging client |
| [**WebMessagingClient**](WebMessagingClient.html#WebMessagingClient2) | Creates a new Web Messaging client |
| [**joinConversation**](WebMessagingClient.html#joinConversation1) | Full service operation to connect the WebSocket and configure the session |
Expand Down Expand Up @@ -51,13 +56,79 @@ title: WebMessagingClient

<h1>Constructors</h1>

<a name="hasPresenceEvents1"></a>

# **hasPresenceEvents**



> hasPresenceEvents(message)
Inspect a StructuredMessage, looking for Presence events ({@link EventType#PRESENCE} )


### Parameters


| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **message** | **StructuredMessage**| message to introspect for Presence events |
{: class="table-striped"}

<a name="hasTypingEvents1"></a>

# **hasTypingEvents**



> hasTypingEvents(message)
Inspect a StructuredMessage, looking for Typing events ({@link EventType#TYPING} )


### Parameters


| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **message** | **StructuredMessage**| message to introspect for Typing events |
{: class="table-striped"}



<h1>Methods</h1>

<a name="hasEvents1"></a>

# **hasEvents**



> static hasEvents(message, type)
Inspect a StructuredMessage, looking for a type of event ({@link EventType} )

### Parameters


| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **message** | **EventType**| message to introspect for events |
| **type** | **StructuredMessage**| type of event to look for |
{: class="table-striped"}


### Return type

**static**

<a name="WebMessagingClient1"></a>

# **WebMessagingClient**



> WebMessagingClient(address)
> WebMessagingClient(address)
Creates a new Web Messaging client

Expand All @@ -75,7 +146,7 @@ Creates a new Web Messaging client



> WebMessagingClient(region)
> WebMessagingClient(region)
Creates a new Web Messaging client

Expand All @@ -87,10 +158,6 @@ Creates a new Web Messaging client
| **region** | **GenesysCloudRegionWebSocketHosts**| The WebSocket server's Genesys Cloud region |
{: class="table-striped"}



<h1>Methods</h1>

<a name="joinConversation1"></a>

# **joinConversation**
Expand Down Expand Up @@ -221,7 +288,7 @@ Configures a new session with a randomly generated session token



> void configureSession(deploymentId, token, origin)
> void configureSession(deploymentId, token, origin, startNew)
Configures a session using the provided session token. This can be used to reconnect to active sessions.

Expand All @@ -230,9 +297,10 @@ Configures a session using the provided session token. This can be used to recon

| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **deploymentId** | **String**| The ID of the Web Messaging deployment |
| **deploymentId** | **Optional<Boolean>**| The ID of the Web Messaging deployment |
| **token** | **String**| The session token |
| **origin** | **String**| Represents the origin of the request. You can restrict access in Messenger Deployments |
| **origin** | **String**| Represents the origin of the request. You can restrict access in Messenger Deployments |
| **startNew** | **String**| true if you want to start a new session for your currently read-only session (after a Presence event of type |
{: class="table-striped"}


Expand Down
74 changes: 10 additions & 64 deletions build/docs/releaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,88 +1,34 @@
Platform API version: 6333
Platform API version: 6640


# Major Changes (6 changes)
# Major Changes (1 change)

**CardAction** (1 change)
**CloseSessionRequest** (1 change)

* Model CardAction was removed
* Required property closeAllConnections was added

**ContentCard** (2 changes)

* Property actions was changed from CardAction[] to array
* Property defaultAction was changed from CardAction to ContentCardAction
# Minor Changes (5 changes)

**IncomingNormalizedMessage** (1 change)

* Required property channel was added

**SendMessageRequest** (1 change)

* Property attachmentIds was removed

**SessionResponse** (1 change)

* Property sessionId was removed


# Minor Changes (18 changes)

**ConfigureSessionRequest** (2 changes)

* Optional property resumeToken was added
* Optional property startNew was added

**ContentAttachment** (1 change)

* Optional property contentSizeBytes was added

**ContentCardAction** (1 change)
**FileType** (1 change)

* Model was added

**ContentQuickReplyV2** (1 change)
**FileUploadMode** (1 change)

* Model was added

**ContentText** (1 change)
**AllowedMedia** (1 change)

* Model was added

**MessageContent** (2 changes)

* Optional property quickReplyV2 was added
* Optional property text was added

**BaseMessagingRecipient** (1 change)

* Optional property image was added

**ConfigureAuthenticatedSessionRequest** (2 changes)

* Optional property resumeToken was added
* Optional property startNew was added

**SessionResponse** (1 change)

* Optional property readOnly was added

**ResumeTokenResponse** (1 change)

* Model was added
* Optional property allowedMedia was added

**StructuredMessage** (1 change)

* Optional property metadata was added

**CleanMessagingRecipient** (1 change)

* Optional property image was added

**CleanMessageContent** (3 changes)

* Optional property carousel was added
* Optional property text was added
* Optional property quickReplyV2 was added
* Optional property events was added


# Point Changes (0 changes)
10 changes: 5 additions & 5 deletions build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,12 @@
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>1.6.8</version>
<version>1.6.9</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>2.0.3</version>
<version>2.0.6</version>
</dependency>
<!-- HTTP client: apache httpclient -->
<dependency>
Expand All @@ -227,7 +227,7 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.14.0</version>
<version>2.14.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.jaxrs</groupId>
Expand Down Expand Up @@ -265,8 +265,8 @@
<swagger-annotations-version>1.5.8</swagger-annotations-version>
<slf4j-version>1.7.36</slf4j-version>
<jersey-version>1.19.1</jersey-version>
<jackson-version>2.14.0</jackson-version>
<jodatime-version>2.10.14</jodatime-version>
<jackson-version>2.14.1</jackson-version>
<jodatime-version>2.12.2</jodatime-version>
<maven-plugin-version>1.0.0</maven-plugin-version>
<apache-httpclient-version>4.5.13</apache-httpclient-version>
<okhttpclient-version>4.10.0</okhttpclient-version>
Expand Down
2 changes: 1 addition & 1 deletion build/props.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
props.name=web-messaging-sdk
props.version=8.0.0
props.version=9.0.0
props.description=A customer-side development kit for creating custom Genesys Cloud Web Messaging experiences
props.url=https://developer.mypurecloud.com/api/rest/client-libraries/webmessaging-java/
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ public static ApiClient defaultClient() {
private Builder(ConnectorProperties properties) {
this.properties = (properties != null) ? properties.copy() : new ConnectorProperties();
withUserAgent(DEFAULT_USER_AGENT);
withDefaultHeader("purecloud-sdk", "8.0.0");
withDefaultHeader("purecloud-sdk", "9.0.0");
}

public Builder withDefaultHeader(String header, String value) {
Expand Down
Loading

0 comments on commit 7407ff3

Please sign in to comment.