Skip to content

Commit abcea52

Browse files
authored
Merge pull request #682 from watson-developer-cloud/unity-sdk-9721
Unity SDK Generation 5.3.0
2 parents ad9aaaf + 4a40309 commit abcea52

File tree

87 files changed

+1084
-737
lines changed

Some content is hidden

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

87 files changed

+1084
-737
lines changed

Scripts/Services/Assistant/V1/AssistantService.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
/**
19-
* IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-902c9336-20210513-140138
19+
* IBM OpenAPI SDK Code Generator Version: 3.38.0-07189efd-20210827-205025
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-
/// `2020-04-01`.
46+
/// `2021-06-14`.
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 `2020-04-01`.</param>
71+
/// The current version is `2021-06-14`.</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 `2020-04-01`.</param>
78+
/// The current version is `2021-06-14`.</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 `2020-04-01`.</param>
86+
/// The current version is `2021-06-14`.</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 `2020-04-01`.</param>
94+
/// The current version is `2021-06-14`.</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)
@@ -4605,8 +4605,8 @@ private void OnListLogsResponse(RESTConnector.Request req, RESTConnector.Respons
46054605
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
46064606
/// <param name="filter">A cacheable parameter that limits the results to those matching the specified filter.
46074607
/// You must specify a filter query that includes a value for `language`, as well as a value for
4608-
/// `request.context.system.assistant_id`, `workspace_id`, or `request.context.metadata.deployment`. For more
4609-
/// information, see the
4608+
/// `request.context.system.assistant_id`, `workspace_id`, or `request.context.metadata.deployment`. These
4609+
/// required filters must be specified using the exact match (`::`) operator. For more information, see the
46104610
/// [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-filter-reference#filter-reference).</param>
46114611
/// <param name="sort">How to sort the returned log events. You can sort by **request_timestamp**. To reverse
46124612
/// the sort order, prefix the parameter value with a minus sign (`-`). (optional)</param>

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public class QueryTypeValue
161161
[JsonProperty("typing", NullValueHandling = NullValueHandling.Ignore)]
162162
public bool? Typing { get; protected set; }
163163
/// <summary>
164-
/// The URL of the image.
164+
/// The `https:` URL of the image.
165165
/// </summary>
166166
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
167167
public string Source { get; protected set; }
@@ -176,6 +176,11 @@ public class QueryTypeValue
176176
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
177177
public string Description { get; protected set; }
178178
/// <summary>
179+
/// Descriptive text that can be used for screen readers or other situations where the image cannot be seen.
180+
/// </summary>
181+
[JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
182+
public string AltText { get; protected set; }
183+
/// <summary>
179184
/// An array of objects describing the options from which the user can choose. You can include up to 20 options.
180185
/// </summary>
181186
[JsonProperty("options", NullValueHandling = NullValueHandling.Ignore)]

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class DialogNodeOutputGenericDialogNodeOutputResponseTypeImage : DialogNo
3636
set { base.ResponseType = value; }
3737
}
3838
/// <summary>
39-
/// The URL of the image.
39+
/// The `https:` URL of the image.
4040
/// </summary>
4141
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
4242
public new string Source
@@ -71,5 +71,14 @@ public class DialogNodeOutputGenericDialogNodeOutputResponseTypeImage : DialogNo
7171
get { return base.Channels; }
7272
set { base.Channels = value; }
7373
}
74+
/// <summary>
75+
/// Descriptive text that can be used for screen readers or other situations where the image cannot be seen.
76+
/// </summary>
77+
[JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
78+
public new string AltText
79+
{
80+
get { return base.AltText; }
81+
set { base.AltText = value; }
82+
}
7483
}
7584
}

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

Lines changed: 5 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.
@@ -47,7 +47,10 @@ public class RuntimeEntity
4747
[JsonProperty("confidence", NullValueHandling = NullValueHandling.Ignore)]
4848
public float? Confidence { get; set; }
4949
/// <summary>
50-
/// Any metadata for the entity.
50+
/// **Deprecated.** Any metadata for the entity.
51+
///
52+
/// Beginning with the `2021-06-14` API version, the `metadata` property is no longer returned. For information
53+
/// about system entities recognized in the user input, see the `interpretation` property.
5154
/// </summary>
5255
[JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)]
5356
public Dictionary<string, object> Metadata { get; set; }

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public class PreferenceValue
108108
[JsonProperty("typing", NullValueHandling = NullValueHandling.Ignore)]
109109
public bool? Typing { get; protected set; }
110110
/// <summary>
111-
/// The URL of the image.
111+
/// The `https:` URL of the image.
112112
/// </summary>
113113
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
114114
public string Source { get; protected set; }
@@ -123,6 +123,11 @@ public class PreferenceValue
123123
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
124124
public string Description { get; protected set; }
125125
/// <summary>
126+
/// Descriptive text that can be used for screen readers or other situations where the image cannot be seen.
127+
/// </summary>
128+
[JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
129+
public string AltText { get; protected set; }
130+
/// <summary>
126131
/// An array of objects describing the options from which the user can choose.
127132
/// </summary>
128133
[JsonProperty("options", NullValueHandling = NullValueHandling.Ignore)]

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class RuntimeResponseGenericRuntimeResponseTypeImage : RuntimeResponseGen
3636
set { base.ResponseType = value; }
3737
}
3838
/// <summary>
39-
/// The URL of the image.
39+
/// The `https:` URL of the image.
4040
/// </summary>
4141
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
4242
public new string Source
@@ -72,5 +72,14 @@ public class RuntimeResponseGenericRuntimeResponseTypeImage : RuntimeResponseGen
7272
get { return base.Channels; }
7373
set { base.Channels = value; }
7474
}
75+
/// <summary>
76+
/// Descriptive text that can be used for screen readers or other situations where the image cannot be seen.
77+
/// </summary>
78+
[JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
79+
public new string AltText
80+
{
81+
get { return base.AltText; }
82+
set { base.AltText = value; }
83+
}
7584
}
7685
}

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

Lines changed: 21 additions & 5 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. 2019, 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.
@@ -25,8 +25,8 @@ namespace IBM.Watson.Assistant.V1.Model
2525
public class WorkspaceSystemSettingsDisambiguation
2626
{
2727
/// <summary>
28-
/// The sensitivity of the disambiguation feature to intent detection conflicts. Set to **high** if you want the
29-
/// disambiguation feature to be triggered more often. This can be useful for testing or demonstration purposes.
28+
/// The sensitivity of the disambiguation feature to intent detection uncertainty. Higher sensitivity means that
29+
/// the disambiguation feature is triggered more often and includes more choices.
3030
/// </summary>
3131
public class SensitivityValue
3232
{
@@ -38,12 +38,28 @@ public class SensitivityValue
3838
/// Constant HIGH for high
3939
/// </summary>
4040
public const string HIGH = "high";
41+
/// <summary>
42+
/// Constant MEDIUM_HIGH for medium_high
43+
/// </summary>
44+
public const string MEDIUM_HIGH = "medium_high";
45+
/// <summary>
46+
/// Constant MEDIUM for medium
47+
/// </summary>
48+
public const string MEDIUM = "medium";
49+
/// <summary>
50+
/// Constant MEDIUM_LOW for medium_low
51+
/// </summary>
52+
public const string MEDIUM_LOW = "medium_low";
53+
/// <summary>
54+
/// Constant LOW for low
55+
/// </summary>
56+
public const string LOW = "low";
4157

4258
}
4359

4460
/// <summary>
45-
/// The sensitivity of the disambiguation feature to intent detection conflicts. Set to **high** if you want the
46-
/// disambiguation feature to be triggered more often. This can be useful for testing or demonstration purposes.
61+
/// The sensitivity of the disambiguation feature to intent detection uncertainty. Higher sensitivity means that
62+
/// the disambiguation feature is triggered more often and includes more choices.
4763
/// Constants for possible values can be found using WorkspaceSystemSettingsDisambiguation.SensitivityValue
4864
/// </summary>
4965
[JsonProperty("sensitivity", NullValueHandling = NullValueHandling.Ignore)]

Scripts/Services/Assistant/V2/AssistantService.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
/**
19-
* IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-902c9336-20210513-140138
19+
* IBM OpenAPI SDK Code Generator Version: 3.38.0-07189efd-20210827-205025
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-
/// `2020-09-24`.
46+
/// `2021-06-14`.
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 `2020-09-24`.</param>
71+
/// The current version is `2021-06-14`.</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 `2020-09-24`.</param>
78+
/// The current version is `2021-06-14`.</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 `2020-09-24`.</param>
86+
/// The current version is `2021-06-14`.</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 `2020-09-24`.</param>
94+
/// The current version is `2021-06-14`.</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/V2/Model/MessageContextGlobalSystem.cs

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,31 @@ public class LocaleValue
136136
/// `tomorrow`. This can be useful for simulating past or future times for testing purposes, or when analyzing
137137
/// documents such as news articles.
138138
///
139-
/// This value must be a UTC time value formatted according to ISO 8601 (for example, `2019-06-26T12:00:00Z` for
140-
/// noon on 26 June 2019.
139+
/// This value must be a UTC time value formatted according to ISO 8601 (for example, `2021-06-26T12:00:00Z` for
140+
/// noon UTC on 26 June 2021).
141141
///
142142
/// This property is included only if the new system entities are enabled for the skill.
143143
/// </summary>
144144
[JsonProperty("reference_time", NullValueHandling = NullValueHandling.Ignore)]
145145
public string ReferenceTime { get; set; }
146+
/// <summary>
147+
/// The time at which the session started. With the stateful `message` method, the start time is always present,
148+
/// and is set by the service based on the time the session was created. With the stateless `message` method,
149+
/// the start time is set by the service in the response to the first message, and should be returned as part of
150+
/// the context with each subsequent message in the session.
151+
///
152+
/// This value is a UTC time value formatted according to ISO 8601 (for example, `2021-06-26T12:00:00Z` for noon
153+
/// UTC on 26 June 2021).
154+
/// </summary>
155+
[JsonProperty("session_start_time", NullValueHandling = NullValueHandling.Ignore)]
156+
public string SessionStartTime { get; set; }
157+
/// <summary>
158+
/// An encoded string that represents the configuration state of the assistant at the beginning of the
159+
/// conversation. If you are using the stateless `message` method, save this value and then send it in the
160+
/// context of the subsequent message request to avoid disruptions if there are configuration changes during the
161+
/// conversation (such as a change to a skill the assistant uses).
162+
/// </summary>
163+
[JsonProperty("state", NullValueHandling = NullValueHandling.Ignore)]
164+
public string State { get; set; }
146165
}
147166
}

Scripts/Services/Assistant/V2/Model/MessageInput.cs

Lines changed: 17 additions & 3 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.
@@ -26,19 +26,33 @@ namespace IBM.Watson.Assistant.V2.Model
2626
public class MessageInput
2727
{
2828
/// <summary>
29-
/// The type of user input. Currently, only text input is supported.
29+
/// The type of the message:
30+
///
31+
/// - `text`: The user input is processed normally by the assistant.
32+
/// - `search`: Only search results are returned. (Any dialog or actions skill is bypassed.)
33+
///
34+
/// **Note:** A `search` message results in an error if no search skill is configured for the assistant.
3035
/// </summary>
3136
public class MessageTypeValue
3237
{
3338
/// <summary>
3439
/// Constant TEXT for text
3540
/// </summary>
3641
public const string TEXT = "text";
42+
/// <summary>
43+
/// Constant SEARCH for search
44+
/// </summary>
45+
public const string SEARCH = "search";
3746

3847
}
3948

4049
/// <summary>
41-
/// The type of user input. Currently, only text input is supported.
50+
/// The type of the message:
51+
///
52+
/// - `text`: The user input is processed normally by the assistant.
53+
/// - `search`: Only search results are returned. (Any dialog or actions skill is bypassed.)
54+
///
55+
/// **Note:** A `search` message results in an error if no search skill is configured for the assistant.
4256
/// Constants for possible values can be found using MessageInput.MessageTypeValue
4357
/// </summary>
4458
[JsonProperty("message_type", NullValueHandling = NullValueHandling.Ignore)]

0 commit comments

Comments
 (0)