Skip to content

Commit b3ce587

Browse files
authored
Merge pull request #482 from watson-developer-cloud/sdk-5.2.1
SDK Release 5.3.0
2 parents 9c73753 + 295ce72 commit b3ce587

File tree

82 files changed

+1197
-704
lines changed

Some content is hidden

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

82 files changed

+1197
-704
lines changed

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

Lines changed: 3 additions & 3 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;
@@ -4319,8 +4319,8 @@ public DetailedResponse<LogCollection> ListLogs(string workspaceId, string sort
43194319
/// </summary>
43204320
/// <param name="filter">A cacheable parameter that limits the results to those matching the specified filter.
43214321
/// You must specify a filter query that includes a value for `language`, as well as a value for
4322-
/// `request.context.system.assistant_id`, `workspace_id`, or `request.context.metadata.deployment`. For more
4323-
/// information, see the
4322+
/// `request.context.system.assistant_id`, `workspace_id`, or `request.context.metadata.deployment`. These
4323+
/// required filters must be specified using the exact match (`::`) operator. For more information, see the
43244324
/// [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-filter-reference#filter-reference).</param>
43254325
/// <param name="sort">How to sort the returned log events. You can sort by **request_timestamp**. To reverse
43264326
/// the sort order, prefix the parameter value with a minus sign (`-`). (optional)</param>

src/IBM.Watson.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 QueryTypeEnumValue
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 QueryTypeEnumValue
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)]

src/IBM.Watson.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,6 +71,15 @@ 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

7685
}

src/IBM.Watson.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; }

src/IBM.Watson.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 PreferenceEnumValue
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 PreferenceEnumValue
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)]

src/IBM.Watson.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,6 +72,15 @@ 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

7786
}

src/IBM.Watson.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. 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.
@@ -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 SensitivityEnumValue
3232
{
@@ -38,12 +38,28 @@ public class SensitivityEnumValue
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.SensitivityEnumValue
4864
/// </summary>
4965
[JsonProperty("sensitivity", NullValueHandling = NullValueHandling.Ignore)]

src/IBM.Watson.Assistant.v1/Test/Integration/AssistantServiceIntegrationTests.cs

Lines changed: 1 addition & 1 deletion
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.

src/IBM.Watson.Assistant.v2/Model/MessageContextGlobalSystem.cs

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,32 @@ public class LocaleEnumValue
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

148167
}

src/IBM.Watson.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 MessageTypeEnumValue
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.MessageTypeEnumValue
4357
/// </summary>
4458
[JsonProperty("message_type", NullValueHandling = NullValueHandling.Ignore)]

0 commit comments

Comments
 (0)