Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK Release 5.3.0 #482

Merged
merged 26 commits into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
b805a7b
feat(assistant-v1): alt_text property added to Image response type
nan2iz Sep 8, 2021
fcecbd2
feat(assistant-v2): session_start_time and state properties added to …
nan2iz Sep 8, 2021
98448da
feat(assistant-v2): alt_text property added to Image response type
nan2iz Sep 8, 2021
7ed8976
feat(tts): new voice models added
nan2iz Sep 8, 2021
603bd99
feat(stt): more languages supported for next generation models
nan2iz Sep 8, 2021
c488dac
fix(nlu): fix listClassificationsModels through return type change an…
nan2iz Sep 8, 2021
b16b165
feat(discovery-2): enum update for CreateProjectConstants
nan2iz Sep 8, 2021
05c7a67
fix(formatting): update comments and fomatting changes
nan2iz Sep 8, 2021
c506219
fix(formatting): update comments and formatting changes
nan2iz Sep 8, 2021
3508067
feat(assistant-v1): add more enums for Disambiguation settings
nan2iz Sep 8, 2021
a72c99b
fix(integration-test): update return type from response.Result.Models…
nan2iz Sep 8, 2021
2bcedc1
chore(lint-copyrights): ran lint-copyrights
nan2iz Sep 8, 2021
b545942
fix(nlu): manual change: convert MetadataOptions back to Object on Mo…
nan2iz Sep 9, 2021
b047d7f
fix(discovery-v2): manual revert fileContent method under AnalyzeDocu…
nan2iz Sep 9, 2021
12ef233
chore(common): update common package
nan2iz Sep 9, 2021
c39d890
fix(discovery-v1): update status from string to StatusDetails
nan2iz Sep 13, 2021
08d2889
chore(lint-copyrights): ran lint-copyrights
nan2iz Sep 13, 2021
06438cc
fix(unit-test): update unit test for discovery v1 for converting stat…
nan2iz Sep 13, 2021
3dddd1e
fix(unit-test): fix unit test for diccovery-v1
nan2iz Sep 13, 2021
8d25195
fix(assistant-v2): add transferInfo property for assistant v2
nan2iz Sep 14, 2021
9dc83ea
fix(manual-changes): fix runtime error
nan2iz Sep 14, 2021
4011057
chore(lint-copyrights): ran lint-copyrights fix
nan2iz Sep 14, 2021
856ffd8
fix(assistant-v2): update assistant v2 add new Model, SearchResultAnswer
nan2iz Sep 14, 2021
7b9769a
fix(discovery-v1): fix Status Details property change from authentica…
nan2iz Sep 14, 2021
8f99939
chore(lint-copyrights): ran lint-copyrights
nan2iz Sep 14, 2021
295ce72
fix(manual-changes): remote transfer_infor out from runtimeResponseGe…
nan2iz Sep 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/IBM.Watson.Assistant.v1/AssistantService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

/**
* IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-902c9336-20210513-140138
* IBM OpenAPI SDK Code Generator Version: 3.38.0-07189efd-20210827-205025
*/

