Skip to content

Commit 8b710ab

Browse files
authored
Merge pull request #1206 from watson-developer-cloud/major-03-2022
Major 03 2022
2 parents 96e94d2 + a23fce9 commit 8b710ab

File tree

630 files changed

+8770
-50010
lines changed

Some content is hidden

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

630 files changed

+8770
-50010
lines changed

.bumpversion.cfg

-10
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,16 @@ replace = {new_version}
99

1010
[bumpversion:file:assistant/README.md]
1111

12-
[bumpversion:file:compare-comply/README.md]
13-
1412
[bumpversion:file:discovery/README.md]
1513

1614
[bumpversion:file:language-translator/README.md]
1715

18-
[bumpversion:file:natural-language-classifier/README.md]
19-
2016
[bumpversion:file:natural-language-understanding/README.md]
2117

22-
[bumpversion:file:personality-insights/README.md]
23-
2418
[bumpversion:file:speech-to-text/README.md]
2519

2620
[bumpversion:file:text-to-speech/README.md]
2721

28-
[bumpversion:file:tone-analyzer/README.md]
29-
30-
[bumpversion:file:visual-recognition/README.md]
31-
3222
[bumpversion:file:docker/pom.xml]
3323

3424
[bumpversion:file:examples/build.gradle]

.github/workflows/integration-test.yml

-19
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,16 @@ jobs:
3232
# continue-on-error: true
3333
env:
3434
MVN_ARGS: '-B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
35-
NATURAL_LANGUAGE_CLASSIFIER_URL: "https://api.us-south.natural-language-classifier.watson.cloud.ibm.com"
36-
NATURAL_LANGUAGE_CLASSIFIER_APIKEY: ${{ secrets.NLC_APIKEY }}
37-
NATURAL_LANGUAGE_CLASSIFIER_ID: ${{ secrets.NLC_CLASSIFIER_ID }}
3835
LANGUAGE_TRANSLATOR_APIKEY: ${{ secrets.LT_APIKEY }}
3936
LANGUAGE_TRANSLATOR_URL: "https://api.us-south.language-translator.watson.cloud.ibm.com"
4037
NATURAL_LANGUAGE_UNDERSTANDING_APIKEY: ${{ secrets.NLU_APIKEY }}
4138
NATURAL_LANGUAGE_UNDERSTANDING_URL: "https://api.us-south.natural-language-understanding.watson.cloud.ibm.com"
42-
PERSONALITY_INSIGHTS_APIKEY: ${{ secrets.PI_APIKEY }}
43-
PERSONALITY_INSIGHTS_URL: "https://api.us-south.personality-insights.watson.cloud.ibm.com"
44-
TONE_ANALYZER_APIKEY: ${{ secrets.TA_APIKEY }}
45-
TONE_ANALYZER_URL: "https://api.us-south.tone-analyzer.watson.cloud.ibm.com"
4639
SPEECH_TO_TEXT_APIKEY: ${{ secrets.STT_APIKEY }}
4740
SPEECH_TO_TEXT_URL: "https://api.us-south.speech-to-text.watson.cloud.ibm.com"
4841
SPEECH_TO_TEXT_CUSTOM_ID: ${{ secrets.STT_APIKEY_CUSTOM_ID }}
4942
SPEECH_TO_TEXT_ACOUSTIC_CUSTOM_ID: ${{ secrets.STT_APIKEY_ACOUSTIC_CUSTOM_ID }}
5043
TEXT_TO_SPEECH_APIKEY: ${{ secrets.TTS_APIKEY }}
5144
TEXT_TO_SPEECH_URL: "https://api.us-south.text-to-speech.watson.cloud.ibm.com"
52-
VISUAL_RECOGNITION_APIKEY: ${{ secrets.VR_APIKEY }}
53-
VISUAL_RECOGNITION_COLLECTION_ID: ${{ secrets.VR_COLLECTION_ID }}
54-
VISUAL_RECOGNITION_URL: "https://api.us-south.visual-recognition.watson.cloud.ibm.com"
55-
COMPARE_COMPLY_APIKEY: ${{ secrets.CC_APIKEY }}
56-
COMPARE_COMPLY_FEEDBACK_ID: ${{ secrets.CC_FEEDBACK_ID }}
57-
COMPARE_COMPLY_URL: "https://api.us-south.compare-comply.watson.cloud.ibm.com"
5845
ASSISTANT_APIKEY: ${{ secrets.WA_APIKEY }}
5946
ASSISTANT_WORKSPACE_ID: ${{ secrets.WA_WORKSPACE_ID }}
6047
ASSISTANT_ASSISTANT_ID: ${{ secrets.WA_ASSISTANT_ID }}
@@ -70,19 +57,13 @@ jobs:
7057
run: |
7158
mvn test -Dtest=v1/AssistantServiceIT -DfailIfNoTests=false -pl assistant,common $MVN_ARGS
7259
mvn test -Dtest=v2/AssistantServiceIT -DfailIfNoTests=false -pl assistant,common $MVN_ARGS
73-
echo -e "\n\033[0;35mSKIP: mvn test -Dtest=CompareComplyServiceIT -DfailIfNoTests=false -pl compare-comply,common $MVN_ARGS"
7460
mvn test -Dtest=v1/DiscoveryServiceIT -DfailIfNoTests=false -pl discovery,common $MVN_ARGS
7561
mvn test -Dtest=v2/DiscoveryIT -DfailIfNoTests=false -pl discovery,common $MVN_ARGS
7662
mvn test -Dtest=LanguageTranslatorIT -DfailIfNoTests=false -pl language-translator,common $MVN_ARGS
77-
mvn test -Dtest=NaturalLanguageClassifierIT -DfailIfNoTests=false -pl natural-language-classifier,common $MVN_ARGS
7863
mvn test -Dtest=NaturalLanguageUnderstandingIT -DfailIfNoTests=false -pl natural-language-understanding,common $MVN_ARGS
79-
mvn test -Dtest=PersonalityInsightsIT -DfailIfNoTests=false -pl personality-insights,common $MVN_ARGS
8064
mvn test -Dtest=SpeechToTextIT -DfailIfNoTests=false -pl speech-to-text,common $MVN_ARGS
8165
mvn test -Dtest=TextToSpeechIT -DfailIfNoTests=false -pl text-to-speech,common $MVN_ARGS
8266
mvn test -Dtest=CustomizationsIT -DfailIfNoTests=false -pl text-to-speech,common $MVN_ARGS
83-
mvn test -Dtest=ToneAnalyzerIT -DfailIfNoTests=false -pl tone-analyzer,common $MVN_ARGS
84-
echo -e "\n\033[0;35mSKIP: mvn test -Dtest=v3/VisualRecognitionIT -DfailIfNoTests=false -pl visual-recognition,common $MVN_ARGS"
85-
echo -e "\n\033[0;35mSKIP: mvn test -Dtest=v4/VisualRecognitionIT -DfailIfNoTests=false -pl visual-recognition,common $MVN_ARGS"
8667
8768
# Do not notify on success. We will leave the code here just in case we decide to switch gears
8869
- name: Notify slack on success

