Skip to content

Commit 44079dd

Browse files
committed
feat(generation): generated using api def sdk-2021-05-11-rerelease and gen 3.31.0
1 parent 4ccfaa2 commit 44079dd

File tree

159 files changed

+6074
-557
lines changed

Some content is hidden

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

159 files changed

+6074
-557
lines changed

Scripts/Services/Assistant/V1/AssistantService.cs

Lines changed: 58 additions & 27 deletions
Large diffs are not rendered by default.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
}

Scripts/Services/Assistant/V1/Model/ChannelTransferInfo.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
/// An object specifying target channels available for the transfer. Each property of this object represents an
24+
/// available transfer target. Currently, the only supported property is **chat**, representing the web chat
25+
/// integration.
26+
/// </summary>
27+
public class ChannelTransferTarget
28+
{
29+
/// <summary>
30+
/// Information for transferring to the web chat integration.
31+
/// </summary>
32+
[JsonProperty("chat", NullValueHandling = NullValueHandling.Ignore)]
33+
public ChannelTransferTargetChat Chat { get; set; }
34+
}
35+
}

Scripts/Services/Assistant/V1/Model/ChannelTransferTarget.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 for transferring to the web chat integration.
24+
/// </summary>
25+
public class ChannelTransferTargetChat
26+
{
27+
/// <summary>
28+
/// The URL of the target web chat.
29+
/// </summary>
30+
[JsonProperty("url", NullValueHandling = NullValueHandling.Ignore)]
31+
public string Url { get; set; }
32+
}
33+
}

Scripts/Services/Assistant/V1/Model/ChannelTransferTargetChat.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Scripts/Services/Assistant/V1/Model/DialogNode.cs

Lines changed: 16 additions & 9 deletions
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. 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.
@@ -193,8 +193,10 @@ public class DigressOutSlotsValue
193193
[JsonProperty("digress_out_slots", NullValueHandling = NullValueHandling.Ignore)]
194194
public string DigressOutSlots { get; set; }
195195
/// <summary>
196-
/// The dialog node ID. This string must conform to the following restrictions:
197-
/// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
196+
/// The unique ID of the dialog node. This is an internal identifier used to refer to the dialog node from other
197+
/// dialog nodes and in the diagnostic information included with message responses.
198+
///
199+
/// This string can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
198200
/// </summary>
199201
[JsonProperty("dialog_node", NullValueHandling = NullValueHandling.Ignore)]
200202
public string _DialogNode { get; set; }
@@ -210,13 +212,13 @@ public class DigressOutSlotsValue
210212
[JsonProperty("conditions", NullValueHandling = NullValueHandling.Ignore)]
211213
public string Conditions { get; set; }
212214
/// <summary>
213-
/// The ID of the parent dialog node. This property is omitted if the dialog node has no parent.
215+
/// The unique ID of the parent dialog node. This property is omitted if the dialog node has no parent.
214216
/// </summary>
215217
[JsonProperty("parent", NullValueHandling = NullValueHandling.Ignore)]
216218
public string Parent { get; set; }
217219
/// <summary>
218-
/// The ID of the previous sibling dialog node. This property is omitted if the dialog node has no previous
219-
/// sibling.
220+
/// The unique ID of the previous sibling dialog node. This property is omitted if the dialog node has no
221+
/// previous sibling.
220222
/// </summary>
221223
[JsonProperty("previous_sibling", NullValueHandling = NullValueHandling.Ignore)]
222224
public string PreviousSibling { get; set; }
@@ -242,8 +244,12 @@ public class DigressOutSlotsValue
242244
[JsonProperty("next_step", NullValueHandling = NullValueHandling.Ignore)]
243245
public DialogNodeNextStep NextStep { get; set; }
244246
/// <summary>
245-
/// The alias used to identify the dialog node. This string must conform to the following restrictions:
246-
/// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
247+
/// A human-readable name for the dialog node. If the node is included in disambiguation, this title is used to
248+
/// populate the **label** property of the corresponding suggestion in the `suggestion` response type (unless it
249+
/// is overridden by the **user_label** property). The title is also used to populate the **topic** property in
250+
/// the `connect_to_agent` response type.
251+
///
252+
/// This string can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
247253
/// </summary>
248254
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
249255
public string Title { get; set; }
@@ -258,7 +264,8 @@ public class DigressOutSlotsValue
258264
[JsonProperty("actions", NullValueHandling = NullValueHandling.Ignore)]
259265
public List<DialogNodeAction> Actions { get; set; }
260266
/// <summary>
261-
/// A label that can be displayed externally to describe the purpose of the node to users.
267+
/// A label that can be displayed externally to describe the purpose of the node to users. If set, this label is
268+
/// used to identify the node in disambiguation responses (overriding the value of the **title** property).
262269
/// </summary>
263270
[JsonProperty("user_label", NullValueHandling = NullValueHandling.Ignore)]
264271
public string UserLabel { get; set; }