using System.Collections.Generic;
Expand Down Expand Up @@ -4319,8 +4319,8 @@ public DetailedResponse<LogCollection> ListLogs(string workspaceId, string sort
/// </summary>
/// <param name="filter">A cacheable parameter that limits the results to those matching the specified filter.
/// You must specify a filter query that includes a value for `language`, as well as a value for
/// `request.context.system.assistant_id`, `workspace_id`, or `request.context.metadata.deployment`. For more
/// information, see the
/// `request.context.system.assistant_id`, `workspace_id`, or `request.context.metadata.deployment`. These
/// required filters must be specified using the exact match (`::`) operator. For more information, see the
/// [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-filter-reference#filter-reference).</param>
/// <param name="sort">How to sort the returned log events. You can sort by **request_timestamp**. To reverse
/// the sort order, prefix the parameter value with a minus sign (`-`). (optional)</param>
Expand Down
7 changes: 6 additions & 1 deletion src/IBM.Watson.Assistant.v1/Model/DialogNodeOutputGeneric.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public class QueryTypeEnumValue
[JsonProperty("typing", NullValueHandling = NullValueHandling.Ignore)]
public bool? Typing { get; protected set; }
/// <summary>
/// The URL of the image.
/// The `https:` URL of the image.
/// </summary>
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
public string Source { get; protected set; }
Expand All @@ -176,6 +176,11 @@ public class QueryTypeEnumValue
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
public string Description { get; protected set; }
/// <summary>
/// Descriptive text that can be used for screen readers or other situations where the image cannot be seen.
/// </summary>
[JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
public string AltText { get; protected set; }
/// <summary>
/// An array of objects describing the options from which the user can choose. You can include up to 20 options.
/// </summary>
[JsonProperty("options", NullValueHandling = NullValueHandling.Ignore)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class DialogNodeOutputGenericDialogNodeOutputResponseTypeImage : DialogNo
set { base.ResponseType = value; }
}
/// <summary>
/// The URL of the image.
/// The `https:` URL of the image.
/// </summary>
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
public new string Source
Expand Down Expand Up @@ -71,6 +71,15 @@ public class DialogNodeOutputGenericDialogNodeOutputResponseTypeImage : DialogNo
get { return base.Channels; }
set { base.Channels = value; }
}
/// <summary>
/// Descriptive text that can be used for screen readers or other situations where the image cannot be seen.
/// </summary>
[JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
public new string AltText
{
get { return base.AltText; }
set { base.AltText = value; }
}
}

}
7 changes: 5 additions & 2 deletions src/IBM.Watson.Assistant.v1/Model/RuntimeEntity.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2018, 2020.
* (C) Copyright IBM Corp. 2018, 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -47,7 +47,10 @@ public class RuntimeEntity
[JsonProperty("confidence", NullValueHandling = NullValueHandling.Ignore)]
public float? Confidence { get; set; }
/// <summary>
/// Any metadata for the entity.
/// **Deprecated.** Any metadata for the entity.
///
/// Beginning with the `2021-06-14` API version, the `metadata` property is no longer returned. For information
/// about system entities recognized in the user input, see the `interpretation` property.
/// </summary>
[JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)]
public Dictionary<string, object> Metadata { get; set; }
Expand Down
7 changes: 6 additions & 1 deletion src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGeneric.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public class PreferenceEnumValue
[JsonProperty("typing", NullValueHandling = NullValueHandling.Ignore)]
public bool? Typing { get; protected set; }
/// <summary>
/// The URL of the image.
/// The `https:` URL of the image.
/// </summary>
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
public string Source { get; protected set; }
Expand All @@ -123,6 +123,11 @@ public class PreferenceEnumValue
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
public string Description { get; protected set; }
/// <summary>
/// Descriptive text that can be used for screen readers or other situations where the image cannot be seen.
/// </summary>
[JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
public string AltText { get; protected set; }
/// <summary>
/// An array of objects describing the options from which the user can choose.
/// </summary>
[JsonProperty("options", NullValueHandling = NullValueHandling.Ignore)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class RuntimeResponseGenericRuntimeResponseTypeImage : RuntimeResponseGen
set { base.ResponseType = value; }
}
/// <summary>
/// The URL of the image.
/// The `https:` URL of the image.
/// </summary>
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
public new string Source
Expand Down Expand Up @@ -72,6 +72,15 @@ public class RuntimeResponseGenericRuntimeResponseTypeImage : RuntimeResponseGen
get { return base.Channels; }
set { base.Channels = value; }
}
/// <summary>
/// Descriptive text that can be used for screen readers or other situations where the image cannot be seen.
/// </summary>
[JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
public new string AltText
{
get { return base.AltText; }
set { base.AltText = value; }
}
}

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2018, 2020.
* (C) Copyright IBM Corp. 2018, 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -25,8 +25,8 @@ namespace IBM.Watson.Assistant.v1.Model
public class WorkspaceSystemSettingsDisambiguation
{
/// <summary>
/// The sensitivity of the disambiguation feature to intent detection conflicts. Set to **high** if you want the
/// disambiguation feature to be triggered more often. This can be useful for testing or demonstration purposes.
/// The sensitivity of the disambiguation feature to intent detection uncertainty. Higher sensitivity means that
/// the disambiguation feature is triggered more often and includes more choices.
/// </summary>
public class SensitivityEnumValue
{
Expand All @@ -38,12 +38,28 @@ public class SensitivityEnumValue
/// Constant HIGH for high
/// </summary>
public const string HIGH = "high";
/// <summary>
/// Constant MEDIUM_HIGH for medium_high
/// </summary>
public const string MEDIUM_HIGH = "medium_high";
/// <summary>
/// Constant MEDIUM for medium
/// </summary>
public const string MEDIUM = "medium";
/// <summary>
/// Constant MEDIUM_LOW for medium_low
/// </summary>
public const string MEDIUM_LOW = "medium_low";
/// <summary>
/// Constant LOW for low
/// </summary>
public const string LOW = "low";

}

/// <summary>
/// The sensitivity of the disambiguation feature to intent detection conflicts. Set to **high** if you want the
/// disambiguation feature to be triggered more often. This can be useful for testing or demonstration purposes.
/// The sensitivity of the disambiguation feature to intent detection uncertainty. Higher sensitivity means that
/// the disambiguation feature is triggered more often and includes more choices.
/// Constants for possible values can be found using WorkspaceSystemSettingsDisambiguation.SensitivityEnumValue
/// </summary>
[JsonProperty("sensitivity", NullValueHandling = NullValueHandling.Ignore)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2018, 2020.
* (C) Copyright IBM Corp. 2018, 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
23 changes: 21 additions & 2 deletions src/IBM.Watson.Assistant.v2/Model/MessageContextGlobalSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,32 @@ public class LocaleEnumValue
/// `tomorrow`. This can be useful for simulating past or future times for testing purposes, or when analyzing
/// documents such as news articles.
///
/// This value must be a UTC time value formatted according to ISO 8601 (for example, `2019-06-26T12:00:00Z` for
/// noon on 26 June 2019.
/// This value must be a UTC time value formatted according to ISO 8601 (for example, `2021-06-26T12:00:00Z` for
/// noon UTC on 26 June 2021).
///
/// This property is included only if the new system entities are enabled for the skill.
/// </summary>
[JsonProperty("reference_time", NullValueHandling = NullValueHandling.Ignore)]
public string ReferenceTime { get; set; }
/// <summary>
/// The time at which the session started. With the stateful `message` method, the start time is always present,
/// and is set by the service based on the time the session was created. With the stateless `message` method,
/// the start time is set by the service in the response to the first message, and should be returned as part of
/// the context with each subsequent message in the session.
///
/// This value is a UTC time value formatted according to ISO 8601 (for example, `2021-06-26T12:00:00Z` for noon
/// UTC on 26 June 2021).
/// </summary>
[JsonProperty("session_start_time", NullValueHandling = NullValueHandling.Ignore)]
public string SessionStartTime { get; set; }
/// <summary>
/// An encoded string that represents the configuration state of the assistant at the beginning of the
/// conversation. If you are using the stateless `message` method, save this value and then send it in the
/// context of the subsequent message request to avoid disruptions if there are configuration changes during the
/// conversation (such as a change to a skill the assistant uses).
/// </summary>
[JsonProperty("state", NullValueHandling = NullValueHandling.Ignore)]
public string State { get; set; }
}

}
20 changes: 17 additions & 3 deletions src/IBM.Watson.Assistant.v2/Model/MessageInput.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2018, 2020.
* (C) Copyright IBM Corp. 2018, 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -26,19 +26,33 @@ namespace IBM.Watson.Assistant.v2.Model
public class MessageInput
{
/// <summary>
/// The type of user input. Currently, only text input is supported.
/// The type of the message:
///
/// - `text`: The user input is processed normally by the assistant.
/// - `search`: Only search results are returned. (Any dialog or actions skill is bypassed.)
///
/// **Note:** A `search` message results in an error if no search skill is configured for the assistant.
/// </summary>
public class MessageTypeEnumValue
{
/// <summary>
/// Constant TEXT for text
/// </summary>
public const string TEXT = "text";
/// <summary>
/// Constant SEARCH for search
/// </summary>
public const string SEARCH = "search";

}

/// <summary>
/// The type of user input. Currently, only text input is supported.
/// The type of the message:
///
/// - `text`: The user input is processed normally by the assistant.
/// - `search`: Only search results are returned. (Any dialog or actions skill is bypassed.)
///
/// **Note:** A `search` message results in an error if no search skill is configured for the assistant.
/// Constants for possible values can be found using MessageInput.MessageTypeEnumValue
/// </summary>
[JsonProperty("message_type", NullValueHandling = NullValueHandling.Ignore)]
Expand Down
20 changes: 17 additions & 3 deletions src/IBM.Watson.Assistant.v2/Model/MessageInputStateless.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2018, 2020.
* (C) Copyright IBM Corp. 2020, 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -26,19 +26,33 @@ namespace IBM.Watson.Assistant.v2.Model
public class MessageInputStateless
{
/// <summary>
/// The type of user input. Currently, only text input is supported.
/// The type of the message:
///
/// - `text`: The user input is processed normally by the assistant.
/// - `search`: Only search results are returned. (Any dialog or actions skill is bypassed.)
///
/// **Note:** A `search` message results in an error if no search skill is configured for the assistant.
/// </summary>
public class MessageTypeEnumValue
{
/// <summary>
/// Constant TEXT for text
/// </summary>
public const string TEXT = "text";
/// <summary>
/// Constant SEARCH for search
/// </summary>
public const string SEARCH = "search";

}

/// <summary>
/// The type of user input. Currently, only text input is supported.
/// The type of the message:
///
/// - `text`: The user input is processed normally by the assistant.
/// - `search`: Only search results are returned. (Any dialog or actions skill is bypassed.)
///
/// **Note:** A `search` message results in an error if no search skill is configured for the assistant.
/// Constants for possible values can be found using MessageInputStateless.MessageTypeEnumValue
/// </summary>
[JsonProperty("message_type", NullValueHandling = NullValueHandling.Ignore)]
Expand Down
7 changes: 5 additions & 2 deletions src/IBM.Watson.Assistant.v2/Model/RuntimeEntity.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2018, 2020.
* (C) Copyright IBM Corp. 2018, 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -47,7 +47,10 @@ public class RuntimeEntity
[JsonProperty("confidence", NullValueHandling = NullValueHandling.Ignore)]
public float? Confidence { get; set; }
/// <summary>
/// Any metadata for the entity.
/// **Deprecated.** Any metadata for the entity.
///
/// Beginning with the `2021-06-14` API version, the `metadata` property is no longer returned. For information
/// about system entities recognized in the user input, see the `interpretation` property.
/// </summary>
[JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)]
public Dictionary<string, object> Metadata { get; set; }
Expand Down
7 changes: 6 additions & 1 deletion src/IBM.Watson.Assistant.v2/Model/RuntimeResponseGeneric.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public class PreferenceEnumValue
[JsonProperty("typing", NullValueHandling = NullValueHandling.Ignore)]
public bool? Typing { get; protected set; }
/// <summary>
/// The URL of the image.
/// The `https:` URL of the image.
/// </summary>
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
public string Source { get; protected set; }
Expand All @@ -126,6 +126,11 @@ public class PreferenceEnumValue
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
public string Description { get; protected set; }
/// <summary>
/// Descriptive text that can be used for screen readers or other situations where the image cannot be seen.
/// </summary>
[JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
public string AltText { get; protected set; }
/// <summary>
/// An array of objects describing the options from which the user can choose.
/// </summary>
[JsonProperty("options", NullValueHandling = NullValueHandling.Ignore)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class RuntimeResponseGenericRuntimeResponseTypeImage : RuntimeResponseGen
set { base.ResponseType = value; }
}
/// <summary>
/// The URL of the image.
/// The `https:` URL of the image.
/// </summary>
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
public new string Source
Expand Down Expand Up @@ -72,6 +72,15 @@ public class RuntimeResponseGenericRuntimeResponseTypeImage : RuntimeResponseGen
get { return base.Channels; }
set { base.Channels = value; }
}
/// <summary>
/// Descriptive text that can be used for screen readers or other situations where the image cannot be seen.
/// </summary>
[JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
public new string AltText
{
get { return base.AltText; }
set { base.AltText = value; }
}
}

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2017, 2020.
* (C) Copyright IBM Corp. 2017, 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2017, 2020.
* (C) Copyright IBM Corp. 2017, 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/IBM.Watson.CompareComply.v1/CompareComplyService.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2018, 2020.
* (C) Copyright IBM Corp. 2018, 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading