Skip to content

Commit 3cb486e

Browse files
committed
feat(assistant-v1): generated using api-def: master & generator: 3.46.0
OutputData: BREAKING required text property removed, RuntimeEntity: BREAKING optional metadataproperty removed, RuntimeResponseGeneric: Three new response types added, Workspace: workspaceIDchanged from required to optional BREAKING CHANGE: OutputData: BREAKING required text property removed, RuntimeEntity: BREAKING optional metadata property removed
1 parent aa9800e commit 3cb486e

14 files changed

+605
-31
lines changed

Scripts/Services/Assistant/V1/AssistantService.cs

+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. 2022.
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: 3.38.0-07189efd-20210827-205025
19+
* IBM OpenAPI SDK Code Generator Version: 3.46.0-a4e29da0-20220224-210428
2020
*/
2121

2222
using System.Collections.Generic;
@@ -43,7 +43,7 @@ public partial class AssistantService : BaseService
4343
/// <summary>
4444
/// Gets and sets the version of the service.
4545
/// Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The current version is
46-
/// `2021-06-14`.
46+
/// `2021-11-27`.
4747
/// </summary>
4848
public string Version
4949
{
@@ -68,30 +68,30 @@ public bool DisableSslVerification
6868
/// AssistantService constructor.
6969
/// </summary>
7070
/// <param name="version">Release date of the API version you want to use. Specify dates in YYYY-MM-DD format.
71-
/// The current version is `2021-06-14`.</param>
71+
/// The current version is `2021-11-27`.</param>
7272
public AssistantService(string version) : this(version, defaultServiceName, ConfigBasedAuthenticatorFactory.GetAuthenticator(defaultServiceName)) {}
7373

7474
/// <summary>
7575
/// AssistantService constructor.
7676
/// </summary>
7777
/// <param name="version">Release date of the API version you want to use. Specify dates in YYYY-MM-DD format.
78-
/// The current version is `2021-06-14`.</param>
78+
/// The current version is `2021-11-27`.</param>
7979
/// <param name="authenticator">The service authenticator.</param>
8080
public AssistantService(string version, Authenticator authenticator) : this(version, defaultServiceName, authenticator) {}
8181

8282
/// <summary>
8383
/// AssistantService constructor.
8484
/// </summary>
8585
/// <param name="version">Release date of the API version you want to use. Specify dates in YYYY-MM-DD format.
86-
/// The current version is `2021-06-14`.</param>
86+
/// The current version is `2021-11-27`.</param>
8787
/// <param name="serviceName">The service name to be used when configuring the client instance</param>
8888
public AssistantService(string version, string serviceName) : this(version, serviceName, ConfigBasedAuthenticatorFactory.GetAuthenticator(serviceName)) {}
8989

9090
/// <summary>
9191
/// AssistantService constructor.
9292
/// </summary>
9393
/// <param name="version">Release date of the API version you want to use. Specify dates in YYYY-MM-DD format.
94-
/// The current version is `2021-06-14`.</param>
94+
/// The current version is `2021-11-27`.</param>
9595
/// <param name="serviceName">The service name to be used when configuring the client instance</param>
9696
/// <param name="authenticator">The service authenticator.</param>
9797
public AssistantService(string version, string serviceName, Authenticator authenticator) : base(authenticator, serviceName)

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

+20-1
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");
55
* you may not use this file except in compliance with the License.
@@ -32,16 +32,22 @@ namespace IBM.Watson.Assistant.V1.Model
3232
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill
3333
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer
3434
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined
35+
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo
36+
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio
37+
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe
3538
/// </summary>
3639
[JsonConverter(typeof(JsonSubtypes), "response_type")]
40+
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio), "audio")]
3741
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer), "channel_transfer")]
3842
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent), "connect_to_agent")]
43+
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe), "iframe")]
3944
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeImage), "image")]
4045
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeOption), "option")]
4146
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypePause), "pause")]
4247
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill), "search_skill")]
4348
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeText), "text")]
4449
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined), "user_defined")]
50+
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo), "video")]
4551
public class DialogNodeOutputGeneric
4652
{
4753
/// This ctor is protected to prevent instantiation of this base class.
@@ -54,6 +60,9 @@ public class DialogNodeOutputGeneric
5460
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill
5561
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer
5662
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined
63+
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo
64+
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio
65+
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe
5766
protected DialogNodeOutputGeneric()
5867
{
5968
}
@@ -233,5 +242,15 @@ public class QueryTypeValue
233242
/// </summary>
234243
[JsonProperty("user_defined", NullValueHandling = NullValueHandling.Ignore)]
235244
public Dictionary<string, object> UserDefined { get; protected set; }
245+
/// <summary>
246+
/// For internal use only.
247+
/// </summary>
248+
[JsonProperty("channel_options", NullValueHandling = NullValueHandling.Ignore)]
249+
public object ChannelOptions { get; protected set; }
250+
/// <summary>
251+
/// The URL of an image that shows a preview of the embedded content.
252+
/// </summary>
253+
[JsonProperty("image_url", NullValueHandling = NullValueHandling.Ignore)]
254+
public string ImageUrl { get; protected set; }
236255
}
237256
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
/**
2+
* (C) Copyright IBM Corp. 2022.
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+
/// DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio.
25+
/// </summary>
26+
public class DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio : 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 `https:` URL of the audio clip.
40+
/// </summary>
41+
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
42+
public new string Source
43+
{
44+
get { return base.Source; }
45+
set { base.Source = value; }
46+
}
47+
/// <summary>
48+
/// An optional title to show before the response.
49+
/// </summary>
50+
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
51+
public new string Title
52+
{
53+
get { return base.Title; }
54+
set { base.Title = value; }
55+
}
56+
/// <summary>
57+
/// An optional description to show with the response.
58+
/// </summary>
59+
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
60+
public new string Description
61+
{
62+
get { return base.Description; }
63+
set { base.Description = value; }
64+
}
65+
/// <summary>
66+
/// An array of objects specifying channels for which the response is intended. If **channels** is present, the
67+
/// response is intended for a built-in integration and should not be handled by an API client.
68+
/// </summary>
69+
[JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
70+
public new List<ResponseGenericChannel> Channels
71+
{
72+
get { return base.Channels; }
73+
set { base.Channels = value; }
74+
}
75+
/// <summary>
76+
/// For internal use only.
77+
/// </summary>
78+
[JsonProperty("channel_options", NullValueHandling = NullValueHandling.Ignore)]
79+
public new object ChannelOptions
80+
{
81+
get { return base.ChannelOptions; }
82+
set { base.ChannelOptions = value; }
83+
}
84+
/// <summary>
85+
/// Descriptive text that can be used for screen readers or other situations where the audio player cannot be
86+
/// seen.
87+
/// </summary>
88+
[JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
89+
public new string AltText
90+
{
91+
get { return base.AltText; }
92+
set { base.AltText = value; }
93+
}
94+
}
95+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
/**
2+
* (C) Copyright IBM Corp. 2022.
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+
/// DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe.
25+
/// </summary>
26+
public class DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe : 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 `https:` URL of the embeddable content.
40+
/// </summary>
41+
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
42+
public new string Source
43+
{
44+
get { return base.Source; }
45+
set { base.Source = value; }
46+
}
47+
/// <summary>
48+
/// An optional title to show before the response.
49+
/// </summary>
50+
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
51+
public new string Title
52+
{
53+
get { return base.Title; }
54+
set { base.Title = value; }
55+
}
56+
/// <summary>
57+
/// An optional description to show with the response.
58+
/// </summary>
59+
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
60+
public new string Description
61+
{
62+
get { return base.Description; }
63+
set { base.Description = value; }
64+
}
65+
/// <summary>
66+
/// The URL of an image that shows a preview of the embedded content.
67+
/// </summary>
68+
[JsonProperty("image_url", NullValueHandling = NullValueHandling.Ignore)]
69+
public new string ImageUrl
70+
{
71+
get { return base.ImageUrl; }
72+
set { base.ImageUrl = value; }
73+
}
74+
/// <summary>
75+
/// An array of objects specifying channels for which the response is intended. If **channels** is present, the
76+
/// response is intended for a built-in integration and should not be handled by an API client.
77+
/// </summary>
78+
[JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
79+
public new List<ResponseGenericChannel> Channels
80+
{
81+
get { return base.Channels; }
82+
set { base.Channels = value; }
83+
}
84+
}
85+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/**
2+
* (C) Copyright IBM Corp. 2022.
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+
/// DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo.
25+
/// </summary>
26+
public class DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo : 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 `https:` URL of the video.
40+
/// </summary>
41+
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
42+
public new string Source
43+
{
44+
get { return base.Source; }
45+
set { base.Source = value; }
46+
}
47+
/// <summary>
48+
/// An optional title to show before the response.
49+
/// </summary>
50+
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
51+
public new string Title
52+
{
53+
get { return base.Title; }
54+
set { base.Title = value; }
55+
}
56+
/// <summary>
57+
/// An optional description to show with the response.
58+
/// </summary>
59+
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
60+
public new string Description
61+
{
62+
get { return base.Description; }
63+
set { base.Description = value; }
64+
}
65+
/// <summary>
66+
/// An array of objects specifying channels for which the response is intended. If **channels** is present, the
67+
/// response is intended for a built-in integration and should not be handled by an API client.
68+
/// </summary>
69+
[JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
70+
public new List<ResponseGenericChannel> Channels
71+
{
72+
get { return base.Channels; }
73+
set { base.Channels = value; }
74+
}
75+
/// <summary>
76+
/// For internal use only.
77+
/// </summary>
78+
[JsonProperty("channel_options", NullValueHandling = NullValueHandling.Ignore)]
79+
public new object ChannelOptions
80+
{
81+
get { return base.ChannelOptions; }
82+
set { base.ChannelOptions = value; }
83+
}
84+
/// <summary>
85+
/// Descriptive text that can be used for screen readers or other situations where the video cannot be seen.
86+
/// </summary>
87+
[JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
88+
public new string AltText
89+
{
90+
get { return base.AltText; }
91+
set { base.AltText = value; }
92+
}
93+
}
94+
}

0 commit comments

Comments
 (0)