Skip to content

Commit a429786

Browse files
feat(WxA): add new functions and update required params
BREAKING CHANGE: `environmentId` now required for `message` and `messageStateless` functions Add support for message streaming and new APIs New functions: createProviders, listProviders, updateProviders, createReleaseExport, downloadReleaseExport, createReleaseImport, getReleaseImportStatus, messageStream, messageStreamStateless
1 parent 80ba044 commit a429786

File tree

284 files changed

+14840
-310
lines changed

Some content is hidden

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

284 files changed

+14840
-310
lines changed

assistant/pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22
xmlns="http://maven.apache.org/POM/4.0.0"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
44
<modelVersion>4.0.0</modelVersion>
5+
<build>
6+
<plugins>
7+
<plugin>
8+
<groupId>org.apache.maven.plugins</groupId>
9+
<artifactId>maven-compiler-plugin</artifactId>
10+
<configuration>
11+
<source>11</source>
12+
<target>11</target>
13+
</configuration>
14+
</plugin>
15+
</plugins>
16+
</build>
517

618
<parent>
719
<artifactId>ibm-watson-parent</artifactId>
@@ -36,6 +48,11 @@
3648
<artifactId>testng</artifactId>
3749
<scope>test</scope>
3850
</dependency>
51+
<dependency>
52+
<groupId>com.launchdarkly</groupId>
53+
<artifactId>okhttp-eventsource</artifactId>
54+
<version>4.1.1</version>
55+
</dependency>
3956
<dependency>
4057
<groupId>com.squareup.okhttp3</groupId>
4158
<artifactId>mockwebserver</artifactId>

assistant/src/main/java/com/ibm/watson/assistant/v2/Assistant.java

Lines changed: 487 additions & 1 deletion
Large diffs are not rendered by default.

assistant/src/main/java/com/ibm/watson/assistant/v2/model/AgentAvailabilityMessage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2020, 2023.
2+
* (C) Copyright IBM Corp. 2024.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -10,6 +10,7 @@
1010
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
1111
* specific language governing permissions and limitations under the License.
1212
*/
13+
1314
package com.ibm.watson.assistant.v2.model;
1415

1516
import com.ibm.cloud.sdk.core.service.model.GenericModel;

assistant/src/main/java/com/ibm/watson/assistant/v2/model/AssistantCollection.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2023.
2+
* (C) Copyright IBM Corp. 2024.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -10,6 +10,7 @@
1010
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
1111
* specific language governing permissions and limitations under the License.
1212
*/
13+
1314
package com.ibm.watson.assistant.v2.model;
1415

1516
import com.ibm.cloud.sdk.core.service.model.GenericModel;

assistant/src/main/java/com/ibm/watson/assistant/v2/model/AssistantData.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2023.
2+
* (C) Copyright IBM Corp. 2024.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -10,6 +10,7 @@
1010
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
1111
* specific language governing permissions and limitations under the License.
1212
*/
13+
1314
package com.ibm.watson.assistant.v2.model;
1415

1516
import com.google.gson.annotations.SerializedName;

assistant/src/main/java/com/ibm/watson/assistant/v2/model/AssistantSkill.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2023.
2+
* (C) Copyright IBM Corp. 2024.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -10,6 +10,7 @@
1010
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
1111
* specific language governing permissions and limitations under the License.
1212
*/
13+
1314
package com.ibm.watson.assistant.v2.model;
1415

1516
import com.google.gson.annotations.SerializedName;

assistant/src/main/java/com/ibm/watson/assistant/v2/model/AssistantState.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2023.
2+
* (C) Copyright IBM Corp. 2024.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -10,6 +10,7 @@
1010
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
1111
* specific language governing permissions and limitations under the License.
1212
*/
13+
1314
package com.ibm.watson.assistant.v2.model;
1415

1516
import com.google.gson.annotations.SerializedName;
Lines changed: 3 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2023, 2024.
2+
* (C) Copyright IBM Corp. 2024.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -10,6 +10,7 @@
1010
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
1111
* specific language governing permissions and limitations under the License.
1212
*/
13+
1314
package com.ibm.watson.assistant.v2.model;
1415

