Skip to content

Commit a05017a

Browse files
authored
Merge pull request #466 from watson-developer-cloud/release-may
feat(generation): generated using api def sdk-2021-05-11 & gen 3.31.0
2 parents 593e9b8 + 9d4acea commit a05017a

File tree

147 files changed

+6844
-621
lines changed

Some content is hidden

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

147 files changed

+6844
-621
lines changed

src/IBM.Watson.Assistant.v1/AssistantService.cs

Lines changed: 60 additions & 27 deletions
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. 2018, 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
1616
*/
1717

1818
/**
19-
* IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-be3b4618-20201201-123423
19+
* IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-902c9336-20210513-140138
2020
*/
2121

2222
using System.Collections.Generic;
@@ -81,10 +81,19 @@ public AssistantService(string version, string serviceName, IAuthenticator authe
8181
/// the previous response. (optional)</param>
8282
/// <param name="output">An output object that includes the response to the user, the dialog nodes that were
8383
/// triggered, and messages from the log. (optional)</param>
84+
/// <param name="userId">A string value that identifies the user who is interacting with the workspace. The
85+
/// client must provide a unique identifier for each individual end user who accesses the application. For
86+
/// user-based plans, this user ID is used to identify unique users for billing purposes. This string cannot
87+
/// contain carriage return, newline, or tab characters. If no value is specified in the input, **user_id** is
88+
/// automatically set to the value of **context.conversation_id**.
89+
///
90+
/// **Note:** This property is the same as the **user_id** property in the context metadata. If **user_id** is
91+
/// specified in both locations in a message request, the value specified at the root is used.
92+
/// (optional)</param>
8493
/// <param name="nodesVisitedDetails">Whether to include additional diagnostic information about the dialog
8594
/// nodes that were visited during processing of the message. (optional, default to false)</param>
8695
/// <returns><see cref="MessageResponse" />MessageResponse</returns>
87-
public DetailedResponse<MessageResponse> Message(string workspaceId, MessageInput input = null, List<RuntimeIntent> intents = null, List<RuntimeEntity> entities = null, bool? alternateIntents = null, Context context = null, OutputData output = null, bool? nodesVisitedDetails = null)
96+
public DetailedResponse<MessageResponse> Message(string workspaceId, MessageInput input = null, List<RuntimeIntent> intents = null, List<RuntimeEntity> entities = null, bool? alternateIntents = null, Context context = null, OutputData output = null, bool? nodesVisitedDetails = null, string userId = null)
8897
{
8998
if (string.IsNullOrEmpty(workspaceId))
9099
{
@@ -143,6 +152,10 @@ public DetailedResponse<MessageResponse> Message(string workspaceId, MessageInpu
143152
{
144153
bodyObject["output"] = JToken.FromObject(output);
145154
}
155+
if (!string.IsNullOrEmpty(userId))
156+
{
157+
bodyObject["user_id"] = userId;
158+
}
146159
var httpContent = new StringContent(JsonConvert.SerializeObject(bodyObject), Encoding.UTF8, HttpMediaType.APPLICATION_JSON);
147160
restRequest.WithBodyContent(httpContent);
148161

@@ -170,7 +183,7 @@ public DetailedResponse<MessageResponse> Message(string workspaceId, MessageInpu
170183
/// entities recognized in each input. This method is useful for testing and comparing the performance of
171184
/// different workspaces.
172185
///
173-
/// This method is available only with Premium plans.
186+
/// This method is available only with Enterprise with Data Isolation plans.
174187
/// </summary>
175188
/// <param name="workspaceId">Unique identifier of the workspace.</param>
176189
/// <param name="input">An array of input utterances to classify. (optional)</param>
@@ -3713,26 +3726,31 @@ public class SortValue
37133726
/// workspace](#update-workspace)** method instead.
37143727
/// </summary>
37153728
/// <param name="workspaceId">Unique identifier of the workspace.</param>
3716-
/// <param name="dialogNode">The dialog node ID. This string must conform to the following restrictions:
3717-
/// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.</param>
3729+
/// <param name="dialogNode">The unique ID of the dialog node. This is an internal identifier used to refer to
3730+
/// the dialog node from other dialog nodes and in the diagnostic information included with message responses.
3731+
///
3732+
/// This string can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.</param>
37183733
/// <param name="description">The description of the dialog node. This string cannot contain carriage return,
37193734
/// newline, or tab characters. (optional)</param>
37203735
/// <param name="conditions">The condition that will trigger the dialog node. This string cannot contain
37213736
/// carriage return, newline, or tab characters. (optional)</param>
3722-
/// <param name="parent">The ID of the parent dialog node. This property is omitted if the dialog node has no
3723-
/// parent. (optional)</param>
3724-
/// <param name="previousSibling">The ID of the previous sibling dialog node. This property is omitted if the
3725-
/// dialog node has no previous sibling. (optional)</param>
3737+
/// <param name="parent">The unique ID of the parent dialog node. This property is omitted if the dialog node
3738+
/// has no parent. (optional)</param>
3739+
/// <param name="previousSibling">The unique ID of the previous sibling dialog node. This property is omitted if
3740+
/// the dialog node has no previous sibling. (optional)</param>
37263741
/// <param name="output">The output of the dialog node. For more information about how to specify dialog node
37273742
/// output, see the
37283743
/// [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-dialog-overview#dialog-overview-responses).
37293744
/// (optional)</param>
37303745
/// <param name="context">The context for the dialog node. (optional)</param>
37313746
/// <param name="metadata">The metadata for the dialog node. (optional)</param>
37323747
/// <param name="nextStep">The next step to execute following this dialog node. (optional)</param>
3733-
/// <param name="title">The alias used to identify the dialog node. This string must conform to the following
3734-
/// restrictions:
3735-
/// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
3748+
/// <param name="title">A human-readable name for the dialog node. If the node is included in disambiguation,
3749+
/// this title is used to populate the **label** property of the corresponding suggestion in the `suggestion`
3750+
/// response type (unless it is overridden by the **user_label** property). The title is also used to populate
3751+
/// the **topic** property in the `connect_to_agent` response type.
3752+
///
3753+
/// This string can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
37363754
/// (optional)</param>
37373755
/// <param name="type">How the dialog node is processed. (optional)</param>
37383756
/// <param name="eventName">How an `event_handler` node is processed. (optional)</param>
@@ -3744,7 +3762,8 @@ public class SortValue
37443762
/// <param name="digressOutSlots">Whether the user can digress to top-level nodes while filling out slots.
37453763
/// (optional)</param>
37463764
/// <param name="userLabel">A label that can be displayed externally to describe the purpose of the node to
3747-
/// users. (optional)</param>
3765+
/// users. If set, this label is used to identify the node in disambiguation responses (overriding the value of
3766+
/// the **title** property). (optional)</param>
37483767
/// <param name="disambiguationOptOut">Whether the dialog node should be excluded from disambiguation
37493768
/// suggestions. Valid only when **type**=`standard` or `frame`. (optional, default to false)</param>
37503769
/// <param name="includeAudit">Whether to include the audit properties (`created` and `updated` timestamps) in
@@ -3892,7 +3911,7 @@ public DetailedResponse<DialogNode> CreateDialogNode(string workspaceId, string
38923911
/// Get information about a dialog node.
38933912
/// </summary>
38943913
/// <param name="workspaceId">Unique identifier of the workspace.</param>
3895-
/// <param name="dialogNode">The dialog node ID (for example, `get_order`).</param>
3914+
/// <param name="dialogNode">The dialog node ID (for example, `node_1_1479323581900`).</param>
38963915
/// <param name="includeAudit">Whether to include the audit properties (`created` and `updated` timestamps) in
38973916
/// the response. (optional, default to false)</param>
38983917
/// <returns><see cref="DialogNode" />DialogNode</returns>
@@ -3964,28 +3983,34 @@ public DetailedResponse<DialogNode> GetDialogNode(string workspaceId, string dia
39643983
/// workspace](#update-workspace)** method instead.
39653984
/// </summary>
39663985
/// <param name="workspaceId">Unique identifier of the workspace.</param>
3967-
/// <param name="dialogNode">The dialog node ID (for example, `get_order`).</param>
3968-
/// <param name="newDialogNode">The dialog node ID. This string must conform to the following restrictions:
3969-
/// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
3986+
/// <param name="dialogNode">The dialog node ID (for example, `node_1_1479323581900`).</param>
3987+
/// <param name="newDialogNode">The unique ID of the dialog node. This is an internal identifier used to refer
3988+
/// to the dialog node from other dialog nodes and in the diagnostic information included with message
3989+
/// responses.
3990+
///
3991+
/// This string can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
39703992
/// (optional)</param>
39713993
/// <param name="newDescription">The description of the dialog node. This string cannot contain carriage return,
39723994
/// newline, or tab characters. (optional)</param>
39733995
/// <param name="newConditions">The condition that will trigger the dialog node. This string cannot contain
39743996
/// carriage return, newline, or tab characters. (optional)</param>
3975-
/// <param name="newParent">The ID of the parent dialog node. This property is omitted if the dialog node has no
3976-
/// parent. (optional)</param>
3977-
/// <param name="newPreviousSibling">The ID of the previous sibling dialog node. This property is omitted if the
3978-
/// dialog node has no previous sibling. (optional)</param>
3997+
/// <param name="newParent">The unique ID of the parent dialog node. This property is omitted if the dialog node
3998+
/// has no parent. (optional)</param>
3999+
/// <param name="newPreviousSibling">The unique ID of the previous sibling dialog node. This property is omitted
4000+
/// if the dialog node has no previous sibling. (optional)</param>
39794001
/// <param name="newOutput">The output of the dialog node. For more information about how to specify dialog node
39804002
/// output, see the
39814003
/// [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-dialog-overview#dialog-overview-responses).
39824004
/// (optional)</param>
39834005
/// <param name="newContext">The context for the dialog node. (optional)</param>
39844006
/// <param name="newMetadata">The metadata for the dialog node. (optional)</param>
39854007
/// <param name="newNextStep">The next step to execute following this dialog node. (optional)</param>
3986-
/// <param name="newTitle">The alias used to identify the dialog node. This string must conform to the following
3987-
/// restrictions:
3988-
/// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
4008+
/// <param name="newTitle">A human-readable name for the dialog node. If the node is included in disambiguation,
4009+
/// this title is used to populate the **label** property of the corresponding suggestion in the `suggestion`
4010+
/// response type (unless it is overridden by the **user_label** property). The title is also used to populate
4011+
/// the **topic** property in the `connect_to_agent` response type.
4012+
///
4013+
/// This string can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
39894014
/// (optional)</param>
39904015
/// <param name="newType">How the dialog node is processed. (optional)</param>
39914016
/// <param name="newEventName">How an `event_handler` node is processed. (optional)</param>
@@ -3998,7 +4023,8 @@ public DetailedResponse<DialogNode> GetDialogNode(string workspaceId, string dia
39984023
/// <param name="newDigressOutSlots">Whether the user can digress to top-level nodes while filling out slots.
39994024
/// (optional)</param>
40004025
/// <param name="newUserLabel">A label that can be displayed externally to describe the purpose of the node to
4001-
/// users. (optional)</param>
4026+
/// users. If set, this label is used to identify the node in disambiguation responses (overriding the value of
4027+
/// the **title** property). (optional)</param>
40024028
/// <param name="newDisambiguationOptOut">Whether the dialog node should be excluded from disambiguation
40034029
/// suggestions. Valid only when **type**=`standard` or `frame`. (optional, default to false)</param>
40044030
/// <param name="includeAudit">Whether to include the audit properties (`created` and `updated` timestamps) in
@@ -4150,7 +4176,7 @@ public DetailedResponse<DialogNode> UpdateDialogNode(string workspaceId, string
41504176
/// Delete a dialog node from a workspace.
41514177
/// </summary>
41524178
/// <param name="workspaceId">Unique identifier of the workspace.</param>
4153-
/// <param name="dialogNode">The dialog node ID (for example, `get_order`).</param>
4179+
/// <param name="dialogNode">The dialog node ID (for example, `node_1_1479323581900`).</param>
41544180
/// <returns><see cref="object" />object</returns>
41554181
public DetailedResponse<object> DeleteDialogNode(string workspaceId, string dialogNode)
41564182
{
@@ -4210,6 +4236,8 @@ public DetailedResponse<object> DeleteDialogNode(string workspaceId, string dial
42104236
/// List log events in a workspace.
42114237
///
42124238
/// List the events from the log of a specific workspace.
4239+
///
4240+
/// This method requires Manager access.
42134241
/// </summary>
42144242
/// <param name="workspaceId">Unique identifier of the workspace.</param>
42154243
/// <param name="sort">How to sort the returned log events. You can sort by **request_timestamp**. To reverse
@@ -4366,6 +4394,11 @@ public DetailedResponse<LogCollection> ListAllLogs(string filter, string sort =
43664394
/// You associate a customer ID with data by passing the `X-Watson-Metadata` header with a request that passes
43674395
/// data. For more information about personal data and customer IDs, see [Information
43684396
/// security](https://cloud.ibm.com/docs/assistant?topic=assistant-information-security#information-security).
4397+
///
4398+
/// **Note:** This operation is intended only for deleting data associated with a single specific customer, not
4399+
/// for deleting data associated with multiple customers or for any other purpose. For more information, see
4400+
/// [Labeling and deleting data in Watson
4401+
/// Assistant](https://cloud.ibm.com/docs/assistant?topic=assistant-information-security#information-security-gdpr-wa).
43694402
/// </summary>
43704403
/// <param name="customerId">The customer ID for which all data is to be deleted.</param>
43714404
/// <returns><see cref="object" />object</returns>

src/IBM.Watson.Assistant.v1/IAssistantService.cs

Lines changed: 2 additions & 2 deletions
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. 2018, 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ namespace IBM.Watson.Assistant.v1
2323
{
2424
public partial interface IAssistantService
2525
{
26-
DetailedResponse<MessageResponse> Message(string workspaceId, MessageInput input = null, List<RuntimeIntent> intents = null, List<RuntimeEntity> entities = null, bool? alternateIntents = null, Context context = null, OutputData output = null, bool? nodesVisitedDetails = null);
26+
DetailedResponse<MessageResponse> Message(string workspaceId, MessageInput input = null, List<RuntimeIntent> intents = null, List<RuntimeEntity> entities = null, bool? alternateIntents = null, Context context = null, OutputData output = null, bool? nodesVisitedDetails = null, string userId = null);
2727
DetailedResponse<BulkClassifyResponse> BulkClassify(string workspaceId, List<BulkClassifyUtterance> input = null);
2828
DetailedResponse<WorkspaceCollection> ListWorkspaces(long? pageLimit = null, bool? includeCount = null, string sort = null, string cursor = null, bool? includeAudit = null);
2929
DetailedResponse<Workspace> CreateWorkspace(string name = null, string description = null, string language = null, List<DialogNode> dialogNodes = null, List<Counterexample> counterexamples = null, Dictionary<string, object> metadata = null, bool? learningOptOut = null, WorkspaceSystemSettings systemSettings = null, List<Webhook> webhooks = null, List<CreateIntent> intents = null, List<CreateEntity> entities = null, bool? includeAudit = null);

src/IBM.Watson.Assistant.v1/IBM.Watson.Assistant.v1.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@
3535

3636
<ItemGroup>
3737
<PackageReference Include="IBM.Cloud.SDK.Core" Version="1.2.0" />
38-
<PackageReference Include="IBM.Watson.Common" Version="5.1.0" />
38+
<PackageReference Include="IBM.Watson.Common" Version="5.2.0" />
3939
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
4040
<PackageReference Include="JsonSubTypes" Version="1.6.0" />
4141
</ItemGroup>
42+
4243
</Project>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/**
2+
* (C) Copyright IBM Corp. 2021.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
using Newtonsoft.Json;
19+
20+
namespace IBM.Watson.Assistant.v1.Model
21+
{
22+
/// <summary>
23+
/// Information used by an integration to transfer the conversation to a different channel.
24+
/// </summary>
25+
public class ChannelTransferInfo
26+
{
27+
/// <summary>
28+
/// An object specifying target channels available for the transfer. Each property of this object represents an
29+
/// available transfer target. Currently, the only supported property is **chat**, representing the web chat
30+
/// integration.
31+
/// </summary>
32+
[JsonProperty("target", NullValueHandling = NullValueHandling.Ignore)]
33+
public ChannelTransferTarget Target { get; set; }
34+
}
35+
36+
}

0 commit comments

Comments
 (0)