Skip to content

Commit 4fdfb2f

Browse files
committed
feat(assistant-v2): generated using api-def: master & generator: 3.46.0
MessageContext: integrations property added, MessageContextGlobalSystem: skipUserInput property added, MessageContextStateless: integrations property added, MessageInput: attachments property added, MessageInputStateless: attachments property added, MessageOutputDebug: BREAKING nodesVisited type DialogNodesVisited changed to DialogNodeVisited, RuntimeEntity: BREAKING optional metadata property removed, RuntimeResponseGeneric: Three new response types added BREAKING CHANGE: MessageOutputDebug: BREAKING nodesVisited type DialogNodesVisited changed to DialogNodeVisited, RuntimeEntity: BREAKING optional metadata property removed
1 parent dc7f6a4 commit 4fdfb2f

17 files changed

+405
-64
lines changed

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

+8-8
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. 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.v2;
@@ -54,7 +54,7 @@
5454
*/
5555
public class Assistant extends BaseService {
5656

57-
public static final String DEFAULT_SERVICE_NAME = "assistant";
57+
public static final String DEFAULT_SERVICE_NAME = "conversation";
5858

5959
public static final String DEFAULT_SERVICE_URL =
6060
"https://api.us-south.assistant.watson.cloud.ibm.com";
@@ -66,7 +66,7 @@ public class Assistant extends BaseService {
6666
* the client instance.
6767
*
6868
* @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD
69-
* format. The current version is `2021-06-14`.
69+
* format. The current version is `2021-11-27`.
7070
*/
7171
public Assistant(String version) {
7272
this(
@@ -80,7 +80,7 @@ public Assistant(String version) {
8080
* authenticator are used to configure the client instance.
8181
*
8282
* @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD
83-
* format. The current version is `2021-06-14`.
83+
* format. The current version is `2021-11-27`.
8484
* @param authenticator the {@link Authenticator} instance to be configured for this client
8585
*/
8686
public Assistant(String version, Authenticator authenticator) {
@@ -92,7 +92,7 @@ public Assistant(String version, Authenticator authenticator) {
9292
* configure the client instance.
9393
*
9494
* @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD
95-
* format. The current version is `2021-06-14`.
95+
* format. The current version is `2021-11-27`.
9696
* @param serviceName the service name to be used when configuring the client instance
9797
*/
9898
public Assistant(String version, String serviceName) {
@@ -104,7 +104,7 @@ public Assistant(String version, String serviceName) {
104104
* are used to configure the client instance.
105105
*
106106
* @param version Release date of the API version you want to use. Specify dates in YYYY-MM-DD
107-
* format. The current version is `2021-06-14`.
107+
* format. The current version is `2021-11-27`.
108108
* @param serviceName the service name to be used when configuring the client instance
109109
* @param authenticator the {@link Authenticator} instance to be configured for this client
110110
*/
@@ -119,7 +119,7 @@ public Assistant(String version, String serviceName, Authenticator authenticator
119119
* Gets the version.
120120
*
121121
* <p>Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The
122-
* current version is `2021-06-14`.
122+
* current version is `2021-11-27`.
123123
*
124124
* @return the version
125125
*/

assistant/src/main/java/com/ibm/watson/assistant/v2/model/DialogNodesVisited.java renamed to assistant/src/main/java/com/ibm/watson/assistant/v2/model/DialogNodeVisited.java

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2020.
2+
* (C) Copyright IBM Corp. 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
@@ -15,8 +15,11 @@
1515
import com.google.gson.annotations.SerializedName;
1616
import com.ibm.cloud.sdk.core.service.model.GenericModel;
1717

18-
/** DialogNodesVisited. */
19-
public class DialogNodesVisited extends GenericModel {
18+
/**
19+
* An objects containing detailed diagnostic information about a dialog node that was triggered
20+
* during processing of the input message.
21+
*/
22+
public class DialogNodeVisited extends GenericModel {
2023

2124
@SerializedName("dialog_node")
2225
protected String dialogNode;

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

+30-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2020.
2+
* (C) Copyright IBM Corp. 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
@@ -20,15 +20,18 @@ public class MessageContext extends GenericModel {
2020

2121
protected MessageContextGlobal global;
2222
protected Map<String, MessageContextSkill> skills;
23+
protected Map<String, Object> integrations;
2324

2425
/** Builder. */
2526
public static class Builder {
2627
private MessageContextGlobal global;
2728
private Map<String, MessageContextSkill> skills;
29+
private Map<String, Object> integrations;
2830

2931
private Builder(MessageContext messageContext) {
3032
this.global = messageContext.global;
3133
this.skills = messageContext.skills;
34+
this.integrations = messageContext.integrations;
3235
}
3336

3437
/** Instantiates a new builder. */
@@ -64,11 +67,23 @@ public Builder skills(Map<String, MessageContextSkill> skills) {
6467
this.skills = skills;
6568
return this;
6669
}
70+
71+
/**
72+
* Set the integrations.
73+
*
74+
* @param integrations the integrations
75+
* @return the MessageContext builder
76+
*/
77+
public Builder integrations(Map<String, Object> integrations) {
78+
this.integrations = integrations;
79+
return this;
80+
}
6781
}
6882

6983
protected MessageContext(Builder builder) {
7084
global = builder.global;
7185
skills = builder.skills;
86+
integrations = builder.integrations;
7287
}
7388

7489
/**
@@ -83,7 +98,7 @@ public Builder newBuilder() {
8398
/**
8499
* Gets the global.
85100
*
86-
* <p>Session context data that is shared by all skills used by the Assistant.
101+
* <p>Session context data that is shared by all skills used by the assistant.
87102
*
88103
* @return the global
89104
*/
@@ -104,4 +119,17 @@ public MessageContextGlobal global() {
104119
public Map<String, MessageContextSkill> skills() {
105120
return skills;
106121
}
122+
123+
/**
124+
* Gets the integrations.
125+
*
126+
* <p>An object containing context data that is specific to particular integrations. For more
127+
* information, see the
128+
* [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-dialog-integrations).
129+
*
130+
* @return the integrations
131+
*/
132+
public Map<String, Object> integrations() {
133+
return integrations;
134+
}
107135
}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2020.
2+
* (C) Copyright IBM Corp. 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
@@ -15,7 +15,7 @@
1515
import com.google.gson.annotations.SerializedName;
1616
import com.ibm.cloud.sdk.core.service.model.GenericModel;
1717

18-
/** Session context data that is shared by all skills used by the Assistant. */
18+
/** Session context data that is shared by all skills used by the assistant. */
1919
public class MessageContextGlobal extends GenericModel {
2020

2121
protected MessageContextGlobalSystem system;

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2020.
2+
* (C) Copyright IBM Corp. 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
@@ -15,7 +15,7 @@
1515
import com.google.gson.annotations.SerializedName;
1616
import com.ibm.cloud.sdk.core.service.model.GenericModel;
1717

18-
/** Session context data that is shared by all skills used by the Assistant. */
18+
/** Session context data that is shared by all skills used by the assistant. */
1919
public class MessageContextGlobalStateless extends GenericModel {
2020

2121
protected MessageContextGlobalSystem system;

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

+29-1
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. 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
@@ -77,6 +77,9 @@ public interface Locale {
7777

7878
protected String state;
7979

80+
@SerializedName("skip_user_input")
81+
protected Boolean skipUserInput;
82+
8083
/** Builder. */
8184
public static class Builder {
8285
private String timezone;
@@ -86,6 +89,7 @@ public static class Builder {
8689
private String referenceTime;
8790
private String sessionStartTime;
8891
private String state;
92+
private Boolean skipUserInput;
8993

9094
private Builder(MessageContextGlobalSystem messageContextGlobalSystem) {
9195
this.timezone = messageContextGlobalSystem.timezone;
@@ -95,6 +99,7 @@ private Builder(MessageContextGlobalSystem messageContextGlobalSystem) {
9599
this.referenceTime = messageContextGlobalSystem.referenceTime;
96100
this.sessionStartTime = messageContextGlobalSystem.sessionStartTime;
97101
this.state = messageContextGlobalSystem.state;
102+
this.skipUserInput = messageContextGlobalSystem.skipUserInput;
98103
}
99104

100105
/** Instantiates a new builder. */
@@ -185,6 +190,17 @@ public Builder state(String state) {
185190
this.state = state;
186191
return this;
187192
}
193+
194+
/**
195+
* Set the skipUserInput.
196+
*
197+
* @param skipUserInput the skipUserInput
198+
* @return the MessageContextGlobalSystem builder
199+
*/
200+
public Builder skipUserInput(Boolean skipUserInput) {
201+
this.skipUserInput = skipUserInput;
202+
return this;
203+
}
188204
}
189205

190206
protected MessageContextGlobalSystem(Builder builder) {
@@ -195,6 +211,7 @@ protected MessageContextGlobalSystem(Builder builder) {
195211
referenceTime = builder.referenceTime;
196212
sessionStartTime = builder.sessionStartTime;
197213
state = builder.state;
214+
skipUserInput = builder.skipUserInput;
198215
}
199216

200217
/**
@@ -316,4 +333,15 @@ public String sessionStartTime() {
316333
public String state() {
317334
return state;
318335
}
336+
337+
/**
338+
* Gets the skipUserInput.
339+
*
340+
* <p>For internal use only.
341+
*
342+
* @return the skipUserInput
343+
*/
344+
public Boolean skipUserInput() {
345+
return skipUserInput;
346+
}
319347
}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2019, 2020.
2+
* (C) Copyright IBM Corp. 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
@@ -17,7 +17,7 @@
1717
import java.util.Map;
1818

1919
/**
20-
* Contains information specific to a particular skill used by the Assistant. The property name must
20+
* Contains information specific to a particular skill used by the assistant. The property name must
2121
* be the same as the name of the skill (for example, `main skill`).
2222
*/
2323
public class MessageContextSkill extends GenericModel {

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

+30-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2020.
2+
* (C) Copyright IBM Corp. 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
@@ -20,15 +20,18 @@ public class MessageContextStateless extends GenericModel {
2020

2121
protected MessageContextGlobalStateless global;
2222
protected Map<String, MessageContextSkill> skills;
23+
protected Map<String, Object> integrations;
2324

2425
/** Builder. */
2526
public static class Builder {
2627
private MessageContextGlobalStateless global;
2728
private Map<String, MessageContextSkill> skills;
29+
private Map<String, Object> integrations;
2830

2931
private Builder(MessageContextStateless messageContextStateless) {
3032
this.global = messageContextStateless.global;
3133
this.skills = messageContextStateless.skills;
34+
this.integrations = messageContextStateless.integrations;
3235
}
3336

3437
/** Instantiates a new builder. */
@@ -64,11 +67,23 @@ public Builder skills(Map<String, MessageContextSkill> skills) {
6467
this.skills = skills;
6568
return this;
6669
}
70+
71+
/**
72+
* Set the integrations.
73+
*
74+
* @param integrations the integrations
75+
* @return the MessageContextStateless builder
76+
*/
77+
public Builder integrations(Map<String, Object> integrations) {
78+
this.integrations = integrations;
79+
return this;
80+
}
6781
}
6882

6983
protected MessageContextStateless(Builder builder) {
7084
global = builder.global;
7185
skills = builder.skills;
86+
integrations = builder.integrations;
7287
}
7388

7489
/**
@@ -83,7 +98,7 @@ public Builder newBuilder() {
8398
/**
8499
* Gets the global.
85100
*
86-
* <p>Session context data that is shared by all skills used by the Assistant.
101+
* <p>Session context data that is shared by all skills used by the assistant.
87102
*
88103
* @return the global
89104
*/
@@ -104,4 +119,17 @@ public MessageContextGlobalStateless global() {
104119
public Map<String, MessageContextSkill> skills() {
105120
return skills;
106121
}
122+
123+
/**
124+
* Gets the integrations.
125+
*
126+
* <p>An object containing context data that is specific to particular integrations. For more
127+
* information, see the
128+
* [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-dialog-integrations).
129+
*
130+
* @return the integrations
131+
*/
132+
public Map<String, Object> integrations() {
133+
return integrations;
134+
}
107135
}

0 commit comments

Comments
 (0)