Skip to content

Commit dc40499

Browse files
committed
feat(regenerate): updates based on latest API definitions
1 parent 533261f commit dc40499

File tree

115 files changed

+1108
-239
lines changed

Some content is hidden

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

115 files changed

+1108
-239
lines changed

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ public class Counterexample
2727
{
2828
/// <summary>
2929
/// The text of a user input marked as irrelevant input. This string must conform to the following restrictions:
30-
///
31-
/// - It cannot contain carriage return, newline, or tab characters
32-
/// - It cannot consist of only whitespace characters
33-
/// - It must be no longer than 1024 characters.
30+
/// - It cannot contain carriage return, newline, or tab characters.
31+
/// - It cannot consist of only whitespace characters.
3432
/// </summary>
3533
[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
3634
public string Text { get; set; }

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

+2-5
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,13 @@ public class CreateEntity
2929
/// <summary>
3030
/// The name of the entity. This string must conform to the following restrictions:
3131
/// - It can contain only Unicode alphanumeric, underscore, and hyphen characters.
32-
/// - It must be no longer than 64 characters.
33-
///
34-
/// If you specify an entity name beginning with the reserved prefix `sys-`, it must be the name of a system
32+
/// - If you specify an entity name beginning with the reserved prefix `sys-`, it must be the name of a system
3533
/// entity that you want to enable. (Any entity content specified with the request is ignored.).
3634
/// </summary>
3735
[JsonProperty("entity", NullValueHandling = NullValueHandling.Ignore)]
3836
public string Entity { get; set; }
3937
/// <summary>
40-
/// The description of the entity. This string cannot contain carriage return, newline, or tab characters, and
41-
/// it must be no longer than 128 characters.
38+
/// The description of the entity. This string cannot contain carriage return, newline, or tab characters.
4239
/// </summary>
4340
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
4441
public string Description { get; set; }

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@ public class CreateIntent
3030
/// The name of the intent. This string must conform to the following restrictions:
3131
/// - It can contain only Unicode alphanumeric, underscore, hyphen, and dot characters.
3232
/// - It cannot begin with the reserved prefix `sys-`.
33-
/// - It must be no longer than 128 characters.
3433
/// </summary>
3534
[JsonProperty("intent", NullValueHandling = NullValueHandling.Ignore)]
3635
public string Intent { get; set; }
3736
/// <summary>
38-
/// The description of the intent. This string cannot contain carriage return, newline, or tab characters, and
39-
/// it must be no longer than 128 characters.
37+
/// The description of the intent. This string cannot contain carriage return, newline, or tab characters.
4038
/// </summary>
4139
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
4240
public string Description { get; set; }

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

+3-5
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ public class ValueTypeValue
5252
/// The text of the entity value. This string must conform to the following restrictions:
5353
/// - It cannot contain carriage return, newline, or tab characters.
5454
/// - It cannot consist of only whitespace characters.
55-
/// - It must be no longer than 64 characters.
5655
/// </summary>
5756
[JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)]
5857
public string Value { get; set; }
@@ -66,15 +65,14 @@ public class ValueTypeValue
6665
/// value type), but not both. A synonym must conform to the following resrictions:
6766
/// - It cannot contain carriage return, newline, or tab characters.
6867
/// - It cannot consist of only whitespace characters.
69-
/// - It must be no longer than 64 characters.
7068
/// </summary>
7169
[JsonProperty("synonyms", NullValueHandling = NullValueHandling.Ignore)]
7270
public List<string> Synonyms { get; set; }
7371
/// <summary>
7472
/// An array of patterns for the entity value. A value can specify either synonyms or patterns (depending on the
75-
/// value type), but not both. A pattern is a regular expression no longer than 512 characters. For more
76-
/// information about how to specify a pattern, see the
77-
/// [documentation](https://cloud.ibm.com/docs/services/assistant/entities.html#entities-create-dictionary-based).
73+
/// value type), but not both. A pattern is a regular expression; for more information about how to specify a
74+
/// pattern, see the
75+
/// [documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-entities#entities-create-dictionary-based).
7876
/// </summary>
7977
[JsonProperty("patterns", NullValueHandling = NullValueHandling.Ignore)]
8078
public List<string> Patterns { get; set; }

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

+4-8
Original file line numberDiff line numberDiff line change
@@ -196,19 +196,17 @@ public class DigressOutSlotsValue
196196
/// <summary>
197197
/// The dialog node ID. This string must conform to the following restrictions:
198198
/// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
199-
/// - It must be no longer than 1024 characters.
200199
/// </summary>
201200
[JsonProperty("dialog_node", NullValueHandling = NullValueHandling.Ignore)]
202201
public string _DialogNode { get; set; }
203202
/// <summary>
204-
/// The description of the dialog node. This string cannot contain carriage return, newline, or tab characters,
205-
/// and it must be no longer than 128 characters.
203+
/// The description of the dialog node. This string cannot contain carriage return, newline, or tab characters.
206204
/// </summary>
207205
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
208206
public string Description { get; set; }
209207
/// <summary>
210208
/// The condition that will trigger the dialog node. This string cannot contain carriage return, newline, or tab
211-
/// characters, and it must be no longer than 2048 characters.
209+
/// characters.
212210
/// </summary>
213211
[JsonProperty("conditions", NullValueHandling = NullValueHandling.Ignore)]
214212
public string Conditions { get; set; }
@@ -225,7 +223,7 @@ public class DigressOutSlotsValue
225223
public string PreviousSibling { get; set; }
226224
/// <summary>
227225
/// The output of the dialog node. For more information about how to specify dialog node output, see the
228-
/// [documentation](https://cloud.ibm.com/docs/services/assistant/dialog-overview.html#dialog-overview-responses).
226+
/// [documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-dialog-overview#dialog-overview-responses).
229227
/// </summary>
230228
[JsonProperty("output", NullValueHandling = NullValueHandling.Ignore)]
231229
public JObject Output { get; set; }
@@ -247,7 +245,6 @@ public class DigressOutSlotsValue
247245
/// <summary>
248246
/// The alias used to identify the dialog node. This string must conform to the following restrictions:
249247
/// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
250-
/// - It must be no longer than 64 characters.
251248
/// </summary>
252249
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
253250
public string Title { get; set; }
@@ -262,8 +259,7 @@ public class DigressOutSlotsValue
262259
[JsonProperty("actions", NullValueHandling = NullValueHandling.Ignore)]
263260
public List<DialogNodeAction> Actions { get; set; }
264261
/// <summary>
265-
/// A label that can be displayed externally to describe the purpose of the node to users. This string must be
266-
/// no longer than 512 characters.
262+
/// A label that can be displayed externally to describe the purpose of the node to users.
267263
/// </summary>
268264
[JsonProperty("user_label", NullValueHandling = NullValueHandling.Ignore)]
269265
public string UserLabel { get; set; }

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace IBM.Watson.Assistant.V1.Model
2222
{
2323
/// <summary>
2424
/// The output of the dialog node. For more information about how to specify dialog node output, see the
25-
/// [documentation](https://cloud.ibm.com/docs/services/assistant/dialog-overview.html#dialog-overview-responses).
25+
/// [documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-dialog-overview#dialog-overview-responses).
2626
/// </summary>
2727
public class DialogNodeOutput
2828
{

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,12 @@ public class PreferenceValue
141141
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
142142
public string Source { get; set; }
143143
/// <summary>
144-
/// An optional title to show before the response. Valid only when **response_type**=`image` or `option`. This
145-
/// string must be no longer than 512 characters.
144+
/// An optional title to show before the response. Valid only when **response_type**=`image` or `option`.
146145
/// </summary>
147146
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
148147
public string Title { get; set; }
149148
/// <summary>
150149
/// An optional description to show with the response. Valid only when **response_type**=`image` or `option`.
151-
/// This string must be no longer than 256 characters.
152150
/// </summary>
153151
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
154152
public string Description { get; set; }
@@ -160,7 +158,7 @@ public class PreferenceValue
160158
public List<DialogNodeOutputOptionsElement> Options { get; set; }
161159
/// <summary>
162160
/// An optional message to be sent to the human agent who will be taking over the conversation. Valid only when
163-
/// **reponse_type**=`connect_to_agent`. This string must be no longer than 256 characters.
161+
/// **reponse_type**=`connect_to_agent`.
164162
/// </summary>
165163
[JsonProperty("message_to_human_agent", NullValueHandling = NullValueHandling.Ignore)]
166164
public string MessageToHumanAgent { get; set; }

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ public class DialogNodeOutputModifiers
2626
{
2727
/// <summary>
2828
/// Whether values in the output will overwrite output values in an array specified by previously executed
29-
/// dialog nodes. If this option is set to **false**, new values will be appended to previously specified
30-
/// values.
29+
/// dialog nodes. If this option is set to `false`, new values will be appended to previously specified values.
3130
/// </summary>
3231
[JsonProperty("overwrite", NullValueHandling = NullValueHandling.Ignore)]
3332
public bool? Overwrite { get; set; }

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

+17
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*
1616
*/
1717

18+
using System.Collections.Generic;
1819
using Newtonsoft.Json;
1920
using Newtonsoft.Json.Linq;
2021

@@ -31,5 +32,21 @@ public class DialogNodeOutputOptionsElementValue
3132
/// </summary>
3233
[JsonProperty("input", NullValueHandling = NullValueHandling.Ignore)]
3334
public JObject Input { get; set; }
35+
/// <summary>
36+
/// An array of intents to be used while processing the input.
37+
///
38+
/// **Note:** This property is supported for backward compatibility with applications that use the v1 **Get
39+
/// response to user input** method.
40+
/// </summary>
41+
[JsonProperty("intents", NullValueHandling = NullValueHandling.Ignore)]
42+
public List<JObject> Intents { get; set; }
43+
/// <summary>
44+
/// An array of entities to be used while processing the user input.
45+
///
46+
/// **Note:** This property is supported for backward compatibility with applications that use the v1 **Get
47+
/// response to user input** method.
48+
/// </summary>
49+
[JsonProperty("entities", NullValueHandling = NullValueHandling.Ignore)]
50+
public List<JObject> Entities { get; set; }
3451
}
3552
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class DialogNodeOutputTextValuesElement
2626
{
2727
/// <summary>
2828
/// The text of a response. This string can include newline characters (`\\n`), Markdown tagging, or other
29-
/// special characters, if supported by the channel. It must be no longer than 4096 characters.
29+
/// special characters, if supported by the channel.
3030
/// </summary>
3131
[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
3232
public string Text { get; set; }

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

+2-5
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,13 @@ public class Entity
2929
/// <summary>
3030
/// The name of the entity. This string must conform to the following restrictions:
3131
/// - It can contain only Unicode alphanumeric, underscore, and hyphen characters.
32-
/// - It must be no longer than 64 characters.
33-
///
34-
/// If you specify an entity name beginning with the reserved prefix `sys-`, it must be the name of a system
32+
/// - If you specify an entity name beginning with the reserved prefix `sys-`, it must be the name of a system
3533
/// entity that you want to enable. (Any entity content specified with the request is ignored.).
3634
/// </summary>
3735
[JsonProperty("entity", NullValueHandling = NullValueHandling.Ignore)]
3836
public string _Entity { get; set; }
3937
/// <summary>
40-
/// The description of the entity. This string cannot contain carriage return, newline, or tab characters, and
41-
/// it must be no longer than 128 characters.
38+
/// The description of the entity. This string cannot contain carriage return, newline, or tab characters.
4239
/// </summary>
4340
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
4441
public string Description { get; set; }

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

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public class Example
3030
/// The text of a user input example. This string must conform to the following restrictions:
3131
/// - It cannot contain carriage return, newline, or tab characters.
3232
/// - It cannot consist of only whitespace characters.
33-
/// - It must be no longer than 1024 characters.
3433
/// </summary>
3534
[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
3635
public string Text { get; set; }

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@ public class Intent
3030
/// The name of the intent. This string must conform to the following restrictions:
3131
/// - It can contain only Unicode alphanumeric, underscore, hyphen, and dot characters.
3232
/// - It cannot begin with the reserved prefix `sys-`.
33-
/// - It must be no longer than 128 characters.
3433
/// </summary>
3534
[JsonProperty("intent", NullValueHandling = NullValueHandling.Ignore)]
3635
public string _Intent { get; set; }
3736
/// <summary>
38-
/// The description of the intent. This string cannot contain carriage return, newline, or tab characters, and
39-
/// it must be no longer than 128 characters.
37+
/// The description of the intent. This string cannot contain carriage return, newline, or tab characters.
4038
/// </summary>
4139
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
4240
public string Description { get; set; }

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ namespace IBM.Watson.Assistant.V1.Model
2525
public class MessageInput
2626
{
2727
/// <summary>
28-
/// The text of the user input. This string cannot contain carriage return, newline, or tab characters, and it
29-
/// must be no longer than 2048 characters.
28+
/// The text of the user input. This string cannot contain carriage return, newline, or tab characters.
3029
/// </summary>
3130
[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
3231
public string Text { get; set; }

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

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public class Synonym
2929
/// The text of the synonym. This string must conform to the following restrictions:
3030
/// - It cannot contain carriage return, newline, or tab characters.
3131
/// - It cannot consist of only whitespace characters.
32-
/// - It must be no longer than 64 characters.
3332
/// </summary>
3433
[JsonProperty("synonym", NullValueHandling = NullValueHandling.Ignore)]
3534
public string _Synonym { get; set; }

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

+3-5
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ public class ValueTypeValue
5252
/// The text of the entity value. This string must conform to the following restrictions:
5353
/// - It cannot contain carriage return, newline, or tab characters.
5454
/// - It cannot consist of only whitespace characters.
55-
/// - It must be no longer than 64 characters.
5655
/// </summary>
5756
[JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)]
5857
public string _Value { get; set; }
@@ -66,15 +65,14 @@ public class ValueTypeValue
6665
/// value type), but not both. A synonym must conform to the following resrictions:
6766
/// - It cannot contain carriage return, newline, or tab characters.
6867
/// - It cannot consist of only whitespace characters.
69-
/// - It must be no longer than 64 characters.
7068
/// </summary>
7169
[JsonProperty("synonyms", NullValueHandling = NullValueHandling.Ignore)]
7270
public List<string> Synonyms { get; set; }
7371
/// <summary>
7472
/// An array of patterns for the entity value. A value can specify either synonyms or patterns (depending on the
75-
/// value type), but not both. A pattern is a regular expression no longer than 512 characters. For more
76-
/// information about how to specify a pattern, see the
77-
/// [documentation](https://cloud.ibm.com/docs/services/assistant/entities.html#entities-create-dictionary-based).
73+
/// value type), but not both. A pattern is a regular expression; for more information about how to specify a
74+
/// pattern, see the
75+
/// [documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-entities#entities-create-dictionary-based).
7876
/// </summary>
7977
[JsonProperty("patterns", NullValueHandling = NullValueHandling.Ignore)]
8078
public List<string> Patterns { get; set; }

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,12 @@ public class StatusValue
6161
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
6262
public string Status { get; set; }
6363
/// <summary>
64-
/// The name of the workspace. This string cannot contain carriage return, newline, or tab characters, and it
65-
/// must be no longer than 64 characters.
64+
/// The name of the workspace. This string cannot contain carriage return, newline, or tab characters.
6665
/// </summary>
6766
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
6867
public string Name { get; set; }
6968
/// <summary>
70-
/// The description of the workspace. This string cannot contain carriage return, newline, or tab characters,
71-
/// and it must be no longer than 128 characters.
69+
/// The description of the workspace. This string cannot contain carriage return, newline, or tab characters.
7270
/// </summary>
7371
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
7472
public string Description { get; set; }

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace IBM.Watson.Assistant.V1.Model
2626
public class WorkspaceSystemSettings
2727
{
2828
/// <summary>
29-
/// Workspace settings related to the Watson Assistant tool.
29+
/// Workspace settings related to the Watson Assistant user interface.
3030
/// </summary>
3131
[JsonProperty("tooling", NullValueHandling = NullValueHandling.Ignore)]
3232
public WorkspaceSystemSettingsTooling Tooling { get; set; }

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
namespace IBM.Watson.Assistant.V1.Model
2121
{
2222
/// <summary>
23-
/// Workspace settings related to the Watson Assistant tool.
23+
/// Workspace settings related to the Watson Assistant user interface.
2424
/// </summary>
2525
public class WorkspaceSystemSettingsTooling
2626
{

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

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ public class ResponseTypeValue
5858
/// Constant SUGGESTION for suggestion
5959
/// </summary>
6060
public const string SUGGESTION = "suggestion";
61+
/// <summary>
62+
/// Constant SEARCH for search
63+
/// </summary>
64+
public const string SEARCH = "search";
6165

6266
}
6367

0 commit comments

Comments
 (0)