.secrets.baseline

+54-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"exclude": {
3-
"files": "package-lock.json|credentials.json",
3+
"files": "package-lock.json|credentials.json|^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2020-03-03T19:34:45Z",
6+
"generated_at": "2022-03-18T18:58:41Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"
@@ -25,9 +25,7 @@
2525
"name": "CloudantDetector"
2626
},
2727
{
28-
"name": "Db2Detector"
29-
},
30-
{
28+
"ghe_instance": "github.ibm.com",
3129
"name": "GheDetector"
3230
},
3331
{
@@ -66,8 +64,57 @@
6664
"name": "TwilioKeyDetector"
6765
}
6866
],
69-
"results": {},
70-
"version": "0.13.0+ibm.9.dss",
67+
"results": {
68+
"CHANGELOG.md": [
69+
{
70+
"hashed_secret": "939999726d2023fca902233e45790c08081dc91b",
71+
"is_secret": false,
72+
"is_verified": false,
73+
"line_number": 90,
74+
"type": "Hex High Entropy String",
75+
"verified_result": null
76+
}
77+
],
78+
"assistant/src/test/resources/assistant/assistant.json": [
79+
{
80+
"hashed_secret": "49568690e3778497671beb117ceecc48e01cdd4c",
81+
"is_secret": false,
82+
"is_verified": false,
83+
"line_number": 117,
84+
"type": "Secret Keyword",
85+
"verified_result": null
86+
}
87+
],
88+
"assistant/src/test/resources/assistant/message_response.json": [
89+
{
90+
"hashed_secret": "d506bd5213c46bd49e16c634754ad70113408252",
91+
"is_secret": false,
92+
"is_verified": false,
93+
"line_number": 165,
94+
"type": "Secret Keyword",
95+
"verified_result": null
96+
}
97+
],
98+
"discovery/src/main/java/com/ibm/watson/discovery/v1/model/CredentialDetails.java": [
99+
{
100+
"hashed_secret": "e8fc807ce6fbcda13f91c5b64850173873de0cdc",
101+
"is_secret": false,
102+
"is_verified": false,
103+
"line_number": 42,
104+
"type": "Secret Keyword",
105+
"verified_result": null
106+
},
107+
{
108+
"hashed_secret": "fdee05598fdd57ff8e9ae29e92c25a04f2c52fa6",
109+
"is_secret": false,
110+
"is_verified": false,
111+
"line_number": 44,
112+
"type": "Secret Keyword",
113+
"verified_result": null
114+
}
115+
]
116+
},
117+
"version": "0.13.1+ibm.47.dss",
71118
"word_list": {
72119
"file": null,
73120
"hash": null

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2019, 2021.
2+
* (C) Copyright IBM Corp. 2019, 2022.
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
@@ -12,7 +12,7 @@
1212
*/
1313

1414
/*
15-
* IBM OpenAPI SDK Code Generator Version: 3.38.0-07189efd-20210827-205025
15+
* IBM OpenAPI SDK Code Generator Version: 3.46.0-a4e29da0-20220224-210428
1616
*/
1717

1818
package com.ibm.watson.assistant.v1;
@@ -121,7 +121,7 @@ public class Assistant extends BaseService {
121121
* the client instance.
122122
*
123123
* @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD
124-
* format. The current version is `2021-06-14`.
124+
* format. The current version is `2021-11-27`.
125125
*/
126126
public Assistant(String version) {
127127
this(
@@ -135,7 +135,7 @@ public Assistant(String version) {
135135
* authenticator are used to configure the client instance.
136136
*
137137
* @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD
138-
* format. The current version is `2021-06-14`.
138+
* format. The current version is `2021-11-27`.
139139
* @param authenticator the {@link Authenticator} instance to be configured for this client
140140
*/
141141
public Assistant(String version, Authenticator authenticator) {
@@ -147,7 +147,7 @@ public Assistant(String version, Authenticator authenticator) {
147147
* configure the client instance.
148148
*
149149
* @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD
150-
* format. The current version is `2021-06-14`.
150+
* format. The current version is `2021-11-27`.
151151
* @param serviceName the service name to be used when configuring the client instance
152152
*/
153153
public Assistant(String version, String serviceName) {
@@ -159,7 +159,7 @@ public Assistant(String version, String serviceName) {
159159
* are used to configure the client instance.
160160
*
161161
* @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD
162-
* format. The current version is `2021-06-14`.
162+
* format. The current version is `2021-11-27`.
163163
* @param serviceName the service name to be used when configuring the client instance
164164
* @param authenticator the {@link Authenticator} instance to be configured for this client
165165
*/
@@ -174,7 +174,7 @@ public Assistant(String version, String serviceName, Authenticator authenticator
174174
* Gets the version.
175175
*
176176
* <p>Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The
177-
* current version is `2021-06-14`.
177+
* current version is `2021-11-27`.
178178
*
179179
* @return the version
180180
*/

assistant/src/main/java/com/ibm/watson/assistant/v1/model/DialogNodeOutputGeneric.java

+39-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2021.
2+
* (C) Copyright IBM Corp. 2018, 2022.
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
@@ -27,7 +27,10 @@
2727
* DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent -
2828
* DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill -
2929
* DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer -
30-
* DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined
30+
* DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined -
31+
* DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo -
32+
* DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio -
33+
* DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe
3134
*/
3235
public class DialogNodeOutputGeneric extends GenericModel {
3336
@SuppressWarnings("unused")
@@ -37,12 +40,16 @@ public class DialogNodeOutputGeneric extends GenericModel {
3740

3841
static {
3942
discriminatorMapping = new java.util.HashMap<>();
43+
discriminatorMapping.put(
44+
"audio", DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio.class);
4045
discriminatorMapping.put(
4146
"channel_transfer",
4247
DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer.class);
4348
discriminatorMapping.put(
4449
"connect_to_agent",
4550
DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent.class);
51+
discriminatorMapping.put(
52+
"iframe", DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe.class);
4653
discriminatorMapping.put(
4754
"image", DialogNodeOutputGenericDialogNodeOutputResponseTypeImage.class);
4855
discriminatorMapping.put(
@@ -54,6 +61,8 @@ public class DialogNodeOutputGeneric extends GenericModel {
5461
discriminatorMapping.put("text", DialogNodeOutputGenericDialogNodeOutputResponseTypeText.class);
5562
discriminatorMapping.put(
5663
"user_defined", DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined.class);
64+
discriminatorMapping.put(
65+
"video", DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo.class);
5766
}
5867

5968
/** How a response is selected from the list, if more than one response is specified. */
@@ -129,6 +138,12 @@ public interface QueryType {
129138
@SerializedName("user_defined")
130139
protected Map<String, Object> userDefined;
131140

141+
@SerializedName("channel_options")
142+
protected Map<String, Object> channelOptions;
143+
144+
@SerializedName("image_url")
145+
protected String imageUrl;
146+
132147
protected DialogNodeOutputGeneric() {}
133148

134149
/**
@@ -384,4 +399,26 @@ public String messageToUser() {
384399
public Map<String, Object> userDefined() {
385400
return userDefined;
386401
}
402+
403+
/**
404+
* Gets the channelOptions.
405+
*
406+
* <p>For internal use only.
407+
*
408+
* @return the channelOptions
409+
*/
410+
public Map<String, Object> channelOptions() {
411+
return channelOptions;
412+
}
413+
414+
/**
415+
* Gets the imageUrl.
416+
*
417+
* <p>The URL of an image that shows a preview of the embedded content.
418+
*
419+
* @return the imageUrl
420+
*/
421+
public String imageUrl() {
422+
return imageUrl;
423+
}
387424
}

0 commit comments

Comments
 (0)