diff --git a/src/IBM.Watson.Assistant.v1/Model/DialogNodeOutputGeneric.cs b/src/IBM.Watson.Assistant.v1/Model/DialogNodeOutputGeneric.cs index 39ad9b956d..81c764a6d0 100644 --- a/src/IBM.Watson.Assistant.v1/Model/DialogNodeOutputGeneric.cs +++ b/src/IBM.Watson.Assistant.v1/Model/DialogNodeOutputGeneric.cs @@ -1,5 +1,5 @@ /** -* (C) Copyright IBM Corp. 2018, 2021. +* (C) Copyright IBM Corp. 2022. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -32,16 +32,22 @@ namespace IBM.Watson.Assistant.v1.Model /// - DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill /// - DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer /// - DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined + /// - DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo + /// - DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio + /// - DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe /// [JsonConverter(typeof(JsonSubtypes), "response_type")] + [JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio), "audio")] [JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer), "channel_transfer")] [JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent), "connect_to_agent")] + [JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe), "iframe")] [JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeImage), "image")] [JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeOption), "option")] [JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypePause), "pause")] [JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill), "search_skill")] [JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeText), "text")] [JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined), "user_defined")] + [JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo), "video")] public class DialogNodeOutputGeneric { /// This ctor is protected to prevent instantiation of this base class. @@ -54,6 +60,9 @@ public class DialogNodeOutputGeneric /// - DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill /// - DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer /// - DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined + /// - DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo + /// - DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio + /// - DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe protected DialogNodeOutputGeneric() { } @@ -233,6 +242,16 @@ public class QueryTypeEnumValue /// [JsonProperty("user_defined", NullValueHandling = NullValueHandling.Ignore)] public Dictionary UserDefined { get; protected set; } + /// + /// For internal use only. + /// + [JsonProperty("channel_options", NullValueHandling = NullValueHandling.Ignore)] + public object ChannelOptions { get; protected set; } + /// + /// The URL of an image that shows a preview of the embedded content. + /// + [JsonProperty("image_url", NullValueHandling = NullValueHandling.Ignore)] + public string ImageUrl { get; protected set; } } } diff --git a/src/IBM.Watson.Assistant.v1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio.cs b/src/IBM.Watson.Assistant.v1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio.cs new file mode 100644 index 0000000000..f3ad77b40e --- /dev/null +++ b/src/IBM.Watson.Assistant.v1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio.cs @@ -0,0 +1,96 @@ +/** +* (C) Copyright IBM Corp. 2022. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +*/ + +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace IBM.Watson.Assistant.v1.Model +{ + /// + /// DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio. + /// + public class DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio : DialogNodeOutputGeneric + { + /// + /// The type of response returned by the dialog node. The specified response type must be supported by the + /// client application or channel. + /// + [JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)] + public new string ResponseType + { + get { return base.ResponseType; } + set { base.ResponseType = value; } + } + /// + /// The `https:` URL of the audio clip. + /// + [JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)] + public new string Source + { + get { return base.Source; } + set { base.Source = value; } + } + /// + /// An optional title to show before the response. + /// + [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)] + public new string Title + { + get { return base.Title; } + set { base.Title = value; } + } + /// + /// An optional description to show with the response. + /// + [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] + public new string Description + { + get { return base.Description; } + set { base.Description = value; } + } + /// + /// An array of objects specifying channels for which the response is intended. If **channels** is present, the + /// response is intended for a built-in integration and should not be handled by an API client. + /// + [JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)] + public new List Channels + { + get { return base.Channels; } + set { base.Channels = value; } + } + /// + /// For internal use only. + /// + [JsonProperty("channel_options", NullValueHandling = NullValueHandling.Ignore)] + public new object ChannelOptions + { + get { return base.ChannelOptions; } + set { base.ChannelOptions = value; } + } + /// + /// Descriptive text that can be used for screen readers or other situations where the audio player cannot be + /// seen. + /// + [JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)] + public new string AltText + { + get { return base.AltText; } + set { base.AltText = value; } + } + } + +} diff --git a/src/IBM.Watson.Assistant.v1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe.cs b/src/IBM.Watson.Assistant.v1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe.cs new file mode 100644 index 0000000000..e4bd4f3447 --- /dev/null +++ b/src/IBM.Watson.Assistant.v1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe.cs @@ -0,0 +1,86 @@ +/** +* (C) Copyright IBM Corp. 2022. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +*/ + +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace IBM.Watson.Assistant.v1.Model +{ + /// + /// DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe. + /// + public class DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe : DialogNodeOutputGeneric + { + /// + /// The type of response returned by the dialog node. The specified response type must be supported by the + /// client application or channel. + /// + [JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)] + public new string ResponseType + { + get { return base.ResponseType; } + set { base.ResponseType = value; } + } + /// + /// The `https:` URL of the embeddable content. + /// + [JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)] + public new string Source + { + get { return base.Source; } + set { base.Source = value; } + } + /// + /// An optional title to show before the response. + /// + [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)] + public new string Title + { + get { return base.Title; } + set { base.Title = value; } + } + /// + /// An optional description to show with the response. + /// + [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] + public new string Description + { + get { return base.Description; } + set { base.Description = value; } + } + /// + /// The URL of an image that shows a preview of the embedded content. + /// + [JsonProperty("image_url", NullValueHandling = NullValueHandling.Ignore)] + public new string ImageUrl + { + get { return base.ImageUrl; } + set { base.ImageUrl = value; } + } + /// + /// An array of objects specifying channels for which the response is intended. If **channels** is present, the + /// response is intended for a built-in integration and should not be handled by an API client. + /// + [JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)] + public new List Channels + { + get { return base.Channels; } + set { base.Channels = value; } + } + } + +} diff --git a/src/IBM.Watson.Assistant.v1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo.cs b/src/IBM.Watson.Assistant.v1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo.cs new file mode 100644 index 0000000000..b57af6bab4 --- /dev/null +++ b/src/IBM.Watson.Assistant.v1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo.cs @@ -0,0 +1,95 @@ +/** +* (C) Copyright IBM Corp. 2022. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +*/ + +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace IBM.Watson.Assistant.v1.Model +{ + /// + /// DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo. + /// + public class DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo : DialogNodeOutputGeneric + { + /// + /// The type of response returned by the dialog node. The specified response type must be supported by the + /// client application or channel. + /// + [JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)] + public new string ResponseType + { + get { return base.ResponseType; } + set { base.ResponseType = value; } + } + /// + /// The `https:` URL of the video. + /// + [JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)] + public new string Source + { + get { return base.Source; } + set { base.Source = value; } + } + /// + /// An optional title to show before the response. + /// + [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)] + public new string Title + { + get { return base.Title; } + set { base.Title = value; } + } + /// + /// An optional description to show with the response. + /// + [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] + public new string Description + { + get { return base.Description; } + set { base.Description = value; } + } + /// + /// An array of objects specifying channels for which the response is intended. If **channels** is present, the + /// response is intended for a built-in integration and should not be handled by an API client. + /// + [JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)] + public new List Channels + { + get { return base.Channels; } + set { base.Channels = value; } + } + /// + /// For internal use only. + /// + [JsonProperty("channel_options", NullValueHandling = NullValueHandling.Ignore)] + public new object ChannelOptions + { + get { return base.ChannelOptions; } + set { base.ChannelOptions = value; } + } + /// + /// Descriptive text that can be used for screen readers or other situations where the video cannot be seen. + /// + [JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)] + public new string AltText + { + get { return base.AltText; } + set { base.AltText = value; } + } + } + +} diff --git a/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGeneric.cs b/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGeneric.cs index 6b5ae7287d..34a0af1adb 100644 --- a/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGeneric.cs +++ b/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGeneric.cs @@ -127,7 +127,7 @@ public class PreferenceEnumValue [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)] public string Title { get; protected set; } /// - /// The description to show with the the response. + /// The description to show with the response. /// [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] public string Description { get; protected set; } diff --git a/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeAudio.cs b/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeAudio.cs index 520a663b15..e9599bb02e 100644 --- a/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeAudio.cs +++ b/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeAudio.cs @@ -54,7 +54,7 @@ public class RuntimeResponseGenericRuntimeResponseTypeAudio : RuntimeResponseGen set { base.Title = value; } } /// - /// The description to show with the the response. + /// The description to show with the response. /// [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] public new string Description diff --git a/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeIframe.cs b/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeIframe.cs index 2df8926960..67d7b9f8bf 100644 --- a/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeIframe.cs +++ b/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeIframe.cs @@ -54,7 +54,7 @@ public class RuntimeResponseGenericRuntimeResponseTypeIframe : RuntimeResponseGe set { base.Title = value; } } /// - /// The description to show with the the response. + /// The description to show with the response. /// [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] public new string Description diff --git a/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeImage.cs b/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeImage.cs index 5e813b7cd3..ed79d86aae 100644 --- a/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeImage.cs +++ b/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeImage.cs @@ -1,5 +1,5 @@ /** -* (C) Copyright IBM Corp. 2020, 2021. +* (C) Copyright IBM Corp. 2022. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -54,7 +54,7 @@ public class RuntimeResponseGenericRuntimeResponseTypeImage : RuntimeResponseGen set { base.Title = value; } } /// - /// The description to show with the the response. + /// The description to show with the response. /// [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] public new string Description diff --git a/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeOption.cs b/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeOption.cs index 9c13e572a9..e194f3320d 100644 --- a/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeOption.cs +++ b/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeOption.cs @@ -1,5 +1,5 @@ /** -* (C) Copyright IBM Corp. 2020, 2021. +* (C) Copyright IBM Corp. 2022. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -61,7 +61,7 @@ public class PreferenceEnumValue set { base.Title = value; } } /// - /// The description to show with the the response. + /// The description to show with the response. /// [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] public new string Description diff --git a/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeVideo.cs b/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeVideo.cs index 5f7a97e459..c89ced548c 100644 --- a/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeVideo.cs +++ b/src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGenericRuntimeResponseTypeVideo.cs @@ -54,7 +54,7 @@ public class RuntimeResponseGenericRuntimeResponseTypeVideo : RuntimeResponseGen set { base.Title = value; } } /// - /// The description to show with the the response. + /// The description to show with the response. /// [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] public new string Description diff --git a/src/IBM.Watson.Assistant.v1/Model/WorkspaceSystemSettings.cs b/src/IBM.Watson.Assistant.v1/Model/WorkspaceSystemSettings.cs index 7543dd77ea..919dbc1463 100644 --- a/src/IBM.Watson.Assistant.v1/Model/WorkspaceSystemSettings.cs +++ b/src/IBM.Watson.Assistant.v1/Model/WorkspaceSystemSettings.cs @@ -1,5 +1,5 @@ /** -* (C) Copyright IBM Corp. 2018, 2020. +* (C) Copyright IBM Corp. 2022. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ */ using System.Collections.Generic; +using IBM.Cloud.SDK.Core.Model; using Newtonsoft.Json; namespace IBM.Watson.Assistant.v1.Model @@ -23,7 +24,7 @@ namespace IBM.Watson.Assistant.v1.Model /// /// Global settings for the workspace. /// - public class WorkspaceSystemSettings + public class WorkspaceSystemSettings : DynamicModel { /// /// Workspace settings related to the Watson Assistant user interface.