Scripts/Services/Assistant/V1/Model/DialogNodeNextStep.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 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.
@@ -129,7 +129,7 @@ public class SelectorValue
129129
[JsonProperty("selector", NullValueHandling = NullValueHandling.Ignore)]
130130
public string Selector { get; set; }
131131
/// <summary>
132-
/// The ID of the dialog node to process next. This parameter is required if **behavior**=`jump_to`.
132+
/// The unique ID of the dialog node to process next. This parameter is required if **behavior**=`jump_to`.
133133
/// </summary>
134134
[JsonProperty("dialog_node", NullValueHandling = NullValueHandling.Ignore)]
135135
public string DialogNode { get; set; }

Scripts/Services/Assistant/V1/Model/DialogNodeOutputGeneric.cs

Lines changed: 29 additions & 21 deletions
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. 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.
@@ -30,14 +30,18 @@ namespace IBM.Watson.Assistant.V1.Model
3030
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeOption
3131
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent
3232
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill
33+
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer
34+
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined
3335
/// </summary>
3436
[JsonConverter(typeof(JsonSubtypes), "response_type")]
37+
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer), "channel_transfer")]
3538
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent), "connect_to_agent")]
3639
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeImage), "image")]
3740
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeOption), "option")]
3841
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypePause), "pause")]
3942
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill), "search_skill")]
4043
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeText), "text")]
44+
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined), "user_defined")]
4145
public class DialogNodeOutputGeneric
4246
{
4347
/// This ctor is protected to prevent instantiation of this base class.
@@ -48,23 +52,12 @@ public class DialogNodeOutputGeneric
4852
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeOption
4953
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent
5054
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill
55+
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer
56+
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined
5157
protected DialogNodeOutputGeneric()
5258
{
5359
}
5460

55-
/// <summary>
56-
/// The type of response returned by the dialog node. The specified response type must be supported by the
57-
/// client application or channel.
58-
/// </summary>
59-
public class ResponseTypeValue
60-
{
61-
/// <summary>
62-
/// Constant TEXT for text
63-
/// </summary>
64-
public const string TEXT = "text";
65-
66-
}
67-
6861
/// <summary>
6962
/// How a response is selected from the list, if more than one response is specified.
7063
/// </summary>
@@ -117,13 +110,6 @@ public class QueryTypeValue
117110

118111
}
119112