1516
import com.google.gson.annotations.SerializedName;
@@ -21,58 +22,8 @@ public class BaseEnvironmentOrchestration extends GenericModel {
2122
@SerializedName("search_skill_fallback")
2223
protected Boolean searchSkillFallback;
2324

24-
/** Builder. */
25-
public static class Builder {
26-
private Boolean searchSkillFallback;
27-
28-
/**
29-
* Instantiates a new Builder from an existing BaseEnvironmentOrchestration instance.
30-
*
31-
* @param baseEnvironmentOrchestration the instance to initialize the Builder with
32-
*/
33-
private Builder(BaseEnvironmentOrchestration baseEnvironmentOrchestration) {
34-
this.searchSkillFallback = baseEnvironmentOrchestration.searchSkillFallback;
35-
}
36-
37-
/** Instantiates a new builder. */
38-
public Builder() {}
39-
40-
/**
41-
* Builds a BaseEnvironmentOrchestration.
42-
*
43-
* @return the new BaseEnvironmentOrchestration instance
44-
*/
45-
public BaseEnvironmentOrchestration build() {
46-
return new BaseEnvironmentOrchestration(this);
47-
}
48-
49-
/**
50-
* Set the searchSkillFallback.
51-
*
52-
* @param searchSkillFallback the searchSkillFallback
53-
* @return the BaseEnvironmentOrchestration builder
54-
*/
55-
public Builder searchSkillFallback(Boolean searchSkillFallback) {
56-
this.searchSkillFallback = searchSkillFallback;
57-
return this;
58-
}
59-
}
60-
6125
protected BaseEnvironmentOrchestration() {}
6226

63-
protected BaseEnvironmentOrchestration(Builder builder) {
64-
searchSkillFallback = builder.searchSkillFallback;
65-
}
66-
67-
/**
68-
* New builder.
69-
*
70-
* @return a BaseEnvironmentOrchestration builder
71-
*/
72-
public Builder newBuilder() {
73-
return new Builder(this);
74-
}
75-
7627
/**
7728
* Gets the searchSkillFallback.
7829
*
@@ -82,7 +33,7 @@ public Builder newBuilder() {
8233
*
8334
* @return the searchSkillFallback
8435
*/
85-
public Boolean searchSkillFallback() {
36+
public Boolean isSearchSkillFallback() {
8637
return searchSkillFallback;
8738
}
8839
}
Lines changed: 3 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2023.
2+
* (C) Copyright IBM Corp. 2024.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -10,6 +10,7 @@
1010
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
1111
* specific language governing permissions and limitations under the License.
1212
*/
13+
1314
package com.ibm.watson.assistant.v2.model;
1415

1516
import com.ibm.cloud.sdk.core.service.model.GenericModel;
@@ -19,66 +20,16 @@ public class BaseEnvironmentReleaseReference extends GenericModel {
1920

2021
protected String release;
2122

22-
/** Builder. */
23-
public static class Builder {
24-
private String release;
25-
26-
/**
27-
* Instantiates a new Builder from an existing BaseEnvironmentReleaseReference instance.
28-
*
29-
* @param baseEnvironmentReleaseReference the instance to initialize the Builder with
30-
*/
31-
private Builder(BaseEnvironmentReleaseReference baseEnvironmentReleaseReference) {
32-
this.release = baseEnvironmentReleaseReference.release;
33-
}
34-
35-
/** Instantiates a new builder. */
36-
public Builder() {}
37-
38-
/**
39-
* Builds a BaseEnvironmentReleaseReference.
40-
*
41-
* @return the new BaseEnvironmentReleaseReference instance
42-
*/
43-
public BaseEnvironmentReleaseReference build() {
44-
return new BaseEnvironmentReleaseReference(this);
45-
}
46-
47-
/**
48-
* Set the release.
49-
*
50-
* @param release the release
51-
* @return the BaseEnvironmentReleaseReference builder
52-
*/
53-
public Builder release(String release) {
54-
this.release = release;
55-
return this;
56-
}
57-
}
58-
5923
protected BaseEnvironmentReleaseReference() {}
6024

61-
protected BaseEnvironmentReleaseReference(Builder builder) {
62-
release = builder.release;
63-
}
64-
65-
/**
66-
* New builder.
67-
*
68-
* @return a BaseEnvironmentReleaseReference builder
69-
*/
70-
public Builder newBuilder() {
71-
return new Builder(this);
72-
}
73-
7425
/**
7526
* Gets the release.
7627
*
7728
* <p>The name of the deployed release.
7829
*
7930
* @return the release
8031
*/
81-
public String release() {
32+
public String getRelease() {
8233
return release;
8334
}
8435
}

assistant/src/main/java/com/ibm/watson/assistant/v2/model/BulkClassifyOptions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2020, 2024.
2+
* (C) Copyright IBM Corp. 2024.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -10,6 +10,7 @@
1010
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
1111
* specific language governing permissions and limitations under the License.
1212
*/
13+
1314
package com.ibm.watson.assistant.v2.model;
1415

1516
import com.ibm.cloud.sdk.core.service.model.GenericModel;

0 commit comments

Comments
 (0)