120-
/// <summary>
121-
/// The type of response returned by the dialog node. The specified response type must be supported by the
122-
/// client application or channel.
123-
/// Constants for possible values can be found using DialogNodeOutputGeneric.ResponseTypeValue
124-
/// </summary>
125-
[JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)]
126-
public string ResponseType { get; set; }
127113
/// <summary>
128114
/// How a response is selected from the list, if more than one response is specified.
129115
/// Constants for possible values can be found using DialogNodeOutputGeneric.SelectionPolicyValue
@@ -143,6 +129,12 @@ public class QueryTypeValue
143129
[JsonProperty("query_type", NullValueHandling = NullValueHandling.Ignore)]
144130
public string QueryType { get; set; }
145131
/// <summary>
132+
/// The type of response returned by the dialog node. The specified response type must be supported by the
133+
/// client application or channel.
134+
/// </summary>
135+
[JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)]
136+
public string ResponseType { get; protected set; }
137+
/// <summary>
146138
/// A list of one or more objects defining text responses.
147139
/// </summary>
148140
[JsonProperty("values", NullValueHandling = NullValueHandling.Ignore)]
@@ -153,6 +145,11 @@ public class QueryTypeValue
153145
[JsonProperty("delimiter", NullValueHandling = NullValueHandling.Ignore)]
154146
public string Delimiter { get; protected set; }
155147
/// <summary>
148+
/// An array of objects specifying channels for which the response is intended.
149+
/// </summary>
150+
[JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
151+
public List<ResponseGenericChannel> Channels { get; protected set; }
152+
/// <summary>
156153
/// How long to pause, in milliseconds. The valid values are from 0 to 10000.
157154
/// </summary>
158155
[JsonProperty("time", NullValueHandling = NullValueHandling.Ignore)]
@@ -225,5 +222,16 @@ public class QueryTypeValue
225222
/// </summary>
226223
[JsonProperty("discovery_version", NullValueHandling = NullValueHandling.Ignore)]
227224
public string DiscoveryVersion { get; protected set; }
225+
/// <summary>
226+
/// The message to display to the user when initiating a channel transfer.
227+
/// </summary>
228+
[JsonProperty("message_to_user", NullValueHandling = NullValueHandling.Ignore)]
229+
public string MessageToUser { get; protected set; }
230+
/// <summary>
231+
/// An object containing any properties for the user-defined response type. The total size of this object cannot
232+
/// exceed 5000 bytes.
233+
/// </summary>
234+
[JsonProperty("user_defined", NullValueHandling = NullValueHandling.Ignore)]
235+
public Dictionary<string, object> UserDefined { get; protected set; }
228236
}
229237
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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 System.Collections.Generic;
19+
using Newtonsoft.Json;
20+
21+
namespace IBM.Watson.Assistant.V1.Model
22+
{
23+
/// <summary>
24+
/// DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer.
25+
/// </summary>
26+
public class DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer : DialogNodeOutputGeneric
27+
{
28+
/// <summary>
29+
/// The type of response returned by the dialog node. The specified response type must be supported by the
30+
/// client application or channel.
31+
/// </summary>
32+
[JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)]
33+
public new string ResponseType
34+
{
35+
get { return base.ResponseType; }
36+
set { base.ResponseType = value; }
37+
}
38+
/// <summary>
39+
/// The message to display to the user when initiating a channel transfer.
40+
/// </summary>
41+
[JsonProperty("message_to_user", NullValueHandling = NullValueHandling.Ignore)]
42+
public new string MessageToUser
43+
{
44+
get { return base.MessageToUser; }
45+
set { base.MessageToUser = value; }
46+
}
47+
/// <summary>
48+
/// Information used by an integration to transfer the conversation to a different channel.
49+
/// </summary>
50+
[JsonProperty("transfer_info", NullValueHandling = NullValueHandling.Ignore)]
51+
public new ChannelTransferInfo TransferInfo
52+
{
53+
get { return base.TransferInfo; }
54+
set { base.TransferInfo = value; }
55+
}
56+
/// <summary>
57+
/// An array of objects specifying channels for which the response is intended.
58+
/// </summary>
59+
[JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
60+
public new List<ResponseGenericChannel> Channels
61+
{
62+
get { return base.Channels; }
63+
set { base.Channels = value; }
64+
}
65+
}
66+
}

0 commit comments

Comments
 (0)